1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9232],{29730:(e,t,n)=>{let i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C;n.d(t,{$6H:()=>ai,$_6:()=>ese,A1m:()=>a4,A6c:()=>Ry,ADU:()=>Rt,Aii:()=>esy,Az$:()=>d0,B1J:()=>el7,B3H:()=>FG,BRe:()=>FK,BaK:()=>cE,Bdt:()=>as,Bkf:()=>cA,Bvg:()=>ad,ByQ:()=>JW,C8j:()=>YV,CW3:()=>edP,CgW:()=>fi,Cu5:()=>dT,CuW:()=>Mi,CzS:()=>dI,Dsj:()=>Jh,E9:()=>cs,EL1:()=>Rc,FCT:()=>Bp,FEk:()=>enm,FP1:()=>ap,FUn:()=>eds,FfM:()=>ax,FlV:()=>gI,For:()=>_g,FyK:()=>cd,G2c:()=>BJ,GCV:()=>enX,GDb:()=>cz,GW0:()=>rx,G_3:()=>BK,H8m:()=>ua,HTc:()=>aE,Hhx:()=>x4,HuN:()=>esi,I07:()=>R8,Ijd:()=>gA,J7:()=>hc,JEU:()=>Bf,Jd3:()=>o2,JhA:()=>uU,Jne:()=>Pq,Jr6:()=>Rx,Jrl:()=>rG,K0D:()=>gU,K1$:()=>eok,KJ$:()=>uT,KgX:()=>rq,LIN:()=>ut,LJ4:()=>B5,LJN:()=>cS,Lay:()=>Ya,LyQ:()=>dd,M7h:()=>eso,M91:()=>Ru,MLZ:()=>wJ,MlF:()=>rV,Mlv:()=>rM,N6R:()=>O$,NJ$:()=>gD,NO5:()=>fo,NeO:()=>_f,Ns2:()=>es$,Ons:()=>EW,P$5:()=>cf,PaW:()=>SN,QO2:()=>a3,QSs:()=>B9,Qfr:()=>ug,R11:()=>rE,Ra0:()=>ll,RaY:()=>r$,Rcw:()=>Rv,Rdi:()=>RL,RwK:()=>uz,S4U:()=>JJ,SfM:()=>d2,Sjd:()=>ue,SxK:()=>NY,TLO:()=>R5,TMz:()=>rT,TU6:()=>P9,UYh:()=>YL,VJU:()=>rl,VMk:()=>et7,Vki:()=>hu,Vq9:()=>um,VrO:()=>B8,WUV:()=>cP,WmX:()=>hU,XZv:()=>gb,Xhw:()=>
1r7,Y07:()=>BG,Y73:()=>uA,YKH:()=>edd,YLU:()=>Lr,YW1:()=>v5,YeQ:()=>RM,Yfj:()=>et0,Yry:()=>hZ,ZDR:()=>gW,ZQh:()=>j9,Z_W:()=>Vn,Zbb:()=>el5,Zck:()=>rN,_9c:()=>rX,_T7:()=>Rj,_dH:()=>fr,_hI:()=>cN,_oG:()=>gs,aJr:()=>Zw,aSp:()=>B7,akJ:()=>edR,aqr:()=>Zj,avr:()=>or,ayN:()=>c$,azN:()=>cD,bCC:()=>r2,bM7:()=>rR,bSq:()=>uP,bgA:()=>ess,bzQ:()=>R1,c7e:()=>ls,cMO:()=>w1,cUY:()=>rv,cUp:()=>el8,cVB:()=>cb,cX9:()=>de,cyL:()=>rU,d3q:()=>v3,dWw:()=>Yi,drb:()=>uk,dxd:()=>Fc,e8q:()=>eoS,eaL:()=>edz,fRg:()=>s9,fmx:()=>ZM,g19:()=>eoM,gJZ:()=>R6,gd4:()=>ry,gn8:()=>Rf,hA9:()=>cY,hCw:()=>P7,hNr:()=>xF,hZN:()=>YF,hZp:()=>hq,i6N:()=>Yc,iZK:()=>o5,isY:()=>hp,ixk:()=>ud,ixz:()=>JH,jsZ:()=>wr,k0f:()=>uy,kbS:()=>esw,lNE:()=>Pz,m2r:()=>enx,m6P:()=>j8,mLG:()=>X6,miu:()=>ob,mnZ:()=>esn,nHq:()=>qW,nfZ:()=>dn,niW:()=>yU,o2j:()=>uI,oIj:()=>rr,oJj:()=>rY,okx:()=>z9,olN:()=>edD,pDY:()=>en0,pTS:()=>r5,pfD:()=>edl,q3J:()=>cu,qC_:()=>be,r0j:()=>Ra,rML:()=>en3,sBy:()=>rz,spc:()=>dt,tGd:()=>ck,tH7:()=>el0,tdH:()=>fb,tfA:()=>rL,ti5:()=>el9,tmD:()=>h8,twe:()=>NT,u4i:()=>rZ,uD1:()=>edm,uMx:()=>uO,ujC:()=>on,vM8:()=>fw,vu3:()=>a7,w1_:()=>Mz,wCX:()=>hW,wG1:()=>edc,wI4:()=>RT,wwz:()=>Ni,xo4:()=>uS,xx_:()=>gw,y4b:()=>cI,yKO:()=>cc,yW8:()=>fv,yk9:()=>rQ,zOx:()=>cT,zX2:()=>Ye,zeL:()=>edp});var x,b,v=n(57767),j=n(2897),w=n(54194),_=n(38127),k=n(37967),S=n(72689),I=n(95357),T=n(42908),E=n(97428),$=n(38141),A=n(90815),D=n(82109),z=n(56129),P=n(5059),R=n(21891),N=n(36633),O=n(51242),V=n(29781),M=n(75107),L=n(86951),F=n(47238),B=n(8886),Y=n(91876),H=n(71471),U=n(54291),Z=n(34275),q=n(84336),W=n(298),J=n(6027),K=n(46050),G=n(34282),X=n(37180),Q=n(2519),ee=n(56254),et=n(92928),en=n(3479),ei=n(43342),er=n(86948),ea=n(57068),eo=n(59734),el=n(8047),es=n(44633),ed=n(689),ec=n(69296),eu=n(25913),ep=n(28115),em=n(25732),eh=n(69341),ef=n(74649),eg=n(96635),ey=n(23573),eC=n(35625),ex=n(41176),eb=n(91576),ev=n(70993),ej=n(33576),ew=n(95785),e_=n(33383),ek=n(74567),eS=n(49817),eI=n(88150),eT=n(89209),eE=n(38515),e$=n(7462),eA=n(60235),eD=n(36534),ez=n(80608),eP=n(55726),eR=n(51463),eN=n(361),eO=n(2992),eV=n(50165),eM=n(13781),eL=n(87039),eF=n(8453),eB=n(63418),eY=n(36826),eH=n(11338),eU=n(26558),eZ=n(73645),eq=n(91296),eW=n(57237),eJ=n(60725),eK=n(19964),eG=n(15723),eX=n(23736),eQ=n(81593),e1=n(87827),e2=n(92319),e5=n(70390),e0=n(56791),e7=n(95032),e3=n(70520),e8=n(66307),e4=n(47171),e6=n(8060),e9=n(58599),te=n(80998),tt=n(7997),tn=n(64382),ti=n(48273),tr=n(24283),ta=n(45794),to=n(29099),tl=n(25955),ts=n(75832),td=n(9208),tc=n(79069),tu=n(39989),tp=n(64647),tm=n(86005),th=n(61251),tf=n(62194),tg=n(33935),ty=n(47634),tC=n(17529),tx=n(42515),tb=n(54423),tv=n(52204),tj=n(7111),tw=n(46079),t_=n(74326),tk=n(16314),tS=n(94397),tI=n(245),tT=n(56762),tE=n(24154),t$=n(24821),tA=n(71256),tD=n(92690),tz=n(8577),tP=n(78889),tR=n(93401),tN=n(76292),tO=n(66820),tV=n(54244),tM=n(98264),tL=n(99631),tF=n(79578),tB=n(81252),tY=n(13192),tH=n(31217),tU=n(3450),tZ=n(44714),tq=n(16740),tW=n(34355),tJ=n(82800),tK=n(80456),tG=n(71966),tX=n(20048),tQ=n(4382),t1=n(8296),t2=n(86737),t5=n(13546),t0=n(69763),t7=n(32021),t3=n(24590),t8=n(50301),t4=n(23846),t6=n(60386),t9=n(34404),ne=n(95822),nt=n(68270),nn=n(70366),ni=n(21721),nr=n(26068),na=n(45957),no=n(99586),nl=n(68031),ns=n(113),nd=n(13915),nc=n(52283),nu=n(2919),np=n(35512),nm=n(21499),nh=n(57097),nf=n(46852),ng=n(53646),ny=n(87813),nC=n(99176),nx=n(71716),nb=n(99970),nv=n(5078),nj=n(13666),nw=n(55066),n_=n(49808),nk=n(67947),nS=n(55701),nI=n(86531),nT=n(64273),nE=n(93471),n$=n(79799),nA=n(18573),nD=n(150),nz=n(576),nP=n(4937),nR=n(37855),nN=n(92491),nO=n(87683),nV=n(38923),nM=n(11710),nL=n(60737),nF=n(77630),nB=n(93896),nY=n(54327),nH=n(15042),nU=n(44255),nZ=n(97045),nq=n(33255),nW=n(17050),nJ=n(37542),nK=n(15220),nG=n(58899),nX=n(23793),nQ=n(3517),n1=n(1073),n2=n(76921),n5=n(10933),n0=n(16575),n7=n(87366),n3=n(24319),n8=n(53341),n4=n(11862),n6=n(16621),n9=n(14970),ie=n(73176),it=n(44860),ii=n(35615),ir=n(87712),ia=n(20875),io=n(68529),il=n(99439),is=n(31161),id=n(6203),ic=n(71595),iu=n(41903),ip=n(81819),im=n(40454),ih=n(90814),ig=n(17298),iy=n(40250),iC=n(51283),ix=n(73526),ib=n(11437),iv=n(38
1185),ij=n(88982),iw=n(94305),i_=n(24468),ik=n(8782),iS=n(81454),iI=n(17852),iT=n(14782),iE=n(312),i$=n(40639),iA=n(7332),iD=n(288),iz=n(26444),iP=n(11624),iR=n(65923),iN=n(19455),iO=n(48854),iV=n(99949),iM=n(16156),iL=n(22744),iF=n(6475),iB=n(82172),iY=n(17440),iH=n(92366),iU=n(82942),iZ=n(23599),iq=n(56556),iW=n(23176),iJ=n(85894),iK=n(55707),iG=n(8942),iX=n(44485),iQ=n(12694),i1=n(91418),i2=n(65590),i5=n(61774),i0=n(93286);n(62041);var i7=n(55036);function i3(e){return`inset 0 0 0 ${e.width}px ${e.color}`}let i8=(0,eI.I4)(I.xA).withConfig({displayName:"AlignedBottomGrid",componentId:"sc-16a5dys-0"})`align-items:flex-end;`;function i4(e){let{base:t,border:n,focusRing:i}=e,r=i.offset+i.width,a=0-i.offset,o=t?t.bg:"var(--card-bg-color)";return[a>0&&`inset 0 0 0 ${a}px var(--card-focus-ring-color)`,n&&i3(n),a<0&&`0 0 0 ${0-a}px ${o}`,r>0&&`0 0 0 ${r}px var(--card-focus-ring-color)`].filter(Boolean).join(",")}let i6="a,button",i9=eI.I4.div.withConfig({displayName:"FocusOverlayDiv",componentId:"sc-1ds81n6-0"})(({theme:e,offset:t})=>(0,eI.AH)` 2 bottom: ${-t}px; 3 border-radius: ${(0,I.D0)(e.sanity.radius[1])}; 4 left: ${-t}px; 5 pointer-events: none; 6 position: absolute; 7 right: ${-t}px; 8 top: ${-t}px; 9 z-index: 2; 10 11 ${rt}:focus-visible & { 12 box-shadow: ${i4({base:e.sanity.color.base,focusRing:e.sanity.focusRing})}; 13 } 14 `),re=eI.I4.div.withConfig({displayName:"PointerOverlayDiv",componentId:"sc-1ds81n6-1"})`bottom:0;display:none;left:0;position:absolute;right:0;top:0;z-index:1;@media (hover:hover){&[data-enabled='true']{display:block;}}`,rt=(0,eI.I4)(I.az).withConfig({displayName:"VirtualListBox",componentId:"sc-1ds81n6-2"})`height:100%;outline:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;width:100%;`,rn=(0,eI.I4)(I.az).attrs(({$height:e})=>({style:{height:`${e}px`}})).withConfig({displayName:"VirtualListChildBox",componentId:"sc-1ds81n6-3"})`position:relative;width:100%;`,ri=(0,_.forwardRef)(function({activeItemDataAttr:e="data-active",ariaLabel:t,ariaMultiselectable:n=!1,autoFocus:i,canReceiveFocus:r,fixedHeight:a,focusRingOffset:o=0,getItemDisabled:l,getItemKey:s,getItemSelected:d,initialIndex:c,initialScrollAlign:u="start",inputElement:p,itemHeight:m,items:h,onEndReached:f,onEndReachedIndexOffset:g=0,onlyShowSelectionWhenActive:y,overscan:C,renderItem:x,testId:b,wrapAround:j=!0,...w},k){let S=(0,_.useRef)(!1),[I]=(0,_.useState)((0,_.useId)()),T=(0,_.useRef)(c??0),[$,D]=(0,_.useState)(null),[z,P]=(0,_.useState)(!1),[R,N]=(0,_.useState)(null),[O,V]=(0,_.useState)(null),M=(0,_.useCallback)(e=>{if(!f)return;let[t]=[...e.getVirtualItems()].reverse();t&&t.index>=h.length-g-1&&S.current&&f()},[f,h.length,g]),L=(0,E.Te)({count:h.length,getItemKey:s,getScrollElement:()=>O,estimateSize:()=>m,onChange:M,overscan:C}),F=(0,_.useMemo)(()=>{var e,t,n;let i;return e=h,t=l,n=d,i=-1,e.reduce((e,r,a)=>{let o=t?.(a)??!1,l=n?.(a)??!1;return o||(i+=1),e[a]={activeIndex:o?null:i,disabled:o,selected:l},e},[])},[l,d,h]),B=(0,_.useMemo)(()=>F.filter(e=>!e.disabled).length,[F]),Y=(0,_.useCallback)(e=>R?.setAttribute("data-enabled",(!e).toString()),[R]),H=(0,_.useCallback)(e=>`${I}-item-${e}`,[I]),U=(0,_.useCallback)(()=>`${I}-children`,[I]),Z=(0,_.useCallback)(()=>{let t=[p,O].some(e=>document.activeElement===e);(!y||t||z)&&Array.from($?.children||[])?.forEach(t=>{let n=Number(t.dataset?.index),i=F[n]?.activeIndex;t.querySelector(i6)?.toggleAttribute(e,i===T.current)})},[e,$?.children,z,p,F,y,O]),q=(0,_.useCallback)(()=>{Array.from($?.children||[])?.forEach(t=>{t.querySelector(i6)?.toggleAttribute(e,!1)})},[e,$?.children]),W=(0,_.useMemo)(()=>(0,A.A)(Z,200),[Z]),J=(0,_.useCallback)(()=>{let e=T?.current;h.length>0?(p?.setAttribute("aria-activedescendant",H(e)),O?.setAttribute("aria-activedescendant",H(e))):(p?.removeAttribute("aria-activedescendant"),O?.removeAttribute("aria-activedescendant"))},[H,p,h.length,O]),K=(0,_.useCallback)(()=>{let e=$?.parentElement;if($&&e){let t=e.getBoundingClientRect().top-$.getBoundingClientRect().top;return L.getVirtualItemForOffset(t)?.index??-1}return -1},[$,L]),G=(0,_.useCallback)(({index:e,scrollAlign:t,scrollIntoView:n=!0})=>{if(T.current=e,J(),Z(),n){let n=F.findIndex(t=>t.activeIndex===e);n>-1&&L.scrollToIndex(n,t?{align:t}:{})}},[J,F,Z,L]),X=(0,_.useCallback)(e=>{let t=-1,n=B-1;"next"===e&&(t=T.current<B-1?T.current+1:j?0:n),"previous"===e&&(t=T.current>0?T.current-1:j?n:0),G({index:t,scrollIntoView:!0}),Y(!1)},[B,Y,G,j]),Q=(0,_.useCallback)(e=>
14{switch(e){case"input":p?.focus();break;case"list":O?.focus()}},[p,O]),ee=(0,_.useCallback)(()=>{p?.focus()},[p]),et=(0,_.useCallback)(()=>{O?.focus()},[O]),en=(0,_.useCallback)(e=>()=>{G({index:e,scrollIntoView:!1})},[G]),ei=(0,_.useCallback)(()=>{Z()},[Z]),er=(0,_.useCallback)(e=>t=>{let n=Array.from($?.children||[]);if(n.length&&("ArrowDown"===t.key&&(t.preventDefault(),Q(e),X("next")),"ArrowUp"===t.key&&(t.preventDefault(),Q(e),X("previous")),"Enter"===t.key)){t.preventDefault(),Q(e);let i=n.find(e=>Number(e.dataset.index)===F.findIndex(e=>e.activeIndex===T.current));i&&i?.querySelector(i6)?.click()}},[$?.children,Q,F,X]),ea=(0,_.useCallback)(e=>er("input")(e),[er]),eo=(0,_.useCallback)(e=>er("list")(e),[er]),el=(0,_.useCallback)(()=>{y&&(Z(),P(!0))},[y,Z]),es=(0,_.useCallback)(()=>{y&&(q(),P(!1))},[q,y]);(0,_.useImperativeHandle)(k,()=>({focusInputElement(){ee()},focusListElement(){et()},getTopIndex:()=>K(),scrollToIndex(e){G({index:e}),Y(!0)}}),[Y,ee,et,K,G]),(0,_.useEffect)(()=>{"u">typeof c&&!S.current&&G({index:c,scrollAlign:u,scrollIntoView:!0}),S.current=!0},[c,u,y,G]),(0,_.useEffect)(()=>{function e(){Y(!0)}return O?.addEventListener("mousemove",e),O?.addEventListener("wheel",e,{passive:!0}),()=>{O?.removeEventListener("mousemove",e),O?.removeEventListener("wheel",e)}},[Y,O]),(0,_.useEffect)(()=>(p?.addEventListener("focus",ei),p?.addEventListener("keydown",ea),O?.addEventListener("focus",ei),O?.addEventListener("keydown",eo),()=>{p?.removeEventListener("focus",ei),p?.removeEventListener("keydown",ea),O?.removeEventListener("focus",ei),O?.removeEventListener("keydown",eo)}),[r,ei,er,ea,eo,q,p,Z,O]),(0,_.useEffect)(()=>{J()},[J,h]),(0,_.useEffect)(()=>{let e=new MutationObserver(W);return $&&e.observe($,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[$,W]),(0,_.useEffect)(()=>{p?.setAttribute("aria-autocomplete","list"),p?.setAttribute("aria-expanded","true"),p?.setAttribute("aria-controls",U()),p?.setAttribute("role","combobox")},[U,p]),(0,_.useEffect)(()=>{i&&Q(i)},[i,r,et,ee,Q]);let ed=r?0:-1;return(0,v.jsxs)(rt,{id:U(),onMouseEnter:el,onMouseLeave:es,ref:V,sizing:"border",tabIndex:ed,"data-testid":b,...w,children:[r&&(0,v.jsx)(i9,{offset:o}),(0,v.jsx)(re,{"aria-hidden":"true","data-enabled":!0,ref:N}),L&&(0,v.jsx)(rn,{forwardedAs:"ul",$height:L.getTotalSize(),"aria-label":t,"aria-multiselectable":n,flex:1,ref:D,role:"listbox",children:L.getVirtualItems().map(e=>{let t=e.index,{activeIndex:i,disabled:r,selected:o}=F[t],l=x(h[t],{activeIndex:i,disabled:r,selected:o,virtualIndex:t}),s=(0,_.isValidElement)(l)&&l.type!=_.Fragment?(0,_.cloneElement)(l,{tabIndex:-1}):l;return(0,v.jsx)(ro,{ref:a?void 0:L.measureElement,activeIndex:i,activeItemCount:B,ariaMultiselectable:n,disabled:r,fixedHeight:a?`${e.size}px`:void 0,getChildDescendantId:H,handleChildMouseEnter:en,selected:o,virtualIndex:t,virtualRowStart:e.start,children:s},e.key)})})]})}),rr=(0,_.memo)(ri);rr.displayName="Memo(ForwardRef(CommandList))";let ra=(0,_.forwardRef)(function(e,t){let n,i,r,a,o=(0,j.c)(21),{children:l,activeIndex:s,activeItemCount:d,ariaMultiselectable:c,disabled:u,fixedHeight:p,getChildDescendantId:m,handleChildMouseEnter:h,selected:f,virtualIndex:g,virtualRowStart:y}=e;o[0]!==s||o[1]!==u||o[2]!==h?(n="number"!=typeof s||u?void 0:h(s),o[0]=s,o[1]=u,o[2]=h,o[3]=n):n=o[3];let C=n;o[4]!==s||o[5]!==d||o[6]!==c||o[7]!==u||o[8]!==m||o[9]!==f?(i="number"!=typeof s||u?{}:{"aria-posinset":s+1,...c?{"aria-selected":f.toString()}:{},"aria-setsize":d,id:m(s),role:"option"},o[4]=s,o[5]=d,o[6]=c,o[7]=u,o[8]=m,o[9]=f,o[10]=i):i=o[10];let x=i,b=`translateY(${y}px)`;o[11]!==p||o[12]!==b?(r={flex:1,height:p,left:0,position:"absolute",top:0,transform:b,width:"100%"},o[11]=p,o[12]=b,o[13]=r):r=o[13];let w=r;return o[14]!==x||o[15]!==l||o[16]!==t||o[17]!==C||o[18]!==w||o[19]!==g?(a=(0,v.jsx)(I.BJ,{as:"li","data-index":g,ref:t,style:w,tabIndex:-1,...x,onMouseEnter:C,children:l}),o[14]=x,o[15]=l,o[16]=t,o[17]=C,o[18]=w,o[19]=g,o[20]=a):a=o[20],a}),ro=(0,_.memo)(ra);ro.displayName="Memo(ForwardRef(CommandListItem))";let rl=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d=(0,j.c)(17);d[0]!==e?({mode:i,tooltipProps:a,tone:r,...n}=e,d[0]=e,d[1]=n,d[2]=i,d[3]=r,d[4]=a):(n=d[1],i=d[2],r=d[3],a=d[4]);let c=void 0===i?"bleed":i,{t:u}=as();return d[5]!==u||d[6]!==a?.content?(o=a?.content||u("common.context-menu-button.tooltip"),d[5]=u,d[6]=a?.content,d[7]=o):o=d[7],d[8]!==o||d[9]!==a?(l={...a,content:o},d[8]=o,d[9]=a,d[10]=l):l=d[10],d[11]!==c||d[12]!==t||d[13]!==n||d[14]!==l||d[15]!==r?(s=(0,v.jsx)(tL.$n,{...n,icon:eT.riS,mode:c,ref:t,tone:r,tooltipProps:l}),d[11]=c,d[12]=t,d[13]=n,d[14]=l,d[15]=r,d[16]=s):s=d[16],s});function rs({name:e,title:t},n){return"string"==typeof e&&e.trim().length>0?e:rd(t,n)}function rd(e,t){let n="string"==typeof e&&e.trim().length>0?` (titled "${e}")`:"";return`at index ${t}${n}`}function rc(){let e=(0,_.useContext)(S.WB);if(!e)throw Error("Could not find `workspaces` context");return e}
14class ru extends Error{constructor(e,t){super(e),this.name="WorkspaceValidationError",this.index=t?.index,this.identifier=t?.workspace&&rs(t.workspace,t.index)}}function rp(e,t){let{name:n,basePath:i}=e;if(i&&"string"==typeof i)return!0;throw typeof i>"u"?new ru(`If more than one workspace is defined, every workspace must have a \`basePath\` defined. Workspace \`${n}\` is missing a \`basePath\``,{workspace:e,index:t}):new ru(`If more than one workspace is defined, every workspace must have a \`basePath\` defined. Workspace \`${n}\` has an invalid \`basePath\` (must be a non-empty string)`,{workspace:e,index:t})}function rm(e,t){let{name:n,basePath:i}=e;if(!(!i||"/"===i)&&!/^\/[a-z0-9/_-]*[a-z0-9_-]+$/i.test(i))throw new ru(`All workspace \`basePath\`s must start with a leading \`/\`, consist of only URL safe characters, and cannot end with a trailing \`/\`. Workspace \`${n}\`'s basePath is \`${i}\``,{workspace:e,index:t})}let rh=(0,eI.I4)(I.Zp).withConfig({displayName:"StyledCard",componentId:"sc-m78l3s-0"})(({$fill:e})=>(0,eI.AH)` 15 align-items: center; 16 box-sizing: border-box; 17 display: flex; 18 flex-direction: column; 19 justify-content: center; 20 21 ${e?(0,eI.AH)` 22 bottom: 0; 23 height: 100%; 24 left: 0; 25 position: absolute; 26 right: 0; 27 top: 0; 28 width: 100%; 29 `:(0,eI.AH)` 30 min-height: 75px; 31 height: stretch; 32 height: -webkit-fill-available; 33 width: stretch; 34 width: -webkit-fill-available; 35 `} 36 37 ${!1} 38 39 > * { 40 position: absolute; 41 } 42 `),rf=(0,eI.I4)(I.y$).withConfig({displayName:"StyledSpinner",componentId:"sc-m78l3s-1"})(({$animatePosition:e=!0})=>(0,eI.AH)` 43 @keyframes fadeIn { 44 from { 45 opacity: 0; 46 } 47 to { 48 opacity: 1; 49 } 50 } 51 @keyframes slideUp { 52 from { 53 transform: translateY(0); 54 } 55 to { 56 transform: translateY(-15px); 57 } 58 } 59 animation: ${e?"500ms ease-out 750ms 1 normal both running fadeIn, 750ms ease-out 2000ms 1 normal both running slideUp":"500ms ease-out 750ms 1 normal both running fadeIn"}; 60 `),rg=(0,eI.I4)(I.EY).withConfig({displayName:"StyledText",componentId:"sc-m78l3s-2"})`@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@keyframes slideDown{from{transform:translateY(0);}to{transform:translateY(15px);}}animation:1500ms ease-out ${2e3}ms 1 normal both running fadeIn,750ms ease-out ${2e3}ms 1 normal both running slideDown;`;function ry(e){let t,n,i,r=(0,j.c)(10),{fill:a,showText:o,title:l}=e,s=a?I.Wd:"div",d=!!o;return r[0]!==d?(t=(0,v.jsx)(rf,{$animatePosition:d,muted:!0}),r[0]=d,r[1]=t):t=r[1],r[2]!==o||r[3]!==l?(n=o&&(0,v.jsx)(rC,{title:l}),r[2]=o,r[3]=l,r[4]=n):n=r[4],r[5]!==a||r[6]!==s||r[7]!==t||r[8]!==n?(i=(0,v.jsxs)(rh,{$fill:a,as:s,"data-testid":"loading-block",children:[t,n]}),r[5]=a,r[6]=s,r[7]=t,r[8]=n,r[9]=i):i=r[9],i}function rC(e){let t,n,i=(0,j.c)(5),{title:r}=e,{t:a}=as();return i[0]!==a||i[1]!==r?(t=r||a("common.loading"),i[0]=a,i[1]=r,i[2]=t):t=i[2],i[3]!==t?(n=(0,v.jsx)(rg,{muted:!0,size:1,children:t}),i[3]=t,i[4]=n):n=i[4],n}function rx(e){return e}function rb(e){return!("then"in e.resources&&"function"==typeof e.resources.then)}function rv(e,t){return t}let rj="studio",rw={id:"en-US",title:"English (US)",bundles:[{locale:"en-US",namespace:rj,resources:{"about-dialog.configuration-issue.header":"Configuration issue detected","about-dialog.configuration-issue.missing-appid":"Auto updates is enabled, but no <code>deployment.appId</code> configured in <code>sanity.cli.ts</code>. This Studio is updating against the <strong>latest</strong>-channel.","about-dialog.configuration-issue.missing-appid.view-documentation":"View documentation","about-dialog.version-info.auto-updates.disabled":"Auto Updates not enabled","about-dialog.version-info.auto-updates.enabled":"Auto Updates Enabled","about-dialog.version-info.auto-updates.header":"Auto Updates","about-dialog.version-info.auto-updates.how-to-enable":"Enable","about-dialog.version-info.auto-updates.manage-version":"Manage version","about-dialog.version-info.copy-to-cl
60ipboard-button.copied-text":"Copied to Clipboard. Happy pasting!","about-dialog.version-info.copy-to-clipboard-button.text":"Copy to Clipboard","about-dialog.version-info.current-version.header":"Current version","about-dialog.version-info.how-to-upgrade":"Update now","about-dialog.version-info.latest-version.header":"Latest version","about-dialog.version-info.new-auto-update-version-available":"New version available","about-dialog.version-info.new-version.text":"New version","about-dialog.version-info.reload":"Reload","about-dialog.version-info.reload-to-update":"Reload Studio to update","about-dialog.version-info.tooltip.development":"Development","about-dialog.version-info.tooltip.new-version-available":"New version available","about-dialog.version-info.tooltip.prerelease":"Prerelease","about-dialog.version-info.tooltip.up-to-date":"Up to date","about-dialog.version-info.up-to-date":"Up to date","about-dialog.version-info.update-button.text":"Update","about-dialog.version-info.update-button.tooltip":"Learn how to update Sanity Studio","about-dialog.version-info.user-agent.header":"User agent","about-dialog.version-info.view-on-github":"View on GitHub","announcement.dialog.close"
60:"Close","announcement.dialog.close-label":"Close dialog","announcement.floating-button.dismiss":"Close","announcement.floating-button.dismiss-label":"Dismiss announcements","announcement.floating-button.open-label":"Open announcements","asset-source.asset-list.menu.delete":"Delete","asset-source.asset-list.menu.show-usage":"Show usage","asset-source.asset-usage-dialog.header_file":"Documents using file","asset-source.asset-usage-dialog.header_image":"Documents using image","asset-source.asset-usage-dialog.loading":"Loadingâ¦","asset-source.delete-dialog.action.cancel":"Cancel","asset-source.delete-dialog.action.delete":"Delete","asset-source.delete-dialog.header_file":"Delete file","asset-source.delete-dialog.header_image":"Delete image","asset-source.delete-dialog.loading":"Loadingâ¦","asset-source.delete-dialog.usage-list.confirm-delete-file_named":"You are about to delete the file <strong>{{filename}}</strong> and its metadata. Are you sure?","asset-source.delete-dialog.usage-list.confirm-delete-file_unnamed":"You are about to delete the file and its metadata. Are you sure?","asset-source.delete-dialog.usage-list.confirm-delete-image_named":"You are about to delete the image <strong>{{filename}}</strong> and its metadata. Are you sure?","asset-source.delete-dialog.usage-list.confirm-delete-image_unnamed":"You are about to delete the image and its metadata. Are you sure?","asset-source.delete-dialog.usage-list.image-preview-alt":"Preview of image","asset-source.delete-dialog.usage-list.warning-file-is-in-use_named":"{{filename}} cannot be deleted because it's being used. In order to delete this file, you first need to remove all uses of it.","asset-source.delete-dialog.usage-list.warning-file-is-in-use_unnamed":"This file cannot be deleted because it's being used. In order to delete it, you first need to remove all uses of it.","asset-source.delete-dialog.usage-list.warning-image-is-in-use_named":"{{filename}} cannot be deleted because it's being used. In order to delete this image, you first need to remove all uses of it.","asset-source.delete-dialog.usage-list.warning-image-is-in-use_unnamed":"This image cannot be deleted because it's being used. In order to delete it, you first need to remove all uses of it.","asset-source.dialog.accept-message":"Only showing assets of accepted types: <strong>{{acceptTypes}}</strong>","asset-source.dialog.button.cancel":"Cancel","asset-source.dialog.button.select":"Select","asset-source.dialog.default-title_file":"Select file","asset-source.dialog.default-title_image":"Select image","asset-source.dialog.default-title_video":"Select video","asset-source.dialog.insert-asset-error":"Error inserting asset. See the console for more information.","asset-source.dialog.load-more":"Load more","asset-source.dialog.no-assets_file":"No files","asset-source.dialog.no-assets_image":"No images","asset-source.file.asset-list.action.delete.disabled-cannot-delete-current-file":"Cannot delete currently selected file","asset-source.file.asset-list.action.delete.text":"Delete","asset-source.file.asset-list.action.delete.title":"Delete file","asset-source.file.asset-list.action.select-file.title":"Select the file {{filename}}","asset-source.file.asset-list.action.show-usage.title":"Show usage","asset-source.file.asset-list.delete-failed":"File could not be deleted","asset-source.file.asset-list.delete-successful":"File was deleted","asset-source.file.asset-list.header.date-added":"Date added","asset-source.file.asset-list.header.filename":"Filename","asset-source.file.asset-list.header.size":"Size","asset-source.file.asset-list.header.type":"Type","asset-source.file.title":"Uploaded files","asset-source.image.asset-list.delete-failed":"Image could not be deleted","asset-source.image.asset-list.delete-successful":"Image was deleted","asset-source.image.title":"Uploaded images","asset-source.usage-list.documents-using-file_named_one":"One document is using file <code>{{filename}}</code>","asset-source.usage-list.documents-using-file_named_other":"{{count}} documents are using file <code>{{filename}}</code>","asset-source.usage-list.documents-using-file_named_zero":"No documents are using file <code>{{filename}}</code>","asset-source.usage-list.documents-using-file_unnamed_one":"One document is using this file","asset-source.usage-list.documents-using-file_unnamed_other":"{{count}} documents are using this file","asset-source.usage-list.documents-using-file_unnamed_zero":"No documents are using this file","asset-source.usage-list.documents-using-image_named_one":"One document is using image <code>{{filename}}</code>","asset-source.usage-list.documents-using-image_named_other":"{{count}} documents are using image <code>{{filename}}</code>","asset-source.usage-list.documents-using-image_named_zero":"No documents are using image <code>{{filename}}</code>","asset-source.usage-list.documents-using-image_unnamed_one":"One document is using this image","asset-source.usage-list.documents-using-image_unnamed_other":"{{count}} documents are using this image","asset-source.usage-list.documents-using-image_unnamed_zero":"No documents are using this image","asset-sources.common.uploader.upload-failed.description":"See the console for more information.","asset-sources.common.uploader.upload-failed.title":"Upload failed","asset-sources.dataset.f
60ile.title":"Workspace files","asset-sources.dataset.image.title":"Workspace images","asset-sources.media-library.error.library-could-not-be-resolved":"Something went wrong trying to resolve the Media Library for this project.","asset-sources.media-library.error.no-media-library-provisioned":"No media library has been provisioned for this organization.","asset-sources.media-library.file.title":"Media Library","asset-sources.media-library.image.title":"Media Library","asset-sources.media-library.open-in-source-dialog.button.done":"Done","asset-sources.media-library.open-in-source-dialog.button.select-new-asset":"Select new asset for â{{targetTitle}}â","asset-sources.media-library.open-in-source-dialog.button.select-new-asset-fallback":"Select new asset","asset-sources.media-library.open-in-source-dialog.title":"Edit asset","asset-sources.media-library.select-dialog.title_file":"Selecting file for {{targetTitle}}","asset-sources.media-library.select-dialog.title_image":"Selecting image for {{targetTitle}}","asset-sources.media-library.select-dialog.title_video":"Selecting video for {{targetTitle}}","asset-sources.media-library.warning.file-already-exist.description":"Using the existing file found in the library.","asset-sources.media-library.warning.file-already-exist.title":"File: '{{filename}}' already exists","banners.deleted-bundle-banner.text":"The '<strong>{{title}}</strong>' release has been deleted.","calendar.action.go-to-next-month":"Go to next month","calendar.action.go-to-next-year":"Go to next year","calendar.action.go-to-previous-month":"Go to previous month","calendar.action.go-to-previous-year":"Go to previous year","calendar.action.go-to-today":"Today","calendar.action.go-to-today-aria-label":"Go to today","calendar.action.go-to-tomorrow":"Tomorrow","calendar.action.go-to-yesterday":"Yesterday","calendar.action.include-time-label":"Include time","calendar.action.select-time":"Select time","calendar.action.set-to-current-time":"Set to current time","calendar.action.set-to-time-preset":"{{time}} on {{date, datetime}}","calendar.button.aria-label":"Open calendar","calendar.button.tooltip-text":"Select date","calendar.error.must-be-in-format":"Must be in the format: {{exampleDate}}","calendar.month-names.april":"April","calendar.month-names.august":"August","calendar.month-names.december":"December","calendar.month-names.february":"February","calendar.month-names.january":"January","calendar.month-names.july":"July","calendar.month-names.june":"June","calendar.month-names.march":"March","calendar.month-names.may":"May","calendar.month-names.november":"November","calendar.month-names.october":"October","calendar.month-names.september":"September","calendar.weekday-names.short.friday":"Fri","calendar.weekday-names.short.monday":"Mon","calendar.weekday-names.short.saturday":"Sat","calendar.weekday-names.short.sunday":"Sun","calendar.weekday-names.short.thursday":"Thu","calendar.weekday-names.short.tuesday":"Tue","calendar.weekday-names.short.wednesday":"Wed","changes.action.close-label":"Close history","changes.action.revert-all-cancel":"Cancel","changes.action.revert-all-confirm":"Revert all","changes.action.revert-all-description":"Are you sure you want to revert all {{count}} changes?","changes.action.revert-changes-confirm-change_one":"Revert change","changes.action.revert-changes-confirm-change_other":"Revert changes","changes.action.revert-changes-description":"Are you sure you want to revert the changes?","changes.action.revert-changes-description_one":"Are you sure you want to revert the change?","changes.added-label":"Added","changes.array.item-added-in-position":"Added in position {{position}}","changes.array.item-moved_down_one":"Moved {{count}} position down","changes.array.item-moved_down_other":"Moved {{count}} positions down","changes.array.item-moved_up_one":"Moved {{count}} position up","changes.array.item-moved_up_other":"Moved {{count}} positions up","changes.array.item-removed-from-position":"Removed from position {{position}}","changes.change-bar.aria-label":"Review changes","changes.changed-label":"Changed","changes.changes-by-author":"Changes by","changes.error-boundary.developer-info":"Check the developer console for more information","changes.error-boundary.title":"Rendering the changes to this field caused an error","changes.error-description":"We're unable to load the changes for this document.","changes.error-title":"Something went wrong","changes.error.incorrect-type-message":'Value error: Value is of type "<code>{{actualType}}</code>", expected "<code>{{expectedType}}</code>"',"changes.file.meta-info-fallback-title":"Untitled","changes.image.crop-changed":"Crop changed","changes.image.deleted":"Image deleted","changes.image.error-loading-image":"Error loading image","changes.image.hotspot-changed":"Hotspot changed","changes.image.meta-info-fallback-title":"Untitled","changes.image.no-asset-set":"Image not set","changes.image.no-image-placeholder":"(no image)","changes.inspector.from-label":"From","changes.inspector.meta-label":"Meta","changes.inspector.to-label":"To","changes.loading-author":"Loadingâ¦","changes.loading-changes":"Loading changesâ¦","changes.missing-since-document-error":"We couldn't find the document revision with id: <code>{{revisionId}}</code> you're trying to compare. <Break/> This is probably due to history retention policy of your plan. <Break/> Please select a different <strong>From</strong> entry.","changes.no-changes-description":"Edit the document or select an older version in the timeline to see a list of changes appear in this panel.","changes.no-changes-title":"There are no changes","changes.not-selectable":"It is not possible to select this event","changes.portable-text.annotation_added":"Added annotation","changes.portable-text.annotation_changed":"Changed annotation","changes.portable-text.annotation_removed":"Removed annotation","changes.portable-text.annotation_unchanged":"Unchanged annotation","changes.portable-text.block-style-changed":'Changed block style from "{{fromStyle}}" to "{{toStyle}}"',"changes.portable-text.changed-formatting":"Changed formatting","changes.portable-text.empty-inline-object":"Empty {{inlineObjectType}}","changes.portable-text.empty-object-annotation":"Empty {{annotationType}}","changes.portable-text.empty-text_added":"Added empty text","changes.portable-text.empty-text_changed":"Changed empty text","changes.portable-text.empty-text_removed":"Removed empty text","changes.portable-text.inline-object_added":"Added inline object","changes.portable-text.inline-object_changed":"Changed inline object","changes.portable-text.inline-object_removed":"Removed inline object","changes.portable-text.inline-object_unchanged":"Unchanged inline object","changes.portable-text.text_added":"Added text","changes.portable-text.text_removed":"Removed text","changes.portable-text.unknown-annotation-schema-type":"Unknown schema type","changes.portable-text.unknown-inline-object-schema-type":"Unknown schema type","changes.removed-label":"Removed","changes.same-revision-selected-description":"You have selected the same <strong>from</strong> and <strong>to</strong> revision, please select different revisions to compare the changes between them.","changes.same-revision-selected-title":"Same revision selected","changes.title":"History","changes.versions.draft":"Draft","common.context-menu-button.tooltip":"Show more","common.dialog.cancel-button.text":"Cancel","common.dialog.confirm-button.text":"Confirm","common.loading":"Loading","common.reconnecting.toast.title":"Trying to connectâ¦","configuration-issues.button.label":"Configuration issues","configuration-issues.button.tooltip":"Found configuration issues","default-menu-item.fallback-title":"Sort by {{title}}","default-orderings.caption":"Sort by Caption","default-orderings.description":"Sort by Description","default-orderings.header":"Sort by Header","default-orderings.heading":"Sort by Heading","default-orderings.label":"Sort by Label","default-orderings.name":"Sort by Name","default-orderings.title":"Sort by Title","document-status.created":"Created {{date}}","document-status.date":"{{date}}","document-status.edited":"Edited {{date}}","document-status.last-published":"Last published","document-status.not-published":"Not published","document-status.published":"Edited {{date}}","document-status.revision-from":"Revision from <em>{{date}}</em>","document-status.revision-not-found":"Revision not found","document.type.not-found":'Document type "{{type}}
60" not found',"errors.unable-to-perform-action":"Unable to perform this action","form.error.duplicate-keys-alert.details.additional-description":"The value of the <code>_key</code> property must be a unique string.","form.error.duplicate-keys-alert.details.description":"This usually happens when items are created using an API client, and the <code>_key</code> property of each elements has been generated non-uniquely.","form.error.duplicate-keys-alert.details.title":"Developer info","form.error.duplicate-keys-alert.generate-button.text":"Generate unique keys","form.error.duplicate-keys-alert.summary":"Several items in this list share the same identifier (key). Every item must have an unique identifier.","form.error.duplicate-keys-alert.title":"Non-unique keys","form.error.field-not-found":'Field "{{fieldName}}" not found among members â verify that it is defined in the schema and that it has not been conditionally hidden.',"form.error.missing-keys-alert.add-button.text":"Add missing keys","form.error.missing-keys-alert.details.additional-description":"The value of the <code>_key</code> property must be a unique string.","form.error.missing-keys-alert.details.description":"This usually happens when items are created using an API client, and the <code>_key</code> property has not been included.","form.error.missing-keys-alert.details.title":"Developer info","form.error.missing-keys-alert.summary":"Some items in the list are missing their keys. This must be fixed in order to edit the list.","form.error.missing-keys-alert.title":"Missing keys","form.error.mixed-array-alert.details.description":"This usually happens when items are created using an API client, or when a custom input component has added invalid data to the list.","form.error.mixed-array-alert.details.title":"Developer info","form.error.mixed-array-alert.remove-button.text":"Remove non-object values","form.error.mixed-array-alert.summary":"Some items in this list are not objects. This must be fixed in order to edit the list.","form.error.mixed-array-alert.title":"Invalid list values","form.error.no-array-item-at-index":"No array item at index <code>{{index}}</code> found at path <code>{{path}}</code>","form.error.no-array-item-at-key":'No array item with `_key` <code>"{{key}}"</code> found at path <code>{{path}}</code>',"form.error.unhandled-runtime-error.call-stack.title":"Call Stack:","form.error.unhandled-runtime-error.component-stack.title":"Component Stack:","form.error.unhandled-runtime-error.error-message":"Error: {{message}}","form.error.unhandled-runtime-error.title":"Unhandled Runtime Error","form.field.deprecated-label":"deprecated","form.field.untitled-field-label":"Untitled","form.validation.has-error-aria-label":"Has error","form.validation.has-info-aria-label":"Has information","form.validation.has-warning-aria-label":"Has warning","form.validation.summary.errors-count_one":"{{count}} error","form.validation.summary.errors-count_other":"{{count}} errors","form.validation.summary.warnings-count_one":"{{count}} warning","form.validation.summary.warnings-count_other":"{{count}} warnings","free-trial.tooltip.days-count_one":"{{count}} day left in trial","free-trial.tooltip.days-count_other":"{{count}} days left in trial","free-trial.tooltip.trial-finished":"Upgrade your project","help-resources.action.contact-sales":"Contact sales","help-resources.action.help-and-support":"Help and support","help-resources.action.join-our-community":"Join our community","help-resources.latest-sanity-version":"Latest version is v{{latestVersion}}","help-resources.register-studio":"Register studio","help-resources.studio":"Sanity Studio","help-resources.studio-app-id":"App id","help-resources.studio-auto-update-now":"Reload to update to v{{newVersion}}","help-resources.studio-version":"Sanity Studio v{{studioVersion}}","help-resources.title":"Help and resources","help-resources.up-to-date":"Up to date","help-resources.version":"v{{version}}","incoming-references.title":"Incoming references","input.files.common.cancel-upload":"Cancel","input.files.common.upload-placeholder.file-input-button.default-source.badge":"Default","input.files.common.upload-placeholder.file-input-button.text":"Upload","input.files.common.upload-progress":"Uploading <FileName/>","input.reference.document-cannot-be-opened.failed-to-resolve-url":"This document cannot be opened (unable to resolve URL to Studio)","inputs.array.action.add-after":"Add item after","inputs.array.action.add-before":"Add item before","inputs.array.action.add-item":"Add item","inputs.array.action.add-item-select-type":"Add item...","inputs.array.action.copy":"Copy","inputs.array.action.drag.tooltip":"Drag to re-order","inputs.array.action.duplicate":"Duplicate","inputs.array.action.edit":"Edit {{itemTypeTitle}}","inputs.array.action.remove":"Remove","inputs.array.action.remove-invalid-item":"Remove","inputs.array.action.view":"View {{itemTypeTitle}}","inputs.array.error.can-delete-but-no-edit-description":"You can still move or delete this item, but it cannot be edited since the schema definition for its type is nowhere to be found.","inputs.array.error.cannot-resolve-initial-value-title":"Unable to resolve initial value for type: {{schemaTypeTitle}}: {{errorMessage}}.","inputs.array.error.cannot-upload-unable-to-convert_one":"The following item can't be uploaded because there's no known conversion from content type to array item:","inputs.array.error.cannot-upload-unable-to-convert_other":"The following items can't be uploaded because there's no known conversion from content types to array item:","inputs.array.error.current-schema-not-declare-description":"The current schema does not declare items of type <code>{{typeName}}</code> as valid for this list. This could mean that the type has been removed as a valid item type, or that someone else has added it to their own local schema that is not yet deployed.","
60inputs.array.error.json-representation-description":"JSON representation of this item:","inputs.array.error.type-is-incompatible-prompt":"Item of type <code>{{typeName}}</code> not valid for this list","inputs.array.error.type-is-incompatible-title":"Why is this happening?","inputs.array.error.unexpected-error":"Unexpected Error: {{error}}","inputs.array.insert-menu.filter.all-items":"All","inputs.array.insert-menu.search.no-results":"No items found","inputs.array.insert-menu.search.placeholder":"Search","inputs.array.insert-menu.toggle-grid-view.tooltip":"Toggle grid view","inputs.array.insert-menu.toggle-list-view.tooltip":"Toggle list view","inputs.array.no-items-label":"No items","inputs.array.read-only-label":"This field is read-only","inputs.array.resolving-initial-value":"Resolving initial valueâ¦","inputs.boolean.disabled":"Disabled","inputs.dateTime.past-date-warning":"Select a date in the future.","inputs.datetime.placeholder":"e.g. {{example}}","inputs.file.actions-menu.file-options.aria-label":"Open file options menu","inputs.file.browse-button.text":"Select","inputs.file.dialog.title":"Select file","inputs.file.error.unknown-member-kind":"Unknown member kind: {{kind}}","inputs.file.invalid-file-warning.description":"The value of this field is not a valid file. Resetting this field will let you choose a new file.","inputs.file.invalid-file-warning.reset-button.text":"Reset value","inputs.file.invalid-file-warning.title":"Invalid file value","inputs.file.multi-browse-button.text":"Select","inputs.file.upload-failed.description":"The upload could not be completed at this time.","inputs.file.upload-failed.title":"Upload failed","inputs.files.common.access-policy.private.label":"Private asset","inputs.files.common.access-policy.private.tooltip":"CDN access limited to signed URLs","inputs.files.common.actions-menu.clear-field.label":"Clear field","inputs.files.common.actions-menu.copy-url.label":"Copy URL","inputs.files.common.actions-menu.download.label":"Download","inputs.files.common.actions-menu.notification.url-copied":"The URL is copied to the clipboard","inputs.files.common.actions-menu.open-in-source.label":"Open in {{sourceName}}","inputs.files.common.actions-menu.replace.label":"Replace","inputs.files.common.actions-menu.upload.label":"Upload","inputs.files.common.drop-message.drop-to-upload":"Drop to upload","inputs.files.common.drop-message.drop-to-upload-multi_one":"Drop to upload {{count}} file","inputs.files.common.drop-message.drop-to-upload-multi_other":"Drop to upload {{count}} files","inputs.files.common.drop-message.drop-to-upload.no-accepted-file-message_one":"Can't upload this file here","inputs.files.common.drop-message.drop-to-upload.no-accepted-file-message_other":"Can't upload any of these files here","inputs.files.common.drop-message.drop-to-upload.rejected-file-message_one":"{{count}} file can't be uploaded here","inputs.files.common.drop-message.drop-to-upload.rejected-file-message_other":"{{count}} files can't be uploaded here","inputs.files.common.placeholder.cannot-upload-some-files_one":"Cannot upload file","inputs.files.common.placeholder.cannot-upload-some-files_other":"Cannot upload {{count}} files","inputs.files.common.placeholder.drag-or-paste-to-upload_file":"Drag or paste file here","inputs.files.common.placeholder.drag-or-paste-to-upload_image":"Drag or paste image here","inputs.files.common.placeholder.drop-to-upload_file":"Drop to upload file","inputs.files.common.placeholder.drop-to-upload_image":"Drop to upload image","inputs.files.common.placeholder.read-only":"Read only","inputs.files.common.placeholder.select-asset-source-upload-destination":"Upload files to:","inputs.files.common.placeholder.upload-not-supported":"Can't upload files here","inputs.files.common.stale-upload-warning.clear":"Clear upload","inputs.files.common.stale-upload-warning.description":"An upload has made no progress for at least {{staleThresholdMinutes}} minutes and likely got interrupted. You can safely clear the incomplete upload and try uploading again.","inputs.files.common.stale-upload-warning.title":"Incomplete upload","inputs.image.actions-menu.crop-image-tooltip":"Crop image","inputs.image.actions-menu.edit-details.aria-label":"Open image edit dialog","inputs.image.actions-menu.options.aria-label":"Open image options menu","inputs.image.browse-menu.text":"Select","inputs.image.drag-overlay.cannot-upload-here":"Cannot upload this file here","inputs.image.drag-overlay.drop-to-upload-image":"Drop image to upload","inputs.image.drag-overlay.this-field-is-read-only":"This field is read only","inputs.image.error.possible-access-restriction":"Could not load image. This may be due to access restrictions.","inputs.image.error.unknown-member-kind":"Unknown member kind: {{kind}}","inputs.image.hotspot-dialog.title":"Edit hotspot and crop","inputs.image.invali
60d-image-warning.description":"The value of this field is not a valid image. Resetting this field will let you choose a new image.","inputs.image.invalid-image-warning.reset-button.text":"Reset value","inputs.image.invalid-image-warning.title":"Invalid image value","inputs.image.preview-uploaded-image":"Preview of uploaded image","inputs.image.upload-error.description":"The upload could not be completed at this time.","inputs.image.upload-error.title":"Upload failed","inputs.imagetool.description":"Adjust the rectangle to crop image. Adjust the circle to specify the area that should always be visible.","inputs.imagetool.load-error":"Error: {{errorMessage}}","inputs.imagetool.title":"Hotspot & Crop","inputs.imagetool.vector-warning.developer-info":"The Asset Pipeline does not support hotspot and crop for vector formats. To enable hotspot & crop, output this image to any of the supported raster formats. For example: <code>fm=jpg</code> to the <ImageUrlDocumentationLink>image URL</ImageUrlDocumentationLink> or call <code>.format('png')</code> with <ImageUrlPackageDocumentationLink>@sanity/image-url</ImageUrlPackageDocumentationLink>.","inputs.imagetool.vector-warning.expand-developer-info":"See developer info","inputs.imagetool.vector-warning.title":"Warning: Hotspot and crop might not be applied to this image where it's presented.","inputs.invalid-value.convert-button.text":"Convert to {{targetType}}","inputs.invalid-value.current-type":"The current value (<code>{{actualType}}</code>)","inputs.invalid-value.description":"The property value is stored as a value type that does not match the expected type.","inputs.invalid-value.details.description":"The value of this property must be of type <code>{{validType}}</code> according to the schema.","inputs.invalid-value.details.multi-type-description":"Only the following types are valid here according to schema:","inputs.invalid-value.details.possible-reason":"Mismatching value types typically occur when the schema has recently been changed.","inputs.invalid-value.details.title":"Developer info","inputs.invalid-value.reset-button.text":"Reset value","inputs.invalid-value.title":"Invalid property value","inputs.object.field-group-tabs.all-fields-title":"All fields","inputs.object.field-group-tabs.aria-label":"Field groups","inputs.object.field-group-tabs.val
60idation-error":"error","inputs.object.field-group-tabs.validation-info":"info","inputs.object.field-group-tabs.validation-warning":"warning","inputs.object.unknown-fields.read-only.description":"This field is <strong>read only</strong> according to the documentâs schema and cannot be unset. If you want to be able to unset this in Studio, make sure you remove the <code>readOnly</code> field from the enclosing type in the schema.","inputs.object.unknown-fields.remove-field-button.text":"Remove field","inputs.object.unknown-fields.warning.description_one":"Encountered a field that is not defined in the schema.","inputs.object.unknown-fields.warning.description_other":"Encountered {{count}} fields that are not defined in the schema.","inputs.object.unknown-fields.warning.details.description_one":"This field is not defined in the schema, which could mean that the field definition has been removed or that someone else has added it to their own local project and have not deployed their changes yet.","inputs.object.unknown-fields.warning.details.description_other":"These fields are not defined in the documentâs schema, which could mean that the field definitions have been removed or that someone else has added them to their own local project and have not deployed their changes yet.","inputs.object.unknown-fields.warning.details.title":"Developer info","inputs.object.unknown-fields.warning.title_one":"Unknown field found","inputs.object.unknown-fields.warning.title_other":"Unknown fields found","inputs.portable-text.action.collapse-editor":"Collapse editor","inputs.portable-text.action.edit-annotation-aria-label":"Edit annotation","inputs.portable-text.action.expand-editor":"Expand editor","inputs.portable-text.action.insert-block":"Insert {{typeName}}","inputs.portable-text.action.insert-block-aria-label":"Insert {{typeName}} (block)","inputs.portable-text.action.insert-inline-object":"Insert {{typeName}}","inputs.portable-text.action.insert-inline-object-aria-label":"Insert {{typeName}} (inline)","inputs.portable-text.action.remove-annotation-aria-label":"Remove annotation","inputs.portable-text.activate-on-focus-message_click":"Click to activate","inputs.portable-text.activate-on-focus-message_click-focused":"Click or press space to activate","inputs.portable-text.activate-on-focus-message_tap":"Tap to activate","inputs.portable-text.annotation-aria-label":"Annotation object","inputs.portable-text.annotation-editor.title":"Edit {{schemaType}}","inputs.portable-text.annotation.link":"Link","inputs.portable-text.block.aria-label":"Block object","inputs.portable-text.block.edit":"Edit","inputs.portable-text.block.open-menu-aria-label":"Open menu","inputs.portable-text.block.open-reference":"Open reference","inputs.portable-text.block.remove":"Remove","inputs.portable-text.block.view":"View","inputs.portable-text.decorator.code":"Code","inputs.portable-text.decorator.emphasis":"Italic","inputs.portable-text.decorator.strike-through":"Strike","inputs.portable-text.decorator.strong":"Strong","inputs.portable-text.decorator.underline":"Underline","inputs.portable-text.empty-placeholder":"Empty","inputs.portable-text.inline-block.aria-label":"Inline object","inputs.portable-text.inline-object.edit":"Edit object","inputs.portable-text.inline-object.edit-aria-label":"Edit object","inputs.portable-text.inline-object.remove":"Remove object","inputs.portable-text.inline-object.remove-aria-label":"Remove object","inputs.portable-text.invalid-value.action-disclaimer":"NOTE: Itâs generally safe to perform the action above, but if you are in doubt, get in touch with those responsible for configuring your studio.","inputs.portable-text.invalid-value.disallowed-child-type.action":"Remove the object","inputs.portable-text.invalid-value.disallowed-child-type.description":"Child with key {{childKey}} of block with key <code>{{key}}</code> is of type <code>{{childType}}</code>, which is not allowed by the schema.","inputs.portable-text.invalid-value.disallowed-type.action":"Remove the block","inputs.portable-text.invalid-value.disallowed-type.description":"Block
60with key <code>{{key}}</code> is of type <code>{{typeName}}</code>, which is not allowed by the schema.","inputs.portable-text.invalid-value.empty-children.action":"Insert empty text span","inputs.portable-text.invalid-value.empty-children.description":"Text block with key <code>{{key}}</code> has no text spans.","inputs.portable-text.invalid-value.ignore-button.text":"Ignore","inputs.portable-text.invalid-value.incorrect-block-type.action":"Use type <code>{{expectedTypeName}}</code>","inputs.portable-text.invalid-value.incorrect-block-type.description":"Block with key <code>{{key}}</code> has an invalid type name. According to the schema, it should be <code>{{expectedTypeName}}</code>.","inputs.portable-text.invalid-value.invalid-span-text.action":"Set empty text value","inputs.portable-text.invalid-value.invalid-span-text.description":"Span with key {{childKey}} of block with key <code>{{key}}</code> has a missing or invalid <code>text</code> property.","inputs.portable-text.invalid-value.missing-block-type.action":"Use type <code>{{expectedTypeName}}</code>","inputs.portable-text.invalid-value.missing-block-type.description":"Block with key <code>{{key}}</code> is missing a type name. According to the schema, it should be <code>{{expectedTypeName}}</code>.","inputs.portable-text.invalid-value.missing-child-key.action":"Assign random key","inputs.portable-text.invalid-value.missing-child-key.description":"Child at index <code>{{index}}</code> of block with key <code>{{key}}</code> is missing <code>_key</code> property.","inputs.portable-text.invalid-value.missing-child-type.action":"Remove the object","inputs.portable-text.invalid-value.missing-child-type.description":"Child with key {{childKey}} of block with key <code>{{key}}</code> is missing <code>_type</code> property.","inputs.portable-text.invalid-value.missing-key.action":"Assign random key","inputs.portable-text.invalid-value.missing-key.description":"Block at index <code>{{index}}</code> is missing required <code>_key</code> property.","inputs.portable-text.invalid-value.missing-or-invalid-children.action":"Remove the block","inputs.portable-text.invalid-value.missing-or-invalid-children.description":"Text block with key <code>{{key}}</code> has an invalid or missing `children` property.","inputs.portable-text.invalid-value.missing-or-invalid-markdefs.action":"Add property","inputs.portable-text.invalid-value.missing-or-invalid-markdefs.description":"Text block with key <code>{{key}}</code> has an invalid or missing `markDefs` property.","inputs.portable-text.invalid-value.missing-type.action":"Remove the block","inputs.portable-text.invalid-value.missing-type.description":"Block with key <code>{{key}}</code> is missing a type name.","inputs.portable-text.invalid-value.non-object-child.action":"Remove the item","inputs.portable-text.invalid-value.non-object-child.description":"Child at index <code>{{index}}</code> of block with key <code>{{key}}</code> is not an object.","inputs.portable-text.invalid-value.not-an-array.action":"Unset the value","inputs.portable-text.invalid-value.not-an-array.description":"Value must be an array of Portable Text blocks, or undefined.","inputs.portable-text.invalid-value.not-an-object.action":"Remove item","inputs.portable-text.invalid-value.not-an-object.description":"Item at <code>{{index}}</code> is not an object,.","inputs.portable-text.invalid-value.orphaned-marks.action":"Remove disallowed marks","inputs.portable-text.invalid-value.orphaned-marks.description":"Text block with key <code>{{key}}</code> contains marks <code>({{orphanedMarks, list}})</code> that are not allowed by the schema.","inputs.portable-text.invalid-value.title":"Invalid Portable Text value","inputs.portable-text.list-type.bullet":"Bulleted list","inputs.portable-text.list-type.number":"Numbered list","inputs.portable-text.style.h1":"Heading 1","inputs.portable-text.style.h2":"Heading 2","inputs.portable-text.style.h3":"Heading 3","inputs.portable-text.style.h4":"Heading 4","inputs.portable-text.style.h5":"Heading 5","inputs.portable-text.style.h6":"Heading 6","inputs.portable-text.style.multiple":"Multiple","
60inputs.portable-text.style.none":"No style","inputs.portable-text.style.normal":"Normal","inputs.portable-text.style.quote":"Quote","inputs.reference.action.clear":"Clear","inputs.reference.action.copy":"Copy","inputs.reference.action.create-new-document":"Create","inputs.reference.action.create-new-document-select":"Createâ¦","inputs.reference.action.duplicate":"Duplicate","inputs.reference.action.open-in-new-tab":"Open in new tab","inputs.reference.action.remove":"Remove","inputs.reference.action.replace":"Replace","inputs.reference.action.replace-cancel":"Cancel replace","inputs.reference.cross-dataset.feature-disabled-actions":"You can still clear this field's existing reference, but it cannot be changed to a different document as long as the feature is disabled.","inputs.reference.cross-dataset.feature-disabled-description":"This feature has been disabled. Read how to enable it in <DocumentationLink>the documentation</DocumentationLink>.","inputs.reference.cross-dataset.feature-unavailable-title":"Unavailable feature: Cross dataset reference","inputs.reference.cross-dataset.invalid-type":"The referenced document is of invalid type ({{typeName}}) <JsonValue/>","inputs.reference.document-opens-in-new-tab":"This document opens in a new tab","inputs.reference.error.document-unavailable-title":"Document unavailable","inputs.reference.error.failed-to-load-document-title":"Failed to load referenced document","inputs.reference.error.invalid-search-result-type-title":'Search returned a type that\'s not valid for this reference: "{{returnedType}}"',"inputs.reference.error.invalid-type-description":"Referenced document (<code>{{documentId}}</code>) is of type <code>{{actualType}}</code>. According to the schema, referenced documents can only be of type <AllowedTypes/>.","inputs.reference.error.invalid-type-title":"Document of invalid type","inputs.reference.error.missing-read-permissions-description":"The referenced document could not be accessed due to insufficient permissions","inputs.reference.error.missing-read-permissions-title":"Insufficient permissions","inputs.reference.error.nonexistent-document-description":"The referenced document does not exist (ID: <code>{{documentId}}</code>). You can either remove the reference or replace it with another document.","inputs.reference.error.nonexistent-document-title":"Not found","inputs.reference.error.nonexistent-document.clear-button-label":"Clear","inputs.reference.error.search-failed-title":"Reference search failed","inputs.reference.global.invalid-type":"The referenced document is of invalid type ({{typeName}})","inputs.reference.image-preview-alt-text":"Image preview of referenced document","inputs.reference.incomplete-reference.finalize-action-description":"<strong>{{referencedDocument}}</strong> is published and this reference should now be finalized.","inputs.reference.incomplete-reference.finalize-action-title":"Finalize reference","inputs.reference.incomplete-reference.strengthen-action-description":"<strong>{{referencedDocument}}</strong> is published and this reference should now be converted to a strong reference.","inputs.reference.incomplete-reference.strengthen-action-title":"Convert to strong reference","inputs.reference.incomplete-reference.strengthen-button-label":"Convert to strong reference","inputs.reference.metadata-error.retry-button-label":"Retry","inputs.reference.metadata-error.title":"Unable to load reference metadata","inputs.reference.no-results-for-query":"No results for <strong>â{{searchTerm}}â</strong>","inputs.reference.preview.edited-at-time":"Edited <RelativeTime/>","inputs.reference.preview.has-no-unpublished-changes-aria-label":"No unpublished edits","inputs.reference.preview.has-unpublished-changes-aria-label":"Edited","inputs.reference.preview.is-not-published-aria-label":"Not published","inputs.reference.preview.is-published-aria-label":"Published","inputs.reference.preview.no-unpublished-edits":"No unpublished edits","inputs.reference.preview.not-published":"Not published","inputs.reference.preview.published-at-time":"Published <RelativeTime/>","inputs.reference.referenced-document-does-not-exist":"The referenced document no longer exist and might have been deleted (document ID: <code>{{documentId}}</code>).","inputs.reference.referenced-document-insufficient-permissions":"The referenced document could not be accessed due to insufficient permissions","inputs.reference.resolving-initial-value":"Resolving initial valueâ¦","inputs.reference.search-placeholder":"Type to search","inputs.reference.strength-mismatch.is-strong-consquences":"It will not be possible to delete the reference document without first removing this reference or converting it to weak.","inputs.reference.strength-mismatch.is-strong-description":"This reference is <em>strong</em>, but according to the current schema it should be <em>weak</em>.","inputs.reference.strength-mismatch.is-weak-consquences":"This makes it possible to delete the referenced document without first deleting this reference, leav
60ing this field referencing a nonexisting document.","inputs.reference.strength-mismatch.is-weak-description":"This reference is <em>weak</em>, but according to the current schema it should be <em>strong</em>.","inputs.reference.strength-mismatch.strengthen-button-label":"Convert to strong reference","inputs.reference.strength-mismatch.title":"Reference strength mismatch","inputs.reference.strength-mismatch.weaken-button-label":"Convert to weak reference","inputs.select.action.clear":"Clear","inputs.slug.action.generate":"Generate","inputs.slug.action.generating":"Generatingâ¦","inputs.slug.error.missing-source":"Source is missing. Check source on type {{schemaType}} in schema","inputs.tags.placeholder":"Enter tag and press ENTERâ¦","inputs.tags.placeholder_touch":"Enter tagâ¦","inputs.untyped-value.convert-button.text":"Convert to {{targetType}}","inputs.untyped-value.description":"Encountered an object value without a <code>_type</code> property.","inputs.untyped-value.details.description":"Either remove the <code>name</code> property of the object declaration, or set <code>_type</code> property on items.","inputs.untyped-value.details.json-dump-prefix":"Current value (<code>object</code>):","inputs.untyped-value.details.multi-type-description":"The following types are valid here according to schema:","inputs.untyped-value.details.title":"Developer info","inputs.untyped-value.title":"Property value missing <code>_type</code>","inputs.untyped-value.unset-item-button.text":"Unset value","insufficient-permissions-message.not-authorized-explanation":"You do not have permission to access this feature.","insufficient-permissions-message.not-authorized-explanation_create-any-document":"You do not have permission to create a document.","insufficient-permissions-message.not-authorized-explanation_create-document":"You do not have permission to create this document.","insufficient-permissions-message.not-authorized-explanation_create-document-type":"You do not have permission to create this kind of document.","insufficient-permissions-message.not-authorized-explanation_create-new-reference":"You do not have permission to create a new reference.","insufficient-permissions-message.not-authorized-explanation_delete-document":"You do not have permission to delete this document.","insufficient-permissions-message.not-authorized-explanation_delete-schedules":"You do not have permission to delete schedules.","insufficient-permissions-message.not-authorized-explanation_discard-changes":"You do not have permission to discard changes in this document.","insufficient-permissions-message.not-authorized-explanation_duplicate-document":"You do not have permission to duplicate this document.","insufficient-permissions-message.not-authorized-explanation_edit-schedules":"You do not have permission to edit schedules.","insufficient-permissions-message.not-authorized-explanation_execute-schedules":"You do not have permission to execute schedules.","insufficient-permissions-message.not-authorized-explanation_publish-document":"You do not have permission to publish this document.","insufficient-permissions-message.not-authorized-explanation_unpublish-document":"You do not have permission to unpublish this document.","insufficient-permissions-message.roles":"Your roles: <Roles/>","insufficient-permissions-message.title":"Insufficient permissions","member-field-error.unexpected-error":"Unexpected error: {{error}}","network-check.slow-protocol-warning.description":"Your browser is using an outdated HTTP protocol to communicate with Sanity. This may result in substantially degraded performance.","network-check.slow-protocol-warning.learn-more-button.text":"Learn more","network-check.slow-protocol-warning.snooze-button.text":"Don't show again for this session","network-check.slow-protocol-warning.title":"You've got your breaks on","new-document.button":"Create","new-document.create-new-document-label":"New documentâ¦","new-document.filter-placeholder":"Search document types","new-document.loading":"Loadingâ¦","new-document.new-document-aria-label":"New document","new-document.no-document-types-found":"No document types found","new-document.no-document-types-label":"No document types","new-document.no-results":"No results for <strong>{{searchQuery}}</strong>
60","new-document.open-dialog-aria-label":"Create new document","new-document.title":"Create new document","package-version.new-package-available.reload-button":"Push to reload","package-version.new-package-available.title":"Sanity Studio is ready to update!","presence.action.manage-members":"Invite members","presence.aria-label":"Global presence","presence.no-one-else-description":"Invite people to the project to see their online status.","presence.no-one-else-title":"No one else is here","presence.not-in-a-document":"Not in a document","presence.tooltip-content":"Who is here","preview.default.title-fallback":"Untitled","preview.fallback.no-value":"(no value)","preview.image.file-is-being-uploaded.alt-text":"The image currently being uploaded","relative-time.just-now":"just now","release.action.add-to-new-release":"Add to release","release.action.add-to-release":"Add to {{title}}","release.action.already-exists-in-release":"Document already exists in release","release.action.already-in-release":"Already in release {{title}}","release.action.copy-to":"Copy version to","release.action.create-new":"New release","release.action.create-version.failure":"Failed to create version","release.action.delete-schedule":"Delete schedule","release.action.discard-version":"Discard version","release.action.discard-version.failure":"Failed to discard version","release.action.edit-schedule":"Edit schedule","release.action.new-release":"New release","release.action.new-release.limit-reached":"This workspace is limited to {{count}} release","release.action.new-release.limit-reached_other":"This workspace is limited to {{count}} releases","release.action.permission.error":"You do not have permission to perform this action","release.action.publish-now":"Publish now","release.action.revert-unpublish-version.failure.description":"Please try again or check your connection. The document is still going to be unpublished upon release.","release.action.revert-unpublish-version.failure.title":"Failed to revert from setting to unpublish on release.","release.action.revert-unpublish-version.success.description":"You can now edit this version.","release.action.revert-unpublish-version.success.title":"Successfully reverted from setting to unpublish on release.","release.action.schedule-publish":"Schedule publish","release.action.unpublish-version.failure":"Failed to set version to be unpublished on release","release.action.unpublish-version.success":"Successfully set <strong>{{title}}</strong> to be unpublished on release","release.action.view-release":"View release","release.action.view-scheduled-drafts":"View scheduled drafts","release.banner.scheduled-for-publishing-on":"Scheduled to be published on {{date}}","release.chip.button.other-versions_one":"+{{count}} version","release.chip.button.other-versions_other":"+{{count}} versions","release.chip.draft":"Draft","release.chip.global.drafts":"Drafts","release.chip.published":"Published","release.chip.tooltip.archived":"This release is archived and cannot be edited.","release.chip.tooltip.created-date":"Created {{date}}","release.chip.tooltip.draft-disabled.live-edit":"This document is in live edit mode, drafts are disabled","release.chip.tooltip.edited-date":"Edited {{date}}","release.chip.tooltip.intended-for-date":"Intended for {{date}}","release.chip.tooltip.no-edits":"No edits","release.chip.tooltip.not-published":"Not published","release.chip.tooltip.other-versions_one":"One additional version outside of releases","release.chip.tooltip.other-versions_other":"{{count}} additional versions outside of releases","release.chip.tooltip.published-date":"Published {{date}}","release.chip.tooltip.scheduled-for-date":"Scheduled for {{date}}","release.chip.tooltip.unknown-date":"Unknown date","release.deleted-tooltip":"This release has been deleted","release.dialog.copy-to-release.title":"Copy version to new release","release.dialog.create.confirm":"Create release","release.dialog.create.title":"New release","release.dialog.delete-schedule-draft.body-already-current":"Delete this scheduled draft? Your draft is already up to date.","release.dialog.delete-schedule-draft.body-will-save-to-draft":"Delete this scheduled draft? Your changes will be saved to draft.","release.dialog.delete-schedule-draft.body-with-choice":"Delete this scheduled draft?","release.dialog.delete-schedule-draft.confirm":"Yes, delete schedule","release.dialog.delete-schedule-draft.copy-checkbox":"Keep my scheduled changes by copying them to draft (recommended)","release.dialog.delete-schedule-draft.different-changes-explanation":"Your scheduled draft has different changes than your current draft.","release.dialog.delete-schedule-draft.header":"Delete scheduled draft","release.dialog.edit-schedule.body":"Select a new date and time for the scheduled publish.","release.dialog.edit-schedule.confirm":"Update schedule","release.dialog.edit-schedule.header":"Change schedule","release.dialog.publish-scheduled-draft.body":"Are you sure you want to publish this
60scheduled draft immediately?","release.dialog.publish-scheduled-draft.confirm":"Yes, run now","release.dialog.publish-scheduled-draft.header":"Publish draft now","release.dialog.tooltip.description":"This is only for planning, previews and hints about whether documents conflict. Setting a time here will not schedule your release. You'll still need to run or schedule the release once all documents are ready.","release.dialog.tooltip.note":"You can always change it later.","release.dialog.tooltip.title":"Approximate time of release","release.form.placeholder-describe-release":"Describe the releaseâ¦","release.layer.hide":"Hide release","release.menu.label":"Release menu","release.menu.scheduled-drafts":"View Scheduled Drafts","release.menu.tooltip":"Actions","release.menu.view-releases":"View Content Releases","release.navbar.drafts":"Drafts","release.navbar.published":"Published","release.navbar.tooltip":"View scheduling","release.placeholder-untitled-release":"Untitled release","release.schedule-dialog.publish-date-in-past-warning":"Schedule for a future time and date.","release.schedule-dialog.select-publish-date-label":"Publish on","release.toast.archived-release.description":"This release has been unpinned","release.toast.archived-release.title":"The '{{title}}' release was archived","release.toast.create-release-error.title":"Failed to create release","release.toast.delete-schedule-draft.error":"Failed to delete the scheduled draft document <strong>{{title}}</strong>: {{error}}","release.toast.delete-schedule-draft.success":"The scheduled draft document <strong>{{title}}</strong> has been deleted.","release.toast.not-found-release.title":"The '{{title}}' release could not be found","release.toast.pause-scheduled-draft.error":"Failed to pause the scheduled draft document <strong>{{title}}</strong>: {{error}}","release.toast.publish-scheduled-draft.error":"Failed to publish the scheduled draft document <strong>{{title}}</strong>: {{error}}","release.toast.publish-scheduled-draft.success":"The scheduled draft document <strong>{{title}}</strong> has been published.","release.toast.published-release.description":"This release has been unpinned","release.toast.published-release.title":"The '{{title}}' release was published","release.toast.reschedule-scheduled-draft.error":"Failed to reschedule the scheduled draft document <strong>{{title}}</strong>: {{error}}","release.toast.reschedule-scheduled-draft.success":"The scheduled draft document <strong>{{title}}</strong> has been rescheduled.","release.toast.schedule-publish.error":"Failed to schedule draft: {{error}}","release.toast.schedule-publish.success":"Scheduled draft successfully","release.toast.scheduled-draft-published.title":"The scheduled draft was published","release.tooltip.already-added":"A version of this document has already been added","release.tooltip.locked":"This release has been scheduled. Unschedule it to add more documents.","release.type.asap":"ASAP","release.type.scheduled":"At time","release.type.undecided":"Undecided","release.version-list.tooltip":"See all document versions","releases.upsell.misconfiguration.contact-support":"Contact Support","releases.upsell.misconfiguration.header":"Content releases configuration issue","releases.upsell.misconfiguration.message":"Content releases are enabled for your project, but there appears to be a configuration issue with your release limits. Please contact support to have your content releases properly configured.","schedule-publish-dialog.confirm":"Schedule","schedule-publish-dialog.description":"Select when this document should be published.","schedule-publish-dialog.header":"Schedule draft for publishing","scheduled-drafts.release.title":"Scheduled publish","search.action-open-aria-label":"Open search","search.action.add-filter":"Add filter","search.action.clear-filters":"Clear filters","search.action.clear-recent-searches":"Clear recent searches","search.action.clear-type-filters-aria-label":"Clear checked filters","search.action.clear-type-filters-label":"Clear","search.action.close-search-aria-label":"Close search","search.action.filter-by-document-type-aria-label":"Filter by document type","search.action.remove-filter-aria-label":"Remove filter","search.action.search-all-types":"Search all documents","search.action.search-specific-types":"Search for {{types, list}}","search.action.search-specific-types-truncated":"Search for {{types, list}} +{{count}} more","search.action.select-asset":"Select asset","search.action.select-asset_file":"Select file","search.action.select-asset_image":"Select image","search.action.toggle-filters-aria-label_hide":"Hide filters","search.action.toggle-filters-aria-label_show":"Show filters","search.action.toggle-filters-label_hide":"Hide filters","search.action.toggle-filters-label_show":"Show filters","search.button.tooltip":"Search","search.document-type-list":"{{types, list}}","search.document-type-list-all-types":"All types","search.document-type-list-truncated":"{{types, list}} +{{count}} more","search.document-types-aria-label":"Document types","search.document-types-no-matches-found":"No matches for {{filter}}","search.error.display-filter-description":"This may indicate invalid options defined in your schema.","search.error.display-filter-title":"An error occurred whilst displaying this filter.","search.error.
60no-valid-asset-source-check-config-description":"Please ensure it's enabled in your studio configuration file.","search.error.no-valid-asset-source-only-default-description":"Currently, only the default asset source is supported.","search.error.no-valid-asset-source-title":"No valid asset sources found.","search.error.unspecified-error-help-description":"Please try again or check your connection","search.error.unspecified-error-title":"Something went wrong while searching","search.filter-all-fields-header":"All fields","search.filter-asset-change_file":"Change file","search.filter-asset-change_image":"Change image","search.filter-asset-clear":"Clear","search.filter-asset-select_file":"Select file","search.filter-asset-select_image":"Select image","search.filter-boolean-false":"False","search.filter-boolean-true":"True","search.filter-by-title-aria-label":"Filter by title","search.filter-date-aria-label":"Date","search.filter-date-range-end-date-aria-label":"End date","search.filter-date-range-start-date-aria-label":"Start date","search.filter-date-unit-aria-label":"Select unit","search.filter-date-unit_days":"Days","search.filter-date-unit_months":"Months","search.filter-date-unit_years":"Years","search.filter-date-value-aria-label":"Unit value","search.filter-field-tooltip-description":"Field description","search.filter-field-tooltip-name":"Field name","search.filter-field-tooltip-used-in-document-types":"Used in document types","search.filter-no-matches-found":"No matches for {{filter}}","search.filter-number-max-value-placeholder":"Max value","search.filter-number-min-value-placeholder":"Min value","search.filter-number-value-placeholder":"Value","search.filter-placeholder":"Filter","search.filter-reference-clear":"Clear","search.filter-shared-fields-header":"Shared fields","search.filter-string-value-placeholder":"Value","search.filter-string-value-select-predefined-value":"Selectâ¦","search.filters-aria-label_one":"Filter","search.filters-aria-label_other":"Filters","search.instructions":"Use <ControlsIcon/> to refine your search","search.no-results-help-description":"Try another keyword or adju
60st your filters","search.no-results-title":"No results found","search.operator.array-count-equal.description_one":"<Field/> <Operator>has</Operator> <Value>{{count}} item</Value>","search.operator.array-count-equal.description_other":"<Field/> <Operator>has</Operator> <Value>{{count}} items</Value>","search.operator.array-count-equal.name":"quantity is","search.operator.array-count-gt.description_one":"<Field/> <Operator>has ></Operator> <Value>{{count}} item</Value>","search.operator.array-count-gt.description_other":"<Field/> <Operator>has ></Operator> <Value>{{count}} items</Value>","search.operator.array-count-gt.name":"quantity greater than","search.operator.array-count-gte.description_one":"<Field/> <Operator>has â¥</Operator> <Value>{{count}} item</Value>","search.operator.array-count-gte.description_other":"<Field/> <Operator>has â¥</Operator> <Value>{{count}} items</Value>","search.operator.array-count-gte.name":"quantity greater than or equal to","search.operator.array-count-lt.description_one":"<Field/> <Operator>has <</Operator> <Value>{{count}} item</Value>","search.operator.array-count-lt.description_other":"<Field/> <Operator>has <</Operator> <Value>{{count}} items</Value>","search.operator.array-count-lt.name":"quantity less than","search.operator.array-count-lte.description_one":"<Field/> <Operator>has â¤</Operator> <Value>{{count}} item</Value>","search.operator.array-count-lte.description_other":"<Field/> <Operator>has â¤</Operator> <Value>{{count}} items</Value>","search.operator.array-count-lte.name":"quantity less than or equal to","search.operator.array-count-not-equal.description_one":"<Field/> <Operator>does not have</Operator> <Value>{{count}} item</Value>","search.operator.array-count-not-equal.description_other":"<Field/> <Operator>does not have</Operator> <Value>{{count}} items</Value>","search.operator.array-count-not-equal.name":"quantity is not","search.operator.array-count-range.description":"<Field/> <Operator>has between</Operator> <Value>{{from}} â {{to}} items</Value>","search.operator.array-count-range.name":"quantity is between","search.operator.array-list-includes.description":"<Field/> <Operator>includes</Operator> <Value>{{value}}</Value>","search.operator.array-list-includes.name":"includes","search.operator.array-list-not-includes.description":"<Field/> <Operator>does not include</Operator> <Value>{{value}}</Value>","search.operator.array-list-not-includes.name":"does not include","search.operator.array-reference-includes.description":"<Field/> <Operator>includes</Operator> <Value>{{value}}</Value>","search.operator.array-reference-includes.name":"includes","search.operator.array-reference-not-includes.description":"<Field/> <Operator>does not include</Operator> <Value>{{value}}</Value>","search.operator.array-reference-not-includes.name":"does not include","search.operator.asset-file-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.asset-file-equal.name":"is","search.operator.asset-file-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.asset-file-not-equal.name":"is not","search.operator.asset-image-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.asset-image-equal.name":"is","search.operator.asset-image-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.asset-image-not-equal.name":"is not","search.operator.boolean-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.boolean-equal.name":"is","search.operator.date-after.description":"<Field/> <Operator>is after</Operator> <Value>{{value}}</Value>","search.operator.date-after.name":"after","search.operator.date-before.description":"<Field/> <Operator>is before</Operator> <Value>{{value}}</Value>","search.operator.date-before.name":"before","search.operator.date-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.date-equal.name":"is","search.operator.date-last.description":"<Field/> <Operator>is in the last</Operator> <Value>{{value}}</Value>","search.operator.date-last.name":"last","search.operator.date-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.date-not-equal.name":"is not","search.operator.date-range.description":"<Field/> <Operator>is between</Operator> <Value/>","search.operator.date-range.name":"is between","search.operator.date-time-after.description":"<Field/> <Operator>is after</Operator> <Value>{{value}}</Value>","search.operator.date-time-after.name":"after","search.operator.date-time-before.description":"<Field/> <Operator>is before</Operator> <Value>{{value}}</Value>","search.operator.date-time-before.name":"before","search.operator.date-time-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.date-time-equal.name":"is","search.operator.date-time-last.description":"<Field/> <Operator>is in the last</Operator> <Value>{{value}}</Value>","search.operator.date-time-last.name":"last","search.operator.date-time-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.date-time-not-equal.name":"is not","search.operator.date-time-range.description":"<Field/> <Operator>is between</Operator> <Value/>","search.operator.date-time-range.name":"is between","search.operator.defined.description":"<Field/> <Operator>is</Operator> <Value>not empty</Value>","search.operator.defined.name":"not empty","search.operator.not-defined.description":"<Field/> <Operator>is</Operator> <Value>empty</Value>","search.operator.not-defined.name":"empty","search.operator.number-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.number-equal.name":"is","search.operator.number-gt.description":"<Field/> <Operator>></Operator> <Value>{{value}}</Value>
60","search.operator.number-gt.name":"greater than","search.operator.number-gte.description":"<Field/> <Operator>â¥</Operator> <Value>{{value}}</Value>","search.operator.number-gte.name":"greater than or equal to","search.operator.number-lt.description":"<Field/> <Operator><</Operator> <Value>{{value}}</Value>","search.operator.number-lt.name":"less than","search.operator.number-lte.description":"<Field/> <Operator>â¤</Operator> <Value>{{value}}</Value>","search.operator.number-lte.name":"less than or equal to","search.operator.number-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.number-not-equal.name":"is not","search.operator.number-range.description":"<Field/> <Operator>is between</Operator> <Value>{{from}} â {{to}}</Value>","search.operator.number-range.name":"is between","search.operator.portable-text-contains.description":"<Field/> <Operator>contains</Operator> <Value>{{value}}</Value>","search.operator.portable-text-contains.name":"contains","search.operator.portable-text-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.portable-text-equal.name":"is","search.operator.portable-text-not-contains.description":"<Field/> <Operator>does not contain</Operator> <Value>{{value}}</Value>","search.operator.portable-text-not-contains.name":"does not contain","search.operator.portable-text-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.portable-text-not-equal.name":"is not","search.operator.reference-asset-file.description":"<Field/> <Operator>â</Operator> <Value>{{value}}</Value>","search.operator.reference-asset-file.name":"file","search.operator.reference-asset-image.description":"<Field/> <Operator>â</Operator> <Value>{{value}}</Value>","search.operator.reference-asset-image.name":"image","search.operator.reference-document.description":"<Field/> <Operator>â</Operator> <Value>{{value}}</Value>","search.operator.reference-document.name":"document","search.operator.reference-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.reference-equal.name":"is","search.operator.reference-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.reference-not-equal.name":"is not","search.operator.slug-contains.description":"<Field/> <Operator>contains</Operator> <Value>{{value}}</Value>","search.operator.slug-contains.name":"contains","search.operator.slug-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.slug-equal.name":"is","search.operator.slug-not-contains.description":"<Field/> <Operator>does not contain</Operator> <Value>{{value}}</Value>","search.operator.slug-not-contains.name":"does not contain","search.operator.slug-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.slug-not-equal.name":"is not","search.operator.string-contains.description":"<Field/> <Operator>contains</Operator> <Value>{{value}}</Value>","search.operator.string-contains.name":"contains","search.operator.string-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.string-equal.name":"is","search.operator.string-list-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.string-list-equal.name":"is","search.operator.string-list-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.string-list-not-equal.name":"is not","search.operator.string-not-contains.description":"<Field/> <Operator>does not contain</Operator> <Value>{{value}}</Value>","search.operator.string-not-contains.name":"does not contain","search.operator.string-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.string-not-equal.name":"is not","search.ordering.best-match-label":"Best match","search.ordering.created-ascending-label":"Created: Oldest first","search.ordering.created-descending-label":"Created: Newest first","search.ordering.updated-ascending-label":"Updated: Oldest first","search.ordering.updated-descending-label":"Updated: Newest first","search.placeholder":"Search","search.recent-searches-aria-label":"Recent searches","search.recent-searches-label":"Recent searches","search.search-results-aria-label":"Search results","sheet-list.edit-columns":"Edit columns","sheet-list.hide-field":"Remove from table","sheet-list.reset-columns":"Reset columns","sheet-list.select-fields":"Select up to 5 field types","status-button.aria-label":"Configuration status","time-zone.action.search-for-timezone-placeholder":"Search for a city or time zone","time-zone.action.select-local-time-zone":"Select local time zone","time-zone.dialog-info.content-releases":"The selected time zone will change how dates are represented in content releases.","t
60ime-zone.dialog-info.input":"The selected time zone will change how dates are represented only for this input in this document.","time-zone.dialog-info.scheduled-publishing":"The selected time zone will change how dates are represented in schedules.","time-zone.local-time":"local time","time-zone.time-zone":"Time zone","time-zone.time-zone-tooltip-content-releases":"Displaying releases in {{alternativeName}} GMT{{offset}}","time-zone.time-zone-tooltip-input":"Displaying <em>{{title}}</em> in {{alternativeName}} GMT{{offset}}","time-zone.time-zone-tooltip-scheduled-publishing":"Displaying schedules in {{alternativeName}} GMT{{offset}}","timeline.changes.title":"Changes by","timeline.error.load-document-changes-description":"Document history transactions have not been affected.","timeline.error.load-document-changes-title":"An error occurred whilst retrieving document changes.","timeline.error.load-document-changes-version-description":"Enable the events API through the Studio config to view document history.","timeline.error.load-document-changes-version-title":"Version documents history is only available through the Events API.","timeline.error.no-document-history-description":"When changing the content of the document, the document versions will appear in this menu.","timeline.error.no-document-history-title":"No document history","timeline.error.unable-to-load-revision":"Unable to load revision","timeline.latest":"Latest","timeline.latest-revision":"Latest revision","timeline.latest-version":"Latest revision","timeline.list.aria-label":"Document revisions","timeline.loading-history":"Loading historyâ¦","timeline.no-previous-events":"No previous events","timeline.operation.created":"Created","timeline.operation.created-initial":"Created","timeline.operation.created-initial_timestamp":"Created: {{timestamp, datetime}}","timeline.operation.created_timestamp":"Created: {{timestamp, datetime}}","timeline.operation.deleted":"Deleted","timeline.operation.deleted_timestamp":"Deleted: {{timestamp, datetime}}","timeline.operation.draft-created":"Draft created","timeline.operation.draft-created_timestamp":"Draft created: {{timestamp, datetime}}","timeline.operation.draft-discarded":"Discarded draft","timeline.operation.draft-discarded_timestamp":"Discarded draft: {{timestamp, datetime}}","timeline.operation.edited-draft":"Edited","timeline.operation.edited-draft_timestamp":"Edited: {{timestamp, datetime}}","timeline.operation.edited-live":"Live edited","timeline.operation.edited-live_timestamp":"Live edited: {{timestamp, datetime}}","timeline.operation.history-cleared":"Deleted by retention policy","timeline.operation.published":"Published","timeline.operation.published_timestamp":"Published: {{timestamp, datetime}}","timeline.operation.unpublished":"Unpublished","timeline.operation.unpublished_timestamp":"Unpublished: {{timestamp, datetime}}","timeline.operation.version-created":"Version created","timeline.operation.version-created_timestamp":"Version created: {{timestamp, datetime}}","timeline.operation.version-discarded":"Version discarded","timeline.operation.version-discarded_timestamp":"Version discarded: {{timestamp, datetime}}","timeline.since":"{{timestamp, datetime}}","timeline.since-version-missing":"Since: unknown version","toolbar.portable-text.action-button-aria-label":"{{action}}","tree-editing-dialog.breadcrumbs.menu":"Breadcrumb menu","tree-editing-dialog.search-placeholder":"Search","tree-editing-dialog.search.menu-label":"Search menu","tree-editing-dialog.search.no-results-title":"No results found","tree-editing-dialog.sidebar.action.close":"Close sidebar","tree-editing-dialog.sidebar.action.collapse":"Collapse","tree-editing-dialog.sidebar.action.done":"Done","tree-editing-dialog.sidebar.action.expand":"Expand","tree-editing-dialog.sidebar.action.open":"Open sidebar","user-menu.action.free-trial-finished":"Upgrade from free","user-menu.action.free-trial_one":"{{count}} day left in trial","user-menu.action.free-trial_other":"{{count}} days left in trial","user-menu.action.invite-members":"Invite members","user-menu.action.invite-members-aria-label":"Invite members","user-menu.action.manage-project":"Manage project","user-menu.action.manage-project-aria-label":"Manage project","user-menu.action.portable-text.annotation-disabled_empty-block":"Cannot apply {{name}} to empty block","user-menu.action.portable-text.annotation-disabled_multiple-blocks":"Cannot apply {{name}} to multiple blocks","user-menu.action.sign-out":"Sign out","user-menu.appearance-title":"Appearance","user-menu.close-menu":"Close menu","user-menu.color-scheme.dar
60k-description":"Use dark appearance","user-menu.color-scheme.dark-title":"Dark","user-menu.color-scheme.light-description":"Use light appearance","user-menu.color-scheme.light-title":"Light","user-menu.color-scheme.system-description":"Use system appearance","user-menu.color-scheme.system-title":"System","user-menu.locale-title":"Language","user-menu.login-provider":"Signed in with {{providerTitle}}","user-menu.open-menu":"Open menu","workspaces.action.add-workspace":"Add workspace","workspaces.action.choose-another-workspace":"Choose another workspace","workspaces.action.switch-workspace":"Switch workspace","workspaces.choose-your-workspace-label":"Choose your workspace","workspaces.select-workspace-aria-label":"Select workspace","workspaces.select-workspace-label":"Select workspace","workspaces.select-workspace-tooltip":"Select workspace","workspaces.title":"Workspaces"}},{locale:"en-US",namespace:"validation",resources:{"array.exact-length":"Must have exactly {{wantedLength}} items","array.exact-length_blocks":"Must have exactly {{wantedLength}} blocks","array.item-duplicate":"Can't be a duplicate","array.maximum-length":"Must have at most {{maxLength}} items","array.maximum-length_blocks":"Must have at most {{maxLength}} blocks","array.minimum-length":"Must have at least {{minLength}} items","array.minimum-length_blocks":"Must have at least {{minLength}} blocks","date.invalid-format":"Must be a valid ISO-8601 formatted date string","date.maximum":"Must be at or before {{maxDate}}","date.minimum":"Must be at or after {{minDate}}","generic.incorrect-type":'Expected type "{{expectedType}}", got "{{actualType}}"',"generic.not-allowed":"Value did not match any allowed values","generic.not-allowed_hint":'Value "{{hint}}" did not match any allowed values',"generic.required":"Required","number.greater-than":"Must be greater than {{threshold}}","number.less-than":"Must be less than {{threshold}}","number.maximum":"Must be lower than or equal to {{maxNumber}}","number.maximum-precision":"Max precision is {{limit}}","number.minimum":"Must be greater than or equal to {{minNumber}}","number.non-integer":"Must be an integer","object.asset-required":"Asset is required","object.asset-required_file":"File is required","object.asset-required_image":"Image is required","object.media-not-found":"The asset could not be found in the Media Library","object.not-media-library-asset":"Mu
60st be a reference to a Media Library asset","object.not-reference":"Must be a reference to a document","object.reference-not-published":"Referenced document must be published","panel.close-button-aria-label":"Close validation","panel.no-errors-message":"No validation errors","panel.title":"Validation","panel.unpublish-message":"Document is going to unpublish, no validation errors are shown","slug.missing-current":"Slug must have a value","slug.not-object":"Slug must be an object","slug.not-unique":"Slug is already in use","string.email":"Must be a valid email address","string.exact-length":"Must be exactly {{wantedLength}} characters long","string.lowercase":"Must be all lowercase characters","string.maximum-length":"Must be at most {{maxLength}} characters long","string.minimum-length":"Must be at least {{minLength}} characters long","string.regex-does-not-match":'Does not match "{{name}}"-pattern',"string.regex-match":'Should not match "{{name}}"-pattern',"string.uppercase":"Must be all uppercase characters","string.url.disallowed-scheme":"Does not match allowed protocols/schemes","string.url.includes-credentials":"Username/password not allowed","string.url.invalid":"Not a valid URL","string.url.not-absolute":"Relative URLs are not allowed","string.url.not-relative":"Only relative URLs are allowed"}},{locale:"en-US",namespace:"copy-paste",resources:{"copy-paste.field-action-copy-button.document.title":"Copy document","copy-paste.field-action-copy-button.field.title":"Copy field","copy-paste.field-action-paste-button.document.title":"Paste document","copy-paste.field-action-paste-button.field.title":"Paste field","copy-paste.on-paste.validation.read-only-target.description":"The target is read-only","copy-paste.on-paste.validation.schema-type-incompatible.description":"Source and target schema types are not compatible","copy-paste.on-paste.validation.reference-type-incompatible.description":'References of type "{{sourceReferenceType}}" is not allowed in reference field that accepts types "{{targetReferenceTypes}}"',"copy-paste.on-paste.validation.reference-filter-incompatible.description":"Reference is not allowed in reference field according to filter","copy-paste.on-paste.validation.reference-validation-failed.description":'The referenced document "{{ref}}" does not exist',"copy-paste.on-paste.validation.image-file-incompatible.description":'A "{{sourceSchemaType}}" is not allowed in a "{{targetSchemaType}}"',"copy-paste.on-paste.validation.array-type-incompatible.description":'Value of type "{{type}}" is not allowed in this array field',"copy-paste.on-paste.validation.array-value-incompatible.description":'Value of type "{{type}}" is not allowed in this array field',"copy-paste.on-paste.validation.string-value-incompatible.description":'Value "{{value}}" is not allowed in "{{allowedStrings}}"',"copy-paste.on-paste.validation.primitive-type-incompatible.description":'Value of type "{{type}}" is not allowed in this field',"copy-paste.on-paste.validation.clipboard-empty.title":"Nothing to paste","copy-paste.on-paste.validation.clipboard-invalid.title":"Invalid clipboard item","copy-paste.on-paste.validation.schema-type-incompatible.title":"Could not resolve schema type for path: {{path}}","copy-paste.on-paste.validation.partial-warning.title":"Could not paste all values","copy-paste.on-paste.validation.mime-type-incompatible.description":'MIME type "{{mimeType}}" is not accepted for this field',"copy-paste.on-paste.validation.mime-type-validation-failed.description":"MIME type validation failed","copy-paste.on-copy.validation.schema-type-incompatible.title":"Could not resolve schema type for path: {{path}}","copy-paste.on-copy.validation.no-value.title":"Empty value, nothing to copy","copy-paste.on-copy.validation.clipboard-not-supported.description":"Clipboard access required to copy this content. Allow clipboard permissions in your browser settings, then try copying again.","copy-paste.on-copy.validation.clipboard-not-supported.title":"Clipboard access blocked"}}],weekInfo:{firstDay:7,weekend:[6,7]}},r_=(()=>
60{let e="__tmp_supports_local_storage";try{return!(typeof localStorage>"u")&&(localStorage.setItem(e,"---"),localStorage.removeItem(e),!0)}catch{return!1}})();function rk(e,t){return["sanity-locale",e,t].join(":")}function rS(e){let t,n=(0,j.c)(6),{projectId:i,name:r,i18n:a,__internal:o}=_g(),{locales:l}=a,{i18next:s}=o;return n[0]!==s||n[1]!==l||n[2]!==i||n[3]!==e||n[4]!==r?(t=(0,v.jsx)(rI,{...e,projectId:i,sourceId:r,locales:l,i18next:s}),n[0]=s,n[1]=l,n[2]=i,n[3]=e,n[4]=r,n[5]=t):t=n[5],t}function rI(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(24),{projectId:c,sourceId:u,locales:p,i18next:m,children:h}=e;d[0]!==m?(t=e=>(m.on("languageChanged",e),()=>m.off("languageChanged",e)),d[0]=m,d[1]=t):t=d[1];let f=t;d[2]!==m.language||d[3]!==p?(n=()=>p.find(e=>m.language===e.id)||rw,d[2]=m.language,d[3]=p,d[4]=n):n=d[4];let g=(0,_.useSyncExternalStore)(f,n);d[5]!==m?(i={i18next:m},d[5]=m,d[6]=i):i=d[6],d[7]!==m||d[8]!==c||d[9]!==u?(r=async e=>{r_&&localStorage.setItem(rk(c,u),e),await m.changeLanguage(e)},d[7]=m,d[8]=c,d[9]=u,d[10]=r):r=d[10],d[11]!==g||d[12]!==p||d[13]!==i||d[14]!==r?(a={locales:p,currentLocale:g,__internal:i,changeLocale:r},d[11]=g,d[12]=p,d[13]=i,d[14]=r,d[15]=a):a=d[15];let y=a;return d[16]===Symbol.for("react.memo_cache_sentinel")?(o=(0,v.jsx)(ry,{}),d[16]=o):o=d[16],d[17]!==h||d[18]!==y||d[19]!==g.id?(l=(0,v.jsx)(S.U6.Provider,{value:y,children:h},g.id),d[17]=h,d[18]=y,d[19]=g.id,d[20]=l):l=d[20],d[21]!==m||d[22]!==l?(s=(0,v.jsx)(_.Suspense,{fallback:o,children:(0,v.jsx)(eA.xC,{i18n:m,children:l})}),d[21]=m,d[22]=l,d[23]=s):s=d[23],s}function rT(e){return t=>{let n=0,i=(0,eY.W)((t,r)=>e(t,++n,r).pipe(i));return t.pipe((0,e5.M)(()=>{n=0}),i)}}function rE(e,t){let n=[t,!0],i={type:"tuple",tuple:n};return function(t){let r=(0,_.useMemo)(()=>(0,eP.of)(t).pipe((0,eM.n)(t=>(0,eR.x)((0,eP.of)({type:"loading"}),e(t).pipe((0,eV.T)(e=>({type:"value",value:e}))))),(0,ts.S)(([e],t)=>"loading"===t.type?[e,!0]:[t.value,!1],n),(0,eQ.F)(([e,t],[n,i])=>e===n&&t===i),(0,eV.T)(e=>({type:"tuple",tuple:e})),(0,eY.W)(e=>(0,eP.of)({type:"error",error:e}))),[t]),a=(0,tF.J)(r,i);if("error"===a.type)throw a.error;return a.tuple}}function r$(e){return null!=e}function rA(e,{version:t}={}){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return{publishedId:(0,tG.IM)(e),draftId:(0,tG.T4)(e),...t?{versionId:(0,tG.ct)(e,t)}:{}}}let rD=["drafts","published"];function rz(e){return rD.includes(e)}let rP=["draft","published"];function rR(e){return rP.includes(e)}function rN(e){return Array.from(e.reduce((e,t)=>{let n=(0,tG.IM)(t._id),i=e.get(n);return i||(i={id:n,type:t._type,published:void 0,draft:void 0,versions:[]},e.set(n,i)),(0,tG._4)(t._id)&&(i.published=t),(0,tG.R8)(t._id)&&(i.draft=t),(0,tG.A_)(t._id)&&i.versions.push(t),e},new Map).values())}function rO(e){return rN(e).map(e=>e.draft||e.published||e.versions[0]).filter(r$)}let rV=Object.freeze({}),rM=Object.freeze([]);function rL(e){return(0,tG.R8)(e)?"draft":(0,tG.A_)(e)?"version":"published"}function rF(e){return e instanceof Error?e.message:String(e)}let rB=["_id","_type","_createdAt","_updatedAt","_rev"];function rY(e,t){let n=[];return Object.keys(e).forEach(i=>{i.startsWith("_")||function e(i,r){if(null!=i){if("object"==typeof i&&i._ref===t)return void n.push([...r]);if(Array.isArray(i))return void i.forEach((t,n)=>{t&&"object"==typeof t&&t._key?e(t,[...r,{_key:t._key}]):e(t,[...r,n])});
60"object"==typeof i&&Object.keys(i).forEach(t=>{rB.includes(t)||e(i[t],[...r,t])})}}(e[i],[i])}),n}let rH=function(){if("u">typeof globalThis)return globalThis;if("u">typeof window)return window;if("u">typeof self)return self;if("u">typeof global)return global;throw Error("@sanity/ui: could not locate global scope")}();function rU(e){return Array.isArray(e)}function rZ(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function rq(e){return"string"==typeof e}let rW="system.release",rJ="_.releases",rK=["asap","scheduled","undecided"];function rG(e){return"object"==typeof e&&null!==e&&"_type"in e&&e._type===rW}function rX(e){return e.metadata?.cardinality==="one"}function rQ(e){return!!e&&"active"===e.state&&"scheduled"===e.metadata.releaseType&&rX(e)&&!!e.metadata.intendedPublishAt}let r1="object"==typeof document&&"object"==typeof window&&window.ResizeObserver?window.ResizeObserver:eE.tb,r2=(r=(0,e$.A)(),a=new r1(e=>r.publish(e)),{observe:(e,t,n)=>{let i=r.subscribe(n=>{let i=n.find(t=>t.target===e);i&&t(i)});return a.observe(e,n),()=>{i(),a.unobserve(e)}},unobserve:e=>a.unobserve(e)});function r5(e){var t;let n,i=(t=e,n=new nF.A(t),{get(e){let t=n.get(e);if(!t)throw Error(`Key not found in LRU cache: ${e}`);return t.value},set(e,t){n.set(e,{value:t})},delete(e){n.delete(e)},has:e=>n.has(e)});return function(e){return t=>(0,eR.x)((0,eN.v)(()=>i.has(e)?(0,eP.of)({fromCache:!0,value:i.get(e)}):eO.w),t.pipe((0,e5.M)(t=>i.set(e,t)),(0,eV.T)(e=>({fromCache:!1,value:e}))))}}let r0=["sanity.imageAsset","sanity.fileAsset"];function r7(e){return"document"===e.type&&!("document"===e.type&&r0.includes(e.name))}function r3(e,t){return e.name===t||!!e.type&&r3(e.type,t)}let r8=["match","in","asc","desc","true","false","null"],r4=/^[a-zA-Z_][a-zA-Z0-9_]*$/,r6=!(typeof window>"u")&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),r9="object"==typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:void 0;function ae(e,t){let n=function(e,t,n){if(n<0)throw Error("End must be greater than start, use `String.prototype.slice()` for negative values");if(!r9)return e.slice(0,n);let i=0,r="";for(let t of r9.segment(e)){if(i===n)break;r+=t.segment,i++}return r}(e,0,t);return n===e?n:`${n}\u2026`}let at={isLoading:!0,value:void 0,error:null};function an(e,t){let n,i,r=(0,j.c)(4);r[0]!==t?(n=typeof t>"u"?at:{isLoading:!1,value:t,error:null},r[0]=t,r[1]=n):n=r[1];let a=n;return r[2]!==e?(i=e.pipe(e=>e.pipe((0,eV.T)(e=>({isLoading:!1,value:e,error:null})),(0,eY.W)(e=>(0,eP.of)({isLoading:!1,value:void 0,error:e})))),r[2]=e,r[3]=i):i=r[3],(0,tF.J)(i,a)}function ai(e){let[t,n]=(0,_.useState)(e);return(0,D.A)(t,e)?t:(n(e),e)}let ar=!(typeof i7>"u")&&i7?.env?.SANITY_STUDIO_DEBUG_I18N,aa={reverse:e=>`\u202E${e}`,triangles:e=>`\u25E4 ${e} \u25E2`};function ao(e){let t="reverse"===ar||"triangles"===ar?aa[ar]:null;return t?(...n)=>t(e(...n)):e}let al={bindI18n:!1};function as(e,t){let n,i,r,a=(0,j.c)(6);a[0]!==t?(n=t?{keyPrefix:t.keyPrefix,lng:t.lng,...al}:al,a[0]=t,a[1]=n):n=a[1];let{t:o}=(0,eA.Bd)(e,n);return a[2]!==o?(i=ao(o),a[2]=o,a[3]=i):i=a[3],a[4]!==i?(r={t:i},a[4]=i,a[5]=r):r=a[5],r}function ad(e){let t,n,i,r=(0,j.c)(6);r[0]!==e?(t=JSON.stringify((Array.isArray(e)?e:[e]).flatMap(ac).filter(r$).sort()),r[0]=e,r[1]=t):t=r[1];let a=t;r[2]!==a?(n=JSON.parse(a),r[2]=a,r[3]=n):n=r[3];let{t:o}=as(n);return r[4]!==o?(i=function(e){let{i18n:t}=e;return t?new Proxy(e,{get:(e,n)=>{let i=e[n];if("string"==typeof n&&n in t){let{key:e,ns:r}=t[n];return o(e,{ns:r,..."string"==typeof i&&{defaultValue:i}})}return i}}):e},r[4]=o,r[5]=i):i=r[5],i}function ac(e){return e?.i18n?Object.values(e.i18n).map(au):[]}function au(e){let{ns:t}=e;return t}function ap(e){let t,n,i=(0,j.c)(9);e:{let n;if(!e.i18n){let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],i[0]=e):e=i[0],t=e;break e}i[1]!==e.i18n?(n=Array.from(new Set(Object.values(e.i18n).map(am))).sort(),i[1]=e.i18n,i[2]=n):n=i[2],t=n}let{t:r}=as(t);t:{let t,a,{i18n:o}=e;if(!o){n=e;break t}i[3]!==o||i[4]!==r?(t=(e,t)=>{let n=e[t];if("string"==typeof t&&t in o){let{key:e,ns:i}=o[t];return r(e,{ns:i,..."string"==typeof n&&{defaultValue:n}})}return n},i[3]=o,i[4]=r,i[5]=t):t=i[5],i[6]!==e||i[7]!==t?(a=new Proxy(e,{get:t}),i[6]=e,i[7]=t,i[8]=a):a=i[8],n=a}return n}function am(e){let{ns:t}=e;return t}function ah(){return af().currentLocale}function af(){let e=(0,_.useContext)(S.U6);if(!e)throw Error("Sanity LocaleContext value missing. Is this hook being used outside LocaleContext.Provider?");return e}let ag=(o={dateTimeFormat:ay(),listFormat:ay(),numberFormat:ay(),relativeTimeFormat:ay()},{dateTimeFormat:function(e,t){let n=aC(e,t),i=o.dateTimeFormat[n];
60return i||(i=new Intl.DateTimeFormat(e,t),o.dateTimeFormat[n]=i,i)},listFormat:function(e,t){let n=aC(e,t),i=o.listFormat[n];return i||(i=new Intl.ListFormat(e,t),o.listFormat[n]=i,i)},numberFormat:function(e,t){let n=aC(e,t),i=o.numberFormat[n];return i||(i=new Intl.NumberFormat(e,t),o.numberFormat[n]=i,i)},relativeTimeFormat:function(e,t){let n=aC(e,t),i=o.relativeTimeFormat[n];return i||(i=new Intl.RelativeTimeFormat(e,t),o.relativeTimeFormat[n]=i,i)}});function ay(){return Object.create(null)}function aC(e,t){return`${e}-${JSON.stringify(function(e){let t=[];for(let[n,i]of Object.entries(e))t.push(`${n}=${JSON.stringify(i)}`);return t.sort().join(` 61`)}(t))}`}function ax(e){let t=void 0===e?{}:e,n=(0,_.useContext)(S.U6)?.currentLocale.id;return n?ag.listFormat(n,t):ag.listFormat("en-US",{...t,style:"narrow"})}let ab=/^<(?<tag>[^\s\d<][^/?><]+)\/?>/,av=/<\/(?<tag>[^>]+)>/,aj=/<[^>]+\/>/,aw=/^[A-Z][A-Za-z0-9]+$/,a_=/^[a-z]+$/,ak=/{{\s*?([^}]+)\s*?}}/g;function aS(e){let t=[],n=e.matchAll(ak),i=0;for(let r of n){if(typeof r.index>"u")continue;let n=e.slice(i,r.index);n.length>0&&t.push({type:"text",text:n}),t.push(function(e){let[t,...n]=e.replace(/^\{\{|\}\}$/g,"").trim().split(/\s*,\s*/);if(1===n.length&&"list"===n[0])return{type:"interpolation",variable:t,formatters:n};if(n.length>0)throw Error(`Interpolations with formatters are not supported when using <Translate>. Found "${e}". Utilize "useTranslation" instead, or format the values passed to <Translate> ahead of time.`);return{type:"interpolation",variable:t}}(r[0])),i+=n.length+r[0].length}return i<e.length&&t.push({type:"text",text:e.slice(i)}),t}let aI=/^[A-Z]/,aT=new Set(["abbr","address","cite","code","del","em","ins","kbd","q","samp","strong","sub","sup"]);function aE(e){let t,n,i,r,a,o=(0,j.c)(16),l=e.values&&"count"in e.values&&"number"==typeof e.values.count?e.values.count:void 0;o[0]!==e.context||o[1]!==e.i18nKey||o[2]!==e.t||o[3]!==l?(t=e.t(e.i18nKey,{context:e.context,skipInterpolation:!0,count:l}),o[0]=e.context,o[1]=e.i18nKey,o[2]=e.t,o[3]=l,o[4]=t):t=o[4];let s=t;o[5]!==s?(n=function(e){let t=[],n="",i="",r=e;for(;r.length>0;)if(i||"<"!==r[0])if(i&&"<"===r[0]&&"<"!==r[1]){let e=r.match(av);if(e){let a=e.groups.tag;if("/"!==r[1])throw Error(`Expected closing tag for <${i}>, but found new opening tag <${a}>. Nested tags is not supported.`);if(a!==i)throw Error(`Expected closing tag for <${i}>, but found closing tag </${a}> instead. Make sure each opening tag has a matching closing tag.`);
61n&&(t.push(...aS(n)),n=""),t.push({type:"tagClose",name:a}),i="",r=r.slice(e[0].length)}else n+=r[0],r=r.slice(1)}else n+=r[0],r=r.slice(1);else{let e=r.match(ab);if(e){var a;let o=e.groups.tag;(function(e){if(!(aw.test(e)||a_.test(e)))throw Error(e.trim()===e?`Invalid tag "<${e}>". Tag names must be lowercase HTML tags or start with an uppercase letter and can only include letters and numbers.`:`Invalid tag "<${e}>". No whitespace allowed in tags.`)})(o),n&&(t.push(...aS(n)),n=""),(a=e[0],aj.test(a))?t.push({type:"tagOpen",selfClosing:!0,name:o}):(t.push({type:"tagOpen",name:o}),i=o),r=r.slice(e[0].length)}else n+=r[0],r=r.slice(1)}if(i)throw Error(`No matching closing tag for <${i}> found. Either make it self closing (e.g. "<${i}/>") or close it (e.g "<${i}>...</${i}>").`);return n&&t.push(...aS(n)),t}(s),o[5]=s,o[6]=n):n=o[6];let d=n,c=ax();if(o[7]!==c?(i=e=>c.format(e),o[7]=c,o[8]=i):i=o[8],o[9]!==e.components||o[10]!==e.values||o[11]!==i||o[12]!==d){let t={list:i};r=function e(t,n,i,r){let[a,...o]=t;if(!a)return null;if("interpolation"===a.type){let t=n?n[a.variable]:void 0;if(typeof t>"u")return`{{${a.variable}}}`;let l=function(e,t,n){let i=e;for(let r of t)if("list"===r)if(Array.isArray(e))i=n.list(e);else throw Error("List formatter used on non-array value");return`${i}`}(t,a.formatters||[],r);return(0,v.jsxs)(v.Fragment,{children:[l,e(o,n,i,r)]})}if("text"===a.type)return(0,v.jsxs)(v.Fragment,{children:[a.text,e(o,n,i,r)]});if("tagOpen"===a.type&&a.selfClosing){let t=i[a.name];if(!t)throw Error(`Component not found: ${a.name}`);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(t,{}),e(o,n,i,r)]})}if("tagOpen"===a.type&&!a.selfClosing){let t=o.findIndex(e=>"tagClose"===e.type),l=o[t];if(l&&a.name!==l.name)throw Error("Nested tags is not allowed");let s=i[a.name];if(!s&&aI.test(a.name))throw Error(`Component not defined: ${a.name}`);if(!s&&!aT.has(a.name))throw Error(`HTML tag "${a.name}" is not allowed`);let d=o.slice(0,t),c=o.slice(t+1),u=s||a.name;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(u,{children:e(d,n,i,r)}),e(c,n,i,r)]})}return null}(d,e.values,e.components||{},t),o[9]=e.components,o[10]=e.values,o[11]=i,o[12]=d,o[13]=r}else r=o[13];return o[14]!==r?(a=(0,v.jsx)(v.Fragment,{children:r}),o[14]=r,o[15]=a):a=o[15],a}class a$ extends Error{constructor(e,t,n){super(e),this.message=e,this.error=t,this.code=n}}function aA(e){if(e instanceof a$)return(0,eP.of)({status:"error",error:e});throw e}function aD(e){let t,n,i=(0,j.c)(20),{onSetMediaLibraryIds:r}=e,{t:a}=as(),{id:o,organizationId:l,status:s,error:d}=function(e){let t,n,i,r=(0,j.c)(11);if("library"===e.from&&!e.libraryId)throw Error("libraryId is required to fetch organizationId");if("project"===e.from&&!e.projectId)throw Error("projectId is required to fetch organizationId");r[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"v2025-02-19"},r[0]=t):t=r[0];let a=el0(t).observable;if(r[1]!==a||r[2]!==e.from||r[3]!==e.libraryId||r[4]!==e.projectId){e:{var o,l;let t,i=(0,eB.U)({status:"inactive"}),s=(0,eY.W)(aA);if("library"===e.from){let t;r[6]!==e.libraryId?(t=t=>({organizationId:t,status:"active",id:e.libraryId}),r[6]=e.libraryId,r[7]=t):t=r[7],n=(o=e.libraryId,a.request({uri:`/media-libraries/${o}`,method:"GET"}).pipe((0,eF.H)(async e=>{if(e.organizationId)return e.organizationId;throw new a$("Library ID not found","Library ID not found","ERROR_NO_LIBRARY_FOUND")}))).pipe((0,eV.T)(t),i,s);break e}r[8]!==a?(t=e=>a.request({uri:`/media-libraries?organizationId=${e}`,method:"GET"}).pipe((0,eM.n)(e=>Array.isArray(e.data)?(0,eL.H)(e.data):eO.w)).pipe((0,eV.T)(t=>{let{id:n}=t;return{organizationId:e,status:"active",id:n}})),r[8]=a,r[9]=t):t=r[9],n=(l=e.projectId,a.request({uri:`/projects/${l}`,method:"GET"}).pipe((0,eF.H)(async e=>{if(e.organizationId)return e.organizationId;throw new a$("Organization ID not found","Organization ID not found","ERROR_NO_ORGANIZATION_FOUND")}))).pipe((0,eM.n)(t),(0,eH.s)(1),i,s)}r[1]=a,r[2]=e.from,r[3]=e.libraryId,r[4]=e.projectId,r[5]=n}else n=r[5];let s=n;return r[10]===Symbol.for("react.memo_cache_sentinel")?(i={status:"loading"},r[10]=i):i=r[10],(0,tF.J)(s,i)}(e.mediaLibraryInfo);if(i[0]!==o||i[1]!==r||i[2]!==l||i[3]!==s?(t=()=>{"active"===s&&o&&l&&r({libraryId:o,organizationId:l})},n=[o,r,l,s],i[0]=o,i[1]=r,i[2]=l,i[3]=s,i[4]=t,i[5]=n):(t=i[4],n=i[5]),(0,_.useEffect)(t,n),"inactive"===s){let e,t,n;return i[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.YZv,{})}),i[6]=e):e=i[6],i[7]!==a?(t=a("asset-sources.media-library.error.
61no-media-library-provisioned"),i[7]=a,i[8]=t):t=i[8],i[9]!==t?(n=(0,v.jsx)(I.Zp,{padding:4,radius:4,tone:"caution","data-testid":"media-library-absent-warning",children:(0,v.jsxs)(I.so,{gap:3,children:[e,(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:t})]})}),i[9]=t,i[10]=n):n=i[10],n}if("error"===s&&d){let e,t,n,r,o=d.code;return i[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.YZv,{})}),i[11]=e):e=i[11],i[12]!==d.message||i[13]!==a?(t=d.message||a("asset-sources.media-library.error.library-could-not-be-resolved"),i[12]=d.message,i[13]=a,i[14]=t):t=i[14],i[15]!==t?(n=(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:t}),i[15]=t,i[16]=n):n=i[16],i[17]!==o||i[18]!==n?(r=(0,v.jsx)(I.Zp,{padding:4,radius:4,tone:"critical","data-testid":"media-library-provision-error",children:(0,v.jsxs)(I.so,{gap:3,children:[e,(0,v.jsx)(I.BJ,{space:4,"data-testid":o,children:n})]})}),i[17]=o,i[18]=n,i[19]=r):r=i[19],r}return null}let az=new Map;function aP(e){let t,n,i,r,a,o,l=(0,j.c)(23),{projectId:s,library
61Id:d,children:c}=e;l[0]!==d||l[1]!==s?(t=()=>s&&az.get(s)||d&&az.get(s)||null,l[0]=d,l[1]=s,l[2]=t):t=l[2];let[u,p]=(0,_.useState)(t),[m,h]=(0,_.useState)(null),{t:f}=as();l[3]!==s?(n=e=>{p(e),s&&az.set(s,e),az.set(e.libraryId,e)},l[3]=s,l[4]=n):n=l[4];let g=n;l[5]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{let{error:t,info:n}=e;console.error(t,n),h(t)},l[5]=i):i=l[5];let y=i;if(m){let e,t,n;return l[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.YZv,{})}),l[6]=e):e=l[6],l[7]!==f||l[8]!==m.message?(t=m.message||f("asset-sources.media-library.error.library-could-not-be-resolved"),l[7]=f,l[8]=m.message,l[9]=t):t=l[9],l[10]!==t?(n=(0,v.jsx)(I.Zp,{padding:4,radius:4,tone:"critical","data-testid":"media-library-provision-error",children:(0,v.jsxs)(I.so,{gap:3,children:[e,(0,v.jsx)(I.BJ,{space:4,"data-testid":"MEDIA_LIBRARY_ERROR_UNEXPECTED",children:(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:t})})]})}),l[10]=t,l[11]=n):n=l[11],n}return l[12]!==c||l[13]!==g||l[14]!==d||l[15]!==u||l[16]!==s?(r=u?c:(0,v.jsx)(aD,{mediaLibraryInfo:d?{from:"library",libraryId:d}:{from:"project",projectId:s},onSetMediaLibraryIds:g}),l[12]=c,l[13]=g,l[14]=d,l[15]=u,l[16]=s,l[17]=r):r=l[17],l[18]!==r?(a=(0,v.jsx)(tL.tH,{onCatch:y,children:r}),l[18]=r,l[19]=a):a=l[19],l[20]!==u||l[21]!==a?(o=(0,v.jsx)(S.dv.Provider,{value:u,children:a}),l[20]=u,l[21]=a,l[22]=o):o=l[22],o}function aR(){let e,t,n=(0,j.c)(3);n[0]===Symbol.for("react.memo_cache_sentinel")?(e={apiVersion:"vX"},n[0]=e):e=n[0];let i=el0(e);n[1]!==i?(t=i.config(),n[1]=i,n[2]=t):t=n[2];let{token:r}=t;return r}function aN(){return aR()?"token":"cookie"}function aO(){return(0,_.useContext)(S.dv)}function aV(){let e,t,n,i=(0,j.c)(8),r=cY();i[0]===Symbol.for("react.memo_cache_sentinel")?(e={apiVersion:"vX"},i[0]=e):e=i[0];let a=el0(e).config().apiHost.endsWith("sanity.work"),o=r.mediaLibrary?.__internal?.frontendHost??(a?"https://media.sanity.work":"https://media.sanity.io"),l=a?"staging":"production",s=a?"https://sanity-cdn.work":"https://sanity-cdn.com",d=a?"https://api.sanity.work":"https://api.sanity.io";return i[1]!==o||i[2]!==s||i[3]!==d?(t={cdn:s,app:o,api:d},i[1]=o,i[2]=s,i[3]=d,i[4]=t):t=i[4],i[5]!==l||i[6]!==t?(n={__internal:{apiVersion:"vX",appBasePath:"",hosts:t,env:l}},i[5]=l,i[6]=t,i[7]=n):n=i[7],n}function aM(e,t){let n,i=(0,j.c)(2),r=aV(),a=aO(),o=r.__internal.hosts.app,l=r.__internal.appBasePath;i[0]!==t?(n=(0,nU.nk)(t),i[0]=t,i[1]=n):n=i[1];let s=n;return`${o}${l}/${a?.organizationId}/${a?.libraryId}${e}?createPluginView=${s}`}let aL=(e,t)=>{let n,i,r,a,o=(0,j.c)(11),l=aR(),[s,d]=(0,_.useState)(null);o[0]!==s||o[1]!==e?(n=t=>{s?.contentWindow&&s.contentWindow?.postMessage(t,e)},o[0]=s,o[1]=e,o[2]=n):n=o[2];let c=n;return o[3]!==t||o[4]!==s||o[5]!==c||o[6]!==l?(i=()=>{let e=e=>{s&&e.source===s?.contentWindow&&("tokenRequest"===e.data.type&&c({type:"tokenResponse",token:l||null}),t&&t(e.data,c))};return window.addEventListener("message",e,!1),()=>{window.removeEventListener("message",e,!1)}},r=[t,s,c,l],o[3]=t,o[4]=s,o[5]=c,o[6]=l,o[7]=i,o[8]=r):(i=o[7],r=o[8]),(0,_.useEffect)(i,r),o[9]!==c?(a={postMessage:c,setIframe:d},o[9]=c,o[10]=a):a=o[10],a},aF=(0,eI.I4)(T.lG).withConfig({displayName:"AppDialog",componentId:"sc-1t320i6-0"})`padding:1.5rem;[data-ui='Card']:first-child{flex:1;}`,aB={display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},aY={display:"none"},aH=(0,_.forwardRef)(function(e,t){let n,i,r,a=(0,j.c)(7),{src:o,hidden:l}=e,s=l?aY:aB;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n={overflow:"hidden",flexGrow:1,border:"none",margin:0,padding:0,height:"100%",width:"100%"},a[0]=n):n=a[0],a[1]!==t||a[2]!==o?(i=(0,v.jsx)("iframe",{ref:t,src:o,style:n}),a[1]=t,a[2]=o,a[3]=i):i=a[3],a[4]!==s||a[5]!==i?(r=(0,v.jsx)(I.Zp,{style:s,children:i}),a[4]=s,a[5]=i,a[6]=r):r=a[6],r});function aU(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(35),{asset:g,dialogHeaderTitle:y,onClose:C,onSelectNewAsset:x,selectNewAssetButtonLabel:b}=e,w=(0,I.DP)(),{t:_}=as(),{dark:k}=w.sanity.color,S=aV().__internal.hosts.app,T=aN(),E=g.source?.id,$=k?"dark":"light";f[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],f[0]=t):t=f[0],f[1]!==T||f[2]!==$?(n={scheme:$,auth:T,disableNavigation:!0,selectAssetTypes:t,selectionType:"single"},f[1]=T,f[2]=$,f[3]=n):n=f[3];let A=aM(`/assets/${E}`,n);f[4]!==C?(i=e=>{"pageUnloaded"===e.type&&C()},f[4]=C,f[5]=i):i=f[5];let{setIframe:D}=aL(S,i);return E?(f[6]===Symbol.for("react.memo_cache_sentinel")?(r={position:"relative",minHeight:"2dvh"},f[6]=r):r=f[6],f[7]!==x||f[8]!==b?(a=(0,v.jsx)(tL.$n,{onClick:x,text:b,size:"large",tone:"neutral"}),f[7]=x,f[8]=b,f[9]=a):a=f[9],f[10]!==_?(o=_("asset-source.dialog.button.cancel"),f[10]=_,f[11]=o):o=f[11],f[12]!==C||f[13]!==o?(l=(0,v.jsx)(tL.$n,{mode:"bleed",onClick:C,text:o,size:"large"}
61),f[12]=C,f[13]=o,f[14]=l):l=f[14],f[15]!==_?(s=_("asset-sources.media-library.open-in-source-dialog.button.done"),f[15]=_,f[16]=s):s=f[16],f[17]!==C||f[18]!==s?(d=(0,v.jsx)(tL.$n,{onClick:C,text:s,size:"large",tone:"primary"}),f[17]=C,f[18]=s,f[19]=d):d=f[19],f[20]!==l||f[21]!==d?(c=(0,v.jsxs)(I.so,{gap:2,align:"center",children:[l,d]}),f[20]=l,f[21]=d,f[22]=c):c=f[22],f[23]!==c||f[24]!==a?(u=(0,v.jsx)(I.Zp,{width:"full",height:"fill",padding:3,shadow:1,style:r,children:(0,v.jsxs)(I.so,{width:"full",gap:3,align:"center",justify:"space-between",children:[a,c]})}),f[23]=c,f[24]=a,f[25]=u):u=f[25],f[26]===Symbol.for("react.memo_cache_sentinel")?(p={position:"absolute",inset:0,borderTop:"1px solid",borderColor:"var(--card-border-color)",overflow:"hidden",display:"flex"},f[26]=p):p=f[26],f[27]!==A||f[28]!==D?(m=(0,v.jsx)(I.az,{style:p,children:(0,v.jsx)(aH,{ref:D,src:A})}),f[27]=A,f[28]=D,f[29]=m):m=f[29],f[30]!==y||f[31]!==C||f[32]!==u||f[33]!==m?(h=(0,v.jsx)(aF,{header:y,id:"media-library-plugin-dialog-open-in-source",onClose:C,onClickOutside:C,open:!0,"data-testid":"media-library-plugin-dialog-open-in-source",width:3,footer:u,children:m}),f[30]=y,f[31]=C,f[32]=u,f[33]=m,f[34]=h):h=f[34],h):(console.warn("Cannot open asset in source: missing asset source id",{asset:g}),null)}let aZ=(0,tW.g_)({name:"Version Document Added to Release ",version:1,description:"User added a document to a release"}),aq=(0,tW.g_)({name:"Release Created",version:1,description:"User created a release"});(0,tW.g_)({name:"Release Updated",version:1,description:"User updated a release"});let aW=(0,tW.g_)({name:"Release Deleted",version:1,description:"User deleted a release"}),aJ=(0,tW.g_)({name:"Release Published",version:1,description:"User published a release"}),aK=(0,tW.g_)({name:"Release Scheduled",version:1,description:"User scheduled a release"}),aG=(0,tW.g_)({name:"Release Unscheduled",version:1,description:"User unscheduled a release"}),aX=(0,tW.g_)({name:"Release Archived",version:1,description:"User archived a release"}),aQ=(0,tW.g_)({name:"Release Unarchived",version:1,description:"User unarchived a release"}),a1=(0,tW.g_)({name:"Release Reverted",version:1,description:"User reverted a release"}),a2=(0,tW.g_)({name:"Release Duplicated",version:1,description:"User duplicated a release"}),a5=eI.I4.span.withConfig({displayName:"ChipButtonContainer",componentId:"sc-1avgrhw-0"})`display:inline-flex;--border-color:var(--card-border-color);`,a0=(0,eI.I4)(I.$n).withConfig({displayName:"ChipButton",componentId:"sc-1avgrhw-1"})`flex:none;transition:none;cursor:pointer;--card-border-color:var(--border-color);`,a7=(0,_.forwardRef)(function(e,t){let n,i=(0,j.c)(3);return i[0]!==e||i[1]!==t?(n=(0,v.jsx)(a5,{children:(0,v.jsx)(a0,{ref:t,paddingY:2,paddingLeft:2,paddingRight:3,space:2,radius:"full",...e})}),i[0]=e,i[1]=t,i[2]=n):n=i[2],n});function a3(){let e=(0,_.useContext)(S.A3);if(!e)throw Error("usePerspective must be used within a PerspectiveProvider");return e}let a8=()=>(0,v.jsx)(_.Fragment,{});function a4(e){let t,n=(0,j.c)(4),{options:i}=_g().__internal,{defaultComponent:r,pick:a}=e;if(n[0]!==r||n[1]!==i||n[2]!==a){let e=[...YZ(i,[])];e.reverse(),t=function(e,t){function n(t){return(0,v.jsx)(e,{...t})}return function(e){let i,r,a=(0,j.c)(4),o=n;if(a[0]===Symbol.for("react.memo_cache_sentinel")){for(let e of t){let t=o;o=n=>(0,v.jsx)(e,{...n,renderDefault:t})}a[0]=o}else o=a[0];return a[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(T.EA,{padding:3,radius:1,animated:!0}),a[1]=i):i=a[1],a[2]!==e?(r=(0,v.jsx)(_.Suspense,{fallback:i,children:o({...e,renderDefault:a8})}),a[2]=e,a[3]=r):r=a[3],r}}(r,e.map(e=>{let{config:t}=e;return a(t)}).filter(Boolean)),n[0]=r,n[1]=i,n[2]=a,n[3]=t}else t=n[3];return t}function a6(e){return e.type?a6(e.type):"block"===e.name}function a9(e){return"field"===e.kind&&"array"===e.field.schemaType.jsonType}let oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/_key\s*==\s*['"](.*)['"]/;function on(e){if(!Array.isArray(e))throw Error("Path is not an array");
61return e.reduce((e,t,n)=>{if((0,eD.wr)(t))return`${e}[${t}]`;if((0,eD.tA)(t)&&t._key)return`${e}[_key=="${t._key}"]`;if((0,eD.Z9)(t)){let[n,i]=t;return`${e}[${n}:${i}]`}if("string"==typeof t)return`${e}${0===n?"":"."}${t}`;throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}function oi(e,t){let n=t[0];if(typeof n>"u")return e;let i=t.slice(1);if((0,eD.wr)(n))return oi(Array.isArray(e)?e[n]:void 0,i);if((0,eD.tA)(n))return oi(Array.isArray(e)?e.find(e=>e._key===n._key):void 0,i);if("string"==typeof n)return oi(rZ(e)?e[n]:void 0,i);throw Error(`Unknown segment type ${JSON.stringify(n)}`)}function or(e){let t=e.match(oe);if(!t)throw Error("Invalid path string");return t.map(oa)}function oa(e){return(0,eD.wr)(e)?Number(e.replace(/[^\d]/g,"")):(0,eD.tA)(e)?function(e){let t=e.match(ot);if(!t)throw Error("Invalid key segment");return{_key:t[1]}}(e):(0,eD.Z9)(e)?function(e){let[t,n]=e.split(":").map(e=>""===e?e:Number(e));return[t,n]}(e):e}function oo(e,t){return e.length===t.length&&e.every((e,n)=>{let i=t[n];return(0,eD.tA)(e)&&(0,eD.tA)(i)?e._key===i._key:(0,eD.wr)(e)?Number(e)===Number(i):(0,eD.Z9)(e)&&(0,eD.Z9)(i)?e[0]===i[0]&&e[1]===i[1]:e===i})}function ol(e){return(0,eD.o8)(e)?e._key:void 0}function os(e){let t=ol(e);return t?{_key:t}:void 0}function od(e,t){return e.get(t?.author||null)}function oc(e,t){var n=e,i=Array.isArray(t)?t:or(t);let r=function e(t,n,i=[]){if(0===n.length)return t;let r=n[0],a=n.slice(1);if((0,eD.Z9)(r))throw Error("Index tuples are not supported in diff paths");if((0,eD.wr)(r)||(0,eD.tA)(r)){if((0,eD.wr)(r)||r._key,"array"!==t.type)return void on(i);let n=t.items.find((0,eD.wr)(r)?e=>e.toIndex===r:e=>{var t,n;let i;return t=e,n=r,"object"===(i=t.diff).type&&!!i.toValue&&i.toValue._key===n});return n?e(n.diff,a,i.concat(r)):void on(i)}if("object"!==t.type)return void on(i);let o=t.fields[r];return typeof o>"u"?void on(i):e(o,a,i.concat(r))}(n,i);return r&&"unchanged"!==r.action&&r.annotation||void 0}function ou(){let e=(0,_.useContext)(S.vu);if(!e)throw Error("UserColorManager: missing context value");return e}function op(e){let t,n,i=(0,j.c)(5),r=ou();i[0]!==r||i[1]!==e?(t=e?r.listen(e):eO.w,i[0]=r,i[1]=e,i[2]=t):t=i[2];let a=t;return i[3]!==r?(n=r.get(null),i[3]=r,i[4]=n):n=i[4],(0,tF.J)(a,n)}let om=["green","red","gray"],oh=ez.Cv.filter(e=>!om.includes(e)),of=e=>{let t="dark"===e;return{background:t?"900":"100",border:t?"700":"300",text:t?"200":"700"}};function og(e){let t,n,i=(0,j.c)(6),{children:r,manager:a}=e,o=enm();i[0]!==a||i[1]!==o?(t=a||function(e){let t,{anonymousColor:n,colors:i,currentUserColor:r,scheme:a}=e,o=i||(e=>{let{background:t,border:n,text:i}=of(e);return oh.reduce((e,r)=>(e[r]={name:r,background:ez.OZ[r][t].hex,border:ez.OZ[r][n].hex,text:ez.OZ[r][i].hex,tints:ez.OZ[r]},e),{})})(a),l=n||(e=>{let{background:t,border:n,text:i}=of(e);return{name:"gray",background:ez.OZ.gray[t].hex,border:ez.OZ.gray[n].hex,text:ez.OZ.gray[i].hex,tints:ez.OZ.gray}})(a),s=r||"purple";if(!o.hasOwnProperty(s))throw Error(`'colors' must contain 'currentUserColor' (${s})`);let d=Object.keys(o),c=new Map,u=new Map,p=d.reduce((e,t)=>(e[t]=0,e),{}),m=new Map;return e?.userStore&&e.userStore.me.subscribe(e=>{var n;t=n=e?e.id:null,p[s]+=n?1:-1}),{get:function(e){return e?o[h(e)]:l},listen:function(e){var t,n;let i=c.get(e);if(i)return i;let r=h(e);return t=e,n=r,i=new eU.c(e=>{let i=o[n];return e.next(i),()=>{c.delete(t),m.delete(t),p[n]--}}).pipe((0,e1.t)({refCount:!0})),c.set(e,i),i}};function h(e){var n;let i,r;if(e===t)return s;let a=m.get(e);if(a)return a;let o=u.get(e);if(o&&(0===p[o]||!d.find(e=>0===p[e])))return f(e,o);let l=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return d[Math.abs(t)%d.length]}(e);return 0===p[l]?f(e,l):f(e,(n=o,i=1/0,r=[],d.forEach(e=>{let t=p[e];t===i?r.push(e):t<i&&(i=t,r=[e])}),n&&r.includes(n)?n:r[0]))}function f(e,t){return m.set(e,t),u.set(e,t),p[t]++,t}}({scheme:o}),i[0]=a,i[1]=o,i[2]=t):t=i[2];let l=t;return i[3]!==r||i[4]!==l?(n=(0,v.jsx)(S.vu.Provider,{value:l,children:r}),i[3]=r,i[4]=l,i[5]=n):n=i[5],n}function oy(e){let t,n=(0,j.c)(3),i=ou();return n[0]!==e||n[1]!==i?(t=od(i,e),n[0]=e,n[1]=i,n[2]=t):t=n[2],t}function oC(e,t){let n,i,r,a=(0,j.c)(8);a[0]!==t?(n=void 0===t?[]:t,a[0]=t,a[1]=n):n=a[1];let o=n,l=ou();a[2]!==e||a[3]!==o?(i=oc(e,o),a[2]=e,a[3]=o,a[4]=i):i=a[4];let s=i;return a[5]!==s||a[6]!==l?(r=od(l,s),a[5]=s,a[6]=l,a[7]=r):r=a[7],r}let ox=function(){if(!r_){let e;return e=Object.create(null),{getKey:t=>e[t]||null,setKey(t,n){e[t]=n}}}return{getKey:function(e){let t=localStorage.getItem(e);return null===t?null:function(e){try{return JSON.parse(e)}catch(e){return console.warn(`Failed to parse settings: ${e.message}`),null}}(t)},setKey:function(e,t){typeof t>"u"||null===t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))}}}(),ob={apiVersion:"2025-02-19"},ov={"x-sanity-app":`studio@${tV.s}`},oj=(e,t)=>t?e.withConfig({apiVersion:t}):e;
61class ow extends Error{constructor({projectId:e,isStaging:t}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e,this.isStaging=t}}let o_={};function ok(e,t){r_?localStorage[e]=t:o_[e]=t}function oS(e){r_?localStorage.removeItem(e):delete o_[e]}let oI=eI.I4.svg.withConfig({displayName:"GithubRootSvg",componentId:"sc-1uv6cyh-0"})(({theme:e})=>{let{fg:t}=e.sanity.color.base;return(0,eI.AH)` 62 fill: ${t}; 63 `}),oT=eI.I4.img.withConfig({displayName:"CustomImage",componentId:"sc-1uv6cyh-1"})`height:19px;width:19px;object-fit:contain;`;function oE(e){let t,n=(0,j.c)(3),{provider:i}=e;return n[0]!==i.logo||n[1]!==i.name?(t=i.logo?(0,v.jsx)(oT,{src:i.logo,alt:`Logo for ${i.name}`}):void 0,n[0]=i.logo,n[1]=i.name,n[2]=t):t=n[2],t}let o$={google:()=>{let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsxs)("svg",{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[(0,v.jsx)("path",{d:"M11 24a13 13 0 0 1 .66-4.08l-7.4-5.66a22.18 22.18 0 0 0 0 19.49l7.4-5.67A13 13 0 0 1 11 24z",fill:"#fbbc05"}),(0,v.jsx)("path",{d:"M24 11a12.72 12.72 0 0 1 8.1 2.9l6.4-6.4a22 22 0 0 0-34.24 6.75l7.4 5.66A13 13 0 0 1 24 11z",fill:"#ea4335"}),(0,v.jsx)("path",{d:"M24 37a13 13 0 0 1-12.34-8.92l-7.4 5.66A21.93 21.93 0 0 0 24 46a21 21 0 0 0 14.33-5.48l-7-5.44A13.59 13.59 0 0 1 24 37zm-12.35-8.93l-7.4 5.67 7.4-5.66z",fill:"#34a853"}),(0,v.jsx)("path",{d:"M44.5 20H24v8.5h11.8a9.91 9.91 0 0 1-4.49 6.58l7 5.44C42.37 36.76 45 31.17 45 24a18.25 18.25 0 0 0-.5-4z",fill:"#4285f4"})]}),t[0]=e):e=t[0],e},github:()=>{let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(oI,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 438.55 438.55",children:(0,v.jsx)("path",{d:"M409.13 114.57a218.32 218.32 0 0 0-79.8-79.8Q278.94 5.36 219.27 5.36T109.21 34.77a218.29 218.29 0 0 0-79.8 79.8Q0 165 0 224.63q0 71.67 41.83 128.91t108.06 79.23q7.71 1.43 11.42-2a11.17 11.17 0 0 0 3.69-8.57q0-.86-.14-15.42t-.14-25.41l-6.57 1.14a83.77 83.77 0 0 1-15.85 1 120.73 120.73 0 0 1-19.84-2 44.34 44.34 0 0 1-19.11-8.51 36.23 36.23 0 0 1-12.56-17.6l-2.86-6.57a71.34 71.34 0 0 0-9-14.56q-6.14-8-12.42-10.85l-2-1.43a21 21 0 0 1-3.71-3.43 15.66 15.66 0 0 1-2.57-4q-.86-2 1.43-3.29C61.2 310.42 64 310 68 310l5.71.85q5.71 1.14 14.13 6.85a46.08 46.08 0 0 1 13.85 14.84q6.57 11.71 15.85 17.85t18.7 6.14a81.19 81.19 0 0 0 16.27-1.42 56.78 56.78 0 0 0 12.85-4.29q2.57-19.14 14-29.41a195.49 195.49 0 0 1-29.36-5.13 116.52 116.52 0 0 1-26.83-11.14 76.86 76.86 0 0 1-23-19.13q-9.14-11.42-15-30t-5.8-42.81q0-34.55 22.56-58.82-10.57-26 2-58.24 8.28-2.57 24.55 3.85t23.84 11q7.57 4.56 12.13 7.71a206.2 206.2 0 0 1 109.64 0l10.85-6.85a153.65 153.65 0 0 1 26.26-12.56q15.13-5.71 23.13-3.14 12.84 32.26 2.28 58.24 22.55 24.27 22.56 58.82 0 24.27-5.85 43t-15.12 30a79.82 79.82 0 0 1-23.13 19 116.74 116.74 0 0 1-26.84 11.14 195.29 195.29 0 0 1-29.23 5.07q14.8 12.84 14.81 40.58v60.2a11.37 11.37 0 0 0 3.57 8.56q3.57 3.42 11.28 2 66.24-22 108.07-79.23t41.83-128.91q-.03-59.62-29.43-110.05z"})}),t[0]=e):e=t[0],e}},oA="sanity:last_used_provider";async function oD({client:e,mode:t,providers:n=[]}){if("replace"===t&&Array.isArray(n))return n;let{providers:i}=await e.request({uri:"/auth/providers"});return"function"==typeof n?n(i):0===n.length?i:"replace"===t?n:i.filter(e=>n.some(t=>t.url!==e.url)).concat(n)}function oz({loginMethod:e="dual",projectId:t,url:n,redirectPath:i}){let r=new URLSearchParams;return r.set("origin",`${window.location.origin}${i}`),r.set("projectId",t),"token"===e?r.set("withSid","true"):r.set("type",e),`${n}?${r}`}function oP(e){let t,n,i,r,a,o=(0,j.c)(7);return o[0]===Symbol.for("react.memo_cache_sentinel")?(t={width:"100%"},o[0]=t):t=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(I.Ex,{radius:2,tone:"primary",style:{alignSelf:"start",marginBottom:"8px"},children:"Last used"}),o[1]=n):n=o[1],o[2]!==e?(i=(0,v.jsx)(oR,{autoFocus:!0,tone:"primary",...e}),o[2]=e,o[3]=i):i=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.jsx)(I.EY,{size:0,align:"center",style:{margin:"13px 0 13px 0"},children:"OR"}),o[4]=r):r=o[4],o[5]!==i?(a=(0,v.jsxs)(I.so,{direction:"column",style:t,children:[n,i,r]}),o[5]=i,o[6]=a):a=o[6],a}function oR(e){let t,n,i,r,a,o=(0,j.c)(15),{href:l,provider:s,tone:d,autoFocus:c}=e,u=void 0===d?"default":d,p=void 0!==c&&c;o[0]!==p?(t=e=>{p&&e?.focus()},o[0]=p,o[1]=t):t=o[1];let m=t;o[2]!==s.name?(n=()=>{localStorage.setItem(oA,s.name)},o[2]=s.name,o[3]=n):n=o[3];let h=n,f=o$[s.name]||oE;return o[4]===Symbol.for("react.memo_cache_sentinel")?(i={width:"100%"},o[4]=i):i=o[4],o[5]!==f||o[6]!==s?(r=(0,v.jsx)(f,{provider:s}),o[5]=f,o[6]=s,o[7]=r):r=o[7],o[8]!==m||o[9]!==h||o[10]!==l||o[11]!==s.title||o[12]!==r||o[13]!==u?(a=(0,v.jsx)(tL.$n,{ref:m,as:"a",href:l,mode:"ghost",size:"large",tone:u,style:i,text:s.title,icon:r,onClick:h}),o[8]=m,o[9]=h,o[10]=l,o[11]=s.title,o[12]=r,o[13]=u,o[14]=a):a=o[14],a}let oN=/sid=([^&]{20,})&?/,oO=function(){if(typeof window>"u"||"object"!=typeof window.location)return null;let e=window.location.hash,[,t]=e.match(oN)||[];
63if(!t)return null;let n=e.replace(oN,""),i=new URL(window.location.href);return i.hash=n.length>1?n:"",history.replaceState(null,"",i),t}(),oV=e=>{if(!e)throw Error("Invalid project id");return`__studio_auth_token_${e}`},oM=(e,t)=>"cookie"===e?{withCredentials:!0}:"token"===e?t?{token:t}:null:t?{token:t}:{withCredentials:!0},oL=e=>{let t=(e=>{try{var t;let n=(t=oV(e),r_?localStorage[t]:o_[t]);if(!n)return null;let{token:i}=JSON.parse(n);return i&&"string"==typeof i?i:null}catch(e){return console.error(e),null}})(e),n=(()=>{if(typeof window>"u"||"object"!=typeof window.location)return null;let e=/token=([^&]{32,})&?/,[,t]=window.location.hash.match(e)||[];if(!t)return null;let n=window.location.hash.replace(e,""),i=new URL(window.location.href);return i.hash=n.length>1?n:"",history.replaceState(null,"",i),t})();return n&&(!t||n!==t)?(oB({token:n,projectId:e}),n):t||null},oF=e=>{try{oS(oV(e))}catch(e){console.error("Failed to clear auth token from storage:",e)}},oB=({token:e,projectId:t})=>{try{ok(oV(t),JSON.stringify({token:e,time:new Date().toISOString()}))}catch(e){console.error("Failed to save auth token to storage:",e)}},oY=async(e,t)=>{try{let t=await e.request({uri:"/users/me",tag:"users.get-current"});return"string"==typeof t?.id?t:null}catch(n){if(401===n.statusCode)return oF(e.config().projectId||""),t(null),null;if(await e.request({uri:"/ping",withCredentials:!1,tag:"cors-check"}).then(()=>!0,()=>!1))throw new ow({isStaging:e.config().apiHost.endsWith(".work"),projectId:e.config()?.projectId});if(n.isNetworkError&&!n.message&&n.request&&n.request.url){let e=new URL(n.request.url).host;throw Error(`Unknown network error attempting to reach ${e}`,{cause:n})}throw n}},oH=(0,z.A)(function({clientFactory:e,projectId:t,dataset:n,apiHost:i,loginMethod:r="dual",...a}){var o;let l,s,d,{broadcast:c,messages:u}=(o=`dual_mode_auth_${t}`,l=typeof window>"u"?(0,eP.of)():(0,eW.R)(window,"storage"),s=`__studio_local_storage_messaging_${o}`,d=new eq.B,{messages:(0,eZ.h)(d,l.pipe((0,to.p)(e=>e.key===s),(0,eV.T)(e=>e.newValue),(0,to.p)(r$),(0,eV.T)(e=>JSON.parse(e)))).pipe((0,e1.t)(1)),broadcast:function(e){try{ok(s,JSON.stringify(e)),oS(s),d.next(e)}catch{}}}),p=e??tM.UU,m=u.pipe((0,tr.Z)(["dual","token"].includes(r)?oL(t):null)),h={};i?h.apiHost=i:"u">typeof __SANITY_STAGING__&&!0===__SANITY_STAGING__&&(h.apiHost="https://api.sanity.work");let f=m.pipe((0,eV.T)(e=>p({projectId:t,dataset:n,apiVersion:"2021-06-07",useCdn:!1,...oM(r,e),perspective:"raw",requestTagPrefix:"sanity.studio",ignoreBrowserTokenWarning:!0,allowReconfigure:!1,headers:ov,...h})),(0,eM.n)(e=>(0,eN.v)(async()=>{let t=await oY(e,c);return{currentUser:t,client:e,authenticated:!!t}})),(0,eQ.F)((e,t)=>(0,D.A)(e.currentUser,t.currentUser)),(0,e1.t)(1));async function g(){let e,i,a=((i=oO)&&(oO=null),i);if(!a)return void c("cookie"===r?null:oL(t));let o=p({projectId:t,dataset:n,useCdn:!0,withCredentials:!0,apiVersion:"2021-06-07",requestTagPrefix:"sanity.studio",headers:ov,...h});(("dual"===r||"cookie"===r)&&(e=await oY(o,c)),e||"cookie"===r)?c(null):c(await y(o,a)??null)}async function y(e,n){let{token:i}=await e.request({method:"GET",uri:"/auth/fetch",query:{sid:n},tag:"auth.fetch-token"});return oB({token:i,projectId:t}),i}async function C(){let e=oL(t),i=p({projectId:t,dataset:n,useCdn:!0,...oM(r,e),apiVersion:"2021-06-07",requestTagPrefix:"sanity.studio",headers:ov,...h});oF(t),await i.request({uri:"/auth/logout",method:"POST"}),c(null)}let x=function({getClient:e,loginMethod:t,redirectOnSingle:n,...i}){let r=rE(e);function a(e){if(!e||e.length<=1)return;let t=localStorage.getItem(oA);return e?.find(e=>{let{name:n}=e;return n===t})}return function(e){let o,l,s,d,c,u,p,m,h,f=(0,j.c)(22),{projectId:g,...y}=e,C=y.redirectPath||y.basePath||"/";f[0]===Symbol.for("react.memo_cache_sentinel")?(o={providers:[],isLoading:!0},f[0]=o):o=f[0];let[x,b]=(0,_.useState)(o),[w,k]=(0,_.useState)(null);if(w)throw w;let[S]=r();f[1]!==S?(l=async()=>{let e=[];
63if(!S)return[];try{e=await oD({client:S,...i})}catch(e){k(e)}return e},f[1]=S,f[2]=l):l=f[2];let T=l;f[3]!==S||f[4]!==T?(s=()=>{S&&(async()=>{let e=await T(),t=a(e);b({providers:e,lastUsedProvider:t,isLoading:!1})})()},d=[S,a,T],f[3]=S,f[4]=T,f[5]=s,f[6]=d):(s=f[5],d=f[6]),(0,_.useEffect)(s,d);let{providers:E,lastUsedProvider:$,isLoading:A}=x,D=n&&E?.length===1&&E?.[0]&&oz({loginMethod:t,projectId:g,url:E[0].url,redirectPath:C}),z=A||D;f[7]!==$?.name?(c=e=>{let{name:t}=e;return t!==$?.name},f[7]=$?.name,f[8]=c):c=f[8];let P=E.filter(c);if((0,_.useEffect)(()=>{D&&(window.location.href=D)},[D]),z){let e;return f[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ry,{showText:!0}),f[9]=e):e=f[9],e}let R=I.BJ;f[10]===Symbol.for("react.memo_cache_sentinel")?(u=(0,v.jsx)(I.DZ,{align:"center",size:1,children:"Choose login provider"}),f[10]=u):u=f[10];let N=I.BJ,O=$&&(0,v.jsx)(oP,{provider:$,href:oz({loginMethod:t,projectId:g,url:$.url,redirectPath:C})}),V=I.BJ,M=P?.map((e,n)=>(0,v.jsx)(oR,{provider:e,href:oz({loginMethod:t,projectId:g,url:e.url,redirectPath:C})},`${e.url}_${n}`));return f[11]!==V||f[12]!==M?(p=(0,v.jsx)(V,{space:2,children:M}),f[11]=V,f[12]=M,f[13]=p):p=f[13],f[14]!==N||f[15]!==p||f[16]!==O?(m=(0,v.jsxs)(N,{children:[O,p]}),f[14]=N,f[15]=p,f[16]=O,f[17]=m):m=f[17],f[18]!==R||f[19]!==m||f[20]!==u?(h=(0,v.jsxs)(R,{space:4,children:[u,m]}),f[18]=R,f[19]=m,f[20]=u,f[21]=h):h=f[21],h}}({...a,getClient:()=>f.pipe((0,eV.T)(e=>e.client)),loginMethod:r});return{handleCallbackUrl:g,token:m,state:f,LoginComponent:x,logout:C}},function e(t){return"object"!=typeof t||null===t?`${t}`:JSON.stringify(Object.fromEntries(Object.entries(t).sort(([e],[t])=>e.localeCompare(t,"en")).map(([t,n])=>[t,e(n)])))});function oU(e){return"google"===e?"Google":"github"===e?"GitHub":"sanity"===e?"Sanity":e?.startsWith("saml-")?"SAML/SSO":void 0}let oZ=typeof window>"u"?(0,eP.of)({}):(0,eW.R)(window,"online"),oq=typeof window>"u"?(0,eP.of)({}):(0,eW.R)(window,"offline"),oW={type:"connecting"},oJ=(0,tB.t)(),oK=oJ[0];oJ[1];let oG="object"==typeof location?location.search:"",oX={name:"default",metadata:{}},oQ={coreUi:{globalUserMenu:!0,globalWorkspaceControl:!0,comlink:!0},default:{}},o1=rE(([e,t])=>(0,eL.H)(e.getUser(t).catch(e=>(console.error(e),null))));function o2(e){let t,n=(0,j.c)(3),i=cl();return n[0]!==e||n[1]!==i?(t=[i,e],n[0]=e,n[1]=i,n[2]=t):t=n[2],o1(t)}function o5(){let{currentUser:e}=_g();return e}let o0=e=>{let t=e.LOCAL,n=e.document.HEAD;return t&&{...t,_type:(n||t)._type,_rev:(n||t)._rev,_updatedAt:new Date().toISOString()}},o7=e=>({type:"snapshot",document:e}),o3=e=>e.document,o8=(e,t)=>{let n,i,r,a,o,l,s,d,c,u,p,m,h=(n=new eq.B,i=new e2.t(!0),r=new eq.B,a=new eq.B,o=new eq.B,l=new eq.B,s=t.pipe((0,ts.S)((e,t)=>{var n;let s;return"snapshot"===t.type?(e&&e.commit(),i.next(!0),n=t.document||null,(s=new ie.Xg(n)).onMutation=({mutation:e,remote:t})=>{r.next({type:"mutation",document:o0(s),mutations:e.mutations,origin:t?"remote":"local"})},s.onRemoteMutation=e=>{o.next({type:"remoteMutation",head:s.document.HEAD,transactionId:e.transactionId,timestamp:e.timestamp,author:e.identity,effects:e.effects})},s.onRebase=(e,t,n)=>{a.next({type:"rebase",document:e,remoteMutations:t,localMutations:n})},s.onConsistencyChanged=e=>{i.next(e)},s.commitHandler=e=>l.next(e),s):null===e?(console.warn('Ignoring event of type "%s" since buffered document has not yet been set up with snapshot',t.type),null):e},null),(0,to.p)(e=>null!==e),(0,eQ.F)(),(0,tS.H)(1),(0,tI.B)()),d=t.pipe((0,to.p)(e=>"mutation"===e.type),(0,tT.E)(s),(0,eV.T)(([e,t])=>(t.arrive(new ie.sM(e)),o0(t)))),c=n.pipe((0,tT.E)(s),(0,e5.M)(([e,t])=>{"mutation"===e.type&&t.add(new ie.sM({mutations:e.mutations})),"commit"===e.type&&t.commit()}),(0,t_.C)(eO.w),(0,e7.u)()),u=e=>{let t;return t={type:"mutation",mutations:e},n.next(t)},p=(0,eZ.h)(s.pipe((0,eV.T)(e=>e.LOCAL)),r.pipe((0,eV.T)(o3)),a.pipe((0,eV.T)(o3)),d).pipe((0,eV.T)(o7),(0,tS.H)(1),(0,tI.B)()),m=(0,eZ.h)(s.pipe((0,eV.T)(e=>e.document.HEAD),(0,eV.T)(o7)),o).pipe((0,tS.H)(1),(0,tI.B)()),{updates$:(0,eZ.h)(p,c,r,a),consistency$:i.pipe((0,eQ.F)(),(0,tS.H)(1),(0,tI.B)()),remoteSnapshot$:m,commitRequest$:l,addMutation:e=>u([e]),addMutations:u,commit:()=>{s.pipe((0,eH.s)(1),(0,e5.M)(e=>e.commit())).subscribe()}}),f=t=>{let{_id:n,_rev:i,_updatedAt:r,...a}=t;return{_id:e,...a}},g={delete:{id:e}};return{events:h.updates$,consistency$:h.consistency$,remoteSnapshot$:h.remoteSnapshot$,commitRequest$:h.commitRequest$,patch:t=>t.map(t=>({patch:{...t,id:e}})),create:e=>({create:f(e)}),createIfNotExists:e=>({createIfNotExists:f(e)}),createOrReplace:e=>({createOrReplace:f(e)}),delete:()=>g,mutate:e=>h.addMutations(e),commit:()=>h.commit()}};function o4(e,t){var n;return n="function"==typeof e?{predicate:e,...t}:e,e=>{let t,i=!1,{predicate:r,...a}=n,o=e.pipe((0,e5.M)(e=>{n.predicate(e)&&(i=!0,t=e)}),(0,e0.j)(()=>{i=!1,t=void 0}),(0,e7.u)(a)),l=new eU.c(e=>{i&&e.next(t),e.complete()});return(0,eZ.h)(o,l)}}let o6=tH("sanity:document-store"),o9=[];
63function le(e){let{resolveChainDeadline:t=3e4,maxBufferSize:n=20}={};return e=>e.pipe((0,ts.S)((e,t)=>{if("mutation"===t.type&&!e.base)throw Error("Invalid state. Cannot create a sequence without a base");if("snapshot"===t.type)return{base:{revision:t.document?._rev},buffer:o9,emitEvents:[t]};if("mutation"===t.type){var i;let r,a=(i=e.buffer.concat(t),r={},i.forEach(e=>{r[e.resultRev]=i.find(t=>t.resultRev===e.previousRev)}),Object.entries(r).filter(([,e])=>!e).map(e=>{let[t]=e,n=i.find(e=>e.resultRev===t),r=[];for(;n;)r.push(n),n=i.find(e=>e.previousRev===n?.resultRev);return r})).map(t=>{var n,i,r;let a,[o,l]=(n=e.base.revision,a=t.findIndex(e=>e.resultRev===n),i=t,(r=a+1)<0?[[],i]:[i.slice(0,r),i.slice(r)]);return o.length>0&&o6("Discarded %d mutations already applied to document",o.length),l}),[o,l]=(0,P.A)(a,t=>e.base.revision===t[0]?.previousRev),s=l.flat().toSorted((e,t)=>e.messageReceivedAt.localeCompare(t.messageReceivedAt));if(o.length>1)throw Error("Expected at most one resolved chain");if(o.length>0&&o[0].length>0){let t=o[0].at(-1),n="disappear"===t.transition?void 0:t?.resultRev;return e.buffer.length>0&&(o6("Resolved chain: %s => %s",o[0][0].previousRev,o[0].at(-1)?.resultRev),s.length>0?o6("There are still %d unchainable mutations",s.length):o6("All chains were resolved")),{base:{revision:n},emitEvents:o[0],buffer:s}}if(s.length>=n)throw new li(`Too many unchainable mutation events: ${e.buffer.length}`,e);return{...e,buffer:s,emitEvents:o9}}return{...e,emitEvents:[t]}},{emitEvents:o9,base:void 0,buffer:o9}),(0,eM.n)(e=>{if(e.buffer.length>0){let n=new Date(e.buffer[0].messageReceivedAt),i=t-(Date.now()-n.getTime());return o6("There are %d listener event(s) that can't be applied in sequence. This could be due to events arriving out of order. Will throw an error if chain can't be resolved within %dms",e.buffer.length,i),o6("Buffered events: %O",e.buffer),(0,eR.x)((0,eP.of)(e),(0,eK.O)(i).pipe((0,tx.Z)(()=>(0,eJ.$)(()=>new ln(`Did not resolve chain within a deadline of ${t}ms`,e)))))}return(0,eP.of)(e)}),(0,tx.Z)(e=>e.emitEvents))}class lt extends Error{constructor(e,t){super(e),this.name="OutOfSyncError",this.state=t}}class ln extends lt{constructor(e,t){super(e,t),this.name="DeadlineExceededError"}}class li extends lt{constructor(e,t){super(e,t),this.name="MaxBufferExceededError"}}let lr={type:"pending",phase:"begin"},la={type:"pending",phase:"end"};function lo(e,t){return{type:"snapshot",documentId:e,document:t}}let ll={apiVersion:"v2025-02-19"},ls=e=>!!Array.isArray(e);function ld(e,t){return t.versionId?e.withConfig(ll):e.withConfig({apiVersion:"2025-02-19"})}function lc(e,t){return t.versionId?e.withConfig(ll):e}let lu=e=>t=>("snapshot"===t.type||"mutation"===t.type)&&t.documentId===e;function lp(e){return t=>({...t,version:e})}function lm(e,t,n){let{resultRev:i,...r}=n;return lc(e,t).dataRequest("mutate",r,{visibility:"async",returnDocuments:!1,tag:"document.commit",skipCrossDatasetReferenceValidation:!0})}function lh(e,t,n,i={}){let{publishedId:r,draftId:a,versionId:o}=t,{onReportLatency:l,onSyncErrorRecovery:s,tag:d}=i,c=(function(e,t,n={}){let{publishedId:i,draftId:r,versionId:a}=t,o=t.versionId?e.withConfig(ll):e;if(t.versionId&&"published"===(0,tG._S)(t.versionId)||t.versionId&&"drafts"===(0,tG._S)(t.versionId))throw Error('VersionId cannot be "published" or "drafts"');let l=(0,eN.v)(()=>o.observable.listen("*[_id in $ids]",{ids:[i,r,a].filter(e=>"u">typeof e)},{includeResult:!1,includeAllVersions:!0,events:["welcome","mutation","reconnect"],effectFormat:"mendoza",tag:n.tag||"document.pair-listener"}).pipe(function({ttl:e=12e4,max:t=1e3}={}){return n=>n.pipe((0,ts.S)(({seen:e},t)=>{if("mutation"!==t.type)return{emit:[t],seen:e};let n=`${t.transactionId}#${t.documentId}`;return e.has(n)?(o6("Ignoring duplicate listener event: ",n),{seen:e,emit:[]}):(e.set(n,null),{seen:e,emit:[t]})},{emit:[],seen:new iJ({ttl:e,max:t})}),(0,tx.Z)(e=>e.emit))}(),(0,eV.T)(e=>"mutation"===e.type?{...e,messageReceivedAt:new Date().toString()}:e),o4({predicate:e=>"welcome"===e.type||"reconnect"===e.type}))).pipe((0,ts.S)((e,t)=>({event:t,disconnectedAt:"reconnect"===t.type?e?.disconnectedAt||new Date:void 0,disconnectedTime:"welcome"===t.type&&e?.disconnectedAt?e.disconnectedAt&&Date.now()-e.disconnectedAt.getTime():void 0}),void 0),(0,to.p)(Boolean),(0,eF.H)(({event:e,disconnectedTime:t},n)=>{let l="welcome"===e.type&&0===n||t&&t>2e4;return(t||0)>0&&o6("Reconnected after being disconnected for: %dms",t),l?o.observable.getDocuments([i,r,a].filter(e=>"string"==typeof e),{tag:"document.snapshots"}).pipe((0,eV.T)(([e,t,n])=>({draft:t,published:e,version:n}))).pipe((0,tx.Z)(({draft:e,published:t,version:n})=>[lo(r,e),lo(i,t),...a?[lo(a,n)]:[]])):(0,eP.of)(e)}),(0,ts.S)((e,t)=>{if("mutation"!==t.type)return{next:[t],buffer:[]};let n=e.buffer.length>0,i=t.transactionTotalEvents>1;if(!i&&!n)return{next:[t],buffer:[]};if(!i)return{next:[],buffer:e.buffer.concat(t)};let r=e.buffer.concat(t);return Object.values((0,R.A)(r.filter(e=>"mutation"===e.type),e=>e.transactionId)).every(e=>e.length===e[0].transactionTotalEvents)?{next:r.concat(la),buffer:[]}:{next:1===r.length?[lr]:[],buffer:r}},{next:[],buffer:[]}),(0,tx.Z)(e=>e.next),(0,e7.u)()),s=l.pipe((0,to.p)(e=>"mutation"!==e.type&&"snapshot"!==e.type||e.documentId===r),le()),d=l.pipe((0,to.p)(e=>"mutation"!==e.type&&"snapshot"!==e.type||e.documentId===i),le()),c=l.pipe((0,to.p)(e=>"mutation"!==e.type&&"snapshot"!==e.type||e.documentId===a),le());return(0,eZ.h)(s,d,c).pipe((0,eY.W)((e,t)=>e instanceof lt?(o6("Recovering from OutOfSyncError: %s",e.name),"function"==typeof n?.onSyncErrorRecovery?n?.onSyncErrorRecovery(e):console.error(e),t):(0,eJ.$)(()=>e)))})(e,t,{onSyncErrorRecovery:s,tag:d}).pipe((0,e7.u)()),u=c.pipe((0,to.p)(e=>"reconnect"===e.type||"welcome"===e.type)),p=o8(a,c.pipe((0,to.p)(lu(a)))),m=typeof o>"u"?void 0:o8(o,c.pipe((0,to.p)(lu(o)))),h=o8(r,c.pipe((0,to.p)(lu(r)))),f=c.pipe((0,to.p)(e=>"pending"===e.type)),g=(0,eZ.h)(p.commitRequest$,h.commitRequest$,m?m.commitRequest$:eO.w).pipe((0,tx.Z)(i=>n.pipe((0,eH.s)(1),(0,tx.Z)(n=>{var r;let a;return(0,eL.H)(n?!function(e,t){let{resultRev:n,...i}=e;return i.mutations.flatMap(e=>{let t=Object.values(e);if(t.length>
631)throw Error("Did not expect multiple mutations in the same payload");return t[0].id||t[0]._id}).every(e=>e===t)}(r=i.mutation.params,t.publishedId)?ld(e,t).observable.action(0===(a=r.mutations.flatMap(e=>{if(e.createIfNotExists)return[];if(e.create)return function(e){if(!e._id)throw Error("Expected document to have an _id")}(e.create),{actionType:"sanity.action.document.create",publishedId:t.publishedId,attributes:e.create,ifExists:"fail"};if(e.patch)return{actionType:"sanity.action.document.edit",draftId:t.versionId??t.draftId,publishedId:t.publishedId,patch:(0,N.A)(e.patch,"id")};throw Error("Cannot map mutation to action")})).length?[{actionType:"sanity.action.document.edit",draftId:t.draftId,publishedId:t.publishedId,patch:{unset:["_empty_action_guard_pseudo_field_"]}}]:a,{tag:"document.commit",transactionId:r.transactionId}):lm(e,t,r):lm(e,t,i.mutation.params)).pipe((0,e5.M)({error:e=>{"statusCode"in e&&"number"==typeof e.statusCode&&e.statusCode>=400&&e.statusCode<=500?i.cancel(e):i.failure(e)},next:()=>i.success()}))})))),y=(0,eN.v)(()=>l?function(e){let{client:t,commits$:n,listenerEvents$:i,onReportLatency:r}=e,a=fetch(t.getUrl(t.getDataUrl("ping")),{signal:AbortSignal.timeout(2e4)}).then(e=>e.headers.get("X-Sanity-Shard")||void 0).catch(()=>{}),o=n.pipe((0,eV.T)(e=>({type:"submit",transactionId:e.transactionId,timestamp:new Date})),(0,e7.u)()),l=i.pipe((0,to.p)(e=>"mutation"===e.type),(0,eV.T)(e=>({type:"receive",transactionId:e.transactionId,timestamp:new Date})),(0,e7.u)());return(0,eZ.h)(o,l).pipe((0,ts.S)((e,t)=>{let n=e.pending.findIndex(e=>e.transactionId===t.transactionId);if(n>-1){let i=e.pending[n],[r,a]="submit"==i.type?[i,t]:[t,i];return{event:{transactionId:t.transactionId,submittedAt:r.timestamp,receivedAt:r.timestamp,deltaMs:a.timestamp.getTime()-r.timestamp.getTime()},pending:e.pending.toSpliced(n,1)}}return{event:void 0,pending:e.pending.concat(t)}},{event:void 0,pending:[]}),(0,eV.T)(e=>e.event),(0,to.p)(e=>!!e),(0,tT.E)(a),(0,e5.M)(([e,t])=>r?.({latencyMs:e.deltaMs,shard:t,transactionId:e.transactionId})))}({commits$:g,listenerEvents$:c,client:e,onReportLatency:l}):(0,eZ.h)(g,c)).pipe((0,tx.Z)(()=>eO.w),(0,e7.u)());return{transactionsPendingEvents$:f,draft:{...p,events:(0,eZ.h)(y,u,p.events).pipe((0,eV.T)(lp("draft"))),remoteSnapshot$:p.remoteSnapshot$.pipe((0,eV.T)(lp("draft")))},...typeof m>"u"?{}:{version:{...m,events:(0,eZ.h)(y,u,m.events).pipe((0,eV.T)(lp("version"))),remoteSnapshot$:m.remoteSnapshot$.pipe((0,eV.T)(lp("version")))}},published:{...h,events:(0,eZ.h)(y,u,h.events).pipe((0,eV.T)(lp("published"))),remoteSnapshot$:h.remoteSnapshot$.pipe((0,eV.T)(lp("published")))}}}function lf(e,t){let n=Object.create(null);return(...i)=>{let r=t(...i);return r in n||(n[r]=e(...i)),n[r]}}function lg(e,t,n){let i=e.config();return`${i.dataset??""}-${i.projectId??""}-${t.publishedId}-${t.versionId??""}-${n}`}let ly=lf((e,t,n,i,r)=>new eU.c(n=>{let a=lh(e,t,i,r);return(0,eZ.h)((0,eP.of)(a),a.draft.events.pipe((0,tx.Z)(()=>eO.w)),a.published.events.pipe((0,tx.Z)(()=>eO.w)),a.version?.events.pipe((0,tx.Z)(()=>eO.w))??eO.w).subscribe(n)}).pipe((0,e7.u)({connector:()=>new e3.m(1),resetOnComplete:!0,resetOnRefCountZero:()=>(0,eK.O)(5e3)})),lg);function lC(e){return"snapshot"===e.type}function lx(e){return{snapshots$:e.events.pipe((0,to.p)(lC),(0,eV.T)(e=>e.document),(0,tS.H)(1),(0,tI.B)()),patch:e.patch,create:e.create,createIfNotExists:e.createIfNotExists,createOrReplace:e.createOrReplace,delete:e.delete,mutate:e.mutate,commit:e.commit}}let lb=lf((e,t,n,i,r)=>ly(e,t,n,i,r).pipe((0,eV.T)(({published:e,draft:t,version:n,transactionsPendingEvents$:i})=>({transactionsPendingEvents$:i,published:lx(e),draft:lx(t),...n?{version:lx(n)}:{}})),(0,tS.H)(1),(0,tI.B)()),lg),lv=(e,t)=>e.get(t)?.liveEdit===!0,lj=r5({maxSize:50}),lw={enabled:!0},l_={enabled:!1},lk=lf((e,t,n)=>{let i=lv(e.schema,n),r="u">typeof t.versionId||i;return lb(e.client,t,n,e.serverActionsEnabled,e.extraOptions).pipe((0,eM.n)(e=>(0,e8.z)([e.draft.snapshots$,e.published.snapshots$,e.transactionsPendingEvents$.pipe((0,eV.T)(e=>
63"begin"===e.phase?lw:l_),(0,tr.Z)(l_)),typeof e.version>"u"?(0,eP.of)(null):e.version.snapshots$])),lj(`${t.publishedId}-${t.draftId}-${t.versionId}`),(0,eV.T)(({value:[e,a,o,l],fromCache:s})=>({id:t.publishedId,type:n,draft:e,published:a,version:typeof t.versionId>"u"?null:l,liveEdit:r,liveEditSchemaType:i,ready:!s,transactionSyncLock:s?null:o,release:t.versionId?(0,tG._S)(t.versionId):void 0})),(0,tr.Z)({id:t.publishedId,type:n,draft:null,published:null,version:null,liveEdit:r,liveEditSchemaType:i,ready:!1,transactionSyncLock:null,release:t.versionId?(0,tG._S)(t.versionId):void 0}),(0,tS.H)(1),(0,tI.B)())},(e,t,n)=>lg(e.client,t,n)),lS=lf((e,t,n,i,r)=>ly(e,t,n,i,r).pipe((0,eM.n)(({draft:e,published:t})=>(0,e8.z)([e.consistency$,t.consistency$])),(0,eV.T)(([e,t])=>e&&t),(0,eQ.F)(),(0,tS.H)(1),(0,tI.B)()),lg),lI=lf((e,t,n)=>lb(e.client,t,n,e.serverActionsEnabled,e.pairListenerOptions).pipe((0,eM.n)(i=>(0,e8.z)([i.draft.snapshots$,i.published.snapshots$,e.serverActionsEnabled,...typeof i.version>"u"?[]:[i.version.snapshots$]]).pipe((0,eV.T)(([r,a,o,l])=>({...e,serverActionsEnabled:o,idPair:t,typeName:n,snapshots:{published:a,draft:r,...l?{version:l}:{}},...i.version?{version:i.version}:{},draft:i.draft,published:i.published})))),(0,tS.H)(1),(0,tI.B)()),(e,t,n)=>lg(e.client,t,n)),lT={disabled:()=>!1,execute:({draft:e,published:t,version:n})=>(n?.commit(),e.commit(),t.commit(),eO.w)},lE={disabled:({snapshots:e})=>!e.draft&&!e.published&&"NOTHING_TO_DELETE",execute:({client:e,schema:t,idPair:n,typeName:i})=>{let r=lc(e,n).observable.transaction().delete(n.publishedId);return lv(t,i)?r.commit({tag:"document.delete"}):r.delete(n.draftId).commit({tag:"document.delete",skipCrossDatasetReferenceValidation:!0})}},l$={disabled:({snapshots:e})=>e.draft?!e.published&&"NOT_PUBLISHED":"NO_CHANGES",execute:({client:e,idPair:t})=>lc(e,t).observable.transaction().delete(t.draftId).commit({tag:"document.discard-changes"})},lA=["_createdAt","_updatedAt"],lD=e=>e,lz={disabled:({snapshots:e})=>!e.published&&!e.draft&&!e.version&&"NOTHING_TO_DUPLICATE",execute:({schema:e,client:t,snapshots:n,typeName:i,idPair:r},a,{mapDocument:o=lD}={})=>{let l=n.version||n.draft||n.published;if(!l)throw Error("cannot execute on empty document");let s=(({versionSnapshot:e,dupeId:t,liveEdit:n})=>{if(e){let n=(0,tG._S)(e._id);if(n)return(0,tG.ct)(t,n)}return n?t:(0,tG.T4)(t)})({versionSnapshot:n.version,dupeId:a,liveEdit:lv(e,i)});return lc(t,r).observable.create((0,N.A)(o({...l,_id:s,_type:l._type}),lA),{tag:"document.duplicate"})}},lP={disabled:()=>!1,execute:({schema:e,snapshots:t,idPair:n,draft:i,published:r,version:a,typeName:o},l=[],s)=>{a?a.mutate([a.createIfNotExists({_type:o,...s}),...a.patch(l)]):lv(e,o)?r.mutate([r.createIfNotExists({_type:o,...s}),...r.patch(l)]):i.mutate([i.createIfNotExists({...s,...t.published,_id:n.draftId,_type:o}),...i.patch(l)])}},lR={disabled:({schema:e,typeName:t,snapshots:n})=>lv(e,t)?"LIVE_EDIT_ENABLED":!n.draft&&!n.version&&(n.published?"ALREADY_PUBLISHED":"NO_CHANGES"),execute:({client:e,idPair:t,snapshots:n})=>{if(!n.draft&&!n.version)throw Error('cannot execute "publish" when draft or version is missing');let i=function e(t){return(0,eD.A_)(t)?t._strengthenOnPublish?(0,N.A)(t,["_strengthenOnPublish"].concat(t._strengthenOnPublish.weak?[]:["_weak"])):t:"object"==typeof t&&t?Array.isArray(t)?t.map(e):Object.fromEntries(Object.entries(t).map(([t,n])=>[t,e(n)])):t}((0,N.A)(n.draft||n.version,"_updatedAt")),r=lc(e,t).observable.transaction();return n.published?(r.patch(t.publishedId,{unset:["_revision_lock_pseudo_field_"],ifRevisionID:n.published._rev}),r.createOrReplace({...i,_id:t.publishedId})):r.create({...i,_id:t.publishedId}),r.delete(i._id),r.commit({tag:"document.publish",visibility:"async"})}},lN={disabled:()=>!1,execute:({historyStore:e,schema:t,idPair:n,typeName:i},r)=>{let a=n.versionId?n.versionId:lv(t,i)?n.publishedId:n.draftId;return e.restore(n.publishedId,a,r)}},lO={disabled:({schema:e,snapshots:t,typeName:n})=>lv(e,n)?"LIVE_EDIT_ENABLED":!t.published&&"NOT_PUBLISHED",execute:({client:e,idPair:t,snapshots:n}
63)=>{let i=lc(e,t).observable.transaction().delete(t.publishedId);return n.published&&(i=i.createIfNotExists({...(0,N.A)(n.published,"_updatedAt"),_id:t.draftId,_type:n.published._type})),i.commit({tag:"document.unpublish",visibility:"async",skipCrossDatasetReferenceValidation:!0})}},lV={disabled:({snapshots:e})=>!e.draft&&!e.published&&!e.version&&"NOTHING_TO_DELETE",execute:({client:e,idPair:t,snapshots:n},i)=>n.published?ld(e,t).observable.action({actionType:"sanity.action.document.delete",includeDrafts:i?i.filter(e=>!(0,tG._4)(e)):n.draft?[t.draftId]:[],publishedId:t.publishedId},{tag:"document.delete",skipCrossDatasetReferenceValidation:!0}):ld(e,t).observable.action(i.map(e=>({actionType:"sanity.action.document.version.discard",versionId:e})),{skipCrossDatasetReferenceValidation:!0})},lM={disabled:({snapshots:e})=>!e.draft&&!e.version&&"NO_CHANGES",execute:({client:e,idPair:t})=>ld(e,t).observable.action({actionType:"sanity.action.document.discard",draftId:t.versionId||t.draftId},{tag:"document.discard-changes"})},lL={disabled:()=>!1,execute:({schema:e,snapshots:t,idPair:n,draft:i,published:r,version:a,typeName:o},l=[],s)=>{if(a){let e=a.patch(l),i=t.version?a.patch([{unset:["_empty_action_guard_pseudo_field_"]}]):[a.create({...s,_id:n.draftId,_type:o})];a.mutate([...i,...e]);return}if(lv(e,o)){let e=r.patch(l),n=t.published?e:[r.createIfNotExists({_type:o,...s}),...e];r.mutate(n);return}let d=i.patch(l);if(t.draft)return void i.mutate([...i.patch([{unset:["_empty_action_guard_pseudo_field_"]}]),...d]);let c=t.published?i.createIfNotExists({...s,...t.published,_id:n.draftId,_type:o}):i.create({...s,_id:n.draftId,_type:o});i.mutate([c]),i.commit(),i.mutate(d)}},lF={disabled:({schema:e,typeName:t,snapshots:n})=>lv(e,t)?"LIVE_EDIT_ENABLED":!n.draft&&!n.version&&(n.published?"ALREADY_PUBLISHED":"NO_CHANGES"),execute:({client:e,idPair:t,snapshots:n})=>{if(!n.draft&&!n.version)throw Error('cannot execute "publish" when draft or version is missing');return ld(e,t).observable.action({actionType:"sanity.action.document.publish",draftId:n.draft?._id||n.version?._id,publishedId:t.publishedId,ifPublishedRevisionId:n.published?._rev},{tag:"document.publish"})}},lB={disabled:()=>!1,execute:({snapshots:e,historyStore:t,schema:n,idPair:i,typeName:r},a)=>{let o=i.versionId?i.versionId:lv(n,r)?i.publishedId:i.draftId;return t.restore(i.publishedId,o,a,{fromDeleted:!e.draft&&!e.published,useServerDocumentActions:!0})}},lY={disabled:({schema:e,snapshots:t,typeName:n})=>lv(e,n)?"LIVE_EDIT_ENABLED":!t.published&&"NOT_PUBLISHED",execute:({client:e,idPair:t})=>ld(e,t).observable.action({actionType:"sanity.action.document.unpublish",draftId:t.draftId,publishedId:t.publishedId},{tag:"document.unpublish",skipCrossDatasetReferenceValidation:!0})},lH={del:lE,delete:lE,publish:lR,patch:lP,commit:lT,discardChanges:l$,unpublish:lO,duplicate:lz,restore:lN},lU={...lH,del:lV,delete:lV,discardChanges:lM,patch:lL,publish:lF,unpublish:lY,restore:lB},lZ=new eq.B;function lq(e,t,n,i){lZ.next({operationName:e,idPair:t,typeName:n,extraArgs:i})}let lW=["publish","unpublish","discardChanges","delete"],lJ=lf(e=>{let t=lZ.pipe((0,t$.$)(e=>e.idPair.publishedId),(0,tx.Z)(t=>t.pipe((0,eM.n)(t=>lI(e,t.idPair,t.typeName).pipe((0,eH.s)(1),(0,eM.n)(n=>{let i=lW.includes(t.operationName);i&&(n.published.commit(),n.draft.commit());let r=lS(e.client,t.idPair,t.typeName,e.serverActionsEnabled,e.extraOptions).pipe((0,to.p)(Boolean));return(i?r.pipe((0,eH.s)(1)):(0,eP.of)(!0)).pipe((0,eM.n)(()=>{var e,i;let r;return e=t.operationName,i=t.extraArgs,r=n.serverActionsEnabled?lU[e]:lH[e],(0,eN.v)(()=>{var e;return(0,eZ.h)((0,eP.of)(null),typeof(e=r.execute(n,...i))>"u"?(0,eP.of)(null):e)}).pipe((0,tE.H)())}))}),(0,eV.T)(()=>({type:"success",args:t})),(0,eY.W)(e=>(0,eP.of)({type:"error",args:t,error:e})))))),(0,e7.u)()),n=t.pipe((0,to.p)(e=>"success"===e.type&&"patch"===e.args.operationName),(0,tA.c)(1e3,e4.E,{leading:!0,trailing:!0}),(0,eF.H)(e=>window.SLOW?(0,eK.O)(1e4).pipe((0,eV.T)(()=>e)):(0,eP.of)(e)),(0,e5.M)(e=>{lq("commit",e.args.idPair,e.args.typeName,[])}));return(0,eZ.h)(t,n.pipe((0,t_.C)(eO.w)))},e=>{let t=e.client.config();return`${t.dataset??""}-${t.projectId??""}${e.serverActionsEnabled?"-serverActionsEnabled":""}`}),lK=lf((e,t,n,i,r)=>ly(e,t,n,i,r).pipe((0,eM.n)(({published:e,draft:t,version:n})=>(0,eZ.h)(e.remoteSnapshot$,t.remoteSnapshot$,n?.remoteSnapshot$??eO.w))),lg);
63function lG(e=[]){return e.reduce((e,t,n)=>{let i=typeof t;if("number"===i)return`${e}[${t}]`;if("string"===i)return`${e}${0===n?"":"."}${t}`;if((0,eD.o8)(t))return`${e}[_key=="${t._key}"]`;throw Error(`Unsupported path segment "${t}"`)},"")}function lX(e){return null!==e||void 0!==e}function lQ(e,t,n){if(!n)throw Error("missing context");if(!0===e)return[];if(Array.isArray(e))return e.flatMap(e=>lQ(e,t,n)).filter(lX);if("string"==typeof e)return lQ({message:e},t,n);if("string"!=typeof e.message)throw Error(`${lG(n.path)}: Validator must return 'true' if valid or an error message as a string on errors`);let{message:i,__internal_metadata:r}=e,a=[];for(let t of(e.path&&a.push(e.path),e.paths||[]))a.push(t);return a.length?a.map(e=>({path:(n.path||[]).concat(e),level:t||"error",item:{message:i},message:i,__internal_metadata:r})):[{level:t||"error",item:{message:i},message:i,path:n.path||[],__internal_metadata:r}]}function l1(e,t){let{currentLocale:n}=t,i=n.id;if(e[i])return e[i];if(i.includes("-")){let t=i.split("-",1)[0];if(e[t])return e[t]}return e["en-US"]||e["en-GB"]||e.en||"Unknown validation error (not localized)"}function l2(e){return!0!==e&&"u">typeof e&&"string"!=typeof e&&(0,O.A)(e)&&!("message"in e)}function l5(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!l5(e[n],t[n]))return!1;return!0}if(Array.isArray(e)!=Array.isArray(t))return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof Date!=t instanceof Date)return!1;if(e instanceof RegExp&&t instanceof RegExp)return e.toString()==t.toString();if(e instanceof RegExp!=t instanceof RegExp)return!1;for(let e=0;e<n.length;e++)if("_key"!==n[e]&&!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let i=0;i<n.length;i++){let r=n[i];if("_key"!==r&&!l5(e[r],t[r]))return!1}return!0}return!1}let l0={}.toString,l7=[Object,Function,Array,String,Boolean,Number,Date,RegExp,Error];function l3(e){let t=l0.call(e).slice(8,-1);if(null==e)return t.toLowerCase();let n=e.constructor;return n&&!function(e){for(let t=0;t<l7.length;t++)if(l7[t]===e)return!0;return!1}(n)?n.name:t}let l8=e=>e.message?e.message:1===e.results.length?e.results[0]?.message:e.i18n.t("{{messages, list}}",{messages:e.results.map(e=>e.message||e.item?.message),formatParams:{messages:{style:"long",type:e.operation}}}),l4={type:(e,t,n,{i18n:i})=>{let r=l3(t);return r===e||"undefined"===r||n||i.t("validation:generic.incorrect-type",{actualType:r,expectedType:e})},presence:(e,t,n,{i18n:i})=>void 0!==t||"required"!==e||n||i.t("validation:generic.required"),all:async(e,t,n,i)=>{let r=(await Promise.all(e.map(e=>e.validate(t,i)))).flat();return 0===r.length||l8({message:n,results:r,operation:"conjunction",i18n:i.i18n})},either:async(e,t,n,i)=>{let r=await Promise.all(e.map(e=>e.validate(t,i))),a=r.flat();return!!r.find(e=>!e.length)||l8({message:n,results:a,operation:"disjunction",i18n:i.i18n})},valid:(e,t,n,{i18n:i})=>{let r=typeof t;if("undefined"===r)return!0;let a=("number"===r||"string"===r)&&`${t}`,o=a&&a.length>30?`${a.slice(0,30)}\u2026`:a;return!!e.some(e=>l5(e,t))||n||i.t("validation:generic.not-allowed",a?{context:"hint",replace:{hint:o}}:{})},custom:async(e,t,n,i)=>{let r,a=setTimeout(()=>{"studio"===i.environment&&console.warn(`Custom validator at ${lG(i.path)} has taken more than 5000ms to respond`)},5e3);try{r=await e(t,i)}finally{clearTimeout(a)}return l2(r)?l1(r,i.i18n):"string"==typeof r&&n||r}},l6={...l4,min:(e,t,n,{i18n:i,type:r})=>{if(!t||t.length>=e)return!0;let a=(0,eD.GX)(r)?"blocks":void 0;return n||i.t("validation:array.minimum-length",{minLength:e,context:a})},max:(e,t,n,{i18n:i,type:r})=>{if(!t||t.length<=e)return!0;let a=(0,eD.GX)(r)?"blocks":void 0;return n||i.t("validation:array.maximum-length",{maxLength:e,context:a})},length:(e,t,n,{i18n:i,type:r})=>{if(!t||t.length===e)return!0;let a=(0,eD.GX)(r)?"blocks":void 0;return n||i.t("validation:array.exact-length",{wantedLength:e,context:a})},presence:(e,t,n,{i18n:i})=>"required"!==e||!!t||n||i.t("validation:generic.required",{context:"array"}),valid:(e,t,n,{i18n:i})=>{if(typeof t>"u")return!0;let r=[];for(let n=0;n<t.length;n++){let i=t[n];if(e.some(e=>l5(e,i)))continue;let a=i&&i._key?{_key:i._key}:n;r.push([a])}let a=n||i.t("validation:generic.not-allowed");return r.map(e=>({message:a,path:e}))},unique:(e,t,n,{i18n:i})=>{let r=[];if(!t)return!0;for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++)l5(t[e],t[n])&&(-1===r.indexOf(e)&&r.push(e),-1===r.indexOf(n)&&r.push(n));let a=r.map(e=>{let n=t[e];return[n&&n._key?{_key:n._key}:e]}),o=n||i.t("validation:array.item-duplicate");return a.map(e=>({message:o,path:e}))}},l9={...l4,presence:(e,t,n,{i18n:i})=>"required"!==e||"boolean"==typeof t||n||i.t("validation:generic.required",{context:"boolean"})};function se(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let st=/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/,sn=(e="",t,n)=>{let i=n?.dateFormat||tX.D2,r=n?.timeFormat||tX.EN;return tX.GP(t,"date"===e?i:`${i} ${r}`,{useUTC:"date"===e})};function si(e,t=!1){if(!e)return null;if("now"===e)return new Date;let n=new Date(e),i=isNaN(n.getTime());if(i&&t)throw Error(`Unable to parse "${e}" to a date`);return i?null:n}let sr={...l4,type:(e,t,n,{i18n:i})=>!!(typeof t>"u"||st.test(`${t}
63`))||n||i.t("validation:date.invalid-format"),min:(e,t,n,{type:i,i18n:r})=>{let a=si(t),o=si(e,!0);if(!a||!t||a>=o)return!0;if(!i)throw Error("`type` was not provided in validation context.");let l=se(i.options)?i.options:{};return n||r.t("validation:date.minimum",{minDate:sn(i.name,o,l),providedMinDate:e})},max:(e,t,n,{type:i,i18n:r})=>{let a=si(t),o=si(e,!0);if(!a||!t||a<=o)return!0;if(!i)throw Error("`type` was not provided in validation context.");let l=se(i.options)?i.options:{};return n||r.t("validation:date.maximum",{maxDate:sn(i.name,o,l),providedMaxDate:e})}},sa=/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,so={...l4,integer:(e,t,n,{i18n:i})=>!!Number.isInteger(t)||n||i.t("validation:number.non-integer"),precision:(e,t,n,{i18n:i})=>{if(void 0===t)return!0;let r=t.toString().match(sa);return!(Math.max((r[1]?r[1].length:0)-(r[2]?parseInt(r[2],10):0),0)>e)||n||i.t("validation:number.maximum-precision",{limit:e})},min:(e,t,n,{i18n:i})=>t>=e||n||i.t("validation:number.minimum",{minNumber:e}),max:(e,t,n,{i18n:i})=>t<=e||n||i.t("validation:number.maximum",{maxNumber:e}),greaterThan:(e,t,n,{i18n:i})=>t>e||n||i.t("validation:number.greater-than",{threshold:e}),lessThan:(e,t,n,{i18n:i})=>t<e||n||i.t("validation:number.less-than",{threshold:e})},sl=["_key","_type","_weak"],ss={...l4,presence:(e,t,n,{i18n:i})=>{if("required"!==e)return!0;let r=t&&Object.keys(t).filter(e=>!sl.includes(e));return void 0!==t&&(!r||0!==r.length)||n||i.t("validation:generic.required",{context:"object"})},reference:async(e,t,n,i)=>{if(!t)return!0;let{type:r,document:a,getDocumentExists:o,i18n:l}=i;if(!(0,eD.A_)(t))return n||l.t("validation:object.not-reference");if(!r)throw Error("`type` was not provided in validation context");if("weak"in r&&r.weak)return!0;if(!o)throw Error("`getDocumentExists` was not provided in validation context");let s=a?._id;return!!(s&&t._ref==(0,tG.IM)(s)||await o({id:t._ref}))||l.t("validation:object.reference-not-published",{documentId:t._ref})},assetRequired:(e,t,n,{i18n:i})=>!!t&&!!t.asset&&!!t.asset._ref||{__internal_metadata:{name:"assetRequired"},message:n||i.t("validation:object.asset-required",{context:e.assetType||""})},media:async(e,t,n,i)=>{let r=setTimeout(()=>{"studio"===i.environment&&console.warn(`Media validator at ${lG(i.path)} has taken more than 5000ms to respond`)},5e3);if(!t)return!0;if(!t||!t.media||!t.media._ref)return i.i18n.t("validation:object.not-media-library-asset");let a=!0;try{let[n,r,o]=t.media._ref.split(":",3),l=await i.getClient({apiVersion:"2025-02-19"}).withConfig({resource:{type:n,id:r}}).fetch("*[_id == $id] { ..., 'currentVersion': @.currentVersion-> { ... } }[0]",{id:o});if(!l)return console.warn(`${i.i18n.t("validation:object.media-not-found")} 64Asset ID: ${t.media._ref}`),i.i18n.t("validation:object.media-not-found");a=await e({media:{asset:l},value:t},i)}catch(e){throw Error(`Media validator at ${lG(i.path)} failed with an error: ${e instanceof Error?e.message:String(e)}`,{cause:e})}finally{clearTimeout(r)}let o={__internal_metadata:{name:"media"}};return!0===a||Array.isArray(a)?a:[a].map(e=>"string"==typeof e?{...o,message:n||e}:l2(e)?{...o,message:n||l1(e,i.i18n)}:{...o,...e,message:n||e.message})}},sd="http://sanity",sc=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,su={Boolean:l9,Number:so,String:{...l4,min:(e,t,n,{i18n:i})=>!t||t.length>=e||n||i.t("validation:string.minimum-length",{minLength:e}),max:(e,t,n,{i18n:i})=>!t||t.length<=e||n||i.t("validation:string.maximum-length",{maxLength:e}),length:(e,t,n,{i18n:i})=>(t||"").length===e||n||i.t("validation:string.exact-length",{wantedLength:e}),uri:(e,t,n,{i18n:i})=>{let r,a=t||"";if(!a)return!0;let{options:o}=e,{allowCredentials:l,relativeOnly:s}=o,d=o.allowRelative||s;try{r=d?new URL(a,sd):new URL(a)}catch{return n||i.t("validation:string.url.invalid")}if(s&&r.origin!==sd)return n||i.t("validation:string.url.not-relative");if(!d&&r.origin===sd&&/^\.*\//.test(a))return n||i.t("validation:string.url.not-absolute");if(!l&&(r.username||r.password))return n||i.t("validation:string.url.includes-credentials");let c=r.protocol.replace(/:$/,"");return!!o.scheme.some(e=>e.test(c))||n||i.t("validation:string.url.disallowed-scheme",{scheme:c})},stringCasing:(e,t,n,{i18n:i})=>{let r=t||"";return"uppercase"===e&&r!==r.toLocaleUpperCase()?n||i.t("validation:string.uppercase"):"lowercase"!==e||r===r.toLocaleLowerCase()||n||i.t("validation:string.lowercase")},presence:(e,t,n,{i18n:i})=>"required"!==e||!!t||n||i.t("validation:generic.required",{context:"string"}),regex:(e,t,n,{i18n:i})=>{let{pattern:r,name:a,invert:o}=e,l=a||`${r.toString()}`;r.lastIndex=0;let s=r.test(t||"");return(!!o||!!s)&&(!o||!s)||n||(o?i.t("validation:string.regex-match",{name:l}):i.t("validation:string.regex-does-not-match",{name:l}))},email:(e,t,n,{i18n:i})=>{let r=`${t||""}`.trim();return!!(!r||sc.test(r))||n||i.t("validation:string.email")}},Array:l6,Object:ss,Date:sr},sp=[],sm=class e extends nY.jO{static array=t=>new e(t).type("Array");static object=t=>new e(t).type("Object");static string=t=>new e(t).type("String");static number=t=>new e(t).type("Number");static boolean=t=>new e(t).type("Boolean");static dateTime=t=>new e(t).type("Date");clone(){let t=new e;return t._type=this._type,t._message=this._message,t._required=this._required,t._rules=[...this._rules],t._level=this._level,t._fieldRules=this._fieldRules,t._typeDef=this._typeDef,t}async validate(e,{__internal:t={},...n}){let{customValidationConcurrencyLimiter:i}=t,r=null==e;if(r&&"optional"===this._required)return sp;let a=void 0===this._required&&r?this._rules.filter(e=>"custom"===e.flag):this._rules,o=this._type&&su[this._type]||l4;return(await Promise.all(a.map(async t=>{let r;if(void 0===t.flag)throw Error('Invalid rule, did not contain "flag"-property');let a=o[t.flag];if(!a){let e=this._type?`type "${this._type}"`:"rule without declared type";throw Error(`Validator for flag "${t.flag}" not found for ${e}`)}let l="constraint"in t?t.constraint:null;if("object"==typeof(r=l)&&r&&r.type===sm.FIELD_REF&&(l=(0,V.A)(n.parent,l.path)),"custom"===t.flag&&i&&!l?.bypassConcurrencyLimit){let e=l;l=async(...t)=>{await i.ready();try{return await e(...t)}finally{i.release()}}}let s=l2(this._message)?l1(this._message,n.i18n):this._message;try{let t=await a(l,e,s,n);return lQ(t,this._level,n)}catch(e){return lQ({message:`${lG(n.path)}: Exception occurred while validating value: ${e.message}`},"error",n)}}))).flat()}},sh=(0,z.A)(function(e){console.warn([`Slug field at path ${e} is within an array and cannot be automatically checked for uniqueness`,'If you need to check for uniqueness, provide your own "isUnique" method',"To disable this message, set `disableArrayWarning: true` on the slug `options` field"].join(` 65`))});
65function sf(e){return e.reduce((e,t,n)=>{let i="number"==typeof t,r=(0,eD.o8)(t),a=i||r?"[]":`${0===n?"":"."}${t}`;return`${e}${a}`},"")}let sg=(e,t)=>{let{getClient:n,document:i,path:r,type:a}=t,o=a?.options;if(!i)throw Error("`document` was not provided in validation context.");if(!r)throw Error("`path` was not provided in validation context.");let l=o?.disableArrayWarning||!1,s=i._type,d=sf(r.concat("current"));!l&&d.includes("[]")&&"studio"===t.environment&&sh(sf(r));let c=`_type == $docType && !sanity::versionOf($published) && ${d} == $slug`;return n({apiVersion:ob.apiVersion}).withConfig({perspective:"raw"}).fetch(`!defined(*[${c}][0]._id)`,{docType:s,published:(0,tG.IM)(i._id),slug:e},{tag:"validation.slug-is-unique"})},sy=async(e,t)=>{if(!e)return!0;let{i18n:n}=t;if("object"!=typeof e||Array.isArray(e))return n.t("validation:slug.not-object");if(!(0,eD.u5)(e)||0===e.current.trim().length)return n.t("validation:slug.missing-current");let i=t?.type?.options?.isUnique||sg,r={...t,parent:t.parent,type:t.type,defaultIsUnique:sg};return!!await i(e.current,r)||n.t("validation:slug.not-unique",{slug:e.current})},sC={array:!0,boolean:!0,date:!0,number:!0,object:!0,string:!0};function sx(e,t=new Set){return e?t.has(e)?[]:(t.add(e),[...e.type?sx(e.type,t):[],e]):[]}function sb(e,t){let n=e;t.jsonType in sC&&(n=n.type(t.jsonType));let i=t?.options&&"object"==typeof t.options&&"list"in t.options&&t.options.list;return Array.isArray(i)&&(n=n.valid(i.map(e=>{var n,i;return n=e,"object"===(i=t).jsonType&&function e(t){return!!t&&("fields"in t||!t.type?"fields"in t&&!!Array.isArray(t.fields)&&t.fields.some(e=>"value"===e.name):e(t.type))}(i)||void 0===n.value?n:n.value}))),"datetime"===t.name||"date"===t.name?n.type("Date"):"url"===t.name?n.uri():"slug"===t.name?n.custom(sy,{bypassConcurrencyLimit:!0}):"reference"===t.name?n.reference():"email"===t.name?n.email():n}function sv(e,t){if(!e)return[];let n=e.validation;if(Array.isArray(n))return n.flatMap(n=>sv({...e,validation:n},t));let i=Object.values(sx(e).reduce((e,t)=>(e[t.name]=t,e),{})).reduce(sb,new sm(e));return n&&"object"==typeof n?[n]:n&&"function"==typeof n?sv({...e,validation:n(i,t)},t):[i]}function sj(e){return e.getLocalTypeNames().forEach(t=>{let n=e.get(t);n&&function e(t,n){if(!n.has(t)){if(n.add(t),function e(t){if(!t)return!1;if(Array.isArray(t))return t.some(e);if("function"!=typeof t)return!1;if(t.length>=2)return!0;let n=Function.prototype.toString.call(t);return/\(\s*\w+\s*,\s*\.\.\./.test(n)}(t.validation)||(t.validation=sv(t)),"fields"in t)for(let i of t.fields)e(i.type,n);if("of"in t)for(let i of t.of)e(i,n);if(t.annotations)for(let i of t.annotations)e(i,n)}}(n,new Set)}),e}function sw(e,t){let{currentUser:n,document:i,parent:r,value:a,path:o}=t;return"boolean"==typeof e||void 0===e?!!e:!0===e({document:i,parent:r,value:a,currentUser:n,path:o})}let s_=typeof window>"u"||typeof document>"u",sk=[rw],sS=(0,z.A)(function(){let e=function(){let e={[rw.id]:{}},t=rw.bundles?.filter(rb)||[],n=new Set;for(let i of t)e[rw.id][i.namespace]=i.resources,n.add(i.namespace);return(0,it.Q_)({ns:Array.from(n),defaultNS:rj,initImmediate:!0,partialBundledLanguages:!0,fallbackLng:rw.id,lng:rw.id,supportedLngs:[rw.id],debug:!1,load:"currentOnly",resources:e,interpolation:{escapeValue:s_}})}();return e.init(),{currentLocale:rw,locales:sk,loadNamespaces:e.loadNamespaces,t:e.t}}),sI=typeof window>"u"?void 0:window,sT=sI?.requestIdleCallback||function(e,t){let n=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,Date.now()-n)})},0)},sE=sI?.cancelIdleCallback||function(e){return window.clearTimeout(e)},s$=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);function sA(e){let t=[];for(let n of(e._fieldRules&&t.push(e._fieldRules),e._rules))if("all"===n.flag||"either"===n.flag){let e=n.constraint;if(Array.isArray(e))for(let n of e)t.push(...sA(n))}return t}let sD=new WeakMap;function sz({value:e,type:t,path:n=[],parent:i,customValidationConcurrencyLimiter:r,environment:a,...o}){let l=!0===o.hidden,s=(e,t,n,i,r)=>e?r||sw(e.hidden,{...o,parent:n,value:t,path:i||[],currentUser:o.currentUser??null}):r,d=s(t,e,i,n,l),c=e=>t?.jsonType==="object"&&sx(t).find(e=>["object","document","file","image"].includes(e.name))&&"studio"!==a?e.custom(e=>{if("object"!=typeof e||!e)return!0;let n=new Set(t.fields?.map(e=>e.name));return Object.keys(e).filter(e=>!e.startsWith("_")).filter(e=>!n.has(e)).map(e=>({message:`Field '${e}' does not exist on type '${t.name}'`,path:[e]}))},{bypassConcurrencyLimit:!0}).warning():e,u=sv(t,{...o,hidden:d,environment:a,parent:i,path:n,type:t}
65),p=u.map(c).map(l=>(0,eN.v)(()=>l.validate(e,{...o,environment:a,hidden:d,parent:i,path:n,type:t,__internal:{customValidationConcurrencyLimiter:r}}))),m=[],h=u.some(e=>e.isRequired());if(t?.jsonType==="object"&&(e||null==e&&h)){let i=t.fields.reduce((e,t)=>(e[t.name]=t.type,e),{});m=(m=m.concat(u.flatMap(e=>sA(e)).flatMap(e=>Object.entries(e)).flatMap(([t,l])=>{let u=i[t];return sv({...u,validation:l}).map(c).map(i=>{let l=s$(e)?e[t]:void 0,c=s(u,l,e,n.concat(t),d);return(0,eN.v)(()=>i.validate(l,{...o,parent:e,path:n.concat(t),type:u,environment:a,hidden:c,__internal:{customValidationConcurrencyLimiter:r}}))})}))).concat(t.fields.map(t=>sz({...o,hidden:d,parent:e,value:s$(e)?e[t.name]:void 0,path:n.concat(t.name),type:t.type,environment:a,customValidationConcurrencyLimiter:r})))}return t?.jsonType==="array"&&Array.isArray(e)&&(m=m.concat(e.map((i,l)=>sz({...o,hidden:d,parent:e,value:i,path:n.concat((0,eD.o8)(i)?{_key:i._key}:l),type:function(e,t){if(1===t.length)return t[0];let n=(0,eD.Kk)(e)&&e._type,i=null==e||!n&&l3(e).toLowerCase();return i&&"object"!==i?t.find(e=>e.jsonType===i):t.find(e=>e.type?.name===n)||t.find(e=>e.name===n)||t.find(e=>"object"===e.name&&"object"===i)}(i,t.of),environment:a,customValidationConcurrencyLimiter:r})))),(0,eN.v)(()=>(0,eZ.h)([...p,...m])).pipe((0,tx.Z)(e=>(0,eR.x)(new eU.c(e=>{let t=sT(()=>{e.complete()},void 0);return()=>sE(t)}),e),40),(0,tD.U)(),(0,tC.$)(),(0,eV.T)(M.A),(0,eV.T)(e=>u.some(e=>sA(e).length>0)?(0,L.A)(e,e=>JSON.stringify(e)):e))}let sP={isValidating:!0,validation:[]},sR=[];function sN(){return(0,e1.t)({bufferSize:1,refCount:!0})}function sO(e,t,n){let i=t.pipe((0,eV.T)(e=>(0,iq.TS)(e,(e,t)=>((0,eD.A_)(t)&&!(0,eD.Q9)(t)&&e.add(t._ref),e),new Set)),(0,tx.Z)(e=>(0,eL.H)(e))),r=t.pipe((0,eQ.F)()),a=(0,e8.z)([r,i]).pipe((0,t$.$)(([e,t])=>t,{duration:()=>(0,eK.O)(18e5)}),(0,tx.Z)(t=>t.pipe((0,tz.d)(),(0,tx.Z)(([t,i])=>{let r=n?void 0:(0,tG._S)(t?._id||"");return(0,e.observeDocumentPairAvailability)(i,{version:r}).pipe((0,eV.T)(({published:e,version:t})=>(!!t?.available||t?.reason!=="VERSION_DELETED")&&(e.available||t?.available||!1))).pipe((0,eV.T)(e=>[i,e]))}))),(0,ts.S)((e,[t,n])=>e[t]===n?e:{...e,[t]:n},{}),(0,eQ.F)(nZ),sN()),o=({id:e})=>(0,e6.s)(a.pipe((0,tP.$)(t=>e in t),(0,eV.T)(t=>t[e]))),l=a.pipe((0,tf.i)(1),(0,tA.c)(1e3,e4.E,{leading:!0,trailing:!0}));return(0,e8.z)([t,(0,eR.x)((0,eP.of)(null),l)]).pipe((0,eV.T)(([e])=>e),(0,iZ.L)(t=>(0,eN.v)(()=>t?._type?(0,eR.x)((0,eP.of)({isValidating:!0,revision:t._rev}),(function({document:e,getClient:t,i18n:n=sS(),schema:i,getDocumentExists:r,environment:a,maxCustomValidationConcurrency:o,currentUser:l}){if("string"!=typeof e?._type)throw Error("Tried to validated a value without a '_type'");let s=i.get(e._type);if(!s)return"studio"===a?(console.warn('Schema type for object type "%s" not found, skipping validation',e._type),(0,eP.of)([])):(0,eP.of)([{level:"warning",message:`Could not find schema type for type '${e._type}', skipping validation`,path:[]}]);let d=sD.get(i);d||(d=new iW._(o??5),sD.set(i,d));let c={getClient:t,schema:i,parent:void 0,value:e,path:[],document:e,type:s,i18n:n,getDocumentExists:r,environment:a,customValidationConcurrencyLimiter:d,currentUser:l};return(0,eL.H)(n.loadNamespaces(["validation"])).pipe((0,eM.n)(()=>sz(c)),(0,eY.W)(e=>{console.error(e);let t=e?.message||"Unknown error";return(0,eP.of)([{level:"error",message:t,item:{message:t},path:[]}])}))})({document:t,getClient:e.getClient,getDocumentExists:o,i18n:e.i18n,schema:e.schema,environment:"studio"}).pipe((0,eV.T)(e=>({validation:e,isValidating:!1})))):(0,eP.of)({validation:sR,isValidating:!1}))),(0,ts.S)((e,t)=>({...e,...t}),sP),sN())}let sV=lf((e,{draftId:t,publishedId:n,versionId:i},r,a,o)=>{let l=lk(e,{draftId:t,publishedId:n,versionId:i},r).pipe((0,eV.T)(e=>{let{version:t,draft:n,published:i}=e;return"draft"===a?n:"version"===a?t:i}),(0,tA.c)(200,e4.E,{trailing:!0})),s=l.pipe((0,eQ.F)((e,t)=>e?._rev===t?._rev||nZ((0,N.A)(e,"_rev","_updatedAt"),(0,N.A)(t,"_rev","_updatedAt"))),(0,e1.t)({bufferSize:1,refCount:!0})),d=l.pipe((0,eV.T)(e=>e?._rev));return(0,e8.z)([d,sO(e,s,o)]).pipe((0,eV.T)(([e,t])=>({...t,revision:e})))},(e,t,n,i,r)=>{let a="draft"===i?t.draftId:"version"===i?t.versionId:t.publishedId;return`${lg(e.client,t,n)}-${a}-${r}`}),sM=lf((e,t,n,i,r)=>ly(e,t,n,i,r).pipe((0,eM.n)(({draft:e,published:t})=>(0,eZ.h)(e.events,t.events))),lg);function sL(e){return{disabled:"NOT_READY",execute:()=>{throw Error(`Called ${e} before it was ready.`)}}}let sF={commit:sL("commit"),delete:sL("delete"),del:sL("del"),publish:sL("publish"),patch:sL("patch"),discardChanges:sL("discardChanges"),unpublish:sL("unpublish"),duplicate:sL("duplicate"),restore:sL("restore")};function sB(e,t,n){let i,r;return{disabled:t.disabled(n),execute:(i=n.idPair,r=n.typeName,(...t)=>lq(e,i,r,t))}}function sY(e){let t={commit:sB("commit",lT,e),delete:sB("delete",lE,e),del:sB("delete",lE,e),publish:sB("publish",lR,e),patch:sB("patch",lP,e),discardChanges:sB("discardChanges",l$,e),unpublish:sB("unpublish",lO,e),duplicate:sB("duplicate",lz,e),restore:sB("restore",lN,e)};return e.serverActionsEnabled?{...t,delete:sB("delete",lV,e),del:sB("delete",lV,e),discardChanges:sB("discardChanges",lM,e),patch:sB("patch",lL,e),publish:sB("publish",lF,e),unpublish:sB("unpublish",lY,e),restore:sB("restore",lB,e)}:t}
65let sH=lf((e,t,n)=>{let i=lJ(e),r=lI(e,t,n).pipe((0,eV.T)(sY));return(0,eR.x)((0,eP.of)(sF),(0,eZ.h)(i.pipe((0,tx.Z)(()=>eO.w)),r)).pipe((0,e1.t)({refCount:!0,bufferSize:1}))},(e,t,n)=>lg(e.client,t,n));function sU(e,t={}){return"scheduler"in window&&"function"==typeof window.scheduler?.postTask?window.scheduler.postTask(e,t):e()}function sZ(e){return(0,O.A)(e)}function sq(e,t){let n={...e,...t};return Object.keys(n).forEach(i=>{let r=t[i],a=e[i];sZ(r)&&sZ(a)&&(n[i]=sq(a,r))}),n}let sW=["_dataset","_projectId","_strengthenOnPublish","_key","_ref","_type","_weak"];function sJ(e){return e&&e.length>0?`"${e}"`:e}function sK(e,t){let n=e=>`Template "${t.id}" initial value: ${e}`;if(!sZ(e))throw Error(n("resolved to a non-object"));if(e._type&&t.schemaType!==e._type)throw Error(n(`includes "_type"-property (${e._type}) that does not match template (${t.schemaType})`));try{return function e(t,n=[],i=!1){if(Array.isArray(t))return t.map((t,i)=>{if(Array.isArray(t))throw Error(`multidimensional arrays are not supported (at path "${(0,w.dI)(n)}")`);return e(t,n.concat(i),!0)});if(!sZ(t))return t;let r=i&&!t._key?{_key:(0,nq.Xp)()}:{};return n.length>0&&!t._type&&t._ref&&(r._type="reference"),t._ref&&function(e,t=[]){if(!e._type&&e.type)throw Error(`Reference is missing "_type", but has a "type" property at path "${(0,w.dI)(t)}"`);let n=Object.keys(e).filter(e=>!sW.includes(e));if(n.length>0){let e=n.length>1?"properties":"property";throw Error(`Disallowed ${e} found in reference: ${n.map(sJ).join(", ")} at path "${(0,w.dI)(t)}"`)}}(t,n),Object.keys(t).reduce((i,r)=>(i[r]=e(t[r],n.concat([r])),i),r)}(e)}catch(e){throw e.message=n(e.message),e}}let sG=new WeakMap;async function sX(e,t,n,i){let r=i?.useCache;if("function"==typeof e){let i=sG.get(e),a=JSON.stringify([t,n.projectId,n.dataset,n.currentUser?.id]);if(r&&i?.[a])return i[a];let o=e(t,n);return r&&sG.set(e,{...i,[a]:o}),o}return e}async function sQ(e,t,n={},i,r){if(sZ(t)&&"function"==typeof t.serialize)return sQ(e,t.serialize(),n,i,r);let{id:a,schemaType:o,value:l}=t;if(!l)throw Error(`Template "${a}" has invalid "value" property`);let s=await sX(l,n,i,r);if(!sZ(s))throw Error(`Template "${a}" has invalid "value" property - must be a plain object or a resolver function returning a plain object`);sZ(s)&&!Object.keys(s).length&&(s={_type:o}),s=sK(s,t);let d=e.get(o);if(!d)throw Error(`Could not find schema type with name "${o}".`);return sK(sq(await s2(d,n,s1,i,r)||{},s),t)}let s1=10,s2=(b=(e,t,n=s1,i,r)=>n<=0?Promise.resolve(void 0):(0,eD.$d)(e)?sU(()=>s0(e,t,n,i,r)):(0,eD.zR)(e)?sU(()=>s5(e,t,n,i,r)):sX(e.initialValue,t,i,r),l=new WeakMap,s=e=>null!==e&&"object"==typeof e?Array.isArray(e)?`[${e.map(s).join(",")}]`:`{${Object.keys(e).sort().map(t=>`${JSON.stringify(t)}:${s(e[t])}`).join(",")}}`:JSON.stringify(e),async function(e,t,n,i,r){if(!r?.useCache)return b(e,t,n,i,r);let a=l.get(e);a||(a=new Map,l.set(e,a));let o=s({params:t,context:{schemaName:i.schema.name,projectId:i.projectId,dataset:i.dataset,currentUser:i.currentUser?.id}}),d=a.get(o);if(d)return d;let c=await b(e,t,n,i,r);return a.has(o)||a.set(o,c),c});async function s5(e,t,n,i,r){let a=await sX(e.initialValue,void 0,i,r);if(Array.isArray(a))return Promise.all(a.map(async a=>{let o,l="object"===(o=(0,nq.yu)(a))&&1===e.of.length?e.of[0]:e.of.find(e=>e.name===o);return(0,eD.$d)(l)?{...a,...await s2(l,t,n-1,i,r),_key:(0,nq.Xp)()}:a}))}async function s0(e,t,n,i,r){let a={...await sX(e.initialValue,t,i,r)||{}},o={};await Promise.all(e.fields.map(async e=>{let a=await s2(e.type,t,n-1,i,r);null!=a&&(o[e.name]=a)}));let l=sq(o,a);if(!(0,nq.AF)(l))return"object"!==e.name&&(l._type=e.name),l}let s7={type:"loading"};function s3(e){return"welcome"===e.type}function s8(e,t,n={},i={}){let r="string"==typeof t?t:t.fetch,a="string"==typeof t?t:t.listen,o=(0,eN.v)(()=>e.listen(a,n,{events:["welcome","mutation","reconnect"],includeResult:!1,visibility:"query",includeAllVersions:!0,tag:i.tag})).pipe((0,tx.Z)((e,t)=>0!==t||s3(e)?(0,eP.of)(e):(0,eJ.$)(()=>Error("reconnect"===e.type?"Could not establish EventSource connection":`Received unexpected type of first event "${e.type}"`))),(0,e7.u)()),[l,s]=(0,e9.j)(o,s3),d=()=>(0,eN.v)(()=>e.observable.fetch(r,n,{tag:i.tag,filterResponse:!0,perspective:i.perspective}));return(0,eZ.h)(l.pipe((0,eH.s)(1)),s.pipe((0,to.p)(e=>!i.transitions||"mutation"!==e.type||i.transitions.includes(e.transition)),(0,tA.c)(i.throttleTime||1e3,e4.E,{leading:!0,trailing:!0}))).pipe((0,iZ.L)(e=>"mutation"===e.type&&"query"!==e.visibility?(0,eK.O)(1200).pipe((0,tx.Z)(d)):d()))}function s4(e,t){if("published"===t||"drafts"===t)throw Error('Version Id cannot be "published" or "drafts"');
65if((0,tG.A_)(e))throw Error("editOpsOf does not expect a version id.");if((0,tG.R8)(e))throw Error("editOpsOf does not expect a draft id.");return rA(e,{version:t})}let s6={isLoaded:!1,documentType:void 0};function s9(e,t){let n,i,r,a,o,l,s=(0,j.c)(14),d=void 0===t?"*":t,c=cu();s[0]!==e?(n=(0,tG.IM)(e),s[0]=e,s[1]=n):n=s[1];let u=n,p=!!(d&&"*"!==d);s[2]!==d?(i={documentType:d,isLoaded:!0},s[2]=d,s[3]=i):i=s[3];let m=i,[h,f]=(0,_.useState)(p?m:s6);return s[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>f(s6),s[4]=r):r=s[4],s[5]!==u||s[6]!==d?(a=[u,d],s[5]=u,s[6]=d,s[7]=a):a=s[7],(0,_.useEffect)(r,a),s[8]!==c||s[9]!==p||s[10]!==u||s[11]!==d?(o=()=>{if(p)return;let e=c.resolveTypeForDocument(u,d).subscribe(e=>f({documentType:e,isLoaded:!0}));return()=>e.unsubscribe()},l=[c,u,d,p],s[8]=c,s[9]=p,s[10]=u,s[11]=d,s[12]=o,s[13]=l):(o=s[12],l=s[13]),(0,_.useEffect)(o,l),p?m:h}function de(e){if(e?.ready)return[e.draft,e.published,e.version].every(e=>null===e)}function dt(e){return e.version??e.published}function dn(e){let t,n,i,r,a,o=(0,j.c)(17),{documentId:l,documentType:s,templateName:d,templateParams:c,version:u}=e,p=ai(c),m=cu(),h=di();o[0]!==l||o[1]!==u?(t=u?(0,tG.ct)(l,u):l,o[0]=l,o[1]=u,o[2]=t):t=o[2],o[3]!==s||o[4]!==t?(n={_id:t,_type:s},o[3]=s,o[4]=t,o[5]=n):n=o[5];let f=n;o[6]!==f?(i={loading:!1,error:null,value:f},o[6]=f,o[7]=i):i=o[7];let[g,y]=(0,_.useState)(i);return o[8]!==h||o[9]!==f||o[10]!==l||o[11]!==m||o[12]!==s||o[13]!==d||o[14]!==p?(r=()=>{let e=m.initialValue({documentId:l,documentType:s,templateName:d,templateParams:p},h).subscribe(e=>{"loading"===e.type&&y({loading:!0,error:null,value:f}),"success"===e.type&&y({loading:!1,error:null,value:e.value?{...f,...e.value}:f}),"error"===e.type&&y({loading:!1,error:e.error,value:f})});return y({loading:!0,error:null,value:f}),()=>e.unsubscribe()},a=[f,l,m,s,d,p,h],o[8]=h,o[9]=f,o[10]=l,o[11]=m,o[12]=s,o[13]=d,o[14]=p,o[15]=r,o[16]=a):(r=o[15],a=o[16]),(0,_.useEffect)(r,a),g}function di(){let e,t=(0,j.c)(6),n=_g(),i=R8(),r=o5(),a=Ru(),o=Rc(),l=n.getClient;return t[0]!==r||t[1]!==o||t[2]!==l||t[3]!==a||t[4]!==i?(e={projectId:a,dataset:o,getClient:l,schema:i,currentUser:r},t[0]=r,t[1]=o,t[2]=l,t[3]=a,t[4]=i,t[5]=e):e=t[5],e}function dr(){let e,t=(0,j.c)(2),n=di();return t[0]!==n?(e=(e,t)=>s2(e,t,s1,n),t[0]=n,t[1]=e):e=t[1],e}let da=(0,tW.g_)({name:"Document Desynced",version:1,description:'Occurs when a "hole" in events from the document pair listener is detected and recovered from.'}),dl=(0,tW.g_)({name:"High Listener Latency Detected",version:1,description:"Emits when a high listener latency is detected"}),ds=rE(function({client:e,grantsStore:t,schema:n,id:i,permission:r,type:a,serverActionsEnabled:o,version:l,pairListenerOptions:s}){if("*"===a)return(0,eP.of)({granted:!1,reason:"Type specified was `*`"});let d=!!function(e,t){let n=e.get(t);if(!n)throw Error(`No such schema type: ${t}`);return n}(n,a).liveEdit;return lb(e,rA(i,{version:l}),a,o,s).pipe((0,eM.n)(e=>(0,e8.z)([e.draft.snapshots$,e.published.snapshots$,e.version?.snapshots$||(0,eP.of)(null)]).pipe((0,eV.T)(([e,t,n])=>({draft:e,published:t,version:n})))),(0,eM.n)(({draft:e,published:n,version:i})=>{let a=(function({grantsStore:e,permission:t,draft:n,version:i,published:r,liveEdit:a}){let o=i||n||r,l=o===i?i:o===n?"draft":"published",{checkDocumentPermission:s}=e;switch(t){case"delete":return a?[["delete published document (live-edit)",s("update",r)]]:[["delete draft document",s("update",n)],["delete published document",s("update",r)]];case"discardDraft":return a?[]:[["delete draft document",s("update",n)]];case"discardVersion":return a?[]:[["delete version",s("update",i||null)]];case"publish":return a?[]:[["update published document at its current state",s("update",r)],["delete draft document",s("update",n)],["create published document from draft",s("create",n&&{...n,_id:(0,tG.IM)(n._id)})]];case"unpublish":return a?[]:[["update draft document at its current state",s("create",n)],["delete published document",s("update",r)],["create draft document from published version",s("create",r&&{...r,_id:(0,tG.T4)(r._id)})]];case"update":return a?[["update published document (live-edit)",s("update",r)]]:[[`update ${l} document`,s("update",o)]];case"duplicate":return a?[["create new published document from existing document (live-edit)",s("create",{...r,_id:"dummy-id"})]]:[[`create new draft document from existing ${l} document`,s("create",{...o,_id:(0,tG.T4)("dummy-id")})]];default:throw Error(`Could not match permission: ${t}`)}})({grantsStore:t,permission:r,draft:e,version:i,published:n,liveEdit:d}).map(([e,t])=>t.pipe((0,eV.T)(({granted:t,reason:n})=>({granted:t,reason:t?"":`not allowed to ${e}: ${n}`,label:e,permission:r}))));return a.length?(0,e8.z)(a).pipe((0,eV.T)(e=>{let t=e.every(e=>e.granted),n=t?"":`Unable to ${r}: 66 ${e.filter(e=>!e.granted).map(e=>e.reason).join(` 67 `)}`;return{granted:t,reason:n}})):(0,eP.of)({granted:!0,reason:""})}))});function dd(e){let t,n,i,r=(0,j.c)(14),{id:a,type:o,version:l,permission:s,client:d,schema:c,grantsStore:u,pairListenerOptions:p}=e,m=el0(ob),h=R8(),f=cs(),g=cY(),y=d||m,C=c||h,x=u||f;r[0]!==g.__internal_serverDocumentActions?.enabled?(t=()=>{let e=g.__internal_serverDocumentActions?.enabled;return"boolean"==typeof e?(0,eP.of)(e):(0,eP.of)(!0)},r[0]=g.__internal_serverDocumentActions?.enabled,r[1]=t):t=r[1],r[2]!==t?(n=t(),r[2]=t,r[3]=n):n=r[3];let b=n;return r[4]!==y||r[5]!==x||r[6]!==a||r[7]!==p||r[8]!==s||r[9]!==C||r[10]!==b||r[11]!==o||r[12]!==l?
67(i={client:y,schema:C,grantsStore:x,id:a,permission:s,type:o,serverActionsEnabled:b,pairListenerOptions:p,version:l},r[4]=y,r[5]=x,r[6]=a,r[7]=p,r[8]=s,r[9]=C,r[10]=b,r[11]=o,r[12]=l,r[13]=i):i=r[13],ds(i)}function dc({grantsStore:e,document:t,permission:n}){let{checkDocumentPermission:i}=e;return i(n,t)}let du=[void 0,!0];function dp(e,t){let[n,i]=e;switch(t.type){case"loading":return[n,!0];case"value":return!i&&(0,D.A)(t.value,n)?e:[t.value,!1];case"error":throw t.error;default:throw Error(`Invalid action type: ${t}`)}}function dm(e,t){return(0,D.A)(e,t)}let dh="_debug_",df=typeof window>"u"?(0,eP.of)({}):(0,eW.R)(window,"hashchange"),dg=(0,eR.x)((0,eP.of)(0),df).pipe((0,eV.T)(()=>typeof document>"u"?"#":document.location.hash),(0,eQ.F)(),(0,eV.T)(e=>e.slice(1).split(";").filter(e=>e.toLowerCase().startsWith(dh)).map(e=>e.slice(dh.length)))),dy=dg.pipe((0,eV.T)(e=>e.find(e=>e.startsWith("roles="))),(0,eV.T)(e=>e?.split("roles=")[1].split(",").map(e=>e.trim())||[])),dC=[{filter:'_id in path("**")',permissions:["read","create","history","update"]}],dx=[{filter:'_id in path("**")',permissions:["read","history"]}],db={administrator:[{filter:'_id in path("**")',permissions:["read","create","history","update"]}],editor:dC,developer:[{filter:'_id in path("**")',permissions:["read","create","history","update"]}],contributor:[{filter:'_id in path("**")',permissions:["read"]},{filter:'_id in path("drafts.**")',permissions:["create","history","update"]}],viewer:dx,restricted:[{filter:'_id in path("drafts.**") && _type in ["stringsTest", "book", "author", "referenceTest"]',permissions:["read","create","history","update"]},{filter:'_id in path("**")',permissions:["read"]}],requiresApproval:[{filter:"!locked",permissions:["read","create","update"]}],read:dx,write:dC},dv=dy.pipe((0,eV.T)(e=>e.length?e.filter(e=>!!e&&e in db).flatMap(e=>db[e]||[]):null));async function dj(e,t,n){return await e.request({uri:`/projects/${t}/datasets/${n}/acl`,tag:"acl.get"})}let dw=new Map;async function d_(e,t,n){let i;dw.has(t)||dw.set(t,(0,iY.qg)(`*[${t}]`));let r=dw.get(t),a=(i={},null!==e&&(i.identity=e),i),{identity:o}=a,l={...a};return(await (await (0,iY._3)(r,{dataset:[n],identity:o,params:l})).get())?.length===1}async function dk(e,t,n,i){if(!i)return{granted:!0,reason:"Null document, nothing to check"};if(!t.length)return{granted:!1,reason:"No document grants"};let r=[];for(let n of t)await d_(e,n.filter,i)&&r.push(n);let a=r.some(e=>e.permissions.some(e=>e===n));return{granted:a,reason:a?"Matching grant":"No matching grants found"}}let dS=rE(function({grantsStore:e,templateItems:t,templates:n,schema:i,context:r}){return t?.length?(0,eN.v)(()=>(0,eL.H)(t).pipe((0,eF.H)(async e=>{let t=function e(t){return"object"==typeof t&&null!==t&&"serialize"in t?e(t.serialize()):t}(e),a=n.find(e=>e.id===t.templateId);if(!a)throw Error(`template not found: "${t.templateId}"`);let o=await sQ(i,a,t.parameters,r,{useCache:!0});return{item:t,template:a,resolvedInitialValue:o}}),(0,eV.T)(({item:t,template:n,resolvedInitialValue:r})=>{let a=i.get(n.schemaType);if(!a)throw Error(`schema type not found: "${n.schemaType}"`);let o=a?.liveEdit,{initialDocumentId:l="dummy-id"}=t;return dc({grantsStore:e,permission:"create",document:{_id:o?(0,tG.IM)(l):(0,tG.T4)(l),_type:a.name,...r}}).pipe((0,eV.T)(({granted:e,reason:i})=>({...t,granted:e,reason:i,resolvedInitialValue:r,template:n,i18n:t.i18n||n.i18n,title:t.title||n.title,subtitle:a.title===(t.title||n.title)?void 0:a.title,description:t.description||n.description,icon:t.icon||n.icon})))}),(0,tC.$)(),(0,eM.n)(e=>(0,e8.z)(e)))):(0,eP.of)([])});function dI(e){let t,n,i,r=(0,j.c)(9);r[0]!==e?({templateItems:n,...t}=e,r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]);let a=R8(),o=ess(),l=cs(),s=di(),d=t.grantsStore||l,c=t.schema||a,u=t.templates||o;return r[3]!==s||r[4]!==d||r[5]!==c||r[6]!==u||r[7]!==n?(i={templateItems:n,grantsStore:d,schema:c,templates:u,context:s},r[3]=s,r[4]=d,r[5]=c,r[6]=u,r[7]=n,r[8]=i):i=r[8],dS(i)}let dT=!1;function dE(e,t){var n,i;if(e.end!==t.start)throw Error("chunks are not next to each other");let r=dD(e.draftState,t.draftState),a=dD(e.publishedState,t.publishedState);if("delete"===e.type&&"editDraft"===t.type)return[e,{...t,type:"create",draftState:r,publishedState:a}];if("delete"===t.type){if("missing"===r&&"present"===a)return[e,{...t,type:"discardDraft",draftState:r,publishedState:a}];if("present"===r&&"missing"===a)return[e,{...t,type:"unpublish",draftState:r,publishedState:a}]}if(("create"===(n=e.type)||"editDraft"===n)&&"editDraft"===t.type&&(i=e.endTimestamp,Date.parse(t.startTimestamp)-Date.parse(i)<3e5)){let n=new Set;for(let t of e.authors)n.add(t);for(let e of t.authors)n.add(e);return{index:0,id:t.id,type:e.type,start:e.start,end:t.end,startTimestamp:e.startTimestamp,endTimestamp:t.endTimestamp,authors:n,draftState:r,publishedState:a}}return[e,{...t,draftState:r,publishedState:a}]}function d$(e){let t=!!e;return e&&dz(e?.apply)?"deleted":t?"upsert":"unedited"}function dA(e){let t=!!e.draftEffect,n=!!e.publishedEffect,i=e.draftEffect&&dz(e.draftEffect.apply),r=e.publishedEffect&&dz(e.publishedEffect.apply),a=function(e){let t=d$(e.draftEffect),n=d$(e.publishedEffect);if("unedited"===n){if("deleted"===t)return"delete";if("upsert"===t)return"editDraft"}if("deleted"===n)return"delete";if("upsert"===n){if("unedited"===t)return"editLive";if("deleted"===t)return"publish"}return"editLive"}(e);return{index:0,id:e.id,type:a,start:e.index,end:e.index+1,startTimestamp:e.timestamp,endTimestamp:e.timestamp,authors:new Set([e.author]),draftState:t?i?"missing":"present":"unknown",publishedState:n?r?"missing":"present":"unknown"}}function dD(e,t){return"unknown"===t?e:t}function dz(e){return 0===e[0]&&null===e[1]}function dP(e){return e.draft||e.published}class dR{type="array";elements=[];constructor(e,t,n,i){this.content=e,this.value=t,this.annotation=n,this.extractor=i,this.length=e.elements.length}at(e){if(e>=this.length)throw Error("out of bounds");return this.elements[e]||(this.elements[e]=dV(this.content.elements[e],this.value[e],this.extractor))}annotationAt(e){let t=this.content.metas[e];return this.extractor.fromMeta(t)}}class dN{type="object";fields={};constructor(e,t,n,i){this.content=e,this.value=t,this.annotation=n,this.extractor=i,this.keys=Object.keys(e.fields)}get(e){let t=this.fields[e];if(t)return t;let n=this.content.fields[e];if(n)return this.fields[e]=dV(n,this.value[e],this.extractor)}}class dO{type="string";constructor(e,t,n,i){this.content=e,this.value=t,this.annotation=n,this.extractor=i}sliceAnnotation(e,t){let n=[],i=0;for(let r of this.content.parts){let a=r.value.length,o=Math.max(0,e-i);if(o<a){let e=Math.min(a,t-i);if(e<=0)break;!function(e,t){if(n.length>0){var i;let r=n[n.length-1];if(i=r.annotation,i&&t?i.author===t.author&&i.timestamp===t.timestamp:!i&&!t){r.text+=e;return}}n.push({text:e,annotation:t})}(r.value.slice(o,e),this.extractor.fromValue(r))}i+=a}return n}}function dV(e,t,n){let i=n.fromValue(e);if(e.content)switch(e.content.type){case"array":return new dR(e.content,t,i,n);case"object":return new dN(e.content,t,i,n);case"string":return new dO(e.content,t,i,n)}return(0,iB.L)(t,i)}
67function dM(e,t,n){return n?dF(e,n.transactionIndex+1,n.chunk.index):t?dF(e,t.start,t.index):null}function dL(e,t){return t?dF(e,t.transactionIndex,t.chunk.index):null}function dF(e,t,n){let i=e.transactionByIndex(t);if(!i)return null;let r=e.chunkByTransactionIndex(t,n);return r?{chunk:r,timestamp:i.timestamp,author:i.author}:null}class dB{_postive=[];_negative=[];addToEnd(e){e.index=this._postive.length,this._postive.push(e)}addToBeginning(e){0==this.length?this.addToEnd(e):(e.index=-(this._negative.length+1),this._negative.push(e))}mergeAtEnd(e,t){if(0===this.length)return void this.addToEnd(e);let n=this.lastIdx,i=t(this.get(n),e);Array.isArray(i)?(this.set(n,i[0]),this.addToEnd(i[1])):this.set(n,i)}mergeAtBeginning(e,t){if(0===this.length)return void this.addToEnd(e);let n=this.firstIdx,i=t(e,this.get(n));Array.isArray(i)?(this.set(n,i[1]),this.addToBeginning(i[0])):this.set(n,i)}removeFromEnd(){0===this._postive.length?this._negative.shift():this._postive.pop()}has(e){return e>=0?e<this._postive.length:-(e+1)<this._negative.length}get(e){return e>=0?this._postive[e]:this._negative[-(e+1)]}set(e,t){e>=0?(t.index=e,this._postive[e]=t):(t.index=e,this._negative[-(e+1)]=t)}get lastIdx(){return this._postive.length-1}get last(){return this.get(this.lastIdx)}get firstIdx(){return-this._negative.length}get first(){return this.get(this.firstIdx)}get length(){return this._postive.length+this._negative.length}}class dY{reachedEarliestEntry=!1;_transactions=new dB;_chunks=new dB;_possiblePendingTransactions=new Map;constructor(e){this.publishedId=e.publishedId,this.draftId=`drafts.${e.publishedId}`,e.enableTrace&&(this._trace=[],this._trace.push({type:"initial",publishedId:e.publishedId}),window.__sanityTimelineTrace=this._trace)}get chunkCount(){return this._chunks.length}mapChunks(e){let t=[],n=this._chunks.firstIdx,i=this._chunks.lastIdx;for(let r=i;r>=n;r--)t.push(e(this._chunks.get(r),r));return t}reset(){this._transactions=new dB,this._chunks=new dB,this._possiblePendingTransactions=new Map,this._recreateTransactionsFrom=void 0,this.reachedEarliestEntry=!1}addRemoteMutation(e){this._trace&&this._trace.push({type:"addRemoteMutation",event:e});let t=this._possiblePendingTransactions.get(e.transactionId),n=t?t.transaction:{index:0,id:e.transactionId,timestamp:e.timestamp.toISOString(),author:e.author};"draft"===e.version?n.draftEffect=e.effects:n.publishedEffect=e.effects,t?(this._possiblePendingTransactions.delete(e.transactionId),this._invalidateTransactionFrom(t.idx)):(this._transactions.addToEnd(n),this._possiblePendingTransactions.set(e.transactionId,{transaction:n,idx:this._transactions.lastIdx}
67))}addTranslogEntry(e){this._trace&&this._trace.push({type:"addTranslogEntry",event:e}),this._transactions.addToBeginning({index:0,id:e.id,author:e.author,timestamp:e.timestamp,draftEffect:e.effects[this.draftId],publishedEffect:e.effects[this.publishedId]})}didReachEarliestEntry(){this._trace&&this._trace.push({type:"didReachEarliestEntry"}),this.reachedEarliestEntry=!0}updateChunks(){this._trace&&this._trace.push({type:"updateChunks"}),this._removeInvalidatedChunks(),this._addChunksFromTransactions(),this._createInitialChunk()}_removeInvalidatedChunks(){if(this._recreateTransactionsFrom){for(;this._chunks.length>0;){let e=this._chunks.last;if(this._recreateTransactionsFrom<e.end)this._chunks.removeFromEnd();else break}this._recreateTransactionsFrom=void 0}}_addChunksFromTransactions(){let e=this._transactions.firstIdx,t=this._transactions.lastIdx,n=this._chunks.length>0?this._chunks.last.end:e;for(let e=n;e<=t;e++){let t=this._transactions.get(e);this._chunks.mergeAtEnd(dA(t),dE)}if(0==this._chunks.length)return;let i=this._chunks.first.start;for(let t=i-1;t>=e;t--){let e=this._transactions.get(t);this._chunks.mergeAtBeginning(dA(e),dE)}}_invalidateTransactionFrom(e){(void 0===this._recreateTransactionsFrom||e<this._recreateTransactionsFrom)&&(this._recreateTransactionsFrom=e)}_createInitialChunk(){if(this.reachedEarliestEntry){if(this._chunks.first?.type==="initial")return;let e=this._transactions.first;if(!e)return;let t=dA(e);t.type="initial",t.id="@initial",t.end=t.start,this._chunks.addToBeginning(t)}}parseTimeId(e){if(0===this._chunks.length)return this.reachedEarliestEntry?"invalid":"loading";let t=e.split("/",3),n=t.shift(),i=t.shift(),r=Number(n);for(let e=this._chunks.lastIdx;e>=this._chunks.firstIdx;e--){let t=this._chunks.get(e);if(t.id===i)return t;if(Date.parse(t.endTimestamp)+36e5<r)return"invalid"}return this.reachedEarliestEntry?"invalid":"loading"}findLastPublishedBefore(e){for(let t=e?e.index-1:this._chunks.lastIdx;t>=this._chunks.firstIdx;t--){let e=this._chunks.get(t);if("publish"===e.type||"initial"===e.type)return e}return this.reachedEarliestEntry?this._chunks.first:"loading"}isLatestChunk(e){return e===this._chunks.last}createTimeId(e){return`${e.endTimestamp.valueOf()}/${e.id}`}lastChunk(){return this._chunks.last}transactionByIndex(e){return this._transactions.has(e)?this._transactions.get(e):null}chunkByTransactionIndex(e,t=0){let n=t;for(;;){let t=this._chunks.get(n);if(!t)throw Error("transaction does not belong in any chunk");if(e>=t.end)n++;else{if(!(e<t.start))return t;n--}}}replayBackwardsBetween(e,t,n){let i=n.draft,r=n.published;for(let n=t;n>=e;n--){let e=this._transactions.get(n);e.draftEffect&&(i=(0,iH.X)(i,e.draftEffect.revert)),e.publishedEffect&&(r=(0,iH.X)(r,e.publishedEffect.revert))}return{draft:i,published:r}}replayBackwardsUntil(e,t){return this.replayBackwardsBetween(e,this._transactions.lastIdx,t)}calculateDiff(e,t,n,i){var r,a,o,l;let s,d,c=iH.r.wrap(e.draft,null),u=iH.r.wrap(e.published,null),p=(o=c,l=u,"null"===iH.r.getType(o)?l:o),m=dP(e),h=null;for(let e=n;e<=i;e++){let t=this._chunks.get(e);h||(h=t);for(let e=t.start;e<t.end;e++){let n=this._transactions.get(e),i={chunk:t,transactionIndex:e},r=c,a=u;n.draftEffect&&(c=iH.r.applyPatch(c,n.draftEffect.apply,i)),n.publishedEffect&&(u=iH.r.applyPatch(u,n.publishedEffect.apply,i));let o="null"!==iH.r.getType(r),l="null"!==iH.r.getType(c);"null"===iH.r.getType(u)||l||(u=iH.r.rebaseValue(r,u)),l&&!o&&(c=iH.r.rebaseValue(a,c))}}let f="null"===iH.r.getType(c)?u:c,g=dP(t);return r=this,a=h,s=dV(p,m,{fromValue:e=>dM(r,a,e.endMeta),fromMeta:e=>dM(r,a,e)}),d=dV(f,g,{fromValue:e=>dL(r,e.startMeta),fromMeta:e=>dL(r,e)}),(0,iB.g)(s,d)}}function dH(e){return{id:e,hasAttrs:!1,attrs:null,rev:null,events:[],aligned:!1}}function dU(e,t){if(e.hasAttrs=!0,t){if(e.attrs={...t},"string"!=typeof e.attrs._rev)throw Error("snapshot has no _rev");e.rev=e.attrs._rev,delete e.attrs._rev}else e.attrs=null,e.rev=null;e.events=[]}class dZ{earliestTransactionId=null;constructor(e){this.timeline=e,this._states={draft:dH(e.draftId),published:dH(e.publishedId)}}appendRemoteSnapshotEvent(e){if("version"===e.version)return;let t=this._states[e.version];if("snapshot"===e.type){this._maybeInvalidateHistory(),dU(t,e.document);return}"remoteMutation"===e.type&&(t.aligned?(this._apply(t,e),this.timeline.addRemoteMutation(e)):t.hasAttrs?t.events.push(e):dU(t,e.head)
67)}prependHistoryEvent(e){if(!this.acceptsHistory)throw Error("cannot prepend history at this point");for(let t of Object.values(this._states))if(!t.aligned){let n=function(e,t){let n=t.events.findIndex(t=>e.id===t.transactionId);return n>=0?n+1:t.rev?t.rev===e.id?0:-1:0}(e,t);n>=0&&this._alignAtIndex(t,n)}this.timeline.addTranslogEntry(e),this.earliestTransactionId=e.id}didReachEarliestEntry(){for(let e of Object.values(this._states))if(!e.aligned){if(null!==e.attrs)throw Error("unable to find translog entry to align to");this._alignAtIndex(e,0)}this.timeline.didReachEarliestEntry()}get isAligned(){return Object.values(this._states).every(e=>e.aligned)}get acceptsHistory(){return this._isComplete}get currentDocument(){return{draft:this._states.draft.attrs,published:this._states.published.attrs}}_alignAtIndex(e,t){for(let n of e.events.slice(0,t))this._apply(e,n);for(let n of e.events.slice(t))this._apply(e,n),this.timeline.addRemoteMutation(n);e.events=[],e.aligned=!0}get _isComplete(){return Object.values(this._states).every(e=>e.hasAttrs)}_apply(e,t){e.attrs=(0,iH.X)(e.attrs,t.effects.apply),e.rev=t.transactionId}_maybeInvalidateHistory(){if(this._isComplete){for(let e of Object.values(this._states))e.aligned=!1;this.earliestTransactionId=null,this.timeline.reset()}}}async function dq(e,t){let n=t?{headers:{...ov,Authorization:`Bearer ${t}`}}:{credentials:"include",headers:ov};return function(e){let t=e.body;if(!t)throw Error("Failed to read body from response");let n,i=!1;return new ReadableStream({start(e){n=t.getReader();let r=new TextDecoder,a="";n.read().then(function t(o){if(o.done)return i?void 0:0===(a=a.trim()).length?void e.close():(e.enqueue(JSON.parse(a)),void e.close());let l=(a+=r.decode(o.value,{stream:!0})).split(` 68`);for(let t=0;t<l.length-1;++t){let r=l[t].trim();if(0!==r.length)try{e.enqueue(JSON.parse(r))}catch(t){e.error(t),i=!0,n.cancel();return}}return a=l[l.length-1],n.read().then(t).catch(t=>e.error(t))}).catch(t=>e.error(t))},cancel(){i=!0,n.cancel()}})}
68(await fetch(e,n))}class dW{constructor(e,t,n,i){this.timeline=e,this.start=n,this.end=i,this.doc=t}same(e,t){return this.start===e&&this.end===t}endAttributes(){return dJ(this.endDocument())}endDocument(){return this._endDocument||(this._endDocument=this.timeline.replayBackwardsUntil(this.end.end,this.doc)),this._endDocument}startAttributes(){return dJ(this.startDocument())}startDocument(){if(!this.start)throw Error("start required");return this._startDocument||(this._startDocument=this.timeline.replayBackwardsBetween(this.start.end,this.end.end-1,this.endDocument())),this._startDocument}diff(){if(!this._diff){if(!this.start)throw Error("start required");this._diff=this.timeline.calculateDiff(this.startDocument(),this.endDocument(),this.start.index+1,this.end.index)}return this._diff}}function dJ(e){return e.draft||e.published}class dK{version=0;selectionState="inactive";constructor(e){this.timeline=e.timeline,this.client=e.client,this.handler=e.handler,this._aligner=new dZ(this.timeline),this.markChange()}_fetchMore=!1;_fetchAtLeast=0;_isRunning=!1;_isSuspended=!1;_didErr=!1;_since=null;_sinceTime=null;_rev=null;_revTime=null;setHandler(e){this.handler=e}clearRange(){this.setRange(null,null)}setRange(e,t){t!==this._rev&&this.setRevTime(t),e!==this._since&&this.setSinceTime(e);let n=10;if("loading"!==this._sinceTime&&"loading"!==this._revTime&&this._aligner.isAligned)if("invalid"===this._sinceTime||"invalid"===this._revTime)this.selectionState="invalid";else if(this._sinceTime){this.selectionState="range";let e=this._revTime||this.timeline.lastChunk();this._sinceTime.index>e.index?(this._revTime="invalid",this.selectionState="invalid"):this.setReconstruction(this._sinceTime,e)}else this._revTime?(this.selectionState="rev",this.setReconstruction(null,this._revTime)):(this.selectionState="inactive",n=0);else this.selectionState="loading";this._fetchAtLeast=n,this.start()}setLoadMore(e){this._fetchMore=e,this.start()}get sinceTime(){return this._sinceTime&&"object"==typeof this._sinceTime?this._sinceTime:null}get revTime(){return this._revTime&&"object"==typeof this._revTime?this._revTime:null}get isLoading(){return this._isRunning}get realRevChunk(){return this.revTime||this.timeline.lastChunk()}onOlderRevision(){return!!this._rev&&("range"===this.selectionState||"rev"===this.selectionState)}findRangeForNewRev(e){let t=this.timeline.isLatestChunk(e)?null:this.timeline.createTimeId(e);if(!this._since)return[null,t];let n=this.sinceTime;return n&&n.index<e.index?[this._since,t]:["@lastPublished",t]}findRangeForNewSince(e){let t=this.revTime;return t&&e.index<t.index?[this.timeline.createTimeId(e),this._rev]:[this.timeline.createTimeId(e),null]}setRevTime(e){this._rev=e,this._revTime=e?this.timeline.parseTimeId(e):null,"@lastPublished"===this._since&&(this._since=null,this._sinceTime=null)}setSinceTime(e){"@lastPublished"===e?"string"==typeof this._revTime?this._sinceTime=this._revTime:this._sinceTime=this.timeline.findLastPublishedBefore(this._revTime):this._sinceTime=e?this.timeline.parseTimeId(e):null,this._since=e}sinceAttributes(){return this._sinceTime&&this._reconstruction?this._reconstruction.startAttributes():null}displayed(){return this._revTime&&this._reconstruction?this._reconstruction.endAttributes():null}setReconstruction(e,t){this._reconstruction&&this._reconstruction.same(e,t)||(this._reconstruction=new dW(this.timeline,this._aligner.currentDocument,e,t))}currentDiff(){return this._reconstruction?this._reconstruction.diff():null}currentObjectDiff(){let e=this.currentDiff();if(e){if("null"===e.type)return null;if("object"!==e.type)throw Error(`ObjectDiff expected, got ${e.type}`)}return e}handleRemoteMutation(e){this._aligner.appendRemoteSnapshotEvent(e),this.markChange(),this._aligner.acceptsHistory&&this.start()}start(){this._didErr||this._isRunning||(this._isRunning=!0,this.tick().then(()=>{this._isRunning=!1}))}resume(){this._isSuspended=!1}suspend(){this._isSuspended=!0}async tick(){if(!(this._aligner.acceptsHistory&&!this.timeline.reachedEarliestEntry&&("loading"===this.selectionState||this._fetchMore||this.timeline.chunkCount<=this._fetchAtLeast)&&!this._isSuspended)){this._isRunning=!1;return}try{await this.fetchMoreTransactions()}catch(e){this._didErr=!0,this.handler?.(e,this);return}await this.tick()}async fetchMoreTransactions(){let e=this.timeline.publishedId,t=this.timeline.draftId,n=this.client.config(),i="tag=sanity.studio.structure.history&effectFormat=mendoza&excludeContent=true&excludeMutations=true&includeIdentifiedDocumentsOnly=true&reverse=true&limit=50",r=this._aligner.earliestTransactionId;r&&(i+=`&toTransaction=${r}`);let a=this.client.getUrl(`/data/history/${n.dataset}/transactions/${e},${t}?${i}`),o=(await dq(a,n.token)).getReader(),l=0;for(;;){let e=await o.read();if(e.done)break;if("error"in e.value)throw Error(e.value.error.description||e.value.error.type);if(l++,e.value.id!==r){if(this._aligner.earliestTransactionId!==r||!this._aligner.acceptsHistory)return;this._aligner.prependHistoryEvent(e.value),r=this._aligner.earliestTransactionId}}this._aligner.earliestTransactionId===r&&this._aligner.acceptsHistory&&(l<50&&this._aligner.didReachEarliestEntry(),this.markChange())}markChange(){this.timeline.updateChunks(),this.setRevTime(this._rev),this.setSinceTime(this._rev),this.version++,this.handler?.(null,this)}}let dG=Object.create(null),dX=(e,t,n)=>{let i=(0,tG.IM)(t),r=(0,tG.T4)(t),a=(0,nM.A_)(t)?t:void 0,o=[i,r,a].filter(
68Boolean),l="lastRevision"===n;if(!l){let e=dG[`${t}@${n}`];if(e)return e}let s=`/data/history/${e.config().dataset}/documents/${o.join(",")}?${l?"lastRevision=true":`revision=${n}`}`,d=e.request({url:s,tag:"history-revision"}).then(e=>{let t=e.documents||[],n=t.find(e=>e._id===i),o=t.find(e=>e._id===r);return(a?t.find(e=>e._id===a):void 0)||o||n});return l||(dG[`${t}@${n}`]=d),d},dQ=({client:e,documentId:t,documentType:n})=>{let i=new dY({enableTrace:dT,publishedId:t});return new dK({client:e,documentId:t,documentType:n,timeline:i})},d1=async(e,t)=>{let n=Array.isArray(t)?t:[t],i=e.config().dataset,r=`/data/history/${i}/transactions/${n.join(",")}`;return(await e.request({url:r,query:{excludeContent:"true",includeIdentifiedDocumentsOnly:"true"}})).toString("utf8").split(` 69`).filter(Boolean).map(e=>JSON.parse(e))};function d2(e,t){if(!e)throw Error("Passed timelineStore is undefined, if your are using the events timeline, call useEvents() instead. If you need to use this hook, opt in by setting the beta.eventsAPI.enabled feature flag to false");return(0,iR.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,null,t)}let d5={chunks:[],diff:null,hasMoreChunks:null,isLoading:!1,isPristine:null,lastNonDeletedRevId:null,onOlderRevision:!1,realRevChunk:null,revTime:null,selectionState:"inactive",sinceAttributes:null,sinceTime:null,timelineDisplayed:null,timelineReady:!1};function d0(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(37),{documentId:g,documentType:y,onError:C,rev:x,since:b}=e,v=cd(),w=(0,_.useRef)(null),S=(0,_.useRef)(d5),I=el0(ob),T=cY();f[0]!==I||f[1]!==g||f[2]!==y||f[3]!==v?(t=v.getTimelineController({client:I,documentId:g,documentType:y}),f[0]=I,f[1]=g,f[2]=y,f[3]=v,f[4]=t):t=f[4];let E=t;f[5]!==E?(n=new e2.t(E),f[5]=E,f[6]=n):n=f[6];let $=n;f[7]!==E||f[8]!==x||f[9]!==b||f[10]!==$?(i=()=>(E.setRange(b||null,x||null),$.next(E),E.setHandler((e,t)=>{e?$.error(e):setTimeout(()=>{t.setRange(b||null,x||null),$.next(t)},0)}),E.resume(),()=>E.suspend()),r=[x,b,E,$],f[7]=E,f[8]=x,f[9]=b,f[10]=$,f[11]=i,f[12]=r):(i=f[11],r=f[12]),(0,_.useEffect)(i,r),f[13]!==T.__internal_serverDocumentActions?.enabled?(a=()=>{let e=T.__internal_serverDocumentActions?.enabled;return"boolean"==typeof e?(0,eP.of)(e):(0,eP.of)(!0)},f[13]=T.__internal_serverDocumentActions?.enabled,f[14]=a):a=f[14],f[15]!==a?(o=a(),f[15]=a,f[16]=o):o=f[16];let A=o;return f[17]!==I||f[18]!==E||f[19]!==g||f[20]!==y||f[21]!==A?(l=()=>(w.current||(w.current=lK(I,{draftId:`drafts.${g}`,publishedId:g},y,A).subscribe(e=>{E.handleRemoteMutation(e)})),()=>{w.current&&(w.current.unsubscribe(),w.current=null)}),s=[I,E,g,y,A],f[17]=I,f[18]=E,f[19]=g,f[20]=y,f[21]=A,f[22]=l,f[23]=s):(l=f[22],s=f[23]),(0,_.useEffect)(l,s),f[24]!==E?(u=e=>E.findRangeForNewRev(e),d=e=>E.findRangeForNewSince(e),c=()=>{E.setLoadMore(!0)},f[24]=E,f[25]=d,f[26]=c,f[27]=u):(d=f[25],c=f[26],u=f[27]),f[28]===Symbol.for("react.memo_cache_sentinel")?(p=()=>S.current,f[28]=p):p=f[28],f[29]!==C||f[30]!==$?(m=e=>{let t=$.pipe((0,eV.T)(d7),(0,eQ.F)(k),(0,eY.W)(e=>(C?.(e),(0,eP.of)(d5))),(0,e5.M)(e=>{S.current=e}),(0,e5.M)(e)).subscribe();return()=>t.unsubscribe()},f[29]=C,f[30]=$,f[31]=m):m=f[31],f[32]!==d||f[33]!==c||f[34]!==m||f[35]!==u?(h={findRangeForRev:u,findRangeForSince:d,loadMore:c,getSnapshot:p,subscribe:m},f[32]=d,f[33]=c,f[34]=m,f[35]=u,f[36]=h):h=f[36],h}function d7(e){let t=e.timeline.mapChunks(d8),n=t.filter(d3),i=!e.timeline.reachedEarliestEntry;i&&t.length>16&&e.setLoadMore(!1);let r=!["invalid","loading"].includes(e.selectionState);return{chunks:t,diff:e.sinceTime?e.currentObjectDiff():null,isLoading:e.isLoading,isPristine:r?0===t.length&&!i:null,hasMoreChunks:!e.timeline.reachedEarliestEntry,lastNonDeletedRevId:n?.[0]?.id,onOlderRevision:e.onOlderRevision(),realRevChunk:e.realRevChunk,revTime:e.revTime,selectionState:e.selectionState,sinceAttributes:e.sinceAttributes(),sinceTime:e.sinceTime,timelineDisplayed:e.displayed(),timelineReady:r}}function d3(e){return!["delete","initial"].includes(e.type)}function d8(e){return e}let d4=e=>{if("rollCall"===e.type)return{type:"rollCall",userId:e.i,sessionId:e.session};if("state"===e.type){let{sessionId:t,locations:n}=e.m;return{type:"state",userId:e.i,sessionId:t,timestamp:new Date().toISOString(),locations:n}}if("disconnect"===e.type)return{type:"disconnect",userId:e.i,sessionId:e.m.session,timestamp:new Date().toISOString()};throw Error(`Got unknown presence event: ${JSON.stringify(e)}`)},d6=[["nested","first"],["nested","second"],["nestedArray",{_key:"565c867c8dac"},"arrayNo1",{_key:"a645548a8f01"},"arrayNo1",{_key:"1685e372c40f"},"fieldNo0"],["nestedArray",{_key:"565c867c8dac"},"fieldNo0"],["nestedArray",{_key:"565c867c8dac"},"arrayNo19",{_key:"a02e7a93e2a2"},"fieldNo0"],["nestedArray",{_key:"565c867c8dac"},"arrayNo19",{_key:"a02e7a93e2a2"},"fieldNo19"],["address","country"],["address","street"],["customInputWithDefaultPresence","row3","cell3"]],d9=(0,eN.v)(()=>(0,eK.O)(0,1e4)).pipe((0,t_.C)(["pqSMwf6hH","pnLYqNfv5","priDVVmy8","p0NFOU0j8","pTDl2jw8d","pHMeQnTse","pDQYzJbyS","pZyoPHKUs","p4Tyi2Be5","pb9vii060","pE8yhOisw","p7Fd2C6Cj","p3exSgYCx","pbIQRYViC","p8GJaTEhN","p27ewL8aM","pYg97z75S","pdLr4quHv","pkJXiDgg6","pkl4UAKcA","pNoExists"]),(0,eV.T)((e,t)=>
69({type:"state",userId:e,sessionId:e+t,timestamp:new Date().toISOString(),locations:[{type:"document",documentId:"presence-debug",lastActiveAt:new Date().toISOString(),path:(0,F.A)(d6)}]})),(0,e1.t)()),ce="presence_session_id",ct=function(){try{return window.sessionStorage.getItem(ce)}catch{}return null}()||function(e){try{window.sessionStorage.setItem(ce,e)}catch{}return e}((0,tJ.Ak)(16)),cn=lf(e=>e.observable.request({url:`/projects/${e.config().projectId}`,tag:"get-org-id",query:{includeMembers:"false",includeFeatures:"false",includeOrganization:"true"}}).pipe((0,eV.T)(e=>e.organizationId),(0,eY.W)(()=>(0,eP.of)(null)),(0,tn.u)({delay:3e5}),(0,e7.u)({connector:()=>new e3.m(1),resetOnComplete:!0,resetOnRefCountZero:()=>(0,eK.O)(1e3)})),e=>`${e.config().projectId}-${e.config().dataset}`);function ci(e){let t,n=(0,j.c)(3),{children:i}=e,[r]=(0,_.useState)(cr);return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(S.Q$.Provider,{value:r,children:i}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t}function cr(){let e=new Map,t={},n=[t],i=e=>e.length?e.map(e=>null===e?t:e):n;return{get:t=>{let{namespace:n,dependencies:r}=t,a=i(r);return e.get(n)?.get(a)},set:t=>{let{namespace:n,dependencies:r,value:a}=t,o=e.get(n)||function(){let e=new WeakMap,t=new WeakMap;function n(e){return Array.from(new Set(e)).map(e=>[function(e){let n=t.get(e);if(n)return n;let i=Array.from({length:10}).map(()=>Math.floor(255*Math.random()).toString(16).padStart(2,"0")).join("");return t.set(e,i),i}(e),e]).sort(([e],[t])=>e.localeCompare(t,"en")).map(([,e])=>e)}return{get:function(t){return function e(t,n){if(!t.length)return;let[i,...r]=t,a=n.get(i);if(a)return r.length?e(r,a.next):a.value}(n(t),e)},set:function(t,i){!function e(t,n,i){if(!t.length)return;let[r,...a]=t,o=n.get(r)||{type:"multi-key-weak-map-node",value:void 0,next:new WeakMap};if(n.set(r,o),!a.length){o.value=i;return}e(a,o.next,i)}(n(t),e,i)}}}(),l=i(r);e.set(n,o),o.set(l,a)}}}function ca(){let e=(0,_.useContext)(S.Q$);if(!e)throw Error("Could not find `cache` context");return e}let co=[{id:"<system>",displayName:"Sanity",imageUrl:"https://public.sanity.io/logos/favicon-192.png"}];function cl(){let e,t,n=(0,j.c)(6),{getClient:i,currentUser:r}=_g(),a=ca();n[0]!==i?(e=i(ob),n[0]=i,n[1]=e):e=n[1];let o=e;return n[2]!==o||n[3]!==r||n[4]!==a?(t=a.get({namespace:"userStore",dependencies:[o,r]})||function({client:e,currentUser:t}){let n=e.withConfig({apiVersion:"2021-06-07"}),i=new nR(async e=>{let t=await n.request({uri:`/users/${e.join(",")}`,tag:"users.get"}),i=(Array.isArray(t)?t:[t]).reduce((e,t)=>(t?.id&&(e[t.id]=t),e),{});return e.map(e=>i[e]||null)},{batchScheduleFn:e=>i5(e),maxBatchSize:400}),r=t&&{id:t.id,displayName:t.name,imageUrl:t.profileImage};return i.prime("me",r),r?.id&&i.prime(r.id,r),co.forEach(e=>i.prime(e.id,e)),{getUser:async e=>{if(!e)return Promise.resolve(null);try{return await i.load(e)}catch(e){if(403===e.statusCode)return Promise.resolve(null);throw e}},getUsers:async e=>(await i.loadMany(e)).filter(e=>rZ(e)&&"string"==typeof e.id)}}({client:o,currentUser:r}),a.set({namespace:"userStore",dependencies:[o,r],value:t}),n[2]=o,n[3]=r,n[4]=a,n[5]=t):t=n[5],t}function cs(){let e,t,n=(0,j.c)(6),{getClient:i}=_g();n[0]!==i?(e=i(ob),n[0]=i,n[1]=e):e=n[1];let r=e,a=o5(),o=ca();return n[2]!==r||n[3]!==a||n[4]!==o?(t=o.get({namespace:"grantsStore",dependencies:[r,a]})||function(e){let{client:t}=e,n=t.withConfig({apiVersion:"2021-06-07"}),i="userId"in e?e.userId:e?.currentUser?.id||null,r=(0,eN.v)(()=>(0,eP.of)(n.config())).pipe((0,eM.n)(({projectId:e,dataset:t})=>{if(!e||!t)throw Error("Missing projectId or dataset");return dj(n,e,t)})),a=dv.pipe((0,eM.n)(e=>e?(0,eP.of)(e):r),(0,tS.H)(1),function(e,t=te.$){return e=>{let n=null,i=null,r=new eq.B,a=r.pipe((0,ts.S)((e,t)=>e+t,0),(0,eM.n)(r=>0===r?(0,eK.O)(1e3,t).pipe((0,e5.M)(()=>{n&&(n.unsubscribe(),n=null),i&&(i.unsubscribe(),i=null)})):!n&&r>0?(0,eK.O)(0,t).pipe((0,e5.M)(()=>{n||(n=e.connect())})):eG.t));return(0,tt.v)(()=>(i||(i=a.subscribe()),r.next(1),{unsubscribe:()=>r.next(-1)}),()=>e)}}(0));return{checkDocumentPermission:(e,t)=>a.pipe((0,eM.n)(n=>dk(i,n,e,t)),(0,eQ.F)(nZ))}}({client:r,userId:a?.id||null}),o.set({namespace:"grantsStore",dependencies:[r,a],value:t}),n[2]=r,n[3]=a,n[4]=o,n[5]=t):t=n[5],t}function cd(){let e,t=(0,j.c)(3),n=el0(ob),i=ca();return t[0]!==n||t[1]!==i?(e=i.get({namespace:"historyStore",dependencies:[n]})||function({client:e}){return{getDocumentAtRevision:(t,n)=>dX(e,t,n),getHistory:(t,n)=>((e,t,n={})=>{let i=Array.isArray(t)?t:[t],{time:r,revision:a}=n;if(r&&a)throw Error("getHistory can't handle both time and revision parameters");let o=`/data/history/${e.config().dataset}/documents/${i.join(",")}`;if(a)o=`${o}?revision=${a}`;else{let e=r||new Date().toISOString();o=`${o}?time=${e}`}return e.request({url:o})})(e,t,n),getTransactions:t=>
69d1(e,t),restore:(t,n,i,r)=>(0,eL.H)(dX(e,n,i)).pipe((0,tx.Z)(n=>{if(!n)throw Error(`Unable to find document with ID ${t} at revision ${i}`);if("lastRevision"!==i&&n?._rev!==i)throw Error(`Restored revision ${n?._rev} does not match expected revision ${i}`);let r=(0,iq.TS)(n,(e,t)=>(0,eD.A_)(t)&&!e.includes(t._ref)?[...e,t._ref]:e,[]).map(e=>`"${e}": defined(*[_id=="${e}"]._id)`).join(",");return e.observable.fetch(`{${r}}`).pipe((0,eV.T)(e=>{let t;return t=t=>e[t._ref]?t:void 0,function e(t,n){return Array.isArray(t)?n(t.map(t=>e(t,n)).filter(e=>"u">typeof e)):rZ(t)?n(Object.keys(t).reduce((i,r)=>{let a=e(t[r],n);return"u">typeof a&&(i[r]=a),i},{})):n(t)}(n,e=>(0,eD.A_)(e)?t(e):e)}))}),(0,eV.T)(e=>{let{_updatedAt:t,...i}=e;return{...i,_id:n}}),(0,tx.Z)(n=>{if(r?.useServerDocumentActions){let i={actionType:"sanity.action.document.replaceDraft",publishedId:t,attributes:n};return ld(e,rA(t,{version:(0,tG._S)(t)})).observable.action(r.fromDeleted?[{actionType:"sanity.action.document.create",publishedId:t,attributes:n,ifExists:"fail"},i]:i)}return e.observable.createOrReplace(n,{visibility:"async"})}),(0,eV.T)(()=>{})),getTimelineController:dQ}}({client:n}),i.set({namespace:"historyStore",dependencies:[n],value:e}),t[0]=n,t[1]=i,t[2]=e):e=t[2],e}function cc(){let e,t=(0,j.c)(3),n=el0(ob),i=ca();return t[0]!==n||t[1]!==i?(e=i.get({namespace:"documentPreviewStore",dependencies:[n]})||function({client:e}){let t,n,i=e.withConfig({apiVersion:"2025-02-19"}),r=i.listen("*",{},{events:["welcome","mutation","reconnect"],includeResult:!1,includePreviousRevision:!1,includeMutations:!1,includeAllVersions:!0,visibility:"query",effectFormat:"mendoza",tag:"preview.global"}).pipe(o4({predicate:e=>"welcome"===e.type||"reconnect"===e.type,resetOnRefCountZero:()=>(0,eK.O)(5e3)})).pipe((0,to.p)(e=>"mutation"===e.type||"welcome"===e.type)),a=r.pipe((0,eV.T)(e=>"welcome"===e.type?{type:"connected"}:e)),o=function({mutationChannel:e,client:t}){let n=(0,z.A)(function(e){let n=t.withConfig(e);return PF(function(e){return n.observable.fetch("*[_id in $ids]",{ids:(0,B.A)(e.flat())},{tag:"preview.observe-document"}).pipe((0,eV.T)(t=>e.map(([e])=>t.find(t=>t._id===e))))},100)},e=>e.dataset+e.projectId+e.apiVersion),i={};return function(r,a){let o,l=a?`${r}-${JSON.stringify(a)}`:r;return l in i||(i[l]=(o=n({dataset:a?.dataset||t.config().dataset,projectId:a?.projectId||t.config().projectId,apiVersion:a?.apiVersion||t.config().apiVersion}),e.pipe((0,eF.H)(e=>"welcome"===e.type?o(r).pipe((0,eV.T)(e=>({type:"sync",document:e}))):e.documentId===r?(0,eP.of)(e):eO.w),(0,ts.S)((e,t)=>{if("sync"===t.type)return t.document;if("mutation"===t.type){var n=e,i=t;if(i.previousRev!==n?._rev)return console.warn("Document out of sync, skipping mutation"),n;if(!i.effects)throw Error("Mutation event is missing effects. Is the listener set up with effectFormat=mendoza?");if(!i.effects)throw Error("Mutation event is missing effects. Is the listener set up with effectFormat=mendoza?");let r=PU(n,i.effects.apply,i.previousRev);return r?{...r,_rev:i.resultRev}:void 0}throw Error(`Unexpected event type: "${t.type}"`)},void 0))).pipe((0,e0.j)(()=>delete i[l]),(0,e1.t)({bufferSize:1,refCount:!0}))),i[l]}}({client:e,mutationChannel:r}),l=$E({observeFields:function(e){let{client:t,invalidationChannel:n}=e;function i(e,t){return function(n){let i=(0,eb.A)(n.reduce((e,[t,n],i)=>{let r=(0,ee.A)(n.join(","),ev.A).join(".");e[r]||(e[r]={fields:n,ids:[],map:[]});let a=e[r].ids.length;return e[r].ids[a]=t,e[r].map[a]=i,e},{})),r=oj(e,t&&t.length>0||i.some(e=>e.ids.some(tG.A_))?ll.apiVersion:void 0),a=function(e){let t=[];for(let n of e){let e=[],i=[],r=0;for(let a=0;a<n.ids.length;a++){let o=n.ids[a],l=o.length+3;r+l>=11164&&e.length>0&&(t.push([{ids:e,fields:n.fields,map:i}]),e=[],i=[],r=0),e.push(o),i.push(n.map[a]),r+=l}e.length>0&&t.push([{ids:e,fields:n.fields,map:i}])}return t}(i),o=e=>r.observable.fetch(`[${e.map(P6).join(",")}][0...${e.length}]`,{},{tag:"preview.document-paths",perspective:t}).pipe((0,tu.L)({delay:(e,t)=>(0,eK.O)(Math.min(3e4,1e3*t))}),(0,eV.T)(t=>t.reduce((t,n,i)=>
69(e[i].map.forEach((r,a)=>{let o=e[i].ids[a],l=n.find(e=>e._id===o);t[r]=l||null}),t),[])));if(0===a.length)return(0,eP.of)([]);if(1===a.length)return o(a[0]);let l=n.length;return(0,eL.H)(a).pipe((0,tx.Z)(o,10),(0,th.T)((e,t)=>(t.forEach((t,n)=>{null!=t&&(e[n]=t)}),e),Array(l).fill(null)))}}let r=new Map,a={},o=(0,z.A)(function(e){return PF(i(t.withConfig(e),["drafts"]),10)},e=>e.dataset+e.projectId),l=(0,eW.R)(document,"visibilitychange").pipe((0,tr.Z)(0),(0,eV.T)(()=>"visible"===document.visibilityState),(0,eM.n)(e=>e?(0,eK.O)(0,1e4):eO.w),(0,e7.u)());return function(e,s,d,c){let u,p,m=d?`${d.projectId}:${d.dataset}:${e}`:`$current$-${e}-${c?.join("-")||"raw"}`;m in a||(a[m]=[]);let h=a[m];(0,em.A)(s,(0,M.A)(h.map(e=>e.fields))).length>0&&h.push((p=(0,eZ.h)((0,eN.v)(()=>void 0===u?eO.w:(0,eP.of)(u)),d?l.pipe((0,tr.Z)(0)).pipe((0,eM.n)(()=>o(d)(e,s))):function(e,a,o){let{fast:l,slow:s}=function(e){let n=e?.join("-")||"raw";if(r.has(n))return r.get(n);let a={fast:PF(i(t,e),100),slow:PF(i(t,e),1e3)};return r.set(n,a),a}(o),d=o&&o.length>0,c=d?(0,tG.IM)(e):e;return n.pipe((0,to.p)(t=>"connected"===t.type||(d?!!(0,tG._4)(e)||o.some(t=>"drafts"===t?(0,tG.R8)(e):(0,tG._S)(e)===t):t.documentId===e)),(0,eM.n)(e=>"connected"===e.type||"query"===e.visibility?l(c,a).pipe((0,tx.Z)(e=>(0,eR.x)((0,eP.of)(e),null===e?s(c,a):[]))):s(c,a)))}(e,s,c)).pipe((0,e5.M)(e=>u=e),(0,e1.t)({refCount:!0,bufferSize:1})),{id:e,fields:s,changes$:p}));let f=h.filter(e=>e.fields.some(e=>s.includes(e))).map(e=>e.changes$);return(0,e8.z)(f).pipe((0,eV.T)(e=>e.filter(Boolean)),(0,to.p)(e=>(function(e,t=P3){let n,i;for(let r=0;r<e.length;r++){if(0===r){n=t(e[r]);continue}if(n!==(i=t(e[r])))return!1;n=i}return!0})(e,e=>e._rev)),(0,eV.T)(e=>{var t;return 0===e.length?null:(t=e,[...PR,...s].reduce((e,n)=>{var i,r;let a,o=(i=t,r=n,i.some(e=>r in e&&(a=e[r],!0)),a);return void 0!==o&&(e[n]=o),e},{}))}),(0,eQ.F)((e,t)=>e===t||!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&s.every(n=>e[n]===t[n])))}}({client:i,invalidationChannel:a})});function s(e,t,n){return l({_type:"reference",_ref:e},["_type"],t,n).pipe((0,eV.T)(e=>rZ(e)&&"string"==typeof e._type?e._type:void 0),(0,eQ.F)())}let d=function(e,t,n={}){let{insert:r="sorted",apiVersion:a}=n,o=`*[${e}]._id`;return oj(i,a).observable.listen(`*[${e}]`,t,{visibility:"transaction",events:["welcome","mutation","reconnect"],includeResult:!1,includeMutations:!1,includeAllVersions:!0,tag:"preview.observe-document-set.listen"}).pipe((0,tx.Z)(e=>"welcome"===e.type?oj(i,a).observable.fetch(o,t,{tag:"preview.observe-document-set.fetch"}).pipe((0,e5.M)(e=>{if(!Array.isArray(e))throw Error(`Expected query to return array of documents, but got ${typeof e}`)})).pipe((0,eV.T)(e=>({type:"fetch",result:e}))):(0,eP.of)(e)),(0,ts.S)((e,t)=>{if("reconnect"===t.type)return{documentIds:e?.documentIds||[],...e,status:"reconnecting"};if("fetch"===t.type)return{...e,status:"connected",documentIds:t.result};if("mutation"===t.type){if("update"===t.transition)return e;if("appear"===t.transition){var n,i,a;let o;return{status:"connected",documentIds:(n=e?.documentIds||[],i=t.documentId,o="prepend"===(a=r)?0:"append"===a?n.length:(0,ex.A)(n,i),n.toSpliced(o,0,i))}}if("disappear"===t.transition)return{status:"connected",documentIds:e?.documentIds?e.documentIds.filter(e=>e!==t.documentId):[]}}return e},void 0),(0,eQ.F)(),(0,to.p)(e=>void 0!==e))},c=function(e){let{observeDocumentTypeFromId:t,observePaths:n}=e;return function e(i,r,a={}){let{viewOptions:o={},apiConfig:l,perspective:s}=a;if((0,eD.P3)(r)){if(!(0,eD.I0)(i))return(0,eP.of)({snapshot:void 0});let n={projectId:i._projectId,dataset:i._dataset};return t(i._ref,n,s).pipe((0,eM.n)(t=>{if(t){let a=r.to.find(e=>e.type===t);if(a)return e(i,a,{apiConfig:n,viewOptions:o,perspective:s})}return(0,eP.of)({snapshot:void 0})}))}if((0,eD.do)(r))return(0,O.A)(i)?t(i._ref).pipe((0,eM.n)(t=>{if(t){let n=r.to.find(e=>e.name===t);if(n)return e(i,n,{perspective:s})}return(0,eP.of)({snapshot:void 0})})):(0,eP.of)({snapshot:void 0});let d=Pq(r.preview);return d?n(i,d,l,s).pipe((0,eV.T)(e=>({type:r,snapshot:e?P7(e,r,o):null}))):(0,eP.of)({type:r,snapshot:i&&(0,O.A)(i)?P5(r,i,o).returnValue:null})}}({observeDocumentTypeFromId:s,observePaths:l}),u=(t=PH(i,l),(e,n)=>
69(0,e8.z)((n.includes("published")?n:n.concat(["published"])).map(n=>{let i="drafts"===n?(0,tG.T4)(e):"published"===n?(0,tG.IM)(e):(0,tG.ct)(e,n);return t(i).pipe((0,eV.T)(e=>({availability:e,id:i})))}))),p=(n=PH(i,l),function(e,{version:t}={}){let i=(0,tG.T4)(e),r=(0,tG.IM)(e),a=t?(0,tG.ct)(e,t):void 0;return(0,e8.z)([n(i),n(r),...a?[n(a)]:[]]).pipe((0,eQ.F)(nZ),(0,eV.T)(([e,t,n])=>({draft:e,published:t,...n?{version:n}:{}})))}),m=function(e){let{observeDocumentPairAvailability:t,observePaths:n}=e,i=[["_updatedAt"],["_createdAt"],["_type"]];return function(e,r,{version:a}={}){let{draftId:o,publishedId:l,versionId:s}=rA(e,{version:a});return t(o,{version:a}).pipe((0,eM.n)(e=>{if(!e.draft.available&&!e.published.available&&!e.version?.available)return(0,eP.of)({id:l,type:null,draft:{availability:e.draft,snapshot:void 0},published:{availability:e.published,snapshot:void 0},...e.version?{version:{availability:e.version,snapshot:void 0}}:{}});let t=[...r,...i];return(0,e8.z)([n({_type:"reference",_ref:o},t),n({_type:"reference",_ref:l},t),...a?[n({_type:"reference",_ref:s},t)]:[]]).pipe((0,eV.T)(([t,n,i])=>{let r=rZ(i)&&"_type"in i&&i._type||rZ(t)&&"_type"in t&&t._type||rZ(n)&&"_type"in n&&n._type||null;return{id:l,type:"string"==typeof r?r:null,draft:{availability:e.draft,snapshot:t},published:{availability:e.published,snapshot:n},...e.version?{version:{availability:e.version,snapshot:i}}:{}}}))}))}}({observeDocumentPairAvailability:p,observePaths:l});return{observePaths:l,observeForPreview:c,observeDocumentTypeFromId:s,unstable_observeDocumentIdSet:d,unstable_observeDocument:o,unstable_observeDocuments:e=>(0,e8.z)(e.map(e=>o(e))),unstable_observeDocumentPairAvailability:p,unstable_observeDocumentStackAvailability:u,unstable_observePathsDocumentPair:m}}({client:n}),i.set({namespace:"documentPreviewStore",dependencies:[n],value:e}),t[0]=n,t[1]=i,t[2]=e):e=t[2],e}function cu(){let e,t,n,i,r=(0,j.c)(18),{getClient:a,i18n:o}=_g(),l=R8(),s=ess(),d=ca(),c=cd(),u=cc(),p=cY(),m=p.__internal_serverDocumentActions?.enabled;r[0]!==m?(e="boolean"==typeof m?(0,eP.of)(m):(0,eP.of)(!0),r[0]=m,r[1]=e):e=r[1];let h=e,f=(0,tK.Jr)();r[2]!==f?(t=e=>{f.log(da,{errorName:e.name})},r[2]=f,r[3]=t):t=r[3];let g=t;r[4]!==f?(n=e=>{e.latencyMs>1e3&&f.log(dl,{latency:e.latencyMs,shard:e.shard,transactionId:e.transactionId})},r[4]=f,r[5]=n):n=r[5];let y=n;return r[6]!==u||r[7]!==a||r[8]!==y||r[9]!==g||r[10]!==c||r[11]!==o||r[12]!==d||r[13]!==l||r[14]!==h||r[15]!==s||r[16]!==p?(i=d.get({namespace:"documentStore",dependencies:[a,u,c,l,o,p]})||function({getClient:e,documentPreviewStore:t,historyStore:n,initialValueTemplates:i,schema:r,i18n:a,serverActionsEnabled:o,extraOptions:l={}}){let s=t.unstable_observeDocumentPairAvailability,d=e(ob),{onSyncErrorRecovery:c,onReportLatency:u}=l,p={client:d,getClient:e,observeDocumentPairAvailability:s,historyStore:n,schema:r,i18n:a,serverActionsEnabled:o,extraOptions:l};return{checkoutPair:e=>lh(d,e,o,{onSyncErrorRecovery:c,onReportLatency:u}),initialValue:(e,n)=>{let a,o;return a=t.observePaths({_type:"reference",_ref:(0,tG.T4)(e.documentId)},["_type"]),o=t.observePaths({_type:"reference",_ref:(0,tG.IM)(e.documentId)},["_type"]),(0,eZ.h)(a.pipe((0,eV.T)(e=>({draft:e}))),o.pipe((0,eV.T)(e=>({published:e})))).pipe((0,ts.S)((e,t)=>({...e,...t}),{}),(0,to.p)(e=>"draft"in e&&"published"in e),(0,eV.T)(e=>e.draft||e.published),(0,eQ.F)((e,t)=>!!e!=!!t),(0,tw.B)(25)).pipe((0,eM.n)(t=>{if(t)return(0,eP.of)({type:"success",value:null});if(!e.templateName)return(0,eP.of)({isResolving:!1,initialValue:void 0,type:"success"});let a=i.find(t=>t.id===e.templateName);if(!a)return console.warn('Template "%s" not defined, using empty initial value',e.templateName),(0,eP.of)({isResolving:!1,initialValue:void 0,type:"success"});let o=(0,eL.H)(sQ(r,a,e.templateParams,n)).pipe((0,eV.T)(e=>({isResolving:!1,initialValue:e}))).pipe((0,eY.W)(t=>(console.group("Failed to resolve initial value"),console.error(t),console.error("Template ID: %s",e.templateName),console.error("Parameters: %o",e.templateParams),console.groupEnd(),(0,eP.of)({type:"error",error:t}))));return(0,eZ.h)((0,eP.of)({isResolving:!0}),o).pipe((0,eM.n)(({isResolving:e,initialValue:t,resolveError:n})=>n?(0,eP.of)({type:"error",message:"Failed to resolve initial value"}):e?(0,eP.of)(s7):(0,eP.of)({type:"success",value:t})))}),(0,tr.Z)(s7),(0,eQ.F)())},listenQuery:(e,t,n)=>s8(d,e,t,n),resolveTypeForDocument:(e,t)=>
69(function(e,t,n="*"){return n&&"*"!==n?(0,eP.of)(n):e.observable.fetch("*[sanity::versionOf($publishedId)][0]._type",{publishedId:(0,tG.IM)(t)},{tag:"document.resolve-type"})})(d,e,t),pair:{consistencyStatus:(e,t,n)=>lS(p.client,s4(e,n),t,o,l),documentEvents:(e,t,n)=>sM(p.client,s4(e,n),t,o,l),editOperations:(e,t,n)=>sH(p,s4(e,n),t),editState:(e,t,n)=>lk(p,s4(e,n),t),operationEvents:(e,t)=>lJ({client:d,historyStore:n,schema:r,serverActionsEnabled:o,extraOptions:l}).pipe((0,to.p)(n=>n.args.idPair.publishedId===e&&n.args.typeName===t),(0,eV.T)(e=>{let{operationName:t,idPair:n}=e.args;return"success"===e.type?{type:"success",op:t,id:n.publishedId}:{type:"error",op:t,id:n.publishedId,error:e.error}})),validation:(e,t,n)=>sV(p,rA((0,tG.IM)(e),{version:(0,tG._S)(e)}),t,rL(e),n)}}}({getClient:a,documentPreviewStore:u,historyStore:c,initialValueTemplates:s,schema:l,i18n:o,serverActionsEnabled:h,extraOptions:{onReportLatency:y,onSyncErrorRecovery:g}}),d.set({namespace:"documentStore",dependencies:[a,u,c,l,o,p],value:i}),r[6]=u,r[7]=a,r[8]=y,r[9]=g,r[10]=c,r[11]=o,r[12]=d,r[13]=l,r[14]=h,r[15]=s,r[16]=p,r[17]=i):i=r[17],i}function cp(){let e,t=(0,j.c)(5),{__internal:n}=_g(),{bifur:i}=n,r=ca(),a=cl(),o=function(){let e,t=(0,j.c)(3),{bifur:n}=_g().__internal,i=ca();return t[0]!==n||t[1]!==i?(e=i.get({namespace:"connectionStatusStore",dependencies:[n]})||function({bifur:e}){return{connectionStatus$:(0,eZ.h)(e.heartbeats,oq.pipe((0,t_.C)((0,eJ.$)(Error("The browser went offline"))))).pipe((0,eV.T)(e=>({type:"connected",lastHeartbeat:e})),rT((e,t,n)=>{let i=Math.min(24e4,100*Math.pow(2,t)),r=new Date(new Date().getTime()+i),a=(0,eK.O)(r),o=!navigator.onLine,l=(({error:e,isOffline:t,attemptNo:n,retryAt:i})=>({type:"error",error:e,attemptNo:n,isOffline:t,retryAt:i}))({error:e,retryAt:r,isOffline:o,attemptNo:t}),s=eG.t.pipe((0,tk.Q)(o?oZ:(0,eZ.h)(a,oZ,oK)));return(0,eR.x)((0,eP.of)(l),s.pipe((0,eH.s)(1)),n)}),(0,tr.Z)(oW))}}({bifur:n}),i.set({namespace:"connectionStatusStore",dependencies:[n],value:e}),t[0]=n,t[1]=i,t[2]=e):e=t[2],e}();return t[0]!==i||t[1]!==o||t[2]!==r||t[3]!==a?(e=r.get({namespace:"presenceStore",dependencies:[i,o,a]})||function(e){let{bifur:t,connectionStatusStore:n,userStore:i}=e,[r,a]=[t.listen("presence").pipe((0,eV.T)(d4)).pipe((0,e7.u)()),e=>"rollCall"===e.type?t.request("presence_rollcall",{session:ct}):"state"===e.type?t.request("presence_announce",{data:{locations:e.locations,sessionId:ct}}):"disconnect"===e.type?t.request("presence_disconnect",{session:ct}):eO.w],o=new e2.t([]),l=o.pipe((0,eQ.F)()),s=e=>a({type:"state",locations:e}),d=r.pipe((0,to.p)(e=>"rollCall"===e.type),(0,to.p)(e=>e.sessionId!==ct)),c=(0,eK.O)(0,3e4),u=(0,eN.v)(()=>(0,eZ.h)(l,d)).pipe((0,eM.n)(()=>c),(0,tT.E)(o),(0,eV.T)(([,e])=>e),(0,tR.Z)(200),(0,eM.n)(e=>s(e)),(0,t_.C)(eO.w),(0,e7.u)()),p=(0,eN.v)(()=>a({type:"rollCall"})).pipe((0,t_.C)(eO.w)),m=n.connectionStatus$.pipe((0,eV.T)(e=>e.type),(0,to.p)(e=>"connected"===e||"error"===e),(0,eQ.F)()),h=dg.pipe((0,eV.T)(e=>e.find(e=>e.startsWith("presence="))),(0,eV.T)(e=>e?.split("presence=")[1].split(",").map(e=>e.trim())||[])),f=h.pipe((0,to.p)(e=>e.includes("fake_others")),(0,e5.M)(()=>{console.log('Faking other users present in the studio. They will hang out in the document with _type: "presence" and _id: "presence-debug"')}),(0,tN.K)(d9)),g=h.pipe((0,eV.T)(e=>e.includes("show_own"))),y=(0,eZ.h)(p,r).pipe((0,to.p)(e=>"state"===e.type||"disconnect"===e.type)),C=(0,eZ.h)(y,f).pipe((0,ts.S)((e,t)=>"disconnect"===t.type?(0,N.A)(e,t.sessionId):{...e,[t.sessionId]:{lastActiveAt:t.timestamp,locations:t.locations,sessionId:t.sessionId,userId:t.userId}},{})),x=m.pipe((0,eM.n)(e=>"connected"===e?(0,eZ.h)(C,u):eG.t),(0,eV.T)(e=>Object.values(e)),(0,eM.n)(e=>{let t=(0,B.A)(e.map(e=>e.userId));return(0,eL.H)(i.getUsers(t)).pipe((0,eV.T)(t=>e.map(e=>({user:t.find(t=>t.id===e.userId),session:e})).filter(b)))}),(0,tk.Q)((0,eW.R)(window,"beforeunload").pipe((0,eM.n)(()=>a({type:"disconnect"})))),(0,e1.t)({refCount:!0,bufferSize:1}));function b(e){return!!(e.user&&e.session)}let v=x.pipe((0,eV.T)(e=>{let t=(0,R.A)(e.map(e=>e.session),e=>e.userId);return Object.keys(t).map(n=>({user:e.find(e=>e.user.id===n)?.user,sessions:t[n]}))}),(0,tT.E)(g),(0,eV.T)(([e,t])=>e.filter(e=>t||!e.sessions.some(e=>e.sessionId===ct))),(0,eV.T)(e=>e.map(e=>({user:e.user,status:"online",lastActiveAt:e.sessions.sort((e,t)=>
69t.lastActiveAt.localeCompare(e.lastActiveAt))[0]?.lastActiveAt,locations:(0,M.A)((e.sessions||[]).map(e=>e.locations||[])).map(e=>({type:e.type,documentId:e.documentId,path:e.path,lastActiveAt:e.lastActiveAt})).reduce((e,t)=>e.concat(t),[])})))),j=(0,e8.z)([x,g]).pipe((0,eV.T)(([e,t])=>e.flatMap(e=>(e.session.locations||[]).map(t=>({documentId:t.documentId,presence:{user:e.user,lastActiveAt:e.session.lastActiveAt,path:t.path||[],sessionId:e.session.sessionId,selection:t?.selection}}))).filter(e=>t||e.presence.sessionId!==ct)),(0,e1.t)(1));return{setLocation:e=>{o.next(e)},reportLocations:s,debugPresenceParam$:h,globalPresence$:v,documentPresence:(e,t)=>j.pipe((0,eV.T)(n=>n.filter(n=>{var i;return t?.excludeVersions?n.documentId===e:(i=n.documentId,(0,tG.IM)(i)===(0,tG.IM)(e))}).map(e=>({...e.presence,documentId:e.documentId}))),(0,eQ.F)((e,t)=>(0,D.A)(e,t)))}}({bifur:i,connectionStatusStore:o,userStore:a}),r.set({namespace:"presenceStore",dependencies:[i,o,a],value:e}),t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=e):e=t[4],e}function cm(){let e,t=(0,j.c)(3),n=el0(ob),i=ca();return t[0]!==n||t[1]!==i?(e=i.get({namespace:"projectStore",dependencies:[n]})||function(e){let{client:t}=e,n=t.config().projectId,i=t.withConfig({apiVersion:"2021-12-15"}),r=i.observable.request({url:`/projects/${n}/grants`,tag:"get-grants"}).pipe((0,e1.t)(1));return{get:function(){return i.observable.request({url:`/projects/${n}`,tag:"get-project"})},getDatasets:function(){return i.observable.request({url:`/projects/${n}/datasets`,tag:"get-datasets"})},getGrants:()=>r,getOrganizationId:()=>cn(i)}}({client:n}),i.set({namespace:"projectStore",dependencies:[n],value:e}),t[0]=n,t[1]=i,t[2]=e):e=t[2],e}let ch=new Map;function cf(){let e,t=(0,j.c)(2),n=el0(ob);if(t[0]!==n){e:{var i;let t,r=(t=n.config(),`${t.projectId}:${t.apiHost||"default"}`),a=ch.get(r);if(a){e=a;break e}let o=(i=function({client:e}){let t=function({client:e}){let t=e.withConfig(ob),n=new nR(async e=>{let n=(await t.request({uri:`/users/me/keyvalue/${e.join(",")}`}).catch(t=>(console.error("Error fetching data:",t),Array(e.length).fill(null)))||[]).reduce((e,t)=>(t?.key&&(e[t.key]=t.value),e),{});return e.map(e=>n[e]||null)});return{getKey:e=>n.load(e),setKey:(e,i)=>t.request({method:"PUT",uri:"/users/me/keyvalue",body:[{key:e,value:i}]}).then(e=>{let t=e[0];return n.clear(t.key),n.prime(t.key,t.value),t.value},e=>(console.error("Error setting data:",e),null))}}({client:e}),n=new eq.B;return{getKey:e=>(0,eR.x)(t.getKey(e),n.pipe((0,to.p)(t=>t.key===e),(0,eV.T)(e=>e.value),(0,eQ.F)(D.A))),setKey:function(e,i){return n.next({type:"optimistic",key:e,value:i}),t.setKey(e,i).then(t=>(n.next({type:"commit",key:e,value:t}),t))}}}({client:n}),{getKey:function(e){return(0,eZ.h)((0,eP.of)(ox.getKey(e)),i.getKey(e).pipe((0,e5.M)(t=>{ox.setKey(e,t)}))).pipe((0,eQ.F)(D.A))},setKey:function(e,t){return ox.setKey(e,t),i.setKey(e,t)}});ch.set(r,o),e=o}t[0]=n,t[1]=e}else e=t[1];return e}function cg(){let e,t,n,i=(0,j.c)(2),r=ca();return i[0]!==r?(e=r.get({dependencies:[],namespace:"RenderingContextStore"})||(n=(t=(0,eP.of)(void 0).pipe(function(e=oG){return(0,eX.F)((0,eM.n)(t=>t?(0,eP.of)(t):(0,eP.of)(e).pipe((0,eQ.F)(),(0,eV.T)(e=>new URLSearchParams(e).get("_context")),(0,eV.T)(e=>{if(null===e)return;let{mode:t,env:n}=JSON.parse(e),i={name:"core-ui"===t?"coreUi":void 0,metadata:{environment:n}};if(null!==i&&"name"in i&&"coreUi"===i.name&&"metadata"in i&&"object"==typeof i.metadata&&null!==i.metadata&&"environment"in i.metadata&&"string"==typeof i.metadata.environment)return i}),(0,eY.W)(e=>(console.warn("Error parsing rendering context:",e),(0,eP.of)(void 0))))))}(),(0,eV.T)(e=>e??oX),(0,e1.t)(1))).pipe((0,eV.T)(e=>oQ[e.name]),(0,e1.t)(1)),{renderingContext:t,capabilities:n}),r.set({dependencies:[],namespace:"RenderingContextStore",value:e}),i[0]=r,i[1]=e):e=i[1],e}function cy(){let e,t,n=(0,j.c)(4),i=ca(),r=cg();n[0]===Symbol.for("react.memo_cache_sentinel")?(e={},n[0]=e):e=n[0];let a=(0,tF.J)(r.capabilities,e);return n[1]!==a||n[2]!==i?(t=i.get({dependencies:[a],namespace:"ComlinkStore"})||function({capabilities:e}){if(!e.comlink)return{};let t=(0,i2.RM)({name:"dashboard/nodes/sdk",connectTo:"dashboard/channels/sdk"});return t.start(),{node:t}}({capabilities:a}),i.set({dependencies:[a],namespace:"ComlinkStore",value:t}),n[1]=a,n[2]=i,n[3]=t):t=n[3],t}let cC=[],cx=(0,eP.of)(cC);function cb(e){let t,n,i,r=(0,j.c)(6),[a,o]=(0,_.useReducer)(cv,!1);r[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>(0,_.startTransition)(o),n=[],r[0]=t,r[1]=n):(t=r[0],n=r[1]),(0,_.useEffect)(t,n);let l=cp();return r[2]!==e||r[3]!==a||r[4]!==l?(i=a?l.documentPresence(e):cx,r[2]=e,r[3]=a,r[4]=l,r[5]=i):i=r[5],(0,tF.J)(i,cC)}function cv(){return!0}let cj=[],cw=(0,eP.of)(cj);function c_(){return!0}function ck(e){let t,n=(0,j.c)(3),{value:i,children:r}=e;return n[0]!==r||n[1]!==i?(t=(0,v.jsx)(S.Pc.Provider,{value:i,children:r}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t}function cS(){let e=(0,_.useContext)(S.Pc);if(null===e)throw Error("useEvents must be used within a EventsProvider");return e}let cI=e=>"createDocumentVersion"===e.type,cT=e=>"deleteDocumentVersion"===e.type,cE=e=>"publishDocumentVersion"===e.type,c$=e=>"unpublishDocument"===e.type,cA=e=>"scheduleDocumentVersion"===e.type,cD=e=>"unscheduleDocumentVersion"===e.type,cz=e=>"deleteDocumentGroup"===e.type,cP=e=>"editDocumentVersion"===e.type,cR=`${rJ}.`;function cN(e){if(!e.startsWith(cR))throw Error(`Release document ID was ${e} but should start with ${rJ}`);return e.slice(cR.length)}let cO=`_type=="${rW}" && _id in path("${rJ}.*")`,cV=`{ 70 _id, 71 _type, 72 _rev, 73 _createdAt, 74 _updatedAt, 75 state, 76 finalDocumentStates, 77 publishAt, 78 publishedAt, 79 "metadata": coalesce(metadata, { 80 "title": "", 81 "releaseType": "undecided", 82 }), 83 // Content Lake initially encoded non-error states as {error: {message: ""}}. This projection 84 // ensures the error field only appears if the document has a non-empty error message. 85 ...select( 86 length(error.message) > 0 => { error }, 87 {} 88 ), 89}`,cM=`*[${cO}] ${cV} | order(_createdAt desc)`,cL={releases:new Map,state:"initialising"};function cF(){let e,t=(0,j.c)(5),n=ca(),i=cY(),r=cc(),a=el0(ll);return t[0]!==r||t[1]!==n||t[2]!==a||t[3]!==i?(e=n.get({dependencies:[i,r],namespace:"ReleasesStore"})||function(e){let t,{client:n}=e,i=new eq.B,r=new e2.t(!1),a=(0,eP.of)({action:{type:"LOADING_STATE_CHANGED",payload:{loading:!0,error:void 0}}}).pipe((0,to.p)(()=>!r.value),(0,e5.M)(()=>r.next(!0)),(0,tl.$)(s8(n,cM,{},{tag:"releases.listen"}).pipe((0,e5.M)(()=>r.next(!1)),(0,eV.T)(e=>({response:e})))),(0,eY.W)(e=>(0,eP.of)({action:{type:"LOADING_STATE_CHANGED",payload:{loading:!1,error:e}}})),(0,eM.n)(e=>"action"in e?(0,eP.of)(e.action):(0,eP.of)({type:"RELEASES_SET",payload:e.response},{type:"LOADING_STATE_CHANGED",payload:{loading:!1,error:void 0}}))),o=(0,eR.x)((0,eZ.h)(a,i)).pipe((0,to.p)(e=>"u">typeof e),(0,ts.S)((e,t)=>(function(e,t){switch(t.type){case"LOADING_STATE_CHANGED":return{...e,state:t.payload.loading?"loading":"loaded",error:t.payload.error};case"RELEASES_SET":{let n=(t.payload??[]).reduce((e,t)=>
89(e.set(t._id,t),e),new Map);return{...e,releases:n}}default:return e}})(e,t),cL),(0,tr.Z)(cL),(0,e1.t)(1)),l=o.pipe((0,eX.F)((0,eM.n)(({releases:e})=>(0,eL.H)(e.values()).pipe((0,to.p)(e=>"active"===e.state),(0,to.p)(e=>"u">typeof e.error),(0,td.U)())),(0,eQ.F)()),(0,e1.t)(1));return{state$:o,errorCount$:l,getMetadataStateForSlugs$:(t=(e,t=!1)=>{if(!e?.length||!n)return(0,eP.of)({data:null,error:null,loading:!1});let{subquery:i,projection:r}=e.reduce(({subquery:e,projection:t},n)=>{let i=cN(n),r=`release_${i.replaceAll("-","_")}`;return{subquery:`${e}"${r}": *[sanity::partOfRelease("${i}")]{_updatedAt, "docId": string::split(_id, ".")[2] } | order(_updatedAt desc),`,projection:`${t}"${n}": { 90 "updatedAt": ${r}[0]._updatedAt, 91 "documentIds": ${r}[].docId, 92 },`}},{subquery:"",projection:""}),a=n.observable.fetch(`{${i}}{${r}}`,{},{tag:"release-docs.fetch"}).pipe((0,eM.n)(e=>(0,eP.of)({data:Object.entries(e).reduce((e,t)=>{let[n,i]=t;return{...e,[n]:{...i,documentCount:i.documentIds?.length||0}}},{}),error:null,loading:!1})),(0,eY.W)(e=>(console.error("Failed to fetch release metadata",e),(0,eP.of)({data:null,error:e,loading:!1}))));return(0,ti.T)(()=>t,a.pipe((0,tr.Z)({loading:!0,data:null,error:null})),a)},e=>(0,eZ.h)(t(e,!0),e?.length&&n?n.observable.listen(`*[(${e.reduce((e,t,n)=>`${e}${0===n?"":" ||"} sanity::partOfRelease("${t}")`,"")})]`,{},{includeResult:!0,includeAllVersions:!0,visibility:"query",events:["mutation"],tag:"release-docs.listen"}).pipe((0,eY.W)(e=>(console.error("Failed to listen for release metadata",e),eO.w)),(0,ta.w)(1e3),(0,to.p)(e=>e.length>0),(0,eM.n)(e=>{let n=e.reduce((e,t)=>{if("type"in t&&"mutation"===t.type){let n=t.documentId.split(".")[1];return e.includes(n)?e:[...e,n]}return e},[]);return n.length?t(n):eO.w})):eO.w)),dispatch:function(e){i.next(e)}}}({client:a}),n.set({dependencies:[i,r],namespace:"ReleasesStore",value:e}),t[0]=r,t[1]=n,t[2]=a,t[3]=i,t[4]=e):e=t[4],e}function cB(e){let t,n=(0,j.c)(3),{children:i,workspace:r}=e;return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(S.zp.Provider,{value:r,children:i}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t}function cY(){let e=(0,_.useContext)(S.zp);if(!e)throw Error("Workspace: missing context value");return e}function cH(e){return`${rJ}.${e}`}function cU(e,t){return 3e5>Math.abs(Date.parse(e)-Date.parse(t))}function cZ(e){let{_rev:t,...n}=e;return n}function cq(e,t,n){let i=e[t];return i?{timestamp:i.timestamp,author:i.author,event:n}:null}function cW(e,t){return t?cq(e,t.transactionIndex+1,t.event):e.length>0?cq(e,0):null}function cJ(e,t){return t?cq(e,t.transactionIndex,t.event):null}async function cK(e,t,n){let i=e.config(),r=i.dataset,a=new URLSearchParams({tag:"sanity.studio.transactions-log",excludeContent:"true",limit:"50",includeIdentifiedDocumentsOnly:"true"});Object.entries(n).forEach(([e,t])=>{void 0!==t&&a.set(e,t.toString())});let o=e.getUrl(`/data/history/${r}/transactions/${Array.isArray(t)?t.join(","):t}?${a.toString()}`),l=await dq(o,i.token),s=[],d=l.getReader();for(;;){let e=await d.read();if(e.done)break;if("error"in e.value)throw Error(e.value.error.description||e.value.error.type);s.push(e.value)}return s}let cG=Object.create(null);async function cX({documentId:e,client:t,toTransaction:n,fromTransaction:i}){let r=`${e}-${n}-${i}`;if(cG[r]&&"u">typeof n)return cG[r];let a=i!==n,o=await cK(t,e,{tag:"sanity.studio.documents.history",effectFormat:"mendoza",excludeContent:!0,includeIdentifiedDocumentsOnly:!0,limit:50,fromTransaction:i,toTransaction:n});if(a&&(o=o.filter(e=>e.id!==i)),(a?49===o.length:50===o.length)&&(n&&o[o.length-1].id!==n||!n)){let i=await cX({documentId:e,client:t,toTransaction:n,fromTransaction:o[o.length-1].id});return o.concat(i)}return cG[r]=o,o}function cQ(e){let t=!!e,n=e&&c1(e?.apply),i=e&&c1(e?.revert);return n?"deleted":i?"created":t?"modified":"noop"}function c1(e){return 0===e[0]&&null===e[1]}let c2=e=>({type:"editTransaction",author:e.author,timestamp:e.timestamp,revisionId:e.id});function c5(e,t,n){let i=e.filter(e=>"modified"===cQ(e.effects[t])).sort((e,t)=>Date.parse(t.timestamp)-Date.parse(e.timestamp)),r=[];for(let e of i){let i=n?{id:e.id,timestamp:e.timestamp,type:"updateLiveDocument",documentId:t,revisionId:e.id,author:e.author,documentVariantType:rL(t)}:{type:"editDocumentVersion",documentId:t,id:e.id,timestamp:e.timestamp,author:e.author,contributors:[e.author],releaseId:(0,tG._S)(t),revisionId:e.id,transactions:[c2(e)],documentVariantType:rL(t)};if(0===r.length){r.push(i);continue}let a=r[r.length-1];cU(a.timestamp,i.timestamp)?cP(a)&&(a.transactions.push(c2(e)),a.contributors.includes(i.author)||a.author===i.author||a.contributors.push(i.author)):r.push(i)}return r}let c0="history-cleared",c7={events:[],nextCursor:"",loading:!0,error:null},c3=e=>{if(!e)return{};let{_id:t,_rev:n,_createdAt:i,_updatedAt:r,_type:a,...o}=JSON.parse(JSON.stringify(e));return o};
92class c8 extends Error{constructor(e){super(`Missing since document for revision ${e}`),this.name="MissingSinceDocumentError",this.revisionId=e}}let c4=Object.create(null);function c6({client:e,documentId:t,revisionId:n,time:i}){if(n===c0)return(0,eP.of)({document:null,loading:!1,revisionId:n});let r=`${t}@${n?["revisionId",n].join("."):["time",i].join(".")}`,a=e.config().dataset;if(!c4[r]){let o=new URLSearchParams("string"==typeof n?{revision:n}:{time:i});c4[r]=e.observable.request({url:`/data/history/${a}/documents/${t}?${o}`,tag:"get-document-revision"}).pipe((0,eV.T)(e=>{let t=e.documents[0];return{document:t,loading:!1,revisionId:t?._rev}}),(0,eY.W)(e=>(console.error("Error fetching document at revision",e),[{document:null,loading:!1,revisionId:n}])),(0,tr.Z)({document:null,loading:!0,revisionId:n}),(0,e1.t)(1))}return c4[r]}let c9={events:[],nextCursor:"",loading:!0,error:null};function ue(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(68),{documentId:g,documentType:y,rev:C,since:x}=e,b=el0(ll),{state$:v}
92=cF(),w=cY().__internal_serverDocumentActions?.enabled;f[0]!==w?(t="boolean"==typeof w?(0,eP.of)(w):(0,eP.of)(!0),f[0]=w,f[1]=t):t=f[1];let k=t,S=R8();f[2]!==y||f[3]!==S?(n=S.get(y),f[2]=y,f[3]=S,f[4]=n):n=f[4];let I=!!n?.liveEdit;f[5]!==b||f[6]!==g||f[7]!==y||f[8]!==I||f[9]!==v||f[10]!==k?(i=function({client:e,documentId:t,documentType:n,releases$:i,serverActionsEnabled:r,isLiveEdit:a}){let o=function({client:e,documentId:t}){let n=rL(t),i=new e2.t({cursor:null,origin:"initial"}),r="";return{events$:i.pipe((0,eM.n)(({cursor:i,origin:r})=>(({limit:i,nextCursor:r})=>{let a=new URLSearchParams({limit:i.toString()});return r&&a.append("nextCursor",r),e.observable.request({url:`/data/history/${e.config().dataset}/events/documents/${t}?${a.toString()}`,tag:"get-document-events"}).pipe((0,eV.T)(e=>({events:e.events[t]?.map(e=>{var t,i;let r;return t=e,i=n,r="",cI(t)?r="published"===i?t.revisionId||`publishCreation--${t.timestamp}`:t.versionRevisionId:cT(t)?r="published"===i?`deleteAt-${t.timestamp}`:t.versionRevisionId:cE(t)?r="published"===i?t.revisionId:t.versionRevisionId||t.revisionId:c$(t)?r="published"===i?`unpublishAt-${t.timestamp}`:"":cA(t)||cD(t)?r="published"===i?"":t.versionRevisionId:cz(t)?r=`deleted-${t.timestamp}`:("createLiveDocument"===t.type||"updateLiveDocument"===t.type||cP(t))&&(r=t.revisionId),{...t,id:r}})||[],nextCursor:e.nextCursor,loading:!1,error:null})))})({nextCursor:i,limit:"reload"===r?10:100}).pipe((0,eM.n)(i=>{var a;let o,l;return"published"===n||"loadMore"===r?(0,eP.of)({...i,origin:r}):(a=i.events,l=(o="version"===n?a.find(cI):a.find(e=>"versionRevisionId"in e&&e.versionRevisionId))&&"versionRevisionId"in o&&o.versionRevisionId,(0,eL.H)(cX({client:e,documentId:t,fromTransaction:l||"",toTransaction:void 0})).pipe((0,eV.T)(e=>{let i=c5(e,t,!1);if(0===a.length&&e.length>0&&i.length>0){let e=new Date(i[i.length-1].timestamp).getTime()-1;i.unshift({type:"historyCleared",documentId:t,id:c0,timestamp:new Date(e).toISOString(),author:"",documentVariantType:n})}return i}))).pipe((0,eV.T)(e=>({...i,events:[...e,...i.events],origin:r})))}),(0,eY.W)(e=>(console.error("Error fetching events",e),[{events:[],nextCursor:"",loading:!1,error:e,origin:r}])),(0,tr.Z)({events:[],nextCursor:"",loading:!0,error:null,origin:r}))),(0,ts.S)((e,t)=>({events:Array.from([...e.events,...t.events].reduce((e,t)=>{if(e.has(t.id)){let n=e.get(t.id);return cP(n)&&!cP(t)&&e.set(t.id,t),n.type!==t.type&&e.set(`${t.id}-${t.type}`,t),e}return e.set(t.id,t)},new Map).values()),nextCursor:"reload"===t.origin?e.nextCursor:t.nextCursor,loading:t.loading,error:t.error}),c7),(0,e5.M)(e=>{r=e.nextCursor}),(0,e1.t)(1)),reloadEvents:()=>i.next({cursor:null,origin:"reload"}),loadMore:()=>{let e=i.getValue().cursor;r&&e!==r&&i.next({origin:"loadMore",cursor:r})}}}({client:e,documentId:t}),{expandedEvents$:l,handleExpandEvent:s}=function({documentId:e,client:t}){let n=new e2.t(new Map);return{handleExpandEvent:async i=>{if(!n.getValue().has(i.id))if((cE(i)||cT(i))&&i.versionRevisionId&&i.creationEvent){let r=c5(await cX({client:t,documentId:e,fromTransaction:i.creationEvent.versionRevisionId,toTransaction:i.versionRevisionId}),e,!1).map(e=>({...e,parentId:i.id})),a=n.getValue();a.set(i.id,r),n.next(a)}else console.error("This event can't be expanded",i)},expandedEvents$:n.pipe((0,eV.T)(e=>Array.from(e.values()).flatMap(e=>e)))}}({client:e,documentId:t}),{remoteEdits$:d,remoteTransactions$:c,subscribe:u}=function({client:e,isLiveEdit:t,documentId:n,documentType:i,serverActionsEnabled:r,onRefetch:a}){let o=new e2.t([]),l=o.pipe((0,eV.T)(e=>c5(e,n,t))),s=rL(n),d=e=>{if(!e)return;let n=e.version;if(n!==s)return;if("published"===n&&!t)return void a();let i=cQ({apply:e.effects.apply,revert:e.effects.revert});if("created"===i||"deleted"===i){a(),o.next([]);return}o.next([...o.value,{author:e.author,documentIDs:[],id:e.transactionId,timestamp:e.timestamp.toISOString(),effects:{[e.head._id]:{apply:e.effects.apply,revert:e.effects.revert}}}])},c=lK(e,{draftId:(0,tG.T4)(n),publishedId:(0,tG.IM)(n),...(0,tG.A_)(n)?{versionId:n}:{}},i,r).pipe((0,to.p)(e=>"remoteMutation"===e.type));return{remoteTransactions$:o,remoteEdits$:l,subscribe:()=>c.subscribe(d)}}({client:e,documentId:t,documentType:n,isLiveEdit:a,serverActionsEnabled:r,onRefetch:o.reloadEvents}),p=function({releases$:e,events$:t,remoteEdits$:n,expandedEvents$:i,documentId:r}){let a=rL(r);return(0,e8.z)([e,t,n,i]).pipe((0,eV.T)(([e,{events:t,nextCursor:n,loading:i,error:r},o,l])=>{let s,d=function({remoteEdits:e,events:t,expandedEvents:n}){return[...e,...t,...n].sort((e,t)=>
92cE(e)&&cP(t)&&e.versionRevisionId===t.revisionId?-1:cE(t)&&cP(e)&&t.versionRevisionId===e.revisionId?1:Date.parse(t.timestamp)-Date.parse(e.timestamp))}({remoteEdits:o,events:t,expandedEvents:l});return"published"===a?{events:d.map(t=>{if(cE(t)){let n=(0,tG._S)(t.versionId);if(n){let i=cH(n),r=e.releases.get(i);return{...t,release:r||{_id:i}}}}return t}),nextCursor:n,loading:i,error:r}:"draft"===a?{events:((s=JSON.parse(JSON.stringify(d))).forEach((e,t)=>{if(cE(e)||cT(e)){e.documentId=e.versionId;for(let n=t;n<s.length;n++){let t=s[n];if(cP(t)&&(t.parentId=e.id),cI(t)){e.creationEvent=t,t.parentId=e.id;break}}}cP(e)&&e.parentId===e.id&&e.transactions[1]?.revisionId&&(e.id=e.transactions[1].revisionId)}),s),nextCursor:n,loading:i,error:r}:{events:d.map(e=>cE(e)?{...e,documentId:e.versionId}:e),nextCursor:n,loading:i,error:r}}),(0,eV.T)(e=>{let t;return{...e,events:(t=e.events,t.map(e=>({...e,documentVariantType:a})))}}),(0,eV.T)(e=>({...e,events:e.events.reduce((e,t)=>{if("updateLiveDocument"===t.type){let n=e[e.length-1];if(n&&"updateLiveDocument"===n.type&&cU(n.timestamp,t.timestamp)&&n.author===t.author)return e}return e.push(t),e},[])})))}({documentId:t,events$:o.events$,remoteEdits$:d,expandedEvents$:l,releases$:i});return{eventsObservable$:p,getDocumentChanges:(n,i)=>(function({eventsObservable$:e,documentId:t,client:n,to$:i,since$:r,remoteTransactions$:a}){let o=null,l=null,s=[];return(0,e8.z)(i,r,e).pipe((0,eM.n)(([e,i,{events:r}])=>{let d,c=e?.document;if(i?.document)d=i?.document;else{let e=r.find(e=>e.id===c?._rev);e&&cI(e)&&c&&(d={_type:c._type,_id:c._id,_rev:c._rev})}return d?a.pipe((0,eM.n)(e=>{var i;let a,u=!c?._rev;return(d._rev===c0?(0,eP.of)([]):u&&o===d._rev?(0,eP.of)((i=s.concat(e),a=new Set,i.filter(e=>!a.has(e.id)&&(a.add(e.id),!0)))):o&&o===d._rev&&l&&l===c?._rev?(0,eP.of)(s):(0,eL.H)(cX({documentId:t,client:n,toTransaction:c?._rev,fromTransaction:d._rev}))).pipe((0,e5.M)(e=>{o=d._rev,s=e,c?._rev&&(l=c._rev)}),(0,eV.T)(e=>({loading:!1,diff:function({initialDoc:e,documentId:t,transactions:n,events:i=[]}){let r=iH.r.wrap(cZ(e),null),a=iH.r.wrap(cZ(e),null),o=cZ(e);return n.forEach((e,n)=>{let r={transactionIndex:n,event:i.find(t=>!cP(t)&&"revisionId"in t&&t.revisionId===e.id)},l=e.effects[t];l&&(a=iH.r.applyPatch(a,l.apply,r),o=(0,iH.X)(o,l.apply))}),function({transactions:e,fromValue:t,fromRaw:n,toValue:i,toRaw:r}){let a=dV(t,n,{fromValue:t=>cW(e,t.endMeta),fromMeta:t=>cW(e,t)}),o=dV(i,r,{fromValue:t=>cJ(e,t.startMeta),fromMeta:t=>cJ(e,t)});return(0,iB.g)(a,o)}({transactions:n,fromValue:r,fromRaw:e,toValue:a,toRaw:o})}({documentId:t,initialDoc:d,transactions:e,events:r}),error:null})))}),(0,eY.W)(e=>(console.error(e),(0,eP.of)({loading:!1,diff:null,error:e}))),(0,tr.Z)({loading:!0,error:null,diff:d&&c?(0,iB.g)((0,iB.L)(c3(d),null),(0,iB.L)(c3(c),null)):null}),(0,e1.t)(1)):(0,eP.of)({loading:!1,diff:null,error:i&&!i.loading&&i.revisionId?new c8(i?.revisionId):null})}))})({client:e,eventsObservable$:p,documentId:t,remoteTransactions$:c,to$:n,since$:i}),handleExpandEvent:s,loadMoreEvents:o.loadMore,reloadEvents:o.reloadEvents,remoteTransactionsListener:u}}({client:b,documentId:g,documentType:y,releases$:v,serverActionsEnabled:k,isLiveEdit:I}),f[5]=b,f[6]=g,f[7]=y,f[8]=I,f[9]=v,f[10]=k,f[11]=i):i=f[11];let T=i,{events:E,loading:$,error:A,nextCursor:D}=(0,tF.J)(T.eventsObservable$,c9);f[12]!==T?(r=()=>{let e=T.remoteTransactionsListener();return()=>{e.unsubscribe()}},a=[T],f[12]=T,f[13]=r,f[14]=a):(r=f[13],a=f[14]),(0,_.useEffect)(r,a);e:{if("@lastPublished"===C){let e;f[15]!==E?(e=E.find(cE),f[15]=E,f[16]=e):e=f[16],o=e?.id||null;break e}if("@lastEdited"===C){let e;f[17]!==E?(e=E.find(cP),f[17]=E,f[18]=e):e=f[18];let t=e;if(t){o=t.revisionId;break e}}if(C?.startsWith("@release:")){let e,t;f[19]!==C?(e=C.split(":"),f[19]=C,f[20]=e):e=f[20];let n=e[1];if(f[21]!==E||f[22]!==n){let e;f[24]!==n?(e=e=>cE(e)&&e.releaseId===n,f[24]=n,f[25]=e):e=f[25],t=E.find(e),f[21]=E,f[22]=n,f[23]=t}else t=f[23];let i=t;if(i){o=i.id;break e}E.length>0&&!$&&T.loadMoreEvents()}if(!C){let[e]=E;if(e&&cE(e)){o=e.id;break e}}o=C}let z=o;f[26]!==b||f[27]!==g||f[28]!==z?(l=z?c6({client:b,documentId:g,revisionId:z}):(0,eP.of)(null),f[26]=b,f[27]=g,f[28]=z,f[29]=l):l=f[29];let P=l,R=(0,tF.J)(P,null);t:{if(x&&"@lastPublished"!==x){s=x;break t}if(!E){s=null;break t}if("@lastPublished"===x||!x){let e,t,n;f[30]!==z?(e=e=>e.id===z,f[30]=z,f[31]=e):e=f[31];let i=E.findIndex(e);f[32]!==E||f[33]!==i?(t=E.slice(i+1).find(cE)?.id,f[32]=E,f[33]=i,f[34]=t):t=f[34];let r=t;if(r){s=r;break t}f[35]!==E?(n=E.find(cI),f[35]=E,f[36]=n):n=f[36];let a=n;if(a){s=a.id;break t}}if(!z){s=E[1]?.id;break t}let e=E.findIndex(e=>e.id===z);if(-1===e){s=null;break t}s=E[e+1]?.id||null}let N=s;f[37]!==b||f[38]!==g||f[39]!==N?(d=N?c6({client:b,documentId:g,revisionId:N}):(0,eP.of)(null),f[37]=b,f[38]=g,f[39]=N,f[40]=d):d=f[40];let O=d;f[41]!==T||f[42]!==P||f[43]!==O?(c=()=>T.getDocumentChanges(P,O),f[41]=T,f[42]=P,f[43]=O,f[44]=c):c=f[44];let V=c,M=(0,tF.J)(O,null);f[45]!==g?(u=rL(g),f[45]=g,f[46]=u):u=f[46];let L=u;f[47]!==L||f[48]!==E||f[49]!==z||f[50]!==x?(p=e=>
92{if(!E)return[null,null];let t=E.findIndex(t=>t.id===e);if(0===t)return"version"===L&&cE(E[0])?[x||null,e]:[x||null,null];if(!x){let n=E.findIndex(e=>e.id===z);return -1===n||-1===t||t>n?[null,e]:[z||null,e]}let n=E.findIndex(e=>e.id===x);return -1===n||-1===t||n<t||n===t?[null,e]:[x,e]},f[47]=L,f[48]=E,f[49]=z,f[50]=x,f[51]=p):p=f[51];let F=p;f[52]!==E||f[53]!==C||f[54]!==z?(m=e=>{if(!E)return[null,null];if(!C||!z)return[e,null];let t=E.findIndex(e=>e.id===z),n=E.findIndex(t=>t.id===e);return -1===n||-1===t||n<t||n===t?[e,null]:[e,z]},f[52]=E,f[53]=C,f[54]=z,f[55]=m):m=f[55];let B=m;return f[56]!==A||f[57]!==E||f[58]!==T.handleExpandEvent||f[59]!==T.loadMoreEvents||f[60]!==F||f[61]!==B||f[62]!==V||f[63]!==$||f[64]!==D||f[65]!==R||f[66]!==M?(h={events:E,nextCursor:D,loading:$,error:A,revision:R,sinceRevision:M,findRangeForRevision:F,findRangeForSince:B,loadMoreEvents:T.loadMoreEvents,expandEvent:T.handleExpandEvent,getChangesList:V},f[56]=A,f[57]=E,f[58]=T.handleExpandEvent,f[59]=T.loadMoreEvents,f[60]=F,f[61]=B,f[62]=V,f[63]=$,f[64]=D,f[65]=R,f[66]=M,f[67]=h):h=f[67],h}let ut=(0,eI.I4)(T.EA).withConfig({displayName:"AvatarSkeleton",componentId:"sc-18rwh46-0"})(e=>{let t=(0,nN.JW)(e.theme),n=e.$size??1;return(0,eI.AH)` 93 border-radius: 50%; 94 width: ${t.avatar.sizes[n].size}px; 95 height: ${t.avatar.sizes[n].size}px; 96 `}),un=/[^\p{Alpha}\p{White_Space}]/gu,ui=RegExp("\\p{White_Space}+","u"),ur={small:0,medium:1,large:2};function ua(e){let t,n,i,r,a=(0,j.c)(13);if(a[0]!==e?({user:n,withTooltip:i,...t}=e,a[0]=e,a[1]=t,a[2]=n,a[3]=i):(t=a[1],n=a[2],i=a[3]),rZ(n)){let e;if(i){let e,i=n;return a[4]!==t||a[5]!==i?(e=(0,v.jsx)(uo,{...t,user:i}),a[4]=t,a[5]=i,a[6]=e):e=a[6],e}let r=n;return a[7]!==t||a[8]!==r?(e=(0,v.jsx)(ul,{...t,user:r}),a[7]=t,a[8]=r,a[9]=e):e=a[9],e}let o=n;return a[10]!==e||a[11]!==o?(r=(0,v.jsx)(us,{...e,user:o}),a[10]=e,a[11]=o,a[12]=r):r=a[12],r}function uo(e){let t,n,i,r=(0,j.c)(6),{user:a}=e,{displayName:o}=a;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t={display:"inline-block"},r[0]=t):t=r[0],r[1]!==e?(n=(0,v.jsx)("div",{style:t,children:(0,v.jsx)(ul,{...e})}),r[1]=e,r[2]=n):n=r[2],r[3]!==o||r[4]!==n?(i=(0,v.jsx)(tL.m_,{content:o,placement:"top",portal:!0,children:n}),r[3]=o,r[4]=n,r[5]=i):i=r[5],i}let ul=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(22);p[0]!==e?({user:s,animateArrowFrom:n,position:i,size:a,status:o,tone:l,...r}=e,p[0]=e,p[1]=n,p[2]=i,p[3]=r,p[4]=a,p[5]=o,p[6]=l,p[7]=s):(n=p[1],i=p[2],r=p[3],a=p[4],o=p[5],l=p[6],s=p[7]);let[m,h]=(0,_.useState)(null),f=op(s.id),g=m?void 0:s?.imageUrl;p[8]!==s.displayName?(d=s?.displayName&&(1===(u=s.displayName.replace(un,"").split(ui)).length?`${u[0].charAt(0)}`.toUpperCase():`${u[0].charAt(0)}${u[u.length-1].charAt(0)}`),p[8]=s.displayName,p[9]=d):d=p[9];let y="string"==typeof a?ur[a]:a,C=s?.displayName;return p[10]!==n||p[11]!==g||p[12]!==i||p[13]!==t||p[14]!==r||p[15]!==o||p[16]!==d||p[17]!==y||p[18]!==C||p[19]!==l||p[20]!==f.name?(c=(0,v.jsx)(I.eu,{__unstable_hideInnerStroke:!0,animateArrowFrom:n,arrowPosition:i,color:f.name,"data-legacy-tone":l,initials:d,src:g,onImageLoadError:h,ref:t,size:y,status:o,title:C,...r}),p[10]=n,p[11]=g,p[12]=i,p[13]=t,p[14]=r,p[15]=o,p[16]=d,p[17]=y,p[18]=C,p[19]=l,p[20]=f.name,p[21]=c):c=p[21],c});function us(e){let t,n,i,r=(0,j.c)(10);r[0]!==e?({user:n,...t}=e,r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]);let[a,o]=o2(n);if(o){let e;return r[3]!==t.size?(e=(0,v.jsx)(ut,{$size:t.size,animated:!0}),r[3]=t.size,r[4]=e):e=r[4],e}if(!a){let e;return r[5]!==t.size?(e=(0,v.jsx)(ut,{$size:t.size,animated:!1}),r[5]=t.size,r[6]=e):e=r[6],e}return r[7]!==t||r[8]!==a?(i=(0,v.jsx)(ua,{...t,user:a}),r[7]=t,r[8]=a,r[9]=i):i=r[9],i}function ud(e){let t,n,i=(0,j.c)(5);i[0]!==e?(t=void 0===e?{}:e,i[0]=e,i[1]=t):t=i[1];let r=t,a=ah().id;return i[2]!==a||i[3]!==r?(n=ag.dateTimeFormat(a,r),i[2]=a,i[3]=r,i[4]=n):n=i[4],n}let uc={month:"short",day:"numeric"},uu={...uc,year:"numeric"},up={...uu,hour:"numeric",minute:"numeric"};function um(e,t){let n,i,r,a=(0,j.c)(5);a[0]!==t?(n=void 0===t?{}:t,a[0]=t,a[1]=n):n=a[1];let o=n,[l,s]=(0,_.useReducer)(uf,null,uh),d=function(e,t,n){let i,r,a=(0,j.c)(4),o=void 0===n?{}:n,{t:l}=as(),s=ah().id,{timeZone:d,minimal:c}=o,u=e instanceof Date?e:new Date(e),p=!!o.useTemporalPhrase,m=(e,t)=>
96{let n="day"===t&&1===Math.abs(e),i="week"===t&&1===Math.abs(e);return p||n?ag.relativeTimeFormat(s,{style:c&&!i?"short":"long",numeric:"auto"}).format(e,t):ag.numberFormat(s,{style:"unit",unit:t,unitDisplay:c?"short":"long"}).format(Math.abs(e))};if(!u.getTime())return{timestamp:"",refreshInterval:null};let h=(0,t3.W)(t,u),f=(0,t8.V)(t,u);if(h||f)return c&&0===f?{timestamp:ag.dateTimeFormat(s,{...uc,timeZone:d}).format(u),refreshInterval:null}:c?{timestamp:ag.dateTimeFormat(s,{...uu,timeZone:d}).format(u),refreshInterval:null}:{timestamp:ag.dateTimeFormat(s,{...up,timeZone:d}).format(u),refreshInterval:null};let g=(0,t4.I)(u,t);if(g)return{timestamp:m(g,"week"),refreshInterval:36e5};let y=(0,t6.c)(u,t);if(y)return{timestamp:m(y,"day"),refreshInterval:36e5};let C=(0,t9.M)(u,t);if(C)return{timestamp:m(C,"hour"),refreshInterval:6e4};let x=(0,ne.o)(u,t);if(x)return{timestamp:m(x,"minute"),refreshInterval:2e4};let b=(0,nt.O)(u,t);return Math.abs(b)>10?{timestamp:m(b,"second"),refreshInterval:5e3}:(a[0]!==l?(i=l("relative-time.just-now"),a[0]=l,a[1]=i):i=a[1],a[2]!==i?(r={timestamp:i,refreshInterval:5e3},a[2]=i,a[3]=r):r=a[3],r)}(e,o.relativeTo||l,o);return a[2]!==d.refreshInterval?(i=()=>{let e;return null!==d.refreshInterval&&function t(n){e=window.setTimeout(()=>{s(),e=window.setTimeout(()=>t(n),n)},n)}(d.refreshInterval),()=>{null!==e&&clearTimeout(e)}},r=[d.refreshInterval],a[2]=d.refreshInterval,a[3]=i,a[4]=r):(i=a[3],r=a[4]),(0,_.useEffect)(i,r),d.timestamp}function uh(){return Date.now()}function uf(){return Date.now()}function ug(e){let t,n,i,r=(0,j.c)(17),{title:a,fallback:o,enableTooltip:l,tooltipMaxWidth:s,children:d,textProps:c}=e;if(r[0]!==d||r[1]!==o||r[2]!==c||r[3]!==a){let e,l,{displayTitle:s,fullTitle:u,isTruncated:p}={displayTitle:(l=(e=a||o).length>50)?ae(e,50):e,fullTitle:e,isTruncated:l};t=u,n=p,i=d?d({displayTitle:s,fullTitle:t,isTruncated:n}):(0,v.jsx)(I.EY,{...c,children:s}),r[0]=d,r[1]=o,r[2]=c,r[3]=a,r[4]=t,r[5]=n,r[6]=i}else t=r[4],n=r[5],i=r[6];let u=i;if(n&&(void 0===l||l)){let e,n,i,a,o=s??"300px";return r[7]!==o?(e={maxWidth:o},r[7]=o,r[8]=e):e=r[8],r[9]!==t?(n=(0,v.jsx)(I.EY,{size:1,children:t}),r[9]=t,r[10]=n):n=r[10],r[11]!==e||r[12]!==n?(i=(0,v.jsx)(I.az,{style:e,children:n}),r[11]=e,r[12]=n,r[13]=i):i=r[13],r[14]!==u||r[15]!==i?(a=(0,v.jsx)(tL.m_,{content:i,children:u}),r[14]=u,r[15]=i,r[16]=a):a=r[16],a}return u}let uy="drafts",uC="published",ux="asap",ub=["archived","published"],uv={asap:{tone:"caution"},scheduled:{tone:"suggest"},undecided:{tone:"neutral"}},uj=(0,tJ.d_)("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8);function uw(){return`${rJ}.r${uj()}`}function u_(e){let t=e.publishedAt||e.publishAt||e.metadata.intendedPublishAt;return t?new Date(t):null}function uk(e){let t=u_(e);return t?((...e)=>{let t=(0,t5.o)(...e);if((0,t0.f)((0,t7.qg)(t,"MM/dd/yyyy",new Date))){let[t]=e;return new Date(t).toLocaleDateString()}return t})(t,new Date):""}function uS(e){return"published"===e}function uI(e){return e===uy}function uT(e){return"scheduled"===e.metadata.releaseType&&("scheduled"===e.state||"scheduling"===e.state)}let uE=()=>({_id:uw(),metadata:{title:"",description:"",releaseType:ux,cardinality:"many"}});function u$(e){return t=>{let n=rX(t);return"drafts"===e?n:!n}}function uA(e){if(uS(e))return"positive";if(uI(e))return"default";if(rG(e)){if("archived"===e.state)return"default";if(e?.metadata?.releaseType==="asap")return uv.asap.tone;if(e?.metadata?.releaseType==="undecided")return uv.undecided.tone;if(rQ(e))return"caution";if(e?.metadata?.releaseType==="scheduled")return uv.scheduled.tone}return"default"}let uD=eI.I4.span.withConfig({displayName:"StyledVersionInlineBadge",componentId:"sc-pk6g57-0"})(e=>{let{$tone:t}=e;return(0,eI.AH)` 97 color: var(--card-badge-${t??"default"}-fg-color); 98 background-color: var(--card-badge-${t??"default"}-bg-color); 99 border-radius: 3px; 100 text-decoration: none; 101 padding: 0px 2px; 102 font-weight: 500; 103 `}),uz=e=>{let t,n=(0,j.c)(3),{children:i,$tone:r}=e;return n[0]!==r||n[1]!==i?(t=(0,v.jsx)(uD,{$tone:r,children:i}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t},uP=e=>{let t=uA(e??uy);return e=>{let n,i=(0,j.c)(2),{children:r}=e;
103return i[0]!==r?(n=(0,v.jsx)(uz,{$tone:t,children:r}),i[0]=r,i[1]=n):n=i[1],n}},uR={historyCleared:eT.ln6,createDocumentVersion:eT.Hp_,createLiveDocument:eT.Hp_,deleteDocumentGroup:eT.ucK,deleteDocumentVersion:eT.USm,editDocumentVersion:eT.qUP,updateLiveDocument:eT.qUP,publishDocumentVersion:eT.VQ$,unpublishDocument:eT.wvk,scheduleDocumentVersion:eT.CTc,unscheduleDocumentVersion:eT.GQ2},uN={historyCleared:"orange",createDocumentVersion:"green",createLiveDocument:"blue",updateLiveDocument:"green",editDocumentVersion:"yellow",unpublishDocument:"orange",deleteDocumentVersion:"orange",deleteDocumentGroup:"orange",scheduleDocumentVersion:"cyan",unscheduleDocumentVersion:"cyan",publishDocumentVersion:"green"},uO={published:{createDocumentVersion:"timeline.operation.created",historyCleared:"timeline.operation.history-cleared",publishDocumentVersion:"timeline.operation.published",updateLiveDocument:"timeline.operation.edited-live",editDocumentVersion:"timeline.operation.edited-draft",unpublishDocument:"timeline.operation.unpublished",deleteDocumentVersion:"timeline.operation.draft-discarded",deleteDocumentGroup:"timeline.operation.deleted",scheduleDocumentVersion:"timeline.operation.published",unscheduleDocumentVersion:"timeline.operation.published",createLiveDocument:"timeline.operation.created"},draft:{createDocumentVersion:"timeline.operation.draft-created",historyCleared:"timeline.operation.history-cleared",publishDocumentVersion:"timeline.operation.published",updateLiveDocument:"timeline.operation.edited-live",editDocumentVersion:"timeline.operation.edited-draft",unpublishDocument:"timeline.operation.unpublished",deleteDocumentVersion:"timeline.operation.draft-discarded",deleteDocumentGroup:"timeline.operation.deleted",scheduleDocumentVersion:"timeline.operation.published",unscheduleDocumentVersion:"timeline.operation.published",createLiveDocument:"timeline.operation.created"},version:{createDocumentVersion:"timeline.operation.version-created",historyCleared:"timeline.operation.history-cleared",publishDocumentVersion:"timeline.operation.published",updateLiveDocument:"timeline.operation.edited-live",editDocumentVersion:"timeline.operation.edited-draft",unpublishDocument:"timeline.operation.unpublished",deleteDocumentVersion:"timeline.operation.version-discarded",deleteDocumentGroup:"timeline.operation.deleted",scheduleDocumentVersion:"timeline.operation.published",unscheduleDocumentVersion:"timeline.operation.published",createLiveDocument:"timeline.operation.created"}};function uV(e){let t,n,i=(0,j.c)(9),{maxLength:r,userIds:a,size:o,withTooltip:l}=e,s=void 0===l||l;if(i[0]!==a||i[1]!==s){let e;i[3]!==s?(e=e=>(0,v.jsx)(ua,{user:e,withTooltip:s},e),i[3]=s,i[4]=e):e=i[4],t=a.map(e),i[0]=a,i[1]=s,i[2]=t}else t=i[2];return i[5]!==r||i[6]!==o||i[7]!==t?(n=(0,v.jsx)(I.GE,{maxLength:r,size:o,children:t}),i[5]=r,i[6]=o,i[7]=t,i[8]=n):n=i[8],n}let uM=(0,eI.I4)(I.so).withConfig({displayName:"IconBox",componentId:"sc-19zc915-0"})(e=>{let t=(0,nN.JW)(e.theme),n=e.$color;return(0,eI.AH)` 104 --card-icon-color: ${t.color.avatar[n].fg}; 105 background-color: ${t.color.avatar[n].bg}; 106 box-shadow: 0 0 0 1px var(--card-bg-color); 107 108 position: absolute; 109 width: ${t.avatar.sizes[0].size}px; 110 height: ${t.avatar.sizes[0].size}px; 111 right: -3px; 112 bottom: -3px; 113 border-radius: 50%; 114 `}),uL={minimal:!0,useTemporalPhrase:!0},uF=(0,eI.I4)(T.EA).withConfig({displayName:"AvatarSkeleton",componentId:"sc-19zc915-1"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 115 border-radius: 50%; 116 width: ${t.avatar.sizes[1].size}px; 117 height: ${t.avatar.sizes[1].size}px; 118 `}),uB=(0,eI.I4)(T.EA).withConfig({displayName:"NameSkeleton",componentId:"sc-19zc915-2"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 119 width: 6ch; 120 height: ${t.font.text.sizes[0].lineHeight}px; 121 `}),uY=e=>{let t,n,i,r=(0,j.c)(10),{userId:a}=e,[o,l]=o2(a);return r[0]!==l||r[1]!==o?(t=(0,v.jsx)(I.az,{children:l||!o?(0,v.jsx)(uF,{animated:!0}):(0,v.jsx)(ua,{user:o})}),r[0]=l,r[1]=o,r[2]=t):t=r[2],r[3]!==l||r[4]!==o?(n=(0,v.jsx)(I.az,{children:l||!o?.displayName?(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(uB,{animated:!0})}):(0,v.jsx)(I.EY,{muted:!0,size:1,children:o.displayName})}),r[3]=l,r[4]=o,r[5]=n):n=r[5],r[6]!==t||r[7]!==n||r[8]!==a?(i=(0,v.jsxs)(I.so,{align:"center",gap:2,padding:1,children:[t,n]},a),r[6]=t,r[7]=n,r[8]=a,r[9]=i):i=r[9],i},uH=e=>{let t,n,i,r,a=(0,j.c)(9),{collaborators:o}=e,{t:l}=as("studio");return a[0]!==l?(t=l("timeline.changes.title"),a[0]=l,a[1]=t):t=a[1],a[2]!==t?(n=(0,v.jsx)(I.az,{padding:1,paddingBottom:2,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:t})}),a[2]=t,a[3]=n):n=a[3],a[4]!==o?(i=o.map(uZ),a[4]=o,a[5]=i):i=a[5],a[6]!==n||a[7]!==i?(r=(0,v.jsxs)(I.BJ,{paddingBottom:1,children:[n,i]}),a[6]=n,a[7]=i,a[8]=r):r=a[8],r};function uU(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,_=(0,j.c)(55),{event:k,showChangesBy:S}=e,T=void 0===S?"tooltip":S,{t:E}=as("studio"),{type:$,timestamp:A,documentVariantType:D}=k,z=uR[$];_[0]!==k?(t="contributors"in k&&k.contributors||[],_[0]=k,_[1]=t):t=_[1];let P=t;_[2]===Symbol.for("react.memo_cache_sentinel")?(n={dateStyle:"medium",timeStyle:"short"},_[2]=n):n=_[2];let R=ud(n);_[3]!==A?(i=new Date(A),_[3]=A,_[4]=i):i=_[4];let N=um(i||"",uL);if(_[5]!==R||_[6]!==A){let e=new Date(A);r=R.format(e),_[5]=R,_[6]=A,_[7]=r}else r=_[7];let O=r;_[8]!==k?(a=cP(k)?k.contributors:[k.author],_[8]=k,_[9]=a):a=_[9];let V=a;_[10]===Symbol.for("react.memo_cache_sentinel")?(o={position:"relative"}
121,_[10]=o):o=_[10],_[11]!==V?(l=V.filter(Boolean),_[11]=V,_[12]=l):l=_[12],_[13]!==l?(s=(0,v.jsx)(uV,{maxLength:3,userIds:l,size:2}),_[13]=l,_[14]=s):s=_[14];let M=uN[$];_[15]!==z?(d=z&&(0,v.jsx)(z,{}),_[15]=z,_[16]=d):d=_[16],_[17]!==d?(c=(0,v.jsx)(I.EY,{size:0,children:d}),_[17]=d,_[18]=c):c=_[18],_[19]!==M||_[20]!==c?(u=(0,v.jsx)(uM,{align:"center",justify:"center",$color:M,children:c}),_[19]=M,_[20]=c,_[21]=u):u=_[21],_[22]!==u||_[23]!==s?(p=(0,v.jsxs)("div",{style:o,children:[s,u]}),_[22]=u,_[23]=s,_[24]=p):p=_[24];let L=uO[D][$];return _[25]!==E||_[26]!==L?(m=E(L),_[25]=E,_[26]=L,_[27]=m):m=_[27],_[28]!==D||_[29]!==k||_[30]!==E?(h=cE(k)&&"published"===D&&(0,v.jsxs)(v.Fragment,{children:[" ",k.release?(0,v.jsx)(ug,{title:k.release.metadata?.title,fallback:E("release.placeholder-untitled-release"),children:e=>{let{displayTitle:t}=e;return(0,v.jsx)(uz,{$tone:rG(k.release)?uA(k.release):"default",children:t})}}):(0,v.jsx)(uz,{$tone:"caution",children:E("changes.versions.draft")})]}),_[28]=D,_[29]=k,_[30]=E,_[31]=h):h=_[31],_[32]!==m||_[33]!==h?(f=(0,v.jsxs)(I.EY,{size:1,weight:"medium",children:[m,h]}),_[32]=m,_[33]=h,_[34]=f):f=_[34],_[35]!==O||_[36]!==A||_[37]!==N?(g=(0,v.jsx)(I.EY,{as:"time",size:1,muted:!0,dateTime:A,title:O,children:N}),_[35]=O,_[36]=A,_[37]=N,_[38]=g):g=_[38],_[39]!==f||_[40]!==g?(y=(0,v.jsxs)(I.BJ,{space:2,children:[f,g]}),_[39]=f,_[40]=g,_[41]=y):y=_[41],_[42]!==P||_[43]!==T?(C=P.length>0&&"tooltip"==T&&(0,v.jsx)(I.so,{flex:1,justify:"flex-end",align:"center",children:(0,v.jsx)(tL.m_,{placement:"top",content:(0,v.jsx)(uH,{collaborators:P}),portal:!0,children:(0,v.jsx)(I.az,{paddingLeft:2,paddingY:2,children:(0,v.jsx)(uV,{maxLength:3,userIds:P,size:0,withTooltip:!1})})})}),_[42]=P,_[43]=T,_[44]=C):C=_[44],_[45]!==p||_[46]!==y||_[47]!==C?(x=(0,v.jsxs)(I.so,{align:"center",gap:3,children:[p,y,C]}),_[45]=p,_[46]=y,_[47]=C,_[48]=x):x=_[48],_[49]!==P||_[50]!==T?(b=P.length>0&&"inline"===T&&(0,v.jsx)(I.az,{paddingTop:2,children:(0,v.jsx)(uH,{collaborators:P})}),_[49]=P,_[50]=T,_[51]=b):b=_[51],_[52]!==x||_[53]!==b?(w=(0,v.jsxs)(v.Fragment,{children:[x,b]}),_[52]=x,_[53]=b,_[54]=w):w=_[54],w}function uZ(e){return(0,v.jsx)(uY,{userId:e},e)}function uq(e){let t,n,i,r,a,o,l,s=(0,j.c)(16);if(!("diff"in e)){let t;return s[0]!==e?(t=(0,v.jsx)(uW,{...e}),s[0]=e,s[1]=t):t=s[1],t}s[2]!==e?({diff:t,path:i,...n}=e,s[2]=e,s[3]=t,s[4]=n,s[5]=i):(t=s[3],n=s[4],i=s[5]),s[6]!==i?(r=void 0===i?[]:i,s[6]=i,s[7]=r):r=s[7];let d=r;s[8]!==t||s[9]!==d?(a=oc(t,d),s[8]=t,s[9]=d,s[10]=a):a=s[10];let c=a;return s[11]!==c?(o=c?[c]:[],s[11]=c,s[12]=o):o=s[12],s[13]!==n||s[14]!==o?(l=(0,v.jsx)(uW,{...n,annotations:o}),s[13]=n,s[14]=o,s[15]=l):l=s[15],l}function uW(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(22);p[0]!==e?({annotations:t,children:n,description:i,...r}=e,p[0]=e,p[1]=t,p[2]=n,p[3]=i,p[4]=r):(t=p[1],n=p[2],i=p[3],r=p[4]);let{t:m}=as();if(!t)return n;p[5]===Symbol.for("react.memo_cache_sentinel")?(a={minWidth:"240px"},p[5]=a):a=p[5],p[6]!==i||p[7]!==m?(o=i||m("changes.changed-label"),p[6]=i,p[7]=m,p[8]=o):o=p[8],p[9]!==o?(l=(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:o}),p[9]=o,p[10]=l):l=p[10],p[11]!==t?(s=t.map(uJ),p[11]=t,p[12]=s):s=p[12],p[13]!==s?(d=(0,v.jsx)(I.BJ,{space:2,children:s}),p[13]=s,p[14]=d):d=p[14],p[15]!==l||p[16]!==d?(c=(0,v.jsxs)(I.BJ,{space:2,style:a,paddingTop:1,children:[l,d]}),p[15]=l,p[16]=d,p[17]=c):c=p[17];let h=c;return p[18]!==n||p[19]!==h||p[20]!==r?(u=(0,v.jsx)(edc,{zOffset:"paneFooter",children:(0,v.jsx)(tL.m_,{content:h,portal:!0,...r,children:n})}),p[18]=n,p[19]=h,p[20]=r,p[21]=u):u=p[21],u}function uJ(e,t){return(0,v.jsx)(uK,{annotation:e},t)}function uK(e){let t,n,i=(0,j.c)(9),{annotation:r}=e,{author:a,timestamp:o}=r,[l]=o2(a),s=oy(r);i[0]===Symbol.for("react.memo_cache_sentinel")?(t={minimal:!0},i[0]=t):t=i[0];let d=um(o,t),{t:c}=as();return i[1]!==r.event||i[2]!==a||i[3]!==s||i[4]!==c||i[5]!==d||i[6]!==o||i[7]!==l?(n=(0,v.jsx)(v.Fragment,{children:r.event?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.Zp,{borderBottom:!0,marginBottom:2}),(0,v.jsx)(uU,{event:r.event,showChangesBy:"inline"})]}):(0,v.jsxs)(I.cV,{space:2,children:[(0,v.jsx)(I.so,{align:"center",paddingRight:3,style:{backgroundColor:s.background,color:s.text,borderRadius:"calc(23px / 2)"},children:a&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(ua,{user:a}),(0,v.jsx)(I.cV,{paddingLeft:2,children:(0,v.jsx)(I.EY,{muted:!0,size:1,style:{color:s.text},children:l?l.displayName:c("changes.loading-author")})})]})}),(0,v.jsx)(I.EY,{as:"time",muted:!0,size:1,dateTime:o,children:d})]})}),i[1]=r.event,i[2]=a,i[3]=s,i[4]=c,i[5]=d,i[6]=o,i[7]=l,i[8]=n):n=i[8],n}let uG=(0,eI.I4)(I.Zp).withConfig({displayName:"StyledCard",componentId:"sc-v5xr04-0"})`--diff-card-radius:${({theme:e})=>(0,I.D0)(e.sanity.radius[2])};--diff-card-bg-color:${({theme:e})=>e.sanity.color.card.enabled.bg};max-width:100%;position:relative;border-radius:var(--diff-card-radius);background-color:${({$annotationColor:e})=>e.backgroundColor};color:${({$annotationColor:e})=>e.color};z-index:1;&:not(del){text-decoration:none;}&[data-hover]{&::after{content:'';display:block;position:absolute;
121left:0;right:0;bottom:0;}&:hover{border-bottom-left-radius:0;border-bottom-right-radius:0;&::after{bottom:-3px;border-top:1px solid var(---diff-card-bg-color);border-bottom:2px solid currentColor;border-bottom-left-radius:var(--diff-card-radius);border-bottom-right-radius:var(--diff-card-radius);}}[data-from-to-layout]:hover &{border-bottom-left-radius:0;border-bottom-right-radius:0;&::after{bottom:-3px;border-top:1px solid var(---diff-card-bg-color);border-bottom:2px solid currentColor;border-bottom-left-radius:var(--diff-card-radius);border-bottom-right-radius:var(--diff-card-radius);}}}`,uX=[],uQ=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(35);g[0]!==e?({annotation:n,as:s,children:i,className:r,diff:a,disableHoverEffect:o,path:d,style:c,tooltip:u,...l}=e,g[0]=e,g[1]=n,g[2]=i,g[3]=r,g[4]=a,g[5]=o,g[6]=l,g[7]=s,g[8]=d,g[9]=c,g[10]=u):(n=g[1],i=g[2],r=g[3],a=g[4],o=g[5],l=g[6],s=g[7],d=g[8],c=g[9],u=g[10]);let y=void 0===s?"div":s,C=void 0===d?uX:d;g[11]!==c?(p=void 0===c?{}:c,g[11]=c,g[12]=p):p=g[12];let x=p;g[13]!==n||g[14]!==a||g[15]!==C?(m=n||oc(a,C),g[13]=n,g[14]=a,g[15]=C,g[16]=m):m=g[16];let b=m,w=oy(b),_=o||!b?void 0:"";g[17]!==w.background||g[18]!==w.text?(h={backgroundColor:w.background,color:w.text},g[17]=w.background,g[18]=w.text,g[19]=h):h=g[19],g[20]!==y||g[21]!==i||g[22]!==r||g[23]!==t||g[24]!==l||g[25]!==x||g[26]!==_||g[27]!==h?(f=(0,v.jsx)(uG,{...l,as:y,className:r,"data-hover":_,"data-ui":"diff-card",ref:t,radius:1,$annotationColor:h,style:x,children:i}),g[20]=y,g[21]=i,g[22]=r,g[23]=t,g[24]=l,g[25]=x,g[26]=_,g[27]=h,g[28]=f):f=g[28];let k=f;if(u&&b){let e,t;g[29]!==b?(e=[b],g[29]=b,g[30]=e):e=g[30];let n=u&&"object"==typeof u&&u.description;return g[31]!==k||g[32]!==e||g[33]!==n?(t=(0,v.jsx)(uq,{annotations:e,description:n,children:k}),g[31]=k,g[32]=e,g[33]=n,g[34]=t):t=g[34],t}return k}),u1=eI.I4.div.withConfig({displayName:"RoundedCard",componentId:"sc-42x6l9-0"})`border-radius:${({theme:e})=>(0,I.D0)(e.sanity.radius[2])};padding:${({theme:e})=>(0,I.D0)(e.sanity.space[1])};`,u2=(0,eI.I4)(I.EY).withConfig({displayName:"AnnotationText",componentId:"sc-42x6l9-1"})`&:not([hidden]){color:inherit;}`;function u5(e){let t,n=(0,j.c)(15),{change:i,segment:r}=e;if("string"==typeof r){let e;return n[0]!==r?(e=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{title:r,size:1,weight:"medium",textOverflow:"ellipsis",children:r})}),n[0]=r,n[1]=e):e=n[1],e}let{hasMoved:a,fromIndex:o,toIndex:l,annotation:s}=r,d=typeof l>"u";if(typeof o>"u"){let e;return n[2]!==s||n[3]!==i||n[4]!==l?(e=(0,v.jsx)(u0,{annotation:s,change:i,toIndex:l}),n[2]=s,n[3]=i,n[4]=l,n[5]=e):e=n[5],e}if(d){let e;return n[6]!==s||n[7]!==o?(e=(0,v.jsx)(u7,{annotation:s,fromIndex:o}
121),n[6]=s,n[7]=o,n[8]=e):e=n[8],e}if(a&&"u">typeof l&&"u">typeof o){let e;return n[9]!==s||n[10]!==o||n[11]!==l?(e=(0,v.jsx)(u3,{annotation:s,fromIndex:o,toIndex:l}),n[9]=s,n[10]=o,n[11]=l,n[12]=e):e=n[12],e}let c=(l||0)+1;return n[13]!==c?(t=(0,v.jsx)(I.az,{padding:1,children:(0,v.jsxs)(I.EY,{size:1,weight:"medium",children:["#",c]})}),n[13]=c,n[14]=t):t=n[14],t}function u0(e){let t,n,i,r,a=(0,j.c)(18),{annotation:o,change:l,toIndex:s}=e,{t:d}=as(),c=(void 0===s?0:s)+1;a[0]!==c||a[1]!==d?(t=d("changes.array.item-added-in-position",{position:c}),a[0]=c,a[1]=d,a[2]=t):t=a[2];let u=t;a[3]!==c?(n=(0,v.jsxs)(v.Fragment,{children:["#",c]}),a[3]=c,a[4]=n):n=a[4];let p=n;a[5]!==l?(i=l?.diff?oc(l.diff,[]):void 0,a[5]=l,a[6]=i):i=a[6];let m=i||o;if(m){let e,t,n,i;return a[7]!==u?(e={description:u},a[7]=u,a[8]=e):e=a[8],a[9]===Symbol.for("react.memo_cache_sentinel")?(t={textDecoration:"none"},a[9]=t):t=a[9],a[10]!==p?(n=(0,v.jsx)(u2,{size:1,weight:"medium",forwardedAs:"ins",style:t,children:p}),a[10]=p,a[11]=n):n=a[11],a[12]!==m||a[13]!==e||a[14]!==n?(i=(0,v.jsx)(uQ,{annotation:m,tooltip:e,as:u1,children:n}),a[12]=m,a[13]=e,a[14]=n,a[15]=i):i=a[15],i}return a[16]!==p?(r=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:p}),a[16]=p,a[17]=r):r=a[17],r}function u7(e){let t,n,i,r,a=(0,j.c)(11),{annotation:o,fromIndex:l}=e,{t:s}=as(),d=(void 0===l?0:l)+1;a[0]!==d||a[1]!==s?(t=s("changes.array.item-removed-from-position",{position:d}),a[0]=d,a[1]=s,a[2]=t):t=a[2];let c=t,u=o||null;return a[3]!==c?(n={description:c},a[3]=c,a[4]=n):n=a[4],a[5]!==d?(i=(0,v.jsxs)(u2,{size:1,weight:"medium",forwardedAs:"del",children:["#",d]}),a[5]=d,a[6]=i):i=a[6],a[7]!==u||a[8]!==n||a[9]!==i?(r=(0,v.jsx)(uQ,{annotation:u,as:u1,tooltip:n,children:i}),a[7]=u,a[8]=n,a[9]=i,a[10]=r):r=a[10],r}function u3(e){let t,n,i,r,a,o,l,s=(0,j.c)(19),{annotation:d,fromIndex:c,toIndex:u}=e,{t:p}=as(),m=u-c,h=m<0?"â":"â";s[0]!==m||s[1]!==p?(t=p("changes.array.item-moved",{count:Math.abs(m),context:m<0?"up":"down"}),s[0]=m,s[1]=p,s[2]=t):t=s[2];let f=t,g=u+1;return s[3]!==g?(n=(0,v.jsx)(I.az,{padding:1,children:(0,v.jsxs)(u2,{size:1,weight:"medium",children:["#",g]})}),s[3]=g,s[4]=n):n=s[4],s[5]!==f?(i={description:f},s[5]=f,s[6]=i):i=s[6],s[7]!==m?(r=Math.abs(m),s[7]=m,s[8]=r):r=s[8],s[9]!==h||s[10]!==r?(a=(0,v.jsxs)(u2,{size:1,weight:"medium",children:[h,r]}),s[9]=h,s[10]=r,s[11]=a):a=s[11],s[12]!==d||s[13]!==i||s[14]!==a?(o=(0,v.jsx)(uQ,{annotation:d,as:u1,tooltip:i,children:a}),s[12]=d,s[13]=i,s[14]=a,s[15]=o):o=s[15],s[16]!==n||s[17]!==o?(l=(0,v.jsxs)(v.Fragment,{children:[n,o]}),s[16]=n,s[17]=o,s[18]=l):l=s[18],l}function u8(e){let t,n,i,r=(0,j.c)(8),{change:a,titlePath:o}=e;if(r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(eT.vKP,{})}),r[0]=t):t=r[0],r[1]!==a||r[2]!==o){let e;r[4]!==a?(e=(e,t)=>"string"==typeof e||!a||a.showIndex?(0,v.jsx)(u5,{change:a,segment:e},t):null,r[4]=a,r[5]=e):e=r[5],n=o.map(e),r[1]=a,r[2]=o,r[3]=n}else n=r[3];return r[6]!==n?(i=(0,v.jsx)(T.BI,{maxLength:4,separator:t,children:n}),r[6]=n,r[7]=i):i=r[7],i}let u4=e=>{let t,n=(0,j.c)(6),{checkProperty:i,checkPropertyKey:r,document:a,parent:o,value:l,path:s}=e,d=ai(l),c=o5();return n[0]!==c||n[1]!==a||n[2]!==o||n[3]!==s||n[4]!==d?(t={currentUser:c,document:a,parent:o,value:d,path:s},n[0]=c,n[1]=a,n[2]=o,n[3]=s,n[4]=d,n[5]=t):t=n[5],function(e,t,n){let i,r=(0,j.c)(8),{currentUser:a,document:o,parent:l,value:s,path:d}=n;if(r[0]!==e||r[1]!==t||r[2]!==a||r[3]!==o||r[4]!==l||r[5]!==d||r[6]!==s){e:{var c;let n;if("boolean"==typeof e||void 0===e){i=e||!1;break e}try{n=e({document:o,parent:l,value:s,currentUser:a,path:d})}catch(e){console.error(`An error occurred while running the callback from \`${t}\`: ${e.message}`),i=!1;break e}if(rZ(c=n)&&"function"==typeof c?.then){console.warn(`The \`${t}\` option is either a promise or a promise returning function. Async callbacks for \`${t}\` option is not currently supported.`),i=!1;break e}typeof n>"u"&&console.warn(`The \`${t}\` option is or returned \`undefined\`. \`${t}\` should return a boolean.`),i=n}r[0]=e,r[1]=t,r[2]=a,r[3]=o,r[4]=l,r[5]=d,r[6]=s,r[7]=i}else i=r[7];return i}(void 0!==i&&i,r,t)};function u6(e,t){var n;let i=(0,eD.Kk)(t)?t._type:Array.isArray(n=t)?"array":null===n?"null":typeof n;return e.of.find(e=>e.name===i)||(1===e.of.length?e.of[0]:void 0)}let u9=[["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï "],["ï¡","ï¢"],["ï£","ï¤"],["ï¥","ï¦"],["ï§","ï¨"],["ï©","ïª"],["ï«","ï¬"],["ï®","ï¯"],["ï°","ï±"],["ï²","ï³"],["ï´","ïµ"],["ï¶","ï·"],["ï¸","ï¹"],["ïº","ï»"],["ï¼","ï½"],["ï¾","ï¿"],["ï","ï"],["ï","ï"],["ï","ï "],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"]],pe=[["ï","ï"],["ï","ï"],["ï","ï "],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï","ï"],["ï ","ï¡"]],pt=["ï","ï","ï","ï","ï","ï","ï","ï","ï","ï","ï","ï","ï","ï","ï","ï","ï ","ï¡","ï¢","ï£","ï¤","ï¥","ï¦","ï§","ï¨","ï©","ïª","ï«","ï¬","ï","ï®","ï¯","ï°","ï±","ï²","ï³","ï´","ïµ","ï¶","ï·","ï¸","ï¹","ïº","ï»","ï¼","ï½","ï¾","ï¿"],pn=pe.map(e=>e[0]).concat(u9.map(e=>e[0])),pi=pe.map(e=>e[1]).concat(u9.map(e=>e[1])),pr=pn.concat(pi).concat(pt).concat("ï").concat("â "),pa=RegExp(`${pr.join("|")}`,"g"),po=RegExp(`${pr.join("|")}| 122`,"g");function pl(e){return"object"===e.jsonType&&"block"===e.name}function ps(e,t){return e.fields.children.items.filter(e=>e.diff.isChanged&&(e.diff.toValue===t||e.diff.fromValue===t)).map(e=>e.diff).map(e=>e)[0]}function pd(e,t){let n=e.find(e=>"children"===e.name);return n&&n.type&&"array"===n.type.jsonType&&n.type.of.find(e=>e.name===t._type)||void 0}function pc(e){return e.decorators?(0,Y.A)(e.decorators,["value"],["asc"]):[]}function pu(e,t){return pc(t).some(t=>t.value===e)}function pp(e,t,n,i,r){return t?t.children.map(t=>{let a=(0,eD.bn)(t)?t.text?.replace(pa,""):"";if((0,eD.bn)(t)){let r=ph(e,t)?.fields.text;r&&r.toValue===t.text&&"string"===r.type&&"unchanged"!==r.action&&(a=r.segments.filter(e=>"removed"!==e.action).map(e=>
122e.text.replace(pa,"")).join("â ")),t.marks&&t.marks.forEach(e=>{n[e]?a=`${n[e][0]}${a}${n[e][1]}`:i[e]&&(a=`${i[e][0]}${a}${i[e][1]}`)})}else a=r[t._key];return`\uF0D0${a}`}).join(""):""}function pm(e){let t=e.toValue?e.toValue.children.filter(e=>"span"!==e._type):[];return(e.fromValue?e.fromValue.children.filter(e=>"span"!==e._type):[]).forEach(e=>{t.some(t=>e._key===t._key)||t.push(e)}),(0,Y.A)(t,["_key"],["asc"])}function ph(e,t){let n=e.fields.children&&"unchanged"!==e.fields.children.action&&"array"===e.fields.children.type&&e.fields.children.items.find(e=>e.diff&&"object"===e.diff.type&&("removed"===e.diff.action?e.diff.fromValue&&e.diff.fromValue._key===t._key:(e.diff.toValue&&e.diff.toValue._key)===t._key));if(n)return n.diff}function pf(e){return e&&(0,D.A)(Object.keys(e),["_key","_type"])||!1}function pg(e){let t=[...e.toValue&&e.toValue.markDefs?e.toValue.markDefs:[]];return(e.fromValue&&e.fromValue.markDefs?e.fromValue.markDefs:[]).forEach(e=>{t.some(t=>e._key===t._key)||t.push(e)}),(0,Y.A)(t,["_key"],["asc"])}function py(e){let t=typeof e;if("object"===t){if(null===e)return"null";if(Array.isArray(e))return"array";if(e instanceof Object&&"Object"!==e.constructor.name)return e.constructor.name}return t}function pC(e,t){let{jsonType:n}=t,i=Array.isArray(e)?"array":typeof e;if(null!==e&&"undefined"!==i){var r;if(i!==n)return{messageKey:"changes.error.incorrect-type-message",value:e,expectedType:n,actualType:py(e)};if("object"===t.jsonType&&null!==(r=e)&&!Array.isArray(r)&&"object"==typeof r)for(let n of t.fields){let t=pC(e[n.name],n.type);if(t)return t}}}function px(e){return"field"===e.type}let pb=[];function pv(e){let t,n,i,r,a=(0,j.c)(11),{checked:o,color:l}=e,s=l?.background;return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)("rect",{x:"0",y:"0",width:"17",height:"17",rx:"2.5"}),a[0]=t):t=a[0],a[1]!==o||a[2]!==l?.text?(n=typeof o>"u"&&(0,v.jsx)("path",{d:"M4.07996 8.5H12.92",stroke:l?.text,strokeWidth:"2"}),a[1]=o,a[2]=l?.text,a[3]=n):n=a[3],a[4]!==o||a[5]!==l?.text?(i=o&&(0,v.jsx)("path",{d:"M3.5 8L7 11.5L13.5 5",stroke:l?.text,strokeWidth:"2"}),a[4]=o,a[5]=l?.text,a[6]=i):i=a[6],a[7]!==s||a[8]!==n||a[9]!==i?(r=(0,v.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",fill:s,children:[t,n,i]}),a[7]=s,a[8]=n,a[9]=i,a[10]=r):r=a[10],r}function pj(e){let t,n,i,r,a,o=(0,j.c)(13),{checked:l,color:s}=e,d=l?s?.border:s?.background;return o[0]!==d?(t=(0,v.jsx)("rect",{width:"38",height:"22",rx:"11",fill:d}),o[0]=d,o[1]=t):t=o[1],o[2]!==l?(n=typeof l>"u"&&(0,v.jsx)("rect",{x:"11",y:"3",width:"16",height:"16",rx:"8",fill:"white"}),o[2]=l,o[3]=n):n=o[3],o[4]!==l?(i=l&&(0,v.jsx)("rect",{x:"18",y:"3",width:"16",height:"16",rx:"8",fill:"white"}),o[4]=l,o[5]=i):i=o[5],o[6]!==l?(r="boolean"==typeof l&&!l&&(0,v.jsx)("rect",{x:"4",y:"3",width:"16",height:"16",rx:"8",fill:"white"}),o[6]=l,o[7]=r):r=o[7],o[8]!==t||o[9]!==n||o[10]!==i||o[11]!==r?(a=(0,v.jsxs)("svg",{width:"38",height:"22",viewBox:"0 0 38 22",xmlns:"http://www.w3.org/2000/svg",children:[t,n,i,r]}),o[8]=t,o[9]=n,o[10]=i,o[11]=r,o[12]=a):a=o[12],a}let pw=eI.I4.div.withConfig({displayName:"DatetimeWrapper",componentId:"sc-1ygkdrz-0"})`display:inline-block;word-wrap:break-word;`,p_=function(e){let t,n,i=(0,j.c)(5),{value:r,schemaType:a}=e;return i[0]!==a||i[1]!==r?(t=function(e,t){let{options:n,name:i}=t,r=n?.dateFormat||tX.D2,a=n?.timeFormat||tX.EN;return tX.GP(new Date(e),"date"===i?r:`${r} ${a}`)}(r,a),i[0]=a,i[1]=r,i[2]=t):t=i[2],i[3]!==t?(n=(0,v.jsx)(I.az,{as:pw,paddingX:2,paddingY:1,children:t}),i[3]=t,i[4]=n):n=i[4],n},pk=e=>{let t,n=(0,j.c)(3),{diff:i,schemaType:r}=e;return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(m5,{align:"center",diff:i,layout:"grid",previewComponent:p_,schemaType:r}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t};function pS(){let e=(0,_.useContext)(S.HU);if(!e)throw Error("DocumentChange: missing context value");return e}function pI(e){let t,n,i=(0,j.c)(4),[r,a]=(0,_.useState)(void 0),o=el0(ob);return i[0]!==o||i[1]!==e?(t=()=>{if(!e)return;let t=o.observable.getDocument(e).subscribe(a);return()=>{t.unsubscribe()}},n=[o,e],i[0]=o,i[1]=e,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,_.useEffect)(t,n),e?r:void 0}function pT(e,t){return e<1e3?t(e,"byte"):e<1e6?t(e/1e3,"kilobyte"):e<1e9?t(e/1e6,"megabyte"):e<1e12?t(e/1e9,"gigabyte"):t(e/1e12,"terabyte")}let pE=eI.I4.div.withConfig({displayName:"SizeDiff",componentId:"sc-15jc302-0"})`${({theme:e})=>` 123 --size-diff-positive: ${e.sanity.color.solid.positive.enabled.bg}; 124 --size-diff-negative: ${e.sanity.color.solid.critical.enabled.bg}; 125 `} &:not([hidden]){display:inline-block;}[data-number='positive']{color:var(--size-diff-positive);}[data-number='negative']{color:var(--size-diff-negative);}`;function p$(e){let[t]=e;return t}function pA(e){return e.name}function pD(e,t){return`rgba(${(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e)||[]).slice(1).map(e=>parseInt(e,16)).concat(t).join(", ")})`}function pz(e){let t=0;if(0==e.length)return t.toString();for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t.toString()}function pP(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(40);m[0]!==e?({crop:t,diff:n,hash:i,hotspot:r,width:o,height:l,...a}=e,m[0]=e,m[1]=t,m[2]=n,m[3]=i,m[4]=r,m[5]=a,m[6]=o,m[7]=l):(t=m[1],n=m[2],i=m[3],r=m[4],a=m[5],o=m[6],l=m[7]);let h=void 0===o?100:o,f=void 0===l?100:l,{t:g}=as(),y=oC(n,"crop"),C=oC(n,"hotspot"),x=`0 0 ${h} ${f}`;return m[8]!==t||m[9]!==i||m[10]!==f||m[11]!==r||m[12]!==h?(s=t&&r&&(0,v.jsxs)("mask",{id:`mask-hotspot-${i}`,children:[(0,v.jsx)("rect",{x:0,y:0,width:h,height:f,fill:"#fff"}),(0,v.jsx)(pN,{hotspot:r,fill:"#000",offset:1,width:h,height:f,stroke:"#000",strokeWidth:3})]}),m[8]=t,m[9]=i,m[10]=f,m[11]=r,m[12]=h,m[13]=s):s=m[13],m[14]!==s?(d=(0,v.jsx)("defs",{children:s}),m[14]=s,m[15]=d):d=m[15],m[16]!==t||m[17]!==y||m[18]!==n||m[19]!==i||m[20]!==f||m[21]!==r||m[22]!==g||m[23]!==h?(c=t&&(0,v.jsx)(uq,{diff:n,path:"crop",description:g("changes.image.crop-changed"),children:(0,v.jsx)("g",{children:(0,v.jsx)(pR,{crop:t,fill:pD(y.border,.25),mask:r?`url(#mask-hotspot-${i})`:void 0,stroke:y.border,strokeWidth:1,width:h,height:f})})}),m[16]=t,m[17]=y,m[18]=n,m[19]=i,m[20]=f,m[21]=r,m[22]=g,m[23]=h,m[24]=c):c=m[24],m[25]!==n||m[26]!==f||m[27]!==r||m[28]!==C||m[29]!==g||m[30]!==h?(u=r&&(0,v.jsx)(uq,{diff:n,path:"hotspot",description:g("changes.image.crop-changed"),children:(0,v.jsx)("g",{children:(0,v.jsx)(pN,{hotspot:r,fill:pD(C.border,.25),stroke:C.border,strokeWidth:1,width:h,height:f})})}
125),m[25]=n,m[26]=f,m[27]=r,m[28]=C,m[29]=g,m[30]=h,m[31]=u):u=m[31],m[32]!==f||m[33]!==a||m[34]!==x||m[35]!==d||m[36]!==c||m[37]!==u||m[38]!==h?(p=(0,v.jsxs)("svg",{...a,fill:"none",width:h,height:f,viewBox:x,children:[d,c,u]}),m[32]=f,m[33]=a,m[34]=x,m[35]=d,m[36]=c,m[37]=u,m[38]=h,m[39]=p):p=m[39],p}function pR(e){let t,n,i,r,a,o,l,s=(0,j.c)(14);s[0]!==e?({crop:t,width:r,height:n,...i}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=i,s[4]=r):(t=s[1],n=s[2],i=s[3],r=s[4]);let d=t.left*r,c=t.top*n,u=(1-t.right-t.left)*r,p=(1-t.bottom-t.top)*n;s[5]!==d||s[6]!==c||s[7]!==u||s[8]!==p?(a={x:d,y:c,width:u,height:p},s[5]=d,s[6]=c,s[7]=u,s[8]=p,s[9]=a):a=s[9];let m=a;return s[10]===Symbol.for("react.memo_cache_sentinel")?(o={vectorEffect:"non-scaling-stroke"},s[10]=o):o=s[10],s[11]!==m||s[12]!==i?(l=(0,v.jsx)("rect",{...i,...m,style:o}),s[11]=m,s[12]=i,s[13]=l):l=s[13],l}function pN(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(15);d[0]!==e?({hotspot:n,offset:r,width:a,height:t,...i}=e,d[0]=e,d[1]=t,d[2]=n,d[3]=i,d[4]=r,d[5]=a):(t=d[1],n=d[2],i=d[3],r=d[4],a=d[5]);let c=void 0===r?0:r,u=n.x*a,p=n.y*t,m=n.width/2*a+c,h=n.height/2*t+c;d[6]!==u||d[7]!==p||d[8]!==m||d[9]!==h?(o={cx:u,cy:p,rx:m,ry:h},d[6]=u,d[7]=p,d[8]=m,d[9]=h,d[10]=o):o=d[10];let f=o;return d[11]===Symbol.for("react.memo_cache_sentinel")?(l={vectorEffect:"non-scaling-stroke"},d[11]=l):l=d[11],d[12]!==f||d[13]!==i?(s=(0,v.jsx)("ellipse",{...i,...f,style:l}),d[12]=f,d[13]=i,d[14]=s):s=d[14],s}let pO=["originalFilename"],pV=()=>{let e,t,n=(0,j.c)(4),{t:i}=as();return n[0]!==i?(e=i("changes.image.no-image-placeholder"),n[0]=i,n[1]=e):e=n[1],n[2]!==e?(t=(0,v.jsx)(I.Zp,{flex:1,tone:"transparent",padding:4,radius:2,height:"stretch",children:(0,v.jsx)(I.so,{align:"center",justify:"center",height:"fill",children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:e})})}),n[2]=e,n[3]=t):t=n[3],t},pM=eI.I4.div.withConfig({displayName:"ImageWrapper",componentId:"sc-ulc8od-0"})`height:100%;max-height:190px;position:relative;background-color:${ez.OZ.gray[100].hex};background-image:linear-gradient(45deg,${ez.OZ.gray[50].hex} 25%,transparent 25%),linear-gradient(-45deg,${ez.OZ.gray[50].hex} 25%,transparent 25%),linear-gradient(45deg,transparent 75%,${ez.OZ.gray[50].hex} 75%),linear-gradient(-45deg,transparent 75%,${ez.OZ.gray[50].hex} 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;&::after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px var(--card-border-color);pointer-events:none;}&[data-changed]{opacity:0.45;}`,pL=eI.I4.img.withConfig({displayName:"Image",componentId:"sc-ulc8od-1"})`display:block;flex:1;min-height:0;object-fit:contain;width:100%;height:100%;&[data-action='removed']{opacity:0.45;}`,pF=eI.I4.div.withConfig({displayName:"HotspotDiff",componentId:"sc-ulc8od-2"})`svg{display:block;position:absolute;top:0;left:0;width:100%;height:100%;}`;function pB(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z,P,R,N,O,V,M,L,F,B=(0,j.c)(95),{id:Y,action:H,diff:U,hotspot:Z,crop:q,is:W}=e,{t:J}=as(),K=el0(ob),[G,X]=(0,_.useState)(),{value:Q}=(L=(0,j.c)(4),F=cc(),L[0]!==Y||L[1]!==F||L[2]!==pO?(M=Y?F.observePaths({_type:"reference",_ref:Y},pO):(0,eP.of)(void 0),L[0]=Y,L[1]=F,L[2]=pO,L[3]=M):M=L[3],an(M));B[0]!==Y?(t=(0,tQ.vX)(Y),B[0]=Y,B[1]=t):t=B[1];let ee=t;B[2]!==K?(n=(0,t1.OX)(K),B[2]=K,B[3]=n):n=B[3];let et=n,en=null===Q,ei=Q&&Q.originalFilename;if(B[4]!==H||B[5]!==en||B[6]!==q||B[7]!==U||B[8]!==ee.height||B[9]!==ee.width||B[10]!==Y||B[11]!==et||B[12]!==G||B[13]!==W||B[14]!==J||B[15]!==ei){let e=et.image(Y).height(190).dpr(Math.min(3,Math.max(1,Math.ceil(window.devicePixelRatio||1)))).fit("max");if(s=U.fromValue?.asset?._ref!==U.toValue?.asset?._ref,H&&"changed"!==H){let e,t="added"===H?"changes.added-label":"changes.removed-label";B[39]!==J||B[40]!==t?(e=J(t),B[39]=J,B[40]=t,B[41]=e):e=B[41],d=e}let t="changed"===H?void 0:H;l=I.so,f="column",g="fill",y=1,o=I.az,p=1,m=2,h=0,a=I.so,k=pM,S="column",T="from"===W&&s?"":void 0,E=G?"":void 0,c=!en&&!G&&(0,v.jsx)(pL,{src:e.toString()||"",alt:ei,"data-action":t,onError:X,width:ee.width,height:ee.height}),B[42]!==en||B[43]!==G||B[44]!==J?(u=(en||G)&&(0,v.jsx)(I.az,{paddingY:5,children:(0,v.jsx)(I.EY,{size:1,muted:!0,align:"center",children:J(en?"changes.image.deleted":"changes.image.error-loading-image")})}),B[42]=en,B[43]=G,B[44]=J,B[45]=u):u=B[45],r=pF,i=pP,B[46]!==q?(b=q&&!(0,tQ.YD)(q)?q:void 0,B[46]=q,B[47]=b):b=B[47],w=U,x=pz,C=e.toString()||"",B[4]=H,B[5]=en,B[6]=q,B[7]=U,B[8]=ee.height,B[9]=ee.width,B[10]=Y,B[11]=et,B[12]=G,B[13]=W,B[14]=J,B[15]=ei,B[16]=i,B[17]=r,B[18]=a,B[19]=o,B[20]=l,B[21]=s,B[22]=d,B[23]=c,B[24]=u,B[25]=p,B[26]=m,B[27]=h,B[28]=f,B[29]=g,B[30]=y,B[31]=C,B[32]=x,B[33]=b,B[34]=w,B[35]=k,B[36]=S,B[37]=T,B[38]=E}else i=B[16],r=B[17],a=B[18],o=B[19],l=B[20],s=B[21],d=B[22],c=B[23],u=B[24],p=B[25],m=B[26],h=B[27],f=B[28],g=B[29],y=B[30],C=B[31],x=B[32],b=B[33],w=B[34],k=B[35],S=B[36],T=B[37],E=B[38];let er=`${C}-${W}`;B[48]!==er||B[49]!==x?($=x(er),B[48]=er,B[49]=x,B[50]=$):$=B[50];let ea=Z&&!(0,tQ.nX)(Z)?Z:void 0;B[51]!==i||B[52]!==ee.height||B[53]!==ee.width||B[54]!==$||B[55]!==ea||B[56]!==b||B[57]!==w?(A=(0,v.jsx)(i,{crop:b,diff:w,hash:$,hotspot:ea,width:ee.width,height:ee.height}),B[51]=i,B[52]=ee.height,B[53]=ee.width,B[54]=$,B[55]=ea,B[56]=b,B[57]=w,B[58]=A):A=B[58],B[59]!==r||B[60]!==A?(D=(0,v.jsx)(r,{children:A}),B[59]=r,B[60]=A,B[61]=D):D=B[61],B[62]!==a||B[63]!==c||B[64]!==u||B[65]!==D||B[66]!==k||B[67]!==S||B[68]!==T||B[69]!==E?(z=(0,v.jsxs)(a,{as:k,direction:S,"data-changed":T,"data-error":E,children:[c,u,D]}),B[62]=a,B[63]=c,B[64]=u,B[65]=D,B[66]=k,B[67]=S,B[68]=T,B[69]=E,B[70]=z):z=B[70],B[71]!==o||B[72]!==p||B[73]!==m||B[74]!==h||B[75]!==z?(P=(0,v.jsx)(o,{flex:p,padding:m,paddingBottom:h,children:z}),B[71]=o,B[72]=p,B[73]=m,B[74]=h,B[75]=z,B[76]=P):P=B[76],B[77]!==J||B[78]!==ei?(R=ei||J("changes.image.meta-info-fallback-title"),B[77]=J,B[78]=ei,B[79]=R):R=B[79];let eo=s&&"from"===W;return B[80]!==ee.height||B[81]!==ee.width||B[82]!==d?(N=d?(0,v.jsx)("div",{children:d}
125):(0,v.jsxs)("div",{children:[ee.width," \xd7 ",ee.height]}),B[80]=ee.height,B[81]=ee.width,B[82]=d,B[83]=N):N=B[83],B[84]!==R||B[85]!==eo||B[86]!==N?(O=(0,v.jsx)(hb,{title:R,icon:eT.xfq,markRemoved:eo,children:N}),B[84]=R,B[85]=eo,B[86]=N,B[87]=O):O=B[87],B[88]!==l||B[89]!==f||B[90]!==g||B[91]!==y||B[92]!==P||B[93]!==O?(V=(0,v.jsxs)(l,{direction:f,height:g,flex:y,children:[P,O]}),B[88]=l,B[89]=f,B[90]=g,B[91]=y,B[92]=P,B[93]=O,B[94]=V):V=B[94],V}let pY=["asset","media","crop","hotspot"],pH={flex:1};function pU(e){return e.name}let pZ=eI.I4.div.withConfig({displayName:"NumberWrapper",componentId:"sc-175rija-0"})`display:inline-block;word-break:break-all;`,pq=e=>{let t,n=(0,j.c)(2),{value:i}=e;return n[0]!==i?(t=(0,v.jsx)(I.az,{as:pZ,paddingX:2,paddingY:1,children:i}),n[0]=i,n[1]=t):t=n[1],t},pW=(0,eI.I4)(I.az).withConfig({displayName:"InlineBox",componentId:"sc-1cdtto6-0"})`&:not([hidden]){display:inline;align-items:center;&[data-changed]{cursor:pointer;}}`,pJ=(0,eI.I4)(I.EY).withConfig({displayName:"InlineText",componentId:"sc-1cdtto6-1"})`&:not([hidden]){display:inline;color:inherit;}`,pK=(0,eI.I4)(I.az).withConfig({displayName:"PreviewContainer",componentId:"sc-1cdtto6-2"})`&:not([hidden]){display:inline-flex;align-items:center;${pW} [data-ui="Text"]{opacity:0.5;}}`,pG=(0,eI.I4)(I.az).withConfig({displayName:"PopoverContainer",componentId:"sc-1cdtto6-3"})`min-width:160px;max-height:40vh;overflow-y:auto;`,pX=eI.I4.div.withConfig({displayName:"AnnotationWrapper",componentId:"sc-1vzccrq-0"})`text-decoration:none;display:inline;position:relative;border:0;padding:0;border-bottom:2px dotted currentColor;box-shadow:inset 0 0 0 1px var(--card-border-color);white-space:nowrap;align-items:center;background-color:color(var(--card-fg-color) a(10%));&[data-changed]{cursor:pointer;}&[data-removed]{text-decoration:line-through;}&:hover ${pK}{opacity:1;}`;function pQ(e){let t,n,i,r,a,o,l,s=(0,j.c)(21);s[0]!==e?({children:t,diff:n,object:i,schemaType:o,path:r,...a}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=i,s[4]=r,s[5]=a,s[6]=o):(t=s[1],n=s[2],i=s[3],r=s[4],a=s[5],o=s[6]);let{t:d}=as();if(!o){let e,t;return s[7]!==d?(e=d("changes.portable-text.unknown-annotation-schema-type"),s[7]=d,s[8]=e):e=s[8],s[9]!==a||s[10]!==e?(t=(0,v.jsx)(pX,{...a,children:e}),s[9]=a,s[10]=e,s[11]=t):t=s[11],t}if(n&&"unchanged"!==n.action){let e;return s[12]!==t||s[13]!==n||s[14]!==i||s[15]!==r||s[16]!==a||s[17]!==o?(e=(0,v.jsx)(p1,{...a,diff:n,object:i,schemaType:o,path:r,children:t}),s[12]=t,s[13]=n,s[14]=i,s[15]=r,s[16]=a,s[17]=o,s[18]=e):e=s[18],e}return s[19]!==t?(l=(0,v.jsx)(pX,{children:t}),s[19]=t,s[20]=l):l=s[20],l}function p1(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,k,T,E,$,A,D,z,P,R,N,O,V,M,L,F,B=(0,j.c)(92);B[0]!==e?({diff:n,children:t,object:i,schemaType:o,path:r,...a}=e,B[0]=e,B[1]=t,B[2]=n,B[3]=i,B[4]=r,B[5]=a,B[6]=o):(t=B[1],n=B[2],i=B[3],r=B[4],a=B[5],o=B[6]);let{onSetFocus:Y}=(0,_.useContext)(S.HJ),{path:H}=(0,_.useContext)(S.DR),U=(0,_.useRef)(null),{t:Z}=as();B[7]===Symbol.for("react.memo_cache_sentinel")?(l=[],B[7]=l):l=B[7];let q=oC(n,l);B[8]!==q?(s=q?{background:q.background,color:q.text}:{},B[8]=q,B[9]=s):s=B[9];let W=s,J="removed"===n.action,[K,G]=(0,_.useState)(!1);B[10]!==i?(d=i&&pf(i),B[10]=i,B[11]=d):d=B[11];let X=d;if(B[12]!==r[0]?(c=[r[0]],B[12]=r[0],B[13]=c):c=B[13],B[14]!==i._key||B[15]!==c){let e;B[17]!==i._key?(e=["markDefs",{_key:i._key}],B[17]=i._key,B[18]=e):e=B[18],u=c.concat(e),B[14]=i._key,B[15]=c,B[16]=u}else u=B[16];let Q=u;if(B[19]!==H||B[20]!==i._key){let e;B[22]!==i._key?(e=e=>(0,eD.tA)(e)&&e._key===i._key,B[22]=i._key,B[23]=e):e=B[23],p=H.slice(0,H.findIndex(e)),B[19]=H,B[20]=i._key,B[21]=p}else p=B[21];let ee=p;B[24]!==r||B[25]!==ee?(m=ee.concat(r),B[24]=r,B[25]=ee,B[26]=m):m=B[26];let et=m;B[27]!==Q||B[28]!==ee?(h=ee.concat(Q),B[27]=Q,B[28]=ee,B[29]=h):h=B[29];let en=h;B[30]!==en?(f=(0,w.dI)(en),B[30]=en,B[31]=f):f=B[31];let ei=`field-${f}`,er=h6();if(B[32]!==ei||B[33]!==er){let e;B[35]!==ei?(e=e=>{let[t]=e;return t.startsWith(ei)},B[35]=ei,B[36]=e):e=B[36],g=er.filter(e),B[32]=ei,B[33]=er,B[34]=g}else g=B[34];let ea=g.length>0;
125B[37]!==ea||B[38]!==en||B[39]!==Y||B[40]!==K?(y=()=>{!K&&ea&&(G(!0),Y(en))},C=[ea,en,Y,K],B[37]=ea,B[38]=en,B[39]=Y,B[40]=K,B[41]=y,B[42]=C):(y=B[41],C=B[42]),(0,_.useEffect)(y,C),B[43]!==et||B[44]!==J||B[45]!==en||B[46]!==Y?(x=e=>{e.stopPropagation(),G(!0),J||(e.preventDefault(),Y(et),setTimeout(()=>Y(en),10))},B[43]=et,B[44]=J,B[45]=en,B[46]=Y,B[47]=x):x=B[47];let eo=x;B[48]!==ea?(b=!ea&&(()=>G(!1)),B[48]=ea,B[49]=b):b=B[49],B[50]===Symbol.for("react.memo_cache_sentinel")?(k=()=>[U.current],B[50]=k):k=B[50],(0,I.PR)(b,k);let el="unchanged"!==n.action&&n.annotation||null;B[51]!==el?(T=el?[el]:[],B[51]=el,B[52]=T):T=B[52];let es=T;B[53]!==en?(E={path:en},B[53]=en,B[54]=E):E=B[54];let ed=E;B[55]!==X||B[56]!==o||B[57]!==Z?($=X&&(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:Z("changes.portable-text.empty-object-annotation",{annotationType:o.title||o.name})}),B[55]=X,B[56]=o,B[57]=Z,B[58]=$):$=B[58],B[59]!==n||B[60]!==X||B[61]!==o?(A=!X&&(0,v.jsx)(hu,{diff:n,schemaType:o}),B[59]=n,B[60]=X,B[61]=o,B[62]=A):A=B[62],B[63]!==$||B[64]!==A?(D=(0,v.jsx)(pG,{padding:3,children:(0,v.jsxs)("div",{children:[$,A]})}),B[63]=$,B[64]=A,B[65]=D):D=B[65],B[66]!==D||B[67]!==ed?(z=(0,v.jsx)(S.DR.Provider,{value:ed,children:D}),B[66]=D,B[67]=ed,B[68]=z):z=B[68];let ec=z,eu="removed"===n.action?"":void 0;return B[69]!==n.action||B[70]!==Z?(P=Z("changes.portable-text.annotation",{context:n.action}),B[69]=n.action,B[70]=Z,B[71]=P):P=B[71],B[72]===Symbol.for("react.memo_cache_sentinel")?(R={display:"inline-flex"},B[72]=R):R=B[72],B[73]!==t?(N=(0,v.jsx)("span",{children:t}),B[73]=t,B[74]=N):N=B[74],B[75]===Symbol.for("react.memo_cache_sentinel")?(O=(0,v.jsx)(I.so,{align:"center",paddingX:1,children:(0,v.jsx)(pJ,{size:0,children:(0,v.jsx)(eT.D3D,{})})}),B[75]=O):O=B[75],B[76]!==N?(V=(0,v.jsxs)(pW,{style:R,children:[N,O]}),B[76]=N,B[77]=V):V=B[77],B[78]!==es||B[79]!==P||B[80]!==V?(M=(0,v.jsx)(pK,{paddingLeft:1,children:(0,v.jsx)(uq,{annotations:es,description:P,children:V})}),B[78]=es,B[79]=P,B[80]=V,B[81]=M):M=B[81],B[82]!==K||B[83]!==ec||B[84]!==M?(L=(0,v.jsx)(tL.AM,{content:ec,open:K,ref:U,portal:!0,children:M}),B[82]=K,B[83]=ec,B[84]=M,B[85]=L):L=B[85],B[86]!==eo||B[87]!==a||B[88]!==W||B[89]!==eu||B[90]!==L?(F=(0,v.jsx)(pX,{...a,onClick:eo,style:W,"data-changed":"","data-removed":eu,children:L}),B[86]=eo,B[87]=a,B[88]=W,B[89]=eu,B[90]=L,B[91]=F):F=B[91],F}let p2=eI.I4.blockquote.withConfig({displayName:"Quote",componentId:"sc-1qg8mpb-0"})`margin:0;`;function p5(e){let t,n=(0,j.c)(2),{children:i}=e;return n[0]!==i?(t=(0,v.jsx)("div",{children:(0,v.jsx)(p2,{children:i})}),n[0]=i,n[1]=t):t=n[1],t}let p0={h1:2,h2:1,h3:0,h4:0,h5:0,h6:0},p7=(0,eI.I4)(I.DZ).withConfig({displayName:"StyledHeading",componentId:"sc-wjg6k2-0"})`&:not([hidden]){display:inline;text-transform:none;margin:0;&::before,&::after{content:unset;}}`;function p3(e){let t,n=(0,j.c)(3),{style:i,children:r}=e,a=p0[i];return n[0]!==r||n[1]!==a?(t=(0,v.jsx)(p7,{size:a,children:r}),n[0]=r,n[1]=a,n[2]=t):t=n[2],t}let p8=eI.I4.div.withConfig({displayName:"StyledParagraph",componentId:"sc-le102a-0"})`text-transform:none;white-space:wrap;overflow-wrap:break-word;margin:0;`;function p4(e){let t,n=(0,j.c)(2),{children:i}=e;return n[0]!==i?(t=(0,v.jsx)(p8,{children:i}),n[0]=i,n[1]=t):t=n[1],t}let p6=[];function p9(e){let t,n,i=(0,j.c)(41),{diff:r,block:a,children:o}=e,l=oC(r,p6),{path:s}=(0,_.useContext)(S.DR),{onSetFocus:d}=(0,_.useContext)(S.HJ),{t:c}=as(),u="removed"===r.action,p=o,m;i[0]!==s||i[1]!==u||i[2]!==d?(m=e=>{e.stopPropagation(),u||d(s)},i[0]=s,i[1]=u,i[2]=d,i[3]=m):m=i[3];let h=m;if("blockquote"===a.style){let e;i[4]!==p?(e=(0,v.jsx)(p5,{children:p}),i[4]=p,i[5]=e):e=i[5],p=e}else if(a.style&&(0,eD.L4)(a)&&a.style&&["h1","h2","h3","h4","h5","h6"].includes(a.style)){let e;i[6]!==a.style||i[7]!==p?(e=(0,v.jsx)(p3,{style:a.style,children:p}),i[6]=a.style,i[7]=p,i[8]=e):e=i[8],p=e}else{let e;i[9]!==p?(e=(0,v.jsx)(p4,{children:p}),i[9]=p,i[10]=e):e=i[10],p=e}if("changed"===r.origin.action&&r.origin.fields.style&&"changed"===r.origin.fields.style.action&&r.origin.fields.style.annotation){let e,n,o,s,d,u,m,h,f;t=r?.origin?.fromValue?.style,i[11]!==l?(e=l?{background:l.background,color:l.text}:{},i[11]=l,i[12]=e):e=i[12];let g=e;i[13]===Symbol.for("react.memo_cache_sentinel")?(n={borderStyle:"dotted"},i[13]=n):n=i[13];let y=r.action,C=`changed_from_style_${t||"undefined"}`,x=r.origin.fields.style?.annotation;i[14]!==x?(o=[x],i[14]=x,i[15]=o):o=i[15];let b=r.origin.fields.style;i[16]!==a.style||i[17]!==t||i[18]!==c?(s=c("changes.portable-text.block-style-changed",{fromStyle:t,toStyle:a.style}),i[16]=a.style,i[17]=t,i[18]=c,i[19]=s):s=i[19],i[20]!==s?(d=(0,v.jsx)(I.EY,{size:0,children:s}),i[20]=s,i[21]=d):d=i[21],i[22]!==r.origin.fields.style||i[23]!==o||i[24]!==d?(u=(0,v.jsx)(uq,{annotations:o,diff:b,children:d}),i[22]=r.origin.fields.style,i[23]=o,i[24]=d,i[25]=u):u=i[25],i[26]!==p||i[27]!==g?(m=(0,v.jsx)(I.az,{style:g,children:p}),i[26]=p,i[27]=g,i[28]=m):m=i[28],i[29]!==u||i[30]!==m?(h=(0,v.jsxs)(I.BJ,{space:2,children:[u,m]}),i[29]=u,i[30]=m,i[31]=h):h=i[31],i[32]!==r.action||i[33]!==h||i[34]!==C?(f=(0,v.jsx)(I.Zp,{padding:3,border:!0,radius:2,style:n,"diff-block-action":y,"data-block-note":C,children:h}),i[32]=r.action,i[33]=h,i[34]=C,i[35]=f):f=i[35],p=f}let f=`changed_from_style_${t||"undefined"}`;return i[36]!==r.action||i[37]!==h||i[38]!==p||i[39]!==f?(n=(0,v.jsx)("div",{onClick:h,"data-diff-block-action":r.action,"data-block-note":f,children:p}),i[36]=r.action,i[37]=h,i[38]=p,i[39]=f,i[40]=n):n=i[40],n}let me=eI.I4.span.withConfig({displayName:"DecoratorWrapper",componentId:"sc-1h3s5tg-0"})`display:inline;${({theme:e,decoration:t})=>{switch(t){case"strong":return"font-weight: bold;";case"em":return"font-style: italic;";case"underline":return"text-decoration: underline;";case"overline":return"text-decoration: overline;";case"strike-through":return"text-decoration: line-through;";case"code":return` 126 font-family: ${e.sanity.fonts.code.family}; 127 background: ${e.sanity.color.muted.default.enabled.bg}; 128 `;default:return""}}}`;function mt(e){let t,n=(0,j.c)(3),{mark:i,children:r}=e;return n[0]!==r||n[1]!==i?(t=(0,v.jsx)(me,{decoration:i,children:r}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t}let mn=(0,eI.I4)(I.Zp).withConfig({displayName:"InlineObjectWrapper",componentId:"sc-kt0ngk-0"})`&:not([hidden]){display:inline;cursor:pointer;white-space:nowrap;align-items:center;&[data-removed]{text-decoration:line-through;}${pW}{display:inline-flex;}}`;function mi(e){let t,n,i,r,a,o=(0,j.c)(19);o[0]!==e?({diff:t,object:n,schemaType:r,...i}=e,o[0]=e,o[1]=t,o[2]=n,o[3]=i,o[4]=r):(t=o[1],n=o[2],i=o[3],r=o[4]);let{t:l}=as();if(!r){let e,t;return o[5]!==n._type||o[6]!==l?(e=l("changes.portable-text.unknown-inline-object-schema-type",{schemaType:n._type}),o[5]=n._type,o[6]=l,o[7]=e):e=o[7],o[8]!==i||o[9]!==e?(t=(0,v.jsx)(mn,{...i,border:!0,radius:1,children:e}),o[8]=i,o[9]=e,o[10]=t):t=o[10],t}if(t){let e;return o[11]!==t||o[12]!==n||o[13]!==i||o[14]!==r?(e=(0,v.jsx)(mr,{...i,diff:t,object:n,schemaType:r}),o[11]=t,o[12]=n,o[13]=i,o[14]=r,o[15]=e):e=o[15],e}return o[16]!==n||o[17]!==r?(a=(0,v.jsx)(mn,{children:(0,v.jsx)(Pz,{schemaType:r,value:n,layout:"inline"})}),o[16]=n,o[17]=r,o[18]=a):a=o[18],a}function mr(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,k,T,E,$,A,D,z,P=(0,j.c)(70);P[0]!==e?({diff:t,object:n,path:i,schemaType:a,...r}=e,P[0]=e,P[1]=t,P[2]=n,P[3]=i,P[4]=r,P[5]=a):(t=P[1],n=P[2],i=P[3],r=P[4],a=P[5]);let{path:R}=(0,_.useContext)(S.DR),{onSetFocus:N}=(0,_.useContext)(S.HJ),{t:O}=as();P[6]===Symbol.for("react.memo_cache_sentinel")?(o=[],P[6]=o):o=P[6];let V=oC(t,o);P[7]!==V?(l=V?{background:V.background,color:V.text}:{},P[7]=V,P[8]=l):l=P[8];let M=l,[L,F]=(0,_.useState)(!1);P[9]!==n?(s=n&&pf(n),P[9]=n,P[10]=s):s=P[10];let B=s,Y="removed"===t.action;if(P[11]!==R||P[12]!==n||P[13]!==i){let e;P[16]!==n?(e=e=>(0,eD.tA)(e)&&e._key===n._key,P[16]=n,P[17]=e):e=P[17],d=R.slice(0,R.findIndex(e)).concat(i),c=(0,w.dI)(d),P[11]=R,P[12]=n,P[13]=i,P[14]=d,P[15]=c}else d=P[14],c=P[15];let H=`field-${c}`,U=h6();if(P[18]!==H||P[19]!==U){let e;P[21]!==H?(e=e=>{let[t]=e;return t.startsWith(H)},P[21]=H,P[22]=e):e=P[22],u=U.filter(e),P[18]=H,P[19]=U,P[20]=u}else u=P[20];let Z=u.length>0;
128P[23]!==R||P[24]!==i?(p=R.slice(0,-1).concat(i).concat([w.nX]),P[23]=R,P[24]=i,P[25]=p):p=P[25];let q=p;P[26]!==q||P[27]!==Z||P[28]!==N?(m=()=>{Z&&(F(!0),N(q))},h=[q,Z,N],P[26]=q,P[27]=Z,P[28]=N,P[29]=m,P[30]=h):(m=P[29],h=P[30]),(0,_.useEffect)(m,h),P[31]!==q||P[32]!==Y||P[33]!==N?(f=e=>{(e.stopPropagation(),F(!0),Y)?e.preventDefault():N(q)},P[31]=q,P[32]=Y,P[33]=N,P[34]=f):f=P[34];let W=f;P[35]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{F(!1)},P[35]=g):g=P[35];let J=g;P[36]!==d?(y={path:d},P[36]=d,P[37]=y):y=P[37];let K=y;P[38]!==t||P[39]!==B||P[40]!==a?(C=(0,v.jsx)(ma,{diff:t,emptyObject:B,onClose:J,schemaType:a}),P[38]=t,P[39]=B,P[40]=a,P[41]=C):C=P[41],P[42]!==C||P[43]!==K?(x=(0,v.jsx)(S.DR.Provider,{value:K,children:C}),P[42]=C,P[43]=K,P[44]=x):x=P[44];let G=x,X="unchanged"!==t.action&&t.annotation||null;P[45]!==X?(b=X?[X]:[],P[45]=X,P[46]=b):b=P[46];let Q=b,ee="removed"===t.action?"":void 0;return P[47]!==t.action||P[48]!==O?(k=O("changes.portable-text.inline-object",{context:t.action}),P[47]=t.action,P[48]=O,P[49]=k):k=P[49],P[50]!==n||P[51]!==a?(T=(0,v.jsx)(Pz,{schemaType:a,value:n,layout:"inline"}),P[50]=n,P[51]=a,P[52]=T):T=P[52],P[53]===Symbol.for("react.memo_cache_sentinel")?(E=(0,v.jsx)(I.so,{align:"center",paddingX:1,children:(0,v.jsx)(pJ,{size:0,children:(0,v.jsx)(eT.D3D,{})})}),P[53]=E):E=P[53],P[54]!==T?($=(0,v.jsxs)(pW,{children:[T,E]}),P[54]=T,P[55]=$):$=P[55],P[56]!==Q||P[57]!==k||P[58]!==$?(A=(0,v.jsx)(pK,{children:(0,v.jsx)(uq,{annotations:Q,description:k,children:$})}),P[56]=Q,P[57]=k,P[58]=$,P[59]=A):A=P[59],P[60]!==L||P[61]!==G||P[62]!==A?(D=(0,v.jsx)(tL.AM,{content:G,open:L,portal:!0,children:A}),P[60]=L,P[61]=G,P[62]=A,P[63]=D):D=P[63],P[64]!==W||P[65]!==r||P[66]!==M||P[67]!==ee||P[68]!==D?(z=(0,v.jsx)(mn,{...r,onClick:W,style:M,"data-removed":ee,border:!0,radius:2,children:D}),P[64]=W,P[65]=r,P[66]=M,P[67]=ee,P[68]=D,P[69]=z):z=P[69],z}function ma(e){let t,n,i,r,a=(0,j.c)(12),{diff:o,emptyObject:l,onClose:s,schemaType:d}=e,{t:c}=as(),u=(0,_.useRef)(null);return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>[u.current],a[0]=t):t=a[0],(0,I.PR)(s,t),a[1]!==l||a[2]!==d||a[3]!==c?(n=l&&(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:c("changes.portable-text.empty-inline-object",{inlineObjectType:d.title||d.name})}),a[1]=l,a[2]=d,a[3]=c,a[4]=n):n=a[4],a[5]!==o||a[6]!==l||a[7]!==d?(i=!l&&(0,v.jsx)(hu,{diff:o,schemaType:d}),a[5]=o,a[6]=l,a[7]=d,a[8]=i):i=a[8],a[9]!==n||a[10]!==i?(r=(0,v.jsxs)(pG,{ref:u,padding:3,children:[n,i]}),a[9]=n,a[10]=i,a[11]=r):r=a[11],r}function mo(e){let t,n,i,r,a,o,l,s=(0,j.c)(16);s[0]!==e?({diff:i,childDiff:t,children:n,path:r,segment:o,...a}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=i,s[4]=r,s[5]=a,s[6]=o):(t=s[1],n=s[2],i=s[3],r=s[4],a=s[5],o=s[6]);let d=i||t;if(d&&"unchanged"!==d.action&&"unchanged"!==o.action){let e;return s[7]!==t||s[8]!==n||s[9]!==i||s[10]!==r||s[11]!==a||s[12]!==o?(e=(0,v.jsx)(ml,{...a,childDiff:t,diff:i,segment:o,path:r,children:n}),s[7]=t,s[8]=n,s[9]=i,s[10]=r,s[11]=a,s[12]=o,s[13]=e):e=s[13],e}return s[14]!==n?(l=(0,v.jsx)(pW,{children:n}),s[14]=n,s[15]=l):l=s[15],l}function ml(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(33);h[0]!==e?({diff:i,childDiff:t,children:n,path:r,segment:o,...a}=e,h[0]=e,h[1]=t,h[2]=n,h[3]=i,h[4]=r,h[5]=a,h[6]=o):(t=h[1],n=h[2],i=h[3],r=h[4],a=h[5],o=h[6]);let{onSetFocus:f}=(0,_.useContext)(S.HJ),{path:g}=(0,_.useContext)(S.DR);h[7]!==r?(l=r.slice(-2,1),h[7]=r,h[8]=l):l=h[8];let y=l[0],{t:C}=as(),x=i&&"removed"===i.action;if(h[9]!==g||h[10]!==r||h[11]!==y){let e;h[13]!==y?(e=e=>(0,eD.tA)(e)&&(0,eD.tA)(y)&&e._key===y._key,h[13]=y,h[14]=e):e=h[14],s=g.slice(0,g.findIndex(e)).concat(r),h[9]=g,h[10]=r,h[11]=y,h[12]=s}else s=h[12];let b=s;h[15]!==b||h[16]!==x||h[17]!==f?(d=e=>{e.stopPropagation(),x||(e.preventDefault(),f(b))},h[15]=b,h[16]=x,h[17]=f,h[18]=d):d=h[18];let w=d;h[19]!==i||h[20]!==o?(c=i&&i.segments.find(e=>e.text===o.text),h[19]=i,h[20]=o,h[21]=c):c=h[21];let k=c,I=k||i||t,T=I&&"unchanged"!==I.action&&I.annotation||k&&i&&"unchanged"!==i.action&&"removed"===k.action&&i.annotation||null;h[22]!==T||h[23]!==n||h[24]!==o||h[25]!==C?(u=T&&"unchanged"!==o.action?(0,v.jsx)(uQ,{annotation:T,as:"removed"===o.action?"del":"ins",tooltip:{description:C("changes.portable-text.text",{context:o.action})},children:n}):null,h[22]=T,h[23]=n,h[24]=o,h[25]=C,h[26]=u):u=h[26];let E=u||n;return h[27]!==E?(p=(0,v.jsx)("span",{children:(0,v.jsx)(v.Fragment,{children:E})}),h[27]=E,h[28]=p):p=h[28],h[29]!==w||h[30]!==a||h[31]!==p?(m=(0,v.jsx)(pW,{...a,onClick:w,"data-changed":"",children:p}),h[29]=w,h[30]=a,h[31]=p,h[32]=m):m=h[32],m}let ms=pe.map(e=>e[0]),md=pe.map(e=>e[1]),mc=u9.map(e=>e[0]),mu=u9.map(e=>e[1]),mp=ms.concat(mc),mm=md.concat(mu),mh=ms.concat(md),mf=RegExp(`${mh.concat(mm).join("|")}`,"g");function mg(e){let t,n,i,r,a,o,l=(0,j.c)(20),{diff:s,schemaType:d}=e,c=s.origin.toValue||s.origin.fromValue,{t:u}=as();l[0]!==s.origin?(t=s.origin.toValue?pm(s.origin):[],l[0]=s.origin,l[1]=t):t=l[1];let p=t;l[2]!==c||l[3]!==s||l[4]!==p||l[5]!==d||l[6]!==u?(n=function({block:e,diff:t,inlineObjects:n,schemaType:i,t:r}){return a=>{let o=pd(i.fields,a),l=[];
128if(o){let a;l=pc(o);let s=t.fields.children,d=s.items[0].diff&&"object"===s.items[0].diff.type&&"string"===s.items[0].diff.fields.text.type&&s.items[0].diff.fields.text.segments||[],c=[],u={};if(1===e.children.length&&"span"===e.children[0]._type&&"string"==typeof e.children[0].text&&""===e.children[0].text&&"unchanged"!==t.origin.action&&("added"===t.origin.action||"removed"===t.origin.action)){let n=ps(t.origin,e.children[0])||t.origin;if(n&&"unchanged"!==n.action)return(0,v.jsx)(uQ,{annotation:n.annotation,as:"removed"===n.action?"del":"ins",tooltip:{description:r("changes.portable-text.empty-text",{context:n.action})},children:(0,v.jsx)("span",{children:"â²"})},`empty-block-${e._key}`)}let p=-1,m=-1,h=[],f=pg(t.origin);return d.forEach(s=>{m++;let d=pt.includes(s.text),g=mp.includes(s.text),y=mm.includes(s.text),C="ï"===s.text,x="removed"===s.action;if(C)x||p++;else if(g||y){if(g&&mc.includes(s.text)){let e=f[mc.indexOf(s.text)];e&&h.push({mark:e._key,symbols:[s.text,mu[mc.indexOf(s.text)]],object:e})}y&&mu.includes(s.text)&&(a=h.pop())}else if(d){let r=pt.findIndex(e=>e===s.text),a=n[r]?._key,o=n[r];if(a){let n=pd(i.fields,o),r=ps(t.origin,o);c.push((0,v.jsx)(mi,{object:o,path:[{_key:e._key},"children",{_key:o._key}],diff:r,schemaType:n},`inline-object-${o._key}`))}}else if(s.text){let n=e.children[p]||t.origin.fromValue?.children.find(e=>e.text&&e.text.match(s.text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))),i=n&&ph(t.origin,n);if(!n)throw Error("Could not find child");let d=i?.fields?.text?i?.fields?.text:void 0,f=(0,v.jsx)(mo,{diff:d,path:[{_key:e._key},"children",{_key:n._key}],childDiff:i,segment:s,children:function({diff:e,child:t,decoratorTypes:n,seg:i,segIndex:r,spanSchemaType:a,t:o}){if(i.text===` 129`)return(0,v.jsx)("br",{});let l=(0,v.jsx)("span",{children:i.text.replace(/ /g,"â")},`text-${r}`),s=t&&ph(e.origin,t),d=(0,eD.bn)(t)&&t.marks||[];return s&&(l=function({activeMarks:e,decoratorTypes:t,diff:n,children:i,seg:r,segIndex:a,spanDiff:o,spanSchemaType:l,t:s}){let d=(0,v.jsx)("span",{children:i},`text-segment-${a}`),c=n.origin.fromValue&&n.fromValue&&n.fromValue.children[0].text||"",u=o&&"unchanged"!==o.action&&o.annotation||void 0,p=o?.fields?.marks,m=p&&"unchanged"!==p.action&&p.annotation||u,h=[],f=c.split("ï").filter(e=>!!e).join(""),g=f.slice(0,Math.max(0,f.indexOf(r.text)+r.text.length)),y=g.slice(0,Math.max(0,g.indexOf(r.text))),C=[];return[...y.matchAll(mf)].forEach(e=>{let n=e[0],i=pe.concat(u9).find(e=>e.indexOf(n)>-1);if(i){let e=n===i[0],r=t[e?ms.indexOf(n):md.indexOf(n)]?.value||n;y.lastIndexOf(n)>y.lastIndexOf(i[1])&&C.push(r)}}),h=(0,H.A)(e,(0,B.A)(C)),m&&h.length>0&&h.some(e=>pu(e,l))&&(d=(0,v.jsx)(uQ,{annotation:m,as:"ins",tooltip:{description:s("changes.portable-text.changed-formatting")},children:d},`diffcard-annotation-${a}-${h.join("-")}`)),d}({activeMarks:d,decoratorTypes:n,diff:e,children:l,seg:i,segIndex:r,spanDiff:s,spanSchemaType:a,t:o})),d&&d.length>0&&d.forEach(e=>{pu(e,a)&&(l=(0,v.jsx)(mt,{mark:e,children:l},`decorator-${e}-${t._key}-${r}`))}),l}({diff:t,child:n,decoratorTypes:l,seg:s,segIndex:m,spanSchemaType:o,t:r})},`text-${n._key}-${m}`);if(h.length>0&&h.forEach(e=>{u[e.mark]=u[e.mark]||[],u[e.mark].push(f)}),a){let i=`annotation-${a.object._key}`,r=c[c.length-1];if(r&&r.key!==i){var b,j;let r=(b=t.origin,j=a.mark,b.fields.markDefs&&b.fields.markDefs.isChanged&&"array"===b.fields.markDefs.type&&b.fields.markDefs.items.find(e=>e.diff&&"object"===e.diff.type&&(e.diff.toValue&&e.diff.toValue._key&&e.diff.toValue._key===j||e.diff.fromValue&&e.diff.fromValue._key&&e.diff.fromValue._key===j))?.diff||void 0),l=a&&o.annotations&&o.annotations.find(e=>a&&a.object&&e.name===a.object._type);c.push((0,v.jsx)(pQ,{object:a.object,diff:r,path:[{_key:e._key},"children",{_key:n._key}],schemaType:l,children:(0,v.jsx)(v.Fragment,{children:u[a.mark]})},i))}a=void 0}0===h.length&&c.push(f)}}),(0,v.jsx)("div",{children:c},e._key)}throw Error("'span' schemaType not found")}}
129({block:c,diff:s,inlineObjects:p,schemaType:d,t:u}),l[2]=c,l[3]=s,l[4]=p,l[5]=d,l[6]=u,l[7]=n):n=l[7];let m=n,h=s.displayValue;if(l[8]!==s.displayValue.children?(i=s.displayValue.children||[],l[8]=s.displayValue.children,l[9]=i):i=l[9],l[10]!==m||l[11]!==i){let e;l[13]!==m?(e=e=>m(e),l[13]=m,l[14]=e):e=l[14],r=i.map(e),l[10]=m,l[11]=i,l[12]=r}else r=l[12];return l[15]!==r?(a=(0,v.jsx)(v.Fragment,{children:r}),l[15]=r,l[16]=a):a=l[16],l[17]!==s||l[18]!==a?(o=(0,v.jsx)(p9,{block:h,diff:s,children:a}),l[17]=s,l[18]=a,l[19]=o):o=l[19],o}let my=eI.I4.div.withConfig({displayName:"ReferenceWrapper",componentId:"sc-1kvf1eh-0"})`word-wrap:break-word;`,mC=e=>{let t,n=(0,j.c)(3),{value:i,schemaType:r}=e;return n[0]!==r||n[1]!==i?(t=(0,v.jsx)(I.az,{as:my,padding:2,children:(0,v.jsx)(Pz,{schemaType:r,value:i,layout:"default"})}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t},mx=eI.I4.div.withConfig({displayName:"SlugWrapper",componentId:"sc-2vp7rq-0"})`display:inline-block;word-break:break-all;white-space:pre-wrap;`,mb=e=>{let t,n=(0,j.c)(2),{value:i}=e;return n[0]!==i.current?(t=(0,v.jsx)(I.az,{as:mx,paddingX:2,paddingY:1,children:i.current}),n[0]=i.current,n[1]=t):t=n[1],t},mv=eI.I4.div.withConfig({displayName:"StringWrapper",componentId:"sc-1j5dr71-0"})`display:inline-block;word-break:break-all;white-space:pre-wrap;`,mj=e=>{let t,n=(0,j.c)(2),{value:i}=e;return n[0]!==i?(t=(0,v.jsx)(I.az,{as:mv,paddingX:2,paddingY:1,children:i}),n[0]=i,n[1]=t):t=n[1],t},mw=eI.I4.div.withConfig({displayName:"StringWrapper",componentId:"sc-1bx58du-0"})`white-space:pre-wrap;word-wrap:break-word;`,m_={block:e=>{let t,n,i,r=(0,j.c)(9),{diff:a,schemaType:o}=e;r[0]!==a||r[1]!==o?(t=function(e,t){let n="removed"===e.action?e.fromValue:e.toValue,i={...e,origin:e};if(n){let r={},a={},o={},l=pd(t.fields,{_type:"span"});l&&pc(l).forEach((e,t)=>{a[e.value]=pe[t]}),pg(i.origin).forEach((e,t)=>{r[e._key]=u9[t]}),pm(i.origin).forEach((e,t)=>{o[e._key]=pt[t]});let s=pp(i.origin,i.fromValue,a,r,o),d=pp(i.origin,i.toValue,a,r,o),c={...n,children:[{_type:"span",_key:"pseudoSpanKey",text:d,marks:[]}]},u={displayValue:n,children:[{_type:"span",_key:"pseudoSpanKey",text:s,marks:[]}]};return{origin:e,action:"changed",type:"object",displayValue:c,fromValue:u,toValue:c,isChanged:!0,fields:{children:{action:"changed",type:"array",isChanged:!0,items:[{diff:{action:"changed",type:"object",isChanged:!0,fields:{text:{type:"string",action:"changed",isChanged:!0,fromValue:s,toValue:d,segments:(function(e,t){let n=[],i=(0,n9.sw)((0,n9.iU)(e,t)),r=0,a=0;for(let[o,l]of i)switch(o){case n9.lw:n.push({type:"stringSegment",action:"unchanged",text:l}),r+=l.length,a+=l.length;break;case n9.Cm:n.push({type:"stringSegment",action:"removed",text:e.slice(r,r+l.length),annotation:null}),r+=l.length;break;case n9.Ug:n.push({type:"stringSegment",action:"added",text:t.slice(a,a+l.length),annotation:null}),a+=l.length}return(0,M.A)(n.map(e=>{let t=[];if(e.text.length>1){let n=[...e.text.matchAll(po)],i=-1;n.forEach(r=>{let a=r.index||0;a>i&&(t.push({...e,text:e.text.slice(i+1,a)}),t.push({...e,text:r[0]})),r===n[n.length-1]&&t.push({...e,text:e.text.slice(Math.max(0,a+1))}),i=a}),0===n.length&&t.push(e)}else t.push(e);return t}))})(s,d).map(e=>({...e,..."unchanged"!==i.action&&i.annotation?{annotation:i.annotation}:{}}))}},fromValue:u.children[0],toValue:c.children[0]},annotation:null,fromIndex:0,toIndex:0,hasMoved:!1}],fromValue:u.children,toValue:c.children}}}}throw Error("Can not display this diff")}(a,o),r[0]=a,r[1]=o,r[2]=t):t=r[2];let l=t;return r[3]!==l||r[4]!==o?(n=(0,v.jsx)(mg,{diff:l,schemaType:o}),r[3]=l,r[4]=o,r[5]=n):n=r[5],r[6]!==a.action||r[7]!==n?(i=(0,v.jsx)("div",{"data-diff-action":a.action,children:n}),r[6]=a.action,r[7]=n,r[8]=i):i=r[8],i},boolean:{component:e=>{let t,n,i,r,a,o,l,s=(0,j.c)(24),{diff:d,schemaType:c}=e,{fromValue:u,toValue:p}=d,{title:m,options:h}=c,f=h?.layout==="checkbox"?pv:pj;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],s[0]=t):t=s[0];let g=oC(d,t),{showFromValue:y}=pS(),C=null!=p;return s[1]!==f||s[2]!==u||s[3]!==y||s[4]!==g?(n=y&&(0,v.jsx)(f,{checked:u,color:g}),s[1]=f,s[2]=u,s[3]=y,s[4]=g,s[5]=n):n=s[5],s[6]!==f||s[7]!==y||s[8]!==C||s[9]!==p||s[10]!==g?(i=C&&(0,v.jsxs)(v.Fragment,{children:[y&&(0,v.jsx)(I.az,{marginX:2,children:(0,v.jsx)(mB,{})}),(0,v.jsx)(f,{checked:p,color:g})]}),s[6]=f,s[7]=y,s[8]=C,s[9]=p,s[10]=g,s[11]=i):i=s[11],s[12]!==n||s[13]!==i?(r=(0,v.jsxs)(I.so,{align:"center",children:[n,i]}),s[12]=n,s[13]=i,s[14]=r):r=s[14],s[15]!==d||s[16]!==r?(a=(0,v.jsx)(uq,{diff:d,children:r}),s[15]=d,s[16]=r,s[17]=a):a=s[17],s[18]!==C||s[19]!==m?(o=C&&m&&(0,v.jsx)(I.az,{marginLeft:2,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:m})}),s[18]=C,s[19]=m,s[20]=o):o=s[20],s[21]!==a||s[22]!==o?(l=(0,v.jsxs)(I.so,{align:"center",children:[a,o]}),s[21]=a,s[22]=o,s[23]=l):l=s[23],l},showHeader:!1},date:pk,datetime:pk,file:e=>{var t,n;let i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(53),{diff:x,schemaType:b}=e,{fromValue:w,toValue:_,fields:k}=x,S=w?.asset,T=_?.asset,{t:E}=as(),$=pI(S?._ref),A=pI(T?._ref);C[0]===Symbol.for("react.memo_cache_sentinel")?(i={unitDisplay:"short",maximumFractionDigits:2},C[0]=i):i=C[0];let D=Hg(i);C[1]===Symbol.for("react.memo_cache_sentinel")?(r=["_type","media"],C[1]=r):r=C[1];let z=r;C[2]!==k?(a=Object.entries(k).filter(e=>{let[t,n]=e;return n.isChanged&&!z.includes(t)}).map(p$),C[2]=k,C[3]=a):a=C[3];let P=a,R=P.includes("asset");if(C[4]!==P||C[5]!==b.fields){let e;
129C[7]!==P?(e=e=>"asset"!==e.name&&P.includes(e.name),C[7]=P,C[8]=e):e=C[8],o=b.fields.filter(e).map(pA),C[4]=P,C[5]=b.fields,C[6]=o}else o=C[6];let N=o,O=(t=$?.size,n=A?.size,t&&n?Math.round((n-t)/t*100):0);C[9]!==D||C[10]!==$?(l=$?.size&&pT($.size,D),C[9]=D,C[10]=$,C[11]=l):l=C[11];let V=l;C[12]!==D||C[13]!==A?(s=A?.size&&pT(A.size,D),C[12]=D,C[13]=A,C[14]=s):s=C[14];let M=s;C[15]===Symbol.for("react.memo_cache_sentinel")?(d={display:"block",flex:1},C[15]=d):d=C[15];let L=d;C[16]!==x||C[17]!==$||C[18]!==V||C[19]!==E?(c=$&&(0,v.jsx)(uQ,{as:"del",diff:x,path:"asset._ref",style:L,children:(0,v.jsx)(hb,{title:$.originalFilename||E("changes.file.meta-info-fallback-title"),icon:eT.pyG,children:(0,v.jsx)(I.EY,{size:0,style:{color:"inherit"},children:V})})}),C[16]=x,C[17]=$,C[18]=V,C[19]=E,C[20]=c):c=C[20];let F=c;C[21]!==x||C[22]!==A||C[23]!==M||C[24]!==O||C[25]!==E?(u=A&&(0,v.jsx)(uQ,{as:"ins",diff:x,path:"asset._ref",style:L,children:(0,v.jsx)(hb,{title:A.originalFilename||E("changes.file.meta-info-fallback-title"),icon:eT.pyG,children:(0,v.jsxs)(I.so,{align:"center",children:[(0,v.jsx)(I.EY,{size:0,style:{color:"inherit"},children:M}),0!==O&&(0,v.jsx)(I.Zp,{radius:2,padding:1,as:pE,marginLeft:2,children:(0,v.jsxs)(I.EY,{size:0,"data-number":O>0?"positive":"negative",children:[O>0?"+":"-",O,"%"]})})]})})}),C[21]=x,C[22]=A,C[23]=M,C[24]=O,C[25]=E,C[26]=u):u=C[26];let B=u;C[27]!==x||C[28]!==F||C[29]!==E||C[30]!==B?(p=F&&!B&&(0,v.jsx)(uq,{diff:x,path:"asset._ref",description:E("changes.removed-label"),children:F}),C[27]=x,C[28]=F,C[29]=E,C[30]=B,C[31]=p):p=C[31],C[32]!==x||C[33]!==F||C[34]!==B?(m=F&&B&&(0,v.jsx)(uq,{diff:x,path:"asset._ref",children:(0,v.jsx)(m1,{from:F,layout:"grid",to:B})}),C[32]=x,C[33]=F,C[34]=B,C[35]=m):m=C[35],C[36]!==x||C[37]!==F||C[38]!==E||C[39]!==B?(h=!F&&B&&(0,v.jsx)(uq,{diff:x,path:"asset._ref",description:E("changes.added-label"),children:B}),C[36]=x,C[37]=F,C[38]=E,C[39]=B,C[40]=h):h=C[40],C[41]!==p||C[42]!==m||C[43]!==h?(f=(0,v.jsxs)(v.Fragment,{children:[p,m,h]}),C[41]=p,C[42]=m,C[43]=h,C[44]=f):f=C[44];let Y=R&&f;return C[45]!==R||C[46]!==x||C[47]!==N||C[48]!==b?(g=N.length>0&&(0,v.jsx)(I.az,{marginTop:R?4:3,children:(0,v.jsx)(hu,{diff:x,schemaType:b,fields:N})}),C[45]=R,C[46]=x,C[47]=N,C[48]=b,C[49]=g):g=C[49],C[50]!==Y||C[51]!==g?(y=(0,v.jsxs)(v.Fragment,{children:[Y,g]}),C[50]=Y,C[51]=g,C[52]=y):y=C[52],y},image:e=>{let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(55),{diff:p,schemaType:m}=e,{t:h}=as(),{showFromValue:f}=pS(),{fromValue:g,toValue:y,fields:C,isChanged:x}=p,b=g?.asset?._ref,w=y?.asset?._ref;u[0]!==p?(t=oc(p,["asset","_ref"]),u[0]=p,u[1]=t):t=u[1];let _=t;u[2]!==C?(n=Object.keys(C),u[2]=C,u[3]=n):n=u[3],u[4]!==C||u[5]!==n?(i=n.filter(e=>C[e].isChanged&&"_type"!==e),u[4]=C,u[5]=n,u[6]=i):i=u[6];let k=i;if(u[7]!==k||u[8]!==m.fields){let e;u[10]!==k?(e=e=>!pY.includes(e.name)&&k.includes(e.name),u[10]=k,u[11]=e):e=u[11],r=m.fields.filter(e).map(pU),u[7]=k,u[8]=m.fields,u[9]=r}else r=u[9];let S=r,T="changed";!b&&w?T="added":!w&&b&&(T="removed");let E=k.includes("asset"),$=k.includes("crop"),A=k.includes("hotspot"),D=$||A,z=E||D,P=D&&!E;u[12]!==T||u[13]!==_||u[14]!==$||u[15]!==A||u[16]!==p||u[17]!==b||u[18]!==g||u[19]!==P?(a=g&&b?(0,v.jsx)(uQ,{annotation:_,style:pH,children:(0,v.jsx)(pB,{is:"from",id:b,diff:p,action:T,hotspot:P&&A?g.hotspot:void 0,crop:P&&$?g.crop:void 0})}):(0,v.jsx)(pV,{}),u[12]=T,u[13]=_,u[14]=$,u[15]=A,u[16]=p,u[17]=b,u[18]=g,u[19]=P,u[20]=a):a=u[20];let R=a;u[21]!==_||u[22]!==$||u[23]!==A||u[24]!==p||u[25]!==P||u[26]!==w||u[27]!==y?(o=y&&w?(0,v.jsx)(uQ,{annotation:_,style:pH,children:(0,v.jsx)(pB,{is:"to",id:w,diff:p,hotspot:P&&A?y.hotspot:void 0,crop:P&&$?y.crop:void 0})}):(0,v.jsx)(pV,{}),u[21]=_,u[22]=$,u[23]=A,u[24]=p,u[25]=P,u[26]=w,u[27]=y,u[28]=o):o=u[28];let N=o;if(!R&&!N){let e,t;return u[29]!==h?(e=h("changes.image.no-asset-set"),u[29]=h,u[30]=e):e=u[30],u[31]!==e?(t=(0,v.jsx)(I.Zp,{padding:4,radius:2,tone:"transparent",children:(0,v.jsx)(I.EY,{muted:!0,size:1,align:"center",children:e})}),u[31]=e,u[32]=t):t=u[32],t}if(!x){let e;return u[33]!==_||u[34]!==p||u[35]!==w?(e=w?(0,v.jsx)(uQ,{annotation:_,style:pH,children:(0,v.jsx)(pB,{id:w,is:"to",diff:p})}):null,u[33]=_,u[34]=p,u[35]=w,u[36]=e):e=u[36],e}let O=f?R:void 0;u[37]!==O||u[38]!==N?(l=(0,v.jsx)(m1,{align:"center",from:O,layout:"grid",to:N}),u[37]=O,u[38]=N,u[39]=l):l=u[39];let V=l;return u[40]!==T||u[41]!==_||u[42]!==E||u[43]!==V||u[44]!==z||u[45]!==h?(s=z&&(E?(0,v.jsx)(uq,{annotations:_?[_]:[],description:function(e,t){switch(e){case"changed":return t("changes.changed-label");case"added":return t("changes.added-label");case"removed":return t("changes.removed-label");default:return"Unknown change"}}(T,h),children:V}):V),u[40]=T,u[41]=_,u[42]=E,u[43]=V,u[44]=z,u[45]=h,u[46]=s):s=u[46],u[47]!==
129p||u[48]!==S||u[49]!==m||u[50]!==z?(d=S.length>0&&(0,v.jsx)(I.az,{marginTop:z?4:3,children:(0,v.jsx)(hu,{diff:p,schemaType:m,fields:S})}),u[47]=p,u[48]=S,u[49]=m,u[50]=z,u[51]=d):d=u[51],u[52]!==d||u[53]!==s?(c=(0,v.jsxs)(v.Fragment,{children:[s,d]}),u[52]=d,u[53]=s,u[54]=c):c=u[54],c},number:e=>{let t,n=(0,j.c)(3),{diff:i,schemaType:r}=e;return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(m5,{diff:i,schemaType:r,previewComponent:pq,layout:"inline"}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t},reference:e=>{let t,n=(0,j.c)(3),{diff:i,schemaType:r}=e;return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(m5,{align:"center",diff:i,layout:"grid",path:"_ref",previewComponent:mC,schemaType:r}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t},slug:e=>{let t,n=(0,j.c)(3),{diff:i,schemaType:r}=e;return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(m5,{layout:"inline",diff:i,schemaType:r,previewComponent:mb}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t},string:e=>{let t,n=(0,j.c)(5),{diff:i,schemaType:r}=e,{options:a}=r;if(a?.list){let e;return n[0]!==i||n[1]!==r?(e=(0,v.jsx)(m5,{diff:i,previewComponent:mj,schemaType:r}),n[0]=i,n[1]=r,n[2]=e):e=n[2],e}return n[3]!==i?(t=(0,v.jsx)(mw,{children:(0,v.jsx)(hy,{diff:i})}),n[3]=i,n[4]=t):t=n[4],t}};function mk(e,t){let n=e;for(;n;){let e=n?.components?.diff||function(e,t){let n;for(let i of pb){if("function"!=typeof i){console.error("Diff component resolver is not a function: ",i);continue}if(n=i({schemaType:e,parentSchemaType:t}))return n}}(n,t)||m_[n.name];if(e)return e;n=n.type}return m_[["date","datetime"].includes(e.name)?e.name:e.jsonType]}function mS(e,t,n=[],i=[],r={}){if(!mk(e,r.parentSchema)){if("object"===e.jsonType&&"object"===t.type)return mI(e,t,n,i,r);if("array"===e.jsonType&&"array"===t.type)return function(e,t,n=[],i=[]){let r=t.items.filter(e=>e.hasMoved&&e.fromIndex!==e.toIndex||"unchanged"!==e.diff.action);if(0===r.length)return[];let a=e.of.some(pl),o=r.reduce((r,o)=>{var l;let s=(l=o.diff,"added"===l.action?{toType:u6(e,l.toValue)}:"changed"===l.action?{fromType:u6(e,l.fromValue),toType:u6(e,l.toValue)}:"removed"===l.action?{fromType:u6(e,l.fromValue)}:{toType:u6(e,l.toValue)}),d=s.toType||s.fromType;if(!d)return console.warn("Could not determine schema type for item at %s",on(n)),r;let c=os(o.diff.fromValue)||os(o.diff.toValue)||t.items.indexOf(o),u=n.concat(c),p={itemDiff:o,parentDiff:t,parentSchema:e},m=i.concat({hasMoved:o.hasMoved,toIndex:o.toIndex,fromIndex:o.fromIndex,annotation:"unchanged"===o.diff.action?o.annotation:o.diff.annotation}),h=mS(d,o.diff,u,m,p).map(e=>("field"===e.type&&oo(u,e.path)&&(e.itemDiff=o),e));return a&&h.filter(px).forEach((e,t,n)=>{e.showHeader=1===n.length,e.showIndex=o.fromIndex!==o.toIndex&&o.hasMoved}),0===h.length?r.push(...mT(d,o.diff,u,m,p)):r.push(...h),r},[]);return o.length>1?[{type:"group",key:on(n)||"root",path:n,titlePath:i,changes:mE(o,i.length),schemaType:e}]:o}(e,t,n,i)}return mT(e,t,n,i,r)}function mI(e,t,n=[],i=[],r={}){let a=[],o={...r,parentSchema:e};for(let r of e.fieldsets||e.fields.map(e=>({single:!0,field:e})))r.single?a.push(...function(e,t,n,i,r={}){let{fieldFilter:a,...o}=r,l=t.fields[e.name];if(!l||!l.isChanged||a&&!a.includes(e.name))return[];let s=n.concat([e.name]),d=i.concat([e.type.title||e.name]);return mS(e.type,l,s,d,o)}(r.field,t,n,i,o)):a.push(...function(e,t,n,i,r={}){let{fields:a,name:o,title:l,readOnly:s,hidden:d}=e,{fieldFilter:c,...u}=r,p=i.concat([l||o]),m=[];for(let e of a){let i=t.fields[e.name];if(!i||!i.isChanged||c&&!c.includes(e.name))continue;let r=n.concat([e.name]),a=p.concat([e.type.title||e.name]);m.push(...mS({readOnly:s,hidden:d,...e.type},i,r,a,u))}return m.length<2?m:[{type:"group",key:on(n)||"root",fieldsetName:o,path:n,titlePath:p,changes:mE(m,p.length),readOnly:s,hidden:d}]}(r,t,n,i,o));return a.length<2?a:[{type:"group",key:on(n)||"root",path:n,titlePath:i,changes:mE(a,i.length),schemaType:e}]}function mT(e,t,n,i,{itemDiff:r,parentDiff:a,parentSchema:o}={}){let l,{fromValue:s,toValue:d,type:c}=t;if("array"===c&&m$(s)&&m$(d))return[];"u">typeof s&&(l=pC(s,e)),!l&&"u">typeof d&&(l=pC(d,e));let u=!0,p,m=mk(e,o);return m&&"function"==typeof m?p=m:m&&(p=m.component,u=typeof m.showHeader>"u"?u:m.showHeader),[{type:"field",diff:t,path:n,error:l,itemDiff:r,parentDiff:a,titlePath:i,schemaType:e,showHeader:u,showIndex:!0,key:on(n)||"root",diffComponent:l?void 0:p,parentSchema:o}]}function mE(e,t=1){return e.map(e=>(e.titlePath=e.titlePath.slice(t),e))}function m$(e){return Array.isArray(e)&&0===e.length||null===e||typeof e>"u"}let mA=e=>"field"===e.type&&"added"===e.diff.action,mD=e=>{if("group"!==e.type)return[e];let t=[];
129return e.changes.forEach(e=>{t.push(...mD(e))}),t},mz=(e,t)=>{if(t.length>=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},mP=(e,t)=>{let n=ol(e[t]);return n?{_key:n}:Array.isArray(e)?parseInt(t,10):t},mR={diffMatchPatch:{enabled:!1,lengthThresholdAbsolute:30,lengthThresholdRelative:1.2}};function mN(e,t,n,i){if(!t)return;let r=[],a=i??new Set;if("group"===e.type){let i=mD(e),o=i.filter(mA);i.filter(e=>!mA(e)).forEach(e=>{mN(e,t,n,a)}),r.push(...mO(t,o.map(e=>e.path).reverse()))}else{var o,l,s,d;let n,i,c,u,p,m;"added"===e.diff.action?r.push(...mO(t,[e.path])):"field"===e.type&&e.itemDiff&&e.parentDiff&&"array"===e.parentDiff.type&&e.itemDiff.hasMoved?r.push(...function(e,t,n){let i,r=n.slice(0,-1),{parentValue:a,fromIndex:o,fromValue:l}=function(e,t){if(e.fromValue&&"number"==typeof t.fromIndex){let n=e.fromValue[t.fromIndex];return{parentValue:e.fromValue,fromIndex:t.fromIndex,fromValue:n}}throw Error(`Failed to find item at index ${t.fromIndex}`)}(t,e);if(0===o)i={before:on([...r,0])};else{let e=o-1;i={after:on([...r,os(a[e])||e])}}return[{unset:[on(n)]},{insert:{...i,items:[l]}}]}(e.itemDiff,e.parentDiff,e.path)):r.push(...(o=e.diff,l=t,s=e.path,d=a,i=(n=(0,i0.Jy)(o.toValue,o.fromValue,mR,s)).filter(e=>"insert"===e.op).map(({after:e,items:t})=>({insert:{after:on(e),items:t}})),c=n.filter(e=>"unset"===e.op).reduce((e,t)=>e.concat(on(t.path)),[]),u=[],p=!1,m=n.filter(e=>"set"===e.op).reduce((e,t)=>(p=!0,u.push(...function(e,t,n){let i=t.fromValue,r=t.toValue,a=[];for(let t=1;t<=e.length;t++){let o=e.slice(0,t),l=on(o);if(n.has(l))continue;let s=e[t],d=(0,eD.tA)(s)||(0,eD.wr)(s),c=oi(i,o),u=mV(c);if(d&&Array.isArray(c)&&!oi(r,e.slice(0,t+1))){let e=function(e,t){return"number"==typeof t||(0,eD.tA)(t)?"number"==typeof t?t:e.findIndex(e=>(0,eD.o8)(e)&&e._key===t._key):-1}(c,s),r=oi(i,o.concat(s)),d=on(o.concat(s));if(n.has(d)){t++;continue}n.add(d);let u=c[e-1],p=(0,eD.o8)(u)?{_key:u._key}:e-1,m=on(o.concat(e<1?0:p));a.push({setIfMissing:{[l]:[]}}),a.push({insert:{after:m,items:[mV(r)]}}),t++;continue}typeof u>"u"||(n.add(l),a.push({setIfMissing:{[l]:u}}))}return a}(t.path,l,d)),e[on(t.path)]=t.value,e),{}),[...u,...i,...c.length>0?[{unset:c}]:[],...p?[{set:m}]:[]]))}n.patch.execute(r)}function mO(e,t){let n=[];for(let r=0;r<t.length;r++){var i;n.some(e=>mz(t[r],e))||n.push((i=t[r],function e(t,n,i=[],r){if(n.length<=0)throw Error("Root has no ancestor");let a=n.slice(0,-1),o=oi(t,a),l=[a,...i.filter(e=>!mz(e,a))];return function e(t,n,i){let r=i?.some(e=>on(e)===on(n)),a=Array.isArray(t)&&t.length<=0;return r||null==t||a||"object"==typeof t&&null!==t&&Object.keys(t).length<=0||function(t,n,i){if(!rZ(t)||!Array.isArray(t))return!1;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||"_type"===r||"_key"===r)continue;let a=[...n,mP(t,r)];if(!e(t[r],a,i))return!1}return!0}(t,n,i)}(o,a,i)?e(t,a,l):n}(e.toValue,i,t)))}return[{unset:[...new Set(n.map(on))]}]}function mV(e){if(Array.isArray(e))return[];if("object"!=typeof e||null===e)return;let t={};return(0,eD.o8)(e)&&(t._key=e._key),(0,eD.Kk)(e)&&(t._type=e._type),t}let mM=eI.I4.div.withConfig({displayName:"ChangeListWrapper",componentId:"sc-kh2d4n-0"})`display:grid;grid-template-columns:minmax(0,1fr);`;class mL extends _.Component{static getDerivedStateFromError(e){return{error:e}}state={};componentDidCatch(e){console.error("Error rendering diff component: "),console.error(e)}render(){let{t:e}=this.props,{error:t}=this.state;return t?(0,v.jsx)(I.Zp,{padding:3,radius:2,tone:"critical",children:(0,v.jsxs)(I.so,{children:[(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.YZv,{})}),(0,v.jsxs)(I.az,{paddingLeft:3,children:[(0,v.jsx)(I.EY,{as:"h3",size:1,weight:"medium",children:e("changes.error-boundary.title")}),dT&&(0,v.jsx)(I.az,{marginTop:2,children:(0,v.jsx)(I.EY,{as:"p",size:1,children:e("changes.error-boundary.developer-info")})})]})]})}):this.props.children}}let mF={down:eT.ZLN,right:eT.flY};function mB(e){let t,n,i,r,a=(0,j.c)(8);a[0]!==e?({direction:n,...t}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]);let o=mF[void 0===n?"right":n];return a[3]!==o?(i=(0,v.jsx)(o,{}),a[3]=o,a[4]=i):i=a[4],a[5]!==t||a[6]!==i?(r=(0,v.jsx)(I.EY,{muted:!0,size:1,...t,children:i}),a[5]=t,a[6]=i,a[7]=r):r=a[7],r}let mY=eI.I4.pre.withConfig({displayName:"CodeWrapper",componentId:"sc-10e7hwe-0"})`overflow-x:auto;position:relative;`,mH=eI.I4.div.withConfig({displayName:"Meta",componentId:"sc-10e7hwe-1"})`position:absolute;top:0;right:0;`;function mU(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(18);p[0]!==e?({children:i,as:t,change:n,...r}=e,p[0]=e,p[1]=t,p[2]=n,p[3]=i,p[4]=r):(t=p[1],n=p[2],i=p[3],r=p[4]);let m=(0,_.useRef)(!1),[h,f]=(0,_.useState)(!1);p[5]===Symbol.for("react.memo_cache_sentinel")?(a=()=>f(mZ),p[5]=a):a=p[5];let g=a;p[6]===Symbol.for("react.memo_cache_sentinel")?(o=()=>m.current=!0,p[6]=o):o=p[6];let y=o;p[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>m.current=!1,p[7]=l):l=p[7];let C=l;return p[8]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{let e=function(e){let{metaKey:t,key:n}=e;t&&"i"===n&&m.current&&g()};return window.addEventListener("keydown",e,!1),()=>window.removeEventListener("keydown",e,!1)},d=[g],p[8]=s,p[9]=d):(s=p[8],d=p[9]),(0,_.useEffect)(s,d),p[10]!==n||p[11]!==i||p[12]!==h?(c=h?(0,v.jsx)(mW,{change:n}):i,p[10]=n,p[11]=i,p[12]=h,p[13]=c):c=p[13],p[14]!==t||p[15]!==r||p[16]!==c?(u=(0,v.jsx)(I.az,{as:t,onMouseEnter:y,onMouseLeave:C,...r,children:c}),p[14]=t,p[15]=r,p[16]=c,p[17]=u):u=p[17],u}function mZ(e){return!e}let mq=e=>{let t,n=(0,j.c)(2),{title:i}=e;return n[0]!==i?(t=(0,v.jsx)(I.az,{padding:3,display:"inline-block",as:mH,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:i})}),n[0]=i,n[1]=t):t=n[1],t};function mW(e){var t;let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(43),{change:w}=e,{t:_}=as();
129return b[0]!==_?(i=_("changes.inspector.meta-label"),b[0]=_,b[1]=i):i=b[1],b[2]!==i?(r=(0,v.jsx)(mq,{title:i}),b[2]=i,b[3]=r):r=b[3],b[4]!==w.diff.action||b[5]!==w.diff.isChanged||b[6]!==w.itemDiff?.fromIndex||b[7]!==w.itemDiff?.hasMoved||b[8]!==w.itemDiff?.toIndex||b[9]!==w.path?(t={path:on(w.path),fromIndex:w.itemDiff?.fromIndex,toIndex:w.itemDiff?.toIndex,hasMoved:w.itemDiff?.hasMoved,action:w.diff.action,isChanged:w.diff.isChanged},n=[],Object.entries(t).forEach(([e,t])=>{"u">typeof t&&null!==t&&n.push(`${e}: ${t}`)}),a=n.join(` 130`),b[4]=w.diff.action,b[5]=w.diff.isChanged,b[6]=w.itemDiff?.fromIndex,b[7]=w.itemDiff?.hasMoved,b[8]=w.itemDiff?.toIndex,b[9]=w.path,b[10]=a):a=b[10],b[11]!==a?(o=(0,v.jsx)(I.Cy,{language:"json",size:1,children:a}),b[11]=a,b[12]=o):o=b[12],b[13]!==r||b[14]!==o?(l=(0,v.jsxs)(I.Zp,{padding:3,tone:"transparent",as:mY,radius:1,children:[r,o]}),b[13]=r,b[14]=o,b[15]=l):l=b[15],b[16]!==_?(s=_("changes.inspector.from-label"),b[16]=_,b[17]=s):s=b[17],b[18]!==s?(d=(0,v.jsx)(mq,{title:s}),b[18]=s,b[19]=d):d=b[19],b[20]!==w.diff.fromValue?(c=mJ(w.diff.fromValue),b[20]=w.diff.fromValue,b[21]=c):c=b[21],b[22]!==c?(u=(0,v.jsx)(I.Cy,{language:"json",size:1,children:c}),b[22]=c,b[23]=u):u=b[23],b[24]!==d||b[25]!==u?(p=(0,v.jsxs)(I.Zp,{as:mY,tone:"critical",padding:3,radius:1,children:[d,u]}),b[24]=d,b[25]=u,b[26]=p):p=b[26],b[27]===Symbol.for("react.memo_cache_sentinel")?(m=(0,v.jsx)(I.Zp,{children:(0,v.jsx)(mB,{direction:"down",align:"center"})}),b[27]=m):m=b[27],b[28]!==_?(h=_("changes.inspector.to-label"),b[28]=_,b[29]=h):h=b[29],b[30]!==h?(f=(0,v.jsx)(mq,{title:h}),b[30]=h,b[31]=f):f=b[31],b[32]!==w.diff.toValue?(g=mJ(w.diff.toValue),b[32]=w.diff.toValue,b[33]=g):g=b[33],b[34]!==g?(y=(0,v.jsx)(I.Cy,{language:"json",size:1,children:g}),b[34]=g,b[35]=y):y=b[35],b[36]!==f||b[37]!==y?(C=(0,v.jsxs)(I.Zp,{as:mY,tone:"positive",padding:3,radius:1,children:[f,y]}),b[36]=f,b[37]=y,b[38]=C):C=b[38],b[39]!==p||b[40]!==C||b[41]!==l?(x=(0,v.jsxs)(I.BJ,{space:3,children:[l,p,m,C]}),b[39]=p,b[40]=C,b[41]=l,b[42]=x):x=b[42],x}function mJ(e){return typeof e>"u"?"undefined":JSON.stringify(e,null,2)}function mK(e){return null!==e&&"u">typeof e&&""!==e}let mG={flexShrink:0},mX={alignItems:"stretch"},mQ={top:"flex-start",center:"center",bottom:"flex-end",default:"flex-start"},m1=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(28);m[0]!==e?({align:a,layout:o,from:n,to:l,style:r,...i}=e,m[0]=e,m[1]=n,m[2]=i,m[3]=r,m[4]=a,m[5]=o,m[6]=l):(n=m[1],i=m[2],r=m[3],a=m[4],o=m[5],l=m[6]);let h=void 0===a?"top":a,f=void 0===o?"inline":o,g=(0,I.DP)(),y="inline"===f?I.so:I.xA;m[7]!==f||m[8]!==g?(s="inline"===f?{maxWidth:"100%",display:"inline-flex"}:{gridTemplateColumns:`minmax(0, 1fr) ${(0,I.D0)(g.sanity.space[5])} minmax(0, 1fr)`},m[7]=f,m[8]=g,m[9]=s):s=m[9],m[10]!==r||m[11]!==s?(d={...r,...s},m[10]=r,m[11]=s,m[12]=d):d=m[12];let C=d,x="inline"===f?mG:mX;m[13]!==h||m[14]!==x||m[15]!==n?(c=n&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.so,{align:mQ[h],style:x,children:n}),(0,v.jsx)(I.so,{align:"center",justify:"center",padding:2,children:(0,v.jsx)(mB,{})})]}),m[13]=h,m[14]=x,m[15]=n,m[16]=c):c=m[16];let b=mQ[h];return m[17]!==x||m[18]!==b||m[19]!==l?(u=(0,v.jsx)(I.so,{align:b,style:x,children:l}),m[17]=x,m[18]=b,m[19]=l,m[20]=u):u=m[20],m[21]!==y||m[22]!==C||m[23]!==t||m[24]!==i||m[25]!==c||m[26]!==u?(p=(0,v.jsxs)(y,{...i,ref:t,style:C,"data-from-to-layout":!0,children:[c,u]}
130),m[21]=y,m[22]=C,m[23]=t,m[24]=i,m[25]=c,m[26]=u,m[27]=p):p=m[27],p}),m2={flex:1,minWidth:0,display:"block",whiteSpace:"break-spaces"};function m5(e){let t,n,i,r,a=(0,j.c)(39),{align:o,cardClassName:l,diff:s,layout:d,path:c,previewComponent:u,schemaType:p}=e,{action:m}=s,h=function(e){let t,n=(0,j.c)(6),{t:i}=as(),r=mK(e.fromValue),a=mK(e.toValue);if(!r&&a){let e;return n[0]!==i?(e=i("changes.added-label"),n[0]=i,n[1]=e):e=n[1],e}if(!a&&r){let e;return n[2]!==i?(e=i("changes.removed-label"),n[2]=i,n[3]=e):e=n[3],e}return n[4]!==i?(t=i("changes.changed-label"),n[4]=i,n[5]=t):t=n[5],t}(s);if("unchanged"===m){let e,t;return a[0]!==u||a[1]!==s.toValue||a[2]!==p?(e=(0,v.jsx)(u,{schemaType:p,value:s.toValue}),a[0]=u,a[1]=s.toValue,a[2]=p,a[3]=e):e=a[3],a[4]!==l||a[5]!==e?(t=(0,v.jsx)(uQ,{className:l,style:m2,children:e}),a[4]=l,a[5]=e,a[6]=t):t=a[6],t}a[7]!==u||a[8]!==l||a[9]!==s||a[10]!==c||a[11]!==p?(t=void 0!==s.fromValue&&null!==s.fromValue&&(0,v.jsx)(uQ,{as:"del",className:l,diff:s,path:c,style:m2,children:(0,v.jsx)(u,{schemaType:p,value:s.fromValue})}),a[7]=u,a[8]=l,a[9]=s,a[10]=c,a[11]=p,a[12]=t):t=a[12];let f=t;a[13]!==u||a[14]!==l||a[15]!==s||a[16]!==c||a[17]!==p?(n=void 0!==s.toValue&&null!==s.toValue&&(0,v.jsx)(uQ,{as:"ins",className:l,diff:s,path:c,style:m2,children:(0,v.jsx)(u,{schemaType:p,value:s.toValue})}),a[13]=u,a[14]=l,a[15]=s,a[16]=c,a[17]=p,a[18]=n):n=a[18];let g=n;if(f&&!g){let e;return a[19]!==h||a[20]!==s||a[21]!==f||a[22]!==c?(e=(0,v.jsx)(uq,{description:h,diff:s,path:c,children:f}),a[19]=h,a[20]=s,a[21]=f,a[22]=c,a[23]=e):e=a[23],e}if(!f&&g){let e;return a[24]!==h||a[25]!==s||a[26]!==c||a[27]!==g?(e=(0,v.jsx)(uq,{description:h,diff:s,path:c,children:g}),a[24]=h,a[25]=s,a[26]=c,a[27]=g,a[28]=e):e=a[28],e}return a[29]!==o||a[30]!==f||a[31]!==d||a[32]!==g?(i=(0,v.jsx)(m1,{align:o,from:f,layout:d,to:g}),a[29]=o,a[30]=f,a[31]=d,a[32]=g,a[33]=i):i=a[33],a[34]!==h||a[35]!==s||a[36]!==c||a[37]!==i?(r=(0,v.jsx)(uq,{description:h,diff:s,path:c,children:i}),a[34]=h,a[35]=s,a[36]=c,a[37]=i,a[38]=r):r=a[38],r}let m0=e=>{let t,n=(0,j.c)(3),{value:i,schemaType:r}=e;return n[0]!==r||n[1]!==i?(t=(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(Pz,{schemaType:r,value:i,layout:"default"})}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t},m7=e=>{let t,n=(0,j.c)(3),{diff:i,schemaType:r}=e;return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(m5,{diff:i,schemaType:r,previewComponent:m0,layout:"grid"}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t},m3=eI.I4.div.withConfig({displayName:"FieldChangeContainer",componentId:"sc-1dn07l7-0"})`--field-change-error:${({theme:e})=>e.sanity.color.solid.critical.enabled.bg};&[data-revert-all-changes-hover] [data-revert-all-hover]::before{border-left:2px solid var(--field-change-error);}`,m8=eI.I4.div.withConfig({displayName:"DiffBorder",componentId:"sc-1dn07l7-1"})`--field-change-error:${({theme:e})=>e.sanity.color.solid.critical.enabled.bg};--diff-inspect-padding-xsmall:${({theme:e})=>(0,I.D0)(e.sanity.space[1])};--diff-inspect-padding-small:${({theme:e})=>(0,I.D0)(e.sanity.space[2])};position:relative;padding:var(--diff-inspect-padding-xsmall) 0 var(--diff-inspect-padding-xsmall) var(--diff-inspect-padding-small);&::before{content:'';display:block;position:absolute;top:0;left:0;bottom:0;border-left:1px solid var(--card-border-color);}&[data-error]:hover::before,&[data-revert-field-hover]:hover::before{border-left:2px solid var(--field-change-error);}`,m4=(0,eI.I4)(tL.$n).withConfig({displayName:"Root",componentId:"sc-77vys-0"})`[data-ui='Text']{font-weight:normal;}div[data-ui='Box']{display:none;}&:not([data-disabled='true']):hover,&:not([data-disabled='true']):focus{--card-fg-color:${({theme:e})=>e.sanity.color.solid.critical.enabled.bg};--card-bg-color:transparent;--card-border-color:transparent;div[data-ui='Box']{display:block;}}`,m6=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l=(0,j.c)(12);l[0]!==e?({selected:r,changeCount:n,...i}=e,l[0]=e,l[1]=n,l[2]=i,l[3]=r):(n=l[1],i=l[2],r=l[3]);let{t:s}=as();return l[4]!==n||l[5]!==s?(a=s("changes.action.revert-changes-confirm-change",{count:n}),l[4]=n,l[5]=s,l[6]=a):a=l[6],l[7]!==t||l[8]!==i||l[9]!==r||l[10]!==a?(o=(0,v.jsx)(m4,{icon:eT.AAk,selected:r,text:a,mode:"bleed",ref:t,tooltipProps:null,...i}),l[7]=t,l[8]=i,l[9]=r,l[10]=a,l[11]=o):o=l[11],o});function m9(e){let t,n,i,r,a,o=(0,j.c)(17),{open:l,onConfirm:s,onCancel:d,changeCount:c,referenceElement:u}=e,{t:p}=as();return o[0]!==p?(t=p("changes.action.revert-all-cancel"),o[0]=p,o[1]=t):t=o[1],o[2]!==c||o[3]!==p?(n=c>1?p("changes.action.revert-all-confirm"):p("changes.action.revert-changes-confirm-change",{count:1}),o[2]=c,o[3]=p,o[4]=n):n=o[4],o[5]!==c||o[6]!==p?(i=p(c>1?"changes.action.revert-all-description":"changes.action.revert-changes-description",{count:c}
130),o[5]=c,o[6]=p,o[7]=i):i=o[7],o[8]===Symbol.for("react.memo_cache_sentinel")?(r=["left","left-start","left-end"],o[8]=r):r=o[8],o[9]!==d||o[10]!==s||o[11]!==l||o[12]!==u||o[13]!==t||o[14]!==n||o[15]!==i?(a=(0,v.jsx)(io.e,{cancelButtonText:t,confirmButtonText:n,message:i,onCancel:d,onConfirm:s,open:l,referenceElement:u,tone:"critical",placement:"left",fallbackPlacements:r}),o[9]=d,o[10]=s,o[11]=l,o[12]=u,o[13]=t,o[14]=n,o[15]=i,o[16]=a):a=o[16],a}function he(e){let t,n,i,r=(0,j.c)(8),{error:a}=e,{t:o}=as();return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.YZv,{})})}),r[0]=t):t=r[0],r[1]!==a.actualType||r[2]!==a.expectedType||r[3]!==a.messageKey||r[4]!==o?(n=o(a.messageKey,{expectedType:a.expectedType,actualType:a.actualType}),r[1]=a.actualType,r[2]=a.expectedType,r[3]=a.messageKey,r[4]=o,r[5]=n):n=r[5],r[6]!==n?(i=(0,v.jsx)(I.Zp,{tone:"critical",padding:3,children:(0,v.jsxs)(I.so,{align:"flex-start",children:[t,(0,v.jsx)(I.az,{flex:1,paddingLeft:3,children:(0,v.jsx)(I.EY,{size:1,as:"p",children:n})})]})}),r[6]=n,r[7]=i):i=r[7],i}let ht=e=>{let t=(0,j.c)(8),{children:n,path:i,hasRevertHover:r,wrap:a}=e,{FieldWrapper:o}=pS(),l=void 0===o?_.Fragment:o;if(a){let e,a,o=0;for(let e=0;e<i.length;e++)"string"!=typeof i[e]&&(o=e);return t[0]!==o||t[1]!==i?(e=i.slice(0,o+1),t[0]=o,t[1]=i,t[2]=e):e=t[2],t[3]!==l||t[4]!==n||t[5]!==r||t[6]!==e?(a=(0,v.jsx)(l,{path:e,hasRevertHover:r,children:n}),t[3]=l,t[4]=n,t[5]=r,t[6]=e,t[7]=a):a=t[7],a}return n};function hn(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,T,E,$=(0,j.c)(68);$[0]!==e?({change:n,hidden:i,readOnly:r,addParentWrapper:t,...a}=e,$[0]=e,$[1]=t,$[2]=n,$[3]=i,$[4]=r,$[5]=a):(t=$[1],n=$[2],i=$[3],r=$[4],a=$[5]);let A=n.diffComponent||m7,{documentId:D,schemaType:z,rootDiff:P,isComparingCurrent:R,FieldWrapper:N}=pS(),O=void 0===N?_.Fragment:N,{selectedReleaseId:V}=a3(),M=B9(D,z.name,V),[L,F]=(0,_.useState)(!1),[B,Y]=(0,_.useState)(!1),[H,U]=(0,_.useState)(null);$[6]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{(0,_.startTransition)(()=>U(e))},$[6]=o):o=$[6];let Z=o,{t:q}=as();$[7]!==D||$[8]!==z.name?(l={id:D,type:z.name,permission:"update"},$[7]=D,$[8]=z.name,$[9]=l):l=$[9];let[W,J]=dd(l);$[10]!==n||$[11]!==M||$[12]!==P?(s=()=>{mN(n,P,M),F(!1)},$[10]=n,$[11]=M,$[12]=P,$[13]=s):s=$[13];let K=s;$[14]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{F(!0)},$[14]=d):d=$[14];let G=d;$[15]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{F(!1)},$[15]=c):c=$[15];let X=c;$[16]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{Y(!0)},$[16]=u):u=$[16];let Q=u;$[17]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{Y(!1)},$[17]=p):p=$[17];let ee=p;$[18]!==n.parentSchema?(m=n.parentSchema?.jsonType==="array"&&!n.parentSchema.of.some(hi),$[18]=n.parentSchema,$[19]=m):m=$[19];let et=m;$[20]!==n.path||$[21]!==et?(h=et?n.path.slice(0,-1):n.path,$[20]=n.path,$[21]=et,$[22]=h):h=$[22];let en=h;$[23]!==n.path?(f={path:n.path},$[23]=n.path,$[24]=f):f=$[24];let ei=f;if(i)return null;$[25]!==n?(g=n.showHeader&&(0,v.jsx)(u8,{change:n,titlePath:n.titlePath}),$[25]=n,$[26]=g):g=$[26];let er=!!t,ea=B?"":void 0,eo=n.error?"":void 0;return $[27]!==A||$[28]!==n.diff||$[29]!==n.error||$[30]!==n.schemaType||$[31]!==q||$[32]!==ei?(y=n.error?(0,v.jsx)(he,{error:n.error}):(0,v.jsx)(mL,{t:q,children:(0,v.jsx)(S.DR.Provider,{value:ei,children:(0,v.jsx)(A,{diff:n.diff,schemaType:n.schemaType})})}),$[27]=A,$[28]=n.diff,$[29]=n.error,$[30]=n.schemaType,$[31]=q,$[32]=ei,$[33]=y):y=$[33],$[34]!==n.key||$[35]!==L||$[36]!==R||$[37]!==J||$[38]!==W?.granted||$[39]!==r?(C=R&&!J&&W?.granted&&(0,v.jsx)(m6,{changeCount:1,onClick:G,onMouseEnter:Q,onMouseLeave:ee,selected:L,disabled:r,ref:Z,"data-testid":`single-change-revert-button-${n?.key}`}),$[34]=n.key,$[35]=L,$[36]=R,$[37]=J,$[38]=W?.granted,$[39]=r,$[40]=C):C=$[40],$[41]!==n||$[42]!==ea||$[43]!==eo||$[44]!==y||$[45]!==C?(x=(0,v.jsxs)(mU,{change:n,as:m8,"data-revert-field-hover":ea,"data-error":eo,"data-revert-all-hover":!0,"data-ui":"field-diff-inspect-wrapper",children:[y,C]}),$[41]=n,$[42]=ea,$[43]=eo,$[44]=y,$[45]=C,$[46]=x):x=$[46],$[47]!==O||$[48]!==en||$[49]!==B||$[50]!==x?(b=(0,v.jsx)(O,{path:en,hasRevertHover:B,children:x}),$[47]=O,$[48]=en,$[49]=B,$[50]=x,$[51]=b):b=$[51],$[52]!==en||$[53]!==B||$[54]!==er||$[55]!==b?(w=(0,v.jsx)(ht,{path:en,hasRevertHover:B,wrap:er,children:b}),$[52]=en,$[53]=B,$[54]=er,$[55]=b,$[56]=w):w=$[56],$[57]!==a||$[58]!==g||$[59]!==w?(k=(0,v.jsxs)(I.BJ,{space:1,as:m3,...a,children:[g,w]}),$[57]=a,$[58]=g,$[59]=w,$[60]=k):k=$[60],$[61]!==H||$[62]!==L||$[63]!==K?(T=(0,v.jsx)(m9,{open:L,onConfirm:K,onCancel:X,changeCount:1,referenceElement:H}),$[61]=H,$[62]=L,$[63]=K,$[64]=T):T=$[64],$[65]!==k||$[66]!==T?(E=(0,v.jsxs)(v.Fragment,{children:[k,T]}),$[65]=k,$[66]=T,$[67]=E):E=$[67],E}function hi(e){return e.type?.name==="block"}let hr=eI.I4.div.withConfig({displayName:"ChangeListWrapper",componentId:"sc-9bvopx-0"})`display:grid;grid-template-columns:minmax(0,1fr);`,ha=eI.I4.div.withConfig({displayName:"GroupChangeContainer",componentId:"sc-9bvopx-1"})`--field-change-error:${({theme:e})=>e.sanity.color.solid.critical.enabled.bg};--diff-inspect-padding-xsmall:${({theme:e})=>(0,I.D0)(e.sanity.space[1])};--diff-inspect-padding-small:${({theme:e})=>(0,I.D0)(e.sanity.space[2])};position:relative;padding:var(--diff-inspect-padding-xsmall) var(--diff-inspect-padding-small);&::before{content:'';display:block;position:absolute;top:0;left:0;bottom:0;border-left:1px solid var(--card-border-color);}&[data-error]:hover::before,&[data-revert-group-hover]:hover::before,&[data-revert-all-groups-hover]::before{border-left:2px solid var(--field-change-error);}`;function ho(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(46);f[0]!==e?({change:t,readOnly:i,hidden:n,...r}=e,f[0]=e,f[1]=t,f[2]=n,f[3]=i,f[4]=r):(t=f[1],n=f[2],i=f[3],r=f[4]);let{titlePath:g,changes:y,path:C}=t,{path:x}=(0,_.useContext)(S.DR),{documentId:b,schemaType:w,FieldWrapper:k,rootDiff:T,isComparingCurrent:E}=pS(),$=void 0===k?_.Fragment:k;f[5]!==y?(a=y.every(hs),f[5]=y,f[6]=a):a=f[6];let A=a;f[7]!==x||f[8]!==C?(o=oo(x,C),f[7]=x,f[8]=C,f[9]=o):o=f[9];let D=o,[z,P]=(0,_.useState)(null);f[10]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{(0,_.startTransition)(()=>P(e))},f[10]=l):l=f[10];let R=l,N=function(e){let t,n,i=(0,j.c)(3),[r,a]=(0,_.useState)(!1);return i[0]!==e?(t=()=>{if(!e)return;let t=()=>(0,_.startTransition)(()=>a(!0)),n=()=>(0,_.startTransition)(()=>a(!1));return e.addEventListener("mouseover",t),e.addEventListener("mouseout",n),()=>{e.removeEventListener("mouseover",t),e.removeEventListener("mouseout",n)}},n=[e],i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,_.useEffect)(t,n),r}(z),{selectedReleaseId:O}=a3(),V=B9(b,w.name,O),[M,L]=(0,_.useState)(!1);f[11]!==b||f[12]!==w.name?(s={id:b,type:w.name,permission:"update"},f[11]=b,f[12]=w.name,f[13]=s):s=f[13];let[F,B]=dd(s);f[14]!==V||f[15]!==t||f[16]!==T?(d=()=>{mN(t,T,V),L(!1)},f[14]=V,f[15]=t,f[16]=T,f[17]=d):d=f[17];let Y=d;f[18]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{L(!0)},f[18]=c):c=f[18];let H=c;f[19]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{L(!1)},f[19]=u):u=f[19];let U=u;f[20]!==y||f[21]!==M||f[22]!==t.key||f[23]!==t.path.length||f[24]!==Y||f[25]!==n||f[26]!==E||f[27]!==B||f[28]!==A||f[29]!==N||f[30]!==F?.granted||f[31]!==i||f[32]!==z?(p=n?null:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(I.BJ,{space:1,as:ha,"data-ui":"group-change-content","data-revert-group-hover":N?"":void 0,"data-portable-text":A?"":void 0,children:[(0,v.jsx)(I.BJ,{as:hr,space
130:5,"data-ui":"group-change-list",children:y.map(e=>(0,v.jsx)(hd,{change:e,readOnly:i,hidden:n,addParentWrapper:e.path.length-t.path.length>1},e.key))}),E&&!B&&F?.granted&&(0,v.jsx)(I.az,{children:(0,v.jsx)(m6,{changeCount:y.length,onClick:H,ref:R,selected:M,disabled:i,"data-testid":`group-change-revert-button-${t.key}`})})]}),(0,v.jsx)(m9,{open:M,onConfirm:Y,onCancel:U,changeCount:y.length,referenceElement:z})]}),f[20]=y,f[21]=M,f[22]=t.key,f[23]=t.path.length,f[24]=Y,f[25]=n,f[26]=E,f[27]=B,f[28]=A,f[29]=N,f[30]=F?.granted,f[31]=i,f[32]=z,f[33]=p):p=f[33];let Z=p;f[34]!==t.schemaType?(m=t.schemaType?.jsonType==="array"&&t.schemaType.of.some(hl),f[34]=t.schemaType,f[35]=m):m=f[35];let q=m;return f[36]!==$||f[37]!==Z||f[38]!==C||f[39]!==n||f[40]!==D||f[41]!==q||f[42]!==N||f[43]!==r||f[44]!==g?(h=n?null:(0,v.jsxs)(I.BJ,{space:1,...r,children:[(0,v.jsx)(u8,{titlePath:g}),D||q?Z:(0,v.jsx)($,{hasRevertHover:N,path:C,children:Z})]}),f[36]=$,f[37]=Z,f[38]=C,f[39]=n,f[40]=D,f[41]=q,f[42]=N,f[43]=r,f[44]=g,f[45]=h):h=f[45],h}function hl(e){return"block"===e.name}function hs(e){return px(e)&&pl(e.schemaType)}function hd(e){let t,n,i,r=(0,j.c)(20),{change:a,hidden:o,readOnly:l}=e,{value:s}=pS(),d=void 0===s?_.Fragment:s,c=o||a.schemaType?.hidden,u="field"===a.type?a.diff.toValue:void 0;r[0]!==a.path||r[1]!==d||r[2]!==c||r[3]!==u?(t={document:d,checkProperty:c,checkPropertyKey:"hidden",value:u,path:a.path},r[0]=a.path,r[1]=d,r[2]=c,r[3]=u,r[4]=t):t=r[4];let p=u4(t),m=l||a.schemaType?.readOnly,h="field"===a.type?a.diff.toValue:void 0;r[5]!==a.path||r[6]!==d||r[7]!==m||r[8]!==h?(n={document:d,checkProperty:m,checkPropertyKey:"readOnly",value:h,path:a.path},r[5]=a.path,r[6]=d,r[7]=m,r[8]=h,r[9]=n):n=r[9];let f=u4(n);if(p)return null;if("field"===a.type){let t;return r[10]!==a||r[11]!==f||r[12]!==e.addParentWrapper?(t=(0,v.jsx)(hn,{change:a,readOnly:f,addParentWrapper:e.addParentWrapper}),r[10]=a,r[11]=f,r[12]=e.addParentWrapper,r[13]=t):t=r[13],t}if("group"===a.type){let e,t=`group-change-${a.fieldsetName}`;return r[14]!==a||r[15]!==f||r[16]!==t?(e=(0,v.jsx)(ho,{change:a,"data-testid":t,readOnly:f}),r[14]=a,r[15]=f,r[16]=t,r[17]=e):e=r[17],e}let g=a.type||"undefined";return r[18]!==g?(i=(0,v.jsxs)(I.EY,{children:["Unknown change type: ",(0,v.jsx)("code",{children:g})]}),r[18]=g,r[19]=i):i=r[19],i}function hc(){let e,t,n,i,r,a=(0,j.c)(11),{t:o}=as();return a[0]!==o?(e=o("changes.no-changes-title"),a[0]=o,a[1]=e):e=a[1],a[2]!==e?(t=(0,v.jsx)(I.EY,{size:1,weight:"medium",as:"h3",children:e}),a[2]=e,a[3]=t):t=a[3],a[4]!==o?(n=o("changes.no-changes-description"),a[4]=o,a[5]=n):n=a[5],a[6]!==n?(i=(0,v.jsx)(I.EY,{as:"p",size:1,muted:!0,children:n}),a[6]=n,a[7]=i):i=a[7],a[8]!==t||a[9]!==i?(r=(0,v.jsxs)(I.BJ,{space:3,paddingTop:2,children:[t,i]}),a[8]=t,a[9]=i,a[10]=r):r=a[10],r}function hu(e){var t;let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(53),{diff:x,fields:b,schemaType:w}=e,{documentId:k,isComparingCurrent:T,value:E}=pS(),{selectedReleaseId:$}=a3(),A=B9(k,w.name,$),{path:D}=(0,_.useContext)(S.DR),z=0===D.length,[P,R]=(0,_.useState)(!1),[N,O]=(0,_.useState)(!1),[V,M]=(0,_.useState)(null);C[0]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{(0,_.startTransition)(()=>M(e))},C[0]=n):n=C[0];let L=n,{t:F}=as();C[1]!==D||C[2]!==w.readOnly||C[3]!==E?(i={document:E,value:void 0,checkProperty:w.readOnly,checkPropertyKey:"readOnly",path:D},C[1]=D,C[2]=w.readOnly,C[3]=E,C[4]=i):i=C[4];let B=u4(i);if("object"!==w.jsonType)throw Error("Only object schema types are allowed in ChangeList");C[5]!==k||C[6]!==w.name?(r={id:k,type:w.name,permission:"update"},C[5]=k,C[6]=w.name,C[7]=r):r=C[7];let[Y,H]=dd(r);C[8]!==x||C[9]!==b||C[10]!==D||C[11]!==w?(a=mI(w,x,D,[],{fieldFilter:b}),C[8]=x,C[9]=b,C[10]=D,C[11]=w,C[12]=a):a=C[12];let U=a;C[13]!==U||C[14]!==b?(o=b&&0===b.length?[]:1===(t=U).length&&"group"===t[0].type&&0===t[0].path.length?t[0].changes:t,C[13]=U,C[14]=b,C[15]=o):o=C[15];let Z=o,q=U[0];C[16]!==x||C[17]!==A||C[18]!==q?(l=()=>{mN(q,x,A),R(!1)},C[16]=x,C[17]=A,C[18]=q,C[19]=l):l=C[19];let W=l;C[20]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{R(!0)},C[20]=s):s=C[20];let J=s;C[21]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{O(!0)},C[21]=d):d=C[21];let K=d;C[22]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{O(!1)},C[22]=c):c=C[22];let G=c;C[23]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{R(!1)},C[23]=u):u=C[23];let X=u;if(0===Z.length){let e;return C[24]!==z?(e=z?(0,v.jsx)(hc,{}
130):null,C[24]=z,C[25]=e):e=C[25],e}let Q=z&&Z.length>1;if(C[26]!==Z||C[27]!==N||C[28]!==B){let e;C[30]!==N||C[31]!==B?(e=e=>(0,v.jsx)("div",{children:(0,v.jsx)(hd,{change:e,"data-revert-all-changes-hover":N?"":void 0,readOnly:B||e?.readOnly,hidden:e?.hidden,addParentWrapper:e.path.length>1},e.key)},e.key),C[30]=N,C[31]=B,C[32]=e):e=C[32],p=Z.map(e),C[26]=Z,C[27]=N,C[28]=B,C[29]=p}else p=C[29];return C[33]!==p?(m=(0,v.jsx)(I.BJ,{as:mM,space:5,children:p}),C[33]=p,C[34]=m):m=C[34],C[35]!==T||C[36]!==H||C[37]!==B||C[38]!==Y?.granted||C[39]!==Q||C[40]!==F?(h=Q&&T&&!H&&Y?.granted&&(0,v.jsx)(I.BJ,{children:(0,v.jsx)(tL.$n,{tone:"critical",mode:"ghost",text:F("changes.action.revert-all-confirm"),icon:eT.AAk,onClick:J,onMouseEnter:K,onMouseLeave:G,disabled:B,size:"large",ref:L})}),C[35]=T,C[36]=H,C[37]=B,C[38]=Y?.granted,C[39]=Q,C[40]=F,C[41]=h):h=C[41],C[42]!==m||C[43]!==h?(f=(0,v.jsxs)(I.BJ,{space:5,children:[m,h]}),C[42]=m,C[43]=h,C[44]=f):f=C[44],C[45]!==V||C[46]!==Z.length||C[47]!==P||C[48]!==W?(g=(0,v.jsx)(m9,{open:P,onConfirm:W,onCancel:X,changeCount:Z.length,referenceElement:V}),C[45]=V,C[46]=Z.length,C[47]=P,C[48]=W,C[49]=g):g=C[49],C[50]!==f||C[51]!==g?(y=(0,v.jsxs)(I.Zp,{children:[f,g]}),C[50]=f,C[51]=g,C[52]=y):y=C[52],y}function hp(e){let t,n,i,r,a,o,l=(0,j.c)(16),{error:s}=e,{t:d}=as(),c=s instanceof c8;return l[0]!==d?(t=d("changes.error-title"),l[0]=d,l[1]=t):t=l[1],l[2]!==t?(n=(0,v.jsx)(I.EY,{size:1,weight:"medium",as:"h3",children:t}),l[2]=t,l[3]=n):n=l[3],l[4]!==d?(i=d("changes.error-description"),l[4]=d,l[5]=i):i=l[5],l[6]!==i?(r=(0,v.jsx)(I.EY,{as:"p",size:1,muted:!0,children:i}),l[6]=i,l[7]=r):r=l[7],l[8]!==s||l[9]!==c||l[10]!==d?(a=c&&(0,v.jsx)(I.az,{paddingTop:2,children:(0,v.jsx)(I.EY,{as:"p",size:1,muted:!0,children:(0,v.jsx)(aE,{i18nKey:"changes.missing-since-document-error",t:d,values:{revisionId:s.revisionId},components:{Break:hm}})})}),l[8]=s,l[9]=c,l[10]=d,l[11]=a):a=l[11],l[12]!==n||l[13]!==r||l[14]!==a?(o=(0,v.jsx)(I.Zp,{tone:"caution",padding:3,children:(0,v.jsxs)(I.BJ,{space:3,children:[n,r,a]})}),l[12]=n,l[13]=r,l[14]=a,l[15]=o):o=l[15],o}function hm(){return(0,v.jsx)("br",{})}let hh=eI.I4.span.withConfig({displayName:"RoundedCard",componentId:"sc-583d6m-0"})`border-radius:${({theme:e})=>(0,I.D0)(e.sanity.radius[1])};`,hf=(0,eI.I4)(I.EY).withConfig({displayName:"ChangeSegment",componentId:"sc-583d6m-1"})`&:not([hidden]){display:inline;line-height:calc(1.25em + 2px);}&:hover{background-color:none !important;background-image:linear-gradient( to bottom,var(--card-bg-color) 0,var(--card-bg-color) 33.333%,currentColor 33.333%,currentColor 100% );background-size:1px 3px;background-repeat:repeat-x;background-position-y:bottom;padding-bottom:3px;box-shadow:0 0 0 1px var(--card-bg-color);z-index:1;}`;function hg(e){let t,n,i=(0,j.c)(24),{segment:r}=e,{text:a}=r,{t:o}=as();if("added"===r.action){let e,t,n,l,s,d=r.annotation;return i[0]!==o?(e=o("changes.added-label"),i[0]=o,i[1]=e):e=i[1],i[2]!==e?(t={description:e},i[2]=e,i[3]=t):t=i[3],i[4]===Symbol.for("react.memo_cache_sentinel")?(n={textDecoration:"none"},i[4]=n):n=i[4],i[5]!==a?(l=(0,v.jsx)(hf,{as:"ins",style:n,children:a}),i[5]=a,i[6]=l):l=i[6],i[7]!==r.annotation||i[8]!==t||i[9]!==l?(s=(0,v.jsx)(uQ,{annotation:d,disableHoverEffect:!0,tooltip:t,as:hh,children:l}),i[7]=r.annotation,i[8]=t,i[9]=l,i[10]=s):s=i[10],s}if("removed"===r.action){let e,t,n,l,s=r.annotation;return i[11]!==o?(e=o("changes.removed-label"),i[11]=o,i[12]=e):e=i[12],i[13]!==e?(t={description:e},i[13]=e,i[14]=t):t=i[14],i[15]!==a?(n=(0,v.jsx)(hf,{as:"del",children:a}),i[15]=a,i[16]=n):n=i[16],i[17]!==r.annotation||i[18]!==t||i[19]!==n?(l=(0,v.jsx)(uQ,{annotation:s,as:hh,disableHoverEffect:!0,tooltip:t,children:n}),i[17]=r.annotation,i[18]=t,i[19]=n,i[20]=l):l=i[20],l}return i[21]===Symbol.for("react.memo_cache_sentinel")?(t={display:"inline"},i[21]=t):t=i[21],i[22]!==a?(n=(0,v.jsx)(I.Zp,{as:"span",radius:2,style:t,children:a}),i[22]=a,i[23]=n):n=i[23],n}function hy(e){let t,n,i,r=(0,j.c)(6),{diff:a}=e;return r[0]!==a.segments?(t=a.segments||[],r[0]=a.segments,r[1]=t):t=r[1],r[2]!==t?(n=t.map(hC),r[2]=t,r[3]=n):n=r[3],r[4]!==n?(i=(0,v.jsx)(v.Fragment,{children:n}),r[4]=n,r[5]=i):i=r[5],i}function hC(e,t){return(0,v.jsx)(hg,{segment:e},t)}let hx=(0,eI.I4)(I.EY).withConfig({displayName:"MetaText",componentId:"sc-7wplty-0"})`color:inherit;`;function hb(e){let t,n,i,r,a,o,l=(0,j.c)(17),{title:s,action:d,icon:c,
130children:u,markRemoved:p}=e;l[0]!==c||l[1]!==p?(t=c&&(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(hx,{size:4,forwardedAs:p?"del":"div",children:(0,v.jsx)(c,{})})}),l[0]=c,l[1]=p,l[2]=t):t=l[2];let m=p?"del":"h3";return l[3]!==m||l[4]!==s?(n=(0,v.jsx)(hx,{size:1,weight:"medium",forwardedAs:m,textOverflow:"ellipsis",children:s}),l[3]=m,l[4]=s,l[5]=n):n=l[5],l[6]!==d?(i=d&&(0,v.jsx)("div",{children:d}),l[6]=d,l[7]=i):i=l[7],l[8]!==u?(r=(0,v.jsx)(hx,{size:0,textOverflow:"ellipsis",children:u}),l[8]=u,l[9]=r):r=l[9],l[10]!==n||l[11]!==i||l[12]!==r?(a=(0,v.jsxs)(I.BJ,{space:2,paddingLeft:2,children:[n,i,r]}),l[10]=n,l[11]=i,l[12]=r,l[13]=a):a=l[13],l[14]!==t||l[15]!==a?(o=(0,v.jsxs)(I.so,{padding:2,align:"center",children:[t,a]}),l[14]=t,l[15]=a,l[16]=o):o=l[16],o}let hv=["_key","_type","_weak"];function hj(e){return Object.keys(e).every(e=>hv.includes(e))}function hw(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function h_(e){return!("object"!=typeof e||!e||!("jsonType"in e)||"string"!=typeof e.jsonType||!("name"in e)||"string"!=typeof e.name)}let hk=function({decorator:e=function(e){return e}}={}){let t=e(function(e,n){if(e===n||null===e||"object"!=typeof e||"object"!=typeof n)return n;if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return n;let i=n.map((n,i)=>t(e[i],n));return i.every((t,n)=>t===e[n])?e:i}if(h_(e)||h_(n)||!hw(e)||!hw(n))return n;let i={},r=!1,a=new Set(Object.keys(n));for(let o of Object.getOwnPropertyNames(n))if(o in e){let l=t(e[o],n[o]);a.has(o)?i[o]=l:Object.defineProperty(i,o,{value:l,enumerable:!1}),r=r||l!==e[o]}else a.has(o)?i[o]=n[o]:Object.defineProperty(i,o,{value:n[o],enumerable:!1}),r=!0;for(let t of Object.getOwnPropertyNames(e))if(!(t in n)){r=!0;break}return r?i:e});return t}();function hS(e){let t,n=(0,j.c)(3);return n[0]!==e.children||n[1]!==e.presence?(t=(0,v.jsx)(S.tt.Provider,{value:e.presence,children:e.children}),n[0]=e.children,n[1]=e.presence,n[2]=t):t=n[2],t}function hI(){let e=(0,_.useContext)(S.tt);if(!e)throw Error("Form context not provided");return e}function hT(e,t){let n=hI(),i=(0,_.useRef)(n),r=hk(i.current,n.filter(n=>(0,w.w1)(e,n.path)&&t));return i.current=r,r}function hE(){let e=(0,_.useContext)(S.NU);if(!e)throw Error("FormBuilder: missing context value");return e}hS.displayName="PresenceProvider";let h$=(0,eI.I4)(I.EY).withConfig({displayName:"IconText",componentId:"sc-1x7gq0z-0"})(({theme:e})=>(0,eI.AH)` 131 &[data-info] { 132 color: ${e.sanity.color.muted.primary.enabled.fg}; 133 } 134 135 &[data-warning] { 136 color: ${e.sanity.color.muted.caution.enabled.fg}; 137 } 138 139 &[data-error] { 140 color: ${e.sanity.color.muted.critical.enabled.fg}; 141 } 142 `);function hA(e){let t,n,i,r=(0,j.c)(10),{markers:a,validation:o,renderCustomMarkers:l}=e,{CustomMarkers:s}=hE().__internal.components;return 0===a.length&&0===o.length?null:(r[0]!==o?(t=o.length>0&&o.map((e,t)=>{let{message:n,level:i}=e;return(0,v.jsxs)(I.so,{children:[(0,v.jsx)(I.az,{marginRight:2,marginBottom:2*(t+1!==o.length),children:(0,v.jsx)(h$,{size:1,"data-error":"error"===i?"":void 0,"data-warning":"warning"===i?"":void 0,"data-info":"info"===i?"":void 0,children:"error"===i?(0,v.jsx)(eT.YZv,{}):"warning"===i?(0,v.jsx)(eT.sAQ,{}):(0,v.jsx)(eT.YzR,{})})}),(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,children:n||"Error"})})]},`validationItem-${t}`)}),r[0]=o,r[1]=t):t=r[1],r[2]!==s||r[3]!==a||r[4]!==l||r[5]!==o.length?(n=a.length>0&&(0,v.jsxs)(I.az,{marginTop:3*(o.length>0),children:[l&&l(a),!l&&(0,v.jsx)(s,{markers:a})]}),r[2]=s,r[3]=a,r[4]=l,r[5]=o.length,r[6]=n):n=r[6],r[7]!==t||r[8]!==n?(i=(0,v.jsxs)(I.BJ,{space:1,children:[t,n]}),r[7]=t,r[8]=n,r[9]=i):i=r[9],i)}function hD(e){let t,n,i=(0,j.c)(5),{schemaType:r,children:a}=e;i[0]!==r?(t=(0,n8.rV)(r),i[0]=r,i[1]=t):t=i[1];let o=t;return i[2]!==a||i[3]!==o?(n=(0,v.jsx)(S.UN.Provider,{value:o,children:a}),i[2]=a,i[3]=o,i[4]=n):n=i[4],n}function hz(){let e=(0,_.use)(S.UN);if(!e)throw Error("usePortableTextMemberSchemaTypes must be used within PortableTextMemberSchemaTypesProvider");return e}function hP(e){let t,n,i,r,a,o,l=(0,j.c)(10),{children:s}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=new Map,l[0]=t):t=l[0];let[d,c]=(0,_.useState)(t);l[1]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{c(t=>{let n=new Map(t);return n.set(e.key,e),n})},l[1]=n):n=l[1];let u=n;l[2]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{c(t=>{let n=new Map(t);return n.delete(e),n})},l[2]=i):i=l[2];let p=i;l[3]!==d?(r=Array.from(d.values()),l[3]=d,l[4]=r):r=l[4];let m=r;l[5]!==m?(a={register:u,unregister:p,annotations:m},l[5]=m,l[6]=a):a=l[6];let h=a;return l[7]!==s||l[8]!==h?(o=(0,v.jsx)(S.NI.Provider,{value:h,children:s}),l[7]=s,l[8]=h,l[9]=o):o=l[9],o}function hR(){let e=(0,_.useContext)(S.NI);if(!e)throw Error("useSelectedAnnotations must be used within a SelectedAnnotationsProvider");return e}function hN(e){let t,n=(0,j.c)(3);return n[0]!==e.children||n[1]!==e.validation?(t=(0,v.jsx)(S.dY.Provider,{value:e.validation,children:e.children}),n[0]=e.children,n[1]=e.validation,n[2]=t):t=n[2],t}function hO(e,t){let n,i=(0,j.c)(7),r=void 0!==t&&t,a=function(){let e=(0,_.useContext)(S.dY);if(!e)throw Error("Form context not provided");return e}();if(i[0]!==r||i[1]!==e||i[2]!==a){let t;i[4]!==r||i[5]!==e?(t=t=>(0,w.w1)(e,t.path)&&(r||!(0,w.n4)(e,t.path)),i[4]=r,i[5]=e,i[6]=t):t=i[6],n=a.filter(t).map(hV),i[0]=r,i[1]=e,i[2]=a,i[3]=n}else n=i[3];return n}function hV(e){return{message:e.message,level:e.level,path:e.path}}let hM=["@@_NONEXISTENT_PATH_@@"];function hL(e){let t=(0,_.useRef)(null),n=e?.validation&&e.validation.length>
1420?e.validation:rM,i=hO(e?.path||hM),r=(0,_.useMemo)(()=>e?.schemaType&&a6(e?.schemaType)?n:n.concat(i),[i,e,n]),[a,o,l]=(0,_.useMemo)(()=>[r.filter(e=>"error"===e.level).length>0,r.filter(e=>"warning"===e.level).length>0,r.filter(e=>"info"===e.level).length>0],[r]),s=hk(t.current,r);return t.current=s,(0,_.useMemo)(()=>({validation:s,hasError:a,hasWarning:o,hasInfo:l}),[s,a,o,l])}function hF(e){let t,n=(0,j.c)(5),i=(0,_.useContext)(S.ht);if(!i)throw Error("Form context not provided");if(n[0]!==i||n[1]!==e){let r;n[3]!==e?(r=t=>(0,w.n4)(t.path,e),n[3]=e,n[4]=r):r=n[4],t=i.filter(r),n[0]=i,n[1]=e,n[2]=t}else t=n[2];return t}function hB(e){return(0,eD.$d)(e.field.schemaType)}function hY(e){return(0,eD.zR)(e.field.schemaType)&&e.field.schemaType.of.every(e=>(0,eD.$d)(e))}let hH=Symbol.for("sanity.patch");function hU(e,t=[]){return{patchType:hH,type:"setIfMissing",path:t,value:e}}function hZ(e,t,n=[]){return{patchType:hH,type:"insert",path:n,position:t,items:e}}function hq(e,t=[]){return{patchType:hH,type:"set",path:t,value:e}}function hW(e=[]){return{patchType:hH,type:"unset",path:e}}function hJ(e){let t,n=(0,j.c)(5),i=(0,_.useContext)(S.u2);if(!i)throw Error("Form context not provided");if(n[0]!==i||n[1]!==e){let r;n[3]!==e?(r=t=>t.key===e,n[3]=e,n[4]=r):r=n[4],t=i.find(r),n[0]=i,n[1]=e,n[2]=t}else t=n[2];return t}function hK(){let e=(0,_.useContext)(S.u2);if(!e)throw Error("Form context not provided");return e}let hG=eI.I4.span.withConfig({displayName:"Root",componentId:"sc-125kpeu-0"})(e=>{let{$toneKey:t="default",theme:n}=e;return(0,eI.AH)` 143 text-decoration: none; 144 display: inline; 145 background-color: ${n.sanity.color.selectable?.[t].enabled.bg}; 146 border-bottom: 1px dashed ${n.sanity.color.selectable?.[t].enabled.fg}; 147 color: ${n.sanity.color.selectable?.[t].enabled.fg}; 148 149 &[data-link] { 150 border-bottom: 1px solid ${n.sanity.color.selectable?.[t].enabled.fg}; 151 } 152 153 &[data-custom-markers] { 154 background-color: ${n.sanity.color.dark?ez.OZ.purple[950].hex:ez.OZ.purple[50].hex}; 155 } 156 157 &[data-warning] { 158 background-color: ${n.sanity.color.muted.caution.hovered.bg}; 159 } 160 161 &[data-error] { 162 background-color: ${n.sanity.color.muted.critical.hovered.bg}; 163 } 164 `}),hX=(0,eI.I4)(I.az).attrs({forwardedAs:"span"}).withConfig({displayName:"TooltipBox",componentId:"sc-125kpeu-1"})`max-width:250px;`;function hQ(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(69),{children:f,editorNodeFocused:g,floatingBoundary:y,focused:C,onItemClose:x,onItemOpen:b,onPathFocus:k,path:S,readOnly:I,referenceBoundary:T,renderAnnotation:E,renderBlock:$,renderCustomMarkers:A,renderField:D,renderInlineBlock:z,renderInput:P,renderItem:R,renderPreview:N,schemaType:O,selected:V,setElementRef:M,value:L}=e,{Markers:F}=hE().__internal.components,B=void 0===F?hA:F,Y=(0,n1.v$)(),H=hz();h[0]!==S||h[1]!==L._key?(t=S.slice(0,S.length-2).concat(["markDefs",{_key:L._key}]),h[0]=S,h[1]=L._key,h[2]=t):t=h[2];let U=t,[Z,q]=(0,_.useState)(null);h[3]!==U?(n=on(U),h[3]=U,h[4]=n):n=h[4];let W=hJ(n),{validation:J}=hL(W?.node),K=hF(S);h[5]!==f?(i=(0,v.jsx)("span",{"data-annotation":"",children:f}),h[5]=f,h[6]=i):i=h[6];let G=i;h[7]!==Y||h[8]!==W||h[9]!==b?(r=()=>{W&&(n1.Og.blur(Y),b(W.node.path))},h[7]=Y,h[8]=W,h[9]=b,h[10]=r):r=h[10];let X=r;h[11]!==Y||h[12]!==x||h[13]!==O||h[14]!==L?(a=()=>{x(),hj(L)&&n1.Og.removeAnnotation(Y,O),n1.Og.focus(Y)},h[11]=Y,h[12]=x,h[13]=O,h[14]=L,h[15]=a):a=h[15];let Q=a;h[16]!==Y||h[17]!==O?(o=()=>{n1.Og.removeAnnotation(Y,O),n1.Og.focus(Y)},h[16]=Y,h[17]=O,h[18]=o):o=h[18];let ee=o;h[19]!==B||h[20]!==K||h[21]!==A||h[22]!==G||h[23]!==J?(l=J.length>0||K.length>0?(0,v.jsx)(tL.m_,{placement:"bottom",portal:"default",content:(0,v.jsx)(hX,{children:(0,v.jsx)(B,{markers:K,renderCustomMarkers:A,validation:J})}),children:G}):void 0,h[19]=B,h[20]=K,h[21]=A,h[22]=G,h[23]=J,h[24]=l):l=h[24];let et=l,en=hT(S,!0);if(h[25]!==S||h[26]!==en){let e;h[28]!==S?(e=e=>(0,w.n4)(e.path,S),h[28]=S,h[29]=e):e=h[29],s=en.filter(e),h[25]=S,h[26]=en,h[27]=s}else s=h[27];let ei=s,er=!!W?.member.open,ea=W?.input,eo=W?.node.path||rM,el=H.block,es=!!I,ed=et||G;h[30]!==g||h[31]!==y||h[32]!==C||h[33]!==ea||h[34]!==er||h[35]!==K||h[36]!==eo||h[37]!==Q||h[38]!==X||h[39]!==k||h[40]!==ee||h[41]!==T||h[42]!==Z||h[43]!==E||h[44]!==$||h[45]!==D||h[46]!==z||h[47]!==P||h[48]!==R||h[49]!==N||h[50]!==ei||h[51]!==O||h[52]!==H.block||h[53]!==V||h[54]!==es||h[55]!==ed||h[56]!==J||h[57]!==L?(d={__unstable_floatingBoundary:y,__unstable_referenceBoundary:T,__unstable_referenceElement:Z,__unstable_textElementFocus:g,children:ea,focused:C,markers:K,onClose:Q,onOpen:X,onPathF
164ocus:k,onRemove:ee,open:er,parentSchemaType:el,path:eo,presence:ei,readOnly:es,renderAnnotation:E,renderBlock:$,renderField:D,renderInlineBlock:z,renderInput:P,renderPreview:N,renderItem:R,renderDefault:h1,schemaType:O,selected:V,textElement:ed,validation:J,value:L},h[30]=g,h[31]=y,h[32]=C,h[33]=ea,h[34]=er,h[35]=K,h[36]=eo,h[37]=Q,h[38]=X,h[39]=k,h[40]=ee,h[41]=T,h[42]=Z,h[43]=E,h[44]=$,h[45]=D,h[46]=z,h[47]=P,h[48]=R,h[49]=N,h[50]=ei,h[51]=O,h[52]=H.block,h[53]=V,h[54]=es,h[55]=ed,h[56]=J,h[57]=L,h[58]=d):d=h[58];let ec=d,eu=O.components?.annotation;h[59]!==W||h[60]!==M?(c=e=>{W&&M({key:W.member.key,elementRef:e}),q(e)},h[59]=W,h[60]=M,h[61]=c):c=h[61];let ep=c;return h[62]===Symbol.for("react.memo_cache_sentinel")?(u=void 0,h[62]=u):u=h[62],h[63]!==eu||h[64]!==ec?(p=eu?(0,v.jsx)(eu,{...ec}):(0,v.jsx)(h1,{...ec}),h[63]=eu,h[64]=ec,h[65]=p):p=h[65],h[66]!==ep||h[67]!==p?(m=(0,v.jsx)("span",{ref:ep,style:u,children:p}),h[66]=ep,h[67]=p,h[68]=m):m=h[68],m}let h1=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(30),{__unstable_referenceElement:d,markers:c,onOpen:u,onRemove:p,open:m,readOnly:h,schemaType:f,selected:g,textElement:y,validation:C,value:x}=e,b="link"===f.name,w=C.some(h2),k=C.some(h5),S=c.length>0,{t:I}=as(),{register:T,unregister:E}=hR();s[0]!==f.i18nTitleKey||s[1]!==f.name||s[2]!==f.title||s[3]!==I?(t=f.i18nTitleKey?I(f.i18nTitleKey):f.title||f.name,s[0]=f.i18nTitleKey,s[1]=f.name,s[2]=f.title,s[3]=I,s[4]=t):t=s[4],s[5]!==u||s[6]!==p||s[7]!==d||s[8]!==f||s[9]!==t||s[10]!==x._key?(n={key:x._key,title:t,schemaType:f,onOpen:u,onRemove:p,referenceElement:d},s[5]=u,s[6]=p,s[7]=d,s[8]=f,s[9]=t,s[10]=x._key,s[11]=n):n=s[11];let $=n;s[12]!==$||s[13]!==m||s[14]!==T||s[15]!==g||s[16]!==E?(i=()=>(g&&!m&&T($),()=>E($.key)),r=[g,m,$,T,E],s[12]=$,s[13]=m,s[14]=T,s[15]=g,s[16]=E,s[17]=i,s[18]=r):(i=s[17],r=s[18]),(0,_.useEffect)(i,r);e:{if(w){a="critical";break e}if(k){a="caution";break e}if(b){a="primary";break e}a="default"}let A=a;s[19]!==I?(o=I("inputs.portable-text.annotation-aria-label"),s[19]=I,s[20]=o):o=s[20];let D=b?"":void 0,z=w?"":void 0,P=k?"":void 0,R=S||void 0,N=h?u:void 0;return s[21]!==N||s[22]!==o||s[23]!==D||s[24]!==z||s[25]!==P||s[26]!==R||s[27]!==y||s[28]!==A?(l=(0,v.jsx)(hG,{$toneKey:A,"aria-label":o,"data-link":D,"data-error":z,"data-warning":P,"data-markers":R,onClick:N,children:y}),s[21]=N,s[22]=o,s[23]=D,s[24]=z,s[25]=P,s[26]=R,s[27]=y,s[28]=A,s[29]=l):l=s[29],l};function h2(e){return"error"===e.level}function h5(e){return"warning"===e.level}function h0(){let e,t,n,i,r,a=(0,j.c)(9),[o]=(0,_.useState)(h7);a[0]!==o?(e=()=>Array.from(o.entries()),a[0]=o,a[1]=e):e=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(t=[],a[2]=t):t=a[2];let[l,s]=(0,_.useReducer)(e,t);a[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,U.A)(s,10,{trailing:!0}),a[3]=n):n=a[3];let d=n;a[4]!==o?(i={add:function(e,t){o.has(e),o.set(e,t),d()},remove:function(e){o.has(e),o.delete(e),d()},update:function(e,t){o.has(e),o.set(e,t),d()}},a[4]=o,a[5]=i):i=a[5];let c=i;return a[6]!==l||a[7]!==c?(r={store:c,snapshot:l},a[6]=l,a[7]=c,a[8]=r):r=a[8],r}function h7(){return new Map}function h3(e,t,n,i){let r,a,o,l=(0,j.c)(10),s=void 0===i?Object.is:i,d=(0,_.useRef)(null),c=(0,_.useRef)(null);l[0]!==t||l[1]!==e||l[2]!==n?(r=()=>{if(null===t||null===e)return;let i=n();return e.add(t,i),d.current=t,c.current=i,()=>{e.remove(t),d.current=null,c.current=null}},a=[t,e,n],l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=a):(r=l[3],a=l[4]),(0,_.useLayoutEffect)(r,a),l[5]!==t||l[6]!==s||l[7]!==e||l[8]!==n?(o=()=>{if(null===t||null===d.current||null===e||t!==d.current)return;let i=n();s(c.current,i)||(e.update(t,i),c.current=i)},l[5]=t,l[6]=s,l[7]=e,l[8]=n,l[9]=o):o=l[9],(0,_.useLayoutEffect)(o)}let h8=(0,_.memo)(function(e){let t,n,i=(0,j.c)(6),{children:r}=e,{store:a,snapshot:o}=h0();return i[0]!==r||i[1]!==o?(t=(0,v.jsx)(S.VN.Provider,{value:o,children:r}),i[0]=r,i[1]=o,i[2]=t):t=i[2],i[3]!==a||i[4]!==t?(n=(0,v.jsx)(S._x.Provider,{value:a,children:t}),i[3]=a,i[4]=t,i[5]=n):n=i[5],n}),h4=[];function h6(){let e=(0,_.useContext)(S.VN);return null===e?(console.warn(Error('No context provided for reporter. Make sure that the component calling "useChangeIndicatorsReportedValues()", is wrapped inside a <ChangeIndicatorsTracker> element')),h4):e}let h9=(e,t,n)=>{let i=(0,_.useContext)(S._x);null===i&&console.warn(Error('No context provided for reporter. Make sure that the component calling "useChangeIndicatorsReporter()", is wrapped inside a <ChangeIndicatorsTracker> element')),h3(i,e,t,n)};function fe(){let e,t=(0,j.c)(2),n=h6();t[0]!==n?(e=n.filter(fn).sort(ft),t[0]=n,t[1]=e):e=t[1];let i=e[0];if(i){let[,e]=i;return e}}function ft(e,t){return t[1].path.length-e[1].path.length}function fn(e){let[,t]=e;return t.hasHover}let fi=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(14),h=(0,_.useRef)(e);m[0]!==e?(t=()=>{h.current=e},n=[e],m[0]=e,m[1]=t,m[2]=n):(t=m[1],n=m[2]),(0,_.useEffect)(t,n),m[3]===Symbol.for("react.memo_cache_sentinel")?(i=e=>h.current?.transformPatches?.(e)??[],m[3]=i):i=m[3];let f=i;m[4]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{h.current.onChange(e)},m[4]=r):r=m[4];let g=r;m[5]===Symbol.for("react.memo_cache_sentinel")?(a=(e,t)=>{h.current.onPathFocus(e,t)},m[5]=a):a=m[5];let y=a;m[6]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{h.current.onPathBlur(e)},m[6]=o):o=m[6];let C=o;m[7]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{h.current.onPathOpen(e)},m[7]=l):l=m[7];let x=l;m[8]===Symbol.for("react.memo_cache_sentinel")?(s=(e,t)=>{h.current.onSetPathCollapsed(e,t)},m[8]=s):s=m[8];let b=s;m[9]===Symbol.for("react.memo_cache_sentinel")?(d=(e,t)=>{h.current.onSetFieldSetCollapsed(e,t)},m[9]=d):d=m[9];let w=d;m[10]===Symbol.for("react.memo_cache_sentinel")?(c=(e,t)=>{h.current.onFieldGroupSelect(e,t)},m[10]=c):c=m[10];let k=c;m[11]===Symbol.for("react.memo_cache_sentinel")?(u={transformPatches:f,onChange:g,onPathFocus:y,onPathBlur:C,onPathOpen:x,onSetPathCollapsed:b,onSetFieldSetCollapsed:w,onFieldGroupSelect:k},m[11]=u):u=m[11];let I=u;return m[12]!==e.children?(p=(0,v.jsx)(S.q4.Provider,{value:I,children:e.children}),m[12]=e.children,m[13]=p):p=m[13],p}
164);function fr(){let e=(0,_.useContext)(S.q4);if(!e)throw Error("Form context not provided");return e}function fa(){return(0,_.useContext)(S.DA)}function fo(e){let t,n,i=(0,j.c)(9),{children:r,activePath:a,EditReferenceLinkComponent:o,onEditReference:l,initialValueTemplateItems:s,disableNew:d}=e;i[0]!==o||i[1]!==a||i[2]!==d||i[3]!==s||i[4]!==l?(t={activePath:a,EditReferenceLinkComponent:o,onEditReference:l,initialValueTemplateItems:s,disableNew:d},i[0]=o,i[1]=a,i[2]=d,i[3]=s,i[4]=l,i[5]=t):t=i[5];let c=t;return i[6]!==r||i[7]!==c?(n=(0,v.jsx)(S.DA.Provider,{value:c,children:r}),i[6]=r,i[7]=c,i[8]=n):n=i[8],n}function fl(e){let t,n,i=(0,j.c)(5);i[0]!==e.id?(t={id:e.id},i[0]=e.id,i[1]=t):t=i[1];let r=t;return i[2]!==e.children||i[3]!==r?(n=(0,v.jsx)(S.k5.Provider,{value:r,children:e.children}),i[2]=e.children,i[3]=r,i[4]=n):n=i[4],n}function fs(){let e,t=(0,j.c)(2),n=function(){let e=(0,_.useContext)(S.k5);if(!e)throw Error("useDocumentId must be used within a DocumentIdProvider");return e.id}();return t[0]!==n?(e=(0,tG.IM)(n),t[0]=n,t[1]=e):e=t[1],e}let fd={placement:"right",fallbackPlacements:["top","bottom"]};function fc(e){let t,n,i=(0,j.c)(14),{group:r}=e,{title:a}=ap(r);if(r.expanded){let e,t,n;return i[0]!==a?(e=(0,v.jsx)(I.az,{padding:2,paddingTop:3,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:a})}),i[0]=a,i[1]=e):e=i[1],i[2]!==r.children?(t=r.children.map((e,t)=>(0,v.jsx)(fp,{action:e,isFirst:0===t,prevIsGroup:r.children[t-1]?.type==="group"},t)),i[2]=r.children,i[3]=t):t=i[3],i[4]!==e||i[5]!==t?(n=(0,v.jsxs)(v.Fragment,{children:[e,t]}),i[4]=e,i[5]=t,i[6]=n):n=i[6],n}let o=r.icon,l=r.tone;return i[7]!==r.children?(t=r.children.map((e,t)=>(0,v.jsx)(fp,{action:e,isFirst:0===t,prevIsGroup:r.children[t-1]?.type==="group"},t)),i[7]=r.children,i[8]=t):t=i[8],i[9]!==r.icon||i[10]!==r.tone||i[11]!==t||i[12]!==a?(n=(0,v.jsx)(io.r,{icon:o,popover:fd,text:a,tone:l,children:t}),i[9]=r.icon,i[10]=r.tone,i[11]=t,i[12]=a,i[13]=n):n=i[13],n}function fu(e){let t,n,i,r,a=(0,j.c)(15),{action:o}=e,{title:l}=ap(o);a[0]!==o?(t=()=>{o.onAction()},a[0]=o,a[1]=t):t=a[1];let s=t;a[2]!==o.disabled?(n="object"==typeof o.disabled&&(0,v.jsx)(I.EY,{size:1,children:o.disabled.reason}),a[2]=o.disabled,a[3]=n):n=a[3];let d=n,c=!!o.disabled,u=o.iconRight||(o.selected?eT.Nrt:void 0);return a[4]!==o.icon||a[5]!==o.selected||a[6]!==o.tone||a[7]!==s||a[8]!==c||a[9]!==u||a[10]!==l?(i=(0,v.jsx)(tL.Dr,{disabled:c,icon:o.icon,iconRight:u,onClick:s,pressed:o.selected,text:l,tone:o.tone}),a[4]=o.icon,a[5]=o.selected,a[6]=o.tone,a[7]=s,a[8]=c,a[9]=u,a[10]=l,a[11]=i):i=a[11],a[12]!==d||a[13]!==i?(r=(0,v.jsx)(eds,{content:d,placement:"left",children:i}),a[12]=d,a[13]=i,a[14]=r):r=a[14],r}function fp(e){let t,n,i,r=(0,j.c)(15),{action:a,isFirst:o,prevIsGroup:l}=e;if("divider"===a.type){let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.Nj,{}),r[0]=e):e=r[0],e}if("group"===a.type){let e,t,n;return r[1]!==o?(e=!o&&(0,v.jsx)(I.Nj,{}),r[1]=o,r[2]=e):e=r[2],r[3]!==a?(t=(0,v.jsx)(fc,{group:a}),r[3]=a,r[4]=t):t=r[4],r[5]!==e||r[6]!==t?(n=(0,v.jsxs)(v.Fragment,{children:[e,t]}),r[5]=e,r[6]=t,r[7]=n):n=r[7],n}return r[8]!==l?(t=l&&(0,v.jsx)(I.Nj,{}),r[8]=l,r[9]=t):t=r[9],r[10]!==a?(n=(0,v.jsx)(fu,{action:a}),r[10]=a,r[11]=n):n=r[11],r[12]!==t||r[13]!==n?(i=(0,v.jsxs)(v.Fragment,{children:[t,n]}),r[12]=t,r[13]=n,r[14]=i):i=r[14],i}let fm={placement:"top"};function fh(e){return"renderAsButton"in e&&e.renderAsButton}let ff=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(20),{nodes:c,onMenuOpenChange:u}=e,[p,m]=(0,_.useState)(!1);d[0]!==u?(t=()=>{u(!0),m(!0)},d[0]=u,d[1]=t):t=d[1];let h=t;d[2]!==u?(n=()=>{u(!1),m(!1)},d[2]=u,d[3]=n):n=d[3];let f=n;d[4]!==c?(i=c.filter(fh),d[4]=c,d[5]=i):i=d[5];let g=i;d[6]!==c?(r=c.filter(fx),d[6]=c,d[7]=r):r=d[7];let y=r;e:{let e=y.length;if(0===e||e>1){a=y;break e}let t=y[0];if("group"===t.type){let e;d[8]!==t?(e=[{...t,expanded:!0}],d[8]=t,d[9]=e):e=d[9],a=e;break e}a=y}let C=a;d[10]!==C?(o=C.length?[{type:"group",children:C,icon:eT.riS,title:"Field actions"}]:[],d[10]=C,d[11]=o):o=d[11],d[12]!==g||d[13]!==o?(l=[...o,...g],d[12]=g,d[13]=o,d[14]=l):l=d[14];let x=l;return d[15]!==f||d[16]!==h||d[17]!==p||d[18]!==x?(s=(0,v.jsx)(v.Fragment,{children:x.map((e,t)=>(0,v.jsx)(fg,{node:e,onOpen:h,onClose:f,open:p},t))}),d[15]=f,d[16]=h,d[17]=p,d[18]=x,d[19]=s):s=d[19],s}),fg=(0,_.memo)(function(e){let t,n=(0,j.c)(12),{node:i,onOpen:r,onClose:a,open:o}=e;if("divider"===i.type){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.Zp,{borderLeft:!0,flex:"none"}),n[0]=e):e=n[0],e}
164if("action"===i.type){let e,t;return n[1]!==i.title?(e={...fm,content:i.title},n[1]=i.title,n[2]=e):e=n[2],n[3]!==i.icon||n[4]!==i.onAction||n[5]!==e?(t=(0,v.jsx)(tL.$n,{icon:i.icon,mode:"bleed",onClick:i.onAction,tooltipProps:e}),n[3]=i.icon,n[4]=i.onAction,n[5]=e,n[6]=t):t=n[6],t}return n[7]!==i||n[8]!==a||n[9]!==r||n[10]!==o?(t=(0,v.jsx)(fC,{node:i,onOpen:r,onClose:a,open:o}),n[7]=i,n[8]=a,n[9]=r,n[10]=o,n[11]=t):t=n[11],t}),fy={constrainSize:!0,placement:"right",portal:!0,fallbackPlacements:["top","bottom"]};function fC(e){let t,n,i,r,a,o=(0,j.c)(16),{node:l,onOpen:s,onClose:d,open:c}=e,{title:u}=ap(l),p=c?void 0:u;o[0]!==l.title?(t={...fm,content:l.title},o[0]=l.title,o[1]=t):t=o[1],o[2]!==l.icon||o[3]!==p||o[4]!==t?(n=(0,v.jsx)(tL.$n,{"aria-label":p,"data-testid":"field-actions-trigger",icon:l.icon,mode:"bleed",tabIndex:0,tooltipProps:t}),o[2]=l.icon,o[3]=p,o[4]=t,o[5]=n):n=o[5];let m=(0,_.useId)();return o[6]!==l.children?(i=l.children.map((e,t)=>(0,v.jsx)(fp,{action:e,isFirst:0===t,prevIsGroup:l.children[t-1]?.type==="group"},t)),o[6]=l.children,o[7]=i):i=o[7],o[8]!==i?(r=(0,v.jsx)(I.W1,{children:i}),o[8]=i,o[9]=r):r=o[9],o[10]!==d||o[11]!==s||o[12]!==n||o[13]!==m||o[14]!==r?(a=(0,v.jsx)(tL.IU,{button:n,id:m,menu:r,onOpen:s,onClose:d,popover:fy}),o[10]=d,o[11]=s,o[12]=n,o[13]=m,o[14]=r,o[15]=a):a=o[15],a}function fx(e){return!fh(e)}let fb=(0,_.memo)(function(e){let t,n,i,r,a,o=(0,j.c)(20),{actions:l,children:s,path:d,focused:c,__internal_comments:u,__internal_slot:p}=e,{onMouseEnter:m,onMouseLeave:h,store:f}=(0,_.useContext)(S.pd);o[0]!==f||o[1]!==d?(t=()=>{let[e]=f.getSnapshot();return r6||!!e&&on(d)===e},o[0]=f,o[1]=d,o[2]=t):t=o[2];let g=(0,_.useSyncExternalStore)(f.subscribe,t);o[3]!==m||o[4]!==d?(n=()=>{m(d)},o[3]=m,o[4]=d,o[5]=n):n=o[5];let y=n;o[6]!==h||o[7]!==d?(i=()=>{h(d)},o[6]=h,o[7]=d,o[8]=i):i=o[8];let C=i;o[9]!==u||o[10]!==p||o[11]!==l||o[12]!==c||o[13]!==y||o[14]!==C||o[15]!==g?(r={actions:l,focused:c,hovered:g,__internal_comments:u,__internal_slot:p,onMouseEnter:y,onMouseLeave:C},o[9]=u,o[10]=p,o[11]=l,o[12]=c,o[13]=y,o[14]=C,o[15]=g,o[16]=r):r=o[16];let x=r;return o[17]!==s||o[18]!==x?(a=(0,v.jsx)(S.vV.Provider,{value:x,children:s}),o[17]=s,o[18]=x,o[19]=a):a=o[19],a});fb.displayName="Memo(FieldActionsProvider)";let fv=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(25),{actions:u,documentId:p,documentType:m,onActions:h,path:f,schemaType:g}=e,y=u.length,C=(0,_.useRef)(y);c[0]!==y?(t=()=>Array.from(Array(y)),c[0]=y,c[1]=t):t=c[1];let[x,b]=(0,_.useState)(t),w=(0,_.useRef)(x);c[2]===Symbol.for("react.memo_cache_sentinel")?(n=(e,t)=>{b(n=>{let i=[...n];return i[e]=t,i})},c[2]=n):n=c[2];let k=n;if(c[3]!==x||c[4]!==h?(i=()=>{w.current!==x&&(w.current=x,h(function e(t){return t.filter(Boolean).filter(e=>!("hidden"in e)||!0!==e.hidden).map(t=>"group"===t.type?{...t,children:e(t.children)}:t)}(x)))},r=[x,h],c[3]=x,c[4]=h,c[5]=i,c[6]=r):(i=c[5],r=c[6]),(0,_.useEffect)(i,r),c[7]!==y?(a=()=>{if(C.current!==y){let e=Array.from(Array(y));for(let t=0;t<y;t++)e[t]=w.current[t];C.current=y,b(e),w.current=e}},o=[y],c[7]=y,c[8]=a,c[9]=o):(a=c[8],o=c[9]),(0,_.useEffect)(a,o),c[10]!==u||c[11]!==p||c[12]!==m||c[13]!==f||c[14]!==g){let e;c[16]!==p||c[17]!==m||c[18]!==f||c[19]!==g?(e=(e,t)=>(function({action:e,documentId:t,documentType:n,index:i,path:r,schemaType:a,setFieldAction:o}){let{useAction:l}=e;return(0,_.memo)(function(){let e,s,d,c=(0,j.c)(4);c[0]===Symbol.for("react.memo_cache_sentinel")?(e={documentId:t,documentType:n,path:r,schemaType:a},c[0]=e):e=c[0];let u=ai(l(e));return c[1]!==u?(s=()=>{o(i,u)},d=[u],c[1]=u,c[2]=s,c[3]=d):(s=c[2],d=c[3]),(0,_.useEffect)(s,d),null})})({action:e,documentId:p,documentType:m,index:t,path:f,schemaType:g,setFieldAction:k}),c[16]=p,c[17]=m,c[18]=f,c[19]=g,c[20]=e):e=c[20],l=u.map(e),c[10]=u,c[11]=p,c[12]=m,c[13]=f,c[14]=g,c[15]=l}else l=c[15];let S=l;return c[21]!==S?(s=S.map(fj),c[21]=S,c[22]=s):s=c[22],c[23]!==s?(d=(0,v.jsx)(v.Fragment,{children:s}),c[23]=s,c[24]=d):d=c[24],d});function fj(e,t){return(0,v.jsx)(e,{},t)}function fw(){return(0,_.useContext)(S.vV)}let f_=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(17),{children:c}=e,[u]=(0,_.useState)(fk);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],d[0]=t):t=d[0];let p=(0,_.useRef)(t);d[1]!==u?(n=e=>
164{let t=on(e);if(!p.current.includes(t))for(let e of(p.current=[t,...p.current],u))e()},d[1]=u,d[2]=n):n=d[2];let m=n;d[3]!==u?(i=e=>{let t=on(e);if(p.current.includes(t))for(let e of(p.current=p.current.filter(e=>e!==t),u))e()},d[3]=u,d[4]=i):i=d[4];let h=i;d[5]!==u?(r=e=>(u.add(e),()=>{u.delete(e)}),d[5]=u,d[6]=r):r=d[6],d[7]===Symbol.for("react.memo_cache_sentinel")?(a=()=>p.current,d[7]=a):a=d[7],d[8]!==r?(o={subscribe:r,getSnapshot:a},d[8]=r,d[9]=o):o=d[9];let f=o;d[10]!==m||d[11]!==h||d[12]!==f?(l={store:f,onMouseEnter:m,onMouseLeave:h},d[10]=m,d[11]=h,d[12]=f,d[13]=l):l=d[13];let g=l;return d[14]!==c||d[15]!==g?(s=(0,v.jsx)(S.pd.Provider,{value:g,children:c}),d[14]=c,d[15]=g,d[16]=s):s=d[16],s});function fk(){return new Set}function fS(e,t,n){let i,r,a=(0,j.c)(5),o=void 0===n?nZ:n,l=(0,_.useRef)(void 0);a[0]!==o||a[1]!==e||a[2]!==t?(i=()=>{o(l.current,e)||(t(l.current,e),l.current=e)},r=[o,e,t],a[0]=o,a[1]=e,a[2]=t,a[3]=i,a[4]=r):(i=a[3],r=a[4]),(0,_.useEffect)(i,r)}function fI(e,t){let n,i=(0,j.c)(2);return i[0]!==e?(n=(t,n)=>{e.current&&!t&&n&&(0,il.A)(e.current,{scrollMode:"always"})},i[0]=e,i[1]=n):n=i[1],fS(t,n)}function fT(e){let t,n,i,r,a,o,l=(0,j.c)(27),s=(0,_.useRef)(null),{schemaType:d,path:c,open:u,inputId:p,children:m,inputProps:h}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],l[0]=t):t=l[0];let[f,g]=(0,_.useState)(t),y=fs();fI(s,u),l[1]===Symbol.for("react.memo_cache_sentinel")?(n=(e,t)=>{!e&&t&&s.current&&s.current.focus()},l[1]=n):n=l[1],fS(h.focused,n),l[2]!==y||l[3]!==c||l[4]!==e.actions||l[5]!==d?(i=y&&e.actions&&e.actions.length>0&&(0,v.jsx)(fv,{actions:e.actions,documentId:y,documentType:d.name,onActions:g,path:c,schemaType:d}),l[2]=y,l[3]=c,l[4]=e.actions,l[5]=d,l[6]=i):i=l[6];let C=!!e.inputProps.focused;return l[7]!==m||l[8]!==f||l[9]!==p||l[10]!==e.__internal_comments||l[11]!==e.__internal_slot||l[12]!==e.description||l[13]!==e.level||l[14]!==e.presence||l[15]!==e.schemaType.deprecated||l[16]!==e.title||l[17]!==e.validation?(r=(0,v.jsx)(xY,{__internal_comments:e.__internal_comments,__internal_slot:e.__internal_slot,__unstable_headerActions:f,__unstable_presence:e.presence,description:e.description,inputId:p,level:e.level,title:e.title,validation:e.validation,deprecated:e.schemaType.deprecated,children:m}),l[7]=m,l[8]=f,l[9]=p,l[10]=e.__internal_comments,l[11]=e.__internal_slot,l[12]=e.description,l[13]=e.level,l[14]=e.presence,l[15]=e.schemaType.deprecated,l[16]=e.title,l[17]=e.validation,l[18]=r):r=l[18],l[19]!==f||l[20]!==c||l[21]!==C||l[22]!==r?(a=(0,v.jsx)(fb,{actions:f,focused:C,path:c,children:r}),l[19]=f,l[20]=c,l[21]=C,l[22]=r,l[23]=a):a=l[23],l[24]!==i||l[25]!==a?(o=(0,v.jsxs)(v.Fragment,{children:[i,a]}),l[24]=i,l[25]=a,l[26]=o):o=l[26],o}function fE(e,t){return(0,V.A)(e.options,t)}let f$=["array","file","image","reference","slug"],fA=["asset","crop","hotspot","_ref","_weak","media"],fD=["tags"],fz=["slug"];function fP(e,t){if(!e||t.has(e))return[];t.add(e);let n=e.type?fP(e.type,t):[];return[e,...n]}let fR=[];function fN(e){let t,n,i,r,a=(0,j.c)(20),o=fs(),[l,s]=(0,_.useState)(fR),d=!!e.inputProps.focused;a[0]!==o||a[1]!==e.actions||a[2]!==e.path||a[3]!==e.schemaType?(t=o&&e.actions&&e.actions.length>0&&(0,v.jsx)(fv,{actions:e.actions,documentId:o,documentType:e.schemaType.name,onActions:s,path:e.path,schemaType:e.schemaType}),a[0]=o,a[1]=e.actions,a[2]=e.path,a[3]=e.schemaType,a[4]=t):t=a[4];let c=!!e.inputProps.focused;return a[5]!==e.__internal_comments||a[6]!==e.__internal_slot||a[7]!==e.children||a[8]!==e.path||a[9]!==l||a[10]!==d?(n=(0,v.jsx)(fb,{__internal_slot:e.__internal_slot,__internal_comments:e.__internal_comments,actions:l,focused:d,path:e.path,children:e.children}),a[5]=e.__internal_comments,a[6]=e.__internal_slot,a[7]=e.children,a[8]=e.path,a[9]=l,a[10]=d,a[11]=n):n=a[11],a[12]!==e.inputProps.changed||a[13]!==e.path||a[14]!==c||a[15]!==n?(i=(0,v.jsx)(S1,{hasFocus:c,isChanged:e.inputProps.changed,path:e.path,children:n}),a[12]=e.inputProps.changed,a[13]=e.path,a[14]=c,a[15]=n,a[16]=i):i=a[16],a[17]!==t||a[18]!==i?(r=(0,v.jsxs)(v.Fragment,{children:[t,i]}),a[17]=t,a[18]=i,a[19]=r):r=a[19],r}function fO(e){let t,n,i,r=(0,j.c)(15),a=fs(),[o,l]=(0,_.useState)(fR),s=!!e.inputProps.focused;return r[0]!==a||r[1]!==e.actions||r[2]!==e.path||r[3]!==e.schemaType?(t=a&&e.actions&&e.actions.length>0&&(0,v.jsx)(fv,{actions:e.actions,documentId:a,documentType:e.schemaType.n
164ame,onActions:l,path:e.path,schemaType:e.schemaType}),r[0]=a,r[1]=e.actions,r[2]=e.path,r[3]=e.schemaType,r[4]=t):t=r[4],r[5]!==e.__internal_comments||r[6]!==e.__internal_slot||r[7]!==e.children||r[8]!==e.path||r[9]!==o||r[10]!==s?(n=(0,v.jsx)(fb,{__internal_slot:e.__internal_slot,__internal_comments:e.__internal_comments,actions:o,focused:s,path:e.path,children:e.children}),r[5]=e.__internal_comments,r[6]=e.__internal_slot,r[7]=e.children,r[8]=e.path,r[9]=o,r[10]=s,r[11]=n):n=r[11],r[12]!==t||r[13]!==n?(i=(0,v.jsxs)(v.Fragment,{children:[t,n]}),r[12]=t,r[13]=n,r[14]=i):i=r[14],i}function fV(e){let t,n,i,r,a,o,l=(0,j.c)(35),[s,d]=(0,_.useState)(fR),c=fs(),u=!!e.inputProps.focused;l[0]!==c||l[1]!==e.actions||l[2]!==e.path||l[3]!==e.schemaType?(t=c&&e.actions&&e.actions.length>0&&(0,v.jsx)(fv,{actions:e.actions,documentId:c,documentType:e.schemaType.name,onActions:d,path:e.path,schemaType:e.schemaType}),l[0]=c,l[1]=e.actions,l[2]=e.path,l[3]=e.schemaType,l[4]=t):t=l[4];let p=`field-${e.inputId}`;return l[5]!==e.children||l[6]!==e.inputProps.changed||l[7]!==e.path||l[8]!==u?(n=(0,v.jsx)(S1,{hasFocus:u,isChanged:e.inputProps.changed,path:e.path,children:e.children}),l[5]=e.children,l[6]=e.inputProps.changed,l[7]=e.path,l[8]=u,l[9]=n):n=l[9],l[10]!==e.__internal_comments||l[11]!==e.__internal_slot||l[12]!==e.description||l[13]!==e.inputId||l[14]!==e.level||l[15]!==e.presence||l[16]!==e.schemaType.deprecated||l[17]!==e.title||l[18]!==e.validation||l[19]!==s||l[20]!==n?(i=(0,v.jsx)(xY,{__internal_slot:e.__internal_slot,__internal_comments:e.__internal_comments,__unstable_headerActions:s,__unstable_presence:e.presence,description:e.description,inputId:e.inputId,level:e.level,title:e.title,validation:e.validation,deprecated:e.schemaType.deprecated,children:n}),l[10]=e.__internal_comments,l[11]=e.__internal_slot,l[12]=e.description,l[13]=e.inputId,l[14]=e.level,l[15]=e.presence,l[16]=e.schemaType.deprecated,l[17]=e.title,l[18]=e.validation,l[19]=s,l[20]=n,l[21]=i):i=l[21],l[22]!==p||l[23]!==i?(r=(0,v.jsx)("div",{"data-testid":p,children:i}),l[22]=p,l[23]=i,l[24]=r):r=l[24],l[25]!==e.__internal_comments||l[26]!==e.__internal_slot||l[27]!==e.path||l[28]!==s||l[29]!==u||l[30]!==r?(a=(0,v.jsx)(fb,{__internal_slot:e.__internal_slot,__internal_comments:e.__internal_comments,actions:s,focused:u,path:e.path,children:r}),l[25]=e.__internal_comments,l[26]=e.__internal_slot,l[27]=e.path,l[28]=s,l[29]=u,l[30]=r,l[31]=a):a=l[31],l[32]!==t||l[33]!==a?(o=(0,v.jsxs)(v.Fragment,{children:[t,a]}),l[32]=t,l[33]=a,l[34]=o):o=l[34],o}function fM(e){let t,n,i,r,a,o=(0,j.c)(36),[l,s]=(0,_.useState)(fR),d=fs(),c=!!e.inputProps.focused,u=e.schemaType.options?.disableActions||fR;o[0]!==u||o[1]!==e.actions?(t=e.actions?.filter(e=>"pasteField"===e.name?!u.includes("add"):"copyField"!==e.name||!u.includes("copy")),o[0]=u,o[1]=e.actions,o[2]=t):t=o[2];let p=t;o[3]!==p||o[4]!==d||o[5]!==e.actions||o[6]!==e.path||o[7]!==e.schemaType?(n=d&&e.actions&&e.actions.length>0&&(0,v.jsx)(fv,{actions:p||fR,documentId:d,documentType:e.schemaType.name,onActions:s,path:e.path,schemaType:e.schemaType}),o[3]=p,o[4]=d,o[5]=e.actions,o[6]=e.path,o[7]=e.schemaType,o[8]=n):n=o[8];let m=`field-${e.inputId}`;return o[9]!==e.__internal_comments||o[10]!==e.__internal_slot||o[11]!==e.children||o[12]!==e.collapsed||o[13]!==e.collapsible||o[14]!==e.description||o[15]!==e.inputId||o[16]!==e.level||o[17]!==e.onCollapse||o[18]!==e.onExpand||o[19]!==e.presence||o[20]!==e.schemaType.deprecated||o[21]!==e.title||o[22]!==e.validation||o[23]!==l||o[24]!==m?(i=(0,v.jsx)(xG,{__internal_comments:e.__internal_comments,__internal_slot:e.__internal_slot,__unstable_headerActions:l,__unstable_presence:e.presence,collapsed:e.collapsed,collapsible:e.collapsible,"data-testid":m,description:e.description,level:e.level,onCollapse:e.onCollapse,onExpand:e.onExpand,title:e.title,validation:e.validation,inputId:e.inputId,deprecated:e.schemaType.deprecated,children:e.children}),o[9]=e.__internal_comments,o[10]=e.__internal_slot,o[11]=e.children,o[12]=e.collapsed,o[13]=e.collapsible,o[14]=e.description,o[15]=e.inputId,o[16]=e.level,o[17]=e.onCollapse,o[18]=e.onExpand,o[19]=e.presence,o[20]=e.schemaType.deprecated,o[21]=e.title,o[22]=e.validation,o[23]=l,o[24]=m,o[25]=i):i=o[25],o[26]!==e.__internal_comments||o[27]!==e.__internal_slot||o[28]!==e.path||o[29]!==l||o[30]!==c||o[31]!==i?(r=(0,v.jsx)(fb,{__internal_slot:e.__internal_slot,__internal_comments:e.__internal_comments,actions:l,focu
164sed:c,path:e.path,children:i}),o[26]=e.__internal_comments,o[27]=e.__internal_slot,o[28]=e.path,o[29]=l,o[30]=c,o[31]=i,o[32]=r):r=o[32],o[33]!==n||o[34]!==r?(a=(0,v.jsxs)(v.Fragment,{children:[n,r]}),o[33]=n,o[34]=r,o[35]=a):a=o[35],a}function fL(e){let t,n,i,r,a,o=(0,j.c)(32),[l,s]=(0,_.useState)(fR),d=fs(),c=!!e.inputProps.focused;if(o[0]!==e.inputProps.members||o[1]!==e.presence){let n=e.inputProps.members.find(fF);t=n?.open?e.presence:e.presence.concat(n?.field.presence||fR),o[0]=e.inputProps.members,o[1]=e.presence,o[2]=t}else t=o[2];let u=t;return o[3]!==d||o[4]!==e.actions||o[5]!==e.path||o[6]!==e.schemaType?(n=d&&e.actions&&e.actions.length>0&&(0,v.jsx)(fv,{actions:e.actions,documentId:d,documentType:e.schemaType.name,onActions:s,path:e.path,schemaType:e.schemaType}),o[3]=d,o[4]=e.actions,o[5]=e.path,o[6]=e.schemaType,o[7]=n):n=o[7],o[8]!==e.__internal_comments||o[9]!==e.__internal_slot||o[10]!==e.children||o[11]!==e.collapsed||o[12]!==e.collapsible||o[13]!==e.description||o[14]!==e.inputId||o[15]!==e.level||o[16]!==e.onCollapse||o[17]!==e.onExpand||o[18]!==e.schemaType.deprecated||o[19]!==e.title||o[20]!==e.validation||o[21]!==l||o[22]!==u?(i=(0,v.jsx)(xG,{__internal_comments:e.__internal_comments,__internal_slot:e.__internal_slot,__unstable_headerActions:l,__unstable_presence:u,collapsed:e.collapsed,collapsible:e.collapsible,description:e.description,level:e.level,onCollapse:e.onCollapse,onExpand:e.onExpand,title:e.title,validation:e.validation,inputId:e.inputId,deprecated:e.schemaType.deprecated,children:e.children}),o[8]=e.__internal_comments,o[9]=e.__internal_slot,o[10]=e.children,o[11]=e.collapsed,o[12]=e.collapsible,o[13]=e.description,o[14]=e.inputId,o[15]=e.level,o[16]=e.onCollapse,o[17]=e.onExpand,o[18]=e.schemaType.deprecated,o[19]=e.title,o[20]=e.validation,o[21]=l,o[22]=u,o[23]=i):i=o[23],o[24]!==e.path||o[25]!==l||o[26]!==c||o[27]!==i?(r=(0,v.jsx)(fb,{actions:l,focused:c,path:e.path,children:i}),o[24]=e.path,o[25]=l,o[26]=c,o[27]=i,o[28]=r):r=o[28],o[29]!==n||o[30]!==r?(a=(0,v.jsxs)(v.Fragment,{children:[n,r]}),o[29]=n,o[30]=r,o[31]=a):a=o[31],a}function fF(e){return"field"===e.kind&&"hotspot"===e.name}function fB(e){if(e.components?.field)return e.components.field;if((0,eD.oV)(e))return fN;if((0,eD.XK)(e))return fO;let t=fP(e,new Set);return t.some(e=>(0,eD.XK)(e))?fO:t.some(e=>"image"===e.name||"file"===e.name)?fL:t.some(e=>(0,eD.P3)(e))||t.some(e=>"slug"===e.name)?fV:t.some(e=>(0,eD.do)(e))?fT:"object"!==e.jsonType&&"array"!==e.jsonType?fV:fM}function fY(e,t){return t.name===e||!!(t.type&&fY(e,t.type))}let fH=new WeakMap,fU={title:10,subtitle:5,description:1.5},fZ={_id:{weight:1,type:"string"},_type:{weight:1,type:"string"}},fq=["reference","crossDatasetReference","slug"],fW=e=>e?[e,...fW(e.type)]:[],fJ=e=>e?.jsonType==="array"&&e.of.some(e=>fW(e).some(({name:e})=>"block"===e)),fK=e=>fW(e).some(({jsonType:e,name:t})=>"object"===e&&"slug"===t),fG=e=>rZ(e)&&"search"in e&&rZ(e.search);function fX(e){return"u">typeof e&&"name"in e}function fQ(e,t){return fK(e)?[t,"current"].join("."):t}function f1(e,t,n){return fX(e)?(function e(i,r,a,o=[]){if(!i||a>t)return o;let l=fW(i);if(i&&i?.jsonType==="string"||fJ(i)){let e=n(i,r);return"number"==typeof e&&o.push({path:r,weight:e,type:fJ(i)?"pt":"string"}),o}if(fK(i)){let e=n(i,r);return"number"==typeof e&&o.push({path:fQ(i,r),weight:e,type:fJ(i)?"pt":"string"}),o}let s=o;for(let t of l)if("object"===t.jsonType&&t.fields?.length&&!fq.includes(t.name))for(let n of t.fields)s=e(n.type,(0,w.dI)([r,n.name].filter(Boolean)),a+1,s);else if("array"===t.jsonType&&t.of?.length)for(let n of t.of)s=e(n,`${r}[]`,a+1,s);return s})(e,"",0).reduce((e,{path:t,weight:n,type:i})=>(e[t]={weight:n,type:i,path:t},e),{}):{}}let f2=e=>{let t=fW(e).map(e=>e.options).find(fG);return"number"==typeof t?.search?.weight?t.search.weight:null},f5=e=>fW(e).some(e=>e.hidden)?0:null,f0=e=>"number"==typeof(f2(e)??f5(e))?null:1,f7=new WeakMap,f3={title:10,subtitle:5,description:1.5},f8={_id:{weight:1},_type:{weight:1}},f4=["reference","crossDatasetReference","slug","globalDocumentReference"],f6=e=>e?[e,...f6(e.type)]:[],f9=e=>f6(e).some(({jsonType:e,name:t})=>"object"===e&&"slug"===t),ge=e=>rZ(e)&&"search"in e&&rZ(e.search);function gt(e){return"u">typeof e&&"name"in e}function gn(e,t){return f9(e)?[t,"current"].join("."):t}function gi(e,t,n){return gt(e)?(function e(i,r,a,o=[]){if(!i||a>t)return o;let l=f6(i);if(i&&i?.jsonType==="string"||i?.jsonType==="array"&&i.of.some(e=>f6(e).some(({name:e})=>"block"===e))){let e=n(i,r);
164return"number"==typeof e&&o.push({path:r,weight:e}),o}if(f9(i)){let e=n(i,r);return"number"==typeof e&&o.push({path:gn(i,r),weight:e}),o}let s=o;for(let t of l)if("object"===t.jsonType&&t.fields?.length&&!f4.includes(t.name))for(let n of t.fields)s=e(n.type,(0,w.dI)([r,n.name].filter(Boolean)),a+1,s);else if("array"===t.jsonType&&t.of?.length)for(let n of t.of)s=e(n,`${r}[]`,a+1,s);return s})(e,"",0).reduce((e,{path:t,weight:n,type:i})=>(e[t]={weight:n,type:i,path:t},e),{}):{}}let gr=e=>{let t=f6(e).map(e=>e.options).find(ge);return"number"==typeof t?.search?.weight?t.search.weight:null},ga=e=>f6(e).some(e=>e.hidden)?0:null,go=e=>"number"==typeof(gr(e)??ga(e))?null:1,gl=e=>"object"===e.jsonType,gs=(e,t=[])=>e.getTypeNames().map(t=>e.get(t)).filter(r$).filter(e=>!!(e.type&&"document"===e.type.name)&&!(e.name.startsWith("sanity.")&&"sanity.previewUrlSecret"!==e.name)||t.includes(e.name)).filter(gl),gd=/(?:[^\s"]+|"[^"]*")+/g;function gc(e,t,{perspective:n,sort:i,isCrossDataset:r,tag:a,maxDepth:o,cursor:l,limit:s,params:d,comments:c,filter:u}={}){let p=e.types.map(e=>(function({schemaType:e,maxDepth:t,isCrossDataset:n,processPaths:i=e=>e}){let r=f7.get(e);if(r)return r;let a=gi(e,t,gr),o=gi(e,t,ga),l=gi(e,t,go),s=((e,t,n)=>{let i=e?.preview?.select;if(!i)return null;let r=Object.fromEntries(Object.entries(i).map(([e,t])=>[t.replace(/\.\d+/g,"[]"),e])),a=Object.fromEntries(Object.entries(gi(e,t,go)).map(([e,{type:t}])=>({path:e,type:t})).filter(({path:e})=>r[e]).map(({path:e,type:t})=>[e,{type:t,weight:f3[r[e]]??0}]));return n?Object.fromEntries(Object.entries(r).map(([e,t])=>[e,{path:e,type:"string",weight:f3[t]??0}])):gi(e,t,(e,t)=>{let n=a[gn(e,t)];return n?n.weight:null})})(e,t,n),d={...f8,...l,...o,...s,...a},c={typeName:gt(e)?e.name:e.type,paths:i(Object.entries(d).map(([e,{weight:t}])=>({path:e,weight:t})))};return f7.set(e,c),c})({schemaType:e,maxDepth:o||nY.ab,isCrossDataset:r,processPaths:e=>e.filter(({weight:e})=>1!==e)})).filter(({paths:e})=>0!==e.length).flatMap(({typeName:e,paths:t})=>t.map(t=>({...t,typeName:e}))),m=(0,R.A)(p,e=>[e.path,e.weight].join(":")),h="([@, _id] match text::query($__query) || references($__rawQuery))",f=Object.entries(m).flatMap(([,e])=>e.some(({weight:e})=>0===e)?[]:`boost(_type in ${JSON.stringify(e.map(e=>e.typeName))} && ${e[0].path} match text::query($__query), ${e[0].weight})`).concat(h),g=i??[{field:"_score",direction:"desc"}],y=g.some(({field:e})=>"_score"===e),C=["_type in $__types",y?[]:h,u?`(${u})`:[],e.filter?`(${e.filter})`:[],l??[]].flat(),x=g.map(({field:e})=>e).concat("_type","_id","_originalId").join(", "),b=[`*[${C.join(" && ")}]`,y?["|",`score(${f.join(", ")})`]:[],["|",`order(${(g||[]).map(e=>[e.mapWith?`${e.mapWith}(${e.field})`:e.field,(e.direction||"").toLowerCase()].map(e=>e.trim()).filter(Boolean).join(" ")).join(",")})`],y?"[_score > 0]":[],"[0...$__limit]",`{${x}}`].flat().join(" "),v="string"==typeof t?t:t.query,j={__types:e.types.map(e=>"u">typeof e&&"name"in e?e.name:e.type),__limit:(s??1e3)+1,__query:function(e){let t=(e.match(gd)??[]).map(e=>e.trim()),n=t.findLastIndex(e=>!("u">typeof e&&"-"===e.trim().at(0))&&![e?.at(0),e?.at(-1)].every(e=>'"'===e)),i=t[n];if(0===t.length)return"*";if("u">typeof i&&"*"===i.trim().at(-1)||typeof i>"u")return t.join(" ");let r=[...t];return r.splice(n,1,`${i}*`),r.join(" ")}(v),__rawQuery:v,...d};return{query:[["findability-mvi:5"].concat(c||[]).map(e=>`// ${e}`).join(` 165`),b].join(` 166`),options:{tag:a,perspective:n},params:j,sortOrder:g}}function gu({lastResult:e,sortOrder:t}){if(!e)return;let n=t.some(({field:e})=>"_id"===e);return t.concat(n?[]:{field:"_id",direction:"asc"}).reduce((n,i,r)=>{let a=t.slice(0,r).map(t=>gm(t,e,"==")).concat(gm(i,e)).filter(e=>"u">typeof e).join(" && ");return[n,`(${a})`].filter(e=>"u">typeof e).join(" || ")},void 0)}let gp={asc:">",desc:"<"};function gm(e,t,n=gp[e.direction]){if("_id"!=e.field||"=="!=n)return[e.field,n,JSON.stringify(t[e.field])].join(" ")}function gh(e){return e.replace(/^"(.*)"$/,"$1")}let gf=(0,X.A)([M.A,G.A,q.A]),gg=({mapWith:e,path:t})=>e?`${e}(${t})`:t,gy=/([^!@#$%^&*(),\\/?";:{}|[\]+<>\s-])+/g,gC=/(^[.]+)|([.]+$)/,gx={groqLegacy:(e,t,n)=>function(i,r={}){let{query:a,params:o,options:l,searchSpec:s,terms:d}=function(e,t={}){var n;let i,r,a,{filter:o,params:l,tag:s,maxDepth:d,isCrossDataset:c,__unstable_extendedProjection:u,perspective:p,sort:m,limit:h,comments:f}=t,g=e.types.map(e=>(function({schemaType:e,maxDepth:t,isCrossDataset:n,processPaths:i=e=>e}){let r=fH.get(e);if(r)return r;let a=f1(e,t,f2),o=f1(e,t,f5),l=f1(e,t,f0),s=((e,t,n)=>{let i=e?.preview?.select;if(!i)return null;let r=Object.fromEntries(Object.entries(i).map(([e,t])=>[t.replace(/\.\d+/g,"[]"),e])),a=Object.fromEntries(Object.entries(f1(e,t,f0)).map(([e,{type:t}])=>({path:e,type:t})).filter(({path:e})=>r[e]).map(({path:e,type:t})=>[e,{type:t,weight:fU[r[e]]}]));return n?Object.fromEntries(Object.entries(r).map(([e,t])=>[e,{path:e,type:"string",weight:fU[t]}])):f1(e,t,(e,t)=>{let n=a[fQ(e,t)];return n?n.weight:null})})(e,t,n),d={...fZ,...l,...o,...s,...a},c={typeName:fX(e)?e.name:e.type,paths:i(Object.entries(d).map(([e,{type:t,weight:n}])=>({path:e,weight:n,..."pt"===t&&{mapWith:"pt::text"}})))};return fH.set(e,c),c})({schemaType:e,maxDepth:d||nY.ab,isCrossDataset:c})).filter(({paths:e})=>e.length),y=(n=e.query,i=[],r=n.replace(/("[^"]*")/g,e=>(0,W.A)(e).length>1?(i.push(e),""):e),[...i.map(e=>(0,Q.A)((0,J.A)(e))),...(0,B.A)((0,q.A)(((0,J.A)(r).match(gy)||[]).map(e=>e.replace(gC,""))))]),C=["_type in $__types",...(a=gf(g.map(e=>(e.paths||[]).map(e=>gg(e)))),y.map((e,t)=>a.map(e=>`${e} match $t${t}`)).filter(e=>e.length>0).map(e=>`(${e.join(" || ")})`)),o?`(${o})`:"",e.filter?`(${e.filter}
166)`:""].filter(Boolean),x=t.skipSortByScore?[]:g.map(e=>{let n=`_type == "${e.typeName}" => `;if(t.skipSortByScore)return;let i=`{ ${e.paths.map((e,t)=>`"w${t}": ${gg(e)}`)} }`;return`${n}${i}`}),b=(m||[{field:"_id",direction:"asc"}]).map(e=>[e.mapWith?`${e.mapWith}(${e.field})`:e.field,(e.direction||"").toLowerCase()].map(e=>e.trim()).filter(Boolean).join(" ")).join(","),v=["_type","_id","_originalId"],j=x.length>0?`...select(${x.join(`, 167`)})`:"",w=v.join(", ")+(j?`, ${j}`:""),_=`*[${C.join(" && ")}]| order(${b})[0...$__limit]{${w}}`;if(u){let e=v.concat(u).join(", ");_=`*[${C.join(" && ")}]{${e}}|order(${b})[0...$__limit]{${w}}`}let k=["findability-mvi:4"].concat(f||[]).map(e=>`// ${e}`).join(` 168`);return{query:k?`${k} 169${_}`:_,params:{...y.reduce((e,t,n)=>(e[`t${n}`]=`${t}*`,e),{}),__types:g.map(e=>e.typeName),__limit:h??1e3,...l},options:{tag:s,perspective:p},searchSpec:g,terms:y}}("string"==typeof i?{query:i,types:e}:i.types.length?i:{...i,types:e},{...n,...r});return oj(t,ls(l?.perspective)?ll.apiVersion:void 0).observable.fetch(a,o,l).pipe(n.unique?(0,eV.T)(rO):(0,e5.M)(),(0,eV.T)(e=>(function(e,t,n=[]){let i=(0,Z.A)(e,e=>e.typeName);return t.map((e,r)=>{let a=(i[e._type].paths||[])?.map((t,i)=>{let r,a="string"==typeof(r=e[`w${i}`])?r:JSON.stringify(r);if(!a)return{path:t.path,score:0,why:"No match"};let[o,l]=((e,t)=>{var n,i,r;let a,o,l,s,d,c,u,{phrases:p,words:m}=function(e){let t=(0,B.A)(e.map(J.A)),[n,i]=(0,P.A)(t,e=>/^".*"$/.test(e));return{phrases:(0,B.A)(n).map(J.A).map(gh),words:(0,B.A)(i.map(J.A))}}(e),[h,f]=(n=p,a=t.toLowerCase().trim(),o=0,l=0,n.forEach(e=>{a.includes(e)&&(o+=e.length/a.length,l+=e.length)}),1===o?[1,"[Phrase] Exact match"]:[o/2,`[Phrase] Matched ${l} of ${a.length} characters`]),[g,y]=(i=m,r=t,s=(0,B.A)((0,q.A)((0,W.A)((0,J.A)(r)))),d=(0,K.A)(i,s),c=(0,G.A)(s,i),1==(u=d.length/c.length)?[1,"[Word] Exact match"]:[u/2,`[Word] Matched ${d.length} of ${c.length} terms: [${d.join(", ")}]`]);return[h+g,[y,f].join(", ")]})(n,a);return{path:t.path,score:o*t.weight,why:`${l} (*${t.weight})`}}),o=a.reduce((e,t)=>e+t.score,0);return{hit:e,resultIndex:t.length-r,score:o,stories:a}})})(s,e,d)),r?.skipSortByScore?(0,e5.M)():(0,eV.T)(e=>(0,ee.A)(e,e=>-e.score)),(0,eV.T)(e=>({type:"weighted",hits:e})))},groq2024:(e,t,n)=>function(i,r={}){let{query:a,params:o,options:l,sortOrder:s}=gc("string"==typeof i?{query:i,types:e}:i.types.length?i:{...i,types:e},i,{...n,...r});return t.observable.fetch(a,o,l).pipe((0,eV.T)(e=>{let t="u">typeof r.limit&&e.length>r.limit,n=t?e.at(-2):e.at(-1);return{type:"groq2024",hits:e.map(e=>({hit:e})).slice(0,r.limit),nextCursor:t?gu({lastResult:n,sortOrder:s}):void 0}}))}},gb=(e,t,n)=>(0,gx[n.strategy??"groqLegacy"])(e,ls(n?.perspective)?oj(t,ll.apiVersion):t,n),gv={isLoading:!0,settings:{partialIndexSettings:{maxFieldDepth:0}}},gj=new Map;function gw(e){let t,n,i=(0,j.c)(4),r=cY().search?.unstable_partialIndexing?.enabled,a=el0(ob),o=e||a;i[0]!==o?(t=o.config(),i[0]=o,i[1]=t):t=i[1];let l=t.dataset;r||gj.set(l,(0,eP.of)(gv.settings)),gj.has(l)||gj.set(l,(function({client:e}){let{projectId:t,dataset:n}=e.config();return e.observable.request({uri:`/projects/${t}/datasets/${n}/settings/indexing`,tag:"search.getPartialIndexSettings"})})({client:o}).pipe((0,e1.t)())),i[2]!==l?(n=gj.get(l).pipe((0,eV.T)(gk),(0,tr.Z)(gv),(0,eY.W)(g_)),i[2]=l,i[3]=n):n=i[3];let s=(0,tF.J)(n,gv)?.settings?.partialIndexSettings?.maxFieldDepth;return(0,et.A)(s)?Math.min(s,nY.ab):nY.ab}function g_(e){return console.error(e),(0,eP.of)({isLoading:!1,enabled:!0,settings:{partialIndexSettings:{maxFieldDepth:0}}})}function gk(e){return{isLoading:!1,settings:e}}function gS(e){let t,n,i=(0,j.c)(5);i[0]!==e.value?(t={value:e.value},i[0]=e.value,i[1]=t):t=i[1];let r=t;return i[2]!==e.children||i[3]!==r?(n=(0,v.jsx)(S.xP.Provider,{value:r,children:e.children}),i[2]=e.children,i[3]=r,i[4]=n):n=i[4],n}function gI(e){let t=(0,w.p0)(e),n=(0,_.useContext)(S.xP);if(!n)throw Error("useFormValue must be used within a FormValueProvider");return oi(n?.value,t)}let gT={warning:"caution",error:"critical"},gE=(0,eI.I4)(I.az).withConfig({displayName:"SuffixBox",componentId:"sc-f6q3pa-0"})`border-top:1px solid var(--card-border-color);`;function g$(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(31);f[0]!==e?({children:t,status:r,suffix:i,title:a,...n}=e,f[0]=e,f[1]=t,f[2]=n,f[3]=i,f[4]=r,f[5]=a):(t=f[1],n=f[2],i=f[3],r=f[4],a=f[5]);let g=void 0===r?"warning":r,y=gT[g],C=`alert-${g}`;return f[6]!==g?(o="warning"===g&&(0,v.jsx)(eT.sAQ,{}),f[6]=g,f[7]=o):o=f[7],f[8]!==g?(l="error"===g&&(0,v.jsx)(eT.YZv,{}),f[8]=g,f[9]=l):l=f[9],f[10]!==o||f[11]!==l?(s=(0,v.jsx)(I.az,{children:(0,v.jsxs)(I.EY,{size:1,children:[o,l]})}),f[10]=o,f[11]=l,f[12]=s):s=f[12],f[13]!==a?(d=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:a}),f[13]=a,f[14]=d):d=f[14],f[15]!==t?(c=t&&(0,v.jsx)(I.az,{marginTop:3,children:t}),f[15]=t,f[16]=c):c=f[16],f[17]!==d||f[18]!==c?(u=(0,v.jsxs)(I.az,{flex:1,marginLeft:3,children:[d,c]}),f[17]=d,f[18]=c,f[19]=u):u=f[19],f[20]!==s||f[21]!==u?(p=(0,v.jsxs)(I.so,{padding:4,children:[s,u]}),f[20]=s,f[21]=u,f[22]=p):p=f[22],f[23]!==i?(m=i&&(0,v.jsx)(gE,{children:i}),f[23]=i,f[24]=m):m=f[24],f[25]!==n||f[26]!==y||f[27]!==m||f[28]!==C||f[29]!==p?(h=(0,v.jsxs)(I.Zp,{radius:2,tone:y,...n,"data-ui":"Alert","data-testid":C,children:[p,m]}),f[25]=n,f[26]=y,f[27]=m,f[28]=C,f[29]=p,f[30]=h):h=f[30],h}function gA(){let e=[];return{publish(t){for(let n of e)n(t)},subscribe:t=>(e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)})}}class gD{static from(e){return e instanceof gD?e:new gD(Array.isArray(e)?(0,M.A)(e):[e])}constructor(e){this.patches=e}prepend(...e){return gD.from([...(0,M.A)(e),...this.patches])}append(...e){return gD.from([...this.patches,...(0,M.A)(e)])}prefixAll(e){return gD.from(this.patches.map(t=>({...t,path:[e,...t.path]})))}}let gz=(0,eI.AH)` 170 grid-template-columns: minmax(0px, 1fr); 171`,gP=(0,eI.AH)` 172 grid-template-columns: 1fr min-content; 173`,gR=(0,eI.I4)(I.xA).withConfig({displayName:"Root",componentId:"sc-14vdkq1-0"})(e=>e.$narrow?gz:gP),gN=(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(6),[a,o]=(0,_.useState)(null);r[0]!==t?(n=e=>{var n,i;n=t,i=e,"function"==typeof n?n(i):n&&(n.current=i),o(e)},r[0]=t,r[1]=n):n=r[1];let l=n,s=480>((0,T.sQ)(a)?.width||480);return r[2]!==l||r[3]!==e.children||r[4]!==s?(i=(0,v.jsx)(gR,{ref:l,gap:1,$narrow:s,children:e.children}),r[2]=l,r[3]=e.children,r[4]=s,r[5]=i):i=r[5],i}),gO={display:"inline-flex"},gV={width:"100%"},gM={portal:!0,tone:"default",constrainSize:!0,fallbackPlacements:["bottom","left","top"],placement:"right",preventOverflow:!0};function gL(e){let t,n,i,r,a,o,l=(0,j.c)(25);l[0]!==e?({createOptions:t,onCreate:r,id:n,menuRef:i,...a}=e,l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=a):(t=l[1],n=l[2],i=l[3],r=l[4],a=l[5]);let s=o5(),{t:d}=as(),c=ad(t);if(!t.some(gF)){let e,t,n,i;return l[6]!==s?(e=(0,v.jsx)(R5,{currentUser:s,context:"create-new-reference"}
173),l[6]=s,l[7]=e):e=l[7],l[8]!==d?(t=d("inputs.reference.action.create-new-document"),l[8]=d,l[9]=t):t=l[9],l[10]!==t?(n=(0,v.jsx)("div",{style:gO,children:(0,v.jsx)(tL.$n,{text:t,mode:"ghost",disabled:!0,icon:eT.REV,style:gV,size:"large"})}),l[10]=t,l[11]=n):n=l[11],l[12]!==e||l[13]!==n?(i=(0,v.jsx)(tL.m_,{content:e,children:n}),l[12]=e,l[13]=n,l[14]=i):i=l[14],i}return l[15]!==t||l[16]!==s||l[17]!==c||l[18]!==n||l[19]!==i||l[20]!==r||l[21]!==e.readOnly||l[22]!==a||l[23]!==d?(o=t.length>1?(0,v.jsx)(tL.IU,{button:(0,v.jsx)(tL.$n,{...a,disabled:e.readOnly,text:d("inputs.reference.action.create-new-document-select"),mode:"ghost",icon:eT.REV,size:"large"}),id:n,menu:(0,v.jsx)(I.W1,{ref:i,children:t.map(e=>(0,v.jsx)(tL.m_,{disabled:e.permission.granted,content:(0,v.jsx)(R5,{currentUser:s,context:"create-document-type"}),portal:!0,"data-testid":`create-new-document-select-${e.title.toLowerCase().replaceAll(" ","-")}-selectTypeMenuButton`,children:(0,v.jsx)("div",{children:(0,v.jsx)(tL.Dr,{disabled:!e.permission.granted,icon:e.icon,text:c(e).title,onClick:()=>r(e),"data-testid":`create-new-document-select-${e.title.toLowerCase().replaceAll(" ","-")}-selectTypeMenuItem`})})},e.id))}),popover:gM}):(0,v.jsx)(tL.$n,{...a,text:d("inputs.reference.action.create-new-document"),mode:"ghost",disabled:!t[0].permission.granted||e.readOnly,onClick:()=>r(t[0]),icon:eT.REV,size:"large","data-testid":`create-new-document-select-${n}`}),l[15]=t,l[16]=s,l[17]=c,l[18]=n,l[19]=i,l[20]=r,l[21]=e.readOnly,l[22]=a,l[23]=d,l[24]=o):o=l[24],o}function gF(e){return e.permission.granted}function gB(e=[]){return[...e].sort((e,t)=>{if("undecided"===e.metadata.releaseType&&"undecided"!==t.metadata.releaseType)return -1;if("undecided"!==e.metadata.releaseType&&"undecided"===t.metadata.releaseType)return 1;if("undecided"===e.metadata.releaseType&&"undecided"===t.metadata.releaseType)return new Date(t._createdAt).getTime()-new Date(e._createdAt).getTime();if("scheduled"===e.metadata.releaseType&&"scheduled"===t.metadata.releaseType){let n=e.publishAt||e.metadata.intendedPublishAt;if(!n)return 1;let i=t.publishAt||t.metadata.intendedPublishAt;return i?new Date(i).getTime()-new Date(n).getTime():-1}return"asap"===e.metadata.releaseType&&"asap"!==t.metadata.releaseType?1:"asap"!==e.metadata.releaseType&&"asap"===t.metadata.releaseType?-1:"asap"===e.metadata.releaseType&&"asap"===t.metadata.releaseType?new Date(t._createdAt).getTime()-new Date(e._createdAt).getTime():0})}let gY=["drafts"],gH=["published"];function gU(){let e,t,n,i=(0,j.c)(8),{state$:r,dispatch:a}=cF(),o=(0,tF.J)(r);i[0]!==o.releases?(e=gB(Array.from(o.releases.values()).filter(gZ)).reverse(),i[0]=o.releases,i[1]=e):e=i[1];let l=e,s=o.error;i[2]===Symbol.for("react.memo_cache_sentinel")?(t=["loading","initialising"],i[2]=t):t=i[2];let d=t.includes(o.state);return i[3]!==a||i[4]!==l||i[5]!==o.error||i[6]!==d?(n={data:l,dispatch:a,error:s,loading:d},i[3]=a,i[4]=l,i[5]=o.error,i[6]=d,i[7]=n):n=i[7],n}function gZ(e){return!ub.includes(e.state)}let gq=eI.I4.div.withConfig({displayName:"Dot",componentId:"sc-blcgxy-0"})(e=>{let{$index:t}=e,n={asap:uv.asap.tone,scheduled:uv.scheduled.tone,undecided:uv.undecided.tone};return(0,eI.AH)` 174 width: 5px; 175 height: 5px; 176 background-color: var(--card-icon-color); 177 border-radius: 999px; 178 box-shadow: 0 0 0 1px var(--card-bg-color); 179 z-index: ${t}; 180 &[data-status='published'] { 181 --card-icon-color: var(--card-badge-positive-dot-color); 182 } 183 &[data-status='draft'] { 184 --card-icon-color: var(--card-badge-caution-dot-color); 185 } 186 &[data-status='asap'] { 187 --card-icon-color: var(--card-badge-${n.asap}-dot-color); 188 } 189 &[data-status='undecided'] { 190 --card-icon-color: var(--card-badge-${n.undecided}-dot-color); 191 } 192 &[data-status='scheduled'] { 193 --card-icon-color: var(--card-badge-${n.scheduled}-dot-color); 194 } 195 `});function gW(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(21),{draft:c,published:u,versions:p}=e,{data:m}=gU(),{document:h}=cY(),{drafts:f}=h,{enabled:g}=f;d[0]!==m||d[1]!==p?(t=p?Object.entries(p).map(e=>{let[t,n]=e;return n?m?.find(e=>cN(e._id)===t)?.metadata.releaseType:void 0}):[],d[0]=m,d[1]=p,d[2]=t):t=d[2];let y=t,C=!!u;d[3]!==C?(n={status:"published",show:C},d[3]=C,d[4]=n):n=d[4];let x=g&&!!c;d[5]!==x?(i={status:"draft",show:x},d[5]=x,d[6]=i):i=d[6];let b=y.includes("asap");d[7]!==b?(r={status:"asap",show:b},d[7]=b,d[8]=r):r=d[8];let w=y.includes("scheduled");d[9]!==w?(a={status:"scheduled",show:w},d[9]=w,d[10]=a):a=d[10];let _=y.includes("undecided");d[11]!==_?(o={status:"undecided",show:_},d[11]=_,d[12]=o):o=d[12],d[13]!==a||d[14]!==o||d[15]!==n||d[16]!==i||d[17]!==r?(l=[n,i,r,a,o],d[13]=a,d[14]=o,d[15]=n,d[16]=i,d[17]=r,d[18]=l):l=d[18];let k=l;return d[19]!==k?(s=(0,v.jsx)(I.so,{children:k.filter(gK).map(gJ)}),d[19]=k,d[20]=s):s=d[20],s}function gJ(e,t){let{status:n}=e;return(0,v.jsx)(gq,{"data-status":n,$index:t+1},n)}function gK(e){let{show:t}=e;return t}function gG(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(29),{id:c,layout:u,refType:p,renderPreview:m,showTypeLabel:h}=e,f=cb(c),g=Ra(c);d[0]!==c||d[1]!==p.name?(t={_id:c,_type:p.name},d[0]=c,d[1]=p.name,d[2]=t):t=d[2];let y=t;d[3]!==p.title||d[4]!==h?(n=h&&(0,v.jsx)(I.Ex,{mode:"outline",children:p.title}),d[3]=p.title,d[4]=h,d[5]=n):n=d[5],d[6]!==f?(i=f&&f.length>0&&(0,v.jsx)(Bf,{presence:f}),d[6]=f,d[7]=i):i=d[7],d[8]!==g.draft||d[9]!==g.published||d[10]!==g.ver
195sions?(r=(0,v.jsx)(gW,{draft:g.draft,published:g.published,versions:g.versions}),d[8]=g.draft,d[9]=g.published,d[10]=g.versions,d[11]=r):r=d[11],d[12]!==n||d[13]!==i||d[14]!==r?(a=(0,v.jsx)(I.az,{paddingLeft:3,children:(0,v.jsxs)(I.cV,{space:3,children:[n,i,r]})}),d[12]=n,d[13]=i,d[14]=r,d[15]=a):a=d[15],d[16]!==g.draft||d[17]!==g.published||d[18]!==g.versions?(o=(0,v.jsx)(esy,{draft:g.draft,published:g.published,versions:g.versions}),d[16]=g.draft,d[17]=g.published,d[18]=g.versions,d[19]=o):o=d[19],d[20]!==u||d[21]!==y||d[22]!==p||d[23]!==a||d[24]!==o?(l={children:a,layout:u,schemaType:p,tooltip:o,value:y},d[20]=u,d[21]=y,d[22]=p,d[23]=a,d[24]=o,d[25]=l):l=d[25];let C=l;return d[26]!==C||d[27]!==m?(s=m(C),d[26]=C,d[27]=m,d[28]=s):s=d[28],s}function gX(e){let t,n,i=(0,j.c)(15),{referenceType:r,type:a,id:o,renderPreview:l}=e;if(i[0]!==r.to||i[1]!==a){let e;i[3]!==a?(e=e=>e.name===a,i[3]=a,i[4]=e):e=i[4],t=r.to.find(e),i[0]=r.to,i[1]=a,i[2]=t}else t=i[2];let s=t,{t:d}=as();if(!s){let e,t;return i[5]!==d||i[6]!==a?(e=d("inputs.reference.error.invalid-search-result-type-title",{returnedType:a}),i[5]=d,i[6]=a,i[7]=e):e=i[7],i[8]!==e?(t=(0,v.jsx)(I.BJ,{space:2,padding:1,children:e}),i[8]=e,i[9]=t):t=i[9],t}let c=r.to.length>1;return i[10]!==o||i[11]!==s||i[12]!==l||i[13]!==c?(n=(0,v.jsx)(gG,{id:o,layout:"default",refType:s,renderPreview:l,showTypeLabel:c}),i[10]=o,i[11]=s,i[12]=l,i[13]=c,i[14]=n):n=i[14],n}let gQ=(0,eI.I4)(tL.AM).withConfig({displayName:"StyledPopover",componentId:"sc-15m5qjt-0"})`& > div{overflow:auto;-webkit-overflow-scrolling:touch;}`,g1=(0,eI.I4)(I.EY).withConfig({displayName:"StyledText",componentId:"sc-15m5qjt-1"})`word-break:break-word;`,g2=["top-start","bottom-start"],g5=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u=(0,j.c)(23),{focusPath:p}=hE();u[0]!==e?({searchString:l,loading:n,portalRef:r,referenceElement:a,path:i,...o}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=r,u[4]=a,u[5]=o,u[6]=l):(n=u[1],i=u[2],r=u[3],a=u[4],o=u[5],l=u[6]),u[7]!==p||u[8]!==i?(s=()=>!!w.w1(i,p),u[7]=p,u[8]=i,u[9]=s):s=u[9];let[m]=(0,_.useState)(s),{t:h}=as(),f=e.options&&e.options.length>0;u[10]!==f||u[11]!==n||u[12]!==r||u[13]!==a||u[14]!==l||u[15]!==h?(d=(e,t)=>{let{content:i,hidden:o,inputElement:s,onMouseEnter:d,onMouseLeave:c}=e;return(0,v.jsx)(gQ,{"data-testid":"autocomplete-popover",placement:"bottom-start",fallbackPlacements:g2,arrow:!1,constrainSize:!0,onMouseEnter:d,onMouseLeave:c,content:(0,v.jsx)("div",{ref:t,children:f?i:(0,v.jsx)(I.az,{padding:4,children:(0,v.jsx)(I.so,{align:"center",height:"fill",justify:"center",children:(0,v.jsx)(g1,{align:"center",muted:!0,children:(0,v.jsx)(aE,{t:h,i18nKey:"inputs.reference.no-results-for-query",values:{searchTerm:l||""}})})})})}),open:!n&&!o,ref:r,portal:!0,referenceElement:a||s,matchReferenceWidth:!0})},u[10]=f,u[11]=n,u[12]=r,u[13]=a,u[14]=l,u[15]=h,u[16]=d):d=u[16];let g=d;return u[17]!==m||u[18]!==n||u[19]!==t||u[20]!==g||u[21]!==o?(c=(0,v.jsx)(T.jT,{...o,loading:n,ref:t,renderPopover:g,autoFocus:m}),u[17]=m,u[18]=n,u[19]=t,u[20]=g,u[21]=o,u[22]=c):c=u[22],c});function g0(e){return`inset 0 0 0 ${e.width}px ${e.color}`}function g7(e){let{base:t,border:n,focusRing:i}=e,r=i.offset+i.width,a=0-i.offset,o=t?t.bg:"var(--card-bg-color)";return[a>0&&`inset 0 0 0 ${a}px var(--card-focus-ring-color)`,n&&g0(n),a<0&&`0 0 0 ${0-a}px ${o}`,r>0&&`0 0 0 ${r}px var(--card-focus-ring-color)`].filter(Boolean).join(",")}function g3(e){return(0,eI.I4)(e).withConfig({componentId:"sc-1tx689r-0"})(e=>{let{$border:t,$radius:n}=e,{card:i,color:r,radius:a}=(0,nN.JW)(e.theme),o={width:+!!t,color:"var(--card-border-color)"};return(0,eI.AH)` 196 --card-focus-box-shadow: ${g0(o)}; 197 198 border-radius: ${(0,I.D0)(a[n??1])}; 199 outline: none; 200 box-shadow: var(--card-focus-box-shadow); 201 202 &:focus { 203 --card-focus-box-shadow: ${g7({border:o,base:r,focusRing:{...i.focusRing,offset:0}})}; 204 } 205 `})}function g8(e){let t,n,i=(0,j.c)(64),{layout:r,referenceInfo:a,renderPreview:o,type:l,value:s,showTypeLabel:d}=e,c=void 0===r?"default":r,{t:u}=as();if(a.isLoading||a.error){let e;return i[0]!==c?(e=(0,v.jsx)(j8,{isPlaceholder:!0,layout:c}),i[0]=c,i[1]=e):e=i[1],e}if(a.result?.availability.reason==="NOT_FOUND"&&s._strengthenOnPublish){let e,t,n,r,a,u,p,m,h,f,g,y=l.to;if(i[2]!==c||i[3]!==o||i[4]!==l.to||i[5]!==s){p=Symbol.for("react.early_return_sentinel");e:{let d;if(i[13]!==s._strengthenOnPublish?.type?(d=e=>e.name===s?._strengthenOnPublish?.type,i[13]=s._strengthenOnPublish?.type,i[14]=d):d=i[14],!(n=y.find(d))){let e,t,n=s._ref,r=s._strengthenOnPublish?.type;i[15]!==l.to?(e=l.to.map(g6),i[15]=l.to,i[16]=e):e=i[16],i[17]!==r||i[18]!==e||i[19]!==s._ref?(t=(0,v.jsx)(ye,{documentId:n,actualType:r,declaredTypes:e}),i[17]=r,i[18]=e,i[19]=s._ref,i[20]=t):t=i[20],p=t;break e}let m=s._strengthenOnPublish?.type?{_id:s._ref,_type:s._strengthenOnPublish?.type}:s;t=I.so,u="center",e=I.az,r=1,a=o({layout:c,schemaType:n,value:m,skipVisibilityCheck:!0})}i[2]=c,i[3]=o,i[4]=l.to,i[5]=s,i[6]=e,i[7]=t,i[8]=n,i[9]=r,i[10]=a,i[11]=u,i[12]=p}else e=i[6],t=i[7],n=i[8],r=i[9],a=i[10],u=i[11],p=i[12];return p!==Symbol.for("react.early_return_sentinel")?p:(i[21]!==e||i[22]!==r||i[23]!==a?(m=(0,v.jsx)(e,{flex:r,children:a}),i[21]=e,i[22]=r,i[23]=a,i[24]=m):m=i[24],i[25]!==n||i[26]!==d?(h=d&&(0,v.jsx)(I.Ex,{mode:"outline",children:n.title}),i[25]=n,i[26]=d,i[27]=h):h=i[27],i[28]!==h?(f=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.cV,{space:4,children:h})}),i[28]=h,i[29]=f):f=i[29],i[30]!==t||i[31]!==u||i[32]!==m||i[33]!==f?(g=(0,v.jsxs)(t,{align:u,children:[m,f]}),i[30]=t,i[31]=u,i[32]=m,i[33]=f,i[34]=g):g=i[34],g)}let p=a.result.availability,m="NOT_FOUND"===p.reason,h="PERMISSION_DENIED"===p.reason;if(h||m){let e,t,n,r;return i[35]!==u?(e=u("inputs.reference.error.document-unavailable-title"),i[35]=u,i[36]=e):e=i[36],i[37]!==e?(t=(0,v.jsx)(I.az,{padding:1,children:(0,v.jsx)(I.so,{align:"center",children:(0,v.jsx)(I.az,{flex:1,paddingY:2,children:(0,v.jsx)(I.EY,{muted:!0,children:e})})})}),i[37]=e,i[38]=t):t=i[38],i[39]!==h||i[40]!==m||i[41]!==u||i[42]!==s?(n=h||m?(0,v.jsx)(I.az,{children:(0,v.jsx)(tL.m_,{portal:!0,content:m?(0,v.jsx)(g9,{title:u("inputs.reference.error.nonexistent-document-title"),icon:eT.V1u,children:(0,v.jsx)(aE,{i18nKey:"inputs.reference.error.nonexistent-document-description",t:u,values:{documentId:s._ref}})}):(0,v.jsx)(g9,{title:u("inputs.reference.error.missing-read-permissions-title"),icon:eT.VY$,children:u("inputs.reference.error.missing-read-permissions-description")}),children:(0,v.jsx)(NY,{tone:"default",children:(0,v.jsx)(eT.V1u,{})})})}):null,i[39]=h,i[40]=m,i[41]=u,i[42]=s,i[43]=n):n=i[43],i[44]!==t||i[45]!==n?(r=(0,v.jsxs)(I.cV,{space:2,children:[t,n]}),i[44]=t,i[45]=n,i[46]=r):r=i[46],r}let f=a.result?.type;if(i[47]!==f||i[48]!==l.to){let e;i[50]!==f?(e=e=>
205e.name===f,i[50]=f,i[51]=e):e=i[51],t=l.to.find(e),i[47]=f,i[48]=l.to,i[49]=t}else t=i[49];let g=t;if(!g){let e,t,n=s._ref,r=f||"<unknown>";return i[52]!==l.to?(e=l.to.map(g4),i[52]=l.to,i[53]=e):e=i[53],i[54]!==r||i[55]!==e||i[56]!==s._ref?(t=(0,v.jsx)(ye,{documentId:n,actualType:r,declaredTypes:e}),i[54]=r,i[55]=e,i[56]=s._ref,i[57]=t):t=i[57],t}return i[58]!==c||i[59]!==g||i[60]!==o||i[61]!==d||i[62]!==s._ref?(n=(0,v.jsx)(gG,{id:s._ref,layout:c,refType:g,renderPreview:o,showTypeLabel:d}),i[58]=c,i[59]=g,i[60]=o,i[61]=d,i[62]=s._ref,i[63]=n):n=i[63],n}function g4(e){return e.name}function g6(e){return e.name}function g9(e){let t,n,i,r,a,o=(0,j.c)(12),l=e.icon;return o[0]!==l?(t=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(l,{})}),o[0]=l,o[1]=t):t=o[1],o[2]!==e.title?(n=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:e.title}),o[2]=e.title,o[3]=n):n=o[3],o[4]!==e.children?(i=(0,v.jsx)(I.az,{marginTop:3,children:(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:e.children})}),o[4]=e.children,o[5]=i):i=o[5],o[6]!==n||o[7]!==i?(r=(0,v.jsxs)(I.az,{flex:1,marginLeft:3,children:[n,i]}),o[6]=n,o[7]=i,o[8]=r):r=o[8],o[9]!==t||o[10]!==r?(a=(0,v.jsxs)(I.so,{children:[t,r]}),o[9]=t,o[10]=r,o[11]=a):a=o[11],a}function ye(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(19),{declaredTypes:c,documentId:u,actualType:p}=e,{t:m}=as();return d[0]!==m?(t=m("inputs.reference.error.invalid-type-title"),d[0]=m,d[1]=t):t=d[1],d[2]!==t?(n=(0,v.jsx)(I.az,{padding:1,children:(0,v.jsx)(I.so,{align:"center",children:(0,v.jsx)(I.az,{flex:1,paddingY:2,children:(0,v.jsx)(I.EY,{muted:!0,children:t})})})}),d[2]=t,d[3]=n):n=d[3],d[4]!==p||d[5]!==u?(i={documentId:u,actualType:p},d[4]=p,d[5]=u,d[6]=i):i=d[6],d[7]!==c?(r={AllowedTypes:()=>(0,v.jsx)(yt,{values:c})},d[7]=c,d[8]=r):r=d[8],d[9]!==m||d[10]!==i||d[11]!==r?(a=(0,v.jsx)(I.BJ,{space:3,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{t:m,i18nKey:"inputs.reference.error.invalid-type-description",values:i,components:r})})}),d[9]=m,d[10]=i,d[11]=r,d[12]=a):a=d[12],d[13]===Symbol.for("react.memo_cache_sentinel")?(o=(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(NY,{tone:"default",children:(0,v.jsx)(eT.V1u,{})})}),d[13]=o):o=d[13],d[14]!==a?(l=(0,v.jsx)(I.az,{children:(0,v.jsx)(tL.m_,{portal:!0,content:a,children:o})}),d[14]=a,d[15]=l):l=d[15],d[16]!==n||d[17]!==l?(s=(0,v.jsxs)(I.so,{align:"center",justify:"flex-start",children:[n,l]}),d[16]=n,d[17]=l,d[18]=s):s=d[18],s}function yt(e){let t,n,i,r,a=(0,j.c)(8);a[0]===Symbol.for("react.memo_cache_sentinel")?(t={type:"disjunction"},a[0]=t):t=a[0];let o=ax(t);if(a[1]!==o||a[2]!==e.values){let t=o.formatToParts(e.values);n=_.Fragment,i=t.map(yn),a[1]=o,a[2]=e.values,a[3]=n,a[4]=i}else n=a[3],i=a[4];return a[5]!==n||a[6]!==i?(r=(0,v.jsx)(n,{children:i}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r}function yn(e){return"element"===e.type?(0,v.jsx)("code",{children:e.value},e.value):e.value}let yi=eI.I4.button.withConfig({displayName:"HeaderButton",componentId:"sc-1o6bl5u-0"})`display:block;-webkit-font-smoothing:inherit;appearance:none;font:inherit;background:none;width:100%;text-align:left;border:0;margin:0;padding:0;outline:none;`,yr=(0,eI.I4)(eT.nVd).withConfig({displayName:"ToggleArrow",componentId:"sc-1o6bl5u-1"})`transform:${e=>e.open?"rotate(90deg)":""};`,ya=(0,eI.I4)(I.so).withConfig({displayName:"Header",componentId:"sc-1o6bl5u-2"})`cursor:default;line-height:0;`,yo=(0,eI.I4)(I.so).withConfig({displayName:"IconBox",componentId:"sc-1o6bl5u-3"})`& > div > svg{transform:rotate(0);transition:transform 100ms;}&[data-open] > div > svg{transform:rotate(90deg);}`;function yl(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(30);g[0]!==e?({children:t,open:i,icon:n,title:a,...r}=e,g[0]=e,g[1]=t,g[2]=n,g[3]=i,g[4]=r,g[5]=a):(t=g[1],n=g[2],i=g[3],r=g[4],a=g[5]);let y=void 0===a?"Details":a,[C,x]=(0,_.useState)(i||!1);g[6]===Symbol.for("react.memo_cache_sentinel")?(o=()=>x(ys),g[6]=o):o=g[6];let b=o;g[7]!==i?(l=()=>x(i||!1),s=[i],g[7]=i,g[8]=l,g[9]=s):(l=g[8],s=g[9]),(0,_.useEffect)(l,s);let w=C?"":void 0;g[10]!==C?(d=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(yr,{open:C})}),g[10]=C,g[11]=d):d=g[11],g[12]!==w||g[13]!==d?(c=(0,v.jsx)(yo,{"data-open":w,
205children:d}),g[12]=w,g[13]=d,g[14]=c):c=g[14],g[15]!==n?(u=n&&(0,v.jsx)(I.az,{marginLeft:1,children:n}),g[15]=n,g[16]=u):u=g[16],g[17]!==y?(p=(0,v.jsx)(I.az,{flex:1,marginLeft:1,children:(0,v.jsx)(I.EY,{textOverflow:"ellipsis",size:1,weight:"medium",children:y})}),g[17]=y,g[18]=p):p=g[18],g[19]!==c||g[20]!==u||g[21]!==p?(m=(0,v.jsx)(yi,{type:"button",onClick:b,children:(0,v.jsx)(ya,{children:(0,v.jsxs)(I.so,{align:"center",children:[c,u,p]})})}),g[19]=c,g[20]=u,g[21]=p,g[22]=m):m=g[22];let k=!C;return g[23]!==t||g[24]!==k?(h=(0,v.jsx)(I.az,{hidden:k,marginTop:3,children:t}),g[23]=t,g[24]=k,g[25]=h):h=g[25],g[26]!==r||g[27]!==h||g[28]!==m?(f=(0,v.jsxs)(I.az,{...r,children:[m,h]}),g[26]=r,g[27]=h,g[28]=m,g[29]=f):f=g[29],f}function ys(e){return!e}let yd={warning:"caution",error:"critical",info:"positive"},yc={warning:(0,v.jsx)(eT.sAQ,{}),error:(0,v.jsx)(eT.YZv,{}),info:(0,v.jsx)(eT.YzR,{})};function yu(e){let t,n,i,r,a,o,l,s=(0,j.c)(15);s[0]!==e?({children:t,status:i,title:r,...n}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=i,s[4]=r):(t=s[1],n=s[2],i=s[3],r=s[4]);let d=void 0===i?"warning":i,c=yd[d];return s[5]!==t||s[6]!==d||s[7]!==r?(a=t&&(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(yl,{icon:yc[d],title:r,children:(0,v.jsx)(I.az,{marginLeft:3,marginTop:3,children:t})})}),s[5]=t,s[6]=d,s[7]=r,s[8]=a):a=s[8],s[9]!==a?(o=(0,v.jsx)(I.so,{padding:1,children:a}),s[9]=a,s[10]=o):o=s[10],s[11]!==n||s[12]!==c||s[13]!==o?(l=(0,v.jsx)(I.Zp,{radius:2,tone:c,...n,"data-ui":"Alert",children:o}),s[11]=n,s[12]=c,s[13]=o,s[14]=l):l=s[14],l}function yp(e){let t,n,i,r,a,o,l=(0,j.c)(17),{schemaType:s,handleRemoveStrengthenOnPublish:d}=e,{t:c}=as(),u=s.weak?"inputs.reference.incomplete-reference.finalize-action-title":"inputs.reference.incomplete-reference.strengthen-action-title";l[0]!==c||l[1]!==u?(t=c(u),l[0]=c,l[1]=u,l[2]=t):t=l[2];let p=s.weak?"inputs.reference.incomplete-reference.finalize-action-description":"inputs.reference.incomplete-reference.strengthen-action-description";return l[3]!==c||l[4]!==p?(n=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:c,i18nKey:p})}),l[3]=c,l[4]=p,l[5]=n):n=l[5],l[6]!==c?(i=c("inputs.reference.incomplete-reference.strengthen-button-label"),l[6]=c,l[7]=i):i=l[7],l[8]!==d||l[9]!==i?(r=(0,v.jsx)(tL.$n,{mode:"ghost",onClick:d,size:"large",text:i,tone:"positive"}),l[8]=d,l[9]=i,l[10]=r):r=l[10],l[11]!==n||l[12]!==r?(a=(0,v.jsxs)(I.BJ,{space:3,children:[n,r]}),l[11]=n,l[12]=r,l[13]=a):a=l[13],l[14]!==t||l[15]!==a?(o=(0,v.jsx)(yu,{padding:1,title:t,status:"info","data-testid":"alert-reference-published",children:a}),l[14]=t,l[15]=a,l[16]=o):o=l[16],o}let ym=(0,eI.I4)(I.Zp).withConfig({displayName:"StyledCard",componentId:"sc-1spfqh0-0"})`min-height:33px;position:relative;&[data-selected],&[data-pressed],&:active{[data-ui='TextWithTone']{color:inherit;}}`,yh=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s=(0,j.c)(13);s[0]!==e?({as:n,documentId:r,documentType:a,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=r,s[4]=a):(n=s[1],i=s[2],r=s[3],a=s[4]),s[5]!==n||s[6]!==r||s[7]!==a?(o=r&&a&&{"data-as":"a",forwardedAs:n,documentId:r,documentType:a},s[5]=n,s[6]=r,s[7]=a,s[8]=o):o=s[8];let d=o;return s[9]!==i||s[10]!==d||s[11]!==t?(l=(0,v.jsx)(ym,{...i,...d,"data-ui":"ReferenceLinkCard",ref:t}),s[9]=i,s[10]=d,s[11]=t,s[12]=l):l=s[12],l});function yf(e){let t,n,i,r,a,o,l=(0,j.c)(15),{errorMessage:s,onHandleRetry:d}=e,{t:c}=as();return l[0]!==c?(t=c("inputs.reference.metadata-error.title"),l[0]=c,l[1]=t):t=l[1],l[2]!==s?(n=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:s}),l[2]=s,l[3]=n):n=l[3],l[4]!==c?(i=c("inputs.reference.metadata-error.retry-button-label"),l[4]=c,l[5]=i):i=l[5],l[6]!==d||l[7]!==i?(r=(0,v.jsx)(tL.$n,{mode:"ghost",onClick:d,size:"large",text:i,tone:"primary"}
205),l[6]=d,l[7]=i,l[8]=r):r=l[8],l[9]!==n||l[10]!==r?(a=(0,v.jsxs)(I.BJ,{space:3,children:[n,r]}),l[9]=n,l[10]=r,l[11]=a):a=l[11],l[12]!==t||l[13]!==a?(o=(0,v.jsx)(yu,{padding:1,title:t,status:"warning","data-testid":"alert-reference-info-failed",children:a}),l[12]=t,l[13]=a,l[14]=o):o=l[14],o}function yg(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(23),{actualStrength:c,handleFixStrengthMismatch:u}=e,p="weak"===c?"strong":"weak",{t:m}=as();d[0]!==m?(t=m("inputs.reference.strength-mismatch.title"),d[0]=m,d[1]=t):t=d[1];let h="weak"===c?"inputs.reference.strength-mismatch.is-weak-description":"inputs.reference.strength-mismatch.is-strong-description";d[2]!==m||d[3]!==h?(n=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:m,i18nKey:h})}),d[2]=m,d[3]=h,d[4]=n):n=d[4];let f="weak"===p?"inputs.reference.strength-mismatch.is-strong-consquences":"inputs.reference.strength-mismatch.is-weak-consquences";d[5]!==m||d[6]!==f?(i=m(f),d[5]=m,d[6]=f,d[7]=i):i=d[7],d[8]!==i?(r=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:i}),d[8]=i,d[9]=r):r=d[9];let g="weak"===p?"inputs.reference.strength-mismatch.weaken-button-label":"inputs.reference.strength-mismatch.strengthen-button-label";return d[10]!==m||d[11]!==g?(a=m(g),d[10]=m,d[11]=g,d[12]=a):a=d[12],d[13]!==u||d[14]!==a?(o=(0,v.jsx)(tL.$n,{mode:"ghost",onClick:u,size:"large",text:a,tone:"caution"}),d[13]=u,d[14]=a,d[15]=o):o=d[15],d[16]!==n||d[17]!==r||d[18]!==o?(l=(0,v.jsxs)(I.BJ,{space:3,children:[n,r,o]}),d[16]=n,d[17]=r,d[18]=o,d[19]=l):l=d[19],d[20]!==t||d[21]!==l?(s=(0,v.jsx)(yu,{padding:1,title:t,status:"warning","data-testid":"alert-reference-strength-mismatch",children:l}),d[20]=t,d[21]=l,d[22]=s):s=d[22],s}let yy=()=>{},yC={isLoading:!0,result:void 0,error:void 0,retry:yy},yx={isLoading:!1,result:void 0,error:void 0,retry:yy};function yb(e,t){let n,i=(0,j.c)(10),[r]=(0,_.useState)(yv),[a,o]=r;if(i[0]!==t||i[1]!==e||i[2]!==o||i[3]!==a){let r,l;i[5]!==e?(r=()=>e,i[5]=e,i[6]=r):r=i[6],i[7]!==t||i[8]!==o?(l=e=>e?t(e).pipe((0,eV.T)(e=>({isLoading:!1,result:e,error:void 0,retry:o})),(0,tr.Z)(yC),(0,eY.W)(e=>(console.error(e),(0,eP.of)({isLoading:!1,result:void 0,error:e,retry:o})))):(0,eP.of)(yx),i[7]=t,i[8]=o,i[9]=l):l=i[9],n=(0,eR.x)((0,eP.of)(null),a).pipe((0,eV.T)(r),(0,eF.H)(l)),i[0]=t,i[1]=e,i[2]=o,i[3]=a,i[4]=n}else n=i[4];return(0,tF.J)(n,yC)}function yv(){return(0,tB.t)()}let yj={available:!0,reason:"READABLE"},yw={available:!1,reason:"PERMISSION_DENIED"},y_={available:!1,reason:"NOT_FOUND"};function yk(e,t,n,i){let{publishedId:r,draftId:a}=rA(t);return e.unstable_observeDocumentStackAvailability(t,i??["published"]).pipe((0,eM.n)(o=>{let l=o.find(e=>e.availability.available||"PERMISSION_DENIED"===e.availability.reason);if(!l?.availability.available){let e=l?.availability?.reason==="PERMISSION_DENIED"?yw:y_;return(0,eP.of)({id:t,type:void 0,availability:e,isPublished:null,preview:{snapshot:null,original:null}})}return e.observeDocumentTypeFromId(a,void 0,i).pipe((0,eM.n)(a=>{if(!a)return(0,eP.of)({id:t,type:void 0,availability:{available:!0,reason:"READABLE"},isPublished:null,preview:{snapshot:null,original:null}});let o=n.to.find(e=>e.name===a);if(!o)return(0,eP.of)({id:t,type:a,availability:{available:!0,reason:"READABLE"},isPublished:null,preview:{snapshot:null,original:null}});let l=e.observePaths({_id:r},["_rev"]).pipe((0,eV.T)(e=>!!e?._rev)),s=P9(e,o,r,i);return(0,e8.z)([s,l]).pipe((0,eV.T)(([e,t])=>({type:a,id:r,availability:yj,isPublished:t,preview:{snapshot:e.snapshot,original:e.original}})))}))}))}function yS(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(38),{path:f,schemaType:g}=e,y=R8(),C=a3(),x=cc(),b=fa();h[0]!==b?({EditReferenceLinkComponent:t,onEditReference:a,activePath:n,initialValueTemplateItems:r,...i}=b,h[0]=b,h[1]=t,h[2]=n,h[3]=i,h[4]=r,h[5]=a):(t=h[1],n=h[2],i=h[3],r=h[4],a=h[5]),h[6]===Symbol.for("react.memo_cache_sentinel")?(o=[],h[6]=o):o=h[6];let k=gI(o)?._type;h[7]!==k||h[8]!==y?(l=y.get(k)?.liveEdit,h[7]=k,h[8]=y,h[9]=l):l=h[9];let S=l,I=i.disableNew??g.options?.disableNew===!0,T=e.value?._strengthenOnPublish?.template;h[10]!==t||h[11]!==f||h[12]!==T?(s=(0,_.forwardRef)(function(e,n){return t?(0,v.jsx)(t,{...e,ref:n,parentRefPath:f,template:T}):null}),h[10]=t,h[11]=f,h[12]=T,h[13]=s):s=h[13];let E=s;h[14]!==a||h[15]!==f?(d=e=>{a?.({parentRefPath:f,id:e.id,type:e.type,template:e.template})},h[14]=a,h[15]=f,h[16]=d):d=h[16];let $=d;
205h[17]!==n?.path||h[18]!==n?.state||h[19]!==f?(c=w.w1(f,n?.path||[])?n?.state:"none",h[17]=n?.path,h[18]=n?.state,h[19]=f,h[20]=c):c=h[20];let A=c;e:{let e;if(I){let e;h[21]===Symbol.for("react.memo_cache_sentinel")?(e=[],h[21]=e):e=h[21],u=e;break e}if(h[22]!==r||h[23]!==g.to){let t;h[25]!==g.to?(t=e=>g.to.some(t=>t.name===e.template?.schemaType),h[25]=g.to,h[26]=t):t=h[26],e=(r||[]).filter(t).map(yI).filter(r$),h[22]=r,h[23]=g.to,h[24]=e}else e=h[24];u=e}let D=u;h[27]!==x||h[28]!==C.perspectiveStack||h[29]!==g?(p=e=>yk(x,e,g,C.perspectiveStack),h[27]=x,h[28]=C.perspectiveStack,h[29]=g,h[30]=p):p=h[30];let z=p;return h[31]!==E||h[32]!==D||h[33]!==z||h[34]!==$||h[35]!==S||h[36]!==A?(m={selectedState:A,isCurrentDocumentLiveEdit:S,handleEditReference:$,EditReferenceLink:E,createOptions:D,getReferenceInfo:z},h[31]=E,h[32]=D,h[33]=z,h[34]=$,h[35]=S,h[36]=A,h[37]=m):m=h[37],m}function yI(e){return e.template?.schemaType?{id:e.id,title:e.title||`${e.template.schemaType} from template ${e.template.id}`,type:e.template.schemaType,icon:e.icon,template:{id:e.template.id,params:e.parameters},permission:{granted:e.granted,reason:e.reason}}:void 0}let yT=g3(I.Zp),yE={portal:!0,tone:"default"};function y$(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E=(0,j.c)(83),$=(0,_.useRef)(null),{schemaType:A,path:D,children:z,focusPath:P}
205=e,{readOnly:R,focused:N,renderPreview:O,onChange:V,onPathFocus:M,id:L}=e;E[0]!==V?(t=()=>V(hW()),E[0]=V,E[1]=t):t=E[1];let F=t,B=e.value;E[2]!==D||E[3]!==A||E[4]!==B?(n={path:D,schemaType:A,value:B},E[2]=D,E[3]=A,E[4]=B,E[5]=n):n=E[5];let{EditReferenceLink:Y,getReferenceInfo:H,selectedState:U,isCurrentDocumentLiveEdit:Z}=yS(n);E[6]===Symbol.for("react.memo_cache_sentinel")?(i=(e,t)=>{!e&&t&&$.current&&$.current.focus()},E[6]=i):i=E[6],fS(N,i);let q=e.validation.some(yD),W=e.validation.some(yA),J=yb(B?._ref,H),K=J.result?.type||B?._strengthenOnPublish?.type;E[7]!==K||E[8]!==A.to?(r=K?A.to.find(e=>e.name===K):void 0,E[7]=K,E[8]=A.to,E[9]=r):r=E[9];let G=r,X="pressed"===U,Q="selected"===U,ee=B?._ref,et=ee&&J.result?.isPublished;E[10]!==V||E[11]!==A.weak?(a=()=>{V([!0===A.weak?hq(!0,["_weak"]):hW(["_weak"]),hW(["_strengthenOnPublish"])])},E[10]=V,E[11]=A.weak,E[12]=a):a=E[12];let en=a;E[13]!==V||E[14]!==A.weak?(o=()=>{V(!0===A.weak?hq(!0,["_weak"]):hW(["_weak"]))},E[13]=V,E[14]=A.weak,E[15]=o):o=E[15];let ei=o;E[16]!==M?(l=()=>{M(["_ref"])},E[16]=M,E[17]=l):l=E[17];let er=l,ea=B?._weak?"weak":"strong",eo=!0===A.weak?"weak":"strong",el=ee&&!J.isLoading&&B?._strengthenOnPublish,es=!J.isLoading&&J.result?.availability.available&&ee&&ea!==eo&&!el,ed=function({readOnly:e,hasErrors:t,hasWarnings:n}){return e?"transparent":t?"critical":n?"caution":"default"}({readOnly:R,hasErrors:q,hasWarnings:W}),ec=!B?._ref||"_ref"===P[0],{t:eu}=as();E[18]!==en||E[19]!==Z||E[20]!==et||E[21]!==A||E[22]!==B?(s=Z&&et&&B._strengthenOnPublish&&(0,v.jsx)(yp,{schemaType:A,handleRemoveStrengthenOnPublish:en}),E[18]=en,E[19]=Z,E[20]=et,E[21]=A,E[22]=B,E[23]=s):s=E[23],E[24]!==ea||E[25]!==ei||E[26]!==es?(d=es&&(0,v.jsx)(yg,{actualStrength:ea,handleFixStrengthMismatch:ei}),E[24]=ea,E[25]=ei,E[26]=es,E[27]=d):d=E[27],E[28]!==J.error||E[29]!==J.retry?(c=J.error&&(0,v.jsx)(yf,{errorMessage:J.error.message,onHandleRetry:J.retry}),E[28]=J.error,E[29]=J.retry,E[30]=c):c=E[30],E[31]!==s||E[32]!==d||E[33]!==c?(u=(0,v.jsxs)(v.Fragment,{children:[s,d,c]}),E[31]=s,E[32]=d,E[33]=c,E[34]=u):u=E[34];let ep=u;E[35]!==G?.name||E[36]!==B?._ref?(p=(0,_.forwardRef)(function(e,t){return(0,v.jsx)(nU.RZ,{...e,intent:"edit",params:{id:B?._ref,type:G?.name},target:"_blank",rel:"noopener noreferrer",ref:t})}),E[35]=G?.name,E[36]=B?._ref,E[37]=p):p=E[37];let em=p;E[38]!==em||E[39]!==F||E[40]!==er||E[41]!==L||E[42]!==R||E[43]!==eu||E[44]!==B?._ref?(m=()=>R?null:(0,v.jsx)(I.az,{flex:"none",children:(0,v.jsx)(tL.IU,{button:(0,v.jsx)(rl,{}),id:`${L}-menuButton`,menu:(0,v.jsxs)(I.W1,{children:[!R&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(tL.Dr,{text:eu("inputs.reference.action.clear"),tone:"critical",icon:eT.ucK,onClick:F}),(0,v.jsx)(tL.Dr,{text:eu("inputs.reference.action.replace"),icon:eT.Fjq,onClick:er})]}),!R&&B?._ref&&(0,v.jsx)(I.Nj,{}),B?._ref&&(0,v.jsx)(tL.Dr,{as:em,"data-as":"a",text:eu("inputs.reference.action.open-in-new-tab"),icon:eT.ZPM})]}),popover:yE})}),E[38]=em,E[39]=F,E[40]=er,E[41]=L,E[42]=R,E[43]=eu,E[44]=B?._ref,E[45]=m):m=E[45],E[46]!==m?(h=m(),E[46]=m,E[47]=h):h=E[47];let eh=h;E[48]!==M?(f=e=>{e.target===$.current&&M(rM)},E[48]=M,E[49]=f):f=E[49];let ef=f,[eg,ey]=(0,_.useState)(null);if(E[50]!==eg||E[51]!==N?(g=()=>{N&&eg&&eg.focus()},y=[N,eg],E[50]=eg,E[51]=N,E[52]=g,E[53]=y):(g=E[52],y=E[53]),(0,_.useEffect)(g,y),ec){let e;return E[54]!==z?(e=(0,v.jsx)(I.az,{children:z}),E[54]=z,E[55]=e):e=E[55],e}E[56]===Symbol.for("react.memo_cache_sentinel")?(C={lineHeight:0},E[56]=C):C=E[56];let eC=!!X||void 0,ex=!!Q||void 0,eb=B?._ref,ev=G?.name;return E[57]!==J||E[58]!==O||E[59]!==A||E[60]!==B?(x=(0,v.jsx)(g8,{value:B,referenceInfo:J,renderPreview:O,type:A}),E[57]=J,E[58]=O,E[59]=A,E[60]=B,E[61]=x):x=E[61],E[62]!==Y||E[63]!==ef||E[64]!==X||E[65]!==Q||E[66]!==eC||E[67]!==ex||E[68]!==eb||E[69]!==ev||E[70]!==x?(b=(0,v.jsx)(yh,{__unstable_focusRing:!0,as:Y,"data-pressed":eC,"data-selected":ex,documentId:eb,documentType:ev,flex:1,pressed:X,radius:2,ref:$,selected:Q,tone:"inherit",onFocus:ef,children:x}),E[62]=Y,E[63]=ef,E[64]=X,E[65]=Q,E[66]=eC,E[67]=ex,E[68]=eb,E[69]=ev,E[70]=x,E[71]=b):b=E[71],E[72]!==eh?(w=(0,v.jsx)(I.az,{children:eh}),E[72]=eh,E[73]=w):w=E[73],E[74]!==b||E[75]!==w?(k=(0,v.jsx)(I.so,{gap:1,align:"center",style:C,children:(0,v.jsxs)(tL.vE,{children:[b,w]})}),E[74]=b,E[75]=w,E[76]=k):k=E[76],E[77]!==ep||E[78]!==k?(S=(0,v.jsxs)(I.BJ,{space:1,children:[k,ep]}),E[77]=ep,E[78]=k,E[79]=S):S=E[79],E[80]!==S||E[81]!==ed?(T=(0,v.jsx)(yT,{border:!0,$radius:2,padding:1,tone:ed,ref:ey,tabIndex:-1,
205children:S}),E[80]=S,E[81]=ed,E[82]=T):T=E[82],T}function yA(e){return"warning"===e.level}function yD(e){return"error"===e.level}let yz={hits:[],isLoading:!1},yP=()=>!0;function yR(e){return null!==e}function yN(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,E,$,A=(0,j.c)(100),{createOptions:D,onChange:z,onEditReference:P,onSearch:R,schemaType:N,readOnly:O,id:V,onPathFocus:M,value:L,renderPreview:F,path:B,elementProps:Y,focusPath:H}=e,{selectedReleaseId:U}=a3();A[0]!==B||A[1]!==N||A[2]!==L?(t={path:B,schemaType:N,value:L},A[0]=B,A[1]=N,A[2]=L,A[3]=t):t=A[3];let{getReferenceInfo:Z}=yS(t),[q,W]=(0,_.useState)(yz);A[4]!==z||A[5]!==P||A[6]!==M||A[7]!==B||A[8]!==N.name||A[9]!==N.weak||A[10]!==U?(n=e=>{let t=(0,ii.A)(),n=typeof U>"u"?[hq(!0,["_weak"])]:[],i=[hq({type:e.type,weak:N.weak,template:e.template},["_strengthenOnPublish"])];z([hU({}),hq(N.name,["_type"]),hq(t,["_ref"])].concat(n,i).filter(r$)),P({id:t,type:e.type,template:e.template,version:U}),M(B)},A[4]=z,A[5]=P,A[6]=M,A[7]=B,A[8]=N.name,A[9]=N.weak,A[10]=U,A[11]=n):n=A[11];let J=n;A[12]!==z||A[13]!==M||A[14]!==B||A[15]!==N.name||A[16]!==N.weak||A[17]!==q.hits?(i=e=>{if(!e){z(hW()),M([]);return}let t=q.hits.find(t=>t.id===e);if(!t)throw Error("Selected an item that wasnt part of the result set");z([hU({}),hq(N.name,["_type"]),hq((0,tG.IM)(e),["_ref"]),t.published&&!N.weak?hW(["_weak"]):hq(!0,["_weak"]),t.published?hW(["_strengthenOnPublish"]):hq({type:t?.type,weak:N.weak},["_strengthenOnPublish"])].filter(r$)),M(B)},A[12]=z,A[13]=M,A[14]=B,A[15]=N.name,A[16]=N.weak,A[17]=q.hits,A[18]=i):i=A[18];let K=i;A[19]!==z?(r=()=>{z(hW())},A[19]=z,A[20]=r):r=A[20];let G=r;A[21]!==M||A[22]!==B?(a=e=>{"Escape"===e.key&&M(B)},A[21]=M,A[22]=B,A[23]=a):a=A[23];let X=a,Q=yb(L?._ref,Z),[ee,et]=(0,_.useState)(null),{push:en}=(0,T.dj)(),{t:ei}=as();A[24]!==V||A[25]!==R||A[26]!==en||A[27]!==ei?(o=e=>e.pipe((0,to.p)(yR),(0,eM.n)(e=>(0,eR.x)((0,eP.of)({isLoading:!0}),R(e).pipe((0,eV.T)(t=>({hits:t,searchString:e,isLoading:!1})),(0,eY.W)(t=>(en({title:ei("inputs.reference.error.search-failed-title"),description:t.message,status:"error",id:`reference-search-fail-${V}`}),console.error(t),(0,eP.of)({hits:[],searchString:e,isLoading:!1})))))),(0,ts.S)(yV,yz),(0,e5.M)(W)),A[24]=V,A[25]=R,A[26]=en,A[27]=ei,A[28]=o):o=A[28];let er=(0,tF.N)(o);A[29]!==er?(l=()=>{er("")},A[29]=er,A[30]=l):l=A[30];let ea=l;A[31]!==M||A[32]!==B?(s=e=>{"Escape"===e.key&&M(B)},A[31]=M,A[32]=B,A[33]=s):s=A[33];let eo=s;A[34]!==F||A[35]!==N?(d=e=>(0,v.jsx)(esA,{forwardedAs:"button",type:"button",radius:2,tone:"inherit",children:(0,v.jsx)(gX,{id:e.hit.id,type:e.hit.type,renderPreview:F,referenceType:N})}),A[34]=F,A[35]=N,A[36]=d):d=A[36];let el=d;A[37]!==Q.result?.preview?.original?.title||A[38]!==Q.result?.preview?.snapshot?.title?(c=()=>Q.result?.preview?.snapshot?.title||Q.result?.preview?.original?.title||"",A[37]=Q.result?.preview?.original?.title,A[38]=Q.result?.preview?.snapshot?.title,A[39]=c):c=A[39];let es=c;A[40]!==M?(u=()=>M(["_ref"]),A[40]=M,A[41]=u):u=A[41];let ed=u;A[42]!==ee||A[43]!==e.elementProps?(p=t=>{ee?.contains(t.relatedTarget)||e.elementProps.onBlur(t)},A[42]=ee,A[43]=e.elementProps,A[44]=p):p=A[44];let ec=p,eu=Q?.result?.availability?.reason==="NOT_FOUND"&&!L?._strengthenOnPublish&&L?._weak;A[45]!==Y?(m=(e,t)=>{!e&&t&&Y.ref.current?.focus()},A[45]=Y,A[46]=m):m=A[46],fS(H?.[0]==="_ref",m),A[47]!==q.hits?(h=q.hits.map(yO),A[47]=q.hits,A[48]=h):h=A[48];let ep=h,em=1===H.length&&"_ref"===H[0],{menuRef:eh,menuButtonRef:ef,containerRef:eg}=function(){let e=(0,j.c)(1),t=(0,_.useContext)(S.Re);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={menuRef:{current:null},menuButtonRef:{current:null},containerRef:{current:null}},e[0]=t):t=e[0],t}return t}(),ey=(0,_.useRef)(null),eC=(0,_.useRef)(null),ex=(0,_.useRef)(null);A[49]!==G||A[50]!==em||A[51]!==ef||A[52]!==L?._ref?(f=!L?._ref&&(()=>{(em||document.activeElement===ef.current)&&G()}),A[49]=G,A[50]=em,A[51]=ef,A[52]=L?._ref,A[53]=f):f=A[53],A[54]!==eg||A[55]!==ef||A[56]!==eh?(g=()=>[eh.current,ef.current,eg.current,ey.current,eC.current,ex.current],A[54]=eg,A[55]=ef,A[56]=eh,A[57]=g):g=A[57],(0,I.PR)(f,g),A[58]!==G||A[59]!==eu||A[60]!==ei||A[61]!==L?(y=eu?(0,v.jsx)(g$,{"data-testid":"alert-nonexistent-document",title:ei("inputs.reference.error.nonexistent-document-title"),suffix:(0,v.jsx)(I.BJ,{padding:2,children:(0,v.jsx)(tL.$n,{text:ei("inputs.reference.error.nonexistent-document.clear-button-label"),onClick:G})}),children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{i18nKey:"inputs.reference.error.nonexistent-document-description",t:ei,values:{documentId:L._ref}})})}
205):null,A[58]=G,A[59]=eu,A[60]=ei,A[61]=L,A[62]=y):y=A[62];let eb=q.isLoading;A[63]!==ei?(C=ei("inputs.reference.search-placeholder"),A[63]=ei,A[64]=C):C=A[64];let ev=Q.isLoading||O;A[65]!==ea?(x={onClick:ea},A[65]=ea,A[66]=x):x=A[66];let ej=L?._ref;return A[67]!==ee||A[68]!==Y||A[69]!==X||A[70]!==ec||A[71]!==K||A[72]!==ed||A[73]!==er||A[74]!==ep||A[75]!==B||A[76]!==es||A[77]!==q.isLoading||A[78]!==q.searchString||A[79]!==C||A[80]!==ev||A[81]!==el||A[82]!==x||A[83]!==ej?(b=(0,v.jsx)(g5,{...Y,path:B,onFocus:ed,onBlur:ec,"data-testid":"autocomplete",loading:eb,referenceElement:ee,options:ep,radius:2,placeholder:C,onKeyDown:X,readOnly:ev,onQueryChange:er,searchString:q.searchString,onChange:K,filterOption:yP,renderOption:el,renderValue:es,openButton:x,portalRef:eC,value:ej}),A[67]=ee,A[68]=Y,A[69]=X,A[70]=ec,A[71]=K,A[72]=ed,A[73]=er,A[74]=ep,A[75]=B,A[76]=es,A[77]=q.isLoading,A[78]=q.searchString,A[79]=C,A[80]=ev,A[81]=el,A[82]=x,A[83]=ej,A[84]=b):b=A[84],A[85]!==D||A[86]!==eo||A[87]!==J||A[88]!==V||A[89]!==O?(w=D.length>0&&(0,v.jsx)(gL,{id:`${V}-selectTypeMenuButton`,readOnly:O,createOptions:D,onCreate:J,onKeyDown:eo,menuRef:ex}),A[85]=D,A[86]=eo,A[87]=J,A[88]=V,A[89]=O,A[90]=w):w=A[90],A[91]!==b||A[92]!==w?(k=(0,v.jsxs)(gN,{ref:et,children:[b,w]}),A[91]=b,A[92]=w,A[93]=k):k=A[93],A[94]!==y||A[95]!==k?(E=(0,v.jsx)(I.BJ,{space:1,"data-testid":"reference-input",ref:ey,children:(0,v.jsxs)(I.BJ,{space:2,children:[y,k]})}),A[94]=y,A[95]=k,A[96]=E):E=A[96],A[97]!==e||A[98]!==E?($=(0,v.jsx)(y$,{...e,children:E}),A[97]=e,A[98]=E,A[99]=$):$=A[99],$}function yO(e){return{value:e.id,hit:e}}function yV(e,t){return{...e,...t}}async function yM(e){let{options:t,document:n,valuePath:i,perspective:r,getClient:a}=e;if(!t)return{};if("function"==typeof t.filter){let e=i.slice(0,-1),o=(0,w.Jt)(n,e);return await t.filter({document:n,parentPath:e,parent:o,perspective:r,getClient:a})}return{filter:t.filter,params:"filterParams"in t?t.filterParams:void 0}}function yL(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(52),y=_g();g[0]!==y?(t=y.getClient(ob),g[0]=y,g[1]=t):t=g[1];let C=t,{perspectiveStack:x}=a3(),b=R8(),k=gw(),S=cc(),{path:I,schemaType:T}=e,E=fa();g[2]!==E?({EditReferenceLinkComponent:n,onEditReference:o,activePath:i,initialValueTemplateItems:a,...r}=E,g[2]=E,g[3]=n,g[4]=i,g[5]=r,g[6]=a,g[7]=o):(n=g[3],i=g[4],r=g[5],a=g[6],o=g[7]);let{strategy:$}=y.search;g[8]===Symbol.for("react.memo_cache_sentinel")?(l=[],g[8]=l):l=g[8];let A=gI(l),D=A?._type;g[9]!==D||g[10]!==b?(s=b.get(D),g[9]=D,g[10]=b,g[11]=s):s=g[11];let z=s?.liveEdit,P=r.disableNew??T.options?.disableNew===!0,R=y.getClient;g[12]!==S||g[13]!==A||g[14]!==R||g[15]!==k||g[16]!==I||g[17]!==x||g[18]!==T.options||g[19]!==T.to||g[20]!==C||g[21]!==$?(d=e=>(0,eL.H)(yM({options:T.options,document:A,perspective:x,valuePath:I,getClient:R})).pipe((0,tx.Z)(t=>{let{filter:n,params:i,perspective:r}=t;if((r?Array.isArray(r)?r:[r]:[]).filter(e=>"drafts"!==e&&"published"!==e&&!x.includes(e)).length>0)throw Error(`Custom reference filter returned an invalid perspective. Filters can only remove perspectives from the passed stack, not add new ones. Expected a subset of [${x.join(", ")}], but received [${r}].`);let a={...T.options,filter:n,params:i,tag:"search.reference",maxFieldDepth:k,strategy:$,perspective:r||x};return gb(T.to,C,{...a,maxDepth:a.maxFieldDepth||nY.ab})(e,{perspective:a.perspective,limit:101}).pipe((0,eV.T)(yY),(0,eM.n)(e=>0===e.length?(0,eP.of)([]):(0,e8.z)(e.map(e=>S.observePaths({_id:(0,tG.IM)(e._id)},["_rev"]).pipe((0,eV.T)(t=>({id:e._id,type:e._type,published:!!t})))))))}),(0,eY.W)(e=>{let t=e.details&&"queryParseError"===e.details.type;return T.options?.filter&&t?(0,eJ.$)(()=>Error('Invalid reference filter, please check the custom "filter" option',{cause:e})):(0,eJ.$)(()=>e)})),g[12]=S,g[13]=A,g[14]=R,g[15]=k,g[16]=I,g[17]=x,g[18]=T.options,g[19]=T.to,g[20]=C,g[21]=$,g[22]=d):d=g[22];let N=(0,_.useEffectEvent)(d),O=e.value?._strengthenOnPublish?.template;g[23]!==n||g[24]!==I||g[25]!==O?(c=(0,_.forwardRef)(function(e,t){return n?(0,v.jsx)(n,{...e,ref:t,parentRefPath:I,template:O}):null}),g[23]=n,g[24]=I,g[25]=O,g[26]=c):c=g[26];let V=c;g[27]!==o||g[28]!==I?(u=e=>{o?.({parentRefPath:I,id:e.id,type:e.type,template:e.template,version:e.version})},g[27]=o,g[28]=I,g[29]=u):u=g[29];let M=u;g[30]!==i?.path||g[31]!==i?.state||g[32]!==I?(p=w.w1(I,i?.path||[])?i?.state:"none",g[30]=i?.path,g[31]=i?.state,g[32]=I,g[33]=p):p=g[33];let L=p;e:{let e;if(P){let e;g[34]===Symbol.for("react.memo_cache_sentinel")?(e=[],g[34]=e):e=g[34],m=e;break e}if(g[35]!==A||g[36]!==a||g[37]!==I||g[38]!==T){let t=(function(e){let{schemaType:t,document:n,valuePath:i}=e,r=t.to.map(e=>e.name),a=r.map(e=>({type:e})),o=t.options?.creationTypeFilter;if(!o)return a;let l=i.slice(0,-1),s={document:n,parent:(0,w.Jt)(n,l),parentPath:l};try{let e=o(s,a);if(!Array.isArray(e))return console.error("[sanity] creationTypeFilter must return an array, falling back to all types"),a;if(0===e.length)return[];let t=e.filter(e=>e&&"object"==typeof e&&"type"in e?r.includes(e.type):(console.error("[sanity] creationTypeFilter returned invali
205d object without type property:",e),!1));return t.length>0?t:a}catch(e){return console.error("[sanity] Error in reference creationTypeFilter function, falling back to all types:",e),a}})({schemaType:T,document:A,valuePath:I}).map(yB);e=(a||[]).filter(e=>t.includes(e.template?.schemaType??"")).map(yF).filter(r$),g[35]=A,g[36]=a,g[37]=I,g[38]=T,g[39]=e}else e=g[39];m=e}let F=m;g[40]!==S||g[41]!==x?(h=(e,t)=>yk(S,e,t,x),g[40]=S,g[41]=x,g[42]=h):h=g[42];let B=h;return g[43]!==V||g[44]!==F||g[45]!==B||g[46]!==M||g[47]!==N||g[48]!==z||g[49]!==e||g[50]!==L?(f=(0,v.jsx)(yN,{...e,onSearch:N,liveEdit:z,getReferenceInfo:B,selectedState:L,editReferenceLinkComponent:V,createOptions:F,onEditReference:M}),g[43]=V,g[44]=F,g[45]=B,g[46]=M,g[47]=N,g[48]=z,g[49]=e,g[50]=L,g[51]=f):f=g[51],f}function yF(e){return e.template?.schemaType?{id:e.id,title:e.title||`${e.template.schemaType} from template ${e.template?.id}`,i18n:e.i18n,type:e.template.schemaType,icon:e.icon,template:{id:e.template?.id,params:e.parameters},permission:{granted:e.granted,reason:e.reason}}:void 0}function yB(e){return e.type}function yY(e){let{hits:t}=e;return t.map(yH)}function yH(e){let{hit:t}=e;return t}let yU=function(e){let t,n,i,r,a=(0,j.c)(6),o=(0,_.useRef)(e.value);a[0]!==e.value?(t=()=>{o.current=e.value},n=[e.value],a[0]=e.value,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,_.useEffect)(t,n),a[3]===Symbol.for("react.memo_cache_sentinel")?(i=e=>oi(o.current,e),a[3]=i):i=a[3];let l=i;return a[4]!==e.children?(r=(0,v.jsx)(S.RA.Provider,{value:l,children:e.children}),a[4]=e.children,a[5]=r):r=a[5],r};function yZ(){let e=(0,_.useContext)(S.RA);if(!e)throw Error("useGetFormValue must be used within a GetFormValueProvider");return e}yU.displayName="GetFormValueProvider";let yq=(0,tW.g_)({name:"Nested Dialog Opened",version:1,description:"User opened a nested dialog"}),yW=(0,tW.g_)({name:"Nested Dialog Closed",version:2,description:"User closed a nested dialog"}),yJ=(0,tW.g_)({name:"Edited Nested Object in Array List",version:1,description:"User edited a object - meaning a navigation to a nested object was made through the array list"}),yK=(0,tW.g_)({name:"Navigated to Nested Object via Breadcrumb",version:1,description:"User navigated to a nested object via a breadcrumb"}),yG=(0,tW.g_)({name:"Navigated to Nested Object via Close Button",version:1,description:"User navigated to a nested object via closing the top most dialog via the close button"}),yX=(0,tW.g_)({name:"Navigated to Nested Object via Keyboard Shortcut",version:1,description:"User navigated to a nested object via a keyboard shortcut"}),yQ=(0,tW.g_)({name:"Created New Object in Array List",version:1,description:"User created a new object in an array list"}),y1=(0,tW.g_)({name:"Created Prepended Object in Array List",version:1,description:"User created a prepended object in an array list"}),y2=(0,tW.g_)({name:"Created Appended Object in Array List",version:1,description:"User created an appended object in an array list"}),y5=(0,tW.g_)({name:"Removed Object in Array List",version:1,description:"User removed a object from an array list via actions"}),y0=(0,tW.g_)({name:"Opened Portable Text Editor Full Screen in Nested Object Dialog",version:1,description:"User opened a portable text editor in full screen mode in a object dialog"}),y7=(0,tW.g_)({name:"Closed Portable Text Editor Full Screen in Nested Object Dialog",version:1,description:"User closed a portable text editor in full screen mode in a object dialog"});function y3(){return(0,_.useContext)(S.pz)}function y8(e){return(0,eD.$d)(e)?"object"===e.name?{}:{_type:e.name}:(0,eD.zR)(e)?[]:"string"===e.jsonType?"":"number"===e.jsonType?0:"boolean"!==e.jsonType&&void 0}function y4(e){let t=(()=>{if(d)return d;d=[];for(let e=0;e<256;++e)d[e]=(e+256).toString(16).slice(1);return d})();return(function(e=16){let t=new Uint8Array(e);return crypto.getRandomValues(t),t})(e).reduce((e,n)=>e+t[n],"").slice(0,e)}function y6(e){return void 0!==e._key?e:{...e,_key:y4(12)}}function y9(e,t){if(!(!t||!e))return`desc_${e}`}function Ce(e,t,n){return(0,eL.H)(e).pipe((0,tx.Z)(e=>{let i,r={_key:e._key};return(0,eP.of)((i=(0,nq.yu)(e),t.of.find(e=>e.name===i))).pipe((0,tx.Z)(e=>e?(0,eP.of)(e):eO.w),(0,tx.Z)(t=>hj(e)&&n?(0,eR.x)((0,eP.of)({type:"patch",patches:[hq(!0,[r,"_resolvingInitialValue"])]}),(0,eN.v)(()=>n(t,e)).pipe((0,to.p)(r$),(0,eV.T)(e=>{var t;return{type:"patch",patches:(t=[r],Object.entries(e).map(([e,n])=>hq(n,[...t,e])))}}),(0,eY.W)(n=>(0,eP.of)({type:"error",error:n,item:e,schemaType:t}))),(0,eP.of)({type:"patch",patches:[hW([r,"_resolvingInitialValue"])]})):eO.w))}))}function Ct(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,I,E,$,A,D,z=(0,j.c)(169),P=(0,_.useRef)(void 0),{member:R,renderAnnotation:N,renderBlock:O,renderField:V,renderInlineBlock:M,renderInput:L,renderItem:F,renderPreview:B}=e,{t:Y}
205=as(),{onPathBlur:H,onPathFocus:U,onChange:Z,onPathOpen:q,onSetPathCollapsed:W,onSetFieldSetCollapsed:J,onFieldGroupSelect:K}=fr(),G=dr(),X=yZ(),{onCopy:Q}=eoS(),ee=(0,tK.Jr)(),{enabled:et}=y3();z[0]===Symbol.for("react.memo_cache_sentinel")?(t=(e,t)=>{!e&&t&&P.current?.focus()},z[0]=t):t=z[0],fS(R.item.focused,t),z[1]!==et||z[2]!==R.item.path||z[3]!==R.key||z[4]!==Z||z[5]!==ee?(n=()=>{ee.log(y5,{path:on(R.item.path),origin:et?"nested-object":"default"}),Z(gD.from([hW([{_key:R.key}])]))},z[1]=et,z[2]=R.item.path,z[3]=R.key,z[4]=Z,z[5]=ee,z[6]=n):n=z[6];let en=n;z[7]!==q||z[8]!==W?(i=e=>{q(e),W(e,!1)},z[7]=q,z[8]=W,z[9]=i):i=z[9];let ei=i,er=(0,T.dj)();z[10]!==et||z[11]!==R.item.path||z[12]!==ee?(r=e=>{"before"===e.position?ee.log(y1,{path:on(R.item.path),origin:et?"nested-object":"default"}):ee.log(y2,{path:on(R.item.path),origin:et?"nested-object":"default"})},z[10]=et,z[11]=R.item.path,z[12]=ee,z[13]=r):r=z[13];let ea=r;z[14]!==ei||z[15]!==R.item.path||z[16]!==R.key||z[17]!==R.parentSchemaType||z[18]!==Z||z[19]!==U||z[20]!==G||z[21]!==Y||z[22]!==ea||z[23]!==er?(a=e=>{if(0===e.items.length)throw Error("Insert event should include at least one item");let t=e.items.map(Cn);Z(gD.from([hZ(t,e.position,[{_key:R.key}])]));let n=t[0]._key,i=[...R.item.path.slice(0,-1),{_key:n}];U(i);let r=!1!==e.open;e.skipInitialValue?r&&(ei(i),ea(e)):Ce(t,R.parentSchemaType,G).pipe((0,e5.M)(e=>{"patch"===e.type?Z(gD.from(e.patches)):er.push({title:Y("inputs.array.error.cannot-resolve-initial-value-title"),description:Y("inputs.array.error.cannot-resolve-initial-value-description",{schemaTypeTitle:e.schemaType.title,errorMessage:e.error.message}),status:"error"})})).subscribe({complete:()=>{r&&(ei(i),ea(e))}})},z[14]=ei,z[15]=R.item.path,z[16]=R.key,z[17]=R.parentSchemaType,z[18]=Z,z[19]=U,z[20]=G,z[21]=Y,z[22]=ea,z[23]=er,z[24]=a):a=z[24];let eo=a;z[25]!==X||z[26]!==R.item.path||z[27]!==Q?(o=e=>{let t=X([]);Q(R.item.path,t,{context:{source:"arrayItem"},patchType:"append"})},z[25]=X,z[26]=R.item.path,z[27]=Q,z[28]=o):o=z[28];let el=o;z[29]!==R.item.path||z[30]!==H?(l=()=>{H(R.item.path)},z[29]=R.item.path,z[30]=H,z[31]=l):l=z[31];let es=l;z[32]!==R.item.path||z[33]!==U?(s=()=>{U(R.item.path)},z[32]=R.item.path,z[33]=U,z[34]=s):s=z[34];let ed=s;z[35]!==R.item.path||z[36]!==U?(d=e=>{U(R.item.path.concat(e))},z[35]=R.item.path,z[36]=U,z[37]=d):d=z[37];let ec=d;z[38]!==R.item.schemaType||z[39]!==R.key||z[40]!==Z?(c=e=>{Z(gD.from(e).prepend(hU(y8(R.item.schemaType))).prefixAll({_key:R.key}))},z[38]=R.item.schemaType,z[39]=R.key,z[40]=Z,z[41]=c):c=z[41];let eu=c;z[42]!==R.item.path||z[43]!==W?(u=()=>{W(R.item.path,!0)},z[42]=R.item.path,z[43]=W,z[44]=u):u=z[44];let ep=u;z[45]!==R.item.path||z[46]!==W?(p=()=>{W(R.item.path,!1)},z[45]=R.item.path,z[46]=W,z[47]=p):p=z[47];let em=p;z[48]!==R.item.path||z[49]!==W?(m=e=>{W(R.item.path.concat(e),!0)},z[48]=R.item.path,z[49]=W,z[50]=m):m=z[50];let eh=m;z[51]!==R.item.path||z[52]!==W?(h=e=>{W(R.item.path.concat(e),!1)},z[51]=R.item.path,z[52]=W,z[53]=h):h=z[53];let ef=h;z[54]!==R.item.path||z[55]!==q?(f=()=>{q(R.item.path)},z[54]=R.item.path,z[55]=q,z[56]=f):f=z[56];let eg=f;z[57]!==R.item.path||z[58]!==q?(g=e=>{q(R.item.path.concat(e))},z[57]=R.item.path,z[58]=q,z[59]=g):g=z[59];let ey=g;z[60]!==R.item.path||z[61]!==J?(y=e=>{J(R.item.path.concat(e),!1)},z[60]=R.item.path,z[61]=J,z[62]=y):y=z[62];let eC=y;z[63]!==R.item.path||z[64]!==J?(C=e=>{J(R.item.path.concat(e),!0)},z[63]=R.item.path,z[64]=J,z[65]=C):C=z[65];let ex=C;z[66]!==et||z[67]!==R.item.path||z[68]!==q||z[69]!==ee?(x=()=>{ee.log(yJ,{path:on(R.item.path),origin:et?"nested-object":"default"}),q(R.item.path)},z[66]=et,z[67]=R.item.path,z[68]=q,z[69]=ee,z[70]=x):x=z[70];let eb=x;z[71]!==R.item.value?(b=!R.item.value||hj(R.item.value),z[71]=R.item.value,z[72]=b):b=z[72];let ev=b;z[73]!==ev||z[74]!==R.item.path||z[75]!==U||z[76]!==q||z[77]!==en?(w=()=>{ev&&en();let e=R.item.path.slice(0,-1);q(e),U(e)},z[73]=ev,z[74]=R.item.path,z[75]=U,z[76]=q,z[77]=en,z[78]=w):w=z[78];let ej=w;z[79]!==R.item.path||z[80]!==K?(k=e=>{K(R.item.path,e)},z[79]=R.item.path,z[80]=K,z[81]=k):k=z[81];let ew=k,e_=R.item.id;z[82]!==R.item.id||z[83]!==R.item.schemaType.description?(S=y9(R.item.id,R.item.schemaType.description),z[82]=R.item.id,z[83]=R.item.schemaType.description,z[84]=S):S=z[84],z[85]!==e
205s||z[86]!==ed||z[87]!==R.item.id||z[88]!==S?(I={onBlur:es,onFocus:ed,id:e_,ref:P,"aria-describedby":S},z[85]=es,z[86]=ed,z[87]=R.item.id,z[88]=S,z[89]=I):I=z[89];let ek=I,eS=R.item.displayInlineChanges??!1;z[90]!==ek||z[91]!==eu||z[92]!==eg||z[93]!==eh||z[94]!==ex||z[95]!==ef||z[96]!==eC||z[97]!==ec||z[98]!==ey||z[99]!==ew||z[100]!==R.item.__unstable_computeDiff||z[101]!==R.item.changed||z[102]!==R.item.compareValue||z[103]!==R.item.focusPath||z[104]!==R.item.focused||z[105]!==R.item.groups||z[106]!==R.item.hasUpstreamVersion||z[107]!==R.item.id||z[108]!==R.item.level||z[109]!==R.item.members||z[110]!==R.item.path||z[111]!==R.item.presence||z[112]!==R.item.readOnly||z[113]!==R.item.schemaType||z[114]!==R.item.validation||z[115]!==R.item.value||z[116]!==N||z[117]!==O||z[118]!==V||z[119]!==M||z[120]!==L||z[121]!==F||z[122]!==B||z[123]!==eS?(E={changed:R.item.changed,__unstable_computeDiff:R.item.__unstable_computeDiff,hasUpstreamVersion:R.item.hasUpstreamVersion,focusPath:R.item.focusPath,focused:R.item.focused,groups:R.item.groups,id:R.item.id,level:R.item.level,members:R.item.members,onChange:eu,onFieldClose:eg,onFieldCollapse:eh,onFieldSetCollapse:ex,onFieldExpand:ef,onFieldSetExpand:eC,onFieldGroupSelect:ew,onPathFocus:ec,onFieldOpen:ey,path:R.item.path,presence:R.item.presence,readOnly:R.item.readOnly,renderAnnotation:N,renderBlock:O,renderField:V,renderInlineBlock:M,renderInput:L,renderItem:F,renderPreview:B,schemaType:R.item.schemaType,validation:R.item.validation,value:R.item.value,compareValue:R.item.compareValue,elementProps:ek,displayInlineChanges:eS},z[90]=ek,z[91]=eu,z[92]=eg,z[93]=eh,z[94]=ex,z[95]=ef,z[96]=eC,z[97]=ec,z[98]=ey,z[99]=ew,z[100]=R.item.__unstable_computeDiff,z[101]=R.item.changed,z[102]=R.item.compareValue,z[103]=R.item.focusPath,z[104]=R.item.focused,z[105]=R.item.groups,z[106]=R.item.hasUpstreamVersion,z[107]=R.item.id,z[108]=R.item.level,z[109]=R.item.members,z[110]=R.item.path,z[111]=R.item.presence,z[112]=R.item.readOnly,z[113]=R.item.schemaType,z[114]=R.item.validation,z[115]=R.item.value,z[116]=N,z[117]=O,z[118]=V,z[119]=M,z[120]=L,z[121]=F,z[122]=B,z[123]=eS,z[124]=E):E=z[124];let eI=E;return z[125]!==eI||z[126]!==L?($=(0,v.jsx)(Ci,{...eI,render:L}),z[125]=eI,z[126]=L,z[127]=$):$=z[127],z[128]!==es||z[129]!==ej||z[130]!==ep||z[131]!==el||z[132]!==em||z[133]!==ed||z[134]!==eo||z[135]!==eb||z[136]!==eI||z[137]!==R.collapsed||z[138]!==R.collapsible||z[139]!==R.index||z[140]!==R.item.__unstable_computeDiff||z[141]!==R.item.changed||z[142]!==R.item.compareValue||z[143]!==R.item.focused||z[144]!==R.item.hasUpstreamVersion||z[145]!==R.item.id||z[146]!==R.item.level||z[147]!==R.item.path||z[148]!==R.item.presence||z[149]!==R.item.readOnly||z[150]!==R.item.schemaType||z[151]!==R.item.validation||z[152]!==R.item.value||z[153]!==R.key||z[154]!==R.open||z[155]!==R.parentSchemaType||z[156]!==en||z[157]!==F||z[158]!==$?(A=(0,v.jsx)(Cr,{index:R.index,level:R.item.level,value:R.item.value,compareValue:R.item.compareValue,__unstable_computeDiff:R.item.__unstable_computeDiff,hasUpstreamVersion:R.item.hasUpstreamVersion,title:R.item.schemaType.title,description:R.item.schemaType.description,collapsible:R.collapsible,collapsed:R.collapsed,schemaType:R.item.schemaType,parentSchemaType:R.parentSchemaType,onInsert:eo,onCopy:el,onRemove:en,presence:R.item.presence,validation:R.item.validation,open:R.open,onOpen:eb,onClose:ej,onExpand:em,onCollapse:ep,readOnly:R.item.readOnly,focused:R.item.focused,onFocus:ed,onBlur:es,inputId:R.item.id,path:R.item.path,changed:R.item.changed,inputProps:eI,render:F,children:$},R.key),z[128]=es,z[129]=ej,z[130]=ep,z[131]=el,z[132]=em,z[133]=ed,z[134]=eo,z[135]=eb,z[136]=eI,z[137]=R.collapsed,z[138]=R.collapsible,z[139]=R.index,z[140]=R.item.__unstable_computeDiff,z[141]=R.item.changed,z[142]=R.item.compareValue,z[143]=R.item.focused,z[144]=R.item.hasUpstreamVersion,z[145]=R.item.id,z[146]=R.item.level,z[147]=R.item.path,z[148]=R.item.presence,z[149]=R.item.readOnly,z[150]=R.item.schemaType,z[151]=R.item.validation,z[152]=R.item.value,z[153]=R.key,z[154]=R.open,z[155]=R.parentSchemaType,z[156]=en,z[157]=F,z[158]=$,z[159]=A):A=z[159],z[160]!==eu||z[161]!==K||z[162]!==H||z[163]!==U||z[164]!==q||z[165]!==J||z[166]!==W||z[167]!==A?(D=(0,v.jsx)(fi,{onFieldGroupSelect:K,onChange:eu,onPathOpen:q,onSetFieldSetCollapsed:J,onSetPathCollapsed:W,onPathBlur:H,onPathF
205ocus:U,children:A}),z[160]=eu,z[161]=K,z[162]=H,z[163]=U,z[164]=q,z[165]=J,z[166]=W,z[167]=A,z[168]=D):D=z[168],D}function Cn(e){return y6(e)}function Ci({render:e,...t}){return e(t)}function Cr({render:e,...t}){return e(t)}let Ca=(0,eI.I4)(I.Zp).withConfig({displayName:"PopoverCard",componentId:"sc-w3hc0b-0"})`max-width:${({theme:e})=>e.sanity.container[1]}px;`;function Co(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z=(0,j.c)(60);if(z[0]!==e){let{value:r,onFocus:a,vertical:o,...l}=e;i=r,t=a,n=l,z[0]=e,z[1]=t,z[2]=n,z[3]=i}else t=z[1],n=z[2],i=z[3];let[P,R]=(0,_.useState)(!1),N=(0,_.useRef)(null),{t:O}=as();z[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>R(!1),a=()=>[N.current],z[4]=r,z[5]=a):(r=z[4],a=z[5]),(0,I.PR)(r,a),z[6]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{("Escape"===e.key||"Tab"===e.key)&&R(!1)},z[6]=o):o=z[6];let V=o;z[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{R(Cl)},z[7]=l):l=z[7];let M=l;z[8]!==i?(s=(0,nq.yu)(i),z[8]=i,z[9]=s):s=z[9];let L=s;return z[10]!==L?(d={typeName:L},z[10]=L,z[11]=d):d=z[11],z[12]!==O||z[13]!==d?(c=(0,v.jsx)(I.EY,{weight:"medium",children:(0,v.jsx)(aE,{t:O,i18nKey:"inputs.array.error.type-is-incompatible-prompt",values:d})}),z[12]=O,z[13]=d,z[14]=c):c=z[14],z[15]!==O?(u=O("inputs.array.error.type-is-incompatible-title"),z[15]=O,z[16]=u):u=z[16],z[17]!==u?(p=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:u}),z[17]=u,z[18]=p):p=z[18],z[19]!==L?(m={typeName:L},z[19]=L,z[20]=m):m=z[20],z[21]!==O||z[22]!==m?(h=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{t:O,i18nKey:"inputs.array.error.current-schema-not-declare-description",values:m})}),z[21]=O,z[22]=m,z[23]=h):h=z[23],z[24]===Symbol.for("react.memo_cache_sentinel")?(f=(0,v.jsx)(eT.Pnw,{}),z[24]=f):f=z[24],z[25]!==O?(g=O("inputs.array.error.can-delete-but-no-edit-description"),z[25]=O,z[26]=g):g=z[26],z[27]!==g?(y=(0,v.jsx)(I.az,{children:(0,v.jsxs)(I.EY,{size:1,children:[f," ",g]})}),z[27]=g,z[28]=y):y=z[28],z[29]!==O?(C=O("inputs.array.error.json-representation-description"),z[29]=O,z[30]=C):C=z[30],z[31]!==C?(x=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:C}),z[31]=C,z[32]=x):x=z[32],z[33]!==i?(b=JSON.stringify(i,null,2),z[33]=i,z[34]=b):b=z[34],z[35]!==b?(w=(0,v.jsx)(I.Zp,{padding:2,overflow:"auto",border:!0,children:(0,v.jsx)(I.Cy,{size:1,as:"pre",language:"json",children:b})}),z[35]=b,z[36]=w):w=z[36],z[37]!==x||z[38]!==w?(k=(0,v.jsxs)(I.BJ,{space:2,children:[x,w]}),z[37]=x,z[38]=w,z[39]=k):k=z[39],z[40]!==h||z[41]!==y||z[42]!==k||z[43]!==c||z[44]!==p?(S=(0,v.jsx)(Ca,{margin:1,padding:3,onKeyDown:V,tabIndex:0,overflow:"auto",children:(0,v.jsxs)(I.BJ,{space:4,children:[c,p,h,y,k]})}),z[40]=h,z[41]=y,z[42]=k,z[43]=c,z[44]=p,z[45]=S):S=z[45],z[46]===Symbol.for("react.memo_cache_sentinel")?(T=(0,v.jsx)(I.az,{marginRight:3,children:(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.KSC,{})})}),z[46]=T):T=z[46],z[47]!==L?(E={typeName:L},z[47]=L,z[48]=E):E=z[48],z[49]!==O||z[50]!==E?($=(0,v.jsxs)(I.so,{align:"center",children:[T,(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",children:(0,v.jsx)(aE,{t:O,i18nKey:"inputs.array.error.type-is-incompatible-prompt",values:E})})})]}),z[49]=O,z[50]=E,z[51]=$):$=z[51],z[52]!==t||z[53]!==n||z[54]!==$?(A=(0,v.jsx)(I.Zp,{as:"button",type:"button",radius:2,tone:"inherit",paddingX:2,paddingY:3,flex:1,onFocus:t,onClick:M,onKeyDown:V,__unstable_focusRing:!0,...n,children:$}),z[52]=t,z[53]=n,z[54]=$,z[55]=A):A=z[55],z[56]!==P||z[57]!==S||z[58]!==A?(D=(0,v.jsx)(tL.AM,{open:P,ref:N,onKeyDown:V,portal:!0,constrainSize:!0,tone:"default",content:S,children:A}),z[56]=P,z[57]=S,z[58]=A,z[59]=D):D=z[59],D}function Cl(e){return!e}function Cs(e){let t,n,i=(0,j.c)(7),{member:r}=e,{t:a}=as();if("INVALID_ITEM_TYPE"===r.error.type){let e;return i[0]!==r.error.value?(e=(0,v.jsx)(Co,{value:r.error.value}),i[0]=r.error.value,i[1]=e):e=i[1],e}return i[2]!==r.error.type||i[3]!==a?(t=a("inputs.array.error.unexpected-error",{error:r.error.type}),i[2]=r.error.type,i[3]=a,i[4]=t):t=i[4],i[5]!==t?(n=(0,v.jsx)("div",{children:t}),i[5]=t,i[6]=n):n=i[6],n}function Cd(e){switch(e.jsonType){case"string":return"";case"number":return -0;case"boolean":return!1;default:throw Error(`Unable to create value from type "${e.jsonType}"`)}}function Cc(e,t,n){return(0,eD.F3)(e)&&"string"==typeof n&&Number(n)===t?n:String(t??"")}function Cu(e){var t,n,i;let r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(84),x=(0,_.useRef)(void 0),{member:b,renderItem:w,renderInput:k}=e,[S,I]=(0,_.useState)(),{onPathBlur:T,onPathFocus:E,onChange:$}=fr(),A=yZ(),{onCopy:D}=eoS();C[0]===Symbol.for("react.memo_cache_sentinel")?(r=(e,t)=>
205{!e&&t&&x.current?.focus()},C[0]=r):r=C[0],fS(b.item.focused,r),C[1]!==b.item.path||C[2]!==T?(a=e=>{T(b.item.path)},C[1]=b.item.path,C[2]=T,C[3]=a):a=C[3];let z=a;C[4]!==b.item.path||C[5]!==E?(o=e=>{E(b.item.path)},C[4]=b.item.path,C[5]=E,C[6]=o):o=C[6];let P=o;C[7]!==b.index||C[8]!==$?(l=e=>{$(gD.from(e).prefixAll(b.index))},C[7]=b.index,C[8]=$,C[9]=l):l=C[9];let R=l;C[10]!==R||C[11]!==b.item.schemaType?(s=e=>{let t=e.currentTarget.value;if((0,eD.F3)(b.item.schemaType)){if((t=e.currentTarget.valueAsNumber)>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)return}else(0,eD.oV)(b.item.schemaType)&&(t=e.currentTarget.checked);let n=""===t||"number"==typeof t&&isNaN(t);(0,eD.F3)(b.item.schemaType)&&I(n?void 0:e.currentTarget.value),R(hq(n?Cd(b.item.schemaType):t))},C[10]=R,C[11]=b.item.schemaType,C[12]=s):s=C[12];let N=s,O=b.item.id;C[13]!==S||C[14]!==b.item.schemaType||C[15]!==b.item.value?(t=b.item.schemaType,n=b.item.value,i=S,d=Object.is(n,-0)?"":Cc(t,n,i),C[13]=S,C[14]=b.item.schemaType,C[15]=b.item.value,C[16]=d):d=C[16];let V=!!b.item.readOnly,M=b.item.schemaType.placeholder;C[17]!==b.item.id||C[18]!==b.item.schemaType.description?(c=y9(b.item.id,b.item.schemaType.description),C[17]=b.item.id,C[18]=b.item.schemaType.description,C[19]=c):c=C[19],C[20]!==z||C[21]!==P||C[22]!==N||C[23]!==b.item.id||C[24]!==b.item.schemaType.placeholder||C[25]!==d||C[26]!==V||C[27]!==c?(u={onBlur:z,onFocus:P,id:O,ref:x,onChange:N,value:d,readOnly:V,placeholder:M,"aria-describedby":c},C[20]=z,C[21]=P,C[22]=N,C[23]=b.item.id,C[24]=b.item.schemaType.placeholder,C[25]=d,C[26]=V,C[27]=c,C[28]=u):u=C[28];let L=u,F=b.item.value,B=b.item.schemaType,Y=b.item.displayInlineChanges??!1;C[29]!==L||C[30]!==R||C[31]!==b.item.__unstable_computeDiff||C[32]!==b.item.changed||C[33]!==b.item.compareValue||C[34]!==b.item.focused||C[35]!==b.item.hasUpstreamVersion||C[36]!==b.item.id||C[37]!==b.item.level||C[38]!==b.item.path||C[39]!==b.item.presence||C[40]!==b.item.readOnly||C[41]!==b.item.validation||C[42]!==F||C[43]!==B||C[44]!==Y?(p={changed:b.item.changed,level:b.item.level,value:F,compareValue:b.item.compareValue,__unstable_computeDiff:b.item.__unstable_computeDiff,hasUpstreamVersion:b.item.hasUpstreamVersion,readOnly:b.item.readOnly,schemaType:B,id:b.item.id,path:b.item.path,focused:b.item.focused,onChange:R,validation:b.item.validation,presence:b.item.presence,elementProps:L,displayInlineChanges:Y},C[29]=L,C[30]=R,C[31]=b.item.__unstable_computeDiff,C[32]=b.item.changed,C[33]=b.item.compareValue,C[34]=b.item.focused,C[35]=b.item.hasUpstreamVersion,C[36]=b.item.id,C[37]=b.item.level,C[38]=b.item.path,C[39]=b.item.presence,C[40]=b.item.readOnly,C[41]=b.item.validation,C[42]=F,C[43]=B,C[44]=Y,C[45]=p):p=C[45];let H=p;C[46]!==b.index||C[47]!==$?(m=()=>{$(gD.from([hW([b.index])]))},C[46]=b.index,C[47]=$,C[48]=m):m=C[48];let U=m;C[49]!==b.index||C[50]!==$?(h=e=>{$(gD.from([hZ(e.items,e.position,[b.index])]))},C[49]=b.index,C[50]=$,C[51]=h):h=C[51];let Z=h;C[52]!==A||C[53]!==b.item.path||C[54]!==D?(f=e=>{let t=A([]);D(b.item.path,t,{context:{source:"arrayItem"},patchType:"append"})},C[52]=A,C[53]=b.item.path,C[54]=D,C[55]=f):f=C[55];let q=f,W=b.item.value,J=b.item.schemaType;return C[56]!==H||C[57]!==k?(g=(0,v.jsx)(Cp,{...H,render:k}),C[56]=H,C[57]=k,C[58]=g):g=C[58],C[59]!==z||C[60]!==q||C[61]!==P||C[62]!==b.index||C[63]!==b.item.__unstable_computeDiff||C[64]!==b.item.changed||C[65]!==b.item.focused||C[66]!==b.item.hasUpstreamVersion||C[67]!==b.item.id||C[68]!==b.item.level||C[69]!==b.item.path||C[70]!==b.item.presence||C[71]!==b.item.readOnly||C[72]!==b.item.schemaType.description||C[73]!==b.item.schemaType.title||C[74]!==b.item.validation||C[75]!==b.key||C[76]!==b.parentSchemaType||C[77]!==Z||C[78]!==U||C[79]!==w||C[80]!==W||C[81]!==J||C[82]!==g?(y=(0,v.jsx)(Cm,{index:b.index,level:b.item.level,value:W,changed:b.item.changed,__unstable_computeDiff:b.item.__unstable_computeDiff,hasUpstreamVersion:b.item.hasUpstreamVersion,title:b.item.schemaType.title,description:b.item.schemaType.description,schemaType:J,parentSchemaType:b.parentSchemaType,onInsert:Z,onCopy:q,onRemove:U,presence:b.item.presence,validation:b.item.validation,readOnly:b.item.readOnly,focused:b.item.focused,onFocus:P,onBlur:z,inputId:b.item.id,path:b.item.path,render:w,children:g}
205,b.key),C[59]=z,C[60]=q,C[61]=P,C[62]=b.index,C[63]=b.item.__unstable_computeDiff,C[64]=b.item.changed,C[65]=b.item.focused,C[66]=b.item.hasUpstreamVersion,C[67]=b.item.id,C[68]=b.item.level,C[69]=b.item.path,C[70]=b.item.presence,C[71]=b.item.readOnly,C[72]=b.item.schemaType.description,C[73]=b.item.schemaType.title,C[74]=b.item.validation,C[75]=b.key,C[76]=b.parentSchemaType,C[77]=Z,C[78]=U,C[79]=w,C[80]=W,C[81]=J,C[82]=g,C[83]=y):y=C[83],y}function Cp({render:e,...t}){return e(t)}function Cm({render:e,...t}){return e(t)}function Ch(e){if(!(0,eD.$d)(e))throw Error(`Invalid item type: "${e.type}". Default array input can only contain objects (for now)`);return{...y8(e),_key:(0,nq.Xp)(12)}}function Cf(e){return rZ(e)&&("sanity.video"===e.name||Cf(e.type))}function Cg(e,t){let n=e.split(","),i=n[0].match(/:(.*?);/)?.[1],r=atob(n[1]),a=r.length,o=new Uint8Array(a);for(;a--;)o[a]=r.charCodeAt(a);return new File([o],t,{type:i})}function Cy({assetsFromSource:e,onChange:t,type:n,resolveUploader:i,uploadWith:r}){var a,o;if(!e)throw Error("No asset given");if(!Array.isArray(e)||0===e.length)throw Error("Returned value must be an array with at least one item (asset)");let l=e[0],s=l.assetDocumentProps,d=l.mediaLibraryProps,c=s?.originalFilename,u=s?.label,p=s?.title,m=s?.description,h=s?.creditLine,f=s?.source,g=(0,en.A)({label:u,title:p,description:m,creditLine:h,source:f},e=>null!=e&&""!==e),y="image"===n.name?[hW(["hotspot"]),hW(["crop"]),hW(["media"])]:[hW(["media"])];if(d){let e={_type:"globalDocumentReference",_ref:`media-library:${d.mediaLibraryId}:${d.assetId}`,_weak:!0};if(y.push(hq(e,["media"])),Cf(n)){let e={_type:"globalDocumentReference",_ref:`media-library:${d.mediaLibraryId}:${d.assetInstanceId}`,_weak:!0};y.push(hq(e,["asset"])),t([hU({_type:n.name}),...y]);return}}switch(l.kind){case"assetDocumentId":t([hU({_type:n.name}),...y,hq({_type:"reference",_ref:l.value},["asset"])]);break;case"file":{let e=i(n,l.value);e&&r&&r(e,l.value,g);break}case"base64":(a=l.value,new Promise((e,t)=>{let n=a.toString(),i=n.indexOf(";base64");if(!n||-1===i)return void t(Error("Could not convert base64 to file"));let r=n.slice(11,i);r||c?e(Cg(a,c||`${(0,ii.A)()}.${r}`)):t(Error("Could not find mime type for image"))})).then(e=>{let t=i(n,e);t&&r&&r(t,e,g)});break;case"url":(o=l.value,new Promise((e,t)=>{let n=new XMLHttpRequest;n.onload=()=>{let i=new FileReader;i.onloadend=()=>{let n=i.result?.toString(),r=n?.indexOf(";base64");if(!n||-1===r)return void t(Error("Could not convert URL to file"));let a=n.slice(11,r);a||c?e(Cg(i.result,c||`${(0,ii.A)()}.${a}`)):t(Error("Could not find mime type for image"))},i.readAsDataURL(n.response)},n.onerror=e=>{t(e)},n.open("GET",o),n.responseType="blob",n.send()})).then(e=>{let t=i(n,e);t&&r&&r(t,e,g)});break;default:throw Error("Invalid value returned from asset source plugin")}}let CC="before",Cx="after";function Cb(...e){return e.reduce((e,t)=>e.concat(t),[])}let Cv=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Cj={replace:(e,t)=>t,set:(e,t)=>t,setIfMissing:(e,t)=>void 0===e?t:e,unset(e,t){},inc:(e,t)=>e+t,dec:(e,t)=>e-t},Cw=Object.keys(Cj),C_={replace:(e,t)=>t,set:(e,t)=>t,setIfMissing:(e,t)=>void 0===e?t:e,unset(e,t){},diffMatchPatch(e,t){let[n]=(0,n9.$i)((0,n9.iz)(t),e,{allowExceedingIndices:!0});return n}},Ck=Object.keys(C_);function CS(e,t){return t.reduce(function e(t,n){return Array.isArray(t)?function(t,n){let i=t.slice();if(0===n.path.length){if("setIfMissing"===n.type){if(!Array.isArray(n.value))throw Error("Cannot set value of an array to a non-array");return void 0===t?n.value:t}if("set"===n.type){if(!Array.isArray(n.value))throw Error("Cannot set value of an array to a non-array");return n.value}if("unset"===n.type)return;if("move"===n.type){var r,a;let e,t;if(!n.value||!Cv(n.value,"from")||!Cv(n.value,"to"))throw Error(`Invalid value of 'move' patch. Expected a value with "from" and "to" indexes, instead got: ${JSON.stringify(n.value)}`);return r=n.value.from,a=n.value.to,t=(e=i.slice())[r],e.splice(r,1),e.splice(a,0,t),e}throw Error(`Invalid array operation: ${n.type}`)}let[o,...l]=n.path,s=function(e,t){if("number"==typeof t)return t;let n=(0,ei.A)(e,t);return -1!==n&&n}(t,o);if(!1===s)return i;if(0===l.length){if("insert"===n.type){let{position:e,items:i}=n;return function(e,t,n,...i){if(t!==CC&&t!==Cx)throw Error(`Invalid position "${t}
205", must be either ${CC} or ${Cx}`);let r=Cb(...i);if(0===e.length)return r;let a=e.length,o=Math.abs((a+n)%a)%a,l=e.slice();return l.splice("after"===t?o+1:o,0,...Cb(r)),l}(t,e,s,i)}else if("unset"===n.type){if("number"!=typeof s)throw Error(`Expected array index to be a number, instead got "${s}"`);return i.splice(s,1),i}}return i[s]=e(i[s],{...n,path:l}),i}(t,n):(0,eo.A)(t)?function(e,t){if(!Ck.includes(t.type))throw Error(`Received patch of unsupported type: "${JSON.stringify(t.type)}" for string. This is most likely a bug.`);if(t.path.length>0)throw Error(`Cannot apply deep operations on string values. Received patch with type "${t.type}" and path "${t.path.join(".")} that targeted the value "${JSON.stringify(e)}"`);return C_[t.type](e,t.value)}(t,n):(0,ea.A)(t)?function(t,n){let i=(0,er.A)(t);if(0===n.path.length){if("set"===n.type){if(!(0,ea.A)(n.value))throw Error("Cannot set value of an object to a non-object");return n.value}if("unset"===n.type)return;if("setIfMissing"===n.type)return void 0===t?n.value:t;throw Error(`Invalid object operation: ${n.type}`)}let[r,...a]=n.path;if("string"!=typeof r)throw Error(`Expected field name to be a string, instad got: ${r}`);return 0===a.length&&"unset"===n.type?(0,N.A)(i,r):(i[r]=e(i[r],{...n,path:a}),i)}(t,n):function(e,t){if(!Cw.includes(t.type))throw Error(`Received patch of unsupported type "${t.type}" for primitives. This is most likely a bug.`);if(t.path.length>0)throw Error(`Cannot apply deep operations on primitive values. Received patch with type "${t.type}" and path "${t.path.map(e=>JSON.stringify(e)).join(".")} that targeted the value "${JSON.stringify(e)}"`);return Cj[t.type](e,t.value)}(t,n)},e)}function CI(e){let t,n,i=(0,j.c)(5),r=e.actions||rM;i[0]!==r?(t={actions:r},i[0]=r,i[1]=t):t=i[1];let a=t;return i[2]!==e.children||i[3]!==a?(n=(0,v.jsx)(S.YI.Provider,{value:a,children:e.children}),i[2]=e.children,i[3]=a,i[4]=n):n=i[4],n}function CT(){let e=(0,_.useContext)(S.YI);if(!e)throw Error("useDocumentFieldActions must be used within a DocumentFieldActionsProvider");return e.actions}let CE="_upload";function C$(e,t){if(!e||!t)return!0;let n=Array.isArray(t)?t:t.split(","),i=e.name||"",r=(e.type||"").toLowerCase(),a=r.replace(/\/.*$/,"");return n.some(e=>{let t=e.trim().toLowerCase();return"."===t.charAt(0)?!i||i.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):r===t})}function CA(e,t){let n=e.indexOf(t);return n>-1&&e.splice(n,1),e}let CD=function(e,t=4){let n=function(e=4){let t=[],n=[],i=new eq.B;return function r(a){return new eU.c(o=>{if(t.length>=e){var l;return(l=a,n.push(l),i.asObservable().pipe((0,tP.$)(e=>e===l))).pipe((0,tx.Z)(r)).subscribe(o)}let s=a.subscribe(o);return t.push(s),()=>{CA(t,s),CA(n,a),s.unsubscribe(),function(){for(;n.length>0&&t.length<e;)i.next(n.shift())}()}})}}(t);return(...t)=>(0,eL.H)(n(e(...t)))}(function(e,t,n,i={}){let r=i.metadata,a=i.storeOriginalFilename,{label:o,title:l,description:s,creditLine:d,source:c}=i;return(function(e){return window.crypto&&window.crypto.subtle&&window.FileReader?new eU.c(t=>{let n=new FileReader;return n.onload=()=>{t.next(n.result),t.complete()},n.onerror=e=>{t.error(e)},n.readAsArrayBuffer(e),()=>{n.abort()}}).pipe((0,tx.Z)(e=>crypto.subtle.digest("SHA-1",e)),(0,eV.T)(CP)):(0,eP.of)(null)})(n).pipe((0,eY.W)(()=>(0,eP.of)(null)),(0,tx.Z)(n=>{var i,r,a;return n?(i=e,r=`sanity.${t}Asset`,a=n,i.observable.fetch("*[_type == $documentType && sha1hash == $hash][0]",{documentType:r,hash:a},{tag:"asset.find-duplicate"})):(0,eP.of)(null)}),(0,tx.Z)(i=>i?(0,eP.of)({type:"complete",id:i._id,asset:i}):e.observable.assets.upload(t,n,{tag:"asset.upload",extract:r,preserveFilename:a,label:o,title:l,description:s,creditLine:d,source:c}).pipe((0,eV.T)(e=>"response"===e.type?{type:"complete",id:e.body.document._id,asset:e.body.document}:e))))},4);function Cz(e,t){return e.observePaths({_type:"reference",_ref:t},["originalFilename","url","metadata","label","title","description","creditLine","source","size"])}function CP(e){return Array.prototype.map.call(new Uint8Array(e),e=>`00${e.toString(16)}`.slice(-2)).join("")}function CR(e=[]){return{type:"uploadProgress",patches:e}}let CN=CR([hW([CE])]);function CO(e){let t=new Date().toISOString();return[hq({progress:2,createdAt:t,updatedAt:t,file:{name:e.name,type:e.type}},[CE])]}function CV(e,t,n){let i=CD(e,"file",t,n).pipe((0,eV.T)(e=>"complete"===e.type?CR([hq({_type:"reference",_ref:e.asset._id},["asset"]),hq(100,[CE,"progress"]),hq(new Date().toISOString(),[CE,"updated"])]):CR([hq(e.percent,[CE,"progress"]),hq(new Date().toISOString(),[CE,"updated"])])));return(0,eR.x)((0,eP.of)(CR(CO(t))),i,(0,eP.of)(CN))}function CM(e){return[5,6,7,8].indexOf(e)>-1}function CL(e,t,n){let i=e.getContext("2d");i?.translate(t?e.width:0,n?e.height:0),i?.scale(t?-1:1,n?-1:1)}let CF=[{op:"none",degrees:0},{op:"flip-x",degrees:0},{op:"none",degrees:180},{op:"flip-y",degrees:0},{op:"flip-x",degrees:90},{op:"none",degrees:90},{op:"flip-x",degrees:-90},{op:"none",degrees:-90}],CB=["top-left","top-right","bottom-right","bottom-left","left-top","right-top","right-bottom","left-bottom"],CY=/(invalid image format)|(No exif data)/i,CH=[{type:"image",accepts:"image/*",upload:(e,t,n,i)=>(function(e,t,n){let i=CD(e,"image",t,n).pipe((0,to.p)(e=>"download"!==e.stage),(0,eV.T)(e=>({...e,progress:2+e.percent/100*98})),(0,eV.T)(e=>"complete"===e.type?CR([hq({_type:"reference",_ref:e.asset._id},["asset"]),hq(100,[CE,"progress"]),hq(new Date().toISOString(),[CE,"updatedAt"])]):CR([hq(e.percent,[CE,"progress"]),hq(new Date().toISOString(),[CE,"updatedAt"])]))),r=(0,eL.H)(new eU.c(e=>{let n=new window.FileReader;return n.onerror=t=>e.error(t),n.onload=()=>
205{e.next(n.result),e.complete()},n.readAsArrayBuffer(t.slice(0,128e3)),()=>n.abort()})).pipe((0,eV.T)(e=>iQ(e)),(0,eY.W)(e=>(CY.test(e.message)||console.warn(`Exif read failed, continuing anyway: ${e.message}`),(0,eP.of)({})))).pipe((0,tx.Z)(e=>{var n,i;return n=e.orientation||"top-left",(i=window.URL.createObjectURL(t),new eU.c(e=>{let t=new window.Image;return t.onerror=()=>{e.error(Error(`Could not load image from url "${i}". Image may be of an unsupported format`))},t.onload=()=>{e.next(t),e.complete()},t.src=i,()=>{}})).pipe((0,tx.Z)(e=>new eU.c(t=>{let i=function(e,t){var n;let i,r,a,o=CF[t-1],l=e.height/e.width;e.width=120/l,e.height=e.width*l;let s=document.createElement("canvas"),d=s.getContext("2d");if(CM(t)?(s.height=e.width,s.width=e.height):(s.width=e.width,s.height=e.height),"flip-x"===o.op&&CL(s,!0,!1),"flip-y"===o.op&&CL(s,!1,!0),o.degrees&&(i=(n={degrees:o.degrees,x:s.width/2,y:s.height/2}).x,r=n.y,a=(n.degrees||0)*(Math.PI/180),d?.translate(i,r),d?.rotate(a),d?.translate(-i,-r),CM(t))){let e=s.width-s.height;d?.translate(e/2,-e/2)}return d?.drawImage(e,0,0,e.width,e.height),s}(e,CB.indexOf(n)+1);t.next(i.toDataURL("image/jpeg",.1)),t.complete()})))}),(0,eY.W)(e=>(console.warn('Image preprocessing failed for "%s" with the error: %s',t.name,e.message),(0,eP.of)(null))),(0,to.p)(Boolean),(0,eV.T)(e=>CR([hq(e,[CE,"previewImage"])])));return(0,eR.x)((0,eP.of)(CR(CO(t))),(0,eZ.h)(i,r),(0,eP.of)(CN))})(e,t,i)},{type:"string",accepts:"text/*",upload:(e,t,n,i)=>CV(e,t,i).pipe((0,eV.T)(e=>({type:"uploadProgress",patches:[hq(e)]})))},{type:"file",accepts:"",upload:(e,t,n,i)=>CV(e,t,i)}].map((e,t)=>({...e,priority:t}));function CU(e,t){return CH.find(n=>fY(n.type,e)&&C$(t,n.accepts)&&C$(t,e.options?.accept||""))||null}function CZ(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,I,E,$,A,D,z,P=(0,j.c)(146),{onPathBlur:R,onPathFocus:N,onChange:O,onSetPathCollapsed:V,onSetFieldSetCollapsed:M,onPathOpen:L,onFieldGroupSelect:F}=fr(),{member:B,renderAnnotation:Y,renderBlock:H,renderField:U,renderInlineBlock:Z,renderInput:q,renderItem:W,renderPreview:J}=e,K=CT(),G=(0,_.useRef)(void 0);P[0]===Symbol.for("react.memo_cache_sentinel")?(t={},P[0]=t):t=P[0];let X=(0,_.useRef)(t);P[1]===Symbol.for("react.memo_cache_sentinel")?(n=[],P[1]=n):n=P[1];let[Q,ee]=(0,_.useState)(n);P[2]===Symbol.for("react.memo_cache_sentinel")?(i=(e,t)=>{!e&&t&&G.current?.focus()},P[2]=i):i=P[2],fS(B.field.focused,i),P[3]!==B.field.path||P[4]!==N?(r=e=>{e.currentTarget===e.target&&e.currentTarget===G.current&&N(B.field.path)},P[3]=B.field.path,P[4]=N,P[5]=r):r=P[5];let et=r;P[6]!==B.field.path||P[7]!==R?(a=e=>{e.currentTarget===e.target&&e.currentTarget===G.current&&R(B.field.path)},P[6]=B.field.path,P[7]=R,P[8]=a):a=P[8];let en=a,ei=(0,_.useRef)(B.field.value);P[9]!==B.field.value?(o=()=>{ei.current=B.field.value},l=[B.field.value],P[9]=B.field.value,P[10]=o,P[11]=l):(o=P[10],l=P[11]),(0,_.useEffect)(o,l),P[12]!==B.name||P[13]!==O?(s=e=>{let t=gD.from(e).patches;t.some(CJ)&&(ei.current=CS(ei.current||[],t),Array.isArray(ei.current)&&!ei.current.length)?O(gD.from(hW([B.name]))):O(gD.from(e).prepend(hU([])).prefixAll(B.name))},P[12]=B.name,P[13]=O,P[14]=s):s=P[14];let er=s,ea=dr(),eo=(0,T.dj)(),{t:es}=as();P[15]!==B.field.path||P[16]!==V?(d=()=>{V(B.field.path,!0)},P[15]=B.field.path,P[16]=V,P[17]=d):d=P[17];let ed=d;P[18]!==B.field.path||P[19]!==V?(c=()=>{V(B.field.path,!1)},P[18]=B.field.path,P[19]=V,P[20]=c):c=P[20];let ec=c;P[21]!==B.field.path||P[22]!==V?(u=e=>{V(B.field.path.concat({_key:e}),!0)},P[21]=B.field.path,P[22]=V,P[23]=u):u=P[23];let eu=u;P[24]!==B.field.path||P[25]!==V?(p=e=>{V(B.field.path.concat({_key:e}),!1)},P[24]=B.field.path,P[25]=V,P[26]=p):p=P[26];let ep=p;P[27]!==L||P[28]!==V?(m=e=>{L(e),V(e,!1)},P[27]=L,P[28]=V,P[29]=m):m=P[29];let em=m;P[30]!==B.field.path||P[31]!==L||P[32]!==V?(h=()=>{L(B.field.path),V(B.field.path,!0)},P[30]=B.field.path,P[31]=L,P[32]=V,P[33]=h):h=P[33];let eh=h;P[34]!==er||P[35]!==em||P[36]!==B.field.path||P[37]!==B.field.schemaType||P[38]!==N||P[39]!==ea||P[40]!==eo?(f=e=>{if(0===e.items.length)throw Error("Insert event should include at least one item");let t=e.items.map(CW);er(gD.from([hZ(t,e.position,[e.referenceItem])]));let n=t[0]._key,i=[...B.field.path,{_key:n}];N(i);let r=!1!==e.open;e.skipInitialValue?r&&em(i):Ce(t,B.field.schemaType,ea).pipe((0,e5.M)(e=>{"patch"===e.type?er(e.patches):eo.push({title:"Could not resolve initial value",description:`Unable to resolve initial value for type: ${e.schemaType.title}: ${e.error.message}.`,status:"error"})})).subscribe({complete:()=>{r&&em(i)}})},P[34]=er,P[35]=em,P[36]=B.field.path,P[37]=B.field.schemaType,P[38]=N,P[39]=ea,P[40]=eo,P[41]=f):f=P[41];let ef=f;P[42]!==er||P[43]!==B.field.value?(g=e=>
205{let t=B.field.value,n=t?.[e.fromIndex],i=t?.[e.toIndex];if(e.fromIndex!==e.toIndex){if(!n?._key||!i?._key)return void console.error("Neither the item you are moving nor the item you are moving to have a key. Cannot continue.");er([hW([{_key:n._key}]),hZ([n],e.fromIndex>e.toIndex?"before":"after",[{_key:i._key}])])}},P[42]=er,P[43]=B.field.value,P[44]=g):g=P[44];let eg=g;P[45]!==ef?(y=e=>{ef({items:[e],position:"before",referenceItem:0})},P[45]=ef,P[46]=y):y=P[46];let ey=y;P[47]!==ef?(C=e=>{ef({items:[e],position:"after",referenceItem:-1})},P[47]=ef,P[48]=C):C=P[48];let eC=C;P[49]!==er?(x=e=>{X.current[e]&&(X.current[e].unsubscribe(),delete X.current[e]),er([hW([{_key:e}])])},P[49]=er,P[50]=x):x=P[50];let ex=x;P[51]!==B.field.path||P[52]!==N?(b=(e,t)=>{N(B.field.path.concat(e),t)},P[51]=B.field.path,P[52]=N,P[53]=b):b=P[53];let eb=b,ev=B.field.id;P[54]!==B.field.id||P[55]!==B.field.schemaType.description?(w=y9(B.field.id,B.field.schemaType.description),P[54]=B.field.id,P[55]=B.field.schemaType.description,P[56]=w):w=P[56],P[57]!==en||P[58]!==et||P[59]!==B.field.id||P[60]!==w?(k={onBlur:en,onFocus:et,id:ev,ref:G,"aria-describedby":w},P[57]=en,P[58]=et,P[59]=B.field.id,P[60]=w,P[61]=k):k=P[61];let ej=k,ew=hE(),e_=ew.__internal.image.directUploads,ek=ew.__internal.file.directUploads;P[62]!==ek||P[63]!==e_?(S=(e,t)=>fY("image",e)&&!e_||fY("file",e)&&!ek?null:CU(e,t),P[62]=ek,P[63]=e_,P[64]=S):S=P[64];let eS=S;P[65]!==er||P[66]!==eS?(I=(e,t,n)=>{Cy({assetsFromSource:e,onChange:e=>er(gD.from(e).prefixAll({_key:n})),type:t,resolveUploader:eS,uploadWith:void 0})},P[65]=er,P[66]=eS,P[67]=I):I=P[67];let eI=I;P[68]!==er||P[69]!==ef||P[70]!==ex||P[71]!==eI||P[72]!==es||P[73]!==eo?(E=e=>{let{assetSource:t,schemaType:n,file:i}=e;if(t.Uploader){let e=Ch(n),r=e._key;try{ef({items:[e],position:"after",referenceItem:-1,open:!1}),er(gD.from(CO(i)).prefixAll({_key:r}));let a=new t.Uploader;ee(e=>{let i=t.component,o=(0,v.jsx)(i,{assetSource:t,action:"upload",onSelect:e=>eI(e,n,r),accept:"*/*",onClose:el.A,selectedAssets:[],selectionType:"single",uploader:a},r);return[...e,o]});let o=a.subscribe(e=>{switch(e.type){case"progress":er(gD.from([hq(Math.max(2,e.progress),[{_key:r},CE,"progress"]),hq(new Date().toISOString(),[{_key:r},CE,"updatedAt"])]));break;case"error":e.files.forEach(Cq),eo.push({status:"error",description:es("asset-sources.common.uploader.upload-failed.description"),title:es("asset-sources.common.uploader.upload-failed.title")});break;case"all-complete":er(gD.from([hW([{_key:r},CE])]))}});X.current={...X.current,[r]:{unsubscribe:()=>(ee(e=>e.filter(e=>e.key!==r)),o),uploader:a}},a.upload([i],{schemaType:n,onChange:e=>{er(gD.from(e).prefixAll({_key:r}))}})}catch(e){console.error(e),X.current?.[r]?.unsubscribe(),er(gD.from([hW(["_upload"])]).prefixAll({_key:r})),ex(r)}}},P[68]=er,P[69]=ef,P[70]=ex,P[71]=eI,P[72]=es,P[73]=eo,P[74]=E):E=P[74];let eT=E,eE=B.field.value,e$=B.field.displayInlineChanges??!1;P[75]!==ej||P[76]!==er||P[77]!==eh||P[78]!==eu||P[79]!==ep||P[80]!==eb||P[81]!==ef||P[82]!==eC||P[83]!==ey||P[84]!==eg||P[85]!==em||P[86]!==ex||P[87]!==eT||P[88]!==B.field.__unstable_computeDiff||P[89]!==B.field.changed||P[90]!==B.field.compareValue||P[91]!==B.field.focusPath||P[92]!==B.field.focused||P[93]!==B.field.hasUpstreamVersion||P[94]!==B.field.id||P[95]!==B.field.level||P[96]!==B.field.members||P[97]!==B.field.path||P[98]!==B.field.presence||P[99]!==B.field.readOnly||P[100]!==B.field.schemaType||P[101]!==B.field.validation||P[102]!==Y||P[103]!==H||P[104]!==U||P[105]!==Z||P[106]!==q||P[107]!==W||P[108]!==J||P[109]!==ea||P[110]!==eS||P[111]!==eE||P[112]!==e$?($={level:B.field.level,members:B.field.members,value:eE,readOnly:B.field.readOnly,schemaType:B.field.schemaType,changed:B.field.changed,__unstable_computeDiff:B.field.__unstable_computeDiff,compareValue:B.field.compareValue,hasUpstreamVersion:B.field.hasUpstreamVersion,id:B.field.id,onItemExpand:ep,onItemCollapse:eu,onItemClose:eh,onItemOpen:em,displayInlineChanges:e$,focusPath:B.field.focusPath,focused:B.field.focused,path:B.field.path,onChange:er,onInsert:ef,onItemMove:eg,onItemRemove:ex,onItemAppend:eC,onItemPrepend:ey,onPathF
vendor: 1,378 bytes, line 205
205ocus:eb,resolveInitialValue:ea,onSelectFile:eT,resolveUploader:eS,validation:B.field.validation,presence:B.field.presence,renderAnnotation:Y,renderBlock:H,renderInlineBlock:Z,renderInput:q,renderField:U,renderItem:W,renderPreview:J,elementProps:ej},P[75]=ej,P[76]=er,P[77]=eh,P[78]=eu,P[79]=ep,P[80]=eb,P[81]=ef,P[82]=eC,P[83]=ey,P[84]=eg,P[85]=em,P[86]=ex,P[87]=eT,P[88]=B.field.__unstable_computeDiff,P[89]=B.field.changed,P[90]=B.field.compareValue,P[91]=B.field.focusPath,P[92]=B.field.focused,P[93]=B.field.hasUpstreamVersion,P[94]=B.field.id,P[95]=B.field.level,P[96]=B.field.members,P[97]=B.field.path,P[98]=B.field.presence,P[99]=B.field.readOnly,P[100]=B.field.schemaType,P[101]=B.field.validation,P[102]=Y,P[103]=H,P[104]=U,P[105]=Z,P[106]=q,P[107]=W,P[108]=J,P[109]=ea,P[110]=eS,P[111]=eE,P[112]=e$,P[113]=$):$=P[113];let eA=$;return P[114]!==eA||P[115]!==q?(A=(0,v.jsx)(CK,{...eA,render:q}),P[114]=eA,P[115]=q,P[116]=A):A=P[116],P[117]!==K||P[118]!==ed||P[119]!==ec||P[120]!==B.collapsed||P[121]!==B.collapsible||P[122]!==B.field.changed||P[123]!==B.field.id||P[124]!==B.field.level||P[125]!==B.field.path||P[126]!==B.field.presence||P[127]!==B.field.schemaType||P[128]!==B.field.validation||P[129]!==B.field.value||P[130]!==B.index||P[131]!==B.name||P[132]!==U||P[133]!==eA||P[134]!==A?(D=(0,v.jsx)(CG,{actions:K,name:B.name,index:B.index,level:B.field.level,value:
205B.field.value,title:B.field.schemaType.title,description:B.field.schemaType.description,collapsible:B.collapsible,collapsed:B.collapsed,changed:B.field.changed,onCollapse:ed,onExpand:ec,schemaType:B.field.schemaType,inputId:B.field.id,path:B.field.path,presence:B.field.presence,validation:B.field.validation,inputProps:eA,render:U,children:A}),P[117]=K,P[118]=ed,P[119]=ec,P[120]=B.collapsed,P[121]=B.collapsible,P[122]=B.field.changed,P[123]=B.field.id,P[124]=B.field.level,P[125]=B.field.path,P[126]=B.field.presence,P[127]=B.field.schemaType,P[128]=B.field.validation,P[129]=B.field.value,P[130]=B.index,P[131]=B.name,P[132]=U,P[133]=eA,P[134]=A,P[135]=D):D=P[135],P[136]!==Q||P[137]!==er||P[138]!==F||P[139]!==R||P[140]!==N||P[141]!==L||P[142]!==M||P[143]!==V||P[144]!==D?(z=(0,v.jsxs)(fi,{onFieldGroupSelect:F,onChange:er,onSetFieldSetCollapsed:M,onSetPathCollapsed:V,onPathOpen:L,onPathBlur:R,onPathFocus:N,children:[D,Q]}),P[136]=Q,P[137]=er,P[138]=F,P[139]=R,P[140]=N,P[141]=L,P[142]=M,P[143]=V,P[144]=D,P[145]=z):z=P[145],z}function Cq(e){console.error(e.error)}function CW(e){return y6(e)}function CJ(e){return"unset"===e.type&&1===e.path.length}function CK({render:e,...t}){return e(t)}function CG({render:e,...t}){return e(t)}function CX(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,I=(0,j.c)(119),{onPathBlur:T,onPathFocus:E,onChange:$,onPathOpen:A,onSetPathCollapsed:D,onSetFieldSetCollapsed:z,onFieldGroupSelect:P}=fr(),{member:R,renderAnnotation:N,renderBlock:O,renderField:V,renderInlineBlock:M,renderInput:L,renderItem:F,renderPreview:B}=e,Y=CT(),H=(0,_.useRef)(void 0),U=(0,_.useRef)(void 0),Z=el0(ob);I[0]===Symbol.for("react.memo_cache_sentinel")?(t=(e,t)=>{!e&&t&&H.current?.focus()},I[0]=t):t=I[0],fS(R.field.focused,t),I[1]!==R.field.path||I[2]!==E?(n=e=>{e.currentTarget===e.target&&e.currentTarget===H.current&&E(R.field.path)},I[1]=R.field.path,I[2]=E,I[3]=n):n=I[3];let q=n;I[4]!==R.field.path||I[5]!==T?(i=e=>{e.currentTarget===e.target&&e.currentTarget===H.current&&T(R.field.path)},I[4]=R.field.path,I[5]=T,I[6]=i):i=I[6];let W=i;I[7]!==R.field.value||I[8]!==R.name||I[9]!==$?(r=e=>{let t=gD.from(e).patches;if(t.some(C1)){let e=CS(R.field.value||[],t);if(Array.isArray(e)&&!e.length)return void $(gD.from(hW([R.name])))}$(gD.from(e).prepend(hU([])).prefixAll(R.name))},I[7]=R.field.value,I[8]=R.name,I[9]=$,I[10]=r):r=I[10];let J=r;I[11]!==R.field.path||I[12]!==D?(a=e=>{D(R.field.path,e)},I[11]=R.field.path,I[12]=D,I[13]=a):a=I[13];let K=a;I[14]!==R.field.path||I[15]!==D?(o=()=>{D(R.field.path,!0)},I[14]=R.field.path,I[15]=D,I[16]=o):o=I[16];let G=o;I[17]!==R.field.path||I[18]!==D?(l=()=>{D(R.field.path,!1)},I[17]=R.field.path,I[18]=D,I[19]=l):l=I[19];let X=l;I[20]!==J?(s=e=>{J(0===e.length?hW():hq(e))},I[20]=J,I[21]=s):s=I[21];let Q=s;I[22]!==R.field||I[23]!==Q?(d=e=>{var t,n,i;let r,a,{value:o}=R.field;e.fromIndex!==e.toIndex&&Q((t=void 0===o?[]:o,n=e.fromIndex,i=e.toIndex,a=(r=t.slice())[n],r.splice(n,1),r.splice(i,0,a),r))},I[22]=R.field,I[23]=Q,I[24]=d):d=I[24];let ee=d;I[25]!==R.field||I[26]!==Q?(c=e=>{let{value:t}=R.field;Q((void 0===t?[]:t).concat(e))},I[25]=R.field,I[26]=Q,I[27]=c):c=I[27];let et=c;I[28]!==R.field||I[29]!==Q?(u=e=>{let{value:t}=R.field;Q([e].concat((void 0===t?[]:t)||[]))},I[28]=R.field,I[29]=Q,I[30]=u):u=I[30];let en=u;I[31]!==R.field||I[32]!==Q?(p=e=>{var t,n,i;let r,{value:a}=R.field;Q((t=e.referenceIndex+("before"===e.position?-1:0),n=void 0===a?[]:a,i=e.items,(r=n.slice()).splice(t+1,0,...i),r))},I[31]=R.field,I[32]=Q,I[33]=p):p=I[33];let ei=p;I[34]!==J?(m=e=>{J(hW([e]))},I[34]=J,I[35]=m):m=I[35];let er=m;I[36]!==R.field.path||I[37]!==E?(h=e=>{E(R.field.path.concat([e]))},I[36]=R.field.path,I[37]=E,I[38]=h):h=I[38];let ea=h,eo=R.field.id;I[39]!==R.field.id||I[40]!==R.field.schemaType.description?(f=y9(R.field.id,R.field.schemaType.description),I[39]=R.field.id,I[40]=R.field.schemaType.description,I[41]=f):f=I[41],I[42]!==W||I[43]!==q||I[44]!==R.field.id||I[45]!==f?(g={onBlur:W,onFocus:q,id:eo,ref:H,"aria-describedby":f},I[42]=W,I[43]=q,I[44]=R.field.id,I[45]=f,I[46]=g):g=I[46];let el=g,es=R.field.schemaType.of;I[47]!==es?(y={priority:0,accepts:"text/*",type:"string",upload:(e,t)=>new eU.c(e=>{let n=new FileReader;return n.onerror=t=>e.error(t),n.onload=()=>
205{e.next(n.result),e.complete()},n.readAsText(t,"utf-8"),()=>{n.abort()}}).pipe((0,eV.T)(e=>e?.split(/[\n\r]/).map(e=>{let t,n,i;return t=!1,n=!1,i=!1,es.forEach(e=>{(0,eD.oV)(e)&&(t=!0),(0,eD.pZ)(e)&&(i=!0),(0,eD.F3)(e)&&(n=!0)}),t&&("true"===e||"false"===e)?"true"===e:n&&/^\d+$/.test(e)?Number(e):i?e:void 0}).filter(e=>void 0!==e)),(0,to.p)(e=>Array.isArray(e)),(0,eV.T)(e=>({type:"uploadProgress",patches:[hZ(e,"after",[-1])]})))},I[47]=es,I[48]=y):y=I[48];let ed=y;I[49]!==ed?(C=(e,t)=>C$(t,"text/*")?ed:null,I[49]=ed,I[50]=C):C=I[50];let ec=C;I[51]!==Z||I[52]!==J?(x=e=>{let{file:t,schemaType:n,uploader:i}=e,r=i.upload(Z,t,n).pipe((0,eV.T)(CQ),(0,e5.M)(e=>J(e.patches)));U.current&&U.current.unsubscribe(),U.current=r.subscribe()},I[51]=Z,I[52]=J,I[53]=x):x=I[53];let eu=x,ep=R.field.value,em=R.field.displayInlineChanges??!1;I[54]!==el||I[55]!==et||I[56]!==J||I[57]!==ea||I[58]!==ei||I[59]!==ee||I[60]!==en||I[61]!==er||I[62]!==K||I[63]!==eu||I[64]!==R.field.__unstable_computeDiff||I[65]!==R.field.changed||I[66]!==R.field.compareValue||I[67]!==R.field.focusPath||I[68]!==R.field.focused||I[69]!==R.field.hasUpstreamVersion||I[70]!==R.field.id||I[71]!==R.field.level||I[72]!==R.field.members||I[73]!==R.field.path||I[74]!==R.field.presence||I[75]!==R.field.readOnly||I[76]!==R.field.schemaType||I[77]!==R.field.validation||I[78]!==N||I[79]!==O||I[80]!==M||I[81]!==L||I[82]!==F||I[83]!==B||I[84]!==ec||I[85]!==ep||I[86]!==em?(b={level:R.field.level,members:R.field.members,value:ep,compareValue:R.field.compareValue,readOnly:R.field.readOnly,onSetCollapsed:K,schemaType:R.field.schemaType,changed:R.field.changed,__unstable_computeDiff:R.field.__unstable_computeDiff,hasUpstreamVersion:R.field.hasUpstreamVersion,id:R.field.id,elementProps:el,path:R.field.path,focusPath:R.field.focusPath,focused:R.field.focused,onChange:J,onInsert:ei,onMoveItem:ee,onItemRemove:er,onItemAppend:et,onItemPrepend:en,validation:R.field.validation,presence:R.field.presence,resolveUploader:ec,onUpload:eu,renderAnnotation:N,renderBlock:O,renderInlineBlock:M,renderInput:L,renderItem:F,onIndexFocus:ea,renderPreview:B,displayInlineChanges:em},I[54]=el,I[55]=et,I[56]=J,I[57]=ea,I[58]=ei,I[59]=ee,I[60]=en,I[61]=er,I[62]=K,I[63]=eu,I[64]=R.field.__unstable_computeDiff,I[65]=R.field.changed,I[66]=R.field.compareValue,I[67]=R.field.focusPath,I[68]=R.field.focused,I[69]=R.field.hasUpstreamVersion,I[70]=R.field.id,I[71]=R.field.level,I[72]=R.field.members,I[73]=R.field.path,I[74]=R.field.presence,I[75]=R.field.readOnly,I[76]=R.field.schemaType,I[77]=R.field.validation,I[78]=N,I[79]=O,I[80]=M,I[81]=L,I[82]=F,I[83]=B,I[84]=ec,I[85]=ep,I[86]=em,I[87]=b):b=I[87];let eh=b;return I[88]!==eh||I[89]!==L?(w=(0,v.jsx)(C2,{...eh,render:L}),I[88]=eh,I[89]=L,I[90]=w):w=I[90],I[91]!==Y||I[92]!==G||I[93]!==X||I[94]!==R.collapsed||I[95]!==R.collapsible||I[96]!==R.field.changed||I[97]!==R.field.id||I[98]!==R.field.level||I[99]!==R.field.path||I[100]!==R.field.presence||I[101]!==R.field.schemaType||I[102]!==R.field.validation||I[103]!==R.field.value||I[104]!==R.index||I[105]!==R.name||I[106]!==V||I[107]!==eh||I[108]!==w?(k=(0,v.jsx)(C5,{actions:Y,name:R.name,index:R.index,level:R.field.level,value:R.field.value,title:R.field.schemaType.title,description:R.field.schemaType.description,collapsible:R.collapsible,collapsed:R.collapsed,onExpand:X,changed:R.field.changed,onCollapse:G,schemaType:R.field.schemaType,inputId:R.field.id,path:R.field.path,presence:R.field.presence,validation:R.field.validation,inputProps:eh,render:V,children:w}),I[91]=Y,I[92]=G,I[93]=X,I[94]=R.collapsed,I[95]=R.collapsible,I[96]=R.field.changed,I[97]=R.field.id,I[98]=R.field.level,I[99]=R.field.path,I[100]=R.field.presence,I[101]=R.field.schemaType,I[102]=R.field.validation,I[103]=R.field.value,I[104]=R.index,I[105]=R.name,I[106]=V,I[107]=eh,I[108]=w,I[109]=k):k=I[109],I[110]!==J||I[111]!==P||I[112]!==T||I[113]!==E||I[114]!==A||I[115]!==z||I[116]!==D||I[117]!==k?(S=(0,v.jsx)(fi,{onFieldGroupSelect:P,onChange:J,onPathOpen:A,onSetFieldSetCollapsed:z,onSetPathCollapsed:D,onPathBlur:T,onPathFocus:E,children:k}),I[110]=J,I[111]=P,I[112]=T,I[113]=E,I[114]=A,I[115]=z,I[116]=D,I[11
2057]=k,I[118]=S):S=I[118],S}function CQ(e){return gD.from(e.patches||[])}function C1(e){return"unset"===e.type&&1===e.path.length}function C2({render:e,...t}){return e(t)}function C5({render:e,...t}){return e(t)}let C0=function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,I,T=(0,j.c)(128),{onPathBlur:E,onPathFocus:$,onChange:A,onPathOpen:D,onSetPathCollapsed:z,onSetFieldSetCollapsed:P,onFieldGroupSelect:R}=fr(),{member:N,renderAnnotation:O,renderBlock:V,renderField:M,renderInlineBlock:L,renderInput:F,renderItem:B,renderPreview:Y}=e,H=CT(),U=(0,_.useRef)(void 0),Z=(0,_.useRef)(N.field.value);T[0]!==N.field.value?(t=()=>{Z.current=N.field.value},n=[N.field.value],T[0]=N.field.value,T[1]=t,T[2]=n):(t=T[1],n=T[2]),(0,_.useEffect)(t,n),T[3]===Symbol.for("react.memo_cache_sentinel")?(i=(e,t)=>{!e&&t&&U.current?.focus()},T[3]=i):i=T[3],fS(N.field.focused,i),T[4]!==N.field.path||T[5]!==E?(r=()=>{E(N.field.path)},T[4]=N.field.path,T[5]=E,T[6]=r):r=T[6];let q=r;T[7]!==N.field.path||T[8]!==$?(a=()=>{$(N.field.path)},T[7]=N.field.path,T[8]=$,T[9]=a):a=T[9];let W=a;T[10]!==N.field.path||T[11]!==$?(o=e=>{$(N.field.path.concat(e))},T[10]=N.field.path,T[11]=$,T[12]=o):o=T[12];let J=o;T[13]!==N.field.path.length||T[14]!==N.field.schemaType||T[15]!==N.name||T[16]!==A?(l=e=>{if(0!==N.field.path.length){let t=gD.from(e).patches;if(Z.current=CS(Z.current||{},t),Z.current&&(0,nq.RN)(Z.current))return void A(gD.from(hW([N.name])))}A(gD.from(e).prepend(hU(y8(N.field.schemaType))).prefixAll(N.name))},T[13]=N.field.path.length,T[14]=N.field.schemaType,T[15]=N.name,T[16]=A,T[17]=l):l=T[17];let K=l;T[18]!==N.field.path||T[19]!==z?(s=()=>{z(N.field.path,!0)},T[18]=N.field.path,T[19]=z,T[20]=s):s=T[20];let G=s;T[21]!==N.field.path||T[22]!==z?(d=()=>{z(N.field.path,!1)},T[21]=N.field.path,T[22]=z,T[23]=d):d=T[23];let X=d;T[24]!==N.field.path||T[25]!==z?(c=e=>{z(N.field.path.concat(e),!0)},T[24]=N.field.path,T[25]=z,T[26]=c):c=T[26];let Q=c;T[27]!==N.field.path||T[28]!==z?(u=e=>{z(N.field.path.concat(e),!1)},T[27]=N.field.path,T[28]=z,T[29]=u):u=T[29];let ee=u;T[30]!==N.field.path||T[31]!==D?(p=e=>{D(N.field.path.concat(e))},T[30]=N.field.path,T[31]=D,T[32]=p):p=T[32];let et=p;T[33]!==N.field.path||T[34]!==D?(m=()=>{D(N.field.path)},T[33]=N.field.path,T[34]=D,T[35]=m):m=T[35];let en=m;T[36]!==N.field.path||T[37]!==P?(h=e=>{P(N.field.path.concat(e),!1)},T[36]=N.field.path,T[37]=P,T[38]=h):h=T[38];let ei=h;T[39]!==N.field.path||T[40]!==P?(f=e=>{P(N.field.path.concat(e),!0)},T[39]=N.field.path,T[40]=P,T[41]=f):f=T[41];let er=f;T[42]!==N.field.path||T[43]!==D?(g=()=>{D(N.field.path)},T[42]=N.field.path,T[43]=D,T[44]=g):g=T[44];let ea=g;T[45]!==N.field.path||T[46]!==D?(y=()=>{D(N.field.path.slice(0,-1))},T[45]=N.field.path,T[46]=D,T[47]=y):y=T[47];let eo=y;T[48]!==N.field.path||T[49]!==R?(C=e=>{R(N.field.path,e)},T[48]=N.field.path,T[49]=R,T[50]=C):C=T[50];let el=C,es=N.field.id;T[51]!==N.field.id||T[52]!==N.field.schemaType.description?(x=y9(N.field.id,N.field.schemaType.description),T[51]=N.field.id,T[52]=N.field.schemaType.description,T[53]=x):x=T[53],T[54]!==q||T[55]!==W||T[56]!==N.field.id||T[57]!==x?(b={onBlur:q,onFocus:W,id:es,ref:U,"aria-describedby":x},T[54]=q,T[55]=W,T[56]=N.field.id,T[57]=x,T[58]=b):b=T[58];let ed=b,ec=N.field.displayInlineChanges??!1;T[59]!==ed||T[60]!==K||T[61]!==en||T[62]!==Q||T[63]!==er||T[64]!==ee||T[65]!==ei||T[66]!==J||T[67]!==et||T[68]!==el||T[69]!==N.field.__unstable_computeDiff||T[70]!==N.field.changed||T[71]!==N.field.compareValue||T[72]!==N.field.focusPath||T[73]!==N.field.focused||T[74]!==N.field.groups||T[75]!==N.field.hasUpstreamVersion||T[76]!==N.field.id||T[77]!==N.field.level||T[78]!==N.field.members||T[79]!==N.field.path||T[80]!==N.field.presence||T[81]!==N.field.readOnly||T[82]!==N.field.schemaType||T[83]!==N.field.validation||T[84]!==N.field.value||T[85]!==O||T[86]!==V||T[87]!==M||T[88]!==L||T[89]!==F||T[90]!==B||T[91]!==Y||T[92]!==ec?(w={elementProps:ed,level:N.field.level,members:N.field.members,value:N.field.value,compareValue:N.field.compareValue,readOnly:N.field.readOnly,validation:N.field.validation,presence:N.field.presence,schemaType:N.field.schemaType,changed:N.field.changed,__unstable_computeDiff:N.field.__unstable_computeDiff,hasUpstreamVersion:N.field.hasUpstreamVersion,id:N.field.id,onFieldGroupSelect:el,onFieldOpen:et,onFieldClose:en,onFieldCollapse:Q,onFieldExpand:ee,onFieldSetExpand:ei,onFieldSetCollapse:er,onPathFocus:J,path:N.field.path,focusPath:N.field.focusPath,focused:N.field.focused,groups:N.field.groups,onChange:K,renderAnnotation:O,renderBlock:V,renderField:M,renderInlineBlock:L,renderInput:F,renderItem:B,renderPreview:Y,displayInlineChanges:ec},T[59]=ed,T[60]=K,T[61]=en,T[62]=Q,T[63]=er,T[64]=ee,T[65]=ei,T[66]=J,T[67]=et,T[68]=el,T[69]=N.field.__unstable_computeDiff,T[70]=N.field.changed,T[71]=N.field.compareValue,T[72]=N.field.focusPath,T[73]=N.field.focused,T[74]=N.field.groups,T[75]=N.field.hasUpstreamVersion,T[76]=N.field.id,T[77]=N.field.level,T[78]=N.field.members,T[79]=N.field.path,T[80]=N.field.presence,T[81]=N.field.readOnly,T[82]=N.field.schemaType,T[83]=N.field.validation,T[84]=N.field.value,T[85]=O,T[86]=V,T[87]=M,T[88]=L,T[89]=F,T[90]=B,T[91]=Y,T[92]=ec,T[93]=w):w=T[93];let eu=w;return T[94]!==eu||T[95]!==F?(k=(0,v.jsx)(C7,{...eu,render:F}),T[94]=eu,T[95]=F,T[96]=k):k=T[96],T[97]!==H||T[98]!==eo||T[99]!==G||T[100]!==X||T[101]!==ea||T[102]!==N.collapsed||T[103]!==N.collapsible||T[104]!==N.field.changed||T[105]!==N.field.id||T[106]!==N.field.level||T[107]!==N.field.path||T[108]!==N.field.presence||T[109]!==N.field.schemaType||T[110]!==N.field.validation||T[111]!==N.field.value||T[112]!==N.index||T[113]!==N.name||T[114]!==N.open||T[115]!==M||T[116]!==eu||T[117]!==k?(S=(0,v.jsx)(C3,{actions:H,name:N.name,index:N.index,level:N.field.level,value:N.field.value,validation:N.field.validation,presence:N.field.presence,title:N.field.schemaType.title,de
205scription:N.field.schemaType.description,collapsible:N.collapsible,collapsed:N.collapsed,onCollapse:G,onExpand:X,open:N.open,changed:N.field.changed,onOpen:ea,onClose:eo,schemaType:N.field.schemaType,inputId:N.field.id,path:N.field.path,inputProps:eu,render:M,children:k}),T[97]=H,T[98]=eo,T[99]=G,T[100]=X,T[101]=ea,T[102]=N.collapsed,T[103]=N.collapsible,T[104]=N.field.changed,T[105]=N.field.id,T[106]=N.field.level,T[107]=N.field.path,T[108]=N.field.presence,T[109]=N.field.schemaType,T[110]=N.field.validation,T[111]=N.field.value,T[112]=N.index,T[113]=N.name,T[114]=N.open,T[115]=M,T[116]=eu,T[117]=k,T[118]=S):S=T[118],T[119]!==K||T[120]!==R||T[121]!==E||T[122]!==$||T[123]!==D||T[124]!==P||T[125]!==z||T[126]!==S?(I=(0,v.jsx)(fi,{onFieldGroupSelect:R,onChange:K,onSetFieldSetCollapsed:P,onPathOpen:D,onSetPathCollapsed:z,onPathBlur:E,onPathFocus:$,children:S}),T[119]=K,T[120]=R,T[121]=E,T[122]=$,T[123]=D,T[124]=P,T[125]=z,T[126]=S,T[127]=I):I=T[127],I};function C7({render:e,...t}){return e(t)}function C3({render:e,...t}){return e(t)}function C8(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(72),{member:f,renderInput:g,renderField:y}=e,C=CT(),x=(0,_.useRef)(void 0),[b,w]=(0,_.useState)(),{onPathBlur:k,onPathFocus:S,onChange:I}=fr();h[0]!==f.field.focused?(t=()=>{f.field.focused&&x.current?.focus()},n=[f.field.focused],h[0]=f.field.focused,h[1]=t,h[2]=n):(t=h[1],n=h[2]),(0,_.useEffect)(t,n),h[3]!==f.field.path||h[4]!==k?(i=()=>{k(f.field.path)},h[3]=f.field.path,h[4]=k,h[5]=i):i=h[5];let T=i;h[6]!==f.field.path||h[7]!==S?(r=()=>{S(f.field.path)},h[6]=f.field.path,h[7]=S,h[8]=r):r=h[8];let E=r;h[9]!==f.name||h[10]!==I?(a=e=>{I(gD.from(e).prefixAll(f.name))},h[9]=f.name,h[10]=I,h[11]=a):a=h[11];let $=a;h[12]!==f.field.schemaType||h[13]!==f.name||h[14]!==I?(o=e=>{let t=e.currentTarget.value;if((0,eD.F3)(f.field.schemaType)){if((t=e.currentTarget.valueAsNumber)>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)return}else(0,eD.oV)(f.field.schemaType)&&(t=e.currentTarget.checked);let n=""===t||"number"==typeof t&&isNaN(t);(0,eD.F3)(f.field.schemaType)&&w(n?void 0:e.currentTarget.value),I(gD.from(n?hW():hq(t)).prefixAll(f.name))},h[12]=f.field.schemaType,h[13]=f.name,h[14]=I,h[15]=o):o=h[15];let A=o,D=f.field.id;h[16]!==b||h[17]!==f.field.schemaType||h[18]!==f.field.value?(l=Cc(f.field.schemaType,f.field.value,b),h[16]=b,h[17]=f.field.schemaType,h[18]=f.field.value,h[19]=l):l=h[19];let z=!!f.field.readOnly,P=f.field.schemaType.placeholder;h[20]!==f.field.id||h[21]!==f.field.schemaType.description?(s=y9(f.field.id,f.field.schemaType.description),h[20]=f.field.id,h[21]=f.field.schemaType.description,h[22]=s):s=h[22],h[23]!==T||h[24]!==E||h[25]!==A||h[26]!==f.field.id||h[27]!==f.field.schemaType.placeholder||h[28]!==s||h[29]!==l||h[30]!==z?(d={onBlur:T,onFocus:E,id:D,ref:x,onChange:A,value:l,readOnly:z,placeholder:P,"aria-describedby":s},h[23]=T,h[24]=E,h[25]=A,h[26]=f.field.id,h[27]=f.field.schemaType.placeholder,h[28]=s,h[29]=l,h[30]=z,h[31]=d):d=h[31];let R=d;h[32]!==f.field.validation?(c=f.field.validation.filter(C6).map(C4).join(` 206`)||void 0,h[32]=f.field.validation,h[33]=c):c=h[33];let N=c,O=f.field.value,V=f.field.schemaType,M=f.field.displayInlineChanges??!1;h[34]!==R||h[35]!==$||h[36]!==f.field.__unstable_computeDiff||h[37]!==f.field.changed||h[38]!==f.field.compareValue||h[39]!==f.field.focused||h[40]!==f.field.hasUpstreamVersion||h[41]!==f.field.id||h[42]!==f.field.level||h[43]!==f.field.path||h[44]!==f.field.presence||h[45]!==f.field.readOnly||h[46]!==f.field.validation||h[47]!==O||h[48]!==V||h[49]!==M||h[50]!==N?(u={value:O,compareValue:f.field.compareValue,__unstable_computeDiff:f.field.__unstable_computeDiff,readOnly:f.field.readOnly,schemaType:V,changed:f.field.changed,hasUpstreamVersion:f.field.hasUpstreamVersion,id:f.field.id,path:f.field.path,focused:f.field.focused,level:f.field.level,onChange:$,validation:f.field.validation,presence:f.field.presence,validationError:N,elementProps:R,displayInlineChanges:M},h[34]=R,h[35]=$,h[36]=f.field.__unstable_computeDiff,h[37]=f.field.changed,h[38]=f.field.compareValue,h[39]=f.field.focused,h[40]=f.field.hasUpstreamVersion,h[41]=f.field.id,h[42]=f.field.level,h[43]=f.field.path,h[44]=f.field.presence,h[45]=f.field.readOnly,h[46]=f.field.validation,h[47]=O,h[48]=V,h[49]=M,h[50]=N,h[51]=u):u=h[51];let L=u,F=f.field.schemaType,B=f.field.value;return h[52]!==L||h[53]!==g?(p=(0,v.jsx)(C9,{...L,render:g}),h[52]=L,h[53]=g,h[54]=p):p=h[54],h[55]!==C||h[56]!==f.field.changed||h[57]!==f.field.id||h[58]!==f.field.level||h[59]!==f.field.path||h[60]!==f.field.presence||h[61]!==f.field.schemaType.description||h[62]!==f.field.schemaType.title||h[63]!==f.field.validation||h[64]!==f.index||h[65]!==f.name||h[66]!==y||h[67]!==L||h[68]!==F||h[69]!==B||h[70]!==
206p?(m=(0,v.jsx)(xe,{actions:C,changed:f.field.changed,description:f.field.schemaType.description,index:f.index,inputId:f.field.id,inputProps:L,level:f.field.level,name:f.name,path:f.field.path,presence:f.field.presence,schemaType:F,title:f.field.schemaType.title,validation:f.field.validation,value:B,render:y,children:p}),h[55]=C,h[56]=f.field.changed,h[57]=f.field.id,h[58]=f.field.level,h[59]=f.field.path,h[60]=f.field.presence,h[61]=f.field.schemaType.description,h[62]=f.field.schemaType.title,h[63]=f.field.validation,h[64]=f.index,h[65]=f.name,h[66]=y,h[67]=L,h[68]=F,h[69]=B,h[70]=p,h[71]=m):m=h[71],m}function C4(e){return e.message}function C6(e){return"error"===e.level}function C9({render:e,...t}){return e(t)}function xe({render:e,...t}){return e(t)}let xt=(0,_.memo)(function(e){let t=(0,j.c)(31),{member:n,renderAnnotation:i,renderBlock:r,renderField:a,renderInlineBlock:o,renderInput:l,renderItem:s,renderPreview:d}=e;if(hB(n)){let e;return t[0]!==n||t[1]!==i||t[2]!==r||t[3]!==a||t[4]!==o||t[5]!==l||t[6]!==s||t[7]!==d?(e=(0,v.jsx)(C0,{member:n,renderAnnotation:i,renderBlock:r,renderField:a,renderInlineBlock:o,renderInput:l,renderItem:s,renderPreview:d}),t[0]=n,t[1]=i,t[2]=r,t[3]=a,t[4]=o,t[5]=l,t[6]=s,t[7]=d,t[8]=e):e=t[8],e}if((0,eD.zR)(n.field.schemaType)&&n.field.schemaType.of.every(e=>(0,eD.zZ)(e))){let e;return t[9]!==n||t[10]!==i||t[11]!==r||t[12]!==a||t[13]!==o||t[14]!==l||t[15]!==d||t[16]!==s?(e=(0,v.jsx)(CX,{member:n,renderAnnotation:i,renderBlock:r,renderField:a,renderInput:l,renderInlineBlock:o,renderItem:s,renderPreview:d}),t[9]=n,t[10]=i,t[11]=r,t[12]=a,t[13]=o,t[14]=l,t[15]=d,t[16]=s,t[17]=e):e=t[17],e}if(hY(n)){let e;return t[18]!==n||t[19]!==i||t[20]!==r||t[21]!==a||t[22]!==o||t[23]!==l||t[24]!==s||t[25]!==d?(e=(0,v.jsx)(CZ,{member:n,renderAnnotation:i,renderBlock:r,renderField:a,renderInlineBlock:o,renderInput:l,renderItem:s,renderPreview:d}),t[18]=n,t[19]=i,t[20]=r,t[21]=a,t[22]=o,t[23]=l,t[24]=s,t[25]=d,t[26]=e):e=t[26],e}if((0,eD.zZ)(n.field.schemaType)){let e;return t[27]!==n||t[28]!==a||t[29]!==l?(e=(0,v.jsx)(C8,{member:n,renderField:a,renderInput:l}),t[27]=n,t[28]=a,t[29]=l,t[30]=e):e=t[30],e}return null}),xn=["yes","true","1"],xi=["false","no","false","0","null"],xr=xn.concat(xi),xa=()=>!0,xo={string:{number:{test:Number,convert:Number},boolean:{test:e=>xr.includes(e.toLowerCase()),convert:e=>xn.includes(e.toLowerCase())||!xi.includes(e.toLowerCase())},richDate:{test:e=>(0,t0.f)(e),convert:e=>{var t;let n,i,r;return{_type:"richDate",local:(n=new Date((t=new Date(e)).getTime()+60*t.getTimezoneOffset()*1e3),i=t.getTimezoneOffset()/60,r=t.getHours(),n.setHours(r-i),n).toJSON(),utc:new Date(e).toJSON(),timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}return null}(),offset:new Date().getTimezoneOffset()}}}},date:{richDate:{test:e=>"date"===(e&&e._type),convert:e=>Object.assign({},e,{_type:"richDate"})}},richDate:{datetime:{test:e=>e&&e.utc,convert:e=>e.utc}},number:{string:{test:xa,convert:String},boolean:{test:xa,convert:Number}},boolean:{string:{test:xa,convert:e=>e?"Yes":"No"},number:{test:xa,convert:Number}}};function xl(e){let t,n,i,r,a=(0,j.c)(13),{value:o,targetType:l,onChange:s}=e;a[0]!==l||a[1]!==o?(t={...o,_type:l},a[0]=l,a[1]=o,a[2]=t):t=a[2];let d=t;a[3]!==d||a[4]!==s||a[5]!==l?(n=()=>s(gD.from(hU(l,["_type"])),d),a[3]=d,a[4]=s,a[5]=l,a[6]=n):n=a[6];let c=n,{t:u}=as();return a[7]!==u||a[8]!==l?(i=u("inputs.untyped-value.convert-button.text",{targetType:l}),a[7]=u,a[8]=l,a[9]=i):i=a[9],a[10]!==c||a[11]!==i?(r=(0,v.jsx)(tL.$n,{onClick:c,text:i}),a[10]=c,a[11]=i,a[12]=r):r=a[12],r}function xs(e){let t,n,i,r,a=(0,j.c)(11),{value:o,onChange:l,validTypes:s}=e;a[0]!==s[0]||a[1]!==o?(t={...o,_type:s[0]},a[0]=s[0],a[1]=o,a[2]=t):t=a[2];let d=t;a[3]!==d||a[4]!==l?(n=()=>l(gD.from(hW()),d),a[3]=d,a[4]=l,a[5]=n):n=a[5];let c=n,{t:u}=as();return a[6]!==u?(i=u("inputs.untyped-value.unset-item-button.text"),a[6]=u,a[7]=i):i=a[7],a[8]!==c||a[9]!==i?(r=(0,v.jsx)(tL.$n,{onClick:c,tone:"critical",text:i}),a[8]=c,a[9]=i,a[10]=r):r=a[10],r}function xd(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(56),{validTypes:w,value:_,onCh
206ange:k}=e,S=R8(),T=1===w.length;b[0]!==S||b[1]!==w[0]?(t=S.has(w[0]),b[0]=S,b[1]=w[0],b[2]=t):t=b[2];let E=t,{t:$}=as();return b[3]!==$?(n=(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(aE,{t:$,i18nKey:"inputs.untyped-value.title"})}),b[3]=$,b[4]=n):n=b[4],b[5]!==$?(i=$("inputs.untyped-value.details.title"),b[5]=$,b[6]=i):i=b[6],b[7]!==$?(r=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:$,i18nKey:"inputs.untyped-value.description"})}),b[7]=$,b[8]=r):r=b[8],b[9]!==E||b[10]!==T||b[11]!==$?(a=T&&!E&&(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:$,i18nKey:"inputs.untyped-value.details.description"})}),b[9]=E,b[10]=T,b[11]=$,b[12]=a):a=b[12],b[13]!==T||b[14]!==$?(o=!T&&(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:$("inputs.untyped-value.details.multi-type-description")}),b[13]=T,b[14]=$,b[15]=o):o=b[15],b[16]!==T||b[17]!==w?(l=!T&&(0,v.jsx)(I.BJ,{as:"ul",space:2,children:w.map(xc)}),b[16]=T,b[17]=w,b[18]=l):l=b[18],b[19]!==$?(s=$("inputs.untyped-value.details.json-dump-prefix"),b[19]=$,b[20]=s):s=b[20],b[21]!==s?(d=(0,v.jsx)(I.EY,{as:"h4",weight:"medium",size:1,children:s}),b[21]=s,b[22]=d):d=b[22],b[23]!==_?(c=JSON.stringify(_,null,2),b[23]=_,b[24]=c):c=b[24],b[25]!==c?(u=(0,v.jsx)(I.Zp,{border:!0,overflow:"auto",padding:2,radius:2,tone:"inherit",children:(0,v.jsx)(I.Cy,{language:"json",children:c})}),b[25]=c,b[26]=u):u=b[26],b[27]!==u||b[28]!==d?(p=(0,v.jsxs)(I.BJ,{space:2,children:[d,u]}),b[27]=u,b[28]=d,b[29]=p):p=b[29],b[30]===Symbol.for("react.memo_cache_sentinel")?(m=[1,2,2],b[30]=m):m=b[30],b[31]!==T||b[32]!==k||b[33]!==w[0]||b[34]!==_?(h=T&&(0,v.jsx)(xl,{onChange:k,targetType:w[0],value:_}),b[31]=T,b[32]=k,b[33]=w[0],b[34]=_,b[35]=h):h=b[35],b[36]!==k||b[37]!==w||b[38]!==_?(f=(0,v.jsx)(xs,{onChange:k,validTypes:w,value:_}),b[36]=k,b[37]=w,b[38]=_,b[39]=f):f=b[39],b[40]!==h||b[41]!==f?(g=(0,v.jsxs)(I.xA,{columns:m,gap:1,children:[h,f]}),b[40]=h,b[41]=f,b[42]=g):g=b[42],b[43]!==p||b[44]!==g||b[45]!==r||b[46]!==a||b[47]!==o||b[48]!==l?(y=(0,v.jsxs)(I.BJ,{space:3,children:[r,a,o,l,p,g]}),b[43]=p,b[44]=g,b[45]=r,b[46]=a,b[47]=o,b[48]=l,b[49]=y):y=b[49],b[50]!==y||b[51]!==i?(C=(0,v.jsx)(yl,{open:dT,title:i,children:y}),b[50]=y,b[51]=i,b[52]=C):C=b[52],b[53]!==C||b[54]!==n?(x=(0,v.jsx)(g$,{status:"warning",title:n,children:C}),b[53]=C,b[54]=n,b[55]=x):x=b[55],x}function xc(e){return(0,v.jsx)(I.EY,{as:"li",muted:!0,size:1,children:(0,v.jsx)("code",{children:e})},e)}let xu=(0,_.forwardRef)((e,t)=>{let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T=(0,j.c)(68),{value:E,actualType:$,validTypes:A,onChange:D}=e;(0,_.useImperativeHandle)(t,xh),T[0]!==D?(n=()=>{D(gD.from(hW()))},T[0]=D,T[1]=n):n=T[1];let z=n;T[2]!==D?(i=e=>{D(gD.from(hq(e)))},T[2]=D,T[3]=i):i=T[3];let P=i;T[4]!==$||T[5]!==A||T[6]!==E?(r=$ in xo?Object.keys(xo[$]).filter(e=>A.includes(e)).map(e=>({from:$,to:e,...xo[$][e]})).filter(e=>e.test(E)):[],T[4]=$,T[5]=A,T[6]=E,T[7]=r):r=T[7];let R=r,{t:N}=as();if((0,O.A)(E)&&!("_type"in E)){let e;return T[8]!==D||T[9]!==E||T[10]!==A?(e=(0,v.jsx)(xd,{value:E,validTypes:A,onChange:D}),T[8]=D,T[9]=E,T[10]=A,T[11]=e):e=T[11],e}T[12]!==N?(a=N("inputs.invalid-value.reset-button.text"),T[12]=N,T[13]=a):a=T[13],T[14]!==z||T[15]!==a?(o=(0,v.jsx)(I.BJ,{padding:2,children:(0,v.jsx)(tL.$n,{onClick:z,tone:"critical",text:a})}),T[14]=z,T[15]=a,T[16]=o):o=T[16];let V=o;return T[17]!==N?(l=N("inputs.invalid-value.title"),T[17]=N,T[18]=l):l=T[18],T[19]!==N?(s=N("inputs.invalid-value.description"),T[19]=N,T[20]=s):s=T[20],T[21]!==s?(d=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:s}),T[21]=s,T[22]=d):d=T[22],T[23]!==N?(c=N("inputs.invalid-value.details.title"),T[23]=N,T[24]=c):c=T[24],T[25]!==N||T[26]!==A[0]||T[27]!==A.length?(u=1===A.length&&(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:N,i18nKey:"inputs.invalid-value.details.description",values:{validType:A[0]}})}),T[25]=N,T[26]=A[0],T[27]=A.length,T[28]=u):u=T[28],T[29]!==N||T[30]!==A.length?(p=1===A.length&&(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:N("inputs.invalid-value.details.possible-reason")}),T[29]=N,T[30]=A.length,T[31]=p):p=T[31],T[32]!==N||T[33]!==A.length?(m=1!==A.length&&(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:N("inputs.invalid-value.details.multi-type-description")}),T[32]=N,T[33]=A.length,T[34]=m):m=T[34],T[35]!==A?(h=1!==A.length&&(0,v.jsx)(I.BJ,{as:"ul",space:2,children:A.map(xf)}),T[35]=A,T[36]=h):h=T[36],T[37]!==$?(f={actualType:$},T[37]=$,T[38]=f):f=T[38],T[39]!==N||T[40]!==f?(g=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:(0,v.jsx)(aE,{t:N,i18nKey:"inputs.invalid-value.current-type",values:f})}),T[39]=N,T[40]=f,T[41]=g):g=T[41],T[42]!==E?(y=JSON.stringify(E,null,2),T[42]=E,T[43]=y):y=T[43],T[44]!==y?(C=(0,v.jsx)(I.Zp,{border:!0,padding:2,radius:2,tone:"inherit",children:(0,v.jsx)(I.Cy,{language:"json",size:1,children:y})}),T[44]=y,T[45]=C):C=T[45],T[46]!==g||T[47]!==C?(x=(0,v.jsxs)(I.BJ,{marginTop:2,space
206:2,children:[g,C]}),T[46]=g,T[47]=C,T[48]=x):x=T[48],T[49]!==R||T[50]!==P||T[51]!==E?(b=R.length>0&&(0,v.jsx)(I.BJ,{space:1,children:R.map(e=>(0,v.jsx)(xp,{converter:e,onConvert:P,value:E},`${e.from}-${e.to}`))}),T[49]=R,T[50]=P,T[51]=E,T[52]=b):b=T[52],T[53]!==p||T[54]!==m||T[55]!==h||T[56]!==x||T[57]!==b||T[58]!==u?(w=(0,v.jsxs)(I.BJ,{space:3,children:[u,p,m,h,x,b]}),T[53]=p,T[54]=m,T[55]=h,T[56]=x,T[57]=b,T[58]=u,T[59]=w):w=T[59],T[60]!==w||T[61]!==c?(k=(0,v.jsx)(yl,{marginTop:4,open:dT,title:c,children:w}),T[60]=w,T[61]=c,T[62]=k):k=T[62],T[63]!==V||T[64]!==k||T[65]!==l||T[66]!==d?(S=(0,v.jsxs)(g$,{status:"error",suffix:V,title:l,children:[d,k]}),T[63]=V,T[64]=k,T[65]=l,T[66]=d,T[67]=S):S=T[67],S});function xp(e){let t,n,i,r=(0,j.c)(10),{converter:a,onConvert:o,value:l}=e;r[0]!==a||r[1]!==o||r[2]!==l?(t=()=>o(a.convert(l)),r[0]=a,r[1]=o,r[2]=l,r[3]=t):t=r[3];let s=t,{t:d}=as();return r[4]!==a.to||r[5]!==d?(n=d("inputs.invalid-value.convert-button.text",{targetType:a.to}),r[4]=a.to,r[5]=d,r[6]=n):n=r[6],r[7]!==s||r[8]!==n?(i=(0,v.jsx)(tL.$n,{onClick:s,text:n}),r[7]=s,r[8]=n,r[9]=i):i=r[9],i}function xm(){}function xh(){return{focus:xm}}function xf(e){return(0,v.jsx)(I.EY,{as:"li",children:(0,v.jsx)("code",{children:e})},e)}xu.displayName="ForwardRef(InvalidValueInput)";let xg=[0,.25,.75,1],xy=(0,eI.I4)(I.so).withConfig({displayName:"Root",componentId:"sc-1wgeujr-0"})(({theme:e,$floatingCardWidth:t,$slotWidth:n,$floatingCardVisible:i})=>{let{space:r}=e.sanity;return(0,eI.AH)` 207 /* Prevent buttons from taking up extra vertical space */ 208 line-height: 1; 209 width: 100%; 210 /* For floating actions menu */ 211 position: relative; 212 213 [data-ui='PresenceBox'] { 214 position: absolute; 215 bottom: 0; 216 right: ${n+t+r[1]}px; 217 } 218 @media (hover: hover) { 219 // If hover is supported, we hide the floating card by default, so only add space for it when it's visible. 220 [data-ui='PresenceBox'] { 221 position: absolute; 222 bottom: 0; 223 right: ${n+(i?t:0)+r[1]}px; 224 } 225 } 226 `}),xC=(0,eI.I4)(I.az).withConfig({displayName:"ContentBox",componentId:"sc-1wgeujr-1"})(({theme:e,$presenceMaxWidth:t})=>{let{space:n}=e.sanity;return(0,eI.AH)` 227 max-width: calc(100% - ${t+n[1]}px); 228 min-width: 75%; 229 `}),xx=(0,eI.I4)(I.az).withConfig({displayName:"SlotBox",componentId:"sc-1wgeujr-2"})(({theme:e,$right:t,$fieldActionsVisible:n})=>{let{space:i}=e.sanity,r=n?t+i[1]:t;return(0,eI.AH)` 230 position: absolute; 231 bottom: 0; 232 right: ${r}px; 233 `}),xb=(0,eI.I4)(I.Zp).withConfig({displayName:"FieldActionsFloatingCard",componentId:"sc-1wgeujr-3"})`align-items:center;bottom:0;position:absolute;right:0;transition:opacity 150ms ease;line-height:1;@media (hover:hover){opacity:0;pointer-events:none;[data-ui='FieldActionsFlex']{opacity:0;}&[data-actions-visible='false']:not(:focus-within){box-shadow:none;background:transparent;}&[data-has-comments='true']:not([data-has-actions='true']){box-shadow:none;}&:focus-within{opacity:1;pointer-events:auto;width:max-content;[data-ui='FieldActionsFlex']{opacity:1;pointer-events:auto;width:max-content;}}}&[data-visible='true']{opacity:1;pointer-events:auto;width:max-content;}&[data-actions-visible='true']{[data-ui='FieldActionsFlex']{opacity:1;pointer-events:auto;width:max-content;}}`,xv=(0,eI.I4)(I.so).withConfig({displayName:"FieldActionsFlex",componentId:"sc-1wgeujr-4"})`gap:inherit;transition:opacity 150ms ease;`;function xj(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(44),{__internal_comments:g,__internal_slot:y,actions:C,content:x,fieldFocused:b,fieldHovered:w,presence:k,inputId:S}=e,[T,E]=(0,_.useState)(!1),[$,A]=(0,_.useState)(!1),[D,z]=(0,_.useState)(null),[P,R]=(0,_.useState)(0),[N,O]=(0,_.useState)(null),[V,M]=(0,_.useState)(0);f[0]!==g?(t=g||{},f[0]=g,f[1]=t):t=f[1];let{hasComments:L,button:F,isAddingComment:B}=t,Y=void 0!==L&&L,H=void 0===F?null:F,U=C&&C.length>0,Z=b||w||$||void 0!==B&&B,q=g?.button||U,W=T||Z||Y;f[2]!==D?(n=()=>{if(D){let{width:e}=D.getBoundingClientRect();R(e||0)}},f[2]=D,f[3]=n):n=f[3];let J=n;f[4]!==J?(i=()=>{J(),E(!0)},f[4]=J,f[5]=i):i=f[5];let K=i;f[6]!==J?(r=()=>{J(),E(!1)},f[6]=J,f[7]=r):r=f[7];let G=r;f[8]!==J?(a=()=>{J()},f[8]=J,f[9]=a):a=f[9],f[10]!==J||f[11]!==Z?(o=[J,Z],f[10]=J,f[11]=Z,f[12]=o):o=f[12],(0,_.useEffect)(a,o),f[13]!==N?(s=()=>
233{if(N){let{width:e}=N.getBoundingClientRect();M(e||0)}},l=[N],f[13]=N,f[14]=l,f[15]=s):(l=f[14],s=f[15]),(0,_.useEffect)(s,l);e:{let e;if(!y){d=null;break e}let t=!!Z;f[16]!==P||f[17]!==y||f[18]!==t?(e=(0,v.jsx)(xx,{$fieldActionsVisible:t,$right:P,ref:O,children:y}),f[16]=P,f[17]=y,f[18]=t,f[19]=e):e=f[19],d=e}let X=d;return f[20]===Symbol.for("react.memo_cache_sentinel")?(c=88,f[20]=c):c=f[20],f[21]!==x?(u=(0,v.jsx)(xC,{"data-ui":"fieldHeaderContentBox",flex:1,paddingY:2,$presenceMaxWidth:c,children:x}),f[21]=x,f[22]=u):u=f[22],f[23]!==k?(p=k&&k.length>0&&(0,v.jsx)(I.az,{"data-ui":"PresenceBox",flex:"none",children:(0,v.jsx)(wy,{maxAvatars:4,presence:k})}),f[23]=k,f[24]=p):p=f[24],f[25]!==C||f[26]!==H||f[27]!==G||f[28]!==K||f[29]!==U||f[30]!==Y||f[31]!==q||f[32]!==S||f[33]!==W||f[34]!==Z?(m=(q||Y)&&(0,v.jsx)(tL.vE,{children:(0,v.jsxs)(xb,{"data-actions-visible":Z?"true":"false","data-has-actions":U?"true":"false","data-has-comments":Y?"true":"false","data-visible":W?"true":"false",display:"flex",onBlurCapture:G,onFocusCapture:K,ref:z,sizing:"border",children:[U&&(0,v.jsx)(xv,{align:"center","data-ui":"FieldActionsFlex","data-testid":S?`field-actions-menu-${S}`:"field-actions-menu",children:(0,v.jsx)(ff,{nodes:C,onMenuOpenChange:A})}),H]})}),f[25]=C,f[26]=H,f[27]=G,f[28]=K,f[29]=U,f[30]=Y,f[31]=q,f[32]=S,f[33]=W,f[34]=Z,f[35]=m):m=f[35],f[36]!==P||f[37]!==W||f[38]!==X||f[39]!==V||f[40]!==u||f[41]!==p||f[42]!==m?(h=(0,v.jsxs)(xy,{align:"flex-end",justify:"space-between",$floatingCardVisible:W,$floatingCardWidth:P,$slotWidth:V,children:[u,p,X,m]}),f[36]=P,f[37]=W,f[38]=X,f[39]=V,f[40]=u,f[41]=p,f[42]=m,f[43]=h):h=f[43],h}let xw=(0,eI.I4)(eT.YZv).withConfig({displayName:"StyledErrorOutlineIcon",componentId:"sc-1a7rwoy-0"})`--card-icon-color:var(--card-badge-critical-icon-color);`,x_=(0,eI.I4)(eT.sAQ).withConfig({displayName:"StyledWarningOutlineIcon",componentId:"sc-1a7rwoy-1"})`--card-icon-color:var(--card-badge-caution-icon-color);`,xk=(0,eI.I4)(eT.YzR).withConfig({displayName:"StyledInfoOutlineIcon",componentId:"sc-1a7rwoy-2"})`--card-icon-color:var(--card-badge-primary-icon-color);`,xS={error:function(){let e,t,n=(0,j.c)(4),{t:i}=as();return n[0]!==i?(e=i("form.validation.has-error-aria-label"),n[0]=i,n[1]=e):e=n[1],n[2]!==e?(t=(0,v.jsx)(xw,{"data-testid":"input-validation-icon-error","aria-label":e,"aria-hidden":!0,role:"presentation"}),n[2]=e,n[3]=t):t=n[3],t},warning:function(){let e,t,n=(0,j.c)(4),{t:i}=as();return n[0]!==i?(e=i("form.validation.has-warning-aria-label"),n[0]=i,n[1]=e):e=n[1],n[2]!==e?(t=(0,v.jsx)(x_,{"data-testid":"input-validation-icon-warning","aria-label":e,"aria-hidden":!0,role:"presentation"}),n[2]=e,n[3]=t):t=n[3],t},info:function(){let e,t,n=(0,j.c)(4),{t:i}=as();return n[0]!==i?(e=i("form.validation.has-info-aria-label"),n[0]=i,n[1]=e):e=n[1],n[2]!==e?(t=(0,v.jsx)(xk,{"data-testid":"input-validation-icon-info","aria-label":e,"aria-hidden":!0,role:"presentation"}),n[2]=e,n[3]=t):t=n[3],t}},xI=e=>{let t,n=(0,j.c)(2),{status:i}=e,r=xS[i];return r?(n[0]!==r?(t=(0,v.jsx)(r,{}),n[0]=r,n[1]=t):t=n[1],t):null},xT=eI.I4.div.withConfig({displayName:"StatusIconWrapper",componentId:"sc-1hlgdyt-0"})`left:8px;position:relative;width:25px;`,xE=[],x$=(0,eI.I4)(I.BJ).withConfig({displayName:"StyledStack",componentId:"sc-1hlgdyt-1"})`max-width:200px;`;function xA(e){let t,n,i,r,a,o,l,s=(0,j.c)(19),{validation:d,__unstable_showSummary:c,fontSize:u,placement:p}=e,m=void 0===d?xE:d,h=m.some(xP),f=m.some(xz),g=h?"error":f?"warning":"info";return s[0]!==c||s[1]!==m?(t=c&&(0,v.jsx)(xN,{validation:m}),s[0]=c,s[1]=m,s[2]=t):t=s[2],s[3]!==c||s[4]!==m?(n=!c&&(0,v.jsx)(v.Fragment,{children:m.map(xD)}),s[3]=c,s[4]=m,s[5]=n):n=s[5],s[6]!==t||s[7]!==n?(i=(0,v.jsxs)(x$,{space:3,children:[t,n]}),s[6]=t,s[7]=n,s[8]=i):i=s[8],s[9]===Symbol.for("react.memo_cache_sentinel")?(r=["bottom","right","left"],s[9]=r):r=s[9],s[10]!==g?(a=(0,v.jsx)(xI,{status:g}),s[10]=g,s[11]=a):a=s[11],s[12]!==u||s[13]!==a?(o=(0,v.jsx)(xT,{children:(0,v.jsx)(I.EY,{size:u,weight:"medium",children:a})}),s[12]=u,s[13]=a,s[14]=o):o=s[14],s[15]!==p||s[16]!==i||s[17]!==o?(l=(0,v.jsx)(tL.m_,{content:i,portal:!0,placement:p,fallbackPlacements:r,children:o}),s[15]=p,s[16]=i,s[17]=o,s[18]=l):l=s[18],l}function xD(e,t){return(0,v.jsx)(xR,{validation:e},t)}function xz(e){return"warning"===e.level}function xP(e){return"error"===e.level}function xR(e){let t,n,i,r=(0,j.c)(7),{validation:a}=e;return r[0]!==a.level?(t=(0,v.jsx)(I.az,{marginRight:2,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:(0,v.jsx)(xI,{status:a.level})})}),r[0]=a.level,r[1]=t):t=r[1],r[2]!==a.message?(n=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.EY,{size:1,children:a.message})}),r[2]=a.message,r[3]=n):n=r[3],r[4]!==t||r[5]!==n?(i=(0,v.jsxs)(I.so,{children:[t,n]}),r[4]=t,r[5]=n,r[6]=i):i=r[6],i}function xN(e){let t,n,i=(0,j.c)(5),{validation:r}=e,{t:a}=as(),o=ax();if(i[0]!==o||i[1]!==a||i[2]!==r){n=Symbol.for("react.early_return_sentinel");e:{let e=r.reduce(xV,0),i=r.reduce(xO,0),l=e>0,s=i>0;if(!l&&!s){n=null;break e}let d=l&&a("form.validation.summary.errors-count",{count:e}),c=s&&a("form.validation.summary.warnings-count",{count:i});t=d&&c?(0,v.jsx)(I.EY,{size:1,children:o.format([d,c])}):(0,v.jsx)(I.EY,{size:1,children:d||c})}i[0]=o,i[1]=a,i[2]=r,i[3]=t,i[4]=n}else t=i[3],n=i[4];return n!==Symbol.for("react.early_return_sentinel")?n:t}function xO(e,t){return"warning"===t.level?e+1:e}function xV(e,t){return"error"===t.level?e+1:e}let xM=(0,eI.I4)(I.so).withConfig({displayName:"LabelSuffix",componentId:"sc-i3ur06-0"})`height:0;overflow:visible;`,xL=[],xF=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(28),{description:c,inputId:u,title:p,deprecated:m,validation:h,suffix:f}=e,g=void 0===h?xL:h,{t:y}=as(),C=g.length>0;return d[0]!==y||d[1]!==p?(t=p||(0,v.jsx)("span",{style:{color:"var(--card-muted-fg-color)"},children:y("form.field.untitled-field-label")}),d[0]=y,d[1]=p,d[2]=t):t=d[2],d[3]!==u||d[4]!==t?(n=(0,v.jsx)(I.so,{align:"center",children:(0,v.jsx)(I.EY,{as:"label",htmlFor:u,weight:"medium",size:1,children:t})}),d[3]=u,d[4]=t,d[5]=n):n=d[5],d[6]!==f?(i=f&&(0,v.jsx)(I.az,{marginLeft:2,"data-testid":"form-field-suffix",children:f}),d[6]=f,d[7]=i):i=d[7],d[8]!==m||d[9]!==C||d[10]!==y||d[11]!==p||d[12]!==g?(r=(m||C)&&(0,v.jsxs)(xM,{align:"center",children:[m&&(0,v.jsx)(I.az,{marginLeft:2,children:(0,v.jsx)(I.Ex,{"data-testid":`deprecated-badge-${p}`,tone:"caution",children:y("form.field.deprecated-label")})}),C&&(0,v.jsx)(I.az,{marginLeft:2,children:(0,v.jsx)(xA,{"data-testid":"input-validation-icon-error",fontSize:1,placement:"top",validation:g})})]}),d[8]=m,d[9]=C,d[10]=y,d[11]=p,d[12]=g,d[13]=r):r=d[13],d[14]!==n||d[15]!==i||d[16]!==r?(a=(0,v.jsxs)(I.so,{align:"center",paddingY:1,children:[n,i,r]}),d[14]=n,d[15]=i,d[16]=r,d[17]=a):a=d[17],d[18]!==m||d[19]!==p?(o=m&&(0,v.jsx)(NY,{"data-testid":`deprecated-message-${p}
233`,tone:"caution",size:1,children:m.reason}),d[18]=m,d[19]=p,d[20]=o):o=d[20],d[21]!==c||d[22]!==u?(l=c&&(0,v.jsx)(I.EY,{muted:!0,size:1,id:y9(u,c),children:c}),d[21]=c,d[22]=u,d[23]=l):l=d[23],d[24]!==a||d[25]!==o||d[26]!==l?(s=(0,v.jsxs)(I.BJ,{space:3,children:[a,o,l]}),d[24]=a,d[25]=o,d[26]=l,d[27]=s):s=d[27],s}),xB=[],xY=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(34);g[0]!==e?({__unstable_headerActions:s,__unstable_presence:d,__internal_slot:c,__internal_comments:n,children:t,description:r,inputId:a,level:o,title:u,validation:p,deprecated:i,...l}=e,g[0]=e,g[1]=t,g[2]=n,g[3]=i,g[4]=r,g[5]=a,g[6]=o,g[7]=l,g[8]=s,g[9]=d,g[10]=c,g[11]=u,g[12]=p):(t=g[1],n=g[2],i=g[3],r=g[4],a=g[5],o=g[6],l=g[7],s=g[8],d=g[9],c=g[10],u=g[11],p=g[12]);let y=void 0===s?xB:s,C=void 0===d?xB:d,x=void 0===c?null:c,{focused:b,hovered:w,onMouseEnter:_,onMouseLeave:k}=fw();return g[13]!==y||g[14]!==n||g[15]!==i||g[16]!==r||g[17]!==b||g[18]!==w||g[19]!==a||g[20]!==C||g[21]!==x||g[22]!==u||g[23]!==p?(m=u&&(0,v.jsx)(xj,{__internal_comments:n,__internal_slot:x,actions:y,fieldFocused:!!b,fieldHovered:w,presence:C,inputId:a,content:(0,v.jsx)(xF,{description:r,inputId:a,title:u,validation:p,deprecated:i})}),g[13]=y,g[14]=n,g[15]=i,g[16]=r,g[17]=b,g[18]=w,g[19]=a,g[20]=C,g[21]=x,g[22]=u,g[23]=p,g[24]=m):m=g[24],g[25]!==t?(h=(0,v.jsx)("div",{children:t}),g[25]=t,g[26]=h):h=g[26],g[27]!==o||g[28]!==_||g[29]!==k||g[30]!==l||g[31]!==m||g[32]!==h?(f=(0,v.jsxs)(I.BJ,{...l,"data-level":o,onMouseEnter:_,onMouseLeave:k,space:2,children:[m,h]}),g[27]=o,g[28]=_,g[29]=k,g[30]=l,g[31]=m,g[32]=h,g[33]=f):f=g[33],f}),xH=eI.I4.legend.withConfig({displayName:"Root",componentId:"sc-iz82no-0"})`padding:0;display:table;`,xU=(0,eI.I4)(I.so).attrs({forwardedAs:"button"}).withConfig({displayName:"ToggleButton",componentId:"sc-iz82no-1"})(e=>{let{theme:t}=e,{focusRing:n,radius:i}=t.sanity,{base:r}=t.sanity.color;return(0,eI.AH)` 234 appearance: none; 235 border: 0; 236 background: none; 237 color: inherit; 238 -webkit-font-smoothing: inherit; 239 font: inherit; 240 outline: none; 241 border-radius: ${(0,I.D0)(i[2])}; 242 position: relative; 243 244 &:not([hidden]) { 245 display: flex; 246 } 247 248 &:focus { 249 box-shadow: ${i4({base:r,focusRing:n})}; 250 } 251 252 &:focus:not(:focus-visible) { 253 box-shadow: none; 254 } 255 256 /* Added to increase the hit area of the collapsible fieldset */ 257 &::after { 258 content: ''; 259 position: absolute; 260 top: -10px; 261 right: -10px; 262 bottom: -10px; 263 left: -10px; 264 } 265 `}),xZ=(0,eI.I4)(I.az).withConfig({displayName:"ToggleIconBox",componentId:"sc-iz82no-2"})`width:9px;height:9px;margin-right:3px;& svg{transition:transform 100ms;}`,xq=(0,_.memo)(function(e){let t,n,i,r=(0,j.c)(10),{collapsed:a,collapsible:o,onClick:l,title:s}=e;r[0]!==s?(t=(0,v.jsx)(I.EY,{weight:"medium",size:1,children:s}),r[0]=s,r[1]=t):t=r[1];let d=t;if(!o){let e;return r[2]!==d?(e=(0,v.jsx)(xH,{children:d}),r[2]=d,r[3]=e):e=r[3],e}let c=`rotate(${a?"0":"90deg"}) translate3d(0, 0, 0)`;return r[4]!==c?(n=(0,v.jsx)(xZ,{children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(eT.nVd,{style:{transform:c}})})}),r[4]=c,r[5]=n):n=r[5],r[6]!==l||r[7]!==n||r[8]!==d?(i=(0,v.jsx)(xH,{children:(0,v.jsxs)(xU,{type:"button",onClick:l,children:[n,d]})}),r[6]=l,r[7]=n,r[8]=d,r[9]=i):i=r[9],i}),xW=(0,eI.I4)(I.BJ).attrs({forwardedAs:"fieldset"}).withConfig({displayName:"Root",componentId:"sc-1kd7me-0"})`border:none;body:not(:-moz-handler-blocked) &{display:table-cell;}`,xJ=(0,eI.I4)(I.az).withConfig({displayName:"Content",componentId:"sc-1kd7me-1"})(e=>{let{$borderLeft:t,$focused:n,theme:i}=e,{focusRing:r}=i.sanity,{base:a}=i.sanity.color;return(0,eI.AH)` 266 outline: none; 267 border-left: ${t?"1px solid var(--card-border-color)":void 0}; 268 transition: 269 border-color 0.2s ease-in-out, 270 box-shadow 0.2s ease-in-out; 271 272 ${t&&n&&`border-left: 1px solid var(--card-focus-ring-color); 273 box-shadow: inset 1px 0 0 var(--card-focus-ring-color);`} 274 275 ${t&&!n&&` 276 box-shadow: inset 0 0 0 transparent; 277 `} 278 279 &:focus { 280 box-shadow: ${i4({base:a,focusRing:{...r,offset:2}})}; 281 } 282 283 &:focus:not(:focus-visible) { 284 box-shadow: none; 285 } 286 `}),xK=[],xG=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z,P,R,N,O,V,M=(0,j.c)(82);M[0]!==e?({__internal_comments:o,__internal_slot:h,__unstable_headerActions:f,__unstable_presence:g,children:n,collapsed:i,collapsible:r,columns:a,description:s,level:y,onCollapse:c,onExpand:u,onFocus:p,tabIndex:x,title:b,validation:C,inputId:d,deprecated:l,...m}=e,M[0]=e,M[1]=n,M[2]=i,M[3]=r,M[4]=a,M[5]=o,M[6]=l,M[7]=s,M[8]=d,M[9]=c,M[10]=u,M[11]=p,M[12]=m,M[13]=h,M[14]=f,M[15]=g,M[16]=y,M[17]=C,M[18]=x,M[19]=b):(n=M[1],i=M[2],r=M[3],a=M[4],o=M[5],l=M[6],s=M[7],d=M[8],c=M[9],u=M[10],p=M[11],m=M[12],h=M[13],f=M[14],g=M[15],y=M[16],C=M[17],x=M[18],b=M[19]);let L=void 0===h?null:h,F=void 0===f?xK:f,B=void 0===g?xK:g,Y=void 0===y?0:y,H=void 0===C?xK:C,{focused:U,hovered:Z,onMouseEnter:q,onMouseLeave:W}=fw(),J=H.length>0,K=(0,_.useRef)(null),{t:G}=as();M[20]===Symbol.for("react.memo_cache_sentinel")?(w=()=>K.current,M[20]=w):w=M[20],(0,_.useImperativeHandle)(t,w),M[21]!==p?(k=e=>{K.current===e.target&&p&&p(e)},M[21]=p,M[22]=k):k=M[22];let X=k;M[23]!==i||M[24]!==c||M[25]!==u?(S=()=>i?u?.():c?.(),M[23]=i,M[24]=c,M[25]=u,M[26]=S):S=M[26];let Q=S;e:{var ee;let e,t;if(i){T=null;break e}
286M[27]!==n?(e="function"==typeof(ee=n)?ee():ee,M[27]=n,M[28]=e):e=M[28],M[29]!==a||M[30]!==e?(t=(0,v.jsx)(i8,{columns:a,gapX:4,gapY:5,children:e}),M[29]=a,M[30]=e,M[31]=t):t=M[31],T=t}let et=T,en=!!U;M[32]!==i||M[33]!==r||M[34]!==Q||M[35]!==b?(E=b&&(0,v.jsx)(xq,{collapsed:!!i,collapsible:r,onClick:r?Q:void 0,title:b}),M[32]=i,M[33]=r,M[34]=Q,M[35]=b,M[36]=E):E=M[36],M[37]!==l||M[38]!==G||M[39]!==b?($=l&&(0,v.jsx)(I.az,{marginLeft:2,children:(0,v.jsx)(I.Ex,{"data-testid":`deprecated-badge-${b}`,tone:"caution",children:G("form.field.deprecated-label")})}),M[37]=l,M[38]=G,M[39]=b,M[40]=$):$=M[40],M[41]!==J||M[42]!==H?(A=J&&(0,v.jsx)(I.az,{marginLeft:2,children:(0,v.jsx)(xA,{fontSize:1,placement:"top",validation:H})}),M[41]=J,M[42]=H,M[43]=A):A=M[43],M[44]!==E||M[45]!==$||M[46]!==A?(D=(0,v.jsxs)(I.so,{align:"center",children:[E,$,A]}),M[44]=E,M[45]=$,M[46]=A,M[47]=D):D=M[47],M[48]!==l||M[49]!==b?(z=l&&(0,v.jsx)(NY,{"data-testid":`deprecated-message-${b}`,tone:"caution",size:1,children:l.reason}),M[48]=l,M[49]=b,M[50]=z):z=M[50],M[51]!==s||M[52]!==d?(P=s&&(0,v.jsx)(I.EY,{muted:!0,size:1,id:y9(d,s),children:s}),M[51]=s,M[52]=d,M[53]=P):P=M[53],M[54]!==D||M[55]!==z||M[56]!==P?(R=(0,v.jsxs)(I.BJ,{space:3,children:[D,z,P]}),M[54]=D,M[55]=z,M[56]=P,M[57]=R):R=M[57],M[58]!==F||M[59]!==o||M[60]!==Z||M[61]!==d||M[62]!==B||M[63]!==L||M[64]!==R||M[65]!==en?(N=(0,v.jsx)(xj,{__internal_comments:o,__internal_slot:L,actions:F,fieldFocused:en,fieldHovered:Z,presence:B,inputId:d,content:R}),M[58]=F,M[59]=o,M[60]=Z,M[61]=d,M[62]=B,M[63]=L,M[64]=R,M[65]=en,M[66]=N):N=M[66];let ei=Y>0,er=!!U,ea=3*(0!==Y),eo="number"==typeof x&&x>-1?X:void 0,el=!i&&et;return M[67]!==i||M[68]!==ei||M[69]!==er||M[70]!==ea||M[71]!==eo||M[72]!==el||M[73]!==x?(O=(0,v.jsx)(xJ,{$borderLeft:ei,$focused:er,hidden:i,paddingLeft:ea,onFocus:eo,ref:K,tabIndex:x,children:el}),M[67]=i,M[68]=ei,M[69]=er,M[70]=ea,M[71]=eo,M[72]=el,M[73]=x,M[74]=O):O=M[74],M[75]!==Y||M[76]!==q||M[77]!==W||M[78]!==m||M[79]!==N||M[80]!==O?(V=(0,v.jsxs)(xW,{"data-level":Y,...m,onMouseEnter:q,onMouseLeave:W,space:2,children:[N,O]}),M[75]=Y,M[76]=q,M[77]=W,M[78]=m,M[79]=N,M[80]=O,M[81]=V):V=M[81],V}),xX=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-1ij3f7x-0"})`display:flex;justify-content:flex-end;box-sizing:border-box;min-height:var(--avatar-height);width:77px;margin-left:var(--small-padding);&[data-max-avatars='1']{max-width:23px;}&[data-position='top']{align-self:flex-start;}&[data-position='bottom']{align-self:flex-end;}`;function xQ(e){let t,n=(0,j.c)(4),{children:i,maxAvatars:r,position:a}=e,o=void 0===a?"bottom":a;return n[0]!==i||n[1]!==r||n[2]!==o?(t=(0,v.jsx)(xX,{"data-max-avatars":r,"data-
286position":o,children:i}),n[0]=i,n[1]=r,n[2]=o,n[3]=t):t=n[3],t}function x1(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(35),{error:f,onChange:g}=e;h[0]!==f.duplicates||h[1]!==g?(t=()=>{g(gD.from((f.duplicates||[]).map(x2)))},h[0]=f.duplicates,h[1]=g,h[2]=t):t=h[2];let y=t,{t:C}=as(),x=f.schemaType.title,b=f.schemaType.description;return h[3]!==C?(n=C("form.error.duplicate-keys-alert.generate-button.text"),h[3]=C,h[4]=n):n=h[4],h[5]!==y||h[6]!==n?(i=(0,v.jsx)(I.BJ,{padding:2,children:(0,v.jsx)(tL.$n,{onClick:y,text:n,tone:"caution"})}),h[5]=y,h[6]=n,h[7]=i):i=h[7],h[8]!==C?(r=C("form.error.duplicate-keys-alert.title"),h[8]=C,h[9]=r):r=h[9],h[10]!==C?(a=C("form.error.duplicate-keys-alert.summary"),h[10]=C,h[11]=a):a=h[11],h[12]!==a?(o=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:a}),h[12]=a,h[13]=o):o=h[13],h[14]!==C?(l=C("form.error.duplicate-keys-alert.details.title"),h[14]=C,h[15]=l):l=h[15],h[16]!==C?(s=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:C,i18nKey:"form.error.duplicate-keys-alert.details.description"})}),h[16]=C,h[17]=s):s=h[17],h[18]!==C?(d=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:C,i18nKey:"form.error.duplicate-keys-alert.details.additional-description"})}),h[18]=C,h[19]=d):d=h[19],h[20]!==d||h[21]!==s?(c=(0,v.jsxs)(I.BJ,{space:3,children:[s,d]}),h[20]=d,h[21]=s,h[22]=c):c=h[22],h[23]!==c||h[24]!==l?(u=(0,v.jsx)(yl,{marginTop:4,open:dT,title:l,children:c}),h[23]=c,h[24]=l,h[25]=u):u=h[25],h[26]!==u||h[27]!==i||h[28]!==r||h[29]!==o?(p=(0,v.jsxs)(g$,{status:"warning",suffix:i,title:r,children:[o,u]}),h[26]=u,h[27]=i,h[28]=r,h[29]=o,h[30]=p):p=h[30],h[31]!==f.schemaType.description||h[32]!==f.schemaType.title||h[33]!==p?(m=(0,v.jsx)(xY,{title:x,description:b,children:p}),h[31]=f.schemaType.description,h[32]=f.schemaType.title,h[33]=p,h[34]=m):m=h[34],m}function x2(e){let[t,n]=e;return hq(`${n}_deduped_${t}`,[t,"_key"])}function x5(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(35),{error:f,onChange:g}=e;h[0]!==f.value||h[1]!==g?(t=()=>{g(gD.from((f.value||[]).map(x0)))},h[0]=f.value,h[1]=g,h[2]=t):t=h[2];let y=t,{t:C}=as(),x=f.schemaType.title,b=f.schemaType.description;return h[3]!==C?(n=C("form.error.missing-keys-alert.add-button.text"),h[3]=C,h[4]=n):n=h[4],h[5]!==y||h[6]!==n?(i=(0,v.jsx)(I.BJ,{padding:2,children:(0,v.jsx)(tL.$n,{onClick:y,text:n,tone:"caution"})}),h[5]=y,h[6]=n,h[7]=i):i=h[7],h[8]!==C?(r=C("form.error.missing-keys-alert.title"),h[8]=C,h[9]=r):r=h[9],h[10]!==C?(a=C("form.error.missing-keys-alert.summary"),h[10]=C,h[11]=a):a=h[11],h[12]!==a?(o=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:a}),h[12]=a,h[13]=o):o=h[13],h[14]!==C?(l=C("form.error.missing-keys-alert.details.title"),h[14]=C,h[15]=l):l=h[15],h[16]!==C?(s=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:C,i18nKey:"form.error.missing-keys-alert.details.description"})}),h[16]=C,h[17]=s):s=h[17],h[18]!==C?(d=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:C,i18nKey:"form.error.missing-keys-alert.details.additional-description"})}),h[18]=C,h[19]=d):d=h[19],h[20]!==d||h[21]!==s?(c=(0,v.jsxs)(I.BJ,{space:3,children:[s,d]}),h[20]=d,h[21]=s,h[22]=c):c=h[22],h[23]!==c||h[24]!==l?(u=(0,v.jsx)(yl,{marginTop:4,open:dT,title:l,children:c}),h[23]=c,h[24]=l,h[25]=u):u=h[25],h[26]!==u||h[27]!==i||h[28]!==r||h[29]!==o?(p=(0,v.jsxs)(g$,{status:"warning",suffix:i,title:r,children:[o,u]}),h[26]=u,h[27]=i,h[28]=r,h[29]=o,h[30]=p):p=h[30],h[31]!==f.schemaType.description||h[32]!==f.schemaType.title||h[33]!==p?(m=(0,v.jsx)(xY,{title:x,description:b,children:p}),h[31]=f.schemaType.description,h[32]=f.schemaType.title,h[33]=p,h[34]=m):m=h[34],m}function x0(e,t){return hU((0,nq.Xp)(),[t,"_key"])}function x7(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(32),{error:h,onChange:f}=e;m[0]!==h.value||m[1]!==f?(t=()=>{let e=(h.value||[]).flatMap(x8).reverse().map(x3);f(gD.from(e))},m[0]=h.value,m[1]=f,m[2]=t):t=m[2];let g=t,{t:y}=as(),C=h.schemaType.title,x=h.schemaType.description;return m[3]!==y?(n=y("form.error.mixed-array-alert.remove-button.text"),m[3]=y,m[4]=n):n=m[4],m[5]!==g||m[6]!==n?(i=(0,v.jsx)(I.BJ,{padding:2,children:(0,v.jsx)(tL.$n,{onClick:g,text:n,tone:"critical"})}),m[5]=g,m[6]=n,m[7]=i):i=m[7],m[8]!==y?(r=y("form.error.mixed-array-alert.title"),m[8]=y,m[9]=r):r=m[9],m[10]!==y?(a=y("form.error.mixed-array-alert.summary"),m[10]=y,m[11]=a):a=m[11],m[12]!==a?(o=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:a}),m[12]=a,m[13]=o):o=m[13],m[14]!==y?(l=y("form.error.mixed-array-alert.details.title"),m[14]=y,m[15]=l):l=m[15],m[16]!==y?(s=y("form.error.mixed-array-alert.details.description"),m[16]=y,m[17]=s):s=m[17],m[18]!==s?(d=(0,v.jsx)(I.BJ,{space:3,children:(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:s})}),m[18]=s,m[19]=d):d=m[19],m[20]!==d||m[21]!==l?(c=(0,v.jsx)(yl,{marginTop:4,open:dT,title:l,children:d}),m[20]=d,m[21]=l,m[22]=c):c=m[22],m[23]!==c||m[24]!==i||m[25]!==r||m[26]!==o?(u=(0,v.jsxs)(g$,{status:"error",suffix:i,title:r,children:[o,c]}),m[23]=c,m[24]=i,m[25]=r,m[26]=o,m[27]=u):u=m[27],m[28]!==h.schemaType.description||m[29]!==h.schemaType.title||m[30]!==u?(p=(0,v.jsx)(xY,{title:C,description:x,children:u}),m[28]=h.schemaType.description,m[29]=h.schemaType.title,m[30]=u,m[31]=p):p=m[31],p}function x3(e){return hW([e])}function x8(e,t){return(0,O.A)(e)?[]:[t]}function x4(e){let t,n,i,r=(0,j.c)(24),{member:a}=e,{onChange:o}=fr();r[0]!==a.fieldName||r[1]!==o?(t=e=>{o(gD.from(e).prefixAll(a.fieldName))},r[0]=a.fieldName,r[1]=o,r[2]=t):t=r[2];let l=t,{t:s}=as();if("INCOMPATIBLE_TYPE"===a.error.type){let e,t;
286return r[3]!==a.error.expectedSchemaType.name?(e=[a.error.expectedSchemaType.name],r[3]=a.error.expectedSchemaType.name,r[4]=e):e=r[4],r[5]!==l||r[6]!==a.error.resolvedValueType||r[7]!==a.error.value||r[8]!==e?(t=(0,v.jsx)(xu,{value:a.error.value,onChange:l,actualType:a.error.resolvedValueType,validTypes:e}),r[5]=l,r[6]=a.error.resolvedValueType,r[7]=a.error.value,r[8]=e,r[9]=t):t=r[9],t}if("MISSING_KEYS"===a.error.type){let e;return r[10]!==l||r[11]!==a.error?(e=(0,v.jsx)(x5,{error:a.error,onChange:l}),r[10]=l,r[11]=a.error,r[12]=e):e=r[12],e}if("DUPLICATE_KEYS"===a.error.type){let e;return r[13]!==l||r[14]!==a.error?(e=(0,v.jsx)(x1,{error:a.error,onChange:l}),r[13]=l,r[14]=a.error,r[15]=e):e=r[15],e}if("MIXED_ARRAY"===a.error.type){let e;return r[16]!==l||r[17]!==a.error?(e=(0,v.jsx)(x7,{onChange:l,error:a.error}),r[16]=l,r[17]=a.error,r[18]=e):e=r[18],e}return r[19]!==e.member.error.type||r[20]!==s?(n=s("member-field-error.unexpected-error",{error:e.member.error.type}),r[19]=e.member.error.type,r[20]=s,r[21]=n):n=r[21],r[22]!==n?(i=(0,v.jsx)(I.az,{children:n}),r[22]=n,r[23]=i):i=r[23],i}function x6(e){let t=(0,j.c)(3),{member:n}=e;if((0,_.isValidElement)(n.component))return n.component;if((0,tU.isValidElementType)(n.component)){let e,i=n.component;return t[0]!==i||t[1]!==n.key?(e=(0,v.jsx)(i,{},n.key),t[0]=i,t[1]=n.key,t[2]=e):e=t[2],e}return console.error("Invalid decoration member, expected a valid react component but received:",typeof n.component,n.component),null}let x9=(0,_.memo)(function(e){let t,n,i,r,a,o,l=(0,j.c)(42),{member:s,renderAnnotation:d,renderBlock:c,renderField:u,renderInlineBlock:p,renderInput:m,renderItem:h,renderPreview:f}=e,{onSetFieldSetCollapsed:g}=fr();l[0]!==s.fieldSet.path||l[1]!==g?(t=()=>{g(s.fieldSet.path,!0)},l[0]=s.fieldSet.path,l[1]=g,l[2]=t):t=l[2];let y=t;l[3]!==s.fieldSet.path||l[4]!==g?(n=()=>{g(s.fieldSet.path,!1)},l[3]=s.fieldSet.path,l[4]=g,l[5]=n):n=l[5];let C=n;e:{if(s.renderMembers){let e;l[6]!==s?(e=s.renderMembers(s.fieldSet.members),l[6]=s,l[7]=e):e=l[7],i=e;break e}i=s.fieldSet.members}let x=i;l[8]!==s.fieldSet.name||l[9]!==s.fieldSet.title?(r=s.fieldSet.title||(0,es.A)(s.fieldSet.name),l[8]=s.fieldSet.name,l[9]=s.fieldSet.title,l[10]=r):r=l[10];let b=s.fieldSet.description,w=s.fieldSet.level,_=s.fieldSet.collapsible,k=s.fieldSet.collapsed,S=s?.fieldSet?.columns,I=`fieldset-${s.fieldSet.name}`,T=s.fieldSet.name;if(l[11]!==x||l[12]!==s.key||l[13]!==d||l[14]!==c||l[15]!==u||l[16]!==p||l[17]!==m||l[18]!==h||l[19]!==f){let e;l[21]!==s.key||l[22]!==d||l[23]!==c||l[24]!==u||l[25]!==p||l[26]!==m||l[27]!==h||l[28]!==f?(e=e=>"error"===e.kind?(0,v.jsx)(x4,{member:e},s.key):"decoration"===e.kind?(0,v.jsx)(x6,{member:e},e.key):(0,v.jsx)(xt,{member:e,renderAnnotation:d,renderBlock:c,renderField:u,renderInlineBlock:p,renderInput:m,renderItem:h,renderPreview:f},e.key),l[21]=s.key,l[22]=d,l[23]=c,l[24]=u,l[25]=p,l[26]=m,l[27]=h,l[28]=f,l[29]=e):e=l[29],a=x.map(e),l[11]=x,l[12]=s.key,l[13]=d,l[14]=c,l[15]=u,l[16]=p,l[17]=m,l[18]=h,l[19]=f,l[20]=a}else a=l[20];return l[30]!==y||l[31]!==C||l[32]!==s.fieldSet.collapsed||l[33]!==s.fieldSet.collapsible||l[34]!==s.fieldSet.description||l[35]!==s.fieldSet.level||l[36]!==s.fieldSet.name||l[37]!==a||l[38]!==r||l[39]!==S||l[40]!==I?(o=(0,v.jsx)(xG,{title:r,description:b,level:w,collapsible:_,collapsed:k,onCollapse:y,onExpand:C,columns:S,"data-testid":I,inputId:T,children:a}),l[30]=y,l[31]=C,l[32]=s.fieldSet.collapsed,l[33]=s.fieldSet.collapsible,l[34]=s.fieldSet.description,l[35]=s.fieldSet.level,l[36]=s.fieldSet.name,l[37]=a,l[38]=r,l[39]=S,l[40]=I,l[41]=o):o=l[41],o}),be=(0,_.memo)(function(e){let t=(0,j.c)(22),{member:n,renderAnnotation:i,renderBlock:r,renderInput:a,renderInlineBlock:o,renderField:l,renderItem:s,renderPreview:d}=e;if("decoration"===n.kind){let e;return t[0]!==n?(e=(0,v.jsx)(x6,{member:n},n.key),t[0]=n,t[1]=e):e=t[1],e}if("field"===n.kind){let e;return t[2]!==n||t[3]!==i||t[4]!==r||t[5]!==l||t[6]!==o||t[7]!==a||t[8]!==s||t[9]!==d?(e=(0,v.jsx)(xt,{member:n,renderAnnotation:i,renderBlock:r,renderInlineBlock:o,renderInput:a,renderField:l,renderItem:s,renderPreview:d},n.key),t[2]=n,t[3]=i,t[4]=r,t[5]=l,t[6]=o,t[7]=a,t[8]=s,t[9]=d,t[10]=e):e=t[10],e}if("error"===n.kind){let e;return t[11]!==n?(e=(0,v.jsx)(x4,{member:n},n.key),t[11]=n,t[12]=e):e=t[12],e}if("fieldSet"===n.kind){let e;
286return t[13]!==n||t[14]!==i||t[15]!==r||t[16]!==l||t[17]!==o||t[18]!==a||t[19]!==s||t[20]!==d?(e=(0,v.jsx)(x9,{member:n,renderAnnotation:i,renderBlock:r,renderInlineBlock:o,renderInput:a,renderField:l,renderItem:s,renderPreview:d},n.key),t[13]=n,t[14]=i,t[15]=r,t[16]=l,t[17]=o,t[18]=a,t[19]=s,t[20]=d,t[21]=e):e=t[21],e}return console.warn(Error(`Unhandled member kind ${n.kind}`)),null});function bt(e){let t,n,i=(0,j.c)(19),{members:r,renderAnnotation:a,renderBlock:o,renderInput:l,renderInlineBlock:s,renderField:d,renderItem:c,renderPreview:u}=e;if(i[0]!==r||i[1]!==a||i[2]!==o||i[3]!==d||i[4]!==s||i[5]!==l||i[6]!==c||i[7]!==u){let e;i[9]!==a||i[10]!==o||i[11]!==d||i[12]!==s||i[13]!==l||i[14]!==c||i[15]!==u?(e=e=>(0,v.jsx)(be,{member:e,renderAnnotation:a,renderBlock:o,renderField:d,renderInlineBlock:s,renderInput:l,renderItem:c,renderPreview:u},e.key),i[9]=a,i[10]=o,i[11]=d,i[12]=s,i[13]=l,i[14]=c,i[15]=u,i[16]=e):e=i[16],t=r.map(e),i[0]=r,i[1]=a,i[2]=o,i[3]=d,i[4]=s,i[5]=l,i[6]=c,i[7]=u,i[8]=t}else t=i[8];let p=t;return i[17]!==p?(n=(0,v.jsx)(v.Fragment,{children:p}),i[17]=p,i[18]=n):n=i[18],n}let bn={referringDocuments:[],isLoading:!0},bi=["_id","_type"];function br(e,t){let n,i,r=(0,j.c)(6),a=void 0===t?bi:t,o=cu();r[0]!==a?(n=0===a.length?"":a.join(","),r[0]=a,r[1]=n):n=r[1];let l=n;return r[2]!==o||r[3]!==e||r[4]!==l?(i=o.listenQuery({fetch:`*[references($docId)][0...101]${l?`{${l}}`:""}`,listen:"*[references($docId)]"},{docId:e},{tag:"use-referring-documents"}).pipe((0,eV.T)(ba),(0,tr.Z)(bn)),r[2]=o,r[3]=e,r[4]=l,r[5]=i):i=r[5],(0,tF.J)(i,bn)}function ba(e){return{referringDocuments:e,isLoading:!1}}let bo=[],bl=e=>{let t,n,i,r,a,o=(0,j.c)(16),{asset:l,assetType:s,referringDocuments:d}=e,{t:c}=as(),u=d.length,p=u>0,m=`asset-source.usage-list.documents-using-${s}`,h=l.originalFilename?"named":"unnamed";return o[0]!==l.originalFilename||o[1]!==u?(t={filename:l.originalFilename,count:u},o[0]=l.originalFilename,o[1]=u,o[2]=t):t=o[2],o[3]!==c||o[4]!==m||o[5]!==h||o[6]!==t?(n=(0,v.jsx)(I.EY,{size:1,as:"h2",weight:"medium",children:(0,v.jsx)(aE,{t:c,i18nKey:m,context:h,values:t})}),o[3]=c,o[4]=m,o[5]=h,o[6]=t,o[7]=n):n=o[7],o[8]!==p||o[9]!==n?(i=(0,v.jsx)(I.Zp,{borderBottom:p,marginTop:2,paddingBottom:2,marginBottom:1,children:n}),o[8]=p,o[9]=n,o[10]=i):i=o[10],o[11]!==d?(r=d.map(bd),o[11]=d,o[12]=r):r=o[12],o[13]!==i||o[14]!==r?(a=(0,v.jsxs)(v.Fragment,{children:[i,r]}),o[13]=i,o[14]=r,o[15]=a):a=o[15],a},bs=e=>{let t,n,i,r,a,o=(0,j.c)(15),{document:l}=e,s=R8();o[0]!==l._id||o[1]!==l._type?(t=e=>(0,v.jsx)(nU.RZ,{...e,params:{id:l._id,type:l._type},intent:"edit"}),o[0]=l._id,o[1]=l._type,o[2]=t):t=o[2];let d=t,c=l._id;return o[3]!==l._id?(n={_type:"reference",_ref:l._id},o[3]=l._id,o[4]=n):n=o[4],o[5]!==l._type||o[6]!==s?(i=s.get(l._type),o[5]=l._type,o[6]=s,o[7]=i):i=o[7],o[8]!==n||o[9]!==i?(r=(0,v.jsx)(I.so,{align:"center",gap:2,children:(0,v.jsx)(Pz,{layout:"default",value:n,schemaType:i})}),o[8]=n,o[9]=i,o[10]=r):r=o[10],o[11]!==d||o[12]!==l._id||o[13]!==r?(a=(0,v.jsx)(I.Zp,{as:d,radius:2,"data-as":"a",tabIndex:0,children:r},c),o[11]=d,o[12]=l._id,o[13]=r,o[14]=a):a=o[14],a};function bd(e){return(0,v.jsx)(bs,{document:e},e._id)}let bc={maxWidth:"100%",height:"120px",objectFit:"contain",objectPosition:"center"},bu={gridColumn:"span 1",overflow:"hidden",display:"flex",alignSelf:"center",justifyContent:"center"},bp={height:"100%"},bm=e=>{let t,n,i,r,a,o,l,s,d=(0,j.c)(44),{asset:c,assetType:u,hasResults:p}=e,m="image"===u,{t:h}=as();if(void 0!==p&&p){let e,t,n,i,r,a,o,l,s,p;d[0]===Symbol.for("react.memo_cache_sentinel")?(e=[3,3,4],d[0]=e):e=d[0],d[1]===Symbol.for("react.memo_cache_sentinel")?(t=[2,3,4],d[1]=t):t=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(n=[3,4],d[2]=n):n=d[2];let f=m?"span 2":"span 3";d[3]!==f?(i={gridColumn:f},d[3]=f,d[4]=i):i=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.sAQ,{})}),d[5]=r):r=d[5];let g=`asset-source.delete-dialog.usage-list.warning-${u}-is-in-use`,y=c.originalFilename?"named":"unnamed";return d[6]!==c.originalFilename||d[7]!==h||d[8]!==g||d[9]!==y?(a=h(g,{context:y,filename:c.originalFilename}),d[6]=c.originalFilename,d[7]=h,d[8]=g,d[9]=y,d[10]=a):a=d[10],d[11]!==a?(o=(0,v.jsx)(I.EY,{size:1,children:a}),d[11]=a,d[12]=o):o=d[12],d[13]!==o||d[14]!==i?(l=(0,v.jsxs)(I.so,{gap:n,align:"center",style:i,children:[r,o]}),d[13]=o,d[14]=i,d[15]=l):l=d[15],d[16]!==c.url||d[17]!==m||d[18]!==h?(s=m&&(0,v.jsx)(I.Zp,{__unstable_checkered:!0,border:!0,radius:1,style:bu,children:(0,v.jsx)(I.so,{align:"center",justify:"center",style:bp,children:(0,v.jsx)("img",{src:`${c.url}?w=200`,style:bc,alt:h("asset-source.usage-list.image-alt"),referrerPolicy:"str
286ict-origin-when-cross-origin"})})}),d[16]=c.url,d[17]=m,d[18]=h,d[19]=s):s=d[19],d[20]!==l||d[21]!==s?(p=(0,v.jsx)(I.Zp,{tone:"caution",padding:e,border:!0,radius:2,marginBottom:3,children:(0,v.jsxs)(I.xA,{columns:3,gap:t,children:[l,s]})}),d[20]=l,d[21]=s,d[22]=p):p=d[22],p}d[23]===Symbol.for("react.memo_cache_sentinel")?(t=[2,3,4],n=[3,3,3,4],d[23]=t,d[24]=n):(t=d[23],n=d[24]);let f=m?"span 2":"span 3";d[25]!==f?(i={gridColumn:f},d[25]=f,d[26]=i):i=d[26];let g=`asset-source.delete-dialog.usage-list.confirm-delete-${u}`,y=c.originalFilename?"named":"unnamed";return d[27]!==c.originalFilename?(r={filename:c.originalFilename},d[27]=c.originalFilename,d[28]=r):r=d[28],d[29]!==h||d[30]!==g||d[31]!==y||d[32]!==r?(a=(0,v.jsx)(I.EY,{children:(0,v.jsx)(aE,{t:h,i18nKey:g,context:y,values:r})}),d[29]=h,d[30]=g,d[31]=y,d[32]=r,d[33]=a):a=d[33],d[34]!==i||d[35]!==a?(o=(0,v.jsx)(I.so,{style:i,align:"center",children:a}),d[34]=i,d[35]=a,d[36]=o):o=d[36],d[37]!==c.url||d[38]!==m||d[39]!==h?(l=m&&(0,v.jsx)(I.Zp,{__unstable_checkered:!0,border:!0,radius:1,style:bu,children:(0,v.jsx)(I.so,{align:"center",justify:"center",style:bp,children:(0,v.jsx)("img",{src:`${c.url}?w=200`,style:bc,alt:h("asset-source.asset-list.table.preview-alt"),referrerPolicy:"strict-origin-when-cross-origin"})})}),d[37]=c.url,d[38]=m,d[39]=h,d[40]=l):l=d[40],d[41]!==o||d[42]!==l?(s=(0,v.jsx)(I.Zp,{paddingX:t,paddingY:n,children:(0,v.jsxs)(I.xA,{columns:3,gap:3,children:[o,l]})}),d[41]=o,d[42]=l,d[43]=s):s=d[43],s};function bh(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(32),{asset:u,assetType:p,isDeleting:m,onClose:h,onDelete:f}=e,g=void 0!==m&&m,{isLoading:y,referringDocuments:C}=br(u._id,bo);if(c[0]!==C){let e=C.reduce(bf,[]);t=C.filter(t=>!e.includes(t._id)),c[0]=C,c[1]=t}else t=c[1];let x=t,b=x.length>0,{t:w}=as();return c[2]!==w?(n=w("asset-source.delete-dialog.action.cancel"),c[2]=w,c[3]=n):n=c[3],c[4]!==h||c[5]!==n?(i={onClick:h,text:n},c[4]=h,c[5]=n,c[6]=i):i=c[6],c[7]!==w?(r=w("asset-source.delete-dialog.action.delete"),c[7]=w,c[8]=r):r=c[8],c[9]!==b||c[10]!==g||c[11]!==f||c[12]!==r?(a={disabled:b,icon:eT.ucK,loading:g,onClick:f,text:r},c[9]=b,c[10]=g,c[11]=f,c[12]=r,c[13]=a):a=c[13],c[14]!==i||c[15]!==a?(o={cancelButton:i,confirmButton:a},c[14]=i,c[15]=a,c[16]=o):o=c[16],c[17]!==p||c[18]!==w?(l=w("asset-source.delete-dialog.header",{context:p}),c[17]=p,c[18]=w,c[19]=l):l=c[19],c[20]!==u||c[21]!==p||c[22]!==b||c[23]!==y||c[24]!==x?(s=y?(0,v.jsx)(I.az,{padding:4,children:(0,v.jsx)(ry,{showText:!0})}):(0,v.jsxs)(I.BJ,{paddingX:b?[2,3,4]:0,paddingY:b?[3,3,3,4]:0,space:1,children:[(0,v.jsx)(bm,{asset:u,assetType:p,hasResults:b}),b&&(0,v.jsx)(bl,{asset:u,referringDocuments:x,assetType:p})]}),c[20]=u,c[21]=p,c[22]=b,c[23]=y,c[24]=x,c[25]=s):s=c[25],c[26]!==y||c[27]!==h||c[28]!==o||c[29]!==l||c[30]!==s?(d=(0,v.jsx)(tL.lG,{__unstable_autoFocus:y,footer:o,header:l,id:"asset-dialog",onClickOutside:h,onClose:h,width:1,children:s}),c[26]=y,c[27]=h,c[28]=o,c[29]=l,c[30]=s,c[31]=d):d=c[31],d}function bf(e,t){return t._id.startsWith("drafts.")?e.concat(t._id.slice(7)):e}let bg={portal:!0,placement:"right"};function by(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(23),{isSelected:u,border:p,onAction:m}=e,h=void 0===p||p,{t:f}=as(),g=h?"ghost":u?"default":"bleed",y=h?"default":u?"primary":"default";return c[0]!==g||c[1]!==y?(t=(0,v.jsx)(rl,{mode:g,tone:y}),c[0]=g,c[1]=y,c[2]=t):t=c[2],c[3]!==f?(n=f("asset-source.asset-list.menu.show-usage"),c[3]=f,c[4]=n):n=c[4],c[5]!==m?(i=()=>{m({type:"showUsage"})},c[5]=m,c[6]=i):i=c[6],c[7]!==n||c[8]!==i?(r=(0,v.jsx)(tL.Dr,{text:n,icon:eT.qYV,onClick:i}),c[7]=n,c[8]=i,c[9]=r):r=c[9],c[10]!==f?(a=f("asset-source.asset-list.menu.delete"),c[10]=f,c[11]=a):a=c[11],c[12]!==m?(o=()=>{m({type:"delete"})},c[12]=m,c[13]=o):o=c[13],c[14]!==a||c[15]!==o?(l=(0,v.jsx)(tL.Dr,{text:a,icon:eT.ucK,tone:"critical",onClick:o}),c[14]=a,c[15]=o,c[16]=l):l=c[16],c[17]!==l||c[18]!==r?(s=(0,v.jsxs)(I.W1,{children:[r,l]}),c[17]=l,c[18]=r,c[19]=s):s=c[19],c[20]!==s||c[21]!==t?(d=(0,v.jsx)(tL.IU,{button:t,id:"asset-menu",menu:s,popover:bg}),c[20]=s,c[21]=t,c[22]=d):d=c[22],d}function bC(e){let t,n,i,r,a=(0,j.c)(14),{asset:o,assetType:l,onClose:s}=e,{isLoading:d,referringDocuments:c}=br(o._id,bo);if(a[0]!==c){let e=c.reduce(bx,[]);t=c.filter(t=>!e.includes(t._id)),a[0]=c,a[1]=t}else t=a[1];let u=t,{t:p}=as();return a[2]!==l||a[3]!==p?(n=p("asset-source.asset-usage-dialog.header",{context:l}),a[2]=l,a[3]=p,a[4]=n):n=a[4],a[5]!==o||a[6]!==l||a[7]!==d||a[8]!==u?(i=d?(0,v.jsx)(ry,{showText:!0}):(0,v.jsx)(bl,{asset:o,referringDocuments:u,assetType:l}),a[5]=o,a[6]=l,a[7]=d,a[8]=u,a[9]=i):i=a[9],a[10]!==s||a[11]!==n||a[12]!==i?(r=(0,v.jsx)(tL.lG,{__unstable_autoFocus:!0,header:n,id:"asset-dialog",onClickOutside:s,onClose:s,width:1,children:i}),a[10]=s,a[11]=n,a[12]=i,a[13]=r):r=a[13],r}function bx(e,t){return t._id.startsWith("drafts.")?e.concat(t._id.slice(7)):e}
286let bb={"image/bmp":{title:"Bitmap Image"},"image/jpeg":{title:"JPEG Image"},"image/gif":{title:"GIF Image"},"image/vnd.microsoft.icon":{title:"Icon"},"image/png":{title:"PNG Image"},"image/svg+xml":{title:"SVG Image"},"image/webp":{title:"WebP Image"},"image/tiff":{title:"TIFF Image"},"image/heic":{title:"HEIC Image"},"audio/midi":{title:"MIDI Audio"},"audio/midi-x":{title:"MIDI Audio"},"audio/mpeg":{title:"MP3 Audio"},"audio/ogg":{title:"OGG Audio"},"audio/wav":{title:"WAV Audio"},"audio/webm":{title:"WebM Audio"},"audio/aac":{title:"AAC Audio"},"video/x-msvideo":{title:"AVI Video"},"video/mp4":{title:"MP4 Video"},"video/mpeg":{title:"MPEG Video"},"video/ogg":{title:"OGG Video"},"video/webm":{title:"WebM Video"},"video/quicktime":{title:"QuickTime Video"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{title:"Excel Spreadsheet"},"application/vnd.ms-excel":{title:"Excel Spreadsheet"},"text/plain":{title:"Text"},"text/javascript":{title:"JavaScript"},"text/markdown":{title:"Markdown"},"text/csv":{title:"CSV"},"text/css":{title:"CSS"},"application/pdf":{title:"PDF Document"},"application/xml":{title:"XML Document"},"text/xml":{title:"XML Document"},"application/zip":{title:"ZIP Archive"},"application/vnd.rar":{title:"RAR Archive"},"application/x-7z-compressed":{title:"7-zip Archive"},"application/octet-stream":{title:"Binary"}},bv=eI.I4.span.withConfig({displayName:"CardIconWrapper",componentId:"sc-xkzbm8-0"})`background-color:transparent;flex-shrink:0;`,bj=(0,eI.I4)(I.so).withConfig({displayName:"CustomFlex",componentId:"sc-xkzbm8-1"})``,bw=(0,eI.I4)(I.Zp).withConfig({displayName:"CustomCard",componentId:"sc-xkzbm8-2"})`${e=>e.isSelected&&(0,eI.AH)` 287 --card-muted-fg-color: var(--card-bg-color); 288 --card-fg-color: var(--card-bg-color); 289 `}`,b_=(0,eI.I4)(I.$n).withConfig({displayName:"RowButton",componentId:"sc-xkzbm8-3"})`box-shadow:none;min-width:0;cursor:pointer;position:initial;&:before,&:after{content:'';position:absolute;left:0;top:0;width:100%;height:100%;z-index:2;}&:before{z-index:0;pointer-events:none;border-radius:inherit;}${e=>e.isSelected&&(0,eI.AH)` 290 --card-muted-fg-color: var(--card-bg-color); 291 --card-fg-color: var(--card-bg-color); 292 293 &:before { 294 background-color: var(--card-focus-ring-color); 295 } 296 297 ${bv} { 298 --card-muted-fg-color: var(--card-bg-color); 299 } 300 301 ${bj} { 302 --card-muted-fg-color: var(--card-bg-color); 303 --card-fg-color: var(--card-bg-color); 304 } 305 `} ${e=>!e.isSelected&&(0,eI.AH)` 306 &:hover:before { 307 background-color: var(--card-bg-color); 308 } 309 310 &:focus:before { 311 background-color: var(--card-code-bg-color); 312 } 313 314 &:focus-within:before { 315 background-color: var(--card-bg-color); 316 } 317 `}`,bk=(0,eI.I4)(I.EY).withConfig({displayName:"TypeText",componentId:"sc-xkzbm8-4"})`overflow-wrap:anywhere;`,bS={position:"relative"},bI={flexShrink:0},bT={minWidth:0},bE={zIndex:3,marginTop:"-0.5rem",marginBottom:"-0.5rem"},b$=e=>{var t;let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$,A,D,z,P,R=(0,j.c)(105),N=el0(ob),O=(0,T.dj)(),V=(0,_.useRef)(void 0),[M,L]=(0,_.useState)(!1),[F,B]=(0,_.useState)(!1),[Y,H]=(0,_.useState)(!1),[U,Z]=(0,_.useState)(!1),{asset:q,onClick:W,onKeyPress:J,onDeleteFinished:K,isSelected:G,isMobile:X}=e,{originalFilename:Q,_id:ee,mimeType:et,size:en,_createdAt:ei}=q;R[0]===Symbol.for("react.memo_cache_sentinel")?(i={useTemporalPhrase:!0},R[0]=i):i=R[0];let er=um(ei,i);R[1]!==et?(t=et,r=bb?.[t]?bb[t].title:(n=t.replace("x-","").split("/")[1]).charAt(0).toUpperCase()+n.slice(1),R[1]=et,R[2]=r):r=R[2];let ea=r;R[3]===Symbol.for("react.memo_cache_sentinel")?(a={unitDisplay:"short",maximumFractionDigits:2},R[3]=a):a=R[3];let eo=Hg(a);R[4]!==eo||R[5]!==en?(o=pT(en,eo),R[4]=eo,R[5]=en,R[6]=o):o=R[6];let el=o,es=(Q||"").length>37,{t:ed}=as();R[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{B(!0)},R[7]=l):l=R[7];let ec=l;R[8]!==ed||R[9]!==O?(s=e=>{O.push({closable:!0,status:"error",title:ed("asset-source.file.asset-list.delete-failed"),description:e.message})},R[8]=ed,R[9]=O,R[10]=s):s=R[10];let eu=s;R[11]!==ed||R[12]!==O?(d=()=>{O.push({status:"success",title:ed("asset-source.file.asset-list.delete-successful")})},R[11]=ed,R[12]=O,R[13]=d):d=R[13];let ep=d;R[14]!==q._id||R[15]!==eu||R[16]!==ep||R[17]!==K||R[18]!==N.observable?(c=()=>{H(!0),V.current=N.observable.delete(q._id).subscribe({next:()=>
317{H(!1),K?.(q._id),B(!1),ep()},error:e=>{H(!1),eu(e),console.error("Could not delete asset",e)}})},R[14]=q._id,R[15]=eu,R[16]=ep,R[17]=K,R[18]=N.observable,R[19]=c):c=R[19];let em=c;R[20]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{L(!1),B(!1)},R[20]=u):u=R[20];let eh=u;R[21]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{L(!0)},R[21]=p):p=R[21];let ef=p;R[22]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{Z(bA)},R[22]=m):m=R[22];let eg=m;R[23]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{"delete"===e.type&&ec(),"showUsage"===e.type&&ef()},R[23]=h):h=R[23];let ey=h;R[24]!==q||R[25]!==M?(f=M&&(0,v.jsx)(bC,{assetType:"file",asset:q,onClose:eh}),R[24]=q,R[25]=M,R[26]=f):f=R[26];let eC=f;R[27]!==q||R[28]!==em||R[29]!==Y||R[30]!==F?(g=F&&(0,v.jsx)(bh,{assetType:"file",asset:q,onClose:eh,onDelete:em,isDeleting:Y}),R[27]=q,R[28]=em,R[29]=Y,R[30]=F,R[31]=g):g=R[31];let ex=g;if(X){let e,t,n,i,r,a,o,l,s=Y?.5:1;R[32]!==s?(e={position:"relative",gridTemplateColumns:"1fr 30px",opacity:s},R[32]=s,R[33]=e):e=R[33],R[34]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.Zp,{as:bv,padding:2,tone:"transparent",radius:2,children:(0,v.jsx)(I.EY,{muted:!0,size:2,style:bI,children:(0,v.jsx)(eT.pyG,{})})}),R[34]=t):t=R[34],R[35]!==Q?(n=(0,v.jsxs)(I.so,{gap:2,flex:2,align:"center",children:[t,(0,v.jsx)(I.EY,{size:1,align:"left",textOverflow:"ellipsis",style:bT,children:Q})]}),R[35]=Q,R[36]=n):n=R[36],R[37]!==ee||R[38]!==q||R[39]!==W||R[40]!==n?(i=(0,v.jsx)(b_,{asset:q,mode:"bleed",padding:0,"data-id":ee,onClick:W,paddingY:1,radius:2,children:n}),R[37]=ee,R[38]=q,R[39]=W,R[40]=n,R[41]=i):i=R[41];let d=U?eT.Mtm:eT.D3D;R[42]!==d?(r=(0,v.jsx)(I.so,{justify:"flex-end",align:"center",paddingRight:1,style:bE,children:(0,v.jsx)(I.$n,{mode:"bleed",fontSize:1,padding:2,onClick:eg,icon:d})}),R[42]=d,R[43]=r):r=R[43],R[44]!==e||R[45]!==i||R[46]!==r?(a=(0,v.jsxs)(I.xA,{columns:4,gap:1,style:e,children:[i,r]}),R[44]=e,R[45]=i,R[46]=r,R[47]=a):a=R[47],R[48]!==ea||R[49]!==el||R[50]!==er||R[51]!==U||R[52]!==G||R[53]!==ed?(o=U&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(I.xA,{marginTop:3,columns:3,gap:1,children:[(0,v.jsxs)(I.BJ,{space:2,children:[(0,v.jsx)(I.EY,{size:1,muted:!0,weight:"medium",children:ed("asset-source.file.asset-list.header.size")}),(0,v.jsx)(I.EY,{size:1,muted:!0,children:el})]}),(0,v.jsxs)(I.BJ,{space:2,children:[(0,v.jsx)(I.EY,{size:1,muted:!0,weight:"medium",children:ed("asset-source.file.asset-list.header.type")}),(0,v.jsx)(I.EY,{size:1,muted:!0,children:ea})]}),(0,v.jsxs)(I.BJ,{space:2,children:[(0,v.jsx)(I.EY,{size:1,muted:!0,weight:"medium",children:ed("asset-source.file.asset-list.header.date-added")}),(0,v.jsx)(I.EY,{size:1,muted:!0,children:er})]})]}),(0,v.jsxs)(I.BJ,{space:2,marginTop:3,children:[(0,v.jsx)(I.$n,{fontSize:1,tone:"default",mode:"ghost",text:ed("asset-source.file.asset-list.action.show-usage.title"),onClick:ef,icon:eT.qYV}),(0,v.jsx)(I.$n,{fontSize:1,tone:"critical",mode:"ghost",text:ed("asset-source.file.asset-list.action.delete.title"),icon:eT.ucK,disabled:G,title:ed(G?"asset-source.file.asset-list.action.delete.disabled-cannot-delete-current-file":"asset-source.file.asset-list.action.delete.title"),onClick:ec})]})]}),R[48]=ea,R[49]=el,R[50]=er,R[51]=U,R[52]=G,R[53]=ed,R[54]=o):o=R[54];let c=eC||ex;return R[55]!==a||R[56]!==o||R[57]!==c?(l=(0,v.jsxs)(I.Zp,{paddingBottom:2,style:bS,children:[a,o,c]}),R[55]=a,R[56]=o,R[57]=c,R[58]=l):l=R[58],l}let eb=Y?.5:1;R[59]!==eb?(y={position:"relative",gridTemplateColumns:"3fr 1fr 1fr 2fr 30px",opacity:eb},R[59]=eb,R[60]=y):y=R[60],R[61]!==Q||R[62]!==ed?(C=ed("asset-source.file.asset-list.item.select-file-tooltip",{filename:Q}),R[61]=Q,R[62]=ed,R[63]=C):C=R[63],R[64]===Symbol.for("react.memo_cache_sentinel")?(x=(0,v.jsx)(I.Zp,{as:bv,padding:2,tone:"transparent",radius:2,style:bI,children:(0,v.jsx)(I.EY,{muted:!0,size:2,children:(0,v.jsx)(eT.pyG,{})})}),R[64]=x):x=R[64],R[65]!==Q||R[66]!==es?(b=es&&(0,v.jsx)(tL.m_,{content:Q,children:(0,v.jsx)(I.EY,{size:1,align:"left",textOverflow:"ellipsis",style:bT,children:Q})}),R[65]=Q,R[66]=es,R[67]=b):b=R[67],R[68]!==Q||R[69]!==es?(w=!es&&
317(0,v.jsx)(I.EY,{size:1,align:"left",textOverflow:"ellipsis",style:bT,children:Q}),R[68]=Q,R[69]=es,R[70]=w):w=R[70],R[71]!==ee||R[72]!==W||R[73]!==J||R[74]!==b||R[75]!==w?(k=(0,v.jsxs)(bj,{gap:2,flex:2,paddingRight:1,align:"center",onClick:W,onKeyPress:J,"data-id":ee,children:[x,b,w]}),R[71]=ee,R[72]=W,R[73]=J,R[74]=b,R[75]=w,R[76]=k):k=R[76],R[77]!==ee||R[78]!==q||R[79]!==G||R[80]!==W||R[81]!==J||R[82]!==C||R[83]!==k?(S=(0,v.jsx)(b_,{asset:q,mode:"bleed","data-id":ee,onClick:W,padding:0,onKeyPress:J,title:C,isSelected:G,radius:2,children:k}),R[77]=ee,R[78]=q,R[79]=G,R[80]=W,R[81]=J,R[82]=C,R[83]=k,R[84]=S):S=R[84],R[85]!==el?(E=(0,v.jsx)(bj,{align:"center",children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:el})}),R[85]=el,R[86]=E):E=R[86],R[87]!==ea?($=(0,v.jsx)(bj,{align:"center",children:(0,v.jsx)(I.az,{children:(0,v.jsx)(bk,{size:1,muted:!0,textOverflow:"ellipsis",children:ea})})}),R[87]=ea,R[88]=$):$=R[88],R[89]!==ei||R[90]!==er?(A=(0,v.jsx)(bj,{align:"center",children:(0,v.jsx)(I.EY,{as:"time",size:1,muted:!0,dateTime:ei,children:er})}),R[89]=ei,R[90]=er,R[91]=A):A=R[91],R[92]===Symbol.for("react.memo_cache_sentinel")?(D=(0,v.jsx)(bj,{justify:"flex-end",align:"center",paddingX:1,paddingY:1,style:bE,children:(0,v.jsx)(by,{border:!1,isSelected:!1,onAction:ey})}),R[92]=D):D=R[92],R[93]!==ee||R[94]!==y||R[95]!==S||R[96]!==E||R[97]!==$||R[98]!==A?(z=(0,v.jsxs)(I.xA,{columns:4,gap:1,"data-id":ee,paddingY:1,style:y,children:[S,E,$,A,D]}),R[93]=ee,R[94]=y,R[95]=S,R[96]=E,R[97]=$,R[98]=A,R[99]=z):z=R[99];let ev=eC||ex;return R[100]!==q||R[101]!==G||R[102]!==z||R[103]!==ev?(P=(0,v.jsxs)(bw,{asset:q,paddingBottom:1,style:bS,radius:0,overflow:"hidden",isSelected:G,"aria-selected":"true",children:[z,ev]}),R[100]=q,R[101]=G,R[102]=z,R[103]=ev,R[104]=P):P=R[104],P};function bA(e){return!e}let bD={paddingLeft:"2.2rem"},bz={gridTemplateColumns:"3fr 1fr 1fr 2fr 30px"};function bP(e){let t,n,i,r,a,o=(0,j.c)(25),l=2>(0,I.aY)(),{assets:s,onClick:d,onKeyPress:c,onDeleteFinished:u,selectedAssets:p,isLoading:m}=e,{t:h}=as();if(o[0]!==l||o[1]!==h?(t=(0,v.jsx)(I.Zp,{borderBottom:!0,paddingBottom:2,marginBottom:1,children:l?(0,v.jsx)(I.xA,{style:bz,children:(0,v.jsx)(I.az,{flex:2,paddingLeft:5,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:h("asset-source.file.asset-list.header.filename")})})}):(0,v.jsxs)(I.xA,{gap:1,style:bz,children:[(0,v.jsx)(I.az,{flex:2,style:bD,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:h("asset-source.file.asset-list.header.filename")})}),(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:h("asset-source.file.asset-list.header.size")})}),(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:h("asset-source.file.asset-list.header.type")})}),(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:h("asset-source.file.asset-list.header.date-added")})})]})}),o[0]=l,o[1]=h,o[2]=t):t=o[2],o[3]!==s.length||o[4]!==m?(n=m&&0===s.length&&(0,v.jsx)(I.az,{paddingTop:4,paddingBottom:2,children:(0,v.jsx)(I.so,{justify:"center",children:(0,v.jsx)(I.y$,{muted:!0})})}),o[3]=s.length,o[4]=m,o[5]=n):n=o[5],o[6]!==s||o[7]!==l||o[8]!==d||o[9]!==u||o[10]!==c||o[11]!==p){let e;o[13]!==l||o[14]!==d||o[15]!==u||o[16]!==c||o[17]!==p?(e=e=>(0,v.jsx)(b$,{asset:e,isMobile:l,isSelected:p.some(t=>t._id===e._id),onClick:d,onKeyPress:c,onDeleteFinished:u},e._id),o[13]=l,o[14]=d,o[15]=u,o[16]=c,o[17]=p,o[18]=e):e=o[18],i=s.map(e),o[6]=s,o[7]=l,o[8]=d,o[9]=u,o[10]=c,o[11]=p,o[12]=i}else i=o[12];return o[19]!==n||o[20]!==i?(r=(0,v.jsxs)(I.BJ,{children:[n,i]}),o[19]=n,o[20]=i,o[21]=r):r=o[21],o[22]!==t||o[23]!==r?(a=(0,v.jsxs)(I.az,{children:[t,r]}),o[22]=t,o[23]=r,o[24]=a):a=o[24],a}let bR=typeof window>"u"||!window.devicePixelRatio?1:Math.round(window.devicePixelRatio),bN=eI.I4.img.withConfig({displayName:"Image",componentId:"sc-a5hopr-0"})`position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;display:block;object-fit:contain;`,bO=(0,eI.I4)(I.Zp).withConfig({displayName:"Container",componentId:"sc-a5hopr-1"})`position:relative;z-index:1;padding-bottom:100%;`,bV=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-a5hopr-2"})`position:relative;display:inherit;`,bM=eI.I4.div.withConfig({displayName:"MenuContainer",componentId:"sc-a5hopr-3"})`box-sizing:border-box;position:absolute;z-index:2;top:3px;right:3px;& button[data-selected]{display:block;}@media (hover:hover){& button{opacity:0;}${bV}:hover &{button{opacity:1;}}${bV}:focus-within &{button{opacity:1;}}}`,bL=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(50),w=el0(ob),k=(0,T.dj)(),S=(0,_.useRef)(void 0),{asset:E,onClick:$,onKeyPress:A,onDeleteFinished:D,isSelected:z}=e,[P,R]=(0,_.useState)(!1),[N,O]=(0,_.useState)(!1),[V,M]=(0,_.useState)(!1),{t:L}=as();b[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>()=>{S.current&&S.current.unsubscribe()},n=[],b[0]=t,b[1]=n):(t=b[0],n=b[1]),(0,_.useEffect)(t,n),b[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{O(!0)},b[2]=i):i=b[2];let F=i;b[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{R(!1),O(!1)},b[3]=r):r=b[3];let B=r;b[4]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{R(!0)},b[4]=a):a=b[4];let Y=a;b[5]!==L||b[6]!==k?(o=e=>{k.push({closable:!0,status:"error",title:L("asset-source.image.asset-list.delete-failed"),description:e.message})},b[5]=L,b[6]=k,b[7]=o):o=b[7];let H=o;b[8]!==L||b[9]!==k?(l=()=>{k.push({status:"success",title:L("asset-source.image.asset-list.delete-successful")})},b[8]=L,b[9]=k,b[10]=l):l=b[10];let U=l;b[11]!==E._id||b[12]!==H||b[13]!==U||b[14]!==D||b[15]!==w.observable?(s=()=>{M(!0),S.current=w.observable.delete(E._id).subscribe({next:()=>{M(!1),D(E._id),O(!1),U()},error:e=>{M(!1),H(e),console.error("Could not delete asset",e)}})},b[11]=E._id,b[12]=H,b[13]=U,b[14]=D,b[15]=w.observable,b[16]=s):s=b[16];let Z=s;b[17]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{"delete"===e.type&&F(),"showUsage"===e.type&&Y()},b[17]=d):d=b[17];let q=d;b[18]!==E||b[19]!==P?(c=P&&(0,v.jsx)(bC,{assetType:"file",asset:E,onClose:B}),b[18]=E,b[19]=P,b[20]=c):c=b[20];let W=c;b[21]!==E||b[22]!==Z||b[23]!==V||b[24]!==N?(u=N&&(0,v.jsx)(bh,{assetType:"file",asset:E,onClose:B,onDelete:Z,isDeleting:V}),b[21]=E,b[22]=Z,b[23]=V,b[24]=N,b[25]=u):u=b[25];let J=u,{originalFilename:K,_id:G,url:X}=E,Q=200*Math.max(1,bR);b[26]!==X?(p=X.includes(".gif")?`${X}?h=${Q}&fit=max&fm=jpg`:`${X}?h=${Q}&fit=max`,b[26]=X,b[27]=p):p=b[27];let ee=p;b[28]===Symbol.for("react.memo_cache_sentinel")?(m={padding:2},b[28]=m):m=b[28],b[29]!==G||b[30]!==ee||b[31]!==$||b[32]!==K?(h=(0,v.jsx)(bN,{alt:K,src:ee,onClick:$,"data-id":G}),b[29]=G,b[30]=ee,b[31]=$,b[32]=K,b[33]=h):h=b[33],b[34]!==V?(f=V&&(0,v.jsx)(ry,{}),b[34]=V,b[35]=f):f=b[35],b[36]!==h||b[37]!==f?(g=(0,v.jsxs)(bO,{__unstable_checkered:!0,children:[h,f]}),b[36]=h,b[37]=f,b[38]=g):g=b[38],b[39]!==G||b[40]!==z||b[41]!==A||b[42]!==g?(y=(0,v.jsx)(I.$n,{selected:z,tabIndex:0,"data-id":G,mode:"ghost",onKeyPress:A,padding:0,style:m,children:g}),b[39]=G,b[40]=z,b[41]=A,b[42]=g,b[43]=y):y=b[43],b[44]!==z?(C=(0,v.jsx)(bM,{children:(0,v.jsx)(by,{isSelected:z,onAction:q})}),b[44]=z,b[45]=C):C=b[45];let et=W||J;
317return b[46]!==y||b[47]!==C||b[48]!==et?(x=(0,v.jsxs)(bV,{children:[y,C,et]}),b[46]=y,b[47]=C,b[48]=et,b[49]=x):x=b[49],x}),bF=(0,eI.I4)(I.xA).withConfig({displayName:"ThumbGrid",componentId:"sc-1k9wkkc-0"})`grid-template-columns:repeat(auto-fill,minmax(120px,1fr));`;function bB(e){let t,n,i,r,a,o=(0,j.c)(23),{isLoading:l,assets:s,selectedAssets:d,onItemClick:c,onItemKeyPress:u,onDeleteFinished:p}=e;if(o[0]!==s||o[1]!==p||o[2]!==c||o[3]!==u||o[4]!==d){let e;o[6]!==p||o[7]!==c||o[8]!==u||o[9]!==d?(e=e=>(0,v.jsx)(bL,{asset:e,isSelected:d.some(t=>t._id===e._id),onClick:c,onKeyPress:u,onDeleteFinished:p},e._id),o[6]=p,o[7]=c,o[8]=u,o[9]=d,o[10]=e):e=o[10],t=s.map(e),o[0]=s,o[1]=p,o[2]=c,o[3]=u,o[4]=d,o[5]=t}else t=o[5];return o[11]!==t?(n=(0,v.jsx)(bF,{gap:2,children:t}),o[11]=t,o[12]=n):n=o[12],o[13]!==s.length||o[14]!==l?(i=l&&0===s.length&&(0,v.jsx)(I.so,{justify:"center",children:(0,v.jsx)(I.y$,{muted:!0})}),o[13]=s.length,o[14]=l,o[15]=i):i=o[15],o[16]!==s.length||o[17]!==l?(r=!l&&0===s.length&&(0,v.jsx)(I.EY,{align:"center",muted:!0}),o[16]=s.length,o[17]=l,o[18]=r):r=o[18],o[19]!==n||o[20]!==i||o[21]!==r?(a=(0,v.jsxs)(I.az,{padding:4,children:[n,i,r]}),o[19]=n,o[20]=i,o[21]=r,o[22]=a):a=o[22],a}let bY=200,bH="sanity.imageAsset",bU=(0,eI.I4)(I.Zp).withConfig({displayName:"CardLoadMore",componentId:"sc-12pv0ix-0"})`border-top:1px solid var(--card-border-color);position:sticky;bottom:0;z-index:200;`,bZ=(0,_.memo)((0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(68),T=el0(ob);S[0]!==T?(n=T.withConfig({apiVersion:"2023-02-14"}),S[0]=T,S[1]=n):n=S[1];let E=n,[$]=(0,_.useState)(bq),A=(0,_.useRef)(0),{t:D}=as(),z=(0,_.useRef)(void 0);S[2]===Symbol.for("react.memo_cache_sentinel")?(i=[],S[2]=i):i=S[2];let[P,R]=(0,_.useState)(i),[N,O]=(0,_.useState)(!1),[V,M]=(0,_.useState)(!1),[L,F]=(0,_.useState)(!0),{selectedAssets:B,assetType:Y,dialogHeaderTitle:H,onClose:U,onSelect:Z,accept:q}=e,W=void 0===Y?"image":Y,J=q&&"image/*"===q&&"image"===W;S[3]!==q||S[4]!==W||S[5]!==E?(r=e=>{let t=e*bY,n="image"===W;F(!0),"u">typeof q&&(z.current=E.observable.fetch(((e=0,t=bY,n=bH,i)=>{let r,a,o=i.length>0?(r=["image/*","audio/*","video/*"],a=i.split(",").map(e=>e.trim()).reduce((e,t)=>r.includes(t)?{...e,wildcards:`mimeType match '${t}' || ${e.wildcards}`}:0===t.indexOf(".")?{...e,extensions:`'${t.replace(".","")}', ${e.extensions}`}:{...e,mimes:`'${t}', ${e.mimes}`},{mimes:"",extensions:"",wildcards:""}),`&& 318 ( 319 ${a.wildcards} 320 extension in [${a.extensions}] || 321 mimeType in [${a.mimes}] 322 )`):"";return` 323 *[_type == "${n}" ${o}] | order(_updatedAt desc) [${e}...${t}] { 324 _id, 325 _updatedAt, 326 _createdAt, 327 url, 328 originalFilename, 329 mimeType, 330 extension, 331 size, 332 metadata {dimensions} 333 } 334`})(t,t+bY,n?bH:"sanity.fileAsset",q),{},{tag:n?"asset.image-list":"asset.file-list"}).subscribe(e=>{O(e.length<bY),R(t=>t.concat(e)),F(!1)}))},S[3]=q,S[4]=W,S[5]=E,S[6]=r):r=S[6];let K=r;S[7]===Symbol.for("react.memo_cache_sentinel")?(a=e=>{R(t=>t.filter(t=>t._id!==e))},S[7]=a):a=S[7];let G=a;S[8]!==P||S[9]!==Z?(o=e=>{P.find(t=>t._id===e)&&Z([{kind:"assetDocumentId",value:e}])},S[8]=P,S[9]=Z,S[10]=o):o=S[10];let X=o;S[11]!==X?(l=e=>{e.preventDefault();let t=e.currentTarget.getAttribute("data-id");if(!t)throw Error("Missing data-id attribute on item");X(t)},S[11]=X,S[12]=l):l=S[12];let Q=l;S[13]!==X?(s=e=>{if("Enter"===e.key){e.preventDefault();let t=e.currentTarget.getAttribute("data-id");if(!t)throw Error("Missing data-id attribute on item");X(t)}},S[13]=X,S[14]=s):s=S[14];let ee=s;S[15]!==U?(d=()=>{U&&U()},S[15]=U,S[16]=d):d=S[16];let et=d;S[17]!==K?(c=e=>{e.preventDefault(),K(A.current=A.current+1)},S[17]=K,S[18]=c):c=S[18];let en=c;S[19]!==K?(u=()=>(K(A.current),()=>{z.current&&z.current.unsubscribe()}),p=[K],S[19]=K,S[20]=u,S[21]=p):(u=S[20],p=S[21]),(0,_.useEffect)(u,p),S[22]!==L?(m=()=>{L||A.current&&0!==A.current||M(!0)},h=[L],S[22]=L,S[23]=m,S[24]=h):(m=S[23],h=S[24]),(0,_.useEffect)(m,h),S[25]===Symbol.for("react.memo_cache_sentinel")?(f={style:"narrow"},S[25]=f):f=S[25];let ei=ax(f);return S[26]!==W||S[27]!==H||S[28]!==D?(g=H||D("asset-source.dialog.default-title",{context:"sanity.video"===W?"video":W}),S[26]=W,S[27]=H,S[28]=D,S[29]=g):g=S[29],S[30]!==q||S[31]!==J||S[32]!==L||S[33]!==ei||S[34]!==D?(y=!J&&!L&&q?.length>0&&(0,v.jsx)(I.Zp,{tone:"primary",padding:3,border:!0,radius:2,children:(0,v.jsxs)(I.so,{gap:3,align:"center",children:[(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.YzR,{})}),(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{t:D,i18nKey:"asset-source.dialog.accept-message",values:{acceptTypes:ei.format(q.split(",").map(bW))}})})]})}),S[30]=q,S[31]=J,S[32]=L,S[33]=ei,S[34]=D,S[35]=y):y=S[35],S[36]!==W||S[37]!==P||S[38]!==Q||S[39]!==ee||S[40]!==L||S[41]!==B?(C="file"===W&&(0,v.jsx)(bP,{assets:P,onDeleteFinished:G,onClick:Q,onKeyPress:ee,isLoading:L,selectedAssets:B}),S[36]=W,S[37]=P,S[38]=Q,S[39]=ee,S[40]=L,S[41]=B,S[42]=C):C=S[42],S[43]!==W||S[44]!==P||S[45]!==Q||S[46]!==ee||S[47]!==L||S[48]!==B?(x="image"===W&&(0,v.jsx)(bB,{assets:P,onDeleteFinished:G,onItemClick:Q,onItemKeyPress:ee,isLoading:L,selectedAssets:B}
334),S[43]=W,S[44]=P,S[45]=Q,S[46]=ee,S[47]=L,S[48]=B,S[49]=x):x=S[49],S[50]!==P.length||S[51]!==en||S[52]!==N||S[53]!==L||S[54]!==D?(b=P.length>0&&!N&&(0,v.jsx)(bU,{tone:"default",padding:4,children:(0,v.jsx)(I.so,{direction:"column",children:(0,v.jsx)(tL.$n,{type:"button",icon:eT.s3U,loading:L,onClick:en,size:"large",text:D("asset-source.dialog.load-more"),tone:"primary"})})}),S[50]=P.length,S[51]=en,S[52]=N,S[53]=L,S[54]=D,S[55]=b):b=S[55],S[56]!==y||S[57]!==C||S[58]!==x||S[59]!==b?(w=(0,v.jsxs)(I.BJ,{space:5,children:[y,C,x,b]}),S[56]=y,S[57]=C,S[58]=x,S[59]=b,S[60]=w):w=S[60],S[61]!==$||S[62]!==et||S[63]!==V||S[64]!==t||S[65]!==g||S[66]!==w?(k=(0,v.jsx)(tL.lG,{__unstable_autoFocus:V,header:g,id:$,onClickOutside:et,onClose:et,ref:t,width:2,children:w}),S[61]=$,S[62]=et,S[63]=V,S[64]=t,S[65]=g,S[66]=w,S[67]=k):k=S[67],k}));function bq(){return`default-asset-source-${(0,ed.A)()}`}function bW(e){return e.trim()}let bJ=(0,_.memo)((0,_.forwardRef)(function(e,t){let n=(0,j.c)(3),{action:i}=e;if((void 0===i?"select":i)==="select"){let i;return n[0]!==e||n[1]!==t?(i=(0,v.jsx)(bZ,{...e,ref:t}),n[0]=e,n[1]=t,n[2]=i):i=n[2],i}return null}));class bK{files=[];subscribers=new Set;subscriptions=new Map;constructor(e){this.client=e.client}checkAllComplete(){this.files.length>0&&this.files.every(e=>["complete","error","aborted"].includes(e.status))&&(this.emit({type:"all-complete",files:this.files}),this.reset())}emit(e){this.subscribers.forEach(t=>t(e))}upload(e,t){let{schemaType:n,onChange:i}=t||{};for(let t of e){if(!n)throw Error("No schema type provided for file upload");if(!i)throw Error("No onChange provided for file upload");let e=CU(n,t),r={metadata:(0,V.A)(n,"options.metadata"),storeOriginalFilename:(0,V.A)(n,"options.storeOriginalFilename")},a=(0,ii.A)(),o={id:a,file:t,progress:0,status:"pending"};this.files.push(o),e&&this.subscriptions.set(a,e.upload(this.client,t,n,r).subscribe({next:e=>{let{patches:t}=e;this.updateFile(o.id,{status:"uploading"}),t&&i(t)},error:e=>{let t;t=e instanceof Error?e:Error("Unknown error"),this.updateFile(o.id,{status:"error",error:t}),this.emit({type:"error",files:this.files.filter(e=>"error"===e.status)}),this.subscriptions.get(a)?.unsubscribe()},complete:()=>{this.updateFile(o.id,{status:"complete"}),this.subscriptions.get(a)?.unsubscribe()}}))}return this.files}abort(e){if(e){let t=this.files.find(t=>t.id===e.id);t&&["pending","uploading"].includes(t.status)&&this.updateFile(t.id,{status:"aborted"})}else for(let e of this.files)["pending","uploading"].includes(e.status)&&this.updateFile(e.id,{status:"aborted"});this.emit({type:"abort",files:this.files.filter(e=>"aborted"===e.status)}),this.checkAllComplete()}updateFile(e,t){let n=this.files.find(t=>t.id===e);n&&(t.error&&(n.error=t.error),t.progress&&t.progress!==n.progress&&(n.progress=t.progress,this.emit({type:"progress",file:n,progress:100*n.progress})),t.status&&t.status!==n.status&&(n.status=t.status,this.emit({type:"status",file:n,status:n.status}))),this.checkAllComplete()}subscribe(e){for(let t of(this.subscribers.add(e),this.files))e({type:"status",file:t,status:t.status}),e({type:"progress",file:t,progress:t.progress});return this.checkAllComplete(),()=>{this.subscribers.delete(e)}}getFiles(){return this.files}reset(){this.files=[]}}function bG(e){return class extends bK{constructor(){super(e)}}}let bX="sanity-default";function bQ(e){return{name:bX,title:e.title,component:bJ,icon:eT.xfq,Uploader:bG(e)}}function b1(e){return{name:bX,title:e.title,component:bJ,icon:eT.So9,Uploader:bG(e)}}function b2(e){let t=e.filter(e=>!!e.Uploader);return t.length>0?t:e}function b5(e,t,n){let i=t.__internal.image.directUploads,r=t.__internal.file.directUploads;return fY("image",e)?i?n&&!C$(n,e.options?.accept||"image/*")?[]:b2(t.__internal.image.assetSources):[]:fY("file",e)&&r?n&&!C$(n,e.options?.accept||"")?[]:b2(t.__internal.file.assetSources):[]}let b0=(0,eI.I4)(I.az).withConfig({displayName:"Sticky",componentId:"sc-17q41jp-0"})`position:sticky;top:0;bottom:0;margin:auto;`;function b7(e){let t,n,i=(0,j.c)(6),{hoveringFiles:r,types:a}=e,o=hE();i[0]!==o||i[1]!==a?(t=e=>a.some(t=>b5(t,o,e).length>0),i[0]=o,i[1]=a,i[2]=t):t=i[2];let l=r.filter(t),s=r.length-l.length,d=a.length>1,{t:c}=as(),u=l.length>0?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(I.cV,{space:2,children:[(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.JMY,{})}
334),d?c("inputs.files.common.drop-message.drop-to-upload-multi",{count:l.length}):c("inputs.files.common.drop-message.drop-to-upload"),(0,v.jsx)(I.EY,{})]}),s>0&&(0,v.jsx)(I.az,{marginTop:4,children:(0,v.jsxs)(I.cV,{space:2,children:[(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(eT.VY$,{})}),(0,v.jsx)(I.EY,{muted:!0,size:1,children:c("inputs.files.common.drop-message.drop-to-upload.rejected-file-message",{count:s})})]})})]}):(0,v.jsxs)(I.cV,{space:2,children:[(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.VY$,{})}),(0,v.jsx)(I.EY,{children:c("inputs.files.common.drop-message.drop-to-upload.no-accepted-file-message",{count:r.length})})]});return i[3]!==b0||i[4]!==u?(n=(0,v.jsx)(b0,{paddingBottom:3,paddingTop:3,children:u}),i[3]=b0,i[4]=u,i[5]=n):n=i[5],n}function b3(e){return null===e?[]:[e]}function b8(e){return Promise.all(e.map(e=>{if("file"===e.kind&&e.webkitGetAsEntry){let t;try{t=e.webkitGetAsEntry()}catch{return b3(e.getAsFile())}return t?t.isDirectory?function e(t){if(t.isFile)return new Promise((e,n)=>t.file(e,n)).then(e=>[e]);if(t.isDirectory){let n=t.createReader();return new Promise((e,t)=>n.readEntries(e,t)).then(e=>e.filter(e=>!e.name.startsWith("."))).then(t=>Promise.all(t.map(e)).then(M.A))}return Promise.resolve([])}(t):b3(e.getAsFile()):[]}if("file"===e.kind){let t=e.getAsFile();return Promise.resolve(t?[t]:[])}return"string"===e.kind?console.warn('DataTransfer with kind="string" is currently not supported'):console.warn("Unknown DataTransferItem.kind: %s",e.kind),Promise.resolve([])}))}function b4(e){let t=e.type.replace(/^web /,"");return"application/portable-text"===t||"application/x-portable-text"===t}let b6={"data-is-file-target":"true"},b9={opacity:0,position:"absolute"};function ve(e){return(0,_.forwardRef)(function(t,n){let i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,I,T=(0,j.c)(49);T[0]!==t?({onFiles:r,onFilesOver:o,onFilesOut:a,pasteTarget:l,disabled:i,...s}=t,T[0]=t,T[1]=i,T[2]=r,T[3]=a,T[4]=o,T[5]=l,T[6]=s):(i=T[1],r=T[2],a=T[3],o=T[4],l=T[5],s=T[6]);let[E,$]=(0,_.useState)(!1),A=(0,_.useRef)(null),D=(0,_.useRef)(null);T[7]===Symbol.for("react.memo_cache_sentinel")?(d=()=>D.current,T[7]=d):d=T[7],(0,_.useImperativeHandle)(n,d),T[8]===Symbol.for("react.memo_cache_sentinel")?(c=[],T[8]=c):c=T[8];let z=(0,_.useRef)(c);T[9]!==r?(u=e=>{r?.(e)},T[9]=r,T[10]=u):u=T[10];let P=u;T[11]!==l?(p=e=>{!l&&e.target===D.current&&(e.ctrlKey||e.metaKey)&&"v"===e.key&&$(!0)},T[11]=l,T[12]=p):p=T[12];let R=p;T[13]!==P||T[14]!==l?(m=e=>{var t;((t=e.clipboardData).files&&t.files.length>0?Promise.resolve(Array.from(t.files||[])):b8(Array.from(t.items||[])).then(M.A)).then(e=>l?e:A.current?e.length>0?e:function(e,t="image/jpeg"){return e.isContentEditable?new Promise(e=>setTimeout(e,10)).then(()=>Array.from(e.querySelectorAll("img"))).then(t=>(e.innerHTML="",t)).then(e=>Promise.all(e.map(e=>(function(e,t="image/jpeg",n=1){return e.match(/^webkit-fake-url:\/\//)?Promise.reject(Error("Cannot read image contents from webkit fake url")):new Promise((i,r)=>{let a=new Image;a.crossOrigin="anonymous",a.referrerPolicy="strict-origin-when-cross-origin",a.onload=()=>{let e=document.createElement("canvas");e.width=a.width,e.height=a.height,e.getContext("2d")?.drawImage(a,0,0,e.width,e.height);try{e.toBlob(i,t,n)}catch(e){r(e)}},a.src=e})})(e.src)))).then(e=>e.map(e=>new File([e],"pasted-image.jpg",{type:t}))):Promise.reject(Error(`Expected element to be contentEditable="true". Instead found a non contenteditable ${e.tagName}`))}(A.current,"image/jpeg"):[]).then(e=>{P(e),l||($(!1),D.current?.focus())})},T[13]=P,T[14]=l,T[15]=m):m=T[15];let N=m;T[16]!==N||T[17]!==l?(h=()=>{if(l){let e=e=>{if(e.clipboardData?.types.some(vt))return;let t=!!e.clipboardData?.getData("text/html"),n=!!e.clipboardData?.getData("text/plain");t&&n?console.warn("Clipboard contains both text and HTML, ignoring additional file data on the clipboard."):N(e)};return l.addEventListener("paste",e),()=>{l.removeEventListener("paste",e)}}},f=[l,N],T[16]=N,T[17]=l,T[18]=h,T[19]=f):(h=T[18],f=T[19]),(0,_.useEffect)(h,f),T[20]!==P||T[21]!==r||T[22]!==a?(g=e=>{let t,n;if(z.current=[],Array.from(e.dataTransfer.items).map(vn).some(vi))return;e.preventDefault(),e.stopPropagation();let i=e.nativeEvent.dataTransfer;r&&i&&(t=Array.from(i.files||[]),n=Array.from(i.items||[]),t&&t.length>0?Promise.resolve(t):b8(n).then(M.A)).then(e=>{e&&P(e)}),a?.()},T[20]=P,T[21]=r,T[22]=a,T[23]=g):g=T[23];let O=g;T[24]!==r?(y=e=>{r&&(Array.from(e.dataTransfer.items).map(vr).some(va)||(e.preventDefault(),e.stopPropagation()))},T[24]=r,T[25]=y):y=T[25];let V=y;
334T[26]!==o?(C=e=>{let t=Array.from(e.dataTransfer.items).map(vo);t.some(vl)||(e.stopPropagation(),o&&D.current===e.currentTarget&&(z.current=[...new Set(z.current),e.currentTarget],o(t)))},T[26]=o,T[27]=C):C=T[27];let L=C;T[28]!==a?(x=e=>{if(Array.from(e.dataTransfer.items).map(vs).some(vd))return;e.stopPropagation();let t=z.current.indexOf(e.currentTarget);t>-1&&z.current.splice(t,1),0===z.current.length&&a?.()},T[28]=a,T[29]=x):x=T[29];let F=x,B=(0,_.useRef)(!1);T[30]!==E?(b=()=>{var e;let t,n;!B.current&&E&&A.current?(A.current.focus(),e=A.current,(t=document.createRange()).selectNodeContents(e),n=window.getSelection(),n?.removeAllRanges(),n?.addRange(t)):B.current&&!E&&A.current?.focus(),B.current=E},T[30]=E,T[31]=b):b=T[31],T[32]!==l||T[33]!==E?(w=[l,E],T[32]=l,T[33]=E,T[34]=w):w=T[34],(0,_.useEffect)(b,w);let Y=s,H=i?void 0:R,U=i?void 0:V,Z=i?void 0:L,q=i?void 0:F,W=i?void 0:O;return T[35]!==Y||T[36]!==H||T[37]!==U||T[38]!==Z||T[39]!==q||T[40]!==W?(k=(0,v.jsx)(e,{...Y,ref:D,onKeyDown:H,onDragOver:U,onDragEnter:Z,onDragLeave:q,onDrop:W,"data-test-id":"file-target",...b6}),T[35]=Y,T[36]=H,T[37]=U,T[38]=Z,T[39]=q,T[40]=W,T[41]=k):k=T[41],T[42]!==i||T[43]!==N||T[44]!==E?(S=!i&&E&&(0,v.jsx)("div",{contentEditable:!0,onPaste:N,ref:A,style:b9}),T[42]=i,T[43]=N,T[44]=E,T[45]=S):S=T[45],T[46]!==k||T[47]!==S?(I=(0,v.jsxs)(v.Fragment,{children:[k,S]}),T[46]=k,T[47]=S,T[48]=I):I=T[48],I})}function vt(e){let t=e.replace(/^web /,"");return"application/portable-text"===t||"application/x-portable-text"===t}function vn(e){return{type:e.type,kind:e.kind}}function vi(e){return b4(e)}function vr(e){return{type:e.type,kind:e.kind}}function va(e){return b4(e)}function vo(e){return{type:e.type,kind:e.kind}}function vl(e){return b4(e)}function vs(e){return{type:e.type,kind:e.kind}}function vd(e){return b4(e)}function vc(e){let t,n,i,r,a,o,l,s=(0,j.c)(21),{assetSources:d,onSelectAssetSource:c,text:u,onClose:p}=e,{t:m}=as(),h=d.filter(vu);s[0]!==d||s[1]!==c?(t=e=>{let t=e.currentTarget.getAttribute("data-asset-source-name"),n=d.find(e=>e.name===t);n&&c&&c(n)},s[0]=d,s[1]=c,s[2]=t):t=s[2];let f=t;if(s[3]!==p?(n=e=>{"Escape"===e.key&&p&&p()},s[3]=p,s[4]=n):n=s[4],(0,I.Pm)(n),0===h.length)return null;let g=tL.lG;s[5]!==u?(i=(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:u}),s[5]=u,s[6]=i):i=s[6];let y=I.az,C=I.BJ;s[7]!==f||s[8]!==m?(r=e=>{let t=e.icon;return(0,v.jsx)(tL.$n,{"data-asset-source-name":e.name,"data-testid":`upload-destination-${e.name}`,mode:"bleed",onClick:f,size:"large",tone:"default",tooltipProps:null,children:(0,v.jsxs)(I.so,{align:"center",children:[(0,tU.isValidElementType)(t)&&(0,v.jsx)(t,{style:{fontSize:"2rem"}}),(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{children:e.i18nKey?m(e.i18nKey):e.title})})]})},e.name)},s[7]=f,s[8]=m,s[9]=r):r=s[9];let x=h.map(r);return s[10]!==C||s[11]!==x?(a=(0,v.jsx)(C,{space:2,children:x}),s[10]=C,s[11]=x,s[12]=a):a=s[12],s[13]!==y||s[14]!==a?(o=(0,v.jsx)(y,{padding:2,children:a}),s[13]=y,s[14]=a,s[15]=o):o=s[15],s[16]!==g||s[17]!==p||s[18]!==o||s[19]!==i?(l=(0,v.jsx)(g,{onClickOutside:p,onClose:p,id:"upload-destination-picker",header:i,width:1,bodyHeight:"stretch",children:o}),s[16]=g,s[17]=p,s[18]=o,s[19]=i,s[20]=l):l=s[20],l}function vu(e){return!!e.Uploader}let vp=(0,eI.I4)(I.Wd).withConfig({displayName:"Overlay",componentId:"sc-gjp33r-0"})`position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;top:-2px;left:-2px;right:-2px;bottom:-2px;background-color:var(--card-bg-color);opacity:0.8;`,vm=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-tyjytc-0"})`position:relative;`;function vh(e,t){return void 0===e?null:e.Uploader?e:t}function vf(e,t,n,i){if(void 0!==e)return b5(e,t,n).find(e=>null===i||e.name===i)}function vg(e){let{files:t,types:n,assetSourceDestinationName:i,formBuilder:r,defaultImageAssetSource:a,defaultFileAssetSource:o}=e,l=n.find(e=>r3(e,"image")),s=n.find(e=>r3(e,"file"));return t.map(e=>{let t=vh(vf(l,r,e,i),a);if(l&&e.type.startsWith("image/")&&t)return{file:e,schemaType:l,assetSource:t};let n=vh(vf(s,r,e,i),o);
334return s&&n?{file:e,schemaType:s,assetSource:n}:{file:e,schemaType:null,assetSource:null}})}function vy(e){return r3(e,"image")||r3(e,"file")}function vC(e){return e.options?.disableNew===!0}function vx(e,t){return(0,v.jsxs)(I.so,{gap:2,padding:2,children:[(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{weight:"medium",children:e.file.name})}),(0,v.jsx)(I.az,{children:(0,v.jsxs)(I.EY,{size:1,children:["(",e.file.type,")"]})})]},t)}function vb(e){return null!==e.assetSource}function vv(e){return null===e.assetSource}function vj(e){return null!==e.assetSource}function vw(e){return e.file}let v_=g3((c=ve((0,eI.I4)(I.Zp).withConfig({displayName:"StyledCard",componentId:"sc-1vye6ga-0"})`height:100%;`),(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,u,p,m,h,f,g,y,C,x,b,w,k,S,I,E,$,A,D,z=(0,j.c)(83);z[0]!==e?({children:n,isReadOnly:i,onSelectFile:r,onSetHoveringFiles:a,types:d,tone:s,pasteTarget:o,...l}=e,z[0]=e,z[1]=n,z[2]=i,z[3]=r,z[4]=a,z[5]=o,z[6]=l,z[7]=s,z[8]=d):(n=z[1],i=z[2],r=z[3],a=z[4],o=z[5],l=z[6],s=z[7],d=z[8]);let{push:P}=(0,T.dj)(),{t:R}=as(),N=el0(ob),O=_g(),V=hE();if(z[9]!==d){let e=d.filter(vy);u=e.length>0&&e.every(vC),z[9]=d,z[10]=u}else u=z[10];let M=u,F=O.title||O.name;z[11]!==N||z[12]!==F?(p=bQ({client:N,title:F}),z[11]=N,z[12]=F,z[13]=p):p=z[13];let B=p,Y=O.title||O.name;z[14]!==N||z[15]!==Y?(m=b1({client:N,title:Y}),z[14]=N,z[15]=Y,z[16]=m):m=z[16];let H=m;z[17]===Symbol.for("react.memo_cache_sentinel")?(h=[],z[17]=h):h=z[17];let[U,Z]=(0,_.useState)(h),[q,W]=(0,_.useState)(!1),[J,K]=(0,_.useState)(s||(i?"transparent":"default")),G=(0,_.useRef)(null);z[18]!==P||z[19]!==R?(f=e=>{P({closable:!0,status:"warning",title:R("inputs.array.error.cannot-upload-unable-to-convert",{count:e.length}),description:e.map(vx)})},z[18]=P,z[19]=R,z[20]=f):f=z[20];let X=f;z[21]!==X||z[22]!==H||z[23]!==B||z[24]!==V||z[25]!==r||z[26]!==d?(g=e=>{let t=vg({files:e,types:d,assetSourceDestinationName:G.current,formBuilder:V,defaultImageAssetSource:B,defaultFileAssetSource:H}),n=t.filter(vb),i=t.filter(vv);i.length>0&&X(i),r&&n.forEach(e=>{r({assetSource:e.assetSource,schemaType:e.schemaType,file:e.file})})},z[21]=X,z[22]=H,z[23]=B,z[24]=V,z[25]=r,z[26]=d,z[27]=g):g=z[27];let Q=g;z[28]!==X||z[29]!==H||z[30]!==B||z[31]!==M||z[32]!==V||z[33]!==Q||z[34]!==i||z[35]!==d?(y=e=>{if(i||M||0===d.length)return;let t=vg({files:e,types:d,assetSourceDestinationName:G.current,formBuilder:V,defaultImageAssetSource:B,defaultFileAssetSource:H}),n=t.filter(vj);if(0===n.length){t.length>0&&X(t);return}let r=d.flatMap(e=>b5?.(e,V)??[]);if((0,L.A)(r,"name").length>1&&null===G.current){W(!0),Z(e);return}W(!1),Z([]),Q(n.map(vw))},z[28]=X,z[29]=H,z[30]=B,z[31]=M,z[32]=V,z[33]=Q,z[34]=i,z[35]=d,z[36]=y):y=z[36];let ee=y;z[37]===Symbol.for("react.memo_cache_sentinel")?(C=[],z[37]=C):C=z[37];let[et,en]=(0,_.useState)(C);z[38]!==M||z[39]!==V||z[40]!==i||z[41]!==a||z[42]!==d?(x=e=>{if(i||M)return;en(e);let t=e.filter(e=>d.some(t=>b5(t,V,e).length>0));e.length-t.length>0?K("critical"):t.length>0?K("primary"):K("default"),a&&a(e)},z[38]=M,z[39]=V,z[40]=i,z[41]=a,z[42]=d,z[43]=x):x=z[43];let ei=x;z[44]!==M||z[45]!==i||z[46]!==a?(b=()=>{i||M||(en([]),K("default"),a&&a([]),Z([]))},z[44]=M,z[45]=i,z[46]=a,z[47]=b):b=z[47];let er=b;if(z[48]!==V||z[49]!==d){let e;z[51]!==V?(e=e=>b5?.(e,V)??[],z[51]=V,z[52]=e):e=z[52];let t=d.flatMap(e);w=(0,L.A)(t,"name"),z[48]=V,z[49]=d,z[50]=w}else w=z[50];let ea=w;z[53]!==U||z[54]!==Q?(k=e=>{G.current=e?.name??null,U.length>0&&e&&Q(U),Z([]),W(!1),G.current=null},z[53]=U,z[54]=Q,z[55]=k):k=z[55];let eo=k;z[56]!==ei?(S=()=>{ei([]),Z([]),W(!1),G.current=null},z[56]=ei,z[57]=S):S=z[57];let el=S,es=d.length>1?"array":d[0].name;z[58]!==R||z[59]!==es?(I=R("inputs.files.common.placeholder.select-asset-source-upload-destination",{context:es}),z[58]=R,z[59]=es,z[60]=I):I=z[60];let ed=I;z[61]!==ea||z[62]!==eo||z[63]!==el||z[64]!==q||z[65]!==ed?(E=q&&(0,v.jsx)(vc,{assetSources:ea,onSelectAssetSource:eo,onClose:el,text:ed}),z[61]=ea,z[62]=eo,z[63]=el,z[64]=q,z[65]=ed,z[66]=E):E=z[66];let ec=s||J;return z[67]!==et||z[68]!==d?($=et.length>0&&(0,v.jsx)(vp,{zOffset:10,children:(0,v.jsx)(b7,{hoveringFiles:et,types:d})}),z[67]=et,z[68]=d,z[69]=$):$=z[69],z[70]!==n||z[71]!==t||z[72]!==ee||z[73]!==er||z[74]!==ei||z[75]!==o||z[76]!==l||z[77]!==ec||z[78]!==$?(A=(0,v.jsxs)(c,{...l,tone:ec,ref:t,onFiles:ee,onFilesOver:ei,onFilesOut:er,pasteTarget:o,children:[$,n]}),z[70]=n,z[71]=t,z[72]=ee,z[73]=er,z[74]=ei,z[75]=o,z[76]=l,z[77]=ec,z[78]=$,z[79]=A):A=z[79],z[80]!==E||z[81]!==A?(D=(0,v.jsxs)(vm,{children:[E,A]}),z[80]=E,z[81]=A,z[82]=D):D=z[82],D}
334))),vk="moving",vS=(0,eI.I4)(I.az).withConfig({displayName:"ListItem",componentId:"sc-fbh2lc-0"})`${e=>e.$moving&&(0,eI.AH)` 335 z-index: 10000; 336 /* prevents hover-effects etc on the dragged element */ 337 pointer-events: none; 338 `}`,vI={threshold:{x:0,y:.02}},vT={coordinateGetter:nK.JR},vE={duration:200,easing:"ease"},v$=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(29);g[0]!==e?({items:i,axis:t,onItemMove:r,onItemMoveStart:o,onItemMoveEnd:a,children:n,...l}=e,g[0]=e,g[1]=t,g[2]=n,g[3]=i,g[4]=r,g[5]=a,g[6]=o,g[7]=l):(t=g[1],n=g[2],i=g[3],r=g[4],a=g[5],o=g[6],l=g[7]);let y=(0,nW.FR)((0,nW.MS)(nW.AN),(0,nW.MS)(nW.uN,vT));g[8]!==r||g[9]!==a?(s=e=>{let{active:t,over:n}=e;t.id!==n?.id&&r?.({fromIndex:t.data.current?.sortable?.index,toIndex:n?.data.current?.sortable?.index}),a?.()},g[8]=r,g[9]=a,g[10]=s):s=g[10];let C=s;g[11]===Symbol.for("react.memo_cache_sentinel")?(f={y:4},d=({containerNodeRect:e,draggingNodeRect:t,transform:n})=>{let i,r,a;return t&&e?(i={...n},r=f.y,a=f.x||0,t.top+i.y<=e.top+r?i.y=e.top-t.top+r:t.bottom+i.y>=e.top+e.height-r&&(i.y=e.top+e.height-t.bottom-r),t.left+i.x<=e.left-a?i.x=e.left-t.left+a:t.right+i.x>=e.left+e.width+a&&(i.x=e.left+e.width-t.right+a),i):n},g[11]=d):d=g[11],g[12]!==t?(c=[d,...t?["x"===t?nJ.dU:nJ.FN]:[]],g[12]=t,g[13]=c):c=g[13];let x=c;return g[14]!==t?(u=t?"x"===t?nK.m$:nK._G:void 0,g[14]=t,g[15]=u):u=g[15],g[16]!==n||g[17]!==l?(p=(0,v.jsx)(I.xA,{...l,children:n}),g[16]=n,g[17]=l,g[18]=p):p=g[18],g[19]!==i||g[20]!==u||g[21]!==p?(m=(0,v.jsx)(nK.gB,{items:i,strategy:u,children:p}),g[19]=i,g[20]=u,g[21]=p,g[22]=m):m=g[22],g[23]!==C||g[24]!==x||g[25]!==o||g[26]!==y||g[27]!==m?(h=(0,v.jsx)(nW.Mp,{sensors:y,autoScroll:vI,modifiers:x,collisionDetection:nW.fp,onDragEnd:C,onDragStart:o,children:m}),g[23]=C,g[24]=x,g[25]=o,g[26]=y,g[27]=m,g[28]=h):h=g[28],h}),vA=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l=(0,j.c)(19),{id:s,children:d,disableTransition:c}=e,u=c?null:vE;l[0]!==s||l[1]!==u?(n={id:s,transition:u},l[0]=s,l[1]=u,l[2]=n):n=l[2];let{setNodeRef:p,transform:m,transition:h,active:f}=(0,nK.gl)(n),g=s===f?.id;l[3]!==m?(i=nG.Ks.Translate.toString(m),l[3]=m,l[4]=i):i=l[4];let y=f?"none":void 0;l[5]!==i||l[6]!==y||l[7]!==h?(r={transform:i,transition:h,pointerEvents:y},l[5]=i,l[6]=y,l[7]=h,l[8]=r):r=l[8];let C=r;l[9]!==t||l[10]!==p?(a=e=>{p(e),"function"==typeof t?t(e):t&&(t.current=e)},l[9]=t,l[10]=p,l[11]=a):a=l[11];let x=a,b=g?vk:"",w=e["data-index"];return l[12]!==d||l[13]!==g||l[14]!==x||l[15]!==C||l[16]!==b||l[17]!==w?(o=(0,v.jsx)(vS,{ref:x,style:C,$moving:g,className:b,"data-index":w,children:d}),l[12]=d,l[13]=g,l[14]=x,l[15]=C,l[16]=b,l[17]=w,l[18]=o):o=l[18],o});function vD(e){let t,n,i,r,a,o,l,s=(0,j.c)(14);s[0]!==e?({onItemMove:t,onItemMoveEnd:n,onItemMoveStart:i,sortable:a,...r}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=i,s[4]=r,s[5]=a):(t=s[1],n=s[2],i=s[3],r=s[4],a=s[5]),s[6]!==t?(o=e=>{t?.(e)},s[6]=t,s[7]=o):o=s[7];let d=o;return s[8]!==d||s[9]!==n||s[10]!==i||s[11]!==r||s[12]!==a?(l=a?(0,v.jsx)(v$,{onItemMove:d,onItemMoveStart:i,onItemMoveEnd:n,...r}):(0,v.jsx)(I.xA,{...r}),s[8]=d,s[9]=n,s[10]=i,s[11]=r,s[12]=a,s[13]=l):l=s[13],l}let vz=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l=(0,j.c)(12);return l[0]!==e?({sortable:r,disableTransition:n,...i}=e,l[0]=e,l[1]=n,l[2]=i,l[3]=r):(n=l[1],i=l[2],r=l[3]),l[4]!==n||l[5]!==t||l[6]!==i||l[7]!==r?(a=r?(0,v.jsx)(vA,{ref:t,disableTransition:n,...i}):(0,v.jsx)(vS,{ref:t,...i}),l[4]=n,l[5]=t,l[6]=i,l[7]=r,l[8]=a):a=l[8],l[9]!==e.id||l[10]!==a?(o=(0,v.jsx)(S.KH.Provider,{value:e.id,children:a}),l[9]=e.id,l[10]=a,l[11]=o):o=l[11],o});function vP(e,t){return"toggle"===t.type?{open:!e.open}:{open:!1}}function vR(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(22);u[0]===Symbol.for("react.memo_cache_sentinel")?(t={open:!1},u[0]=t):t=u[0];let[p,m]=(0,_.useReducer)(vP,t),h=(0,_.useRef)(null),f=e.popoverProps.referenceElement??null;u[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>m({type:"close"}),u[1]=n):n=u[1],u[2]!==f?(i=()=>[h.current,f],u[2]=f,u[3]=i):i=u[3],(0,I.PR)(n,i),u[4]!==f||u[5]!==p.open?(r=e=>{"Escape"===e.key&&p.open&&(m({type:"close"}),f?.focus())},u[4]=f,u[5]=p.open,u[6]=r):r=u[6],(0,I.Pm)(r),u[7]!==e.insertMenuProps?({onSelect:o,...a}=e.insertMenuProps,u[7]=e.insertMenuProps,u[8]=a,u[9]=o):(a=u[8],o=u[9]),u[10]!==o?(l=e=>{o(e),m({type:"close"})},u[10]=o,u[11]=l):l=u[11];let g=l;u[12]!==g||u[13]!==a?(s=(0,v.jsx)(vN,{...a,onSelect:g}),u[12]=g,u[13]=a,u[14]=s):s=u[14],u[15]!==e.popoverProps||u[16]!==p.open||u[17]!==s?(d=(0,v.jsx)(tL.AM,{ref:h,open:p.open,constrainSize:!0,overflow:"hidden",portal:!0,content:s,...e.popoverProps}),u[15]=e.popoverProps,u[16]=p.open,u[17]=s,u[18]=d):d=u[18];let y=d;return u[19]!==y||u[20]!==p?(c={popover:y,state:p,send:m},u[19]=y,u[20]=p,u[21]=c):c=u[21],c}function vN(e){let t,n,i,r,a,o,l,s=(0,j.c)(19),{t:d}=as();return s[0]!==d?(t=d("inputs.array.insert-menu.filter.all-items"),s[0]=d,s[1]=t):t=s[1],s[2]!==d?(n=d("inputs.array.insert-menu.search.no-results"),s[2]=d,s[3]=n):n=s[3],s[4]!==d?(i=d("inputs.array.insert-menu.search.placeholder"),s[4]=d,s[5]=i):i=s[5],s[6]!==d?(r=d("inputs.array.insert-menu.toggle-grid-view.tooltip"),s[6]=d,s[7]=r):r=s[7],s[8]!==d?(a=d("inputs.array.insert-menu.toggle-list-view.tooltip"),s[8]=d,s[9]=a):a=s[9],s[10]!==t||s[11]!==n||s[12]!==i||s[13]!==r||s[14]!==a?(o={"insert-menu.filter.all-items":t,"insert-menu.search.no-results":n,"insert-menu.search.placeholder":i,"insert-menu.toggle-grid-view.tooltip":r,"insert-menu.toggle-list-view.tooltip":a},s[10]=t,s[11]=n,s[12]=i,s[13]=r,s[14]=a,s[15]=o):o=s[15],s[16]!==e||s[17]!==o?(l=(0,v.jsx)(iU.Z,{...e,labels:o}),s[16]=e,s[17]=o,s[18]=l):l=s[18],l}function vO(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(44),{schemaType:h,readOnly:f,children:g,onValueCreate:y,onItemAppend:C,path:x}=e,{t:b}=as(),[w,k]=(0,_.useState)(null),[S,T]=(0,_.useState)(null),E=(0,tK.Jr)(),{enabled:$}=y3();m[0]!==C||m[1]!==y?(t=e=>{C(y(e))},m[0]=C,m[1]=y,m[2]=t):t=m[2];let A=t;m[3]!==$||m[4]!==A||m[5]!==x||m[6]!==h.of[0]||m[7]!==E?(n=()=>{E.log(yQ,{path:on(x),origin:$?"nested-object":"default"}),A(h.of[0])},m[3]=$,m[4]=A,m[5]=x,m[6]=h.of[0],m[7]=E,m[8]=n):n=m[8];let D=n,z=h.of.length>1?"inputs.array.action.add-item-select-type":"inputs.array.action.add-item";m[9]!==z||m[10]!==b?(i=b(z),m[9]=z,m[10]=b,m[11]=i):i=m[11],m[12]!==i?(r={icon:eT.REV,mode:"ghost",size:"large",text:i},m[12]=i,m[13]=r):r=m[13];let P=r,R=e.schemaType.options?.insertMenu;m[14]!==A||m[15]!==e.schemaType.of||m[16]!==R?(a={...R,schemaTypes:e.schemaType.of,onSelect:A},m[14]=A,m[15]=e.schemaType.of,m[16]=R,m[17]=a):a=m[17],m[18]===Symbol.for("react.memo_cache_sentinel")?(o=["top"],m[18]=o):o=m[18],m[19]!==e.schemaType.options?.insertMenu?.views?(l=e.schemaType.options?.insertMenu?.views?.some(vV),m[19]=e.schemaType.options?.insertMenu?.views,m[20]=l):l=m[20],m[21]!==w||m[22]!==S||m[23]!==l?
338(s={placement:"bottom",fallbackPlacements:o,matchReferenceWidth:l,referenceBoundary:w,referenceElement:S},m[21]=w,m[22]=S,m[23]=l,m[24]=s):s=m[24],m[25]!==a||m[26]!==s?(d={insertMenuProps:a,popoverProps:s},m[25]=a,m[26]=s,m[27]=d):d=m[27];let N=vR(d);if(h.options?.disableActions?.includes("add"))return null;if(f){let e,t,n;return m[28]!==b?(e=b("inputs.array.read-only-label"),m[28]=b,m[29]=e):e=m[29],m[30]!==P?(t=(0,v.jsx)(I.xA,{children:(0,v.jsx)(tL.$n,{...P,"data-testid":"add-read-object-button",disabled:!0})}),m[30]=P,m[31]=t):t=m[31],m[32]!==e||m[33]!==t?(n=(0,v.jsx)(tL.m_,{portal:!0,content:e,children:t}),m[32]=e,m[33]=t,m[34]=n):n=m[34],n}return m[35]===Symbol.for("react.memo_cache_sentinel")?(c={gridTemplateColumns:"repeat(auto-fit, minmax(100px, 1fr))"},m[35]=c):c=m[35],m[36]!==D||m[37]!==P||m[38]!==N||m[39]!==h.of.length?(u=1===h.of.length?(0,v.jsx)(tL.$n,{...P,onClick:D,"data-testid":"add-single-object-button"}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(tL.$n,{...P,"data-testid":"add-multiple-object-button",selected:N.state.open,onClick:()=>{N.send({type:"toggle"})},ref:T}),N.popover]}),m[36]=D,m[37]=P,m[38]=N,m[39]=h.of.length,m[40]=u):u=m[40],m[41]!==g||m[42]!==u?(p=(0,v.jsxs)(I.xA,{ref:k,gap:1,style:c,children:[u,g]}),m[41]=g,m[42]=u,m[43]=p):p=m[43],p}function vV(e){return"grid"===e.name}let vM=(0,eI.I4)(tL.$n).withConfig({displayName:"DragHandleButton",componentId:"sc-klpxfj-0"})(e=>{let{$grid:t,disabled:n}=e;return n?(0,eI.AH)``:(0,eI.AH)` 339 cursor: ${t?"move":"ns-resize"}; 340 `}),vL=function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(20),c=(0,_.useContext)(S.KH);d[0]!==e?({mode:i,readOnly:t,...n}=e,d[0]=e,d[1]=t,d[2]=n,d[3]=i):(t=d[1],n=d[2],i=d[3]);let u=void 0===i?"bleed":i;d[4]!==c||d[5]!==t?(r={id:c,disabled:t},d[4]=c,d[5]=t,d[6]=r):r=d[6];let{listeners:p,attributes:m}=(0,nK.gl)(r),{t:h}=as();d[7]!==h?(a=h("inputs.array.action.drag.tooltip"),d[7]=h,d[8]=a):a=d[8],d[9]===Symbol.for("react.memo_cache_sentinel")?(o={open:1e3},d[9]=o):o=d[9];let f=!!t;return d[10]!==a||d[11]!==f?(l={content:a,delay:o,disabled:f},d[10]=a,d[11]=f,d[12]=l):l=d[12],d[13]!==m||d[14]!==p||d[15]!==u||d[16]!==t||d[17]!==n||d[18]!==l?(s=(0,v.jsx)(vM,{icon:eT.GG1,tooltipProps:l,mode:u,"data-ui":"DragHandleButton",...n,...m,...p,disabled:t}),d[13]=m,d[14]=p,d[15]=u,d[16]=t,d[17]=n,d[18]=l,d[19]=s):s=d[19],s},vF=(0,eI.I4)(I.so).withConfig({displayName:"FooterFlex",componentId:"sc-13lj9s7-0"})`min-height:33px;`,vB=(0,eI.I4)(I.so).withConfig({displayName:"PresenceFlex",componentId:"sc-13lj9s7-1"})`position:absolute;top:0;right:0;height:33px;`,vY=(0,eI.I4)(I.Zp).withConfig({displayName:"DragHandleCard",componentId:"sc-13lj9s7-2"})`position:absolute;top:0;left:0;`,vH=(0,eI.I4)(I.Zp).withConfig({displayName:"Root",componentId:"sc-13lj9s7-3"})`transition:border-color 250ms;box-sizing:border-box;position:relative;@media (hover:hover){${vY}{opacity:0;}&:hover,&:focus-within{${vY}{opacity:1;}}}.${vk} &{box-shadow:0 0 0 0,0 8px 17px 2px var(--card-shadow-umbra-color),0 3px 14px 2px var(--card-shadow-penumbra-color),0 5px 5px -3px var(--card-shadow-ambient-color);}&[aria-selected='true']{box-shadow:0 0 0 2px var(--card-focus-ring-color);}`;function vU(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(32);return y[0]!==e?({validation:c,selected:s,tone:d,presence:a,children:t,dragHandle:n,menu:r,footer:i,readOnly:o,...l}=e,y[0]=e,y[1]=t,y[2]=n,y[3]=i,y[4]=r,y[5]=a,y[6]=o,y[7]=l,y[8]=s,y[9]=d,y[10]=c):(t=y[1],n=y[2],i=y[3],r=y[4],a=y[5],o=y[6],l=y[7],s=y[8],d=y[9],c=y[10]),y[11]!==n||y[12]!==o?(u=n&&(0,v.jsx)(vY,{margin:1,radius:2,display:"flex",tone:"inherit","data-ui":"DragHandleCard",children:(0,v.jsx)(vL,{$grid:!0,mode:"ghost",readOnly:!!o})}),y[11]=n,y[12]=o,y[13]=u):u=y[13],y[14]!==a?(p=a&&(0,v.jsx)(vB,{align:"center",marginX:1,children:a}),y[14]=a,y[15]=p):p=y[15],y[16]!==c?(m=(0,v.jsx)(I.so,{children:c}),y[16]=c,y[17]=m):m=y[17],y[18]!==i?(h=(0,v.jsx)(I.az,{children:i}),y[18]=i,y[19]=h):h=y[19],y[20]!==r||y[21]!==m||y[22]!==h?(f=(0,v.jsxs)(vF,{align:"center",paddingX:1,sizing:"border",justify:"space-between",children:[m,h,r]}),y[20]=r,y[21]=m,y[22]=h,y[23]=f):f=y[23],y[24]!==t||y[25]!==l||y[26]!==s||y[27]!==u||y[28]!==p||y[29]!==f||y[30]!==d?(g=(0,v.jsxs)(vH,{forwardedAs:I.so,direction:"column",border:!0,selected:s,"aria-selected":s,radius:1,tone:d,...l,children:[t,u,p,f]}),y[24]=t,y[25]=l,y[26]=s,y[27]=u,y[28]=p,y[29]=f,y[30]=d,y[31]=g):g=y[31],g}let vZ=(0,eI.I4)(I.Zp).withConfig({displayName:"PopoverCard",componentId:"sc-1d9wtn0-0"})`max-width:${({theme:e})=>e.sanity.container[1]}px;`;function vq(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D=(0,j.c)(55);if(D[0]!==e){let{value:r,onFocus:a,vertical:o,...l}=e;i=r,t=a,n=l,D[0]=e,D[1]=t,D[2]=n,D[3]=i}else t=D[1],n=D[2],i=D[3];let[z,P]=(0,_.useState)(!1),R=(0,_.useRef)(null),{t:N}=as();D[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>P(!1),a=()=>[R.current],D[4]=r,D[5]=a):(r=D[4],a=D[5]),(0,I.PR)(r,a),D[6]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{("Escape"===e.key||"Tab"===e.key)&&P(!1)},D[6]=o):o=D[6];let O=o;D[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{P(vW)},D[7]=l):l=D[7];let V=l;D[8]!==i?(s=(0,nq.yu)(i),D[8]=i,D[9]=s):s=D[9];let M=s;return D[10]!==N?(d=N("inputs.array.error.type-is-incompatible-title"),D[10]=N,D[11]=d):d=D[11],D[12]!==d?(c=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{weight:"medium",children:d})}),D[12]=d,D[13]=c):c=D[13],D[14]!==M?(u={typeName:M},D[14]=M,D[15]=u):u=D[15],D[16]!==N||D[17]!==u?(p=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{t:N,i18nKey:"inputs.array.error.current-schema-not-declare-description",values:u})}),D[16]=N,D[17]=u,D[18]=p):p=D[18],D[19]===Symbol.for("react.memo_cache_sentinel")?(m=(0,v.jsx)(eT.Pnw,{}),D[19]=m):m=D[19],D[20]!==N?(h=N("inputs.array.error.can-delete-but-no-edit-description"),D[20]=N,D[21]=h):h=D[21],D[22]!==h?(f=(0,v.jsx)(I.az,{children:(0,v.jsxs)(I.EY,{size:1,children:[m," ",h]})}),D[22]=h,D[23]=f):f=D[23],D[24]!==N?(g=N("inputs.array.error.json-representation-description"),D[24]=N,D[25]=g):g=D[25],D[26]!==g?(y=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:g}),D[26]=g,D[27]=y):y=D[27],D[28]!==i?(C=JSON.stringify(i,null,2),D[28]=i,D[29]=C):C=D[29],D[30]!==C?(x=(0,v.jsx)(I.Zp,{padding:2,overflow:"auto",border:!0,children:(0,v.jsx)(I.Cy,{size:1,as:"pre",language:"json",children:C})}),D[30]=C,D[31]=x):x=D[31],D[32]!==y||D[33]!==x?(b=(0,v.jsxs)(I.BJ,{space:2,children:[y,x]}),D[32]=y,D[33]=x,D[34]=b):b=D[34],D[35]!==f||D[36]!==b||D[37]!==c||D[38]!==p?(w=(0,v.jsx)(vZ,{margin:1,padding:3,onKeyDown:O,tabIndex:0,overflow:"auto",children:(0,v.jsxs)(I.BJ,{space:4,children:[c,p,f,b]})}),D[35]=f,D[36]=b,D[37]=c,D[38]=p,D[39]=w):w=D[39],D[40]===Symbol.for("react.memo_cache_sentinel")?(k={height:"100%"},D[40]=k):k=D[40],D[41]===Symbol.for("react.memo_cache_sentinel")?(S=(0,v.jsx)(I.az,{margin:1,children:(0,v.jsx)(I.EY,{align:"center",size:4,children:(0,v.jsx)(eT.KSC,{})})}),D[41]=S):S=D[41],D[42]!==M?(T={typeName:M},D[42]=M,D[43]=T):T=D[43],D[44]!==N||D[45]!==T?(E=(0,v.jsxs)(I.BJ,{space:4,marginTop:2,children:[S,(0,v.jsx)(I.EY,{align:"center",size:1,children:(0,v.jsx)(aE,{t:N,i18nKey:"inputs.array.error.type-is-incompatible-prompt",values:T})})]}),D[44]=N,D[45]=T,D[46]=E):E=D[46],D[47]!==t||D[48]!==n||D[49]!==E?($=(0,v.jsx)(I.Zp,{as:"button",type:"button",radius:2,tone:"inherit",paddingX:2,paddingY:3,style:k,onFocus:t,onClick:V,onKeyDown:O,__unstable_focusRing:!0,...n,children:E}),D[47]=t,D[48]=n,D[49]=E,D[50]=$):$=D[50],D[51]!==z||D[52]!==w||D[53]!==$?(A=(0,v.jsx)(tL.AM,{open:z,ref:R,onKeyDown:O,portal:!0,constrainSize:!0,tone:"default",content:w,children:$}),D[51]=z,D[52]=w,D[53]=$,D[54]=A):A=D[54],A}function vW(e){return!e}let vJ={portal:!0,tone:"default"};function vK(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(22),{member:c,sortable:u,readOnly:p}=e,m=(0,_.useId)(),{onChange:h}=fr(),{t:f}=as();d[0]!==c.key||d[1]!==h?(t=()=>{h(gD.from([hW([{_key:c.key}])]))},d[0]=c.key,d[1]=h,d[2]=t):t=d[2];let g=t;
340d[3]===Symbol.for("react.memo_cache_sentinel")?(n={height:"100%"},d[3]=n):n=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(rl,{}),d[4]=i):i=d[4];let y=`${m}-menuButton`;return d[5]!==f?(r=f("inputs.array.action.remove-invalid-item"),d[5]=f,d[6]=r):r=d[6],d[7]!==g||d[8]!==r?(a=(0,v.jsx)(I.W1,{children:(0,v.jsx)(tL.Dr,{text:r,tone:"critical",icon:eT.ucK,onClick:g})}),d[7]=g,d[8]=r,d[9]=a):a=d[9],d[10]!==y||d[11]!==a?(o=(0,v.jsx)(tL.IU,{button:i,id:y,menu:a,popover:vJ}),d[10]=y,d[11]=a,d[12]=o):o=d[12],d[13]!==c.error.type||d[14]!==c.error.value||d[15]!==f?(l="INVALID_ITEM_TYPE"===c.error.type?(0,v.jsx)(vq,{value:c.error.value,vertical:!0}):(0,v.jsx)("div",{children:f("inputs.array.error.unexpected-error",{error:c.error.type})}),d[13]=c.error.type,d[14]=c.error.value,d[15]=f,d[16]=l):l=d[16],d[17]!==p||d[18]!==u||d[19]!==o||d[20]!==l?(s=(0,v.jsx)(vU,{dragHandle:u,readOnly:p,tone:"caution",style:n,menu:o,children:l}),d[17]=p,d[18]=u,d[19]=o,d[20]=l,d[21]=s):s=d[21],s}let vG=e=>"error"===e.severity,vX=n4.Sj.compile({name:"studio",types:nH.jN});sj(vX);let vQ=new nH.UL;function v1(e){return"string"==typeof e.title?e.title:e.type?v1(e.type):e.name||e.jsonType}function v2(e){return e.reduce((e,t)=>t?.children?[...e,t,...v2(t.children)]:[...e,t],[]).map(({children:e,...t})=>t)}function v5(e){return e._system?.delete===!0}let v0={isLoading:!0},v7={isLoading:!1,value:{title:void 0,description:void 0}};function v3(e){let t,n,i=(0,j.c)(10);i[0]!==e?(t=e||{},i[0]=e,i[1]=t):t=i[1];let{enabled:r,ordering:a,schemaType:o,value:l,perspectiveStack:s}=t,{observeForPreview:d}=cc(),{perspectiveStack:c}=a3();e:{let e;if(!(void 0===r||r)||!l||!o){let e;i[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)(v7),i[2]=e):e=i[2],n=e;break e}if(i[3]!==s||i[4]!==d||i[5]!==a||i[6]!==c||i[7]!==l||i[8]!==o){let t=v5(l)?[]:s??c;e=d({_id:v5(l)?(0,tG.IM)(l._id):l._id,...v5(l)?{}:{...l}},o,{perspective:t,viewOptions:{ordering:a}}).pipe((0,eV.T)(v4),(0,eY.W)(v8)),i[3]=s,i[4]=d,i[5]=a,i[6]=c,i[7]=l,i[8]=o,i[9]=e}else e=i[9];n=e}return(0,tF.J)(n,v0)}function v8(e){return(0,eP.of)({isLoading:!1,error:e})}function v4(e){return{isLoading:!1,value:e.snapshot||void 0}}function v6(e){let t,n,i,r=(0,j.c)(9),a=v3(e),{t:o}=as(),l=a?.value;return r[0]!==a?.value?.title||r[1]!==o?(t=a?.value?.title||o("preview.default.title-fallback"),r[0]=a?.value?.title,r[1]=o,r[2]=t):t=r[2],r[3]!==l||r[4]!==t?(n={...l,title:t},r[3]=l,r[4]=t,r[5]=n):n=r[5],r[6]!==a||r[7]!==n?(i={...a,value:n},r[6]=a,r[7]=n,r[8]=i):i=r[8],i}let v9=[],je=(0,eI.I4)(I.cV).withConfig({displayName:"RootInline",componentId:"sc-11exyy5-0"})`flex-wrap:nowrap;overflow:hidden;min-width:0;width:100%;`,jt=(0,eI.I4)(I.$n).withConfig({displayName:"StyledButton",componentId:"sc-11exyy5-1"})(({theme:e})=>{let{bold:t}=(0,nN.JW)(e)?.font.text?.weights||{};return(0,eI.AH)` 341 max-height: 1rem; 342 overflow: hidden; 343 min-width: 2ch; 344 345 &[data-active='true'] { 346 [data-ui='Text']:first-child { 347 font-weight: ${t}; 348 } 349 } 350 `}),jn=(0,eI.I4)(I.EY).withConfig({displayName:"StyledText",componentId:"sc-11exyy5-2"})`overflow:hidden;padding:8px 0;`,ji=function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(29),{item:h,onPathSelect:f,isSelected:g,isLast:y,siblings:C}=e;m[0]!==h.schemaType||m[1]!==h.value?(t={schemaType:h.schemaType,value:h.value},m[0]=h.schemaType,m[1]=h.value,m[2]=t):t=m[2];let{value:x}=v6(t);if(m[3]!==h.path||m[4]!==C){let e=on(h.path.slice(0,-1));n=C.get(e)?.index,m[3]=h.path,m[4]=C,m[5]=n}else n=m[5];let b=n,w=(0,tK.Jr)(),_=x.title;m[6]!==h.path||m[7]!==f||m[8]!==w?(i=()=>{f(h.path),w.log(yK,{path:on(h.path)})},m[6]=h.path,m[7]=f,m[8]=w,m[9]=i):i=m[9];let k=i;m[10]===Symbol.for("react.memo_cache_sentinel")?(r={minWidth:0,width:"100%"},m[10]=r):r=m[10],m[11]===Symbol.for("react.memo_cache_sentinel")?(a={minWidth:0,maxWidth:"250px"},m[11]=a):a=m[11],m[12]!==b?(o=b&&(0,v.jsx)(I.az,{flex:"none",children:(0,v.jsxs)(I.Ex,{children:["#",b]})}),m[12]=b,m[13]=o):o=m[13],m[14]===Symbol.for("react.memo_cache_sentinel")?(l={minWidth:0,overflow:"hidden"},m[14]=l):l=m[14];let S=y?1:void 0,T=!g,E=g?"bold":"medium";return m[15]===Symbol.for("react.memo_cache_sentinel")?(s={whiteSpace:"nowrap"},m[15]=s):s=m[15],m[16]!==T||m[17]!==E||m[18]!==_?(d=(0,v.jsx)(I.EY,{muted:T,size:1,weight:E,textOverflow:"ellipsis",style:s,title:_,children:_}),m[16]=T,m[17]=E,m[18]=_,m[19]=d):d=m[19],m[20]!==d||m[21]!==S?(c=(0,v.jsx)(I.az,{padding:1,style:l,flex:S,children:d}),m[20]=d,m[21]=S,m[22]=c):c=m[22],m[23]!==c||m[24]!==o?(u=(0,v.jsxs)(I.so,{align:"center",style:a,children:[o,c]}),m[23]=c,m[24]=o,m[25]=u):u=m[25],m[26]!==k||m[27]!==u?(p=(0,v.jsx)(I.Zp,{as:"button",padding:1,radius:3,onClick:k,style:r,children:u}),m[26]=k,m[27]=u,m[28]=p):p=m[28],p},jr=(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(5),{children:a}=e;return r[0]!==a?(n=(0,v.jsx)(I.EY,{size:1,muted:!0,children:a}),r[0]=a,r[1]=n):n=r[1],r[2]!==t||r[3]!==n?(i=(0,v.jsx)(I.az,{ref:t,children:n}),r[2]=t,r[3]=n,r[4]=i):i=r[4],i});function ja(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(29),{items:m,onPathSelect:h,selectedPath:f,siblings:g}=e,y=void 0===m?v9:m,[C,x]=(0,_.useState)(null),b=(0,I.cF)(C);e:{let e=b?.border.width;if(!e){t=5;break e}if(e<500){t=3;break e}if(e<700){t=4;break e}t=5}let w=t;t:{let e=y.length+1,t=w-1,i=Math.ceil(t/2),r=Math.floor(t/2);if(w&&e>w){let e;p[0]!==r||p[1]!==i||p[2]!==y?(e=[...y.slice(0,i-1),y.slice(i-1,y.length-r),...y.slice(y.length-r)],p[0]=r,p[1]=i,p[2]=y,p[3]=e):e=p[3],n=e;break t}n=y}let k=n;if(p[4]!==k||p[5]!==h||p[6]!==f||p[7]!==g){let e;p[9]!==k.length||p[10]!==h||p[11]!==f||p[12]!==g?(e=(e,t)=>{let n=`${e}-${t}`,i=t<k.length-1;if(Array.isArray(e))return(0,v.jsxs)(I.cV,{children:[(0,v.jsx)(tL.IU,{id:"breadcrumb-overflow-menu-button",button:(0,v.jsx)(jt,{mode:"bleed",padding:1,children:(0,v.jsx)(I.so,{overflow:"hidden",children:(0,v.jsx)(jn,{size:1,weight:"medium",textOverflow:"ellipsis",children:"..."})})}),popover:{placement:"bottom-start",portal:!0},menu:(0,v.jsx)(I.W1,{children:e.map(e=>(0,v.jsx)(I.az,{padding:1,children:(0,v.jsxs)(I.so,{direction:"row",align:"center",style:{maxWidth:"250px"},children:[(0,v.jsx)(jr,{children:"/"}),(0,v.jsx)(ji,{item:e,onPathSelect:h,isSelected:!1,isLast:!1,siblings:g},e.path.toString())]})},e.path.toString()))})}),i&&(0,v.jsx)(jr,{children:"/"})]},n);let r=(0,D.A)(e.path,f),a=t===k.length-1;return(0,v.jsxs)(I.cV,{flex:a?1:void 0,style:{minWidth:0},children:[(0,v.jsx)(ji,{item:e,isSelected:r,onPathSelect:h,isLast:a,siblings:g}),i&&(0,v.jsx)(jr,{children:"/"})]},n)},p[9]=k.length,p[10]=h,p[11]=f,p[12]=g,p[13]=e):e=p[13],i=k.map(e),p[4]=k,p[5]=h,p[6]=f,p[7]=g,p[8]=i}else i=p[8];let S=i;return p[14]!==h?(r=()=>h(v9),p[14]=h,p[15]=r):r=p[15],p[16]===Symbol.for("react.memo_cache_sentinel")?(a={textTransform:"capitalize",minWidth:0},p[16]=a):a=p[16],p[17]===Symbol.for("react.memo_cache_sentinel")?(o={whiteSpace:"nowrap",maxWidth:"250px"},p[17]=o):o=p[17],p[18]!==f[0]?(l=f[0]?.toString(),p[18]=f[0],p[19]=l):l=p[19],p[20]!==l?(s=(0,v.jsx)(I.so,{flex:1,align:"center",justify:"flex-start",style:a,children:(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",style:o,children:l})}),p[20]=l,p[21]=s):s=p[21],p[22]!==r||p[23]!==s?(d=(0,v.jsx)(I.Zp,{onClick:r,as:"button",paddingRight:1,paddingY:1,radius:3,children:s}),p[22]=r,p[23]=s,p[24]=d):d=p[24],p[25]===Symbol.for("react.memo_cache_sentinel")?(c=(0,v.jsx)(jr,{children:"/"}),p[25]=c):c=p[25],p[26]!==S||p[27]!==d?(u=(0,v.jsxs)(je,{ref:x,children:[d,c,S]}),p[26]=S,p[27]=d,p[28]=u):u=p[28],u}let jo=()=>{},jl=jo(),js=Object,jd=e=>e===jl,jc=(e,t)=>({...e,...t}),ju=new WeakMap,jp=0,jm=e=>{let t,n,i=typeof e,r=e&&e.constructor,a=r==Date;if(js(e)!==e||a||r==RegExp)t=a?e.toJSON():"symbol"==i?e.toString():"string"==i?JSON.stringify(e):""+e;else{if(t=ju.get(e))return t;if(t=++jp+"~",ju.set(e,t),r==Array){for(t="@",n=0;n<e.length;n++)t+=jm(e[n])+",";ju.set(e,t)}if(r==js){t="#";let i=js.keys(e).sort();for(;!jd(n=i.pop());
350)jd(e[n])||(t+=n+":"+jm(e[n])+",");ju.set(e,t)}}return t},jh=new WeakMap,jf={},jg={},jy="undefined",jC=typeof window!=jy,jx=typeof document!=jy,jb=(e,t)=>{let n=jh.get(e);return[()=>!jd(t)&&e.get(t)||jf,i=>{if(!jd(t)){let r=e.get(t);t in jg||(jg[t]=r),n[5](t,jc(r,i),r||jf)}},n[6],()=>!jd(t)&&t in jg?jg[t]:!jd(t)&&e.get(t)||jf]},jv=!0,[jj,jw]=jC&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[jo,jo],j_={initFocus:e=>(jx&&document.addEventListener("visibilitychange",e),jj("focus",e),()=>{jx&&document.removeEventListener("visibilitychange",e),jw("focus",e)}),initReconnect:e=>{let t=()=>{jv=!0,e()},n=()=>{jv=!1};return jj("online",t),jj("offline",n),()=>{jw("online",t),jw("offline",n)}}},jk=!_.useId,jS=!jC||"Deno"in window,jI=jS?_.useEffect:_.useLayoutEffect,jT="u">typeof navigator&&navigator.connection,jE=!jS&&jT&&(["slow-2g","2g"].includes(jT.effectiveType)||jT.saveData),j$=e=>{if("function"==typeof e)try{e=e()}catch{e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?jm(e):"",t]},jA=0,jD=()=>++jA;async function jz(...e){let[t,n,i,r]=e,a=jc({populateCache:!0,throwOnError:!0},"boolean"==typeof r?{revalidate:r}:r||{}),o=a.populateCache,l=a.rollbackOnError,s=a.optimisticData,d=a.throwOnError;if("function"==typeof n){let e=[];for(let i of t.keys())!/^\$(inf|sub)\$/.test(i)&&n(t.get(i)._k)&&e.push(i);return Promise.all(e.map(c))}return c(n);async function c(n){let[r]=j$(n);if(!r)return;let[c,u]=jb(t,r),[p,m,h,f]=jh.get(t),g=()=>{let e=p[r];return("function"==typeof a.revalidate?a.revalidate(c().data,n):!1!==a.revalidate)&&(delete h[r],delete f[r],e&&e[0])?e[0](2).then(()=>c().data):c().data};if(e.length<3)return g();let y=i,C,x=jD();m[r]=[x,0];let b=!jd(s),v=c(),j=v.data,w=v._c,_=jd(w)?j:w;
350if(b&&u({data:s="function"==typeof s?s(_,j):s,_c:_}),"function"==typeof y)try{y=y(_)}catch(e){C=e}if(y&&"function"==typeof y.then)if(y=await y.catch(e=>{C=e}),x!==m[r][0]){if(C)throw C;return y}else{let e;C&&b&&(e=C,"function"==typeof l?l(e):!1!==l)&&(o=!0,u({data:_,_c:jl}))}if(o&&!C&&("function"==typeof o?u({data:o(y,_),error:jl,_c:jl}):u({data:y,error:jl,_c:jl})),m[r][1]=jD(),Promise.resolve(g()).then(()=>{u({_c:jl})}),C){if(d)throw C;return}return y}}let jP=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},[jR,jN]=((e,t)=>{if(!jh.has(e)){let t=jc(j_,void 0),n={},i=jz.bind(jl,e),r=jo,a={},o=(e,t)=>{let n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,i)=>{e.set(t,n);let r=a[t];if(r)for(let e of r)e(n,i)},s=()=>{if(!jh.has(e)&&(jh.set(e,[n,{},{},{},i,l,o]),!jS)){let i=t.initFocus(setTimeout.bind(jl,jP.bind(jl,n,0))),a=t.initReconnect(setTimeout.bind(jl,jP.bind(jl,n,1)));r=()=>{i&&i(),a&&a(),jh.delete(e)}}};return s(),[e,i,s,r]}return[e,jh.get(e)[4]]})(new Map),jO=jc({onLoadingSlow:jo,onSuccess:jo,onError:jo,onErrorRetry:(e,t,n,i,r)=>{let a=n.errorRetryCount,o=r.retryCount,l=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!jd(a)&&o>a||setTimeout(i,l,r)},onDiscarded:jo,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:jE?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:jE?5e3:3e3,compare:(e,t)=>jm(e)==jm(t),isPaused:()=>!1,cache:jR,mutate:jN,fallback:{}},{isOnline:()=>jv,isVisible:()=>{let e=jx&&document.visibilityState;return jd(e)||"hidden"!==e}}),jV=(0,_.createContext)({}),jM=jC&&window.__SWR_DEVTOOLS_USE__,jL=(jM?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,n,i)=>e(t,n&&((...e)=>{let[i]=j$(t),[,,,r]=jh.get(jR);if(i.startsWith("$inf$"))return n(...e);let a=r[i];return jd(a)?n(...e):(delete r[i],a)}),i));jM&&(window.__SWR_DEVTOOLS_REACT__=_);let jF=_.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),jB={dedupe:!0},jY=(u=(e,t,n)=>{let{cache:i,compare:r,suspense:a,fallbackData:o,revalidateOnMount:l,revalidateIfStale:s,refreshInterval:d,refreshWhenHidden:c,refreshWhenOffline:u,keepPreviousData:p}=n,[m,h,f,g]=jh.get(i),[y,C]=j$(e),x=(0,_.useRef)(!1),b=(0,_.useRef)(!1),v=(0,_.useRef)(y),j=(0,_.useRef)(t),w=(0,_.useRef)(n),k=()=>w.current.isVisible()&&w.current.isOnline(),[S,I,T,E]=jb(i,y),$=(0,_.useRef)({}).current,A=jd(o)?n.fallback[y]:o,D=(e,t)=>{for(let n in $)if("data"===n){if(!r(e[n],t[n])&&(!jd(e[n])||!r(F,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},z=(0,_.useMemo)(()=>
350{let e=!!y&&!!t&&(jd(l)?!w.current.isPaused()&&!a&&(!!jd(s)||s):l),n=t=>{let n=jc(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},i=S(),r=E(),o=n(i),d=i===r?o:n(r),c=o;return[()=>{let e=n(S());return D(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>d]},[i,y]),P=(0,nL.useSyncExternalStore)((0,_.useCallback)(e=>T(y,(t,n)=>{D(n,t)||e()}),[i,y]),z[0],z[1]),R=!x.current,N=m[y]&&m[y].length>0,O=P.data,V=jd(O)?A:O,M=P.error,L=(0,_.useRef)(V),F=p?jd(O)?L.current:O:V,B=(!N||!!jd(M))&&(R&&!jd(l)?l:!w.current.isPaused()&&(a?!jd(V)&&s:jd(V)||s)),Y=!!(y&&t&&R&&B),H=jd(P.isValidating)?Y:P.isValidating,U=jd(P.isLoading)?Y:P.isLoading,Z=(0,_.useCallback)(async e=>{let t=j.current;if(!y||!t||b.current||w.current.isPaused())return!1;let i,a,o=!0,l=e||{},s=!f[y]||!l.dedupe,d=()=>jk?!b.current&&y===v.current&&x.current:y===v.current,c={isValidating:!1,isLoading:!1},u=()=>{I(c)},p=()=>{let e=f[y];e&&e[1]===a&&delete f[y]},g={isValidating:!0};jd(S().data)&&(g.isLoading=!0);try{if(s&&(I(g),n.loadingTimeout&&jd(S().data)&&setTimeout(()=>{o&&d()&&w.current.onLoadingSlow(y,n)},n.loadingTimeout),f[y]=[t(C),jD()]),[i,a]=f[y],i=await i,s&&setTimeout(p,n.dedupingInterval),!f[y]||f[y][1]!==a)return s&&d()&&w.current.onDiscarded(y),!1;c.error=jl;let e=h[y];if(!jd(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return u(),s&&d()&&w.current.onDiscarded(y),!1;let l=S().data;c.data=r(l,i)?l:i,s&&d()&&w.current.onSuccess(i,y,n)}catch(n){p();let e=w.current,{shouldRetryOnError:t}=e;e.isPaused()||(c.error=n,s&&d()&&(e.onError(n,y,e),(!0===t||"function"==typeof t&&t(n))&&(!w.current.revalidateOnFocus||!w.current.revalidateOnReconnect||k())&&e.onErrorRetry(n,y,e,e=>{let t=m[y];t&&t[0]&&t[0](3,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return o=!1,u(),!0},[y,i]),q=(0,_.useCallback)((...e)=>jz(i,v.current,...e),[]);if(jI(()=>{j.current=t,w.current=n,jd(O)||(L.current=O)}),jI(()=>{var e;let t;if(!y)return;let n=Z.bind(jl,jB),i=0,r=(e=(e,t={})=>{if(0==e){let e=Date.now();w.current.revalidateOnFocus&&e>i&&k()&&(i=e+w.current.focusThrottleInterval,n())}else if(1==e)w.current.revalidateOnReconnect&&k()&&n();else{if(2==e)return Z();if(3==e)return Z(t)}},(t=m[y]||(m[y]=[])).push(e),()=>{let n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.pop())});return b.current=!1,v.current=y,x.current=!0,I({_k:C}),B&&(jd(V)||jS?n():jC&&typeof window.requestAnimationFrame!=jy?window.requestAnimationFrame(n):setTimeout(n,1)),()=>{b.current=!0,r()}},[y]),jI(()=>{let e;function t(){let t="function"==typeof d?d(S().data):d;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!S().error&&(c||w.current.isVisible())&&(u||w.current.isOnline())?Z(jB).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[d,c,u,y]),(0,_.useDebugValue)(F),a&&jd(V)&&y){if(!jk&&jS)throw Error("Fallback data is required when using suspense in SSR.");j.current=t,w.current=n,b.current=!1;let e=g[y];if(jd(e)||jF(q(e)),jd(M)){let e=Z(jB);jd(F)||(e.status="fulfilled",e.value=!0),jF(e)}else throw M}return{mutate:q,get data(){return $.data=!0,F},get error(){return $.error=!0,M},get isValidating(){return $.isValidating=!0,H},get isLoading(){return $.isLoading=!0,U}}},function(...e){let t=jc(jO,(0,_.useContext)(jV)),[n,i,r]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],a=((e,t)=>{let n=jc(e,t);if(t){let{use:i,fallback:r}=e,{use:a,fallback:o}=t;i&&a&&(n.use=i.concat(a)),r&&o&&(n.fallback=jc(r,o))}return n})(t,r),o=u,{use:l}=a,s=(l||[]).concat(jL);for(let e=s.length;e--;)o=s[e](o);return o(n,i||a.fetcher||null,a)});function jH(e,t){return"object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,t)}function jU(e,t){return`media-library:${e}:${t}`}let jZ=new Map,jq=new nF.A({maxAge:3e5,maxSize:2e3});async function jW(e){let{assetIds:t,client:n,libraryId:i}=e;if(0===t.length)return[];try{let e=await n.fetch("*[_id in $ids]{_id, cdnAccessPolicy}",{ids:t}),r=Object.fromEntries(e.map(e=>[e._id,e.cdnAccessPolicy]));return t.map(e=>{let t=r[e],n=jU(i,e);return jq.set(n,t),t})}
350catch(e){return console.error("Error fetching cdnAccessPolicy batch",{libraryId:i,assetIds:t,error:e}),t.forEach(e=>{let t=jU(i,e);jq.set(t,void 0)}),t.map(()=>{})}}function jJ(e){let t,n,i,r,a=(0,j.c)(5),{client:o,source:l}=e;a[0]!==l?(t=!function(e){if("string"!=typeof e)return!1;let[t,n,i]=e.split(":",3);return"media-library"===t&&!!n&&!!i}(r=jH(l,"media")&&jH(l.media,"_ref")&&"string"==typeof l.media._ref?l?.media?._ref:l)?void 0:r,a[0]=l,a[1]=t):t=a[1];let s=t,d=!!(s&&o.config().token);a[2]!==o?(n=async e=>(function(e,t){let[,n,i]=e.split(":",3);return n&&i&&t?jq.has(e)?Promise.resolve(jq.get(e)??void 0):(function(e,t){let n=jZ.get(t);if(n)return n;let i=function(e,t){let{apiHost:n,projectId:i}=e.config();if(!i)throw Error("Cannot create Media Library client: missing projectId in client config");let r=new URL(n);r.hostname=`${i}.${r.hostname}`;let a=r.toString();return e.withConfig({apiHost:a,resource:{id:t,type:"media-library"}})}(e,t),r=new nR(e=>jW({assetIds:e,client:i,libraryId:t}),{cache:!1});return jZ.set(t,r),r})(t,n).load(i):Promise.resolve(void 0)})(e,o),a[2]=o,a[3]=n):n=a[3];let c=n;a[4]===Symbol.for("react.memo_cache_sentinel")?(i={dedupingInterval:0,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1},a[4]=i):i=a[4];let{data:u,isLoading:p}=jY(d?s:null,c,i);return s?d?p?"checking":u??"unknown":"unknown":"public"}let jK=new Map,jG={error:null,isLoading:!1,objectUrl:void 0},jX={error:null,isLoading:!0,objectUrl:void 0};function jQ(e){e.listeners.forEach(e=>e())}function j1(e){switch(e.status){case"pending":return e.objectUrl?{objectUrl:e.objectUrl,isLoading:!0,error:null}:jX;case"success":return{objectUrl:e.objectUrl,isLoading:!1,error:null};case"error":return{objectUrl:void 0,isLoading:!1,error:e.error};default:return jG}}function j2(e){return e.objectUrl||e.isLoading||e.error?jG:e}function j5(e){let t,n,i=(0,j.c)(10),{accessPolicy:r,imageSource:a,imageUrlBuilder:o,transform:l}=e,s=void 0===r?"public":r,d="checking"===s;e:{let e;if(!a||d){t=void 0;break e}if(l){let e;i[0]!==a||i[1]!==o||i[2]!==l?(e=l(o,a),i[0]=a,i[1]=o,i[2]=l,i[3]=e):e=i[3],t=e;break e}i[4]!==a||i[5]!==o?(e=o.image(a).url(),i[4]=a,i[5]=o,i[6]=e):e=i[6],t=e}let c=t,{objectUrl:u,isLoading:p}=function(e){let t,n,i,r,a=(0,j.c)(10),o=aR();a[0]!==o||a[1]!==e?(t=function(e,t){if(!(!e||!t))return`${t}:${e}`}(e,o),a[0]=o,a[1]=e,a[2]=t):t=a[2];let l=t;a[3]!==l?(n=()=>{if(!l)return jG;let e=jK.get(l);return e?j1(e):jX},a[3]=l,a[4]=n):n=a[4];let[s,d]=(0,_.useState)(n);return a[5]!==l||a[6]!==o||a[7]!==e?(i=()=>{let t,n;if(!l)return void d(j2);let i=jK.get(l);i||(n={abortController:t=new AbortController,blob:null,cleanupTimer:void 0,error:null,listeners:new Set,objectUrl:void 0,status:"pending"},fetch(e,{cache:"force-cache",headers:{Authorization:`Bearer ${o}`},signal:t.signal}).then(e=>{if(e.ok)return e.blob();throw Error(`Failed to fetch image (HTTP ${e.status})`)}).then(e=>{n.blob=e,n.error=null,n.status="success",n.objectUrl=URL.createObjectURL(e),jQ(n)}).catch(e=>{n.blob=null,n.error=e,n.status="error",jQ(n)}),i=n,jK.set(l,i)),i.cleanupTimer&&(clearTimeout(i.cleanupTimer),i.cleanupTimer=void 0);let r=()=>d(j1(i));return r(),i.listeners.add(r),()=>{i.listeners.delete(r),0===i.listeners.size&&(i.cleanupTimer=setTimeout(()=>{i.abortController.abort(),i.objectUrl&&URL.revokeObjectURL(i.objectUrl),jK.delete(l)},2e3))}},r=[l,o,e],a[5]=l,a[6]=o,a[7]=e,a[8]=i,a[9]=r):(i=a[8],r=a[9]),(0,_.useEffect)(i,r),s}("private"===s?c:void 0),m=d||p,h=m?void 0:u??c;return i[7]!==m||i[8]!==h?(n={isLoading:m,url:h},i[7]=m,i[8]=h,i[9]=n):n=i[9],n}let j0={block:function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(34),{actions:h,title:f,subtitle:g,description:y,mediaDimensions:C,media:x,progress:b,status:w,children:_}=e,k=void 0===C?es4:C,S="number"==typeof b&&b>-1;m[0]!==x||m[1]!==k?(t=x&&(0,v.jsx)(esz,{dimensions:k,layout:"block",media:x}),m[0]=x,m[1]=k,m[2]=t):t=m[2];let T=x?2:1;return m[3]!==f?(n=f?esP(f,"block"):"Untitled",m[3]=f,m[4]=n):n=m[4],m[5]!==n?(i=(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:n}),m[5]=n,m[6]=i):i=m[6],m[7]!==g?(r=g&&(0,v.jsx)(I.az,{marginTop:2,children:(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:esP(g,"block")})}),m[7]=g,m[8]=r):r=m[8],m[9]!==y?(a=y&&(0,v.jsx)(I.az,{marginTop:3,children:(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:esP(y,"block")})}),m[9]=y,m[10]=a):a=m[10],m[11]!==S||m[12]!==b?(o=S&&(0,v.jsx)(I.az,{marginTop:3,children:(0,v.jsx)(esL,{value:b})}),m[11]=S,m[12]=b,m[13]=o):o=m[13],m[14]!==T||m[15]!==i||m[16]!==r||m[17]!==a||m[18]!==o?(l=(0,v.jsxs)(I.az,{flex:1,paddingLeft:T,children:[i,r,a,o]}),m[14]=T,m[15]=i,m[16]=r,m[17]=a,m[18]=o,m[19]=l):l=m[19],m[20]!==w?(s=w&&(0,v.jsx)(I.az,{paddingX:2,paddingY:3,children:esP(w,"block")}),m[20]=w,m[21]=s):s=m[21],m[22]!==h||m[23]!==s?(d=(0,v.jsxs)(I.so,{gap:1,paddingLeft:1,children:[s,h]}),m[22]=h,m[23]=s,m[24]=d):d=m[24],m[25]!==t||m[26]!==d||m[27]!==l?(c=(0,v.jsxs)(es6,{"data-testid":"block-preview__header",children:[t,l,d]}),m[25]=t,m[26]=d,m[27]=l,m[28]=c):c=m[28],m[29]!==_?(u=_&&(0,v.jsx)("div",{"data-testid":"block-preview__children",children:_}),m[29]=_,m[30]=u):u=m[30],m[31]!==c||m[32]!==u?(p=(0,v.jsxs)(I.BJ,{"data-testid":"block-preview",space:1,children:[c,u]}),m[31]=c,m[32]=u,m[33]=p):p=m[33],p},blockImage:function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(35),{actions:f,title:g,subtitle:y,description:C,fallbackTitle:x,mediaDimensions:b,media:w,children:_,status:k}=e,S=void 0===x?"Untitled":x,T=void 0===b?es8:b;return h[0]!==S||h[1]!==g?(t=(g||S)&&(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:g?esP(g,"block"):S}),h[0]=S,h[1]=g,h[2]=t):t=h[2],h[3]!==y?(n=y&&(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:esP(y,"block")}),h[3]=y,h[4]=n):n=h[4],h[5]!==t||h[6]!==n?(i=(0,v.jsxs)(I.BJ,{flex:1,space:2,children:[t,n]}
350),h[5]=t,h[6]=n,h[7]=i):i=h[7],h[8]!==k?(r=k&&(0,v.jsx)(I.az,{paddingX:2,paddingY:3,children:esP(k,"block")}),h[8]=k,h[9]=r):r=h[9],h[10]!==r||h[11]!==f?(a=(0,v.jsxs)(I.so,{gap:1,paddingLeft:1,children:[r,f]}),h[10]=r,h[11]=f,h[12]=a):a=h[12],h[13]!==i||h[14]!==a?(o=(0,v.jsxs)(es0,{paddingBottom:3,paddingLeft:2,paddingRight:1,paddingTop:1,children:[i,a]}),h[13]=i,h[14]=a,h[15]=o):o=h[15],h[16]!==T?(l=(e=>{let{height:t,width:n}=e;return t&&n?t/n*100:1})(T),h[16]=T,h[17]=l):l=h[17],h[18]!==T||h[19]!==w?(s=(0,v.jsx)(esz,{border:!1,dimensions:T,layout:"blockImage",media:w,radius:0,responsive:!0}),h[18]=T,h[19]=w,h[20]=s):s=h[20],h[21]!==s||h[22]!==l?(d=(0,v.jsx)(es7,{$ratio:l,__unstable_checkered:!0,display:"flex",sizing:"border",radius:2,tone:"inherit",children:s}),h[21]=s,h[22]=l,h[23]=d):d=h[23],h[24]!==d||h[25]!==o?(c=(0,v.jsxs)(I.BJ,{children:[o,d]}),h[24]=d,h[25]=o,h[26]=c):c=h[26],h[27]!==C?(u=C&&(0,v.jsx)(I.az,{paddingX:2,paddingY:3,children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:esP(C,"block")})}),h[27]=C,h[28]=u):u=h[28],h[29]!==_?(p=_&&(0,v.jsx)("div",{children:_}),h[29]=_,h[30]=p):p=h[30],h[31]!==c||h[32]!==u||h[33]!==p?(m=(0,v.jsxs)(es3,{children:[c,u,p]}),h[31]=c,h[32]=u,h[33]=p,h[34]=m):m=h[34],m},compact:function(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(32),{children:u,isPlaceholder:p,media:m,status:h,title:f}=e,{t:g}=as();c[0]!==h?(t=h&&(0,v.jsx)(I.az,{"data-testid":"compact-preview__status",paddingLeft:4,paddingRight:1,children:esP(h,"compact")}),c[0]=h,c[1]=t):t=c[1];let y=t;if(p){let e,t,n,i,r=m?1:2;return c[2]!==m?(e=m&&(0,v.jsx)(T.EA,{animated:!0,radius:2,style:Ft.compact.media}),c[2]=m,c[3]=e):e=c[3],c[4]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.BJ,{"data-testid":"compact-preview__heading",flex:1,space:2,children:(0,v.jsx)(esO,{})}),c[4]=t):t=c[4],c[5]!==y||c[6]!==e?(n=(0,v.jsxs)(I.so,{align:"center",flex:1,gap:2,children:[e,t,y]}),c[5]=y,c[6]=e,c[7]=n):n=c[7],c[8]!==r||c[9]!==n?(i=(0,v.jsx)(esN,{align:"center","data-testid":"default-preview",paddingLeft:r,paddingRight:2,paddingY:1,children:n}),c[8]=r,c[9]=n,c[10]=i):i=c[10],i}let C=m?1:2;return c[11]!==m?(n=m&&(0,v.jsx)(esz,{border:!1,dimensions:esR,layout:"compact",media:m}),c[11]=m,c[12]=n):n=c[12],c[13]===Symbol.for("react.memo_cache_sentinel")?(i={color:"inherit"},c[13]=i):i=c[13],c[14]!==f?(r=f&&esP(f,"compact"),c[14]=f,c[15]=r):r=c[15],c[16]!==g||c[17]!==f?(a=!f&&(0,v.jsx)("span",{style:{color:"var(--card-muted-fg-color)"},children:g("preview.default.title-fallback")}),c[16]=g,c[17]=f,c[18]=a):a=c[18],c[19]!==r||c[20]!==a?(o=(0,v.jsx)(I.BJ,{"data-testid":"compact-preview__header",flex:1,space:2,children:(0,v.jsxs)(I.EY,{size:1,style:i,textOverflow:"ellipsis",weight:"medium",children:[r,a]})}),c[19]=r,c[20]=a,c[21]=o):o=c[21],c[22]!==y||c[23]!==n||c[24]!==o?(l=(0,v.jsxs)(I.so,{align:"center",flex:1,gap:2,children:[n,o,y]}),c[22]=y,c[23]=n,c[24]=o,c[25]=l):l=c[25],c[26]!==u?(s=u&&(0,v.jsx)(I.az,{marginLeft:1,children:u}),c[26]=u,c[27]=s):s=c[27],c[28]!==C||c[29]!==l||c[30]!==s?(d=(0,v.jsxs)(esN,{align:"center","data-testid":"compact-preview",paddingLeft:C,paddingRight:2,paddingY:1,children:[l,s]}),c[28]=C,c[29]=l,c[30]=s,c[31]=d):d=c[31],d},default:esU,detail:function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(47),{title:h,subtitle:f,description:g,mediaDimensions:y,media:C,status:x,children:b,isPlaceholder:w}=e,_=void 0===y?esZ:y,{t:k}=as();m[0]!==x?(t=x&&(0,v.jsx)(Fi,{marginLeft:3,paddingRight:1,children:esP(x,"detail")}),m[0]=x,m[1]=t):t=m[1];let S=t;if(w){let e,t,n,i,r,a,o,l=C?2:3;return m[2]!==C?(e=C&&(0,v.jsx)(Fr,{"data-testid":"detail-preview__media"}),m[2]=C,m[3]=e):e=m[3],m[4]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(Fa,{}),n=(0,v.jsx)(Fo,{}),m[4]=t,m[5]=n):(t=m[4],n=m[5]),m[6]!==g?(i=g&&(0,v.jsx)(I.az,{marginTop:1,children:(0,v.jsx)(Fl,{})}),m[6]=g,m[7]=i):i=m[7],m[8]!==i?(r=(0,v.jsx)(I.so,{align:"center","data-testid":"detail-preview__header",flex:1,children:(0,v.jsxs)(I.BJ,{flex:1,space:2,children:[t,n,i]})}),m[8]=i,m[9]=r):r=m[9],m[10]!==S||m[11]!==e||m[12]!==r?(a=(0,v.jsxs)(I.so,{align:"center",flex:1,gap:3,children:[e,r,S]}),m[10]=S,m[11]=e,m[12]=r,m[13]=a):a=m[13],m[14]!==l||m[15]!==a?(o=(0,v.jsx)(Fn,{"data-testid":"detail-preview",paddingLeft:l,paddingRight:2,paddingY:2,children:a}),m[14]=l,m[15]=a,m[16]=o):o=m[16],o}let T=C?2:3;return m[17]!==C||m[18]!==_?(n=C&&(0,v.jsx)(esz,{dimensions:_,layout:"detail",media:C}),m[17]=C,m[18]=_,m[19]=n):n=m[19],m[20]===Symbol.for("react.memo_cache_sentinel")?(i={color:"inherit"},m[20]=i):i=m[20],m[21]!==h?(r=h&&esP(h,"detail"),m[21]=h,m[22]=r):r=m[22],m[23]!==k||m[24]!==h?(a=!h&&(0,v.jsx)(v.Fragment,{children:k("preview.default.title-fallback")}),m[23]=k,m[24]=h,m[25]=a):a=m[25],m[26]!==r||m[27]!==a?(o=(0,v.jsxs)(I.EY,{textOverflow:"ellipsis",size:1,style:i,weight:"medium",children:[r,a]}),m[26]=r,m[27]=a,m[28]=o):o=m[28],m[29]!==f?(l=f&&(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:esP(f,"detail")}
350),m[29]=f,m[30]=l):l=m[30],m[31]!==g?(s=g&&(0,v.jsx)(I.az,{marginTop:1,children:(0,v.jsx)(Fs,{muted:!0,size:1,children:esP(g,"detail")})}),m[31]=g,m[32]=s):s=m[32],m[33]!==o||m[34]!==l||m[35]!==s?(d=(0,v.jsxs)(I.BJ,{flex:1,space:2,children:[o,l,s]}),m[33]=o,m[34]=l,m[35]=s,m[36]=d):d=m[36],m[37]!==S||m[38]!==d?(c=(0,v.jsxs)(I.so,{align:"center","data-testid":"detail-preview__header",flex:1,children:[d,S]}),m[37]=S,m[38]=d,m[39]=c):c=m[39],m[40]!==b||m[41]!==c||m[42]!==n?(u=(0,v.jsxs)(I.so,{align:"center",flex:1,gap:3,children:[n,c,b]}),m[40]=b,m[41]=c,m[42]=n,m[43]=u):u=m[43],m[44]!==u||m[45]!==T?(p=(0,v.jsx)(Fn,{"data-testid":"detail-preview",paddingLeft:T,paddingRight:2,paddingY:2,children:u}),m[44]=u,m[45]=T,m[46]=p):p=m[46],p},inline:function(e){let t,n,i,r,a=(0,j.c)(11),{title:o,fallbackTitle:l,media:s,mediaDimensions:d}=e,c=void 0===l?"Untitled":l,u=void 0===d?edn:d;return a[0]!==s||a[1]!==u?(t=s&&(0,v.jsxs)(ede,{"data-testid":"inline-preview-media",children:[(0,tU.isValidElementType)(s)?(0,v.jsx)(s,{layout:"inline",dimensions:u}):"string"==typeof s?(0,v.jsx)("div",{children:s}):s,(0,v.jsx)("span",{})]}),a[0]=s,a[1]=u,a[2]=t):t=a[2],a[3]!==c||a[4]!==o?(n=esP(o,"inline",c),a[3]=c,a[4]=o,a[5]=n):n=a[5],a[6]!==n?(i=(0,v.jsx)(edt,{"data-testid":"inline-preview-title",size:1,children:n}),a[6]=n,a[7]=i):i=a[7],a[8]!==t||a[9]!==i?(r=(0,v.jsxs)(es9,{"data-testid":"inline-preview",children:[t,i]}),a[8]=t,a[9]=i,a[10]=r):r=a[10],r},media:function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(30),{media:c,mediaDimensions:u,children:p,isPlaceholder:m,progress:h,subtitle:f,title:g,withBorder:y,withRadius:C}=e,x=void 0===u?es5:u,b=void 0===h?-1:h,w=void 0===y||y,_=void 0===C||C,k=`${100/(x.aspect||1)}%`;d[0]!==k?(t={paddingBottom:k},d[0]=k,d[1]=t):t=d[1];let S=t;e:{let e,t,i;if(!g||!f){n=null;break e}d[2]!==g?(e=g&&(0,v.jsx)(I.EY,{align:"center",size:1,weight:"medium",children:esP(g,"media")}),d[2]=g,d[3]=e):e=d[3],d[4]!==f?(t=f&&(0,v.jsx)(I.EY,{align:"center",muted:!0,size:1,children:esP(f,"media")}),d[4]=f,d[5]=t):t=d[5],d[6]!==e||d[7]!==t?(i=(0,v.jsxs)(es2,{children:[e,t]}),d[6]=e,d[7]=t,d[8]=i):i=d[8],n=i}let T=n;d[9]!==S?(i=(0,v.jsx)("div",{style:S}),d[9]=S,d[10]=i):i=d[10];let E=!T;return d[11]!==m||d[12]!==c||d[13]!==x||d[14]!==w||d[15]!==_?(r=m?(0,v.jsx)(esQ,{}):(0,v.jsx)(esz,{border:w,dimensions:x,layout:"media",media:c,radius:+!!_,responsive:!0}),d[11]=m,d[12]=c,d[13]=x,d[14]=w,d[15]=_,d[16]=r):r=d[16],d[17]!==b?(a="number"==typeof b&&b>-1&&(0,v.jsx)(es1,{children:(0,v.jsx)(esK,{value:b})}),d[17]=b,d[18]=a):a=d[18],d[19]!==a||d[20]!==r?(o=(0,v.jsxs)(esX,{children:[r,a]}),d[19]=a,d[20]=r,d[21]=o):o=d[21],d[22]!==o||d[23]!==E||d[24]!==T?(l=(0,v.jsx)(tL.m_,{content:T,disabled:E,placement:"top",portal:!0,children:o}),d[22]=o,d[23]=E,d[24]=T,d[25]=l):l=d[25],d[26]!==p||d[27]!==l||d[28]!==i?(s=(0,v.jsx)(I.az,{padding:2,children:(0,v.jsxs)(esG,{"data-testid":"media-preview",flex:1,overflow:"hidden",children:[i,l,p]})}),d[26]=p,d[27]=l,d[28]=i,d[29]=s):s=d[29],s}};function j7(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eT.pyG,{className:"sanity-studio__preview-fallback-icon"}),t[0]=e):e=t[0],e}function j3(e){let t,n,i,r,a,o=(0,j.c)(17),{client:l,dimensions:s,imageSource:d,imageUrlBuilder:c,title:u}=e;o[0]!==s?(t=(e,t)=>{let n=s.width??100,i=s.height??100,r=s.fit,a=s.dpr??1;return e.image(t).withOptions({width:n,height:i,fit:r,dpr:a}).url()||""},o[0]=s,o[1]=t):t=o[1];let p=t;o[2]!==l||o[3]!==d?(n={client:l,source:d},o[2]=l,o[3]=d,o[4]=n):n=o[4];let m=jJ(n);o[5]!==m||o[6]!==d||o[7]!==c||o[8]!==p?(i={accessPolicy:m,imageSource:d,imageUrlBuilder:c,transform:p},o[5]=m,o[6]=d,o[7]=c,o[8]=p,o[9]=i):i=o[9];let{isLoading:h,url:f}=j5(i),[g,y]=(0,_.useState)(!1);o[10]===Symbol.for("react.memo_cache_sentinel")?(r=()=>y(!0),o[10]=r):r=o[10];let C=r;if(h){let e;return o[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.EA,{animated:!0,style:{width:"100%",height:"100%"}}),o[11]=e):e=o[11],e}if("unknown"===m&&g){let e,t;return o[12]===Symbol.for("react.memo_cache_sentinel")?(e={width:"100%",height:"100%"},o[12]=e):e=o[12],o[13]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.Zp,{tone:"critical",style:e,children:(0,v.jsx)(I.so,{justify:"center",align:"center",style:{width:"100%",height:"100%"},children:(0,v.jsx)(eT.sAQ,{})})}),o[13]=t):t=o[13],t}let x="string"==typeof u?u:void 0;return o[14]!==x||o[15]!==f?(a=(0,v.jsx)("img",{alt:x,onError:C,referrerPolicy:"str
350ict-origin-when-cross-origin",src:f}),o[14]=x,o[15]=f,o[16]=a):a=o[16],a}let j8=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(34);h[0]!==e?({icon:t,layout:i,media:r,imageUrl:n,title:o,tooltip:l,...a}=e,h[0]=e,h[1]=t,h[2]=n,h[3]=i,h[4]=r,h[5]=a,h[6]=o,h[7]=l):(t=h[1],n=h[2],i=h[3],r=h[4],a=h[5],o=h[6],l=h[7]);let f=el0(ob);h[8]!==f?(s=(0,t1.OX)(f),h[8]=f,h[9]=s):s=h[9];let g=s;h[10]!==f||h[11]!==g||h[12]!==r||h[13]!==o?(d=e=>{let t=r;if(rq(t)&&(0,tQ.r7)(t)){let{assetId:e}=(0,tQ.o7)(t);t=e}return(0,v.jsx)(j3,{client:f,dimensions:e.dimensions,imageSource:t,imageUrlBuilder:g,title:o})},h[10]=f,h[11]=g,h[12]=r,h[13]=o,h[14]=d):d=h[14];let y=d;h[15]!==t?(c=()=>t?(0,v.jsx)(t,{}):(0,v.jsx)(j7,{}),h[15]=t,h[16]=c):c=h[16];let C=c;e:{if(!1===t){u=!1;break e}if(rq(r)&&(0,tQ.r7)(r)||(0,tQ.LG)(r)){u=y;break e}if((0,tU.isValidElementType)(r)||(0,_.isValidElement)(r)){u=r;break e}if(rq(n)){let e,t=rq(o)?o:void 0;h[17]!==n||h[18]!==t?(e=(0,v.jsx)("img",{src:n,alt:t,referrerPolicy:"strict-origin-when-cross-origin"}),h[17]=n,h[18]=t,h[19]=e):e=h[19],u=e;break e}u=C}let x=u;h[20]!==a||h[21]!==x||h[22]!==o?(p={...a,media:x,title:o},h[20]=a,h[21]=x,h[22]=o,h[23]=p):p=h[23];let b=p,w=j0[i||"default"];h[24]!==w||h[25]!==b?(m=(0,v.jsx)(w,{...b}),h[24]=w,h[25]=b,h[26]=m):m=h[26];let k=m;if(l){let e,t,n,i=!l;return h[27]===Symbol.for("react.memo_cache_sentinel")?(e=["top-end","bottom-end"],h[27]=e):e=h[27],h[28]!==k?(t=(0,v.jsx)("div",{children:k}),h[28]=k,h[29]=t):t=h[29],h[30]!==i||h[31]!==t||h[32]!==l?(n=(0,v.jsx)(tL.m_,{content:l,disabled:i,fallbackPlacements:e,placement:"right",children:t}),h[30]=i,h[31]=t,h[32]=l,h[33]=n):n=h[33],n}return k});function j4(e){return(0,eD.$d)(e.schemaType)}function j6(e){return(0,eD.zR)(e.schemaType)}j8.displayName="Memo(SanityDefaultPreview)",(0,eI.I4)(I.so).withConfig({displayName:"RootFlex",componentId:"sc-1ii6pu8-0"})``,(0,eI.I4)(I.Zp).withConfig({displayName:"TitleCard",componentId:"sc-1ii6pu8-1"})`min-height:max-content;`;let j9=(0,_.memo)(function(e){let t,n,i=(0,j.c)(8);i[0]!==e?(t="absolutePath"in e?e.absolutePath:e.path.concat(e.relativePath),i[0]=e,i[1]=t):t=i[1];let r=t,a=e.renderAnnotation||wi,o=e.renderBlock||wi,l=e.renderInlineBlock||wi;return i[2]!==r||i[3]!==e||i[4]!==a||i[5]!==o||i[6]!==l?(n=(0,v.jsx)(we,{...e,absolutePath:r,destinationRenderAnnotation:a,destinationRenderBlock:o,destinationRenderField:e.renderField,destinationRenderInlineBlock:l,destinationRenderInput:e.renderInput,destinationRenderItem:e.renderItem,destinationRenderPreview:e.renderPreview}),i[2]=r,i[3]=e,i[4]=a,i[5]=o,i[6]=l,i[7]=n):n=i[7],n});function we(e){let t,n,i,r,a,o,l=(0,j.c)(73),{absolutePath:s,destinationRenderAnnotation:d,destinationRenderBlock:c,destinationRenderField:u,destinationRenderInlineBlock:p,destinationRenderInput:m,destinationRenderItem:h,destinationRenderPreview:f}=e,{t:g}=as();l[0]!==s||l[1]!==u||l[2]!==e.includeField?(t=t=>((0,w.n4)(s,t.path)?e.includeField:(0,w.w1)(s,t.path))?u(t):(({children:e})=>e)(t),l[0]=s,l[1]=u,l[2]=e.includeField,l[3]=t):t=l[3];let y=t;l[4]!==s||l[5]!==h||l[6]!==e.includeItem?(n=t=>((0,w.n4)(s,t.path)?e.includeItem:(0,w.w1)(s,t.path))?h(t):(({children:e})=>e)(t),l[4]=s,l[5]=h,l[6]=e.includeItem,l[7]=n):n=l[7];let C=n;l[8]!==s||l[9]!==d||l[10]!==c||l[11]!==u||l[12]!==p||l[13]!==m||l[14]!==h||l[15]!==f||l[16]!==e.includeField||l[17]!==e.includeItem?(i=t=>{if((0,w.n4)(t.path,s)||(0,w.w1)(s,t.path))return m(t);if(!j4(t)&&!j6(t))throw Error(`Expected either object input props or array input props for: ${JSON.stringify(t.path)}`);return(0,v.jsx)(we,{...t,includeField:e.includeField,includeItem:e.includeItem,absolutePath:s,destinationRenderAnnotation:d,destinationRenderBlock:c,destinationRenderInput:m,destinationRenderItem:h,destinationRenderField:u,destinationRenderInlineBlock:p,destinationRenderPreview:f})},l[8]=s,l[9]=d,l[10]=c,l[11]=u,l[12]=p,l[13]=m,l[14]=h,l[15]=f,l[16]=e.includeField,l[17]=e.includeItem,l[18]=i):i=l[18];let x=i;l[19]!==s||l[20]!==c||l[21]!==e.includeItem?(r=t=>(0,w.w1)(s,t.path)&&(e.includeItem||!(0,w.n4)(s,t.path))?c(t):(({children:e})=>e)(t),l[19]=s,l[20]=c,l[21]=e.includeItem,l[22]=r):r=l[22];let b=r;l[23]!==s||l[24]!==p||l[25]!==e.includeItem?(a=t=>(0,w.w1)(s,t.path)&&(e.includeItem||!(0,w.n4)(s,t.path))?p(t):(({children:e})=>e)(t),l[23]=s,l[24]=p,l[25]=e.includeItem,l[26]=a):a=l[26];let _=a;l[27]!==s||l[28]!==d||l[29]!==e.includeItem?(o=t=>(0,w.w1)(s,t.path)&&(e.includeItem||!(0,w.n4)(s,t.path))?d(t):(({children:e})=>e)(t),l[27]=s,l[28]=d,l[29]=e.includeItem,l[30]=o):o=l[30];let k=o;if(j6(e)){let t,n;if(l[31]!==s||l[32]!==e.members||l[33]!==e.path){let n=(0,w.Mr)(e.path,s);t=e.members.find(e=>"item"==e.kind&&(0,eD.tA)(n[0])&&e.key===n[0]._key),l[31]=s,l[32]=e.members,l[33]=e.path,l[34]=t}else t=l[34];let i=t;if(!i){let t,n,i,r,a;if(l[35]!==s||l[36]!==e.path||l[37]!==g){i=Symbol.for("react.early_return_sentinel");e:{t=on(e.path);let r=(0,w.Mr)(e.path,s);
350if((0,eD.tA)(r[0])){let e=r[0]._key;i=(0,v.jsx)("div",{children:(0,v.jsx)(aE,{t:g,i18nKey:"form.error.no-array-item-at-key",values:{key:e,path:t}})});break e}n=(0,eD.wr)(r[0])?r[0]:r[0][0]}l[35]=s,l[36]=e.path,l[37]=g,l[38]=t,l[39]=n,l[40]=i}else t=l[38],n=l[39],i=l[40];if(i!==Symbol.for("react.early_return_sentinel"))return i;let o=n;return l[41]!==o||l[42]!==t?(r={index:o,path:t},l[41]=o,l[42]=t,l[43]=r):r=l[43],l[44]!==g||l[45]!==r?(a=(0,v.jsx)("div",{children:(0,v.jsx)(aE,{t:g,i18nKey:"form.error.no-array-item-at-index",values:r})}),l[44]=g,l[45]=r,l[46]=a):a=l[46],a}if("error"===i.kind){let e;return l[47]!==i?(e=(0,v.jsx)(Cs,{member:i}),l[47]=i,l[48]=e):e=l[48],e}return l[49]!==f||l[50]!==i||l[51]!==k||l[52]!==b||l[53]!==y||l[54]!==_||l[55]!==x||l[56]!==C?(n=(0,v.jsx)(Ct,{member:i,renderAnnotation:k,renderBlock:b,renderInput:x,renderField:y,renderInlineBlock:_,renderItem:C,renderPreview:f}),l[49]=f,l[50]=i,l[51]=k,l[52]=b,l[53]=y,l[54]=_,l[55]=x,l[56]=C,l[57]=n):n=l[57],n}if(j4(e)){let t,n,i;if(l[58]!==s||l[59]!==e.members||l[60]!==e.path||l[61]!==g){n=Symbol.for("react.early_return_sentinel");t:{let i=(0,w.Mr)(e.path,s),r=e.members.find(e=>"field"==e.kind&&i[0]===e.name),a=e.members.filter(wn).flatMap(wt).find(e=>"field"===e.kind&&e.name===i[0]);if(!(t=r||a)){let e="string"==typeof i[0]?i[0]:JSON.stringify(i[0]);n=(0,v.jsx)("div",{children:g("form.error.field-not-found",{fieldName:e})});break t}}l[58]=s,l[59]=e.members,l[60]=e.path,l[61]=g,l[62]=t,l[63]=n}else t=l[62],n=l[63];return n!==Symbol.for("react.early_return_sentinel")?n:(l[64]!==f||l[65]!==t||l[66]!==k||l[67]!==b||l[68]!==y||l[69]!==_||l[70]!==x||l[71]!==C?(i=(0,v.jsx)(xt,{member:t,renderAnnotation:k,renderBlock:b,renderInput:x,renderInlineBlock:_,renderField:y,renderItem:C,renderPreview:f}),l[64]=f,l[65]=t,l[66]=k,l[67]=b,l[68]=y,l[69]=_,l[70]=x,l[71]=C,l[72]=i):i=l[72],i)}throw Error("FormInput can only be used with arrays or objects")}function wt(e){return"fieldSet"===e.kind&&e.fieldSet?.members||[]}function wn(e){return"fieldSet"===e.kind}function wi(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(v.Fragment,{children:"Missing destination render function"}),t[0]=e):e=t[0],e}function wr(e){let t,n,i=(0,j.c)(6),{scrollElement:r,containerElement:a}=e;i[0]!==a||i[1]!==r?(t={scrollElement:r,containerElement:a},i[0]=a,i[1]=r,i[2]=t):t=i[2];let o=t;return i[3]!==e.children||i[4]!==o?(n=(0,v.jsx)(S.hK.Provider,{value:o,children:e.children}),i[3]=e.children,i[4]=o,i[5]=n):n=i[5],n}function wa(e){let t,n,i,r,a,o,l=(0,j.c)(17),{children:s}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],l[0]=t):t=l[0];let[d,c]=(0,_.useState)(t),u=(0,tK.Jr)(),{enabled:p}=y3();l[1]!==d?(n=e=>d.find(t=>t===lG(e))??void 0,l[1]=d,l[2]=n):n=l[2];let m=n;l[3]!==p||l[4]!==d||l[5]!==u?(i=(e,t)=>{t?(u.log(y0,{path:lG(e),origin:p?"nested-object":"default"}),c([...d,lG(e)])):(u.log(y7,{path:lG(e),origin:p?"nested-object":"default"}),c(d.filter(t=>t!==lG(e))))},l[3]=p,l[4]=d,l[5]=u,l[6]=i):i=l[6];let h=i;l[7]!==d?(r=()=>d.length>0,l[7]=d,l[8]=r):r=l[8];let f=r;l[9]!==d||l[10]!==m||l[11]!==f||l[12]!==h?(a={getFullscreenPath:m,setFullscreenPath:h,hasAnyFullscreen:f,allFullscreenPaths:d},l[9]=d,l[10]=m,l[11]=f,l[12]=h,l[13]=a):a=l[13];let g=a;return l[14]!==s||l[15]!==g?(o=(0,v.jsx)(S.qL.Provider,{value:g,children:s}),l[14]=s,l[15]=g,l[16]=o):o=l[16],o}function wo(){return(0,_.useContext)(S.qL)}function wl(e,t){let n=(0,nq.yu)(t);return"object"===n&&1===e.of.length?e.of[0]:e.of.find(e=>e.name===n)}function ws(e,t){return JSON.stringify(e)===JSON.stringify(t)}function wd(e){return 0!==e.length&&e[e.length-1].hasOwnProperty("_key")}let wc=(0,eI.I4)(I.so).withConfig({displayName:"FlexWrapper",componentId:"sc-u08lu2-0"})`& > div:first-child{flex:1;min-width:0;}`,wu=(0,eI.I4)(I.so).withConfig({displayName:"InnerBox",componentId:"sc-u08lu2-1"})`height:${25}px;min-width:23px;vertical-align:top;`,wp=(0,_.memo)(function(e){let t,n,i=(0,j.c)(6),{children:r}=e,{store:a,snapshot:o}=h0();return i[0]!==r||i[1]!==o?(t=(0,v.jsx)(S.rr.Provider,{value:o,children:r}),i[0]=r,i[1]=o,i[2]=t):t=i[2],i[3]!==a||i[4]!==t?(n=(0,v.jsx)(S.ov.Provider,{value:a,children:t}),i[3]=a,i[4]=t,i[5]=n):n=i[5],n}),wm=[];function wh(e){let t,n,i,r=(0,j.c)(7),{children:a,items:o}=e;r[0]!==o?(t=o.map(wf),r[0]=o,r[1]=t):t=r[1],r[2]!==t?(n=(0,v.jsx)(I.BJ,{sizing:"border",children:t}),r[2]=t,r[3]=n):n=r[3];let l=n;return r[4]!==a||r[5]!==l?(i=(0,v.jsx)(tL.m_,{content:l,placement:"top",portal:"documentScrollElement",children:a}),r[4]=a,r[5]=l,r[6]=i):i=r[6],i}function wf(e){return(0,v.jsxs)(I.so,{align:"center",gap:2,children:[(0,v.jsx)("div",{children:(0,v.jsx)(ua,{user:e.user,status:"online"})}),(0,v.jsx)(I.EY,{size:1,children:e.user.displayName})]},e.user.id)}let wg=(0,_.memo)(function(e){let t,n,i,r=(0,j.c)(12),{presence:a,position:o,animateArrowFrom:l,maxAvatars:s,stack:d}=e,c=void 0===o?"inside":o,u=void 0===l?"inside":l,p=void 0===s?3:s,m=void 0===d||d;if(r[0]!==u||r[1]!==p||r[2]!==c||r[3]!==a||r[4]!==m){let e,n,i,o=(0,L.A)(a||[],wx),l=(0,ee.A)(o,wb),[s,d]=m?(n=l.length>p?p-1:p,i=Math.max(0,l.length-n),[l.slice(0,i),l.slice(i)]):[[],l];r[6]!==u||r[7]!==c?(e=e=>({key:e.user.id,element:(0,v.jsx)(ua,{animateArrowFrom:u,position:c,status:"online",user:e.user})}),r[6]=u,r[7]=c,r[8]=e):e=r[8],t=[...d.reverse().map(e),s.length>=2?{key:"counter",element:(0,v.jsx)(I.CA,{count:s.length})}
350:null].filter(Boolean),r[0]=u,r[1]=p,r[2]=c,r[3]=a,r[4]=m,r[5]=t}else t=r[5];let h=t;return r[9]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)("div",{}),r[9]=n):n=r[9],r[10]!==h?(i=(0,v.jsxs)(wc,{children:[n,(0,v.jsx)(wu,{direction:"row-reverse",children:h.map(wv)})]}),r[10]=h,r[11]=i):i=r[11],i});function wy(e){var t,n;let i,r,a,o,l,s,d=(0,j.c)(11),c=(0,_.useContext)(S.xh),{presence:u,maxAvatars:p}=e,m=void 0===u?c:u,h=void 0===p?3:p,[f,g]=(0,_.useState)(null),y=(0,_.useId)();d[0]!==f||d[1]!==h||d[2]!==m?(i=()=>({presence:m,element:f,maxAvatars:h}),d[0]=f,d[1]=h,d[2]=m,d[3]=i):i=d[3],t=f?y:null,n=i,null===(s=(0,_.useContext)(S.ov))&&console.warn(Error('No context provided for reporter. Make sure that the component calling "usePresenceReporter()", is wrapped inside a <PresenceTracker> element')),h3(s,t,n,void 0),d[4]!==m?(r=m||[],d[4]=m,d[5]=r):r=d[5],d[6]!==r?(a=(0,L.A)(r,wC),d[6]=r,d[7]=a):a=d[7];let C=a;return d[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,v.jsx)(wc,{ref:g,style:{minHeight:25,minWidth:25}}),d[8]=o):o=d[8],d[9]!==C?(l=(0,v.jsx)(wh,{items:C,children:o}),d[9]=C,d[10]=l):l=d[10],l}function wC(e){return e.user.id}function wx(e){return e.user.id}function wb(e){return e.lastActiveAt}function wv(e,t){return e&&(0,v.jsx)("div",{style:{position:"absolute",transform:`translate3d(${-(21*t)}px, 0px, 0px)`,transitionProperty:"transform",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(0.85, 0, 0.15, 1)",zIndex:100-t},children:e.element},e.key)}let wj=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(12);s[0]!==e?({onIntersection:i,io:n,id:t,...r}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=i,s[4]=r):(t=s[1],n=s[2],i=s[3],r=s[4]);let d=(0,_.useRef)(null);return s[5]!==t||s[6]!==n||s[7]!==i?(a=()=>{let e=d.current;if(!e)return;
350let r=n.observe(e).pipe((0,e5.M)(e=>i(t,e))).subscribe();return()=>r.unsubscribe()},o=[n,t,i],s[5]=t,s[6]=n,s[7]=i,s[8]=a,s[9]=o):(a=s[8],o=s[9]),(0,_.useEffect)(a,o),s[10]!==r?(l=(0,v.jsx)("div",{...r,ref:d}),s[10]=r,s[11]=l):l=s[11],l},ww=eI.I4.div.withConfig({displayName:"RootWrapper",componentId:"sc-1elv6r8-0"})`position:relative;`,w_=eI.I4.div.withConfig({displayName:"OverlayWrapper",componentId:"sc-1elv6r8-1"})`position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:13;`,wk=(0,eI.AH)` 351 overflow: hidden; 352 overflow: clip; 353 pointer-events: none; 354 position: absolute; 355`,wS=(0,eI.I4)(wj).withConfig({displayName:"TopRegionWrapper",componentId:"sc-1elv6r8-2"})(({$debug:e,margins:t})=>(0,eI.AH)` 356 ${wk} 357 358 z-index: 100; 359 position: sticky; 360 height: 1px; 361 top: ${t?`${t[0]-1}px`:void 0}; 362 background-color: ${e?"red":"none"}; 363 `),wI=(0,eI.I4)(wj).withConfig({displayName:"MiddleRegionWrapper",componentId:"sc-1elv6r8-3"})(({$debug:e})=>(0,eI.AH)` 364 ${wk} 365 366 visibility: none; 367 368 ${e&&(0,eI.AH)` 369 background: rgba(255, 0, 0, 0.25); 370 outline: 1px solid #00b; 371 visibility: visible; 372 `} 373 `),wT=(0,eI.I4)(wj).withConfig({displayName:"BottomRegionWrapper",componentId:"sc-1elv6r8-4"})(({$debug:e})=>(0,eI.AH)` 374 ${wk} 375 376 position: sticky; 377 bottom: -1px; 378 height: 1px; 379 background-color: ${e?"blue":"transparent"}; 380 `),wE=e=>`${e}px`,w$=e=>0-e,wA=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x=(0,j.c)(43),{regions:b,render:w,children:k,margins:S}=e,[I,T,E,$]=S,A=(0,_.useRef)(null);x[0]!==E||x[1]!==$||x[2]!==T||x[3]!==I?(n=[I,T,E,$],x[0]=E,x[1]=$,x[2]=T,x[3]=I,x[4]=n):n=x[4];let D=n;x[5]!==D?(i=D.map(w$).map(wE),x[5]=D,x[6]=i):i=x[6];let z=i.join(" ");x[7]!==z?(y=new eq.B,C=new IntersectionObserver(e=>{e.forEach(e=>{y.next(e)})},{rootMargin:z,threshold:xg}),r={observe:e=>new eU.c(t=>{let n=y.pipe((0,to.p)(t=>t.target===e)).subscribe(t);return C.observe(e),()=>{n.unsubscribe(),C.unobserve(e)}})},x[7]=z,x[8]=r):r=x[8];let P=r;x[9]===Symbol.for("react.memo_cache_sentinel")?(a={},x[9]=a):a=x[9];let[R,N]=(0,_.useState)(a);x[10]===Symbol.for("react.memo_cache_sentinel")?(o=(e,t)=>{N(n=>({...n,[e]:t}))},x[10]=o):o=x[10];let O=o,[V,M]=(0,_.useState)(0);x[11]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{if(A.current)return M(A.current.offsetWidth),r2.observe(A.current,e=>{M(e.contentRect.width)})},s=[],x[11]=l,x[12]=s):(l=x[11],s=x[12]),(0,_.useLayoutEffect)(l,s);let L=R["::top"],F=R["::bottom"];x[13]!==F||x[14]!==R||x[15]!==b||x[16]!==L?(d=L&&F?b.filter(wD).map(e=>{let t=R[e.id];if(!t)return null;let{bottom:n,top:i}=t.boundingClientRect,r=t.boundingClientRect.top<L.boundingClientRect.bottom,a=t.boundingClientRect.top<F.boundingClientRect.top,o=t.isIntersecting?i-(t.intersectionRect.top-23):r?-L.boundingClientRect.bottom:F.boundingClientRect.top,l=t.isIntersecting?-(n-(t.intersectionRect.bottom+23)):a?F.boundingClientRect.top:-L.boundingClientRect.bottom;return{distanceTop:o,distanceBottom:l,region:e,position:o<=8?"top":l<=8?"bottom":"inside"}}).filter(Boolean):[],x[13]=F,x[14]=R,x[15]=b,x[16]=L,x[17]=d):d=x[17];let B=d;if(x[18]!==P||x[19]!==D?(c=(0,v.jsx)(wS,{$debug:!1,io:P,id:"::top",onIntersection:O,margins:D}),x[18]=P,x[19]=D,x[20]=c):c=x[20],x[21]!==k?(u=(0,v.jsx)("div",{children:k}),x[21]=k,x[22]=u):u=x[22],x[23]!==V||x[24]!==B||x[25]!==w?(p=V&&w(B,V),x[23]=V,x[24]=B,x[25]=w,x[26]=p):p=x[26],x[27]!==p?(m=(0,v.jsx)(w_,{ref:A,children:p}),x[27]=p,x[28]=m):m=x[28],x[29]!==P||x[30]!==b){let e;x[32]!==P?(e=e=>{let t=0===e.rect.width;return(0,v.jsx)(wI,{$debug:!1,io:P,onIntersection:O,id:e.id,style:{width:t?1:e.rect.width,left:e.rect.left-!!t,top:e.rect.top-23,height:e.rect.height+46}},e.id)},x[32]=P,x[33]=e):e=x[33],h=b.map(e),x[29]=P,x[30]=b,x[31]=h}else h=x[31];return x[34]!==P?(f=(0,v.jsx)(wT,{$debug:!1,id:"::bottom",io:P,onIntersection:O}),x[34]=P,x[35]=f):f=x[35],x[36]!==t||x[37]!==c||x[38]!==u||x[39]!==m||x[40]!==h||x[41]!==f?(g=(0,v.jsxs)(ww,{ref:t,children:[c,u,m,h,f]}),x[36]=t,x[37]=c,x[38]=u,x[39]=m,x[40]=h,x[41]=f,x[42]=g):g=x[42],g});function wD(e){return e.presence?.length>0}let wz={transitionProperty:"transform",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(0.85, 0, 0.15, 1)"},wP=e=>(0,Y.A)(e,e=>e.region.rect.top),wR=(e,t)=>e+t,wN=e=>{let t,n,i,r=(0,j.c)(6);r[0]!==e?({height:t,...n}=e,r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]);let a=Math.max(0,t),o=n?.style;return r[3]!==a||r[4]!==o?(i=(0,v.jsx)("div",{style:{height:a,...o}}),r[3]=a,r[4]=o,r[5]=i):i=r[5],i},wO=[0,0,0,0];function wV(e){let t,n,i,r,a=(0,j.c)(10),{children:o,margins:l}=e,s=void 0===l?wO:l,d=null===(r=(0,_.useContext)(S.rr))?(console.warn(Error('No context provided for reporter. Make sure that the component calling "usePresenceReportedValues()", is wrapped inside a <PresenceTracker> element')),wm):r,[c,u]=(0,_.useState)(null);a[0]!==c||a[1]!==d?(t=c?d.map(([e,t])=>{var n;return t.element?{...t,id:e,rect:{...((e,t)=>
380{let n=e,i=-n.scrollTop,r=0;for(;n&&n!==t;)i+=n.offsetTop-n.scrollTop,r+=n.offsetLeft,n=n.offsetParent instanceof HTMLElement?n.offsetParent:null;return{top:i,left:r}})(n=t.element,c),width:n.offsetWidth,height:n.offsetHeight}}:null}).filter(Boolean):wY,a[0]=c,a[1]=d,a[2]=t):t=a[2];let p=t;a[3]!==s?(n=(e,t)=>{let n,i,r=(n=wP(e.filter(wB)).map((e,t,n)=>{let i=n[t-1]?.region.rect,r=i?i.top+i.height:0;return{...e,spacerHeight:e.region.rect.top-r}}),{top:wP((i={top:[],inside:[],bottom:[],...(0,R.A)(n,e=>e.position)}).top).map((e,t,n)=>({...e,indent:n.slice(t+1).reduce((e,t)=>e+t.region.rect.width,0)})),inside:wP(i.inside).map(e=>({...e,indent:0})),bottom:wP(i.bottom).map((e,t,n)=>({...e,indent:n.slice(0,t).reduce((e,t)=>e+t.region.rect.width,0)}))}),a=r.top.map(wF).reduce(wR,0),o=[...r.inside,...r.bottom].map(wL).reduce(wR,0),l=r.inside.reduce(wM,{nearTop:0,nearBottom:0});return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(wH,{closeCount:l.nearTop,margins:s,position:"top",regionsWithIntersectionDetails:r.top}),(0,v.jsx)(wN,{height:a}),(0,v.jsx)(wU,{containerWidth:t,regionsWithIntersectionDetails:r.inside}),(0,v.jsx)(wN,{height:o}),(0,v.jsx)(wH,{closeCount:l.nearBottom,margins:s,position:"bottom",regionsWithIntersectionDetails:r.bottom})]})},a[3]=s,a[4]=n):n=a[4];let m=n;return a[5]!==o||a[6]!==s||a[7]!==p||a[8]!==m?(i=(0,v.jsx)(wA,{ref:u,margins:s,regions:p,render:m,children:o}),a[5]=o,a[6]=s,a[7]=p,a[8]=m,a[9]=i):i=a[9],i}function wM(e,t){let{distanceTop:n,distanceBottom:i}=t;return{nearTop:e.nearTop+(n<=20?t.region.presence.length:0),nearBottom:e.nearBottom+(i<=20?t.region.presence.length:0)}}function wL(e){return e.region.rect.height+e.spacerHeight}function wF(e){return e.region.rect.height+e.spacerHeight}function wB(e){return e.region.presence.length>0}let wY=[],wH=(0,_.memo)(function(e){let t,n,i,r,a=(0,j.c)(17),{closeCount:o,margins:l,position:s,regionsWithIntersectionDetails:d}=e,c="top"===s?1:-1;e:{let e;if(!d.length){t=wY;break e}if(a[0]!==c||a[1]!==d){let t;a[3]!==c?(t=e=>e.region.rect.top*c,a[3]=c,a[4]=t):t=a[4],e=(0,M.A)((0,ee.A)(d,t).map(wq)),a[0]=c,a[1]=d,a[2]=e}else e=a[2];t=e}let u=t,[p,m,h,f]=l,g=(f||0)+(u.length>0?-(21*o):0)-m,y="top"===s?p:h,C=`translate3d(${g}px, 0px, 0px)`,x=5+y,b=5+y;a[5]!==C||a[6]!==x||a[7]!==b?(n={zIndex:2,position:"sticky",display:"flex",flexDirection:"column",alignItems:"flex-end",...wz,transform:C,top:x,bottom:b},a[5]=C,a[6]=x,a[7]=b,a[8]=n):n=a[8];let w=n,_=`sticky-${s}`;return a[9]!==u||a[10]!==s?(i=(0,v.jsx)(wg,{position:s,maxAvatars:3,presence:u}),a[9]=u,a[10]=s,a[11]=i):i=a[11],a[12]!==s||a[13]!==w||a[14]!==_||a[15]!==i?(r=(0,v.jsx)("div",{"data-dock":s,style:w,children:i},_),a[12]=s,a[13]=w,a[14]=_,a[15]=i,a[16]=r):r=a[16],r});function wU(e){let t,n,i=(0,j.c)(7),{regionsWithIntersectionDetails:r,containerWidth:a}=e;if(i[0]!==a||i[1]!==r){let e;i[3]!==a?(e=e=>{let t=e.region.rect.left,{distanceTop:n,distanceBottom:i}=e,r=n<=20,o=i<=20,l=a-t-e.region.rect.width,{presence:s,maxAvatars:d}=e.region;return(0,v.jsx)(_.Fragment,{children:(0,v.jsx)("div",{style:{zIndex:2,position:"absolute",...wz,left:t,transform:`translate3d(${r||o?l:0}px, 0px, 0px)`,height:e.region.rect.height,top:e.region.rect.top},children:(0,v.jsx)(wZ,{value:()=>`\u2912${n} | ${i}\u2913`,children:(0,v.jsx)(wg,{stack:!r&&!o,position:r?"top":o?"bottom":"inside",maxAvatars:d,presence:s})})})},e.region.id)},i[3]=a,i[4]=e):e=i[4],t=r.map(e),i[0]=a,i[1]=r,i[2]=t}else t=i[2];return i[5]!==t?(n=(0,v.jsx)(v.Fragment,{children:t}),i[5]=t,i[6]=n):n=i[6],n}let wZ=e=>e.children;function wq(e){return e.region.presence||wY}let wW=[0,0,0,0];function wJ(e){let t,n=(0,j.c)(3),{children:i,margins:r}=e,a=r||wW;return n[0]!==i||n[1]!==a?(t=(0,v.jsx)(wp,{children:(0,v.jsx)(wV,{margins:a,children:i})}),n[0]=i,n[1]=a,n[2]=t):t=n[2],t}let wK=(0,eI.I4)(I.so).attrs({padding:2,align:"center",sizing:"border"}).withConfig({displayName:"FixedHeightFlex",componentId:"sc-1ysi0m5-0"})`height:40px;min-height:40px;`,wG=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-1fzvw9n-0"})`position:absolute;top:0;bottom:0;width:9px;z-index:201;cursor:ew-resize;${({position:e})=>"right"===e?(0,eI.AH)` 381 right: -4px; 382 `:(0,eI.AH)` 383 left: -4px; 384 `} & > span:nth-child(1){display:block;border-left:1px solid var(--card-border-color);position:absolute;top:0;${({position:e})=>"right"===e?(0,eI.AH)` 385 right: 4px; 386 `:(0,eI.AH)` 387 left: 4px; 388 `} bottom:0;transition:opacity 200ms;}& > span:nth-child(2){display:block;position:absolute;top:0;${({position:e})=>"right"===e?(0,eI.AH)` 389 right: 0px; 390 `:(0,eI.AH)` 391 left: 0px; 392 `} width:9px;bottom:0;background-color:var(--card-border-color);opacity:0;transition:opacity 150ms;}@media (hover:hover){&:hover > span:nth-child(2){opacity:0.2;}}`;function wX(e){let t,n,i,r,a=(0,j.c)(8),{onResize:o,onResizeStart:l,position:s}=e,d=(0,_.useRef)(0);a[0]!==o||a[1]!==l?(t=e=>{e.preventDefault(),d.current=e.pageX,l();let t=e=>{e.preventDefault(),o(d.current-e.pageX)},n=()=>{window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)},a[0]=o,a[1]=l,a[2]=t):t=a[2];let c=t;return a[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)("span",{}),i=(0,v.jsx)("span",{}),a[3]=n,a[4]=i):(n=a[3],i=a[4]),a[5]!==c||a[6]!==s?(r=(0,v.jsxs)(wG,{onMouseDown:c,position:s,children:[n,i]}),a[5]=c,a[6]=s,a[7]=r):r=a[7],r}let wQ=(0,eI.I4)(I.az).withConfig({displayName:"Root",componentId:"sc-3qhj31-0"})`position:relative;flex:1;padding-left:1px;`;function w1(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(33);h[0]!==e?({as:n,children:t,minWidth:a,maxWidth:r,initialWidth:i,resizerPosition:l,...o}=e,h[0]=e,h[1]=t,h[2]=n,h[3]=i,h[4]=r,h[5]=a,h[6]=o,h[7]=l):(t=h[1],n=h[2],i=h[3],r=h[4],a=h[5],o=h[6],l=h[7]);let f=void 0===l?"right":l,[g,y]=(0,_.useState)(null),C=(0,_.useRef)(void 0),[x,b]=(0,_.useState)(i);h[8]!==g?.offsetWidth?(s=()=>{C.current=g?.offsetWidth},h[8]=g?.offsetWidth,h[9]=s):s=h[9];let w=s;h[10]!==r||h[11]!==a||h[12]!==f?(d=e=>{let t=C.current;t&&b(Math.min(Math.max("right"===f?t-e:t+e,a),r))},h[10]=r,h[11]=a,h[12]=f,h[13]=d):d=h[13];let k=d;h[14]!==r||h[15]!==a||h[16]!==x?(c=x?{flex:"none",width:x}:{minWidth:a,maxWidth:r},h[14]=r,h[15]=a,h[16]=x,h[17]=c):c=h[17];let S=c;return h[18]!==k||h[19]!==w||h[20]!==f?(u="left"===f&&(0,v.jsx)(wX,{onResize:k,onResizeStart:w,position:"left"}),h[18]=k,h[19]=w,h[20]=f,h[21]=u):u=h[21],h[22]!==k||h[23]!==w||h[24]!==f?(p="right"===f&&(0,v.jsx)(wX,{onResize:k,onResizeStart:w,position:"right"}),h[22]=k,h[23]=w,h[24]=f,h[25]=p):p=h[25],h[26]!==t||h[27]!==n||h[28]!==o||h[29]!==S||h[30]!==u||h[31]!==p?(m=(0,v.jsxs)(wQ,{as:n,...o,ref:y,style:S,children:[u,t,p]}),h[26]=t,h[27]=n,h[28]=o,h[29]=S,h[30]=u,h[31]=p,h[32]=m):m=h[32],m}function w2(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(22),{item:c,onPathSelect:u,isFirst:p}=e;d[0]!==c.schemaType||d[1]!==c.value?(t={value:c.value,schemaType:c.schemaType},d[0]=c.schemaType,d[1]=c.value,d[2]=t):t=d[2];let{value:m}=v6(t),h=m.title,f=p?void 0:1;return d[3]!==c.path||d[4]!==u?(n=()=>u(c.path),d[3]=c.path,d[4]=u,d[5]=n):n=d[5],d[6]!==h||d[7]!==m.media?(i=(0,v.jsx)(j8,{title:h,media:m.media,layout:"inline"}),d[6]=h,d[7]=m.media,d[8]=i):i=d[8],d[9]!==c.parentSchemaType?(r=v1(c.parentSchemaType),d[9]=c.parentSchemaType,d[10]=r):r=d[10],d[11]!==r?(a=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{muted:!0,size:0,textOverflow:"ellipsis",children:r})}),d[11]=r,d[12]=a):a=d[12],d[13]!==i||d[14]!==a?(o=(0,v.jsxs)(I.BJ,{space:2,flex:1,children:[i,a]}),d[13]=i,d[14]=a,d[15]=o):o=d[15],d[16]!==n||d[17]!==o?(l=(0,v.jsx)(I.$n,{mode:"bleed",onClick:n,children:o}),d[16]=n,d[17]=o,d[18]=l):l=d[18],d[19]!==f||d[20]!==l?(s=(0,v.jsx)(I.BJ,{marginTop:f,children:l}),d[19]=f,d[20]=l,d[21]=s):s=d[21],s}function w5(e){let t,n,i,r=(0,j.c)(10),{items:a,onPathSelect:o,textInputElement:l}=e,{t:s}=as();r[0]!==a[0].path||r[1]!==o?(t=e=>{let t=(0,D.A)(e.path,a[0].path);return(0,v.jsx)(w2,{isFirst:t,item:e,onPathSelect:o})},r[0]=a[0].path,r[1]=o,r[2]=t):t=r[2];let d=t;return r[3]!==s?(n=s("tree-editing-dialog.search.menu-label"),r[3]=s,r[4]=n):n=r[4],r[5]!==a||r[6]!==d||r[7]!==n||r[8]!==l?
392(i=(0,v.jsx)(rr,{activeItemDataAttr:"data-hovered",ariaLabel:n,autoFocus:r6?void 0:"input",inputElement:l,itemHeight:51,items:a,overscan:5,padding:1,renderItem:d}),r[5]=a,r[6]=d,r[7]=n,r[8]=l,r[9]=i):i=r[9],i}let w0=["bottom-start"],w7=(0,eI.I4)(I.so).withConfig({displayName:"RootFlex",componentId:"sc-1r7it7n-0"})``,w3=(0,eI.I4)(I.so).withConfig({displayName:"PopoverListFlex",componentId:"sc-1r7it7n-1"})(e=>{let{$maxDisplayedItems:t,$itemHeight:n}=e;return(0,eI.AH)` 393 --item-height: ${n}px; 394 --max-items: ${t}; 395 --list-padding: 0.5rem; 396 397 position: relative; 398 max-height: calc(var(--item-height) * var(--max-items) + var(--list-padding)); 399 min-height: calc((var(--item-height) * 1)); 400 width: 100%; 401 `}),w8=(0,eI.I4)(tL.AM).withConfig({displayName:"StyledPopover",componentId:"sc-1r7it7n-2"})(()=>(0,eI.AH)` 402 [data-ui='Popover__wrapper'] { 403 min-width: 250px; 404 display: flex; 405 flex-direction: column; 406 border-radius: ${({theme:e})=>e.sanity.radius[3]}px; 407 position: relative; 408 overflow: hidden; 409 overflow: clip; 410 } 411 `),w4=(0,eI.I4)(I.ks).withConfig({displayName:"StyledTextInput",componentId:"sc-1r7it7n-3"})`border-radius:inherit;`;function w6(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(28),{items:h,onPathSelect:f}=e,[g,y]=(0,_.useState)(null),[C,x]=(0,_.useState)(""),{t:b}=as(),w=C.length>0,k=function(e){let t,n,i,r,a,o=(0,j.c)(8);o[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],o[0]=t):t=o[0];let[l,s]=(0,_.useState)(t),{observeForPreview:d}=cc();o[1]!==e?(n=v2(e),o[1]=e,o[2]=n):n=o[2];let c=n;o[3]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{let t=e.path;s(n=>n.some(e=>(0,D.A)(e.path,t))?n.map(n=>(0,D.A)(n.path,t)?{...e,title:e?.title}:n):n.concat(e))},o[3]=i):i=o[3];let u=i;return o[4]!==c||o[5]!==d?(r=()=>{s([]),c.forEach(e=>{d(e.value,e.schemaType).pipe((0,eV.T)(t=>({...e,title:t.snapshot?.title}))).subscribe(u).unsubscribe()})},a=[c,u,d],o[4]=c,o[5]=d,o[6]=r,o[7]=a):(r=o[6],a=o[7]),(0,_.useEffect)(r,a),l}(h);m[0]!==C||m[1]!==k?(u=v2(k),p=(0,ec.A)(C).toLocaleLowerCase(),t=u?.filter(e=>(0,ec.A)(e.title||"").toLocaleLowerCase().includes(p))?.sort((e,t)=>{let n=e.title?.startsWith(p),i=t.title?.startsWith(p);return n&&!i?-1:!n&&i?1:0}),m[0]=C,m[1]=k,m[2]=t):t=m[2];let S=t;m[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>x(""),m[3]=n):n=m[3];let T=n;m[4]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{x(e.target.value)},m[4]=i):i=m[4];let E=i;m[5]!==f?(r=e=>{f(e),T()},m[5]=f,m[6]=r):r=m[6];let $=r;m[7]!==g?(a=e=>{"Escape"===e.key&&(T(),g?.focus())},m[7]=g,m[8]=a):a=m[8];let A=a;m[9]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{requestAnimationFrame(()=>{T()})},m[9]=o):o=m[9];let z=o;e:{let e;if(0===S.length){let e,t;m[10]!==b?(e=b("tree-editing-dialog.search.no-results-title"),m[10]=b,m[11]=e):e=m[11],m[12]!==e?(t=(0,v.jsx)(I.Zp,{children:(0,v.jsx)(I.BJ,{padding:4,sizing:"border",space:3,children:(0,v.jsx)(I.EY,{align:"center",muted:!0,size:1,weight:"medium",children:e})})}),m[12]=e,m[13]=t):t=m[13],l=t;break e}m[14]!==S||m[15]!==$||m[16]!==g?(e=(0,v.jsx)(w7,{direction:"column",flex:1,height:"fill",children:(0,v.jsx)(I.Zp,{children:(0,v.jsx)(w3,{$itemHeight:51,$maxDisplayedItems:10,direction:"column",overflow:"hidden",children:(0,v.jsx)(w5,{items:S,onPathSelect:$,textInputElement:g})})})}),m[14]=S,m[15]=$,m[16]=g,m[17]=e):e=m[17],l=e}let P=l;return m[18]!==b?(s=b("tree-editing-dialog.search-placeholder"),m[18]=b,m[19]=s):s=m[19],m[20]!==A||m[21]!==C||m[22]!==s?(d=(0,v.jsx)(I.Zp,{radius:3,children:(0,v.jsx)(w4,{fontSize:1,icon:eT.WIv,onBlur:z,onChange:E,onKeyDown:A,placeholder:s,ref:y,value:C})}),m[20]=A,m[21]=C,m[22]=s,m[23]=d):d=m[23],m[24]!==P||m[25]!==w||m[26]!==d?(c=(0,v.jsx)(w8,{constrainSize:!0,content:P,fallbackPlacements:w0,matchReferenceWidth:!0,open:w,placement:"bottom-start",portal:!0,children:d}),m[24]=P,m[25]=w,m[26]=d,m[27]=c):c=m[27],c}function w9(e){return e.some(e=>e.children&&e.children.length>0)}let _e={block:"center",behavior:"smooth",scrollMode:"if-needed"},_t=(0,eI.I4)(eT.vKP).withConfig({displayName:"AnimateChevronIcon",componentId:"sc-1id3dw1-0"})`transition:transform 0.2s ease;&[data-expanded='true']{transform:rotate(90deg);}`,_n=eI.I4.div.withConfig({displayName:"Spacer",componentId:"sc-1id3dw1-1"})`min-width:23px;max-width:23px;`,_i=(0,eI.I4)(I.BJ).withConfig({displayName:"ChildStack",componentId:"sc-1id3dw1-2"})(({theme:e})=>{let t=(0,nN.JW)(e)?.space[3]||0,n=(0,nN.JW)(e)?.color._dark,i=ez.OZ.gray[n?900:200].hex;return(0,eI.AH)` 412 margin-left: ${t+2}px; 413 box-sizing: border-box; 414 border-left: 1px solid ${i}; 415 `}),_r=(0,eI.I4)(I.so).withConfig({displayName:"ItemFlex",componentId:"sc-1id3dw1-3"})(({theme:e})=>{let t=(0,nN.JW)(e)?.color.button.bleed.default.hovered.bg,n=(0,nN.JW)(e)?.color.button.bleed.default.pressed.bg,i=(0,nN.JW)(e)?.color.button.bleed.default.selected.bg;return(0,eI.AH)` 416 padding: 2px; 417 padding-right: 3px; 418 box-sizing: border-box; 419 transition: inherit; 420 border-radius: ${(0,nN.JW)(e).radius[2]}px; 421 422 &[data-selected='true'] { 423 background-color: ${i}; 424 } 425 426 [data-ui='ExpandButton'], 427 [data-ui='NavigateButton'] { 428 transition: inherit; 429 background-color: inherit; 430 box-shadow: unset; 431 } 432 433 @media (hover: hover) { 434 &:hover { 435 &[data-selected='false'] { 436 background-color: ${t}; 437 border-radius: ${(0,nN.JW)(e).radius[2]}px; 438 439 [data-ui='ExpandButton']:hover { 440 background-color: ${n}; 441 } 442 } 443 444 [data-ui='ExpandButton']:hover { 445 background-color: ${t}; 446 } 447 } 448 } 449 `});function _a(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(58),{item:k,onPathSelect:S,selectedPath:T,siblingHasChildren:E}=e,{children:$}=k,A=$&&$.length>0,[z,P]=(0,_.useState)(!1),[R,N]=(0,_.useState)(null),{t:O}=as();b[0]!==k.schemaType||b[1]!==k.value?(t={schemaType:k.schemaType,value:k.value},b[0]=k.schemaType,b[1]=k.value,b[2]=t):t=b[2];let{value:V}=v6(t);b[3]!==k.path||b[4]!==T?(n=(0,D.A)(k.path,T),b[3]=k.path,b[4]=T,b[5]=n):n=b[5];let M=n,L=!wd(k.path);b[6]!==k.path?(i=(0,w.dI)(k.path),b[6]=k.path,b[7]=i):i=b[7];let F=i;e:{if(L){let e;b[8]!==k.schemaType?(e=v1(k.schemaType),b[8]=k.schemaType,b[9]=e):e=b[9],r=e;break e}r=V.title}let B=r;t:{let e;if(!A){a=null;break t}let t=z?"true":"false";b[10]!==t?(e=(0,v.jsx)(_t,{"data-expanded":t}),b[10]=t,b[11]=e):e=b[11],a=e}let Y=a;n:{if(L){let e;b[12]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eT.dSb,{}),b[12]=e):e=b[12],o=e;break n}o=V.media}let H=o;b[13]!==k.path||b[14]!==S?(l=()=>S(k.path),b[13]=k.path,b[14]=S,b[15]=l):l=b[15];let U=l;b[16]===Symbol.for("react.memo_cache_sentinel")?(s=()=>P(_o),b[16]=s):s=b[16];let Z=s;b[17]!==k||b[18]!==T?(d=()=>{(function e(t,n){return t.children?.some(t=>(0,D.A)(t.path,n)||e(t,n))||!1})(k,T)&&P(!0)},c=[k,T],b[17]=k,b[18]=T,b[19]=d,b[20]=c):(d=b[19],c=b[20]),(0,_.useEffect)(d,c),b[21]!==R||b[22]!==M?(u=()=>{R&&M&&(0,il.A)(R,_e)},p=[R,M],b[21]=R,b[22]=M,b[23]=u,b[24]=p):(u=b[23],p=b[24]),(0,_.useEffect)(u,p),b[25]!==Y||b[26]!==z||b[27]!==F||b[28]!==O||b[29]!==B?(m=Y&&(0,v.jsx)(I.$n,{"aria-label":`${O(z?"tree-editing-dialog.sidebar.action.collapse":"tree-editing-dialog.sidebar.action.expand")} ${B}`,"data-testid":`tree-editing-menu-expand-button-${F}`,"data-ui":"ExpandButton",mode:"bleed",onClick:Z,padding:2,children:(0,v.jsx)(I.EY,{size:0,muted:!0,children:Y})}),b[25]=Y,b[26]=z,b[27]=F,b[28]=O,b[29]=B,b[30]=m):m=b[30],b[31]!==Y||b[32]!==E?(h=!Y&&E&&(0,v.jsx)(_
449n,{}),b[31]=Y,b[32]=E,b[33]=h):h=b[33];let q=`tree-editing-menu-navigate-button-${F}`;return b[34]!==H||b[35]!==B?(f=(0,v.jsx)(I.so,{align:"center",children:(0,v.jsx)(j8,{layout:"inline",media:H,title:B})}),b[34]=H,b[35]=B,b[36]=f):f=b[36],b[37]!==U||b[38]!==q||b[39]!==f||b[40]!==B?(g=(0,v.jsx)(I.BJ,{flex:1,children:(0,v.jsx)(I.$n,{"data-testid":q,"data-ui":"NavigateButton",mode:"bleed",onClick:U,padding:1,title:B,children:f})}),b[37]=U,b[38]=q,b[39]=f,b[40]=B,b[41]=g):g=b[41],b[42]!==M||b[43]!==m||b[44]!==h||b[45]!==g?(y=(0,v.jsx)(I.Zp,{"data-as":"button","data-testid":"tree-editing-menu-item",overflow:"hidden",radius:2,tone:"inherit",children:(0,v.jsxs)(_r,{align:"center","data-selected":M,"data-testid":"tree-editing-menu-item-content",children:[m,h,g]})}),b[42]=M,b[43]=m,b[44]=h,b[45]=g,b[46]=y):y=b[46],b[47]!==$||b[48]!==A||b[49]!==S||b[50]!==z||b[51]!==T?(C=z&&A&&(0,v.jsx)(_i,{flex:1,forwardedAs:"ul",paddingLeft:1,role:"group",space:1,children:$.map(e=>{let t=w9($);return(0,v.jsx)(_a,{item:e,onPathSelect:S,selectedPath:T,siblingHasChildren:t},(0,w.dI)(e.path))})}),b[47]=$,b[48]=A,b[49]=S,b[50]=z,b[51]=T,b[52]=C):C=b[52],b[53]!==z||b[54]!==F||b[55]!==y||b[56]!==C?(x=(0,v.jsxs)(I.BJ,{"aria-expanded":z,as:"li",ref:N,role:"treeitem",space:1,children:[y,C]},F),b[53]=z,b[54]=F,b[55]=y,b[56]=C,b[57]=x):x=b[57],x}function _o(e){return!e}let _l=(0,_.memo)(function(e){let t,n,i=(0,j.c)(6),{items:r,onPathSelect:a,selectedPath:o}=e;return i[0]!==r||i[1]!==a||i[2]!==o?(t=r.map(e=>{let t=w9(r);return(0,v.jsx)(_a,{item:e,onPathSelect:a,selectedPath:o,siblingHasChildren:t},(0,w.dI)(e.path))}),i[0]=r,i[1]=a,i[2]=o,i[3]=t):t=i[3],i[4]!==t?(n=(0,v.jsx)(I.BJ,{as:"ul","data-testid":"tree-editing-menu",role:"tree",space:2,children:t}),i[4]=t,i[5]=n):n=i[5],n}),_s={initial:{opacity:0}
449,animate:{opacity:1},exit:{opacity:0}},_d=(0,eI.I4)(I.Zp).withConfig({displayName:"SidebarCard",componentId:"sc-jwefiy-0"})`flex-direction:column;`,_c=(0,eI.I4)(ir.P.create(I.BJ)).withConfig({displayName:"SidebarStack",componentId:"sc-jwefiy-1"})`overflow-x:hidden;`,_u=(0,eI.I4)(I.BJ).withConfig({displayName:"SearchStack",componentId:"sc-jwefiy-2"})`min-height:max-content;`,_p=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(33),{items:u,onPathSelect:p,selectedPath:m,onOpenToggle:h,open:f,title:g}=e,{t:y}=as();c[0]!==f||c[1]!==y?(t=y(f?"tree-editing-dialog.sidebar.action.close":"tree-editing-dialog.sidebar.action.open"),c[0]=f,c[1]=y,c[2]=t):t=c[2],c[3]!==t?(n={content:t},c[3]=t,c[4]=n):n=c[4];let C=n,x=!f;c[5]!==h||c[6]!==f||c[7]!==C?(i=(0,v.jsx)(tL.$n,{"data-testid":"tree-editing-sidebar-toggle",icon:eT.lC2,mode:"bleed",onClick:h,selected:f,tooltipProps:C}),c[5]=h,c[6]=f,c[7]=C,c[8]=i):i=c[8],c[9]!==f||c[10]!==g?(r=f&&(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.EY,{size:1,muted:!0,weight:"medium",textOverflow:"ellipsis",children:g})}),c[9]=f,c[10]=g,c[11]=r):r=c[11],c[12]!==i||c[13]!==r?(a=(0,v.jsxs)(wK,{align:"center",gap:2,children:[i,r]}),c[12]=i,c[13]=r,c[14]=a):a=c[14],c[15]!==u||c[16]!==p||c[17]!==f?(o=f&&(0,v.jsx)(_u,{padding:2,sizing:"border",children:(0,v.jsx)(w6,{items:u,onPathSelect:p})}),c[15]=u,c[16]=p,c[17]=f,c[18]=o):o=c[18],c[19]!==u||c[20]!==p||c[21]!==f||c[22]!==m?(l=f&&(0,v.jsx)(_c,{animate:"animate",exit:"exit",initial:"initial",overflow:"auto",padding:3,sizing:"border",variants:_s,children:(0,v.jsx)(_l,{items:u,onPathSelect:p,selectedPath:m})}),c[19]=u,c[20]=p,c[21]=f,c[22]=m,c[23]=l):l=c[23],c[24]!==l?(s=(0,v.jsx)(ia.N,{mode:"wait",children:l}),c[24]=l,c[25]=s):s=c[25],c[26]!==x||c[27]!==a||c[28]!==o||c[29]!==s?(d=(0,v.jsxs)(_d,{borderRight:x,"data-testid":"tree-editing-sidebar","data-ui":"SidebarCard",display:"flex",forwardedAs:"aside",height:"fill",overflow:"hidden",tone:"transparent",children:[a,o,s]}),c[26]=x,c[27]=a,c[28]=o,c[29]=s,c[30]=d):d=c[30];let b=d;if(f){let e;return c[31]!==b?(e=(0,v.jsx)(w1,{maxWidth:450,minWidth:150,initialWidth:250,children:b}),c[31]=b,c[32]=e):e=c[32],e}return b}),_m=[0,0,1,0];function _h(e){return!e}function _f(e){let t,n,i=(0,j.c)(16);i[0]!==e?({children:t,...n}=e,i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]);let r=(0,_.useContext)(S.lH),{unstable_sources:a}=cY();if("source"in n){let e,{source:r}=n;return i[3]!==t||i[4]!==r?(e=(0,v.jsx)(S.lH.Provider,{value:r,children:t}),i[3]=t,i[4]=r,i[5]=e):e=i[5],e}if("name"in n){let e,o,{name:l}=n;if(i[6]!==l||i[7]!==a){let t;i[9]!==l?(t=e=>e.name===l,i[9]=l,i[10]=t):t=i[10],e=a.find(t),i[6]=l,i[7]=a,i[8]=e}else e=i[8];let s=e;if(!s)throw Error(`Could not find source with name \`${l}\` in current workspace`);if(r===s){let e;return i[11]!==t?(e=(0,v.jsx)(v.Fragment,{children:t}),i[11]=t,i[12]=e):e=i[12],e}return i[13]!==t||i[14]!==s?(o=(0,v.jsx)(S.lH.Provider,{value:s,children:t}),i[13]=t,i[14]=s,i[15]=o):o=i[15],o}throw Error("Invalid props passed into SourceProvider. A `name` or a `source` object is required.")}function _g(){let e=(0,_.useContext)(S.lH);if(!e)throw Error("Could not find `source` context");return e}function _y(e){let t,n,i=(0,j.c)(5),{children:r,legacyEditing:a}=e;_g();let o=!!a;i[0]!==o?(t={enabled:!0,legacyEditing:o},i[0]=o,i[1]=t):t=i[1];let l=t;return i[2]!==r||i[3]!==l?(n=(0,v.jsx)(S.pz.Provider,{value:l,children:r}),i[2]=r,i[3]=l,i[4]=n):n=i[4],n}function _C(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(53),{t:w}=as(),{onInsert:_,schemaTypes:k}=e;b[0]!==e.schemaTypes?(t=e.schemaTypes??[],b[0]=e.schemaTypes,b[1]=t):t=b[1],b[2]!==e?(n=t=>{e.onInsert("before",t)},b[2]=e,b[3]=n):n=b[3],b[4]!==e.insertMenuOptions||b[5]!==t||b[6]!==n?(i={...e.insertMenuOptions,schemaTypes:t,onSelect:n},b[4]=e.insertMenuOptions,b[5]=t,b[6]=n,b[7]=i):i=b[7],b[8]===Symbol.for("react.memo_cache_sentinel")?(r=["bottom-end"],b[8]=r):r=b[8],b[9]!==e.referenceElement?(a={referenceElement:e.referenceElement,placement:"top-end",fallbackPlacements:r},b[9]=e.referenceElement,b[10]=a):a=b[10],b[11]!==i||b[12]!==a?(o={insertMenuProps:i,popoverProps:a},b[11]=i,b[12]=a,b[13]=o):o=b[13];let S=vR(o);b[14]!==e.schemaTypes?(l=e.schemaTypes??[],b[14]=e.schemaTypes,b[15]=l):l=b[15],b[16]!==e?(s=t=>{e.onInsert("after",t)},b[16]=e,b[17]=s):s=b[17],b[18]!==e.insertMenuOptions||b[19]!==l||b[20]!==s?(d={...e.insertMenuOptions,schemaTypes:l,onSelect:s},b[18]=e.insertMenuOptions,b[19]=l,b[20]=s,b[21]=d):d=b[21],b[22]===Symbol.for("react.memo_cache_sentinel")?(c=["top-end"],b[22]=c):c=b[22],b[23]!==e.referenceElement?(u={referenceElement:e.referenceElement,placement:"bottom-end",fallbackPlacements:c},b[23]=e.referenceElement,b[24]=u):u=b[24],b[25]!==u||b[26]!==d?(p={insertMenuProps:d,popoverProps:u},b[25]=u,b[26]=d,b[27]=p):p=b[27];let I=vR(p);b[28]!==S||b[29]!==_||b[30]!==k?(m=()=>{k&&(1===k.length?_("before",k[0]):S.send({type:"toggle"}))},b[28]=S,b[29]=_,b[30]=k,b[31]=m):m=b[31];let T=m;b[32]!==I||b[33]!==_||b[34]!==k?(h=()=>{k&&(1===k.length?_("after",k[0]):I.send({type:"toggle"}))},b[32]=I,b[33]=_,b[34]=k,b[35]=h):h=b[35];let E=h;b[36]!==T||b[37]!==w||b[38]!==k?(f=k?(0,v.jsx)(tL.Dr,{text:1===k.length?w("inputs.array.action.add-before"):`${w("inputs.array.action.add-before")}...`,icon:eT.SKY,onClick:T},"insertBefore"):null,b[36]=T,b[37]=w,b[38]=k,b[39]=f):f=b[39];let $=f;b[40]!==E||b[41]!==w||b[42]!==k?(g=k?(0,v.jsx)(tL.Dr,{text:1===k.length?w("inputs.array.action.add-after"):`${w("inputs.array.action.add-after")}...`,icon:eT.amD,onClick:E},"insertAfter"):null,b[40]=E,b[41]=w,b[42]=k,b[43]=g):g=b[43];let A=g;return b[44]!==S||b[45]!==$?(y={...S,menuItem:$},b[44]=S,b[45]=$,b[46]=y):y=b[46],b[47]!==I||b[48]!==A?(C={...I,menuItem:A},b[47]=I,b[48]=A,b[49]=C):C=b[49],b[50]!==y||b[51]!==C?(x={insertBefore:y,insertAfter:C},b[50]=y,b[51]=C,b[52]=x):x=b[52],x}(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(27),{breadcrumbs:c,children:u,footer:p,items:m,onPathSelect:h,selectedPath:f,setScrollElement:g,title:y,siblings:C}=e,[x,b]=(0,_.useState)(null),w=(0,_.useRef)(null),[k,S]=(0,_.useState)(!1);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>S(_h),d[0]=t):t=d[0];let T=t;d[1]!==g?(n=e=>{b(e),g?.(e)},d[1]=g,d[2]=n):n=d[2];let E=n;return d[3]!==m||d[4]!==h||d[5]!==k||d[6]!==f||d[7]!==y?(i=(0,v.jsx)(_p,{items:m,onOpenToggle:T,onPathSelect:h,open:k,selectedPath:f,title:y}),d[3]=m,d[4]=h,d[5]=k,d[6]=f,d[7]=y,d[8]=i):i=d[8],d[9]!==c||d[10]!==h||d[11]!==f||d[12]!==C?(r=(0,v.jsx)(wK,{align:"center",sizing:"border",gap:2,paddingX:4,children:(0,v.jsx)(I.so,{flex:1,children:(0,v.jsx)(ja,{items:c,onPathSelect:h,selectedPath:f,siblings:C})})}),d[9]=c,d[10]=h,d[11]=f,d[12]=C,d[13]=r):r=d[13],d[14]!==u||d[15]!==x?(a=u&&(0,v.jsx)(wr,{containerElement:w,scrollElement:x,children:(0,v.jsx)(I.mc,{width:1,ref:w,paddingX:5,paddingY:5,sizing:"border",children:(0,v.jsx)(wJ,{margins:_m,children:u})})}),d[14]=u,d[15]=x,d[16]=a):a=d[16],d[17]!==E||d[18]!==a?(o=(0,v.jsx)(I.Zp,{flex:1,id:"tree-editing-form",overflow:"auto",ref:E,children:a}),d[17]=E,d[18]=a,d[19]=o):o=d[19],d[20]!==p||d[21]!==r||d[22]!==o?(l=(0,v.jsxs)(I.so,{direction:"column",flex:1,overflow:"hidden",children:[r,o,p]}),d[20]=p,d[21]=r,d[22]=o,d[23]=l):l=d[23],d[24]!==i||d[25]!==l?(s=(0,v.jsxs)(I.so,{height:"fill",overflow:"hidden",children:[i,l]}),d[24]=i,d[25]=l,d[26]=s):s=d[26],s});let _x=(0,eI.I4)(I.Zp).withConfig({displayName:"PreviewCard",componentId:"sc-1ig9263-0"})`border-top-right-radius:inherit;border-top-left-radius:inherit;height:100%;position:relative;@media (hover:hover){&:hover{filter:brightness(95%);}}&:focus:focus-visible{box-shadow:0 0 0 2px var(--card-focus-ring-color);}`,_b={portal:!0,tone:"default"},_v=[];function _j(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(96),{schemaType:T,parentSchemaType:E,path:$,readOnly:A,onRemove:D,value:z,open:P,onInsert:R,onCopy:N,onFocus:O,onOpen:V,onClose:M,changed:L,focused:F,children:B,inputProps:Y}=e,{renderPreview:H}=Y,{t:U}=as(),{enabled:Z}=y3(),q=z[CE],W="number"==typeof q?.progress?q?.progress:void 0,J=P&&!Z,K=P&&Z,G=E.options?.sortable!==!1,X=E.of,[Q,ee]=(0,_.useState)(null),et=(0,_.useRef)(null);S[0]!==Q?(t=()=>
449Q,n=[Q],S[0]=Q,S[1]=t,S[2]=n):(t=S[1],n=S[2]),(0,_.useImperativeHandle)(et,t,n),fI(et,P),S[3]===Symbol.for("react.memo_cache_sentinel")?(i=(e,t)=>{!e&&t&&et.current&&et.current?.focus()},S[3]=i):i=S[3],fS(F,i);let en=z._resolvingInitialValue;S[4]!==R||S[5]!==z?(r=()=>{R({items:[{...z,_key:y4()}],position:"after"})},S[4]=R,S[5]=z,S[6]=r):r=S[6];let ei=r;S[7]!==N||S[8]!==z?(a=()=>{N({items:[{...z,_key:y4()}]})},S[7]=N,S[8]=z,S[9]=a):a=S[9];let er=a;S[10]!==R?(o=(e,t)=>{R({items:[Ch(t)],position:e})},S[10]=R,S[11]=o):o=S[11];let ea=o,eo=hT($,!0);S[12]!==eo?(l=0===eo.length?null:(0,v.jsx)(wy,{presence:eo,maxAvatars:1}),S[12]=eo,S[13]=l):l=S[13];let el=l,es=hO($,!0);S[14]!==es?(s=0===es.length?null:(0,v.jsx)(I.az,{paddingX:1,paddingY:3,children:(0,v.jsx)(xA,{validation:es,__unstable_showSummary:!0})}),S[14]=es,S[15]=s):s=S[15];let ed=s,ec=es.some(_k),eu=es.some(__),[ep,em]=(0,_.useState)(null),eh=E.options?.insertMenu;S[16]!==ep||S[17]!==ea||S[18]!==X||S[19]!==eh?(d={schemaTypes:X,insertMenuOptions:eh,onInsert:ea,referenceElement:ep},S[16]=ep,S[17]=ea,S[18]=X,S[19]=eh,S[20]=d):d=S[20];let{insertBefore:ef,insertAfter:eg}=_C(d),ey=E.options?.disableActions||_v;S[21]!==ey||S[22]!==D||S[23]!==U?(c=!ey.includes("remove")&&(0,v.jsx)(tL.Dr,{text:U("inputs.array.action.remove"),tone:"critical",icon:eT.ucK,onClick:D},"remove"),S[21]=ey,S[22]=D,S[23]=U,S[24]=c):c=S[24],S[25]!==ey||S[26]!==er||S[27]!==U?(u=!ey.includes("copy")&&(0,v.jsx)(tL.Dr,{text:U("inputs.array.action.copy"),icon:eT.TdU,onClick:er},"copy"),S[25]=ey,S[26]=er,S[27]=U,S[28]=u):u=S[28],S[29]!==ey||S[30]!==ei||S[31]!==U?(p=!ey.includes("duplicate")&&(0,v.jsx)(tL.Dr,{text:U("inputs.array.action.duplicate"),icon:eT.g$z,onClick:ei},"duplicate"),S[29]=ey,S[30]=ei,S[31]=U,S[32]=p):p=S[32],S[33]!==ey||S[34]!==ef.menuItem?(m=!ey.includes("add")&&!ey.includes("addBefore")&&ef.menuItem,S[33]=ey,S[34]=ef.menuItem,S[35]=m):m=S[35],S[36]!==ey||S[37]!==eg.menuItem?(h=!ey.includes("add")&&!ey.includes("addAfter")&&eg.menuItem,S[36]=ey,S[37]=eg.menuItem,S[38]=h):h=S[38],S[39]!==c||S[40]!==u||S[41]!==p||S[42]!==m||S[43]!==h?(f=[c,u,p,m,h].filter(Boolean),S[39]=c,S[40]=u,S[41]=p,S[42]=m,S[43]=h,S[44]=f):f=S[44];let eC=f;S[45]!==eg||S[46]!==ef||S[47]!==eC||S[48]!==e.inputId||S[49]!==A?(g=A||0===eC.length?null:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(tL.IU,{ref:em,onOpen:()=>{ef.send({type:"close"}),eg.send({type:"close"})},button:(0,v.jsx)(rl,{"data-testid":"array-item-menu-button",selected:!!ef.state.open||!!eg.state.open||void 0}),id:`${e.inputId}-menuButton`,menu:(0,v.jsx)(I.W1,{children:eC}),popover:_b}),ef.popover,eg.popover]}),S[45]=eg,S[46]=ef,S[47]=eC,S[48]=e.inputId,S[49]=A,S[50]=g):g=S[50];let ex=g,eb=function({readOnly:e,hasErrors:t,hasWarnings:n}){return e?"transparent":t?"critical":n?"caution":"default"}({readOnly:A,hasErrors:ec,hasWarnings:eu});S[51]!==V?(y=e=>{e.stopPropagation(),V()},S[51]=V,S[52]=y):y=S[52];let ev=y;S[53]!==H||S[54]!==T||S[55]!==W||S[56]!==z?(C=H({schemaType:T,value:z,layout:"media",withBorder:!1,withShadow:!1,progress:W}),S[53]=H,S[54]=T,S[55]=W,S[56]=z,S[57]=C):C=S[57],S[58]!==en?(x=en&&(0,v.jsx)(ry,{fill:!0}),S[58]=en,S[59]=x):x=S[59],S[60]!==ev||S[61]!==O||S[62]!==en||S[63]!==C||S[64]!==x?(b=(0,v.jsxs)(_x,{tone:"inherit",overflow:"auto",forwardedAs:"button","data-ui":"PreviewCard","data-as":"button",type:"button",flex:1,tabIndex:0,disabled:en,onMouseDown:_w,onClick:ev,ref:ee,onFocus:O,__unstable_focusRing:!0,children:[C,x]}),S[60]=ev,S[61]=O,S[62]=en,S[63]=C,S[64]=x,S[65]=b):b=S[65],S[66]!==ex||S[67]!==J||S[68]!==el||S[69]!==A||S[70]!==G||S[71]!==b||S[72]!==eb||S[73]!==ed?(w=(0,v.jsx)(vU,{menu:ex,presence:el,validation:ed,tone:eb,radiu
449s:2,border:!0,dragHandle:G,selected:J,readOnly:A,children:b}),S[66]=ex,S[67]=J,S[68]=el,S[69]=A,S[70]=G,S[71]=b,S[72]=eb,S[73]=ed,S[74]=w):w=S[74];let ej=w;if(S[75]!==L||S[76]!==B||S[77]!==F||S[78]!==ej||S[79]!==M||S[80]!==K||S[81]!==J||S[82]!==E.options?.modal?.type||S[83]!==E.options?.modal?.width||S[84]!==$||S[85]!==Q||S[86]!==A||S[87]!==T||S[88]!==U||S[89]!==z){let e,t=v1(T),n=!!F;S[91]!==L||S[92]!==ej||S[93]!==$||S[94]!==n?(e=(0,v.jsx)(S1,{path:$,isChanged:L,hasFocus:n,children:ej}),S[91]=L,S[92]=ej,S[93]=$,S[94]=n,S[95]=e):e=S[95],k=(0,v.jsxs)(_y,{children:[e,J&&(0,v.jsx)(Bv,{header:U(A?"inputs.array.action.view":"inputs.array.action.edit",{itemTypeTitle:t}),type:E?.options?.modal?.type||"dialog",width:E?.options?.modal?.width??1,id:z._key,onClose:M,autofocus:F,legacy_referenceElement:Q,children:B}),K&&(0,v.jsx)(BO,{header:U(A?"inputs.array.action.view":"inputs.array.action.edit",{itemTypeTitle:t}),type:E?.options?.modal?.type||"dialog",width:E?.options?.modal?.width??1,id:z._key,onClose:M,autofocus:F,legacy_referenceElement:Q,children:B})]}),S[75]=L,S[76]=B,S[77]=F,S[78]=ej,S[79]=M,S[80]=K,S[81]=J,S[82]=E.options?.modal?.type,S[83]=E.options?.modal?.width,S[84]=$,S[85]=Q,S[86]=A,S[87]=T,S[88]=U,S[89]=z,S[90]=k}else k=S[90];return k}function _w(e){e.preventDefault()}function __(e){return"warning"===e.level}function _k(e){return"error"===e.level}let _S=[];function _I(e){let t,n,i,r,a,o,l,s=(0,j.c)(40),{arrayFunctions:d,elementProps:c,members:u,onChange:p,onItemPrepend:m,onItemAppend:h,onItemMove:f,onSelectFile:g,onUpload:y,readOnly:C,renderAnnotation:x,renderBlock:b,renderField:w,renderInlineBlock:_,renderInput:k,renderPreview:S,schemaType:T,value:E}=e,$=void 0===d?vO:d,A=void 0===E?_S:E,{t:D}=as(),z=T.options?.sortable!==!1;
449s[0]!==u?(t=u.map(_T),s[0]=u,s[1]=t):t=s[1];let P=t;return s[2]!==u.length||s[3]!==T.placeholder||s[4]!==D?(n=u?.length===0&&(0,v.jsx)(I.Zp,{padding:3,border:!0,radius:2,children:(0,v.jsx)(I.EY,{align:"center",muted:!0,size:1,children:T.placeholder||(0,v.jsx)(v.Fragment,{children:D("inputs.array.no-items-label")})})}),s[2]=u.length,s[3]=T.placeholder,s[4]=D,s[5]=n):n=s[5],s[6]!==P||s[7]!==u||s[8]!==f||s[9]!==C||s[10]!==x||s[11]!==b||s[12]!==w||s[13]!==_||s[14]!==k||s[15]!==S||s[16]!==z?(i=u?.length>0&&(0,v.jsx)(I.Zp,{border:!0,radius:1,children:(0,v.jsx)(vD,{columns:[2,3,4],gap:3,padding:1,margin:1,items:P,onItemMove:f,sortable:z,children:u.map(e=>(0,v.jsxs)(vz,{sortable:z,id:e.key,flex:1,children:["item"===e.kind&&(0,v.jsx)(Ct,{member:e,renderAnnotation:x,renderBlock:b,renderInlineBlock:_,renderItem:_E,renderField:w,renderInput:k,renderPreview:S}),"error"===e.kind&&(0,v.jsx)(vK,{sortable:z,member:e,readOnly:C})]},e.key))})}),s[6]=P,s[7]=u,s[8]=f,s[9]=C,s[10]=x,s[11]=b,s[12]=w,s[13]=_,s[14]=k,s[15]=S,s[16]=z,s[17]=i):i=s[17],s[18]!==n||s[19]!==i?(r=(0,v.jsxs)(I.BJ,{"data-ui":"ArrayInput__content",space:2,children:[n,i]}),s[18]=n,s[19]=i,s[20]=r):r=s[20],s[21]!==c||s[22]!==g||s[23]!==y||s[24]!==C||s[25]!==T.of||s[26]!==r?(a=(0,v.jsx)(v_,{...c,isReadOnly:C,onSelectFile:g,onUpload:y,tabIndex:0,types:T.of,children:r}),s[21]=c,s[22]=g,s[23]=y,s[24]=C,s[25]=T.of,s[26]=r,s[27]=a):a=s[27],s[28]!==$||s[29]!==p||s[30]!==h||s[31]!==m||s[32]!==e.path||s[33]!==C||s[34]!==T||s[35]!==A?(o=(0,v.jsx)($,{onChange:p,onItemAppend:h,onItemPrepend:m,onValueCreate:Ch,path:e.path,readOnly:C,schemaType:T,value:A}),s[28]=$,s[29]=p,s[30]=h,s[31]=m,s[32]=e.path,s[33]=C,s[34]=T,s[35]=A,s[36]=o):o=s[36],s[37]!==a||s[38]!==o?(l=(0,v.jsxs)(I.BJ,{space:2,children:[a,o]}),s[37]=a,s[38]=o,s[39]=l):l=s[39],l}function _T(e){return e.key}function _E(e){return(0,v.jsx)(_j,{...e})}function _$(e){return e+1}let _A=(0,eI.I4)(I.Zp).withConfig({displayName:"Root",componentId:"sc-1944sat-0"})`position:relative;border:1px solid transparent;transition:border-color 250ms;.${vk} &{border-color:var(--card-shadow-umbra-color);box-shadow:0 0 0 0,0 8px 17px 2px var(--card-shadow-umbra-color),0 3px 14px 2px var(--card-shadow-penumbra-color),0 5px 5px -3px var(--card-shadow-ambient-color);}&:hover{border-color:var(--card-shadow-umbra-color);}&[aria-selected='true']{border-color:var(--card-focus-ring-color);}`;function _D(e){let t,n,i,r,a,o,l,s=(0,j.c)(21),{validation:d,selected:c,tone:u,presence:p,focused:m,children:h,dragHandle:f,menu:g,footer:y,readOnly:C}=e,x=(0,_.useRef)(null);return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(e,t)=>{!e&&t&&x.current?.focus()},s[0]=t):t=s[0],fS(m,t),s[1]!==f||s[2]!==C?(n=f&&(0,v.jsx)(vL,{paddingY:3,readOnly:C}),s[1]=f,s[2]=C,s[3]=n):n=s[3],s[4]!==h?(i=(0,v.jsx)(I.az,{flex:1,children:h}),s[4]=h,s[5]=i):i=s[5],s[6]!==g||s[7]!==p||s[8]!==d?(r=(p||d||g)&&(0,v.jsxs)(I.so,{align:"center",flex:"none",gap:2,style:{lineHeight:0},children:[p&&(0,v.jsx)(I.az,{flex:"none",children:p}),d&&(0,v.jsx)(I.az,{flex:"none",children:d}),g]}),s[6]=g,s[7]=p,s[8]=d,s[9]=r):r=s[9],s[10]!==n||s[11]!==i||s[12]!==r?(a=(0,v.jsxs)(I.so,{align:"center",gap:1,children:[n,i,r]}),s[10]=n,s[11]=i,s[12]=r,s[13]=a):a=s[13],s[14]!==y||s[15]!==a?(o=(0,v.jsxs)(I.BJ,{space:1,children:[a,y]}),s[14]=y,s[15]=a,s[16]=o):o=s[16],s[17]!==c||s[18]!==o||s[19]!==u?(l=(0,v.jsx)(_A,{ref:x,selected:c,"aria-selected":c,radius:1,padding:1,tone:u,children:o}),s[17]=c,s[18]=o,s[19]=u,s[20]=l):l=s[20],l}let _z=(0,eI.I4)(I.Zp).withConfig({displayName:"PopoverCard",componentId:"sc-19eub2f-0"})`max-width:${({theme:e})=>e.sanity.container[1]}px;`;function _P(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A=(0,j.c)(54);if(A[0]!==e){let{value:r,onFocus:a,vertical:o,...l}=e;i=r,t=a,n=l,A[0]=e,A[1]=t,A[2]=n,A[3]=i}else t=A[1],n=A[2],i=A[3];let[D,z]=(0,_.useState)(!1),P=(0,_.useRef)(null),{t:R}=as();A[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>z(!1),a=()=>[P.current],A[4]=r,A[5]=a):(r=A[4],a=A[5]),(0,I.PR)(r,a),A[6]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{("Escape"===e.key||"Tab"===e.key)&&z(!1)},A[6]=o):o=A[6];let N=o;A[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{z(_R)},A[7]=l):l=A[7];let O=l;A[8]!==i?(s=(0,nq.yu)(i),A[8]=i,A[9]=s):s=A[9];let V=s;return A[10]!==R?(d=R("inputs.array.error.type-is-incompatible-title"),A[10]=R,A[11]=d):d=A[11],A[12]!==d?(c=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{weight:"medium",children:d})}),A[12]=d,A[13]=c):c=A[13],A[14]!==V?(u={typeName:V},A[14]=V,A[15]=u):u=A[15],A[16]!==R||A[17]!==u?(p=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{t:R,i18nKey:"inputs.array.error.current-schema-not-declare-description",values:u})}),A[16]=R,A[17]=u,A[18]=p):p=A[18],A[19]===Symbol.for("react.memo_cache_sentinel")?(m=(0,v.jsx)(eT.Pnw,{}),A[19]=m):m=A[19],A[20]!==R?(h=R("inputs.array.error.can-delete-but-no-edit-description"),A[20]=R,A[21]=h):h=A[21],A[22]!==h?(f=(0,v.jsx)(I.az,{children:(0,v.jsxs)(I.EY,{size:1,children:[m," ",h]})}),A[22]=h,A[23]=f):f=A[23],A[24]!==R?(g=R("inputs.array.error.json-representation-description"),A[24]=R,A[25]=g):g=A[25],A[26]!==g?(y=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:g}),A[26]=g,A[27]=y):y=A[27],A[28]!==i?(C=JSON.stringify(i,null,2),A[28]=i,A[29]=C):C=A[29],A[30]!==C?(x=(0,v.jsx)(I.Zp,{padding:2,overflow:"auto",border:!0,children:(0,v.jsx)(I.Cy,{size:1,as:"pre",language:"json",children:C})}),A[30]=C,A[31]=x):x=A[31],A[32]!==y||A[33]!==x?(b=(0,v.jsxs)(I.BJ,{space:2,children:[y,x]}),A[32]=y,A[33]=x,A[34]=b):b=A[34],A[35]!==f||A[36]!==b||A[37]!==c||A[38]!==p?(w=(0,v.jsx)(_z,{margin:1,padding:3,onKeyDown:N,tabIndex:0,overflow:"auto",children:(0,v.jsxs)(I.BJ,{space:4,children:[c,p,f,b]})}
449),A[35]=f,A[36]=b,A[37]=c,A[38]=p,A[39]=w):w=A[39],A[40]===Symbol.for("react.memo_cache_sentinel")?(k=(0,v.jsx)(I.az,{marginRight:3,children:(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.KSC,{})})}),A[40]=k):k=A[40],A[41]!==V?(S={typeName:V},A[41]=V,A[42]=S):S=A[42],A[43]!==R||A[44]!==S?(T=(0,v.jsxs)(I.so,{align:"center",children:[k,(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",children:(0,v.jsx)(aE,{t:R,i18nKey:"inputs.array.error.type-is-incompatible-prompt",values:S})})})]}),A[43]=R,A[44]=S,A[45]=T):T=A[45],A[46]!==t||A[47]!==n||A[48]!==T?(E=(0,v.jsx)(I.Zp,{as:"button",type:"button",radius:2,tone:"inherit",paddingX:2,paddingY:3,flex:1,onFocus:t,onClick:O,onKeyDown:N,__unstable_focusRing:!0,...n,children:T}),A[46]=t,A[47]=n,A[48]=T,A[49]=E):E=A[49],A[50]!==D||A[51]!==w||A[52]!==E?($=(0,v.jsx)(tL.AM,{open:D,ref:P,onKeyDown:N,portal:!0,constrainSize:!0,tone:"default",content:w,children:E}),A[50]=D,A[51]=w,A[52]=E,A[53]=$):$=A[53],$}function _R(e){return!e}let _N={portal:!0,tone:"default"};function _O(e){let t,n,i,r,a,o,l=(0,j.c)(18),{member:s,sortable:d,onRemove:c,readOnly:u}=e,p=(0,_.useId)(),{t:m}=as(),h=!!u;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(rl,{}),l[0]=t):t=l[0];let f=`${p}-menuButton`;return l[1]!==m?(n=m("inputs.array.action.remove-invalid-item"),l[1]=m,l[2]=n):n=l[2],l[3]!==c||l[4]!==n?(i=(0,v.jsx)(I.W1,{children:(0,v.jsx)(tL.Dr,{text:n,tone:"critical",icon:eT.ucK,onClick:c})}),l[3]=c,l[4]=n,l[5]=i):i=l[5],l[6]!==f||l[7]!==i?(r=(0,v.jsx)(tL.IU,{button:t,id:f,menu:i,popover:_N}),l[6]=f,l[7]=i,l[8]=r):r=l[8],l[9]!==s.error.type||l[10]!==s.error.value||l[11]!==m?(a="INVALID_ITEM_TYPE"===s.error.type?(0,v.jsx)(_P,{value:s.error.value}):(0,v.jsx)("div",{children:m("inputs.array.error.unexpected-error",{error:s.error.type})}),l[9]=s.error.type,l[10]=s.error.value,l[11]=m,l[12]=a):a=l[12],l[13]!==d||l[14]!==h||l[15]!==r||l[16]!==a?(o=(0,v.jsx)(I.az,{paddingX:1,children:(0,v.jsx)(_D,{dragHandle:d,readOnly:h,tone:"caution",menu:r,children:a})}),l[13]=d,l[14]=h,l[15]=r,l[16]=a,l[17]=o):o=l[17],o}function _V(e){let{members:t,memberKeys:n,activeDragItemIndex:i,focusPathKey:r,onItemMove:a,onItemMoveStart:o,onItemMoveEnd:l,sortable:s,readOnly:d,onItemRemove:c,renderAnnotation:u,renderBlock:p,renderField:m,renderInlineBlock:h,renderInput:f,renderItem:g,renderPreview:y,listGridGap:C,paddingY:x,radius:b}=e,{space:j}=(0,I.DP)().sanity,{scrollElement:w,containerElement:k}=function(){let e=(0,_.useContext)(S.hK);if(!e)throw Error("VirtualizerScrollInstance: missing context value");return e}(),T=(0,_.useRef)(null),A=(0,_.useCallback)(e=>{let t={...e};if(null!==i&&(t.startIndex=Math.min(e.startIndex,i),t.endIndex=Math.max(e.endIndex,i)),r){let e=n.findIndex(e=>e===r);-1!==e&&(t.startIndex=Math.min(t.startIndex,e),t.endIndex=Math.max(t.endIndex,e))}return(0,$.vp)(t)},[i,r,n]),D=(0,_.useCallback)((e,t)=>{if(!e.scrollElement)return;let n=e.scrollElement,i=e=>{let i=k.current?.getBoundingClientRect().top??0,r=Math.floor((T.current?.getBoundingClientRect().top??0)-i);t(n.scrollTop-r,!!e)};return i(),e.scrollElement.addEventListener("scroll",i,{capture:!1,passive:!0}),()=>{n.removeEventListener("scroll",i)}},[k]),z=(0,_.useCallback)(()=>53,[]),P=(0,E.Te)({count:t.length,estimateSize:z,getScrollElement:(0,_.useCallback)(()=>w,[w]),observeElementOffset:D,rangeExtractor:A,getItemKey:(0,_.useCallback)(e=>n[e],[n]),scrollToFn:(e,t,n)=>{e!==n.scrollOffset&&(0,$.Ox)(e,t,n)}}),R=P.getVirtualItems();return(0,v.jsx)(I.Zp,{ref:T,border:!0,radius:b,style:{boxSizing:"border-box",height:`${P.getTotalSize()+R.length*j[C]+j[x]}px`,width:"100%",position:"relative"},children:(0,v.jsx)(vD,{axis:"y",gap:C,paddingY:x,items:n,onItemMove:a,onItemMoveStart:o,onItemMoveEnd:l,sortable:s,style:{position:"absolute",top:0,left:0,width:"100%",transform:R.length>0?`translateY(${R[0].start}px)`:void 0},children:R.map(e=>{let n=t[e.index];return(0,v.jsxs)(vz,{ref:P.measureElement,sortable:s,"data-index":e.index,id:n.key,children:["item"===n.kind&&(0,v.jsx)(Ct,{member:n,renderAnnotation:u,renderBlock:p,renderField:m,renderInlineBlock:h,renderInput:f,renderItem:g,renderPreview:y}),"error"===n.kind&&(0,v.jsx)(_O,{readOnly:d,sortable:s,member:n,onRemove:()=>c(n.key)})]},e.key)})})})}let _M=[];function _L(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(45),{arrayFunctions:u,elementProps:p,members:m,onChange:h,onItemMove:f,onSelectFile:g,onUpload:y,focusPath:C,readOnly:x,onItemAppend:b,onItemPrepend:w,renderAnnotation:k,renderBlock:S,renderField:T,renderInlineBlock:E,renderInput:$,renderItem:A,renderPreview:D,schemaType:z,value:P}=e,R=void 0===u?vO:u,N=void 0===P?_M:P,{t:O}=as(),[V,M]=(0,_.useState)(null);c[0]!==m?(t=m.map(_F),c[0]=m,c[1]=t):t=c[1];let L=function(e,t){let[n,i]=(0,_.useState)(e);return t(n,e)?n:(i(e),e)}(t,nZ),F=(0,_.useRef)(null),{isVisible:B,mountKey:Y}=function(e){let t,n,i,r=(0,j.c)(6),[a,o]=(0,_.useState)(!0),[l,s]=(0,_.useState)(0),d=(0,_.useRef)(!0);return r[0]!==e?(t=()=>{let t=new ResizeObserver(e=>{let t=e[0];if(!t)return;let{width:n,height:i}=t.contentRect,r=n>0&&i>0,a=d.current;if(a===r)return;let l=!a&&r;d.current=r,o(r),l&&s(_$)});return e.current&&t.observe(e.current),()=>t.disconnect()},n=[e],r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,_.useEffect)(t,n),r[3]!==a||r[4]!==l?(i={isVisible:a,mountKey:l},r[3]=a,r[4]=l,r[5]=i):i=r[5],i}(F);e:{let e=C[0];if((0,eD.tA)(e)){n=e._key;break e}if("number"==typeof e){n=e;break e}n=void 0}let H=n;c[2]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{let{active:t}=e;M(t.data.current?.sortable?.index)},c[2]=i):i=c[2];let U=i;c[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{M(null)},c[3]=r):r=c[3];let Z=r,q=z.options?.sortable!==!1;return c[4]!==V||c[5]!==H||c[6]!==B||c[7]!==L||c[8]!==m||c[9]!==Y||c[10]!==f||c[11]!==e||c[12]!==x||c[13]!==k||c[14]!==S||c[15]!==T||c[16]!==E||c[17]!==$||c[18]!==A||c[19]!==D||c[20]!==z.placeholder||c[21]!==q||c[22]!==O?(a=0===m.length?(0,v.jsx)(I.Zp,{padding:3,border:!0,radius:2,children:(0,v.jsx)(I.EY,{align:"center",muted:!0,size:1,children:z.placeholder||(0,v.jsx)(v.Fragment,{children:O("inputs.array.no-items-label")})})}):B?(0,v.jsx)(_V,{members:m,memberKeys:L,activeDragItemIndex:V,focusPathKey:H,onItemMove:f,onItemMoveStart:U,onItemMoveEnd:Z,sortable:q,readOnly:x,onItemRemove:t=>e.onItemRemove(t),renderAnnotation:k,renderBlock:S,renderField:T,renderInlineBlock:E,renderInput:$,renderItem:A,renderPreview:D,listGridGap:1,paddingY:1,radius:2},Y):null,c[4]=V,c[5]=H,c[6]=B,c[7]=L,c[8]=m,c[9]=Y,c[10]=f,c[11]=e,c[12]=x,c[13]=k,c[14]=S,c[15]=T,c[16]=E,c[17]=$,c[18]=A,c[19]=D,c[20]=z.placeholder,c[21]=q,c[22]=O,c[23]=a):a=c[23],c[24]!==a?(o=(0,v.jsx)(I.BJ,{"data-ui":"ArrayInput__c
449ontent",space:2,children:a}),c[24]=a,c[25]=o):o=c[25],c[26]!==p||c[27]!==g||c[28]!==y||c[29]!==x||c[30]!==z.of||c[31]!==o?(l=(0,v.jsx)(v_,{...p,$radius:2,isReadOnly:x,onSelectFile:g,onUpload:y,tabIndex:0,types:z.of,children:o}),c[26]=p,c[27]=g,c[28]=y,c[29]=x,c[30]=z.of,c[31]=o,c[32]=l):l=c[32],c[33]!==R||c[34]!==h||c[35]!==b||c[36]!==w||c[37]!==e.path||c[38]!==x||c[39]!==z||c[40]!==N?(s=(0,v.jsx)(R,{onChange:h,onItemAppend:b,onItemPrepend:w,onValueCreate:Ch,path:e.path,readOnly:x,schemaType:z,value:N}),c[33]=R,c[34]=h,c[35]=b,c[36]=w,c[37]=e.path,c[38]=x,c[39]=z,c[40]=N,c[41]=s):s=c[41],c[42]!==l||c[43]!==s?(d=(0,v.jsxs)(I.BJ,{space:2,ref:F,children:[l,s]}),c[42]=l,c[43]=s,c[44]=d):d=c[44],d}function _F(e){return e.key}function _B(e){let t,n=(0,j.c)(3),i=e.schemaType.options?.layout==="grid";return n[0]!==i||n[1]!==e?(t=i?(0,v.jsx)(_I,{...e}):(0,v.jsx)(_L,{...e}),n[0]=i,n[1]=e,n[2]=t):t=n[2],t}function _Y(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("object"!=typeof e&&!Array.isArray(e))return e===t;if(e._key&&e._key===t._key)return!0;if(Array.isArray(e))return!e.length===t.length&&e.every((n,i)=>_Y(e[i],t[i]));let n=Object.keys(e),i=Object.keys(e);return n.length===i.length&&n.every(n=>_Y(e[n],t[n]))}function _H(e,t){return!!e&&e.some(e=>_Y(e,t))}let _U=[];function _Z(e){let t,n,i,r,a,o,l,s=(0,j.c)(33),{renderPreview:d,schemaType:c,onChange:u,onPathFocus:p,value:m,readOnly:h,elementProps:f,path:g,changed:y}=e;s[0]!==m?(t=void 0===m?[]:m,s[0]=m,s[1]=t):t=s[1];let C=t,x=c.options?.list||_U;s[2]!==x?(n=x.map(_q),s[2]=x,s[3]=n):n=s[3];let b=n;s[4]!==u||s[5]!==b||s[6]!==C?(i=(e,t)=>{if(!e&&(0,eD.o8)(t))return void u(hW([{_key:t._key}]));let n=b.filter(n=>_Y(t,n)?e:_H(C,n));u(n.length>0?hq(n):hW())},s[4]=u,s[5]=b,s[6]=C,s[7]=i):i=s[7];let w=i;s[8]!==p?(r=e=>{p([e])},s[8]=p,s[9]=r):r=s[9];let _=r,k=c.options?.layout==="grid"?Math.min(b.length,4):1;if(s[10]!==w||s[11]!==_||s[12]!==b||s[13]!==h||s[14]!==d||s[15]!==c||s[16]!==C){let e;s[18]!==w||s[19]!==_||s[20]!==h||s[21]!==d||s[22]!==c||s[23]!==C?(e=(e,t)=>{let n=c.of.find(t=>t.name===(0,nq.yu)(e)),i=_H(C,e),r=!n;return(0,v.jsxs)(I.so,{align:"center",as:"label",muted:r,children:[(0,v.jsx)(I.Sc,{disabled:r,checked:i,onChange:t=>w(t.currentTarget.checked,e),onFocus:()=>_(t),readOnly:h}),(0,v.jsx)(I.az,{flex:1,marginLeft:2,children:n?d({layout:"default",schemaType:n,value:e}):(0,v.jsx)(I.Zp,{tone:"caution",radius:2,children:(0,v.jsx)(Co,{value:e,onFocus:()=>_(t)})})})]},t)},s[18]=w,s[19]=_,s[20]=h,s[21]=d,s[22]=c,s[23]=C,s[24]=e):e=s[24],a=b.map(e),s[10]=w,s[11]=_,s[12]=b,s[13]=h,s[14]=d,s[15]=c,s[16]=C,s[17]=a}else a=s[17];return s[25]!==f||s[26]!==k||s[27]!==a?(o=(0,v.jsx)(I.xA,{gap:2,columns:k,tabIndex:0,...f,children:a}),s[25]=f,s[26]=k,s[27]=a,s[28]=o):o=s[28],s[29]!==y||s[30]!==g||s[31]!==o?(l=(0,v.jsx)(S1,{path:g,isChanged:y,hasFocus:!1,children:o}),s[29]=y,s[30]=g,s[31]=o,s[32]=l):l=s[32],l}function _q(e,t){return(0,eD.o8)(e)?e:{...e,_key:`auto-generated-${t}`}}function _W(e){let t,n,i,r,a,o,l,s=(0,j.c)(31),{schemaType:d,onChange:c,value:u,readOnly:p,path:m,changed:h,onIndexFocus:f,elementProps:g}=e;s[0]!==u?(t=void 0===u?[]:u,s[0]=u,s[1]=t):t=s[1];let y=t;s[2]!==d.options?.list?(n=d.options?.list||[],s[2]=d.options?.list,s[3]=n):n=s[3],s[4]!==n?(i=n.map(e=>e&&"object"==typeof e&&"title"in e&&"value"in e?{title:e.title||(0,eu.A)(String(e.value)),value:e.value}:{title:(0,eu.A)(String(e)),value:e}),s[4]=n,s[5]=i):i=s[5];let C=i;s[6]!==c||s[7]!==C||s[8]!==y?(r=(e,t)=>{let n=C.map(_J).filter(n=>n===t?e:y.includes(n));c(n.length>0?hq(n):hW())},s[6]=c,s[7]=C,s[8]=y,s[9]=r):r=s[9];let x=r,b=d.options?.layout==="grid"?Math.min(C.length,4):1;if(s[10]!==x||s[11]!==f||s[12]!==C||s[13]!==p||s[14]!==d||s[15]!==y){let e;s[17]!==x||s[18]!==f||s[19]!==p||s[20]!==d||s[21]!==y?(e=(e,t)=>{let n=d.of.find(t=>t.name===(0,nq.yu)(e.value)),i=y.includes(e.value),r=!n;return(0,v.jsxs)(I.so,{align:"center",as:"label",muted:r,children:[(0,v.jsx)(I.Sc,{disabled:r,checked:i,onChange:t=>x(t.currentTarget.checked,e.value),onFocus:()=>f(t),readOnly:p}),(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(I.EY,{children:e.title})}),!n&&(0,v.jsx)(_P,{value:e,onFocus:()=>f(t)})]},t)},s[17]=x,s[18]=f,s[19]=p,s[20]=d,s[21]=y,s[22]=e):e=s[22],a=C.map(e),s[10]=x,s[11]=f,s[12]=C,s[13]=p,s[14]=d,s[15]=y,s[16]=a}else a=s[16];return s[23]!==g||s[24]!==b||s[25]!==a?(o=(0,v.jsx)(I.xA,{gap:2,columns:b,...g,children:a}),s[23]=g,s[24]=b,s[25]=a,s[26]=o):o=s[26],s[27]!==h||s[28]!==m||s[29]!==o?(l=(0,v.jsx)(S1,{path:m,isChanged:h,hasFocus:!1,children:o}),s[27]=h,s[28]=m,s[29]=o,s[30]=l):l=s[30],l}function _J(e){return e.value}function _K(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,eD.m5)(e.schemaType)?(0,v.jsx)(_Z,{...e}):(0,v.jsx)(_W,{...e}),n[0]=e,n[1]=t):t=n[1],t}function _G(e){let t,n,i,r,a,o,l=(0,j.c)(28),{schemaType:s,readOnly:d,children:c,onValueCreate:u,onItemAppend:p}=e,m=(0,_.useId)(),{t:h}=as();l[0]!==p||l[1]!==u?(t=e=>{p(u(e))},l[0]=p,l[1]=u,l[2]=t):t=l[2];let f=t;l[3]!==f||l[4]!==s.of[0]?(n=()=>{f(s.of[0])},l[3]=f,l[4]=s.of[0],l[5]=n):n=l[5];let g=n;l[6]===Symbol.for("react.memo_cache_sentinel")?(i={constrainSize:!0,portal:!0},l[6]=i):i=l[6];let y=i,C=s.of.length>1?"inputs.array.action.add-item-select-type":"inputs.array.action.add-item";if(s.options?.disableActions?.includes("add"))return null;if(d){let e,t,n,i;return l[7]!==h?(e=h("inputs.array.read-only-label"),l[7]=h,l[8]=e):e=l[8],l[9]!==C||l[10]!==h?(t=h(C),l[9]=C,l[10
449]=h,l[11]=t):t=l[11],l[12]!==t?(n=(0,v.jsx)(I.xA,{children:(0,v.jsx)(tL.$n,{"data-testid":"add-single-primitive-button",icon:eT.REV,mode:"ghost",disabled:!0,size:"large",text:t})}),l[12]=t,l[13]=n):n=l[13],l[14]!==e||l[15]!==n?(i=(0,v.jsx)(tL.m_,{portal:!0,content:e,children:n}),l[14]=e,l[15]=n,l[16]=i):i=l[16],i}return l[17]===Symbol.for("react.memo_cache_sentinel")?(r={gridTemplateColumns:"repeat(auto-fit, minmax(100px, 1fr))"},l[17]=r):r=l[17],l[18]!==C||l[19]!==g||l[20]!==f||l[21]!==m||l[22]!==s.of||l[23]!==h?(a=1===s.of.length?(0,v.jsx)(tL.$n,{"data-testid":"add-multiple--primitive-button",icon:eT.REV,mode:"ghost",onClick:g,size:"large",text:h(C)}):(0,v.jsx)(tL.IU,{button:(0,v.jsx)(tL.$n,{icon:eT.REV,mode:"ghost",size:"large",text:h(C)}),id:m||"",menu:(0,v.jsx)(I.W1,{children:s.of.map((e,t)=>{let n=(0,eD.do)(e)&&1===(e.to||[]).length&&e.to[0].icon,i=e.icon||e.type?.icon||n;return(0,v.jsx)(tL.Dr,{text:e.title||e.type?.name,onClick:()=>f(e),icon:i},t)})}),popover:y}),l[18]=C,l[19]=g,l[20]=f,l[21]=m,l[22]=s.of,l[23]=h,l[24]=a):a=l[24],l[25]!==c||l[26]!==a?(o=(0,v.jsxs)(I.xA,{gap:1,style:r,children:[a,c]}),l[25]=c,l[26]=a,l[27]=o):o=l[27],o}let _X=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-lw9kc3-0"})`position:relative;`,_Q=g3((p=ve((0,eI.I4)(I.Zp).withConfig({displayName:"StyledCard",componentId:"sc-lw9kc3-1"})`height:100%;`),(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,m,h=(0,j.c)(26);h[0]!==e?({children:n,resolveUploader:r,onUpload:i,types:o,...a}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=r,h[4]=a,h[5]=o):(n=h[1],i=h[2],r=h[3],a=h[4],o=h[5]);let{push:f}=(0,T.dj)(),{t:g}=as();h[6]!==i?(l=(e,t)=>{let{type:n,uploader:r}=t;i?.({file:e,schemaType:n,uploader:r})},h[6]=i,h[7]=l):l=h[7];let y=l;h[8]!==f||h[9]!==r||h[10]!==g||h[11]!==o||h[12]!==y?(s=e=>{if(!r)return;let t=e.map(e=>{var t,n;return{file:e,uploaderCandidates:(t=o,n=r,t.map(t=>({type:t,uploader:n(t,e)})).filter(e=>e.uploader))}}),n=t.filter(_5),i=t.filter(_0);i.length>0&&f({closable:!0,status:"warning",title:g("inputs.array.error.cannot-upload-unable-to-convert",{count:i.length}),description:i.map(_7)}),n.forEach(e=>{y(e.file,(0,ee.A)(e.uploaderCandidates,_3)[0])})},h[8]=f,h[9]=r,h[10]=g,h[11]=o,h[12]=y,h[13]=s):s=h[13];let C=s;h[14]===Symbol.for("react.memo_cache_sentinel")?(d=[],h[14]=d):d=h[14];let[x,b]=(0,_.useState)(d);h[15]===Symbol.for("react.memo_cache_sentinel")?(c=()=>b([]),h[15]=c):c=h[15];let w=c;return h[16]!==x||h[17]!==r||h[18]!==o?(u=r&&x.length>0&&(0,v.jsx)(_1,{zOffset:10,children:(0,v.jsx)(_2,{hoveringFiles:x,types:o,resolveUploader:r})}),h[16]=x,h[17]=r,h[18]=o,h[19]=u):u=h[19],h[20]!==n||h[21]!==t||h[22]!==C||h[23]!==a||h[24]!==u?(m=(0,v.jsx)(_X,{children:(0,v.jsxs)(p,{...a,ref:t,onFiles:C,onFilesOver:b,onFilesOut:w,children:[u,n]})}),h[20]=n,h[21]=t,h[22]=C,h[23]=a,h[24]=u,h[25]=m):m=h[25],m}))),_1=(0,eI.I4)(I.Wd).withConfig({displayName:"Overlay",componentId:"sc-lw9kc3-2"})`position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;top:-2px;left:-2px;right:-2px;bottom:-2px;background-color:var(--card-bg-color);opacity:0.8;`;function _2(e){let t,n,i=(0,j.c)(5),{hoveringFiles:r,types:a,resolveUploader:o}=e;i[0]!==o||i[1]!==a?(t=e=>a.some(t=>o(t,e)),i[0]=o,i[1]=a,i[2]=t):t=i[2];let l=r.filter(t),s=r.length-l.length,d=a.length>1,{t:c}=as(),u=l.length>0?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(I.cV,{space:2,children:[(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.JMY,{})}),d?c("inputs.files.common.drop-message.drop-to-upload-multi",{count:l.length}):c("inputs.files.common.drop-message.drop-to-upload"),(0,v.jsx)(I.EY,{})]}),s>0&&(0,v.jsx)(I.az,{marginTop:4,children:(0,v.jsxs)(I.cV,{space:2,children:[(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(eT.VY$,{})}),(0,v.jsx)(I.EY,{muted:!0,size:1,children:c("inputs.files.common.drop-message.drop-to-upload.rejected-file-message",{count:s})})]})})]}):(0,v.jsxs)(I.cV,{space:2,children:[(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.VY$,{})}),(0,v.jsx)(I.EY,{children:c("inputs.files.common.drop-message.drop-to-upload.no-accepted-file-message",{count:r.length})})]});return i[3]!==u?(n=(0,v.jsx)(v.Fragment,{children:u}),i[3]=u,i[4]=n):n=i[4],n}function _5(e){return e.uploaderCandidates.length>0}function _0(e){return 0===e.uploaderCandidates.length}function _7(e,t){return(0,v.jsxs)(I.so,{gap:2,padding:2,children:[(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{weight:"medium",children:e.file.name})}),(0,v.jsx)(I.az,{children:(0,v.jsxs)(I.EY,{size:1,children:["(",e.file.type,")"]})})]},t)}function _3(e){return e.uploader.priority}let _8={portal:!0,tone:"default",placement:"left",constrainSize:!0};function _4(e){let t,n,i=(0,j.c)(17),{types:r,onInsert:a,pos:o,text:l,icon:s}=e;if(r?.length===1){let e,t;return i[0]!==a||i[1]!==o||i[2]!==r[0]?(e=()=>a(o,r[0]),i[0]=a,i[1]=o,i[2]=r[0],i[3]=e):e=i[3],i[4]!==s||i[5]!==o||i[6]!==e||i[7]!==l?(t=(0,v.jsx)(tL.Dr,{text:l,icon:s,onClick:e},o),i[4]=s,i[5]=o,i[6]=e,i[7]=l,i[8]=t):t=i[8],t}return i[9]!==a||i[10]!==o||i[11]!==r?(t=r?.map(e=>(0,v.jsx)(tL.Dr,{icon:e.icon,text:e.title,onClick:()=>a(o,e)},e.name)),i[9]=a,i[10]=o,i[11]=r,i[12]=t):t=i[12],i[13]!==o||i[14]!==t||i[15]!==l?(n=(0,v.jsx)(io.r,{text:l,popover:_8,children:t},o),i[13]=o,i[14]=t,i[15]=l,i[16]=n):n=i[16],n}(0,_.memo)(function(e){let t,n,i,r,a,o=(0,j.c)(15),{types:l,onInsert:s}=e,{t:d}=as();return o[0]!==d?(t=d("inputs.array.action.add-before"),o[0]=d,o[1]=t):t=o[1],o[2]!==s||o[3]!==t||o[4]!==l?(n=(0,v.jsx)(_4,{pos:"before",types:l,onInsert:s,text:t,icon:eT.SKY}),o[2]=s,o[3]=t,o[4]=l,o[5]=n):n=o[5],o[6]!==d?(i=d("inputs.array.action.add-after"),o[6]=d,o[7]=i):i=o[7],o[8]!==s||o[9]!==i||o[10]!==l?(r=(0,v.jsx)(_4,{pos:"after",types:l,onInsert:s,text:i,icon:eT.amD}),o[8]=s,o[9]=i,o[10]=l,o[11]=r):r=o[11],o[12]!==n||o[13]!==r?(a=(0,v.jsxs)(v.Fragment,{children:[n,r]}),o[12]=n,o[13]=r,o[14]=a):a=o[14],a});let _6={portal:!0,tone:"default"},_9=[],ke=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(58),{sortable:
449x,value:b,insertableTypes:w,onInsert:_,onCopy:k,onRemove:S,readOnly:T,inputId:E,parentSchemaType:$,validation:A,children:D,presence:z,schemaType:P}=e,R=A.filter(kt).length>0,N=A.filter(kn).length>0;C[0]!==_?(n=(e,t)=>{_({position:e,items:[Cd(t)]})},C[0]=_,C[1]=n):n=C[1];let O=n;C[2]!==_||C[3]!==b?(i=()=>{b&&_({position:"after",items:[b]})},C[2]=_,C[3]=b,C[4]=i):i=C[4];let V=i;C[5]!==k||C[6]!==b?(r=()=>{k({items:[b]})},C[5]=k,C[6]=b,C[7]=r):r=C[7];let M=r;e:{if(R){a="critical";break e}if(N){a="caution";break e}a=void 0}let L=a,{t:F}=as(),B=$.options?.disableActions||_9;C[8]!==B||C[9]!==S||C[10]!==F?(o=!B.includes("remove")&&(0,v.jsx)(tL.Dr,{text:F("inputs.array.action.remove"),tone:"critical",icon:eT.ucK,onClick:S},"remove"),C[8]=B,C[9]=S,C[10]=F,C[11]=o):o=C[11],C[12]!==B||C[13]!==M||C[14]!==F?(l=!B.includes("copy")&&(0,v.jsx)(tL.Dr,{text:F("inputs.array.action.copy"),icon:eT.TdU,onClick:M},"copy"),C[12]=B,C[13]=M,C[14]=F,C[15]=l):l=C[15],C[16]!==B||C[17]!==V||C[18]!==F?(s=!B.includes("duplicate")&&(0,v.jsx)(tL.Dr,{text:F("inputs.array.action.duplicate"),icon:eT.g$z,onClick:V},"duplicate"),C[16]=B,C[17]=V,C[18]=F,C[19]=s):s=C[19],C[20]!==B||C[21]!==O||C[22]!==w||C[23]!==F?(d=!(B.includes("add")||B.includes("addBefore"))&&(0,v.jsx)(_4,{pos:"before",types:w,onInsert:O,text:F("inputs.array.action.add-before"),icon:eT.SKY},"add-before"),C[20]=B,C[21]=O,C[22]=w,C[23]=F,C[24]=d):d=C[24],C[25]!==B||C[26]!==O||C[27]!==w||C[28]!==F?(c=!B.includes("add")&&!B.includes("addAfter")&&(0,v.jsx)(_4,{pos:"after",types:w,onInsert:O,text:F("inputs.array.action.add-after"),icon:eT.amD},"add-after"),C[25]=B,C[26]=O,C[27]=w,C[28]=F,C[29]=c):c=C[29],C[30]!==o||C[31]!==l||C[32]!==s||C[33]!==d||C[34]!==c?(u=[o,l,s,d,c].filter(Boolean),C[30]=o,C[31]=l,C[32]=s,C[33]=d,C[34]=c,C[35]=u):u=C[35];let Y=u;C[36]!==E||C[37]!==Y||C[38]!==T?(p=T||0===Y.length?null:(0,v.jsx)(tL.IU,{button:(0,v.jsx)(rl,{}),id:`${E}-menuButton`,popover:_6,menu:(0,v.jsx)(I.W1,{children:Y})}),C[36]=E,C[37]=Y,C[38]=T,C[39]=p):p=C[39];let H=p,U=!!T;C[40]!==z?(m=0===z.length?null:(0,v.jsx)(wy,{presence:z,maxAvatars:1}),C[40]=z,C[41]=m):m=C[41],C[42]!==A?(h=A.length>0?(0,v.jsx)(I.az,{paddingX:1,paddingY:3,children:(0,v.jsx)(xA,{validation:A})}):null,C[42]=A,C[43]=h):h=C[43];let Z=P?"flex-end":"center";return C[44]!==D?(f=(0,v.jsx)(I.so,{align:"flex-end",flex:1,children:(0,v.jsx)(I.az,{flex:1,marginRight:2,children:D})}),C[44]=D,C[45]=f):f=C[45],C[46]!==t||C[47]!==Z||C[48]!==f?(g=(0,v.jsx)(I.so,{align:Z,ref:t,children:f}),C[46]=t,C[47]=Z,C[48]=f,C[49]=g):g=C[49],C[50]!==H||C[51]!==x||C[52]!==U||C[53]!==m||C[54]!==h||C[55]!==g||C[56]!==L?(y=(0,v.jsx)(_D,{tone:L,readOnly:U,menu:H,dragHandle:x,presence:m,validation:h,children:g}),C[50]=H,C[51]=x,C[52]=U,C[53]=m,C[54]=h,C[55]=g,C[56]=L,C[57]=y):y=C[57],y});function kt(e){return"error"===e.level}function kn(e){return"warning"===e.level}function ki(e){let t,n,i=(0,j.c)(5),{schemaType:r}=e,{t:a}=as();return i[0]!==r.placeholder||i[1]!==a?(t=r.placeholder||a("inputs.array.no-items-label"),i[0]=r.placeholder,i[1]=a,i[2]=t):t=i[2],i[3]!==t?(n=(0,v.jsx)(I.Zp,{padding:3,border:!0,radius:2,children:(0,v.jsx)(I.EY,{align:"center",muted:!0,size:1,children:t})}),i[3]=t,i[4]=n):n=i[4],n}class kr extends _.PureComponent{_element=null;constructor(e){super(e),this.state={disableTransition:!1}}handleAppend=e=>{let{value:t=[],onIndexFocus:n,onItemAppend:i}=this.props;i(e),n(t.length)};handlePrepend=e=>{let{onIndexFocus:t,value:n=[],onItemPrepend:i}=this.props;i(e),t(n.length)};handleSortEnd=e=>{let{onIndexFocus:t,onMoveItem:n,value:i}=this.props;i&&n(e),t(e.toIndex)};handleItemMoveStart=()=>{this.setState({disableTransition:!1})};handleItemMoveEnd=()=>{this.setState({disableTransition:!0})};focus(){this._element&&this._element.focus()}getSnapshotBeforeUpdate(e){let{focusPath:t=[],value:n=[]}=e,{focusPath:i=[],value:r=[]}=this.props;if(t[0]===i[0]&&n.length!==r.length){let e=i[0],t=window.getSelection();if(!(t?.focusNode instanceof HTMLElement))return null;let n=t.focusNode?.querySelector("input,textarea");return n instanceof HTMLInputElement?{prevFocusedIndex:e,restoreSelection:{text:t.toString(),start:n.selectionStart,end:n.selectionEnd,value:n.value}}:{}}return null}componentDidUpdate(e,t,n){let{onIndexFocus:i}=this.props;if(n?.restoreSelection&&e.value){var r,a;let t=e.value[n.prevFocusedIndex],o=(r=this.props.value||[],a=n.prevFocusedIndex,function(e,t,n){let i=t-1,r=t,a=e.length;for(;i>-1||r<a;){let t=e[r];if(r<a&&n(t,r))return r;let o=e[i];if(i>-1&&n(o,i))return i;i--,r++}return -1}(r,a,e=>e===t));if(-1===o)return;let l=this._element?.querySelector(`[data-item-index='${o}'] input,textarea`);if(l instanceof HTMLInputElement){l.focus();try{l.setSelectionRange(n.restoreSelection.start,n.restoreSelection.end)}catch{}}i(o)}}renderArrayItem=e=>{let{schemaType:t}=this.props,n=t.options?.sortable!==!1;return(0,v.jsx)(ke,{...e,sortable:n,insertableTypes:t.of})};render(){let{schemaType:e,members:t,readOnly:n,renderInput:i,onUpload:r,onItemRemove:a,resolveUploader:o,elementProps:l,arrayFunctions:s=_G,changed:d}=this.props,c=!n&&!1!==(0,V.A)(e,"options.sortable"),u=t.map(e=>({id:`${e.key}-${"item"===e.kind?e.item.value:"error"}`,member:e}));return(0,v.jsxs)(I.BJ,{space:2,"data-testid":"array-primitives-input",children:[(0,v.jsx)(_Q,{types:e.of,resolveUploader:o,onUpload:r,...l,tabIndex:0,children:(0,v.jsx)(I.BJ,{space:1,children:0===u.length?(0,v.jsx)(ki,{schemaType:e}):(0,v.jsx)(I.Zp,{padding:1,border:!0,children:(0,v.jsx)(vD,{onItemMove:this.handleSortEnd,onItemMoveStart:this.handleItemMoveStart,onItemMoveEnd:this.handleItemMoveEnd,items:u.map(e=>e.id),sortable:c,gap:1,children:u.map(({member:e,id:t},r)=>(0,v.jsxs)(vz,{id:t,sortable:c,disableTransition:this.state.disableTransition,children:["item"===e.kind&&(0,v.jsx)(S1,{path:e.item.path,isChanged:d,hasFocus:!1,children:(0,v.jsx)(Cu,{member:e,renderItem:this.renderArrayItem,renderInput:i})}),"error"===e.kind&&(0,v.jsx)(_O,{readOnly:n,sortable:c,member:e,onRemove:()=>a(r)})]},e.key))})})})}),(0,v.jsx)(s,{onChange:this.props.onChange,onItemAppend:this.handleAppend,onItemPrepend:this.handlePrepend,onValueCreate:Cd,readOnly:this.props.readOnly,schemaType:this.props.schemaType,value:this.props.value,path:this.props.path})]})}}let ka=(0,eI.I4)(I.az).withConfig({displayName:"CenterAlignedBox",componentId:"sc-lddvef-0"})`align-self:center;`,ko="iiii',' d MMMM yyyy',' p",kl=e=>{let t,n,i,r,a,o=(0,j.c)(10),{body:l,title:s}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(eT.CTc,{}),o[0]=t):t=o[0],o[1]!==s?(n=s&&(0,v.jsx)(I.EY,{size:2,weight:"semibold",children:s}),o[1]=s,o[2]=n):n=o[2],o[3]!==n?(i=(0,v.jsxs)(I.cV,{space:2,children:[t,n]}),o[3]=n,o[4]=i):i=o[4],o[5]!==l?(r=l&&(0,v.jsx)(I.EY,{size:1,children:l}),o[5]=l,o[6]=r):r=o[6],o[7]!==i||o[8]!==r?(a=(0,v.jsxs)(I.BJ,{paddingY:1,space:3,children:[i,r]}),o[7]=i,o[8]=r,o[9]=a):a=o[9],a},ks="scheduled-publishing:";function kd(e){let t=`${ks}${e}`;return tH&&tH.enabled(t)?tH(t):tH(ks)}tH(ks);let kc="timeZoneEventUpdate",ku=kd("useScheduleOperation"),kp="studio.timezone.",km=new Map,kh=new Map,kf=e=>{if(!e)return 0;let t=e.startsWith("-")?-1:1;if(!e.includes(":"))return t*Number(e.replace(/[+-]/,""))*60;let[n,i]=e.replace(/[+-]/,"").split(":").map(Number);return t*(60*n+i)},kg={scheduledPublishing:"scheduled-publishing",contentReleases:"content-releases",input:"input"},ky=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w=(0,j.c)(62),k=(0,T.dj)(),S=cf(),I=navigator.language,{defaultTimeZone:E}=e,$=kg[e.type],A="id"in e?`${kp}${$}.${e.id}`:`${kp}${$}`,D="relativeDate"in e?e.relativeDate:void 0;w[0]!==A||w[1]!==S||w[2]!==e.type?(t=()=>{if("scheduledPublishing"===e.type){let e=localStorage.getItem("scheduled-publishing::time-zone");if(e){let t=JSON.parse(e);S.setKey(A,t.name),localStorage.removeItem("scheduled-publishing::time-zone")}}},w[0]=A,w[1]=S,w[2]=e.type,w[3]=t):t=w[3],w[4]!==A||w[5]!==S||w[6]!==D||w[7]!==e.type?(n=[e.type,S,A,I,D],w[4]=A,w[5]=S,w[6]=D,w[7]=e.type,w[8]=n):n=w[8],(0,_.useEffect)(t,n),w[9]!==D?(i=function(e,t){let n=`${e}_${t?.toISOString().slice(0,10)||"now"}`;if(km.has(n))return km.get(n);let i=Intl.supportedValuesOf("timeZone").map(n=>{if(!n.includes("/"))return null;let{alternativeName:i,abbreviation:r,offset:a}=function(e,t,n){let i=n?.toISOString().slice(0,10)||"now",r=`${e}_${t}_${i}`;if(kh.has(r))return kh.get(r);let a=new Intl.DateTimeFormat((0,tX.WI)(e),{timeZone:t,timeZoneName:"long"}),o=new Intl.DateTimeFormat((0,tX.WI)(e),{timeZone:t,timeZoneName:"short"}),l=n??new Date,s=a.formatToParts(l),d=o.formatToParts(l),c=(0,nn.GP)(l,"xxx",{in:(0,t2.tz)(t)}).replace(/([+-])0(\d)/,"$1$2").replace(/([+-])0$/,"$1").replace(/:00$/,"").replace(/[+]0$/,""),u={abbreviation:d.find(({type:e})=>"timeZoneName"===e)?.value||"",alternativeName:s.find(({type:e})=>"timeZoneName"===e)?.value||"",offset:c};return kh.set(r,u),u}(e,n,t),[,o]=n.split("/");return{abbreviation:r,alternativeName:i,city:o.replaceAll("_"," "),name:n,namePretty:n.replaceAll("_"," "),offset:a,value:`${a} ${r} ${n} ${i}`}}).filter(e=>null!==e).sort((e,t)=>
449kf(e.offset)-kf(t.offset));return km.set(n,i),i}(I,D),w[9]=D,w[10]=i):i=w[10];let z=i;w[11]!==z||w[12]!==E?(r=()=>E?z.find(e=>e.name===E):void 0,w[11]=z,w[12]=E,w[13]=r):r=w[13];let P=r;w[14]!==A||w[15]!==S?(a=S.getKey(A).pipe((0,tr.Z)(null)),w[14]=A,w[15]=S,w[16]=a):a=w[16];let R=(0,tF.J)(a,null);w[17]!==z||w[18]!==A||w[19]!==S||w[20]!==R?(o=()=>{if(R)try{let e=z.find(e=>e.name===R);if(e&&z.some(t=>t.name===e.name))return e;let t=z.find(t=>t.offset===e?.offset);if(t)return S.setKey(A,t.name),t;return}catch{return}},w[17]=z,w[18]=A,w[19]=S,w[20]=R,w[21]=o):o=w[21];let N=o;w[22]!==z?(l=()=>{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;return z.find(t=>t.name===e)||z.find(kC)||z[0]},w[22]=z,w[23]=l):l=w[23];let O=l;w[24]!==P||w[25]!==O||w[26]!==N?(s=()=>N()||P()||O(),w[24]=P,w[25]=O,w[26]=N,w[27]=s):s=w[27];let V=s;w[28]!==V?(d=()=>V(),w[28]=V,w[29]=d):d=w[29];let[M,L]=(0,_.useState)(d);w[30]!==V?(u=()=>{L(V())},c=[V],w[30]=V,w[31]=c,w[32]=u):(c=w[31],u=w[32]),(0,_.useEffect)(u,c),w[33]!==V?(p=()=>{let e=()=>{L(V())};return window.addEventListener(kc,e),()=>{window.removeEventListener(kc,e)}},m=[V],w[33]=V,w[34]=p,w[35]=m):(p=w[34],m=w[35]),(0,_.useEffect)(p,m),w[36]!==O||w[37]!==M?.name?(h=e=>{let{date:t,format:n,includeTimeZone:i,prefix:r}=e,a=void 0===n?ko:n,o=a;return r&&(o=`'${r}'${a}`),i&&(o=`${a} (zzzz)`),(0,nn.GP)(t,o,{in:(0,t2.tz)(M?.name||O()?.name||"UTC")})},w[36]=O,w[37]=M?.name,w[38]=h):h=w[38];let F=h;w[39]!==M?(f=()=>M?new t2.BB(new Date,M.name):new Date,w[39]=M,w[40]=f):f=w[40];let B=f;w[41]!==z||w[42]!==V?(g=e=>z.find(t=>e===t.value)||V(),w[41]=z,w[42]=V,w[43]=g):g=w[43];let Y=g;w[44]!==A||w[45]!==S||w[46]!==k?(y=e=>{ku("handleNewValue:",e),L(t=>{try{t?.name!==e.name&&(S.setKey(A,e.name),window.dispatchEvent(new Event(kc))),k.push({closable:!0,description:(0,v.jsx)(kl,{body:`${e.alternativeName} (${e.namePretty})`,title:"Time zone updated"}),duration:15e3,status:"info"})}catch(e){console.error(e),k.push({closable:!0,description:(0,v.jsx)(kl,{body:function(e){let t;return"object"==typeof e&&e&&"statusCode"in e&&"response"in e?t=403===e.response.statusCode?"Forbidden. Please check that your project has access to the feature.":e.message:(e instanceof Error&&(t=e.message),t=String(e)),t}(e),title:"Unable to update time zone"}),status:"error"})}return e})},w[44]=A,w[45]=S,w[46]=k,w[47]=y):y=w[47];let H=y;w[48]!==M?(C=e=>M?new t2.BB(e,M.name):e,w[48]=M,w[49]=C):C=w[49];let U=C;w[50]!==M?(x=e=>{var t;return M?new Date((t=M.name,new t2.BB(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds(),t))):e},w[50]=M,w[51]=x):x=w[51];let Z=x;return w[52]!==z||w[53]!==F||w[54]!==B||w[55]!==O||w[56]!==Y||w[57]!==H||w[58]!==M||w[59]!==U||w[60]!==Z?(b={formatDateTz:F,getCurrentZoneDate:B,setTimeZone:H,timeZone:M,allTimeZones:z,getLocalTimeZone:O,getTimeZone:Y,utcToCurrentZoneDate:U,zoneDateToUtc:Z},w[52]=z,w[53]=F,w[54]=B,w[55]=O,w[56]=Y,w[57]=H,w[58]=M,w[59]=U,w[60]=Z,w[61]=b):b=w[61],b};function kC(e){return"GMT"===e.abbreviation}let kx=eI.I4.span.withConfig({displayName:"TimeZoneCitySpan",componentId:"sc-1ktknl0-0"})(({theme:e})=>(0,eI.AH)` 450 color: ${e.sanity.color.base.fg}; 451 font-weight: 500; 452 margin-left: 1em; 453 `),kb=eI.I4.span.withConfig({displayName:"TimeZoneOffsetSpan",componentId:"sc-1ktknl0-1"})(({theme:e})=>(0,eI.AH)` 454 color: ${e.sanity.color.muted.default.enabled.fg}; 455 font-weight: 500; 456 `),kv=eI.I4.span.withConfig({displayName:"TimeZoneAlternativeNameSpan",componentId:"sc-1ktknl0-2"})(({theme:e})=>(0,eI.AH)` 457 color: ${e.sanity.color.input.default.readOnly.fg}; 458 float: right; 459 `),kj=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$,A,D=(0,j.c)(66),{onClose:z,timeZoneScope:P}=e,{setTimeZone:R,allTimeZones:N,timeZone:O,getLocalTimeZone:V,getTimeZone:M}=ky(P),[L,F]=(0,_.useState)(O),[B,Y]=(0,_.useState)(!1),{t:H}=as("studio");D[0]!==H?(t=H("time-zone.dialog-info.scheduled-publishing"),D[0]=H,D[1]=t):t=D[1],D[2]!==H?(n=H("time-zone.dialog-info.content-releases"),D[2]=H,D[3]=n):n=D[3],D[4]!==H?(i=H("time-zone.dialog-info.input"),D[4]=H,D[5]=i):i=D[5],D[6]!==t||D[7]!==n||D[8]!==i?(r={scheduledPublishing:t,contentReleases:n,input:i},D[6]=t,D[7]=n,D[8]=i,D[9]=r):r=D[9];let U=r;D[10]!==M?(a=e=>{e?(Y(!1),F(M(e))):F(void 0)},D[10]=M,D[11]=a):a=D[11];let Z=a;D[12]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{e&&Y(!1)},D[12]=o):o=D[12];let q=o;D[13]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{Y(!0)},D[13]=l):l=D[13];let W=l;D[14]!==V?(s=()=>F(V()),D[14]=V,D[15]=s):s=D[15];let J=s;D[16]!==z||D[17]!==L||D[18]!==R?(d=()=>{L&&R(L),z?.()},D[16]=z,D[17]=L,D[18]=R,D[19]=d):d=D[19];let K=d,G=L?.name!==O.name;D[20]!==V?(c=V(),D[20]=V,D[21]=c):c=D[21];let X=L?.name===c.name;D[22]!==B?(u=(e,t)=>!!B||""===e||`${t.city} (GMT${t.offset}) ${t.alternativeName}`.toLowerCase().includes(e.toLowerCase()),D[22]=B,D[23]=u):u=D[23];let Q=u,ee=!G||!L;D[24]!==K||D[25]!==ee?(p={confirmButton:{text:"Update time zone",disabled:ee,onClick:K,tone:"primary"}},D[24]=K,D[25]=ee,D[26]=p):p=D[26];let et=U[P.type];D[27]!==et?(m=(0,v.jsx)(I.EY,{size:1,children:et}),D[27]=et,D[28]=m):m=D[28],D[29]!==H?(h=H("time-zone.time-zone"),D[29]=H,D[30]=h):h=D[30],D[31]!==h?(f=(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:h}),D[31]=h,D[32]=f):f=D[32],D[33]!==X||D[34]!==H?(g=X&&(0,v.jsx)(I.EY,{muted:!0,size:1,children:H("time-zone.local-time")}),D[33]=X,D[34]=H,D[35]=g):g=D[35],D[36]!==f||D[37]!==g?(y=(0,v.jsxs)(I.cV,{space:2,children:[f,g]}),D[36]=f,D[37]=g,D[38]=y):y=D[38],D[39]!==J||D[40]!==X||D[41]!==H?(C=!X&&(0,v.jsx)(I.EY,{size:1,weight:"medium",children:(0,v.jsx)("a",{onClick:J,style:{cursor:"pointer"},children:H("time-zone.action.select-local-time-zone")})}),D[39]=J,D[40]=X,D[41]=H,D[42]=C):C=D[42],D[43]!==y||D[44]!==C?(x=(0,v.jsxs)(I.so,{align:"center",justify:"space-between",children:[y,C]}),D[43]=y,D[44]=C,D[45]=x):x=D[45],D[46]===Symbol.for("react.memo_cache_sentinel")?(b={onClick:W},D[46]=b):b=D[46],D[47]!==H?(w=H("time-zone.action.search-for-timezone-placeholder"),D[47]=H,D[48]=w):w=D[48],D[49]===Symbol.for("react.memo_cache_sentinel")?(k={boundaryElement:document.body,constrainSize:!0,placement:"bottom-start"},D[49]=k):k=D[49];let en=L?.value;return D[50]!==N||D[51]!==Q||D[52]!==Z||D[53]!==w||D[54]!==en?(S=(0,v.jsx)(T.jT,{fontSize:2,icon:eT.WIv,id:"timezone",onChange:Z,onQueryChange:q,openButton:b,options:N,padding:4,filterOption:Q,placeholder:w,popover:k,renderOption:kw,renderValue:k_,tabIndex:-1,value:en}),D[50]=N,D[51]=Q,D[52]=Z,D[53]=w,D[54]=en,D[55]=S):S=D[55],D[56]!==x||D[57]!==S?(E=(0,v.jsxs)(I.BJ,{space:3,children:[x,S]}),D[56]=x,D[57]=S,D[58]=E):E=D[58],D[59]!==m||D[60]!==E?($=(0,v.jsxs)(I.BJ,{padding:4,space
459:5,children:[m,E]}),D[59]=m,D[60]=E,D[61]=$):$=D[61],D[62]!==z||D[63]!==p||D[64]!==$?(A=(0,v.jsx)(tL.lG,{footer:p,header:"Select time zone",id:"time-zone",onClose:z,width:1,children:$}),D[62]=z,D[63]=p,D[64]=$,D[65]=A):A=D[65],A};function kw(e){return(0,v.jsx)(I.Zp,{as:"button",padding:3,children:(0,v.jsxs)(I.EY,{size:1,textOverflow:"ellipsis",children:[(0,v.jsx)(kx,{children:e.city}),(0,v.jsxs)(kb,{children:[" ","(","GMT",e.offset,")"]}),(0,v.jsx)(kv,{children:e.alternativeName})]})})}function k_(e,t){return t?`${t.alternativeName} (${t.namePretty})`:""}function kk(e){let t,n,i,r,a=(0,j.c)(9),[o,l]=(0,_.useState)(!1);a[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{l(!1)},a[0]=t):t=a[0];let s=t;a[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{l(!0)},a[1]=n):n=a[1];let d=n;a[2]!==e||a[3]!==o?(i={onClose:s,visible:o,timeZoneScope:e},a[2]=e,a[3]=o,a[4]=i):i=a[4];let c=i,u=o?kj:null;return a[5]!==c||a[6]!==u||a[7]!==e?(r={DialogTimeZone:u,dialogProps:c,timeZoneScope:e,dialogTimeZoneShow:d,hide:s},a[5]=c,a[6]=u,a[7]=e,a[8]=r):r=a[8],r}let kS=(0,eI.I4)(I.ks).attrs(()=>({type:"time"})).withConfig({displayName:"TimeInput",componentId:"sc-vo7hzm-0"})`line-height:1;`;function kI(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(30),{date:u,focused:p,isCurrentMonth:m,isToday:h,onSelect:f,selected:g,isPastDisabled:y}=e;c[0]!==u||c[1]!==f?(t=()=>{f(u)},c[0]=u,c[1]=f,c[2]=t):t=c[2];let C=t;c[3]!==u?(n=u.toDateString(),c[3]=u,c[4]=n):n=c[4];let x=p?"true":"";c[5]!==u||c[6]!==y||c[7]!==h?(i=y&&!h&&(0,ni.R)(u),c[5]=u,c[6]=y,c[7]=h,c[8]=i):i=c[8];let b=h||g?"primary":"default";c[9]!==u?(r=u.toDateString().replaceAll(" ","-"),c[9]=u,c[10]=r):r=c[10];let w=`calendar-day-${r}`,_=!g&&!m;c[11]===Symbol.for("react.memo_cache_sentinel")?(a={textAlign:"center"},c[11]=a):a=c[11];let k=m?"medium":"regular";return c[12]!==u?(o=u.getDate(),c[12]=u,c[13]=o):o=c[13],c[14]!==o||c[15]!==_||c[16]!==k?(l=(0,v.jsx)(I.EY,{muted:_,size:1,style:a,weight:k,children:o}),c[14]=o,c[15]=_,c[16]=k,c[17]=l):l=c[17],c[18]!==C||c[19]!==g||c[20]!==n||c[21]!==l||c[22]!==x||c[23]!==i||c[24]!==b||c[25]!==w?(s=(0,v.jsx)(I.Zp,{"aria-label":n,"aria-pressed":g,as:"button",__unstable_focusRing:!0,"data-weekday":!0,"data-focused":x,role:"button",tabIndex:-1,disabled:i,onClick:C,padding:2,radius:2,selected:g,tone:b,"data-testid":w,children:l}),c[18]=C,c[19]=g,c[20]=n,c[21]=l,c[22]=x,c[23]=i,c[24]=b,c[25]=w,c[26]=s):s=c[26],c[27]!==g||c[28]!==s?(d=(0,v.jsx)("div",{"aria-selected":g,"data-ui":"CalendarDay",children:s}),c[27]=g,c[28]=s,c[29]=d):d=c[29],d}let kT=["January","February","March","April","May","June","July","August","September","October","November","December"],kE=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],k$=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],kA=[1,2,3,4,5,6],kD=e=>{var t;let n,i,r=(0,j.c)(3),{weekInfo:a}=ah();return r[0]!==e||r[1]!==a.firstDay?(n=(t=a.firstDay,i=(0,nr.w)(e),(0,na.Y)({start:i,end:(0,no.W)(i)},{weekStartsOn:7===t?0:t}).map(e=>[e,...kA.map(t=>(0,nl.f)(e,t))])).map(kz),r[0]=e,r[1]=a.firstDay,r[2]=n):n=r[2],n};function kz(e){return{number:(0,ns.N)(e[0]),days:e}}function kP(e){let t,n,i,r,a,o=(0,j.c)(24),{weekInfo:l}=ah(),{firstDay:s}=l,d=e.weekDayNames;if(7===s){let t;o[0]!==e.weekDayNames?(t=[e.weekDayNames[6],...e.weekDayNames.slice(0,6)],o[0]=e.weekDayNames,o[1]=t):t=o[1],d=t}else if(6===s){let t;o[2]!==e.weekDayNames?(t=[...e.weekDayNames.slice(5),...e.weekDayNames.slice(0,5)],o[2]=e.weekDayNames,o[3]=t):t=o[3],d=t}let c=e.hidden||!1;o[4]===Symbol.for("react.memo_cache_sentinel")?(t={gridTemplateColumns:"repeat(7, minmax(44px, 46px))"},o[4]=t):t=o[4],o[5]!==d?(n=d.map(kR),o[5]=d,o[6]=n):n=o[6];let u=kD(e.date);if(o[7]!==e.focused||o[8]!==e.isPastDisabled||o[9]!==e.onSelect||o[10]!==e.selected||o[11]!==u){let t;o[13]!==e.focused||o[14]!==e.isPastDisabled||o[15]!==e.onSelect||o[16]!==e.selected?(t=(t,n)=>t.days.map((t,i)=>{let r=e.focused&&(0,nd.r)(t,e.focused),a=e.selected&&(0,nd.r)(t,e.selected),o=(0,nd.r)(t,new Date),l=e.focused&&(0,nc.t)(t,e.focused);return(0,v.jsx)(kI,{date:t,focused:r,isCurrentMonth:l,isToday:o,onSelect:e.onSelect,selected:a,isPastDisabled:e.isPastDisabled},`${n}-${i}`)}),o[13]=e.focused,o[14]=e.isPastDisabled,o[15]=e.onSelect,o[16]=e.selected,o[17]=t):t=o[17],i=u.map(t),o[7]=e.focused,o[8]=e.isPastDisabled,o[9]=e.onSelect,o[10]=e.selected,o[11]=u,o[12]=i}else i=o[12];return o[18]!==n||o[19]!==i?(r=(0,v.jsxs)(I.xA,{gap:1,style:t,children:[n,i]}),o[18]=n,o[19]=i,o[20]=r):r=o[20],o[21]!==c||o[22]!==r?(a=(0,v.jsx)(I.az,{"aria-hidden":c,"data-ui":"CalendarMonth",children:r}),o[21]=c,o[22]=r,o[23]=a):a=o[23],a}function kR(e){return(0,v.jsx)(I.az,{paddingY:2,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",style:{textAlign:"center"},children:e})},e)}let kN=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(22);p[0]!==e?({onChange:i,onBlur:n,onKeyPress:r,value:o,...a}=e,p[0]=e,p[1]=n,p[2]=i,p[3]=r,p[4]=a,p[5]=o):(n=p[1],i=p[2],r=p[3],a=p[4],o=p[5]);let[m,h]=(0,_.useState)();p[6]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{h(e.currentTarget.value)},p[6]=l):l=p[6];let f=l;p[7]!==i||p[8]!==o?(s=e=>{e.currentTarget.value!==`${o}`&&i&&i(e),h(void 0)},p[7]=i,p[8]=o,p[9]=s):s=p[9];let g=s;p[10]!==g||p[11]!==n?(d=e=>{g(e),n&&n(e)},p[10]=g,p[11]=n,p[12]=d):d=p[12];let y=d;
459p[13]!==g||p[14]!==r?(c=e=>{"Enter"===e.key&&g(e),r&&r(e)},p[13]=g,p[14]=r,p[15]=c):c=p[15];let C=c,x=void 0===m?o:m;return p[16]!==t||p[17]!==y||p[18]!==C||p[19]!==a||p[20]!==x?(u=(0,v.jsx)(I.ks,{...a,ref:t,value:x,onChange:f,onBlur:y,onKeyPress:C}),p[16]=t,p[17]=y,p[18]=C,p[19]=a,p[20]=x,p[21]=u):u=p[21],u}),kO=e=>{let t,n,i,r,a=(0,j.c)(8);a[0]!==e?({onChange:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=e=>{let n=parseInt(e.currentTarget.value,10);isNaN(n)||t(n)},a[3]=t,a[4]=i):i=a[4];let o=i;return a[5]!==o||a[6]!==n?(r=(0,v.jsx)(kN,{"data-testid":"date-input",...n,fontSize:1,onChange:o,inputMode:"numeric",padding:2,radius:2}),a[5]=o,a[6]=n,a[7]=r):r=a[7],r},kV="carousel",kM=(0,v.jsx)("span",{"data-preserve-focus":!0,style:{overflow:"hidden",position:"absolute",outline:"none"},tabIndex:-1}),kL={padding:2},kF=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z,P,R,N,O,V,M,L,F,B,Y,H,U,Z,q,W,J,K,G,X=(0,j.c)(147);X[0]!==e?({selectTime:l,value:m,timeStep:s,onSelect:r,labels:i,isPastDisabled:n,monthPickerVariant:d,padding:c,showTimeZone:u,timeZoneScope:p,onTimeZoneOpen:a,...o}=e,X[0]=e,X[1]=n,X[2]=i,X[3]=r,X[4]=a,X[5]=o,X[6]=l,X[7]=s,X[8]=d,X[9]=c,X[10]=u,X[11]=p,X[12]=m):(n=X[1],i=X[2],r=X[3],a=X[4],o=X[5],l=X[6],s=X[7],d=X[8],c=X[9],u=X[10],p=X[11],m=X[12]);let Q=void 0===s?1:s,ee=void 0===d?"select":d,et=void 0===c?2:c,en=void 0!==u&&u,{timeZone:ei,zoneDateToUtc:er,utcToCurrentZoneDate:ea}=ky(p);X[13]!==ea||X[14]!==m?(h=ea(m),X[13]=ea,X[14]=m,X[15]=h):h=X[15];let eo=h,[el,es]=(0,_.useState)(m);X[16]!==el||X[17]!==ei?.name?(f=()=>[Number((0,tX.GP)(el,"MM",{timeZone:ei?.name}))-1,Number((0,tX.GP)(el,"YYYY",{timeZone:ei?.name}))],X[16]=el,X[17]=ei?.name,X[18]=f):f=X[18],X[19]!==f?(g=f(),X[19]=f,X[20]=g):g=X[20];let[ed,ec]=g,{DialogTimeZone:eu,dialogProps:ep,dialogTimeZoneShow:em}=kk(p),eh=a??em;X[21]!==el?(y=e=>es((0,nu.X)((0,np.Z)(el,e),1)),X[21]=el,X[22]=y):y=X[22];let ef=y;X[23]!==ef?(C=e=>ef(Number(e.currentTarget.value)),X[23]=ef,X[24]=C):C=X[24];let eg=C;X[25]!==el?(x=e=>es((0,nm.P)(el,e)),X[25]=el,X[26]=x):x=X[26];let ey=x;X[27]!==el?(b=e=>es((0,nh.i)(el,e)),X[27]=el,X[28]=b):b=X[28];let eC=b;X[29]!==eo||X[30]!==r||X[31]!==ei||X[32]!==er?(w=e=>{let t=(0,nf.g)((0,ng.a)(e,eo.getHours()),eo.getMinutes());if(!ei)return void r(t);let n=er(t);r(n)},X[29]=eo,X[30]=r,X[31]=ei,X[32]=er,X[33]=w):w=X[33];let ex=w;X[34]!==eo||X[35]!==r||X[36]!==ei||X[37]!==er?(k=(e,t)=>{if(!ei)return void r((0,ng.a)((0,nf.g)(eo,t),e));let n=new t2.BB(eo,ei.name),i=er((0,ng.a)((0,nf.g)(n,t),e));r(i)},X[34]=eo,X[35]=r,X[36]=ei,X[37]=er,X[38]=k):k=X[38];let eb=k,ev=ei?.name;X[39]!==eo||X[40]!==ev?(S=(0,tX.GP)(eo,"HH:mm",{timeZone:ev}),X[39]=eo,X[40]=ev,X[41]=S):S=X[41];let ej=S,[ew,e_]=(0,_.useState)(ej);X[42]!==ej?(T=()=>{e_(ej)},E=[ej],X[42]=ej,X[43]=T,X[44]=E):(T=X[43],E=X[44]),(0,_.useEffect)(T,E),X[45]!==eb?($=e=>{let t=e.currentTarget.value;if(t){let e=(0,t7.qg)(t,"HH:mm",new Date);eb(e.getHours(),e.getMinutes())}else e_(void 0)},X[45]=eb,X[46]=$):$=X[46];let ek=$,eS=(0,_.useRef)(null);X[47]===Symbol.for("react.memo_cache_sentinel")?(A=()=>eS.current,X[47]=A):A=X[47],(0,_.useImperativeHandle)(t,A),X[48]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{eS.current?.querySelector('[data-focused="true"]')?.focus()},X[48]=D):D=X[48];let eI=D;X[49]!==el?(z=e=>{if(!k$.includes(e.key))return;let t=e.currentTarget;(e.preventDefault(),t.hasAttribute("data-calendar-grid"))?eI():("ArrowUp"===e.key&&es((0,nl.f)(el,-7)),"ArrowDown"===e.key&&es((0,nl.f)(el,7)),"ArrowLeft"===e.key&&es((0,nl.f)(el,-1)),"ArrowRight"===e.key&&es((0,nl.f)(el,1)),eS.current?.querySelector("[data-preserve-focus]")?.focus())},X[49]=el,X[50]=z):z=X[50];let eE=z;X[51]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{eI()},R=[eI],X[51]=P,X[52]=R):(P=X[51],R=X[52]),(0,_.useEffect)(P,R),X[53]===Symbol.for("react.memo_cache_sentinel")?(N=()=>{document.activeElement?.matches("[data-calendar-grid], [data-calendar-grid] [data-preserve-focus]")&&eI()},X[53]=N):N=X[53],X[54]!==el?(O=[eS,eI,el],X[54]=el,X[55]=O):O=X[55],(0,_.useEffect)(N,O),X[56]!==ex?(V=()=>
459ex((0,nl.f)(new Date,-1)),X[56]=ex,X[57]=V):V=X[57];let e$=V;X[58]!==ex?(M=()=>ex(new Date),X[58]=ex,X[59]=M):M=X[59];let eA=M;X[60]!==ex?(L=()=>ex((0,nl.f)(new Date,1)),X[60]=ex,X[61]=L):L=X[61];let eD=L;e:{let e,t,n,r;if("carousel"===ee){let e,t,n,r,a,o,l,s,d,c,u;X[62]===Symbol.for("react.memo_cache_sentinel")?(e={borderBottom:"1px solid var(--card-border-color)",minHeight:"55px",position:"sticky",top:0},X[62]=e):e=X[62];let p=i.monthNames[(el||new Date)?.getMonth()];X[63]!==el?(t=(el||new Date)?.getFullYear(),X[63]=el,X[64]=t):t=X[64],X[65]!==p||X[66]!==t?(n=(0,v.jsx)(I.so,{align:"center",flex:1,children:(0,v.jsxs)(I.EY,{weight:"medium",size:1,children:[p," ",t]})}),X[65]=p,X[66]=t,X[67]=n):n=X[67],X[68]!==ey?(r=()=>ey(-1),X[68]=ey,X[69]=r):r=X[69],X[70]===Symbol.for("react.memo_cache_sentinel")?(a={content:"Previous month"},X[70]=a):a=X[70],X[71]!==r?(o=(0,v.jsx)(tL.$n,{icon:eT.YJP,mode:"bleed",onClick:r,"data-testid":"calendar-prev-month",tooltipProps:a}),X[71]=r,X[72]=o):o=X[72],X[73]!==ey?(l=()=>ey(1),X[73]=ey,X[74]=l):l=X[74],X[75]===Symbol.for("react.memo_cache_sentinel")?(s={content:"Next month"},X[75]=s):s=X[75],X[76]!==l?(d=(0,v.jsx)(tL.$n,{icon:eT.vKP,mode:"bleed",onClick:l,"data-testid":"calendar-next-month",tooltipProps:s}),X[76]=l,X[77]=d):d=X[77],X[78]!==o||X[79]!==d?(c=(0,v.jsx)(I.so,{paddingRight:3,gap:2,children:(0,v.jsxs)(tL.vE,{children:[o,d]})}),X[78]=o,X[79]=d,X[80]=c):c=X[80],X[81]!==n||X[82]!==c?(u=(0,v.jsx)(I.so,{align:"center",paddingLeft:4,style:e,children:(0,v.jsxs)(I.so,{align:"center",flex:1,justify:"space-between",children:[n,c]})}),X[81]=n,X[82]=c,X[83]=u):u=X[83],F=u;break e}X[84]!==ed||X[85]!==eg||X[86]!==i.monthNames?(e=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(kB,{onChange:eg,monthNames:i.monthNames,value:ed})}),X[84]=ed,X[85]=eg,X[86]=i.monthNames,X[87]=e):e=X[87],X[88]!==i.goToNextYear||X[89]!==i.goToPreviousYear?(t={goToNextYear:i.goToNextYear,goToPreviousYear:i.goToPreviousYear},X[88]=i.goToNextYear,X[89]=i.goToPreviousYear,X[90]=t):t=X[90],X[91]!==ec||X[92]!==ey||X[93]!==eC||X[94]!==t?(n=(0,v.jsx)(I.az,{marginLeft:2,children:(0,v.jsx)(kH,{moveFocusedDate:ey,labels:t,onChange:eC,value:ec})}),X[91]=ec,X[92]=ey,X[93]=eC,X[94]=t,X[95]=n):n=X[95],X[96]!==e||X[97]!==n?(r=(0,v.jsxs)(I.so,{children:[e,n]}),X[96]=e,X[97]=n,X[98]=r):r=X[98],F=r}let ez=F;X[99]!==r?(B=()=>r(new Date),X[99]=r,X[100]=B):B=X[100];let eP=B;return X[101]!==eA||X[102]!==eD||X[103]!==e$||X[104]!==i.goToToday||X[105]!==i.goToTomorrow||X[106]!==i.goToYesterday?(Y=!1,X[101]=eA,X[102]=eD,X[103]=e$,X[104]=i.goToToday,X[105]=i.goToTomorrow,X[106]=i.goToYesterday,X[107]=Y):Y=X[107],X[108]!==eo||X[109]!==el||X[110]!==ex||X[111]!==n||X[112]!==i.weekDayNamesShort?(H=(0,v.jsx)(kP,{weekDayNames:i.weekDayNamesShort,date:el,focused:el,onSelect:ex,selected:eo,isPastDisabled:n}),X[108]=eo,X[109]=el,X[110]=ex,X[111]=n,X[112]=i.weekDayNamesShort,X[113]=H):H=X[113],X[114]!==eE||X[115]!==H?(U=(0,v.jsxs)(I.az,{"data-calendar-grid":!0,onKeyDown:eE,marginY:2,overflow:"hidden",tabIndex:0,children:[H,kM]}),X[114]=eE,X[115]=H,X[116]=U):U=X[116],X[117]!==ez||X[118]!==et||X[119]!==Y||X[120]!==U?(Z=(0,v.jsxs)(I.az,{padding:et,children:[Y,ez,U]}),X[117]=ez,X[118]=et,X[119]=Y,X[120]=U,X[121]=Z):Z=X[121],X[122]===Symbol.for("react.memo_cache_sentinel")?(q={borderTop:"1px solid var(--card-border-color)"},X[122]=q):q=X[122],X[123]!==eo||X[124]!==eP||X[125]!==eb||X[126]!==ek||X[127]!==eh||X[128]!==i||X[129]!==l||X[130]!==en||X[131]!==Q||X[132]!==ew||X[133]!==ei?.abbreviation?(W=l&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(I.so,{align:"center",children:[(0,v.jsx)(kS,{"aria-label":i.selectTime,value:ew,onChange:ek,step:60*Q}),(0,v.jsx)(I.az,{marginLeft:2,children:(0,v.jsx)(tL.$n,{text:i.setToCurrentTime,mode:"bleed",onClick:eP})})]}),en&&(0,v.jsx)(tL.$n,{icon:eT.DZb,mode:"bleed",size:"default",text:`${ei?.abbreviation}`,onClick:eh}),!1]}),X[123]=eo,X[124]=eP,X[125]=eb,X[126]=ek,X[127]=eh,X[128]=i,X[129]=l,X[130]=en,X[131]=Q,X[132]=ew,X[133]=ei?.abbreviation,X[134]=W):W=X[134],X[135]!==eu||X[136]!==ep||X[137]!==a||X[138]!==en?(J=en&&!a&&eu&&(0,v.jsx)(eu,{...ep}),X[135]=eu,X[136]=ep,X[137]=a,X[138]=en,X[139]=J):J=X[139],X[140]!==W||X[141]!==J?(K=(0,v.jsx)(I.az,{padding:2,style:q,children:(0,v.jsxs)(I.so,{align:"center",justify:"space-between",children:[W,J]})}),X[140]=W,X[141]=J,X[142]=K):K=X[142],X[143]!==o||X[144]!==Z||X[145]!==K?(G=(0,v.jsxs)(I.az,{"data-testid":"calendar","data-ui":"Calendar",...o,ref:eS,children:[Z,K]}
459),X[143]=o,X[144]=Z,X[145]=K,X[146]=G):G=X[146],G});function kB(e){let t,n,i=(0,j.c)(6),{onChange:r,value:a,monthNames:o}=e;return i[0]!==o?(t=o.map(kY),i[0]=o,i[1]=t):t=i[1],i[2]!==r||i[3]!==t||i[4]!==a?(n=(0,v.jsx)(I.so,{flex:1,gap:1,children:(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.l6,{fontSize:1,radius:2,value:a,onChange:r,padding:2,children:t})})}),i[2]=r,i[3]=t,i[4]=a,i[5]=n):n=i[5],n}function kY(e,t){return(0,v.jsx)("option",{value:t,children:e},t)}function kH(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(20),{moveFocusedDate:u,onChange:p,value:m,labels:h}=e;c[0]!==u?(t=()=>u(-12),c[0]=u,c[1]=t):t=c[1];let f=t;c[2]!==u?(n=()=>u(12),c[2]=u,c[3]=n):n=c[3];let g=n;return c[4]===Symbol.for("react.memo_cache_sentinel")?(i={content:"Previous year"},c[4]=i):i=c[4],c[5]!==f||c[6]!==h.goToPreviousYear?(r=(0,v.jsx)(tL.$n,{"aria-label":h.goToPreviousYear,onClick:f,mode:"bleed",icon:eT.YJP,tooltipProps:i,...kL}),c[5]=f,c[6]=h.goToPreviousYear,c[7]=r):r=c[7],c[8]===Symbol.for("react.memo_cache_sentinel")?(a={width:48},c[8]=a):a=c[8],c[9]!==p||c[10]!==m?(o=(0,v.jsx)(kO,{value:m,onChange:p,radius:0,style:a}),c[9]=p,c[10]=m,c[11]=o):o=c[11],c[12]===Symbol.for("react.memo_cache_sentinel")?(l={content:"Next year"},c[12]=l):l=c[12],c[13]!==g||c[14]!==h.goToNextYear?(s=(0,v.jsx)(tL.$n,{"aria-label":h.goToNextYear,onClick:g,mode:"bleed",icon:eT.vKP,tooltipProps:l,...kL}),c[13]=g,c[14]=h.goToNextYear,c[15]=s):s=c[15],c[16]!==r||c[17]!==o||c[18]!==s?(d=(0,v.jsxs)(I.so,{gap:1,children:[r,o,s]}),c[16]=r,c[17]=o,c[18]=s,c[19]=d):d=c[19],d}let kU=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(22);m[0]!==e?({value:n,onChange:r,calendarLabels:i,padding:l,showTimeZone:s,timeZoneScope:d,onTimeZoneOpen:a,...o}=e,m[0]=e,m[1]=n,m[2]=i,m[3]=r,m[4]=a,m[5]=o,m[6]=l,m[7]=s,m[8]=d):(n=m[1],i=m[2],r=m[3],a=m[4],o=m[5],l=m[6],s=m[7],d=m[8]);let h=void 0===l?2:l,f=void 0!==s&&s;e:{let e;if(n){c=n;break e}m[9]===Symbol.for("react.memo_cache_sentinel")?((e=new Date).setSeconds(0,0),m[9]=e):e=m[9],c=e}let g=c;m[10]!==r?(u=e=>{r(e)},m[10]=r,m[11]=u):u=m[11];let y=u;return m[12]!==i||m[13]!==y||m[14]!==a||m[15]!==h||m[16]!==t||m[17]!==o||m[18]!==f||m[19]!==d||m[20]!==g?(p=(0,v.jsx)(kF,{...o,labels:i,ref:t,value:g,onSelect:y,padding:h,showTimeZone:f,timeZoneScope:d,onTimeZoneOpen:a}),m[12]=i,m[13]=y,m[14]=a,m[15]=h,m[16]=t,m[17]=o,m[18]=f,m[19]=d,m[20]=g,m[21]=p):p=m[21],p});function kZ(e){let t,n,i=(0,j.c)(4),{popoverRef:r,onClose:a,children:o}=e,{isTopLayer:l}=(0,I.Z4)();return i[0]!==r?(t=()=>[r.current],i[0]=r,i[1]=t):t=i[1],(0,I.PR)(l&&a,t),i[2]!==o?(n=(0,v.jsx)(v.Fragment,{children:o}),i[2]=o,i[3]=n):n=i[3],n}let kq=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z,P,R,N,O=(0,j.c)(67);O[0]!==e?({value:y,inputValue:r,onInputChange:s,onChange:l,selectTime:p,timeStep:f,calendarLabels:n,readOnly:c,constrainSize:m,monthPickerVariant:o,padding:d,disableInput:i,isPastDisabled:a,showTimeZone:h,timeZoneScope:g,...u}=e,O[0]=e,O[1]=n,O[2]=i,O[3]=r,O[4]=a,O[5]=o,O[6]=l,O[7]=s,O[8]=d,O[9]=c,O[10]=u,O[11]=p,O[12]=m,O[13]=h,O[14]=f,O[15]=g,O[16]=y):(n=O[1],i=O[2],r=O[3],a=O[4],o=O[5],l=O[6],s=O[7],d=O[8],c=O[9],u=O[10],p=O[11],m=O[12],h=O[13],f=O[14],g=O[15],y=O[16]);let V=void 0===m||m,M=void 0!==h&&h,{t:L}=as(),F=(0,_.useRef)(null),B=(0,_.useRef)(null),Y=(0,_.useRef)(null),{zoneDateToUtc:H}=ky(g),{DialogTimeZone:U,dialogProps:Z,dialogTimeZoneShow:q,hide:W}=kk(g),[J,K]=(0,_.useState)(null);O[17]===Symbol.for("react.memo_cache_sentinel")?(C=()=>B.current,O[17]=C):C=O[17],(0,_.useImperativeHandle)(t,C),O[18]===Symbol.for("react.memo_cache_sentinel")?(x=()=>K(B.current),b=[],O[18]=x,O[19]=b):(x=O[18],b=O[19]),(0,_.useEffect)(x,b);let[G,X]=(0,_.useState)(!1);O[20]===Symbol.for("react.memo_cache_sentinel")?(w=()=>X(!1),O[20]=w):w=O[20];let Q=w;O[21]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{B.current?.focus(),B.current?.select()},O[21]=k):k=O[21];let ee=k;O[22]===Symbol.for("react.memo_cache_sentinel")?(S=e=>{"Escape"===e.key&&X(!1)},O[22]=S):S=O[22];let et=S;O[23]===Symbol.for("react.memo_cache_sentinel")?(T=()=>X(!0),O[23]=T):T=O[23];let en=T;O[24]!==q?(E=()=>{X(!1),q()},O[24]=q,O[25]=E):E=O[25];let ei=E;O[26]!==W?($=()=>{W(),X(!0)},O[26]=W,O[27]=$):$=O[27];let er=$;O[28]!==r||O[29]!==a||O[30]!==H?(A=r&&a&&(0,ni.R)(H(new Date(r))),O[28]=r,O[29]=a,O[30]=H,O[31]=A):A=O[31];let ea=A;O[32]!==n||O[33]!==c?(D=c?null:(0,v.jsx)(I.so,{style:{padding:"5px"},children:(0,v.jsx)(tL.$n,{disabled:c,"aria-label":n.ariaLabel,ref:Y,icon:eT.CTc,mode:"bleed",onClick:en,style:{display:"block"},"data-testid":"select-date-button",tooltipProps:{content:n.tooltipText}})}),O[32]=n,O[33]=c,O[34]=D):D=O[34];let eo=D,el=i||c;
459return O[35]!==n||O[36]!==V||O[37]!==ei||O[38]!==ea||O[39]!==a||O[40]!==G||O[41]!==o||O[42]!==l||O[43]!==d||O[44]!==J||O[45]!==p||O[46]!==M||O[47]!==eo||O[48]!==L||O[49]!==f||O[50]!==g||O[51]!==y?(z=G?(0,v.jsx)(I.XS,{zOffset:1e3,children:(0,v.jsx)(tL.AM,{constrainSize:V,"data-testid":"date-input-dialog",referenceElement:J,portal:!0,content:(0,v.jsx)(kZ,{popoverRef:F,onClose:Q,children:(0,v.jsx)(I.az,{overflow:"auto",children:(0,v.jsxs)(tq.Ay,{onDeactivation:ee,children:[ea&&(0,v.jsx)(I.Zp,{margin:1,padding:2,radius:2,shadow:1,tone:"critical",children:(0,v.jsx)(I.EY,{size:1,children:L("inputs.dateTime.past-date-warning")})}),(0,v.jsx)(kU,{monthPickerVariant:o,calendarLabels:n,selectTime:p,timeStep:f,onKeyUp:et,value:y,isPastDisabled:a,onChange:l,padding:d,showTimeZone:M,timeZoneScope:g,onTimeZoneOpen:ei})]})})}),open:!0,placement:"bottom",ref:F,children:(0,v.jsx)(v.Fragment,{children:eo})})}):eo,O[35]=n,O[36]=V,O[37]=ei,O[38]=ea,O[39]=a,O[40]=G,O[41]=o,O[42]=l,O[43]=d,O[44]=J,O[45]=p,O[46]=M,O[47]=eo,O[48]=L,O[49]=f,O[50]=g,O[51]=y,O[52]=z):z=O[52],O[53]!==r||O[54]!==s||O[55]!==u||O[56]!==el||O[57]!==z?(P=(0,v.jsx)(kN,{ref:B,"data-testid":"date-input",...u,readOnly:el,value:r,onChange:s,suffix:z}),O[53]=r,O[54]=s,O[55]=u,O[56]=el,O[57]=z,O[58]=P):P=O[58],O[59]!==U||O[60]!==Z||O[61]!==er||O[62]!==M?(R=M&&U&&(0,v.jsx)(U,{...Z,onClose:er}),O[59]=U,O[60]=Z,O[61]=er,O[62]=M,O[63]=R):R=O[63],O[64]!==P||O[65]!==R?(N=(0,v.jsxs)(v.Fragment,{children:[P,R]}),O[64]=P,O[65]=R,O[66]=N):N=O[66],N}),kW=new Date,kJ=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,I=(0,j.c)(52);I[0]!==e?({id:r,deserialize:n,formatInputValue:i,onChange:a,parseInputValue:o,placeholder:l,readOnly:s,selectTime:c,serialize:u,timeStep:p,timeZoneScope:m,value:h,...d}=e,I[0]=e,I[1]=n,I[2]=i,I[3]=r,I[4]=a,I[5]=o,I[6]=l,I[7]=s,I[8]=d,I[9]=c,I[10]=u,I[11]=p,I[12]=m,I[13]=h):(n=I[1],i=I[2],r=I[3],a=I[4],o=I[5],l=I[6],s=I[7],d=I[8],c=I[9],u=I[10],p=I[11],m=I[12],h=I[13]);let[T,E]=(0,_.useState)(null),{t:$}=as();I[14]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{E(null)},I[14]=f):f=I[14],I[15]!==h?(g=[h],I[15]=h,I[16]=g):g=I[16],(0,_.useEffect)(f,g),I[17]!==T||I[18]!==a||I[19]!==o||I[20]!==u||I[21]!==h?(y=e=>{let t=e.currentTarget.value,n=""===t?null:o(t);null===n?(a(null),typeof h>"u"&&T&&E(null)):n.isValid?a(u(n.date)):E(t)},I[17]=T,I[18]=a,I[19]=o,I[20]=u,I[21]=h,I[22]=y):y=I[22];let A=y;I[23]!==a||I[24]!==u?(C=e=>{a(e?u(e):null)},I[23]=a,I[24]=u,I[25]=C):C=I[25];let D=C,z=(0,_.useRef)(null);I[26]===Symbol.for("react.memo_cache_sentinel")?(x=()=>z.current,I[26]=x):x=I[26],(0,_.useImperativeHandle)(t,x),I[27]!==n||I[28]!==i||I[29]!==T||I[30]!==o||I[31]!==h?(b=T?o(T):h?n(h):null,w=T||(b?.isValid?i(b.date):h),I[27]=n,I[28]=i,I[29]=T,I[30]=o,I[31]=h,I[32]=b,I[33]=w):(b=I[32],w=I[33]);let P=w,R=e.calendarLabels;I[34]!==i||I[35]!==l||I[36]!==$?(k=l||$("inputs.datetime.placeholder",{example:i(kW)}),I[34]=i,I[35]=l,I[36]=$,I[37]=k):k=I[37];let N=b?.date,O=P||"",V=!!s,M=b?.error;return I[38]!==D||I[39]!==A||I[40]!==r||I[41]!==e.calendarLabels||I[42]!==d||I[43]!==c||I[44]!==V||I[45]!==M||I[46]!==k||I[47]!==N||I[48]!==O||I[49]!==p||I[50]!==m?(S=(0,v.jsx)(kq,{...d,calendarLabels:R,id:r,selectTime:c,timeStep:p,timeZoneScope:m,placeholder:k,ref:z,value:N,inputValue:O,readOnly:V,onInputChange:A,onChange:D,customValidity:M}),I[38]=D,I[39]=A,I[40]=r,I[41]=e.calendarLabels,I[42]=d,I[43]=c,I[44]=V,I[45]=M,I[46]=k,I[47]=N,I[48]=O,I[49]=p,I[50]=m,I[51]=S):S=I[51],S});function kK(e){return{ariaLabel:e("calendar.button.aria-label"),goToTomorrow:e("calendar.action.go-to-tomorrow"),goToToday:e("calendar.action.go-to-today"),goToYesterday:e("calendar.action.go-to-yesterday"),goToNextMonth:e("calendar.action.go-to-next-month"),goToPreviousMonth:e("calendar.action.go-to-previous-month"),goToNextYear:e("calendar.action.go-to-next-year"),goToPreviousYear:e("calendar.action.go-to-previous-year"),setToCurrentTime:e("calendar.action.set-to-current-time"),selectTime:e("calendar.action.select-time"),tooltipText:e("calendar.button.tooltip-text"),monthNames:[e("calendar.month-names.january"),e("calendar.month-names.february"),e("calendar.month-names.mar
459ch"),e("calendar.month-names.april"),e("calendar.month-names.may"),e("calendar.month-names.june"),e("calendar.month-names.july"),e("calendar.month-names.august"),e("calendar.month-names.september"),e("calendar.month-names.october"),e("calendar.month-names.november"),e("calendar.month-names.december")],weekDayNamesShort:[e("calendar.weekday-names.short.monday"),e("calendar.weekday-names.short.tuesday"),e("calendar.weekday-names.short.wednesday"),e("calendar.weekday-names.short.thursday"),e("calendar.weekday-names.short.friday"),e("calendar.weekday-names.short.saturday"),e("calendar.weekday-names.short.sunday")],setToTimePreset:(t,n)=>e("calendar.action.set-to-time-preset",{time:t,date:n})}}let kG=e=>(0,tX.qg)(e,tX.D2),kX=e=>(0,tX.GP)(e,tX.D2),kQ=e=>{let t,n,i,r,a,o=(0,j.c)(18),{useElementQueries:l,timeZoneScope:s,allowTimeZoneSwitch:d,tooltipContent:c}=e,u=void 0===d||d,{timeZone:p}=ky(s),{DialogTimeZone:m,dialogProps:h,dialogTimeZoneShow:f}=kk(s);return o[0]!==m||o[1]!==h?(t=m&&(0,v.jsx)(m,{...h}),o[0]=m,o[1]=h,o[2]=t):t=o[2],o[3]!==c?(n=(0,v.jsx)(I.az,{flex:1,padding:1,children:(0,v.jsx)(I.EY,{size:1,children:c})}),o[3]=c,o[4]=n):n=o[4],o[5]!==u||o[6]!==f||o[7]!==p.alternativeName||o[8]!==p.city||o[9]!==p.namePretty||o[10]!==l?(i=(0,v.jsx)("div",{children:l?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.az,{className:"button-small",children:u?(0,v.jsx)(tL.$n,{"data-testid":"timezone-button",icon:eT.Pe7,mode:"bleed",readOnly:!u,onClick:u?f:el.A,text:`${p.city}`}):(0,v.jsxs)(I.cV,{space:2,padding:2,children:[(0,v.jsx)(I.EY,{weight:"medium",size:1,children:(0,v.jsx)(eT.Pe7,{})}),(0,v.jsx)(I.EY,{weight:"medium",size:1,children:`${p.city}`})]})}),(0,v.jsx)(I.az,{className:"button-large",children:u?(0,v.jsx)(tL.$n,{"data-testid":"timezone-button",icon:eT.Pe7,mode:"bleed",readOnly:!u,onClick:u?f:el.A,text:`${p.alternativeName} (${p.namePretty})`}):(0,v.jsxs)(I.cV,{space:2,padding:2,children:[(0,v.jsx)(I.EY,{weight:"medium",size:1,children:(0,v.jsx)(eT.Pe7,{})}),(0,v.jsx)(I.EY,{weight:"medium",size:1,children:`${p.alternativeName} (${p.namePretty})`})]})})]}):(0,v.jsx)(v.Fragment,{children:u?(0,v.jsx)(tL.$n,{icon:eT.Pe7,mode:"bleed",readOnly:!u,onClick:u?f:el.A,text:`${p.alternativeName} (${p.namePretty})`}):(0,v.jsxs)(I.cV,{space:2,padding:2,children:[(0,v.jsx)(I.EY,{weight:"medium",size:1,children:(0,v.jsx)(eT.Pe7,{})}),(0,v.jsx)(I.EY,{weight:"medium",size:1,children:`${p.alternativeName} (${p.namePretty})`})]})})}),o[5]=u,o[6]=f,o[7]=p.alternativeName,o[8]=p.city,o[9]=p.namePretty,o[10]=l,o[11]=i):i=o[11],o[12]!==n||o[13]!==i?(r=(0,v.jsx)(tL.m_,{content:n,portal:!0,children:i}),o[12]=n,o[13]=i,o[14]=r):r=o[14],o[15]!==t||o[16]!==r?(a=(0,v.jsxs)(v.Fragment,{children:[t,r]}),o[15]=t,o[16]=r,o[17]=a):a=o[17],a},k1=(0,eI.I4)(I.dU).withConfig({displayName:"TimeZoneButtonElementQuery",componentId:"sc-1k8t8gw-0"})`.button-small{display:block;}.button-large{display:none;}&[data-eq-min~='2']{.button-small{display:none;}.button-large{display:block;}}`,k2=(0,eI.I4)(I.Zp).withConfig({displayName:"Root",componentId:"sc-1t1t98a-0"})`line-height:1;`,k5=e=>e.toISOString();function k0(e,t){for(let n of((e,t)=>{if("function"==typeof e)throw Error(`Schema type "${t?.name||"<not-found>"}"'s \`validation\` was not run though \`inferFromSchema\``);return e?Array.isArray(e)?e:[e]:[]})(e?.validation,e))for(let e of n._rules)if(e.flag===t)return e;return null}function k7(e){if(e.currentTarget&&document.activeElement===e.currentTarget){e.preventDefault();let t=function(e){if(!e||!(e instanceof Element))return null;let t=e.parentElement;for(;t;){let e=window.getComputedStyle(t).overflowY;if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return window}(e.currentTarget);t&&t.scrollBy({top:e.deltaY,left:e.deltaX,behavior:"instant"})}}function k3(e){let t,n,i,r,a,o,l=(0,j.c)(12),{schemaType:s,validationError:d,elementProps:c}=e;l[0]!==c?({ref:n,...t}=c,l[0]=c,l[1]=t,l[2]=n):(t=l[1],n=l[2]);let u=k0(s,"min"),p=k0(s,"integer"),m=k0(s,"precision"),h="number"==typeof u?.constraint&&u?.constraint>=0,f=p||m?.constraint===0,g=h?f?"numeric":"decimal":"text",y=(0,_.useRef)(null);l[3]===Symbol.for("react.memo_cache_sentinel")?(i=()=>y.current,l[3]=i):i=l[3],(0,_.useImperativeHandle)(n,i),l[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{let e=y.current;if(e)return e.addEventListener("wheel",k7),()=>{e.removeEventListener("wheel",k7)}},a=[y],l[4]=r,l[5]=a):(r=l[4],a=l[5]),(0,_.useEffect)(r,a);let C=h?"[d]*":void 0;return l[6]!==t||l[7]!==g||l[8]!==s.placeholder||l[9]!==C||l[10]!==d?(o=(0,v.jsx)(I.ks,{...t,ref:y,type:"number",step:"any",inputMode:g,customValidity:d,placeholder:s.placeholder,pattern:C,max:Number.MAX_SAFE_INTEGER,min:Number.MIN_SAFE_INTEGER,"data-testid":"number-input"}
459),l[6]=t,l[7]=g,l[8]=s.placeholder,l[9]=C,l[10]=d,l[11]=o):o=l[11],o}function k8(e,t){let n,i=(0,j.c)(3);e:{if(e.renderMembers){let r;try{let n;i[0]!==t||i[1]!==e?(n=e.renderMembers(t),i[0]=t,i[1]=e,i[2]=n):n=i[2],r=n}catch(e){if(dT)throw e;console.error("Error rendering members, returning original members",e),r=t}n=r;break e}n=t}return n}function k4(e,t,n){let i;if(e.name===nY.yL){for(let e of n){if("error"===e.level)return"error";"warning"===e.level?i="warning":"info"===e.level&&void 0===i&&(i="info")}return i}for(let r of e.fields){let e=t.concat(r.name);for(let t of n)if(w.w1(t.path,e)){if("error"===t.level)return"error";"warning"===t.level?i="warning":"info"===t.level&&void 0===i&&(i="info")}}return i}let k6=(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(9),{onClick:a}=e;r[0]!==a||r[1]!==e.name?(n=()=>{a?.(e.name)},r[0]=a,r[1]=e.name,r[2]=n):n=r[2];let o=n,l=`group-tab-${e.name}`,s=`${e.name}-tab`;return r[3]!==o||r[4]!==e||r[5]!==t||r[6]!==l||r[7]!==s?(i=(0,v.jsx)(tL.oz,{"data-testid":l,id:s,label:e.title,ref:t,...e,onClick:o}),r[3]=o,r[4]=e,r[5]=t,r[6]=l,r[7]=s,r[8]=i):i=r[8],i}),k9=e=>{let t,n,i,r,a=(0,j.c)(13);a[0]!==e?({name:t,title:i,...n}=e,a[0]=e,a[1]=t,a[2]=n,a[3]=i):(t=a[1],n=a[2],i=a[3]);let{selected:o}=e,l=`${t}-tab`,s=n["aria-controls"],d=`group-select-${t}`,c=o?"true":"false",u=i||t;return a[4]!==t||a[5]!==e.iconRight||a[6]!==l||a[7]!==s||a[8]!==d||a[9]!==c||a[10]!==u||a[11]!==i?(r=(0,v.jsxs)("option",{title:i,value:t,id:l,"aria-controls":s,"data-testid":d,"aria-selected":c,children:[u," ",e.iconRight]}),a[4]=t,a[5]=e.iconRight,a[6]=l,a[7]=s,a[8]=d,a[9]=c,a[10]=u,a[11]=i,a[12]=r):r=a[12],r},Se=(0,eI.I4)(I.dU).withConfig({displayName:"Root",componentId:"sc-1sy91tf-0"})`&[data-eq-max~='0'] [data-ui='TabList']{display:none;}[data-ui='Select']{display:none;}&[data-eq-max~='0'] [data-ui='Select']{display:block;}`,St=e=>{let t,n,i=(0,j.c)(19),{inputId:r,groups:a,onClick:o,shouldAutoFocus:l,disabled:s,path:d,validation:c}=e,u=void 0===l||l,{t:p}=as();if(i[0]!==s||i[1]!==a||i[2]!==r||i[3]!==o||i[4]!==d||i[5]!==u||i[6]!==p||i[7]!==c){let e;i[9]!==s||i[10]!==r||i[11]!==o||i[12]!==d||i[13]!==u||i[14]!==p||i[15]!==c?(e=e=>{let t=e.i18n?.title?p(e.i18n.title.key,{ns:e.i18n.title.ns}):e.title||e.name,n=k4(e,d,c);return(0,v.jsx)(k6,{"aria-controls":`${r}-field-group-fields`,autoFocus:u&&e.selected,disabled:s||e.disabled,icon:e?.icon,iconRight:n?(0,v.jsx)(xI,{status:n}):void 0,name:e.name,onClick:o,selected:!!e.selected,title:t},`${r}-${e.name}-tab`)},i[9]=s,i[10]=r,i[11]=o,i[12]=d,i[13]=u,i[14]=p,i[15]=c,i[16]=e):e=i[16],t=a.map(e),i[0]=s,i[1]=a,i[2]=r,i[3]=o,i[4]=d,i[5]=u,i[6]=p,i[7]=c,i[8]=t}else t=i[8];return i[17]!==t?(n=(0,v.jsx)(I.wb,{space:2,"data-testid":"field-group-tabs",children:t}),i[17]=t,i[18]=n):n=i[18],n},Sn=e=>{let t,n,i,r,a=(0,j.c)(22),{disabled:o,groups:l,inputId:s,onSelect:d,shouldAutoFocus:c,path:u,validation:p}=e,m=void 0===c||c;a[0]!==d?(t=e=>{d(e.currentTarget.value)},a[0]=d,a[1]=t):t=a[1];let h=t,{t:f}=as();a[2]!==f?(n=f("inputs.object.field-group-tabs.aria-label"),a[2]=f,a[3]=n):n=a[3];let g=l.find(Sr)?.name;if(a[4]!==l||a[5]!==s||a[6]!==u||a[7]!==f||a[8]!==p){let e;a[10]!==s||a[11]!==u||a[12]!==f||a[13]!==p?(e=e=>{let t=e.i18n?.title?f(e.i18n.title.key,{ns:e.i18n.title.ns}):e.title||e.name,n=k4(e,u,p),i=n?` (${f(`inputs.object.field-group-tabs.val
459idation-${n}`)})`:void 0;return(0,v.jsx)(k9,{"aria-controls":`${s}-field-group-fields`,disabled:e.disabled,name:e.name,iconRight:i,selected:!!e.selected,title:t},`${s}-${e.name}-tab`)},a[10]=s,a[11]=u,a[12]=f,a[13]=p,a[14]=e):e=a[14],i=l.map(e),a[4]=l,a[5]=s,a[6]=u,a[7]=f,a[8]=p,a[9]=i}else i=a[9];return a[15]!==o||a[16]!==h||a[17]!==m||a[18]!==n||a[19]!==g||a[20]!==i?(r=(0,v.jsx)(I.l6,{"aria-label":n,autoFocus:m,"data-testid":"field-group-select",disabled:o,fontSize:2,muted:!0,onChange:h,value:g,children:i}),a[15]=o,a[16]=h,a[17]=m,a[18]=n,a[19]=g,a[20]=i,a[21]=r):r=a[21],r},Si=(0,_.memo)(function(e){let t,n,i,r,a,o=(0,j.c)(11);o[0]!==e?({disabled:i,onClick:t,...n}=e,o[0]=e,o[1]=t,o[2]=n,o[3]=i):(t=o[1],n=o[2],i=o[3]);let l=void 0!==i&&i;o[4]!==t?(r=e=>{t?.(e)},o[4]=t,o[5]=r):r=o[5];let s=r,d=hO(n.path,!0);return o[6]!==l||o[7]!==s||o[8]!==n||o[9]!==d?(a=(0,v.jsxs)(Se,{"data-testid":"field-group-root",children:[(0,v.jsx)(St,{...n,disabled:l,onClick:s,validation:d}),(0,v.jsx)(Sn,{...n,disabled:l,onSelect:s,validation:d})]}),o[6]=l,o[7]=s,o[8]=n,o[9]=d,o[10]=a):a=o[10],a});function Sr(e){return e.selected}let Sa=(0,eI.I4)(I.Zp).withConfig({displayName:"FieldGroupTabsWrapper",componentId:"sc-1m48g6t-0"})`margin-bottom:${({$level:e,theme:t})=>0===e?0:-1*t.sanity.space[5]}px;padding-bottom:${({$level:e,theme:t})=>t.sanity.space[4]}px;`,So=(0,eI.I4)(I.xA).withConfig({displayName:"AlignedBottomGrid",componentId:"sc-1m48g6t-1"})`align-items:flex-end;`;function Sl(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(38),{fieldNames:h,onChange:f,readOnly:g,value:y}=e,C=h.length;m[0]!==f?(t=e=>{f(hW([e]))},m[0]=f,m[1]=t):t=m[1];let x=t,{t:b}=as();if(m[2]!==C||m[3]!==b?(n=b("inputs.object.unknown-fields.warning.title",{count:C}),m[2]=C,m[3]=b,m[4]=n):n=m[4],m[5]!==n?(i=(0,v.jsx)(v.Fragment,{children:n}),m[5]=n,m[6]=i):i=m[6],m[7]!==C||m[8]!==b?(r=b("inputs.object.unknown-fields.warning.description",{count:C}),m[7]=C,m[8]=b,m[9]=r):r=m[9],m[10]!==r?(a=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(v.Fragment,{children:r})}),m[10]=r,m[11]=a):a=m[11],m[12]!==b?(o=b("inputs.object.unknown-fields.warning.details.title"),m[12]=b,m[13]=o):o=m[13],m[14]!==C||m[15]!==b?(l=b("inputs.object.unknown-fields.warning.details.description",{count:C}),m[14]=C,m[15]=b,m[16]=l):l=m[16],m[17]!==l?(s=(0,v.jsx)(I.az,{marginBottom:3,children:(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(v.Fragment,{children:l})})}),m[17]=l,m[18]=s):s=m[18],m[19]!==h||m[20]!==x||m[21]!==g||m[22]!==y){let e;m[24]!==x||m[25]!==g||m[26]!==y?(e=e=>(0,v.jsx)(Ss,{fieldName:e,onUnsetClick:x,readOnly:g,value:y?.[e]},e),m[24]=x,m[25]=g,m[26]=y,m[27]=e):e=m[27],d=h.map(e),m[19]=h,m[20]=x,m[21]=g,m[22]=y,m[23]=d}else d=m[23];return m[28]!==d?(c=(0,v.jsx)(I.BJ,{as:"ul",space:3,children:d}),m[28]=d,m[29]=c):c=m[29],m[30]!==o||m[31]!==s||m[32]!==c?(u=(0,v.jsxs)(yl,{marginTop:4,open:dT,title:o,children:[s,c]}),m[30]=o,m[31]=s,m[32]=c,m[33]=u):u=m[33],m[34]!==u||m[35]!==i||m[36]!==a?(p=(0,v.jsxs)(g$,{status:"warning",title:i,children:[a,u]}),m[34]=u,m[35]=i,m[36]=a,m[37]=p):p=m[37],p}function Ss(e){let t,n,i,r,a,o,l,s=(0,j.c)(21),{fieldName:d,onUnsetClick:c,readOnly:u,value:p}=e;s[0]!==d||s[1]!==c?(t=()=>{c(d)},s[0]=d,s[1]=c,s[2]=t):t=s[2];let m=t,{t:h}=as();return s[3]!==d?(n=(0,v.jsx)(I.Zp,{padding:3,shadow:1,tone:"inherit",children:(0,v.jsx)(I.Cy,{size:1,children:d})}),s[3]=d,s[4]=n):n=s[4],s[5]!==p?(i=JSON.stringify(p,null,2),s[5]=p,s[6]=i):i=s[6],s[7]!==i?(r=(0,v.jsx)(I.az,{overflow:"auto",padding:3,children:(0,v.jsx)(I.Cy,{language:"json",size:1,children:i})}),s[7]=i,s[8]=r):r=s[8],s[9]!==u||s[10]!==h?(a=u&&(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:h,i18nKey:"inputs.object.unknown-fields.read-only.description"})})}),s[9]=u,s[10]=h,s[11]=a):a=s[11],s[12]!==m||s[13]!==u||s[14]!==h?(o=!u&&(0,v.jsx)(I.Zp,{padding:3,shadow:1,tone:"inherit",children:(0,v.jsx)(tL.$n,{icon:eT.ucK,mode:"ghost",onClick:m,size:"large",tone:"critical",text:h("inputs.object.unknown-fields.remove-field-button.text")})}
459),s[12]=m,s[13]=u,s[14]=h,s[15]=o):o=s[15],s[16]!==n||s[17]!==r||s[18]!==a||s[19]!==o?(l=(0,v.jsxs)(I.Zp,{as:"li",overflow:"hidden",radius:2,shadow:1,tone:"caution",children:[n,r,a,o]}),s[16]=n,s[17]=r,s[18]=a,s[19]=o,s[20]=l):l=s[20],l}let Sd=(0,eI.I4)(I.BJ).withConfig({displayName:"RootStack",componentId:"sc-1iaocof-0"})`&:focus{outline:none;}`,Sc=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(44),{groups:p,id:m,members:h,onChange:f,onFieldGroupSelect:g,renderAnnotation:y,renderBlock:C,renderField:x,renderInlineBlock:b,renderInput:w,renderItem:k,renderPreview:S,schemaType:I,path:T,level:E,value:$,onPathFocus:A}=e,D=k8(I,h),z=(0,_.useRef)(null);u[0]!==I.options?(t=I.options||{},u[0]=I.options,u[1]=t):t=u[1];let{columns:P}=t;u[2]!==m||u[3]!==T?(n="root"!==m&&!(T.length>0&&(0,eD.tA)((0,ep.A)(T))),u[2]=m,u[3]=T,u[4]=n):n=u[4];let R=n;e:{let e,t;if(!I.fields){i=null;break e}if(u[5]!==I.fields||u[6]!==$){let t=I.fields.map(Su);e=Object.keys($||{}).filter(e=>!e.startsWith("_")&&!t.includes(e)),u[5]=I.fields,u[6]=$,u[7]=e}else e=u[7];let n=e;if(0===n.length){i=null;break e}u[8]!==f||u[9]!==n||u[10]!==$?(t=(0,v.jsx)(Sl,{fieldNames:n,value:$,onChange:f}),u[8]=f,u[9]=n,u[10]=$,u[11]=t):t=u[11],i=t}let N=i;u[12]!==p?(r=p.find(Sp),u[12]=p,u[13]=r):r=u[13];let O=r;u[14]!==R||u[15]!==A?(a=e=>{R&&e.target===z.current&&A(rM)},u[14]=R,u[15]=A,u[16]=a):a=u[16];let V=a;u[17]!==y||u[18]!==C||u[19]!==x||u[20]!==b||u[21]!==w||u[22]!==k||u[23]!==S||u[24]!==D?(o=()=>(0,v.jsx)(bt,{members:D,renderAnnotation:y,renderBlock:C,renderField:x,renderInlineBlock:b,renderInput:w,renderItem:k,renderPreview:S}),u[17]=y,u[18]=C,u[19]=x,u[20]=b,u[21]=w,u[22]=k,u[23]=S,u[24]=D,u[25]=o):o=u[25];let M=o;if(0===h.length)return null;let L=R?0:void 0;u[26]!==p||u[27]!==m||u[28]!==E||u[29]!==g||u[30]!==T?(l=p.length>0?(0,v.jsx)(Sa,{$level:E,"data-testid":"field-groups",children:(0,v.jsx)(Si,{path:T,groups:p,inputId:m,onClick:g,shouldAutoFocus:!1})}):null,u[26]=p,u[27]=m,u[28]=E,u[29]=g,u[30]=T,u[31]=l):l=u[31];let F=O?.name;return u[32]!==P||u[33]!==M?(s=P?(0,v.jsx)(So,{columns:P,gap:4,marginTop:1,children:M()}):M(),u[32]=P,u[33]=M,u[34]=s):s=u[34],u[35]!==F||u[36]!==s?(d=(0,v.jsx)(_.Fragment,{children:s},F),u[35]=F,u[36]=s,u[37]=d):d=u[37],u[38]!==V||u[39]!==N||u[40]!==d||u[41]!==L||u[42]!==l?(c=(0,v.jsxs)(Sd,{space:6,tabIndex:L,onFocus:V,ref:z,children:[l,d,N]}),u[38]=V,u[39]=N,u[40]=d,u[41]=L,u[42]=l,u[43]=c):c=u[43],c});function Su(e){return e.name}function Sp(e){let{selected:t}=e;return t}async function Sm(e,t,n){return e&&(t.options?.slugify||((e,t)=>{let n=t.options?.maxLength;return e?i1(e,{truncate:"number"==typeof n?n:200,symbols:!0}):""}))(e,t,n)}async function Sh(e,t,n){return"function"==typeof e?e(t,n):w.Jt(t,e)}function Sf(e){return"error"===e.level}function Sg(e){let t,n=(0,j.c)(3),{validationError:i,elementProps:r}=e;return n[0]!==r||n[1]!==i?(t=(0,v.jsx)(I.ks,{...r,customValidity:i,"data-testid":"string-input"}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t}let Sy=eI.I4.span.withConfig({displayName:"Segment",componentId:"sc-d0cjq3-0"})`${({theme:e,$tone:t})=>{if(typeof t>"u")return;let{color:n}=(0,nN.JW)(e);return{backgroundColor:n.button.bleed[t]?.pressed?.bg,color:n.button.bleed[t]?.pressed?.fg,textDecoration:"none"}}}`,SC=e=>{let t,n=(0,j.c)(2),{segment:i}=e;return n[0]!==i.text?(t=(0,v.jsx)(Sy,{as:"del","data-text":i.text,contentEditable:!1,"aria-hidden":!0,inert:!0,$tone:"critical"}),n[0]=i.text,n[1]=t):t=n[1],t},Sx=e=>{let t,n,i=(0,j.c)(5),{children:r,segment:a}=e;return i[0]!==a?(t=function(e){if("unchanged"!==e.action&&"u">typeof e.annotation.provenance.bundle)return"drafts"===e.annotation.provenance.bundle?uv.asap.tone:uA(e.annotation.provenance.bundle)}(a),i[0]=a,i[1]=t):t=i[1],i[2]!==r||i[3]!==t?(n=(0,v.jsx)(Sy,{as:"ins",$tone:t,children:r}),i[2]=r,i[3]=t,i[4]=n):n=i[4],n};function Sb(){return(0,eI.AH)` 460 del${Sy} { 461 opacity: 0.5; 462 text-decoration: line-through; 463 464 &::before { 465 text-decoration: line-through; 466 content: attr(data-text); 467 } 468 } 469 470 ins${Sy} { 471 text-decoration: none; 472 } 473 `}let Sv=(0,tW.g_)({version:1,name:"Portable Text Editor Expanded",de
473scription:"The portable text editor was expanded"}),Sj=(0,tW.g_)({version:1,name:"Portable Text Editor Collapsed",description:"The portable text editor was collapsed"}),Sw=(0,tW.g_)({version:1,name:"Portable Text Editor Invalid Value Ignored",description:"The portable text got an invalid value from the form and pressed button to ignore it"}),S_=(0,tW.g_)({version:1,name:"Portable Text Editor Invalid Value Resolved",description:"The portable text got an invalid value from the form and pressed button to resolve it."}),Sk=(0,tW.g_)({name:"New Draft Created",version:1,description:"User created a new draft"}),SS=eI.I4.div.withConfig({displayName:"OverlayContainer",componentId:"sc-qb8e3h-0"})`position:relative;`,SI=eI.I4.div.withConfig({displayName:"ContentContainer",componentId:"sc-qb8e3h-1"})`z-index:13;opacity:0;transition:opacity 300ms linear;`,ST=(0,eI.I4)(I.Zp).withConfig({displayName:"CardContainer",componentId:"sc-qb8e3h-2"})`border:1px solid var(--card-border-color);position:absolute;top:0;left:0;width:100%;height:100%;z-index:12;transition:opacity 150ms ease-in-out;opacity:0;box-sizing:border-box;`,SE=(0,eI.I4)(I.so).withConfig({displayName:"FlexContainer",componentId:"sc-qb8e3h-3"})`position:absolute;top:0;left:0;width:100%;height:100%;&:hover,&:focus{& ${ST}{opacity:0.9;}& ${SI}{opacity:1;}}`;function S$(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(25),{children:p,message:m,onActivate:h,isOverlayActive:f}=e,[g,y]=(0,_.useState)(!1),{t:C}=as();u[0]!==h?(t=()=>{h&&h()},u[0]=h,u[1]=t):t=u[1];let x=t;u[2]!==f||u[3]!==h?(n=e=>{f&&"Space"===e.code&&h&&(e.preventDefault(),h())},u[2]=f,u[3]=h,u[4]=n):n=u[4];let b=n;u[5]!==f||u[6]!==h?(i=()=>{f&&h&&h()},u[5]=f,u[6]=h,u[7]=i):i=u[7];let w=i;u[8]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{y(!0)},u[8]=r):r=u[8];let k=r;u[9]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{y(!1)},u[9]=a):a=u[9];let S=a;o="u">typeof window&&"ontouchstart"in window||"u">typeof navigator&&navigator.maxTouchPoints>0?"tap":g?"click-focused":"click",u[10]!==m||u[11]!==o||u[12]!==C?(l=m||C("inputs.portable-text.activate-on-focus-message",{context:o}),u[10]=m,u[11]=o,u[12]=C,u[13]=l):l=u[13];let T=l;u[14]!==T?(s=(0,v.jsx)(I.EY,{weight:"medium",children:T}),u[14]=T,u[15]=s):s=u[15];let E=s;return u[16]!==f||u[17]!==E?(d=f&&(0,v.jsxs)(SE,{"data-testid":"activate-overlay",tabIndex:0,align:"center",justify:"center",children:[(0,v.jsx)(ST,{radius:2}),(0,v.jsx)(SI,{children:E})]}),u[16]=f,u[17]=E,u[18]=d):d=u[18],u[19]!==p||u[20]!==x||u[21]!==w||u[22]!==b||u[23]!==d?(c=(0,v.jsxs)(SS,{onBlur:S,onClick:x,onFocus:k,onKeyDown:b,onDragEnter:w,children:[d,p]}),u[19]=p,u[20]=x,u[21]=w,u[22]=b,u[23]=d,u[24]=c):c=u[24],c}let SA=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-1bnjn7g-0"})(e=>{let{color:t,input:n,radius:i}=(0,nN.JW)(e.theme),r={color:t.input.default.enabled.border,width:n.border.width};return(0,eI.AH)` 474 --input-box-shadow: ${g0(r)}; 475 476 position: relative; 477 478 & [data-wrapper] { 479 overflow: hidden; 480 overflow: clip; 481 position: relative; 482 z-index: 1; 483 padding: ${n.border.width}px; 484 } 485 486 & [data-border] { 487 position: absolute; 488 top: 0; 489 left: 0; 490 right: 0; 491 bottom: 0; 492 box-shadow: var(--input-box-shadow); 493 z-index: 2; 494 border-radius: ${i[2]}px; 495 pointer-events: none; 496 } 497 498 &:not([data-read-only])[data-focused] [data-border] { 499 --input-box-shadow: ${g7({base:t,border:r,focusRing:n.text.focusRing})}; 500 } 501 `}),SD=(0,eI.I4)(I.Wd).withConfig({displayName:"ExpandedLayer",componentId:"sc-1bnjn7g-1"})`position:absolute;top:0;left:0;right:0;bottom:0;& > div{height:100%;}`,Sz=eI.I4.div.withConfig({displayName:"StringDiffContainer",componentId:"sc-1bnjn7g-2"})`height:100%;${Sb}`;function SP(){let e,t=(0,j.c)(1),n=(0,_.useContext)(S.rf);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={},t[0]=e):e=t[0],(0,tF.J)(n,e)}let SR=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(22);h[0]!==e?({as:r,onScroll:n,...i}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=r):(n=h[1],i=h[2],r=h[3]);let f=void 0===r?"div":r,g=(0,_.useRef)(null);h[4]===Symbol.for("react.memo_cache_sentinel")?(a=()=>g.current,h[4]=a):a=h[4],(0,_.useImperativeHandle)(t,a);let y=(0,_.useContext)(S.z_),[C]=(0,_.useState)(SO);return h[5]!==C||h[6]!==n?(o=()=>
501{if(n)return C.subscribe(n)},l=[C,n],h[5]=C,h[6]=n,h[7]=o,h[8]=l):(o=h[7],l=h[8]),(0,_.useEffect)(o,l),h[9]!==C||h[10]!==y?(s=()=>{if(y)return C.subscribe(y.publish)},d=[y,C],h[9]=C,h[10]=y,h[11]=s,h[12]=d):(s=h[11],d=h[12]),(0,_.useEffect)(s,d),h[13]!==C?(c=()=>{let e=e=>{C.publish(e)},t=g.current;if(t)return t.addEventListener("scroll",e,{passive:!0,capture:!0}),()=>{t.removeEventListener("scroll",e)}},u=[C,g],h[13]=C,h[14]=c,h[15]=u):(c=h[14],u=h[15]),(0,_.useEffect)(c,u),h[16]!==f||h[17]!==i?(p=(0,v.jsx)(f,{"data-testid":"scroll-container",...i,ref:g}),h[16]=f,h[17]=i,h[18]=p):p=h[18],h[19]!==C||h[20]!==p?(m=(0,v.jsx)(S.z_.Provider,{value:C,children:p}),h[19]=C,h[20]=p,h[21]=m):m=h[21],m}),SN=(0,_.memo)(SR);function SO(){return(0,e$.A)()}SN.displayName="Memo(Forwardref(ScrollContainer))";let SV=[1,2,3,4,5,6,7,8,9,10],SM=["â","â","â "],SL=["number","lower-alpha","lower-roman"],SF={em:"em","strike-through":"s",underline:"u",strong:"strong",code:"code"},SB={h1:{paddingTop:5,paddingBottom:4},h2:{paddingTop:4,paddingBottom:4},h3:{paddingTop:4,paddingBottom:3},h4:{paddingTop:4,paddingBottom:3},h5:{paddingTop:4,paddingBottom:3},h6:{paddingTop:4,paddingBottom:2},normal:{paddingTop:2,paddingBottom:3},blockquote:{paddingTop:2,paddingBottom:3}},SY=eI.I4.span.withConfig({displayName:"Root",componentId:"sc-12qlql7-0"})(({theme:e})=>{let t=e.sanity.color.dark;return(0,eI.AH)` 502 /* Make sure the annotation styling is visible */ 503 &[data-mark='code'] { 504 color: inherit; 505 mix-blend-mode: ${t?"screen":"multiply"}; 506 } 507 `});function SH(e){let t,n,i,r,a=(0,j.c)(19),{value:o,focused:l,selected:s,children:d,schemaType:c}=e,u=hz();if(a[0]!==c||a[1]!==u.decorators){let e;a[3]!==c?(e=e=>e.value===c.value,a[3]=c,a[4]=e):e=a[4],t=u.decorators.find(e),a[0]=c,a[1]=u.decorators,a[2]=t}else t=a[2];let p=t;if(!p)throw Error(`Could not find Sanity schema type for decorator: ${c.value}`);let m=SF[o],h=p.component;a[5]!==m||a[6]!==o?(n=e=>(0,v.jsx)(SY,{as:m,"data-mark":o,children:e.children}),a[5]=m,a[6]=o,a[7]=n):n=a[7];let f=n;a[8]!==f||a[9]!==l||a[10]!==p||a[11]!==s||a[12]!==o?(i={focused:l,renderDefault:f,schemaType:p,selected:s,title:p.title,value:o},a[8]=f,a[9]=l,a[10]=p,a[11]=s,a[12]=o,a[13]=i):i=a[13];let g=i;return a[14]!==h||a[15]!==f||a[16]!==d||a[17]!==g?(r=h?(0,v.jsx)(h,{...g,children:d}):(0,v.jsx)(f,{...g,children:d}),a[14]=h,a[15]=f,a[16]=d,a[17]=g,a[18]=r):r=a[18],r}function SU(e){return`list-level-${e}`}let SZ=eI.I4.div.withConfig({displayName:"ReviewChangesHighlightBlock",componentId:"sc-1414815-0"})(({theme:e,$fullScreen:t})=>{let{radius:n,space:i,color:r}=e.sanity,a=(0,I.B3)(r.spot.yellow,.2);return(0,eI.AH)` 508 position: absolute; 509 border-radius: ${n[3]}px; 510 top: -${i[2]}px; 511 bottom: -${i[1]+i[1]}px; 512 left: ${t?i[4]+i[1]:i[1]}px; 513 right: ${i[1]}px; 514 background-color: ${a}; 515 pointer-events: none; 516 `}),Sq=eI.I4.div.withConfig({displayName:"ChangeBarWrapper",componentId:"sc-1legq8u-0"})(({$changed:e,$disabled:t,$hasFocus:n,$isReviewChangeOpen:i})=>t?(0,eI.AH)` 517 ${SK}:after { 518 display: none; 519 } 520 `:(0,eI.AH)` 521 --change-bar-offset: 4px; 522 523 display: flex; 524 position: relative; 525 526 ${SK}:after { 527 opacity: 0.5; 528 } 529 530 @media (hover: hover) { 531 &:hover { 532 z-index: 10; 533 ${SK}:after { 534 opacity: 1; 535 } 536 } 537 } 538 539 /* hide when field is not changed */ 540 ${n&&(0,eI.AH)` 541 ${SK}:after { 542 opacity: 1; 543 } 544 `} 545 546 /* hide when field is not changed */ 547 ${!e&&(0,eI.AH)` 548 ${SK}:after { 549 opacity: 0; 550 pointer-events: none; 551 } 552 `} 553 554 /* hide hover effect when review changes is open */ 555 ${i&&(0,eI.AH)` 556 ${SG} { 557 opacity: 0; 558 } 559 `} 560 `),SW=eI.I4.div.withConfig({displayName:"FieldWrapper",componentId:"sc-1legq8u-1"})`flex-grow:1;min-width:0;`,SJ=eI.I4.div.withConfig({displayName:"ChangeBar",componentId:"sc-1legq8u-2"})`position:relative;opacity:1;transition:opacity 100ms;z-index:${({$zIndex:e})=>e};`,SK=eI.I4.div.withConfig({displayName:"ChangeBarMarker",componentId:"sc-1legq8u-3"})(e=>{let{media:t}=(0,nN.JW)(e.theme);return(0,eI.AH)` 561 position: absolute; 562 top: -1px; 563 left: var(--change-bar-offset); 564 width: 1px; 565 bottom: -1px; 566 background-color: var(--card-bg-color); 567 568 @media (min-width: ${t[0]}px) { 569 display: unset; 570 } 571 572 &:after { 573 content: ''; 574 display: block; 575 position: absolute; 576 top: 1px; 577 left: 0; 578 width: 1px; 579 bottom: 1px; 580 background-color: var(--card-badge-caution-dot-color); 581 border-radius: 0.5px; 582 } 583 `}),SG=eI.I4.button.withConfig({displayName:"ChangeBarButton",componentId:"sc-1legq8u-4"})(e=>{let{$withHoverEffect:t,$isInteractive:n}=e;return(0,eI.AH)` 584 appearance: none; 585 border: 0; 586 outline: 0; 587 display: block; 588 padding: 0; 589 background: transparent; 590 opacity: 0; 591 position: absolute; 592 height: 100%; 593 594 ${n&&(0,eI.AH)` 595 cursor: pointer; 596 pointer-events: all; 597 `} 598 599 left: calc(-0.25rem + var(--change-bar-offset)); 600 width: calc(1rem - 1px); 601 transition: opacity ${250}ms; 602 603 &:focus { 604 border: 0; 605 outline: 0; 606 } 607 608 &:focus { 609 border: 0; 610 outline: 0; 611 } 612 613 ${t&&(0,eI.AH)` 614 @media (hover: hover) { 615 &:hover { 616 opacity: 0.2; 617 } 618 } 619 `} 620 `});function SX(e){let t,n,i,r=(0,j.c)(18),{children:a,disabled:o,hasFocus:l,isChanged:s,withHoverEffect:d,isInteractive:c}=e,u=void 0===d||d,p=void 0===c||c,{onOpenReviewChanges:m,isReviewChangesOpen:h}=(0,_.useContext)(S.HJ),{zIndex:f}=(0,I.Z4)(),{t:g}=as();r[0]!==o||r[1]!==s||r[2]!==p||r[3]!==h||r[4]!==m||r[5]!==g||r[6]!==u||r[7]!==f?(t=o||!s?null:(0,v.jsxs)(SJ,{"data-testid":"change-bar",$zIndex:f,children:[(0,v.jsx)(SK,{"data-testid":"change-bar__marker"}),(0,v.jsx)(tL.m_,{content:g("changes.change-bar.aria-label"),portal:!0,disabled:!p,children:(0,v.jsx)(SG,{"aria-label":g("changes.change-bar.aria-label"),"data-testid":"change-bar__button",onClick:h?void 0:m,tabIndex:-1,type:"button",$withHoverEffect:u,$isInteractive:p})})]}),r[0]=o,r[1]=s,r[2]=p,r[3]=h,r[4]=m,r[5]=g,r[6]=u,r[7]=f,r[8]=t):t=r[8];let y=t;return r[9]!==a?(n=(0,v.jsx)(SW,{"data-testid":"change-bar__field-wrapper",children:a}),r[9]=a,r[10]=n):n=r[10],r[11]!==y||r[12]!==o||r[13]!==l||r[14]!==s||r[15]!==h||r[16]!==n?(i=(0,v.jsxs)(Sq,{"data-testid":"change-bar-wrapper",$changed:s,$disabled:o,$hasFocus:l,$isReviewChangeOpen:h,children:[n,y]}),r[11]=y,r[12]=o,r[13]=l,r[14]=s,r[15]=h,r[16]=n,r[17]=i):i=r[17],i}let SQ=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(41);C[0]!==e?({children:t,disabled:n,hasFocus:i,isChanged:r,onMouseEnter:o,onMouseLeave:l,path:d,withHoverEffect:c,isInteractive:a,...s}=e,C[0]=e,C[1]=t,C[2]=n,C[3]=i,C[4]=r,C[5]=a,C[6]=o,C[7]=l,C[8]=s,C[9]=d,C[10]=c):(t=C[1],n=C[2],i=C[3],r=C[4],a=C[5],o=C[6],l=C[7],s=C[8],d=C[9],c=C[10]);let x=void 0===d?rM:d,b=(0,I.Z4)(),[S,T]=(0,_.useState)(!1);C[11]!==o?(u=e=>{o?.(e),T(!0)},C[11]=o,C[12]=u):u=C[12];let E=u;C[13]!==l?(p=e=>{l?.(e),T(!1)},C[13]=l,C[14]=p):p=C[14];let $=p,[A,D]=(0,_.useState)(null);C[15]!==n||C[16]!==A||C[17]!==x?(m=n||!A?null:`field-${w.dI(x)}`,C[15]=n,C[16]=A,C[17]=x,C[18]=m):m=C[18];let z=m;return C[19]!==A||C[20]!==i||C[21]!==S||C[22]!==r||C[23]!==b.zIndex||C[24]!==x?(h=()=>({element:A,path:x,isChanged:!!r,hasFocus:i,hasHover:S,hasRevertHover:!1,zIndex:b.zIndex}),C[19]=A,C[20]=i,C[21]=S,C[22]=r,C[23]=b.zIndex,C[24]=x,C[25]=h):h=C[25],h9(z,h,k),C[26]!==x?(f=!1,C[26]=x,C[27]=f):f=C[27],C[28]!==t||C[29]!==n||C[30]!==i||C[31]!==r||C[32]!==a||C[33]!==f||C[34]!==c?(g=(0,v.jsxs)(SX,{hasFocus:i,isChanged:r,disabled:n,withHoverEffect:c,isInteractive:a,children:[f,t]}),C[28]=t,C[29]=n,C[30]=i,C[31]=r,C[32]=a,C[33]=f,C[34]=c,C[35]=g):g=C[35],C[36]!==E||C[37]!==$||C[38]!==s||C[39]!==g?(y=(0,v.jsx)("div",{...s,ref:D,onMouseEnter:E,onMouseLeave:$,children:g}),C[36]=E,C[37]=$,C[38]=s,C[39]=g,C[40]=y):y=C[40],y});function S1(e){let t,n,i,r,a,o,l,s=(0,j.c)(15);s[0]!==e?({children:t,hasFocus:n,isChanged:i,path:r,withHoverEffect:o,...a}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=i,s[4]=r,s[5]=a,s[6]=o):(t=s[1],n=s[2],i=s[3],r=s[4],a=s[5
620],o=s[6]);let{isInteractive:d}=(0,_.useContext)(S.HJ);return s[7]!==t||s[8]!==n||s[9]!==i||s[10]!==d||s[11]!==r||s[12]!==a||s[13]!==o?(l=(0,v.jsx)(SQ,{...a,path:r,hasFocus:n,isChanged:i,withHoverEffect:o,isInteractive:d,children:t}),s[7]=t,s[8]=n,s[9]=i,s[10]=d,s[11]=r,s[12]=a,s[13]=o,s[14]=l):l=s[14],l}let S2=(0,eI.I4)(S1).withConfig({displayName:"StyledChangeIndicatorWithProvidedFullPath",componentId:"sc-1cqx88r-0"})(()=>(0,eI.AH)` 621 width: 1px; 622 height: 100%; 623 624 & > div { 625 height: 100%; 626 } 627 `),S5=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-134ue80-0"})`display:flex;pointer-events:all;`;function S0(e){let t,n,i,r=(0,j.c)(10),a=(0,n1.v$)(),o=hz(),{block:l,onChange:s,renderBlockActions:d}=e;r[0]!==o.decorators?(t=o.decorators.map(S7),r[0]=o.decorators,r[1]=t):t=r[1];let c=t;e:{if(d){let e;r[2]!==l||r[3]!==c||r[4]!==a||r[5]!==s||r[6]!==d?(e=d({block:l,value:n1.Og.getValue(a),set:function(e){let{allowedDecorators:t,block:n,onChange:i}=e;return e=>{let r=[hq((0,is.$x)(e,{allowedDecorators:t}),[{_key:n._key}])];return i(gD.from(r))}}({allowedDecorators:c,block:l,onChange:s}),unset:function(e){let{block:t,onChange:n}=e;return()=>{let e=[hW([{_key:t._key}])];return n(gD.from(e))}}({block:l,onChange:s}),insert:function(e){let{allowedDecorators:t,block:n,onChange:i}=e;return e=>{let r=[hZ((Array.isArray(e)?e:[e]).map(e=>(0,is.$x)(e,{allowedDecorators:t})),"after",[{_key:n._key}])];return i(gD.from(r))}}({allowedDecorators:c,block:l,onChange:s})}),r[2]=l,r[3]=c,r[4]=a,r[5]=s,r[6]=d,r[7]=e):e=r[7],n=e;break e}n=void 0}let u=n;return u?(r[8]!==u?(i=(0,v.jsx)(S5,{contentEditable:!1,children:u}),r[8]=u,r[9]=i):i=r[9],i):null}function S7(e){return e.value}let S3=eI.I4.div.withConfig({displayName:"TextRoot",componentId:"sc-dzmicd-0"})(function(e){let{$level:t}=e,{color:n,font:i,radius:r,space:a}=(0,nN.JW)(e.theme),o=SL[(t-1)%SL.length],l=SM[(t-1)%SM.length];return(0,eI.AH)` 628 --marker-bg-color: transparent; 629 630 mix-blend-mode: ${n._dark?"screen":"multiply"}; 631 position: relative; 632 633 & > [data-ui='TextBlock_inner'] { 634 position: relative; 635 flex: 1; 636 } 637 638 & > div:before { 639 content: ''; 640 position: absolute; 641 top: -${a[1]}px; 642 bottom: -${a[1]}px; 643 left: -${a[1]}px; 644 right: -${a[1]}px; 645 border-radius: ${r[2]}px; 646 background-color: var(--marker-bg-color); 647 // This is to make sure the marker is always behind the text 648 z-index: -1; 649 pointer-events: none; 650 } 651 652 &[data-markers] { 653 --marker-bg-color: ${n._dark?ez.OZ.purple[950].hex:ez.OZ.purple[50].hex}; 654 } 655 656 &[data-warning] { 657 --card-border-color: ${n.button.ghost.caution.enabled.border}; 658 --marker-bg-color: ${n.button.ghost.caution.hovered.bg}; 659 } 660 661 &[data-error] { 662 --card-border-color: ${n.button.ghost.critical.enabled.border}; 663 --marker-bg-color: ${n.button.ghost.critical.hovered.bg}; 664 } 665 666 & [data-list-prefix] { 667 position: absolute; 668 margin-left: -4.5rem; 669 width: 3.75rem; 670 text-align: right; 671 box-sizing: border-box; 672 } 673 674 &[data-list-item='number'] [data-list-prefix] { 675 font-variant-numeric: tabular-nums; 676 677 & > span:before { 678 content: counter(${SU(t)}) '.'; 679 content: counter(${SU(t)}, ${o}) '.'; 680 } 681 } 682 683 &[data-list-item='bullet'] [data-list-prefix] { 684 & > span { 685 position: relative; 686 top: -0.1875em; 687 688 &:before { 689 content: '${l}'; 690 font-size: 0.46666em; 691 } 692 } 693 } 694 695 & [data-text] { 696 overflow-wrap: anywhere; 697 text-transform: none; 698 white-space: pre-wrap; 699 font-family: ${i.text.family}; 700 flex: 1; 701 702 *::selection { 703 background-color: ${(0,nN.B3)(n.focusRing,.3)}; 704 } 705 } 706 `}),S8=(0,eI.I4)(I.az).withConfig({displayName:"TextBlockFlexWrapper",componentId:"sc-dzmicd-1"})`position:relative;display:flex;`,S4=eI.I4.div.withConfig({displayName:"ListPrefixWrapper",componentId:"sc-dzmicd-2"})`user-select:none;white-space:nowrap;`,S6=(0,eI.I4)(I.az).withConfig({displayName:"BlockActionsOuter",componentId:"sc-dzmicd-3"})`line-height:0;width:25px;position:relative;`,S9=(0,eI.I4)(I.so).withConfig({displayName:"BlockActionsInner",componentId:"sc-dzmicd-4"})(({theme:e})=>
706{let{fonts:t,space:n}=e.sanity,i=t.text.sizes[1],r=t.text.sizes[2],a=i.lineHeight-i.ascenderHeight-i.descenderHeight,o=r.lineHeight-r.ascenderHeight-r.descenderHeight,l=0-(a+n[2]+n[2]-o)/2;return(0,eI.AH)` 707 user-select: none; 708 position: absolute; 709 right: 0; 710 top: ${l}px; 711 `}),Ie=(0,eI.I4)(I.az).withConfig({displayName:"TooltipBox",componentId:"sc-dzmicd-5"})`max-width:250px;`,It=(0,eI.I4)(I.so).withConfig({displayName:"TextFlex",componentId:"sc-dzmicd-6"})`position:relative;padding-left:${({$level:e})=>e?32*e:0}px;`,In=eI.I4.div.withConfig({displayName:"ChangeIndicatorWrapper",componentId:"sc-dzmicd-7"})(({theme:e,$hasChanges:t})=>{let{space:n}=e.sanity;return(0,eI.AH)` 712 position: absolute; 713 width: ${n[2]}px; 714 right: 0; 715 top: 0; 716 bottom: 0; 717 padding-left: ${n[1]}px; 718 padding-right: ${n[2]}px; 719 user-select: none; 720 ${!1} 721 722 ${!t&&(0,eI.AH)` 723 display: none; 724 `} 725 `}),Ii=eI.I4.div.withConfig({displayName:"TextContainer",componentId:"sc-1fthfjz-0"})`display:block;`,Ir=e=>{let t,n,i,r,a=(0,j.c)(8);return a[0]!==e?({children:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,v.jsx)(Ii,{children:t}),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(r=(0,v.jsx)(I.EY,{"data-testid":"text-style--normal",...n,children:i}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r},Ia=e=>{let t,n,i,r,a=(0,j.c)(8);return a[0]!==e?({children:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,v.jsx)(Ii,{children:t}),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(r=(0,v.jsx)(I.DZ,{as:"h1","data-testid":"text-style--h1",size:5,...n,children:i}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r},Io=e=>{let t,n,i,r,a=(0,j.c)(8);return a[0]!==e?({children:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,v.jsx)(Ii,{children:t}),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(r=(0,v.jsx)(I.DZ,{as:"h2","data-testid":"text-style--h2",size:4,...n,children:i}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r},Il=e=>{let t,n,i,r,a=(0,j.c)(8);return a[0]!==e?({children:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,v.jsx)(Ii,{children:t}),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(r=(0,v.jsx)(I.DZ,{as:"h3","data-testid":"text-style--h3",size:3,...n,children:i}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r},Is=e=>{let t,n,i,r,a=(0,j.c)(8);return a[0]!==e?({children:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,v.jsx)(Ii,{children:t}),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(r=(0,v.jsx)(I.DZ,{as:"h4","data-testid":"text-style--h4",size:2,...n,children:i}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r},Id=e=>{let t,n,i,r,a=(0,j.c)(8);return a[0]!==e?({children:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,v.jsx)(Ii,{children:t}),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(r=(0,v.jsx)(I.DZ,{as:"h5","data-testid":"text-style--h5",size:1,...n,children:i}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r},Ic=e=>{let t,n,i,r,a=(0,j.c)(8);return a[0]!==e?({children:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,v.jsx)(Ii,{children:t}),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(r=(0,v.jsx)(I.DZ,{as:"h6","data-testid":"text-style--h6",size:0,...n,children:i}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r},Iu=eI.I4.blockquote.withConfig({displayName:"BlockQuoteRoot",componentId:"sc-1fthfjz-1"})`position:relative;display:block;margin:0;padding-left:${({theme:e})=>e.sanity.space[3]}px;&::before{content:'';position:absolute;left:0;top:-4px;bottom:-4px;width:3px;background:var(--card-border-color);}`,Ip=e=>{let t,n,i,r,a=(0,j.c)(8);a[0]!==e?({children:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]);let o=n;return a[3]!==t?(i=(0,v.jsx)(I.EY,{as:"p",children:t}),a[3]=t,a[4]=i):i=a[4],a[5]!==o||a[6]!==i?(r=(0,v.jsx)(Iu,{"data-testid":"text-style--blockquote",...o,children:i}),a[5]=o,a[6]=i,a[7]=r):r=a[7],r},Im={normal:Ir,h1:Ia,h2:Io,h3:Il,h4:Is,h5:Id,h6:Ic,blockquote:Ip};function Ih(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,k,S,T,E,$,A=(0,j.c)(114),{children:D,floatingBoundary:z,focused:P,isFullscreen:R,onItemClose:N,onItemOpen:O,onPathFocus:V,path:M,readOnly:L,referenceBoundary:F,renderBlock:B,renderAnnotation:Y,renderBlockActions:H,renderCustomMarkers:U,renderField:Z,renderInlineBlock:q,renderInput:W,renderItem:J,renderPreview:K,schemaType:G,selected:X,setElementRef:Q,spellCheck:ee,value:et}=e,{Markers:en}=hE().__internal.components,ei=hF(M),[er,ea]=(0,_.useState)(null);A[0]!==M?(t=on(M),A[0]=M,A[1]=t):t=A[1];let eo=hJ(t),el=(0,n1.v$)(),es=hz(),{onChange:ed}=fr(),ec=fe(),[eu,ep]=(0,_.useState)(eo);A[2]!==eo?(n=()=>{eo&&ep(eo)},i=[eo],A[2]=eo,A[3]=n,A[4]=i):(n=A[3],i=A[4]),(0,_.useEffect)(n,i),A[5]!==ec||A[6]!==M?(r=ec&&on(ec?.path||[])===on(M),A[5]=ec,A[6]=M,A[7]=r):r=A[7];let em=r,eh=hT(M,!0);if(A[8]!==M||A[9]!==eh){let e;A[11]!==M?(e=e=>(0,w.n4)(e.path,M)||"children"===e.path.slice(-3)[1]&&e.path.length-M.length==2,A[11]=M,A[12]=e):e=A[12],a=eh.filter(e),A[8]=M,A[9]=eh,A[10]=a}else a=A[10];let ef=a,{validation:eg,hasError:ey,hasWarning:eC,hasInfo:ex}=hL(eo?.node),eb=!!U&&ei.length>0,ev=ey||eC||eb||ex;A[13]!==eo||A[14]!==O?(o=()=>{eo&&O(eo.node.path)},A[13]=eo,A[14]=O,A[15]=o):o=A[15];let ej=o;A[16]!==el||A[17]!==M?(l=()=>{let e={path:M.slice(-1),offset:0};n1.Og.delete(el,{focus:e,anchor:e},{mode:"blocks"}),n1.Og.focus(el)},A[16]=el,A[17]=M,A[18]=l):l=A[18];let ew=l,e_=et?.level;A[19]!==et.listItem?(s=et.listItem&&(0,v.jsx)(S4,{contentEditable:!1,
725children:(0,v.jsx)(I.EY,{"data-list-prefix":"",children:(0,v.jsx)(Ii,{})})}),A[19]=et.listItem,A[20]=s):s=A[20],A[21]===Symbol.for("react.memo_cache_sentinel")?(d=void 0,A[21]=d):d=A[21],A[22]!==D?(c=(0,v.jsx)("div",{"data-text":"",style:d,children:D}),A[22]=D,A[23]=c):c=A[23],A[24]!==c||A[25]!==e_||A[26]!==s?(u=(0,v.jsxs)(It,{align:"flex-start",$level:e_,children:[s,c]}),A[24]=c,A[25]=e_,A[26]=s,A[27]=u):u=A[27];let ek=u;e:{let e;if(R&&!H){let e;A[28]===Symbol.for("react.memo_cache_sentinel")?(e={paddingX:5},A[28]=e):e=A[28],p=e;break e}if(R&&H){let e;A[29]===Symbol.for("react.memo_cache_sentinel")?(e={paddingLeft:5,paddingRight:2},A[29]=e):e=A[29],p=e;break e}if(H){let e;A[30]===Symbol.for("react.memo_cache_sentinel")?(e={paddingLeft:3,paddingRight:2},A[30]=e):e=A[30],p=e;break e}A[31]===Symbol.for("react.memo_cache_sentinel")?(e={paddingX:3},A[31]=e):e=A[31],p=e}let eS=p;t:{let e;if(et.listItem){let e;A[32]===Symbol.for("react.memo_cache_sentinel")?(e={paddingY:2},A[32]=e):e=A[32],m=e;break t}A[33]!==et.style?(e=SB[et.style||"normal"]||{paddingY:2},A[33]=et.style,A[34]=e):e=A[34],m=e}let eI=m,eT=!!eo?.member.open,eE=es.portableText,e$=eo?.member.item.changed??!1,eA=eo?.node.path||rM,eD=!!L;A[35]!==z||A[36]!==P||A[37]!==eT||A[38]!==ei||A[39]!==N||A[40]!==ej||A[41]!==V||A[42]!==ew||A[43]!==eE||A[44]!==F||A[45]!==er||A[46]!==Y||A[47]!==B||A[48]!==Z||A[49]!==q||A[50]!==W||A[51]!==J||A[52]!==K||A[53]!==G||A[54]!==X||A[55]!==e$||A[56]!==eA||A[57]!==eD||A[58]!==ek||A[59]!==ef||A[60]!==eg||A[61]!==et?(h={__unstable_floatingBoundary:z,__unstable_referenceBoundary:F,__unstable_referenceElement:er,changed:e$,children:ek,focused:P,markers:ei,onClose:N,onOpen:ej,onPathFocus:V,onRemove:ew,open:eT,parentSchemaType:eE,path:eA,presence:ef,readOnly:eD,renderAnnotation:Y,renderBlock:B,renderDefault:If,renderField:Z,renderInput:W,renderInlineBlock:q,renderItem:J,renderPreview:K,schemaType:G,selected:X,validation:eg,value:et},A[35]=z,A[36]=P,A[37]=eT,A[38]=ei,A[39]=N,A[40]=ej,A[41]=V,A[42]=ew,A[43]=eE,A[44]=F,A[45]=er,A[46]=Y,A[47]=B,A[48]=Z,A[49]=q,A[50]=W,A[51]=J,A[52]=K,A[53]=G,A[54]=X,A[55]=e$,A[56]=eA,A[57]=eD,A[58]=ek,A[59]=ef,A[60]=eg,A[61]=et,A[62]=h):h=A[62];let ez=h;A[63]!==en||A[64]!==ei||A[65]!==U||A[66]!==ev||A[67]!==eg?(f=ev&&(0,v.jsx)(Ie,{children:(0,v.jsx)(en,{markers:ei,renderCustomMarkers:U,validation:eg})})||null,A[63]=en,A[64]=ei,A[65]=U,A[66]=ev,A[67]=eg,A[68]=f):f=A[68];let eP=f,eR=H&&!L,eN=R&&eu;A[69]!==eo||A[70]!==Q?(g=e=>{eo&&Q({key:eo.member.key,elementRef:e}),ea(e)},A[69]=eo,A[70]=Q,A[71]=g):g=A[71];let eO=g;A[72]===Symbol.for("react.memo_cache_sentinel")?(y=void 0,A[72]=y):y=A[72];let eV=!ev,eM=et.level||1,eL=ey?"":void 0,eF=eb?"":void 0,eB=eC?"":void 0;return A[73]!==ez||A[74]!==B?(C=B&&B(ez),A[73]=ez,A[74]=B,A[75]=C):C=A[75],A[76]!==L||A[77]!==ee||A[78]!==eM||A[79]!==eL||A[80]!==eF||A[81]!==eB||A[82]!==C||A[83]!==et.listItem?(x=(0,v.jsx)(S3,{$level:eM,"data-error":eL,"data-list-item":et.listItem,"data-markers":eF,"data-read-only":L,"data-testid":"text-block__text","data-warning":eB,spellCheck:ee,children:C}),A[76]=L,A[77]=ee,A[78]=eM,A[79]=eL,A[80]=eF,A[81]=eB,A[82]=C,A[83]=et.listItem,A[84]=x):x=A[84],A[85]!==eV||A[86]!==x||A[87]!==eP?(b=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(tL.m_,{content:eP,disabled:eV,placement:"top",portal:"editor",children:x})}),A[85]=eV,A[86]=x,A[87]=eP,A[88]=b):b=A[88],A[89]!==eR||A[90]!==P||A[91]!==ed||A[92]!==H||A[93]!==et?(k=eR&&(0,v.jsx)(S6,{contentEditable:!1,marginRight:3,children:(0,v.jsx)(S9,{children:P&&(0,v.jsx)(S0,{block:et,onChange:ed,renderBlockActions:H})})}),A[89]=eR,A[90]=P,A[91]=ed,A[92]=H,A[93]=et,A[94]=k):k=A[94],A[95]!==eN||A[96]!==P||A[97]!==eo||A[98]!==eu?(S=eN&&(0,v.jsx)(In,{$hasChanges:(eo??eu).member.item.changed,contentEditable:!1,children:(0,v.jsx)(S2,{hasFocus:P,isChanged:(eo??eu).member.item.changed,path:(eo??eu).member.item.path,withHoverEffect:!1})}),A[95]=eN,A[96]=P,A[97]=eo,A[98]=eu,A[99]=S):S=A[99],A[100]!==em||A[101]!==R?(T=em&&(0,v.jsx)(SZ,{$fullScreen:!!R}),A[100]=em,A[101]=R,A[102]=T):T=A[102],A[103]!==eS||A[104]!==b||A[105]!==k||A[106]!==S||A[107]!==T?(E=(0,v.jsx)(S8,{"data-testid":"text-block__wrapper",children:(0,v.jsxs)(I.so,{flex:1,...eS,children:[b,k,S,T]})}),A[103]=eS,A[104]=b,A[105]=k,A[106]=S,A[107]=T,A[108]=E):E=A[108],A[109]!==R||A[110]!==eI||A[111]!==eO||A[112]!==E?($=(0,v.jsx)(I.az,{...eI,"data-testid":"text-block","data-fullscreen":R,ref:eO,style:y,children:E}),A[109]=R,A[110]=eI,A[111]=eO,A[112]=E,A[113]=$):$=A[113],$}let If=e=>{let t,n=(0,j.c)(2);return n[0]!==e.children?(t=(0,v.jsx)(v.Fragment,{children:e.children}),n[0]=e.children,n[1]=t):t=n[1],t},Ig=(0,eI.I4)(I.Zp).withConfig({displayName:"Root",componentId:"sc-1r30gnh-0"})`&[data-fullscreen='true']{height:100%;}&[data-fullscreen='false']{min-height:5em;resize:${({$isOneLine:e})=>e?"none":"vertical"};overflow:auto;height:${({$isOneLine:e})=>e?"auto":"19em"};}&:not([hidden]){display:flex;}flex-direction:column;`,Iy=(0,eI.I4)(I.Zp).withConfig({displayName:"ToolbarCard",componentId:"sc-1r30gnh-1"})`z-index:10;line-height:0;`,IC=(0,eI.I4)(I.Zp).withConfig({displayName:"EditableCard",componentId:"sc-1r30gnh-2"})`position:relative;overflow:hidden;overflow:clip;& > [data-portal]{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;& > *{pointer-events:initial;}}&::selection,*::selection{background-color:transparent;}`,Ix=(0,eI.I4)(SN).withConfig({displayName:"Scroller",componentId:"sc-1r30gnh-3"})`position:relative;overflow:auto;height:100%;display:flex;flex-direction:column;& > *{flex:1;min-height:auto;}`,Ib=(0,eI.I4)(I.Zp).withConfig({displayName:"EditableWrapper",componentId:"sc-1r30gnh-4"})`height:100%;width:100%;counter-reset:${SV.map(e=>SU(e)).join(" ")};overflow:hidden;overflow:clip;& > div{height:100%;}& .pt-editable{display:block;width:100%;height:100%;${SV.map(e=>(0,eI.AH)` 726 /* Reset the list count each time a list index of 1 is encountered 727 * for the current level. 728 */ 729 & [data-level='${e}'][data-list-index='1'] { 730 counter-set: ${SU(e)} 1; 731 } 732 /* Otherwise, increment the list count for the current level. */ 733 & [data-level='${e}']:not([data-list-index='1']) { 734 counter-increment: ${SU(e)}; 735 } 736 `)} & > .pt-list-item-bullet + .pt-list-item-number,& > .pt-list-item-number + .pt-list-item-bullet{margin-top:${({theme:e})=>e.sanity.space[3]}px;}& > :not(.pt-list-item) + .pt-list-item{margin-top:${({theme:e})=>e.sanity.space[2]}px;}& > .pt-list-item + :not(.pt-list-item){margin-top:${({theme:e})=>e.sanity.space[3]}px;}& > :first-child{padding-top:${({$isFullscreen:e,theme:t})=>t.sanity.space[e?5:3]}px;}padding-bottom:${({$isFullscreen:e,$isOneLine:t,theme:n})=>t?"0":n.sanity.space[e?9:5]}px;& > .pt-block{margin:0 auto;max-width:${e=>(0,nN.JW)(e.theme).container[1]}px;}& .pt-drop-indicator{pointer-events:none;border:1px solid var(--card-focus-ring-color) !important;height:0px !important;border-radius:${e=>(0,nN.JW)(e.theme).radius[2]}px;margin-top:-3px;left:calc( ${({$isFullscreen:e,theme:t})=>e?(0,I.D0)(t.sanity.space[5]):(0,I.D0)(t.sanity.space[3])} - 1px );right:calc( ${({$isFullscreen:e,theme:t})=>e?(0,I.D0)(t.sanity.space[5]):(0,I.D0)(t.sanity.space[3])} - 1px );width:calc( 100% - ${({$isFullscreen:e,theme:t})=>e?(0,I.D0)(2*t.sanity.space[5]):(0,I.D0)(2*t.sanity.space[3])} + 2px ) !important;}}`,Iv=e=>{let t,n=(0,j.c)(2);return n[0]!==e.children?(t=(0,v.jsx)(v.Fragment,{children:e.children}),n[0]=e.children,n[1]=t):t=n[1],t},Ij=e=>{let t,n,i,r=(0,j.c)(17),{block:a,children:o,schemaType:l,selected:s,focused:d,level:c,value:u}=e,p=hz();if(r[0]!==l||r[1]!==p.lists){let e;
736r[3]!==l?(e=e=>e.value===l.value,r[3]=l,r[4]=e):e=r[4],t=p.lists.find(e),r[0]=l,r[1]=p.lists,r[2]=t}else t=r[2];let m=t;if(!m)throw Error(`Could not find Sanity schema type for list item: ${l.value}`);let{title:h,component:f}=m;r[5]!==a||r[6]!==d||r[7]!==c||r[8]!==m||r[9]!==s||r[10]!==h||r[11]!==u?(n={block:a,focused:d,level:c,renderDefault:Iv,schemaType:m,selected:s,title:h,value:u},r[5]=a,r[6]=d,r[7]=c,r[8]=m,r[9]=s,r[10]=h,r[11]=u,r[12]=n):n=r[12];let g=n;return r[13]!==f||r[14]!==o||r[15]!==g?(i=f?(0,v.jsx)(f,{...g,children:o}):(0,v.jsx)(Iv,{...g,children:o}),r[13]=f,r[14]=o,r[15]=g,r[16]=i):i=r[16],i},Iw=e=>{let t,n,i,r,a=(0,j.c)(21),{block:o,focused:l,children:s,selected:d,schemaType:c}=e,u=hz();if(a[0]!==c||a[1]!==u.styles){let e;a[3]!==c?(e=e=>e.value===c.value,a[3]=c,a[4]=e):e=a[4],t=u.styles.find(e),a[0]=c,a[1]=u.styles,a[2]=t}else t=a[2];let p=t;if(!p)throw Error(`Could not find Sanity schema type for style: ${c.value}`);let m=(o.style&&Im[o.style]?Im[o.style]:Im[0])||Ir;a[5]!==m||a[6]!==o.style?(n=e=>(0,v.jsx)(m,{children:(0,v.jsx)(Ii,{"data-testid":`text-style--${o.style}`,children:e.children})}),a[5]=m,a[6]=o.style,a[7]=n):n=a[7];let h=n,f=p.component,{title:g,value:y}=p;a[8]!==h||a[9]!==o||a[10]!==l||a[11]!==p||a[12]!==d||a[13]!==g||a[14]!==y?(i={block:o,focused:l,renderDefault:h,schemaType:p,selected:d,title:g,value:y},a[8]=h,a[9]=o,a[10]=l,a[11]=p,a[12]=d,a[13]=g,a[14]=y,a[15]=i):i=a[15];let C=i;return a[16]!==f||a[17]!==h||a[18]!==s||a[19]!==C?(r=f?(0,v.jsx)(f,{...C,children:s}):(0,v.jsx)(h,{...C,children:s}),a[16]=f,a[17]=h,a[18]=s,a[19]=C,a[20]=r):r=a[20],r},I_=eI.I4.div.withConfig({displayName:"DividerDiv",componentId:"sc-16u5v5h-0"})`border-right:1px solid var(--card-border-color);height:auto;&[data-hidden]{opacity:0;}`;function Ik(e){let t,n,i,r=(0,j.c)(6);r[0]!==e?({hidden:t,...n}=e,r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]);let a=t?"":void 0;return r[3]!==n||r[4]!==a?(i=(0,v.jsx)(I_,{"data-ui":"CollapseMenuDivider","data-hidden":a,...n}),r[3]=n,r[4]=a,r[5]=i):i=r[5],i}let IS={portal:!0,constrainSize:!0},II=(0,_.forwardRef)(function(e,t){let n,i,r,a=(0,j.c)(11),{disableRestoreFocusOnClose:o,menuButton:l,menuButtonProps:s,menuOptions:d,onMenuClose:c}=e;return a[0]!==d?(n=d.map(IT),a[0]=d,a[1]=n):n=a[1],a[2]!==n?(i=(0,v.jsx)(I.W1,{children:n}),a[2]=n,a[3]=i):i=a[3],a[4]!==o||a[5]!==t||a[6]!==l||a[7]!==s||a[8]!==c||a[9]!==i?(r=(0,v.jsx)(tL.IU,{__unstable_disableRestoreFocusOnClose:o,id:"menu-button",ref:t,onClose:c,popover:IS,...s,button:l,menu:i}),a[4]=o,a[5]=t,a[6]=l,a[7]=s,a[8]=c,a[9]=i,a[10]=r):r=a[10],r});function IT(e,t){let{collapsedProps:n,expandedProps:i,tooltipProps:r,tooltipText:a,dividerBefore:o,fontSize:l,padding:s,text:d,icon:c,selected:u,...p}=e.props;return(0,v.jsxs)(_.Fragment,{children:[o&&0!==t&&(0,v.jsx)(I.Nj,{}),(0,v.jsx)(tL.Dr,{text:d,icon:c,pressed:u,"aria-pressed":u,...p})]},e.key)}function IE(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(14);d[0]!==e?({onIntersectionChange:n,children:t,options:i,...r}=e,d[0]=e,d[1]=t,d[2]=n,d[3]=i,d[4]=r):(t=d[1],n=d[2],i=d[3],r=d[4]);let[c,u]=(0,_.useState)(null);return d[5]!==c||d[6]!==n||d[7]!==i?(a=()=>{let e=c?.closest('[data-ui="Flex"]');if(!e)return;let t=new IntersectionObserver(n,i);return t.observe(e),()=>{t.unobserve(e),t.disconnect()}},o=[c,n,i],d[5]=c,d[6]=n,d[7]=i,d[8]=a,d[9]=o):(a=d[8],o=d[9]),(0,_.useEffect)(a,o),d[10]===Symbol.for("react.memo_cache_sentinel")?(l=(0,v.jsx)("span",{hidden:!0,ref:u}),d[10]=l):l=d[10],d[11]!==t||d[12]!==r?(s=(0,v.jsxs)(I.so,{...r,children:[t,l]}),d[11]=t,d[12]=r,d[13]=s):s=d[13],s}let I$=(0,eI.AH)` 737 list-style: none; 738 display: flex; 739 white-space: nowrap; 740 741 &[data-hidden='true'] { 742 opacity: 0; 743 visibility: hidden; 744 } 745`,IA=(0,eI.I4)(I.so).withConfig({displayName:"OuterFlex",componentId:"sc-mju1i8-0"})`padding:${3}px;margin:-${3}px;box-sizing:border-box;`,ID=(0,eI.I4)(I.so).withConfig({displayName:"RootFlex",componentId:"sc-mju1i8-1"})`border-radius:inherit;position:relative;`,Iz=(0,eI.I4)(I.so).withConfig({displayName:"RowFlex",componentId:"sc-mju1i8-2"})`width:max-content;&[data-hidden='true']{visibility:hidden;position:relative;margin-top:-1px;height:1px;}`,IP=(0,eI.I4)(IE).withConfig({displayName:"OptionObserveElement",componentId:"sc-mju1i8-3"})`${I$}`;function IR(e){return!!e}let IN=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u=(0,j.c)(25);
745u[0]!==e?({children:n,collapsed:i,disableRestoreFocusOnClose:r,onMenuClose:o,menuButtonProps:a,...l}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=r,u[4]=a,u[5]=o,u[6]=l):(n=u[1],i=u[2],r=u[3],a=u[4],o=u[5],l=u[6]),u[7]!==n?(s=_.Children.toArray(n).filter(IR),u[7]=n,u[8]=s):s=u[8];let p=s;u[9]!==a?.button?(d=a?.button||(0,v.jsx)(rl,{}),u[9]=a?.button,u[10]=d):d=u[10];let m=d;if(i){let e;return u[11]!==r||u[12]!==m||u[13]!==a||u[14]!==p||u[15]!==o||u[16]!==t?(e=(0,v.jsx)(II,{ref:t,disableRestoreFocusOnClose:r,menuButton:m,menuButtonProps:a,menuOptions:p,onMenuClose:o}),u[11]=r,u[12]=m,u[13]=a,u[14]=p,u[15]=o,u[16]=t,u[17]=e):e=u[17],e}return u[18]!==r||u[19]!==a||u[20]!==p||u[21]!==o||u[22]!==t||u[23]!==l?(c=(0,v.jsx)(IO,{...l,ref:t,disableRestoreFocusOnClose:r,menuButtonProps:a,menuOptions:p,onMenuClose:o}),u[18]=r,u[19]=a,u[20]=p,u[21]=o,u[22]=t,u[23]=l,u[24]=c):c=u[24],c}),IO=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D=(0,j.c)(74);D[0]!==e?({collapseText:s,disableRestoreFocusOnClose:n,gap:i,menuOptions:a,menuButtonProps:r,onMenuClose:o,...l}=e,D[0]=e,D[1]=n,D[2]=i,D[3]=r,D[4]=a,D[5]=o,D[6]=l,D[7]=s):(n=D[1],i=D[2],r=D[3],a=D[4],o=D[5],l=D[6],s=D[7]);let z=void 0===s||s,[P,R]=(0,_.useState)(null);D[8]===Symbol.for("react.memo_cache_sentinel")?(d={},D[8]=d):d=D[8];let[N,O]=(0,_.useState)(d);D[9]===Symbol.for("react.memo_cache_sentinel")?(c={},D[9]=c):c=D[9];let[V,M]=(0,_.useState)(c);D[10]!==P?(u={root:P,threshold:.99,rootMargin:"2px"},D[10]=P,D[11]=u):u=D[11];let L=u;D[12]!==a?(p=a.map(IM),D[12]=a,D[13]=p):p=D[13];let F=p;D[14]!==V||D[15]!==N||D[16]!==F?(m=[...(0,em.A)(F,Object.keys(N)),...(0,em.A)(F,Object.keys(V))],D[14]=V,D[15]=N,D[16]=F,D[17]=m):m=D[17];let B=m;if(D[18]!==N||D[19]!==a){let e;D[21]!==N?(e=e=>{let t=N[e.key];return t&&!t.intersects},D[21]=N,D[22]=e):e=D[22],h=a.filter(e),D[18]=N,D[19]=a,D[20]=h}else h=D[20];let Y=h;D[23]===Symbol.for("react.memo_cache_sentinel")?(f=(e,t)=>{O(n=>{let i=t.key;if(null===i)throw Error("Expected element to have a non-null key");let r={intersects:e.isIntersecting,element:t},a=n[i];return a&&a.intersects===r.intersects?n:{...n,[i]:r}})},D[23]=f):f=D[23];let H=f;D[24]===Symbol.for("react.memo_cache_sentinel")?(g=(e,t)=>{M(n=>{let i=t.key;if(null===i)throw Error("Expected child element to have a non-null key");let r=n[i],a={intersects:e.isIntersecting,element:t};return r?.intersects===a.intersects?n:{...n,[i]:a}})},D[24]=g):g=D[24];let U=g;if(D[25]!==z||D[26]!==a){let e;D[28]!==z?(e=e=>{let{collapsedProps:t}=e.props,n=z?void 0:e.props.text;return(0,_.cloneElement)(e,{...t,text:n})},D[28]=z,D[29]=e):e=D[29],y=a.map(e),D[25]=z,D[26]=a,D[27]=y}else y=D[27];let Z=y;if(D[30]!==V||D[31]!==a){let e;D[33]!==V?(e=e=>!V[e.key]?.intersects,D[33]=V,D[34]=e):e=D[34],C=a.filter(e),D[30]=V,D[31]=a,D[32]=C}else C=D[32];let q=C,W=Y.length>0;D[35]!==Z||D[36]!==V||D[37]!==a||D[38]!==W?(x=W?Z.filter(e=>V[e.key]?.intersects):a,D[35]=Z,D[36]=V,D[37]=a,D[38]=W,D[39]=x):x=D[39];let J=x;D[40]!==r?.button?(b=r?.button||(0,v.jsx)(rl,{}),D[40]=r?.button,D[41]=b):b=D[41];let K=b;return D[42]!==N||D[43]!==q||D[44]!==B.length||D[45]!==J?(w=0===B.length&&J.map((e,t)=>{let{dividerBefore:n,tooltipText:i,tooltipProps:r}=e.props,a=void 0===i?"":i,o=!e.key||!(e.key in N)||q.includes(e);return(0,v.jsxs)(_.Fragment,{children:[n&&0!==t&&(0,v.jsx)(Ik,{hidden:o}),(0,v.jsx)(tL.m_,{portal:!0,disabled:!a,content:a,...void 0===r?{}:r,children:(0,v.jsx)(I.so,{children:(0,_.cloneElement)(e,{disabled:e.props.disabled||o,"aria-hidden":o})})})]},e.key)}),D[42]=N,D[43]=q,D[44]=B.length,D[45]=J,D[46]=w):w=D[46],D[47]!==i||D[48]!==w?(k=(0,v.jsx)(Iz,{gap:i,children:w}),D[47]=i,D[48]=w,D[49]=k):k=D[49],D[50]!==i||D[51]!==L||D[52]!==a?(S=(0,v.jsx)(IV,{gap:i,elements:a,intersectionOptions:L,onIntersectionChange:H}),D[50]=i,D[51]=L,D[52]=a,D[53]=S):S=D[53],D[54]!==Z||D[55]!==i||D[56]!==L?(T=(0,v.jsx)(IV,{gap:i,elements:Z,intersectionOptions:L,onIntersectionChange:U}),D[54]=Z,D[55]=i,D[56]=L,D[57]=T):T=D[57],D[58]!==k||D[59]!==S||D[60]!==T?(E=(0,v.jsxs)(ID,{direction:"column",flex:1,justify:"center",ref:R,children:[k,S,T]}),D[58]=k,D[59]=S,D[60]=T,D[61]=E):E=D[61],D[62]!==n||D[63]!==i||D[64]!==K||D[65]!==r||D[66]!==o||D[67]!==q?($=q.length>0&&(0,v.jsx)(I.so,{marginLeft:i,children:(0,v.jsx)(II,{disableRestoreFocusOnClose
745:n,menuButton:K,menuButtonProps:r,menuOptions:q,onMenuClose:o})}),D[62]=n,D[63]=i,D[64]=K,D[65]=r,D[66]=o,D[67]=q,D[68]=$):$=D[68],D[69]!==t||D[70]!==l||D[71]!==E||D[72]!==$?(A=(0,v.jsxs)(IA,{align:"center","data-ui":"CollapseMenu",overflow:"hidden",sizing:"border",ref:t,...l,children:[E,$]}),D[69]=t,D[70]=l,D[71]=E,D[72]=$,D[73]=A):A=D[73],A}),IV=(0,_.memo)(function(e){let t,n,i=(0,j.c)(10),{elements:r,gap:a,intersectionOptions:o,onIntersectionChange:l}=e;if(i[0]!==r||i[1]!==o||i[2]!==l){let e;i[4]!==o||i[5]!==l?(e=(e,t)=>{let{dividerBefore:n}=e.props;return(0,v.jsxs)(_.Fragment,{children:[n&&0!==t&&(0,v.jsx)(Ik,{hidden:!0}),(0,v.jsx)(IP,{options:o,onIntersectionChange:t=>l(t[0],e),children:(0,v.jsx)(I.so,{children:(0,_.cloneElement)(e,{disabled:!0,"aria-hidden":!0})})})]},e.key)},i[4]=o,i[5]=l,i[6]=e):e=i[6],t=r.map(e),i[0]=r,i[1]=o,i[2]=l,i[3]=t}else t=i[3];return i[7]!==a||i[8]!==t?(n=(0,v.jsx)(Iz,{"data-hidden":!0,"aria-hidden":"true",gap:a,overflow:"hidden",children:t}),i[7]=a,i[8]=t,i[9]=n):n=i[9],n});function IM(e){return e.key}let IL=(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(5);if(r[0]!==e){let{collapsedProps:t,expandedProps:i,tooltipProps:a,tooltipText:o,dividerBefore:l,...s}=e;n=s,r[0]=e,r[1]=n}else n=r[1];return r[2]!==t||r[3]!==n?(i=(0,v.jsx)(tL.$n,{"data-ui":"CollapseMenuButton",...n,ref:t}),r[2]=t,r[3]=n,r[4]=i):i=r[4],i}),IF=eI.I4.div.withConfig({displayName:"CustomIconDiv",componentId:"sc-1qvcmvu-0"})`width:1em;height:1em;border-radius:inherit;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:cover;transform:scale(0.7);`;function IB(e){let t,n,i=(0,j.c)(5),{icon:r,active:a}=e,o=`url(${r})`,l=a?"invert(100%)":"invert(0%)";i[0]!==o||i[1]!==l?(t={backgroundImage:o,filter:l},i[0]=o,i[1]=l,i[2]=t):t=i[2];let s=t;return i[3]!==s?(n=(0,v.jsx)(IF,{style:s}),i[3]=s,i[4]=n):n=i[4],n}function IY(e,t){let n=(0,V.A)(e,"to[0].icon");return e.icon||e.type&&e.type.icon||n||t}let IH={link:eT.qYV},IU={strong:eT.$oz,em:eT.yOR,"strike-through":eT.t64,underline:eT.qpS,code:eT.loI},IZ={number:eT.J7Y,bullet:eT.r$9},Iq=e=>{let t=(0,j.c)(2),{action:n}=e,i=n.icon;if((0,tU.isValidElementType)(i)){let e;return t[0]!==i?(e=(0,v.jsx)(i,{}),t[0]=i,t[1]=e):e=t[1],e}return(0,_.isValidElement)(i)?i:null};function IW(){let e,t=(0,j.c)(3),n=(0,n1.v$)(),i=(0,n1.pq)();return t[0]!==n||t[1]!==i?(e=i?n1.Og.focusBlock(n):void 0,t[0]=n,t[1]=i,t[2]=e):e=t[2],e}function IJ(e){return e.key}function IK(e){return e.style}let IG=(0,_.memo)(IN),IX={constrainSize:!0,portal:!0},IQ=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(33),{disabled:c,groups:u,isFullscreen:p,collapsed:m}=e,h=IW(),f=(0,n1.v$)(),g=hz(),y=(0,n1.pq)(),{t:C}=as();d[0]!==y?(t=y&&(0,eD.tA)(y.anchor.path[0])&&(0,eD.tA)(y.focus.path[0])?y.anchor.path[0]._key!==y?.focus.path[0]._key:y?.anchor.path[0]!==y?.focus.path[0],d[0]=y,d[1]=t):t=d[1];let x=t,b=h?._type!==g.block.name,w=!b&&Array.isArray(h.children)&&1===h.children.length&&h?.children[0].text==="",_=c||b;d[2]!==u?(n=u.reduce(I2,[]),d[2]=u,d[3]=n):n=d[3];let k=n;d[4]!==k?(i={actions:k},d[4]=k,d[5]=i):i=d[5];let S=function(e){let t,n=(0,j.c)(4),{actions:i}=e,r=(0,n1.v$)(),a=(0,n1.pq)();return n[0]!==i||n[1]!==r||n[2]!==a?(t=a?i.filter(e=>"annotation"===e.type?n1.Og.isAnnotationActive(r,e.key):"listStyle"===e.type?n1.Og.hasListStyle(r,e.key):n1.Og.isMarkActive(r,e.key)).map(IJ):[],n[0]=i,n[1]=r,n[2]=a,n[3]=t):t=n[3],ai(t)}(i);d[6]!==f?(r=()=>{n1.Og.focus(f)},d[6]=f,d[7]=r):r=d[7];let I=r,T=p?"bottom":"top";if(d[8]!==k||d[9]!==S||d[10]!==_||d[11]!==w||d[12]!==x||d[13]!==C||d[14]!==T){let e;d[16]!==S||d[17]!==_||d[18]!==w||d[19]!==x||d[20]!==C||d[21]!==T?(e=e=>{let t="annotation"===e.type&&(w||x),n=w?C("user-menu.action.portable-text.annotation-disabled_empty-block",{name:e.title||e.key}):C("user-menu.action.portable-text.annotation-disabled_multiple-blocks",{name:e.title||e.key}),i=S.includes(e.key);return(0,v.jsx)(IL,{"aria-label":C("toolbar.portable-text.action-button-aria-label",{action:e.title||e.key}),"data-testid":`action-button-${e.key}`,disabled:_||t,mode:"bleed",dividerBefore:e.firstInGroup,icon:e.icon?"string"==typeof e.icon?(0,v.jsx)(IB,{active:i,icon:e.icon}):(0,v.jsx)("span",{"data-sanity-icon":!0,style:{display:"contents"},children:(0,v.jsx)(Iq,{action:e})}):"annotation"===e.type?IH[e.key]||eT.KSC:"listStyle"===e.type?IZ[e.key]||eT.KSC:IU[e.key]||eT.KSC,onClick:()=>e.handle(i),selected:i,text:e.title||e.key,tooltipText:t?n:e.title||e.key,tooltipProps:{disabled:_,placement:T,portal:"default"}},e.key)},d[16]=S,d[17]=_,d[18]=w,d[19]=x,d[20]=C,d[21]=T,d[22]=e):e=d[22],a=k.map(e),d[8]=k,d[9]=S,d[10]=_,d[11]=w,d[12]=x,d[13]=C,d[14]=T,d[15]=a}else a=d[15];let E=a;d[23]!==T?(o={placement:T},d[23]=T,d[24]=o):o=d[24],d[25]!==_||d[26]!==o?(l={button:(0,v.jsx)(rl,{"data-testid":"action-menu-button",disabled:_,tooltipProps:o}),popover:IX},d[25]=_,d[26]=o,d[27]=l):l=d[27];let $=l;return d[28]!==E||d[29]!==m||d[30]!==I||d[31]!==$?(s=(0,v.jsx)(IG,{"data-testid":"action-menu-auto-collapse-menu",collapsed:m,disableRestoreFocusOnClose
745:!0,gap:1,menuButtonProps:$,onMenuClose:I,children:E}),d[28]=E,d[29]=m,d[30]=I,d[31]=$,d[32]=s):s=d[32],s});function I1(e,t){return 0===t?{...e,firstInGroup:!0}:e}function I2(e,t){return e.concat(t.actions.map(I1))}let I5=(0,_.memo)(tL.IU),I0=(0,eI.I4)(I.Dr).withConfig({displayName:"StyledMenuItem",componentId:"sc-11vkmsq-0"})`&[data-selected]{[data-option='blockquote']{--card-border-color:var(--card-muted-fg-color);}}`,I7={h1:e=>(0,v.jsx)(Ia,{children:e}),h2:e=>(0,v.jsx)(Io,{children:e}),h3:e=>(0,v.jsx)(Il,{children:e}),h4:e=>(0,v.jsx)(Is,{children:e}),h5:e=>(0,v.jsx)(Id,{children:e}),h6:e=>(0,v.jsx)(Ic,{children:e}),normal:e=>(0,v.jsx)(Ir,{children:e}),blockquote:e=>(0,v.jsx)(Ip,{"data-option":"blockquote",children:e})},I3=e=>e.preventDefault(),I8={key:"style-none",style:"",title:"No style",i18nTitleKey:"inputs.portable-text.style.none"},I4=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(49),{disabled:h,items:f,boundaryElement:g}=e,y=(0,n1.v$)(),C=hz(),x=IW(),{t:b}=as();m[0]!==g?(t={constrainSize:!0,placement:"bottom-start",portal:"default",referenceBoundary:g},m[0]=g,m[1]=t):t=m[1];let w=t,_=h||!!x&&C.block.name!==x._type;m[2]!==f?(n={items:f},m[2]=f,m[3]=n):n=m[3];let k=function(e){let t,n=(0,j.c)(5),{items:i}=e,r=(0,n1.v$)(),a=IW(),o=(0,n1.pq)();return n[0]!==r||n[1]!==a||n[2]!==i||n[3]!==o?(t=a&&o?i.filter(e=>n1.Og.hasBlockStyle(r,e.style)).map(IK):[],n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=t):t=n[4],ai(t)}(n);if(m[4]!==k||m[5]!==f){let e;if(m[8]!==k?(e=e=>k.includes(e.style),m[8]=k,m[9]=e):e=m[9],i=f.filter(e),r=f,0===i.length&&r.length>1){let e;m[10]!==r?(e=r.concat([I8]),m[10]=r,m[11]=e):e=m[11],r=e,i.push(I8)}m[4]=k,m[5]=f,m[6]=i,m[7]=r}else i=m[6],r=m[7];m[12]!==i||m[13]!==r?(a={activeItems:i,items:r},m[12]=i,m[13]=r,m[14]=a):a=m[14];let{activeItems:S,items:T}=a;e:{let e;if(S.length>1){let e;m[15]!==b?(e=b("inputs.portable-text.style.multiple"),m[15]=b,m[16]=e):e=m[16],o=e;break e}if(1!==S.length){let e;m[17]!==b?(e=I8.i18nTitleKey?b(I8.i18nTitleKey):I8.title,m[17]=b,m[18]=e):e=m[18],o=e;break e}m[19]!==S[0].i18nTitleKey||m[20]!==S[0].title||m[21]!==b?(e=S[0].i18nTitleKey?b(S[0].i18nTitleKey):S[0].title,m[19]=S[0].i18nTitleKey,m[20]=S[0].title,m[21]=b,m[22]=e):e=m[22],o=e}let E=o;m[23]!==y||m[24]!==x?(l=e=>{x&&e.style!==x.style&&(n1.Og.toggleBlockStyle(y,e.style),n1.Og.focus(y))},m[23]=y,m[24]=x,m[25]=l):l=m[25];let $=l;m[26]!==b?(s=e=>{let{style:t,styleComponent:n}=e,i=I7[t],r=e.i18nTitleKey?b(e.i18nTitleKey):e?.title||e.style,a="function"==typeof n?n:void 0;return i&&!a?i(r):a?(0,v.jsx)(a,{children:r}):(0,v.jsx)(I.EY,{children:r})},m[26]=b,m[27]=s):s=m[27];let A=s;m[28]!==_||m[29]!==E?(d=(0,v.jsx)(tL.$n,{disabled:_,iconRight:eT.D3D,justify:"space-between",mode:"bleed",onClick:I3,text:E,width:"fill"}),m[28]=_,m[29]=E,m[30]=d):d=m[30];let D=d;if(m[31]!==_||m[32]!==S||m[33]!==$||m[34]!==T||m[35]!==A){let e;m[37]!==_||m[38]!==S||m[39]!==$||m[40]!==A?(e=e=>(0,v.jsx)(I0,{pressed:S.includes(e),onClick:_?void 0:()=>$(e),children:A(e)},e.key),m[37]=_,m[38]=S,m[39]=$,m[40]=A,m[41]=e):e=m[41],c=T.map(e),m[31]=_,m[32]=S,m[33]=$,m[34]=T,m[35]=A,m[36]=c}else c=m[36];m[42]!==_||m[43]!==c?(u=(0,v.jsx)(I.W1,{disabled:_,children:c}),m[42]=_,m[43]=c,m[44]=u):u=m[44];let z=u;return m[45]!==D||m[46]!==z||m[47]!==w?(p=(0,v.jsx)(I5,{popover:w,id:"block-style-select",button:D,menu:z}),m[45]=D,m[46]=z,m[47]=w,m[48]=p):p=m[48],p}),I6=(0,_.memo)(IN),I9={constrainSize:!0,portal:!0},Te=(0,_.memo)(function(e){let t,n,i,r,a,o=(0,j.c)(23),{disabled:l,items:s,isFullscreen:d,collapsed:c}=e,{t:u}=as(),p=IW(),m=(0,n1.v$)(),h=hz(),f=p&&p._type!==h.block.name;o[0]!==m?(t=()=>{n1.Og.focus(m)},o[0]=m,o[1]=t):t=o[1];let g=t,y=d?"bottom":"top";if(o[2]!==l||o[3]!==f||o[4]!==s||o[5]!==u||o[6]!==y){let e;o[8]!==l||o[9]!==f||o[10]!==u||o[11]!==y?(e=e=>{let t=e.type.title||(0,eh.A)(e.type.name);return(0,v.jsx)(IL,{"aria-label":u(e.inline?"inputs.portable-text.action.insert-inline-object-aria-label":"inputs.portable-text.action.insert-block-aria-label",{typeName:t}),mode:"bleed",disabled:l||f&&e.inline||!!e.type.deprecated,"data-testid":`${e.type.name}-insert-menu-button`,icon:e.icon,onClick:e.handle,text:t,tooltipText:u(e.type.deprecated?e.type.deprecated.reason:e.inline?"input
745s.portable-text.action.insert-inline-object":"inputs.portable-text.action.insert-block",{typeName:t}),tooltipProps:{disabled:l,placement:y,portal:"default"}},e.key)},o[8]=l,o[9]=f,o[10]=u,o[11]=y,o[12]=e):e=o[12],n=s.map(e),o[2]=l,o[3]=f,o[4]=s,o[5]=u,o[6]=y,o[7]=n}else n=o[7];let C=n;o[13]!==y?(i={placement:y},o[13]=y,o[14]=i):i=o[14],o[15]!==l||o[16]!==i?(r={button:(0,v.jsx)(rl,{"data-testid":"insert-menu-button",disabled:l,tooltipProps:i}),popover:I9},o[15]=l,o[16]=i,o[17]=r):r=o[17];let x=r;return o[18]!==C||o[19]!==c||o[20]!==g||o[21]!==x?(a=(0,v.jsx)(I6,{"data-testid":"insert-menu-auto-collapse-menu",collapsed:c,collapseText:!1,disableRestoreFocusOnClose:!0,gap:1,menuButtonProps:x,onMenuClose:g,children:C}),o[18]=C,o[19]=c,o[20]=g,o[21]=x,o[22]=a):a=o[22],a}),Tt=(0,eI.I4)(I.so).withConfig({displayName:"RootFlex",componentId:"sc-1wan29s-0"})`width:100%;`,Tn=(0,eI.I4)(I.az).withConfig({displayName:"StyleSelectBox",componentId:"sc-1wan29s-1"})`width:8em;`,Ti=(0,eI.I4)(I.so).withConfig({displayName:"StyleSelectFlex",componentId:"sc-1wan29s-2"})`border-right:1px solid var(--card-border-color);`,Tr=(0,eI.I4)(I.az).withConfig({displayName:"ActionMenuBox",componentId:"sc-1wan29s-3"})`${({$withInsertMenu:e})=>e&&(0,eI.AH)` 746 max-width: max-content; 747 border-right: 1px solid var(--card-border-color); 748 `}`,Ta=(0,eI.I4)(I.az).withConfig({displayName:"FullscreenButtonBox",componentId:"sc-1wan29s-4"})`border-left:1px solid var(--card-border-color);`,To="u">typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Tl=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(47),{actionGroups:h,blockStyles:f,collapsible:g,disabled:y,insertMenuItems:C,isFullscreen:x,onToggleFullscreen:b}=e,{t:w}=as(),k=h.reduce(Td,0)>0,S=C.length>0,[E,$]=(0,_.useState)(null),A=(0,T.sQ)(E),D=!!g&&!!A&&A?.width<400,z=f.length>1;m[0]!==E?(t={rootElement:E},m[0]=E,m[1]=t):t=m[1],edr(t),m[2]!==f||m[3]!==D||m[4]!==y||m[5]!==x||m[6]!==E||m[7]!==z?(n=z&&(0,v.jsx)(Ti,{flex:D?1:void 0,children:(0,v.jsx)(Tn,{padding:x?2:1,"data-testid":"block-style-select",children:(0,v.jsx)(I4,{disabled:y,items:f,boundaryElement:E})})}),m[2]=f,m[3]=D,m[4]=y,m[5]=x,m[6]=E,m[7]=z,m[8]=n):n=m[8],m[9]!==h||m[10]!==D||m[11]!==y||m[12]!==x||m[13]!==k||m[14]!==S?(i=k&&(0,v.jsx)(Tr,{flex:D?void 0:1,padding:x?2:1,$withInsertMenu:S,children:(0,v.jsx)(IQ,{disabled:y,collapsed:D,groups:h,isFullscreen:x})}),m[9]=h,m[10]=D,m[11]=y,m[12]=x,m[13]=k,m[14]=S,m[15]=i):i=m[15],m[16]!==D||m[17]!==y||m[18]!==C||m[19]!==x||m[20]!==S?(r=S&&(0,v.jsx)(I.az,{flex:D?void 0:1,padding:x?2:1,children:(0,v.jsx)(Te,{disabled:y,collapsed:D,items:C,isFullscreen:x})}),m[16]=D,m[17]=y,m[18]=C,m[19]=x,m[20]=S,m[21]=r):r=m[21],m[22]!==i||m[23]!==r?(a=(0,v.jsxs)(I.so,{flex:1,children:[i,r]}),m[22]=i,m[23]=r,m[24]=a):a=m[24];let P=x?2:1;m[25]!==w?(o=w("inputs.portable-text.action.expand-editor"),m[25]=w,m[26]=o):o=m[26];let R=x?eT.dLE:eT.mSu,N=x?"fullscreen-button-collapse":"fullscreen-button-expand",O=x?"inputs.portable-text.action.collapse-editor":"inputs.portable-text.action.expand-editor";m[27]!==w||m[28]!==O?(l=w(O),m[27]=w,m[28]=O,m[29]=l):l=m[29],m[30]===Symbol.for("react.memo_cache_sentinel")?(s=[`${To?"Cmd":"Ctrl"}`,"Enter"],m[30]=s):s=m[30];let V=x?"bottom":"top";return m[31]!==l||m[32]!==V?(d={content:l,hotkeys:s,placement:V,portal:"default"},m[31]=l,m[32]=V,m[33]=d):d=m[33],m[34]!==b||m[35]!==d||m[36]!==o||m[37]!==R||m[38]!==N?(c=(0,v.jsx)(tL.$n,{"aria-label":o,icon:R,"data-testid":N,mode:"bleed",onClick:b,tooltipProps:d}),m[34]=b,m[35]=d,m[36]=o,m[37]=R,m[38]=N,m[39]=c):c=m[39],m[40]!==c||m[41]!==P?(u=(0,v.jsx)(Ta,{padding:P,children:c}),m[40]=c,m[41]=P,m[42]=u):u=m[42],m[43]!==u||m[44]!==n||m[45]!==a?(p=(0,v.jsxs)(Tt,{align:"center",ref:$,onMouseDown:Tc,children:[n,a,u]}),m[43]=u,m[44]=n,m[45]=a,m[46]=p):p=m[46],p});function Ts(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(30),{collapsible:u,hotkeys:p,isFullscreen:m,readOnly:h,onMemberOpen:f,onToggleFullscreen:g}=e,y=(0,n1.v$)(),C=hz(),x=(0,n1.pq)(),b=dr(),w=h||!x,{push:_}=(0,T.dj)();c[0]!==_||c[1]!==b?(t=e=>{let t=!1,n=setTimeout(()=>{t=!0,_({id:"resolving-initial-value",status:"info",title:"Resolving initial valueâ¦"})},300);return b(e,{}).then(e=>(t&&_({id:"resolving-initial-value",status:"info",duration:500,title:"Initial value resolved"}),e)).catch(t=>{_({title:"Could not resolve initial value",id:"resolving-initial-value",description:`Unable to resolve initial value for type: ${e.name}: ${t.message}.`,status:"error"})}).finally(()=>clearTimeout(n))},c[0]=_,c[1]=b,c[2]=t):t=c[2];let k=t;c[3]!==y||c[4]!==f||c[5]!==k?(n=async e=>{let t=await k(e),n=n1.Og.insertBlock(y,e,t);n&&f(n)},c[3]=y,c[4]=f,c[5]=k,c[6]=n):n=c[6];let S=n;c[7]!==y||c[8]!==f||c[9]!==k?(i=async e=>{let t=await k(e),n=n1.Og.insertChild(y,e,t);n&&f(n)},c[7]=y,c[8]=f,c[9]=k,c[10]=i):i=c[10];let I=i;c[11]!==p||c[12]!==f||c[13]!==k?(r={hotkeys:p,onMemberOpen:f,resolveInitialValue:k,disabled:!0},c[11]=p,c[12]=f,c[13]=k,c[14]=r):r=c[14];let E=function(e){let t,n,i=(0,j.c)(11),{hotkeys:r,onMemberOpen:a,resolveInitialValue:o,disabled:l}
748=e,s=(0,n1.v$)(),d=hz(),{t:c}=as();i[0]!==s||i[1]!==a||i[2]!==o?(t=async e=>{let t=await o(e),n=n1.Og.addAnnotation(s,e,t);n&&n.markDefPath&&a(n.markDefPath)},i[0]=s,i[1]=a,i[2]=o,i[3]=t):t=i[3];let u=t;return i[4]!==l||i[5]!==s||i[6]!==u||i[7]!==r||i[8]!==d||i[9]!==c?(n=s?function(e,t){let n,i,{schemaTypes:r,disabled:a,onInsertAnnotation:o,hotkeyOpts:l,t:s}=t;return[{name:"format",actions:r.decorators.map(t=>{let n=Object.keys(l.marks||{}).find(e=>l.marks?.[e]===t.value),i=[];return n&&(i=[n]),{type:"format",disabled:a,icon:t?.icon,key:t.value,handle:()=>{n1.Og.toggleMark(e,t.value),n1.Og.focus(e)},hotkeys:i,title:t.i18nTitleKey&&s?s(t.i18nTitleKey):t.title}})},{name:"list",actions:r.lists.map(t=>({type:"listStyle",key:t.value,disabled:a,icon:t?.icon,handle:()=>{n1.Og.toggleList(e,t.value)},title:t.i18nTitleKey&&s?s(t.i18nTitleKey):t.title}))},{name:"annotation",actions:(i=(n=n1.Og.focusChild(e))&&n.text,r.annotations.map(t=>({type:"annotation",disabled:!i||a,icon:(0,V.A)(t,"icon")||(0,V.A)(t,"type.icon")||(0,V.A)(t,"type.to.icon")||(0,V.A)(t,"type.to[0].icon"),key:t.name,handle:n=>{n?(n1.Og.removeAnnotation(e,t),n1.Og.focus(e)):o(t)},title:t.i18nTitleKey&&s?s(t.i18nTitleKey):t.title||(0,es.A)(t.name)})))}]}(s,{schemaTypes:d,disabled:l,onInsertAnnotation:u,hotkeyOpts:r,t:c}):[],i[4]=l,i[5]=s,i[6]=u,i[7]=r,i[8]=d,i[9]=c,i[10]=n):n=i[10],n}(r);c[15]!==C?(a=C.styles.map(e=>({key:`style-${e.value}`,style:e.value,styleComponent:e&&e.component,title:e.title,i18nTitleKey:e.i18nTitleKey})),c[15]=C,c[16]=a):a=c[16];let $=a;c[17]!==w||c[18]!==S||c[19]!==I||c[20]!==C?(s=C.blockObjects.map((e,t)=>({handle:()=>S(e),icon:IY(e,eT.nee),inline:!1,key:`block-${t}`,type:e})),d=C.inlineObjects.map((e,t)=>({handle:()=>I(e),icon:IY(e,eT.pus),inline:!0,key:`inline-${t}`,type:e})),o=s.concat(d).filter(e=>!e.type?.hidden),c[17]=w,c[18]=S,c[19]=I,c[20]=C,c[21]=o):o=c[21];let A=o;return c[22]!==E||c[23]!==$||c[24]!==u||c[25]!==w||c[26]!==A||c[27]!==m||c[28]!==g?(l=(0,v.jsx)(Tl,{actionGroups:E,blockStyles:$,collapsible:u,disabled:w,insertMenuItems:A,isFullscreen:m,onToggleFullscreen:g}),c[22]=E,c[23]=$,c[24]=u,c[25]=w,c[26]=A,c[27]=m,c[28]=g,c[29]=l):l=c[29],l}function Td(e,t){return e+t.actions.length}function Tc(e){e.preventDefault()}let Tu={outline:"none"},Tp=eI.I4.span.withConfig({displayName:"PlaceholderWrapper",componentId:"sc-s03q5a-0"})(e=>{let{color:t}=(0,nN.JW)(e.theme);return(0,eI.AH)` 749 color: ${t.input.default.enabled.placeholder}; 750 `});function Tm(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(56),{elementRef:C,hideToolbar:x,hotkeys:b,initialSelection:w,isActive:_,isFullscreen:k,isOneLine:S,onCopy:T,onItemOpen:E,onPaste:$,onToggleFullscreen:A,path:D,readOnly:z,rangeDecorations:P,renderAnnotation:R,renderBlock:N,renderChild:O,scrollElement:V,setPortalElement:M,setScrollElement:L,ariaDescribedBy:F}=e,{id:B}=hE(),{t:Y}=as(),{isTopLayer:H}=(0,I.Z4)(),{element:U}=(0,I.$w)();y[0]!==k||y[1]!==H||y[2]!==A?(t=e=>{H&&k&&"Escape"===e.key&&A()},y[0]=k,y[1]=H,y[2]=A,y[3]=t):t=y[3],(0,I.Pm)(t),y[4]!==Y?(n=()=>(0,v.jsx)(Tp,{"data-testid":"pt-input-placeholder",children:Y("inputs.portable-text.empty-placeholder")}),y[4]=Y,y[5]=n):n=y[5];let Z=n,q=(m=hz().block.options?.spellCheck,h=!(typeof navigator>"u")&&/Chrome\/96/.test(navigator.userAgent),(void 0!==m||!h)&&m),W=((g=(0,j.c)(2))[0]!==V?(f=(e,t)=>{if(n1.Og.getSelection(e)){let e=t.startContainer.parentElement;e&&(0,il.A)(e,{scrollMode:"if-needed",boundary:V,block:"nearest",inline:"nearest"})}},g[0]=V,g[1]=f):f=g[1],f);y[6]!==F||y[7]!==C||y[8]!==b||y[9]!==w||y[10]!==T||y[11]!==$||y[12]!==P||y[13]!==R||y[14]!==N||y[15]!==O||y[16]!==Z||y[17]!==W||y[18]!==q?(i={"aria-describedby":F,hotkeys:b,onCopy:T,onPaste:$,rangeDecorations:P,ref:C,renderAnnotation:R,renderBlock:N,renderChild:O,renderDecorator:Tg,renderListItem:Th,renderPlaceholder:Z,renderStyle:Tf,scrollSelectionIntoView:W,selection:w,spellCheck:q,style:Tu},y[6]=F,y[7]=C,y[8]=b,y[9]=w,y[10]=T,y[11]=$,y[12]=P,y[13]=R,y[14]=N,y[15]=O,y[16]=Z,y[17]=W,y[18]=q,y[19]=i):i=y[19];let J=i;y[20]!==J?(r=(0,v.jsx)(n1.LF,{...J}),y[20]=J,y[21]=r):r=y[21];let K=r;y[22]!==E||y[23]!==D?(a=e=>
750{E(D.concat(e))},y[22]=E,y[23]=D,y[24]=a):a=y[24];let G=a,X="root"===B;y[25]!==X||y[26]!==G||y[27]!==x||y[28]!==b||y[29]!==_||y[30]!==k||y[31]!==A||y[32]!==z?(o=_&&!x&&(0,v.jsx)(tL.vE,{children:(0,v.jsx)(Iy,{"data-testid":"pt-editor__toolbar-card",shadow:1,children:(0,v.jsx)(Ts,{collapsible:X,hotkeys:b,isFullscreen:k,onMemberOpen:G,onToggleFullscreen:A,readOnly:z})})}),y[25]=X,y[26]=G,y[27]=x,y[28]=b,y[29]=_,y[30]=k,y[31]=A,y[32]=z,y[33]=o):o=y[33];let Q=z?"transparent":"default",ee=z?"transparent":"default",et=k?V:U;return y[34]!==K||y[35]!==et?(l=(0,v.jsx)(I.EZ,{element:et,children:K}),y[34]=K,y[35]=et,y[36]=l):l=y[36],y[37]!==k||y[38]!==S||y[39]!==ee||y[40]!==l?(s=(0,v.jsx)("div",{children:(0,v.jsx)(Ib,{$isFullscreen:k,$isOneLine:S,tone:ee,children:l})}),y[37]=k,y[38]=S,y[39]=ee,y[40]=l,y[41]=s):s=y[41],y[42]!==L||y[43]!==s?(d=(0,v.jsx)(Ix,{ref:L,children:s}),y[42]=L,y[43]=s,y[44]=d):d=y[44],y[45]!==M?(c=(0,v.jsx)("div",{"data-portal":"",ref:M}),y[45]=M,y[46]=c):c=y[46],y[47]!==d||y[48]!==c||y[49]!==Q?(u=(0,v.jsxs)(IC,{flex:1,tone:Q,children:[d,c]}),y[47]=d,y[48]=c,y[49]=Q,y[50]=u):u=y[50],y[51]!==k||y[52]!==S||y[53]!==u||y[54]!==o?(p=(0,v.jsxs)(Ig,{"data-fullscreen":k,"data-testid":"pt-editor",$isOneLine:S,children:[o,u]}),y[51]=k,y[52]=S,y[53]=u,y[54]=o,y[55]=p):p=y[55],p}function Th(e){return(0,v.jsx)(Ij,{...e})}function Tf(e){return(0,v.jsx)(Iw,{...e})}function Tg(e){return(0,v.jsx)(SH,{...e})}function Ty(e){return e.member.open}function TC(e){return e.member.item.focused}let Tx=["top","bottom"];function Tb(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(34),{floatingBoundary:y,referenceBoundary:C}=e,{annotations:x}=hR(),[b,w]=(0,_.useState)(null),[k,S]=(0,_.useState)(!1),T=(0,_.useRef)(null),{sanity:E}=(0,I.DP)(),{t:$}=as(),A=(0,n1.v$)(),D=E.color.dark?"light":"dark";g[0]===Symbol.for("react.memo_cache_sentinel")?(t=new Map,g[0]=t):t=g[0];let z=(0,_.useRef)(t);e:{let e;if(!b){n=null;break e}g[1]!==b?(e={getBoundingClientRect:()=>b},g[1]=b,g[2]=e):e=g[2],n=e}let P=n;g[3]!==A?(i=()=>{n1.Og.focus(A),S(!1)},g[3]=A,g[4]=i):i=g[4];let R=i;g[5]!==R||g[6]!==k?(r=e=>{k&&"Escape"===e.key&&R()},g[5]=R,g[6]=k,g[7]=r):r=g[7],(0,I.Pm)(r),g[8]!==x?(a=()=>{if(0===x.length){S(!1),w(null);return}let e=window.getSelection();if(!e||0===e.rangeCount)return;let t=e.getRangeAt(0);if(!x.some(e=>e.referenceElement?.contains(t.commonAncestorContainer))){S(!1),w(null);return}let n=t.getBoundingClientRect();n&&(w(n),S(!0))},g[8]=x,g[9]=a):a=g[9];let N=a;g[10]!==N?(o=()=>(document.addEventListener("selectionchange",N,{passive:!0}),()=>{document.removeEventListener("selectionchange",N)}),l=[N],g[10]=N,g[11]=o,g[12]=l):(o=g[11],l=g[12]),(0,_.useEffect)(o,l),g[13]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{T.current&&w(T.current.getBoundingClientRect())},g[13]=s):s=g[13];let O=s;return(g[14]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{let e=window.getSelection();e&&e.rangeCount>0&&(T.current=e.getRangeAt(0))},g[14]=d):d=g[14],g[15]!==k?(c=[k],g[15]=k,g[16]=c):c=g[16],(0,_.useEffect)(d,c),g[17]!==y||g[18]!==k||g[19]!==C?(u=()=>(k&&(y?.addEventListener("scroll",O),C?.addEventListener("scroll",O)),()=>{y?.removeEventListener("scroll",O),C?.removeEventListener("scroll",O)}),p=[k,C,y,O],g[17]=y,g[18]=k,g[19]=C,g[20]=u,g[21]=p):(u=g[20],p=g[21]),(0,_.useEffect)(u,p),0!==x.length&&P)?(g[22]!==x||g[23]!==$?(m=x.map((e,t)=>(0,v.jsxs)(I.so,{gap:1,align:"center",children:[(0,v.jsx)(I.az,{padding:2,flex:1,children:(0,v.jsx)(I.EY,{weight:"medium",size:1,children:e.title})}),(0,v.jsx)(tL.$n,{"aria-label":$("inputs.portable-text.action.edit-annotation-aria-label"),"data-testid":0===t?"edit-annotation-button":`edit-annotation-button-${t}`,icon:eT.qUP,mode:"bleed",onClick:()=>{S(!1),e.onOpen()},ref:t=>{t&&z.current.set(`edit-${e.key}`,t)},tabIndex:0,tooltipProps:null}),(0,v.jsx)(tL.$n,{"aria-label":$("inputs.portable-text.action.remove-annotation-aria-label"),"data-testid":0===t?"remove-annotation-button":`remove-annotation-button-${t}`,icon:eT.ucK,mode:"bleed",onClick:()=>{S(!1),e.onRemove()},ref:t=>{t&&z.current.set(`delete-${e.key}`,t)},tabIndex:0,tone:"critical",tooltipProps:null})]},e.key)),g[22]=x,g[23]=$,g[24]=m):m=g[24],g[25]!==m?(h=(0,v.jsx)(I.az,{padding:1,"data-testid":"annotation-toolbar-popover",children:m}),g[25]=m,g[26]=h):h=g[26],g[27]!==P||g[28]!==y||g[29]!==k||g[30]!==D||g[31]!==C||g[32]!==h?(f=(0,v.jsx)(tL.AM,{open:k,floatingBoundary:y,constrainSize:!0,content:h,fallbackPlacements:Tx,placement:"top",portal:!0,preventOverflow:!0,referenceBoundary:C,referenceElement:P,scheme:D}),g[27]=P,g[28]=y,g[29]=k,g[30]=D,g[31]=C,g[32]=h,g[33]=f):f=g[33],f):null}let Tv=(0,eI.I4)(I.Zp).withConfig({displayName:"Root",componentId:"sc-1mrg8r-0"})(function({theme:e}){let{color:t,radius:n}=e.sanity;return(0,eI.AH)` 751 line-height: 0; 752 border-radius: ${n[2]}px; 753 padding: 2px; 754 box-shadow: inset 0 0 0 1px var(--card-border-color); 755 height: calc(1em - 1px); 756 cursor: default; 757 758 &:not([hidden]) { 759 display: inline-flex; 760 align-items: center; 761 vertical-align: text-bottom; 762 margin-inline: 2px; 763 } 764 765 &[data-ready-only] { 766 cursor: default; 767 } 768 769 &[data-focused] { 770 box-shadow: inset 0 0 0 1px ${t.selectable?.primary.selected.border}; 771 color: ${t.selectable?.primary.pressed.fg}; 772 } 773 774 &[data-selected] { 775 background-color: ${t.selectable?.primary.pressed.bg}; 776 } 777
778 &:not([data-focused]):not([data-selected]) { 779 @media (hover: hover) { 780 &:hover { 781 --card-border-color: ${t.input.default.hovered.border}; 782 } 783 } 784 } 785 786 &[data-markers] { 787 --card-bg-color: ${t.dark?ez.OZ.purple[950].hex:ez.OZ.purple[50].hex}; 788 } 789 790 &[data-warning] { 791 --card-bg-color: ${t.muted.caution.hovered.bg}; 792 793 @media (hover: hover) { 794 &:hover { 795 --card-border-color: ${t.muted.caution.hovered.border}; 796 } 797 } 798 } 799 800 &[data-invalid] { 801 --card-bg-color: ${t.input.invalid.enabled.bg}; 802 --card-border-color: ${t.input.invalid.enabled.border}; 803 804 @media (hover: hover) { 805 &:hover { 806 --card-border-color: ${t.input.invalid.hovered.border}; 807 } 808 } 809 } 810 `}),Tj=eI.I4.span.withConfig({displayName:"PreviewSpan",componentId:"sc-1mrg8r-1"})`display:block;max-width:calc(5em + 80px);position:relative;`,Tw=(0,eI.I4)(I.az).withConfig({displayName:"TooltipBox",componentId:"sc-1mrg8r-2"})`max-width:250px;`,T_=["top","bottom"];function Tk(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(48),{floatingBoundary:x,inlineObjectFocused:b,inlineObjectOpen:w,onOpenInlineObject:k,onRemoveInlineObject:S,referenceBoundary:T,referenceElement:E,title:$}=e,[A,D]=(0,_.useState)(!1),{sanity:z}=(0,I.DP)(),{t:P}=as(),R=(0,_.useRef)(null),N=(0,_.useRef)(null),O=(0,_.useRef)(null),V=z.color.dark?"light":"dark",M=(0,n1.v$)(),L=(0,_.useRef)(null);C[0]!==M?(t=()=>{D(!1),n1.Og.focus(M),O.current=null},C[0]=M,C[1]=t):t=C[1];let F=t;C[2]!==M||C[3]!==F||C[4]!==b||C[5]!==A?(n=e=>{if(A){if("Tab"===e.key){if(b&&e.target instanceof HTMLElement&&e.target.contentEditable&&null===O.current){e.preventDefault(),R.current?.focus(),O.current=R.current;return}if(e.target===N.current){e.preventDefault(),e.stopPropagation(),O.current=null,n1.Og.focus(M);return}}"Escape"===e.key&&F()}},C[2]=M,C[3]=F,C[4]=b,C[5]=A,C[6]=n):n=C[6],(0,I.Pm)(n),C[7]!==b||C[8]!==w?(i=()=>{(O.current=null,w)?D(!1):b?D(!0):D(!1)},r=[b,w],C[7]=b,C[8]=w,C[9]=i,C[10]=r):(i=C[9],r=C[10]),(0,_.useEffect)(i,r),C[11]!==k?(a=()=>{D(!1),k()},C[11]=k,C[12]=a):a=C[12];let B=a;C[13]!==S?(o=()=>{D(!1),S()},C[13]=S,C[14]=o):o=C[14];let Y=o,H=!w&&A;return C[15]!==$?(l=(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(I.EY,{weight:"medium",size:1,children:$})}),C[15]=$,C[16]=l):l=C[16],C[17]!==P?(s=P("inputs.portable-text.inline-object.edit-aria-label"),C[17]=P,C[18]=s):s=C[18],C[19]!==P?(d=P("inputs.portable-text.inline-object.edit"),C[19]=P,C[20]=d):d=C[20],C[21]!==d?(c={content:d},C[21]=d,C[22]=c):c=C[22],C[23]!==B||C[24]!==c||C[25]!==s?(u=(0,v.jsx)(tL.$n,{"aria-label":s,"data-testid":"edit-inline-object-button",icon:eT.qUP,mode:"bleed",onClick:B,ref:R,tabIndex:0,tooltipProps:c}),C[23]=B,C[24]=c,C[25]=s,C[26]=u):u=C[26],C[27]!==P?(p=P("inputs.portable-text.inline-object.remove-aria-label"),C[27]=P,C[28]=p):p=C[28],C[29]!==P?(m=P("inputs.portable-text.inline-object.remove"),C[29]=P,C[30]=m):m=C[30],C[31]!==m?(h={content:m},C[31]=m,C[32]=h):h=C[32],C[33]!==Y||C[34]!==p||C[35]!==h?(f=(0,v.jsx)(tL.$n,{"aria-label":p,"data-testid":"remove-inline-object-button",icon:eT.ucK,mode:"bleed",onClick:Y,ref:N,tabIndex:0,tone:"critical",tooltipProps:h}),C[33]=Y,C[34]=p,C[35]=h,C[36]=f):f=C[36],C[37]!==u||C[38]!==f||C[39]!==l?(g=(0,v.jsx)(I.az,{padding:1,"data-testid":"inline-object-toolbar-popover",ref:L,children:(0,v.jsxs)(I.so,{gap:1,children:[l,u,f]})}),C[37]=u,C[38]=f,C[39]=l,C[40]=g):g=C[40],C[41]!==x||C[42]!==V||C[43]!==T||C[44]!==E||C[45]!==g||C[46]!==H?(y=(0,v.jsx)(tL.AM,{open:H,floatingBoundary:x,constrainSize:!0,content:g,fallbackPlacements:T_,placement:"top",portal:!0,preventOverflow:!0,referenceBoundary:T,referenceElement:E,scheme:V}),C[41]=x,C[42]=V,C[43]=T,C[44]=E,C[45]=g,C[46]=H,C[47]=y):y=C[47],y}let TS=e=>Array.isArray(e)?e.flatMap(TS):"number"==typeof e?[e]:"auto"===e?["auto"]:[];function TI(e){let t,n,i,r,a=(0,j.c)(13),{onClose:o,children:l,title:s,width:d,autoFocus:c}=e,u=void 0===d?1:d,p=(0,_.useId)(),[m,h]=(0,_.useState)(null),f=(0,_.useRef)(null);return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=[0,0,1,0],a[0]=t):t=a[0],a[1]!==l?(n=(0,v.jsx)(I.az,{ref:f,children:l}),a[1]=l,a[2]=n):n=a[2],a[3]!==m||a[4]!==n?(i=(0,v.jsx)(wJ,{margins:t,children:(0,v.jsx)(wr,{scrollElement:m,containerElement:f,children:n})}),a[3]=m,a[4]=n,a[5]=i):i=a[5],a[6]!==c||a[7]!==p||a[8]!==o||a[9]!==i||a[10]!==s||a[11]!==u?(r=(0,v.jsx)(tL.lG,{header:s,id:p,onClickOutside:o,onClose:o,portal:"default",width:u,contentRef:h,"data-testid":"default-edit-object-dialog",__unstable_autoFocus:c,children:i}),a[6]=c,a[7]=p,a[8]=o,a[9]=i,a[10]=s,a[11]=u,a[12]=r):r=a[12],r}let TT=(0,eI.I4)(tL.AM).withConfig({displayName:"RootPopover",componentId:"sc-3pun1i-0"})`[data-ui='Popover__wrapper']{overflow:auto;max-height:60vh;}`,TE=(0,eI.I4)(I.az).withConfig({displayName:"ContentScrollerBox",componentId:"sc-3pun1i-1"})`overflow-x:hidden;`,T$=(0,eI.I4)(I.az).withConfig({displayName:"ContentHeaderBox",componentId:"sc-3pun1i-2"})`box-shadow:0 1px 0 var(--card-shadow-outline-color);position:relative;z-index:10;min-height:auto;`,TA=e=>{let t,n,i,r=(0,j.c)(6);return r[0]!==e?({children:t,...n}=e,r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),r[3]!==t||r[4]!==n?(i=(0,v.jsx)("div",{...n,tabIndex:-1,
810children:t}),r[3]=t,r[4]=n,r[5]=i):i=r[5],i},TD=["top","bottom"];function Tz(e){let t,n,i=(0,j.c)(8),{floatingBoundary:r,referenceBoundary:a,referenceElement:o,width:l}=e,s=void 0===l?2:l;return i[0]!==e?(t=(0,v.jsx)(TP,{...e}),i[0]=e,i[1]=t):t=i[1],i[2]!==r||i[3]!==a||i[4]!==o||i[5]!==t||i[6]!==s?(n=(0,v.jsx)(TT,{content:t,constrainSize:!0,"data-testid":"popover-edit-dialog","data-ui":"PopoverEditDialog",fallbackPlacements:TD,floatingBoundary:r,open:!0,overflow:"auto",placement:"bottom",portal:"default",preventOverflow:!0,referenceBoundary:a,referenceElement:o,width:s,autoFocus:!0}),i[2]=r,i[3]=a,i[4]=o,i[5]=t,i[6]=s,i[7]=n):n=i[7],n}function TP(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(27),{onClose:g,referenceBoundary:y,referenceElement:C,title:x}=e,b=(0,_.useRef)(!1);f[0]!==g?(t=()=>{b.current=!0,g()},f[0]=g,f[1]=t):t=f[1];let w=t;f[2]!==w?(n=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),w())},f[2]=w,f[3]=n):n=f[3],f[4]===Symbol.for("react.memo_cache_sentinel")?(i={capture:!0},f[4]=i):i=f[4],(0,I.Pm)(n,i),f[5]!==C?(r=()=>[C],f[5]=C,f[6]=r):r=f[6],f[7]!==y?(a=()=>y,f[7]=y,f[8]=a):a=f[8],(0,I.PR)(w,r,a);let[k,S]=(0,_.useState)(null),T=(0,_.useRef)(null);f[9]===Symbol.for("react.memo_cache_sentinel")?(o=e=>!b.current&&(!!Array.from(document.querySelectorAll("[data-portal]")).some(t=>t.contains(e))||!!b.current)&&(!!e.contentEditable||!!T.current?.contains(e)),f[9]=o):o=f[9];let E=o;return f[10]!==x?(l=(0,v.jsx)(I.az,{flex:1,padding:2,children:(0,v.jsx)(I.EY,{weight:"medium",children:x})}),f[10]=x,f[11]=l):l=f[11],f[12]===Symbol.for("react.memo_cache_sentinel")?(s={content:"Close"},f[12]=s):s=f[12],f[13]!==w?(d=(0,v.jsx)(tL.$n,{autoFocus:!0,icon:eT.USm,mode:"bleed",onClick:w,tooltipProps:s,"data-testid":"close-popover-edit-dialog-button"}),f[13]=w,f[14]=d):d=f[14],f[15]!==l||f[16]!==d?(c=(0,v.jsx)(T$,{flex:"none",padding:1,children:(0,v.jsxs)(I.so,{align:"center",children:[l,d]})}),f[15]=l,f[16]=d,f[17]=c):c=f[17],f[18]===Symbol.for("react.memo_cache_sentinel")?(u=[0,0,1,0],f[18]=u):u=f[18],f[19]!==e.children?(p=(0,v.jsx)(TE,{flex:1,children:(0,v.jsx)(wJ,{margins:u,children:(0,v.jsx)(I.az,{padding:3,ref:S,children:e.children})})}),f[19]=e.children,f[20]=p):p=f[20],f[21]!==p||f[22]!==c?(m=(0,v.jsx)(tq.Ay,{autoFocus:!0,whiteList:E,children:(0,v.jsxs)(I.so,{as:TA,ref:T,direction:"column",height:"fill",children:[c,p]})}),f[21]=p,f[22]=c,f[23]=m):m=f[23],f[24]!==k||f[25]!==m?(h=(0,v.jsx)(wr,{scrollElement:k,containerElement:T,children:m}),f[24]=k,f[25]=m,f[26]=h):h=f[26],h}function TR(e){let t,n,i,r,a,o,l=(0,j.c)(28),{autoFocus:s,defaultType:d,floatingBoundary:c,onClose:u,referenceBoundary:p,referenceElement:m,schemaType:h}=e,{t:f}=as();l[0]!==h?(t="object"==typeof(a=h.options?.modal)&&null!==a?{type:"dialog"===(o=a.type)||"popover"===o?o:void 0,width:TS(a.width)}:void 0,l[0]=h,l[1]=t):t=l[1];let g=t,y=g?.type||d,{enabled:C}=y3();if(l[2]!==h.i18nTitleKey||l[3]!==h.name||l[4]!==h.title||l[5]!==f){let e=h.i18nTitleKey?f(h.i18nTitleKey):h.title||h.name;n=f("inputs.portable-text.annotation-editor.title",{schemaType:e}),l[2]=h.i18nTitleKey,l[3]=h.name,l[4]=h.title,l[5]=f,l[6]=n}else n=l[6];let x=n;l[7]!==u?(i=()=>{u()},l[7]=u,l[8]=i):i=l[8];let b=i,w=g?.width;if("popover"===y){let t,n;return l[9]!==x?(t=(0,v.jsx)(v.Fragment,{children:x}),l[9]=x,l[10]=t):t=l[10],l[11]!==s||l[12]!==c||l[13]!==b||l[14]!==w||l[15]!==e.children||l[16]!==p||l[17]!==m||l[18]!==t?(n=(0,v.jsx)(Tz,{autoFocus:s,floatingBoundary:c,onClose:b,referenceBoundary:p,referenceElement:m,title:t,width:w,"data-testid":"popover-edit-dialog",children:e.children}),l[11]=s,l[12]=c,l[13]=b,l[14]=w,l[15]=e.children,l[16]=p,l[17]=m,l[18]=t,l[19]=n):n=l[19],n}return l[20]!==s||l[21]!==b||l[22]!==x||l[23]!==w||l[24]!==C||l[25]!==u||l[26]!==e.children?(r=C?(0,v.jsx)(BO,{type:"dialog",onClose:u,header:x,width:1,autofocus:s,children:e.children}):(0,v.jsx)(TI,{onClose:b,title:x,width:w,autoFocus:s,children:e.children}),l[20]=s,l[21]=b,l[22]=x,l[23]=w,l[24]=C,l[25]=u,l[26]=e.children,l[27]=r):r=l[27],r}let TN=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(69),{floatingBoundary:f,focused:g,onItemClose:y,onItemOpen:C,onPathF
810ocus:x,path:b,readOnly:k,referenceBoundary:S,relativePath:I,renderAnnotation:T,renderBlock:E,renderCustomMarkers:$,renderField:A,renderItem:D,renderInlineBlock:z,renderInput:P,renderPreview:R,schemaType:N,selected:O,setElementRef:V,value:M}=e,{Markers:L}=hE().__internal.components,F=(0,n1.v$)(),B=hz(),Y=hF(b),[H,U]=(0,_.useState)(null);h[0]!==b?(t=on(b),h[0]=b,h[1]=t):t=h[1];let Z=hJ(t),{validation:q,hasError:W,hasInfo:J,hasWarning:K}=hL(Z?.node),G=B.block,X=Y.length>0;h[2]!==I?(n={anchor:{path:I,offset:0},focus:{path:I,offset:0}},h[2]=I,h[3]=n):n=h[3];let Q=n;h[4]!==F||h[5]!==Q?(i=()=>{n1.Og.delete(F,Q,{mode:"children"}),n1.Og.focus(F)},h[4]=F,h[5]=Q,h[6]=i):i=h[6];let ee=i;h[7]!==F||h[8]!==Z||h[9]!==C?(r=()=>{Z&&(n1.Og.blur(F),C(Z.node.path))},h[7]=F,h[8]=Z,h[9]=C,h[10]=r):r=h[10];let et=r;h[11]!==F||h[12]!==y||h[13]!==Q?(a=()=>{y(),n1.Og.select(F,Q),n1.Og.focus(F)},h[11]=F,h[12]=y,h[13]=Q,h[14]=a):a=h[14];let en=a,ei=!!Z?.member.open,er=Z?.input,ea=Z?.node.path||rM,eo=hT(b,!0);if(h[15]!==b||h[16]!==eo){let e;h[18]!==b?(e=e=>(0,w.n4)(e.path,b),h[18]=b,h[19]=e):e=h[19],o=eo.filter(e),h[15]=b,h[16]=eo,h[17]=o}else o=h[17];let el=o;h[20]!==f||h[21]!==g||h[22]!==er||h[23]!==ei||h[24]!==Y||h[25]!==Z?.member||h[26]!==ea||h[27]!==en||h[28]!==et||h[29]!==x||h[30]!==ee||h[31]!==G||h[32]!==k||h[33]!==S||h[34]!==H||h[35]!==T||h[36]!==E||h[37]!==A||h[38]!==z||h[39]!==P||h[40]!==D||h[41]!==R||h[42]!==el||h[43]!==N||h[44]!==O||h[45]!==q||h[46]!==M?(l=()=>({__unstable_floatingBoundary:f,__unstable_referenceBoundary:S,__unstable_referenceElement:H,changed:Z?.member.item.changed??!1,children:er,focused:g,onClose:en,onOpen:et,onPathFocus:x,onRemove:ee,open:ei,markers:Y,member:Z?.member,parentSchemaType:G,path:ea,presence:el,readOnly:!!k,renderAnnotation:T,renderBlock:E,renderDefault:TO,renderField:A,renderInlineBlock:z,renderInput:P,renderItem:D,renderPreview:R,schemaType:N,selected:O,value:M,validation:q}),h[20]=f,h[21]=g,h[22]=er,h[23]=ei,h[24]=Y,h[25]=Z?.member,h[26]=ea,h[27]=en,h[28]=et,h[29]=x,h[30]=ee,h[31]=G,h[32]=k,h[33]=S,h[34]=H,h[35]=T,h[36]=E,h[37]=A,h[38]=z,h[39]=P,h[40]=D,h[41]=R,h[42]=el,h[43]=N,h[44]=O,h[45]=q,h[46]=M,h[47]=l):l=h[47],h[48]!==l?(s=l(),h[48]=l,h[49]=s):s=h[49];let es=s,ed=W||K||J||X;h[50]!==L||h[51]!==Y||h[52]!==$||h[53]!==ed||h[54]!==q?(d=ed&&(0,v.jsx)(Tw,{children:(0,v.jsx)(L,{markers:Y,validation:q,renderCustomMarkers:$})})||null,h[50]=L,h[51]=Y,h[52]=$,h[53]=ed,h[54]=q,h[55]=d):d=h[55];let ec=d;h[56]!==Z||h[57]!==V?(c=e=>{Z&&V({key:Z.member.key,elementRef:e}),U(e)},h[56]=Z,h[57]=V,h[58]=c):c=h[58];let eu=c,ep=!!ei||!ed;return h[59]!==es||h[60]!==z?(u=z&&(0,v.jsx)("span",{style:{position:"relative"},children:z(es)}),h[59]=es,h[60]=z,h[61]=u):u=h[61],h[62]!==ep||h[63]!==u||h[64]!==ec?(p=(0,v.jsx)(tL.m_,{placement:"bottom",portal:"editor",disabled:ep,content:ec,children:u}),h[62]=ep,h[63]=u,h[64]=ec,h[65]=p):p=h[65],h[66]!==eu||h[67]!==p?(m=(0,v.jsx)("span",{ref:eu,contentEditable:!1,children:p}),h[66]=eu,h[67]=p,h[68]=m):m=h[68],m},TO=e=>{let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(45),{__unstable_floatingBoundary:p,__unstable_referenceBoundary:m,__unstable_referenceElement:h,children:f,focused:g,markers:y,onClose:C,onOpen:x,onRemove:b,open:w,readOnly:_,renderPreview:k,schemaType:S,selected:I,validation:T,value:E}=e,{t:$}=as(),A=y.length>0,D=S?.title||S.name;u[0]!==T?(t=T.filter(TV),u[0]=T,u[1]=t):t=u[1];let z=t.length>0;u[2]!==T?(n=T.filter(TM),u[2]=T,u[3]=n):n=u[3];let P=n.length>0;e:{if(z){i="critical";break e}if(P){i="caution";break e}if(I||g){i="primary";break e}i=void 0}let R=i;u[4]!==$?(r=$("inputs.portable-text.inline-block.aria-label"),u[4]=$,u[5]=r):r=u[5];let N=g||void 0,O=z||void 0,V=A||void 0,M=_||void 0,L=I||void 0,F=P||void 0,B=_?x:void 0;return u[6]!==k||u[7]!==S||u[8]!==E?(a=k({layout:"inline",schemaType:S,skipVisibilityCheck:!0,value:E,fallbackTitle:"Click to edit"}),u[6]=k,u[7]=S,u[8]=E,u[9]=a):a=u[9],u[10]!==a?(o=(0,v.jsx)(Tj,{children:a}),u[10]=a,u[11]=o):o=u[11],u[12]!==x||u[13]!==B||u[14]!==o||u[15]!==r||u[16]!==N||u[17]!==O||u[18]!==V||u[19]!==M||u[20]!==L||u[21]!==F||u[22]!==R?(l=(0,v.jsx)(Tv,{"aria-label":r,"data-focused":N,"data-invalid":O,"data-markers":V,"data-read-only":M,"data-selected":L,"data-warning":F,forwardedAs:"span",onClick:B,onDoubleClick:x,tone:R,children:o}),u[12]=x,u[13]=B,u[14]=o,u[15]=r,u[16]=N,u[17]=O,u[18]=V,u[19]=M,u[20]=L,u[21]=F,u[22]=R,u[23]=l):l=u[23],u[24]!==p||u[25]!==g||u[26]!==x||u[27]!==b||u[28]!==w||u[29]!==D||u[30]!==m||u[3
8101]!==h?(s=h&&(0,v.jsx)(Tk,{floatingBoundary:p,inlineObjectFocused:g,inlineObjectOpen:w,onOpenInlineObject:x,onRemoveInlineObject:b,referenceBoundary:m,referenceElement:h,title:D}),u[24]=p,u[25]=g,u[26]=x,u[27]=b,u[28]=w,u[29]=D,u[30]=m,u[31]=h,u[32]=s):s=u[32],u[33]!==f||u[34]!==p||u[35]!==C||u[36]!==w||u[37]!==m||u[38]!==h||u[39]!==S?(d=w&&(0,v.jsx)(TR,{autoFocus:!0,defaultType:"popover",floatingBoundary:p,onClose:C,referenceBoundary:m,referenceElement:h,schemaType:S,children:f}),u[33]=f,u[34]=p,u[35]=C,u[36]=w,u[37]=m,u[38]=h,u[39]=S,u[40]=d):d=u[40],u[41]!==l||u[42]!==s||u[43]!==d?(c=(0,v.jsxs)(v.Fragment,{children:[l,s,d]}),u[41]=l,u[42]=s,u[43]=d,u[44]=c):c=u[44],c};function TV(e){return"error"===e.level}function TM(e){return"warning"===e.level}function TL(e){let t,n,i,r=(0,j.c)(14),a=(0,n1.v$)(),o=(0,I.$w)().element,l=hK(),s=SP();r[0]!==l?(t=l.find(TF),r[0]=l,r[1]=t):t=r[1];let d=t;r[2]!==a||r[3]!==d||r[4]!==e?(n=()=>{d&&(e.onItemClose(),d.node.value&&hj(d.node.value)&&d&&n1.Og.removeAnnotation(a,d.node.schemaType),n1.Og.focus(a))},r[2]=a,r[3]=d,r[4]=e,r[5]=n):n=r[5];let c=n;if(!d)return null;let u=s[d.member.key];if(!u)return null;let p=!!e.focused;return r[6]!==o||r[7]!==u||r[8]!==c||r[9]!==d.input||r[10]!==d.node.schemaType||r[11]!==e.referenceBoundary||r[12]!==p?(i=(0,v.jsx)(TR,{defaultType:"popover",floatingBoundary:o,onClose:c,autoFocus:p,referenceBoundary:e.referenceBoundary,referenceElement:u,schemaType:d.node.schemaType,children:d.input}),r[6]=o,r[7]=u,r[8]=c,r[9]=d.input,r[10]=d.node.schemaType,r[11]=e.referenceBoundary,r[12]=p,r[13]=i):i=r[13],i}function TF(e){return"annotation"===e.kind&&e.member.open}function TB(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,k,T,E,$,A,D,z=(0,j.c)(167),{changed:P,elementRef:R,focused:N,focusPath:O,elementProps:V,hasFocusWithin:M,hideToolbar:L,hotkeys:F,isActive:B,isFullscreen:Y,onActivate:H,onCopy:U,onItemClose:Z,onItemOpen:q,onItemRemove:W,onPaste:J,onPathFocus:K,onSelectFile:G,onToggleFullscreen:X,onUpload:Q,path:ee,rangeDecorations:et,readOnly:en,renderAnnotation:ei,renderBlock:er,renderBlockActions:ea,renderCustomMarkers:eo,renderField:el,renderInlineBlock:es,renderInput:ed,renderItem:ec,renderPreview:eu,value:ep}=e,em=void 0===O?rM:O,eh=hz(),ef=(A=(0,j.c)(2),D=(0,_.useContext)(S.rf),A[0]!==D?($=e=>{let{key:t,elementRef:n}=e;D.next({...D.value,[t]:n})},A[0]=D,A[1]=$):$=A[1],$);e:{let e;if(!J){t=void 0;break e}z[0]!==J||z[1]!==eh?(e=e=>J({...e,schemaTypes:eh}),z[0]=J,z[1]=eh,z[2]=e):e=z[2],t=e}let eg=t,ey=(0,I.$w)().element,[eC,ex]=(0,_.useState)(null),[eb,ev]=(0,_.useState)(null);z[3]!==X?(n=()=>{X()},z[3]=X,z[4]=n):n=z[4];let ej=n,ew=F?.custom;z[5]!==X||z[6]!==ew?(i={"mod+enter":X,...ew},z[5]=X,z[6]=ew,z[7]=i):i=z[7],z[8]!==F||z[9]!==i?(r={...F,custom:i},z[8]=F,z[9]=i,z[10]=r):r=z[10];let e_=function(e){let t,n,i,r,a,o=(0,j.c)(12),l=hz();o[0]!==e?(t=()=>e,o[0]=e,o[1]=t):t=o[1];let[s]=(0,_.useState)(t);return s!==e&&console.warn("Make sure that hotkeys are a stable object across renders, or there will be issues with key handling in the Portable Text Editor."),o[2]!==l.decorators?(n={marks:{}},l.decorators.forEach(e=>{switch(e.value){case"strong":n.marks["mod+b"]=e.value;break;case"em":n.marks["mod+i"]=e.value;break;case"underline":n.marks["mod+u"]=e.value;break;case"code":n.marks["mod+'"]=e.value}}),o[2]=l.decorators,o[3]=n):n=o[3],o[4]!==s?(i=s||{},o[4]=s,o[5]=i):i=o[5],o[6]!==n.marks||o[7]!==i.marks?(r={...n.marks,...i.marks},o[6]=n.marks,o[7]=i.marks,o[8]=r):r=o[8],o[9]!==s.custom||o[10]!==r?(a={marks:r,custom:s.custom},o[9]=s.custom,o[10]=r,o[11]=a):a=o[11],a}(r),ek=ep&&ea?ea:void 0,eS=ep&&eo?eo:void 0,[eI,eT]=(0,_.useState)(null);z[11]!==ek||z[12]!==eS||z[13]!==ey||z[14]!==Y||z[15]!==Z||z[16]!==q||z[17]!==W||z[18]!==K||z[19]!==ee||z[20]!==en||z[21]!==ei||z[22]!==er||z[23]!==el||z[24]!==es||z[25]!==ed||z[26]!==ec||z[27]!==eu||z[28]!==eh.block||z[29]!==eb||z[30]!==ef?(a=e=>{let{children:t,focused:n,path:i,selected:r,value:a}=e;return(0,v.jsx)(Ih,{floatingBoundary:ey,focused:n,isFullscreen:Y,onItemClose:Z,onItemOpen:q,onItemRemove:W,onPathFocus:K,path:ee.concat(i),readOnly:en,referenceBoundary:eb,renderAnnotation:ei,renderField:el,renderInlineBlock:es,renderInput:ed,renderItem:ec,renderBlockActions:ek,renderCustomMarkers:eS,renderPreview:eu,renderBlock:er,schemaType:eh.block,selected:r,setElementRef:ef,value:a,children:t})},z[11]=ek,z[12]=eS,z[13]=ey,z[14]=Y,z[15]=Z,z[16]=q,z[17]=W,z[18]=K,z[19]=ee,z[20]=en,z[21]=ei,z[22]=er,z[23]=el,z[24]=es,z[25]=ed,z[26]=ec,z[27]=eu,z[28]=eh.block,z[29]=eb,z[30]=ef,z[31]=a):a=z[31];let eE=a;z[32]!==ek||z[33]!==eS||z[34]!==ey||z[35]!==Y||z[36]!==Z||z[37]!==q||z[38]!==W||z[39]!==K||z[40]!==ee||z[41]!==en||z[42]!==ei||z[43]!==er||z[44]!==el||z[45]!==es||z[46]!==ed||z[47]!==ec||z[48]!==eu||z[49]!==eh.blockObjects||z[50]!==eb||z[51]!==ef?(o=e=>{let{focused:t,path:n,selected:i,schemaType:r,value:a}=e,o=eh.blockObjects.find(e=>e.name===r.name);if(!o)throw Error(`Could not find Sanity schema type for block object: ${r.name}`);return(0,v.jsx)(Pc,{floatingBoundary:ey,focused:t,isFullscreen:Y,onItemClose:Z,onItemOpen:q,onItemRemove:W,onPathFocus:K,path:ee.concat(n),readOnly:en,referenceBoundary:eb,relativePath:n,renderAnnotation:ei,renderBlock:er,renderBlockActions:ek,renderCustomMarkers:eS,renderField:el,renderInlineBlock:es,renderInput:ed,renderItem:ec,renderPreview:eu,schemaType:o,selected:i,setElementRef:ef,value:a})},z[32]=ek,z[33]=eS,z[34]=ey,z[35]=Y,z[36]=Z,z[37]=q,z[38]=W,z[39]=K,z[40]=ee,z[41]=en,z[42]=ei,z[43]=er,z[44]=el,z[45]=es,z[46]=ed,z[47]=ec,z[48]=eu,z[49]=eh.blockObjects,z[50]=eb,z[51]=ef,z[52]=o):o=z[52];let e$=o;z[53]!==e$||z[54]!==eE||z[55]!==eh.block.name?(l=e=>{let{value:t}=e;return t._type===eh.block.name?eE(e):e$(e)},z[53]=e$,z[54]=eE,z[55]=eh.block.name,z[56]=l):l=z[56];let eA=l;z[57]!==ey||z[58]!==Z||z[59]!==q||z[60]!==K||z[61]!==ee||z[62]!==en||z[63]!==ei||z[64]!==er||z[65]!==eo||z[66]!==el||z[67]!==es||z[68]!==ed||z[69]!==ec||z[70]!==eu||z[71]!==eh.inlineObjects||z[72]!==eh.span.name||z[73]!==eb||z[74]!==ef?(s=e=>{let{children:t,focused:n,path:i,selected:r,schemaType:a,value:o}=e;if(o._type===eh.span.name)return t;let l=eh.inlineObjects.find(e=>e.name===a.name);if(!l)throw Error(`Could not find Sanity schema type for inline object: ${a.name}`);return(0,v.jsx)(TN,{floatingBoundary:ey,focused:n,onItemClose:Z,onItemOpen:q,onPathFocus:K,path:ee.concat(i),readOnly:en,referenceBoundary:eb,relativePath:i,renderAnnotation:ei,renderBlock:er,renderCustomMarkers:eo,renderField:el,renderInlineBlock:es,renderInput:ed,renderItem:ec,renderPreview:eu,schemaType:l,selected:r,setElementRef:ef,value:o})},z[57]=ey,z[58]=Z,z[59]=q,z[60]=K,z[61]=ee,z[62]=en,z[63]=ei,z[64]=er,z[65]=eo,z[66]=el,z[67]=es,z[68]=ed,z[69]=ec,z[70]=eu,z[71]=eh.inlineObjects,z[72]=eh.span.name,z[73]=eb,z[74]=ef,z[75]=s):s=z[75];let ez=s;z[76]!==ey||z[77]!==N||z[78]!==Z||z[79]!==q||z[80]!==K||z[81]!==ee||z[82]!==en||z[83]!==ei||z[84]!==er||z[85]!==eo||z[86]!==el||z[87]!==es||z[88]!==ed||z[89]!==ec||z[90]!==eu||z[91]!==eh.annotations||z[92]!==eb||z[93]!==ef?(d=e=>{let{children:t,focused:n,path:i,selected:r,schemaType:a,value:o}=e,l=eh.annotations.find(e=>e.name===a.name);if(!l)throw Error(`Could not find Sanity schema type for annotation: ${a.name}`);return(0,v.jsx)(hQ,{editorNodeFocused:n,floatingBoundary:ey,focused:!!N,onItemClose:Z,onItemOpen:q,onPathFocus:K,path:ee.concat(i),readOnly:en,referenceBoundary:eb,renderAnnotation:ei,renderBlock:er,renderCustomMarkers:eo,renderField:el,renderInlineBlock:es,renderInput:ed,renderItem:ec,renderPreview:eu,schemaType:l,selected:r,setElementRef:ef,value:o,children:t})},z[76]=ey,z[77]=N,z[78]=Z,z[79]=q,z[80]=K,z[81]=ee,z[82]=en,z[83]=ei,z[84]=er,z[85]=eo,z[86]=el,z[87]=es,z[88]=ed,z[89]=ec,z[90]=eu,z[91]=eh.annotations,z[92]=eb,z[93]=ef,z[94]=d):d=z[94];let eP=d,eR=V["aria-describedby"];z[95]!==em||z[96]!==M?(c=()=>
810{if(M)return{anchor:{path:em,offset:0},focus:{path:em,offset:0}}},z[95]=em,z[96]=M,z[97]=c):c=z[97];let[eN]=(0,_.useState)(c),eO=!!eh.block.options?.oneLine,eV=eC||void 0;z[98]!==eR||z[99]!==e_||z[100]!==eP||z[101]!==eA||z[102]!==ez||z[103]!==R||z[104]!==ej||z[105]!==L||z[106]!==eN||z[107]!==B||z[108]!==Y||z[109]!==eO||z[110]!==U||z[111]!==q||z[112]!==ee||z[113]!==et||z[114]!==en||z[115]!==eb||z[116]!==eg?(u=(0,v.jsx)(Sz,{children:(0,v.jsx)(Tm,{ariaDescribedBy:eR,elementRef:R,initialSelection:eN,hideToolbar:L,hotkeys:e_,isActive:B,isFullscreen:Y,isOneLine:eO,onItemOpen:q,onCopy:U,onPaste:eg,onToggleFullscreen:ej,path:ee,rangeDecorations:et,readOnly:en,renderAnnotation:eP,renderBlock:eA,renderChild:ez,setPortalElement:eT,scrollElement:eb,setScrollElement:ev})}),z[98]=eR,z[99]=e_,z[100]=eP,z[101]=eA,z[102]=ez,z[103]=R,z[104]=ej,z[105]=L,z[106]=eN,z[107]=B,z[108]=Y,z[109]=eO,z[110]=U,z[111]=q,z[112]=ee,z[113]=et,z[114]=en,z[115]=eb,z[116]=eg,z[117]=u):u=z[117],z[118]!==G||z[119]!==Q||z[120]!==en||z[121]!==eh.portableText.of||z[122]!==eV||z[123]!==u?(p=(0,v.jsx)(v_,{isReadOnly:en,onSelectFile:G,onUpload:Q,pasteTarget:eV,tabIndex:-1,types:eh.portableText.of,children:u}),z[118]=G,z[119]=Q,z[120]=en,z[121]=eh.portableText.of,z[122]=eV,z[123]=u,z[124]=p):p=z[124];let eM=p,eL=(0,I.WP)();z[125]!==eL.element||z[126]!==eI||z[127]!==eC?(m={collapsed:eC,default:eL.element,editor:eI,expanded:eL.element},z[125]=eL.element,z[126]=eI,z[127]=eC,z[128]=m):m=z[128];let eF=m;z[129]!==em||z[130]!==Z||z[131]!==eb?(h={focusPath:em,boundaryElement:eb,onItemClose:Z},z[129]=em,z[130]=Z,z[131]=eb,z[132]=h):h=z[132],function(e){let t,n,i=(0,j.c)(15),{focusPath:r,boundaryElement:a,onItemClose:o}=e,l=hK(),s=SP(),d=(0,n1.v$)(),c=(0,n1.pq)();i[0]!==a||i[1]!==d||i[2]!==s||i[3]!==r||i[4]!==l||i[5]!==c?(t=()=>{if(0===r.length||c?.focus.path&&(0,w.n4)(c.focus.path,r.slice(0,c.focus.path.length)))return;let e=l.find(TC),t=l.find(Ty),n=e||t,i=n?s[n.member.key]:void 0;if(n&&i){a&&((0,il.A)(a,{scrollMode:"if-needed",block:"start",inline:"start"}),(0,il.A)(i,{scrollMode:"if-needed",boundary:a,block:"nearest",inline:"start"}));let e="textBlock"===n.kind,t=1===r.length;if(e||t){let i=e&&(0,eD.o8)(r[2])?r[2]._key:void 0,a=i&&Array.isArray(n.node.value?.children)?n.node.value?.children.find(e=>e._key===i):void 0,o=a&&"span"===a._type&&4===r.length&&"children"===r[1]&&"text"===r[3]||!1,l=e&&(3===r.length&&"children"===r[1]||o),s=[];l?s=r.slice(0,3):e&&t&&Array.isArray(n.node.value?.children)?s=[r[0],"children",{_key:n.node.value?.children[0]._key}]:t&&(s=[{_key:n.key}]),s.length&&(n1.Og.select(d,{anchor:{path:s,offset:0},focus:{path:s,offset:0}}),e&&n1.Og.focus(d))}}},i[0]=a,i[1]=d,i[2]=s,i[3]=r,i[4]=l,i[5]=c,i[6]=t):t=i[6];let u=c?.focus.path;i[7]!==a||i[8]!==d||i[9]!==s||i[10]!==r||i[11]!==o||i[12]!==l||i[13]!==u?(n=[a,d,s,r,o,l,u],i[7]=a,i[8]=d,i[9]=s,i[10]=r,i[11]=o,i[12]=l,i[13]=u,i[14]=n):n=i[14],(0,_.useLayoutEffect)(t,n)}(h);let eB=N||M,eY=eL.element,eH=!B,eU=!!N,eZ=eB?"":void 0,eq=en?"":void 0,eW=Y?"expanded":"collapsed";return z[133]!==eM||z[134]!==Y?(f=Y?(0,v.jsx)(SD,{children:eM}):eM,z[133]=eM,z[134]=Y,z[135]=f):f=z[135],z[136]!==N||z[137]!==Z||z[138]!==eb?(g=(0,v.jsx)(TL,{focused:N,onItemClose:Z,referenceBoundary:eb}),z[136]=N,z[137]=Z,z[138]=eb,z[139]=g):g=z[139],z[140]!==ey||z[141]!==eb?(y=(0,v.jsx)(Tb,{floatingBoundary:ey,referenceBoundary:eb}),z[140]=ey,z[141]=eb,z[142]=y):y=z[142],z[143]!==eW||z[144]!==f||z[145]!==g||z[146]!==y?(C=(0,v.jsx)(I.az,{"data-wrapper":"",ref:ex,children:(0,v.jsxs)(I.ZL,{__unstable_name:eW,children:[f,g,y]})}),z[143]=eW,z[144]=f,z[145]=g,z[146]=y,z[147]=C):C=z[147],z[148]===Symbol.for("react.memo_cache_sentinel")?(x=(0,v.jsx)("div",{"data-border":""}),z[148]=x):x=z[148],z[149]!==eZ||z[150]!==eq||z[151]!==C?(b=(0,v.jsxs)(SA,{"data-focused":eZ,"data-read-only":eq,children:[C,x]}),z[149]=eZ,z[150]=eq,z[151]=C,z[152]=b):b=z[152],z[153]!==P||z[154]!==Y||z[155]!==ee||z[156]!==eU||z[157]!==b?(k=(0,v.jsx)(S1,{disabled:Y,hasFocus:eU,isChanged:P,path:ee,children:b}),z[153]=P,z[154]=Y,z[155]=ee,z[156]=eU,z[157]=b,z[158]=k):k=z[158],z[159]!==H||z[160]!==eH||z[161]!==k?(T=(0,v.jsx)(S$,{onActivate:H,isOverlayActive:eH,children:k}
810),z[159]=H,z[160]=eH,z[161]=k,z[162]=T):T=z[162],z[163]!==eL.element||z[164]!==eF||z[165]!==T?(E=(0,v.jsx)(hP,{children:(0,v.jsx)(I.GD,{__unstable_elements:eF,element:eY,children:T})}),z[163]=eL.element,z[164]=eF,z[165]=T,z[166]=E):E=z[166],E}function TY(e){let t,n=(0,j.c)(3);return n[0]!==e.children||n[1]!==e.markers?(t=(0,v.jsx)(S.ht.Provider,{value:e.markers,children:e.children}),n[0]=e.children,n[1]=e.markers,n[2]=t):t=n[2],t}function TH(e){let t,n=(0,j.c)(3);return n[0]!==e.children||n[1]!==e.memberItems?(t=(0,v.jsx)(S.u2.Provider,{value:e.memberItems,children:e.children}),n[0]=e.children,n[1]=e.memberItems,n[2]=t):t=n[2],t}function TU({diff:e,mapPayload:t=e=>e,anchorPath:n=ES,focusPath:i=ES}){if("string"!==e.type)return[];let r=e?.segments??[],{rangeDecorations:a}=r.reduce((e,a,o)=>{let l=r.at(o-1),s=e.rangeDecorations.at(-1);return"added"===a.action&&s?.payload?.action==="removed"&&"u">typeof l&&s?.selection?.anchor?.offset===e.position?(e.rangeDecorations.splice(e.rangeDecorations.length-1,1,{selection:{anchor:{path:n,offset:e.position},focus:{path:i,offset:e.position+a.text.length}},component:({children:e})=>(0,v.jsxs)("span",{children:[(0,v.jsx)(s.component,{}),(0,v.jsx)(Sx,{segment:a,children:e})]}),payload:t({id:TZ(s?.payload?.action,l.text,"added",a.text),action:"merged"})}),e.position+=a.text.length):"added"===a.action?(e.rangeDecorations.push({selection:{anchor:{path:n,offset:e.position},focus:{path:i,offset:e.position+a.text.length}},component:e=>(0,v.jsx)(Sx,{segment:a,...e}),payload:t({id:TZ("added",a.text),action:a.action})}),e.position+=a.text.length):"removed"===a.action?e.rangeDecorations.push({selection:{anchor:{path:n,offset:e.position},focus:{path:i,offset:e.position}},component:()=>(0,v.jsx)(SC,{segment:a}),payload:t({id:TZ("removed",a.text),action:a.action})}):"unchanged"===a.action&&(e.position+=a.text.length),e},{position:0,rangeDecorations:[]});return a}function TZ(...e){return e.join(".")}function Tq({value:e=[],upstreamValue:t=[],perspective:n}){return e.reduce((i,r)=>{let{isAdded:a,stringDiff:o}=function({upstreamValue:e=[],value:t=[],selector:n,perspective:i}){let r=n(e),a=n(t),o=typeof r>"u"&&"u">typeof a,l="u">typeof r&&typeof a>"u",s="u">typeof r&&(0,nQ.IG)(r)?(0,nQ.bo)(r):"",d="u">typeof a&&(0,nQ.IG)(a)?(0,nQ.bo)(a):"",c={provenance:{bundle:i}};return{isAdded:o,isRemoved:l,stringDiff:(0,iB.g)((0,iB.L)(s,c),(0,iB.L)(d,c),{})}}({upstreamValue:t,value:e,selector:e=>e.find(({_key:e})=>e===r._key),perspective:n});if(!(0,nQ.IG)(r)||0===r.children.length)return i;if(a){let e=(0,nQ.bo)(r);return i[r._key]??=[],i[r._key].push({selection:{anchor:{path:[{_key:r._key}],offset:0},focus:{path:[{_key:r._key}],offset:e.length}},component:({children:t})=>(0,v.jsx)(Sx,{segment:{action:"added",type:"stringSegment",text:e,annotation:{provenance:{bundle:n}}},children:t})}),i}return o.isChanged&&(i[r._key]??=[],i[r._key].push(...TU({diff:o,anchorPath:[{_key:r._key}],focusPath:[{_key:r._key}]}))),i},{})}function TW(e){let[,t]=e;return t}function TJ(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(42),{onChange:f,onIgnore:g,resolution:y,readOnly:C}=e,x=(0,tK.Jr)(),{t:b}=as();h[0]!==f||h[1]!==y||h[2]!==x?(t=()=>{y&&(f({type:"mutation",patches:y.patches}),x.log(S_,{PTEInvalidValueId:y.i18n.description,PTEInvalidValueDescription:y.description}))},h[0]=f,h[1]=y,h[2]=x,h[3]=t):t=h[3];let w=t;h[4]!==g||h[5]!==x?(n=()=>{x.log(Sw),g()},h[4]=g,h[5]=x,h[6]=n):n=h[6];let _=n;return y?(h[7]!==b?(i=b("inputs.portable-text.invalid-value.title"),h[7]=b,h[8]=i):i=h[8],h[9]!==i?(r=(0,v.jsx)(v.Fragment,{children:i}),h[9]=i,h[10]=r):r=h[10],h[11]!==w||h[12]!==_||h[13]!==C||h[14]!==y.action||h[15]!==y.i18n.action||h[16]!==y.i18n.values||h[17]!==b?(a=y.action&&(0,v.jsxs)(I.xA,{columns:[1,2],gap:1,children:[(0,v.jsx)(I.$n,{mode:"ghost",onClick:_,text:b("inputs.portable-text.invalid-value.ignore-button.text")}),!C&&(0,v.jsx)(I.$n,{onClick:w,text:(0,v.jsx)(aE,{t:b,i18nKey:y.i18n.action,values:y.i18n.values}),tone:"caution"})]}),h[11]=w,h[12]=_,h[13]=C,h[14]=y.action,h[15]=y.i18n.action,h[16]=y.i18n.values,h[17]=b,h[18]=a):a=h[18],h[19]!==y.action||h[20]!==b?(o=y.action&&(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:b("inputs.portable-text.invali
810d-value.action-disclaimer")}),h[19]=y.action,h[20]=b,h[21]=o):o=h[21],h[22]!==o?(l=(0,v.jsx)(I.az,{padding:3,children:o}),h[22]=o,h[23]=l):l=h[23],h[24]!==a||h[25]!==l?(s=(0,v.jsxs)(I.BJ,{padding:2,children:[a,l]}),h[24]=a,h[25]=l,h[26]=s):s=h[26],h[27]!==y.i18n.description||h[28]!==y.i18n.values||h[29]!==b?(d=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)(aE,{t:b,i18nKey:y.i18n.description,values:y.i18n.values})}),h[27]=y.i18n.description,h[28]=y.i18n.values,h[29]=b,h[30]=d):d=h[30],h[31]!==y.item?(c=JSON.stringify(y.item,null,2),h[31]=y.item,h[32]=c):c=h[32],h[33]!==c?(u=(0,v.jsx)(I.Zp,{border:!0,overflow:"auto",padding:2,tone:"inherit",children:(0,v.jsx)(I.Cy,{language:"json",children:c})}),h[33]=c,h[34]=u):u=h[34],h[35]!==u||h[36]!==d?(p=(0,v.jsxs)(I.BJ,{space:3,children:[d,u]}),h[35]=u,h[36]=d,h[37]=p):p=h[37],h[38]!==p||h[39]!==r||h[40]!==s?(m=(0,v.jsx)(g$,{title:r,suffix:s,children:p}),h[38]=p,h[39]=r,h[40]=s,h[41]=m):m=h[41],m):null}function TK(e){return e.form?.components?.input}function TG(e){return e.form?.components?.field}function TX(e){return e.form?.components?.preview}function TQ(e){return e.form?.components?.item}function T1(e){return e.form?.components?.block}function T2(e){return e.form?.components?.inlineBlock}function T5(e){return e.form?.components?.annotation}function T0(e){return e.form?.components?.portableText?.plugins}let T7={boldDecorator:({schema:e})=>e.decorators.find(e=>"strong"===e.name)?.name,codeDecorator:({schema:e})=>e.decorators.find(e=>"code"===e.name)?.name,italicDecorator:({schema:e})=>e.decorators.find(e=>"em"===e.name)?.name,strikeThroughDecorator:({schema:e})=>e.decorators.find(e=>"strike-through"===e.name)?.name,defaultStyle:({schema:e})=>e.styles.find(e=>"normal"===e.name)?.name,blockquoteStyle:({schema:e})=>e.styles.find(e=>"blockquote"===e.name)?.name,headingStyle:({schema:e,level:t})=>e.styles.find(e=>e.name===`h${t}`)?.name,orderedListStyle:({schema:e})=>e.lists.find(e=>"number"===e.name)?.name,unorderedListStyle:({schema:e})=>e.lists.find(e=>"bullet"===e.name)?.name},T3=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(16),d=hz(),c=!!d.block.options?.oneLine;s[0]!==d.block.options?.unstable_whitespaceOnPasteMode||s[1]!==d.portableText?(t=(0,n6.Ke)({on:"deserialize.data",guard:e=>{let{snapshot:t,event:n}=e;if("text/html"!==n.mimeType)return!1;let i=(0,is.l$)(n.data,d.portableText,{keyGenerator:t.context.keyGenerator,unstable_whitespaceOnPasteMode:d.block.options?.unstable_whitespaceOnPasteMode});return 0===i.length?{type:"deserialization.failure",mimeType:"text/html",reason:"No blocks deserialized"}:{type:"deserialization.success",mimeType:"text/html",data:i}},actions:[Et]}),s[0]=d.block.options?.unstable_whitespaceOnPasteMode,s[1]=d.portableText,s[2]=t):t=s[2],s[3]!==t?(n=[t],s[3]=t,s[4]=n):n=s[4];let u=n;s[5]===Symbol.for("react.memo_cache_sentinel")?(i={plugins:{markdown:{config:T7},pasteLink:{},typography:{guard:(0,iX.QG)({decorators:Ei})}},renderDefault:Ee},s[5]=i):i=s[5];let p=i,m=e.schemaType.components?.portableText?.plugins;return s[6]!==u?(r=(0,v.jsx)(n7.cd,{behaviors:u}),s[6]=u,s[7]=r):r=s[7],s[8]!==c?(a=c&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n3.U,{}),(0,v.jsx)(n7.cd,{behaviors:[(0,n6.Ke)({on:"insert.soft break",actions:[]})]})]}),s[8]=c,s[9]=a):a=s[9],s[10]!==m?(o=m?(0,v.jsx)(m,{...p}):(0,v.jsx)(Ee,{...p}),s[10]=m,s[11]=o):o=s[11],s[12]!==r||s[13]!==a||s[14]!==o?(l=(0,v.jsxs)(v.Fragment,{children:[r,a,o]}),s[12]=r,s[13]=a,s[14]=o,s[15]=l):l=s[15],l};function T8(e){let t,n,i,r,a=(0,j.c)(10);return a[0]!==e.plugins.markdown?(t=(0,v.jsx)(T4,{...e.plugins.markdown}),a[0]=e.plugins.markdown,a[1]=t):t=a[1],a[2]!==e.plugins.pasteLink?(n=(0,v.jsx)(T6,{...e.plugins.pasteLink}),a[2]=e.plugins.pasteLink,a[3]=n):n=a[3],a[4]!==e.plugins.typography?(i=(0,v.jsx)(T9,{...e.plugins.typography}),a[4]=e.plugins.typography,a[5]=i):i=a[5],a[6]!==t||a[7]!==n||a[8]!==i?(r=(0,v.jsxs)(v.Fragment,{children:[t,n,i]}),a[6]=t,a[7]=n,a[8]=i,a[9]=r):r=a[9],r}function T4(e){let t,n,i,r,a,o,l,s=(0,j.c)(17);s[0]!==e?(t=e??{},s[0]=e,s[1]=t):t=s[1];let d=t;if(!d.config){let e,t,n;if(s[2]!==d){let{enabled:n,config:i,...r}=d;e=n,t=r,s[2]=d,s[3]=e,s[4]=t}else e=s[3],t=s[4];return!1===e?null:(s[5]!==t?(n=(0,v.jsx)(iK.k,{...t}),s[5]=t,s[6]=n):n=s[6],n)}s[7]!==d.config?({orderedList:n,orderedListStyle:i,unorderedList:a,unorderedListStyle:o,...r}=d.config,s[7]=d.config,s[8]=n,s[9]=i,s[10]=r,s[11]=a,s[12]=o):(n=s[8],i=s[9],r=s[10],a=s[11],o=s[12]);let c=n??i,u=a??o;return s[13]!==r||s[14]!==c||s[15]!==u?(l=(0,v.jsx)(iK.k,{orderedList:c,unorderedList:u,...r}),s[13]=r,s[14]=c,s[15]=u,s[16]=l):l=s[16],l}function T6(e){let t,n,i,r,a=(0,j.c)(7);return(a[0]!==e?(t=e??{},a[0]=e,a[1]=t):t=a[1],a[2]!==t?({enabled:n,...i}=t,a[2]=t,a[3]=n,a[4]=i):(n=a[3],i=a[4]),!1===n)?null:(a[5]!==i?(r=(0,v.jsx)(iG.J,{...i}),a[5]=i,a[6]=r):r=a[6],r)}function T9(e){let t,n,i,r,a=(0,j.c)(7);return(a[0]!==e?(t=e??{},a[0]=e,a[1]=t):t=a[1],a[2]!==t?({enabled:n,...i}=t,a[2]=t,a[3]=n,a[4]=i):(n=a[3],i=a[4]),!1===n)?null:(a[5]!==i?(r=(0,v.jsx)(iX.xj,{...i}),a[5]=i,a[6]=r):r=a[6],r)}let Ee=e=>{let t,n,i=(0,j.c)(4);i[0]===Symbol.for("react.memo_cache_sentinel")?(t={defaultComponent:T8,pick:T0},i[0]=t):t=i[0];let r=a4(t);return i[1]!==r||i[2]!==e?(n=(0,v.jsx)(r,{...e}),i[1]=r,i[2]=e,i[3]=n):n=i[3],n};function Et(e,t){let{event:n}=e;return[(0,n6.xl)({...t,originEvent:n.originEvent})]}function En(e){return"code"===e.name?[]:[e.name]}
810function Ei(e){let{context:t}=e;return t.schema.decorators.flatMap(En)}let Er={animate:{opacity:1,scaleX:1,scaleY:1},exit:{opacity:0,scaleX:0,scaleY:.5},initial:{opacity:0,scaleX:0,scaleY:.5}},Ea={duration:.3,ease:"easeInOut",type:"spring",bounce:0},Eo={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0}},El={duration:.2,delay:.15},Es=eI.I4.span.withConfig({displayName:"CursorLine",componentId:"sc-mj5gcd-0"})(({theme:e,$tints:t})=>{let n=(0,nN.JW)(e)?.color._dark,i=t[n?400:500].hex,r=t[n?900:50].hex;return(0,eI.AH)` 811 --presence-cursor-bg: ${i}; 812 --presence-cursor-fg: ${r}; 813 814 border-left: 1px solid transparent; 815 border-color: var(--presence-cursor-bg); 816 margin-left: -1px; 817 position: relative; 818 word-break: normal; 819 white-space: normal; 820 mix-blend-mode: unset; 821 pointer-events: none; 822 `}),Ed=eI.I4.div.withConfig({displayName:"CursorDot",componentId:"sc-mj5gcd-1"})`background-color:var(--presence-cursor-bg);border-radius:50%;width:${6}px;height:${6}px;position:absolute;top:-${5}px;left:-0.5px;transform:translateX(-50%);mix-blend-mode:unset;z-index:0;pointer-events:all;&:before{content:'';position:absolute;top:-${3}px;left:50%;transform:translateX(-50%);width:${12}px;height:${18}px;opacity:0.5;}`,Ec=(0,eI.I4)(ir.P.create(I.az)).withConfig({displayName:"UserBox",componentId:"sc-mj5gcd-2"})(({theme:e})=>{let t=(0,nN.JW)(e)?.radius[4];return(0,eI.AH)` 823 position: absolute; 824 top: -${9}px; 825 left: -${4.5}px; 826 transform-origin: left; 827 white-space: nowrap; 828 padding: 3px 6px; 829 box-sizing: border-box; 830 border-radius: ${t}px; 831 background-color: var(--presence-cursor-bg); 832 z-index: 1; 833 mix-blend-mode: unset; 834 user-select: none; 835 `}),Eu=(0,eI.I4)(ir.P.create(I.EY)).withConfig({displayName:"UserText",componentId:"sc-mj5gcd-3"})`color:var(--presence-cursor-fg);mix-blend-mode:unset;`;function Ep(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(17),{children:c,user:u}=e,{tints:p}=op(u.id),[m,h]=(0,_.useState)(!1);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>h(!0),d[0]=t):t=d[0];let f=t;d[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>h(!1),d[1]=n):n=d[1];let g=n;d[2]!==u.displayName?(i=u.displayName?.split(" ").join("-"),d[2]=u.displayName,d[3]=i):i=d[3];let y=`presence-cursor-${i}`;return d[4]!==m||d[5]!==u.displayName?(r=m&&(0,v.jsx)(Ec,{animate:"animate",exit:"exit",flex:1,initial:"initial",transition:Ea,variants:Er,children:(0,v.jsx)(Eu,{animate:"animate",exit:"exit",initial:"initial",size:0,transition:El,variants:Eo,weight:"medium",children:u.displayName})}),d[4]=m,d[5]=u.displayName,d[6]=r):r=d[6],d[7]!==r?(a=(0,v.jsx)(ia.N,{children:r}),d[7]=r,d[8]=a):a=d[8],d[9]===Symbol.for("react.memo_cache_sentinel")?(o=(0,v.jsx)(Ed,{}),d[9]=o):o=d[9],d[10]!==a||d[11]!==y||d[12]!==p?(l=(0,v.jsxs)(Es,{$tints:p,contentEditable:!1,"data-testid":y,onMouseEnter:f,onMouseLeave:g,children:[a,o]}),d[10]=a,d[11]=y,d[12]=p,d[13]=l):l=d[13],d[14]!==c||d[15]!==l?(s=(0,v.jsxs)(v.Fragment,{children:[l,c]}),d[14]=c,d[15]=l,d[16]=s):s=d[16],s}function Em(e){return{...e.selection,sessionId:e.sessionId}}function Eh(e){return{...e.selection,sessionId:e.sessionId}}function Ef(e,t){if(e===t)return!0;if(!Array.isArray(e)||!Array.isArray(t)||e.length<t.length)return!1;for(let n=0,i=t.length;n<i;n++)if(!function(e,t){let n=typeof e;return n===typeof t&&("object"===n?nZ(e,t):e===t)}(t[n],e[n]))return!1;return!0}function Eg(){return(0,nq.Xp)(12)}let Ey=(0,_.forwardRef)((e,t)=>{let n,i,r=(0,j.c)(2),a=(0,n1.v$)(),o=(0,_.useRef)(a);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>o.current,i=[],r[0]=n,r[1]=i):(n=r[0],i=r[1]),(0,_.useImperativeHandle)(t,n,i),null});function EC(e){let{editorRef:t,elementProps:n,hotkeys:i,initialActive:r,initialFullscreen:a,markers:o=rM,onChange:l,onCopy:s,onEditorChange:d,onFullScreenChange:c,onInsert:u,onItemRemove:p,onPaste:m,onPathFocus:h,path:f,readOnly:g,rangeDecorations:y,renderBlockActions:C,renderCustomMarkers:x,schemaType:b,value:k,displayInlineChanges:S}=e,{onBlur:E,ref:$}=n,A=(0,_.useRef)(null),z=t||A,P=function(e){let t,n,i,r,a,o,l,s=(0,j.c)(10),{path:d}=e,c=hI();s[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],s[0]=t):t=s[0];let[u,p]=(0,_.useState)(t);s[1]===Symbol.for("react.memo_cache_sentinel")?(n=[],s[1]=n):n=s[1];let[m,h]=(0,_.useState)(n),f=(0,_.useRef)(u);
835s[2]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{let{rangeDecoration:t,newSelection:n}=e;h(e=>e.map(e=>e.payload?.sessionId===t.payload?.sessionId?{...t,selection:n}:e))},s[2]=i):i=s[2];let g=i;return s[3]!==c||s[4]!==d?(r=()=>{let e=c.filter(e=>(0,w.w1)(d,e.path)&&!(0,D.A)(d,e.path)),t=e.map(Eh),n=f.current.map(Em);if(!(0,D.A)(t,n)){let t=e.length>0?e:rM;p(t),f.current=t}},a=[c,d],s[3]=c,s[4]=d,s[5]=r,s[6]=a):(r=s[5],a=s[6]),(0,_.useEffect)(r,a),s[7]!==u?(o=()=>{h(u.map(e=>e.selection?{component:t=>{let{children:n}=t;return(0,v.jsx)(Ep,{user:e.user,children:n})},selection:{focus:e.selection.focus,anchor:e.selection.focus},onMoved:g,payload:{sessionId:e.sessionId}}:null).filter(Boolean))},l=[u,g],s[7]=u,s[8]=o,s[9]=l):(o=s[8],l=s[9]),(0,_.useEffect)(o,l),m}((0,_.useMemo)(()=>({path:e.path}),[e.path])),{selectedPerspective:R}=a3(),{rangeDecorations:N,onOptimisticChange:O}=function(e){let t,n,i,r,a,o=(0,j.c)(17),{upstreamValue:l,definitiveValue:s,perspective:d,displayInlineChanges:c}=e,[u,p]=(0,_.useState)();e:{let e;if(!c){let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],o[0]=e):e=o[0],t=e;break e}if(typeof d>"u"){let e;o[1]===Symbol.for("react.memo_cache_sentinel")?(e=[],o[1]=e):e=o[1],t=e;break e}if(o[2]!==s||o[3]!==u||o[4]!==d||o[5]!==l){let t=Tq({perspective:d,upstreamValue:l,value:s}),n=Tq({perspective:d,upstreamValue:l,value:typeof u>"u"?[]:[u]});e=Object.values(n).concat(Object.entries(t).filter(e=>{let[t]=e;return typeof n[t]>"u"}).map(TW)).flat(),o[2]=s,o[3]=u,o[4]=d,o[5]=l,o[6]=e}else e=o[6];t=e}let m=t;o[7]!==s||o[8]!==c||o[9]!==u?(n=e=>{if(!c)return;let[t]=e.path;if("object"!=typeof t||!("_key"in t))return;let n=[u].concat(s).find(e=>"u">typeof e&&(0,nQ.IG)(e)&&e._key===t._key);if(typeof n>"u")return void p(function({path:e,value:t}){let n=e.reduceRight((n,i,r)=>{if(r===e.length-1&&"text"!==i)throw Error("Patch path must terminate at Portable Text text field");if("text"===i)return{_type:"span",text:(0,n9.$i)((0,n9.iz)(t),"")[0]};if("children"===i)return{_type:"block",children:[n]};if("object"==typeof i&&null!==i){if(!("_key"in i))throw Error("Expected `_key` in path segment");return n._key=i._key,n}throw Error("Unexepected path segment")},{});if("block"===n._type)return n}(e));let[i]=(0,ie.ZS)((0,ie.jN)(e.path),n);if(typeof i>"u")return;let[r]=(0,n9.$i)((0,n9.iz)(e.value),"string"==typeof i.value?i.value:"");p((0,ef.A)(typeof n>"u"?{}:structuredClone(n),i?.path,r))},o[7]=s,o[8]=c,o[9]=u,o[10]=n):n=o[10];let h=n;return o[11]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{p(void 0)},o[11]=i):i=o[11],o[12]!==s?(r=[s],o[12]=s,o[13]=r):r=o[13],(0,_.useEffect)(i,r),o[14]!==h||o[15]!==m?(a={rangeDecorations:m,onOptimisticChange:h},o[14]=h,o[15]=m,o[16]=a):a=o[16],a}({upstreamValue:e.hasUpstreamVersion?e.compareValue:[],definitiveValue:k,perspective:R,displayInlineChanges:S}),[V,M]=(0,_.useState)(!1),[L,F]=(0,_.useState)(null),[B,Y]=(0,_.useState)(r??!0),[H,U]=(0,_.useState)(!1),[Z,q]=(0,_.useState)(!1),W=(0,tK.Jr)(),{getFullscreenPath:J,setFullscreenPath:K}=wo(),[G,X]=(0,_.useState)(!!J(f)||(a??!1)),Q=(0,_.useRef)(!1),ee=(0,_.useRef)(f);(0,_.useEffect)(()=>{Q.current||!a||J(f)||(Q.current=!0,K(f,!0))},[a,f,J,K]),(0,_.useEffect)(()=>{lG(ee.current)!==lG(f)&&(ee.current=f,X(!!J(f)))},[J,f]);let et=(0,T.dj)(),en=(0,_.useCallback)(()=>{let e=!G;e?W.log(Sv):W.log(Sj),K(f,e),c?.(e),X(e)},[W,f,K,c,G]);(0,_.useEffect)(()=>{L&&k!==L.value&&F(null)},[L,k]);let ei=function(e){let{members:t,path:n,schemaType:i,renderAnnotation:r,renderField:a,renderBlock:o,renderInput:l,renderItem:s,renderInlineBlock:d,renderPreview:c,onPathFocus:u}=e,p=(0,_.useRef)([]);return(0,_.useMemo)(()=>{let e=[];for(let n of t)if("item"===n.kind)if(a6(n.item.schemaType)){(n.item.validation.length>0||n.item.changed||n.item.presence?.length||n.open||n.item.focusPath.length||n.item.focused)&&e.push({kind:"textBlock",member:n,node:n.item});let t=n.item.members.find(e=>"field"===e.kind&&"children"===e.name);if(t&&"field"===t.kind&&hY(t))for(let n of t.field.members)"item"===n.kind&&"span"!==n.item.schemaType.name&&e.push({kind:"inlineObject",member:n,node:n.item});let i=n.item.members.filter(a9).find(e=>"markDefs"===e.name);if(i)for(let t of i.field.members)"item"===t.kind&&"object"===t.item.schemaType.jsonType&&e.push({kind:"annotation",member:t,node:t.item})}else e.push({kind:"objectBlock",member:n,node:n.item});let m=e.map(e=>{let m=on(e.node.path),h=p.current.find(e=>e.key===m),f="textBlock"!==e.kind,g=null;if(f&&e.member!==h?.member||e.node!==h?.node){let p=t=>{let i=e.member.item.path.concat(t);0!==t.length&&u(i.slice(n.length,i.length))},m={absolutePath:(0,w.p0)(e.node.path),includeField:!1,members:t,path:(0,w.p0)(n),renderAnnotation:r,renderBlock:o,renderField:a,renderInlineBlock:d,renderInput:t=>(0,w.n4)(t.path,e.member.item.path)?l({...t,onChange:n=>
835{"unset"===n.type&&0===n.path.length?t.onChange(hq({_type:e.member.item.schemaType.name,_key:e.member.key},n.path)):t.onChange(n)},onPathFocus:p,elementProps:{...t.elementProps,onFocus:()=>{}}}):l(t),renderItem:s,renderPreview:c,schemaType:i};g=(0,v.jsx)(j9,{...m})}return h?(h.member=e.member,h.node=e.node,h.input=g||h.input,h):{kind:e.kind,key:m,member:e.member,node:e.node,input:g}});return p.current=m,m},[t,u,n,r,o,a,d,l,s,c,i])}(e);(0,_.useEffect)(()=>{H&&Y(!0)},[H]);let er=(0,_.useCallback)(e=>{let t=e?.focus.path;if(!t)return;let n=3===t.length&&"children"===t[1]&&(0,eD.tA)(t[2])&&!ei.some(e=>(0,eD.tA)(t[2])&&e.member.key===t[2]._key)?t.concat(["text"]):t;(0,_.startTransition)(()=>{h(n,{selection:e})})},[h,ei]),ea=(0,_.useCallback)(e=>{switch(e.type){case"mutation":l(e.patches.map(e=>({...e,patchType:hH})));break;case"selection":er(e.selection);break;case"focus":Y(!0),U(!0);break;case"blur":E(e.event),U(!1);break;case"invalidValue":F(e);break;case"error":et.push({status:e.level,description:e.description});break;case"ready":q(!0)}z.current&&d&&d(e,z.current)},[z,d,l,er,E,et]);(0,_.useEffect)(()=>{M(!1)},[k]);let eo=(0,_.useCallback)(()=>{M(!0)},[]),el=(0,_.useMemo)(()=>L&&L.resolution?(0,v.jsx)(I.az,{marginBottom:2,children:(0,v.jsx)(TJ,{onChange:ea,onIgnore:eo,resolution:L.resolution,readOnly:g})}):null,[ea,eo,L,g]),es=(0,_.useCallback)(()=>{B||(Y(!0),z.current&&n1.Og.focus(z.current))},[z,B]),ed=(0,_.useRef)([]),ec=(0,_.useMemo)(()=>{let e=S?N:[...y||[],...P],t=hk(ed.current,e);return ed.current=t,t},[N,S,P,y]);return(0,v.jsxs)(I.az,{children:[!V&&el,(!L||V)&&(0,v.jsx)(hD,{schemaType:b,children:(0,v.jsx)(TY,{markers:o,children:(0,v.jsx)(TH,{memberItems:ei,children:(0,v.jsxs)(n1.zz,{initialConfig:{initialValue:k,readOnly:g||!Z,keyGenerator:Eg,schemaDefinition:(0,n8.Wz)(b)},children:[(0,v.jsx)(Ex,{onChange:ea,onOptimisticChange:O}),(0,v.jsx)(Ey,{ref:z}),(0,v.jsx)(Eb,{path:f}),(0,v.jsx)(Ej,{readOnly:g||!Z}),(0,v.jsx)(Ev,{value:k}),(0,v.jsx)(T3,{schemaType:b}),(0,v.jsx)(TB,{...e,elementRef:$,hasFocusWithin:H,hotkeys:i,isActive:B,isFullscreen:G,onActivate:es,onItemRemove:p,onCopy:s,onInsert:u,onPaste:m,onToggleFullscreen:en,rangeDecorations:ec,readOnly:g||!Z,renderBlockActions:C,renderCustomMarkers:x})]})})})})]})}function Ex(e){let t,n,i=(0,j.c)(4);i[0]!==e?(t=t=>{switch(t.type){case"blurred":e.onChange({type:"blur",event:t.event});break;case"error":e.onChange({type:"error",name:t.name,level:"warning",description:t.description});break;case"focused":e.onChange({type:"focus",event:t.event});break;case"loading":e.onChange({type:"loading",isLoading:!0});break;case"done loading":e.onChange({type:"loading",isLoading:!1});break;case"invalid value":e.onChange({type:"invalidValue",resolution:t.resolution,value:t.value});break;case"mutation":e.onChange({type:"mutation",snapshot:t.value,patches:t.patches});break;case"patch":"diffMatchPatch"===t.patch.type&&"local"===t.patch.origin&&e.onOptimisticChange(t.patch),e.onChange(t);break;case"ready":case"selection":e.onChange(t);break;case"value changed":e.onChange({type:"value",value:t.value})}},i[0]=e,i[1]=t):t=i[1];let r=t;return i[2]!==r?(n=(0,v.jsx)(n7.Un,{on:r}),i[2]=r,i[3]=n):n=i[3],n}function Eb(e){let t,n,i,r=(0,j.c)(6),a=(0,n2.h)();r[0]!==e.path?(t={path:e.path},r[0]=e.path,r[1]=t):t=r[1];let{subscribe:o}=function(e){let t,n,i=(0,j.c)(5),{path:r}=e,{patchChannel:a}=hE().__internal;i[0]!==a||i[1]!==r?(t=e=>a.subscribe(t=>{var n,i;let{snapshot:a,patches:o}=t,l=o.filter(e=>Ef(e.path,r)).map(e=>({...e,path:e.path.slice(r.length)}));l.length&&e({shouldReset:(n=r,o.some(e=>{var t;return t=e.path,(0===t.length||Ef(n,t)&&!Ef(t,n))&&("set"===e.type||"unset"===e.type)})),snapshot:rZ(a)?(i=a,r.reduce((e,t)=>"object"==typeof t?(0,eg.A)(e,t):(0,V.A)(e,t),i)):{},patches:l})}),i[0]=a,i[1]=r,i[2]=t):t=i[2];let o=t;return i[3]!==o?(n={subscribe:o},i[3]=o,i[4]=n):n=i[4],n}(t);return r[2]!==a||r[3]!==o?(n=()=>{let e=o(e=>{let{patches:t,snapshot:n}=e;a.send({type:"patches",patches:t,snapshot:n})});return()=>e()},i=[a,o],r[2]=a,r[3]=o,r[4]=n,r[5]=i):(n=r[4],i=r[5]),(0,_.useEffect)(n,i),null}function Ev(e){let t,n,i=(0,j.c)(4),r=(0,n2.h)();return i[0]!==r||i[1]!==e.value?(t=()=>{r.send({type:"update value",value:e.value})},n=[r,e.value],i[0]=r,i[1]=e.value,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,_.useEffect)(t,n),null}function Ej(e){let t,n,i=(0,j.c)(4),r=(0,n2.h)();return i[0]!==r||i[1]!==e.readOnly?(t=()=>{r.send({type:"update readOnly",readOnly:e.readOnly})},n=[r,e.readOnly],i[0]=r,i[1]=e.readOnly,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,_.useEffect)(t,n),null}function Ew(e){return[{_type:"block",_key:"root",children:[{_type:"span",_key:"root",text:e??""}]}]}Ey.displayName="EditorRefPlugin";let E_=(0,eI.AH)` 836 &:not([hidden]) { 837 display: flex; 838 } 839 840 align-items: center; 841`;function Ek(e){let{$fontSize:t,$iconLeft:n,$iconRight:i,$padding:r,$space:a}=e,{font:o,media:l,space:s}=(0,nN.JW)(e.theme),d=Math.max(r.length,a.length,t.length),c=[],u=[],p=[];for(let e=0;e<d;e+=1)p[e]=void 0===t[e]?p[e-1]:t[e],c[e]=void 0===r[e]?c[e-1]:r[e],u[e]=void 0===a[e]?u[e-1]:a[e];return(0,I.U1)(l,c,(e,t)=>{let r=o.text.sizes[p[t]]||o.text.sizes[2],a=r.lineHeight-r.ascenderHeight-r.descenderHeight,l=s[c[t]],d=s[u[t]],m={paddingTop:(0,I.D0)(l-r.ascenderHeight),paddingRight:(0,I.D0)(l),paddingBottom:(0,I.D0)(l-r.descenderHeight),paddingLeft:(0,I.D0)(l)};return i&&(m.paddingRight=(0,I.D0)(l+a+d)),n&&(m.paddingLeft=(0,I.D0)(l+a+d)),m})}let ES=[{_key:"root"},"children",{_key:"root"}],EI=eI.I4.div.withConfig({displayName:"StyledRoot",componentId:"sc-13yzieu-0"})`flex:1;min-width:0;display:block;position:relative;`,ET=(0,eI.I4)(n1.LF).withConfig({displayName:"StyledInput",componentId:"sc-13yzieu-1"})`${function(){return E_}} ${function(e){let{$scheme:t,$tone:n,$weight:i}=e,{color:r,font:a}=(0,nN.JW)(e.theme);return(0,eI.AH)` 842 appearance: none; 843 background: none; 844 border: 0; 845 border-radius: 0; 846 outline: none; 847 width: 100%; 848 box-sizing: border-box; 849 font-family: ${a.text.family}; 850 font-weight: ${i&&a.text.weights[i]||a.text.weights.regular}; 851 margin: 0; 852 position: relative; 853 z-index: 1; 854 display: block; 855 856 /* NOTE: This is a hack to disable Chromeâs autofill styles */ 857 &:-webkit-autofill, 858 &:-webkit-autofill:hover, 859 &:-webkit-autofill:focus, 860 &:-webkit-autofill:active { 861 -webkit-text-fill-color: var(--input-fg-color) !important; 862 transition: background-color 5000s; 863 transition-delay: 86400s /* 24h */; 864 } 865 866 /* &:is(textarea) */ 867 &[data-as='textarea'] { 868 resize: none; 869 } 870 871 color: var(--input-fg-color); 872 873 &::placeholder { 874 color: var(--input-placeholder-color); 875 } 876 877 &[data-scheme='${t}'][data-tone='${n}'] { 878 --input-fg-color: ${r.input.default.enabled.fg}; 879 --input-placeholder-color: ${r.input.default.enabled.placeholder}; 880 881 /* enabled */
882 &:not(:invalid):not(:disabled):not([data-read-only='true']) { 883 --input-fg-color: ${r.input.default.enabled.fg}; 884 --input-placeholder-color: ${r.input.default.enabled.placeholder}; 885 } 886 887 /* disabled */ 888 &:not(:invalid):disabled { 889 --input-fg-color: ${r.input.default.disabled.fg}; 890 --input-placeholder-color: ${r.input.default.disabled.placeholder}; 891 } 892 893 /* invalid */ 894 &:invalid { 895 --input-fg-color: ${r.input.invalid.enabled.fg}; 896 --input-placeholder-color: ${r.input.invalid.enabled.placeholder}; 897 } 898 899 /* readOnly */ 900 &[data-read-only='true'] { 901 --input-fg-color: ${r.input.default.readOnly.fg}; 902 --input-placeholder-color: ${r.input.default.readOnly.placeholder}; 903 } 904 } 905 `}} ${Ek} ${function(e){let{font:t,media:n}=(0,nN.JW)(e.theme);return(0,I.U1)(n,e.$fontSize,e=>{let n=t.text.sizes[e]||t.text.sizes[2];return{fontSize:(0,I.D0)(n.fontSize),lineHeight:n.lineHeight/n.fontSize}})}} ${Sb}`,EE=(0,eI.I4)(I.Zp).withConfig({displayName:"StyledEditorRepresentation",componentId:"sc-13yzieu-2"})(function(e){let{$hasPrefix:t,$hasSuffix:n,$scheme:i,$tone:r,$unstableDisableFocusRing:a}=e,{color:o,input:l}=(0,nN.JW)(e.theme);return(0,eI.AH)` 906 --input-box-shadow: none; 907 908 position: absolute; 909 top: 0; 910 left: 0; 911 right: 0; 912 bottom: 0; 913 display: block; 914 pointer-events: none; 915 z-index: 0; 916 917 background-color: var(--card-bg-color); 918 box-shadow: var(--input-box-shadow); 919 920 border-top-left-radius: ${t?0:void 0}; 921 border-bottom-left-radius: ${t?0:void 0}; 922 border-top-right-radius: ${n?0:void 0}; 923 border-bottom-right-radius: ${n?0:void 0}; 924 925 &[data-scheme='${i}'][data-tone='${r}'] { 926 --card-bg-color: ${o.input.default.enabled.bg}; 927 --card-fg-color: ${o.input.default.enabled.fg}; 928 929 /* enabled */ 930 *:not(:disabled) + &[data-border] { 931 --input-box-shadow: ${i3({color:o.input.default.enabled.border,width:l.border.width})}; 932 } 933 934 /* invalid */ 935 *:not(:disabled).invalid + & { 936 --card-bg-color: ${o.input.invalid.enabled.bg}; 937 --card-fg-color: ${o.input.invalid.enabled.fg}; 938 939 &[data-border] { 940 --input-box-shadow: ${i3({color:o.input.invalid.enabled.border,width:l.border.width})}; 941 } 942 } 943 944 /* focused */ 945 *:not(:disabled):focus + & { 946 &[data-border] { 947 --input-box-shadow: ${a?void 0:i4({border:{color:o.input.default.enabled.border,width:l.border.width},focusRing:l.text.focusRing})}; 948 } 949 950 &:not([data-border]) { 951 --input-box-shadow: ${a?void 0:i4({focusRing:l.text.focusRing})}; 952 } 953 } 954 955 /* disabled */ 956 *:not(.invalid):disabled + & { 957 --card-bg-color: ${o.input.default.disabled.bg} !important; 958 --card-fg-color: ${o.input.default.disabled.fg} !important; 959 --card-icon-color: ${o.input.default.disabled.fg} !important; 960 961 &[data-border] { 962 --input-box-shadow: ${i3({color:o.input.default.disabled.border,width:l.border.width})}; 963 } 964 } 965 966 *.invalid:disabled + & { 967 --card-bg-color: ${o.input.invalid.disabled.bg} !important; 968 --card-fg-color: ${o.input.invalid.disabled.fg} !important; 969 --card-icon-color: ${o.input.invalid.disabled.fg} !important; 970 971 &[data-border] { 972 --input-box-shadow: ${i3({color:o.input.invalid.disabled.border,width:l.border.width})}; 973 } 974 } 975 976 /* readOnly */ 977 *:not(.invalid)[data-read-only='true'] + & { 978 --card-bg-color: ${o.input.default.readOnly.bg} !important; 979 --card-fg-color: ${o.input.default.readOnly.fg} !important; 980 } 981 982 *.invalid[data-read-only='true'] + & { 983 --card-bg-color: ${o.input.invalid.readOnly.bg} !important; 984 --card-fg-color: ${o.input.invalid.readOnly.fg} !important; 985 } 986 987 /* hovered */ 988 @media (hover: hover) { 989 *:not(:disabled):not([data-read-only='true']):not(.invalid):hover + & { 990 --card-bg-color: ${o.input.default.hovered.bg}; 991 --card-fg-color: ${o.input.default.hovered.fg}; 992 } 993 994 *.invalid:not(:disabled):not([data-read-only='true']):hover + & { 995 --card-bg-color: ${o.input.invalid.hovered.bg}; 996 --card-fg-color: ${o.input.invalid.hovered.fg}; 997 } 998 999 *:not(:disabled):not([data-read-only='true']):not(.invalid):not
999(:focus):hover 1000 + &[data-border] { 1001 --input-box-shadow: ${i3({color:o.input.default.hovered.border,width:l.border.width})}; 1002 } 1003 1004 *.invalid:not(:disabled):not([data-read-only='true']):not(:focus):hover + &[data-border] { 1005 --input-box-shadow: ${i3({color:o.input.invalid.hovered.border,width:l.border.width})}; 1006 } 1007 } 1008 } 1009 `}),E$=eI.I4.span.withConfig({displayName:"StyledPlaceholder",componentId:"sc-13yzieu-3"})`${Ek}`;function EA(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(49),{elementProps:f,onChange:g,value:y,__unstable_computeDiff:C}=e,{onFocus:x,onBlur:b}=f;h[0]!==C||h[1]!==y?(t={definitiveValue:y,computeDiff:C},h[0]=C,h[1]=y,h[2]=t):t=h[2];let{diff:w,rangeDecorations:k,onOptimisticChange:S}=function(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(23),{definitiveValue:u,computeDiff:p}=e,[m,h]=(0,_.useState)(u),[f,g]=(0,_.useState)("definitive");c[0]!==p||c[1]!==m?(t=p(m),c[0]=p,c[1]=m,c[2]=t):t=c[2];let y=t;c[3]!==p||c[4]!==u?(n=p(u),c[3]=p,c[4]=u,c[5]=n):n=c[5];let C=n;c[6]!==y||c[7]!==C?(i={optimistic:y,definitive:C},c[6]=y,c[7]=C,c[8]=i):i=c[8];let x=i[f];c[9]!==m?(r=e=>{let[t]=(0,n9.$i)((0,n9.iz)(e),m??"");h(t),g("optimistic")},c[9]=m,c[10]=r):r=c[10];let b=r;c[11]!==u?(a=()=>{g("definitive"),h(u)},o=[u],c[11]=u,c[12]=a,c[13]=o):(a=c[12],o=c[13]),(0,_.useEffect)(a,o),c[14]!==f?(l=e=>({...e,currentSignal:f}),c[14]=f,c[15]=l):l=c[15],c[16]!==x||c[17]!==l?(s=TU({diff:x,mapPayload:l}),c[16]=x,c[17]=l,c[18]=s):s=c[18];let v=s;return c[19]!==x||c[20]!==b||c[21]!==v?(d={diff:x,rangeDecorations:v,onOptimisticChange:b},c[19]=x,c[20]=b,c[21]=v,c[22]=d):d=c[22],d}(t);h[3]!==y||h[4]!==b||h[5]!==g||h[6]!==x||h[7]!==S?(n=e=>{if("focused"===e.type)return void x(e.event);if("blurred"===e.type)return void b(e.event);if("patch"===e.type&&"diffMatchPatch"===e.patch.type&&"local"===e.patch.origin)return void S(e.patch.value);if("mutation"===e.type){let t=function(e=[]){return e.filter(e=>(0,nQ.IG)(e)).find(({_key:e})=>"root"===e)?.children?.find(({_key:e})=>"root"===e)?.text??""}(e.value),n=typeof y>"u"&&""===t,i="u">typeof y&&""===t;if(!(t!==y&&!n))return;if(i)return void g(hW());g(hq(t))}},h[3]=y,h[4]=b,h[5]=g,h[6]=x,h[7]=S,h[8]=n):n=h[8];let E=n;h[9]!==e.readOnly||h[10]!==e.value?(i=()=>({initialValue:Ew(e.value),readOnly:e.readOnly??!1,schemaDefinition:(0,n5.Jo)({})}),h[9]=e.readOnly,h[10]=e.value,h[11]=i):i=h[11];let[$]=(0,_.useState)(i),A=(0,I.GG)(),D=(0,T.KC)(2),z=(0,T.KC)(3),P=(0,T.KC)(2),R=(0,T.KC)(3),N="string"===w.type?w.segments:void 0;h[12]!==w.fromValue||h[13]!==w.toValue||h[14]!==N||h[15]!==D||h[16]!==z||h[17]!==R?(r=()=>w.fromValue&&""===w.toValue&&N?(0,v.jsx)(E$,{$fontSize:D,$space:R,$padding:z,children:(0,v.jsx)(SC,{segment:N[0]})}):null,h[12]=w.fromValue,h[13]=w.toValue,h[14]=N,h[15]=D,h[16]=z,h[17]=R,h[18]=r):r=h[18];let O=r;h[19]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)(n3.U,{}),h[19]=a):a=h[19],h[20]!==E?(o=(0,v.jsx)(n7.Un,{on:E}),h[20]=E,h[21]=o):o=h[21],h[22]!==e.value?(l=(0,v.jsx)(ED,{value:e.value}),h[22]=e.value,h[23]=l):l=h[23];let V=e.readOnly??!1;h[24]!==V?(s=(0,v.jsx)(Ej,{readOnly:V}),h[24]=V,h[25]=s):s=h[25],h[26]===Symbol.for("react.memo_cache_sentinel")?(d=(0,v.jsx)(n7.cd,{behaviors:[Ez,EP]}),h[26]=d):d=h[26];let M=e.validationError?"invalid":void 0,L=e.displayInlineChanges?O:void 0,F=e.displayInlineChanges?k:void 0;return h[27]!==D||h[28]!==z||h[29]!==A.scheme||h[30]!==A.tone||h[31]!==R||h[32]!==M||h[33]!==L||h[34]!==F?(c=(0,v.jsx)(ET,{className:M,renderPlaceholder:L,rangeDecorations:F,$fontSize:D,$space:R,$padding:z,$scheme:A.scheme,$tone:A.tone,"data-scheme":A.scheme,"data-tone":A.tone,"data-testid":"string-input-portable-text"}),h[27]=D,h[28]=z,h[29]=A.scheme,h[30]=A.tone,h[31]=R,h[32]=M,h[33]=L,h[34]=F,h[35]=c):c=h[35],h[36]!==$||h[37]!==c||h[38]!==o||h[39]!==l||h[40]!==s?(u=(0,v.jsxs)(n1.zz,{initialConfig:$,children:[a,o,l,s,d,c]}),h[36]=$,h[37]=c,h[38]=o,h[39]=l,h[40]=s,h[41]=u):u=h[41],h[42]!==P||h[43]!==A.scheme||h[44]!==A.tone?(p=(0,v.jsx)(EE,{radius:P,$scheme:A.scheme,$tone:A.tone,"data-scheme":A.scheme,"data-tone":A.tone,"data-border":!0}),h[42]=P,h[43]=A.scheme,h[44]=A.tone,h[45]=p):p=h[45],h[46]!==u||h[47]!==p?(m=(0,v.jsxs)(EI,{children:[u,p]}),h[46]=u,h[47]=p,h[48]=m):m=h[48],m}function ED(e){let t,n,i=(0,j.c)(4),r=(0,n2.h)();return i[0]!==r||i[1]!==e.value?(t=()=>{r.send({type:"update value",value:Ew(e.value)})},n=[r,e.value],i[0]=r,i[1]=e.value,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,_.useEffect)(t,n),null}let Ez=(0,n6.Ke)({on:"clipboard.paste",actions:[e=>[(0,n6.xl)({type:"insert.text",text:e.event.originEvent.dataTransfer.getData("text")})]]}),EP=(0,n6.Ke)({on:"insert.text",actions:[({event:e})=>[(0,n6.sY)({type:"insert.text",text:e.text.replaceAll(/\n+/g," ")})]]});function ER(e){let t,n=(0,j.c)(4);if(e.displayInlineChanges){let t;return n[0]!==e?(t=(0,v.jsx)(EA,{...e}),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==e?(t=(0,v.jsx)(Sg,{...e}),n[2]=e,n[3]=t):t=n[3],t}let EN=(0,eI.I4)(I.fs).withConfig({displayName:"StyledTextArea",componentId:"sc-1l7jyxo-0"})`&[data-as='textarea']{resize:vertical;}`,EO=[],EV={enabled:!0,error:null,features:EO,isLoading:!0},EM="contentReleases",EL="studioComments",EF="singleDocRelease",EB=new Map;function EY(e){let t,n,i=(0,j.c)(8),r=el0(ob),{projectId:a}=_g();i[0]!==a||i[1]!==r?(t=function({projectId:e,versionedClient:t}){let n=EB.get(e);return n||(n=(function({versionedClient:e}){return e.observable.request({uri:"/features",tag:"features"})})({versionedClient:t}).pipe((0,e1.t)()),EB.set(e,n)),n}({projectId:a,versionedClient:r}),i[0]=a,i[1]=r,i[2]=t):t=i[2];let o=t;if(i[3]!==e||i[4]!==o){let t;i[6]!==e?(t=t=>{let n=void 0===t?[]:t;return{isLoading:!1,enabled:!!n?.includes(e),features:n,error:null}},i[6]=e,i[7]=t):t=i[7],n=o.pipe((0,eV.T)(t),(0,tr.Z)(EV),(0,eY.W)(EH)),i[3]=e,i[4]=o,i[5]=n}else n=i[5];return(0,tF.J)(n,EV)}function EH(e){return(0,eP.of)({isLoading:!1,enabled:!1,features:EO,error:e})}function EU(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(29),{value:m,onClearValue:h}=e,f=!!m?._ref,{t:g}=as();p[0]===Symbol.for("react.memo_cache_sentinel")?(t={DocumentationLink:EZ},p[0]=t):t=p[0],p[1]!==g?(n=(0,v.jsx)(aE,{t:g,i18nKey:"inputs.reference.cross-dataset.feature-disabled-description",components:t}),p[1]=g,p[2]=n):n=p[2];let y=n,C=f?4:void 0;return p[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.sAQ,{})})}),p[3]=i):i=p[3],p[4]!==g?(r=g("inputs.reference.cross-dataset.feature-unavailable-title"),p[4]=g,p[5]=r):r=p[5],p[6]!==r?(a=(0,v.jsx)(I.EY,{as:"h2",size:1,weight:"medium",children:r}),p[6]=r,p[7]=a):a=p[7],p[8]!==y||p[9]!==f||p[10]!==g?(o=f&&(0,v.jsxs)(I.BJ,{space:3,children:[(0,v.jsx)(I.EY,{as:"p",size:1,children:y}),(0,v.jsx)(I.EY,{as:"p",size:1,children:g("inputs.reference.cross-dataset.feature-disabled-actions")})]}),p[8]=y,p[9]=f,p[10]=g,p[11]=o):o=p[11],p[12]!==y||p[13]!==f?(l=!f&&(0,v.jsx)(I.EY,{as:"p",size:1,children:y}),p[12]=y,p[13]=f,p[14]=l):l=p[14],p[15]!==a||p[16]!==o||p[17]!==l?(s=(0,v.jsxs)(I.BJ,{space:3,children:[a,o,l]}),p[15]=a,p[16]=o,p[17]=l,p[18]=s):s=p[18],p[19]!==C||p[20]!==s?(d=(0,v.jsxs)(I.so,{gap:4,marginBottom:C,children:[i,s]}),p[19]=C,p[20]=s,p[21]=d):d=p[21],p[22]!==f||p[23]!==h||p[24]!==g?(c=h&&f&&(0,v.jsx)(tL.$n,{icon:eT.NAP,mode:"ghost",onClick:h,text:g("inputs.reference.action.clear"),width:"fill"}),p[22]=f,p[23]=h,p[24]=g,p[25]=c):c=p[25],p[26]!==d||p[27]!==c?(u=(0,v.jsxs)(I.Zp,{tone:"caution",padding:4,border:!0,radius:2,"data-testid":"alert-cross-dataset-reference-feature-disabled",children:[d,c]}),p[26]=d,p[27]=c,p[28]=u):u=p[28],u}function EZ(e){let{children:t}=e;return(0,v.jsx)("a",{href:"https://www.sanity.io/docs/cross-dataset-references",target:"_blank",rel:"noreferrer",children:t})}let Eq=(0,eI.I4)(I.so).withConfig({displayName:"StyledPreviewFlex",componentId:"sc-1vqxa6c-0"})`min-height:36px;`;function EW(e){let t,n,i,r,a,o,l,s=(0,j.c)(37),{refType:d,showStudioUrlIcon:c,hasStudioUrl:u,showTypeLabel:p,availability:m,preview:h,id:f,dataset:g,projectId:y}=e,C=m?.reason==="NOT_FOUND",x=m?.reason==="PERMISSION_DENIED",b=h.published?.media,{t:w}=as();e:{let e;if(b){let e,n,i="u">typeof b?.asset&&(0,tQ.LG)(b);s[0]!==b?(e=(0,_.isValidElement)(b),s[0]=b,s[1]=e):e=s[1];let r=e;if(!i&&!r){t=null;break e}s[2]!==g||s[3]!==r||s[4]!==b||s[5]!==y||s[6]!==w?(n=function(e){let{dimensions:t}=e;return r?b:(0,v.jsx)("img",{src:(0,t1.OX)({dataset:g,projectId:y}).image(b).withOptions(t).url(),alt:w("inputs.reference.image-preview-alt-text"),referrerPolicy:"str
1009ict-origin-when-cross-origin"})},s[2]=g,s[3]=r,s[4]=b,s[5]=y,s[6]=w,s[7]=n):n=s[7],t=n;break e}if(!d?.icon){t=null;break e}let n=d.icon;s[8]!==n?(e=(0,v.jsx)(n,{}),s[8]=n,s[9]=e):e=s[9],t=e}let k=t;return s[10]!==m?.available||s[11]!==k||s[12]!==h.published?.subtitle||s[13]!==h.published?.title||s[14]!==w?(n=m?.available?(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(esU,{title:h.published?.title,subtitle:h.published?.subtitle,media:k||!1})}):(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.so,{align:"center",children:(0,v.jsx)(I.az,{flex:1,paddingY:2,children:(0,v.jsx)(I.EY,{muted:!0,children:w("inputs.reference.error.document-unavailable-title")})})})}),s[10]=m?.available,s[11]=k,s[12]=h.published?.subtitle,s[13]=h.published?.title,s[14]=w,s[15]=n):n=s[15],s[16]!==d||s[17]!==p?(i=d&&p&&(0,v.jsx)(I.Ex,{mode:"outline",children:d.title||d.type}),s[16]=d,s[17]=p,s[18]=i):i=s[18],s[19]!==f||s[20]!==x||s[21]!==C||s[22]!==w?(r=(x||C)&&(0,v.jsx)(I.az,{children:(0,v.jsx)(tL.m_,{portal:!0,content:w(C?"inputs.reference.referenced-document-does-not-exist":"inputs.reference.referenced-document-insufficient-permissions",{documentId:f}),children:(0,v.jsx)(NY,{tone:"default",children:x?(0,v.jsx)(eT.VY$,{}):(0,v.jsx)(eT.V1u,{})})})}),s[19]=f,s[20]=x,s[21]=C,s[22]=w,s[23]=r):r=s[23],s[24]!==u||s[25]!==x||s[26]!==C||s[27]!==c||s[28]!==w?(a=!(C||x)&&c&&(0,v.jsx)(I.az,{children:(0,v.jsx)(tL.m_,{portal:!0,content:w(u?"inputs.reference.document-opens-in-new-tab":"input.reference.document-cannot-be-opened.failed-to-resolve-url"),children:(0,v.jsx)(NY,{size:1,tone:"default",muted:!u,children:(0,v.jsx)(eT.ZPM,{})})})}),s[24]=u,s[25]=x,s[26]=C,s[27]=c,s[28]=w,s[29]=a):a=s[29],s[30]!==i||s[31]!==r||s[32]!==a?(o=(0,v.jsx)(I.az,{paddingLeft:3,children:(0,v.jsxs)(I.cV,{space:4,paddingRight:1,children:[i,r,a]})}),s[30]=i,s[31]=r,s[32]=a,s[33]=o):o=s[33],s[34]!==n||s[35]!==o?(l=(0,v.jsxs)(Eq,{align:"center",justify:"center",flex:1,"data-testid":"preview",children:[n,o]}),s[34]=n,s[35]=o,s[36]=l):l=s[36],l}let EJ=()=>{},EK={isLoading:!0,result:void 0,error:void 0,retry:EJ},EG={isLoading:!1,result:void 0,error:void 0,retry:EJ};function EX(e,t){let n,i,r,a=(0,j.c)(8),[o,l]=(0,_.useState)(0);a[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{l(EQ)},a[0]=n):n=a[0];let s=n;a[1]!==e._id||a[2]!==e._type?(i={_id:e._id,_type:e._type},a[1]=e._id,a[2]=e._type,a[3]=i):i=a[3];let d=i;return a[4]!==d||a[5]!==t||a[6]!==o?(r=d._id?t(d).pipe((0,eV.T)(e=>({isLoading:!1,result:e,error:void 0,retry:s,retryAttempt:o})),(0,tr.Z)(EK),(0,eY.W)(e=>(console.error(e),(0,eP.of)({isLoading:!1,result:void 0,error:e,retry:s,retryAttempt:o})))):(0,eP.of)(EG),a[4]=d,a[5]=t,a[6]=o,a[7]=r):r=a[7],(0,tF.J)(r,EK)}function EQ(e){return e+1}function E1(){let e,t=(0,j.c)(2),n=el0(ob);return t[0]!==n?(e=n.config(),t[0]=n,t[1]=e):e=t[1],e.projectId}function E2(e){let t,n,i=(0,j.c)(29),{isLoading:r,result:a,error:o}=EX(e.document,e.getReferenceInfo),{t:l}=as(),s=E1();if(r){let e,t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.r5,{style:{maxWidth:320},radius:1,animated:!0}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsxs)(I.BJ,{space:2,padding:1,children:[e,(0,v.jsx)(T.r5,{style:{maxWidth:200},radius:1,size:1,animated:!0})]}),i[1]=t):t=i[1],t}if(o){let e,t,n;return i[2]!==l?(e=l("inputs.reference.error.failed-to-load-document-title"),i[2]=l,i[3]=e):e=i[3],i[4]!==o.message?(t=(0,v.jsx)(I.EY,{muted:!0,size:1,children:o.message}),i[4]=o.message,i[5]=t):t=i[5],i[6]!==e||i[7]!==t?(n=(0,v.jsx)(I.BJ,{space:2,padding:1,children:(0,v.jsx)(g$,{title:e,children:t})}),i[6]=e,i[7]=t,i[8]=n):n=i[8],n}if(!a)return null;if(a.availability?.reason==="PERMISSION_DENIED"){let e,t;return i[9]!==l?(e=l("inputs.reference.error.missing-read-permissions-description"),i[9]=l,i[10]=e):e=i[10],i[11]!==e?(t=(0,v.jsx)(I.BJ,{space:2,padding:1,children:e}),i[11]=e,i[12]=t):t=i[12],t}if(i[13]!==e.referenceType.to||i[14]!==a.type){let n;i[16]!==a.type?(n=e=>e.type===a.type,i[16]=a.type,i[17]=n):n=i[17],t=e.referenceType.to.find(n),i[13]=e.referenceType.to,i[14]=a.type,i[15]=t}else t=i[15];let d=t;if(!d){let e,t;return i[18]!==a.type||i[19]!==l?(e=l("inputs.reference.error.invali
1009d-search-result-type-title",{returnedType:a.type}),i[18]=a.type,i[19]=l,i[20]=e):e=i[20],i[21]!==e?(t=(0,v.jsx)(I.BJ,{space:2,padding:1,children:e}),i[21]=e,i[22]=t):t=i[22],t}return i[23]!==s||i[24]!==e.referenceType.dataset||i[25]!==e.referenceType.to.length||i[26]!==d||i[27]!==a?(n=a&&d&&(0,v.jsx)(EW,{id:a.id,availability:a.availability,preview:a.preview,refType:d,dataset:e.referenceType.dataset,projectId:s,showTypeLabel:e.referenceType.to.length>1}),i[23]=s,i[24]=e.referenceType.dataset,i[25]=e.referenceType.to.length,i[26]=d,i[27]=a,i[28]=n):n=i[28],n}function E5(e){let t,n,i=(0,j.c)(32),{value:r,type:a,showStudioUrlIcon:o,hasStudioUrl:l,referenceInfo:s}=e,{t:d}=as(),c=E1();if(s.isLoading||s.error){let e,t,n,r,a;i[0]===Symbol.for("react.memo_cache_sentinel")?(e={maxWidth:320},i[0]=e):e=i[0];let o=!s.error;i[1]!==o?(t=(0,v.jsx)(T.r5,{style:e,radius:1,animated:o}),i[1]=o,i[2]=t):t=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(n={maxWidth:200},i[3]=n):n=i[3];let l=!s.error;return i[4]!==l?(r=(0,v.jsx)(T.r5,{style:n,radius:1,size:1,animated:l}),i[4]=l,i[5]=r):r=i[5],i[6]!==t||i[7]!==r?(a=(0,v.jsxs)(I.BJ,{space:2,padding:1,children:[t,r]}),i[6]=t,i[7]=r,i[8]=a):a=i[8],a}let u=a.to.length>1,p=s.result?.type;if(i[9]!==p||i[10]!==a.to){let e;i[12]!==p?(e=e=>e.type===p,i[12]=p,i[13]=e):e=i[13],t=a.to.find(e),i[9]=p,i[10]=a.to,i[11]=t}else t=i[11];let m=t;if(s.result.availability?.available&&!m){let e,t,n,a=p||"unknown";return i[14]!==a?(e={typeName:a},i[14]=a,i[15]=e):e=i[15],i[16]!==r?(t={JsonValue:()=>(0,v.jsx)("pre",{children:JSON.stringify(r,null,2)})},i[16]=r,i[17]=t):t=i[17],i[18]!==d||i[19]!==e||i[20]!==t?(n=(0,v.jsx)(I.BJ,{space:2,padding:2,children:(0,v.jsx)(I.EY,{as:"p",children:(0,v.jsx)(aE,{t:d,i18nKey:"inputs.reference.cross-dataset.invalid-type",values:e,components:t})})}),i[18]=d,i[19]=e,i[20]=t,i[21]=n):n=i[21],n}return i[22]!==l||i[23]!==c||i[24]!==m||i[25]!==s.result.availability||i[26]!==s.result.preview||i[27]!==o||i[28]!==u||i[29]!==a.dataset||i[30]!==r._ref?(n=(0,v.jsx)(EW,{availability:s.result.availability,hasStudioUrl:l,showStudioUrlIcon:o,preview:s.result.preview,refType:m,projectId:c,dataset:a.dataset,id:r._ref,showTypeLabel:u}),i[22]=l,i[23]=c,i[24]=m,i[25]=s.result.availability,i[26]=s.result.preview,i[27]=o,i[28]=u,i[29]=a.dataset,i[30]=r._ref,i[31]=n):n=i[31],n}let E0=(0,eI.I4)(tL.AM).withConfig({displayName:"StyledPopover",componentId:"sc-1aid2lb-0"})`& > div{overflow:auto;-webkit-overflow-scrolling:touch;}`,E7=(0,eI.I4)(I.EY).withConfig({displayName:"StyledText",componentId:"sc-1aid2lb-1"})`word-break:break-word;`,E3=["top-start","bottom-start"],E8=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d=(0,j.c)(17);d[0]!==e?({searchString:o,loading:n,portalRef:i,referenceElement:r,...a}=e,d[0]=e,d[1]=n,d[2]=i,d[3]=r,d[4]=a,d[5]=o):(n=d[1],i=d[2],r=d[3],a=d[4],o=d[5]);let{t:c}=as(),u=e.options&&e.options.length>0;d[6]!==u||d[7]!==n||d[8]!==i||d[9]!==r||d[10]!==o||d[11]!==c?(l=(e,t)=>{let{content:a,hidden:l,inputElement:s,onMouseEnter:d,onMouseLeave:p}=e;return(0,v.jsx)(E0,{"data-testid":"autocomplete-popover",placement:"bottom-start",fallbackPlacements:E3,arrow:!1,constrainSize:!0,onMouseEnter:d,onMouseLeave:p,content:(0,v.jsx)("div",{ref:t,children:u?a:(0,v.jsx)(I.az,{padding:4,children:(0,v.jsx)(I.so,{align:"center",height:"fill",justify:"center",children:(0,v.jsx)(E7,{align:"center",muted:!0,children:(0,v.jsx)(aE,{t:c,i18nKey:"inputs.reference.no-results-for-query",values:{searchTerm:o||""}})})})})}),open:!n&&!l,ref:i,portal:!0,referenceElement:r||s,matchReferenceWidth:!0})},d[6]=u,d[7]=n,d[8]=i,d[9]=r,d[10]=o,d[11]=c,d[12]=l):l=d[12];let p=l;return d[13]!==t||d[14]!==p||d[15]!==a?(s=(0,v.jsx)(T.jT,{...a,ref:t,renderPopover:p}),d[13]=t,d[14]=p,d[15]=a,d[16]=s):s=d[16],s}),E4={hits:[],isLoading:!1},E6=()=>!0,E9=["_ref"];function $e(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$=(0,j.c)(94),{changed:A,focused:D,focusPath:z,getReferenceInfo:P,onChange:R,onPathFocus:N,onSearch:O,path:V,readOnly:M,schemaType:L,validation:F,value:B,elementProps:Y}=e;$[0]!==Y?({ref:n,...t}=Y,$[0]=Y,$[1]=t,$[2]=n):(t=$[1],n=$[2]);let{t:H}=as(),U=E1(),[Z,q]=(0,_.useState)(E4);$[3]!==R||$[4]!==N||$[5]!==U||$[6]!==L.dataset||$[7]!==L.name||$[8]!==L.weak||$[9]!==Z.hits||$[10]!==B?._key?(i=e=>{if(!e){R(hW()),N([]);return}if(!Z.hits.find(t=>
1009t.id===e))throw Error("Selected an item that wasnt part of the result set");R(hq({_type:L.name,_ref:(0,tG.IM)(e),_projectId:U,_dataset:L.dataset,_weak:L.weak,_key:B?._key})),N([])},$[3]=R,$[4]=N,$[5]=U,$[6]=L.dataset,$[7]=L.name,$[8]=L.weak,$[9]=Z.hits,$[10]=B?._key,$[11]=i):i=$[11];let W=i;$[12]!==R?(r=()=>{R(hW())},$[12]=R,$[13]=r):r=$[13];let J=r;$[14]!==N?(a=e=>{"Escape"===e.key&&N?.([])},$[14]=N,$[15]=a):a=$[15];let K=a;$[16]!==P||$[17]!==L?(o=e=>P(e,L),$[16]=P,$[17]=L,$[18]=o):o=$[18];let G=o,X=B?._ref;$[19]!==X?(l={_id:X},$[19]=X,$[20]=l):l=$[20];let Q=EX(l,G),ee=EY("crossDatasetReferences"),[et,en]=(0,_.useState)(null),ei=1===z.length&&"_ref"===z[0],er=(0,_.useRef)(null);$[21]===Symbol.for("react.memo_cache_sentinel")?(s=()=>er.current,$[21]=s):s=$[21],(0,_.useImperativeHandle)(n,s);let ea=B?._ref;$[22]!==ei||$[23]!==ea?(d={hasFocusAt:ei,ref:ea},$[22]=ei,$[23]=ea,$[24]=d):d=$[24],$[25]===Symbol.for("react.memo_cache_sentinel")?(c=(e,t)=>{let n=e?.ref!==t.ref;(e?.hasFocusAt!==t.hasFocusAt||n)&&t.hasFocusAt&&er.current?.focus()},$[25]=c):c=$[25],fS(d,c);let eo=B?._weak?"weak":"strong",el=!0===L.weak?"weak":"strong",es=!!B?._ref;$[26]!==R||$[27]!==L.weak?(u=()=>{R(!0===L.weak?hq(!0,["_weak"]):hW(["_weak"]))},$[26]=R,$[27]=L.weak,$[28]=u):u=$[28];let ed=u,{push:ec}=(0,T.dj)();$[29]!==F?(p=F.filter($i),$[29]=F,$[30]=p):p=$[30];let eu=p;$[31]!==N?(m=e=>{e.currentTarget===er.current&&N?.([])},$[31]=N,$[32]=m):m=$[32];let ep=m;$[33]!==N?(h=e=>{e.currentTarget===er.current&&N?.(E9)},$[33]=N,$[34]=h):h=$[34];let em=h;$[35]!==N?(f=()=>{N?.(E9)},$[35]=N,$[36]=f):f=$[36];let eh=f,ef=(0,_.useId)();$[37]!==ef||$[38]!==O||$[39]!==ec?(g=e=>e.pipe((0,to.p)(r$),(0,eQ.F)(),(0,eM.n)(e=>(0,eR.x)((0,eP.of)({isLoading:!0}),O(e).pipe((0,eV.T)(t=>({hits:t,searchString:e,isLoading:!1})),(0,eY.W)(e=>(ec({title:"Reference search failed",description:e.message,status:"error",id:`reference-search-fail-${ef}`}),console.error(e),(0,eP.of)({hits:[]})))))),(0,ts.S)($n,E4),(0,e5.M)(q)),$[37]=ef,$[38]=O,$[39]=ec,$[40]=g):g=$[40];let eg=(0,tF.N)(g);$[41]!==eg?(y=()=>{eg("")},$[41]=eg,$[42]=y):y=$[42];let ey=y,eC=!Q.isLoading&&es&&eo!==el;$[43]!==Q.result?.type||$[44]!==L||$[45]!==B?._ref?(C=B?._ref&&L.studioUrl?.({id:B?._ref,type:Q?.result?.type})||null,$[43]=Q.result?.type,$[44]=L,$[45]=B?._ref,$[46]=C):C=$[46];let ex=C;$[47]!==G||$[48]!==L?(x=e=>(0,v.jsx)(esA,{forwardedAs:"button",type:"button",radius:2,tone:"inherit",children:(0,v.jsx)(E2,{referenceType:L,document:e.hit.published,getReferenceInfo:G})}),$[47]=G,$[48]=L,$[49]=x):x=$[49];let eb=x,ev=ei||!B?._ref,ej=(0,_.useRef)(null),ew=(0,_.useRef)(null);return $[50]!==ei||$[51]!==N?(b=ei&&(()=>N([])),$[50]=ei,$[51]=N,$[52]=b):b=$[52],$[53]===Symbol.for("react.memo_cache_sentinel")?(w=()=>[ej.current,ew.current],$[53]=w):w=$[53],(0,I.PR)(b,w),$[54]!==ee.enabled||$[55]!==ee.isLoading||$[56]!==J||$[57]!==B?(k=!ee.isLoading&&!ee.enabled&&(0,v.jsx)(EU,{value:B,onClearValue:J}),$[54]=ee.enabled,$[55]=ee.isLoading,$[56]=J,$[57]=B,$[58]=k):k=$[58],$[59]!==eo||$[60]!==et||$[61]!==A||$[62]!==t||$[63]!==eu||$[64]!==ee.enabled||$[65]!==ee.isLoading||$[66]!==D||$[67]!==em||$[68]!==K||$[69]!==ey||$[70]!==W||$[71]!==J||$[72]!==ed||$[73]!==ep||$[74]!==eg||$[75]!==eh||$[76]!==ef||$[77]!==ev||$[78]!==Q||$[79]!==V||$[8
10090]!==M||$[81]!==eb||$[82]!==L||$[83]!==Z.hits||$[84]!==Z.isLoading||$[85]!==Z.searchString||$[86]!==eC||$[87]!==ex||$[88]!==H||$[89]!==B?(S=(ee.isLoading||ee.enabled)&&(0,v.jsx)(I.BJ,{space:1,children:ev?(0,v.jsx)(I.BJ,{space:2,ref:ej,children:(0,v.jsx)(S1,{path:V,isChanged:A,hasFocus:!!D,children:(0,v.jsx)("div",{ref:en,children:(0,v.jsx)(E8,{...t,"data-testid":"autocomplete",loading:Z.isLoading,referenceElement:et,portalRef:ew,id:ef||"",options:Z.hits.map($t),onFocus:em,radius:2,placeholder:H("inputs.reference.search-placeholder"),onKeyDown:K,readOnly:M,disabled:Q.isLoading,onQueryChange:eg,searchString:Z.searchString,onChange:W,filterOption:E6,renderOption:eb,openButton:{onClick:ey},ref:er})})})}):(0,v.jsx)(S1,{path:V,isChanged:A,hasFocus:!!D,children:(0,v.jsxs)(I.Zp,{padding:0,border:!0,flex:1,radius:2,tone:M?"transparent":Q.error||eu.length>0?"critical":"default",children:[(0,v.jsxs)(I.so,{align:"center",padding:1,children:[ex?(0,v.jsx)(es$,{as:"a",target:"_blank",rel:"noopener noreferrer",href:ex,"data-as":"a",flex:1,paddingRight:3,radius:2,tone:"inherit",__unstable_focusRing:!0,tabIndex:0,onFocus:ep,onBlur:t.onBlur,ref:er,children:(0,v.jsx)(E5,{value:B,referenceInfo:Q,showStudioUrlIcon:!0,hasStudioUrl:!!ex,type:L})}):(0,v.jsx)(es$,{flex:1,paddingRight:3,radius:2,tone:"inherit",__unstable_focusRing:!0,tabIndex:0,onFocus:ep,onBlur:t.onBlur,ref:er,children:(0,v.jsx)(E5,{value:B,referenceInfo:Q,showStudioUrlIcon:!0,type:L})}),(0,v.jsx)(I.cV,{paddingX:1,children:(0,v.jsx)(tL.IU,{button:(0,v.jsx)(rl,{"data-testid":"menu-button"}),id:`${ef}-menuButton`,menu:(0,v.jsx)(I.W1,{children:!M&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(tL.Dr,{text:H("inputs.reference.action.clear"),tone:"critical",icon:eT.NAP,"data-testid":"menu-item-clear",onClick:J}),(0,v.jsx)(tL.Dr,{text:H("inputs.reference.action.replace"),icon:eT.Fjq,"data-testid":"menu-item-replace",onClick:eh})]})}),placement:"right",popover:{portal:!0,tone:"default"}})})]}),eC&&(0,v.jsx)(yg,{actualStrength:eo,handleFixStrengthMismatch:ed}),Q.error&&(0,v.jsx)(yf,{errorMessage:Q.error.message,onHandleRetry:Q.retry})]})})}),$[59]=eo,$[60]=et,$[61]=A,$[62]=t,$[63]=eu,$[64]=ee.enabled,$[65]=ee.isLoading,$[66]=D,$[67]=em,$[68]=K,$[69]=ey,$[70]=W,$[71]=J,$[72]=ed,$[73]=ep,$[74]=eg,$[75]=eh,$[76]=ef,$[77]=ev,$[78]=Q,$[79]=V,$[8
10090]=M,$[81]=eb,$[82]=L,$[83]=Z.hits,$[84]=Z.isLoading,$[85]=Z.searchString,$[86]=eC,$[87]=ex,$[88]=H,$[89]=B,$[90]=S):S=$[90],$[91]!==k||$[92]!==S?(E=(0,v.jsxs)(v.Fragment,{children:[k,S]}),$[91]=k,$[92]=S,$[93]=E):E=$[93],E}function $t(e){return{value:e.id,hit:e}}function $n(e,t){return{...e,...t}}function $i(e){return"error"===e.level}let $r={available:!0,reason:"READABLE"},$a={available:!1,reason:"PERMISSION_DENIED"},$o={available:!1,reason:"NOT_FOUND"};async function $l(e,t,n,i){if(!e)return{};if("function"==typeof e.filter){let r=n.slice(0,-1),a=(0,w.Jt)(t,r);return await e.filter({document:t,parentPath:r,parent:a,perspective:[],getClient:i})}return{filter:e.filter,params:"filterParams"in e?e.filterParams:void 0}}let $s=(0,eI.I4)(I.so).withConfig({displayName:"StyledPreviewFlex",componentId:"sc-qx2lr5-0"})`min-height:36px;`;function $d(e){let t,n,i,r,a,o,l,s=(0,j.c)(37),{refType:d,showStudioUrlIcon:c,hasStudioUrl:u,showTypeLabel:p,availability:m,preview:h,id:f,resourceType:g,resourceId:y}=e,C=m?.reason==="NOT_FOUND",x=m?.reason==="PERMISSION_DENIED",b=h.published?.media,{t:w}=as();e:{let e;if(b){let e,n,i="u">typeof b?.asset&&(0,tQ.LG)(b);s[0]!==b?(e=(0,_.isValidElement)(b),s[0]=b,s[1]=e):e=s[1];let r=e;if(!i&&!r){t=null;break e}s[2]!==r||s[3]!==b||s[4]!==y||s[5]!==g||s[6]!==w?(n=function(e){let{dimensions:t}=e,n=function(e,t){if("dataset"!==e)return null;let[n,i]=t.split(".",2);if(!n||!i)throw Error(`Invalid resource ID for resource "dataset": ${t}`);return{projectId:n,dataset:i}}(g,y);return n?r?b:(0,v.jsx)("img",{src:(0,t1.OX)(n).image(b).withOptions(t).url(),alt:w("inputs.reference.image-preview-alt-text"),referrerPolicy:"strict-origin-when-cross-origin"}):null},s[2]=r,s[3]=b,s[4]=y,s[5]=g,s[6]=w,s[7]=n):n=s[7],t=n;break e}if(!d?.icon){t=null;break e}let n=d.icon;s[8]!==n?(e=(0,v.jsx)(n,{}),s[8]=n,s[9]=e):e=s[9],t=e}let k=t;return s[10]!==m?.available||s[11]!==k||s[12]!==h.published?.subtitle||s[13]!==h.published?.title||s[14]!==w?(n=m?.available?(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(esU,{title:h.published?.title,subtitle:h.published?.subtitle,media:k||!1})}):(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.so,{align:"center",children:(0,v.jsx)(I.az,{flex:1,paddingY:2,children:(0,v.jsx)(I.EY,{muted:!0,children:w("inputs.reference.error.document-unavailable-title")})})})}),s[10]=m?.available,s[11]=k,s[12]=h.published?.subtitle,s[13]=h.published?.title,s[14]=w,s[15]=n):n=s[15],s[16]!==d||s[17]!==p?(i=d&&p&&(0,v.jsx)(I.Ex,{mode:"outline",children:d.title||d.type}),s[16]=d,s[17]=p,s[18]=i):i=s[18],s[19]!==f||s[20]!==x||s[21]!==C||s[22]!==w?(r=(x||C)&&(0,v.jsx)(I.az,{children:(0,v.jsx)(tL.m_,{portal:!0,content:w(C?"inputs.reference.referenced-document-does-not-exist":"inputs.reference.referenced-document-insufficient-permissions",{documentId:f}),children:(0,v.jsx)(NY,{tone:"default",children:x?(0,v.jsx)(eT.VY$,{}):(0,v.jsx)(eT.V1u,{})})})}),s[19]=f,s[20]=x,s[21]=C,s[22]=w,s[23]=r):r=s[23],s[24]!==u||s[25]!==x||s[26]!==C||s[27]!==c||s[28]!==w?(a=!(C||x)&&c&&(0,v.jsx)(I.az,{children:(0,v.jsx)(tL.m_,{portal:!0,content:w(u?"inputs.reference.document-opens-in-new-tab":"input.reference.document-cannot-be-opened.failed-to-resolve-url"),children:(0,v.jsx)(NY,{size:1,tone:"default",muted:!u,children:(0,v.jsx)(eT.ZPM,{})})})}),s[24]=u,s[25]=x,s[26]=C,s[27]=c,s[28]=w,s[29]=a):a=s[29],s[30]!==i||s[31]!==r||s[32]!==a?(o=(0,v.jsx)(I.az,{paddingLeft:3,children:(0,v.jsxs)(I.cV,{space:4,children:[i,r,a]})}),s[30]=i,s[31]=r,s[32]=a,s[33]=o):o=s[33],s[34]!==n||s[35]!==o?(l=(0,v.jsxs)($s,{align:"center",justify:"center",flex:1,"data-testid":"preview",children:[n,o]}),s[34]=n,s[35]=o,s[36]=l):l=s[36],l}let $c=()=>{},$u={isLoading:!0,result:void 0,error:void 0,retry:$c},$p={isLoading:!1,result:void 0,error:void 0,retry:$c};function $m(e,t){let n,i,r=(0,j.c)(10),[a,o]=(0,_.useState)(0);r[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{o($h)},r[0]=n):n=r[0];let l=n;e:{let n;if(!e){let e;r[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)($p),r[1]=e):e=r[1],i=e;break e}if(r[2]!==e||r[3]!==t||r[4]!==a){let i,o;r[6]!==a?(i=e=>({isLoading:!1,result:e,error:void 0,retry:l,retryAttempt:a}),r[6]=a,r[7]=i):i=r[7],r[8]!==a?(o=e=>(console.error(e),(0,eP.of)({isLoading:!1,result:void 0,error:e,retry:l,retryAttempt:a}
1009)),r[8]=a,r[9]=o):o=r[9],n=t(e).pipe((0,eV.T)(i),(0,tr.Z)($u),(0,eY.W)(o)),r[2]=e,r[3]=t,r[4]=a,r[5]=n}else n=r[5];i=n}return(0,tF.J)(i,$u)}function $h(e){return e+1}function $f(e){let t,n,i=(0,j.c)(29),{isLoading:r,result:a,error:o}=$m(e.document,e.getReferenceInfo),{t:l}=as();if(r){let e,t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.r5,{style:{maxWidth:320},radius:1,animated:!0}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsxs)(I.BJ,{space:2,padding:1,children:[e,(0,v.jsx)(T.r5,{style:{maxWidth:200},radius:1,size:1,animated:!0})]}),i[1]=t):t=i[1],t}if(o){let e,t,n;return i[2]!==l?(e=l("inputs.reference.error.failed-to-load-document-title"),i[2]=l,i[3]=e):e=i[3],i[4]!==o.message?(t=(0,v.jsx)(I.EY,{muted:!0,size:1,children:o.message}),i[4]=o.message,i[5]=t):t=i[5],i[6]!==e||i[7]!==t?(n=(0,v.jsx)(I.BJ,{space:2,padding:1,children:(0,v.jsx)(g$,{title:e,children:t})}),i[6]=e,i[7]=t,i[8]=n):n=i[8],n}if(!a)return null;if(a.availability?.reason==="PERMISSION_DENIED"){let e,t;return i[9]!==l?(e=l("inputs.reference.error.missing-read-permissions-description"),i[9]=l,i[10]=e):e=i[10],i[11]!==e?(t=(0,v.jsx)(I.BJ,{space:2,padding:1,children:e}),i[11]=e,i[12]=t):t=i[12],t}if(i[13]!==e.referenceType.to||i[14]!==a.type){let n;i[16]!==a.type?(n=e=>e.type===a.type,i[16]=a.type,i[17]=n):n=i[17],t=e.referenceType.to.find(n),i[13]=e.referenceType.to,i[14]=a.type,i[15]=t}else t=i[15];let s=t;if(!s){let e,t;return i[18]!==a.type||i[19]!==l?(e=l("inputs.reference.error.invalid-search-result-type-title",{returnedType:a.type}),i[18]=a.type,i[19]=l,i[20]=e):e=i[20],i[21]!==e?(t=(0,v.jsx)(I.BJ,{space:2,padding:1,children:e}),i[21]=e,i[22]=t):t=i[22],t}return i[23]!==e.referenceType.resourceId||i[24]!==e.referenceType.resourceType||i[25]!==e.referenceType.to.length||i[26]!==s||i[27]!==a?(n=a&&s&&(0,v.jsx)($d,{id:a.id,availability:a.availability,preview:a.preview,refType:s,resourceType:e.referenceType.resourceType,resourceId:e.referenceType.resourceId,showTypeLabel:e.referenceType.to.length>1}),i[23]=e.referenceType.resourceId,i[24]=e.referenceType.resourceType,i[25]=e.referenceType.to.length,i[26]=s,i[27]=a,i[28]=n):n=i[28],n}function $g(e){let t,n,i=(0,j.c)(32),{value:r,type:a,showStudioUrlIcon:o,hasStudioUrl:l,referenceInfo:s}=e,{t:d}=as();if(s.isLoading||s.error){let e,t,n,r,a;i[0]===Symbol.for("react.memo_cache_sentinel")?(e={maxWidth:320},i[0]=e):e=i[0];let o=!s.error;i[1]!==o?(t=(0,v.jsx)(T.r5,{style:e,radius:1,animated:o}),i[1]=o,i[2]=t):t=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(n={maxWidth:200},i[3]=n):n=i[3];let l=!s.error;return i[4]!==l?(r=(0,v.jsx)(T.r5,{style:n,radius:1,size:1,animated:l}),i[4]=l,i[5]=r):r=i[5],i[6]!==t||i[7]!==r?(a=(0,v.jsxs)(I.BJ,{space:2,padding:1,children:[t,r]}),i[6]=t,i[7]=r,i[8]=a):a=i[8],a}let c=a.to.length>1,u=s.result?.type;if(i[9]!==u||i[10]!==a.to){let e;i[12]!==u?(e=e=>e.type===u,i[12]=u,i[13]=e):e=i[13],t=a.to.find(e),i[9]=u,i[10]=a.to,i[11]=t}else t=i[11];let p=t;if(s.result.availability?.available&&!p){let e,t,n,a=u||"unknown";return i[14]!==a?(e={typeName:a},i[14]=a,i[15]=e):e=i[15],i[16]!==r?(t={JsonValue:()=>(0,v.jsx)("pre",{children:JSON.stringify(r,null,2)})},i[16]=r,i[17]=t):t=i[17],i[18]!==d||i[19]!==e||i[20]!==t?(n=(0,v.jsx)(I.BJ,{space:2,padding:2,children:(0,v.jsx)(I.EY,{as:"p",children:(0,v.jsx)(aE,{t:d,i18nKey:"inputs.reference.global.invalid-type",values:e,components:t})})}),i[18]=d,i[19]=e,i[20]=t,i[21]=n):n=i[21],n}return i[22]!==l||i[23]!==p||i[24]!==s.result.availability||i[25]!==s.result.preview||i[26]!==o||i[27]!==c||i[28]!==a.resourceId||i[29]!==a.resourceType||i[30]!==r._ref?(n=(0,v.jsx)($d,{availability:s.result.availability,hasStudioUrl:l,showStudioUrlIcon:o,preview:s.result.preview,refType:p,resourceType:a.resourceType,resourceId:a.resourceId,id:r._ref,showTypeLabel:c}),i[22]=l,i[23]=p,i[24]=s.result.availability,i[25]=s.result.preview,i[26]=o,i[27]=c,i[28]=a.resourceId,i[29]=a.resourceType,i[30]=r._ref,i[31]=n):n=i[31],n}let $y=(0,eI.I4)(tL.AM).withConfig({displayName:"StyledPopover",componentId:"sc-1u5fo8k-0"})`& > div{overflow:auto;-webkit-overflow-scrolling:touch;}`,$C=(0,eI.I4)(I.EY).withConfig({displayName:"StyledText",componentId:"sc-1u5fo8k-1"})`word-break:break-word;`,$x=["top-start","bottom-start"],$b=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d=(0,j.c)(17);d[0]!==e?({searchString:o,loading:n,portalRef:i,referenceElement:r,...a}=e,d[0]=e,d[1]=n,d[2]=i,d[3]=r,d[4]=a,d[5]=o):(n=d[1],i=d[2],r=d[3],a=d[4],o=d[5]);let{t:c}=as(),u=e.options&&e.options.length>0;d[6]!==u||d[7]!==n||d[8]!==i||d[9]!==r||d[10]!==o||d[11]!==c?(l=(e,t)=>{let{content:a,hidden:l,inputElement:s,onMouseEnter:d,onMouseLeave:p}=e;return(0,v.jsx)($y,{"data-testid":"autocomplete-popover",placement:"bottom-start",fallbackPlacements:$x,arrow:!1,constrainSize:!0,onMouseEnter:d,onMouseLeave:p,content:(0,v.jsx)("div",{ref:t,children:u?a:(0,v.jsx)(I.az,{padding:4,children:(0,v.jsx)(I.so,{align:"center",height:"fill",justify:"center",children:(0,v.jsx)($C,{align:"center",muted:!0,children:(0,v.jsx)(aE,{t:c,i18nKey:"inputs.reference.n
1009o-results-for-query",values:{searchTerm:o||""}})})})})}),open:!n&&!l,ref:i,portal:!0,referenceElement:r||s,matchReferenceWidth:!0})},d[6]=u,d[7]=n,d[8]=i,d[9]=r,d[10]=o,d[11]=c,d[12]=l):l=d[12];let p=l;return d[13]!==t||d[14]!==p||d[15]!==a?(s=(0,v.jsx)(T.jT,{...a,ref:t,renderPopover:p}),d[13]=t,d[14]=p,d[15]=a,d[16]=s):s=d[16],s}),$v={hits:[],isLoading:!1},$j=()=>!0,$w=["_ref"];function $_(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(86),{changed:E,focused:$,focusPath:A,getReferenceInfo:D,onChange:z,onPathFocus:P,onSearch:R,path:N,readOnly:O,schemaType:V,validation:M,value:L,elementProps:F}=e;S[0]!==F?({ref:n,...t}=F,S[0]=F,S[1]=t,S[2]=n):(t=S[1],n=S[2]);let{t:B}=as(),[Y,H]=(0,_.useState)($v);S[3]!==z||S[4]!==P||S[5]!==V.name||S[6]!==V.resourceId||S[7]!==V.resourceType||S[8]!==V.weak||S[9]!==Y.hits||S[10]!==L?._key?(i=e=>{if(!e){z(hW()),P([]);return}if(!Y.hits.find(t=>t.id===e))throw Error("Selected an item that wasnt part of the result set");z(hq({_type:V.name,_ref:`${V.resourceType}:${V.resourceId}:${(0,tG.IM)(e)}`,_weak:V.weak,_key:L?._key})),P([])},S[3]=z,S[4]=P,S[5]=V.name,S[6]=V.resourceId,S[7]=V.resourceType,S[8]=V.weak,S[9]=Y.hits,S[10]=L?._key,S[11]=i):i=S[11];let U=i;S[12]!==z?(r=()=>{z(hW())},S[12]=z,S[13]=r):r=S[13];let Z=r;S[14]!==P?(a=e=>{"Escape"===e.key&&P?.([])},S[14]=P,S[15]=a):a=S[15];let q=a;S[16]!==D||S[17]!==V?(o=e=>D(e,V),S[16]=D,S[17]=V,S[18]=o):o=S[18];let W=o;e:{let e,t;if(!L?._ref){l=null;break e}S[19]!==L._ref?(e=L._ref.split(":",3),S[19]=L._ref,S[20]=e):e=S[20];let[,,n]=e;S[21]!==n?(t={_id:n},S[21]=n,S[22]=t):t=S[22],l=t}let J=$m(l,W),[K,G]=(0,_.useState)(null),X=1===A.length&&"_ref"===A[0],Q=(0,_.useRef)(null);S[23]===Symbol.for("react.memo_cache_sentinel")?(s=()=>Q.current,S[23]=s):s=S[23],(0,_.useImperativeHandle)(n,s);let ee=L?._ref;S[24]!==X||S[25]!==ee?(d={hasFocusAt:X,ref:ee},S[24]=X,S[25]=ee,S[26]=d):d=S[26],S[27]===Symbol.for("react.memo_cache_sentinel")?(c=(e,t)=>{let n=e?.ref!==t.ref;(e?.hasFocusAt!==t.hasFocusAt||n)&&t.hasFocusAt&&Q.current?.focus()},S[27]=c):c=S[27],fS(d,c);let et=L?._weak?"weak":"strong",en=!0===V.weak?"weak":"strong",ei=!!L?._ref;S[28]!==z||S[29]!==V.weak?(u=()=>{z(!0===V.weak?hq(!0,["_weak"]):hW(["_weak"]))},S[28]=z,S[29]=V.weak,S[30]=u):u=S[30];let er=u,{push:ea}=(0,T.dj)();S[31]!==M?(p=M.filter($I),S[31]=M,S[32]=p):p=S[32];let eo=p;S[33]!==P?(m=e=>{e.currentTarget===Q.current&&P?.([])},S[33]=P,S[34]=m):m=S[34];let el=m;S[35]!==P?(h=e=>{e.currentTarget===Q.current&&P?.($w)},S[35]=P,S[36]=h):h=S[36];let es=h;S[37]!==P?(f=()=>{P?.($w)},S[37]=P,S[38]=f):f=S[38];let ed=f,ec=(0,_.useId)();S[39]!==ec||S[40]!==R||S[41]!==ea?(g=e=>e.pipe((0,to.p)(r$),(0,eQ.F)(),(0,eM.n)(e=>(0,eR.x)((0,eP.of)({isLoading:!0}),R(e).pipe((0,eV.T)(t=>({hits:t,searchString:e,isLoading:!1})),(0,eY.W)(e=>(ea({title:"Reference search failed",description:e.message,status:"error",id:`reference-search-fail-${ec}`}),console.error(e),(0,eP.of)({hits:[]})))))),(0,ts.S)($S,$v),(0,e5.M)(H)),S[39]=ec,S[40]=R,S[41]=ea,S[42]=g):g=S[42];let eu=(0,tF.N)(g);S[43]!==eu?(y=()=>{eu("")},S[43]=eu,S[44]=y):y=S[44];let ep=y,em=!J.isLoading&&ei&&et!==en;if(S[45]!==J.result||S[46]!==V||S[47]!==L){t:{if(!L?._ref||!(0,eD.Q9)(L)){C=null;break t}let[,,e]=L._ref.split(":");if(!V.studioUrl||!J?.result?.type){C=null;break t}if("string"==typeof V.studioUrl){C=`${V.studioUrl}/desk/intent/edit/id=${e};type=${J.result.type}/`;break t}C=V.studioUrl({id:e,type:J.result.type})}S[45]=J.result,S[46]=V,S[47]=L,S[48]=C}else C=S[48];let eh=C;S[49]!==W||S[50]!==V?(x=e=>(0,v.jsx)(es$,{as:"button",type:"button",radius:2,children:(0,v.jsx)(I.az,{paddingX:3,paddingY:1,children:(0,v.jsx)($f,{referenceType:V,document:e.hit.published,getReferenceInfo:W})})}),S[49]=W,S[50]=V,S[51]=x):x=S[51];let ef=x,eg=X||!L?._ref,ey=(0,_.useRef)(null),eC=(0,_.useRef)(null);return S[52]!==X||S[53]!==P?(b=X&&(()=>P([])),S[52]=X,S[53]=P,S[54]=b):b=S[54],S[55]===Symbol.for("react.memo_cache_sentinel")?(w=()=>[ey.current,eC.current],S[55]=w):w=S[55],(0,I.PR)(b,w),S[56]!==et||S[57]!==K||S[58]!==E||S[59]!==t||S[60]!==eo||S[61]!==$||S[62]!==es||S[63]!==q||S[64]!==ep||S[65]!==U||S[66]!==Z||S[67]!==er||S[68]!==el||S[69]!==eu||S[70]!==ed||S[71]!==ec||S[72]!==eg||S[73]!==J||S[74]!==N||S[75]!==O||S[76]!==ef||S[77]!==V||S[78]!==Y.hits||S[79]!==Y.isLoading||S[80]!==Y.searchString||S[81]!==em||S[82]!==eh||S[83]!==B||S[84]!==L?(k=(0,v.jsx)(I.BJ,{space:1,children:eg?(0,v.jsx)(I.BJ,{space:2,ref:ey,children:(0,v.jsx)(S1,{path:N,isChanged:E,hasFocus:!!$,children:(0,v.jsx)("div",{ref:G,children:(0,v.jsx)($b,{...t,"data-testid":"autocomplete",loading:Y.isLoading,referenceElement:K,portalRef:eC,id:ec||"",options:Y.hits.map($k),onFocus:es,radius:2,placeholder:B("inputs.reference.search-placeholder"),onKeyDown:q,readOnly:O,disabled:J.isLoading,onQueryChange:eu,searchString:Y.searchString,onChange:U,filterOption:$j,renderOption:ef,openButton:{onClick:ep}
1009,ref:Q})})})}):(0,v.jsx)(S1,{path:N,isChanged:E,hasFocus:!!$,children:(0,v.jsxs)(I.Zp,{padding:0,border:!0,flex:1,radius:1,tone:O?"transparent":J.error||eo.length>0?"critical":"default",children:[(0,v.jsxs)(I.so,{align:"center",padding:1,children:[eh?(0,v.jsx)(es$,{as:"a",target:"_blank",rel:"noopener noreferrer",href:eh,"data-as":"a",flex:1,padding:1,paddingRight:3,radius:2,tone:"inherit",__unstable_focusRing:!0,tabIndex:0,onFocus:el,onBlur:t.onBlur,ref:Q,children:(0,v.jsx)($g,{value:L,referenceInfo:J,showStudioUrlIcon:!0,hasStudioUrl:!0,type:V})}):(0,v.jsx)(es$,{flex:1,padding:1,paddingRight:3,radius:2,tone:"inherit",__unstable_focusRing:!0,tabIndex:0,onFocus:el,onBlur:t.onBlur,ref:Q,children:(0,v.jsx)($g,{value:L,referenceInfo:J,type:V})}),(0,v.jsx)(I.cV,{paddingX:1,children:(0,v.jsx)(tL.IU,{button:(0,v.jsx)(rl,{"data-testid":"menu-button"}),id:`${ec}-menuButton`,menu:(0,v.jsx)(I.W1,{children:!O&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(tL.Dr,{text:B("inputs.reference.action.clear"),tone:"critical",icon:eT.NAP,"data-testid":"menu-item-clear",onClick:Z}),(0,v.jsx)(tL.Dr,{text:B("inputs.reference.action.replace"),icon:eT.Fjq,"data-testid":"menu-item-replace",onClick:ed})]})}),placement:"right",popover:{portal:!0,tone:"default"}})})]}),em&&(0,v.jsx)(yg,{actualStrength:et,handleFixStrengthMismatch:er}),J.error&&(0,v.jsx)(yf,{errorMessage:J.error.message,onHandleRetry:J.retry})]})})}),S[56]=et,S[57]=K,S[58]=E,S[59]=t,S[60]=eo,S[61]=$,S[62]=es,S[63]=q,S[64]=ep,S[65]=U,S[66]=Z,S[67]=er,S[68]=el,S[69]=eu,S[70]=ed,S[71]=ec,S[72]=eg,S[73]=J,S[74]=N,S[75]=O,S[76]=ef,S[77]=V,S[78]=Y.hits,S[79]=Y.isLoading,S[80]=Y.searchString,S[81]=em,S[82]=eh,S[83]=B,S[84]=L,S[85]=k):k=S[85],k}function $k(e){return{value:e.id,hit:e}}function $S(e,t){return{...e,...t}}function $I(e){return"error"===e.level}function $T(e){return Object.keys(e)}function $E(e){let{observeFields:t}=e;return(e,n,i,r)=>(function e(t,n,i,r,a){if(!t||"object"!=typeof t)return(0,eP.of)(t);let o=(0,eD.A_)(t)?t._ref:"_id"in t?t._id:void 0,l=o?{...t,_id:o}:{...t};"reference"===l._type&&(delete l._type,delete l._ref,delete l._weak,delete l._dataset,delete l._projectId,delete l._strengthenOnPublish);let s=n.filter(e=>!(e[0]in l));if(o&&s.length>0){let l=(0,B.A)(s.map(e=>e[0])),d=(0,eD.I0)(t)?{projectId:t._projectId,dataset:t._dataset}:r;return i(o,l,d,a).pipe((0,eM.n)(r=>null===r?(0,eP.of)(null):e({...l.reduce((e,t)=>(e[t]=void 0,e),{}),...(0,eD.A_)(t)?{...t,...d}:t,...r},n,i,d,a)))}let d={};n.forEach(e=>{let[t,...n]=e;d[t]||(d[t]=[]),d[t].push(n)});let c=Object.keys(d).reduce((n,o)=>{let l=d[o].filter(e=>e.length>0);return 0===l.length?n[o]=rZ(t)?t[o]:void 0:n[o]=e(t[o],l,i,r,a),n},l);return(0,eP.of)(c).pipe(function(e={}){return t=>new eU.c(e=>t.subscribe(e)).pipe((0,eM.n)(t=>{let n=$T(t).map(e=>{let n=t[e];return(0,tc.A)(n)?(0,eL.H)(n).pipe((0,eV.T)(t=>[e,t])):(0,eP.of)([e,n])});return e.wait?(0,e8.z)(n).pipe((0,eV.T)(e=>e.reduce((e,[t,n])=>({...e,[t]:n}),{}))):(0,eL.H)(n).pipe((0,tD.U)(),(0,ts.S)((e,[t,n])=>({...e,[t]:n}),{}))}))}({wait:!0}))})(e,n.map(e=>"string"==typeof e?e.split("."):e),t,i,r)}let $$={available:!0,reason:"READABLE"},$A={available:!1,reason:"PERMISSION_DENIED"},$D={available:!1,reason:"NOT_FOUND"};async function $z(e,t,n,i){if(!e)return{};if("function"==typeof e.filter){let r=n.slice(0,-1),a=(0,w.Jt)(t,r);return await e.filter({document:t,parentPath:r,parent:a,perspective:[],getClient:i})}return{filter:e.filter,params:"filterParams"in e?e.filterParams:void 0}}function $P(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>{let i=t[n];return void 0===i?e:String(i)})}let $R=e=>{let t,n,i,r,a=(0,j.c)(17),{dataUri:o,feature:l}=e,[s,d]=(0,_.useState)(null),[c,u]=(0,_.useState)(!1),p=(0,tK.Jr)(),m=Ru(),h=el0(ob),f=`https://www.sanity.${h.config().apiHost.endsWith(".sanity.work")?"work":"io"}`;a[0]!==l||a[1]!==p?(t={dialogSecondaryClicked:()=>p.log(erS,{feature:l,type:"modal"}),dialogPrimaryClicked:()=>p.log(erk,{feature:l,type:"modal"}),dialogViewed:e=>p.log(erw,{feature:l,type:"modal",source:e}),dialogDismissed:()=>{p.log(er_,{feature:l,type:"modal"})},panelViewed:e=>p.log(erw,{feature:l,type:"inspector",source:e}),panelDismissed:()=>p.log(er_,{feature:l,type:"inspector"}),panelPrimaryClicked:()=>p.log(erk,{feature:l,type:"inspector"}),panelSecondaryClicked:()=>p.log(erS,{feature:l,type:"inspector"})},a[0]=l,a[1]=p,a[2]=t):t=a[2];let g=t;return a[3]!==f||a[4]!==h.observable||a[5]!==o||a[6]!==m?(n=()=>{let e=h.observable.request({uri:o}).subscribe({next:e=>{if(!e){u(!0),d(null);return}try{e.ctaButton.url=$P(e.ctaButton.url,{baseUrl:f,projectId:m}),e.secondaryButton.url=$P(e.secondaryButton.url,{baseUrl:f,projectId:m}),d(e),u(!1)}catch{u(!0),d(null)}},error:e=>{u(!0),d(null)}});return()=>{e.unsubscribe()}}
1009,a[3]=f,a[4]=h.observable,a[5]=o,a[6]=m,a[7]=n):n=a[7],a[8]!==f||a[9]!==h||a[10]!==o||a[11]!==m?(i=[h,m,f,o],a[8]=f,a[9]=h,a[10]=o,a[11]=m,a[12]=i):i=a[12],(0,_.useEffect)(n,i),a[13]!==c||a[14]!==g||a[15]!==s?(r={upsellData:s,telemetryLogs:g,hasError:c},a[13]=c,a[14]=g,a[15]=s,a[16]=r):r=a[16],r};function $N(e){return{data:e.upsellData,open:e.upsellDialogOpen,onClose:e.handleClose,onPrimaryClick:()=>e.telemetryLogs.dialogPrimaryClicked(),onSecondaryClick:()=>e.telemetryLogs.dialogSecondaryClicked()}}function $O(e){let t,n,i,r,a=(0,j.c)(16),{dataUri:o,feature:l}=e,[s,d]=(0,_.useState)(!1);a[0]!==o||a[1]!==l?(t={dataUri:o,feature:l},a[0]=o,a[1]=l,a[2]=t):t=a[2];let{upsellData:c,telemetryLogs:u,hasError:p}=$R(t),m=(0,T.dj)(),{t:h}=as();a[3]!==u?(n=()=>{d(!1),u.dialogDismissed()},a[3]=u,a[4]=n):n=a[4];let f=n;a[5]!==p||a[6]!==h||a[7]!==u||a[8]!==m?(i=e=>{p?m.push({status:"error",title:h("errors.unable-to-perform-action"),closable:!0}):(d(!0),u.dialogViewed(e))},a[5]=p,a[6]=h,a[7]=u,a[8]=m,a[9]=i):i=a[9];let g=i;return a[10]!==f||a[11]!==g||a[12]!==u||a[13]!==c||a[14]!==s?(r={upsellDialogOpen:s,handleOpenDialog:g,handleClose:f,upsellData:c,telemetryLogs:u},a[10]=f,a[11]=g,a[12]=u,a[13]=c,a[14]=s,a[15]=r):r=a[15],r}let $V={inlineIcon:(e,t,n)=>{if(!(0,eD.L4)(n))return n;let i=!!(n.children[t-1]?._type==="span"&&n.children[t-1]?.text),r=!!(n.children[t+1]?._type==="span"&&n.children[t+1]?.text);return{...e,hasTextRight:r,hasTextLeft:i}}},$M=(0,eI.I4)(I.az).withConfig({displayName:"Divider",componentId:"sc-ryqzo1-0"})`height:1px;background:var(--card-border-color);width:100%;`,$L=eI.I4.div.withConfig({displayName:"SerializerContainer",componentId:"sc-ryqzo1-1"})`> div:first-child{margin-top:0;}> [data-ui='Box']:last-child{margin-bottom:0;}`,$F=(0,eI.I4)(I.EY).withConfig({displayName:"IconTextContainer",componentId:"sc-ryqzo1-2"})(e=>e.accent?` 1010 --card-icon-color: var(--card-accent-fg-color); 1011 `:""),$B=eI.I4.span.withConfig({displayName:"AccentSpan",componentId:"sc-ryqzo1-3"})`color:var(--card-accent-fg-color);--card-icon-color:var(--card-accent-fg-color);`,$Y=eI.I4.span.withConfig({displayName:"SemiboldSpan",componentId:"sc-ryqzo1-4"})(({theme:e})=>{let{weights:t}=e.sanity.fonts.text;return(0,eI.AH)` 1012 font-weight: ${t.semibold}; 1013 `}),$H=(0,eI.I4)(eT.Int).withConfig({displayName:"InlineIcon",componentId:"sc-ryqzo1-5"})`&[data-sanity-icon]{margin-left:${e=>e.$hasTextLeft?"0":""};margin-right:${e=>e.$hasTextRight?"0":""};}`,$U=eI.I4.a.withConfig({displayName:"Link",componentId:"sc-ryqzo1-6"})`font-weight:600;color:${e=>e.$useTextColor?"var(--card-muted-fg-color) !important":""};`,$Z=eI.I4.span.withConfig({displayName:"DynamicIconContainer",componentId:"sc-ryqzo1-7"})`display:${({$inline:e})=>e?"inline-block":"inline"};font-size:calc(21 / 16 * 1rem) !important;min-width:calc(21 / 16 * 1rem - 0.375rem);line-height:0;> svg{height:1em;width:1em;display:inline;font-size:1em !important;margin:-0.375rem !important;*[stroke]{stroke:currentColor;}}`,$q=e=>{let t,n,i,r,a=(0,j.c)(8),[o,l]=(0,_.useState)("");a[0]!==e.icon.url?(t=()=>{let t=new AbortController,n=t.signal;return fetch(e.icon.url,{signal:n}).then($1).then(e=>l(e)).catch($2),()=>{t.abort()}},n=[e.icon.url],a[0]=e.icon.url,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,_.useEffect)(t,n);let s=!!e.inline;return a[3]!==o?(i={__html:o},a[3]=o,a[4]=i):i=a[4],a[5]!==s||a[6]!==i?(r=(0,v.jsx)($Z,{$inline:s,dangerouslySetInnerHTML:i}),a[5]=s,a[6]=i,a[7]=r):r=a[7],r};function $W(e){let t,n=(0,j.c)(2),{children:i}=e;return n[0]!==i?(t=(0,v.jsx)(I.az,{paddingX:2,marginBottom:4,children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:i})}),n[0]=i,n[1]=t):t=n[1],t}function $J(e){let t,n=(0,j.c)(2),{children:i}=e;return n[0]!==i?(t=(0,v.jsx)(I.az,{paddingX:2,marginY:4,children:(0,v.jsx)(I.DZ,{size:2,as:"h2",children:i})}),n[0]=i,n[1]=t):t=n[1],t}function $K(e){let t,n=(0,j.c)(2),{children:i}=e;return n[0]!==i?(t=(0,v.jsx)(I.az,{paddingX:2,marginY:4,children:(0,v.jsx)(I.DZ,{size:1,as:"h3",children:i})}),n[0]=i,n[1]=t):t=n[1],t}let $G=eI.I4.img.withConfig({displayName:"Image",componentId:"sc-ryqzo1-8"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 1014 object-fit: cover; 1015 width: 100%;
1016 border-radius: ${t.radius[3]}px; 1017 `});function $X(e){let t,n=(0,j.c)(2),i=e.value.image?.url;return n[0]!==i?(t=(0,v.jsx)(I.az,{paddingX:2,marginY:4,children:(0,v.jsx)($G,{src:i})}),n[0]=i,n[1]=t):t=n[1],t}function $Q(e){let t,n,i,r=(0,j.c)(8),{blocks:a,onLinkClick:o,interpolation:l}=e;r[0]!==a?(t=a.map(e=>{if((0,eD.L4)(e)&&"block"===e._type){let t=e.children.map((t,n)=>$V[t._type]?$V[t._type](t,n,e):t);return{...e,children:t}}return e}),r[0]=a,r[1]=t):t=r[1];let s=t;r[2]!==l||r[3]!==o?(n=(({onLinkClick:e,interpolation:t})=>{let n=e=>e&&t?(Array.isArray(e)?e:[e]).map(e=>"string"==typeof e?$P(e,t):e):e;return{block:{normal:({children:e})=>(0,v.jsx)($W,{children:n(e)}),h2:({children:e})=>(0,v.jsx)($J,{children:n(e)}),h3:({children:e})=>(0,v.jsx)($K,{children:n(e)})},list:{bullet:({children:e})=>(0,v.jsx)("ul",{children:n(e)}),number:({children:e})=>(0,v.jsx)("ol",{children:n(e)}),checkmarks:({children:e})=>(0,v.jsx)(v.Fragment,{children:n(e)})},listItem:{bullet:({children:e})=>(0,v.jsx)(I.EY,{as:"li",size:1,muted:!0,style:{display:"list-item",padding:"0.5rem 0"},children:n(e)}),number:({children:e})=>(0,v.jsx)(I.EY,{as:"li",size:1,muted:!0,style:{display:"list-item",padding:"0.5rem 0"},children:n(e)}),checkmarks:({children:e})=>(0,v.jsx)(I.EY,{children:e})},marks:{strong:({children:e})=>(0,v.jsx)("strong",{children:n(e)}),semibold:({children:e})=>(0,v.jsx)($Y,{children:n(e)}),link:t=>(0,v.jsxs)($U,{href:t.value.href,rel:"noopener noreferrer",target:"_blank",$useTextColor:t.value.useTextColor,onClick:e?()=>e({url:t.value.href,linkTitle:t.text}):void 0,children:[t.children,t.value.showIcon&&(0,v.jsx)(eT.qYV,{style:{marginLeft:"2px"}})]}),accent:({children:e})=>(0,v.jsx)($B,{children:n(e)})},types:{inlineIcon:e=>{let t=e.value.sanityIcon?(0,v.jsx)($H,{symbol:e.value.sanityIcon,$hasTextLeft:e.value.hasTextLeft,$hasTextRight:e.value.hasTextRight}):(0,v.jsx)(v.Fragment,{children:e.value.icon?.url&&(0,v.jsx)($q,{icon:e.value.icon,inline:!0})});return e.value.accent?(0,v.jsx)($B,{children:t}):t},divider:()=>(0,v.jsx)(I.az,{marginY:3,children:(0,v.jsx)(I.az,{paddingY:3,children:(0,v.jsx)($M,{})})}),iconAndText:e=>(0,v.jsxs)(I.so,{align:"flex-start",paddingX:2,paddingTop:1,paddingBottom:2,marginTop:2,gap:2,children:[(0,v.jsxs)(I.so,{gap:2,style:{flexShrink:0},children:[(0,v.jsx)($F,{size:1,accent:e.value.accent,children:e.value.sanityIcon?(0,v.jsx)(eT.Int,{symbol:e.value.sanityIcon}):(0,v.jsxs)(v.Fragment,{children:[e.value.icon?.url&&(0,v.jsx)($q,{icon:e.value.icon})," "]})}),(0,v.jsx)(I.EY,{size:1,weight:"semibold",accent:e.value.accent,children:n(e.value.title)})]}),(0,v.jsx)(I.EY,{size:1,muted:!0,accent:e.value.accent,children:n(e.value.text)})]}),imageBlock:e=>(0,v.jsx)($X,{...e})}}})({onLinkClick:o,interpolation:l}),r[2]=l,r[3]=o,r[4]=n):n=r[4];let d=n;return r[5]!==d||r[6]!==s?(i=(0,v.jsx)(I.Zp,{tone:"default",children:(0,v.jsx)($L,{children:(0,v.jsx)(nX.RK,{value:s,components:d,onMissingComponent:!1})})}),r[5]=d,r[6]=s,r[7]=i):i=r[7],i}function $1(e){if(!e.ok)throw Error(`HTTP error! status: ${e.status}`);return e.text()}function $2(e){"AbortError"!==e.name&&console.error(e)}let $5=(0,eI.I4)(tL.$n).withConfig({displayName:"StyledButton",componentId:"sc-12g2r1w-0"})(({theme:e})=>{let{space:t}=(0,nN.JW)(e);return` 1018 position: absolute; 1019 top: ${t[3]}px; 1020 right: ${t[3]}px; 1021 z-index: 20; 1022 background: transparent; 1023 border-radius: 9999px; 1024 box-shadow: none; 1025 color: ${ez.ON.hex}; 1026 --card-fg-color: ${ez.ON.hex}; 1027 :hover { 1028 --card-fg-color: ${ez.ON.hex}; 1029 } 1030 `}),$0=eI.I4.img.withConfig({displayName:"Image",componentId:"sc-12g2r1w-1"})`object-fit:cover;width:100%;height:100%;height:200px;`;function $7(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(25),{data:c,open:u,onClose:p,onPrimaryClick:m,onSecondaryClick:h,interpolation:f}=e;if(!c||!(void 0===u||u))return null;d[0]!==c.secondaryButton||d[1]!==h?(t=c.secondaryButton?.text?{text:c.secondaryButton.text,mode:"bleed",tone:"default",iconRight:eT.ZPM,...c.secondaryButton.url&&{target:"_blank",rel:"noopener noreferrer",as:"a",href:c.secondaryButton.url},onClick:h}:void 0,d[0]=c.secondaryButton,d[1]=h,d[2]=t):t=d[2];let g=c.ctaButton?.text;return d[3]!==c.ctaButton.url?(n=c.ctaButton.url&&{target:"_blank",rel:"noopener noreferrer",as:"a",href:c.ctaButton.url},d[3]=c.ctaButton.url,d[4]=n):n=d[4],d[5]!==m||d[6]!==g||d[7]!==n?(i={text:g,mode:"default",tone:"default",...n,onClick:m},d[5]=m,d[6]=g,d[7]=n,d[8]=i):i=d[8],d[9]!==t||d[10]!==i?(r={cancelButton:t,confirmButton:i},d[9]=t,d[10]=i,d[11]=r):r=d[11],d[12]!==p?(a=(0,v.jsx)($5,{icon:eT.USm,mode:"bleed",tone:"default",onClick:p,tabIndex:-1,tooltipProps:null}),d[12]=p,d[13]=a):a=d[13],d[14]!==c.image?(o=c.image&&(0,v.jsx)($0,{src:c.image.asset.url,alt:c.image.asset.altText??""}),d[14]=c.image,d[15]=o):o=d[15],d[16]!==c.descriptionText||d[17]!==f?(l=(0,v.jsx)(I.az,{padding:3,marginTop:2,children:(0,v.jsx)(I.BJ,{space:4,paddingBottom:2,children:(0,v.jsx)($Q,{blocks:c.descriptionText,interpolation:f})})}),d[16]=c.descriptionText,d[17]=f,d[18]=l):l=d[18],d[19]!==p||d[20]!==r||d[21]!==a||d[22]!==o||d[23]!==l?
1030(s=(0,v.jsxs)(tL.lG,{id:"upsell-dialog",onClose:p,onClickOutside:p,__unstable_hideCloseButton:!0,bodyHeight:"fill",padding:!1,zOffset:800,footer:r,children:[a,o,l]}),d[19]=p,d[20]=r,d[21]=a,d[22]=o,d[23]=l,d[24]=s):s=d[24],s}function $3(e){let t,n,i,r,a=(0,j.c)(9),{children:o}=e;a[0]===Symbol.for("react.memo_cache_sentinel")?(t={dataUri:"/journey/asset-limit",feature:"asset-limits"},a[0]=t):t=a[0];let l=$O(t);return a[1]!==l?(n=$N(l),a[1]=l,a[2]=n):n=a[2],a[3]!==n?(i=(0,v.jsx)($7,{...n}),a[3]=n,a[4]=i):i=a[4],a[5]!==o||a[6]!==l||a[7]!==i?(r=(0,v.jsxs)(S.E6.Provider,{value:l,children:[o,i]}),a[5]=o,a[6]=l,a[7]=i,a[8]=r):r=a[8],r}let $8=()=>{let e=(0,_.useContext)(S.E6);if(!e)throw Error("useAssetLimitsUpsellContext must be used within a AssetLimitUpsellProvider");return e},$4=e=>e instanceof tM.MZ&&"plan_limit_reached"===e.response.body.error,$6=(0,eI.I4)(tL.$n).attrs({forwardedAs:"label"}).withConfig({displayName:"FileButton",componentId:"sc-1r6e6de-0"})(({theme:e})=>{let{focusRing:t}=e.sanity,n=e.sanity.color.base;return(0,eI.AH)` 1031 &:not([data-disabled='true']) { 1032 &:focus-within { 1033 box-shadow: ${g7({base:n,border:{width:1,color:"var(--card-border-color)"},focusRing:t})}; 1034 } 1035 } 1036 1037 // The underlying file input is rendered as children within a Sanity UI <Button> component. 1038 // The below visibly hides it by targeting the input's parent <span> element, which is 1039 // added by the <Button> component.
1040 // TODO: refactor, avoid nth-child selector usage 1041 & > span:nth-child(2) { 1042 overflow: hidden; 1043 overflow: clip; 1044 top: 0; 1045 left: 0; 1046 width: 100%; 1047 height: 100%; 1048 position: absolute; 1049 min-width: 0; 1050 display: block; 1051 appearance: none; 1052 padding: 0; 1053 margin: 0; 1054 border: 0; 1055 opacity: 0; 1056 } 1057 `}),$9=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(27);h[0]!==e?({icon:a,id:o,accept:n,capture:i,multiple:l,onSelect:s,text:c,disabled:r,...d}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=r,h[4]=a,h[5]=o,h[6]=l,h[7]=s,h[8]=d,h[9]=c):(n=h[1],i=h[2],r=h[3],a=h[4],o=h[5],l=h[6],s=h[7],d=h[8],c=h[9]);let f=`${o||""}-${(0,_.useId)()}`;h[10]!==s?(u=e=>{s&&e.target.files&&s(Array.from(e.target.files))},h[10]=s,h[11]=u):u=h[11];let g=u;return h[12]!==n||h[13]!==i||h[14]!==r||h[15]!==t||h[16]!==g||h[17]!==f||h[18]!==l?(p=(0,v.jsx)("input",{"data-testid":"file-button-input",accept:n,capture:i,id:f,multiple:l,onChange:g,ref:t,type:"file",value:"",disabled:r}),h[12]=n,h[13]=i,h[14]=r,h[15]=t,h[16]=g,h[17]=f,h[18]=l,h[19]=p):p=h[19],h[20]!==r||h[21]!==a||h[22]!==f||h[23]!==d||h[24]!==p||h[25]!==c?(m=(0,v.jsx)($6,{...d,icon:a,text:c,htmlFor:f,disabled:r,children:p}),h[20]=r,h[21]=a,h[22]=f,h[23]=d,h[24]=p,h[25]=c,h[26]=m):m=h[26],m}),Ae=(0,eI.I4)(I.so).withConfig({displayName:"RootFlex",componentId:"sc-q3h17p-0"})`pointer-events:none;`;function At(e){let t,n,i,r,a,o=(0,j.c)(24),{hoveringFiles:l,type:s,readOnly:d,acceptedFiles:c,rejectedFilesCount:u,directUploads:p}=e,m="file"===s,{t:h}=as();e:{let e;if(d){let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eT.Eoh,{}),o[0]=e):e=o[0],t=e;break e}if(l&&"u">typeof u&&u>0||!1===p){let e;o[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eT.VY$,{}),o[1]=e):e=o[1],t=e;break e}o[2]!==m?(e=m?(0,v.jsx)(eT.A1A,{}):(0,v.jsx)(eT.xfq,{}),o[2]=m,o[3]=e):e=o[3],t=e}let f=t;t:{let e;if(!1===p){let e;o[4]!==h?(e=h("inputs.files.common.placeholder.upload-not-supported"),o[4]=h,o[5]=e):e=o[5],n=e;break t}if(d){let e;o[6]!==h?(e=h("inputs.files.common.placeholder.read-only"),o[6]=h,o[7]=e):e=o[7],n=e;break t}if(l&&p&&!d){if(c&&c.length>0){let e;o[8]!==h||o[9]!==s?(e=h("inputs.files.common.placeholder.drop-to-upload",{context:s}),o[8]=h,o[9]=s,o[10]=e):e=o[10],n=e;break t}if("u">typeof u&&u>0){let e;o[11]!==u||o[12]!==h?(e=h("inputs.files.common.placeholder.cannot-upload-some-files",{count:u}),o[11]=u,o[12]=h,o[13]=e):e=o[13],n=e;break t}}o[14]!==h||o[15]!==s?(e=h("inputs.files.common.placeholder.drag-or-paste-to-upload",{context:s}),o[14]=h,o[15]=s,o[16]=e):e=o[16],n=e}let g=n;return o[17]!==f?(i=(0,v.jsx)(I.EY,{muted:!0,size:1,children:f}),o[17]=f,o[18]=i):i=o[18],o[19]!==g?(r=(0,v.jsx)(I.EY,{size:1,muted:!0,children:g}),o[19]=g,o[20]=r):r=o[20],o[21]!==i||o[22]!==r?(a=(0,v.jsxs)(Ae,{align:"center",gap:3,justify:"center",paddingLeft:1,children:[i,r]}),o[21]=i,o[22]=r,o[23]=a):a=o[23],a}let An={portal:!0},Ai={placement:"right-start",fallbackPlacements:["left-start","bottom","top"]},Ar="data-asset-source-name",Aa=(0,_.memo)((0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d=(0,j.c)(53),{accept:c,assetSources:u,capture:p,directUploads:m,multiple:h,onSelectFiles:f,readOnly:g,renderAsMenuGroup:y}=e,{t:C}=as();d[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,ed.A)(),d[0]=n):n=d[0];let x=n,b=g||!1===m;d[1]===Symbol.for("react.memo_cache_sentinel")?(i=e=>`${x}-${e.name}-upload-button`,d[1]=i):i=d[1];let w=i;d[2]!==u?(r=e=>{let t=e.currentTarget.getAttribute(Ar),n=u.find(e=>e.name===t);if(!n)return;let i=document.getElementById(w(n));i&&document.activeElement!==i&&i.click()},d[2]=u,d[3]=r):r=d[3];let _=r;d[4]!==u?(a=e=>{let t=e.props[Ar],n=u.find(e=>e.name===t);return n?(0,v.jsx)("label",{htmlFor:w(n),children:e}):e},d[4]=u,d[5]=a):a=d[5];let k=a;d[6]!==u[0]||d[7]!==_||d[8]!==k||d[9]!==C||d[10]!==b?(o=(e,t)=>{let n=w(e),i=e.name===u[0].name;return(0,v.jsx)(tL.Dr,{[Ar]:e.name,badgeText:i?C("input.files.common.upload-placeholder.file-input-button.default-source.badge"):void 0,"data-testid":`file-input-upload-button-${t}`,disabled:b,htmlFor:n,icon:e.icon,onClick:_,renderMenuItem:k,text:(e.i18nKey?C(e.i18nKey):e.title)||(0,eu.A)(e.name)},`${n}-menu-button`)},d[6]=u[0],d[7]=_,d[8]=k,d[9]=C,d[10]=b,d[11]=o):o=d[11];let S=o;d[12]!==u||d[13]!==f?(l=e=>{let t=e.target.dataset.assetSourceName,n=u.find(e=>e.name===t);n&&(f&&e.target.files&&f(n,Array.from(e.target.files)),e.stopPropagation(),e.preventDefault())},d[12]=u,d[13]=f,d[14]=l):l=d[14];let T=l;if(d[15]!==c||d[16]!==u||d[17]!==p||d[18]!==T||d[19]!==h){let e;d[21]!==c||d[22]!==p||d[23]!==T||d[24]!==h?(e=e=>{let t=w(e);return(0,v.jsx)("input",{accept:c,capture:p,id:t,"data-asset-source-name":e.name,multiple:h,onChange:T,type:"file",value:"",style:{display:"none"}},t)}
1057,d[21]=c,d[22]=p,d[23]=T,d[24]=h,d[25]=e):e=d[25],s=u.map(e),d[15]=c,d[16]=u,d[17]=p,d[18]=T,d[19]=h,d[20]=s}else s=d[20];let E=s;if(u&&u.length>1){let e,n,i,r,a,o;if(d[26]!==u||d[27]!==S){let t;d[29]!==S?(t=(e,t)=>S(e,t),d[29]=S,d[30]=t):t=d[30],e=u.map(t),d[26]=u,d[27]=S,d[28]=e}else e=d[28];let l=e;if(void 0!==y&&y){let e,t,n;return d[31]!==C?(e=C("input.files.common.upload-placeholder.file-input-button.text"),d[31]=C,d[32]=e):e=d[32],d[33]!==l||d[34]!==e?(t=(0,v.jsx)(io.r,{icon:eT.JMY,text:e,popover:Ai,children:l}),d[33]=l,d[34]=e,d[35]=t):t=d[35],d[36]!==E||d[37]!==t?(n=(0,v.jsxs)(v.Fragment,{children:[t,E]}),d[36]=E,d[37]=t,d[38]=n):n=d[38],n}return d[39]!==C?(n=C("input.files.common.upload-placeholder.file-input-button.text"),d[39]=C,d[40]=n):n=d[40],d[41]!==n||d[42]!==b?(i=(0,v.jsx)(tL.$n,{"data-testid":"file-input-upload-button-0",icon:eT.JMY,iconRight:eT.D3D,mode:"bleed",disabled:b,text:n}),d[41]=n,d[42]=b,d[43]=i):i=d[43],d[44]!==l?(r=(0,v.jsx)(I.W1,{children:l}),d[44]=l,d[45]=r):r=d[45],d[46]!==t||d[47]!==i||d[48]!==r?(a=(0,v.jsx)(tL.IU,{id:`${x}_upload-button`,ref:t,button:i,menu:r,popover:An}),d[46]=t,d[47]=i,d[48]=r,d[49]=a):a=d[49],d[50]!==E||d[51]!==a?(o=(0,v.jsxs)(v.Fragment,{children:[a,E]}),d[50]=E,d[51]=a,d[52]=o):o=d[52],o}return null}));function Ao(e){return!!e.Uploader}let Al=(0,_.memo)(function(e){let t,n,i,r,a,o=(0,j.c)(35),{assetSources:l,browse:s,directUploads:d,hoveringFiles:c,onUpload:u,readOnly:p,schemaType:m,type:h}=e,[f,g]=(0,_.useState)(null),y=(0,I.cF)(f),C=y?.border&&y.border.width<440,{t:x}=as(),b=el0(ob),w=_g();if(o[0]!==l||o[1]!==b||o[2]!==w||o[3]!==h){if(0===(t=l.filter(Ao)).length){let e={client:b,title:w.title||w.name},n="file"===h;t.push(n?b1(e):bQ(e))}o[0]=l,o[1]=b,o[2]=w,o[3]=h,o[4]=t}else t=o[4];let k=t;o[5]!==u?(n=(e,t)=>{u&&u(e,t)},o[5]=u,o[6]=n):n=o[6];let S=n;o[7]!==m?(i=(0,V.A)(m,"options.accept",""),o[7]=m,o[8]=i):i=o[8];let T=i;switch(k.length){case 0:r=null;break;case 1:{let e,t,n,i=`file-input-upload-button-${k[0].name}`,a=p||!1===d;o[9]!==k[0]||o[10]!==u?(e=e=>{u&&u(k[0],e)},o[9]=k[0],o[10]=u,o[11]=e):e=o[11],o[12]!==x?(t=x("input.files.common.upload-placeholder.file-input-button.text"),o[12]=x,o[13]=t):t=o[13],o[14]!==T||o[15]!==i||o[16]!==a||o[17]!==e||o[18]!==t?(n=(0,v.jsx)($9,{accept:T,"data-testid":i,disabled:a,icon:eT.JMY,mode:"bleed",onSelect:e,text:t}),o[14]=T,o[15]=i,o[16]=a,o[17]=e,o[18]=t,o[19]=n):n=o[19],r=n;break}default:{let e;o[20]!==T||o[21]!==k||o[22]!==d||o[23]!==S||o[24]!==p?(e=(0,v.jsx)(Aa,{accept:T,assetSources:k,directUploads:d,onSelectFiles:S,readOnly:p}),o[20]=T,o[21]=k,o[22]=d,o[23]=S,o[24]=p,o[25]=e):e=o[25],r=e}}let E=r;return o[26]!==k.length||o[27]!==s||o[28]!==C||o[29]!==d||o[30]!==c||o[31]!==p||o[32]!==h||o[33]!==E?(a=0===k.length?null:(0,v.jsxs)(I.so,{align:C?void 0:"center",direction:C?"column":"row",gap:4,justify:"space-between",paddingY:C?1:void 0,ref:g,children:[(0,v.jsx)(I.so,{flex:1,children:(0,v.jsx)(At,{directUploads:d,hoveringFiles:c,readOnly:p,type:h})}),(0,v.jsxs)(I.so,{align:"center",gap:1,justify:"center",wrap:"wrap",children:[E,s]})]}),o[26]=k.length,o[27]=s,o[28]=C,o[29]=d,o[30]=c,o[31]=p,o[32]=h,o[33]=E,o[34]=a):a=o[34],a}),As=(0,eI.I4)(I.Zp).withConfig({displayName:"RatioBox",componentId:"sc-x1lc6d-0"})`position:relative;width:100%;min-height:3.75rem;max-height:min(calc(var(--image-height) * 1px),30vh);aspect-ratio:var(--image-width) / var(--image-height);& img{display:block;width:100%;height:100%;object-fit:scale-down;object-position:center;}`,Ad=(0,eI.I4)(I.Zp).withConfig({displayName:"Overlay",componentId:"sc-x1lc6d-1"})`display:flex;justify-content:flex-end;position:absolute;top:0;left:0;right:0;bottom:0;backdrop-filter:blur(10px);background-color:color-mix(in srgb,transparent,var(--card-bg-color) 80%);`,Ac=(0,eI.I4)(I.so).withConfig({displayName:"FlexOverlay",componentId:"sc-x1lc6d-2"})`position:absolute;top:0;left:0;bottom:0;right:0;`,Au=eI.I4.div.withConfig({displayName:"ErrorIconWrapper",componentId:"sc-x1lc6d-3"})`align-items:center;color:var(--card-icon-color);display:flex;font-size:1.5em;justify-content:center;
1057`,Ap=(0,eI.I4)(As).withConfig({displayName:"CardWrapper",componentId:"sc-fnkzfj-0"})`box-sizing:border-box;`,Am=(0,eI.I4)(I.so).withConfig({displayName:"FlexWrapper",componentId:"sc-fnkzfj-1"})`box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;overflow:clip;`,Ah=(0,eI.I4)(I.BJ).withConfig({displayName:"LeftSection",componentId:"sc-fnkzfj-2"})`position:relative;width:60%;`,Af=(0,eI.I4)(I.Cy).withConfig({displayName:"CodeWrapper",componentId:"sc-fnkzfj-3"})`position:relative;width:100%;code{overflow:hidden;overflow:clip;text-overflow:ellipsis;position:relative;max-width:200px;}`;function Ag(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(22),{uploadState:p,onCancel:m,onStale:h}=e,f=p.file.name;u[0]!==h||u[1]!==p.updatedAt?(t=()=>{let e;e=p.updatedAt,new Date().getTime()-new Date(e).getTime()>12e4&&h?.()},n=[p.updatedAt,h],u[0]=h,u[1]=p.updatedAt,u[2]=t,u[3]=n):(t=u[2],n=u[3]),(0,_.useEffect)(t,n);let{t:g}=as();return u[4]===Symbol.for("react.memo_cache_sentinel")?(i=[3,3,2,2],r=["column","column","row"],u[4]=i,u[5]=r):(i=u[4],r=u[5]),u[6]!==f?(a={FileName:()=>(0,v.jsx)(Af,{size:1,children:f||"â¦"})},u[6]=f,u[7]=a):a=u[7],u[8]!==g||u[9]!==a?(o=(0,v.jsx)(I.so,{justify:"center",gap:i,direction:r,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(I.cV,{space:2,children:(0,v.jsx)(aE,{t:g,i18nKey:"input.files.common.upload-progress",components:a})})})}),u[8]=g,u[9]=a,u[10]=o):o=u[10],u[11]!==p.progress?(l=(0,v.jsx)(I.Zp,{border:!0,marginTop:3,radius:5,children:(0,v.jsx)(esL,{value:p.progress})}),u[11]=p.progress,u[12]=l):l=u[12],u[13]!==o||u[14]!==l?(s=(0,v.jsxs)(Ah,{children:[o,l]}),u[13]=o,u[14]=l,u[15]=s):s=u[15],u[16]!==m||u[17]!==g?(d=m?(0,v.jsx)(tL.$n,{mode:"ghost",onClick:m,text:g("input.files.common.cancel-upload"),tone:"critical"}):null,u[16]=m,u[17]=g,u[18]=d):d=u[18],u[19]!==s||u[20]!==d?(c=(0,v.jsx)(Ap,{tone:"primary",border:!0,children:(0,v.jsxs)(Am,{padding:4,align:"center",justify:"space-between",height:"fill",direction:"row",gap:2,children:[s,d]})}),u[19]=s,u[20]=d,u[21]=c):c=u[21],c}function Ay(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(20),{onClearStale:u}=e,{t:p}=as();return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.sAQ,{})})}),c[0]=t):t=c[0],c[1]!==p?(n=p("inputs.files.common.stale-upload-warning.title"),c[1]=p,c[2]=n):n=c[2],c[3]!==n?(i=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:n}),c[3]=n,c[4]=i):i=c[4],c[5]!==p?(r=p("inputs.files.common.stale-upload-warning.description",{staleThresholdMinutes:Math.ceil(2)}),c[5]=p,c[6]=r):r=c[6],c[7]!==r?(a=(0,v.jsx)(I.EY,{size:1,children:r}),c[7]=r,c[8]=a):a=c[8],c[9]!==i||c[10]!==a?(o=(0,v.jsxs)(I.so,{gap:4,marginBottom:4,children:[t,(0,v.jsxs)(I.BJ,{space:3,children:[i,a]})]}),c[9]=i,c[10]=a,c[11]=o):o=c[11],c[12]!==p?(l=p("inputs.files.common.stale-upload-warning.clear"),c[12]=p,c[13]=l):l=c[13],c[14]!==u||c[15]!==l?(s=(0,v.jsx)(tL.$n,{icon:eT.NAP,mode:"ghost",onClick:u,text:l,width:"fill"}),c[14]=u,c[15]=l,c[16]=s):s=c[16],c[17]!==o||c[18]!==s?(d=(0,v.jsxs)(I.Zp,{tone:"caution",padding:4,border:!0,radius:2,children:[o,s]}),c[17]=o,c[18]=s,c[19]=d):d=c[19],d}function AC(e){let t,n,i,r,a=(0,j.c)(32),{assetSources:o,readOnly:l,id:s,browseButtonElementRef:d,schemaType:c,setIsBrowseMenuOpen:u,setSelectedAssetSource:p}=e,m=c.options?.sources,{t:h}=as();a[0]!==u||a[1]!==p?(t=e=>{u(!1),p(e)},a[0]=u,a[1]=p,a[2]=t):t=a[2];let f=t;if(m?.length===0||0===o.length)return null;if(o.length>1&&!l){let e,t,n,i,r,l=`${s}_assetFileButton`;if(a[3]!==h?(e=h("inputs.file.multi-browse-button.text"),a[3]=h,a[4]=e):e=a[4],a[5]!==e?(t=(0,v.jsx)(tL.$n,{mode:"bleed",text:e,"data-testid":"file-input-multi-browse-button",icon:eT.WIv,iconRight:eT.D3D}),a[5]=e,a[6]=t):t=a[6],a[7]!==o||a[8]!==f||a[9]!==h){let e;a[11]!==f||a[12]!==h?(e=e=>(0,v.jsx)(tL.Dr,{text:(e.i18nKey?h(e.i18nKey):e.title)||(0,eu.A)(e.name),onClick:()=>f(e),icon:e.icon||eT.xfq,"data-testid":`file-input-browse-button-${e.name}`},e.name),a[11]=f,a[12]=h,a[13]=e):e=a[13],n=o.map(e),a[7]=o,a[8]=f,a[9]=h,a[10]=n}else n=a[10];return a[14]!==n?(i=(0,v.jsx)(I.W1,{children:n}),a[14]=n,a[15]=i):i=a[15],a[16]!==d||a[17]!==l||a[18]!==t||a[19]!==i?(r=(0,v.jsx)(tL.IU,{id:l,ref:d,button:t,"data-testid":"input-select-button",menu:i}),a[16]=d,a[17]=l,a[18]=t,a[19]=i,a[20]=r):r=a[20],r}a[21]!==h?(n=h("inputs.file.browse-button.text"),a[21]=h,a[22]=n):n=a[22],a[23]!==o[0]||a[24]!==f?(i=()=>f(o[0]),a[23]=o[0],a[24]=f,a[25]=i):i=a[25];let g=`file-input-browse-button-${o[0].name}`;return a[26]!==d||a[27]!==l||a[28]!==n||a[29]!==i||a[30]!==g?(r=(0,v.jsx)(tL.$n,{text:n,icon:eT.WIv,mode:"bleed",onClick:i,"data-testid":g,disabled:l,ref:d}),a[26]=d,a[27]=l,a[28]=n,a[29]=i,a[30]=g,a[31]=r):r=a[31],r}function Ax(e){let t,n,i,r=(0,j.c)(10),{reference:a,children:o,observeAsset:l,waitPlaceholder:s}=e,d=a?._ref;r[0]!==d||r[1]!==l?(t=l(d),r[0]=d,r[1]=l,r[2]=t):t=r[2];let c=(0,tF.J)(t);return r[3]!==c||r[4]!==o||r[5]!==d||r[6]!==s?(n=d&&c?o(c):s,r[3]=c,r[4]=o,r[5]=d,r[6]=s,r[7]=n):n=r[7],r[8]!==n?(i=(0,v.jsx)(v.Fragment,{children:n}),r[8]=n,r[9]=i):i=r[9],i}function Ab(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(38),{onReset:p,readOnly:m,browse:h,downloadUrl:f,copyUrl:g,openInSource:y,openInSourceName:C,upload:x}=e,{push:b}=(0,T.dj)(),{t:w}=as();u[0]!==g||u[1]!==b||u[2]!==w?(t=()=>{navigator.clipboard.writeText(g||""),b({closable:!0,status:"success",title:w("inputs.files.c
1057ommon.actions-menu.notification.url-copied")})},u[0]=g,u[1]=b,u[2]=w,u[3]=t):t=u[3];let _=t;return u[4]!==h||u[5]!==x?(n=x&&h&&(0,v.jsx)(I.Nj,{}),u[4]=h,u[5]=x,u[6]=n):n=u[6],u[7]!==g||u[8]!==f||u[9]!==y?(i=(f||g||y)&&(0,v.jsx)(I.Nj,{}),u[7]=g,u[8]=f,u[9]=y,u[10]=i):i=u[10],u[11]!==f||u[12]!==w?(r=f&&(0,v.jsx)(tL.Dr,{as:"a",icon:eT.s3U,text:w("inputs.files.common.actions-menu.download.label"),href:f}),u[11]=f,u[12]=w,u[13]=r):r=u[13],u[14]!==g||u[15]!==_||u[16]!==w?(a=g&&(0,v.jsx)(tL.Dr,{icon:eT.TdU,text:w("inputs.files.common.actions-menu.copy-url.label"),onClick:_}),u[14]=g,u[15]=_,u[16]=w,u[17]=a):a=u[17],u[18]!==y||u[19]!==C||u[20]!==w?(o=y&&(0,v.jsx)(tL.Dr,{icon:eT.ZPM,text:w("inputs.files.common.actions-menu.open-in-source.label",{sourceName:C||"source"}),onClick:y}),u[18]=y,u[19]=C,u[20]=w,u[21]=o):o=u[21],u[22]===Symbol.for("react.memo_cache_sentinel")?(l=(0,v.jsx)(I.Nj,{}),u[22]=l):l=u[22],u[23]!==w?(s=w("inputs.files.common.actions-menu.clear-field.label"),u[23]=w,u[24]=s):s=u[24],u[25]!==p||u[26]!==m||u[27]!==s?(d=(0,v.jsx)(tL.Dr,{tone:"critical",icon:eT.NAP,text:s,onClick:p,disabled:m,"data-testid":"file-input-clear"}),u[25]=p,u[26]=m,u[27]=s,u[28]=d):d=u[28],u[29]!==h||u[30]!==n||u[31]!==i||u[32]!==r||u[33]!==a||u[34]!==o||u[35]!==d||u[36]!==x?(c=(0,v.jsxs)(v.Fragment,{children:[x,n,h,i,r,a,o,l,d]}),u[29]=h,u[30]=n,u[31]=i,u[32]=r,u[33]=a,u[34]=o,u[35]=d,u[36]=x,u[37]=c):c=u[37],c}let Av=(0,eI.I4)(tL.Dr).withConfig({displayName:"FileMenuItem",componentId:"sc-1vqjvs2-0"})`position:relative;& input{overflow:hidden;overflow:clip;top:0;left:0;width:100%;height:100%;position:absolute;min-width:0;display:block;appearance:none;padding:0;margin:0;border:0;opacity:0;}`,Aj=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(27);h[0]!==e?({icon:a,id:o,accept:n,capture:i,multiple:l,onSelect:s,text:c,disabled:r,...d}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=r,h[4]=a,h[5]=o,h[6]=l,h[7]=s,h[8]=d,h[9]=c):(n=h[1],i=h[2],r=h[3],a=h[4],o=h[5],l=h[6],s=h[7],d=h[8],c=h[9]);let f=`${o||""}-${(0,_.useId)()}`;h[10]!==s?(u=e=>{s&&e.target.files&&s(Array.from(e.target.files))},h[10]=s,h[11]=u):u=h[11];let g=u;h[12]!==n||h[13]!==i||h[14]!==r||h[15]!==g||h[16]!==f||h[17]!==l?(p=e=>(0,v.jsxs)("div",{children:[e,(0,v.jsx)("input",{"data-testid":"file-menuitem-input",accept:n,capture:i,id:f,multiple:l,onChange:g,type:"file",value:"",disabled:r})]}),h[12]=n,h[13]=i,h[14]=r,h[15]=g,h[16]=f,h[17]=l,h[18]=p):p=h[18];let y=p;return h[19]!==r||h[20]!==t||h[21]!==a||h[22]!==f||h[23]!==y||h[24]!==d||h[25]!==c?(m=(0,v.jsx)(Av,{...d,htmlFor:f,disabled:r,ref:t,icon:a,text:c,renderMenuItem:y}),h[19]=r,h[20]=t,h[21]=a,h[22]=f,h[23]=y,h[24]=d,h[25]=c,h[26]=m):m=h[26],m});function Aw(e,t){if(!e?.source)return null;for(let n of t){if(!n.openInSource)continue;let t=n.openInSource(e);if(t&&"object"==typeof t)return{source:n,result:t}}return null}function A_(e,t){if(!e)return;let{source:n}=e;return(n.i18nKey?t(n.i18nKey):n.title)||n.name}function Ak(e,t=2){if(0===e)return"0 Bytes";let n=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}`}function AS(e){let t,n,i,r,a,o,l=(0,j.c)(13),{t:s}=as(),{hideBackground:d}=e,c=void 0!==d&&d?I.az:I.Zp;return l[0]!==s?(t=s("inputs.files.common.access-policy.private.tooltip"),l[0]=s,l[1]=t):t=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.XAi,{})}),l[2]=n):n=l[2],l[3]!==s?(i=s("inputs.files.common.access-policy.private.label"),l[3]=s,l[4]=i):i=l[4],l[5]!==i?(r=(0,v.jsxs)(I.so,{align:"center",justify:"center",gap:2,children:[n,(0,v.jsx)(I.EY,{size:1,weight:"medium",muted:!0,children:i})]}),l[5]=i,l[6]=r):r=l[6],l[7]!==c||l[8]!==r?(a=(0,v.jsx)(c,{tone:"neutral",radius:2,padding:2,muted:!0,children:r}),l[7]=c,l[8]=r,l[9]=a):a=l[9],l[10]!==t||l[11]!==a?(o=(0,v.jsx)(tL.m_,{content:t,children:a}),l[10]=t,l[11]=a,l[12]=o):o=l[12],o}function AI(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(57),{accessPolicy:T,originalFilename:E,size:$,children:A,muted:D,disabled:z,onClick:P,isMenuOpen:R,onMenuOpen:N,setMenuButtonElement:O}=e,[V,M]=(0,_.useState)(null),[L,F]=(0,_.useState)(null);S[0]!==N?(t=()=>N(!0),S[0]=N,S[1]=t):t=S[1];let B=t;S[2]!==L||S[3]!==R||S[4]!==N?(n=e=>
1057{R&&("Escape"===e.key||"Tab"===e.key)&&(N(!1),L?.focus())},S[2]=L,S[3]=R,S[4]=N,S[5]=n):n=S[5],(0,I.Pm)(n),S[6]!==L||S[7]!==N?(i=e=>{L?.contains(e.target)||N(!1)},S[6]=L,S[7]=N,S[8]=i):i=S[8],S[9]!==V?(r=()=>[V],S[9]=V,S[10]=r):r=S[10],(0,I.PR)(i,r),S[11]!==O?(a=e=>{O(e),F(e)},S[11]=O,S[12]=a):a=S[12];let Y=a;S[13]!==R||S[14]!==V?(o=()=>{R&&V?.focus()},l=[R,V],S[13]=R,S[14]=V,S[15]=o,S[16]=l):(o=S[15],l=S[16]),(0,_.useEffect)(o,l);let{t:H}=as(),U=D||z?void 0:"button";return S[17]===Symbol.for("react.memo_cache_sentinel")?(s=(0,v.jsx)(eT.A1A,{}),S[17]=s):s=S[17],S[18]!==D?(d=(0,v.jsx)(I.Zp,{padding:3,tone:"transparent",shadow:1,radius:1,children:(0,v.jsx)(I.EY,{muted:D,children:s})}),S[18]=D,S[19]=d):d=S[19],S[20]!==D||S[21]!==E?(c=(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",muted:D,"data-testid":"file-name",weight:"medium",children:E}),S[20]=D,S[21]=E,S[22]=c):c=S[22],S[23]!==$?(u=Ak($),S[23]=$,S[24]=u):u=S[24],S[25]!==u?(p=(0,v.jsx)(I.EY,{size:1,muted:!0,"data-testid":"file-size",children:u}),S[25]=u,S[26]=p):p=S[26],S[27]!==c||S[28]!==p?(m=(0,v.jsxs)(I.BJ,{flex:1,space:2,marginLeft:3,children:[c,p]}),S[27]=c,S[28]=p,S[29]=m):m=S[29],S[30]!==m||S[31]!==d?(h=(0,v.jsxs)(I.so,{wrap:"nowrap",align:"center",children:[d,m]}),S[30]=m,S[31]=d,S[32]=h):h=S[32],S[33]!==P||S[34]!==h||S[35]!==U?(f=(0,v.jsx)(I.Zp,{as:U,radius:2,padding:2,tone:"inherit",onClick:P,flex:1,children:h}),S[33]=P,S[34]=h,S[35]=U,S[36]=f):f=S[36],S[37]!==T?(g="private"===T&&(0,v.jsx)(AS,{}),S[37]=T,S[38]=g):g=S[38],S[39]!==A?(y=(0,v.jsx)(I.W1,{ref:M,children:A}),S[39]=A,S[40]=y):y=S[40],S[41]!==H?(C=H("inputs.file.actions-menu.file-options.aria-label"),S[41]=H,S[42]=C):C=S[42],S[43]!==B||S[44]!==Y||S[45]!==C?(x=(0,v.jsx)(rl,{"aria-label":C,"data-testid":"options-menu-button",onClick:B,ref:Y}),S[43]=B,S[44]=Y,S[45]=C,S[46]=x):x=S[46],S[47]!==R||S[48]!==y||S[49]!==x?(b=(0,v.jsx)(tL.AM,{content:y,id:"file-actions-menu",portal:!0,open:R,constrainSize:!0,children:x}),S[47]=R,S[48]=y,S[49]=x,S[50]=b):b=S[50],S[51]!==g||S[52]!==b?(w=(0,v.jsx)(I.az,{padding:2,children:(0,v.jsxs)(I.so,{justify:"center",gap:2,children:[g,b]})}),S[51]=g,S[52]=b,S[53]=w):w=S[53],S[54]!==f||S[55]!==w?(k=(0,v.jsxs)(I.so,{wrap:"nowrap",justify:"space-between",align:"center",children:[f,w]}),S[54]=f,S[55]=w,S[56]=k):k=S[56],k}function AT(){let e,t,n,i=(0,j.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.EA,{padding:3,radius:1,animated:!0}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(T.r5,{style:{width:"100%"},radius:1,animated:!0}),i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsxs)(I.so,{align:"center",justify:"flex-start",padding:2,children:[e,(0,v.jsxs)(I.BJ,{flex:1,space:2,marginLeft:3,children:[t,(0,v.jsx)(T.r5,{style:{width:"100%"},radius:1,animated:!0})]})]}),i[2]=n):n=i[2],n}function AE(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(60),{accessPolicy:p,assetSources:m,clearField:h,directUploads:f,observeAsset:g,onOpenInSource:y,onSelectFiles:C,readOnly:x,schemaType:b,setBrowseButtonElement:w,setSelectedAssetSource:k,value:S}=e,{t:I}=as(),[T,E]=(0,_.useState)(!1),$=S?.asset,A=b.options?.sources;u[0]!==b?(t=(0,V.A)(b,"options.accept",""),u[0]=b,u[1]=t):t=u[1];let D=t;
1057u[2]!==m?(n=m.filter(A$),u[2]=m,u[3]=n):n=u[3];let z=n;u[4]!==m||u[5]!==k?(i=e=>{E(!1);let t=e.currentTarget.getAttribute("data-asset-source-name"),n=m.find(e=>e.name===t);n?k(n):console.warn(`No asset source found for the selected asset source name '${t}'`)},u[4]=m,u[5]=k,u[6]=i):i=u[6];let P=i;u[7]!==C?(r=(e,t)=>{E(!1),C(e,t)},u[7]=C,u[8]=r):r=u[8];let R=r;u[9]!==z[0]||u[10]!==R?(a=e=>{R(z[0],e)},u[9]=z[0],u[10]=R,u[11]=a):a=u[11];let N=a;e:{let e;if(A?.length===0||0===m.length){o=null;break e}if(1===m.length){let e,t;u[12]!==I?(e=I("inputs.file.browse-button.text"),u[12]=I,u[13]=e):e=u[13];let n=`file-input-browse-button-${m[0].name}`;u[14]!==m[0].name||u[15]!==P||u[16]!==x||u[17]!==e||u[18]!==n?(t=(0,v.jsx)(tL.Dr,{icon:eT.WIv,text:e,onClick:P,disabled:x,"data-testid":n,"data-asset-source-name":m[0].name}),u[14]=m[0].name,u[15]=P,u[16]=x,u[17]=e,u[18]=n,u[19]=t):t=u[19],o=t;break e}if(u[20]!==m||u[21]!==P||u[22]!==x||u[23]!==I){let t;u[25]!==P||u[26]!==x||u[27]!==I?(t=e=>(0,v.jsx)(tL.Dr,{text:(e.i18nKey?I(e.i18nKey):e.title)||(0,eu.A)(e.name),onClick:P,icon:e.icon||eT.xfq,disabled:x,"data-testid":`file-input-browse-button-${e.name}`,"data-asset-source-name":e.name},e.name),u[25]=P,u[26]=x,u[27]=I,u[28]=t):t=u[28],e=m.map(t),u[20]=m,u[21]=P,u[22]=x,u[23]=I,u[24]=e}else e=u[24];o=e}let O=o;switch(z.length){case 0:l=null;break;case 1:{let e,t,n=z[0].name;u[29]!==I?(e=I("inputs.files.common.actions-menu.upload.label"),u[29]=I,u[30]=e):e=u[30];let i=`file-input-upload-button-${z[0].name}`,r=x||!1===f;u[31]!==D||u[32]!==z[0].name||u[33]!==N||u[34]!==r||u[35]!==e||u[36]!==i?(t=(0,v.jsx)(Aj,{icon:eT.JMY,onSelect:N,accept:D,"data-asset-source-name":n,text:e,"data-testid":i,disabled:r}),u[31]=D,u[32]=z[0].name,u[33]=N,u[34]=r,u[35]=e,u[36]=i,u[37]=t):t=u[37],l=t;break}default:{let e;u[38]!==D||u[39]!==z||u[40]!==f||u[41]!==R||u[42]!==x?(e=(0,v.jsx)(Aa,{accept:D,assetSources:z,directUploads:f,onSelectFiles:R,readOnly:x,"data-testid":"file-input-upload-drop-down-menu-button",renderAsMenuGroup:!0}),u[38]=D,u[39]=z,u[40]=f,u[41]=R,u[42]=x,u[43]=e):e=u[43],l=e}}let M=l;return $?(u[44]===Symbol.for("react.memo_cache_sentinel")?(s=(0,v.jsx)(AT,{}),u[44]=s):s=u[44],u[45]!==p||u[46]!==m||u[47]!==O||u[48]!==h||u[49]!==T||u[50]!==y||u[51]!==x||u[52]!==w||u[53]!==M||u[54]!==S?(d=e=>(0,v.jsx)(AA,{accessPolicy:p,assetSources:m,browseMenuItem:O,clearField:h,fileAsset:e,isMenuOpen:T,onOpenInSource:y,readOnly:x,setIsMenuOpen:E,setBrowseButtonElement:w,uploadMenuItem:M,value:S}),u[45]=p,u[46]=m,u[47]=O,u[48]=h,u[49]=T,u[50]=y,u[51]=x,u[52]=w,u[53]=M,u[54]=S,u[55]=d):d=u[55],u[56]!==$||u[57]!==g||u[58]!==d?(c=(0,v.jsx)(Ax,{reference:$,observeAsset:g,waitPlaceholder:s,children:d}),u[56]=$,u[57]=g,u[58]=d,u[59]=c):c=u[59],c):null}function A$(e){return!!e.Uploader}function AA(e){let t,n,i,r,a,o,l,s=(0,j.c)(28),{accessPolicy:d,assetSources:c,browseMenuItem:u,clearField:p,fileAsset:m,isMenuOpen:h,onOpenInSource:f,readOnly:g,setIsMenuOpen:y,setBrowseButtonElement:C,uploadMenuItem:x,value:b}=e,{t:w}=as(),{originalFilename:_,extension:k,url:S,size:I}=m,T=_||`download.${k}`;(0,tQ.ql)(b)&&"private"!==d&&(n=`${S}?dl`,t=S),s[0]!==c||s[1]!==m?(i=Aw(m,c),s[0]=c,s[1]=m,s[2]=i):i=s[2];let E=i;s[3]!==m||s[4]!==f||s[5]!==E?(r=()=>{if(!E)return;let{source:e,result:t}=E;"url"===t.type?window.open(t.url,t.target||"_blank"):"component"===t.type&&f?.(e,m)},s[3]=m,s[4]=f,s[5]=E,s[6]=r):r=s[6];let $=r,A=!g,D=n,z=t,P=E?$:void 0;return s[7]!==E||s[8]!==w?(a=A_(E,w),s[7]=E,s[8]=w,s[9]=a):a=s[9],s[10]!==u||s[11]!==p||s[12]!==t||s[13]!==n||s[14]!==g||s[15]!==P||s[16]!==a||s[17]!==x?(o=(0,v.jsx)(Ab,{browse:u,upload:x,onReset:p,downloadUrl:D,copyUrl:z,openInSource:P,openInSourceName:a,readOnly:g}),s[10]=u,s[11]=p,s[12]=t,s[13]=n,s[14]=g,s[15]=P,s[16]=a,s[17]=x,s[18]=o):o=s[18],s[19]!==d||s[20]!==T||s[21]!==h||s[22]!==C||s[23]!==y||s[24]!==I||s[25]!==A||s[26]!==o?(l=(0,v.jsx)(AI,{accessPolicy:d,size:I,originalFilename:T,muted:A,onMenuOpen:y,isMenuOpen:h,setMenuButtonElement:C,children:o}),s[19]=d,s[20]=T,s[21]=h,s[22]=C,s[23]=y,s[24]=I,s[25]=A,s[26]=o,s[27]=l):l=s[27],l}function AD(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(20),{onClearValue:u}=e,{t:p}=as();return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.sAQ,{})})}
1057),c[0]=t):t=c[0],c[1]!==p?(n=p("inputs.file.invalid-file-warning.title"),c[1]=p,c[2]=n):n=c[2],c[3]!==n?(i=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:n}),c[3]=n,c[4]=i):i=c[4],c[5]!==p?(r=p("inputs.file.invalid-file-warning.description"),c[5]=p,c[6]=r):r=c[6],c[7]!==r?(a=(0,v.jsx)(I.EY,{size:1,children:r}),c[7]=r,c[8]=a):a=c[8],c[9]!==i||c[10]!==a?(o=(0,v.jsxs)(I.so,{gap:4,marginBottom:4,children:[t,(0,v.jsxs)(I.BJ,{space:3,children:[i,a]})]}),c[9]=i,c[10]=a,c[11]=o):o=c[11],c[12]!==p?(l=p("inputs.file.invalid-file-warning.reset-button.text"),c[12]=p,c[13]=l):l=c[13],c[14]!==u||c[15]!==l?(s=(0,v.jsx)(tL.$n,{icon:eT.NAP,mode:"ghost",onClick:u,text:l,width:"fill"}),c[14]=u,c[15]=l,c[16]=s):s=c[16],c[17]!==o||c[18]!==s?(d=(0,v.jsxs)(I.Zp,{tone:"caution",padding:4,border:!0,radius:2,children:[o,s]}),c[17]=o,c[18]=s,c[19]=d):d=c[19],d}let Az=["asset"];function AP(e){let t,n,i,r,a,o,l,s=(0,j.c)(35),{changed:d,clearField:c,directUploads:u,elementProps:p,isStale:m,isUploading:h,onCancelUpload:f,onClearUploadStatus:g,onSelectAssets:y,onSelectFiles:C,onStale:x,path:b,readOnly:w,schemaType:_,value:k}=e,S=_.options?.disableNew===!0;s[0]!==b?(t=b.concat(Az),s[0]=b,s[1]=t):t=s[1];let T=t;s[2]!==p?(n=e=>{e.currentTarget===e.target&&e.currentTarget===p.ref?.current&&p.onFocus(e)},s[2]=p,s[3]=n):n=s[3];let E=n;s[4]!==u||s[5]!==C||s[6]!==w?(i=(e,t)=>{u&&!w&&C(e,t)},s[4]=u,s[5]=C,s[6]=w,s[7]=i):i=s[7];let $=i,A=!!(k?._upload||k?.asset);if(k&&"u">typeof k.asset&&!k?._upload&&!(0,tQ.ql)(k)){let e;return s[8]!==c?(e=(0,v.jsx)(AD,{onClearValue:c}),s[8]=c,s[9]=e):e=s[9],e}s[10]!==m||s[11]!==g?(r=m&&(0,v.jsx)(I.az,{marginBottom:2,children:(0,v.jsx)(Ay,{onClearStale:g})}),s[10]=m,s[11]=g,s[12]=r):r=s[12];let D=!!e.focused;return s[13]!==S||s[14]!==p||s[15]!==E||s[16]!==$||s[17]!==A||s[18]!==h||s[19]!==f||s[20]!==y||s[21]!==x||s[22]!==e||s[23]!==w||s[24]!==_||s[25]!==k?(a=k?._upload?(0,v.jsx)(Ag,{uploadState:k._upload,onCancel:h&&f?f:void 0,onStale:x}):(0,v.jsx)(v_,{...p,$border:A,isReadOnly:w,onFocus:E,onSelectFile:e=>{let{assetSource:t,file:n}=e;return $(t,[n])},radius:2,sizing:"border",style:{padding:1},tabIndex:0,types:[_],children:(0,v.jsxs)("div",{style:{position:"relative"},children:[!k?.asset&&(0,v.jsx)(AR,{...e,disableNew:S,onSelectFiles:$}),!k?._upload&&k?.asset&&(0,v.jsx)(AE,{...e,onSelectAssets:y})]})}),s[13]=S,s[14]=p,s[15]=E,s[16]=$,s[17]=A,s[18]=h,s[19]=f,s[20]=y,s[21]=x,s[22]=e,s[23]=w,s[24]=_,s[25]=k,s[26]=a):a=s[26],s[27]!==T||s[28]!==d||s[29]!==D||s[30]!==a?(o=(0,v.jsx)(S1,{path:T,hasFocus:D,isChanged:d,children:a}),s[27]=T,s[28]=d,s[29]=D,s[30]=a,s[31]=o):o=s[31],s[32]!==r||s[33]!==o?(l=(0,v.jsxs)(v.Fragment,{children:[r,o]}),s[32]=r,s[33]=o,s[34]=l):l=s[34],l}function AR(e){let t,n,i=(0,j.c)(11),{assetSources:r,directUploads:a,disableNew:o,onSelectFiles:l,schemaType:s,readOnly:d}=e,c=d?"transparent":"inherit";return i[0]!==r||i[1]!==a||i[2]!==o||i[3]!==l||i[4]!==e||i[5]!==d||i[6]!==s?(t=o?(0,v.jsx)(AC,{...e}):(0,v.jsx)(Al,{assetSources:r,browse:(0,v.jsx)(AC,{...e}),directUploads:a,onUpload:l,schemaType:s,readOnly:d,type:"file"}),i[0]=r,i[1]=a,i[2]=o,i[3]=l,i[4]=e,i[5]=d,i[6]=s,i[7]=t):t=i[7],i[8]!==c||i[9]!==t?(n=(0,v.jsx)(I.Zp,{tone:c,border:!0,paddingX:3,paddingY:2,radius:2,children:t}),i[8]=c,i[9]=t,i[10]=n):n=i[10],n}function AN(e){let t,n,i,r,a,o,l=(0,j.c)(55),{isUploading:s,observeAsset:d,openInSourceAsset:c,schemaType:u,selectedAssetSource:p,setSelectedAssetSource:m,setOpenInSourceAsset:h,onSelectAssets:f,value:g,uploader:y}=e,{t:C}=as();l[0]!==u?(t=(0,V.A)(u,"options.accept",""),l[0]=u,l[1]=t):t=l[1];let x=t;l[2]!==h||l[3]!==m?(n=()=>{m(null),h(null)},l[2]=h,l[3]=m,l[4]=n):n=l[4];let b=n,w=c?"openInSource":s?"upload":"select";l[5]!==c||l[6]!==h?(i=e=>{"select"===e&&c&&h(null)},l[5]=c,l[6]=h,l[7]=i):i=l[7];let _=i;if(!p)return null;let k=p.component;if(c){let e,t,n;return l[8]!==C?(e=C("inputs.file.dialog.title"),l[8]=C,l[9]=e):e=l[9],l[10]!==c?(t=[c],l[10]=c,l[11]=t):t=l[11],l[12]!==k||l[13]!==x||l[14]!==w||l[15]!==b||l[16]!==_||l[17]!==f||l[18]!==c||l[19]!==u||l[20]!==p||l[21]!==e||l[22]!==t||l[23]!==y?(n=(0,v.jsx)(k,{accept:x,action:w,assetSource:p,assetType:"file",assetToOpen:c,dialogHeaderTitle:e,onClose:b,onSelect:f,onChangeAction:_,schemaType:u,selectedAssets:t,selectionType:"single",uploader:y}),l[12]=k,l[13]=x,l[14]=w,l[15]=b,l[16]=_,l[17]=f,l[18]=c,l[19]=u,l[20]=p,l[21]=e,l[22]=t,l[23]=y,l[24]=n):n=l[24],n}if(g&&g.asset){let e,t,n;return l[25]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(AT,{}
1057),l[25]=e):e=l[25],l[26]!==k||l[27]!==x||l[28]!==w||l[29]!==b||l[30]!==_||l[31]!==f||l[32]!==u||l[33]!==p||l[34]!==C||l[35]!==y?(t=e=>(0,v.jsx)(k,{accept:x,action:w,assetSource:p,assetType:"file",dialogHeaderTitle:C("inputs.file.dialog.title"),onChangeAction:_,onClose:b,onSelect:f,schemaType:u,selectedAssets:[e],selectionType:"single",uploader:y}),l[26]=k,l[27]=x,l[28]=w,l[29]=b,l[30]=_,l[31]=f,l[32]=u,l[33]=p,l[34]=C,l[35]=y,l[36]=t):t=l[36],l[37]!==d||l[38]!==t||l[39]!==g.asset?(n=(0,v.jsx)(Ax,{observeAsset:d,reference:g.asset,waitPlaceholder:e,children:t}),l[37]=d,l[38]=t,l[39]=g.asset,l[40]=n):n=l[40],n}return l[41]!==C?(r=C("inputs.file.dialog.title"),l[41]=C,l[42]=r):r=l[42],l[43]===Symbol.for("react.memo_cache_sentinel")?(a=[],l[43]=a):a=l[43],l[44]!==k||l[45]!==x||l[46]!==w||l[47]!==b||l[48]!==_||l[49]!==f||l[50]!==u||l[51]!==p||l[52]!==r||l[53]!==y?(o=(0,v.jsx)(k,{accept:x,action:w,assetSource:p,assetType:"file",dialogHeaderTitle:r,onChangeAction:_,onClose:b,onSelect:f,schemaType:u,selectedAssets:a,selectionType:"single",uploader:y}),l[44]=k,l[45]=x,l[46]=w,l[47]=b,l[48]=_,l[49]=f,l[50]=u,l[51]=p,l[52]=r,l[53]=y,l[54]=o):o=l[54],o}function AO({children:e}){return e}function AV(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x=(0,j.c)(88),{client:b,members:w,onChange:k,renderAnnotation:S,renderBlock:I,renderField:E,renderInlineBlock:$,renderInput:A,renderItem:D,renderPreview:z,schemaType:P,value:R}=e,{push:N}=(0,T.dj)(),{t:O}=as(),M=k8(P,w);x[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],x[0]=t):t=x[0];let[L,F]=(0,_.useState)(t),[B,Y]=(0,_.useState)(!1),[H,U]=(0,_.useState)(!1),[Z,q]=(0,_.useState)(!1),[W,J]=(0,_.useState)(null),{handleOpenDialog:K}=$8(),G=(0,_.useRef)(null),[X,Q]=(0,_.useState)(null),[ee,et]=(0,_.useState)(null);x[1]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{e&&(G.current=e)},x[1]=n):n=x[1];let en=n,ei=(0,_.useRef)(null);x[2]!==k?(i=()=>{k([hW(["asset"]),hW(["media"])])},x[2]=k,x[3]=i):i=x[3];let er=i;x[4]!==k||x[5]!==R?._upload?(r=()=>{R?._upload&&k(gD.from([hW(["_upload"])]))},x[4]=k,x[5]=R?._upload,x[6]=r):r=x[6];let ea=r;x[7]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{Y(!0)},x[7]=a):a=x[7];let eo=a;x[8]!==ea?(o=()=>{ei.current&&(ei.current?.unsubscribe(),ea())},x[8]=ea,x[9]=o):o=x[9];let el=o;x[10]!==el||x[11]!==b||x[12]!==ea||x[13]!==k||x[14]!==N||x[15]!==P||x[16]!==O?(l=(e,t,n)=>{let{source:i}=void 0===n?{}:n,r={metadata:(0,V.A)(P,"options.metadata"),storeOriginalFilename:(0,V.A)(P,"options.storeOriginalFilename"),source:i};el(),U(!0),k(gD.from([hU({_type:P.name})])),ei.current=e.upload(b,t,P,r).subscribe({next:e=>{e.patches&&k(gD.from(e.patches))},error:e=>{console.error(e),N({status:"error",description:O("inputs.file.upload-failed.description"),title:O("inputs.file.upload-failed.title")}),ea()},complete:()=>{U(!1)}})},x[10]=el,x[11]=b,x[12]=ea,x[13]=k,x[14]=N,x[15]=P,x[16]=O,x[17]=l):l=x[17];let es=l;x[18]!==k||x[19]!==P||x[20]!==es?(s=e=>{0!==e.length&&(Cy({assetsFromSource:e,onChange:k,type:P,resolveUploader:CU,uploadWith:es}),Q(null),J(null),U(!1))},x[18]=k,x[19]=P,x[20]=es,x[21]=s):s=x[21];let ed=s;x[22]===Symbol.for("react.memo_cache_sentinel")?(d=(e,t)=>{J(e),Q(t)},x[22]=d):d=x[22];let ec=d;x[23]!==ee||x[24]!==K||x[25]!==k||x[26]!==N||x[27]!==P||x[28]!==O?(c=(e,t)=>{if(0!==t.length&&(J(e),e.Uploader)){let n=new e.Uploader;ee?.unsubscribe();try{et({unsubscribe:n.subscribe(e=>{switch(e.type){case"progress":k(gD.from([hq(Math.max(2,e.progress),[CE,"progress"]),hq(new Date().toISOString(),[CE,"updatedAt"])]));break;case"error":e.files.forEach(AL),N({status:"error",description:O("asset-sources.common.uploader.upload-failed.description"),title:O("asset-sources.common.uploader.upload-failed.title")});break;case"all-complete":e.files.some(AM)&&K("field_action"),k(gD.from([hW([CE])])),J(null),U(!1)}}),uploader:n}),U(!0),k(gD.from(CO(t[0]))),n.upload(t,{schemaType:P,onChange:k})}catch(e){k(gD.from([hW([CE])])),U(!1),J(null),ee?.unsubscribe(),N({status:"error",description:O("asset-sources.common.uploader.upload-failed.description"),title:O("asset-sources.common.uploader.upload-failed.title")}),console.error(e)}}},x[23]=ee,x[24]=K,x[25]=k,x[26]=N,x[27]=P,x[28]=O,x[29]=c):c=x[29];let eu=c;x[30]!==b||x[31]!==R?(u={client:b,source:R},x[30]=b,x[31]=R,x[32]=u):u=x[32];let ep=jJ(u);x[33]!==ee?(p=()=>()=>{ee?.uploader?.abort(),ee?.unsubscribe()},m=[ee],x[33]=ee,x[34]=p,x[35]=m):(p=x[34],m=x[35]),(0,_.useEffect)(p,m),x[36]!==ee?.uploader?(h=()=>{ee?.uploader?.abort()},x[36]=ee?.uploader,x[37]=h):h=x[37];let em=h;x[38]!==ep||x[39]!==em||x[40]!==er||x[41]!==ea||x[42]!==ed||x[43]!==eu||x[44]!==L||x[45]!==Z||x[46]!==B||x[47]!==H||x[48]!==e||x[49]!==W?(f=()=>(0,v.jsx)(AP,{...e,accessPolicy:ep,browseButtonElementRef:G,clearField:er,hoveringFiles:L,isBrowseMenuOpen:Z,isStale:B,isUploading:H,onCancelUpload:em,onClearUploadStatus:ea,onOpenInSource:ec,onSelectAssets:ed,onSelectFiles:eu,onStale:eo,selectedAssetSource:W,setBrowseButtonElement:en,setHoveringFiles:F,setIsBrowseMenuOpen:q,setIsUploading:U,setSelectedAssetSource:J}),x[38]=ep,x[39]=em,x[40]=er,x[41]=ea,x[42]=ed,x[43]=eu,x[44]=L,x[45]=Z,x[46]=B,x[47]=H,x[48]=e,x[49]=W,x[50]=f):f=x[50];let eh=f;if(x[51]!==S||x[52]!==eh||x[53]!==I||x[54]!==E||x[55]!==$||x[56]!==A||x[57]!==D||x[58]!==z||x[59]!==M||x[60]!==O){let e;x[62]!==S||x[63]!==eh||x[64]!==I||x[65]!==E||x[66]!==$||x[67]!==A||x[68]!==D||x[69]!==z||x[70]!==O?(e=e=>"field"===e.kind?(0,v.jsx)(xt,{member:e,renderAnnotation:S,renderBlock:I,renderField:"asset"===e.name?AO:E,renderInlineBlock:$,renderInput:"asset"===e.name?eh:A,renderItem:D,renderPreview:z},e.key):"fieldSet"===e.kind?(0,v.jsx)(x9,{member:e,renderAnnotation:S,renderBlock:I,renderField:E,renderInlineBlock:$,renderInput:A,renderItem:D,renderPreview:z},e.key):"error"===e.kind?(0,v.jsx)(x4,{member:e},e.key):"decoration"===e.kind?(0,v.jsx)(x6,{member:e},e.key):(0,v.jsx)(_.Fragment,{children:O("inputs.file.error.unknown-member-kind",{kind:e.kind})},e.key),x[62]=S,x[63]=eh,x[64]=I,x[65]=E,x[66]=$,x[67]=A,x[68]=D,x[69]=z,x[70]=O,x[71]=e):e
1057=x[71],g=M.map(e),x[51]=S,x[52]=eh,x[53]=I,x[54]=E,x[55]=$,x[56]=A,x[57]=D,x[58]=z,x[59]=M,x[60]=O,x[61]=g}else g=x[61];return x[72]!==ee?.uploader||x[73]!==er||x[74]!==ea||x[75]!==ed||x[76]!==eu||x[77]!==L||x[78]!==Z||x[79]!==B||x[80]!==H||x[81]!==X||x[82]!==e||x[83]!==W?(y=W&&(0,v.jsx)(AN,{...e,browseButtonElementRef:G,clearField:er,hoveringFiles:L,isBrowseMenuOpen:Z,isStale:B,isUploading:H,onClearUploadStatus:ea,onStale:eo,onSelectAssets:ed,onSelectFiles:eu,openInSourceAsset:X,onOpenInSource:ec,selectedAssetSource:W,setBrowseButtonElement:en,setOpenInSourceAsset:Q,setHoveringFiles:F,setIsBrowseMenuOpen:q,setIsUploading:U,setSelectedAssetSource:J,uploader:ee?.uploader}),x[72]=ee?.uploader,x[73]=er,x[74]=ea,x[75]=ed,x[76]=eu,x[77]=L,x[78]=Z,x[79]=B,x[80]=H,x[81]=X,x[82]=e,x[83]=W,x[84]=y):y=x[84],x[85]!==g||x[86]!==y?(C=(0,v.jsxs)(v.Fragment,{children:[g,y]}),x[85]=g,x[86]=y,x[87]=C):C=x[87],C}function AM(e){return"error"===e.status&&$4(e.error)}function AL(e){console.error(e.error)}let AF=(0,eI.I4)(I.cV).withConfig({displayName:"Wrapper",componentId:"sc-x1j8sn-0"})`position:absolute;top:0;left:0;`;function AB(e){let t=(0,j.c)(1),{accessPolicy:n}=e;if("private"===n){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(AF,{padding:2,children:(0,v.jsx)(AS,{})}),t[0]=e):e=t[0],e}return null}let AY=["asset"],AH=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(37),{elementProps:u,handleClearUploadState:p,onSelectFile:m,inputProps:h,isStale:f,readOnly:g,renderAssetAccessPolicy:y,renderAssetMenu:C,renderPreview:x,renderUploadPlaceholder:b,renderUploadState:w,schemaType:_,value:k}=e,S=!!(k?._upload||k?.asset);c[0]!==h.path?(t=h.path.concat(AY),c[0]=h.path,c[1]=t):t=c[1];let T=t;c[2]!==k?(n=k?.asset?(0,tQ.vX)(k.asset):{},c[2]=k,c[3]=n):n=c[3];let{width:E,height:$}=n,A=void 0===E?0:E,D=void 0===$?0:$;c[4]!==D||c[5]!==A?(i={"--image-width":A,"--image-height":D},c[4]=D,c[5]=A,c[6]=i):i=c[6];let z=i;c[7]!==m?(r=e=>{let{assetSource:t,file:n}=e;m(t,n)},c[7]=m,c[8]=r):r=c[8];let P=r;c[9]!==u.ref?.current||c[10]!==h.elementProps?(a=e=>{e.currentTarget===e.target&&e.currentTarget===u.ref?.current&&h.elementProps.onFocus(e)},c[9]=u.ref?.current,c[10]=h.elementProps,c[11]=a):a=c[11];let R=a;c[12]!==p||c[13]!==f?(o=f&&(0,v.jsx)(I.az,{marginBottom:2,children:(0,v.jsx)(Ay,{onClearStale:p})}),c[12]=p,c[13]=f,c[14]=o):o=c[14];let N=!!h.focused;return c[15]!==u||c[16]!==R||c[17]!==P||c[18]!==S||c[19]!==g||c[20]!==y||c[21]!==C||c[22]!==x||c[23]!==b||c[24]!==w||c[25]!==_||c[26]!==k?(l=k?._upload?w(k._upload):(0,v.jsxs)(v_,{...u,$border:S,isReadOnly:g,onFocus:R,onSelectFile:P,radius:2,sizing:"border",tabIndex:0,types:[_],children:[!k?.asset&&b(),!k?._upload&&k?.asset&&(0,v.jsxs)("div",{style:{position:"relative"},children:[x(),y?.(),C()]})]}),c[15]=u,c[16]=R,c[17]=P,c[18]=S,c[19]=g,c[20]=y,c[21]=C,c[22]=x,c[23]=b,c[24]=w,c[25]=_,c[26]=k,c[27]=l):l=c[27],c[28]!==h.changed||c[29]!==T||c[30]!==N||c[31]!==l?(s=(0,v.jsx)(S1,{path:T,hasFocus:N,isChanged:h.changed,children:l}),c[28]=h.changed,c[29]=T,c[30]=N,c[31]=l,c[32]=s):s=c[32],c[33]!==z||c[34]!==s||c[35]!==o?(d=(0,v.jsxs)("div",{style:z,children:[o,s]}),c[33]=z,c[34]=s,c[35]=o,c[36]=d):d=c[36],d}),AU=(0,eI.I4)(I.cV).withConfig({displayName:"MenuActionsWrapper",componentId:"sc-19t65c2-0"})`position:absolute;top:0;right:0;`,AZ=()=>{let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(AU,{padding:2,children:(0,v.jsx)(T.EA,{style:{width:"25px",height:"25px"},animated:!0})}),t[0]=e):e=t[0],e};function Aq(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(38),{onEdit:f,children:g,showEdit:y,setHotspotButtonElement:C,setMenuButtonElement:x,onMenuOpen:b,isMenuOpen:w}=e,[k,S]=(0,_.useState)(null),[T,E]=(0,_.useState)(null);h[0]!==w||h[1]!==b?(t=()=>b(!w),h[0]=w,h[1]=b,h[2]=t):t=h[2];let $=t;h[3]!==T||h[4]!==w||h[5]!==b?(n=e=>{w&&("Escape"===e.key||"Tab"===e.key)&&(b(!1),T?.focus())},h[3]=T,h[4]=w,h[5]=b,h[6]=n):n=h[6],(0,I.Pm)(n),h[7]!==T||h[8]!==b?(i=e=>{T?.contains(e.target)||b(!1)},h[7]=T,h[8]=b,h[9]=i):i=h[9],h[10]!==k?(r=()=>[k],h[10]=k,h[11]=r):r=h[11],(0,I.PR)(i,r),h[12]!==x?(a=e=>{x(e),E(e)},h[12]=x,h[13]=a):a=h[13];let A=a;h[14]!==w||h[15]!==k?(o=()=>{w&&k?.focus()},l=[w,k],h[14]=w,h[15]=k,h[16]=o,h[17]=l):(o=h[16],l=h[17]),(0,_.useEffect)(o,l);let{t:D}=as();return h[18]!==f||h[19]!==C||h[20]!==y||h[21]!==D?(s=y&&(0,v.jsx)(tL.$n,{"aria-label":D("inputs.image.actions-menu.edit-details.aria-label"),"data-testid":"options-menu-edit-details",icon:eT.K1E,mode:"ghost",onClick:f,ref:C,tooltipProps:{content:D("inputs.image.actions-menu.crop-image-tooltip")}}),h[18]=f,h[19]=C,h[20]=y,h[21]=D,h[22]=s):s=h[22],h[23]!==g?(d=(0,v.jsx)(I.W1,{ref:S,children:g}),h[23]=g,h[24]=d):d=h[24],h[25]!==D?(c=D("inputs.image.actions-menu.options.aria-label"),h[25]=D,h[26]=c):c=h[26],h[27]!==$||h[28]!==A||h[29]!==c?(u=(0,v.jsx)(rl,{"aria-label":c,"data-testid":"options-menu-button",mode:"ghost",onClick:$,ref:A}),h[27]=$,h[28]=A,h[29]=c,h[30]=u):u=h[30],h[31]!==w||h[32]!==u||h[33]!==d?(p=(0,v.jsx)(tL.AM,{id:"image-actions-menu",content:d,portal:!0,open:w,constrainSize:!0,children:u}),h[31]=w,h[32]=u,h[33]=d,h[34]=p):p=h[34],h[35]!==p||h[36]!==s?(m=(0,v.jsx)(tL.vE,{children:(0,v.jsxs)(AU,{"data-buttons":!0,space:1,padding:2,children:[s,p]})}),h[35]=p,h[36]=s,h[37]=m):m=h[37],m}let AW=(0,_.memo)(function(e){let t,n,i,r=(0,j.c)(40),{accessPolicy:a,assetSources:o,directUploads:l,handleOpenDialog:s,handleRemoveButtonClick:d,onSelectFile:c,handleSelectImageFromAssetSource:u,imageUrlBuilder:p,isImageToolEnabled:m,isMenuOpen:h,observeAsset:f,onOpenInSource:g,readOnly:y,schemaType:C,setHotspotButtonElement:x,setMenuButtonElement:b,setMenuOpen:w,value:_}=e,{t:k}=as();r[0]!==C?(t=(0,V.A)(C,"options.accept","image/*"),r[0]=C,r[1]=t):t=r[1];let S=t,I=_?.asset,T=_&&I&&m;if(!I)return null;r[2]!==o||r[3]!==u||r[4]!==y||r[5]!==w||r[6]!==k?(n=o&&0===o.length?null:(0,v.jsx)(tL.Dr,{icon:eT.WIv,text:k("inputs.image.browse-menu.text"),onClick:()=>{w(!1),u(o[0])},disabled:y,"data-testid":"file-input-browse-button"}),r[2]=o,r[3]=u,r[4]=y,r[5]=w,r[6]=k,r[7]=n):n=r[7];let E=n;if(o&&o.length>1){let e;if(r[8]!==o||r[9]!==u||r[10]!==y||r[11]!==w||r[12]!==k){let t;r[14]!==u||r[15]!==y||r[16]!==w||r[17]!==k?(t=e=>(0,v.jsx)(tL.Dr,{text:(e.i18nKey?k(e.i18nKey):e.title)||(0,eu.A)(e.name),onClick:()=>{w(!1),u(e)},icon:e.icon||eT.xfq,"data-testid":`file-input-browse-button-${e.name}`,disabled:y},e.name),r[14]=u,r[15]=y,r[16]=w,r[17]=k,r[18]=t):t=r[18],e=o.map(t),r[8]=o,r[9]=u,r[10]=y,r[11]=w,r[12]=k,r[13]=e}else e=r[13];E=e}let $=!!T;return r[19]!==S||r[20]!==a||r[21]!==I||r[22]!==o||r[23]!==E||r[24]!==l||r[25]!==s||r[26]!==d||r[27]!==p||r[28]!==h||r[29]!==f||r[30]!==g||r[31]!==c||r[32]!==y||r[33]!==C||r[34]!==x||r[35]!==b||r[36]!==w||r[37]!==$||r[38]!==_?(i=(0,v.jsx)(AK,{accept:S,accessPolicy:a,assetSources:o,browseMenuItem:E,directUploads:l,handleOpenDialog:s,handleRemoveButtonClick:d,onSelectFile:c,imageUrlBuilder:p,isMenuOpen:h,observeAsset:f,onOpenInSource:g,readOnly:y,reference:I,schemaType:C,setHotspotButtonElement:x,setMenuButtonElement:b,setMenuOpen:w,showAdvancedEditButton:$,value:_}),r[19]=S,r[20]=a,r[21]=I,r[22]=o,r[23]=E,r[24]=l,r[25]=s,r[26]=d,r[27]=p,r[28]=h,r[29]=f,r[30]=g,r[31]=c,r[32]=y,r[33]=C,r[34]=x,r[35]=b,r[36]=w,r[37]=$,r[38]=_,r[39]=i):i=r[39],i});function AJ(e){return!!e.Uploader}let AK=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(59),{accept:h,accessPolicy:f,assetSources:g,browseMenuItem:y,directUploads:C,handleOpenDialog:x,handleRemoveButtonClick:b,onSelectFile:w,imageUrlBuilder:_,isMenuOpen:k,onOpenInSource:S,observeAsset:I,readOnly:T,reference:E,setHotspotButtonElement:$,setMenuButtonElement:A,setMenuOpen:D,showAdvancedEditButton:z,value:P}=e,{t:R}=as(),N=E?._ref;m[0]!==N||m[1]!==I?(t=I(N),m[0]=N,m[1]=I,m[2]=t):t=m[2];let O=(0,tF.J)(t);m[3]!==g?(n=g.filter(AJ),m[3]=g,m[4]=n):n=m[4];let V=n;m[5]!==O||m[6]!==g?(i=O?Aw(O,g):null,m[5]=O,m[6]=g,m[7]=i):i=m[7];let M=i;m[8]!==w?(r=(e,t)=>
1057{w(e,t[0])},m[8]=w,m[9]=r):r=m[9];let L=r;m[10]!==V[0]||m[11]!==L?(a=e=>{L(V[0],e)},m[10]=V[0],m[11]=L,m[12]=a):a=m[12];let F=a;m[13]!==O||m[14]!==S||m[15]!==M?(o=()=>{if(!M||!O)return;let{source:e,result:t}=M;"url"===t.type?window.open(t.url,t.target||"_blank"):"component"===t.type&&S?.(e,O)},m[13]=O,m[14]=S,m[15]=M,m[16]=o):o=m[16];let B=o;if(!N||!O){let e;return m[17]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(AZ,{}),m[17]=e):e=m[17],e}let{_id:Y,originalFilename:H,extension:U}=O;if((0,tQ.LG)(P)&&"private"!==f){let e,t,n=H||`download.${U}`;m[18]!==Y||m[19]!==n||m[20]!==_?(e=_.image(Y).forceDownload(n).url(),m[18]=Y,m[19]=n,m[20]=_,m[21]=e):e=m[21],s=e,m[22]!==Y||m[23]!==_?(t=_.image(Y).url(),m[22]=Y,m[23]=_,m[24]=t):t=m[24],l=t}switch(V.length){case 0:d=null;break;case 1:{let e,t,n=V[0].name;m[25]!==R?(e=R("inputs.files.common.actions-menu.upload.label"),m[25]=R,m[26]=e):e=m[26];let i=T||!1===C;m[27]!==h||m[28]!==V[0].name||m[29]!==F||m[30]!==e||m[31]!==i?(t=(0,v.jsx)(Aj,{icon:eT.JMY,onSelect:F,accept:h,"data-asset-source-name":n,text:e,"data-testid":"file-input-upload-button",disabled:i}),m[27]=h,m[28]=V[0].name,m[29]=F,m[30]=e,m[31]=i,m[32]=t):t=m[32],d=t;break}default:{let e;m[33]!==h||m[34]!==V||m[35]!==C||m[36]!==L||m[37]!==T?(e=(0,v.jsx)(Aa,{accept:h,assetSources:V,directUploads:C,onSelectFiles:L,readOnly:T,renderAsMenuGroup:!0}),m[33]=h,m[34]=V,m[35]=C,m[36]=L,m[37]=T,m[38]=e):e=m[38],d=e}}let Z=!!z,q=d,W=s,J=M?B:void 0;return m[39]!==M||m[40]!==R?(c=A_(M,R),m[39]=M,m[40]=R,m[41]=c):c=m[41],m[42]!==y||m[43]!==l||m[44]!==s||m[45]!==b||m[46]!==T||m[47]!==c||m[48]!==J||m[49]!==d?(u=(0,v.jsx)(Ab,{upload:q,browse:y,onReset:b,downloadUrl:W,openInSource:J,openInSourceName:c,copyUrl:l,readOnly:T}),m[42]=y,m[43]=l,m[44]=s,m[45]=b,m[46]=T,m[47]=c,m[48]=J,m[49]=d,m[50]=u):u=m[50],m[51]!==x||m[52]!==k||m[53]!==$||m[54]!==A||m[55]!==D||m[56]!==u||m[57]!==Z?(p=(0,v.jsx)(Aq,{isMenuOpen:k,onEdit:x,onMenuOpen:D,setHotspotButtonElement:$,setMenuButtonElement:A,showEdit:Z,children:u}),m[51]=x,m[52]=k,m[53]=$,m[54]=A,m[55]=D,m[56]=u,m[57]=Z,m[58]=p):p=m[58],p}),AG=(0,_.memo)(function(e){let t,n,i,r,a,o=(0,j.c)(47),{handleAssetSourceClosed:l,handleSelectAssetFromSource:s,isUploading:d,observeAsset:c,openInSourceAsset:u,schemaType:p,selectedAssetSource:m,setOpenInSourceAsset:h,uploader:f,value:g}=e;o[0]!==p?(t=(0,V.A)(p,"options.accept","image/*"),o[0]=p,o[1]=t):t=o[1];let y=t,C=u?"openInSource":d?"upload":"select";o[2]!==u||o[3]!==h?(n=e=>{"select"===e&&u&&h(null)},o[2]=u,o[3]=h,o[4]=n):n=o[4];let x=n;o[5]!==l||o[6]!==h?(i=()=>{l(),h(null)},o[5]=l,o[6]=h,o[7]=i):i=o[7];let b=i;if(!m)return null;let{component:w}=m;if(u){let e,t;return o[8]!==u?(e=[u],o[8]=u,o[9]=e):e=o[9],o[10]!==w||o[11]!==y||o[12]!==C||o[13]!==x||o[14]!==b||o[15]!==s||o[16]!==u||o[17]!==p||o[18]!==m||o[19]!==e||o[20]!==f?(t=(0,v.jsx)(w,{accept:y,action:C,assetSource:m,assetType:"image",assetToOpen:u,onChangeAction:x,onClose:b,onSelect:s,schemaType:p,selectedAssets:e,selectionType:"single",uploader:f}),o[10]=w,o[11]=y,o[12]=C,o[13]=x,o[14]=b,o[15]=s,o[16]=u,o[17]=p,o[18]=m,o[19]=e,o[20]=f,o[21]=t):t=o[21],t}if(g&&g.asset){let e,t;return o[22]!==w||o[23]!==y||o[24]!==C||o[25]!==x||o[26]!==b||o[27]!==s||o[28]!==p||o[29]!==m||o[30]!==f?(e=e=>(0,v.jsx)(w,{accept:y,action:C,assetSource:m,assetType:"image",onChangeAction:x,onClose:b,onSelect:s,schemaType:p,selectedAssets:[e],selectionType:"single",uploader:f}),o[22]=w,o[23]=y,o[24]=C,o[25]=x,o[26]=b,o[27]=s,o[28]=p,o[29]=m,o[30]=f,o[31]=e):e=o[31],o[32]!==c||o[33]!==e||o[34]!==g.asset?(t=(0,v.jsx)(Ax,{observeAsset:c,reference:g.asset,children:e}),o[32]=c,o[33]=e,o[34]=g.asset,o[35]=t):t=o[35],t}return o[36]===Symbol.for("react.memo_cache_sentinel")?(r=[],o[36]=r):r=o[36],o[37]!==w||o[38]!==y||o[39]!==C||o[40]!==x||o[41]!==b||o[42]!==s||o[43]!==p||o[44]!==m||o[45]!==f?(a=(0,v.jsx)(w,{accept:y,action:C,assetSource:m,assetType:"image",onChangeAction:x,onClose:b,onSelect:s,schemaType:p,selectedAssets:r,selectionType:"single",uploader:f}),o[37]=w,o[38]=y,o[39]=C,o[40]=x,o[41]=b,o[42]=s,o[43]=p,o[44]=m,o[45]=f,o[46]=a):a=o[46],a}),AX={portal:!0},AQ=(0,_.memo)((0,_.forwardRef)(function(e,t){let n,i,r,a=(0,j.c)(32),{assetSources:o,readOnly:l,id:s,setMenuOpen:d,handleSelectImageFromAssetSource:c,schemaType:u}=e,p=u.options?.sources,{t:m}=as();if(p?.length===0||o&&0===o.length)return null;if(o&&o.length>1&&!l){let e,n,i,r,u,p=`${s}_assetImageButton`;if(a[0]!==m?(e=m("inputs.image.browse-menu.text"),a[0]=m,a[1]=e):e=a[1],a[2]!==e?(n=(0,v.jsx)(tL.$n,{"data-testid":"file-input-multi-browse-button",icon:eT.WIv,iconRight:eT.D3D,mode:"bleed",text:e}),a[2]=e,a[3]=n):n=a[3],a[4]!==o||a[5]!==c||a[6]!==l||a[7]!==d||a[8]!==m){let e;a[10]!==c||a[11]!==l||a[12]!==d||a[13]!==m?(e=e=>(0,v.jsx)(tL.Dr,{text:(e.i18nKey?m(e.i18nKey):e.title)||(0,eu.A)(e.name),onClick:()=>{d(!1),c(e)},icon:e.icon||eT.xfq,disabled:l,"data-testid":`file-input-browse-button-${e.name}`},e.name),a[10]=c,a[11]=l,a[12]=d,a[13]=m,a[14]=e):e=a[14],i=o.map(e),a[4]=o,a[5]=c,a[6]=l,a[7]=d,a[8]=m,a[9]=i}else i=a[9];return a[15]!==i?(r=(0,v.jsx)(I.W1,{children:i}),a[15]=i,a[16]=r):r=a[16],a[17]!==t||a[18]!==p||a[19]!==n||a[20]!==r?(u=(0,v.jsx)(tL.IU,{id:p,ref:t,button:n,menu:r,popover:AX}),a[17]=t,a[18]=p,a[19]=n,a[20]=r,a[21]=u):u=a[21],u}return a[22]!==m?(n=m("inputs.image.browse-menu.text"),a[22]=m,a[23]=n):n=a[23],a[24]!==o[0]||a[25]!==c||a[26]!==d?(i=()=>{d(!1),c(o[0])},a[24]=o[0],a[25]=c,a[26]=d,a[27]=i):i=a[27],a[28]!==l||a[29]!==n||a[30]!==i?(r=(0,v.jsx)(tL.$n,{text:n,icon:eT.WIv,mode:"bleed",onClick:i,"data-testid":"file-input-browse-button",disabled:l}),a[28]=l,a[29]=n,a[30]=i,a[31]=r):r=a[31],r})),A1=(0,eI.I4)(I.az).withConfig({displayName:"RatioBox",componentId:"sc-z3271e-0"})`position:relative;padding-bottom:calc(${({ratio:e=1.5})=>1/e} * 100%);& > div{position:absolute;top:${({padding:e=0})=>e}px;left:${({padding:e=0})=>e}px;right:${({padding:e=0})=>e}px;bottom:${({padding:e=0})=>e}px;}`,A2={x:.5,y:.5,height:1,width:1},A5={top:0,left:0,right:0,bottom:0};function A0(e){if(!e)return null;if("aspectRatio"in e)return e.aspectRatio;if("height"in e||"width"in e){if("number"!=typeof e.height&&"number"!=typeof e.width)throw Error(`Height and width must be numbers, got ${JSON.stringify(e)}`);return e.width/e.height}return null}function A7(e,t=2){let n=Math.pow(10,t);return Math.round(e*n)/n}function A3(e){return 0===e?0:`${e}%`}function A8(e){return A3(A7(100*e))}let A4=eI.I4.div.withConfig({displayName:"HotspotImageContainer",componentId:"sc-1j0h6c9-0"})`position:relative;width:100%;`,A6=tH("sanity-imagetool"),A9=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(36),{alignX:p,alignY
1057:m,alt:h,aspectRatio:f,className:g,crop:y,hotspot:C,onError:x,onLoad:b,src:w,srcAspectRatio:k,srcSet:S,style:I}=e,T=void 0===p?"center":p,E=void 0===m?"center":m,$=void 0===f?"none":f,A=void 0===y?A5:y,D=void 0===C?A2:C,[z,P]=(0,_.useState)(null),R=(0,_.useRef)(null),N=(0,_.useRef)(null);u[0]!==$?(t=()=>{if(R.current)if("auto"===$){let e=R.current.parentNode;(0,_.startTransition)(()=>P(e.offsetWidth/e.offsetHeight))}else P(null)},u[0]=$,u[1]=t):t=u[1];let O=t;u[2]!==w||u[3]!==O?(n=()=>{let e=N.current;return e&&e.src&&e.complete&&void 0!==e.naturalWidth&&(A6("Image '%s' already loaded, refreshing (from cache) to trigger onLoad / onError",w),e.src=e.src),(0,_.startTransition)(()=>O()),window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O)}},i=[w,O],u[2]=w,u[3]=O,u[4]=n,u[5]=i):(n=u[4],i=u[5]),(0,_.useEffect)(n,i);e:{if("none"===$){let e,t,n;u[6]!==A||u[7]!==k?(e=A?(t=1/k,((n=k*t)-(A.left+A.right)*n)/(t-(A.top+A.bottom)*t)):k,u[6]=A,u[7]=k,u[8]=e):e=u[8],r=e;break e}if("auto"===$){r=z;break e}r=$||null}let V=r||k;u[9]!==T||u[10]!==E||u[11]!==A||u[12]!==D||u[13]!==k||u[14]!==V?(a=function(e={}){var t;let n,i=A0(e.image)||1,r=e.hotspot||A2,a=e.crop||A5,o=A0(e.container)||i*(n=1-(t=a).top-t.bottom,(1-t.left-t.right)/n),l=function(e,t,n){let i,r,a,o=t.crop,l=n.aspect,s=n.align,d=1-o.left-o.right,c=1-o.top-o.bottom,u={top:-o.top/c,left:-o.left/d,width:1/d,height:1/c},p=d/c*e,m={x:(t.hotspot.x-o.left)/d,y:(t.hotspot.y-o.top)/c,height:t.hotspot.height/c,width:t.hotspot.width/d},h=Math.min(1/m.width,1/m.height*p/l),f=p<=l;if((i=f?1:p/l)>h){let e;r="letterbox";a={width:e=f?1-(i-h):h,height:e/p*l,left:0,top:0};let t=m.x*a.width-m.width*a.width/2;switch(s.x){case"left":a.left=f?0:-t;break;case"right":a.left=f?1-a.width:t;break;case"center":a.left=f?(1-a.width)/2:-t;break;default:throw Error(`Invalid x alignment: '${s.x}
1057'. Must be either 'left', 'right' or 'center'`)}let n=m.y*a.height-m.height*a.height/2;switch(s.y){case"top":a.top=f?-n:0;break;case"bottom":a.top=n;break;case"center":a.top=f?-n:(1-a.height)/2;break;default:throw Error(`Invalid y alignment: '${s.y}'. Must be either 'top', 'bottom' or 'center'`)}}else if(f){r="full_width";let e=-m.y/p*l+.5,t=i/p*l;e>0?e=0:-e>t-1&&(e=-(t-1)),a={width:i,height:t,left:0,top:e}}else{r="full_height";let e=.5-m.x*i;e>0?e=0:-e>i-1&&(e=-(i-1)),a={width:i,height:i/p*l,top:0,left:e}}return{method:r,crop:a,image:u}}(i,{hotspot:r,crop:a},{aspect:o,align:e.align||{x:"center",y:"center"}}),s=A3(A7(100/o));return{debug:{result:l},container:{overflow:"hidden",position:"relative",width:"100%",height:s},padding:{marginTop:s},crop:{position:"absolute",overflow:"hidden",height:A8(l.crop.height),width:A8(l.crop.width),top:A8(l.crop.top),left:A8(l.crop.left)},image:{position:"absolute",height:A8(l.image.height),width:A8(l.image.width),top:A8(l.image.top),left:A8(l.image.left)}}}({container:{aspectRatio:V},image:{aspectRatio:k},hotspot:D,crop:A,align:{x:T,y:E}}),u[9]=T,u[10]=E,u[11]=A,u[12]=D,u[13]=k,u[14]=V,u[15]=a):a=u[15];let M=a,L=`${void 0===g?"":g}`;return u[16]!==M.padding?(o=(0,v.jsx)("div",{style:M.padding}),u[16]=M.padding,u[17]=o):o=u[17],u[18]!==h||u[19]!==x||u[20]!==b||u[21]!==w||u[22]!==S||u[23]!==M.image?(l=(0,v.jsx)("img",{ref:N,src:w,alt:h,srcSet:S,onLoad:b,onError:x,style:M.image}),u[18]=h,u[19]=x,u[20]=b,u[21]=w,u[22]=S,u[23]=M.image,u[24]=l):l=u[24],u[25]!==l||u[26]!==M.crop?(s=(0,v.jsx)("div",{style:M.crop,children:l}),u[25]=l,u[26]=M.crop,u[27]=s):s=u[27],u[28]!==o||u[29]!==s||u[30]!==M.container?(d=(0,v.jsxs)("div",{style:M.container,children:[o,s]}),u[28]=o,u[29]=s,u[30]=M.container,u[31]=d):d=u[31],u[32]!==I||u[33]!==L||u[34]!==d?(c=(0,v.jsx)(A4,{className:L,style:I,ref:R,children:d}),u[32]=I,u[33]=L,u[34]=d,u[35]=c):c=u[35],c});function De(e){let t,n,i,r=(0,j.c)(8),{src:a,children:o}=e,[l,s]=(0,_.useState)(!0),[d,c]=(0,_.useState)(null),[u,p]=(0,_.useState)(null);return r[0]!==a?(t=()=>{c(null),p(null),s(!0);let e=new Image;e.onload=()=>{c(e),p(null),s(!1)},e.onerror=()=>{p(Error(`Could not load image from ${JSON.stringify(a)}`)),s(!1)},e.referrerPolicy="strict-origin-when-cross-origin",e.src=a},n=[a],r[0]=a,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,_.useEffect)(t,n),r[3]!==o||r[4]!==u||r[5]!==d||r[6]!==l?(i=o({image:d,error:u,isLoading:l}),r[3]=o,r[4]=u,r[5]=d,r[6]=l,r[7]=i):i=r[7],i}function Dt(e){let{image:t,maxHeight:n,maxWidth:i,children:r}=e,a=t.width/t.height,o=t.width>t.height,l={width:o?i:n*a,height:o?i/a:n};return l.width>i&&(l.width=i,l.height=i/a),l.height>n&&(l.height=n,l.width=n*a),r(l)}let Dn=e=>e.left+e.width/2,Di=e=>e.top+e.height/2,Dr=e=>({width:1-e.left-e.right,height:1-e.top-e.bottom,left:e.left,right:1-e.right,top:e.top,bottom:1-e.bottom}),Da=(e,t,n)=>({x:(t.x-e.x)/n.width,y:(t.y-e.y)/n.height}),Do=(e,t)=>{let n=Dr(t),i=Math.min(e.width,n.width),r=Math.min(e.height,n.height),a=n.left+i/2,o=n.right-i/2,l=n.top+r/2,s=n.bottom-r/2;return{x:Math.min(Math.max(e.x,a),o),y:Math.min(Math.max(e.y,l),s),width:i,height:r}},Dl=(e,t)=>{let{x:n,y:i,width:r,height:a}=e.hotspot||A2,o=e.crop||A5;return Do({x:n+t.x,y:i+t.y,width:r,height:a},o)},Ds=e=>{let{initialHotspot:t,crop:n,initialCursor:i,pointerPos:r,innerRect:a}=e,o=Dr(n),l=o.width,s=o.height,d=o.left,c=o.right,u=o.top,p=o.bottom,m=r.x-i.x,h=r.y-i.y,f=t.width*a.width,g=t.height*a.height,y=(f+2*m)/a.width,C=(g+2*h)/a.height;y=Math.max(0,y),C=Math.max(0,C),y=Math.min(y,l),C=Math.min(C,s);let x=t.x,b=t.y,v=d+y/2,j=c-y/2;x<v?x=v:x>j&&(x=j);let w=u+C/2,_=p-C/2;return b<w?b=w:b>_&&(b=_),{crop:n,hotspot:{...t,x:x,y:b,width:y,height:C}}},Dd=e=>{let{initialCrop:t,initialHotspot:n,initialCursor:i,pointerPos:r,innerRect:a}=e,o=Da(i,r,a),{top:l,right:s,bottom:d,left:c}=t,u=c+o.x,p=s-o.x,m=l+o.y,h=d-o.y,f=Dr(t),g=f.width,y=f.height;u<0?(u=0,p=1-g):p<0?(p=0,u=1-g):u+p>1&&(o.x>0?(u=1-g,p=0):(u=0,p=1-g)),m<0?(m=0,h=1-y):h<0?(h=0,m=1-y):m+h>1&&(o.y>0?(m=1-y,h=0):(m=0,h=1-y));let C={top:m,right:p,bottom:h,left:u},x=.5-(u+p)/2,b=.5-(m+h)/2,v=Do({...n,x:n.x+(x-(.5-(c+s)/2)),y:n.y+(b-(.5-(l+d)/2))},C);return{crop:C,hotspot:v}},Dc=e=>{let{initialCrop:t,initialHotspot:n,initialCursor:i,pointerPos:r,innerRect:a,activeHandle:o}=e,l=o.startsWith("crop-")?o.slice(5):"",s=Da(i,r,a),{left:d,right:c,top:u,bottom:p}=t;switch(l){case"left":d=Math.min(Math.max(t.left+s.x,0),1-t.right-.05);break;case"right":c=Math.min(Math.max(t.right-s.x,0),1-t.left-.05);break;case"top":u=Math.min(Math.max(t.top+s.y,0),1-t.bottom-.05);break;case"bottom":p=Math.min(Math.max(t.bottom-s.y,0),1-t.top-.05);break;case"topLeft":d=Math.min(Math.max(t.left+s.x,0),1-t.right-.05),u=Math.min(Math.max(t.top+s.y,0),1-t.bottom-.05);break;case"topRight":c=Math.min(Math.max(t.right-s.x,0),1-t.left-.05),u=Math.min(Math.max(t.top+s.y,0),1-t.bottom-.05);break;case"bottomLeft":d=Math.min(Math.max(t.left+s.x,0),1-t.right-.05),p=Math.min(Math.max(t.bottom-s.y,0),1-t.top-.05);break;case"bottomRight":c=Math.min(Math.max(t.right-s.x,0),1-t.left-.05),p=Math.min(Math.max(t.bottom-s.y,0),1-t.top-.05)}let m={left:d,right:c,top:u,bottom:p},h=Do(n,m);return{crop:m,hotspot:h}},Du={"crop-top":"ns-resize","crop-bottom":"ns-resize","crop-left":"ew-resize","crop-right":"ew-resize","crop-topRight":"nesw-resize","crop-bottomLeft":"nesw-resize","crop-topLeft":"nwse-resize","crop-bottomRight":"nwse-resize"},Dp=e=>({width:2*e,height:e}),Dm=e=>({width:e,height:2*e}),Dh=e=>({width:2*e,height:e}),Df=e=>({width:e,height:2*e}),Dg={cornerPath:(x=8,f=4,`M ${-f} ${12} 1058 L ${-f} ${-f} 1059 L ${12} ${-f} 1060 L ${12} ${f} 1061 L ${f} ${f} 1062 L ${f} ${12} 1063 Z`),edgeDimensions:{top:Dp(8),right:Dm(8),bottom:Dh(8),left:Df(8)}},Dy=eI.I4.div.withConfig({displayName:"SVGContainer",componentId:"sc-lsgs4f-0"})`position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:visible;touch-action:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;`,DC=eI.I4.svg.withConfig({displayName:"StyledSVG",componentId:"sc-lsgs4f-1"})`display:block;overflow:visible;shape-rendering:crispEdges;`,Dx=eI.I4.rect.withConfig({displayName:"DarkenedOverlay",componentId:"sc-lsgs4f-2"})`fill:rgba(0,0,0,0.5);pointer-events:none;`,Db=e=>{let{color:t}=(0,nN.JW)(e.theme);return e.$focused?t.focusRing:"#000"},Dv=eI.I4.rect.withConfig({displayName:"CropRect",componentId:"sc-lsgs4f-3"})`fill:none;stroke:${e=>{let{color:t}=(0,nN.JW)(e.theme);return e.$focused?t.focusRing:e.$hovered?"rgba(255, 255, 255, 1)":"rgba(255, 255, 255, .5)"}};stroke-opacity:1;stroke-width:1px;outline:none;${e=>e.$focused&&(0,eI.AH)` 1064 stroke-width: 2px; 1065 filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.3)); 1066 `}`,Dj=eI.I4.path.withConfig({displayName:"CropCornerHandle",componentId:"sc-lsgs4f-4"})`fill:#fff;stroke:${Db};stroke-width:1;outline:none;`,Dw=eI.I4.rect.withConfig({displayName:"CropEdgeHandle",componentId:"sc-lsgs4f-5"})`fill:#fff;stroke:${Db};stroke-width:1;outline:none;`,D_=eI.I4.ellipse.withConfig({displayName:"HotspotEllipse",componentId:"sc-lsgs4f-6"})`fill:transparent;stroke:${e=>{let{color:t}=(0,nN.JW)(e.theme);return e.$focused?t.focusRing:e.$hovered?"rgba(255, 255, 255, 1)":"rgba(255, 255, 255, .5)"}};stroke-opacity:1;stroke-width:1px;outline:none;${e=>e.$focused&&(0,eI.AH)` 1067 stroke-width: 2px; 1068 `}`,Dk=eI.I4.circle.withConfig({displayName:"HotspotHandle",componentId:"sc-lsgs4f-7"})`fill:#fff;stroke:${Db};stroke-width:1;outline:none;`,DS=eI.I4.rect.withConfig({displayName:"CropHandleInteractionArea",componentId:"sc-lsgs4f-8"})`fill:transparent;stroke:transparent;pointer-events:all;`,DI=eI.I4.circle.withConfig({displayName:"HotspotHandleInteractionArea",componentId:"sc-lsgs4f-9"})`fill:transparent;stroke:transparent;pointer-events:all;`,DT=eI.I4.g.withConfig({displayName:"Guidelines",componentId:"sc-lsgs4f-10"})`${e=>{let{color:t}=(0,nN.JW)(e.theme);return(0,eI.AH)` 1069 stroke: ${t.fg}; 1070 stroke-opacity: 0.2; 1071 stroke-width: 1px; 1072 stroke-dasharray: 3, 3; 1073 pointer-events: none; 1074 `}}`;function DE(e){e.preventDefault()}let D$=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,I,T,E,$,A,D,z,P,R,N,O,V,M,L,F,B,Y,H,U,Z,q,W,J,K,G,X,Q,ee,et,en,ei,er,ea,eo,el,es,ed,ec,eu,ep,em,eh=(0,j.c)(229),{value:ef,image:eg,onChange:e
1074y,onChangeEnd:eC,readOnly:ex,size:eb}=e,ev=(0,_.useRef)(null),ej=(0,_.useRef)(null),ew=(0,_.useRef)(null),[e_,ek]=(0,_.useState)(null);eh[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,ii.A)(),eh[0]=t):t=eh[0];let eS=`hotspotClip-${t}`;eh[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{let e=ev.current;if(e)return e.addEventListener("touchmove",DE,{passive:!1}),()=>{e.removeEventListener("touchmove",DE)}},i=[],eh[1]=n,eh[2]=i):(n=eh[1],i=eh[2]),(0,_.useEffect)(n,i),eh[3]!==eb||eh[4]!==ef?(r={size:eb,value:ef},eh[3]=eb,eh[4]=ef,eh[5]=r):r=eh[5];let{innerRect:eI,cropRect:eT,constrainedHotspot:eE,hotspotRect:e$}=function(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(29),{size:u,value:p}=e;c[0]!==u.height||c[1]!==u.width?(t={left:0,top:0,width:u.width,height:u.height},c[0]=u.height,c[1]=u.width,c[2]=t):t=c[2];let m=t,h=m.width-24,f=m.height-24,g=m.width/m.height;h/f>g?n=(i=f)*g:i=(n=h)/g;let y=m.left+(m.width-n)/2,C=m.top+(m.height-i)/2;c[3]!==i||c[4]!==y||c[5]!==C||c[6]!==n?(r={left:y,top:C,width:n,height:i},c[3]=i,c[4]=y,c[5]=C,c[6]=n,c[7]=r):r=c[7];let x=r,b=p.crop||A5;c[8]!==b?(a=Dr(b),c[8]=b,c[9]=a):a=c[9];let v=a,w=x.left+x.width*b.left,_=x.top+x.height*b.top,k=x.width*v.width,S=x.height*v.height;c[10]!==w||c[11]!==_||c[12]!==k||c[13]!==S?(o={left:w,top:_,width:k,height:S},c[10]=w,c[11]=_,c[12]=k,c[13]=S,c[14]=o):o=c[14];let I=o,T=p.hotspot||A2,E=p.crop||A5;c[15]!==E||c[16]!==T?(l=Do(T,E),c[15]=E,c[16]=T,c[17]=l):l=c[17];let $=l,A=x.left+x.width*($.x-$.width/2),D=x.top+x.height*($.y-$.height/2),z=x.width*$.width,P=x.height*$.height;c[18]!==A||c[19]!==D||c[20]!==z||c[21]!==P?(s={left:A,top:D,width:z,height:P},c[18]=A,c[19]=D,c[20]=z,c[21]=P,c[22]=s):s=c[22];let R=s;return c[23]!==$||c[24]!==I||c[25]!==R||c[26]!==m||c[27]!==x?(d={imageRect:m,innerRect:x,cropRect:I,constrainedHotspot:$,hotspotRect:R},c[23]=$,c[24]=I,c[25]=R,c[26]=m,c[27]=x,c[28]=d):d=c[28],d}(r),{hoverTarget:eA,handleMouseEnter:eD,handleMouseLeave:ez,handleHotspotMouseEnter:eP,handleHotspotHandleMouseEnter:eR,handleCropMouseEnter:eN,getCropHandleMouseEnter:eO}=function(){let e,t,n,i,r,a,o,l=(0,j.c)(8),[s,d]=(0,_.useState)(null);l[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{d(e)},l[0]=e):e=l[0];let c=e;l[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{d(null)},l[1]=t):t=l[1];let u=t;l[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c("hotspot"),l[2]=n):n=l[2];let p=n;l[3]===Symbol.for("react.memo_cache_sentinel")?(i=()=>c("hotspotHandle"),l[3]=i):i=l[3];let m=i;l[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>c("crop"),l[4]=r):r=l[4];let h=r;l[5]===Symbol.for("react.memo_cache_sentinel")?(a=e=>()=>c(`crop-${e}`),l[5]=a):a=l[5];let f=a;return l[6]!==s?(o={hoverTarget:s,handleMouseEnter:c,handleMouseLeave:u,handleHotspotMouseEnter:p,handleHotspotHandleMouseEnter:m,handleCropMouseEnter:h,getCropHandleMouseEnter:f},l[6]=s,l[7]=o):o=l[7],o}();eh[6]!==eI||eh[7]!==ey||eh[8]!==ex||eh[9]!==eb||eh[10]!==ef?(a={value:ef,onChange:ey,innerRect:eI,svgRef:ev,size:eb,readOnly:ex,hotspotRef:ew,cropRef:ej},eh[6]=eI,eh[7]=ey,eh[8]=ex,eh[9]=eb,eh[10]=ef,eh[11]=a):a=eh[11];let{dragTarget:eV,activeHandle:eM,handlePointerDown:eL,handlePointerMove:eF,resetDragState:eB}=function(e){let t,n,i,r,a=(0,j.c)(25),{value:o,onChange:l,innerRect:s,svgRef:d,size:c,readOnly:u,hotspotRef:p,cropRef:m}=e,h=(0,_.useRef)(null),f=(0,_.useRef)(null),g=(0,_.useRef)(null),[y,C]=(0,_.useState)(null),[x,b]=(0,_.useState)(null),[v,w]=(0,_.useState)(null);a[0]!==m||a[1]!==p||a[2]!==u||a[3]!==c.height||a[4]!==c.width||a[5]!==d||a[6]!==o.crop||a[7]!==o.hotspot?(t=e=>{if(u)return;let t=d.current;if(!t)return;let n=t.getBoundingClientRect(),i=(e.clientX-n.left)/n.width*c.width,r=(e.clientY-n.top)/n.height*c.height;C({x:i,y:r}),f.current={x:i,y:r},h.current={...o.crop||A5},g.current={...o.hotspot||A2};let a=e.currentTarget.dataset.handle;"hotspotHandle"===a?(b("hotspotHandle"),p.current?.focus()):"hotspot"===a?(b("hotspot"),p.current?.focus()):a&&a.startsWith("crop-")?(w(a),b("cropHandle"),m.current?.focus()):"crop"===a&&(b("crop"),m.current?.focus()),t.setPointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation()},a[0]=m,a[1]=p,a[2]=u,a[3]=c.height,a[4]=c.width,a[5]=d,a[6]=o.crop,a[7]=o.hotspot,a[8]=t):t=a[8];let k=t;a[9]!==v||a[10]!==y||a[11]!==x||a[12]!==s||a[13]!==l||a[14]!==c||a[15]!==d||a[16]!==o.crop?(n=e=>{var t;let n,i=d.current;if(!i||!x||!y||!f.current||!h.current||!g.current)return;let r=(n=i.getBoundingClientRect(),{x:(e.clientX-n.left)/n.width*c.width,y:(e.clientY-n.top)/n.height*c.height});if("hotspot"===x){let e;l((t={crop:o.crop||A5,hotspot:g.current},e=Da(f.current,r,s),{crop:t.crop||A5,hotspot:Dl(t,e)}))}else"hotspotHandle"===x?l(Ds({initialHotspot:g.current,crop:o.crop||A5,initialCursor:f.current,pointerPos:r,innerRect:s})):"crop"===x?l(Dd({initialCrop:h.current,initialHotspot:g.current,initialCursor:f.current,pointerPos:r,innerRect:s})):"cropHandle"===x&&v&&l(Dc({initialCrop:h.current,initialHotspot:g.current,initialCursor:f.current,pointerPos:r,innerRect:s,activeHandle:v}))},a[9]=v,a[10]=y,a[11]=x,a[12]=s,a[13]=l,a[14]=c,a[15]=d,a[16]=o.crop,a[17]=n):n=a[17];let S=n;a[18]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{b(null),w(null),C(null),h.current=null,f.current=null,g.current=null},a[18]=i):i=a[18];let I=i;return a[19]!==v||a[20]!==y||a[21]!==x||a[22]!==k||a[23]!==S?(r={dragTarget:x,activeHandle:v,dragStart:y,handlePointerDown:k,handlePointerMove:S,resetDragState:I},a[19]=v,a[20]=y,a[21]=x,a[22]=k,a[23]=S,a[24]=r):r=a[24],r}(a);eh[12]!==e_||eh[13]!==eI||eh[14]!==ey||eh[15]!==eC||eh[16]!==ex||eh[17]!==ef?(o={value:ef,onChange:e
1074y,onChangeEnd:eC,innerRect:eI,focusTarget:e_,readOnly:ex},eh[12]=e_,eh[13]=eI,eh[14]=ey,eh[15]=eC,eh[16]=ex,eh[17]=ef,eh[18]=o):o=eh[18];let{handleKeyDown:eY,handleKeyUp:eH}=function(e){let t,n,i,r,a,o,l=(0,j.c)(20),{value:s,onChange:d,onChangeEnd:c,innerRect:u,focusTarget:p,readOnly:m}=e,h=(0,_.useRef)(null),f=(0,_.useRef)(null),g=(0,_.useRef)(null),y=(0,_.useRef)(null);l[0]!==c||l[1]!==s?(t=()=>{(h.current||f.current)&&(c({crop:s.crop||A5,hotspot:s.hotspot||A2}),h.current=null,f.current=null,g.current=null)},l[0]=c,l[1]=s,l[2]=t):t=l[2];let C=t;l[3]!==u?(n=e=>{let t,{e:n,crop:i,hotspot:r,isCtrlOrCmdPressed:a,step:o,resizeStep:l}=e;if(a){let e={x:g.current.x,y:g.current.y};switch(n.key){case"ArrowUp":e.y=e.y-u.height*l;break;case"ArrowDown":e.y=e.y+u.height*l;break;case"ArrowLeft":e.x=e.x-u.width*l;break;case"ArrowRight":e.x=e.x+u.width*l;break;default:return null}t=Ds({initialHotspot:r,crop:i,initialCursor:g.current,pointerPos:e,innerRect:u})}else{let e={x:0,y:0};switch(n.key){case"ArrowUp":e.y=-o;break;case"ArrowDown":e.y=o;break;case"ArrowLeft":e.x=-o;break;case"ArrowRight":e.x=o;break;default:return null}t={hotspot:Dl({hotspot:r,crop:i},e),crop:i}}return t},l[3]=u,l[4]=n):n=l[4];let x=n;l[5]!==u?(i=e=>{let{e:t,crop:n,hotspot:i,isCtrlOrCmdPressed:r,step:a,resizeStep:o}=e;if(r){let e,r={x:g.current.x,y:g.current.y};switch(t.key){case"ArrowUp":e="crop-bottom",r.y=r.y-u.height*o;break;case"ArrowDown":e="crop-bottom",r.y=r.y+u.height*o;break;case"ArrowLeft":e="crop-right",r.x=r.x-u.width*o;break;case"ArrowRight":e="crop-right",r.x=r.x+u.width*o;break;default:return null}if(e)return Dc({initialCrop:n,initialHotspot:i,initialCursor:g.current,pointerPos:r,innerRect:u,activeHandle:e})}else{let e={x:g.current.x,y:g.current.y};switch(t.key){case"ArrowUp":e.y=e.y-u.height*a;break;case"ArrowDown":e.y=e.y+u.height*a;break;case"ArrowLeft":e.x=e.x-u.width*a;break;case"ArrowRight":e.x=e.x+u.width*a;break;default:return null}return Dd({initialCrop:n,initialHotspot:i,initialCursor:g.current,pointerPos:e,innerRect:u})}return null},l[5]=u,l[6]=i):i=l[6];let b=i;l[7]!==p||l[8]!==b||l[9]!==x||l[10]!==u||l[11]!==d||l[12]!==m||l[13]!==s?(r=e=>{if(null!==y.current&&window.clearTimeout(y.current),m||!p||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key))return;let t=s.crop||A5,n=s.hotspot||A2;h.current={...t},f.current={...n},g.current={x:u.width/2,y:u.height/2};let i=e.shiftKey,r=e.ctrlKey||e.metaKey,a=i?.025:.005,o=i?.025:.005,l=null;"hotspot"===p||"hotspotHandle"===p?l=x({e:e,crop:t,hotspot:n,isCtrlOrCmdPressed:r,step:a,resizeStep:o}):("crop"===p||"cropHandle"===p)&&(l=b({e:e,crop:t,hotspot:n,isCtrlOrCmdPressed:r,step:a,resizeStep:o})),l&&(d(l),e.preventDefault())},l[7]=p,l[8]=b,l[9]=x,l[10]=u,l[11]=d,l[12]=m,l[13]=s,l[14]=r):r=l[14];let v=r;l[15]!==C?(a=e=>{null!==y.current&&window.clearTimeout(y.current),y.current=window.setTimeout(()=>{C(),y.current=null},300)},l[15]=C,l[16]=a):a=l[16];let w=a;return l[17]!==v||l[18]!==w?(o={handleKeyDown:v,handleKeyUp:w},l[17]=v,l[18]=w,l[19]=o):o=l[19],o}(o);eh[19]!==eT?(l=(e=>{let t={top:{x:e.left+e.width/2,y:e.top},right:{x:e.left+e.width,y:e.top+e.height/2},bottom:{x:e.left+e.width/2,y:e.top+e.height},left:{x:e.left,y:e.top+e.height/2},topLeft:{x:e.left,y:e.top},topRight:{x:e.left+e.width,y:e.top},bottomLeft:{x:e.left,y:e.top+e.height},bottomRight:{x:e.left+e.width,y:e.top+e.height}},n={topLeft:0,topRight:90,bottomRight:180,bottomLeft:270},i={};for(let e of["top","right","bottom","left"]){let n=Dg.edgeDimensions[e],r=t[e];i[e]={visual:{left:r.x-n.width/2,top:r.y-n.height/2,width:n.width,height:n.height},hit:{left:r.x-12,top:r.y-12,width:24,height:24}}}for(let e of["topLeft","topRight","bottomLeft","bottomRight"]){let r=t[e];i[e]={visual:{left:r.x-24,top:r.y-24,width:48,height:48},hit:{left:r.x-12,top:r.y-12,width:24,height:24},path:Dg.cornerPath,position:r,rotation:n[e]}}return i})(eT),eh[19]=eT,eh[20]=l):l=eh[20];let eU=l;eh[21]!==e$?(eu=.25*Math.PI,ep=e$.width/2,em=e$.height/2,s={x:Dn(e$)+Math.cos(eu)*ep,y:Di(e$)+Math.sin(eu)*em},eh[21]=e$,eh[22]=s):s=eh[22],eh[23]!==s?(d={...s,radius:8,hitRadius:12},eh[23]=s,eh[24]=d):d=eh[24];let eZ=d;eh[25]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{ek(e)},eh[25]=c):c=eh[25];let eq=c;eh[26]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{ek(null)},eh[26]=u):u=eh[26];let eW=u;eh[27]===Symbol.for("react.memo_cache_sentinel")?(p=()=>eq("hotspot"),eh[27]=p):p=eh[27];let eJ=p;eh[28]===Symbol.for("react.memo_cache_sentinel")?(m=()=>eW(),eh[28]=m):m=eh[28];let eK=m;eh[29]===Symbol.for("react.memo_cache_sentinel")?(h=()=>eq("crop"),eh[29]=h):h=eh[29];let eG=h;eh[30]===Symbol.for("react.memo_cache_sentinel")?(f=()=>eW(),eh[30]=f):f=eh[30];let eX=f;eh[31]!==eE||eh[32]!==eV||eh[33]!==eC||eh[34]!==eB||eh[35]!==ef.crop||eh[36]!==ef.hotspot?(g=e=>{let t=ev.current;t&&(eV&&("hotspot"===eV||"hotspotHandle"===eV?eC({hotspot:eE,crop:ef.crop||A5}):("crop"===eV||"cropHandle"===eV)&&eC({crop:ef.crop||A5,hotspot:ef.hotspot||A2})),t.releasePointerCapture(e.pointerId),eB())},eh[31]=eE,eh[32]=eV,eh[33]=eC,eh[34]=eB,eh[35]=ef.crop,eh[36]=ef.hotspot,eh[37]=g):g=eh[37];let eQ=g;eh[38]!==eM||eh[39]!==eV||eh[40]!==eA?(y="crop"===eV||"hotspot"===eV?"grabbing":"hotspotHandle"===eV?"move":"cropHandle"===eV&&eM?Du[eM]||"move":eA?"crop"===eA||"hotspot"===eA?"grab":"hotspotHandle"===eA?"move":"string"==typeof eA&&eA in Du?Du[eA]:"default":"default",eh[38]=eM,eh[39]=eV,eh[40]=eA,eh[41]=y):y=eh[41];let e1=y;eh[42]!==eD?(C=()=>eD("crop"),eh[42]=eD,eh[43]=C):C=eh[43];let e2=C;eh[44]!==eA?(x=e=>!!eA&&("crop"===eA||eA===`crop-${e}`),eh[44]=eA,eh[45]=x):x=eh[45];let e5=x,e0=`0 0 ${eb.width} ${eb.height}`,e7=ex?"default":e1,e3=`${eb.width}px`,e8=`${eb.height}px`;eh[46]!==e7||eh[47]!==e3||eh[48]!==e8?(b={cursor:e7,width:e3,height:e8},eh[46]=e7,eh[47]=e3,eh[48]=e8,eh[49]=b):b=eh[49],eh[50]!==eg.src||eh[51]!==eI.height||eh[52]!==eI.left||eh[53]!==eI.top||eh[54]!==eI.width?(w=(0,v.jsx)("image",{href:eg.src,x:eI.left,y:eI.top,width:eI.width,height:eI.height,opacity:.25,preserveAspectRatio:"xMidYMid meet"}),eh[50]=eg.src,eh[51]=eI.height,eh[52]=eI.left,eh[53]=eI.top,eh[54]=eI.width,eh[55]=w):w=eh[55];let e4=-eT.left+eI.left,e6=-eT.top+eI.top;eh[56]!==eg.src||eh[57]!==eI.height||eh[58]!==eI.width||eh[59]!==e4||eh[60]!==e6?(k=(0,v.jsx)("image",{href:eg.src,x:e4,y:e6,width:eI.width,height:eI.height,preserveAspectRatio:"xMidYMid meet"}),eh[56]=eg.src,eh[57]=eI.height,eh[58]=eI.width,eh[59]=e4,eh[60]=e6,eh[61]=k):k=eh[61],eh[62]!==eT.height||eh[63]!==eT.width?(S=(0,v.jsx)(Dx,{x:"0",y:"0",width:eT.width,height:eT.height}),eh[62]=eT.height,eh[63]=eT.width,eh[64]=S):S=eh[64],eh[65]!==eT.height||eh[66]!==eT.width||eh[67]!==eN||eh[68]!==eL?(I=(0,v.jsx)("rect",{x:"0",y:"0",width:eT.width,height:eT.height,fill:"transparent","data-handle":"crop",onPointerDown:eL,onMouseEnter:eN}),eh[65]=eT.height,eh[66]=eT.width,eh[67]=eN,eh[68]=eL,eh[69]=I):I=eh[69],eh[70]!==eT.height||eh[71]!==eT.left||eh[72]!==eT.top||eh[73]!==eT.width||eh[74]!==eN||eh[75]!==ez||eh[76]!==eL||eh[77]!==k||eh[78]!==S||eh[79]!==I?(T=(0,v.jsxs)("svg",{x:eT.left,y:eT.top,width:eT.width,height:eT.height,overflow:"hidden","data-handle":"crop",onPointerDown:eL,onMouseEnter:eN,onMouseLeave:ez,children:[k,S,I]}),eh[70]=eT.height,eh[71]=eT.left,eh[72]=eT.top,eh[73]=eT.width,eh[74]=eN,eh[75]=ez,eh[76]=eL,eh[77]=k,eh[78]=S,eh[79]=I,eh[80]=T):T=eh[80],eh[81]!==e$?(E=Dn(e$),eh[81]=e$,eh[82]=E):E=eh[82],eh[83]!==e$?($=Di(e$),eh[83]=e$,eh[84]=$):$=eh[84];let e9=e$.width/2,te=e$.height/2;eh[85]!==E||eh[86]!==$||eh[87]!==e9||eh[88]!==te?(A=(0,v.jsx)("defs",{children:(0,v.jsx)("clipPath",{id:eS,children:(0,v.jsx)("ellipse",{cx:E,cy:$,rx:e9,ry:te})})}),eh[85]=E,eh[86]=$,eh[87]=e9,eh[88]=te,eh[89]=A):A=eh[89],eh[90]!==eg.src||eh[91]!==eI.height||eh[92]!==eI.left||eh[93]!==eI.top||eh[94]!==eI.width?(D=(0,v.jsx)("image",{href:eg.src,x:eI.left,y:eI.top,width:eI.width,height:eI.height,clipPath:`url(#${eS})`,preserveAspectRatio:"xMidYMid meet"}),eh[90]=eg.src,eh[91]=eI.height,eh[92]=eI.left,eh[93]=eI.top,eh[94]=eI.width,eh[95]=D):D=eh[95],eh[96]!==e$?(z=Dn(e$),eh[96]=e$,eh[97]=z):z=eh[97],eh[98]!==e$?(P=Di(e$),eh[98]=e$,eh[99]=P):P=eh[99];let tt=Math.max(.01,e$.width/2),tn=Math.max(.01,e$.height/2),ti=!ex&&("hotspot"===eA||"hotspotHandle"===eA||"hotspot"===eV||"hotspotHandle"===eV),tr=!ex&&"hotspot"===e_,ta=ex?-1:0;eh[100]===Symbol.for("react.memo_cache_sentinel")?(R={pointerEvents:"visiblePainted"},eh[100]=R):R=eh[100],eh[101]!==eP||eh[102]!==eY||eh[103]!==eH||eh[104]!==ez||eh[105]!==eL||eh[106]!==z||eh[107]!==P||eh[108]!==tt||eh[109]!==tn||eh[110]!==ti||eh[111]!==tr||eh[112]!==ta?(N=(0,v.jsx)(D_,{ref:ew,cx:z,cy:P,rx:tt,ry:tn,$hovered:ti,$focused:tr,"data-handle":"hotspot",onPointerDown:eL,tabIndex:ta,onMouseEnter:eP,onMouseLeave:ez,onFocus:eJ,onBlur:eK,onKeyDown:eY,onKeyUp:eH,style:R}),eh[101]=eP,eh[102]=eY,eh[103]=eH,eh[104]=ez,eh[105]=eL,eh[106]=z,eh[107]=P,eh[108]=tt,eh[109]=tn,eh[110]=ti,eh[111]=tr,eh[112]=ta,eh[113]=N):N=eh[113],eh[114]!==eV||eh[115]!==e_||eh[116]!==eR||eh[117]!==ez||eh[118]!==eL||eh[119]!==eZ||eh[120]!==eA||eh[121]!==ex?(O=!ex&&(0,v.jsxs)("g",{children:[(0,v.jsx)(DI,{cx:eZ.x,cy:eZ.y,r:eZ.hitRadius,"data-handle":"hotspotHandle",onPointerDown:eL,onMouseEnter:eR,onMouseLeave:ez,style:{pointerEvents:"visiblePainted"}}),(0,v.jsx)(Dk,{cx:eZ.x,cy:eZ.y,r:eZ.radius,$hovered:!ex&&("hotspot"===eA||"hotspotHandle"===eA||"hotspot"===eV||"hotspotHandle"===eV),$focu
1074sed:!ex&&"hotspot"===e_,pointerEvents:"none"})]}),eh[114]=eV,eh[115]=e_,eh[116]=eR,eh[117]=ez,eh[118]=eL,eh[119]=eZ,eh[120]=eA,eh[121]=ex,eh[122]=O):O=eh[122],eh[123]!==N||eh[124]!==O?(V=(0,v.jsxs)("g",{children:[N,O]}),eh[123]=N,eh[124]=O,eh[125]=V):V=eh[125],eh[126]!==e$?(M=Dn(e$),eh[126]=e$,eh[127]=M):M=eh[127];let to=eI.top;eh[128]!==e$?(L=Dn(e$),eh[128]=e$,eh[129]=L):L=eh[129],eh[130]!==eI?(F=eI.top+eI.height,eh[130]=eI,eh[131]=F):F=eh[131],eh[132]!==eI.top||eh[133]!==M||eh[134]!==L||eh[135]!==F?(B=(0,v.jsx)("line",{x1:M,y1:to,x2:L,y2:F}),eh[132]=eI.top,eh[133]=M,eh[134]=L,eh[135]=F,eh[136]=B):B=eh[136];let tl=eI.left;eh[137]!==e$?(Y=Di(e$),eh[137]=e$,eh[138]=Y):Y=eh[138],eh[139]!==eI?(H=eI.left+eI.width,eh[139]=eI,eh[140]=H):H=eh[140],eh[141]!==e$?(U=Di(e$),eh[141]=e$,eh[142]=U):U=eh[142],eh[143]!==eI.left||eh[144]!==Y||eh[145]!==H||eh[146]!==U?(Z=(0,v.jsx)("line",{x1:tl,y1:Y,x2:H,y2:U}),eh[143]=eI.left,eh[144]=Y,eh[145]=H,eh[146]=U,eh[147]=Z):Z=eh[147];let ts=e$.left,td=eI.top,tc=e$.left;eh[148]!==eI?(q=eI.top+eI.height,eh[148]=eI,eh[149]=q):q=eh[149],eh[150]!==e$.left||eh[151]!==eI.top||eh[152]!==q?(W=(0,v.jsx)("line",{x1:ts,y1:td,x2:tc,y2:q}),eh[150]=e$.left,eh[151]=eI.top,eh[152]=q,eh[153]=W):W=eh[153],eh[154]!==e$?(J=e$.left+e$.width,eh[154]=e$,eh[155]=J):J=eh[155];let tu=eI.top;eh[156]!==e$?(K=e$.left+e$.width,eh[156]=e$,eh[157]=K):K=eh[157],eh[158]!==eI?(G=eI.top+eI.height,eh[158]=eI,eh[159]=G):G=eh[159],eh[160]!==eI.top||eh[161]!==J||eh[162]!==K||eh[163]!==G?(X=(0,v.jsx)("line",{x1:J,y1:tu,x2:K,y2:G}),eh[160]=eI.top,eh[161]=J,eh[162]=K,eh[163]=G,eh[164]=X):X=eh[164];let tp=eI.left,tm=e$.top;eh[165]!==eI?(Q=eI.left+eI.width,eh[165]=eI,eh[166]=Q):Q=eh[166],eh[167]!==e$.top||eh[168]!==eI.left||eh[169]!==Q?(ee=(0,v.jsx)("line",{x1:tp,y1:tm,x2:Q,y2:e$.top}),eh[167]=e$.top,eh[168]=eI.left,eh[169]=Q,eh[170]=ee):ee=eh[170];let th=eI.left;eh[171]!==e$?(et=e$.top+e$.height,eh[171]=e$,eh[172]=et):et=eh[172],eh[173]!==eI?(en=eI.left+eI.width,eh[173]=eI,eh[174]=en):en=eh[174],eh[175]!==e$?(ei=e$.top+e$.height,eh[175]=e$,eh[176]=ei):ei=eh[176],eh[177]!==eI.left||eh[178]!==et||eh[179]!==en||eh[180]!==ei?(er=(0,v.jsx)("line",{x1:th,y1:et,x2:en,y2:ei}),eh[177]=eI.left,eh[178]=et,eh[179]=en,eh[180]=ei,eh[181]=er):er=eh[181],eh[182]!==B||eh[183]!==Z||eh[184]!==W||eh[185]!==X||eh[186]!==ee||eh[187]!==er?(ea=(0,v.jsxs)(DT,{children:[B,Z,W,X,ee,er]}),eh[182]=B,eh[183]=Z,eh[184]=W,eh[185]=X,eh[186]=ee,eh[187]=er,eh[188]=ea):ea=eh[188],eh[189]!==eV||eh[190]!==eA||eh[191]!==ex?(eo=!ex&&("crop"===eA||!!eA?.startsWith("crop-")||"crop"===eV||"cropHandle"===eV),eh[189]=eV,eh[190]=eA,eh[191]=ex,eh[192]=eo):eo=eh[192];let tf=!ex&&"crop"===e_,tg=ex?-1:0;return eh[193]!==eT.height||eh[194]!==eT.left||eh[195]!==eT.top||eh[196]!==eT.width||eh[197]!==e2||eh[198]!==eY||eh[199]!==eH||eh[200]!==ez||eh[201]!==eL||eh[202]!==eo||eh[203]!==tf||eh[204]!==tg?(el=(0,v.jsx)(Dv,{ref:ej,x:eT.left,y:eT.top,width:eT.width,height:eT.height,$hovered:eo,$focused:tf,"data-handle":"crop",onPointerDown:eL,tabIndex:tg,onMouseEnter:e2,onMouseLeave:ez,onFocus:eG,onBlur:eX,onKeyDown:eY,onKeyUp:eH}),eh[193]=eT.height,eh[194]=eT.left,eh[195]=eT.top,eh[196]=eT.width,eh[197]=e2,eh[198]=eY,eh[199]=eH,eh[200]=ez,eh[201]=eL,eh[202]=eo,eh[203]=tf,eh[204]=tg,eh[205]=el):el=eh[205],eh[206]!==eU||eh[207]!==e_||eh[208]!==eO||eh[209]!==ez||eh[210]!==eL||eh[211]!==e5||eh[212]!==ex?(es=!ex&&Object.entries(eU).map(e=>{let[t,n]=e;return(0,v.jsxs)("g",{children:[(0,v.jsx)(DS,{x:n.hit.left,y:n.hit.top,width:n.hit.width,height:n.hit.height,"data-handle":`crop-${t}`,onPointerDown:eL,onMouseEnter:eO(t),onMouseLeave:ez,style:{pointerEvents:"all"}}),["topLeft","topRight","bottomLeft","bottomRight"].includes(t)?(0,v.jsx)("g",{transform:`translate(${n.position?.x??0}, ${n.position?.y??0}) rotate(${n.rotation??0})`,children:(0,v.jsx)(Dj,{d:n.path,$hovered:!ex&&e5(t),$focused:!ex&&"crop"===e_,pointerEvents:"none"})}):(0,v.jsx)(Dw,{x:n.visual.left,y:n.visual.top,width:n.visual.width,height:n.visual.height,$hovered:!ex&&e5(t),$focused:!ex&&"crop"===e_,pointerEvents:"none"})]},t)}),eh[206]=eU,eh[207]=e_,eh[208]=eO,eh[209]=ez,eh[210]=eL,eh[211]=e5,eh[212]=ex,eh[213]=es):es=eh[213],eh[214]!==el||eh[215]!==es?(ed=(0,v.jsxs)("g",{children:[el,es]}),eh[214]=el,eh[215]=es,eh[216]=ed):ed=eh[216],eh[217]!==eF||eh[218]!==eQ||eh[219]!==e0||eh[220]!==b||eh[221]!==w||eh[222]!==T||eh[223]!==A||eh[224]!==D||eh[225]!==V||eh[226]!==ea||eh[227]!==ed?(ec=(0,v.jsx)(Dy,{children:(0,v.jsxs)(DC,{ref:ev,viewBox:e0,preserveAspectRatio:"xMidYMid",onPointerMove:eF,onPointerUp:eQ,style:b,children:[w,T,A,D,V,ea,ed]})}),eh[217]=eF,eh[218]=eQ,eh[219]=e0,eh[220]=b,eh[221]=w,eh[222]=T,eh[223]=A,eh[224]=D,eh[225]=V,eh[226]=ea,eh[227]=ed,eh[228]=ec):ec=eh[228],ec});function DA(e){let t,n,i,r,a,o=(0,j.c)(9),l=(0,_.useRef)(null),[s,d]=(0,_.useState)(null),[c,u]=(0,_.useState)(null);return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{if(l.current)return l.current&&(d(l.current.clientWidth),u(l.current.clientHeight)),r2.observe(l.current,e=>{d(e.contentRect.width),u(e.contentRect.height)})},n=[],o[0]=t,o[1]=n):(t=o[0],n=o[1]),(0,_.useLayoutEffect)(t,n),o[2]===Symbol.for("react.memo_cache_sentinel")?(i={position:"relative",width:"100%",height:"100%"},o[2]=i):i=o[2],o[3]!==c||o[4]!==s||o[5]!==e?(r=null!==s&&null!==c&&(0,v.jsx)(De,{src:e.src,children:t=>{let{isLoading:n,image:i,error:r}=t;return n?(0,v.jsx)(ry,{showText:!0}):r?(0,v.jsx)("div",{children:r.message}):i?(0,v.jsx)(Dt,{image:i,maxHeight:c,maxWidth:s,children:t=>(0,v.jsx)(D$,{...e,image:i,size:t})}):null}}),o[3]=c,o[4]=s,o[5]=e,o[6]=r):r=o[6],o[7]!==r?(a=(0,v.jsx)("div",{ref:l,style:i,children:r}),o[7]=r,o[8]=a):a=o[8],a}let DD={isLoading:!0},Dz=["hotspot"],DP=[{title:"3:4",aspectRatio:3/4},{title:"Square",aspectRatio:1},{title:"16:9",aspectRatio:16/9},{title:"Panorama",aspectRatio:4}],DR={crop:A5,hotspot:A2},DN=eI.I4.div.withConfig({displayName:"Placeholder",componentId:"sc-68r3g9-0"})`min-height:6em;`;function DO(e){let t,n,i=(0,j.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflowWrap:"break-word"},i[0]=t):t=i[0],i[1]!==e.children?(n=(0,v.jsx)(I.so,{align:"center",justify:"center",padding:4,style:t,children:e.children}),i[1]=e.children,i[2]=n):n=i[2],n}function DV(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(60),{imageUrl:w,value:k,changed:S,level:T,path:E,focusPath:$,presence:A,onCh
1074ange:D,schemaType:z,onPathFocus:P,readOnly:R,elementProps:N}=e,O=void 0===$?rM:$,{ref:V}=N,M=(0,_.useRef)(null);b[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>M.current,b[0]=t):t=b[0],(0,_.useImperativeHandle)(V,t);let[L,F]=(0,_.useState)(k||DR),{image:B,isLoading:Y,error:H}=function(e){let t,n,i=(0,j.c)(3),[r,a]=(0,_.useState)(DD);return i[0]!==e?(t=()=>{a(DD);let t=new eU.c(t=>{let n=document.createElement("img"),i=!1;return n.onload=()=>{i=!0,t.next(n),t.complete()},n.onerror=()=>{i=!0,t.error(Error(`Could not load image from ${e.startsWith("blob:")?"blob":e}`))},n.src=e,()=>{n.onload=null,n.onerror=null,i||(n.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=")}}).subscribe({error:e=>{a({isLoading:!1,error:e})},next:e=>{a({image:e,isLoading:!1})}});return()=>{t.unsubscribe()}},n=[e],i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,_.useEffect)(t,n),r}(w);b[1]!==P?(n=()=>{P(Dz)},b[1]=P,b[2]=n):n=b[2];let U=n;b[3]!==k?(i=()=>{F(k||DR)},r=[k],b[3]=k,b[4]=i,b[5]=r):(i=b[4],r=b[5]),(0,_.useEffect)(i,r);let Z="hotspot"===O[0],q="object"==typeof z.options?.hotspot&&z.options.hotspot.previews||DP;b[6]!==Z?(a=e=>{!e&&Z&&M.current?.focus()},b[6]=Z,b[7]=a):a=b[7],fS(Z,a),b[8]!==D||b[9]!==R||b[10]!==z.fields?(o=e=>{if(R)return;let t=z.fields.find(DB),n=z.fields.find(DF),i=t?{_type:t.type.name,...e.crop||A5}:e.crop,r=n?{_type:n.type.name,...e.hotspot||A2}:e.hotspot;D([hq(i,["crop"]),hq(r,["hotspot"])])},b[8]=D,b[9]=R,b[10]=z.fields,b[11]=o):o=b[11];let W=o;b[12]!==k?.asset?._ref?(l=k?.asset?._ref?.split("-").at(-1),b[12]=k?.asset?._ref,b[13]=l):l=b[13];let J="svg"===l,{t:K}=as();b[14]!==K?(s=K("inputs.imagetool.title"),b[14]=K,b[15]=s):s=b[15],b[16]!==K?(d=K("inputs.imagetool.description"),b[16]=K,b[17]=d):d=b[17];let G=z.deprecated;b[18]!==J||b[19]!==K?(c=J?(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(I.Zp,{padding:3,marginY:3,tone:"caution",radius:2,children:(0,v.jsxs)(I.BJ,{space:4,children:[(0,v.jsx)(I.EY,{size:1,children:K("inputs.imagetool.vector-warning.title")}),(0,v.jsx)(yl,{title:K("inputs.imagetool.vector-warning.expand-developer-info"),children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{t:K,i18nKey:"inputs.imagetool.vector-warning.developer-info",components:{ImageUrlDocumentationLink:DL,ImageUrlPackageDocumentationLink:DM}})})})]})})}):null,b[18]=J,b[19]=K,b[20]=c):c=b[20],b[21]!==E?(u=E.concat(Dz),b[21]=E,b[22]=u):u=b[22];let X="hotspot"===O[0];return b[23]!==H||b[24]!==Y||b[25]!==K?(p=(Y||H)&&(0,v.jsx)(DO,{children:H?(0,v.jsx)(I.Zp,{padding:4,radius:2,tone:"critical",border:!0,children:(0,v.jsx)(I.EY,{children:K("inputs.imagetool.load-error",{errorMessage:H.message})})}):(0,v.jsx)(ry,{showText:!0})}),b[23]=H,b[24]=Y,b[25]=K,b[26]=p):p=b[26],b[27]!==W||b[28]!==B||b[29]!==Y||b[30]!==L||b[31]!==R?(m=!Y&&B&&(0,v.jsx)(I.az,{children:(0,v.jsx)(DA,{value:L,src:B.src,readOnly:!!R,onChangeEnd:W,onChange:F})}),b[27]=W,b[28]=B,b[29]=Y,b[30]=L,b[31]=R,b[32]=m):m=b[32],b[33]!==p||b[34]!==m?(h=(0,v.jsxs)(A1,{ratio:1.5,children:[p,m]}),b[33]=p,b[34]=m,b[35]=h):h=b[35],b[36]!==S||b[37]!==u||b[38]!==X||b[39]!==h?(f=(0,v.jsx)(S1,{path:u,hasFocus:X,isChanged:S,children:h}),b[36]=S,b[37]=u,b[38]=X,b[39]=h,b[40]=f):f=b[40],b[41]!==U||b[42]!==f?(g=(0,v.jsx)(I.Zp,{__unstable_checkered:!0,__unstable_focusRing:!0,tabIndex:0,ref:M,onFocus:U,border:!0,children:f}),b[41]=U,b[42]=f,b[43]=g):g=b[43],b[44]!==q||b[45]!==B||b[46]!==Y||b[47]!==L?(y=q.length>0?(0,v.jsx)(I.az,{marginTop:2,children:(0,v.jsx)(I.xA,{columns:4,gap:1,children:q.map(e=>{let{title:t,aspectRatio:n}=e;return(0,v.jsxs)(I.az,{marginTop:2,children:[(0,v.jsx)(I.DZ,{as:"h4",size:0,children:t}),(0,v.jsx)(I.az,{marginTop:2,children:(0,v.jsx)(A1,{ratio:n,children:(0,v.jsx)(I.Zp,{__unstable_checkered:!0,border:!0,children:!Y&&B?(0,v.jsx)(A9,{aspectRatio:n,src:B.src,srcAspectRatio:B.width/B.height,hotspot:L.hotspot||A2,crop:L.crop||A5}):(0,v.jsx)(DN,{})})})})]},t)})})}):null,b[44]=q,b[45]=B,b[46]=Y,b[47]=L,b[48]=y):y=b[48],b[49]!==g||b[50]!==y?(C=(0,v.jsxs)("div",{children:[g,y]}),b[49]=g,b[50]=y,b[51]=C):C=b[51],b[52]!==T||b[53]!==A||b[54]!==z.deprecated||b[55]!==d||b[56]!==c||b[57]!==C||b[58]!==s?(
1074x=(0,v.jsxs)(xY,{title:s,level:T,description:d,deprecated:G,__unstable_presence:A,children:[c,C]}),b[52]=T,b[53]=A,b[54]=z.deprecated,b[55]=d,b[56]=c,b[57]=C,b[58]=s,b[59]=x):x=b[59],x}function DM(e){let{children:t}=e;return(0,v.jsx)("a",{href:"https://www.sanity.io/docs/image-urls#fm-048ba39d9e88",children:(0,v.jsx)("code",{children:t})})}function DL(e){let{children:t}=e;return(0,v.jsx)("a",{href:"https://www.sanity.io/docs/image-urls#fm-048ba39d9e88",children:t})}function DF(e){return"object"!==e.type.name&&"hotspot"===e.name}function DB(e){return"crop"===e.name&&"object"!==e.type.name}function DY(e){let t,n,i,r,a,o=(0,j.c)(19),{handleCloseDialog:l,inputProps:s,imageInputProps:d,isImageToolEnabled:c}=e,{t:u}=as(),{changed:p,id:m,imageUrlBuilder:h,value:f}=d,g=c&&f&&f.asset;o[0]!==h||o[1]!==f?(t=f?.asset?h.image(f.asset).url():"",o[0]=h,o[1]=f,o[2]=t):t=o[2];let y=t;o[3]!==u?(n=u("inputs.image.hotspot-dialog.title"),o[3]=u,o[4]=n):n=o[4];let C=`${m}_dialog`;return o[5]!==p||o[6]!==d||o[7]!==y||o[8]!==s||o[9]!==f||o[10]!==g?(i=g&&f?.asset&&(0,v.jsx)(DV,{...d,imageUrl:y,value:f,presence:s.presence,changed:p}),o[5]=p,o[6]=d,o[7]=y,o[8]=s,o[9]=f,o[10]=g,o[11]=i):i=o[11],o[12]!==i?(r=(0,v.jsx)(wJ,{children:(0,v.jsx)(I.BJ,{space:5,children:i})}),o[12]=i,o[13]=r):r=o[13],o[14]!==l||o[15]!==n||o[16]!==C||o[17]!==r?(a=(0,v.jsx)(tL.lG,{__unstable_autoFocus:!1,header:n,id:C,onClickOutside:l,onClose:l,width:1,children:r}),o[14]=l,o[15]=n,o[16]=C,o[17]=r,o[18]=a):a=o[18],a}function DH(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(21);p[0]!==e?({accessPolicy:i,src:n,...t}=e,p[0]=e,p[1]=t,p[2]=n,p[3]=i):(t=p[1],n=p[2],i=p[3]);let m=void 0===i?"public":i,[h,f]=(0,_.useState)(!1),[g,y]=(0,_.useState)(!1);p[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{f(!1),y(!1)},p[4]=r):r=p[4],p[5]!==n?(a=[n],p[5]=n,p[6]=a):a=p[6],(0,_.useEffect)(r,a),p[7]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{f(!0),y(!1)},p[7]=o):o=p[7];let C=o;p[8]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{y(!0),f(!1)},p[8]=l):l=p[8];let x=l,b=g&&"unknown"===m,w=!h&&!b;return p[9]!==b?(s=b&&(0,v.jsx)(DZ,{}),p[9]=b,p[10]=s):s=p[10],p[11]!==w?(d=w&&(0,v.jsx)(DU,{}),p[11]=w,p[12]=d):d=p[12],p[13]!==e.alt||p[14]!==n?(c=n&&(0,v.jsx)("img",{src:n,"data-testid":"hotspot-image-input",alt:e.alt,onLoad:C,onError:x,referrerPolicy:"strict-origin-when-cross-origin"}),p[13]=e.alt,p[14]=n,p[15]=c):c=p[15],p[16]!==t||p[17]!==s||p[18]!==d||p[19]!==c?(u=(0,v.jsxs)(As,{...t,tone:"transparent",children:[s,d,c]}),p[16]=t,p[17]=s,p[18]=d,p[19]=c,p[20]=u):u=p[20],u}function DU(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(Ad,{padding:3,tone:"transparent",children:(0,v.jsx)(Ac,{direction:"column",align:"center",justify:"center",children:(0,v.jsx)(ry,{showText:!0})})}),t[0]=e):e=t[0],e}function DZ(){let e,t,n,i=(0,j.c)(5),{t:r}=as();return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(Au,{children:(0,v.jsx)(eT.sAQ,{})}),i[0]=e):e=i[0],i[1]!==r?(t=r("inputs.image.error.possible-access-restriction"),i[1]=r,i[2]=t):t=i[2],i[3]!==t?(n=(0,v.jsx)(Ad,{padding:3,tone:"critical",border:!0,children:(0,v.jsxs)(Ac,{direction:"column",align:"center",justify:"center",gap:2,children:[e,(0,v.jsx)(I.EY,{muted:!0,size:1,children:t})]})}),i[3]=t,i[4]=n):n=i[4],n}let Dq=(0,_.memo)(function(e){let t,n=(0,j.c)(6),{accessPolicy:i,handleOpenDialog:r,imageUrlBuilder:a,readOnly:o,value:l}=e;return n[0]!==i||n[1]!==r||n[2]!==a||n[3]!==o||n[4]!==l?(t=(0,v.jsx)(DW,{accessPolicy:i,handleOpenDialog:r,imageUrlBuilder:a,readOnly:o,value:l}),n[0]=i,n[1]=r,n[2]=a,n[3]=o,n[4]=l,n[5]=t):t=n[5],t});function DW(e){let t,n,i,r,a=(0,j.c)(15),{accessPolicy:o,handleOpenDialog:l,imageUrlBuilder:s,readOnly:d,value:c}=e,{t:u}=as(),p=(0,nO.J)();a[0]!==p?(t=(e,t)=>e.width(2e3).fit("max").image(t).dpr(p).auto("format").url(),a[0]=p,a[1]=t):t=a[1];let m=t;a[2]!==o||a[3]!==s||a[4]!==m||a[5]!==c?(n={accessPolicy:o,imageSource:c,imageUrlBuilder:s,transform:m},a[2]=o,a[3]=s,a[4]=m,a[5]=c,a[6]=n):n=a[6];let{url:h}=j5(n);return a[7]!==u?(i=u("inputs.image.preview-uploaded-image"),a[7]=u,a[8]=i):i=a[8],a[9]!==o||a[10]!==l||a[11]!==d||a[12]!==i||a[13]!==h?(r=(0,v.jsx)(DH,{alt:i,accessPolicy:o,onDoubleClick:l,readOnly:d,src:h}),a[9]=o,a[10]=l,a[11]=d,a[12]=i,a[13]=h,a[14]=r):r=a[14],r}let DJ=(0,_.memo)(function(e){let t,n,i,r,a=(0,j.c)(14),{assetSources:o,directUploads:l,disableNew:s,onSelectFile:d,readOnly:c,renderBrowser:u,schemaType:p}=e;a[0]!==d?(t=(e,t)=>
1074{d(e,t[0])},a[0]=d,a[1]=t):t=a[1];let m=t;a[2]===Symbol.for("react.memo_cache_sentinel")?(n={padding:1},a[2]=n):n=a[2];let h=c?"transparent":"inherit";return a[3]!==o||a[4]!==l||a[5]!==s||a[6]!==m||a[7]!==c||a[8]!==u||a[9]!==p?(i=s?u():(0,v.jsx)(Al,{assetSources:o,browse:u(),directUploads:l,onUpload:m,schemaType:p,readOnly:c,type:"image"}),a[3]=o,a[4]=l,a[5]=s,a[6]=m,a[7]=c,a[8]=u,a[9]=p,a[10]=i):i=a[10],a[11]!==h||a[12]!==i?(r=(0,v.jsx)("div",{style:n,children:(0,v.jsx)(I.Zp,{tone:h,border:!0,paddingX:3,paddingY:2,radius:2,children:i})}),a[11]=h,a[12]=i,a[13]=r):r=a[13],r});function DK(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(20),{onClearValue:u}=e,{t:p}=as();return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.sAQ,{})})}),c[0]=t):t=c[0],c[1]!==p?(n=p("inputs.image.invalid-image-warning.title"),c[1]=p,c[2]=n):n=c[2],c[3]!==n?(i=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:n}),c[3]=n,c[4]=i):i=c[4],c[5]!==p?(r=p("inputs.image.invalid-image-warning.description"),c[5]=p,c[6]=r):r=c[6],c[7]!==r?(a=(0,v.jsx)(I.EY,{size:1,children:r}),c[7]=r,c[8]=a):a=c[8],c[9]!==i||c[10]!==a?(o=(0,v.jsxs)(I.so,{gap:4,marginBottom:4,children:[t,(0,v.jsxs)(I.BJ,{space:3,children:[i,a]})]}),c[9]=i,c[10]=a,c[11]=o):o=c[11],c[12]!==p?(l=p("inputs.image.invalid-image-warning.reset-button.text"),c[12]=p,c[13]=l):l=c[13],c[14]!==u||c[15]!==l?(s=(0,v.jsx)(tL.$n,{icon:eT.NAP,mode:"ghost",onClick:u,text:l,width:"fill"}),c[14]=u,c[15]=l,c[16]=s):s=c[16],c[17]!==o||c[18]!==s?(d=(0,v.jsxs)(I.Zp,{tone:"caution",padding:4,border:!0,radius:2,children:[o,s]}),c[17]=o,c[18]=s,c[19]=d):d=c[19],d}function DG(e){return"field"===e.kind&&"hotspot"===e.name}function DX(e){return"error"===e.status&&$4(e.error)}function DQ(e){console.error(e.error)}function D1(e){return hW([e])}function D2(e){return["crop","hotspot","_upload"].includes(e)}function D5(e){return!["_type","_key","_upload","asset","crop","hotspot","media"].includes(e)}let D0=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$,A,D,z,P,R,N,O,M,L,F=(0,j.c)(159),{assetSources:B,client:Y,directUploads:H,elementProps:U,focusPath:Z,id:q,imageUrlBuilder:W,members:J,observeAsset:K,onChange:G,onPathFocus:X,path:Q,readOnly:ee,renderAnnotation:et,renderBlock:en,renderField:ei,renderInlineBlock:er,renderInput:ea,renderItem:eo,renderPreview:el,resolveUploader:es,schemaType:ed,value:ec}=e,{push:eu}=(0,T.dj)(),{t:ep}=as(),em=k8(ed,J),[eh,ef]=(0,_.useState)(null),[eg,ey]=(0,_.useState)(!1),[eC,ex]=(0,_.useState)(!1),[eb,ev]=(0,_.useState)(null),[ej,ew]=(0,_.useState)(null),[e_,ek]=(0,_.useState)(!1),{handleOpenDialog:eS}=$8(),[eI,eT]=(0,_.useState)(null),eE=(0,_.useRef)(null),[e$,eA]=(0,_.useState)(null);F[0]!==ed?(t=()=>{let e=(0,V.A)(ed,"options.hotspot");return"object"==typeof e||!0===e},F[0]=ed,F[1]=t):t=F[1];let eD=t;F[2]!==Q?(n=()=>"string"!=typeof Q.slice(-1)[0],F[2]=Q,F[3]=n):n=F[3];let ez=n;F[4]!==G||F[5]!==ec?._upload?(i=()=>{ec?._upload&&G(hW(["_upload"]))},F[4]=G,F[5]=ec?._upload,F[6]=i):i=F[6];let eP=i;F[7]!==eP?(r=()=>{eE.current&&(eE.current.unsubscribe(),eP())},F[7]=eP,F[8]=r):r=F[8];let eR=r;F[9]!==eR||F[10]!==eP||F[11]!==Y||F[12]!==G||F[13]!==eu||F[14]!==ed||F[15]!==ep?(a=(e,t,n)=>{let{label:i,title:r,description:a,creditLine:o,source:l}=void 0===n?{}:n,s={metadata:(0,V.A)(ed,"options.metadata"),storeOriginalFilename:(0,V.A)(ed,"options.storeOriginalFilename"),label:i,title:r,description:a,creditLine:o,source:l};eR(),ey(!0),G(hU({_type:ed.name})),eE.current=e.upload(Y,t,ed,s).subscribe({next:e=>{e.patches&&G(e.patches)},error:e=>{console.error(e),eu({status:"error",description:ep("inputs.image.upload-error.description"),title:ep("inputs.image.upload-error.title")}),eP()},complete:()=>{G([hW(["hotspot"]),hW(["crop"]),hW(["media"])]),ey(!1)}})},F[9]=eR,F[10]=eP,F[11]=Y,F[12]=G,F[13]=eu,F[14]=ed,F[15]=ep,F[16]=a):a=F[16];let eN=a;F[17]!==G?(o=()=>{G([hW(["asset"]),hW(["crop"]),hW(["hotspot"]),hW(["media"])])},F[17]=G,F[18]=o):o=F[18];let eO=o;F[19]!==G||F[20]!==ec||F[21]!==ez?(l=()=>{let e=Object.keys(ec||{}),t=0===e.filter(D5).length,n=["asset","media"].concat(e.filter(D2)).map(D1);G(t&&!ez()?hW():n)},F[19]=G,F[20]=ec,F[21]=ez,F[22]=l):l=F[22];let eV=l;F[23]!==X?(s=()=>{X(["hotspot"])},F[23]=X,F[24]=s):s=F[24];let eM=s;F[25]!==eb||F[26]!==X?(d=()=>{X([]),eb?.focus()},F[25]=eb,F[26]=X,F[27]=d):d=F[27];let eL=d;F[28]!==G||F[29]!==es||F[30]!==ed||F[31]!==eN?(c=e=>{Cy({assetsFromSource:e,onChange:G,type:ed,resolveUploader:es,uploadWith:eN}),ef(null),eT(null),ey(!1)},F[28]=G,F[29]=es,F[30]=ed,F[31]=eN,F[32]=c):c=F[32];let eF=c;F[33]!==eR?(u=()=>{eR()},F[33]=eR,F[34]=u):u=F[34];let eB=u;F[35]!==eP?(p=()=>{ex(!1),eP()},F[35]=eP,F[36]=p):p=F[36];let eY=p;F[37]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{ex(!0)},F[37]=m):m=F[37];let eH=m;F[38]!==e$||F[39]!==eS||F[40]!==G||F[41]!==eu||F[42]!==ed||F[43]!==ep?(h=(e,t)=>{if(ef(e),e.Uploader)try{let n;n=new e.Uploader,e$?.unsubscribe(),eA({unsubscribe:n.subscribe(e=>{switch(e.type){case"progress":G(gD.from([hq(Math.max(2,e.progress),[CE,"progress"]),hq(new Date().toISOString(),[CE,"updatedAt"])]));break;
1074case"error":e.files.forEach(DQ),eu({status:"error",description:ep("asset-sources.common.uploader.upload-failed.description"),title:ep("asset-sources.common.uploader.upload-failed.title")});break;case"all-complete":e.files.some(DX)&&eS("field_action"),G(gD.from([hW([CE])])),ek(!1),ef(null),ey(!1)}}),uploader:n}),ey(!0),G(gD.from(CO(t))),n.upload([t],{schemaType:ed,onChange:G})}catch(e){G(gD.from([hW([CE])])),ey(!1),e$?.unsubscribe(),ef(null),eA(null),eu({status:"error",description:ep("asset-sources.common.uploader.upload-failed.description"),title:ep("asset-sources.common.uploader.upload-failed.title")}),console.error(e)}},F[38]=e$,F[39]=eS,F[40]=G,F[41]=eu,F[42]=ed,F[43]=ep,F[44]=h):h=F[44];let eU=h;F[45]!==e$?(f=()=>()=>{e$?.uploader?.abort(),e$?.unsubscribe()},g=[e$],F[45]=e$,F[46]=f,F[47]=g):(f=F[46],g=F[47]),(0,_.useEffect)(f,g),F[48]===Symbol.for("react.memo_cache_sentinel")?(y=e=>{ef(e)},F[48]=y):y=F[48];let eZ=y;F[49]===Symbol.for("react.memo_cache_sentinel")?(C=(e,t)=>{ef(e),eT(t)},F[49]=C):C=F[49];let eq=C;F[50]!==ej?(x=()=>{ef(null),eT(null),ej?.focus()},F[50]=ej,F[51]=x):x=F[51];let eW=x;F[52]!==Y||F[53]!==ec?(b={client:Y,source:ec},F[52]=Y,F[53]=ec,F[54]=b):b=F[54];let eJ=jJ(b);F[55]!==eJ||F[56]!==eM||F[57]!==W||F[58]!==ee||F[59]!==ec?(w=()=>ec?(0,v.jsx)(Dq,{accessPolicy:eJ,handleOpenDialog:eM,imageUrlBuilder:W,readOnly:ee,value:ec}):(0,v.jsx)(v.Fragment,{}),F[55]=eJ,F[56]=eM,F[57]=W,F[58]=ee,F[59]=ec,F[60]=w):w=F[60];let eK=w;F[61]!==eJ?(k=()=>(0,v.jsx)(AB,{accessPolicy:eJ}),F[61]=eJ,F[62]=k):k=F[62];let eG=k;F[63]!==eJ||F[64]!==B||F[65]!==H||F[66]!==eM||F[67]!==eV||F[68]!==eU||F[69]!==W||F[70]!==eD||F[71]!==e_||F[72]!==K||F[73]!==ee||F[74]!==ed||F[75]!==ec?(S=()=>(0,v.jsx)(AW,{accessPolicy:eJ,assetSources:B,directUploads:H,handleOpenDialog:eM,handleRemoveButtonClick:eV,onSelectFile:eU,handleSelectImageFromAssetSource:eZ,imageUrlBuilder:W,isImageToolEnabled:eD(),isMenuOpen:e_,observeAsset:K,onOpenInSource:eq,readOnly:ee,schemaType:ed,setHotspotButtonElement:ev,setMenuButtonElement:ew,setMenuOpen:ek,value:ec}),F[63]=eJ,F[64]=B,F[65]=H,F[66]=eM,F[67]=eV,F[68]=eU,F[69]=W,F[70]=eD,F[71]=e_,F[72]=K,F[73]=ee,F[74]=ed,F[75]=ec,F[76]=S):S=F[76];let eX=S;F[77]!==B||F[78]!==q||F[79]!==ee||F[80]!==ed?(E=()=>(0,v.jsx)(AQ,{assetSources:B,readOnly:ee,id:q,setMenuOpen:ek,schemaType:ed,handleSelectImageFromAssetSource:eZ}),F[77]=B,F[78]=q,F[79]=ee,F[80]=ed,F[81]=E):E=F[81];let eQ=E,e1=ed.options?.disableNew===!0;F[82]!==B||F[83]!==H||F[84]!==e1||F[85]!==eU||F[86]!==ee||F[87]!==eQ||F[88]!==ed?($=()=>(0,v.jsx)(DJ,{assetSources:B,directUploads:H,disableNew:e1,onSelectFile:eU,readOnly:ee,renderBrowser:eQ,schemaType:ed}),F[82]=B,F[83]=H,F[84]=e1,F[85]=eU,F[86]=ee,F[87]=eQ,F[88]=ed,F[89]=$):$=F[89];let e2=$;F[90]!==eB||F[91]!==eg?(A=e=>(0,v.jsx)(Ag,{uploadState:e,onCancel:eg?eB:void 0,onStale:eH}),F[90]=eB,F[91]=eg,F[92]=A):A=F[92];let e5=A;F[93]!==B||F[94]!==H||F[95]!==U||F[96]!==eO||F[97]!==eY||F[98]!==eU||F[99]!==eC||F[100]!==ee||F[101]!==eG||F[102]!==eX||F[103]!==eK||F[104]!==e2||F[105]!==e5||F[106]!==ed||F[107]!==eh||F[108]!==ec?(D=e=>ec&&"u">typeof ec.asset&&!ec?._upload&&!(0,tQ.LG)(ec)?(0,v.jsx)(DK,{onClearValue:eO}):(0,v.jsx)(AH,{assetSources:B,directUploads:!1!==H,elementProps:U,handleClearUploadState:eY,inputProps:e,isStale:eC,onSelectFile:eU,readOnly:ee,renderAssetAccessPolicy:eG,renderAssetMenu:eX,renderPreview:eK,renderUploadPlaceholder:e2,renderUploadState:e5,schemaType:ed,selectedAssetSource:eh,value:ec}),F[93]=B,F[94]=H,F[95]=U,F[96]=eO,F[97]=eY,F[98]=eU,F[99]=eC,F[100]=ee,F[101]=eG,F[102]=eX,F[103]=eK,F[104]=e2,F[105]=e5,F[106]=ed,F[107]=eh,F[108]=ec,F[109]=D):D=F[109];let e0=D;F[110]!==eL||F[111]!==eD||F[112]!==e?(z=t=>(0,v.jsx)(DY,{isImageToolEnabled:eD(),handleCloseDialog:eL,imageInputProps:e,inputProps:t}),F[110]=eL,F[111]=eD,F[112]=e,F[113]=z):z=F[113];let e7=z;F[114]!==e$?.uploader||F[115]!==eW||F[116]!==eF||F[117]!==eg||F[118]!==K||F[119]!==eI||F[120]!==ed||F[121]!==eh||F[122]!==ec?(P=()=>(0,v.jsx)(AG,{handleAssetSourceClosed:eW,handleSelectAssetFromSource:eF,isUploading:eg,observeAsset:K,openInSourceAsset:eI,schemaType:ed,selectedAssetSource:eh,setOpenInSourceAsset:eT,uploader:e$?.uploader,value:ec}),F[114]=e$?.uploader,F[115]=eW,F[116]=eF,F[117]=eg,F[118]=K,F[119]=eI,F[120]=ed,F[121]=eh,F[122]=ec,F[123]=P):P=F[123];let e3=P;F[124]!==J?(R=J.find(DG),F[124]=J,F[125]=R):R=F[125];let e8=R;if(F[126]!==et||F[127]!==e0||F[128]!==en||F[129]!==ei||F[130]!==er||F[131]!==ea||F[132]!==eo||F[133]!==el||F[134]!==em||F[135]!==ep){let e;F[137]!==et||F[138]!==e0||F[139]!==en||F[140]!==ei||F[141]!==er||F[142]!==ea||F[143]!==eo||F[144]!==el||F[145]!==ep?(e=e=>"field"===e.kind&&("crop"===e.name||"hotspot"===e.name)?null:"field"===e.kind?(0,v.jsx)(xt,{member:e,renderAnnotation:et,renderBlock:en,renderInlineBlock:er,renderInput:"asset"===e.name?e0:ea,renderField:"asset"===e.name?D7:ei,renderItem:eo,renderPreview:el},e.key):"fieldSet"===e.kind?(0,v.jsx)(x9,{member:e,renderAnnotation:et,renderBlock:en,renderField:ei,renderInlineBlock:er,renderInput:ea,renderItem:eo,renderPreview:el},e.key):"error"===e.kind?(0,v.jsx)(x4,{member:e},e.key):"decoration"===e.kind?(0,v.jsx)(x6,{member:e},e.key):(0,v.jsx)(_.Fragment,{children:ep("inputs.image.error.unknown-member-kind",{kind:e.kind})},e.key),F[137]=et,F[138]=e0,F[139]=en,F[140]=ei,F[141]=er,F[142]=ea,F[143]=eo,F[144]=el,F[145]=ep,F[146]=e):e=F[146],N=em.map(e),F[126]=et,F[127]=e0,F[128]=en,F[129]=ei,F[130]=er,F[131]=ea,F[132]=eo,F[133]=el,F[134]=em,F[135]=ep,F[136]=N}else N=F[136];return F[147]!==Z||F[148]!==e8||F[149]!==e||F[150]!==e7?(O=e8&&"hotspot"===Z[
10740]&&(0,v.jsx)(j9,{...e,absolutePath:e8.field.path,renderInput:e7}),F[147]=Z,F[148]=e8,F[149]=e,F[150]=e7,F[151]=O):O=F[151],F[152]!==e3||F[153]!==eh?(M=eh&&e3(),F[152]=e3,F[153]=eh,F[154]=M):M=F[154],F[155]!==N||F[156]!==O||F[157]!==M?(L=(0,v.jsxs)(I.BJ,{space:5,"data-testid":"image-input",children:[N,O,M]}),F[155]=N,F[156]=O,F[157]=M,F[158]=L):L=F[158],L});function D7({children:e}){return e}let D3={document:Sc,object:Sc,array:function(e){let t,n=(0,j.c)(4);if(Array.isArray(e.schemaType.options?.list)){let t;return n[0]!==e?(t=(0,v.jsx)(_K,{...e}),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==e?(t=(0,eD.gw)(e.schemaType)?(0,v.jsx)(kr,{...e}):(0,v.jsx)(_B,{...e}),n[2]=e,n[3]=t):t=n[3],t},boolean:function(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(39),{t:p}=as(),{focused:m,__internal_comments:h,hovered:f,onMouseEnter:g,onMouseLeave:y,actions:C,__internal_slot:x}=fw(),{id:b,value:w,schemaType:_,readOnly:k,elementProps:S,validation:T,presence:E}=e,$=_.options?.layout||"switch",A="boolean"!=typeof w,D=w||!1,z="checkbox"===$?I.Sc:I.dO,P=k?"transparent":void 0;u[0]===Symbol.for("react.memo_cache_sentinel")?(t={paddingTop:"0.85rem"},u[0]=t):t=u[0],u[1]===Symbol.for("react.memo_cache_sentinel")?(n={margin:-4},u[1]=n):n=u[1],u[2]!==z||u[3]!==D||u[4]!==S||u[5]!==A||u[6]!==k||u[7]!==_.title?(i=(0,v.jsx)(I.az,{padding:3,style:t,children:(0,v.jsx)(z,{label:_.title,...S,checked:D,readOnly:k,indeterminate:A,style:n})}),u[2]=z,u[3]=D,u[4]=S,u[5]=A,u[6]=k,u[7]=_.title,u[8]=i):i=u[8];let R=i;u[9]!==R||u[10]!==k||u[11]!==p?(r=k?(0,v.jsx)(tL.m_,{content:p("inputs.boolean.disabled"),children:R}):R,u[9]=R,u[10]=k,u[11]=p,u[12]=r):r=u[12];let N=!!m;return u[13]!==b||u[14]!==_.deprecated||u[15]!==_.description||u[16]!==_.title||u[17]!==T?(a=(0,v.jsx)(xF,{deprecated:_.deprecated,description:_.description,inputId:b,validation:T,title:_.title}),u[13]=b,u[14]=_.deprecated,u[15]=_.description,u[16]=_.title,u[17]=T,u[18]=a):a=u[18],u[19]!==C||u[20]!==h||u[21]!==f||u[22]!==b||u[23]!==E||u[24]!==x||u[25]!==N||u[26]!==a?(o=(0,v.jsx)(xj,{__internal_comments:h,__internal_slot:x,actions:C,fieldFocused:N,fieldHovered:f,presence:E,inputId:b,content:a}),u[19]=C,u[20]=h,u[21]=f,u[22]=b,u[23]=E,u[24]=x,u[25]=N,u[26]=a,u[27]=o):o=u[27],u[28]!==g||u[29]!==y||u[30]!==o?(l=(0,v.jsx)(I.az,{flex:1,onMouseEnter:g,onMouseLeave:y,paddingY:2,children:o}),u[28]=g,u[29]=y,u[30]=o,u[31]=l):l=u[31],u[32]===Symbol.for("react.memo_cache_sentinel")?(s=(0,v.jsx)(ka,{paddingX:3,paddingY:1,children:(0,v.jsx)(xQ,{maxAvatars:1,position:"top"})}),u[32]=s):s=u[32],u[33]!==r||u[34]!==l?(d=(0,v.jsxs)(I.so,{children:[r,l,s]}),u[33]=r,u[34]=l,u[35]=d):d=u[35],u[36]!==d||u[37]!==P?(c=(0,v.jsx)(I.Zp,{border:!0,"data-testid":"boolean-input",radius:2,tone:P,children:d}),u[36]=d,u[37]=P,u[38]=c):c=u[38],c},number:k3,text:function(e){let t,n=(0,j.c)(6),{schemaType:i,validationError:r,value:a,elementProps:o}=e,l=a||"",s="number"==typeof i.rows?i.rows:10;return n[0]!==o||n[1]!==i.placeholder||n[2]!==l||n[3]!==s||n[4]!==r?(t=(0,v.jsx)(EN,{customValidity:r,value:l,placeholder:i.placeholder,rows:s,...o}),n[0]=o,n[1]=i.placeholder,n[2]=l,n[3]=s,n[4]=r,n[5]=t):t=n[5],t},email:function(e){let t,n=(0,j.c)(3),{validationError:i,elementProps:r}=e;return n[0]!==r||n[1]!==i?(t=(0,v.jsx)(I.ks,{...r,type:"email",inputMode:"email",customValidity:i}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t},datetime:function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,_=(0,j.c)(78),{onChange:k,schemaType:S,value:T,elementProps:E,id:$,validation:A,changed:D,path:z,presence:P}=e,R=void 0===P?rM:P,{focused:N,__internal_comments:O,hovered:V,onMouseEnter:M,onMouseLeave:L,actions:F,__internal_slot:B}=fw();_[0]!==S.options?(t=function(e={}){let t=e.displayTimeZone&&(0,tX.t$)(e.displayTimeZone)?e.displayTimeZone:void 0;return e.displayTimeZone&&!t&&console.warn(`Invalid time zone "${e.displayTimeZone}" supplied to datetime input, defaulting to local time zone or a previously stored preference`),{dateFormat:e.dateFormat||tX.D2,timeFormat:e.timeFormat||tX.EN,timeStep:"timeStep"in e&&Number(e.timeStep)||1,displayTimeZone:t,allowTimeZoneSwitch:void 0===e.allowTimeZoneSwitch||e.allowTimeZoneSwitch}}(S.options),_[0]=S.options,_[1]=t):t=_[1];let{dateFormat:Y,timeFormat:H,timeStep:U,displayTimeZone:Z,allowTimeZoneSwitch:q}=t,W=void 0===q||q,{title:J}=S,{t:K}=as();_[2]===Symbol.for("react.memo_cache_sentinel")?(n=["_id"],_[2]=n):n=_[2];let G=gI(n);_[3]!==G?(i=(0,tG.IM)(G),_[3]=G,_[4]=i):i=_[4];let X=i;_[5]!==$?(r=function(e){try{return(0,w.sH)(e).map(e=>(0,eD.tA)(e)?`key-${e._key}`:"number"==typeof e?`idx_${e}`:e).join(".")}catch{return e.replace(/[[\]="']/g,"-")}}($),_[5]=$,_[6]=r):r=_[6];let Q=`${X}.${r}${W?"":".fixed"}`;_[7]!==T?(a=T?new Date(T):void 0,_[7]=T,_[8]=a):a=_[8],_[9]!==Z||_[10]!==Q||_[11]!==a?(o={type:"input",defaultTimeZone:Z,id:Q,relativeDate:a},_[9]=Z,_[10]=Q,_[11]=a,_[12]=o):o=_[12];let ee=o,{timeZone:et}=ky(ee);_[13]!==k||_[14]!==U?(l=e=>{let t=e;null!==t&&U>1&&(t=function(e,t){if(!t||1===t)return e;let n=(0,ny.H)(e),i=(0,nC.O)(n),r=i%t;return k5(0!==r?(0,nf.g)(n,i-r):n)}(t,U)),k(null===t?hW():hq(t))},_[13]=k,_[14]=U,_[15]=l):l=_[15];let en=l;_[16]!==Y||_[17]!==H||_[18]!==et.name?(s=e=>(0,tX.GP)(e,`${Y} ${H}`,{timeZone:et.name}),_[16]=Y,_[17]=H,_[18]=et.name,_[19]=s):s=_[19];let ei=s;_[20]!==et.name?(b=et.name,d=e=>{var t;let{date:n}=(0,tX.qg)(e,void 0,b);return n&&(t=n)instanceof Date&&!isNaN(t.valueOf())?{isValid:!0,date:n}:{isValid:!1,error:`Invalid date value: "${e}"`}},_[20]=et.name,_[21]=d):d=_[21];let er=d;_[22]!==Y||_[23]!==H||_[24]!==et.name?(c=e=>(0,tX.qg)(e,`${Y} ${H}`,et.name),_[22]=Y,_[23]=H,_[24]=et.name,_[25]=c):c=_[25];let ea=c;_[26]!==K?(u=kK(K),_[26]=K,_[27]=u):u=_[27];let eo=u,el=`field-${$}`,es=!!N;_[28]!==W||_[29]!==Z||_[30]!==S.options?.allowTimeZoneSwitch||_[3
10741]!==K||_[32]!==et.alternativeName||_[33]!==et.offset||_[34]!==ee||_[35]!==J?(p=(Z||S.options?.allowTimeZoneSwitch===!0)&&(0,v.jsx)(k1,{children:(0,v.jsx)(kQ,{tooltipContent:(0,v.jsx)(aE,{t:K,i18nKey:"time-zone.time-zone-tooltip-input",values:{title:J,alternativeName:et.alternativeName,offset:et.offset}}),allowTimeZoneSwitch:W,useElementQueries:!0,timeZoneScope:ee})}),_[28]=W,_[29]=Z,_[30]=S.options?.allowTimeZoneSwitch,_[31]=K,_[32]=et.alternativeName,_[33]=et.offset,_[34]=ee,_[35]=J,_[36]=p):p=_[36],_[37]!==$||_[38]!==S.deprecated||_[39]!==S.description||_[40]!==S.title||_[41]!==p||_[42]!==A?(m=(0,v.jsx)(I.BJ,{space:2,children:(0,v.jsx)(xF,{deprecated:S.deprecated,description:S.description,inputId:$,validation:A,title:S.title,suffix:p})}),_[37]=$,_[38]=S.deprecated,_[39]=S.description,_[40]=S.title,_[41]=p,_[42]=A,_[43]=m):m=_[43],_[44]!==F||_[45]!==O||_[46]!==V||_[47]!==$||_[48]!==R||_[49]!==B||_[50]!==es||_[51]!==m?(h=(0,v.jsx)(I.az,{flex:1,paddingY:2,children:(0,v.jsx)(xj,{__internal_comments:O,__internal_slot:B,actions:F,fieldFocused:es,fieldHovered:V,presence:R,inputId:$,content:m})}),_[44]=F,_[45]=O,_[46]=V,_[47]=$,_[48]=R,_[49]=B,_[50]=es,_[51]=m,_[52]=h):h=_[52],_[53]===Symbol.for("react.memo_cache_sentinel")?(f=(0,v.jsx)(xQ,{maxAvatars:1,position:"top"}),_[53]=f):f=_[53];let ed=!!N;return _[54]!==eo||_[55]!==er||_[56]!==E||_[57]!==ei||_[58]!==en||_[59]!==ea||_[60]!==S.placeholder||_[61]!==U||_[62]!==ee||_[63]!==T?(g=(0,v.jsx)("div",{"data-testid":"change-bar-wrapper",children:(0,v.jsx)("div",{"data-testid":"change-bar__field-wrapper",children:(0,v.jsx)(kJ,{...E,calendarLabels:eo,deserialize:er,formatInputValue:ei,onChange:en,parseInputValue:ea,placeholder:S.placeholder,serialize:k5,timeStep:U,selectTime:!0,value:T,timeZoneScope:ee})})}),_[54]=eo,_[55]=er,_[56]=E,_[57]=ei,_[58]=en,_[59]=ea,_[60]=S.placeholder,_[61]=U,_[62]=ee,_[63]=T,_[64]=g):g=_[64],_[65]!==D||_[66]!==z||_[67]!==ed||_[68]!==g?(y=(0,v.jsx)(S1,{hasFocus:ed,isChanged:D,path:z,children:g}),_[65]=D,_[66]=z,_[67]=ed,_[68]=g,_[69]=y):y=_[69],_[70]!==h||_[71]!==y?(C=(0,v.jsxs)(I.so,{direction:"column",children:[h,f,y]}),_[70]=h,_[71]=y,_[72]=C):C=_[72],_[73]!==M||_[74]!==L||_[75]!==el||_[76]!==C?(x=(0,v.jsx)(k2,{onMouseEnter:M,onMouseLeave:L,"data-testid":el,radius:2,children:C}),_[73]=M,_[74]=L,_[75]=el,_[76]=C,_[77]=x):x=_[77],x},date:function(e){let t,n,i,r,a,o,l=(0,j.c)(20),{readOnly:s,onChange:d,schemaType:c,elementProps:u,value:p,id:m}=e,h=c.options?.dateFormat||tX.D2,{t:f}=as();l[0]!==m?(t={type:"input",id:m},l[0]=m,l[1]=t):t=l[1];let g=t;l[2]!==d?(n=e=>{d(null===e?hW():hq(e))},l[2]=d,l[3]=n):n=l[3];let y=n;l[4]!==h?(i=e=>(0,tX.GP)(e,h),l[4]=h,l[5]=i):i=l[5];let C=i;l[6]!==h?(r=e=>(0,tX.qg)(e,h),l[6]=h,l[7]=r):r=l[7];let x=r;l[8]!==f?(a=kK(f),l[8]=f,l[9]=a):a=l[9];let b=a;return l[10]!==b||l[11]!==u||l[12]!==C||l[13]!==y||l[14]!==x||l[15]!==s||l[16]!==c.placeholder||l[17]!==g||l[18]!==p?(o=(0,v.jsx)(kJ,{...u,deserialize:kG,formatInputValue:C,onChange:y,parseInputValue:x,placeholder:c.placeholder,calendarLabels:b,readOnly:s,selectTime:!1,serialize:kX,value:p,timeZoneScope:g}),l[10]=b,l[11]=u,l[12]=C,l[13]=y,l[14]=x,l[15]=s,l[16]=c.placeholder,l[17]=g,l[18]=p,l[19]=o):o=l[19],o},url:function(e){let t,n=(0,j.c)(4),{schemaType:i,validationError:r,elementProps:a}=e,o=k0(i,"uri")?.constraint?.options?.allowRelative?"text":"url";return n[0]!==a||n[1]!==o||n[2]!==r?(t=(0,v.jsx)(I.ks,{type:o,inputMode:"url",customValidity:r,...a}),n[0]=a,n[1]=o,n[2]=r,n[3]=t):t=n[3],t},image:function(e){let t,n,i,r=(0,j.c)(12),a=e.schemaType.options?.sources,{image:o}=hE().__internal,l=cc(),s=el0(ob),d=o.directUploads,c=a||o.assetSources;r[0]!==s?(t=(0,t1.OX)(s),r[0]=s,r[1]=t):t=r[1];let u=t;r[2]!==l?(n=e=>Cz(l,e),r[2]=l,r[3]=n):n=r[3];let p=n,{t:m}=as();return r[4]!==c||r[5]!==u||r[6]!==s||r[7]!==p||r[8]!==e||r[9]!==d||r[10]!==m?(i=(0,v.jsx)(D0,{...e,t:m,client:s,assetSources:c,directUploads:d,imageUrlBuilder:u,observeAsset:p,resolveUploader:CU}),r[4]=c,r[5]=u,r[6]=s,r[7]=p,r[8]=e,r[9]=d,r[10]=m,r[11]=i):i=r[11],i},file:function(e){let t,n,i,r=(0,j.c)(11),a=e.schemaType.options?.sources,o=cc(),{file:l}=hE().__internal,s=el0(ob);r[0]!==l.directUploads?(t=(e,t)=>
1074l.directUploads?CU(e,t):null,r[0]=l.directUploads,r[1]=t):t=r[1];let d=t,c=a||l.assetSources;r[2]!==o?(n=e=>Cz(o,e),r[2]=o,r[3]=n):n=r[3];let u=n;return r[4]!==c||r[5]!==s||r[6]!==l.directUploads||r[7]!==u||r[8]!==e||r[9]!==d?(i=(0,v.jsx)(AV,{...e,client:s,assetSources:c,directUploads:l.directUploads,observeAsset:u,resolveUploader:d}),r[4]=c,r[5]=s,r[6]=l.directUploads,r[7]=u,r[8]=e,r[9]=d,r[10]=i):i=r[10],i},string:ER,slug:function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(41),f=yZ(),{path:g,value:y,schemaType:C,validation:x,onChange:b,readOnly:k,elementProps:S,focused:T,focusPath:E}=e,$=C.options?.source;h[0]!==x?(t=x.filter(Sf),h[0]=x,h[1]=t):t=h[1];let A=t,D=(0,_.useRef)(null),z=function(){let e,t=(0,j.c)(6),{getClient:n}=_g(),i=R8(),r=o5(),a=Ru(),o=Rc();return t[0]!==r||t[1]!==o||t[2]!==n||t[3]!==a||t[4]!==i?(e={projectId:a,dataset:o,getClient:n,schema:i,currentUser:r},t[0]=r,t[1]=o,t[2]=n,t[3]=a,t[4]=i,t[5]=e):e=t[5],e}(),{t:P}=as();h[2]!==b||h[3]!==C.name?(n=e=>{e?b(gD.from([hU({_type:C.name}),hq(e,["current"])])):b(gD.from(hW([])))},h[2]=b,h[3]=C.name,h[4]=n):n=h[4];let R=n;h[5]!==f||h[6]!==g||h[7]!==C||h[8]!==z||h[9]!==$||h[10]!==P||h[11]!==R?(i=()=>{let e,t;if(!$)return Promise.reject(Error(P("inputs.slug.error.missing-source",{schemaType:C.name})));let n=f([])||{_type:C.name},i=(e=g.slice(0,-1),t=w.Jt(n,e),{parentPath:e,parent:t,...z});return Sh($,n,i).then(e=>Sm(e||"",C,i)).then(e=>R(e))},h[5]=f,h[6]=g,h[7]=C,h[8]=z,h[9]=$,h[10]=P,h[11]=R,h[12]=i):i=h[12];let[N,O]=function(e){let t,n,i=(0,j.c)(5),[r,a]=(0,_.useState)(null),o=(0,_.useRef)(0);i[0]!==e?(t=t=>{let n=o.current=o.current+1;a({status:"pending"}),Promise.resolve().then(()=>e(t)).then(e=>{n===o.current&&a({status:"complete",result:e})},e=>{n===o.current&&a({status:"error",error:e})})},i[0]=e,i[1]=t):t=i[1];let l=t;return i[2]!==r||i[3]!==l?(n=[r,l],i[2]=r,i[3]=l,i[4]=n):n=i[4],n}(i),V=N?.status==="pending";h[13]!==R?(r=e=>R(e.currentTarget.value),h[13]=R,h[14]=r):r=h[14];let M=r;h[15]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{requestAnimationFrame(()=>{D.current?.focus()})},h[15]=a):a=h[15];let L=a;h[16]===Symbol.for("react.memo_cache_sentinel")?(o=(e,t)=>{!e&&t&&L()},h[16]=o):o=h[16],fS(T,o),h[17]===Symbol.for("react.memo_cache_sentinel")?(l=(e,t)=>{let n=void 0===e?[]:e;n!==t&&Array.isArray(n)&&Array.isArray(t)&&0===n.length&&1===t.length&&"current"===t[0]&&L()},h[17]=l):l=h[17],fS(E,l),h[18]===Symbol.for("react.memo_cache_sentinel")?(s=()=>D.current,h[18]=s):s=h[18],(0,_.useImperativeHandle)(S.ref,s);let F=A.length>0?A[0].message:"",B=y?.current||"";return h[19]!==S||h[20]!==M||h[21]!==V||h[22]!==k||h[23]!==F||h[24]!==B?(d=(0,v.jsx)(I.ks,{customValidity:F,disabled:V,onChange:M,value:B,readOnly:k,...S,ref:D}),h[19]=S,h[20]=M,h[21]=V,h[22]=k,h[23]=F,h[24]=B,h[25]=d):d=h[25],h[26]!==N?(c=N?.status==="error"&&(0,v.jsx)(I.Zp,{padding:2,tone:"critical",children:N.error.message}),h[26]=N,h[27]=c):c=h[27],h[28]!==d||h[29]!==c?(u=(0,v.jsxs)(I.az,{flex:1,children:[d,c]}),h[28]=d,h[29]=c,h[30]=u):u=h[30],h[31]!==N?.status||h[32]!==O||h[33]!==V||h[34]!==k||h[35]!==$||h[36]!==P?(p=$&&(0,v.jsx)(tL.$n,{mode:"ghost",type:"button",disabled:k||V,onClick:O,size:"large",text:N?.status==="pending"?P("inputs.slug.action.generating"):P("inputs.slug.action.generate")}),h[31]=N?.status,h[32]=O,h[33]=V,h[34]=k,h[35]=$,h[36]=P,h[37]=p):p=h[37],h[38]!==u||h[39]!==p?(m=(0,v.jsx)(I.BJ,{space:3,children:(0,v.jsxs)(I.so,{gap:1,children:[u,p]})}),h[38]=u,h[39]=p,h[40]=m):m=h[40],m},crossDatasetReference:function(e){let t,n,i,r,a,o,l=(0,j.c)(21),{path:s,schemaType:d}=e,c=_g();l[0]!==c?(t=c.getClient(ob),l[0]=c,l[1]=t):t=l[1];let u=t,p=cc(),m=c.getClient,{strategy:h}=c.search;l[2]!==u||l[3]!==d.dataset?(n=u.withConfig({dataset:d.dataset,apiVersion:ob.apiVersion,ignoreBrowserTokenWarning:!0}).clone(),l[2]=u,l[3]=d.dataset,l[4]=n):n=l[4];let f=n,g=gw(f);l[5]===Symbol.for("react.memo_cache_sentinel")?(i=[],l[5]=i):i=l[5];let y=gI(i);l[6]!==f||l[7]!==y||l[8]!==m||l[9]!==g||l[10]!==s||l[11]!==d||l[12]!==h?(r=e=>(0,eL.H)($l(d.options,y,s,m)).pipe((0,tx.Z)(t=>{var n;let{filter:i,params:r}=t;return n={...d.options,filter:i,params:r,tag:"search.cross-dataset-reference",maxFieldDepth:g,strategy:h,perspective:"published"},gb(d.to,f,{...n,maxDepth:n.maxFieldDepth})(e,{isCrossDataset:!0}).pipe((0,eV.T)(({hits:e})=>e.map(({hit:e})=>e)),(0,eV.T)(e=>rN(e)),(0,eV.T)(e=>e.map(e=>({id:e.id,type:e.type,published:e.published}))))}),(0,eY.W)(e=>{let t=e.details&&"queryParseError"===e.details.type;return d.options?.filter&&t&&(e.message='Invalid reference filter, please check the custom "filter" option'),(0,eJ.$)(e)})),l[6]=f,l[7]=y,l[8]=m,l[9]=g,l[10]=s,l[11]=d,l[12]=h,l[13]=r):r=l[13];let C=r;l[14]!==f||l[15]!==p?(a=function(e){let{client:t,documentPreviewStore:n}=e,{dataset:i,projectId:r}=t.config(),a=i&&r?{dataset:i,projectId:r}:void 0;return function(e,i){return(e._type?(0,eP.of)(e):n.observeDocumentTypeFromId(e._id,a).pipe((0,eV.T)(t=>({_id:e._id,_type:t})))).pipe((0,eM.n)(r=>{if(!r._type){var o,l;let n;return(o=t,l=e._id,n={uri:o.getDataUrl("doc",l),json:!0,query:{excludeContent:"true"},tag:"cross-dataset-refs.availability"},o.observable.request(n).pipe((0,eV.T)(e=>{let t=(0,Z.A)(e.omitted||[],e=>e.id)[l];return t?"existence"===t.reason?$o:"permission"===t.reason?$a:null:$r}))).pipe((0,eV.T)(t=>({id:e._id,type:void 0,availability:t,preview:{published:void 0}})))}let s=i.to.find(e=>e.type===r._type),d=Pq(s?.preview)||[],c=n.observePaths(e,d,a).pipe((0,eV.T)(e=>e&&P7(e,s)));return(0,e8.z)([c]).pipe((0,eV.T)(([t])=>({type:r._type,id:e._id,availability:$r,preview:{published:rZ(t)?t:void 0}})))}))}}({client:f,documentPreviewStore:p}),l[14]=f,l[15]=p,l[16]=a):a=l[16];let x=a;return l[17]!==x||l[18]!==C||l[19]!==e?(o=(0,v.jsx)($e,{...e,getReferenceInfo:x,onSearch:C}),l[17]=x,l[18]=C,l[19]=e,l[20]=o):o=l[20],o},globalDocumentReference:function(e){let t,n,i,r,a,o,l=(0,j.c)(19),{path:s,schemaType:d}=e,c=_g();l[0]!==c?(t=c.getClient({apiVersion:"2025-02-19"}),l[0]=c,l[1]=t):t=l[1];let u=t,p=c.getClient,{strategy:m}=c.search;l[2]!==u||l[3]!==d?(n=function(e,t){if("dataset"===t.resourceType){let[n,i]=t.resourceId.split(".",2);return e.withConfig({apiVersion:"X",resource:{type:"dataset",id:`${n}.${i}`}})}if("media-library"===t.resourceType||"canvas"===t.resourceType)return e.withConfig({apiVersion:"2025-02-19",resource:{type:t.resourceType,id:t.resourceId}});throw Error(`Invalid resource type "${t.resourceType}"`)}(u,d),l[2]=u,l[3]=d,l[4]=n):n=l[4];let h=n;l[5]===Symbol.for("react.memo_cache_sentinel")?(i=[],l[5]=i):i=l[5];let f=gI(i);
1074l[6]!==f||l[7]!==p||l[8]!==s||l[9]!==h||l[10]!==d||l[11]!==m?(r=e=>(0,eL.H)($z(d.options,f,s,p)).pipe((0,tx.Z)(t=>{var n;let{filter:i,params:r}=t;return n={...d.options,filter:i,params:r,tag:"search.global-document-reference"},(function(e,t,n,i){let{query:r,params:a,sortOrder:o}=gc({types:n},t,i);return e.observable.fetch(r,a).pipe((0,eV.T)(e=>{let t=e.length>10,n=t?e.at(-2):e.at(-1);return{type:"groq2024",hits:e.map(e=>({hit:e})).slice(0,10),nextCursor:t?gu({lastResult:n,sortOrder:o}):void 0}}))})(h,e,d.to,n).pipe((0,eV.T)(({hits:e})=>e.map(({hit:e})=>e)),(0,eV.T)(e=>rN(e)),(0,eV.T)(e=>e.map(e=>({id:e.id,type:e.type,published:e.published}))))}),(0,eY.W)(e=>{let t=e.details&&"queryParseError"===e.details.type;return d.options?.filter&&t&&(e.message='Invalid reference filter, please check the custom "filter" option'),(0,eJ.$)(e)})),l[6]=f,l[7]=p,l[8]=s,l[9]=h,l[10]=d,l[11]=m,l[12]=r):r=l[12];let g=r;l[13]!==h?(a=function(e){let{client:t}=e;return function(e,n){return(e._type?(0,eP.of)(e):t.observable.getDocument(e._id).pipe((0,eV.T)(t=>({_id:e._id,_type:t?._type})))).pipe((0,eM.n)(i=>{if(!i._type){var r,a;let n;return(r=t,a=e._id,n={uri:r.getDataUrl("doc",a),json:!0,excludeContent:"true",tag:"gdr.availability"},r.observable.request(n).pipe((0,eV.T)(e=>{let t=(0,Z.A)(e.omitted||[],e=>e.id)[a];return t?"existence"===t.reason?$D:"permission"===t.reason?$A:null:$$}))).pipe((0,eV.T)(t=>({id:e._id,type:void 0,availability:t,preview:{published:void 0}})))}let o=n.to.find(e=>e.type===i._type);if(!o)return(0,eP.of)({id:e._id,type:i._type,availability:$$,preview:{published:void 0}});let l=Pq(o?.preview)||[],s=t.observable.listen("*",{},{includeResult:!0,tag:"gdr.preview",events:["mutation","welcome"]}),d=$E({observeFields:function(e){let{client:t,listener:n}=e;return function(e,i){return n.pipe((0,eM.n)(n=>{if("welcome"===n.type)return t.observable.getDocument(e,{tag:"gdr.get-document"}).pipe((0,eV.T)(e=>e||null));if("mutation"!==n.type)return eO.w;let i=n.result;return i?i.documentId!==e?eO.w:"disappear"===i.transition?(0,eP.of)(null):(0,eP.of)(i):eO.w}))}}({client:t,listener:s})})(e,l).pipe((0,eV.T)(e=>e?P7(e,o):null));return(0,e8.z)([d]).pipe((0,eV.T)(([t])=>({type:i._type,id:e._id,availability:$$,preview:{published:rZ(t)?t:void 0}})))}))}}({client:h}),l[13]=h,l[14]=a):a=l[14];let y=a;return l[15]!==y||l[16]!==g||l[17]!==e?(o=(0,v.jsx)($_,{...e,getReferenceInfo:y,onSearch:g}),l[15]=y,l[16]=g,l[17]=e,l[18]=o):o=l[18],o}};function D8(e){return`inset 0 0 0 ${e.width}px ${e.color}`}let D4=(0,eI.I4)(I.Zp).withConfig({displayName:"Root",componentId:"sc-1inuom0-0"})(e=>{let{theme:t}=e,{focusRing:n,input:i,radius:r}=t.sanity,a=t.sanity.color.input,o=(0,I.D0)(t.sanity.space[1]);return{position:"relative",borderRadius:`${r[1]}px`,color:a.default.enabled.fg,boxShadow:D8({color:a.default.enabled.border,width:i.border.width}),"& > .content":{position:"relative",lineHeight:"0",margin:`-${o} 0 0 -${o}`},"& > .content > div":{display:"inline-block",verticalAlign:"top",padding:`${o} 0 0 ${o}`},"&:not([data-read-only])":{cursor:"text"},"@media(hover:hover):not([data-disabled]):not([data-read-only]):hover":{borderColor:a.default.hovered.border},"&:not([data-disabled]):not([data-read-only])[data-focused]":{boxShadow:function(e){let{base:t,border:n,focusRing:i}=e,r=i.offset+i.width,a=0-i.offset,o=t?t.bg:"var(--card-bg-color)";return[a>0&&`inset 0 0 0 ${a}px var(--card-focus-ring-color)`,n&&D8(n),a<0&&`0 0 0 ${0-a}px ${o}`,r>0&&`0 0 0 ${r}px var(--card-focus-ring-color)`].filter(Boolean).join(",")}({border:{color:a.default.enabled.border,width:i.border.width},focusRing:n})},"*:disabled + &":{color:a.default.disabled.fg,backgroundColor:a.default.disabled.bg,boxShadow:D8({color:a.default.disabled.border,width:i.border.width})}}}),D6=eI.I4.input.withConfig({displayName:"Input",componentId:"sc-1inuom0-1"})(e=>{let{theme:t}=e,n=t.sanity.fonts.text,i=t.sanity.color.input,r=t.sanity.space[2],a=t.sanity.fonts.text.sizes[2];return{appearance:"none",background:"none",border:0,borderRadius:0,outline:"none",fontSize:(0,I.D0)(a.fontSize),lineHeight:`${a.lineHeight/a.fontSize}`,fontFamily:n.family,fontWeight:`${n.weights.regular}`,margin:0,display:"block",minWidth:"1px",maxWidth:"100%",boxSizing:"border-box",paddingTop:(0,I.D0)(r-a.ascenderHeight),paddingRight:(0,I.D0)(r),paddingBottom:(0,I.D0)(r-a.descenderHeight),paddingLeft:(0,I.D0)(r),"&:not(:invalid):not
1074(:disabled)":{color:i.default.enabled.fg},"&:not(:invalid):disabled":{color:i.default.disabled.fg}}}),D9=(0,eI.I4)(I.az).withConfig({displayName:"Placeholder",componentId:"sc-1inuom0-2"})(e=>{let{theme:t}=e,n=t.sanity.color.input;return(0,eI.AH)` 1075 position: absolute; 1076 top: 0; 1077 left: 0; 1078 right: 0; 1079 pointer-events: none; 1080 --card-fg-color: ${n.default.enabled.placeholder}; 1081 `}),ze=(0,eI.I4)(I.az).withConfig({displayName:"TagBox",componentId:"sc-1inuom0-3"})`max-width:100%;`,zt=(0,_.forwardRef)((e,t)=>{let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T=(0,j.c)(54);T[0]!==e?({disabled:n,onChange:i,onFocus:r,placeholder:a,readOnly:o,value:s,...l}=e,T[0]=e,T[1]=n,T[2]=i,T[3]=r,T[4]=a,T[5]=o,T[6]=l,T[7]=s):(n=T[1],i=T[2],r=T[3],a=T[4],o=T[5],l=T[6],s=T[7]),T[8]!==s?(d=void 0===s?[]:s,T[8]=s,T[9]=d):d=T[9];let E=d,{t:$}=as(rj),[A,D]=(0,_.useState)(""),z=!n&&!o,[P,R]=(0,_.useState)(!1),N=(0,_.useRef)(null),O=(0,_.useRef)(null);T[10]===Symbol.for("react.memo_cache_sentinel")?(c=()=>N.current,T[10]=c):c=T[10],(0,_.useImperativeHandle)(t,c),T[11]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{if((0,I.sb)(e.target)&&e.target.closest('[data-ui="Tag"]'))return;let t=N.current;t&&setTimeout(()=>t.focus(),0)},T[11]=u):u=T[11];let V=u;T[12]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{R(!1)},T[12]=p):p=T[12];let M=p;T[13]===Symbol.for("react.memo_cache_sentinel")?(m=e=>{D(e.currentTarget.value)},T[13]=m):m=T[13];let L=m;T[14]!==r?(h=e=>{R(!0),r&&r(e)},T[14]=r,T[15]=h):h=T[15];let F=h;T[16]!==A||T[17]!==i||T[18]!==E?(f=e=>{if("Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),i&&A)){let e=E.concat([{value:A}]);D(""),i&&i(e)}},T[16]=A,T[17]=i,T[18]=E,T[19]=f):f=T[19];let B=f;T[20]!==i||T[21]!==E?(g=e=>{if(!i)return;let t=E.slice(0);t.splice(e,1),i(t)},T[20]=i,T[21]=E,T[22]=g):g=T[22];let Y=g;T[23]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{let e=N.current;e&&(e.style.width="0",e.style.width=`${e.scrollWidth}px`)},T[23]=y):y=T[23],T[24]!==A?(C=[A],T[24]=A,T[25]=C):C=T[25],(0,_.useEffect)(y,C);let H=n?"":void 0,U=P?"":void 0,Z=o?"":void 0;if(T[26]!==z||T[27]!==A||T[28]!==a||T[29]!==$||T[30]!==E.length?(x=z&&(0,v.jsx)(D9,{hidden:!!(A||E.length),padding:3,children:(0,v.jsx)(I.EY,{textOverflow:"ellipsis",children:a||$("inputs.tags.placeholder",{context:"u">typeof window&&"ontouchstart"in window?"touch":void 0})})}),T[26]=z,T[27]=A,T[28]=a,T[29]=$,T[30]=E.length,T[31]=x):x=T[31],T[32]!==z||T[33]!==Y||T[34]!==E){let e;T[36]!==z||T[37]!==Y?(e=(e,t)=>(0,v.jsx)(ze,{children:(0,v.jsx)(zn,{enabled:z,index:t,muted:!z,onRemove:Y,tag:e})},`tag-${t}`),T[36]=z,T[37]=Y,T[38]=e):e=T[38],b=E.map(e),T[32]=z,T[33]=Y,T[34]=E,T[35]=b}else b=T[35];let q=!z;return T[39]!==F||T[40]!==B||T[41]!==A||T[42]!==l||T[43]!==q?(w=(0,v.jsx)("div",{children:(0,v.jsx)(D6,{...l,disabled:q,onBlur:M,onChange:L,onFocus:F,onKeyDown:B,ref:N,type:"text",value:A})},"tag-input"),T[39]=F,T[40]=B,T[41]=A,T[42]=l,T[43]=q,T[44]=w):w=T[44],T[45]!==b||T[46]!==w?(k=(0,v.jsxs)("div",{className:"content",children:[b,w]}),T[45]=b,T[46]=w,T[47]=k):k=T[47],T[48]!==H||T[49]!==U||T[50]!==Z||T[51]!==x||T[52]!==k?(S=(0,v.jsxs)(D4,{"data-disabled":H,"data-focused":U,"data-read-only":Z,"data-ui":"TagInput",onPointerDown:V,overflow:"auto",padding:1,ref:O,children:[x,k]}),T[48]=H,T[49]=U,T[50]=Z,T[51]=x,T[52]=k,T[53]=S):S=T[53],S});function zn(e){let t,n,i,r,a=(0,j.c)(12),{enabled:o,index:l,muted:s,onRemove:d,tag:c}=e;a[0]!==l||a[1]!==d?(t=()=>{d(l)},a[0]=l,a[1]=d,a[2]=t):t=a[2];let u=t;return a[3]!==s||a[4]!==c.value?(n=(0,v.jsx)(I.az,{flex:1,paddingY:2,paddingLeft:2,children:(0,v.jsx)(I.EY,{muted:s,textOverflow:"ellipsis",children:c.value})}),a[3]=s,a[4]=c.value,a[5]=n):n=a[5],a[6]!==o||a[7]!==u?(i=o&&(0,v.jsx)(tL.$n,{icon:eT.USm,mode:"bleed",onClick:u,tooltipProps:{content:"Remove"}}),a[6]=o,a[7]=u,a[8]=i):i=a[8],a[9]!==n||a[10]!==i?(r=(0,v.jsx)(I.Zp,{"data-ui":"Tag",radius:2,tone:"transparent",children:(0,v.jsxs)(I.so,{align:"center",gap:1,children:[n,i]})}),a[9]=n,a[10]=i,a[11]=r):r=a[11],r}function zi(e){let t,n,i,r,a,o=(0,j.c)(15),{onChange:l,readOnly:s,value:d,elementProps:c,path:u,changed:p}=e;o[0]!==d?(t=void 0===d?[]:d,o[0]=d,o[1]=t):t=o[1];let m=t;o[2]!==m?(n=m?.map(za),o[2]=m,o[3]=n):n=o[3];let h=n;o[4]!==l?(i=e=>{l(0===e.length?hW():hq(e.map(zr)))},o[4]=l,o[5]=i):i=o[5];let f=i;return o[6]!==c||o[7]!==f||o[8]!==s||o[9]!==h?(r=(0,v.jsx)(zt,{onChange:f,readOnly:s,value:h,...c}),o[6]=c,o[7]=f,o[8]=s,o[9]=h,o[10]=r):r=o[10],o[11]!==p||o[12]!==u||o[13]!==r?(a=(0,v.jsx)(S1,{path:u,isChanged:p,hasFocus:!1,children:r}),o[11]=p,o[12]=u,o[13]=r,o[14]=a):a=o[14],a}function zr(e){return e.value}function za(e){return{value:e}}zt.displayName="ForwardRef(TagInput)";let zo=["string","number","boolean"];function zl(e){return(0,eD.uC)(e)?e:{title:(0,es.A)(`${e}`),value:e}}let zs={title:"",value:void 0};function zd(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(20),{value:c,readOnly:u,validationError:p,schemaType:m,onCh
1081ange:h,path:f,changed:g,focused:y,elementProps:C}=e;d[0]!==m.options?.list?(t=m.options?.list||[],d[0]=m.options?.list,d[1]=t):t=d[1],d[2]!==t?(n=t.map(zl),d[2]=t,d[3]=n):n=d[3];let x=n;d[4]!==c?(i=e=>e.value===c,d[4]=c,d[5]=i):i=d[5];let b=x.find(i),w=m.options&&"radio"===m.options.layout;d[6]!==x?(r=e=>x[Number(e)],d[6]=x,d[7]=r):r=d[7];let k=r;d[8]!==x?(a=e=>String(x.indexOf(e)),d[8]=x,d[9]=a):a=d[9];let S=a,T=(0,_.useId)();d[10]!==h?(o=e=>{h(gD.from(typeof e?.value>"u"?hW():hq(e.value)))},d[10]=h,d[11]=o):o=d[11];let E=o;d[12]!==E||d[13]!==k?(l=e=>{let t=k(e.currentTarget.value);t?E(t):E(zs)},d[12]=E,d[13]=k,d[14]=l):l=d[14];let $=l,A=w?(0,v.jsx)(zu,{...C,value:b,inputId:T,items:x,direction:m.options?.direction||"vertical",customValidity:p,onChange:E,readOnly:u}):(0,v.jsx)(I.l6,{...C,customValidity:p,value:S(b),readOnly:u,onChange:$,children:[zs,...x].map(zc)}),D=!!y;return d[15]!==g||d[16]!==A||d[17]!==f||d[18]!==D?(s=(0,v.jsx)(S1,{path:f,isChanged:g,hasFocus:D,children:A}),d[15]=g,d[16]=A,d[17]=f,d[18]=D,d[19]=s):s=d[19],s}function zc(e,t){return(0,v.jsx)("option",{value:t-1,children:e.title},`${t-1}`)}let zu=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l=(0,j.c)(22),{items:s,value:d,onChange:c,onFocus:u,readOnly:p,customValidity:m,direction:h,inputId:f}=e,{t:g}=as();l[0]!==c?(n=()=>{c(null)},l[0]=c,l[1]=n):n=l[1];let y=n,C="horizontal"===h,x=C?I.cV:I.BJ,b=!p&&d,w=C?"center":"flex-end";return l[2]!==m||l[3]!==f||l[4]!==s||l[5]!==c||l[6]!==u||l[7]!==p||l[8]!==t||l[9]!==d?(i=s.map((e,n)=>(0,v.jsx)(zp,{customValidity:m,inputId:f,item:e,onChange:c,onFocus:u,readOnly:p,ref:0===n?t:null,value:d},n)),l[2]=m,l[3]=f,l[4]=s,l[5]=c,l[6]=u,l[7]=p,l[8]=t,l[9]=d,l[10]=i):i=l[10],l[11]!==x||l[12]!==i?(r=(0,v.jsx)(x,{space:3,role:"group",paddingY:1,children:i}),l[11]=x,l[12]=i,l[13]=r):r=l[13],l[14]!==y||l[15]!==b||l[16]!==g?(a=b&&(0,v.jsx)(tL.$n,{icon:eT.NAP,onClick:y,tooltipProps:{content:g("inputs.select.action.clear")},mode:"bleed"}),l[14]=y,l[15]=b,l[16]=g,l[17]=a):a=l[17],l[18]!==w||l[19]!==r||l[20]!==a?(o=(0,v.jsx)(I.Zp,{border:!0,paddingY:2,paddingX:3,radiu
1081s:2,children:(0,v.jsxs)(I.so,{align:w,gap:3,justify:"space-between",children:[r,a]})}),l[18]=w,l[19]=r,l[20]=a,l[21]=o):o=l[21],o}),zp=(0,_.forwardRef)(function(e,t){let n,i,r,a,o=(0,j.c)(17),{customValidity:l,inputId:s,item:d,onChange:c,onFocus:u,readOnly:p,value:m}=e;o[0]!==d||o[1]!==c?(n=()=>{c(d)},o[0]=d,o[1]=c,o[2]=n):n=o[2];let h=n,f=m===d;o[3]!==f||o[4]!==l||o[5]!==h||o[6]!==s||o[7]!==u||o[8]!==p||o[9]!==t?(i=(0,v.jsx)(I.sx,{ref:t,checked:f,onChange:h,onFocus:u,readOnly:p,customValidity:l,name:s}),o[3]=f,o[4]=l,o[5]=h,o[6]=s,o[7]=u,o[8]=p,o[9]=t,o[10]=i):i=o[10];let g=f?"medium":"regular";return o[11]!==d.title||o[12]!==g?(r=(0,v.jsx)(I.az,{marginLeft:2,children:(0,v.jsx)(I.EY,{size:1,weight:g,children:d.title})}),o[11]=d.title,o[12]=g,o[13]=r):r=o[13],o[14]!==i||o[15]!==r?(a=(0,v.jsxs)(I.so,{as:"label",align:"center",children:[i,r]}),o[14]=i,o[15]=r,o[16]=a):a=o[16],a});function zm(e){if(e.components?.input)return e.components.input;let t=function(e){if(fY("array",e))return 1===e.of.length&&fY("string",e.of[0])&&e.options?.layout==="tags"?zi:e.options?.list?_K:e.of.every(e=>zo.includes(e.jsonType))?kr:e.of.some(e=>fY("block",e))?EC:_B;return fY("reference",e)?yL:fY("string",e)?fE(e,"list")?zd:ER:fY("number",e)?fE(e,"list")?zd:k3:void 0}(e);if(t)return t;let n=Object.values(fP(e,new Set).reduce((e,t)=>(e[t.name]=t,e),{})).find(e=>D3[e.name]);if(n)return D3[n.name];throw Error(`Could not find input component for schema type \`${e.name}\``)}function zh(e){return e.components?.preview?e.components.preview:j8}let zf={portal:!0,tone:"default"},zg={position:"relative"},zy=[];function zC(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(99),{schemaType:T,parentSchemaType:E,path:$,readOnly:A,onRemove:D,value:z,open:P,onInsert:R,onCopy:N,onFocus:O,onOpen:V,onClose:M,changed:L,focused:F,children:B,inputProps:Y}=e,{renderPreview:H}=Y,{t:U}=as(),{enabled:Z}=y3(),q=P&&!Z,W=P&&Z,J=E.options?.sortable!==!1,K=E.of,[G,X]=(0,_.useState)(null),Q=(0,_.useRef)(null);S[0]!==G?(t=()=>G,n=[G],S[0]=G,S[1]=t,S[2]=n):(t=S[1],n=S[2]),(0,_.useImperativeHandle)(Q,t,n),fI(Q,P&&null!==G),S[3]===Symbol.for("react.memo_cache_sentinel")?(i=(e,t)=>{!e&&t&&Q.current&&Q.current?.focus()},S[3]=i):i=S[3],fS(F,i);let ee=z._resolvingInitialValue,et=z[CE],en="number"==typeof et?.progress?et?.progress:void 0;S[4]!==R||S[5]!==z?(r=()=>{R({items:[{...z,_key:y4()}],position:"after"})},S[4]=R,S[5]=z,S[6]=r):r=S[6];let ei=r;S[7]!==N||S[8]!==z?(a=()=>{N({items:[{...z,_key:y4()}]})},S[7]=N,S[8]=z,S[9]=a):a=S[9];let er=a;S[10]!==R?(o=(e,t)=>{R({items:[Ch(t)],position:e})},S[10]=R,S[11]=o):o=S[11];let ea=o,eo=hT($,!0);S[12]!==eo?(l=0===eo.length?null:(0,v.jsx)(wy,{presence:eo,maxAvatars:1}),S[12]=eo,S[13]=l):l=S[13];let el=l,es=hO($,!0);S[14]!==es?(s=0===es.length?null:(0,v.jsx)(I.az,{paddingX:1,paddingY:3,children:(0,v.jsx)(xA,{validation:es,__unstable_showSummary:!0})}),S[14]=es,S[15]=s):s=S[15];let ed=s,ec=es.some(zv),eu=es.some(zb),[ep,em]=(0,_.useState)(null),eh=E.options?.insertMenu;S[16]!==ep||S[17]!==ea||S[18]!==K||S[19]!==eh?(d={schemaTypes:K,insertMenuOptions:eh,onInsert:ea,referenceElement:ep},S[16]=ep,S[17]=ea,S[18]=K,S[19]=eh,S[20]=d):d=S[20];let{insertBefore:ef,insertAfter:eg}=_C(d),ey=E.options?.disableActions||zy;S[21]!==ey||S[22]!==D||S[23]!==U?(c=!ey.includes("remove")&&(0,v.jsx)(tL.Dr,{text:U("inputs.array.action.remove"),tone:"critical",icon:eT.ucK,onClick:D},"remove"),S[21]=ey,S[22]=D,S[23]=U,S[24]=c):c=S[24],S[25]!==ey||S[26]!==er||S[27]!==U?(u=!ey.includes("copy")&&(0,v.jsx)(tL.Dr,{text:U("inputs.array.action.copy"),icon:eT.TdU,onClick:er},"copy"),S[25]=ey,S[26]=er,S[27]=U,S[28]=u):u=S[28],S[29]!==ey||S[30]!==ei||S[31]!==U?(p=!ey.includes("duplicate")&&(0,v.jsx)(tL.Dr,{text:U("inputs.array.action.duplicate"),icon:eT.g$z,onClick:ei},"duplicate"),S[29]=ey,S[30]=ei,S[31]=U,S[32]=p):p=S[32],S[33]!==ey||S[34]!==ef.menuItem?(m=!ey.includes("add")&&!ey.includes("addBefore")&&ef.menuItem,S[33]=ey,S[34]=ef.menuItem,S[35]=m):m=S[35],S[36]!==ey||S[37]!==eg.menuItem?(h=!ey.includes("add")&&!ey.includes("addAfter")&&eg.menuItem,S[36]=ey,S[37]=eg.menuItem,S[38]=h):h=S[38],S[39]!==c||S[40]!==u||S[41]!==p||S[42]!==m||S[43]!==h?(f=[c,u,p,m,h].filter(
1081Boolean),S[39]=c,S[40]=u,S[41]=p,S[42]=m,S[43]=h,S[44]=f):f=S[44];let eC=f;S[45]!==eg||S[46]!==ef||S[47]!==eC||S[48]!==e.inputId||S[49]!==A?(g=A||0===eC.length?null:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(tL.IU,{ref:em,onOpen:()=>{ef.send({type:"close"}),eg.send({type:"close"})},button:(0,v.jsx)(rl,{"data-testid":"array-item-menu-button",selected:!!ef.state.open||!!eg.state.open||void 0}),id:`${e.inputId}-menuButton`,menu:(0,v.jsx)(I.W1,{children:eC}),popover:zf}),ef.popover,eg.popover]}),S[45]=eg,S[46]=ef,S[47]=eC,S[48]=e.inputId,S[49]=A,S[50]=g):g=S[50];let ex=g,eb=function({readOnly:e,hasErrors:t,hasWarnings:n}){return e?"transparent":t?"critical":n?"caution":"default"}({readOnly:A,hasErrors:ec,hasWarnings:eu});S[51]!==V?(y=e=>{e.stopPropagation(),V()},S[51]=V,S[52]=y):y=S[52];let ev=y,ej=!!A;S[53]!==e.schemaType||S[54]!==e.value||S[55]!==H||S[56]!==en?(C=H({schemaType:e.schemaType,value:e.value,layout:"default",skipVisibilityCheck:!0,progress:en}),S[53]=e.schemaType,S[54]=e.value,S[55]=H,S[56]=en,S[57]=C):C=S[57],S[58]!==ee?(x=ee&&(0,v.jsx)(ry,{fill:!0}),S[58]=ee,S[59]=x):x=S[59],S[60]!==ev||S[61]!==O||S[62]!==ee||S[63]!==C||S[64]!==x?(b=(0,v.jsxs)(I.Zp,{as:"button",type:"button",tone:"inherit",radius:1,disabled:ee,onMouseDown:zx,onClick:ev,ref:X,onFocus:O,__unstable_focusRing:!0,style:zg,children:[C,x]}),S[60]=ev,S[61]=O,S[62]=ee,S[63]=C,S[64]=x,S[65]=b):b=S[65],S[66]!==F||S[67]!==ex||S[68]!==P||S[69]!==el||S[70]!==J||S[71]!==ej||S[72]!==b||S[73]!==eb||S[74]!==ed?(w=(0,v.jsx)(_D,{menu:ex,presence:el,validation:ed,tone:eb,focused:F,dragHandle:J,selected:P,readOnly:ej,children:b}),S[66]=F,S[67]=ex,S[68]=P,S[69]=el,S[70]=J,S[71]=ej,S[72]=b,S[73]=eb,S[74]=ed,S[75]=w):w=S[75];let ew=w;if(S[76]!==L||S[77]!==B||S[78]!==F||S[79]!==ew||S[80]!==M||S[81]!==W||S[82]!==q||S[83]!==E.options?.modal?.type||S[84]!==E.options?.modal?.width||S[85]!==$||S[86]!==G||S[87]!==A||S[88]!==T||S[89]!==U||S[90]!==z){let e,t,n=v1(T),i=!!F;S[92]!==ew?(e=(0,v.jsx)(I.az,{paddingX:1,children:ew}),S[92]=ew,S[93]=e):e=S[93],S[94]!==L||S[95]!==$||S[96]!==i||S[97]!==e?(t=(0,v.jsx)(S1,{path:$,isChanged:L,hasFocus:i,children:e}),S[94]=L,S[95]=$,S[96]=i,S[97]=e,S[98]=t):t=S[98],k=(0,v.jsxs)(_y,{children:[t,q&&(0,v.jsx)(Bv,{header:U(A?"inputs.array.action.view":"inputs.array.action.edit",{itemTypeTitle:n}),type:E?.options?.modal?.type||"dialog",width:E?.options?.modal?.width??1,id:z._key,onClose:M,autofocus:F,legacy_referenceElement:G,children:B}),W&&(0,v.jsx)(BO,{header:U(A?"inputs.array.action.view":"inputs.array.action.edit",{itemTypeTitle:n}),type:E?.options?.modal?.type||"dialog",width:E?.options?.modal?.width??1,id:z._key,onClose:M,autofocus:F,legacy_referenceElement:G,children:B})]}),S[76]=L,S[77]=B,S[78]=F,S[79]=ew,S[80]=M,S[81]=W,S[82]=q,S[83]=E.options?.modal?.type,S[84]=E.options?.modal?.width,S[85]=$,S[86]=G,S[87]=A,S[88]=T,S[89]=U,S[90]=z,S[91]=k}else k=S[91];return k}function zx(e){e.preventDefault()}function zb(e){return"warning"===e.level}function zv(e){return"error"===e.level}function zj(e){let t,n,i=(0,j.c)(7),{menuRef:r,menuButtonRef:a,containerRef:o}=e;i[0]!==o||i[1]!==a||i[2]!==r?(t={menuRef:r,menuButtonRef:a,containerRef:o},i[0]=o,i[1]=a,i[2]=r,i[3]=t):t=i[3];let l=t;return i[4]!==e.children||i[5]!==l?(n=(0,v.jsx)(S.Re.Provider,{value:l,children:e.children}),i[4]=e.children,i[5]=l,i[6]=n):n=i[6],n}let zw={portal:!0,tone:"default"};function z_(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(103),{schemaType:T,parentSchemaType:E,path:$,readOnly:A,onRemove:D,value:z,open:P,onInsert:R,onCopy:N,presence:O,validation:V,inputId:M,changed:L,focused:F,children:B,inputProps:Y}
1081=e,{onChange:H,focusPath:U,onPathFocus:Z,renderPreview:q,elementProps:W}=Y,J=E.options?.sortable!==!1,K=E.of,G=(0,_.useRef)(null),X=(0,_.useRef)(null),Q=(0,_.useRef)(null),ee=(0,_.useRef)(null);S[0]!==$||S[1]!==T||S[2]!==z?(t={path:$,schemaType:T,value:z},S[0]=$,S[1]=T,S[2]=z,S[3]=t):t=S[3];let{EditReferenceLink:et,getReferenceInfo:en,selectedState:ei,isCurrentDocumentLiveEdit:er}=yS(t);fI(G,P),S[4]===Symbol.for("react.memo_cache_sentinel")?(n=(e,t)=>{!e&&t&&G.current&&G.current?.focus()},S[4]=n):n=S[4],fS(F,n);let ea=e.validation.some(zS),eo=e.validation.some(zk),el=z._resolvingInitialValue;S[5]!==R||S[6]!==z?(i=()=>{R({items:[{...z,_key:y4()}],position:"after"})},S[5]=R,S[6]=z,S[7]=i):i=S[7];let es=i;S[8]!==N||S[9]!==z?(r=()=>{N({items:[{...z,_key:y4()}]})},S[8]=N,S[9]=z,S[10]=r):r=S[10];let ed=r;S[11]!==R?(a=(e,t)=>{R({items:[{...Ch(t),_key:y4()}],position:e})},S[11]=R,S[12]=a):a=S[12];let ec=a,eu=yb(z?._ref,en),ep=z._ref,em=eu.result?.type||z?._strengthenOnPublish?.type,eh=ep&&eu.result?.isPublished;S[13]!==H||S[14]!==T.weak?(o=()=>{H([!0===T.weak?hq(!0,["_weak"]):hW(["_weak"]),hW(["_strengthenOnPublish"])])},S[13]=H,S[14]=T.weak,S[15]=o):o=S[15];let ef=o;S[16]!==em||S[17]!==T.to?(l=em?T.to.find(e=>e.name===em):void 0,S[16]=em,S[17]=T.to,S[18]=l):l=S[18];let eg=l,ey="pressed"===ei,eC="selected"===ei,ex=function({readOnly:e,hasErrors:t,hasWarnings:n}){return e?"transparent":t?"critical":n?"caution":"default"}({readOnly:A,hasErrors:ea,hasWarnings:eo}),eb=!ep||"_ref"===U[0],{t:ev}=as();S[19]!==ep||S[20]!==eb||S[21]!==Z?(s=()=>{Z(ep&&eb?[]:["_ref"])},S[19]=ep,S[20]=eb,S[21]=Z,S[22]=s):s=S[22];let ej=s,[ew,e_]=(0,_.useState)(null);S[23]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{e_(e),Q.current=e},S[23]=d):d=S[23];let ek=d,eS=E.options?.insertMenu;S[24]!==ew||S[25]!==ec||S[26]!==K||S[27]!==eS?(c={schemaTypes:K,insertMenuOptions:eS,onInsert:ec,referenceElement:ew},S[24]=ew,S[25]=ec,S[26]=K,S[27]=eS,S[28]=c):c=S[28];let{insertBefore:eI,insertAfter:eE}=_C(c),e$=E.options?.disableActions||rM;S[29]!==H||S[30]!==T.weak?(u=()=>{H(!0===T.weak?hq(!0,["_weak"]):hW(["_weak"]))},S[29]=H,S[30]=T.weak,S[31]=u):u=S[31];let eA=u,eD=z?._weak?"weak":"strong",ez=!0===T.weak?"weak":"strong",eP=ep&&!eu.isLoading&&z?._strengthenOnPublish,eR=!eu.isLoading&&eu.result?.availability.available&&ep&&eD!==ez&&!eP;S[32]!==ef||S[33]!==er||S[34]!==eh||S[35]!==T||S[36]!==z._strengthenOnPublish?(p=er&&eh&&z._strengthenOnPublish&&(0,v.jsx)(yp,{schemaType:T,handleRemoveStrengthenOnPublish:ef}),S[32]=ef,S[33]=er,S[34]=eh,S[35]=T,S[36]=z._strengthenOnPublish,S[37]=p):p=S[37],S[38]!==eD||S[39]!==eA||S[40]!==eR?(m=eR&&(0,v.jsx)(yg,{actualStrength:eD,handleFixStrengthMismatch:eA}),S[38]=eD,S[39]=eA,S[40]=eR,S[41]=m):m=S[41],S[42]!==eu.error||S[43]!==eu.retry?(h=eu.error&&(0,v.jsx)(yf,{errorMessage:eu.error.message,onHandleRetry:eu.retry}),S[42]=eu.error,S[43]=eu.retry,S[44]=h):h=S[44],S[45]!==p||S[46]!==m||S[47]!==h?(f=(0,v.jsxs)(v.Fragment,{children:[p,m,h]}),S[45]=p,S[46]=m,S[47]=h,S[48]=f):f=S[48];let eN=f;S[49]!==e$||S[50]!==ed||S[51]!==es||S[52]!==ej||S[53]!==ep||S[54]!==M||S[55]!==eE||S[56]!==eI||S[57]!==eb||S[58]!==D||S[59]!==A||S[60]!==eg?.name||S[61]!==ev||S[62]!==z._ref?(g=A?null:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(tL.IU,{ref:ek,onOpen:()=>{eI.send({type:"close"}),eE.send({type:"close"})},button:(0,v.jsx)(rl,{selected:!!eI.state.open||!!eE.state.open||void 0,tooltipProps:{fallbackPlacements:["top","bottom"],placement:"right"}}),id:`${M}-menuButton`,menu:(0,v.jsxs)(I.W1,{ref:X,children:[!A&&(0,v.jsxs)(v.Fragment,{children:[!e$.includes("remove")&&(0,v.jsx)(tL.Dr,{text:ev("inputs.reference.action.remove"),tone:"critical",icon:eT.ucK,onClick:D}),(0,v.jsx)(tL.Dr,{text:ev(ep&&eb?"inputs.reference.action.replace-cancel":"inputs.reference.action.replace"),icon:ep&&eb?eT.USm:eT.Fjq,onClick:ej}),!e$.includes("copy")&&(0,v.jsx)(tL.Dr,{text:ev("inputs.reference.action.copy"),icon:eT.TdU,onClick:ed}),!e$.includes("duplicate")&&(0,v.jsx)(tL.Dr,{text:ev("inputs.reference.action.duplicate"),icon:eT.g$z,onClick:es}),!(e$.includes("add")||e$.includes("addBefore"))&&eI.menuItem,!e$.includes("add")&&!e$.includes("addAfter")&&eE.menuItem]}),!A&&!eb&&ep&&(0,v.jsx)(I.Nj,{}),!eb&&ep&&(0,v.jsx)(tL.Dr,{as:nU.RZ,icon:eT.ZPM,intent:"edit",params:{id:z?._ref,type:eg?.name},rel:"noopener noreferrer",target:"_blank",text:ev("inputs.reference.action.open-in-new-tab")})]}),popover:zw}),eI.popover,eE.popover]}),S[49]=e$,S[50]=ed,S[51]=es,S[52]=ej,S[53]=ep,S[54]=M,S[55]=eE,S[56]=eI,S[57]=eb,S[58]=D,S[59]=A,S[60]=eg?.name,S[61]=ev,S[62]=z._ref,S[63]=g):g=S[63];let eO=g,eV=!!A;S[64]!==eb||S[65]!==O?(y=!eb&&O.length>0&&(0,v.jsx)(wy,{presence:O,maxAvatars:1}),S[64]=eb,S[65]=O,S[66]=y):y=S[66],S[67]!==eb||S[68]!==V?(C=!eb&&V.length>0&&(0,v.jsx)(xA,{validation:V}),S[67]=eb,S[68]=V,S[69]=C):C=S[69];let eM=eb?void 0:eN,eL=eb?void 0:ex;S[70]!==et||S[71]!==B||S[72]!==W||S[73]!==M||S[74]!==eb||S[75]!==eu||S[76]!==O||S[77]!==ey||S[78]!==eg?.name||S[79]!==q||S[80]!==el||S[81]!==T||S[82]!==eC||S[83]!==V||S[84]!==z?(x=eb?(0,v.jsx)(I.az,{padding:1,ref:ee,children:(0,v.jsx)(xG,{title:T.title,de
1081scription:T.description,__unstable_presence:O,validation:V,inputId:M,deprecated:T.deprecated,children:B})}):(0,v.jsxs)(yh,{as:et,tone:"inherit",radius:2,documentId:z?._ref,documentType:eg?.name,disabled:el,__unstable_focusRing:!0,selected:eC,pressed:ey,"data-selected":!!eC||void 0,"data-pressed":!!ey||void 0,...W,children:[(0,v.jsx)(g8,{value:z,referenceInfo:eu,renderPreview:q,type:T}),el&&(0,v.jsx)(ry,{fill:!0})]}),S[70]=et,S[71]=B,S[72]=W,S[73]=M,S[74]=eb,S[75]=eu,S[76]=O,S[77]=ey,S[78]=eg?.name,S[79]=q,S[80]=el,S[81]=T,S[82]=eC,S[83]=V,S[84]=z,S[85]=x):x=S[85],S[86]!==F||S[87]!==eO||S[88]!==J||S[89]!==eV||S[90]!==y||S[91]!==C||S[92]!==eM||S[93]!==eL||S[94]!==x?(b=(0,v.jsx)(zj,{menuRef:X,menuButtonRef:Q,containerRef:ee,children:(0,v.jsx)(_D,{dragHandle:J,readOnly:eV,presence:y,validation:C,menu:eO,footer:eM,tone:eL,focused:F,children:x})}),S[86]=F,S[87]=eO,S[88]=J,S[89]=eV,S[90]=y,S[91]=C,S[92]=eM,S[93]=eL,S[94]=x,S[95]=b):b=S[95];let eF=b,eB=!!F;return S[96]!==eF?(w=(0,v.jsx)(I.az,{paddingX:1,children:eF}),S[96]=eF,S[97]=w):w=S[97],S[98]!==L||S[99]!==$||S[100]!==eB||S[101]!==w?(k=(0,v.jsx)(S1,{path:$,isChanged:L,hasFocus:eB,children:w}),S[98]=L,S[99]=$,S[100]=eB,S[101]=w,S[102]=k):k=S[102],k}function zk(e){return"warning"===e.level}function zS(e){return"error"===e.level}function zI(e){return e.components?.item?e.components.item:(0,eD.do)(e)?z_:zC}let zT={name:nY.yL,title:"All fields",hidden:!1,i18n:{title:{key:"inputs.object.field-group-tabs.all-fields-title",ns:rj}}};function zE(e){return e}function z$({getPath:e,hashInput:t,decorator:n=zE}){let i=new Map;return function(r){return n(function(...n){let a=(0,w.dI)(e(...n)),o=JSON.stringify(t(...n)),l=i.get(a);if(o===l?.serializedHash)return l.result;let s=r(...n);return i.set(a,{serializedHash:o,result:s}),s})}}function zA(e={},t){if(e?.collapsible===!1||e?.collapsable===!1)return{collapsible:!1,collapsed:!1};let n="boolean"==typeof e?.collapsed?e.collapsed:t>=3||void 0;return{collapsible:e?.collapsible===!0||e?.collapsable===!0||!0===n||void 0,collapsed:n}}let zD=new WeakMap,zz={key:"GetIdUndefined"},zP={key:"GetIdNull"};function zR(e){switch(typeof e){case"undefined":return zR(zz);case"function":case"object":case"symbol":{if(null===e)return zR(zP);let t=zD.get(e);if(t)return t;let n=(0,tJ.Ak)();return zD.set(e,n),n}default:return`${e}`}}let zN=["parentNode","childNodes","firstChild","lastChild","nextSibling","previousSibling","parentElement","textContent","nodeType","nodeName","nodeValue","ownerDocument","baseURI","isConnected","children","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childElementCount","innerHTML","outerHTML","className","classList","tagName","attributes","scrollTop","scrollLeft","scrollWidth","scrollHeight","clientTop","clientLeft","clientWidth","clientHeight","offsetParent","offsetTop","offsetLeft","offsetWidth","offsetHeight"];function zO(e){return zN.includes(e)?`sanitized-${e}`:e}function zV(e,t,n){return!!n&&(n.name===zT.name||void 0!==t&&(0===e.length&&n.name===zT.name||(0,ey.A)(t).includes(n.name)))}function zM(e){return typeof e>"u"||rZ(e)}function zL(e,t){return!(Array.isArray(e)&&typeof t>"u"||Array.isArray(t)&&typeof e>"u")&&(!!e&&!t||!(0,D.A)(e,t))}let zF={string:"",number:0,boolean:!1,array:[],object:{}};function zB({comparisonValue:e,value:t,schemaType:n,perspective:i,hasUpstreamVersion:r}){let a="object"==typeof n&&null!==n&&"jsonType"in n&&"string"==typeof n.jsonType&&n.jsonType in zF?n.jsonType:void 0;if(typeof a>"u")throw Error("Expected `jsonType`");let o=zF[a],l={provenance:{bundle:i}};return{__unstable_computeDiff:t=>(0,iB.g)((0,iB.L)(r?e??o:o,l),(0,iB.L)(t??o,l),{}),compareValue:e??void 0,hasUpstreamVersion:r}}function zY(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(28),{children:m}=e;p[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],p[0]=t):t=p[0];let[h,f]=(0,_.useState)(t),{onPathOpen:g}=fr(),{hasAnyFullscreen:y,allFullscreenPaths:C}=wo();p[1]===Symbol.for("react.memo_cache_sentinel")?(n=(e,t)=>{f(n=>n.some(t=>t.id===e)?n:[...n,{id:e,path:t}])},p[1]=n):n=p[1];let x=n;p[2]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{f(t=>t.filter(t=>t.id!==e))},p[2]=i):i=p[2];let b=i;p[3]===Symbol.for("react.memo_cache_sentinel")?(r=(e,t)=>
1081{f(n=>n.map(n=>n.id===e?{...n,path:t}:n))},p[3]=r):r=p[3];let w=r;p[4]!==C?(a=e=>C.filter(t=>{let n=or(t);if(n.length>e.length||!n.every((t,n)=>{let i=e[n];return(0,eD.tA)(t)&&(0,eD.tA)(i)?t._key===i._key:t===i}))return!1;if(n.some(zZ))return!0;let i=e[n.length];return!(0,eD.tA)(i)}),p[4]=C,p[5]=a):a=p[5];let k=a;p[6]!==g?(o=()=>{g(rM),f([])},p[6]=g,p[7]=o):o=p[7];let I=o;p[8]!==I||p[9]!==k||p[10]!==g?(l=e=>{let t=k(e);if(t&&t.length>0){let e=or(t.reduce(zU));g(e),f(t=>t.filter(t=>!!t.path&&!(t.path.length>=e.length)&&t.path.every((t,n)=>{let i=e[n];return(0,eD.tA)(t)&&(0,eD.tA)(i)?t._key===i._key:t===i})))}else I()},p[8]=I,p[9]=k,p[10]=g,p[11]=l):l=p[11];let T=l;p[12]!==C||p[13]!==I||p[14]!==T||p[15]!==y||p[16]!==g||p[17]!==h?(s=e=>{let t=h[h.length-1]?.path;if(e?.toParent&&h.length>=2){let e=h[h.length-2];if(e?.path){g(e.path),f(zH);return}}t&&y()&&C.length>=1?T(t):I()},p[12]=C,p[13]=I,p[14]=T,p[15]=y,p[16]=g,p[17]=h,p[18]=s):s=p[18];let E=s;p[19]!==g?(d=e=>{g(e),f(t=>t.filter(t=>!!t.path&&!(t.path.length>=e.length)&&t.path.every((t,n)=>{let i=e[n];return(0,eD.tA)(t)&&(0,eD.tA)(i)?t._key===i._key:t===i})))},p[19]=g,p[20]=d):d=p[20];let $=d;p[21]!==E||p[22]!==$||p[23]!==h?(c={stack:h,push:x,remove:b,update:w,close:E,navigateTo:$},p[21]=E,p[22]=$,p[23]=h,p[24]=c):c=p[24];let A=c;return p[25]!==m||p[26]!==A?(u=(0,v.jsx)(S.CZ.Provider,{value:A,children:m}),p[25]=m,p[26]=A,p[27]=u):u=p[27],u}function zH(e){return e.slice(0,-1)}function zU(e,t){return t.length>e.length?t:e}function zZ(e){return(0,eD.tA)(e)}function zq(e){let t,n,i,r=(0,j.c)(7),{children:a}=e;r[0]===Symbol.for("react.memo_cache_sentinel")?(t={error:null,info:{}},r[0]=t):t=r[0];let[o,l]=(0,_.useState)(t),{error:s,info:d}=o;r[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>l({error:null,info:{}}),r[1]=n):n=r[1];let c=n;if(!s){let e;return r[2]!==a?(e=(0,v.jsx)(tL.tH,{onCatch:l,children:a}),r[2]=a,r[3]=e):e=r[3],e}return r[4]!==s||r[5]!==d?(i=(0,v.jsx)(zW,{error:s,info:d,onRetry:c}),r[4]=s,r[5]=d,r[6]=i):i=r[6],i}function zW(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(26),{error:u,info:p,onRetry:m}=e;if(u instanceof ow||u instanceof etX)throw u;let{t:h}=as(),f=rZ(u)&&"string"==typeof u.message&&u.message;c[0]!==u?(t=rZ(u)&&"string"==typeof u.stack&&u.stack,c[0]=u,c[1]=t):t=c[1];let g=t,y="string"==typeof p?.componentStack&&p.componentStack;(0,iV.i)(m),c[2]!==h?(n=h("form.error.unhandled-runtime-error.title"),c[2]=h,c[3]=n):n=c[3],c[4]!==n?(i=(0,v.jsx)(v.Fragment,{children:n}),c[4]=n,c[5]=i):i=c[5];let C=I.BJ,x=I.EY,b=h("form.error.unhandled-runtime-error.error-message",{message:f});return c[6]!==b?(r=(0,v.jsx)(v.Fragment,{children:b}),c[6]=b,c[7]=r):r=c[7],c[8]!==x||c[9]!==r?(a=(0,v.jsx)(x,{as:"p",muted:!0,size:1,children:r}),c[8]=x,c[9]=r,c[10]=a):a=c[10],c[11]!==g||c[12]!==h?(o=g&&(0,v.jsx)(I.az,{children:(0,v.jsxs)(I.BJ,{space:2,children:[(0,v.jsx)(I.EY,{as:"p",size:1,children:(0,v.jsx)(v.Fragment,{children:h("form.error.unhandled-runtime-error.call-stack.title")})}),(0,v.jsx)(I.Zp,{border:!0,radius:2,overflow:"auto",padding:4,tone:"inherit",children:g&&(0,v.jsx)(I.Cy,{size:1,style:{maxHeight:"40vh"},children:g})})]})},"call-stack"),c[11]=g,c[12]=h,c[13]=o):o=c[13],c[14]!==y||c[15]!==h?(l=dT&&y&&(0,v.jsx)(I.az,{children:(0,v.jsxs)(I.BJ,{space:2,children:[(0,v.jsx)(I.EY,{as:"p",size:1,children:(0,v.jsx)(v.Fragment,{children:h("form.error.unhandled-runtime-error.component-stack.title")})}),(0,v.jsx)(I.Zp,{border:!0,radius:2,overflow:"auto",padding:4,tone:"inherit",children:y&&(0,v.jsx)(I.Cy,{size:1,style:{maxHeight:"40vh"},children:y})})]})},"component-stack"),c[14]=y,c[15]=h,c[16]=l):l=c[16],c[17]!==C||c[18]!==a||c[19]!==o||c[20]!==l?(s=(0,v.jsxs)(C,{space:4,children:[a,o,l]}),c[17]=C,c[18]=a,c[19]=o,c[20]=l,c[21]=s):s=c[21],c[22]!==g$||c[23]!==s||c[24]!==i?(d=(0,v.jsx)(g$,{status:"error",title:i,children:s}),c[22]=g$,c[23]=s,c[24]=i,c[25]=d):d=c[25],d}let zJ=typeof window>"u"?eO.w:(0,eW.R)(window,"orientationchange").pipe((0,e1.t)(1)),zK=typeof window>"u"?eO.w:(0,eW.R)(window,"resize").pipe((0,e1.t)(1)),zG=typeof window>"u"?eO.w:(0,eW.R)(window,"scroll",{passive:!0,capture:!0}).pipe((0,e1.t)(1)),zX="u">typeof window&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in IntersectionObserverEntry.prototype&&("isIntersecting"in IntersectionObserverEntry.prototype||Ob
1081ject.defineProperty(IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),1)?(g=new eq.B,y=new IntersectionObserver(e=>{e.forEach(e=>{g.next(e)})},{threshold:0,rootMargin:"150px"}),function(e){return new eU.c(t=>(y.observe(e),t.next(),()=>y.unobserve(e))).pipe((0,tx.Z)(()=>g.asObservable()),(0,to.p)(t=>t.target===e),(0,eV.T)(e=>({isIntersecting:e.isIntersecting})))}):function(e){let t=()=>{var t,n;return t=e.getBoundingClientRect(),n={left:0,right:window.innerWidth,top:0,bottom:window.innerHeight},t.left<=n.right+150&&t.right>=n.left-150&&t.top<=n.bottom+150&&t.bottom>=n.top-150};return(0,eZ.h)((0,eP.of)(t()),zK,zG,zJ).pipe((0,eV.T)(t),(0,eV.T)(e=>({isIntersecting:e})))},zQ=typeof window>"u"?eO.w:(0,eW.R)(document,"visibilitychange").pipe((0,e1.t)(1));function z1(e){return e.isIntersecting}function z2(e){return e.target instanceof Document&&!e?.target?.hidden}function z5(e){return rq(e)?e:void 0}function z0(e){var t;let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(39);y[0]!==e?({layout:i,value:d,component:n,style:s,schemaType:o,skipVisibilityCheck:l,perspectiveStack:r,...a}=e,y[0]=e,y[1]=n,y[2]=i,y[3]=r,y[4]=a,y[5]=o,y[6]=l,y[7]=s,y[8]=d):(n=y[1],i=y[2],r=y[3],a=y[4],o=y[5],l=y[6],s=y[7],d=y[8]);let{t:C}=as(),[x,b]=(0,_.useState)(null),w=function(e){let t,n,i=(0,j.c)(5),{element:r,hideDelay:a,disabled:o}=e,l=void 0===a?0:a,[s,d]=(0,_.useState)(!1);return i[0]!==o||i[1]!==r||i[2]!==l?(t=()=>{if(!r||o)return;r&&"checkVisibility"in r&&d(r.checkVisibility());let e=(0,eR.x)((0,eP.of)(!document.hidden),zQ.pipe((0,eV.T)(z2))).pipe((0,eQ.F)()),t=zX(r).pipe((0,eV.T)(z1)),n=e.pipe((0,eM.n)(e=>e?t:(0,eP.of)(!1)),(0,eM.n)(e=>e?(0,eP.of)(!0):(0,eP.of)(!1).pipe((0,tb.c)(l))),(0,eQ.F)()).subscribe(d);return()=>n.unsubscribe()},n=[r,l,o],i[0]=o,i[1]=r,i[2]=l,i[3]=t,i[4]=n):(t=i[3],n=i[4]),(0,_.useLayoutEffect)(t,n),!o&&s}({disabled:l,element:x,hideDelay:2e3})||l,k=l||w;y[9]!==r||y[10]!==o||y[11]!==k||y[12]!==d?(c={enabled:k,schemaType:o,value:d,perspectiveStack:r},y[9]=r,y[10]=o,y[11]=k,y[12]=d,y[13]=c):c=y[13];let S=v3(c),I=s?.minWidth||1,T=s?.minHeight||1;y[14]!==s||y[15]!==I||y[16]!==T?(u={...s,minWidth:I,minHeight:T},y[14]=s,y[15]=I,y[16]=T,y[17]=u):u=y[17];let E=u;y[18]!==d?(t=d,p=function(e){if(!rZ(e))return;let t="number"==typeof e.progress?e.progress:0,n=z5(e.initiated||e.createdAt),i=z5(e.updated||e.updatedAt),r=z5(e?.file?.name),a=z5(e?.file?.type),o=z5(e.previewImage);if(n&&i&&r&&a)return{progress:t,createdAt:n,updatedAt:i,file:{name:r,type:a},previewImage:o}}(t?._upload),y[18]=d,y[19]=p):p=y[19];let $=p;e:{if($?.previewImage){let e,t;y[20]!==C?(e=C("preview.image.file-is-being-uploaded.alt-text"),y[20]=C,y[21]=e):e=y[21],y[22]!==e||y[23]!==$.previewImage?(t=(0,v.jsx)("img",{alt:e,src:$.previewImage}),y[22]=e,y[23]=$.previewImage,y[24]=t):t=y[24],m=t;break e}if(!S?.value?.media){m="function"==typeof o.preview?.prepare?void 0:o.icon;break e}m=S?.value?.media}let A=m;y[25]!==S?.value?(h=S?.value||{},y[25]=S?.value,y[26]=h):h=y[26];let D=S?.error,z=S?.isLoading;return y[27]!==n||y[28]!==i||y[29]!==A||y[30]!==a||y[31]!==o||y[32]!==h||y[33]!==D||y[34]!==z?(f=(0,v.jsx)(n,{...a,...h,media:A,error:D,isPlaceholder:z,layout:i,schemaType:o}),y[27]=n,y[28]=i,y[29]=A,y[30]=a,y[31]=o,y[32]=h,y[33]=D,y[34]=z,y[35]=f):f=y[35],y[36]!==E||y[37]!==f?(g=(0,v.jsx)("div",{ref:b,style:E,children:f}),y[36]=E,y[37]=f,y[38]=g):g=y[38],g}function z7(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsxs)(I.EY,{size:1,children:["This is a example custom marker, please implement ",(0,v.jsx)("code",{children:"renderCustomMarkers"})," function."]}),t[0]=e):e=t[0],e}let z3={publish:()=>{},subscribe:()=>(console.warn("No patch channel provided to form-builder. If you need input based patch updates, please provide one"),()=>{})};function z8(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(61),{__internal_fieldActions:h,__internal_patchChannel:f,autoFocus:g,changesOpen:y,children:C,collapsedFieldSets:x,collapsedPaths:b,file:w,filterField:_,focusPath:k,focused:I,groups:T,id:E,image:$,onChange:A,onFieldGroupSelect:D,onPathBlur:z,onPathFocus:P,onPathOpen:R,onSetFieldSetCollapsed:N,onSetPathCollapsed:O,presence:V,readOnly:M,renderAnnotation:L,renderBlock:F,renderField:B,renderInlineBlock:Y,renderInput:H,renderItem:U,renderPreview:Z,schemaType:q,unstable:W,validation:J}=e,K=void 0===h?rM:h,G=void 0===f?z3:f,X=W?.CustomMarkers||z7,Q=W?.Markers||hA;m[0]!==X||m[1]!==Q?(t={ArrayFunctions:vO,CustomMarkers:X,Markers:Q},m[0]=X,m[1]=Q,m[2]=t):t=m[2],m[3]!==K?(n={actions:K},m[3]=K,m[4]=n):n=m[4];let ee=w?.directUploads??!0;m[5]!==w.assetSources||m[6]!==ee?(i={assetSources:w.assetSources,directUploads:ee},m[5]=w.assetSources,m[6]=ee,m[7]=i):i=m[7];let et=_||z4,en=$?.directUploads??!0;m[8]!==$.assetSources||m[9]!==en?(r={assetSources:$.assetSources,directUploads:en},m[8]=$.assetSources,m[9]=en,m[10]=r):r=m[10],m[11]!==A||m[12]!==G||m[13]!==r||m[14]!==t||m[15]!==n||m[16]!==i||m[17]!==et?(a={patchChannel:G,components:t,field:n,file:i,filterField:et,image:r,onChange:A},m[11]=A,m[12]=G,m[13]=r,m[14]=t,m[15]=n,m[16]=i,m[17]=et,m[18]=a):a=m[18];let ei=a;m[19]!==ei||m[20]!==g||m[21]!==y||m[22]!==x||m[23]!==b||m[24]!==k||m[25]!==I||m[26]!==T||m[27]!==E||m[28]!==M||m[29]!==L||m[30]!==F||m[31]!==B||m[32]!==Y||m[33]!==H||m[34]!==U||m[35]!==Z||m[36]!==q?(o={__internal:ei,autoFocus:g,changesOpen:y,collapsedFieldSets:x,collapsedPaths:b,focusPath:k,focused:I,groups:T,id:E,readOnly:M,renderAnnotation:L,renderBlock:F,renderField:B,renderInlineBlock:Y,renderInput:H,renderItem:U,renderPreview:Z,schemaType:q},m[19]=ei,m[20]=g,m[21]=y,m[22]=x,m[23]=b,m[24]=k,m[25]=I,m[26]=T,m[27]=E,m[28]=M,m[29]=L,m[30]=F,m[31]=B,m[32]=Y,m[33]=H,m[34]=U,m[35]=Z,m[36]=q,m[37]=o):o=m[37];let er=o;return m[38]!==C?(l=(0,v.jsx)(f_,{children:C}),m[38]=C,m[39]=l):l=m[39],m[40]!==l||m[41]!==J?(s=(0,v.jsx)(hN,{validation:J,children:l}),m[40]=l,m[41]=J,m[42]=s):s=m[42],m[43]!==V||m[44]!==s?(d=(0,v.jsx)(hS,{presence:V,children:s}),m[43]=V,m[44]=s,m[45]=d):d=m[45],m[46]!==E||m[47]!==d?(c=(0,v.jsx)(fl,{id:E,children:d}),m[46]=E,m[47]=d,m[48]=c):c=m[48],m[49]!==A||m[50]!==D||m[51]!==z||m[52]!==P||m[53]!==R||m[54]!==N||m[55]!==O||m[56]!==c?(u=(0,v.jsx)(fi,{onChange:A,onFieldGroupSelect:D,onPathBlur:z,onPathFocus:P,onPathOpen:R,onSetPathCollapsed:O,onSetFieldSetCollapsed:N,children:c}),m[49]=A,m[50]=D,m[51]=z,m[52]=P,m[53]=R,m[54]=N,m[55]=O,m[56]=c,m[57]=u):u=m[57],m[58]!==er||m[59]!==u?(p=(0,v.jsx)(S.NU.Provider,{value:er,children:u}),m[58]=er,m[59]=u,m[60]=p):p=m[60],p}function z4(){return!0}function z6(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(46),{__internal_fieldActions:c,__internal_patchChannel:u,autoFocus:p,changesOpen:m,children:h,collapsedFieldSets:f,collapsedPaths:g,focusPath:y,focused:C,groups:x,id:b,onChange:w,onPathBlur:_,onPathFocus:k,onPathOpen:S,onFieldGroupSelect:I,onSetPathCollapsed:T,onSetFieldSetCollapsed:E,presence:$,readOnly:A,schemaType:D,validation:z}=e,{file:P,image:R}=_g().form,N=PS(),O=PI(),V=PT(),M=PE(),L=P$(),F=PA(),B=PD();d[0]!==N?(t=e=>(0,v.jsx)(N,{...e}),d[0]=N,d[1]=t):t=d[1];let Y=t;d[2]!==O?(n=e=>(0,v.jsx)(O,{...e}),d[2]=O,d[3]=n):n=d[3];let H=n;d[4]!==M?(i=e=>(0,v.jsx)(M,{...e},e.inputId),d[4]=M,d[5]=i):i=d[5];let U=i;d[6]!==V?(r=e=>(0,v.jsx)(z0,{component:V,...e}),d[6]=V,d[7]=r):r=d[7];let Z=r;d[8]!==L?(a=e=>(0,v.jsx)(L,{...e}),d[8]=L,d[9]=a):a=d[9];let q=a;d[10]!==F?(o=e=>(0,v.jsx)(F,{...e}),d[10]=F,d[11]=o):o=d[11];let W=o;d[12]!==B?(l=e=>(0,v.jsx)(B,{...e}),d[12]=B,d[13]=l):l=d[13];let J=l;return d[14]!==p||d[15]!==m||d[16]!==h||d[17]!==f||d[18]!==g||d[19]!==c||d[20]!==P||d[21]!==y||d[22]!==C||d[23]!==x||d[24]!==b||d[25]!==R||d[26]!==w||d[27]!==I||d[28]!==_||d[29]!==k||d[30]!==S||d[31]!==E||d[32]!==T||d[33]!==u||d[34]!==$||d[35]!==A||d[36]!==J||d[37]!==q||d[38]!==H||d[39]!==W||d[40]!==Y||d[41]!==U||d[42]!==Z||d[43]!==D||d[44]!==z?(s=(0,v.jsx)(z8,{__internal_fieldActions:c,__internal_patchChannel:u,autoFocus:p,changesOpen:m,collapsedFieldSets:f,collapsedPaths:g,file:P,focusPath:y,focused:C,groups:x,id:b,image:R,onChange:w,onPathBlur:_,onPathFocus:k,onPathOpen:S,onFieldGroupSelect:I,onSetPathCollapsed:T,onSetFieldSetCollapsed:E,presence:$,readOnly:A,renderAnnotation:J,renderBlock:q,renderField:H,renderInlineBlock:W,renderInput:Y,renderItem:U,renderPreview:Z,schemaType:D,validation:z,children:h}),d[14]=p,d[15]=m,d[16]=h,d[17]=f,d[18]=g,d[19]=c,d[20]=P,d[21]=y,d[22]=C,d[23]=x,d[24]=b,d[25]=R,d[26]=w,d[27]=I,d[28]=_,d[29]=k,d[30]=S,d[31]=E,d[32]=T,d[33]=u,d[34]=$,d[35]=A,d[36]=J,d[37]=q,d[38]=H,d[39]=W,d[40]=Y,d[41]=U,d[42]=Z,d[43]=D,d[44]=z,d[45]=s):s=d[45],s}function z9(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,I,T,E,$=(0,j.c)(113),{__internal_fieldActions:A,__internal_patchChannel:D,autoFocus:z,changesOpen:P,collapsedFieldSets:R,collapsedPaths:N,focused:O,focusPath:V,groups:M,id:L,members:F,onChange:B,onFieldGroupSelect:Y,onPathBlur:H,onPathF
1081ocus:U,onPathOpen:Z,onSetFieldSetCollapsed:q,onSetPathCollapsed:W,openPath:J,perspective:K,presence:G,readOnly:X,schemaType:Q,hasUpstreamVersion:ee,validation:et,value:en,compareValue:ei}=e,er=void 0===J?rM:J;$[0]!==W?(t=e=>W([e],!0),$[0]=W,$[1]=t):t=$[1];let ea=t;$[2]!==W?(n=e=>W([e],!1),$[2]=W,$[3]=n):n=$[3];let eo=n;$[4]!==H?(i=()=>H(rM),$[4]=H,$[5]=i):i=$[5];let el=i;$[6]!==U?(r=()=>U(rM),$[6]=U,$[7]=r):r=$[7];let es=r;$[8]!==B?(a=e=>B(gD.from(e)),$[8]=B,$[9]=a):a=$[9];let ed=a,ec=(0,_.useRef)(null);$[10]!==Y?(o=e=>Y(rM,e),$[10]=Y,$[11]=o):o=$[11];let eu=o;$[12]!==Z?(l=e=>Z([e]),$[12]=Z,$[13]=l):l=$[13];let ep=l;$[14]!==Z?(s=()=>Z([]),$[14]=Z,$[15]=s):s=$[15];let em=s;$[16]!==q?(d=e=>q([e],!0),$[16]=q,$[17]=d):d=$[17];let eh=d;$[18]!==q?(c=e=>q([e],!1),$[18]=q,$[19]=c):c=$[19];let ef=c,eg=PS(),ey=PI(),eC=PT(),ex=PE(),eb=P$(),ev=PA(),ej=PD();$[20]!==eg?(u=e=>(0,v.jsx)(zq,{children:(0,v.jsx)(eg,{...e})}),$[20]=eg,$[21]=u):u=$[21];let ew=u;$[22]!==ey?(p=e=>(0,v.jsx)(ey,{...e}),$[22]=ey,$[23]=p):p=$[23];let e_=p;$[24]!==ex?(m=e=>(0,v.jsx)(ex,{...e},e.inputId),$[24]=ex,$[25]=m):m=$[25];let ek=m;$[26]!==eC?(h=e=>(0,v.jsx)(z0,{component:eC,...e}),$[26]=eC,$[27]=h):h=$[27];let eS=h;$[28]!==eb?(f=e=>(0,v.jsx)(eb,{...e}),$[28]=eb,$[29]=f):f=$[29];let eI=f;$[30]!==ev?(g=e=>(0,v.jsx)(ev,{...e}),$[30]=ev,$[31]=g):g=$[31];let eT=g;$[32]!==ej?(y=e=>(0,v.jsx)(ej,{...e}),$[32]=ej,$[33]=y):y=$[33];let eE=y;$[34]!==ei||$[35]!==ee||$[36]!==K||$[37]!==Q||$[38]!==en?(C=zB({comparisonValue:ei,hasUpstreamVersion:ee,value:en,schemaType:Q,perspective:K}),$[34]=ei,$[35]=ee,$[36]=K,$[37]=Q,$[38]=en,$[39]=C):C=$[39];let e$=C;$[40]!==el||$[41]!==es||$[42]!==L?(x={ref:ec,id:L,onBlur:el,onFocus:es,"aria-describedby":void 0},$[40]=el,$[41]=es,$[42]=L,$[43]=x):x=$[43];let eA=e$.__unstable_computeDiff;$[44]!==F?(b=F.some(Pe),$[44]=F,$[45]=b):b=$[45],$[46]!==ei||$[47]!==e$.__unstable_computeDiff||$[48]!==e$.hasUpstreamVersion||$[49]!==V||$[50]!==O||$[51]!==M||$[52]!==ed||$[53]!==em||$[54]!==ea||$[55]!==eh||$[56]!==eo||$[57]!==ef||$[58]!==ep||$[59]!==eu||$[60]!==L||$[61]!==F||$[62]!==U||$[63]!==X||$[64]!==eE||$[65]!==eI||$[66]!==e_||$[67]!==eT||$[68]!==ew||$[69]!==ek||$[70]!==eS||$[71]!==Q||$[72]!==x||$[73]!==b||$[74]!==en?(w={focusPath:V,elementProps:x,focused:O,groups:M,id:L,level:0,members:F,onChange:ed,onFieldClose:em,onFieldCollapse:ea,onFieldSetCollapse:eh,onFieldExpand:eo,onFieldSetExpand:ef,onPathFocus:U,onFieldOpen:ep,onFieldGroupSelect:eu,path:rM,presence:rM,readOnly:X,renderAnnotation:eE,renderBlock:eI,renderField:e_,renderInlineBlock:eT,renderInput:ew,renderItem:ek,renderPreview:eS,schemaType:Q,validation:rM,value:en,compareValue:ei,__unstable_computeDiff:eA,changed:b,displayInlineChanges:!1,hasUpstreamVersion:e$.hasUpstreamVersion},$[46]=ei,$[47]=e$.__unstable_computeDiff,$[48]=e$.hasUpstreamVersion,$[49]=V,$[50]=O,$[51]=M,$[52]=ed,$[53]=em,$[54]=ea,$[55]=eh,$[56]=eo,$[57]=ef,$[58]=ep,$[59]=eu,$[60]=L,$[61]=F,$[62]=U,$[63]=X,$[64]=eE,$[65]=eI,$[66]=e_,$[67]=eT,$[68]=ew,$[69]=ek,$[70]=eS,$[71]=Q,$[72]=x,$[73]=b,$[74]=en,$[75]=w):w=$[75];let eD=w;return $[76]!==Z||$[77]!==er||$[78]!==ew||$[79]!==eD?(k=(0,v.jsx)(wa,{children:(0,v.jsx)(zY,{children:(0,v.jsx)(_y,{children:(0,v.jsx)(Pt,{rootInputProps:eD,onPathOpen:Z,openPath:er,renderInput:ew})})})}),$[76]=Z,$[77]=er,$[78]=ew,$[79]=eD,$[80]=k):k=$[80],$[81]!==A||$[82]!==k?(S=(0,v.jsx)(CI,{actions:A,children:k}),$[81]=A,$[82]=k,$[83]=S):S=$[83],$[84]!==S||$[85]!==en?(I=(0,v.jsx)(gS,{value:en,children:S}),$[84]=S,$[85]=en,$[86]=I):I=$[86],$[87]!==I||$[88]!==en?(T=(0,v.jsx)(yU,{value:en,children:I}),$[87]=I,$[88]=en,$[89]=T):T=$[89],$[90]!==z||$[91]!==P||$[92]!==R||$[93]!==N||$[94]!==A||$[95]!==V||$[96]!==O||$[97]!==M||$[98]!==L||$[99]!==B||$[100]!==Y||$[101]!==H||$[102]!==U||$[103]!==Z||$[104]!==q||$[105]!==W||$[106]!==D||$[107]!==G||$[108]!==X||$[109]!==Q||$[110]!==T||$[111]!==et?(E=(0,v.jsx)(z6,{__internal_fieldActions:A,__internal_patchChannel:D,autoFocus:z,changesOpen:P,collapsedFieldSets:R,collapsedPaths:N,focusPath:V,focused:O,groups:M,id:L,onChange:B,onPathBlur:H,onPathFocus:U,onPathOpen:Z,onFieldGroupSelect:Y,onSetPathCollapsed:W,onSetFieldSetCollapsed:q,presence:G,validation:et,readOnly:X,schemaType:Q,children:T}),$[90]=z,$[91]=P,$[92]=R,$[93]=N,$[94]=A,$[95]=V,$[96]=O,$[97]=M,$[98]=L,$[99]=B,$[100]=Y,$[101]=H,$[102]=U,$[103]=Z,$[104]=q,$[105]=W,$[106]=D,$[107]=G,$[108]=X,$[109]=Q,$[110]=T,$[111]=et,$[112]=E):E=$[112],E}function Pe(e){return"field"===e.kind&&e.field.changed}function Pt(e){let{rootInputProps:t,renderInput:n}=e;return n(t)}let Pn=(0,eI.I4)(I.Zp).withConfig({displayName:"Root",componentId:"sc-knly9h-0"})(e=>{let{color:t,radius:n,space:i}=e.theme.sanity,r=(0,eI.AH)` 1082 pointer-events: none; 1083 content: ''; 1084 position: absolute; 1085 top: -${i[1]}px; 1086 bottom: -${i[1]}px; 1087 left: -${i[1]}px; 1088 right: -${i[1]}px; 1089 border-radius: ${n[2]}px; 1090 mix-blend-mode: ${t.dark?"screen":"multiply"}; 1091 `;return(0,eI.AH)` 1092 box-shadow: 0 0 0 1px var(--card-border-color); 1093 border-radius: ${n[1]}px; 1094 pointer-events: all; 1095 position: relative; 1096 1097 &[data-focused] { 1098 --card-border-color: var(--card-focus-ring-color); 1099 } 1100
1101 &:not([data-focused]):not([data-selected]) { 1102 @media (hover: hover) { 1103 &:hover { 1104 --card-border-color: ${t.input.default.hovered.border}; 1105 } 1106 } 1107 } 1108 1109 &[data-markers] { 1110 &:after { 1111 ${r} 1112 background-color: ${t.dark?ez.OZ.purple[950].hex:ez.OZ.purple[50].hex}; 1113 } 1114 } 1115 1116 &[data-warning] { 1117 &:after { 1118 ${r} 1119 background-color: ${t.muted.caution.hovered.bg}; 1120 } 1121 1122 @media (hover: hover) { 1123 &:hover { 1124 --card-border-color: ${t.muted.caution.hovered.border}; 1125 } 1126 } 1127 } 1128 1129 &[data-invalid] { 1130 &:after { 1131 ${r} 1132 background-color: ${t.input.invalid.enabled.bg}; 1133 } 1134 1135 @media (hover: hover) { 1136 &:hover { 1137 --card-border-color: ${t.input.invalid.hovered.border}; 1138 } 1139 } 1140 } 1141 `}),Pi=(0,eI.I4)(I.so).withConfig({displayName:"PreviewContainer",componentId:"sc-knly9h-1"})`display:block;position:relative;width:100%;user-select:none;pointer-events:all;`,Pr=eI.I4.div.withConfig({displayName:"ChangeIndicatorWrapper",componentId:"sc-knly9h-2"})(({theme:e,$hasChanges:t})=>{let{space:n}=e.sanity;return(0,eI.AH)` 1142 position: absolute; 1143 width: ${n[2]}px; 1144 right: 0; 1145 top: 0; 1146 bottom: 0; 1147 padding-left: ${n[1]}px; 1148 padding-right: ${n[2]}px; 1149 user-select: none; 1150 ${!1} 1151 1152 ${!t&&(0,eI.AH)` 1153 display: none; 1154 `} 1155 1156 [data-dragged] & { 1157 visibility: hidden; 1158 } 1159 `});(0,eI.I4)(I.so).withConfig({displayName:"InnerFlex",componentId:"sc-knly9h-3"})`position:relative;[data-dragged] > &{opacity:0.5;}`;let Pa=(0,eI.I4)(I.az).withConfig({displayName:"BlockActionsOuter",componentId:"sc-knly9h-4"})`width:25px;position:relative;flex-shrink:0;user-select:none;[data-dragged] &{visibility:hidden;}`,Po=(0,eI.I4)(I.so).withConfig({displayName:"BlockActionsInner",componentId:"sc-knly9h-5"})`position:absolute;right:0;[data-dragged] &{visibility:hidden;}`,Pl=(0,eI.I4)(I.az).withConfig({displayName:"TooltipBox",componentId:"sc-knly9h-6"})`max-width:250px;`,Ps={constrainSize:!0,placement:"bottom",portal:"default",tone:"default"};function Pd(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(42),{children:y,focused:C,isOpen:x,onOpen:b,onRemove:w,readOnly:k,value:S}=e,{t:T}=as(),E=(0,_.useId)(),$=(0,_.useRef)(null),A=(0,_.useRef)(!1);g[0]!==S?(t=(0,eD.A_)(S)?(0,_.forwardRef)(function(e,t){return(0,v.jsx)(nU.RZ,{...e,intent:"edit",params:{id:S._ref},ref:t})}):void 0,g[0]=S,g[1]=t):t=g[1];let D=t;g[2]!==x?(n=()=>{x&&(A.current=!1)},i=[x],g[2]=x,g[3]=n,g[4]=i):(n=g[3],i=g[4]),(0,_.useEffect)(n,i),g[5]!==C||g[6]!==x?(r=e=>{C&&"Tab"===e.key&&$.current&&!A.current&&!x&&(e.preventDefault(),e.stopPropagation(),$.current.focus(),A.current=!0)},g[5]=C,g[6]=x,g[7]=r):r=g[7],(0,I.Pm)(r),g[8]!==w?(a=e=>{e.preventDefault(),e.stopPropagation(),w()},g[8]=w,g[9]=a):a=g[9];let z=a;g[10]!==y?(o=(0,v.jsx)(I.az,{flex:1,children:y}),g[10]=y,g[11]=o):o=g[11],g[12]!==T?(l=T("inputs.portable-text.block.open-menu-aria-label"),g[12]=T,g[13]=l):l=g[13];let P=+!C;return g[14]===Symbol.for("react.memo_cache_sentinel")?(s={content:"Open menu"},g[14]=s):s=g[14],g[15]!==l||g[16]!==P?(d=(0,v.jsx)(tL.$n,{"aria-label":l,icon:eT.riS,mode:"bleed",paddingY:3,tabIndex:P,tooltipProps:s}),g[15]=l,g[16]=P,g[17]=d):d=g[17],g[18]!==D||g[19]!==T||g[20]!==S?(c="_ref"in S&&!!S._ref&&(0,v.jsx)(tL.Dr,{as:D,"data-as":"a",icon:eT.qYV,text:T("inputs.portable-text.block.open-reference")}),g[18]=D,g[19]=T,g[20]=S,g[21]=c):c=g[21],g[22]!==b||g[23]!==k||g[24]!==T?(u=k&&(0,v.jsx)(tL.Dr,{icon:eT.N5q,onClick:b,text:T("inputs.portable-text.block.view")}),g[22]=b,g[23]=k,g[24]=T,g[25]=u):u=g[25],g[26]!==z||g[27]!==b||g[28]!==k||g[29]!==T?(p=!k&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(tL.Dr,{icon:eT.qUP,onClick:b,text:T("inputs.portable-text.block.edit")}),(0,v.jsx)(tL.Dr,{icon:eT.ucK,onClick:z,text:T("inputs.portable-text.block.remove"),tone:"critical"})]}),g[26]=z,g[27]=b,g[28]=k,g[29]=T,g[30]=p):p=g[30],g[31]!==c||g[32]!==u||g[33]!==p?(m=(0,v.jsx)(I.W1,{children:(0,v.jsxs)(v.Fragment,{children:[c,u,p]})}),g[31]=c,g[32]=u,g[33]=p,g[34]=m):m=g[34],g[35]!==E||g[36]!==m||g[37]!==d?(h=(0,v.jsx)(I.az,{children:(0,v.jsx)(tL.IU,{button:d,ref:$,id:E,menu:m,popover:Ps})}),g[35]=E,g[36]=m,g[37]=d,g[38]=h):h=g[38],g[39]!==h||g[40]!==o?(f=(0,v.jsxs)(I.so,{children:[o,h]}),g[39]=h,g[40]=o,g[41]=f):f=g[41],f}function Pc(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,k,S,T=(0,j.c)(99),{floatingBoundary:E,focused:$,isFullscreen:A,onItemClose:D,onItemOpen:z,onPathFocus:P,path:R,readOnly:N,referenceBoundary:O,relativePath:V,renderAnnotation:M,renderBlock:L,renderBlockActions:F,renderCustomMarkers:B,renderField:Y,renderInlineBlock:H,renderInput:U,renderItem:Z,renderPreview:q,schemaType:W,selected:J,setElementRef:K,value:G}=e,{onChange:X}=fr(),{Markers:Q}=hE().__internal.components,ee=fe();T[0]!==ee||T[1]!==R?(t=ee&&on(ee.path).startsWith(on(R)),T[0]=ee,T[1]=R,T[2]=t):t=T[2];let et=t,en=hF(R),ei=(0,n1.v$)(),er=hz(),[ea,eo]=(0,_.useState)(null);T[3]!==R?(n=on(R),T[3]=R,T[4]=n):n=T[4];let el=hJ(n),es=(0,_.useRef)(!1);T[5]!==V?(i={anchor:{path:V,offset:0},focus:{path:V,offset:0}},T[5]=V,T[6]=i):i=T[6];let ed=i;T[7]!==ei||T[8]!==el||T[9]!==z?(r=()=>{el&&(n1.Og.blur(ei),z(el.node.path))},T[7]=ei,T[8]=el,T[9]=z,T[10]=r):r=T[10];let ec=r;T[11]!==ei||T[12]!==D||T[13]!==ed?(a=()=>{D(),n1.Og.select(ei,ed),n1.Og.focus(ei)},T[11]=ei,T[12]=D,T[13]=ed,T[14]=a):a=T[14];let eu=a;T[15]!==ei||T[16]!==ed?(o=()=>
1159{if(!es.current){try{n1.Og.delete(ei,ed,{mode:"blocks"})}catch(e){console.error(e)}es.current=!0}},T[15]=ei,T[16]=ed,T[17]=o):o=T[17];let ep=o;T[18]!==ei?(l=()=>()=>{es.current&&n1.Og.focus(ei)},s=[ei],T[18]=ei,T[19]=l,T[20]=s):(l=T[19],s=T[20]),(0,_.useEffect)(l,s);e:{let e;if(A&&!F){let e;T[21]===Symbol.for("react.memo_cache_sentinel")?(e={paddingX:5},T[21]=e):e=T[21],d=e;break e}if(A&&F){let e;T[22]===Symbol.for("react.memo_cache_sentinel")?(e={paddingLeft:5,paddingRight:2},T[22]=e):e=T[22],d=e;break e}if(F){let e;T[23]===Symbol.for("react.memo_cache_sentinel")?(e={paddingLeft:3,paddingRight:2},T[23]=e):e=T[23],d=e;break e}T[24]===Symbol.for("react.memo_cache_sentinel")?(e={paddingX:3},T[24]=e):e=T[24],d=e}let em=d,{validation:eh,hasError:ef,hasWarning:eg,hasInfo:ey}=hL(el?.node),eC=er.portableText,ex=en.length>0,eb=hT(R,!0);if(T[25]!==R||T[26]!==eb){let e;T[28]!==R?(e=e=>(0,w.n4)(e.path,R),T[28]=R,T[29]=e):e=T[29],c=eb.filter(e),T[25]=R,T[26]=eb,T[27]=c}else c=T[27];let ev=c,ej=ef||eg||ey||ex;T[30]!==Q||T[31]!==en||T[32]!==B||T[33]!==ej||T[34]!==eh?(u=ej&&(0,v.jsx)(Pl,{children:(0,v.jsx)(Q,{markers:en,validation:eh,renderCustomMarkers:B})})||null,T[30]=Q,T[31]=en,T[32]=B,T[33]=ej,T[34]=eh,T[35]=u):u=T[35];let ew=u,e_=!!el?.member.open,ek=el?.input,eS=el?.node.path||rM,eI=el?.member.item.changed??!1,eT=!!N;T[36]!==E||T[37]!==$||T[38]!==ek||T[39]!==e_||T[40]!==en||T[41]!==eS||T[42]!==eu||T[43]!==ec||T[44]!==P||T[45]!==ep||T[46]!==eC||T[47]!==O||T[48]!==ea||T[49]!==M||T[50]!==L||T[51]!==Y||T[52]!==H||T[53]!==U||T[54]!==Z||T[55]!==q||T[56]!==ev||T[57]!==W||T[58]!==J||T[59]!==eI||T[60]!==eT||T[61]!==eh||T[62]!==G?(p={__unstable_floatingBoundary:E,__unstable_referenceBoundary:O,__unstable_referenceElement:ea,changed:eI,children:ek,focused:$,markers:en,onClose:eu,onOpen:ec,onPathFocus:P,onRemove:ep,open:e_,parentSchemaType:eC,path:eS,presence:ev,readOnly:eT,renderAnnotation:M,renderBlock:L,renderDefault:Pp,renderField:Y,renderInlineBlock:H,renderInput:U,renderItem:Z,renderPreview:q,schemaType:W,selected:J,validation:eh,value:G},T[36]=E,T[37]=$,T[38]=ek,T[39]=e_,T[40]=en,T[41]=eS,T[42]=eu,T[43]=ec,T[44]=P,T[45]=ep,T[46]=eC,T[47]=O,T[48]=ea,T[49]=M,T[50]=L,T[51]=Y,T[52]=H,T[53]=U,T[54]=Z,T[55]=q,T[56]=ev,T[57]=W,T[58]=J,T[59]=eI,T[60]=eT,T[61]=eh,T[62]=G,T[63]=p):p=T[63];let eE=p,e$=F&&G&&!N,eA=A&⪙T[64]!==el||T[65]!==K?(m=e=>{el&&K({key:el.member.key,elementRef:e}),eo(e)},T[64]=el,T[65]=K,T[66]=m):m=T[66];let eD=m;T[67]===Symbol.for("react.memo_cache_sentinel")?(h=void 0,T[67]=h):h=T[67];let ez=!!e_||!ej;return T[68]!==eE||T[69]!==L?(f=L&&(0,v.jsx)(Pu,{...eE,renderBlock:L}),T[68]=eE,T[69]=L,T[70]=f):f=T[70],T[71]!==f?(g=(0,v.jsx)("div",{children:f}),T[71]=f,T[72]=g):g=T[72],T[73]!==ez||T[74]!==g||T[75]!==ew?(y=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(tL.m_,{placement:"top",portal:"editor",disabled:ez,content:ew,children:g})}),T[73]=ez,T[74]=g,T[75]=ew,T[76]=y):y=T[76],T[77]!==e$||T[78]!==$||T[79]!==X||T[80]!==F||T[81]!==G?(C=e$&&(0,v.jsx)(Pa,{contentEditable:!1,marginRight:3,children:(0,v.jsx)(Po,{children:$&&(0,v.jsx)(S0,{block:G,onChange:X,renderBlockActions:F})})}),T[77]=e$,T[78]=$,T[79]=X,T[80]=F,T[81]=G,T[82]=C):C=T[82],T[83]!==eA||T[84]!==$||T[85]!==el?(x=eA&&(0,v.jsx)(Pr,{$hasChanges:el.member.item.changed,contentEditable:!1,children:(0,v.jsx)(S2,{hasFocus:$,isChanged:el.member.item.changed,path:el.member.item.path,withHoverEffect:!1})}),T[83]=eA,T[84]=$,T[85]=el,T[86]=x):x=T[86],T[87]!==et||T[88]!==A?(b=et&&(0,v.jsx)(SZ,{$fullScreen:!!A}),T[87]=et,T[88]=A,T[89]=b):b=T[89],T[90]!==em||T[91]!==y||T[92]!==C||T[93]!==x||T[94]!==b?(k=(0,v.jsx)(I.so,{paddingBottom:1,marginY:3,style:h,children:(0,v.jsxs)(Pi,{...em,children:[y,C,x,b]})}),T[90]=em,T[91]=y,T[92]=C,T[93]=x,T[94]=b,T[95]=k):k=T[95],T[96]!==eD||T[97]!==k?(S=(0,v.jsx)(I.az,{ref:eD,contentEditable:!1,children:k}),T[96]=eD,T[97]=k,T[98]=S):S=T[98],S}function Pu(e){let{renderBlock:t,...n}=e;return t(n)}let Pp=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(42),{__unstable_floatingBoundary:d,__unstable_referenceBoundary:c,__unstable_referenceElement:u,children:p,focused:m,markers:h,onClose:f,onOpen:g,onRemove:y,open:C,readOnly:x,renderPreview:b,
1159schemaType:w,selected:_,value:k,validation:S}=e,{t:I}=as(),T=(0,eD.wu)(k),E=S.filter(Pm).length>0,$=S.filter(Ph).length>0,A=h.length>0,D=_||m?"primary":"default",z=k[CE],P="number"==typeof z?.progress?z?.progress:void 0;s[0]!==g?(t=e=>{e.preventDefault(),e.stopPropagation(),g()},s[0]=g,s[1]=t):t=s[1];let R=t;s[2]!==I?(n=I("inputs.portable-text.block.aria-label"),s[2]=I,s[3]=n):n=s[3];let N=m?"":void 0,O=T?"":void 0,V=E?"":void 0,M=A?"":void 0,L=x?"":void 0,F=_?"":void 0,B=$?"":void 0,Y=+!T;s[4]!==m||s[5]!==g||s[6]!==y||s[7]!==C||s[8]!==x||s[9]!==k?(i=(0,v.jsx)(Pd,{isOpen:C,focused:m,onOpen:g,onRemove:y,readOnly:x,value:k}),s[4]=m,s[5]=g,s[6]=y,s[7]=C,s[8]=x,s[9]=k,s[10]=i):i=s[10];let H=T?"blockImage":"block";return s[11]!==b||s[12]!==w||s[13]!==i||s[14]!==H||s[15]!==P||s[16]!==k?(r=b({actions:i,progress:P,layout:H,schemaType:w,skipVisibilityCheck:!0,value:k}),s[11]=b,s[12]=w,s[13]=i,s[14]=H,s[15]=P,s[16]=k,s[17]=r):r=s[17],s[18]!==R||s[19]!==n||s[20]!==r||s[21]!==N||s[22]!==O||s[23]!==V||s[24]!==M||s[25]!==L||s[26]!==F||s[27]!==B||s[28]!==Y||s[29]!==D?(a=(0,v.jsx)(Pn,{"aria-label":n,"data-focused":N,"data-image-preview":O,"data-invalid":V,"data-markers":M,"data-read-only":L,"data-selected":F,"data-testid":"pte-block-object","data-warning":B,flex:1,onDoubleClick:R,padding:Y,tone:D,children:r}),s[18]=R,s[19]=n,s[20]=r,s[21]=N,s[22]=O,s[23]=V,s[24]=M,s[25]=L,s[26]=F,s[27]=B,s[28]=Y,s[29]=D,s[30]=a):a=s[30],s[31]!==d||s[32]!==c||s[33]!==u||s[34]!==p||s[35]!==f||s[36]!==C||s[37]!==w?(o=C&&(0,v.jsx)(TR,{floatingBoundary:d,defaultType:"dialog",onClose:f,autoFocus:!0,schemaType:w,referenceBoundary:c,referenceElement:u,children:p}),s[31]=d,s[32]=c,s[33]=u,s[34]=p,s[35]=f,s[36]=C,s[37]=w,s[38]=o):o=s[38],s[39]!==a||s[40]!==o?(l=(0,v.jsxs)(v.Fragment,{children:[a,o]}),s[39]=a,s[40]=o,s[41]=l):l=s[41],l};function Pm(e){return"error"===e.level}function Ph(e){return"warning"===e.level}function Pf(e){return e.components?.block?e.components.block:a6(e)?If:Pp}function Pg(e){return e.components?.inlineBlock?e.components.inlineBlock:TO}function Py(e){return e.components?.annotation?e.components.annotation:h1}function PC(e){let t,n,i,r=(0,j.c)(9),{componentResolver:a,componentProps:o}=e;if(!o.schemaType)throw Error("the `schemaType` property must be defined");r[0]!==o.schemaType||r[1]!==a?(t=a(o.schemaType),r[0]=o.schemaType,r[1]=a,r[2]=t):t=r[2];let l=t;r[3]!==a?(n=e=>{if(!e.schemaType?.type)throw Error("Attempted to render form component of non-existent parent type");let{components:t,...n}=e.schemaType,i=a(n);return(0,v.jsx)(i,{...e})},r[3]=a,r[4]=n):n=r[4];let s=n;return r[5]!==l||r[6]!==o||r[7]!==s?(i=(0,v.jsx)(l,{...o,renderDefault:s}),r[5]=l,r[6]=o,r[7]=s,r[8]=i):i=r[8],i}function Px(e){let t,n=(0,j.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:zm},n[0]=e,n[1]=t):t=n[1],PC(t)}function Pb(e){let t,n=(0,j.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:fB},n[0]=e,n[1]=t):t=n[1],PC(t)}function Pv(e){let t,n=(0,j.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:zI},n[0]=e,n[1]=t):t=n[1],PC(t)}function Pj(e){let t,n=(0,j.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:zh},n[0]=e,n[1]=t):t=n[1],PC(t)}function Pw(e){let t,n=(0,j.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:Pf},n[0]=e,n[1]=t):t=n[1],PC(t)}function P_(e){let t,n=(0,j.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:Pg},n[0]=e,n[1]=t):t=n[1],PC(t)}function Pk(e){let t,n=(0,j.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:Py},n[0]=e,n[1]=t):t=n[1],PC(t)}function PS(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Px,pick:TK},t[0]=e):e=t[0],a4(e)}function PI(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Pb,pick:TG},t[0]=e):e=t[0],a4(e)}function PT(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Pj,pick:TX},t[0]=e):e=t[0],a4(e)}function PE(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Pv,pick:TQ},t[0]=e):e=t[0],a4(e)}function P$(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Pw,pick:T1},t[0]=e):e=t[0],a4(e)}function PA(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:P_,pick:T2},t[0]=e):e=t[0],a4(e)}function PD(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Pk,pick:T5},t[0]=e):e=t[0],a4(e)}function Pz(e){let t,n=(0,j.c)(3),i=PT();return n[0]!==i||n[1]!==e?(t=(0,v.jsx)(z0,{...e,component:i}),n[0]=i,n[1]=e,n[2]=t):t=n[2],t}let PP=["_id","_rev","_type"],PR=[...PP,"_key"],PN={available:!0,reason:"READABLE"},PO={available:!1,reason:"PERMISSION_DENIED"},PV={available:!1,reason:"NOT_FOUND"}
1159,PM={available:!1,reason:"VERSION_DELETED"},PL={title:"Invalid preview config",subtitle:"Check the error log in the console",media:(0,v.jsx)(eT.sAQ,{})};function PF(e,t){let n,i={},r=0;return function(...e){return new eU.c(o=>{clearTimeout(n),n=setTimeout(a,t);let l={args:e,observer:o,completed:!1};return i[r++]=l,()=>{l.completed=!0}})};function a(){let t=i;i={};let n=Object.keys(t).filter(e=>{let n=t[e];return n&&!n.completed});0===n.length||e(n.map(e=>{let n=t[e];return n&&n.args}).filter(r$)).subscribe({next(e){e.forEach((i,r)=>{let a=t[n[r]];a&&!a.completed&&a.observer.next(e[r])})},complete(){n.forEach(e=>{let n=t[e];n&&!n.completed&&n.observer.complete()})},error(e){n.forEach(n=>{let i=t[n];i&&!i.completed&&i.observer.error(e)})}})}}let PB=r5({maxSize:1e3});function PY(e,t){return e.push(...t),e}function PH(e,t){let n=PF(function(e){let t=[...new Set((0,M.A)(e))];return(0,eL.H)(function(e){let t=[],n=0,i=[];for(let r of e)n+r.length+1>=11164&&(i.push(t),t=[],n=0),n+=r.length+1,t.push(r);return i.includes(t)||i.push(t),i}(t)).pipe((0,tx.Z)(i,10),(0,th.T)(PY,[]),(0,eV.T)(n=>e.map(([e])=>n[t.indexOf(e)])))},1);function i(t){return(0,eN.v)(()=>{let n={uri:e.getDataUrl("doc",t.join(",")),json:!0,query:{excludeContent:"true"},tag:"preview.documents-availability"};return e.observable.request(n).pipe((0,eV.T)(e=>{let n=(0,Z.A)(e.omitted||[],e=>e.id);return t.map(e=>{let t=n[e];if(!t)return PN;if("existence"===t.reason)return PV;if("permission"===t.reason)return PO;throw Error(`Unexpected reason for omission: "${t.reason}"`)})}))})}return function(e){return t({_id:e},[["_rev"],["_system"]]).pipe((0,eV.T)(e=>({hasRev:rZ(e)&&!!("_rev"in e&&e?._rev),isDeleted:rZ(e)&&e._system?.delete===!0})),(0,eQ.F)(),(0,eM.n)(({hasRev:t,isDeleted:i})=>i?(0,eP.of)(PM):t?(0,eP.of)(PN):n(e)),PB(e),(0,eV.T)(e=>e.value))}}function PU(e,t,n){if(n!==e?._rev)throw Error("Invalid document revision. The provided patch is calculated from a different revision than the current document");let i=(0,iH.X)(function(e){if(void 0===e)return;let{_rev:t,...n}=e;return n}(e),t);return null===i?void 0:i}let PZ=[["_createdAt"],["_updatedAt"]];function Pq(e){let t=e?.select;return t?(Object.values(t).map(e=>String(e).split("."))||[]).concat(PZ):void 0}let PW=["_id","_type","_upload","_createdAt","_updatedAt"],PJ=[],PK=(m={},{add:(e,t,n)=>{let i="name"in e?e.name:e.type;m[i]||(m[i]=[]),m[i].push({error:n,type:e,value:t})},getAll:()=>m,clear(){m={}}}),PG=(0,U.A)(()=>{let e=PK.getAll(),t=(0,M.A)(Object.keys(e).map(t=>{let n=e[t];return(0,L.A)(n,e=>e.error.message)})).length;0!==t&&(console.groupCollapsed(`%cHeads up! Got ${1===t?"error":`${t} errors`} while preparing data for preview. Click for details.`,"color: #ff7e7c"),Object.keys(e).forEach(t=>{let n=e[t];console.group(`Check the preview config for schema type "${t}": %o`,n[0].type.preview),(0,L.A)(n,e=>e.error.message).forEach(e=>{if("returnValueError"===e.error.type){let t="function"==typeof e.type.preview?.prepare,{value:n,error:i}=e;console.log(`Encountered an invalid ${t?"return value when calling prepare(%o)":"value targeted by preview.select"}:`,n),console.error(i)}if("prepareError"===e.error.type){let{value:t,error:n}=e;console.log("Encountered an error when calling prepare(%o):",t),console.error(n)}}),console.groupEnd()}),console.groupEnd(),PK.clear())},1e3),PX=e=>t=>{let n=typeof t;return null===t||"undefined"===n||"string"===n||"number"===n||"boolean"===n?PJ:[P2("returnValueError",Error(`The "${e}" field should be a string, number, boolean, undefined or null, instead saw ${P1(t)}`))]},PQ={media:()=>PJ,title:PX("title"),subtitle:PX("subtitle"),description:PX("description"),imageUrl:PX("imageUrl"),date:PX("date")};function P1(e,t=!0){if(rZ(e)){let n=Object.keys(e),i=n.length>3?"...":"";return`${t?"object with keys ":""}{${n.slice(0,3).join(", ")}${i}}`}if(Array.isArray(e)){let n=e.length>3?"...":"";return`${t?"array with ":""}[${e.map(e=>P1(e,!1))}${n}]`}return`the ${typeof e} ${e}`}function P2(e,t){return Object.assign(t,{type:e})}function P5(e,t,n={}){let i=e.preview?.prepare;try{return{returnValue:i?i(t,n):$T(t).reduce((e,n)=>{let i,r=t[n];return{...e,[n]:Array.isArray(r)&&(0===r.length||r.some(eD.L4))?(i=Array.isArray(r)&&r.find(eD.L4))&&i.children?i.children.filter(eD.bn).map(e=>e.text).join(""):"":r}},{}),errors:PJ}}catch(e){return{returnValue:null,errors:[P2("prepareError",e)]}}}
1159function P0(e,t,n){return e.errors.forEach(e=>PK.add(t,n,e)),PG(),PL}function P7(e,t,n={}){var i;let r="function"==typeof t.preview?.prepare,a=t.preview?.select||{},o=Object.keys(a).reduce((n,i)=>{var o,l;let s,d="fields"in t?t:null,c=a[i],u=d?.fields?.find(e=>e.name===c),p=u&&((s=!!(l=o=u.type).options&&"object"==typeof l.options&&l.options)&&"list"in s&&Array.isArray(s.list)?o.options.list.map(e=>(0,eD.uC)(e)?e:{title:e,value:e}):void 0);if(!r&&p){let t=p&&p.find(t=>t.value===(0,V.A)(e,a[i]));n[i]=t?t.value:(0,V.A)(e,a[i])}else n[i]=(0,V.A)(e,a[i]);return n},{}),l=P5(t,o,n);if(l.errors.length>0)return P0(l,t,o);let s={...l,errors:[...l.errors||[],...(i=l.returnValue,(0,O.A)(i)&&null!==i?Object.entries(i).reduce((e,[t,n])=>[...e,...function(e,t){if(typeof t>"u")return PJ;let n=PQ[e];return n&&n(t)||PJ}(t,n)],PJ):[P2("returnValueError",Error(`Invalid return value. Expected a plain object with at least a 'title' field, instead saw ${P1(i)}`))])]};return s.errors.length>0?P0(s,t,o):{...(0,eC.A)(e,PW),...l.returnValue}}let P3=e=>e;function P8(e){return JSON.stringify(e)}let P4=e=>!r4.test(e)||r8.includes(e)?`"${e}": @["${e}"]`:e;function P6({ids:e,fields:t}){let n=[...PP,...t];return`*[_id in [${e.map(P8).join(",")}]][0...${e.length}]{${n.map(P4).join(",")}}`}function P9(e,t,n,i,r){let a=e.observeForPreview({_id:(0,tG.IM)(n)},t,{perspective:i,viewOptions:r}),o=(0,tG.A_)(n)?(0,tG._S)(n):"drafts",l=o?e.observeForPreview({_id:(0,tG.IM)(n)},t,{perspective:[o],viewOptions:r}):(0,eP.of)(null);return(0,e8.z)([a,l]).pipe((0,eV.T)(([e,t])=>({isLoading:!1,snapshot:e?.snapshot||null,original:t?.snapshot||null})),(0,tr.Z)({isLoading:!0,snapshot:null,original:null}))}let Re={};function Rt({snapshot:e,original:t,fallback:n}){var i;return e||t||(i=n||Re,{title:(0,v.jsx)("em",{children:i.title?String(i.title):"Missing document"}),subtitle:(0,v.jsx)("em",{children:i.title?`Missing document ID: ${i._id}`:`Document ID: ${i._id}`}),media:()=>(0,v.jsx)(eT.sAQ,{})})}function Rn(e){return cN(e._id)}let Ri=["_id","_type","_rev","_createdAt","_updatedAt"],Rr={};function Ra(e){var t;let n,i,r,a,o,l,s,d,c,u=(0,j.c)(13),p=cc(),m=(t=gU().data,(d=(0,j.c)(4))[0]!==t?(l=t.map(Rn),d[0]=t,d[1]=l):l=d[1],c=l,d[2]!==c?(s={releasesIds:c},d[2]=c,d[3]=s):s=d[3],s).releasesIds;u[0]!==e?(n=(0,tG.T4)(e),u[0]=e,u[1]=n):n=u[1],u[2]!==e?(i=(0,tG.IM)(e),u[2]=e,u[3]=i):i=u[3],u[4]!==n||u[5]!==i?(r=[n,i],u[4]=n,u[5]=i,u[6]=r):r=u[6];let[h,f]=r;if(u[7]!==p||u[8]!==h||u[9]!==f||u[10]!==m){let e=m.length>0?(0,e8.z)(Object.fromEntries(m.map(e=>[e,p.observePaths({_id:(0,tG.ct)(f,e)},Ri).pipe((0,eV.T)(Rs))]))):(0,eP.of)(Rr);a=(0,e8.z)({isLoading:(0,eP.of)(!1),draft:p.observePaths({_id:h},Ri).pipe((0,eV.T)(Rl)),published:p.observePaths({_id:f},Ri).pipe((0,eV.T)(Ro)),versions:e}),u[7]=p,u[8]=h,u[9]=f,u[10]=m,u[11]=a}else a=u[11];let g=a;return u[12]===Symbol.for("react.memo_cache_sentinel")?(o={isLoading:!0,versions:Rr,draft:void 0,published:void 0},u[12]=o):o=u[12],(0,tF.J)(g,o)}function Ro(e){return e?._rev?e:void 0}function Rl(e){return e?._rev?e:void 0}function Rs(e){return e?._rev?e:void 0}function Rd(e){let t,n,i,r,a=(0,j.c)(16),{documentId:o,fromRelease:l,onNavigate:s}=e,d=el0(ob),c=(0,T.dj)(),{t:u}=as();a[0]!==o?(t=(0,tG.IM)(o),a[0]=o,a[1]=t):t=a[1];let p=t;a[2]!==o||a[3]!==l?(n="published"===l?o:(0,tG.ct)(o,l),a[2]=o,a[3]=l,a[4]=n):n=a[4];let m=n,h=!!Ra(p).draft;a[5]!==d||a[6]!==h||a[7]!==s||a[8]!==p||a[9]!==m||a[10]!==u||a[11]!==c?(i=async()=>{let e=async()=>{let e=await d.getDocument(m);if(!e)throw Error(`Source document ${m} not found`);h&&await d.discardVersion({publishedId:p},!1),await d.createVersion({baseId:m,ifBaseRevisionId:e._rev,publishedId:p}),s()};try{await e()}catch(e){c.push({closable:!0,status:"error",title:u("release.action.create-version.failure"),description:e.message})}},a[5]=d,a[6]=h,a[7]=s,a[8]=p,a[9]=m,a[10]=u,a[11]=c,a[12]=i):i=a[12];let f=i;return a[13]!==f||a[14]!==h?(r={handleCopyToDrafts:f,hasDraftVersion:h},a[13]=f,a[14]=h,a[15]=r):r=a[15],r}function Rc(){return _g().dataset}function Ru(){return _g().projectId}let Rp={data:[],error:null,loading:!0},Rm=new Map,Rh=r5({maxSize:100});function Rf(e){let t,n,i,r,a=(0,j.c)(10),{documentId:o}=e;a[0]!==o?(t=(0,tG.IM)(o),a[0]=o,a[1]=t):t=a[1];let l=t,s=Rc(),d=Ru(),c=cc(),[u,p]=(0,_.useState)(Rp);a[2]!==s||a[3]!==c||a[4]!==d||a[5]!==l?(n=function(e){let{documentPreviewStore:t,projectId:n,dataset:i,publishedId:r,params:a}=e,o=`${n}-${i}-${r}`,l=Rm.get(o);if(l)return l;let s=t.unstable_observeDocumentIdSet(`sanity::versionOf("${r}")`,a,{apiVersion:ll.apiVersion}).pipe(Rh(o),(0,eV.T)(({value:e})=>({data:e.documentIds,error:null,loading:!1})),(0,eY.W)(e=>(0,eP.of)({error:e,data:[],loading:!1})),(0,e0.j)(()=>{Rm.delete(o)}),(0,e1.t)({refCount:!0,bufferSize:1}));return Rm.set(o,s),s}({documentPreviewStore:c,publishedId:l,projectId:d,dataset:s}
1159),a[2]=s,a[3]=c,a[4]=d,a[5]=l,a[6]=n):n=a[6];let m=n;return a[7]!==m?(i=()=>{let e=m.subscribe(e=>{p(e)});return()=>e.unsubscribe()},r=[m],a[7]=m,a[8]=i,a[9]=r):(i=a[8],r=a[9]),(0,_.useEffect)(i,r),u}let Rg=["asap","scheduled","undecided"],Ry=e=>{let t,n,i,r=(0,j.c)(9),{documentId:a}=e,{data:o}=gU();r[0]!==a?(t={documentId:a},r[0]=a,r[1]=t):t=r[1];let{data:l}=Rf(t);if(r[2]!==l||r[3]!==o){let e;r[5]!==l?(e=e=>{let{_id:t}=e;return l.some(e=>(0,tG._S)(e)===cN(t))},r[5]=l,r[6]=e):e=r[6],n=o.filter(e).sort(RC),r[2]=l,r[3]=o,r[4]=n}else n=r[4];let s=n;return r[7]!==s?(i={sortedDocumentList:s},r[7]=s,r[8]=i):i=r[8],i};function RC(e,t){if("scheduled"===e.metadata.releaseType&&"scheduled"===t.metadata.releaseType){let n=e.publishAt||e.metadata.intendedPublishAt;if(!n)return -1;let i=t.publishAt||t.metadata.intendedPublishAt;return i?new Date(n).getTime()-new Date(i).getTime():1}return Rg.indexOf(e.metadata.releaseType)-Rg.indexOf(t.metadata.releaseType)}let Rx=e=>{let t,n,i=(0,j.c)(4),{documentId:r}=e;i[0]!==r?(t={documentId:r},i[0]=r,i[1]=t):t=i[1];let{data:a}=Rf(t);return i[2]!==a?(n=a&&a.length>0&&!a.some(Rb),i[2]=a,i[3]=n):n=i[3],n};function Rb(e){return!(0,tG.A_)(e)}function Rv(){return cY().document.drafts.enabled?uy:uC}function Rj(){let e,t=(0,j.c)(3),n=(0,nU.rd)(),i=Rv();return t[0]!==i||t[1]!==n?(e=e=>{let t=e&&e!==i?e:"";n.navigate({stickyParams:{excludedPerspectives:null,perspective:t}})},t[0]=i,t[1]=n,t[2]=e):e=t[2],e}function Rw(){return(0,_.useContext)(S.Pn)||R_}let R_={upsellDialogOpen:!1,mode:"default",onReleaseLimitReached:()=>null,guardWithReleaseLimitUpsell:async()=>{},handleOpenDialog:()=>null,upsellData:null,telemetryLogs:{dialogSecondaryClicked:()=>null,dialogPrimaryClicked:()=>null,panelViewed:()=>null,panelDismissed:()=>null,panelPrimaryClicked:()=>null,panelSecondaryClicked:()=>null}},Rk=e=>"object"==typeof e&&null!==e&&"details"in e&&"object"==typeof e.details,RS=e=>Rk(e)&&e.details?.type==="releaseLimitExceededError";function RI(){let e,t=(0,j.c)(3),n=el0(ll),{onReleaseLimitReached:i}=Rw();return t[0]!==i||t[1]!==n?(e=function(e){let{client:t,onReleaseLimitReached:n}=e,i=(e,t)=>e.catch(e=>{throw!t?.dryRun&&RS(e)&&n(e.details.limit||0),e}),r=(e,n)=>i(t.releases.create({releaseId:cN(e._id),metadata:e.metadata},n),n),a=(e,n)=>i(t.releases.publish({releaseId:cN(e)},n),n);return{archive:(e,n)=>t.releases.archive({releaseId:cN(e)},n),unarchive:(e,n)=>i(t.releases.unarchive({releaseId:cN(e)},n),n),schedule:(e,n,r)=>i(t.releases.schedule({releaseId:cN(e),publishAt:n.toISOString()},r),r),unschedule:(e,n)=>i(t.releases.unschedule({releaseId:cN(e)},n),n),createRelease:r,updateRelease:async(e,n)=>{let r=cN(e._id),a=Object.entries(e).filter(([e,t])=>void 0===t).map(([e])=>`metadata.${e}`);return i(t.releases.edit({releaseId:r,patch:{set:{metadata:e.metadata},unset:a}},n),n)},publishRelease:a,deleteRelease:(e,n)=>t.releases.delete({releaseId:cN(e)},n),revertRelease:async(e,n,i,o)=>{await r({_id:e,metadata:{title:i.title,description:i.description,releaseType:"asap",cardinality:"many"}});let l=cN(e),s=n.map(e=>({actionType:"sanity.action.document.version.create",document:{...e,_id:(0,tG.ct)(e._id,l)},publishedId:(0,tG.IM)(e._id)}));await t.action(s),"immediate"===o&&await a(e)},duplicateRelease:async(e,n,i)=>{if(await r({_id:e,metadata:n}),i){let n=cN(e),r=i.map(e=>({actionType:"sanity.action.document.version.create",document:{...e,_id:(0,tG.ct)(e._id,n)},publishedId:(0,tG.IM)(e._id)}));await t.action(r)}},createVersion:async(e,n,i)=>{let r=await t.getDocument(n);if(!r)throw Error(`Document with id ${n} not found`);return t.createVersion({baseId:n,ifBaseRevisionId:r?._rev,publishedId:(0,tG.IM)(n),releaseId:e},i)},discardVersion:(e,n,i)=>t.discardVersion({releaseId:e,publishedId:(0,tG.IM)(n)},!1,i),unpublishVersion:(e,n)=>{let i=(0,tG._S)(e);if(!i)throw Error(`Release ID not found for document ${e}`);return t.unpublishVersion({releaseId:i,publishedId:(0,tG.IM)(e)},n)},revertUnpublishVersion:async(e,n)=>await t.action({actionType:"sanity.action.document.edit",draftId:e,publishedId:(0,tG.IM)(e),patch:{unset:["_system.delete"]}},n)}}({client:n,onReleaseLimitReached:i}),t[0]=i,t[1]=n,t[2]=e):e=t[2],e}function RT(){let e,t,n,i,r,a=(0,j.c)(15),o=(0,tK.Jr)(),{createVersion:l,discardVersion:s,unpublishVersion:d,revertUnpublishVersion:c}=RI(),u=Rj();a[0]!==l||a[1]!==u||a[2]!==o?(e=async(e,t)=>{let n=rL(t);await l(e,t),u(e),o.log(aZ,{documentOrigin:n})},a[0]=l,a[1]=u,a[2]=o,a[3]=e):e=a[3];let p=e;a[4]!==s?(t=async(e,t)=>s(e,t),a[4]=s,a[5]=t):t=a[5];let m=t;a[6]!==d?(n=async e=>d(e),a[6]=d,a[7]=n):n=a[7];let h=n;a[8]!==c?(i=async e=>c(e),a[8]=c,a[9]=i):i=a[9];let f=i;return a[10]!==p||a[11]!==m||a[12]!==f||a[13]!==h?(r={createVersion:p,discardVersion:m,unpublishVersion:h,revertUnpublishVersion:f},a[10]=p,a[11]=m,a[12]=f,a[13]=h,a[14]=r):r=a[14],r}let RE="releases";function R$(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(57),{onClose:x,documentId:b,documentType:w,fromPerspective:k,isGoingToUnpublish:S}=e,{t:E}=as(RE),{t:$}=as();C[0]!==b?(t=(0,tG.IM)(b),C[0]=b,C[1]=t):t=C[1];let{discardChanges:A}=B9(t,w),{selectedPerspective:D}=a3(),{discardVersion:z}
1159=RT(),P=R8(),R=(0,T.dj)(),[N,O]=(0,_.useState)(!1),V=(0,tG.R8)(b)?"draft":"release",M="string"==typeof k?k:k.metadata.title;C[2]!==b?(n=(0,nM.nU)(b),C[2]=b,C[3]=n):n=C[3];let L=n;C[4]!==$||C[5]!==M?(i=M||$("release.placeholder-untitled-release"),C[4]=$,C[5]=M,C[6]=i):i=C[6];let F=i;C[7]!==w||C[8]!==P?(r=P.get(w),C[7]=w,C[8]=P,C[9]=r):r=C[9];let B=r;C[10]!==$||C[11]!==A||C[12]!==z||C[13]!==b||C[14]!==x||C[15]!==D||C[16]!==R?(a=async()=>{if(O(!0),(0,tG.A_)(b)){let e=async()=>{await z((0,tG._S)(b)||cN(D._id),b)};try{await e()}catch(e){R.push({closable:!0,status:"error",title:$("release.action.discard-version.failure"),description:e.message})}}else A.execute();O(!1),x()},C[10]=$,C[11]=A,C[12]=z,C[13]=b,C[14]=x,C[15]=D,C[16]=R,C[17]=a):a=C[17];let Y=a,H=`discard-version-dialog.header-${V}`;C[18]!==F?(o={releaseTitle:F},C[18]=F,C[19]=o):o=C[19],C[20]!==E||C[21]!==H||C[22]!==o?(l=(0,v.jsx)(aE,{t:E,i18nKey:H,values:o}),C[20]=E,C[21]=H,C[22]=o,C[23]=l):l=C[23],C[24]!==N||C[25]!==x?(s={disabled:N,onClick:x},C[24]=N,C[25]=x,C[26]=s):s=C[26];let U=`discard-version-dialog.title-${V}`;C[27]!==E||C[28]!==U?(d=E(U),C[27]=E,C[28]=U,C[29]=d):d=C[29],C[30]!==Y||C[31]!==N||C[32]!==d?(c={text:d,onClick:Y,disabled:N},C[30]=Y,C[31]=N,C[32]=d,C[33]=c):c=C[33],C[34]!==c||C[35]!==s?(u={cancelButton:s,confirmButton:c},C[34]=c,C[35]=s,C[36]=u):u=C[36],C[37]!==L||C[38]!==b||C[39]!==S||C[40]!==B?(p=B?(0,v.jsx)(Pz,{value:{_id:S?(0,tG.IM)(b):b},schemaType:B,perspectiveStack:S?[]:[L]}):(0,v.jsx)(ry,{}),C[37]=L,C[38]=b,C[39]=S,C[40]=B,C[41]=p):p=C[41],C[42]===Symbol.for("react.memo_cache_sentinel")?(m={maxWidth:"400px"},C[42]=m):m=C[42];let Z=`discard-version-dialog.description-${V}`;return C[43]!==F?(h={releaseTitle:F},C[43]=F,C[44]=h):h=C[44],C[45]!==E||C[46]!==Z||C[47]!==h?(f=(0,v.jsx)(I.az,{paddingX:2,style:m,children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:(0,v.jsx)(aE,{t:E,i18nKey:Z,values:h})})}),C[45]=E,C[46]=Z,C[47]=h,C[48]=f):f=C[48],C[49]!==p||C[50]!==f?(g=(0,v.jsxs)(I.BJ,{space:3,paddingX:3,marginBottom:2,children:[p,f]}),C[49]=p,C[50]=f,C[51]=g):g=C[51],C[52]!==x||C[53]!==u||C[54]!==g||C[55]!==l?(y=(0,v.jsx)(tL.lG,{id:"discard-version-dialog",header:l,onClose:x,width:0,padding:!1,footer:u,children:g}),C[52]=x,C[53]=u,C[54]=g,C[55]=l,C[56]=y):y=C[56],y}let RA=[100,11e3],RD={type:"scheduledPublishing"},Rz={type:"contentReleases"},RP="studio.release-form.recovery";function RR(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={getStoredReleaseData:RV,saveReleaseDataToStorage:RO,clearReleaseDataFromStorage:RN},t[0]=e):e=t[0],e}function RN(){localStorage.removeItem(RP)}function RO(e){localStorage.setItem(RP,JSON.stringify(e))}function RV(){let e=localStorage.getItem(RP);return e?JSON.parse(e):void 0}let RM=e=>{let t,n,i=(0,j.c)(5),{tone:r}=e,a=`release-avatar-${r}`,o=`var(--card-badge-${r}-icon-color)`;i[0]!==o?(t={"--card-icon-color":o},i[0]=o,i[1]=t):t=i[1];let l=t;return i[2]!==a||i[3]!==l?(n=(0,v.jsx)(eT.Zy4,{"data-testid":a,style:l}),i[2]=a,i[3]=l,i[4]=n):n=i[4],n};function RL(e){let t,n,i,r,a=(0,j.c)(9),{fontSize:o,padding:l,tone:s}=e,d=void 0===o?1:o,c=void 0===l?3:l;return a[0]===Symbol.for("react.memo_cache_sentinel")?(t={borderRadius:3},a[0]=t):t=a[0],a[1]!==s?(n=(0,v.jsx)(RM,{tone:s}),a[1]=s,a[2]=n):n=a[2],a[3]!==d||a[4]!==n?(i=(0,v.jsx)(I.EY,{size:d,children:n}),a[3]=d,a[4]=n,a[5]=i):i=a[5],a[6]!==c||a[7]!==i?(r=(0,v.jsx)(I.az,{flex:"none",padding:c,style:t,children:i}),a[6]=c,a[7]=i,a[8]=r):r=a[8],r}let RF="PP HH:mm",RB=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(47),{value:y,onChange:C,timeZoneScope:x}=e,{t:b}=as(),{timeZone:w,utcToCurrentZoneDate:_,zoneDateToUtc:k}=ky(x),{dialogTimeZoneShow:S,DialogTimeZone:T,dialogProps:E}=kk(x);if(g[0]!==C||g[1]!==b||g[2]!==_||g[3]!==y||g[4]!==k){let e,p,m,h=y?_(y):void 0;g[16]!==C||g[17]!==k?(e=e=>{e&&C(k(e))},g[16]=C,g[17]=k,g[18]=e):e=g[18];let f=e;g[19]!==C||g[20]!==k?(p=e=>{let t=e.currentTarget.value,n=k((0,t7.qg)(t,RF,new Date));(0,t0.f)(n)&&C(n)},g[19]=C,g[20]=k,g[21]=p):p=g[21];let x=p;g[22]!==b?(m=kK(b),g[22]=b,g[23]=m):m=g[23];let v=m;n=I.so,c=1,u="space-between",t=kq,i=!0,r=kV,a=f,o=x,l=v,s=h,d=h?(0,nn.GP)(h,RF):"",g[0]=C,g[1]=b,g[2]=_,g[3]=y,g[4]=k,g[5]=t,g[6]=n,g[7]=i,g[8]=r,g[9]=a,g[10]=o,g[11]=l,g[12]=s,g[13]=d,g[14]=c,g[15]=u}else t=g[5],n=g[6],i=g[7],r=g[8],a=g[9],o=g[10],l=g[11],s=g[12],d=g[13],c=g[14],u=g[15];g[24]!==t||g[25]!==i||g[26]!==r||g[27]!==a||g[28]!==o||g[29]!==l||g[30]!==s||g[31]!==d||g[32]!==x?(p=(0,v.jsx)(t,{selectTime:i,monthPickerVariant:r,onChange:a,onInputChange:o,calendarLabels:l,value:s,inputValue:d,constrainSize:!1,padding:0,isPastDisabled:!0,timeZoneScope:x}),g[24]=t,g[25]=i,g[26]=r,g[27]=a,g[28]=o,g[29]=l,g[30]=s,g[31]=d,g[32]=x,g[33]=p):p=g[33];let $=`${w.abbreviation}`;return g[34]!==S||g[35]!==$?(m=(0,v.jsx)(tL.$n,{icon:eT.DZb,mode:"bleed",size:"default",text:$,onClick:S}),g[34]=S,g[35]=$,g[36]=m):m=g[36],g[37]!==T||g[38]!==E?(h=T&&(0,v.jsx)(T,{...E}),g[37]=T,g[38]=E,g[39]=h):h=g[39],g[40]!==n||g[41]!==p||g[42]!==m||g[43]!==h||g[44]!==c||g[45]!==u?(f=(0,v.jsxs)(n,{flex:c,justify:u,children:[p,m,h]}),g[40]=n,g[41]=p,g[42]=m,g[43]=h,g[44]=c,g[45]=u,g[46]=f):f=g[46],f},RY=eI.I4.textarea.withConfig({displayName:"TitleTextArea",componentId:"sc-1q8zdyk-0"})(e=>{let{color:t,font:n}=(0,nN.JW)(e.theme);return(0,eI.AH)` 1160 resize: none; 1161 overflow: hidden; 1162 appearance: none; 1163 background: none; 1164 border: 0; 1165 padding: 0; 1166 border-radius: 0; 1167 outline: none; 1168 width: 100%; 1169 box-sizing: border-box; 1170 font-family: ${n.text.family};
1171 font-weight: ${n.text.weights.bold}; 1172 font-size: ${n.text.sizes[4].fontSize}px; 1173 line-height: ${n.text.sizes[4].lineHeight}px; 1174 min-height: ${n.text.sizes[4].lineHeight}px; 1175 margin: 0; 1176 position: relative; 1177 z-index: 1; 1178 display: block; 1179 /* NOTE: This is a hack to disable Chrome's autofill styles */ 1180 &:-webkit-autofill, 1181 &:-webkit-autofill:hover, 1182 &:-webkit-autofill:focus, 1183 &:-webkit-autofill:active { 1184 -webkit-text-fill-color: var(--input-fg-color) !important; 1185 transition: background-color 5000s; 1186 transition-delay: 86400s /* 24h */; 1187 } 1188 1189 color: ${t.input.default.enabled.fg}; 1190 1191 &::placeholder { 1192 color: ${t.input.default.enabled.placeholder}; 1193 } 1194 `}),RH=eI.I4.textarea.withConfig({displayName:"DescriptionTextArea",componentId:"sc-1q8zdyk-1"})(e=>{let{color:t,font:n}=(0,nN.JW)(e.theme);return(0,eI.AH)` 1195 resize: none; 1196 overflow: hidden; 1197 appearance: none; 1198 background: none; 1199 border: 0; 1200 padding: 0; 1201 border-radius: 0; 1202 outline: none; 1203 width: 100%; 1204 box-sizing: border-box; 1205 font-family: ${n.text.family}; 1206 font-weight: ${n.text.weights.regular}; 1207 font-size: ${n.text.sizes[2].fontSize}px; 1208 height: auto; 1209 line-height: ${n.text.sizes[2].lineHeight}px; 1210 margin: 0; 1211 max-width: 624px; 1212 position: relative; 1213 z-index: 1; 1214 display: block; 1215 color: ${t.input.default.enabled.fg}; 1216 1217 &::placeholder { 1218 color: ${t.input.default.enabled.placeholder}; 1219 } 1220 `}),RU=e=>"archived"!==e.state&&"published"!==e.state;function RZ(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(44),{release:f,onChange:g,disabled:y}=e;h[0]!==f?(t=RU(f),h[0]=f,h[1]=t):t=h[1];let C=t,x=(0,_.useRef)(null),b=(0,_.useRef)(null),[w,k]=(0,_.useState)(46),{t:S}=as();h[2]!==f?(n={externalValue:f,id:f._id,extractData:Rq},h[2]=f,h[3]=n):n=h[3];let{localData:T,updateLocalData:E,createFocusHandler:$,handleBlur:A}=function(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(20),{externalValue:u,id:p,extractData:m}=e;c[0]!==u||c[1]!==m?(t=m(u),c[0]=u,c[1]=m,c[2]=t):t=c[2];let h=t;c[3]!==h?(n=()=>h,c[3]=h,c[4]=n):n=c[4];let[f,g]=(0,_.useState)(n),[y,C]=(0,_.useState)(null),x=(0,_.useRef)(p);c[5]!==y||c[6]!==h?(i=e=>{let t=Object.keys(h).filter(e=>e!==y).reduce((e,t)=>(e[t]=h[t],e),{});return{...e,...t}},c[5]=y,c[6]=h,c[7]=i):i=c[7];let b=i;c[8]!==u._createdAt||c[9]!==p||c[10]!==h||c[11]!==b?(r=()=>{let e=!!u._createdAt;x.current===p?g(e?b:h):(x.current=p,g(h),C(null))},a=[h,p,u._createdAt,b],c[8]=u._createdAt,c[9]=p,c[10]=h,c[11]=b,c[12]=r,c[13]=a):(r=c[12],a=c[13]),(0,_.useEffect)(r,a),c[14]===Symbol.for("react.memo_cache_sentinel")?(o=e=>()=>C(e),c[14]=o):o=c[14];let v=o;c[15]===Symbol.for("react.memo_cache_sentinel")?(l=()=>C(null),c[15]=l):l=c[15];let w=l;c[16]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{g(t=>({...t,...e}))},c[16]=s):s=c[16];let k=s;return c[17]!==y||c[18]!==f?(d={localData:f,updateLocalData:k,createFocusHandler:v,handleBlur:w,focusedField:y},c[17]=y,c[18]=f,c[19]=d):d=c[19],d}(n);h[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{b.current&&k(b.current.scrollHeight),x.current&&(x.current.style.height="auto",x.current.style.height=`${x.current.scrollHeight}px`)},r=[],h[4]=i,h[5]=r):(i=h[4],r=h[5]),(0,_.useEffect)(i,r),h[6]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{x.current&&(x.current.style.height="auto",x.current.style.height=`${x.current.scrollHeight}px`)},h[6]=a):a=h[6],h[7]!==f.metadata.title?(o=[f.metadata.title],h[7]=f.metadata.title,h[8]=o):o=h[8],(0,_.useEffect)(a,o),h[9]!==g||h[10]!==f||h[11]!==E?(l=e=>{e.preventDefault();let t=e.target.value;E({title:t}),g({...f,metadata:{...f.metadata,title:t}}),x.current&&(x.current.style.height="auto",x.current.style.height=`${x.current.scrollHeight}px`)},h[9]=g,h[10]=f,h[11]=E,h[12]=l):l=h[12];let D=l;h[13]!==C||h[14]!==g||h[15]!==f||h[16]!==E?(s=e=>{if(e.preventDefault(),!C)return;let t=e.target.value;E({description:t}),g({...f,metadata:{...f.metadata,description:t}}),b.current&&(b.current.style.overflow="hidden",b.current.style.height="auto",b.current.style.height=`${b.current.scrollHeight}px`,parseInt(b.current.style.height,10)>200&&(b.current.style.overflow="auto")),k(e.currentTarget.scrollHeight)},h[13]=C,h[14]=g,h[15]=f,h[16]=E,h[17]=s):s=h[17];let z=s,P=C||T.description;h[18]!==$?(d=$("title"),h[18]=$,h[19]=d):d=h[19];let R=T.title;h[20]!==S?(c=S("release.placeholder-untitled-release"),h[20]=S,h[21]=c):c=h[21];let N=!C;return h[22]!==y||h[23]!==A||h[24]!==D||h[25]!==T.title||h[26]!==c||h[27]!==N||h[28]!==d?(u=(0,v.jsx)(RY,{ref:x,onChange:D,onFocus:d,onBlur:A,value:R,placeholder:c,"data-testid":"release-form-title",readOnly:N,disabled:y}),h[22]=y,h[23]=A,h[24]=D,h[25]=T.title,h[26]=c,h[27]=N,h[28]=d,h[29]=u):u=h[29],h[30]!==$||h[31]!==y||h[32]!==A||h[33]!==z||h[34]!==C||h[35]!==T.description||h[36]!==T.title||h[37]!==w||h[38]!==P||h[39]!==S?(p=P&&(0,v.jsx)(RH,{ref:b,autoF
1220ocus:!T.title,value:T.description,placeholder:S("release.form.placeholder-describe-release"),onChange:z,onFocus:$("description"),onBlur:A,style:{height:`${w}px`,maxHeight:200},"data-testid":"release-form-description",disabled:y,readOnly:!C}),h[30]=$,h[31]=y,h[32]=A,h[33]=z,h[34]=C,h[35]=T.description,h[36]=T.title,h[37]=w,h[38]=P,h[39]=S,h[40]=p):p=h[40],h[41]!==u||h[42]!==p?(m=(0,v.jsxs)(I.BJ,{space:3,children:[u,p]}),h[41]=u,h[42]=p,h[43]=m):m=h[43],m}function Rq(e){let{metadata:t}=e;return{title:t.title,description:t.description}}function RW(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$,A,D,z,P,R,N,O,V=(0,j.c)(80),{onChange:M,value:L}=e;V[0]!==L.metadata?(t=L.metadata||{},V[0]=L.metadata,V[1]=t):t=V[1];let{releaseType:F,intendedPublishAt:B}=t,{t:Y}=as(),{getStoredReleaseData:H,saveReleaseDataToStorage:U}=RR(),Z=L._id;V[2]!==H||V[3]!==Z||V[4]!==M?(n=()=>{let e=H();e&&M({_id:Z,...{metadata:{title:e.title,description:e.description,releaseType:e.releaseType??ux,intendedPublishAt:e.intendedPublishAt}}})},i=[H,Z,M],V[2]=H,V[3]=Z,V[4]=M,V[5]=n,V[6]=i):(n=V[5],i=V[6]),(0,_.useEffect)(n,i),V[7]!==M||V[8]!==U?(r=e=>{M(e),U({...e.metadata})},V[7]=M,V[8]=U,V[9]=r):r=V[9];let q=r;V[10]!==q||V[11]!==L?(a=e=>{q({...L,metadata:{...L.metadata,intendedPublishAt:e.toISOString()}})},V[10]=q,V[11]=L,V[12]=a):a=V[12];let W=a;V[13]!==q||V[14]!==L?(o=e=>{let t=e.currentTarget.dataset.value;if(!("string"==typeof t&&rK.includes(t)))return;let n=(0,nx.Q)((0,nb.L)(new Date,1));q({...L,metadata:{...L.metadata,releaseType:t,intendedPublishAt:"scheduled"===t&&n.toISOString()||void 0}})},V[13]=q,V[14]=L,V[15]=o):o=V[15];let J=o;V[16]!==q||V[17]!==L?(l=e=>{q({...L,metadata:{...L.metadata,title:e.metadata.title,description:e.metadata.description}})},V[16]=q,V[17]=L,V[18]=l):l=V[18];let K=l,G=(0,_.useId)(),[X,Q]=(0,_.useState)(null);V[19]!==Y?(s=Y("release.dialog.tooltip.title"),V[19]=Y,V[20]=s):s=V[20],V[21]!==G||V[22]!==s?(d=(0,v.jsx)(I.EY,{as:"label",htmlFor:G,children:s}),V[21]=G,V[22]=s,V[23]=d):d=V[23],V[24]===Symbol.for("react.memo_cache_sentinel")?(c={maxWidth:304},V[24]=c):c=V[24],V[25]!==Y?(u=Y("release.dialog.tooltip.description"),V[25]=Y,V[26]=u):u=V[26],V[27]!==u?(p=(0,v.jsx)(I.EY,{size:1,children:u}),V[27]=u,V[28]=p):p=V[28],V[29]!==Y?(m=Y("release.dialog.tooltip.note"),V[29]=Y,V[30]=m):m=V[30],V[31]!==m?(h=(0,v.jsx)(I.EY,{muted:!0,size:1,children:m}),V[31]=m,V[32]=h):h=V[32],V[33]!==p||V[34]!==h?(f=(0,v.jsxs)(I.BJ,{space:3,style:c,children:[p,h]}),V[33]=p,V[34]=h,V[35]=f):f=V[35],V[36]===Symbol.for("react.memo_cache_sentinel")?(g=(0,v.jsx)(eT.YzR,{}),V[36]=g):g=V[36],V[37]!==f?(y=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(tL.m_,{content:f,delay:0,placement:"right-start",portal:!0,children:g})}),V[37]=f,V[38]=y):y=V[38],V[39]!==y||V[40]!==d?(C=(0,v.jsxs)(I.so,{gap:2,align:"center",children:[d,y]}),V[39]=y,V[40]=d,V[41]=C):C=V[41];let ee=`release.type.${F}`;V[42]!==Y||V[43]!==ee?(x=Y(ee),V[42]=Y,V[43]=ee,V[44]=x):x=V[44];let et=F?uv[F].tone:"critical";return V[45]!==x||V[46]!==et?(b=(0,v.jsx)(RJ,{text:x,tone:et}),V[45]=x,V[46]=et,V[47]=b):b=V[47],V[48]===Symbol.for("react.memo_cache_sentinel")?(w=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.D3D,{})}),V[48]=w):w=V[48],V[49]!==b?(k=(0,v.jsx)(I.$n,{mode:"ghost",children:(0,v.jsxs)(I.so,{justify:"space-between",align:"center",children:[b,w]})}),V[49]=b,V[50]=k):k=V[50],V[51]!==X?(S={placement:"bottom",matchReferenceWidth:!0,boundaryElement:X},V[51]=X,V[52]=S):S=V[52],V[53]===Symbol.for("react.memo_cache_sentinel")?(E=Object.entries(uv),V[53]=E):E=V[53],V[54]!==J||V[55]!==Y?($=(0,v.jsx)(I.W1,{children:E.map(e=>{let[t,n]=e,{tone:i}=n;return(0,v.jsx)(I.Dr,{"data-value":t,onClick:J,children:(0,v.jsx)(RJ,{text:Y(`release.type.${t}`),tone:i})},t)})}),V[54]=J,V[55]=Y,V[56]=$):$=V[56],V[57]!==G||V[58]!==k||V[59]!==S||V[60]!==$?(A=(0,v.jsx)(tL.IU,{id:G,ref:Q,button:k,popover:S,menu:$}),V[57]=G,V[58]=k,V[59]=S,V[60]=$,V[61]=A):A=V[61],V[62]!==W||V[63]!==B||V[64]!==F?(D="scheduled"===F&&(0,v.jsx)(T.Kp,{"aria-labelledby":"release-timing-at-time-tab",flex:1,id:"release-timing-at-time",style:{outline:"none"}
1220,tabIndex:-1,children:(0,v.jsx)(RB,{value:B?new Date(B):void 0,onChange:W,timeZoneScope:Rz})}),V[62]=W,V[63]=B,V[64]=F,V[65]=D):D=V[65],V[66]!==D?(z=(0,v.jsx)(I.so,{gap:1,children:D}),V[66]=D,V[67]=z):z=V[67],V[68]!==A||V[69]!==z?(P=(0,v.jsxs)(I.BJ,{space:3,children:[A,z]}),V[68]=A,V[69]=z,V[70]=P):P=V[70],V[71]!==C||V[72]!==P?(R=(0,v.jsxs)(I.BJ,{space:4,children:[C,P]}),V[71]=C,V[72]=P,V[73]=R):R=V[73],V[74]!==K||V[75]!==L?(N=(0,v.jsx)(RZ,{release:L,onChange:K}),V[74]=K,V[75]=L,V[76]=N):N=V[76],V[77]!==R||V[78]!==N?(O=(0,v.jsxs)(I.BJ,{space:5,children:[R,N]}),V[77]=R,V[78]=N,V[79]=O):O=V[79],O}let RJ=e=>{let t,n,i,r=(0,j.c)(7),{tone:a,text:o}=e;return r[0]!==a?(t=(0,v.jsx)(RL,{padding:1,tone:a}),r[0]=a,r[1]=t):t=r[1],r[2]!==o?(n=(0,v.jsx)(I.EY,{children:o}),r[2]=o,r[3]=n):n=r[3],r[4]!==t||r[5]!==n?(i=(0,v.jsxs)(I.so,{gap:3,align:"center",children:[t,n]}),r[4]=t,r[5]=n,r[6]=i):i=r[6],i},RK={data:[],error:null,loading:!0},RG=lf((e,t,n)=>n.unstable_observeDocumentIdSet("sanity::versionOf($publishedId)",{publishedId:e}).pipe((0,eV.T)(e=>e.documentIds)).pipe((0,eM.n)(e=>n.unstable_observeDocumentIdSet('_type == "sanity.canvas.link" && studioDocumentId in $ids',{ids:e}))).pipe((0,eV.T)(e=>e.documentIds),(0,nV.q)(e=>t.observable.fetch("*[_id == $id][0]{ _id, canvasDocumentId, studioDocumentId, isStudioDocumentEditable}",{id:e},{tag:"canvas.companion-docs"}).pipe((0,eV.T)(e=>{if(!e?._id)throw Error("Companion doc not ready");return e}),(0,tu.L)({count:2,delay:e=>{if(e instanceof Error&&"Companion doc not ready"===e.message)return(0,eK.O)(1e3);throw e}}))),(0,eV.T)(e=>({error:null,data:e,loading:!1})),(0,eY.W)(e=>(0,eP.of)({error:e,data:[],loading:!1})),(0,tr.Z)(RK),(0,e1.t)(1)),(e,t)=>`${e}-${t.config().dataset}-${t.config().projectId}`);function RX(){let e,t=(0,j.c)(5),n=ca(),i=cY(),r=cc(),a=el0(ob);return t[0]!==r||t[1]!==n||t[2]!==a||t[3]!==i?(e=n.get({dependencies:[i,r],namespace:"CompanionDocsStore"})||function({client:e,previewStore:t}){return{getCompanionDocs:n=>RG((0,tG.IM)(n),e,t)}}({client:a,previewStore:r}),n.set({dependencies:[i,r],namespace:"CompanionDocsStore",value:e}),t[0]=r,t[1]=n,t[2]=a,t[3]=i,t[4]=e):e=t[4],e}function RQ(e){let t=["projectId"in e&&"`projectId` not allowed in plugin configuration","dataset"in e&&"`dataset` not allowed in plugin configuration"].filter(eo.A);if(t.length)throw Error(`Invalid plugin configuration: 1221${t.map(e=>` ${e}`).join(` 1222`)}`)}function R1(e){return"function"==typeof e?t=>{let n=e(t);return RQ(n),n}:(RQ(e),()=>e)}let R2=[];function R5(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(21),{currentUser:u,context:p}=e,{t:m}=as();c[0]===Symbol.for("react.memo_cache_sentinel")?(t={style:"short",type:"unit"},c[0]=t):t=c[0];let h=ax(t),f=u?.roles||R2;c[1]!==h||c[2]!==f?(n=()=>(0,v.jsx)(v.Fragment,{children:h.formatToParts(f.map(R7)).map(R0)}),c[1]=h,c[2]=f,c[3]=n):n=c[3];let g=n;return c[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(I.EY,{size:0,children:(0,v.jsx)(eT.VY$,{})}),c[4]=i):i=c[4],c[5]!==m?(r=m("insufficient-permissions-message.title"),c[5]=m,c[6]=r):r=c[6],c[7]!==r?(a=(0,v.jsxs)(I.cV,{space:2,children:[i,(0,v.jsx)(I.EY,{size:1,weight:"medium",children:r})]}),c[7]=r,c[8]=a):a=c[8],c[9]!==p||c[10]!==m?(o=(0,v.jsx)(I.cV,{marginTop:4,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{i18nKey:"insufficient-permissions-message.not-authorized-explanation",t:m,context:p})})}),c[9]=p,c[10]=m,c[11]=o):o=c[11],c[12]!==g?(l={Roles:g},c[12]=g,c[13]=l):l=c[13],c[14]!==m||c[15]!==l?(s=(0,v.jsx)(I.cV,{marginTop:4,marginBottom:1,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{i18nKey:"insufficient-permissions-message.roles",t:m,components:l})})}),c[14]=m,c[15]=l,c[16]=s):s=c[16],c[17]!==a||c[18]!==o||c[19]!==s?(d=(0,v.jsxs)(I.az,{children:[a,o,s]}),c[17]=a,c[18]=o,c[19]=s,c[20]=d):d=c[20],d}function R0(e,t){return"element"===e.type?(0,v.jsx)("code",{children:e.value},`${e.value}-${t}`):(0,v.jsx)(_.Fragment,{children:e.value},`${e.value}-${t}`)}function R7(e){return e.title||(0,eu.A)(e.name)}let R3=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(24),{id:d,type:c,release:u,version:p}=e,m=o5(),{t:h}=as(),{selectedPerspective:f}=a3();s[0]!==p?(t=!!p&&v5(p),s[0]=p,s[1]=t):t=s[1];let g=t;s[2]!==d||s[3]!==u||s[4]!==c?(n={id:d,type:c,version:u,permission:"discardVersion"},s[2]=d,s[3]=u,s[4]=c,s[5]=n):n=s[5];let[y,C]=dd(n),[x,b]=(0,_.useState)(!1);s[6]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{b(!0)},s[6]=i):i=s[6];let w=i;if(!p)return null;if(!C&&!y?.granted){let e;return s[7]!==m?(e={disabled:!0,icon:eT.ucK,label:"no permissions",title:(0,v.jsx)(R5,{currentUser:m,context:"discard-changes"})},s[7]=m,s[8]=e):e=s[8],e}let k=C||!y?.granted;return s[9]!==x||s[10]!==f||s[11]!==c||s[12]!==p||s[13]!==g?(r=x&&{type:"custom",component:(0,v.jsx)(R$,{isGoingToUnpublish:g,documentId:p._id,documentType:c,onClose:()=>b(!1),fromPerspective:f})},s[9]=x,s[10]=f,s[11]=c,s[12]=p,s[13]=g,s[14]=r):r=s[14],s[15]!==h?(a=h("release.action.discard-version"),s[15]=h,s[16]=a):a=s[16],s[17]!==h?(o=h("release.action.discard-version"),s[17]=h,s[18]=o):o=s[18],s[19]!==k||s[20]!==r||s[21]!==a||s[22]!==o?(l={disabled:k,dialog:r,label:a,icon:eT.ucK,onHandle:w,title:o},s[19]=k,s[20]=r,s[21]=a,s[22]=o,s[23]=l):l=s[23],l};function R8(){return _g().schema}function R4(){let e,t,n,i=(0,j.c)(7),{state$:r}=cF(),{releases:a,error:o,state:l}=(0,tF.J)(r);
1222i[0]!==a?(e=gB(Array.from(a.values())),i[0]=a,i[1]=e):e=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(t=["loading","initialising"],i[2]=t):t=i[2];let s=t.includes(l);return i[3]!==o||i[4]!==e||i[5]!==s?(n={data:e,error:o,loading:s},i[3]=o,i[4]=e,i[5]=s,i[6]=n):n=i[6],n}function R6(){let e,t,n=(0,j.c)(6),{data:i,error:r,loading:a}=R4();n[0]!==i?(e=Array.from(i.values()).filter(R9),n[0]=i,n[1]=e):e=n[1];let o=e;return n[2]!==o||n[3]!==r||n[4]!==a?(t={data:o,error:r,loading:a},n[2]=o,n[3]=r,n[4]=a,n[5]=t):t=n[5],t}function R9(e){return ub.includes(e.state)}function Ne(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k=(0,j.c)(65),{onClose:S,documentVersionId:E,documentType:$}=e,{t:A}=as(RE),{t:D}=as(),z=R8(),{unpublishVersion:P}=RT(),[R,N]=(0,_.useState)(!1),O=(0,T.dj)(),{data:V}=gU(),{data:M}=R6();if(k[0]!==M||k[1]!==V||k[2]!==E){let e;k[5]!==E?(e=e=>cN(e._id)===(0,tG._S)(E),k[5]=E,k[6]=e):e=k[6],n=uA(t=V.concat(M).find(e)),k[0]=M,k[1]=V,k[2]=E,k[3]=t,k[4]=n}else t=k[3],n=k[4];let L=n;k[7]!==$||k[8]!==z?(i=z.get($),k[7]=$,k[8]=z,k[9]=i):i=k[9];let F=i;k[10]!==E?(r={_id:E},k[10]=E,k[11]=r):r=k[11],k[12]!==F||k[13]!==r?(a={schemaType:F,value:r},k[12]=F,k[13]=r,k[14]=a):a=k[14];let B=v3(a);k[15]!==D||k[16]!==E||k[17]!==S||k[18]!==B?.value?.title||k[19]!==O||k[20]!==P?(o=async()=>{N(!0);let e=async()=>{await P(E),O.push({closable:!0,status:"success",description:(0,v.jsx)(aE,{t:D,i18nKey:"release.action.unpublish-version.success",values:{title:B?.value?.title||E}})})};try{await e()}catch(e){O.push({closable:!0,status:"error",title:D("release.action.unpublish-version.failure"),description:e.message})}N(!1),S()},k[15]=D,k[16]=E,k[17]=S,k[18]=B?.value?.title,k[19]=O,k[20]=P,k[21]=o):o=k[21];let Y=o;return k[22]!==A?(l=A("unpublish-dialog.header"),k[22]=A,k[23]=l):l=k[23],k[24]!==A?(s=A("unpublish-dialog.action.cancel"),k[24]=A,k[25]=s):s=k[25],k[26]!==S||k[27]!==s?(d={text:s,onClick:S},k[26]=S,k[27]=s,k[28]=d):d=k[28],k[29]!==A?(c=A("unpublish-dialog.action.unpublish"),k[29]=A,k[30]=c):c=k[30],k[31]!==Y||k[32]!==R||k[33]!==c?(u={text:c,onClick:Y,tone:"critical",disabled:R,loading:R},k[31]=Y,k[32]=R,k[33]=c,k[34]=u):u=k[34],k[35]!==d||k[36]!==u?(p={cancelButton:d,confirmButton:u},k[35]=d,k[36]=u,k[37]=p):p=k[37],k[38]!==E||k[39]!==F?(m=F?(0,v.jsx)(Pz,{value:{_id:E},schemaType:F}):(0,v.jsx)(ry,{}),k[38]=E,k[39]=F,k[40]=m):m=k[40],k[41]!==D||k[42]!==t?.metadata.title?(h=t?.metadata.title||D("release.placeholder-untitled-release"),k[41]=D,k[42]=t?.metadata.title,k[43]=h):h=k[43],k[44]!==h?(f={title:h},k[44]=h,k[45]=f):f=k[45],k[46]!==L?(g={Label:e=>{let{children:t}=e;return(0,v.jsx)("span",{style:{color:`var(--card-badge-${L??"default"}-fg-color)`,backgroundColor:`var(--card-badge-${L??"default"}-bg-color)`,borderRadius:3,textDecoration:"none",padding:"0px 2px",fontWeight:500},children:t})}},k[46]=L,k[47]=g):g=k[47],k[48]!==A||k[49]!==f||k[50]!==g?(y=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:A,i18nKey:"unpublish-dialog.description.to-draft",values:f,components:g})}),k[48]=A,k[49]=f,k[50]=g,k[51]=y):y=k[51],k[52]!==A?(C=A("unpublish-dialog.description.lost-changes"),k[52]=A,k[53]=C):C=k[53],k[54]!==C?(x=(0,v.jsx)(I.EY,{muted:!0,size:1,children:C}),k[54]=C,k[55]=x):x=k[55],k[56]!==m||k[57]!==y||k[58]!==x?(b=(0,v.jsxs)(I.BJ,{space:4,paddingX:4,paddingBottom:4,children:[m,y,x]}),k[56]=m,k[57]=y,k[58]=x,k[59]=b):b=k[59],k[60]!==S||k[61]!==p||k[62]!==b||k[63]!==l?(w=(0,v.jsx)(tL.lG,{header:l,id:"document-unpublish-dialog",onClickOutside:S,onClose:S,width:0,padding:!1,footer:p,children:b}),k[60]=S,k[61]=p,k[62]=b,k[63]=l,k[64]=w):w=k[64],w}R3.action="discardVersion",R3.displayName="DiscardVersionAction";let Nt=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(32),{id:d,type:c,release:u,published:p,version:m}=e,h=o5(),{t:f}=as(RE);s[0]!==m?(t=!!m&&v5(m),s[0]=m,s[1]=t):t=s[1];let g=t,{revertUnpublishVersion:y}=RT(),C=(0,T.dj)(),{t:x}=as();s[2]!==d||s[3]!==u||s[4]!==c?(n={id:d,type:c,version:u,permission:"unpublish"},s[2]=d,s[3]=u,s[4]=c,s[5]=n):n=s[5];let[b,w]=dd(n),[k,S]=(0,_.useState)(!1);s[6]!==x||s[7]!==g||s[8]!==y||s[9]!==C||s[10]!==m?(i=async()=>
1222{if(g&&m)try{await y(m._id)}catch{C.push({closable:!0,status:"error",title:x("release.action.revert-unpublish-version.failure.title"),description:x("release.action.revert-unpublish-version.failure.description")})}else S(!0)},s[6]=x,s[7]=g,s[8]=y,s[9]=C,s[10]=m,s[11]=i):i=s[11];let I=i;if(!u||!m)return null;if(!w&&!b?.granted){let e;return s[12]!==h?(e={disabled:!0,icon:eT.ucK,label:"no permissions",title:(0,v.jsx)(R5,{context:"unpublish-document",currentUser:h})},s[12]=h,s[13]=e):e=s[13],e}s[14]!==k||s[15]!==g||s[16]!==c||s[17]!==m?(r=k&&!g&&{type:"custom",component:(0,v.jsx)(Ne,{documentVersionId:m._id,documentType:c,onClose:()=>S(!1)})},s[14]=k,s[15]=g,s[16]=c,s[17]=m,s[18]=r):r=s[18],s[19]!==g||s[20]!==f?(a=f(g?"action.revert-unpublish-actions":"action.unpublish-doc-actions"),s[19]=g,s[20]=f,s[21]=a):a=s[21];let E=g?eT.AAk:eT.wvk,$=null===p;return s[22]!==g||s[23]!==f?(o=f(g?"action.revert-unpublish-actions":"action.unpublish-doc-actions"),s[22]=g,s[23]=f,s[24]=o):o=s[24],s[25]!==I||s[26]!==r||s[27]!==a||s[28]!==E||s[29]!==$||s[30]!==o?(l={dialog:r,label:a,icon:E,onHandle:I,disabled:$,title:o},s[25]=I,s[26]=r,s[27]=a,s[28]=E,s[29]=$,s[30]=o,s[31]=l):l=s[31],l};Nt.action="unpublishVersion",Nt.displayName="UnpublishVersionAction";let Nn="sanity/releases",Ni="release",Nr=R1({name:Nn,document:{actions:(e,t)=>{let n;return n=e.filter(({action:e})=>"duplicate"===e),"version"===t.versionType?n.concat(R3,Nt):e}}}),Na={data:null,error:null,loading:!1},No=e=>{let t,n,i,r,a,o,l,s,d=(0,j.c)(15),{children:c}=e;d[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],d[0]=t):t=d[0];let[u,p]=(0,_.useState)(t),{getMetadataStateForSlugs$:m}=cF(),[h,f]=(0,_.useState)(null);d[1]!==m||d[2]!==u?(n=m(u.map(Ns)),d[1]=m,d[2]=u,d[3]=n):n=d[3];let g=(0,tF.J)(n)||Na;d[4]!==g.data?(i=()=>f(e=>g.data?{...e,...g.data}:e),r=[g.data],d[4]=g.data,d[5]=i,d[6]=r):(i=d[5],r=d[6]),(0,_.useEffect)(i,r),d[7]===Symbol.for("react.memo_cache_sentinel")?(a=e=>{p(t=>[...t,...e.filter(Nd)])},d[7]=a):a=d[7];let y=a;d[8]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{p(t=>{let{nextSlugs:n}=t.reduce((t,n)=>{let{removedSlugs:i,nextSlugs:r}=t;return e.includes(n)&&!i.includes(n)?{removedSlugs:[...i,n],nextSlugs:r}:{removedSlugs:i,nextSlugs:[...r,n]}},{removedSlugs:[],nextSlugs:[]});return n})},d[8]=o):o=d[8];let C=o;d[9]!==g||d[10]!==h?(l={addReleaseIdsToListener:y,removeReleaseIdsFromListener:C,state:{...g,data:h}},d[9]=g,d[10]=h,d[11]=l):l=d[11];let x=l;return d[12]!==c||d[13]!==x?(s=(0,v.jsx)(S.JQ.Provider,{value:x,children:c}),d[12]=c,d[13]=x,d[14]=s):s=d[14],s},Nl=e=>{let t,n=(0,j.c)(2),{children:i}=e;return(0,_.useContext)(S.JQ)?i:(n[0]!==i?(t=(0,v.jsx)(No,{children:i}),n[0]=i,n[1]=t):t=n[1],t)};function Ns(e){return e}function Nd(e){return"string"==typeof e}function Nc(){return null}function Nu(){return null}function Np(e){let t,n,i,r,a,o,l,s=(0,j.c)(18),{onClose:d}=e,{t:c}=as();s[0]!==d?(t=()=>{window.open("https://www.sanity.io/contact/support","_blank","noopener,noreferrer"),d()},s[0]=d,s[1]=t):t=s[1];let u=t;return s[2]!==c?(n=c("releases.upsell.misconfiguration.header"),s[2]=c,s[3]=n):n=s[3],s[4]!==c?(i=c("releases.upsell.misconfiguration.contact-support"),s[4]=c,s[5]=i):i=s[5],s[6]!==u||s[7]!==i?(r={confirmButton:{text:i,onClick:u,tone:"primary"}},s[6]=u,s[7]=i,s[8]=r):r=s[8],s[9]!==c?(a=c("releases.upsell.misconfiguration.message"),s[9]=c,s[10]=a):a=s[10],s[11]!==a?(o=(0,v.jsx)(I.BJ,{space:4,children:(0,v.jsx)(I.EY,{children:a})}),s[11]=a,s[12]=o):o=s[12],s[13]!==d||s[14]!==n||s[15]!==r||s[16]!==o?(l=(0,v.jsx)(tL.lG,{id:"releases-misconfiguration-dialog",header:n,width:1,onClose:d,footer:r,children:o}),s[13]=d,s[14]=n,s[15]=r,s[16]=o,s[17]=l):l=s[17],l}function Nm(e,t){let{projectId:n}=e.config();return e.withConfig({apiVersion:"vX"}).observable.request({uri:`projects/${n}/new-content-release-allowed`,tag:`new-content-release-allowed-${t}`}).pipe((0,eY.W)(e=>{if(console.error(e),403===e.statusCode&&"string"!=typeof e.response.body&&"data"in e.response.body)return(0,eP.of)(e.response.body);throw e}),(0,eV.T)(({data:e})=>e))}let Nh="orgActiveReleaseCount",Nf="ReleaseLimits";
1222class Ng extends Error{constructor(){super("StudioReleaseLimitExceeded"),this.name="StudioReleaseLimitExceededError",this.details={type:"releaseLimitExceededError"}}}function Ny(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(47),[w,k]=(0,_.useState)(!1),{data:I}=gU(),{enabled:E}=EY(EM);b[0]===Symbol.for("react.memo_cache_sentinel")?(o={dataUri:"/journey/content-releases",feature:"content-releases"},b[0]=o):o=b[0];let{upsellData:$,telemetryLogs:A,hasError:D}=$R(o),z=(0,T.dj)(),{t:P}=as();b[1]!==I?(l=I.filter(NC),b[1]=I,b[2]=l):l=b[2];let R=l;e:{if(!E){s="upsell";break e}s="default"}let N=s;b[3]!==A?(d=()=>{A.dialogPrimaryClicked()},b[3]=A,b[4]=d):d=b[4];let O=d;b[5]!==A?(c=()=>{A.dialogSecondaryClicked()},b[5]=A,b[6]=c):c=b[6];let V=c;b[7]!==A?(u=()=>{k(!1),A.dialogDismissed()},b[7]=A,b[8]=u):u=b[8];let M=u,[L,F]=(0,_.useState)(null),[B,Y]=(0,_.useState)(!1);b[9]!==D||b[10]!==P||b[11]!==A||b[12]!==z?(p=e=>{D?z.push({status:"error",title:P("errors.unable-to-perform-action"),closable:!0}):(k(!0),A.dialogViewed(void 0===e?"navbar":e))},b[9]=D,b[10]=P,b[11]=A,b[12]=z,b[13]=p):p=b[13];let H=p,{releaseLimits$:U}=(i=(0,j.c)(4),r=ca(),i[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"v2025-02-19"},i[0]=t):t=i[0],a=el0(t),i[1]!==a||i[2]!==r?(n=r.get({dependencies:[a],namespace:Nf})||{releaseLimits$:Nm(a,"releaseLimits").pipe((0,eV.T)(e=>({datasetReleaseLimit:e.datasetReleaseLimit,orgActiveReleaseLimit:e.orgActiveReleaseLimit})),(0,e1.t)(1),(0,eY.W)(e=>(console.error("Failed to fetch release limits",e),(0,eP.of)(null))))},r.set({namespace:Nf,value:n,dependencies:[a]}),i[1]=a,i[2]=r,i[3]=n):n=i[3],n),{orgActiveReleaseCount$:Z}=(()=>{var e;let t,n,i,r,a,o,l=(0,j.c)(7),s=ca(),{data:d}=gU();l[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"v2025-02-19"},l[0]=t):t=l[0];let c=el0(t),u=d?.length||0;l[1]!==u?(n={activeReleasesCount:u},l[1]=u,l[2]=n):n=l[2];let p=n;return l[3]!==c||l[4]!==p||l[5]!==s?(i=s.get({dependencies:[c,p],namespace:Nh})||(e=p.activeReleasesCount,r=new e2.t(null),a=new e2.t(!1),o=new e2.t(null),{orgActiveReleaseCount$:r.pipe((0,eM.n)(t=>null===t||!0===a.getValue()||o.getValue()!==e?(a.next(!1),Nm(c,"orgActiveReleaseCount").pipe((0,e5.M)(()=>o.next(e)),(0,eV.T)(e=>e.orgMeteredActiveReleaseCount),(0,eY.W)(e=>{if(console.error("Failed to fetch org release count",e),!t)throw e;return(0,eP.of)(t)}),(0,eM.n)(e=>(r.next(e),(0,eK.O)(6e4).subscribe(()=>{a.next(!0),o.next(null)}),(0,eP.of)(e))))):(0,eP.of)(t)))}),s.set({namespace:Nh,value:i,dependencies:[c,p]}),l[3]=c,l[4]=p,l[5]=s,l[6]=i):i=l[6],i})();b[14]!==I.length||b[15]!==H||b[16]!==R.length||b[17]!==N||b[18]!==Z||b[19]!==U?(m=async(e,t,n)=>{let i=void 0!==t&&t,r=()=>{if(H(),i)throw new Ng;return!1};if("upsell"===N)return n?.(!1),r();let a=await (async()=>{try{return await Promise.all([(0,tp._)(Z),(0,tp._)(U.pipe((0,e5.M)(e=>F(e?.orgActiveReleaseLimit||null))))])}catch(e){return console.error("Error fetching release limits and org count for upsell:",e),null}})();if(null===a)return n?.(!0),e();let[o,l]=a;if(null===l||null===o)return n?.(!0),e();let{orgActiveReleaseLimit:s,datasetReleaseLimit:d}=l;if(0===s){if(n?.(!1),Y(!0),i)throw new Ng;return!1}if(null===o)return n?.(!0),e();let c=R?.length||0;return(I?.length||0)>=d||null!==s&&c>=s||null!==s&&o>=s?(n?.(!1),r()):(n?.(!0),e())},b[14]=I.length,b[15]=H,b[16]=R.length,b[17]=N,b[18]=Z,b[19]=U,b[20]=m):m=b[20];let q=m;b[21]!==H?(h=e=>{F(e),H()},b[21]=H,b[22]=h):h=b[22];let W=h;b[23]!==q||b[24]!==H||b[25]!==N||b[26]!==W||b[27]!==A||b[28]!==$||b[29]!==w?(f={mode:N,upsellDialogOpen:w,guardWithReleaseLimitUpsell:q,onReleaseLimitReached:W,telemetryLogs:A,upsellData:$,handleOpenDialog:H},b[23]=q,b[24]=H,b[25]=N,b[26]=W,b[27]=A,b[28]=$,b[29]=w,b[30]=f):f=b[30];let J=f;b[31]!==L?(g=null===L?void 0:{releaseLimit:L},b[31]=L,b[32]=g):g=b[32];let K=g;b[33]!==M||b[34]!==O||b[35]!==V||b[36]!==K||b[37]!==$||b[38]!==w?(y={data:$,open:w,interpolation:K,onClose:M,onPrimaryClick:O,onSecondaryClick:V},b[33]=M,b[34]=O,b[35]=V,b[36]=K,b[37]=$,b[38]=w,b[39]=y):y=b[39];let G=y;return b[40]!==G||b[41]!==B?(C=B?(0,v.jsx)(Np,{onClose:()=>Y(!1)}):(0,v.jsx)($7,{...G}),b[40]=G,b[41]=B,b[42]=C):C=b[42],b[43]!==J||b[44]!==e.children||b[45]!==C?(x=(0,v.jsxs)(S.Pn.Provider,{value:J,children:[e.children,C]}),b[43]=J,b[44]=e.children,b[45]=C,b[46]=x):x=b[46],x}function NC(e){return!rX(e)}let Nx={events:[],nextCursor:"",loading:!0,error:null};
1222function Nb(e){return{...e,id:`${e.timestamp}-${e.type}`,origin:"events"}}let Nv=Object.create(null),Nj={editEvents:[],loading:!0,error:null},Nw=e=>"createRelease"===e.type,N_=e=>"events"===e.origin,Nk={events:[],hasMore:!1,error:null,loading:!0},NS={events$:(0,eP.of)({events:[],nextCursor:"",loading:!1,error:null}),reloadEvents:()=>{},loadMore:()=>{}};function NI(e){let t,n,i,r,a,o=(0,j.c)(10);o[0]!==e?({time:n,...t}=e,o[0]=e,o[1]=t,o[2]=n):(t=o[1],n=o[2]),o[3]!==n?(i=n instanceof Date?n:new Date(n),o[3]=n,o[4]=i):i=o[4];let l=i,s=um(l,t);return o[5]!==l?(r=l.toISOString(),o[5]=l,o[6]=r):r=o[6],o[7]!==r||o[8]!==s?(a=(0,v.jsx)("time",{dateTime:r,title:s,children:s}),o[7]=r,o[8]=s,o[9]=a):a=o[9],a}function NT(e){let t,n,i,r,a,o,l=(0,j.c)(21);l[0]!==e?(t=e||{},l[0]=e,l[1]=t):t=l[1];let{documentId:s,documentType:d,perspectiveStack:c}=t,u=R8();l[2]!==d||l[3]!==u?(n=u.get(d),l[2]=d,l[3]=u,l[4]=n):n=l[4];let p=n,m=cc(),{perspectiveStack:h}=a3();e:{let e;if(!s||!p){let e;l[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)(null),l[5]=e):e=l[5],i=e;break e}let t=c??h;l[6]!==s||l[7]!==m||l[8]!==p||l[9]!==t?(e=P9(m,p,s,t),l[6]=s,l[7]=m,l[8]=p,l[9]=t,l[10]=e):e=l[10],i=e}let f=(0,tF.J)(i),g=f?.isLoading??!0;l[11]!==f?(r=f||{},l[11]=f,l[12]=r):r=l[12];let{snapshot:y}=r,C=y?.title,x=y?.subtitle,b=y?.description,v=y?.media;return l[13]!==b||l[14]!==C||l[15]!==v||l[16]!==x?(a={title:C,subtitle:x,media:v,description:b},l[13]=b,l[14]=C,l[15]=v,l[16]=x,l[17]=a):a=l[17],l[18]!==g||l[19]!==a?(o={isLoading:g,value:a},l[18]=g,l[19]=a,l[20]=o):o=l[20],o}function NE(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(43),{documentId:u,documentTypeName:p,releaseId:m,releaseState:h,isCardinalityOneRelease:f,documentRevision:g,layout:y,isGoingToBePublished:C}=e,x=void 0!==C&&C,b=cb(u);e:{let e;if(f){let e,n;c[0]!==m?(e=cN(m),c[0]=m,c[1]=e):e=c[1],c[2]!==e?(n={scheduledDraft:e},c[2]=e,c[3]=n):n=c[3],t=n;break e}if("published"===h){let e,n;c[4]!==m?(e=cN(m),c[4]=m,c[5]=e):e=c[5];let i=`@release:${e}`;c[6]!==i?(n={rev:i,inspect:"sanity/structure/history"},c[6]=i,c[7]=n):n=c[7],t=n;break e}if("archived"===h){let e,n;c[8]!==m?(e=cN(m),c[8]=m,c[9]=e):e=c[9],c[10]!==g||c[11]!==e?(n={rev:"@lastEdited",inspect:"sanity/structure/history",historyEvent:g,historyVersion:e,archivedRelease:"true"},c[10]=g,c[11]=e,c[12]=n):n=c[12],t=n;break e}c[13]===Symbol.for("react.memo_cache_sentinel")?(e={},c[13]=e):e=c[13],t=e}let w=t;c[14]!==u||c[15]!==p||c[16]!==w||c[17]!==f||c[18]!==m||c[19]!==h?(n=(0,_.forwardRef)(function(e,t){return(0,v.jsx)(nU.RZ,{...e,intent:"edit",params:{id:(0,tG.IM)(u),type:p,...w},searchParams:f||"archived"===h||"archiving"===h||"unarchiving"===h?void 0:[["perspective","published"===h?"published":cN(m)]],ref:t})}),c[14]=u,c[15]=p,c[16]=w,c[17]=f,c[18]=m,c[19]=h,c[20]=n):n=c[20];let k=n;c[21]!==b?(i=b?.length>0&&(0,v.jsx)(Bf,{presence:b}),c[21]=b,c[22]=i):i=c[22];let S=i;c[23]!==u||c[24]!==x?(r=x?(0,tG.IM)(u):u,c[23]=u,c[24]=x,c[25]=r):r=c[25],c[26]!==x||c[27]!==m?(a=x?[]:[cN(m)],c[26]=x,c[27]=m,c[28]=a):a=c[28],c[29]!==p||c[30]!==r||c[31]!==a?(o={documentId:r,documentType:p,perspectiveStack:a},c[29]=p,c[30]=r,c[31]=a,c[32]=o):o=c[32];let{isLoading:T,value:E}=NT(o);return c[33]!==E?(l=E||{},c[33]=E,c[34]=l):l=c[34],c[35]!==y||c[36]!==T||c[37]!==S||c[38]!==l?(s=(0,v.jsx)(j8,{...l,status:S,isPlaceholder:T,layout:y}),c[35]=y,c[36]=T,c[37]=S,c[38]=l,c[39]=s):s=c[39],c[40]!==k||c[41]!==s?(d=(0,v.jsx)(I.Zp,{tone:"inherit",as:k,radius:2,"data-as":"a",children:s}),c[40]=k,c[41]=s,c[42]=d):d=c[42],d}let N$=(0,eI.I4)(I.EY).withConfig({displayName:"StatusText",componentId:"sc-1vmkaay-0"})`strong{font-weight:500;color:var(--card-fg-color);}time{white-space:nowrap;}`,NA={addDocumentToRelease:"activity.event.add-document",archiveRelease:"activity.event.archive",createRelease:"activity.event.create",discardDocumentFromRelease:"activity.event.discard-document",publishRelease:"activity.event.publish",scheduleRelease:"activity.event.schedule",unarchiveRelease:"activity.event.unarchive",unscheduleRelease:"activity.event.unschedule",editRelease:"activity.event.edit"},ND=e=>{let t,n=(0,j.c)(4),{event:i,releaseId:r}=e;return n[0]!==i.documentId||n[1]!==i.documentType||n[2]!==r?(t=(0,v.jsx)(I.BJ,{space:2,children:(0,v.jsx)(NE,{releaseId:r,documentId:i.documentId,documentTypeName:i.documentType,layout:"block"})}),n[0]=i.documentId,n[1]=i.documentType,n[2]=r,n[3]=t):t=n[3],t},Nz=e=>{let t,n,i,r,a=(0,j.c)(13),{children:o,event:l}=e;a[0]===Symbol.for("react.memo_cache_sentinel")?(t={dateStyle:"full",timeStyle:"medium"},a[0]=t):t=a[0];let s=ud(t),{t:d}=as(RE);e:{let e,t;if("editRelease"===l.type){if("asap"===l.change.releaseType){let e;a[1]!==d?(e=d("activity.event.edit-time-asap"),a[1]=d,a[2]=e):e=a[2],n=e;break e}if("undecided"===l.change.releaseType){let e;a[3]!==d?(e=d("activity.event.edit-time-undecided"),a[3]=d,a[4]=e):e=a[4],n=e;break e}}if("scheduleRelease"===l.type?e=l.publishAt:Nw(l)?e=l.change?.intendedPublishDate:"editRelease"===l.type&&(e=l.change.intendedPublishDate),!e){n=null;break e}a[5]!==e||a[6]!==s?(t=s.format(new Date(e)),a[5]=e,a[6]=s,a[7]=t):t=a[7],n=t}let c=n;if(!c&&Nw(l))return null;let u=c||"---";return a[8]!==u?(i=(0,v.jsx)("strong",{children:u}),a[8]=u,a[9]=i):i=a[9],a[10]!==o||a[11]!==i?(r=(0,v.jsxs)("span",{children:[o," ",i]}),a[10]=o,a[11]=i,a[12]=r):r=a[12],r},NP=ir.P.create(I.Zp),NR=(0,_.memo)(e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(28),{event:h,releaseId:f,releaseTitle:g}=e,{t:y}=as(RE);m[0]===Symbol.for("react.memo_cache_sentinel")?(t={opacity:0}
1222,n={opacity:1},i={type:"spring",bounce:0,duration:.4},m[0]=t,m[1]=n,m[2]=i):(t=m[0],n=m[1],i=m[2]),m[3]!==h.author?(r=(0,v.jsx)(ua,{user:h.author}),m[3]=h.author,m[4]=r):r=m[4],m[5]!==h?(a={ScheduleTarget:e=>{let{children:t}=e;return(0,v.jsx)(Nz,{event:h,children:t})}},m[5]=h,m[6]=a):a=m[6],m[7]!==g?(o={releaseTitle:g},m[7]=g,m[8]=o):o=m[8];let C=NA[h.type];return m[9]!==y||m[10]!==a||m[11]!==o||m[12]!==C?(l=(0,v.jsx)(aE,{t:y,components:a,values:o,i18nKey:C}),m[9]=y,m[10]=a,m[11]=o,m[12]=C,m[13]=l):l=m[13],m[14]!==h.timestamp?(s=(0,v.jsx)(NI,{time:h.timestamp,useTemporalPhrase:!0,minimal:!0}),m[14]=h.timestamp,m[15]=s):s=m[15],m[16]!==l||m[17]!==s?(d=(0,v.jsx)(I.so,{gap:2,paddingY:2,children:(0,v.jsxs)(N$,{muted:!0,size:1,children:[l," ","\xb7 ",s]})}),m[16]=l,m[17]=s,m[18]=d):d=m[18],m[19]!==h||m[20]!==f?(c="addDocumentToRelease"===h.type||"discardDocumentFromRelease"===h.type?(0,v.jsx)(ND,{event:h,releaseId:f}):null,m[19]=h,m[20]=f,m[21]=c):c=m[21],m[22]!==d||m[23]!==c?(u=(0,v.jsxs)(I.BJ,{flex:1,children:[d,c]}),m[22]=d,m[23]=c,m[24]=u):u=m[24],m[25]!==u||m[26]!==r?(p=(0,v.jsx)(NP,{paddingX:1,paddingTop:1,paddingBottom:2,overflow:"hidden",initial:t,animate:n,transition:i,children:(0,v.jsxs)(I.so,{align:"flex-start",gap:2,children:[r,u]})}),m[25]=u,m[26]=r,m[27]=p):p=m[27],p},(e,t)=>e.event.id===t.event.id&&e.releaseId===t.releaseId);NR.displayName="ReleaseActivityListItem";let NN=(0,eI.I4)(I.az).withConfig({displayName:"VirtualContainer",componentId:"sc-163h2xa-0"})`height:100%;overflow:scroll;`,NO=({events:e,releaseTitle:t,releaseId:n,hasMore:i,loadMore:r,isLoading:a})=>{let o=(0,_.useRef)(null),l=(0,_.useMemo)(()=>{if(!i&&!a)return e;let t=[...e].reverse().find(N_);if(!t&&!a)return e;if(!t)return[];let n=new Date(t.timestamp);return e.filter(e=>"translog"!==e.origin||new Date(e.timestamp)>n)},[e,i,a]),s=(0,E.Te)({count:i||a?l.length+1:l.length,getScrollElement:()=>o.current,estimateSize:t=>{let n;return(n=e[t])?"addDocumentToRelease"===n.type||"discardDocumentFromRelease"===n.type?70:56:40},overscan:10,paddingEnd:24}),d=s.getVirtualItems();return(0,_.useEffect)(()=>{let e=d.at(-1);e&&e.index>=l.length-1&&i&&r()},[l.length,i,r,d]),(0,v.jsx)(NN,{id:"virtualizer-container",ref:o,paddingX:3,children:(0,v.jsx)("div",{style:{height:`${s.getTotalSize()}px`,width:"100%",position:"relative"},children:(0,v.jsx)(ia.N,{initial:!1,children:s.getVirtualItems().map(e=>{let i=l[e.index],r=!i;return(0,v.jsx)("div",{"data-index":e.index,ref:s.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${e.start}px)`},children:r?(0,v.jsx)(I.az,{paddingY:4,children:(0,v.jsx)(ry,{fill:!0})}):(0,v.jsx)(NR,{event:i,releaseId:n,releaseTitle:t})},e.key)})})})})},NV=ir.P.create(I.so),NM=eI.I4.div.withConfig({displayName:"FillHeight",componentId:"sc-cp4fmh-0"})`--card-border-color:transparent;height:100%;display:flex;flex-direction:column;`;function NL(e){let t,n,i=(0,j.c)(8),{events:r,release:a,show:o}=e,{t:l}=as(RE),{t:s}=as();return i[0]!==r||i[1]!==a||i[2]!==o||i[3]!==l||i[4]!==s?(t=o&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(ir.P.div,{animate:{width:"auto",opacity:1},initial:{width:0,opacity:0},exit:{width:0,opacity:0},transition:{type:"spring",bounce:0,duration:.2},children:(0,v.jsx)(w1,{as:NM,minWidth:320,maxWidth:800,initialWidth:320,resizerPosition:"left",style:{display:"flex",flexDirection:"column",flex:"none",maxHeight:"100%"},children:(0,v.jsxs)(NV,{flex:"none",height:"fill",direction:"column",children:[(0,v.jsx)(I.az,{padding:4,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:l("activity.panel.title")})}),r.error&&!r.events.length&&(0,v.jsx)(I.Zp,{padding:3,tone:"caution",children:(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(I.EY,{size:0,children:l("activity.panel.error")})})}),r.loading&&!r.events.length&&(0,v.jsx)(ry,{title:l("activity.panel.loading")}),(0,v.jsx)(NO,{releaseTitle:a.metadata.title||s("release.placeholder-untitled-release"),releaseId:a._id,events:r.events,hasMore:r.hasMore,loadMore:r.loadMore,isLoading:r.loading})]})})})}),i[0]=r,i[1]=a,i[2]=o,i[3]=l,i[4]=s,i[5]=t):t=i[5],i[6]!==t?(n=(0,v.jsx)(ia.N,{children:t}
1222),i[6]=t,i[7]=n):n=i[7],n}let NF=e=>{let t,n,i=(0,j.c)(5),{tone:r,icon:a}=e,o=`var(--card-badge-${r}-icon-color)`;i[0]!==o?(t={"--card-icon-color":o},i[0]=o,i[1]=t):t=i[1];let l=t;return i[2]!==a||i[3]!==l?(n=(0,v.jsx)(a,{style:l}),i[2]=a,i[3]=l,i[4]=n):n=i[4],n},NB=(0,eI.I4)(I.EY).withConfig({displayName:"TextWithToneStyle",componentId:"sc-sctq36-0"})`&:not([data-muted]){&[data-tone='default']{--card-fg-color:var(--card-badge-default-fg-color);}&[data-tone='primary']{--card-fg-color:var(--card-badge-primary-fg-color);}&[data-tone='positive']{--card-fg-color:var(--card-badge-positive-fg-color);}&[data-tone='caution']{--card-fg-color:var(--card-badge-caution-fg-color);}&[data-tone='critical']{--card-fg-color:var(--card-badge-critical-fg-color);}}&[data-dimmed]{opacity:0.3;}`,NY=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l=(0,j.c)(12);l[0]!==e?({tone:a,dimmed:n,muted:i,...r}=e,l[0]=e,l[1]=n,l[2]=i,l[3]=r,l[4]=a):(n=l[1],i=l[2],r=l[3],a=l[4]);let s=n?"":void 0,d=i?"":void 0;return l[5]!==i||l[6]!==t||l[7]!==r||l[8]!==s||l[9]!==d||l[10]!==a?(o=(0,v.jsx)(NB,{"data-ui":"TextWithTone","data-dimmed":s,"data-muted":d,"data-tone":a,muted:i,ref:t,...r}),l[5]=i,l[6]=t,l[7]=r,l[8]=s,l[9]=d,l[10]=a,l[11]=o):o=l[11],o}),NH="ReleasePermissions";function NU(){var e;let t,n,i=(0,j.c)(3),r=ca(),a=EY(EM);return i[0]!==a||i[1]!==r?(t=r.get({dependencies:[a],namespace:NH})||(e=a.enabled,{checkWithPermissionGuard:async(t,...i)=>{if(!e)return!0;if(void 0!==n[t.name])return n[t.name];try{return await t(...i,{dryRun:!0,skipCrossDatasetReferenceValidation:!0}),n={...n,[t.name]:!0},!0}catch(e){return n={...n,[t.name]:!1},!(Rk(e)&&e.details?.type==="insufficientPermissionsError")}},permissions:n={}}),r.set({namespace:NH,value:t,dependencies:[a]}),i[0]=a,i[1]=r,i[2]=t):t=i[2],t}let NZ={error:null,projectSubscriptions:null,isLoading:!0},Nq=new Map;function NW(e){return(0,eP.of)({isLoading:!1,projectSubscriptions:null,error:e})}function NJ(e){return{isLoading:!1,projectSubscriptions:e,error:null}}function NK(e){let t,n,i,r,a,o,l=(0,j.c)(17),{release:s}=e,{state:d}=s,{t:c}=as(RE),{projectSubscriptions:u}=function(){let e,t=(0,j.c)(3),n=el0(ob),{projectId:i}=_g();if(!Nq.get(i)){let e=(function({versionedClient:e}){return e.observable.request({uri:`/subscriptions/project/${e.config().projectId}`,tag:"project-subscriptions"})})({versionedClient:n}).pipe((0,e1.t)());Nq.set(i,e)}if(t[0]!==i){e:{let n=Nq.get(i);if(!n){let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,eP.of)({isLoading:!1,error:null,projectSubscriptions:null}),t[2]=n):n=t[2],e=n;break e}e=n.pipe((0,eV.T)(NJ),(0,tr.Z)(NZ),(0,eY.W)(NW))}t[0]=i,t[1]=e}else e=t[1];return(0,tF.J)(e,NZ)}(),p=u?.featureTypes.retention.features[0].attributes.maxRetentionDays,{utcToCurrentZoneDate:m}=ky(Rz);e:{let e;if(!p||!s?._updatedAt){t="";break e}if(l[0]!==s._updatedAt||l[1]!==p||l[2]!==m){let t=(0,nl.f)(new Date(s._updatedAt),p);e=(0,nn.GP)(m(t),"PP"),l[0]=s._updatedAt,l[1]=p,l[2]=m,l[3]=e}else e=l[3];t=e}let h=t;return l[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.YzR,{})}),l[4]=n):n=l[4],l[5]!==d||l[6]!==c?(i=c("archived"===d?"archive-info.title":"publish-info.title"),l[5]=d,l[6]=c,l[7]=i):i=l[7],l[8]!==i?(r=(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:i}),l[8]=i,l[9]=r):r=l[9],l[10]!==h||l[11]!==p||l[12]!==c?(a=p&&(0,v.jsx)(I.EY,{size:1,accent:!0,children:(0,v.jsx)(aE,{t:c,i18nKey:"archive-info.description",values:{retentionDays:p,removalDate:h||""},components:{Link:NG}})}),l[10]=h,l[11]=p,l[12]=c,l[13]=a):a=l[13],l[14]!==r||l[15]!==a?(o=(0,v.jsx)(I.Zp,{padding:4,radius:4,tone:"primary","data-testid":"retention-policy-card",children:(0,v.jsxs)(I.so,{gap:3,children:[n,(0,v.jsxs)(I.BJ,{space:4,children:[r,a]})]})}),l[14]=r,l[15]=a,l[16]=o):o=l[16],o}function NG(e){let{children:t}=e;return(0,v.jsx)("a",{href:"https://www.sanity.io/docs/user-guides/history-experience",target:"_blank",rel:"noreferrer",children:t})}function NX(e){let t,n,i,r,a=(0,j.c)(13),{release:o}=e,{updateRelease:l}=RI(),[s,d]=(0,_.useState)(void 0),{checkWithPermissionGuard:c}=NU(),[u,p]=(0,_.useState)(null);a[0]!==u||a[1]!==s||a[2]!==l?(t=e=>{clearTimeout(s),d(setTimeout(()=>{u&&l(e)},200))},a[0]=u,a[1]=s,a[2]=l,a[3]=t):t=a[3];let m=t,h=(0,_.useRef)(!1);a[4]!==c||a[5]!==o||a[6]!==l?(n=()=>(h.current=!0,RU(o)&&c(l,o).then(e=>{h.current&&p(e)}),()=>{h.current=!1}),i=[c,o,o._id,l],a[4]=c,a[5]=o,a[6]=l,a[7]=n,a[8]=i):(n=a[7],i=a[8]),(0,_.useEffect)(n,i);let f=o._id,g=!u;return a[9]!==m||a[10]!==o||a[11]!==g?(r=(0,v.jsx)(RZ,{release:o,onChange:m,disabled:g},f),a[9]=m,a[10]=o,a[11]=g,a[12]=r):r=a[12],r}let NQ=()=>{let e,t,n,i,r=(0,j.c)(9);r[0]===Symbol.for("react.memo_cache_sentinel")?(e={type:"contentReleases"},r[0]=e):e=r[0];let{timeZone:a,utcToCurrentZoneDate:o,getLocalTimeZone:l}=ky(e);r[1]!==l?(t=l(),r[1]=l,r[2]=t):t=r[2];let{abbreviation:s}=t;r[3]!==s||r[4]!==a.abbreviation?(n=()=>a.abbreviation===s?"":`(${a.abbreviation})`,r[3]=s,r[4]=a.abbreviation,r[5]=n):n=r[5];let d=n;return r[6]!==d||r[7]!==o?(i=e=>{let t=u_(e);return t?`${(0,nn.GP)(o(t),"PPpp")} ${d()}`:null},r[6]=d,r[7]=o,r[8]=i):i=r[8],i},N1=e=>!!("scheduled"===e.metadata.releaseType&&e.metadata.intendedPublishAt&&(0,ni.R)(new Date(e.metadata.intendedPublishAt))),N2=e=>{let t,n=(0,j.c)(7),{release:i}=e,{t:r}=as(),a=NQ(),{metadata:o}=i;if("asap"===o.releaseType){let e;return n[0]!==r?(e=r("release.type.asap"),n[0]=r,n[1]=e):e=n[1],e}if("undecided"===o.releaseType){let e;return n[2]!==r?(e=r("release.type.undecided"),n[2]=r,n[3]=e):e=n[3],e}return n[4]!==a||n[5]!==i?(t=a(i),n[4]=a,n[5]=i,n[6]=t):t=n[6],t},N5="PP HH:mm";function N0(e){let t,n,i,r,a=(0,j.c)(12),{setIsIntendedScheduleDateInPast:o,intendedPublishAt:l,setIntendedPublishAt:s}=e,{utcToCurrentZoneDate:d,zoneDateToUtc:c}=ky(Rz);a[0]!==l||a[1]!==d?(t=l&&d(l),a[0]=l,a[1]=d,a[2]=t):t=a[2];let u=t;a[3]!==s||a[4]!==o||a[5]!==c?(n=e=>{let t=c((0,t7.qg)(e.currentTarget.value,N5,new Date));(0,t0.f)(t)&&(o((0,nv.Y)(t,new Date)),s((0,nj.c)(t)))}
1222,a[3]=s,a[4]=o,a[5]=c,a[6]=n):n=a[6];let p=n;return a[7]!==u?(i=u?(0,nn.GP)(u,N5):void 0,a[7]=u,a[8]=i):i=a[8],a[9]!==p||a[10]!==i?(r=(0,v.jsx)(kN,{"data-testid":"date-input",value:i,onChange:p}),a[9]=p,a[10]=i,a[11]=r):r=a[11],r}function N7(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$,A,z,P,R,N,O,V=(0,j.c)(98),{release:M}=e,L=(0,_.useRef)(null),F=(0,_.useRef)(null),B=(0,_.useRef)(null),Y=(0,_.useRef)(null),{t:H}=as(RE),{t:U}=as(),{updateRelease:Z}=RI(),q=(0,T.dj)(),W=NQ(),[J,K]=(0,_.useState)(!1),[G,X]=(0,_.useState)(M.metadata.releaseType);V[0]!==M?(t=u_(M),V[0]=M,V[1]=t):t=V[1];let Q=t,[ee,et]=(0,_.useState)(!1);V[2]!==Q?(n=Q&&(0,nv.Y)(new Date(Q),new Date),V[2]=Q,V[3]=n):n=V[3];let[en,ei]=(0,_.useState)(n);V[4]!==Q?(i=Q?new Date(Q):void 0,V[4]=Q,V[5]=i):i=V[5];let[er,ea]=(0,_.useState)(i);V[6]!==er?(r=er?.toISOString(),V[6]=er,V[7]=r):r=V[7];let eo=r;V[8]!==U?(a=kK(U),V[8]=U,V[9]=a):a=V[9];let el=a;V[10]!==J||V[11]!==M||V[12]!==G||V[13]!==U||V[14]!==q||V[15]!==Z||V[16]!==eo?(o=()=>{let e=document.querySelector("#time-zone");if(J&&!e){let e={...M,metadata:{...M.metadata,releaseType:G,...typeof eo>"u"||"scheduled"!==G?{}:{intendedPublishAt:eo}}};(0,D.A)(e,M)||(N1(e)?(X(M.metadata.releaseType),ea(M.metadata.intendedPublishAt?new Date(M.metadata.intendedPublishAt):void 0),q.push({closable:!0,status:"warning",title:U("release.schedule-dialog.publish-date-in-past-warning")})):(et(!0),Z(e).finally(()=>{et(!1)}))),K(!1)}},V[10]=J,V[11]=M,V[12]=G,V[13]=U,V[14]=q,V[15]=Z,V[16]=eo,V[17]=o):o=V[17];let es=o;V[18]===Symbol.for("react.memo_cache_sentinel")?(l=()=>[L.current,F.current,B.current,Y.current],V[18]=l):l=V[18],(0,I.PR)(es,l);let ed=!!Q&&(0,nv.Y)(new Date(Q),new Date);V[19]!==M?(s=uT(M),V[19]=M,V[20]=s):s=V[20];let ec=s;e:{let e;if("published"===M.state){let e;if(ed&&Q){let e;V[21]!==W||V[22]!==M||V[23]!==H?(e=H("dashboard.details.published-on",{date:W(M)}),V[21]=W,V[22]=M,V[23]=H,V[24]=e):e=V[24],d=e;break e}V[25]!==H?(e=H("dashboard.details.published-asap"),V[25]=H,V[26]=e):e=V[26],d=e;break e}V[27]!==M?(e=(0,v.jsx)(N2,{release:M}),V[27]=M,V[28]=e):e=V[28],d=e}let eu=d;V[29]!==Q?(c=e=>{X(e),ea("scheduled"===e?Q??(0,nj.c)(new Date):Q??void 0),ei(!0)},V[29]=Q,V[30]=c):c=V[30];let ep=c;V[31]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{if(!e)return;let t=(0,nj.c)(new Date(e));ei((0,nv.Y)(t,new Date)),ea(t)},V[31]=u):u=V[31];let em=u;V[32]!==es||V[33]!==J?(p=()=>{J?es():K(!0)},V[32]=es,V[33]=J,V[34]=p):p=V[34];let eh=p;V[35]!==M?(m="published"===M.state?"positive":uA(M),V[35]=M,V[36]=m):m=V[36];let ef=m;t:{let e;if(ee){let e;V[37]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.y$,{size:1,"data-testid":"updating-release-spinner"}),V[37]=e):e=V[37],h=e;break t}if("published"===M.state){let e;V[38]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eT.VQ$,{}),V[38]=e):e=V[38],h=e;break t}V[39]!==ef?(e=(0,v.jsx)(RL,{tone:ef,padding:0}),V[39]=ef,V[40]=e):e=V[40],h=e}let eg=h;V[41]!==eu?(f=(0,v.jsx)(I.EY,{muted:!0,size:1,"data-testid":"release-type-label",weight:"medium",children:eu}),V[41]=eu,V[42]=f):f=V[42],V[43]!==ec?(g=ec&&(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.XAi,{})}),V[43]=ec,V[44]=g):g=V[44],V[45]!==eg||V[46]!==f||V[47]!==g?(y=(0,v.jsxs)(I.so,{flex:1,gap:2,align:"center",children:[eg,f,g]}),V[45]=eg,V[46]=f,V[47]=g,V[48]=y):y=V[48];let ey=y;V[49]!==ep?(C=()=>ep("asap"),V[49]=ep,V[50]=C):C=V[50],V[51]!==U?(x=U("release.type.asap"),V[51]=U,V[52]=x):x=V[52];let eC="asap"===G;V[53]!==C||V[54]!==x||V[55]!==eC?(b=(0,v.jsx)(tL.oz,{"aria-controls":"release-timing-asap",id:"release-timing-asap-tab",onClick:C,label:x,selected:eC}),V[53]=C,V[54]=x,V[55]=eC,V[56]=b):b=V[56],V[57]!==ep?(w=()=>
1222ep("scheduled"),V[57]=ep,V[58]=w):w=V[58];let ex="scheduled"===G;V[59]!==U?(k=U("release.type.scheduled"),V[59]=U,V[60]=k):k=V[60],V[61]!==w||V[62]!==ex||V[63]!==k?(S=(0,v.jsx)(tL.oz,{"aria-controls":"release-timing-at-time",id:"release-timing-at-time-tab",onClick:w,selected:ex,label:k}),V[61]=w,V[62]=ex,V[63]=k,V[64]=S):S=V[64],V[65]!==ep?(E=()=>ep("undecided"),V[65]=ep,V[66]=E):E=V[66];let eb="undecided"===G;return V[67]!==U?($=U("release.type.undecided"),V[67]=U,V[68]=$):$=V[68],V[69]!==E||V[70]!==eb||V[71]!==$?(A=(0,v.jsx)(tL.oz,{"aria-controls":"release-timing-undecided",id:"release-timing-undecided-tab",onClick:E,selected:eb,label:$}),V[69]=E,V[70]=eb,V[71]=$,V[72]=A):A=V[72],V[73]!==b||V[74]!==S||V[75]!==A?(z=(0,v.jsxs)(I.wb,{space:.5,children:[b,S,A]}),V[73]=b,V[74]=S,V[75]=A,V[76]=z):z=V[76],V[77]!==el||V[78]!==er||V[79]!==en||V[80]!==G||V[81]!==U?(P="scheduled"===G&&(0,v.jsxs)(v.Fragment,{children:[en&&(0,v.jsx)(I.Zp,{margin:1,padding:2,radius:2,shadow:1,tone:"critical",children:(0,v.jsx)(I.EY,{size:1,children:U("release.schedule-dialog.publish-date-in-past-warning")})}),(0,v.jsx)(N0,{setIsIntendedScheduleDateInPast:ei,setIntendedPublishAt:ea,intendedPublishAt:er}),(0,v.jsx)(kU,{ref:Y,monthPickerVariant:kV,calendarLabels:el,selectTime:!0,padding:0,value:er,onChange:em,isPastDisabled:!0,showTimeZone:!0,timeZoneScope:Rz})]}),V[77]=el,V[78]=er,V[79]=en,V[80]=G,V[81]=U,V[82]=P):P=V[82],V[83]!==z||V[84]!==P?(R=(0,v.jsxs)(I.BJ,{space:1,children:[z,P]}),V[83]=z,V[84]=P,V[85]=R):R=V[85],V[86]!==eh||V[87]!==ec||V[88]!==ey||V[89]!==J||V[90]!==M.state||V[91]!==H||V[92]!==ef?(N="published"===M.state?(0,v.jsx)(I.Zp,{tone:"default","data-testid":"published-release-type-label",padding:2,style:{borderRadius:"999px"},children:ey}):(0,v.jsx)(tL.$n,{disabled:ec,mode:"bleed",onClick:eh,ref:F,tooltipProps:{placement:"bottom",content:ec&&H("type-picker.tooltip.scheduled")},selected:J,tone:ef,style:{borderRadius:"999px"},"data-testid":"release-type-picker",children:ey}),V[86]=eh,V[87]=ec,V[88]=ey,V[89]=J,V[90]=M.state,V[91]=H,V[92]=ef,V[93]=N):N=V[93],V[94]!==J||V[95]!==R||V[96]!==N?(O=(0,v.jsx)(tL.AM,{content:R,open:J,padding:1,placement:"bottom-start",ref:L,children:N}),V[94]=J,V[95]=R,V[96]=N,V[97]=O):O=V[97],O}let N3=e=>e*Math.PI/180;function N8(e){let t,n,i,r,a,o,l=(0,j.c)(11);if(l[0]!==e?({progress:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t){let e=function(e,t,n,i,r){let a=r-i;if(0===a)return[];let o=4.5*Math.cos(i)+12.5,l=4.5*Math.sin(i)+12.5,s=4.5*Math.cos(r)+12.5,d=4.5*Math.sin(r)+12.5;return[["M",o,l],["A",4.5,4.5,0,Math.abs(a)<=Math.PI?"0":"1",a<0?"0":"1",s,d]]}(12.5,12.5,4.5,N3(-90),N3(360*t-90));i=e.length>0?`${e.map(N4).join(" ")} L 12.5 12.5 Z`:void 0,l[3]=t,l[4]=i}else i=l[4];let s=i;return l[5]!==s?(r=s&&(0,v.jsx)("path",{d:s,fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),l[5]=s,l[6]=r):r=l[6],l[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)("path",{d:"M12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5C8.08172 4.5 4.5 8.08172 4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),l[7]=a):a=l[7],l[8]!==n||l[9]!==r?(o=(0,v.jsxs)("svg",{"data-sanity-icon":"progress-50",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[r,a]}),l[8]=n,l[9]=r,l[10]=o):o=l[10],o}function N4(e){return e.join(" ")}function N6(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(34),{documents:f,layout:g}=e,y=f.length;h[0]!==f?(u=!1,p=!1,m=0,f.forEach(e=>{if(v5(e.document))m+=1;else{let t=!e.validation.isValidating;u=u||e.validation.hasError,p=p||e.validation.isValidating,t&&(m+=1)}}),t={hasError:u,isValidating:p,validatedCount:m},h[0]=f,h[1]=t):t=h[1];let{validatedCount:C,isValidating:x,hasError:b}=t,[w,k]=(0,_.useState)(!1),[S,T]=(0,_.useState)(!1),{t:E}=as(RE),$=C===y&&0!==C,A="minimal"===(void 0===g?"default":g)||S;if(h[2]!==$?(n=()=>{if($){let e=setTimeout(()=>{k(!0),T(!0)},2500);return()=>clearTimeout(e)}},h[2]=$,h[3]=n):n=h[3],h[4]!==$||h[5]!==w?(i=[$,w],h[4]=$,h[5]=w,h[6]=i):i=h[6],(0,_.useEffect)(n,i),h[7]!==x?(r=()=>{x&&k(!1)},a=[x],h[7]=x,h[8]=r,h[9]=a):(r=h[8],a=h[9]),(0,_.useEffect)(r,a),!$&&!x)return null;let D=x?"neutral":$&&w&&!b?"transparent":b?"critical":"positive",z=$&&w&&!b?"transparent":void 0,P=2*!A;return h[10]!==z?(o={background:z},h[10]=z,h[11]=o):o=h[11],h[12]!==b||h[13]!==x||h[14]!==E||h[15]!==y||h[16]!==C?(l=(0,v.jsx)(I.EY,{size:1,children:x?(0,v.jsx)(N8,{progress:C/y}):(0,v.jsx)(tL.m_,{content:E(b?"summary.errors-found":"summary.all-documents-vali
1222dated"),children:b?(0,v.jsx)(eT.YZv,{}):(0,v.jsx)(eT.Dee,{})})}),h[12]=b,h[13]=x,h[14]=E,h[15]=y,h[16]=C,h[17]=l):l=h[17],h[18]!==b||h[19]!==A||h[20]!==x||h[21]!==w||h[22]!==E||h[23]!==y||h[24]!==C?(s=!w&&!A&&(0,v.jsx)(I.EY,{muted:!0,size:1,children:x?E("summary.validating-documents",{validatedCount:C,totalCount:y}):E(b?"summary.all-documents-errors-found":"summary.all-documents-validated")}),h[18]=b,h[19]=A,h[20]=x,h[21]=w,h[22]=E,h[23]=y,h[24]=C,h[25]=s):s=h[25],h[26]!==s||h[27]!==l?(d=(0,v.jsxs)(I.so,{gap:2,children:[l,s]}),h[26]=s,h[27]=l,h[28]=d):d=h[28],h[29]!==d||h[30]!==P||h[31]!==o||h[32]!==D?(c=(0,v.jsx)(I.Zp,{padding:P,radius:"full",tone:D,style:o,children:d}),h[29]=d,h[30]=P,h[31]=o,h[32]=D,h[33]=c):c=h[33],c}function N9(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(62),{release:x,documents:b}=e,{state:w}=x;C[0]!==x._id?(t=cN(x._id),C[0]=x._id,C[1]=t):t=C[1];let k=t,{checkWithPermissionGuard:S}=NU(),{publishRelease:T,schedule:E}=RI(),{t:$}=as(RE),{t:A}=as(),{selectedReleaseId:D}=a3(),z=Rj(),P=k===D;C[2]!==x.metadata.title||C[3]!==A?(n=x.metadata.title||A("release.placeholder-untitled-release"),C[2]=x.metadata.title,C[3]=A,C[4]=n):n=C[4];let R=n,N=x?.metadata?.releaseType==="scheduled",O="archived"!==w&&"published"!==w,V="active"===x.state,M=V&&"u">typeof x.error,[L,F]=(0,_.useState)(!1),B=V&&L,Y=(0,_.useRef)(!1),{document:H}=cY(),{drafts:U}=H,{enabled:Z}=U;C[5]!==S||C[6]!==V||C[7]!==N||C[8]!==T||C[9]!==x._id||C[10]!==x.metadata.intendedPublishAt||C[11]!==E?(i=()=>(Y.current=!0,V&&(S(T,x._id).then(e=>(Y.current&&F(!e),null)),x.metadata.intendedPublishAt&&N&&S(E,x._id,new Date).then(e=>(Y.current&&F(!e),null))),()=>{Y.current=!1}),r=[S,V,N,T,x._id,x.metadata.intendedPublishAt,E],C[5]=S,C[6]=V,C[7]=N,C[8]=T,C[9]=x._id,C[10]=x.metadata.intendedPublishAt,C[11]=E,C[12]=i,C[13]=r):(i=C[12],r=C[13]),(0,_.useEffect)(i,r),C[14]!==Z||C[15]!==P||C[16]!==k||C[17]!==z?(a=()=>{z(P?Z?"drafts":"published":k)},C[14]=Z,C[15]=P,C[16]=k,C[17]=z,C[18]=a):a=C[18];let q=a;return C[19]===Symbol.for("react.memo_cache_sentinel")?(o=[3,3,4,5],C[19]=o):o=C[19],C[20]!==q||C[21]!==O||C[22]!==P||C[23]!==R||C[24]!==$?(l=O&&(0,v.jsx)(tL.$n,{icon:P?eT.loS:eT.tsw,tooltipProps:{placement:"top",content:$(P?"dashboard.details.unpin-release":"dashboard.details.pin-release")},mode:"bleed",onClick:q,radius:"full",selected:P,"aria-label":P?`${$("dashboard.details.unpin-release")}: "${R}"`:`${$("dashboard.details.pin-release")}: "${R}"`,"aria-live":"assertive"}),C[20]=q,C[21]=O,C[22]=P,C[23]=R,C[24]=$,C[25]=l):l=C[25],C[26]!==x?(s="archived"!==x.state&&(0,v.jsx)(N7,{release:x}),C[26]=x,C[27]=s):s=C[27],C[28]!==b?(d=(0,v.jsx)(N6,{documents:b}),C[28]=b,C[29]=d):d=C[29],C[30]!==N||C[31]!==M||C[32]!==$?(c=M&&(0,v.jsxs)(I.so,{gap:2,padding:2,"data-testid":"release-error-details",children:[(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(NF,{icon:eT.YZv,tone:"critical"})}),(0,v.jsx)(NY,{size:1,tone:"critical",children:$(N?"failed-schedule-title":"failed-publish-title")})]}),C[30]=N,C[31]=M,C[32]=$,C[33]=c):c=C[33],C[34]!==B||C[35]!==$?(u=B&&(0,v.jsxs)(I.so,{gap:2,padding:2,"data-testid":"release-permission-error-details",children:[(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(NF,{icon:eT.sAQ,tone:"caution"})}),(0,v.jsx)(NY,{size:1,tone:"caution",children:$("permission-missing-title")})]}),C[34]=B,C[35]=$,C[36]=u):u=C[36],C[37]!==d||C[38]!==c||C[39]!==u||C[40]!==l||C[41]!==s?(p=(0,v.jsxs)(I.so,{gap:1,align:"center",children:[l,s,d,c,u]}),C[37]=d,C[38]=c,C[39]=u,C[40]=l,C[41]=s,C[42]=p):p=C[42],C[43]!==x?(m=(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(NX,{release:x})}),C[43]=x,C[44]=m):m=C[44],C[45]!==N||C[46]!==x.error?.message||C[47]!==M||C[48]!==$?(h=M&&(0,v.jsx)(I.Zp,{padding:4,radius:4,tone:"critical",children:(0,v.jsxs)(I.so,{gap:3,children:[(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.YZv,{})}),(0,v.jsxs)(I.BJ,{space:4,children:[(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:$(N?"failed-schedule-title":"failed-publish-title")}),(0,v.jsx)(yl,{title:$("error-details-title"),children:(0,v.jsx)(I.EY,{size:1,accent:!0,children:(0,v.jsx)("code",{children:x.error?.message})})})]})]})}),C[45]=N,C[46]=x.error?.message,C[47]=M,C[48]=$,C[49]=h):h=C[49],C[50]!==B||C[51]!==$?(f=B&&(0,v.jsx)(I.Zp,{padding:4,radius:4,tone:"caution",children:(0,v.jsxs)(I.so,{gap:3,children:[(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.sAQ,{})}),(0,v.jsxs)(I.BJ,{space:3,children:[(0,v.jsx)(I.EY,{size:1,children:$("permission-m
1222issing-title")}),(0,v.jsx)(I.EY,{size:1,muted:!0,children:$("permission-missing-description")})]})]})}),C[50]=B,C[51]=$,C[52]=f):f=C[52],C[53]!==O||C[54]!==x?(g=!O&&(0,v.jsx)(NK,{release:x}),C[53]=O,C[54]=x,C[55]=g):g=C[55],C[56]!==p||C[57]!==m||C[58]!==h||C[59]!==f||C[60]!==g?(y=(0,v.jsx)(I.mc,{width:3,children:(0,v.jsxs)(I.BJ,{padding:3,paddingY:o,children:[p,m,h,f,g]})}),C[56]=p,C[57]=m,C[58]=h,C[59]=f,C[60]=g,C[61]=y):y=C[61],y}let Oe=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(85),{release:f,documents:g,disabled:y,isMenuItem:C,onConfirmDialogOpen:x,onConfirmDialogClose:b}=e,w=void 0!==C&&C,k=(0,T.dj)(),{publishRelease:S}=RI(),{checkWithPermissionGuard:E}=NU(),{t:$}=as(RE),{t:A}=as(),D=a3(),z=Rj(),P=(0,tK.Jr)(),{document:R}=cY(),{drafts:N}=R,{enabled:O}=N,[V,M]=(0,_.useState)("idle"),[L,F]=(0,_.useState)(!1);h[0]!==g?(t=g.some(Ot),h[0]=g,h[1]=t):t=h[1];let B=t;h[2]!==g?(n=g.some(On),h[2]=g,h[3]=n):n=h[3];let Y=n,H=y||B||Y||!L,U=(0,_.useRef)(!1);h[4]!==E||h[5]!==S||h[6]!==f._id?(i=()=>(U.current=!0,E(S,f._id).then(e=>{U.current&&F(e)}),()=>{U.current=!1}),h[4]=E,h[5]=S,h[6]=f._id,h[7]=i):i=h[7],h[8]!==E||h[9]!==S||h[10]!==f._id||h[11]!==f.metadata.intendedPublishAt?(r=[E,S,f._id,f.metadata.intendedPublishAt],h[8]=E,h[9]=S,h[10]=f._id,h[11]=f.metadata.intendedPublishAt,h[12]=r):r=h[12],(0,_.useEffect)(i,r),h[13]!==O||h[14]!==b||h[15]!==D.selectedPerspective||h[16]!==S||h[17]!==f||h[18]!==z||h[19]!==$||h[20]!==A||h[21]!==P||h[22]!==k?(a=async()=>{if(!f)return;let e=async()=>{M("publishing"),await S(f._id),P.log(aJ),rG(D.selectedPerspective)&&D.selectedPerspective?._id===f._id&&z(O?"drafts":"published")};try{await e()}catch(e){k.push({status:"error",title:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:$,i18nKey:"toast.publish.error",values:{title:f.metadata.title||A("release.placeholder-untitled-release"),error:e.message}})})}),console.error(e)}b?.(),M("idle")},h[13]=O,h[14]=b,h[15]=D.selectedPerspective,h[16]=S,h[17]=f,h[18]=z,h[19]=$,h[20]=A,h[21]=P,h[22]=k,h[23]=a):a=h[23];let Z=a;e:{let e,t,n,i,r,a,l,s;if("idle"===V){o=null;break e}h[24]!==$?(e=$("publish-dialog.confirm-publish.title"),h[24]=$,h[25]=e):e=h[25],h[26]!==b?(t=()=>{b?.(),M("idle")},h[26]=b,h[27]=t):t=h[27],h[28]!==$?(n=$("action.publish-all-documents"),h[28]=$,h[29]=n):n=h[29];let d="publishing"===V,c="publishing"===V;h[30]!==Z||h[31]!==n||h[32]!==d||h[33]!==c?(i={confirmButton:{text:n,tone:"positive",onClick:Z,loading:d,disabled:c}},h[30]=Z,h[31]=n,h[32]=d,h[33]=c,h[34]=i):i=h[34],h[35]!==f.metadata.title||h[36]!==A?(r=f.metadata.title||A("release.placeholder-untitled-release"),h[35]=f.metadata.title,h[36]=A,h[37]=r):r=h[37],h[38]!==g.length||h[39]!==r?(a={title:r,releaseDocumentsLength:g.length,count:g.length},h[38]=g.length,h[39]=r,h[40]=a):a=h[40],h[41]!==$||h[42]!==a?(l=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:$,i18nKey:"publish-dialog.confirm-publish-description",values:a})}),h[41]=$,h[42]=a,h[43]=l):l=h[43],h[44]!==t||h[45]!==i||h[46]!==l||h[47]!==e?(s=(0,v.jsx)(tL.lG,{id:"confirm-publish-dialog","data-testid":"confirm-publish-dialog",header:e,onClose:t,footer:i,children:l}),h[44]=t,h[45]=i,h[46]=l,h[47]=e,h[48]=s):s=h[48],o=s}let q=o;t:{let e,t,n,i;if(!Y&&!B&&L){l=null;break t}h[49]!==g.length||h[50]!==Y||h[51]!==B||h[52]!==L||h[53]!==$?(e=()=>0===g.length?$("publish-action.validation.no-documents"):L?B?$("publish-dialog.validation.loading"):Y?$("publish-dialog.validation.error"):null:$("publish-dialog.validation.no-permission"),h[49]=g.length,h[50]=Y,h[51]=B,h[52]=L,h[53]=$,h[54]=e):e=h[54];let r=e,a=B?"default":"critical";h[55]!==a?(t=(0,v.jsx)(NF,{icon:eT.YZv,tone:a}),h[55]=a,h[56]=t):t=h[56],h[57]!==r?(n=r(),h[57]=r,h[58]=n):n=h[58],h[59]!==t||h[60]!==n?(i=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsxs)(I.so,{align:"center",gap:3,padding:1,children:[t,n]})}),h[59]=t,h[60]=n,h[61]=i):i=h[61],l=i}let W=l;h[62]!==x?(s=()=>{M("confirm"),x?.()},h[62]=x,h[63]=s):s=h[63];let J=s,K=H||"publishing"===V||0===g.length;h[64]!==$?(d=$("action.publish-all-documents"),h[64]=$,h[65]=d):d=h[65];let G=!H;h[66]!==W||h[67]!==G?(c={disabled:G,content:W,placement:"bottom"},h[66]=W,h[67]=G,h[68]=c):c=h[68];let X=c;h[69]!==J||h[70]!==K||h[71]!==d||h[72]!==X?(u={icon:eT.VQ$,disabled:K,text:d,handleOnClick:J,tooltipProps:X},h[69]=J,h[70]=K,h[71]=d,h[72]=X,h[73]=u):u=h[73];let Q=u;return h[74]!==w||h[75]!==V||h[76]!==Q.disabled||h[77]!==Q.handleOnClick||h[78]!==Q.icon||h[79]!==Q.text||h[80]!==Q.tooltipProps?(p=w?(0,v.jsx)(tL.Dr,{tooltipProps:Q.tooltipProps,icon:Q.icon,disabled:Q.disabled,text:Q.text,onClick:Q.handleOnClick,"data-testid":"publish-all-button-menu-item"}):(0,v.jsx)(tL.$n,{tooltipProps:Q.tooltipProps,icon:Q.icon,disabled:Q.disabled,text:Q.text,onClick:Q.handleOnClick,loading:"publishing"===V,"data-testid":"publish-all-button",tone:"positive"}),h[74]=w,h[75]=V,h[76]=Q.disabled,h[77]=Q.handleOnClick,h[78]=Q.icon,h[79]=Q.text,h[80]=Q.tooltipProps,h[81]=p):p=h[81],h[82]!==q||h[83]!==p?(m=(0,v.jsxs)(v.Fragment,{children:[p,q]}),h[82]=q,h[83]=p,h[84]=m):m=h[84],m};function Ot(e){let{validation:t}=e;return t.isValidating}function On(e){let{validation:t}=e;return t.hasError}function Oi(e){let{document:t}=e;return{...t,_id:(0,tG.IM)(t._id)}}function Or(e){return e._id}function Oa(e){let{documents:t}=e,[n]=t;return n}function Oo(e){return void 0!==e}function Ol(e){return e?.filter(Oo)}function Os(e){return console.error("Error in document revert states pipeline:",e),(0,eP.of)(void 0)}function Od(e){let{document:t}=e;return(0,tG.IM)(t._id)}function Oc(e){return e.length>1}function Ou(){return(0,eP.of)(null)}let Op=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(56),{revertReleaseStatus:x,documents:b,setRevertReleaseStatus:w,release:k}=e,{t:S}=as(RE),{t:E}=as();
1222C[0]!==k.metadata.title||C[1]!==E?(t=k.metadata.title||E("release.placeholder-untitled-release"),C[0]=k.metadata.title,C[1]=E,C[2]=t):t=C[2];let $=t,A=(e=>{let t,n=(0,j.c)(5),i=el0(ll),r=e[0]?.document._rev;e:{let a;if(!e.length){let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)(!1),n[0]=e):e=n[0],t=e;break e}n[1]!==i||n[2]!==e||n[3]!==r?(a=(0,eL.H)(cK(i,e.map(Od),{fromTransaction:r,limit:2})).pipe((0,eV.T)(Oc),(0,eY.W)(Ou)),n[1]=i,n[2]=e,n[3]=r,n[4]=a):a=n[4],t=a}return(0,tF.J)(t,null)})(b),D=(e=>{let t,n,i,r,a,o,l,s=(0,j.c)(15),d=el0(ll),c=d.observable,u=e[0]?.document._rev;s[0]!==d?(t=d.config(),s[0]=d,s[1]=t):t=s[1];let{dataset:p}=t,m=(0,_.useRef)(null),h=(0,_.useRef)(null),f=(0,_.useRef)(null);s[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{if(!m.current){let{promise:e,resolve:t}=Promise.withResolvers();m.current=e,h.current=t}},i=[],s[2]=n,s[3]=i):(n=s[2],i=s[3]),(0,_.useEffect)(n,i);e:{let t;if(!e.length){let e;s[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)(void 0),s[4]=e):e=s[4],r=e;break e}if(s[5]!==d||s[6]!==p||s[7]!==c||s[8]!==e||s[9]!==u){let n=e.map(Oi);t=(0,eL.H)(cK(d,n.map(Or),{toTransaction:u,reverse:!0})).pipe((0,eV.T)(e=>n.map(t=>{let n;return{docId:t._id,revisionId:(n=t._id,e.find(e=>{let{documentIDs:t}=e;return t.includes(n)})?.id)}})),(0,eM.n)(e=>e?(0,tg.p)(e.map(e=>{let{docId:t,revisionId:i}=e;if(!i){let{publishedDocumentExists:e,...i}=n.find(e=>e._id===t)||{};return(0,eP.of)({...i,_system:{delete:!0}})}return c.request({url:`/data/history/${p}/documents/${t}?revision=${i}`}).pipe((0,eV.T)(Oa),(0,eY.W)(e=>(console.error(`Error fetching document ${t}:`,e),(0,eP.of)(void 0))))})):(0,eP.of)(void 0)),(0,eV.T)(Ol),(0,eY.W)(Os)),s[5]=d,s[6]=p,s[7]=c,s[8]=e,s[9]=u,s[10]=t}else t=s[10];r=t}let g=(0,tF.J)(r,null);return s[11]!==g?(a=()=>{null!==g&&(f.current=g,h.current&&(h.current(g),h.current=null,m.current=null))},o=[g],s[11]=g,s[12]=a,s[13]=o):(a=s[12],o=s[13]),(0,_.useEffect)(a,o),s[14]===Symbol.for("react.memo_cache_sentinel")?(l=()=>f.current?Promise.resolve(f.current):m.current,s[14]=l):l=s[14],l})(b),[z,P]=(0,_.useState)(!0),R=(0,T.dj)(),N=(0,tK.Jr)(),{revertRelease:O}=RI(),V=(0,nU.rd)();C[3]!==V?(n=e=>()=>V.navigate({releaseId:cN(e)}),C[3]=V,C[4]=n):n=C[4];let M=n;C[5]!==D||C[6]!==M||C[7]!==$||C[8]!==O||C[9]!==w||C[10]!==z||C[11]!==S||C[12]!==N||C[13]!==R?(i=async()=>{w("reverting");let e=await D(),t=uw();await (async()=>{if(!e)throw Error("Unable to find documents to revert");await O(t,e,{title:S("revert-release.title",{title:$}),description:S("revert-release.description",{title:$}),releaseType:"asap"},z?"staged":"immediate"),z?(N.log(a1,{revertType:"staged"}),R.push({closable:!0,status:"success",title:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{components:{Link:()=>(0,v.jsx)(I.EY,{size:1,weight:"medium","data-as":"a",onClick:M(t),style:{cursor:"pointer",marginBottom:"0.5rem",display:"flex"},"data-testid":"revert-stage-success-link",children:S("toast.revert-stage.success-link")})},t:S,i18nKey:"toast.revert-stage.success",values:{title:$}})})})):(N.log(a1,{revertType:"immediate"}),R.push({closable:!0,status:"success",title:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:S,i18nKey:"toast.immediate-revert.success",values:{title:$}})})}))})().catch(e=>{RS(e)||(R.push({status:"error",title:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:S,i18nKey:"toast.revert.error",values:{error:e.message}})})}),console.error(e))}).finally(()=>{w("idle")})},C[5]=D,C[6]=M,C[7]=$,C[8]=O,C[9]=w,C[10]=z,C[11]=S,C[12]=N,C[13]=R,C[14]=i):i=C[14];let L=i,F=b.length>1?"revert-dialog.confirm-revert-description_other":"revert-dialog.confirm-revert-description_one";C[15]!==$||C[16]!==S?(r=S("revert-dialog.confirm-revert.title",{title:$}),C[15]=$,C[16]=S,C[17]=r):r=C[17],C[18]!==w?(a=()=>w("idle"),C[18]=w,C[19]=a):a=C[19];let B=z?"action.create-revert-release":"action.immediate-revert-release";C[20]!==S||C[21]!==B?(o=S(B),C[20]=S,C[21]=B,C[22]=o):o=C[22];let Y="reverting"===x,H="reverting"===x;C[23]!==L||C[24]!==o||C[25]!==Y||C[26]!==H?(l={confirmButton:{text:o,tone:"positive",onClick:L,loading:Y,disabled:H}},C[23]=L,C[24]=o,C[25]=Y,C[26]=H,C[27]=l):l=C[27],C[28]!==b.length?(s={releaseDocumentsLength:b.length},C[28]=b.length,C[29]=s):s=C[29],C[30]!==F||C[31]!==S||C[32]!==s?(d=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:S,i18nKey:F,values:s})}),C[30]=F,C[31]=S,C[32]=s,C[33]=d):d=C[33],C[34]===Symbol.for("react.memo_cache_sentinel")?(c=()=>P(Oh),C[34]=c):c=C[34],C[35]===Symbol.for("react.memo_cache_sentinel")?(u={display:"block"},C[35]=u):u=C[35];let U=!z;return C[36]!==U?(p=(0,v.jsx)(I.Sc,{onChange:c,id:"immediate-revert-release",style:u,checked:U}
1222),C[36]=U,C[37]=p):p=C[37],C[38]!==S?(m=S("revert-dialog.confirm-revert.stage-revert-checkbox-label"),C[38]=S,C[39]=m):m=C[39],C[40]!==m?(h=(0,v.jsx)(I.az,{flex:1,paddingLeft:3,children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)("label",{htmlFor:"immediate-revert-release",children:m})})}),C[40]=m,C[41]=h):h=C[41],C[42]!==p||C[43]!==h?(f=(0,v.jsxs)(I.so,{align:"center",paddingTop:4,children:[p,h]}),C[42]=p,C[43]=h,C[44]=f):f=C[44],C[45]!==A||C[46]!==z||C[47]!==S?(g=A&&!z&&(0,v.jsx)(I.Zp,{marginTop:4,padding:3,radius:2,shadow:1,tone:"critical",children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:S("revert-dialog.confirm-revert.warning-card")})}),C[45]=A,C[46]=z,C[47]=S,C[48]=g):g=C[48],C[49]!==l||C[50]!==d||C[51]!==f||C[52]!==g||C[53]!==r||C[54]!==a?(y=(0,v.jsxs)(tL.lG,{id:"confirm-revert-dialog",header:r,onClose:a,footer:l,children:[d,f,g]}),C[49]=l,C[50]=d,C[51]=f,C[52]=g,C[53]=r,C[54]=a,C[55]=y):y=C[55],y},Om=e=>{let t,n,i,r,a,o,l,s,d,c=(0,j.c)(25),{release:u,documents:p,disabled:m}=e,{t:h}=as(RE),{t:f}=as(),{guardWithReleaseLimitUpsell:g}=Rw(),[y,C]=(0,_.useState)("idle"),[x,b]=(0,_.useState)(!1),{createRelease:w}=RI(),{checkWithPermissionGuard:k}=NU(),[S,I]=(0,_.useState)(null);c[0]!==g?(t=async()=>{b(!0),await g(()=>C("confirm")),b(!1)},c[0]=g,c[1]=t):t=c[1];let T=t,E=(0,_.useRef)(!1);c[2]!==k||c[3]!==w?(n=()=>(E.current=!0,k(w,uE()).then(e=>{E.current&&I(e)}),()=>{E.current=!1}),i=[k,w],c[2]=k,c[3]=w,c[4]=n,c[5]=i):(n=c[4],i=c[5]),(0,_.useEffect)(n,i),c[6]!==h?(r=h("action.revert"),c[6]=h,c[7]=r):r=c[7];let $=!0===S;c[8]!==f?(a=f("release.action.permission.error"),c[8]=f,c[9]=a):a=c[9],c[10]!==$||c[11]!==a?(o={disabled:$,content:a},c[10]=$,c[11]=a,c[12]=o):o=c[12];let A=x||!S||m;return c[13]!==T||c[14]!==r||c[15]!==o||c[16]!==A?(l=(0,v.jsx)(tL.$n,{icon:eT.G2W,onClick:T,text:r,tone:"critical",tooltipProps:o,disabled:A,"data-testid":"revert-button"}),c[13]=T,c[14]=r,c[15]=o,c[16]=A,c[17]=l):l=c[17],c[18]!==p||c[19]!==u||c[20]!==y?(s="idle"!==y&&(0,v.jsx)(Op,{release:u,documents:p,revertReleaseStatus:y,setRevertReleaseStatus:C}),c[18]=p,c[19]=u,c[20]=y,c[21]=s):s=c[21],c[22]!==s||c[23]!==l?(d=(0,v.jsxs)(v.Fragment,{children:[l,s]}),c[22]=s,c[23]=l,c[24]=d):d=c[24],d};function Oh(e){return!e}let Of=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k=(0,j.c)(143),{release:S,disabled:E,documents:$,isMenuItem:A,onConfirmDialogOpen:z,onConfirmDialogClose:P}=e,R=void 0!==A&&A,N=(0,T.dj)(),{schedule:O,updateRelease:V}=RI(),{checkWithPermissionGuard:M}=NU(),[L,F]=(0,_.useState)(!1),{t:B}=as(RE),{t:Y}=as(),H=(0,tK.Jr)(),{utcToCurrentZoneDate:U,zoneDateToUtc:Z,timeZone:q}=ky(Rz),[W,J]=(0,_.useState)("idle"),[K,G]=(0,_.useState)(),[X,Q]=(0,_.useState)(0);k[0]!==K||k[1]!==U?(t=K?U(K):void 0,k[0]=K,k[1]=U,k[2]=t):t=k[2];let ee=t;k[3]!==$?(n=$.some(Og),k[3]=$,k[4]=n):n=k[4];let et=n;k[5]!==$?(i=$.some(Oy),k[5]=$,k[6]=i):i=k[6];let en=i,ei=(0,_.useRef)(!1);k[7]!==M||k[8]!==S._id||k[9]!==O?(r=()=>(ei.current=!0,M(O,S._id,new Date).then(e=>{ei.current&&F(e)}),()=>{ei.current=!1}),k[7]=M,k[8]=S._id,k[9]=O,k[10]=r):r=k[10],k[11]!==M||k[12]!==S._id||k[13]!==S.metadata.intendedPublishAt||k[14]!==O?(a=[M,S._id,S.metadata.intendedPublishAt,O],k[11]=M,k[12]=S._id,k[13]=S.metadata.intendedPublishAt,k[14]=O,k[15]=a):a=k[15],(0,_.useEffect)(r,a),k[16]!==K||k[17]!==Z?(o=()=>(0,nv.Y)(Z(K||new Date),new Date),k[16]=K,k[17]=Z,k[18]=o):o=k[18];let er=o;k[19]!==R||k[20]!==er||k[21]!==P||k[22]!==K||k[23]!==S||k[24]!==O||k[25]!==B||k[26]!==Y||k[27]!==H||k[28]!==N||k[29]!==V?(l=async()=>{if(!K)return;if(R){let e={...S,metadata:{...S.metadata,releaseType:"scheduled",intendedPublishAt:K.toISOString()}};(0,D.A)(e,S)||V(e)}if(er())return void Q(OC);let e=async()=>{J("scheduling"),await O(S._id,K),H.log(aK),N.push({closable:!0,status:"info",title:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:B,i18nKey:"toast.schedule.success",values:{title:S.metadata.title||Y("release.placeholder-untitled-release")}})})})};try{await e()}catch(e){N.push({status:"error",title:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:B,i18nKey:"toast.schedule.error",values:{title:S.metadata.title||Y("release.placeholder-untitled-release"),error:e.message}})})}),console.error(e)}P?.(),J("idle")},k[19]=R,k[20]=er,k[21]=P,k[22]=K,k[23]=S,k[24]=O,k[25]=B,k[26]=Y,k[27]=H,k[28]=N,k[29]=V,k[30]=l):l=k[30];let ea=l;k[31]!==Y?(s=kK(Y),k[31]=Y,k[32]=s):s=k[32];let eo=s;k[33]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{e&&G((0,nj.c)(e))},k[33]=d):d=k[33];let el=d;k[34]!==Z?(c=e=>{let t=e.currentTarget.value,n=Z((0,t7.qg)(t,"PP HH:mm",new Date));(0,t0.f)(n)&&G(n)},k[34]=Z,k[35]=c):c=k[35];let es=c;k[36]!==P||k[37]!==W?(u=()=>{P?.(),"scheduling"!==W&&J("idle")},k[36]=P,k[37]=W,k[38]=u):u=k[38];let ed=u;e:{let e,t,n,i,r,a,o,l,s,d,c,u,m,h,f,g,y,C,x,b,j;if("idle"===W){p=null;break e}k[39]!==er?(e=er(),k[39]=er,k[40]=e):e=k[40];let w=e;k[41]!==$.length||k[42]!==B?(t=B("schedule-dialog.confirm-title",{documentsLength:$.length,count:$.length}),k[41]=$.length,k[42]=B,k[43]=t):t=k[43],k[44]!==B?(n=B("schedule-dialog.confirm-button"),k[44]=B,k[45]=n):n=k[45];let _="scheduling"===W,T=w||"scheduling"===W;k[46]!==ea||k[47]!==n||k[48]!==_||k[49]!==T?(i={text:n,tone:"default",onClick:ea,loading:_,disabled:T},k[46]=ea,k[47]=n,k[48]=_,k[49]=T,k[50]=i):i=k[50];let E="scheduling"===W;k[51]!==E?(r={disabled:E},k[51]=E,k[52]=r):r=k[52],k[53]!==i||k[54]!==r?(a={confirmButton:i,cancelButton:r},k[53]=i,k[54]=r,k[55]=a):a=k[55],k[56]!==w||k[57]!==Y?(o=w&&(0,v.jsx)(I.Zp,{marginBottom:1,padding:2,radius:2,shadow:1,tone:"critical",children:(0,v.jsx)(I.EY,{size:1,children:Y("release.schedule-dialog.publish-date-in-past-warning")})}),k[56]=w,k[57]=Y,k[58]=o):o=k[58],k[59]!==Y?(l=Y("release.schedule-dialog.select-publish-date-label"),k[59]=Y,k[60]=l):l=k[60],k[61]!==l?(s=(0,v.jsx)("label",{children:(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:l})}),k[61]=l,k[62]=s):s=k[62],k[63]!==Y?(d=Y("release.schedule-dialog.select-publish-date-label"),k[63]=Y,k[64]=d):d=k[64],k[65]!==d||k[66]!==q.alternativeName||k[67]!==q.offset?(c={title:d,alternativeName:q.alternativeName,offset:q.offset},k[65]=d,k[66]=q.alternativeName,k[67]=q.offset,k[68]=c):c=k[68],k[69]!==c||k[70]!==Y?(u=(0,v.jsx)(k1,{children:(0,v.jsx)(kQ,{tooltipContent:(0,v.jsx)(aE,{t:Y,i18nKey:"time-zone.time-zone-tooltip-input",values:c}),allowTimeZoneSwitch:!0,useElementQueries:!0,timeZoneScope:Rz})}),k[69]=c,k[70]=Y,k[71]=u):u=k[71],k[72]!==s||k[73]!==u?(m=(0,v.jsxs)(I.so,{align:"center",justify:"space-between",gap:2,children:[s,u]}),k[72]=s,k[73]=u,k[74]=m):m=k[74],k[75]!==ee?(h=ee?(0,nn.GP)(ee,"PP HH:mm"):"",k[75]=ee,k[76]=h
1222):h=k[76],k[77]!==eo||k[78]!==es||k[79]!==K||k[80]!==h?(f=(0,v.jsx)(kq,{selectTime:!0,monthPickerVariant:kV,onChange:el,onInputChange:es,value:K,calendarLabels:eo,inputValue:h,constrainSize:!1,isPastDisabled:!0,timeZoneScope:Rz}),k[77]=eo,k[78]=es,k[79]=K,k[80]=h,k[81]=f):f=k[81],k[82]!==m||k[83]!==f?(g=(0,v.jsxs)(I.BJ,{space:3,children:[m,f]}),k[82]=m,k[83]=f,k[84]=g):g=k[84],k[85]!==S.metadata.title||k[86]!==Y?(y=S.metadata.title||Y("release.placeholder-untitled-release"),k[85]=S.metadata.title,k[86]=Y,k[87]=y):y=k[87],k[88]!==$.length||k[89]!==y?(C={title:y,count:$.length},k[88]=$.length,k[89]=y,k[90]=C):C=k[90],k[91]!==B||k[92]!==C?(x=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:B,i18nKey:"schedule-dialog.confirm-description",values:C})}),k[91]=B,k[92]=C,k[93]=x):x=k[93],k[94]!==o||k[95]!==g||k[96]!==x?(b=(0,v.jsxs)(I.BJ,{space:3,children:[o,g,x]}),k[94]=o,k[95]=g,k[96]=x,k[97]=b):b=k[97],k[98]!==ed||k[99]!==X||k[100]!==t||k[101]!==a||k[102]!==b?(j=(0,v.jsx)(tL.lG,{id:"confirm-schedule-dialog","data-testid":"confirm-schedule-dialog",header:t,onClose:ed,footer:a,children:b},X),k[98]=ed,k[99]=X,k[100]=t,k[101]=a,k[102]=b,k[103]=j):j=k[103],p=j}let ec=p;k[104]!==z||k[105]!==S.metadata.intendedPublishAt?(m=()=>{G(S.metadata.intendedPublishAt?new Date(S.metadata.intendedPublishAt):new Date),J("confirm"),z?.()},k[104]=z,k[105]=S.metadata.intendedPublishAt,k[106]=m):m=k[106];let eu=m;t:{if(0===$.length){let e;k[107]!==B?(e=B("schedule-action.validation.no-documents"),k[107]=B,k[108]=e):e=k[108],h=e;break t}if(!L){let e;k[109]!==B?(e=B("schedule-button-tooltip.validation.no-permission"),k[109]=B,k[110]=e):e=k[110],h=e;break t}if(et){let e;k[111]!==B?(e=B("schedule-button-tooltip.validation.loading"),k[
1222111]=B,k[112]=e):e=k[112],h=e;break t}if(en){let e;k[113]!==B?(e=B("schedule-button-tooltip.validation.error"),k[113]=B,k[114]=e):e=k[114],h=e;break t}if(uT(S)){let e;k[115]!==B?(e=B("schedule-button-tooltip.already-scheduled"),k[115]=B,k[116]=e):e=k[116],h=e;break t}h=null}let ep=h,em=et?"default":"critical";k[117]!==em?(f=(0,v.jsx)(NF,{icon:eT.YZv,tone:em}),k[117]=em,k[118]=f):f=k[118],k[119]!==f||k[120]!==ep?(g=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsxs)(I.so,{align:"center",gap:3,padding:1,children:[f,ep]})}),k[119]=f,k[120]=ep,k[121]=g):g=k[121];let eh=g,ef=E||et||!L||en||"scheduling"===W||0===$.length;k[122]!==B?(y=B("action.schedule"),k[122]=B,k[123]=y):y=k[123];let eg=!ep;k[124]!==eh||k[125]!==eg?(C={disabled:eg,content:eh,placement:"bottom"},k[124]=eh,k[125]=eg,k[126]=C):C=k[126];let ey=C;k[127]!==eu||k[128]!==ef||k[129]!==y||k[130]!==ey?(x={icon:eT.O4,disabled:ef,text:y,handleOnClick:eu,tooltipProps:ey},k[127]=eu,k[128]=ef,k[129]=y,k[130]=ey,k[131]=x):x=k[131];let eC=x;return k[132]!==R||k[133]!==eC.disabled||k[134]!==eC.handleOnClick||k[135]!==eC.icon||k[136]!==eC.text||k[137]!==eC.tooltipProps||k[138]!==W?(b=R?(0,v.jsx)(tL.Dr,{tooltipProps:eC.tooltipProps,icon:eC.icon,disabled:eC.disabled,text:eC.text,onClick:eC.handleOnClick,"data-testid":"schedule-button-menu-item"}):(0,v.jsx)(tL.$n,{tooltipProps:eC.tooltipProps,tone:"primary",icon:eC.icon,disabled:eC.disabled,text:eC.text,onClick:eC.handleOnClick,loading:"scheduling"===W,"data-testid":"schedule-button"}),k[132]=R,k[133]=eC.disabled,k[134]=eC.handleOnClick,k[135]=eC.icon,k[136]=eC.text,k[137]=eC.tooltipProps,k[138]=W,k[139]=b):b=k[139],k[140]!==ec||k[141]!==b?(w=(0,v.jsxs)(v.Fragment,{children:[b,ec]}),k[140]=ec,k[141]=b,k[142]=w):w=k[142],w};function Og(e){let{validation:t}=e;return t.isValidating}function Oy(e){let{validation:t}=e;return t.hasError}function OC(e){return e+1}let Ox=e=>{let t,n,i,r,a,o,l=(0,j.c)(48),{release:s,disabled:d,documents:c}=e,u=(0,T.dj)(),{unschedule:p}=RI(),{t:m}=as(RE),{t:h}=as(),f=(0,tK.Jr)(),[g,y]=(0,_.useState)("idle");l[0]!==s._id||l[1]!==s.metadata.title||l[2]!==m||l[3]!==h||l[4]!==f||l[5]!==u||l[6]!==p?(t=async()=>{await (async()=>{y("unscheduling"),await p(s._id),f.log(aG)})().catch(e=>{u.push({status:"error",title:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:m,i18nKey:"toast.unschedule.error",values:{title:s.metadata.title||h("release.placeholder-untitled-release"),error:e.message}})})}),console.error(e)}).finally(()=>{y("idle")})},l[0]=s._id,l[1]=s.metadata.title,l[2]=m,l[3]=h,l[4]=f,l[5]=u,l[6]=p,l[7]=t):t=l[7];let C=t;e:{let e,t,i,r,a,o,d,u,p,f;if("idle"===g){n=null;break e}l[8]!==m?(e=m("unschedule-dialog.confirm-title"),l[8]=m,l[9]=e):e=l[9],l[10]!==g?(t=()=>"unscheduling"!==g&&y("idle"),l[10]=g,l[11]=t):t=l[11],l[12]!==m?(i=m("action.unschedule"),l[12]=m,l[13]=i):i=l[13];let x="unscheduling"===g,b="unscheduling"===g;l[14]!==C||l[15]!==i||l[16]!==x||l[17]!==b?(r={text:i,tone:"default",onClick:C,loading:x,disabled:b},l[14]=C,l[15]=i,l[16]=x,l[17]=b,l[18]=r):r=l[18];let j="unscheduling"===g;l[19]!==j?(a={disabled:j},l[19]=j,l[20]=a):a=l[20],l[21]!==a||l[22]!==r?(o={confirmButton:r,cancelButton:a},l[21]=a,l[22]=r,l[23]=o):o=l[23],l[24]!==s.metadata.title||l[25]!==h?(d=s.metadata.title||h("release.placeholder-untitled-release"),l[24]=s.metadata.title,l[25]=h,l[26]=d):d=l[26],l[27]!==c.length||l[28]!==d?(u={title:d,documentsLength:c.length,count:c.length},l[27]=c.length,l[28]=d,l[29]=u):u=l[29],l[30]!==m||l[31]!==u?(p=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:m,i18nKey:"unschedule-dialog.confirm-description",values:u})}),l[30]=m,l[31]=u,l[32]=p):p=l[32],l[33]!==o||l[34]!==p||l[35]!==e||l[36]!==t?(f=(0,v.jsx)(tL.lG,{id:"confirm-unschedule-dialog",header:e,onClose:t,footer:o,children:p}),l[33]=o,l[34]=p,l[35]=e,l[36]=t,l[37]=f):f=l[37],n=f}let x=n,b=d||"unscheduling"===g;l[38]!==m?(i=m("action.unschedule"),l[38]=m,l[39]=i):i=l[39],l[40]===Symbol.for("react.memo_cache_sentinel")?(r=()=>y("confirm"),l[40]=r):r=l[40];let w="unscheduling"===g;return l[41]!==b||l[42]!==i||l[43]!==w?(a=(0,v.jsx)(tL.$n,{icon:eT.kUM,disabled:b,text:i,onClick:r,loading:w,"data-testid":"schedule-button"}),l[41]=b,l[42]=i,l[43]=w,l[44]=a):a=l[44],l[45]!==x||l[46]!==a?(o=(0,v.jsxs)(v.Fragment,{children:[a,x]}),l[45]=x,l[46]=a,l[47]=o):o=l[47],o}
1222,Ob=new WeakMap,Ov=0;function Oj(e){let t=Ob.get(e);if(t)return t;let n=`${e.displayName||e.name||"<anonymous>"}-${Ov++}`;return Ob.set(e,n),n}let Ow=e=>{let t,n=(0,j.c)(7),{hooks:i,args:r,handleNext:a}=e;if(n[0]!==r||n[1]!==a||n[2]!==i){let e;n[4]!==r||n[5]!==a?(e=e=>{let t=Oj(e);return(0,v.jsx)(Ok,{args:r,id:t,hook:e,handleNext:a},t)},n[4]=r,n[5]=a,n[6]=e):e=n[6],t=i.map(e),n[0]=r,n[1]=a,n[2]=i,n[3]=t}else t=n[3];return t};Ow.displayName="HookCollectionState";let O_=(0,_.memo)(Ow,k);function Ok(e){let t,n,i=(0,j.c)(7),{args:r,hook:a,id:o,handleNext:l}=e;i[0]!==a||i[1]!==o?(t=function({hook:e,id:t}){let n=n=>{let i,r,a=(0,j.c)(4),{args:o,handleNext:l}=n,s=e(o);return a[0]!==l||a[1]!==s?(i=()=>{s?l(t,{...s,action:e.action}):l(t,s)},r=[l,s],a[0]=l,a[1]=s,a[2]=i,a[3]=r):(i=a[2],r=a[3]),(0,_.useEffect)(i,r),null},{displayName:i=t.replace(/-[0-9]+$/,"")}=e;return n.displayName=i,n}({hook:a,id:o}),i[0]=a,i[1]=o,i[2]=t):t=i[2];let s=t;return i[3]!==s||i[4]!==r||i[5]!==l?(n=(0,v.jsx)(s,{args:r,handleNext:l}),i[3]=s,i[4]=r,i[5]=l,i[6]=n):n=i[6],n}let OS={trailing:!0};function OI(e,{hooks:t}){return t.map(t=>{let n=Oj(t);return e.get(n)}).filter(r$)}function OT(e){if("AbortError"!==e.name)throw e}function OE(){return new Map}function O$(e){let t,n,i,r,a,o,l=(0,j.c)(15),{hooks:s,args:d,children:c,resetRef:u}=e;l[0]!==s?(t={hooks:s},l[0]=s,l[1]=t):t=l[1];let{states:p,handleNext:m}=function(e){var t;let n,i,r,a,o,l,s=(0,j.c)(12),{hooks:d}=e,[c]=(0,_.useState)(OE);s[0]!==d||s[1]!==c?(n=()=>OI(c,{hooks:d}),s[0]=d,s[1]=c,s[2]=n):n=s[2];let[u,p]=(0,_.useState)(n),m=(0,_.useRef)(null);s[3]!==d||s[4]!==c?(i=()=>{m.current?.abort(),m.current=new AbortController,sU(()=>{p(OI(c,{hooks:d}))},{signal:m.current.signal})?.catch(OT)},s[3]=d,s[4]=c,s[5]=i):i=s[5];let h=(t=i,(l=(0,j.c)(4))[0]!==t||l[1]!==OS||60!==l[2]?(o=(0,A.A)(t,60,OS),l[0]=t,l[1]=OS,l[2]=60,l[3]=o):o=l[3],o);s[6]!==h||s[7]!==c?(r=(e,t)=>
1222{let n=!0;null===t?c.delete(e):(c.has(e)&&(n=!k(c.get(e),t)),c.set(e,t)),n&&h()},s[6]=h,s[7]=c,s[8]=r):r=s[8];let f=r;return s[9]!==f||s[10]!==u?(a={states:u,handleNext:f},s[9]=f,s[10]=u,s[11]=a):a=s[11],a}(t);l[2]!==c||l[3]!==p?(n=c({states:p}),l[2]=c,l[3]=p,l[4]=n):n=l[4];let h=n,[f,g]=(0,_.useState)(0);l[5]===Symbol.for("react.memo_cache_sentinel")?(i=()=>()=>g(OA),r=[],l[5]=i,l[6]=r):(i=l[5],r=l[6]),(0,_.useImperativeHandle)(u,i,r);let y=`render-${f}`;return l[7]!==d||l[8]!==m||l[9]!==s||l[10]!==y?(a=(0,v.jsx)(O_,{hooks:s,args:d,handleNext:m},y),l[7]=d,l[8]=m,l[9]=s,l[10]=y,l[11]=a):a=l[11],l[12]!==h||l[13]!==a?(o=(0,v.jsxs)(v.Fragment,{children:[a,h]}),l[12]=h,l[13]=a,l[14]=o):o=l[14],o}function OA(e){return e+1}let OD=(0,_.memo)(function(e){let t,n,i,r=(0,j.c)(7),{states:a,onActions:o,renderChildren:l}=e;return r[0]!==o||r[1]!==a?(t=()=>{o(a)},n=[a,o],r[0]=o,r[1]=a,r[2]=t,r[3]=n):(t=r[2],n=r[3]),(0,_.useEffect)(t,n),r[4]!==l||r[5]!==a?(i=l?l({states:a}):null,r[4]=l,r[5]=a,r[6]=i):i=r[6],i}),Oz=(0,_.memo)(function(e){let t,n,i,r=(0,j.c)(10),{actions:a,release:o,documents:l,onActions:s,children:d}=e;r[0]!==l||r[1]!==o?(t={release:o,documents:l},r[0]=l,r[1]=o,r[2]=t):t=r[2];let c=t;return r[3]!==d||r[4]!==s?(n=e=>{let{states:t}=e;return(0,v.jsx)(OD,{states:t,onActions:s,renderChildren:d})},r[3]=d,r[4]=s,r[5]=n):n=r[5],r[6]!==c||r[7]!==a||r[8]!==n?(i=(0,v.jsx)(O$,{hooks:a,args:c,children:n}),r[6]=c,r[7]=a,r[8]=n,r[9]=i):i=r[9],i}),OP=e=>{let t,n,i,r,a=(0,j.c)(9),{actionResult:o}=e,l=(0,nU.rd)(),{t:s}=as(RE);a[0]!==o||a[1]!==l?(t=()=>{o&&"releaseId"in o&&l.navigate({releaseId:cN(o.releaseId)})},a[0]=o,a[1]=l,a[2]=t):t=a[2];let d=t;return a[3]===Symbol.for("react.memo_cache_sentinel")?(n={cursor:"pointer",marginBottom:"0.5rem",display:"flex"},a[3]=n):n=a[3],a[4]!==s?(i=s("toast.duplicate.success-link"),a[4]=s,a[5]=i):i=a[5],a[6]!==d||a[7]!==i?(r=(0,v.jsx)(I.EY,{size:1,weight:"medium","data-as":"a",onClick:d,style:n,"data-testid":"duplicate-release-success-link",children:i}),a[6]=d,a[7]=i,a[8]=r):r=a[8],r},OR={delete:{confirmDialog:{dialogId:"confirm-delete-dialog",dialogHeaderI18nKey:"delete-dialog.confirm-delete.header",dialogDescriptionI18nKey:"delete-dialog.confirm-delete-description",dialogConfirmButtonI18nKey:"delete-dialog.confirm-delete-button",confirmButtonTone:"critical"},toastSuccessI18nKey:"toast.delete.success",toastFailureI18nKey:"toast.delete.error",telemetry:aW},archive:{confirmDialog:{dialogId:"confirm-archive-dialog",dialogHeaderI18nKey:"archive-dialog.confirm-archive-header",dialogDescriptionI18nKey:"archive-dialog.confirm-archive-description",dialogConfirmButtonI18nKey:"archive-dialog.confirm-archive-button",confirmButtonTone:"critical"},toastFailureI18nKey:"toast.archive.error",telemetry:aX},unarchive:{confirmDialog:!1,toastFailureI18nKey:"toast.unarchive.error",telemetry:aQ},unschedule:{confirmDialog:!1,toastFailureI18nKey:"toast.unschedule.error",telemetry:aG},duplicate:{confirmDialog:{dialogId:"confirm-duplicate-dialog",dialogHeaderI18nKey:"duplicate-dialog.confirm-duplicate-header",dialogDescriptionI18nKey:"duplicate-dialog.confirm-duplicate-description",dialogConfirmButtonI18nKey:"duplicate-dialog.confirm-duplicate-button",confirmButtonTone:"primary"},toastSuccessI18nKey:"toast.duplicate.success",toastFailureI18nKey:"toast.duplicate.error",telemetry:a2}},ON=e=>{let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(118),{ignoreCTA:m,disabled:h,release:f,setSelectedAction:g,documents:y}=e,C=!f||h,{t:x}=as(RE),{archive:b,unarchive:w,deleteRelease:k,publishRelease:S,schedule:I,createRelease:T}=RI(),{checkWithPermissionGuard:E}=NU(),[$,A]=(0,_.useState)(null),[D,z]=(0,_.useState)(null),[P,R]=(0,_.useState)(null),[N,O]=(0,_.useState)(null),[V,M]=(0,_.useState)(null),[L,F]=(0,_.useState)(null),B=(0,_.useRef)(!1);p[0]!==b||p[1]!==E||p[2]!==T||p[3]!==k||p[4]!==S||p[5]!==f._id||p[6]!==f.state||p[7]!==C||p[8]!==I||p[9]!==w?(t=()=>(B.current=!0,C||("published"!==f.state&&("archived"===f.state?E(w,f._id).then(e=>{B.current&&z(e)}):(E(b,f._id).then(e=>{B.current&&A(e)}),E(S,f._id).then(e=>{B.current&&O(e)}),E(I,f._id,new Date).then(e=>{B.current&&M(e)})),E(T,uE()).then(e=>{B.current&&F(e)})),("archived"===f.state||"published"==f.state)&&E(k,f._id).then(e=>{B.current&&R(e)})),()=>
1222{B.current=!1}),p[0]=b,p[1]=E,p[2]=T,p[3]=k,p[4]=S,p[5]=f._id,p[6]=f.state,p[7]=C,p[8]=I,p[9]=w,p[10]=t):t=p[10],p[11]!==b||p[12]!==E||p[13]!==T||p[14]!==k||p[15]!==S||p[16]!==f._id||p[17]!==f.metadata.releaseType||p[18]!==f.state||p[19]!==C||p[20]!==I||p[21]!==w?(n=[f._id,C,f.state,E,w,b,k,f.metadata.releaseType,S,I,T],p[11]=b,p[12]=E,p[13]=T,p[14]=k,p[15]=S,p[16]=f._id,p[17]=f.metadata.releaseType,p[18]=f.state,p[19]=C,p[20]=I,p[21]=w,p[22]=n):n=p[22],(0,_.useEffect)(t,n),p[23]!==g?(i=e=>{g(e.currentTarget.getAttribute("data-value"))},p[23]=g,p[24]=i):i=p[24];let Y=i;e:{let e,t,n,i,a,o;if("published"===f.state){r=null;break e}if("archived"===f.state){let e,t,n,i,a=C||!D;p[25]!==x?(e=x("action.unarchive"),p[25]=x,p[26]=e):e=p[26],p[27]!==D||p[28]!==x?(t=!D&&x("permissions.error.unarchive"),p[27]=D,p[28]=x,p[29]=t):t=p[29],p[30]!==t?(n={content:t},p[30]=t,p[31]=n):n=p[31],p[32]!==Y||p[33]!==a||p[34]!==e||p[35]!==n?(i=(0,v.jsx)(tL.Dr,{"data-value":"unarchive",disabled:a,onClick:Y,icon:eT.HZr,text:e,"data-testid":"unarchive-release-menu-item",tooltipProps:n},"unarchive"),p[32]=Y,p[33]=a,p[34]=e,p[35]=n,p[36]=i):i=p[36],r=i;break e}p[37]!==h||p[38]!==$||p[39]!==f.state?(e=!!$&&(!["scheduled","scheduling"].includes(f.state)||h),p[37]=h,p[38]=$,p[39]=f.state,p[40]=e):e=p[40],p[41]!==$||p[42]!==x?(t=x($?"action.archive.tooltip":"permissions.error.archive"),p[41]=$,p[42]=x,p[43]=t):t=p[43],p[44]!==e||p[45]!==t?(n={disabled:e,content:t},p[44]=e,p[45]=t,p[46]=n):n=p[46],p[47]!==x?(i=x("action.archive"),p[47]=x,p[48]=i):i=p[48],p[49]!==$||p[50]!==f.state||p[51]!==C?(a=C||["scheduled","scheduling"].includes(f.state)||!$,p[49]=$,p[50]=f.state,p[51]=C,p[52]=a):a=p[52],p[53]!==Y||p[54]!==n||p[55]!==i||p[56]!==a?(o=(0,v.jsx)(tL.Dr,{tooltipProps:n,"data-value":"archive",onClick:Y,icon:eT.kbr,text:i,"data-testid":"archive-release-menu-item",disabled:a},"archive"),p[53]=Y,p[54]=n,p[55]=i,p[56]=a,p[57]=o):o=p[57],r=o}let H=r;t:{let e,t,n,i;if("archived"!==f.state&&"published"!==f.state){a=null;break t}let r=C||!P;p[58]!==x?(e=x("action.delete-release"),p[58]=x,p[59]=e):e=p[59],p[60]!==P||p[61]!==x?(t=!P&&x("permissions.error.delete"),p[60]=P,p[61]=x,p[62]=t):t=p[62],p[63]!==t?(n={content:t},p[63]=t,p[64]=n):n=p[64],p[65]!==Y||p[66]!==r||p[67]!==e||p[68]!==n?(i=(0,v.jsx)(tL.Dr,{"data-value":"delete",onClick:Y,disabled:r,icon:eT.ucK,text:e,"data-testid":"delete-release-menu-item",tooltipProps:n},"delete"),p[65]=Y,p[66]=r,p[67]=e,p[68]=n,p[69]=i):i=p[69],a=i}let U=a;n:{let e,t;if(m||"scheduled"!==f.state&&"scheduling"!==f.state){o=null;break n}p[70]!==x?(e=x("action.unschedule"),p[70]=x,p[71]=e):e=p[71],p[72]!==Y||p[73]!==C||p[74]!==e?(t=(0,v.jsx)(tL.Dr,{"data-value":"unschedule",onClick:Y,disabled:C,icon:eT.kUM,text:e,"data-testid":"unschedule-release-menu-item"},"unschedule"),p[72]=Y,p[73]=C,p[74]=e,p[75]=t):t=p[75],o=t}let Z=o;i:{let e,t,n;if("active"!==f.state||m&&"scheduled"===f.metadata.releaseType){l=null;break i}let i=C||!V;p[76]!==g?(t=()=>g(void 0),e=()=>g("schedule"),p[76]=g,p[77]=e,p[78]=t):(e=p[77],t=p[78]),p[79]!==y||p[80]!==f||p[81]!==e||p[82]!==i||p[83]!==t?(n=(0,v.jsx)(Of,{disabled:i,release:f,documents:y,isMenuItem:!0,onConfirmDialogClose:t,onConfirmDialogOpen:e},"schedule"),p[79]=y,p[80]=f,p[81]=e,p[82]=i,p[83]=t,p[84]=n):n=p[84],l=n}let q=l;r:{let e,t,n;if("active"!==f.state||m&&"scheduled"!==f.metadata.releaseType){s=null;break r}let i=C||!N;p[85]!==g?(e=()=>g(void 0),t=()=>g("publish"),p[85]=g,p[86]=e,p[87]=t):(e=p[86],t=p[87]),p[88]!==y||p[89]!==f||p[90]!==e||p[91]!==t||p[92]!==i?(n=(0,v.jsx)(Oe,{release:f,documents:y,disabled:i,isMenuItem:!0,onConfirmDialogClose:e,onConfirmDialogOpen:t},"publish"),p[88]=y,p[89]=f,p[90]=e,p[91]=t,p[92]=i,p[93]=n):n=p[93],s=n}let W=s;a:{let e,t,n,i;if("published"===f.state||"archived"===f.state){d=null;break a}let r=C||!L;p[94]!==x?(e=x("action.duplicate-release"),p[94]=x,p[95]=e):e=p[95],p[96]!==L||p[97]!==x?(t=!L&&x("permissions.error.duplicate"),p[96]=L,p[97]=x,p[98]=t):t=p[98],p[99]!==t?(n={content:t},p[99]=t,p[100]=n):n=p[100],p[101]!==Y||p[102]!==r||p[103]!==e||p[104]!==n?(i=(0,v.jsx)(tL.Dr,{"data-value":"duplicate",onClick:Y,disabled:r,icon:eT.TdU,text:e,"data-testid":"duplicate-release-menu-item",tooltipProps:n},"duplicate"),p[101]=Y,p[102]=r,p[103]=e,p[104]=n,p[105]=i):i=p[105],d=i}let J=d;o:{let e;if("scheduled"===f.metadata.releaseType){let e;p[106]!==W||p[107]!==q?(e=[q,W],p[106]=W,p[107]=q,p[108]=e):e=p[108],c=e;break o}
1222p[109]!==W||p[110]!==q?(e=[W,q],p[109]=W,p[110]=q,p[111]=e):e=p[111],c=e}let K=c;return p[112]!==K||p[113]!==H||p[114]!==U||p[115]!==J||p[116]!==Z?(u=[Z,...K,J,H,U],p[112]=K,p[113]=H,p[114]=U,p[115]=J,p[116]=Z,p[117]=u):u=p[117],u};function OO(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(18),{release:c}=e,{t:u}=as();d[0]!==c?(t=uA(c),d[0]=c,d[1]=t):t=d[1],d[2]!==t?(n=(0,v.jsx)(RL,{tone:t,padding:0}),d[2]=t,d[3]=n):n=d[3];let p=c.metadata.title;return d[4]!==u?(i=u("release.placeholder-untitled-release"),d[4]=u,d[5]=i):i=d[5],d[6]===Symbol.for("react.memo_cache_sentinel")?(r={weight:"medium",size:1},d[6]=r):r=d[6],d[7]!==c.metadata.title||d[8]!==i?(a=(0,v.jsx)(ug,{title:p,fallback:i,textProps:r}),d[7]=c.metadata.title,d[8]=i,d[9]=a):a=d[9],d[10]!==c?(o=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(N2,{release:c})}),d[10]=c,d[11]=o):o=d[11],d[12]!==a||d[13]!==o?(l=(0,v.jsxs)(I.BJ,{space:2,children:[a,o]}),d[12]=a,d[13]=o,d[14]=l):l=d[14],d[15]!==n||d[16]!==l?(s=(0,v.jsx)(I.Zp,{border:!0,padding:1,radius:2,children:(0,v.jsxs)(I.so,{gap:3,padding:3,children:[n,l]})}),d[15]=n,d[16]=l,d[17]=s):s=d[17],s}let OV={duplicate:e=>({Link:()=>(0,v.jsx)(OP,{actionResult:e})})},OM=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,E,$,A,D,z,P,R,N,O=(0,j.c)(134),{ignoreCTA:V,release:M,documentsCount:L,documents:F}=e,B=(0,T.dj)(),Y=(0,nU.rd)(),{archive:H,unarchive:U,deleteRelease:Z,unschedule:q,duplicateRelease:W}=RI(),[J,K]=(0,_.useState)(!1),[G,X]=(0,_.useState)(),{selectedReleaseId:Q}=a3(),ee=Rj(),et=(0,_.useRef)(null),en=(0,_.useRef)(null),[ei,er]=(0,_.useState)(!1);O[0]!==F?(t=F??[],O[0]=F,O[1]=t):t=O[1];let ea=function(e,t){let n,i,r=(0,j.c)(7);r[0]!==t?(n=void 0===t?[]:t,r[0]=t,r[1]=n):n=r[1];let a=n,o=_g();e:{let t;if(!o.releases?.actions){let e;r[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],r[2]=e):e=r[2],i=e;break e}r[3]!==a||r[4]!==e||r[5]!==o.releases?(t=o.releases.actions({release:e,documents:a}),r[3]=a,r[4]=e,r[5]=o.releases,r[6]=t):t=r[6],i=t}return i}(M,t);O[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],O[2]=n):n=O[2];let[eo,el]=(0,_.useState)(n);O[3]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{el(e.filter(Boolean))},O[3]=i):i=O[3];let es=i,ed=!M,{t:ec}=as(RE),{t:eu}=as(),ep=(0,tK.Jr)(),{guardWithReleaseLimitUpsell:em}=Rw();O[4]!==M.metadata.title||O[5]!==eu?(r=M.metadata.title||eu("release.placeholder-untitled-release"),O[4]=M.metadata.title,O[5]=eu,O[6]=r):r=O[6];let eh=r,ef="publish"===G||"schedule"===G,{document:eg}=cY(),{drafts:ey}=eg,{enabled:eC}=ey;O[7]!==Z||O[8]!==M._id||O[9]!==Y?(a=async()=>{await Z(M._id),Y.navigate({})},O[7]=Z,O[8]=M._id,O[9]=Y,O[10]=a):a=O[10];let ex=a;O[11]!==em||O[12]!==M._id||O[13]!==U?(o=async()=>em(()=>U(M._id),!0),O[11]=em,O[12]=M._id,O[13]=U,O[14]=o):o=O[14];let eb=o;O[15]!==F||O[16]!==W||O[17]!==em||O[18]!==M.metadata||O[19]!==ec?(l=async()=>{let e=uw();return await em(async()=>{let t=F?.map(OL);return W(e,{...M.metadata,title:`${M.metadata.title} (${ec("copy-suffix")})`},t)},!0),{releaseId:e}},O[15]=F,O[16]=W,O[17]=em,O[18]=M.metadata,O[19]=ec,O[20]=l):l=O[20];let ev=l;O[21]!==H||O[22]!==ex||O[23]!==ev||O[24]!==eb||O[25]!==eC||O[26]!==M._id||O[27]!==ed||O[28]!==eh||O[29]!==Y||O[30]!==Q||O[31]!==ee||O[32]!==ec||O[33]!==ep||O[34]!==B||O[35]!==q?(s=async e=>{if("publish"===e||"schedule"===e||ed)return;let t={delete:ex,archive:H,unarchive:eb,unschedule:q,duplicate:ev},n=OR[e];await (async()=>{("archive"===e||"delete"===e)&&Q===cN(M._id)&&ee(eC?"drafts":"published"),K(!0);let i=await t[e](M._id);if(ep.log(n.telemetry),"u">typeof n.toastSuccessI18nKey){let t=OV[e]?.(i);B.push({closable:!0,status:"success",title:(0,v.jsx)(S.zA.Provider,{value:Y,children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:ec,components:t,i18nKey:n.toastSuccessI18nKey,values:{title:eh}})})})})}})().catch(e=>{RS(e)||("u">typeof n.toastFailureI18nKey&&B.push({status:"error",title:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:ec,i18nKey:n.toastFailureI18nKey,values:{title:eh,error:e.toString()}})})}),console.error(e))}).finally(()=>{K(!1),X(void 0)})},O[21]=H,O[22]=ex,O[23]=ev,O[24]=eb,O[25]=eC,O[26]=M._id,O[27]=ed,O[28]=eh,O[29]=Y,O[30]=Q,O[31]=ee,O[32]=ec,O[33]=ep,O[34]=B,O[35]=q,O[36]=s):s=O[36];let ej=s;O[37]!==ej||O[38]!==ef||O[39]!==G?(d=()=>{!G||ef||OR[G].confirmDialog||ej(G)},O[37]=ej,O[38]=ef,O[39]=G,O[40]=d):d=O[40],O[41]!==L||O[42]!==ej||O[43]!==ef||O[44]!==G?(c=[L,ej,ef,G],O[41]=L,O[42]=ej,O[43]=ef,O[44]=G,O[45]=c):c=O[45],(0,_.useEffect)(d,c);e:{let e,t,n,i,r,a,o,l,s,d,c;if(!G||ef){u=null;break e}let{confirmDialog:p}=OR[G];if(!p){u=null;break e}let m=p.dialogId,h=p.dialogId;O[46]!==p.dialogHeaderI18nKey||O[47]!==ec?(e=ec(p.dialogHeaderI18nKey),O[46]=p.dialogHeaderI18nKey,O[47]=ec,O[48]=e):e=O[48],O[49]!==J?(t=()=>!J&&X(void 0),O[49]=J,O[50]=t):t=O[50],O[51]!==p.dialogConfirmButtonI18nKey||O[52]!==ec?(n=ec(p.dialogConfirmButtonI18nKey),O[51]=p.dialogConfirmButtonI18nKey,O[52]=ec,O[53]=n):n=O[53],O[54]!==ej||O[55]!==G?(i=()=>ej(G),O[54]=ej,O[55]=G,O[56]=i):i=O[56],O[57]!==p.confirmButtonTone||O[58]!==J||O[59]!==n||O[60]!==i?(r={text:n,tone:p.confirmButtonTone,onClick:i,loading:J,disabled:J},O[57]=p.confirmButtonTone,O[58]=J,O[59]=n,O[60]=i,O[61]=r):r=O[61],O[62]!==J?(a={disabled:J},O[62]=J,O[63]=a):a=O[63],O[64]!==r||O[65]!==a?(o={confirmButton:r,cancelButton:a},O[64]=r,O[65]=a,O[66]=o):o=O[66],O[67]!==M?(l=(0,v.jsx)(OO,{release:M}),O[67]=M,O[68]=l):l=O[68],O[69]!==p.dialogDescriptionI18nKey||O[70]!==L||O[71]!==ec?(s=!!L&&(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(aE,{t:ec,i18nKey:p.dialogDescriptionI18nKey,values:{count:L}})}),O[69]=p.dialogDescriptionI18nKey,O[70]=L,O[71]=ec,O[72]=s):s=O[72],O[73]!==l||O[74]!==s?(d=(0,v.jsxs)(I.BJ,{space:4,paddingX:4,paddingBottom:4,children:[l,s]}),O[73]=l,O[74]=s,O[75]=d):d=O[75],O[76]!==p.dialogId||O[77]!==e||O[78]!==t||O[79]!==o||O[80]!==d?(c=(0,v.jsx)(tL.lG,{id:m,"data-testid":h,header:e,onClose:t,padding:!1,footer:o,children:d}),O[76]=p.dialogId,O[77]=e,O[78]=t,O[79]=o,O[80]=d,O[81]=c):c=O[81],u=c}let ew=u;O[82]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{er(!1)},O[82]=p):p=O[82];let e_=p;O[83]!==ei?(m=()=>{ei?e_():er(!0)},O[83]=ei,O[84]=m):m=O[84];let ek=m;O[85]!==ef?(h=()=>{ef||e_()},O[85]=ef,O[86]=h):h=O[86],O[87]===Symbol.for("react.memo_cache_sentinel")?(f=()=>[et.current,en.current],O[87]=f):f=O[87],(0,I.PR)(h,f),O[88]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{e||e_(),X(e)},O[88]=g):g=O[88];let eS=g;O[89]===Symbol.for("react.memo_cache_sentinel")?(y=e=>()=>{e.onHandle&&(e.onHandle(),e_())},O[89]=y):y=O[89];let eI=y;if(O[90]!==eo||O[91]!==J){let e;O[93]!==J?(e=(e,t)=>(0,v.jsx)(tL.Dr,{icon:e.icon,text:e.label,disabled:e.disabled||J,onClick:eI(e),tooltipProps:e.title?{content:e.title}:void 0},`custom-action-${t}`),O[93]=J,O[94]=e):e=O[94],C=eo.map(e),O[90]=eo,O[91]=J,O[92]=C}else C=O[92];let eE=C,e$=ea.length>0;O[95]!==ea||O[96]!==F||O[97]!==e$||O[98]!==M?(x=e$&&(0,v.jsx)(Oz,{actions:ea,release:M,documents:F??[],onActions:es}),O[95]=ea,O[96]=F,O[97]=e$,O[98]=M,O[99]=x):x=O[99],O[100]!==F?(b=F??[],O[100]=F,O[101]=b):b=O[101],O[102]!==V||O[103]!==J||O[104]!==M||O[105]!==b?(w=(0,v.jsx)(ON,{ignoreCTA:V,release:M,setSelectedAction:eS,disabled:J,documents:b}),O[102]=V,O[103]=J,O[104]=M,O[105]=b,O[106]=w):w=O[106],O[107]!==eE||O[108]!==e$?(k=e$&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.Nj,{}),eE]}),O[107]=eE,O[108]=e$,O[109]=k):k=O[109],O[110]!==w||O[111]!==k?(E=(0,v.jsxs)(I.W1,{ref:en,children:[w,
1222k]}),O[110]=w,O[111]=k,O[112]=E):E=O[112],O[113]===Symbol.for("react.memo_cache_sentinel")?($=["top-end"],O[113]=$):$=O[113];let eA=ed||J,eD=J?I.y$:eT.riS;return O[114]!==ec?(A=ec("menu.tooltip"),O[114]=ec,O[115]=A):A=O[115],O[116]!==A?(D={content:A},O[116]=A,O[117]=D):D=O[117],O[118]!==ec?(z=ec("menu.label"),O[118]=ec,O[119]=z):z=O[119],O[120]!==ek||O[121]!==eA||O[122]!==eD||O[123]!==D||O[124]!==z?(P=(0,v.jsx)(tL.$n,{disabled:eA,icon:eD,mode:"bleed",tooltipProps:D,"aria-label":z,"data-testid":"release-menu-button",onClick:ek}),O[120]=ek,O[121]=eA,O[122]=eD,O[123]=D,O[124]=z,O[125]=P):P=O[125],O[126]!==ei||O[127]!==E||O[128]!==P?(R=(0,v.jsx)(tL.AM,{content:E,open:ei,ref:et,constrainSize:!1,fallbackPlacements:$,portal:!0,tone:"default",placement:"bottom",children:P}),O[126]=ei,O[127]=E,O[128]=P,O[129]=R):R=O[129],O[130]!==ew||O[131]!==x||O[132]!==R?(N=(0,v.jsxs)(v.Fragment,{children:[x,R,ew]}),O[130]=ew,O[131]=x,O[132]=R,O[133]=N):N=O[133],N};function OL(e){return e.document}function OF(e){let t,n,i,r,a,o=(0,j.c)(13),{avatar:l,text:s,testId:d}=e;o[0]!==l?(t=l&&(0,v.jsx)(I.az,{padding:1,children:(0,v.jsx)("div",{style:{margin:-1},children:l})}),o[0]=l,o[1]=t):t=o[1];let c=l?1:void 0;return o[2]!==s?(n=(0,v.jsx)(I.EY,{muted:!0,size:1,children:s}),o[2]=s,o[3]=n):n=o[3],o[4]!==c||o[5]!==n?(i=(0,v.jsx)(I.az,{padding:2,paddingLeft:c,children:n}),o[4]=c,o[5]=n,o[6]=i):i=o[6],o[7]!==t||o[8]!==i?(r=(0,v.jsxs)(I.so,{children:[t,i]}),o[7]=t,o[8]=i,o[9]=r):r=o[9],o[10]!==r||o[11]!==d?(a=(0,v.jsx)(I.Zp,{"data-testid":d,children:r}),o[10]=r,o[11]=d,o[12]=a):a=o[12],a}let OB={createRelease:"footer.status.created",publishRelease:"footer.status.published",archiveRelease:"footer.status.archived",unarchiveRelease:"footer.status.unarchived"};function OY(e){let t,n,i=(0,j.c)(13),{events:r,release:a}=e,{t:o}=as(RE);i[0]!==r?(t=[r.find(Nw),r.find(OH)].filter(r$),i[0]=r,i[1]=t):t=i[1];let l=t;if(!l.length){let e,t,n,r;return i[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ut,{$size:0}),i[2]=e):e=i[2],i[3]!==o?(t=o(OB.createRelease),i[3]=o,i[4]=t):t=i[4],i[5]!==a._createdAt?(n=(0,v.jsx)(NI,{time:a._createdAt,useTemporalPhrase:!0,minimal:!0}),i[5]=a._createdAt,i[6]=n):n=i[6],i[7]!==t||i[8]!==n?(r=(0,v.jsx)(I.so,{flex:1,gap:1,children:(0,v.jsx)(OF,{avatar:e,text:(0,v.jsxs)(v.Fragment,{children:[t," ",n]})})}),i[7]=t,i[8]=n,i[9]=r):r=i[9],r}return i[10]!==l||i[11]!==o?(n=(0,v.jsx)(I.so,{flex:1,gap:1,children:l.map(e=>(0,v.jsx)(OF,{testId:`status-${e.type}`,avatar:e.author&&(0,v.jsx)(ua,{size:0,user:e.author}),text:(0,v.jsxs)(v.Fragment,{children:[o(OB[e.type])," ",(0,v.jsx)(NI,{time:e.timestamp,useTemporalPhrase:!0,minimal:!0})]})},e.id))}),i[10]=l,i[11]=o,i[12]=n):n=i[12],n}function OH(e){return"publishRelease"===e.type||"archiveRelease"===e.type||"unarchiveRelease"===e.type}function OU(e){let t,n,i,r,a,o,l=(0,j.c)(30),{documents:s,release:d,events:c}=e;e:{if("archived"===d.state){t=null;break e}if(uT(d)){let e,n=!s.length;l[0]!==s||l[1]!==d||l[2]!==n?(e=(0,v.jsx)(Ox,{release:d,documents:s,disabled:n}),l[0]=s,l[1]=d,l[2]=n,l[3]=e):e=l[3],t=e;break e}if("active"===d.state){if("scheduled"===d.metadata.releaseType){let e,n=!s.length;l[4]!==s||l[5]!==d||l[6]!==n?(e=(0,v.jsx)(Of,{release:d,documents:s,disabled:n}),l[4]=s,l[5]=d,l[6]=n,l[7]=e):e=l[7],t=e;break e}if("asap"===d.metadata.releaseType){let e,n=!s.length;l[8]!==s||l[9]!==d||l[10]!==n?(e=(0,v.jsx)(Oe,{release:d,documents:s,disabled:n}),l[8]=s,l[9]=d,l[10]=n,l[11]=e):e=l[11],t=e;break e}}if("published"===d.state){let e,n=!s.length;l[12]!==s||l[13]!==d||l[14]!==n?(e=(0,v.jsx)(Om,{release:d,documents:s,disabled:n}),l[12]=s,l[13]=d,l[14]=n,l[15]=e):e=l[15],t=e;break e}t=null}let u=t;l[16]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(I.Zp,{borderTop:!0,marginX:2,style:{opacity:.6}}),l[16]=n):n=l[16],l[17]!==c||l[18]!==d?(i=(0,v.jsx)(I.so,{flex:1,gap:1,children:(0,v.jsx)(OY,{events:c,release:d})}),l[17]=c,l[18]=d,l[19]=i):i=l[19];let p="undecided"!==d.metadata.releaseType;return l[20]!==s||l[21]!==d||l[22]!==p?(r=(0,v.jsx)(OM,{release:d,documentsCount:s.length,documents:s,ignoreCTA:p}),l[20]=s,l[21]=d,l[22]=p,l[23]=r):r=l[23],l[24]!==u||l[25]!==r?(a=(0,v.jsxs)(I.so,{flex:"none",gap:1,"data-testid":"release-dashboard-footer-actions",children:[u,r]}),l[24]=u,l[25]=r,l[26]=a):a=l[26],l[27]!==i||l[28]!==a?(o=(0,v.jsxs)(I.Zp,{flex:"none",children:[n,(0,v.jsxs)(I.so,{padding:3,children:[i,a]})]}),l[27]=i,l[28]=a,l[29]=o):o=l[29],o}let OZ="date",Oq="group",OW="view";function OJ(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(33),{inspector:g,release:y,setInspector:C}=e,{t:x}=as(RE),{t:b}=as();f[0]!==y.metadata.title||f[1]!==b?(t=y.metadata.title||b("release.placeholder-untitled-release"),f[0]=y.metadata.title,f[1]=b,f[2]=t):t=f[2];let w=t,_=(0,nU.rd)();f[3]!==y.state||f[4]!==_?(n=()=>{let e="archived"!==y.state&&"published"!==y.state;_.navigate({_searchParams:e?void 0:[[Oq,"archived"]]})},f[3]=y.state,f[4]=_,f[5]=n):n=f[5];let k=n;f[6]!==C?(i=()=>{C(OK)},f[6]=C,f[7]=i):i=f[7];let S=i;f[8]===Symbol.for("react.memo_cache_sentinel")?(r={minWidth:0},f[8]=r):r=f[8],f[9]!==x?(a=x("overview.title"),f[9]=x,f[10]=a):a=f[10],f[11]!==k||f[12]!==a?(o=(0,v.jsx)(I.so,{flex:"none",children:(0,v.jsx)(I.$n,{mode:"bleed",onClick:k,text:a,textWeight:"regular",padding:2,"data-testid":"back-to-releases-button"})}),f[11]=k,f[12]=a,f[13]=o):o=f[13],f[14]===Symbol.for("react.memo_cache_sentinel")?(l=(0,v.jsx)(I.az,{paddingY:2,flex:"none",children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.vKP,{})})}),f[14]=l):l=f[14],f[15]===Symbol.for("react.memo_cache_sentinel")?(s={minWidth:0,maxWidth:"300px"},f[15]=s):s=f[15],f[16]!==y.metadata.title?(d=y.metadata.title?void 0:{opacity:.5},f[16]=y.metadata.title,f[17]=d):d=f[17],f[18]!==d||f[19]!==w?(c=(0,v.jsx)(I.az,{padding:2,style:s,children:(0,v.jsx)(I.EY,{size:1,weight:"semibold",textOverflow:"ellipsis",style:d,children:w})}),f[18]=d,f[19]=w,f[20]=c):c=f[20],f[21]!==o||f[22]!==c?(u=(0,v.jsxs)(I.so,{flex:1,align:"center",style:r,children:[o,l,c]}),f[21]=o,f[22]=c,f[23]=u):u=f[23];let T="activity"===g;return f[24]!==x?(p=x("dashboard.details.activity"),f[24]=x,f[25]=p):p=f[25],f[26]!==S||f[27]!==T||f[28]!==p?(m=(0,v.jsx)(I.so,{flex:"none",gap:2,children:(0,v.jsx)(I.$n,{icon:eT.G2W,mode:"bleed",onClick:S,padding:2,selected:T,space:2,text:p})}),f[26]=S,f[27]=T,f[28]=p,f[29]=m):m=f[29],f[30]!==u||f[31]!==m?(h=(0,v.jsxs)(I.so,{align:"flex-start",children:[u,m]}),f[30]=u,f[31]=m,f[32]=h):h=f[32],h}function OK(e){return"activity"===e?void 0:"activity"}let OG={textAlign:"center",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},OX={justifyContent:"center",alignItems:"center",height:"100%"},OQ=e=>{let t,n,i=(0,j.c)(10),{emptyState:r,colSpan:a}=e;if("string"==typeof r){let e,t;return i[0]!==r?(e=(0,v.jsx)(I.EY,{muted:!0,size:1,children:r}),i[0]=r,i[1]=e):e=i[1],i[2]!==a||i[3]!==e?(t=(0,v.jsx)(I.Zp,{borderBottom:!0,display:"flex",padding:4,as:"tr",style:OX,children:(0,v.jsx)("td",{colSpan:a,style:OG,children:e})}),i[2]=a,i[3]=e,i[4]=t):t=i[4],t}return i[5]!==r?(t=(0,v.jsx)(r,{}),i[5]=r,i[6]=t):t=i[6],i[7]!==a||i[8]!==t?(n=(0,v.jsx)(I.Zp,{borderBottom:!0,display:"flex",padding:4,as:"tr",style:OX,children:(0,v.jsx)("td",{colSpan:a,style:OG,children:t})}),i[7]=a,i[8]=t,i[9]=n):n=i[9],n},O1=e=>{let t,n,i,r=(0,j.c)(7),{children:a,defaultSort:o}=e,[l,s]=(0,_.useState)(null),[d,c]=(0,_.useState)(o||null);r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{c(t=>
1222t?.column===e?{...t,direction:"asc"===t.direction?"desc":"asc"}:{column:String(e),direction:"desc"})},r[0]=t):t=r[0];let u=t;r[1]!==l||r[2]!==d?(n={searchTerm:l,setSearchTerm:s,sort:d,setSortColumn:u},r[1]=l,r[2]=d,r[3]=n):n=r[3];let p=n;return r[4]!==a||r[5]!==p?(i=(0,v.jsx)(S.Gt.Provider,{value:p,children:a}),r[4]=a,r[5]=p,r[6]=i):i=r[6],i},O2=()=>{let e=(0,_.useContext)(S.Gt);if(!e)throw Error("useTableContext must be used within a TableProvider");return e},O5=ir.P.create(eT.Kpk),O0=e=>{let t,n,i,r=(0,j.c)(8),{headers:a,searchDisabled:o}=e;if(r[0]===Symbol.for("react.memo_cache_sentinel")?(t={paddingInline:`max( 1223 calc((100% - var(--maxInlineSize)) / 2), 1224 var(--paddingInline) 1225 )`},r[0]=t):t=r[0],r[1]!==a||r[2]!==o){let e;r[4]!==o?(e=e=>{let{header:t,style:n,width:i,id:r,sorting:a}=e;return!!t&&(0,v.jsx)(t,{headerProps:{as:"th",id:String(r),style:{...n,width:i||void 0}},header:{id:r,sorting:a},searchDisabled:o},String(r))},r[4]=o,r[5]=e):e=r[5],n=a.map(e),r[1]=a,r[2]=o,r[3]=n}else n=r[3];return r[6]!==n?(i=(0,v.jsx)(I.Zp,{as:"thead",borderBottom:!0,children:(0,v.jsx)(I.so,{as:"tr",style:t,children:n})}),r[6]=n,r[7]=i):i=r[7],i},O7=e=>{let t,n,i,r,a,o=(0,j.c)(12),{header:l,text:s}=e,{sort:d,setSortColumn:c}=O2(),u=180*(d?.direction!=="asc");o[0]!==u?(t={rotate:u},o[0]=u,o[1]=t):t=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(n={duration:.25,ease:"easeInOut"},o[2]=n):n=o[2],o[3]!==t?(i=(0,v.jsx)(O5,{initial:!1,animate:t,transition:n}),o[3]=t,o[4]=i):i=o[4];let p=i,m=l.sorting&&d?.column===l.id?p:void 0;return o[5]!==l.id||o[6]!==c?(r=()=>c(String(l.id)),o[5]=l.id,o[6]=c,o[7]=r):r=o[7],o[8]!==m||o[9]!==r||o[10]!==s?(a=(0,v.jsx)(tL.$n,{iconRight:m,onClick:r,mode:"bleed",size:"default",text:s}),o[8]=m,o[9]=r,o[10]=s,o[11]=a):a=o[11],a},O3=e=>{let t,n,i,r,a,o=(0,j.c)(16),{headerProps:l,searchDisabled:s,placeholder:d}=e,{t:c}=as(),{setSearchTerm:u,searchTerm:p}=O2();o[0]!==d||o[1]!==c?(t=d||c("search.placeholder"),o[0]=d,o[1]=c,o[2]=t):t=o[2];let m=p||"";o[3]!==u?(n=e=>u(e.currentTarget.value),i=()=>u(""),o[3]=u,o[4]=n,o[5]=i):(n=o[4],i=o[5]);let h=!!p;return o[6]!==s||o[7]!==t||o[8]!==m||o[9]!==n||o[10]!==i||o[11]!==h?(r=(0,v.jsx)(I.ks,{border:!1,fontSize:1,icon:eT.WIv,placeholder:t,radius:3,value:m,disabled:s,onChange:n,onClear:i,clearButton:h}),o[6]=s,o[7]=t,o[8]=m,o[9]=n,o[10]=i,o[11]=h,o[12]=r):r=o[12],o[13]!==l||o[14]!==r?(a=(0,v.jsx)(I.BJ,{...l,flex:1,paddingY:2,paddingRight:3,sizing:"border",children:r}),o[13]=l,o[14]=r,o[15]=a):a=o[15],a},O8=e=>{let t,n=(0,j.c)(2),{text:i}=e;return n[0]!==i?(t=(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:i})}),n[0]=i,n[1]=t):t=n[1],t},O4=e=>{let t,n,i,r=(0,j.c)(17),{isEmptyState:a,header:o,content:l,contentHeight:s}=e;if(a){let e,t,n,i,a,s;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e={height:"100%",display:"grid",gridTemplateRows:"auto 1fr"},r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(t={height:"100%",position:"relative",overflow:"hidden"},r[1]=t):t=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(n={width:"100%",height:"100%"},i={height:"100%"},r[2]=n,r[3]=i):(n=r[2],i=r[3]),r[4]!==l?(a=(0,v.jsx)(I.az,{style:t,as:"div",children:(0,v.jsx)("table",{style:n,children:(0,v.jsx)("tbody",{style:i,children:l})})}),r[4]=l,r[5]=a):a=r[5],r[6]!==o||r[7]!==a?(s=(0,v.jsxs)("div",{style:e,children:[o,a]}),r[6]=o,r[7]=a,r[8]=s):s=r[8],s}return r[9]!==s?(t={height:s,position:"relative"},r[9]=s,r[10]=t):t=r[10],r[11]!==l||r[12]!==t?(n=(0,v.jsx)(I.az,{style:t,as:"tbody",children:l}),r[11]=l,r[12]=t,r[13]=n):n=r[13],r[14]!==o||r[15]!==n?(i=(0,v.jsxs)(I.BJ,{as:"table",children:[o,n]}),r[14]=o,r[15]=n,r[16]=i):i=r[16],i},O6=({columnDefs:e,data:t,emptyState:n,searchFilter:i,rowId:r,rowActions:a,loading:o=!1,rowProps:l=()=>({}),scrollContainerRef:s,hideTableInlinePadding:d=!1})=>{let{searchTerm:c,sort:u}=O2(),p=(0,_.useRef)(null),m=(0,_.useMemo)(()=>{let n=i?i(t,c||""):t;if(!u)return n;let r=e.find(e=>e.id===u.column);return[...n].sort((e,t)=>{let n,[i,a]=[e,t].map(e=>r?.sortTransform?.(e,u.direction)??(0,V.A)(e,u.column));if("string"!=typeof i||"string"!=typeof a||(0,t0.f)(i)||(0,t0.f)(a)){let[e,t]=[i,a].map(e=>r?.sortTransform&&"number"==typeof e?e:"string"==typeof e?Date.parse(e):0);n=e-t}else n=i.toLowerCase().localeCompare(a.toLowerCase());return"asc"===u.direction?n:-n})},[e,t,i,c,u]),h=(0,E.Te)({count:m.length,getScrollElement:()=>s,estimateSize:()=>59,overscan:5}),f=(0,_.useMemo)(()=>({id:"actions",sorting:!1,width:50,header:({headerProps:{id:e}})=>(0,v.jsx)(I.so,{as:"th",id:e,paddingY:3,paddingX:3,sizing:"border",style:{width:"50px"},children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:"\xa0"})}),cell:({datum:e,cellProps:{id:t}})=>(0,v.jsx)(I.so,{as:"td",id:t,align:"center",flex:"none",padding:3,style:{width:"25px"},children:!e.isLoading&&a?.({datum:e})||(0,v.jsx)(I.az,{style:{width:"25px"}})})}),[a]),g=(0,_.useMemo)(()=>(a?[...e,f]:e).filter(e=>!e.hidden),[e,f,a]),y=(0,_.useMemo)(()=>function(e){let t=l(e),n=o?`skeleton-${e.index}`:String((0,V.A)(e,r));return(0,v.jsx)(I.Zp,{"data-testid":o?"table-row-skeleton":"table-row",borderBottom:!0,display:"flex","data-index":e.index,as:"tr",style:{height:`${e.virtualRow.size}px`,position:"absolute",top:0,left:0,right:0,transform:`translateY(${e.virtualRow.start}px)`,paddingInline:`max( 1226 calc((100% - var(--maxInlineSize)) / 2), 1227 var(--paddingInline) 1228 )`},...t,children:g.map(({cell:t,style:n,width:i,id:r,sorting:a=!1})=>(0,v.jsx)(_.Fragment,{children:(0,v.jsx)(t,{datum:{...e,isLoading:o},cellProps:{as:"td",id:String(r),style:{...n,width:i||void 0}},sorting:a})},String(r)))},n)},[g,o,r,l]),C=(0,_.useMemo)(()=>(0,v.jsx)(OQ,{emptyState:n,colSpan:g.length}),[g.length,n]),x=(0,_.useMemo)(()=>g.map(({cell:e,sortTransform:t,...n})=>({...n,id:String(n.id)})),[g]),b=(0,I.DP)(),j=!d&&b.sanity.v2?.container[3]||0;return(0,v.jsx)("div",{ref:p,style:{height:"100%"},children:(0,v.jsx)("div",{style:{width:"100%",height:"100%",position:"relative","--maxInlineSize":(0,I.D0)(j),"--paddingInline":(0,I.D0)(b.sanity.v2?.space[3]??0)},children:(0,v.jsx)(O4,{isEmptyState:0===m.length&&!o,header:(0,v.jsx)(O0,{headers:x,searchDisabled:o||!c&&!t.length}),content:o?Array.from({length:3}).map((e,t)=>{let n=`skeleton-${t}`;return y({_id:n,isLoading:!0,virtualRow:{index:t,start:59*t,size:59,lane:0,key:n,end:59*t+59},index:t,isFirst:0===t,isLast:2===t})}):0===m.length?C:h.getVirtualItems().map((e,t)=>y({...m[e.index],virtualRow:e,index:t,isFirst:0===e.index,isLast:e.index===m.length-1})),contentHeight:`${h.getTotalSize()}px`})})})},O9=e=>{let t,n,i,r,a=(0,j.c)(8);return a[0]!==e?({defaultSort:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==n?(i=(0,v.jsx)(O6,{...n}),a[3]=n,a[4]=i):i=a[4],a[5]!==t||a[6]!==i?(r=(0,v.jsx)(tL.vE,{children:(0,v.jsx)(O1,{defaultSort:t,children:i})}),a[5]=t,a[6]=i,a[7]=r):r=a[7],r},Ve="u">typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"Cmd":"Ctrl",Vt=I.Qx.space[4];function Vn(){let e=(0,_.useContext)(S.o7);if(void 0===e)throw Error("useSearchState must be used within an SearchProvider");return e}function Vi({allowEmptyQueries:e,terms:t}){let n=!!e||t.query.length>0,i=!!t.filter,r=t.types.length>0;return n||i||r}let Vr=(0,tZ.v_)("mod+k"),Va=(0,tZ.v_)("escape");function Vo(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(24),{children:p,hasValidTerms:m,onClose:h,onOpen:f,open:g}=e,y=(0,_.useRef)(!1),{dispatch:C,searchCommandList:x,setOnClose:b,state:v}=Vn(),{result:w}=v;u[0]!==C||u[1]!==h||u[2]!==x?(t=()=>{C({index:x?.getTopIndex()??-1,type:"LAST_ACTIVE_INDEX_SET"}),h()},u[0]=C,u[1]=h,u[2]=x,u[3]=t):t=u[3];let k=t;return u[4]!==k||u[5]!==f||u[6]!==g?(n={onClose:k,onOpen:f,open:g},u[4]=k,u[5]=f,u[6]=g,u[7]=n):n=u[7],function(e){let t,n,i=(0,j.c)(7),{open:r,onClose:a,onOpen:o}=e,{isTopLayer:l}=(0,I.Z4)();i[0]!==a?(t=()=>{a?.()},i[0]=a,i[1]=t):t=i[1];let s=t;i[2]!==s||i[3]!==l||i[4]!==o||i[5]!==r?(n=e=>
1228{Vr(e)&&(e.preventDefault(),r?s():o?.()),Va(e)&&r&&l&&s()},i[2]=s,i[3]=l,i[4]=o,i[5]=r,i[6]=n):n=i[6],(0,I.Pm)(n)}(n),u[8]!==k||u[9]!==b?(i=()=>{b(()=>k)},r=[k,b],u[8]=k,u[9]=b,u[10]=i,u[11]=r):(i=u[10],r=u[11]),(0,_.useEffect)(i,r),u[12]!==C||u[13]!==m||u[14]!==w.loaded?(a=()=>{(!m||w.loaded)&&y.current&&C({index:0,type:"LAST_ACTIVE_INDEX_SET"})},o=[C,m,w.loaded],u[12]=C,u[13]=m,u[14]=w.loaded,u[15]=a,u[16]=o):(a=u[15],o=u[16]),(0,_.useEffect)(a,o),u[17]!==C||u[18]!==m||u[19]!==g?(l=()=>{m||!y.current||g||C({type:"ORDERING_RESET"})},s=[C,m,g],u[17]=C,u[18]=m,u[19]=g,u[20]=l,u[21]=s):(l=u[20],s=u[21]),(0,_.useEffect)(l,s),u[22]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{y?.current||(y.current=!0)},c=[],u[22]=d,u[23]=c):(d=u[22],c=u[23]),(0,_.useEffect)(d,c),p}function Vl(e){return e.reduce((e,t)=>(e[t.name]=t,e),{})}function Vs(e){return e.reduce((e,t)=>(e[t.type]=t,e),{})}function Vd(e,t){return t?e[t]:void 0}function Vc(e,t){return{fieldId:t,filterName:e.name,operatorType:e?.operators.find(e=>"item"===e.type)?.name||""}}function Vu({fieldDefinitions:e,filterDefinitions:t,filters:n,operatorDefinitions:i}){return n.filter(n=>Vf({filter:n,filterDefinitions:t,fieldDefinitions:e,operatorDefinitions:i})).map(n=>Vd(i,n.operatorType)?.groqFilter({fieldPath:function({filter:e,fieldDefinitions:t,filterDefinitions:n}){let i=Vp(t,e),r=n[e.filterName];if(r)switch(r.type){case"field":return i?.fieldPath;case"pinned":return r?.fieldPath;default:return}}({filter:n,fieldDefinitions:e,filterDefinitions:t}),value:n?.value})).filter(e=>!(0,ej.A)(e)).filter(r$).join(" && ")}function Vp(e,t){return t?.fieldId?e[t.fieldId]:void 0}function Vm(e){return[e.filterName,...e.fieldId?[e.fieldId]:[]].join("-")}function Vh({fieldDefinitions:e,filters:t,types:n}){let i=n.map(e=>e.name),r=Object.values(e).filter(e=>t.map(e=>e?.fieldId).includes(e.id)).filter(e=>e.documentTypes.length>0).map(e=>e.documentTypes),a=(0,K.A)(...r),o=[];return i.length>0&&o.push(i),a.length>0&&o.push(a),(0,K.A)(...o).sort()}function Vf({filter:e,filterDefinitions:t,fieldDefinitions:n,operatorDefinitions:i}){let r=t[e.filterName],a=Vd(i,e.operatorType),o=Vp(n,e);return!(!r||!a||e.fieldId&&!o||"field"===r.type&&(!o?.fieldPath||!e.fieldId||!a.groqFilter({fieldPath:o.fieldPath,value:e.value}))||"pinned"===r.type&&!a.groqFilter({fieldPath:r.fieldPath,value:e.value}))}let Vg=(0,tZ.v_)("escape"),Vy=eI.I4.div.withConfig({displayName:"HiddenOverlay",componentId:"sc-ijpdjy-0"})`background:transparent;height:100%;left:0;position:fixed;top:0;width:100%;z-index:-1;`;function VC(e){let t,n,i,r,a,o,l=(0,j.c)(15),{anchorElement:s,children:d,onClose:c}=e,{isTopLayer:u}=(0,I.Z4)();l[0]!==u||l[1]!==c?(t=e=>{Vg(e)&&u&&c()},l[0]=u,l[1]=c,l[2]=t):t=l[2],(0,I.Pm)(t);let p=function(e){let t,n,i,r,a,o,l=(0,j.c)(10);l[0]!==e?(t=e&&Vx(e),l[0]=e,l[1]=t):t=l[1];let[s,d]=(0,_.useState)(t);l[2]!==e?(n=()=>{e&&d(Vx(e))},l[2]=e,l[3]=n):n=l[3];let c=n;return l[4]!==e?(i=()=>{e&&d(Vx(e))},r=[e],l[4]=e,l[5]=i,l[6]=r):(i=l[5],r=l[6]),(0,_.useEffect)(i,r),l[7]!==c?(a=()=>(window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)),o=[c],l[7]=c,l[8]=a,l[9]=o):(a=l[8],o=l[9]),(0,_.useEffect)(a,o),s}(s||null);l[3]!==c?(n=(0,v.jsx)(Vy,{onClick:c}),l[3]=c,l[4]=n):n=l[4];let m=`min(calc(100vh - ${p}px - 5px - ${Vt}px), 500px`;return l[5]!==m?(i={maxHeight:m,zIndex:1},l[5]=m,l[6]=i):i=l[6],l[7]!==d?(r=(0,v.jsx)(I.so,{children:d}),l[7]=d,l[8]=r):r=l[8],l[9]!==i||l[10]!==r?(a=(0,v.jsx)(tq.Ay,{autoFocus:!1,returnFocus:!0,children:(0,v.jsx)(I.Zp,{display:"flex",overflow:"hidden",radius:3,style:i,children:r})}),l[9]=i,l[10]=r,l[11]=a):a=l[11],l[12]!==n||l[13]!==a?(o=(0,v.jsxs)(v.Fragment,{children:[n,a]}),l[12]=n,l[13]=a,l[14]=o):o=l[14],o}function Vx(e){let t=e.getBoundingClientRect();return t.y+t.height+5}let Vb=(0,eI.I4)(I.az).withConfig({displayName:"CustomTextInputBox",componentId:"sc-gvtuis-0"})(({$background:e,$smallClearButton:t})=>(0,eI.AH)` 1229 width: 100%; 1230 1231 input + span { 1232 background: ${({theme:t})=>e?t.sanity.color.card.disabled.bg2:"transparent"}; 1233 } 1234 1235 [data-qa='clear-button'] { 1236 background: none; 1237 box-shadow: none; 1238 display: flex; /* TODO: hack, currently used to vertically center <TextInput>'s clearButton */ 1239 transform: ${t?"scale(0.8)":"scale(1)"}; 1240 &:hover { 1241 opacity: 0.5; 1242 } 1243 } 1244 `),Vv=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l=(0,j.c)(11);return l[0]!==e?({$background:n,$smallClearButton:i,...r}=e,l[0]=e,l[1]=n,l[2]=i,l[3]=r):(n=l[1],i=l[2],r=l[3]),l[4]!==t||l[5]!==r?(a=(0,v.jsx)(I.ks,{...r,ref:t}),l[4]=t,l[5]=r,l[6]=a):a=l[6],l[7]!==n||l[8]!==i||l[9]!==a?(o=(0,v.jsx)(Vb,{$background:n,$smallClearButton:i,children:a}),l[7]=n,l[8]=i,l[9]=a,l[10]=o):o=l[10],o}),Vj=(0,eI.I4)(I.az).withConfig({displayName:"SearchHeaderBox",componentId:"sc-50u6gq-0"})`border-bottom:1px solid ${({theme:e})=>e.sanity.color.base.border};flex-shrink:0;`,Vw=(0,eI.I4)(I.so).withConfig({displayName:"SearchHeaderContentFlex",componentId:"sc-50u6gq-1"})`box-sizing:border-box;`,V_=(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(11),{ariaInputLabel:a,onChange:o,onClear:l,typeFilter:s}=e,{state:d}=Vn(),{fullscreen:c}=d,{t:u}=as(),p=!!s,m=c?2:1;return r[0]!==u?(n=u("search.filter-placeholder"),r[0]=u,r[1]=n):n=r[1],r[2]!==a||r[3]!==o||r[4]!==l||r[5]!==t||r[6]!==p||r[7]!==m||r[8]!==n||r[9]!==s?(i=(0,v.jsx)(Vj,{children:(0,v.jsx)(Vw,{align:"center",flex:1,padding:1,children:(0,v.jsx)(Vv,{__unstable_disableFocusRing:!0,$smallClearButton:!0,"aria-label":a,autoComplete:"off",border:!1,clearButton:p,fontSize:m,icon:eT.WIv,muted:!0,onChange:o,onClear:l,placeholder:n,ref:t,spell
1244Check:!1,radius:2,value:s})})}),r[2]=a,r[3]=o,r[4]=l,r[5]=t,r[6]=p,r[7]=m,r[8]=n,r[9]=s,r[10]=i):i=r[10],i});function Vk({fieldDefinitions:e,filterDefinitions:t,filters:n,id:i,headerTitle:r,tone:a}){let o=n.map(n=>({fieldDefinition:Vp(e,n),filterDefinition:t[n.filterName],filter:n,group:i,tone:a||"default",type:"filter"}));return o.length>0?[...r?[{title:r||"",tone:a||"default",type:"header"}]:[],...o]:[]}function VS(e,t){return e.title.toLowerCase().includes(t.toLowerCase())}function VI(e){return"pinned"===e.type&&"u">typeof e?.group}function VT(e){return"pinned"===e.type&&typeof e?.group>"u"}function VE(e){let t,n,i=(0,j.c)(9),{filter:r,maxLength:a}=e,{state:o}=Vn(),{definitions:l}=o;e:{let e;i[0]!==l.filters||i[1]!==r.filterName?(e=l.filters[r.filterName],i[0]=l.filters,i[1]=r.filterName,i[2]=e):e=i[2];let n=e;switch(n?.type){case"field":{let e;i[3]!==l.fields||i[4]!==r?(e=Vp(l.fields,r),i[3]=l.fields,i[4]=r,i[5]=e):e=i[5];let n=e;if(n?.titlePath){t=n.titlePath[n.titlePath.length-1];break e}t=null;break e}case"pinned":t=n.title;break e;default:t=null}}let s=t;return s?(i[6]!==a||i[7]!==s?(n=a&&s.length>a?(0,v.jsxs)("span",{children:[s.slice(0,a),"â¦"]}):(0,v.jsx)("span",{children:s}),i[6]=a,i[7]=s,i[8]=n):n=i[8],n):null}function V$(e){let t,n,i=(0,j.c)(6),{filter:r}=e,{state:a}=Vn(),{definitions:o}=a;i[0]!==o.filters||i[1]!==r.filterName?(t=o.filters[r.filterName]?.icon,i[0]=o.filters,i[1]=r.filterName,i[2]=t):t=i[2];let l=t;if(l){let e;return i[3]!==l?(e=(0,v.jsx)(l,{}),i[3]=l,i[4]=e):e=i[4],e}return i[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(eT.KSC,{}),i[5]=n):n=i[5],n}function VA(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(18),{filter:c}=e,{state:u}=Vn(),{definitions:p}=u;if(d[0]!==p.fields||d[1]!==c){let e=Vp(p.fields,c);t=I.BJ,n=2,i=e?.titlePath&&e.titlePath?.length>1&&(0,v.jsx)(I.az,{marginLeft:4,children:(0,v.jsx)(I.EY,{muted:!0,size:0,children:e.titlePath.slice(0,-1).map((t,n)=>(0,v.jsxs)(_.Fragment,{children:[(0,v.jsx)("span",{children:t}),n!==e.titlePath.length-2&&(0,v.jsx)("span",{style:{opacity:.75,paddingLeft:"0.25em",paddingRight:"0.25em"},children:(0,v.jsx)(eT.vKP,{})})]},n))})}),d[0]=p.fields,d[1]=c,d[2]=t,d[3]=n,d[4]=i}else t=d[2],n=d[3],i=d[4];return d[5]===Symbol.for("react.memo_cache_sentinel")?(r={flexShrink:0},d[5]=r):r=d[5],d[6]!==c?(a=(0,v.jsx)(I.az,{style:r,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(V$,{filter:c})})}),d[6]=c,d[7]=a):a=d[7],d[8]!==c?(o=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:(0,v.jsx)(VE,{filter:c})}),d[8]=c,d[9]=o):o=d[9],d[10]!==a||d[11]!==o?(l=(0,v.jsxs)(I.so,{align:"flex-start",gap:3,children:[a,o]}),d[10]=a,d[11]=o,d[12]=l):l=d[12],d[13]!==t||d[14]!==n||d[15]!==i||d[16]!==l?(s=(0,v.jsxs)(t,{space:n,children:[i,l]}),d[13]=t,d[14]=n,d[15]=i,d[16]=l,d[17]=s):s=d[17],s}function VD(e,t){let n=t.split("."),i=n[0];if(i&&(0,eD.$d)(e)){let t=e.fields.find(e=>e.name===i);if(t){let e=n.slice(1).join(".");return e?VD(t.type,e):t}}}function Vz(e){var t;return(0,_.isValidElement)(e)?(t=(0,id.F0)(e),new DOMParser().parseFromString(t,"text/html")?.body.textContent||""):"string"==typeof e?e:""}function VP(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(60),{children:y,fieldDefinition:C,filterDefinition:x,visible:b}=e,{state:w}=Vn(),{documentTypesNarrowed:_}=w,{t:k}=as(),S=R8();if(g[0]!==_.length||g[1]!==C||g[2]!==x||g[3]!==S||g[4]!==k){let e=C?.documentTypes?C.documentTypes.map(e=>{let t=S.get(e);return t?.title||(0,eu.A)(t?.name)}).filter(r$).sort():rM;if(g[16]!==C||g[17]!==S||g[18]!==k){let e;if(C?.documentTypes){let t;if(g[28]!==C.documentTypes||g[29]!==C.fieldPath||g[30]!==S){let e;g[32]!==C.fieldPath||g[33]!==S?(e=e=>{let t=S.get(e);if(t){let e=VD(t,C.fieldPath);return e?.type.description&&Vz(e?.type.description)}return null},g[32]=C.fieldPath,g[33]=S,g[34]=e):e=g[34];let n=C.documentTypes.map(e).filter(r$).sort();t=(0,B.A)(n),g[28]=C.documentTypes,g[29]=C.fieldPath,g[30]=S,g[31]=t}else t=g[31];let n=t;1===n.length&&(e=n[0])}i=tL.m_,n=I.Zp,d="default",c=2,g[35]===Symbol.for("react.memo_cache_sentinel")?(u={maxWidth:"250px"},g[35]=u):u=g[35],t=I.BJ,r=4,g[36]!==C||g[37]!==k?(a=C&&(0,v.jsxs)(I.BJ,{space:3,children:[(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:k("search.filter-field-tooltip-name")}),(0,v.jsx)(NY,{size:1,style:{fontFamily:"monospace"},tone:"primary",textOverflow:"ellipsis",children:C?.name})]}),g[36]=C,g[37]=k,g[38]=a):a=g[38],o=e&&(0,v.jsxs)(I.BJ,{space:3,children:[(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:k("search.filter-field-tooltip-description")}),(0,v.jsx)(I.EY,{muted:!0,size:1,children:ae(e,256)})]}),g[16]=C,g[17]=S,g[18]=k,g[19]=t,g[20]=n,g[21]=i,g[22]=r,g[23]=a,g[24]=o,g[25]=d,g[26]=c,g[27]=u}else t=g[19],n=g[20],i=g[21],r=g[22],a=g[23],o=g[24],d=g[25],c=g[26],u=g[27];g[39]!==x?(l=x?.description&&(0,v.jsx)(I.EY,{muted:!0,size:1,children:ae(x.description,256)}),g[39]=x,g[40]=l):l=g[40],s=!_.length&&e.length>0&&(0,v.jsxs)(I.BJ,{space:2,children:[(0,v.jsxs)(I.so,{align:"center",gap:1,children:[(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:k("search.filter-field-tooltip-used-in-document-types")}),(0,v.jsx)(I.Zp,{padding:1,radius:2,tone:"transparent",children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:e.length})})]}),(0,v.jsxs)(I.EY,{size:1,weight:"regular",muted:!0,children:[e.slice(0,10).join(", "),e?.length>10?` +${e.length-10} more`:""]})]}),g[0]=_.length,g[1]=C,g[2]=x,g[3]=S,g[4]=k,g[5]=t,g[6]=n,g[7]=i,g[8]=r,g[9]=a,g[10]=o,g[11]=l,g[12]=s,g[13]=d,g[14]=c,g[15]=u}else t=g[5],n=g[6],i=g[7],r=g[8],a=g[9],o=g[10],l=g[11],s=g[12],d=g[13],c=g[14],u=g[15];g[41]!==t||g[42]!==r||g[43]!==a||g[44]!==o||g[45]!==l||g[46]!==s?(p=(0,v.jsxs)(t,{space:r,children:[a,o,l,s]}),g[41]=t,g[42]=r,g[43]=a,g[44]=o,g[45]=l,g[46]=s,g[47]=p):p=g[47],g[48]!==n||g[49]!==p||g[50]!==d||g[51]!==c||g[52]!==u?(m=(0,v.jsx)(n,{tone:d,radius:c,style:u,children:p}),g[48]=n,g[49]=p,g[50]=d,g[51]=c,g[52]=u,g[53]=m):m=g[53];let T=!b;return g[54]===Symbol.for("react.memo_cache_sentinel")?(h=["left"],g[54]=h):h=g[54],g[55]!==i||g[56]!==y||g[57]!==m||g[58]!==T?(f=(0,v.jsx)(i,{content:m,disabled:T,fallbackPlacements:h,placement:"right",portal:!0,children:y}),g[55]=i,g[56]=y,g[57]=m,g[58]=T,g[59]=f):f=g[59],f}let VR=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(29);u[0]!==e?({item:t,onClose:n,...i}=e,u[0]=e,u[1]=t,u[2]=n,u[3]=i):(t=u[1],n=u[2],i=u[3]);let{dispatch:p,state:m}=Vn(),{filters:h}=m;u[4]!==p||u[5]!==t.filter||u[6]!==n?(r=()=>{p({filter:t.filter,type:"TERMS_FILTERS_ADD"}),n?.()},u[4]=p,u[5]=t.filter,u[6]=n,u[7]=r):r=u[7];let f=r;if(u[8]!==h||u[9]!==t.filter){let e;u[11]!==t.filter?(e=e=>Vm(e)===Vm(t.filter),u[11]=t.filter,u[12]=e):e=u[12],a=h.find(e),u[8]=h,u[9]=t.filter,u[10]=a}else a=u[10];let g=!!a,y=!!(t.fieldDefinition||t.filterDefinition.description),C=g?void 0:f;u[13]===Symbol.for("react.memo_cache_sentinel")?(o={position:"relative",whiteSpace:"normal",width:"100%"},u[13]=o):o=u[13];let x=t?.tone;return u[14]!==t.filter?(l=(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(VA,{filter:t.filter})}),u[14]=t.filter,u[15]=l):l=u[15],u[16]!==t.fieldDefinition||u[17]!==t.filterDefinition||u[18]!==l||u[19]!==y?(s=(0,v.jsx)(VP,{fieldDefinition:t.fieldDefinition,filterDefinition:t.filterDefinition,visible:y,children:l}),u[16]=t.fieldDefinition,u[17]=t.filterDefinition,u[18]=l,u[19]=y,u[20]=s):s=u[20],u[21]!==g||u[22]!==C||u[23]!==x||u[24]!==s?(d=(0,v.jsx)(I.$n,{disabled:g,fontSize:1,justify:"flex-start",mode:"bleed",onClick:C,padding:0,style:o,tabIndex:-1,tone:x,children:s}),u[21]=g,u[22]=C,u[23]=x,u[24]=s,u[25]=d):d=u[25],u[26]!==i||u[27]!==d?(c=(0,v.jsx)(I.az,{...i,children:d}),u[26]=i,u[27]=d,u[28]=c):c=u[28],c}),VN=(0,_.memo)(function(e){let t,n,i=(0,j.c)(5),{item:r}=e,a=r?.tone;return i[0]!==r.title?(t=(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",weight:"medium",children:r.title}),i[0]=r.title,i[1]=t):t=i[1],i[2]!==a||i[3]!==t?(n=(0,v.jsx)(I.az,{paddingTop:1,children:(0,v.jsx)(I.Zp,{borderBottom:!0,paddingX:2,paddingY:3,tone:a,children:t})}),i[2]=a,i[3]=t,i[4]=n):n=i[4],n}),VO={width:"300px"};function VV(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(39),{onClose:h}=e,[f,g]=(0,_.useState)(null),[y,C]=(0,_.useState)(""),{t:x}=as();m[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>C(e.currentTarget.value),m[0]=t):t=m[0];let b=t;m[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>C(""),m[1]=n):n=m[1];let w=n,k=R8(),{state:S}=Vn(),{documentTypesNarrowed:T,definitions:E,filters:$,terms:A}=S,{types:D}=A;m[2]!==E.fields||m[3]!==E.filters||m[4]!==T||m[5]!==k||m[6]!==x||m[7]!==y||m[8]!==D?(i=function({documentTypesNarrowed:e,fieldDefinitions:t,filterDefinitions:n,schema:i,titleFilter:r,types:a,t:o}){let l=Object.values(t).filter(e=>{var t,n;return t=e,n=r,t.titlePath.join("/").toLowerCase().includes(n.toLowerCase())}).map(e=>{let t=n[e.filterName];return t?Vc(t,e.id):null}).filter(r$),s=function({fieldDefinitions:e,filterDefinitions:t,titleFilter:n}
1244){let i=Object.values(t).filter(VT).filter(e=>VS(e,n)).map(e=>Vc(e)),r=Object.values(t).filter(VI).filter(e=>VS(e,n)).reduce((e,t)=>(e[t.group]=e[t.group]||[],e[t.group].push(Vc(t)),e),{});return[...Vk({fieldDefinitions:e,filterDefinitions:t,filters:i,id:"pinned-ungrouped",tone:"primary"}),...Object.entries(r).flatMap(([n,i])=>Vk({fieldDefinitions:e,filterDefinitions:t,filters:i,headerTitle:n,id:n,tone:"primary"}))]}({fieldDefinitions:t,filterDefinitions:n,titleFilter:r});return 0===e.length?[...s,...Vk({fieldDefinitions:t,filterDefinitions:n,filters:l,headerTitle:o("search.filter-all-fields-header"),id:"field"})]:[...s,...function({documentTypesNarrowed:e,fieldDefinitions:t,filterDefinitions:n,filters:i,schema:r,types:a,t:o}){let l=i.filter(n=>{var i,r;return i=e,r=Vp(t,n),0===(0,em.A)(i,r?.documentTypes||[]).length});return[...e.length>1&&a.length>1?Vk({fieldDefinitions:t,filterDefinitions:n,filters:l,headerTitle:o("search.filter-shared-fields-header"),id:"shared",tone:"primary"}):[],...e.map(e=>{let t=r.get(e);return{title:t?.title||(0,eu.A)(t?.name)||"(Unknown type)",documentType:e}}).sort((e,t)=>e.title.localeCompare(t.title)).flatMap(({documentType:e,title:r})=>{let a=i.filter(n=>{var i,r;return i=[e],r=Vp(t,n),r?.documentTypes.some(e=>i.includes(e))});return Vk({fieldDefinitions:t,filterDefinitions:n,filters:a,id:r,headerTitle:r})})]}({documentTypesNarrowed:e,fieldDefinitions:t,filterDefinitions:n,filters:l,schema:i,types:a,t:o})]}({documentTypesNarrowed:T,fieldDefinitions:E.fields,filterDefinitions:E.filters,schema:k,titleFilter:y,types:D,t:x}),m[2]=E.fields,m[3]=E.filters,m[4]=T,m[5]=k,m[6]=x,m[7]=y,m[8]=D,m[9]=i):i=m[9];let z=i;m[10]!==h?(r=e=>"filter"===e.type?(0,v.jsx)(VR,{item:e,onClose:h,paddingBottom:1}):"header"===e.type?(0,v.jsx)(VN,{item:e}):null,m[10]=h,m[11]=r):r=m[11];let P=r;m[12]!==z||m[13]!==$?(a=e=>{let t=z[e];return"filter"!==t.type||!!$.find(e=>Vm(e)===Vm(t.filter))},m[12]=z,m[13]=$,m[14]=a):a=m[14];let R=a;m[15]!==z?(o=e=>{let t=z[e];switch(t.type){case"filter":return[...t.group?[t.group]:[],Vm(t.filter)].join("-");case"header":return`${t.type}-${t.title}`;default:return e}},m[15]=z,m[16]=o):o=m[16];let N=o;return m[17]!==x?(l=x("search.filter-by-title-aria-label"),m[17]=x,m[18]=l):l=m[18],m[19]!==l||m[20]!==y?(s=(0,v.jsx)(V_,{ariaInputLabel:l,onChange:b,onClear:w,ref:g,typeFilter:y}),m[19]=l,m[20]=y,m[21]=s):s=m[21],m[22]!==z||m[23]!==R||m[24]!==N||m[25]!==f||m[26]!==P||m[27]!==x?(d=z.length>0&&(0,v.jsx)(rr,{activeItemDataAttr:"data-hovered",ariaLabel:x("search.filters-aria-label",{count:z.length}),autoFocus:"input",getItemDisabled:R,getItemKey:N,inputElement:f,itemHeight:45,items:z,overscan:20,padding:1,paddingBottom:0,renderItem:P}),m[22]=z,m[23]=R,m[24]=N,m[25]=f,m[26]=P,m[27]=x,m[28]=d):d=m[28],m[29]!==z.length||m[30]!==x||m[31]!==y?(c=0==z.length&&(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:x("search.filter-no-matches-found",{filter:y})})}),m[29]=z.length,m[30]=x,m[31]=y,m[32]=c):c=m[32],m[33]!==d||m[34]!==c?(u=(0,v.jsxs)(I.so,{children:[d,c]}),m[33]=d,m[34]=c,m[35]=u):u=m[35],m[36]!==s||m[37]!==u?(p=(0,v.jsxs)(I.so,{direction:"column",style:VO,children:[s,u]}),m[36]=s,m[37]=u,m[38]=p):p=m[38],p}function VM(){let e,t,n,i,r,a,o,l,s,d=(0,j.c)(18),[c,u]=(0,_.useState)(!1),[p,m]=(0,_.useState)(null),h=(0,_.useRef)(null),{t:f}=as(),{state:g}=Vn(),{fullscreen:y}=g;d[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>u(!1),d[0]=e):e=d[0];let C=e;d[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>u(!0),d[1]=t):t=d[1];let x=t;d[2]!==p?(n=()=>[p,h.current],d[2]=p,d[3]=n):n=d[3],(0,I.PR)(C,n),d[4]===Symbol.for("react.memo_cache_sentinel")?(i=[5,0,0,0],d[4]=i):i=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.jsx)(VV,{onClose:C}),d[5]=r):r=d[5],d[6]!==p?(a=(0,v.jsx)(VC,{anchorElement:p,onClose:C,children:r}),d[6]=p,d[7]=a):a=d[7];let b=y?"large":"default";return d[8]!==f?(o=f("search.action.add-filter"),d[8]=f,d[9]=o):o=d[9],d[10]!==c||d[11]!==b||d[12]!==o?(l=(0,v.jsx)(tL.$n,{icon:eT.REV,mode:"bleed",onClick:x,size:b,ref:m,selected:c,text:o}),d[10]=c,d[11]=b,d[12]=o,d[13]=l):l=d[13],d[14]!==c||d[15]!==a||d[16]!==l?(s=(0,v.jsx)(tL.AM,{__unstable_margins:i,content:a,open:c,placement:"bottom-start",radiu
1244s:3,ref:h,portal:!0,children:l}),d[14]=c,d[15]=a,d[16]=l,d[17]=s):s=d[17],s}function VL({availableCharacters:e=40,types:t}){let n;if(0===t.length)return{remainingCount:0,types:[]};let i=t.reduce((n=e,function(t,i,r){let a=VB(i);return n-=a.length,(0===r||e>a.length&&n>a.length)&&t.push(i),t}),[]);return{remainingCount:t.length-i.length,types:i.map(VB)}}function VF({t:e,availableCharacters:t,types:n}){if(0===n.length)return e("search.document-type-list-all-types");let{remainingCount:i,types:r}=VL({availableCharacters:t,types:n});return e(i>0?"search.document-type-list-truncated":"search.document-type-list",{count:i,types:r,formatParams:{types:{style:"short",type:"unit"}}})}function VB(e){return e.title??e.name}function VY(e){return gs(e).filter(e=>!1!==e.__experimental_omnisearch_visibility)}function VH(e,t){return(e.title??e.name).localeCompare(t.title??t.name)}let VU=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(23);d[0]!==e?({selected:n,type:i,...t}=e,d[0]=e,d[1]=t,d[2]=n,d[3]=i):(t=d[1],n=d[2],i=d[3]);let{dispatch:c}=Vn();d[4]!==c||d[5]!==i?(r=()=>{c({type:"TERMS_TYPE_ADD",schemaType:i})},d[4]=c,d[5]=i,d[6]=r):r=d[6];let u=r;d[7]!==c||d[8]!==i?(a=()=>{c({type:"TERMS_TYPE_REMOVE",schemaType:i})},d[7]=c,d[8]=i,d[9]=a):a=d[9];let p=a;d[10]!==u||d[11]!==p||d[12]!==n?(o=()=>{n?p():u()},d[10]=u,d[11]=p,d[12]=n,d[13]=o):o=d[13];let m=o,h=i.title??i.name,f=n&&eT.Nrt,g=i.title??i.name,y=n?"primary":"default";return d[14]!==m||d[15]!==h||d[16]!==f||d[17]!==g||d[18]!==y?(l=(0,v.jsx)(tL.$n,{iconRight:f,justify:"flex-start",mode:"bleed",onClick:m,width:"fill",size:"large",tabIndex:-1,text:g,tone:y},h),d[14]=m,d[15]=h,d[16]=f,d[17]=g,d[18]=y,d[19]=l):l=d[19],d[20]!==t||d[21]!==l?(s=(0,v.jsx)(I.az,{...t,children:l}),d[20]=t,d[21]=l,d[22]=s):s=d[22],s}),VZ=(0,eI.I4)(I.az).withConfig({displayName:"ClearButtonBox",componentId:"sc-xxyhdm-0"})`border-top:1px solid ${({theme:e})=>e.sanity.color.base.border};flex-shrink:0;`,Vq={width:"250px"};function VW(){let e,t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(37),[h,f]=(0,_.useState)(null),[g,y]=(0,_.useState)(""),C=(0,_.useRef)(null),{t:x}=as(),b=R8(),{dispatch:w,state:k}=Vn(),{terms:S}=k,{types:T}=S,[E,$]=(0,_.useState)(T),A=function(e,t,n,i){let r,a=(0,j.c)(5);if(a[0]!==e||a[1]!==t||a[2]!==n||a[3]!==i){let[o,l]=(0,P.A)(VY(e).filter(e=>{var t,n;return t=e,!(n=i)||(t.title??t.name).toLowerCase().includes(n?.toLowerCase())}).sort(VH),e=>n.includes(e)),s=o.length>0,d=o.length>0;r=[],s&&r.push({title:"Selected",type:"header"}),o.forEach(e=>r.push({item:e,selected:t.includes(e),type:"item"})),s&&d&&r.push({type:"divider"}),l.forEach(e=>r.push({item:e,selected:t.includes(e),type:"item"})),a[0]=e,a[1]=t,a[2]=n,a[3]=i,a[4]=r}else r=a[4];return r}(b,T,E,g);m[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>y(e.currentTarget.value),m[0]=e):e=m[0];let D=e;m[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>y(""),m[1]=t):t=m[1];let z=t;m[2]!==w?(n=()=>{$([]),w({type:"TERMS_TYPES_CLEAR"}),C?.current?.focusInputElement(),C?.current?.scrollToIndex(0)},m[2]=w,m[3]=n):n=m[3];let R=n;m[4]!==A?(i=e=>{let t=A[e];switch(t.type){case"divider":return`${t.type}-${e}`;case"header":return`${t.type}-${t.title}`;case"item":return`${t.type}-${t.item.name}`;default:return e}},m[4]=A,m[5]=i):i=m[5];let N=i;m[6]!==A?(r=e=>"item"!==A[e].type,m[6]=A,m[7]=r):r=m[7];let O=r;m[8]!==A?(a=e=>{let t=A[e];return"item"===t.type&&t.selected},m[8]=A,m[9]=a):a=m[9];let V=a;return m[10]!==x?(o=x("search.action.filter-by-document-type-aria-label"),m[10]=x,m[11]=o):o=m[11],m[12]!==o||m[13]!==g?(l=(0,v.jsx)(V_,{ariaInputLabel:o,onChange:D,onClear:z,ref:f,typeFilter:g}),m[12]=o,m[13]=g,m[14]=l):l=m[14],m[15]!==A||m[16]!==O||m[17]!==N||m[18]!==V||m[19]!==h||m[20]!==x?(s=A.length>0&&(0,v.jsx)(rr,{activeItemDataAttr:"data-hovered",ariaLabel:x("search.document-types-aria-label"),ariaMultiselectable:!0,autoFocus:"input",getItemDisabled:O,getItemSelected:V,getItemKey:N,inputElement:h,itemHeight:37,items:A,overscan:20,padding:1,paddingBottom:0,ref:C,renderItem:VJ}),m[15]=A,m[16]=O,m[17]=N,m[18]=V,m[19]=h,m[20]=x,m[21]=s):s=m[21],m[22]!==A.length||m[23]!==x||m[24]!==g?(d=!A.length&&(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:x("search.document-types-no-matches-found",{filter:g})})}),m[22]=A.length,m[23]=x,m[24]=g,m[25]=d):d=m[25],m[26]!==s||m[27]!==d?(c=(0,v.jsxs)(I.so,{children:[s,d]}),m[26]=s,m[27]=d,m[28]=c):c=m[28],m[29]!==R||m[30]!==T||m[31]!==g?(u=!g&&T.length>0&&(0,v.jsx)(VK,{onClick:R,selectedTypes:T}),m[29]=R,m[30]=T,m[31]=g,m[32]=u):u=m[32],m[33]!==c||m[34]!==u||m[35]!==l?(p=(0,v.jsxs)(I.so,{direction:"column",style:Vq,children:[l,c,u]}),m[33]=c,m[34]=u,m[35]=l,m[36]=p):p=m[36],p}function VJ(e){return"divider"===e.type?(0,v.jsx)(I.az,{paddingY:1,children:(0,v.jsx)(I.Nj,{})}):"header"===e.type?(0,v.jsx)(I.az,{margin:2,padding:1,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:e.title})}):"item"===e.type?(0,v.jsx)(VU,{paddingBottom:1,selected:e.selected,type:e.item}):null}function VK(e){let t,n,i,r=(0,j.c)(9),{onClick:a,selectedTypes:o}=e,{t:l}=as();r[0]!==l?(t=l("search.action.clear-type-filters-aria-label"),r[0]=l,r[1]=t):t=r[1];let s=0===o.length;return r[2]!==l?(n=l("search.action.clear-type-filters-label"),r[2]=l,r[3]=n):n=r[3],r[4]!==a||r[5]!==t||r[6]!==s||r[7]!==n?(i=(0,v.jsx)(VZ,{padding:1,children:(0,v.jsx)(I.BJ,{children:(0,v.jsx)(tL.$n,{"aria-label":t,"data-name":"type-filter-button",disabled:s,mode:"bleed",onClick:a,text:n,tone:"primary"})})}),r[4]=a,r[5]=t,r[6]=s,r[7]=n,r[8]=i):i=r[8],i}let VG=["top-start","bottom-start"];function VX(){let e,t,n,i,r,a,o,l,s,d=(0,j.c)(19),[c,u]=(0,_.useState)(!1),[p,m]=(0,_.useState)(null),h=(0,_.useRef)(null),{state:f}=Vn(),{fullscreen:g,terms:y}=f,{types:C}=y,{t:x}=as();d[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>u(!1),d[0]=e):e=d[0];let b=e;d[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>u(!0),d[1]=t):t=d[1];let w=t;d[2]!==p?(n=()=>[p,h.current],d[2]=p,d[3]=n):n=d[3],(0,I.PR)(b,n),d[4]!==x||d[5]!==C?(i=VF({types:C,t:x}),d[4]=x,d[5]=C,d[6]=i):i=d[6];let k=i;d[7]===Symbol.for("react.memo_cache_sentinel")?(r=[5,0,0,0],d[7]=r):r=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)(VW,{}
1244),d[8]=a):a=d[8],d[9]!==p?(o=(0,v.jsx)(VC,{anchorElement:p,onClose:b,children:a}),d[9]=p,d[10]=o):o=d[10];let S=g?"large":"default";return d[11]!==c||d[12]!==S||d[13]!==k?(l=(0,v.jsx)(tL.$n,{iconRight:eT.D3D,mode:"ghost",onClick:w,size:S,ref:m,selected:c,text:k,tone:"default"}),d[11]=c,d[12]=S,d[13]=k,d[14]=l):l=d[14],d[15]!==c||d[16]!==l||d[17]!==o?(s=(0,v.jsx)(tL.AM,{__unstable_margins:r,content:o,open:c,placement:"bottom-start",fallbackPlacements:VG,portal:!0,radius:3,ref:h,children:l}),d[15]=c,d[16]=l,d[17]=o,d[18]=s):s=d[18],s}let VQ=(0,eI.I4)(I.az).withConfig({displayName:"CustomBox",componentId:"sc-i77z7g-0"})`flex-shrink:${({$flexShrink:e=0})=>e};`;function V1(e){var t,n;let i,r,a,o,l,s,d,c,u=(0,j.c)(29),{filter:p,fontSize:m,showContent:h}=e,f=void 0===m?1:m,g=void 0===h||h,{t:y}=as(),{state:C}=Vn(),{definitions:x,fullscreen:b}=C;u[0]!==x.operators||u[1]!==p.operatorType?(r=Vd(x.operators,p.operatorType),u[0]=x.operators,u[1]=p.operatorType,u[2]=r):r=u[2];let w=r,_=w?.buttonValueComponent,k=p.value;u[3]!==p||u[4]!==f||u[5]!==b?(a=()=>(0,v.jsx)(VQ,{$flexShrink:+!!b,children:(0,v.jsx)(NY,{tone:"default",size:f,textOverflow:"ellipsis",weight:"medium",children:(0,v.jsx)(VE,{filter:p,maxLength:b?25:40})})}),u[3]=p,u[4]=f,u[5]=b,u[6]=a):a=u[6],u[7]!==f||u[8]!==g?(o=e=>{let{children:t}=e;return g?(0,v.jsx)(VQ,{$flexShrink:0,children:(0,v.jsx)(NY,{tone:"default",size:f,textOverflow:"ellipsis",weight:"regular",children:t})}):null},u[7]=f,u[8]=g,u[9]=o):o=u[9],u[10]!==_||u[11]!==k||u[12]!==f||u[13]!==g?(l=e=>{let{children:t}=e;return g?(0,v.jsx)(VQ,{$flexShrink:1,children:(0,v.jsx)(NY,{tone:"default",size:f,textOverflow:"ellipsis",weight:"medium",children:_?(0,v.jsx)(_,{value:k}):t})}):null},u[10]=_,u[11]=k,u[12]=f,u[13]=g,u[14]=l):l=u[14],u[15]!==a||u[16]!==o||u[17]!==l?(s={Field:a,Operator:o,Value:l},u[15]=a,u[16]=o,u[17]=l,u[18]=s):s=u[18];let S=s;if(w?.descriptionKey||console.warn("Missing `descriptionKey` for operator `%s`",p.operatorType),!g||!w?.descriptionKey){let e,t=S.Field;return u[19]!==t?(e=(0,v.jsx)(I.so,{align:"center",gap:1,children:(0,v.jsx)(t,{})}),u[19]=t,u[20]=e):e=u[20],e}let T=w?.descriptionKey;return u[21]!==p||u[22]!==y?(t=p,n=y,i={},"number"==typeof t.value&&(i.count=t.value),V2(t.value)&&(i.value=t.value),"boolean"==typeof t.value&&(i.value=n(t.value?"search.filter-boolean-true":"search.filter-boolean-false")),rZ(t.value)&&"from"in t.value&&V2(t.value.from)&&(i.from=t.value.from),rZ(t.value)&&"to"in t.value&&V2(t.value.to)&&(i.to=t.value.to),d=i,u[21]=p,u[22]=y,u[23]=d):d=u[23],u[24]!==S||u[25]!==y||u[26]!==d||u[27]!==T?(c=(0,v.jsx)(I.so,{align:"center",gap:1,children:(0,v.jsx)(aE,{t:y,i18nKey:T,components:S,values:d})}),u[24]=S,u[25]=y,u[26]=d,u[27]=T,u[28]=c):c=u[28],c}function V2(e){return"string"==typeof e||"number"==typeof e}function V5(e){let t,n,i,r,a,o,l,s=(0,j.c)(15),{t:d}=as();return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(NY,{tone:"critical",children:(0,v.jsx)(eT.YZv,{})}),s[0]=t):t=s[0],s[1]!==d?(n=d("search.error.display-filter-title"),s[1]=d,s[2]=n):n=s[2],s[3]!==n?(i=(0,v.jsx)(NY,{size:1,tone:"critical",weight:"medium",children:n}),s[3]=n,s[4]=i):i=s[4],s[5]!==d?(r=d("search.error.display-filter-description"),s[5]=d,s[6]=r):r=s[6],s[7]!==r?(a=(0,v.jsx)(NY,{size:1,tone:"critical",children:r}),s[7]=r,s[8]=a):a=s[8],s[9]!==i||s[10]!==a?(o=(0,v.jsxs)(I.so,{align:"flex-start",gap:3,children:[t,(0,v.jsxs)(I.BJ,{space:4,children:[i,a]})]}),s[9]=i,s[10]=a,s[11]=o):o=s[11],s[12]!==e||s[13]!==o?(l=(0,v.jsx)(I.az,{...e,children:o}),s[12]=e,s[13]=o,s[14]=l):l=s[14],l}function V0(e){let t,n,i,r=(0,j.c)(11),{onClick:a,operator:o,selected:l}=e;r[0]!==a||r[1]!==o.type?(t=()=>a(o.type),r[0]=a,r[1]=o.type,r[2]=t):t=r[2];let s=t,{t:d}=as();r[3]!==o.nameKey||r[4]!==d?(n=d(o.nameKey),r[3]=o.nameKey,r[4]=d,r[5]=n):n=r[5];let c=o?.icon;return r[6]!==s||r[7]!==l||r[8]!==n||r[9]!==c?(i=(0,v.jsx)(tL.Dr,{onClick:s,pressed:l,tone:"default",text:n,iconRight:c}),r[6]=s,r[7]=l,r[8]=n,r[9]=c,r[10]=i):i=r[10],i}function V7(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(38),{filter:m,operator:h}=e,f=(0,_.useId)(),{t:g}=as(),{dispatch:y,state:C}=Vn();if(p[0]!==y||p[1]!==m||p[2]!==f||p[3]!==h||p[4]!==C.definitions.filters||p[5]!==C.definitions.operators||p[6]!==g){l=Symbol.for("react.early_return_sentinel");e:{let e,s,d,c=C.definitions.filters[m.filterName]?.operators;p[14]!==y||p[15]!==m?(e=e=>{y({filterKey:Vm(m),operatorType:e,type:"TERMS_FILTERS_SET_OPERATOR"})},p[14]=y,p[15]=m,p[16]=e):e=p[16];let u=e;if(!h||!c||c.length<=1){l=null;break e}i=I.cV,n=tL.IU,p[17]!==h.nameKey||p[18]!==g?(s=g(h.nameKey),p[17]=h.nameKey,p[18]=g,p[19]=s):s=p[19],p[20]!==s?(a=(0,v.jsx)(tL.$n,{mode:"ghost",iconRight:eT.D3D,text:s}),p[20]=s,p[21]=a):a=p[21],o=f||"",t=I.W1,p[22]!==u||p[23]!==h.type||p[24]!==C.definitions.operators?(d=(e,t)=>{if("item"===e.type){let n=Vd(C.definitions.operators,e.name);return n?(0,v.jsx)(V0,{onClick:u,operator:n,selected:h.type===e.name},t):null}return"divider"===e.type?(0,v.jsx)(I.Nj,{},t):null},p[22]=u,p[23]=h.type,p[24]=C.definitions.operators,p[25]=d):d=p[25],r
1244=c.map(d)}p[0]=y,p[1]=m,p[2]=f,p[3]=h,p[4]=C.definitions.filters,p[5]=C.definitions.operators,p[6]=g,p[7]=t,p[8]=n,p[9]=i,p[10]=r,p[11]=a,p[12]=o,p[13]=l}else t=p[7],n=p[8],i=p[9],r=p[10],a=p[11],o=p[12],l=p[13];return l!==Symbol.for("react.early_return_sentinel")?l:(p[26]!==t||p[27]!==r?(s=(0,v.jsx)(t,{children:r}),p[26]=t,p[27]=r,p[28]=s):s=p[28],p[29]===Symbol.for("react.memo_cache_sentinel")?(d={constrainSize:!0,portal:!1,radius:2},p[29]=d):d=p[29],p[30]!==n||p[31]!==a||p[32]!==o||p[33]!==s?(c=(0,v.jsx)(n,{button:a,id:o,menu:s,placement:"bottom-start",popover:d}),p[30]=n,p[31]=a,p[32]=o,p[33]=s,p[34]=c):c=p[34],p[35]!==i||p[36]!==c?(u=(0,v.jsx)(i,{children:c}),p[35]=i,p[36]=c,p[37]=u):u=p[37],u)}function V3(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(45),{filter:y}=e,[C,x]=(0,_.useState)(null),{dispatch:b,state:w}=Vn(),{definitions:k,fullscreen:S}=w;g[0]!==k.filters||g[1]!==y.filterName?(t=k.filters[y.filterName],g[0]=k.filters,g[1]=y.filterName,g[2]=t):t=g[2];let T=t;g[3]!==k.operators||g[4]!==y.operatorType?(n=Vd(k.operators,y.operatorType),g[3]=k.operators,g[4]=y.operatorType,g[5]=n):n=g[5];let E=n;g[6]!==k.fields||g[7]!==y?(i=Vp(k.fields,y),g[6]=k.fields,g[7]=y,g[8]=i):i=g[8];let $=i;g[9]!==y?(r=Vm(y),g[9]=y,g[10]=r):r=g[10];let A=r;g[11]!==b||g[12]!==y?(a=()=>{b({filterKey:Vm(y),type:"TERMS_FILTERS_REMOVE"})},g[11]=b,g[12]=y,g[13]=a):a=g[13];let D=a;g[14]!==b||g[15]!==A?(o=e=>{b({filterKey:A,type:"TERMS_FILTERS_SET_VALUE",value:e})},g[14]=b,g[15]=A,g[16]=o):o=g[16];let z=o;g[17]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{x(e)},g[17]=l):l=g[17];let P=l,R=E?.inputComponent;if(C){let e;return g[18]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(V5,{padding:4}),g[18]=e):e=g[18],e}return g[19]!==R||g[20]!==$||g[21]!==y.operatorType||g[22]!==y.value||g[23]!==z?(s=R&&(0,v.jsx)(I.Zp,{borderTop:!0,padding:3,children:(0,v.jsx)(R,{fieldDefinition:$,onChange:z,value:y.value},y.operatorType)}),g[19]=R,g[20]=$,g[21]=y.operatorType,g[22]=y.value,g[23]=z,g[24]=s):s=g[24],g[25]!==y?(d=(0,v.jsx)(I.az,{paddingLeft:1,paddingRight:2,paddingY:1,children:(0,v.jsx)(VA,{filter:y})}),g[25]=y,g[26]=d):d=g[26],g[27]!==S||g[28]!==D?(c=S&&(0,v.jsx)(tL.$n,{icon:eT.ucK,mode:"bleed",onClick:D,tone:"critical",tooltipProps:{content:"Remove filter"}}),g[27]=S,g[28]=D,g[29]=c):c=g[29],g[30]!==d||g[31]!==c?(u=(0,v.jsxs)(I.so,{align:"flex-start",gap:3,justify:"space-between",children:[d,c]}),g[30]=d,g[31]=c,g[32]=u):u=g[32],g[33]!==T?(p=T?.description&&(0,v.jsx)(I.Zp,{border:!0,padding:3,radius:2,tone:"transparent",children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:T.description})}),g[33]=T,g[34]=p):p=g[34],g[35]!==y||g[36]!==E?(m=(0,v.jsx)(V7,{filter:y,operator:E}),g[35]=y,g[36]=E,g[37]=m):m=g[37],g[38]!==u||g[39]!==p||g[40]!==m?(h=(0,v.jsx)(I.Zp,{padding:3,children:(0,v.jsxs)(I.BJ,{space:3,children:[u,p,m]})}),g[38]=u,g[39]=p,g[40]=m,g[41]=h):h=g[41],g[42]!==h||g[43]!==s?(f=(0,v.jsx)(tL.tH,{onCatch:P,children:(0,v.jsx)(tq.Ay,{autoFocus:!r6,returnFocus:!0,children:(0,v.jsxs)(I.so,{direction:"column-reverse",children:[s,h]})})}),g[42]=h,g[43]=s,g[44]=f):f=g[44],f}let V8=(0,eI.I4)(I.so).withConfig({displayName:"ContainerFlex",componentId:"sc-1a56kua-0"})`max-width:480px;min-width:150px;overflow:hidden;overflow:clip;width:100%;`;function V4(e){let t,n,i,r=(0,j.c)(6),{filter:a}=e;return r[0]!==a?(t=(0,v.jsx)(V3,{filter:a}),n=!1,r[0]=a,r[1]=t,r[2]=n):(t=r[1],n=r[2]),r[3]!==t||r[4]!==n?(i=(0,v.jsxs)(V8,{direction:"column",children:[t,n]}),r[3]=t,r[4]=n,r[5]=i):i=r[5],i}let V6=(0,eI.I4)(I.$n).withConfig({displayName:"CloseButton",componentId:"sc-1v4keo-0"})`border-radius:${({theme:e})=>`0 ${(0,I.D0)(e.sanity.radius[2])} ${(0,I.D0)(e.sanity.radius[2])} 0`};`,V9=(0,eI.I4)(I.Zp).withConfig({displayName:"CloseCard",componentId:"sc-1v4keo-1"})`position:absolute;right:0;`,Me=eI.I4.div.withConfig({displayName:"ContainerDiv",componentId:"sc-1v4keo-2"})`align-items:center;display:inline-flex;max-width:100%;position:relative;`,Mt=(0,eI.I4)(I.$n).withConfig({displayName:"LabelButton",componentId:"sc-1v4keo-3"})`border:none;width:100%;`;function Mn(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(45),{filter:y,initialOpen:C}=e,[x,b]=(0,_.useState)(C),[w,k]=(0,_.useState)(null),S=(0,_.useRef)(null),{dispatch:T,state:E}=Vn(),{definitions:$,fullscreen:A}=E,{t:D}=as();g[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>b(!1),g[0]=t):t=g[0];let z=t;g[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>b(!0),g[1]=n):n=g[1];let P=n;g[2]!==T||g[3]!==y?(i=()=>T({filterKey:Vm(y),type:"TERMS_FILTERS_REMOVE"}),g[2]=T,g[3]=y,g[4]=i):i=g[4];let R=i;g[5]!==R?(r=e=>
1244{["Backspace","Delete"].includes(e.key)&&R()},g[5]=R,g[6]=r):r=g[6];let N=r;g[7]!==w?(a=()=>[w,S.current],g[7]=w,g[8]=a):a=g[8],(0,I.PR)(z,a),g[9]!==$.fields||g[10]!==$.filters||g[11]!==$.operators||g[12]!==y?(o=Vf({fieldDefinitions:$.fields,filter:y,filterDefinitions:$.filters,operatorDefinitions:$.operators}),g[9]=$.fields,g[10]=$.filters,g[11]=$.operators,g[12]=y,g[13]=o):o=g[13];let O=o;g[14]===Symbol.for("react.memo_cache_sentinel")?(l=[5,0,0,0],g[14]=l):l=g[14],g[15]!==y?(s=(0,v.jsx)(V4,{filter:y}),g[15]=y,g[16]=s):s=g[16],g[17]!==w||g[18]!==s?(d=(0,v.jsx)(VC,{anchorElement:w,onClose:z,children:s}),g[17]=w,g[18]=s,g[19]=d):d=g[19];let V=O?"primary":"transparent",M=A?3:2,L=A?3:5,F=A?3:2;return g[20]!==y||g[21]!==O?(c=(0,v.jsx)(V1,{filter:y,showContent:O}),g[20]=y,g[21]=O,g[22]=c):c=g[22],g[23]!==N||g[24]!==M||g[25]!==L||g[26]!==F||g[27]!==c?(u=(0,v.jsx)(Mt,{mode:"bleed",onClick:P,onKeyDown:N,paddingLeft:M,paddingRight:L,paddingY:F,ref:k,children:c}),g[23]=N,g[24]=M,g[25]=L,g[26]=F,g[27]=c,g[28]=u):u=g[28],g[29]!==V||g[30]!==u?(p=(0,v.jsx)(I.Zp,{__unstable_focusRing:!0,display:"flex",radius:2,tone:V,children:u}),g[29]=V,g[30]=u,g[31]=p):p=g[31],g[32]!==A||g[33]!==N||g[34]!==R||g[35]!==O||g[36]!==D?(m=!A&&(0,v.jsx)(V9,{__unstable_focusRing:!0,display:"flex",radius:2,tone:O?"primary":"transparent",children:(0,v.jsx)(V6,{"aria-label":D("search.action.remove-filter-aria-label"),fontSize:1,icon:eT.USm,mode:"bleed",onClick:R,onKeyDown:N,padding:2,radius:2})}),g[32]=A,g[33]=N,g[34]=R,g[35]=O,g[36]=D,g[37]=m):m=g[37],g[38]!==p||g[39]!==m?(h=(0,v.jsxs)(Me,{children:[p,m]}),g[38]=p,g[39]=m,g[40]=h):h=g[40],g[41]!==x||g[42]!==d||g[43]!==h?(f=(0,v.jsx)(tL.AM,{__unstable_margins:l,content:d,constrainSize:!0,open:x,overflow:"auto",placement:"bottom-start",portal:!0,radius:3,ref:S,children:h}),g[41]=x,g[42]=d,g[43]=h,g[44]=f):f=g[44],f}function Mi(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(36),{showTypeFilter:g}=e,y=void 0===g||g,{dispatch:C,state:x}=Vn(),{filters:b,fullscreen:w,lastAddedFilter:k,terms:S}=x,{types:T}=S,{t:E}=as(),[$,A]=(0,_.useState)(!1);f[0]!==C||f[1]!==y?(t=()=>{y&&C({type:"TERMS_TYPES_CLEAR"}),C({type:"TERMS_FILTERS_CLEAR"})},f[0]=C,f[1]=y,f[2]=t):t=f[2];let D=t,z=b.length>0||y&&T.length>0;f[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{A(!0)},i=[],f[3]=n,f[4]=i):(n=f[3],i=f[4]),(0,_.useEffect)(n,i),f[5]!==k?(r=k&&Vm(k),f[5]=k,f[6]=r):r=f[6];let P=r,R=w?"large":"default";f[7]!==E?(a=E("search.action.clear-filters"),f[7]=E,f[8]=a):a=f[8],f[9]!==D||f[10]!==R||f[11]!==a?(o=(0,v.jsx)(tL.$n,{mode:"bleed",onClick:D,size:R,text:a,tone:"critical"}),f[9]=D,f[10]=R,f[11]=a,f[12]=o):o=f[12];let N=o;f[13]!==y?(l=y&&(0,v.jsx)(VX,{}),f[13]=y,f[14]=l):l=f[14],f[15]!==b||f[16]!==$||f[17]!==P?(s=b?.map(e=>{let t=Vm(e);return(0,v.jsx)(Mn,{filter:e,initialOpen:$&&P===t},t)}),f[15]=b,f[16]=$,f[17]=P,f[18]=s):s=f[18],f[19]!==w?(d=!w&&(0,v.jsx)(VM,{}),f[19]=w,f[20]=d):d=f[20],f[21]!==l||f[22]!==s||f[23]!==d?(c=(0,v.jsxs)(I.so,{flex:1,gap:2,wrap:"wrap",children:[l,s,d]}),f[21]=l,f[22]=s,f[23]=d,f[24]=c):c=f[24];let O=z&&!w&&N;return f[25]!==c||f[26]!==O?(u=(0,v.jsxs)(I.so,{align:"flex-start",gap:3,justify:"space-between",padding:2,children:[c,O]}),f[25]=c,f[26]=O,f[27]=u):u=f[27],f[28]!==N||f[29]!==z||f[30]!==w?(p=w&&(0,v.jsxs)(I.so,{justify:"space-between",paddingBottom:2,paddingX:2,children:[(0,v.jsx)(VM,{}),z&&N]}),f[28]=N,f[29]=z,f[30]=w,f[31]=p):p=f[31],f[32]===Symbol.for("react.memo_cache_sentinel")?(m=!1,f[32]=m):m=f[32],f[33]!==u||f[34]!==p?(h=(0,v.jsxs)(v.Fragment,{children:[u,p,m]}),f[33]=u,f[34]=p,f[35]=h):h=f[35],h}function Mr(e,t){let n=VY(e).map(e=>e.name),{documentTypes:i,objectTypes:r}=(e._original?.types||[]).filter(e=>(!Ms(e)||n.includes(e.name))&&"slug"!==e.name&&!e.name.startsWith("sanity.")).reduce((e,t)=>(Ms(t)&&(e.documentTypes[t.name]=t),Md(t)&&(e.objectTypes[t.name]=t),e),{documentTypes:{},objectTypes:{}})||{documentTypes:{},objectTypes:{}};return function(e,t,n){let i=new Set(e),r=[];for(let e of Object.values(t)){let a=[];for(let r of e.fields??[])!function e({acc:r,defType:a,depth:o=0,documentType:l,prevFieldPath:s,prevTitlePath:d}
1244){if(o>3)return;let c=a.name.startsWith("_"),u=a?.title?Vz(a.title):(0,eu.A)(a.name),p=s?`${s}.${a.name}`:a.name,m=d?[...d,u]:[u],h=n[a.type],f=t[a.type],g=Md(a)?a:null,y=f||h||g;if(y){for(let t of y.fields??[])e({acc:r,defType:t,depth:o+1,documentType:l,prevFieldPath:p,prevTitlePath:m});return}i.has(a.type)&&r.push({documentTypes:l&&!c?[l]:[],fieldPath:p,filterName:function(e){var t;if("string"===(t=e).type&&t.options?.list&&t.options.list.length>0)return"stringList";if(Ml(e)){if(e.of.some(e=>"reference"===e.type))return"arrayReferences";if(e.of.find(e=>"block"===e.type))return"portableText";if(Ml(e)&&e.of.every(e=>["boolean","number","string"].includes(e.type))&&e.options?.list&&e.options.list.length>0)return"arrayList"}return e.type}(a),id:"",name:a.name,titlePath:m,title:u,type:a.type})}({acc:a,defType:r,documentType:e.name});r.push(...a.map(Mo))}let a=new Map;for(let e of r){let t=a.get(e.id);if(t){t.documentTypes.push(...e.documentTypes);continue}a.set(e.id,e)}let o=Array.from(a.values());return o.sort(Mc),o}(t.reduce((e,t)=>("field"===t.type&&e.push(t.fieldType),e),[]),i,r)}function Ma(e){return e.reduce((e,t)=>(e[t.id]=t,e),{})}function Mo(e){return{...e,id:[e.type,e.fieldPath,e.title].join("-")}}function Ml(e){return"array"===e.type}function Ms(e){return"document"===e.type}function Md(e){return"object"===e.type}function Mc(e,t){return e.title.localeCompare(t.title)||e.titlePath.slice(0,-1).join("/").localeCompare(t.titlePath.slice(0,-1).join("/"))||e.fieldPath.localeCompare(t.fieldPath)}let Mu={version:3,recentSearches:[]};function Mp(){let e,t,n,i,r,a=(0,j.c)(18),[o,l]=function(){let e,t,n,i,r,a,o=(0,j.c)(16),l=cf(),s=el0(ob);o[0]!==s?(e=s.config(),o[0]=s,o[1]=e):e=o[1];let{dataset:d}=e,c=`studio.search.recent.${d}`,[u,p]=(0,_.useState)(Mu);o[2]!==l||o[3]!==c?(t=l.getKey(c),o[2]=l,o[3]=c,o[4]=t):t=o[4];let m=t;o[5]!==l||o[6]!==c||o[7]!==m?(n=()=>{let e=m.pipe((0,tr.Z)(Mu),(0,eV.T)(e=>e?e?.version!==3?(l.setKey(c,Mu),Mu):e:Mu)).subscribe({next:p});return()=>e?.unsubscribe()},i=[m,l,c],o[5]=l,o[6]=c,o[7]=m,o[8]=n,o[9]=i):(n=o[8],i=o[9]),(0,_.useEffect)(n,i),o[10]!==l||o[11]!==c?(r=e=>{p(e),l.setKey(c,e)},o[10]=l,o[11]=c,o[12]=r):r=o[12];let h=r;return o[13]!==h||o[14]!==u?(a=[u,h],o[13]=h,o[14]=u,o[15]=a):a=o[15],a}(),s=R8(),{search:d}=_g(),{operators:c,filters:u}=d;a[0]!==u||a[1]!==s?(e=Ma(Mr(s,u)),a[0]=u,a[1]=s,a[2]=e):e=a[2],a[3]!==u?(t=Vl(u),a[3]=u,a[4]=t):t=a[4],a[5]!==c?(n=Vs(c),a[5]=c,a[6]=n):n=a[6],a[7]!==e||a[8]!==t||a[9]!==n?(i={fieldDefinitions:e,filterDefinitions:t,operatorDefinitions:n},a[7]=e,a[8]=t,a[9]=n,a[10]=i):i=a[10];let{fieldDefinitions:p,filterDefinitions:m,operatorDefinitions:h}=i;return a[11]!==p||a[12]!==m||a[13]!==h||a[14]!==s||a[15]!==l||a[16]!==o?(r={addSearch:(e,t)=>{let n=(t||[]).map(Mh).filter(e=>Vf({fieldDefinitions:p,filter:e,filterDefinitions:m,operatorDefinitions:h})),i={created:new Date().toISOString(),filters:n,terms:{query:e.query.trim(),typeNames:e.types.map(Mm)}},r={version:3,recentSearches:[i,...o.recentSearches.filter(e=>!(0,D.A)((0,N.A)(e,"created"),(0,N.A)(i,"created")))].slice(0,5)};return l(r),Mf({fieldDefinitions:p,filterDefinitions:m,operatorDefinitions:h,schema:s,storedSearch:r,setStoredSearch:l})},getRecentSearches:()=>Mf({fieldDefinitions:p,filterDefinitions:m,operatorDefinitions:h,schema:s,storedSearch:o,setStoredSearch:l}),removeSearch:()=>{let e={...o,recentSearches:[]};return l(e),Mf({fieldDefinitions:p,filterDefinitions:m,operatorDefinitions:h,schema:s,storedSearch:e,setStoredSearch:l})},removeSearchAtIndex:e=>{if(e<0||e>o.recentSearches.length)return Mf({fieldDefinitions:p,filterDefinitions:m,operatorDefinitions:h,schema:s,storedSearch:o,setStoredSearch:l});let t={...o,recentSearches:[...o.recentSearches.slice(0,e),...o.recentSearches.slice(e+1)]};return l(t),Mf({fieldDefinitions:p,filterDefinitions:m,operatorDefinitions:h,schema:s,storedSearch:t,setStoredSearch:l})}},a[11]=p,a[12]=m,a[13]=h,a[14]=s,a[15]=l,a[16]=o,a[17]=r):r=a[17],r}function Mm(e){return e.name}function Mh(e){return{fieldId:e.fieldId,filterName:e.filterName,operatorType:e.operatorType,value:e.value}}function Mf({schema:e,fieldDefinitions:t,filterDefinitions:n,operatorDefinitions:i,storedSearch:r,setStoredSearch:a}){return(function({fieldDefinitions:e,filterDefinitions:t,operatorDefinitions:n,studioSchema:i,storedSearch:r,setStoredSearch:a}){let o=VY(i).map(e=>
1244e.name),l={version:3,recentSearches:r.recentSearches.filter(i=>i.terms.typeNames.every(e=>o.includes(e))&&i.filters.every(i=>Vf({fieldDefinitions:e,filter:i,filterDefinitions:t,operatorDefinitions:n})))};return l.recentSearches.length<r.recentSearches.length&&a(l),l})({studioSchema:e,filterDefinitions:n,fieldDefinitions:t,operatorDefinitions:i,storedSearch:r,setStoredSearch:a}).recentSearches.filter(e=>!!e.terms).map((t,n)=>({__recent:{index:n,timestamp:new Date(t.created).getTime()},filters:t.filters,query:t.terms.query,types:t.terms.typeNames.map(t=>e.get(t)).filter(e=>!!(e&&"object"===e.jsonType))}))}function Mg(){let e,t,n=(0,j.c)(3),{t:i}=as();return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={ControlsIcon:My},n[0]=e):e=n[0],n[1]!==i?(t=(0,v.jsx)(I.so,{align:"center",direction:"column",gap:4,paddingX:4,paddingY:5,children:(0,v.jsx)(I.cV,{space:3,children:(0,v.jsx)(I.EY,{muted:!0,children:(0,v.jsx)(aE,{t:i,i18nKey:"search.instructions",components:e})})})}),n[1]=i,n[2]=t):t=n[2],t}function My(){return(0,v.jsx)(eT.YW2,{style:{padding:"0 0.25rem"}},0)}let MC=(0,tW.g_)({name:"Recent Search Viewed",version:1,description:"User clicked on a recent search item to reapply it"});function Mx(e){let t,n,i=(0,j.c)(6),{availableCharacters:r,types:a}=e,{t:o}=as();i[0]!==r||i[1]!==o||i[2]!==a?(t=VF({availableCharacters:r,types:a,t:o}),i[0]=r,i[1]=o,i[2]=a,i[3]=t):t=i[3];let l=t;return i[4]!==l?(n=(0,v.jsx)(I.Zp,{border:!0,padding:2,radius:2,children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:l})}),i[4]=l,i[5]=n):n=i[5],n}let Mb=(0,eI.I4)(I.Zp).withConfig({displayName:"FilterPillCard",componentId:"sc-1a5zdw8-0"})`cursor:default;`;function Mv(e){let t,n=(0,j.c)(2),{filter:i}=e;return n[0]!==i?(t=(0,v.jsx)(Mb,{border:!0,padding:2,radius:2,tone:"primary",children:(0,v.jsx)(V1,{filter:i})}),n[0]=i,n[1]=t):t=n[1],t}let Mj=(0,eI.I4)(I.$n).withConfig({displayName:"RecentSearchItemButton",componentId:"sc-167yegb-0"})`border-radius:${({theme:e})=>(0,I.D0)(e.sanity.radius[2])};cursor:default;width:100%;`,Mw=(0,eI.I4)(I.az).withConfig({displayName:"SearchItemPillsBox",componentId:"sc-167yegb-1"})`flex-shrink:3;`,M_=(0,eI.I4)(I.so).withConfig({displayName:"SearchItemQueryFlex",componentId:"sc-167yegb-2"})`flex-shrink:2;`,Mk=eI.I4.div.withConfig({displayName:"CloseButtonDiv",componentId:"sc-167yegb-3"})`opacity:0.8;visibility:hidden;@media (hover:hover){${Mj}:hover &{visibility:visible;}&:hover{opacity:0.4;}}`;function MS(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(37);y[0]!==e?({index:t,maxVisibleTypePillChars:i,value:r,...n}=e,y[0]=e,y[1]=t,y[2]=n,y[3]=i,y[4]=r):(t=y[1],n=y[2],i=y[3],r=y[4]);let C=void 0===i?40:i,{dispatch:x}=Vn(),b=Mp(),w=(0,tK.Jr)(),_=C-r.query.length;y[5]!==x||y[6]!==b||y[7]!==w||y[8]!==r?(a=()=>{x({type:"TERMS_SET",filters:r?.filters,terms:r}),b&&b?.addSearch(r,r?.filters),w.log(MC)},y[5]=x,y[6]=b,y[7]=w,y[8]=r,y[9]=a):a=y[9];let k=a;y[10]!==t||y[11]!==b?(o=e=>{e.stopPropagation(),b&&b?.removeSearchAtIndex(t)},y[10]=t,y[11]=b,y[12]=o):o=y[12];let S=o;return y[13]===Symbol.for("react.memo_cache_sentinel")?(l=(0,v.jsxs)(I.cV,{paddingY:2,children:[(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(eT.O4,{})}),(0,v.jsx)(I.EY,{children:"â"})]}),y[13]=l):l=y[13],y[14]!==r.query?(s=r.query&&(0,v.jsx)(M_,{align:"center",paddingY:2,children:(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",weight:"medium",children:r.query})}),y[14]=r.query,y[15]=s):s=y[15],y[16]!==_||y[17]!==r.types?(d=r.types.length>0&&(0,v.jsx)(Mw,{children:(0,v.jsx)(Mx,{availableCharacters:_,types:r.types})}),y[16]=_,y[17]=r.types,y[18]=d):d=y[18],y[19]!==r.filters?(c=r?.filters?.map(MI),y[19]=r.filters,y[20]=c):c=y[20],y[21]!==s||y[22]!==d||y[23]!==c?(u=(0,v.jsxs)(I.so,{align:"stretch",flex:1,gap:2,justify:"flex-start",marginLeft:3,wrap:"wrap",children:[s,d,c]}),y[21]=s,y[22]=d,y[23]=c,y[24]=u):u=y[24],y[25]===Symbol.for("react.memo_cache_sentinel")?(p=(0,v.jsx)(I.so,{padding:2,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.USm,{})})}),y[25]=p):p=y[25],y[26]!==S?(m=(0,v.jsx)(I.so,{align:"center",children:(0,v.jsx)(Mk,{onClick:S,children:p})}),y[26]=S,y[27]=m):m=y[27],y[28]!==m||y[29]!==u?(h=(0,v.jsxs)(I.so,{align:"stretch",children:[l,u,m]}),y[28]=m,y[29]=u,y[30]=h):h=y[30],y[31]!==k||y[32]!==h?(f=(0,v.jsx)(Mj,{mode:"bleed",onClick:k,paddingLeft:3,paddingRight:1,paddingY:1,tabIndex:-1,
1244children:h}),y[31]=k,y[32]=h,y[33]=f):f=y[33],y[34]!==n||y[35]!==f?(g=(0,v.jsx)(I.az,{...n,children:f}),y[34]=n,y[35]=f,y[36]=g):g=y[36],g}function MI(e,t){return(0,v.jsx)(Mv,{filter:e},t)}let MT=(0,eI.I4)(I.Zp).withConfig({displayName:"RecentSearchesBox",componentId:"sc-on6v84-0"})`overflow-x:hidden;overflow-y:auto;position:relative;`;function ME(e){let t,n,i,r,a,o=(0,j.c)(17),{inputElement:l}=e,{state:s}=Vn(),{filtersVisible:d,fullscreen:c}=s,u=Mp();o[0]!==u?(t=u?.getRecentSearches(),o[0]=u,o[1]=t):t=o[1];let p=t,m=(0,_.useRef)(null),{t:h}=as();o[2]!==u?(n=()=>{u&&u.removeSearch(),m?.current?.focusInputElement()},o[2]=u,o[3]=n):n=o[3];let f=n,g=2>(0,I.aY)()?20:40;o[4]!==g?(i=(e,t)=>{let{virtualIndex:n}=t;return(0,v.jsx)(MS,{index:n,maxVisibleTypePillChars:g,paddingBottom:1,value:e})},o[4]=g,o[5]=i):i=o[5];let y=i,C=!!p.length,x=C||!C&&!d&&c;return o[6]!==d||o[7]!==c||o[8]!==f||o[9]!==l||o[10]!==p||o[11]!==y||o[12]!==h?(r=p.length>0?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.az,{paddingBottom:2,paddingTop:4,paddingX:3,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:h("search.recent-searches-label")})}),(0,v.jsx)(I.az,{children:(0,v.jsx)(rr,{activeItemDataAttr:"data-hovered",ariaLabel:h("search.recent-searches-aria-label"),inputElement:l,initialIndex:0,itemHeight:36,items:p,paddingX:2,paddingY:1,renderItem:y})}),(0,v.jsx)(I.az,{paddingBottom:2,paddingTop:1,paddingX:2,children:(0,v.jsx)(tL.$n,{mode:"bleed",onClick:f,tone:"default",text:h("search.action.clear-recent-searches"),muted:!0})})]}):!d&&c&&(0,v.jsx)(Mg,{}),o[6]=d,o[7]=c,o[8]=f,o[9]=l,o[10]=p,o[11]=y,o[12]=h,o[13]=r):r=o[13],o[14]!==x||o[15]!==r?(a=(0,v.jsx)(MT,{borderTop:x,flex:1,children:r}),o[14]=x,o[15]=r,o[16]=a):a=o[16],a}let M$=(0,eI.i7)` 1245 from { 1246 transform: rotate(0deg); 1247 } 1248 to { 1249 transform: rotate(360deg); 1250 } 1251`,MA=(0,eI.I4)(eT.Nl1).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-1bz7gqq-0"})`animation:${M$} 500ms linear infinite;`,MD=eI.I4.div.withConfig({displayName:"FilterDiv",componentId:"sc-1bz7gqq-1"})`line-height:0;position:relative;`,Mz=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(48),{ariaInputLabel:C,onClose:x}=e,b=(0,_.useRef)(!1),{t:w}=as(),{dispatch:k,state:S}=Vn(),{filters:T,filtersVisible:E,fullscreen:$,result:A,terms:D}=S,{loading:z}=A,{types:P,query:R}=D;y[0]!==D?(n=Vi({terms:D}),y[0]=D,y[1]=n):n=y[1];let N=n;y[2]!==C||y[3]!==N||y[4]!==w?(i=w(C||N?"search.search-results-aria-label":"search.recent-searches-aria-label"),y[2]=C,y[3]=N,y[4]=w,y[5]=i):i=y[5];let O=i;y[6]!==k||y[7]!==E?(r=()=>k({type:"FILTERS_VISIBLE_SET",visible:!E}),y[6]=k,y[7]=E,y[8]=r):r=y[8];let V=r;y[9]!==k?(a=e=>k({type:"TERMS_QUERY_SET",query:e.currentTarget.value}),y[9]=k,y[10]=a):a=y[10];let M=a;y[11]!==k?(o=()=>{k({type:"TERMS_QUERY_SET",query:""})},y[11]=k,y[12]=o):o=y[12];let L=o;y[13]!==k||y[14]!==$?(l=()=>{$||k({type:"FILTERS_VISIBLE_SET",visible:!0})},s=[k,$],y[13]=k,y[14]=$,y[15]=l,y[16]=s):(l=y[15],s=y[16]),(0,_.useEffect)(l,s),y[17]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{b.current=!0},c=[],y[17]=d,y[18]=c):(d=y[17],c=y[18]),(0,_.useEffect)(d,c);let F=T.length>0||P.length>0,B=$?2:1,Y=$?2:1;y[19]!==$||y[20]!==x||y[21]!==w?(u=$&&(0,v.jsx)(tL.$n,{"aria-label":w("search.action.close-search-aria-label"),icon:eT.A60,mode:"bleed",onClick:x,size:"large",tooltipProps:{content:w("search.action.close-search-aria-label")}}),y[19]=$,y[20]=x,y[21]=w,y[22]=u):u=y[22];let H=!!R;y[23]===Symbol.for("react.memo_cache_sentinel")?(p=[2,2,1],y[23]=p):p=y[23];let U=z?MA:eT.WIv;return y[24]!==w?(m=w("search.placeholder"),y[24]=w,y[25]=m):m=y[25],y[26]!==O||y[27]!==$||y[28]!==M||y[29]!==L||y[30]!==R||y[31]!==t||y[32]!==H||y[33]!==U||y[34]!==m?(h=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(Vv,{__unstable_disableFocusRing:!0,$background:$,$smallClearButton:$,"aria-label":O,autoComplete:"off",border:!1,clearButton:H,fontSize:p,icon:U,onChange:M,onClear:L,placeholder:m,radius:2,ref:t,spellCheck:!1,value:R})}),y[26]=O,y[27]=$,y[28]=M,y[29]=L,y[30]=R,y[31]=t,y[32]=H,y[33]=U,y[34]=m,y[35]=h):h=y[35],y[36]!==E||y[37]!==$||y[38]!==V||y[39]!==F||y[40]!==w?(f=$&&(0,v.jsx)(MD,{children:(0,v.jsx)(edl,{"aria-expanded":E,"aria-label":w("search.action.toggle-filters-aria-label",{context:E?"hide":"show"}),icon:eT.YW2,mode:"bleed",onClick:V,selected:E,size:"large",tone:F?"primary":void 0,tooltipProps:{content:w("search.action.toggle-filters-label",{context:E?"hide":"show"})}})}),y[36]=E,y[37]=$,y[38]=V,y[39]=F,y[40]=w,y[41]=f):f=y[41],y[42]!==B||y[43]!==Y||y[44]!==u||y[45]!==h||y[46]!==f?(g=(0,v.jsx)(I.Zp,{flex:"none",children:(0,v.jsxs)(I.so,{align:"center",flex:1,gap:B,padding:Y,children:[u,h,f]})}),y[42]=B,y[43]=Y,y[44]=u,y[45]=h,y[46]=f,y[47]=g):g=y[47],g});function MP(){let e,t,n,i,r,a=(0,j.c)(11),{t:o}=as();return a[0]!==o?(e=o("search.no-results-title"),a[0]=o,a[1]=e):e=a[1],a[2]!==e?(t=(0,v.jsx)(I.EY,{align:"center",muted:!0,size:1,weight:"medium",children:e}),a[2]=e,a[3]=t):t=a[3],a[4]!==o?(n=o("search.no-results-help-description"),a[4]=o,a[5]=n):n=a[5],a[6]!==n?(i=(0,v.jsx)(I.EY,{align:"center",muted:!0,size:1,children:n}),a[6]=n,a[7]=i):i=a[7],a[8]!==t||a[9]!==i?(r=(0,v.jsx)(I.mc,{width:0,children:(0,v.jsxs)(I.BJ,{"aria-live":"assertive",space:4,paddingX:4,paddingY:5,children:[t,i]})}),a[8]=t,a[9]=i,a[10]=r):r=a[10],r}function MR(){let e,t,n,i,r,a,o=(0,j.c)(12),{t:l}=as();return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.az,{marginBottom:1,children:(0,v.jsx)(NY,{tone:"critical",children:(0,v.jsx)(eT.sAQ,{})})}
1251),o[0]=e):e=o[0],o[1]!==l?(t=l("search.error.unspecified-error-title"),o[1]=l,o[2]=t):t=o[2],o[3]!==t?(n=(0,v.jsx)(NY,{size:2,tone:"critical",weight:"medium",children:t}),o[3]=t,o[4]=n):n=o[4],o[5]!==l?(i=l("search.error.unspecified-error-help-description"),o[5]=l,o[6]=i):i=o[6],o[7]!==i?(r=(0,v.jsx)(NY,{size:1,tone:"critical",children:i}),o[7]=i,o[8]=r):r=o[8],o[9]!==n||o[10]!==r?(a=(0,v.jsxs)(I.so,{align:"center","aria-live":"assertive",direction:"column",flex:1,gap:3,marginY:2,padding:4,children:[e,n,r]}),o[9]=n,o[10]=r,o[11]=a):a=o[11],a}let MN=({searchStrategy:e})=>({createdAsc:{ignoreScore:!0,sort:{direction:"asc",field:"_createdAt"},titleKey:"search.ordering.created-ascending-label"},createdDesc:{ignoreScore:!0,sort:{direction:"desc",field:"_createdAt"},titleKey:"search.ordering.created-descending-label"},relevance:{customMeasurementLabel:"relevance",..."groqLegacy"===e?{sort:{direction:"desc",field:"_updatedAt"}}:{},titleKey:"search.ordering.best-match-label"},updatedAsc:{ignoreScore:!0,sort:{direction:"asc",field:"_updatedAt"},titleKey:"search.ordering.updated-ascending-label"},updatedDesc:{ignoreScore:!0,sort:{direction:"desc",field:"_updatedAt"},titleKey:"search.ordering.updated-descending-label"}}),MO=(0,eI.I4)(I.so).withConfig({displayName:"SortMenuContentFlex",componentId:"sc-11mc67b-0"})`box-sizing:border-box;`;function MV(e){return"divider"===e.type}function MM(e){let t,n,i,r,a=(0,j.c)(13),{ordering:o}=e,{t:l}=as(),{dispatch:s,state:d}=Vn(),{ordering:c}=d;a[0]!==s||a[1]!==o?(t=()=>{s({ordering:o,type:"ORDERING_SET"})},a[0]=s,a[1]=o,a[2]=t):t=a[2];let u=t;a[3]!==c||a[4]!==o?(n=(0,D.A)(c,o),a[3]=c,a[4]=o,a[5]=n):n=a[5];let p=n;return a[6]!==o.titleKey||a[7]!==l?(i=l(o.titleKey),a[6]=o.titleKey,a[7]=l,a[8]=i):i=a[8],a[9]!==u||a[10]!==p||a[11]!==i?(r=(0,v.jsx)(tL.Dr,{onClick:u,pressed:p,tone:"default",text:i}),a[9]=u,a[10]=p,a[11]=i,a[12]=r):r=a[12],r}function ML(){let e,t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k=(0,j.c)(48),{t:S}=as(),{strategy:T}=cY().search,{state:E}=Vn(),{ordering:$}=E,A=(0,_.useId)();k[0]!==T?(e=MN({searchStrategy:T}),k[0]=T,k[1]=e):e=k[1];let z=e;k[2]===Symbol.for("react.memo_cache_sentinel")?(t={type:"divider"},k[2]=t):t=k[2],k[3]===Symbol.for("react.memo_cache_sentinel")?(n={type:"divider"},k[3]=n):n=k[3],k[4]!==z.createdAsc||k[5]!==z.createdDesc||k[6]!==z.relevance||k[7]!==z.updatedAsc||k[8]!==z.updatedDesc?(i=[z.relevance,t,z.createdAsc,z.createdDesc,n,z.updatedAsc,z.updatedDesc],k[4]=z.createdAsc,k[5]=z.createdDesc,k[6]=z.relevance,k[7]=z.updatedAsc,k[8]=z.updatedDesc,k[9]=i):i=k[9];let P=i;if(k[10]!==P||k[11]!==$||k[12]!==S){c=Symbol.for("react.early_return_sentinel");e:{let e=P.find(e=>(0,D.A)($,e)&&!MV(e));if(!e){c=null;break e}l=I.Zp,d=!0,o=MO,h="center",f=1,s=2,a=tL.IU,r=tL.$n,u="bleed",p=eT.ycB,m=S(e.titleKey)}k[10]=P,k[11]=$,k[12]=S,k[13]=r,k[14]=a,k[15]=o,k[16]=l,k[17]=s,k[18]=d,k[19]=c,k[20]=u,k[21]=p,k[22]=m,k[23]=h,k[24]=f}else r=k[13],a=k[14],o=k[15],l=k[16],s=k[17],d=k[18],c=k[19],u=k[20],p=k[21],m=k[22],h=k[23],f=k[24];if(c!==Symbol.for("react.early_return_sentinel"))return c;k[25]!==r||k[26]!==u||k[27]!==p||k[28]!==m?(g=(0,v.jsx)(r,{mode:u,icon:p,text:m}),k[25]=r,k[26]=u,k[27]=p,k[28]=m,k[29]=g):g=k[29];let R=A||"";return k[30]!==P?(y=(0,v.jsx)(I.W1,{children:P.map(MF)}),k[30]=P,k[31]=y):y=k[31],k[32]===Symbol.for("react.memo_cache_sentinel")?(C={portal:!0,radius:2},k[32]=C):C=k[32],k[33]!==a||k[34]!==g||k[35]!==R||k[36]!==y?(x=(0,v.jsx)(a,{button:g,id:R,menu:y,placement:"bottom-start",popover:C}),k[33]=a,k[34]=g,k[35]=R,k[36]=y,k[37]=x):x=k[37],k[38]!==o||k[39]!==s||k[40]!==x||k[41]!==h||k[42]!==f?(b=(0,v.jsx)(o,{align:h,flex:f,padding:s,children:x}),k[38]=o,k[39]=s,k[40]=x,k[41]=h,k[42]=f,k[43]=b):b=k[43],k[44]!==l||k[45]!==d||k[46]!==b?(w=(0,v.jsx)(l,{borderBottom:d,children:b}),k[44]=l,k[45]=d,k[46]=b,k[47]=w):w=k[47],w}function MF(e,t){return MV(e)?(0,v.jsx)(I.Nj,{},t):(0,v.jsx)(MM,{ordering:e},t)}let MB=(0,eI.I4)(I.Zp).withConfig({displayName:"DebugScoreCard",componentId:"sc-1u006xj-0"})`cursor:help;left:0;position:absolute;top:0;`;function MY(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(18),{data:c}=e,{score:u}=c,p="default";if(u<=.1?p="critical":u>=.5&&(p="primary"),d[0]!==c.stories){let e=c.stories.filter(MU);n=tL.m_,t=I.BJ,i=2,r=e.length?(0,v.jsx)(v.Fragment,{children:e.map(MH)}):(0,v.jsx)(I.Cy,{size:0,children:"No matches"}),d[0]=c.stories,d[1]=t,d[2]=n,d[3]=i,d[4]=r}else t=d[1],n=d[2],i=d[3],r=d[4];return d[5]!==t||d[6]!==i||d[7]!==r?(a=(0,v.jsx)(t,{space:i,children:r}),d[5]=t,d[6]=i,d[7]=r,d[8]=a):a=d[8],d[9]!==u?(o=(0,v.jsxs)(I.Cy,{size:0,children:["score: ",u]}),d[9]=u,d[10]=o):o=d[10],d[11]!==o||d[12]!==p?(l=(0,v.jsx)(MB,{padding:1,shadow:1,tone:p,children:o}),d[11]=o,d[12]=p,d[13]=l):l=d[13],d[14]!==n||d[15]!==a||d[16]!==l?(s=(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(n,{content:a,placement:"bottom-start",portal:!0,children:l})}),d[14]=n,d[15]=a,d[16]=l,d[17]=s):s=d[17],s}function MH(e){return(0,v.jsxs)(I.cV,{space:3,children:[(0,v.jsx)(I.Cy,{size:0,weight:"medium",children:e.path}),(0,v.jsx)(I.Cy,{size:0,children:e.why})]},e.path)}function MU(e){return e.score>0}let MZ=(0,eI.I4)(I.az).withConfig({displayName:"SearchResultItemPreviewBox",componentId:"sc-1yg22aa-0"})`@supports (-webkit-overflow-scrolling:touch){* [data-ui='Box']{background-attachment:scroll;}}`;function Mq(e){let t,n,i,r,a,o,l,s=(0,j.c)(37),{documentId:d,documentType:c,layout:u,presence:p,schemaType:m,showBadge:h,perspective:f}=e,g=void 0===h||h,y=cc();s[0]!==d||s[1]!==y||s[2]!==f||s[3]!==m?(t=P9(y,m,d,f),s[0]=d,s[1]=y,s[2]=f,s[3]=m,s[4]=t):t=s[4];let C=t;s[5]!==d||s[6]!==c?(n={_id:d,_type:c},s[5]=d,s[6]=c,s[7]=n):n=s[7];let x=n;s[8]===Symbol.for("react.memo_cache_sentinel")?(i={snapshot:null,isLoading:!0,original:null},s[8]=i):i=s[8];let{isLoading:b,snapshot:w,original:_}=(0,tF.J)(C,i),k=Ra(d);e:{let e,t,n,i;if(b){r=null;break e}s[9]!==p?(e=p&&p.length>0&&(0,v.jsx)(Bf,{presence:p}),s[9]=p,s[10]=e):e=s[10],s[11]!==m.title||s[12]!==g?(t=g&&(0,v.jsx)(I.Ex,{children:m.title}),s[11]=m.title,s[12]=g,s[13]=t):t=s[13],s[14]!==k.draft||s[15]!==k.published||s[16]!==k.versions?(n=(0,v.jsx)(gW,{draft:k.draft,published:k.published,versions:k.versions}),s[14]=k.draft,s[15]=k.published,s[16]=k.versions,s[17]=n):n=s[17],s[18]!==e||s[19]!==t||s[20]!==n?(i=(0,v.jsxs)(I.so,{align:"center",gap:3,children:[e,t,n]}),s[18]=e,s[19]=t,s[20]=n,s[21]=i):i=s[21],r=i}let S=r;s[22]!==k.draft||s[23]!==k.published||s[24]!==k.versions?(a=(0,v.jsx)(esy,{draft:k.draft,published:k.published,versions:k.versions}),s[22]=k.draft,s[23]=k.published,s[24]=k.versions,s[25]=a):a=s[25];let T=a;s[26]!==x||s[27]!==_||s[28]!==w?(o=Rt({snapshot:w,original:_,fallback:x}),s[26]=x,s[27]=_,s[28]=w,s[29]=o):o=s[29];let E=b??!0,$=u||"default";return s[30]!==m.icon||s[31]!==S||s[32]!==o||s[33]!==E||s[34]!==$||s[35]!==T?(l=(0,v.jsx)(MZ,{children:(0,v.jsx)(j8,{...o,isPlaceholder:E,layout:$,icon:m.icon,status:S,tooltip:T})}),s[30]=m.icon,s[31]=S,s[32]=o,s[33]=E,s[34]=$,s[35]=T,s[36]=l):l=s[36],l}function MW(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E=(0,j.c)(68);E[0]!==e?({disableIntentLink:t,documentId:n,documentType:i,layout:r,onClick:a,onItemSelect:o,previewPerspective:l,...s}=e,E[0]=e,E[1]=t,E[2]=n,E[3]=i,E[4]=r,E[5]=a,E[6]=o,E[7]=l,E[8]=s):(t=E[1],n=E[2],i=E[3],r=E[4],a=E[5],o=E[6],l=E[7],s=E[8]);let $=R8();E[9]!==i||E[10]!==$?(d=$.get(i),E[9]=i,E[10]=$,E[11]=d):d=E[11];let A=d,D=cb(n);E[12]!==n?(c=(0,tG.IM)(n),E[12]=n,E[13]=c):c=E[13];let z=A?.name;E[14]!==c||E[15]!==z?(u={id:c,type:z},E[14]=c,E[15]=z,E[16]=u):u=E[16];let P=u;E[17]!==P?(p={intent:"edit",params:P},E[17]=P,E[18]=p):p=E[18];let{onClick:R,href:N}=(0,nU.cQ)(p),{state:O}=Vn(),{t:V}=as(),M=cs(),[L,F]=(0,_.useState)(null),B=L?.granted;E[19]!==n||E[20]!==i||E[21]!==M||E[22]!==O.canDisableAction?(m=()=>{O.canDisableAction&&M.checkDocumentPermission("create",{_id:n,_type:i}).subscribe(F)},h=[n,i,M,O.canDisableAction],E[19]=n,E[20]=i,E[21]=M,E[22]=O.canDisableAction,E[23]=m,E[24]=h):(m=E[23],h=E[24]),(0,_.useEffect)(m,h),E[25]!==n||E[26]!==O.disabledDocumentIds?(f=O.disabledDocumentIds?.some(e=>e.includes((0,tG.IM)(n))),E[25]=n,E[26]=O.disabledDocumentIds,E[27]=f):f=E[27];let Y=f,H=!B&&O.canDisableAction||Y;E[28]!==n||E[29]!==i?(g={_id:n,_type:i},E[28]=n,E[29]=i,E[30]=g):g=E[30];let U=g;E[31]!==U||E[32]!==A?(y={enabled:!0,schemaType:A,value:U},E[31]=U,E[32]=A,E[33]=y):y=E[33];let Z=v3(y);E[34]!==t||E[35]!==n||E[36]!==i||E[37]!==a||E[38]!==R||E[39]!==o||E[40]!==Z?(C=e=>{o?.({_id:n,_type:i,title:Z.value?.title}),t||R(e),a?.(e)},E[34]=t,E[35]=n,E[36]=i,E[37]=a,E[38]=R,E[39]=o,E[40]=Z,E[41]=C):C=E[41];let q=C;if(!A)return null;let W=H?void 0:"a",J=H||t?void 0:N,K=H?"none":void 0,G=H?.5:1;E[42]!==K||E[43]!==G?(x={pointerEvents:K,opacity:G},E[42]=K,E[43]=G,E[44]=x):x=E[44],E[45]!==n||E[46]!==D||E[47]!==i||E[48]!==r||E[49]!==l||E[50]!==A?(b=(0,v.jsx)(Mq,{documentId:n,documentType:i,layout:r,perspective:l,presence:D,schemaType:A}),E[45]=n,E[46]=D,E[47]=i,E[48]=r,E[49]=l,E[50]=A,E[51]=b):b=E[51],E[52]!==q||E[53]!==W||E[54]!==J||E[55]!==x||E[56]!==b?(w=(0,v.jsx)(es$,{as:W,"data-as":"a",flex:1,href:J,onClick:q,radius:2,tabIndex:-1,style:x,children:b}),E[52]=q,E[53]=W,E[54]=J,E[55]=x,E[56]=b,E[57]=w):w=E[57],E[58]!==s||E[59]!==w?(k=(0,v.jsx)(I.az,{...s,children:w}),E[58]=s,E[59]=w,E[60]=k):k=E[60];let X=k;E[61]!==Y||E[62]!==V?(S=V(Y?"release.action.already-exists-in-release":"release.action.permission.error"),E[61]=Y,E[62]=V,E[63]=S):S=E[63];let Q=S;return E[64]!==X||E[65]!==H||E[66]!==Q?(T=H?(0,v.jsx)(tL.m_,{content:Q,placement:"top",children:X}):X,E[64]=X,E[65]=H,E[66]=Q,E[67]=T):T=E[67],T}let MJ=(0,eI.I4)(I.so).withConfig({displayName:"SearchResultsInnerFlex",componentId:"sc-i32997-0"})`opacity:${({$loadingFirstPage:e})=>e?.5:1};overflow-x:hidden;overflow-y:auto;position:relative;transition:300ms opacity;width:100%;`;function MK(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(36),{disableIntentLink:c,inputElement:u,onItemSelect:p,previewPerspective:m}=e,{dispatch:h,onClose:f,setSearchCommandList:g,state:y}=Vn(),{debug:C,filters:x,fullscreen:b,lastActiveIndex:w,result:_,terms:k,cursor:S}=y,{t:T}=as(),E=Mp(),$=!!_.hits.length,A=!_.hits.length&&_.loaded,D=_.error;d[0]!==x||d[1]!==f||d[2]!==E||d[3]!==k?(t=e=>{E&&E.addSearch(k,x),e.metaKey||e.ctrlKey||f?.()},d[0]=x,d[1]=f,d[2]=E,d[3]=k,d[4]=t):t=d[4];let z=t;d[5]!==h?(n=()=>{h({type:"PAGE_INCREMENT"})},d[5]=h,d[6]=n):n=d[6];let P=n;d[7]!==C||d[8]!==c||d[9]!==z||d[10]!==p||d[11]!==m?(i=e=>(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(MW,{disableIntentLink:c,documentId:e.hit._id||"",documentType:e.hit._type,onClick:z,onItemSelect:p,previewPerspective:m,paddingY:1}),C&&(0,v.jsx)(MY,{data:e})]}),d[7]=C,d[8]=c,d[9]=z,d[10]=p,d[11]=m,d[12]=i):i=d[12];let R=i,N=b||!!(D||$||A);d[13]!==$?(r=$&&(0,v.jsx)(ML,{}),d[13]=$,d[14]=r):r=d[14];let O=_.loading&&null===S;return d[15]!==P||d[16]!==D||d[17]!==A||d[18]!==$||d[19]!==u||d[20]!==w||d[21]!==R||d[22]!==_.hits||d[23]!==g||d[24]!==T?(a=D?(0,v.jsx)(MR,{}):(0,v.jsxs)(v.Fragment,{children:[$&&(0,v.jsx)(rr,{activeItemDataAttr:"data-hovered",ariaLabel:T("search.search-results-label"),"data-testid":"search-results",fixedHeight:!0,initialIndex:w,inputElement:u,itemHeight:57,items:_.hits,overscan:4,onEndReached:P,paddingX:2,paddingY:1,ref:g,renderItem:R}),A&&(0,v.jsx)(MP,{})]}),d[15]=P,d[16]=D,d[17]=A,d[18]=$,d[19]=u,d[20]=w,d[21]=R,d[22]=_.hits,d[23]=g,d[24]=T,d[25]=a):a=d[25],d[26]!==_.loading||d[27]!==O||d[28]!==a?(o=(0,v.jsx)(MJ,{$loadingFirstPage:O,"aria-busy":_.loading,flex:1,children:a}),d[26]=_.loading,d[27]=O,d[28]=a,d[29]=o):o=d[29],d[30]!==r||d[31]!==o?(l=(0,v.jsxs)(I.so,{direction:"column",height:"fill",children:[r,o]}),d[30]=r,d[31]=o,d[32]=l):l=d[32],d[33]!==l||d[34]!==N?(s=(0,v.jsx)(I.so,{children:(0,v.jsx)(I.Zp,{borderTop:N,flex:1,children:l})}),d[33]=l,d[34]=N,d[35]=s):s=d[35],s}let MG={duration:.4,type:"spring"},MX={open:{opacity:1,scale:1,x:"-50%"},closed:{opacity:0,scale:.99,x:"-50%"}},MQ={open:{opacity:1},closed:{opacity:0}
1251},M1=(0,eI.I4)(ir.P.create(I.Zp)).withConfig({displayName:"MotionOverlay",componentId:"sc-4oou0a-0"})`background-color:var(--card-backdrop-color);bottom:0;left:0;position:absolute;right:0;top:0;`,M2=(0,eI.I4)(ir.P.create(I.Zp)).withConfig({displayName:"SearchMotionCard",componentId:"sc-4oou0a-1"})`display:flex !important;flex-direction:column;left:50%;max-height:min( calc(100vh - ${12}vh - ${Vt}px),${735}px );position:absolute;top:${12}vh;width:min(calc(100vw - ${2*Vt}px),${800}px);`;function M5(e){let t,n,i,r,a,o=(0,j.c)(22),{disableFocusLock:l,disableIntentLink:s,onClose:d,onItemSelect:c,onOpen:u,previewPerspective:p,open:m}=e,[h,f]=(0,_.useState)(null),g=(0,_.useRef)(null),{isTopLayer:y,zIndex:C}=(0,I.Z4)(),{onClose:x,state:b}=Vn(),{filtersVisible:w,terms:k}=b;o[0]!==k?(t=Vi({terms:k}),o[0]=k,o[1]=t):t=o[1];let S=t;return o[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>[g.current],o[2]=n):n=o[2],(0,I.PR)(y&&m&&!!x&&x,n),o[3]!==l||o[4]!==s||o[5]!==w||o[6]!==S||o[7]!==h||o[8]!==d||o[9]!==c||o[10]!==m||o[11]!==p||o[12]!==C?(i=m&&(0,v.jsx)(I.ZL,{children:(0,v.jsxs)(tq.Ay,{autoFocus:!r6,disabled:l,returnFocus:!0,children:[(0,v.jsx)(M1,{animate:"open",exit:"closed",initial:"closed",style:{zIndex:C},transition:MG,variants:MQ}),(0,v.jsxs)(M2,{animate:"open",exit:"closed",initial:"closed",overflow:"hidden",radius:3,ref:g,shadow:2,style:{zIndex:C},transition:MG,variants:MX,children:[(0,v.jsx)(Mz,{onClose:d,ref:f}),w&&(0,v.jsx)(I.Zp,{borderTop:!0,flex:"none",children:(0,v.jsx)(Mi,{})}),S?(0,v.jsx)(MK,{inputElement:h,onItemSelect:c,disableIntentLink:s,previewPerspective:p}):(0,v.jsx)(ME,{inputElement:h})]})]})}),o[3]=l,o[4]=s,o[5]=w,o[6]=S,o[7]=h,o[8]=d,o[9]=c,o[10]=m,o[11]=p,o[12]=C,o[13]=i):i=o[13],o[14]!==i?(r=(0,v.jsx)(ia.N,{children:i}),o[14]=i,o[15]=r):r=o[15],o[16]!==S||o[17]!==d||o[18]!==u||o[19]!==m||o[20]!==r?(a=(0,v.jsx)(Vo,{hasValidTerms:S,onClose:d,onOpen:u,open:m,children:r}),o[16]=S,o[17]=d,o[18]=u,o[19]=m,o[20]=r,o[21]=a):a=o[21],a}let M0={error:null,hits:[],loading:!1,terms:{query:"",types:[]}};function M7(e){return null!==e}function M3(e){return{...e,terms:{...e.terms,filter:e.terms.filter?.trim(),query:e.terms.query.trim()}}}function M8(e){let t,n,i,r,a=(0,j.c)(16),{allowEmptyQueries:o,initialState:l,onComplete:s,onError:d,onStart:c,schema:u}=e,[p,m]=(0,_.useState)(l),h=el0(ob),f=gw(),{strategy:g}=cY().search;a[0]!==h||a[1]!==f||a[2]!==u||a[3]!==g?(t=gb(VY(u),h,{tag:"search.global",unique:!0,strategy:g,maxDepth:f}),a[0]=h,a[1]=f,a[2]=u,a[3]=g,a[4]=t):t=a[4];let y=t;a[5]!==o||a[6]!==s||a[7]!==d||a[8]!==c||a[9]!==y?(n=e=>e.pipe((0,to.p)(M7),(0,eV.T)(M3),(0,eQ.F)(D.A),(0,ty.s)(M6),(0,e5.M)(c),(0,eM.n)(e=>(0,eR.x)((0,eP.of)({...M0,loading:!0,options:e.options,terms:e.terms}),(0,ti.T)(()=>Vi({allowEmptyQueries:o,terms:e.terms}),y(e.terms,e.options).pipe((0,e5.M)(e=>{let{hits:t,nextCursor:n}=e;return s?.({hits:t,nextCursor:n})}),(0,eY.W)(t=>(d?.(t),(0,eP.of)({...M0,error:t,loading:!1,options:e.options,terms:e.terms})))),(0,eP.of)(eO.w).pipe((0,e5.M)(()=>s?.({hits:[],nextCursor:void 0})))),(0,eP.of)({loading:!1}))),(0,ts.S)(M4,M0),(0,e5.M)(m)),a[5]=o,a[6]=s,a[7]=d,a[8]=c,a[9]=y,a[10]=n):n=a[10];let C=(0,tF.N)(n);a[11]!==C?(i=e=>C(e),a[11]=C,a[12]=i):i=a[12];let x=i;return a[13]!==x||a[14]!==p?(r={handleSearch:x,searchState:p},a[13]=x,a[14]=p,a[15]=r):r=a[15],r}function M4(e,t){return{...e,...t}}function M6(e){return(0,eK.O)(e?.debounceTime||300)}function M9(e){return"u">typeof e.__recent}let Le="core:studio:navbar:search:";tH(Le);let Lt=(h=`${Le}reducer`,tH&&tH.enabled(h)?tH(h):tH(Le));function Ln(e,t){let n="\uD83D\uDD0D";switch(t.type.startsWith("SEARCH_REQUEST")&&(n="\uD83D\uDEA8"),t.type.startsWith("RECENT_SEARCHES")&&(n="\uD83D\uDCBE"),Lt(n,t),t.type){case"FILTERS_VISIBLE_SET":return{...e,filtersVisible:t.visible};case"LAST_ACTIVE_INDEX_SET":return{...e,lastActiveIndex:t.index};case"ORDERING_RESET":return{...e,ordering:MN({searchStrategy:e.strategy}).relevance,terms:Li(e.terms),cursor:null,nextCursor:null,result:{...e.result,hasLocal:!1}};case"ORDERING_SET":return{...e,ordering:t.ordering,terms:Li(e.terms),cursor:null,nextCursor:null,result:{...e.result,hasLocal:!1}};
1251case"PAGE_INCREMENT":return{...e,cursor:e.nextCursor??e.cursor,nextCursor:null,terms:Li(e.terms)};case"SEARCH_CLEAR":return{...e,cursor:null,nextCursor:null,result:{...e.result,hasLocal:!1,hits:[]}};case"SEARCH_REQUEST_COMPLETE":return{...e,nextCursor:t.nextCursor??null,result:{...e.result,error:null,hasLocal:!0,hits:rO([...e.result.hasLocal?e.result.hits:[],...t.hits].map(({hit:e})=>e)).map(e=>({hit:e})),loaded:!0,loading:!1}};case"SEARCH_REQUEST_ERROR":return{...e,result:{...e.result,error:t.error,loaded:!1,loading:!1}};case"SEARCH_REQUEST_START":return{...e,result:{...e.result,loaded:!1,loading:!0}};case"TERMS_FILTERS_ADD":{var i,r;let n={...t.filter,value:(i=e.definitions.operators,r=t.filter.operatorType,Vd(i,r)?.initialValue)},a=[...e.filters,n];return{...e,documentTypesNarrowed:Vh({fieldDefinitions:e.definitions.fields,filters:a,types:e.terms.types}),filters:a,lastAddedFilter:n,cursor:null,nextCursor:null,terms:{...e.terms,filter:Vu({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:a,operatorDefinitions:e.definitions.operators})},result:{...e.result,hasLocal:!1}}}case"TERMS_FILTERS_CLEAR":{let t=[];return{...e,documentTypesNarrowed:Vh({fieldDefinitions:e.definitions.fields,filters:t,types:e.terms.types}),filters:t,cursor:null,nextCursor:null,terms:{...e.terms,filter:Vu({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:t,operatorDefinitions:e.definitions.operators})},result:{...e.result,hasLocal:!1}}}case"TERMS_FILTERS_REMOVE":{let n=e.filters.findIndex(e=>Vm(e)===t.filterKey),i=[...e.filters.slice(0,n),...e.filters.slice(n+1)];return{...e,documentTypesNarrowed:Vh({fieldDefinitions:e.definitions.fields,filters:i,types:e.terms.types}),filters:i,cursor:null,nextCursor:null,terms:{...e.terms,filter:Vu({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:i,operatorDefinitions:e.definitions.operators})},result:{...e.result,hasLocal:!1}}}case"TERMS_FILTERS_SET_OPERATOR":{let n=e.filters.find(e=>Vm(e)===t.filterKey),i=Vd(e.definitions.operators,n?.operatorType),r=Vd(e.definitions.operators,t.operatorType),a=r?.initialValue,o=i?.inputComponent!=r?.inputComponent,l=e.filters.map(e=>Vm(e)===t.filterKey?{...e,operatorType:t.operatorType,...o?{value:a}:{}}:e);return{...e,filters:l,cursor:null,nextCursor:null,terms:{...e.terms,filter:Vu({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:l,operatorDefinitions:e.definitions.operators})},result:{...e.result,hasLocal:!1}}}case"TERMS_FILTERS_SET_VALUE":{let n=e.filters.map(e=>Vm(e)===t.filterKey?{...e,value:t.value}:e);return{...e,filters:n,cursor:null,nextCursor:null,terms:{...e.terms,filter:Vu({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:n,operatorDefinitions:e.definitions.operators})},result:{...e.result,hasLocal:!1}}}case"TERMS_QUERY_SET":return{...e,cursor:null,nextCursor:null,result:{...e.result,loaded:!1,hasLocal:!1},terms:Li({...e.terms,query:t.query})};case"TERMS_SET":{let n=t.filters||[],i=[...e.terms.types||[],...t.terms.types].sort(VH);return{...e,documentTypesNarrowed:Vh({fieldDefinitions:e.definitions.fields,filters:n,types:i}),filters:n,lastAddedFilter:null,cursor:null,nextCursor:null,result:{...e.result,loaded:!1,hasLocal:!1},terms:{...t.terms,filter:Vu({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:n,operatorDefinitions:e.definitions.operators})}}}case"TERMS_TYPE_ADD":{let n=[...e.terms.types||[],t.schemaType].sort(VH),i=Vh({fieldDefinitions:e.definitions.fields,filters:[],types:n}),r=e.filters.filter(t=>{let n=Vp(e.definitions.fields,t);return!n||0===n.documentTypes.length||i.every(e=>n.documentTypes.findIndex(t=>t===e)>-1)});return{...e,documentTypesNarrowed:i,filters:r,cursor:null,nextCursor:null,result:{...e.result,loaded:!1,hasLocal:!1},terms:Li({...e.terms,filter:Vu({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,operatorDefinitions:e.definitions.operators,filters:r}),types:n})}}case"TERMS_TYPE_REMOVE":{let n=(e.terms.types||[]).filter(e=>e!==t.schemaType);return{...e,documentTypesNarrowed:Vh({fieldDefinitions:e.definitions.fields,filters:e.filters,types:n}),cursor:null,nextCursor:null,result:{...e.result,loaded:!1,hasLocal:!1},terms:Li({...e.terms,types:n})}}case"TERMS_TYPES_CLEAR":return{...e,documentTypesNarrowed:Vh({fieldDefinitions:e.definitions.fields,filters:e.filters,types:[]}),cursor:null,nextCursor:null,result:{...e.result,loaded:!1,hasLocal:!1},terms:Li({...e.terms,types:[]})};default:return e}}function Li(e){if(M9(e)){let{__recent:t,...n}=e;return n}return e}function Lr(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w=(0,j.c)(83),{children:k,fullscreen:I,disabledDocumentIds:T,canDisableAction:E}=e,[$,A]=(0,_.useState)(null),[z,P]=(0,_.useState)(null),{data:R}=gU(),N=R8(),O=o5(),{search:V}=_g(),{operators:M,filters:L,strategy:F}=V;w[0]!==L||w[1]!==N?(t=Ma(Mr(N,L)),w[0]=L,w[1]=N,w[2]=t):t=w[2],w[3]!==L?(n=Vl(L),w[3]=L,w[4]=n):n=w[4],w[5]!==M?(i=Vs(M),w[5]=M,w[6]=i):i=w[6],w[7]!==t||w[8]!==n||w[9]!==i?(r={fieldDefinitions:t,filterDefinitions:n,operatorDefinitions:i},w[7]=t,w[8]=n,w[9]=i,w[10]=r):r=w[10];let{fieldDefinitions:B,filterDefinitions:Y,operatorDefinitions:H}=r;w[11]!==O||w[12]!==B||w[13]!==Y||w[14]!==I||w[15]!==H||w[16]!==F?(a=function({currentUser:e,fullscreen:t,definitions:n,pagination:i,strategy:r}){return{currentUser:e,debug:!(typeof window>"u")&&window.location.hash.slice(1).split(";").includes("_debug_search_score"),documentTypesNarrowed:[],filters:[],filtersVisible:!0,fullscreen:t,lastActiveIndex:-1,ordering:MN({searchStrategy:r}).relevance,...i,result:{error:null,hasLocal:!1,hits:[],loaded:!1,loading:!1},terms:{query:"",types:[]},definitions:n,strategy:r}}({currentUser:O,fullscreen:I,definitions:{fields:B,operators:H,filters:Y},pagination:{cursor:null,nextCursor:null},strategy:F}),w[11]=O,w[12]=B,w[13]=Y,w[14]=I,w[15]=H,w[16]=F,w[17]=a):a=w[17];let U=a,[Z,q]=(0,_.useReducer)(Ln,U),{documentTypesNarrowed:W,filters:J,ordering:K,cursor:G,result:X,terms:Q}=Z,ee=(0,_.useRef)(!1),et=(0,_.useRef)(U.ordering),en=(0,_.useRef)(U.cursor),ei=(0,_.useRef)(U.terms);w[18]!==X||w[19]!==Q?(o={...X,terms:Q},w[18]=X,w[19]=Q,w[20]=o):o=w[20],w[21]===Symbol.for("react.memo_cache_sentinel")?(s=e=>q({...e,type:"SEARCH_REQUEST_COMPLETE"}),d=e=>q({error:e,type:"SEARCH_REQUEST_ERROR"}),l=()=>q({type:"SEARCH_REQUEST_START"}),w[21]=l,w[22]=s,w[23]=d):(l=w[21],s=w[22],d=w[23]),w[24]!==N||w[25]!==o?(c={initialState:o,onComplete:s,onError:d,onStart:l,schema:N},w[24]=N,w[25]=o,w[26]=c):c=w[26];let{handleSearch:er,searchState:ea}=M8(c);w[27]!==Q?(u=Vi({terms:Q}),w[27]=Q,w[28]=u):u=w[28];let eo=u;if(w[29]!==W||w[30]!==N){let e;w[32]!==N?(e=e=>N.get(e),w[32]=N,w[33]=e):e=w[33],p=W.map(e),w[29]=W,w[30]=N,w[31]=p}else p=w[31];let el=p;if(w[34]!==J||w[35]!==B||w[36]!==Y||w[37]!==H){let e;w[39]!==B||w[40]!==Y||w[41]!==H?(e=e=>Vf({fieldDefinitions:B,filter:e,filterDefinitions:Y,operatorDefinitions:H}),w[39]=B,w[40]=Y,w[41]=H,w[42]=e):e=w[42],m=J.filter(e),w[34]=J,w[35]=B,w[36]=Y,w[37]=H,w[38]=m}else m=w[38];let es=m;w[43]!==es.length||w[44]!==G||w[45]!==el||w[46]!==er||w[47]!==K||w[48]!==F||w[49]!==Q?(h=()=>{let e=!(0,D.A)(K,et.current),t=G!==en.current,n=!(0,D.A)(Q,ei.current);if(e||t||n){let e="findability-sort:";(K?.customMeasurementLabel||K.sort)&&(e="findability-sort:"+(K?.customMeasurementLabel||`${K.sort?.field} ${K.sort?.direction}`)),er({options:{comments:[...M9(Q)?[`findability-recent-search:${Q.__recent.index}`]:[],`findability-selected-types:${Q.types.length}`,e,"findability-source: global",`findability-filter-count:${es.length}`],limit:"groq2024"===F?25:1e3,skipSortByScore:K.ignoreScore,...K.sort?{sort:[K.sort]}:{},cursor:G||void 0,perspective:"raw"},terms:{...Q,...el?{types:el}:{}}}),t&&(en.current=G)}et.current=K,ei.current=Q},w[43]=es.length,w[44]=G,w[45]=el,w[46]=er,w[47]=K,w[48]=F,w[49]=Q,w[50]=h
1251):h=w[50],w[51]!==es.length||w[52]!==J||w[53]!==G||w[54]!==el||w[55]!==er||w[56]!==eo||w[57]!==K||w[58]!==R||w[59]!==ea.terms||w[60]!==F||w[61]!==Q?(f=[es.length,J,el,er,eo,K,ea.terms,Q,G,F,R],w[51]=es.length,w[52]=J,w[53]=G,w[54]=el,w[55]=er,w[56]=eo,w[57]=K,w[58]=R,w[59]=ea.terms,w[60]=F,w[61]=Q,w[62]=f):f=w[62],(0,_.useEffect)(h,f),w[63]!==eo||w[64]!==X.hits?(g=()=>{!eo&&ee?.current&&X.hits.length>0&&q({type:"SEARCH_CLEAR"}),ee.current=!0},w[63]=eo,w[64]=X.hits,w[65]=g):g=w[65],w[66]!==eo||w[67]!==X.hits||w[68]!==Q.query||w[69]!==Q.types?(y=[q,eo,X.hits,Q.query,Q.types],w[66]=eo,w[67]=X.hits,w[68]=Q.query,w[69]=Q.types,w[70]=y):y=w[70],(0,_.useEffect)(g,y),w[71]!==E||w[72]!==T||w[73]!==I||w[74]!==Z?(C={...Z,fullscreen:I,disabledDocumentIds:T,canDisableAction:E},w[71]=E,w[72]=T,w[73]=I,w[74]=Z,w[75]=C):C=w[75],w[76]!==$||w[77]!==z||w[78]!==C?(x={dispatch:q,onClose:$,searchCommandList:z,setSearchCommandList:P,setOnClose:A,state:C},w[76]=$,w[77]=z,w[78]=C,w[79]=x):x=w[79];let ed=x;return w[80]!==k||w[81]!==ed?(b=(0,v.jsx)(S.o7.Provider,{value:ed,children:k}),w[80]=k,w[81]=ed,w[82]=b):b=w[82],b}function La(e){let t,n,i,r=(0,j.c)(9),{open:a,onClose:o,releaseId:l,idsInRelease:s}=e;return r[0]!==l?(t=[l],r[0]=l,r[1]=t):t=r[1],r[2]!==o||r[3]!==a||r[4]!==t?(n=(0,v.jsx)(I.GD,{children:(0,v.jsx)(M5,{onClose:o,onItemSelect:o,open:a,previewPerspective:t,disableIntentLink:!0})}),r[2]=o,r[3]=a,r[4]=t,r[5]=n):n=r[5],r[6]!==s||r[7]!==n?(i=(0,v.jsx)(I.XS,{zOffset:1,children:(0,v.jsx)(Lr,{disabledDocumentIds:s,canDisableAction:!0,children:n})}),r[6]=s,r[7]=n,r[8]=i):i=r[8],i}let Lo=[{key:"added",tone:"positive",labelKey:"table-body.action.add"},{key:"changed",tone:"caution",labelKey:"table-body.action.change"},{key:"unpublished",tone:"critical",labelKey:"table-body.action.unpublish"}],Ll=[{key:"all",labelKey:"filter-tab.all",tone:"default"},...Lo,{key:"errors",labelKey:"filter-tab.errors",tone:"critical"}];function Ls(e){return!e.document||e.isPending?null:v5(e.document)?"unpublished":e.document.publishedDocumentExists?"changed":"added"}function Ld(e){let t,n=(0,j.c)(6),{documents:i,releaseState:r,isLoading:a,activeFilter:o,onFilterChange:l}=e,{t:s}=as(RE);if("archived"===r||"published"===r)return null;if(void 0!==a&&a){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.mc,{width:3,children:(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(I.so,{align:"center",gap:2,children:Ll.filter(Lu).map(Lc)})})}),n[0]=e):e=n[0],e}return 0===i.length?null:(n[1]!==o||n[2]!==i||n[3]!==l||n[4]!==s?(t=(0,v.jsx)(Lp,{documents:i,activeFilter:o,onFilterChange:l,t:s}),n[1]=o,n[2]=i,n[3]=l,n[4]=s,n[5]=t):t=n[5],t)}function Lc(e){return(0,v.jsx)(T.EA,{animated:!0,style:{width:"70px",height:"32px"},radius:2},`loading-skeleton-${e.key}`)}function Lu(e){return"errors"!==e.key}function Lp(e){let t,n,i,r,a,o=(0,j.c)(15),{documents:l,activeFilter:s,onFilterChange:d,t:c}=e;o[0]!==l?(t=l.reduce((e,t)=>{let n=Ls(t);return n&&e[n]++,t.validation.hasError&&!t.isPending&&e.errors++,e},{added:0,changed:0,unpublished:0,errors:0}),o[0]=l,o[1]=t):t=o[1];let u=t;o[2]!==u||o[3]!==c?(n=e=>{let t=c(e.labelKey);if("all"===e.key)return t;let n=u[e.key];return`${t} (${n})`},o[2]=u,o[3]=c,o[4]=n):n=o[4];let p=n;o[5]!==s?(i=e=>"errors"===e.key?"critical":s===e.key?e.tone:"default",o[5]=s,o[6]=i):i=o[6];let m=i;return o[7]!==s||o[8]!==u||o[9]!==p||o[10]!==m||o[11]!==d?(r=Ll.map(e=>
1251{let t=s===e.key;return"all"!==e.key&&0===u[e.key]?null:(0,v.jsx)(tL.oz,{id:`filter-tab-${e.key}`,"aria-controls":"document-table-card",label:p(e),onClick:()=>d(e.key),selected:t,tone:m(e)},e.key)}),o[7]=s,o[8]=u,o[9]=p,o[10]=m,o[11]=d,o[12]=r):r=o[12],o[13]!==r?(a=(0,v.jsx)(I.mc,{width:3,children:(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(I.wb,{space:1,children:r})})}),o[13]=r,o[14]=a):a=o[14],a}let Lm=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T=(0,j.c)(65),{document:E,releaseTitle:$}=e,[A,D]=(0,_.useState)(!1),[z,P]=(0,_.useState)(!1),{t:R}=as(),{t:N}=as(RE);T[0]!==E.document?(t=v5(E.document),T[0]=E.document,T[1]=t):t=T[1];let O=t;T[2]!==E.document._id?(n=(0,tG.IM)(E.document._id),T[2]=E.document._id,T[3]=n):n=T[3];let V=n,M=E.document._type;T[4]!==E.document._id?(i=(0,tG._S)(E.document._id),T[4]=E.document._id,T[5]=i):i=T[5];let L=i;T[6]!==V||T[7]!==M||T[8]!==L?(r={id:V,type:M,version:L,permission:"discardVersion"},T[6]=V,T[7]=M,T[8]=L,T[9]=r):r=T[9];let[F,B]=dd(r);T[10]!==V||T[11]!==M||T[12]!==L?(a={id:V,type:M,version:L,permission:"unpublish"},T[10]=V,T[11]=M,T[12]=L,T[13]=a):a=T[13];let[Y,H]=dd(a),U=!F?.granted||B,Z=!Y?.granted||H;e:{if(Z){let e;T[14]!==N?(e=N("permissions.error.unpublish"),T[14]=N,T[15]=e):e=T[15],o=e;break e}if(!E.document.publishedDocumentExists){let e;T[16]!==N?(e=N("unpublish.no-published-version"),T[16]=N,T[17]=e):e=T[17],o=e;break e}if(O){let e;T[18]!==N?(e=N("unpublish.already-unpublished"),T[18]=N,T[19]=e):e=T[19],o=e;break e}o=null}let q=o,W=Z||!E.document.publishedDocumentExists||O;T[20]===Symbol.for("react.memo_cache_sentinel")?(l=(0,v.jsx)(rl,{}),T[20]=l):l=T[20],T[21]!==R?(s=R("release.action.discard-version"),T[21]=R,T[22]=s):s=T[22],T[23]===Symbol.for("react.memo_cache_sentinel")?(d=()=>D(!0),T[23]=d):d=T[23];let J=!U;T[24]!==N?(c=N("permissions.error.discard-version"),T[24]=N,T[25]=c):c=T[25],T[26]!==J||T[27]!==c?(u={disabled:J,content:c},T[26]=J,T[27]=c,T[28]=u):u=T[28],T[29]!==U||T[30]!==u||T[31]!==s?(p=(0,v.jsx)(tL.Dr,{text:s,icon:eT.USm,onClick:d,disabled:U,tooltipProps:u}),T[29]=U,T[30]=u,T[31]=s,T[32]=p):p=T[32],T[33]===Symbol.for("react.memo_cache_sentinel")?(m=(0,v.jsx)(I.Nj,{}),T[33]=m):m=T[33],T[34]!==N?(h=N("menu.group.when-releasing"),T[34]=N,T[35]=h):h=T[35],T[36]!==h?(f=(0,v.jsx)(I.az,{padding:3,paddingBottom:2,children:(0,v.jsx)(I.JU,{size:1,children:h})}),T[36]=h,T[37]=f):f=T[37],T[38]!==N?(g=N("action.unpublish"),T[38]=N,T[39]=g):g=T[39];let K=!W;return T[40]!==K||T[41]!==q?(y={disabled:K,content:q},T[40]=K,T[41]=q,T[42]=y):y=T[42],T[43]===Symbol.for("react.memo_cache_sentinel")?(C=()=>P(!0),T[43]=C):C=T[43],T[44]!==W||T[45]!==g||T[46]!==y?(x=(0,v.jsx)(tL.Dr,{text:g,icon:eT.wvk,disabled:W,tooltipProps:y,onClick:C}),T[44]=W,T[45]=g,T[46]=y,T[47]=x):x=T[47],T[48]!==p||T[49]!==f||T[50]!==x?(b=(0,v.jsx)(I.Zp,{tone:"default",display:"flex",children:(0,v.jsx)(tL.IU,{id:"document-actions",button:l,menu:(0,v.jsxs)(I.W1,{children:[p,m,f,x]})})}),T[48]=p,T[49]=f,T[50]=x,T[51]=b):b=T[51],T[52]!==E.document||T[53]!==$||T[54]!==A||T[55]!==N?(w=A&&(0,v.jsx)(R$,{isGoingToUnpublish:v5(E.document),onClose:()=>D(!1),documentId:E.document._id,documentType:E.document._type,fromPerspective:$||N("release-placeholder.title")}),T[52]=E.document,T[53]=$,T[54]=A,T[55]=N,T[56]=w):w=T[56],T[57]!==E.document._id||T[58]!==E.document._type||T[59]!==z?(k=z&&(0,v.jsx)(Ne,{onClose:()=>P(!1),documentVersionId:E.document._id,documentType:E.document._type}),T[57]=E.document._id,T[58]=E.document._type,T[59]=z,T[60]=k):k=T[60],T[61]!==b||T[62]!==w||T[63]!==k?(S=(0,v.jsxs)(v.Fragment,{children:[b,w,k]}),T[61]=b,T[62]=w,T[63]=k,T[64]=S):S=T[64],S},(e,t)=>e.document.memoKey===t.document.memoKey),Lh=(0,_.memo)(function(e){let t,n=(0,j.c)(7),i=R8().get(e.document.document._type),{t:r}=as();if(!i){let t,i;return n[0]!==e.document.document._type||n[1]!==r?(t=r("document.type.not-found",{type:e.document.document._type}),n[0]=e.document.document._type,n[1]=r,n[2]=t):t=n[2],n[3]!==t?(i=(0,v.jsx)(rl,{disabled:!0,tooltipProps:{content:t}}),n[3]=t,n[4]=i):i=n[4],i}return n[5]!==e?(t=(0,v.jsx)(Lm,{...e}),n[5]=e,n[6]=t):t=n[6],t}),Lf=Object.create(null),Lg=0,Ly=[];async function LC(e=10){Lg>=e&&await new Promise(e=>Ly.push(e)),Lg+=1}function Lx(e,t,n){let i,r,a,o,l,s=(0,j.c)(16),d=el0(ll),[c,u]=(0,_.useState)(null);e:{let n;if(!e||!t){i="";break e}s[0]!==e||s[1]!==t?(n=(0,tG.ct)(e,t),s[0]=e,s[1]=t,s[2]=n):n=s[2],i=n}let p=i,m=(0,_.useRef)(!1);s[3]!==d||s[4]!==n||s[5]!==e||s[6]!==p?(r=async()=>
1251{if(!p)return void u(null);let t=`${e}-${n}`,i=Lf[t];i?u(i.transactions):(await LC(),await (async()=>{let e=await cK(d,p,{tag:"sanity.studio.releases.documents.history",effectFormat:"mendoza",excludeContent:!0,includeIdentifiedDocumentsOnly:!0,limit:1,reverse:!0});m.current||(u(e),Lf[t]={transactions:e})})().catch(e=>{console.error("Failed to fetch or parse document history:",e),m.current||u([])}).finally(Lv))},s[3]=d,s[4]=n,s[5]=e,s[6]=p,s[7]=r):r=s[7];let h=r;if(s[8]!==h?(a=()=>(m.current=!1,h(),()=>{m.current=!0}),o=[h],s[8]=h,s[9]=a,s[10]=o):(a=s[9],o=s[10]),(0,_.useEffect)(a,o),s[11]!==c){t:{let e,t=[];if(!c||0===c.length){l={documentHistory:void 0,collaborators:t,loading:!0};break t}let n={history:[],createdBy:"",lastEditedBy:"",editors:[]};c.forEach(e=>{let i=e.author;t.includes(i)||t.push(i),0===n.history.length&&(n.createdBy=i),e.mutations?.some(Lb)&&(n.createdBy=i),n.editors.includes(i)||n.editors.push(i),n.lastEditedBy=i,n.history.push(e)}),s[13]!==n||s[14]!==t?(e={documentHistory:n,collaborators:t,loading:!1},s[13]=n,s[14]=t,s[15]=e):e=s[15],l=e}s[11]=c,s[12]=l}else l=s[12];return l}function Lb(e){return"create"in e}function Lv(){let e;Lg=Math.max(0,Lg-1),(e=Ly.shift())&&e()}let Lj=(0,_.memo)(function(e){let t,n,i=(0,j.c)(9),{item:r,releaseId:a,releaseState:o,documentRevision:l}=e;i[0]!==r.document?(t=v5(r.document),i[0]=r.document,i[1]=t):t=i[1];let s=t;return i[2]!==l||i[3]!==s||i[4]!==r.document._id||i[5]!==r.document._type||i[6]!==a||i[7]!==o?(n=(0,v.jsx)(NE,{documentId:r.document._id,documentTypeName:r.document._type,releaseId:a,releaseState:o,documentRevision:l,isGoingToBePublished:s}),i[2]=l,i[3]=s,i[4]=r.document._id,i[5]=r.document._type,i[6]=a,i[7]=o,i[8]=n):n=i[8],n},(e,t)=>e.item.memoKey===t.item.memoKey&&e.releaseId===t.releaseId),Lw=(0,_.memo)(function(e){let t,n,i=(0,j.c)(5),{type:r}=e,a=R8();i[0]!==a||i[1]!==r?(t=a.get(r),i[0]=a,i[1]=r,i[2]=t):t=i[2];let o=t?.title||"Not found";return i[3]!==o?(n=(0,v.jsx)(I.EY,{size:1,children:o}),i[3]=o,i[4]=n):n=i[4],n},(e,t)=>e.type===t.type);function L_(e){let t,n,i,r,a,o,l=(0,j.c)(16),{cellProps:s,datum:d,releaseDocumentId:c}=e,{document:u,isLoading:p}=d;l[0]!==c?(t=cN(c),l[0]=c,l[1]=t):t=l[1];let m=t,{documentHistory:h}=Lx(d.isPending||u?._id?.endsWith("-pending")?void 0:u?._id,m,u?._rev);return l[2]===Symbol.for("react.memo_cache_sentinel")?(n={minWidth:130},l[2]=n):n=l[2],l[3]!==h?.lastEditedBy||l[4]!==p?(i=(p||!h?.lastEditedBy)&&(0,v.jsx)(ut,{$size:0,animated:!0}),l[3]=h?.lastEditedBy,l[4]=p,l[5]=i):i=l[5],l[6]!==u||l[7]!==h||l[8]!==p?(r=!p&&u._updatedAt&&(0,v.jsxs)(v.Fragment,{children:[h?.lastEditedBy&&(0,v.jsx)(ua,{size:0,user:h.lastEditedBy}),(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(NI,{time:u._updatedAt,useTemporalPhrase:!0,minimal:!0})})]}),l[6]=u,l[7]=h,l[8]=p,l[9]=r):r=l[9],l[10]!==i||l[11]!==r?(a=(0,v.jsxs)(I.so,{align:"center",gap:2,children:[i,r]}),l[10]=i,l[11]=r,l[12]=a):a=l[12],l[13]!==s||l[14]!==a?(o=(0,v.jsx)(I.so,{...s,align:"center",paddingX:2,paddingY:3,style:n,sizing:"border",children:a}),l[13]=s,l[14]=a,l[15]=o):o=l[15],o}function Lk(e,t=0,n=[]){if(typeof e>"u"||null===e||t>3)return"";if("string"==typeof e)return e;if("number"==typeof e)return e.toString();if(Array.isArray(e))return e.map(e=>"object"==typeof e&&e.children&&"block"===e._type?e.children.map(e=>e.text).join(" ").trim():Array.isArray(e)?Lk(e,t+1,n):e.toString().trim()).filter(Boolean).join(" ");if("object"==typeof e&&null!==e){if(n.includes(e))return"";n.push(e);let i=Object.entries(e);if(i.length>0&&i.every(([e,t])=>"boolean"!=typeof t&&!e.startsWith("_")))return i.map(([,e])=>Lk(e,t+1,n)).filter(Boolean).join(" ");let r="title"in e&&"string"==typeof e.title?e.title.toString().trim():void 0,a="name"in e&&"string"==typeof e.name?e.name.toString().trim():void 0,o="text"in e&&"string"==typeof e.text?e.text.toString().trim():void 0;return r||a||o?[r,a,o].filter(Boolean).join(" "):i.filter(([e])=>!e.startsWith("_")).map(([,e])=>Lk(e,t+1,n)).filter(Boolean).join(" ")}return""}function LS(e){var t,n;let i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(65),{documents:E,isLoading:$,release:A}=e,D=void 0!==$&&$,[z,P]=(0,_.useState)(null),R=(0,T.dj)(),{createVersion:N}=RI(),O=(0,tK.Jr)(),[V,M]=(0,_.useState)(!1);S[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],S[0]=i):i=S[0];let[L,F]=(0,_.useState)(i),[B,Y]=(0,_.useState)("all"),{t:H}=as(RE);S[1]!==A._id?(r=cN(A._id),S[1]=A._id,S[2]=r):r=S[2];let U=r;S[3]!==A.metadata.title||S[4]!==A.state?(a=e=>{let t;return"active"!==A.state||!((t=e.datum)&&"object"==typeof t&&"memoKey"in t&&"document"in t&&"validation"in t)||e.datum.isPending?null:(0,v.jsx)(Lh,{document:e.datum,releaseTitle:A.metadata.title})},S[3]=A.metadata.title,S[4]=A.state,S[5]=a):a=S[5];let Z=a;S[6]!==A._id||S[7]!==A.state||S[8]!==H?(t=A._id,n=A.state,o=[..."archived"===n||"published"===n?[]:[{id:"action",width:100,header:e=>(0,v.jsx)(I.so,{...e.headerProps,paddingY:3,sizing:"border",children:(0,v.jsx)(O8,{text:H("table-header.action")})}),cell:({cellProps:e,datum:t})=>(0,v.jsx)(I.so,{align:"center",...e,children:(0,v.jsx)(I.az,{paddingX:2,children:(()=>{let e=Ls(t);if(!e)return null;let n=Lo.find(({key:t})=>t===e);return n?(0,v.jsx)(I.Ex,{radius:2,tone:n.tone,"data-testid":`${e}-badge-${t.document._id}`,children:H(n.labelKey)}):null})()})})}],{id:"document._type",width:100,sorting:!0,header:e=>(0,v.jsx)(I.so,{...e.headerProps,paddingY:3,sizing:"border",children:(0,v.jsx)(O7,{text:H("table-header.type"),...e})}),cell:({cellProps:e,datum:t})=>(0,v.jsx)(I.so,{align:"center",...e,children:(0,v.jsx)(I.az,{paddingX:2,children:!t.isLoading&&(0,v.jsx)(Lw,{type:t.document._type})})})},{id:"search",width:null,style:{minWidth:"50%",maxWidth:"50%"},sortTransform:e=>String(e.document?.title||e.document?.name||e.document?._id).toLowerCase()||0,header:e=>(0,v.jsx)(O3,{...e,placeholder:H("search-documents-placeholder")}),cell:({cellProps:e,datum:i})=>(0,v.jsx)(I.az,{...e,flex:1,padding:1,paddingRight:2,sizing:"border",children:i.isPending||i.isLoading?(0,v.jsx)(j8,{isPlaceholder:!0}):(0,v.jsx)(Lj,{item:i,releaseId:t,releaseState:n,documentRevision:i.document._rev})})},{id:"document._updatedAt",sorting:!0,width:130,header:e=>(0,v.jsx)(I.so,{...e.headerProps,paddingY:3,sizing:"border",children:(0,v.jsx)(O7,{text:H("table-header.edited"),...e})}),cell:e=>(0,v.jsx)(L_,{...e,releaseDocumentId:t})},{id:"validation",sorting:!1,width:50,header:({headerProps:e})=>(0,v.jsx)(I.so,{...e,paddingY:3,sizing:"border",children:(0,v.jsx)(O8,{text:""})}),cell:({cellProps:e,datum:t})=>{if(t.isLoading)return null;let n=t.validation.validation.filter(e=>"error"===e.level).length;return(0,v.jsx)(I.so,{...e,flex:1,padding:1,justify:"center",align:"center",sizing:"border",children:t.validation.hasError&&(0,v.jsx)(tL.m_,{portal:!0,placement:"bottom-end",content:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsxs)(I.so,{align:"center",gap:3,padding:1,children:[(0,v.jsx)(NF,{icon:eT.YZv,tone
1251:"critical"}),H(1===n?"document-validation.error_one":"document-validation.error_other",{count:n})]})}),children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(NF,{icon:eT.YZv,tone:"critical"})})})})}}],S[6]=A._id,S[7]=A.state,S[8]=H,S[9]=o):o=S[9];let q=o;S[10]===Symbol.for("react.memo_cache_sentinel")?(l=()=>M(!0),S[10]=l):l=S[10];let W=l;S[11]!==B?(s=(e,t)=>e.filter(e=>(!t||function(e,t){if(!t||0===t.trim().length||!e.title&&!e.name)return!1;let n=Lk(e.title),i=Lk(e.name),r=t.toLowerCase().trim(),a=n.toLowerCase(),o=i.toLowerCase(),l=a.trim().length>0,s=o.trim().length>0,d=`${a} ${o}`,c=r.split(/\s+/).filter(e=>e.length>0).every(e=>l&&a.includes(e)||s&&o.includes(e)||d.includes(e)),u=s&&r.includes(o)||l&&r.includes(a);return c||u}(e.document,t))&&("all"===B||("errors"===B?e.validation.hasError&&!e.isPending:Ls(e)===B))),S[11]=B,S[12]=s):s=S[12];let J=s;S[13]!==N||S[14]!==U||S[15]!==H||S[16]!==O||S[17]!==R?(d=async e=>{if(M(!1),!e)return;let t=(0,tG.ct)(e._id,U),n=`${t}-pending`,i={memoKey:t,validation:{isValidating:!1,validation:[],hasError:!1},document:{...e,_id:n,publishedDocumentExists:!1},isPending:!0};F(e=>[...e,i]);try{await N(U,e._id);let t=rL(e._id);O.log(aZ,{documentOrigin:t})}catch(e){F(e=>e.filter(e=>{let{document:t}=e;return t._id!==n})),R.push({id:`add-version-to-release-${t}`,closable:!0,status:"error",title:H("toast.create-version.error",{error:e.message})})}},S[13]=N,S[14]=U,S[15]=H,S[16]=O,S[17]=R,S[18]=d):d=S[18];let K=d;S[19]!==E||S[20]!==L?(c=()=>{let e=[];L?.forEach(t=>{E.find(e=>{let{document:n}=e;return`${n._id}-pending`===t.document._id})&&e.push(t.document._id)}),e.length&&F(t=>t.filter(t=>{let{document:n}=t;return!e.includes(n._id)}))},S[19]=E,S[20]=L,S[21]=c):c=S[21],S[22]!==E||S[23]!==L||S[24]!==H||S[25]!==R?(u=[E,L,H,R],S[22]=E,S[23]=L,S[24]=H,S[25]=R,S[26]=u):u=S[26],(0,_.useEffect)(c,u),S[27]!==E||S[28]!==L?(p=L.length?[...E,...L]:E,S[27]=E,S[28]=L,S[29]=p):p=S[29];let G=p;return S[30]===Symbol.for("react.memo_cache_sentinel")?(m={height:"100%",overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},S[30]=m):m=S[30],S[31]!==B||S[32]!==D||S[33]!==A.state||S[34]!==G?(h=(0,v.jsx)(Ld,{documents:G,releaseState:A.state,isLoading:D,activeFilter:B,onFilterChange:Y}),S[31]=B,S[32]=D,S[33]=A.state,S[34]=G,S[35]=h):h=S[35],S[36]!==H?(f=H("summary.no-documents"),S[36]=H,S[37]=f):f=S[37],S[38]===Symbol.for("react.memo_cache_sentinel")?(g={column:"search",direction:"asc"},S[38]=g):g=S[38],S[39]!==q||S[40]!==J||S[41]!==D||S[42]!==Z||S[43]!==z||S[44]!==f||S[45]!==G?(y=(0,v.jsx)(I.Zp,{borderTop:!0,children:(0,v.jsx)(O9,{loading:D,data:G,emptyState:f,rowId:"document._id",columnDefs:q,rowActions:Z,searchFilter:J,scrollContainerRef:z,defaultSort:g})}),S[39]=q,S[40]=J,S[41]=D,S[42]=Z,S[43]=z,S[44]=f,S[45]=G,S[46]=y):y=S[46],S[47]!==h||S[48]!==y?(C=(0,v.jsxs)(I.BJ,{space:2,children:[h,y]}),S[47]=h,S[48]=y,S[49]=C):C=S[49],S[50]!==D||S[51]!==A.state||S[52]!==H?(x="active"===A.state&&(0,v.jsx)(I.mc,{width:3,children:(0,v.jsx)(I.Zp,{padding:3,children:(0,v.jsx)(tL.$n,{icon:eT.REV,disabled:D,mode:"bleed",onClick:W,text:H("action.add-document")})})}),S[50]=D,S[51]=A.state,S[52]=H,S[53]=x):x=S[53],S[54]!==E?(b=E.map(LI),S[54]=E,S[55]=b):b=S[55],S[56]!==K||S[57]!==V||S[58]!==U||S[59]!==b?(w=(0,v.jsx)(La,{open:V,onClose:K,releaseId:U,idsInRelease:b}),S[56]=K,S[57]=V,S[58]=U,S[59]=b,S[60]=w):w=S[60],S[61]!==C||S[62]!==x||S[63]!==w?(k=(0,v.jsxs)(I.Zp,{ref:P,"data-testid":"document-table-card",style:m,className:"hide-scrollbar",children:[C,x,w]}),S[61]=C,S[62]=x,S[63]=w,S[64]=k):k=S[64],k}function LI(e){let{document:t}=e;return t._id}let LT=Object.create(null);function LE(e){let t,n,i=(0,j.c)(8),r=cc(),{getClient:a,i18n:o}=_g(),l=R8(),{state$:s}=cF();i[0]!==r||i[1]!==a||i[2]!==o||i[3]!==e||i[4]!==s||i[5]!==l?(t=(({schema:e,documentPreviewStore:t,getClient:n,releaseId:i,i18n:r,releasesState$:a})=>(LT[i]||(LT[i]=a.pipe((0,eV.T)(e=>e.releases.get(cH(i))),(0,to.p)(Boolean),(0,eQ.F)((e,t)=>e.state===t.state&&e.finalDocumentStates===t.finalDocumentStates),(0,eM.n)(a=>{let o=[i,a.state,a.finalDocumentStates?.flatMap(e=>e.id),a._rev].join("-");if(!LT[o]){let l;l="published"===a.state||"archived"===a.state?(({getClient:e,release:t})=>{let n=e(ll),i=n.observable,r=n.config().dataset;if(!t.finalDocumentStates?.length)return(0,eP.of)({loading:!1,results:[],error:null});function a(e){let n=e+10;return i.request({url:`/data/history/${r}/documents/${t.finalDocumentStates?.slice(e,n).map(e=>e.id).join(",")}?lastRevision=true`}).pipe((0,eV.T)(({documents:e})=>({documents:e,finalIndex:n})))}return a(0).pipe((0,tm.f)(e=>t.finalDocumentStates&&e.finalIndex<t.finalDocumentStates.length?a(e.finalIndex):(0,eP.of)()),(0,th.T)((e,t)=>e.concat(t.documents),[])).pipe((0,eV.T)(e=>({loading:!1,results:e.map(e=>({document:e,memoKey:(0,ii.A)(),validation:{validation:[],hasError:!1,isValidating:!1}})),error:null})),(0,eY.W)(e=>(0,eP.of)({loading:!1,results:[],error:e})))})({getClient:n,release:a}):(({schema:e,documentPreviewStore:t,i18n:n,getClient:i,releaseId:r})=>t.unstable_observeDocumentIdSet("sanity::partOfRelease($releaseId)",{releaseId:r},{apiVersion:ll.apiVersion}).pipe((0,eV.T)(e=>e.documentIds||[]),(0,eM.n)(r=>{if(0===r.length)return(0,eP.of)([]);let a=[];for(let e=0;e<r.length;e+=5)a.push(r.slice(e,e+5));return(0,e8.z)(a.map((r,a)=>(0,eP.of)(r).pipe((0,tb.c)(100*(0!==a)),(0,nV.q)(r=>{let a,o,l;return a={observeDocumentPairAvailability:t.unstable_observeDocumentPairAvailability,i18n:n,getClient:i,schema:e},l=(o=t.unstable_observeDocument(r,{apiVersion:ll.apiVersion}).pipe((0,to.p)(Boolean),(0,eM.n)(e=>t.unstable_observeDocumentPairAvailability(r).pipe((0,eV.T)(t=>({...e,publishedDocumentExists:t.published.available})))))).pipe((0,eM.n)(e=>{var t;return v5(e)?(0,eP.of)({isValidating:!1,validation:[],revision:e._rev,hasError:!1}):(0,eL.H)((t=()=>Promise.resolve(),"scheduler"in window&&"function"==typeof window.scheduler?.yield?window.scheduler.yield():t())).pipe((0,eM.n)(()=>sO(a,(0,eP.of)(e),!1).pipe((0,eV.T)(e=>({...e,hasError:e.validation.some(e=>(0,eD.Uw)(e))})))))})),(0,e8.z)([o,l]).pipe((0,eV.T)(([e,t])=>({document:e,validation:t,memoKey:(0,ii.A)()})))})).pipe((0,tb.c)(100*a)))).pipe((0,eV.T)(e=>e.flat()))}),(0,eV.T)(e=>({loading:!1,results:e,error:null})),(0,eY.W)(e=>(0,eP.of)({loading:!1,results:[],error:e}))))({schema:e,documentPreviewStore:t,i18n:r,getClient:n,releaseId:i}),LT[o]=l.pipe((0,e0.j)(()=>{delete LT[o]}),(0,e1.t)(1))}return LT[o]}),(0,tr.Z)({loading:!0,results:[],error:null}),(0,e1.t)(1))),LT[i]))({schema:l,documentPreviewStore:r,getClient:a,releaseId:e,i18n:o,releasesState$:s}),i[0]=r,i[1]=a,i[2]=o,i[3]=e,i[4]=s,i[5]=l,i[6]=t):t=i[6];let d=t;return i[7]===Symbol.for("react.memo_cache_sentinel")?(n={loading:!0,results:[],error:null},i[7]=n):n=i[7],(0,tF.J)(d,n)}let L$=ir.P.create(I.Zp),LA=()=>{let e,t,n,i,r=(0,j.c)(59),a=(0,nU.rd)(),[o,l]=(0,_.useState)(void 0),{t:s}=as(RE),{releaseId:d}=a.state,c=decodeURIComponent(d||""),{data:u,loading:p}=gU(),{data:m}=R6(),{loading:h,results:f,error:g}=LE(c),y=function(e){let t,n,i=(0,j.c)(12),r=el0(ll),a=cc(),{state$:o}=cF(),l=!!_g().beta?.eventsAPI?.releases;i[0]!==r||i[1]!==a||i[2]!==l||i[3]!==e||i[4]!==o?(t=function({client:e,releaseId:t,releasesState$:n,documentPreviewStore:i,eventsAPIEnabled:r}){let a=function({client:e,observeDocument$:t}){return t.pipe((0,to.p)(Boolean),(0,eQ.F)((e,t)=>e._rev===t._rev),(0,eM.n)(t=>(function({documentId:e,client:t,toTransaction:n}){let i=`${e}`,r=Nv[i]||[];
1251if(r.length>0&&r[0].id===n)return(0,eP.of)(r);function a(n){return(0,eL.H)(cK(t,e,{tag:"sanity.studio.release.history",effectFormat:"mendoza",limit:100,reverse:!0,fromTransaction:n.fromTransaction,toTransaction:n.toTransaction}))}return a({fromTransaction:r[0]?.id,toTransaction:n}).pipe((0,tm.f)(e=>100===e.length?a({fromTransaction:void 0,toTransaction:e[e.length-1].id}):(0,eP.of)()),(0,th.T)((e,t)=>e.concat(t),[])).pipe((0,eV.T)(e=>{let t;return t=new Set,e.concat(r).filter(e=>!t.has(e.id)&&(t.add(e.id),!0))}),(0,e5.M)(e=>{Nv[i]=e}))})({client:e,documentId:t._id,toTransaction:t._rev}).pipe((0,eV.T)(e=>({editEvents:function(e,t){if(t._rev!==e[0]?.id)return console.error("Some transactions are missing, cannot calculate the edit events"),[];let n=[],i=t;for(let r of e){let e=r.effects[t._id];if(!e)continue;let a=PU(i,e.revert,i._rev),o={};a?.state!==i.state&&"archived"===i.state&&n.push({type:"archiveRelease",timestamp:r.timestamp,author:r.author,releaseName:cN(t._id),id:r.id,origin:"translog"}),a?.state!==i.state&&"published"===i.state&&n.push({type:"publishRelease",timestamp:r.timestamp,author:r.author,releaseName:cN(t._id),id:r.id,origin:"translog"}),a?.state==="unarchiving"&&"active"===i.state&&n.push({type:"unarchiveRelease",timestamp:r.timestamp,author:r.author,releaseName:cN(t._id),id:r.id,origin:"translog"}),a?.metadata.releaseType!==i.metadata.releaseType&&(o.releaseType=i.metadata.releaseType),a?.metadata.intendedPublishAt!==i.metadata.intendedPublishAt&&(o.intendedPublishDate=i.metadata.intendedPublishAt),Object.values(o).length>=1&&n.push({type:a?"editRelease":"createRelease",origin:"translog",author:r.author,change:o,id:r.id,timestamp:r.timestamp,releaseName:cN(t._id)}),a&&(i=a)}return n}(e,t),loading:!1,error:null})),(0,eY.W)(e=>(console.error(e),(0,eP.of)({editEvents:[],loading:!1,error:e}))))),(0,tr.Z)(Nj),(0,ts.S)((e,t)=>{let n=t.loading?e.editEvents:t.editEvents;return{...t,editEvents:n}},Nj),(0,e1.t)(1))}({client:e,observeDocument$:i.unstable_observeDocument(t,{apiVersion:ll.apiVersion})}),o=n.pipe((0,eV.T)(e=>e.releases.get(t)?._rev),(0,to.p)(Boolean),(0,eQ.F)(),(0,tf.i)(1)),l=r?function({client:e,releaseId:t}){let n=new e2.t({cursor:null,origin:"initial"}),i="";return{events$:n.pipe((0,eM.n)(({cursor:n,origin:i})=>(({limit:n,nextCursor:i})=>{let r=new URLSearchParams({limit:n.toString()});return i&&r.append("nextCursor",i),e.observable.request({url:`/data/history/${e.config().dataset}/events/releases/${cN(t)}?${r.toString()}`,tag:"get-release-events"}).pipe((0,eV.T)(e=>({events:e.events.map(Nb),nextCursor:e.nextCursor,loading:!1,error:null})),(0,eY.W)(e=>(console.error(e),[{events:[],nextCursor:"",loading:!1,error:e}])))})({nextCursor:n,limit:"reload"===i?10:100}).pipe((0,eV.T)(e=>({...e,origin:i})),(0,tr.Z)({events:[],nextCursor:"",loading:!0,error:null,origin:i}))),(0,ts.S)((e,t)=>({events:Array.from([...e.events,...t.events].reduce((e,t)=>e.has(t.id)?e:e.set(t.id,t),new Map).values()).sort((e,t)=>new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime()),nextCursor:"reload"===t.origin?e.nextCursor:t.nextCursor,loading:t.loading,error:t.error}),Nx),(0,e5.M)(e=>{i=e.nextCursor}),(0,e1.t)(1)),reloadEvents:()=>n.next({cursor:null,origin:"reload"}),loadMore:()=>{let e=n.getValue().cursor;i&&e!==i&&n.next({origin:"loadMore",cursor:i})}}}({client:e,releaseId:t}):NS,s=r?(0,eP.of)(0):i.unstable_observeDocumentIdSet("sanity::partOfRelease($releaseId)",{releaseId:cN(t)},{apiVersion:ll.apiVersion}).pipe((0,to.p)(({status:e})=>"connected"===e),(0,eV.T)(({documentIds:e})=>e.length),(0,eQ.F)(),(0,tf.i)(1)),d=(0,eZ.h)(o,s).pipe((0,e5.M)(()=>{l.reloadEvents()}),(0,tr.Z)(null));return{events$:(0,e8.z)([l.events$,a,d]).pipe((0,eV.T)(([e,t])=>{let n;return{events:(n=[...e.events,...t.editEvents].sort((e,t)=>Date.parse(t.timestamp)-Date.parse(e.timestamp)).reduce((e,t)=>{if(Nw(t)){let n=e.find(Nw);n?N_(n)&&"translog"===t.origin&&(e[e.indexOf(n)]=t):e.push(t)}else e.push(t);return e},[])).filter((e,t)=>{var i,r;let a=n[t+1];return!a||!(e.type===a.type&&(i=e.timestamp,r=a.timestamp,1e3>=Math.abs(new Date(i).getTime()-new Date(r).getTime())))}),hasMore:!!e.nextCursor,error:e.error||t.error,loading:e.loading||t.loading}})),loadMore:l.loadMore}}({client:r,releaseId:cH(e),releasesState$:o,documentPreviewStore:a,eventsAPIEnabled:l}),i[0]=r,i[1]=a,i[2]=l,i[3]=e,i[4]=o,i[5]=t):t=i[5];let s=t,d=(0,tF.J)(s.events$,Nk);return i[6]!==d.error||i[7]!==d.events||i[8]!==d.hasMore||i[9]!==d.loading||i[10]!==s.loadMore?(n={events:d.events,hasMore:d.hasMore,loading:d.loading,error:d.error,loadMore:s.loadMore}
1251,i[6]=d.error,i[7]=d.events,i[8]=d.hasMore,i[9]=d.loading,i[10]=s.loadMore,i[11]=n):n=i[11],n}(c);if(r[0]!==m||r[1]!==u||r[2]!==c){let t;r[4]!==c?(t=e=>cN(e._id)===c,r[4]=c,r[5]=t):t=r[5],e=u.concat(m).find(t),r[0]=m,r[1]=u,r[2]=c,r[3]=e}else e=r[3];let C=e;e:{let e;if(g){let e,n,i,a,o,l,d,c;r[6]===Symbol.for("react.memo_cache_sentinel")?(e={opacity:0},n={opacity:1},r[6]=e,r[7]=n):(e=r[6],n=r[7]),r[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.YZv,{})}),r[8]=i):i=r[8],r[9]!==s?(a=s("loading-release-documents.error.title"),r[9]=s,r[10]=a):a=r[10],r[11]!==a?(o=(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:a}),r[11]=a,r[12]=o):o=r[12],r[13]!==s?(l=s("loading-release-documents.error.description"),r[13]=s,r[14]=l):l=r[14],r[15]!==l?(d=(0,v.jsx)(I.EY,{size:1,children:l}),r[15]=l,r[16]=d):d=r[16],r[17]!==o||r[18]!==d?(c=(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(L$,{initial:e,animate:n,tone:"critical",padding:4,radius:4,children:(0,v.jsxs)(I.so,{gap:3,children:[i,(0,v.jsxs)(I.BJ,{space:4,children:[o,d]})]})})}),r[17]=o,r[18]=d,r[19]=c):c=r[19],t=c;break e}if(!C){t=null;break e}r[20]!==h||r[21]!==C||r[22]!==f?(e=(0,v.jsx)(LS,{isLoading:h,documents:f,release:C}),r[20]=h,r[21]=C,r[22]=f,r[23]=e):e=r[23],t=e}let x=t;if(p){let e,t;return r[24]!==s?(e=s("loading-release"),r[24]=s,r[25]=e):e=r[25],r[26]!==e?(t=(0,v.jsx)(ry,{title:e,fill:!0,"data-testid":"release-documents-table-loader"}),r[26]=e,r[27]=t):t=r[27],t}if(C){let e,t,n,i,a,s,d,c;r[28]!==o||r[29]!==C?(e=(0,v.jsx)(I.Zp,{flex:"none",padding:3,children:(0,v.jsx)(OJ,{release:C,inspector:o,setInspector:l})}),r[28]=o,r[29]=C,r[30]=e):e=r[30],r[31]!==C||r[32]!==f?(t=(0,v.jsx)(N9,{release:C,documents:f}),r[31]=C,r[32]=f,r[33]=t):t=r[33],r[34]!==x||r[35]!==t?(n=(0,v.jsxs)(I.Zp,{flex:1,overflow:"auto",children:[t,x]}),r[34]=x,r[35]=t,r[36]=n):n=r[36],r[37]!==y.events||r[38]!==C||r[39]!==f?(i=(0,v.jsx)(OU,{documents:f,release:C,events:y.events}),r[37]=y.events,r[38]=C,r[39]=f,r[40]=i):i=r[40],r[41]!==n||r[42]!==i?(a=(0,v.jsxs)(I.so,{direction:"column",flex:1,height:"fill",children:[n,i]}),r[41]=n,r[42]=i,r[43]=a):a=r[43];let u="activity"===o;return r[44]!==y||r[45]!==C||r[46]!==u?(s=(0,v.jsx)(NL,{events:y,release:C,show:u}),r[44]=y,r[45]=C,r[46]=u,r[47]=s):s=r[47],r[48]!==a||r[49]!==s?(d=(0,v.jsxs)(I.so,{flex:1,children:[a,s]}),r[48]=a,r[49]=s,r[50]=d):d=r[50],r[51]!==e||r[52]!==d?(c=(0,v.jsxs)(I.so,{direction:"column",flex:1,height:"fill",overflow:"hidden",children:[e,d]}),r[51]=e,r[52]=d,r[53]=c):c=r[53],c}return r[54]!==c||r[55]!==s?(n=s("not-found",{releaseId:c}),r[54]=c,r[55]=s,r[56]=n):n=r[56],r[57]!==n?(i=(0,v.jsx)(I.Zp,{flex:1,tone:"critical",children:(0,v.jsx)(I.mc,{width:0,children:(0,v.jsx)(I.BJ,{paddingX:4,paddingY:6,space:1,children:(0,v.jsx)(I.DZ,{children:n})})})}),r[57]=n,r[58]=i):i=r[58],i};function LD(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(33),{date:m,focused:h,isCurrentMonth:f,isToday:g,onSelect:y,selected:C,disabled:x,dateStyles:b}=e;p[0]!==b?(t=void 0===b?{}:b,p[0]=b,p[1]=t):t=p[1];let w=t;p[2]!==m||p[3]!==y||p[4]!==C?(n=()=>{y(C?void 0:m)},p[2]=m,p[3]=y,p[4]=C,p[5]=n):n=p[5];let _=n;g||C?i="primary":((0,nw.c)(m),i="default"),p[6]!==m?(r=m.toDateString(),p[6]=m,p[7]=r):r=p[7];let k=h?"true":"";p[8]!==m||p[9]!==g?(a=g?"day-tile-today":`day-tile-${m.getDate()}-${m.getMonth()}`,p[8]=m,p[9]=g,p[10]=a):a=p[10],p[11]===Symbol.for("react.memo_cache_sentinel")?(o={position:"relative"},p[11]=o):o=p[11];let S=C||f?1:.35;return p[12]!==w||p[13]!==S?(l={opacity:S,textAlign:"center",...w},p[12]=w,p[13]=S,p[14]=l):l=p[14],p[15]!==m||p[16]!==C?(s=C?(0,v.jsx)(eT.USm,{}):m.getDate(),p[15]=m,p[16]=C,p[17]=s):s=p[17],p[18]!==l||p[19]!==s?(d=(0,v.jsx)(I.EY,{size:1,style:l,children:s}),p[18]=l,p[19]=s,p[20]=d):d=p[20],p[21]!==x||p[22]!==_||p[23]!==C||p[24]!==d||p[25]!==r||p[26]!==k||p[27]!==a||p[28]!==i?(c=(0,v.jsx)(I.Zp,{"aria-label":r,"aria-pressed":C,as:"button",__unstable_focusRing:!0,"data-weekday":!0,"data-focused":k,"data-testid":a,role:"button",tabIndex:-1,onClick:_,paddingX:3,paddingY:4,radius:2,selected:C,style:o,tone:i,disabled:x,children:d}),p[21]=x,p[22]=_,p[23]=C,p[24]=d,p[25]=r,p[26]=k,p[27]=a,p[28]=i,p[29]=c):c=p[29],p[30]!==C||p[31]!==c?(u=(0,v.jsx)("div",{"aria-selected":C,"data-ui":"CalendarDay",children:c}),p[30]=C,p[31]=c,p[32]=u):u=p[32],u}function Lz(e){let t,n,i,r,a,o=(0,j.c)(24),{date:l,renderCalendarDay:s,hidden:d,disabled:c,timeZoneScope:u}=e,{getCurrentZoneDate:p}=ky(u),m=s||LD,h=kD(l),f=d||!1;
1251if(o[0]===Symbol.for("react.memo_cache_sentinel")?(t={gridGap:"1px",gridTemplateColumns:"repeat(7, 1fr)"},n=kE.map(LP),o[0]=t,o[1]=n):(t=o[0],n=o[1]),o[2]!==m||o[3]!==l||o[4]!==c||o[5]!==p||o[6]!==e.focused||o[7]!==e.onSelect||o[8]!==e.selected||o[9]!==h){let t;o[11]!==m||o[12]!==l||o[13]!==c||o[14]!==p||o[15]!==e.focused||o[16]!==e.onSelect||o[17]!==e.selected?(t=(t,n)=>t.days.map((t,i)=>{let r=e.focused&&(0,nd.r)(t,e.focused),a=e.selected&&(0,nd.r)(t,e.selected),o=(0,nd.r)(t,p()),s=(0,nc.t)(t,e.focused||l);return(0,v.jsx)(m,{date:t,focused:r,isCurrentMonth:s,isToday:o,onSelect:e.onSelect,selected:a,disabled:c},`${n}-${i}`)}),o[11]=m,o[12]=l,o[13]=c,o[14]=p,o[15]=e.focused,o[16]=e.onSelect,o[17]=e.selected,o[18]=t):t=o[18],i=h.map(t),o[2]=m,o[3]=l,o[4]=c,o[5]=p,o[6]=e.focused,o[7]=e.onSelect,o[8]=e.selected,o[9]=h,o[10]=i}else i=o[10];return o[19]!==i?(r=(0,v.jsxs)(I.xA,{style:t,children:[n,i]}),o[19]=i,o[20]=r):r=o[20],o[21]!==f||o[22]!==r?(a=(0,v.jsx)(I.az,{"aria-hidden":f,"data-ui":"CalendarMonth",children:r}),o[21]=f,o[22]=r,o[23]=a):a=o[23],a}function LP(e){return(0,v.jsx)(I.Zp,{paddingY:3,children:(0,v.jsx)(I.JU,{size:1,style:{textAlign:"center"},children:e.slice(0,1)})},e)}let LR=(0,v.jsx)("span",{"data-preserve-focus":!0,style:{overflow:"hidden",position:"absolute",outline:"none"},tabIndex:-1}),LN=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z,P,R,N,O,V,M,L,F,B,Y,H=(0,j.c)(86);H[0]!==e?({focusedDate:r,onFocusedDateChange:n,onSelect:i,selectedDate:l,renderCalendarDay:a,timeZoneScope:s,...o}=e,H[0]=e,H[1]=n,H[2]=i,H[3]=r,H[4]=a,H[5]=o,H[6]=l,H[7]=s):(n=H[1],i=H[2],r=H[3],a=H[4],o=H[5],l=H[6],s=H[7]),H[8]===Symbol.for("react.memo_cache_sentinel")?(d=new Date,H[8]=d):d=H[8];let[U,Z]=(0,_.useState)(d),{t:q}=as(),{zoneDateToUtc:W}=ky(s),J=r||U;H[9]!==n||H[10]!==r?(c=e=>{n&&r?n(e):Z(e)},H[9]=n,H[10]=r,H[11]=c):c=H[11];let K=c;H[12]!==K||H[13]!==W?(u=e=>{K(W(e))},H[12]=K,H[13]=W,H[14]=u):u=H[14];let G=u;H[15]!==J||H[16]!==G?(p=e=>G((0,nm.P)(J,e)),H[15]=J,H[16]=G,H[17]=p):p=H[17];let X=p;H[18]!==K||H[19]!==i||H[20]!==W?(m=e=>{if(e){let t=W((0,nf.g)((0,ng.a)(e,e.getHours()),e.getMinutes()));i(t),K(t)}else i(void 0)},H[18]=K,H[19]=i,H[20]=W,H[21]=m):m=H[21];let Q=m,ee=(0,_.useRef)(null);H[22]===Symbol.for("react.memo_cache_sentinel")?(h=()=>ee.current,H[22]=h):h=H[22],(0,_.useImperativeHandle)(t,h),H[23]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{ee.current?.querySelector('[data-focused="true"]')?.focus()},H[23]=f):f=H[23];let et=f;H[24]!==J||H[25]!==K||H[26]!==W?(g=e=>{if(k$.includes(e.key)){if(e.preventDefault(),e.currentTarget.hasAttribute("data-calendar-grid"))return void et();"ArrowUp"===e.key&&K(W((0,nl.f)(J,-7))),"ArrowDown"===e.key&&K(W((0,nl.f)(J,7))),"ArrowLeft"===e.key&&K(W((0,nl.f)(J,-1))),"ArrowRight"===e.key&&K(W((0,nl.f)(J,1))),ee.current?.querySelector("[data-preserve-focus]")?.focus()}},H[24]=J,H[25]=K,H[26]=W,H[27]=g):g=H[27];let en=g;H[28]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{et()},C=[et],H[28]=y,H[29]=C):(y=H[28],C=H[29]),(0,_.useEffect)(y,C),H[30]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{document.activeElement?.matches("[data-calendar-grid], [data-calendar-grid] [data-preserve-focus]")&&et()},H[30]=x):x=H[30],H[31]!==J?(b=[ee,et,J],H[31]=J,H[32]=b):b=H[32],(0,_.useEffect)(x,b),H[33]!==K||H[34]!==i?(w=()=>{let e=new Date;i(e),K(e)},H[33]=K,H[34]=i,H[35]=w):w=H[35];let ei=w;H[36]!==X?(k=()=>X(-1),H[36]=X,H[37]=k):k=H[37];let er=k;H[38]!==X?(S=()=>X(1),H[38]=X,H[39]=S):S=H[39];let ea=S;H[40]===Symbol.for("react.memo_cache_sentinel")?(T={borderBottom:"1px solid var(--card-border-color)",minHeight:"55px",position:"sticky",top:0},H[40]=T):T=H[40];let eo=kT[J?.getMonth()];H[41]!==J?(E=J?.getFullYear(),H[41]=J,H[42]=E):E=H[42],H[43]!==eo||H[44]!==E?($=(0,v.jsxs)(I.EY,{weight:"medium",size:1,children:[eo," ",E]}),H[43]=eo,H[44]=E,H[45]=$):$=H[45],H[46]===Symbol.for("react.memo_cache_sentinel")?(A={content:"Previous month"},H[46]=A):A=H[46],H[47]!==er||H[48]!==o.disabled?(D=(0,v.jsx)(tL.$n,{icon:eT.YJP,mode:"bleed",onClick:er,tooltipProps:A,disabled:o.disabled}),H[47]=er,H[48]=o.disabled,H[49]=D):D=H[49],H[50]===Symbol.for("react.memo_cache_sentinel")?(z={content:"Next month"},H[50]=z):z=H[50],H[51]!==ea||H[52]!==o.disabled?(P=(0,v.jsx)(tL.$n,{icon:eT.vKP,mode:"bleed",onClick:ea,tooltipProps:z,disabled:o.disabled}),H[51]=ea,H[52]=o.disabled,H[53]=P):P=H[53],H[54]!==D||H[55]!==P?(R=(0,v.jsx)(I.so,{paddingRight:3,gap:2,children:(0,v.jsxs)(tL.vE,{children:[D,P]})}),H[54]=D,H[55]=P,H[56]=R):R=H[56],H[57]!==$||H[58]!==R?(N=(0,v.jsx)(I.so,{align:"center",paddingLeft:4,style:T,children:(0,v.jsxs)(I.so,{align:"center",flex:1,justify:"space-between",children:[$,R]})}),H[57]=$,H[58]=R,H[59]=N):N=H[59],H[60]!==J||H[61]!==Q||H[62]!==r||H[63]!==a||H[64]!==o.disabled||H[65]!==l||H[66]!==s?(O=(0,v.jsx)(Lz,{date:J,focused:r,onSelect:Q,selected:l,renderCalendarDay:a,disabled:o.disabled,timeZoneScope:s}),H[60]=J,H[61]=Q,H[62]=r,H[63]=a,H[64]=o.disabled,H[65]=l,H[66]=s,H[67]=O):O=H[67],H[68]!==en||H[69]!==O?(V=(0,v.jsx)(I.az,{children:(0,v.jsxs)(I.az,{"data-calendar-grid":!0,onKeyDown:en,overflow:"hidden",paddingBottom:1,paddingX:1,tabIndex:0,children:[O,LR]})}),H[68]=en,H[69]=O,H[70]=V):V=H[70],H[71]===Symbol.for("react.memo_cache_sentinel")?(M={borderBottom:"1px solid var(--card-border-color)"},H[71]=M):M=H[71];let el=o.disabled;return H[72]!==q?(L=q("calendar.action.go-to-today-aria-label"),H[72]=q,H[73]=L):L=H[73],H[74]!==q?(F=q("calendar.action.go-to-today"),H[74]=q,H[75]=F):F=H[75],H[76]!==ei||H[77]!==o.disabled||H[78]!==L||H[79]!==F?(B=(0,v.jsx)(I.az,{flex:1,style:M,children:(0,v.jsx)(tL.$n,{disabled:el,mode:"bleed",onClick:ei,width:"fill","aria-label":L,text:F})}),H[76]=ei,H[77]=o.disabled,H[78]=L,H[79]=F,H[80]=B):B=H[80],H[81]!==o||H[82]!==N||H[83]!==V||H[84]!==B?(Y=(0,v.jsxs)(I.az,{"data-ui":"Calendar",...o,ref:ee,children:[N,V,B]}),H[81]=o,H[82]=N,H[83]=V,H[84]=B,H[85]=Y):Y=H[85],Y});function LO(){return!!_g().scheduledDrafts?.enabled}function LV(e){let t,n,i=(0,j.c)(6),{children:r}=e,{enabled:a,isLoading:o,error:l}=EY(EF),s=LO();e:{let e;if(!s||o||l){let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e={enabled:!1,mode:null},i[0]=e):e=i[0],t=e;break e}let n=a?"default":"upsell";i[1]!==n?(e={enabled:!0,mode:n},i[1]=n,i[2]=e):e=i[2],t=e}let d=t;return i[3]!==r||i[4]!==d?(n=(0,v.jsx)(S.oo.Provider,{value:d,children:r}),i[3]=r,i[4]=d,i[5]=n):n=i[5],n}function LM(){return(0,_.useContext)(S.oo)}let LL=()=>{let e,t=(0,j.c)(2),{zoneDateToUtc:n}=ky(Rz);return t[0]!==n?(e=e=>{let{metadata:t}=e,i=t.intendedPublishAt?n(new Date(t.intendedPublishAt)).toISOString():void 0;return{...e,metadata:{...t,intendedPublishAt:i,title:t?.title?.trim()}}},t[0]=n,t[1]=e):e=t[1],e};function LF(){let e,t,n,i=(0,j.c)(7),[r,a]=(0,_.useState)(!0),[o,l]=(0,_.useState)(null),{guardWithReleaseLimitUpsell:s}=Rw();return i[0]!==s?(e=()=>{a(!0),l(new Promise(e=>{s(el.A,!1,t=>{e(t)})}))},i[0]=s,i[1]=e):e=i[1],i[2]!==s||i[3]!==r?(t=[s,r],i[2]=s,i[3]=r,i[4]=t):t=i[4],(0,_.useEffect)(e,t),i[5]!==o?(n={releasePromise:o},i[5]=o,i[6]=n):n=i[6],n}function LB(e){return e.metadata?.releaseType==="scheduled"&&!e.metadata?.intendedPublishAt}function LY(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(38),{onCancel:p,onSubmit:m,origin:h}=e,f=(0,T.dj)(),{createRelease:g}=RI(),y=Rj(),{t:C}=as(),x=(0,tK.Jr)(),b=LL(),{clearReleaseDataFromStorage:w}=RR(),[k,S]=(0,_.useState)(uE),[E,$]=(0,_.useState)(!1);u[0]!==k?(t=LB(k),u[0]=k,u[1]=t):t=u[1];let A=t,{releasePromise:D}=LF();u[2]!==w||u[3]!==g||u[4]!==b||u[5]!==p||u[6]!==m||u[7]!==h||u[8]!==k||u[9]!==D||u[10]!==y||u[11]!==C||u[12]!==x||u[13]!==f?(n=async e=>{if(e.preventDefault(),$(!0),!await D)return void $(!1);try{let e=b(k);await g(e),p(),x.log(aq,{origin:h}),await new Promise(LH),y(cN(k._id)),m(cN(k._id))}catch(e){RS(e)?(p(),w()):(console.error(e),f.push({closable:!0,status:"error",title:C("release.toast.create-release-error.title")}))}$(!1),w()},u[2]=w,u[3]=g,u[4]=b,u[5]=p,u[6]=m,u[7]=h,u[8]=k,u[9]=D,u[10]=y,u[11]=C,u[12]=x,u[13]=f,u[14]=n):n=u[14];let z=n;u[15]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{S(e)},u[15]=i):i=u[15];let P=i;u[16]!==C?(r=C("release.dialog.create.title"),u[16]=C,u[17]=r):r=u[17];let R=r;u[18]!==C?(a=C("release.dialog.create.confirm"),u[18]=C,u[19]=a):a=u[19];let N=a;u[20]!==w||u[21]!==p?(o=()=>{w(),p()},u[20]=w,u[21]=p,u[22]=o):o=u[22];let O=o;u[23]!==k?(l=(0,v.jsx)(I.az,{paddingBottom:4,children:(0,v.jsx)(RW,{onChange:P,value:k})}),u[23]=k,u[24]=l):l=u[24];let V=E||A;return u[25]!==N||u[26]!==E||u[27]!==V?(s=(0,v.jsx)(I.so,{justify:"flex-end",paddingTop:5,children:(0,v.jsx)(tL.$n,{size:"large",disabled:V,type:"submit",text:N,loading:E,"data-testid":"submit-release-button"})}),u[25]=N,u[26]=E,u[27]=V,u[28]=s):s=u[28],u[29]!==z||u[30]!==l||u[31]!==s?(d=(0,v.jsx)(I.Zp,{padding:4,borderTop:!0,children:(0,v.jsxs)("form",{onSubmit:z,children:[l,s]})}),u[29]=z,u[30]=l,u[31]=s,u[32]=d):d=u[32],u[33]!==R||u[34]!==O||u[35]!==p||u[36]!==d?(c=(0,v.jsx)(tL.lG,{onClickOutside:p,header:R,id:"create-release-dialog",onClose:O,width:1,padding:!1,children:d}),u[33]=R,u[34]=O,u[35]=p,u[36]=d,u[37]=c):c=u[37],c}function LH(e){return setTimeout(e,1e3)}function LU(e){let t,n,i,r,a,o,l,s=(0,j.c)(14),{content:d}=e,c=(0,_.useRef)(null),u=(0,_.useRef)(null),[p,m]=(0,_.useState)(!1),{t:h}=as(RE);return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>m(!1),n=()=>[c.current,u.current],s[0]=t,s[1]=n):(t=s[0],n=s[1]),(0,I.PR)(t,n),s[2]!==h?(i=h("overview.calendar.tooltip"),s[2]=h,s[3]=i):i=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>m(LZ),s[4]=r):r=s[4],s[5]!==p?(a=(0,v.jsx)(I.$n,{name:"calendar","data-as":"a",icon:eT.CTc,mode:"bleed",padding:2,radius:"full",selected:p,onClick:r,ref:c,space:2}),s[5]=p,s[6]=a):a=s[6],s[7]!==i||s[8]!==a?(o=(0,v.jsx)(tL.m_,{content:i,
1251children:a}),s[7]=i,s[8]=a,s[9]=o):o=s[9],s[10]!==d||s[11]!==p||s[12]!==o?(l=(0,v.jsx)(tL.AM,{content:d,placement:"bottom",open:p,ref:u,children:o}),s[10]=d,s[11]=p,s[12]=o,s[13]=l):l=s[13],l}function LZ(e){return!e}let Lq=(0,tW.g_)({name:"Navigated to Content Releases",version:1,description:"User navigated to the content releases list view"}),LW=(0,tW.g_)({name:"Navigated to Scheduled Drafts",version:1,description:"User navigated to the scheduled drafts list view"}),LJ=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(46),{cardinalityView:g,loading:y,isScheduledDraftsEnabled:C,isReleasesEnabled:x,isDraftModelEnabled:b,allReleases:w,onCardinalityViewChange:_}=e,{t:k}=as(RE),S=(0,tK.Jr)();f[0]!==w?(t=w.some(rX),f[0]=w,f[1]=t):t=f[1];let T=t;f[2]!==g||f[3]!==T||f[4]!==b||f[5]!==x||f[6]!==C?(n=(({hasSingleDocRelease:e,isScheduledDraftsEnabled:t,isReleasesEnabled:n,cardinalityView:i,isDraftModelEnabled:r})=>n?e||t&&r||"drafts"===i?"both":"contentReleases":"releases"===i?"both":"singleDocReleases")({hasSingleDocRelease:T,isScheduledDraftsEnabled:C,isReleasesEnabled:x,cardinalityView:g,isDraftModelEnabled:b}),f[2]=g,f[3]=T,f[4]=b,f[5]=x,f[6]=C,f[7]=n):n=f[7];let E=n;f[8]!==_||f[9]!==S?(i=e=>()=>{S.log("releases"===e?Lq:LW,{source:"view-picker"}),_(e)()},f[8]=_,f[9]=S,f[10]=i):i=f[10];let $=i;if("contentReleases"===E||"singleDocReleases"===E){let e,t,n;return f[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eT.CTc,{}),f[11]=e):e=f[11],f[12]!==E||f[13]!==k?(t=k("contentReleases"===E?"action.releases":"action.drafts"),f[12]=E,f[13]=k,f[14]=t):t=f[14],f[15]!==t?(n=(0,v.jsxs)(I.so,{align:"center",gap:2,children:[e,(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:t})]}),f[15]=t,f[16]=n):n=f[16],n}f[17]!==g||f[18]!==k?(r=k("releases"===g?"action.releases":"action.drafts"),f[17]=g,f[18]=k,f[19]=r):r=f[19],f[20]===Symbol.for("react.memo_cache_sentinel")?(a={fontWeight:600},f[20]=a):a=f[20],f[21]!==y||f[22]!==r?(o=(0,v.jsx)(tL.$n,{mode:"bleed",paddingY:2,text:r,icon:eT.CTc,iconRight:eT.D3D,disabled:y,style:a}),f[21]=y,f[22]=r,f[23]=o):o=f[23],f[24]!==k?(l=k("action.releases"),f[24]=k,f[25]=l):l=f[25];let A="releases"===g;f[26]!==$?(s=$("releases"),f[26]=$,f[27]=s):s=f[27],f[28]!==l||f[29]!==A||f[30]!==s?(d=(0,v.jsx)(tL.Dr,{text:l,selected:A,onClick:s}),f[28]=l,f[29]=A,f[30]=s,f[31]=d):d=f[31],f[32]!==k?(c=k("action.drafts"),f[32]=k,f[33]=c):c=f[33];let D="drafts"===g;return f[34]!==$?(u=$("drafts"),f[34]=$,f[35]=u):u=f[35],f[36]!==c||f[37]!==D||f[38]!==u?(p=(0,v.jsx)(tL.Dr,{text:c,selected:D,onClick:u}),f[36]=c,f[37]=D,f[38]=u,f[39]=p):p=f[39],f[40]!==d||f[41]!==p?(m=(0,v.jsxs)(I.W1,{children:[d,p]}),f[40]=d,f[41]=p,f[42]=m):m=f[42],f[43]!==m||f[44]!==o?(h=(0,v.jsx)(tL.IU,{id:"cardinality-view-menu",button:o,menu:m}),f[43]=m,f[44]=o,f[45]=h):h=f[45],h};function LK(e){return e.metadata.intendedPublishAt?[{actionType:"sanity.action.release.schedule",releaseId:cN(e._id),publishAt:new Date(e.metadata.intendedPublishAt).toISOString()}]:[]}function LG(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(31),{activeScheduledDrafts:y,onClose:C}=e,{t:x}=as(RE),b=(0,T.dj)(),{scheduleActiveDrafts:w}=(m=(0,j.c)(4),h=el0(ll),m[0]!==h?(u=async e=>{let t=e.flatMap(LK);await h.action(t)},m[0]=h,m[1]=u):u=m[1],f=u,m[2]!==f?(p={scheduleActiveDrafts:f},m[2]=f,m[3]=p):p=m[3],p),[k,S]=(0,_.useState)(!1);g[0]!==y?(t=y.some(LX),g[0]=y,g[1]=t):t=g[1];let E=t;g[2]!==y||g[3]!==C||g[4]!==w||g[5]!==x||g[6]!==b?(n=async()=>{S(!0);try{await w(y),C()}catch(e){b.push({status:"error",title:x("toast.confirm-active-scheduled-drafts.error",{error:e.message})})}S(!1)},g[2]=y,g[3]=C,g[4]=w,g[5]=x,g[6]=b,g[7]=n):n=g[7];let $=n;return g[8]!==x?(i=x("confirm-active-scheduled-drafts-dialog.title"),g[8]=x,g[9]=i):i=g[9],g[10]!==x?(r=x("confirm-active-scheduled-drafts-dialog.confirm-button"),g[10]=x,g[11]=r):r=g[11],g[12]!==$||g[13]!==k||g[14]!==r?(a={confirmButton:{text:r,tone:"primary",onClick:$,loading:k,disabled:k}},g[12]=$,g[13]=k,g[14]=r,g[15]=a):a=g[15],g[16]!==x?(o=x("confirm-active-scheduled-drafts-dialog.description"),g[16]=x,g[17]=o):o=g[17],g[18]!==o?(l=(0,v.jsx)(I.EY,{size:1,muted:!0,children:o}),g[18]=o,g[19]=l):l=g[19],g[20]!==E||g[21]!==x?(s=E&&(0,v.jsx)(I.EY,{size:1,muted:!0,children:x("confirm-active-scheduled-drafts-dialog.past-dates-warning")}),g[20]=E,g[21]=x,g[22]=s):s=g[22],g[23]!==l||g[24]!==s?(d=(0,v.jsxs)(I.BJ,{space:3,children:[l,s]}),g[23]=l,g[24]=s,g[25]=d):d=g[25],g[26]!==C||g[27]!==i||g[28]!==a||g[29]!==d?(c=(0,v.jsx)(tL.lG,{id:"confirm-active-scheduled-drafts-dialog",header:i,onClose:C,width:0,footer:a,children:d}),g[26]=C,g[27]=i,g[28]=a,g[29]=d,g[30]=c):c=g[30],c}function LX(e){return e.metadata.intendedPublishAt&&(0,ni.R)(new Date(e.metadata.intendedPublishAt))}function LQ(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(27),{releases:m,releaseGroupMode:h,hasDateFilter:f,onNavigateToPaused:g}=e,{t:y}=as(RE),[C,x]=(0,_.useState)(!1);p[0]!==m?(t=m.filter(L1),p[0]=m,p[1]=t):t=p[1];let b=t,w="paused"===h&&!f;p[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{x(!1)},p[2]=n):n=p[2];let k=n;p[3]!==g||p[4]!==w?(i=()=>w?x(!0):g(),p[3]=g,p[4]=w,p[5]=i):i=p[5];let S=i;if(0===b.length)return null;p[6]!==w||p[7]!==y?(r=y(w?"banner.confirm-active-scheduled-drafts.button-paused":"banner.confirm-active-scheduled-drafts.button"),p[6]=w,p[7]=y,p[8]=r):r=p[8];let T=r;return p[9]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)(I.EY,{size:0,children:(0,v.jsx)(eT.sAQ,{})}),p[9]=a):a=p[9],p[10]!==b.length?(o={count:b.length},p[10]=b.length,p[11]=o):o=p[11],p[12]!==y||p[13]!==o?(l=(0,v.jsx)(I.so,{align:"center",flex:1,gap:2,paddingY:2,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:(0,v.jsx)(aE,{t:y,i18nKey:"banner.confirm-active-scheduled-drafts",values:o})})}),p[12]=y,p[13]=o,p[14]=l):l=p[14],p[15]!==T||p[16]!==S?(s=(0,v.jsx)(I.so,{flex:"none",children:(0,v.jsx)(tL.$n,{text:T,mode:"bleed",tone:"caution",onClick:S})}),p[15]=T,p[16]=S,p[17]=s):s=p[17],p[18]!==l||p[19]!==s?(d=(0,v.jsx)(I.az,{flex:"none",padding:1,marginBottom:4,children:(0,v.jsx)(I.Zp,{radius:3,paddingX:2,paddingY:2,tone:"caution",children:(0,v.jsxs)(I.so,{align:"center",gap:3,paddingX:2,children:[a,l,s]})})}),p[18]=l,p[19]=s,p[20]=d):d=p[20],p[21]!==b||p[22]!==C?(c=C&&(0,v.jsx)(LG,{activeScheduledDrafts:b,onClose:k}),p[21]=b,p[22]=C,p[23]=c):c=p[23],p[24]!==c||p[25]!==d?(u=(0,v.jsxs)(v.Fragment,{children:[d,c]}),p[24]=c,p[25]=d,p[26]=u):u=p[26],u}function L1(e){return"active"===e.state&&rX(e)}let L2=e=>{let t,n,i,r,a=(0,j.c)(8),{isDraftModelEnabled:o,isScheduledDraftsEnabled:l,allReleases:s}=e,{t:d}=as(RE),c=s.some(rX);if(!((!o||!l)&&c))return null;a[0]!==l||a[1]!==d?(t=()=>
1251d(l?"banner.drafts-mode-disabled":"banner.scheduled-drafts-disabled"),a[0]=l,a[1]=d,a[2]=t):t=a[2];let u=t;return a[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(I.EY,{size:0,children:(0,v.jsx)(eT.sAQ,{})}),a[3]=n):n=a[3],a[4]!==u?(i=u(),a[4]=u,a[5]=i):i=a[5],a[6]!==i?(r=(0,v.jsx)(I.az,{padding:1,marginBottom:4,children:(0,v.jsx)(I.Zp,{radius:3,paddingX:2,paddingY:2,tone:"caution",children:(0,v.jsxs)(I.so,{align:"center",gap:3,paddingX:2,children:[n,(0,v.jsx)(I.so,{align:"center",flex:1,gap:2,paddingY:2,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:i})})]})})}),a[6]=i,a[7]=r):r=a[7],r},L5=()=>{let e,t=(0,j.c)(2),{zoneDateToUtc:n}=ky(Rz);return t[0]!==n?(e=e=>[(0,n_.o)(e),(0,nk.D)(e)].map(n),t[0]=n,t[1]=e):e=t[1],e},L0=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(18),{data:d}=gU(),c=L5();s[0]!==e?({date:i,cardinalityView:n,...t}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=i):(t=s[1],n=s[2],i=s[3]),s[4]!==i||s[5]!==c?(r=c(i),s[4]=i,s[5]=c,s[6]=r):r=s[6];let[u,p]=r;s[7]!==d||s[8]!==n||s[9]!==p||s[10]!==u?(a=d?.filter(u$(n))?.some(e=>{let t=e.publishAt||e.metadata.intendedPublishAt;if(!t)return!1;let n=new Date(t);return"scheduled"===e.metadata.releaseType&&n>=u&&n<=p}),s[7]=d,s[8]=n,s[9]=p,s[10]=u,s[11]=a):a=s[11];let m=a;return s[12]!==m?(o=m?{fontWeight:700}:{},s[12]=m,s[13]=o):o=s[13],s[14]!==t||s[15]!==i||s[16]!==o?(l=(0,v.jsx)(LD,{...t,date:i,dateStyles:o}),s[14]=t,s[15]=i,s[16]=o,s[17]=l):l=s[17],l},L7=ir.P.create(tL.$n),L3=e=>{let t,n,i,r=(0,j.c)(8),{filterDate:a,onClear:o}=e,[l,s]=(0,_.useState)(!1);r[0]!==o?(t=()=>{s(!1),o()},r[0]=o,r[1]=t):t=r[1];let d=t;return a?(r[2]!==a||r[3]!==l?(n=!l&&(0,v.jsx)(L7,{"data-testid":"selected-date-filter",initial:{width:0,opacity:0},animate:{width:"auto",opacity:1},exit:{width:0,opacity:0},transition:{duration:.35,ease:"easeInOut"},iconRight:eT.USm,mode:"bleed",onClick:()=>s(!0),selected:!0,text:(0,nn.GP)(a,"PPP")}),r[2]=a,r[3]=l,r[4]=n):n=r[4],r[5]!==d||r[6]!==n?(i=(0,v.jsx)(ia.N,{onExitComplete:d,children:n}),r[5]=d,r[6]=n,r[7]=i):i=r[7],i):null},L8=e=>{let t,n,i=(0,j.c)(6),{release:r,documentsCount:a}=e;i[0]!==r._id?(t=cN(r._id),i[0]=r._id,i[1]=t):t=i[1];let{results:o}=LE(t);return i[2]!==o||i[3]!==a||i[4]!==r?(n=(0,v.jsx)(OM,{release:r,documentsCount:a,documents:o}),i[2]=o,i[3]=a,i[4]=r,i[5]=n):n=i[5],n},L4=()=>{let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsxs)("svg",{"data-testid":"release-illustration",width:"248",height:"201",viewBox:"0 0 248 201",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,v.jsx)("path",{opacity:"0.2",d:"M175.4 29.8262V98.1738C175.4 103.823 181.346 107.498 186.399 104.971L222.399 86.9714C224.974 85.684 226.6 83.0524 226.6 80.1738V11.8262C226.6 6.17654 220.654 2.50197 215.601 5.02859L179.601 23.0286C177.026 24.316 175.4 26.9476 175.4 29.8262Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M183.4 33.8262V102.174C183.4 107.823 189.346 111.498 194.399 108.971L230.399 90.9714C232.974 89.684 234.6 87.0524 234.6 84.1738V15.8262C234.6 10.1765 228.654 6.50197 223.601 9.02859L187.601 27.0286C185.026 28.316 183.4 30.9476 183.4 33.8262Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M195.4 39.8262V108.174C195.4 113.823 201.346 117.498 206.399 114.971L242.399 96.9714C244.974 95.684 246.6 93.0524 246.6 90.1738V21.8262C246.6 16.1765 240.654 12.502 235.601 15.0286L199.601 33.0286C197.026 34.316 195.4 36.9476 195.4 39.8262Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.6",d:"M109.4 50.8262V119.174C109.4 124.823 115.346 128.498 120.399 125.971L156.399 107.971C158.974 106.684 160.6 104.052 160.6 101.174V32.8262C160.6 27.1765 154.654 23.502 149.601 26.0286L113.601 44.0286C111.026 45.316 109.4 47.9476 109.4 50.8262Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.9",d:"M118 123.174V54.8262C118 52.1748 119.498 49.751 121.87 48.5653L157.87 30.5652C162.524 28.2381 168 31.6226 168 36.8262V105.174C168 107.825 166.502 110.249 164.131 111.435L128.13 129.435C123.476 131.762 118 128.377 118 123.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}
1251),(0,v.jsx)("path",{opacity:"0.2",d:"M121.4 56.8262V125.174C121.4 130.823 127.346 134.498 132.399 131.971L168.399 113.971C170.974 112.684 172.6 110.052 172.6 107.174V38.8262C172.6 33.1765 166.654 29.502 161.601 32.0286L125.601 50.0286C123.026 51.316 121.4 53.9476 121.4 56.8262Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M125.4 58.8262V127.174C125.4 132.823 131.346 136.498 136.399 133.971L172.399 115.971C174.974 114.684 176.6 112.052 176.6 109.174V40.8262C176.6 35.1765 170.654 31.502 165.601 34.0286L129.601 52.0286C127.026 53.316 125.4 55.9476 125.4 58.8262Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M137.4 64.8262V133.174C137.4 138.823 143.346 142.498 148.399 139.971L184.399 121.971C186.974 120.684 188.6 118.052 188.6 115.174V46.8262C188.6 41.1765 182.654 37.502 177.601 40.0286L141.601 58.0286C139.026 59.316 137.4 61.9476 137.4 64.8262Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M145.4 68.8262V137.174C145.4 142.823 151.346 146.498 156.399 143.971L192.399 125.971C194.974 124.684 196.6 122.052 196.6 119.174V50.8262C196.6 45.1765 190.654 41.502 185.601 44.0286L149.601 62.0286C147.026 63.316 145.4 65.9476 145.4 68.8262Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.6",d:"M1.4 104.826V173.174C1.4 178.823 7.34557 182.498 12.3988 179.971L48.3988 161.971C50.9736 160.684 52.6 158.052 52.6 155.174V86.8262C52.6 81.1765 46.6544 77.502 41.6012 80.0286L5.60117 98.0286C3.02641 99.316 1.4 101.948 1.4 104.826Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.6",d:"M56.6 146.174V77.8262C56.6 75.4021 57.9696 73.186 60.1378 72.1019L96.1378 54.1019C100.393 51.9742 105.4 55.0686 105.4 59.8262V128.174C105.4 130.598 104.03 132.814 101.862 133.898L65.8622 151.898C61.6068 154.026 56.6 150.931 56.6 146.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.8",d:"M60.6 148.174V79.8262C60.6 77.4021 61.9696 75.186 64.1378 74.1019L100.138 56.1019C104.393 53.9742 109.4 57.0686 109.4 61.8262V130.174C109.4 132.598 108.03 134.814 105.862 135.898L69.8622 153.898C65.6068 156.026 60.6 152.931 60.6 148.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.9",d:"M64 150.174V81.8262C64 79.1748 65.498 76.751 67.8695 75.5653L103.87 57.5652C108.524 55.2381 114 58.6226 114 63.8262V132.174C114 134.825 112.502 137.249 110.131 138.435L74.1305 156.435C69.4762 158.762 64 155.377 64 150.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M72.6 154.174V85.8262C72.6 83.4021 73.9696 81.186 76.1378 80.1019L112.138 62.1019C116.393 59.9742 121.4 63.0686 121.4 67.8262V136.174C121.4 138.598 120.03 140.814 117.862 141.898L81.8622 159.898C77.6068 162.026 72.6 158.931 72.6 154.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M76.6 156.174V87.8262C76.6 85.4021 77.9696 83.186 80.1378 82.1019L116.138 64.1019C120.393 61.9742 125.4 65.0686 125.4 69.8262V138.174C125.4 140.598 124.03 142.814 121.862 143.898L85.8622 161.898C81.6068 164.026 76.6 160.931 76.6 156.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M84.6 160.174V91.8262C84.6 89.4021 85.9696 87.186 88.1378 86.1019L124.138 68.1019C128.393 65.9742 133.4 69.0686 133.4 73.8262V142.174C133.4 144.598 132.03 146.814 129.862 147.898L93.8622 165.898C89.6068 168.026 84.6 164.931 84.6 160.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M88.6 162.174V93.8262C88.6 91.4021 89.9696 89.186 92.1378 88.1019L128.138 70.1019C132.393 67.9742 137.4 71.0686 137.4 75.8262V144.174C137.4 146.598 136.03 148.8
125114 133.862 149.898L97.8622 167.898C93.6068 170.026 88.6 166.931 88.6 162.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M92.6 164.174V95.8262C92.6 93.4021 93.9696 91.186 96.1378 90.1019L132.138 72.1019C136.393 69.9742 141.4 73.0686 141.4 77.8262V146.174C141.4 148.598 140.03 150.814 137.862 151.898L101.862 169.898C97.6068 172.026 92.6 168.931 92.6 164.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M96.6 166.174V97.8262C96.6 95.4021 97.9696 93.186 100.138 92.1019L136.138 74.1019C140.393 71.9742 145.4 75.0686 145.4 79.8262V148.174C145.4 150.598 144.03 152.814 141.862 153.898L105.862 171.898C101.607 174.026 96.6 170.931 96.6 166.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M104.6 170.174V101.826C104.6 99.4021 105.97 97.186 108.138 96.1019L144.138 78.1019C148.393 75.9742 153.4 79.0686 153.4 83.8262V152.174C153.4 154.598 152.03 156.814 149.862 157.898L113.862 175.898C109.607 178.026 104.6 174.931 104.6 170.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.8",d:"M5.4 106.826V175.174C5.4 180.823 11.3456 184.498 16.3988 181.971L52.3988 163.971C54.9736 162.684 56.6 160.052 56.6 157.174V88.8262C56.6 83.1765 50.6544 79.502 45.6012 82.0286L9.60117 100.029C7.02641 101.316 5.4 103.948 5.4 106.826Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.9",d:"M10 177.174V108.826C10 106.175 11.498 103.751 13.8695 102.565L49.8695 84.5652C54.5238 82.2381 60 85.6226 60 90.8262V159.174C60 161.825 58.502 164.249 56.1305 165.435L20.1305 183.435C15.4762 185.762 10 182.377 10 177.174Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M13.4 110.826V179.174C13.4 184.823 19.3456 188.498 24.3988 185.971L60.3988 167.971C62.9736 166.684 64.6 164.052 64.6 161.174V92.8262C64.6 87.1765 58.6544 83.502 53.6012 86.0286L17.6012 104.029C15.0264 105.316 13.4 107.948 13.4 110.826Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M29.4 118.826V187.174C29.4 192.823 35.3456 196.498 40.3988 193.971L76.3988 175.971C78.9736 174.684 80.6 172.052 80.6 169.174V100.826C80.6 95.1765 74.6544 91.502 69.6012 94.0286L33.6012 112.029C31.0264 113.316 29.4 115.948 29.4 118.826Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"}),(0,v.jsx)("path",{opacity:"0.2",d:"M33.4 120.826V189.174C33.4 194.823 39.3456 198.498 44.3988 195.971L80.3988 177.971C82.9736 176.684 84.6 174.052 84.6 171.174V102.826C84.6 97.1765 78.6544 93.502 73.6012 96.0286L37.6012 114.029C35.0264 115.316 33.4 117.948 33.4 120.826Z",fill:"var(--card-muted-bg-color)",stroke:"var(--card-muted-fg-color)",strokeWidth:"1.2"})]}),t[0]=e):e=t[0],e},L6=e=>{let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(22),{createReleaseButton:m}=e,{t:h}=as(RE),{mode:f}=Rw();return"upsell"===f?null:(p[0]===Symbol.for("react.memo_cache_sentinel")?(t={maxWidth:"300px"},n=(0,v.jsx)(L4,{}),p[0]=t,p[1]=n):(t=p[0],n=p[1]),p[2]!==h?(i=h("overview.title"),p[2]=h,p[3]=i):i=p[3],p[4]!==i?(r=(0,v.jsx)(I.EY,{as:"h1",size:1,weight:"semibold","data-testid":"no-releases-info-text",children:i}),p[4]=i,p[5]=r):r=p[5],p[6]===Symbol.for("react.memo_cache_sentinel")?(a={textAlign:"center"},p[6]=a):a=p[6],p[7]!==h?(o=h("overview.description"),p[7]=h,p[8]=o):o=p[8],p[9]!==o?(l=(0,v.jsx)(I.EY,{size:1,muted:!0,style:a,children:o}),p[9]=o,p[10]=l):l=p[10],p[11]!==h?(s=h("overview.action.documentation"),p[11]=h,p[12]=s):s=p[12],p[13]!==s?(d=(0,v.jsx)(tL.$n,{as:"a",href:"https://www.sanity.io/docs/content-releases",target:"_blank",mode:"ghost",text:s}),p[13]=s,p[14]=d):d=p[14],p[15]!==m||p[16]!==d?(c=(0,v.jsxs)(I.cV,{space:2,children:[m,d]}),p[15]=m,p[16]=d,p[17]=c):c=p[17],p[18]!==c||p[19]!==r||p[20]!==l?(u=(0,v.jsx)(I.so,{direction:"column",flex:1,justify:"center",align:"center",children:(0,v.jsxs)(I.so,{gap:3,direction:"column",align:"center",style:t,children:[n,r,l,c]})}),p[18]=c,p[19]=r,p[20]=l,p[21]=u):u=p[21],u)};function L9(e){let t,n,i=(0,j.c)(5),{releaseId:r}=e;i[0]!==r?(t=cN(r),i[0]=r,i[1]=t):t=i[1];let{results:a,loading:o}=LE(t);return i[2]!==a||i[3]!==o?(n=o?(0,v.jsx)(I.y$,{size:1,muted:!0}
1251):(0,v.jsx)(N6,{layout:"minimal",documents:a}),i[2]=a,i[3]=o,i[4]=n):n=i[4],n}let Fe=e=>{let t,n=(0,j.c)(2),{documentCount:i}=e,r=i||"-";return n[0]!==r?(t=(0,v.jsx)(I.EY,{muted:!0,size:1,children:r}),n[0]=r,n[1]=t):t=n[1],t},Ft={block:{icon:25,media:{width:33,height:33}},blockImage:{icon:25,media:{width:600,height:400}},compact:{icon:21,media:{width:25,height:25}},default:{icon:21,media:{width:33,height:33}},detail:{icon:25,media:{width:73,height:73}},inline:{icon:15,media:{width:15,height:15}},media:{icon:25,media:{width:160,height:160}}},Fn=(0,eI.I4)(I.so).attrs({align:"center"}).withConfig({displayName:"RootFlex",componentId:"sc-1mf80xe-0"})`height:${(0,I.D0)(Ft.detail.media.height)};`,Fi=(0,eI.I4)(I.az).withConfig({displayName:"StatusBox",componentId:"sc-1mf80xe-1"})`white-space:nowrap;`,Fr=(0,eI.I4)(T.EA).attrs({animated:!0,radius:2}).withConfig({displayName:"MediaSkeleton",componentId:"sc-1mf80xe-2"})`width:${(0,I.D0)(Ft.detail.media.width)};height:${(0,I.D0)(Ft.detail.media.height)};`,Fa=(0,eI.I4)(T.r5).attrs({animated:!0,radius:1,size:1}).withConfig({displayName:"TitleSkeleton",componentId:"sc-1mf80xe-3"})`max-width:${(0,I.D0)(160)};width:80%;`,Fo=(0,eI.I4)(T.r5).attrs({animated:!0,radius:1,size:1}).withConfig({displayName:"SubtitleSkeleton",componentId:"sc-1mf80xe-4"})`max-width:${(0,I.D0)(120)};width:60%;`,Fl=(0,eI.I4)(T.r5).attrs({animated:!0,radius:1,size:1}).withConfig({displayName:"DescriptionSkeleton",componentId:"sc-1mf80xe-5"})`max-width:${(0,I.D0)(180)};width:90%;`,Fs=(0,eI.I4)(I.EY).withConfig({displayName:"DescriptionText",componentId:"sc-1mf80xe-6"})(({theme:e})=>{let{fonts:t}=e.sanity,n=2*t.text.sizes[1].lineHeight;return(0,eI.AH)` 1252 & > span { 1253 max-height: ${(0,I.D0)(n)}; 1254 1255 /* Multi-line text overflow */ 1256 display: -webkit-box; 1257 overflow: hidden; 1258 overflow: clip; 1259 text-overflow: ellipsis; 1260 -webkit-line-clamp: ${2}; 1261 -webkit-box-orient: vertical; 1262 } 1263 `}),Fd=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,_=(0,j.c)(67),{cellProps:k,datum:S}=e,E=(0,nU.rd)(),{t:$}=as(RE),{t:A}=as(),{selectedReleaseId:D}=a3(),z=Rj(),{state:P}=S;_[0]!==S._id||_[1]!==S.isLoading?(t=S.isLoading?"loading":cN(S._id),_[0]=S._id,_[1]=S.isLoading,_[2]=t):t=_[2];let R=t,N="archived"===P,O=R===D,{document:V}=cY(),{drafts:M}=V,{enabled:L}=M;_[3]!==L||_[4]!==O||_[5]!==R||_[6]!==z?(n=()=>{z(O?L?"drafts":"published":R)},_[3]=L,_[4]=O,_[5]=R,_[6]=z,_[7]=n):n=_[7];let F=n;if(S.isLoading){let e,t;return _[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsxs)(I.so,{align:"center",gap:2,children:[(0,v.jsx)(T.EA,{animated:!0,radius:1,style:Ft.default.media}),(0,v.jsx)(Fa,{})]}),_[8]=e):e=_[8],_[9]!==k?(t=(0,v.jsx)(I.az,{...k,paddingLeft:3,flex:1,paddingY:1,paddingRight:2,sizing:"border",children:e}),_[9]=k,_[10]=t):t=_[10],t}_[11]!==S.isDeleted||_[12]!==R||_[13]!==E?(i=S.isDeleted?{tone:"transparent"}:{as:"a",onClick:()=>E.navigate({releaseId:R}),tone:"inherit"},_[11]=S.isDeleted,_[12]=R,_[13]=E,_[14]=i):i=_[14];let B=i,Y=O?eT.loS:eT.tsw;_[15]!==S.metadata.title||_[16]!==A?(r=S.metadata.title||A("release.placeholder-untitled-release"),_[15]=S.metadata.title,_[16]=A,_[17]=r):r=_[17];let H=r,U=!S.isDeleted;_[18]!==H?(a={title:H},_[18]=H,_[19]=a):a=_[19],_[20]!==$||_[21]!==a?(o=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{t:$,i18nKey:"deleted-release",values:a})}),_[20]=$,_[21]=a,_[22]=o):o=_[22];let Z=N||"published"===S.state;_[23]!==O||_[24]!==$?(l=$(O?"dashboard.details.unpin-release":"dashboard.details.pin-release"),_[23]=O,_[24]=$,_[25]=l):l=_[25],_[26]!==l||_[27]!==Z?(s={disabled:Z,content:l},_[26]=l,_[27]=Z,_[28]=s):s=_[28];let q=N||"published"===S.state;_[29]!==O||_[30]!==H||_[31]!==$?(d=O?`${$("dashboard.details.unpin-release")}: "${H}"`:`${$("dashboard.details.pin-release")}: "${H}"`,_[29]=O,_[30]=H,_[31]=$,_[32]=d):d=_[32],_[33]!==F||_[34]!==O||_[35]!==Y||_[36]!==s||_[37]!==q||_[38]!==d?(c=(0,v.jsx)(tL.$n,{tooltipProps:s,disabled:q,icon:Y,mode:"bleed","data-testid":"pin-release-button",onClick:F,radius:"full",selected:O,"aria-label":d,"aria-live":"assertive"}),_[33]=F,_[34]=O,_[35]=Y,_[36]=s,_[37]=q,_[38]=d,_[39]=c):c=_[39],_[40]!==S?(u=uA(S),_[40]=S,_[41]=u):u=_[41],_[42]!==u?(p=(0,v.jsx)(I.az,{flex:"none",children:(0,v.jsx)(RL,{tone:u})}),_[42]=u,_[43]=p):p=_[43],_[44]===Symbol.for("react.memo_cache_sentinel")?(m={minWidth:0},_[44]=m):m=_[44];let W=S.metadata.title;return _[45]!==A?(h=A("release.placeholder-untitled-release"),_[45]=A,_[46]=h):h=_[46],_[47]===Symbol.for("react.memo_cache_sentinel")?(f={size:1,weight:"medium",style:{minWidth:0}},_[47]=f):f=_[47],_[48]!==S.metadata.title||_[49]!==h?(g=(0,v.jsx)(I.BJ,{flex:1,space:2,children:(0,v.jsx)(I.so,{align:"center",gap:2,style:m,children:(0,v.jsx)(ug,{title:W,fallback:h,textProps:f})})}),_[48]=S.metadata.title,_[49]=h,_[50]=g):g=_[50],_[51]!==p||_[52]!==g?(y=(0,v.jsxs)(I.so,{align:"center",gap:2,children:[p,g]}),_[51]=p,_[52]=g,_[53]=y):y=_[53],_[54]!==B||_[55]!==y?(C=(0,v.jsx)(I.Zp,{...B,padding:2,radius:2,flex:1,children:y}),_[54]=B,_[55]=y,_[56]=C):C=_[56],_[57]!==c||_[58]!==C?(x=(0,v.jsxs)(I.so,{align:"center",gap:3,children:[c,C]}
1263),_[57]=c,_[58]=C,_[59]=x):x=_[59],_[60]!==x||_[61]!==U||_[62]!==o?(b=(0,v.jsx)(tL.m_,{disabled:U,content:o,children:x}),_[60]=x,_[61]=U,_[62]=o,_[63]=b):b=_[63],_[64]!==k||_[65]!==b?(w=(0,v.jsx)(I.az,{...k,paddingLeft:3,flex:1,paddingY:1,paddingRight:2,sizing:"border",children:b}),_[64]=k,_[65]=b,_[66]=w):w=_[66],w};function Fc(e,t){let n,i,r,a,o,l=(0,j.c)(19);l[0]!==t?(n=void 0===t?{}:t,l[0]=t,l[1]=n):n=l[1];let{includePreview:s}=n,d=void 0!==s&&s;l[2]!==e?(i=e?cN(e):"",l[2]=e,l[3]=i):i=l[3];let{results:c,loading:u,error:p}=LE(i),m=R8(),h=c?.[0]?.document,f=c?.[0]?.validation.validation,g=c?.length||0;l[4]!==h||l[5]!==m?(r=h?m.get(h._type):null,l[4]=h,l[5]=m,l[6]=r):r=l[6];let y=r,C=d&&!!h&&!!y,x=y||void 0;l[7]!==h||l[8]!==C||l[9]!==x?(a={enabled:C,schemaType:x,value:h},l[7]=h,l[8]=C,l[9]=x,l[10]=a):a=l[10];let{value:b,isLoading:v}=v3(a),w=d?b:void 0,_=!!d&&v;return l[11]!==g||l[12]!==p||l[13]!==h||l[14]!==f||l[15]!==u||l[16]!==w||l[17]!==_?(o={firstDocument:h,firstDocumentPreview:w,firstDocumentValidation:f,documentsCount:g,loading:u,error:p,previewLoading:_},l[11]=g,l[12]=p,l[13]=h,l[14]=f,l[15]=u,l[16]=w,l[17]=_,l[18]=o):o=l[18],o}function Fu(){let e,t,n,i,r,a,o,l=(0,j.c)(22),{t:s}=as(),d=el0(ob),c=RI(),{data:u}=R4();l[0]!==c?(e=async(e,t,n)=>{let i=uw();return await c.createRelease({_id:i,metadata:{title:e,description:"",releaseType:"scheduled",cardinality:"one",intendedPublishAt:t.toISOString()}},n),i},l[0]=c,l[1]=e):e=l[1];let p=e;l[2]!==p||l[3]!==c||l[4]!==s?(t=async(e,t,n)=>{let i=s("scheduled-drafts.release.title"),r=await p(i,t,n),a=(0,tG.T4)(e),o=cN(r);return await c.createVersion(o,a,n),await c.schedule(r,t,n),r},l[2]=p,l[3]=c,l[4]=s,l[5]=t):t=l[5];let m=t;l[6]!==c?(n=async(e,t)=>{uT(e)&&await c.unschedule(e._id,t),await c.publishRelease(e._id,t)},l[6]=c,l[7]=n):n=l[7];let h=n;l[8]!==u||l[9]!==d||l[10]!==c?(i=async(e,t,n,i)=>{let r=u.find(t=>t._id===e);if(!r)throw Error(`Release with ID ${e} not found`);if(t&&n){let t=cN(e),i=(0,tG.ct)(n,t),r=await d.getDocument(i);if(r){let e=(0,tG.T4)(n),{_rev:t,...i}=r;await d.createOrReplace({...i,_id:e})}}("scheduled"===r.state||"scheduling"===r.state)&&await c.unschedule(e,i),"archived"!==r.state&&"published"!==r.state&&await c.archive(e,i),await c.deleteRelease(e,i)},l[8]=u,l[9]=d,l[10]=c,l[11]=i):i=l[11];let f=i;l[12]!==c?(r=async(e,t,n)=>{await c.updateRelease({_id:e._id,metadata:{...e.metadata,intendedPublishAt:t.toISOString()}},n),await c.schedule(e._id,t,n)},l[12]=c,l[13]=r):r=l[13];let g=r;l[14]!==c?(a=async(e,t)=>{await c.unschedule(e._id,t)},l[14]=c,l[15]=a):a=l[15];let y=a;return l[16]!==m||l[17]!==f||l[18]!==y||l[19]!==h||l[20]!==g?(o={createScheduledDraft:m,publishScheduledDraft:h,deleteScheduledDraft:f,rescheduleScheduledDraft:g,pauseScheduledDraft:y},l[16]=m,l[17]=f,l[18]=y,l[19]=h,l[20]=g,l[21]=o):o=l[21],o}function Fp(e,t,n){let i,r,a=(0,j.c)(9),{t:o}=as(),l=(0,T.dj)(),[s,d]=(0,_.useState)(!1);a[0]!==n||a[1]!==e?.title||a[2]!==t||a[3]!==o||a[4]!==l?(i=async()=>{d(!0),await (async()=>{await n(),l.push({closable:!0,status:"success",description:(0,v.jsx)(aE,{t:o,i18nKey:"release.toast.delete-schedule-draft.success",values:{title:e?.title||o("preview.default.title-fallback")}})})})().catch(t=>{console.error("Failed to delete scheduled draft:",t),l.push({closable:!0,status:"error",description:(0,v.jsx)(aE,{t:o,i18nKey:"release.toast.delete-schedule-draft.error",values:{title:e?.title||o("preview.default.title-fallback"),error:rF(t)}})})}).finally(()=>{d(!1),t()})},a[0]=n,a[1]=e?.title,a[2]=t,a[3]=o,a[4]=l,a[5]=i):i=a[5];let c=i;return a[6]!==c||a[7]!==s?(r={isDeleting:s,handleDeleteSchedule:c},a[6]=c,a[7]=s,a[8]=r):r=a[8],r}function Fm(e){let t,n,i,r,a,o,l,s=(0,j.c)(21),{onClose:d,handleDeleteSchedule:c,isDeleting:u,children:p}=e,{t:m}=as();return s[0]!==m?(t=m("release.dialog.delete-schedule-draft.header"),s[0]=m,s[1]=t):t=s[1],s[2]!==u||s[3]!==d?(n={disabled:u,onClick:d},s[2]=u,s[3]=d,s[4]=n):n=s[4],s[5]!==m?(i=m("release.dialog.delete-schedule-draft.confirm"),s[5]=m,s[6]=i):i=s[6],s[7]!==c||s[8]!==u||s[9]!==i?(r={text:i,tone:"critical",onClick:c,disabled:u,loading:u},s[7]=c,s[8]=u,s[9]=i,s[10]=r):r=s[10],s[11]!==n||s[12]!==r?(a={cancelButton:n,confirmButton:r},s[11]=n,s[12]=r,s[13]=a):a=s[13],s[14]!==p?(o=(0,v.jsx)(I.BJ,{space:3,paddingX:3,marginBottom:2,children:p}),s[14]=p,s[15]=o):o=s[15],s[16]!==d||s[17]!==t||s[18]!==a||s[19]!==o?(l=(0,v.jsx)(tL.lG,{id:"delete-schedule-dialog",header:t,onClose:d,width:0,padding:!1,footer:a,children:o}),s[16]=d,s[17]=t,s[18]=a,s[19]=o,s[20]=l):l=s[20],l}function Fh(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(35),{documentId:p,documentType:m,onClose:h,release:f}=e,{t:g}=as(),y=R8(),C=Fu();u[0]===Symbol.for("react.memo_cache_sentinel")?(t={includePreview:!0},u[0]=t):t=u[0];let{firstDocument:x,firstDocumentPreview:b}=Fc(f._id,t);u[1]!==p?(n=(0,tG.IM)(p),u[1]=p,u[2]=n):n=u[2];let w=n,{draft:k}=Ra(w),S=x?._system?.base?.rev;u[3]!==k||u[4]!==S?(i=k?S===k._rev?{bodyKey:"release.dialog.delete-schedule-draft.body-already-current",copy:{visible:!1,default:!1}}:{bodyKey:"release.dialog.delete-schedule-draft.body-with-choice",copy:{visible:!0,default:!0}}:{bodyKey:"release.dialog.delete-schedule-draft.body-will-save-to-draft",copy:{visible:!1,default:!0}},u[3]=k,u[4]=S,u[5]=i):i=u[5];let T=i,[E,$]=(0,_.useState)(T.copy.default);u[6]!==T.copy.default||u[7]!==T.copy.visible||u[8]!==C||u[9]!==w||u[10]!==f._id||u[11]!==E?(r=async()=>{let e=T.copy.visible?E:T.copy.default;await C.deleteScheduledDraft(f._id,e,w)},u[6]=T.copy.default,u[7]=T.copy.visible,u[8]=C,u[9]=w,u[10]=f._id,u[11]=E,u[12]=r):r=u[12];let{isDeleting:A,handleDeleteSchedule:D}=Fp(b,h,r);u[13]!==m||u[14]!==y?(a=y.get(m),u[13]=m,u[14]=y,u[15]=a):a=u[15];let z=a;return u[16]!==x||u[17]!==z?(o=z&&x?(0,v.jsx)(Pz,{value:x,schemaType:z}):(0,v.jsx)(ry,{}),u[16]=x,u[17]=z,u[18]=o):o=u[18],u[19]!==T.bodyKey||u[20]!==g?(l=g(T.bodyKey),u[19]=T.bodyKey,u[20]=g,u[21]=l):l=u[21],u[22]!==l?(s=(0,v.jsx)(I.az,{paddingX:2,children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:l})}),u[22]=l,u[23]=s):s=u[23],u[24]!==T.copy.visible||u[25]!==E||u[26]!==g?(d=T.copy.visible&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.az,{paddingX:2,children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:g("release.dialog.delete-schedule-draft.different-changes-explanation")})}),(0,v.jsx)(I.az,{paddingX:2,children:(0,v.jsxs)(I.so,{align:"center",gap:3,as:"label",children:[(0,v.jsx)(I.Sc,{checked:E,onChange:e=>$(e.currentTarget.checked)}),(0,v.jsx)(I.EY,{size:1,muted:!0,children:g("release.dialog.delete-schedule-draft.copy-checkbox")}
1263)]})})]}),u[24]=T.copy.visible,u[25]=E,u[26]=g,u[27]=d):d=u[27],u[28]!==D||u[29]!==A||u[30]!==h||u[31]!==o||u[32]!==s||u[33]!==d?(c=(0,v.jsxs)(Fm,{onClose:h,handleDeleteSchedule:D,isDeleting:A,children:[o,s,d]}),u[28]=D,u[29]=A,u[30]=h,u[31]=o,u[32]=s,u[33]=d,u[34]=c):c=u[34],c}function Ff(e){let t,n,i,r,a,o=(0,j.c)(13),{onClose:l,release:s}=e,{t:d}=as(),c=Fu();o[0]===Symbol.for("react.memo_cache_sentinel")?(t={includePreview:!0},o[0]=t):t=o[0];let{firstDocumentPreview:u}=Fc(s._id,t);o[1]!==c||o[2]!==s._id?(n=async()=>{await c.deleteScheduledDraft(s._id,!1,void 0)},o[1]=c,o[2]=s._id,o[3]=n):n=o[3];let{isDeleting:p,handleDeleteSchedule:m}=Fp(u,l,n);return o[4]!==d?(i=d("release.dialog.delete-schedule-draft.body-already-current"),o[4]=d,o[5]=i):i=o[5],o[6]!==i?(r=(0,v.jsx)(I.az,{paddingX:2,children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:i})}),o[6]=i,o[7]=r):r=o[7],o[8]!==m||o[9]!==p||o[10]!==l||o[11]!==r?(a=(0,v.jsx)(Fm,{onClose:l,handleDeleteSchedule:m,isDeleting:p,children:r}),o[8]=m,o[9]=p,o[10]=l,o[11]=r,o[12]=a):a=o[12],a}function Fg(e){let t,n=(0,j.c)(8),{documentId:i,documentType:r,onClose:a,release:o}=e;if(!i||!r){let e;return n[0]!==a||n[1]!==o?(e=(0,v.jsx)(Ff,{onClose:a,release:o}),n[0]=a,n[1]=o,n[2]=e):e=n[2],e}return n[3]!==i||n[4]!==r||n[5]!==a||n[6]!==o?(t=(0,v.jsx)(Fh,{documentId:i,documentType:r,onClose:a,release:o}),n[3]=i,n[4]=r,n[5]=a,n[6]=o,n[7]=t):t=n[7],t}function Fy(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(40),{onClose:f,release:g,documentType:y}=e,{t:C}=as(),x=(0,T.dj)(),b=R8(),w=Fu(),[k,S]=(0,_.useState)(!1);h[0]===Symbol.for("react.memo_cache_sentinel")?(t={includePreview:!0},h[0]=t):t=h[0];let{firstDocument:E,firstDocumentPreview:$}=Fc(g._id,t);h[1]!==y||h[2]!==b?(n=y?b.get(y):null,h[1]=y,h[2]=b,h[3]=n):n=h[3];let A=n;h[4]!==$?.title||h[5]!==f||h[6]!==w||h[7]!==g||h[8]!==C||h[9]!==x?(i=async()=>{S(!0);let e=async()=>{await w.publishScheduledDraft(g),x.push({closable:!0,status:"success",description:(0,v.jsx)(aE,{t:C,i18nKey:"release.toast.publish-scheduled-draft.success",values:{title:$?.title||C("preview.default.title-fallback")}})})};try{await e()}catch(e){console.error("Failed to run scheduled draft:",e),x.push({closable:!0,status:"error",description:(0,v.jsx)(aE,{t:C,i18nKey:"release.toast.publish-scheduled-draft.error",values:{title:$?.title||C("preview.default.title-fallback"),error:rF(e)}})})}S(!1),f()},h[4]=$?.title,h[5]=f,h[6]=w,h[7]=g,h[8]=C,h[9]=x,h[10]=i):i=h[10];let D=i;return h[11]!==C?(r=C("release.dialog.publish-scheduled-draft.header"),h[11]=C,h[12]=r):r=h[12],h[13]!==k||h[14]!==f?(a={disabled:k,onClick:f},h[13]=k,h[14]=f,h[15]=a):a=h[15],h[16]!==C?(o=C("release.dialog.publish-scheduled-draft.confirm"),h[16]=C,h[17]=o):o=h[17],h[18]!==D||h[19]!==k||h[20]!==o?(l={text:o,tone:"primary",onClick:D,disabled:k,loading:k},h[18]=D,h[19]=k,h[20]=o,h[21]=l):l=h[21],h[22]!==a||h[23]!==l?(s={cancelButton:a,confirmButton:l},h[22]=a,h[23]=l,h[24]=s):s=h[24],h[25]!==E||h[26]!==A?(d=A&&E?(0,v.jsx)(Pz,{value:E,schemaType:A}):(0,v.jsx)(ry,{}),h[25]=E,h[26]=A,h[27]=d):d=h[27],h[28]!==C?(c=C("release.dialog.publish-scheduled-draft.body"),h[28]=C,h[29]=c):c=h[29],h[30]!==c?(u=(0,v.jsx)(I.az,{paddingX:2,children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:c})}),h[30]=c,h[31]=u):u=h[31],h[32]!==u||h[33]!==d?(p=(0,v.jsxs)(I.BJ,{space:3,paddingX:3,marginBottom:2,children:[d,u]}),h[32]=u,h[33]=d,h[34]=p):p=h[34],h[35]!==f||h[36]!==p||h[37]!==r||h[38]!==s?(m=(0,v.jsx)(tL.lG,{id:"publish-scheduled-draft-dialog","data-testid":"publish-scheduled-draft-dialog",header:r,onClose:f,width:0,padding:!1,footer:s,children:p}),h[35]=f,h[36]=p,h[37]=r,h[38]=s,h[39]=m):m=h[39],m}let FC={schedule:{headerI18nKey:"schedule-publish-dialog.header",descriptionI18nKey:"schedule-publish-dialog.description",confirmButtonTextI18nKey:"schedule-publish-dialog.confirm"},"edit-schedule":{headerI18nKey:"release.dialog.edit-schedule.header",descriptionI18nKey:"release.dialog.edit-schedule.body",confirmButtonTextI18nKey:"release.dialog.edit-schedule.confirm"}};function Fx(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z,P,R,N=(0,j.c)(110),{onClose:O,onSchedule:V,variant:M,loading:L,initialDate:F}=e,B=void 0!==L&&L,{t:Y}=as();N[0]!==F?(t=()=>new Date(F||new Date),N[0]=F,N[1]=t):t=N[1];let[H,U]=(0,_.useState)(t),{utcToCurrentZoneDate:Z,zoneDateToUtc:q}=ky(Rz);if(N[2]!==B||N[3]!==O||N[4]!==V||N[5]!==H||N[6]!==Y||N[7]!==Z||N[8]!==M||N[9]!==q){let e,t,j,_,A,D,z,P,R,L,F,W=H?Z(H):void 0;N[35]!==Y?(e=kK(Y),N[35]=Y,N[36]=e):e=N[36];let J=e,K=FC[M];
1263N[37]!==H||N[38]!==q?(t=()=>!H||(0,nv.Y)(q(H),new Date),N[37]=H,N[38]=q,N[39]=t):t=N[39];let G=t;N[40]!==q?(j=e=>{e&&U(q((0,nj.c)(e)))},N[40]=q,N[41]=j):j=N[41];let X=j;N[42]!==q?(_=e=>{let t=e.currentTarget.value,n=q((0,t7.qg)(t,"PP HH:mm",new Date));(0,t0.f)(n)&&U(n)},N[42]=q,N[43]=_):_=N[43];let Q=_;N[44]!==G||N[45]!==V||N[46]!==H?(A=async()=>{!H||G()||V(H)},N[44]=G,N[45]=V,N[46]=H,N[47]=A):A=N[47];let ee=A;N[48]!==G?(D=G(),N[48]=G,N[49]=D):D=N[49],o=D,a=tL.lG,m="schedule-draft-dialog",N[50]!==K.headerI18nKey||N[51]!==Y?(h=Y(K.headerI18nKey),N[50]=K.headerI18nKey,N[51]=Y,N[52]=h):h=N[52],f=B?void 0:O,g=0,C=!1,N[53]!==K.confirmButtonTextI18nKey||N[54]!==Y?(z=Y(K.confirmButtonTextI18nKey),N[53]=K.confirmButtonTextI18nKey,N[54]=Y,N[55]=z):z=N[55];let et=o||B||!H;N[56]!==ee||N[57]!==B||N[58]!==z||N[59]!==et?(P={text:z,tone:"primary",onClick:ee,loading:B,disabled:et},N[56]=ee,N[57]=B,N[58]=z,N[59]=et,N[60]=P):P=N[60],N[61]!==B?(R={disabled:B},N[61]=B,N[62]=R):R=N[62],N[63]!==P||N[64]!==R?(x={confirmButton:P,cancelButton:R},N[63]=P,N[64]=R,N[65]=x):x=N[65],r=I.BJ,s=4,d=4,c=4,u=1,N[66]!==K.descriptionI18nKey||N[67]!==Y?(L=Y(K.descriptionI18nKey),N[66]=K.descriptionI18nKey,N[67]=Y,N[68]=L):L=N[68],N[69]!==L?(p=(0,v.jsx)(I.EY,{size:1,muted:!0,children:L}),N[69]=L,N[70]=p):p=N[70],i=I.BJ,$=3,N[71]!==Y?(F=Y("release.schedule-dialog.select-publish-date-label"),N[71]=Y,N[72]=F):F=N[72],N[73]!==F?(l=(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:F}),N[73]=F,N[74]=l):l=N[74],n=kq,y=!0,b=kV,w=X,k=Q,S=W,T=J,E=W?(0,nn.GP)(W,"PP HH:mm"):"",N[2]=B,N[3]=O,N[4]=V,N[5]=H,N[6]=Y,N[7]=Z,N[8]=M,N[9]=q,N[10]=n,N[11]=i,N[12]=r,N[13]=a,N[14]=o,N[15]=l,N[16]=s,N[17]=d,N[18]=c,N[19]=u,N[20]=p,N[21]=m,N[22]=h,N[23]=f,N[24]=g,N[25]=y,N[26]=C,N[27]=x,N[28]=b,N[29]=w,N[30]=k,N[31]=S,N[32]=T,N[33]=E,N[34]=$}else n=N[10],i=N[11],r=N[12],a=N[13],o=N[14],l=N[15],s=N[16],d=N[17],c=N[18],u=N[19],p=N[20],m=N[21],h=N[22],f=N[23],g=N[24],y=N[25],C=N[26],x=N[27],b=N[28],w=N[29],k=N[30],S=N[31],T=N[32],E=N[33],$=N[34];return N[75]!==n||N[76]!==y||N[77]!==b||N[78]!==w||N[79]!==k||N[80]!==S||N[81]!==T||N[82]!==E?(A=(0,v.jsx)(n,{selectTime:y,monthPickerVariant:b,onChange:w,onInputChange:k,value:S,calendarLabels:T,inputValue:E,constrainSize:!1,isPastDisabled:!0,showTimeZone:!0,timeZoneScope:Rz}),N[75]=n,N[76]=y,N[77]=b,N[78]=w,N[79]=k,N[80]=S,N[81]=T,N[82]=E,N[83]=A):A=N[83],N[84]!==i||N[85]!==l||N[86]!==A||N[87]!==$?(D=(0,v.jsx)("label",{children:(0,v.jsxs)(i,{space:$,children:[l,A]})}),N[84]=i,N[85]=l,N[86]=A,N[87]=$,N[88]=D):D=N[88],N[89]!==o||N[90]!==Y?(z=o&&(0,v.jsx)(I.Zp,{marginBottom:1,padding:2,radius:2,shadow:1,tone:"critical",children:(0,v.jsx)(I.EY,{size:1,children:Y("release.schedule-dialog.publish-date-in-past-warning")})}),N[89]=o,N[90]=Y,N[91]=z):z=N[91],N[92]!==r||N[93]!==s||N[94]!==d||N[95]!==c||N[96]!==u||N[97]!==p||N[98]!==D||N[99]!==z?(P=(0,v.jsxs)(r,{space:s,paddingX:d,paddingBottom:c,paddingTop:u,children:[p,D,z]}),N[92]=r,N[93]=s,N[94]=d,N[95]=c,N[96]=u,N[97]=p,N[98]=D,N[99]=z,N[100]=P):P=N[100],N[101]!==a||N[102]!==m||N[103]!==h||N[104]!==f||N[105]!==g||N[106]!==C||N[107]!==x||N[108]!==P?(R=(0,v.jsx)(a,{id:m,header:h,onClose:f,width:g,padding:C,footer:x,children:P}),N[101]=a,N[102]=m,N[103]=h,N[104]=f,N[105]=g,N[106]=C,N[107]=x,N[108]=P,N[109]=R):R=N[109],R}function Fb(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(66),{release:w,documentType:k,documentId:S,disabled:I,onActionComplete:E}=e,{t:$}=as(),A=(0,T.dj)(),D=Fu(),[z,P]=(0,_.useState)(null),[R,N]=(0,_.useState)(!1),[O,V]=(0,_.useState)(!1);b[0]===Symbol.for("react.memo_cache_sentinel")?(t={includePreview:!0},b[0]=t):t=b[0];let{firstDocumentPreview:M,loading:L}=Fc(w?._id,t);b[1]!==M?.title||b[2]!==E||b[3]!==D||b[4]!==w||b[5]!==$||b[6]!==A?(n=async()=>{if(!w)return;N(!0);let e=async()=>{await D.pauseScheduledDraft(w),E?.()};try{await e()}catch(e){console.error("Failed to pause scheduled draft:",e),A.push({closable:!0,status:"error",description:(0,v.jsx)(aE,{t:$,i18nKey:"release.toast.pause-scheduled-draft.error",values:{title:M?.title||$("preview.default.title-fallback"),error:rF(e)}})})}N(!1),P(null)},b[1]=M?.title,b[2]=E,b[3]=D,b[4]=w,b[5]=$,b[6]=A,b[7]=n):n=b[7];let F=n;b[8]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{P(e)},b[8]=i):i=b[8];let B=i;b[9]!==R?(r=()=>{R||P(null)},b[9]=R,b[10]=r):r=b[10];let Y=r;b[11]!==Y||b[12]!==D||b[13]!==w||b[14]!==$||b[15]!==A?(a=async e=>{if(!w)return;V(!0);let t=async()=>{await D.rescheduleScheduledDraft(w,e),A.push({closable:!0,status:"success",title:$
1263("release.toast.schedule-publish.success")})};try{await t()}catch(e){console.error("Failed to schedule draft:",e),A.push({closable:!0,status:"error",title:$("release.toast.schedule-publish.error",{error:rF(e)})})}V(!1),Y()},b[11]=Y,b[12]=D,b[13]=w,b[14]=$,b[15]=A,b[16]=a):a=b[16];let H=a,U=void 0!==I&&I||R||L;b[17]!==$?(o=$("release.action.publish-now"),b[17]=$,b[18]=o):o=b[18],b[19]===Symbol.for("react.memo_cache_sentinel")?(l=()=>B("publish-now"),b[19]=l):l=b[19],b[20]!==U||b[21]!==o?(s={icon:eT.VQ$,text:o,tone:"default",onClick:l,disabled:U,"data-testid":"publish-now-menu-item"},b[20]=U,b[21]=o,b[22]=s):s=b[22],b[23]!==$?(d=$("release.action.edit-schedule"),b[23]=$,b[24]=d):d=b[24],b[25]!==U||b[26]!==F||b[27]!==d?(c={icon:eT.qUP,text:d,tone:"default",onClick:F,disabled:U,"data-testid":"edit-schedule-menu-item"},b[25]=U,b[26]=F,b[27]=d,b[28]=c):c=b[28],b[29]!==$?(u=$("release.action.schedule-publish"),b[29]=$,b[30]=u):u=b[30],b[31]===Symbol.for("react.memo_cache_sentinel")?(p=()=>B("schedule-publish"),b[31]=p):p=b[31],b[32]!==U||b[33]!==u?(m={icon:eT.CTc,text:u,tone:"default",onClick:p,disabled:U,"data-testid":"schedule-publish-menu-item"},b[32]=U,b[33]=u,b[34]=m):m=b[34],b[35]!==$?(h=$("release.action.delete-schedule"),b[35]=$,b[36]=h):h=b[36],b[37]===Symbol.for("react.memo_cache_sentinel")?(f=()=>B("delete-schedule"),b[37]=f):f=b[37],b[38]!==U||b[39]!==h?(g={icon:eT.ucK,text:h,tone:"critical",onClick:f,disabled:U,"data-testid":"delete-schedule-menu-item"},b[38]=U,b[39]=h,b[40]=g):g=b[40],b[41]!==c||b[42]!==m||b[43]!==g||b[44]!==s?(y={publishNow:s,editSchedule:c,schedulePublish:m,deleteSchedule:g},b[41]=c,b[42]=m,b[43]=g,b[44]=s,b[45]=y):y=b[45];let Z=y;e:{if(!z||!w){C=null;break e}switch(z){case"publish-now":{let e;b[46]!==k||b[47]!==Y||b[48]!==w?(e=(0,v.jsx)(Fy,{release:w,documentType:k,onClose:Y}),b[46]=k,b[47]=Y,b[48]=w,b[49]=e):e=b[49],C=e;break e}case"delete-schedule":{let e;b[50]!==S||b[51]!==k||b[52]!==Y||b[53]!==w?(e=(0,v.jsx)(Fg,{release:w,documentType:k,documentId:S,onClose:Y}),b[50]=S,b[51]=k,b[52]=Y,b[53]=w,b[54]=e):e=b[54],C=e;break e}case"schedule-publish":{let e,t=w?.metadata?.intendedPublishAt;b[55]!==Y||b[56]!==H||b[57]!==O||b[58]!==t?(e=(0,v.jsx)(Fx,{onClose:Y,onSchedule:H,variant:"schedule",loading:O,initialDate:t}),b[55]=Y,b[56]=H,b[57]=O,b[58]=t,b[59]=e):e=b[59],C=e;break e}default:C=null}}let q=C;return b[60]!==Z||b[61]!==q||b[62]!==Y||b[63]!==R||b[64]!==z?(x={actions:Z,dialogs:q,isPerformingOperation:R,selectedAction:z,handleDialogClose:Y},b[60]=Z,b[61]=q,b[62]=Y,b[63]=R,b[64]=z,b[65]=x):x=b[65],x}let Fv=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(56),{release:g}=e,{t:y}=as(),C=(0,nU.rd)(),x=(0,_.useRef)(null),b=(0,_.useRef)(null),[w,k]=(0,_.useState)(!1),{firstDocument:S}=Fc(g._id);f[0]!==g._id||f[1]!==C||f[2]!==S?(t=()=>{S&&C.navigateIntent("edit",{id:(0,tG.IM)(S._id),type:S._type,scheduledDraft:cN(g._id)})},f[0]=g._id,f[1]=C,f[2]=S,f[3]=t):t=f[3];let T=t,E=S?._type,$=S?._id,A=!S;f[4]!==T||f[5]!==g||f[6]!==E||f[7]!==$||f[8]!==A?(n={release:g,documentType:E,documentId:$,disabled:A,onActionComplete:T},f[4]=T,f[5]=g,f[6]=E,f[7]=$,f[8]=A,f[9]=n):n=f[9];let{actions:D,dialogs:z,isPerformingOperation:P}=Fb(n);e:{let e,t,n,r;if("archived"===g.state||"published"===g.state){let e;f[10]!==D.deleteSchedule?(e=[(0,v.jsx)(tL.Dr,{...D.deleteSchedule},"delete-schedule")],f[10]=D.deleteSchedule,f[11]=e):e=f[11],i=e;break e}if(rQ(g)){let e,t,n,r;f[12]!==D.publishNow?(e=(0,v.jsx)(tL.Dr,{...D.publishNow},"publish-now"),f[12]=D.publishNow,f[13]=e):e=f[13],f[14]!==D.schedulePublish?(t=(0,v.jsx)(tL.Dr,{...D.schedulePublish},"schedule-publish"),f[14]=D.schedulePublish,f[15]=t):t=f[15],f[16]!==D.deleteSchedule?(n=(0,v.jsx)(tL.Dr,{...D.deleteSchedule},"delete-schedule"),f[16]=D.deleteSchedule,f[17]=n):n=f[17],f[18]!==e||f[19]!==t||f[20]!==n?(r=[e,t,n],f[18]=e,f[19]=t,f[20]=n,f[21]=r):r=f[21],i=r;break e}f[22]!==D.publishNow?(e=(0,v.jsx)(tL.Dr,{...D.publishNow},"publish-now"),f[22]=D.publishNow,f[23]=e):e=f[23],f[24]!==D.editSchedule?(t=(0,v.jsx)(tL.Dr,{...D.editSchedule},"edit-schedule"),f[24]=D.editSchedule,f[25]=t):t=f[25],f[26]!==D.deleteSchedule?(n=(0,v.jsx)(tL.Dr,{...D.deleteSchedule},"delete-schedule"),f[26]=D.deleteSchedule,f[27]=n):n=f[27],f[28]!==e||f[29]!==t||f[30]!==n?(r=[e,t,n],f[28]=e,f[29]=t,f[30]=n,f[31]=r):r=f[31],i=r}let R=i,N=!!S;f[32]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{k(Fj)},f[32]=r):r=f[32];let O=r;if(f[33]===Symbol.for("react.memo_cache_sentinel")?(a=()=>k(!1),o=()=>[x.current,b.current],f[33]=a,f[34]=o):(a=f[33],o=f[34]),(0,I.PR)(a,o),!N)return null;f[35]!==R?(l=(0,v.jsx)(I.W1,{ref:b,children:R}),f[35]=R,f[36]=l):l=f[36],f[37]===Symbol.for("react.memo_cache_sentinel")?(s=["top-end"],f[37]=s):s=f[37];let V=!N||P,M=P?I.y$:eT.riS;return f[38]!==y?(d=y("release.menu.tooltip"),f[38]=y,f[39]=d):d=f[39],f[40]!==d?(c={content:d},f[40]=d,f[41]=c):c=f[41],f[42]!==y?(u=y("release.menu.label"),f[42]=y,f[43]=u):u=f[43],f[44]!==V||f[45]!==M||f[46]!==c||f[47]!==u?(p=(0,v.jsx)(tL.$n,{disabled:V,icon:M,mode:"bleed",tooltipProps:c,"aria-label":u,"data-testid":"scheduled-draft-menu-button",onClick:O}),f[44]=V,f[45]=M,f[46]=c,f[47]=u,f[48]=p):p=f[48],f[49]!==w||f[50]!==l||f[51]!==p?(m=(0,v.jsx)(tL.AM,{content:l,open:w,ref:x,constrainSize:!1,fallbackPlacements:s,portal:!0,tone:"default",placement:"bottom",children:p}),f[49]=w,f[50]=l,f[51]=p,f[52]=m):m=f[52],f[53]!==z||f[54]!==m?(h=(0,v.jsxs)(v.Fragment,{children:[m,z]}),f[53]=z,f[54]=m,f[55]=h):h=f[55],h};function Fj(e){return!e}let Fw="singleDocRelease",F_=()=>{let e,t,n,i,r,a,o,l,s,d,c=(0,j.c)(19),{t:u}=as(Fw),{mode:p}=LM();return"upsell"===p?null:(c[0]===Symbol.for("react.memo_cache_sentinel")?(e={maxWidth:"300px"},t=(0,v.jsx)(L4,{}),c[0]=e,c[1]=t):(e=c[0],t=c[1]),c[2]!==u?(n=u("empty-state.title"),c[2]=u,c[3]=n):n=c[3],c[4]!==n?(i=(0,v.jsx)(I.EY,{as:"h1",size:1,weight:"semibold","data-testid":"no-releases-info-text",children:n}),c[4]=n,c[5]=i):i=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(r={textAlign:"center"},c[6]=r):r=c[6],c[7]!==u?(a=u("empty-state.description"),c[7]=u,c[8]=a):a=c[8],c[9]!==a?(o=(0,v.jsx)(I.EY,{size:1,muted:!0,style:r,children:a}),c[9]=a,c[10]=o):o=c[10],c[11]!==u?(l=u("empty-state.action.documentation"),c[11]=u,c[12]=l):l=c[12],c[13]!==l?(s=(0,v.jsx)(tL.$n,{as:"a",href:"https://www.sanity.io/docs/studio/scheduled-drafts-user-guide",target:"_blank",mode:"ghost",text:l}
1263),c[13]=l,c[14]=s):s=c[14],c[15]!==i||c[16]!==o||c[17]!==s?(d=(0,v.jsx)(I.so,{direction:"column",flex:1,justify:"center",align:"center",children:(0,v.jsxs)(I.so,{gap:3,direction:"column",align:"center",style:e,children:[t,i,o,s]})}),c[15]=i,c[16]=o,c[17]=s,c[18]=d):d=c[18],d)},Fk=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x=(0,j.c)(52),{datum:b,cellProps:w}=e,{t:_}=as(RE),{firstDocument:k,firstDocumentValidation:S,loading:E}=Fc(b._id&&!b.isLoading?b._id:void 0);if(b.isLoading||E||!k){let e,t;return x[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.EA,{animated:!0,radius:2,style:{height:"32px",width:"100%"}}),x[0]=e):e=x[0],x[1]!==w?(t=(0,v.jsx)(I.so,{...w,align:"center",paddingX:2,paddingY:3,sizing:"border",children:e}),x[1]=w,x[2]=t):t=x[2],t}if(x[3]!==w||x[4]!==k._id||x[5]!==k._rev||x[6]!==k._type||x[7]!==S||x[8]!==b._id||x[9]!==b.state||x[10]!==_){let e=S?.filter(FS).length||0;i=I.az,m=w,h=1,f=1,a=2,o=2,l="border",n=I.Zp,u=e?"critical":"inherit",p=2,t=I.so,r="center",s=2,x[26]!==k._id||x[27]!==k._rev||x[28]!==k._type||x[29]!==b._id||x[30]!==b.state?(d=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(NE,{documentId:k._id,documentTypeName:k._type,releaseId:b._id,releaseState:b.state,isCardinalityOneRelease:!0,documentRevision:k._rev,layout:"default"})}),x[26]=k._id,x[27]=k._rev,x[28]=k._type,x[29]=b._id,x[30]=b.state,x[31]=d):d=x[31],c=e>0&&(0,v.jsx)(I.az,{paddingRight:3,children:(0,v.jsx)(tL.m_,{portal:!0,placement:"bottom-end",content:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsxs)(I.so,{align:"center",gap:3,padding:1,children:[(0,v.jsx)(NF,{icon:eT.YZv,tone:"critical"}),_("document-validation.error",{count:e})]})}),children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(NF,{icon:eT.YZv,tone:"critical"})})})}),x[3]=w,x[4]=k._id,x[5]=k._rev,x[6]=k._type,x[7]=S,x[8]=b._id,x[9]=b.state,x[10]=_,x[11]=t,x[12]=n,x[13]=i,x[14]=r,x[15]=a,x[16]=o,x[17]=l,x[18]=s,x[19]=d,x[20]=c,x[21]=u,x[22]=p,x[23]=m,x[24]=h,x[25]=f}else t=x[11],n=x[12],i=x[13],r=x[14],a=x[15],o=x[16],l=x[17],s=x[18],d=x[19],c=x[20],u=x[21],p=x[22],m=x[23],h=x[24],f=x[25];return x[32]!==t||x[33]!==r||x[34]!==s||x[35]!==d||x[36]!==c?(g=(0,v.jsxs)(t,{align:r,gap:s,children:[d,c]}),x[32]=t,x[33]=r,x[34]=s,x[35]=d,x[36]=c,x[37]=g):g=x[37],x[38]!==n||x[39]!==g||x[40]!==u||x[41]!==p?(y=(0,v.jsx)(n,{tone:u,radius:p,children:g}),x[38]=n,x[39]=g,x[40]=u,x[41]=p,x[42]=y):y=x[42],x[43]!==i||x[44]!==a||x[45]!==o||x[46]!==l||x[47]!==y||x[48]!==m||x[49]!==h||x[50]!==f?(C=(0,v.jsx)(i,{...m,flex:h,padding:f,paddingLeft:a,paddingRight:o,sizing:l,children:y}),x[43]=i,x[44]=a,x[45]=o,x[46]=l,x[47]=y,x[48]=m,x[49]=h,x[50]=f,x[51]=C):C=x[51],C};function FS(e){return"error"===e.level}let FI=e=>{let t,n,i,r,a,o=(0,j.c)(17),{datum:l,cellProps:s}=e,{createdBy:d,loading:c}=function(e,t){let n,i,r=(0,j.c)(7),a=void 0!==t&&t;r[0]!==a||r[1]!==e?(n=e&&!a?cN(e):"",r[0]=a,r[1]=e,r[2]=n):n=r[2];let o=n,{firstDocument:l,loading:s}=Fc(e),{documentHistory:d,loading:c}=Lx(l?._id,o);if(!e||a){let e;return r[3]===Symbol.for("react.memo_cache_sentinel")?(e={createdBy:void 0,loading:!1},r[3]=e):e=r[3],e}if(s||c){let e;return r[4]===Symbol.for("react.memo_cache_sentinel")?(e={createdBy:void 0,loading:!0},r[4]=e):e=r[4],e}let u=d?.createdBy;return r[5]!==u?(i={createdBy:u,loading:!1},r[5]=u,r[6]=i):i=r[6],i}(l.isLoading?void 0:l._id,l.isLoading);if(l.isLoading||!l.metadata){let e,t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.EA,{animated:!0,radius:2,style:{height:"40px",width:"150px"}}),o[0]=e):e=o[0],o[1]!==s?(t=(0,v.jsx)(I.so,{...s,align:"center",paddingX:2,paddingY:3,sizing:"border",children:e}),o[1]=s,o[2]=t):t=o[2],t}return o[3]!==c?(t=c&&(0,v.jsx)(ut,{$size:1,animated:!0}),o[3]=c,o[4]=t):t=o[4],o[5]!==d||o[6]!==c?(n=!c&&d&&(0,v.jsx)(ua,{user:d,size:1}),o[5]=d,o[6]=c,o[7]=n):n=o[7],o[8]!==l?(i=(0,v.jsx)(I.BJ,{space:1,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(N2,{release:l})})}),o[8]=l,o[9]=i):i=o[9],o[10]!==t||o[11]!==n||o[12]!==i?(r=(0,v.jsxs)(I.so,{align:"center",gap:3,children:[t,n,i]}),o[10]=t,o[11]=n,o[12]=i,o[13]=r):r=o[13],o[14]!==s||o[15]!==r?(a=(0,v.jsx)(I.so,{...s,align:"center",paddingX:2,paddingY:3,sizing:"border",children:r}),o[14]=s,o[15]=r,o[16]=a):a=o[16],a},FT=e=>{let t,n,i,r=(0,j.c)(8),{datum:a,cellProps:o}=e,{t:l}=as(RE);r[0]!==a?(t="active"===a.state&&N1(a),r[0]=a,r[1]=t):t=r[1];let s=t;
1263return r[2]!==s||r[3]!==l?(n=s&&(0,v.jsx)(tL.m_,{content:(0,v.jsx)(I.EY,{size:1,children:l("passed-intended-publish-date-draft")}),portal:!0,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(NF,{icon:eT.sAQ,tone:"caution"})})}),r[2]=s,r[3]=l,r[4]=n):n=r[4],r[5]!==o||r[6]!==n?(i=(0,v.jsx)(I.so,{...o,align:"center",gap:2,paddingX:2,paddingY:3,sizing:"border","data-testid":"warning-indicator",children:n}),r[5]=o,r[6]=n,r[7]=i):i=r[7],i};function FE(e){let t,n,i,r,a=(0,j.c)(9);a[0]===Symbol.for("react.memo_cache_sentinel")?(t={dataUri:"/journey/scheduled-drafts",feature:"single_doc_release"},a[0]=t):t=a[0];let o=$O(t),l=e.children;return a[1]!==o?(n=$N(o),a[1]=o,a[2]=n):n=a[2],a[3]!==n?(i=(0,v.jsx)($7,{...n}),a[3]=n,a[4]=i):i=a[4],a[5]!==o||a[6]!==e.children||a[7]!==i?(r=(0,v.jsxs)(S.OP.Provider,{value:o,children:[l,i]}),a[5]=o,a[6]=e.children,a[7]=i,a[8]=r):r=a[8],r}function F$(){return(0,_.useContext)(S.OP)}let FA=eI.I4.img.withConfig({displayName:"Image",componentId:"sc-17dkvy4-0"})(e=>{let{media:t}=(0,nN.JW)(e.theme),n=(0,I.U1)(t,e.$direction,e=>({width:"row"===e?"50%":"100%",height:"row"===e?"auto":"180px"}));return(0,eI.AH)` 1264 object-fit: cover; 1265 ${n} 1266 `}),FD=(0,eI.I4)(I.az).withConfig({displayName:"DescriptionRoot",componentId:"sc-17dkvy4-1"})`margin:auto 0;`,Fz=[3,3,5];function FP(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(35),{data:m,onPrimaryClick:h,onSecondaryClick:f,layout:g,border:y,align:C}=e,x=void 0===g?"vertical":g,b=void 0===y||y,w=void 0===C?"flex-start":C,_="horizontal"===x?"row":"column";p[0]!==_?(t=["column","column",_],p[0]=_,p[1]=t):t=p[1];let k=t;p[2]!==m.image||p[3]!==k?(n=m.image&&(0,v.jsx)(FA,{src:m.image.asset.url,alt:m.image.asset.altText??"",$direction:k}),p[2]=m.image,p[3]=k,p[4]=n):n=p[4];let S="horizontal"===x?Fz:3;p[5]!==m.descriptionText?(i=(0,v.jsx)($Q,{blocks:m.descriptionText}),p[5]=m.descriptionText,p[6]=i):i=p[6],p[7]!==w||p[8]!==i?(r=(0,v.jsx)(I.so,{gap:4,direction:"column",align:w,children:i}),p[7]=w,p[8]=i,p[9]=r):r=p[9];let T="center"===w?"center":"flex-end";return p[10]!==m.secondaryButton.text||p[11]!==m.secondaryButton.url||p[12]!==f?(a=m.secondaryButton.text&&(0,v.jsx)(tL.$n,{mode:"bleed",text:m.secondaryButton.text,tone:"default",iconRight:eT.ZPM,...m.secondaryButton.url&&{target:"_blank",rel:"noopener noreferrer",as:"a",href:m.secondaryButton.url},onClick:f}),p[10]=m.secondaryButton.text,p[11]=m.secondaryButton.url,p[12]=f,p[13]=a):a=p[13],p[14]!==m.ctaButton.url?(o=m.ctaButton.url&&{target:"_blank",rel:"noopener noreferrer",as:"a",href:m.ctaButton.url},p[14]=m.ctaButton.url,p[15]=o):o=p[15],p[16]!==m.ctaButton.text||p[17]!==h||p[18]!==o?(l=(0,v.jsx)(tL.$n,{text:m.ctaButton.text,tone:"default",...o,onClick:h}),p[16]=m.ctaButton.text,p[17]=h,p[18]=o,p[19]=l):l=p[19],p[20]!==a||p[21]!==l||p[22]!==T?(s=(0,v.jsxs)(I.so,{gap:2,justify:T,marginTop:5,children:[a,l]}),p[20]=a,p[21]=l,p[22]=T,p[23]=s):s=p[23],p[24]!==s||p[25]!==S||p[26]!==r?(d=(0,v.jsxs)(FD,{paddingX:3,paddingY:S,children:[r,s]}),p[24]=s,p[25]=S,p[26]=r,p[27]=d):d=p[27],p[28]!==k||p[29]!==d||p[30]!==n?(c=(0,v.jsxs)(I.so,{direction:k,gap:2,children:[n,d]}),p[28]=k,p[29]=d,p[30]=n,p[31]=c):c=p[31],p[32]!==b||p[33]!==c?(u=(0,v.jsx)(I.Zp,{radius:3,overflow:"hidden",border:b,children:c}),p[32]=b,p[33]=c,p[34]=u):u=p[34],u}let FR=(0,eI.I4)(I.mc).withConfig({displayName:"Panel",componentId:"sc-16xjvaf-0"})`width:auto;flex-shrink:0;`,FN=()=>{let e,t,n,i,r,a,o,l,s=(0,j.c)(14),{mode:d}=LM(),{upsellData:c,telemetryLogs:u}=F$();s[0]!==u?(e=()=>{u.panelPrimaryClicked()},s[0]=u,s[1]=e):e=s[1];let p=e;s[2]!==u?(t=()=>{u.panelSecondaryClicked()},s[2]=u,s[3]=t):t=s[3];let m=t;return"upsell"===d&&c?(s[4]===Symbol.for("react.memo_cache_sentinel")?(n={opacity:0},i={opacity:1},r={duration:.3,ease:"easeInOut"},s[4]=n,s[5]=i,s[6]=r):(n=s[4],i=s[5],r=s[6]),s[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)(L4,{}),s[7]=a):a=s[7],s[8]!==c?(o={...c,image:null},s[8]=c,s[9]=o):o=s[9],s[10]!==p||s[11]!==m||s[12]!==o?(l=(0,v.jsx)(I.so,{direction:"column",flex:1,justify:"center",align:"center",children:(0,v.jsx)(ir.P.div,{initial:n,animate:i,transition:r,children:(0,v.jsx)(FR,{width:0,padding:4,paddingY:1,children:(0,v.jsxs)(I.so,{align:"center",direction:"column",children:[a,(0,v.jsx)(I.az,{paddingTop:2,children:(0,v.jsx)(FP,{align:"center",layout:"vertical",data:o,border:!1,onPrimaryClick:p,onSecondaryClick:m})})]})})})}),s[10]=p,s[11]=m,s[12]=o,s[13]=l):l=s[13],l):null},FO=()=>{let e,t,n,i,r,a,o,l,s=(0,j.c)(14),{upsellData:d,telemetryLogs:c,mode:u}=Rw();s[0]!==c?(e=()=>{c.panelPrimaryClicked()},s[0]=c,s[1]=e):e=s[1];let p=e;s[2]!==c?(t=()=>{c.panelSecondaryClicked()},s[2]=c,s[3]=t):t=s[3];let m=t;return d&&"default"!==u?(s[4]===Symbol.for("react.memo_cache_sentinel")?(n={opacity:0}
1266,i={opacity:1},r={duration:.3,ease:"easeInOut"},s[4]=n,s[5]=i,s[6]=r):(n=s[4],i=s[5],r=s[6]),s[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)(L4,{}),s[7]=a):a=s[7],s[8]!==d?(o={...d,image:null},s[8]=d,s[9]=o):o=s[9],s[10]!==p||s[11]!==m||s[12]!==o?(l=(0,v.jsx)(I.so,{direction:"column",flex:1,justify:"center",align:"center",children:(0,v.jsx)(ir.P.div,{initial:n,animate:i,transition:r,children:(0,v.jsx)(FR,{width:0,padding:4,paddingY:1,children:(0,v.jsxs)(I.so,{align:"center",direction:"column",children:[a,(0,v.jsx)(I.az,{paddingTop:2,children:(0,v.jsx)(FP,{align:"center",layout:"vertical",data:o,border:!1,onPrimaryClick:p,onSecondaryClick:m})})]})})})}),s[10]=p,s[11]=m,s[12]=o,s[13]=l):l=s[13],l):null};function FV(e){let t=(0,j.c)(2),{cardinalityView:n}=e;if("drafts"===n){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(FN,{}),t[0]=e):e=t[0],e}if("releases"===n){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(FO,{}),t[1]=e):e=t[1],e}return null}let FM=ir.P.create(tL.$n),FL={column:"publishAt",direction:"asc"},FF={column:"lastActivity",direction:"desc"};function FB(){let e,t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,T,E,$,A,D,z,P,R,N,O,V,M,L,F,B,Y,H,U,Z,q,W,J,K,G,X,Q,ee,et,en,ei,er,ea,eo,el,es,ed,ec,eu,ep=(0,j.c)(208),{data:em,loading:eh}=gU(),{data:ef}=R6(),{mode:eg,handleOpenDialog:ey}=Rw(),{mode:eC}=LM(),ex=LO(),{document:eb,releases:ev}=cY(),ej=!!ev?.enabled,ew=eb?.drafts?.enabled,e_=(0,nU.rd)();ep[0]!==e_?(e=()=>{let e=new URLSearchParams(e_.state._searchParams).get(Oq);return"archived"===e?"archived":"paused"===e?"paused":"active"},ep[0]=e_,ep[1]=e):e=ep[1];let[ek,eS]=(0,_.useState)(e);ep[2]!==ej||ep[3]!==ex||ep[4]!==e_?(t=(({router:e,isScheduledDraftsEnabled:t,isReleasesEnabled:n})=>()=>t?n?"drafts"===new URLSearchParams(e.state._searchParams).get(OW)?"drafts":"releases":"drafts":"releases")({router:e_,isScheduledDraftsEnabled:ex,isReleasesEnabled:ej}),ep[2]=ej,ep[3]=ex,ep[4]=e_,ep[5]=t):t=ep[5];let[eI,eE]=(0,_.useState)(t);ep[6]!==e_?(n=()=>{let e=new URLSearchParams(e_.state._searchParams).get(OZ);return e?new Date(e):void 0},ep[6]=e_,ep[7]=n):n=ep[7];let[e$,eA]=(0,_.useState)(n),[eD,ez]=(0,_.useState)(!1);ep[8]!==em||ep[9]!==eI?(i=em.filter(u$(eI)),ep[8]=em,ep[9]=eI,ep[10]=i):i=ep[10];let eP=i;ep[11]!==ef||ep[12]!==eI?(r=ef.filter(u$(eI)),ep[11]=ef,ep[12]=eI,ep[13]=r):r=ep[13];let eR=r;ep[14]!==eI||ep[15]!==eP?(a="drafts"===eI?eP.filter(FU):[],ep[14]=eI,ep[15]=eP,ep[16]=a):a=ep[16];let eN=a;ep[17]!==eP?(o=eP.map(FH),ep[17]=eP,ep[18]=o):o=ep[18];let eO=o,{data:eV,loading:eM}=(e=>{let t,n,i,r,a,o,l=(0,j.c)(14),{addReleaseIdsToListener:s,removeReleaseIdsFromListener:d,state:c}=(a=(0,j.c)(2),o=(0,_.useContext)(S.JQ),a[0]!==o?(r=o||{state:Na,addReleaseIdsToListener:Nc,removeReleaseIdsFromListener:Nu},a[0]=o,a[1]=r):r=a[1],r);l[0]!==s||l[1]!==e||l[2]!==d?(t=()=>(e.length&&s([...new Set(e)]),()=>d([...new Set(e)])),n=[s,e,d],l[0]=s,l[1]=e,l[2]=d,l[3]=t,l[4]=n):(t=l[3],n=l[4]),(0,_.useEffect)(t,n);let{data:u,loading:p}=c,m=null;if(u){let t;if(l[5]!==u||l[6]!==e){let n;l[8]!==u?(n=e=>[e,u[e]],l[8]=u,l[9]=n):n=l[9],t=Object.fromEntries(e.map(n)),l[5]=u,l[6]=e,l[7]=t}else t=l[7];m=t}return l[10]!==p||l[11]!==m||l[12]!==c.error?(i={error:c.error,loading:p,data:m},l[10]=p,l[11]=m,l[12]=c.error,l[13]=i):i=l[13],i})(eO),eL=eh||eM&&!eV,eF=eL||!eV&&!!eO.length,{t:eB}=as(RE),{t:eY}=as(),{timeZone:eH,utcToCurrentZoneDate:eU}=ky(Rz),{selectedPerspective:eZ}=a3(),{DialogTimeZone:eq,dialogProps:eW,dialogTimeZoneShow:eJ}=kk(Rz),eK=L5(),{createRelease:eG}=RI(),{checkWithPermissionGuard:eX}=NU(),[eQ,e1]=(0,_.useState)(null),e2=(0,I.aY)();ep[19]!==eZ?(l=e=>e.isDeleted?{tone:"transparent"}:rG(eZ)&&eZ._id===e._id?{tone:uA(e)}:"active"===e.state&&N1(e)?{tone:"caution"}:{tone:"default"},ep[19]=eZ,ep[20]=l):l=ep[20];let e5=l,[e0,e7]=(0,_.useState)(null),e3=eP.length>0||eR.length>0,e8="drafts"===eI&&(!ew||!ex),e4=eL||e3,e6=!eL&&!e3;e:{let e;if(!e3||!eV){let e;ep[21]===Symbol.for("react.memo_cache_sentinel")?(e=[],ep[21]=e):e=ep[21],s=e;break e}if(ep[22]!==eP||ep[23]!==eV){let t;ep[25]!==eV?(t=e=>({...e,publishAt:e.publishAt||e.metadata.intendedPublishAt,documentsMetadata:eV[e._id]||{}}),ep[25]=eV,ep[26]=t):t=ep[26],e=eP.map(t),ep[22]=eP,ep[23]=eV,ep[24]=e}else e=ep[24];s=e}let e9=s,te=(0,_.useRef)(!1);ep[27]!==eX||ep[28]!==eG?(c=()=>(te.current=!0,eX(eG,uE()).then(e=>{te.current&&e1(e)}
1266),()=>{te.current=!1}),d=[eX,eG],ep[27]=eX,ep[28]=eG,ep[29]=d,ep[30]=c):(d=ep[29],c=ep[30]),(0,_.useEffect)(c,d),"archived"!==ek||eh||eR.length||eS("active"),"paused"!==ek||eh||eN.length||eS("active"),ep[31]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{let{currentTarget:t}=e,{value:n}=t;eS(n)},ep[31]=u):u=ep[31];let tt=u;ep[32]===Symbol.for("react.memo_cache_sentinel")?(p=e=>()=>eE(e),ep[32]=p):p=ep[32];let tn=p;ep[33]!==eU?(m=e=>eA(t=>{let n;if(!e)return;let i=new Date((n=eU(e)).getFullYear(),n.getMonth(),n.getDate());return t&&(0,nd.r)(t,i)?void 0:i}),ep[33]=eU,ep[34]=m):m=ep[34];let ti=m;ep[35]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{eA(void 0),eS("active")},ep[35]=h):h=ep[35];let tr=h;ep[36]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{eA(void 0),eS("paused")},ep[36]=f):f=ep[36];let ta=f;ep[37]!==eI||ep[38]!==ex||ep[39]!==e$||ep[40]!==ek||ep[41]!==e_?(g=()=>{var e;let t;e_.navigate({_searchParams:(e=ex?eI:"releases",t=[],e$?t.push([OZ,(0,nn.GP)(e$,"yyyy-MM-dd")]):"active"!==ek&&t.push([Oq,ek]),"drafts"===e&&t.push([OW,"drafts"]),t)})},y=[e$,ek,eI,e_,ex],ep[37]=eI,ep[38]=ex,ep[39]=e$,ep[40]=ek,ep[41]=e_,ep[42]=g,ep[43]=y):(g=ep[42],y=ep[43]),(0,_.useEffect)(g,y);let[to,tl]=(0,_.useState)(!1);ep[44]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{tl(!0)},x=[],ep[44]=C,ep[45]=x):(C=ep[44],x=ep[45]),(0,_.useEffect)(C,x);let ts=e2>2,td=eL||!e3;ep[46]!==to?(b=to?{initial:{opacity:0}
1266,animate:{opacity:1},transition:{duration:.4,ease:"easeInOut"}}:{},ep[46]=to,ep[47]=b):b=ep[47],ep[48]!==td||ep[49]!==b?(w={disabled:td,mode:"bleed",padding:2,...b},ep[48]=td,ep[49]=b,ep[50]=w):w=ep[50];let tc=w,tu="active"===ek;ep[51]!==eB?(k=eB("action.open"),ep[51]=eB,ep[52]=k):k=ep[52],ep[53]!==tc||ep[54]!==tu||ep[55]!==k?(T=(0,v.jsx)(FM,{...tc,onClick:tt,selected:tu,text:k,value:"active"},"open-group"),ep[53]=tc,ep[54]=tu,ep[55]=k,ep[56]=T):T=ep[56],ep[57]!==eI||ep[58]!==tc||ep[59]!==eN.length||ep[60]!==ek||ep[61]!==eB?(E="drafts"===eI&&(0,v.jsx)(tL.m_,{disabled:0!==eN.length,content:eB("no-paused-release"),placement:"bottom",children:(0,v.jsx)("div",{children:(0,v.jsx)(FM,{...tc,disabled:tc.disabled||!eN.length,onClick:tt,selected:"paused"===ek,text:eB("action.paused"),value:"paused"},"paused-group")})}),ep[57]=eI,ep[58]=tc,ep[59]=eN.length,ep[60]=ek,ep[61]=eB,ep[62]=E):E=ep[62];let tp=0!==eR.length;ep[63]!==eB?($=eB("no-archived-release"),ep[63]=eB,ep[64]=$):$=ep[64];let tm=tc.disabled||!eR.length,th="archived"===ek;ep[65]!==eB?(A=eB("action.archived"),ep[65]=eB,ep[66]=A):A=ep[66],ep[67]!==tc||ep[68]!==tm||ep[69]!==th||ep[70]!==A?(D=(0,v.jsx)("div",{children:(0,v.jsx)(FM,{...tc,disabled:tm,onClick:tt,selected:th,text:A,value:"archived"},"archived-group")}),ep[67]=tc,ep[68]=tm,ep[69]=th,ep[70]=A,ep[71]=D):D=ep[71],ep[72]!==tp||ep[73]!==$||ep[74]!==D?(z=(0,v.jsx)(tL.m_,{disabled:tp,content:$,placement:"bottom",children:D}),ep[72]=tp,ep[73]=$,ep[74]=D,ep[75]=z):z=ep[75],ep[76]!==T||ep[77]!==E||ep[78]!==z?(P=(0,v.jsxs)(ia.N,{children:[T,E,z]}),ep[76]=T,ep[77]=E,ep[78]=z,ep[79]=P):P=ep[79];let tf=P;ep[80]!==ey||ep[81]!==eg?(R=()=>{"upsell"===eg?ey():ez(!0)},ep[80]=ey,ep[81]=eg,ep[82]=R):R=ep[82];let tg=R;t:{let e,t,n,i;if(ex&&"drafts"===eI){N=null;break t}let r=!eQ||eD;ep[83]!==eY?(e=eY("release.action.create-new"),ep[83]=eY,ep[84]=e):e=ep[84];let a=!0===eQ;ep[85]!==eY?(t=eY("release.action.permission.error"),ep[85]=eY,ep[86]=t):t=ep[86],ep[87]!==a||ep[88]!==t?(n={disabled:a,content:t},ep[87]=a,ep[88]=t,ep[89]=n):n=ep[89],ep[90]!==tg||ep[91]!==r||ep[92]!==e||ep[93]!==n?(i=(0,v.jsx)(tL.$n,{icon:eT.REV,disabled:r,onClick:tg,text:e,tooltipProps:n}),ep[90]=tg,ep[91]=r,ep[92]=e,ep[93]=n,ep[94]=i):i=ep[94],N=i}let ty=N;ep[95]!==e_?(O=e=>{ez(!1),e_.navigate({releaseId:e},{stickyParams:{excludedPerspectives:null,perspective:e}})},ep[95]=e_,ep[96]=O):O=ep[96];let tC=O;ep[97]!==tC||ep[98]!==eD?(V=()=>eD?(0,v.jsx)(LY,{onCancel:()=>ez(!1),onSubmit:tC,origin:"release-plugin"}):null,ep[97]=tC,ep[98]=eD,ep[99]=V):V=ep[99];let tx=V;ep[100]!==eI||ep[101]!==ek?(M=e=>{let{datum:t}=e;if(t.isDeleted||t.isLoading)return null;if("drafts"===eI)return(0,v.jsx)(Fv,{release:t});let n=("active"===ek?t.documentsMetadata?.documentCount:t.finalDocumentStates?.length)??0;return(0,v.jsx)(L8,{release:t,documentsCount:n})},ep[100]=eI,ep[101]=ek,ep[102]=M):M=ep[102];let tb=M;ep[103]!==eR||ep[104]!==eI||ep[105]!==eK||ep[106]!==e$||ep[107]!==ek||ep[108]!==e9?(L=function(e){let{releases:t,archivedReleases:n,cardinalityView:i,releaseGroupMode:r,dateFilter:a}=e,o=(e=>{if(!a)return e;let[t,n]=a.getTimezoneAdjustedDateTimeRange(a.filterDate);return e.filter(e=>{let i=e.publishAt||e.metadata.intendedPublishAt;if(!i||"scheduled"!==e.metadata.releaseType)return!1;let r=new Date(i);return r>=t&&r<=n})})("archived"===r?n:t);return"drafts"!==i?o:"active"===r?o.filter(e=>"scheduled"===e.state||"scheduling"===e.state):"paused"===r?o.filter(e=>rQ(e)):o}({releases:e9,archivedReleases:eR,cardinalityView:eI,releaseGroupMode:ek,dateFilter:e$?{filterDate:e$,getTimezoneAdjustedDateTimeRange:eK}:void 0}),ep[103]=eR,ep[104]=eI,ep[105]=eK,ep[106]=e$,ep[107]=ek,ep[108]=e9,ep[109]=L):L=ep[109];let tv=L;ep[110]!==eI||ep[111]!==eP?(F="drafts"===eI&&eP.some(FY),ep[110]=eI,ep[111]=eP,ep[112]=F):F=ep[112];let tj=F,tw=eL||0===eP.length;ep[113]!==eI?((eu=e=>{let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(L0,{...e,cardinalityView:eI}),n[0]=e,n[1]=t):t=n[1],t}).displayName="ReleaseCalendarFilterDayComponent",B=eu,ep[113]=eI,ep[114]=B):B=ep[114],ep[115]!==ti||ep[116]!==e$||ep[117]!==tw||ep[118]!==B?(Y=(0,v.jsx)(I.so,{flex:"none",children:(0,v.jsx)(I.Zp,{borderRight:!0,flex:"none",disabled:!0,children:(0,v.jsx)(LN,{disabled:tw,renderCalendarDay:B,selectedDate:e$,onSelect:ti,timeZoneScope:Rz})})}),ep[115]=ti,ep[116]=e$,ep[117]=tw,ep[118]=B,ep[119]=Y):Y=ep[119];let t_=Y;n:{let e,t;if("drafts"===eI){let e;ep[120]!==ek||ep[121]!==eB?(e=[{id:"documentPreview",sorting:!1,width:null,style:{flex:1},header:e=>(0,v.jsx)(I.so,{...e.headerProps,paddingLeft:2,paddingRight:2,paddingY:3,sizing:"border",children:(0,v.jsx)(O8,{text:eB("table-header.document")})}),cell:Fk},{id:"publishAt",sorting:!0,width:300,header:e=>(0,v.jsx)(I.so,{...e.headerProps,paddingY:3,paddingX:2,sizing:"border",children:(0,v.jsx)(O7,{...e,text:eB("archived"===ek?"table-header.scheduled-draft.published-at":"paused"===ek?"table-header.intended-for":"table-header.scheduled-for")})}),cell:FI},{id:"warning",sorting:!1,width:40,header:({headerProps:e})=>(0,v.jsx)(I.so,{...e,paddingY:3,sizing:"border"}),cell:FT}
1266],ep[120]=ek,ep[121]=eB,ep[122]=e):e=ep[122],H=e;break n}ep[123]!==ek||ep[124]!==eB?(e=[(t=(e,t)=>{if(!ek)throw Error("currentMode is required");if("all"===t||t===ek)return e})({id:"metadata.title",sorting:!0,width:null,style:{minWidth:"50%",maxWidth:"50%"},header:e=>(0,v.jsx)(I.so,{...e.headerProps,flex:1,paddingLeft:6,width:3,paddingRight:2,paddingY:3,sizing:"border",children:(0,v.jsx)(O7,{...e,text:eB("table-header.title")})}),cell:Fd},"all"),t({id:"publishAt",sorting:!0,sortTransform:e=>{if("undecided"===e.metadata.releaseType)return 1/0;let t=u_(e);return"asap"!==e.metadata.releaseType&&t?new Date(t).getTime():0},width:250,header:e=>(0,v.jsx)(I.so,{...e.headerProps,paddingY:3,sizing:"border",children:(0,v.jsx)(O7,{text:eB("table-header.time"),...e})}),cell:({cellProps:e,datum:t})=>t.isLoading?null:(0,v.jsxs)(I.so,{...e,align:"center",paddingX:2,paddingY:3,gap:2,sizing:"border",children:[(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(N2,{release:t})}),uT(t)&&(0,v.jsx)(I.EY,{size:1,"data-testid":"release-lock-icon",children:(0,v.jsx)(eT.XAi,{})})]})},"active"),t({id:"lastActivity",hidden:!0,sorting:!0,width:100,sortTransform:({publishedAt:e,_updatedAt:t})=>{let n=e??t;return n?new Date(n).getTime():-1/0}},"archived"),t({id:"publishedAt",sorting:!0,sortTransform:(e,t)=>"published"!==e.state?"asc"===t?1/0:-1/0:e.publishedAt?new Date(e.publishedAt).getTime():e._updatedAt,width:250,header:e=>(0,v.jsx)(I.so,{...e.headerProps,paddingY:3,sizing:"border",children:(0,v.jsx)(O7,{text:eB("table-header.published-at"),...e})}),cell:({cellProps:e,datum:t})=>(0,v.jsx)(I.so,{...e,align:"center",paddingX:2,paddingY:3,gap:2,sizing:"border",children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:t.publishedAt?(0,v.jsx)(NI,{time:t.publishedAt,useTemporalPhrase:!0,minimal:!0}):"-"})})},"archived"),t({id:"_updatedAt",sorting:!0,sortTransform:(e,t)=>"archived"!==e.state?"asc"===t?1/0:-1/0:new Date(e._updatedAt).getTime(),width:250,header:e=>(0,v.jsx)(I.so,{...e.headerProps,paddingY:3,sizing:"border",children:(0,v.jsx)(O7,{text:eB("table-header.archivedAt"),...e})}),cell:({cellProps:e,datum:t})=>(0,v.jsx)(I.so,{...e,align:"center",paddingX:2,paddingY:3,gap:2,sizing:"border",children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:"archived"===t.state?(0,v.jsx)(NI,{time:t._updatedAt,useTemporalPhrase:!0,minimal:!0}):"-"})})},"archived"),t({id:"documentsMetadata.updatedAt",sorting:!0,width:150,header:e=>(0,v.jsx)(I.so,{...e.headerProps,paddingY:3,sizing:"border",children:(0,v.jsx)(O7,{text:eB("table-header.edited"),...e})}),cell:({datum:{documentsMetadata:e,_updatedAt:t},cellProps:n})=>{let i=e?.updatedAt??t;return(0,v.jsx)(I.so,{...n,align:"center",gap:2,paddingX:2,paddingY:3,sizing:"border",children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:i?(0,v.jsx)(NI,{time:i,useTemporalPhrase:!0,minimal:!0}):"-"})})}},"active"),t({id:"error",sorting:!1,width:40,header:({headerProps:e})=>(0,v.jsx)(I.so,{...e,paddingY:3,sizing:"border"}),cell:({datum:e,cellProps:t})=>{let{error:n,state:i}=e,r="active"===i&&N1(e);return(0,v.jsxs)(I.so,{...t,align:"center",gap:2,paddingX:2,paddingY:3,sizing:"border","data-testid":"error-indicator",children:["u">typeof n&&"active"===i&&(0,v.jsx)(tL.m_,{content:(0,v.jsx)(I.EY,{size:1,children:eB("failed-publish-title")}),portal:!0,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(NF,{icon:eT.YZv,tone:"critical"})})}),r&&(0,v.jsx)(tL.m_,{content:(0,v.jsx)(I.EY,{size:1,children:eB("passed-intended-publish-date")}),portal:!0,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(NF,{icon:eT.sAQ,tone:"caution"})})})]})}},"all"),t({id:"documentCount",sorting:!1,width:120,header:({headerProps:e})=>(0,v.jsx)(I.so,{...e,paddingY:3,sizing:"border",children:(0,v.jsx)(O8,{text:eB("table-header.documents")})}),cell:({datum:{isDeleted:e,state:t,finalDocumentStates:n,documentsMetadata:i,_id:r},cellProps:a})=>(0,v.jsxs)(I.so,{...a,align:"center",paddingX:2,paddingY:3,sizing:"border",gap:2,children:["active"===t&&(0,v.jsx)(L9,{releaseId:r}),"scheduled"===t&&(0,v.jsx)(I.Zp,{padding:0,radius:"full",tone:"neutral",style:{background:"transparent"},children:(0,v.jsx)(I.so,{gap:2,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(tL.m_,{content:eB("summary.all-documents-vali
1266dated"),children:(0,v.jsx)(eT.Dee,{})})})})}),!e&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(Fe,{documentCount:"archived"===t||"published"===t?n?.length:i?.documentCount})})]})},"all")].filter(Boolean),ep[123]=ek,ep[124]=eB,ep[125]=e):e=ep[125],H=e}let tk=H,tS="archived"===ek&&"releases"===eI?FF:FL;ep[126]!==ty?(U=()=>(0,v.jsx)(L6,{createReleaseButton:ty}),ep[126]=ty,ep[127]=U):U=ep[127];let tI=U;i:{let e;if("releases"===eI&&"active"===ek){Z=tI;break i}if("drafts"===eI){let e;ep[128]!==eB?(e=eB("no-scheduled-drafts"),ep[128]=eB,ep[129]=e):e=ep[129],Z=e;break i}ep[130]!==eB?(e=eB("no-releases"),ep[130]=eB,ep[131]=e):e=ep[131],Z=e}let tT=Z;ep[132]===Symbol.for("react.memo_cache_sentinel")?(q={height:"100%"},ep[132]=q):q=ep[132];let tE=ts&&t_;ep[133]===Symbol.for("react.memo_cache_sentinel")?(W={position:"relative"},ep[133]=W):W=ep[133],ep[134]!==t_||ep[135]!==ts?(J=!ts&&(0,v.jsx)(LU,{content:t_}),ep[134]=t_,ep[135]=ts,ep[136]=J):J=ep[136],ep[137]!==em||ep[138]!==eI||ep[139]!==ew||ep[140]!==ej||ep[141]!==ex||ep[142]!==eL?(K=(0,v.jsx)(LJ,{cardinalityView:eI,loading:eL,onCardinalityViewChange:tn,isScheduledDraftsEnabled:ex,allReleases:em,isReleasesEnabled:ej,isDraftModelEnabled:ew}),ep[137]=em,ep[138]=eI,ep[139]=ew,ep[140]=ej,ep[141]=ex,ep[142]=eL,ep[143]=K):K=ep[143],ep[144]!==J||ep[145]!==K?(G=(0,v.jsxs)(I.cV,{children:[J,K]}),ep[144]=J,ep[145]=K,ep[146]=G):G=ep[146],ep[147]!==tf||ep[148]!==e4||ep[149]!==e$?(X=e4&&(e$?(0,v.jsx)(L3,{filterDate:e$,onClear:tr}):tf),ep[147]=tf,ep[148]=e4,ep[149]=e$,ep[150]=X):X=ep[150],ep[151]!==X?(Q=(0,v.jsx)(I.so,{flex:1,gap:1,children:X}),ep[151]=X,ep[152]=Q):Q=ep[152];let t$=`${eH.abbreviation} (${eH.namePretty})`;ep[153]!==eJ||ep[154]!==t$?(ee=(0,v.jsx)(tL.$n,{icon:eT.DZb,iconRight:eT.D3D,mode:"bleed",text:t$,onClick:eJ}),ep[153]=eJ,ep[154]=t$,ep[155]=ee):ee=ep[155],ep[156]!==eq||ep[157]!==eW?(et=eq&&(0,v.jsx)(eq,{...eW}),ep[156]=eq,ep[157]=eW,ep[158]=et):et=ep[158];let tA=e4&&ty;return ep[159]!==ee||ep[160]!==et||ep[161]!==tA?(en=(0,v.jsxs)(I.so,{flex:"none",gap:2,children:[ee,et,tA]}),ep[159]=ee,ep[160]=et,ep[161]=tA,ep[162]=en):en=ep[162],ep[163]!==G||ep[164]!==Q||ep[165]!==en?(ei=(0,v.jsx)(I.Zp,{flex:"none",padding:3,children:(0,v.jsxs)(I.so,{align:"center",flex:1,gap:3,children:[G,Q,en]})}),ep[163]=G,ep[164]=Q,ep[165]=en,ep[166]=ei):ei=ep[166],ep[167]!==em||ep[168]!==ew||ep[169]!==ex||ep[170]!==e8?(er=e8&&(0,v.jsx)(L2,{isDraftModelEnabled:ew,isScheduledDraftsEnabled:ex,allReleases:em}),ep[167]=em,ep[168]=ew,ep[169]=ex,ep[170]=e8,ep[171]=er):er=ep[171],ep[172]!==e$||ep[173]!==ek||ep[174]!==eP||ep[175]!==tj?(ea=tj&&(0,v.jsx)(LQ,{releases:eP,releaseGroupMode:ek,hasDateFilter:!!e$,onNavigateToPaused:ta}),ep[172]=e$,ep[173]=ek,ep[174]=eP,ep[175]=tj,ep[176]=ea):ea=ep[176],ep[177]!==eI||ep[178]!==ty||ep[179]!==tS||ep[180]!==tv||ep[181]!==e5||ep[182]!==e6||ep[183]!==eF||ep[184]!==e$||ep[185]!==ek||ep[186]!==eg||ep[187]!==tb||ep[188]!==eC||ep[189]!==e0||ep[190]!==tj||ep[191]!==e8||ep[192]!==tk||ep[193]!==tT?(eo=e6?(0,v.jsx)(v.Fragment,{children:"releases"===eI?"upsell"===eg?(0,v.jsx)(FV,{cardinalityView:eI}):(0,v.jsx)(L6,{createReleaseButton:ty}):"upsell"===eC?(0,v.jsx)(FV,{cardinalityView:eI}):(0,v.jsx)(F_,{})}):(0,v.jsx)(I.az,{ref:e7,marginTop:e8||tj?0:3,overflow:"auto",children:(0,v.jsx)(O9,{defaultSort:tS,loading:eF,data:tv,columnDefs:tk,emptyState:tT,rowId:"_id",rowActions:tb,rowProps:e5,scrollContainerRef:e0,hideTableInlinePadding:!0},e$?"by_date":ek)}),ep[177]=eI,ep[178]=ty,ep[179]=tS,ep[180]=tv,ep[181]=e5,ep[182]=e6,ep[183]=eF,ep[184]=e$,ep[185]=ek,ep[186]=eg,ep[187]=tb,ep[188]=eC,ep[189]=e0,ep[190]=tj,ep[191]=e8,ep[192]=tk,ep[193]=tT,ep[194]=eo):eo=ep[194],ep[195]!==ei||ep[196]!==er||ep[197]!==ea||ep[198]!==eo?(el=(0,v.jsxs)(I.so,{direction:"column",flex:1,style:W,children:[ei,er,ea,eo]}),ep[195]=ei,ep[196]=er,ep[197]=ea,ep[198]=eo,ep[199]=el):el=ep[199],ep[200]!==tE||ep[201]!==el?(es=(0,v.jsxs)(I.so,{flex:1,children:[tE,el]}),ep[200]=tE,ep[201]=el,ep[202]=es):es=ep[202],ep[203]!==tx?(ed=tx(),ep[203]=tx,ep[204]=ed):ed=ep[204],ep[205]!==es||ep[206]!==ed?(ec=(0,v.jsxs)(I.so,{direction:"row",flex:1,style:q,children:[es,ed]}),ep[205]=es,ep[206]=ed,ep[207]=ec):ec=ep[207],ec}function FY(e){return"active"===e.state&&rX(e)}function FH(e){return e._id}function FU(e){return rQ(e)}let FZ=(e,t)=>n=>{let i,r,a,o=(0,j.c)(11),{type:l,release:s,id:d}=n,{data:c,loading:u}=R4();o[0]!==s?(i=e=>cN(e._id)===s,o[0]=s,o[1]=i):i=o[1];let p=(void 0===c?[]:c).find(i),{actions:m,dialogs:h}=Fb({release:p,documentType:l,documentId:d});if(t&&!t(p)||!p||!m||!m[e])return null;let f=m[e],g=f.disabled||u;return o[2]!==h?(r=!!h&&{type:"custom",component:h},o[2]=h,o[3]=r):r=o[3],o[4]!==f.icon||o[5]!==f.onClick||o[6]!==f.text||o[7]!==f.tone||o[8]!==g||o[9]!==r?(a={disabled:g,icon:f.icon,label:f.text,title:f.text,tone:f.tone,dialog:r,onHandle:f.onClick},o[4]=f.icon,o[5]=f.onClick,o[6]=f.text,o[7]=f.tone,o[8]=g,o[9]=r,o[10]=a):a=o[10],a},Fq=FZ("publishNow"),FW=FZ("editSchedule",e=>!rQ(e)),FJ=FZ("deleteSchedule");
1266function FK(e){let t,n,i=(0,j.c)(5),{children:r,onSetScheduledDraftPerspective:a}=e;return i[0]!==a?(t={onSetScheduledDraftPerspective:a},i[0]=a,i[1]=t):t=i[1],i[2]!==r||i[3]!==t?(n=(0,v.jsx)(S.Ni.Provider,{value:t,children:r}),i[2]=r,i[3]=t,i[4]=n):n=i[4],n}function FG(){let e=(0,_.useContext)(S.Ni);if(!e)throw Error("SingleDocReleaseContext not found");return e}Fq.displayName="PublishScheduledDraftAction",Fq.action="publish",FW.displayName="EditScheduledDraftAction",FW.action="schedule",FJ.displayName="DeleteScheduledDraftAction",FJ.action="discardVersion";let FX=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(51),{id:f,type:g,draft:y}=e,{t:C}=as(Fw),{createScheduledDraft:x,rescheduleScheduledDraft:b}=Fu(),w=(0,T.dj)(),{enabled:k,mode:S}=LM(),{handleOpenDialog:I}=F$();h[0]!==f?(t=(0,tG.T4)(f),h[0]=f,h[1]=t):t=h[1];let E=Yi(t,g,!0);h[2]!==E.validation?(n=E.validation.some(eD.Uw),h[2]=E.validation,h[3]=n):n=h[3];let $=n,A=function(e){let t,n,i=(0,j.c)(5),{data:r}=gU();i[0]!==e?(t={documentId:e},i[0]=e,i[1]=t):t=i[1];let{data:a}=Rf(t);e:{let e;if(!r||!a){n=!1;break e}if(i[2]!==r||i[3]!==a){let t=a.map(tG._S).filter(Boolean);e=r.some(e=>{let n=cN(e._id);return t.includes(n)&&rX(e)}),i[2]=r,i[3]=a,i[4]=e}else e=i[4];n=e}return n}(f),[D,z]=(0,_.useState)(!1),[P,R]=(0,_.useState)(!1),{onSetScheduledDraftPerspective:N}=FG(),{data:O}=gU();h[4]!==O?(i=void 0===O?[]:O,h[4]=O,h[5]=i):i=h[5];let V=i,M=a3();if(h[6]!==M.selectedReleaseId||h[7]!==V){let e;h[9]!==M.selectedReleaseId?(e=e=>cN(e._id)===M.selectedReleaseId,h[9]=M.selectedReleaseId,h[10]=e):e=h[10],r=V.find(e),h[6]=M.selectedReleaseId,h[7]=V,h[8]=r}else r=h[8];let L=r;h[11]!==L?(a=rQ(L),h[11]=L,h[12]=a):a=h[12];let F=a;h[13]!==L||h[14]!==F?(o=F&&L?.metadata.intendedPublishAt?new Date(L.metadata.intendedPublishAt):void 0,h[13]=L,h[14]=F,h[15]=o):o=h[15];let B=o;h[16]!==I||h[17]!==S?(l=()=>{"upsell"===S?I("document_action"):z(!0)},h[16]=I,h[17]=S,h[18]=l):l=h[18];let Y=l;h[19]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{z(!1)},h[19]=s):s=h[19];let H=s;h[20]!==x||h[21]!==L||h[22]!==f||h[23]!==F||h[24]!==N||h[25]!==b||h[26]!==C||h[27]!==w?(d=async e=>{R(!0);let t=async()=>{F&&L?await b(L,e):N(cN(await x(f,e))),z(!1)};try{await t()}catch(e){console.error("Failed to schedule document publish:",e),w.push({closable:!0,status:"error",title:C("action.schedule-publish-error"),description:e instanceof Error?e.message:"An unknown error occurred"})}R(!1)},h[20]=x,h[21]=L,h[22]=f,h[23]=F,h[24]=N,h[25]=b,h[26]=C,h[27]=w,h[28]=d):d=h[28];let U=d,Z=F?$:A||$;e:{let e;if(F&&$){let e;h[29]!==C?(e=C("action.schedule-publish.disabled.validation-issues"),h[29]=C,h[30]=e):e=h[30],c=e;break e}if(A){let e;h[31]!==C?(e=C("action.schedule-publish.disabled.cardinality-one"),h[31]=C,h[32]=e):e=h[32],c=e;break e}if($){let e;h[33]!==C?(e=C("action.schedule-publish.disabled.validation-issues"),h[33]=C,h[34]=e):e=h[34],c=e;break e}h[35]!==C?(e=C("action.schedule-publish"),h[35]=C,h[36]=e):e=h[36],c=e}let q=c;if(!k||!y&&!F)return null;h[37]!==C?(u=C("action.schedule-publish"),h[37]=C,h[38]=u):u=h[38];let W=F?"primary":void 0;return h[39]!==D||h[40]!==U||h[41]!==B||h[42]!==P?(p=D&&{type:"custom",component:(0,v.jsx)(Fx,{onClose:H,onSchedule:U,variant:"schedule",loading:P,initialDate:B})},h[39]=D,h[40]=U,h[41]=B,h[42]=P,h[43]=p):p=h[43],h[44]!==Z||h[45]!==Y||h[46]!==u||h[47]!==W||h[48]!==p||h[49]!==q?(m={icon:eT.CTc,disabled:Z,label:u,title:q,tone:W,onHandle:Y,dialog:p},h[44]=Z,h[45]=Y,h[46]=u,h[47]=W,h[48]=p,h[49]=q,h[50]=m):m=h[50],m};FX.action="schedule",FX.displayName="SchedulePublishAction";let FQ="sanity/singleDocRelease",F1="releases-scheduled-drafts",F2=R1({name:FQ,studio:{components:{layout:function(e){let t,n,i=(0,j.c)(4);return i[0]!==e?(t=e.renderDefault(e),i[0]=e,i[1]=t):t=i[1],i[2]!==t?(n=(0,v.jsx)(LV,{children:(0,v.jsx)(FE,{children:t})}),i[2]=t,i[3]=n):n=i[3],n}}},i18n:{bundles:[{locale:"en-US",namespace:Fw,resources:()=>n.e(5716).then(n.bind(n,95716))}]},document:{actions:function(e,t){if("scheduled-draft"===t.versionType)return[FX,Fq,FW,FJ];if("draft"===t.versionType){let t=e.filter(({action:e})=>"schedule"!==e),n=t.findIndex(({action:e})=>"publish"===e),i=n+1,r=n>=0;return[...r?t.slice(0,i):[],FX,...r?t.slice(i):t]}return e}}}),F5="sanity/schedules",F0="releases",F7=R1({name:F5,studio:{components:{layout:function(e){let t,n,i=(0,j.c)(6);if(!F3()){let t;return i[0]!==e?(t=e.renderDefault(e),i[0]=e,i[1]=t):t=i[1],t}return i[2]!==e?(t=e.renderDefault(e),i[2]=e,i[3]=t):t=i[3],i[4]!==t?(n=(0,v.jsx)(Ny,{children:(0,v.jsx)(Nl,{children:t})}),i[4]=t,i[5]=n):n=i[5],n}}},tools:[{name:F0,title:"Releases",component:function(){let e,t=(0,j.c)(3),{releaseId:n}=(0,nU.rd)().state;if(n){let e;return t[0]!==n?(e=(0,v.jsx)(LA,{},n),t[0]=n,t[1]=e):e=t[1],e}return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(FB,{}),t[2]=e):e=t[2],e},router:nU.wE.create("/",[nU.wE.create("/:releaseId")]),__internalApplicationType:"sanity/schedules",canHandleIntent:e=>e===Ni||e===F1,getIntentState(e,t){if(e===Ni)return{releaseId:t.id};if(e===F1){let e=[];return t.view&&e.push(["view",t.view]),{_searchParams:e}}return null}}],i18n:{bundles:[{locale:"en-US",namespace:RE,resources:()=>n.e(3312).then(n.bind(n,93312))}]}});function F3(){let e,t=(0,j.c)(2),n=cY();return t[0]!==n.tools?(e=n.tools.some(F8),t[0]=n.tools,t[1]=e):e=t[1],e}function F8(e){let{name:t}=e;return t===F0}let F4=(e,t)=>
1266{let n,i=(0,j.c)(3),{document:r}=cY(),a=R8();i[0]!==e||i[1]!==a?(n=a.get(e),i[0]=e,i[1]=a,i[2]=n):n=i[2];let o=n?.liveEdit;return r?.drafts?.enabled&&"draft"!==t&&"published"!==t&&!o},F6=(0,_.memo)(function(e){let t,n,i,r,a=(0,j.c)(13),{documentId:o,documentType:l,fromRelease:s,onClick:d,onNavigate:c}=e,{t:u}=as(),p=F4(l,s);a[0]!==o||a[1]!==s||a[2]!==c?(t={documentId:o,fromRelease:s,onNavigate:c},a[0]=o,a[1]=s,a[2]=c,a[3]=t):t=a[3];let{handleCopyToDrafts:m,hasDraftVersion:h}=Rd(t);a[4]!==m||a[5]!==h||a[6]!==d?(n=()=>{h?d():m()},a[4]=m,a[5]=h,a[6]=d,a[7]=n):n=a[7];let f=n;return p?(a[8]!==u?(i=()=>(0,v.jsxs)(I.so,{gap:3,align:"center",children:[(0,v.jsx)(I.az,{flex:"none",paddingX:2,children:(0,v.jsx)(RL,{padding:0,tone:uA("drafts")})}),(0,v.jsx)(I.EY,{size:1,weight:"medium",children:u("release.chip.draft")})]}),a[8]=u,a[9]=i):i=a[9],a[10]!==f||a[11]!==i?(r=(0,v.jsx)(tL.Dr,{as:"a",onClick:f,"data-testid":"copy-to-drafts-menu-item",renderMenuItem:i}),a[10]=f,a[11]=i,a[12]=r):r=a[12],r):null}),F9=e=>{let t,n,i,r,a=(0,j.c)(29),{onCreateRelease:o}=e,{t:l}=as(),{createRelease:s}=RI(),{checkWithPermissionGuard:d}=NU(),c=LL();a[0]!==d||a[1]!==s||a[2]!==c?(t=(0,eL.H)(d(s,c(uE()))),a[0]=d,a[1]=s,a[2]=c,a[3]=t):t=a[3];let u=(0,tF.J)(t),p=gU().data.length,{releases:m}=cY(),h=m?.limit??1/0,f=p>=h;a[4]!==l?(n=l("release.action.create-new"),a[4]=l,a[5]=n):n=a[5],a[6]!==o||a[7]!==n?(i={icon:eT.REV,onClick:o,"data-testid":"create-new-release-button",text:n},a[6]=o,a[7]=n,a[8]=i):i=a[8];let g=i;if(f){let e,t,n,i;
1266return a[9]!==l?(e=l("release.action.create-new"),a[9]=l,a[10]=e):e=a[10],a[11]!==l||a[12]!==h?(t=l("release.action.new-release.limit-reached",{count:h}),a[11]=l,a[12]=h,a[13]=t):t=a[13],a[14]!==t?(n={content:t},a[14]=t,a[15]=n):n=a[15],a[16]!==g||a[17]!==e||a[18]!==n?(i=(0,v.jsx)(tL.Dr,{...g,text:e,tooltipProps:n,disabled:!0}),a[16]=g,a[17]=e,a[18]=n,a[19]=i):i=a[19],i}if(!u){let e,t,n;return a[20]!==l?(e=l("release.action.permission.error"),a[20]=l,a[21]=e):e=a[21],a[22]!==e?(t={content:e},a[22]=e,a[23]=t):t=a[23],a[24]!==g||a[25]!==t?(n=(0,v.jsx)(tL.Dr,{...g,tooltipProps:t,disabled:!0}),a[24]=g,a[25]=t,a[26]=n):n=a[26],n}return a[27]!==g?(r=(0,v.jsx)(tL.Dr,{...g}),a[27]=g,a[28]=r):r=a[28],r},Be=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(34),{release:f}=e,{t:g}=as();h[0]!==f?(t=uT(f),h[0]=f,h[1]=t):t=h[1];let y=t;h[2]!==f?(n=uA(f),h[2]=f,h[3]=n):n=h[3],h[4]!==n?(i=(0,v.jsx)(RL,{padding:2,tone:n}),h[4]=n,h[5]=i):i=h[5];let C=f.metadata?.title;return h[6]!==g?(r=g("release.placeholder-untitled-release"),h[6]=g,h[7]=r):r=h[7],h[8]===Symbol.for("react.memo_cache_sentinel")?(a={size:1,weight:"medium"},h[8]=a):a=h[8],h[9]!==C||h[10]!==r?(o=(0,v.jsx)(ug,{title:C,fallback:r,textProps:a}),h[9]=C,h[10]=r,h[11]=o):o=h[11],h[12]!==f.metadata.releaseType||h[13]!==g?(l="asap"===f.metadata.releaseType&&(0,v.jsx)(v.Fragment,{children:g("release.type.asap")}),h[12]=f.metadata.releaseType,h[13]=g,h[14]=l):l=h[14],h[15]!==f||h[16]!==g?(s="scheduled"===f.metadata.releaseType&&(f.metadata.intendedPublishAt?(0,v.jsx)(v.Fragment,{children:uk(f)}):(0,v.jsx)(v.Fragment,{children:g("release.chip.tooltip.unknown-date")})),h[15]=f,h[16]=g,h[17]=s):s=h[17],h[18]!==f.metadata.releaseType||h[19]!==g?(d="undecided"===f.metadata.releaseType&&(0,v.jsx)(v.Fragment,{children:g("release.type.undecided")}),h[18]=f.metadata.releaseType,h[19]=g,h[20]=d):d=h[20],h[21]!==l||h[22]!==s||h[23]!==d?(c=(0,v.jsxs)(I.EY,{muted:!0,size:1,children:[l,s,d]}),h[21]=l,h[22]=s,h[23]=d,h[24]=c):c=h[24],h[25]!==c||h[26]!==o?(u=(0,v.jsxs)(I.BJ,{flex:1,space:2,children:[o,c]}),h[25]=c,h[26]=o,h[27]=u):u=h[27],h[28]!==y?(p=y&&(0,v.jsx)(eT.XAi,{}),h[28]=y,h[29]=p):p=h[29],h[30]!==u||h[31]!==p||h[32]!==i?(m=(0,v.jsxs)(I.so,{gap:3,justify:"center",align:"center",children:[i,u,p]}),h[30]=u,h[31]=p,h[32]=i,h[33]=m):m=h[33],m}),Bt=(0,eI.I4)(I.BJ).withConfig({displayName:"ReleasesList",componentId:"sc-1kwebcg-0"})`max-width:300px;max-height:200px;overflow-y:auto;`,Bn=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(31),{releases:c,bundleId:u,onCreateRelease:p,onCopyToDrafts:m,onCopyToDraftsNavigate:h,onCreateVersion:f,disabled:g,isReleasesEnabled:y,hasCreatePermission:C,hasCopyToDraftOption:x,documentId:b,documentType:w}=e,{t:_}=as();d[0]===Symbol.for("react.memo_cache_sentinel")?(t={placement:"right-start"},d[0]=t):t=d[0],d[1]!==_?(n=_("release.action.copy-to"),d[1]=_,d[2]=n):n=d[2];let k=!0===C;return d[3]!==_?(i=_("release.action.permission.error"),d[3]=_,d[4]=i):i=d[4],d[5]!==k||d[6]!==i?(r={disabled:k,content:i},d[5]=k,d[6]=i,d[7]=r):r=d[7],d[8]!==u||d[9]!==b||d[10]!==w||d[11]!==x||d[12]!==m||d[13]!==h||d[14]!==f||d[15]!==c?(a=(x||c.length>0)&&(0,v.jsxs)(Bt,{space:1,children:[x&&(0,v.jsx)(F6,{documentType:w,documentId:b,fromRelease:u,onClick:m,onNavigate:h}),c.map(e=>(0,v.jsx)(tL.Dr,{as:"a",onClick:()=>f(e._id),renderMenuItem:()=>(0,v.jsx)(Be,{release:e})},e._id))]},u),d[8]=u,d[9]=b,d[10]=w,d[11]=x,d[12]=m,d[13]=h,d[14]=f,d[15]=c,d[16]=a):a=d[16],d[17]!==x||d[18]!==y||d[19]!==c?(o=y&&(x||c.length>0)&&(0,v.jsx)(I.Nj,{}),d[17]=x,d[18]=y,d[19]=c,d[20]=o):o=d[20],d[21]!==y||d[22]!==p?(l=y&&(0,v.jsx)(F9,{onCreateRelease:p}),d[21]=y,d[22]=p,d[23]=l):l=d[23],d[24]!==g||d[25]!==n||d[26]!==r||d[27]!==a||d[28]!==o||d[29]!==l?(s=(0,v.jsxs)(io.r,{icon:eT.TdU,popover:t,text:n,disabled:g,tooltipProps:r,"data-testid":"copy-version-to-release-button-group",children:[a,o,l]}),d[24]=g,d[25]=n,d[26]=r,d[27]=a,d[28]=o,d[29]=l,d[30]=s):s=d[30],s}),Bi=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s=(0,j.c)(40),{releases:d,releasesLoading:c,bundleId:u,onDiscard:p,onCreateRelease:m,onCopyToDrafts:h,onCopyToDraftsNavigate:f,onCreateVersion:g,disabled:y,locked:C,release:x,isGoingToUnpublish:b,hasCreatePermission:w,hasDiscardPermission:_,isPublished:k,documentId:S,documentType:T}=e,{t:E}=as(),$=F4(T,u),A=y||!w||void 0!==b&&b;
1266s[0]!==d?(t=d.filter(Br),s[0]=d,s[1]=t):t=s[1];let D=t,z=!!cY().releases?.enabled,P=z||$;return s[2]!==u||s[3]!==y||s[4]!==x||s[5]!==E?(n=x&&(0,v.jsx)(nU.RZ,{intent:Ni,params:{id:u},rel:"noopener noreferrer",style:{textDecoration:"none"},disabled:y,children:(0,v.jsx)(tL.Dr,{icon:eT.CTc,text:E("release.action.view-release")})}),s[2]=u,s[3]=y,s[4]=x,s[5]=E,s[6]=n):n=s[6],s[7]!==c?(i=c&&(0,v.jsx)(I.y$,{}),s[7]=c,s[8]=i):i=s[8],s[9]!==u||s[10]!==D||s[11]!==S||s[12]!==T||s[13]!==$||s[14]!==w||s[15]!==A||s[16]!==z||s[17]!==h||s[18]!==f||s[19]!==m||s[20]!==g||s[21]!==P?(r=P&&(0,v.jsx)(Bn,{releases:D,hasCopyToDraftOption:$,isReleasesEnabled:z,bundleId:u,onCreateRelease:m,onCopyToDrafts:h,onCopyToDraftsNavigate:f,onCreateVersion:g,disabled:A,hasCreatePermission:w,documentId:S,documentType:T}),s[9]=u,s[10]=D,s[11]=S,s[12]=T,s[13]=$,s[14]=w,s[15]=A,s[16]=z,s[17]=h,s[18]=f,s[19]=m,s[20]=g,s[21]=P,s[22]=r):r=s[22],s[23]!==k||s[24]!==x||s[25]!==P?(a=!k&&(P||x)&&(0,v.jsx)(I.Nj,{}),s[23]=k,s[24]=x,s[25]=P,s[26]=a):a=s[26],s[27]!==y||s[28]!==_||s[29]!==k||s[30]!==C||s[31]!==p||s[32]!==E?(o=!k&&(0,v.jsx)(tL.Dr,{icon:eT.ucK,onClick:p,text:E("release.action.discard-version"),tone:"critical",disabled:y||C||!_,tooltipProps:{disabled:_,content:E("release.action.permission.error")}}),s[27]=y,s[28]=_,s[29]=k,s[30]=C,s[31]=p,s[32]=E,s[33]=o):o=s[33],s[34]!==n||s[35]!==i||s[36]!==r||s[37]!==a||s[38]!==o?(l=(0,v.jsxs)(I.W1,{children:[n,i,r,a,o]}),s[34]=n,s[35]=i,s[36]=r,s[37]=a,s[38]=o,s[39]=l):l=s[39],l});function Br(e){return!uT(e)}let Ba=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(36),{releases:m,bundleId:h,onCreateRelease:f,onCopyToDrafts:g,onCopyToDraftsNavigate:y,onCreateVersion:C,disabled:x,isGoingToUnpublish:b,hasCreatePermission:w,scheduledDraftMenuActions:_,documentId:k,documentType:S,release:T}=e,{t:E}=as(),$=F4(S,h),A=x||!w||void 0!==b&&b;p[0]!==m?(t=m.filter(Bo),p[0]=m,p[1]=t):t=p[1];let D=t,z=!!cY().releases?.enabled,P=z&&D.length>0,{actions:R}=_;return p[2]!==R.publishNow?(n=(0,v.jsx)(tL.Dr,{...R.publishNow}),p[2]=R.publishNow,p[3]=n):n=p[3],p[4]!==R.editSchedule||p[5]!==T?(i=!rQ(T)&&(0,v.jsx)(tL.Dr,{...R.editSchedule}),p[4]=R.editSchedule,p[5]=T,p[6]=i):i=p[6],p[7]===Symbol.for("react.memo_cache_sentinel")?(r={view:"drafts"},p[7]=r):r=p[7],p[8]===Symbol.for("react.memo_cache_sentinel")?(a={textDecoration:"none"},p[8]=a):a=p[8],p[9]!==E?(o=E("release.action.view-scheduled-drafts"),p[9]=E,p[10]=o):o=p[10],p[11]!==o?(l=(0,v.jsx)(nU.RZ,{intent:F1,params:r,rel:"noopener noreferrer",style:a,children:(0,v.jsx)(tL.Dr,{icon:eT.CTc,text:o})}),p[11]=o,p[12]=l):l=p[12],p[13]===Symbol.for("react.memo_cache_sentinel")?(s=(0,v.jsx)(I.Nj,{}),p[13]=s):s=p[13],p[14]!==h||p[15]!==D||p[16]!==k||p[17]!==S||p[18]!==$||p[19]!==w||p[20]!==A||p[21]!==z||p[22]!==g||p[23]!==y||p[24]!==f||p[25]!==C||p[26]!==P?(d=(P||$)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Bn,{releases:D,bundleId:h,hasCopyToDraftOption:$,isReleasesEnabled:z,onCreateRelease:f,onCopyToDrafts:g,onCopyToDraftsNavigate:y,onCreateVersion:C,disabled:A,hasCreatePermission:w,documentId:k,documentType:S}),(0,v.jsx)(I.Nj,{})]}),p[14]=h,p[15]=D,p[16]=k,p[17]=S,p[18]=$,p[19]=w,p[20]=A,p[21]=z,p[22]=g,p[23]=y,p[24]=f,p[25]=C,p[26]=P,p[27]=d):d=p[27],p[28]!==R.deleteSchedule?(c=(0,v.jsx)(tL.Dr,{...R.deleteSchedule}),p[28]=R.deleteSchedule,p[29]=c):c=p[29],p[30]!==c||p[31]!==n||p[32]!==i||p[33]!==l||p[34]!==d?(u=(0,v.jsxs)(I.W1,{children:[n,i,l,s,d,c]}),p[30]=c,p[31]=n,p[32]=i,p[33]=l,p[34]=d,p[35]=u):u=p[35],u});function Bo(e){return!uT(e)}let Bl=(0,_.memo)(function(e){let t,n,i,r,a,o,l=(0,j.c)(47),{documentId:s,releases:d,releasesLoading:c,fromRelease:u,isVersion:p,onDiscard:m,onCreateRelease:h,onCopyToDrafts:f,onCopyToDraftsNavigate:g,onCreateVersion:y,disabled:C,locked:x,type:b,isGoingToUnpublish:w,release:k,isScheduledDraft:S,scheduledDraftMenuActions:I}=e,T=void 0!==w&&w;l[0]!==s||l[1]!==p?(t=(0,tG._4)(s)&&!p,l[0]=s,l[1]=p,l[2]=t):t=l[2];let E=t,{checkWithPermissionGuard:$}=NU(),{createRelease:A}=RI(),[D,z]=(0,_.useState)(null);l[3]!==s?(n=(0,tG.IM)(s),l[3]=s,l[4]=n):n=l[4];let P=p?u:void 0,R="draft"===u?"discardDraft":"discardVersion";
1266l[5]!==n||l[6]!==P||l[7]!==R||l[8]!==b?(i={id:n,type:b,version:P,permission:R},l[5]=n,l[6]=P,l[7]=R,l[8]=b,l[9]=i):i=l[9];let[N,O]=dd(i),V=!O&&N?.granted,M=(0,_.useRef)(!1);if(l[10]!==$||l[11]!==A?(r=()=>(M.current=!0,$(A,uE()).then(e=>{M.current&&z(e)}),()=>{M.current=!1}),a=[$,A],l[10]=$,l[11]=A,l[12]=r,l[13]=a):(r=l[12],a=l[13]),(0,_.useEffect)(r,a),S&&p&&k&&I){let e;return l[14]!==C||l[15]!==s||l[16]!==u||l[17]!==D||l[18]!==T||l[19]!==f||l[20]!==g||l[21]!==h||l[22]!==y||l[23]!==k||l[24]!==d||l[25]!==I||l[26]!==b?(e=(0,v.jsx)(Ba,{releases:d,bundleId:u,release:k,onCreateRelease:h,onCopyToDrafts:f,onCopyToDraftsNavigate:g,onCreateVersion:y,disabled:C,isGoingToUnpublish:T,hasCreatePermission:D,scheduledDraftMenuActions:I,documentId:s,documentType:b}),l[14]=C,l[15]=s,l[16]=u,l[17]=D,l[18]=T,l[19]=f,l[20]=g,l[21]=h,l[22]=y,l[23]=k,l[24]=d,l[25]=I,l[26]=b,l[27]=e):e=l[27],e}let L=V||!1;return l[28]!==C||l[29]!==s||l[30]!==u||l[31]!==D||l[32]!==T||l[33]!==E||l[34]!==p||l[35]!==x||l[36]!==f||l[37]!==g||l[38]!==h||l[39]!==y||l[40]!==m||l[41]!==k||l[42]!==d||l[43]!==c||l[44]!==L||l[45]!==b?(o=(0,v.jsx)(Bi,{releases:d,releasesLoading:c,bundleId:u,release:k,isVersion:p,onDiscard:m,onCreateRelease:h,onCopyToDrafts:f,onCopyToDraftsNavigate:g,onCreateVersion:y,disabled:C,locked:x,isGoingToUnpublish:T,hasCreatePermission:D,hasDiscardPermission:L,isPublished:E,documentId:s,documentType:b}),l[28]=C,l[29]=s,l[30]=u,l[31]=D,l[32]=T,l[33]=E,l[34]=p,l[35]=x,l[36]=f,l[37]=g,l[38]=h,l[39]=y,l[40]=m,l[41]=k,l[42]=d,l[43]=c,l[44]=L,l[45]=b,l[46]=o):o=l[46],o}),Bs=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(30),{documentId:p,fromRelease:m,onClose:h,onNavigate:f}=e,{t:g}=as(RE),[y,C]=(0,_.useTransition)();u[0]!==p||u[1]!==m||u[2]!==f?(t={documentId:p,fromRelease:m,onNavigate:f},u[0]=p,u[1]=m,u[2]=f,u[3]=t):t=u[3];let{handleCopyToDrafts:x}=Rd(t);u[4]!==x||u[5]!==h?(n=()=>C(async()=>{await x(),h()}),u[4]=x,u[5]=h,u[6]=n):n=u[6];let b=n;return u[7]!==g?(i=g("copy-to-draft-dialog.title"),u[7]=g,u[8]=i):i=u[8],u[9]!==g?(r=g("copy-to-draft-dialog.confirm-button"),u[9]=g,u[10]=r):r=u[10],u[11]!==b||u[12]!==y||u[13]!==r?(a={text:r,onClick:b,loading:y,disabled:y},u[11]=b,u[12]=y,u[13]=r,u[14]=a):a=u[14],u[15]!==y||u[16]!==h?(o={onClick:h,disabled:y},u[15]=y,u[16]=h,u[17]=o):o=u[17],u[18]!==a||u[19]!==o?(l={confirmButton:a,cancelButton:o},u[18]=a,u[19]=o,u[20]=l):l=u[20],u[21]!==g?(s=g("copy-to-draft-dialog.description"),u[21]=g,u[22]=s):s=u[22],u[23]!==s?(d=(0,v.jsx)(I.EY,{size:1,children:s}),u[23]=s,u[24]=d):d=u[24],u[25]!==h||u[26]!==i||u[27]!==l||u[28]!==d?(c=(0,v.jsx)(tL.lG,{id:"copy-to-drafts-dialog",header:i,onClose:h,footer:l,children:d}),u[25]=h,u[26]=i,u[27]=l,u[28]=d,u[29]=c):c=u[29],c});function Bd(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$,A,D=(0,j.c)(79),{onClose:z,documentId:P,documentType:R,tone:N,title:O,onCreateVersion:V}=e,{t:M}=as();as(RE);let L=(0,T.dj)(),F=LL(),{releasePromise:B}=LF(),Y=R8();D[0]!==R||D[1]!==Y?(t=Y.get(R),D[0]=R,D[1]=Y,D[2]=t):t=D[2];let H=t,[U]=(0,_.useState)(uw);D[3]!==U?(n=()=>({_id:U,metadata:{title:"",description:"",releaseType:ux}}),D[3]=U,D[4]=n):n=D[4];let[Z,q]=(0,_.useState)(n),[W,J]=(0,_.useState)(!1),[,K]=(0,_.useState)(0),G=(0,tK.Jr)(),{createRelease:X}=RI(),{clearReleaseDataFromStorage:Q}=RR();D[5]!==M||D[6]!==O?(i=O||M("release.placeholder-untitled-release"),D[5]=M,D[6]=O,D[7]=i):i=D[7];let ee=i;D[8]!==Z?(r=N1(Z),D[8]=Z,D[9]=r):r=D[9];let et=r;D[10]!==Z?(a=LB(Z),D[10]=Z,D[11]=a):a=D[11];let en=a;D[12]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{q(e)},D[12]=o):o=D[12];let ei=o;D[13]!==U||D[14]!==V?(l=()=>{V(U)},D[13]=U,D[14]=V,D[15]=l):l=D[15];let er=l;D[16]!==Q||D[17]!==X||D[18]!==F||D[19]!==er||D[20]!==z||D[21]!==Z||D[22]!==B||D[23]!==K||D[24]!==M||D[25]!==G||D[26]!==L?(s=async()=>{if(N1(Z))return void K(Bc);if(J(!0),!await B)return void J(!1);try{let e=F(Z);await X(e),er(),G.log(aq,{origin:"document-panel"})}catch(e){RS(e)?z():(console.error(e),L.push({closable:!0,status:"error",title:M("release.toast.create-release-error.title"),description:e.message}))}J(!1),Q()},D[16]=Q,D[17]=X,D[18]=F,D[19]=er,D[20]=z,D[21]=Z,D[22]=B,D[23]=K,D[24]=M,D[25]=G,D[26]=L,D[27]=s):s=D[27];let ea=s;D[28]!==Q||D[29]!==z?(d=()=>{Q(),z()},D[28]=Q,D[29]=z,D[30]=d):d=D[30];let eo=d;D[31]!==M?(c=M("release.dialog.copy-to-release.title"),D[31]=M,D[32]=c):c=D[32],D[33]===Symbol.for("react.memo_cache_sentinel")?(u={borderBottom:"1px solid var(--card-border-color)"},D[33]=u):u=D[33],D[34]!==P||D[35]!==H?(p=H?(0,v.jsx)(Pz,{value:{_id:P},schemaType:H}):(0,v.jsx)(ry,{}),D[34]=P,D[35]=H,D[36]=p):p=D[36],D[37]===Symbol.for("react.memo_cache_sentinel")?(m={borderRadius:999,border:"1px solid var(--card-border-color)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},D[37]=m):m=D[37],D[38]!==N?(h=(0,v.jsx)(RL,{padding:1,tone:N}),D[38]=N,D[39]=h):h=D[39],D[40]!==ee?(f=(0,v.jsx)(I.EY,{size:1,title:ee,children:ee}),D[40]=ee,D[41]=f):f=D[41],D[42]!==h||D[43]!==f?(g=(0,v.jsxs)(I.so,{align:"center",gap:2,padding:1,paddingRight:2,style:m,children:[h,f]}),D[42]=h,D[43]=f,D[44]=g):g=D[44],D[45]!==p||D[46]!==g?(y=(0,v.jsx)(I.az,{paddingX:2,marginBottom:2,style:u,children:(0,v.jsxs)(I.so,{align:"center",padding:4,paddingTop:1,justify:"space-between",children:[p,g]})}),D[45]=p,D[46]=g,D[47]=y):y=D[47],D[48]!==et||D[49]!==M?(C=et&&(0,v.jsx)(I.Zp,{padding:3,marginBottom:3,radius:2,shadow:1,tone:"critical",children:(0,v.jsx)(I.EY,{size:1,children:M("release.schedule-dialog.publish-date-in-past-warning")})}),D[48]=et,D[49]=M,D[50]=C):C=D[50],D[51]!==Z?(x=(0,v.jsx)(RW,{onChange:ei,value:Z}),D[51]=Z,D[52]=x):x=D[52],D[53]!==M?(b=M("common.dialog.cancel-button.text"),D[53]=M,D[54]=b):b=D[54],D[55]!==W||D[56]!==z||D[57]!==b?(w=(0,v.jsx)(tL.$n,{disabled:W,text:b,"data-testid":"cancel-button",onClick:z,mode:"bleed"}),D[55]=W,D[56]=z,D[57]=b,D[58]=w):w=D[58];let el=W||et||en;return D[59]!==M?(k=M("release.action.add-to-new-release"),D[59]=M,D[60]=k):k=D[60],D[61]!==ea||D[62]!==W||D[63]!==el||D[64]!==k?(S=(0,v.jsx)(tL.$n,{disabled:el,type:"submit",onClick:ea,text:k,loading:W,tone:"primary","data-testid":"confirm-button"}),D[61]=ea,D[62]=W,D[63]=el,D[64]=k,D[65]=S):S=D[65],D[66]!==w||D[67]!==S?(E=(0,v.jsxs)(I.so,{width:"full",gap:3,justify:"flex-end",paddingTop:3,align:"center",children:[w,S]}),D[66]=w,D[67]=S,D[68]=E):E=D[68],D[69]!==C||D[70]!==x||D[71]!==E?($=(0,v.jsxs)(I.az,{paddingX:5,paddingY:3,children:[C,x,E]}),D[69]=C,D[70]=x,D[71]=E,D[72]=$):$=D[72],D[73]!==eo||D[74]!==z||D[75]!==y||D[76]!==$||D[77]!==c?(A=(0,v.jsxs)(tL.lG,{id:"create-release-dialog",header:c,onClickOutside:z,onClose:eo,padding:!1,width:1,children:[y,$]}),D[73]=eo,D[74]=z,D[75]=y,D[76]=$,D[77]=c,D[78]=A):A=D[78],A}function Bc(e){return e+1}let Bu={open:!1},Bp=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$,A,D,z,P,R=(0,j.c)(108),{disabled:N,selected:O,tooltipContent:V,onClick:M,text:L,contextMenuPortal:F,tone:B,locked:Y,onCopyToDraftsNavigate:H,contextValues:U}=e,Z=void 0===F||F,q=void 0!==Y&&Y,{documentId:W,releases:J,releasesLoading:K,documentType:G,bundleId:X,isVersion:Q,disabled:ee,isGoingToUnpublish:et,release:en}=U,ei=void 0!==ee&&ee,er=void 0!==et&&et,ea=F3(),eo=((e,t)=>{let n,i,r,a=(0,j.c)(13);e:{let i;if("published"===t){let t;a[0]!==e?(t=(0,tG.IM)(e),a[0]=e,a[1]=t):t=a[1],n=t;break e}if("draft"===t){let t;a[2]!==e?(t=(0,tG.T4)(e),a[2]=e,a[3]=t):t=a[3],n=t;break e}a[4]!==e||a[5]!==t?(i=(0,tG.ct)(e,t),a[4]=e,a[5]=t,a[6]=i):i=a[6],n=i}let o=n,l=RX();a[7]!==l||a[8]!==e?(i=l.getCompanionDocs(e),a[7]=l,a[8]=e,a[9]=i):i=a[9];let s=(0,tF.J)(i);return a[10]!==s?.data||a[11]!==o?(r=s?.data.some(e=>e?.studioDocumentId===o),a[10]=s?.data,a[11]=o,a[12]=r):r=a[12],r})(W,X);R[0]===Symbol.for("react.memo_cache_sentinel")?(t={open:!1},R[0]=t):t=R[0];let[el,es]=(0,_.useState)(t),ed=(0,_.useRef)(null),[ec,eu]=(0,_.useState)("idle"),ep=(0,_.useRef)(null);R[1]!==O?(n=()=>{O&&ep.current?.scrollIntoView({inline:"center"})},i=[O],R[1]=O,R[2]=n,R[3]=i):(n=R[2],i=R[3]),(0,_.useEffect)(n,i),R[4]!==X||R[5]!==W||R[6]!==Q?(r=Q?(0,tG.ct)(W,X):W,R[4]=X,R[5]=W,R[6]=Q,R[7]=r):r=R[7];let em=r,{createVersion:eh}=RT(),ef=(0,T.dj)(),{t:eg}=as(),{onSetScheduledDraftPerspective:ey}=FG();R[8]===Symbol.for("react.memo_cache_sentinel")?(a=()=>es(Bu),R[8]=a):a=R[8];
1266let eC=a,[ex,eb]=(0,_.useState)(null);R[9]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{e.preventDefault();let t=e.currentTarget?.getBoundingClientRect();es({open:!0,translate:{x:e.clientX-t.left,y:t.top-e.clientY}})},R[9]=o):o=R[9];let ev=o;R[10]===Symbol.for("react.memo_cache_sentinel")?(l=()=>[ed.current],R[10]=l):l=R[10],(0,I.PR)(eC,l),R[11]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{"Escape"===e.key&&eC()},R[11]=s):s=R[11],(0,I.Pm)(s),R[12]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{eu("discard-version")},R[12]=d):d=R[12];let ej=d;R[13]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{eu("create-release")},R[13]=c):c=R[13];let ew=c;R[14]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{eu("copy-to-drafts")},R[14]=u):u=R[14];let e_=u;R[15]!==eh||R[16]!==em||R[17]!==eg||R[18]!==ef?(p=async e=>{try{await eh(cN(e),em)}catch(e){ef.push({closable:!0,status:"error",title:eg("release.action.create-version.failure"),description:e.message})}eC()},R[15]=eh,R[16]=em,R[17]=eg,R[18]=ef,R[19]=p):p=R[19];let ek=p,eS=N||!ea?void 0:ev;R[20]!==Q||R[21]!==en?(m=en&&Q&&rX(en),R[20]=Q,R[21]=en,R[22]=m):m=R[22];let eI=m;R[23]!==ey||R[24]!==en?(h=()=>{en&&ey(cN(en._id))},R[23]=ey,R[24]=en,R[25]=h):h=R[25];let eE=h;R[26]!==ei||R[27]!==W||R[28]!==G||R[29]!==eE||R[30]!==en?(f={release:en,documentType:G,documentId:W,disabled:ei,onActionComplete:eE},R[26]=ei,R[27]=W,R[28]=G,R[29]=eE,R[30]=en,R[31]=f):f=R[31];let e$=Fb(f),eA=rQ(en);e:{if(eo){let e;R[32]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eT.v5M,{}),R[32]=e):e=R[32],g=e;break e}if(eA){let e;R[33]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eT.SwT,{}),R[33]=e):e=R[33],g=e;break e}if(q){let e;R[34]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eT.XAi,{}),R[34]=e):e=R[34],g=e;break e}g=void 0}let eD=g;R[35]===Symbol.for("react.memo_cache_sentinel")?(y=[],R[35]=y):y=R[35],R[36]!==L?(C=L.replaceAll(" ","-"),R[36]=L,R[37]=C):C=R[37];let ez=`document-header-${C}-chip`,eP=N?"ghost":"bleed";R[38]!==B?(x=(0,v.jsx)(RM,{tone:B}),R[38]=B,R[39]=x):x=R[39],R[40]!==eS||R[41]!==N||R[42]!==M||R[43]!==eD||R[44]!==O||R[45]!==ez||R[46]!==eP||R[47]!==x||R[48]!==L||R[49]!==B?(b=(0,v.jsx)("span",{ref:ep,children:(0,v.jsx)(a7,{"data-testid":ez,ref:eb,disabled:N,mode:eP,onClick:M,selected:O,tone:B,onContextMenu:eS,icon:x,iconRight:eD,text:L})}),R[40]=eS,R[41]=N,R[42]=M,R[43]=eD,R[44]=O,R[45]=ez,R[46]=eP,R[47]=x,R[48]=L,R[49]=B,R[50]=b):b=R[50],R[51]!==b||R[52]!==V?(w=(0,v.jsx)(tL.m_,{content:V,fallbackPlacements:y,portal:!0,placement:"bottom",children:b}),R[51]=b,R[52]=V,R[53]=w):w=R[53],R[54]!==X||R[55]!==ei||R[56]!==W||R[57]!==G||R[58]!==ek||R[59]!==er||R[60]!==eI||R[61]!==Q||R[62]!==q||R[63]!==H||R[64]!==en||R[65]!==J||R[66]!==K||R[67]!==e$?(k=(0,v.jsx)(Bl,{documentId:W,releases:J,releasesLoading:K,fromRelease:X,isVersion:Q,onDiscard:ej,onCreateRelease:ew,onCopyToDrafts:e_,onCopyToDraftsNavigate:H,disabled:ei,onCreateVersion:ek,locked:q,type:G,isGoingToUnpublish:er,release:en,isScheduledDraft:eI,scheduledDraftMenuActions:e$}),R[54]=X,R[55]=ei,R[56]=W,R[57]=G,R[58]=ek,R[59]=er,R[60]=eI,R[61]=Q,R[62]=q,R[63]=H,R[64]=en,R[65]=J,R[66]=K,R[67]=e$,R[68]=k):k=R[68],R[69]===Symbol.for("react.memo_cache_sentinel")?(S=[],R[69]=S):S=R[69],R[70]!==el.open||R[71]!==el.translate?(E=el.open?{transform:`translate(${el.translate.x}px, ${el.translate.y}px)`}:void 0,R[70]=el.open,R[71]=el.translate,R[72]=E):E=R[72],R[73]!==el.open||R[74]!==Z||R[75]!==ex||R[76]!==k||R[77]!==E?($=(0,v.jsx)(tL.AM,{animate:!1,content:k,fallbackPlacements:S,open:el.open,portal:Z,placement:"bottom-start",ref:ed,referenceElement:ex,zOffset:10,style:E}),R[73]=el.open,R[74]=Z,R[75]=ex,R[76]=k,R[77]=E,R[78]=$):$=R[78],R[79]!==X||R[80]!==ec||R[81]!==W||R[82]!==G||R[83]!==er||R[84]!==Q||R[85]!==L?(A="discard-version"===ec&&(0,v.jsx)(R$,{onClose:()=>eu("idle"),documentId:Q?(0,tG.ct)(W,X):W,fromPerspective:L,documentType:G,isGoingToUnpublish:er}),R[79]=X,R[80]=ec,R[81]=W,R[82]=G,R[83]=er,R[84]=Q,R[85]=L,R[86]=A):A=R[86],R[87]!==X||R[88]!==ec||R[89]!==W||R[90]!==G||R[91]!==ek||R[92]!==Q||R[93]!==L||R[94]!==B?(D="create-release"===ec&&(0,v.jsx)(Bd,{onClose:()=>eu("idle"),onCreateVersion:ek,documentId:Q?(0,tG.ct)(W,X):W,documentType:G,tone:B,title:L}),R[87]=X,R[88]=ec,R[89]=W,R[90]=G,R[91]=ek,R[92]=Q,R[93]=L,R[94]=B,R[95]=D):D=R[95],R[96]!==X||R[97]!==ec||R[98]!==W||R[99]!==H?(z="copy-to-drafts"===ec&&(0,v.jsx)(Bs,{onClose:()=>eu("idle"),documentId:W,fromRelease:X,onNavigate:H}),R[96]=X,R[97]=ec,R[98]=W,R[99]=H,R[100]=z):z=R[100];let eR=eI&&e$.dialogs;return R[101]!==w||R[102]!==$||R[103]!==A||R[104]!==D||R[105]!==z||R[106]!==eR?(P=(0,v.jsxs)(v.Fragment,{children:[w,$,A,D,z,eR]}),R[101]=w,R[102]=$,R[103]=A,R[104]=D,R[105]=z,R[106]=eR,R[107]=P):P=R[107],P}),Bm={portal:!0},Bh=eI.I4.div.withConfig({displayName:"AvatarStackBox",componentId:"sc-q68gz0-0"})(e=>{let{space:t}=(0,nN.JW)(e.theme);return(0,eI.AH)` 1267 margin: ${0-t[1]}px; 1268 `});function Bf(e){let t,n,i,r,a,o,l=(0,j.c)(21),{presence:s}=e,{t:d}=as(RE),{data:c}=gU();l[0]!==s?(t=Array.from(new Set(s.map(By))),l[0]=s,l[1]=t):t=l[1],l[2]!==s||l[3]!==t?(n=t.map(e=>s.find(t=>t.user.id===e)).filter(r$),l[2]=s,l[3]=t,l[4]=n):n=l[4];let u=n;e:{if(1===u.length){let e,t=u[0],n=t?.documentId;if(l[5]!==n||l[6]!==t.user.displayName||l[7]!==c||l[8]!==d){let i=(n?c.find(e=>cN(e._id)===(0,tG._S)(n)):void 0)?.metadata?.title;e=d("presence.tooltip.one",{displayName:t.user.displayName,releaseTitle:i||d("release-placeholder.title")}),l[5]=n,l[6]=t.user.displayName,l[7]=c,l[8]=d,l[9]=e}else e=l[9];i=e;break e}if(u.length>1){let e;l[10]!==d||l[11]!==u.length?(e=d("presence.tooltip.other",{count:u.length}),l[10]=d,l[11]=u.length,l[12]=e):e=l[12],i=e;break e}i=void 0}let p=i;return l[13]!==u?(r=u.map(Bg),l[13]=u,l[14]=r):r=l[14],l[15]!==r||l[16]!==p?(a=(0,v.jsx)(Bh,{children:(0,v.jsx)(I.GE,{maxLength:2,"aria-label":p,size:0,children:r})}),l[15]=r,l[16]=p,l[17]=a):a=l[17],l[18]!==a||l[19]!==p?(o=(0,v.jsx)(tL.m_,{content:p,...Bm,children:a}),l[18]=a,l[19]=p,l[20]=o):o=l[20],o}function Bg(e){return(0,v.jsx)(ua,{size:0,user:e.user},e.user.id)}function By(e){return e.user.id}let BC=[0,0,1,0];function Bx(e){return e.stopPropagation()}function Bb(e){return e.stopPropagation()}function Bv(e){let t,n,i,r=(0,j.c)(21),{children:a,header:o,onClose:l,type:s,width:d}=e,[c,u]=(0,_.useState)(null),p=(0,_.useRef)(null);r[0]!==a?(t=(0,v.jsx)(wJ,{margins:BC,children:(0,v.jsx)(I.az,{ref:p,children:a})}),r[0]=a,r[1]=t):t=r[1];let m=t;if("dialog"===s){let t,n,i=e.id||"";return r[2]!==m||r[3]!==o||r[4]!==l||r[5]!==e.autofocus||r[6]!==i||r[7]!==d?(t=(0,v.jsx)(tL.lG,{__unstable_autoFocus:e.autofocus,contentRef:u,"data-testid":"edit-portal-dialog",header:o,id:i,onClickOutside:l,onClose:l,onDragEnter:Bx,onDrop:Bb,width:d,children:m}),r[2]=m,r[3]=o,r[4]=l,r[5]=e.autofocus,r[6]=i,r[7]=d,r[8]=t):t=r[8],r[9]!==c||r[10]!==t?(n=(0,v.jsx)(wr,{scrollElement:c,containerElement:p,children:t}),r[9]=c,r[10]=t,r[11]=n):n=r[11],n}return r[12]!==m||r[13]!==c?(n=(0,v.jsx)(wr,{scrollElement:c,containerElement:p,children:m}),r[12]=m,r[13]=c,r[14]=n):n=r[14],r[15]!==o||r[16]!==l||r[17]!==e.legacy_referenceElement||r[18]!==n||r[19]!==d?(i=(0,v.jsx)(esT,{header:o,onClose:l,referenceElement:e.legacy_referenceElement,width:d,containerRef:u,children:n}),r[15]=o,r[16]=l,r[17]=e.legacy_referenceElement,r[18]=n,r[19]=d,r[20]=i):i=r[20],i}let Bj=()=>{};function Bw(e,t,n){if(!e)return;let i=e;return t.forEach((e,r)=>{let a=t.slice(0,r+1);if((0,eD.tA)(e)||(0,eD.wr)(e)){let e=wl(i,oi(n,a));if(e){i=e;return}}let o=function e(t,n){if(!n)return;let i=(0,w.sH)(n),r=i[0];if(r&&(0,eD.$d)(t)){let n=t?.fields?.find(e=>e.name===r);if(n){let t=(0,w.dI)(i.slice(1));return t?e(n.type,t):n}}}(i,(0,w.dI)(a.length>1?a.slice(-1):a));o?.type&&(i=o.type)}),i}function B_(e,t,n,i){let r,a,o,l,s=(0,j.c)(16);s[0]!==i||s[1]!==e?(r=function(e,t){if(!t||"markDefs"!==e[e.length-1])return;let n=t[e.length];if((0,eD.tA)(n))return{blockPath:e.slice(0,-1),markDefKey:n._key}}(e,i),s[0]=i,s[1]=e,s[2]=r):r=s[2];let d=r,c=gI(d?.blockPath??e);s[3]!==t||s[4]!==n||s[5]!==e?(a=Bw(t,e,n),s[3]=t,s[4]=n,s[5]=e,s[6]=a):a=s[6];let u=a;s[7]!==u||s[8]!==c?(o={schemaType:u,value:c},s[7]=u,s[8]=c,s[9]=o):o=s[9];let{value:p}=v6(o);if(d){let e;s[10]!==d.markDefKey||s[11]!==c?(e=function(e,t){if(!(0,eD.L4)(e))return;let n=e.children.filter(e=>(0,eD.bn)(e)&&e.marks?.includes(t)).map(e=>(0,eD.bn)(e)?e.text:"");return n.length>0?n.join(""):void 0}(c,d.markDefKey),s[10]=d.markDefKey,s[11]=c,s[12]=e):e=s[12];let t=e;if(t)return t}return s[13]!==p||s[14]!==u?(l=(0,eD.zR)(u)?u.title:p.title,s[13]=p,s[14]=u,s[15]=l):l=s[15],l}function Bk(e,t,n){let i,r,a,o=(0,j.c)(9),l=(0,eD.tA)(e[e.length-1]),s=e.findLastIndex(eD.tA);e:{let t;if(s<0){let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],o[0]=e):e=o[
12680],i=e;break e}o[1]!==e||o[2]!==s?(t=e.slice(0,s),o[1]=e,o[2]=s,o[3]=t):t=o[3],i=t}let d=i,c=gI(d),u=Bw(t,d,n);t:{if(d.length<3){r=!1;break t}r=function(e){let{arraySchemaType:t,fieldPath:n}=e,i=n[n.length-1];return(0,eD.GX)(t)&&"children"===i}({arraySchemaType:Bw(t,d.slice(0,-2),n),fieldPath:d})}let p=r,m=Bw(t,e,n);n:{let t,n;if(!l||s<0){a=null;break n}let i=(0,eD.$d)(m),r=u&&(0,eD.GX)(u);if(i&&r||i&&p){a=null;break n}let d=e[s];if(!(0,eD.tA)(d)||!Array.isArray(c)){a=null;break n}o[4]!==d?(t=e=>e._key===d._key,o[4]=d,o[5]=t):t=o[5];let h=c.findIndex(t);if(h<0){a=null;break n}let f=h+1;o[6]!==c.length||o[7]!==f?(n={index:f,count:c.length},o[6]=c.length,o[7]=f,o[8]=n):n=o[8],a=n}return a}let BS={flexWrap:"nowrap",overflow:"hidden",minWidth:0,width:"100%"},BI={maxHeight:"1rem",overflow:"hidden",minWidth:"2ch"},BT={overflow:"hidden",padding:"8px 0"},BE=(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(5),{children:a}=e;return r[0]!==a?(n=(0,v.jsx)(I.EY,{size:1,muted:!0,children:a}),r[0]=a,r[1]=n):n=r[1],r[2]!==t||r[3]!==n?(i=(0,v.jsx)(I.az,{ref:t,children:n}),r[2]=t,r[3]=n,r[4]=i):i=r[4],i});function B$(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(25),{itemPath:p,documentSchemaType:m,documentValue:h,currentPath:f,isSelected:g,onPathSelect:y}=e,C=void 0!==g&&g,x=B_(p,m,h,f),b=Bk(p,m,h),w=(0,tK.Jr)();u[0]!==p||u[1]!==y||u[2]!==w?(t=()=>{y(p),w.log(yK,{path:on(p)})},u[0]=p,u[1]=y,u[2]=w,u[3]=t):t=u[3];let _=t;u[4]===Symbol.for("react.memo_cache_sentinel")?(n={minWidth:0,maxWidth:"250px"},u[4]=n):n=u[4];let k=!!C&&"location";u[5]!==x?(i=x?.toLowerCase().replace(/ /g,"-"),u[5]=x,u[6]=i):i=u[6];let S=`breadcrumb-item-${i}`;u[7]===Symbol.for("react.memo_cache_sentinel")?(r={minWidth:0},u[7]=r):r=u[7],u[8]!==b?(a=b&&(0,v.jsx)(I.az,{flex:"none",children:(0,v.jsxs)(I.Ex,{children:["#",b.index]})}),u[8]=b,u[9]=a):a=u[9],u[10]===Symbol.for("react.memo_cache_sentinel")?(o={minWidth:0,overflow:"hidden"},u[10]=o):o=u[10];let T=!C,E=C?"bold":"medium";return u[11]===Symbol.for("react.memo_cache_sentinel")?(l={whiteSpace:"nowrap",textTransform:"capitalize"},u[11]=l):l=u[11],u[12]!==T||u[13]!==E||u[14]!==x?(s=(0,v.jsx)(I.az,{padding:1,style:o,children:(0,v.jsx)(I.EY,{muted:T,size:1,weight:E,textOverflow:"ellipsis",style:l,children:x})}),u[12]=T,u[13]=E,u[14]=x,u[15]=s):s=u[15],u[16]!==s||u[17]!==a?(d=(0,v.jsxs)(I.so,{align:"center",style:r,children:[a,s]}),u[16]=s,u[17]=a,u[18]=d):d=u[18],u[19]!==_||u[20]!==d||u[21]!==k||u[22]!==S||u[23]!==x?(c=(0,v.jsx)(I.$n,{mode:"bleed",padding:1,radius:2,onClick:_,style:n,title:x,"aria-label":x,"aria-current":k,"data-testid":S,children:d}),u[19]=_,u[20]=d,u[21]=k,u[22]=S,u[23]=x,u[24]=c):c=u[24],c}function BA(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(19),{itemPath:u,documentSchemaType:p,documentValue:m,currentPath:h,onPathSelect:f}=e,g=B_(u,p,m,h),y=Bk(u,p,m);c[0]!==u||c[1]!==f?(t=()=>{f(u)},c[0]=u,c[1]=f,c[2]=t):t=c[2];let C=t;c[3]===Symbol.for("react.memo_cache_sentinel")?(n={minWidth:0,maxWidth:"250px"},c[3]=n):n=c[3],c[4]!==y?(i=y&&(0,v.jsxs)(I.Ex,{size:1,children:["#",y.index]}),c[4]=y,c[5]=i):i=c[5];let x=+!!y?.index;return c[6]===Symbol.for("react.memo_cache_sentinel")?(r={minWidth:0,overflow:"hidden"},c[6]=r):r=c[6],c[7]===Symbol.for("react.memo_cache_sentinel")?(a={whiteSpace:"nowrap",textTransform:"capitalize"},c[7]=a):a=c[7],c[8]!==g?(o=(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",style:a,title:g,children:g}),c[8]=g,c[9]=o):o=c[9],c[10]!==x||c[11]!==o?(l=(0,v.jsx)(I.az,{paddingLeft:x,paddingY:1,style:r,children:o}),c[10]=x,c[11]=o,c[12]=l):l=c[12],c[13]!==i||c[14]!==l?(s=(0,v.jsxs)(I.so,{align:"center",style:n,children:[i,l]}),c[13]=i,c[14]=l,c[15]=s):s=c[15],c[16]!==C||c[17]!==s?(d=(0,v.jsx)(I.Dr,{padding:1,onClick:C,children:s}),c[16]=C,c[17]=s,c[18]=d):d=c[18],d}function BD(e){let t,n,i,r,a,o,l=(0,j.c)(31),{currentPath:s,onNavigate:d,onClose:c}=e,{onPathOpen:u}=fr(),{schemaType:p}=hE();l[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],l[0]=t):t=l[0];let m=gI(t),[h,f]=(0,_.useState)(null),g=(0,I.cF)(h),y=d??u;l[1]!==s||l[2]!==p||l[3]!==m||l[4]!==y||l[5]!==c?(n=e=>{if((0,eD.tA)(e[e.length-1])){if(s&&s.length>e.length&&e.every((e,t)=>{let n=s[t];return(0,eD.tA)(e)&&(0,eD.tA)(n)?e._key===n._key:e===n})){let t=s[e.length];if(!(0,eD.tA)(t)){let n=Bw(p,e,m);if((0,eD.$d)(n)&&n.fields.some(e=>
1268e.name===t))return void y([...e,t])}}y(e)}else 1===e.length?c?.(!0):y(e)},l[1]=s,l[2]=p,l[3]=m,l[4]=y,l[5]=c,l[6]=n):n=l[6];let C=n;e:{let e=g?.border.width;if(!e||e<500){i=5;break e}if(e<700){i=6;break e}i=5}let x=i;t:{let e;if(!s||0===s.length){let e;l[7]===Symbol.for("react.memo_cache_sentinel")?(e=[],l[7]=e):e=l[7],r=e;break t}l[8]!==s||l[9]!==m?(e=[],s.forEach((t,n)=>{let i=s.slice(0,n+1);(function(e,t,n){var i;if(!n)return e.every((e,n)=>ws(t[n],e))&&wd(e);let r=n;for(let t of e)if("string"==typeof t?r=r?.[t]:"object"==typeof t&&(0,eD.tA)(t)&&Array.isArray(r)&&(r=r.find(e=>e?._key===t._key)),!r)break;return!(r&&"object"==typeof r&&"_type"in r&&(i=r)&&"object"==typeof i&&"children"in i&&Array.isArray(i.children)&&i.children.some(e=>e&&"span"===e._type))&&e.every((e,n)=>ws(t[n],e))})(i,s,m)&&e.push({path:i})}),l[8]=s,l[9]=m,l[10]=e):e=l[10],r=e}let b=r;n:{let e=b.length+1,t=x-1,n=Math.ceil(t/2),i=Math.floor(t/2);if(x&&e>x){let e,t,r,o;l[11]!==n||l[12]!==b?(e=b.slice(0,n-1),l[11]=n,l[12]=b,l[13]=e):e=l[13],l[14]!==i||l[15]!==n||l[16]!==b?(t=b.slice(n-1,b.length-i),l[14]=i,l[15]=n,l[16]=b,l[17]=t):t=l[17],l[18]!==i||l[19]!==b?(r=b.slice(b.length-i),l[18]=i,l[19]=b,l[20]=r):r=l[20],l[21]!==e||l[22]!==t||l[23]!==r?(o=[...e,t,...r],l[21]=e,l[22]=t,l[23]=r,l[24]=o):o=l[24],a=o;break n}a=b}let w=a;if(!s||0===s.length)return null;if(l[25]!==s||l[26]!==p||l[27]!==m||l[28]!==C||l[29]!==w){let e=w.map((e,t)=>{let n=`breadcrumb-${t}`,i=t<w.length-1;if(Array.isArray(e))return(0,v.jsxs)(I.cV,{children:[(0,v.jsx)(tL.IU,{id:"breadcrumb-overflow-menu-button",button:(0,v.jsx)(I.$n,{mode:"bleed",padding:1,style:BI,children:(0,v.jsx)(I.so,{overflow:"hidden",children:(0,v.jsx)(I.EY,{size:1,weight:"medium",textOverflow:"ellipsis",style:BT,"aria-label":"More breadcrumb items",children:"..."})})}),popover:{placement:"bottom-start",portal:!0},menu:(0,v.jsx)(I.W1,{children:e.map(e=>(0,v.jsx)(BA,{itemPath:e.path,documentSchemaType:p,documentValue:m,currentPath:s,onPathSelect:C},e.path.toString()))})}),i&&(0,v.jsx)(BE,{children:"/"})]},n);let r=s.length===e.path.length&&e.path.every((e,t)=>{let n=s[t];return(0,eD.tA)(e)&&(0,eD.tA)(n)?e._key===n._key:e===n}),a=t===w.length-1;return(0,v.jsxs)(I.cV,{flex:a?1:void 0,style:{minWidth:0},children:[(0,v.jsx)(B$,{itemPath:e.path,documentSchemaType:p,documentValue:m,currentPath:s,isSelected:r,onPathSelect:C}),i&&(0,v.jsx)(BE,{children:"/"})]},n)});o=(0,v.jsx)(I.cV,{ref:f,style:BS,children:e}),l[25]=s,l[26]=p,l[27]=m,l[28]=C,l[29]=w,l[30]=o}else o=l[30];return o}let Bz=(0,eI.I4)(tL.lG).withConfig({displayName:"StyledDialog",componentId:"sc-1thco4c-0"})`${e=>e.$isHidden&&` 1269 /* Hide the backdrop (the semi-transparent overlay) */ 1270 background: transparent !important; 1271 1272 /* Hide the dialog card */ 1273 [data-ui='DialogCard'] { 1274 opacity: 0 !important; 1275 pointer-events: none !important; 1276 transform: scale(0.95) !important; 1277 } 1278 `}`,BP=[0,0,1,0];function BR(e){return e.stopPropagation()}function BN(e){return e.stopPropagation()}function BO(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(54),{children:h,header:f,type:g,width:y}=e,[C,x]=(0,_.useState)(null),b=(0,_.useRef)(null),w=(0,tK.Jr)(),{absolutePath:k,path:T}=h?.props,E=k||T;m[0]!==E?(t={path:E},m[0]=E,m[1]=t):t=m[1];let{dialogId:$,isTop:A,stack:D,close:z,navigateTo:P}=function(e){let t,n,i,r,a,o,l,s=(0,j.c)(22);s[0]!==e?(t=void 0===e?{}:e,s[0]=e,s[1]=t):t=s[1];let{path:d}=t,c=(0,_.useContext)(S.CZ),u=(0,_.useId)(),p=(0,_.useRef)(!1),m=c?.push,h=c?.remove,f=c?.update;s[2]!==u||s[3]!==d||s[4]!==m||s[5]!==h?(n=()=>{if(!(!m||!h))return p.current=!0,m(u,d),()=>{p.current=!1,h(u)}},i=[m,h,u,d],s[2]=u,s[3]=d,s[4]=m,s[5]=h,s[6]=n,s[7]=i):(n=s[6],i=s[7]),(0,_.useEffect)(n,i),s[8]!==u||s[9]!==d||s[10]!==f?(r=()=>{f&&p.current&&f(u,d)},a=[f,u,d],s[8]=u,s[9]=d,s[10]=f,s[11]=r,s[12]=a):(r=s[11],a=s[12]),(0,_.useEffect)(r,a),s[13]!==c?.stack?(o=c?.stack??[],s[13]=c?.stack,s[14]=o):o=s[14];let g=o,y=g.length>0?g[g.length-1]:null,C=!c||y?.id===u,x=c?.close??Bj,b=c?.navigateTo??Bj;return s[15]!==x||s[16]!==u||s[17]!==C||s[18]!==b||s[19]!==g||s[20]!==y?(l={dialogId:u,topEntry:y,stack:g,isTop:C,close:x,navigateTo:b},s[15]=x,s[16]=u,s[17]=C,s[18]=b,s[19]=g,s[20]=y,s[21]=l):l=s[21],l}(t);m[2]!==D.length||m[3]!==w?(n=()=>{0===D.length&&w.log(yq,{path:on([])})},m[2]=D.length,m[3]=w,m[4]=n):n=m[4],m[5]!==D||m[6]!==w?(i=[D,w],m[5]=D,m[6]=w,m[7]=i):i=m[7],(0,_.useEffect)(n,i),m[8]===Symbol.for("react.memo_cache_sentinel")?(r={minHeight:"min(calc(100vh - 200px), 500px)"},m[8]=r):r=m[8],m[9]!==h?(a=(0,v.jsx)(wJ,{margins:BP,children:(0,v.jsx)(I.az,{ref:b,style:r,children:h})}),m[9]=h,m[10]=a):a=m[10];let R=a,[N,O]=(0,_.useState)(!1);m[11]!==N||m[12]!==D.length?(o=()=>{D.length>1&&!N&&O(!0)},l=[D.length,N],m[11]=N,m[12]=D.length,m[13]=o,m[14]=l):(o=m[13],l=m[14]),(0,_.useEffect)(o,l);let V=D.length>1||N;m[15]!==z||m[16]!==A||m[17]!==P||m[18]!==D||m[19]!==w?(s=e=>{if(A&&(e.metaKey||e.ctrlKey)&&"ArrowUp"===e.key){e.preventDefault();let t=D[D.length-1]?.path;if(t&&t.length>1){let e=t.slice(0,-1);e.length>1?(w.log(yX),P(e)):(w.log(yW),z())}}},m[15]=z,m[16]=A,m[17]=P,m[18]=D,m[19]=w,m[20]=s):s=m[20];let M=s;m[21]!==z||m[22]!==D.length||m[23]!==w?(d=e=>{!e&&D.length>=2?(w.log(yG),z({toParent:!0})):(w.log(yW),z())},m[21]=z,m[22]=D.length,m[23]=w,m[24]=d):d=m[24];let L=d;m[25]!==z||m[26]!==w?(c=()=>{w.log(yW),z()},m[25]=z,m[26]=w,m[27]=c):c=m[27];let F=c;if((0,I.Pm)(M),"dialog"===g){let t,n,i,r=!A,a=!!A&&e.autofocus;m[28]!==E||m[29]!==L||m[30]!==P?(t=(0,v.jsx)(BD,{currentPath:E,onNavigate:P,onClose:L}),m[28]=E,m[29]=L,m[30]=P,m[31]=t):t=m[31];let o=!V;return m[32]!==R||m[33]!==$||m[34]!==F||m[35]!==L||m[36]!==r||m[37]!==a||m[38]!==t||m[39]!==o||m[40]!==y?(n=(0,v.jsx)(Bz,{$isHidden:r,__unstable_autoFocus:a,contentRef:x,"data-testid":"nested-object-dialog",header:t,id:$,onClose:L,onDragEnter:BR,onDrop:BN,width:y,animate:o,onClickOutside:F,children:R}
1278),m[32]=R,m[33]=$,m[34]=F,m[35]=L,m[36]=r,m[37]=a,m[38]=t,m[39]=o,m[40]=y,m[41]=n):n=m[41],m[42]!==C||m[43]!==n?(i=(0,v.jsx)(wr,{scrollElement:C,containerElement:b,children:n}),m[42]=C,m[43]=n,m[44]=i):i=m[44],i}return m[45]!==R||m[46]!==L||m[47]!==f||m[48]!==e.legacy_referenceElement||m[49]!==y?(u=(0,v.jsx)(esT,{header:f,onClose:L,width:y,containerRef:x,referenceElement:e.legacy_referenceElement,children:R}),m[45]=R,m[46]=L,m[47]=f,m[48]=e.legacy_referenceElement,m[49]=y,m[50]=u):u=m[50],m[51]!==C||m[52]!==u?(p=(0,v.jsx)(wr,{scrollElement:C,containerElement:b,children:u}),m[51]=C,m[52]=u,m[53]=p):p=m[53],p}function BV(e,t,n){if(0===t.length)return{...e,value:n};let[i,...r]=t,a=(0,eD.tA)(i)?i._key:String(i),o=e?.children??{};return{value:e?.value,children:{...o,[a]:BV(o[a]||{},r,n)}}}function BM({property:e}){let t={value:!0},n=null;return function({currentUser:i,documentValue:r,schemaType:a,...o}){let l=JSON.stringify({currentUser:zR(i),schemaType:zR(a),document:zR(r)});if(e in o&&!0===o[e])return t;if(n?.serializedHash===l)return n.result;let s=hk(n?.result??null,function e({value:t,parent:n,document:i,currentUser:r,schemaType:a,level:o,property:l,path:s}){let d={value:t,parent:n,document:i,currentUser:r,path:s},c=sw(a[l],d);if(c||20===o)return{value:c};let u={};if("object"===a.jsonType){for(let n of a.fieldsets?a.fieldsets:a.fields.map(e=>({single:!0,field:e}))){if(n.single){let a=e({currentUser:r,document:i,parent:t,value:t?.[n.field.name],schemaType:n.field.type,level:o+1,property:l,path:[...s,n.field.name]});if(!a)continue;u[n.field.name]=a;continue}let a=sw(n.hidden,d);for(let d of(a&&(u[`fieldset:${n.name}`]={value:a}),n.fields)){let n=e({currentUser:r,document:i,parent:t,value:t?.[d.name],schemaType:d.type,level:o+1,property:l,path:[...s,d.name]});n&&(u[d.name]=n)}}for(let e of a.groups??rM)if(l in e){let t=sw(e[l],d);if(!t)continue;u[`group:${e.name}`]={value:t}}}if("array"===a.jsonType&&Array.isArray(t)&&t.every(eD.o8))for(let n of t){let d=wl(a,n);if(!d)continue;let c=e({currentUser:r,document:i,level:o+1,value:n,parent:t,schemaType:d,property:l,path:[...s,{_key:n._key}]});c&&(u[n._key]=c)}if(Object.keys(u).length)return{children:u}}({currentUser:i,document:r,level:0,parent:null,schemaType:a,value:r,property:e,path:[]}));return n={result:s,serializedHash:l},s}}function BL(){let e;return t=>{let n=hk(e??null,t);return e=n,n}}function BF(){let e;return t=>{let n=hk(e??null,t);return e=n,n}}function BB(){let e;return t=>{let n=hk(e??null,t);return e=n,n}}function BY(){return function({decorators:e={}}={}){let t=z$({decorator:e.prepareFieldMember,getPath:({parent:e,field:t})=>[...e.path,t.name],hashInput:({parent:e,field:t})=>{let n=[...e.path,t.name];return{changesOpen:e.changesOpen,presence:e.presence.filter(e=>(0,w.w1)(n,e.path)),validation:e.validation.filter(e=>(0,w.w1)(n,e.path)),focusPath:(0,w.w1)(n,e.focusPath)?e.focusPath:[],openPath:(0,w.w1)(n,e.openPath)?e.openPath:[],value:zR(e.value?.[t.name]),comparisonValue:zR(e.comparisonValue?.[t.name]),collapsedFieldSets:zR(e.collapsedFieldSets?.children?.[t.name]),collapsedPaths:zR(e.collapsedPaths?.children?.[t.name]),currentUser:zR(e.currentUser),fieldGroupState:zR(e.fieldGroupState),hidden:!0===e.hidden||e.hidden?.value||zR(e.hidden?.children?.[t.name]),readOnly:!0===e.readOnly||e.readOnly?.value||zR(e.readOnly?.children?.[t.name]),schemaType:zR(e.schemaType),hasUpstreamVersion:e.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges}}}),n=z$({decorator:e.prepareObjectInputState,getPath:({path:e})=>e,hashInput:e=>({changesOpen:e.changesOpen,presence:e.presence.filter(t=>(0,w.w1)(e.path,t.path)),validation:e.validation.filter(t=>(0,w.w1)(e.path,t.path)),focusPath:(0,w.w1)(e.path,e.focusPath)?e.focusPath:[],openPath:(0,w.w1)(e.path,e.openPath)?e.openPath:[],value:zR(e.value),comparisonValue:zR(e.comparisonValue),collapsedFieldSets:zR(e.collapsedFieldSets),collapsedPaths:e.collapsedPaths,currentUser:zR(e.currentUser),fieldGroupState:zR(e.fieldGroupState),hidden:!0===e.hidden||e.hidden?.value||zR(e.hidden),readOnly:!0===e.readOnly||e.readOnly?.value||zR(e.readOnly),schemaType:zR(e.schemaType),perspective:zR(e.perspective),hasUpstreamVersion:e.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges})}),i=z$({decorator:e.prepareArrayOfPrimitivesInputState,getPath:({path:e})=>e,hashInput:e=>({changesOpen:e.changesOpen,presence:e.presence.filter(t=>(0,w.w1)(e.path,t.path)),validation:e.validation.filter(t=>(0,w.w1)(e.path,t.path)),focusPath:(0,w.w1)(e.path,e.focusPath)?e.focusPath:[],openPath:(0,w.w1)(e.path,e.openPath)?e.openPath:[],value:zR(e.value),comparisonValue:zR(e.comparisonValue),collapsedFieldSets:zR(e.collapsedFieldSets),collapsedPaths:e.collapsedPaths,currentUser:zR(e.currentUser),fieldGroupState:zR(e.fieldGroupState),hidden:!0===e.hidden||e.hidden?.value||zR(e.hidden),readOnly:!0===e.readOnly||e.readOnly?.value||zR(e.readOnly),schemaType:zR(e.schemaType),perspective:zR(e.perspective),hasUpstreamVersion:e.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges})}),r=z$({decorator:e.prepareArrayOfObjectsInputState,getPath:({path:e})=>e,hashInput:e=>({changesOpen:e.changesOpen,presence:e.presence.filter(t=>(0,w.w1)(e.path,t.path)),validation:e.validation.filter(t=>(0,w.w1)(e.path,t.path)),focusPath:(0,w.w1)(e.path,e.focusPath)?e.focusPath:[],openPath:(0,w.w1)(e.path,e.openPath)?e.openPath:[],value:zR(e.value),comparisonValue:zR(e.comparisonValue),collapsedFieldSets:zR(e.collapsedFieldSets),collapsedPaths:e.collapsedPaths,currentUser:zR(e.currentUser),fieldGroupState:zR(e.fieldGroupState),hidden:!0===e.hidden||e.hidden?.value||zR(e.hidden),readOnly:!0===e.readOnly||e.readOnly?.value||zR(e.readOnly),schemaType:zR(e.schemaType),perspective:zR(e.perspective),hasUpstreamVersion:e.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges})}),a=z$({decorator:e.prepareArrayOfObjectsMember,getPath:({parent:e,arrayItem:t})=>[...e.path,{_key:t._key}],hashInput:({parent:e,arrayItem:t})=>{let n=Array.isArray(e.comparisonValue)?e.comparisonValue.find(e=>(0,eD.o8)(e)&&e._key===t._key):void 0,i=t._key,r=[...e.path,{_key:i}];return{changesOpen:e.changesOpen,presence:e.presence.filter(e=>(0,w.w1)(r,e.path)),validation:e.validation.filter(e=>(0,w.w1)(r,e.path)),focusPath:(0,w.w1)(r,e.focusPath)?e.focusPath:[],openPath:(0,w.w1)(r,e.openPath)?e.openPath:[],value:zR(t),comparisonValue:zR(n),collapsedFieldSets:zR(e.collapsedFieldSets?.children?.[i]),collapsedPaths:zR(e.collapsedPaths?.children?.[i]),currentUser:zR(e.currentUser),fieldGroupState:zR(e.fieldGroupState?.children?.[i]),hidden:!0===e.hidden||e.hidden?.value||zR(e.hidden?.children?.[i]),readOnly:!0===e.readOnly||e.readOnly?.value||zR(e.readOnly?.children?.[i]),schemaType:zR(e.schemaType),perspective:zR(e.perspective),hasUpstreamVersion:e.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges}}}),o=z$({decorator:e.prepareArrayOfPrimitivesMember,getPath:({parent:e,index:t})=>[...e.path,t],hashInput:({parent:e,index:t,arrayItem:n})=>{let i=Array.isArray(e.comparisonValue)?e.comparisonValue[t]:void 0,r=[...e.path,t];return{changesOpen:e.changesOpen,presence:e.presence.filter(e=>(0,w.w1)(r,e.path)),validation:e.validation.filter(e=>(0,w.w1)(r,e.path)),focusPath:(0,w.w1)(r,e.focusPath)?e.focusPath:[],openPath:(0,w.w1)(r,e.openPath)?e.openPath:[],collapsedFieldSets:zR(e.collapsedFieldSets?.children?.[t]),collapsedPaths:zR(e.collapsedPaths?.children?.[t]),currentUser:zR(e.currentUser),fieldGroupState:zR(e.fieldGroupState?.children?.[t]),hidden:!0===e.hidden||e.hidden?.value||zR(e.hidden?.children?.[t]),readOnly:!0===e.readOnly||e.readOnly?.value||zR(e.readOnly?.children?.[t]),schemaType:zR(e.schemaType),value:`${n}`,comparisonValue:`${i}`,perspective:zR(e.perspective),hasUpstreamVersion:e.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges}}}),l=z$({decorator:e.preparePrimitiveInputState,getPath:({path:e})=>e,hashInput:e=>({changesOpen:e.changesOpen,presence:e.presence.filter(t=>(0,w.w1)(e.path,t.path)),validation:e.validation.filter(t=>(0,w.w1)(e.path,t.path)),focusPath:(0,w.w1)(e.path,e.focusPath)?e.focusPath:[],openPath:(0,w.w1)(e.path,e.openPath)?e.openPath:[],value:zR(e.value),comparisonValue:zR(e.comparisonValue),collapsedFieldSets:zR(e.collapsedFieldSets),collapsedPaths:e.collapsedPaths,currentUser:zR(e.currentUser),fieldGroupState:zR(e.fieldGroupState),hidden:!0===e.hidden||e.hidden?.value||zR(e.hidden),readOnly:!0===e.readOnly||e.readOnly?.value||zR(e.readOnly),schemaType:zR(e.schemaType),perspective:zR(e.perspective),hasUpstreamVersion:e.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges})}),s=t(function(e){var t,n;let{field:i,index:r,parent:a}=e,o=(0,w.p0)([...a.path,i.name]),l=(t=i.type,n=a.level+1,(0,eD.zR)(t)?function(e,t){let{options:n}=e,i=(n?.list||[])?.length>0,r=fD.includes(n?.layout||"");return i&&!r?t:0}(t,n):function(e,t){let{type:n,options:i}=e,r=function e(t,n){return t?.name&&n.includes(t?.name)?t:t?e(t.type,n):void 0}(n,f$),a=e?.jsonType==="object"?e.fields:void 0,o=r?.name||"";if(fz.includes(o))return 0;let l=f$.includes(o),s=(a?.filter(e=>!fA.includes(e.name)).length??0)>0,d=(i?.list?.length??0)>0;return s||d||!l?t:0}(t,n)),s=a.value,p=a.comparisonValue;if(!zM(s))throw Error("Unexpected non-object value");let m=i.group?(0,ey.A)(i.group):[],f=zV(a.groups,i.group,a.selectedGroup);
1278if((0,eD.$d)(i.type)){let e=s?.[i.name],t=rZ(p)?p?.[i.name]:void 0;if(!zM(e))return{kind:"error",key:i.name,fieldName:i.name,error:{type:"INCOMPATIBLE_TYPE",expectedSchemaType:i.type,resolvedValueType:(0,nq.yu)(e),value:e}};if(!0===a.hidden||a?.hidden?.value||a.hidden?.children?.[i.name]?.value)return{kind:"hidden",key:`field-${i.name}`,name:i.name,index:r};let n=a.fieldGroupState?.children?.[i.name],c=a.collapsedPaths?.children?.[i.name],u=a.collapsedFieldSets?.children?.[i.name],h=!0===a.hidden||a.hidden?.value||a.hidden?.children?.[i.name],g=!0===a.readOnly||a.readOnly?.value||a.readOnly?.children?.[i.name],y=d({schemaType:i.type,currentUser:a.currentUser,value:e,changed:zL(e,t),comparisonValue:t,perspective:a.perspective,hasUpstreamVersion:a.hasUpstreamVersion,presence:a.presence,validation:a.validation,fieldGroupState:n,path:o,level:l,focusPath:a.focusPath,openPath:a.openPath,collapsedPaths:c,collapsedFieldSets:u,hidden:h,readOnly:g,changesOpen:a.changesOpen,displayInlineChanges:a.displayInlineChanges});if(null===y)return null;let C=zA(i.type.options,l),x=c?c.value:C.collapsed;return{kind:"field",key:`field-${i.name}`,name:i.name,index:r,inSelectedGroup:f,groups:m,open:(0,w.w1)(o,a.openPath),field:y,collapsed:x,collapsible:C.collapsible}}if((0,eD.zR)(i.type)){let e=s?.[i.name],t=rZ(p)?p?.[i.name]:void 0;if((0,eD.m5)(i.type)){let n,s="u">typeof e;if(s&&!(typeof e>"u"||Array.isArray(e))){let t=(0,nq.yu)(e);return{kind:"error",key:i.name,fieldName:i.name,error:{type:"INCOMPATIBLE_TYPE",expectedSchemaType:i.type,resolvedValueType:t,value:e}}}if(s&&!(0===e.length||e.every(e=>rZ(e))))return{kind:"error",key:i.name,fieldName:i.name,error:{type:"MIXED_ARRAY",schemaType:i.type,value:e}};if(s&&!e?.every(e=>rZ(e)&&"_key"in e))return{kind:"error",key:i.name,fieldName:i.name,error:{type:"MISSING_KEYS",value:e,schemaType:i.type}};let d=s?(n=new Set,e.reduce((e,t,i)=>(n.has(t._key)&&e.push([i,t._key]),n.add(t._key),e),[])):[];if(d.length>0)return{kind:"error",key:i.name,fieldName:i.name,error:{type:"DUPLICATE_KEYS",duplicates:d,schemaType:i.type}};let c=a.fieldGroupState?.children?.[i.name],p=a.collapsedPaths?.children?.[i.name],h=a.collapsedFieldSets?.children?.[i.name],g=!0===a.hidden||a.hidden?.value||a.hidden?.children?.[i.name],y=!0===a.readOnly||a.readOnly?.value||a.readOnly?.children?.[i.name],C=u({schemaType:i.type,currentUser:a.currentUser,value:e,changed:zL(e,t),comparisonValue:t,fieldGroupState:c,focusPath:a.focusPath,openPath:a.openPath,perspective:a.perspective,hasUpstreamVersion:a.hasUpstreamVersion,presence:a.presence,validation:a.validation,collapsedPaths:p,collapsedFieldSets:h,level:l,path:o,readOnly:y,hidden:g,changesOpen:a.changesOpen,displayInlineChanges:a.displayInlineChanges});return null===C?null:{kind:"field",key:`field-${i.name}`,name:i.name,index:r,open:(0,w.w1)(o,a.openPath),inSelectedGroup:f,groups:m,collapsible:!1,collapsed:!1,field:C}}{if(!(typeof e>"u"||Array.isArray(e))){let t=(0,nq.yu)(e);return{kind:"error",key:i.name,fieldName:i.name,error:{type:"INCOMPATIBLE_TYPE",expectedSchemaType:i.type,resolvedValueType:t,value:e}}}let n=a.fieldGroupState?.children?.[i.name],s=a.collapsedPaths?.children?.[i.name],d=a.collapsedFieldSets?.children?.[i.name],u=!0===a.hidden||a.hidden?.value||a.hidden?.children?.[i.name],p=!0===a.readOnly||a.readOnly?.value||a.readOnly?.children?.[i.name],h=c({changed:zL(e,t),comparisonValue:t,schemaType:i.type,currentUser:a.currentUser,value:e,fieldGroupState:n,focusPath:a.focusPath,openPath:a.openPath,perspective:a.perspective,hasUpstreamVersion:a.hasUpstreamVersion,presence:a.presence,validation:a.validation,collapsedPaths:s,collapsedFieldSets:d,level:l,path:o,readOnly:p,hidden:u,changesOpen:a.changesOpen,displayInlineChanges:a.displayInlineChanges});return null===h?null:{kind:"field",key:`field-${i.name}`,name:i.name,index:r,inSelectedGroup:f,groups:m,open:(0,w.w1)(o,a.openPath),collapsible:!1,collapsed:!1,field:h}}}{let e=s?.[i.name],t=rZ(p)?p?.[i.name]:void 0;if(!0===a.hidden||a.hidden?.value||a.hidden?.children?.[i.name]?.value)return null;let n=!0===a.hidden||a.hidden?.value||a.hidden?.children?.[i.name],l=!0===a.readOnly||a.readOnly?.value||a.readOnly?.children?.[i.name],d=h({...a,comparisonValue:t,value:e,schemaType:i.type,path:o,readOnly:l,hidden:n});return{kind:"field",key:`field-${i.name}`,name:i.name,index:r,open:(0,w.w1)(o,a.openPath),inSelectedGroup:f,groups:m,collapsible:!1,
1278collapsed:!1,field:d}}}),d=n(function(e,t=!0){if(20===e.level)return null;let n=!0===e.readOnly||e.readOnly?.value,i=e.schemaType.groups||[],r=e.changesOpen||e.fieldGroupState?.value===zT.name,a=t=>(!r||t.name!==zT.name)&&(!0===e.hidden||e.hidden?.value||e.hidden?.children?.[`group:${t.name}`]?.value),o=i.some(e=>e.name===zT.name)?i:[zT,...i],l=(o.find(e=>e.default)||o.find(e=>!a(e))||o[0]).name,d=o.flatMap(t=>{let n=a(t),i=t.name===(e.fieldGroupState?.value||l),r=e.changesOpen?t.name===zT.name:i,o=!!e.changesOpen&&!r;return n?[]:[{disabled:o,icon:t?.icon,name:t.name,selected:r,title:t.title,i18n:t.i18n,fields:t.fields||rM}]}),c=d.find(e=>e.selected),u=(e.schemaType.fieldsets?e.schemaType.fieldsets:e.schemaType.fields.map(e=>({single:!0,field:e}))).flatMap((t,n)=>{if(t.single){let i=s({field:t.field,parent:{...e,groups:d,selectedGroup:c},index:n});return i?[i]:[]}let i=!0===e.hidden||e.hidden?.value||e.hidden?.children?.[`fieldset:${t.name}`]?.value,r=t.fields.flatMap(t=>{if(i)return[{kind:"hidden",key:`field-${t.name}`,name:t.name,index:n}];let r=s({field:t,parent:{...e,groups:d,selectedGroup:c},index:n});return r?[r]:[]}),a=zA(t.options,e.level),o=(e.collapsedFieldSets?.children||{})[t.name]?.value??a.collapsed;return[{kind:"fieldSet",key:`fieldset-${t.name}`,_inSelectedGroup:zV(d,t.group,c),groups:t.group?(0,ey.A)(t.group):[],renderMembers:t.renderMembers,fieldSet:{path:(0,w.p0)(e.path.concat(t.name)),name:t.name,title:t.title,description:t.description,hidden:!1,level:e.level+1,members:r.filter(e=>"hidden"!==e.kind),collapsible:a?.collapsible,collapsed:o,columns:t?.options?.columns}}]}),p=i.length>0,m=e.presence.filter(t=>(0,w.n4)(t.path,e.path)),h=m.length?m:rM,f=e.validation.filter(t=>(0,w.n4)(t.path,e.path)).map(e=>({level:e.level,message:e.message,path:e.path})),g=u.filter(e=>"hidden"!==e.kind&&"decoration"!==e.kind);if(0===g.length&&t)return null;let y=p?d.flatMap(e=>e.name===zT.name||g.some(t=>"error"!==t.kind&&("field"===t.kind?t.groups.includes(e.name):t.groups.includes(e.name)||t.fieldSet.members.some(t=>"decoration"!==t.kind&&"error"!==t.kind&&t.groups.includes(e.name))))?e:[]):[],C=g.flatMap(e=>{if("error"===e.kind)return[e];if("field"===e.kind)return e.inSelectedGroup?[e]:[];let t=e.fieldSet.members.filter(e=>"field"!==e.kind||e.inSelectedGroup);return t.length>0?[{...e,fieldSet:{...e.fieldSet,members:t}}]:[]}),x=zB(e),b={value:e.value,compareValue:e.comparisonValue??void 0,schemaType:e.schemaType,readOnly:n,path:e.path,id:zO((0,w.dI)(e.path)),level:e.level,focused:(0,w.n4)(e.path,e.focusPath),focusPath:(0,w.om)(e.path,e.focusPath),presence:h,validation:f,members:C,groups:y,__unstable_computeDiff:x.__unstable_computeDiff,changed:zL(e.value,e.comparisonValue),hasUpstreamVersion:x.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges};return Object.defineProperty(b,"_allMembers",{value:u,enumerable:!1}),b}),c=i(function(e){if(20===e.level||!0===e.hidden||e.hidden?.value)return null;let t=Array.isArray(e.value)?e.value:[],n=e.presence.filter(t=>(0,w.n4)(t.path,e.path)),i=n.length?n:rM,r=e.validation.filter(t=>(0,w.n4)(t.path,e.path)).map(e=>({level:e.level,message:e.message,path:e.path})),a=t.flatMap((t,n)=>m({arrayItem:t,parent:e,index:n})),o=zB(e);return{value:e.value,readOnly:!0===e.readOnly||e.readOnly?.value,schemaType:e.schemaType,focused:(0,w.n4)(e.path,e.focusPath),focusPath:(0,w.om)(e.path,e.focusPath),path:e.path,perspective:e.perspective,id:zO((0,w.dI)(e.path)),level:e.level,validation:r,presence:i,members:a,__unstable_computeDiff:o.__unstable_computeDiff,changed:e.changed||a.some(e=>"item"===e.kind&&e.item.changed),hasUpstreamVersion:o.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges}}),u=r(function(e){if(20===e.level||!0===e.hidden||e.hidden?.value)return null;let t=Array.isArray(e.value)?e.value:[],n=e.presence.filter(t=>(0,w.n4)(t.path,e.path)),i=n.length?n:rM,r=e.validation.filter(t=>(0,w.n4)(t.path,e.path)).map(e=>({level:e.level,message:e.message,path:e.path})),a=t.flatMap((t,n)=>p({arrayItem:t,parent:e,index:n})),o=zB(e);return{value:e.value,perspective:e.perspective,readOnly:!0===e.readOnly||e.readOnly?.value,schemaType:e.schemaType,focused:(0,w.n4)(e.path,e.focusPath),focusPath:(0,w.om)(e.path,e.focusPath),path:e.path,id:zO((0,w.dI)(e.path)),level:e.level,validation:r,presence:i,members:a,__unstable_computeDiff:o.__unstable_computeDiff,changed:e.changed||a.some(e=>"item"===e.kind&&e.item.changed),compareValue:o.compareValue,hasUpstreamVersion:o.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges}}),p=a(function(e){let{arrayItem:t,parent:n,index:i}=e,r=wl(n.schemaType,t),a=t._key;if(!r)return{kind:"error",key:a,index:i,error:{type:"INVALID_ITEM_TYPE",resolvedValueType:(0,nq.yu)(t),value:t,validTypes:n.schemaType.of}};let o=(0,w.p0)([...n.path,{_key:a}]),l=n.level+1,s=n.fieldGroupState?.children?.[a],c=n.collapsedPaths?.children?.[a],u=n.collapsedFieldSets?.children?.[a],p=!0===n.hidden||n.hidden?.value||n.hidden?.children?.[a],m=!0===n.readOnly||n.readOnly?.value||n.readOnly?.children?.[a],h=Array.isArray(n.comparisonValue)&&n.comparisonValue.find(e=>e._key===t._key)||void 0,f=d({schemaType:r,level:l,value:t,comparisonValue:h,changed:zL(t,h),path:o,perspective:n.perspective,hasUpstreamVersion:n.hasUpstreamVersion,focusPath:n.focusPath,openPath:n.openPath,currentUser:n.currentUser,collapsedPaths:c,collapsedFieldSets:u,presence:n.presence,validation:n.validation,fieldGroupState:s,readOnly:m,hidden:p,displayInlineChanges:n.displayInlineChanges},!1),g=zA(r.options,l),y=c?.value??g.collapsed;return{kind:"item",key:a,index:i,open:(0,w.w1)(o,n.openPath),collapsed:y,collapsible:!0,parentSchemaType:n.schemaType,item:f}}),m=o(function(e){var t;let n,{arrayItem:i,parent:r,index:a}=e,o=(t=r.schemaType,n=(0,nq.yu)(i),t?.of.find(e=>e.name===n||e.jsonType===n)),l=(0,w.p0)([...r.path,a]),s=r.value?.[a],d=r.comparisonValue?.[a],c=r.level+1,u=`${o?.name||"invalid-type"}-${String(a)}`;if(!o)return{kind:"error",key:u,index:a,error:{type:"INVALID_ITEM_TYPE",validTypes:r.schemaType.of,resolvedValueType:(0,nq.yu)(o),value:s}};let p=!0===r.readOnly||r.readOnly?.value||r.readOnly?.children?.[a],m=h({...r,path:l,schemaType:o,level:c,value:s,comparisonValue:d,readOnly:p});return{kind:"item",key:u,index:a,parentSchemaType:r.schemaType,open:(0,w.n4)(l,r.openPath),item:m}}),h=l(function(e){let t=e.presence.filter(t=>(0,w.n4)(t.path,e.path)),n=t.length?t:rM,i=e.validation.filter(t=>(0,w.n4)(t.path,e.path)).map(e=>({level:e.level,message:e.message,path:e.path})),r=zB(e);return{schemaType:e.schemaType,value:e.value,level:e.level,id:zO((0,w.dI)(e.path)),readOnly:!0===e.readOnly||e.readOnly?.value,focused:(0,w.n4)(e.path,e.focusPath),path:e.path,perspective:e.perspective,presence:n,validation:i,__unstable_computeDiff:r.__unstable_computeDiff,changed:zL(e.value,e.comparisonValue),hasUpstreamVersion:r.hasUpstreamVersion,displayInlineChanges:e.displayInlineChanges}});function f({collapsedFieldSets:e,collapsedPaths:t,comparisonValue:n,currentUser:i,documentValue:r,fieldGroupState:a,focusPath:o,hidden:l,openPath:s,perspective:c,hasUpstreamVersion:u,presence:p,readOnly:m,schemaType:h,validation:f,changesOpen:g,displayInlineChanges:y}){return d({collapsedFieldSets:e,collapsedPaths:t,comparisonValue:n,currentUser:i,value:r,fieldGroupState:a,focusPath:o,hidden:!1===l?rV:l,openPath:s,perspective:c,hasUpstreamVersion:u,presence:p,readOnly:!1===m?rV:m,schemaType:h,validation:f,changesOpen:g,level:0,path:[],displayInlineChanges:y})}return f._prepareFieldMember=s,f._prepareFieldMember=s,f._prepareObjectInputState=d,f._prepareArrayOfPrimitivesInputState=c,f._prepareArrayOfObjectsInputState=u,f._prepareArrayOfObjectsMember=p,f._prepareArrayOfPrimitivesMember=m,f._preparePrimitiveInputState=h,f}()}function BH(){return BM({property:"readOnly"})}function BU(){return BM({property:"hidden"})}function BZ(e){return"_allMembers"in e&&Array.isArray(e._allMembers)}function Bq(e,t){return 0===t.length?[]:(0,eD.$d)(e.schemaType)&&BZ(e)?function e(t,n){if(0===n.length)return[];let[i,...r]=n,a=t._allMembers.find(e=>"fieldSet"===e.kind&&e.fieldSet.members.some(e=>"field"===e.kind&&e.name===i)),o=(a?a.fieldSet.members:t._allMembers).find(e=>null!==e&&"field"===e.kind&&e.name===i),l=t.schemaType.fields.find(e=>e.name===i),s=t.groups.find(e=>e.selected)?.name,d=l&&(0,ey.A)(l.group)||[],c=s&&(s===zT.name||d.includes(s)),u=[];
1278if(!c){let e=t.groups.find(e=>d.includes(e.name))?.name||zT.name;u.push({type:"setSelectedGroup",path:t.path,groupName:e})}return a&&u.push({type:"expandFieldSet",path:a.fieldSet.path}),o&&hY(o)&&u.push(...BW(o.field,r)),o&&hB(o)&&BZ(o.field)&&u.push(...e(o.field,r)),u}(e,t):(0,eD.m5)(e.schemaType)?BW(e,t):[]}function BW(e,t){if(0===t.length)return[];let[n,...i]=t;if(!(0,eD.tA)(n))throw Error("Expected path segment to be an object with a _key property");let r=e.members.find(e=>e.key===n._key);return r?Bq(r.item,i):[]}let BJ=e=>{let t,n,i,r,a=(0,j.c)(13),o=RX();a[0]!==e?(t=(0,tG.IM)(e),a[0]=e,a[1]=t):t=a[1];let l=t;a[2]!==o||a[3]!==l?(n=o.getCompanionDocs(l),a[2]=o,a[3]=l,a[4]=n):n=a[4];let s=(0,tF.J)(n);a[5]!==s?.data||a[6]!==e?(i=s?.data.find(t=>t?.studioDocumentId===e),a[5]=s?.data,a[6]=e,a[7]=i):i=a[7];let d=i,c=!!d,u=!!d&&!d.isStudioDocumentEditable,p=s?.loading;return a[8]!==d||a[9]!==c||a[10]!==u||a[11]!==p?(r={isLinked:c,isLockedByCanvas:u,companionDoc:d,loading:p},a[8]=d,a[9]=c,a[10]=u,a[11]=p,a[12]=r):r=a[12],r};function BK(e){return e?._create}function BG(e){return e?.ejected===!1}let BX="connecting";function BQ(e){return e?(0,eP.of)("connected"):(0,eK.O)(200).pipe((0,tO.u)("reconnecting"))}function B1(e){return"reconnect"!==e}function B2(e){return e.type}function B5(e){let t,n,i,r=(0,j.c)(22),{displayed:a,documentId:o,strict:l,historyVersion:s}=e,{selectedReleaseId:d}=a3(),{data:c}=gU(),{data:u}=R6();r[0]!==o?(t={documentId:o},r[0]=o,r[1]=t):t=r[1];let{data:p}=Rf(t),m=a&&!a._createdAt,h=!p;if(r[2]!==u||r[3]!==a||r[4]!==p||r[5]!==s||r[6]!==m||r[7]!==c||r[8]!==d||r[9]!==l||r[10]!==h){i=Symbol.for("react.early_return_sentinel");e:{if(h){i={notCurrentReleases:[],currentReleases:[],inCreation:null};break e}if(r[13]!==u||r[14]!==a||r[15]!==p||r[16]!==s||r[17]!==m||r[18]!==c||r[19]!==d||r[20]!==l){let e=p.map(B0);if(n=c.reduce((t,n)=>{var i,r;let o,s=e.includes(cN(n._id)),c=cN(n._id);return m&&c===(0,tG._S)(a._id||"")&&c===d?t.inCreation=n:s?l?(i=a?._id??"",r=cN(n._id),o=(0,tG._S)(i),(r?typeof r>"u"||"Published"===o||o!==r:(0,tG.A_)(i))&&"scheduled"!==n.metadata.releaseType||t.currentReleases.push(n)):t.currentReleases.push(n):t.notCurrentReleases.push(n),t},{notCurrentReleases:[],currentReleases:[],inCreation:null}),!s){i=n;break e}let t=u.find(e=>cN(e._id)===s);t?.state==="archived"&&n.currentReleases.push(t),r[13]=u,r[14]=a,r[15]=p,r[16]=s,r[17]=m,r[18]=c,r[19]=d,r[20]=l,r[21]=n}else n=r[21]}r[2]=u,r[3]=a,r[4]=p,r[5]=s,r[6]=m,r[7]=c,r[8]=d,r[9]=l,r[10]=h,r[11]=n,r[12]=i}else n=r[11],i=r[12];return i!==Symbol.for("react.early_return_sentinel")?i:n}function B0(e){return(0,tG._S)(e)}function B7(e){let t,n,i,r,a,o=(0,j.c)(24),{displayed:l,documentId:s,editState:d,strict:c}=e,{document:u}=cY(),{drafts:p}=u,{enabled:m}=p;o[0]!==l||o[1]!==s||o[2]!==c?(t={displayed:l,documentId:s,strict:c},o[0]=l,o[1]=s,o[2]=c,o[3]=t):t=o[3];let h=B5(t);o[4]!==l?._id||o[5]!==m||o[6]!==c?(n=m&&(!c||(0,tG.R8)(l?._id??"")),o[4]=l?._id,o[5]=m,o[6]=c,o[7]=n):n=o[7];let f=n,g=d?.published?._id;if(o[8]!==l?._id||o[9]!==d||o[10]!==h.currentReleases||o[11]!==f||o[12]!==c||o[13]!==g){let e,t=[g,f?d?.draft?._id:[]].flat();o[15]!==d?(e=e=>d?.id&&(0,tG.ct)(d.id,cN(e._id)),o[15]=d,o[16]=e):e=o[16];let n=h.currentReleases.map(e),r=d?.version!==null&&!n.includes(l?._id),a=r?[l?._id]:[];i=t.concat(!r||!c?n:[]).concat(a).filter(B3),o[8]=l?._id,o[9]=d,o[10]=h.currentReleases,o[11]=f,o[12]=c,o[13]=g,o[14]=i}else i=o[14];let y=i;o[17]!==l?._id?(r=e=>e===l?._id,o[17]=l?._id,o[18]=r):r=o[18];let C=y.findIndex(r),x=y[C-1]??void 0,b=y[C+1]??void 0;return o[19]!==b||o[20]!==C||o[21]!==x||o[22]!==y?(a={position:C,previousId:x,nextId:b,stack:y},o[19]=b,o[20]=C,o[21]=x,o[22]=y,o[23]=a):a=o[23],a}function B3(e){return"string"==typeof e}function B8(){let e=(0,_.useContext)(S.ZC);if(!e)throw Error("Could not find `ActiveWorkspaceMatcher` context");return e}function B4(e){let t,n,i=(0,j.c)(9),{documentId:r,documentType:a,resourceType:o,resourceId:l,schemaName:s}=e,{node:d}=cy();if("studio"!==o&&!l)throw Error("resourceId is required for media-library and canvas resources");i[0]!==r||i[1]!==a||i[2]!==d||i[3]!==l||i[4]!==o||i[5]!==s?(t=e=>{try{d?.post?.("dashboard/v1/events/history",{eventType:e,document:{id:r,type:a,resource:{id:l,type:o,schemaName:s}}})}catch(e){throw console.error("Failed to record history event:",e),e}},i[0]=r,i[1]=a,i[2]=d,i[3]=l,i[4]=o,i[5]=s,i[6]=t):t=i[6];let c=t;return i[7]!==c?(n={recordEvent:c},i[7]=c,i[8]=n):n=i[8],n}function B6({operationName:e,comlinkEventType:t,hasComlink:n,recordEvent:i,preRecordEvent:r=e=>e()}){return function(a){return n?{...a,[e]:{...a[e],execute:(...n)=>{r(()=>i(t)),a[e].execute(...n)}}}:a}}function B9(e,t,n){let i,r,a=(0,j.c)(9),o=cu();a[0]!==t||a[1]!==o.pair||a[2]!==e||a[3]!==n?(i=o.pair.editOperations(e,t,n),a[0]=t,a[1]=o.pair,a[2]=e,a[3]=n,a[4]=i):i=a[4];let l=(0,tF.J)(i);return a[5]!==l||a[6]!==t||a[7]!==e?(r={api:l,docTypeName:t,publishedDocId:e},a[5]=l,a[6]=t,a[7]=e,a[8]=r):r=a[8],function(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(28),{api:u,publishedDocId:p,docTypeName:m,version:h}=e,{activeWorkspace:f}=B8();c[0]!==p||c[1]!==h?(t=h?(0,tG.ct)(p,h):p,c[0]=p,c[1]=h,c[2]=t):t=c[2],c[3]!==f.dataset||c[4]!==f.projectId?(n=[f.projectId,f.dataset],c[3]=f.dataset,c[4]=f.projectId,c[5]=n):n=c[5];let g=n.join(".");c[6]!==f.name||c[7]!==m||c[8]!==t||c[9]!==g?(i={resourceType:"studio",documentId:t,documentType:m,resourceId:g,schemaName:f.name},c[6]=f.name,c[7]=m,c[8]=t,c[9]=g,c[10]=i):i=c[10];let{recordEvent:y}=B4(i),C=cg(),x=(0,tF.J)(C.capabilities),[b,v]=(0,_.useState)(!1);c[11]!==b?(r=e=>{b||(e(),v(!0))},c[11]=b,c[12]=r):r=c[12];let w=r,k=x?.comlink;c[13]!==y||c[14]!==k?(a={hasComlink:k,recordEvent:y},c[13]=y,c[14]=k,c[15]=a):a=c[15];let S=a;c[16]!==S?(o=B6({...S,operationName:"delete",comlinkEventType:"deleted"}),c[16]=S,c[17]=o):o=c[17];let I=o;c[18]!==S?(l=B6({...S,operationName:"del",comlinkEventType:"deleted"}),c[18]=S,c[19]=l):l=c[19];let T=l;c[20]!==S||c[21]!==w?(s=B6({...S,operationName:"patch",comlinkEventType:"edited",preRecordEvent:w}),c[20]=S,c[21]=w,c[22]=s):s=c[22];let E=s;return c[23]!==u||c[24]!==T||c[25]!==I||c[26]!==E?(d=I(T(E(u))),c[23]=u,c[24]=T,c[25]=I,c[26]=E,c[27]=d):d=c[27],d}(r)}function Ye(e,t,n,i){let r,a=(0,j.c)(10);if("published"===i||"draft"===i)throw Error("Version cannot be published or draft");let o=cu();e:{let l;if("low"===(void 0===n?"default":n)){let n;if(a[0]!==t||a[1]!==o.pair||a[2]!==e||a[3]!==i){let r=o.pair.editState(e,t,i).pipe((0,e7.u)());n=(0,eZ.h)(r.pipe((0,eH.s)(1)),r.pipe((0,tf.i)(1),(0,ty.s)(Yt))),a[0]=t,a[1]=o.pair,a[2]=e,a[3]=i,a[4]=n}else n=a[4];r=n;break e}
1278a[5]!==t||a[6]!==o.pair||a[7]!==e||a[8]!==i?(l=o.pair.editState(e,t,i),a[5]=t,a[6]=o.pair,a[7]=e,a[8]=i,a[9]=l):l=a[9],r=l}return(0,tF.J)(r)}function Yt(){return(0,eK.O)(1e3)}let Yn={validation:[],isValidating:!1};function Yi(e,t,n){let i,r=(0,j.c)(5),a=cu();return r[0]!==t||r[1]!==a.pair||r[2]!==n||r[3]!==e?(i=a.pair.validation(e,t,n),r[0]=t,r[1]=a.pair,r[2]=n,r[3]=e,r[4]=i):i=r[4],(0,tF.J)(i,Yn)}function Yr(e,t){return e?"published"===e?"published":t.find(t=>cN(t._id)===e)||e:"drafts"}function Ya(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,v,S,I,T,E,$,D,z,P,R,N,O,V,M,L,F,B,Y,H,U,Z,q,W=(0,j.c)(164),{documentType:J,getFormDocumentValue:K,documentId:G,initialValue:X,changesOpen:Q,comparisonValue:ee,releaseId:et,initialFocusPath:en,selectedPerspectiveName:ei,readOnly:er,onFocusPath:ea,displayInlineChanges:eo}=e,el=void 0!==Q&&Q,es=R8(),ed=cp(),{data:ec}=gU();W[0]!==G?(t={documentId:G},W[0]=G,W[1]=t):t=W[1];let{data:eu}=Rf(t);cY(),W[2]!==J||W[3]!==es?(n=es.get(J),W[2]=J,W[3]=es,W[4]=n):n=W[4];let ep=n;if(!ep)throw Error(`Schema type for '${J}' not found`);let em=!!ep.liveEdit,eh=(0,tG.IM)(G),ef=(0,tK.Jr)();W[5]!==G?(i={documentId:G},W[5]=G,W[6]=i):i=W[6];let{sortedDocumentList:eg}=Ry(i);W[7]!==G?(r={documentId:G},W[7]=G,W[8]=r):r=W[8];let ey=Rx(r);W[9]!==eu||W[10]!==eg[0]||W[11]!==eg.length?(a=eg.length>0?eu.find(e=>(0,tG._S)(e)===cN(eg[0]._id)):void 0,W[9]=eu,W[10]=eg[0],W[11]=eg.length,W[12]=a):a=W[12];let eC=a;e:{let e;if(rz(ei)){o=void 0;break e}if(eu.some(e=>(0,tG._S)(e)===ei)||ei&&(!eu.length||!ey)){o=ei;break e}let t=eC??"";W[13]!==t?(e=(0,tG._S)(t),W[13]=t,W[14]=e):e=W[14],o=e}let ex=o,eb=Ye(G,J,"default",ex),ev=(Z=(0,j.c)(5),q=cu(),Z[0]!==J||Z[1]!==q.pair||Z[2]!==G||Z[3]!==ex?(U=q.pair.documentEvents(G,J,ex).pipe((0,eV.T)(B2),(0,eV.T)(B1),(0,eM.n)(BQ),(0,tr.Z)(BX),(0,eQ.F)()),Z[0]=J,Z[1]=q.pair,Z[2]=G,Z[3]=ex,Z[4]=U):U=
1278Z[4],(0,tF.J)(U,BX));esn("reconnecting"===ev);let[ej,ew]=(0,_.useState)(en||rM);t:{let e;W[15]!==G||W[16]!==J||W[17]!==X?.value?(e=X?.value||{_id:G,_type:J},W[15]=G,W[16]=J,W[17]=X?.value,W[18]=e):e=W[18];let t=e;if(et&&!rz(et)){if(eb.version&&v5(eb.version)){l=eb.published||t;break t}l=eb.version||eb.draft||eb.published||t;break t}if(ei&&uS(ei)){let e;W[19]!==t||W[20]!==G||W[21]!==J||W[22]!==eb.published||W[23]!==em?(e=eb.published||(em?t:{_id:G,_type:J}),W[19]=t,W[20]=G,W[21]=J,W[22]=eb.published,W[23]=em,W[24]=e):e=W[24],l=e;break t}if(ei||ey){l=eb.version||eb.draft||eb.published||t;break t}l=eb?.draft||eb?.published||t}let e_=l,{validation:ek}=Yi(e_._id,J,!et),eS=ai(ek);W[25]!==G||W[26]!==eb||W[27]!==e_?(s={strict:!0,displayed:e_,documentId:G,editState:eb},W[25]=G,W[26]=eb,W[27]=e_,W[28]=s):s=W[28];let{previousId:eI}=B7(s),eT=eI??"";W[29]!==eT?(d=(0,tG._S)(eT),W[29]=eT,W[30]=d):d=W[30];let eE=Ye(G,J,"low",d);n:{if("function"==typeof ee){let e;W[31]!==ee||W[32]!==eE?(e=ee(eE),W[31]=ee,W[32]=eE,W[33]=e):e=W[33],c=e;break n}c=ee}let e$=c;W[34]===Symbol.for("react.memo_cache_sentinel")?(u=[],W[34]=u):u=W[34];let[eA,eD]=(0,_.useState)(u);W[35]!==ed||W[36]!==e_._id?(p=()=>{let e=ed.documentPresence(e_._id,{excludeVersions:!0}).subscribe(e=>{eD(e)});return()=>{e.unsubscribe()}},m=[ed,e_._id],W[35]=ed,W[36]=e_._id,W[37]=p,W[38]=m):(p=W[37],m=W[38]),(0,_.useEffect)(p,m);let[ez,eP]=(0,_.useState)(rM),[eR,eN]=(0,_.useState)(),[eO,eL]=(0,_.useState)(),[eF,eB]=(0,_.useState)();W[39]!==eL?(h=(e,t)=>{eL(n=>BV(n,e,t))},W[39]=eL,W[40]=h):h=W[40];let eY=h;W[41]!==eB?(f=(e,t)=>{eB(n=>BV(n,e,t))},W[41]=eB,W[42]=f):f=W[42];let eH=f;W[43]!==eN?(g=(e,t)=>eN(n=>BV(n,e,t)),W[43]=eN,W[44]=g):g=W[44];let eU=g,eZ=e_._createdAt?"update":"create",eq=ex?(0,tG.ct)(eh,ex):em?eb?.draft?._id||eh:(0,tG.T4)(G);W[45]!==eq||W[46]!==e_?(y={...e_,_id:eq},W[45]=eq,W[46]=e_,W[47]=y):y=W[47];let eW=y;W[48]!==eW||W[49]!==eZ?(C={document:eW,permission:eZ},W[48]=eW,W[49]=eZ,W[50]=C):C=W[50];let[eJ,eK]=function(e){let t,n,i=(0,j.c)(5),{document:r,permission:a,grantsStore:o}=e,l=cs(),s=o||l,[d,c]=(0,_.useReducer)(dp,du),u=(0,_.useRef)(null);return i[0]!==r||i[1]!==s||i[2]!==a?(t=()=>(c({type:"loading"}),u.current&&u.current.unsubscribe(),u.current=dc({grantsStore:s,document:r,permission:a}).pipe((0,eQ.F)(dm)).subscribe({next:e=>c({type:"value",value:e}),error:e=>c({type:"error",error:e})}),()=>{u.current&&(u.current.unsubscribe(),u.current=null)}),n=[s,r,a],i[0]=r,i[1]=s,i[2]=a,i[3]=t,i[4]=n):(t=i[3],n=i[4]),(0,_.useEffect)(t,n),d}(C),eG=!e_?._id;W[51]!==e_?(x=BG(BK(e_)),W[51]=e_,W[52]=x):x=W[52];let eX=x,e1="connected"===ev&&eb.ready&&!X?.loading;W[53]!==ec||W[54]!==ei?(b=Yr(ei,ec),W[53]=ec,W[54]=ei,W[55]=b):b=W[55];let e2=b;W[56]!==e2?(v=!!rG(e2)&&uT(e2),W[56]=e2,W[57]=v):v=W[57];let e5=v,{isLockedByCanvas:e0}=BJ(e_._id);W[58]!==ev||W[59]!==eb||W[60]!==eX||W[61]!==e0||W[62]!==eG||W[63]!==eK||W[64]!==e5||W[65]!==em||W[66]!==ey||W[67]!==eJ?.granted||W[68]!==er||W[69]!==e1||W[70]!==et||W[71]!==ep||W[72]!==ei||W[73]!==e_?(S=()=>{let e=!eK&&!eJ?.granted,t=!(0,nH.Yh)(ep,"update"),n=eG&&!(0,nH.Yh)(ep,"create"),i="reconnecting"===ev,r=eb.transactionSyncLock?.enabled,a=!!e_&&v5(e_);return!!(eb.version&&!eb.draft&&!eb.published&&ey&&ei!==(0,tG._S)(eb.version._id)&&!1===de(eb)||em&&eb.draft?._id)||!em&&"published"===ei||!!et&&(0,tG._S)(e_._id)!==et&&!1===de(eb)||!e1||!!e0||!!e||!!t||!!n||!!i||!!r||!!eX||!!a||!!e5||("function"==typeof er?er(eb):!!er)},W[58]=ev,W[59]=eb,W[60]=eX,W[61]=e0,W[62]=eG,W[63]=eK,W[64]=e5,W[65]=em,W[66]=ey,W[67]=eJ?.granted,W[68]=er,W[69]=e1,W[70]=et,W[71]=ep,W[72]=ei,W[73]=e_,W[74]=S):S=W[74],W[75]!==S?(I=S(),W[75]=S,W[76]=I):I=W[76];let e7=I,{patch:e3}=B9(G,J,ex),e8=(0,_.useRef)(Yl);W[77]===Symbol.for("react.memo_cache_sentinel")?(T=e=>e8.current(e),W[77]=T):T=W[77];let e4=T;W[78]!==eb.draft||W[79]!==eb.published||W[80]!==X?.value||W[81]!==eX||W[82]!==e3||W[83]!==e7||W[84]!==ef?(E=()=>{e7&&!eX?e8.current=Yo:e8.current=e=>{eb.draft||eb.published||ef.log(Sk),e3.execute(e.patches.map(Yu),X?.value)}},W[78]=eb.draft,W[79]=eb.published,W[80]=X?.value,W[81]=eX,W[82]=e3,W[83]=e7,W[84]=ef,W[85]=E):E=W[85],W[86]!==eb.draft||W[87]!==eb.published||W[88]!==X||W[89]!==eX||W[90]!==e3||W[91]!==e7||W[92]!==ef?($=[eb.draft,eb.published,X,e3,ef,e7,eX],W[86]=eb.draft,W[87]=eb.published,W[88]=X,W[89]=eX,W[90]=e3,W[91]=e7,W[92]=ef,W[93]=$):$=W[93],(0,_.useInsertionEffect)(E,$);i:{if(K){let e;W[94]!==K||W[95]!==e_?(e=K(e_),W[94]=K,W[95]=e_,W[96]=e):e=W[96],D=e;break i}D=e_}let e6=D;W[97]!==eE?(z=dt(eE),W[97]=eE,W[98]=z):z=W[98];let e9=null!==z,te=e$||e_;W[99]!==el||W[100]!==eF||W[101]!==eO||W[102]!==eo||W[103]!==eR||W[104]!==ej||W[105]!==e6||W[106]!==e9||W[107]!==ez||W[108]!==eA||W[109]!==e7||W[110]!==ep||W[111]!==e2||W[112]!==te||W[113]!==eS?(P={schemaType:ep,documentValue:e6,readOnly:e7,comparisonValue:te,focusPath:ej,openPath:ez,perspective:e2,collapsedPaths:eO,presence:eA,validation:eS,c
1278ollapsedFieldSets:eF,fieldGroupState:eR,changesOpen:el,hasUpstreamVersion:e9,displayInlineChanges:eo},W[99]=el,W[100]=eF,W[101]=eO,W[102]=eo,W[103]=eR,W[104]=ej,W[105]=e6,W[106]=e9,W[107]=ez,W[108]=eA,W[109]=e7,W[110]=ep,W[111]=e2,W[112]=te,W[113]=eS,W[114]=P):P=W[114];let tt=function(e){let t,n,i,r,a,o,l,s=(0,j.c)(42),{comparisonValue:d,documentValue:c,fieldGroupState:u,collapsedFieldSets:p,collapsedPaths:m,focusPath:h,openPath:f,presence:g,validation:y,readOnly:C,changesOpen:x,schemaType:b,perspective:v,hasUpstreamVersion:w,displayInlineChanges:k}=e,S=o5(),[I]=(0,_.useState)(BU),[T]=(0,_.useState)(BH),[E]=(0,_.useState)(BY),[$]=(0,_.useState)(BB);s[0]!==u||s[1]!==$?(t=$(u),s[0]=u,s[1]=$,s[2]=t):t=s[2];let A=t,[D]=(0,_.useState)(BF);s[3]!==m||s[4]!==D?(n=D(m),s[3]=m,s[4]=D,s[5]=n):n=s[5];let z=n,[P]=(0,_.useState)(BL);s[6]!==p||s[7]!==P?(i=P(p),s[6]=p,s[7]=P,s[8]=i):i=s[8];let R=i;s[9]!==S||s[10]!==c||s[11]!==I||s[12]!==b?(r=I({currentUser:S,documentValue:c,schemaType:b}),s[9]=S,s[10]=c,s[11]=I,s[12]=b,s[13]=r):r=s[13],s[14]!==S||s[15]!==c||s[16]!==C||s[17]!==T||s[18]!==b?(a=T({currentUser:S,documentValue:c,schemaType:b,readOnly:C}),s[14]=S,s[15]=c,s[16]=C,s[17]=T,s[18]=b,s[19]=a):a=s[19],s[20]!==r||s[21]!==a?(o={hidden:r,readOnly:a},s[20]=r,s[21]=a,s[22]=o):o=s[22];let{hidden:N,readOnly:O}=o,V=c&&v5(c)?rM:y;return s[23]!==x||s[24]!==d||s[25]!==S||s[26]!==k||s[27]!==c||s[28]!==h||s[29]!==w||s[30]!==N||s[31]!==f||s[32]!==v||s[33]!==E||s[34]!==g||s[35]!==O||s[36]!==R||s[37]!==z||s[38]!==A||s[39]!==b||s[40]!==V?(l=E({schemaType:b,fieldGroupState:A,collapsedFieldSets:R,collapsedPaths:z,documentValue:c,comparisonValue:d,focusPath:h,openPath:f,readOnly:O,hidden:N,currentUser:S,presence:g,validation:V,changesOpen:x,perspective:v,hasUpstreamVersion:w,displayInlineChanges:k}),s[23]=x,s[24]=d,s[25]=S,s[26]=k,s[27]=c,s[28]=h,s[29]=w,s[30]=N,s[31]=f,s[32]=v,s[33]=E,s[34]=g,s[35]=O,s[36]=R,s[37]=z,s[38]=A,s[39]=b,s[40]=V,s[41]=l):l=s[41],l}(P),tn=(0,_.useRef)(tt);W[115]!==tt?(R=()=>{tn.current=tt},N=[tt],W[115]=tt,W[116]=R,W[117]=N):(R=W[116],N=W[117]),(0,_.useEffect)(R,N),W[118]!==eb?(O={editState:eb},W[118]=eb,W[119]=O):O=W[119],function(e){let t,n,i,r,a=(0,j.c)(18),{editState:o}=e,l=cg(),s=(0,tF.J)(l.capabilities),{activeWorkspace:d}=B8(),c=o.version??o.draft??o.published,u=c?._id??o.id,p=o.type;a[0]!==d.dataset||a[1]!==d.projectId?(t=[d.projectId,d.dataset],a[0]=d.dataset,a[1]=d.projectId,a[2]=t):t=a[2];let m=t.join(".");a[3]!==d.name||a[4]!==o.type||a[5]!==u||a[6]!==m?(n={resourceType:"studio",documentId:u,documentType:p,resourceId:m,schemaName:d.name},a[3]=d.name,a[4]=o.type,a[5]=u,a[6]=m,a[7]=n):n=a[7];let{recordEvent:h}=B4(n),f=(0,_.useRef)(!1);a[8]!==s?.comlink||a[9]!==c||a[10]!==o.ready||a[11]!==h?(i=()=>{let e=o.ready&&null!==c;s?.comlink&&e&&!f.current&&(f.current=!0,h("viewed"))},a[8]=s?.comlink,a[9]=c,a[10]=o.ready,a[11]=h,a[12]=i):i=a[12];let g=s?.comlink;a[13]!==c||a[14]!==o.ready||a[15]!==h||a[16]!==g?(r=[g,c,o.ready,h],a[13]=c,a[14]=o.ready,a[15]=h,a[16]=g,a[17]=r):r=a[17],(0,_.useEffect)(i,r)}(O),W[120]!==eB||W[121]!==eL||W[122]!==eN||W[123]!==eP?(V=e=>{var t;(t=tn.current,[...e.map((t,n)=>({type:"expandPath",path:e.slice(0,n+1)})),...Bq(t,e)]).forEach(e=>{"expandPath"===e.type&&eL(t=>BV(t,e.path,!1)),"expandFieldSet"===e.type&&eB(t=>BV(t,e.path,!1)),"setSelectedGroup"===e.type&&eN(t=>BV(t,e.path,e.groupName))}),eP(e)},W[120]=eB,W[121]=eL,W[122]=eN,W[123]=eP,W[124]=V):V=W[124];let ti=V;W[125]!==ed||W[126]!==e_._id?(M=(0,A.A)((e,t)=>{ed.setLocation([{type:"document",documentId:e_._id,path:e,lastActiveAt:new Date().toISOString(),selection:t?.selection}])},1e3,{leading:!0,trailing:!0}),W[125]=ed,W[126]=e_._id,W[127]=M):M=W[127];let ta=M;W[128]===Symbol.for("react.memo_cache_sentinel")?(L=[],W[128]=L):L=W[128];let to=(0,_.useRef)(L);W[129]!==ti||W[130]!==ea||W[131]!==ew||W[132]!==ta?(F=(e,t)=>{let n=(0,w.p0)(e);n!==to.current&&(ew((0,w.p0)(n)),ti((0,w.p0)(n.slice(0,-1))),to.current=n,ea?.(n)),ta(n,t)},W[129]=ti,W[130]=ea,W[131]=ew,W[132]=ta,W[133]=F):F=W[133];let tl=F;W[134]!==ea||W[135]!==ew?(B=e=>{ew(rM),to.current!==rM&&(to.current=rM,ea?.(rM))},W[134]=ea,W[135]=ew,W[136]=B):B=W[136];let ts=B;W[137]!==ti||W[138]!==ea||W[139]!==ew?(Y=e=>{k(to.current,e)||(ew(e),ti(e),ea?.(e),to.current=e)},W[137]=ti,W[138]=ea,W[139]=ew,W[140]=Y):Y=W[140];let td=Y;return W[141]!==eF||W[142]!==eO||W[143]!==ev||W[144]!==eb||W[145]!==ej||W[146]!==tt||W[147]!==ts||W[148]!==tl||W[149]!==eH||W[150]!==eY||W[151]!==td||W[152]!==eU||W[153]!==ti||W[154]!==e9||W[155]!==eK||W[156]!==ez||W[157]!==eJ||W[158]!==e1||W[159]!==ep||W[160]!==eE||W[161]!==eS||W[162]!==e_?(H={editState:eb,upstreamEditState:eE,c
1278onnectionState:ev,focusPath:ej,validation:eS,ready:e1,value:e_,formState:tt,permissions:eJ,isPermissionsLoading:eK,formStateRef:tn,hasUpstreamVersion:e9,collapsedFieldSets:eF,collapsedPaths:eO,openPath:ez,schemaType:ep,onChange:e4,onPathOpen:ti,onProgrammaticFocus:td,onBlur:ts,onFocus:tl,onSetActiveFieldGroup:eU,onSetCollapsedPath:eY,onSetCollapsedFieldSet:eH},W[141]=eF,W[142]=eO,W[143]=ev,W[144]=eb,W[145]=ej,W[146]=tt,W[147]=ts,W[148]=tl,W[149]=eH,W[150]=eY,W[151]=td,W[152]=eU,W[153]=ti,W[154]=e9,W[155]=eK,W[156]=ez,W[157]=eJ,W[158]=e1,W[159]=ep,W[160]=eE,W[161]=eS,W[162]=e_,W[163]=H):H=W[163],H}function Yo(){throw Error("Attempted to patch a read-only document")}function Yl(){throw Error("Attempted to patch the Sanity document during initial render or in an `useInsertionEffect`. Input components should only call `onChange()` in a useEffect or an event handler.")}let Ys=/^\d+$/;function Yd(e){return e.split(/[[.\]]/g).filter(Boolean).map(e=>e.includes("==")?function(e){let[t,n]=e.split("==");return{[t]:n.replace(/^['"]/,"").replace(/['"]$/,"")}}(e):Ys.test(e)?Number(e):e)}function Yc(e,t){return(0,M.A)(t.map(t=>{var n,i;let r;return n=e,i=t,(0,M.A)(Object.keys(i).filter((r=["id","ifRevisionID","query"],e=>!r.includes(e))).map(e=>{if("unset"===e)return i.unset.map(e=>({type:"unset",path:Yd(e),origin:n}));if("insert"===e){let e="before"in i.insert?"before":"after";return{type:"insert",position:e,path:Yd(i.insert[e]),items:i.insert.items,origin:n}}return Object.keys(i[e]).map(t=>"set"===e?{type:"set",path:Yd(t),value:i[e][t],origin:n}:"inc"===e||"dec"===e?{type:e,path:Yd(t),value:i[e][t],origin:n}:"setIfMissing"===e?{type:"setIfMissing",path:Yd(t),value:i[e][t],origin:n}:"diffMatchPatch"===e?{type:e,path:Yd(t),value:i[e][t],origin:n}:(console.warn(Error(`Unsupported patch type: ${e}`)),null)).filter(Boolean)}))}))}function Yu(e){if(e.patchType!==hH&&e.type)throw Error(`Patch is missing "patchType" - import and use "${e.type}()" from "sanity/form"`);if(e.patchType!==hH)throw Error('Patch is missing "patchType" - import and use the patch method helpers from "sanity/form"');let t=(0,ie.jN)(e.path||[]);if("insert"===e.type){let{position:n,items:i}=e;return{insert:{[n]:t,items:i}}}if("unset"===e.type)return{unset:[t]};if(!e.type)throw Error(`Missing patch type in patch ${JSON.stringify(e)}`);return t?{[e.type]:{[t]:e.value}}:{[e.type]:e.value}}let Yp=(0,_.memo)(function(e){let t,n,i,r=(0,j.c)(9),{transform:a}=e,o=fr();r[0]!==o||r[1]!==a?(t=e=>{let t=a(e.patches);o.onChange(gD.from(t))},r[0]=o,r[1]=a,r[2]=t):t=r[2];let l=t;r[3]!==o||r[4]!==l?(n={...o,onChange:l},r[3]=o,r[4]=l,r[5]=n):n=r[5];let s=n;return r[6]!==s||r[7]!==e.children?(i=(0,v.jsx)(S.q4.Provider,{value:s,children:e.children}),r[6]=s,r[7]=e.children,r[8]=i):i=r[8],i});function Ym(e){let t,n,i,r=(0,j.c)(7),{schemaType:a}=e,o=aO();r[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"vX"},r[0]=t):t=r[0];let l=el0(t);r[1]!==l||r[2]!==o||r[3]!==a?(n=e=>{if(!o?.libraryId)throw Error("No libraryId found");let t=a&&(0,eD.F0)(a)?a.options?.metadata:void 0;if(Cf(a))return(0,tp._)((0,eL.H)(e).pipe((0,eV.T)(e=>({kind:"assetDocumentId",value:e.asset._id,mediaLibraryProps:{mediaLibraryId:o.libraryId,assetId:e.asset._id,assetInstanceId:e.assetInstanceId}})),(0,tC.$)()),{defaultValue:[]});let n=(0,eL.H)(e).pipe(function({client:e,mediaLibraryId:t,metadataPropsFromSchema:n}){return(0,tx.Z)(i=>e.observable.request({method:"POST",url:`/assets/media-library-link/${e.config().dataset}?${n?.map(e=>`meta[]=${e}`).join("&")||""}`,withCredentials:!0,body:{mediaLibraryId:t,assetInstanceId:i.assetInstanceId,assetId:i.asset._id},tag:"media-library.link-asset"}).pipe((0,tu.L)({count:10,delay(e){var t;let n,i;if(t=e,n=422===(0,V.A)(t,["statusCode"]),i="Media library asset is not ready"===(0,V.A)(t,["response","body","message"]),n&&i)return(0,eK.O)(2e3);throw e}}),(0,eV.T)(({document:e})=>({kind:"assetDocumentId",value:e._id,mediaLibraryProps:{mediaLibraryId:t,assetId:i.asset._id,assetInstanceId:i.assetInstanceId}})),(0,tb.c)(1e3)),5)}({client:l,mediaLibraryId:o.libraryId,metadataPropsFromSchema:t}),(0,tC.$)());return(0,tp._)(n,{defaultValue:[]})},r[1]=l,r[2]=o,r[3]=a,r[4]=n):n=r[4];let s=n;return r[5]!==s?(i={onLinkAssets:s},r[5]=s,r[6]=i):i=r[6],i}function Yh(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$,A=(0,j.c)(71),D=(0,I.DP)(),{t:z}=as(),{dark:P}=D.sanity.color,R=aO(),N=aV(),O=N.__internal.hosts.app,V=aN(),{dialogHeaderTitle:M,onClose:L,open:F,onSelect:B,selectionType:Y,ref:H,selectAssetType:U,schemaType:Z}=e,q=void 0===Y?"single":Y,W=(0,T.dj)(),[J,K]=(0,_.useState)(e.selection),[G,X]=(0,_.useState)(!1);A[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],A[0]=t):t=A[0];let[Q,ee]=(0,_.useState)(t);A[1]!==N.__internal.apiVersion?(n={apiVersion:N.__internal.apiVersion},A[1]=N.__internal.apiVersion,A[2]=n):n=A[2];let et=el0(n),en=cY(),ei=R8();A[3]===Symbol.for("react.memo_cache_sentinel")?(i=[],A[3]=i):i=A[3];let er=gI(i);A[4]!==et||A[5]!==er||A[6]!==R?.libraryId||A[7]!==ei||A[8]!==Z||A[9]!==en.i18n?(r=async e=>{var t;let n={_type:"mainImage",media:{_ref:`media-library:${R?.libraryId}:${e.asset._id}`,_type:"globalDocumentReference",_weak:!0}
1278};return(await (t={value:n,getClient:()=>et,path:[],schema:ei,type:Z,parent:er,i18n:en.i18n,environment:"studio",document:er,getDocumentExists:YC},(0,e6.s)(sz(t)))).filter(e=>"__internal_metadata"in e&&"object"==typeof e.__internal_metadata&&null!==e.__internal_metadata&&"name"in e.__internal_metadata&&e.__internal_metadata?.name==="media")},A[4]=et,A[5]=er,A[6]=R?.libraryId,A[7]=ei,A[8]=Z,A[9]=en.i18n,A[10]=r):r=A[10];let ea=r;A[11]!==Z?.options?.mediaLibrary?.filters?(a=Z?.options?.mediaLibrary?.filters||[],A[11]=Z?.options?.mediaLibrary?.filters,A[12]=a):a=A[12],A[13]!==a?(o=a.map(Yy),A[13]=a,A[14]=o):o=A[14];let eo=o;A[15]===Symbol.for("react.memo_cache_sentinel")?(l={privateAssets:!0},A[15]=l):l=A[15];let el=P?"dark":"light";A[16]!==U?(s=U?[U]:[],A[16]=U,A[17]=s):s=A[17],A[18]!==V||A[19]!==eo||A[20]!==q||A[21]!==el||A[22]!==s?(d={auth:V,capabilities:l,pluginFilters:eo,scheme:el,selectAssetTypes:s,selectionType:q},A[18]=V,A[19]=eo,A[20]=q,A[21]=el,A[22]=s,A[23]=d):d=A[23];let es=aM("/assets",d);A[24]!==Z?(c={schemaType:Z},A[24]=Z,A[25]=c):c=A[25];let{onLinkAssets:ed}=Ym(c);A[26]!==J||A[27]!==L||A[28]!==ed||A[29]!==B||A[30]!==z||A[31]!==W?(u=async()=>{try{X(!0);let e=await ed([J[0]]);B(e),L()}catch(e){W.push({closable:!0,status:"error",id:"insert-asset-error",title:z("asset-source.dialog.insert-asset-error")}),console.error(e),X(!1)}},A[26]=J,A[27]=L,A[28]=ed,A[29]=B,A[30]=z,A[31]=W,A[32]=u):u=A[32];let ec=u;A[33]!==L?(p=()=>{L()},A[33]=L,A[34]=p):p=A[34];let eu=p;A[35]!==ea?(m=async e=>{if(0===e.length)return void ee([]);let t=await ea(e[0]);t.some(Yg)&&ee(t)},A[35]=ea,A[36]=m):m=A[36];let ep=m;A[37]!==ep?(h=e=>{"assetSelection"===e.type&&(K(e.selection),ep(e.selection))},A[37]=ep,A[38]=h):h=A[38];let{setIframe:em}=aL(O,h);return F?(A[39]===Symbol.for("react.memo_cache_sentinel")?(f={position:"relative",minHeight:"2dvh"},A[39]=f):f=A[39],A[40]!==Q?(g=Q.length>0&&(0,v.jsx)(xA,{fontSize:2,placement:"top",validation:Q}),A[40]=Q,A[41]=g):g=A[41],A[42]!==z?(y=z("asset-source.dialog.button.cancel"),A[42]=z,A[43]=y):y=A[43],A[44]!==eu||A[45]!==y?(C=(0,v.jsx)(tL.$n,{mode:"bleed",onClick:eu,text:y,size:"large"}),A[44]=eu,A[45]=y,A[46]=C):C=A[46],A[47]!==J.length||A[48]!==Q?(x=0===J.length||Q.some(Yf),A[47]=J.length,A[48]=Q,A[49]=x):x=A[49],A[50]!==z?(b=z("asset-source.dialog.button.select"),A[50]=z,A[51]=b):b=A[51],A[52]!==G||A[53]!==ec||A[54]!==x||A[55]!==b?(w=(0,v.jsx)(tL.$n,{onClick:ec,loading:G,disabled:x,text:b,size:"large",tone:"primary"}),A[52]=G,A[53]=ec,A[54]=x,A[55]=b,A[56]=w):w=A[56],A[57]!==g||A[58]!==C||A[59]!==w?(k=(0,v.jsx)(I.Zp,{width:"full",height:"fill",padding:3,shadow:1,style:f,children:(0,v.jsx)(I.so,{width:"full",gap:3,justify:"flex-end",children:(0,v.jsxs)(I.so,{width:"full",gap:2,justify:"flex-end",align:"center",children:[g,C,w]})})}),A[57]=g,A[58]=C,A[59]=w,A[60]=k):k=A[60],A[61]===Symbol.for("react.memo_cache_sentinel")?(S={position:"absolute",inset:0,borderTop:"1px solid",borderColor:"var(--card-border-color)",overflow:"hidden",display:"flex"},A[61]=S):S=A[61],A[62]!==es||A[63]!==em?(E=(0,v.jsx)(I.az,{style:S,children:(0,v.jsx)(aH,{ref:em,src:es})}),A[62]=es,A[63]=em,A[64]=E):E=A[64],A[65]!==M||A[66]!==eu||A[67]!==H||A[68]!==k||A[69]!==E?($=(0,v.jsx)(aF,{header:M,id:"media-library-plugin-dialog-select-assets",onClose:eu,onClickOutside:eu,open:!0,ref:H,"data-testid":"media-library-plugin-dialog-select-assets",width:3,footer:k,children:E}),A[65]=M,A[66]=eu,A[67]=H,A[68]=k,A[69]=E,A[70]=$):$=A[70],$):null}function Yf(e){return"error"===e.level}function Yg(e){return"error"===e.level}function Yy(e){return{type:"groq",name:e.name,query:e.query}}async function YC(){return!0}function Yx(e){let t,n,i,r,a,o,l=(0,j.c)(25),s=aO(),{schemaType:d}=e;l[0]!==d?(t={schemaType:d},l[0]=d,l[1]=t):t=l[1];let{onLinkAssets:c}=Ym(t),{open:u,onSelect:p,onClose:m,uploader:h}=e,f=aV(),g=aN(),y=(0,T.dj)(),{t:C}=as(),x=f.__internal.hosts.app,b=f.__internal.appBasePath,w=`${x}${b}/plugin/v1/library/${s?.libraryId}/upload?auth=${g}`,k=(0,_.useRef)(null),[S,I]=(0,_.useState)(!1);l[2]!==m||l[3]!==c||l[4]!==p||l[5]!==C||l[6]!==y?(n=async e=>{try{let t=await c(e);p(t),m()}catch(e){y.push({closable:!0,status:"error",id:"insert-asset-error",title:C("asset-source.dialog.insert-asset-error")}),console.error(e)}},l[2]=m,l[3]=c,l[4]=p,l[5]=C,l[6]=y,l[7]=n):n=l[7];let E=n;l[8]!==E||l[9]!==u||l[10]!==C||l[11]!==y||l[12]!==h?(i=e=>{u&&("pageLoaded"===e.type&&"upload"===e.page&&I(!0),"pageUnloaded"===e.type&&"upload"===e.page&&I(!1),"uploadProgress"===e.type&&h&&e.files.forEac
1278h(e=>{let{id:t,status:n,progress:i,error:r}=e;if("alreadyExists"===n){let e=h.getFiles().find(e=>e.id===t);e&&y.push({status:"warning",title:C("asset-sources.media-library.warning.file-already-exist.title",{filename:e.file.name}),description:C("asset-sources.media-library.warning.file-already-exist.description"),closable:!0,duration:1e4})}h.updateFile(t,{status:n,progress:i,error:r})}),"uploadResponse"===e.type&&h&&E(e.assets).then(()=>{"signalCompletion"in h&&"function"==typeof h.signalCompletion&&h.signalCompletion()}))},l[8]=E,l[9]=u,l[10]=C,l[11]=y,l[12]=h,l[13]=i):i=l[13];let{postMessage:$,setIframe:A}=aL(x,i);return(l[14]!==u||l[15]!==S||l[16]!==$||l[17]!==C||l[18]!==y||l[19]!==h?(r=()=>u&&h?(S&&h.getFiles().length>0&&h.getFiles().every(Yv)&&($({type:"uploadRequest",files:h.getFiles()}),I(!1)),k.current={uploader:h,unsubscribe:h.subscribe(e=>{"all-complete"===e.type&&e.files.filter(Yb).forEach(e=>{y.push({status:"warning",title:C("asset-sources.media-library.warning.file-already-exist.title",{filename:e.file.name}),description:C("asset-sources.media-library.warning.file-already-exist.description"),closable:!0,duration:1e4})}),"status"===e.type&&"aborted"===e.status&&$({type:"abortUploadRequest",files:[{id:e.file.id}]})})},k.current.unsubscribe):k.current?.unsubscribe(),a=[u,S,$,C,y,h,k],l[14]=u,l[15]=S,l[16]=$,l[17]=C,l[18]=y,l[19]=h,l[20]=r,l[21]=a):(r=l[20],a=l[21]),(0,_.useEffect)(r,a),u)?(l[22]!==w||l[23]!==A?(o=(0,v.jsx)(aH,{ref:A,src:w,hidden:!0}),l[22]=w,l[23]=A,l[24]=o):o=l[24],o):null}function Yb(e){return"alreadyExists"===e.status}function Yv(e){return"pending"===e.status}let Yj=(0,_.memo)((0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(41),{action:m,assetToOpen:h,assetType:f,dialogHeaderTitle:g,libraryId:y,onChangeAction:C,onClose:x,onSelect:b,schemaType:w,uploader:_}=e,k=void 0===m?"select":m,S=void 0===f?"image":f,{t:T}=as();p[0]===Symbol.for("react.memo_cache_sentinel")?(n={apiVersion:"vX"},p[0]=n):n=p[0];let E=el0(n);p[1]!==E?(i=E.config(),p[1]=E,p[2]=i):i=p[2];let $=i.projectId,A=Yw();p[3]!==C?(r=()=>{C&&C("select")},p[3]=C,p[4]=r):r=p[4];let D=r;if(!$)throw Error("No projectId found");let z="sanity.video"===S?"video":S,P="upload"===k;p[5]!==x||p[6]!==b||p[7]!==w||p[8]!==P||p[9]!==_?(a=(0,v.jsx)(Yx,{open:P,onClose:x,onSelect:b,schemaType:w,uploader:_}),p[5]=x,p[6]=b,p[7]=w,p[8]=P,p[9]=_,p[10]=a):a=p[10],p[11]!==g||p[12]!==w?.title||p[13]!==z||p[14]!==T?(o=g||T("asset-sources.media-library.select-dialog.title",{context:z,targetTitle:w?.title}),p[11]=g,p[12]=w?.title,p[13]=z,p[14]=T,p[15]=o):o=p[15];let R="select"===k;return p[16]===Symbol.for("react.memo_cache_sentinel")?(l=[],p[16]=l):l=p[16],p[17]!==x||p[18]!==b||p[19]!==t||p[20]!==w||p[21]!==z||p[22]!==o||p[23]!==R?(s=(0,v.jsx)(Yh,{dialogHeaderTitle:o,open:R,ref:t,onClose:x,onSelect:b,selection:l,schemaType:w,selectAssetType:z}),p[17]=x,p[18]=b,p[19]=t,p[20]=w,p[21]=z,p[22]=o,p[23]=R,p[24]=s):s=p[24],p[25]!==k||p[26]!==h||p[27]!==D||p[28]!==x||p[29]!==w||p[30]!==T?(d="openInSource"===k&&h&&(0,v.jsx)(aU,{asset:h,dialogHeaderTitle:T("asset-sources.media-library.open-in-source-dialog.title"),selectNewAssetButtonLabel:w?.title?T("asset-sources.media-library.open-in-source-dialog.button.select-new-asset",{targetTitle:w.title}):T("asset-sources.media-library.open-in-source-dialog.button.select-new-asset-fallback"),onClose:x,onSelectNewAsset:D}),p[25]=k,p[26]=h,p[27]=D,p[28]=x,p[29]=w,p[30]=T,p[31]=d):d=p[31],p[32]!==A||p[33]!==s||p[34]!==d?(c=(0,v.jsxs)(I.GD,{element:A,children:[s,d]}),p[32]=A,p[33]=s,p[34]=d,p[35]=c):c=p[35],p[36]!==y||p[37]!==$||p[38]!==c||p[39]!==a?(u=(0,v.jsxs)(aP,{projectId:$,libraryId:y,children:[a,c]}),p[36]=y,p[37]=$,p[38]=c,p[39]=a,p[40]=u):u=p[40],u})),Yw=()=>{let e,t,n=(0,j.c)(3),[i]=(0,_.useState)(Y_);return n[0]!==i?(e=()=>(i.classList.add("media-library-portal"),document.body.appendChild(i),()=>{document.body.removeChild(i)}),t=[i],n[0]=i,n[1]=e,n[2]=t):(e=n[1],t=n[2]),(0,_.useEffect)(e,t),i};function Y_(){return document.createElement("div")}let Yk=["complete","alreadyExists"];class YS{files=[];subscribers=new Set;deferredUpdates=new Map;checkAllComplete(){this.files.length>0&&this.files.every(e=>["complete","error","aborted","alreadyExists"].includes(e.status))&&(this.files.some(e=>
1278"error"===e.status)&&this.emit({type:"error",files:this.files.filter(e=>"error"===e.status)}),this.emit({type:"all-complete",files:this.files}),this.reset())}emit(e){this.subscribers.forEach(t=>t(e))}signalCompletion(){this.deferredUpdates.forEach(({status:e,progress:t,error:n},i)=>{let r=this.files.find(e=>e.id===i);r&&(n&&(r.error=n),void 0!==t&&(r.progress=t),r.status=e)}),this.deferredUpdates.clear(),this.checkAllComplete()}upload(e){for(let t of e){let e={id:(0,ii.A)(),file:t,progress:0,status:"pending"};this.files.push(e)}return this.files}abort(e){if(e){let t=this.files.find(t=>t.id===e.id);t&&["pending","uploading"].includes(t.status)&&this.updateFile(t.id,{status:"aborted"})}else for(let e of this.files)["pending","uploading"].includes(e.status)&&this.updateFile(e.id,{status:"aborted"});this.emit({type:"abort",files:this.files.filter(e=>"aborted"===e.status)}),this.checkAllComplete()}updateFile(e,t){let n=this.files.find(t=>t.id===e);if(n){if(t.error&&(n.error=t.error),void 0!==t.progress&&t.progress!==n.progress&&(n.progress=t.progress,this.emit({type:"progress",file:n,progress:100*n.progress})),t.status&&t.status!==n.status){if(Yk.includes(t.status))return void this.deferredUpdates.set(e,{status:t.status,progress:t.progress,error:t.error});n.status=t.status,this.emit({type:"status",file:n,status:n.status})}this.checkAllComplete()}}subscribe(e){for(let t of(this.subscribers.add(e),this.files))e({type:"status",file:t,status:t.status}),e({type:"progress",file:t,progress:t.progress});return this.checkAllComplete(),()=>{this.subscribers.delete(e)}}getFiles(){return this.files}reset(){this.files=[],this.deferredUpdates.clear()}}let YI="sanity-media-library";function YT(e){return e.source?.name===YI&&{type:"component"}}class YE extends Error{constructor({propertyName:e,path:t,cause:n}){const i=rZ(n)&&"string"==typeof n?.message?`: ${n.message}`:"";super(`An error occurred while resolving \`${e}\` from ${t.join(" > ")}${i}`),this.name="ConfigPropertyError",this.propertyName=e,this.cause=n,this.path=t}}class Y$ extends Error{constructor({causes:e,name:t,type:n}){const i=e.filter(Boolean).map(e=>rZ(e)&&"string"==typeof e?.message?e.message:String(e));super(`Could not resolve ${n}${t?` \`${t}\``:""}: 1279${i.map(e=>` - ${e}`).join(` 1280`)} 1281 1282`),this.name=t,this.causes=e,this.type=n}}function YA(e){return Math.abs(16807*e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0)%0x7fffffff)/0x7fffffff}let YD=["300","400","500","600","700"];function Yz(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(22),{title:c,subtitle:u}=e,p=(0,eI.DP)(),m=p.sanity.fonts.text.family,h=p.sanity.fonts.text.weights.medium,f=`${p.sanity.fonts.text.sizes[1].fontSize}px`;d[0]!==u||d[1]!==c?(t=()=>YA(`${c} ${u}`),d[0]=u,d[1]=c,d[2]=t):t=d[2];let[g]=(0,_.useState)(t),y=ez.Cv.filter(YN),C=y[Math.floor(g*y.length)];d[3]!==g?(n=()=>YA(g.toString()),d[3]=g,d[4]=n):n=d[4];let[x]=(0,_.useState)(n),b=YD[Math.floor(x*YD.length)],w=ez.OZ[C][b].hex;d[5]!==c?(i=c.split(/\s/g).map(YR).filter(Boolean).slice(0,2).map(YP),d[5]=c,d[6]=i):i=d[6];let k=i;if(d[7]!==w){let e=(0,iF.e$)(w,.4),t=(0,iF.a)(w,.4);r=(0,iF.Uv)(w,"readable",e)?(0,iF.Uv)(w,"readable",t)?(0,iF.W0)(w):t:e,d[7]=w,d[8]=r}else r=d[8];let S=r;return d[9]!==w?(a=(0,v.jsx)("rect",{width:32,height:32,rx:2,fill:w}),d[9]=w,d[10]=a):a=d[10],d[11]!==m||d[12]!==f||d[13]!==h?(o={fontFamily:m,fontWeight:h,fontSize:f,transform:"translateY(1px)"},d[11]=m,d[12]=f,d[13]=h,d[14]=o):o=d[14],d[15]!==k||d[16]!==o||d[17]!==S?(l=(0,v.jsx)("text",{x:"50%",y:"50%",textAnchor:"middle",alignmentBaseline:"middle",dominantBaseline:"middle",fill:S,style:o,children:k}),d[15]=k,d[16]=o,d[17]=S,d[18]=l):l=d[18],d[19]!==a||d[20]!==l?(s=(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:[a,l]}),d[19]=a,d[20]=l,d[21]=s):s=d[21],s}function YP(e){return[...e][0]?.toUpperCase()??""}function YR(e){return e.replace(/[^\p{L}\p{N}]/gu,"")}function YN(e){return"gray"!==e}function YO(e,t){return(0,v.jsx)(Yz,{title:e,subtitle:t})}function YV(e){return e}let YM={delete:"delete",discardChanges:"discardChanges",discardVersion:"discardVersion",duplicate:"duplicate",restore:"restore",publish:"publish",unpublish:"unpublish",unpublishVersion:"unpublishVersion",linkToCanvas:"linkToCanvas",editInCanvas:"editInCanvas",unlinkFromCanvas:"unlinkFromCanvas",schedule:"schedule"},YL=e=>!!e.action&&void 0!==YM[e.action];function YF(e){return e}let YB=(e,{document:t},n)=>{let i=t?.unstable_fieldActions;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`document.unstable_fieldActions\` to be an array or a function, but received ${typeof i}`)},YY=[{name:"copyField",useAction({path:e}){let t=yZ(),{onCopy:n}=eoS(),{t:i}=as("copy-paste"),r=0===e.length,a=i("copy-paste.field-action-copy-button.document.title"),o=i("copy-paste.field-action-copy-button.field.title"),l=r?a:o,s=(0,_.useCallback)(()=>{n(e,t([]),{context:{source:r?"documentFieldAction":"fieldAction"}})},[e,r,n,t]);return{type:"action",icon:eT.TdU,onAction:s,title:l}}},{name:"pasteField",useAction({path:e}){let{t}=as("copy-paste"),n=yZ(),i=0===e.length,r=t("copy-paste.field-action-paste-button.document.title"),a=t("copy-paste.field-action-paste-button.field.title"),o=i?r:a,{onPaste:l}=eoS(),s=(0,_.useCallback)(()=>{l(e,n([]),{context:{source:i?"documentFieldAction":"fieldAction"}})},[n,l,e,i]);return{type:"action",icon:eT.uiJ,onAction:s,title:o}}}
1282],YH=R1({name:"sanity/deprecated/scheduled-publishing",studio:{components:{layout:function(e){let t,n,i,r=(0,j.c)(5),a=(0,T.dj)();return r[0]!==a?(t=()=>{console.error(`Scheduled publishing plugin is added by default, please remove this plugin from your config. 1283 1284If you have a custom date config, you can use the scheduledPublishing API to customize the date input. 1285 1286See: https://www.sanity.io/docs/scheduled-publishing. 1287 `),a.push({id:"scheduled-publishing-deprecated",closable:!0,duration:6e4,status:"error",title:"Scheduled publishing plugin is deprecated",description:"The scheduled publishing plugin is now deprecated, you should remove the plugin from your configuration. If you have a custom date config, you can use the scheduledPublishing API to customize the date input. See: https://www.sanity.io/docs/scheduled-publishing."})},n=[a],r[0]=a,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,_.useEffect)(t,n),r[3]!==e?(i=e.renderDefault(e),r[3]=e,r[4]=i):i=r[4],i}}}}),YU=["scheduled-publishing"],YZ=({plugins:e=[],...t},n)=>{let i={config:t,path:[...n,t.name]},r=e.flatMap(e=>YZ(e,[...n,t.name])),a=r.find(e=>"scheduled-publishing"===e.config.name);return a&&r.push({path:a.path,config:YH()}),[...r.filter(e=>!YU.includes(e.config.name)),i]},Yq=Symbol("__decisionParametersSchema"),YW=[],YJ=[],YK=[],YG=(e,{schema:t},n)=>{let i=t?.types;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`schema.types\` to be an array or a function, but received ${py(i)}`)},YX=async(e,{document:t},n)=>{let i=t?.productionUrl;return i?await i(e,n):e},YQ=(e,{tools:t},n)=>{if(!t)return e;if("function"==typeof t)return t(e,n);if(Array.isArray(t))return[...e,...t];throw Error(`Expected \`tools\` to be an array or a function, but received ${py(t)}`)},Y1=(e,{schema:t},n)=>{let i=t?.templates;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`schema.templates\` to be an array or a function, but received ${py(i)}`)},Y2=(e,{i18n:t},n)=>{let i=t?.locales;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`i18n.locales\` to be an array or a function, but received ${py(i)}`)},Y5=(e,{i18n:t},n)=>{let i=t?.bundles;if(!i)return e;if(Array.isArray(i))return[...e,...i];if("function"==typeof i)return i(e,n);throw Error(`Expected \`i18n.bundles\` to be an array or a function, but received ${typeof i}`)},Y0=(e,{document:t},n)=>{let i=t?.badges;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`document.badges\` to be an array or a function, but received ${py(i)}`)},Y7=(e,{document:t},n)=>{let i=t?.actions;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`document.actions\` to be an array or a function, but received ${py(i)}`)},Y3=(e,{releases:t},n)=>{let i=t?.actions;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`releases.actions\` to be an array or a function, but received ${py(i)}`)},Y8=(e,{document:t},n)=>{let i=t?.newDocumentOptions;if(!i)return e;if("function"!=typeof i)throw Error(`Expected \`document.resolveNewDocumentOptions\` to be a function, but received ${py(i)}`);return i(e,n)},Y4=(e,{form:t},n)=>{let i=t?.file?.assetSources;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`form.file.assetSources\` to be an array or a function, but received ${py(i)}`)},Y6=e=>{let{config:t,schemaTypeName:n}=e;return YZ(t,[]).reduce((e,{config:t})=>{let i=t.form?.[n]?.directUploads;if(!i&&"boolean"!=typeof i)return e;if("boolean"==typeof i)return i;throw Error(`Expected \`form.${n}.directUploads\` to be a boolean, but received ${py(i)}`)},!0)},Y9=(e,{form:t},n)=>{let i=t?.image?.assetSources;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`form.image.assetSources\` to be an array or a function, but received ${py(i)}`)},He=(e,{document:t},n)=>{let i=t?.unstable_languageFilter;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`document.unstable_languageFilter\` to be an array or a function, but received ${py(i)}`)},Ht=(e,{document:t},n)=>{let i=t?.inspectors;if(!i)return e;if("function"==typeof i)return i(e,n);if(Array.isArray(i))return[...e,...i];throw Error(`Expected \`document.inspectors\` to be an array or a function, but received ${py(i)}`)}
1287,Hn=e=>{let{config:t,context:n,initialValue:i}=e;return YZ(t,[]).reduce((e,{config:t})=>{let i=t.document?.comments?.enabled??t.document?.unstable_comments?.enabled;if(!i&&"boolean"!=typeof i)return e;if("function"==typeof i)return i(n);if("boolean"==typeof i)return i;throw Error(`Expected \`document.comments.enabled\` to be a boolean or a function, but received ${py(i)}`)},i)},Hi=e=>{let{config:t,initialValue:n}=e;return YZ(t,[]).reduce((t,{config:n})=>{if(n.beta?.eventsAPI?.enabled)throw Error(`The \`beta.eventsAPI.enabled\` option has been removed. Use \`beta.eventsAPI.${e.key}\` instead.`);let i=n.beta?.eventsAPI?.[e.key];if(typeof i>"u")return t;if("boolean"==typeof i)return i;throw Error(`Expected \`beta.eventsAPI.${e.key}\` to be a boolean, but received ${py(i)}`)},n)},Hr=e=>{let{config:t,initialValue:n}=e;return YZ(t,[]).reduce((e,{config:t})=>{let n=t.mediaLibrary?.enabled;if(!n&&"boolean"!=typeof n)return e;if("boolean"==typeof n)return n;throw Error(`Expected \`mediaLibrary.enabled\` to be a boolean, but received ${py(n)}`)},n)},Ha=e=>{let{config:t,initialValue:n}=e;return YZ(t,[]).reduce((e,{config:t})=>{let n=t.mediaLibrary?.libraryId;if(!n&&"string"!=typeof n)return e;if("string"==typeof n)return n;throw Error(`Expected \`mediaLibrary.libraryId\` to be a string, but received ${py(n)}`)},n)},Ho=(e,{search:t})=>"u">typeof t?.enableLegacySearch?t.enableLegacySearch:e,Hl=(e,{document:t})=>{if("boolean"==typeof t?.drafts?.enabled)return t?.drafts?.enabled;if("u">typeof t?.drafts?.enabled)throw Error(`Expected boolean, but received ${py(t?.drafts?.enabled)}`);return e},Hs=(e,{advancedVersionControl:t},n)=>{let i=t?.enabled;if("boolean"==typeof i)return i;if("function"==typeof i)return i(e,n);if("u">typeof i)throw Error(`Expected boolean, but received ${py(i)}`);return e};function Hd({config:e,context:t,initialValue:n,propertyName:i,...r}){let a=YZ(e,[]);if("reducer"in r)return a.reduce((e,{config:n,path:a})=>{try{return r.reducer(e,n,t)}catch(e){throw new YE({propertyName:i,path:a,cause:e})}},n);let o=r.asyncReducer;return(async()=>{let e=n;for(let{config:n,path:r}of a)try{e=await o(e,n,t)}catch(e){throw new YE({propertyName:i,path:r,cause:e})}return e})()}async function Hc(e){let t=await Promise.all(e.map(async e=>({...e,resources:await Hu(e)}))),n={};for(let e of t){let t=e.deep??!0,i=e.overwrite??!0;t?function e(t,n,i=!1){for(let r in n){if("__proto__"===r||"constructor"===r)continue;if(!(r in t)){t[r]=n[r];continue}let a=t[r],o=n[r],l=Hp(a),s=Hp(o);if((l||s)&&i){t[r]=n[r];continue}if(l||s)continue;let d=Array.isArray(o),c=Array.isArray(a);if(d||c){i&&(t[r]=o);continue}e(a,o,i)}return t}(n,e.resources,i):i?Object.assign(n,e.resources):Object.assign({},e.resources,n)}return n}async function Hu(e){var t,n;return"function"!=typeof e.resources?e.resources:"default"in(n=t=await e.resources())&&"object"==typeof n.default&&(0,O.A)(n.default)?t.default:t}function Hp(e){return"string"==typeof e||e instanceof String}let Hm={ns:[rj],defaultNS:rj,partialBundledLanguages:!0,fallbackLng:rw.id,lng:rw.id,debug:!!ar,load:"currentOnly",initImmediate:!0,interpolation:{escapeValue:!1},react:{bindI18nStore:"added"}};function Hh(e){let{bundles:t,...n}=e;return n}let Hf=[{fieldPath:"_updatedAt",icon:eT.CTc,operators:[{name:"dateTimeLast",type:"item"},{type:"divider"},{name:"dateTimeRange",type:"item"},{name:"dateTimeAfter",type:"item"},{name:"dateTimeBefore",type:"item"},{type:"divider"},{name:"dateTimeEqual",type:"item"},{name:"dateTimeNotEqual",type:"item"}],title:"Edited at",name:"updatedAt",type:"pinned"},{fieldPath:"_createdAt",icon:eT.CTc,operators:[{name:"dateTimeLast",type:"item"},{type:"divider"},{name:"dateTimeRange",type:"item"},{name:"dateTimeAfter",type:"item"},{name:"dateTimeBefore",type:"item"},{type:"divider"},{name:"dateTimeEqual",type:"item"},{name:"dateTimeNotEqual",type:"item"}],title:"Created at",name:"createdAt",type:"pinned"},{icon:eT.qYV,operators:[{name:"referencesDocument",type:"item"},{name:"referencesAssetImage",type:"item"},{name:"referencesAssetFile",type:"item"}],title:"Contains document, image or file",name:"references",type:"pinned"},{fieldType:"array",icon:eT.r$9,name:"array",operators:[{name:"defined",type:"item"},{name:"notDefined",type:"item"},{type:"divider"},{name:"arrayCountEqual",type:"item"},{name:"arrayCountNotEqual",type:"item"},{type:"divider"},{name:"arrayCountGt",type:"item"},{name:"arrayCountGte",type:"item"},{name:"arrayCountLt",type:"item"},{name:"arrayCountLte",type:"item"},{type:"divider"},{name:"arrayCountRange",type:"item"}],type:"field"},{fieldType:"array",icon:eT.r$9,name:"arrayList",operators:[{name:"arrayListIncludes",type:"item"},{name:"arrayListNotIncludes",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"},{type:"divider"},{name:"arrayCountEqual",type:"item"},{name:"arrayCountNotEqual",type:"item"},{type:"divider"},{name:"arrayCountGt",type:"item"},{name:"arrayCountGte",type:"item"},{name:"arrayCountLt",type:"item"},{name:"arrayCountLte",type:"item"},{type:"divider"},{name:"arrayCountRange",type:"item"}],type:"field"},{fieldType:"array",icon:eT.r$9,name:"arrayReferences",operators:[{name:"arrayReferenceIncludes",type:"item"},{name:"arrayReferenceNotIncludes",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"},{type:"divider"},{name:"arrayCountEqual",type:"item"},{name:"arrayCountNotEqual",type:"item"},{type:"divider"},{name:"arrayCountGt",type:"item"},{name:"arrayCountGte",type:"item"},{name:"arrayCountLt",type:"item"},{name:"arrayCountLte",type:"item"},{type:"divider"},{name:"arrayCountRange",type:"item"}],type:"field"},{fieldType:"boolean",icon:eT.Dee,name:"boolean",operators:[{name:"booleanEqual",type:"item"},{type:"divider"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"date",icon:eT.CTc,name:"date",operators:[{name:"dateLast",type:"item"},{type:"divider"},{name:"dateRange",type:"item"},{name:"dateAfter",type:"item"},{name:"dateBefore",type:"item"},{type:"divider"},{name:"dateEqual",type:"item"},{name:"dateNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"datetime",icon:eT.CTc,name:"datetime",operators:[{name:"dateTimeLast",type:"item"},{type:"divider"},{name:"dateTimeRange",type:"item"},{name:"dateTimeAfter",type:"item"},{name:"dateTimeBefore",type:"item"},{type:"divider"},{name:"dateTimeEqual",type:"item"},{name:"dateTimeNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"email",icon:eT.H3M,name:"email",operators:[{name:"stringMatches",type:"item"},{name:"stringNotMatches",type:"item"},{type:"divider"},{name:"stringEqual",type:"item"},{name:"stringNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"file",icon:eT.pyG,name:"file",operators:[{name:"assetFileEqual",type:"item"},{name:"assetFileNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"image",icon:eT.xfq,name:"image",operators:[{name:"assetImageEqual",type:"item"},{name:"assetImageNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"number",icon:eT.bZn,name:"number",operators:[{name:"numberEqual",type:"item"},{name:"numberNotEqual",type:"item"},{type:"divider"},{name:"numberGt",type:"item"},{name:"numberGte",type:"item"},{name:"numberLt",type:"item"},{name:"numberLte",type:"item"},{type:"divider"},{name:"numberRange",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"array",icon:eT.a1,name:"portableText",operators:[{name:"portableTextMatches",type:"item"},{name:"portableTextNotMatches",type:"item"},{type:"divider"},{name:"portableTextEqual",type:"item"},{name:"portableTextNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"reference",icon:eT.qYV,name:"reference",operators:[{name:"referenceEqual",type:"item"},{name:"referenceNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"slug",icon:eT.H3M,name:"slug",operators:[{name:"slugMatches",type:"item"},{name:"slugNotMatches",type:"item"},{type:"divider"},{name:"slugEqual",type:"item"},{name:"slugNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"string",icon:eT.H3M,name:"string",operators:[{name:"stringMatches",type:"item"},{name:"stringNotMatches",type:"item"},{type:"divider"},{name:"stringEqual",type:"item"},{name:"stringNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"string",icon:eT.D3D,name:"stringList",operators:[{name:"stringListEqual",type:"item"},{name:"stringListNotEqual",type:"item"},{type:"divider"},{name:"stringMatches",type:"item"},{name:"stringNotMatches",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"text",icon:eT.H3M,name:"text",operators:[{name:"stringMatches",type:"item"},{name:"stringNotMatches",type:"item"},{type:"divider"},{name:"stringEqual",type:"item"},{name:"stringNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"url",icon:eT.H3M,name:"url",operators:[{name:"stringMatches",type:"item"},{name:"stringNotMatches",type:"item"},{type:"divider"},{name:"stringEqual",type:"item"},{name:"stringNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"}];function Hg(e){let t,n,i,r=(0,j.c)(7);r[0]!==e?(t=void 0===e?{}:e,r[0]=e,r[1]=t):t=r[1];let a=t,o=ah().id;r[2]!==a?(n={unitDisplay:"long",...a,style:"unit"},r[2]=a,r[3]=n):n=r[3];let l=n;return r[4]!==o||r[5]!==l?(i=function(e,t){return ag.numberFormat(o,{...l,unit:t}).format(e)},r[4]=o,r[5]=l,r[6]=i):i=r[6],i}function Hy(e){let t,n,i,r,a=(0,j.c)(12),{documentId:o,schemaType:l}=e,s=cc();a[0]!==o||a[1]!==s||a[2]!==l?(t=P9(s,l,o),a[0]=o,a[1]=s,a[2]=l,a[3]=t):t=a[3];let d=t;a[4]===Symbol.for("react.memo_cache_sentinel")?(n={isLoading:!0,snapshot:null,original:null},a[4]=n):n=a[4];let{snapshot:c,original:u,isLoading:p}=(0,tF.J)(d,n);if(p){let e;return a[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.EA,{animated:!0,marginLeft:1,radius:2,style:{width:"10ch",height:"1em"}}),a[5]=e):e=a[5],e}return a[6]!==o||a[7]!==u?.title||a[8]!==c?.title?(i=c?.title||u?.title||o.slice(0,8),a[6]=o,a[7]=u?.title,a[8]=c?.title,a[9]=i):i=a[9],a[10]!==i?(r=(0,v.jsx)(v.Fragment,{children:i}),a[10]=i,a[11]=r):r=a[11],r}function HC(e){let t,n,i,r,a=(0,j.c)(8),{value:o}=e,l=o.includeTime?"short":void 0;a[0]!==l?(t={dateStyle:"medium",timeStyle:l},a[0]=l,a[1]=t):t=a[1];let s=ud(t);if(a[2]!==s||a[3]!==o.date){i=Symbol.for("react.early_return_sentinel");e:{let e=o?.date?new Date(o.date):null;if(!e||!(0,t0.f)(e)){i=null;break e}n=s.format(e)}a[2]=s,a[3]=o.date,a[4]=n,a[5]=i}else n=a[4],i=a[5];return i!==Symbol.for("react.early_return_sentinel")?i:(a[6]!==n?(r=(0,v.jsx)(v.Fragment,{children:n}),a[6]=n,a[7]=r):r=a[7],r)}function Hx(e){let t,n,i,r,a,o=(0,j.c)(10),{value:l}=e,s=l.includeTime?"short":void 0;o[0]!==s?(t={dateStyle:"medium",timeStyle:s},o[0]=s,o[1]=t):t=o[1];let d=ud(t);if(o[2]!==d||o[3]!==l.from||o[4]!==l.to){r=Symbol.for("react.early_return_sentinel");e:{let e=l?.from?new Date(l.from):null,t=l?.to?new Date(l.to):null;if(!t||!e||!(0,t0.f)(t)||!(0,t0.f)(e)){r=null;break e}n=d.format(e),i=d.format(t)}o[2]=d,o[3]=l.from,o[4]=l.to,o[5]=n,o[6]=i,o[7]=r}else n=o[5],i=o[6],r=o[7];if(r!==Symbol.for("react.early_return_sentinel"))return r;let c=`${n} \u2192 ${i}`;return o[8]!==c?(a=(0,v.jsx)(v.Fragment,{children:c}),o[8]=c,o[9]=a):a=o[9],a}function Hb(e){let t,n,i=(0,j.c)(6),{value:r}=e,a=R8(),o=r._ref;i[0]!==a||i[1]!==r._type?(t=a.get(r._type),i[0]=a,i[1]=r._type,i[2]=t):t=i[2];let l=t;return l?(i[3]!==o||i[4]!==l?(n=(0,v.jsx)(Hy,{documentId:o,schemaType:l}),i[3]=o,i[4]=l,i[5]=n):n=i[5],n):null}function Hv(e){let t,n,i,r=(0,j.c)(9),{value:a,onChange:o}=e,[l,s]=(0,_.useState)(a??""),{state:d}=Vn(),{fullscreen:c}=d,{t:u}=as();r[0]!==o?(t=e=>{s(e.currentTarget.value);let t=parseFloat(e.currentTarget.value);o(Number.isFinite(t)?t:null)},r[0]=o,r[1]=t):t=r[1];let p=t,m=c?2:1;return r[2]!==u?(n=u("search.filter-number-value-placeholder"),r[2]=u,r[3]=n):n=r[3],r[4]!==p||r[5]!==m||r[6]!==n||r[7]!==l?(i=(0,v.jsx)(I.ks,{fontSize:m,onChange:p,placeholder:n,radius:2,step:"any",type:"number",value:l}),r[4]=p,r[5]=m,r[6]=n,r[7]=l,r[8]=i):i=r[8],i}function Hj(e){let t,n,i,r,a,o,l,s=(0,j.c)(23),{onChange:d,value:c}=e,[u,p]=(0,_.useState)(c?.to??""),[m,h]=(0,_.useState)(c?.from??""),{state:f}=Vn(),{fullscreen:g}=f,{t:y}=as();s[0]!==d||s[1]!==c?.from?(t=e=>{p(e.currentTarget.value);let t=parseFloat(e.currentTarget.value);d({to:Number.isFinite(t)?t:null,from:c?.from??null})},s[0]=d,s[1]=c?.from,s[2]=t):t=s[2];let C=t;s[3]!==d||s[4]!==c?.to?(n=e=>{h(e.currentTarget.value);let t=parseFloat(e.currentTarget.value);d({to:c?.to??null,from:Number.isFinite(t)?t:null})},s[3]=d,s[4]=c?.to,s[5]=n):n=s[5];let x=n,b=g?2:1;s[6]!==y?(i=y("search.filter-number-min-value-placeholder"),s[6]=y,s[7]=i):i=s[7],s[8]!==m||s[9]!==x||s[10]!==b||s[11]!==i?(r=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.ks,{fontSize:b,onChange:x,placeholder:i,radius:2,step:"any",type:"number",value:m})}),s[8]=m,s[9]=x,s[10]=b,s[11]=i,s[12]=r):r=s[12];let w=g?2:1;return s[13]!==y?(a=y("search.filter-number-max-value-placeholder"),s[13]=y,s[14]=a):a=s[14],s[15]!==C||s[16]!==w||s[17]!==a||s[18]!==u?(o=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.ks,{fontSize:w,onChange:C,placeholder:a,radius:2,step:"any",type:"number",value:u})}),s[15]=C,s[16]=w,s[17]=a,s[18]=u,s[19]=o):o=s[19],s[20]!==r||s[21]!==o?(l=(0,v.jsxs)(I.so,{gap:2,children:[r,o]}),s[20]=r,s[21]=o,s[22]=l):l=s[22],l}let Hw=()=>!0,H_=(0,eI.I4)(I.EY).withConfig({displayName:"StyledText",componentId:"sc-vmbu0s-0"})`word-break:break-word;`,Hk=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(43),{onSelect:g,types:y,value:C}=e;f[0]!==y?(n=void 0===y?[]:y,f[0]=y,f[1]=n):n=f[1];let x=n,b=(0,_.useRef)(null),w=R8(),{state:k}=Vn(),{fullscreen:S}=k,{t:E}
1287=as(),$=(0,_.useId)();f[2]===Symbol.for("react.memo_cache_sentinel")?(i=[],f[2]=i):i=f[2];let[A,D]=(0,_.useState)(i);f[3]===Symbol.for("react.memo_cache_sentinel")?(r=[],f[3]=r):r=f[3],f[4]!==x?(a={hits:r,loading:!1,error:null,terms:{query:"",types:x}},f[4]=x,f[5]=a):a=f[5],f[6]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{D(e.hits.map(HS))},f[6]=o):o=f[6],f[7]!==w||f[8]!==a?(l={allowEmptyQueries:!0,initialState:a,onComplete:o,schema:w},f[7]=w,f[8]=a,f[9]=l):l=f[9];let{handleSearch:z,searchState:P}=M8(l);f[10]!==z||f[11]!==x?(s=()=>{z({debounceTime:0,options:{limit:100},terms:{query:"",types:x}})},f[10]=z,f[11]=x,f[12]=s):s=f[12];let R=s;f[13]!==z||f[14]!==x?(d=e=>{z(e?{options:{limit:100},terms:{query:e||"",types:x}}:{debounceTime:0,options:{limit:0},terms:{query:"",types:x}})},f[13]=z,f[14]=x,f[15]=d):d=f[15];let N=d;f[16]!==A||f[17]!==g?(c=e=>{let t=A.find(t=>t.value===e)?.hit;t&&g?.({_ref:(0,tG.IM)(t._id),_type:t._type})},f[16]=A,f[17]=g,f[18]=c):c=f[18];let O=c;e:{let e;if(0===x.length){let e;f[19]!==E?(e=E("search.action.search-all-types"),f[19]=E,f[20]=e):e=f[20],u=e;break e}if(f[21]!==E||f[22]!==x){let{remainingCount:t,types:n}=VL({types:x});e=E(t>0?"search.action.search-specific-types-truncated":"search.action.search-specific-types",{count:t,types:n,formatParams:{types:{style:"short",type:"unit"}}}),f[21]=E,f[22]=x,f[23]=e}else e=f[23];u=e}let V=u;f[24]!==A||f[25]!==P.loading||f[26]!==P.terms.query||f[27]!==E?(p=(e,t)=>{let{content:n,hidden:i,onMouseEnter:r,onMouseLeave:a}=e,o=A&&A.length>0;return(0,v.jsx)(tL.AM,{constrainSize:!0,content:(0,v.jsx)("div",{ref:t,children:o?n:P.terms.query&&(0,v.jsx)(I.az,{padding:4,children:(0,v.jsx)(I.so,{align:"center",height:"fill",justify:"center",children:(0,v.jsx)(H_,{align:"center",muted:!0,children:(0,v.jsx)(aE,{t:E,i18nKey:"new-document.no-results",values:{searchQuery:P.terms.query}})})})})}),fallbackPlacements:["bottom","bottom-end"],matchReferenceWidth:!0,onMouseEnter:r,onMouseLeave:a,open:!P.loading&&!i,overflow:"auto",placement:"bottom-start",radius:3,referenceElement:b.current})},f[24]=A,f[25]=P.loading,f[26]=P.terms.query,f[27]=E,f[28]=p):p=f[28];let M=p,L=S?2:1;f[29]!==R?(m={onClick:R},f[29]=R,f[30]=m):m=f[30];let F=C?._ref;return f[31]!==$||f[32]!==N||f[33]!==O||f[34]!==A||f[35]!==V||f[36]!==t||f[37]!==M||f[38]!==P.loading||f[39]!==L||f[40]!==m||f[41]!==F?(h=(0,v.jsx)("div",{ref:b,children:(0,v.jsx)(T.jT,{"aria-label":V,filterOption:Hw,fontSize:L,id:$,loading:P.loading,openButton:m,options:A,onQueryChange:N,onSelect:O,placeholder:V,radius:2,ref:t,renderOption:HI,renderPopover:M,value:F})}),f[31]=$,f[32]=N,f[33]=O,f[34]=A,f[35]=V,f[36]=t,f[37]=M,f[38]=P.loading,f[39]=L,f[40]=m,f[41]=F,f[42]=h):h=f[42],h});function HS(e){let{hit:t}=e;return{value:t._id,hit:t}}function HI(e){return(0,v.jsx)(MW,{disableIntentLink:!0,documentId:e.value,documentType:e.hit._type,layout:"compact"})}function HT(e){let t,n,i,r,a,o,l=(0,j.c)(25),{fieldDefinition:s,onChange:d,value:c}=e,{onClose:u,state:p}=Vn(),{documentTypesNarrowed:m}=p,h=R8(),{t:f}=as();l[0]!==d?(t=e=>d(e),l[0]=d,l[1]=t):t=l[1];let g=t;e:{let e;if(!s){let e;l[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],l[2]=e):e=l[2],n=e;break e}if(l[3]!==m||l[4]!==s.documentTypes||l[5]!==s.fieldPath||l[6]!==h){let t,n;l[8]!==m?(t=e=>m.includes(e),l[8]=m,l[9]=t):t=l[9],l[10]!==s.fieldPath||l[11]!==h?(n=e=>{let t=h.get(e);if(t){let e=VD(t,s.fieldPath);if((0,eD.zR)(e?.type))return e?.type.of.filter(eD.do).flatMap(H$);if((0,eD.do)(e?.type))return e?.type.to}return[]},l[10]=s.fieldPath,l[11]=h,l[12]=n):n=l[12],e=s.documentTypes.filter(t).flatMap(n).reduce(HE,[]),l[3]=m,l[4]=s.documentTypes,l[5]=s.fieldPath,l[6]=h,l[7]=e}else e=l[7];n=e}let y=n;l[13]!==g?(i=()=>g(null),l[13]=g,l[14]=i):i=l[14];let C=i;l[15]!==u?(r=()=>{u?.()},l[15]=u,l[16]=r):r=l[16];let x=r;return l[17]===Symbol.for("react.memo_cache_sentinel")?(a={width:"min(calc(100vw - 40px), 420px)"},l[17]=a):a=l[17],l[18]!==g||l[19]!==C||l[20]!==x||l[21]!==y||l[22]!==f||l[23]!==c?(o=(0,v.jsx)(I.az,{style:a,children:c?._ref&&c?._type?(0,v.jsxs)(I.BJ,{space:3,children:[(0,v.jsx)(I.Zp,{padding:1,radius:1,shadow:1,children:(0,v.jsx)(MW,{documentId:c._ref,documentType:c._type,layout:"compact",onClick:x})}),(0,v.jsx)(tL.$n,{mode:"ghost",onClick:C,text:f("search.filter-reference-clear"),tone:"critical"})]}):(0,v.jsx)(Hk,{onSelect:g,types:y,value:c})}),l[18]=g,l[19]=C,l[20]=x,l[21]=y,l[22]=f,l[23]=c,l[24]=o):o=l[24],o}
1287function HE(e,t){return 0>e.findIndex(e=>e.name===t?.name)&&e.push(t),e}function H$(e){return e.to}function HA(e){let t,n,i=(0,j.c)(7),{onClick:r,selected:a,title:o,value:l}=e;i[0]!==r||i[1]!==l?(t=()=>r(l),i[0]=r,i[1]=l,i[2]=t):t=i[2];let s=t,d=`${o}`;return"u">typeof l&&o!==l&&(d+=` (${l})`),i[3]!==s||i[4]!==d||i[5]!==a?(n=(0,v.jsx)(tL.Dr,{onClick:s,pressed:a,tone:"default",text:d}),i[3]=s,i[4]=d,i[5]=a,i[6]=n):n=i[6],n}function HD(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(32),{fieldDefinition:c,onChange:u,value:p}=e,m=(0,_.useId)(),{state:h}=Vn(),{documentTypesNarrowed:f}=h,{t:g}=as(),y=R8();e:{let e;if(!c){let e;d[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],d[0]=e):e=d[0],t=e;break e}if(d[1]!==f||d[2]!==c.documentTypes||d[3]!==c.fieldPath||d[4]!==y){let t,n;d[6]!==f?(t=e=>f.includes(e),d[6]=f,d[7]=t):t=d[7],d[8]!==c.fieldPath||d[9]!==y?(n=e=>{let t=y.get(e);return t?VD(t,c.fieldPath)?.type.options:null},d[8]=c.fieldPath,d[9]=y,d[10]=n):n=d[10],e=c.documentTypes.filter(t).map(n).filter(r$).map(HO).flatMap(HR).filter(r$).reduce(Hz,[]),d[1]=f,d[2]=c.documentTypes,d[3]=c.fieldPath,d[4]=y,d[5]=e}else e=d[5];t=e}let C=t;d[11]!==u?(n=e=>{u(e)},d[11]=u,d[12]=n):n=d[12];let x=n;d[13]!==g||d[14]!==p?(i=p?String(p):g("search.filter-string-value-select-predefined-value"),d[13]=g,d[14]=p,d[15]=i):i=d[15],d[16]!==i?(r=(0,v.jsx)(tL.$n,{mode:"ghost",iconRight:eT.D3D,text:i}),d[16]=i,d[17]=r):r=d[17];let b=m||"";if(d[18]!==x||d[19]!==C||d[20]!==p){let e;d[22]!==x||d[23]!==p?(e=(e,t)=>(0,v.jsx)(HA,{onClick:x,selected:e.value===p,title:e.title.join(", "),value:e.value||""},t),d[22]=x,d[23]=p,d[24]=e):e=d[24],a=C.map(e),d[18]=x,d[19]=C,d[20]=p,d[21]=a}else a=d[21];return d[25]!==a?(o=(0,v.jsx)(I.W1,{children:a}),d[25]=a,d[26]=o):o=d[26],d[27]===Symbol.for("react.memo_cache_sentinel")?(l={constrainSize:!0,placement:"bottom-start",portal:!1,radius:2},d[27]=l):l=d[27],d[28]!==r||d[29]!==b||d[30]!==o?(s=(0,v.jsx)(tL.IU,{button:r,id:b,menu:o,popover:l}),d[28]=r,d[29]=b,d[30]=o,d[31]=s):s=d[31],s}function Hz(e,t){let n=e.findIndex(e=>e.value===t?.value);if(n>-1){let i=e[n];e[n]={...e[n],title:(0,B.A)([...i.title,t.title]).sort(HP)}}else e.push({...t,title:[t.title]});return e}function HP(e,t){return"string"==typeof e&&"string"==typeof t?e.localeCompare(t):Number(e)-Number(t)}function HR(e){return e?.map(HN)}function HN(e){var t;return t=e,(0,eD.uC)(t)?t:{title:(0,es.A)(`${t}`),value:t}}function HO(e){return e.list}let HV=()=>{let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,v.jsx)("path",{d:"M7.04 19V17.512H17.36V19H7.04ZM7.04 15.328V13.624L12.08 11.872L15.32 10.816V10.72L12.08 9.664L7.04 7.912V6.208L17.36 9.88V11.656L7.04 15.328Z",fill:"currentColor"})}),t[0]=e):e=t[0],e},HM=()=>{let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,v.jsx)("path",{d:"M7.568 18.848V16.952L14.792 12.08V11.984L7.568 7.112V5.216L16.52 11.288V12.776L7.568 18.848Z",fill:"currentColor"})}),t[0]=e):e=t[0],e},HL=()=>{let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,v.jsx)("path",{d:"M7.04 19V17.512H17.36V19H7.04ZM17.36 15.328L7.04 11.656V9.88L17.36 6.208V7.912L12.32 9.664L9.08 10.72V10.816L12.32 11.872L17.36 13.624V15.328Z",fill:"currentColor"})}),t[0]=e):e=t[0],e},HF=()=>{let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,v.jsx)("path",{d:"M16.952 19.632L8 13.56V12.072L16.952 6V7.896L9.728 12.768V12.864L16.952 17.736V19.632Z",fill:"currentColor"})}),t[0]=e):e=t[0],e};function HB(e){return JSON.stringify(e)}function HY(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(20),{t:u}=as();return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(NY,{tone:"caution",children:(0,v.jsx)(eT.sAQ,{})}
1287),c[0]=t):t=c[0],c[1]!==u?(n=u("search.error.no-valid-asset-source-title"),c[1]=u,c[2]=n):n=c[2],c[3]!==n?(i=(0,v.jsx)(NY,{size:1,tone:"caution",weight:"medium",children:n}),c[3]=n,c[4]=i):i=c[4],c[5]!==u?(r=u("search.error.no-valid-asset-source-only-default-description"),c[5]=u,c[6]=r):r=c[6],c[7]!==r?(a=(0,v.jsx)(NY,{size:1,tone:"caution",children:r}),c[7]=r,c[8]=a):a=c[8],c[9]!==u?(o=u("search.error.no-valid-asset-source-check-config-description"),c[9]=u,c[10]=o):o=c[10],c[11]!==o?(l=(0,v.jsx)(NY,{size:1,tone:"caution",children:o}),c[11]=o,c[12]=l):l=c[12],c[13]!==i||c[14]!==a||c[15]!==l?(s=(0,v.jsxs)(I.so,{align:"flex-start",gap:3,children:[t,(0,v.jsxs)(I.BJ,{space:4,children:[i,a,l]})]}),c[13]=i,c[14]=a,c[15]=l,c[16]=s):s=c[16],c[17]!==e||c[18]!==s?(d=(0,v.jsx)(I.az,{...e,children:s}),c[17]=e,c[18]=s,c[19]=d):d=c[19],d}function HH(e){let t,n,i,r=(0,j.c)(6),{reference:a}=e,o=cc();r[0]!==o?(t=e=>Cz(o,e),r[0]=o,r[1]=t):t=r[1];let l=t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(Hq,{}),r[2]=n):n=r[2],r[3]!==l||r[4]!==a?(i=(0,v.jsx)(Ax,{observeAsset:l,reference:a,waitPlaceholder:n,children:HU}),r[3]=l,r[4]=a,r[5]=i):i=r[5],i}function HU(e){return(0,v.jsx)(HZ,{asset:e})}function HZ(e){let t,n,i,r,a,o=(0,j.c)(10),{asset:l}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.Zp,{padding:3,radius:1,shadow:1,tone:"transparent",children:(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.A1A,{})})}),o[0]=t):t=o[0];let s=l?.originalFilename||l._id;return o[1]!==s?(n=(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",weight:"medium",children:s}),o[1]=s,o[2]=n):n=o[2],o[3]!==l.size?(i=Ak(l.size),o[3]=l.size,o[4]=i):i=o[4],o[5]!==i?(r=(0,v.jsx)(I.EY,{size:1,muted:!0,children:i}),o[5]=i,o[6]=r):r=o[6],o[7]!==n||o[8]!==r?(a=(0,v.jsx)(I.Zp,{padding:2,shadow:1,children:(0,v.jsxs)(I.so,{align:"center",justify:"space-between",wrap:"nowrap",children:[t,(0,v.jsxs)(I.BJ,{flex:1,space:2,marginLeft:3,children:[n,r]})]})}),o[7]=n,o[8]=r,o[9]=a):a=o[9],a}function Hq(){let e,t,n,i=(0,j.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.Zp,{padding:3,radius:1,shadow:1,tone:"transparent",children:(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.A1A,{})})}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(T.r5,{animated:!0,style:{width:"100%"},radius:1}),i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(I.Zp,{padding:2,shadow:1,children:(0,v.jsxs)(I.so,{align:"center",justify:"flex-start",children:[e,(0,v.jsxs)(I.BJ,{flex:1,space:2,marginLeft:3,children:[t,(0,v.jsx)(T.r5,{animated:!0,style:{width:"100%"},radius:1})]})]})}),i[2]=n):n=i[2],n}let HW=(0,eI.I4)(I.Zp).withConfig({displayName:"Container",componentId:"sc-1t3dhca-0"})`position:relative;padding-bottom:100%;`,HJ=eI.I4.img.withConfig({displayName:"Image",componentId:"sc-1t3dhca-1"})`position:absolute;top:0;left:0;width:100%;height:100%;display:block;object-fit:contain;`;function HK(e){let t,n,i=(0,j.c)(5),{reference:r}=e,a=cc();i[0]!==a?(t=e=>Cz(a,e),i[0]=a,i[1]=t):t=i[1];let o=t;return i[2]!==o||i[3]!==r?(n=(0,v.jsx)(Ax,{observeAsset:o,reference:r,children:HG}),i[2]=o,i[3]=r,i[4]=n):n=i[4],n}function HG(e){return(0,v.jsx)(HX,{asset:e})}function HX(e){let t,n,i,r,a=(0,j.c)(8),{asset:o}=e,[l,s]=(0,_.useState)(!1),d=`${o.url}?h=800&fit=max`;a[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>s(!0),a[0]=t):t=a[0];let c=t;return a[1]!==l?(n=!l&&(0,v.jsx)(ry,{fill:!0,showText:!0}),a[1]=l,a[2]=n):n=a[2],a[3]!==d?(i=(0,v.jsx)(HJ,{onLoad:c,src:d}),a[3]=d,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(r=(0,v.jsxs)(HW,{__unstable_checkered:!0,border:!0,children:[n,i]}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r}function HQ(e){let t=(0,j.c)(4),{reference:n}=e;if(!n)return null;if(n._type.startsWith("sanity.fileAsset")){let e;return t[0]!==n?(e=(0,v.jsx)(HH,{reference:n}),t[0]=n,t[1]=e):e=t[1],e}if(n._type.startsWith("sanity.imageAsset")){let e;return t[2]!==n?(e=(0,v.jsx)(HK,{reference:n}),t[2]=n,t[3]=e):e=t[3],e}return null}let H1={file:"sanity.fileAsset",image:"sanity.imageAsset"},H2=(0,eI.I4)(I.az).withConfig({displayName:"ContainerBox",componentId:"sc-1l821ib-0"})`width:min(calc(100vw - 40px),320px);`;function H5(e){return function({onChange:t,value:n}){let[i,r]=(0,_.useState)(null),[a,o]=(0,_.useState)(null);Vn();let{file:l,image:s}=_g().form,{t:d}=as(),c=(0,_.useMemo)(()=>{switch(e){case"file":return l.assetSources.filter(e=>e.name===bX);case"image":return s.assetSources.filter(e=>e.name===bX);default:throw Error("Unknown asset source found")}},[l.assetSources,s.assetSources]),u=(0,_.useId)(),p=el0(ob),m=(0,_.useCallback)(()=>{o(null),t(null)},[t]),h=(0,_.useCallback)(()=>{r(null)},[]),f=(0,_.useCallback)(e=>{o(e[0]),h()}
1287,[h]),g=(0,_.useCallback)(e=>r(e),[]);(0,_.useEffect)(()=>{a?.kind==="assetDocumentId"&&"string"==typeof a?.value&&e&&t({_ref:a.value,_type:H1[e]})},[p,t,a]);let y=i?.component,C=d(n?"search.filter-asset-change":"search.filter-asset-select",{context:e}),x=(0,V.A)(e,"options.accept","image"===e?"image/*":"");return(0,v.jsx)(H2,{children:(0,v.jsxs)(I.BJ,{space:3,children:[i&&y&&(0,v.jsx)(I.ZL,{children:(0,v.jsx)(y,{assetType:e,assetSource:i,dialogHeaderTitle:d("search.action.select-asset",{context:e}),onClose:h,onSelect:f,selectedAssets:[],selectionType:"single",accept:x})}),n&&(0,v.jsx)(HQ,{reference:n}),(0,v.jsxs)(I.so,{gap:2,children:[0===c.length&&(0,v.jsx)(HY,{padding:2}),c.length>0&&(0,v.jsx)(v.Fragment,{children:c.length>1?(0,v.jsx)(tL.IU,{button:(0,v.jsx)(tL.$n,{icon:n?eT.ejX:eT.WIv,iconRight:eT.D3D,mode:"ghost",width:n?"fill":void 0,text:C}),id:u,menu:(0,v.jsx)(I.W1,{children:c.map(e=>(0,v.jsx)(tL.Dr,{icon:e.icon||eT.xfq,onClick:()=>g(e),text:(e.i18nKey?d(e.i18nKey):e.title)||(0,eu.A)(e.name)},e.name))}),popover:{constrainSize:!0,portal:!1,radius:2}}):(0,v.jsx)(tL.$n,{icon:n?eT.ejX:eT.WIv,mode:"ghost",onClick:()=>g(c[0]),width:n?"fill":void 0,text:C})}),n&&(0,v.jsx)(tL.$n,{mode:"ghost",onClick:m,width:"fill",text:d("search.filter-asset-clear"),tone:"critical"})]})]})})}}let H0={assetFileEqual:{nameKey:"search.operator.asset-file-equal.name",descriptionKey:"search.operator.asset-file-equal.description",buttonValueComponent:Hb,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}.asset._ref == ${HB(t._ref)}`:null,initialValue:null,inputComponent:H5("file"),type:"assetFileEqual"},assetFileNotEqual:{nameKey:"search.operator.asset-file-not-equal.name",descriptionKey:"search.operator.asset-file-not-equal.description",buttonValueComponent:Hb,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}.asset._ref != ${HB(t._ref)}`:null,initialValue:null,inputComponent:H5("file"),type:"assetFileNotEqual"},assetImageEqual:{nameKey:"search.operator.asset-image-equal.name",descriptionKey:"search.operator.asset-image-equal.description",buttonValueComponent:Hb,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}.asset._ref == ${HB(t._ref)}`:null,initialValue:null,inputComponent:H5("image"),type:"assetImageEqual"},assetImageNotEqual:{nameKey:"search.operator.asset-image-not-equal.name",descriptionKey:"search.operator.asset-image-not-equal.description",buttonValueComponent:Hb,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}.asset._ref != ${HB(t._ref)}`:null,initialValue:null,inputComponent:H5("image"),type:"assetImageNotEqual"}},H7=(0,eI.I4)(I.EY).withConfig({displayName:"TimeLabelText",componentId:"sc-gdbody-0"})`cursor:default;`;function H3(e){let t,n,i,r,a,o=(0,j.c)(14),{onChange:l,value:s}=e,{t:d}=as();return o[0]!==d?(t=d("calendar.action.include-time-label"),o[0]=d,o[1]=t):t=o[1],o[2]!==l||o[3]!==t?(n=(0,v.jsx)(I.BJ,{children:(0,v.jsx)(H7,{muted:!0,onClick:l,size:1,weight:"medium",children:t})}),o[2]=l,o[3]=t,o[4]=n):n=o[4],o[5]!==d?(i=d("calendar.action.include-time-label"),o[5]=d,o[6]=i):i=o[6],o[7]!==l||o[8]!==i||o[9]!==s?(r=(0,v.jsx)(I.dO,{checked:s,label:i,onChange:l}),o[7]=l,o[8]=i,o[9]=s,o[10]=r):r=o[10],o[11]!==n||o[12]!==r?(a=(0,v.jsxs)(I.so,{align:"center",gap:2,justify:"flex-end",marginTop:1,children:[n,r]}),o[11]=n,o[12]=r,o[13]=a):a=o[13],a}function H8(){let e=(0,_.useContext)(S.Yi);if(void 0===e)throw Error("useCalendar must be used within an CalendarContext.Provider");return e}function H4(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(39),{t:C}=as();y[0]===Symbol.for("react.memo_cache_sentinel")?(t={month:"long",year:"numeric"},y[0]=t):t=y[0];let x=ud(t),{focusedDate:b}=H8(),{moveFocusedDate:w,onNowClick:_}=e;y[1]!==w?(n=()=>w(-1),y[1]=w,y[2]=n):n=y[2];let k=n;y[3]!==w?(i=()=>w(1),y[3]=w,y[4]=i):i=y[4];let S=i;return y[5]!==b||y[6]!==x?(r=(0,eh.A)(x.format(b)),y[5]=b,y[6]=x,y[7]=r):r=y[7],y[8]!==r?(a=(0,v.jsx)(I.cV,{paddingLeft:2,space:1,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:r})}),y[8]=r,y[9]=a):a=y[9],y[10]!==C?(o=C("calendar.action.go-to-today-aria-label"),y[10]=C,y[11]=o):o=y[11],y[12]!==C?(l=C("calendar.action.go-to-today"),y[12]=C,y[13]=l):l=y[13],y[14]!==_||y[15]!==o||y[16]!==l?(s=(0,v.jsx)(tL.$n,{"aria-label":o,mode:"bleed",onClick:_,text:l}),y[14]=_,y[15]=o,y[16]=l,y[17]=s):s=y[17],y[18]!==C?(d=C("calendar.action.go-to-previous-month"),y[18]=C,y[19]=d):d=y[19],y[20]!==d?(c={content:d},y[20]=d,y[21]=c):c=y[21],y[22]!==k||y[23]!==c?(u=(0,v.jsx)(tL.$n,{icon:eT.YJP,mode:"bleed",onClick:k,tooltipProps:c}),y[22]=k,y[23]=c,y[24]=u):u=y[24],y[25]!==C?(p=C("calendar.action.go-to-next-month"),y[25]=C,y[26]=p):p=y[26],y[27]!==p?(m={content:p},y[27]=p,y[28]=m):m=y[28],y[29]!==S||y[30]!==m?(h=(0,v.jsx)(tL.$n,{icon:eT.vKP,mode:"bleed",onClick:S,tooltipProps:m}),y[29]=S,y[30]=m,y[31]=h):h=y[31],y[32]!==u||y[33]!==h||y[34]!==s?(f=(0,v.jsxs)(I.so,{align:"center",children:[s,u,h]}),y[32]=u,y[33]=h,y[34]=s,y[35]=f):f=y[35],y[36]!==f||y[37]!==a?(g=(0,v.jsxs)(I.so,{align:"center",flex:1,justify:"space-between",children:[a,f]}),y[36]=f,y[37]=a,y[38]=g):g=y[38],g}let H6=eI.I4.svg.withConfig({displayName:"CircleSvg",componentId:"sc-558x4k-0"})(({theme:e})=>(0,eI.AH)` 1288 bottom: 0; 1289 left: 0; 1290 position: absolute; 1291 right: 0; 1292 top: 0; 1293 1294 circle { 1295 stroke: ${e.sanity.color.card.enabled.border}; 1296 stroke-width: 3; 1297 fill: none; 1298 } 1299 `),H9=(0,eI.I4)(I.Zp).withConfig({displayName:"CustomCard",componentId:"sc-558x4k-1"})`position:relative;&[data-focused='true']{z-index:1;}&[data-start-date='true']{border-top-right-radius:0;border-bottom-right-radius:0;}&[data-end-date='true']{border-top-left-radius:0;border-bottom-left-radius:0;}&[data-within-range='true']{border-radius:0;}`;function Ue(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(41),{date:m,onSelect:h}=e;p[0]!==m||p[1]!==h?(t=()=>{h(m)},p[0]=m,p[1]=h,p[2]=t):t=p[2];let f=t,{date:g,endDate:y,focusedDate:C,selectRange:x}=H8();p[3]!==m||p[4]!==g?(n=g&&(0,nd.r)(m,g),p[3]=m,p[4]=g,p[5]=n):n=p[5];let b=n;p[6]!==m||p[7]!==x||p[8]!==g?(i=x&&g&&(0,nd.r)(m,g),p[6]=m,p[7]=x,p[8]=g,p[9]=i):i=p[9];let w=i;p[10]!==m||p[11]!==x||p[12]!==y?(r=x&&y&&(0,nd.r)(m,y),p[10]=m,p[11]=x,p[12]=y,p[13]=r):r=p[13];let _=r;p[14]!==m||p[15]!==C?(a=(0,nc.t)(m,C),p[14]=m,p[15]=C,p[16]=a):a=p[16];let k=a,S=C&&(0,nd.r)(m,C);p[17]!==m?(o=(0,nd.r)(m,new Date),p[17]=m,p[18]=o):o=p[18];let T=o,E=g&&y&&!w&&!_&&(0,nS.d)(m,g)&&(0,nv.Y)(m,y);p[19]!==m?(l=m.toDateString(),p[19]=m,p[20]=l):l=p[20];let $=!!_||void 0,A=S?"true":"",D=!!w||void 0,z=!!E||void 0,P=b||w||_,R=E?"primary":"default";p[21]!==T?(s=T&&(0,v.jsx)(H6,{height:"100%",preserveAspectRatio:"xMidYMid meet",vectorEffect:"non-scaling-stroke",viewBox:"0 0 100 100",width:"100%",children:(0,v.jsx)("circle",{cx:"50",cy:"50",r:"40%"})}),p[21]=T,p[22]=s):s=p[22];let N=!b&&!k,O=k?"medium":"regular";return p[23]!==m?(d=m.getDate(),p[23]=m,p[24]=d):d=p[24],p[25]!==N||p[26]!==O||p[27]!==d?(c=(0,v.jsx)(I.EY,{align:"center",muted:N,size:1,weight:O,children:d}),p[25]=N,p[26]=O,p[27]=d,p[28]=c):c=p[28],p[29]!==f||p[30]!==b||p[31]!==D||p[32]!==z||p[33]!==P||p[34]!==R||p[35]!==s||p[36]!==c||p[37]!==l||p[38]!==$||p[39]!==A?(u=(0,v.jsxs)(H9,{__unstable_focusRing:!0,"aria-label":l,"aria-pressed":b,"data-end-date":$,"data-focused":A,"data-ui":"CalendarDay","aria-selected":b,"data-start-date":D,"data-within-range":z,forwardedAs:"button",onClick:f,paddingX:3,paddingY:2,radius:2,role:"button",selected:P,tabIndex:-1,tone:R,children:[s,c]}),p[29]=f,p[30]=b,p[31]=D,p[32]=z,p[33]=P,p[34]=R,p[35]=s,p[36]=c,p[37]=l,p[38]=$,p[39]=A,p[40]=u):u=p[40],u}let Ut=["calendar.weekday-names.short.monday","calendar.weekday-names.short.tuesday","calendar.weekday-names.short.wednesday","calendar.weekday-names.short.thursday","calendar.weekday-names.short.friday","calendar.weekday-names.short.saturday","calendar.weekday-names.short.sunday"];(0,ew.A)(0,24);let Un=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ui=[1,2,3,4,5,6];function Ur(e){return{number:(0,ns.N)(e[0]),days:e}}let Ua={1:Ut,6:[...Ut.slice(5),...Ut.slice(0,5)],7:[Ut[6],...Ut.slice(0,6)]},Uo=(0,eI.I4)(I.xA).withConfig({displayName:"CustomGrid",componentId:"sc-72z3fa-0"})`grid-template-columns:repeat(7,minmax(44px,auto));`;function Ul(e){let t,n,i,r,a=(0,j.c)(16),{hidden:o,onSelect:l}=e,{focusedDate:s,firstWeekDay:d}=H8(),{t:c}=as(),u=o||!1,p=Ua[d];if(a[0]!==c||a[1]!==p){let e;a[3]!==c?(e=e=>(0,v.jsx)(I.az,{paddingBottom:3,paddingTop:2,children:(0,v.jsx)(I.EY,{align:"center",size:1,weight:"medium",children:c(e)})},e),a[3]=c,a[4]=e):e=a[4],t=p.map(e),a[0]=c,a[1]=p,a[2]=t}else t=a[2];let m=(e=>{var t;let n,i,r=(0,j.c)(3),{weekInfo:a}=ah();return r[0]!==e||r[1]!==a.firstDay?(n=(t=a.firstDay,i=(0,nr.w)(e),(0,na.Y)({start:i,end:(0,no.W)(i)},{weekStartsOn:7===t?0:t}).map(e=>[e,...Ui.map(t=>(0,nl.f)(e,t))])).map(Ur),r[0]=e,r[1]=a.firstDay,r[2]=n):n=r[2],n})(s);if(a[5]!==l||a[6]!==m){let e;a[8]!==l?(e=(e,t)=>e.days.map((e,n)=>(0,v.jsx)(Ue,{date:e,onSelect:l},`${t}-${n}`)),a[8]=l,a[9]=e):e=a[9],n=m.map(e),a[5]=l,a[6]=m,a[7]=n}else n=a[7];return a[10]!==t||a[11]!==n?(i=(0,v.jsxs)(Uo,{gapY:1,children:[t,n]}),a[10]=t,a[11]=n,a[12]=i):i=a[12],a[13]!==u||a[14]!==i?(r=(0,v.jsx)(I.az,{"aria-hidden":u,"data-ui":"CalendarMonth",children:i}),a[13]=u,a[14]=i,a[15]=r):r=a[15],r}let Us=(0,v.jsx)("span",{"data-preserve-focus":!0,style:{overflow:"hidden",position:"absolute",outline:"none"},tabIndex:-1});function Ud(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x=(0,j.c)(53),{date:b,endDate:w,onSelect:k,selectRange:T,selectTime:E}=e,[$,A]=(0,_.useState)(null),[D,z]=(0,_.useState)(!1);x[0]!==b?(t=b||new Date,x[0]=b,x[1]=t):t=x[1];let[P,R]=(0,_.useState)(t),N=(0,_.useRef)(b||null),O=(0,_.useRef)(w||null),{weekInfo:V}=ah(),{firstDay:M}=V;x[2]!==$?(n=()=>{$?.querySelector('[data-focused="true"]')?.focus()},x[2]=$,x[3]=n):n=x[3];let L=n;x[4]!==b||x[5]!==w||x[6]!==k||x[7]!==D||x[8]!==T?(i=e=>{let t=(0,nI.h)(e,{hours:e.getHours(),minutes:e.getMinutes(),seconds:0,milliseconds:0}),n=b&&(0,nv.Y)(t,b),i=w&&(0,nS.d)(t,w);if(T){if(n||i)return void k({date:t,endDate:null});
1299k(D?{date:b||null,endDate:t}:{date:t,endDate:b?null:w||null})}else k({date:t})},x[4]=b,x[5]=w,x[6]=k,x[7]=D,x[8]=T,x[9]=i):i=x[9];let F=i;x[10]!==k||x[11]!==T?(r=()=>{let e=new Date;T?R(e):k({date:e})},x[10]=k,x[11]=T,x[12]=r):r=x[12];let B=r;x[13]!==$||x[14]!==L||x[15]!==P?(a=e=>{if(Un.includes(e.key)){if(e.preventDefault(),e.target.hasAttribute("data-calendar-grid"))return void L();"ArrowUp"===e.key&&R((0,nl.f)(P,-7)),"ArrowDown"===e.key&&R((0,nl.f)(P,7)),"ArrowLeft"===e.key&&R((0,nl.f)(P,-1)),"ArrowRight"===e.key&&R((0,nl.f)(P,1)),$?.querySelector("[data-preserve-focus]")?.focus()}},x[13]=$,x[14]=L,x[15]=P,x[16]=a):a=x[16];let Y=a;x[17]!==P?(o=e=>R((0,nm.P)(P,e)),x[17]=P,x[18]=o):o=x[18];let H=o;x[19]!==L?(l=()=>{L()},s=[L],x[19]=L,x[20]=l,x[21]=s):(l=x[20],s=x[21]),(0,_.useEffect)(l,s),x[22]!==L?(d=()=>{document.activeElement?.matches("[data-calendar-grid], [data-calendar-grid] [data-preserve-focus]")&&L()},x[22]=L,x[23]=d):d=x[23],x[24]!==L||x[25]!==P?(c=[L,P],x[24]=L,x[25]=P,x[26]=c):c=x[26],(0,_.useEffect)(d,c),x[27]!==b||x[28]!==w||x[29]!==k?(u=()=>{let e=b?.getTime()!==N.current?.getTime(),t=w?.getTime()!==O.current?.getTime(),n=b&&w&&(0,nS.d)(b,w);e&&!t&&(n&&(z(!0),k({date:b,endDate:null})),z(!!b),b&&R(b)),!e&&t&&(n&&(z(!0),k({date:w,endDate:null})),z(!!b&&!w),w&&R(w)),e&&t&&(z(!0),b&&R(b)),N.current=b||null,O.current=w||null},p=[b,w,k],x[27]=b,x[28]=w,x[29]=k,x[30]=u,x[31]=p):(u=x[30],p=x[31]),(0,_.useEffect)(u,p),x[32]!==b||x[33]!==w||x[34]!==M||x[35]!==P||x[36]!==T||x[37]!==E?(m={date:b,endDate:w,focusedDate:P,selectRange:T,selectTime:E,firstWeekDay:M},x[32]=b,x[33]=w,x[34]=M,x[35]=P,x[36]=T,x[37]=E,x[38]=m):m=x[38];let U=m;return x[39]!==B||x[40]!==H?(h=(0,v.jsx)(I.so,{children:(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(H4,{moveFocusedDate:H,onNowClick:B})})}),x[39]=B,x[40]=H,x[41]=h):h=x[41],x[42]!==F?(f=(0,v.jsx)(Ul,{onSelect:F}),x[42]=F,x[43]=f):f=x[43],x[44]!==Y||x[45]!==f?(g=(0,v.jsxs)(I.az,{"data-calendar-grid":!0,onKeyDown:Y,marginTop:2,overflow:"hidden",tabIndex:0,children:[f,Us]}),x[44]=Y,x[45]=f,x[46]=g):g=x[46],x[47]!==h||x[48]!==g?(y=(0,v.jsxs)(I.az,{"data-ui":"Calendar",ref:A,children:[h,g]}),x[47]=h,x[48]=g,x[49]=y):y=x[49],x[50]!==y||x[51]!==U?(C=(0,v.jsx)(S.Yi.Provider,{value:U,children:y}),x[50]=y,x[51]=U,x[52]=C):C=x[52],C}function Uc(e){let t,n,i=(0,j.c)(8),{date:r,endDate:a,onChange:o,selectRange:l,selectTime:s}=e;i[0]!==o?(t=e=>{o(e)},i[0]=o,i[1]=t):t=i[1];let d=t;return i[2]!==r||i[3]!==a||i[4]!==d||i[5]!==l||i[6]!==s?(n=(0,v.jsx)(Ud,{date:r,endDate:a,onSelect:d,selectRange:l,selectTime:s}),i[2]=r,i[3]=a,i[4]=d,i[5]=l,i[6]=s,i[7]=n):n=i[7],n}function Uu({date:e,dateOnly:t,roundDay:n}){let i;switch(n){case"end":i=(0,nk.D)(e);break;case"start":i=(0,n_.o)(e);break;default:i=e}return t?i.toISOString().split("T")[0]:i.toISOString()}let Up="Jan 1, 2000",Um="MMM d, yyyy",Uh="Jan 1, 2000 12:00 AM",Uf="MMM d, yyyy p";function Ug(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(53);b[0]!==e?({isDateTime:t,onChange:i,placeholderDate:r,isDateTimeFormat:n,value:o,...a}=e,b[0]=e,b[1]=t,b[2]=n,b[3]=i,b[4]=r,b[5]=a,b[6]=o):(t=b[1],n=b[2],i=b[3],r=b[4],a=b[5],o=b[6]);let{t:w}=as(),k=n?Uf:Um,[S,I]=(0,_.useState)(void 0);b[7]!==k||b[8]!==o?(l=()=>{if(!o)return"";let e=new Date(o);return(0,nn.GP)(e,k)},b[7]=k,b[8]=o,b[9]=l):l=b[9];let[T,E]=(0,_.useState)(l);b[10]!==r?(s=r||new Date,b[10]=r,b[11]=s):s=b[11];let $=s;b[12]!==$||b[13]!==k?(d=(0,nn.GP)($,k),b[12]=$,b[13]=k,b[14]=d):d=b[14];let A=d;b[15]!==k||b[16]!==t||b[17]!==i?(c=e=>{let{dateString:n,triggerOnChange:r}=e;if(!n)return;let a=(0,t7.qg)(n,k,new Date),o=(0,t0.f)(a);o&&(r&&i(Uu({date:a,dateOnly:!t})),E((0,nn.GP)(a,k))),I(o?void 0:`Invalid ${t?"datetime":"date"}`)},b[15]=k,b[16]=t,b[17]=i,b[18]=c):c=b[18];let D=c;b[19]!==T||b[20]!==D?(u=()=>{D({dateString:T,triggerOnChange:!0})},b[19]=T,b[20]=D,b[21]=u):u=b[21];let z=u;b[22]===Symbol.for("react.memo_cache_sentinel")?(p=e=>{E(e.currentTarget.value)},b[22]=p):p=b[22];let P=p;b[23]!==i?(m=()=>{i(null),I(void 0),E("")},b[23]=i,b[24]=m):m=b[24];let R=m;b[25]!==T||b[26]!==D?(h=e=>{"Enter"===e.key&&D({dateString:T,triggerOnChange:!0})},b[25]=T,b[26]=D,b[27]=h):h=b[27];let N=h;b[28]!==k||b[29]!==D||b[30]!==o?(f=()=>{let e=o&&new Date(o);e&&D({dateString:(0,nn.GP)(e,k),triggerOnChange:!1})},b[28]=k,b[29]=D,b[30]=o,b[31]=f):f=b[31],b[32]!==k||b[33]!==n||b[34]!==D||b[35]!==o?(g=[k,D,n,o],b[32]=k,b[33]=n,b[34]=D,b[35]=o,b[36]=g):g=b[36],(0,_.useEffect)(f,g);let O=n?Uh:Up;b[37]!==w||b[38]!==O?(y=w("calendar.error.must-be-in-format",{exampleDate:O}),b[37]=w,b[38]=O,b[39]=y):y=b[39];let V=!S,M=!!T;return b[40]!==S||b[41]!==A||b[42]!==z||b[43]!==R||b[44]!==N||b[45]!==T||b[46]!==a||b[47]!==M?(C=(0,v.jsx)(Vv,{...a,clearButton:M,customValidity:S,onBlur:z,onChange:P,onClear:R,onKeyDown:N,placeholder:A,value:T}),b[40]=S,b[41]=A,b[42]=z,b[43]=R,b[44]=N,b[45]=T,b[46]=a,b[47]=M,b[48]=C):C=b[48],b[49]!==y||b[50]!==V||b[51]!==C?(x=(0,v.jsx)(tL.m_,{content:y,disabled:V,placement:"top",portal:!0,children:C}),b[49]=y,b[50]=V,b[51]=C,b[52]=x):x=b[52],x}function Uy(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(36),{direction:p,isDateTime:m,onChange:h,value:f}=e,{state:g}=Vn(),{fullscreen:y}=g,{t:C}=as();switch(p){case"after":t="end";break;case"before":t="start";break;default:t=void 0}let x=t;u[0]!==m||u[1]!==h||u[2]!==x||u[3]!==f?.includeTime?(n=e=>{let{date:t}=e,n=null;t&&(n=Uu({date:t,dateOnly:!m,roundDay:f?.includeTime?void 0:x})),h({includeTime:f?.includeTime,date:n})},u[0]=m,u[1]=h,u[2]=x,u[3]=f?.includeTime,u[4]=n):n=u[4];let b=n;u[5]!==m||u[6]!==h||u[7]!==x||u[8]!==f?(i=()=>{let e=!f?.includeTime,t=f?.date?new Date(f.date):null,n=null;t&&(n=Uu({date:t,dateOnly:!m,roundDay:e?"start":x})),h({includeTime:e,date:n})},u[5]=m,u[6]=h,u[7]=x,u[8]=f,u[9]=i):i=u[9];let w=i;u[10]!==h||u[11]!==f?.includeTime?(r=e=>{h({includeTime:f?.includeTime,date:e||null})},u[10]=h,u[11]=f?.includeTime,u[12]=r):r=u[12];let _=r;u[13]!==C?(a=C("search.filter-date-aria-label"),u[13]=C,u[14]=a):a=u[14];let k=y?2:1,S=m&&f?.includeTime,T=f?.date;return u[15]!==_||u[16]!==m||u[17]!==a||u[18]!==k||u[19]!==S||u[20]!==T?(o=(0,v.jsx)(Ug,{"aria-label":a,fontSize:k,isDateTime:m,isDateTimeFormat:S,onChange:_,radius:2,value:T}),u[15]=_,u[16]=m,u[17]=a,u[18]=k,u[19]=S,u[20]=T,u[21]=o):o=u[21],u[22]!==f?(l=f?.date?new Date(f.date):void 0,u[22]=f,u[23]=l):l=u[23],u[24]!==b||u[25]!==m||u[26]!==l?(s=(0,v.jsx)(Uc,{date:l,onCh
1299ange:b,selectTime:m}),u[24]=b,u[25]=m,u[26]=l,u[27]=s):s=u[27],u[28]!==w||u[29]!==m||u[30]!==f?.includeTime?(d=m&&(0,v.jsx)(H3,{onChange:w,value:!!f?.includeTime}),u[28]=w,u[29]=m,u[30]=f?.includeTime,u[31]=d):d=u[31],u[32]!==o||u[33]!==s||u[34]!==d?(c=(0,v.jsxs)(I.BJ,{space:3,children:[o,s,d]}),u[32]=o,u[33]=s,u[34]=d,u[35]=c):c=u[35],c}function UC(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(34),{isDateTime:u,onChange:p,value:m}=e,{state:h}=Vn(),{fullscreen:f}=h,{t:g}=as();c[0]!==u||c[1]!==p||c[2]!==m?.includeTime?(t=e=>{let{date:t}=e;if(t){let e=Uu({date:t,dateOnly:!u});p({includeTime:m?.includeTime,date:e})}else p(null)},c[0]=u,c[1]=p,c[2]=m?.includeTime,c[3]=t):t=c[3];let y=t;c[4]!==u||c[5]!==p||c[6]!==m?(n=()=>{let e=!m?.includeTime,t=m?.date?new Date(m.date):null,n=null;t&&(n=Uu({date:t,dateOnly:!u})),p({includeTime:e,date:n})},c[4]=u,c[5]=p,c[6]=m,c[7]=n):n=c[7];let C=n;c[8]!==p||c[9]!==m?.includeTime?(i=e=>{p({includeTime:m?.includeTime,date:e||null})},c[8]=p,c[9]=m?.includeTime,c[10]=i):i=c[10];let x=i;c[11]!==g?(r=g("search.filter-date-aria-label"),c[11]=g,c[12]=r):r=c[12];let b=f?2:1,w=u&&m?.includeTime,_=m?.date;return c[13]!==x||c[14]!==u||c[15]!==r||c[16]!==b||c[17]!==w||c[18]!==_?(a=(0,v.jsx)(Ug,{"aria-label":r,fontSize:b,isDateTime:u,isDateTimeFormat:w,onChange:x,radius:2,value:_}),c[13]=x,c[14]=u,c[15]=r,c[16]=b,c[17]=w,c[18]=_,c[19]=a):a=c[19],c[20]!==m?(o=m?.date?new Date(m.date):void 0,c[20]=m,c[21]=o):o=c[21],c[22]!==y||c[23]!==u||c[24]!==o?(l=(0,v.jsx)(Uc,{date:o,onChange:y,selectTime:u}),c[22]=y,c[23]=u,c[24]=o,c[25]=l):l=c[25],c[26]!==C||c[27]!==u||c[28]!==m?.includeTime?(s=u&&(0,v.jsx)(H3,{onChange:C,value:!!m?.includeTime}),c[26]=C,c[27]=u,c[28]=m?.includeTime,c[29]=s):s=c[29],c[30]!==l||c[31]!==s||c[32]!==a?(d=(0,v.jsxs)(I.BJ,{space:3,children:[a,l,s]}),c[30]=l,c[31]=s,c[32]=a,c[33]=d):d=c[33],d}function Ux(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(UC,{...e,isDateTime:!1}),n[0]=e,n[1]=t):t=n[1],t}let Ub=[{unit:"day",key:"search.filter-date-unit_days"},{unit:"month",key:"search.filter-date-unit_months"},{unit:"year",key:"search.filter-date-unit_years"}];function Uv(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(26),{onChange:u,value:p}=e,[m,h]=(0,_.useState)(p?.unitValue||""),f=(0,_.useRef)("day"),g=(0,_.useRef)(p?.unitValue||null),{t:y}=as(),{state:C}=Vn(),{fullscreen:x}=C;c[0]!==u?(t=()=>{u({unit:f?.current,unitValue:g?.current})},c[0]=u,c[1]=t):t=c[1];let b=t;c[2]!==b?(n=e=>{f.current=e.currentTarget.value,b()},c[2]=b,c[3]=n):n=c[3];let w=n;c[4]!==b?(i=e=>{h(e.currentTarget.value);let t=parseFloat(e.currentTarget.value);g.current=Number.isFinite(t)?t:null,b()},c[4]=b,c[5]=i):i=c[5];let k=i;c[6]!==y?(r=y("search.filter-date-value-aria-label"),c[6]=y,c[7]=r):r=c[7];let S=x?2:1;c[8]!==k||c[9]!==r||c[10]!==S||c[11]!==m?(a=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.ks,{"aria-label":r,fontSize:S,onChange:k,pattern:"\\d*",radius:2,step:"1",type:"number",value:m})}),c[8]=k,c[9]=r,c[10]=S,c[11]=m,c[12]=a):a=c[12],c[13]!==y?(o=y("search.filter-date-unit-aria-label"),c[13]=y,c[14]=o):o=c[14];let T=x?2:1,E=p?.unit;return c[15]!==y?(l=Ub.map(e=>(0,v.jsx)("option",{value:e.unit,children:y(e.key)},e.key)),c[15]=y,c[16]=l):l=c[16],c[17]!==w||c[18]!==E||c[19]!==l||c[20]!==o||c[21]!==T?(s=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.l6,{"aria-label":o,fontSize:T,onChange:w,radius:2,value:E,children:l})}),c[17]=w,c[18]=E,c[19]=l,c[20]=o,c[21]=T,c[22]=s):s=c[22],c[23]!==s||c[24]!==a?(d=(0,v.jsxs)(I.so,{gap:2,children:[a,s]}),c[23]=s,c[24]=a,c[25]=d):d=c[25],d}function Uj(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(56),{isDateTime:g,onChange:y,value:C}=e,{t:x}=as(),{state:b}=Vn(),{fullscreen:w}=b,[k]=(0,_.useState)(U_),[S]=(0,_.useState)(Uw);f[0]!==g||f[1]!==y||f[2]!==C?.includeTime?(t=e=>{let{date:t,endDate:n}=e;y(Uk({date:t,endDate:n,includeTime:C?.includeTime,isDateTime:g}))},f[0]=g,f[1]=y,f[2]=C?.includeTime,f[3]=t):t=f[3];let T=t;f[4]!==g||f[5]!==y||f[6]!==C?(n=()=>{let e=!C?.includeTime;y(Uk({date:C?.from?new Date(C.from):null,endDate:C?.to?new Date(C.to):null,includeTime:e,isDateTime:g}))},f[4]=g,f[5]=y,f[6]=C,f[7]=n):n=f[7];let E=n;f[8]!==y||f[9]!==C?.from||f[10]!==C?.includeTime?(i=e=>{y({includeTime:C?.includeTime,to:e||null,from:C?.from||null})},f[8]=y,f[9]=C?.from,f[10]=C?.includeTime,f[11]=i):i=f[11];let $=i;f[12]!==y||f[13]!==C?.includeTime||f[14]!==C?.to?(r=e=>{y({includeTime:C?.includeTime,to:C?.to||null,from:e||null})},f[12]=y,f[13]=C?.includeTime,f[14]=C?.to,f[15]=r):r=f[15];let A=r;f[16]!==x?(a=x("search.filter-date-range-start-date-aria-label"),f[16]=x,f[17]=a):a=f[17];let D=w?2:1,z=g&&C?.includeTime,P=C?.from;f[18]!==A||f[19]!==g||f[20]!==k||f[21]!==a||f[22]!==D||f[23]!==z||f[24]!==P?(o=(0,v.jsx)(Ug,{"aria-label":a,fontSize:D,isDateTime:g,isDateTimeFormat:z,onChange:A,placeholderDate:k,radius:2,value:P}),f[18]=A,f[19]=g,f[20]=k,f[21]=a,f[22]=D,f[23]=z,f[24]=P,f[25]=o):o=f[25],f[26]!==x?(l=x("search.filter-date-range-end-date-aria-label"),f[26]=x,f[27]=l):l=f[27];let R=w?2:1,N=g&&C?.includeTime,O=C?.to;return f[28]!==$||f[29]!==g||f[30]!==S||f[31]!==l||f[32]!==R||f[33]!==N||f[34]!==O?(s=(0,v.jsx)(Ug,{"aria-label":l,fontSize:R,isDateTime:g,isDateTimeFormat:N,onChange:$,placeholderDate:S,radius:2,value:O}),f[28]=$,f[29]=g,f[30]=S,f[31]=l,f[32]=R,f[33]=N,f[34]=O,f[35]=s):s=f[35],f[36]!==o||f[37]!==s?(d=(0,v.jsxs)(I.so,{direction:"column",gap:3,children:[o,s]}),f[36]=o,f[37]=s,f[38]=d):d=f[38],f[39]!==C?(c=C?.from?new Date(C.from):void 0,f[39]=C,f[40]=c):c=f[40],f[41]!==C?(u=C?.to?new Date(C.to):void 0,f[41]=C,f[42]=u):u=f[42],f[43]!==T||f[44]!==g||f[45]!==c||f[46]!==u?(p=(0,v.jsx)(Uc,{date:c,endDate:u,onChange:T,selectRange:!0,selectTime:g}),f[43]=T,f[44]=g,f[45]=c,f[46]=u,f[47]=p):p=f[47],f[48]!==E||f[49]!==g||f[50]!==C?.includeTime?(m=g&&(0,v.jsx)(H3,{onChange:E,value:!!C?.includeTime}),f[48]=E,f[49]=g,f[50]=C?.includeTime,f[51]=m):m=f[51],f[52]!==d||f[53]!==p||f[54]!==m?(h=(0,v.jsx)("div",{children:(0,v.jsxs)(I.BJ,{space:3,children:[d,p,m]})}),f[52]=d,f[53]=p,f[54]=m,f[55]=h):h=f[55],h}function Uw(){return new Date}function U_(){return(0,nl.f)(new Date,-7)}function Uk({date:e,endDate:t,includeTime:n,isDateTime:i}){return n?{includeTime:n,to:t?Uu({date:t,dateOnly:!i,roundDay:"start"}):null,from:e?Uu({date:e,dateOnly:!i,roundDay:"start"}):null}:{includeTime:n,to:t?Uu({date:t,dateOnly:!i,roundDay:"end"}):null,from:e?Uu({date:e,dateOnly:!i,roundDay:"start"}):null}}function US(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(UC,{...e,isDateTime:!0}),n[0]=e,n[1]=t):t=n[1],t}let UI={buttonValueComponent:HC,initialValue:null},UT={buttonValueComponent:HC,initialValue:null},UE={buttonValueComponent:HC,initialValue:{date:null,includeTime:!1}},U$={buttonValueComponent:function(e){let t,n,i=(0,j.c)(6),{value:r}=e,a=Hg(),o=Math.floor(r?.unitValue??0);return i[0]!==a||i[1]!==o||i[2]!==r.unit?(t=a(o,r.unit),i[0]=a,i[1]=o,i[2]=r.unit,i[3]=t):t=i[3],i[4]!==t?(n=(0,v.jsx)(v.Fragment,{children:t}),i[4]=t,i[5]=n):n=i[5],n}},UA={buttonValueComponent:HC,initialValue:{date:null,includeTime:!1}},UD={initialValue:null},Uz={dateAfter:{...UI,nameKey:"search.operator.date-after.name",descriptionKey:"search.operator.date-after.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`${e} > ${HB(t?.date)}`:null,inputComponent:function(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(Uy,{...e,direction:"after",isDateTime:!1}),n[0]=e,n[1]=t):t=n[1],t},type:"dateAfter"},dateBefore:{...UT,nameKey:"search.operator.date-before.name",descriptionKey:"search.operator.date-before.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`${e} < ${HB(t?.date)}`:null,inputComponent:function(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(Uy,{...e,direction:"before",isDateTime:!1}),n[0]=e,n[1]=t):t=n[1],t},type:"dateBefore"},dateEqual:{...UE,nameKey:"search.operator.date-equal.name",descriptionKey:"search.operator.date-equal.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`${e} == ${HB(t.date)}`:null,inputComponent:Ux,type:"dateEqual"},dateLast:{...U$,nameKey:"search.operator.date-last.name",descriptionKey:"search.operator.date-last.description",groqFilter:({fieldPath:e,value:t})=>{let n="number"==typeof t?.unitValue?Math.floor(t.unitValue):void 0,i=Number.isFinite(n)?(0,nT.j)(new Date,{days:t?.unit==="day"?n:0,months:t?.unit==="month"?n:0,years:t?.unit==="year"?n:0}
1299).toISOString().split("T")[0]:null;return i&&e?`${e} > ${HB(i)}`:null},inputComponent:Uv,initialValue:{unit:"day",unitValue:7},type:"dateLast"},dateNotEqual:{...UA,nameKey:"search.operator.date-not-equal.name",descriptionKey:"search.operator.date-not-equal.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`${e} != ${HB(t.date)}`:null,inputComponent:Ux,type:"dateNotEqual"},dateRange:{...UD,nameKey:"search.operator.date-range.name",descriptionKey:"search.operator.date-range.description",buttonValueComponent:Hx,groqFilter:({fieldPath:e,value:t})=>t?.to&&t?.from&&e?`${e} >= ${HB(t.from)} && ${e} <= ${HB(t.to)}`:null,initialValue:{includeTime:!1,to:(0,nE.R)().toISOString(),from:null},inputComponent:function(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(Uj,{...e,isDateTime:!1}),n[0]=e,n[1]=t):t=n[1],t},type:"dateRange"},dateTimeAfter:{...UI,nameKey:"search.operator.date-time-after.name",descriptionKey:"search.operator.date-time-after.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`dateTime(${e}) > dateTime(${HB(t.date)})`:null,inputComponent:function(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(Uy,{...e,direction:"after",isDateTime:!0}),n[0]=e,n[1]=t):t=n[1],t},type:"dateTimeAfter"},dateTimeBefore:{...UT,nameKey:"search.operator.date-time-before.name",descriptionKey:"search.operator.date-time-before.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`dateTime(${e}) < dateTime(${HB(t.date)})`:null,inputComponent:function(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(Uy,{...e,direction:"before",isDateTime:!0}),n[0]=e,n[1]=t):t=n[1],t},type:"dateTimeBefore"},dateTimeEqual:{...UE,nameKey:"search.operator.date-time-equal.name",descriptionKey:"search.operator.date-time-equal.description",groqFilter:({fieldPath:e,value:t})=>{let n=t?.date&&new Date(t.date);if(!n||!(0,t0.f)(n)||!e)return null;let i=(t?.includeTime?(0,nj.c)(n):(0,n_.o)(n)).toISOString(),r=(t?.includeTime?(0,n$.V)(n):(0,nk.D)(n)).toISOString();return`dateTime(${e}) > dateTime(${HB(i)}) && dateTime(${e}) < dateTime(${HB(r)})`},inputComponent:US,type:"dateTimeEqual"},dateTimeLast:{...U$,nameKey:"search.operator.date-time-last.name",descriptionKey:"search.operator.date-time-last.description",groqFilter:({fieldPath:e,value:t})=>{let n="number"==typeof t?.unitValue?Math.floor(t.unitValue):void 0,i=Number.isFinite(n)?(0,nT.j)(new Date,{days:t?.unit==="day"?n:0,months:t?.unit==="month"?n:0,years:t?.unit==="year"?n:0}).toISOString():null;return i&&e?`dateTime(${e}) > dateTime(${HB(i)})`:null},initialValue:{unit:"day",unitValue:7},inputComponent:Uv,type:"dateTimeLast"},dateTimeNotEqual:{...UA,nameKey:"search.operator.date-time-not-equal.name",descriptionKey:"search.operator.date-time-not-equal.description",groqFilter:({fieldPath:e,value:t})=>{let n=t?.date&&new Date(t.date);if(!n||!(0,t0.f)(n)||!e)return null;let i=(t?.includeTime?(0,nj.c)(n):(0,n_.o)(n)).toISOString(),r=(t?.includeTime?(0,n$.V)(n):(0,nk.D)(n)).toISOString();return`dateTime(${e}) < dateTime(${HB(i)}) || dateTime(${e}) > dateTime(${HB(r)})`},inputComponent:US,type:"dateTimeNotEqual"},dateTimeRange:{...UD,nameKey:"search.operator.date-time-range.name",descriptionKey:"search.operator.date-time-range.description",buttonValueComponent:Hx,groqFilter:({fieldPath:e,value:t})=>t?.to&&t?.from&&e?`dateTime(${e}) >= dateTime(${HB(t.from)}) && dateTime(${e}) <= dateTime(${HB(t.to)})`:null,initialValue:{includeTime:!1,to:(0,nE.R)().toISOString(),from:null},inputComponent:function(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(Uj,{...e,isDateTime:!0}),n[0]=e,n[1]=t):t=n[1],t},type:"dateTimeRange"}};function UP(e){let t,n,i,r=(0,j.c)(9),{onChange:a,value:o}=e,{state:l}=Vn(),{fullscreen:s}=l,{t:d}=as();r[0]!==a?(t=e=>a(e.currentTarget.value||null),r[0]=a,r[1]=t):t=r[1];let c=t,u=s?2:1;r[2]!==d?(n=d("search.filter-string-value-placeholder"),r[2]=d,r[3]=n):n=r[3];let p=o||"";return r[4]!==c||r[5]!==u||r[6]!==n||r[7]!==p?(i=(0,v.jsx)(I.ks,{fontSize:u,onChange:c,placeholder:n,radius:2,value:p}),r[4]=c,r[5]=u,r[6]=n,r[7]=p,r[8]=i):i=r[8],i}let UR={referenceEqual:{nameKey:"search.operator.reference-equal.name",descriptionKey:"search.operator.reference-equal.description",buttonValueComponent:Hb,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}._ref == ${HB(t._ref)}`:null,initialValue:null,inputComponent:HT,type:"referenceEqual"},referenceNotEqual:{nameKey:"search.operator.reference-not-equal.name",descriptionKey:"search.operator.reference-not-equal.description",buttonValueComponent:Hb,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}._ref != ${HB(t._ref)}`:null,initialValue:null,inputComponent:HT,type:"referenceNotEqual"},referencesAssetFile:{nameKey:"search.operator.reference-asset-file.name",descriptionKey:"search.operator.reference-asset-file.de
1299scription",buttonValueComponent:Hb,groqFilter:({value:e})=>e?._ref?`references(${HB(e._ref)})`:null,initialValue:null,inputComponent:H5("file"),type:"referencesAssetFile"},referencesAssetImage:{nameKey:"search.operator.reference-asset-image.name",descriptionKey:"search.operator.reference-asset-image.description",buttonValueComponent:Hb,groqFilter:({value:e})=>e?._ref?`references(${HB(e._ref)})`:null,initialValue:null,inputComponent:H5("image"),type:"referencesAssetImage"},referencesDocument:{nameKey:"search.operator.reference-document.name",descriptionKey:"search.operator.reference-document.description",buttonValueComponent:Hb,groqFilter:({value:e})=>e?._ref?`references(${HB(e._ref)})`:null,initialValue:null,inputComponent:HT,type:"referencesDocument"}},UN=Object.values({arrayCountEqual:{nameKey:"search.operator.array-count-equal.name",descriptionKey:"search.operator.array-count-equal.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) == ${HB(t)}`:null,initialValue:null,inputComponent:Hv,type:"arrayCountEqual"},arrayCountGt:{nameKey:"search.operator.array-count-gt.name",descriptionKey:"search.operator.array-count-gt.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) > ${HB(t)}`:null,icon:HM,initialValue:null,inputComponent:Hv,type:"arrayCountGt"},arrayCountGte:{nameKey:"search.operator.array-count-gte.name",descriptionKey:"search.operator.array-count-gte.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) >= ${HB(t)}`:null,icon:HV,initialValue:null,inputComponent:Hv,type:"arrayCountGte"},arrayCountLt:{nameKey:"search.operator.array-count-lt.name",descriptionKey:"search.operator.array-count-lt.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) < ${HB(t)}`:null,icon:HF,initialValue:null,inputComponent:Hv,type:"arrayCountLt"},arrayCountLte:{nameKey:"search.operator.array-count-lte.name",descriptionKey:"search.operator.array-count-lte.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) <= ${HB(t)}`:null,icon:HL,initialValue:null,inputComponent:Hv,type:"arrayCountLte"},arrayCountNotEqual:{nameKey:"search.operator.array-count-not-equal.name",descriptionKey:"search.operator.array-count-not-equal.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) != ${HB(t)}`:null,initialValue:null,inputComponent:Hv,type:"arrayCountNotEqual"},arrayCountRange:{nameKey:"search.operator.array-count-range.name",descriptionKey:"search.operator.array-count-range.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t?.to)&&Number.isFinite(t?.from)&&e?`count(${e}) > ${HB(t?.from)} && count(${e}) < ${HB(t?.to)}`:"",initialValue:null,inputComponent:Hj,type:"arrayCountRange"},arrayListIncludes:{nameKey:"search.operator.array-list-includes.name",descriptionKey:"search.operator.array-list-includes.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${HB(t)} in ${e}`:null,initialValue:null,inputComponent:HD,type:"arrayListIncludes"},arrayListNotIncludes:{nameKey:"search.operator.array-list-not-includes.name",descriptionKey:"search.operator.array-list-not-includes.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`!(${HB(t)} in ${e})`:null,initialValue:null,inputComponent:HD,type:"arrayListNotIncludes"},arrayReferenceIncludes:{nameKey:"search.operator.array-reference-includes.name",descriptionKey:"search.operator.array-reference-includes.description",buttonValueComponent:Hb,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${HB(t._ref)} in ${e}[]._ref`:null,initialValue:null,inputComponent:HT,type:"arrayReferenceIncludes"},arrayReferenceNotIncludes:{nameKey:"search.operator.array-reference-not-includes.name",descriptionKey:"search.operator.array-reference-not-includes.description",buttonValueComponent:Hb,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`!(${HB(t._ref)} in ${e}[]._ref)`:null,initialValue:null,inputComponent:HT,type:"arrayReferenceNotIncludes"},...H0,booleanEqual:{nameKey:"search.operator.boolean-equal.name",descriptionKey:"search.operator.boolean-equal.description",groqFilter:({fieldPath:e,value:t})=>"u">typeof t&&e?`${e} == ${HB(t)}`:null,initialValue:!0,inputComponent:function(e){let t,n,i,r,a,o,l=(0,j.c)(16),{onChange:s,value:d}=e,{state:c}=Vn(),{fullscreen:u}=c,{t:p}=as();l[0]!==s?(t=e=>{s("true"===e.currentTarget.value)},l[0]=s,l[1]=t):t=l[1];let m=t,h=u?2:1,f=String(d??!0);return l[2]!==p?(n=p("search.filter-boolean-true"),l[2]=p,l[3]=n):n=l[3],l[4]!==n?(i=(0,v.jsx)("option",{value:"true",children:n}),l[4]=n,l[5]=i):i=l[5],l[6]!==p?(r=p("search.filter-boolean-false"),l[6]=p,l[7]=r):r=l[7],l[8]!==r?(a=(0,v.jsx)("option",{value:"false",children:r}),l[8]=r,l[9]=a):a=l[9],l[10]!==m||l[11]!==h||l[12]!==f||l[13]!==i||l[14]!==a?(o=(0,v.jsxs)(I.l6,{fontSize:h,onChange:m,radius:2,value:f,children:[i,a]}),l[10]=m,l[11]=h,l[12]=f,l[13]=i,l[14]=a,l[15]=o):o=l[15],o},type:"booleanEqual"},...Uz,defined:{nameKey:"search.operator.defined.name",descriptionKey:"search.operator.defined.description",groqFilter:({fieldPath:e})=>e?`defined(${e})`:null,type:"defined"},notDefined:{nameKey:"search.operator.not-defined.name",descriptionKey:"search.operator.not-defined.description",groqFilter:({fieldPath:e})=>e?`!defined(${e})`:null,type:"notDefined"},numberEqual:{nameKey:"search.operator.number-equal.name",descriptionKey:"search.operator.number-equal.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} == ${HB(t)}`:null,initialValue:null,inputComponent:Hv,type:"numberEqual"}
1299,numberGt:{nameKey:"search.operator.number-gt.name",descriptionKey:"search.operator.number-gt.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} > ${HB(t)}`:null,icon:HM,initialValue:null,inputComponent:Hv,type:"numberGt"},numberGte:{nameKey:"search.operator.number-gte.name",descriptionKey:"search.operator.number-gte.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} >= ${HB(t)}`:null,icon:HV,initialValue:null,inputComponent:Hv,type:"numberGte"},numberLt:{nameKey:"search.operator.number-lt.name",descriptionKey:"search.operator.number-lt.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} < ${HB(t)}`:null,icon:HF,initialValue:null,inputComponent:Hv,type:"numberLt"},numberLte:{nameKey:"search.operator.number-lte.name",descriptionKey:"search.operator.number-lte.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} <= ${HB(t)}`:null,icon:HL,initialValue:null,inputComponent:Hv,type:"numberLte"},numberNotEqual:{nameKey:"search.operator.number-not-equal.name",descriptionKey:"search.operator.number-not-equal.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} != ${HB(t)}`:null,initialValue:null,inputComponent:Hv,type:"numberNotEqual"},numberRange:{nameKey:"search.operator.number-range.name",descriptionKey:"search.operator.number-range.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t?.to)&&Number.isFinite(t?.from)&&e?`${e} > ${HB(t?.from)} && ${e} < ${HB(t?.to)}`:"",initialValue:null,inputComponent:Hj,type:"numberRange"},portableTextEqual:{nameKey:"search.operator.portable-text-equal.name",descriptionKey:"search.operator.portable-text-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`pt::text(${e}) == ${HB(t)}`:null,initialValue:null,inputComponent:UP,type:"portableTextEqual"},portableTextMatches:{nameKey:"search.operator.portable-text-contains.name",descriptionKey:"search.operator.portable-text-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`pt::text(${e}) match ${HB(t)}`:null,initialValue:null,inputComponent:UP,type:"portableTextMatches"},portableTextNotEqual:{nameKey:"search.operator.portable-text-not-equal.name",descriptionKey:"search.operator.portable-text-not-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`pt::text(${e}) != ${HB(t)}`:null,initialValue:null,inputComponent:UP,type:"portableTextNotEqual"},portableTextNotMatches:{nameKey:"search.operator.portable-text-not-contains.name",descriptionKey:"search.operator.portable-text-not-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`!(pt::text(${e}) match ${HB(t)})`:null,initialValue:null,inputComponent:UP,type:"portableTextNotMatches"},...UR,slugEqual:{nameKey:"search.operator.slug-equal.name",descriptionKey:"search.operator.slug-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e}.current == ${HB(t)}`:null,initialValue:null,inputComponent:UP,type:"slugEqual"},slugMatches:{nameKey:"search.operator.slug-contains.name",descriptionKey:"search.operator.slug-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e}.current match ${HB(t)}`:null,initialValue:null,inputComponent:UP,type:"slugMatches"},slugNotEqual:{nameKey:"search.operator.slug-not-equal.name",descriptionKey:"search.operator.slug-not-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e}.current != ${HB(t)}`:null,initialValue:null,inputComponent:UP,type:"slugNotEqual"},slugNotMatches:{nameKey:"search.operator.slug-not-contains.name",descriptionKey:"search.operator.slug-not-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`!(${e}.current match ${HB(t)})`:null,initialValue:null,inputComponent:UP,type:"slugNotMatches"},stringEqual:{nameKey:"search.operator.string-equal.name",descriptionKey:"search.operator.string-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e} == ${HB(t)}`:null,initialValue:null,inputComponent:UP,type:"stringEqual"},stringListEqual:{nameKey:"search.operator.string-list-equal.name",descriptionKey:"search.operator.string-list-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e} == ${HB(t)}`:null,initialValue:null,inputComponent:HD,type:"stringListEqual"},stringListNotEqual:{nameKey:"search.operator.string-list-not-equal.name",descriptionKey:"search.operator.string-list-not-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e} != ${HB(t)}`:null,initialValue:null,inputComponent:HD,type:"stringListNotEqual"},stringMatches:{nameKey:"search.operator.string-contains.name",descriptionKey:"search.operator.string-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e} match "*${t}*"`:null,initialValue:null,inputComponent:UP,type:"stringMatches"},stringNotEqual:{nameKey:"search.operator.string-not-equal.name",descriptionKey:"search.operator.string-not-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e} != ${HB(t)}`:null,initialValue:null,inputComponent:UP,type:"stringNotEqual"},stringNotMatches:{nameKey:"search.operator.string-not-contains.name",descriptionKey:"search.operator.string-not-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`!(${e} match "*${t}*")`:null,initialValue:null,inputComponent:UP,type:"stringNotMatches"}});async function UO(e,t){let n=[],i=performance.now(),r=await vQ.get(e,{pauseDurations:n}),a=performance.now(),o=(0,e_.A)(n)||0,l=(0,ek.A)(n)||0,s=0===n.length?0:o/n.length,d=a-i;d>1e3&&console.warn(`Building schema for synchronization took more than 1 second (${d}ms)`),l>100&&console.warn(`Building schema for synchronization blocked UI for more than 100ms (${l}ms)`);let c=r.set.id,{projectId:u="?",dataset:p="?"}=t.config(),m=`dataset:${u}:${p}`;dT&&(m+="#dev");let h={descriptorId:c,contextKey:m},f=(await t.request({uri:"/descriptors/claim",method:"POST",body:h,headers:{"Client-Timing":Object.entries({convertSchema:d,convertSchemaPauseTotal:o,convertSchemaPauseMax:l,convertSchemaPauseAvg:s}).map(([e,t])=>`${e};dur=${t}`).join(",")}})).synchronization;for(let e=0;e<5;e++){let e=(0,nH.hF)(r,f);if(null===e)return c;f=await t.request({uri:"/descriptors/synchronize",method:"POST",body:e})}throw Error("Schema synchronization didn't succeed in 5 iterations")}tH("sanity:manifest");let UV=g3(ve(I.Zp));function UM(e){let t,n,i,r,a=(0,j.c)(32),{assetSources:o,readOnly:l,id:s,browseButtonElementRef:d,schemaType:c,setIsBrowseMenuOpen:u,setSelectedAssetSource:p}=e,m=c.options?.sources,{t:h}=as();a[0]!==u||a[1]!==p?(t=e=>{u(!1),p(e)},a[0]=u,a[1]=p,a[2]=t):t=a[2];let f=t;if(m?.length===0||0===o.length)return null;if(o.length>1&&!l){let e,t,n,i,r,l=`${s}_assetFileButton`;if(a[3]!==h?(e=h("inputs.file.multi-browse-button.text"),a[3]=h,a[4]=e):e=a[4],a[5]!==e?(t=(0,v.jsx)(tL.$n,{mode:"bleed",text:e,"data-testid":"video-input-multi-browse-button",icon:eT.WIv,iconRight:eT.D3D}),a[5]=e,a[6]=t):t=a[6],a[7]!==o||a[8]!==f||a[9]!==h){let e;a[11]!==f||a[12]!==h?(e=e=>(0,v.jsx)(tL.Dr,{text:(e.i18nKey?h(e.i18nKey):e.title)||(0,eu.A)(e.name),onClick:()=>f(e),icon:e.icon||eT.xfq,"data-testid":`video-input-browse-button-${e.name}`},e.name),a[11]=f,a[12]=h,a[13]=e):e=a[13],n=o.map(e),a[7]=o,a[8]=f,a[9]=h,a[10]=n}else n=a[10];return a[14]!==n?(i=(0,v.jsx)(I.W1,{children:n}),a[14]=n,a[15]=i):i=a[15],a[16]!==d||a[17]!==l||a[18]!==t||a[19]!==i?(r=(0,v.jsx)(tL.IU,{id:l,ref:d,button:t,"data-testid":"input-select-button",menu:i}),a[16]=d,a[17]=l,a[18]=t,a[19]=i,a[20]=r):r=a[20],r}a[21]!==h?(n=h("inputs.file.browse-button.text"),a[21]=h,a[22]=n):n=a[22],a[23]!==o[0]||a[24]!==f?(i=()=>f(o[0]),a[23]=o[0],a[24]=f,a[25]=i):i=a[25];let g=`video-input-browse-button-${o[0].name}`;return a[26]!==d||a[27]!==l||a[28]!==n||a[29]!==i||a[30]!==g?(r=(0,v.jsx)(tL.$n,{text:n,icon:eT.WIv,mode:"bleed",onClick:i,"data-testid":g,disabled:l,ref:d}),a[26]=d,a[27]=l,a[28]=n,a[29]=i,a[30]=g,a[31]=r):r=a[31],r}function UL(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(20),{onClearValue:u}=e,{t:p}=as();return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.sAQ,{})})}
1299),c[0]=t):t=c[0],c[1]!==p?(n=p("inputs.file.invalid-file-warning.title"),c[1]=p,c[2]=n):n=c[2],c[3]!==n?(i=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:n}),c[3]=n,c[4]=i):i=c[4],c[5]!==p?(r=p("inputs.file.invalid-file-warning.description"),c[5]=p,c[6]=r):r=c[6],c[7]!==r?(a=(0,v.jsx)(I.EY,{size:1,children:r}),c[7]=r,c[8]=a):a=c[8],c[9]!==i||c[10]!==a?(o=(0,v.jsxs)(I.so,{gap:4,marginBottom:4,children:[t,(0,v.jsxs)(I.BJ,{space:3,children:[i,a]})]}),c[9]=i,c[10]=a,c[11]=o):o=c[11],c[12]!==p?(l=p("inputs.file.invalid-file-warning.reset-button.text"),c[12]=p,c[13]=l):l=c[13],c[14]!==u||c[15]!==l?(s=(0,v.jsx)(tL.$n,{icon:eT.NAP,mode:"ghost",onClick:u,text:l,width:"fill"}),c[14]=u,c[15]=l,c[16]=s):s=c[16],c[17]!==o||c[18]!==s?(d=(0,v.jsxs)(I.Zp,{tone:"caution",padding:4,border:!0,radius:2,children:[o,s]}),c[17]=o,c[18]=s,c[19]=d):d=c[19],d}let UF=(0,eI.I4)(I.Zp).withConfig({displayName:"CardOverlay",componentId:"sc-1ga7ysd-0"})`position:absolute;top:0;left:0;width:100%;height:100%;`,UB=(0,eI.I4)(I.so).withConfig({displayName:"FlexContainer",componentId:"sc-1ga7ysd-1"})`height:100%;`,UY=(0,eI.I4)(I.Zp).withConfig({displayName:"RatioBox",componentId:"sc-1ga7ysd-2"})`position:relative;display:flex;justify-content:center;align-items:center;width:100%;min-height:3.75rem;aspect-ratio:var(--aspect-ratio);${e=>e.$isPortrait?"max-height: 30dvh;":""}`;class UH extends Error{constructor(e){super(e),this.name="AssetProcessingError"}}function UU(e){if(e.startsWith("video-"))return e;let t=e.split(":");if(3!==t.length)throw Error(`Invalid asset reference format: expected 3 parts, got ${t.length}`);let[n,i,r]=t;if("media-library"!==n)throw Error(`Invalid resource type: expected "media-library", got "${n}"`);if(!i.startsWith("ml"))throw Error(`Invalid media library ID: expected to start with "ml", got "${i}"`);if(!r)throw Error("Missing asset instance ID in reference");return r}function UZ(){return new eq.B}function Uq(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(17),{error:c}=e,u=c?"critical":"default",p=!c;d[0]!==p?(t=(0,v.jsx)(T.EA,{padding:3,radius:1,animated:p}),d[0]=p,d[1]=t):t=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(n={width:"100%"},d[2]=n):n=d[2];let m=!c;d[3]!==m?(i=(0,v.jsx)(T.r5,{style:n,radius:1,animated:m}),d[3]=m,d[4]=i):i=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(r={width:"100%"},d[5]=r):r=d[5];let h=!c;return d[6]!==h?(a=(0,v.jsx)(T.r5,{style:r,radius:1,animated:h}),d[6]=h,d[7]=a):a=d[7],d[8]!==i||d[9]!==a?(o=(0,v.jsxs)(I.BJ,{flex:1,space:2,marginLeft:3,children:[i,a]}),d[8]=i,d[9]=a,d[10]=o):o=d[10],d[11]!==o||d[12]!==t?(l=(0,v.jsxs)(I.so,{align:"center",justify:"flex-start",padding:2,children:[t,o]}),d[11]=o,d[12]=t,d[13]=l):l=d[13],d[14]!==u||d[15]!==l?(s=(0,v.jsx)(I.Zp,{padding:0,radius:0,tone:u,children:l}),d[14]=u,d[15]=l,d[16]=s):s=d[16],s}let UW=(0,_.lazy)(()=>Promise.all([n.e(1372),n.e(3630)]).then(n.bind(n,43630)).then(e=>({default:e.VideoPlayer}))),UJ=(0,eI.I4)(I.cV).withConfig({displayName:"MenuActionsWrapper",componentId:"sc-154wfm2-0"})`position:absolute;top:0;right:0;`;function UK(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(47),{customDomain:C,playbackId:x,tokens:b,children:w,aspectRatio:k,muted:S,disabled:T,onClick:E,isMenuOpen:$,onMenuOpen:A,setMenuButtonElement:D}=e,[z,P]=(0,_.useState)(null),[R,N]=(0,_.useState)(null);y[0]!==A?(t=()=>A(!0),y[0]=A,y[1]=t):t=y[1];let O=t;y[2]!==R||y[3]!==$||y[4]!==A?(n=e=>{$&&("Escape"===e.key||"Tab"===e.key)&&(A(!1),R?.focus())},y[2]=R,y[3]=$,y[4]=A,y[5]=n):n=y[5],(0,I.Pm)(n),y[6]!==R||y[7]!==A?(i=e=>{R?.contains(e.target)||A(!1)},y[6]=R,y[7]=A,y[8]=i):i=y[8],y[9]!==z?(r=()=>[z],y[9]=z,y[10]=r):r=y[10],(0,I.PR)(i,r),y[11]!==D?(a=e=>{D(e),N(e)},y[11]=D,y[12]=a):a=y[12];let V=a;y[13]!==$||y[14]!==z?(o=()=>{$&&z?.focus()},l=[$,z],y[13]=$,y[14]=z,y[15]=o,y[16]=l):(o=y[15],l=y[16]),(0,_.useEffect)(o,l);let{t:M}=as(),L=S||T?void 0:"button",F=void 0!==k&&k<.75;y[17]!==k?(s={"--aspect-ratio":k},y[17]=k,y[18]=s):s=y[18];let B=s;return y[19]!==k||y[20]!==C||y[21]!==x||y[22]!==b?(d=x&&(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(Uq,{}),children:(0,v.jsx)(UW,{customDomain:C,playbackId:x,tokens:b,aspectRatio:k})}),y[19]=k,y[20]=C,y[21]=x,y[22]=b,y[23]=d):d=y[23],y[24]!==B||y[25]!==d||y[26]!==F?(c=(0,v.jsx)(UY,{tone:"transparent",$isPortrait:F,style:B,children:d}),y[24]=B,y[25]=d,y[26]=F,y[27]=c):c=y[27],y[28]!==E||y[29]!==c||y[30]!==L?(u=(0,v.jsx)(I.Zp,{as:L,tone:"inherit",onClick:E,flex:1,children:c}),y[28]=E,y[29]=c,y[30]=L,y[31]=u):u=y[31],y[32]!==w?(p=(0,v.jsx)(I.W1,{ref:P,children:w}),y[32]=w,y[33]=p):p=y[33],y[34]!==M?(m=M("inputs.file.actions-menu.video-options.aria-label"),y[34]=M,y[35]=m):m=y[35],y[36]!==O||y[37]!==V||y[38]!==m?(h=(0,v.jsx)(rl,{"aria-label":m,"data-testid":"options-menu-button",onClick:O,ref:V}),y[36]=O,y[37]=V,y[38]=m,y[39]=h):h=y[39],y[40]!==$||y[41]!==p||y[42]!==h?(f=(0,v.jsx)(UJ,{padding:2,children:(0,v.jsx)(tL.AM,{content:p,id:"video-actions-menu",portal:!0,open:$,constrainSize:!0,children:h})}),y[40]=$,y[41]=p,y[42]=h,y[43]=f):f=y[43],y[44]!==u||y[45]!==f?(g=(0,v.jsxs)(I.az,{children:[u,f]}),y[44]=u,y[45]=f,y[46]=g):g=y[46],g}function UG(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(64),{assetSources:y,clearField:C,directUploads:x,onSelectFiles:b,readOnly:w,schemaType:k,setBrowseButtonElement:S,setSelectedAssetSource:I,value:T}=e,{t:E}=as(),[$,A]=(0,_.useState)(!1),D=T?.asset,z=k.options?.sources;g[0]!==k?(t=(0,V.A)(k,"options.accept",""),g[0]=k,g[1]=t):t=g[1];let P=t;g[2]===Symbol.for("react.memo_cache_sentinel")?(n={apiVersion:"vX"},g[2]=n):n=g[2];let R=el0(n).config().apiHost.endsWith(".sanity.work");e:{if(!D?._ref){i=null;break e}try{let e,t;g[3]!==D._ref?(e=function(e){let t=e.split(":")?.[1];if(!t||!t.startsWith("ml"))throw Error("Invalid asset reference");return t}(D._ref),g[3]=D._ref,g[4]=e):e=g[4];let n=e;g[5]!==D||g[6]!==n?(t={mediaLibraryId:n,assetRef:D},g[5]=D,g[6]=n,g[7]=t):t=g[7],i=t}catch(e){console.error("Failed to parse asset reference:",e),i=null}}let N=function(e){let t,n,i,r=(0,j.c)(11);r[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"vX"},r[0]=t):t=r[0];let a=el0(t),[o]=(0,_.useState)(UZ);r[1]!==o?(n=()=>{o.next()},r[1]=o,r[2]=n):n=r[2];let l=n;if(r[3]!==a||r[4]!==e||r[5]!==l||r[6]!==o){e:{let t,n={isLoading:!0,result:void 0,error:void 0,retry:l},s={isLoading:!1,result:void 0,error:void 0,retry:l};if(!e){i=[s,(0,eP.of)(s)];break e}let{mediaLibraryId:d,assetRef:c}=e,u=o.pipe((0,tr.Z)(void 0)).pipe((0,eM.n)(()=>(0,eN.v)(()=>{let e=UU(c._ref);return(0,eL.H)(a.request({uri:`/media-libraries/${d}/video/${e}/playback-info`,tag:"media-library.video-playback-info"}))}).pipe((0,eV.T)(e=>({isLoading:!1,result:e,error:void 0,retry:l})),(0,tu.L)({delay:e=>
1299{if(e?.statusCode!==404)throw e;let t=UU(c._ref);return a.observable.request({method:"GET",url:`/media-libraries/${d}/doc/${t}`}).pipe((0,tx.Z)(e=>{let n=e.documents?.[0];if(!n)throw Error(`Asset document ${t} not found, retrying...`);if("ready"===n.state)return(0,eP.of)(n);throw"processing"===n.state?new UH("Asset is processing"):Error(`Asset state is not "ready": ${n.state||"unknown"}`)}),(0,tu.L)({delay:e=>{if(e instanceof UH)return(0,eK.O)(2e3);throw e}}),(0,tv.w)(12e4),(0,eY.W)(e=>{throw"TimeoutError"===e.name?Error(`Asset ${t} was not ready processing after 2 minutes.`):e}))}}),(0,eY.W)(e=>(console.error("Failed to fetch video playback info:",e),(0,eP.of)({isLoading:!1,result:void 0,error:e,retry:l}))),(0,tr.Z)(n))));r[8]!==n||r[9]!==u?(t=[n,u],r[8]=n,r[9]=u,r[10]=t):t=r[10],i=t}r[3]=a,r[4]=e,r[5]=l,r[6]=o,r[7]=i}else i=r[7];let[s,d]=i;return(0,tF.J)(d,s)}(i),O=R?"m.sanity-cdn.work":"m.sanity-cdn.com";g[8]!==N.result?(r=N?.result?function(e){if("token"in e.stream)return{animated:e.animated.token,playback:e.stream.token,thumbnail:e.thumbnail.token,storyboard:e.storyboard.token}}(N.result):void 0,g[8]=N.result,g[9]=r):r=g[9];let M=r,L=N.result?.aspectRatio,F=N.result?.id;g[10]!==O||g[11]!==$||g[12]!==S||g[13]!==L||g[14]!==F?(a={aspectRatio:L,customDomain:O,playbackId:F,onMenuOpen:A,isMenuOpen:$,setMenuButtonElement:S},g[10]=O,g[11]=$,g[12]=S,g[13]=L,g[14]=F,g[15]=a):a=g[15];let B=a;g[16]!==B||g[17]!==M?(o=M?{...B,tokens:M}:B,g[16]=B,g[17]=M,g[18]=o):o=g[18];let Y=o;g[19]!==y?(l=y.filter(UX),g[19]=y,g[20]=l):l=g[20];let H=l;g[21]!==y||g[22]!==I?(s=e=>{A(!1);let t=e.currentTarget.getAttribute("data-asset-source-name"),n=y.find(e=>e.name===t);n?I(n):console.warn(`No asset source found for the selected asset source name '${t}'`)},g[21]=y,g[22]=I,g[23]=s):s=g[23];let U=s;g[24]!==b?(d=(e,t)=>{A(!1),b(e,t)},g[24]=b,g[25]=d):d=g[25];let Z=d;g[26]!==H[0]||g[27]!==Z?(c=e=>{Z(H[0],e)},g[26]=H[0],g[27]=Z,g[28]=c):c=g[28];let q=c;g[29]!==y||g[30]!==U||g[31]!==w||g[32]!==z?.length||g[33]!==E?(u=()=>z?.length===0||0===y.length?null:1===y.length?(0,v.jsx)(tL.Dr,{icon:eT.WIv,text:E("inputs.file.browse-button.text"),onClick:U,disabled:w,"data-testid":`video-input-browse-button-${y[0].name}`,"data-asset-source-name":y[0].name}):y.map(e=>(0,v.jsx)(tL.Dr,{text:(e.i18nKey?E(e.i18nKey):e.title)||(0,eu.A)(e.name),onClick:U,icon:e.icon||eT.xfq,disabled:w,"data-testid":`video-input-browse-button-${e.name}`,"data-asset-source-name":e.name},e.name)),g[29]=y,g[30]=U,g[31]=w,g[32]=z?.length,g[33]=E,g[34]=u):u=g[34],g[35]!==u?(p=u(),g[35]=u,g[36]=p):p=g[36];let W=p;switch(H.length){case 0:m=null;break;case 1:{let e,t,n=H[0].name;g[37]!==E?(e=E("inputs.files.common.actions-menu.upload.label"),g[37]=E,g[38]=e):e=g[38];let i=`video-input-upload-button-${H[0].name}`,r=w||!1===x;g[39]!==P||g[40]!==H[0].name||g[41]!==q||g[42]!==e||g[43]!==i||g[44]!==r?(t=(0,v.jsx)(Aj,{icon:eT.JMY,onSelect:q,accept:P,"data-asset-source-name":n,text:e,"data-testid":i,disabled:r}),g[39]=P,g[40]=H[0].name,g[41]=q,g[42]=e,g[43]=i,g[44]=r,g[45]=t):t=g[45],m=t;break}default:{let e;g[46]!==P||g[47]!==H||g[48]!==x||g[49]!==Z||g[50]!==w?(e=(0,v.jsx)(Aa,{accept:P,assetSources:H,directUploads:x,onSelectFiles:Z,readOnly:w,"data-testid":"video-input-upload-drop-down-menu-button",renderAsMenuGroup:!0}),g[46]=P,g[47]=H,g[48]=x,g[49]=Z,g[50]=w,g[51]=e):e=g[51],m=e}}let J=m;if(!D)return null;if(N.isLoading){let e;return g[52]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(Uq,{}),g[52]=e):e=g[52],e}if(N.error){let e;return g[53]!==N.error?(e=(0,v.jsx)(Uq,{error:N.error}),g[53]=N.error,g[54]=e):e=g[54],e}if(!N.result){let e;return g[55]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(Uq,{}),g[55]=e):e=g[55],e}return g[56]!==W||g[57]!==C||g[58]!==w||g[59]!==J?(h=(0,v.jsx)(Ab,{browse:W,upload:J,onReset:C,readOnly:w}),g[56]=W,g[57]=C,g[58]=w,g[59]=J,g[60]=h):h=g[60],g[61]!==h||g[62]!==Y?(f=(0,v.jsx)(UK,{...Y,children:h}),g[61]=h,g[62]=Y,g[63]=f):f=g[63],f}function UX(e){return!!e.Uploader}let UQ=["asset"];function U1(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(77),{assetSources:y,changed:C,clearField:x,directUploads:b,elementProps:w,hoveringFiles:k,isStale:S,isUploading:T,onCancelUpload:E,onClearUploadStatus:$,onSelectAssets:A,onSelectFiles:D,onStale:z,path:P,readOnly:R,resolveUploader:N,schemaType:O,setHoveringFiles:V,value:M}=e,{t:L}=as();g[0]!==P?(t=P.concat(UQ),g[0]=P,g[1]=t):t=g[1];let F=t,[B,Y]=(0,_.useState)(null),[H,U]=(0,_.useState)(!1);g[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],g[2]=n):n=g[2];let[Z,q]=(0,_.useState)(n);g[3]!==y?(i=y.filter(U0),g[3]=y,g[4]=i):i=g[4];let W=i.length>1;g[5]!==w?(r=e=>{e.currentTarget===e.target&&e.currentTarget===w.ref?.current&&w.onFocus(e)},g[5]=w,g[6]=r):r=g[6];let J=r;g[7]!==b||g[8]!==W||g[9]!==N||g[10]!==O||g[11]!==V?(a=e=>{V(e.filter(U5));let t=!0,n=e.filter(e=>N?.(O,e)),i=e.length-n.length;e.length>0&&(i>0||!1===b)&&(t=!1),W&&t&&U(!0)},g[7]=b,g[8]=W,g[9]=N,g[10]=O,g[11]=V,g[12]=a):a=g[12];let K=a;g[13]!==V?(o=()=>{V([]),U(!1)},g[13]=V,g[14]=o):o=g[14];let G=o;g[15]!==b||g[16]!==G||g[17]!==k.length||g[18]!==D||g[19]!==R||g[20]!==V?(l=(e,t)=>{b&&!R?(V([]),D(e,t)):k.length>0&&G()},g[15]=b,g[16]=G,g[17]=k.length,g[18]=D,g[19]=R,g[20]=V,g[21]=l):l=g[21];let X=l;g[22]!==b||g[23]!==k||g[24]!==R||g[25]!==N||g[26]!==O||g[27]!==M?._upload||g[28]!==M?.asset?(s=()=>{let e=k.filter(e=>N?.(O,e)),t=k.length-e.length;return k.length>0&&(t>0||!1===b)?"critical":M?._upload||R||!(k.length>0)?M?._upload&&M?.asset&&R?"transparent":"default":"primary"},g[22]=b,g[23]=k,g[24]=R,g[25]=N,g[26]=O,g[27]=M?._upload,g[28]=M?.asset,g[29]=s):s=g[29];let Q=s,ee=!!(M?._upload||M?.asset);g[30]!==Z||g[31]!==D?(d=e=>{Y(e),e&&Z.length>0&&(U(!1),D(e,Z),q([]),Y(null))},g[30]=Z,g[31]=D,g[32]=d):d=g[32];let et=d;g[33]!==B||g[34]!==y||g[35]!==b||g[36]!==W||g[37]!==D||g[38]!==N||g[39]!==O?(c=e
1299=>{let t=e.filter(e=>N?.(O,e));if(!(e.length-t.length>0||!1===b)&&0!==e.length)if(W){if(B){D(B,e),U(!1),Y(null);return}U(!0),q(e)}else{let t=y.filter(U2)[0];t&&D(t,e),U(!1),Y(null)}},g[33]=B,g[34]=y,g[35]=b,g[36]=W,g[37]=D,g[38]=N,g[39]=O,g[40]=c):c=g[40];let en=c;g[41]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{U(!1),Y(null)},g[41]=u):u=g[41];let ei=u;if(M&&"u">typeof M.asset&&!M?._upload&&!M?.asset?._ref?.startsWith("media-library:")){let e;return g[42]!==x?(e=(0,v.jsx)(UL,{onClearValue:x}),g[42]=x,g[43]=e):e=g[43],e}g[44]!==S||g[45]!==$?(p=S&&(0,v.jsx)(I.az,{marginBottom:2,children:(0,v.jsx)(Ay,{onClearStale:$})}),g[44]=S,g[45]=$,g[46]=p):p=g[46];let er=!!e.focused;return g[47]!==y||g[48]!==b||g[49]!==w||g[50]!==Q||g[51]!==J||g[52]!==G||g[53]!==K||g[54]!==en||g[55]!==X||g[56]!==et||g[57]!==ee||g[58]!==k.length||g[59]!==T||g[60]!==E||g[61]!==A||g[62]!==z||g[63]!==e||g[64]!==R||g[65]!==H||g[66]!==L||g[67]!==M?(m=M?._upload?(0,v.jsx)(Ag,{uploadState:M._upload,onCancel:T&&E?E:void 0,onStale:z}):(0,v.jsx)(UV,{...w,onFocus:J,tabIndex:0,disabled:R||!1===b,onFiles:en,onFilesOver:K,onFilesOut:G,tone:Q(),$border:ee||k.length>0,style:{padding:1},sizing:"border",radius:2,children:(0,v.jsxs)("div",{style:{position:"relative"},children:[H&&(0,v.jsx)(vc,{assetSources:y,onSelectAssetSource:et,onClose:ei,text:L("inputs.files.common.placeholder.select-asset-source-upload-destination",{context:"file"})}),!M?.asset&&(0,v.jsx)(U7,{...e,onSelectFiles:X}),M?.asset&&k.length>0?(0,v.jsx)(U3,{...e,tone:Q(),onSelectFiles:X}):null,!M?._upload&&M?.asset&&(0,v.jsx)(UG,{...e,onSelectAssets:A})]})}),g[47]=y,g[48]=b,g[49]=w,g[50]=Q,g[51]=J,g[52]=G,g[53]=K,g[54]=en,g[55]=X,g[56]=et,g[57]=ee,g[58]=k.length,g[59]=T,g[60]=E,g[61]=A,g[62]=z,g[63]=e,g[64]=R,g[65]=H,g[66]=L,g[67]=M,g[68]=m):m=g[68],g[69]!==F||g[70]!==C||g[71]!==er||g[72]!==m?(h=(0,v.jsx)(S1,{path:F,hasFocus:er,isChanged:C,children:m}),g[69]=F,g[70]=C,g[71]=er,g[72]=m,g[73]=h):h=g[73],g[74]!==p||g[75]!==h?(f=(0,v.jsxs)(v.Fragment,{children:[p,h]}),g[74]=p,g[75]=h,g[76]=f):f=g[76],f}function U2(e){return e.Uploader}function U5(e){return"string"!==e.kind}function U0(e){return!!e.Uploader}function U7(e){let t,n,i,r,a=(0,j.c)(16),{assetSources:o,directUploads:l,hoveringFiles:s,onSelectFiles:d,readOnly:c,schemaType:u}=e,p=c?"transparent":"inherit";return a[0]!==s.length?(t=0===s.length?{borderStyle:"dashed"}:{borderStyle:"dashed",borderColor:"transparent"},a[0]=s.length,a[1]=t):t=a[1],a[2]!==e?(n=(0,v.jsx)(UM,{...e}),a[2]=e,a[3]=n):n=a[3],a[4]!==o||a[5]!==l||a[6]!==s||a[7]!==d||a[8]!==c||a[9]!==u||a[10]!==n?(i=(0,v.jsx)(Al,{assetSources:o,browse:n,directUploads:l,hoveringFiles:s,onUpload:d,readOnly:c,schemaType:u,type:"file"}),a[4]=o,a[5]=l,a[6]=s,a[7]=d,a[8]=c,a[9]=u,a[10]=n,a[11]=i):i=a[11],a[12]!==p||a[13]!==t||a[14]!==i?(r=(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(I.Zp,{tone:p,border:!0,paddingX:3,paddingY:2,radius:2,style:t,children:i})}),a[12]=p,a[13]=t,a[14]=i,a[15]=r):r=a[15],r}function U3(e){let t,n,i,r=(0,j.c)(16),{directUploads:a,schemaType:o,readOnly:l,resolveUploader:s,hoveringFiles:d,tone:c}=e;if(r[0]!==d||r[1]!==s||r[2]!==o){let e;r[4]!==s||r[5]!==o?(e=e=>s?.(o,e),r[4]=s,r[5]=o,r[6]=e):e=r[6],t=d.filter(e),r[0]=d,r[1]=s,r[2]=o,r[3]=t}else t=r[3];let u=t,p=d.length-u.length;return r[7]!==u||r[8]!==a||r[9]!==d||r[10]!==l||r[11]!==p?(n=(0,v.jsx)(UB,{align:"center",justify:"center",gap:2,flex:1,children:(0,v.jsx)(At,{directUploads:a,readOnly:l,hoveringFiles:d,acceptedFiles:u,rejectedFilesCount:p,type:"file"})}),r[7]=u,r[8]=a,r[9]=d,r[10]=l,r[11]=p,r[12]=n):n=r[12],r[13]!==n||r[14]!==c?(i=(0,v.jsx)(UF,{radius:2,tone:c,children:n}),r[13]=n,r[14]=c,r[15]=i):i=r[15],i}function U8(e){let t,n,i,r,a,o=(0,j.c)(32),{isUploading:l,observeAsset:s,schemaType:d,selectedAssetSource:c,setSelectedAssetSource:u,onSelectAssets:p,value:m,uploader:h}=e,f="sanity.video",{t:g}=as();o[0]!==d?(t=(0,V.A)(d,"options.accept",""),o[0]=d,o[1]=t):t=o[1];let y=t;o[2]!==u?(n=()=>{u(null)},o[2]=u,o[3]=n):n=o[3];let C=n;if(!c)return null;let x=c.component;if(m&&m.asset){let e,t,n;return o[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(Uq,{}),o[4]=e):e=o[4],o[5]!==x||o[6]!==y||o[7]!==C||o[8]!==l||o[9]!==p||o[10]!==d||o[11]!==c||o[12]!==g||o[13]!==h?(t=e=>(0,v.jsx)(x,{accept:y,action:l?"upload":"select",assetSource:c,assetType:f,dialogHeaderTitle:g("inputs.file.dialog.title"),onClose:C,onSelect:p,schemaType:d,selectedAssets:[e],selectionType:"single",uploader:h}),o[5]=x,o[6]=y,o[7]=C,o[8]=l,o[9]=p,o[10]=d,o[11]=c,o[12]=g,o[13]=h,o[14]=t):t=o[14],o[15]!==s||o[16]!==t||o[17]!==m.asset?(n=(0,v.jsx)(Ax,{observeAsset:s,reference:m.asset,waitPlaceholder:e,children:t}),o[15]=s,o[16]=t,o[17]=m.asset,o[18]=n):n=o[18],n}let b=l?"upload":"select";return o[19]!==g?(i=g("inputs.file.dialog.title"),o[19]=g,o[20]=i):i=o[20],o[21]===Symbol.for("react.memo_cache_sentinel")?(r=[],o[21]=r):r=o[21],o[22]!==x||o[23]!==y||o[24]!==C||o[25]!==p||o[26]!==d||o[27]!==c||o[28]!==b||o[29]!==i||o[30]!==h?(a=(0,v.jsx)(x,{accept:y,action:b,assetSource:c,assetType:f,dialogHeaderTitle:i,onClose:C,onSelect:p,schemaType:d,selectedAssets:r,selectionType:"single",uploader:h}),o[22]=x,o[23]=y,o[24]=C,o[25]=p,o[26]=d,o[27]=c,o[28]=b,o[29]=i,o[30]=h,o[31]=a):a=o[31],a}function U4({children:e}){return e}function U6(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(81),{client:C,members:x,onChange:b,renderAnnotation:w,renderBlock:k,renderField:S,renderInlineBlock:I,renderInput:E,renderItem:$,renderPreview:A,schemaType:D,value:z}=e,{push:P}=(0,T.dj)(),{t:R}=as();y[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],y[0]=t):t=y[0];let[N,O]=(0,_.useState)(t),[M,L]=(0,_.useState)(!1),[F,B]=(0,_.useState)(!1),[Y,H]=(0,_.useState)(!1),[U,Z]=(0,_.useState)(null),q=(0,_.useRef)(null),[W,J]=(0,_.useState)(null);y[1]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{e&&(q.current=e)},y[1]=n):n=y[1];let K=n,G=(0,_.useRef)(null);y[2]!==b?(i=()=>{b([hW(["asset"]),hW(["media"])])},y[2]=b,y[3]=i):i=y[3];let X=i;y[4]!==b||y[5]!==z?._upload?(r=()=>{z?._upload&&b(gD.from([hW(["_upload"])]))},y[4]=b,y[5]=z?._upload,y[6]=r):r=y[6];let Q=r;y[7]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{L(!0)},y[7]=a):a=y[7];let ee=a;y[8]!==Q?(o=()=>{G.current&&(G.current?.unsubscribe(),Q())},y[8]=Q,y[9]=o):o=y[9];let et=o;y[10]!==et||y[11]!==C||y[12]!==Q||y[13]!==b||y[14]!==P||y[15]!==D||y[16]!==R?(l=(e,t,n)=>{let{source:i}=void 0===n?{}:n,r={metadata:(0,V.A)(D,"options.metadata"),storeOriginalFilename:(0,V.A)(D,"options.storeOriginalFilename"),source:i};et(),B(!0),b(gD.from([hU({_type:D.name})])),G.current=e.upload(C,t,D,r).subscribe({next:e=>{e.patches&&b(gD.from(e.patches))},error:e=>{console.error(e),P({status:"error",description:R("inputs.file.upload-failed.description"),title:R("inputs.file.upload-failed.title")}),Q()},complete:()=>{B(!1)}})},y[10]=et,y[11]=C,y[12]=Q,y[13]=b,y[14]=P,y[15]=D,y[16]=R,y[17]=l):l=y[17];let en=l;y[18]!==b||y[19]!==D||y[20]!==en?(s=e=>{Cy({assetsFromSource:e,onChange:b,type:D,resolveUploader:CU,uploadWith:en}),Z(null),B(!1)},y[18]=b,y[19]=D,y[20]=en,y[21]=s):s=y[21];let ei=s;y[22]!==W||y[23]!==b||y[24]!==P||y[25]!==D||y[26]!==R?(d=(e,t)=>{if(0!==t.length&&(Z(e),e.Uploader)){let n=new e.Uploader;W?.unsubscribe();try{J({unsubscribe:n.subscribe(e=>{switch(e.type){case"progress":b(gD.from([hq(Math.max(2,e.progress),[CE,"progress"]),hq(new Date().toISOString(),[CE,"updatedAt"])]));break;
1299case"error":e.files.forEach(U9),P({status:"error",description:R("asset-sources.common.uploader.upload-failed.description"),title:R("asset-sources.common.uploader.upload-failed.title")});break;case"all-complete":b(gD.from([hW([CE])]))}}),uploader:n}),B(!0),b(gD.from(CO(t[0]))),n.upload(t,{schemaType:D,onChange:b})}catch(e){b(gD.from([hW([CE])])),B(!1),W?.unsubscribe(),Z(null),J(null),P({status:"error",description:R("asset-sources.common.uploader.upload-failed.description"),title:R("asset-sources.common.uploader.upload-failed.title")}),console.error(e)}}},y[22]=W,y[23]=b,y[24]=P,y[25]=D,y[26]=R,y[27]=d):d=y[27];let er=d;y[28]!==W?(u=()=>()=>{W?.uploader?.abort(),W?.unsubscribe()},c=[W],y[28]=W,y[29]=c,y[30]=u):(c=y[29],u=y[30]),(0,_.useEffect)(u,c),y[31]!==W?.uploader?(p=()=>{W?.uploader?.abort()},y[31]=W?.uploader,y[32]=p):p=y[32];let ea=p;y[33]!==ea||y[34]!==X||y[35]!==Q||y[36]!==ei||y[37]!==er||y[38]!==N||y[39]!==Y||y[40]!==M||y[41]!==F||y[42]!==e||y[43]!==U?(m=()=>(0,v.jsx)(U1,{...e,browseButtonElementRef:q,clearField:X,hoveringFiles:N,isBrowseMenuOpen:Y,isStale:M,isUploading:F,onCancelUpload:ea,onClearUploadStatus:Q,onSelectAssets:ei,onSelectFiles:er,onStale:ee,selectedAssetSource:U,setBrowseButtonElement:K,setHoveringFiles:O,setIsBrowseMenuOpen:H,setIsUploading:B,setSelectedAssetSource:Z}),y[33]=ea,y[34]=X,y[35]=Q,y[36]=ei,y[37]=er,y[38]=N,y[39]=Y,y[40]=M,y[41]=F,y[42]=e,y[43]=U,y[44]=m):m=y[44];let eo=m;if(y[45]!==x||y[46]!==w||y[47]!==eo||y[48]!==k||y[49]!==S||y[50]!==I||y[51]!==E||y[52]!==$||y[53]!==A||y[54]!==R){let e;y[56]!==w||y[57]!==eo||y[58]!==k||y[59]!==S||y[60]!==I||y[61]!==E||y[62]!==$||y[63]!==A||y[64]!==R?(e=e=>"field"===e.kind?(0,v.jsx)(xt,{member:e,renderAnnotation:w,renderBlock:k,renderField:"asset"===e.name?U4:S,renderInlineBlock:I,renderInput:"asset"===e.name?eo:E,renderItem:$,renderPreview:A},e.key):"fieldSet"===e.kind?(0,v.jsx)(x9,{member:e,renderAnnotation:w,renderBlock:k,renderField:S,renderInlineBlock:I,renderInput:E,renderItem:$,renderPreview:A},e.key):"decoration"===e.kind?(0,v.jsx)(x6,{member:e},e.key):"error"===e.kind?(0,v.jsx)(x4,{member:e},e.key):(0,v.jsx)(_.Fragment,{children:R("inputs.file.error.unknown-member-kind",{kind:e.kind})},e.key),y[56]=w,y[57]=eo,y[58]=k,y[59]=S,y[60]=I,y[61]=E,y[62]=$,y[63]=A,y[64]=R,y[65]=e):e=y[65],h=x.map(e),y[45]=x,y[46]=w,y[47]=eo,y[48]=k,y[49]=S,y[50]=I,y[51]=E,y[52]=$,y[53]=A,y[54]=R,y[55]=h}else h=y[55];return y[66]!==W?.uploader||y[67]!==X||y[68]!==Q||y[69]!==ei||y[70]!==er||y[71]!==N||y[72]!==Y||y[73]!==M||y[74]!==F||y[75]!==e||y[76]!==U?(f=U&&(0,v.jsx)(U8,{...e,browseButtonElementRef:q,clearField:X,hoveringFiles:N,isBrowseMenuOpen:Y,isStale:M,isUploading:F,onClearUploadStatus:Q,onStale:ee,onSelectAssets:ei,onSelectFiles:er,selectedAssetSource:U,setBrowseButtonElement:K,setHoveringFiles:O,setIsBrowseMenuOpen:H,setIsUploading:B,setSelectedAssetSource:Z,uploader:W?.uploader}),y[66]=W?.uploader,y[67]=X,y[68]=Q,y[69]=ei,y[70]=er,y[71]=N,y[72]=Y,y[73]=M,y[74]=F,y[75]=e,y[76]=U,y[77]=f):f=y[77],y[78]!==h||y[79]!==f?(g=(0,v.jsxs)(v.Fragment,{children:[h,f]}),y[78]=h,y[79]=f,y[80]=g):g=y[80],g}function U9(e){console.error(e.error)}function Ze(e){return"sanity-media-library"===e.name}let Zt=(0,eD.U8)({name:"sanity.video",title:"Video",type:"object",components:{input:function(e){let t,n,i,r,a=(0,j.c)(13),o=e.schemaType.options?.sources,l=cc(),{file:s}=hE().__internal,d=el0(ob);a[0]!==s.directUploads?(t=(e,t)=>s.directUploads?CU(e,t):null,a[0]=s.directUploads,a[1]=t):t=a[1];let c=t,u=o||s.assetSources;a[2]!==u?(n=u.filter(Ze),a[2]=u,a[3]=n):n=a[3];let p=n;a[4]!==l?(i=e=>Cz(l,e),a[4]=l,a[5]=i):i=a[5];let m=i;return a[6]!==d||a[7]!==s.directUploads||a[8]!==p||a[9]!==m||a[10]!==e||a[11]!==c?(r=(0,v.jsx)(U6,{...e,client:d,assetSources:p,directUploads:s.directUploads,observeAsset:m,resolveUploader:c}),a[6]=d,a[7]=s.directUploads,a[8]=p,a[9]=m,a[10]=e,a[11]=c,a[12]=r):r=a[12],r},field:e=>e.renderDefault({...e,level:e.level-1})},fields:[{name:"asset",type:"globalDocumentReference",to:[{type:"sanity.videoAsset",preview:{select:{title:"_id"}}}],resourceType:"media-library",resourceId:"_"},{name:"media",type:"globalDocumentReference",hidden:!0,to:[{type:"sanity.asset",preview:{select:{title:"_id"}}}],resourceType:"media-library",resourceId:"_"}]}),Zn=(0,eD.U8)({name:"sanity.videoAsset",title:"Video",type:"document",fieldsets:[{name:"system",title:"System fields",description:"These fields are managed by the system and not editable"}],fields:[{name:"originalFilename",type:"string",title:"Original file name",readOnly:!0},{name:"label",type:"string",title:"Label"},{name:"title",type:"string",title:"Title"},{name:"description",type:"string",title:"Description"},{name:"altText",type:"string",title:"Alternative text"},{name:"creditLine",type:"string",title:"Credit line"},{name:"metadata",type:"sanity.videoMetadata",title:"Video metadata",readOnly:!0,fieldset:"system"},{name:"sha1hash",type:"string",title:"SHA1 hash",readOnly:!0,fieldset:"system"},{name:"extension",type:"string",title:"File extension",readOnly:!0,fieldset:"system"},{name:"mimeType",type:"string",title:"Mime type",readOnly:!0,fieldset:"system"},{name:"size",type:"number",title:"File size in bytes",readOnly:!0,fieldset:"system"},{name:"assetId",type:"string",title:"Asset ID",readOnly:!0,fieldset:"system"},{name:"uploadId",type:"string",readOnly:!0,hidden:!0,fieldset:"system"},{name:"path",type:"string",title:"Path",readOnly:!0,fieldset:"system"},{name:"url",type:"string",title:"Url",readOnly:!0,fieldset:"system"}],preview:{select:{title:"originalFilename",path:"path",mimeType:"mimeType",size:"size",duration:"metadata.duration"},prepare(e){let t=e.duration?`${Math.floor(e.duration/60)}:${String(Math.floor(e.duration%60)).padStart(2,"0")}`:"";return{title:e.title||e.path.split("/").slice(-1)[0],subtitle:`${e.mimeType} (${(e.size/1024/1024).toFixed(2)} MB)${t?` - ${t}`:""}`}}},orderings:[{title:"File size",name:"fileSizeDesc",by:[{field:"size",direction:"desc"}]},{title:"Duration",name:"durationDesc",by:[{field:"metadata.duration",direction:"desc"}]}]}),Zi=(0,eD.U8)({name:"sanity.videoMetadata.playback",title:"Playback",type:"object",fields:[{name:"policy",type:"string"}]}),Zr=(0,eD.U8)({name:"sanity.videoMetadata",title:"Video metadata",type:"object",fieldsets:[{name:"extra",title:"Extra metadataâ¦",options:{collapsible:!0}}],fields:[{name:"duration",title:"Duration (seconds)",type:"number",readOnly:!0},{name:"framerate",title:"Frame Rate",type:"number",readOnly:!0},{name:"aspectRatio",title:"Aspect Ratio",type:"number",readOnly:!0},{name:"hasAudio",title:"Has audio",type:"boolean",readOnly:!0},{name:"codec",title:"Codec",type:"string",readOnly:!0,fieldset:"extra"},{name:"bitrate",title:"Bitrate",type:"number",readOnly:!0,fieldset:"extra"}]}),Za="sanity/media-library",Zo=R1({name:Za,schema:{types:[Zt,Zn,Zr,Zi]}}),Zl="canvas",Zs={locale:"en-US",namespace:Zl,resources:()=>n.e(9586).then(n.bind(n,9586))},Zd={value:null,loading:!0};function Zc(){let e,t=(0,j.c)(2),n=cm();return t[0]!==n?(e=n.getOrganizationId().pipe((0,eV.T)(Zu),(0,tr.Z)({value:null,loading:!0})),t[0]=n,t[1]=e):e=t[1],(0,tF.J)(e,Zd)}function Zu(e){return{value:e,loading:!1}}function Zp(){let e=cg();return(0,tF.J)(e.renderingContext)}let Zm=(0,tW.g_)({name:"Canvas Link CTA Clicked",version:1,description:'The "Link to Canvas" button is clicked.'}),Zh=(0,tW.g_)({name:"Canvas Link Redirected",version:1,description:"The user is redirected to the canvas studio-import page"}),Zf=(0,tW.g_)({name:"Canvas Link Dialog Diffs Shown",version:1,description:"The diffs dialog is shown"}),Zg=(0,tW.g_)({name:"Canvas Link Dialog Rejected",version:1,description:'User clicked "Cancel" in the "Link to Canvas" dialog after seeing the diffs'}),Zy=(0,tW.g_)({name:"Canvas Unlink CTA Clicked",version:1,description:'User clicked "Unlink" action'}),ZC=(0,tW.g_)({name:"Canvas Unlink Approved",version:1,description:"User confirmed that they want the Studio document unlinked"}),Zx=(0,tW.g_)({name:"Canvas Opened from studio",version:1,description:'User clicked "Edit in Canvas"'}),Zb=e=>e.reduce((e,t)=>
1299(e[t.type]=(e[t.type]||0)+1,e),{});function Zv(){let e,t=(0,j.c)(2),n=(0,tK.Jr)();return t[0]!==n?(e={linkCtaClicked:()=>n.log(Zm),linkRedirected:(e,t)=>n.log(Zh,{origin:e,diffs:t?Zb(t):void 0}),linkDialogDiffsShown:()=>n.log(Zf),linkDialogRejected:e=>n.log(Zg,{diffs:Zb(e)}),unlinkCtaClicked:()=>n.log(Zy),unlinkApproved:()=>n.log(ZC),canvasOpened:e=>n.log(Zx,{origin:e})},t[0]=n,t[1]=e):e=t[1],e}let Zj=(e,t)=>{let n,i=(0,j.c)(10),{value:r}=Zc(),a=el0(ob),{node:o}=cy(),l=Zp()?.name==="coreUi",{canvasOpened:s}=Zv(),d=(0,T.dj)(),{t:c}=as(Zl);return i[0]!==e||i[1]!==s||i[2]!==a||i[3]!==l||i[4]!==o||i[5]!==r||i[6]!==t||i[7]!==c||i[8]!==d?(n=()=>{if(e)if(s(t),l&&o){let t={type:"dashboard/v1/bridge/navigate-to-resource",data:{resourceId:"",resourceType:"canvas",path:`doc/${e}`}};o.post(t.type,t.data)}else{if(!r)return void d.push({status:"error",title:c("navigate-to-canvas-doc.error.missing-permissions")});let t="https://api.sanity.work"===a.config().apiHost;window.open(`https://www.sanity.${t?"work":"io"}/@${r}/canvas/doc/${e}`,"_blank")}},i[0]=e,i[1]=s,i[2]=a,i[3]=l,i[4]=o,i[5]=r,i[6]=t,i[7]=c,i[8]=d,i[9]=n):n=i[9],n};function Zw(e){return e.version?e.version._id:e.liveEditSchemaType?(0,tG.IM)(e.id):e.draft?e.draft._id:(0,tG.T4)(e.id)}let Z_=e=>{let t,n,i,r=(0,j.c)(7),{t:a}=as(Zl);r[0]!==e?(t=Zw(e),r[0]=e,r[1]=t):t=r[1];let{isLinked:o,companionDoc:l,loading:s}=BJ(t),d=Zj(l?.canvasDocumentId,"action");return!o||s?null:(r[2]!==a?(n=a("action.edit-document"),r[2]=a,r[3]=n):n=r[3],r[4]!==d||r[5]!==n?(i={icon:eT.v5M,label:n,onHandle:d},r[4]=d,r[5]=n,r[6]=i):i=r[6],i)};Z_.action="editInCanvas",Z_.displayName="EditInCanvasAction";let Zk=e=>{let{_id:t,_rev:n,_createdAt:i,_updatedAt:r,...a}=JSON.parse(JSON.stringify(e));return a};function ZS(e){let t,n,i,r,a,o,l=(0,j.c)(20),{baseDocument:s,document:d}=e,c=R8();l[0]!==d._type||l[1]!==c?(t=c.get(d._type),l[0]=d._type,l[1]=c,l[2]=t):t=l[2];let u=t,{currentUser:p}=_g();l[3]!==s||l[4]!==p?.id||l[5]!==d?(n=(0,iB.g)((0,iB.L)(Zk(s??{}),{author:p?.id}),(0,iB.L)(Zk(d),{author:p?.id})),l[3]=s,l[4]=p?.id,l[5]=d,l[6]=n):n=l[6];let m=n;return l[7]!==d._id?(i=(0,tG.IM)(d._id),l[7]=d._id,l[8]=i):i=l[8],l[9]!==d||l[10]!==m||l[11]!==u||l[12]!==i?(r={documentId:i,schemaType:u,rootDiff:m,isComparingCurrent:!1,FieldWrapper:ZI,value:d,showFromValue:!0},l[9]=d,l[10]=m,l[11]=u,l[12]=i,l[13]=r):r=l[13],l[14]!==m||l[15]!==u?(a=(0,v.jsx)(hu,{diff:m,schemaType:u}),l[14]=m,l[15]=u,l[16]=a):a=l[16],l[17]!==r||l[18]!==a?(o=(0,v.jsx)(S.HU.Provider,{value:r,children:a}),l[17]=r,l[18]=a,l[19]=o):o=l[19],o}function ZI(e){return e.children}let ZT=(0,eI.I4)(I.Zp).withConfig({displayName:"ChipCard",componentId:"sc-yz82fb-0"})(e=>{let{color:t}=(0,nN.JW)(e.theme);return(0,eI.AH)` 1300 --card-fg-color: ${t.button.ghost[e.tone].enabled.fg}; 1301 `}),ZE=e=>{let t,n,i,r,a,o=(0,j.c)(13),{id:l,showSparkles:s}=e,d=rL(l),c="published"===d?"Published":"Draft",u="published"===d?"positive":"caution",p="published"===d?"positive":"caution";return o[0]!==p?(t=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(RM,{tone:p})}),o[0]=p,o[1]=t):t=o[1],o[2]!==c?(n=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:c}),o[2]=c,o[3]=n):n=o[3],o[4]!==s?(i=s&&(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.v5M,{})}),o[4]=s,o[5]=i):i=o[5],o[6]!==t||o[7]!==n||o[8]!==i?(r=(0,v.jsxs)(I.so,{gap:2,align:"center",children:[t,n,i]}),o[6]=t,o[7]=n,o[8]=i,o[9]=r):r=o[9],o[10]!==u||o[11]!==r?(a=(0,v.jsx)(ZT,{tone:u,padding:2,paddingRight:3,radius:"full",children:r}),o[10]=u,o[11]=r,o[12]=a):a=o[12],a};function Z$(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x=(0,j.c)(34),{originalDocument:b,mappedDocument:w}=e,{t:_}=as(Zl);x[0]===Symbol.for("react.memo_cache_sentinel")?(t={opacity:0},n={opacity:1},i={opacity:0},r={duration:.3},x[0]=t,x[1]=n,x[2]=i,x[3]=r):(t=x[0],n=x[1],i=x[2],r=x[3]),x[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)(I.az,{padding:1,children:(0,v.jsx)(I.EY,{size:2,children:(0,v.jsx)(eT.sAQ,{})})}),x[4]=a):a=x[4],x[5]!==_?(o=_("dialog.confirm-document-changes.title"),x[5]=_,x[6]=o):o=x[6],x[7]!==o?(l=(0,v.jsx)(I.az,{padding:1,children:(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:o})}),x[7]=o,x[8]=l):l=x[8],x[9]!==_?(s=_("dialog.confirm-document-changes.description"),x[9]=_,x[10]=s):s=x[10],x[11]!==s?(d=(0,v.jsx)(I.az,{padding:1,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:s})}),x[11]=s,x[12]=d):d=x[12],x[13]!==l||x[14]!==d?(c=(0,v.jsx)(I.Zp,{tone:"critical",padding:2,radius:3,children:(0,v.jsxs)(I.so,{gap:2,align:"flex-start",children:[a,(0,v.jsxs)(I.BJ,{space:2,children:[l,d]})]})}),x[13]=l,x[14]=d,x[15]=c):c=x[15];let k=b?._id||"";x[16]!==k?(u=(0,v.jsx)(ZE,{id:k}),x[16]=k,x[17]=u):u=x[17],x[18]===Symbol.for("react.memo_cache_sentinel")?(p=(0,v.jsx)(I.EY,{size:2,children:(0,v.jsx)(eT.flY,{})}),x[18]=p):p=x[18];let S=w?._id||"";return x[19]!==S?(m=(0,v.jsx)(ZE,{id:S,showSparkles:!0}),x[19]=S,x[20]=m):m=x[20],x[21]!==u||x[22]!==m?(h=(0,v.jsx)(I.az,{padding:3,children:(0,v.jsxs)(I.so,{gap:2,align:"center",children:[u,p,m]})}),x[21]=u,x[22]=m,x[23]=h):h=x[23],x[24]===Symbol.for("react.memo_cache_sentinel")?(f=(0,v.jsx)(I.Zp,{borderBottom:!0}),x[24]=f):f=x[24],x[25]!==w||x[26]!==b?(g=b&&w&&(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(ZS,{baseDocument:b,document:w})}),x[25]=w,x[26]=b,x[27]=g):g=x[27],x[28]!==h||x[29]!==g?(y=(0,v.jsxs)(I.Zp,{radius:3,border:!0,marginTop:3,children:[h,f,g]}),x[28]=h,x[29]=g,x[30]=y):y=x[30],x[31]!==c||x[32]!==y?(C=(0,v.jsxs)(ir.P.div,{initial:t,animate:n,exit:i,transition:r,children:[c,y]}),x[31]=c,x[32]=y,x[33]=C):C=x[33],C}function ZA(e){let t,n,i,r=(0,j.c)(5),{children:a}=e,o=(0,_.useContext)(S.qm);r[0]!==o?(t=o||(i={},{get:async e=>{let{projectId:t,appIdFetcher:n}=e,r=i[t];return r||(r=(async()=>{try{return await n(t)}catch(e){console.error(e),i[t]=void 0;return}})(),i[t]=r,r)}}),r[0]=o,r[1]=t):t=r[1];let l=t;return r[2]!==l||r[3]!==a?(n=(0,v.jsx)(S.qm.Provider,{value:l,children:a}),r[2]=l,r[3]=a,r[4]=n):n=r[4],n}function ZD(){let e=(0,_.useContext)(S.qm);if(!e)throw Error("AppIdCache: missing context value. Ensure the component is wrapped in a AppIdCacheProvider.");return e}async function Zz(e){let t=`${e}/static/create-manifest.json`;try{let e=await fetch(t,{method:"HEAD"});return 404!=e.status&&(!(e.status>299)||(console.error(`Failed to get manifest from ${t}`,e),!1))}catch(e){return console.error(`Failed to fetch from ${t}`,e),!1}}let ZP="u">typeof __SANITY_STAGING__&&!0===__SANITY_STAGING__?"studio.sanity.work":"sanity.studio";
1301async function ZR(e,t,n){return(await e.request({method:"GET",url:`/projects/${t}/user-applications`})).map(e=>({...e,studioUrl:ZO(e,n)}))}async function ZN(e){let{projectId:t,client:n,fallbackOrigin:i,internalSuffix:r=ZP,checkStudioManifest:a=Zz,origin:o=window.location?.origin}=e,l=await ZR(n,t,r),s=l.find(e=>e&&o&&e.studioUrl?.startsWith(o));return s?.appHost&&await a(ZO(s,r))?{appId:s.id,studioApps:l}:{appId:l.find(e=>e&&i&&e.studioUrl?.startsWith(`https://${i}`))?.id,studioApps:l}}function ZO(e,t){return"internal"===e.urlType?`https://${e.appHost}.${t}`:e.appHost}function ZV(e){let t,n,i,r=(0,j.c)(9);r[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"2024-09-01"},r[0]=t):t=r[0];let a=el0(t),o=ZD(),{projectId:l}=_g();r[1]!==a||r[2]!==e.fallbackStudioOrigin?(n=t=>ZN({projectId:t,client:a,fallbackOrigin:e.fallbackStudioOrigin}),r[1]=a,r[2]=e.fallbackStudioOrigin,r[3]=n):n=r[3];let s=n;return r[4]!==s||r[5]!==o||r[6]!==e.enabled||r[7]!==l?(i={projectId:l,cache:o,appIdFetcher:s,enabled:e.enabled},r[4]=s,r[5]=o,r[6]=e.enabled,r[7]=l,r[8]=i):i=r[8],function(e){let t,n,i,r=(0,j.c)(9),{cache:a,enabled:o,appIdFetcher:l,projectId:s}=e,[d,c]=(0,_.useState)(!1),[u,p]=(0,_.useState)();return r[0]!==l||r[1]!==a||r[2]!==o||r[3]!==s?(t=()=>{let e=!0;return o&&(async function(){if(s){c(!0);try{let t=await a.get({projectId:s,appIdFetcher:l});e&&p(t)}catch{e&&p(void 0)}e&&c(!1)}})().catch(console.error),()=>{e=!1,c(!1)}},n=[c,l,a,o,s],r[0]=l,r[1]=a,r[2]=o,r[3]=s,r[4]=t,r[5]=n):(t=r[4],n=r[5]),(0,_.useEffect)(t,n),r[6]!==d||r[7]!==u?(i={loading:d,studioApp:u},r[6]=d,r[7]=u,r[8]=i):i=r[8],i}(i)}let ZM=()=>`_.schemas.${cY().name||"default"}`,ZL=Intl.DateTimeFormat().resolvedOptions(),ZF={status:"validating"},ZB={apiVersion:"v2025-04-29"};function ZY(e){return(0,eP.of)({status:"error",error:e.message})}function ZH(){}let ZU=e=>{let t,n,i,r,a,o,l,s,d,c=(0,j.c)(35),{document:u,onClose:p}=e,{t:m}=as(Zl),h=(0,_.useId)();c[0]!==u?(t={document:u},c[0]=u,c[1]=t):t=c[1];let{status:f,error:g,navigateToCanvas:y,response:C}=function(e){let t,n,i=(0,j.c)(25),{document:r}=e,a=cY(),o=cm(),l=Zp(),{node:s}=cy(),d=l?.name==="coreUi",{linkRedirected:c,linkDialogDiffsShown:u}=Zv(),p=a.apps?.canvas?.fallbackStudioOrigin;i[0]!==p?(t={enabled:!0,fallbackStudioOrigin:p},i[0]=p,i[1]=t):t=i[1];let{studioApp:m,loading:h}=ZV(t),f=ZM(),g=el0(ZB);e:{let e,t;if(h){let e;i[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)({status:"validating"}),i[2]=e):e=i[2],n=e;break e}if(!m?.appId){let e;i[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)({status:"error",error:"Studio app not found, try deploying it or set the fallbackStudioOrigin"}),i[3]=e):e=i[3],n=e;break e}if(!r?._id){let e;i[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)({status:"missing-document-id",error:"Missing document ID"}),i[4]=e):e=i[4],n=e;break e}i[5]!==g||i[6]!==r._id||i[7]!==r._type||i[8]!==d||i[9]!==s||i[10]!==o||i[11]!==m?.appId||i[12]!==a.name?(e=()=>{let e=g.config().dataset||"",t=g.config().projectId||"",n=`studio-import?${new URLSearchParams({projectId:t,dataset:e,documentType:r._type,documentId:r._id,workspaceName:a.name,applicationId:m?.appId||""}).toString()}`;if(d&&s){let e={resourceId:"",resourceType:"canvas",path:n};return(0,eP.of)(()=>s.post("dashboard/v1/bridge/navigate-to-resource",e))}return o.getOrganizationId().pipe((0,eV.T)(e=>{if(!e)return ZH;let t=`https://www.sanity.${"https://api.sanity.work"===g.config().apiHost?"work":"io"}/@${e}/canvas/${n}`;return()=>window.open(t,"_blank")}))},i[5]=g,i[6]=r._id,i[7]=r._type,i[8]=d,i[9]=s,i[10]=o,i[11]=m?.appId,i[12]=a.name,i[13]=e):e=i[13];let l=e;if(i[14]!==g||i[15]!==r||i[16]!==l||i[17]!==u||i[18]!==c||i[19]!==f){let e,n;i[21]!==c?(e=e=>{let[t,n]=e;if(!t.error){let e=t.diff?.length?"diff":"redirecting";return{status:e,error:null,response:t,navigateToCanvas:()=>{c("diff"===e?"diff-dialog":"redirect",t.diff),n()}}}return{status:"error",error:t.error,response:t,redirectUrl:void 0}},i[21]=c,i[22]=e):e=i[22],i[23]!==u?(n=e=>{let{status:t,navigateToCanvas:n}=e;"redirecting"===t&&setTimeout(()=>{n()},1e3),"diff"===t&&u()},i[23]=u,i[24]=n):n=i[24],t=(0,e8.z)([(({client:e,document:t,schemaId:n})=>{let i=e.config().dataset;return e.observable.request({url:`/assist/studio-to-canvas/${i}`,tag:"sanity.canvas",method:"POST",body:{document:t,schemaId:n,localeSettings:{locale:ZL.locale,timeZone:ZL.timeZone}}})})({client:g,document:r,schemaId:f}),l()]).pipe((0,eV.T)(e),(0,e5.M)(n),(0,eY.W)(ZY)),i[14]=g,i[15]=r,i[16]=l,i[17]=u,i[18]=c,i[19]=f,i[20]=t}else t=i[20];n=t}return(0,tF.J)(n,ZF)}(t),{linkDialogRejected:x}=Zv();c[2]!==x||c[3]!==p||c[4]!==C?.diff||c[5]!==f?(n=()=>{p(),"diff"===f&&x(C?.diff||[])},c[2]=x,c[3]=p,c[4]=C?.diff,c[5]=f,c[6]=n):n=c[6];let b=n,w=`dialog-link-to-canvas-${h}`;return c[7]!==m?(i=m("dialog.link-to-canvas.title"),c[7]=m,c[8]=i):i=c[8],c[9]!==y||c[10]!==p||c[11]!==f||c[12]!==m?(r="diff"===f?{description:m("dialog.confirm-document-changes.footer-description"),confirmButton:{text:m("dialog.confirm-document-changes.confirm"),icon:eT.v5M,tone:"default",onClick:y,space:2},cancelButton:{text:m("dialog.confirm-document-changes.cancel"),onClick:p}}:void 0,c[9]=y,c[10]=p,c[11]=f,c[12]=m,c[13]=r):r=c[13],c[14]!==f||c[15]!==m?(a=("validating"===f||"redirecting"===f)&&(0,v.jsx)(I.az,{paddingY:5,children:(0,v.jsx)(ry,{title:m("validating"===f?"dialog.link-to-canvas.validating":"dialog.link-to-canvas.redirecting"),showText:!0})}),c[14]=f,c[15]=m,c[16]=a):a=c[16],c[17]!==g||c[18]!==f||c[19]!==m?(o=("error"===f||"missing-document-id"===f)&&(0,v.jsx)(ir.P.div,{initial:{opacity:0}
1301,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,v.jsx)(I.Zp,{border:!0,tone:"critical",padding:4,radius:3,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:g||m("dialog.link-to-canvas.error")})})}),c[17]=g,c[18]=f,c[19]=m,c[20]=o):o=c[20],c[21]!==u||c[22]!==C||c[23]!==f?(l="diff"===f&&C&&(0,v.jsx)(Z$,{originalDocument:u,mappedDocument:C.mappedDocument}),c[21]=u,c[22]=C,c[23]=f,c[24]=l):l=c[24],c[25]!==a||c[26]!==o||c[27]!==l?(s=(0,v.jsxs)(I.az,{padding:3,children:[a,o,l]}),c[25]=a,c[26]=o,c[27]=l,c[28]=s):s=c[28],c[29]!==b||c[30]!==w||c[31]!==i||c[32]!==r||c[33]!==s?(d=(0,v.jsx)(tL.lG,{id:w,header:i,onClose:b,width:1,bodyHeight:"stretch",padding:!1,footer:r,children:s}),c[29]=b,c[30]=w,c[31]=i,c[32]=r,c[33]=s,c[34]=d):d=c[34],d},ZZ=e=>{var t;let n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(38),{t:f}=as(Zl),[g,y]=(0,_.useState)(!1),{selectedPerspective:C}=a3();h[0]!==e?(n=Zw(e),h[0]=e,h[1]=n):n=h[1];let{isLinked:x,loading:b}=BJ(n),{value:w}=Zc(),{linkCtaClicked:k}=Zv(),S=(t=e.type,p=(0,j.c)(3),m=R8(),p[0]!==m||p[1]!==t?(u=m.get(t)?.options?.sanityCreate?.exclude,p[0]=m,p[1]=t,p[2]=u):u=p[2],u);h[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>y(!1),h[2]=i):i=h[2];let I=i,T=Zp()?.name==="coreUi",E=!!e.release,$=yZ(),[A,D]=(0,_.useState)();h[3]!==$||h[4]!==k||h[5]!==e.liveEditSchemaType?(r=()=>{k();let t=$([]);D({...t,_id:e.liveEditSchemaType?(0,tG.IM)(t._id):(0,tG.T4)(t._id)}),y(!0)},h[3]=$,h[4]=k,h[5]=e.liveEditSchemaType,h[6]=r):r=h[6];let z=r;e:{let t;if(!w){let e,t;h[7]!==f?(e=f("action.link-document-disabled.missing-permissions"),h[7]=f,h[8]=e):e=h[8],h[9]!==e?(t={disabled:!0,reason:e},h[9]=e,h[10]=t):t=h[10],a=t;break e}if(!T){let e,t;h[11]!==f?(e=f("action.link-document-disabled.not-in-dashboard"),h[11]=f,h[12]=e):e=h[12],h[13]!==e?(t={disabled:!0,reason:e},h[13]=e,h[14]=t):t=h[14],a=t;break e}if(E){let e,t;h[15]!==f?(e=f("action.link-document-disabled.version-document"),h[15]=f,h[16]=e):e=h[16],h[17]!==e?(t={disabled:!0,reason:e},h[17]=e,h[18]=t):t=h[18],a=t;break e}if(!e.initialValueResolved){let e,t;h[19]!==f?(e=f("action.link-document-disabled.initial-value-not-resolved"),h[19]=f,h[20]=e):e=h[20],h[21]!==e?(t={disabled:!0,reason:e},h[21]=e,h[22]=t):t=h[22],a=t;break e}h[23]===Symbol.for("react.memo_cache_sentinel")?(t={disabled:!1,reason:void 0},h[23]=t):t=h[23],a=t}let P=a;if(h[24]!==x?(o=()=>{x&&I()},l=[x,I],h[24]=x,h[25]=o,h[26]=l):(o=h[25],l=h[26]),(0,_.useEffect)(o,l),x||b||S||"published"===C&&!e.liveEditSchemaType||rG(C)||!T)return null;let R=P.disabled;return h[27]!==A||h[28]!==g?(s=g&&A?{type:"custom",component:(0,v.jsx)(ZU,{onClose:I,document:A})}:void 0,h[27]=A,h[28]=g,h[29]=s):s=h[29],h[30]!==f?(d=f("action.link-document"),h[30]=f,h[31]=d):d=h[31],h[32]!==P.disabled||h[33]!==P.reason||h[34]!==z||h[35]!==s||h[36]!==d?(c={disabled:R,icon:eT.v5M,dialog:s,label:d,title:P.reason,onHandle:z},h[32]=P.disabled,h[33]=P.reason,h[34]=z,h[35]=s,h[36]=d,h[37]=c):c=h[37],c};ZZ.action="linkToCanvas",ZZ.displayName="LinkToCanvasAction";let Zq=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(50),{document:x,onClose:b,status:w,error:k,handleUnlink:S}=e,{t:T}=as(Zl),{t:E}=as();C[0]!==x?(t={document:x},C[0]=x,C[1]=t):t=C[1];let{title:$}=(e=>{let t,n,i,r=(0,j.c)(11),{document:a}=e,o=R8();r[0]!==a._type||r[1]!==o?(t=o.get(a._type),r[0]=a._type,r[1]=o,r[2]=t):t=r[2];let l=t,s=!!a;r[3]!==a||r[4]!==l||r[5]!==s?(n={enabled:s,schemaType:l,value:a},r[3]=a,r[4]=l,r[5]=s,r[6]=n):n=r[6];let{error:d,value:c}=v3(n);if(!l){let e;return r[7]===Symbol.for("react.memo_cache_sentinel")?(e={error:"Schema type not found"},r[7]=e):e=r[7],e}let u=c?.title;return r[8]!==d||r[9]!==u?(i={error:d,title:u},r[8]=d,r[9]=u,r[10]=i):i=r[10],i})(t),A=`dialog-unlink-from-canvas-${(0,_.useId)()}`;C[2]!==T?(n=T("dialog.unlink-from-canvas.title"),C[2]=T,C[3]=n):n=C[3];let D="loading"===w?void 0:b;C[4]!==T?(i=T("dialog.unlink-from-canvas.cancel"),C[4]=T,C[5]=i):i=C[5];let z="idle"!=w;C[6]!==b||C[7]!==i||C[8]!==z?(r={text:i,onClick:b,disabled:z},C[6]=b,C[7]=i,C[8]=z,C[9]=r):r=C[9],C[10]!==T?(a=T("dialog.unlink-from-canvas.unlink-action"),C[10]=T,C[11]=a):a=C[11];let P="loading"===w,R="idle"!=w;return C[12]!==S||C[13]!==R||C[14]!==a||C[15]!==P?(o={text:a,onClick:S,tone:"default",loading:P,disabled:R},C[12]=S,C[13]=R,C[14]=a,C[15]=P,C[16]=o):o=C[16],C[17]!==o||C[18]!==r?(l={cancelButton:r,confirmButton:o},C[17]=o,C[18]=r,C[19]=l):l=C[19],C[20]!==E||C[21]!==$?(s=$||E("preview.default.title-fallback"),C[20]=E,C[21]=$,C[22]=s):s=C[22],C[23]!==s?(d={documentTitle:s},C[23]=s,C[24]=d):d=C[24],C[25]!==T||C[26]!==d?(c=(0,v.jsx)(I.az,{paddingBottom:2,children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:(0,v.jsx)(aE,{t:T,i18nKey:"dialog.unlink-from-canvas.unlinking",values:d})})}),C[25]=T,C[26]=d,C[27]=c):c=C[27],C[28]!==T?(u=T("dialog.unlink-from-canvas.description"),C[28]=T,C[29]=u):u=C[29],C[30]!==u?(p=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:u})}),C[30]=u,C[31]=p):p=C[31],C[32]!==c||C[33]!==p?(m=(0,v.jsxs)(I.BJ,{space:3,children:[c,p]}),C[32]=c,C[33]=p,C[34]=m):m=C[34],C[35]!==k||C[36]!==w||C[37]!==T?(h="error"===w&&(0,v.jsx)(ir.P.div,{initial:{opacity:0,scale:.9}
1301,animate:{opacity:1,scale:1},children:(0,v.jsx)(I.Zp,{tone:"critical",padding:2,radius:3,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:k||T("dialog.unlink-from-canvas.error")})})},"error"),C[35]=k,C[36]=w,C[37]=T,C[38]=h):h=C[38],C[39]!==h?(f=(0,v.jsx)(ia.N,{children:h}),C[39]=h,C[40]=f):f=C[40],C[41]!==m||C[42]!==f?(g=(0,v.jsxs)(I.BJ,{space:3,children:[m,f]}),C[41]=m,C[42]=f,C[43]=g):g=C[43],C[44]!==l||C[45]!==A||C[46]!==g||C[47]!==n||C[48]!==D?(y=(0,v.jsx)(tL.lG,{id:A,header:n,onClose:D,bodyHeight:"stretch",footer:l,children:g}),C[44]=l,C[45]=A,C[46]=g,C[47]=n,C[48]=D,C[49]=y):y=C[49],y},ZW=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(23),{t:d}=as(Zl);s[0]!==e?(t=Zw(e),s[0]=e,s[1]=t):t=s[1];let{isLinked:c,companionDoc:u,loading:p}=BJ(t),m=el0(ob),{unlinkCtaClicked:h,unlinkApproved:f}=Zv(),g=(0,T.dj)(),[y,C]=(0,_.useState)(!1),[x,b]=(0,_.useState)("idle"),[w,k]=(0,_.useState)(null);s[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>C(!1),s[2]=n):n=s[2];let S=n;s[3]!==h?(i=()=>{h(),C(!0)},s[3]=h,s[4]=i):i=s[4];let I=i;s[5]!==m||s[6]!==u?._id||s[7]!==d||s[8]!==g||s[9]!==f?(r=async()=>{let e=async()=>{if(!u?._id)throw Error("Companion doc not found");b("loading"),f(),await m.delete(u?._id),b("idle"),S(),g.push({status:"success",title:d("dialog.unlink-from-canvas.success")})};try{await e()}catch(e){console.error(e),k(e.message),b("error")}},s[5]=m,s[6]=u?._id,s[7]=d,s[8]=g,s[9]=f,s[10]=r):r=s[10];let E=r,$=e.version||e.draft||e.published;return $&&c&&!p?(s[11]!==$||s[12]!==w||s[13]!==E||s[14]!==y||s[15]!==x?(a=y?{type:"custom",component:(0,v.jsx)(Zq,{onClose:S,document:$,status:x,error:w,handleUnlink:E})}:void 0,s[11]=$,s[12]=w,s[13]=E,s[14]=y,s[15]=x,s[16]=a):a=s[16],s[17]!==d?(o=d("action.unlink-document"),s[17]=d,s[18]=o):o=s[18],s[19]!==I||s[20]!==a||s[21]!==o?(l={icon:eT.xPL,dialog:a,label:o,onHandle:I},s[19]=I,s[20]=a,s[21]=o,s[22]=l):l=s[22],l):null};ZW.action="unlinkFromCanvas",ZW.displayName="UnlinkFromCanvasAction";let ZJ="sanity/canvas-integration",ZK=R1(()=>({name:ZJ,i18n:{bundles:[Zs]},document:{actions:(e,t)=>{if("draft"===t.versionType||"version"===t.versionType){let t=["delete","discardVersion"],n=e.filter(e=>t.includes(e.action));return[...e.filter(e=>!t.includes(e.action)),ZZ,ZW,Z_,...n]}return e}}})),ZG="comments";function ZX(e){let t,n,i,r=(0,j.c)(6),{children:a}=e,[o,l]=(0,_.useState)(null);r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{l(e)},r[0]=t):t=r[0];let s=t;r[1]!==o?(n={authoringPath:o,setAuthoringPath:s},r[1]=o,r[2]=n):n=r[2];let d=n;return r[3]!==a||r[4]!==d?(i=(0,v.jsx)(S.ki.Provider,{value:d,children:a}),r[3]=a,r[4]=d,r[5]=i):i=r[5],i}function ZQ(e){let t,n=(0,j.c)(3),[i]=(0,_.useState)(e);return n[0]!==e||n[1]!==i?(t=(0,D.A)(i,e),n[0]=e,n[1]=i,n[2]=t):t=n[2],!t}function Z1(e){return!!e&&e?.some(e=>(0,eD.L4)(e)&&(e?.children||[])?.some(e=>(0,eD.bn)(e)?e.text:e.userId))}function Z2(e){return!!e&&!!(e?.target?.path?.selection?.type==="text"&&e?.target?.path?.selection?.value)}let Z5=[];function Z0(e){let{comments:t,currentUser:n,documentValue:i,schemaType:r,type:a}=e,o=t?.filter(e=>!e.parentCommentId);return"task"===a?o.map(e=>{let n=t?.filter(t=>t.parentCommentId===e._id);return{commentsCount:[e,...n].length,parentComment:e,replies:n,threadId:e.threadId,hasReferencedValue:!1,breadcrumbs:Z5,fieldPath:""}}):"field"===a?o.map(e=>{let a=function(e){let{currentUser:t,schemaType:n,fieldPath:i,documentValue:r}=e,a=w.sH(i),o=[],l=n;return a.forEach((e,n)=>{let i=a.slice(0,n+1),s=a.slice(0,n),d=function e(t,n){let i=w.sH(n),r=i[0];if(r&&(0,eD.$d)(t)){let n=t?.fields?.find(e=>e.name===r);if(n){let t=w.dI(i.slice(1));return t?e(n.type,t):n}}}(l,w.dI([e])),c=e.hasOwnProperty("_key"),u=oi(r,s),p=oi(r,i),m={document:r,currentUser:t,parent:u,value:p,path:i};if(c&&Array.isArray(u)){let t=function(e,t){if("number"==typeof t)return t;let n=(0,ei.A)(e,t);return -1!==n&&n}(u,e);o.push({invalid:!1===t,isArrayItem:!0,title:"number"==typeof t?`#${Number(t)+1}`:"Unknown array item"});return}if(d?.type){let e=sw(d.type.hidden,m);o.push({invalid:e,isArrayItem:!1,title:v1(d.type)}),l=d.type;return}
1301if((0,eD.zR)(l)){let t=oi(r,s)?._type,n=l?.of?.find(e=>e.name===t),i=n?.fields?.find(t=>t.name===e);if(!t&&p){let t=l?.of?.map(e=>e?.fields).filter(Boolean).flat()?.find(t=>t?.name===e),n=sw(t?.type?.hidden,m);t&&(o.push({invalid:n,isArrayItem:!1,title:v1(t?.type)}),l=t?.type);return}if(!i)return void o.push({invalid:!0,isArrayItem:!1,title:"Unknown field"});let a=v1(i?.type),d=sw(n?.type?.hidden,m),c=sw(i?.type.hidden,m);return o.push({invalid:d||c,isArrayItem:!1,title:a}),void(l=i?.type)}o.push({invalid:!0,isArrayItem:!1,title:"Unknown field"})}),o}({currentUser:n,documentValue:i,fieldPath:e.target.path?.field||"",schemaType:r}),o=!1;if(Z2(e)&&(o=!!(e.target.path?.selection&&e.target.path.selection.value.some(e=>e.text))),a.some(e=>e.invalid))return;let l=t?.filter(t=>t.parentCommentId===e._id),s=o;return{breadcrumbs:a,commentsCount:[e,...l].length,fieldPath:e.target.path?.field||"",parentComment:e,replies:l,threadId:e.threadId,hasReferencedValue:s}}).filter(Boolean):Z5}let Z7=(0,v.jsx)(I.EY,{muted:!0,children:(0,v.jsx)(eT.vKP,{})}),Z3=(e,t)=>(0,v.jsx)(I.az,{as:"li",children:(0,v.jsx)(I.EY,{textOverflow:"ellipsis",size:1,weight:"medium",children:e})},`${e}-${t}`);function Z8(e){let t,n,i,r=(0,j.c)(11),{titlePath:a,maxLength:o}=e;e:{let e=a.length,n=Math.ceil(o/2),i=Math.floor(o/2);if(o&&e>o){let o;r[0]!==i||r[1]!==n||r[2]!==e||r[3]!==a?(o=[...a.slice(0,n-1),a.slice(n-1,e-i),...a.slice(e-i)],r[0]=i,r[1]=n,r[2]=e,r[3]=a,r[4]=o):o=r[4],t=o;break e}t=a}let l=t;if(r[5]!==l){let e;r[7]!==l.length?(e=(e,t)=>{let n=`${e}-${t}`,i=t<l.length-1;return Array.isArray(e)?(0,v.jsxs)(_.Fragment,{children:[(0,v.jsx)(tL.m_,{content:(0,v.jsx)(I.BJ,{space:2,padding:2,children:e.map(Z3)}),children:(0,v.jsx)(I.az,{children:Z3("...",t)})}),i&&Z7]},n):(0,v.jsxs)(_.Fragment,{children:[Z3(e,t),i&&Z7]},n)},r[7]=l.length,r[8]=e):e=r[8],n=l.map(e),r[5]=l,r[6]=n}else n=r[6];let s=n;return r[9]!==s?(i=(0,v.jsx)(I.so,{align:"center",as:"ol",gap:2,children:s}),r[9]=s,r[10]=i):i=r[10],i}function Z4(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(27),{isParent:u,onClose:p,commentId:m,onConfirm:h,loading:f,error:g}=e,{t:y}=as(ZG);c[0]!==y?(t={thread:{title:y("delete-thread.title"),body:y("delete-thread.body"),confirmButtonText:y("delete-thread.confirm")},comment:{title:y("delete-comment.title"),body:y("delete-comment.body"),confirmButtonText:y("delete-comment.confirm")}},c[0]=y,c[1]=t):t=c[1];let{title:C,body:x,confirmButtonText:b}=t[u?"thread":"comment"];c[2]!==m||c[3]!==h?(n=()=>{h(m)},c[2]=m,c[3]=h,c[4]=n):n=c[4];let w=n;return c[5]!==p?(i={onClick:p},c[5]=p,c[6]=i):i=c[6],c[7]!==b||c[8]!==w||c[9]!==f?(r={loading:f,onClick:w,text:b,tone:"critical"},c[7]=b,c[8]=w,c[9]=f,c[10]=r):r=c[10],c[11]!==i||c[12]!==r?(a={cancelButton:i,confirmButton:r},c[11]=i,c[12]=r,c[13]=a):a=c[13],c[14]!==x?(o=(0,v.jsx)(I.EY,{size:1,children:x}),c[14]=x,c[15]=o):o=c[15],c[16]!==g||c[17]!==y?(l=g&&(0,v.jsx)(NY,{tone:"critical",children:y("delete-dialog.error")}),c[16]=g,c[17]=y,c[18]=l):l=c[18],c[19]!==o||c[20]!==l?(s=(0,v.jsxs)(I.BJ,{space:4,children:[o,l]}),c[19]=o,c[20]=l,c[21]=s):s=c[21],c[22]!==p||c[23]!==a||c[24]!==s||c[25]!==C?(d=(0,v.jsx)(tL.lG,{footer:a,header:C,id:"delete-comment-dialog",onClose:p,width:0,children:s}),c[22]=p,c[23]=a,c[24]=s,c[25]=C,c[26]=d):d=c[26],d}let Z6=(0,_.forwardRef)(function(e,t){let n,i,r,a=(0,j.c)(5);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)("path",{d:"M5.92627 14.5381H7.92627V18.5381L11.9263 14.5381H15.9263C17.0308 14.5381 17.9263 13.6427 17.9263 12.5381V6.53809C17.9263 5.43352 17.0308 4.53809 15.9263 4.53809H5.92627C4.8217 4.53809 3.92627 5.43352 3.92627 6.53809V12.5381C3.92627 13.6427 4.8217 14.5381 5.92627 14.5381Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"}),i=(0,v.jsx)("path",{d:"M2.77256 2.66835C2.54413 2.51319 2.23317 2.57259 2.07802 2.80103L1.40378 3.7937C1.32927 3.9034 1.30139 4.0382 1.32627 4.16845C1.35115 4.29871 1.42676 4.41374 1.53646 4.48825L19.5861 16.7479C19.8146 16.903 20.1255 16.8436 20.2807 16.6152L20.9549 15.6225C21.0294 15.5128 21.0573 15.378 21.0324 15.2478C21.0076 15.1175 20.9319 15.0025 20.8222 14.928L2.77256 2.66835Z",fill:"currentColor",strokeLinejoin:"round"}),a[0]=n,a[1]=i):(n=a[0],i=a[1]),a[2]!==e||a[3]!==t?(r=(0,v.jsxs)("svg",{"data-sanity-icon":"comment-disabled",width:"1em",height:"1em",ref:t,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[n,i]}),a[2]=e,a[3]=t,a[4]=r):r=a[4],r});(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(4);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)("path",{d:"M7.5 15.5H9.5V19.5L13.5 15.5H17.5C18.6046 15.5 19.5 14.6046 19.5 13.5V7.5C19.5 6.39543 18.6046 5.5 17.5 5.5H7.5C6.39543 5.5 5.5 6.39543 5.5 7.5V13.5C5.5 14.6046 6.39543 15.5 7.5 15.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.2"}),r[0]=n):n=r[0],r[1]!==e||r[2]!==t?(i=(0,v.jsx)("svg",{"data-sanity-icon":"comment",width:"1em",height:"1em",ref:t,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n}),r[1]=e,r[2]=t,r[3]=i):i=r[3],i});let Z9=(0,_.forwardRef)(function(e,t){let n,i,r,a=(0,j.c)(5);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)("path",{d:"M16.6633 18.9383C15.539 19.6562 14.2034 20.0723 12.7705 20.0723C8.77022 20.0723 5.52734 16.8294 5.52734 12.8291C5.52734 8.82881 8.77022 5.58594 12.7705 5.58594C16.7708 5.58594 20.0137 8.82881 20.0137 12.8291C20.0137 13.6623 19.8249 14.7093 19.6141 15.2077C19.5578 15.3408 19.479 15.4845 19.3936 15.6238C19.0955 16.1106 18.5507 16.3721 17.9807 16.4018V16.4018C16.8271 16.462 15.8588 15.5428 15.8588 14.3877V9.27302",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),i=(0,v.jsx)("circle",{cx:"12.5732",cy:"12.8291",r:"3.08691",stroke:"currentColor",strokeWidth:1.2}),a[0]=n,a[1]=i):(n=a[0],i=a[1]),a[2]!==e||a[3]!==t?(r=(0,v.jsxs)("svg",{"data-sanity-icon":"mention",fill:"none",height:"1em",ref:t,viewBox:"0 0 25 25",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[n,i]}),a[2]=e,a[3]=t,a[4]=r):r=a[4],r}),qe=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s=(0,j.c)(8);return s[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)("path",{d:"M10.1044 10.4011L10.1044 10.9972",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square"}),i=(0,v.jsx)("path",{d:"M14.2393 10.4011L14.2393 10.9972",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square"}),r=(0,v.jsx)("path",{d:"M7.12128 14.1151C7.70803 15.0226 9.66113 16.8377 11.7735 16.837
13017C13.8859 16.8377 15.6713 15.0226 16.4257 14.1151",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square"}),a=(0,v.jsx)("path",{d:"M16.703 6.43905C15.3486 5.36511 13.6357 4.72374 11.773 4.72374C7.38731 4.72374 3.83203 8.27902 3.83203 12.6647C3.83203 17.0503 7.38731 20.6056 11.773 20.6056C16.0995 20.6056 19.618 17.1455 19.712 12.8415",stroke:"currentColor",strokeWidth:1.2}),o=(0,v.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.1135 9.03425L19.1135 11.4903L20.3135 11.4903L20.3135 9.03425L22.7693 9.03425L22.7693 7.83425L20.3135 7.83425L20.3135 5.37941L19.1135 5.37941L19.1135 7.83425L16.6584 7.83425L16.6584 9.03425L19.1135 9.03425Z",fill:"currentColor"}),s[0]=n,s[1]=i,s[2]=r,s[3]=a,s[4]=o):(n=s[0],i=s[1],r=s[2],a=s[3],o=s[4]),s[5]!==e||s[6]!==t?(l=(0,v.jsxs)("svg",{"data-sanity-icon":"add-reaction",fill:"none",height:"1em",ref:t,viewBox:"0 0 25 25",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[n,i,r,a,o]}),s[5]=e,s[6]=t,s[7]=l):l=s[7],l}),qt=(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(4);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)("path",{clipRule:"evenodd",d:"M21.1602 12.5L7.16016 19.5V14.8765L13.6656 12.4989L7.16016 9.97149L7.16016 5.5L21.1602 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),r[0]=n):n=r[0],r[1]!==e||r[2]!==t?(i=(0,v.jsx)("svg",{"data-sanity-icon":"send",fill:"none",height:"1em",ref:t,viewBox:"0 0 25 25",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:n}),r[1]=e,r[2]=t,r[3]=i):i=r[3],i}),qn=(0,eI.I4)(I.eu).withConfig({displayName:"StyledAvatar",componentId:"sc-40otsc-0"})`svg > ellipse{stroke:transparent;}`,qi=/[^\p{Alpha}\p{White_Space}]/gu,qr=RegExp("\\p{White_Space}+","u");function qa(e){let t,n,i,r,a,o=(0,j.c)(12);o[0]!==e?({user:n,...t}=e,o[0]=e,o[1]=t,o[2]=n):(t=o[1],n=o[2]);let l=n,s=l?.displayName||"";o[3]!==s?(i=1===(a=s.replace(qi,"").split(qr)).length?`${a[0].charAt(0)}`.toUpperCase():`${a[0].charAt(0)}${a[a.length-1].charAt(0)}`,o[3]=s,o[4]=i):i=o[4];let d=i;if(!l){let e;return o[5]!==t?(e=(0,v.jsx)(qn,{...t}),o[5]=t,o[6]=e):e=o[6],e}let c=l?.imageUrl,u=l?.displayName;return o[7]!==d||o[8]!==t||o[9]!==c||o[10]!==u?(r=(0,v.jsx)(qn,{initials:d,src:c,title:u,...t}),o[7]=d,o[8]=t,o[9]=c,o[10]=u,o[11]=r):r=o[11],r}let qo=eI.I4.div.withConfig({displayName:"SpacerAvatar",componentId:"sc-115wr3a-0"})(e=>{let t=(0,nN.JW)(e.theme),{$size:n=1}=e;return(0,eI.AH)` 1302 min-width: ${t.avatar.sizes[n]?.size}px; 1303 `}),ql=(0,eD.MI)({name:"mention",type:"object",fields:[{name:"userId",type:"string"}]}),qs=(0,eD.MI)({type:"block",name:"block",of:[ql],marks:{annotations:[]},styles:[{title:"Normal",value:"normal"}],lists:[]}),qd=(0,eD.dO)({type:"array",name:"body",of:[qs]}),qc=n4.Sj.compile({name:"comments",types:[qd]}).get("body"),qu=eI.I4.span.withConfig({displayName:"Span",componentId:"sc-ue14if-0"})(({theme:e})=>{let{regular:t}=e.sanity.fonts?.text.weights||{},{hovered:n}=e.sanity.color?.card||{},{bg:i}=e.sanity.color.selectable?.caution.pressed||{};return(0,eI.AH)` 1304 font-weight: ${t}; 1305 color: var(--card-link-fg-color); 1306 border-radius: 2px; 1307 background-color: ${n.bg}; 1308 padding: 1px; 1309 box-sizing: border-box; 1310 1311 &[data-active='true'] { 1312 background-color: ${i}; 1313 } 1314 `});function qp(e){let t,n,i,r,a,o=(0,j.c)(15),{selected:l,userId:s}=e,[d,c]=o2(s),u=o5();if(!d||c){let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.r5,{"data-testid":"comment-mentions-loading-skeleton",style:{width:"10ch"},size:0,muted:!0,radius:1,animated:!0}),o[0]=e):e=o[0],e}o[1]!==d?(t=(0,v.jsx)(I.so,{children:(0,v.jsx)(qa,{user:d})}),o[1]=d,o[2]=t):t=o[2],o[3]!==d.displayName?(n=(0,v.jsx)(I.EY,{size:1,children:d.displayName}),o[3]=d.displayName,o[4]=n):n=o[4],o[5]!==t||o[6]!==n?(i=(0,v.jsxs)(I.so,{align:"center",gap:2,children:[t,n]}),o[5]=t,o[6]=n,o[7]=i):i=o[7];let p=u?.id===s;return o[8]!==l||o[9]!==p||o[10]!==d.displayName?(r=(0,v.jsxs)(qu,{"data-selected":l,"data-active":p,children:["@",d.displayName]}),o[8]=l,o[9]=p,o[10]=d.displayName,o[11]=r):r=o[11],o[12]!==i||o[13]!==r?(a=(0,v.jsx)(tL.m_,{portal:!0,content:i,
1314children:r}),o[12]=i,o[13]=r,o[14]=a):a=o[14],a}let qm=(0,eI.I4)(I.EY).withConfig({displayName:"NormalText",componentId:"sc-1p13grc-0"})`word-break:break-word;`;function qh(e){let t,n=(0,j.c)(2),{children:i}=e;return n[0]!==i?(t=(0,v.jsx)(qm,{size:1,children:i}),n[0]=i,n[1]=t):t=n[1],t}let qf=e=>{let{children:t}=e;return(0,v.jsx)(qh,{children:t})},qg=e=>{let{children:t,value:n,selected:i}=e;return"mention"===n._type&&n.userId?(0,v.jsx)(qp,{selected:i,userId:n?.userId}):t};function qy(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(25),{t:p}=as(ZG),{onClose:m,onConfirm:h}=e;u[0]!==m?(t=e=>{e.stopPropagation(),m()},u[0]=m,u[1]=t):t=u[1];let f=t;u[2]!==h?(n=e=>{e.stopPropagation(),h()},u[2]=h,u[3]=n):n=u[3];let g=n;return u[4]!==p?(i=p("discard.header"),u[4]=p,u[5]=i):i=u[5],u[6]!==f?(r={onClick:f},u[6]=f,u[7]=r):r=u[7],u[8]!==p?(a=p("discard.button-confirm"),u[8]=p,u[9]=a):a=u[9],u[10]!==g||u[11]!==a?(o={onClick:g,text:a,tone:"critical"},u[10]=g,u[11]=a,u[12]=o):o=u[12],u[13]!==r||u[14]!==o?(l={cancelButton:r,confirmButton:o},u[13]=r,u[14]=o,u[15]=l):l=u[15],u[16]!==p?(s=p("discard.text"),u[16]=p,u[17]=s):s=u[17],u[18]!==s?(d=(0,v.jsx)(I.EY,{size:1,children:s}),u[18]=s,u[19]=d):d=u[19],u[20]!==m||u[21]!==i||u[22]!==l||u[23]!==d?(c=(0,v.jsx)(I.cZ,{tone:"default",children:(0,v.jsx)(T.Co,{zOffset:9999999,children:(0,v.jsx)(tL.lG,{header:i,id:"discard-comment-dialog",onClose:m,width:0,onClickOutside:m,footer:l,children:d})})}),u[20]=m,u[21]=i,u[22]=l,u[23]=d,u[24]=c):c=u[24],c}let qC=(0,eI.I4)(I.so).withConfig({displayName:"InnerFlex",componentId:"sc-13vb0ms-0"})``,qx={width:"50%"};function qb(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(23),{user:c,onSelect:u}=e,[p]=o2(c.id),{t:m}=as(ZG),h=c.granted?void 0:"inactive";d[0]!==p||d[1]!==h?(t=(0,v.jsx)(qa,{user:p,status:h}),d[0]=p,d[1]=h,d[2]=t):t=d[2];let f=t;d[3]!==p?(n=p?(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",title:p.displayName,children:p.displayName}):(0,v.jsx)(T.r5,{size:1,style:qx}),d[3]=p,d[4]=n):n=d[4];let g=n;d[5]!==u||d[6]!==c.id?(i=()=>{u(c.id)},d[5]=u,d[6]=c.id,d[7]=i):i=d[7];let y=i,C=!c.granted;return d[8]!==g?(r=(0,v.jsx)(I.az,{children:g}),d[8]=g,d[9]=r):r=d[9],d[10]!==f||d[11]!==r?(a=(0,v.jsxs)(qC,{align:"center",gap:2,flex:1,children:[f,r]}),d[10]=f,d[11]=r,d[12]=a):a=d[12],d[13]!==m||d[14]!==c.granted?(o=!c.granted&&(0,v.jsx)(I.Ex,{fontSize:1,mode:"outline",children:m("mentions.unauthorized-user")}),d[13]=m,d[14]=c.granted,d[15]=o):o=d[15],d[16]!==a||d[17]!==o?(l=(0,v.jsxs)(I.so,{align:"center",gap:3,children:[a,o]}),d[16]=a,d[17]=o,d[18]=l):l=d[18],d[19]!==y||d[20]!==C||d[21]!==l?(s=(0,v.jsx)(I.Zp,{as:"button",disabled:C,onClick:y,padding:2,radius:2,children:l}),d[19]=y,d[20]=C,d[21]=l,d[22]=s):s=d[22],s}let qv=[],qj=(0,eI.I4)(I.BJ).withConfig({displayName:"Root",componentId:"sc-2kezws-0"})({maxWidth:"220px"}),qw=(0,eI.I4)(I.so).withConfig({displayName:"FlexWrap",componentId:"sc-2kezws-1"})({maxHeight:315.5}),q_=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u=(0,j.c)(24),{t:p}=as(ZG),{loading:m,onSelect:h,options:f,inputElement:g}=e;u[0]!==f?(n=void 0===f?[]:f,u[0]=f,u[1]=n):n=u[1];let y=n,[C,x]=(0,_.useState)(""),b=(0,_.useRef)(null);u[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>({setSearchTerm(e){x(e)}}),r=[],u[2]=i,u[3]=r):(i=u[2],r=u[3]),(0,_.useImperativeHandle)(t,i,r),u[4]!==h?(a=e=>(0,v.jsx)(qb,{user:e,onSelect:h}),u[4]=h,u[5]=a):a=u[5];let w=a;u[6]!==y?(o=e=>!y?.[e]?.granted,u[6]=y,u[7]=o):o=u[7];let k=o;e:{let e;if(!C){l=y||qv;break e}if(u[8]!==y||u[9]!==C){let t=(0,ec.A)(C).toLocaleLowerCase();e=y?.map(qk)?.filter(e=>e?.displayName?.includes(t))?.sort((e,n)=>{let i=e.displayName?.startsWith(t),r=n.displayName?.startsWith(t);return i&&!r?-1:!i&&r?1:0}),u[8]=y,u[9]=C,u[10]=e}else e=u[10];l=e||qv}let S=l;if(m){let e;return u[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(qj,{children:(0,v.jsx)(ry,{showText:!0})}),u[11]=e):e=u[11],e}let T=g||void 0;return u[12]!==S.length||u[13]!==p?(s=0===S.length&&(0,v.jsx)(I.az,{padding:5,children:(0,v.jsx)(I.EY,{align:"center",size:1,muted:!0,children:p("mentions.no-users-found")})}),u[12]=S.length,u[13]=p,u[14]=s):s=u[14],u[15]!==T||u[16]!==S||u[17]!==k||u[18]!==w||u[19]!==p?(d=S.length>0&&(0,v.jsx)(qw,{direction:"column",flex:1,overflow:"hidden",children:(0,v.jsx)(rr,{activeItemDataAttr:"data-hovered",ariaLabel:p("mentions.user-list-aria-label"),fixedHeight:!0,getItemDisabled:k,inputElement:T,itemHeight:41,items:S,padding:1,ref:b,renderItem:w})}),u[15]=T,u[16]=S,u[17]=k,u[18]=w,u[19]=p,u[20]=d):d=u[20],u[21]!==s||u[22]!==d?(c=(0,v.jsxs)(I.so,{direction:"column",height:"fill","data-testid":"comments-mentions-menu",children:[s,d]}),u[21]=s,u[22]=d,u[23]=c):c=u[23],c});function qk(e){return{...e,displayName:(0,ec.A)(e.displayName||"").toLocaleLowerCase()}}function qS(){let e=(0,_.useContext)(S.ZU);if(!e)throw Error("useCommentInputContext must be used within a CommentInputProvider");return e}let qI={passive:!0},qT=["bottom","top"],qE={outline:"none"},q$=[],qA=eI.I4.span.withConfig({displayName:"PlaceholderWrapper",componentId:"sc-tck1wn-0"})(e=>{let{color:t}=(0,nN.JW)(e.theme);return(0,eI.AH)` 1315 color: ${t.input.default.enabled.placeholder}; 1316 overflow: hidden; 1317 text-overflow: ellipsis; 1318 text-wrap: nowrap; 1319 display: block; 1320 `}),qD=(0,eI.I4)(tL.AM).withConfig({displayName:"StyledPopover",componentId:"sc-tck1wn-1"})(({theme:e})=>{let{space:t,radius:n}=e.sanity;return(0,eI.AH)` 1321 &[data-placement='bottom'] { 1322 transform: translateY(${t[1]}px); 1323 } 1324 1325 &[data-placement='top'] { 1326 transform: translateY(-${t[1]}px); 1327 } 1328 1329 [data-ui='Popover__wrapper'] { 1330 border-radius: ${n[3]}px; 1331 display: flex; 1332 flex-direction: column; 1333 overflow: clip; 1334 overflow: hidden; 1335 position: relative; 1336 width: 300px; // todo: improve 1337 } 1338 `});function qz(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(50),{t:g}=as(ZG),{focusLock:y,onFocus:C,onBlur:x,onKeyDown:b,onSubmit:w,placeholder:k,renderBlock:S}=e;f[0]!==g||f[1]!==k?(t=void 0===k?g("compose.create-comment-placeholder"):k,f[0]=g,f[1]=k,f[2]=t):t=f[2];let T=t,E=(0,_.useRef)(null),[$,A]=(0,_.useState)(null),[z,P]=(0,_.useState)(null),R=(0,_.useRef)(null),N=(0,n1.pq)(),{canSubmit:O,closeMentions:V,insertMention:M,mentionOptions:L,mentionsMenuOpen:F,mentionsSearchTerm:B,onBeforeInput:Y,value:H}=qS(),U=!F;f[3]!==$||f[4]!==U?(n={disabled:U,rootElement:$},f[3]=$,f[4]=U,f[5]=n):n=f[5];let Z=function(e){let t,n,i,r,a=(0,j.c)(8),{disabled:o,rootElement:l}=e,[s,d]=(0,_.useState)(null);e:{let e;if(!s){t=null;break e}a[0]!==s?(e={getBoundingClientRect:()=>s},a[0]=s,a[1]=e):e=a[1],t=e}let c=t;a[2]!==o||a[3]!==l?(n=()=>
1338{if(o)return void d(null);let e=window.getSelection();if(!e||!e.isCollapsed||0===e.rangeCount)return;let t=e.getRangeAt(0);if(!l?.contains(t.commonAncestorContainer))return void d(null);let n=t?.getBoundingClientRect();n&&d(n)},a[2]=o,a[3]=l,a[4]=n):n=a[4];let u=n;return a[5]!==u?(i=()=>(document.addEventListener("selectionchange",u,qI),()=>{document.removeEventListener("selectionchange",u)}),r=[u],a[5]=u,a[6]=i,a[7]=r):(i=a[6],r=a[7]),(0,_.useEffect)(i,r),c}(n);f[6]!==T?(i=()=>(0,v.jsx)(qA,{children:T}),f[6]=T,f[7]=i):i=f[7];let q=i;f[8]===Symbol.for("react.memo_cache_sentinel")?(r=()=>[E.current],f[8]=r):r=f[8],(0,I.PR)(F&&V,r),f[9]!==O||f[10]!==V||f[11]!==F||f[12]!==b||f[13]!==w?(a=e=>{switch(e.key){case"Enter":if(e.shiftKey)break;if(F){e.preventDefault(),e.stopPropagation(),V();break}w&&O&&(e.preventDefault(),e.stopPropagation(),w());break;case"Escape":case"ArrowLeft":case"ArrowRight":F&&(e.preventDefault(),e.stopPropagation(),V())}b&&b(e)},f[9]=O,f[10]=V,f[11]=F,f[12]=b,f[13]=w,f[14]=a):a=f[14];let W=a;if(f[15]!==N||f[16]!==H){e:{let e;if(N){o=void 0;break e}let t=(H||q$).slice(-1)[0],n=(0,eD.L4)(t)?t.children.slice(-1)[0]:void 0;if(!n){o=void 0;break e}let i={path:[{_key:t._key},"children",{_key:n._key}],offset:(0,eD.bn)(n)?n.text.length:0};f[18]!==i?(e={focus:i,anchor:i},f[18]=i,f[19]=e):e=f[19],o=e}f[15]=N,f[16]=H,f[17]=o}else o=f[17];let J=o;f[20]!==B?(l=()=>{R.current?.setSearchTerm(B)},s=[B],f[20]=B,f[21]=l,f[22]=s):(l=f[21],s=f[22]),(0,_.useEffect)(l,s),f[23]!==V||f[24]!==F||f[25]!==N?(d=()=>{F&&N&&!(0,D.A)(N.anchor,N.focus)&&V()},c=[F,V,N],f[23]=V,f[24]=F,f[25]=N,f[26]=d,f[27]=c):(d=f[26],c=f[27]),(0,_.useEffect)(d,c);let K=L.data||q$;f[28]!==z||f[29]!==M||f[30]!==L.loading||f[31]!==K?(u=(0,v.jsx)(q_,{inputElement:z,loading:L.loading,onSelect:M,options:K,ref:R}),f[28]=z,f[29]=M,f[30]=L.loading,f[31]=K,f[32]=u):u=f[32];let G=u,X=!F;f[33]!==Z||f[34]!==F||f[35]!==G||f[36]!==X?(p=(0,v.jsx)(qD,{arrow:!1,constrainSize:!0,content:G,disabled:X,fallbackPlacements:qT,open:F,placement:"bottom",ref:E,referenceElement:Z}),f[33]=Z,f[34]=F,f[35]=G,f[36]=X,f[37]=p):p=f[37];let Q=y?0:void 0;return f[38]!==W||f[39]!==J||f[40]!==Y||f[41]!==x||f[42]!==C||f[43]!==S||f[44]!==q||f[45]!==Q?(m=(0,v.jsx)(n1.LF,{"data-testid":"comment-input-editable","data-ui":"EditableElement",onBeforeInput:Y,onBlur:x,onFocus:C,onKeyDown:W,ref:P,renderBlock:S,renderChild:qg,renderPlaceholder:q,selection:J,style:qE,tabIndex:Q}),f[38]=W,f[39]=J,f[40]=Y,f[41]=x,f[42]=C,f[43]=S,f[44]=q,f[45]=Q,f[46]=m):m=f[46],f[47]!==p||f[48]!==m?(h=(0,v.jsxs)("div",{ref:A,children:[p,m]}),f[47]=p,f[48]=m,f[49]=h):h=f[49],h}qz.displayName="Editable";let qP=(0,eI.I4)(I.az).withConfig({displayName:"EditableWrap",componentId:"sc-w7gjfe-0"})`max-height:20vh;overflow-y:auto;`,qR=(0,eI.I4)(I.Nj).withConfig({displayName:"ButtonDivider",componentId:"sc-w7gjfe-1"})({height:20,width:1});function qN(e){return`inset 0 0 0 ${e.width}px ${e.color}`}let qO=(0,eI.I4)(I.Zp).withConfig({displayName:"RootCard",componentId:"sc-w7gjfe-2"})(({theme:e})=>{let{color:t,input:n,radius:i}=(0,nN.JW)(e),r=i[2];return(0,eI.AH)` 1339 border-radius: ${r}px; 1340 box-shadow: var(--input-box-shadow); 1341 1342 --input-box-shadow: ${qN({color:t.input.default.enabled.border,width:n.border.width})}; 1343 1344 &:not([data-expand-on-focus='false'], :focus-within) { 1345 background: transparent; 1346 box-shadow: unset; 1347 } 1348 1349 &[data-focused='true']:focus-within { 1350 ${qP} { 1351 min-height: 1em; 1352 } 1353 1354 /* box-shadow: inset 0 0 0 1px var(--card-focus-ring-color); */ 1355 --input-box-shadow: ${qN({color:"var(--card-focus-ring-color)",width:n.border.width})}; 1356 } 1357 1358 &:focus-within { 1359 ${qP} { 1360 min-height: 1em; 1361 } 1362 } 1363 1364 &[data-expand-on-focus='false'] { 1365 ${qP} { 1366 min-height: 1em; 1367 } 1368 } 1369 1370 &[data-expand-on-focus='true'] { 1371 [data-ui='CommentInputActions']:not([hidden]) { 1372 display: none; 1373 } 1374 1375 &:focus-within { 1376 [data-ui='CommentInputActions'] { 1377 display: flex; 1378 } 1379 } 1380 } 1381 &:hover { 1382 --input-box-shadow: ${qN({color:t.input.default.hovered.border,width:n.border.width})}; 1383 } 1384 `}),qV=eI.I4.div.withConfig({displayName:"AvatarContainer",componentId:"sc-w7gjfe-3"})(e=>` 1385 min-height: ${(0,nN.JW)(e.theme).avatar.sizes[1]?.size}px; 1386 display: flex; 1387 align-items: center; 1388 `);function qM(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(41),{avatarSize:u,currentUser:p,focusLock:m,onBlur:h,onFocus:f,onKeyDown:g,onSubmit:y,placeholder:C,renderBlock:x,withAvatar:b}=e,w=void 0===u?1:u,[_]=o2(p.id),{canSubmit:k,expandOnFocus:S,focused:T,hasChanges:E,insertAtChar:$,openMentions:A,readOnly:D,mentionOptions:z}
1388=qS(),{t:P}=as(ZG);c[0]!==w||c[1]!==_||c[2]!==b?(t=b?(0,v.jsx)(qV,{children:(0,v.jsx)(qa,{user:_,size:w})}):null,c[0]=w,c[1]=_,c[2]=b,c[3]=t):t=c[3];let R=t;c[4]!==$||c[5]!==A?(n=e=>{e.stopPropagation(),$(),A()},c[4]=$,c[5]=A,c[6]=n):n=c[6];let N=n,O=S&&!k?"true":"false",V=T?"true":"false",M=D?"transparent":"default";return c[7]!==m||c[8]!==h||c[9]!==f||c[10]!==g||c[11]!==y||c[12]!==C||c[13]!==x?(i=(0,v.jsx)(qP,{"data-ui":"CommentInputEditableWrap",paddingX:1,paddingY:2,sizing:"border",children:(0,v.jsx)(qz,{focusLock:m,onBlur:h,onFocus:f,onKeyDown:g,onSubmit:y,placeholder:C,renderBlock:x})}),c[7]=m,c[8]=h,c[9]=f,c[10]=g,c[11]=y,c[12]=C,c[13]=x,c[14]=i):i=c[14],c[15]!==N||c[16]!==z.disabled||c[17]!==D||c[18]!==P?(r=!z.disabled&&(0,v.jsx)(tL.$n,{"aria-label":P("compose.mention-user-aria-label"),"data-testid":"comment-input-mention-button",disabled:D,icon:Z9,mode:"bleed",type:"button",onClick:N,tooltipProps:{content:P("compose.mention-user-tooltip")}}),c[15]=N,c[16]=z.disabled,c[17]=D,c[18]=P,c[19]=r):r=c[19],c[20]!==k||c[21]!==E||c[22]!==z.disabled||c[23]!==y||c[24]!==D||c[25]!==P?(a=y&&(0,v.jsxs)(v.Fragment,{children:[!z.disabled&&(0,v.jsx)(qR,{}),(0,v.jsx)(tL.$n,{"aria-label":P("compose.send-comment-aria-label"),"data-testid":"comment-input-send-button",disabled:!k||!E||D,icon:qt,mode:E&&k?"default":"bleed",onClick:y,tone:E&&k?"primary":"default",tooltipProps:{content:P("compose.send-comment-tooltip")}})]}),c[20]=k,c[21]=E,c[22]=z.disabled,c[23]=y,c[24]=D,c[25]=P,c[26]=a):a=c[26],c[27]!==r||c[28]!==a?(o=(0,v.jsx)(I.so,{align:"center","data-ui":"CommentInputActions",gap:1,justify:"flex-end",padding:1,children:(0,v.jsxs)(tL.vE,{children:[r,a]})}),c[27]=r,c[28]=a,c[29]=o):o=c[29],c[30]!==i||c[31]!==o?(l=(0,v.jsxs)(I.BJ,{children:[i,o]}),c[30]=i,c[31]=o,c[32]=l):l=c[32],c[33]!==l||c[34]!==O||c[35]!==V||c[36]!==M?(s=(0,v.jsx)(qO,{id:"comment-input-root","data-expand-on-focus":O,"data-focused":V,flex:1,sizing:"border",tone:M,children:l}),c[33]=l,c[34]=O,c[35]=V,c[36]=M,c[37]=s):s=c[37],c[38]!==R||c[39]!==s?(d=(0,v.jsxs)(I.so,{align:"flex-start",gap:2,children:[R,s]}),c[38]=R,c[39]=s,c[40]=d):d=c[40],d}function qL(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(42),{children:p,expandOnFocus:m,focused:h,focusOnMount:f,mentionOptions:g,onMentionMenuOpenChange:y,value:C,readOnly:x}=e,b=void 0!==m&&m,w=void 0!==f&&f,k=(0,n1.v$)(),[I,T]=(0,_.useState)(!1),[E,$]=(0,_.useState)(""),[A,D]=(0,_.useState)(null);u[0]!==C?(t=Z1(C),u[0]=C,u[1]=t):t=u[1];let z=t,P=ZQ(C);u[2]!==k||u[3]!==x?(n=()=>{x||n1.Og.focus(k)},u[2]=k,u[3]=x,u[4]=n):n=u[4];let R=n;u[5]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{T(!1),$(""),D(null)},u[5]=i):i=u[5];let N=i;u[6]!==k||u[7]!==g?.disabled?(r=()=>{g?.disabled||(T(!0),$(""),T(!0),D(n1.Og.getSelection(k)))},u[6]=k,u[7]=g?.disabled,u[8]=r):r=u[8];let O=r;u[9]!==k||u[10]!==g?.disabled||u[11]!==E||u[12]!==O?(a=e=>{if(g?.disabled)return;let t=n1.Og.getSelection(k),n=t?t.focus.offset:0,i=n1.Og.focusChild(k),r=(0,eD.bn)(i)&&i||void 0,a="insertText"===e.inputType,o="deleteContentBackward"===e.inputType,l=a&&"@"===e.data,s=r?.text.slice(0,Math.max(0,n)).lastIndexOf("@")||0,d=r?.text.slice(n-1,n)===" ",c=a&&" "===e.data&&!E;if(l&&(n<1||d))return void O();if(c||o&&(r?.text.length===1||s===(r?.text.length||0)-1))return void N();if((0,eD.bn)(i)){let t=i.text.slice(s+1,n);a&&(t+=e.data),o&&(t=t.slice(0,Math.max(0,t.length-1))),$(t)}},u[9]=k,u[10]=g?.disabled,u[11]=E,u[12]=O,u[13]=a):a=u[13];let V=a;u[14]!==k?(o=()=>{T(!0),n1.Og.focus(k),n1.Og.insertChild(k,k.schemaTypes.span,{text:"@"}),D(n1.Og.getSelection(k))},u[14]=k,u[15]=o):o=u[15];let M=o;u[16]!==I||u[17]!==y?(l=()=>y?.(I),u[16]=I,u[17]=y,u[18]=l):l=u[18],fS(I,l),u[19]!==k||u[20]!==A?(s=e=>{let t=k.schemaTypes.inlineObjects.find(qF),[n,i]=A&&n1.Og.findByPath(k,A.focus.path)||[];if(n&&(0,eD.bn)(n)&&i&&t){n1.Og.focus(k);let r=n1.Og.getSelection(k)?.focus.offset;"u">typeof r&&(n1.Og.delete(k,{anchor:{path:i,offset:n.text.lastIndexOf("@")},focus:{path:i,offset:r}},{mode:"selected"}),n1.Og.insertChild(k,t,{userId:e}),n1.Og.insertChild(k,k.schemaTypes.span,{text:" "}))}},u[19]=k,u[20]=A,u[21]=s):s=u[21];let L=s,F=!!x;u[22]!==z||u[23]!==k||u[24]!==b||u[25]!==R||u[26]!==w||u[27]!==h||u[28]!==P||u[29]!==M||u[30]!==L||u[31]!==g||u[32]!==I||u[33]!==E||u[34]!==V||u[35]!==O||u[36]!==F||u[37]!==C?(d={canSubmit:z,closeMentions:N,editor:k,expandOnFocus:b,focused:h,focusEditor:R,focusOnMount:w,hasChanges:P,insertAtChar:M,insertMention:L,mentionOptions:g,mentionsMenuOpen:I,mentionsSearchTerm:E,onBeforeInput:V,openMentions:O,readOnly:F,value:C},u[22]=z,u[23]=k,u[24]=b,u[25]=R,u[26]=w,u[27]=h,u[28]=P,u[29]=M,u[30]=L,u[31]=g,u[32]=I,u[33]=E,u[34]=V,u[35]=O,u[36]=F,u[37]=C,u[38]=d):d=u[38];let B=d;return u[39]!==p||u[40]!==B?(c=(0,v.jsx)(S.ZU.Provider,{value:B,children:p}),u[39]=p,u[40]=B,u[41]=c):c=u[41],c}function qF(e){return"mention"===e.name}let qB=(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(2),a=(0,n1.v$)(),o=(0,_.useRef)(a);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>o.current,i=[],r[0]=n,r[1]=i):(n=r[0],i=r[1]),(0,_.useImperativeHandle)(t,n,i),null});qB.displayName="EditorRefPlugin";let qY=[],qH={behavior:"smooth",block:"center",inline:"center"},qU=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$,A,D,z=(0,j.c)(71),{avatarSize:P,currentUser:R,expandOnFocus:N,focusLock:O,focusOnMount:V,mentionOptions:M,onBlur:L,onChange:F,onDiscardCancel:B,onDiscardConfirm:Y,onFocus:H,onKeyDown:U,onMentionMenuOpenChange:Z,onSubmit:q,placeholder:W,readOnly:J,renderBlock:K,value:G,withAvatar:X}=e,Q=void 0!==O&&O,ee=void 0===K?qf:K,et=void 0===G?qY:G,en=void 0===X||X,[ei,er]=(0,_.useState)(!1),ea=(0,_.useRef)(null),eo=(0,_.useRef)(null),[el,es]=(0,_.useState)(!1),ed=(0,_.useRef)(null),ec=(0,_.useRef)(null),eu=(0,_.useRef)(null);z[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,n0.OL)(),z[0]=n):n=z[0];let[ep,em]=(0,_.useState)(n);z[1]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{requestAnimationFrame(()=>{ea.current&&n1.Og.focus(ea.current)})},z[1]=i):i=z[1];let eh=i;z[2]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{em((0,n0.OL)())},z[2]=r):r=z[2];let ef=r;z[3]!==V||z[4]!==F?(a=e=>{"ready"===e.type&&V&&eh(),"focused"===e.type&&er(!0),"blurred"===e.type&&er(!1),"mutation"===e.type&&F(e.value||qY)},z[3]=V,z[4]=F,z[5]=a):a=z[5];let eg=a;z[6]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{eo.current?.scrollIntoView(qH)},z[6]=o):o=z[6];let ey=o;z[7]!==q?(l=()=>{q?.(),ef(),eh(),ey()},z[7]=q,z[8]=l):l=z[8];
1388let eC=l;z[9]!==Y?(s=()=>{Y(),ef()},z[9]=Y,z[10]=s):s=z[10];let ex=s;z[11]===Symbol.for("react.memo_cache_sentinel")?(d={open:()=>{es(!0)},close:()=>{es(!1),eh()}},z[11]=d):d=z[11];let eb=d;z[12]===Symbol.for("react.memo_cache_sentinel")?(c=()=>({focus:eh,blur(){ea.current&&n1.Og.blur(ea.current)},scrollTo:ey,reset:ef,discardDialogController:eb}),u=[eb,eh,ef,ey],z[12]=c,z[13]=u):(c=z[12],u=z[13]),(0,_.useImperativeHandle)(t,c,u),z[14]!==Q?(p=e=>{if(!Q)return;let t=e.target,n=eu.current;n&&t===ed.current?(0,T.Ki)(n):n&&t===ec.current&&(0,T.s5)(n)},z[14]=Q,z[15]=p):p=z[15];let ev=p;z[16]!==ex||z[17]!==B||z[18]!==el?(m=el&&B&&(0,v.jsx)(qy,{onClose:B,onConfirm:ex}),z[16]=ex,z[17]=B,z[18]=el,z[19]=m):m=z[19],z[20]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n8.Wz)(qc),z[20]=h):h=z[20];let ej=et||qY;z[21]!==J||z[22]!==ej?(f={schemaDefinition:h,initialValue:ej,readOnly:J},z[21]=J,z[22]=ej,z[23]=f):f=z[23],z[24]===Symbol.for("react.memo_cache_sentinel")?(g=(0,v.jsx)(qB,{ref:ea}),z[24]=g):g=z[24],z[25]!==eg?(y=(0,v.jsx)(n7.Un,{on:eg}),z[25]=eg,z[26]=y):y=z[26],z[27]===Symbol.for("react.memo_cache_sentinel")?(C=(0,v.jsx)(n3.U,{}),z[27]=C):C=z[27];let ew=J??!1;z[28]!==ew?(x=(0,v.jsx)(qZ,{readOnly:ew}),z[28]=ew,z[29]=x):x=z[29];let e_=et??void 0;z[30]!==e_?(b=(0,v.jsx)(qq,{value:e_}),z[30]=e_,z[31]=b):b=z[31],z[32]!==Q?(w=Q&&(0,v.jsx)("div",{ref:ed,tabIndex:0}),z[32]=Q,z[33]=w):w=z[33];let ek=q&&eC;return z[34]!==P||z[35]!==R||z[36]!==Q||z[37]!==L||z[38]!==H||z[39]!==U||z[40]!==W||z[41]!==ee||z[42]!==ek||z[43]!==en?(k=(0,v.jsx)(I.BJ,{ref:eu,children:(0,v.jsx)(qM,{avatarSize:P,currentUser:R,focusLock:Q,onBlur:L,onFocus:H,onKeyDown:U,onSubmit:ek,placeholder:W,renderBlock:ee,withAvatar:en})}),z[34]=P,z[35]=R,z[36]=Q,z[37]=L,z[38]=H,z[39]=U,z[40]=W,z[41]=ee,z[42]=ek,z[43]=en,z[44]=k):k=z[44],z[45]!==Q?(S=Q&&(0,v.jsx)("div",{ref:ec,tabIndex:0}),z[45]=Q,z[46]=S):S=z[46],z[47]!==N||z[48]!==V||z[49]!==ei||z[50]!==M||z[51]!==Z||z[52]!==J||z[53]!==w||z[54]!==k||z[55]!==S||z[56]!==et?(E=(0,v.jsxs)(qL,{expandOnFocus:N,focused:ei,focusOnMount:V,mentionOptions:M,onMentionMenuOpenChange:Z,readOnly:J,value:et,children:[w,k,S]}),z[47]=N,z[48]=V,z[49]=ei,z[50]=M,z[51]=Z,z[52]=J,z[53]=w,z[54]=k,z[55]=S,z[56]=et,z[57]=E):E=z[57],z[58]!==ep||z[59]!==f||z[60]!==y||z[61]!==x||z[62]!==b||z[63]!==E?($=(0,v.jsxs)(n1.zz,{initialConfig:f,children:[g,y,C,x,b,E]},ep),z[58]=ep,z[59]=f,z[60]=y,z[61]=x,z[62]=b,z[63]=E,z[64]=$):$=z[64],z[65]!==ev||z[66]!==$?(A=(0,v.jsx)(I.BJ,{ref:eo,"data-testid":"comment-input",onFocus:ev,children:$}),z[65]=ev,z[66]=$,z[67]=A):A=z[67],z[68]!==m||z[69]!==A?(D=(0,v.jsxs)(v.Fragment,{children:[m,A]}),z[68]=m,z[69]=A,z[70]=D):D=z[70],D});function qZ(e){let t,n,i=(0,j.c)(4),r=(0,n2.h)();return i[0]!==r||i[1]!==e.readOnly?(t=()=>{r.send({type:"update readOnly",readOnly:e.readOnly})},n=[r,e.readOnly],i[0]=r,i[1]=e.readOnly,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,_.useEffect)(t,n),null}function qq(e){let t,n,i=(0,j.c)(4),r=(0,n2.h)();return i[0]!==r||i[1]!==e.value?(t=()=>{r.send({type:"update value",value:e.value})},n=[r,e.value],i[0]=r,i[1]=e.value,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,_.useEffect)(t,n),null}let qW="sanity/comments",qJ="yellow",qK=[{shortName:":+1:",title:"Thumbs up"},{shortName:":-1:",title:"Thumbs down"},{shortName:":heart:",title:"Heart"},{shortName:":rocket:",title:"Rocket"},{shortName:":heavy_plus_sign:",title:"Heavy plus sign"},{shortName:":eyes:",title:"Eyes"}],qG={":-1:":"\uD83D\uDC4E",":+1:":"\uD83D\uDC4D",":eyes:":"\uD83D\uDC40",":heart:":"â¤ï¸",":heavy_plus_sign:":"â",":rocket:":"\uD83D\uDE80"},qX=eI.I4.span.withConfig({displayName:"HighlightSpan",componentId:"sc-cgy0jg-0"})(({theme:e})=>{let t=e.sanity.v2?.color._dark,n=ez.OZ[qJ][t?800:100].hex,i=ez.OZ[qJ][t?700:300].hex,r=ez.OZ[qJ][t?700:200].hex,a=ez.OZ[qJ][t?600:400].hex,o=ez.OZ[qJ][t?700:200].hex,l=ez.OZ[qJ][t?600:400].hex;return(0,eI.AH)` 1389 box-sizing: border-box; 1390 transition: 1391 background-color 100ms ease, 1392 border-color 100ms ease; 1393 1394 // Make sure that child elements appropriately blend with the 1395 // background of the highlight span 1396 * { 1397 mix-blend-mode: ${t?"screen":"multiply"}; 1398 } 1399 1400 &[data-inline-comment-state='added'][data-inline-comment-nested='false'] { 1401 background-color: ${n}; 1402 border-bottom: 2px solid ${i}; 1403 } 1404 1405 &[data-inline-comment-state='added'][data-inline-comment-nested='true'] { 1406 background-color: ${o}; 1407 border-bottom: 2px solid ${l}; 1408 } 1409 1410 &[data-inline-comment-state='added'][data-inline-comment-nested='false'][data-hovered='true'] { 1411 background-color: ${r}; 1412 border-bottom: 2px solid ${a}; 1413 } 1414 1415 &[data-inline-comment-state='authoring'] { 1416 background-color: ${n}; 1417 border-bottom: 2px solid ${i}; 1418 } 1419 `}),qQ=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d=(0,j.c)(14);d[0]!==e?({children:n,isAdded:i,isAuthoring:r,isHovered:a,isNested:o,...l}=e,d[0]=e,d[1]=n,d[2]=i,d[3]=r,d[4]=a,d[5]=o,d[6]=l):(n=d[1],i=d[2],r=d[3],a=d[4],o=d[5],l=d[6]);let c=i?"added":r?"authoring":void 0,u=a?"true":"false",p=o?"true":"false";return d[7]!==n||d[8]!==t||d[9]!==l||d[10]!==c||d[11]!==u||d[12]!==p?(s=(0,v.jsx)(qX,{...l,"data-hovered":u,"data-inline-comment-nested":p,"data-inline-comment-state":c,ref:t,children:n}),d[7]=n,d[8]=t,d[9]=l,d[10]=c,d[11]=u,d[12]=p,d[13]=s):s=d[13],s}),q1=(0,eI.I4)(I.BJ).withConfig({displayName:"PortableTextWrap",componentId:"sc-5m7slo-0"})(()=>(0,eI.AH)` 1420 & > [data-ui='Text']:not(:first-child) { 1421 margin-top: 1em; // todo: improve 1422 } 1423 1424 & > [data-ui='Text']:has(> span:empty) { 1425 display: none; 1426 } 1427 `),q2=[];function q5(e){var t;let n,i,r=(0,j.c)(4);r[0]!==e.children?(n=Array.isArray(t=e.children)?t.flatMap(e=>{let t=[e];for(let e of Jr)t=t.flatMap(e);return t}):t,r[0]=e.children,r[1]=n):n=r[1];let a=n;return r[2]!==a?(i=(0,v.jsx)(qh,{children:a}),r[2]=a,r[3]=i):i=r[3],i}let q0={block:{normal:q5,h1:q5,h2:q5,h3:q5,h4:q5,h5:q5,h6:q5,blockquote:q5,code:q5},list:{bullet:_.Fragment,number:_.Fragment,checkmarks:_.Fragment},listItem:{bullet:q5,number:q5,checkmarks:q5}
1427,marks:{strong:_.Fragment,em:_.Fragment,code:_.Fragment,underline:_.Fragment,strikeThrough:_.Fragment,link:_.Fragment},types:{mention:e=>(0,v.jsx)(qp,{userId:e?.value?.userId,selected:!1})}};function q7(e){let t,n=(0,j.c)(2),{blocks:i}=e,r=i||q2;return n[0]!==r?(t=(0,v.jsx)(q1,{children:(0,v.jsx)(nX.RK,{value:r,components:q0})}),n[0]=r,n[1]=t):t=n[1],t}let q3=(0,eI.I4)(I.EY).withConfig({displayName:"EmojiText",componentId:"sc-13labuh-0"})`font-family:'Twemoji Mozilla','Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji','EmojiOne Color','Android Emoji',sans-serif;`;function q8(e){let t,n,i,r,a,o,l=(0,j.c)(20),{options:s,onSelect:d}=e,{t:c}=as(ZG),[u,p]=(0,_.useState)(null),[m,h]=(0,_.useState)(0);l[0]!==u?(t=e=>{let t=u?.querySelectorAll("button").length??0;"ArrowRight"===e.key&&h(e=>(e+1)%t),"ArrowLeft"===e.key&&h(e=>(e-1+t)%t)},l[0]=u,l[1]=t):t=l[1];let f=t;l[2]!==d||l[3]!==s||l[4]!==u?(n=e=>{let t=u?Array.from(u.querySelectorAll("button")).indexOf(e.currentTarget):-1;h(t),d(s[t])},l[2]=d,l[3]=s,l[4]=u,l[5]=n):n=l[5];let g=n;if(l[6]!==m||l[7]!==u?(i=()=>{if(!u)return;let e=Array.from(u.querySelectorAll("button"));e.length>0&&e[m].focus()},r=[m,u],l[6]=m,l[7]=u,l[8]=i,l[9]=r):(i=l[8],r=l[9]),(0,_.useEffect)(i,r),l[10]!==g||l[11]!==s||l[12]!==c){let e;l[14]!==g||l[15]!==c?(e=e=>{let t=qG[e.shortName];return(0,v.jsx)(I.$n,{"aria-label":c("reactions.react-with-aria-label",{reactionName:e.title||e.shortName}),mode:"bleed",onClick:g,padding:2,role:"menuitem",tabIndex:-1,children:(0,v.jsx)(q3,{align:"center",size:2,children:t})},e.shortName)},l[14]=g,l[15]=c,l[16]=e):e=l[16],a=s.map(e),l[10]=g,l[11]=s,l[12]=c,l[13]=a}else a=l[13];return l[17]!==f||l[18]!==a?(o=(0,v.jsx)(I.xA,{columns:6,gap:1,onKeyDown:f,ref:p,role:"menu",children:a}),l[17]=f,l[18]=a,l[19]=o):o=l[19],o}let q4=["top","bottom"];function q6(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(35),{onMenuClose:p,onMenuOpen:m,onSelect:h,options:f,readOnly:g,renderMenuButton:y,mode:C}=e,[x,b]=(0,_.useState)(null),w=(0,_.useRef)(null),[k,S]=(0,_.useState)(!1),{t:T}=as(ZG);u[0]!==p||u[1]!==m||u[2]!==k?(t=()=>{let e=!k;S(e),e?m?.():p?.()},u[0]=p,u[1]=m,u[2]=k,u[3]=t):t=u[3];let E=t;u[4]!==p||u[5]!==k?(n=()=>{k&&(S(!1),p?.())},u[4]=p,u[5]=k,u[6]=n):n=u[6];let $=n;u[7]!==x||u[8]!==$||u[9]!==k?(i=()=>{k&&($(),x?.focus())},u[7]=x,u[8]=$,u[9]=k,u[10]=i):i=u[10];let A=i;u[11]!==A?(r=e=>{let{key:t,shiftKey:n}=e;(n&&"Tab"===t||"Escape"===t||"Tab"===t)&&A()},u[11]=A,u[12]=r):r=u[12];let D=r;u[13]!==x?(a=()=>[w.current,x],u[13]=x,u[14]=a):a=u[14],(0,I.PR)($,a),u[15]!==$||u[16]!==h?(o=e=>{h(e),$()},u[15]=$,u[16]=h,u[17]=o):o=u[17];let z=o;if(u[18]!==E||u[19]!==C||u[20]!==k||u[21]!==g||u[22]!==y||u[23]!==T){let e=y({open:k,tooltipContent:T("upsell"===C?"list-item.context-menu-add-reaction-upsell":"list-item.context-menu-add-reaction"),t:T});l=(0,_.cloneElement)(e,{"aria-expanded":k,"aria-haspopup":"true",disabled:g||"upsell"===C,id:"reactions-menu-button",onClick:E,ref:b}),u[18]=E,u[19]=C,u[20]=k,u[21]=g,u[22]=y,u[23]=T,u[24]=l}else l=u[24];let P=l;u[25]!==z||u[26]!==f?(s=(0,v.jsx)(q8,{onSelect:z,options:f}),u[25]=z,u[26]=f,u[27]=s):s=u[27],u[28]!==D||u[29]!==s?(d=(0,v.jsx)(I.Zp,{"aria-labelledby":"reactions-menu-button",onKeyDown:D,padding:1,radius:3,tone:"default",children:s}),u[28]=D,u[29]=s,u[30]=d):d=u[30];let R=d;return u[31]!==P||u[32]!==k||u[33]!==R?(c=(0,v.jsx)(tL.AM,{constrainSize:!0,content:R,fallbackPlacements:q4,open:k,placement:"bottom",portal:!0,ref:w,tone:"default",children:P}),u[31]=P,u[32]=k,u[33]=R,u[34]=c):c=u[34],c}let q9=(0,eI.I4)(I.BJ).withConfig({displayName:"ContentStack",componentId:"sc-e2nrgi-0"})`max-width:180px;`,We=eI.I4.div.withConfig({displayName:"TextGroup",componentId:"sc-e2nrgi-1"})`display:inline-block;`,Wt=(0,eI.I4)(I.EY).attrs({size:1}).withConfig({displayName:"InlineText",componentId:"sc-e2nrgi-2"})`display:inline-block !important;& > span{white-space:break-spaces;}`,Wn=(0,eI.I4)(I.az).withConfig({displayName:"TextBox",componentId:"sc-e2nrgi-3"})`line-height:1;text-align:center;`,Wi=/^\S+/;function Wr(e){let t,n=(0,j.c)(7),{currentUserId:i,isFirst:r,userId:a}=e,[o]=o2(a),{t:l}=as(ZG);if(i===a){let e,t=r?"leading":void 0,i=o?.displayName;return n[0]!==t||n[1]!==l||n[2]!==i?(e=l("reactions.user-list.you",{context:t,replace:{name:i}}),n[0]=t,n[1]=l,n[2]=i,n[3]=e):e=n[3],e}
1427return n[4]!==l||n[5]!==o?.displayName?(t=o?.displayName||l("reactions.user-list.unknown-user-fallback-name"),n[4]=l,n[5]=o?.displayName,n[6]=t):t=n[6],t}function Wa(e){let t,n,i,r,a,o=(0,j.c)(10);return o[0]!==e?({children:t,...n}=e,o[0]=e,o[1]=t,o[2]=n):(t=o[1],n=o[2]),o[3]!==n?(i=(0,v.jsx)(Wl,{...n}),o[3]=n,o[4]=i):i=o[4],o[5]!==t?(r=(0,v.jsx)("div",{children:t}),o[5]=t,o[6]=r):r=o[6],o[7]!==i||o[8]!==r?(a=(0,v.jsx)(tL.m_,{content:i,placement:"bottom",portal:!0,children:r}),o[7]=i,o[8]=r,o[9]=a):a=o[9],a}function Wo(e){let t,n,i=(0,j.c)(5),{currentUserId:r,userIds:a}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={style:"long",type:"conjunction"},i[0]=t):t=i[0];let o=ax(t);if(0===a.length)return null;if(i[1]!==r||i[2]!==o||i[3]!==a){let e=o.formatToParts(a);n=[];for(let t=0;t<e.length;t++){let i=e[t];if("literal"===i.type){n.push((0,v.jsx)(Wt,{children:i.value},`literal-${t}`));continue}let a=e[t+1];if(a&&"literal"===a.type&&Wi.test(a.value)){let[e]=a.value.match(Wi)||[],o=void 0===e?"":e;n.push((0,v.jsxs)(We,{children:[(0,v.jsx)(Wt,{weight:"medium",children:(0,v.jsx)(Wr,{currentUserId:r,isFirst:0===t,userId:i.value})}),(0,v.jsx)(Wt,{children:o})]},i.value)),a.value=a.value.slice(o.length);continue}n.push((0,v.jsx)(Wt,{weight:"medium",children:(0,v.jsx)(Wr,{currentUserId:r,isFirst:0===t,userId:i.value})},i.value))}i[1]=r,i[2]=o,i[3]=a,i[4]=n}else n=i[4];return n}function Wl(e){let t,n,i,r,a,o,l,s=(0,j.c)(19),{currentUser:d,reactionName:c,userIds:u}=e,{t:p}=as(ZG);s[0]!==d||s[1]!==u?(t=()=>d?(0,v.jsx)(Wo,{currentUserId:d.id,userIds:u}):null,s[0]=d,s[1]=u,s[2]=t):t=s[2];let m=t,h=qG[c];return s[3]!==h?(n=(0,v.jsx)(I.so,{justify:"center",paddingBottom:2,paddingTop:1,children:(0,v.jsx)(q3,{size:4,children:h})}),s[3]=h,s[4]=n):n=s[4],s[5]!==c?(i={reactionName:c},s[5]=c,s[6]=i):i=s[6],s[7]!==c?(r=()=>(0,v.jsx)(Wt,{muted:!0,children:c}),s[7]=c,s[8]=r):r=s[8],s[9]!==m||s[10]!==r?(a={UserList:m,ReactionName:r,Text:Ws},s[9]=m,s[10]=r,s[11]=a):a=s[11],s[12]!==p||s[13]!==i||s[14]!==a?(o=(0,v.jsx)(Wn,{children:(0,v.jsx)(aE,{t:p,i18nKey:"reactions.users-reacted-with-reaction",values:i,components:a})}),s[12]=p,s[13]=i,s[14]=a,s[15]=o):o=s[15],s[16]!==n||s[17]!==o?(l=(0,v.jsxs)(q9,{padding:1,children:[n,o]}),s[16]=n,s[17]=o,s[18]=l):l=s[18],l}function Ws(e){let{children:t}=e;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Wt,{muted:!0,children:t})," ",(0,v.jsx)("wbr",{})," "]})}let Wd=(0,eI.I4)(I.Zp).withConfig({displayName:"TransparentCard",componentId:"sc-h5x3la-0"})`background:none;`,Wc=({open:e,tooltipContent:t})=>(0,v.jsx)(I.$n,{fontSize:1,mode:"ghost",padding:0,radius:"full",selected:e,children:(0,v.jsx)(I.so,{paddingX:3,paddingY:2,children:(0,v.jsx)(tL.m_,{animate:!0,content:t,disabled:e,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(qe,{})})})})}),Wu=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(41),{currentUser:c,onSelect:u,reactions:p,readOnly:m,mode:h}=e;d[0]!==u?(t=e=>{let t=qK.find(t=>t.shortName===e);t&&u(t)},d[0]=u,d[1]=t):t=d[1];let f=t;if(d[2]!==c?.id||d[3]!==p){let e;d[5]!==c?.id?(e=e=>e.userId===c?.id,d[5]=c?.id,d[6]=e):e=d[6],n=p.filter(e).map(Wp),d[2]=c?.id,d[3]=p,d[4]=n}else n=d[4];let g=n;d[7]!==p?(i=Object.entries(p.reduce((e,t)=>{let{shortName:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e},{})).sort(([e],[t])=>p.findIndex(t=>t.shortName===e)-p.findIndex(e=>e.shortName===t)).filter(Wm),d[7]=p,d[8]=i):i=d[8];let y=i;d[9]!==y?(r=()=>({sortOrder:Object.keys(Object.fromEntries(y)),groupedReactions:[],sortedReactions:[]}),d[9]=y,d[10]=r):r=d[10];let[C,x]=(0,_.useState)(r),{sortedReactions:b}=C;if(C.groupedReactions!==y){let e,t,n,{sortOrder:i}=C;if(d[11]!==y||d[12]!==i){let r;d[17]!==i?(r=(e,t)=>{let[n]=e,[r]=t,a=i.indexOf(n),o=i.indexOf(r);return -1===a?1:-1===o?-1:a-o},d[17]=i,d[18]=r):r=d[18],b=y.sort(r),n=x,e=y,t=b.map(Wh),d[11]=y,d[12]=i,d[13]=e,d[14]=t,d[15]=n,d[16]=b}else e=d[13],t=d[14],n=d[15],b=d[16];n({groupedReactions:e,sortOrder:t,sortedReactions:b})}if(d[19]!==c||d[20]!==g||d[21]!==f||d[22]!==h||d[23]!==m||d[24]!==b){let e;d[26]!==c||d[27]!==g||d[28]!==f||d[29]!==h||d[30]!==m?(e=e=>{let[t,n]=e,i=g.includes(t),r=n.map(Wf),a=qG[t];return(0,v.jsx)(Wa,{currentUser:c,reactionName:t,userIds:r,children:(0,v.jsx)(Wd,{tone:"default",children:(0,v.jsx)(I.$n,{disabled:m||"upsell"===h,mode:"ghost",onClick:()=>f(t),padding:2,radius:"full",selected:i,tone:i?"primary":"default",children:(0,v.jsxs)(I.so,{align:"center",gap:1,children:[(0,v.jsx)(q3,{size:1,children:a}),(0,v.jsx)(I.EY,{size:0,weight:i?"semibold":"medium",children:n?.length})]})})})},t)},d[26]=c,d[27]=g,d[28]=f,d[29]=h,d[30]=m,d[31]=e):e=d[31],a=b.map(e),d[19]=c,d[20]=g,d[21]=f,d[22]=h,d[23]=m,d[24]=b,d[25]=a}else a=d[25];return d[32]!==f?(o=e=>f(e.shortName),d[32]=f,d[33]=o):o=d[33],d[34]!==h||d[35]!==m||d[36]!==o?(l=(0,v.jsx)(Wd,{tone:"default",children:(0,v.jsx)(q6,{mode:h,onSelect:o,options:qK,readOnly:m,renderMenuButton:Wc})}),d[34]=h,d[35]=m,d[36]=o,d[37]=l):l=d[37],d[38]!==a||d[39]!==l?
1427(s=(0,v.jsx)(I.so,{align:"center",gap:1,wrap:"wrap",children:(0,v.jsxs)(tL.vE,{children:[a,l]})}),d[38]=a,d[39]=l,d[40]=s):s=d[40],s});function Wp(e){return e.shortName}function Wm(e){let[t]=e;return qG[t]}function Wh(e){let[t]=e;return t}function Wf(e){return e.userId}Wu.displayName="Memo(CommentReactionsBar)";let Wg=({open:e,tooltipContent:t,t:n})=>(0,v.jsx)(tL.$n,{"aria-label":n("list-item.context-menu-add-reaction-aria-label"),icon:qe,mode:"bleed",selected:e,tooltipProps:{content:t}}),Wy={placement:"bottom-end"},WC=(0,eI.I4)(I.Zp).withConfig({displayName:"FloatingCard",componentId:"sc-lacwdd-0"})`&:empty{display:none;}`;function Wx(e){let t,n,i,r,a=(0,j.c)(29),{canDelete:o,canEdit:l,isParent:s,mode:d,onCopyLink:c,onDeleteStart:u,onEditStart:p,onMenuClose:m,onMenuOpen:h,onReactionSelect:f,onStatusChange:g,readOnly:y,status:C}=e,x=!!(c||u||p),{t:b}=as(ZG),w=!!(o||l||c);return a[0]!==d||a[1]!==m||a[2]!==h||a[3]!==f||a[4]!==y?(t=f&&(0,v.jsx)(q6,{mode:d,onMenuClose:m,onMenuOpen:h,onSelect:f,options:qK,readOnly:y,renderMenuButton:Wg}),a[0]=d,a[1]=m,a[2]=h,a[3]=f,a[4]=y,a[5]=t):t=a[5],a[6]!==s||a[7]!==g||a[8]!==y||a[9]!==C||a[10]!==b?(n=s&&g&&(0,v.jsx)(tL.$n,{"aria-label":b("open"===C?"list-item.resolved-tooltip-aria-label":"list-item.re-open-resolved-aria-label"),"data-testid":"comments-list-item-status-button",disabled:y,icon:"open"===C?eT.Dee:eT.ejX,mode:"bleed",onClick:g,tooltipProps:{content:b("open"===C?"list-item.resolved-tooltip-content":"list-item.re-open-resolved")}}),a[6]=s,a[7]=g,a[8]=y,a[9]=C,a[10]=b,a[11]=n):n=a[11],a[12]!==o||a[13]!==l||a[14]!==w||a[15]!==d||a[16]!==c||a[17]!==u||a[18]!==p||a[19]!==m||a[20]!==h||a[21]!==y||a[22]!==x||a[23]!==b?(i=w&&(0,v.jsx)(tL.IU,{id:"comment-actions-menu",button:(0,v.jsx)(rl,{"aria-label":b("list-item.open-menu-aria-label"),disabled:y,hidden:!x}),onOpen:h,onClose:m,menu:(0,v.jsxs)(I.W1,{children:[(0,v.jsx)(tL.Dr,{hidden:!l,icon:eT.qUP,onClick:p,text:b("list-item.edit-comment"),tooltipProps:"upsell"===d?{content:b("list-item.edit-comment-upsell")}:void 0,disabled:"upsell"===d}),(0,v.jsx)(tL.Dr,{hidden:!o,icon:eT.ucK,onClick:u,text:b("list-item.delete-comment"),tone:"critical"}),c&&(0,v.jsx)(I.Nj,{hidden:!o&&!l}),(0,v.jsx)(tL.Dr,{hidden:!c,icon:eT.qYV,onClick:c,text:b("list-item.copy-link")})]}),popover:Wy}),a[12]=o,a[13]=l,a[14]=w,a[15]=d,a[16]=c,a[17]=u,a[18]=p,a[19]=m,a[20]=h,a[21]=y,a[22]=x,a[23]=b,a[24]=i):i=a[24],a[25]!==t||a[26]!==n||a[27]!==i?(r=(0,v.jsx)(tL.vE,{children:(0,v.jsx)(I.so,{children:(0,v.jsxs)(WC,{display:"flex",shadow:2,padding:1,radius:2,sizing:"border",children:[t,n,i]})})}),a[25]=t,a[26]=n,a[27]=i,a[28]=r):r=a[28],r}let Wb=(0,eI.I4)(I.az).attrs({marginLeft:1,marginRight:2}).withConfig({displayName:"InlineBox",componentId:"sc-1ae0rk-0"})`&:not([data-hidden]){display:inline;}`,Wv=(0,eI.I4)(I.BJ).withConfig({displayName:"BlockQuoteStack",componentId:"sc-1ae0rk-1"})(({theme:e,$hasReferencedValue:t})=>{let n=e.sanity.v2?.color._dark,i=t?qJ:"gray",r=n?ez.OZ[i][700].hex:ez.OZ[i][300].hex;return(0,eI.AH)` 1428 border-left: 2px solid ${r}; 1429 word-break: break-word; 1430 `});function Wj(e){let t,n,i,r,a,o=(0,j.c)(13),{hasReferencedValue:l,value:s}=e,{t:d}=as(ZG);o[0]!==d?(t=d("list-item.missing-referenced-value-tooltip-content"),o[0]=d,o[1]=t):t=o[1];let c=t;e:{if(Array.isArray(s)&&s?.filter(eD.L4).length>0){let e;o[2]!==s?(e=function(e,t=250){return e.length<=t?e:`${e.slice(0,t)}...`}(s?.map(nQ.bo).join(" ")),o[2]=s,o[3]=e):e=o[3],n=e;break e}n=null}let u=n;if(!u)return null;let p=!!l;return o[4]!==l||o[5]!==c?(i=!l&&(0,v.jsx)(tL.m_,{content:c,children:(0,v.jsx)(Wb,{children:(0,v.jsx)(eT.eTO,{})})}),o[4]=l,o[5]=c,o[6]=i):i=o[6],o[7]!==u||o[8]!==i?(r=(0,v.jsx)(I.so,{align:"flex-start",children:(0,v.jsxs)(I.EY,{size:1,muted:!0,children:[i,u]})}),o[7]=u,o[8]=i,o[9]=r):r=o[9],o[10]!==p||o[11]!==r?(a=(0,v.jsx)(Wv,{$hasReferencedValue:p,"data-testid":"comments-list-item-referenced-value",flex:1,forwardedAs:"blockquote",padding:1,paddingLeft:2,sizing:"border",children:r}),o[10]=p,o[11]=r,o[12]=a):a=o[12],a}let Ww=e=>e.stopPropagation(),W_=(0,eI.I4)(I.az).withConfig({displayName:"ContextMenuBox",componentId:"sc-1e1bh61-0"})``,Wk={width:"50%"},WS=[],WI=(0,eI.I4)(I.EY).withConfig({displayName:"TimeText",componentId:"sc-1e1bh61-1"})(({theme:e})=>{let t=e.sanity.color.dark,n=ez.OZ.gray[t?200:800].hex;return(0,eI.AH)` 1431 min-width: max-content; 1432 --card-fg-color: ${n}; 1433 color: var(--card-fg-color); 1434 `}),WT=(0,eI.I4)(I.so).withConfig({displayName:"HeaderFlex",componentId:"sc-1e1bh61-2"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 1435 min-height: ${t.avatar.sizes[e.$size]?.size}px; 1436 `}),WE=(0,eI.I4)(I.EY).withConfig({displayName:"IntentText",componentId:"sc-1e1bh61-3"})(({theme:e})=>{let t=e.sanity.color.dark,n=ez.OZ.gray[t?200:800].hex;return(0,eI.AH)` 1437 --card-fg-color: ${n}; 1438 color: var(--card-fg-color); 1439 `}),W$=(0,eI.I4)(I.BJ).withConfig({displayName:"InnerStack",componentId:"sc-1e1bh61-4"})`transition:opacity 200ms ease;&[data-muted='true']{transition:unset;opacity:0.5;}`,WA=(0,eI.I4)(I.so).withConfig({displayName:"ErrorFlex",componentId:"sc-1e1bh61-5"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 1440 min-height: ${t.avatar.sizes[e.$size]?.size}px; 1441 `}),WD=(0,eI.I4)(I.Zp).withConfig({displayName:"RetryCardButton",componentId:"sc-1e1bh61-6"})`&:not(:hover){background-color:transparent;}`,Wz=(0,eI.I4)(I.BJ).withConfig({displayName:"RootStack",componentId:"sc-1e1bh61-7"})(({theme:e})=>{let{space:t}=e.sanity;return(0,eI.AH)` 1442 position: relative; 1443 1444 /* Only show the floating layer on hover when hover is supported. 1445 Else, the layer is always visible. */ 1446 @media (hover: hover) { 1447 ${W_} { 1448 opacity: 0; 1449 position: absolute; 1450 right: 0; 1451 top: 0; 1452 transform: translate(${t[1]}px, -${t[1]}px); 1453 } 1454 1455 ${W_} { 1456 &:focus-within { 1457 opacity: 1; 1458 } 1459 } 1460 1461 &:hover { 1462 ${W_} { 1463 opacity: 1; 1464 } 1465 } 1466 } 1467 1468 &[data-menu-open='true'] { 1469 ${W_} { 1470 opacity: 1; 1471 } 1472 } 1473 `}),WP={useTemporalPhrase:!0};function WR(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,E,$,A,D,z,P,R,N,O,V,M,L,F,B,Y,H,U,Z=(0,j.c)(152),{avatarSize:q,canDelete:W,canEdit:J,comment:K,currentUser:G,hasError:X,hasReferencedValue:Q,intent:ee,isParent:et,isRetrying:en,mentionOptions:ei,mode:er,onCopyLink:ea,onCreateRetry:eo,onDelete:el,onEdit:es,onInputKeyDown:ed,onReactionSelect:ec,onStatusChange:eu,readOnly:ep,withAvatar:em}=e,eh=void 0===q?1:q,ef=void 0===em||em,{_createdAt:eg,authorId:ey,message:eC,_id:ex,lastEditedAt:eb}=K,[ev]=o2(ey),{t:ej}=as(ZG),[ew,e_]=(0,_.useState)(eC),[ek,eS]=(0,_.useState)(!1),eI=(0,_.useRef)(null),eT=(0,_.useRef)(eC),[eE,e$]=(0,_.useState)(!1),eA=(0,_.useRef)(null),eD=ZQ(ew);
1473Z[0]!==ew?(t=Z1(ew),Z[0]=ew,Z[1]=t):t=Z[1];let ez=t;Z[2]!==K.reactions?(n=(K?.reactions?.filter(WV)||WS).filter(WO),Z[2]=K.reactions,Z[3]=n):n=Z[3];let eP=n,eR=!!eP?.length;Z[4]!==eg?(i=eg?new Date(eg):new Date,Z[4]=eg,Z[5]=i):i=Z[5];let eN=i,eO=eb?new Date(eb):null,eV=um(eN,WP);Z[6]===Symbol.for("react.memo_cache_sentinel")?(r={dateStyle:"full",timeStyle:"medium"},Z[6]=r):r=Z[6];let eM=ud(r);Z[7]!==eN||Z[8]!==eM?(a=eM.format(eN),Z[7]=eN,Z[8]=eM,Z[9]=a):a=Z[9];let eL=a,eF=eO?eM.format(eO):null,eB=X||en;Z[10]!==ek||Z[11]!==eC?(o=()=>{ek||(eT.current=eC,e_(eC))},l=[ek,eC],Z[10]=ek,Z[11]=eC,Z[12]=o,Z[13]=l):(o=Z[12],l=Z[13]),(0,_.useEffect)(o,l),Z[14]===Symbol.for("react.memo_cache_sentinel")?(s=()=>e$(!0),Z[14]=s):s=Z[14];let eY=s;Z[15]===Symbol.for("react.memo_cache_sentinel")?(d=()=>e$(!1),Z[15]=d):d=Z[15];let eH=d;Z[16]!==ex||Z[17]!==ea?(c=()=>ea?.(ex),Z[16]=ex,Z[17]=ea,Z[18]=c):c=Z[18];let eU=c;Z[19]!==ex||Z[20]!==eo?(u=e=>{e.stopPropagation(),eo?.(ex)},Z[19]=ex,Z[20]=eo,Z[21]=u):u=Z[21];let eZ=u;Z[22]!==ex||Z[23]!==el?(p=()=>el(ex),Z[22]=ex,Z[23]=el,Z[24]=p):p=Z[24];let eq=p;Z[25]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{eS(!1),e_(eT.current)},Z[25]=m):m=Z[25];let eW=m;Z[26]!==eD||Z[27]!==ez?(h=()=>{ez&&eD?eA.current?.discardDialogController.open():eW()},Z[26]=eD,Z[27]=ez,Z[28]=h):h=Z[28];let eJ=h;Z[29]!==ed||Z[30]!==eJ?(f=e=>{e.isDefaultPrevented()||("Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),eJ()),ed&&ed(e))},Z[29]=ed,Z[30]=eJ,Z[31]=f):f=Z[31];let eK=f;Z[32]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{eA.current?.discardDialogController.close()},Z[32]=g):g=Z[32];let eG=g;Z[33]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{eA.current?.discardDialogController.close(),eW()},Z[33]=y):y=Z[33];let eX=y;Z[34]!==ex||Z[35]!==ec?(C=e=>{ec?.(ex,e)},Z[34]=ex,Z[35]=ec,Z[36]=C):C=Z[36];let eQ=C;Z[37]!==ex||Z[38]!==es||Z[39]!==ew?(x=()=>{es(ex,{message:ew}),eS(!1)},Z[37]=ex,Z[38]=es,Z[39]=ew,Z[40]=x):x=Z[40];let e1=x;Z[41]!==ex||Z[42]!==K.status||Z[43]!==eu?(b=()=>{eu?.(ex,"open"===K.status?"resolved":"open")},Z[41]=ex,Z[42]=K.status,Z[43]=eu,Z[44]=b):b=Z[44];let e2=b;Z[45]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{eS(WN)},Z[45]=w):w=Z[45];let e5=w;Z[46]===Symbol.for("react.memo_cache_sentinel")?(k=()=>e$(!1),Z[46]=k):k=Z[46];let e0=k;Z[47]!==eD?(S=e=>{"Escape"!==e.key||eD||eW()},Z[47]=eD,Z[48]=S):S=Z[48];let e7=S;fS(ek,e0),Z[49]===Symbol.for("react.memo_cache_sentinel")?(E=()=>[eI.current],Z[49]=E):E=Z[49],(0,I.PR)(!eD&&eW,E),Z[50]!==ev?($=ev?.displayName?(0,v.jsx)(I.EY,{size:1,weight:"medium",textOverflow:"ellipsis",title:ev.displayName,children:ev.displayName}):(0,v.jsx)(T.r5,{size:1,style:Wk}),Z[50]=ev,Z[51]=$):$=Z[51];let e3=$,e8=eE?"true":"false";Z[52]!==eh||Z[53]!==ev||Z[54]!==ef?(A=ef&&(0,v.jsx)(qa,{user:ev,size:eh}),Z[52]=eh,Z[53]=ev,Z[54]=ef,Z[55]=A):A=Z[55];let e4=I.so,e6=2*!!ee,e9=I.so,te=+!K.context?.intent,tt=I.so;Z[56]!==e3?(D=(0,v.jsx)(I.az,{flex:1,children:e3}),Z[56]=e3,Z[57]=D):D=Z[57];let tn=!eB&&(0,v.jsxs)(I.so,{align:"center",gap:1,children:[(0,v.jsx)(WI,{muted:!0,size:0,children:(0,v.jsx)("time",{dateTime:eN.toISOString(),title:eL,children:eV})}),eF&&eO&&(0,v.jsx)(WI,{muted:!0,size:0,title:eF,children:(0,v.jsxs)("time",{dateTime:eO.toISOString(),title:eF,children:["(",ej("list-item.layout-edited"),")"]})})]});return Z[58]!==tt||Z[59]!==D||Z[60]!==tn?(z=(0,v.jsxs)(tt,{align:"flex-end",gap:2,children:[D,tn]}),Z[58]=tt,Z[59]=D,Z[60]=tn,Z[61]=z):z=Z[61],Z[62]!==e9||Z[63]!==te||Z[64]!==z?(P=(0,v.jsx)(e9,{align:"center",paddingBottom:te,sizing:"border",flex:1,children:z}),Z[62]=e9,Z[63]=te,Z[64]=z,Z[65]=P):P=Z[65],Z[66]!==ee||Z[67]!==ej?(R=ee&&(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(WE,{muted:!0,size:0,textOverflow:"ellipsis",children:(0,v.jsx)(aE,{t:ej,i18nKey:"list-item.layout-context",values:{title:ee.title,intent:"edit"},components:{IntentLink:e=>{let{children:t}=e;return ee?(0,v.jsx)(nU.RZ,{params:ee.params,intent:ee.name,children:t}):void 0}}})})}),Z[66]=ee,Z[67]=ej,Z[68]=R):R=Z[68],Z[69]!==e4||Z[70]!==e6||Z[71]!==P||Z[72]!==R?(N=(0,v.jsxs)(e4,{direction:"column",gap:2,paddingY:e6,children:[P,R]}),Z[69]=e4,Z[70]=e6,Z[71]=P,Z[72]=R,Z[73]=N):N=Z[73],Z[74]!==W||Z[75]!==J||Z[76]!==K.status||Z[77]!==eB||Z[78]!==eU||Z[79]!==eq||Z[80]!==eH||Z[81]!==eY||Z[82]!==e2||Z[83]!==eQ||Z[84]!==ek||Z[85]!==et||Z[86]!==er||Z[87]!==ea||Z[88]!==eu||Z[89]!==ep||Z[90]!==e5?(O=!ek&&!eB&&(0,v.jsx)(W_,{"data-root-menu":et?"true":"false",onClick:Ww,children:(0,v.jsx)(Wx,{canDelete:W,canEdit:J,isParent:et,mode:er,onCopyLink:ea?eU:void 0,onDeleteStart:eq,onEditStart:e5,onMenuClose:eH,onMenuOpen:eY,onReactionSelect:eQ,onStatusChange:eu?e2:void 0,readOnly:ep,status:K.status})}),Z[74]=W,Z[75]=J,Z[76]=K.status,Z[77]=eB,Z[78]=eU,Z[79]=eq,Z[80]=eH,Z[81]=eY,Z[82]=e2,Z[83]=eQ,Z[84]=ek,Z[85]=et,Z[86]=er,Z[87]=ea,Z[88]=eu,Z[89]=ep,Z[90]=e5,Z[91]=O):O=Z[91],Z[92]!==WT||Z[93]!==eh||3!==Z[94]||Z[95]!==A||Z[96]!==N||Z[97]!==O?(V=(0,v.jsxs)(WT,{align:"center",gap:3,flex:1,$size:eh,children:[A,N,O]}),Z[92]=WT,Z[93]=eh,Z[94]=3,Z[95]=A,Z[96]=N,Z[97]=O,Z[98]=V):V=Z[98],Z[99]!==eh||Z[100]!==K||Z[101]!==Q||Z[102]!==ef?(M=Z2(K)&&!!K?.contentSnapshot&&(0,v.jsxs)(I.so,{gap:3,marginBottom:3,children:[ef&&(0,v.jsx)(qo,{$size:eh}),(0,v.jsx)(Wj,{hasReferencedValue:Q,value:K?.contentSnapshot})]}),Z[99]=eh,Z[100]=K,Z[101]=Q,Z[102]=ef,Z[103]=M):M=Z[103],Z[104]!==eh||Z[105]!==eG||Z[106]!==eX||Z[107]!==G||Z[108]!==e1||Z[109]!==eK||Z[110]!==ek||Z[111]!==ei||Z[112]!==ep||Z[113]!==ew||Z[114]!==ef?(L=ek&&(0,v.jsxs)(I.so,{align:"flex-start",ga
1473p:2,children:[ef&&(0,v.jsx)(qo,{$size:eh}),(0,v.jsx)(I.BJ,{flex:1,children:(0,v.jsx)(qU,{currentUser:G,focusOnMount:!0,mentionOptions:ei,onChange:e_,onDiscardCancel:eG,onDiscardConfirm:eX,onKeyDown:eK,onSubmit:e1,readOnly:ep,ref:eA,value:ew,withAvatar:!1})})]}),Z[104]=eh,Z[105]=eG,Z[106]=eX,Z[107]=G,Z[108]=e1,Z[109]=eK,Z[110]=ek,Z[111]=ei,Z[112]=ep,Z[113]=ew,Z[114]=ef,Z[115]=L):L=Z[115],Z[116]!==eh||Z[117]!==ek||Z[118]!==eC||Z[119]!==ef?(F=!ek&&(0,v.jsxs)(I.so,{gap:3,children:[ef&&(0,v.jsx)(qo,{$size:eh}),(0,v.jsx)(q7,{blocks:eC})]}),Z[116]=eh,Z[117]=ek,Z[118]=eC,Z[119]=ef,Z[120]=F):F=Z[120],Z[121]!==eh||Z[122]!==G||Z[123]!==eQ||Z[124]!==eR||Z[125]!==er||Z[126]!==eP||Z[127]!==ep||Z[128]!==ef?(B=eR&&(0,v.jsxs)(I.so,{gap:3,marginTop:2,children:[ef&&(0,v.jsx)(qo,{$size:eh}),(0,v.jsx)(I.az,{onClick:Ww,children:(0,v.jsx)(Wu,{currentUser:G,mode:er,onSelect:eQ,reactions:eP,readOnly:ep})})]}),Z[121]=eh,Z[122]=G,Z[123]=eQ,Z[124]=eR,Z[125]=er,Z[126]=eP,Z[127]=ep,Z[128]=ef,Z[129]=B):B=Z[129],Z[130]!==W$||Z[131]!==eB||Z[132]!==V||Z[133]!==M||Z[134]!==L||Z[135]!==F||Z[136]!==B?(Y=(0,v.jsxs)(W$,{space:1,"data-muted":eB,children:[V,M,L,F,B]}),Z[130]=W$,Z[131]=eB,Z[132]=V,Z[133]=M,Z[134]=L,Z[135]=F,Z[136]=B,Z[137]=Y):Y=Z[137],Z[138]!==eh||Z[139]!==eB||Z[140]!==eZ||Z[141]!==X||Z[142]!==en||Z[143]!==ej||Z[144]!==ef?(H=eB&&(0,v.jsxs)(WA,{gap:3,$size:eh,children:[ef&&(0,v.jsx)(qo,{$size:eh}),(0,v.jsxs)(I.so,{align:"center",gap:1,flex:1,children:[(0,v.jsxs)(I.EY,{muted:!0,size:1,children:[X&&ej("list-item.layout-failed-sent"),en&&ej("list-item.layout-posting")]}),(0,v.jsx)(I.so,{hidden:en,children:(0,v.jsx)(WD,{__unstable_focusRing:!0,display:"flex",forwardedAs:"button",onClick:eZ,padding:1,radius:2,tone:"primary",children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:ej("list-item.layout-retry")})})})]})]}),Z[138]=eh,Z[139]=eB,Z[140]=eZ,Z[141]=X,Z[142]=en,Z[143]=ej,Z[144]=ef,Z[145]=H):H=Z[145],Z[146]!==Wz||Z[147]!==e7||Z[148]!==e8||Z[149]!==Y||Z[150]!==H?(U=(0,v.jsxs)(Wz,{"data-menu-open":e8,"data-testid":"comments-list-item-layout",onKeyDown:e7,ref:eI,space:4,children:[Y,H]}),Z[146]=Wz,Z[147]=e7,Z[148]=e8,Z[149]=Y,Z[150]=H,Z[151]=U):U=Z[151],U}function WN(e){return!e}function WO(e){return"userId"in e&&"shortName"in e}function WV(e){return e?._optimisticState!=="removed"}let WM=(0,eI.I4)(I.Zp).attrs({padding:3,radius:3,sizing:"border"}).withConfig({displayName:"ThreadCard",componentId:"sc-11xkvyy-0"})(e=>{let{theme:t}=e,n=t.sanity.color.dark,i=ez.OZ[qJ][n?900:50].hex,r=ez.OZ.gray[n?900:50].hex;return(0,eI.AH)` 1474 background-color: ${r}; 1475 1476 &[data-active='true'] { 1477 background-color: ${i}; 1478 } 1479 `}),WL=[],WF={avatarSize:1,parentCommentAvatar:!0,replyAvatar:!0,threadCommentsAvatar:!0},WB=(0,eI.I4)(WM).withConfig({displayName:"StyledThreadCard",componentId:"sc-niunrr-0"})(()=>(0,eI.AH)` 1480 position: relative; 1481 1482 &:has(> [data-ui='GhostButton']:focus:focus-visible) { 1483 box-shadow: 1484 inset 0 0 0 1px var(--card-border-color), 1485 0 0 0 1px var(--card-bg-color), 1486 0 0 0 2px var(--card-focus-ring-color); 1487 } 1488 1489 // The hover styles is managed with the [data-hovered] attribute instead of the :hover pseudo class 1490 // since we want to show the hover styles when hovering over the menu items in the context menu as well. 1491 // The context menu is rendered using a portal, so the :hover pseudo class won't work when hovering over 1492 // the menu items. 1493 &:not([data-active='true']) { 1494 @media (hover: hover) { 1495 &[data-hovered='true'] { 1496 [data-root-menu='true'] { 1497 opacity: 1; 1498 } 1499 } 1500 } 1501 } 1502 `),WY=(0,eI.I4)(tL.$n).withConfig({displayName:"ExpandButton",componentId:"sc-niunrr-1"})(({theme:e})=>{let{medium:t}=e.sanity.fonts.text.weights;return(0,eI.AH)` 1503 font-weight: ${t}; 1504 `}),WH=eI.I4.button.withConfig({displayName:"GhostButton",componentId:"sc-niunrr-2"})`opacity:0;position:absolute;right:0;top:0;bottom:0;left:0;`,WU=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(113),{avatarConfig:T,canReply:E,currentUser:$,hasReferencedValue:A,innerPadding:D,isSelected:z,mentionOptions:P,mode:R,onCopyLink:N,onCreateRetry:O,onDelete:V,onEdit:M,onKeyDown:L,onPathSelect:F,onReactionSelect:B,onReply:Y,onStatusChange:H,parentComment:U,readOnly:Z,replies:q}=e,W=void 0===T?WF:T,J=void 0===q?WL:q,{t:K}=as(ZG),[G,X]=(0,_.useState)(WL),[Q,ee]=(0,_.useState)(!0),et=(0,_.useRef)(null),{isTopLayer:en}=(0,I.Z4)();S[0]!==G?(t=Z1(G),S[0]=G,S[1]=t):t=S[1];let ei=t,[er,ea]=(0,_.useState)(!1);S[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>ea(!0),S[2]=n):n=S[2];let eo=n;S[3]===Symbol.for("react.memo_cache_sentinel")?(i=()=>ea(!1),S[3]=i):i=S[3];let el=i;S[4]!==Y||S[5]!==U._id||S[6]!==U.status||S[7]!==U.target.path?.field||S[8]!==U.threadId||S[9]!==G?(r=()=>{let e={message:G,parentCommentId:U._id,status:U?.status||"open",threadId:U.threadId,reactions:WL,payload:{fieldPath:U.target.path?.field||""}};Y?.(e),X(WL)},S[4]=Y,S[5]=U._id,S[6]=U.status,S[7]=U.target.path?.field,S[8]=U.threadId,S[9]=G,S[10]=r):r=S[10];let es=r;S[11]!==ei?(a=()=>{ei?et.current?.discardDialogController.open():X(WL)},S[11]=ei,S[12]=a):a=S[12];let ed=a;S[13]!==ed?(o=e=>{e.isDefaultPrevented()||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),ed())},S[13]=ed,S[14]=o):o=S[14];let ec=o;S[15]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{et.current?.discardDialogController.close()},S[15]=l):l=S[15];let eu=l;S[16]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{X(WL),et.current?.discardDialogController.close(),et.current?.focus()},S[16]=s):s=S[16];let ep=s;S[17]!==en||S[18]!==F||S[19]!==U.target.path?.field||S[20]!==U.threadId?(d=e=>{e.stopPropagation(),en&&F?.({fieldPath:U.target.path?.field||"",origin:"inspector",threadId:U.threadId})},S[17]=en,S[18]=F,S[19]=U.target.path?.field,S[20]=U.threadId,S[21]=d):d=S[21];let em=d;S[22]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{e.stopPropagation(),ee(!1)},S[22]=c):c=S[22];let eh=c;e:{if(Q){let e;S[23]!==J?(e=J?.slice(-5),S[23]=J,S[24]=e):e=S[24],u=e;break e}u=J}let ef=u;t:{if(!J){p=!1;break t}p=J.length>5}let eg=p,ey=`${J?.length-5} more ${J?.length-5==1?"comment":"comments"}`,eC=z?"true":"false",ex=er?"true":"false";S[25]!==K?(m=K("list-item.go-to-field-button.aria-label"),S[25]=K,S[26]=m):m=S[26],S[27]!==m?(h=(0,v.jsx)(WH,{"data-ui":"GhostButton","aria-label":m}),S[27]=m,S[28]=h):h=S[28];let eb=E?void 0:1;S[29]!==U._id?(f=Jv(U._id),S[29]=U._id,S[30]=f):f=S[30];let ev=U.authorId===$.id,ej=U.authorId===$.id,ew=U._state?.type==="createError",e_=U.context?.intent,ek=U._state?.type==="createRetrying";if(S[31]!==W.avatarSize||S[32]!==W.parentCommentAvatar||S[33]!==$||S[34]!==A||S[35]!==P||S[36]!==R||S[37]!==N||S[38]!==O||S[39]!==V||S[40]!==M||S[41]!==L||S[42]!==B||S[43]!==H||S[44]!==U||S[45]!==Z||S[46]!==ev||S[47]!==ej||S[48]!==ew||S[49]!==e_||S[50]!==ek?(g=(0,v.jsx)(WR,{avatarSize:W.avatarSize,canDelete:ev,canEdit:ej,comment:U,currentUser:$,hasError:ew,hasReferencedValue:A,intent:e_,isParent:!0,isRetrying:ek,mentionOptions:P,mode:R,onCopyLink:N,onCreateRetry:O,onDelete:V,onEdit:M,onInputKeyDown:L,onReactionSelect:B,onStatusChange:H,readOnly:Z,withAvatar:W.parentCommentAvatar}),S[31]=W.avatarSize,S[32]=W.parentCommentAvatar,S[33]=$,S[34]=A,S[35]=P,S[36]=R,S[37]=N,S[38]=O,S[39]=V,S[40]=M,S[41]=L,S[42]=B,S[43]=H,S[44]=U,S[45]=Z,S[46]=ev,S[47]=ej,S[48]=ew,S[49]=e_,S[50]=ek,S[51]=g):g=S[51],S[52]!==f||S[53]!==g?(y=(0,v.jsx)(I.BJ,{as:"li",...f,children:g}),S[52]=f,S[53]=g,S[54]=y):y=S[54],S[55]!==Q||S[56]!==ey||S[57]!==eg?(C=eg&&Q&&(0,v.jsxs)(I.so,{gap:1,paddingY:1,sizing:"border",children:[(0,v.jsx)(qo,{}),(0,v.jsx)(WY,{iconRight:eT.D3D,mode:"bleed",onClick:eh,text:ey})]}),S[55]=Q,S[56]=ey,S[57]=eg,S[58]=C):C=S[58],S[59]!==W.avatarSize||S[60]!==W.threadCommentsAvatar||S[61]!==$||S[62]!==ec||S[63]!==P||S[64]!==R||S[65]!==N||S[66]!==O||S[67]!==V||S[68]!==M||S[69]!==B||S[70]!==U||S[71]!==Z||S[72]!==ef){let e;S[74]!==W.avatarSize||S[75]!==W.threadCommentsAvatar||S[76]!==$||S[77]!==ec||S[78]!==P||S[79]!==R||S[80]!==N||S[81]!==O||S[82]!==V||S[83]!==M||S[84]!==B||S[85]!==U||S[86]!==Z?(e=e=>(0,v.jsx)(I.BJ,{as:"li",...Jv(e._id),children:(0,v.jsx)(WR,{avatarSize:W.avatarSize,canDelete:e.authorId===$.id,canEdit:e.authorId===$.id,comment:e,currentUser:$,hasError:e._state?.type==="createError",isRetrying:e._state?.type==="createRetrying",intent:function(e,t){let n=e?.context?.intent,i=t?.context?.intent;if(i&&(!n||"preview"in i.params&&"preview"in n.params&&i.params.preview!==n.params.preview))return i}(U,e),mentionOptions:P,mode:R,onCopyLink:N,onCreateRetry:O,onDelete:V,onEdit:M,onInputKeyDown:ec,onReactionSelect:B,readOnly:Z,withAvatar:W.threadCommentsAvatar})},e._id),S[74]=W.avatarSize,S[75]=W.threadCommentsAvatar,S[76]=$,S[77]=ec,S[78]=P,S[79]=R,S[80]=N,S[81]=O,S[82]=V,S[83]=M,S[84]=B,S[85]=U,S[86]=Z,S[87]=e):e=S[87],x=ef.map(e),S[59]=W.avatarSize,S[60]=W.threadCommentsAvatar,S[61]=$,S[62]=ec,S[63]=P,S[64]=R,S[65]=N,S[66]=O,S[67]=V,S[68]=M,S[69]=B,S[70]=U,S[71]=Z,S[72]=ef,S[73]=x}else x=S[73];return S[88]!==W.avatarSize||S[89]!==W.replyAvatar||S[90]!==E||S[91]!==$||S[92]!==ec||S[93]!==es||S[94]!==P||S[95]!==R||S[96]!==Z||S[97]!==K||S[98]!==G?(b=E&&(0,v.jsx)(qU,{avatarSize:W.avatarSize,currentUser:$,expandOnFocus:!0,mentionOptions:P,onChange:X,onDiscardCancel:eu,onDiscardConfirm:ep,onKeyDown:ec,onSubmit:es,placeholder:K("upsell"===R?"compose.reply-placeholder-upsell":"compose.reply-placeholder"),readOnly:Z||"upsell"===R,ref:et,value:G,withAvatar:W.replyAvatar}),S[88]=W.avatarSize,S[89]=W.replyAvatar,S[90]=E,S[91]=$,S[92]=ec,S[93]=es,S[94]=P,S[95]=R,S[96]=Z,S[97]=K,S[98]=G,S[99]=b):b=S[99],S[100]!==D||S[101]!==eb||S[102]!==y||S[103]!==C||S[104]!==x||S[105]!==b?(w=(0,v.jsxs)(I.BJ,{as:"ul",padding:D,paddingBottom:eb,space:4,children:[y,C,x,b]}),S[100]=D,S[101]=eb,S[102]=y,S[103]=C,S[104]=x,S[105]=b,S[106]=w):w=S[106],S[107]!==em||S[108]!==eC||S[109]!==ex||S[110]!==h||S[111]!==w?(k=(0,v.jsxs)(WB,{"data-active":eC,"data-hovered":ex,"data-testid":"comments-list-item","data-ui":"CommentsListItem",onClick:em,onMouseEnter:eo,onMouseLeave:el,children:[h,w]}),S[107]=em,S[108]=eC,S[109]=ex,S[110]=h,S[111]=w,S[112]=k):k=S[112],k});function WZ(e){let t,n=(0,j.c)(17),{status:i,error:r,loading:a,hasNoComments:o}=e,{t:l}=as(ZG);n[0]!==l?(t={open:{title:l("list-status.empty-state-open-title"),message:l("list-status.empty-state-open-text")},resolved:{title:l("list-status.empty-state-resolved-title"),message:l("list-status.empty-state-resolved-text")}},n[0]=l,n[1]=t):t=n[1];let s=t;if(r){let e,t;return n[2]!==l?(e=l("list-status.error"),n[2]=l,n[3]=e):e=n[3],n[4]!==e?(t=(0,v.jsx)(I.so,{align:"center",justify:"center",flex:1,padding:4,children:(0,v.jsx)(I.so,{align:"center",children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:e})})}),n[4]=e,n[5]=t):t=n[5],t}if(a){let e,t;return n[6]!==l?(e=l("list-status.loading"),n[6]=l,n[7]=e):e=n[7],n[8]!==e?(t=(0,v.jsx)(ry,{showText:!0,title:e}),n[8]=e,n[9]=t):t=n[9],t}if(o){let e,t,r,a=s[i];n[10]!==a.title?(e=(0,v.jsx)(I.EY,{align:"center",size:1,muted:!0,weight:"medium",children:a.title}),n[10]=a.title,n[11]=e):e=n[11];let o=s[i];return n[12]!==o.message?(t=(0,v.jsx)(I.EY,{align:"center",size:1,muted:!0,children:o.message}),n[12]=o.message,n[13]=t):t=n[13],n[14]!==e||n[15]!==t?(r=(0,v.jsx)(I.so,{align:"center",justify:"center",flex:1,sizing:"border",children:(0,v.jsx)(I.mc,{width:0,padding:4,children:(0,v.jsxs)(I.BJ,{space:3,children:[e,t]})})}),n[14]=e,n[15]=t,n[16]=r):r=n[16],r}return null}WU.displayName="Memo(CommentsListItem)";let Wq=[];function WW(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(26),{currentUser:c,fieldTitle:u,mentionOptions:p,mode:m,onBlur:h,onFocus:f,onKeyDown:g,onNewThreadCreate:y,readOnly:C}=e,{t:x}=as(ZG),[b,w]=(0,_.useState)(Wq),k=(0,_.useRef)(null);d[0]!==y||d[1]!==b?(t=()=>{y?.(b),w(Wq)},d[0]=y,d[1]=b,d[2]=t):t=d[2];let S=t;d[3]!==b?(n=Z1(b),d[3]=b,d[4]=n):n=d[4];let I=n;d[5]!==I?(i=()=>{I&&k.current?.discardDialogController.open()},d[5]=I,d[6]=i):i=d[6];let T=i;d[7]!==g||d[8]!==T?(r=e=>{e.isDefaultPrevented()||("Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),T()),g&&g(e))},d[7]=g,d[8]=T,d[9]=r):r=d[9];let E=r;d[10]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{w(Wq),k.current?.discardDialogController.close(),k.current?.focus()},d[10]=a):a=d[10];let $=a;d[11]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{k.current?.discardDialogController.close()},d[11]=o):o=d[11];let A=o;d[12]!==u||d[13]!==m||d[14]!==x?(l="upsell"===m?x("compose.add-comment-input-placeholder-upsell"):(0,v.jsx)(aE,{t:x,i18nKey:"compose.add-comment-input-placeholder",values:{field:u}}),d[12]=u,d[13]=m,d[14]=x,d[15]=l):l=d[15];let D=l,z=C||"upsell"===m;return d[16]!==c||d[17]!==E||d[18]!==S||d[19]!==p||d[20]!==h||d[21]!==f||d[22]!==D||d[23]!==z||d[24]!==b?(s=(0,v.jsx)(qU,{currentUser:c,exp
1504andOnFocus:!0,mentionOptions:p,onBlur:h,onChange:w,onDiscardCancel:A,onDiscardConfirm:$,onKeyDown:E,onFocus:f,onSubmit:S,placeholder:D,readOnly:z,ref:k,value:b}),d[16]=c,d[17]=E,d[18]=S,d[19]=p,d[20]=h,d[21]=f,d[22]=D,d[23]=z,d[24]=b,d[25]=s):s=d[25],s}let WJ=(0,eI.I4)(I.so).withConfig({displayName:"HeaderFlex",componentId:"sc-17u7b8x-0"})`min-height:25px;`,WK=(0,eI.I4)(I.$n).withConfig({displayName:"BreadcrumbsButton",componentId:"sc-17u7b8x-1"})(({theme:e})=>{let t=e.sanity.color.base.fg;return(0,eI.AH)` 1505 --card-fg-color: ${t}; 1506 1507 // The width is needed to make the text ellipsis work 1508 // in the breadcrumbs component 1509 max-width: 100%; 1510 `});function WG(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(36),{breadcrumbs:p,canCreateNewThread:m,children:h,currentUser:f,fieldPath:g,isSelected:y,mentionOptions:C,mode:x,onNewThreadCreate:b,onPathSelect:w,readOnly:_}=e,{t:k}=as(ZG);u[0]!==g||u[1]!==b?(t=e=>{let t={message:e,parentCommentId:void 0,status:"open",threadId:(0,ii.A)(),reactions:[],payload:{fieldPath:g}};b?.(t)},u[0]=g,u[1]=b,u[2]=t):t=u[2];let S=t;u[3]!==g||u[4]!==w?(n=e=>{e.stopPropagation(),w?.({fieldPath:g,origin:"inspector",threadId:null})},u[3]=g,u[4]=w,u[5]=n):n=u[5];let T=n;u[6]!==g||u[7]!==w?(i=e=>{e.stopPropagation(),0!==e.detail&&w?.({fieldPath:g,origin:"inspector",threadId:null})},u[6]=g,u[7]=w,u[8]=i):i=u[8];let E=i;u[9]!==p?(r=p?.map(WX)||[],u[9]=p,u[10]=r):r=u[10];let $=r,A=$[$.length-1];return u[11]!==A||u[12]!==k?(a=k("list-item.breadcrumb-button-go-to-field-aria-label",{field:A}),u[11]=A,u[12]=k,u[13]=a):a=u[13],u[14]!==$?(o=(0,v.jsx)(Z8,{maxLength:3,titlePath:$}),u[14]=$,u[15]=o):o=u[15],u[16]!==T||u[17]!==a||u[18]!==o?(l=(0,v.jsx)(WJ,{align:"center",gap:2,paddingRight:1,sizing:"border",children:(0,v.jsx)(I.BJ,{flex:1,children:(0,v.jsx)(I.so,{align:"center",children:(0,v.jsx)(WK,{"aria-label":a,mode:"bleed",onClick:T,padding:2,space:2,children:o})})})}),u[16]=T,u[17]=a,u[18]=o,u[19]=l):l=u[19],u[20]!==m||u[21]!==f||u[22]!==E||u[23]!==S||u[24]!==y||u[25]!==A||u[26]!==C||u[27]!==x||u[28]!==_?(s=m&&(0,v.jsx)(WM,{onClick:E,"data-active":y,children:(0,v.jsx)(WW,{currentUser:f,fieldTitle:A,mentionOptions:C,mode:x,onNewThreadCreate:S,readOnly:_})}),u[20]=m,u[21]=f,u[22]=E,u[23]=S,u[24]=y,u[25]=A,u[26]=C,u[27]=x,u[28]=_,u[29]=s):s=u[29],u[30]!==h?(d=(0,v.jsx)(I.BJ,{space:2,children:h}),u[30]=h,u[31]=d):d=u[31],u[32]!==l||u[33]!==s||u[34]!==d?(c=(0,v.jsxs)(I.BJ,{space:2,children:[l,s,d]}),u[32]=l,u[33]=s,u[34]=d,u[35]=c):c=u[35],c}function WX(e){return e.title}let WQ=(0,_.forwardRef)(function(e,t){let n,i,r,a,o=(0,j.c)(32),{beforeListNode:l,comments:s,currentUser:d,error:c,loading:u,mentionOptions:p,mode:m,onCopyLink:h,onCreateRetry:f,onDelete:g,onEdit:y,onNewThreadCreate:C,onPathSelect:x,onReactionSelect:b,onReply:w,onStatusChange:k,readOnly:S,selectedPath:T,status:E}=e,[$,A]=(0,_.useState)(null);o[0]!==s?(n=Object.entries(s.reduce((e,t)=>{let n=t.fieldPath;return e[n]||(e[n]=[]),e[n].push(t),e},{})),o[0]=s,o[1]=n):n=o[1];let D=n,z=!u&&!c&&D.length>0;return o[2]!==c||o[3]!==D||o[4]!==u||o[5]!==m||o[6]!==E?(i="upsell"!==m&&(0,v.jsx)(WZ,{error:c,hasNoComments:0===D.length,loading:u,status:E}),o[2]=c,o[3]=D,o[4]=u,o[5]=m,o[6]=E,o[7]=i):i=o[7],o[8]!==l||o[9]!==$||o[10]!==d||o[11]!==D||o[12]!==p||o[13]!==m||o[14]!==h||o[15]!==f||o[16]!==g||o[17]!==y||o[18]!==C||o[19]!==x||o[20]!==b||o[21]!==w||o[22]!==k||o[23]!==S||o[24]!==t||o[25]!==T||o[26]!==z||o[27]!==E?(r=(z||l)&&(0,v.jsxs)(I.BJ,{as:"ul",flex:1,overflow:"auto",padding:3,paddingTop:1,paddingBottom:6,sizing:"border",space:1,ref:t,children:[l,(0,v.jsx)(I.EZ,{element:$,children:D?.map(e=>{let[t,n]=e,i=n[0].breadcrumbs,r=n[0].threadId,a=T?.fieldPath===t&&!T.threadId;return(0,v.jsx)(I.BJ,{as:"li",paddingTop:3,...{"data-comments-group-id":Jb(r)},children:(0,v.jsx)(WG,{breadcrumbs:i,canCreateNewThread:"open"===E,currentUser:d,fieldPath:t,isSelected:a,mentionOptions:p,mode:m,onNewThreadCreate:C,onPathSelect:x,readOnly:S,children:n.map(e=>{let t=e.replies.slice().reverse(),n="open"===E&&e.parentComment._state?.type!=="createError"&&e.parentComment._state?.type!=="createRetrying",i=T?.threadId===e.parentComment.threadId&&T?.fieldPath===e.parentComment.target.path?.field;return(0,v.jsx)(WU,{canReply:n,currentUser:d,hasReferencedValue:e.hasReferencedValue,isSelected:i,mentionOptions:p,mode:m,onCopyLink:h,onCreateRetry:f,onDelete:g,onEdit:y,onPathSelect:x,onReactionSelect:b,onReply:w,onStatusChange:k,parentComment:e.parentComment,readOnly:S,replies:t},e.parentComment._id)})},t)},t)})})]}),o[8]=l,o[9]=$,o[10]=d,o[11]=D,o[12]=p,o[13]=m,o[14]=h,o[15]=f,o[16]=g,o[17]=y,o[18]=C,o[19]=x,o[20]=b,o[21]=w,o[22]=k,o[23]=S,o[24]=t,o[25]=T,o[26]=z,o[27]=E,o[28]=r):r=o[28],o[29]!==i||o[30]!==r?(a=(0,v.jsxs)(I.so,{"data-testid":"comments-list",direction:"column",flex:1,height:"fill",overflow:"hidden",ref:A,sizing:"border",children:[i,r]}),o[29]=i,o[30]=r,o[31]=a):a=o[31],a}),W1=(0,_.memo)(WQ),W2=(0,eI.I4)(I.az).withConfig({displayName:"Root",componentId:"sc-1frwq5h-0"})`max-width:280px;`,W5=(0,eI.i7)` 1511 from { 1512 opacity: 0; 1513 } 1514 to { 1515 opacity: 1; 1516 } 1517`,W0=(0,eI.I4)(tL.AM).withConfig({displayName:"StyledPopover",componentId:"sc-1frwq5h-1"})`opacity:0;animation:${W5} 200ms 500ms forwards;`;function W7(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(23);u[0]!==e?({onDismiss:t,...n}=e,u[0]=e,u[1]=t,u[2]=n):(t=u[1],n=u[2]);let{t:p}=as(ZG);return u[3]!==p?(i=p("onboarding.header"),u[3]=p,u[4]=i):i=u[4],u[5]!==i?(r=(0,v.jsx)(I.EY,{weight:"medium",size:1,children:i}
1517),u[5]=i,u[6]=r):r=u[6],u[7]!==p?(a=p("onboarding.body"),u[7]=p,u[8]=a):a=u[8],u[9]!==a?(o=(0,v.jsx)(I.EY,{size:1,children:a}),u[9]=a,u[10]=o):o=u[10],u[11]!==p?(l=p("onboarding.dismiss"),u[11]=p,u[12]=l):l=u[12],u[13]!==t||u[14]!==l?(s=(0,v.jsx)(I.so,{justify:"flex-end",marginTop:2,children:(0,v.jsx)(tL.$n,{text:l,tone:"primary",onClick:t})}),u[13]=t,u[14]=l,u[15]=s):s=u[15],u[16]!==r||u[17]!==o||u[18]!==s?(d=(0,v.jsx)(W2,{padding:4,children:(0,v.jsxs)(I.BJ,{space:3,children:[r,o,s]})}),u[16]=r,u[17]=o,u[18]=s,u[19]=d):d=u[19],u[20]!==n||u[21]!==d?(c=(0,v.jsx)(W0,{content:d,open:!0,portal:!0,...n}),u[20]=n,u[21]=d,u[22]=c):c=u[22],c}function W3(e){let t,n=(0,j.c)(4),{data:i,onPrimaryClick:r,onSecondaryClick:a}=e;return n[0]!==i||n[1]!==r||n[2]!==a?(t=(0,v.jsx)(I.mc,{width:1,children:(0,v.jsx)(I.az,{marginBottom:6,children:(0,v.jsx)(FP,{data:i,onPrimaryClick:r,onSecondaryClick:a})})}),n[0]=i,n[1]=r,n[2]=a,n[3]=t):t=n[3],t}function W8(e,t){let n=(0,n9.iU)(e,t),i=(0,n9.sw)(n),r=function(e){let t=0,n=0,i=0;for(let r=0;r<e.length;r++){let a=e[r][0],o=e[r][1];switch(a){case n9.Ug:n+=o.length;break;case n9.Cm:i+=o.length;break;case n9.lw:t+=Math.max(n,i),n=0,i=0}}return t+Math.max(n,i)}(i);return{patches:(0,n9.jW)(e,i,{margin:15}),levenshtein:r}}let W4=["ï","ï"],W6=RegExp(`[${W4.join("")}]`,"g"),W9=[];function Je(e){let{value:t,comments:n}=e;if(!t||0===t.length)return W9;let i=n.filter(Z2),r=[];return i.forEach(e=>{e.target.path?.selection?.value.forEach(n=>{let i=t.find(e=>e._key===n._key);if(!i||!(0,eD.L4)(i))return;let a=n.text.replaceAll(W6,""),o=i.children.map(e=>(0,eD.bn)(e)?e.text.replaceAll("ï"," "):"").join("ï"),{patches:l}=W8(a,n.text),s=(0,n9.$i)(l,o,{allowExceedingIndices:!0,margin:15})[0],d=s.indexOf(W4[0]),c=s.replaceAll(W4[0],"").indexOf(W4[1]),u=s.replaceAll(W6,""),p=n.text.slice(n.text.indexOf(W4[0])+1,n.text.indexOf(W4[1])),m=u.slice(d,c),{levenshtein:h}=W8(m,p),f=Math.round(m.length+p.length/2),g=!1;if(0===m.length&&(g=!0),h>f&&(g=!0),d+1===c&&(g=!0),-1!==d&&-1!==c){let t=0,n=0,a=0,o=0;for(let e=0;e<u.length&&("ï"===u[e]&&(e<=d&&(n=-1,t++),o=-1,a++),e<d&&n++,e<d+m.length&&o++,e!==d+m.length);e++);r.push({selection:{anchor:{path:[{_key:i._key},"children",{_key:i.children[t]._key}],offset:n},focus:{path:[{_key:i._key},"children",{_key:i.children[a]._key}],offset:o}},comment:e,range:{_key:i._key,text:g?"":s}})}})}),0===r.length?W9:r}let Jt=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s=(0,j.c)(20),{children:d,commentId:c,currentHoveredCommentId:u,onClick:p,onHoverEnd:m,onHoverStart:h,selectedThreadId:f,threadId:g}=e,y=(0,_.useRef)(null),[C,x]=(0,_.useState)(!1),[b,w]=(0,_.useState)(null);s[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=y.current?.previousSibling,t=y.current?.nextSibling;if(!e||!t)return void x(!1);let[n]=Object.keys(Jj("")),i=e.getAttribute(n),r=t.getAttribute(n),a=!!(i&&r&&i===r);w(a?i:null),x(a)},n=[],s[0]=t,s[1]=n):(t=s[0],n=s[1]),(0,_.useEffect)(t,n),s[2]!==c||s[3]!==h?(i=()=>h(c),s[2]=c,s[3]=h,s[4]=i):i=s[4];let k=i;s[5]!==m?(r=()=>m(null),s[5]=m,s[6]=r):r=s[6];let S=r;s[7]!==c||s[8]!==p?(a=()=>p(c),s[7]=c,s[8]=p,s[9]=a):a=s[9];let I=a,T=u===c||u===b&&C||f===g;return s[10]!==g?(o=Jj(g),s[10]=g,s[11]=o):o=s[11],s[12]!==d||s[13]!==I||s[14]!==k||s[15]!==S||s[16]!==C||s[17]!==T||s[18]!==o?(l=(0,v.jsx)(qQ,{isAdded:!0,isHovered:T,isNested:C,onClick:I,onMouseEnter:k,onMouseLeave:S,ref:y,...o,children:d}),s[12]=d,s[13]=I,s[14]=k,s[15]=S,s[16]=C,s[17]=T,s[18]=o,s[19]=l):l=s[19],l});Jt.displayName="Memo(CommentRangeDecoration)";let Jn=/\b(https?:\/\/[^\s,()]+(?:\.[^\s,()]+)*|www\.[^\s,()]+\.[^\s,()]{2,})\b/g;function Ji(e){e.stopPropagation()}let Jr=[e=>"string"==typeof e?e.split(Jn).flatMap(e=>{let t;return e.match(Jn)?(t=e.startsWith("http")?e:`https://${e}`,(0,v.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",onClick:Ji,children:e},e)):e}):e];async function Ja(e){let t,{activeTool:n,client:i,comment:r,currentUser:a,dataset:o,documentId:l,documentRevisionId:s,documentType:d,documentVersionId:c,getIntent:u,getNotificationValue:p,getThreadLength:m,onCreate:h,onCreateError:f,projectId:g,createAddonDataset:y,workspace:C}=e,x=r?.id||(0,ii.A)(),b=a.id,v=(m?.(r.threadId)||0)+1;if("task"===r.type&&(t={_id:x,_type:"comment",authorId:b,message:r.message,lastEditedAt:void 0,parentCommentId:r.parentCommentId,status:r.status,threadId:r.threadId,reactions:r.reactions,context:{payload:{workspace:C},notification:r.context.notification,tool:n?.name||""},target:{document:{_ref:l,_type:"reference",_weak:!0}
1517,documentVersionId:c,documentType:d}}),"field"===r.type){let{documentTitle:e="",url:i="",workspaceTitle:a="",workspaceName:m=""}=p({commentId:x})||{},h=u?.({id:l,type:d,path:r.fieldPath}),f=function e(t){if(t&&"object"==typeof t&&t.hasOwnProperty("_ref"))return{...t,_weak:!0};if(Array.isArray(t))return t.map(t=>e(t));if(t&&"object"==typeof t){let n={};return Object.keys(t).forEach(i=>{let r=t[i];"object"==typeof r&&null!==r?n[i]=e(r):n[i]=r}),n}return t}(r.contentSnapshot);t={_id:x,_type:"comment",authorId:b,message:r.message,lastEditedAt:void 0,parentCommentId:r.parentCommentId,status:r.status,threadId:r.threadId,reactions:r.reactions,context:{payload:{workspace:C},intent:h,notification:{currentThreadLength:v,documentTitle:e,url:i,workspaceTitle:a,workspaceName:m},tool:n?.name||""},contentSnapshot:f,target:{documentRevisionId:s||"",path:{field:r.fieldPath,selection:r.selection},document:{_dataset:o,_projectId:g,_ref:l,_type:"crossDatasetReference",_weak:!0},documentType:d,documentVersionId:c}}}if(t){if(h?.(t),!i){try{let e=await y();if(!e)throw Error("Failed to create addon dataset client");await e.create(t)}catch(e){throw f?.(t._id,e),e}return}try{await i.create(t)}catch(e){throw f?.(t._id,e),e}}}async function Jo(e){var t,n;let{client:i,currentUser:r,id:a,reaction:o,getComment:l,onUpdate:s}=e,d=l?.(a)?.reactions||[],c=d.filter(e=>e.userId===r.id),u=(t=r.id,n=o.shortName,`${t}-${n}`),p=c.find(e=>e._key===u&&"removed"!==e._optimisticState);if(p){let e=d.map(e=>e._key===p._key?{...e,_optimisticState:"removed"}:e);s?.(a,{reactions:e}),await i.patch(a).unset([`reactions[_key=="${u}"]`]).commit();return}if(!p){let e={_key:u,addedAt:new Date().toISOString(),shortName:o.shortName,userId:r.id},t={...e,_optimisticState:"added"},n=d.concat(t).filter(t=>t._key!==e._key||"removed"!==t._optimisticState);s?.(a,{reactions:n}),await i.patch(a).setIfMissing({reactions:[]}).append("reactions",[e]).commit()}}async function Jl(e){let{client:t,id:n,onRemove:i}=e;i?.(n),await Promise.all([t.delete({query:`*[_type == "comment" && parentCommentId == "${n}"]`}),t.delete(n)])}let Js={trailing:!0,leading:!1},Jd=new Map;async function Jc(e){let{client:t,id:n,comment:i,transactionId:r,onUpdate:a}=e,o=r||(0,ii.A)(),l=t?.patch(n).set(i),s=t.transaction().transactionId(o).patch(l);a?.(n,i),i.status?(await s.commit(),await t.patch({query:`*[_type == "comment" && parentCommentId == "${n}"]`}).set({status:i.status}).commit()):await s.commit(),Jd.delete(n)}async function Ju(e){let{id:t,comment:n,throttled:i}=e,r="message"in n,a={...n,lastEditedAt:new Date().toISOString()},o=r?a:n;i?await (function(e){if(!Jd.has(e)){let t=(0,A.A)(Jc,1e3,Js);return Jd.set(e,t),t}return Jd.get(e)})(t)({...e,comment:o}):await Jc({...e,comment:o})}function Jp(e){return"string"==typeof e.tool?e.tool:void 0}function Jm(){let e=(0,_.useContext)(S.eP);if(!e)throw Error("useComments must be used within a CommentsProvider");return e}function Jh(){return(0,_.useContext)(S.pn)}let Jf={behavior:"smooth",inline:"center",scrollMode:"if-needed"},Jg={...Jf,block:"start"},Jy={...Jf,block:"center"},JC={...Jf,block:"center"},Jx={comment:{...Jf,block:"center"},field:JC,group:Jg,"inline-comment":Jy};function Jb(e){return e.replace(/[[\]_"_=.]/g,"")}function Jv(e){return{"data-comments-comment-id":Jb(e)}}function Jj(e){return{"data-comments-inline-comment-id":Jb(e)}}function Jw(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(14);c[0]!==e?(t=e||{},c[0]=e,c[1]=t):t=c[1];let{boundaryElement:u}=t,[p,m]=(0,_.useState)(null),h=Jx[p?.type||"comment"],f=p?.type==="comment"?u:void 0;c[2]!==h||c[3]!==f?(n={...h,boundary:f},c[2]=h,c[3]=f,c[4]=n):n=c[4];let g=n;c[5]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{m({type:"comment",id:e})},c[5]=i):i=c[5];let y=i;c[6]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{m({type:"group",id:e})},c[6]=r):r=c[6];let C=r;c[7]===Symbol.for("react.memo_cache_sentinel")?(a=e=>{m({type:"field",id:e})},c[7]=a):a=c[7];let x=a;c[8]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{m({type:"inline-comment",id:e})},c[8]=o):o=c[8];let b=o;return c[9]!==g||c[10]!==p?(l=()=>{let e=requestAnimationFrame(()=>{if(!p)return;let{type:e,id:t}=p,n=document?.querySelector(`[data-comments-${e}-id="${Jb(t)}"]`);n&&(0,il.A)(n,g)});return()=>{cancelAnimationFrame(e)}},s=[g,p],c[9]=g,c[10]=p,c[11]=l,c[12]=s):(l=c[11],s=c[12]),(0,_.useEffect)(l,s),c[13]===Symbol.for("react.memo_cache_sentinel")?(d={scrollToComment:y,scrollToField:x,scrollToGroup:C,scrollToInlineComment:b},c[13]=d):d=c[13],d}function J_(){let e=(0,_.useContext)(S.AR);if(!e)throw Error("useCommentsSelectedPath: missing context value");return e}let Jk=(0,tW.g_)({name:"Comment Link Copied",version:1,description:"The link to a comment is copied"}),JS=(0,tW.g_)({name:"Comment Viewed From Link",version:1,description:"A comment is viewed from a link"}),JI=(0,tW.g_)({name:"Comment List View Changed",version:1,description:"The view of the comment list is changed"});function JT(){let e=(0,j.c)(1),t=(0,_.useContext)(S.F8);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={upsellData:null,handleOpenDialog:JN,handleClose:JR,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:JP,dialogPrimaryClicked:Jz,panelViewed:JD,panelDismissed:JA,panelPrimaryClicked:J$,panelSecondaryClicked:JE}},e[0]=t):t=e[0],t}return t}function JE(){return null}function J$(){return null}function JA(){return null}function JD(){return null}function Jz(){return null}function JP(){return null}function JR(){return null}function JN(){return null}function JO(e,t){switch(t.type){case"COMMENTS_SET":{let n=t.comments.reduce((e,t)=>
1517({...e,[t._id]:t}),{});return{...e,comments:n}}case"COMMENT_ADDED":{let n=t.payload,i={[n._id]:{...e.comments[n._id],...n,_state:n._state||void 0,_createdAt:n._createdAt||new Date().toISOString()}};return{...e,comments:{...e.comments,...i}}}case"COMMENT_RECEIVED":{let n=t.payload;return{...e,comments:{...e.comments,[n._id]:n}}}case"COMMENT_DELETED":{let{[t.id]:n,...i}=e.comments;return Object.keys(i).forEach(e=>{i[e].parentCommentId===t.id&&delete i[e]}),{...e,comments:i}}case"COMMENT_UPDATED":{let n=t.payload,i=n._id,r=e.comments[i],a=function(e,t){let n={};for(let t of e)n[t._key]={...t};for(let e of t)n[e._key]={...n[e._key],...e};return Object.values(n)}(r?.reactions?.filter(e=>e?._optimisticState)||[],n.reactions||[]),o={...r,...n,reactions:a};return{...e,comments:{...e.comments,[i]:o}}}default:return e}}let JV={comments:{}},JM={events:["welcome","mutation","reconnect"],includeResult:!0,includeAllVersions:!0,visibility:"query",tag:"comments-store"},JL=['_type == "comment"',"target.document._ref == $documentId"],JF=`{ 1518 _createdAt, 1519 _id, 1520 authorId, 1521 contentSnapshot, 1522 context, 1523 lastEditedAt, 1524 message, 1525 parentCommentId, 1526 reactions, 1527 status, 1528 target, 1529 threadId 1530}`,JB=[],JY={open:JB,resolved:JB},JH=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w=(0,j.c)(88),{children:k,documentId:I,documentType:T,isCommentsOpen:E,onCommentsOpen:$,sortOrder:A,type:D,getCommentLink:z,onClearSelectedComment:P,selectedCommentId:R,isConnecting:N,onPathOpen:O,releaseId:V,mentionsDisabled:M}=e,L=Jh(),[F,B]=(0,_.useState)("open"),{client:H,createAddonDataset:U,isCreatingDataset:Z}=J2();w[0]!==I?(t=(0,tG.IM)(I),w[0]=I,w[1]=t):t=w[1];let q=t,W=Ye(q,T,"low",V),J=R8();w[2]!==T||w[3]!==J?(n=J.get(T),w[2]=T,w[3]=J,w[4]=n):n=w[4];let K=n,G=o5(),{name:X,dataset:Q,projectId:ee}=cY();e:{if(V){i=W.version;break e}i=W.draft||W.published}let et=i,en=et?._rev,[ei]=(0,_.useState)(JU);w[5]!==ei?(r=e=>{ei.delete(e)},w[5]=ei,w[6]=r):r=w[6];let er=r;w[7]!==H||w[8]!==I||w[9]!==er||w[10]!==V||w[11]!==ei?(a={documentId:I,releaseId:V,client:H,transactionsIdMap:ei,onLatestTransactionIdReceived:er},w[7]=H,w[8]=I,w[9]=er,w[10]=V,w[11]=ei,w[12]=a):a=w[12];let{dispatch:ea,data:eo,error:el,loading:es}=function(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(33),{client:m,documentId:h,onLatestTransactionIdReceived:f,transactionsIdMap:g,releaseId:y}=e,C=y?"target.documentVersionId==$documentVersionId":"!defined(target.documentVersionId)";p[0]!==C?(t=[...JL,C],p[0]=C,p[1]=t):t=p[1];let x=t.join(" && "),b=`*[${x}] ${JF} | order(_createdAt desc)`,[v,w]=(0,_.useReducer)(JO,JV),[k,S]=(0,_.useState)(null!==m),[I,T]=(0,_.useState)(null),E=(0,_.useRef)(!1);p[2]!==h?(n=(0,tG.IM)(h),p[2]=h,p[3]=n):n=p[3],p[4]!==y?(i=y?{documentVersionId:y}:{},p[4]=y,p[5]=i):i=p[5],p[6]!==n||p[7]!==i?(r={documentId:n,...i},p[6]=n,p[7]=i,p[8]=r):r=p[8];let $=r;p[9]!==m||p[10]!==$||p[11]!==b?(a=async()=>{if(!m)return void S(!1);try{let e=await m.fetch(b,$);w({type:"COMMENTS_SET",comments:e}),S(!1)}catch(e){T(e)}},p[9]=m,p[10]=$,p[11]=b,p[12]=a):a=p[12];let A=a;p[13]!==A||p[14]!==f||p[15]!==g?(o=async e=>{if("welcome"!==e.type||E.current||(S(!0),await A(),S(!1),E.current=!0),"reconnect"===e.type&&(S(!0),E.current=!1),"mutation"===e.type){if("appear"===e.transition){let t=e.result;t&&w({type:"COMMENT_RECEIVED",payload:t})}if("disappear"===e.transition&&w({type:"COMMENT_DELETED",id:e.documentId}),"update"===e.transition){let t=e.result,n=e.result?._id||"",i=e.transactionId,r=g.get(n),a=i===r;if(!a&&r)return;t&&(w({type:"COMMENT_UPDATED",payload:t}),a&&f(n))}}},p[13]=A,p[14]=f,p[15]=g,p[16]=o):o=p[16];let D=o;e:{let e;if(!m){let e;p[17]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)(),p[17]=e):e=p[17],l=e;break e}if(p[18]!==m.observable||p[19]!==x||p[20]!==$){let t;p[22]===Symbol.for("react.memo_cache_sentinel")?(t=e=>(T(e),(0,eP.of)(e)),p[22]=t):t=p[22],e=m.observable.listen(`*[${x}]`,$,JM).pipe((0,eY.W)(t)),p[18]=m.observable,p[19]=x,p[20]=$,p[21]=e}else e=p[21];l=e}let z=l;p[23]!==D||p[24]!==z?(s=()=>{let e=z.subscribe(D);return()=>{e?.unsubscribe()}},d=[D,z],p[23]=D,p[24]=z,p[25]=s,p[26]=d):(s=p[25],d=p[26]),(0,_.useEffect)(s,d),p[27]!==v.comments?(c=Object.values(v.comments),p[27]=v.comments,p[28]=c):c=p[28];let P=c;return p[29]!==P||p[30]!==I||p[31]!==k?(u={data:P,dispatch:w,error:I,loading:k},p[29]=P,p[30]=I,p[31]=k,p[32]=u):u=p[32],u}(a),ed=void 0===eo?JB:eo;w[13]!==ei?(o=(e,t)=>{ei.set(e,t)},w[13]=ei,w[14]=o):o=w[14];let ec=o;
1530w[15]!==L?(l=e=>"upsell"===L.mode&&"resolved"===e?null:B(e),w[15]=L,w[16]=l):l=w[16];let eu=l;w[17]!==et?(s={documentValue:et,permission:"read"},w[17]=et,w[18]=s):s=w[18];let ep=esc(s);if(w[19]!==G||w[20]!==ed||w[21]!==et||w[22]!==K||w[23]!==A||w[24]!==D){t:{let e;if(!G){d=JY;break t}let t=(0,Y.A)(ed,["_createdAt"],[A]);if("task"===D)e=Z0({comments:t,currentUser:G,documentValue:et,type:D});else{if(!K){d=JY;break t}e=Z0({comments:t,currentUser:G,documentValue:et,schemaType:K,type:D})}d={open:e.filter(JZ),resolved:e.filter(Jq)}}w[19]=G,w[20]=ed,w[21]=et,w[22]=K,w[23]=A,w[24]=D,w[25]=d}else d=w[25];let em=d;w[26]!==em.open?(c=e=>em.open.filter(t=>t.threadId===e).length,w[26]=em.open,w[27]=c):c=w[27];let eh=c;w[28]!==ed?(u=e=>ed?.find(t=>t._id===e),w[28]=ed,w[29]=u):u=w[29];let ef=u;w[30]!==ed||w[31]!==ea?(p=e=>{let t=ed?.find(t=>t._id===e._id)?._state?.type==="createError";ea({type:"COMMENT_ADDED",payload:{...e,_state:t?{type:"createRetrying"}:void 0}})},w[30]=ed,w[31]=ea,w[32]=p):p=w[32];let eg=p;w[33]!==ea?(m=(e,t)=>{ea({type:"COMMENT_UPDATED",payload:{_id:e,...t}})},w[33]=ea,w[34]=m):m=w[34];let ey=m;w[35]!==ea?(h=(e,t)=>{ea({type:"COMMENT_UPDATED",payload:{_id:e,_state:{error:t,type:"createError"}}})},w[35]=ea,w[36]=h):h=w[36];let eC=h;w[37]!==H||w[38]!==U||w[39]!==G||w[40]!==Q||w[41]!==en||w[42]!==T||w[43]!==ef||w[44]!==z||w[45]!==eh||w[46]!==eg||w[47]!==eC||w[48]!==ec||w[49]!==ey||w[50]!==ee||w[51]!==q||w[52]!==V||w[53]!==K||w[54]!==X?(f={client:H,currentUser:G,dataset:Q,documentId:q,documentVersionId:V,documentRevisionId:en,documentType:T,getComment:ef,getThreadLength:eh,projectId:ee,schemaType:K,workspace:X,createAddonDataset:U,onCreate:eg,onCreateError:eC,onUpdate:ey,onTransactionStart:ec,getCommentLink:z},w[37]=H,w[38]=U,w[39]=G,w[40]=Q,w[41]=en,w[42]=T,w[43]=ef,w[44]=z,w[45]=eh,w[46]=eg,w[47]=eC,w[48]=ec,w[49]=ey,w[50]=ee,w[51]=q,w[52]=V,w[53]=K,w[54]=X,w[55]=f):f=w[55];let{operation:ex}=function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(46),{client:c,currentUser:u,dataset:p,documentId:m,documentRevisionId:h,documentType:f,documentVersionId:g,getComment:y,getThreadLength:C,onCreate:x,onCreateError:b,onRemove:v,onTransactionStart:w,onUpdate:k,projectId:I,createAddonDataset:T,workspace:E,getCommentLink:$}=e,A=(0,_.useContext)(S.io),D=(0,nU.ks)(Jp),z=_g().tools;if(d[0]!==D||d[1]!==z){let e;d[3]!==D?(e=e=>
1530e.name===D,d[3]=D,d[4]=e):e=d[4],t=z.find(e),d[0]=D,d[1]=z,d[2]=t}else t=d[2];let P=t;d[5]!==m||d[6]!==f||d[7]!==g||d[8]!==$?(n={documentId:m,documentType:f,getCommentLink:$,documentVersionId:g},d[5]=m,d[6]=f,d[7]=g,d[8]=$,d[9]=n):n=d[9];let{getNotificationValue:R}=function(e){let t,n,i,r,a,o,l=(0,j.c)(20);l[0]!==e?(t=e||{},l[0]=e,l[1]=t):t=l[1];let{documentId:s,documentType:d,getCommentLink:c,documentVersionId:u}=t,p=R8();l[2]!==d||l[3]!==p?(n=p.get(d),l[2]=d,l[3]=p,l[4]=n):n=l[4];let m=n,{title:h,name:f}=cY(),g=cc();e:{let e;if(!s||!m){let e;l[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)(null),l[5]=e):e=l[5],i=e;break e}l[6]!==s||l[7]!==g||l[8]!==u||l[9]!==m?(e=P9(g,m,s,u?[u,"drafts"]:["drafts"]),l[6]=s,l[7]=g,l[8]=u,l[9]=m,l[10]=e):e=l[10],i=e}let y=(0,tF.J)(i);l[11]!==y?(r=y||{},l[11]=y,l[12]=r):r=l[12];let{snapshot:C,original:x}=r,b=C?.title||x?.title||"Sanity document";l[13]!==b||l[14]!==c||l[15]!==f||l[16]!==h?(a=e=>{let{commentId:t}=e;return{documentTitle:b,url:c?.(t),workspaceTitle:h,workspaceName:f}},l[13]=b,l[14]=c,l[15]=f,l[16]=h,l[17]=a):a=l[17];let v=a;return l[18]!==v?(o={getNotificationValue:v},l[18]=v,l[19]=o):o=l[19],o}(n);d[10]!==P||d[11]!==c||d[12]!==T||d[13]!==u||d[14]!==p||d[15]!==m||d[16]!==h||d[17]!==f||d[18]!==g||d[19]!==A||d[20]!==R||d[21]!==C||d[22]!==x||d[23]!==b||d[24]!==I||d[25]!==E?(i=async e=>{u?.id&&await Ja({activeTool:P,client:c,comment:e,currentUser:u,dataset:p,documentId:m,documentRevisionId:h,documentType:f,documentVersionId:g,getIntent:A,getNotificationValue:R,getThreadLength:C,onCreate:x,onCreateError:b,projectId:I,createAddonDataset:T,workspace:E})},d[10]=P,d[11]=c,d[12]=T,d[13]=u,d[14]=p,d[15]=m,d[16]=h,d[17]=f,d[18]=g,d[19]=A,d[20]=R,d[21]=C,d[22]=x,d[23]=b,d[24]=I,d[25]=E,d[26]=i):i=d[26];let N=i;d[27]!==c||d[28]!==v?(r=async e=>{c&&await Jl({client:c,id:e,onRemove:v})},d[27]=c,d[28]=v,d[29]=r):r=d[29];let O=r;d[30]!==c||d[31]!==w||d[32]!==k?(a=async(e,t,n)=>{if(!c)return;let{throttled:i}=n||{},r=(0,ii.A)();w(e,r),await Ju({client:c,comment:t,throttled:i,id:e,onUpdate:k,transactionId:r})},d[30]=c,d[31]=w,d[32]=k,d[33]=a):a=d[33];let V=a;d[34]!==c||d[35]!==u||d[36]!==y||d[37]!==k?(o=async(e,t)=>{c&&u?.id&&await Jo({client:c,currentUser:u,id:e,reaction:t,getComment:y,onUpdate:k})},d[34]=c,d[35]=u,d[36]=y,d[37]=k,d[38]=o):o=d[38];let M=o;d[39]!==N||d[40]!==M||d[41]!==O||d[42]!==V?(l={create:N,react:M,remove:O,update:V},d[39]=N,d[40]=M,d[41]=O,d[42]=V,d[43]=l):l=d[43];let L=l;return d[44]!==L?(s={operation:L},d[44]=L,d[45]=s):s=d[45],s}(f),eb=es||Z||N||!1;w[56]!==el||w[57]!==eb||w[58]!==em?(g={data:em,error:el,loading:eb},w[56]=el,w[57]=eb,w[58]=em,w[59]=g):g=w[59],w[60]!==ex.create||w[61]!==ex.react||w[62]!==ex.remove||w[63]!==ex.update?(y={create:ex.create,react:ex.react,remove:ex.remove,update:ex.update},w[60]=ex.create,w[61]=ex.react,w[62]=ex.remove,w[63]=ex.update,w[64]=y):y=w[64],w[65]!==ep||w[66]!==M?(C={...ep,disabled:M},w[65]=ep,w[66]=M,w[67]=C):C=w[67],w[68]!==I||w[69]!==T||w[70]!==ef||w[71]!==z||w[72]!==eu||w[73]!==E||w[74]!==N||w[75]!==Z||w[76]!==P||w[77]!==$||w[78]!==O||w[79]!==R||w[80]!==F||w[81]!==g||w[82]!==y||w[83]!==C?(x={documentId:I,documentType:T,isCreatingDataset:Z,status:F,setStatus:eu,getComment:ef,getCommentLink:z,onClearSelectedComment:P,selectedCommentId:R,isCommentsOpen:E,onCommentsOpen:$,isConnecting:N,onPathOpen:O,comments:g,operation:y,mentionOptions:C},w[68]=I,w[69]=T,w[70]=ef,w[71]=z,w[72]=eu,w[73]=E,w[74]=N,w[75]=Z,w[76]=P,w[77]=$,w[78]=O,w[79]=R,w[80]=F,w[81]=g,w[82]=y,w[83]=C,w[84]=x):x=w[84];let ev=x;return w[85]!==k||w[86]!==ev?(b=(0,v.jsx)(S.eP.Provider,{value:ev,children:k}),w[85]=k,w[86]=ev,w[87]=b):b=w[87],b});function JU(){return new Map}function JZ(e){return"open"===e.parentComment.status}function Jq(e){return"resolved"===e.parentComment.status}let JW=(0,_.memo)(function(e){let t,n=(0,j.c)(3),{children:i,documentId:r,documentType:a}=e,o=function(e,t){let n,i=(0,j.c)(3),{enabled:r,isLoading:a,error:o}=EY(EL),{enabled:l}=_g().document.comments,s=l({documentType:t,documentId:(0,tG.IM)(e)});e:{let e;if(a||!s||o){let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e={enabled:!1,mode:null},i[0]=e):e=i[0],n=e;break e}let t=r?"default":"upsell";i[1]!==t?(e={enabled:!0,mode:t},i[1]=t,i[2]=e):e=i[2],n=e}return n}(r,a);return n[0]!==i||n[1]!==o?(t=(0,v.jsx)(S.pn.Provider,{value:o,children:i}),n[0]=i,n[1]=o,n[2]=t):t=n[2],t}),JJ=(0,_.memo)(function(e){let t,n=(0,j.c)(3),{children:i,getIntent:r}=e;return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(S.io.Provider,{value:r,children:i}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t}),JK="sanityStudio:comments:inspector:onboarding:dismissed:v1";function JG(e){let t,n,i,r,a=(0,j.c)(7),{children:o}=e;a[0]===Symbol.for("react.memo_cache_sentinel")?(t=(()=>{try{let e=window.localStorage.getItem(JK);return!!e&&JSON.parse(e)}catch{return!1}})(),a[0]=t):t=a[0];let[l,s]=(0,_.useState)(t);a[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{s(!0),(e=>{try{window.localStorage.setItem(JK,JSON.stringify(e))}catch{}})(!0)},a[1]=n):n=a[1];let d=n;a[2]!==l?(i={setDismissed:d,isDismissed:l},a[2]=l,a[3]=i):i=a[3];let c=i;return a[4]!==o||a[5]!==c?(r=(0,v.jsx)(S.lG.Provider,{value:c,children:o}),a[4]=o,a[5]=c,a[6]=r):r=a[6],r}let JX=(0,_.memo)(function(e){let t,n,i,r=(0,j.c)(8),{children:a}=e,[o,l]=(0,_.useState)(null);r[0]!==o?(t=e=>{(0,D.A)(o,e)||l(e)},r[0]=o,r[1]=t):t=r[1];let s=t;r[2]!==s||r[3]!==o?(n={selectedPath:o,setSelectedPath:s},r[2]=s,r[3]=o,r[4]=n):n=r[4];let d=n;return r[5]!==a||r[6]!==d?(i=(0,v.jsx)(S.AR.Provider,{value:d,children:a}),r[5]=a,r[6]=d,r[7]=i):i=r[7],i});function JQ(e){let t,n,i,r,a=(0,j.c)(9);a[0]===Symbol.for("react.memo_cache_sentinel")?(t={dataUri:"/journey/comments",feature:"comments"},a[0]=t):t=a[0];let o=$O(t),l=e.children;return a[1]!==o?(n=$N(o),a[1]=o,a[2]=n):n=a[2],a[3]!==n?(i=(0,v.jsx)($7,{...n}),a[3]=n,a[4]=i):i=a[4],a[5]!==o||a[6]!==e.children||a[7]!==i?(r=(0,v.jsxs)(S.F8.Provider,{value:o,children:[l,i]}),a[5]=o,a[6]=e.children,a[7]=i,a[8]=r):r=a[8],r}function J1(e){let t,n,i=(0,j.c)(6);if(!Jh().enabled){let t;return i[0]!==e?(t=e.renderDefault(e),i[0]=e,i[1]=t):t=i[1],t}return i[2]!==e?(t=e.renderDefault(e),i[2]=e,i[3]=t):t=i[3],i[4]!==t?(n=(0,v.jsx)(JX,{children:(0,v.jsx)(ZX,{children:t})}),i[4]=t,i[5]=n):n=i[5],n}function J2(){let e=(0,_.useContext)(S.iD);if(!e)throw Error("useAddonDataset: missing context value");return e}let J5=(0,eI.I4)(I.BJ).withConfig({displayName:"ContentStack",componentId:"sc-1pykjeg-0"})`width:320px;`;function J0(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(69),{count:y,currentUser:C,fieldTitle:x,isCreatingDataset:b,mentionOptions:w,onChange:k,onClick:S,onClose:T,onCommentAdd:E,onDiscard:$,onInputKeyDown:A,open:D,value:z}=e,{t:P}=as(ZG),{error:R}=J2(),N=(0,_.useRef)(null),[O,V]=(0,_.useState)(null),M=(0,_.useRef)(null),L=y>0;g[0]!==O||g[1]!==T||g[2]!==D?(t=()=>{D&&(T(),O?.focus())},g[0]=O,g[1]=T,g[2]=D,g[3]=t):t=g[3];let F=t;g[4]!==F||g[5]!==E?(n=()=>{E(),F()},g[4]=F,g[5]=E,g[6]=n):n=g[6];let B=n;g[7]!==z?(i=Z1(z),g[7]=z,g[8]=i):i=g[8];let Y=i;g[9]!==F||g[10]!==Y?(r=()=>{Y?M.current?.discardDialogController.open():F()},g[9]=F,g[10]=Y,g[11]=r):r=g[11];let H=r;g[12]!==A?(a=e=>{e.isDefaultPrevented()||A&&A(e)},g[12]=A,g[13]=a):a=g[13];let U=a;g[14]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{M.current?.discardDialogController.close()},g[14]=o):o=g[14];let Z=o;g[15]!==F||g[16]!==$?(l=()=>
1530{M.current?.discardDialogController.close(),F(),$()},g[15]=F,g[16]=$,g[17]=l):l=g[17];let q=l;g[18]!==H?(s=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),H())},g[18]=H,g[19]=s):s=g[19];let W=s;if(g[20]===Symbol.for("react.memo_cache_sentinel")?(d=()=>[N.current],g[20]=d):d=g[20],(0,I.PR)(!D&&H,d),!L){let e,t,n,i,r,a,o,l,s;g[21]!==x?(e={field:x},g[21]=x,g[22]=e):e=g[22],g[23]!==P||g[24]!==e?(t=(0,v.jsx)(aE,{t:P,i18nKey:"compose.add-comment-input-placeholder",values:e}),g[23]=P,g[24]=e,g[25]=t):t=g[25];let d=t;g[26]!==C||g[27]!==q||g[28]!==U||g[29]!==B||g[30]!==b||g[31]!==w||g[32]!==k||g[33]!==d||g[34]!==z?(n=(0,v.jsx)(J5,{padding:2,space:4,children:(0,v.jsx)(qU,{currentUser:C,focusLock:!0,focusOnMount:!0,mentionOptions:w,onChange:k,onDiscardCancel:Z,onDiscardConfirm:q,onKeyDown:U,onSubmit:B,placeholder:d,readOnly:b,ref:M,value:z})}),g[26]=C,g[27]=q,g[28]=U,g[29]=B,g[30]=b,g[31]=w,g[32]=k,g[33]=d,g[34]=z,g[35]=n):n=g[35];let c=n;g[36]===Symbol.for("react.memo_cache_sentinel")?(i=["bottom-end"],g[36]=i):i=g[36],g[37]!==P?(r=P("field-button.aria-label-add"),g[37]=P,g[38]=r):r=g[38];let u=b||!!R;return g[39]!==P?(a=P("field-button.title"),g[39]=P,g[40]=a):a=g[40],g[41]!==a?(o={content:a,placement:"top"},g[41]=a,g[42]=o):o=g[42],g[43]!==S||g[44]!==D||g[45]!==r||g[46]!==u||g[47]!==o?(l=(0,v.jsx)("div",{children:(0,v.jsx)(tL.$n,{"aria-label":r,disabled:u,icon:eT.I7I,mode:"bleed",onClick:S,ref:V,selected:D,tooltipProps:o})}),g[43]=S,g[44]=D,g[45]=r,g[46]=u,g[47]=o,g[48]=l):l=g[48],g[49]!==c||g[50]!==W||g[51]!==D||g[52]!==l?(s=(0,v.jsx)(tL.AM,{constrainSize:!0,content:c,fallbackPlacements:i,open:D,placement:"right-start",portal:!0,ref:N,onKeyDown:W,children:l}),g[49]=c,g[50]=W,g[51]=D,g[52]=l,g[53]=s):s=g[53],s}g[54]!==y||g[55]!==P?(c=P("field-button.content",{count:y}),g[54]=y,g[55]=P,g[56]=c):c=g[56],g[57]!==P?(u=P("field-button.aria-label-open"),g[57]=P,g[58]=u):u=g[58],g[59]===Symbol.for("react.memo_cache_sentinel")?(p=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.Twg,{})}),g[59]=p):p=g[59];let J=y>9?"9+":y;return g[60]!==J?(m=(0,v.jsxs)(I.so,{align:"center",gap:2,children:[p,(0,v.jsx)(I.EY,{size:0,children:J})]}),g[60]=J,g[61]=m):m=g[61],g[62]!==S||g[63]!==u||g[64]!==m?(h=(0,v.jsx)(I.$n,{"aria-label":u,mode:"bleed",onClick:S,padding:2,space:2,children:m}),g[62]=S,g[63]=u,g[64]=m,g[65]=h):h=g[65],g[66]!==h||g[67]!==c?(f=(0,v.jsx)(tL.m_,{portal:!0,placement:"top",content:c,children:h}),g[66]=h,g[67]=c,g[68]=f):f=g[68],f}let J7=new Map,J3=[],J8={initial:{opacity:0}
1530,animate:{opacity:1},exit:{opacity:0}},J4=(0,eI.I4)(ir.P.div).withConfig({displayName:"HighlightDiv",componentId:"sc-xeguza-0"})(({theme:e})=>{let{radius:t,space:n,color:i}=e.sanity,r=ez.OZ[qJ][i.dark?900:50].hex;return(0,eI.AH)` 1531 mix-blend-mode: ${i.dark?"screen":"multiply"}; 1532 border-radius: ${t[3]}px; 1533 top: -${n[2]}px; 1534 left: -${n[2]}px; 1535 bottom: -${n[2]}px; 1536 right: -${n[2]}px; 1537 pointer-events: none; 1538 position: absolute; 1539 z-index: 1; 1540 width: calc(100% + ${2*n[2]}px); 1541 height: calc(100% + ${2*n[2]}px); 1542 background-color: ${r}; 1543 `}),J6=(0,eI.I4)(I.BJ).withConfig({displayName:"FieldStack",componentId:"sc-xeguza-1"})`position:relative;`;function J9(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(85),{mode:k}=e,T=o5(),{element:E}=(0,I.$w)(),$=(0,_.useRef)(null),{comments:A,isCommentsOpen:D,isCreatingDataset:z,mentionOptions:P,onCommentsOpen:R,operation:N,setStatus:O,status:V}=Jm(),{upsellData:M,handleOpenDialog:L}=JT(),{selectedPath:F,setSelectedPath:B}=J_(),{authoringPath:Y,setAuthoringPath:H}=function(){let e=(0,_.useContext)(S.ki);if(!e)throw Error("useCommentsAuthoringPath: missing context value");return e}();b[0]!==E?(t={boundaryElement:E},b[0]=E,b[1]=t):t=b[1];let{scrollToGroup:U}=Jw(t);b[2]!==e.schemaType?(n=v1(e.schemaType),b[2]=e.schemaType,b[3]=n):n=b[3];let Z=n;b[4]!==e.path?(i=w.dI(e.path),b[4]=e.path,b[5]=i):i=b[5];let q=i;b[6]!==q?(r=J7.get(q)||null,b[6]=q,b[7]=r):r=b[7];let W=r,[J,K]=(0,_.useState)(W),G=Y===q;b[8]!==D||b[9]!==F?.fieldPath||b[10]!==F?.origin||b[11]!==q?(a=()=>!!D&&F?.origin!=="form"&&F?.origin!=="url"&&F?.fieldPath===q,b[8]=D,b[9]=F?.fieldPath,b[10]=F?.origin,b[11]=q,b[12]=a):a=b[12];let X=a();if(b[13]!==A.data.open||b[14]!==F?.threadId){let e;b[16]!==F?.threadId?(e=e=>e.threadId===F?.threadId,b[16]=F?.threadId,b[17]=e):e=b[17],o=A.data.open.filter(e).some(Kt),b[13]=A.data.open,b[14]=F?.threadId,b[15]=o}else o=b[15];let Q=o;if(b[18]!==A.data.open||b[19]!==q){let e;b[21]!==q?(e=e=>e.fieldPath===q?e.commentsCount:0,b[21]=q,b[22]=e):e=b[22],l=A.data.open.map(e).reduce(Ke,0),b[18]=A.data.open,b[19]=q,b[20]=l}else l=b[20];let ee=l||0,et=ee>0;b[23]!==q?(s=()=>{K(null),J7.delete(q)},b[23]=q,b[24]=s):s=b[24];let en=s;b[25]!==A.data.open||b[26]!==L||b[27]!==et||b[28]!==G||b[29]!==k||b[30]!==R||b[31]!==e.path||b[32]!==U||b[33]!==H||b[34]!==B||b[35]!==O||b[36]!==V||b[37]!==q||b[38]!==M?(d=()=>{if(et){"resolved"===V&&O("open"),H(null),R?.();let t=A.data.open.find(t=>t.fieldPath===w.dI(e.path))?.threadId;t&&(B({threadId:t,origin:"form",fieldPath:w.dI(e.path)}),U(t));return}"upsell"===k?M?L("field_action"):R?.():H(G?null:q)},b[25]=A.data.open,b[26]=L,b[27]=et,b[28]=G,b[29]=k,b[30]=R,b[31]=e.path,b[32]=U,b[33]=H,b[34]=B,b[35]=O,b[36]=V,b[37]=q,b[38]=M,b[39]=d):d=b[39];let ei=d;b[40]!==R||b[41]!==N||b[42]!==e.path||b[43]!==en||b[44]!==U||b[45]!==B||b[46]!==O||b[47]!==V||b[48]!==J?(c=()=>{if(J){let t=(0,ii.A)(),n={type:"field",fieldPath:w.dI(e.path),message:J,parentCommentId:void 0,status:"open",threadId:t,reactions:J3};N.create(n),R?.(),"resolved"===V&&O("open"),en(),B({threadId:t,origin:"form",fieldPath:w.dI(e.path)}),U(t)}},b[40]=R,b[41]=N,b[42]=e.path,b[43]=en,b[44]=U,b[45]=B,b[46]=O,b[47]=V,b[48]=J,b[49]=c):c=b[49];let er=c;b[50]!==H?(u=()=>H(null),b[50]=H,b[51]=u):u=b[51];let ea=u;b[52]!==q?(p=e=>{K(e),J7.set(q,e)},b[52]=q,b[53]=p):p=b[53];let eo=p;b[54]!==ee||b[55]!==T||b[56]!==Z||b[57]!==ei||b[58]!==ea||b[59]!==er||b[60]!==eo||b[61]!==z||b[62]!==G||b[63]!==P||b[64]!==en||b[65]!==J?(m=T&&(0,v.jsx)(J0,{count:Number(ee),currentUser:T,fieldTitle:Z,isCreatingDataset:z,mentionOptions:P,onChange:eo,onClick:ei,onClose:ea,onCommentAdd:er,onDiscard:en,open:G,value:J}),b[54]=ee,b[55]=T,b[56]=Z,b[57]=ei,b[58]=ea,b[59]=er,b[60]=eo,b[61]=z,b[62]=G,b[63]=P,b[64]=en,b[65]=J,b[66]=m):m=b[66],b[67]!==et||b[68]!==G||b[69]!==m?(h={button:m,hasComments:et,isAddingComment:G},b[67]=et,b[68]=G,b[69]=m,b[70]=h):h=b[70];let el=h;return b[71]!==e.path?(f={"data-comments-field-id":Jb(w.dI(e.path))},b[71]=e.path,b[72]=f):f=b[72],b[73]!==el||b[74]!==e?(g=e.renderDefault({...e,__internal_comments:el}),b[73]=el,b[74]=e,b[75]=g):g=b[75],b[76]!==Q||b[77]!==X?(y=X&&!Q&&(0,v.jsx)(J4,{animate:"animate",exit:"exit",initial:"initial",variants:J8}),b[76]=Q,b[77]=X,b[78]=y):y=b[78],b[79]!==y?(C=(0,v.jsx)(ia.N,{children:y}),b[79]=y,b[80]=C):C=b[80],b[81]!==f||b[82]!==g||b[83]!==C?(x=(0,v.jsxs)(J6,{...f,ref:$,children:[g,C]}),b[81]=f,b[82]=g,b[83]=C,b[84]=x):x=b[84],x}function Ke(e,t){return e+t}function Kt(e){return Z2(e.parentComment)}let Kn=(0,eI.I4)(ir.P.create(tL.AM)).withConfig({displayName:"MotionPopover",componentId:"sc-wmroq-0"})`user-select:none;`,Ki=["bottom","top"],Kr={hidden:{opacity:0,y:-4},visible:{opacity:1,y:0}};function Ka(e){let t,n,i,r,a,o=(0,j.c)(13),{disabled:l,onClick:s,onClickOutside:d,referenceElement:c}=e,u=(0,_.useRef)(null),{t:p}=as(ZG);o[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>[u.current],o[0]=t):t=o[0],(0,I.PR)(d,t),o[1]!==p?(n=p("inline-add-comment-button.disabled-overlap-title"),o[1]=p,o[2]=n):n=o[2];let m=n;o[3]!==p?(i=p("inline-add-comment-button.title"),o[3]=p,o[4]=i):i=o[4];let h=l?m:i,f=l?Z6:eT.I7I;o[5]!==l||o[6]!==s||o[7]!==f||o[8]!==h?(r=(0,v.jsx)(tL.$n,{"data-testid":"inline-comment-button",disabled:l,icon:f,mode:"bleed",onClick:s,ref:u,text:h}),o[5]=l,o[6]=s,o[7]=f,o[8]=h,o[9]=r):r=o[9];let g=r;return o[10]!==g||o[11]!==c?(a=(0,v.jsx)(Kn,{animate:"visible",content:g,contentEditable:!1,fallbackPlacements:Ki,initial:"hidden",open:!0,padding:1,placement:"bottom",portal:!0,referenceElement:c,variants:Kr}),o[10]=g,o[11]=c,o[12]=a):a=o[12],a}let Ko=["bottom","top"],Kl=ir.P.create(tL.AM),Ks=(0,eI.I4)(I.BJ).withConfig({displayName:"RootStack",componentId:"sc-w2wgl6-0"})`width:250px;`,Kd={hidden:{opacity:0}
1543,visible:{opacity:1}};function Kc(e){let t,n,i,r,a,o,l=(0,j.c)(17),{currentUser:s,mentionOptions:d,onChange:c,onClickOutside:u,onDiscardConfirm:p,onSubmit:m,referenceElement:h,value:f}=e,g=(0,_.useRef)(null),y=(0,_.useRef)(null);l[0]!==p?(t=()=>{g.current?.discardDialogController.close(),p()},l[0]=p,l[1]=t):t=l[1];let C=t;l[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{g.current?.discardDialogController.close()},l[2]=n):n=l[2];let x=n;l[3]!==u||l[4]!==f?(i=()=>{Z1(f)?g.current?.discardDialogController.open():u()},l[3]=u,l[4]=f,l[5]=i):i=l[5],l[6]===Symbol.for("react.memo_cache_sentinel")?(r=()=>[y.current],l[6]=r):r=l[6],(0,I.PR)(i,r),l[7]!==s||l[8]!==C||l[9]!==d||l[10]!==c||l[11]!==m||l[12]!==f?(a=(0,v.jsx)(Ks,{padding:2,ref:y,children:(0,v.jsx)(qU,{currentUser:s,focusLock:!0,focusOnMount:!0,mentionOptions:d,onChange:c,onDiscardCancel:x,onDiscardConfirm:C,onSubmit:m,ref:g,value:f})}),l[7]=s,l[8]=C,l[9]=d,l[10]=c,l[11]=m,l[12]=f,l[13]=a):a=l[13];let b=a;return l[14]!==b||l[15]!==h?(o=(0,v.jsx)(Kl,{animate:"visible",content:b,"data-ui":"InlineCommentInputPopover",fallbackPlacements:Ko,initial:"hidden",open:!0,placement:"bottom",portal:!0,referenceElement:h,variants:Kd}),l[14]=b,l[15]=h,l[16]=o):o=l[16],o}let Ku=[];function Kp(e){let t,n=(0,j.c)(5),{enabled:i,mode:r}=Jh(),a=fw(),o="sanity.assist.instruction.prompt"===e.schemaType.name,l=!!a.__internal_comments;if(!i||o||!l){let t;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==r||n[3]!==e?(t=(0,v.jsx)(Km,{...e,mode:r}),n[2]=r,n[3]=e,n[4]=t):t=n[4],t}let Km=(0,_.memo)(function(e){var t;let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,k,S,T,E,$,A,z,P,R,N,O,V,M,L,F,B=(0,j.c)(98),{mode:Y}=e,H=o5(),Z=(0,I.WP)(),{comments:q,getComment:W,mentionOptions:J,onCommentsOpen:K,operation:G,setStatus:X,status:Q}=Jm(),{error:ee}=J2(),{setSelectedPath:et,selectedPath:en}=J_(),{scrollToComment:ei,scrollToGroup:er}=Jw(),{handleOpenDialog:ea}=JT(),[eo,el]=(0,_.useState)(!1),es=(0,_.useRef)(null),[ed,ec]=(0,_.useState)(null),[eu,ep]=(0,_.useState)(null),[em,eh]=(0,_.useState)(null),[ef,eg]=(0,_.useState)(null),[ey,eC]=(0,_.useState)(null),[ex,eb]=(0,_.useState)(null),[ev,ej]=(0,_.useState)(!1),[ew,e_]=(0,_.useState)(null),[ek,eS]=(0,_.useState)(!1),[eI,eT]=(0,_.useState)(Ku);B[0]!==e.path?(r=w.dI(e.path),B[0]=e.path,B[1]=r):r=B[1];let eE=r,[e$,eA]=(0,_.useState)(null);B[2]===Symbol.for("react.memo_cache_sentinel")?(a=()=>es.current?n1.Og.getFragment(es.current):Ku,B[2]=a):a=B[2];let ez=a;B[3]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{let e,t;eC((e=window.getSelection(),t=null,e&&e.rangeCount>0&&(t=e.getRangeAt(0)),t?.getBoundingClientRect()||null))},B[3]=o):o=B[3];let eP=o;B[4]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{eg(null),eC(null),eh(null),ep(null),ej(!1),ec(null),eA(null)},B[4]=l):l=B[4];let eR=l;B[5]!==ef||B[6]!==ea||B[7]!==Y?(s=()=>{"upsell"===Y?ea("pte"):(eA(ez()||null),eh(ef))},B[5]=ef,B[6]=ea,B[7]=Y,B[8]=s):s=B[8];let eN=s;B[9]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{eR()},B[9]=d):d=B[9];let eO=d;if(B[10]!==q.data.open||B[11]!==eE){let e;B[13]!==eE?(e=e=>e.fieldPath===eE,B[13]=eE,B[14]=e):e=B[14],c=q.data.open.filter(e).filter(Kf).map(Kg),B[10]=q.data.open,B[11]=eE,B[12]=c}else c=B[12];let eV=c;B[15]!==e$||B[16]!==em||B[17]!==eu||B[18]!==K||B[19]!==G||B[20]!==er||B[21]!==et||B[22]!==X||B[23]!==Q||B[24]!==eE?(u=()=>{if(!em||!es.current)return;let e=n1.Og.getValue(es.current);if(!e)return;let t=function(e){let{fragment:t,value:n,selection:i}=e;if(!i)throw Error("Selection is required");let r=i.backward?{anchor:i.focus,focus:i.anchor}:i;return{type:"text",value:t.map(e=>{let t=n.find(t=>t._key===e._key);if(!(0,eD.L4)(t))return{_key:e._key,text:""};let i=(0,eD.tA)(r.anchor.path[0])&&r.anchor.path[0]._key,a=(0,eD.tA)(r.focus.path[0])&&r.focus.path[0]._key,o=(0,nQ.bo)([e]),l=(0,eD.L4)(e)?e.children[0]:void 0,s=(0,eD.L4)(e)?e.children[e.children.length-1]:void 0,d="",c=-1;if(i===t._key)for(let e of t.children){if(c++,e._key===l?._key){d+=(0,eD.bn)(e)&&e.text.slice(0,Math.max(0,r.anchor.offset))||"";break}d+=e.text}let u="";if(a===t._key)for(let e of t.children.slice(c).reverse()){if(e._key===s?._key){u=((0,eD.bn)(e)&&e.text.slice(r.focus.offset,e.text.length)||"")+u;break}u=e.text+u}return{_key:t._key,text:`${d}${W4[0]}${o}${W4[1]}${u}`}})}}({fragment:e$||Ku,selection:em,value:e}),n=(0,ii.A)();G.create({type:"field",contentSnapshot:e$,fieldPath:eE,message:eu,parentCommentId:void 0,reactions:Ku,selection:t,status:"open",threadId:n}),K?.(),"resolved"===Q&&X("open"),et({fieldPath:eE,threadId:n,origin:"form"}),er(n),eR()},B[15]=e$,B[16]=em,B[17]=eu,B[18]=K,B[19]=G,B[20]=er,B[21]=et,B[22]=X,B[23]=Q,B[24]=eE,B[25]=u):u=B[25];let eM=u;B[26]!==W||B[27]!==K||B[28]!==ei||B[29]!==et?(p=e=>{let t=W(e);t&&(et({fieldPath:t.target.path?.field||"",threadId:t.threadId,origin:"form"}),K?.(),ei(t._id))},B[26]=W,B[27]=K,B[28]=ei,B[29]=et,B[30]=p):p=B[30];let eL=p,eF=(0,_.useRef)(!1);B[31]!==eo?(m=e=>{let t=e?.anchor.offset!==e?.focus.offset;if(!ez()?.every(eD.L4)||!t)return void ej(!1);if(eF.current){eF.current=!1;return}eo||eP(),eg(e),ej(!0)},B[31]=eo,B[32]=m):m=B[32];let eB=(t=m,(i=(0,j.c)(2))[0]!==t?(n=(0,U.A)(t,200),i[0]=t,i[1]=n):n=i[1],n);B[33]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{(0,_.startTransition)(()=>el(!0))},B[33]=h):h=B[33];let eY=h;B[34]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{(0,_.startTransition)(()=>el(!1)),eP()},B[34]=f):f=B[34];let eH=f;B[35]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{let{rangeDecoration:t,newSelection:n}=e,i=t.payload?.commentId;eT(e=>e.map(e=>e.payload?.commentId===i?{...t,selection:n,payload:{...t.payload,dirty:!0}}:e))},B[35]=g):g=B[35];let eU=g;B[36]!==eI||B[37]!==W||B[38]!==G?(y=()=>{let e=eI.filter(Ky);
15430!==e.length&&(e.forEach(e=>{let t=W(e.payload?.commentId||"");if(!t||!es.current)return;let[n]=Je({comments:[t],value:n1.Og.getValue(es.current)||Ku}),i=n?.range?[n.range]:Ku,r=n?[...t.target.path?.selection?.value.filter(e=>e._key!==i[0]?._key).concat(i).flat().sort(KC)||Ku]:Ku,a={target:{...t.target,path:{...t.target?.path,field:t.target.path?.field||"",selection:{type:"text",value:r}}}};(0,D.A)(t.target,a.target)||G.update(t._id,a)}),eT(t=>t.map(t=>e.find(e=>e.payload?.commentId===t.payload?.commentId)?.payload?.dirty?{...t,payload:{...t.payload,dirty:!1}}:t).filter(Kx)))},B[36]=eI,B[37]=W,B[38]=G,B[39]=y):y=B[39];let eZ=y;B[40]!==ex||B[41]!==eL||B[42]!==en?.threadId?(C=e=>{if(!es.current)return Ku;let t=n1.Og.getValue(es.current)||Ku;return function(e){let{comments:t,currentHoveredCommentId:n,onDecorationClick:i,onDecorationHoverEnd:r,onDecorationHoverStart:a,onDecorationMoved:o,selectedThreadId:l,value:s}=e;return Je({comments:t,value:s}).map(({selection:e,comment:t,range:s})=>({component:({children:e})=>(0,v.jsx)(Jt,{commentId:t._id,currentHoveredCommentId:n,onClick:i,onHoverEnd:r,onHoverStart:a,selectedThreadId:l,threadId:t.threadId,children:e}),onMoved:o,selection:e,payload:{commentId:t._id,range:s}}))}({comments:e,currentHoveredCommentId:ex,onDecorationClick:eL,onDecorationHoverEnd:eb,onDecorationHoverStart:eb,onDecorationMoved:eU,selectedThreadId:en?.threadId||null,value:t})},B[40]=ex,B[41]=eL,B[42]=en?.threadId,B[43]=C):C=B[43];let eq=C;B[44]!==eB||B[45]!==eZ?(x=e=>{"mutation"===e.type&&eZ(),"blur"===e.type&&(eF.current=!0),"selection"===e.type&&eB(e.selection)},B[44]=eB,B[45]=eZ,B[46]=x):x=B[46];let eW=x;e:{let e,t;if(!em){b=null;break e}B[47]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let{children:t}=e;return(0,v.jsx)(qQ,{isAuthoring:!0,ref:ec,children:t})},B[47]=e):e=B[47],B[48]!==em?(t={component:e,selection:em},B[48]=em,B[49]=t):t=B[49],b=t}let eJ=b,eK=e?.rangeDecorations||Ku;B[50]!==eI||B[51]!==eJ||B[52]!==eK?(k=[...eK,...eJ?[eJ]:Ku,...eI],B[50]=eI,B[51]=eJ,B[52]=eK,B[53]=k):k=B[53];let eG=k,[eX,eQ]=(0,_.useState)(!1);B[54]!==eI||B[55]!==ef?(S=()=>{(0,_.startTransition)(()=>eQ(()=>!!ef&&0!==eI.length&&eI.some(e=>{if(!es.current)return!1;let t=n1.Og.isSelectionsOverlapping(es.current,ef,e.selection),n=n1.Og.isSelectionsOverlapping(es.current,e.
1543selection,ef);return t||n})))},T=[eI,ef],B[54]=eI,B[55]=ef,B[56]=S,B[57]=T):(S=B[56],T=B[57]),(0,_.useEffect)(S,T);let e1=ek?document.body:Z.elements?.documentScrollElement||document.body,e2=ek?Z.elements?.documentScrollElement||document.body:ew,e5=!em||!ed;B[58]!==e1||B[59]!==e5?(E={scrollElement:e1,disabled:e5,selector:'[data-inline-comment-state="authoring"]'},B[58]=e1,B[59]=e5,B[60]=E):E=B[60];let e0=function(e){let t,n,i=(0,j.c)(6),{scrollElement:r,disabled:a,selector:o}=e;i[0]!==a||i[1]!==r||i[2]!==o?(t={scrollElement:r,disabled:a,selector:o},i[0]=a,i[1]=r,i[2]=o,i[3]=t):t=i[3];let l=function(e){let t,n,i=(0,j.c)(5),{scrollElement:r,disabled:a,selector:o}=e,[l,s]=(0,_.useState)(null);return i[0]!==a||i[1]!==r||i[2]!==o?(t=()=>{if(a)return;let e=()=>{let e=document?.querySelectorAll(o);e&&s(function(e){if(!e||!e.length)return null;let t=e.map(e=>e.getBoundingClientRect()),n=Math.min(...t.map(e=>e.x))||0,i=Math.min(...t.map(e=>e.y))||0,r=Math.max(...t.map(e=>e.right))||0,a=Math.max(...t.map(e=>e.bottom))||0;return{x:n,y:i,width:r-n,height:a-i,top:i,right:r,bottom:a,left:n}}(Array.from(e)))};if(e(),r)return r.addEventListener("wheel",e),()=>{r.removeEventListener("wheel",e)}},n=[r,a,o],i[0]=a,i[1]=r,i[2]=o,i[3]=t,i[4]=n):(t=i[3],n=i[4]),(0,_.useEffect)(t,n),l}(t);e:{let e;if(!l){n=null;break e}i[4]!==l?(e={getBoundingClientRect:()=>l},i[4]=l,i[5]=e):e=i[5],n=e}return n}(E);t:{let e;if(!ey){$=null;break t}B[61]!==ey?(e={getBoundingClientRect:()=>ey},B[61]=ey,B[62]=e):e=B[62],$=e}let e7=$;B[63]!==ef||B[64]!==e1?(A=()=>{if(ef)return e1?.addEventListener("wheel",eP),()=>{e1?.removeEventListener("wheel",eP)}},z=[ef,e1,eP],B[63]=ef,B[64]=e1,B[65]=A,B[66]=z):(A=B[65],z=B[66]),(0,_.useEffect)(A,z),B[67]!==eq||B[68]!==eV?(P=()=>{let e=eq(eV);(0,_.startTransition)(()=>eT(t=>e.map(e=>{let n=t.find(t=>t.payload?.commentId===e.payload?.commentId);return n?.payload?.dirty?{...e,payload:{...e.payload,dirty:n.payload.dirty}}:e})))},R=[eq,eV],B[67]=eq,B[68]=eV,B[69]=P,B[70]=R):(P=B[69],R=B[70]),(0,_.useEffect)(P,R);let e3=!!(ef&&ev&&e7&&!eo),e8=!!(em&&e0);return B[71]!==H||B[72]!==eM||B[73]!==J||B[74]!==eu||B[75]!==e0||B[76]!==e8?(N=e8&&H&&(0,v.jsx)(Kc,{currentUser:H,mentionOptions:J,onChange:ep,onClickOutside:eR,onDiscardConfirm:eO,onSubmit:eM,referenceElement:e0,value:eu}),B[71]=H,B[72]=eM,B[73]=J,B[74]=eu,B[75]=e0,B[76]=e8,B[77]=N):N=B[77],B[78]!==ee||B[79]!==eX||B[80]!==eN||B[81]!==e7||B[82]!==e3||B[83]!==e8?(O=e3&&!e8&&(0,v.jsx)(Ka,{disabled:eX||!!ee,onClick:eN,onClickOutside:eR,referenceElement:e7}),B[78]=ee,B[79]=eX,B[80]=eN,B[81]=e7,B[82]=e3,B[83]=e8,B[84]=O):O=B[84],B[85]!==N||B[86]!==O?(V=(0,v.jsxs)(ia.N,{children:[N,O]}),B[85]=N,B[86]=O,B[87]=V):V=B[87],B[88]!==e2||B[89]!==V?(M=(0,v.jsx)(I.EZ,{element:e2,children:V}),B[88]=e2,B[89]=V,B[90]=M):M=B[90],B[91]!==eW||B[92]!==e||B[93]!==eG?(L=(0,v.jsx)(I.BJ,{ref:e_,onMouseDown:eY,onMouseUp:eH,children:(0,v.jsx)(Kh,{...e,onEditorChange:eW,editorRef:es,rangeDecorations:eG,onFullScreenChange:eS})}),B[91]=eW,B[92]=e,B[93]=eG,B[94]=L):L=B[94],B[95]!==M||B[96]!==L?(F=(0,v.jsxs)(v.Fragment,{children:[M,L]}),B[95]=M,B[96]=L,B[97]=F):F=B[97],F});function Kh(e){return e.renderDefault(e)}function Kf(e){return Z2(e.parentComment)}function Kg(e){return e.parentComment}function Ky(e){return e.payload?.dirty}function KC(e,t){return e._key.localeCompare(t._key)}function Kx(e){return null!==e.selection}function Kb(e){let t,n,i,r,a,o,l,s=(0,j.c)(25),{children:d}=e,{dataset:c,projectId:u}=cY(),p=el0(ob),[m,h]=(0,_.useState)(null),[f,g]=(0,_.useState)(!1),[y,C]=(0,_.useState)(!1),[x,b]=(0,_.useState)(null);s[0]!==c||s[1]!==p||s[2]!==u?(t=async()=>(await p.request({uri:`/projects/${u}/datasets?datasetProfile=comments&addonFor=${c}`,tag:"sanity.studio"}))?.[0]?.name,s[0]=c,s[1]=p,s[2]=u,s[3]=t):t=s[3];let w=t;s[4]!==p||s[5]!==u?(n=e=>p.withConfig({dataset:e,projectId:u,requestTagPrefix:"sanity.studio",useCdn:!1}),s[4]=p,s[5]=u,s[6]=n):n=s[6];let k=n;s[7]!==c||s[8]!==w||s[9]!==k||s[10]!==p?(i=async()=>{g(!0);try{let e=await w();if(e){let t=k(e);return h(t),g(!1),t}}catch{}return(async()=>{let e=(await p.request({uri:`/comments/${c}/setup`,method:"POST"}))?.datasetName;if(!e)return g(!1),null;let t=k(e);return h(t),t})().finally(()=>{g(!1)})},s[7]=c,s[8]=w,s[9]=k,s[10]=p,s[11]=i):i=s[11];let I=i;s[12]!==w||s[13]!==k?(r=()=>{w().then(e=>{e&&h(k(e))}).catch(e=>{b(e)}).finally(()=>{C(!0)})},a=[w,k],s[12]=w,s[13]=k,s[14]=r,s[15]=a):(r=s[14],a=s[15]),(0,_.useEffect)(r,a),s[16]!==m||s[17]!==x||s[18]!==I||s[19]!==f||s[20]!==y?(o={client:m,createAddonDataset:I,isCreatingDataset:f,ready:y,error:x},s[16]=m,s[17]=x,s[18]=I,s[19]=f,s[20]=y,s[21]=o):o=s[21];let T=o;return s[22]!==d||s[23]!==T?(l=(0,v.jsx)(S.iD.Provider,{value:T,children:d}),s[22]=d,s[23]=T,s[24]=l):l=s[24],l}function Kv(e){let t,n=(0,j.c)(2);return(0,_.useContext)(S.iD)?e.children:(n[0]!==e?(t=(0,v.jsx)(Kb,{...e}),n[0]=e,n[1]=t):t=n[1],t)}function Kj(e){let t,n,i,r,a=(0,j.c)(9),{error:o}=e,{t:l}=as(ZG);return a[0]!==l?(t=l("inspector-error.title"),a[0]=l,a[1]=t):t=a[1],a[2]!==t?(n=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:t}),a[2]=t,a[3]=n):n=a[3],a[4]!==o.message?(i=(0,v.jsx)(I.EY,{size:1,muted:!0,children:o.message}),a[4]=o.message,a[5]=i):i=a[5],a[6]!==n||a[7]!==i?(r=(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(I.Zp,{paddingX:2,paddingY:3,tone:"critical",border:!0,radius:3,children:(0,v.jsxs)(I.BJ,{space:3,children:[n,i]})})}),a[6]=n,a[7]=i,a[8]=r):r=a[8],r}let Kw=(0,eI.I4)(I.Zp).withConfig({displayName:"Root",componentId:"sc-1vekini-0"})({position:"relative",zIndex:"1",lineHeight:"0"}),K_=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,_,k,S=(0,j.c)(57),{t:T}=as(ZG),{onClose:E,onViewChange:$,view:A,mode:D}=e;S[0]!==$?(n=()=>$("open"),S[0]=$,S[1]=n):n=S[1];let z=n;S[2]!==$?(i=()=>$("resolved"),S[2]=$,S[3]=i):i=S[3];let P=i;S[4]!==T?(r=T("feature-name"),S[4]=T,S[5]=r):r=S[5],S[6]!==r?(a=(0,v.jsx)(I.so,{align:"center",flex:1,gap:2,paddingY:2,padding:3,children:(0,v.jsx)(I.EY,{as:"h1",size:1,weight:"medium",children:r})}),S[6]=r,S[7]=a):a=S[7],S[8]!==T||S[9]!==A?(o=T("open"===A?"status-filter.status-open":"status-filter.status-resolved"),S[8]=T,S[9]=A,S[10]=o):o=S[10],S[11]!==o?(l=(0,v.jsx)(tL.$n,{text:o,mode:"bleed",iconRight:eT.D3D}),S[11]=o,S[12]=l):l=S[12],S[13]===Symbol.for("react.memo_cache_sentinel")?(s={width:"180px"},S[13]=s):s=S[13];let R="open"===A?eT.Nrt:void 0;S[14]!==T?(d=T("status-filter.status-open-full"),S[14]=T,S[15]=d):d=S[15],S[16]!==z||S[17]!==R||S[18]!==d?(c=(0,v.jsx)(tL.Dr,{iconRight:R,onClick:z,text:d}),S[16]=z,S[17]=R,S[18]=d,S[19]=c):c=S[19];let N="resolved"===A?eT.Nrt:void 0;S[20]!==T?(u=T("status-filter.status-resolved-full"),S[20]=T,S[21]=u):u=S[21],S[22]!==D||S[23]!==T?(p="upsell"===D?{content:T("status-filter.status-resolved-full-upsell")}:void 0,S[22]=D,S[23]=T,S[24]=p):p=S[24];let O="upsell"===D;return S[25]!==P||S[26]!==N||S[27]!==u||S[28]!==p||S[29]!==O?(m=(0,v.jsx)(tL.Dr,{iconRight:N,onClick:P,text:u,tooltipProps:p,disabled:O}),S[25]=P,S[26]=N,S[27]=u,S[28]=p,S[29]=O,S[30]=m):m=S[30],S[31]!==m||S[32]!==c?(h=(0,v.jsxs)(I.W1,{style:s,children:[c,m]}),S[31]=m,S[32]=c,S[33]=h):h=S[33],S[34]===Symbol.for("react.memo_cache_sentinel")?(f={placement:"bottom-end"},S[34]=f):f=S[34],S[35]!==h||S[36]!==l?(g=(0,v.jsx)(tL.IU,{id:"comment-status-menu-button",button:l,menu:h,popover:f}),S[35]=h,S[36]=l,S[37]=g):g=S[37],S[38]!==T?(y=T("close-pane-button-text-aria-label"),S[38]=T,S[39]=y):y=S[39],S[40]!==T?(C=T("close-pane-button-text"),S[40]=T,S[41]=C):C=S[41],S[42]!==C?(x={content:C},S[42]=C,S[43]=x):x=S[43],S[44]!==E||S[45]!==y||S[46]!==x?(b=(0,v.jsx)(tL.$n,{"aria-label":y,icon:eT.USm,mode:"bleed",onClick:E,tooltipProps:x}),S[44]=E,S[45]=y,S[46]=x,S[47]=b):b=S[47],S[48]!==g||S[49]!==b?(w=(0,v.jsxs)(I.so,{flex:"none",padding:1,gap:2,children:[g,b]}),S[48]=g,S[49]=b,S[50]=w):w=S[50],S[51]!==w||S[52]!==a?(_=(0,v.jsxs)(I.so,{padding:2,children:[a,w]}
1543),S[51]=w,S[52]=a,S[53]=_):_=S[53],S[54]!==t||S[55]!==_?(k=(0,v.jsx)(Kw,{ref:t,children:_}),S[54]=t,S[55]=_,S[56]=k):k=S[56],k}),Kk=(0,eI.I4)(I.Wd).withConfig({displayName:"RootLayer",componentId:"sc-clw1pq-0"})`display:flex;flex-direction:column;height:100%;overflow:hidden;`;function KS(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,k,E,$,A,D,z,P,R,N,O,V,M,L,F,B,Y,H,U,Z,q=(0,j.c)(122),{t:W}=as(ZG),{onClose:J,mode:K}=e,[G,X]=(0,_.useState)(!1),[Q,ee]=(0,_.useState)(null),[et,en]=(0,_.useState)(!1),[ei,er]=(0,_.useState)(null),ea=(0,_.useRef)(null),[eo,el]=(0,_.useState)(null),es=o5(),{comments:ed,getComment:ec,isCreatingDataset:eu,mentionOptions:ep,setStatus:em,status:eh,operation:ef,selectedCommentId:eg,getCommentLink:ey,onClearSelectedComment:eC,onPathOpen:ex}=Jm(),eb=(0,_.useRef)(eg),{error:ev}=J2(),ej=(0,_.useRef)(!1),ew=(0,T.dj)().push,{isTopLayer:e_}=(0,I.Z4)();q[0]!==eo?(t={boundaryElement:eo},q[0]=eo,q[1]=t):t=q[1];let{scrollToComment:ek,scrollToField:eS,scrollToInlineComment:eI}=Jw(t),{selectedPath:eT,setSelectedPath:eE}=J_(),{isDismissed:e$,setDismissed:eA}=function(){let e=(0,_.useContext)(S.lG);if(!e)throw Error("useCommentsOnboarding: missing context value");return e}(),eD=(B=(0,j.c)(10),Y=(0,tK.Jr)(),B[0]!==Y?(V=()=>{Y.log(Jk)},B[0]=Y,B[1]=V):V=B[1],H=V,B[2]!==Y?(M=()=>{Y.log(JS)},B[2]=Y,B[3]=M):M=B[3],U=M,B[4]!==Y?(L=e=>{Y.log(JI,{view:e})},B[4]=Y,B[5]=L):L=B[5],Z=L,B[6]!==H||B[7]!==Z||B[8]!==U?(F={commentLinkCopied:H,commentListViewChanged:Z,commentViewedFromLink:U},B[6]=H,B[7]=Z,B[8]=U,B[9]=F):F=B[9],F),{upsellData:ez,telemetryLogs:eP}=JT(),eR=ed.data[eh],{loading:eN}=ed;q[2]!==eE||q[3]!==em||q[4]!==eD?(n=e=>{em(e),eE(null),eD.commentListViewChanged(e)},q[2]=eE,q[3]=em,q[4]=eD,q[5]=n):n=q[5];let eO=n;q[6]!==J||q[7]!==eE?(i=()=>{J(),eE(null)},q[6]=J,q[7]=eE,q[8]=i):i=q[8];let eV=i;e:{let e;if(!ey){r=void 0;break e}q[9]!==ey||q[10]!==ew||q[11]!==W||q[12]!==eD?(e=e=>{navigator.clipboard.writeText(ey(e)).catch(()=>{ew({closable:!0,status:"error",title:W("copy-link-error-message")})}),eD.commentLinkCopied()},q[9]=ey,q[10]=ew,q[11]=W,q[12]=eD,q[13]=e):e=q[13],r=e}let eM=r;q[14]!==ec||q[15]!==ef?(a=e=>{let t=ec(e);t&&ef.create({type:"field",fieldPath:t.target.path?.field||"",id:t._id,message:t.message,parentCommentId:t.parentCommentId,reactions:t.reactions||[],status:t.status,threadId:t.threadId})},q[14]=ec,q[15]=ef,q[16]=a):a=q[16];let eL=a;q[17]!==et?(o=()=>{et||(X(!1),ee(null))},q[17]=et,q[18]=o):o=q[18];let eF=o;q[19]!==ed.data.open||q[20]!==ex||q[21]!==eS||q[22]!==eI||q[23]!==eE?(l=e=>{if(eE(e),e?.fieldPath){let t=w.sH(e.fieldPath);ex?.(t),eS(e.fieldPath),ed.data.open.filter(t=>t.threadId===e?.threadId).some(KI)&&e.threadId&&eI(e.threadId)}},q[19]=ed.data.open,q[20]=ex,q[21]=eS,q[22]=eI,q[23]=eE,q[24]=l):l=q[24];let eB=l;q[25]!==ef||q[26]!==eE?(s=e=>{let t=e?.payload?.fieldPath||"";ef.create({type:"field",fieldPath:t,message:e.message,parentCommentId:e.parentCommentId,reactions:e.reactions,status:e.status,threadId:e.threadId}),eE({fieldPath:t,origin:"inspector",threadId:e.threadId})},q[25]=ef,q[26]=eE,q[27]=s):s=q[27];let eY=s;q[28]!==ef?(d=e=>{ef.create({...e,type:"field",fieldPath:e?.payload?.fieldPath||""})},q[28]=ef,q[29]=d):d=q[29];let eH=d;q[30]!==ef?(c=(e,t)=>{ef.update(e,t)},q[30]=ef,q[31]=c):c=q[31];let eU=c;q[32]!==eR?(u=e=>{let t=eR.find(t=>t.parentComment?._id===e),n=!!(t&&t?.replies?.length>0);X(!0),ee({commentId:e,isParent:n})},q[32]=eR,q[33]=u):u=q[33];let eZ=u;q[34]!==eF||q[35]!==ef?(p=async e=>{try{en(!0),await ef.remove(e),eF()}catch(e){er(e)}en(!1)},q[34]=eF,q[35]=ef,q[36]=p):p=q[36];let eq=p;q[37]!==ec||q[38]!==ef||q[39]!==ek||q[40]!==eE||q[41]!==em?(m=(e,t)=>{if(ef.update(e,{status:t}),"open"===t){em("open");let t=ec(e);t&&(eE({fieldPath:t.target.path?.field||null,origin:"inspector",threadId:t.threadId||null}),ek(e))}},q[37]=ec,q[38]=ef,q[39]=ek,q[40]=eE,q[41]=em,q[42]=m):m=q[42];let eW=m;q[43]!==ef?(h=(e,t)=>{ef.react(e,t)},q[43]=ef,q[44]=h):h=q[44];let eJ=h;q[45]!==e_||q[46]!==eT||q[47]!==eE?(f=()=>{eT&&e_&&eE(null)},q[45]=e_,q[46]=eT,q[47]=eE,q[48]=f):f=q[48];let eK=f;q[49]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{ea.current=e,el(e)},q[49]=g):g=q[49];let eG=g;q[50]!==eK?(y=e=>{e.target instanceof HTMLElement&&e.target?.hasAttribute("data-slate-string")||eK()},q[50]=eK,q[51]=y):y=q[51],q[52]===Symbol.for("react.memo_cache_sentinel")?(C=()=>[ea.current],q[52]=C):C=q[52],(0,I.PR)(y,C);
1543let[eX,eQ]=(0,_.useState)(!1);q[53]!==eX||q[54]!==K||q[55]!==eT?.origin||q[56]!==eP?(x=()=>{if(!(eX||"upsell"!==K))return eQ(!0),eT?.origin==="form"?eP.panelViewed("field_action"):eb.current?eP.panelViewed("link"):eP.panelViewed("document_action"),()=>{eP.panelDismissed()}},q[53]=eX,q[54]=K,q[55]=eT?.origin,q[56]=eP,q[57]=x):x=q[57];let e1=eT?.origin;q[58]!==eX||q[59]!==K||q[60]!==e1||q[61]!==eP?(b=[eX,K,e1,eP],q[58]=eX,q[59]=K,q[60]=e1,q[61]=eP,q[62]=b):b=q[62],(0,_.useEffect)(x,b),q[63]!==ec||q[64]!==eB||q[65]!==eN||q[66]!==eC||q[67]!==ek||q[68]!==em||q[69]!==eD?(k=()=>{let e=ec(eb.current||"");eN||!e||ej.current||(em(e.status||"open"),eB({fieldPath:e.target.path?.field||null,origin:"url",threadId:e.threadId||null}),requestAnimationFrame(()=>{ek(e._id)}),ej.current=!0,eb.current=void 0,eC?.(),eD.commentViewedFromLink())},E=[ec,eB,eN,eC,ek,em,eD],q[63]=ec,q[64]=eB,q[65]=eN,q[66]=eC,q[67]=ek,q[68]=em,q[69]=eD,q[70]=k,q[71]=E):(k=q[70],E=q[71]),(0,_.useEffect)(k,E);t:{if("upsell"===K&&ez){let e;q[72]!==ez||q[73]!==eP.panelPrimaryClicked||q[74]!==eP.panelSecondaryClicked?(e=(0,v.jsx)(W3,{data:ez,onPrimaryClick:eP.panelPrimaryClicked,onSecondaryClick:eP.panelSecondaryClicked}),q[72]=ez,q[73]=eP.panelPrimaryClicked,q[74]=eP.panelSecondaryClicked,q[75]=e):e=q[75],$=e;break t}$=null}let e2=$;q[76]!==eF||q[77]!==Q||q[78]!==ei||q[79]!==et||q[80]!==eq||q[81]!==G?(A=Q&&G&&(0,v.jsx)(Z4,{...Q,error:ei,loading:et,onClose:eF,onConfirm:eq}),q[76]=eF,q[77]=Q,q[78]=ei,q[79]=et,q[80]=eq,q[81]=G,q[82]=A):A=q[82];let e5=!e$;return q[83]!==eO||q[84]!==eV||q[85]!==K||q[86]!==eh?(D=(0,v.jsx)(K_,{onClose:eV,onViewChange:eO,view:eh,mode:K}),q[83]=eO,q[84]=eV,q[85]=K,q[86]=eh,q[87]=D):D=q[87],q[88]!==eA||q[89]!==e5||q[90]!==D?(z=(0,v.jsx)(W7,{onDismiss:eA,open:e5,placement:"left-start",children:D}),q[88]=eA,q[89]=e5,q[90]=D,q[91]=z):z=q[91],q[92]!==ev?(P=ev&&(0,v.jsx)(Kj,{error:ev}),q[92]=ev,q[93]=P):P=q[93],q[94]!==e2||q[95]!==ed.error||q[96]!==eR||q[97]!==es||q[98]!==eM||q[99]!==eL||q[100]!==eU||q[101]!==eY||q[102]!==eB||q[103]!==eJ||q[104]!==eH||q[105]!==eW||q[106]!==eu||q[107]!==eN||q[108]!==ep||q[109]!==K||q[110]!==eZ||q[111]!==eT||q[112]!==eh?(R=es&&(0,v.jsx)(W1,{beforeListNode:e2,comments:eR,currentUser:es,error:ed.error,loading:eN,mentionOptions:ep,mode:K,onCopyLink:eM,onCreateRetry:eL,onDelete:eZ,onEdit:eU,onNewThreadCreate:eY,onPathSelect:eB,onReactionSelect:eJ,onReply:eH,onStatusChange:eW,readOnly:eu,selectedPath:eT,status:eh}),q[94]=e2,q[95]=ed.error,q[96]=eR,q[97]=es,q[98]=eM,q[99]=eL,q[100]=eU,q[101]=eY,q[102]=eB,q[103]=eJ,q[104]=eH,q[105]=eW,q[106]=eu,q[107]=eN,q[108]=ep,q[109]=K,q[110]=eZ,q[111]=eT,q[112]=eh,q[113]=R):R=q[113],q[114]!==eK||q[115]!==z||q[116]!==P||q[117]!==R?(N=(0,v.jsxs)(I.so,{direction:"column",flex:1,height:"fill",onClick:eK,overflow:"hidden",ref:eG,children:[z,P,R]}),q[114]=eK,q[115]=z,q[116]=P,q[117]=R,q[118]=N):N=q[118],q[119]!==A||q[120]!==N?(O=(0,v.jsxs)(_.Fragment,{children:[A,N]}),q[119]=A,q[120]=N,q[121]=O):O=q[121],O}function KI(e){return Z2(e.parentComment)}let KT=R1({name:"sanity/comments",document:{inspectors:[{name:qW,component:function(e){let t,n=(0,j.c)(3),{enabled:i,mode:r}=Jh();return i?(n[0]!==r||n[1]!==e?(t=(0,v.jsx)(Kk,{children:(0,v.jsx)(KS,{...e,mode:r})}),n[0]=r,n[1]=e,n[2]=t):t=n[2],t):null},useMenuItem:function(){let e,t,n=(0,j.c)(5),{t:i}=as(ZG),{enabled:r}=Jh(),a=!r;return n[0]!==i?(e=i("feature-name"),n[0]=i,n[1]=e):e=n[1],n[2]!==a||n[3]!==e?(t={hidden:a,icon:eT.Twg,showAsAction:!0,title:e},n[2]=a,n[3]=e,n[4]=t):t=n[4],t}}],components:{unstable_layout:function(e){let t,n,i=(0,j.c)(8),{documentId:r,documentType:a}=e;if(null!==Jh().mode){let t;return i[0]!==e?(t=(0,v.jsx)(J1,{...e}),i[0]=e,i[1]=t):t=i[1],t}return i[2]!==e?(t=(0,v.jsx)(J1,{...e}),i[2]=e,i[3]=t):t=i[3],i[4]!==r||i[5]!==a||i[6]!==t?(n=(0,v.jsx)(JW,{documentId:r,documentType:a,children:t}),i[4]=r,i[5]=a,i[6]=t,i[7]=n):n=i[7],n}}},form:{components:{field:function(e){let t,n=(0,j.c)(5),{enabled:i,mode:r}=Jh();if(!i){let t;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==r||n[3]!==e?(t=(0,v.jsx)(J9,{...e,mode:r}),n[2]=r,n[3]=e,n[4]=t):t=n[4],t},input:function(e){let t,n=(0,j.c)(4);if((0,eD.GX)(e.schemaType)){let t;return n[0]!==e?(t=(0,v.jsx)(Kp,{...e}),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==e?(t=e.renderDefault(e),n[2]=e,n[3]=t):t=n[3],t}}},studio:{components:{layout:function(e){let t,n,i,r=(0,j.c)(8),{enabled:a,isLoading:o}=EY(EL);r[0]!==e?(t=e.renderDefault(e),r[0]=e,r[1]=t):t=r[1];let l=t;return r[2]!==l||r[3]!==a||r[4]!==o?(n=a||o?l:(0,v.jsx)(JQ,{children:l}),r[2]=l,r[3]=a,r[4]=o,r[5]=n):n=r[5],r[6]!==n?(i=(0,v.jsx)(Kv,{children:(0,v.jsx)(JG,{children:n})}),r[6]=n,r[7]=i):i=r[7],i}}},i18n:{bundles:[{locale:"en-US",namespace:ZG,resources:()=>n.e(9326).then(n.bind(n,89326))}]}}),KE="u">typeof __SANITY_STAGING__&&!0===__SANITY_STAGING__,K$="create",KA={locale:"en-US",namespace:K$,resources:()=>n.e(4893).then(n.bind(n,14893))},KD=(0,tW.g_)({name:"Create Document Link CTA Clicked",version:1,description:'The "Start in Sanity Create" button is clicked.'}),Kz=(0,tW.g_)({name:"Create Document Link Accepted",version:1,description:'Continue in the "Start in Sanity Create" dialog was pressed, or auto-confirm was enabled.'}),KP=(0,tW.g_)({name:"Create Document Unlink CTA Clicked",version:1,description:"The Unlink action was clicked"}),KR=(0,tW.g_)({name:"Create Document Unlink Approved",version:1,description:"User confirmed that they want the Studio document unlinked"}),KN=(0,tW.g_)({name:"Create Document Opened",version:1,description:'User clicked "Edit in Create"'});function KO(){let e,t,n,i,r,a,o=(0,j.c)(16),l=(0,tK.Jr)();o[0]!==l?(e=()=>l.log(KD),o[0]=l,o[1]=e):e=o[1];let s=e;o[2]!==l?(t=()=>l.log(Kz),o[2]=l,o[3]=t):t=o[3];let d=t;o[4]!==l?(n=()=>l.log(KP),o[4]=l,o[5]=n):n=o[5];let c=n;o[6]!==l?(i=()=>l.log(KR),o[6]=l,o[7]=i):i=o[7];let u=i;o[8]!==l?(r=()=>l.log(KN),o[8]=l,o[9]=r):r=o[9];let p=r;return o[10]!==p||o[11]!==d||o[12]!==s||o[13]!==u||o[14]!==c?(a={linkCtaClicked:s,linkAccepted:d,unlinkCtaClicked:c,unlinkApproved:u,documentOpened:p},o[10]=p,o[11]=d,o[12]=s,o[13]=u,o[14]=c,o[15]=a):a=o[15],a}function KV(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(40),{onClose:g,onDocumentChange:y,documentTitle:C}=e,x=(0,_.useId)(),[b,w]=(0,_.useState)(!1),{t:k}=as(K$),S=KO();f[0]!==y||f[1]!==S?(t=()=>{w(!0),y(gD.from(hW(["_create"]))),S.unlinkApproved()},f[0]=y,f[1]=S,f[2]=t):t=f[2];let T=t;return f[3]!==k?(n=k("unlink-from-create-dialog.cancel.text"),f[3]=k,f[4]=n):n=f[4],f[5]!==g||f[6]!==n?(i={onClick:g,text:n},f[5]=g,f[6]=n,f[7]=i):i=f[7],f[8]!==k?(r=k("unlink-from-create-dialog.unlink.text"),f[8]=k,f[9]=r):r=f[9],f[10]!==r||f[11]!==T||f[12]!==b?(a={disabled:b,onClick:T,text:r,tone:"primary"},f[10]=r,f[11]=T,f[12]=b,f[13]=a):a=f[13],f[14]!==i||f[15]!==a?(o={cancelButton:i,confirmButton:a},f[14]=i,f[15]=a,f[16]=o):o=f[16],f[17]!==k?(l=k("unlink-from-create-dialog.header"),f[17]=k,f[18]=l):l=f[18],f[19]!==C||f[20]!==k?(s=C||k("unlink-from-create-dialog.document.untitled.text"),f[19]=C,f[20]=k,f[21]=s):s=f[21],f[22]!==s?(d={title:s},f[22]=s,f[23]=d):d=f[23],f[24]!==k||f[25]!==d?(c=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(aE,{t:k,i18nKey:"unlink-from-create-dialog.first-paragraph",values:d})}),f[24]=k,f[25]=d,f[26]=c):c=f[26],f[27]!==k?(u=k("unlink-from-create-dialog.second-paragraph"),f[27]=k,f[28]=u):u=f[28],f[29]!==u?(p=(0,v.jsx)(I.EY,{size:1,children:u}),f[29]=u,f[30]=p):p=f[30],f[31]!==p||f[32]!==c?(m=(0,v.jsxs)(I.BJ,{space:4,children:[c,p]}),f[31]=p,f[32]=c,f[33]=m):m=f[33],f[34]!==x||f[35]!==g||f[36]!==m||f[37]!==o||f[38]!==l?(h=(0,v.jsx)(tL.lG,{footer:o,id:x,header:l,onClose:g,children:m}),f[34]=x,f[35]=g,f[36]=m,f[37]=o,f[38]=l,f[39]=h):h=f[39],h}function KM(e){let t,n=(0,j.c)(3),{children:i,portalElementId:r}=e,{element:a,elements:o}=(0,I.WP)(),l=o?.[r]||a;return n[0]!==i||n[1]!==l?(t=(0,v.jsx)(I.GD,{element:l,children:i}),n[0]=i,n[1]=l,n[2]=t):t=n[2],t}function KL(e){var t;let n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(27),{metadata:m,panelPortalElementId:h,onDocumentChange:f,documentTitle:g}=e,{t:y}=as(K$);p[0]!==m?(n=`${t=m.host,`https://${t??KE?"create-staging.sanity.build":"www.sanity.io"}/app/create`}/${m.dataset}/${m._id}`,p[0]=m,p[1]=n):n=p[1];let C=n,x=KO();p[2]!==x?(i=()=>x.documentOpened(),p[2]=x,p[3]=i):i=p[3];let b=i,[w,k]=(0,_.useState)(!1);p[4]!==x?(r=()=>{k(!0),x.unlinkCtaClicked()},p[4]=x,p[5]=r):r=p[5];let S=r;p[6]===Symbol.for("react.memo_cache_sentinel")?(a=()=>k(!1),p[6]=a):a=p[6];let T=a;return p[7]!==y?(o=y("edit-in-create-button.text"),p[7]=y,p[8]=o):o=p[8],p[9]!==C||p[10]!==b||p[11]!==o?(l=(0,v.jsx)(tL.$n,{as:"a",text:o,iconRight:eT.ZPM,mode:"ghost",href:C,target:"_blank",onClick:b}),p[9]=C,p[10]=b,p[11]=o,p[12]=l):l=p[12],p[13]!==y?(s=y("unlink-from-create-button.text"),p[13]=y,p[14]=s):s=p[14],p[15]!==S||p[16]!==s?(d=(0,v.jsx)(tL.$n,{text:s,onClick:S}),p[15]=S,p[16]=s,p[17]=d):d=p[17],p[18]!==g||p[19]!==f||p[20]!==h||p[21]!==w?(c=w&&(0,v.jsx)(KM,{portalElementId:h,children:(0,v.jsx)(KV,{onClose:T,onDocumentChange:f,documentTitle:g})}),p[18]=g,p[19]=f,p[20]=h,p[21]=w,p[22]=c):c=p[22],p[23]!==l||p[24]!==d||p[25]!==c?(u=(0,v.jsxs)(I.so,{gap:2,children:[l,d,c]}),p[23]=l,p[24]=d,p[25]=c,p[26]=u):u=p[26],u}let KF=(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(5),{t:a}=as(K$);return r[0]!==a?(n=a("start-in-create-dialog.cta.learn-more"),r[0]=a,r[1]=n):n=r[1],r[2]!==t||r[3]!==n?(i=(0,v.jsx)(tL.$n,{as:"a",href:"https://snty.link/create-docs?ref=studio",target:"_blank",ref:t,text:n,mode:"bleed",tone:"primary",iconRight:eT.ZPM}),r[2]=t,r[3]=n,r[4]=i):i=r[4],i});function KB(){let e,t,n,i,r,a,o,l=(0,j.c)(7);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e={display:"block"},t=(0,v.jsxs)("g",{children:[(0,v.jsx)("rect",{width:"307",height:"201",fill:"url(#paint0_radial_38_7016)"}),(0,v.jsx)("path",{d:"M168.5 -0.5V-1H167.5V-0.5H168.5ZM167.646 174.854C167.842 175.049 168.158 175.049 168.354 174.854L171.536 171.672C171.731 171.476 171.731 171.16 171.536 170.964C171.34 170.769 171.024 170.769 170.828 170.964L168 173.793L165.172 170.964C164.976 170.769 164.66 170.769 164.464 170.964C164.269 171.16 164.269 171.476 164.464 171.672L167.646 174.854ZM167.5 -0.5V174.5H168.5V-0.5H167.5Z",fill:"url(#paint1_linear_38_7016)"}),(0,v.jsx)("path",{d:"M251 37.5H352C353.381 37.5 354.5 38.6193 354.5 40V64C354.5 65.3807 353.381 66.5 352 66.5H251C249.619 66.5 248.5 65.3807 248.5 64V40C248.5 38.6193 249.619 37.5 251 37.5Z",fill:"#181410",stroke:"#F9BC15"}),(0,v.jsx)("path",{d:"M251 104.5H352C353.381 104.5 354.5 105.619 354.5 107V210C354.5 211.381 353.381 212.5 352 212.5H251C249.619 212.5 248.5 211.381 248.5 210V107C248.5 105.619 249.619 104.5 251 104.5Z",fill:"#071715",stroke:"#0FF0A1"}),(0,v.jsx)("path",{d:"M58.7803 20C58.7803 16.6863 61.4666 14 64.7803 14H135.484C138.797 14 141.484 16.6863 141.484 20V23.1429C141.484 26.4566 138.797 29.1429 135.484 29.1429H64.7803C61.4666 29.1429 58.7803 26.4566 58.7803 23.1429V20Z",fill:"#0FF0A1"}),(0,v.jsx)("path",{d:"M25 50.2857C25 46.972 27.6863 44.2857 31 44.2857H148.297C151.61 44.2857 154.297 46.972 154.297 50.2857V53.4286C154.297 56.7423 151.61 59.4286 148.297 59.4286H31C27.6863 59.4286 25 56.7423 25 53.4286V50.2857Z",fill:"#F9BC15"}),(0,v.jsx)("path",{d:"M25 80.5714C25 77.2577 27.6863 74.5714 31 74.5714H141.308C144.621 74.5714 147.308 77.2577 147.308 80.5714V114C147.308 117.314 144.621 120 141.308 120H31C27.6863 120 25 117.314 25 114V80.5714Z",fill:"#0FF0A1"}),(0,v.jsx)("path",{d:"M28.4941 21.5714C28.4941 19.3198 30.3194 17.4945 32.5711 17.4945H51.2084C53.46 17.4945 55.2853 19.3198 55.2853 21.5714V21.5714C55.2853 23.8231 53.46 25.6484 51.2084 25.6484H32.5711C30.3194 25.6484 28.4941 23.8231 28.4941 21.5714V21.5714Z",fill:"#383D51"}
1543),(0,v.jsx)("path",{d:"M28.4941 82.1429C28.4941 79.8912 30.3194 78.0659 32.5711 78.0659H46.5491C48.8007 78.0659 50.626 79.8912 50.626 82.1429V82.1429C50.626 84.3945 48.8007 86.2198 46.5491 86.2198H32.5711C30.3194 86.2198 28.4941 84.3945 28.4941 82.1429V82.1429Z",fill:"#015133"}),(0,v.jsx)("path",{d:"M62.2744 21.5714C62.2744 19.3198 64.0997 17.4945 66.3513 17.4945H100.132C102.383 17.4945 104.208 19.3198 104.208 21.5714V21.5714C104.208 23.8231 102.383 25.6484 100.132 25.6484H66.3513C64.0997 25.6484 62.2744 23.8231 62.2744 21.5714V21.5714Z",fill:"#015133"}),(0,v.jsx)("path",{d:"M111.198 21.5714C111.198 19.3198 113.024 17.4945 115.275 17.4945H133.913C136.164 17.4945 137.989 19.3198 137.989 21.5714V21.5714C137.989 23.8231 136.164 25.6484 133.913 25.6484H115.275C113.024 25.6484 111.198 23.8231 111.198 21.5714V21.5714Z",fill:"#015133"}),(0,v.jsx)("path",{d:"M28.4941 36.7143C28.4941 34.4627 30.3194 32.6374 32.5711 32.6374H86.1535C88.4051 32.6374 90.2304 34.4627 90.2304 36.7143V36.7143C90.2304 38.9659 88.4051 40.7912 86.1535 40.7912H32.5711C30.3194 40.7912 28.4941 38.9659 28.4941 36.7143V36.7143Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M97.2197 36.7143C97.2197 34.4627 99.045 32.6374 101.297 32.6374H131.582C133.834 32.6374 135.659 34.4627 135.659 36.7143V36.7143C135.659 38.9659 133.834 40.7912 131.582 40.7912H101.297C99.045 40.7912 97.2197 38.9659 97.2197 36.7143V36.7143Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M28.4941 51.8571C28.4941 49.6055 30.3194 47.7802 32.5711 47.7802H66.3513C68.6029 47.7802 70.4282 49.6055 70.4282 51.8571V51.8571C70.4282 54.1088 68.6029 55.9341 66.3513 55.9341H32.5711C30.3194 55.9341 28.4941 54.1088 28.4941 51.8571V51.8571Z",fill:"#965908"}),(0,v.jsx)("path",{d:"M77.418 51.8571C77.418 49.6055 79.2433 47.7802 81.4949 47.7802H146.726C148.977 47.7802 150.803 49.6055 150.803 51.8571V51.8571C150.803 54.1088 148.977 55.9341 146.726 55.9341H81.4949C79.2433 55.9341 77.418 54.1088 77.418 51.8571V51.8571Z",fill:"#965908"}),(0,v.jsx)("path",{d:"M57.6152 82.1429C57.6152 79.8912 59.4405 78.0659 61.6922 78.0659H126.923C129.175 78.0659 131 79.8912 131 82.1429V82.1429C131 84.3945 129.175 86.2198 126.923 86.2198H61.6922C59.4405 86.2198 57.6152 84.3945 57.6152 82.1429V82.1429Z",fill:"#015133"}),(0,v.jsx)("path",{d:"M28.4941 67C28.4941 64.7484 30.3194 62.9231 32.5711 62.9231H57.0326C59.2842 62.9231 61.1095 64.7484 61.1095 67V67C61.1095 69.2516 59.2842 71.0769 57.0326 71.0769H32.5711C30.3194 71.0769 28.4941 69.2516 28.4941 67V67Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M28.4941 97.2857C28.4941 95.0341 30.3194 93.2088 32.5711 93.2088H93.1425C95.3941 93.2088 97.2194 95.0341 97.2194 97.2857V97.2857C97.2194 99.5373 95.3941 101.363 93.1425 101.363H32.5711C30.3194 101.363 28.4941 99.5373 28.4941 97.2857V97.2857Z",fill:"#015133"}),(0,v.jsx)("path",{d:"M28.4941 112.429C28.4941 110.177 30.3194 108.352 32.5711 108.352H135.077C137.328 108.352 139.153 110.177 139.153 112.429V112.429C139.153 114.68 137.328 116.505 135.077 116.505H32.5711C30.3194 116.505 28.4941 114.68 28.4941 112.429V112.429Z",fill:"#015133"}),(0,v.jsx)("path",{d:"M68.0986 67C68.0986 64.7484 69.9239 62.9231 72.1756 62.9231H109.45C111.702 62.9231 113.527 64.7484 113.527 67V67C113.527 69.2516 111.702 71.0769 109.45 71.0769H72.1756C69.9239 71.0769 68.0986 69.2516 68.0986 67V67Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M104.209 97.2857C104.209 95.0341 106.034 93.2088 108.286 93.2088H139.736C141.988 93.2088 143.813 95.0341 143.813 97.2857V97.2857C143.813 99.5373 141.988 101.363 139.736 101.363H108.286C106.034 101.363 104.209 99.5373 104.209 97.2857V97.2857Z",fill:"#015133"}),(0,v.jsx)("path",{d:"M120.517 67C120.517 64.7484 122.342 62.9231 124.594 62.9231H140.901C143.153 62.9231 144.978 64.7484 144.978 67V67C144.978 69.2516 143.153 71.0769 140.901 71.0769H124.594C122.342 71.0769 120.517 69.2516 120.517 67V67Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M28.4941 203.143C28.4941 200.891 30.3194 199.066 32.5711 199.066H46.5491C48.8007 199.066 50.626 200.891 50.626 203.143V203.143C50.626 205.394 48.8007 207.22 46.5491 207.22H32.5711C30.3194 207.22 28.4941 205.394 28.4941 203.143V203.143Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M28.4941 142.571C28.4941 140.32 30.3194 138.495 32.5711 138.495H133.912C136.163 138.495 137.988 140.32 137.988 142.571V142.571C137.988 144.823 136.163 146.648 133.912 146.648H32.5711C30.3194 146.648 28.4941 144.823 28.4941 142.571V142.571Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M28.4941 157.714C28.4941 155.463 30.3194 153.637 32.5711 153.637H51.2082C53.4599 153.637 55.2852 155.463 55.2852 157.714V157.714C55.2852 159.966 53.4599 161.791 51.2082 161.791H32.5711C30.3194 161.791 28.4941 159.966 28.4941 157.714V157.714Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M63.1094 157.714C63.1094 155.463 64.9347 153.637 67.1863 153.637H140.902C143.153 153.637 144.979 155.463 144.979 157.714V157.714C144.979 159.966 143.153 161.791 140.902 161.791H67.1863C64.9347 161.791 63.1094 159.966 63.1094 157.714V157.714Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M28.4941 172.857C28.4941 170.606 30.3194 168.78 32.5711 168.78H41.4231C43.6747 168.78 45.5 170.606 45.5 172.857V172.857C45.5 175.109 43.6747 176.934 41.4231 176.934H32.5711C30.3194 176.934 28.4941 175.109 28.4941 172.857V172.857Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M52.875 172.857C52.875 170.606 54.7003 168.78 56.9519 168.78H14
15436.725C148.976 168.78 150.802 170.606 150.802 172.857V172.857C150.802 175.109 148.976 176.934 146.725 176.934H56.9519C54.7003 176.934 52.875 175.109 52.875 172.857V172.857Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M57.6152 203.143C57.6152 200.891 59.4405 199.066 61.6922 199.066H126.923C129.175 199.066 131 200.891 131 203.143V203.143C131 205.394 129.175 207.22 126.923 207.22H61.6922C59.4405 207.22 57.6152 205.394 57.6152 203.143V203.143Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M28.4941 188C28.4941 185.748 30.3194 183.923 32.5711 183.923H86.1537C88.4053 183.923 90.2306 185.748 90.2306 188V188C90.2306 190.252 88.4053 192.077 86.1537 192.077H32.5711C30.3194 192.077 28.4941 190.252 28.4941 188V188Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M97.2197 188C97.2197 185.748 99.045 183.923 101.297 183.923H138.571C140.823 183.923 142.648 185.748 142.648 188V188C142.648 190.252 140.823 192.077 138.571 192.077H101.297C99.045 192.077 97.2197 190.252 97.2197 188V188Z",fill:"#383D51"}),(0,v.jsx)("path",{d:"M254.062 29H251.145V19.5455H254.192C255.109 19.5455 255.894 19.7347 256.546 20.1133C257.199 20.4888 257.699 21.0289 258.047 21.7337C258.394 22.4354 258.568 23.2756 258.568 24.2543C258.568 25.2391 258.393 26.087 258.042 26.7979C257.691 27.5058 257.18 28.0505 256.509 28.4322C255.838 28.8107 255.023 29 254.062 29ZM252.29 27.9844H253.989C254.77 27.9844 255.418 27.8336 255.932 27.532C256.446 27.2304 256.829 26.801 257.082 26.244C257.334 25.6869 257.46 25.0237 257.46 24.2543C257.46 23.491 257.336 22.8339 257.086 22.283C256.837 21.729 256.465 21.3043 255.969 21.0089C255.474 20.7103 254.857 20.5611 254.118 20.5611H252.29V27.9844ZM263.314 29.1477C262.631 29.1477 262.041 28.9969 261.546 28.6953C261.053 28.3906 260.673 27.9659 260.406 27.4212C260.141 26.8733 260.009 26.2363 260.009 25.5099C260.009 24.7836 260.141 24.1435 260.406 23.5895C260.673 23.0324 261.046 22.5985 261.523 22.2876C262.003 21.9737 262.563 21.8168 263.203 21.8168C263.572 21.8168 263.937 21.8783 264.297 22.0014C264.657 22.1245 264.985 22.3246 265.281 22.6016C265.576 22.8755 265.811 23.2386 265.987 23.6911C266.162 24.1435 266.25 24.7005 266.25 25.3622V25.8239H260.784V24.8821H265.142C2
154365.142 24.482 265.062 24.125 264.902 23.8111C264.745 23.4972 264.52 23.2494 264.228 23.0678C263.939 22.8862 263.597 22.7955 263.203 22.7955C262.769 22.7955 262.394 22.9032 262.077 23.1186C261.763 23.331 261.521 23.608 261.352 23.9496C261.183 24.2912 261.098 24.6574 261.098 25.0483V25.6761C261.098 26.2116 261.19 26.6656 261.375 27.038C261.563 27.4073 261.823 27.6889 262.155 27.8828C262.488 28.0736 262.874 28.169 263.314 28.169C263.6 28.169 263.859 28.129 264.089 28.049C264.323 27.9659 264.525 27.8428 264.694 27.6797C264.864 27.5135 264.994 27.3073 265.087 27.0611L266.139 27.3565C266.028 27.7135 265.842 28.0275 265.581 28.2983C265.319 28.5661 264.996 28.7753 264.611 28.9261C264.226 29.0739 263.794 29.1477 263.314 29.1477ZM272.93 23.4972L271.951 23.7741C271.89 23.611 271.799 23.4525 271.679 23.2987C271.562 23.1417 271.402 23.0124 271.199 22.9109C270.996 22.8093 270.736 22.7585 270.419 22.7585C269.985 22.7585 269.623 22.8585 269.334 23.0586C269.048 23.2556 268.904 23.5064 268.904 23.8111C268.904 24.0819 269.003 24.2958 269.2 24.4528C269.397 24.6097 269.705 24.7405 270.123 24.8452L271.176 25.1037C271.81 25.2576 272.282 25.493 272.593 25.81C272.904 26.1239 273.059 26.5286 273.059 27.0241C273.059 27.4304 272.942 27.7936 272.708 28.1136C272.478 28.4337 272.154 28.6861 271.739 28.8707C271.324 29.0554 270.84 29.1477 270.289 29.1477C269.566 29.1477 268.968 28.9908 268.494 28.6768C268.02 28.3629 267.72 27.9044 267.593 27.3011L268.627 27.0426C268.726 27.4242 268.912 27.7105 269.186 27.9013C269.463 28.0921 269.825 28.1875 270.271 28.1875C270.779 28.1875 271.182 28.0798 271.48 27.8643C271.782 27.6458 271.933 27.3842 271.933 27.0795C271.933 26.8333 271.847 26.6271 271.674 26.4609C271.502 26.2917 271.237 26.1655 270.88 26.0824L269.699 25.8054C269.049 25.6515 268.572 25.413 268.267 25.0898C267.966 24.7636 267.815 24.3558 267.815 23.8665C267.815 23.4664 267.927 23.1125 268.152 22.8047C268.38 22.4969 268.689 22.2553 269.08 22.0799C269.474 21.9045 269.92 21.8168 270.419 21.8168C271.12 21.8168 271.671 21.9706 272.071 22.2784C272.475 22.5862 272.761 22.9924 272.93 23.4972ZM277.58 29.1477C276.915 29.1477 276.343 28.9908 275.863 28.6768C275.383 28.3629 275.013 27.9305 274.755 27.3796C274.496 26.8287 274.367 26.1993 274.367 25.4915C274.367 24.7713 274.499 24.1358 274.764 23.5849C275.032 23.0309 275.404 22.5985 275.881 22.2876C276.361 21.9737 276.921 21.8168 277.562 21.8168C278.06 21.8168 278.509 21.9091 278.91 22.0938C279.31 22.2784 279.637 22.5369 279.893 22.8693C280.148 23.2017 280.307 23.5895 280.368 24.0327H279.279C279.196 23.7095 279.011 23.4233 278.725 23.174C278.442 22.9216 278.06 22.7955 277.58 22.7955C277.155 22.7955 276.783 22.9062 276.463 23.1278C276.146 23.3464 275.898 23.6557 275.72 24.0558C275.544 24.4528 275.456 24.919 275.456 25.4545C275.456 26.0024 275.543 26.4794 275.715 26.8857C275.89 27.2919 276.137 27.6074 276.454 27.832C276.774 28.0567 277.149 28.169 277.58 28.169C277.863 28.169 278.12 28.1198 278.351 28.0213C278.582 27.9228 278.777 27.7812 278.937 27.5966C279.097 27.4119 279.211 27.1903 279.279 26.9318H280.368C280.307 27.3504 280.154 27.7274 279.911 28.0629C279.671 28.3952 279.353 28.6599 278.956 28.8569C278.562 29.0508 278.103 29.1477 277.58 29.1477ZM281.961 29V21.9091H283.014V22.9801H283.087C283.217 22.6293 283.451 22.3446 283.789 22.1261C284.128 21.9076 284.509 21.7983 284.934 21.7983C285.014 21.7983 285.114 21.7998 285.234 21.8029C285.354 21.806 285.445 21.8106 285.506 21.8168V22.9247C285.47 22.9155 285.385 22.9016 285.253 22.8832C285.123 22.8616 284.986 22.8509 284.842 22.8509C284.497 22.8509 284.189 22.9232 283.918 23.0678C283.651 23.2094 283.438 23.4064 283.281 23.6587C283.127 23.908 283.051 24.1927 283.051 24.5128V29H281.961ZM286.798 29V21.9091H287.887V29H286.798ZM287.352 20.7273C287.14 20.7273 286.956 20.6549 286.803 20.5103C286.652 20.3656 286.576 20.1918 286.576 19.9886C286.576 19.7855 286.652 19.6116 286.803 19.467C286.956 19.3223 287.14 19.25 287.352 19.25C287.564 19.25 287.746 19.3223 287.897 19.467C288.051 19.6116 288.127 19.7855 288.127 19.9886C288.127 20.1918 288.051 20.3656 287.897 20.5103C287.746 20.6549 287.564 20.7273 287.352 20.7273ZM289.883 31.6591V21.9091H290.935V23.0355H291.065C291.145 22.9124 291.256 22.7554 291.397 22.5646C291.542 22.3707 291.748 22.1984 292.016 22.0476C292.287 21.8937 292.653 21.8168 293.114 21.8168C293.711 21.8168 294.238 21.9
154366 294.693 22.2646C295.149 22.5631 295.504 22.9863 295.76 23.5341C296.015 24.0819 296.143 24.7282 296.143 25.473C296.143 26.224 296.015 26.8749 295.76 27.4258C295.504 27.9736 295.15 28.3983 294.698 28.6999C294.245 28.9985 293.724 29.1477 293.133 29.1477C292.677 29.1477 292.313 29.0723 292.039 28.9215C291.765 28.7676 291.554 28.5937 291.406 28.3999C291.259 28.2029 291.145 28.0398 291.065 27.9105H290.972V31.6591H289.883ZM290.954 25.4545C290.954 25.9901 291.032 26.4625 291.189 26.8718C291.346 27.2781 291.576 27.5966 291.877 27.8274C292.179 28.0552 292.548 28.169 292.985 28.169C293.441 28.169 293.821 28.049 294.125 27.8089C294.433 27.5658 294.664 27.2396 294.818 26.8303C294.975 26.4179 295.053 25.9593 295.053 25.4545C295.053 24.956 294.976 24.5066 294.823 24.1065C294.672 23.7034 294.442 23.3848 294.135 23.1509C293.83 22.9139 293.447 22.7955 292.985 22.7955C292.542 22.7955 292.17 22.9078 291.868 23.1325C291.566 23.354 291.339 23.6649 291.185 24.065C291.031 24.462 290.954 24.9252 290.954 25.4545ZM300.889 21.9091V22.8324H297.214V21.9091H300.889ZM298.285 20.2102H299.374V26.9688C299.374 27.2765 299.419 27.5073 299.508 27.6612C299.601 27.812 299.718 27.9136 299.859 27.9659C300.004 28.0152 300.156 28.0398 300.316 28.0398C300.436 28.0398 300.535 28.0336 300.612 28.0213C300.689 28.0059 300.75 27.9936 300.796 27.9844L301.018 28.9631C300.944 28.9908 300.841 29.0185 300.709 29.0462C300.576 29.0769 300.408 29.0923 300.205 29.0923C299.898 29.0923 299.596 29.0262 299.301 28.8938C299.008 28.7615 298.765 28.5599 298.571 28.2891C298.38 28.0182 298.285 27.6766 298.285 27.2642V20.2102ZM302.527 29V21.9091H303.617V29H302.527ZM303.081 20.7273C302.869 20.7273 302.686 20.6549 302.532 20.5103C302.381 20.3656 302.306 20.1918 302.306 19.9886C302.306 19.7855 302.381 19.6116 302.532 19.467C302.686 19.3223 302.869 19.25 303.081 19.25C303.294 19.25 303.475 19.3223 303.626 19.467C303.78 19.6116 303.857 19.7855 303.857 19.9886C303.857 20.1918 303.78 20.3656 303.626 20.5103C303.475 20.6549 303.294 20.7273 303.081 20.7273ZM308.493 29.1477C307.853 29.1477 307.291 28.9954 306.808 28.6907C306.328 28.386 305.952 27.9598 305.682 27.4119C305.414 26.8641 305.28 26.224 305.28 25.4915C305.28 24.7528 305.414 24.1081 305.682 23.5572C305.952 23.0063 306.328 22.5785 306.808 22.2738C307.291 21.9691 307.853 21.8168 308.493 21.8168C309.133 21.8168 309.693 21.9691 310.173 22.2738C310.657 22.5785 311.032 23.0063 311.3 23.5572C311.571 24.1081 311.706 24.7528 311.706 25.4915C311.706 26.224 311.5
154371 26.8641 311.3 27.4119C311.032 27.9598 310.657 28.386 310.173 28.6907C309.693 28.9954 309.133 29.1477 308.493 29.1477ZM308.493 28.169C308.979 28.169 309.379 28.0444 309.693 27.7951C310.007 27.5458 310.24 27.218 310.39 26.8118C310.541 26.4055 310.617 25.9654 310.617 25.4915C310.617 25.0175 310.541 24.5759 310.39 24.1665C310.24 23.7572 310.007 23.4264 309.693 23.174C309.379 22.9216 308.979 22.7955 308.493 22.7955C308.007 22.7955 307.607 22.9216 307.293 23.174C306.979 23.4264 306.747 23.7572 306.596 24.1665C306.445 24.5759 306.369 25.0175 306.369 25.4915C306.369 25.9654 306.445 26.4055 306.596 26.8118C306.747 27.218 306.979 27.5458 307.293 27.7951C307.607 28.0444 308.007 28.169 308.493 28.169ZM314.459 24.7344V29H313.369V21.9091H314.422V23.017H314.514C314.68 22.657 314.933 22.3677 315.271 22.1491C315.61 21.9276 316.047 21.8168 316.582 21.8168C317.062 21.8168 317.483 21.9152 317.843 22.1122C318.203 22.3061 318.483 22.6016 318.683 22.9986C318.883 23.3925 318.983 23.8911 318.983 24.4943V29H317.893V24.5682C317.893 24.0111 317.749 23.5772 317.459 23.2663C317.17 22.9524 316.773 22.7955 316.268 22.7955C315.921 22.7955 315.61 22.8709 315.336 23.0217C315.065 23.1725 314.851 23.3925 314.694 23.6818C314.537 23.9711 314.459 24.322 314.459 24.7344Z",fill:"#F9BC15"}),(0,v.jsx)("path",{d:"M251.145 96V86.5455H254.45C255.109 86.5455 255.652 86.6593 256.08 86.8871C256.508 87.1117 256.826 87.4149 257.036 87.7965C257.245 88.1751 257.349 88.5952 257.349 89.0568C257.349 89.4631 257.277 89.7985 257.132 90.0632C256.991 90.3279 256.803 90.5372 256.569 90.6911C256.338 90.8449 256.088 90.9588 255.817 91.0327V91.125C256.106 91.1435 256.397 91.245 256.689 91.4297C256.982 91.6143 257.226 91.879 257.423 92.2237C257.62 92.5684 257.719 92.9901 257.719 93.4886C257.719 93.9626 257.611 94.3888 257.396 94.7674C257.18 95.146 256.84 95.446 256.375 95.6676C255.911 95.8892 255.306 96 254.561 96H251.145ZM252.29 94.9844H254.561C255.309 94.9844 255.84 94.8397 256.154 94.5504C256.471 94.258 256.629 93.9041 256.629 93.4886C256.629 93.1686 256.548 92.8731 256.385 92.6023C256.221 92.3284 255.989 92.1098 255.688 91.9467C255.386 91.7805 255.029 91.6974 254.616 91.6974H252.29V94.9844ZM252.29 90.7003H254.413C254.758 90.7003 255.069 90.6326 255.346 90.4972C255.626 90.3617 255.848 90.1709 256.011 89.9247C256.177 89.6785 256.26 89.3892 256.26 89.0568C256.26 88.6413 256.115 88.2889 255.826 87.9996C255.537 87.7073 255.078 87.5611 254.45 87.5611H252.29V90.7003ZM262.333 96.1477C261.693 96.1477 261.131 95.9954 260.648 95.6907C260.168 95.386 259.792 94.9598 259.521 94.4119C259.254 93.8641 259.12 93.224 259.12 92.4915C259.12 91.7528 259.254 91.1081 259.521 90.5572C259.792 90.0063 260.168 89.5785 260.648 89.2738C261.131 88.9691 261.693 88.8168 262.333 88.8168C262.973 88.8168 263.533 88.9691 264.013 89.2738C264.497 89.5785 264.872 90.0063 265.14 90.5572C265.411 91.1081 265.546 91.7528 265.546 92.4915C265.546 93.224 265.411 93.8641 265.14 94.4119C264.872 94.9598 264.497 95.386 264.013 95.6907C263.533 95.9954 262.973 96.1477 262.333 96.1477ZM262.333 95.169C262.819 95.169 263.219 95.0444 263.533 94.7951C263.847 94.5458 264.079 94.218 264.23 93.8118C264.381 93.4055 264.456 92.9654 264.456 92.4915C264.456 92.0175 264.381 91.5759 264.23 91.1665C264.079 90.7572 263.847 90.4264 263.533 90.174C263.219 89.9216 262.819 89.7955 262.333 89.7955C261.847 89.7955 261.447 89.9216 261.133 90.174C260.819 90.4264 260.586 90.7572 260.436 91.1665C260.285 91.5759 260.209 92.0175 260.209 92.4915C260.209 92.9654 260.285 93.4055 260.436 93.8118C260.586 94.218 260.819 94.5458 261.133 94.7951C261.447 95.0444 261.847 95.169 262.333 95.169ZM269.887 96.1477C269.296 96.1477 268.774 95.9985 268.322 95.6999C267.869 95.3983 267.515 94.9736 267.26 94.4258C267.004 93.8749 266.877 93.224 266.877 92.473C266.877 91.7282 267.004 91.0819 267.26 90.5341C267.515 89.9863 267.871 89.5631 268.326 89.2646C268.782 88.966 269.308 88.8168 269.905 88.8168C270.367 88.8168 270.731 88.8937 270.999 89.0476C271.27 89.1984 271.476 89.3707 271.618 89.5646C271.762 89.7554 271.875 89.9124 271.955 90.0355H272.047V86.5455H273.137V96H272.084V94.9105H271.955C271.875 95.0398 271.761 95.2029 271.613 95.3999C271.465 95.5937 271.255 95.7676 270.981 95.9215C270.707 96.0723 270.342 96.1477 269.887 96.1477ZM270.034 95.169C270.471 95.169 270.841 95.0552 271.142 94.8274C271.444 94.5966 271.673 94.2781 271.83 93.8718C271.987 93.4625 272.066 92.9901 272.066 92.4545C272.066 91.9252 271.989 91.462 271.835 91.065C271.681 90.6649 271.453 90.354 271.152 90.1325C270.85 89.9078 270.478 89.7955 270.034 89.7955C269.573 89.7955 269.188 89.9139 268.88 90.1509C268.576 90.3848 268.346 90.7034 268.192 91.1065C268.042 91.5066 267.966 91.956 267.966 92.4545C267.966 92.9593 268.043 93.4179 268.197 93.8303C268.354 94.2396 268.585 94.5658 268.889 94.8089C269.197 95.049 269.579 95.169 270.034 95.169ZM275.985 98.6591C275.8 98.6591 275.636 98.6437 275.491 98.6129C275.346 98.5852 275.246 98.5575 275.191 98.5298L275.468 97.5696C275.733 97.6373 275.967 97.6619 276.17 97.6435C276.373 97.625 276.553 97.5342 276.71 97.3711C276.87 97.2111 277.016 96.951 277.148 96.5909L277.351 96.0369L274.729 88.9091H275.911L277.869 94.5597H277.942L279.9 88.9091H281.082L278.072 97.0341C277.936 97.4003 277.768 97.7035 277.568 97.9435C277.368 98.1867 277.136 98.3667 276.871 98.4837C276.61 98.6006 276.314 98.6591 275.985 98.6591Z",fill:"#04B97A"}),(0,v.jsx)("path",{d:"M164 22C164 24.2091 165.791 26 168 26C170.209 26 172 24.2091 172 22C172 19.7909 170.209 18 168 18C165.791 18 164 19.7909 164 22ZM238.53 -14.9697C238.823 -15.2626 238.823 -15.7374 238.53 -16.0303L233.757 -20.8033C233.464 -21.0962 232.99 -21.0962 232.697 -20.8033C232.404 -20.5104 232.404 -20.0355 232.697 -19.7426L236.939 -15.5L232.697 -11.2574C232.404 -10.9645 232.404 -10.4896 232.697 -10.1967C232.99 -9.90381 233.464 -9.90381 233.757 -10.1967L238.53 -14.9697ZM168 22.7
15435C168.007 22.75 168.013 22.75 168.02 22.75C168.026 22.75 168.033 22.75 168.039 22.75C168.046 22.75 168.052 22.75 168.059 22.75C168.066 22.75 168.072 22.75 168.079 22.75C168.086 22.75 168.092 22.75 168.099 22.75C168.106 22.75 168.112 22.75 168.119 22.75C168.126 22.75 168.133 22.75 168.139 22.75C168.146 22.75 168.153 22.75 168.16 22.75C168.167 22.75 168.173 22.75 168.18 22.75C168.187 22.75 168.194 22.75 168.201 22.75C168.208 22.75 168.215 22.75 168.222 22.75C168.229 22.75 168.235 22.75 168.242 22.75C168.249 22.75 168.256 22.75 168.263 22.75C168.27 22.75 168.277 22.75 168.284 22.75C168.291 22.75 168.298 22.75 168.306 22.75C168.313 22.75 168.32 22.75 168.327 22.75C168.334 22.75 168.341 22.75 168.348 22.75C168.355 22.75 168.362 22.75 168.37 22.75C168.377 22.75 168.384 22.75 168.391 22.75C168.398 22.75 168.406 22.75 168.413 22.75C168.42 22.75 168.427 22.75 168.435 22.75C168.442 22.75 168.449 22.75 168.457 22.75C168.464 22.75 168.471 22.75 168.479 22.75C168.486 22.75 168.493 22.75 168.501 22.75C168.508 22.75 168.516 22.75 168.523 22.75C168.53 22.75 168.538 22.75 168.545 22.75C168.553 22.75 168.56 22.75 168.568 22.75C168.575 22.75 168.583 22.75 168.59 22.75C168.598 22.75 168.605 22.75 168.613 22.75C168.621 22.75 168.628 22.75 168.636 22.75C168.643 22.75 168.651 22.75 168.659 22.75C168.666 22.75 168.674 22.75 168.682 22.75C168.689 22.75 168.697 22.75 168.705 22.75C168.712 22.75 168.72 22.75 168.728 22.75C168.736 22.75 168.743 22.75 168.751 22.75C168.759 22.75 168.767 22.75 168.775 22.75C168.782 22.75 168.79 22.75 168.798 22.75C168.806 22.75 168.814 22.75 168.822 22.75C168.83 22.75 168.838 22.75 168.845 22.75C168.853 22.75 168.861 22.75 168.869 22.75C168.877 22.75 168.885 22.75 168.893 22.75C168.901 22.75 168.909 22.75 168.917 22.75C168.925 22.75 168.933 22.75 168.941 22.75C168.949 22.75 168.958 22.75 168.966 22.75C168.974 22.75 168.982 22.75 168.99 22.75C168.998 22.75 169.006 22.75 169.014 22.75C169.023 22.75 169.031 22.75 169.039 22.75C169.047 22.75 169.055 22.75 169.064 22.75C169.072 22.75 169.08 22.75 169.088 22.75C169.097 22.75 169.105 22.75 169.113 22.75C169.122 22.75 169.13 22.75 169.138 22.75C169.147 22.75 169.155 22.75 169.163 22.75C169.172 22.75 169.18 22.75 169.188 22.75C169.197 22.75 169.205 22.75 169.214 22.75C169.222 22.75 169.231 22.75 169.239 22.75C169.248 22.75 169.256 22.75 169.265 22.75C169.273 22.75 169.282 22.75 169.29 22.75C169.299 22.75 169.307 22.75 169.316 22.75C169.324 22.75 169.333 22.75 169.342 22.75C169.35 22.75 169.359 22.75 169.367 22.75C169.376 22.75 169.385 22.75 169.393 22.75C169.402 22.75 169.411 22.75 169.419 22.75C169.428 22.75 169.437 22.75 169.446 22.75C169.454 22.75 169.463 22.75 169.472 22.75C169.481 22.75 169.489 22.75 169.498 22.75C169.507 22.75 169.516 22.75 169.525 22.75C169.534 22.75 169.542 22.75 169.551 22.75C169.56 22.75 169.569 22.75 169.578 22.75C169.587 22.75 169.596 22.75 169.605 22.75C169.614 22.75 169.623 22.75 169.632 22.7
15435C169.641 22.75 169.65 22.75 169.659 22.75C169.668 22.75 169.677 22.75 169.686 22.75C169.695 22.75 169.704 22.75 169.713 22.75C169.722 22.75 169.731 22.75 169.74 22.75C169.749 22.75 169.758 22.75 169.767 22.75C169.776 22.75 169.786 22.75 169.795 22.75C169.804 22.75 169.813 22.75 169.822 22.75C169.832 22.75 169.841 22.75 169.85 22.75C169.859 22.75 169.868 22.75 169.878 22.75C169.887 22.75 169.896 22.75 169.906 22.75C169.915 22.75 169.924 22.75 169.933 22.75C169.943 22.75 169.952 22.75 169.961 22.75C169.971 22.75 169.98 22.75 169.99 22.75C169.999 22.75 170.008 22.75 170.018 22.75C170.027 22.75 170.037 22.75 170.046 22.75C170.056 22.75 170.065 22.75 170.075 22.75C170.084 22.75 170.093 22.75 170.103 22.75C170.113 22.75 170.122 22.75 170.132 22.75C170.141 22.75 170.151 22.75 170.16 22.75C170.17 22.75 170.179 22.75 170.189 22.75C170.199 22.75 170.208 22.75 170.218 22.75C170.228 22.75 170.237 22.75 170.247 22.75C170.257 22.75 170.266 22.75 170.276 22.75C170.286 22.75 170.295 22.75 170.305 22.75C170.315 22.75 170.325 22.75 170.334 22.75C170.344 22.75 170.354 22.75 170.364 22.75C170.373 22.75 170.383 22.75 170.393 22.75C170.403 22.75 170.413 22.75 170.423 22.75C170.432 22.75 170.442 22.75 170.452 22.75C170.462 22.75 170.472 22.75 170.482 22.75C170.492 22.75 170.502 22.75 170.512 22.75C170.522 22.75 170.532 22.75 170.542 22.75C170.552 22.75 170.562 22.75 170.572 22.75C170.582 22.75 170.592 22.75 170.602 22.75C170.612 22.75 170.622 22.75 170.632 22.75C170.642 22.75 170.652 22.75 170.662 22.75C170.672 22.75 170.682 22.75 170.692 22.75C170.703 22.75 170.713 22.75 170.723 22.75C170.733 22.75 170.743 22.75 170.753 22.75C170.764 22.75 170.774 22.75 170.784 22.75C170.794 22.75 170.804 22.75 170.815 22.75C170.825 22.75 170.835 22.75 170.845 22.75C170.856 22.75 170.866 22.75 170.876 22.75C170.887 22.75 170.897 22.75 170.907 22.75C170.918 22.75 170.928 22.75 170.938 22.75C170.949 22.75 170.959 22.75 170.969 22.75C170.98 22.75 170.99 22.75 171.001 22.75C171.011 22.75 171.022 22.75 171.032 22.75C171.042 22.75 171.053 22.75 171.063 22.75C171.074 22.75 171.084 22.75 171.095 22.75C171.105 22.75 171.116 22.75 171.127 22.75C171.137 22.75 171.148 22.75 171.158 22.75C171.169 22.75 171.179 22.75 171.19 22.75C171.201 22.75 171.211 22.75 171.222 22.75C171.232 22.75 171.243 22.75 171.254 22.75C171.264 22.75 171.275 22.75 171.286 22.75C171.296 22.75 171.307 22.75 171.318 22.75C171.329 22.75 171.339 22.75 171.35 22.75C171.361 22.75 171.371 22.75 171.382 22.75C171.393 22.75 171.404 22.75 171.415 22.75C171.425 22.75 171.436 22.75 171.447 22.75C171.458 22.75 171.469 22.75 171.48 22.75C171.49 22.75 171.501 22.75 171.512 22.75C171.523 22.75 171.534 22.75 171.545 22.75C171.556 22.75 171.567 22.75 171.578 22.75C171.589 22.75 171.6 22.75 171.611 22.75C171.621 22.75 171.632 22.75 171.643 22.75C171.654 22.75 171.665 22.75 171.677 22.75C171.688 22.75 171.699 22.75 171.71 22.75C171.721 22.75 171.732 22.75 171.743 22.75C171.754 22.75 171.765 22.75 171.776 22.75C171.787 22.75 171.798 22.75 171.809 22.75C171.821 22.75 171.832 22.75 171.843 22.75C171.854 22.75 171.865 22.75 171.876 22.75C171.888 22.75 171.899 22.75 171.91 22.75C171.921 22.75 171.932 22.75 171.944 22.75C171.955 22.75 171.966 22.75 171.977 22.75C171.989 22.75 172 22.75 172.011 22.75C172.023 22.75 172.034 22.75 172.045 22.75C172.057 22.75 172.068 22.75 172.079 22.75C172.091 22.75 172.102 22.75 172.113 22.75C172.125 22.75 172.136 22.75 172.148 22.75C172.159 22.75 172.17 22.75 172.182 22.75C172.193 22.75 172.205 22.75 172.216 22.75C172.228 22.75 172.239 22.75 172.251 22.75C172.262 22.75 172.274 22.75 172.285 22.75C172.297 22.75 172.308 22.75 172.32 22.75C172.331 22.75 172.343 22.75 172.354 22.75C172.366 22.75 172.377 22.75 172.389 22.75C172.401 22.75 172.412 22.75 172.424 22.75C172.435 22.75 172.447 22.75 172.459 22.75C172.47 22.75 172.482 22.75 172.494 22.75C172.505 22.75 172.517 22.75 172.529 22.75C172.54 22.75 172.552 22.75 172.564 22.75C172.576 22.75 172.587 22.75 172.599 22.75C172.611 22.75 172.623 22.75 172.634 22.75C172.646 22.75 172.658 22.75 172.67 22.75C172.681 22.75 172.693 22.75 172.705 22.75C172.717 22.75 172.729 22.75 172.741 22.75C172.752 22.75 172.764 22.75 172.776 22.75C172.788 22.75 172.8 22.75 172.812 22.75C172.824 22.75 172.836 22.75 172.848 22.75C172.86 22.75 172.872 22.75 172.883 22.75C172.895 22.75 172.907 22.75 172.919 22.75C172.931 22.75 172.943 22.75 172.955 22.75C172.967 22.75 172.979 22.75 172.991 22.75C173.003 22.7
15435 173.015 22.75 173.027 22.75C173.04 22.75 173.052 22.75 173.064 22.75C173.076 22.75 173.088 22.75 173.1 22.75C173.112 22.75 173.124 22.75 173.136 22.75C173.148 22.75 173.161 22.75 173.173 22.75C173.185 22.75 173.197 22.75 173.209 22.75C173.221 22.75 173.234 22.75 173.246 22.75C173.258 22.75 173.27 22.75 173.282 22.75C173.295 22.75 173.307 22.75 173.319 22.75C173.331 22.75 173.344 22.75 173.356 22.75C173.368 22.75 173.38 22.75 173.393 22.75C173.405 22.75 173.417 22.75 173.43 22.75C173.442 22.75 173.454 22.75 173.467 22.75C173.479 22.75 173.491 22.75 173.504 22.75C173.516 22.75 173.529 22.75 173.541 22.75C173.553 22.75 173.566 22.75 173.578 22.75C173.591 22.75 173.603 22.75 173.615 22.75C173.628 22.75 173.64 22.75 173.653 22.75C173.665 22.75 173.678 22.75 173.69 22.75C173.703 22.75 173.715 22.75 173.728 22.75C173.74 22.75 173.753 22.75 173.765 22.75C173.778 22.75 173.79 22.75 173.803 22.75C173.816 22.75 173.828 22.75 173.841 22.75C173.853 22.75 173.866 22.75 173.878 22.75C173.891 22.75 173.904 22.75 173.916 22.75C173.929 22.75 173.942 22.75 173.954 22.75C173.967 22.75 173.98 22.75 173.992 22.75C174.005 22.75 174.018 22.75 174.03 22.75C174.043 22.75 174.056 22.75 174.068 22.75C174.081 22.75 174.094 22.75 174.107 22.75C174.119 22.75 174.132 22.75 174.145 22.75C174.158 22.75 174.17 22.75 174.183 22.75C174.196 22.75 174.209 22.75 174.222 22.75C174.234 22.75 174.247 22.75 174.26 22.75C174.273 22.75 174.286 22.75 174.299 22.75C174.312 22.75 174.324 22.75 174.337 22.75C174.35 22.75 174.3
154363 22.75 174.376 22.75C174.389 22.75 174.402 22.75 174.415 22.75C174.428 22.75 174.441 22.75 174.454 22.75C174.466 22.75 174.479 22.75 174.492 22.75C174.505 22.75 174.518 22.75 174.531 22.75C174.544 22.75 174.557 22.75 174.57 22.75C174.583 22.75 174.596 22.75 174.609 22.75C174.623 22.75 174.636 22.75 174.649 22.75C174.662 22.75 174.675 22.75 174.688 22.75C174.701 22.75 174.714 22.75 174.727 22.75C174.74 22.75 174.753 22.75 174.766 22.75C174.78 22.75 174.793 22.75 174.806 22.75C174.819 22.75 174.832 22.75 174.845 22.75C174.859 22.75 174.872 22.75 174.885 22.75C174.898 22.75 174.911 22.75 174.924 22.75C174.938 22.75 174.951 22.75 174.964 22.75C174.977 22.75 174.991 22.75 175.004 22.75C175.017 22.75 175.03 22.75 175.044 22.75C175.057 22.75 175.07 22.75 175.084 22.75C175.097 22.75 175.11 22.75 175.123 22.75C175.137 22.75 175.15 22.75 175.163 22.75C175.177 22.75 175.19 22.75 175.203 22.75C175.217 22.75 175.23 22.75 175.244 22.75C175.257 22.75 175.27 22.75 175.284 22.75C175.297 22.75 175.311 22.75 175.324 22.75C175.337 22.75 175.351 22.75 175.364 22.75C175.378 22.75 175.391 22.75 175.405 22.75C175.418 22.75 175.432 22.75 175.445 22.75C175.459 22.75 175.472 22.75 175.486 22.75C175.499 22.75 175.513 22.75 175.526 22.75C175.54 22.75 175.553 22.75 175.567 22.75C175.58 22.75 175.594 22.75 175.607 22.75C175.621 22.75 175.635 22.75 175.648 22.75C175.662 22.75 175.675 22.75 175.689 22.75C175.702 22.75 175.716 22.75 175.73 22.75C175.743 22.75 175.757 22.75 175.771 22.75C175.784 22.75 175.798 22.75 175.812 22.75C175.825 22.75 175.839 22.75 175.853 22.75C175.866 22.75 175.88 22.75 175.894 22.75C175.907 22.75 175.921 22.75 175.935 22.75C175.949 22.75 175.962 22.75 175.976 22.75C175.99 22.75 176.004 22.75 176.017 22.75C176.031 22.75 176.045 22.75 176.059 22.75C176.072 22.75 176.086 22.75 176.1 22.75C176.114 22.75 176.128 22.75 176.141 22.75C176.155 22.75 176.169 22.75 176.183 22.75C176.197 22.75 176.211 22.75 176.224 22.75C176.238 22.75 176.252 22.75 176.266 22.75C176.28 22.75 176.294 22.75 176.308 22.75C176.322 22.75 176.336 22.75 176.349 22.75C176.363 22.75 176.377 22.75 176.391 22.75C176.405 22.75 176.419 22.75 176.433 22.75C176.447 22.75 176.461 22.75 176.475 22.75C176.489 22.75 176.503 22.75 176.517 22.75C176.531 22.75 176.545 22.75 176.559 22.75C176.573 22.75 176.587 22.75 176.601 22.75C176.615 22.75 176.629 22.75 176.643 22.75C176.657 22.75 176.671 22.75 176.685 22.75C176.699 22.75 176.713 22.75 176.727 22.75C176.742 22.75 176.756 22.75 176.77 22.75C176.784 22.75 176.798 22.75 176.812 22.75C176.826 22.75 176.84 22.75 176.854 22.75C176.869 22.75 176.883 22.75 176.897 22.75C176.911 22.75 176.925 22.75 176.939 22.75C176.954 22.75 176.968 22.75 176.982 22.75C176.996 22.75 177.01 22.75 177.025 22.75C177.039 22.75 177.053 22.75 177.067 22.75C177.081 22.75 177.096 22.75 177.11 22.75C177.124 22.75 177.138 22.75 177.153 22.75C177.167 22.75 177.181 22.75 177.196 22.75C177.21 22.75 177.224 22.75 177.238 22.75C177.253 22.75 177.267 22.75 177.281 22.75C177.296 22.75 177.31 22.75 177.324 22.75C177.339 22.75 177.353 22.75 177.367 22.75C177.382 22.75 177.396 22.75 177.41 22.75C177.425 22.75 177.439 22.75 177.454 22.75C177.468 22.75 177.482 22.75 177.497 22.75C177.511 22.75 177.526 22.75 177.54 22.75C177.554 22.75 177.569 22.75 177.583 22.75C177.598 22.75 177.612 22.75 177.627 22.75C177.641 22.75 177.655 22.75 177.67 22.75C177.684 22.75 177.699 22.75 177.713 22.75C177.728 22.75 177.742 22.75 177.757 22.75C177.771 22.75 177.786 22.75 177.8 22.75C177.815 22.75 177.829 22.75 177.844 22.75C177.858 22.75 177.873 22.75 177.888 22.75C177.902 22.75 177.917 22.75 177.931 22.75C177.946 22.75 177.96 22.75 177.975 22.75C177.99 22.75 178.004 22.75 178.019 22.75C178.033 22.75 178.048 22.75 178.063 22.75C178.077 22.75 178.092 22.75 178.106 22.75C178.121 22.75 178.136 22.75 178.15 22.75C178.165 22.75 178.18 22.75 178.194 22.75C178.209 22.75 178.224 22.75 178.238 22.75C178.253 22.75 178.268 22.75 178.282 22.75C178.297 22.75 178.312 22.75 178.326 22.75C178.341 22.75 178.356 22.75 178.371 22.75C178.385 22.75 178.4 22.75 178.415 22.75C178.43 22.75 178.444 22.75 178.459 22.75C178.474 22.75 178.489 22.75 178.503 22.75C178.518 22.7
15435 178.533 22.75 178.548 22.75C178.563 22.75 178.577 22.75 178.592 22.75C178.607 22.75 178.622 22.75 178.637 22.75C178.651 22.75 178.666 22.75 178.681 22.75C178.696 22.75 178.711 22.75 178.726 22.75C178.74 22.75 178.755 22.75 178.77 22.75C178.785 22.75 178.8 22.75 178.815 22.75C178.83 22.75 178.844 22.75 178.859 22.75C178.874 22.75 178.889 22.75 178.904 22.75C178.919 22.75 178.934 22.75 178.949 22.75C178.964 22.75 178.979 22.75 178.994 22.75C179.009 22.75 179.023 22.75 179.038 22.75C179.053 22.75 179.068 22.75 179.083 22.75C179.098 22.75 179.113 22.75 179.128 22.75C179.143 22.75 179.158 22.75 179.173 22.75C179.188 22.75 179.203 22.75 179.218 22.75C179.233 22.75 179.248 22.75 179.263 22.75C179.278 22.75 179.293 22.75 179.308 22.75C179.323 22.75 179.338 22.75 179.353 22.75C179.369 22.75 179.384 22.75 179.399 22.75C179.414 22.75 179.429 22.75 179.444 22.75C179.459 22.75 179.474 22.75 179.489 22.75C179.504 22.75 179.519 22.75 179.534 22.75C179.55 22.75 179.565 22.75 179.58 22.75C179.595 22.75 179.61 22.75 179.625 22.75C179.64 22.75 179.655 22.75 179.671 22.75C179.686 22.75 179.701 22.75 179.716 22.75C179.731 22.75 179.746 22.75 179.761 22.75C179.777 22.75 179.792 22.75 179.807 22.75C179.822 22.75 179.837 22.75 179.853 22.75C179.868 22.75 179.883 22.75 179.898 22.75C179.913 22.75 179.929 22.75 179.944 22.75C179.959 22.75 179.974 22.75 179.99 22.75C180.005 22.75 180.02 22.75 180.035 22.75C180.051 22.75 180.066 22.75 180.081 22.75C180.096 22.75 180.112 22.75 180.127 22.75C180.142 22.75 180.157 22.75 180.173 22.75C180.188 22.75 180.203 22.75 180.219 22.75C180.234 22.75 180.249 22.75 180.265 22.75C180.28 22.75 180.295 22.75 180.311 22.75C180.326 22.75 180.341 22.75 180.357 22.75C180.372 22.75 180.387 22.75 180.403 22.75C180.418 22.75 180.433 22.75 180.449 22.75C180.464 22.75 180.479 22.75 180.495 22.75C180.51 22.75 180.526 22.75 180.541 22.75C180.556 22.75 180.572 22.75 180.587 22.75C180.603 22.75 180.618 22.75 180.633 22.75C180.649 22.75 180.664 22.75 180.68 22.75C180.695 22.75 180.71 22.75 180.726 22.75C180.741 22.75 180.757 22.75 180.772 22.75C180.788 22.75 180.803 22.75 180.819 22.75C180.834 22.75 180.85 22.75 180.865 22.75C180.88 22.75 180.896 22.75 180.911 22.75C180.927 22.75 180.942 22.75 180.958 22.75C180.973 22.75 180.989 22.75 181.004 22.75C181.02 22.75 181.035 22.75 181.051 22.75C181.066 22.75 181.082 22.75 181.097 22.75C181.113 22.75 181.129 22.75 181.144 22.75C181.16 22.75 181.175 22.75 181.191 22.75C181.206 22.75 181.222 22.75 181.237 22.75C181.253 22.75 181.269 22.75 181.284 22.75C181.3 22.75 181.315 22.75 181.331 22.75C181.346 22.75 181.362 22.75 181.378 22.75C181.393 22.75 181.409 22.75 181.424 22.75C181.44 22.75 181.456 22.75 181.471 22.75C181.487 22.75 181.503 22.75 181.518 22.75C181.534 22.75 181.549 22.75 181.565 22.75C181.581 22.75 181.596 22.75 181.612 22.75C181.628 22.75 181.643 22.75 181.659 22.75C181.675 22.75 181.69 22.75 181.706 22.75C181.722 22.75 181.737 22.75 181.753 22.75C181.769 22.75 181.784 22.75 181.8 22.75C181.816 22.75 181.831 22.75 181.847 22.75C181.863 22.75 181.878 22.75 181.894 22.75C181.91 22.75 181.926 22.75 181.941 22.75C181.957 22.75 181.973 22.75 181.989 22.75C182.004 22.75 182.02 22.75 182.036 22.75C182.051 22.75 182.067 22.75 182.083 22.75C182.099 22.75 182.114 22.75 182.13 22.75C182.146 22.75 182.162 22.75 182.178 22.75C182.193 22.75 182.209 22.75 182.225 22.75C182.241 22.75 182.256 22.75 182.272 22.75C182.288 22.75 182.304 22.75 182.32 22.75C182.335 22.75 182.351 22.75 182.367 22.75C182.383 22.75 182.399 22.75 182.414 22.75C182.43 22.75 182.446 22.75 182.462 22.75C182.478 22.75 182.494 22.75 182.509 22.75C182.525 22.75 182.541 22.75 182.557 22.75C182.573 22.75 182.589 22.75 182.604 22.75C182.62 22.75 182.636 22.75 182.652 22.75C182.668 22.75 182.684 22.75 182.7 22.75C182.715 22.75 182.731 22.75 182.747 22.75C182.763 22.75 182.779 22.75 182.795 22.75C182.811 22.75 182.827 22.75 182.843 22.75C182.858 22.75 182.874 22.75 182.89 22.75C182.906 22.75 182.922 22.75 182.938 22.75C182.954 22.75 182.97 22.75 182.986 22.75C183.002 22.75 183.018 22.75 183.034 22.75C183.049 22.75 183.065 22.75 183.081 22.75C183.097 22.75 183.113 22.7
15435 183.129 22.75C183.145 22.75 183.161 22.75 183.177 22.75C183.193 22.75 183.209 22.75 183.225 22.75C183.241 22.75 183.257 22.75 183.273 22.75C183.289 22.75 183.305 22.75 183.321 22.75C183.337 22.75 183.353 22.75 183.369 22.75C183.385 22.75 183.401 22.75 183.417 22.75C183.433 22.75 183.449 22.75 183.465 22.75C183.481 22.75 183.497 22.75 183.513 22.75C183.529 22.75 183.545 22.75 183.561 22.75C183.577 22.75 183.593 22.75 183.609 22.75C183.625 22.75 183.641 22.75 183.657 22.75C183.673 22.75 183.689 22.75 183.705 22.75C183.721 22.75 183.737 22.75 183.753 22.75C183.769 22.75 183.785 22.75 183.801 22.75C183.817 22.75 183.833 22.75 183.849 22.75C183.865 22.75 183.882 22.75 183.898 22.75C183.914 22.75 183.93 22.75 183.946 22.75C183.962 22.75 183.978 22.75 183.994 22.75C184.01 22.75 184.026 22.75 184.042 22.75C184.058 22.75 184.074 22.75 184.091 22.75C184.107 22.75 184.123 22.75 184.139 22.75C184.155 22.75 184.171 22.75 184.187 22.75C184.203 22.75 184.219 22.75 184.236 22.75C184.252 22.75 184.268 22.75 184.284 22.75C184.3 22.75 184.316 22.75 184.332 22.75C184.348 22.75 184.365 22.75 184.381 22.75C184.397 22.75 184.413 22.75 184.429 22.75C184.445 22.75 184.461 22.75 184.478 22.75C184.494 22.75 184.51 22.75 184.526 22.75C184.542 22.75 184.558 22.75 184.574 22.75C184.591 22.75 184.607 22.75 184.623 22.75C184.639 22.75 184.655 22.75 184.671 22.75C184.688 22.75 184.704 22.75 184.72 22.75C184.736 22.75 184.752 22.75 184.768 22.75C184.785 22.75 184.801 22.75 184.817 22.75C184.833 22.75 184.849 22.75 184.866 22.75C184.882 22.75 184.898 22.75 184.914 22.75C184.93 22.75 184.947 22.75 184.963 22.75C184.979 22.75 184.995 22.75 185.011 22.75C185.028 22.75 185.044 22.75 185.06 22.75C185.076 22.75 185.093 22.75 185.109 22.75C185.125 22.75 185.141 22.75 185.157 22.75C185.174 22.75 185.19 22.75 185.206 22.75C185.222 22.75 185.239 22.75 185.255 22.75C185.271 22.75 185.287 22.75 185.304 22.75C185.32 22.75 185.336 22.75 185.352 22.75C185.369 22.75 185.385 22.75 185.401 22.75C185.417 22.75 185.434 22.7
15435 185.45 22.75C185.466 22.75 185.482 22.75 185.499 22.75C185.515 22.75 185.531 22.75 185.547 22.75C185.564 22.75 185.58 22.75 185.596 22.75C185.612 22.75 185.629 22.75 185.645 22.75C185.661 22.75 185.678 22.75 185.694 22.75C185.71 22.75 185.726 22.75 185.743 22.75C185.759 22.75 185.775 22.75 185.792 22.75C185.808 22.75 185.824 22.75 185.84 22.75C185.857 22.75 185.873 22.75 185.889 22.75C185.906 22.75 185.922 22.75 185.938 22.75C185.954 22.75 185.971 22.75 185.987 22.75C186.003 22.75 186.02 22.75 186.036 22.75C186.052 22.75 186.069 22.75 186.085 22.75C186.101 22.75 186.118 22.75 186.134 22.75C186.15 22.75 186.166 22.75 186.183 22.75C186.199 22.75 186.215 22.75 186.232 22.75C186.248 22.75 186.264 22.75 186.281 22.75C186.297 22.75 186.313 22.75 186.33 22.75C186.346 22.75 186.362 22.75 186.379 22.75C186.395 22.75 186.411 22.75 186.428 22.75C186.444 22.75 186.46 22.75 186.477 22.75C186.493 22.75 186.509 22.75 186.526 22.75C186.542 22.75 186.558 22.75 186.575 22.75C186.591 22.75 186.608 22.75 186.624 22.75C186.64 22.75 186.657 22.75 186.673 22.75C186.689 22.75 186.706 22.75 186.722 22.75C186.738 22.75 186.755 22.75 186.771 22.75C186.787 22.75 186.804 22.75 186.82 22.75C186.836 22.75 186.853 22.75 186.869 22.75C186.886 22.75 186.902 22.75 186.918 22.75C186.935 22.75 186.951 22.75 186.967 22.75C186.984 22.75 187 22.75 187.017 22.75C187.033 22.75 187.049 22.75 187.066 22.75C187.082 22.75 187.098 22.75 187.115 22.75C187.131 22.75 187.148 22.75 187.164 22.75C187.18 22.75 187.197 22.75 187.213 22.75C187.229 22.75 187.246 22.75 187.262 22.75C187.279 22.75 187.295 22.75 187.311 22.75C187.328 22.75 187.344 22.75 187.36 22.75C187.377 22.75 187.393 22.75 187.41 22.75C187.426 22.75 187.442 22.7
15435 187.459 22.75C187.475 22.75 187.492 22.75 187.508 22.75C187.524 22.75 187.541 22.75 187.557 22.75C187.574 22.75 187.59 22.75 187.606 22.75C187.623 22.75 187.639 22.75 187.656 22.75C187.672 22.75 187.688 22.75 187.705 22.75C187.721 22.75 187.738 22.75 187.754 22.75C187.77 22.75 187.787 22.75 187.803 22.75C187.82 22.75 187.836 22.75 187.852 22.75C187.869 22.75 187.885 22.75 187.902 22.75C187.918 22.75 187.934 22.75 187.951 22.75C187.967 22.75 187.984 22.75 188 22.75V21.25C187.984 21.25 187.967 21.25 187.951 21.25C187.934 21.25 187.918 21.25 187.902 21.25C187.885 21.25 187.869 21.25 187.852 21.25C187.836 21.25 187.82 21.25 187.803 21.25C187.787 21.25 187.77 21.25 187.754 21.25C187.738 21.25 187.721 21.25 187.705 21.25C187.688 21.25 187.672 21.25 187.656 21.25C187.639 21.25 187.623 21.25 187.606 21.25C187.59 21.25 187.574 21.25 187.557 21.25C187.541 21.25 187.524 21.25 187.508 21.25C187.492 21.25 187.475 21.25 187.459 21.25C187.442 21.25 187.426 21.25 187.41 21.25C187.393 21.25 187.377 21.25 187.36 21.25C187.344 21.25 187.328 21.25 187.311 21.25C187.295 21.25 187.279 21.25 187.262 21.25C187.246 21.25 187.229 21.25 187.213 21.25C187.197 21.25 187.18 21.25 187.164 21.25C187.148 21.25 187.131 21.25 187.115 21.25C187.098 21.25 187.082 21.25 187.066 21.25C187.049 21.25 187.033 21.25 187.017 21.25C187 21.25 186.984 21.25 186.967 21.25C186.951 21.25 186.935 21.25 186.918 21.25C186.902 21.25 186.886 21.25 186.869 21.25C186.853 21.25 186.836 21.25 186.82 21.25C186.804 21.25 186.787 21.25 186.771 21.25C186.755 21.25 186.738 21.25 186.722 21.25C186.706 21.25 186.689 21.25 186.673 21.25C186.657 21.25 186.64 21.25 186.624 21.25C186.608 21.25 186.591 21.25 186.575 21.25C186.558 21.25 186.542 21.25 186.526 21.25C186.509 21.25 186.493 21.25 186.477 21.25C186.46 21.25 186.444 21.25 186.428 21.25C186.411 21.25 186.395 21.25 186.379 21.25C186.362 21.25 186.346 21.25 186.33 21.25C186.313 21.25 186.297 21.25 186.281 21.25C186.264 21.25 186.248 21.25 186.232 21.25C186.215 21.25 186.199 21.25 186.183 21.25C186.166 21.25 186.15 21.25 186.134 21.25C186.118 21.25 186.101 21.25 186.085 21.25C186.069 21.25 186.052 21.25 186.036 21.25C186.02 21.25 186.003 21.25 185.987 21.25C185.971 21.25 185.954 21.25 185.938 21.25C185.922 21.25 185.906 21.25 185.889 21.25C185.873 21.25 185.857 21.25 185.84 21.25C185.824 21.25 185.808 21.25 185.792 21.25C185.775 21.25 185.759 21.25 185.743 21.25C185.726 21.25 185.71 21.25 185.694 21.25C185.678 21.25 185.661 21.25 185.645 21.25C185.629 21.25 185.612 21.25 185.596 21.25C185.58 21.25 185.564 21.25 185.547 21.25C185.531 21.25 185.515 21.25 185.499 21.25C185.482 21.25 185.466 21.25 185.45 21.25C185.434 21.25 185.417 21.25 185.401 21.25C185.385 21.25 185.369 21.25 185.352 21.25C185.336 21.25 185.32 21.25 185.304 21.25C185.287 21.25 185.271 21.25 185.255 21.25C185.239 21.25 185.222 21.25 185.206 21.25C185.19 21.25 185.174 21.25 185.157 21.25C185.141 21.25 185.125 21.25 185.109 21.25C185.093 21.25 185.076 21.25 185.06 21.25C185.044 21.25 185.028 21.25 185.011 21.25C184.995 21.25 184.979 21.25 184.963 21.25C184.947 21.25 184.93 21.25 184.914 21.25C184.898 21.25 184.882 21.25 184.866 21.25C184.849 21.25 184.833 21.25 184.817 21.25C184.801 21.25 184.785 21.25 184.768 21.25C184.752 21.25 184.736 21.25 184.72 21.25C184.704 21.25 184.688 21.25 184.671 21.25C184.655 21.25 184.639 21.25 184.623 21.25C184.607 21.25 184.591 21.25 184.574 21.25C184.558 21.25 184.542 21.25 184.526 21.25C184.51 21.25 184.494 21.25 184.478 21.25C184.461 21.25 184.445 21.25 184.429 21.25C184.413 21.25 184.397 21.25 184.381 21.25C184.365 21.25 184.348 21.25 184.332 21.25C184.316 21.25 184.3 21.25 184.284 21.25C184.268 21.25 184.252 21.25 184.236 21.25C184.219 21.25 184.203 21.25 184.187 21.25C184.171 21.25 184.155 21.25 184.139 21.25C184.123 21.25 184.107 21.25 184.091 21.25C184.074 21.25 184.058 21.25 184.042 21.25C184.026 21.25 184.01 21.25 183.994 21.25C183.978 21.25 183.962 21.25 183.946 21.25C183.93 21.25 183.914 21.25 183.898 21.25C183.882 21.25 183.865 21.25 183.849 21.25C183.833 21.25 183.817 21.25 183.801 21.25C183.785 21.25 183.769 21.25 183.753 21.25C183.737 21.25 183.721 21.25 183.705 21.25C183.689 21.25 183.673 21.25 183.657 21.25C183.641 21.25 183.625 21.25 183.609 21.25C183.593 21.25 183.577 21.25 183.561 21.25C183.545 21.25 183.529 21.25 183.513 21.25C183.497 21.25 183.481 21.25 183.465 21.25C183.449 21.25 183.433 21.25 183.417 21.25C183.401 21.25 183.385 21.25 183.369 21.25C183.353 21.25 183.337 21.25 183.321 21.25C183.305 21.25 183.289 21.25 183.273 21.25C183.257 21.25 183.241 21.25 183.225 21.25C183.209 21.25 183.193 21.25 183.177 21.25C183.161 21.25 183.145 21.25 183.129 21.25C183.113 21.25 183.097 21.25 183.081 21.25C183.065 21.25 183.049 21.25 183.034 21.25C183.018 21.25 183.002 21.25 182.986 21.25C182.97 21.25 182.954 21.25 182.938 21.25C182.922 21.25 182.906 21.25 182.89 21.25C182.874 21.25 182.858 21.25 182.843 21.25C182.827 21.25 182.811 21.25 182.795 21.25C182.779 21.25 182.763 21.25 182.747 21.25C182.731 21.25 182.715 21.25 182.7 21.25C182.684 21.25 182.668 21.25 182.652 21.25C182.636 21.25 182.62 21.25 182.604 21.25C182.589 21.25 182.573 21.25 182.557 21.25C182.541 21.25 182.525 21.25 182.509 21.25C182.494 21.25 182.478 21.25 182.462 21.25C182.446 21.25 182.43 21.25 182.414 21.25C182.399 21.25 182.383 21.25 182.367 21.25C182.351 21.25 182.335 21.25 182.32 21.25C182.304 21.25 182.288 21.25 182.272 21.25C182.256 21.25 182.241 21.25 182.225 21.25C182.209 21.25 182.193 21.25 182.178 21.25C182.162 21.25 182.146 21.25 182.13 21.25C182.114 21.25 182.099 21.25 182.083 21.25C182.067 21.25 182.051 21.25 182.036 21.25C182.02 21.25 182.004 21.25 181.989 21.25C181.973 21.25 181.957 21.25 181.941 21.25C181.926 21.25 181.91 21.25 181.894 21.25C181.878 21.25 181.863 21.25 181.847 21.25C181.831 21.25 181.816 21.25 181.8 21.25C181.784 21.25 181.769 21.25 181.753 21.25C181.737 21.25 181.722 21.25 181.706 21.25C181.69 21.25 181.675 21.25 181.659 21.25C181.643 21.25 181.628 21.25 181.612 21.25C181.596 21.25 181.581 21.25 181.565 21.25C181.549 21.25 181.534 21.25 181.518 21.25C181.503 21.25 181.487 21.25 181.471 21.25C181.456 21.25 181.44 21.25 181.424 21.25C181.409 21.25 181.393 21.25 181.378 21.25C181.362 21.25 181.346 21.25 181.331 21.25C181.315 21.25 181.3 21.25 181.284 21.25C181.269 21.25 181.253 21.25 181.237 21.25C181.222 21.25 181.206 21.25 181.191 21.25C181.175 21.25 181.16 21.25 181.144 21.25C181.129 21.25 181.113 21.25 181.097 21.25C181.082 21.25 181.066 21.25 181.051 21.25C181.035 21.25 181.02 21.25 181.004 21.25C180.989 21.25 180.973 21.25 180.958 21.25C180.942 21.25 180.927 21.25 180.911 21.25C180.896 21.25 180.88 21.25 180.865 21.25C180.85 21.25 180.834 21.25 180.819 21.25C180.803 21.25 180.788 21.25 180.772 21.25C180.757 21.25 180.741 21.25 180.726 21.25C180.71 21.25 180.695 21.25 180.68 21.25C180.664 21.25 180.649 21.25 180.633 21.25C180.618 21.25 180.603 21.25 180.587 21.25C180.572 21.25 180.556 21.25 180.541 21.25C180.526 21.25 180.51 21.25 180.495 21.25C180.479 21.25 180.464 21.25 180.449 21.25C180.433 21.25 180.418 21.25 180.403 21.25C180.387 21.25 180.372 21.25 180.357 21.25C180.341 21.25 180.326 21.25 180.311 21.25C180.295 21.25 180.28 21.25 180.265 21.25C180.249 21.25 180.234 21.25 180.219 21.25C180.203 21.25 180.188 21.25 180.173 21.25C180.157 21.25 180.142 21.25 180.127 21.25C180.112 21.25 180.096 21.25 180.081 21.25C180.066 21.25 180.051 21.25 180.035 21.25C180.02 21.25 180.005 21.25 179.99 21.25C179.974 21.25 179.959 21.25 179.944 21.25C179.929 21.25 179.913 21.25 179.898 21.25C179.883 21.25 179.868 21.25 179.853 21.25C179.837 21.25 179.822 21.25 179.807 21.25C179.792 21.25 179.777 21.25 179.761 21.25C179.746 21.25 179.731 21.25 179.716 21.25C179.701 21.25 179.686 21.25 179.671 21.25C179.655 21.25 179.64 21.25 179.625 21.25C179.61 21.25 179.595 21.25 179.58 21.25C179.565 21.25 179.55 21.25 179.534 21.25C179.519 21.25 179.504 21.25 179.489 21.25C179.474 21.25 179.459 21.25 179.444 21.25C179.429 21.25 179.414 21.25 179.399 21.25C179.384 21.25 179.369 21.25 179.353 21.25C179.338 21.25 179.323 21.25 179.308 21.25C179.293 21.25 179.278 21.25 179.263 21.25C179.248 21.25 179.233 21.25 179.218 21.25C179.203 21.25 179.188 21.25 179.173 21.25C179.158 21.25 179.143 21.25 179.128 21.25C179.113 21.25 179.098 21.25 179.083 21.25C179.068 21.25 179.053 21.25 179.038 21.25C179.023 21.25 179.009 21.25 178.994 21.25C178.979 21.25 178.964 21.25 178.949 21.25C178.934 21.25 178.919 21.25 178.904 21.25C178.889 21.25 178.874 21.25 178.859 21.25C178.844 21.25 178.83 21.25 178.815 21.25C178.8 21.25 178.785 21.25 178.77 21.25C178.755 21.25 178.74 21.25 178.726 21.25C178.711 21.25 178.696 21.25 178.681 21.25C178.666 21.25 178.651 21.25 178.637 21.25C178.622 21.25 178.607 21.25 178.592 21.25C178.577 21.25 178.563 21.25 178.548 21.25C178.533 21.25 178.518 21.25 178.503 21.25C178.489 21.25 178.474 21.25 178.459 21.25C178.444 21.25 178.43 21.25 178.415 21.25C178.4 21.25 178.385 21.25 178.371 21.25C178.356 21.25 178.341 21.25 178.326 21.25C178.312 21.25 178.297 21.25 178.282 21.25C178.268 21.25 178.253 21.25 178.238 21.25C178.224 21.25 178.209 21.25 178.194 21.25C178.18 21.25 178.165 21.25 178.15 21.25C178.136 21.25 178.121 21.25 178.106 21.25C178.092 21.25 178.077 21.25 178.063 21.25C178.048 21.25 178.033 21.25 178.019 21.25C178.004 21.25 177.99 21.25 177.975 21.25C177.9
15436 21.25 177.946 21.25 177.931 21.25C177.917 21.25 177.902 21.25 177.888 21.25C177.873 21.25 177.858 21.25 177.844 21.25C177.829 21.25 177.815 21.25 177.8 21.25C177.786 21.25 177.771 21.25 177.757 21.25C177.742 21.25 177.728 21.25 177.713 21.25C177.699 21.25 177.684 21.25 177.67 21.25C177.655 21.25 177.641 21.25 177.627 21.25C177.612 21.25 177.598 21.25 177.583 21.25C177.569 21.25 177.554 21.25 177.54 21.25C177.526 21.25 177.511 21.25 177.497 21.25C177.482 21.25 177.468 21.25 177.454 21.25C177.439 21.25 177.425 21.25 177.41 21.25C177.396 21.25 177.382 21.25 177.367 21.25C177.353 21.25 177.339 21.25 177.324 21.25C177.31 21.25 177.296 21.25 177.281 21.25C177.267 21.25 177.253 21.25 177.238 21.25C177.224 21.25 177.21 21.25 177.196 21.25C177.181 21.25 177.167 21.25 177.153 21.25C177.138 21.25 177.124 21.25 177.11 21.25C177.096 21.25 177.081 21.25 177.067 21.25C177.053 21.25 177.039 21.25 177.025 21.25C177.01 21.25 176.996 21.25 176.982 21.25C176.968 21.25 176.954 21.25 176.939 21.25C176.925 21.25 176.911 21.25 176.897 21.25C176.883 21.25 176.869 21.25 176.854 21.25C176.84 21.25 176.826 21.25 176.812 21.25C176.798 21.25 176.784 21.25 176.77 21.25C176.756 21.25 176.742 21.25 176.727 21.25C176.713 21.25 176.699 21.25 176.685 21.25C176.671 21.25 176.657 21.25 176.643 21.25C176.629 21.25 176.615 21.25 176.601 21.25C176.587 21.25 176.573 21.25 176.559 21.25C176.545 21.25 176.531 21.25 176.517 21.25C176.503 21.25 176.489 21.25 176.475 21.25C176.461 21.25 176.447 21.25 176.433 21.25C176.419 21.25 176.405 21.25 176.391 21.25C176.377 21.25 176.363 21.25 176.349 21.25C176.336 21.25 176.322 21.25 176.308 21.25C176.294 21.25 176.28 21.25 176.266 21.25C176.252 21.25 176.238 21.25 176.224 21.25C176.211 21.25 176.197 21.25 176.183 21.25C176.169 21.25 176.155 21.25 176.141 21.25C176.128 21.25 176.114 21.25 176.1 21.25C176.086 21.25 176.072 21.25 176.059 21.25C176.045 21.25 176.031 21.25 176.017 21.25C176.004 21.25 175.99 21.25 175.976 21.25C175.962 21.25 175.949 21.25 175.935 21.25C175.921 21.25 175.907 21.25 175.894 21.25C175.88 21.25 175.866 21.25 175.853 21.25C175.839 21.25 175.825 21.25 175.812 21.25C175.798 21.25 175.784 21.25 175.771 21.25C175.757 21.25 175.743 21.25 175.73 21.25C175.716 21.25 175.702 21.25 175.689 21.25C175.675 21.25 175.662 21.25 175.648 21.25C175.635 21.25 175.621 21.25 175.607 21.25C175.594 21.25 175.58 21.25 175.567 21.25C175.553 21.25 175.54 21.25 175.526 21.25C175.513 21.25 175.499 21.25 175.486 21.25C175.472 21.25 175.459 21.25 175.445 21.25C175.432 21.25 175.418 21.25 175.405 21.25C175.391 21.25 175.378 21.25 175.364 21.25C175.351 21.25 175.337 21.25 175.324 21.25C175.311 21.25 175.297 21.25 175.284 21.25C175.27 21.25 175.257 21.25 175.244 21.25C175.23 21.25 175.217 21.25 175.203 21.25C175.19 21.25 175.177 21.25 175.163 21.25C175.15 21.25 175.137 21.25 175.123 21.25C175.11 21.25 175.097 21.25 175.084 21.25C175.07 21.25 175.057 21.25 175.044 21.25C175.03 21.25 175.017 21.25 175.004 21.25C174.991 21.25 174.977 21.25 174.964 21.25C174.951 21.25 174.938 21.25 174.924 21.25C174.911 21.25 174.898 21.25 174.885 21.25C174.872 21.25 174.859 21.25 174.845 21.25C174.832 21.25 174.819 21.25 174.806 21.25C174.793 21.25 174.78 21.25 174.766 21.25C174.753 21.25 174.74 21.25 174.727 21.25C174.714 21.25 174.701 21.25 174.688 21.25C174.675 21.25 174.662 21.25 174.649 21.25C174.636 21.25 174.623 21.25 174.609 21.25C174.596 21.25 174.583 21.25 174.57 21.25C174.557 21.25 174.544 21.25 174.531 21.25C174.518 21.25 174.505 21.25 174.492 21.25C174.479 21.25 174.466 21.25 174.454 21.25C174.441 21.25 174.428 21.25 174.415 21.25C174.402 21.25 174.389 21.25 174.376 21.25C174.363 21.25 174.35 21.25 174.337 21.25C174.324 21.25 174.312 21.25 174.299 21.25C174.286 21.25 174.273 21.25 174.26 21.25C174.247 21.25 174.234 21.25 174.222 21.25C174.209 21.25 174.196 21.25 174.183 21.25C174.17 21.25 174.158 21.25 174.145 21.25C174.132 21.25 174.119 21.25 174.107 21.25C174.094 21.25 174.081 21.25 174.068 21.25C174.056 21.25 174.043 21.25 174.03 21.25C174.018 21.25 174.005 21.25 173.992 21.25C173.98 21.25 173.967 21.25 173.954 21.25C173.942 21.25 173.929 21.25 173.916 21.25C173.904 21.25 173.89
15431 21.25 173.878 21.25C173.866 21.25 173.853 21.25 173.841 21.25C173.828 21.25 173.816 21.25 173.803 21.25C173.79 21.25 173.778 21.25 173.765 21.25C173.753 21.25 173.74 21.25 173.728 21.25C173.715 21.25 173.703 21.25 173.69 21.25C173.678 21.25 173.665 21.25 173.653 21.25C173.64 21.25 173.628 21.25 173.615 21.25C173.603 21.25 173.591 21.25 173.578 21.25C173.566 21.25 173.553 21.25 173.541 21.25C173.529 21.25 173.516 21.25 173.504 21.25C173.491 21.25 173.479 21.25 173.467 21.25C173.454 21.25 173.442 21.25 173.43 21.25C173.417 21.25 173.405 21.25 173.393 21.25C173.38 21.25 173.368 21.25 173.356 21.25C173.344 21.25 173.331 21.25 173.319 21.25C173.307 21.25 173.295 21.25 173.282 21.25C173.27 21.25 173.258 21.25 173.246 21.25C173.234 21.25 173.221 21.25 173.209 21.25C173.197 21.25 173.185 21.25 173.173 21.25C173.161 21.25 173.148 21.25 173.136 21.25C173.124 21.25 173.112 21.25 173.1 21.25C173.088 21.25 173.076 21.25 173.064 21.25C173.052 21.25 173.04 21.25 173.027 21.25C173.015 21.25 173.003 21.25 172.991 21.25C172.979 21.25 172.967 21.25 172.955 21.25C172.943 21.25 172.931 21.25 172.919 21.25C172.907 21.25 172.895 21.25 172.883 21.25C172.872 21.25 172.86 21.25 172.848 21.25C172.836 21.25 172.824 21.25 172.812 21.25C172.8 21.25 172.788 21.25 172.776 21.25C172.764 21.25 172.752 21.25 172.741 21.25C172.729 21.25 172.717 21.25 172.705 21.25C172.693 21.25 172.681 21.25 172.67 21.25C172.658 21.25 172.646 21.25 172.634 21.25C172.623 21.25 172.611 21.25 172.599 21.25C172.587 21.25 172.576 21.25 172.564 21.25C172.552 21.25 172.54 21.25 172.529 21.25C172.517 21.25 172.505 21.25 172.494 21.25C172.482 21.25 172.47 21.25 172.459 21.25C172.447 21.25 172.435 21.25 172.424 21.25C172.412 21.25 172.401 21.25 172.389 21.25C172.377 21.25 172.366 21.25 172.354 21.25C172.343 21.25 172.331 21.25 172.32 21.25C172.308 21.25 172.297 21.25 172.285 21.25C172.274 21.25 172.262 21.25 172.251 21.25C172.239 21.25 172.228 21.25 172.216 21.25C172.205 21.25 172.193 21.25 172.182 21.25C172.17 21.25 172.159 21.25 172.148 21.25C172.136 21.25 172.125 21.25 172.113 21.25C172.102 21.25 172.091 21.25 172.079 21.25C172.068 21.25 172.057 21.25 172.045 21.25C172.034 21.25 172.023 21.25 172.011 21.25C172 21.25 171.989 21.25 171.977 21.25C171.966 21.25 171.955 21.25 171.944 21.25C171.932 21.25 171.921 21.25 171.91 21.25C171.899 21.25 171.888 21.25 171.876 21.25C171.865 21.25 171.854 21.25 171.843 21.25C171.832 21.25 171.821 21.25 171.809 21.25C171.798 21.25 171.787 21.25 171.776 21.25C171.765 21.25 171.754 21.25 171.743 21.25C171.732 21.25 171.721 21.25 171.71 21.25C171.699 21.25 171.688 21.25 171.677 21.25C171.665 21.25 171.654 21.25 171.643 21.25C171.632 21.25 171.621 21.25 171.611 21.25C171.6 21.25 171.589 21.25 171.578 21.25C171.567 21.25 171.556 21.25 171.545 21.25C171.534 21.25 171.523 21.25 171.512 21.25C171.501 21.25 171.49 21.25 171.48 21.25C171.469 21.25 171.458 21.25 171.447 21.25C171.436 21.25 171.425 21.25 171.415 21.25C171.404 21.25 171.393 21.25 171.382 21.25C171.371 21.25 171.361 21.25 171.35 21.25C171.339 21.25 171.329 21.25 171.318 21.25C171.307 21.25 171.296 21.25 171.286 21.25C171.275 21.25 171.264 21.25 171.254 21.25C171.243 21.25 171.232 21.25 171.222 21.25C171.211 21.25 171.201 21.25 171.19 21.25C171.179 21.25 171.169 21.25 171.158 21.25C171.148 21.25 171.137 21.25 171.127 21.25C171.116 21.25 171.105 21.25 171.095 21.25C171.084 21.25 171.074 21.25 171.063 21.25C171.053 21.25 171.042 21.25 171.032 21.25C171.022 21.25 171.011 21.25 171.001 21.25C170.99 21.25 170.98 21.25 170.969 21.25C170.959 21.25 170.949 21.25 170.938 21.25C170.928 21.25 170.918 21.25 170.907 21.25C170.897 21.25 170.887 21.25 170.876 21.25C170.866 21.25 170.856 21.25 170.845 21.25C170.835 21.25 170.825 21.25 170.815 21.25C170.804 21.25 170.794 21.25 170.784 21.25C170.774 21.25 170.764 21.25 170.753 21.25C170.743 21.25 170.733 21.25 170.723 21.25C170.713 21.25 170.703 21.25 170.692 21.25C170.682 21.25 170.672 21.25 170.662 21.25C170.652 21.25 170.642 21.25 170.632 21.25C170.622 21.25 170.612 21.25 170.602 21.25C170.592 21.25 170.582 21.25 170.572 21.25C170.562 21.25 170.552 21.25 170.542 21.25C170.532 21.25 170.522 21.25 170.512 21.25C170.502 21.25 170.492 21.25 170.482 21.25C170.472 21.25 170.462 21.25 170.452 21.25C170.442 21.25 170.432 21.25 170.423 21.25C170.413 21.25 170.403 21.25 170.393 21.25C170.383 21.25 170.373 21.25 170.364 21.25C170.354 21.25 170.344 21.25 170.334 21.25C170.325 21.25 170.315 21.25 170.305 21.25C170.295 21.25 170.286 21.25 170.276 21.25C170.266 21.25 170.257 21.25 170.247 21.25C170.237 21.25 170.228 21.25 170.218 21.25C170.208 21.25 170.199 21.25 170.189 21.25C170.179 21.25 170.17 21.25 170.16 21.25C170.151 21.25 170.141 21.25 170.132 21.25C170.122 21.25 170.113 21.25 170.103 21.25C170.093 21.25 170.084 21.25 170.075 21.25C170.065 21.25 170.056 21.25 170.046 21.25C170.037 21.25 170.027 21.25 170.018 21.25C170.008 21.25 169.999 21.25 169.99 21.25C169.98 21.25 169.971 21.25 169.961 21.25C169.952 21.25 169.943 21.25 169.933 21.25C169.924 21.25 169.915 21.25 169.906 21.25C169.896 21.25 169.887 21.25 169.878 21.25C169.868 21.25 169.859 21.25 169.85 21.25C169.841 21.25 169.832 21.25 169.822 21.25C169.813 21.25 169.804 21.25 169.795 21.25C169.786 21.25 169.776 21.25 169.767 21.25C169.758 21.25 169.749 21.25 169.74 21.25C169.731 21.25 169.722 21.25 169.713 21.25C169.704 21.25 169.695 21.25 169.686 21.25C169.677 21.25 169.668 21.25 169.659 21.25C169.65 21.25 169.641 21.25 169.632 21.25C169.623 21.25 169.614 21.25 169.605 21.25C169.596 21.25 169.587 21.25 169.578 21.25C169.569 21.25 169.56 21.25 169.551 21.25C169.542 21.25 169.534 21.25 169.525 21.25C169.516 21.25 169.507 21.25 169.498 21.25C169.489 21.25 169.481 21.25 169.472 21.25C169.463 21.25 169.454 21.25 169.446 21.25C169.437 21.25 169.428 21.25 169.419 21.25C169.411 21.25 169.402 21.25 169.393 21.25C169.385 21.25 169.376 21.25 169.367 21.25C169.359 21.25 169.35 21.25 169.342 21.25C169.333 21.25 169.324 21.25 169.316 21.25C169.307 21.25 169.299 21.25 169.29 21.25C169.282 21.25 169.273 21.25 169.265 21.25C169.256 21.25 169.248 21.25 169.239 21.25C169.231 21.25 169.222 21.25 169.214 21.25C169.205 21.25 169.197 21.25 169.188 21.25C169.18 21.25 169.172 21.25 169.163 21.25C169.155 21.25 169.147 21.25 169.138 21.25C169.13 21.25 169.122 21.25 169.113 21.25C169.105 21.25 169.097 21.25 169.088 21.25C169.08 21.25 169.072 21.25 169.064 21.25C169.055 21.25 169.047 21.25 169.039 21.25C169.031 21.25 169.023 21.25 169.014 21.25C169.006 21.25 168.998 21.25 168.99 21.25C168.982 21.25 168.974 21.25 168.966 21.25C168.958 21.25 168.949 21.25 168.941 21.25C168.933 21.25 168.925 21.25 168.917 21.25C168.909 21.25 168.901 21.25 168.893 21.25C168.885 21.25 168.877 21.25 168.8
154369 21.25C168.861 21.25 168.853 21.25 168.845 21.25C168.838 21.25 168.83 21.25 168.822 21.25C168.814 21.25 168.806 21.25 168.798 21.25C168.79 21.25 168.782 21.25 168.775 21.25C168.767 21.25 168.759 21.25 168.751 21.25C168.743 21.25 168.736 21.25 168.728 21.25C168.72 21.25 168.712 21.25 168.705 21.25C168.697 21.25 168.689 21.25 168.682 21.25C168.674 21.25 168.666 21.25 168.659 21.25C168.651 21.25 168.643 21.25 168.636 21.25C168.628 21.25 168.621 21.25 168.613 21.25C168.605 21.25 168.598 21.25 168.59 21.25C168.583 21.25 168.575 21.25 168.568 21.25C168.56 21.25 168.553 21.25 168.545 21.25C168.538 21.25 168.53 21.25 168.523 21.25C168.516 21.25 168.508 21.25 168.501 21.25C168.493 21.25 168.486 21.25 168.479 21.25C168.471 21.25 168.464 21.25 168.457 21.25C168.449 21.25 168.442 21.25 168.435 21.25C168.427 21.25 168.42 21.25 168.413 21.25C168.406 21.25 168.398 21.25 168.391 21.25C168.384 21.25 168.377 21.25 168.37 21.25C168.362 21.25 168.355 21.25 168.348 21.25C168.341 21.25 168.334 21.25 168.327 21.25C168.32 21.25 168.313 21.25 168.306 21.25C168.298 21.25 168.291 21.25 168.284 21.25C168.277 21.25 168.27 21.25 168.263 21.25C168.256 21.25 168.249 21.25 168.242 21.25C168.235 21.25 168.229 21.25 168.222 21.25C168.215 21.25 168.208 21.25 168.201 21.25C168.194 21.25 168.187 21.25 168.18 21.25C168.173 21.25 168.167 21.25 168.16 21.25C168.153 21.25 168.146 21.25 168.139 21.25C168.133 21.25 168.126 21.25 168.119 21.25C168.112 21.25 168.106 21.25 168.099 21.25C168.092 21.25 168.086 21.25 168.079 21.25C168.072 21.25 168.066 21.25 168.059 21.25C168.052 21.25 168.046 21.25 168.039 21.25C168.033 21.25 168.026 21.25 168.02 21.25C168.013 21.25 168.007 21.25 168 21.25V22.75ZM188 22.75C190.117 22.75 191.864 22.2192 193.061 20.8733C194.239 19.5478 194.75 17.5766 194.75 15H193.25C193.25 17.4234 192.761 18.9522 191.939 19.8767C191.136 20.7808 189.883 21.25 188 21.25V22.75ZM194.75 15C194.75 14.9902 194.75 14.9804 194.75 14.9706C194.75 14.9608 194.75 14.9509 194.75 14.941C194.75 14.9312 194.75 14.9213 194.75 14.9113C194.75 14.9014 194.75 14.8914 194.75 14.8814C194.75 14.8714 194.75 14.8614 194.75 14.8514C194.75 14.8413 194.75 14.8312 194.75 14.8211C194.75 14.811 194.75 14.8009 194.75 14.7907C194.75 14.7806 194.75 14.7704 194.75 14.7602C194.75 14.7499 194.75 14.7397 194.75 14.7294C194.75 14.7192 194.75 14.7089 194.75 14.6985C194.75 14.6882 194.75 14.6778 194.75 14.6675C194.75 14.6571 194.75 14.6467 194.75 14.6362C194.75 14.6258 194.75 14.6153 194.75 14.6048C194.75 14.5943 194.75 14.5838 194.75 14.5733C194.75 14.5627 194.75 14.5521 194.75 14.5415C194.75 14.5309 194.75 14.5203 194.75 14.5097C194.75 14.499 194.75 14.4883 194.75 14.4776C194.75 14.4669 194.75 14.4562 194.75 14.4454C194.75 14.4346 194.75 14.4238 194.75 14.413C194.75 14.4022 194.75 14.3914 194.75 14.3805C194.75 14.3696 194.75 14.3587 194.75 14.3478C194.75 14.3369 194.75 14.3259 194.75 14.3149C194.75 14.304 194.75 14.293 194.75 14.2819C194.75 14.2709 194.75 14.2598 194.75 14.2488C194.75 14.2377 194.75 14.2266 194.75 14.2154C194.75 14.2043 194.75 14.1931 194.75 14.1819C194.75 14.1708 194.75 14.1595 194.75 14.1483C194.75 14.1371 194.75 14.1258 194.75 14.1145C194.75 14.1032 194.75 14.0919 194.75 14.0806C194.75 14.0692 194.75 14.0578 194.75 14.0464C194.75 14.0351 194.75 14.0236 194.75 14.0122C194.75 14.0007 194.75 13.9893 194.75 13.9778C194.75 13.9663 194.75 13.9547 194.75 13.9432C194.75 13.9317 194.75 13.9201 194.75 13.9085C194.75 13.8969 194.75 13.8853 194.75 13.8736C194.75 13.862 194.75 13.8503 194.75 13.8386C194.75 13.8269 194.75 13.8152 194.75 13.8034C194.75 13.7917 194.75 13.7799 194.75 13.7681C194.75 13.7563 194.75 13.7445 194.75 13.7326C194.75 13.7208 194.75 13.7089 194.75 13.697C194.75 13.6851 194.75 13.6732 194.75 13.6612C194.75 13.6493 194.75 13.6373 194.75 13.6253C194.75 13.6133 194.75 13.6013 194.75 13.5892C194.75 13.5772 194.75 13.5651 194.75 13.553C194.75 13.5409 194.75 13.5288 194.75 13.5166C194.75 13.5045 194.75 13.4923 194.75 13.4801C194.75 13.4679 194.75 13.4557 194.75 13.4435C194.75 13.4312 194.75 13.419 194.75 13.4067C194.75 13.3944 194.75 13.3821 194.75 13.3698C194.75 13.3574 194.75 13.3451 194.75 13.3327C194.75 13.3203 194.75 13.3079 194.75 13.2954C194.75 13.283 194.75 13.2706 194.75 13.2581C194.75 13.2456 194.75 13.2331 194.75 13.2206C194.75 13.208 194.75 13.1955 194.75 13.1829C194.75 13.1704 194.75 13.1578 194.75 13.1451C194.75 13.1325 194.75 13.1199 194.75 13.1072C194.75 13.0945 194.75 13.0818 194.75 13.0691C194.75 13.0564 194.75 13.0437 194.75 13.0309C194.75 13.0182 194.75 13.0054 194.75 12.9926C194.75 12.9798 194.75 12.967 194.75 12.9541C194.75 12.9413 194.75 12.9284 194.75 12.9155C194.75 12.9026 194.75 12.8897 194.75 12.8767C194.75 12.8638 194.75 12.8508 194.75 12.8378C194.75 12.8249 194.75 12.8118 194.75 12.7988C194.75 12.7858 194.75 12.7727 194.75 12.7597C194.75 12.7466 194.75 12.7335 194.75 12.7204C194.75 12.7072 194.75 12.6941 194.75 12.6809C194.75 12.6678 194.75 12.6546 194.75 12.6414C194.75 12.6282 194.75 12.6149 194.75 12.6017C194.75 12.5884 194.75 12.5752 194.75 12.5619C194.75 12.5486 194.75 12.5352 194.75 12.5219C194.75 12.5086 194.75 12.4952 194.75 12.4818C194.75 12.4684
1543194.75 12.455 194.75 12.4416C194.75 12.4282 194.75 12.4147 194.75 12.4013C194.75 12.3878 194.75 12.3743 194.75 12.3608C194.75 12.3473 194.75 12.3337 194.75 12.3202C194.75 12.3066 194.75 12.2931 194.75 12.2795C194.75 12.2659 194.75 12.2522 194.75 12.2386C194.75 12.225 194.75 12.2113 194.75 12.1976C194.75 12.1839 194.75 12.1702 194.75 12.1565C194.75 12.1428 194.75 12.129 194.75 12.1153C194.75 12.1015 194.75 12.0877 194.75 12.0739C194.75 12.0601 194.75 12.0463 194.75 12.0324C194.75 12.0186 194.75 12.0047 194.75 11.9908C194.75 11.9769 194.75 11.963 194.75 11.9491C194.75 11.9352 194.75 11.9212 194.75 11.9073C194.75 11.8933 194.75 11.8793 194.75 11.8653C194.75 11.8513 194.75 11.8372 194.75 11.8232C194.75 11.8091 194.75 11.7951 194.75 11.781C194.75 11.7669 194.75 11.7528 194.75 11.7386C194.75 11.7245 194.75 11.7104 194.75 11.6962C194.75 11.682 194.75 11.6678 194.75 11.6536C194.75 11.6394 194.75 11.6252 194.75 11.6109C194.75 11.5967 194.75 11.5824 194.75 11.5681C194.75 11.5538 194.75 11.5395 194.75 11.5252C194.75 11.5109 194.75 11.4965 194.75 11.4822C194.75 11.4678 194.75 11.4534 194.75 11.439C194.75 11.4246 194.75 11.4102 194.75 11.3957C194.75 11.3813 194.75 11.3668 194.75 11.3523C194.75 11.3379 194.75 11.3234 194.75 11.3088C194.75 11.2943 194.75 11.2798 194.75 11.2652C194.75 11.2507 194.75 11.2361 194.75 11.2215C194.75 11.2069 194.75 11.1923 194.75 11.1777C194.75 11.163 194.75 11.1484 194.75 11.1337C194.75 11.119 194.75 11.1044 194.75 11.0897C194.75 11.0749 194.75 11.0602 194.75 11.0455C194.75 11.0307 194.75 11.016 194.75 11.0012C194.75 10.9864 194.75 10.9716 194.75 10.9568C194.75 10.942 194.75 10.9272 194.75 10.9123C194.75 10.8975 194.75 10.8826 194.75 10.8677C194.75 10.8528 194.75 10.8379 194.75 10.823C194.75 10.8081 194.75 10.7931 194.75 10.7782C194.75 10.7632 194.75 10.7482 194.75 10.7332C194.75 10.7182 194.75 10.7032 194.75 10.6882C194.75 10.6732 194.75 10.6581 194.75 10.643C194.75 10.628 194.75 10.6129 194.75 10.5978C194.75 10.5827 194.75 10.5676 194.75 10.5524C194.75 10.5373 194.75 10.5222 194.75 10.507C194.75 10.4918 194.75 10.4766 194.75 10.4614C194.75 10.4462 194.75 10.431 194.75 10.4158C194.75 10.4005 194.75 10.3853 194.75 10.37C194.75 10.3547 194.75 10.3394 194.75 10.3241C194.75 10.3088 194.75 10.2935 194.75 10.2782C194.75 10.2628 194.75 10.2475 194.75 10.2321C194.75 10.2167 194.75 10.2014 194.75 10.1859C194.75 10.1705 194.75 10.1551 194.75 10.1397C194.75 10.1242 194.75 10.1088 194.75 10.0933C194.75 10.0779 194.75 10.0624 194.75 10.0469C194.75 10.0314 194.75 10.0158 194.75 10.0003C194.75 9.98477 194.75 9.96922 194.75 9.95365C194.75 9.93808 194.75 9.9225 194.75 9.9069C194.75 9.8913 194.75 9.87569 194.75 9.86005C194.75 9.84442 194.75 9.82878 194.75 9.81311C194.75 9.79745 194.75 9.78177 194.75 9.76608C194.75 9.75038 194.75 9.73468 194.75 9.71895C194.75 9.70322 194.75 9.68748 194.75 9.67173C194.75 9.65597 194.75 9.6402 194.75 9.62441C194.75 9.60863 194.75 9.59282 194.75 9.57701C194.75 9.56119 194.75 9.54536 194.75 9.52951C194.75 9.51366 194.75 9.4978 194.75 9.48192C194.75 9.46604 194.75 9.45015 194.75 9.43424C194.75 9.41833 194.75 9.40241 194.75 9.38647C194.75 9.37053 194.75 9.35458 194.75 9.33861C194.75 9.32265 194.75 9.30666 194.75 9.29067C194.75 9.27467 194.75 9.25866 194.75 9.24263C194.75 9.22661 194.75 9.21057 194.75 9.19451C194.75 9.17845 194.75 9.16239 194.75 9.1463C194.75 9.13022 194.75 9.11412 194.75 9.09801C194.75 9.08189 194.75 9.06577 194.75 9.04963C194.75 9.03348 194.75 9.01733 194.75 9.00116C194.75 8.98499 194.75 8.96881 194.75 8.95261C194.75 8.93641 194.75 8.9202 194.75 8.90397C194.75 8.88775 194.75 8.87151 194.75 8.85526C194.75 8.839 194.75 8.82274 194.75 8.80646C194.75 8.79018 194.75 8.77388 194.75 8.75757C194.75 8.74127 194.75 8.72495 194.75 8.70861C194.75 8.69228 194.75 8.67593 194.75 8.65957C194.75 8.6432 194.75 8.62683 194.75 8.61044C194.75 8.59405 194.75 8.57765 194.75 8.56123C194.75 8.54482 194.75 8.52839 194.75 8.51195C194.75 8.49551 194.75 8.47905 194.75 8.46259C194.75 8.44612 194.75 8.42964 194.75 8.41315C194.75 8.39665 194.75 8.38015 194.75 8.36363C194.75 8.34711 194.75 8.33058 194.75 8.31403C194.75 8.29749 194.75 8.28093 194.75 8.26436C194.75 8.24779 194.75 8.23121 194.75 8.21461C194.75 8.19802 194.75 8.18141 194.75 8.16479C194.75 8.14817 194.75 8.13153 194.75 8.11489C194.75 8.09824 194.75 8.08159 194.75 8.06492C194.75 8.04825 194.75 8.03157 194.75 8.01487C194.75 7.99818 194.75 7.98147 194.75 7.96475C194.75 7.94804 194.75 7.93131 194.75 7.91456C194.75 7.89782 194.75 7.88107 194.75 7.8643C194.75 7.84754 194.75 7.83076 194.75 7.81397C194.75 7.79718 194.75 7.78038 194.75 7.76357C194.75 7.74675 194.75 7.72993 194.75 7.71309C194.75 7.69626 194.75 7.67941 194.75 7.66255C194.75 7.64569 194.75 7.62882 194.75 7.61194C194.75 7.59505 194.75 7.57816 194.75 7.56126C194.75 7.54435 194.75 7.52744 194.75 7.51051C194.75 7.49358 194.75 7.47664 194.75 7.45969C194.75 7.44274 194.75 7.42578 194.75 7.40881C194.75 7.39184 194.75 7.37486 194.75 7.35787C194.75 7.34087 194.75 7.32387 194.75 7.30685C194.75 7.28984 194.75 7.27281 194.75 7.25578C194.75 7.23874 194.75 7.22169 194.75 7.20463C194.75 7.18758 194.75 7.17051 194.75 7.15343C194.75 7.13635 194.75 7.11926 194.75 7.10216C194.75 7.08506 194.75 7.06
1543795 194.75 7.05083C194.75 7.03371 194.75 7.01658 194.75 6.99944C194.75 6.9823 194.75 6.96515 194.75 6.94799C194.75 6.93083 194.75 6.91365 194.75 6.89647C194.75 6.87929 194.75 6.8621 194.75 6.8449C194.75 6.8277 194.75 6.81049 194.75 6.79326C194.75 6.77604 194.75 6.75881 194.75 6.74157C194.75 6.72433 194.75 6.70708 194.75 6.68982C194.75 6.67256 194.75 6.65529 194.75 6.63801C194.75 6.62073 194.75 6.60344 194.75 6.58615C194.75 6.56885 194.75 6.55154 194.75 6.53422C194.75 6.51691 194.75 6.49958 194.75 6.48225C194.75 6.46491 194.75 6.44757 194.75 6.43021C194.75 6.41286 194.75 6.3955 194.75 6.37812C194.75 6.36075 194.75 6.34337 194.75 6.32598C194.75 6.30859 194.75 6.29119 194.75 6.27378C194.75 6.25638 194.75 6.23896 194.75 6.22153C194.75 6.20411 194.75 6.18667 194.75 6.16923C194.75 6.15179 194.75 6.13434 194.75 6.11688C194.75 6.09942 194.75 6.08195 194.75 6.06447C194.75 6.04699 194.75 6.02951 194.75 6.01202C194.75 5.99452 194.75 5.97702 194.75 5.95951C194.75 5.942 194.75 5.92448 194.75 5.90695C194.75 5.88943 194.75 5.87189 194.75 5.85435C194.75 5.8368 194.75 5.81925 194.75 5.80169C194.75 5.78413 194.75 5.76657 194.75 5.74899C194.75 5.73142 194.75 5.71383 194.75 5.69624C194.75 5.67865 194.75 5.66105 194.75 5.64345C194.75 5.62584 194.75 5.60823 194.75 5.59061C194.75 5.57298 194.75 5.55536 194.75 5.53772C194.75 5.52008 194.75 5.50244 194.75 5.48479C194.75 5.46714 194.75 5.44948 194.75 5.43181C194.75 5.41414 194.75 5.39647 194.75 5.37879C194.75 5.36111 194.75 5.34342 194.75 5.32573C194.75 5.30803 194.75 5.29033 194.75 5.27262C194.75 5.25491 194.75 5.23719 194.75 5.21947C194.75 5.20175 194.75 5.18402 194.75 5.16628C194.75 5.14854 194.75 5.1308 194.75 5.11305C194.75 5.0953 194.75 5.07754 194.75 5.05978C194.75 5.04202 194.75 5.02425 194.75 5.00647C194.75 4.98869 194.75 4.97091 194.75 4.95312C194.75 4.93533 194.75 4.91753 194.75 4.89973C194.75 4.88193 194.75 4.86412 194.75 4.8463C194.75 4.82849 194.75 4.81067 194.75 4.79284C194.75 4.77501 194.75 4.75718 194.75 4.73934C194.75 4.7215 194.75 4.70365 194.75 4.6858C194.75 4.66795 194.75 4.65009 194.75 4.63223C194.75 4.61437 194.75 4.5965 194.75 4.57862C194.75 4.56075 194.75 4.54287 194.75 4.52498C194.75 4.50709 194.75 4.4892 194.75 4.4713C194.75 4.4534 194.75 4.4355 194.75 4.41759C194.75 4.39968 194.75 4.38177 194.75 4.36385C194.75 4.34593 194.75 4.32801 194.75 4.31008C194.75 4.29215 194.75 4.27421 194.75 4.25627C194.75 4.23833 194.75 4.22038 194.75 4.20243C194.75 4.18448 194.75 4.16653 194.75 4.14856C194.75 4.1306 194.75 4.11264 194.75 4.09467C194.75 4.0767 194.75 4.05872 194.75 4.04074C194.75 4.02276 194.75 4.00477 194.75 3.98678C194.75 3.96879 194.75 3.9508 194.75 3.9328C194.75 3.9148 194.75 3.8968 194.75 3.87879C194.75 3.86078 194.75 3.84277 194.75 3.82475C194.75 3.80673 194.75 3.78871 194.75 3.77069C194.75 3.75266 194.75 3.73463 194.75 3.7166C194.75 3.69856 194.75 3.68052 194.75 3.66248C194.75 3.64444 194.75 3.62639 194.75 3.60834C194.75 3.59029 194.75 3.57224 194.75 3.55418C194.75 3.53612 194.75 3.51806 194.75 3.49999C194.75 3.48192 194.75 3.46385 194.75 3.44578C194.75 3.42771 194.75 3.40963 194.75 3.39155C194.75 3.37347 194.75 3.35538 194.75 3.33729C194.75 3.3192 194.75 3.30111 194.75 3.28302C194.75 3.26492 194.75 3.24682 194.75 3.22872C194.75 3.21062 194.75 3.19251 194.75 3.1744C194.75 3.15629 194.75 3.13818 194.75 3.12007C194.75 3.10195 194.75 3.08383 194.75 3.06571C194.75 3.04759 194.75 3.02947 194.75 3.01134C194.75 2.99321 194.75 2.97508 194.75 2.95695C194.75 2.93882 194.75 2.92068 194.75 2.90254C194.75 2.8844 194.75 2.86626 194.75 2.84812C194.75 2.82997 194.75 2.81183 194.75 2.79368C194.75 2.77553 194.75 2.75738 194.75 2.73922C194.75 2.72107 194.75 2.70291 194.75 2.68475C194.75 2.66659 194.75 2.64843 194.75 2.63027C194.75 2.61211 194.75 2.59394 194.75 2.57577C194.75 2.5576 194.75 2.53943 194.75 2.52126C194.75 2.50309 194.75 2.48491 194.75 2.46674C194.75 2.44856 194.75 2.43038 194.75 2.4122C194.75 2.39402 194.75 2.37584 194.75 2.35766C194.75 2.33947 194.75 2.32129 194.75 2.3031C194.75 2.28491 194.75 2.26672 194.75 2.24853C194.75 2.23034 194.75 2.21215 194.75 2.19396C194.75 2.17576 194.75 2.15757 194.75 2.13937C194.75 2.12117 194.75 2.10298 194.75 2.08478C194.75 2.06658 194.75 2.04838 194.75 2.03018C194.75 2.01197 194.75 1.99377 194.75 1.97557C194.75 1.95736 194.75 1.93916 194.75 1.92095C194.75 1.90274 194.75 1.88454 194.75 1.86633C194.75 1.84812 194.75 1.82991 194.75 1.8117C194.75 1.79349 194.75 1.77528 194.75 1.75707C194.75 1.73886 194.75 1.72065 194.75 1.70243C194.75 1.68422 194.75 1.66601 194.75 1.64779C194.75 1.62958 194.75 1.61137 194.75 1.59315C194.75 1.57494 194.75 1.55672 194.75 1.53851C194.75 1.52029 194.75 1.50207 194.75 1.48386C194.75 1.46564 194.75 1.44743 194.75 1.42921C194.75 1.41099 194.75 1.39278 194.75 1.37456C194.75 1.35634 194.75 1.33813 194.75 1.31991C194.75 1.30169 194.75 1.28348 194.75 1.26526C194.75 1.24704 194.75 1.22883 194.75 1.21061C194.75 1.1924 194.75 1.17418 194.75 1.15597C194.75 1.13775 194.75 1.11953 194.75 1.10132C194.75 1.08311 194.75 1.06489 194.75 1.04668C194.75 1.02846 194.75 1.01025 194.75 0.992039C194.75 0.973827 194.75 0.955615 194.75 0.937404C194.75 0.919193 194.75 0.900983 194.75 0.882773C194.75 0.864564 194.75 0.846355 194.75 0.828147C194.75 0.80994 194.75 0.791733 194.75 0.773527C194.75 0.755321 194.75 0.737117 194.75 0.718913C194.75 0.70071 194.75 0.682507 194.75 0.664306C194.75 0.646105 194.75 0.627905 194.75 0.609706C194.75 0.591507 194.75 0.57331 194.75 0.555114C194.75 0.536918 194.75 0.518724 194.75 0.500531C194.75 0.482338 194.75 0.464146 194.75 0.445956C194.75 0.427766 194.75 0.409578 194.75 0.391391C194.75 0.373205 194.75 0.35502 194.75 0.336837C194.75 0.318654 194.75 0.300473 194.75 0.282293C194.75 0.264114 194.75 0.245936 194.75 0.227761C194.75 0.209585 194.75 0.191412 194.75 0.173241C194.75 0.155069 194.75 0.1369 194.75 0.118733C194.75 0.100566 194.75 0.0824007 194.75 0.0642381C194.75 0.0460755 194.75 0.0279152 194.75 0.00975721C194.75 -0.00840074 194.75 -0.0265563 194.75 -0.0447094C194.75 -0.0628625 194.75 -0.0810131 194.75 -0.0991611C194.75 -0.117309 194.75 -0.135455 194.75 -0.153597C194.75 -0.17174 194.75 -0.18988 194.75 -0.208018C194.75 -0.226155 194.75 -0.244289 194.75 -0.262421C194.75 -0.280553 194.75 -0.298682 194.75 -0.316807C194.75 -0.334933 194.75 -0.353056 194.75 -0.371176C194.75 -0.389296 194.75 -0.407413 194.75 -0.425526C194.75 -0.44364 194.75 -0.46175 194.75 -0.479857C194.75 -0.497965 194.75 -0.516069 194.75 -0.534169C194.75 -0.55227 194.75 -0.570367 194.75 -0.588461C194.75 -0.606555 194.75 -0.624645 194.75 -0.642732C194.75 -0.660818 194.75 -0.678902 194.75 -0.696981C194.75 -0.715061 194.75 -0.733137 194.75 -0.751209C194.75 -0.769281 194.75 -0.78735 194.75 -0.805414C194.75 -0.823479 194.75 -0.84154 194.75 -0.859597C194.75 -0.877653 194.75 -0.895706 194.75 -0.913755C194.75 -0.931804 194.75 -0.949849 194.75 -0.96789C194.75 -0.985931 194.75 -1.00397 194.75 -1.022C194.75 -1.04003 194.75 -1.05806 194.75 -1.07608C194.75 -1.09411 194.75 -1.11213 194.75 -1.13014C194.75 -1.14816 194.75 -1.16617 194.75 -1.18417C194.75 -1.20218 194.75 -1.22018 194.75 -1.23818C194.75 -1.25618 194.75 -1.27417 194.75 -1.29216C194.75 -1.31014 194.75 -1.32813 194.75 -1.34611C194.75 -1.36408 194.75 -1.38206 194.75 -1.40003C194.75 -1.41799 194.75 -1.43596 194.75 -1.45392C194.75 -1.47187 194.75 -1.48983 194.75 -1.50778C194.75 -1.52573 194.75 -1.54367 194.75 -1.56161C194.75 -1.57955 194.75 -1.59748 194.75 -1.61541C194.75 -1.63333 194.75 -1.65126 194.75 -1.66917C194.75 -1.68709 194.75 -1.705 194.75 -1.72291C194.75 -1.74081 194.75 -1.75871 194.75 -1.77661C194.75 -1.79451 194.75 -1.81239 194.75 -1.83028C194.75 -1.84816 194.75 -1.86604 194.75 -1.88391C194.75 -1.90179 194.75 -1.91965 194.75 -1.93751C194.75 -1.95537 194.75 -1.97323 194.75 -1.99108C194.75 -2.00893 194.75 -2.02677 194.75 -2.04461C194.75 -2.06244 194.75 -2.08027 194.75 -2.0981C194.75 -2.11592 194.75 -2.13374 194.75 -2.15155C194.75 -2.16937 194.75 -2.18717 194.75 -2.20497C194.75 -2.22277 194.75 -2.24056 194.75 -2.25835C194.75 -2.27614 194.75 -2.29392 194.75 -2.31169C194.75 -2.32947 194.75 -2.34723 194.75 -2.36499C194.75 -2.38275 194.75 -2.40051 194.75 -2.41826C194.75 -2.436 194.75 -2.45374 194.75 -2.47148C194.75 -2.48921 194.75 -2.50694 194.75 -2.52466C194.75 -2.54238 194.75 -2.56009 194.75 -2.5778C194.75 -2.5955 194.75 -2.6132 194.75 -2.63089C194.75 -2.64858 194.75 -2.66627 194.75 -2.68395C194.75 -2.70162 194.75 -2.71929 194.75 -2.73696C194.75 -2.75462 194.75 -2.77228 194.75 -2.78992C194.75 -2.80757 194.75 -2.82521 194.75 -2.84285C194.75 -2.86048 194.75 -2.8781 194.75 -2.89572C194.75 -2.91334 194.75 -2.93095 194.75 -2.94855C194.75 -2.96616 194.75 -2.98375 194.75 -3.00134C194.75 -3.01893 194.75 -3.0365 194.75 -3.05408C194.75 -3.07165 194.75 -3.08921 194.75 -3.10677C194.75 -3.12432 194.75 -3.14187 194.75 -3.15941C194.75 -3.17695 194.75 -3.19448 194.75 -3.212C194.75 -3.22953 194.75 -3.24704 194.75 -3.26455C194.75 -3.28205 194.75 -3.29955 194.75 -3.31704C194.75 -3.33453 194.75 -3.35201 194.75 -3.36949C194.75 -3.38696 194.75 -3.40443 194.75 -3.42188C194.75 -3.43934 194.75 -3.45679 194.75 -3.47422C194.75 -3.49166 194.75 -3.50909 194.75 -3.52651C194.75 -3.54394 194.75 -3.56135 194.75 -3.57875C194.75 -3.59616 194.75 -3.61355 194.75 -3.63094C194.75 -3.64832
1543194.75 -3.6657 194.75 -3.68307C194.75 -3.70043 194.75 -3.71779 194.75 -3.73514C194.75 -3.75249 194.75 -3.76983 194.75 -3.78716C194.75 -3.8045 194.75 -3.82182 194.75 -3.83913C194.75 -3.85644 194.75 -3.87375 194.75 -3.89104C194.75 -3.90833 194.75 -3.92562 194.75 -3.94289C194.75 -3.96017 194.75 -3.97743 194.75 -3.99469C194.75 -4.01194 194.75 -4.02919 194.75 -4.04642C194.75 -4.06366 194.75 -4.08089 194.75 -4.0981C194.75 -4.11532 194.75 -4.13253 194.75 -4.14972C194.75 -4.16692 194.75 -4.18411 194.75 -4.20128C194.75 -4.21846 194.75 -4.23563 194.75 -4.25278C194.75 -4.26994 194.75 -4.28709 194.75 -4.30422C194.75 -4.32136 194.75 -4.33849 194.75 -4.3556C194.75 -4.37272 194.75 -4.38982 194.75 -4.40692C194.75 -4.42401 194.75 -4.4411 194.75 -4.45817C194.75 -4.47524 194.75 -4.49231 194.75 -4.50936C194.75 -4.52641 194.75 -4.54346 194.75 -4.56049C194.75 -4.57752 194.75 -4.59454 194.75 -4.61155C194.75 -4.62856 194.75 -4.64556 194.75 -4.66255C194.75 -4.67954 194.75 -4.69651 194.75 -4.71348C194.75 -4.73045 194.75 -4.7474 194.75 -4.76434C194.75 -4.78129 194.75 -4.79822 194.75 -4.81514C194.75 -4.83207 194.75 -4.84898 194.75 -4.86588C194.75 -4.88278 194.75 -4.89966 194.75 -4.91654C194.75 -4.93342 194.75 -4.95028 194.75 -4.96714C194.75 -4.98399 194.75 -5.00083 194.75 -5.01766C194.75 -5.03449 194.75 -5.05131 194.75 -5.06812C194.75 -5.08493 194.75 -5.10172 194.75 -5.11851C194.75 -5.13529 194.75 -5.15207 194.75 -5.16883C194.75 -5.18559 194.75 -5.20233 194.75 -5.21907C194.75 -5.23581 194.75 -5.25253 194.75 -5.26925C194.75 -5.28596 194.75 -5.30266 194.75 -5.31935C194.75 -5.33603 194.75 -5.35271 194.75 -5.36937C194.75 -5.38604 194.75 -5.40269 194.75 -5.41933C194.75 -5.43597 194.75 -5.4526 194.75 -5.46921C194.75 -5.48582 194.75 -5.50243 194.75 -5.51902C194.75 -5.53561 194.75 -5.55218 194.75 -5.56875C194.75 -5.58531 194.75 -5.60186 194.75 -5.6184C194.75 -5.63494 194.75 -5.65147 194.75 -5.66798C194.75 -5.68449 194.75 -5.70099 194.75 -5.71748C194.75 -5.73397 194.75 -5.75044 194.75 -5.7669C194.75 -5.78336 194.75 -5.79981 194.75 -5.81625C194.75 -5.83268 194.75 -5.84911 194.75 -5.86551C194.75 -5.88192 194.75 -5.89832 194.75 -5.9147C194.75 -5.93108 194.75 -5.94745 194.75 -5.96381C194.75 -5.98016 194.75 -5.99651 194.75 -6.01284C194.75 -6.02916 194.75 -6.04548 194.75 -6.06178C194.75 -6.07808 194.75 -6.09437 194.75 -6.11064C194.75 -6.12692 194.75 -6.14318 194.75 -6.15943C194.75 -6.17567 194.75 -6.1919 194.75 -6.20812C194.75 -6.22434 194.75 -6.24055 194.75 -6.25674C194.75 -6.27293 194.75 -6.28911 194.75 -6.30527C194.75 -6.32143 194.75 -6.33758 194.75 -6.35372C194.75 -6.36985 194.75 -6.38597 194.75 -6.40208C194.75 -6.41818 194.75 -6.43427 194.75 -6.45035C194.75 -6.46643 194.75 -6.48249 194.75 -6.49854C194.75 -6.51459 194.75 -6.53062 194.75 -6.54664C194.75 -6.56266 194.75 -6.57867 194.75 -6.59466C194.75 -6.61065 194.75 -6.62662 194.75 -6.64258C194.75 -6.65854 194.75 -6.67449 194.75 -6.69042C194.75 -6.70635 194.75 -6.72227 194.75 -6.73817C194.75 -6.75407 194.75 -6.76996 194.75 -6.78583C194.75 -6.8017 194.75 -6.81756 194.75 -6.8334C194.75 -6.84924 194.75 -6.86506 194.75 -6.88087C194.75 -6.89668 194.75 -6.91248 194.75 -6.92826C194.75 -6.94404 194.75 -6.9598 194.75 -6.97555C194.75 -6.9913 194.75 -7.00703 194.75 -7.02275C194.75 -7.03847 194.75 -7.05417 194.75 -7.06986C194.75 -7.08555 194.75 -7.10122 194.75 -7.11687C194.75 -7.13253 194.75 -7.14817 194.75 -7.16379C194.75 -7.17942 194.75 -7.19502 194.75 -7.21062C194.75 -7.22621 194.75 -7.24178 194.75 -7.25734C194.75 -7.2729 194.75 -7.28845 194.75 -7.30398C194.75 -7.3195 194.75 -7.33501 194.75 -7.35051C194.75 -7.36601 194.75 -7.38148 194.75 -7.39695C194.75 -7.41241 194.75 -7.42786 194.75 -7.44329C194.75 -7.45872 194.75 -7.47413 194.75 -7.48953C194.75 -7.50493 194.75 -7.52031 194.75 -7.53567C194.75 -7.55103 194.75 -7.56638 194.75 -7.58171C194.75 -7.59704 194.75 -7.61236 194.75 -7.62765C194.75 -7.64295 194.75 -7.65823 194.75 -7.67349C194.75 -7.68876 194.75 -7.704 194.75 -7.71923C194.75 -7.73446 194.75 -7.74968 194.75 -7.76487C194.75 -7.78007 194.75 -7.79524 194.75 -7.81041C194.75 -7.82557 194.75 -7.84071 194.75 -7.85584C194.75 -7.87096 194.75 -7.88607 194.75 -7.90117C194.75 -7.91626 194.75 -7.93133 194.75 -7.94639C194.75 -7.96145 194.75 -7.97648 194.75 -7.99151C194.75 -8.00653 194.75 -8.02153 194.75 -8.03652C194.75 -8.05151 194.75 -8.06647 194.75 -8.08143C194.75 -8.09638 194.75 -8.11131 194.75 -8.12623C194.75 -8.14114 194.75 -8.15604 194.75 -8.17092C194.75 -8.1858 194.75 -8.20066 194.75 -8.2155C194.75 -8.23035 194.75 -8.24517 194.75 -8.25998C194.75 -8.27479 194.75 -8.28958 194.75 -8.30435C194.75 -8.31912 194.75 -8.33387 194.75 -8.3486C194.75 -8.36334 194.75 -8.37805 194.75 -8.39275C194.75 -8.40745 194.75 -8.42213 194.75 -8.43679C194.75 -8.45145 194.75 -8.46609 194.75 -8.48071C194.75 -8.49534 194.75 -8.50994 194.75 -8.52453C194.75 -8.53911 194.75 -8.55368 194.75 -8.56823C194.75 -8.58278 194.75 -8.59731 194.75 -8.61182C194.75 -8.62633 194.75 -8.64082 194.75 -8.65529C194.75 -8.66976 194.75 -8.68422 194.75 -8.69865C194.75 -8.71308 194.75 -8.7275 194.75 -8.7419C194.75 -8.75629 194.75 -8.77067 194.75 -8.78503C194.75 -8.79938 194.75 -8.81372 194.75 -8.82804C194.75 -8.84236 194.75 -8.85666 194.75 -8.87094C194.75 -8.88522 194.75 -8.89948 194.75 -8.91372C194.75 -8.92796 194.75 -8.94218
1543194.75 -8.95638C194.75 -8.97058 194.75 -8.98476 194.75 -8.99892C194.75 -9.01308 194.75 -9.02722 194.75 -9.04135C194.75 -9.05547 194.75 -9.06957 194.75 -9.08365C194.75 -9.09773 194.75 -9.1118 194.75 -9.12584C194.75 -9.13988 194.75 -9.1539 194.75 -9.1679C194.75 -9.1819 194.75 -9.19588 194.75 -9.20984C194.75 -9.22381 194.75 -9.23775 194.75 -9.25167C194.75 -9.26559 194.75 -9.27949 194.75 -9.29337C194.75 -9.30724 194.75 -9.3211 194.75 -9.33494C194.75 -9.34878 194.75 -9.3626 194.75 -9.37639C194.75 -9.39019 194.75 -9.40397 194.75 -9.41772C194.75 -9.43148 194.75 -9.44521 194.75 -9.45893C194.75 -9.47264 194.75 -9.48633 194.75 -9.50001H193.25C193.25 -9.48633 193.25 -9.47264 193.25 -9.45893C193.25 -9.44521 193.25 -9.43148 193.25 -9.41772C193.25 -9.40397 193.25 -9.39019 193.25 -9.37639C193.25 -9.3626 193.25 -9.34878 193.25 -9.33494C193.25 -9.3211 193.25 -9.30724 193.25 -9.29337C193.25 -9.27949 193.25 -9.26559 193.25 -9.25167C193.25 -9.23775 193.25 -9.22381 193.25 -9.20984C193.25 -9.19588 193.25 -9.1819 193.25 -9.1679C193.25 -9.1539 193.25 -9.13988 193.25 -9.12584C193.25 -9.1118 193.25 -9.09773 193.25 -9.08365C193.25 -9.06957 193.25 -9.05547 193.25 -9.04135C193.25 -9.02722 193.25 -9.01308 193.25 -8.99892C193.25 -8.98476 193.25 -8.97058 193.25 -8.95638C193.25 -8.94218 193.25 -8.92796 193.25 -8.91372C193.25 -8.89948 193.25 -8.88522 193.25 -8.87094C193.25 -8.85666 193.25 -8.84236 193.25 -8.82804C193.25 -8.81372 193.25 -8.79938 193.25 -8.78503C193.25 -8.77067 193.25 -8.75629 193.25 -8.7419C193.25 -8.7275 193.25 -8.71308 193.25 -8.69865C193.25 -8.68422 193.25 -8.66976 193.25 -8.65529C193.25 -8.64082 193.25 -8.62633 193.25 -8.61182C193.25 -8.59731 193.25 -8.58278 193.25 -8.56823C193.25 -8.55368 193.25 -8.53911 193.25 -8.52453C193.25 -8.50994 193.25 -8.49534 193.25 -8.48071C193.25 -8.46609 193.25 -8.45145 193.25 -8.43679C193.25 -8.42213 193.25 -8.40745 193.25 -8.39275C193.25 -8.37805 193.25 -8.36334 193.25 -8.3486C193.25 -8.33387 193.25 -8.31912 193.25 -8.30435C193.25 -8.28958 193.25 -8.27479 193.25 -8.25998C193.25 -8.24517 193.25 -8.23035 193.25 -8.2155C193.25 -8.20066 193.25 -8.1858 193.25 -8.17092C193.25 -8.15604 193.25 -8.14114 193.25 -8.12623C193.25 -8.11131 193.25 -8.09638 193.25 -8.08143C193.25 -8.06647 193.25 -8.05151 193.25 -8.03652C193.25 -8.02153 193.25 -8.00653 193.25 -7.99151C193.25 -7.97648 193.25 -7.96145 193.25 -7.94639C193.25 -7.93133 193.25 -7.91626 193.25 -7.90117C193.25 -7.88607 193.25 -7.87096 193.25 -7.85584C193.25 -7.84071 193.25 -7.82557 193.25 -7.81041C193.25 -7.79524 193.25 -7.78007 193.25 -7.76487C193.25 -7.74968 193.25 -7.73446 193.25 -7.71923C193.25 -7.704 193.25 -7.68876 193.25 -7.67349C193.25 -7.65823 193.25 -7.64295 193.25 -7.62765C193.25 -7.61236 193.25 -7.59704 193.25 -7.58171C193.25 -7.56638 193.25 -7.55103 193.25 -7.53567C193.25 -7.52031 193.25 -7.50493 193.25 -7.48953C193.25 -7.47413 193.25 -7.45872 193.25 -7.44329C193.25 -7.42786 193.25 -7.41241 193.25 -7.39695C193.25 -7.38148 193.25 -7.36601 193.25 -7.35051C193.25 -7.33501 193.25 -7.3195 193.25 -7.30398C193.25 -7.28845 193.25 -7.2729 193.25 -7.25734C193.25 -7.24178 193.25 -7.22621 193.25 -7.21062C193.25 -7.19502 193.25 -7.17942 193.25 -7.16379C193.25 -7.14817 193.25 -7.13253 193.25 -7.11687C193.25 -7.10122 193.25 -7.08555 193.25 -7.06986C193.25 -7.05417 193.25 -7.03847 193.25 -7.02275C193.25 -7.00703 193.25 -6.9913 193.25 -6.97555C193.25 -6.9598 193.25 -6.94404 193.25 -6.92826C193.25 -6.91248 193.25 -6.89668 193.25 -6.88087C193.25 -6.86506 193.25 -6.84924 193.25 -6.8334C193.25 -6.81756 193.25 -6.8017 193.25 -6.78583C193.25 -6.76996 193.25 -6.75407 193.25 -6.73817C193.25 -6.72227 193.25 -6.70635 193.25 -6.69042C193.25 -6.67449 193.25 -6.65854 193.25 -6.64258C193.25 -6.62662 193.25 -6.61065 193.25 -6.59466C193.25 -6.57867 193.25 -6.56266 193.25 -6.54664C193.25 -6.53062 193.25 -6.51459 193.25 -6.49854C193.25 -6.48249 193.25 -6.46643 193.25 -6.45035C193.25 -6.43427 193.25 -6.41818 193.25 -6.40208C193.25 -6.38597 193.25 -6.36985 193.25 -6.35372C193.25 -6.33758 193.25 -6.32143 193.25 -6.30527C193.25 -6.28911 193.25 -6.27293 193.25 -6.25674C193.25 -6.24055 193.25 -6.22434 193.25 -6.20812C193.25 -6.1919 193.25 -6.17567 193.25 -6.15943C193.25 -6.14318 193.25 -6.12692 193.25 -6.11064C193.25 -6.09437 193.25 -6.07808 193.25 -6.06178C193.25 -6.04548 193.25 -6.02916 193.25 -6.01284C193.25 -5.99651 193.25 -5.98016 193.25 -5.96381C193.25 -5.94745 193.25 -5.93108 193.25 -5.9147C193.25 -5.89832 193.25 -5.88192 193.25 -5.86551C193.25 -5.84911 193.25 -5.83268 193.25 -5.81625C193.25 -5.79981 193.25 -5.78336 193.25 -5.7669C193.25 -5.75044 193.25 -5.73397 193.25 -5.71748C193.25 -5.70099 193.25 -5.68449 193.25 -5.66798C193.25 -5.65147 193.25 -5.63494 193.25 -5.6184C193.25 -5.60186 193.25 -5.58531 193.25 -5.56875C193.25 -5.55218 193.25 -5.53561 193.25 -5.51902C193.25 -5.50243 193.25 -5.48582 193.25 -5.46921C193.25 -5.4526 193.25 -5.43597 193.25 -5.41933C193.25 -5.402
154369 193.25 -5.38604 193.25 -5.36937C193.25 -5.35271 193.25 -5.33603 193.25 -5.31935C193.25 -5.30266 193.25 -5.28596 193.25 -5.26925C193.25 -5.25253 193.25 -5.23581 193.25 -5.21907C193.25 -5.20233 193.25 -5.18559 193.25 -5.16883C193.25 -5.15207 193.25 -5.13529 193.25 -5.11851C193.25 -5.10172 193.25 -5.08493 193.25 -5.06812C193.25 -5.05131 193.25 -5.03449 193.25 -5.01766C193.25 -5.00083 193.25 -4.98399 193.25 -4.96714C193.25 -4.95028 193.25 -4.93342 193.25 -4.91654C193.25 -4.89966 193.25 -4.88278 193.25 -4.86588C193.25 -4.84898 193.25 -4.83207 193.25 -4.81514C193.25 -4.79822 193.25 -4.78129 193.25 -4.76434C193.25 -4.7474 193.25 -4.73045 193.25 -4.71348C193.25 -4.69651 193.25 -4.67954 193.25 -4.66255C193.25 -4.64556 193.25 -4.62856 193.25 -4.61155C193.25 -4.59454 193.25 -4.57752 193.25 -4.56049C193.25 -4.54346 193.25 -4.52641 193.25 -4.50936C193.25 -4.49231 193.25 -4.47524 193.25 -4.45817C193.25 -4.4411 193.25 -4.42401 193.25 -4.40692C193.25 -4.38982 193.25 -4.37272 193.25 -4.3556C193.25 -4.33849 193.25 -4.32136 193.25 -4.30422C193.25 -4.28709 193.25 -4.26994 193.25 -4.25278C193.25 -4.23563 193.25 -4.21846 193.25 -4.20128C193.25 -4.18411 193.25 -4.16692 193.25 -4.14972C193.25 -4.13253 193.25 -4.11532 193.25 -4.0981C193.25 -4.08089 193.25 -4.06366 193.25 -4.04642C193.25 -4.02919 193.25 -4.01194 193.25 -3.99469C193.25 -3.97743 193.25 -3.96017 193.25 -3.94289C193.25 -3.92562 193.25 -3.90833 193.25 -3.89104C193.25 -3.87375 193.25 -3.85644 193.25 -3.83913C193.25 -3.82182 193.25 -3.8045 193.25 -3.78716C193.25 -3.76983 193.25 -3.75249 193.25 -3.73514C193.25 -3.71779 193.25 -3.70043 193.25 -3.68307C193.25 -3.6657 193.25 -3.64832 193.25 -3.63094C193.25 -3.61355 193.25 -3.59616 193.25 -3.57875C193.25 -3.56135 193.25 -3.54394 193.25 -3.52651C193.25 -3.50909 193.25 -3.49166 193.25 -3.47422C193.25 -3.45679 193.25 -3.43934 193.25 -3.42188C193.25 -3.40443 193.25 -3.38696 193.25 -3.36949C193.25 -3.35201 193.25 -3.33453 193.25 -3.31704C193.25 -3.29955 193.25 -3.28205 193.25 -3.26455C193.25 -3.24704 193.25 -3.22953 193.25 -3.212C193.25 -3.19448 193.25 -3.17695 193.25 -3.15941C193.25 -3.14187 193.25 -3.12432 193.25 -3.10677C193.25 -3.08921 193.25 -3.07165 193.25 -3.05408C193.25 -3.0365 193.25 -3.01893 193.25 -3.00134C193.25 -2.98375 193.25 -2.96616 193.25 -2.94855C193.25 -2.93095 193.25 -2.91334 193.25 -2.89572C193.25 -2.8781 193.25 -2.86048 193.25 -2.84285C193.25 -2.82521 193.25 -2.80757 193.25 -2.78992C193.25 -2.77228 193.25 -2.75462 193.25 -2.73696C193.25 -2.71929 193.25 -2.70162 193.25 -2.68395C193.25 -2.66627 193.25 -2.64858 193.25 -2.63089C193.25 -2.6132 193.25 -2.5955 193.25 -2.5778C193.25 -2.56009 193.25 -2.54238 193.25 -2.52466C193.25 -2.50694 193.25 -2.48921 193.25 -2.47148C193.25 -2.45374 193.25 -2.436 193.25 -2.41826C193.25 -2.40051 193.25 -2.38275 193.25 -2.36499C193.25 -2.34723 193.25 -2.32947 193.25 -2.31169C193.25 -2.29392 193.25 -2.27614 193.25 -2.25835C193.25 -2.24056 193.25 -2.22277 193.25 -2.20497C193.25 -2.18717 193.25 -2.16937 193.25 -2.15155C193.25 -2.13374 193.25 -2.11592 193.25 -2.0981C193.25 -2.08027 193.25 -2.06244 193.25 -2.04461C193.25 -2.02677 193.25 -2.00893 193.25 -1.99108C193.25 -1.97323 193.25 -1.95537 193.25 -1.93751C193.25 -1.91965 193.25 -1.90179 193.25 -1.88391C193.25 -1.86604 193.25 -1.84816 193.25 -1.83028C193.25 -1.81239 193.25 -1.79451 193.25 -1.77661C193.25 -1.75871 193.25 -1.74081 193.25 -1.72291C193.25 -1.705 193.25 -1.68709 193.25 -1.66917C193.25 -1.65126 193.25 -1.63333 193.25 -1.61541C193.25 -1.59748 193.25 -1.57955 193.25 -1.56161C193.25 -1.54367 193.25 -1.52573 193.25 -1.50778C193.25 -1.48983 193.25 -1.47187 193.25 -1.45392C193.25 -1.43596 193.25 -1.41799 193.25 -1.40003C193.25 -1.38206 193.25 -1.36408 193.25 -1.34611C193.25 -1.32813 193.25 -1.31014 193.25 -1.29216C193.25 -1.27417 193.25 -1.25618 193.25 -1.23818C193.25 -1.22018 193.25 -1.20218 193.25 -1.18417C193.25 -1.16617 193.25 -1.14816 193.25 -1.13014C193.25 -1.11213 193.25 -1.09411 193.25 -1.07608C193.25 -1.05806 193.25 -1.04003 193.25 -1.022C193.25 -1.00397 193.25 -0.985931 193.25 -0.96789C193.25 -0.949849 193.25 -0.931804 193.25 -0.913755C193.25 -0.895706 193.25 -0.877653 193.25 -0.859597C193.25 -0.84154 193.25 -0.823479 193.25 -0.805414C193.25 -0.78735 193.25 -0.769281 193.25 -0.751209C193.25 -0.733137 193.25 -0.715061 193.25 -0.696981C193.25 -0.678902 193.25 -0.660818 193.25 -0.642732C193.25 -0.624645 193.25 -0.606555 193.25 -0.588461C193.25 -0.570367 193.25 -0.55227 193.25 -0.534169C193.25 -0.516069 193.25 -0.497965 193.25 -0.479857C193.25 -0.46175 193.25 -0.44364 193.25 -0.425526C193.25 -0.407413 193.25 -0.389296 193.25 -0.371176C193.25 -0.353056 193.25 -0.334933 193.25 -0.316807C193.25 -0.298682 193.25 -0.280553 193.25 -0.262421C193.25 -0.244289 193.25 -0.226155 193.25 -0.208018C193.25 -0.18988 193.25 -0.17174 193.25 -0.153597C193.25 -0.135455 193.25 -0.117309 193.25 -0.0991611C193.25 -0.0810131 193.25 -0.0628625 193.25 -0.0447094C193.25 -0.0265563 193.25 -0.00840074 193.25 0.00975721C193.25 0.0279152 193.25 0.0460755 193.25 0.0642381C193.25 0.0824007 193.25 0.100566 193.25 0.118733C193.25 0.1369 193.25 0.155069 193.25 0.173241C193.25 0.191412 193.25 0.209585 193.25 0.227761C193.25 0.245936 193.25 0.264114 193.25 0.282293C193.25 0.300473 193.25 0.318654 193.25 0.336837C193.25 0.35502 193.25 0.373205 193.25 0.391391C193.25 0.409578 193.25 0.427766 193.25 0.445956C193.25 0.464146 193.25 0.482338 193.25 0.500531C193.25 0.518724 193.25 0.536918 193.25 0.555114C193.25 0.57331 193.25 0.591507 193.25 0.609706C193.25 0.627905 193.25 0.646105 193.25 0.664306C193.25 0.682507 193.25 0.70071 193.25 0.718913C193.25 0.737117 193.25 0.755321 193.25 0.773527C193.25 0.791733 193.25 0.80994 193.25 0.828147C193.25 0.846355 193.25 0.864564 193.25 0.882773C193.25 0.900983 193.25 0.919193 193.25 0.937404C193.25 0.955615 193.25 0.973827 193.25 0.992039C193.25 1.01025 193.25 1.02846 193.25 1.04668C193.25 1.06489 193.25 1.08311 193.25 1.10132C193.25 1.11953 193.25 1.13775 193.25 1.15597C193.25 1.17418 193.25 1.1924 193.25 1.21061C193.25 1.22883 193.25 1.24704 193.25 1.26526C193.25 1.28348 193.25 1.30169 193.25 1.31991C193.25 1.33813 193.25 1.35634 193.25 1.37456C193.25 1.39278 193.25 1.41099 193.25 1.42921C193.25 1.44743 193.25 1.46564 193.25 1.48386C193.25 1.50207 193.25 1.52029 193.25 1.53851C193.25 1.55672 193.25 1.57494 193.25 1.59315C193.25 1.61137 193.25 1.62958 193.25 1.64779C193.25 1.66601 193.25 1.68422 193.25 1.70243C193.25 1.72065 193.25 1.73886 193.25 1.75707C193.25 1.77528 193.25 1.79349 193.25 1.8117C193.25 1.82991 193.25 1.84812 193.25 1.86633C193.25 1.88454 193.25 1.90274 193.25 1.92095C193.25 1.93916 193.25 1.95736 193.25 1.97557C193.25 1.99377 193.25 2.01197 193.25 2.03018C193.25 2.04838 193.25 2.06658 193.25 2.08478C193.25 2.10298 193.25 2.12117 193.25 2.13937C193.25 2.15757 193.25 2.17576 193.25 2.19396C193.25 2.21215 193.25 2.23034 193.25 2.24853C193.25 2.26672 193.25 2.28491 193.25 2.3
1543031C193.25 2.32129 193.25 2.33947 193.25 2.35766C193.25 2.37584 193.25 2.39402 193.25 2.4122C193.25 2.43038 193.25 2.44856 193.25 2.46674C193.25 2.48491 193.25 2.50309 193.25 2.52126C193.25 2.53943 193.25 2.5576 193.25 2.57577C193.25 2.59394 193.25 2.61211 193.25 2.63027C193.25 2.64843 193.25 2.66659 193.25 2.68475C193.25 2.70291 193.25 2.72107 193.25 2.73922C193.25 2.75738 193.25 2.77553 193.25 2.79368C193.25 2.81183 193.25 2.82997 193.25 2.84812C193.25 2.86626 193.25 2.8844 193.25 2.90254C193.25 2.92068 193.25 2.93882 193.25 2.95695C193.25 2.97508 193.25 2.99321 193.25 3.01134C193.25 3.02947 193.25 3.04759 193.25 3.06571C193.25 3.08383 193.25 3.10195 193.25 3.12007C193.25 3.13818 193.25 3.15629 193.25 3.1744C193.25 3.19251 193.25 3.21062 193.25 3.22872C193.25 3.24682 193.25 3.26492 193.25 3.28302C193.25 3.30111 193.25 3.3192 193.25 3.33729C193.25 3.35538 193.25 3.37347 193.25 3.39155C193.25 3.40963 193.25 3.42771 193.25 3.44578C193.25 3.46385 193.25 3.48192 193.25 3.49999C193.25 3.51806 193.25 3.53612 193.25 3.55418C193.25 3.57224 193.25 3.59029 193.25 3.60834C193.25 3.62639 193.25 3.64444 193.25 3.66248C193.25 3.68052 193.25 3.69856 193.25 3.7166C193.25 3.73463 193.25 3.75266 193.25 3.77069C193.25 3.78871 193.25 3.80673 193.25 3.82475C193.25 3.84277 193.25 3.86078 193.25 3.87879C193.25 3.8968 193.25 3.9148 193.25 3.9328C193.25 3.9508 193.25 3.96879 193.25 3.98678C193.25 4.00477 193.25 4.02276 193.25 4.04074C193.25 4.05872 193.25 4.0767 193.25 4.09467C193.25 4.11264 193.25 4.1306 193.25 4.14856C193.25 4.16653 193.25 4.18448 193.25 4.20243C193.25 4.22038 193.25 4.23833 193.25 4.25627C193.25 4.27421 193.25 4.29215 193.25 4.31008C193.25 4.32801 193.25 4.34593 193.25 4.36385C193.25 4.38177 193.25 4.39968 193.25 4.41759C193.25 4.4355 193.25 4.4534 193.25 4.4713C193.25 4.4892 193.25 4.50709 193.25 4.52498C193.25 4.54287 193.25 4.56075 193.25 4.57862C193.25 4.5965 193.25 4.61437 193.25 4.63223C193.25 4.65009 193.25 4.66795 193.25 4.6858C193.25 4.70365 193.25 4.7215 193.25 4.73934C193.25 4.75718 193.25 4.77501 193.25 4.79284C193.25 4.81067 193.25 4.82849 193.25 4.8463C193.25 4.86412 193.25 4.88193 193.25 4.89973C193.25 4.91753 193.25 4.93533 193.25 4.95312C193.25 4.97091 193.25 4.98869 193.25 5.00647C193.25 5.02425 193.25 5.04202 193.25 5.05978C193.25 5.07754 193.25 5.0953 193.25 5.11305C193.25 5.1308 193.25 5.14854 193.25 5.16628C193.25 5.18402 193.25 5.20175 193.25 5.21947C193.25 5.23719 193.25 5.25491 193.25 5.27262C193.25 5.29033 193.25 5.30803 193.25 5.32573C193.25 5.34342 193.25 5.36111 193.25 5.37879C193.25 5.39647 193.25 5.41414 193.25 5.43181C193.25 5.44948 193.25 5.46714 193.25 5.48479C193.25 5.50244 193.25 5.52008 193.25 5.53772C193.25 5.55536 193.25 5.57298 193.25 5.59061C193.25 5.60823 193.25 5.62584 193.25 5.64345C193.25 5.66105 193.25 5.67865 193.25 5.69624C193.25 5.71383 193.25 5.73142 193.25 5.74899C193.25 5.76657 193.25 5.78413 193.25 5.80169C193.25 5.81925 193.25 5.8368 193.25 5.85435C193.25 5.87189 193.25 5.88943 193.25 5.90695C193.25 5.92448 193.25 5.942 193.25 5.95951C193.25 5.97702 193.25 5.99452 193.25 6.01202C193.25 6.02951 193.25 6.04699 193.25 6.06447C193.25 6.08195 193.25 6.09942 193.25 6.11688C193.25 6.13434 193.25 6.15179 193.25 6.16923C193.25 6.18667 193.25 6.20411 193.25 6.22153C193.25 6.23896 193.25 6.25638 193.25 6.27378C193.25 6.29119 193.25 6.30859 193.25 6.32598C193.25 6.34337 193.25 6.36075 193.25 6.37812C193.25 6.3955 193.25 6.41286 193.25 6.43021C193.25 6.44757 193.25 6.46491 193.25 6.48225C193.25 6.49958 193.25 6.51691 193.25 6.53422C193.25 6.55154 193.25 6.56885 193.25 6.58615C193.25 6.60344 193.25 6.62073 193.25 6.63801C193.25 6.65529 193.25 6.67256 193.25 6.68982C193.25 6.70708 193.25 6.72433 193.25 6.74157C193.25 6.75881 193.25 6.77604 193.25 6.79326C193.25 6.81049 193.25 6.8277 193.25 6.8449C193.25 6.8621 193.25 6.87929 193.25 6.89647C193.25 6.91365 193.25 6.93083 193.25 6.94799C193.25 6.96515 193.25 6.9823 193.25 6.99944C193.25 7.01658 193.25 7.03371 193.25 7.05083C193.25 7.06795 193.25 7.08506 193.25 7.10216C193.25 7.11926 193.25 7.13635 193.25 7.15343C193.25 7.17051 193.25 7.18758 193.25 7.20463C193.25 7.22169 193.25 7.23874 193.25 7.25578C193.25 7.27281 193.25 7.28984 193.25 7.30685C193.25 7.32387 193.25 7.34087 193.25 7.35787C193.25 7.37486 193.25 7.39184 193.25 7.40881C193.25 7.42578 193.25 7.44274 193.25 7.45969C193.25 7.47664 193.25 7.49358 193.25 7.51051C193.25 7.52744 193.25 7.54435 193.25 7.56126C193.25 7.57816 193.25 7.59505 193.25 7.61194C193.25 7.62882 193.25 7.64569 193.25 7.66255C193.25 7.67941 193.25 7.69626 193.25 7.71309C193.25 7.72993 193.25 7.74675 193.25 7.76357C193.25 7.78038 193.25 7.79718 193.25 7.81397C193.25 7.83076 193.25 7.84754 193.25 7.8643C193.25 7.88107 193.25 7.89782 193.25 7.91456C193.25 7.93131 193.25 7.94804 193.25 7.96475C193.25 7.98147 193.25 7.99818 193.25 8.01487C193.25 8.03157 193.25 8.04825 193.25 8.06492C193.25 8.08159 193.25 8.09824 193.25 8.11489C193.25 8.13153 193.25 8.14817 193.25 8.16479C193.25 8.18141 193.25 8.19802 193.25 8.21461C193.25 8.23121 193.25 8.24779 193.25 8.26436C193.25 8.28093 193.25 8.29749 193.25 8.31403C193.25 8.33058
1543193.25 8.34711 193.25 8.36363C193.25 8.38015 193.25 8.39665 193.25 8.41315C193.25 8.42964 193.25 8.44612 193.25 8.46259C193.25 8.47905 193.25 8.49551 193.25 8.51195C193.25 8.52839 193.25 8.54482 193.25 8.56123C193.25 8.57765 193.25 8.59405 193.25 8.61044C193.25 8.62683 193.25 8.6432 193.25 8.65957C193.25 8.67593 193.25 8.69228 193.25 8.70861C193.25 8.72495 193.25 8.74127 193.25 8.75757C193.25 8.77388 193.25 8.79018 193.25 8.80646C193.25 8.82274 193.25 8.839 193.25 8.85526C193.25 8.87151 193.25 8.88775 193.25 8.90397C193.25 8.9202 193.25 8.93641 193.25 8.95261C193.25 8.96881 193.25 8.98499 193.25 9.00116C193.25 9.01733 193.25 9.03348 193.25 9.04963C193.25 9.06577 193.25 9.08189 193.25 9.09801C193.25 9.11412 193.25 9.13022 193.25 9.1463C193.25 9.16239 193.25 9.17845 193.25 9.19451C193.25 9.21057 193.25 9.22661 193.25 9.24263C193.25 9.25866 193.25 9.27467 193.25 9.29067C193.25 9.30666 193.25 9.32265 193.25 9.33861C193.25 9.35458 193.25 9.37053 193.25 9.38647C193.25 9.40241 193.25 9.41833 193.25 9.43424C193.25 9.45015 193.25 9.46604 193.25 9.48192C193.25 9.4978 193.25 9.51366 193.25 9.52951C193.25 9.54536 193.25 9.56119 193.25 9.57701C193.25 9.59282 193.25 9.60863 193.25 9.62441C193.25 9.6402 193.25 9.65597 193.25 9.67173C193.25 9.68748 193.25 9.70322 193.25 9.71895C193.25 9.73468 193.25 9.75038 193.25 9.76608C193.25 9.78177 193.25 9.79745 193.25 9.81311C193.25 9.82878 193.25 9.84442 193.25 9.86005C193.25 9.87569 193.25 9.8913 193.25 9.9069C193.25 9.9225 193.25 9.93808 193.25 9.95365C193.25 9.96922 193.25 9.98477 193.25 10.0003C193.25 10.0158 193.25 10.0314 193.25 10.0469C193.25 10.0624 193.25 10.0779 193.25 10.0933C193.25 10.1088 193.25 10.1242 193.25 10.1397C193.25 10.1551 193.25 10.1705 193.25 10.1859C193.25 10.2014 193.25 10.2167 193.25 10.2321C193.25 10.2475 193.25 10.2628 193.25 10.2782C193.25 10.2935 193.25 10.3088 193.25 10.3241C193.25 10.3394 193.25 10.3547 193.25 10.37C193.25 10.3853 193.25 10.4005 193.25 10.4158C193.25 10.431 193.25 10.4462 193.25 10.4614C193.25 10.4766 193.25 10.4918 193.25 10.507C193.25 10.5222 193.25 10.5373 193.25 10.5524C193.25 10.5676 193.25 10.5827 193.25 10.5978C193.25 10.6129 193.25 10.628 193.25 10.643C193.25 10.6581 193.25 10.6732 193.25 10.6882C193.25 10.7032 193.25 10.7182 193.25 10.7332C193.25 10.7482 193.25 10.7632 193.25 10.7782C193.25 10.7931 193.25 10.8081 193.25 10.823C193.25 10.8379 193.25 10.8528 193.25 10.8677C193.25 10.8826 193.25 10.8975 193.25 10.9123C193.25 10.9272 193.25 10.942 193.25 10.9568C193.25 10.9716 193.25 10.9864 193.25 11.0012C193.25 11.016 193.25 11.0307 193.25 11.0455C193.25 11.0602 193.25 11.0749 193.25 11.0897C193.25 11.1044 193.25 11.119 193.25 11.1337C193.25 11.1484 193.25 11.163 193.25 11.1777C193.25 11.1923 193.25 11.2069 193.25 11.2215C193.25 11.2361 193.25 11.2507 193.25 11.2652C193.25 11.2798 193.25 11.2943 193.25 11.3088C193.25 11.3234 193.25 11.3379 193.25 11.3523C193.25 11.3668 193.25 11.3813 193.25 11.3957C193.25 11.4102 193.25 11.4246 193.25 11.439C193.25 11.4534 193.25 11.4678 193.25 11.4822C193.25 11.4965 193.25 11.5109 193.25 11.5252C193.25 11.5395 193.25 11.5538 193.25 11.5681C193.25 11.5824 193.25 11.5967 193.25 11.6109C193.25 11.6252 193.25 11.6394 193.25 11.6536C193.25 11.6678 193.25 11.682 193.25 11.6962C193.25 11.7104 193.25 11.7245 193.25 11.7386C193.25 11.7528 193.25 11.7669 193.25 11.781C193.25 11.7951 193.25 11.8091 193.25 11.8232C193.25 11.8372 193.25 11.8513 193.25 11.8653C193.25 11.8793 193.25 11.8933 193.25 11.9073C193.25 11.9212 193.25 11.9352 193.25 11.9491C193.25 11.963 193.25 11.9769 193.25 11.9908C193.25 12.0047 193.25 12.0186 193.25 12.0324C193.25 12.0463 193.25 12.0601 193.25 12.0739C193.25 12.0877 193.25 12.1015 193.25 12.1153C193.25 12.129 193.25 12.1428 193.25 12.1565C193.25 12.1702 193.25 12.1839 193.25 12.1976C193.25 12.2113 193.25 12.225 193.25 12.2386C193.25 12.2522 193.25 12.2659 193.25 12.2795C193.25 12.2931 193.25 12.3066 193.25 12.3202C193.25 12.3337 193.25 12.3473 193.25 12.3608C193.25 12.3743 193.25 12.3878 193.25 12.4013C193.25 12.4147 193.25 12.4282 193.25 12.4416C193.25 12.455 193.25 12.4684 193.25 12.4818C193.25 12.4952 193.25 12.5086 193.25 12.5219C193.25 12.5352 193.25 12.5486 193.25 12.5619C193.25 12.5752 193.25 12.5884 193.25 12.6017C193.25 12.6149 193.25 12.6282 193.25 12.6414C193.25 12.6546 193.25 12.6678 193.25 12.6809C193.25 12.6941 193.25 12.7072 193.25 12.7204C193.25 12.7335 193.25 12.7466 193.25 12.7597C193.25 12.7727 193.25 12.7858 193.25 12.7988C193.25 12.8118 193.25 12.8249 193.25 12.8378C193.25 12.8508 193.25 12.8638 193.25 12.8767C193.25 12.8897 193.25 12.9026 193.25 12.9155C193.25 12.9284 193.25 12.9413 193.25 12.9541C193.25 12.967 193.25 12.9798 193.25 12.9926C193.25 13.0054 193.25 13.0182 193.25 13.0309C193.25 13.0437 193.25 13.0564 193.25 13.0691C193.25 13.0818 193.25 13.0945 193.25 13.1072C193.25 13.1199 193.25 13.1325 193.25 13.1451C193.25 13.1578 193.25 13.1704 193.25 13.1829C193.25 13.1955 193.25 13.208 193.25 13.2206C193.25 13.2331 193.25 13.2456 193.25 13.2581C193.25 13.2706 193.25 13.283 193.25 13.2954C193.25 13.3079 193.25 13.3203 193.25 13.3327C193.25 13.3451 193.25 13.3574 193.25 13.3698C193.25 13.3821 193.25 13.3944 193.25 13.4067C193.25 13.419 193.25 13.4312 193.25 13.4435C193.25 13.4557 193.25 13.4679 193.25 13.4801C193.25 13.4923 193.25 13.5045 193.25 13.5166C193.25 13.5288 193.25 13.5409 193.25 13.553C193.25 13.5651 193.25 13.5772 193.25 13.5892C193.25 13.6013 193.25 13.6133 193.25 13.6253C193.25 13.6373 193.25 13.6493 193.25 13.6612C193.25 13.6732 193.25 13.6851 193.25 13.697C193.25 13.7089 193.25 13.7208 193.25 13.7326C193.25 13.7445 193.25 13.7563 193.25 13.7681C193.25 13.7799 193.25 13.7917 193.25 13.8034C193.25 13.8152 193.25 13.8269 193.25 13.8386C193.25 13.8503 193.25 13.862 193.25 13.8736C193.25 13.8853 193.25 13.8969 193.25 13.9085C193.25 13.9201 193.25 13.9317 193.25 13.9432C193.25 13.9547 193.25 13.9663 193.25 13.9778C193.25 13.9893 193.25 14.0007 193.25 14.0122C193.25 14.0236 193.25 14.0351 193.25 14.0464C193.25 14.0578 193.25 14.0692 193.25 14.0806C193.25 14.0919 193.25 14.1032 193.25 14.1145C193.25 14.1258 193.25 14.1371 193.25 14.1483C193.25 14.1595 193.25 14.1708 193.25 14.1819C193.25 14.1931 193.25 14.2043 193.25 14.2154C193.25 14.2266 193.25 14.2377 193.25 14.2488C193.25 14.2598 193.25 14.2709 193.25 14.2819C193.25 14.293 193.25 14.304 193.25 14.3149C193.25 14.3259 193.25 14.3369 193.25 14.3478C193.25 14.3587 193.25 14.3696 193.25 14.3805C193.25 14.3914 193.25 14.4022 193.25 14.413C193.25 14.4238 193.25 14.4346 193.25 14.4454C193.25 14.4562 193.25 14.4669 193.25 14.4776C193.25 14.4883 193.25 14.499 193.25 14.5097C193.25 14.5203 193.25 14.5309 193.25 14.5415C193.25 14.5521 193.25 14.5627 193.25 14.5733C193.25 14.5838 193.25 14.5943 193.25 14.6048C193.25 14.6153 193.25 14.6258 193.25 14.6362C193.25 14.6467 193.25 14.6571 193.25 14.6675C193.25 14.6778
1543193.25 14.6882 193.25 14.6985C193.25 14.7089 193.25 14.7192 193.25 14.7294C193.25 14.7397 193.25 14.7499 193.25 14.7602C193.25 14.7704 193.25 14.7806 193.25 14.7907C193.25 14.8009 193.25 14.811 193.25 14.8211C193.25 14.8312 193.25 14.8413 193.25 14.8514C193.25 14.8614 193.25 14.8714 193.25 14.8814C193.25 14.8914 193.25 14.9014 193.25 14.9113C193.25 14.9213 193.25 14.9312 193.25 14.941C193.25 14.9509 193.25 14.9608 193.25 14.9706C193.25 14.9804 193.25 14.9902 193.25 15H194.75ZM194.75 -9.50001C194.75 -11.1105 195.208 -12.3974 196.093 -13.2822C196.976 -14.1655 198.387 -14.75 200.5 -14.75V-16.25C198.113 -16.25 196.274 -15.5845 195.032 -14.3428C193.792 -13.1026 193.25 -11.3895 193.25 -9.50001H194.75ZM200.5 -14.75C200.511 -14.75 200.522 -14.75 200.533 -14.75C200.544 -14.75 200.555 -14.75 200.566 -14.75C200.578 -14.75 200.589 -14.75 200.6 -14.75C200.611 -14.75 200.623 -14.75 200.634 -14.75C200.646 -14.75 200.657 -14.75 200.669 -14.75C200.68 -14.75 200.692 -14.75 200.703 -14.75C200.715 -14.75 200.727 -14.75 200.739 -14.75C200.75 -14.75 200.762 -14.75 200.774 -14.75C200.786 -14.75 200.798 -14.75 200.81 -14.75C200.822 -14.75 200.834 -14.75 200.846 -14.75C200.859 -14.75 200.871 -14.75 200.883 -14.75C200.895 -14.75 200.908 -14.75 200.92 -14.75C200.932 -14.75 200.945 -14.75 200.957 -14.75C200.97 -14.75 200.982 -14.75 200.995 -14.75C201.008 -14.75 201.02 -14.75 201.033 -14.75C201.046 -14.75 201.059 -14.75 201.071 -14.75C201.084 -14.75 201.097 -14.75 201.11 -14.75C201.123 -14.75 201.136 -14.75 201.149 -14.75C201.162 -14.75 201.175 -14.75 201.189 -14.75C201.202 -14.75 201.215 -14.75 201.228 -14.75C201.242 -14.75 201.255 -14.75 201.269 -14.75C201.282 -14.75 201.295 -14.75 201.309 -14.75C201.323 -14.75 201.336 -14.75 201.35 -14.75C201.364 -14.75 201.377 -14.75 201.391 -14.75C201.405 -14.75 201.419 -14.75 201.432 -14.75C201.446 -14.75 201.46 -14.75 201.474 -14.75C201.488 -14.75 201.502 -14.75 201.516 -14.75C201.531 -14.75 201.545 -14.75 201.559 -14.75C201.5
154373 -14.75 201.587 -14.75 201.602 -14.75C201.616 -14.75 201.631 -14.75 201.645 -14.75C201.659 -14.75 201.674 -14.75 201.688 -14.75C201.703 -14.75 201.718 -14.75 201.732 -14.75C201.747 -14.75 201.762 -14.75 201.776 -14.75C201.791 -14.75 201.806 -14.75 201.821 -14.75C201.836 -14.75 201.851 -14.75 201.866 -14.75C201.881 -14.75 201.896 -14.75 201.911 -14.75C201.926 -14.75 201.941 -14.75 201.956 -14.75C201.972 -14.75 201.987 -14.75 202.002 -14.75C202.017 -14.75 202.033 -14.75 202.048 -14.75C202.064 -14.75 202.079 -14.75 202.095 -14.75C202.11 -14.75 202.126 -14.75 202.141 -14.75C202.157 -14.75 202.173 -14.75 202.189 -14.75C202.204 -14.75 202.22 -14.75 202.236 -14.75C202.252 -14.75 202.268 -14.75 202.284 -14.75C202.3 -14.75 202.316 -14.75 202.332 -14.75C202.348 -14.75 202.364 -14.75 202.38 -14.75C202.396 -14.75 202.412 -14.75 202.429 -14.75C202.445 -14.75 202.461 -14.75 202.478 -14.75C202.494 -14.75 202.51 -14.75 202.527 -14.75C202.543 -14.75 202.56 -14.75 202.576 -14.75C202.593 -14.75 202.61 -14.75 202.626 -14.75C202.643 -14.75 202.66 -14.75 202.676 -14.75C202.693 -14.75 202.71 -14.75 202.727 -14.75C202.744 -14.75 202.761 -14.75 202.778 -14.75C202.795 -14.75 202.812 -14.75 202.829 -14.75C202.846 -14.75 202.863 -14.75 202.88 -14.75C202.897 -14.75 202.915 -14.75 202.932 -14.75C202.949 -14.75 202.967 -14.75 202.984 -14.75C203.001 -14.75 203.019 -14.75 203.036 -14.75C203.054 -14.75 203.071 -14.75 203.089 -14.75C203.106 -14.75 203.124 -14.75 203.142 -14.75C203.159 -14.75 203.177 -14.75 203.195 -14.75C203.213 -14.75 203.231 -14.75 203.248 -14.75C203.266 -14.75 203.284 -14.75 203.302 -14.75C203.32 -14.75 203.338 -14.75 203.356 -14.75C203.374 -14.75 203.392 -14.75 203.411 -14.75C203.429 -14.75 203.447 -14.75 203.465 -14.75C203.483 -14.75 203.502 -14.75 203.52 -14.75C203.538 -14.75 203.557 -14.75 203.575 -14.75C203.594 -14.75 203.612 -14.75 203.631 -14.75C203.649 -14.75 203.668 -14.75 203.687 -14.75C203.705 -14.75 203.724 -14.75 203.743 -14.75C203.761 -14.75 203.78 -14.75 203.799 -14.75C203.818 -14.75 203.837 -14.75 203.856 -14.75C203.874 -14.75 203.893 -14.75 203.912 -14.75C203.931 -14.75 203.95 -14.75 203.97 -14.75C203.989 -14.75 204.008 -14.75 204.027 -14.75C204.046 -14.75 204.065 -14.75 204.085 -14.75C204.104 -14.75 204.123 -14.75 204.143 -14.75C204.162 -14.75 204.182 -14.75 204.201 -14.75C204.22 -14.75 204.24 -14.75 204.259 -14.75C204.279 -14.75 204.299 -14.75 204.318 -14.75C204.338 -14.75 204.358 -14.75 204.377 -14.75C204.397 -14.75 204.417 -14.75 204.437 -14.75C204.457 -14.75 204.476 -14.75 204.496 -14.75C204.516 -14.75 204.536 -14.75 204.556 -14.75C204.576 -14.75 204.596 -14.75 204.616 -14.75C204.636 -14.75 204.656 -14.75 204.677 -14.75C204.697 -14.75 204.717 -14.75 204.737 -14.75C204.758 -14.75 204.778 -14.75 204.798 -14.75C204.819 -14.75 204.839 -14.75 204.859 -14.75C204.88 -14.75 204.9 -14.75 204.921 -14.75C204.941 -14.75 204.962 -14.75 204.982 -14.75C205.003 -14.75 205.024 -14.75 205.044 -14.75C205.065 -14.75 205.086 -14.75 205.107 -14.75C205.127 -14.75 205.148 -14.75 205.169 -14.75C205.19 -14.75 205.211 -14.75 205.232 -14.75C205.253 -14.75 205.274 -14.75 205.295 -14.75C205.316 -14.75 205.337 -14.75 205.358 -14.75C205.379 -14.75 205.4 -14.75 205.421 -14.75C205.442 -14.75 205.464 -14.75 205.485 -14.75C205.506 -14.75 205.527 -14.75 205.549 -14.75C205.57 -14.75 205.591 -14.75 205.613 -14.75C205.634 -14.75 205.656 -14.75 205.677 -14.75C205.699 -14.75 205.72 -14.75 205.742 -14.75C205.764 -14.75 205.785 -14.75 205.807 -14.75C205.829 -14.75 205.85 -14.75 205.872 -14.75C205.894 -14.75 205.915 -14.75 205.937 -14.75C205.959 -14.75 205.981 -14.75 206.003 -14.75C206.025 -14.75 206.047 -14.75 206.069 -14.75C206.091 -14.75 206.113 -14.75 206.135 -14.75C206.157 -14.75 206.179 -14.75 206.201 -14.75C206.223 -14.75 206.245 -14.75 206.268 -14.75C206.29 -14.75 206.312 -14.75 206.334 -14.75C206.357 -14.75 206.379 -14.75 206.401 -14.75C206.424 -14.75 206.446 -14.75 206.469 -14.75C206.491 -14.75 206.513 -14.75 206.536 -14.75C206.558 -14.75 206.581 -14.75 206.604 -14.75C206.626 -14.75 206.649 -14.75 206.671 -14.75C206.694 -14.75 206.717 -14.75 206.74 -14.75C206.762 -14.75 206.785 -14.75 206.808 -14.75C206.831 -14.75 206.854 -14.75 206.876 -14.75C206.899 -14.75 206.922 -14.75 206.945 -14.75C206.968 -14.75 206.991 -14.75 207.014 -14.75C207.037 -14.75 207.06 -14.75 207.083 -14.75C207.106 -14.75 207.13 -14.75 207.153 -14.75C207.176 -14.75 207.199 -14.75 207.222 -14.75C207.246 -14.75 207.269 -14.75 207.292 -14.75C207.315 -14.75 207.339 -14.75 207.362 -14.75C207.386 -14.75 207.409 -14.75 207.432 -14.75C207.456 -14.75 207.479 -14.75 207.503 -14.75C207.526 -14.75 207.55 -14.75 207.574 -14.75C207.597 -14.75 207.621 -14.75 207.644 -14.75C207.668 -14.75 207.692 -14.75 207.716 -14.75C207.739 -14.75 207.763 -14.75 207.787 -14.75C207.811 -14.75 207.834 -14.75 207.858 -14.75C207.882 -14.75 207.906 -14.75 207.93 -14.75C207.954 -14.75 207.978 -14.75 208.002 -14.75C208.026 -14.75 208.05 -14.75 208.074 -14.75C208.098 -14.75 208.122 -14.75 208.146 -14.75C208.17 -14.75 208.194 -14.75 208.219 -14.75C208.243 -14.75 208.267 -14.75 208.291 -14.75C208.316 -14.75 208.34 -14.75 208.364 -14.75C208.389 -14.75 208.413 -14.75 208.437 -14.75C208.462 -14.75 208.486 -14.75 208.511 -14.75C208.535 -14.75 208.559 -14.75 208.584 -14.75C208.608 -14.75 208.633 -14.75 208.658 -14.75C208.682 -14.75 208.707 -14.75 208.731 -14.75C208.756 -14.75 208.781 -14.75 208.805 -14.75C208.83 -14.75 208.855 -14.75 208.88 -14.75C208.904 -14.75 208.929 -14.75 208.954 -14.75C208.979 -14.75 209.004 -14.75 209.028 -14.75C209.053 -14.75 209.078 -14.75 209.103 -14.75C209.128 -14.75 209.153 -14.75 209.178 -14.75C209.203 -14.75 209.228 -14.75 209.253 -14.75C209.278 -14.75 209.303 -14.75 209.328 -14.75C209.354 -14.75 209.379 -14.75 209.404 -14.75C209.429 -14.75 209.454 -14.75 209.479 -14.75C209.505 -14.75 209.53 -14.75 209.555 -14.75C209.581 -14.75 209.606 -14.75 209.631 -14.75C209.657 -14.75 209.682 -14.75 209.707 -14.75C209.733 -14.75 209.758 -14.75 209.784 -14.75C209.809 -14.75 209.835 -14.75 209.86 -14.75C209.886 -14.75 209.911 -14.75 209.937 -14.75C209.962 -14.75 209.988 -14.75 210.014 -14.75C210.039 -14.75 210.065 -14.75 210.091 -14.75C210.116 -14.75 210.142 -14.75 210.168 -14.75C210.193 -14.75 210.219 -14.75 210.245 -14.75C210.271 -14.75 210.297 -14.75 210.322 -14.75C210.348 -14.75 210.374 -14.75 210.4 -14.75C210.426 -14.75 210.452 -14.75 210.478 -14.75C210.504 -14.75 210.53 -14.75 210.556 -14.75C210.582 -14.75 210.608 -14.75 210.634 -14.75C210.66 -14.75 210.686 -14.75 210.712 -14.75C210.738 -14.75 210.764 -14.75 210.79 -14.75C210.817 -14.75 210.843 -14.75 210.869 -14.75C210.895 -14.75 210.921 -14.75 210.948 -14.75C210.974 -14.75 211 -14.75 211.027 -14.75C211.053 -14.75 211.079 -14.75 211.106 -14.75C211.132 -14.75 211.158 -14.75 211.185 -14.75C211.211 -14.75 211.238 -14.75 211.264 -14.75C211.29 -14.75 211.317 -14.75 211.343 -14.75C211.37 -14.75 211.396 -14.75 211.423 -14.75C211.45 -14.75 211.476 -14.75 211.503 -14.75C211.529 -14.75 211.556 -14.75 211.583 -14.75C211.609 -14.75 211.636 -14.75 211.663 -14.75C211.689 -14.75 211.716 -14.75 211.743 -14.75C211.769 -14.75 211.796 -14.75 211.823 -14.75C211.85 -14.75 211.877 -14.75 211.903 -14.75C211.93 -14.75 211.957 -14.75 211.984 -14.75C212.011 -14.75 212.038 -14.75 212.065 -14.75C212.092 -14.75 212.119 -14.75 212.146 -14.75C212.172 -14.75 212.199 -14.75 212.226 -14.75C212.253 -14.75 212.28 -14.75 212.308 -14.75C212.335 -14.75 212.362 -14.75 212.389 -14.75C212.416 -14.75 212.443 -14.75 212.47 -14.75C212.497 -14.75 212.524 -14.75 212.552 -14.75C212.579 -14.75 212.606 -14.75 212.633 -14.75C212.66 -14.75 212.688 -14.75 212.715 -14.75C212.742 -14.75 212.769 -14.75 212.797 -14.75C212.824 -14.75 212.851 -14.75 212.879 -14.75C212.906 -14.75 212.933 -14.75 212.961 -14.75C212.988 -14.75 213.016 -14.75 213.043 -14.75C213.07 -14.75 213.098 -14.75 213.125 -14.75C213.153 -14.75 213.18 -14.75 213.208 -14.75C213.235 -14.75 213.263 -14.75 213.29 -14.75C213.318 -14.75 213.345 -14.75 213.373 -14.75C213.4 -14.75 213.428 -14.75 213.456 -14.75C213.483 -14.75 213.511 -14.75 213.539 -14.75C213.566 -14.75 213.594 -14.75 213.622 -14.75C213.649 -14.75 213.677 -14.75 213.705 -14.75C213.732 -14.75 213.76 -14.75 213.788 -14.75C213.816 -14.75 213.843 -14.75 213.871 -14.75C213.899 -14.75 213.927 -14.75 213.955 -14.75C213.982 -14.75 214.01 -14.75 214.038 -14.75C214.066 -14.75 214.094 -14.75 214.122 -14.75C214.15 -14.75 214.178 -14.75 214.206 -14.75C214.233 -14.75 214.261 -14.75 214.289 -14.75C214.317 -14.75 214.345 -14.75 214.373 -14.75C214.401 -14.75 214.429 -14.75 214.457 -14.75C214.485 -14.75 214.513 -14.75 214.541 -14.75C214.57 -14.75 214.598 -14.75 214.626 -14.75C214.654 -14.75 214.682 -14.75 214.71 -14.75C214.738 -14.75 214.766 -14.75 214.794 -14.75C214.823 -14.75 214.851 -14.75 214.879 -14.75C214.907 -14.75 214.935 -14.75 214.964 -14.75C214.992 -14.75 215.02 -14.75 215.048 -14.75C215.076 -14.75 215.105 -14.75 215.133 -14.75C215.161 -14.75 215.19 -14.75 215.218 -14.75C215.246 -14.75 215.275 -14.75 215.303 -14.75C215.331 -14.75 215.36 -14.75 215.388 -14.75C215.416 -14.75 215.445 -14.75 215.473 -14.75C215.501 -14.75 215.53 -14.75 215.558 -14.75C215.587 -14.75 215.615 -14.75 215.643 -14.75C215.672 -14.75 215.7 -14.75 215.729 -14.75C215.757 -14.75 215.786 -14.75 215.814 -14.75C215.843 -14.75 215.871 -14.75 215.9 -14.75C215.928 -14.75 215.957 -14.75 215.985 -14.75C216.014 -14.75 216.042 -14.75 216.071 -14.75C216.1 -14.75 216.128 -14.75 216.157 -14.75C216.185 -14.75 216.214 -14.75 216.243 -14.75C216.271 -14.75 216.3 -14.75 216.328 -14.75C216.357 -14.75 216.386 -14.75 216.414 -14.75C216.443 -14.75 216.472 -14.75 216.5 -14.75C216.529 -14.75 216.558 -14.75 216.586 -14.75C216.615 -14.75 216.644 -14.75 216.673 -14.75C216.701 -14.75 216.73 -14.75 216.759 -14.75C216.788 -14.75 216.816 -14.75 216.845 -14.75C216.874 -14.75 216.903 -14.75 216.931 -14.75C216.96 -14.75 216.989 -14.75 217.018 -14.75C217.047 -14.75 217.076 -14.75 217.104 -14.75C217.133 -14.75 217.162 -14.75 217.191 -14.75C217.22 -14.75 217.249 -14.75 217.277 -14.75C217.306 -14.75 217.335 -14.75 217.364 -14.75C217.393 -14.75 217.422 -14.75 217.451 -14.75C217.48 -14.75 217.509 -14.75 217.537 -14.75C217.566 -14.75 217.595 -14.75 217.624 -14.75C217.653 -14.75 217.682 -14.75 217.711 -14.75C217.74 -14.75 217.769 -14.75 217.798 -14.75C217.827 -14.75 217.856 -14.75 217.885 -14.75C217.914 -14.75 217.943 -14.75 217.972 -14.75C218.001 -14.75 218.03 -14.75 218.059 -14.75C218.088 -14.75 218.117 -14.75 218.146 -14.75C218.175 -14.75 218.204 -14.75 218.233 -14.75C218.262 -14.75 218.291 -14.75 218.32 -14.75C218.349 -14.75 218.379 -14.75 218.408 -14.75C218.437 -14.75 218.466 -14.75 218.495 -14.75C218.524 -14.75 218.553 -14.75 218.582 -14.75C218.611 -14.75 218.64 -14.75 218.669 -14.75C218.699 -14.75 218.728 -14.75 218.757 -14.75C218.786 -14.75 218.815 -14.75 218.844 -14.75C218.873 -14.75 218.902 -14.75 218.932 -14.75C218.961 -14.75 218.99 -14.75 219.019 -14.75C219.048 -14.75 219.077 -14.75 219.107 -14.75C219.136 -14.75 219.165 -14.75 219.194 -14.75C219.223 -14.75 219.252 -14.75 219.282 -14.75C219.311 -14.75 219.34 -14.75 219.369 -14.75C219.398 -14.75 219.428 -14.75 219.457 -14.75C219.486 -14.75 219.515 -14.75 219.544 -14.75C219.574 -14.75 219.603 -14.75 219.632 -14.75C219.661 -14.75 219.691 -14.75 219.72 -14.75C219.749 -14.75 219.778 -14.75 219.807 -14.75C219.837 -14.75 219.866 -14.75 219.895 -14.75C219.924 -14.75 219.954 -14.75 219.983 -14.75C220.012 -14.75 220.041 -14.75 220.071 -14.75C220.1 -14.75 220.129 -14.75 220.158 -14.75C220.188 -14.75 220.217 -14.75 220.246 -14.75C220.276 -14.75 220.305 -14.75 220.334 -14.75C220.363 -14.75 220.393 -14.75 220.422 -14.75C220.451 -14.75 220.48 -14.75 220.51 -14.75C220.539 -14.75 220.568 -14.75 220.598 -14.75C220.627 -14.75 220.656 -14.75 220.685 -14.75C220.715 -14.75 220.744 -14.75 220.773 -14.75C220.803 -14.75 220.832 -14.75 220.861 -14.75C220.89 -14.75 220.92 -14.75 220.949 -14.75C220.978 -14.75 221.008 -14.75 221.037 -14.75C221.066 -14.75 221.095 -14.75 221.125 -14.75C221.154 -14.75 221.183 -14.75 221.213 -14.75C221.242 -14.75 221.271 -14.75 221.3 -14.75C221.33 -14.75 221.359 -14.75 221.388 -14.75C221.418 -14.75 221.447 -14.75 221.476 -14.75C221.505 -14.75 221.535 -14.75 221.564 -14.75C221.593 -14.75 221.623 -14.75 221.652 -14.75C221.681 -14.75 221.71 -14.75 221.74 -14.75C221.769 -14.75 221.798 -14.75 221.828 -14.75C221.857 -14.75 221.886 -14.75 221.915 -14.75C221.945 -14.75 221.974 -14.75 222.003 -14.75C222.033 -14.75 222.062 -14.75 222.091 -14.75C222.12 -14.75 222.15 -14.75 222.179 -14.75C222.208 -14.75 222.237 -14.75 222.267 -14.75C222.296 -14.75 222.325 -14.75 222.354 -14.75C222.384 -14.75 222.413 -14.75 222.442 -14.75C222.471 -14.75 222.501 -14.75 222.53 -14.75C222.559 -14.75 222.588 -14.75 222.618 -14.75C222.647 -14.75 222.676 -14.75 222.705 -14.75C222.735 -14.75 222.764 -14.75 222.793 -14.75C222.822 -14.75 222.851 -14.75 222.881 -14.75C222.91 -14.75 222.939 -14.75 222.968 -14.75C222.998 -14.75 223.027 -14.75 223.056 -14.75C223.085 -14.75 223.114 -14.75 223.144 -14.75C223.173 -14.75 223.202 -14.75 223.231 -14.75C223.26 -14.75 223.289 -14.75 223.319 -14.75C223.348 -14.75 223.377 -14.75 223.406 -14.75C223.435 -14.75 223.464 -14.75 223.494 -14.75C223.523 -14.75 223.552 -14.75 223.581 -14.75C223.61 -14.75 223.639 -14.75 223.668 -14.75C223.698 -14.75 223.727 -14.75 223.756 -14.75C223.785 -14.75 223.814 -14.75 223.843 -14.75C223.872 -14.75 223.901 -14.75 223.93 -14.75C223.96 -14.75 223.989 -14.75 224.018 -14.75C224.047 -14.75 224.076 -14.75 224.105 -14.75C224.134 -14.75 224.163 -14.75 224.192 -14.75C224.221 -14.75 224.25 -14.75 224.279 -14.75C224.308 -14.75 224.337 -14.75 224.366 -14.75C224.395 -14.75 224.424 -14.75 224.453 -14.75C224.482 -14.75 224.511 -14.75 224.54 -14.75C224.569 -14.75 224.598 -14.75 224.627 -14.75C224.656 -14.75 224.685 -14.75 224.714 -14.75C224.743 -14.75 224.772 -14.75 224.801 -14.75C224.83 -14.75 224.859 -14.75 224.888 -14.75C224.917 -14.75 224.946 -14.75 224.975 -14.75C225.004 -14.75 225.033 -14.75 225.062 -14.75C225.09 -14.75 225.119 -14.75 225.148 -14.75C225.177 -14.75 225.206 -14.75 225.235 -14.75C225.264 -14.75 225.292 -14.75 225.321 -14.75C225.35 -14.75 225.379 -14.75 225.408 -14.75C225.437 -14.75 225.465 -14.75 225.494 -14.75C225.523 -14.75 225.552 -14.75 225.581 -14.75C225.609 -14.75 225.638 -14.75 225.667 -14.75C225.696 -14.75 225.724 -14.75 225.753 -14.75C225.782 -14.75 225.811 -14.75 225.839 -14.75C225.868 -14.75 225.897 -14.75 225.925 -14.75C225.954 -14.75 225.983 -14.75 226.011 -14.75C226.04 -14.75 226.069 -14.75 226.097 -14.75C226.126 -14.75 226.155 -14.75 226.183 -14.75C226.212 -14.75 226.241 -14.75 226.269 -14.75C226.298 -14.75 226.326 -14.75 226.355 -14.75C226.384 -14.75 226.412 -14.75 226.441 -14.75C226.469 -14.75 226.498 -14.75 226.526 -14.75C226.555 -14.75 226.583 -14.75 226.612 -14.75C226.64 -14.75 226.669 -14.75 226.697 -14.75C226.726 -14.75 226.754 -14.75 226.783 -14.75C226.811 -14.75 226.84 -14.75 226.868 -14.75C226.89
15436 -14.75 226.925 -14.75 226.953 -14.75C226.982 -14.75 227.01 -14.75 227.038 -14.75C227.067 -14.75 227.095 -14.75 227.123 -14.75C227.152 -14.75 227.18 -14.75 227.208 -14.75C227.237 -14.75 227.265 -14.75 227.293 -14.75C227.322 -14.75 227.35 -14.75 227.378 -14.75C227.406 -14.75 227.435 -14.75 227.463 -14.75C227.491 -14.75 227.519 -14.75 227.547 -14.75C227.576 -14.75 227.604 -14.75 227.632 -14.75C227.66 -14.75 227.688 -14.75 227.716 -14.75C227.745 -14.75 227.773 -14.75 227.801 -14.75C227.829 -14.75 227.857 -14.75 227.885 -14.75C227.913 -14.75 227.941 -14.75 227.969 -14.75C227.997 -14.75 228.025 -14.75 228.053 -14.75C228.081 -14.75 228.109 -14.75 228.137 -14.75C228.165 -14.75 228.193 -14.75 228.221 -14.75C228.249 -14.75 228.277 -14.75 228.305 -14.75C228.333 -14.75 228.361 -14.75 228.389 -14.75C228.417 -14.75 228.444 -14.75 228.472 -14.75C228.5 -14.75 228.528 -14.75 228.556 -14.75C228.584 -14.75 228.611 -14.75 228.639 -14.75C228.667 -14.75 228.695 -14.75 228.722 -14.75C228.75 -14.75 228.778 -14.75 228.805 -14.75C228.833 -14.75 228.861 -14.75 228.889 -14.75C228.916 -14.75 228.944 -14.75 228.971 -14.75C228.999 -14.75 229.027 -14.75 229.054 -14.75C229.082 -14.75 229.109 -14.75 229.137 -14.75C229.165 -14.75 229.192 -14.75 229.22 -14.75C229.247 -14.75 229.275 -14.75 229.302 -14.75C229.33 -14.75 229.357 -14.75 229.384 -14.75C229.412 -14.75 229.439 -14.75 229.467 -14.75C229.494 -14.75 229.521 -14.75 229.549 -14.75C229.576 -14.75 229.603 -14.75 229.631 -14.75C229.658 -14.75 229.685 -14.75 229.713 -14.75C229.74 -14.75 229.767 -14.75 229.794 -14.75C229.822 -14.75 229.849 -14.75 229.876 -14.75C229.903 -14.75 229.93 -14.75 229.958 -14.75C229.985 -14.75 230.012 -14.75 230.039 -14.75C230.066 -14.75 230.093 -14.75 230.12 -14.75C230.147 -14.75 230.174 -14.75 230.201 -14.75C230.228 -14.75 230.255 -14.75 230.282 -14.75C230.309 -14.75 230.336 -14.75 230.363 -14.75C230.39 -14.75 230.417 -14.75 230.444 -14.75C230.471 -14.75 230.498 -14.75 230.525 -14.75C230.551 -14.75 230.578 -14.75 230.605 -14.75C230.632 -14.75 230.659 -14.75 230.685 -14.75C230.712 -14.75 230.739 -14.75 230.766 -14.75C230.792 -14.75 230.819 -14.75 230.846 -14.75C230.872 -14.75 230.899 -14.75 230.926 -14.75C230.952 -14.75 230.979 -14.75 231.005 -14.75C231.032 -14.75 231.059 -14.75 231.085 -14.75C231.112 -14.75 231.138 -14.75 231.165 -14.75C231.191 -14.75 231.217 -14.75 231.244 -14.75C231.27 -14.75 231.297 -14.75 231.323 -14.75C231.35 -14.75 231.376 -14.75 231.402 -14.75C231.429 -14.75 231.455 -14.75 231.481 -14.75C231.507 -14.75 231.534 -14.75 231.56 -14.75C231.586 -14.75 231.612 -14.75 231.638 -14.75C231.665 -14.75 231.691 -14.75 231.717 -14.75C231.743 -14.75 231.769 -14.75 231.795 -14.75C231.821 -14.75 231.847 -14.75 231.873 -14.75C231.899 -14.75 231.925 -14.75 231.951 -14.75C231.977 -14.75 232.003 -14.75 232.029 -14.75C232.055 -14.75 232.081 -14.75 232.107 -14.75C232.133 -14.75 232.159 -14.75 232.184 -14.75C232.21 -14.75 232.236 -14.75 232.262 -14.75C232.288 -14.75 232.313 -14.75 232.339 -14.75C232.365 -14.75 232.39 -14.75 232.416 -14.75C232.442 -14.75 232.467 -14.75 232.493 -14.75C232.518 -14.75 232.544 -14.75 232.57 -14.75C232.595 -14.75 232.621 -14.75 232.646 -14.75C232.672 -14.75 232.697 -14.75 232.722 -14.75C232.748 -14.75 232.773 -14.75 232.799 -14.75C232.824 -14.75 232.849 -14.75 232.875 -14.75C232.9 -14.75 232.925 -14.75 232.951 -14.75C232.976 -14.75 233.001 -14.75 233.026 -14.75C233.051 -14.75 233.077 -14.75 233.102 -14.75C233.127 -14.75 233.152 -14.75 233.177 -14.75C233.202 -14.75 233.227 -14.75 233.252 -14.75C233.277 -14.75 233.302 -14.75 233.327 -14.75C233.352 -14.75 233.377 -14.75 233.402 -14.75C233.427 -14.75 233.452 -14.75 233.477 -14.75C233.501 -14.75 233.526 -14.75 233.551 -14.75C233.576 -14.75 233.601 -14.75 233.625 -14.75C233.65 -14.75 233.675 -14.75 233.699 -14.75C233.724 -14.75 233.749 -14.75 233.773 -14.75C233.798 -14.75 233.822 -14.75 233.847 -14.75C233.872 -14.75 233.896 -14.75 233.921 -14.75C233.945 -14.75 233.969 -14.75 233.994 -14.75C234.018 -14.75 234.043 -14.75 234.067 -14.75C234.091 -14.75 234.116 -14.75 234.14 -14.75C234.164 -14.75 234.188 -14.75 234.213 -14.75C234.237 -14.75 234.261 -14.75 234.285 -14.75C234.309 -14.75 234.333 -14.75 234.358 -14.75C234.382 -14.75 234.406 -14.75 234.43 -14.75C234.454 -14.75 234.478 -14.75 234.502 -14.75C234.526 -14.75 234.55 -14.75 234.573 -14.75C234.597 -14.75 234.621 -14.75 234.645 -14.75C234.669 -14.75 234.693 -14.75 234.716 -14.75C234.74 -14.75 234.764 -14.75 234.788 -14.75C234.811 -14.75 234.835 -14.75 234.858 -14.75C234.882 -14.75 234.906 -14.75 234.929 -14.75C234.953 -14.75 234.976 -14.75 235 -14.75C235.023 -14.75 235.047 -14.75 235.07 -14.75C235.094 -14.75 235.117 -14.75 235.14 -14.75C235.164 -14.75 235.187 -14.75 235.21 -14.75C235.233 -14.75 235.257 -14.75 235.28 -14.75C235.303 -14.75 235.326 -14.75 235.349 -14.75C235.372 -14.75 235.396 -14.75 235.419 -14.75C235.442 -14.75 235.465 -14.75 235.488 -14.75C235.511 -14.75 235.534 -14.75 235.557 -14.75C235.579 -14.75 235.602 -14.75 235.625 -14.75C235.648 -14.75 235.671 -14.75 235.694 -14.75C235.716 -14.75 235.739 -14.75 235.762 -14.75C235.784 -14.75 235.807 -14.75 235.83 -14.75C235.852 -14.75 235.875 -14.75 235.897 -14.75C235.92 -14.75 235.942 -14.75 235.965 -14.75C235.987 -14.75 236.01 -14.75 236.032 -14.75C236.055 -14.75 236.077 -14.75 236.099 -14.75C236.122 -14.75 236.144 -14.75 236.166 -14.75C236.188 -14.75 236.211 -14.75 236.233 -14.75C236.255 -14.75 236.277 -14.75 236.299 -14.75C236.321 -14.75 236.343 -14.75 236.365 -14.75C236.387 -14.75 236.409 -14.75 236.431 -14.75C236.453 -14.75 236.475 -14.75 236.497 -14.75C236.519 -14.75 236.541 -14.75 236.562 -14.75C236.584 -14.75 236.606 -14.75 236.628 -14.75C236.649 -14.75 236.671 -14.75 236.693 -14.75C236.714 -14.75 236.736 -14.75 236.757 -14.75C236.779 -14.75 236.8 -14.75 236.822 -14.75C236.843 -14.75 236.865 -14.75 236.886 -14.75C236.907 -14.75 236.929 -14.75 236.95 -14.75C236.971 -14.75 236.993 -14.75 237.014 -14.75C237.035 -14.75 237.056 -14.75 237.077 -14.75C237.098 -14.75 237.12 -14.75 237.141 -14.75C237.162 -14.75 237.183 -14.75 237.204 -14.75C237.225 -14.75 237.246 -14.75 237.266 -14.75C237.287 -14.75 237.308 -14.75 237.329 -14.75C237.35 -14.75 237.371 -14.75 237.391 -14.75C237.412 -14.75 237.433 -14.75 237.453 -14.75C237.474 -14.75 237.495 -14.75 237.515 -14.75C237.536 -14.75 237.556 -14.75 237.577 -14.75C237.597 -14.75 237.617 -14.75 237.638 -14.75C237.658 -14.75 237.679 -14.75 237.699 -14.75C237.719 -14.75 237.739 -14.75 237.76 -14.75C237.78 -14.75 237.8 -14.75 237.82 -14.75C237.84 -14.75 237.86 -14.75 237.88 -14.75C237.9 -14.75 237.92 -14.75 237.94 -14.75C237.96 -14.75 237.98 -14.75 238 -14.75V-16.25C237.98 -16.25 237.96 -16.25 237.94 -16.25C237.92 -16.25 237.9 -16.25 237.88 -16.25C237.86
1543-16.25 237.84 -16.25 237.82 -16.25C237.8 -16.25 237.78 -16.25 237.76 -16.25C237.739 -16.25 237.719 -16.25 237.699 -16.25C237.679 -16.25 237.658 -16.25 237.638 -16.25C237.617 -16.25 237.597 -16.25 237.577 -16.25C237.556 -16.25 237.536 -16.25 237.515 -16.25C237.495 -16.25 237.474 -16.25 237.453 -16.25C237.433 -16.25 237.412 -16.25 237.391 -16.25C237.371 -16.25 237.35 -16.25 237.329 -16.25C237.308 -16.25 237.287 -16.25 237.266 -16.25C237.246 -16.25 237.225 -16.25 237.204 -16.25C237.183 -16.25 237.162 -16.25 237.141 -16.25C237.12 -16.25 237.098 -16.25 237.077 -16.25C237.056 -16.25 237.035 -16.25 237.014 -16.25C236.993 -16.25 236.971 -16.25 236.95 -16.25C236.929 -16.25 236.907 -16.25 236.886 -16.25C236.865 -16.25 236.843 -16.25 236.822 -16.25C236.8 -16.25 236.779 -16.25 236.757 -16.25C236.736 -16.25 236.714 -16.25 236.693 -16.25C236.671 -16.25 236.649 -16.25 236.628 -16.25C236.606 -16.25 236.584 -16.25 236.562 -16.25C236.541 -16.25 236.519 -16.25 236.497 -16.25C236.475 -16.25 236.453 -16.25 236.431 -16.25C236.409 -16.25 236.387 -16.25 236.365 -16.25C236.343 -16.25 236.321 -16.25 236.299 -16.25C236.277 -16.25 236.255 -16.25 236.233 -16.25C236.211 -16.25 236.188 -16.25 236.166 -16.25C236.144 -16.25 236.122 -16.25 236.099 -16.25C236.077 -16.25 236.055 -16.25 236.032 -16.25C236.01 -16.25 235.987 -16.25 235.965 -16.25C235.942 -16.25 235.92 -16.25 235.897 -16.25C235.875 -16.25 235.852 -16.25 235.83 -16.25C235.807 -16.25 235.784 -16.25 235.762 -16.25C235.739 -16.25 235.716 -16.25 235.694 -16.25C235.671 -16.25 235.648 -16.25 235.625 -16.25C235.602 -16.25 235.579 -16.25 235.557 -16.25C235.534 -16.25 235.511 -16.25 235.488 -16.25C235.465 -16.25 235.442 -16.25 235.419 -16.25C235.396 -16.25 235.372 -16.25 235.349 -16.25C235.326 -16.25 235.303 -16.25 235.28 -16.25C235.257 -16.25 235.233 -16.25 235.21 -16.25C235.187 -16.25 235.164 -16.25 235.14 -16.25C235.117 -16.25 235.094 -16.25 235.07 -16.25C235.047 -16.25 235.023 -16.25 235 -16.25C234.976 -16.25 234.953 -16.25 234.929 -16.25C234.906 -16.25 234.882 -16.25 234.858 -16.25C234.835 -16.25 234.811 -16.25 234.788 -16.25C234.764 -16.25 234.74 -16.25 234.716 -16.25C234.693 -16.25 234.669 -16.25 234.645 -16.25C234.621 -16.25 234.597 -16.25 234.573 -16.25C234.55 -16.25 234.526 -16.25 234.502 -16.25C234.478 -16.25 234.454 -16.25 234.43 -16.25C234.406 -16.25 234.382 -16.25 234.358 -16.25C234.333 -16.25 234.309 -16.25 234.285 -16.25C234.261 -16.25 234.237 -16.25 234.213 -16.25C234.188 -16.25 234.164 -16.25 234.14 -16.25C234.116 -16.25 234.091 -16.25 234.067 -16.25C234.043 -16.25 234.018 -16.25 233.994 -16.25C233.969 -16.25 233.945 -16.25 233.921 -16.25C233.896 -16.25 233.872 -16.25 233.847 -16.25C233.822 -16.25 233.798 -16.25 233.773 -16.25C233.749 -16.25 233.724 -16.25 233.699 -16.25C233.675 -16.25 233.65 -16.25 233.625 -16.25C233.601 -16.25 233.576 -16.25 233.551 -16.25C233.526 -16.25 233.501 -16.25 233.477 -16.25C233.452 -16.25 233.427 -16.25 233.402 -16.25C233.377 -16.25 233.352 -16.25 233.327 -16.25C233.302 -16.25 233.277 -16.25 233.252 -16.25C233.227 -16.25 233.202 -16.25 233.177 -16.25C233.152 -16.25 233.127 -16.25 233.102 -16.25C233.077 -16.25 233.051 -16.25 233.026 -16.25C233.001 -16.25 232.976 -16.25 232.951 -16.25C232.925 -16.25 232.9 -16.25 232.875 -16.25C232.849 -16.25 232.824 -16.25 232.799 -16.25C232.773 -16.25 232.748 -16.25 232.722 -16.25C232.697 -16.25 232.672 -16.25 232.646 -16.25C232.621 -16.25 232.595 -16.25 232.57 -16.25C232.544 -16.25 232.518 -16.25 232.493 -16.25C232.467 -16.25 232.442 -16.25 232.416 -16.25C232.39 -16.25 232.365 -16.25 232.339 -16.25C232.313 -16.25 232.288 -16.25 232.262 -16.25C232.236 -16.25 232.21 -16.25 232.184 -16.25C232.159 -16.25 232.133 -16.25 232.107 -16.25C232.081 -16.25 232.055 -16.25 232.029 -16.25C232.003 -16.25 231.977 -16.25 231.951 -16.25C231.925 -16.25 231.899 -16.25 231.873 -16.25C231.847 -16.25 231.821 -16.25 231.795 -16.25C231.769 -16.25 231.743 -16.25 231.717 -16.25C231.691 -16.25 231.665 -16.25 231.638 -16.25C231.612 -16.25 231.586 -16.25 231.56 -16.25C231.534 -16.25 231.507 -16.25 231.481 -16.25C231.455 -16.25 231.429 -16.25 231.402 -16.25C231.376 -16.25 231.35 -16.25 231.323 -16.25C231.297 -16.25 231.27 -16.25 231.244 -16.25C231.217 -16.25 231.191 -16.25 231.165 -16.25C231.138 -16.25 231.112 -16.25 231.085 -16.25C231.059 -16.25 231.032 -16.25 231.005 -16.25C230.979 -16.25 230.952 -16.25 230.926 -16.25C230.899 -16.25 230.872 -16.25 230.846 -16.25C230.819 -16.25 230.792 -16.25 230.766 -16.25C230.739 -16.25 230.712 -16.25 230.685 -16.25C230.659 -16.25 230.632 -16.25 230.605 -16.25C230.578 -16.25 230.551 -16.25 230.525 -16.25C230.498 -16.25 230.471 -16.25 230.444 -16.25C230.417 -16.25 230.39 -16.25 230.363 -16.25C230.336 -16.25 230.309 -16.25 230.282 -16.25C230.255 -16.25 230.228 -16.25 230.201 -16.25C230.174 -16.25 230.147 -16.25 230.12 -16.25C230.093 -16.25 230.066 -16.25 230.039 -16.25C230.012 -16.25 229.985 -16.25 229.958 -16.25C229.93 -16.25 229.903 -16.25 229.876 -16.25C229.849 -16.25 229.822 -16.25 229.794 -16.25C229.767 -16.25 229.74 -16.25 229.713 -16.25C229.685 -16.25 229.658 -16.25 229.631 -16.25C229.603 -16.25 229.576 -16.25 229.549 -16.25C229.521 -16.25 229.494 -16.25 229.467 -16.25C229.439 -16.25 229.412 -16.25 229.384 -16.25C229.357 -16.25 229.33 -16.25 229.302 -16.25C229.275 -16.25 229.247 -16.25 229.22 -16.25C229.192 -16.25 229.165
1543-16.25 229.137 -16.25C229.109 -16.25 229.082 -16.25 229.054 -16.25C229.027 -16.25 228.999 -16.25 228.971 -16.25C228.944 -16.25 228.916 -16.25 228.889 -16.25C228.861 -16.25 228.833 -16.25 228.805 -16.25C228.778 -16.25 228.75 -16.25 228.722 -16.25C228.695 -16.25 228.667 -16.25 228.639 -16.25C228.611 -16.25 228.584 -16.25 228.556 -16.25C228.528 -16.25 228.5 -16.25 228.472 -16.25C228.444 -16.25 228.417 -16.25 228.389 -16.25C228.361 -16.25 228.333 -16.25 228.305 -16.25C228.277 -16.25 228.249 -16.25 228.221 -16.25C228.193 -16.25 228.165 -16.25 228.137 -16.25C228.109 -16.25 228.081 -16.25 228.053 -16.25C228.025 -16.25 227.997 -16.25 227.969 -16.25C227.941 -16.25 227.913 -16.25 227.885 -16.25C227.857 -16.25 227.829 -16.25 227.801 -16.25C227.773 -16.25 227.745 -16.25 227.716 -16.25C227.688 -16.25 227.66 -16.25 227.632 -16.25C227.604 -16.25 227.576 -16.25 227.547 -16.25C227.519 -16.25 227.491 -16.25 227.463 -16.25C227.435 -16.25 227.406 -16.25 227.378 -16.25C227.35 -16.25 227.322 -16.25 227.293 -16.25C227.265 -16.25 227.237 -16.25 227.208 -16.25C227.18 -16.25 227.152 -16.25 227.123 -16.25C227.095 -16.25 227.067 -16.25 227.038 -16.25C227.01 -16.25 226.982 -16.25 226.953 -16.25C226.925 -16.25 226.896 -16.25 226.868 -16.25C226.84 -16.25 226.811 -16.25 226.783 -16.25C226.754 -16.25 226.726 -16.25 226.697 -16.25C226.669 -16.25 226.64 -16.25 226.612 -16.25C226.583 -16.25 226.555 -16.25 226.526 -16.25C226.498 -16.25 226.469 -16.25 226.441 -16.25C226.412 -16.25 226.384 -16.25 226.355 -16.25C226.326 -16.25 226.298 -16.25 226.269 -16.25C226.241 -16.25 226.212 -16.25 226.183 -16.25C226.155 -16.25 226.126 -16.25 226.097 -16.25C226.069 -16.25 226.04 -16.25 226.011 -16.25C225.983 -16.25 225.954 -16.25 225.925 -16.25C225.897 -16.25 225.868 -16.25 225.839 -16.25C225.811 -16.25 225.782 -16.25 225.753 -16.25C225.724 -16.25 225.696 -16.25 225.667 -16.25C225.638 -16.25 225.609 -16.25 225.581 -16.25C225.552 -16.25 225.523 -16.25 225.494 -16.25C225.465 -16.25 225.437 -16.25 225.408 -16.25C225.379 -16.25 225.35 -16.25 225.321 -16.25C225.292 -16.25 225.264 -16.25 225.235 -16.25C225.206 -16.25 225.177 -16.25 225.148 -16.25C225.119 -16.25 225.09 -16.25 225.062 -16.25C225.033 -16.25 225.004 -16.25 224.975 -16.25C224.946 -16.25 224.917 -16.25 224.888 -16.25C224.859 -16.25 224.83 -16.25 224.801 -16.25C224.772 -16.25 224.743 -16.25 224.714 -16.25C224.685 -16.25 224.656 -16.25 224.627 -16.25C224.598 -16.25 224.569 -16.25 224.54 -16.25C224.511 -16.25 224.482 -16.25 224.453 -16.25C224.424 -16.25 224.395 -16.25 224.366 -16.25C224.337 -16.25 224.308 -16.25 224.279 -16.25C224.25 -16.25 224.221 -16.25 224.192 -16.25C224.163 -16.25 224.134 -16.25 224.105 -16.25C224.076 -16.25 224.047 -16.25 224.018 -16.25C223.989 -16.25 223.96 -16.25 223.93 -16.25C223.901 -16.25 223.872 -16.25 223.843 -16.25C223.814 -16.25 223.785 -16.25 223.756 -16.25C223.727 -16.25 223.698 -16.25 223.668 -16.25C223.639 -16.25 223.61 -16.25 223.581 -16.25C223.552 -16.25 223.523 -16.25 223.494 -16.25C223.464 -16.25 223.435 -16.25 223.406 -16.25C223.377 -16.25 223.348 -16.25 223.319 -16.25C223.289 -16.25 223.26 -16.25 223.231 -16.25C223.202 -16.25 223.173 -16.25 223.144 -16.25C223.114 -16.25 223.085 -16.25 223.056 -16.25C223.027 -16.25 222.998 -16.25 222.968 -16.25C222.939 -16.25 222.91 -16.25 222.881 -16.25C222.851 -16.25 222.822 -16.25 222.793 -16.25C222.764 -16.25 222.735 -16.25 222.705 -16.25C222.676 -16.25 222.647 -16.25 222.618 -16.25C222.588 -16.25 222.559 -16.25 222.53 -16.25C222.501 -16.25 222.471 -16.25 222.442 -16.25C222.413 -16.25 222.384 -16.25 222.354 -16.25C222.325 -16.25 222.296 -16.25 222.267 -16.25C222.237 -16.25 222.208 -16.25 222.179 -16.25C222.15 -16.25 222.12 -16.25 222.091 -16.25C222.062 -16.25 222.033 -16.25 222.003 -16.25C221.974 -16.25 221.945 -16.25 221.915 -16.25C221.886 -16.25 221.857 -16.25 221.828 -16.25C221.798 -16.25 221.769 -16.25 221.74 -16.25C221.71 -16.25 221.681 -16.25 221.652 -16.25C221.623 -16.25 221.593 -16.25 221.564 -16.25C221.535 -16.25 221.505 -16.25 221.476 -16.25C221.447 -16.25 221.418 -16.25 221.388 -16.25C221.359 -16.25 221.33 -16.25 221.3 -16.25C221.271 -16.25 221.242 -16.25 221.213 -16.25C221.183 -16.25 221.154 -16.25 221.125 -16.25C221.095 -16.25 221.066 -16.25 221.037 -16.25C221.008 -16.25 220.978 -16.25 220.949 -16.25C220.92 -16.25 220.89 -16.25 220.861 -16.25C220.832 -16.25 220.803 -16.25 220.773 -16.25C220.744 -16.25 220.715 -16.25 220.685 -16.25C220.656 -16.25 220.627 -16.25 220.598 -16.25C220.568 -16.25 220.539 -16.25 220.51 -16.25C220.48 -16.25 220.451 -16.25 220.422 -16.25C220.393 -16.25 220.363 -16.25 220.334 -16.25C220.305 -16.25 220.276 -16.25 220.246 -16.25C220.217 -16.25 220.188 -16.25 220.158 -16.25C220.129 -16.25 220.1 -16.25 220.071 -16.25C220.041 -16.25 220.012 -16.25 219.983 -16.25C219.954 -16.25 219.924 -16.25 219.895 -16.25C219.866 -16.25 219.837 -16.25 219.807 -16.25C219.778 -16.25 219.749 -16.25 219.72 -16.25C219.691 -16.25 219.661 -16.25 219.632 -16.25C219.603 -16.25 219.574 -16.25 219.544 -16.25C219.515 -16.25 219.486 -16.25 219.457 -16.25C219.428 -16.25 219.398 -16.25 219.369 -16.25C219.34 -16.25 219.311 -16.25 219.282 -16.25C219.252 -16.25 219.223 -16.25 219.194 -16.25C219.165 -16.25 219.136 -16.25 219.107 -16.25C219.077 -16.25 219.048 -16.25 219.019 -16.25C218.99 -16.25 218.961 -16.25 218.932 -16.25C218.902 -16.25 218.873 -16.25 218.844 -16.25C218.815 -16.25 218.786 -16.25 218.757 -16.25C218.728 -16.25 218.699 -16.25 218.669 -16.25C218.64 -16.25 218.611 -16.25 218.582 -16.25C218.553 -16.25 218.524 -16.25 218.495 -16.25C218.466 -16.25 218.437 -16.25 218.408 -16.25C218.379 -16.25 218.349 -16.25 218.32 -16.25C218.291 -16.25 218.262 -16.25 218.233 -16.25C218.204 -16.25 218.175 -16.25 218.146 -16.25C218.117 -16.25 218.088 -16.25 218.059 -16.25C218.03 -16.25 218.001 -16.25 217.972 -16.25C217.943 -16.25 217.914 -16.25 217.885 -16.25C217.856 -16.25 217.827 -16.25 217.798 -16.25C217.769 -16.25 217.74 -16.25 217.711 -16.25C217.682 -16.25 217.653 -16.25 217.624 -16.25C217.595 -16.25 217.566 -16.25 217.537 -16.25C217.509 -16.25 217.48 -16.25 217.451 -16.25C217.422 -16.25 217.393 -16.25 217.364 -16.25C217.335 -16.25 217.306 -16.25 217.277 -16.25C217.249 -16.25 217.22 -16.25 217.191 -16.25C217.162 -16.25 217.133 -16.25 217.104 -16.25C217.076 -16.25 217.047 -16.25 217.018 -16.25C216.989 -16.25 216.96 -16.25 216.931 -16.25C216.903 -16.25 216.874 -16.25 216.845 -16.25C216.816 -16.25 216.788 -16.25 216.759 -16.25C216.73 -16.25 216.701 -16.25 216.673 -16.25C216.644 -16.25 216.615 -16.25 216.586 -16.25C216.558 -16.25 216.529 -16.25 216.5 -16.25C216.472 -16.25 216.443 -16.25 216.414 -16.25C216.386 -16.25 216.357 -16.25 216.328 -16.25C216.3 -16.25 216.271 -16.25 216.243 -16.25C216.214 -16.25 216.185 -16.25 216.157 -16.25C216.128 -16.25 216.1 -16.25 216.071 -16.25C216.042 -16.25 216.014 -16.25 215.985 -16.25C215.957 -16.25 215.928 -16.25 215.9 -16.25C215.871 -16.25 215.843 -16.25 215.814 -16.25C215.786 -16.25 215.757 -16.25 215.729 -16.25C215.7 -16.25 215.672 -16.25 215.643 -16.25C215.615 -16.25 215.587 -16.25 215.558 -16.25C215.53 -16.25 215.501 -16.25 215.473 -16.25C215.445 -16.25 215.416 -16.25 215.388 -16.25C215.36
1543-16.25 215.331 -16.25 215.303 -16.25C215.275 -16.25 215.246 -16.25 215.218 -16.25C215.19 -16.25 215.161 -16.25 215.133 -16.25C215.105 -16.25 215.076 -16.25 215.048 -16.25C215.02 -16.25 214.992 -16.25 214.964 -16.25C214.935 -16.25 214.907 -16.25 214.879 -16.25C214.851 -16.25 214.823 -16.25 214.794 -16.25C214.766 -16.25 214.738 -16.25 214.71 -16.25C214.682 -16.25 214.654 -16.25 214.626 -16.25C214.598 -16.25 214.57 -16.25 214.541 -16.25C214.513 -16.25 214.485 -16.25 214.457 -16.25C214.429 -16.25 214.401 -16.25 214.373 -16.25C214.345 -16.25 214.317 -16.25 214.289 -16.25C214.261 -16.25 214.233 -16.25 214.206 -16.25C214.178 -16.25 214.15 -16.25 214.122 -16.25C214.094 -16.25 214.066 -16.25 214.038 -16.25C214.01 -16.25 213.982 -16.25 213.955 -16.25C213.927 -16.25 213.899 -16.25 213.871 -16.25C213.843 -16.25 213.816 -16.25 213.788 -16.25C213.76 -16.25 213.732 -16.25 213.705 -16.25C213.677 -16.25 213.649 -16.25 213.622 -16.25C213.594 -16.25 213.566 -16.25 213.539 -16.25C213.511 -16.25 213.483 -16.25 213.456 -16.25C213.428 -16.25 213.4 -16.25 213.373 -16.25C213.345 -16.25 213.318 -16.25 213.29 -16.25C213.263 -16.25 213.235 -16.25 213.208 -16.25C213.18 -16.25 213.153 -16.25 213.125 -16.25C213.098 -16.25 213.07 -16.25 213.043 -16.25C213.016 -16.25 212.988 -16.25 212.961 -16.25C212.933 -16.25 212.906 -16.25 212.879 -16.25C212.851 -16.25 212.824 -16.25 212.797 -16.25C212.769 -16.25 212.742 -16.25 212.715 -16.25C212.688 -16.25 212.66 -16.25 212.633 -16.25C212.606 -16.25 212.579 -16.25 212.552 -16.25C212.524 -16.25 212.497 -16.25 212.47 -16.25C212.443 -16.25 212.416 -16.25 212.389 -16.25C212.362 -16.25 212.335 -16.25 212.308 -16.25C212.28 -16.25 212.253 -16.25 212.226 -16.25C212.199 -16.25 212.172 -16.25 212.146 -16.25C212.119 -16.25 212.092 -16.25 212.065 -16.25C212.038 -16.25 212.011 -16.25 211.984 -16.25C211.957 -16.25 211.93 -16.25 211.903 -16.25C211.877 -16.25 211.85 -16.25 211.823 -16.25C211.796 -16.25 211.769 -16.25 211.743 -16.25C211.716 -16.25 211.689 -16.25 211.663 -16.25C211.636 -16.25 211.609 -16.25 211.583 -16.25C211.556 -16.25 211.529 -16.25 211.503 -16.25C211.476 -16.25 211.45 -16.25 211.423 -16.25C211.396 -16.25 211.37 -16.25 211.343 -16.25C211.317 -16.25 211.29 -16.25 211.264 -16.25C211.238 -16.25 211.211 -16.25 211.185 -16.25C211.158 -16.25 211.132 -16.25 211.106 -16.25C211.079 -16.25 211.053 -16.25 211.027 -16.25C211 -16.25 210.974 -16.25 210.948 -16.25C210.921 -16.25 210.895 -16.25 210.869 -16.25C210.843 -16.25 210.817 -16.25 210.79 -16.25C210.764 -16.25 210.738 -16.25 210.712 -16.25C210.686 -16.25 210.66 -16.25 210.634 -16.25C210.608 -16.25 210.582 -16.25 210.556 -16.25C210.53 -16.25 210.504 -16.25 210.478 -16.25C210.452 -16.25 210.426 -16.25 210.4 -16.25C210.374 -16.25 210.348 -16.25 210.322 -16.25C210.297 -16.25 210.271 -16.25 210.245 -16.25C210.219 -16.25 210.193 -16.25 210.168 -16.25C210.142 -16.25 210.116 -16.25 210.091 -16.25C210.065 -16.25 210.039 -16.25 210.014 -16.25C209.988 -16.25 209.962 -16.25 209.937 -16.25C209.911 -16.25 209.886 -16.25 209.86 -16.25C209.835 -16.25 209.809 -16.25 209.784 -16.25C209.758 -16.25 209.733 -16.25 209.707 -16.25C209.682 -16.25 209.657 -16.25 209.631 -16.25C209.606 -16.25 209.581 -16.25 209.555 -16.25C209.53 -16.25 209.505 -16.25 209.479 -16.25C209.454 -16.25 209.429 -16.25 209.404 -16.25C209.379 -16.25 209.354 -16.25 209.328 -16.25C209.303 -16.25 209.278 -16.25 209.253 -16.25C209.228 -16.25 209.203 -16.25 209.178 -16.25C209.153 -16.25 209.128 -16.25 209.103 -16.25C209.078 -16.25 209.053 -16.25 209.028 -16.25C209.004 -16.25 208.979 -16.25 208.954 -16.25C208.929 -16.25 208.904 -16.25 208.88 -16.25C208.855 -16.25 208.83 -16.25 208.805 -16.25C208.781 -16.25 208.756 -16.25 208.731 -16.25C208.707 -16.25 208.682 -16.25 208.658 -16.25C208.633 -16.25 208.608 -16.25 208.584 -16.25C208.559 -16.25 208.535 -16.25 208.511 -16.25C208.486 -16.25 208.462 -16.25 208.437 -16.25C208.413 -16.25 208.389 -16.25 208.364 -16.25C208.34 -16.25 208.316 -16.25 208.291 -16.25C208.267 -16.25 208.243 -16.25 208.219 -16.25C208.194 -16.25 208.17 -16.25 208.146 -16.25C208.122 -16.25 208.098 -16.25 208.074 -16.25C208.05 -16.25 208.026 -16.25 208.002 -16.25C207.978 -16.25 207.954 -16.25 207.93 -16.25C207.906 -16.25 207.882 -16.25 207.858 -16.25C207.834 -16.25 207.811 -16.25 207.787 -16.25C207.763 -16.25 207.739 -16.25 207.716 -16.25C207.692 -16.25 207.668 -16.25 207.644 -16.25C207.621 -16.25 207.597 -16.25 207.574 -16.25C207.55 -16.25 207.526 -16.25 207.503 -16.25C207.479 -16.25 207.456 -16.25 207.432 -16.25C207.409 -16.25 207.386 -16.25 207.362 -16.25C207.339 -16.25 207.315 -16.25 207.292 -16.25C207.269 -16.25 207.246 -16.25 207.222 -16.25C207.199 -16.25 207.176 -16.25 207.153 -16.25C207.13 -16.25 207.106 -16.25 207.083 -16.25C207.06 -16.25 207.037 -16.25 207.014 -16.25C206.991 -16.25 206.968 -16.25 206.945 -16.25C206.922 -16.25 206.899 -16.25 206.876 -16.25C206.854 -16.25 206.831 -16.25 206.808 -16.25C206.785 -16.25 206.762 -16.25 206.74 -16.25C206.717 -16.25 206.694 -16.25 206.671 -16.25C206.649 -16.25 206.626 -16.25 206.604 -16.25C206.581 -16.25 206.558 -16.25 206.536 -16.25C206.513 -16.25 206.491 -16.25 206.469 -16.25C206.446 -16.25 206.424 -16.25 206.401 -16.25C206.379 -16.25 206.357 -16.25 206.334 -16.25C206.312 -16.25 206.29 -16.25 206.268 -16.25C206.245 -16.25 206.223 -16.25 206.201 -16.25C206.179 -16.25 206.157 -16.25 206.135 -16.25C206.113 -16.25 206.091 -16.25 206.069 -16.25C206.047 -16.25 206.025 -16.25 206.003 -16.25C205.981 -16.25 205.959 -16.25 205.937 -16.25C205.915 -16.25 205.894 -16.25 205.872 -16.25C205.85 -16.25 205.829 -16.25 205.807 -16.25C205.785 -16.25 205.764 -16.25 205.742 -16.25C205.72 -16.25 205.699 -16.25 205.677 -16.25C205.656 -16.25 205.634 -16.25 205.613 -16.25C205.591 -16.25 205.57 -16.25 205.549 -16.25C205.527 -16.25 205.506 -16.25 205.485 -16.25C205.464 -16.25 205.442 -16.25 205.421 -16.25C205.4 -16.25 205.379 -16.25 205.358 -16.25C205.337 -16.25 205.316 -16.25 205.295 -16.25C205.274 -16.25 205.253 -16.25 205.232 -16.25C205.211 -16.25 205.19 -16.25 205.169 -16.25C205.148 -16.25 205.127 -16.25 205.107 -16.25C205.086 -16.25 205.065 -16.25 205.044 -16.25C205.024 -16.25 205.003 -16.25 204.982 -16.25C204.962 -16.25 204.941 -16.25 204.921 -16.25C204.9 -16.25 204.88 -16.25 204.859 -16.25C204.839 -16.25 204.819 -16.25 204.798 -16.25C204.778 -16.25 204.758 -16.25 204.737 -16.25C204.717 -16.25 204.697 -16.25 204.677 -16.25C204.656 -16.25 204.636 -16.25 204.616 -16.25C204.596 -16.25 204.576 -16.25 204.556 -16.25C204.536 -16.25 204.516 -16.25 204.496 -16.25C204.476 -16.25 204.457 -16.25 204.437 -16.25C204.417 -16.25 204.397 -16.25 204.377 -16.25C204.358 -16.25 204.338 -16.25 204.318 -16.25C204.299 -16.25 204.279 -16.25 204.259 -16.25C204.24 -16.25 204.22 -16.25 204.201 -16.25C204.182 -16.25 204.162 -16.25 204.143 -16.25C204.123 -16.25 204.104 -16.25 204.085 -16.25C204.065
1543-16.25 204.046 -16.25 204.027 -16.25C204.008 -16.25 203.989 -16.25 203.97 -16.25C203.95 -16.25 203.931 -16.25 203.912 -16.25C203.893 -16.25 203.874 -16.25 203.856 -16.25C203.837 -16.25 203.818 -16.25 203.799 -16.25C203.78 -16.25 203.761 -16.25 203.743 -16.25C203.724 -16.25 203.705 -16.25 203.687 -16.25C203.668 -16.25 203.649 -16.25 203.631 -16.25C203.612 -16.25 203.594 -16.25 203.575 -16.25C203.557 -16.25 203.538 -16.25 203.52 -16.25C203.502 -16.25 203.483 -16.25 203.465 -16.25C203.447 -16.25 203.429 -16.25 203.411 -16.25C203.392 -16.25 203.374 -16.25 203.356 -16.25C203.338 -16.25 203.32 -16.25 203.302 -16.25C203.284 -16.25 203.266 -16.25 203.248 -16.25C203.231 -16.25 203.213 -16.25 203.195 -16.25C203.177 -16.25 203.159 -16.25 203.142 -16.25C203.124 -16.25 203.106 -16.25 203.089 -16.25C203.071 -16.25 203.054 -16.25 203.036 -16.25C203.019 -16.25 203.001 -16.25 202.984 -16.25C202.967 -16.25 202.949 -16.25 202.932 -16.25C202.915 -16.25 202.897 -16.25 202.88 -16.25C202.863 -16.25 202.846 -16.25 202.829 -16.25C202.812 -16.25 202.795 -16.25 202.778 -16.25C202.761 -16.25 202.744 -16.25 202.727 -16.25C202.71 -16.25 202.693 -16.25 202.676 -16.25C202.66 -16.25 202.643 -16.25 202.626 -16.25C202.61 -16.25 202.593 -16.25 202.576 -16.25C202.56 -16.25 202.543 -16.25 202.527 -16.25C202.51 -16.25 202.494 -16.25 202.478 -16.25C202.461 -16.25 202.445 -16.25 202.429 -16.25C202.412 -16.25 202.396 -16.25 202.38 -16.25C202.364 -16.25 202.348 -16.25 202.332 -16.25C202.316 -16.25 202.3 -16.25 202.284 -16.25C202.268 -16.25 202.252 -16.25 202.236 -16.25C202.22 -16.25 202.204 -16.25 202.189 -16.25C202.173 -16.25 202.157 -16.25 202.141 -16.25C202.126 -16.25 202.11 -16.25 202.095 -16.25C202.079 -16.25 202.064 -16.25 202.048 -16.25C202.033 -16.25 202.017 -16.25 202.002 -16.25C201.987 -16.25 201.972 -16.25 201.956 -16.25C201.941 -16.25 201.926 -16.25 201.911 -16.25C201.896 -16.25 201.881 -16.25 201.866 -16.25C201.851 -16.25 201.836 -16.25 201.821 -16.25C201.806 -16.25 201.791 -16.25 201.776 -16.25C201.762 -16.25 201.747 -16.25 201.732 -16.25C201.718 -16.25 201.703 -16.25 201.688 -16.25C201.674 -16.25 201.659 -16.25 201.645 -16.25C201.631 -16.25 201.616 -16.25 201.602 -16.25C201.587 -16.25 201.573 -16.25 201.559 -16.25C201.545 -16.25 201.531 -16.25 201.516 -16.25C201.502 -16.25 201.488 -16.25 201.474 -16.25C201.46 -16.25 201.446 -16.25 201.432 -16.25C201.419 -16.25 201.405 -16.25 201.391 -16.25C201.377 -16.25 201.364 -16.25 201.35 -16.25C201.336 -16.25 201.323 -16.25 201.309 -16.25C201.295 -16.25 201.282 -16.25 201.269 -16.25C201.255 -16.25 201.242 -16.25 201.228 -16.25C201.215 -16.25 201.202 -16.25 201.189 -16.25C201.175 -16.25 201.162 -16.25 201.149 -16.25C201.136 -16.25 201.123 -16.25 201.11 -16.25C201.097 -16.25 201.084 -16.25 201.071 -16.25C201.059 -16.25 201.046 -16.25 201.033 -16.25C201.02 -16.25 201.008 -16.25 200.995 -16.25C200.982 -16.25 200.97 -16.25 200.957 -16.25C200.945 -16.25 200.932 -16.25 200.92 -16.25C200.908 -16.25 200.895 -16.25 200.883 -16.25C200.871 -16.25 200.859 -16.25 200.846 -16.25C200.834 -16.25 200.822 -16.25 200.81 -16.25C200.798 -16.25 200.786 -16.25 200.774 -16.25C200.762 -16.25 200.75 -16.25 200.739 -16.25C200.727 -16.25 200.715 -16.25 200.703 -16.25C200.692 -16.25 200.68 -16.25 200.669 -16.25C200.657 -16.25 200.646 -16.25 200.634 -16.25C200.623 -16.25 200.611 -16.25 200.6 -16.25C200.589 -16.25 200.578 -16.25 200.566 -16.25C200.555 -16.25 200.544 -16.25 200.533 -16.25C200.522 -16.25 200.511 -16.25 200.5 -16.25V-14.75Z",fill:"url(#paint2_linear_38_7016)"}),(0,v.jsx)("path",{d:"M164 82C164 79.7909 165.791 78 168 78C170.209 78 172 79.7909 172 82C172 84.2091 170.209 86 168 86C165.791 86 164 84.2091 164 82ZM238.53 118.97C238.823 119.263 238.823 119.737 238.53 120.03L233.757 124.803C233.464 125.096 232.99 125.096 232.697 124.803C232.404 124.51 232.404 124.036 232.697 123.743L236.939 119.5L232.697 115.257C232.404 114.964 232.404 114.49 232.697 114.197C232.99 113.904 233.464 113.904 233.757 114.197L238.53 118.97ZM168 81.25C168.006 81.25 168.013 81.25 168.019 81.25C168.026 81.25 168.033 81.25 168.039 81.25C168.046 81.25 168.052 81.25 168.059 81.25C168.065 81.25 168.072 81.25 168.079 81.25C168.085 81.25 168.092 81.25 168.099 81.25C168.105 81.25 168.112 81.25 168.119 81.25C168.125 81.25 168.132 81.25 168.139 81.25C168.146 81.25 168.152 81.25 168.159 81.25C168.166 81.25 168.173 81.25 168.18 81.25C168.186 81.25 168.193 81.25 168.2 81.25C168.207 81.25 168.214 81.25 168.221 81.25C168.228 81.25 168.235 81.25 168.242 81.25C168.249 81.25 168.256 81.25 168.263 81.25C168.27 81.25 168.277 81.25 168.284 81.25C168.291 81.25 168.298 81.25 168.305 81.25C168.312 81.25 168.319 81.25 168.326 81.25C168.333 81.25 168.34 81.25 168.347 81.25C168.355 81.25 168.362 81.25 168.369 81.25C168.376 81.25 168.383 81.25 168.391 81.25C168.398 81.25 168.405 81.25 168.412 81.25C168.42 81.25 168.427 81.25 168.434 81.25C168.442 81.25 168.449 81.25 168.456 81.25C168.464 81.25 168.471 81.25 168.478 81.25C168.486 81.25 168.493 81.25 168.501 81.25C168.508 81.25 168.515 81.25 168.523 81.25C168.53 81.25 168.538 81.25 168.545 81.25C168.553 81.25 168.56 81.25 168.568 81.25C168.575 81.25 168.583 81.25 168.591 81.25C168.598 81.25 168.606 81.25 168.613 81.25C168.621 81.25 168.629 81.25 168.636 81.25C168.644 81.25 168.652 81.25 168.659 81.25C168.667 81.25 168.675 81.25 168.683 81.25C168.69 81.25 168.698 81.25 168.706 81.25C168.714 81.25 168.721 81.25 168.729 81.25C168.737 81.25 168.745 81.25 168.753 81.25C168.761 81.25 168.768 81.25 168.776 81.25C168.784 81.25 168.792 81.25 168.8 81.25C168.808 81.25 168.816 81.25 168.824 81.25C168.832 81.25 168.84 81.25 168.848 81.25C168.856 81.25 168.8
154364 81.25 168.872 81.25C168.88 81.25 168.888 81.25 168.896 81.25C168.904 81.25 168.912 81.25 168.92 81.25C168.928 81.25 168.937 81.25 168.945 81.25C168.953 81.25 168.961 81.25 168.969 81.25C168.977 81.25 168.986 81.25 168.994 81.25C169.002 81.25 169.01 81.25 169.019 81.25C169.027 81.25 169.035 81.25 169.043 81.25C169.052 81.25 169.06 81.25 169.068 81.25C169.077 81.25 169.085 81.25 169.093 81.25C169.102 81.25 169.11 81.25 169.119 81.25C169.127 81.25 169.135 81.25 169.144 81.25C169.152 81.25 169.161 81.25 169.169 81.25C169.178 81.25 169.186 81.25 169.195 81.25C169.203 81.25 169.212 81.25 169.22 81.25C169.229 81.25 169.238 81.25 169.246 81.25C169.255 81.25 169.263 81.25 169.272 81.25C169.281 81.25 169.289 81.25 169.298 81.25C169.307 81.25 169.315 81.25 169.324 81.25C169.333 81.25 169.341 81.25 169.35 81.25C169.359 81.25 169.368 81.25 169.376 81.25C169.385 81.25 169.394 81.25 169.403 81.25C169.412 81.25 169.42 81.25 169.429 81.25C169.438 81.25 169.447 81.25 169.456 81.25C169.465 81.25 169.474 81.25 169.483 81.25C169.492 81.25 169.5 81.25 169.509 81.25C169.518 81.25 169.527 81.25 169.536 81.25C169.545 81.25 169.554 81.25 169.563 81.25C169.572 81.25 169.581 81.25 169.59 81.25C169.6 81.25 169.609 81.25 169.618 81.25C169.627 81.25 169.636 81.25 169.645 81.25C169.654 81.25 169.663 81.25 169.672 81.25C169.682 81.25 169.691 81.25 169.7 81.25C169.709 81.25 169.718 81.25 169.728 81.25C169.737 81.25 169.746 81.25 169.755 81.25C169.765 81.25 169.774 81.25 169.783 81.25C169.793 81.25 169.802 81.25 169.811 81.25C169.821 81.25 169.83 81.25 169.839 81.25C169.849 81.25 169.858 81.25 169.867 81.25C169.877 81.25 169.886 81.25 169.896 81.25C169.905 81.25 169.915 81.25 169.924 81.25C169.934 81.25 169.943 81.25 169.953 81.25C169.962 81.25 169.972 81.25 169.981 81.25C169.991 81.25 170 81.25 170.01 81.25C170.019 81.25 170.029 81.25 170.039 81.25C170.048 81.25 170.058 81.25 170.068 81.25C170.077 81.25 170.087 81.25 170.097 81.25C170.106 81.25 170.116 81.25 170.126 81.25C170.135 81.25 170.145 81.25 170.155 81.25C170.165 81.25 170.174 81.25 170.184 81.25C170.194 81.25 170.204 81.25 170.213 81.25C170.223 81.25 170.233 81.25 170.243 81.25C170.253 81.25 170.263 81.25 170.273 81.25C170.282 81.25 170.292 81.25 170.302 81.25C170.312 81.25 170.322 81.25 170.332 81.25C170.342 81.25 170.352 81.25 170.362 81.25C170.372 81.25 170.382 81.25 170.392 81.25C170.402 81.25 170.412 81.25 170.422 81.25C170.432 81.25 170.442 81.25 170.452 81.25C170.462 81.25 170.472 81.25 170.482 81.25C170.493 81.25 170.503 81.25 170.513 81.25C170.523 81.25 170.533 81.25 170.543 81.25C170.553 81.25 170.564 81.25 170.574 81.25C170.584 81.25 170.594 81.25 170.605 81.25C170.615 81.25 170.625 81.25 170.635 81.25C170.646 81.25 170.656 81.25 170.666 81.25C170.676 81.25 170.687 81.25 170.697 81.25C170.707 81.25 170.718 81.25 170.728 81.25C170.739 81.25 170.749 81.25 170.759 81.25C170.77 81.25 170.78 81.25 170.791 81.25C170.801 81.25 170.811 81.25 170.822 81.25C170.832 81.25 170.843 81.25 170.853 81.25C170.864 81.25 170.874 81.25 170.885 81.25C170.895 81.25 170.906 81.25 170.916 81.25C170.927 81.25 170.938 81.25 170.948 81.25C170.959 81.25 170.969 81.25 170.98 81.25C170.991 81.25 171.001 81.25 171.012 81.25C171.023 81.25 171.033 81.25 171.044 81.25C171.055 81.25 171.065 81.25 171.076 81.25C171.087 81.25 171.097 81.25 171.108 81.25C171.119 81.25 171.13 81.25 171.14 81.25C171.151 81.25 171.162 81.25 171.173 81.25C171.184 81.25 171.194 81.25 171.205 81.25C171.216 81.25 171.227 81.25 171.238 81.25C171.249 81.25 171.26 81.25 171.27 81.25C171.281 81.25 171.292 81.25 171.303 81.25C171.314 81.25 171.325 81.25 171.336 81.25C171.347 81.25 171.358 81.25 171.369 81.25C171.38 81.25 171.391 81.25 171.402 81.25C171.413 81.25 171.424 81.25 171.435 81.25C171.446 81.25 171.457 81.25 171.468 81.25C171.479 81.25 171.49 81.25 171.502 81.25C171.513 81.25 171.524 81.25 171.535 81.25C171.546 81.25 171.557 81.25 171.568 81.25C171.58 81.25 171.591 81.25 171.602 81.25C171.613 81.25 171.624 81.25 171.636 81.25C171.647 81.25 171.658 81.25 171.669 81.25C171.681 81.25 171.692 81.25 171.703 81.25C171.714 81.25 171.726 81.25 171.737 81.25C171.748 81.25 171.76 81.25 171.771 81.25C171.782 81.25 171.794 81.25 171.805 81.25C171.816 81.25 171.828 81.25 171.839 81.25C171.851 81.25 171.862 81.25 171.873 81.25C171.885 81.25 171.896 81.25 171.908 81.25C171.919 81.25 171.931 81.25 171.942 81.25C171.954 81.25 171.965 81.25 171.977 81.25C171.988 81.25 172 81.25 172.011 81.25C172.023 81.25 172.034 81.25 172.046 81.25C172.058 81.25 172.069 81.25 172.081 81.25C172.092 81.25 172.104 81.25 172.116 81.25C172.127 81.25 172.139 81.25 172.151 81.25C172.162 81.25 172.174 81.25 172.186 81.25C172.197 81.25 172.209 81.25 172.221 81.25C172.232 81.25 172.244 81.25 172.256 8
15431.25C172.268 81.25 172.279 81.25 172.291 81.25C172.303 81.25 172.315 81.25 172.326 81.25C172.338 81.25 172.35 81.25 172.362 81.25C172.374 81.25 172.386 81.25 172.397 81.25C172.409 81.25 172.421 81.25 172.433 81.25C172.445 81.25 172.457 81.25 172.469 81.25C172.481 81.25 172.493 81.25 172.505 81.25C172.516 81.25 172.528 81.25 172.54 81.25C172.552 81.25 172.564 81.25 172.576 81.25C172.588 81.25 172.6 81.25 172.612 81.25C172.624 81.25 172.636 81.25 172.648 81.25C172.66 81.25 172.673 81.25 172.685 81.25C172.697 81.25 172.709 81.25 172.721 81.25C172.733 81.25 172.745 81.25 172.757 81.25C172.769 81.25 172.781 81.25 172.794 81.25C172.806 81.25 172.818 81.25 172.83 81.25C172.842 81.25 172.854 81.25 172.867 81.25C172.879 81.25 172.891 81.25 172.903 81.25C172.916 81.25 172.928 81.25 172.94 81.25C172.952 81.25 172.965 81.25 172.977 81.25C172.989 81.25 173.002 81.25 173.014 81.25C173.026 81.25 173.038 81.25 173.051 81.25C173.063 81.25 173.075 81.25 173.088 81.25C173.1 81.25 173.113 81.25 173.125 81.25C173.137 81.25 173.15 81.25 173.162 81.25C173.175 81.25 173.187 81.25 173.199 81.25C173.212 81.25 173.224 81.25 173.237 81.25C173.249 81.25 173.262 81.25 173.274 81.25C173.287 81.25 173.299 81.25 173.312 81.25C173.324 81.25 173.337 81.25 173.349 81.25C173.362 81.25 173.374 81.25 173.387 81.25C173.4 81.25 173.412 81.25 173.425 81.25C173.437 81.25 173.45 81.25 173.463 81.25C173.475 81.25 173.488 81.25 173.501 81.25C173.513 81.25 173.526 81.25 173.539 81.25C173.551 81.25 173.564 81.25 173.577 81.25C173.589 81.25 173.602 81.25 173.615 81.25C173.627 81.25 173.64 81.25 173.653 81.25C173.666 81.25 173.678 81.25 173.691 81.25C173.704 81.25 173.717 81.25 173.729 81.25C173.742 81.25 173.755 81.25 173.768 81.25C173.781 81.25 173.794 81.25 173.806 81.25C173.819 81.25 173.832 81.25 173.845 81.25C173.858 81.25 173.871 81.25 173.884 81.25C173.897 81.25 173.909 81.25 173.922 81.25C173.935 81.25 173.948 81.25 173.961 81.25C173.974 81.25 173.987 81.25 174 81.25C174.013 81.25 174.026 81.25 174.039 81.25C174.052 81.25 174.065 81.25 174.078 81.25C174.091 81.25 174.104 81.25 174.117 81.25C174.13 81.25 174.143 81.25 174.156 81.25C174.169 81.25 174.182 81.25 174.195 81.25C174.208 81.25 174.222 81.25 174.235 81.25C174.248 81.25 174.261 81.25 174.274 81.25C174.287 81.25 174.3 81.25 174.313 81.25C174.327 81.25 174.34 81.25 174.353 81.25C174.366 81.25 174.379 81.25 174.392 81.25C174.406 81.25 174.419 81.25 174.432 81.25C174.445 81.25 174.459 81.25 174.472 81.25C174.485 81.25 174.498 81.25 174.512 81.25C174.525 81.25 174.538 81.25 174.551 81.25C174.565 81.25 174.578 81.25 174.591 81.25C174.605 81.25 174.618 81.25 174.631 81.25C174.645 81.25 174.658 81.25 174.671 81.25C174.685 81.25 174.698 81.25 174.711 81.25C174.725 81.25 174.738 81.25 174.752 81.25C174.765 81.25 174.778 81.25 174.792 81.25C174.805 81.25 174.819 81.25 174.832 81.25C174.846 81.25 174.859 81.25 174.873 81.25C174.886 81.25 174.9 81.25 174.913 81.25C174.926 81.25 174.94 81.25 174.954 81.25C174.967 81.25 174.981 81.25 174.994 81.25C175.008 81.25 175.021 81.25 175.035 81.25C175.048 81.25 175.062 81.25 175.075 81.25C175.089 81.25 175.103 81.25 175.116 81.25C175.13 81.25 175.143 81.25 175.157 81.25C175.171 81.25 175.184 81.25 175.198 81.25C175.212 81.25 175.225 81.25 175.239 81.25C175.253 81.25 175.266 81.25 175.28 81.25C175.294 81.25 175.307 81.25 175.321 81.25C175.335 81.25 175.348 81.25 175.362 81.25C175.376 81.25 175.39 81.25 175.403 81.25C175.417 81.25 175.431 81.25 175.445 81.25C175.458 81.25 175.472 81.25 175.486 81.25C175.5 81.25 175.514 81.25 175.527 81.25C175.541 81.25 175.555 81.25 175.569 81.25C175.583 81.25 175.597 81.25 175.61 81.25C175.624 81.25 175.638 81.25 175.652 81.25C175.666 81.25 175.68 81.25 175.694 81.25C175.708 81.25 175.722 81.25 175.735 81.25C175.749 81.25 175.763 81.25 175.777 81.25C175.791 81.25 175.805 81.25 175.819 81.25C175.833 81.25 175.847 81.25 175.861 81.25C175.875 81.25 175.889 81.25 175.903 81.25C175.917 81.25 175.931 81.25 175.945 81.25C175.959 81.25 175.973 81.25 175.987 81.25C176.001 81.25 176.015 81.25 176.029 81.25C176.043 81.25 176.057 81.25 176.071 81.25C176.085 81.25 176.1 81.25 176.114 81.25C176.128 81.25 176.142 81.25 176.156 81.25C176.17 81.25 176.184 81.25 176.198 81.25C176.212 81.25 176.227 81.25 176.241 81.25C176.255 81.25 176.269 81.25 176.283 81.25C176.297 81.25 176.312 81.25 176.326 81.25C176.34 81.25 176.354 81.25 176.368 81.25C176.383 81.25 176.397 81.25 176.411 81.25C176.425 81.25 176.44 81.25 176.454 81.25C176.468 81.25 176.482 81.25 176.497 81.25C176.511 81.25 176.525 81.25 176.539 81.25C176.554 81.25 176.568 81.25 176.582 81.25C176.597 81.25 176.611 81.25 176.625 81.25C176.64 81.25 176.654 81.25 176.668 81.25C176.683 81.25 176.697 8
15431.25 176.711 81.25C176.726 81.25 176.74 81.25 176.754 81.25C176.769 81.25 176.783 81.25 176.798 81.25C176.812 81.25 176.826 81.25 176.841 81.25C176.855 81.25 176.87 81.25 176.884 81.25C176.898 81.25 176.913 81.25 176.927 81.25C176.942 81.25 176.956 81.25 176.971 81.25C176.985 81.25 177 81.25 177.014 81.25C177.029 81.25 177.043 81.25 177.058 81.25C177.072 81.25 177.087 81.25 177.101 81.25C177.116 81.25 177.13 81.25 177.145 81.25C177.159 81.25 177.174 81.25 177.188 81.25C177.203 81.25 177.218 81.25 177.232 81.25C177.247 81.25 177.261 81.25 177.276 81.25C177.29 81.25 177.305 81.25 177.32 81.25C177.334 81.25 177.349 81.25 177.364 81.25C177.378 81.25 177.393 81.25 177.407 81.25C177.422 81.25 177.437 81.25 177.451 81.25C177.466 81.25 177.481 81.25 177.495 81.25C177.51 81.25 177.525 81.25 177.539 81.25C177.554 81.25 177.569 81.25 177.584 81.25C177.598 81.25 177.613 81.25 177.628 81.25C177.642 81.25 177.657 81.25 177.672 81.25C177.687 81.25 177.701 81.25 177.716 81.25C177.731 81.25 177.746 81.25 177.76 81.25C177.775 81.25 177.79 81.25 177.805 81.25C177.82 81.25 177.834 81.25 177.849 81.25C177.864 81.25 177.879 81.25 177.894 81.25C177.909 81.25 177.923 81.25 177.938 81.25C177.953 81.25 177.968 81.25 177.983 81.25C177.998 81.25 178.012 81.25 178.027 81.25C178.042 81.25 178.057 81.25 178.072 81.25C178.087 81.25 178.102 81.25 178.117 81.25C178.132 81.25 178.146 81.25 178.161 81.25C178.176 81.25 178.191 81.25 178.206 81.25C178.221 81.25 178.236 81.25 178.251 81.25C178.266 81.25 178.281 81.25 178.296 81.25C178.311 81.25 178.326 81.25 178.341 81.25C178.356 81.25 178.371 81.25 178.386 81.25C178.401 81.25 178.416 81.25 178.431 81.25C178.446 81.25 178.461 81.25 178.476 81.25C178.491 81.25 178.506 81.25 178.521 81.25C178.536 81.25 178.551 81.25 178.566 81.25C178.581 81.25 178.596 81.25 178.611 81.25C178.626 81.25 178.641 81.25 178.657 81.25C178.672 81.25 178.687 81.25 178.702 81.25C178.717 81.25 178.732 81.25 178.747 81.25C178.762 81.25 178.777 81.25 178.793 81.25C178.808 81.25 178.823 81.25 178.838 81.25C178.853 81.25 178.868 81.25 178.883 81.25C178.899 81.25 178.914 81.25 178.929 81.25C178.944 81.25 178.959 81.25 178.974 81.25C178.99 81.25 179.005 81.25 179.02 81.25C179.035 81.25 179.05 81.25 179.066 81.25C179.081 81.25 179.096 81.25 179.111 81.25C179.126 81.25 179.142 81.25 179.157 81.25C179.172 81.25 179.187 81.25 179.203 81.25C179.218 81.25 179.233 81.25 179.248 81.25C179.264 81.25 179.279 81.25 179.294 81.25C179.31 81.25 179.325 81.25 179.34 81.25C179.355 81.25 179.371 81.25 179.386 81.25C179.401 81.25 179.417 81.25 179.432 81.25C179.447 81.25 179.463 81.25 179.478 81.25C179.493 81.25 179.509 81.25 179.524 81.25C179.539 81.25 179.555 81.25 179.57 81.25C179.585 81.25 179.601 81.25 179.616 81.25C179.632 81.25 179.647 81.25 179.662 81.25C179.678 81.25 179.693 81.25 179.709 81.25C179.724 81.25 179.739 81.25 179.755 81.25C179.77 81.25 179.786 81.25 179.801 81.25C179.816 81.25 179.832 81.25 179.847 81.25C179.863 81.25 179.878 81.25 179.894 81.25C179.909 81.25 179.925 81.25 179.94 81.25C179.955 81.25 179.971 81.25 179.986 81.25C180.002 81.25 180.017 81.25 180.033 81.25C180.048 81.25 180.064 81.25 180.079 81.25C180.095 81.25 180.11 81.25 180.126 81.25C180.141 81.25 180.157 81.25 180.172 81.25C180.188 81.25 180.203 81.25 180.219 81.25C180.234 81.25 180.25 81.25 180.266 81.25C180.281 81.25 180.297 81.25 180.312 81.25C180.328 81.25 180.343 81.25 180.359 81.25C180.374 81.25 180.39 81.25 180.406 81.25C180.421 81.25 180.437 81.25 180.452 81.25C180.468 81.25 180.484 81.25 180.499 81.25C180.515 81.25 180.53 81.25 180.546 81.25C180.562 81.25 180.577 81.25 180.593 81.25C180.608 81.25 180.624 81.25 180.64 81.25C180.655 81.25 180.671 81.25 180.687 81.25C180.702 81.25 180.718 81.25 180.734 81.25C180.749 81.25 180.765 81.25 180.781 81.25C180.796 81.25 180.812 81.25 180.828 81.25C180.843 81.25 180.859 81.25 180.875 81.25C180.89 81.25 180.906 81.25 180.922 81.25C180.937 81.25 180.953 81.25 180.969 81.25C180.985 81.25 181 81.25 181.016 81.25C181.032 81.25 181.047 81.25 181.063 81.25C181.079 81.25 181.095 81.25 181.11 81.25C181.126 81.25 181.142 81.25 181.158 81.25C181.173 81.25 181.189 81.25 181.205 81.25C181.221 81.25 181.236 81.25 181.252 81.25C181.268 81.25 181.284 81.25 181.3 81.25C181.315 81.25 181.331 81.25 181.347 81.25C181.363 81.25 181.378 81.25 181.394 81.25C181.41 81.25 181.426 81.25 181.442 81.25C181.457 81.25 181.473 81.25 181.489 81.25C181.505 81.25 181.521 81.25 181.537 81.25C181.552 81.25 181.568 81.25 181.584 81.25C181.6 81.25 181.616 81.25 181.632 81.25C181.647 81.25 181.663 81.25 181.679 81.25C181.695 81.25 181.711 81.25 181.727 81.25C181.743 81.25 181.758 81.25 181.774 81.25C181.79 81.25 181.806 81.25 181.822 81.25C181.838 81.25 181.854 81.25 181.87 81.25C181.886 81.25 181.901 81.25 181.917 81.25C181.933 81.25 181.949 81.25 181.965 81.25C181.981 81.25 181.997 81.25 182.013 81.25C182.029 81.25 182.045 81.25 182.061 81.25C182.076 81.25 182.092 81.25 182.108 81.25C182.124 81.25 182.14 81.25 182.156 81.25C182.172 81.25 182.188 81.25 182.204 81.25C182.22 81.25 182.236 81.25 182.252 81.25C182.268 81.25 182.284 81.25 182.3 81.25C182.316 81.25 182.332 81.25 182.348 81.25C182.364 81.25 182.38 81.25 182.396 81.25C182.412 81.25 182.428 81.25 182.444 81.25C182.46 81.25 182.476 81.25 182.492 81.25C182.508 81.25 182.524 81.25 182.54 81.25C182.556 81.25 182.572 81.25 182.588 81.25C182.604 81.25 182.62 81.25 182.636 81.25C182.652 81.25 182.668 81.25 182.684 81.25C182.7 81.25 182.716 81.25 182.732 81.25C182.748 81.25 182.764 81.25 182.78 81.25C182.796 81.25 182.812 81.25 182.828 81.25C182.844 81.25 182.86 81.25 182.876 81.25C182.892 81.25 182.908 81.25 182.924 81.25C182.94 81.25 182.956 81.25 182.973 81.25C182.989 81.25 183.005 81.25 183.021 81.25C183.037 81.25 183.053 81.25 183.069 81.25C183.085 81.25 183.101 81.25 183.117 81.25C183.133 81.25 183.149 81.25 183.166 81.25C183.182 81.25 183.198 81.25 183.214 81.25C183.23 81.25 183.246 81.25 183.262 81.25C183.278 81.25 183.294 81.25 183.311 81.25C183.327 81.25 183.343 81.25 183.359 81.25C183.375 81.25 183.391 81.25 183.407 81.25C183.423 81.25 183.439 81.25 183.456 81.25C183.472 81.25 183.488 81.25 183.504 81.25C183.52 81.25 183.536 81.25 183.552 81.25C183.569 81.25 183.585 81.25 183.601 81.25C183.617 81.25 183.633 81.25 183.649 81.25C183.666 81.25 183.682 81.25 183.698 81.25C183.714 81.25 183.73 81.25 183.746 81.25C183.763 81.25 183.779 81.25 183.795 81.25C183.811 81.25 183.827 81.25 183.843 81.25C183.86 81.25 183.876 81.25 183.892 81.25C183.908 81.25 183.924 81.25 183.94 81.25C183.957 81.25 183.973 81.25 183.989 81.25C184.005 81.25 184.021 81.25 184.038 81.25C184.054 81.25 184.07 81.25 184.086 81.25C184.102 81.25 184.119 81.25 184.135 81.25C184.151 81.25 184.167 81.25 184.183 81.25C184.2 81.25 184.216 81.25 184.232 81.25C184.248 81.25 184.265 81.25 184.281 81.25C184.297 81.25 184.313 81.25 184.329 81.25C184.346 81.25 184.362 81.25 184.378 81.25C184.394 81.25 184.411 81.25 184.427 81.25C184.443 81.25 184.459 81.25 184.476 81.25C184.492 81.25 184.508 81.25 184.524 81.25C184.541 81.25 184.557 81.25 184.573 81.25C184.589 81.25 184.605 81.25 184.622 81.25C184.638 81.25 184.654 81.25 184.671 81.25C184.687 81.25 184.703 81.25 184.719 81.25C184.736 81.25 184.752 81.25 184.768 81.25C184.784 81.25 184.801 81.25 184.817 81.25C184.833 81.25 184.849 81.25 184.866 81.25C184.882 81.25 184.898 81.25 184.914 81.25C184.931 81.25 184.947 81.25 184.963 81.25C184.98 81.25 184.996 81.25 185.012 81.25C185.028 81.25 185.045 81.25 185.061 81.25C185.077 81.25 185.094 81.25 185.11 81.25C185.126 81.25 185.142 81.25 185.159 81.25C185.175 81.25 185.191 81.25 185.208 81.25C185.224 81.25 185.24 81.25 185.256 81.25C185.273 81.25 185.289 81.25 185.305 81.25C185.322 81.25 185.338 81.25 185.354 81.25C185.371 81.25 185.387 81.25 185.403 81.25C185.419 81.25 185.436 81.25 185.452 81.25C185.468 81.25 185.485 81.25 185.501 81.25C185.517 81.25 185.534 81.25 185.55 81.25C185.566 8
15431.25 185.582 81.25 185.599 81.25C185.615 81.25 185.631 81.25 185.648 81.25C185.664 81.25 185.68 81.25 185.697 81.25C185.713 81.25 185.729 81.25 185.746 81.25C185.762 81.25 185.778 81.25 185.795 81.25C185.811 81.25 185.827 81.25 185.844 81.25C185.86 81.25 185.876 81.25 185.893 81.25C185.909 81.25 185.925 81.25 185.941 81.25C185.958 81.25 185.974 81.25 185.99 81.25C186.007 81.25 186.023 81.25 186.039 81.25C186.056 81.25 186.072 81.25 186.088 81.25C186.105 81.25 186.121 81.25 186.137 81.25C186.154 81.25 186.17 81.25 186.186 81.25C186.203 81.25 186.219 81.25 186.235 81.25C186.252 81.25 186.268 81.25 186.284 81.25C186.301 81.25 186.317 81.25 186.333 81.25C186.35 81.25 186.366 81.25 186.382 81.25C186.399 81.25 186.415 81.25 186.431 81.25C186.448 81.25 186.464 81.25 186.48 81.25C186.497 81.25 186.513 81.25 186.529 81.25C186.546 81.25 186.562 81.25 186.578 81.25C186.595 81.25 186.611 81.25 186.627 81.25C186.644 81.25 186.66 81.25 186.676 81.25C186.693 81.25 186.709 81.25 186.726 81.25C186.742 81.25 186.758 81.25 186.775 81.25C186.791 81.25 186.807 81.25 186.824 81.25C186.84 81.25 186.856 81.25 186.873 81.25C186.889 81.25 186.905 81.25 186.922 81.25C186.938 81.25 186.954 81.25 186.971 81.25C186.987 81.25 187.003 81.25 187.02 81.25C187.036 81.25 187.052 81.25 187.069 81.25C187.085 81.25 187.101 81.25 187.118 81.25C187.134 81.25 187.15 81.25 187.167 81.25C187.183 81.25 187.199 81.25 187.216 81.25C187.232 81.25 187.248 81.25 187.265 81.25C187.281 81.25 187.297 81.25 187.314 81.25C187.33 81.25 187.346 81.25 187.363 81.25C187.379 81.25 187.395 81.25 187.412 81.25C187.428 81.25 187.444 81.25 187.461 81.25C187.477 81.25 187.493 81.25 187.51 81.25C187.526 81.25 187.542 81.25 187.559 81.25C187.575 81.25 187.591 81.25 187.608 81.25C187.624 81.25 187.64 81.25 187.657 81.25C187.673 81.25 187.689 81.25 187.706 81.25C187.722 81.25 187.738 81.25 187.755 81.25C187.771 81.25 187.787 81.25 187.804 81.25C187.82 81.25 187.836 81.25 187.853 81.25C187.869 81.25 187.885 81.25 187.902 81.25C187.918 81.25 187.934 81.25 187.95 81.25C187.967 81.25 187.983 81.25 187.999 81.25C188.016 81.25 188.032 81.25 188.048 81.25C188.065 81.25 188.081 81.25 188.097 81.25C188.114 81.25 188.13 81.25 188.146 81.25C188.163 81.25 188.179 81.25 188.195 81.25C188.212 81.25 188.228 81.25 188.244 81.25C188.26 81.25 188.277 81.25 188.293 81.25C188.309 81.25 188.326 81.25 188.342 81.25V82.75C188.326 82.75 188.309 82.75 188.293 82.75C188.277 82.75 188.26 82.75 188.244 82.75C188.228 82.75 188.212 82.75 188.195 82.75C188.179 82.75 188.163 82.75 188.146 82.75C188.13 82.75 188.114 82.75 188.097 82.75C188.081 82.75 188.065 82.75 188.048 82.75C188.032 82.75 188.016 82.75 187.999 82.75C187.983 82.75 187.967 82.75 187.95 82.75C187.934 82.75 187.918 82.75 187.902 82.75C187.885 82.75 187.869 82.75 187.853 82.75C187.836 82.75 187.82 82.75 187.804 82.75C187.787 82.75 187.771 82.75 187.755 82.75C187.738 82.75 187.722 82.75 187.706 82.75C187.689 82.75 187.673 82.75 187.657 82.75C187.64 82.75 187.624 82.75 187.608 82.75C187.591 82.75 187.575 82.75 187.559 82.75C187.542 82.75 187.526 82.75 187.51 82.75C187.493 82.75 187.477 82.75 187.461 82.75C187.444 82.75 187.428 82.75 187.412 82.75C187.395 82.75 187.379 82.75 187.363 82.75C187.346 82.75 187.33 82.75 187.314 82.75C187.297 82.75 187.281 82.75 187.265 82.75C187.248 82.75 187.232 82.75 187.216 82.75C187.199 82.75 187.183 82.75 187.167 82.75C187.15 82.75 187.134 82.75 187.118 82.75C187.101 82.75 187.085 82.75 187.069 82.75C187.052 82.75 187.036 82.75 187.02 82.75C187.003 82.75 186.987 82.75 186.971 82.75C186.954 82.75 186.938 82.75 186.922 82.75C186.905 82.75 186.889 82.75 186.873 82.75C186.856 82.75 186.84 82.75 186.824 82.75C186.807 82.75 186.791 82.75 186.775 82.75C186.758 82.75 186.742 82.75 186.726 82.75C186.709 82.75 186.693 82.75 186.676 82.75C186.66 82.75 186.644 82.75 186.627 82.75C186.611 82.75 186.595 82.75 186.578 82.75C186.562 82.75 186.546 82.75 186.529 82.75C186.513 82.75 186.497 82.75 186.48 82.75C186.464 82.75 186.448 82.75 186.431 82.75C186.415 82.75 186.399 82.75 186.382 82.75C186.366 82.75 186.35 82.75 186.333 82.75C186.317 82.75 186.301 82.75 186.284 82.75C186.268 82.75 186.252 82.75 186.235 82.75C186.219 82.75 186.203 82.75 186.186 82.75C186.17 82.75 186.154 82.75 186.137 82.75C186.121 82.75 186.105 82.75 186.088 82.75C186.072 82.75 186.056 82.75 186.039 82.75C186.023 82.75 186.007 82.75 185.99 82.75C185.974 82.75 185.958 82.75 185.941 82.75C185.925 82.75 185.909 82.75 185.893 82.75C185.876 82.75 185.86 82.75 185.844 82.75C185.827 82.75 185.811 82.75 185.795 82.75C185.778 82.75 185.762 82.75 185.746 82.75C185.729 82.75 185.713 82.75 185.697 82.75C185.68 82.75 185.664 82.75 185.648 82.75C185.631 82.75 185.615 82.75 185.599 82.75C185.582 82.75 185.566 82.75 185.55 82.75C185.534 82.75 185.517 82.75 185.501 82.75C185.485 82.75 185.468 82.75 185.452 82.75C185.436 82.75 185.419 82.75 185.403 82.75C185.387 82.75 185.371 82.75 185.354 82.75C185.338 82.75 185.322 82.75 185.305 82.75C185.289 82.75 185.273 82.75 185.256 82.75C185.24 82.75 185.224 82.75 185.208 82.75C185.191 82.75 185.175 82.75 185.159 82.75C185.142 82.75 185.126 82.75 185.11 82.75C185.094 82.75 185.077 82.75 185.061 82.75C185.045 82.75 185.028 82.75 185.012 82.75C184.996 82.75 184.98 82.75 184.963 82.75C184.947 82.75 184.931 82.75 184.914 82.75C184.898 82.75 184.882 82.75 184.866 82.75C184.849 82.75 184.833 82.75 184.817 82.75C184.801 82.75 184.784 82.75 184.768 82.75C184.752 82.75 184.736 82.75 184.719 82.75C184.703 82.75 184.687 82.75 184.671 82.75C184.654 82.75 184.638 82.75 184.622 82.75C184.605 82.75 184.589 82.75 184.573 82.75C184.557 82.75 184.541 82.75 184.524 82.75C184.508 82.75 184.492 82.75 184.476 82.75C184.459 82.75 184.443 82.75 184.427 82.75C184.411 82.75 184.394 82.75 184.378 82.75C184.362 82.75 184.346 82.75 184.329 82.75C184.313 82.75 184.297 82.75 184.281 82.75C184.265 82.75 184.248 82.75 184.232 82.75C184.216 82.75 184.2 82.75 184.183 82.75C184.167 82.75 184.151 82.75 184.135 82.75C184.119 82.75 184.102 82.75 184.086 82.75C184.07 82.75 184.054 82.75 184.038 82.75C184.021 82.75 184.005 82.75 183.989 82.75C183.973 82.75 183.957 82.75 183.94 82.75C183.924 82.75 183.908 82.75 183.892 82.75C183.876 82.75 183.86 82.75 183.843 82.75C183.827 82.75 183.811 82.75 183.795 82.75C183.779 82.75 183.763 82.75 183.746 82.75C183.73 82.75 183.714 82.75 183.698 82.75C183.682 82.75 183.666 82.75 183.649 82.75C183.633 82.75 183.617 82.75 183.601 82.75C183.585 82.75 183.569 82.75 183.552 82.75C183.536 82.75 183.52 82.75 183.504 82.75C183.488 82.75 183.472 82.75 183.456 82.75C183.439 82.75 183.423 82.75 183.407 82.75C183.391 82.75 183.375 82.75 183.359 82.75C183.343 82.75 183.327 82.75 183.311 82.75C183.294 82.75 183.278 82.75 183.262 82.75C183.246 82.75 183.23 82.75 183.214 82.75C183.198 82.75 183.182 82.75 183.166 82.75C183.149 82.75 183.133 82.75 183.117 82.75C183.101 82.75 183.085 82.75 183.069 82.75C183.053 82.75 183.037 82.75 183.021 82.75C183.005 82.75 182.989 82.75 182.973 82.75C182.956 82.75 182.94 82.75 182.924 82.75C182.908 82.75 182.892 82.75 182.876 82.75C182.86 82.75 182.844 82.75 182.828 82.75C182.812 82.75 182.796 82.75 182.78 82.75C182.764 82.75 182.748 82.75 182.732 82.75C182.716 82.75 182.7 82.75 182.684 82.75C182.668 82.75 182.652 82.75 182.636 82.75C182.62 82.75 182.604 82.75 182.588 82.75C182.572 82.75 182.556 82.75 182.54 82.75C182.524 82.75 182.508 82.75 182.492 82.75C182.476 82.75 182.46 82.75 182.444 82.75C182.428 82.75 182.412 82.75 182.396 82.75C182.38 82.75 182.364 82.75 182.348 82.75C182.332 82.75 182.316 82.75 182.3 82.75C182.284 82.75 182.268 82.75 182.252 82.75C182.236 82.75 182.22 82.75 182.204 82.75C182.188 82.75 182.172 82.75 182.156 82.75C182.14 82.75 182.124 82.75 182.108 82.75C182.092 82.75 182.076 82.75 182.061 82.75C182.045 82.75 182.029 82.75 182.013 82.75C181.997 82.75 181.981 82.75 181.965 82.75C181.949 82.75 181.933 82.75 181.917 82.75C181.901 82.75 181.886 82.75 181.87 82.75C181.854 82.75 181.838 82.75 181.822 82.75C181.806 82.75 181.79 82.75 181.774 82.75C181.758 82.75 181.743 82.75 181.727 82.75C181.711 82.75 181.695 82.75 181.679 82.75C181.663 82.75 181.647 82.75 181.632 82.75C181.616 82.75 181.6 82.75 181.584 82.75C181.568 82.75 181.552 82.75 181.537 82.75C181.521 82.75 181.505 82.75 181.489 82.75C181.473 82.75 181.457 82.75 181.442 82.75C181.426 82.75 181.41 82.75 181.394 82.75C181.378 82.75 181.363 82.75 181.347 82.75C181.331 82.75 181.315 82.75 181.3 82.75C181.284 82.75 181.268 82.75 181.252 82.75C181.236 82.75 181.221 82.75 181.205 82.75C181.189 82.75 181.173 82.75 181.158 82.75C181.142 82.75 181.126 82.75 181.11 82.75C181.095 82.75 181.079 82.75 181.063 82.75C181.047 82.75 181.032 82.75 181.016 82.75C181 82.75 180.985 82.75 180.9
154369 82.75C180.953 82.75 180.937 82.75 180.922 82.75C180.906 82.75 180.89 82.75 180.875 82.75C180.859 82.75 180.843 82.75 180.828 82.75C180.812 82.75 180.796 82.75 180.781 82.75C180.765 82.75 180.749 82.75 180.734 82.75C180.718 82.75 180.702 82.75 180.687 82.75C180.671 82.75 180.655 82.75 180.64 82.75C180.624 82.75 180.608 82.75 180.593 82.75C180.577 82.75 180.562 82.75 180.546 82.75C180.53 82.75 180.515 82.75 180.499 82.75C180.484 82.75 180.468 82.75 180.452 82.75C180.437 82.75 180.421 82.75 180.406 82.75C180.39 82.75 180.374 82.75 180.359 82.75C180.343 82.75 180.328 82.75 180.312 82.75C180.297 82.75 180.281 82.75 180.266 82.75C180.25 82.75 180.234 82.75 180.219 82.75C180.203 82.75 180.188 82.75 180.172 82.75C180.157 82.75 180.141 82.75 180.126 82.75C180.11 82.75 180.095 82.75 180.079 82.75C180.064 82.75 180.048 82.75 180.033 82.75C180.017 82.75 180.002 82.75 179.986 82.75C179.971 82.75 179.955 82.75 179.94 82.75C179.925 82.75 179.909 82.75 179.894 82.75C179.878 82.75 179.863 82.75 179.847 82.75C179.832 82.75 179.816 82.75 179.801 82.75C179.786 82.75 179.77 82.75 179.755 82.75C179.739 82.75 179.724 82.75 179.709 82.75C179.693 82.75 179.678 82.75 179.662 82.75C179.647 82.75 179.632 82.75 179.616 82.75C179.601 82.75 179.585 82.75 179.57 82.75C179.555 82.75 179.539 82.75 179.524 82.75C179.509 82.75 179.493 82.75 179.478 82.75C179.463 82.75 179.447 82.75 179.432 82.75C179.417 82.75 179.401 82.75 179.386 82.75C179.371 82.75 179.355 82.75 179.34 82.75C179.325 82.75 179.31 82.75 179.294 82.75C179.279 82.75 179.264 82.75 179.248 82.75C179.233 82.75 179.218 82.75 179.203 82.75C179.187 82.75 179.172 82.75 179.157 82.75C179.142 82.75 179.126 82.75 179.111 82.75C179.096 82.75 179.081 82.75 179.066 82.75C179.05 82.75 179.035 82.75 179.02 82.75C179.005 82.75 178.99 82.75 178.974 82.75C178.959 82.75 178.944 82.75 178.929 82.75C178.914 82.75 178.899 82.75 178.883 82.75C178.868 82.75 178.853 82.75 178.838 82.75C178.823 82.75 178.808 82.75 178.793 82.75C178.777 82.75 178.762 82.75 178.747 82.75C178.732 82.75 178.717 82.75 178.702 82.75C178.687 82.75 178.672 82.75 178.657 82.75C178.641 82.75 178.626 82.75 178.611 82.75C178.596 82.75 178.581 82.75 178.566 82.75C178.551 82.75 178.536 82.75 178.521 82.75C178.506 82.75 178.491 82.75 178.476 82.75C178.461 82.75 178.446 82.75 178.431 82.75C178.416 82.75 178.401 82.75 178.386 82.75C178.371 82.75 178.356 82.75 178.341 82.75C178.326 82.75 178.311 82.75 178.296 82.75C178.281 82.75 178.266 82.75 178.251 82.75C178.236 82.75 178.221 82.75 178.206 82.75C178.191 82.75 178.176 82.75 178.161 82.75C178.146 82.75 178.132 82.75 178.117 82.75C178.102 82.75 178.087 82.75 178.072 82.75C178.057 82.75 178.042 82.75 178.027 82.75C178.012 82.75 177.998 82.75 177.983 82.75C177.968 82.75 177.953 82.75 177.938 82.75C177.923 82.75 177.909 82.75 177.894 82.75C177.879 82.75 177.864 82.75 177.849 82.75C177.834 82.75 177.82 82.75 177.805 82.75C177.79 82.75 177.775 82.75 177.76 82.75C177.746 82.75 177.731 82.75 177.716 82.75C177.701 82.75 177.687 82.75 177.672 82.75C177.657 82.75 177.642 82.75 177.628 82.75C177.613 82.75 177.598 82.75 177.584 82.75C177.569 82.75 177.554 82.75 177.539 82.75C177.525 82.75 177.51 82.75 177.495 82.75C177.481 82.75 177.466 82.75 177.451 82.75C177.437 82.75 177.422 82.75 177.407 82.75C177.393 82.75 177.378 82.75 177.364 82.75C177.349 82.75 177.334 82.75 177.32 82.75C177.305 82.75 177.29 82.75 177.276 82.75C177.261 82.75 177.247 82.75 177.232 82.75C177.218 82.75 177.203 82.75 177.188 82.75C177.174 82.75 177.159 82.75 177.145 82.75C177.13 82.75 177.116 82.75 177.101 82.75C177.087 82.75 177.072 82.75 177.058 82.75C177.043 82.75 177.029 82.75 177.014 82.75C177 82.75 176.985 82.75 176.971 82.75C176.956 82.75 176.942 82.75 176.927 82.75C176.913 82.75 176.898 82.75 176.884 82.75C176.87 82.75 176.855 82.75 176.841 82.75C176.826 82.75 176.812 82.75 176.798 82.75C176.783 82.75 176.769 82.75 176.754 82.75C176.74 82.75 176.726 82.75 176.711 82.75C176.697 82.75 176.683 82.75 176.668 82.75C176.654 82.75 176.64 82.75 176.625 82.75C176.611 82.75 176.597 82.75 176.582 82.75C176.568 82.75 176.554 82.75 176.539 82.75C176.525 82.75 176.511 82.75 176.497 82.75C176.482 82.75 176.468 82.75 176.454 82.75C176.44 82.75 176.425 82.75 176.411 82.75C176.397 82.75 176.383 82.75 176.368 82.75C176.354 82.75 176.34 82.75 176.326 82.75C176.312 82.75 176.297 82.75 176.283 82.75C176.269 82.75 176.255 82.75 176.241 82.75C176.227 82.75 176.212 82.75 176.198 82.75C176.184 82.75 176.17 82.75 176.156 82.75C176.142 82.75 176.128 82.75 176.114 82.75C176.1 82.75 176.085 82.75 176.071 82.75C176.057 82.75 176.043 82.75 176.029 82.75C176.015 82.75 176.001 82.75 175.987 82.75C175.973 82.75 175.959 82.75 175.945 82.75C175.931 82.75 175.917 82.75 175.903 82.75C175.889 82.75 175.875 82.75 175.861 82.75C175.847 82.75 175.833 82.75 175.819 82.75C175.805 82.75 175.791 82.75 175.777 82.75C175.763 82.75 175.749 82.75 175.735 82.75C175.722 82.75 175.708 82.75 175.694 82.75C175.68 82.75 175.666 82.75 175.652 82.75C175.638 82.75 175.624 82.75 175.61 82.75C175.597 82.75 175.583 82.75 175.569 82.75C175.555 82.75 175.541 82.75 175.527 82.75C175.514 82.75 175.5 82.75 175.486 82.75C175.472 82.75 175.458 82.75 175.445 82.75C175.431 82.75 175.417 82.75 175.403 82.75C175.39 82.75 175.376 82.75 175.362 82.75C175.348 82.75 175.335 82.75 175.321 82.75C175.307 82.75 175.294 82.75 175.28 82.75C175.266 82.75 175.253 82.75 175.239 82.75C175.225 82.75 175.212 82.75 175.198 82.75C175.184 82.75 175.171 82.75 175.157 82.75C175.143 82.75 175.13 82.75 175.116 82.75C175.103 82.75 175.089 82.75 175.075 82.75C175.062 82.75 175.048 82.75 175.035 82.75C175.021 82.75 175.008 82.75 174.994 82.75C174.981 82.75 174.967 82.75 174.954 82.75C174.94 82.75 174.926 82.75 174.913 82.75C174.9 82.75 174.886 82.75 174.873 82.75C174.859 82.75 174.846 82.75 174.832 82.75C174.819 82.75 174.805 82.75 174.792 82.75C174.778 82.75 174.765 82.75 174.752 82.75C174.738 82.75 174.725 82.75 174.711 82.75C174.698 82.75 174.685 82.75 174.671 82.75C174.658 82.75 174.645 82.75 174.631 82.75C174.618 82.75 174.605 82.75 174.591 82.75C174.578 82.75 174.565 82.75 174.551 82.75C174.538 82.75 174.525 82.75 174.512 82.75C174.498 82.75 174.485 82.75 174.472 82.75C174.459 82.75 174.445 82.75 174.432 82.75C174.419 82.75 174.406 82.75 174.392 82.75C174.379 82.75 174.3
154366 82.75 174.353 82.75C174.34 82.75 174.327 82.75 174.313 82.75C174.3 82.75 174.287 82.75 174.274 82.75C174.261 82.75 174.248 82.75 174.235 82.75C174.222 82.75 174.208 82.75 174.195 82.75C174.182 82.75 174.169 82.75 174.156 82.75C174.143 82.75 174.13 82.75 174.117 82.75C174.104 82.75 174.091 82.75 174.078 82.75C174.065 82.75 174.052 82.75 174.039 82.75C174.026 82.75 174.013 82.75 174 82.75C173.987 82.75 173.974 82.75 173.961 82.75C173.948 82.75 173.935 82.75 173.922 82.75C173.909 82.75 173.897 82.75 173.884 82.75C173.871 82.75 173.858 82.75 173.845 82.75C173.832 82.75 173.819 82.75 173.806 82.75C173.794 82.75 173.781 82.75 173.768 82.75C173.755 82.75 173.742 82.75 173.729 82.75C173.717 82.75 173.704 82.75 173.691 82.75C173.678 82.75 173.666 82.75 173.653 82.75C173.64 82.75 173.627 82.75 173.615 82.75C173.602 82.75 173.589 82.75 173.577 82.75C173.564 82.75 173.551 82.75 173.539 82.75C173.526 82.75 173.513 82.75 173.501 82.75C173.488 82.75 173.475 82.75 173.463 82.75C173.45 82.75 173.437 82.75 173.425 82.75C173.412 82.75 173.4 82.75 173.387 82.75C173.374 82.75 173.362 82.75 173.349 82.75C173.337 82.75 173.324 82.75 173.312 82.75C173.299 82.75 173.287 82.75 173.274 82.75C173.262 82.75 173.249 82.75 173.237 82.75C173.224 82.75 173.212 82.75 173.199 82.75C173.187 82.75 173.175 82.75 173.162 82.75C173.15 82.75 173.137 82.75 173.125 82.75C173.113 82.75 173.1 82.75 173.088 82.75C173.075 82.75 173.063 82.75 173.051 82.75C173.038 82.75 173.026 82.75 173.014 82.75C173.002 82.75 172.989 82.75 172.977 82.75C172.965 82.75 172.952 82.75 172.94 82.75C172.928 82.75 172.916 82.75 172.903 82.75C172.891 82.75 172.879 82.75 172.867 82.75C172.854 82.75 172.842 82.75 172.83 82.75C172.818 82.75 172.806 82.75 172.794 82.75C172.781 82.75 172.769 82.75 172.757 82.75C172.745 82.75 172.733 82.75 172.721 82.75C172.709 82.75 172.697 82.75 172.685 82.75C172.673 82.75 172.66 82.75 172.648 82.75C172.636 82.75 172.624 82.75 172.612 82.75C172.6 82.75 172.588 82.75 172.576 82.75C172.564 82.75 172.552 82.75 172.54 82.75C172.528 82.75 172.516 82.75 172.505 82.75C172.493 82.75 172.481 82.75 172.469 82.75C172.457 82.75 172.445 82.75 172.433 82.75C172.421 82.75 172.409 82.75 172.397 82.75C172.386 82.75 172.374 82.75 172.362 82.75C172.35 82.75 172.338 82.75 172.326 82.75C172.315 82.75 172.303 82.75 172.291 82.75C172.279 82.75 172.268 82.75 172.256 82.75C172.244 82.75 172.232 82.75 172.221 82.75C172.209 82.75 172.197 82.75 172.186 82.75C172.174 82.75 172.162 82.75 172.151 82.75C172.139 82.75 172.127 82.75 172.116 82.75C172.104 82.75 172.092 82.75 172.081 82.75C172.069 82.75 172.058 82.75 172.046 82.75C172.034 82.75 172.023 82.75 172.011 82.75C172 82.75 171.988 82.75 171.977 82.75C171.965 82.75 171.954 82.75 171.942 82.75C171.931 82.75 171.919 82.75 171.908 82.75C171.896 82.75 171.885 82.75 171.873 82.75C171.862 82.75 171.851 82.75 171.839 82.75C171.828 82.75 171.816 82.75 171.805 82.75C171.794 82.75 171.782 82.75 171.771 82.75C171.76 82.75 171.748 82.75 171.737 82.75C171.726 82.75 171.714 82.75 171.703 82.75C171.692 82.75 171.681 82.75 171.669 82.75C171.658 82.75 171.647 82.75 171.636 82.75C171.624 82.75 171.613 82.75 171.602 82.75C171.591 82.75 171.58 82.75 171.568 82.75C171.557 82.75 171.546 82.75 171.535 82.75C171.524 82.75 171.513 82.75 171.502 82.75C171.49 82.75 171.479 82.75 171.468 82.75C171.457 82.75 171.446 82.75 171.435 82.75C171.424 82.75 171.413 82.75 171.402 82.75C171.391 82.75 171.38 82.75 171.369 82.75C171.358 82.75 171.347 82.75 171.336 82.75C171.325 82.75 171.314 82.75 171.303 82.75C171.292 82.75 171.281 82.75 171.27 82.75C171.26 82.75 171.249 82.75 171.238 82.75C171.227 82.75 171.216 82.75 171.205 82.75C171.194 82.75 171.184 82.75 171.173 82.75C171.162 82.75 171.151 82.75 171.14 82.75C171.13 82.75 171.119 82.75 171.108 82.75C171.097 82.75 171.087 82.75 171.076 82.75C171.065 82.75 171.055 82.75 171.044 82.75C171.033 82.75 171.023 82.75 171.012 82.75C171.001 82.75 170.991 82.75 170.98 82.75C170.969 82.75 170.959 82.75 170.948 82.75C170.938 82.75 170.927 82.75 170.916 82.75C170.906 82.75 170.895 82.75 170.885 82.75C170.874 82.75 170.864 82.75 170.853 82.75C170.843 82.75 170.832 82.75 170.822 82.75C170.811 82.75 170.801 82.75 170.791 82.75C170.78 82.75 170.77 82.75 170.759 82.75C170.749 82.75 170.739 82.75 170.728 82.75C170.718 82.75 170.707 82.75 170.697 82.75C170.687 82.75 170.676 82.75 170.666 82.75C170.656 82.75 170.646 82.75 170.635 82.75C170.625 82.75 170.615 82.75 170.605 82.75C170.594 82.75 170.584 82.75 170.574 82.75C170.564 82.75 170.553 82.75 170.543 82.75C170.533 82.75 170.523 82.75 170.513 82.75C170.503 82.75 170.493 82.75 170.482 82.75C170.472 82.75 170.462 82.75 170.452 82.75C170.442 82.75 170.432 82.75 170.422 82.75C170.412 82.75 170.402 82.75 170.392 82.75C170.382 82.75 170.372 82.75 170.362 82.75C170.352 82.75 170.342 82.75 170.332 82.75C170.322 82.75 170.312 82.75 170.302 82.75C170.292 82.75 170.282 82.75 170.273 82.75C170.263 82.75 170.253 82.75 170.243 82.75C170.233 82.75 170.223 82.75 170.213 82.75C170.204 82.75 170.194 82.75 170.184 82.75C170.174 82.75 170.165 82.75 170.155 82.75C170.145 82.75 170.135 82.75 170.126 82.75C170.116 82.75 170.106 82.75 170.097 82.75C170.087 82.75 170.077 82.75 170.068 82.75C170.058 82.75 170.048 82.75 170.039 82.75C170.029 82.75 170.019 82.75 170.01 82.75C170 82.75 169.991 82.75 169.981 82.75C169.972 82.75 169.962 82.75 169.953 82.75C169.943 82.75 169.934 82.75 169.924 82.75C169.915 82.75 169.905 82.75 169.896 82.75C169.886 82.75 169.877 82.75 169.867 82.75C169.858 82.75 169.849 82.75 169.839 82.75C169.83 82.75 169.821 82.75 169.811 82.75C169.802 82.75 169.793 82.75 169.783 82.75C169.774 82.75 169.765 82.75 169.755 82.75C169.746 82.75 169.737 82.75 169.728 82.75C169.718 82.75 169.709 82.75 169.7 82.75C169.691 82.75 169.682 82.75 169.672 82.75C169.663 82.75 169.654 82.75 169.645 82.75C169.636 82.75 169.627 82.75 169.618 82.75C169.609 82.75 169.6 82.75 169.59 82.75C169.581 82.75 169.572 82.75 169.563 82.75C169.554 82.75 169.545 82.75 169.536 82.75C169.527 82.75 169.518 82.75 169.509 82.75C169.5 82.75 169.492 82.75 169.483 82.75C169.474 82.75 169.465 82.75 169.456 82.75C169.447 82.75 169.438 82.75 169.429 82.75C169.42 82.75 169.412 82.75 169.403 82.75C169.394 82.75 169.385 82.75 169.376 82.75C169.368 82.75 169.359 82.75 169.35 82.75C169.341 82.75 169.333 82.75 169.324 82.75C169.315 82.75 169.307 82.75 169.298 82.75C169.289 82.75 169.281 82.75 169.272 82.75C169.263 82.75 169.255 82.75 169.246 82.75C169.238 82.75 169.229 82.75 169.22 82.75C169.212 82.75 169.203 82.75 169.195 82.75C169.186 82.75 169.178 82.75 169.169 82.75C169.161 82.75 169.152 82.75 169.144 82.75C169.135 82.75 169.127 82.75 169.119 82.75C169.11 82.75 169.102 82.75 169.093 82.75C169.085 82.75 169.077 82.75 169.068 82.75C169.06 82.75 169.052 82.75 169.043 82.75C169.035 82.75 169.027 82.75 169.019 82.75C169.01 82.75 169.002 82.75 168.994 82.75C168.986 82.75 168.97
15437 82.75 168.969 82.75C168.961 82.75 168.953 82.75 168.945 82.75C168.937 82.75 168.928 82.75 168.92 82.75C168.912 82.75 168.904 82.75 168.896 82.75C168.888 82.75 168.88 82.75 168.872 82.75C168.864 82.75 168.856 82.75 168.848 82.75C168.84 82.75 168.832 82.75 168.824 82.75C168.816 82.75 168.808 82.75 168.8 82.75C168.792 82.75 168.784 82.75 168.776 82.75C168.768 82.75 168.761 82.75 168.753 82.75C168.745 82.75 168.737 82.75 168.729 82.75C168.721 82.75 168.714 82.75 168.706 82.75C168.698 82.75 168.69 82.75 168.683 82.75C168.675 82.75 168.667 82.75 168.659 82.75C168.652 82.75 168.644 82.75 168.636 82.75C168.629 82.75 168.621 82.75 168.613 82.75C168.606 82.75 168.598 82.75 168.591 82.75C168.583 82.75 168.575 82.75 168.568 82.75C168.56 82.75 168.553 82.75 168.545 82.75C168.538 82.75 168.53 82.75 168.523 82.75C168.515 82.75 168.508 82.75 168.501 82.75C168.493 82.75 168.486 82.75 168.478 82.75C168.471 82.75 168.464 82.75 168.456 82.75C168.449 82.75 168.442 82.75 168.434 82.75C168.427 82.75 168.42 82.75 168.412 82.75C168.405 82.75 168.398 82.75 168.391 82.75C168.383 82.75 168.376 82.75 168.369 82.75C168.362 82.75 168.355 82.75 168.347 82.75C168.34 82.75 168.333 82.75 168.326 82.75C168.319 82.75 168.312 82.75 168.305 82.75C168.298 82.75 168.291 82.75 168.284 82.75C168.277 82.75 168.27 82.75 168.263 82.75C168.256 82.75 168.249 82.75 168.242 82.75C168.235 82.75 168.228 82.75 168.221 82.75C168.214 82.75 168.207 82.75 168.2 82.75C168.193 82.75 168.186 82.75 168.18 82.75C168.173 82.75 168.166 82.75 168.159 82.75C168.152 82.75 168.146 82.75 168.139 82.75C168.132 82.75 168.125 82.75 168.119 82.75C168.112 82.75 168.105 82.75 168.099 82.75C168.092 82.75 168.085 82.75 168.079 82.75C168.072 82.75 168.065 82.75 168.059 82.75C168.052 82.75 168.046 82.75 168.039 82.75C168.033 82.75 168.026 82.75 168.019 82.75C168.013 82.75 168.006 82.75 168 82.75V81.25ZM188.342 81.25C190.447 81.25 192.186 81.7816 193.375 83.1285C194.546 84.4539 195.053 86.4243 195.053 89H193.553C193.553 86.5757 193.067 85.0461 192.251 84.1215C191.453 83.2184 190.211 82.75 188.342 82.75V81.25ZM195.053 89C195.053 89.75 195.053 95.25 195.053 100.875C195.053 106.5 195.053 112.25 195.053 113.5H193.553C193.553 112.25 193.553 106.5 193.553 100.875C193.553 95.25 193.553 89.75 193.553 89H195.053ZM195.053 113.5C195.053 115.112 195.509 116.399 196.388 117.284C197.264 118.166 198.664 118.75 200.761 118.75V120.25C198.388 120.25 196.558 119.584 195.324 118.341C194.091 117.101 193.553 115.388 193.553 113.5H195.053ZM200.761 118.75C200.772 118.75 200.783 118.75 200.794 118.75C200.805 118.75 200.816 118.75 200.827 118.75C200.838 118.75 200.85 118.75 200.861 118.75C200.872 118.75 200.883 118.75 200.895 118.75C200.906 118.75 200.917 118.75 200.929 118.75C200.94 118.75 200.952 118.75 200.964 118.75C200.975 118.75 200.987 118.75 200.999 118.75C201.01 118.75 201.022 118.75 201.034 118.75C201.046 118.75 201.058 118.75 201.07 118.75C201.081 118.75 201.093 118.75 201.106 118.75C201.118 118.75 201.13 118.75 201.142 118.75C201.154 118.75 201.166 118.75 201.179 118.75C201.191 118.75 201.203 118.75 201.216 118.75C201.228 118.75 201.241 118.75 201.253 118.75C201.266 118.75 201.278 118.75 201.291 118.75C201.304 118.75 201.316 118.75 201.329 118.75C201.342 118.75 201.355 118.75 201.368 118.75C201.38 118.75 201.393 118.75 201.406 118.75C201.419 118.75 201.432 118.75 201.446 118.75C201.459 118.75 201.472 118.75 201.485 118.75C201.498 118.75 201.512 118.75 201.525 118.75C201.538 118.75 201.552 118.75 201.565 118.75C201.579 118.75 201.592 118.75 201.606 118.75C201.619 118.75 201.633 118.75 201.647 118.75C201.66 118.75 201.674 118.75 201.688 118.75C201.702 118.75 201.715 118.75 201.729 118.75C201.743 118.75 201.757 118.75 201.771 118.75C201.785 118.75 201.799 118.75 201.813 118.75C201.828 118.75 201.842 118.75 201.856 118.75C201.87 118.75 201.884 118.75 201.899 118.75C201.913 118.75 201.928 118.75 201.942 118.75C201.956 118.75 201.971 118.75 201.986 118.75C202 118.75 202.015 118.75 202.029 118.75C202.044 118.75 202.059 118.75 202.074 118.75C202.088 118.75 202.103 118.75 202.118 118.75C202.133 118.75 202.148 118.75 202.163 118.75C202.178 118.75 202.193 118.75 202.208 118.75C202.223 118.75 202.238 118.75 202.254 118.75C202.269 118.75 202.284 118.75 202.299 118.75C202.315 118.75 202.33 118.75 202.345 118.75C202.361 118.75 202.376 118.75 202.392 118.75C202.407 118.75 202.423 118.75 202.439 118.75C202.454 118.75 202.47 118.75 202.486 118.75C202.501 118.75 202.517 118.75 202.533 118.75C202.549 118.75 202.565 118.75 202.581 118.75C202.597 118.75 202.613 118.75 202.629 118.75C202.645 118.75 202.661 118.75 202.677 118.75C202.693 118.75 202.709 118.75 202.726 118.75C202.742 118.75 202.758 118.75 202.775 118.75C202.791 118.75 202.807 118.75 202.824 118.75C202.84 118.75 202.857 118.75 202.873 118.75C202.89 118.75 202.907 118.75 202.923 118.75C202.94 118.75 202.957 118.75 202.973 118.75C202.99 118.75 203.007 118.75 203.024 118.75C203.041 118.75 203.058 118.75 203.075 118.75C203.092 118.75 203.109 118.75 203.126 118.75C203.143 118.75 203.16 118.75 203.177 118.75C203.194 118.75 203.211 118.75 203.229 118.75C203.246 118.75 203.263 118.75 203.281 118.75C203.298 118.75 203.315 118.75 203.333 118.75C203.35 118.75 203.368 118.75 203.385 118.75C203.403 118.75 203.42 118.75 203.438 118.75C203.456 118.75 203.474 118.75 203.491 118.75C203.509 118.75 203.527 118.75 203.545 118.75C203.562 118.75 203.58 118.75 203.598 118.75C203.616 118.75 203.634 118.75 203.652 118.75C203.67 118.75 203.688 118.75 203.707 118.75C203.725 118.75 203.743 118.75 203.761 118.75C203.779 118.75 203.798 118.75 203.816 118.75C203.834 118.75 203.853 118.75 203.871 118.75C203.889 118.75 203.908 118.75 203.926 118.75C203.945 118.75 203.963 118.75 203.982 118.75C204.001 118.75 204.019 118.75 204.038 118.75C204.057 118.75 204.075 118.75 204.094 118.75C204.113 118.75 204.132 118.75 204.151 118.75C204.17 118.75 204.188 118.75 204.207 118.75C204.226 118.75 204.245 118.75 204.264 118.75C204.284 118.75 204.303 118.75 204.322 118.75C204.341 118.75 204.36 118.75 204.379 118.75C204.399 118.75 204.418 118.75 204.437 118.75C204.457 118.75 204.476 118.75 204.495 118.75C204.515 118.75 204.534 118.75 204.554 118.75C204.573
1543118.75 204.593 118.75 204.612 118.75C204.632 118.75 204.652 118.75 204.671 118.75C204.691 118.75 204.711 118.75 204.73 118.75C204.75 118.75 204.77 118.75 204.79 118.75C204.81 118.75 204.83 118.75 204.85 118.75C204.87 118.75 204.89 118.75 204.91 118.75C204.93 118.75 204.95 118.75 204.97 118.75C204.99 118.75 205.01 118.75 205.03 118.75C205.05 118.75 205.071 118.75 205.091 118.75C205.111 118.75 205.132 118.75 205.152 118.75C205.172 118.75 205.193 118.75 205.213 118.75C205.234 118.75 205.254 118.75 205.275 118.75C205.295 118.75 205.316 118.75 205.336 118.75C205.357 118.75 205.378 118.75 205.398 118.75C205.419 118.75 205.44 118.75 205.461 118.75C205.481 118.75 205.502 118.75 205.523 118.75C205.544 118.75 205.565 118.75 205.586 118.75C205.607 118.75 205.628 118.75 205.649 118.75C205.67 118.75 205.691 118.75 205.712 118.75C205.733 118.75 205.754 118.75 205.776 118.75C205.797 118.75 205.818 118.75 205.839 118.75C205.861 118.75 205.882 118.75 205.903 118.75C205.925 118.75 205.946 118.75 205.967 118.75C205.989 118.75 206.01 118.75 206.032 118.75C206.053 118.75 206.075 118.75 206.097 118.75C206.118 118.75 206.14 118.75 206.161 118.75C206.183 118.75 206.205 118.75 206.227 118.75C206.248 118.75 206.27 118.75 206.292 118.75C206.314 118.75 206.336 118.75 206.357 118.75C206.379 118.75 206.401 118.75 206.423 118.75C206.445 118.75 206.467 118.75 206.489 118.75C206.511 118.75 206.534 118.75 206.556 118.75C206.578 118.75 206.6 118.75 206.622 118.75C206.644 118.75 206.667 118.75 206.689 118.75C206.711 118.75 206.733 118.75 206.756 118.75C206.778 118.75 206.801 118.75 206.823 118.75C206.845 118.75 206.868 118.75 206.89 118.75C206.913 118.75 206.935 118.75 206.958 118.75C206.981 118.75 207.003 118.75 207.026 118.75C207.049 118.75 207.071 118.75 207.094 118.75C207.117 118.75 207.139 118.75 207.162 118.75C207.185 118.75 207.208 118.75 207.231 118.75C207.254 118.75 207.276 118.75 207.299 118.75C207.322 118.75 207.345 118.75 207.368 118.75C207.391 118.75 207.414 118.75 207.437 118.75C207.46 118.75 207.484 118.75 207.507 118.75C207.53 118.75 207.553 118.75 207.576 118.75C207.599 118.75 207.623 118.75 207.646 118.75C207.669 118.75 207.693 118.75 207.716 118.75C207.739 118.75 207.763 118.75 207.786 118.75C207.81 118.75 207.833 118.75 207.857 118.75C207.88 118.75 207.904 118.75 207.927 118.75C207.951 118.75 207.974 118.75 207.998 118.75C208.021 118.75 208.045 118.75 208.069 118.75C208.093 118.75 208.116 118.75 208.14 118.75C208.164 118.75 208.188 118.75 208.211 118.75C208.235 118.75 208.259 118.75 208.283 118.75C208.307 118.75 208.331 118.75 208.355 118.75C208.379 118.75 208.403 118.75 208.427 118.75C208.451 118.75 208.475 118.75 208.499 118.75C208.523 118.75 208.547 118.75 208.571 118.75C208.595 118.75 208.62 118.75 208.644 118.75C208.668 118.75 208.692 118.75 208.716 118.75C208.741 118.75 208.765 118.75 208.789 118.75C208.814 118.75 208.838 118.75 208.862 118.75C208.887 118.75 208.911 118.75 208.936 118.75C208.96 118.75 208.985 118.75 209.009 118.75C209.034 118.75 209.058 118.75 209.083 118.75C209.107 118.75 209.132 118.75 209.157 118.75C209.181 118.75 209.206 118.75 209.231 118.75C209.255 118.75 209.28 118.75 209.305 118.75C209.33 118.75 209.354 118.75 209.379 118.75C209.404 118.75 209.429 118.75 209.454 118.75C209.479 118.75 209.504 118.75 209.529 118.75C209.554 118.75 209.578 118.75 209.603 118.75C209.628 118.75 209.653 118.75 209.679 118.75C209.704 118.75 209.729 118.75 209.754 118.75C209.779 118.75 209.804 118.75 209.829 118.75C209.854 118.75 209.88 118.75 209.905 118.75C209.93 118.75 209.955 118.75 209.981 118.75C210.006 118.75 210.031 118.75 210.056 118.75C210.082 118.75 210.107 118.75 210.133 118.75C210.158 118.75 210.183 118.75 210.209 118.75C210.234 118.75 210.26 118.75 210.285 118.75C210.311 118.75 210.336 118.75 210.362 118.75C210.387 118.75 210.413 118.75 210.439 118.75C210.464 118.75 210.49 118.75 210.515 118.75C210.541 118.75 210.567 118.75 210.593 118.75C210.618 118.75 210.644 118.75 210.67 118.75C210.696 118.75 210.721 118.75 210.747 118.75C210.773 118.75 210.799 118.75 210.825 118.75C210.851 118.75 210.876 118.75 210.902 118.75C210.928 118.75 210.954 118.75 210.98 118.75C211.006 118.75 211.032 118.75 211.058 118.75C211.084 118.75 211.11 118.75 211.136 118.75C211.162 118.75 211.189 118.75 211.215 118.75C211.241 118.75 211.267 118.75 211.293 118.75C211.319 118.75 211.345 118.75 211.372 118.75C211.398 118.75 211.424 118.75 211.45 118.75C211.477 118.75 211.503 118.75 211.529 118.75C211.556 118.75 211.582 118.75 211.608 118.75C211.635 118.75 211.661 118.75 211.687 118.75C211.714 118.75 211.74 118.75 211.767 118.75C211.793 118.75 211.82
1543118.75 211.846 118.75C211.873 118.75 211.899 118.75 211.926 118.75C211.952 118.75 211.979 118.75 212.005 118.75C212.032 118.75 212.059 118.75 212.085 118.75C212.112 118.75 212.139 118.75 212.165 118.75C212.192 118.75 212.219 118.75 212.245 118.75C212.272 118.75 212.299 118.75 212.326 118.75C212.352 118.75 212.379 118.75 212.406 118.75C212.433 118.75 212.46 118.75 212.487 118.75C212.513 118.75 212.54 118.75 212.567 118.75C212.594 118.75 212.621 118.75 212.648 118.75C212.675 118.75 212.702 118.75 212.729 118.75C212.756 118.75 212.783 118.75 212.81 118.75C212.837 118.75 212.864 118.75 212.891 118.75C212.918 118.75 212.945 118.75 212.972 118.75C212.999 118.75 213.026 118.75 213.054 118.75C213.081 118.75 213.108 118.75 213.135 118.75C213.162 118.75 213.189 118.75 213.217 118.75C213.244 118.75 213.271 118.75 213.298 118.75C213.326 118.75 213.353 118.75 213.38 118.75C213.408 118.75 213.435 118.75 213.462 118.75C213.49 118.75 213.517 118.75 213.544 118.75C213.572 118.75 213.599 118.75 213.626 118.75C213.654 118.75 213.681 118.75 213.709 118.75C213.736 118.75 213.764 118.75 213.791 118.75C213.819 118.75 213.846 118.75 213.874 118.75C213.901 118.75 213.929 118.75 213.956 118.75C213.984 118.75 214.011 118.75 214.039 118.75C214.067 118.75 214.094 118.75 214.122 118.75C214.15 118.75 214.177 118.75 214.205 118.75C214.232 118.75 214.26 118.75 214.288 118.75C214.316 118.75 214.343 118.75 214.371 118.75C214.399 118.75 214.426 118.75 214.454 118.75C214.482 118.75 214.51 118.75 214.538 118.75C214.565 118.75 214.593 118.75 214.621 118.75C214.649 118.75 214.677 118.75 214.705 118.75C214.732 118.75 214.76 118.75 214.788 118.75C214.816 118.75 214.844 118.75 214.872 118.75C214.9 118.75 214.928 118.75 214.956 118.75C214.984 118.75 215.012 118.75 215.04 118.75C215.068 118.75 215.096 118.75 215.124 118.75C215.152 118.75 215.18 118.75 215.208 118.75C215.236 118.75 215.264 118.75 215.292 118.75C215.32 118.75 215.348 118.75 215.376 118.75C215.404 118.75 215.432 118.75 215.46 118.75C215.489 118.75 215.517 118.75 215.545 118.75C215.573 118.75 215.601 118.75 215.629 118.75C215.658 118.75 215.686 118.75 215.714 118.75C215.742 118.75 215.77 118.75 215.799 118.75C215.827 118.75 215.855 118.75 215.883 118.75C215.912 118.75 215.94 118.75 215.968 118.75C215.997 118.75 216.025 118.75 216.053 118.75C216.081 118.75 216.11 118.75 216.138 118.75C216.166 118.75 216.195 118.75 216.223 118.75C216.252 118.75 216.28 118.75 216.308 118.75C216.337 118.75 216.365 118.75 216.394 118.75C216.422 118.75 216.45 118.75 216.479 118.75C216.507 118.75 216.536 118.75 216.564 118.75C216.593 118.75 216.621 118.75 216.65 118.75C216.678 118.75 216.707 118.75 216.735 118.75C216.764 118.75 216.792 118.75 216.821 118.75C216.849 118.75 216.878 118.75 216.906 118.75C216.935 118.75 216.963 118.75 216.992 118.75C217.02 118.75 217.049 118.75 217.078 118.75C217.106 118.75 217.135 118.75 217.163 118.75C217.192 118.75 217.221 118.75 217.249 118.75C217.278 118.75 217.306 118.75 217.335 118.75C217.364 118.75 217.392 118.75 217.421 118.75C217.45 118.75 217.478 118.75 217.507 118.75C217.536 118.75 217.564 118.75 217.593 118.75C217.622 118.75 217.651 118.75 217.679 118.75C217.708 118.75 217.737 118.75 217.765 118.75C217.794 118.75 217.823 118.75 217.852 118.75C217.88 118.75 217.909 118.75 217.938 118.75C217.967 118.75 217.995 118.75 218.024 118.75C218.053 118.75 218.082 118.75 218.111 118.75C218.139 118.75 218.168 118.75 218.197 118.75C218.226 118.75 218.255 118.75 218.284 118.75C218.312 118.75 218.341 118.75 218.37 118.75C218.399 118.75 218.428 118.75 218.457 118.75C218.485 118.75 218.514 118.75 218.543 118.75C218.572 118.75 218.601 118.75 218.63 118.75C218.659 118.75 218.688 118.75 218.716 118.75C218.745 118.75 218.774 118.75 218.803 118.75C218.832 118.75 218.861 118.75 218.89 118.75C218.919 118.75 218.948 118.75 218.977 118.75C219.006 118.75 219.035 118.75 219.063 118.75C219.092 118.75 219.121 118.75 219.15 118.75C219.179 118.75 219.208 118.75 219.237 118.75C219.266 118.75 219.295 118.75 219.324 118.75C219.353 118.75 219.382 118.75 219.411 118.75C219.44 118.75 219.469 118.75 219.498 118.75C219.527 118.75 219.556 118.75 219.585 118.75C219.614 118.75 219.643 118.75 219.672 118.75C219.701 118.75 219.73 118.75 219.759 118.75C219.788 118.75 219.817 118.75 219.846 118.75C219.875 118.75 219.904 118.75 219.933 118.75C219.962 118.75 219.991 118.75 220.02 118.75C220.049 118.75 220.078 118.75 220.107 118.75C220.136 118.75 220.165 118.75 220.194 118.75C220.224 118.75 220.253 118.75 220.282 118.75C220.311 118.75 220.34 118.75 220.369 118.75C220.398 118.75 220.427 118.75 220.456 118.75C220.485 118.75 220.514 118.75 220.543 118.75C220.572 118.75 220.601 118.75 220.63 118.75C220.659 118.75 220.688 118.75 220.718 118.75C220.747 118.75 220.776 118.75 220.805 118.75C220.834 118.75 220.863 118.75 220.892 118.75C220.921 118.75 220.95 118.75 220.979 118.75C221.008 118.75 221.037 118.75 221.066 118.75C221.096 118.75 221.125 118.75 221.154 118.75C221.183 118.75 221.212 118.75 221.241 118.75C221.27 118.75 221.299 118.75 221.328 118.75C221.357 118.75 221.386 118.75 221.415 118.75C221.445 118.75 221.474 118.75 221.503 118.75C221.532 118.75 221.561 118.75 221.59 118.75C221.619 118.75 221.648 118.75 221.677 118.75C221.706 118.75 221.735 118.75 221.764 118.75C221.794
1543118.75 221.823 118.75 221.852 118.75C221.881 118.75 221.91 118.75 221.939 118.75C221.968 118.75 221.997 118.75 222.026 118.75C222.055 118.75 222.084 118.75 222.113 118.75C222.142 118.75 222.171 118.75 222.201 118.75C222.23 118.75 222.259 118.75 222.288 118.75C222.317 118.75 222.346 118.75 222.375 118.75C222.404 118.75 222.433 118.75 222.462 118.75C222.491 118.75 222.52 118.75 222.549 118.75C222.578 118.75 222.607 118.75 222.636 118.75C222.665 118.75 222.694 118.75 222.723 118.75C222.752 118.75 222.781 118.75 222.81 118.75C222.839 118.75 222.869 118.75 222.898 118.75C222.927 118.75 222.956 118.75 222.985 118.75C223.014 118.75 223.043 118.75 223.072 118.75C223.101 118.75 223.13 118.75 223.159 118.75C223.188 118.75 223.217 118.75 223.246 118.75C223.275 118.75 223.304 118.75 223.333 118.75C223.361 118.75 223.39 118.75 223.419 118.75C223.448 118.75 223.477 118.75 223.506 118.75C223.535 118.75 223.564 118.75 223.593 118.75C223.622 118.75 223.651 118.75 223.68 118.75C223.709 118.75 223.738 118.75 223.767 118.75C223.796 118.75 223.825 118.75 223.854 118.75C223.882 118.75 223.911 118.75 223.94 118.75C223.969 118.75 223.998 118.75 224.027 118.75C224.056 118.75 224.085 118.75 224.114 118.75C224.142 118.75 224.171 118.75 224.2 118.75C224.229 118.75 224.258 118.75 224.287 118.75C224.316 118.75 224.344 118.75 224.373 118.75C224.402 118.75 224.431 118.75 224.46 118.75C224.489 118.75 224.517 118.75 224.546 118.75C224.575 118.75 224.604 118.75 224.633 118.75C224.661 118.75 224.69 118.75 224.719 118.75C224.748 118.75 224.777 118.75 224.805 118.75C224.834 118.75 224.863 118.75 224.892 118.75C224.92 118.75 224.949 118.75 224.978 118.75C225.006 118.75 225.035 118.75 225.064 118.75C225.093 118.75 225.121 118.75 225.15 118.75C225.179 118.75 225.207 118.75 225.236 118.75C225.265 118.75 225.293 118.75 225.322 118.75C225.351 118.75 225.379 118.75 225.408 118.75C225.437 118.75 225.465 118.75 225.494 118.75C225.522 118.75 225.551 118.75 225.58 118.75C225.608 118.75 225.637 118.75 225.665 118.75C225.694 118.75 225.723 118.75 225.751 118.75C225.78 118.75 225.808 118.75 225.837 118.75C225.865 118.75 225.894 118.75 225.922 118.75C225.951 118.75 225.979 118.75 226.008 118.75C226.036 118.75 226.065 118.75 226.093 118.75C226.122 118.75 226.15 118.75 226.179 118.75C226.207 118.75 226.236 118.75 226.264 118.75C226.292 118.75 226.321 118.75 226.349 118.75C226.378 118.75 226.406 118.75 226.434 118.75C226.463 118.75 226.491 118.75 226.519 118.75C226.548 118.75 226.576 118.75 226.604 118.75C226.633 118.75 226.661 118.75 226.689 118.75C226.718 118.75 226.746 118.75 226.774 118.75C226.803 118.75 226.831 118.75 226.859 118.75C226.887 118.75 226.916 118.75 226.944 118.75C226.972 118.75 227 118.75 227.028 118.75C227.057 118.75 227.085 118.75 227.113 118.75C227.141 118.75 227.169 118.75 227.197 118.75C227.226 118.75 227.254 118.75 227.282 118.75C227.31 118.75 227.338 118.75 227.366 118.75C227.394 118.75 227.422 118.75 227.45 118.75C227.478 118.75 227.506 118.75 227.534 118.75C227.563 118.75 227.591 118.75 227.619 118.75C227.647 118.75 227.675 118.75 227.702 118.75C227.73 118.75 227.758 118.75 227.786 118.75C227.814 118.75 227.842 118.75 227.87 118.75C227.898 118.75 227.926 118.75 227.954 118.75C227.982 118.75 228.01 118.75 228.037 118.75C228.065 118.75 228.093 118.75 228.121 118.75C228.149 118.75 228.176 118.75 228.204 118.75C228.232 118.75 228.26 118.75 228.288 118.75C228.315 118.75 228.343 118.75 228.371 118.75C228.398 118.75 228.426 118.75 228.454 118.75C228.482 118.75 228.509 118.75 228.537 118.75C228.564 118.75 228.592 118.75 228.62 118.75C228.647 118.75 228.675 118.75 228.702 118.75C228.73 118.75 228.758 118.75 228.785 118.75C228.813 118.75 228.84 118.75 228.868 118.75C228.895 118.75 228.923 118.75 228.95 118.75C228.978 118.75 229.005 118.75 229.033 118.75C229.06 118.75 229.087 118.75 229.115 118.75C229.142 118.75 229.17 118.75 229.197 118.75C229.224 118.75 229.252 118.75 229.279 118.75C229.306 118.75 229.334 118.75 229.361 118.75C229.388 118.75 229.415 118.75 229.443 118.75C229.47 118.75 229.497 118.75 229.524 118.75C229.552 118.75 229.579 118.75 229.606 118.75C229.633 118.75 229.66 118.75 229.687 118.75C229.714 118.75 229.742 118.75 229.769 118.75C229.796 118.75 229.823 118.75 229.85 118.75C229.877 118.75 229.904 118.75 229.931 118.75C229.958 118.75 229.985 118.75 230.012 118.75C230.039 118.75 230.066 118.75 230.093 118.75C230.12 118.75 230.147 118.75 230.173 118.75C230.2 118.75 230.227 118.75 230.254 118.75C230.281 118.75 230.308 118.75 230.334 118.75C230.361 118.75 230.388 118.75 230.415 118.75C230.442 118.75 230.468 118.75 230.495 118.75C230.522 118.75 230.548 118.75 230.575 118.75C230.602 118.75 230.628 118.75 230.655 118.75C230.682 118.75 230.708 118.75 230.735 118.75C230.761 118.75 230.788 118.75 230.814 118.75C230.841 118.75 230.867 118.75 230.894 118.75C230.92 118.75 230.947 118.75 230.973 118.75C231 118.75 231.026 118.75 231.052 118.75C231.079 118.75 231.105 118.75 231.132 118.75C231.158 118.75 231.184 118.75 231.211 118.75C231.237 118.75 231.263 118.75 231.289 118.75C231.316 118.75 231.342 118.75 231.368 118.75C231.394 118.75 231.42 118.75 231.446 118.75C231.473 118.75 231.499 118.75 231.525 118.75C231.551 118.75 231.577 118.75 231.603 118.75C231.629 118.75 231.655 118.75 231.681 118.75C231.707 118.75 231.733 118.75 231.759 118.75C231.785 118.75 231.811 118.75 231.837 118.75C231.863 118.75 231.889 118.75 231.914 118.75C231.94 118.75 231.966 118.75 231.992 118.75C232.018 118.75 232.043 118.75 232.069 118.75C232.095 118.75 232.121 118.75 232.146 118.75C232.172 118.75 232.198 118.75 232.223 118.75C232.249 118.75 232.275 118.75 232.3 118.75C232.326 118.75 232.351 118.75 232.377 118.75C232.402 118.75 232.428 118.75 232.453 118.75C232.479 118.75 232.504 118.75 232.53 118.75C232.555 118.75 232.58 118.75 232.606 118.75C232.631 118.75 232.657 118.75 232.682 118.75C232.707 118.75 232.732 118.75 232.758 118.75C232.783 118.75 232.808 118.75 232.833 118.75C232.859 118.75 232.884 118.75 232.909 118.75C232.934 118.75 232.959 118.75 232.984 118.75C233.009 118.75 233.034 118.75 233.059 118.75C233.084 118.75 233.109 118.75 233.134 118.75C233.159 118.75 233.184 118.75 233.209 118.75C233.234 118.75 233.259 118.75 233.284 118.75C233.309 118.75 233.334 118.75 233.358 118.75C233.383 118.75 233.408 118.75 233.433 118.75C233.457 118.75 233.482 118.75 233.507 118.75C233.531 118.75 233.556 118.75 233.581 118.75C233.605 118.75 233.63 118.75 233.654 118.75C233.679 118.75 233.704 118.75 233.728 118.75C233.752 118.75 233.777 118.75 233.801 118.75C233.826 118.75 233.85 118.75 233.875 118.75C233.899 118.75 233.923 118.75 233.948 118.75C233.972 118.75 233.996 118.75 234.02 118.75C234.045 118.75 234.069 118.75 234.093 118.75C234.117 118.75 234.141 118.75 234.165 118.75C234.19 118.75 234.214 118.75 234.238 118.75C234.262 118.75 234.286 118.75 234.31 118.75C234.334 118.75 234.358 118.75 234.382 118.75C234.406 118.75 234.429 118.75 234.453 118.75C234.477 118.75 234.501 118.75 234.525 118.75C234.549 118.75 234.572 118.75 234.596 118.75C234.62 118.75 234.644 118.75 234.667 118.75C234.691 118.75 234.714 118.75 234.738 118.75C234.762 118.75 234.785 118.75 234.809 118.75C234.832 118.75 234.856 118.75 234.879 118.75C234.903 118.75 234.926 118.75 234.949 118.75C234.973 118.75 234.996 118.75 235.02 118.75C235.043 118.75 235.066 118.75 235.089 118.75C235.113 118.75 235.136 118.75 235.159 118.75C235.182 118.75 235.205 118.75 235.229 118.75C235.252 118.75 235.275 118.75 235.298 118.75C235.321 118.75 235.344 118.75 235.367 118.75C235.39 118.75 235.413 118.75 235.436 118.75C235.458 118.75 235.481 118.75 235.504 118.75C235.527 118.75 235.55 118.75 235.573 118.75C235.595 118.75 235.618 118.75 235.641 118.75C235.663 118.75 235.686 118.75 235.709 118.75C235.731 118.75 235.754 118.75 235.776 118.75C235.799 118.75 235.821 118.75 235.844 118.75C235.866 118.75 235.889 118.75 235.911 118.75C235.934 118.75 235.956 118.75 235.978 118.75C236.001 118.75 236.023 118.75 236.045 118.75C236.067 118.75 236.09 118.75 236.112 118.75C236.134 118.75 236.156 118.75 236.178 118.75C236.2 118.75 236.222 118.75 236.244 118.75C236.266 118.75 236.288 118.75 236.31 118.75C236.332 118.75 236.354 118.75 236.376 118.75C236.398 118.75 236.42 118.75 236.441 118.75C236.463 118.75 236.485 118.75 236.507 118.75C236.528 118.75 236.55 118.75 236.572 118.75C236.593 118.75 236.615 118.75 236.637 118.75C236.658 118.75 236.68 118.75 236.701 118.75C236.723 118.75 236.744 118.75 236.765 118.75C236.787 118.75 236.808 118.75 236.829 118.75C236.851 118.75 236.872 118.75 236.893 118.75C236.915 118.75 236.936 118.75 236.957 118.75C236.978 118.75 236.999 118.75 237.02 118.75C237.041 118.75 237.062 118.75 237.083 118.75C237.104 118.75 237.125 118.75 237.146 118.75C237.167 118.75 237.188 118.75 237.209 118.75C237.23 118.75 237.25 118.75 237.271 118.75C237.292 118.75 237.313 118.75 237.333 118.75C237.354 118.75 237.375 118.75 237.395 118.75C237.416 118.75 237.436 118.75 237.457 118.75C237.477 118.75 237.498 118.75 237.518 118.75C237.539 118.75 237.559 118.75 237.579 118.75C237.6 118.75 237.62 118.75 237.64 118.75C237.66 118.75 237.681 118.75 237.701 118.75C237.721 118.75 237.741 118.75 237.761 118.75C237.781 118.75 237.801 118.75 237.821 118.75C237.841 118.75 237.861 118.75 237.881 118.75C237.901 118.75 237.921 118.75 237.941 118.75C237.96 118.75 237.98 118.75 238 118.75V120.25C237.98 120.25 237.96 120.25 237.941 120.25C237.921 120.25 237.901 120.25 237.881 120.25C237.861 120.25 237.841 120.25 237.821 120.25C237.801 120.25 237.781 120.25 237.761 120.25C237.741 120.25 237.721 120.25 237.701 120.25C237.681 120.25 237.66 120.25 237.64 120.25C237.62 120.25 237.6 120.25 237.579 120.25C237.559 120.25 237.539 120.25 237.518 120.25C237.498 120.25 237.477 120.25 237.457 120.25C237.436 120.25 237.416 120.25 237.395 120.25C237.375 120.25 237.354 120.25 237.333 120.25C237.313 12
15430.25 237.292 120.25 237.271 120.25C237.25 120.25 237.23 120.25 237.209 120.25C237.188 120.25 237.167 120.25 237.146 120.25C237.125 120.25 237.104 120.25 237.083 120.25C237.062 120.25 237.041 120.25 237.02 120.25C236.999 120.25 236.978 120.25 236.957 120.25C236.936 120.25 236.915 120.25 236.893 120.25C236.872 120.25 236.851 120.25 236.829 120.25C236.808 120.25 236.787 120.25 236.765 120.25C236.744 120.25 236.723 120.25 236.701 120.25C236.68 120.25 236.658 120.25 236.637 120.25C236.615 120.25 236.593 120.25 236.572 120.25C236.55 120.25 236.528 120.25 236.507 120.25C236.485 120.25 236.463 120.25 236.441 120.25C236.42 120.25 236.398 120.25 236.376 120.25C236.354 120.25 236.332 120.25 236.31 120.25C236.288 120.25 236.266 120.25 236.244 120.25C236.222 120.25 236.2 120.25 236.178 120.25C236.156 120.25 236.134 120.25 236.112 120.25C236.09 120.25 236.067 120.25 236.045 120.25C236.023 120.25 236.001 120.25 235.978 120.25C235.956 120.25 235.934 120.25 235.911 120.25C235.889 120.25 235.866 120.25 235.844 120.25C235.821 120.25 235.799 120.25 235.776 120.25C235.754 120.25 235.731 120.25 235.709 120.25C235.686 120.25 235.663 120.25 235.641 120.25C235.618 120.25 235.595 120.25 235.573 120.25C235.55 120.25 235.527 120.25 235.504 120.25C235.481 120.25 235.458 120.25 235.436 120.25C235.413 120.25 235.39 120.25 235.367 120.25C235.344 120.25 235.321 120.25 235.298 120.25C235.275 120.25 235.252 120.25 235.229 120.25C235.205 120.25 235.182 120.25 235.159 120.25C235.136 120.25 235.113 120.25 235.089 120.25C235.066 120.25 235.043 120.25 235.02 120.25C234.996 120.25 234.973 120.25 234.949 120.25C234.926 120.25 234.903 120.25 234.879 120.25C234.856 120.25 234.832 120.25 234.809 120.25C234.785 120.25 234.762 120.25 234.738 120.25C234.714 120.25 234.691 120.25 234.667 120.25C234.644 120.25 234.62 120.25 234.596 120.25C234.572 120.25 234.549 120.25 234.525 120.25C234.501 120.25 234.477 120.25 234.453 120.25C234.429 120.25 234.406 120.25 234.382 120.25C234.358 120.25 234.334 120.25 234.31 120.25C234.286 120.25 234.262 120.25 234.238 120.25C234.214 120.25 234.19 120.25 234.165 120.25C234.141 120.25 234.117 120.25 234.093 120.25C234.069 120.25 234.045 120.25 234.02 120.25C233.996 120.25 233.972 120.25 233.948 120.25C233.923 120.25 233.899 120.25 233.875 120.25C233.85 120.25 233.826 120.25 233.801 120.25C233.777 120.25 233.752 120.25 233.728 120.25C233.704 120.25 233.679 120.25 233.654 120.25C233.63 120.25 233.605 120.25 233.581 120.25C233.556 120.25 233.531 120.25 233.507 120.25C233.482 120.25 233.457 120.25 233.433 120.25C233.408 120.25 233.383 120.25 233.358 120.25C233.334 120.25 233.309 120.25 233.284 120.25C233.259 120.25 233.234 120.25 233.209 120.25C233.184 120.25 233.159 120.25 233.134 120.25C233.109 120.25 233.084 120.25 233.059 120.25C233.034 120.25 233.009 120.25 232.984 120.25C232.959 120.25 232.934 120.25 232.909 120.25C232.884 120.25 232.859 120.25 232.833 120.25C232.808 120.25 232.783 120.25 232.758 120.25C232.732 120.25 232.707 120.25 232.682 120.25C232.657 120.25 232.631 120.25 232.606 120.25C232.58 120.25 232.555 120.25 232.53 120.25C232.504 120.25 232.479 120.25 232.453 120.25C232.428 120.25 232.402 120.25 232.377 120.25C232.351 120.25 232.326 120.25 232.3 120.25C232.275 120.25 232.249 120.25 232.223 120.25C232.198 120.25 232.172 120.25 232.146 120.25C232.121 120.25 232.095 120.25 232.069 120.25C232.043 120.25 232.018 120.25 231.992 120.25C231.966 120.25 231.94 120.25 231.914 120.25C231.889 120.25 231.863 120.25 231.837 120.25C231.811 120.25 231.785 120.25 231.759 120.25C231.733 120.25 231.707 120.25 231.681 120.25C231.655 120.25 231.629 120.25 231.603 120.25C231.577 120.25 231.551 120.25 231.525 120.25C231.499 120.25 231.473 120.25 231.446 120.25C231.42 120.25 231.394 120.25 231.368 120.25C231.342 120.25 231.316 120.25 231.289 120.25C231.263 120.25 231.237 120.25 231.211 120.25C231.184 120.25 231.158 120.25 231.132 120.25C231.105 120.25 231.079 120.25 231.052 120.25C231.026 120.25 231 120.25 230.973 120.25C230.947 120.25 230.92 120.25 230.894 120.25C230.867 120.25 230.841 120.25 230.814 120.25C230.788 120.25 230.761 120.25 230.735 120.25C230.708 120.25 230.682 120.25 230.655 120.25C230.628 120.25 230.602 120.25 230.575 120.25C230.548 120.25 230.522 120.25 230.495 120.25C230.468 120.25 230.442 120.25 230.415 120.25C230.388 120.25 230.361 120.25 230.334 120.25C230.308 120.25 230.281 120.25 230.254 120.25C230.227 120.25 230.2 120.25 230.173 120.25C230.147 120.25 230.12 120.25 230.093 120.25C230.066 120.25 230.039 120.25 230.012 120.25C229.985 120.25 229.958 120.25 229.931 120.25C229.904 120.25 229.877 120.25 229.85 120.25C229.823 120.25 229.796 120.25 229.769 120.25C229.742 120.25 229.714 120.25 229.687 120.25C229.66 120.25 229.633 120.25 229.606 120.25C229.579 120.25 229.552 120.25 229.524 120.25C229.497 120.25 229.47 120.25 229.443 120.25C229.415 120.25 229.388 120.25 229.361 120.25C229.334 120.25 229.306 120.25 229.279 120.25C229.252 120.25 229.224 120.25 229.197 120.25C229.17 120.25 229.142 120.25 229.115 120.25C229.087 120.25 229.06 120.25 229.033 120.25C229.005 120.25 228.978 120.25 228.95 120.25C228.923 120.25 228.895 120.25 228.868 120.25C228.84 120.25 228.813 120.25 228.785 120.25C228.758 120.25 228.73 120.25 228.702 120.25C228.675 120.25 228.647 120.25 228.62 120.25C228.592 120.25 228.564 120.25 228.537 120.25C228.509 120.25 228.482 120.25 228.454 120.25C228.426 120.25 228.398 120.25 228.371 120.25C228.343 120.25 228.315 120.25 228.288 120.25C228.26 120.25 228.232 120.25 228.204 120.25C228.176 120.25 228.149 120.25 228.121 120.25C228.093 120.25 228.065 120.25 228.037 120.25C228.01 120.25 227.982 12
15430.25 227.954 120.25C227.926 120.25 227.898 120.25 227.87 120.25C227.842 120.25 227.814 120.25 227.786 120.25C227.758 120.25 227.73 120.25 227.702 120.25C227.675 120.25 227.647 120.25 227.619 120.25C227.591 120.25 227.563 120.25 227.534 120.25C227.506 120.25 227.478 120.25 227.45 120.25C227.422 120.25 227.394 120.25 227.366 120.25C227.338 120.25 227.31 120.25 227.282 120.25C227.254 120.25 227.226 120.25 227.197 120.25C227.169 120.25 227.141 120.25 227.113 120.25C227.085 120.25 227.057 120.25 227.028 120.25C227 120.25 226.972 120.25 226.944 120.25C226.916 120.25 226.887 120.25 226.859 120.25C226.831 120.25 226.803 120.25 226.774 120.25C226.746 120.25 226.718 120.25 226.689 120.25C226.661 120.25 226.633 120.25 226.604 120.25C226.576 120.25 226.548 120.25 226.519 120.25C226.491 120.25 226.463 120.25 226.434 120.25C226.406 120.25 226.378 120.25 226.349 120.25C226.321 120.25 226.292 120.25 226.264 120.25C226.236 120.25 226.207 120.25 226.179 120.25C226.15 120.25 226.122 120.25 226.093 120.25C226.065 120.25 226.036 120.25 226.008 120.25C225.979 120.25 225.951 120.25 225.922 120.25C225.894 120.25 225.865 120.25 225.837 120.25C225.808 120.25 225.78 120.25 225.751 120.25C225.723 120.25 225.694 120.25 225.665 120.25C225.637 120.25 225.608 120.25 225.58 120.25C225.551 120.25 225.522 120.25 225.494 120.25C225.465 120.25 225.437 120.25 225.408 120.25C225.379 120.25 225.351 120.25 225.322 120.25C225.293 120.25 225.265 120.25 225.236 120.25C225.207 120.25 225.179 120.25 225.15 120.25C225.121 120.25 225.093 120.25 225.064 120.25C225.035 120.25 225.006 120.25 224.978 120.25C224.949 120.25 224.92 120.25 224.892 120.25C224.863 120.25 224.834 120.25 224.805 120.25C224.777 120.25 224.748 120.25 224.719 120.25C224.69 120.25 224.661 120.25 224.633 120.25C224.604 120.25 224.575 120.25 224.546 120.25C224.517 120.25 224.489 120.25 224.46 120.25C224.431 120.25 224.402 120.25 224.373 120.25C224.344 120.25 224.316 120.25 224.287 120.25C224.258 120.25 224.229 120.25 224.2 120.25C224.171 120.25 224.142 120.25 224.114 120.25C224.085 120.25 224.056 120.25 224.027 120.25C223.998 120.25 223.969 120.25 223.94 120.25C223.911 120.25 223.882 120.25 223.854 120.25C223.825 120.25 223.796 120.25 223.767 120.25C223.738 120.25 223.709 120.25 223.68 120.25C223.651 120.25 223.622 120.25 223.593 120.25C223.564 120.25 223.535 120.25 223.506 120.25C223.477 120.25 223.448 120.25 223.419 120.25C223.39 120.25 223.361 120.25 223.333 120.25C223.304 120.25 223.275 120.25 223.246 120.25C223.217 120.25 223.188 120.25 223.159 120.25C223.13 120.25 223.101 120.25 223.072 120.25C223.043 120.25 223.014 120.25 222.985 120.25C222.956 120.25 222.927 120.25 222.898 120.25C222.869 120.25 222.839 120.25 222.81 120.25C222.781 120.25 222.752 120.25 222.723 120.25C222.694 120.25 222.665 120.25 222.636 120.25C222.607 120.25 222.578 120.25 222.549 120.25C222.52 120.25 222.491 120.25 222.462 120.25C222.433 120.25 222.404 120.25 222.375 120.25C222.346 120.25 222.317 120.25 222.288 120.25C222.259 120.25 222.23 120.25 222.201 120.25C222.171 120.25 222.142 120.25 222.113 120.25C222.084 120.25 222.055 120.25 222.026 120.25C221.997 120.25 221.968 120.25 221.939 120.25C221.91 120.25 221.881 120.25 221.852 120.25C221.823 120.25 221.794 120.25 221.764 120.25C221.735 120.25 221.706 120.25 221.677 120.25C221.648 120.25 221.619 120.25 221.59 120.25C221.561 120.25 221.532 120.25 221.503 120.25C221.474 120.25 221.445 120.25 221.415 120.25C221.386 120.25 221.357 120.25 221.328 120.25C221.299 120.25 221.27 120.25 221.241 120.25C221.212 120.25 221.183 120.25 221.154 120.25C221.125 120.25 221.096 120.25 221.066 120.25C221.037 120.25 221.008 120.25 220.979 120.25C220.95 120.25 220.921 120.25 220.892 120.25C220.863 120.25 220.834 120.25 220.805 120.25C220.776 120.25 220.747 120.25 220.718 120.25C220.688 120.25 220.659 120.25 220.63 120.25C220.601 120.25 220.572 120.25 220.543 120.25C220.514 120.25 220.485 120.25 220.456 120.25C220.427 120.25 220.398 120.25 220.369 120.25C220.34 120.25 220.311 120.25 220.282 120.25C220.253 120.25 220.224 120.25 220.194 120.25C220.165 120.25 220.136 120.25 220.107 120.25C220.078 120.25 220.049 120.25 220.02 120.25C219.991 120.25 219.962 120.25 219.933 120.25C219.904 120.25 219.875 120.25 219.846 120.25C219.817 120.25 219.788 120.25 219.759 120.25C219.73 120.25 219.701 120.25 219.672 120.25C219.643 120.25 219.614 120.25 219.585 120.25C219.556 120.25 219.527 120.25 219.498 120.25C219.469 120.25 219.44
1543120.25 219.411 120.25C219.382 120.25 219.353 120.25 219.324 120.25C219.295 120.25 219.266 120.25 219.237 120.25C219.208 120.25 219.179 120.25 219.15 120.25C219.121 120.25 219.092 120.25 219.063 120.25C219.035 120.25 219.006 120.25 218.977 120.25C218.948 120.25 218.919 120.25 218.89 120.25C218.861 120.25 218.832 120.25 218.803 120.25C218.774 120.25 218.745 120.25 218.716 120.25C218.688 120.25 218.659 120.25 218.63 120.25C218.601 120.25 218.572 120.25 218.543 120.25C218.514 120.25 218.485 120.25 218.457 120.25C218.428 120.25 218.399 120.25 218.37 120.25C218.341 120.25 218.312 120.25 218.284 120.25C218.255 120.25 218.226 120.25 218.197 120.25C218.168 120.25 218.139 120.25 218.111 120.25C218.082 120.25 218.053 120.25 218.024 120.25C217.995 120.25 217.967 120.25 217.938 120.25C217.909 120.25 217.88 120.25 217.852 120.25C217.823 120.25 217.794 120.25 217.765 120.25C217.737 120.25 217.708 120.25 217.679 120.25C217.651 120.25 217.622 120.25 217.593 120.25C217.564 120.25 217.536 120.25 217.507 120.25C217.478 120.25 217.45 120.25 217.421 120.25C217.392 120.25 217.364 120.25 217.335 120.25C217.306 120.25 217.278 120.25 217.249 120.25C217.221 120.25 217.192 120.25 217.163 120.25C217.135 120.25 217.106 120.25 217.078 120.25C217.049 120.25 217.02 120.25 216.992 120.25C216.963 120.25 216.935 120.25 216.906 120.25C216.878 120.25 216.849 120.25 216.821 120.25C216.792 120.25 216.764 120.25 216.735 120.25C216.707 120.25 216.678 120.25 216.65 120.25C216.621 120.25 216.593 120.25 216.564 120.25C216.536 120.25 216.507 120.25 216.479 120.25C216.45 120.25 216.422 120.25 216.394 120.25C216.365 120.25 216.337 120.25 216.308 120.25C216.28 120.25 216.252 120.25 216.223 120.25C216.195 120.25 216.166 120.25 216.138 120.25C216.11 120.25 216.081 120.25 216.053 120.25C216.025 120.25 215.997 120.25 215.968 120.25C215.94 120.25 215.912 120.25 215.883 120.25C215.855 120.25 215.827 120.25 215.799 120.25C215.77 120.25 215.742 120.25 215.714 120.25C215.686 120.25 215.658 120.25 215.629 120.25C215.601 120.25 215.573 120.25 215.545 120.25C215.517 120.25 215.489 120.25 215.46 120.25C215.432 120.25 215.404 120.25 215.376 120.25C215.348 120.25 215.32 120.25 215.292 120.25C215.264 120.25 215.236 120.25 215.208 120.25C215.18 120.25 215.152 120.25 215.124 120.25C215.096 120.25 215.068 120.25 215.04 120.25C215.012 120.25 214.984 120.25 214.956 120.25C214.928 120.25 214.9 120.25 214.872 120.25C214.844 120.25 214.816 120.25 214.788 120.25C214.76 120.25 214.732 120.25 214.705 120.25C214.677 120.25 214.649 120.25 214.621 120.25C214.593 120.25 214.565 120.25 214.538 120.25C214.51 120.25 214.482 120.25 214.454 120.25C214.426 120.25 214.399 120.25 214.371 120.25C214.343 120.25 214.316 120.25 214.288 120.25C214.26 120.25 214.232 120.25 214.205 120.25C214.177 120.25 214.15 120.25 214.122 120.25C214.094 120.25 214.067 120.25 214.039 120.25C214.011 120.25 213.984 120.25 213.956 120.25C213.929 120.25 213.901 120.25 213.874 120.25C213.846 120.25 213.819 120.25 213.791 120.25C213.764 120.25 213.736 120.25 213.709 120.25C213.681 120.25 213.654 120.25 213.626 120.25C213.599 120.25 213.572 120.25 213.544 120.25C213.517 120.25 213.49 120.25 213.462 120.25C213.435 120.25 213.408 120.25 213.38 120.25C213.353 120.25 213.326 120.25 213.298 120.25C213.271 120.25 213.244 120.25 213.217 120.25C213.189 120.25 213.162 120.25 213.135 120.25C213.108 120.25 213.081 120.25 213.054 120.25C213.026 120.25 212.999 120.25 212.972 120.25C212.945 120.25 212.918 120.25 212.891 120.25C212.864 120.25 212.837 120.25 212.81 120.25C212.783 120.25 212.756 120.25 212.729 120.25C212.702 120.25 212.675 120.25 212.648 120.25C212.621 120.25 212.594 120.25 212.567 120.25C212.54 120.25 212.513 120.25 212.487 120.25C212.46 120.25 212.433 120.25 212.406 120.25C212.379 120.25 212.352 120.25 212.326 120.25C212.299 120.25 212.272 120.25 212.245 120.25C212.219 120.25 212.192 120.25 212.165 120.25C212.139 120.25 212.112 120.25 212.085 120.25C212.059 120.25 212.032 120.25 212.005 120.25C211.979 120.25 211.952 120.25 211.926 120.25C211.899 120.25 211.873 120.25 211.846 120.25C211.82 120.25 211.793 120.25 211.767 120.25C211.74 120.25 211.714 120.25 211.687 120.25C211.661 120.25 211.635 120.25 211.608 120.25C211.582 120.25 211.556 120.25 211.529 120.25C211.503 120.25 211.477 120.25 211.45 120.25C211.424 120.25 211.398 120.25 211.372 120.25C211.345 120.25 211.319 120.25 211.293 120.25C211.267 120.25 211.241 120.25 211.215 120.25C211.189 120.25 211.162 120.25 211.136 120.25C211.11 120.25 211.084 120.25 211.058 120.25C211.032 120.25 211.006 120.25 210.98 120.25C210.954 120.25 210.928 120.25 210.902 120.25C210.876 120.25 210.851 120.25 210.825 120.25C210.799 120.25 210.773 120.25 210.747 120.25C210.721 120.25 210.696 120.25 210.67 120.25C210.644 120.25 210.618 120.25 210.593 120.25C210.567 120.25 210.541 120.25 210.515 120.25C210.49 120.25 210.464 120.25 210.439 120.25C210.413 120.25 210.387 120.25 210.362 120.25C210.336 120.25 210.311 120.25 210.285 120.25C210.26 120.25 210.234 120.25 210.209 120.25C210.183 120.25 210.158 120.25 210.133 120.25C210.107 120.25 210.082 120.25 210.056 120.25C210.031 120.25 210.006 120.25 209.981 120.25C209.955 120.25 209.93 120.25 209.905 120.25C209.88 120.25 209.854 120.25 209.829 120.25C209.804 120.25 209.779 120.25 209.754 120.25C209.729 120.25 209.704 120.25 209.679 120.25C209.653 120.25 209.628 120.25 209.603 120.25C209.578 120.25 209.554 120.25 209.529 120.25C209.504 120.25 209.479 120.25 209.454 120.25C209.429 120.25 209.404 120.25 209.379 12
15430.25C209.354 120.25 209.33 120.25 209.305 120.25C209.28 120.25 209.255 120.25 209.231 120.25C209.206 120.25 209.181 120.25 209.157 120.25C209.132 120.25 209.107 120.25 209.083 120.25C209.058 120.25 209.034 120.25 209.009 120.25C208.985 120.25 208.96 120.25 208.936 120.25C208.911 120.25 208.887 120.25 208.862 120.25C208.838 120.25 208.814 120.25 208.789 120.25C208.765 120.25 208.741 120.25 208.716 120.25C208.692 120.25 208.668 120.25 208.644 120.25C208.62 120.25 208.595 120.25 208.571 120.25C208.547 120.25 208.523 120.25 208.499 120.25C208.475 120.25 208.451 120.25 208.427 120.25C208.403 120.25 208.379 120.25 208.355 120.25C208.331 120.25 208.307 120.25 208.283 120.25C208.259 120.25 208.235 120.25 208.211 120.25C208.188 120.25 208.164 120.25 208.14 120.25C208.116 120.25 208.093 120.25 208.069 120.25C208.045 120.25 208.021 120.25 207.998 120.25C207.974 120.25 207.951 120.25 207.927 120.25C207.904 120.25 207.88 120.25 207.857 120.25C207.833 120.25 207.81 120.25 207.786 120.25C207.763 120.25 207.739 120.25 207.716 120.25C207.693 120.25 207.669 120.25 207.646 120.25C207.623 120.25 207.599 120.25 207.576 120.25C207.553 120.25 207.53 120.25 207.507 120.25C207.484 120.25 207.46 120.25 207.437 120.25C207.414 120.25 207.391 120.25 207.368 120.25C207.345 120.25 207.322 120.25 207.299 120.25C207.276 120.25 207.254 120.25 207.231 120.25C207.208 120.25 207.185 120.25 207.162 120.25C207.139 120.25 207.117 120.25 207.094 120.25C207.071 120.25 207.049 120.25 207.026 120.25C207.003 120.25 206.981 120.25 206.958 120.25C206.935 120.25 206.913 120.25 206.89 120.25C206.868 120.25 206.845 120.25 206.823 120.25C206.801 120.25 206.778 120.25 206.756 120.25C206.733 120.25 206.711 120.25 206.689 120.25C206.667 120.25 206.644 120.25 206.622 120.25C206.6 120.25 206.578 120.25 206.556 120.25C206.534 120.25 206.511 120.25 206.489 120.25C206.467 120.25 206.445 120.25 206.423 120.25C206.401 120.25 206.379 120.25 206.357 120.25C206.336 120.25 206.314 120.25 206.292 120.25C206.27 120.25 206.248 120.25 206.227 120.25C206.205 120.25 206.183 120.25 206.161 120.25C206.14 120.25 206.118 120.25 206.097 120.25C206.075 120.25 206.053 120.25 206.032 120.25C206.01 120.25 205.989 120.25 205.967 120.25C205.946 120.25 205.925 120.25 205.903 120.25C205.882 120.25 205.861 120.25 205.839 120.25C205.818 120.25 205.797 120.25 205.776 120.25C205.754 120.25 205.733 120.25 205.712 120.25C205.691 120.25 205.67 120.25 205.649 120.25C205.628 120.25 205.607 120.25 205.586 120.25C205.565 120.25 205.544 120.25 205.523 120.25C205.502 120.25 205.481 120.25 205.461 120.25C205.44 120.25 205.419 120.25 205.398 120.25C205.378 120.25 205.357 120.25 205.336 120.25C205.316 120.25 205.295 120.25 205.275 120.25C205.254 120.25 205.234 120.25 205.213 120.25C205.193 120.25 205.172 120.25 205.152 120.25C205.132 120.25 205.111 120.25 205.091 120.25C205.071 120.25 205.05 120.25 205.03 120.25C205.01 120.25 204.99 120.25 204.97 120.25C204.95 120.25 204.93 120.25 204.91 120.25C204.89 120.25 204.87 120.25 204.85 120.25C204.83 120.25 204.81 120.25 204.79 120.25C204.77 120.25 204.75 120.25 204.73 120.25C204.711 120.25 204.691 120.25 204.671 120.25C204.652 120.25 204.632 120.25 204.612 120.25C204.593 120.25 204.573 120.25 204.554 120.25C204.534 120.25 204.515 120.25 204.495 120.25C204.476 120.25 204.457 120.25 204.437 120.25C204.418 120.25 204.399 120.25 204.379 120.25C204.36 120.25 204.341 120.25 204.322 120.25C204.303 120.25 204.284 120.25 204.264 120.25C204.245 120.25 204.226 120.25 204.207 120.25C204.188 120.25 204.17 120.25 204.151 120.25C204.132 120.25 204.113 120.25 204.094 120.25C204.075 120.25 204.057 120.25 204.038 120.25C204.019 120.25 204.001 120.25 203.982 120.25C203.963 120.25 203.945 120.25 203.926 120.25C203.908 120.25 203.889 120.25 203.871 120.25C203.853 120.25 203.834 120.25 203.816 120.25C203.798 120.25 203.779 120.25 203.761 120.25C203.743 120.25 203.725 120.25 203.707 120.25C203.688 120.25 203.67 120.25 203.652 120.25C203.634 120.25 203.616 120.25 203.598 120.25C203.58 120.25 203.562 120.25 203.545 120.25C203.527 120.25 203.509 120.25 203.491 120.25C203.474 120.25 203.456 120.25 203.438 120.25C203.42 120.25 203.403 120.25 203.385 120.25C203.368 120.25 203.35 120.25 203.333 120.25C203.315 120.25 203.298 120.25 203.281 120.25C203.263 120.25 203.246 120.25 203.229 120.25C203.211 120.25 203.194 120.25 203.177 120.25C203.16 120.25 203.143 120.25 203.126 120.25C203.109 12
15430.25 203.092 120.25 203.075 120.25C203.058 120.25 203.041 120.25 203.024 120.25C203.007 120.25 202.99 120.25 202.973 120.25C202.957 120.25 202.94 120.25 202.923 120.25C202.907 120.25 202.89 120.25 202.873 120.25C202.857 120.25 202.84 120.25 202.824 120.25C202.807 120.25 202.791 120.25 202.775 120.25C202.758 120.25 202.742 120.25 202.726 120.25C202.709 120.25 202.693 120.25 202.677 120.25C202.661 120.25 202.645 120.25 202.629 120.25C202.613 120.25 202.597 120.25 202.581 120.25C202.565 120.25 202.549 120.25 202.533 120.25C202.517 120.25 202.501 120.25 202.486 120.25C202.47 120.25 202.454 120.25 202.439 120.25C202.423 120.25 202.407 120.25 202.392 120.25C202.376 120.25 202.361 120.25 202.345 120.25C202.33 120.25 202.315 120.25 202.299 120.25C202.284 120.25 202.269 120.25 202.254 120.25C202.238 120.25 202.223 120.25 202.208 120.25C202.193 120.25 202.178 120.25 202.163 120.25C202.148 120.25 202.133 120.25 202.118 120.25C202.103 120.25 202.088 120.25 202.074 120.25C202.059 120.25 202.044 120.25 202.029 120.25C202.015 120.25 202 120.25 201.986 120.25C201.971 120.25 201.956 120.25 201.942 120.25C201.928 120.25 201.913 120.25 201.899 120.25C201.884 120.25 201.87 120.25 201.856 120.25C201.842 120.25 201.828 120.25 201.813 120.25C201.799 120.25 201.785 120.25 201.771 120.25C201.757 120.25 201.743 120.25 201.729 120.25C201.715 120.25 201.702 120.25 201.688 120.25C201.674 120.25 201.66 120.25 201.647 120.25C201.633 120.25 201.619 120.25 201.606 120.25C201.592 120.25 201.579 120.25 201.565 120.25C201.552 120.25 201.538 120.25 201.525 120.25C201.512 120.25 201.498 120.25 201.485 120.25C201.472 120.25 201.459 120.25 201.446 120.25C201.432 120.25 201.419 120.25 201.406 120.25C201.393 120.25 201.38 120.25 201.368 120.25C201.355 120.25 201.342 120.25 201.329 120.25C201.316 120.25 201.304 120.25 201.291 120.25C201.278 120.25 201.266 120.25 201.253 120.25C201.241 120.25 201.228 120.25 201.216 120.25C201.203 120.25 201.191 120.25 201.179 120.25C201.166 120.25 201.154 120.25 201.142 120.25C201.13 120.25 201.118 120.25 201.106 120.25C201.093 120.25 201.081 120.25 201.07 120.25C201.058 120.25 201.046 120.25 201.034 120.25C201.022 120.25 201.01 120.25 200.999 120.25C200.987 120.25 200.975 120.25 200.964 120.25C200.952 120.25 200.94 120.25 200.929 120.25C200.917 120.25 200.906 120.25 200.895 120.25C200.883 120.25 200.872 120.25 200.861 120.25C200.85 120.25 200.838 120.25 200.827 120.25C200.816 120.25 200.805 120.25 200.794 120.25C200.783 120.25 200.772 120.25 200.761 120.25V118.75Z",fill:"url(#paint3_linear_38_7016)"}),(0,v.jsx)("path",{d:"M164 52C164 49.7909 165.791 48 168 48C170.209 48 172 49.7909 172 52C172 54.2091 170.209 56 168 56C165.791 56 164 54.2091 164 52ZM238.53 51.4697C238.823 51.7626 238.823 52.2374 238.53 52.5303L233.757 57.3033C233.464 57.5962 232.99 57.5962 232.697 57.3033C232.404 57.0104 232.404 56.5355 232.697 56.2426L236.939 52L232.697 47.7574C232.404 47.4645 232.404 46.9896 232.697 46.6967C232.99 46.4038 233.464 46.4038 233.757 46.6967L238.53 51.4697ZM168 51.25C168.006 51.25 168.013 51.25 168.02 51.25C168.027 51.25 168.034 51.25 168.041 51.25C168.049 51.25 168.056 51.25 168.064 51.25C168.072 51.25 168.08 51.25 168.088 51.25C168.096 51.25 168.104 51.25 168.113 51.25C168.121 51.25 168.13 51.25 168.139 51.25C168.148 51.25 168.157 51.25 168.166 51.25C168.176 51.25 168.185 51.25 168.195 51.25C168.205 51.25 168.215 51.25 168.225 51.25C168.235 51.25 168.246 51.25 168.256 51.25C168.267 51.25 168.278 51.25 168.289 51.25C168.3 51.25 168.311 51.25 168.322 51.25C168.334 51.25 168.345 51.25 168.357 51.25C168.369 51.25 168.381 51.25 168.393 51.25C168.405 51.25 168.418 51.25 168.43 51.25C168.443 51.25 168.456 51.25 168.469 51.25C168.481 51.25 168.495 51.25 168.508 51.25C168.521 51.25 168.535 51.25 168.549 51.25C168.563 51.25 168.577 51.25 168.591 51.25C168.605 51.25 168.619 51.25 168.634 51.25C168.648 51.25 168.663 51.25 168.678 51.25C168.693 51.25 168.708 51.25 168.723 51.25C168.739 51.25 168.754 51.25 168.77 51.25C168.786 51.25 168.802 51.25 168.818 51.25C168.834 51.25 168.85 51.25 168.867 51.25C168.883 51.25 168.9 51.25 168.917 51.25C168.933 51.25 168.95 51.25 168.968 51.25C168.985 51.25 169.002 51.25 169.02 51.25C169.038 51.25 169.055 51.25 169.073 51.25C169.091 51.25 169.109 51.25 169.128 51.25C169.146 51.25 169.165 51.25 169.183 51.25C169.202 51.25 169.221 51.25 169.24 51.25C169.259 51.25 169.279 51.25 169.298 51.25C169.318 51.25 169.337 51.25 169.357 51.25C169.377 51.25 169.397 51.25 169.417 51.25C169.437 51.25 169.458 51.25 169.478 51.25C169.499 51.25 169.52 51.25 169.541 51.25C169.561 51.25 169.583 51.25 169.604 51.25C169.625 51.25 169.647 51.25 169.668 51.25C169.69 51.25 169.712 51.25 169.734 51.25C169.756 51.25 169.778 51.25 169.8 51.25C169.823 51.25 169.845 51.25 169.868 51.25C169.891 51.25 169.914 51.25 169.937 51.25C169.96 51.25 169.983 51.25 170.006 51.25C170.03 51.25 170.053 51.25 170.077 51.25C170.101 51.25 170.125 51.25 170.149 51.25C170.173 51.25 170.198 51.25 170.222 51.25C170.246 51.25 170.271 51.25 170.296 51.25C170.321 51.25 170.346 51.25 170.371 51.25C170.396 51.25 170.421 51.25 170.447 51.25C170.472 51.25 170.498 51.25 170.524 51.25C170.55 51.25 170.576 51.25 170.602 51.25C170.628 51.25 170.654 51.25 170.681 51.25C170.708 51.25 170.734 51.25 170.761 51.25C170.788 51.25 170.815 51.25 170.842 51.25C170.869 51.25 170.897 51.25 170.924 51.25C170.952 51.25 170.979 51.25 171.007 51.25C171.035 51.25 171.063 51.25 171.091 51.25C171.12 51.25 171.148 51.25 171.176 51.25C171.205 51.25 171.234 51.25 171.262 51.25C171.291 51.25 171.32 51.25 171.349 51.25C171.379 51.25 171.408 51.25 171.437 51.25C171.467 51.25 171.497 51.25 171.526 51.25C171.556 51.25 171.586 51.25 171.616 51.25C171.646 51.25 171.677 51.25 171.707 51.25C171.738 51.25 171.768 51.25 171.799 51.25C171.83 51.25 171.861 51.25 171.892 51.25C171.923 51.25 171.954 51.25 171.986 51.25C172.017 51.25 172.049 51.25 172.08 51.25C172.112 51.25 172.144 51.25 172.176 51.25C172.208 51.25 172.24 51.25 172.272 51.25C172.305 51.25 172.337 51.25 172.37 51.25C172.402 51.25 172.435 51.25 172.468 51.25C172.501 51.25 172.534 51.25 172.568 51.25C172.601 51.25 172.634 51.25 172.668 51.25C172.701 51.25 172.735 51.25 172.769 51.25C172.803 51.25 172.837 51.25 172.871 51.25C172.905 51.25 172.939 51.25 172.974 51.25C173.008 51.25 173.043 51.25 173.078 51.25C173.112 51.25 173.147 51.25 173.182 51.25C173.217 51.25 173.253 51.25 173.288 51.25C173.323 51.25 173.359 51.25 173.394 51.25C173.43 51.25 173.466 51.25 173.502 51.25C173.538 51.25 173.574 51.25 173.61 51.25C173.646 51.25 173.683 51.25 173.719 51.25C173.756 51.25 173.792 51.25 173.829 51.25C173.866 51.25 173.903 51.25 173.94 51.25C173.977 51.25 174.014 51.25 174.051 51.25C174.089 51.25 174.126 51.25 174.164 51.25C174.201 51.25 174.239 51.25 174.277 51.25C174.315 51.25 174.353 51.25 174.391 51.25C174.43 51.25 174.468 51.25 174.506 51.25C174.545 51.25 174.583 51.25 174.622 51.25C174.661 51.25 174.7 51.25 174.739 51.25C174.778 51.25 174.817 51.25 174.856 51.25C174.896 51.25 174.935 51.25 174.975 51.25C175.014 51.25 175.054 51.25 175.094 51.25C175.134 51.25 175.173 51.25 175.214 51.25C175.254 51.25 175.294 51.25 175.334 51.25C175.375 51.25 175.415 51.25 175.456 51.25C175.496 51.25 175.537 51.25 175.578 51.25C175.619 51.25 175.66 51.25 175.701 51.25C175.742 51.25 175.784 51.25 175.825 51.25C175.866 51.25 175.908 51.25 175.95 51.25C175.991 51.25 176.033 51.25 176.075 51.25C176.117 51.25 176.159 51.25 176.201 51.25C176.243 51.25 176.286 51.25 176.328 51.25C176.37 51.25 176.413 51.25 176.456 51.25C176.498 51.25 176.541 51.25 176.584 51.25C176.627 51.25 176.67 51.25 176.713 51.25C176.757 51.25 176.8 51.25 176.843 51.25C176.887 51.25 176.93 51.25 176.974 51.25C177.018 51.25 177.061 51.25 177.105 51.25C177.149 51.25 177.193 51.25 177.237 51.25C177.282 51.25 177.326 51.25 177.37 51.25C177.415 51.25 177.459 51.25 177.504 51.25C177.548 51.25 177.593 51.25 177.638 51.25C177.683 51.25 177.728 51.25 177.773 51.25C177.818 51.25 177.863 51.25 177.909 51.25C177.954 51.25 178 51.25 178.045 51.25C178.091 51.25 178.136 51.25 178.182 51.25C178.228 51.25 178.274 51.25 178.32 51.25C178.366 51.25 178.412 51.25 178.459 51.25C178.505 51.25 178.551 51.25 178.598 51.25C178.644 51.25 178.691 51.25 178.738 51.25C178.784 51.25 178.831 51.25 178.878 51.25C178.925 51.25 178.972 51.25 179.019 51.25C179.066 51.25 179.114 51.25 179.161 51.25C179.208 51.25 179.256 51.25 179.304 51.25C179.351 51.25 179.399 51.25 179.447 51.25C179.495 51.25 179.542 51.25 179.59 51.25C179.639 51.25 179.687 51.25 179.735 51.25C179.783 51.25 179.832 51.25 179.88 51.25C179.928 51.25 179.977 51.25 180.026 51.25C180.074 51.25 180.123 51.25 180.172 51.25C180.221 51.25 180.27 51.25 180.319 51.25C180.368 51.25 180.417 51.25 180.467 51.25C180.516 51.25 180.565 51.25 180.615 51.25C180.664 51.25 180.714 51.25 180.764 51.25C180.813 51.25 180.863 51.25 180.913 51.25C180.963 51.25 181.013 51.25 181.063 51.25C181.113 51.25 181.163 51.25 181.214 51.25C181.264 51.25 181.314 51.25 181.365 51.25C181.415 51.25 181.466 51.25 181.517 51.25C181.567 51.25 181.618 51.25 181.669 51.25C181.72 51.25 181.771 51.25 181.822 51.25C181.873 51.25 181.924 51.25 181.976 51.25C182.027 51.25 182.078 51.25 182.13 51.25C182.181 51.25 182.233 51.25 182.284 51.25C182.336 51.25 182.388 51.25 182.44 51.25C182.492 51.25 182.544 51.25 182.596 51.25C182.648 51.25 182.7 51.25 182.752 51.25C182.804 51.25 182.856 51.25 182.909 51.25C182.961 51.25 183.014 51.25 183.066 51.25C183.119 51.25 183.171 51.25 183.224 51.25C183.277 51.25 183.33 51.25 183.383 51.25C183.436 51.25 183.489 51.25 183.542 51.25C183.595 51.25 183.648 51.25 183.701 51.25C183.755 51.25 183.808 51.25 183.861 51.25C183.915 51.25 183.968 51.25 184.022 51.25C184.076 51.25 184.129 51.25 184.183 51.25C184.237 51.25 184.291 51.25 184.345 51.25C184.399 51.25 184.453 51.25 184.507 51.25C184.561 51.25 184.615 51.25 184.669 51.25C184.724 51.25 184.778 51.25 184.832 51.25C184.887 51.25 184.941 51.25 184.996 51.25C185.05 51.25 185.105 51.25 185.16 51.25C185.215 51.25 185.27 51.25 185.324 51.25C185.379 51.25 185.434 51.25 185.489 51.25C185.545 51.25 185.6 51.25 185.655 51.25C185.71 51.25 185.765 51.25 185.821 51.25C185.876 51.25 185.932 51.25 185.987 51.25C186.043 51.25 186.098 51.25 186.154 51.25C186.21 51.25 186.265 51.25 186.321 51.25C186.377 51.25 186.433 51.25 186.489 51.25C186.545 51.25 186.601 51.25 186.657 51.25C186.713 51.25 186.769 51.25 186.826 51.25C186.882 51.25 186.938 51.25 186.995 51.25C187.051 51.25 187.108 51.25 187.164 51.25C187.221 51.25 187.277 51.25 187.334 51.25C187.391 51.25 187.447 51.25 187.504 51.25C187.561 51.25 187.618 51.25 187.675 51.25C187.732 51.25 187.789 51.25 187.846 51.25C187.903 51.25 187.96 51.25 188.018 51.25C188.075 51.25 188.132 51.25 188.189 51.25C188.247 51.25 188.304 51.25 188.362 51.25C188.419 51.25 188.477 51.25 188.534 51.25C188.592 51.25 188.65 51.25 188.707 51.25C188.765 51.25 188.823 51.25 188.881 51.25C188.939 51.25 188.997 51.25 189.055 51.25C189.113 51.25 189.171 51.25 189.229 51.25C189.287 51.25 189.345 51.25 189.403 51.25C189.462 51.25 189.52 51.25 189.578 51.25C189.637 51.25 189.695 51.25 189.753 51.25C189.812 51.25 189.87 51.25 189.929 51.25C189.988 51.25 190.046 51.25 190.105 51.25C190.164 51.25 190.222 51.25 190.281 51.25C190.34 51.25 190.399 51.25 190.458 51.25C190.517 51.25 190.576 51.25 190.635 51.25C190.694 51.25 190.753 51.25 190.812 51.25C190.871 51.25 190.93 51.25 190.989 51.25C191.049 51.25 191.108 51.25 191.167 51.25C191.227 51.25 191.286 51.25 191.346 51.25C191.405 51.25 191.465 51.25 191.524 51.25C191.584 51.25 191.643 51.25 191.703 51.25C191.763 51.25 191.822 51.25 191.882 51.25C191.942 51.25 192.002 51.25 192.061 51.25C192.121 51.25 192.181 51.25 192.241 51.25C192.301 51.25 192.361 51.25 192.421 51.25C192.481 51.25 192.541 51.25 192.601 51.25C192.661 51.25 192.722 51.25 192.782 51.25C192.842 51.25 192.902 51.25 192.963 51.25C193.023 51.25 193.083 51.25 193.144 51.25C193.204 51.25 193.265 51.25 193.325 51.25C193.385 51.25 193.446 51.25 193.507 51.25C193.567 51.25 193.628 51.25 193.688 51.25C193.749 51.25 193.81 51.25 193.87 51.25C193.931 51.25 193.992 51.25 194.053 51.25C194.114 51.25 194.174 51.25 194.235 51.25C194.296 51.25 194.357 51.25 194.418 51.25C194.479 51.25 194.54 51.25 194.601 51.25C194.662 51.25 194.723 51.25 194.784 51.25C194.845 51.25 194.907 51.25 194.968 51.25C195.029 51.25 195.09 51.25 195.151 51.25C195.213 51.25 195.274 51.25 195.335 51.25C195.397 51.25 195.458 51.25 195.519 51.25C195.581 51.25 195.642 51.25 195.704 51.25C195.765 51.25 195.826 51.25 195.888 51.25C195.949 51.25 196.011 51.25 196.073 51.25C196.134 51.25 196.196 51.25 196.257 51.25C196.319 51.25 196.381 51.25 196.442 51.25C196.504 51.25 196.566 51.25 196.628 51.25C196.689 51.25 196.751 51.25 196.813 51.25C196.875 51.25 196.937 51.25 196.998 51.25C197.06 51.25 197.122 51.25 197.184 51.25C197.246 51.25 197.308 51.25 197.37 51.25C197.432 51.25 197.494 51.25 197.556 51.25C197.618 51.25 197.68 51.25 197.742 51.25C197.804 51.25 197.866 51.25 197.928 51.25C197.991 51.25 198.053 51.25 198.115 51.25C198.177 51.25 198.239 51.25 198.301 51.25C198.364 51.25 198.426 51.25 198.488 51.25C198.55 51.25 198.613 51.25 198.675 51.25C198.737 51.25 198.799 51.25 198.862 51.25C198.924 51.25 198.986 51.25 199.049 51.25C199.111 51.25 199.174 51.25 199.236 51.25C199.298 51.25 199.361 51.25 199.423 51.25C199.486 51.25 199.548 51.25 199.61 51.25C199.673 51.25 199.735 51.25 199.798 51.25C199.86 51.25 199.923 51.25 199.985 51.25C200.
1543048 51.25 200.111 51.25 200.173 51.25C200.236 51.25 200.298 51.25 200.361 51.25C200.423 51.25 200.486 51.25 200.549 51.25C200.611 51.25 200.674 51.25 200.736 51.25C200.799 51.25 200.862 51.25 200.924 51.25C200.987 51.25 201.05 51.25 201.112 51.25C201.175 51.25 201.238 51.25 201.3 51.25C201.363 51.25 201.426 51.25 201.488 51.25C201.551 51.25 201.614 51.25 201.677 51.25C201.739 51.25 201.802 51.25 201.865 51.25C201.927 51.25 201.99 51.25 202.053 51.25C202.116 51.25 202.178 51.25 202.241 51.25C202.304 51.25 202.367 51.25 202.429 51.25C202.492 51.25 202.555 51.25 202.618 51.25C202.68 51.25 202.743 51.25 202.806 51.25C202.869 51.25 202.932 51.25 202.994 51.25C203.057 51.25 203.12 51.25 203.183 51.25C203.246 51.25 203.308 51.25 203.371 51.25C203.434 51.25 203.497 51.25 203.559 51.25C203.622 51.25 203.685 51.25 203.748 51.25C203.811 51.25 203.873 51.25 203.936 51.25C203.999 51.25 204.062 51.25 204.124 51.25C204.187 51.25 204.25 51.25 204.313 51.25C204.376 51.25 204.438 51.25 204.501 51.25C204.564 51.25 204.627 51.25 204.689 51.25C204.752 51.25 204.815 51.25 204.878 51.25C204.94 51.25 205.003 51.25 205.066 51.25C205.128 51.25 205.191 51.25 205.254 51.25C205.317 51.25 205.379 51.25 205.442 51.25C205.505 51.25 205.567 51.25 205.63 51.25C205.693 51.25 205.755 51.25 205.818 51.25C205.881 51.25 205.943 51.25 206.006 51.25C206.069 51.25 206.131 51.25 206.194 51.25C206.257 51.25 206.319 51.25 206.382 51.25C206.444 51.25 206.507 51.25 206.569 51.25C206.632 51.25 206.695 51.25 206.757 51.25C206.82 51.25 206.882 51.25 206.945 51.25C207.007 51.25 207.07 51.25 207.132 51.25C207.195 51.25 207.257 51.25 207.32 51.25C207.382 51.25 207.444 51.25 207.507 51.25C207.569 51.25 207.632 51.25 207.694 51.25C207.756 51.25 207.819 51.25 207.881 51.25C207.943 51.25 208.006 51.25 208.068 51.25C208.13 51.25 208.193 51.25 208.255 51.25C208.317 51.25 208.379 51.25 208.442 51.25C208.504 51.25 208.566 51.25 208.628 51.25C208.691 51.25 208.753 51.25 208.815 51.25C208.877 51.25 208.939 51.25 209.001 51.25C209.063 51.25 209.125 51.25 209.187 51.25C209.249 51.25 209.311 51.25 209.373 51.25C209.435 51.25 209.497 51.25 209.559 51.25C209.621 51.25 209.683 51.25 209.745 51.25C209.807 51.25 209.869 51.25 209.931 51.25C209.993 51.25 210.054 51.25 210.116 51.25C210.178 51.25 210.24 51.25 210.301 51.25C210.363 51.25 210.425 51.25 210.487 51.25C210.548 51.25 210.61 51.25 210.671 51.25C210.733 51.25 210.795 51.25 210.856 51.25C210.918 51.25 210.979 51.25 211.041 51.25C211.102 51.25 211.164 51.25 211.225 51.25C211.287 51.25 211.348 51.25 211.409 51.25C211.471 51.25 211.532 51.25 211.593 51.25C211.655 51.25 211.716 51.25 211.777 51.25C211.838 51.25 211.899 51.25 211.961 51.25C212.022 51.25 212.083 51.25 212.144 51.25C212.205 51.25 212.266 51.25 212.327 51.25C212.388 51.25 212.449 51.25 212.51 51.25C212.571 51.25 212.632 51.25 212.693 51.25C212.753 51.25 212.814 51.25 212.875 51.25C212.936 51.25 212.997 51.25 213.057 51.25C213.118 51.25 213.179 51.25 213.239 51.25C213.3 51.25 213.36 51.25 213.421 51.25C213.481 51.25 213.542 51.25 213.602 51.25C213.663 51.25 213.723 51.25 213.784 51.25C213.844 51.25 213.904 51.25 213.964 51.25C214.025 51.25 214.085 51.25 214.145 51.25C214.205 51.25 214.265 51.25 214.325 51.25C214.386 51.25 214.446 51.25 214.506 51.25C214.566 51.25 214.626 51.25 214.685 51.25C214.745 51.25 214.805 51.25 214.865 51.25C214.925 51.25 214.985 51.25 215.044 51.25C215.104 51.25 215.164 51.25 215.223 51.25C215.283 51.25 215.342 51.25 215.402 51.25C215.461 51.25 215.521 51.25 215.58 51.25C215.64 51.25 215.699 51.25 215.758 51.25C215.818 51.25 215.877 51.25 215.936 51.25C215.995 51.25 216.054 51.25 216.114 51.25C216.173 51.25 216.232 51.25 216.291 51.25C216.35 51.25 216.409 51.25 216.467 51.25C216.526 51.25 216.585 51.25 216.644 51.25C216.703 51.25 216.761 51.25 216.82 51.25C216.879 51.25 216.937 51.25 216.996 51.25C217.054 51.25 217.113 51.25 217.171 51.25C217.23 51.25 217.288 51.25 217.346 51.25C217.404 51.25 217.463 51.25 217.521 51.25C217.579 51.25 217.637 51.25 217.695 51.25C217.753 51.25 217.811 51.25 217.869 51.25C217.927 51.25 217.985 51.25 218.043 51.25C218.101 51.25 218.158 51.25 218.216 51.25C218.274 51.25 218.331 51.25 218.389 51.25C218.447 51.25 218.504 51.25 218.561 51.25C218.619 51.25 218.676 51.25 218.734 51.25C218.791 51.25 218.848 51.25 218.905 51.25C218.962 51.25 219.02 51.25 219.077 51.25C219.134 51.25 219.191 51.25 219.247 51.25C219.304 51.25 219.361 51.25 219.418 51.25C219.475 51.25 219.531 51.25 219.588 51.25C219.645 51.25 219.701 51.25 219.758 51.25C219.814 51.25 219.871 51.25 219.927 51.25C219.983 51.25 220.04 51.25 220.096 51.25C220.152 51.25 220.208 51.25 220.264 51.25C220.32 51.25 220.376 51.25 220.432 51.25C220.488 51.25 220.544 51.25 220.6 51.25C220.655 51.25 220.711 51.25 220.767 51.25C220.822 51.25 220.878 51.25 220.933 51.25C220.989 51.25 221.044 51.25 221.099 51.25C221.155 51.25 221.21 51.25 221.265 51.25C221.32 51.25 221.375 51.25 221.43 51.25C221.485 51.25 221.54 51.25 221.595 51.25C221.65 51.25 221.705 51.25 221.759 51.25C221.814 51.25 221.869 51.25 221.923 51.25C221.978 51.25 222.032 51.25 222.087 51.25C222.141 51.25 222.195 51.25 222.249 51.25C222.304 51.25 222.358 51.25 222.412 51.25C222.466 51.25 222.52 51.25 222.574 51.25C222.628 51.25 222.681 51.25 222.735 51.25C222.789 51.25 222.842 51.25 222.896 51.25C222.949 51.25 223.003 51.25 223.056 51.25C223.11 51.25 223.163 51.25 223.216 51.25C223.269 51.25 223.322 51.25 223.375 51.25C223.428 51.25 223.481 51.25 223.534 51.25C223.587 51.25 223.64 51.25 223.692 51.25C223.745 51.25 223.798 51.25 223.85 51.25C223.903 51.25 223.955 51.25 224.007 51.25C224.06 51.25 224.112 51.25 224.164 51.25C224.216 51.25 224.268 51.25 224.32 51.25C224.372 51.25 224.424 51.25 224.476 51.25C224.527 51.25 224.579 51.25 224.631 51.25C224.682 51.25 224.734 51.25 224.785 51.25C224.836 51.25 224.888 51.25 224.939 51.25C224.99 51.25 225.041 51.25 225.092 51.25C225.143 51.25 225.194 51.25 225.245 51.25C225.296 51.25 225.346 51.25 225.397 51.25C225.448 51.25 225.498 51.25 225.549 51.25C225.599 51.25 225.649 51.25 225.699 51.25C225.75 51.25 225.8 51.25 225.85 51.25C225.9 51.25 225.95 51.25 226 51.25C226.049 51.25 226.099 51.25 226.149 51.25C226.198 51.25 226.248 51.25 226.297 51.25C226.347 51.25 226.396 51.25 226.445 51.25C226.494 51.25 226.544 51.25 226.593 51.25C226.642 51.25 226.69 51.25 226.739 51.25C226.788 51.25 226.837 51.25 226.885 51.25C226.934 51.25 226.982 51.25 227.031 51.25C227.079 51.25 227.127 51.25 227.175 51.25C227.224 51.25 227.272 51.25 227.32 51.25C227.368 51.25 227.415 51.25 227.463 51.25C227.511 51.25 227.558 51.25 227.606 51.25C227.653 51.25 227.701 51.25 227.748 51.25C227.795 51.25 227.843 51.25 227.89 51.25C227.937 51.25 227.984 51.25 228.031 51.25C228.077 51.25 228.124 51.25 228.171 51.25C228.217 51.25 228.264 51.25 228.31 51.25C228.357 51.25 228.403 51.25 228.449 51.25C228.495 51.25 228.541 51.25 228.587 51.25C228.633 51.25 228.679 51.25 228.725 51.25C228.77 51.25 228.816 51.25 228.862 51.25C228.907 51.25 228.952 51.25 228.998 51.25C229.043 51.25 229.088 51.25 229.133 51.25C229.178 51.25 229.223 51.25 229.268 51.25C229.312 51.25 229.357 51.25 229.402 51.25C229.446 51.25 229.491 51.25 229.535 51.25C229.579 51.25 229.623 51.25 229.667 51.25C229.711 51.25 229.755 51.25 229.799 51.25C229.843 51.25 229.887 51.25 229.93 51.25C229.974 51.25 230.017 51.25 230.06 51.25C230.104 51.25 230.147 51.25 230.19 51.25C230.233 51.25 230.276 51.25 230.319 51.25C230.362 51.25 230.404 51.25 230.447 51.25C230.49 51.25 230.532 51.25 230.574 51.25C230.617 51.25 230.659 51.25 230.701 51.25C230.743 51.25 230.785 51.25 230.827 51.25C230.869 51.25 230.91 51.25 230.952 51.25C230.993 51.25 231.035 51.25 231.076 51.25C231.117 51.25 231.158 51.25 231.199 51.25C231.241 51.25 231.281 51.25 231.322 51.25C231.363 51.25 231.404 51.25 231.444 51.25C231.485 51.25 231.525 51.25 231.565 51.25C231.605 51.25 231.646 51.25 231.686 51.25C231.726 51.25 231.765 51.25 231.805 51.25C231.845 51.25 231.884 51.25 231.924 51.25C231.963 51.25 232.003 51.25 232.042 51.25C232.081 51.25 232.12 51.25 232.159 51.25C232.198 51.25 232.236 51.25 232.275 51.25C232.314 51.25 232.352 51.25 232.391 51.25C232.429 51.25 232.467 51.25 232.505 51.25C232.543 51.25 232.581 51.25 232.619 51.25C232.657 51.25 232.694 51.25 232.732 51.25C232.769 51.25 232.807 51.25 232.844 51.25C232.881 51.25 232.918 51.25 232.955 51.25C232.992 51.25 233.029 51.25 233.066 51.25C233.102 51.25 233.139 51.25 233.175 51.25C233.212 51.25 233.248 51.25 233.284 51.25C233.32 51.25 233.356 51.25 233.392 51.25C233.427 51.25 233.463 51.25 233.499 51.25C233.534 51.25 233.569 51.25 233.605 51.25C233.64 51.25 233.675 51.25 233.71 51.25C233.745 51.25 233.78 51.25 233.814 51.25C233.849 51.25 233.883 51.25 233.918 51.25C233.952 51.25 233.986 51.25 234.02 51.25C234.054 51.25 234.088 51.25 234.122 51.25C234.155 51.25 234.189 51.25 234.222 51.25C234.256 51.25 234.289 51.25 234.322 51.25C234.355 51.25 234.388 51.25 234.421 51.25C234.454 51.25 234.486 51.25 234.519 51.25C234.551 51.25 234.584 51.25 234.616 51.25C234.648 51.25 234.68 51.25 234.712 51.25C234.744 51.25 234.776 51.25 234.807 51.25C234.839 51.25 234.87 51.25 234.902 51.25C234.933 51.25 234.964 51.25 234.995 51.25C235.026 51.25 235.057 51.25 235.087 51.25C235.118 51.25 235.148 51.25 235.179 51.25C235.209 51.25 235.239 51.25 235.269 51.25C235.299 51.25 235.329 51.25 235.358 51.25C235.388 51.25 235.418 51.25 235.447 51.25C235.476 51.25 235.506 51.25 235.535 51.25C235.564 51.25 235.592 51.25 235.621 51.25C235.65 51.25 235.678 51.25 235.707 51.25C235.735 51.25 235.763 51.25 235.791 51.25C235.819 51.25 235.847 51.25 235.875 51.25C235.903 51.25 235.93 51.25 235.958 51.25C235.985 51.25 236.012 51.25 236.039 51.25C236.066 51.25 236.093 51.25 236.12 51.25C236.146 51.25 236.173 51.25 236.199 51.25C236.226 51.25 236.252 51.25 236.278 51.25C236.304 51.25 236.33 51.25 236.356 51.25C236.381 51.25 236.407 51.25 236.432 51.25C236.457 51.25 236.483 51.25 236.508 51.25C236.533 51.25 236.557 51.25 236.582 51.25C236.607 51.25 236.631 51.25 236.656 51.25C236.68 51.25 236.704 51.25 236.728 51.25C236.752 51.25 236.7
154376 51.25 236.799 51.25C236.823 51.25 236.846 51.25 236.87 51.25C236.893 51.25 236.916 51.25 236.939 51.25C236.962 51.25 236.985 51.25 237.007 51.25C237.03 51.25 237.052 51.25 237.074 51.25C237.097 51.25 237.119 51.25 237.14 51.25C237.162 51.25 237.184 51.25 237.205 51.25C237.227 51.25 237.248 51.25 237.269 51.25C237.29 51.25 237.311 51.25 237.332 51.25C237.353 51.25 237.373 51.25 237.394 51.25C237.414 51.25 237.435 51.25 237.455 51.25C237.475 51.25 237.494 51.25 237.514 51.25C237.534 51.25 237.553 51.25 237.573 51.25C237.592 51.25 237.611 51.25 237.63 51.25C237.649 51.25 237.668 51.25 237.686 51.25C237.705 51.25 237.723 51.25 237.741 51.25C237.759 51.25 237.777 51.25 237.795 51.25C237.813 51.25 237.831 51.25 237.848 51.25C237.866 51.25 237.883 51.25 237.9 51.25C237.917 51.25 237.934 51.25 237.951 51.25C237.967 51.25 237.984 51.25 238 51.25V52.75C237.984 52.75 237.967 52.75 237.951 52.75C237.934 52.75 237.917 52.75 237.9 52.75C237.883 52.75 237.866 52.75 237.848 52.75C237.831 52.75 237.813 52.75 237.795 52.75C237.777 52.75 237.759 52.75 237.741 52.75C237.723 52.75 237.705 52.75 237.686 52.75C237.668 52.75 237.649 52.75 237.63 52.75C237.611 52.75 237.592 52.75 237.573 52.75C237.553 52.75 237.534 52.75 237.514 52.75C237.494 52.75 237.475 52.75 237.455 52.75C237.435 52.75 237.414 52.75 237.394 52.75C237.373 52.75 237.353 52.75 237.332 52.75C237.311 52.75 237.29 52.75 237.269 52.75C237.248 52.75 237.227 52.75 237.205 52.75C237.184 52.75 237.162 52.75 237.14 52.75C237.119 52.75 237.097 52.75 237.074 52.75C237.052 52.75 237.03 52.75 237.007 52.75C236.985 52.75 236.962 52.75 236.939 52.75C236.916 52.75 236.893 52.75 236.87 52.75C236.846 52.75 236.823 52.75 236.799 52.75C236.776 52.75 236.752 52.75 236.728 52.75C236.704 52.75 236.68 52.75 236.656 52.75C236.631 52.75 236.607 52.75 236.582 52.75C236.557 52.75 236.533 52.75 236.508 52.75C236.483 52.75 236.457 52.75 236.432 52.75C236.407 52.75 236.381 52.75 236.356 52.75C236.33 52.75 236.304 52.75 236.278 52.75C236.252 52.75 236.226 52.75 236.199 52.75C236.173 52.75 236.146 52.75 236.12 52.75C236.093 52.75 236.066 52.75 236.039 52.75C236.012 52.75 235.985 52.75 235.958 52.75C235.93 52.75 235.903 52.75 235.875 52.75C235.847 52.75 235.819 52.75 235.791 52.75C235.763 52.75 235.735 52.75 235.707 52.75C235.678 52.75 235.65 52.75 235.621 52.75C235.592 52.75 235.564 52.75 235.535 52.75C235.506 52.75 235.476 52.75 235.447 52.75C235.418 52.75 235.388 52.75 235.358 52.75C235.329 52.75 235.299 52.75 235.269 52.75C235.239 52.75 235.209 52.75 235.179 52.75C235.148 52.75 235.118 52.75 235.087 52.75C235.057 52.75 235.026 52.75 234.995 52.75C234.964 52.75 234.933 52.75 234.902 52.75C234.87 52.75 234.839 52.75 234.807 52.75C234.776 52.75 234.744 52.75 234.712 52.75C234.68 52.75 234.648 52.75 234.616 52.75C234.584 52.75 234.551 52.75 234.519 52.75C234.486 52.75 234.454 52.75 234.421 52.75C234.388 52.75 234.355 52.75 234.322 52.75C234.289 52.75 234.256 52.75 234.222 52.75C234.189 52.75 234.155 52.75 234.122 52.75C234.088 52.75 234.054 52.75 234.02 52.75C233.986 52.75 233.952 52.75 233.918 52.75C233.883 52.75 233.849 52.75 233.814 52.75C233.78 52.75 233.745 52.75 233.71 52.75C233.675 52.75 233.64 52.75 233.605 52.75C233.569 52.75 233.534 52.75 233.499 52.75C233.463 52.75 233.427 52.75 233.392 52.75C233.356 52.75 233.32 52.75 233.284 52.75C233.248 52.75 233.212 52.75 233.175 52.75C233.139 52.75 233.102 52.75 233.066 52.75C233.029 52.75 232.992 52.75 232.955 52.75C232.918 52.75 232.881 52.75 232.844 52.75C232.807 52.75 232.769 52.75 232.732 52.75C232.694 52.75 232.657 52.75 232.619 52.75C232.581 52.75 232.543 52.75 232.505 52.75C232.467 52.75 232.429 52.75 232.391 52.75C232.352 52.75 232.314 52.75 232.275 52.75C232.236 52.75 232.198 52.75 232.159 52.75C232.12 52.75 232.081 52.75 232.042 52.75C232.003 52.75 231.963 52.75 231.924 52.75C231.884 52.75 231.845 52.75 231.805 52.75C231.765 52.75 231.726 52.75 231.686 52.75C231.646 52.75 231.605 52.75 231.565 52.75C231.525 52.75 231.485 52.75 231.444 52.75C231.404 52.75 231.363 52.75 231.322 52.75C231.281 52.75 231.241 52.75 231.199 52.75C231.158 52.75 231.117 52.75 231.076 52.75C231.035 52.75 230.993 52.75 230.952 52.75C230.91 52.75 230.869 52.75 230.827 52.75C230.785 52.75 230.743 52.75 230.701 52.75C230.659 52.75 230.617 52.75 230.574 52.75C230.532 52.75 230.49 52.75 230.447 52.75C230.404 52.75 230.362 52.75 230.319 52.75C230.276 52.75 230.233 52.75 230.19 52.75C230.147 52.75 230.104 52.75 230.06 52.75C230.017 52.75 229.974 52.75 229.93 52.75C229.887 52.75 229.843 52.75 229.799 52.75C229.755 52.75 229.711 52.75 229.667 52.75C229.623 52.75 229.579 52.75 229.535 52.75C229.491 52.75 229.446 52.75 229.402 52.75C229.357 52.75 229.312 52.75 229.268 52.75C229.223 52.75 229.178 52.75 229.133 52.75C229.088 52.75 229.043 52.75 228.998 52.75C228.952 52.75 228.907 52.75 228.862 52.75C228.816 52.75 228.77 52.75 228.725 52.75C228.679 52.75 228.633 52.75 228.587 52.75C228.541 52.75 228.495 52.75 228.449 52.75C228.403 52.75 228.357 52.75 228.31 52.75C228.264 52.75 228.217 52.75 228.171 52.75C228.124 52.75 228.077 52.75 228.031 52.75C227.984 52.75 227.937 52.75 227.89 52.75C227.843 52.75 227.795 52.75 227.748 52.75C227.701 52.75 227.653 52.75 227.606 52.75C227.558 52.75 227.511 52.75 227.463 52.75C227.415 52.75 227.368 52.75 227.32 52.75C227.272 52.75 227.224 52.75 227.175 52.75C227.127 52.75 227.079 52.75 227.031 52.75C226.982 52.75 226.934 52.75 226.885 52.75C226.837 52.75 226.788 52.75 226.739 52.75C226.69 52.75 226.642 52.75 226.593 52.75C226.544 52.75 226.494 52.75 226.445 52.75C226.396 52.75 226.347 52.75 226.297 52.75C226.248 52.75 226.198 52.75 226.149 52.75C226.099 52.75 226.049 52.75 226 52.75C225.95 52.75 225.9 52.75 225.85 52.75C225.8 52.75 225.75 52.75 225.699 52.75C225.649 52.75 225.599 52.75 225.549 52.75C225.498 52.75 225.448 52.75 225.397 52.75C225.346 52.75 225.296 52.75 225.245 52.75C225.194 52.75 225.143 52.75 225.092 52.75C225.041 52.75 224.99 52.75 224.939 52.75C224.888 52.75 224.836 52.75 224.785 52.75C224.734 52.75 224.682 52.75 224.631 52.75C224.579 52.75 224.527 52.75 224.476 52.75C224.424 52.75 224.372 52.75 224.32 52.75C224.268 52.75 224.216 52.75 224.164 52.75C224.112 52.75 224.06 52.75 224.007 52.75C223.955 52.75 223.903 52.75 223.85 52.75C223.798 52.75 223.745 52.75 223.692 52.75C223.64 52.75 223.587 52.75 223.534 52.75C223.481 52.75 223.428 52.75 223.375 52.75C223.322 52.75 223.269 52.75 223.216 52.75C223.163 52.75 223.11 52.75 223.056 52.75C223.003 52.75 222.949 52.75 222.896 52.75C222.842 52.75 222.789 52.75 222.735 52.75C222.681 52.75 222.628 52.75 222.574 52.75C222.52 52.75 222.466 52.75 222.412 52.75C222.358 52.75 222.3
154304 52.75 222.249 52.75C222.195 52.75 222.141 52.75 222.087 52.75C222.032 52.75 221.978 52.75 221.923 52.75C221.869 52.75 221.814 52.75 221.759 52.75C221.705 52.75 221.65 52.75 221.595 52.75C221.54 52.75 221.485 52.75 221.43 52.75C221.375 52.75 221.32 52.75 221.265 52.75C221.21 52.75 221.155 52.75 221.099 52.75C221.044 52.75 220.989 52.75 220.933 52.75C220.878 52.75 220.822 52.75 220.767 52.75C220.711 52.75 220.655 52.75 220.6 52.75C220.544 52.75 220.488 52.75 220.432 52.75C220.376 52.75 220.32 52.75 220.264 52.75C220.208 52.75 220.152 52.75 220.096 52.75C220.04 52.75 219.983 52.75 219.927 52.75C219.871 52.75 219.814 52.75 219.758 52.75C219.701 52.75 219.645 52.75 219.588 52.75C219.531 52.75 219.475 52.75 219.418 52.75C219.361 52.75 219.304 52.75 219.247 52.75C219.191 52.75 219.134 52.75 219.077 52.75C219.02 52.75 218.962 52.75 218.905 52.75C218.848 52.75 218.791 52.75 218.734 52.75C218.676 52.75 218.619 52.75 218.561 52.75C218.504 52.75 218.447 52.75 218.389 52.75C218.331 52.75 218.274 52.75 218.216 52.75C218.158 52.75 218.101 52.75 218.043 52.75C217.985 52.75 217.927 52.75 217.869 52.75C217.811 52.75 217.753 52.75 217.695 52.75C217.637 52.75 217.579 52.75 217.521 52.75C217.463 52.75 217.404 52.75 217.346 52.75C217.288 52.75 217.23 52.75 217.171 52.75C217.113 52.75 217.054 52.75 216.996 52.75C216.937 52.75 216.879 52.75 216.82 52.75C216.761 52.75 216.703 52.75 216.644 52.75C216.585 52.75 216.526 52.75 216.467 52.75C216.409 52.75 216.35 52.75 216.291 52.75C216.232 52.75 216.173 52.75 216.114 52.75C216.054 52.75 215.995 52.75 215.936 52.75C215.877 52.75 215.818 52.75 215.758 52.75C215.699 52.75 215.64 52.75 215.58 52.75C215.521 52.75 215.461 52.75 215.402 52.75C215.342 52.75 215.283 52.75 215.223 52.75C215.164 52.75 215.104 52.75 215.044 52.75C214.985 52.75 214.925 52.75 214.865 52.75C214.805 52.75 214.745 52.75 214.685 52.75C214.626 52.75 214.566 52.75 214.506 52.75C214.446 52.75 214.386 52.75 214.325 52.75C214.265 52.75 214.205 52.75 214.145 52.75C214.085 52.75 214.025 52.75 213.964 52.75C213.904 52.75 213.844 52.75 213.784 52.75C213.723 52.75 213.663 52.75 213.602 52.75C213.542 52.75 213.481 52.75 213.421 52.75C213.36 52.75 213.3 52.75 213.239 52.75C213.179 52.75 213.118 52.75 213.057 52.75C212.997 52.75 212.936 52.75 212.875 52.75C212.814 52.75 212.753 52.75 212.693 52.75C212.632 52.75 212.571 52.75 212.51 52.75C212.449 52.75 212.388 52.75 212.327 52.75C212.266 52.75 212.205 52.75 212.144 52.75C212.083 52.75 212.022 52.75 211.961 52.75C211.899 52.75 211.838 52.75 211.777 52.75C211.716 52.75 211.655 52.75 211.593 52.75C211.532 52.75 211.471 52.75 211.409 52.75C211.348 52.75 211.287 52.75 211.225 52.75C211.164 52.75 211.102 52.75 211.041 52.75C210.979 52.75 210.918 52.75 210.856 52.75C210.795 52.75 210.733 52.75 210.671 52.75C210.61 52.75 210.548 52.75 210.487 52.75C210.425 52.75 210.363 52.75 210.301 52.75C210.24 52.75 210.178 52.75 210.116 52.75C210.054 52.75 209.993 52.75 209.931 52.75C209.869 52.75 209.807 52.75 209.745 52.75C209.683 52.75 209.621 52.75 209.559 52.75C209.497 52.75 209.435 52.75 209.373 52.75C209.311 52.75 209.249 52.75 209.187 52.75C209.125 52.75 209.063 52.75 209.001 52.75C208.939 52.75 208.877 52.75 208.815 52.75C208.753 52.75 208.691 52.75 208.628 52.75C208.566 52.75 208.504 52.75 208.442 52.75C208.379 52.75 208.317 52.75 208.255 52.75C208.193 52.75 208.13 52.75 208.068 52.75C208.006 52.75 207.943 52.75 207.881 52.75C207.819 52.75 207.756 52.75 207.694 52.75C207.632 52.75 207.569 52.75 207.507 52.75C207.444 52.75 207.382 52.75 207.32 52.75C207.257 52.75 207.195 52.75 207.132 52.75C207.07 52.75 207.007 52.75 206.945 52.75C206.882 52.75 206.82 52.75 206.757 52.75C206.695 52.75 206.632 52.75 206.569 52.75C206.507 52.75 206.444 52.75 206.382 52.75C206.319 52.75 206.257 52.75 206.194 52.75C206.131 52.75 206.069 52.75 206.006 52.75C205.943 52.75 205.881 52.75 205.818 52.75C205.755 52.75 205.693 52.75 205.63 52.75C205.567 52.75 205.505 52.75 205.442 52.75C205.379 52.75 205.317 52.75 205.254 52.75C205.191 52.75 205.128 52.75 205.066 52.75C205.003 52.75 204.94 52.75 204.878 52.75C204.815 52.75 204.752 52.75 204.689 52.75C204.627 52.75 204.564 52.75 204.501 52.75C204.438 52.75 204.376 52.75 204.313 52.75C204.25 52.75 204.187 52.75 204.124 52.75C204.062 52.75 203.999 52.75 203.936 52.75C203.873 52.75 203.811 52.75 203.748 52.75C203.685 52.75 203.622 52.75 203.559 52.75C203.497 52.75 203.434 52.75 203.371 52.75C203.308 52.75 203.246 52.75 203.183 52.75C203.12 52.75 203.057 52.75 202.994 52.75C202.932 52.75 202.869 52.75 202.806 52.75C202.743 52.75 202.68 52.75 202.618 52.75C202.555 52.75 202.492 52.75 202.429 52.75C202.367 52.75 202.304 52.75 202.241 52.75C202.178 52.75 202.116 52.75 202.053 52.75C201.99 52.75 201.927 52.75 201.865 52.75C201.802 52.75 201.739 52.75 201.677 52.75C201.614 52.75 201.551 52.75 201.488 52.75C201.426 52.75 201.363 52.75 201.3 52.75C201.238 52.75 201.175 52.75 201.112 52.75C201.05 52.75 200.987 52.75 200.924 52.75C200.862 52.75 200.799 52.75 200.736 52.75C200.674 52.75 200.611 52.75 200.549 52.75C200.486 52.75 200.423 52.75 200.361 52.75C200.298 52.75 200.236 52.75 200.173 52.75C200.111 52.75 200.048 52.75 199.985 52.75C199.923 52.75 199.86 52.75 199.798 52.75C199.735 52.75 199.673 52.75 199.61 52.75C199.548 52.75 199.486 52.75 199.423 52.75C199.361 52.75 199.298 52.75 199.23
15436 52.75C199.174 52.75 199.111 52.75 199.049 52.75C198.986 52.75 198.924 52.75 198.862 52.75C198.799 52.75 198.737 52.75 198.675 52.75C198.613 52.75 198.55 52.75 198.488 52.75C198.426 52.75 198.364 52.75 198.301 52.75C198.239 52.75 198.177 52.75 198.115 52.75C198.053 52.75 197.991 52.75 197.928 52.75C197.866 52.75 197.804 52.75 197.742 52.75C197.68 52.75 197.618 52.75 197.556 52.75C197.494 52.75 197.432 52.75 197.37 52.75C197.308 52.75 197.246 52.75 197.184 52.75C197.122 52.75 197.06 52.75 196.998 52.75C196.937 52.75 196.875 52.75 196.813 52.75C196.751 52.75 196.689 52.75 196.628 52.75C196.566 52.75 196.504 52.75 196.442 52.75C196.381 52.75 196.319 52.75 196.257 52.75C196.196 52.75 196.134 52.75 196.073 52.75C196.011 52.75 195.949 52.75 195.888 52.75C195.826 52.75 195.765 52.75 195.704 52.75C195.642 52.75 195.581 52.75 195.519 52.75C195.458 52.75 195.397 52.75 195.335 52.75C195.274 52.75 195.213 52.75 195.151 52.75C195.09 52.75 195.029 52.75 194.968 52.75C194.907 52.75 194.845 52.75 194.784 52.75C194.723 52.75 194.662 52.75 194.601 52.75C194.54 52.75 194.479 52.75 194.418 52.75C194.357 52.75 194.296 52.75 194.235 52.75C194.174 52.75 194.114 52.75 194.053 52.75C193.992 52.75 193.931 52.75 193.87 52.75C193.81 52.75 193.749 52.75 193.688 52.75C193.628 52.75 193.567 52.75 193.507 52.75C193.446 52.75 193.385 52.75 193.325 52.75C193.265 52.75 193.204 52.75 193.144 52.75C193.083 52.75 193.023 52.75 192.963 52.75C192.902 52.75 192.842 52.75 192.782 52.75C192.722 52.75 192.661 52.75 192.601 52.75C192.541 52.75 192.481 52.75 192.421 52.75C192.361 52.75 192.301 52.75 192.241 52.75C192.181 52.75 192.121 52.75 192.061 52.75C192.002 52.75 191.942 52.75 191.882 52.75C191.822 52.75 191.763 52.75 191.703 52.75C191.643 52.75 191.584 52.75 191.524 52.75C191.465 52.75 191.405 52.75 191.346 52.75C191.286 52.75 191.227 52.75 191.167 52.75C191.108 52.75 191.049 52.75 190.989 52.75C190.93 52.75 190.871 52.75 190.812 52.75C190.753 52.75 190.694 52.75 190.635 52.75C190.576 52.75 190.517 52.75 190.458 52.75C190.399 52.75 190.34 52.75 190.281 52.75C190.222 52.75 190.164 52.75 190.105 52.75C190.046 52.75 189.988 52.75 189.929 52.75C189.87 52.75 189.812 52.75 189.753 52.75C189.695 52.75 189.637 52.75 189.578 52.75C189.52 52.75 189.462 52.75 189.403 52.75C189.345 52.75 189.287 52.75 189.229 52.75C189.171 52.75 189.113 52.75 189.055 52.75C188.997 52.75 188.939 52.75 188.881 52.75C188.823 52.75 188.765 52.75 188.707 52.75C188.65 52.75 188.592 52.75 188.534 52.75C188.477 52.75 188.419 52.75 188.362 52.75C188.304 52.75 188.247 52.75 188.189 52.75C188.132 52.75 188.075 52.75 188.018 52.75C187.96 52.75 187.903 52.75 187.846 52.75C187.789 52.75 187.732 52.75 187.675 52.75C187.618 52.75 187.561 52.75 187.504 52.75C187.447 52.75 187.391 52.75 187.334 52.75C187.277 52.75 187.221 52.75 187.164 52.75C187.108 52.75 187.051 52.75 186.995 52.75C186.938 52.75 186.882 52.75 186.826 52.75C186.769 52.75 186.713 52.75 186.657 52.75C186.601 52.75 186.545 52.75 186.489 52.75C186.433 52.75 186.377 52.75 186.321 52.75C186.265 52.75 186.21 52.75 186.154 52.75C186.098 52.75 186.043 52.75 185.987 52.75C185.932 52.75 185.876 52.75 185.821 52.75C185.765 52.75 185.71 52.75 185.655 52.75C185.6 52.75 185.545 52.75 185.489 52.75C185.434 52.75 185.379 52.75 185.324 52.75C185.27 52.75 185.215 52.75 185.16 52.75C185.105 52.75 185.05 52.75 184.996 52.75C184.941 52.75 184.887 52.75 184.832 52.75C184.778 52.75 184.724 52.75 184.669 52.75C184.615 52.75 184.561 52.75 184.507 52.75C184.453 52.75 184.399 52.75 184.345 52.75C184.291 52.75 184.237 52.75 184.183 52.75C184.129 52.75 184.076 52.75 184.022 52.75C183.968 52.75 183.915 52.75 183.861 52.75C183.808 52.75 183.755 52.75 183.701 52.75C183.648 52.75 183.595 52.75 183.542 52.75C183.489 52.75 183.436 52.75 183.383 52.75C183.33 52.75 183.277 52.75 183.224 52.75C183.171 52.75 183.119 52.75 183.066 52.75C183.014 52.75 182.961 52.75 182.909 52.75C182.856 52.75 182.804 52.75 182.752 52.75C182.7 52.75 182.648 52.75 182.596 52.75C182.544 52.75 182.492 52.75 182.44 52.75C182.388 52.75 182.336 52.75 182.284 52.75C182.233 52.75 182.181 52.75 182.13 52.75C182.078 52.75 182.027 52.75 181.976 52.75C181.924 52.75 181.873 52.75 181.822 52.75C181.771 52.75 181.72 52.75 181.669 52.75C181.618 52.75 181.567 52.75 181.517 52.75C181.466 52.75 181.415 52.75 181.365 52.75C181.314 52.75 181.264 52.75 181.214 52.75C181.163 52.75 181.113 52.75 181.063 52.75C181.013 52.75 180.9
154363 52.75 180.913 52.75C180.863 52.75 180.813 52.75 180.764 52.75C180.714 52.75 180.664 52.75 180.615 52.75C180.565 52.75 180.516 52.75 180.467 52.75C180.417 52.75 180.368 52.75 180.319 52.75C180.27 52.75 180.221 52.75 180.172 52.75C180.123 52.75 180.074 52.75 180.026 52.75C179.977 52.75 179.928 52.75 179.88 52.75C179.832 52.75 179.783 52.75 179.735 52.75C179.687 52.75 179.639 52.75 179.59 52.75C179.542 52.75 179.495 52.75 179.447 52.75C179.399 52.75 179.351 52.75 179.304 52.75C179.256 52.75 179.208 52.75 179.161 52.75C179.114 52.75 179.066 52.75 179.019 52.75C178.972 52.75 178.925 52.75 178.878 52.75C178.831 52.75 178.784 52.75 178.738 52.75C178.691 52.75 178.644 52.75 178.598 52.75C178.551 52.75 178.505 52.75 178.459 52.75C178.412 52.75 178.366 52.75 178.32 52.75C178.274 52.75 178.228 52.75 178.182 52.75C178.136 52.75 178.091 52.75 178.045 52.75C178 52.75 177.954 52.75 177.909 52.75C177.863 52.75 177.818 52.75 177.773 52.75C177.728 52.75 177.683 52.75 177.638 52.75C177.593 52.75 177.548 52.75 177.504 52.75C177.459 52.75 177.415 52.75 177.37 52.75C177.326 52.75 177.282 52.75 177.237 52.75C177.193 52.75 177.149 52.75 177.105 52.75C177.061 52.75 177.018 52.75 176.974 52.75C176.93 52.75 176.887 52.75 176.843 52.75C176.8 52.75 176.757 52.75 176.713 52.75C176.67 52.75 176.627 52.75 176.584 52.75C176.541 52.75 176.498 52.75 176.456 52.75C176.413 52.75 176.37 52.75 176.328 52.75C176.286 52.75 176.243 52.75 176.201 52.75C176.159 52.75 176.117 52.75 176.075 52.75C176.033 52.75 175.991 52.75 175.95 52.75C175.908 52.75 175.866 52.75 175.825 52.75C175.784 52.75 175.742 52.75 175.701 52.75C175.66 52.75 175.619 52.75 175.578 52.75C175.537 52.75 175.496 52.75 175.456 52.75C175.415 52.75 175.375 52.75 175.334 52.75C175.294 52.75 175.254 52.75 175.214 52.75C175.173 52.75 175.134 52.75 175.094 52.75C175.054 52.75 175.014 52.75 174.975 52.75C174.935 52.75 174.896 52.75 174.856 52.75C174.817 52.75 174.778 52.75 174.739 52.75C174.7 52.75 174.661 52.75 174.622 52.75C174.583 52.75 174.545 52.75 174.506 52.75C174.468 52.75 174.43 52.75 174.391 52.75C174.353 52.75 174.315 52.75 174.277 52.75C174.239 52.75 174.201 52.75 174.164 52.75C174.126 52.75 174.089 52.75 174.051 52.75C174.014 52.75 173.977 52.75 173.94 52.75C173.903 52.75 173.866 52.75 173.829 52.75C173.792 52.75 173.756 52.75 173.719 52.75C173.683 52.75 173.646 52.75 173.61 52.75C173.574 52.75 173.538 52.75 173.502 52.75C173.466 52.75 173.43 52.75 173.394 52.75C173.359 52.75 173.323 52.75 173.288 52.75C173.253 52.75 173.217 52.75 173.182 52.75C173.147 52.75 173.112 52.75 173.078 52.75C173.043 52.75 173.008 52.75 172.974 52.75C172.939 52.75 172.905 52.75 172.871 52.75C172.837 52.75 172.803 52.75 172.769 52.75C172.735 52.75 172.701 52.75 172.668 52.75C172.634 52.75 172.601 52.75 172.568 52.75C172.534 52.75 172.501 52.75 172.468 52.75C172.435 52.75 172.402 52.75 172.37 52.75C172.337 52.75 172.305 52.75 172.272 52.75C172.24 52.75 172.208 52.75 172.176 52.75C172.144 52.75 172.112 52.75 172.08 52.75C172.049 52.75 172.017 52.75 171.986 52.75C171.954 52.75 171.923 52.75 171.892 52.75C171.861 52.75 171.83 52.75 171.799 52.75C171.768 52.75 171.738 52.75 171.707 52.75C171.677 52.75 171.646 52.75 171.616 52.75C171.586 52.75 171.556 52.75 171.526 52.75C171.497 52.75 171.467 52.75 171.437 52.75C171.408 52.75 171.379 52.75 171.349 52.75C171.32 52.75 171.291 52.75 171.262 52.75C171.234 52.75 171.205 52.75 171.176 52.75C171.148 52.75 171.12 52.75 171.091 52.75C171.063 52.75 171.035 52.75 171.007 52.75C170.979 52.75 170.952 52.75 170.924 52.75C170.897 52.75 170.869 52.75 170.842 52.75C170.815 52.75 170.788 52.75 170.761 52.75C170.734 52.75 170.708 52.75 170.681 52.75C170.654 52.75 170.628 52.75 170.602 52.75C170.576 52.75 170.55 52.75 170.524 52.75C170.498 52.75 170.472 52.75 170.447 52.75C170.421 52.75 170.396 52.75 170.371 52.75C170.346 52.75 170.321 52.75 170.296 52.75C170.271 52.75 170.246 52.75 170.222 52.75C170.198 52.75 170.173 52.75 170.149 52.75C170.125 52.75 170.101 52.75 170.077 52.75C170.053 52.75 170.03 52.75 170.006 52.75C169.983 52.75 169.96 52.75 169.937 52.75C169.914 52.75 169.891 52.75 169.868 52.75C169.845 52.75 169.823 52.75 169.8 52.75C169.778 52.75 169.756 52.75 169.734 52.75C169.712 52.75 169.69 52.75 169.668 52.75C169.647 52.75 169.625 52.75 169.604 52.75C169.583 52.75 169.561 52.75 169.541 52.75C169.52 52.75 169.499 52.75 169.478 52.75C169.458 52.75 169.437 52.75 169.417 52.75C169.397 52.75 169.377 52.75 169.357 52.75C169.337 52.75 169.318 52.75 169.298 52.75C169.279 52.75 169.259 52.75 169.24 52.75C169.221 52.75 169.202 52.75 169.183 52.75C169.165 52.75 169.146 52.75 169.128 52.75C169.109 52.75 169.091 52.75 169.073 52.75C169.055 52.75 169.038 52.75 169.02 52.75C169.002 52.75 168.985 52.75 168.968 52.75C168.95 52.75 168.933 52.75 168.917 52.75C168.9 52.75 168.883 52.75 168.867 52.75C168.85 52.75 168.834 52.75 168.818 52.75C168.802 52.75 168.786 52.75 168.77 52.75C168.754 52.75 168.739 52.75 168.723 52.75C168.708 52.75 168.693 52.75 168.678 52.75C168.663 52.75 168.648 52.75 168.634 52.75C168.619 52.75 168.605 52.75 168.591 52.75C168.577 52.75 168.563 52.75 168.549 52.75C168.535 52.75 168.521 52.75 168.508 52.75C168.495 52.75 168.481 52.75 168.469 52.75C168.456 52.75 168.443 52.75 168.43 52.75C168.418 52.75 168.405 52.75 168.393 52.75C168.381 52.75 168.369 52.75 168.35
15437 52.75C168.345 52.75 168.334 52.75 168.322 52.75C168.311 52.75 168.3 52.75 168.289 52.75C168.278 52.75 168.267 52.75 168.256 52.75C168.246 52.75 168.235 52.75 168.225 52.75C168.215 52.75 168.205 52.75 168.195 52.75C168.185 52.75 168.176 52.75 168.166 52.75C168.157 52.75 168.148 52.75 168.139 52.75C168.13 52.75 168.121 52.75 168.113 52.75C168.104 52.75 168.096 52.75 168.088 52.75C168.08 52.75 168.072 52.75 168.064 52.75C168.056 52.75 168.049 52.75 168.041 52.75C168.034 52.75 168.027 52.75 168.02 52.75C168.013 52.75 168.006 52.75 168 52.75V51.25Z",fill:"url(#paint4_linear_38_7016)"}),(0,v.jsx)("path",{d:"M258.724 115.263V114.091H266.906V115.263H263.476V125H262.155V115.263H258.724ZM270.912 125.17C270.173 125.17 269.525 124.995 268.968 124.643C268.414 124.292 267.98 123.8 267.668 123.168C267.359 122.536 267.205 121.797 267.205 120.952C267.205 120.099 267.359 119.355 267.668 118.72C267.98 118.084 268.414 117.591 268.968 117.239C269.525 116.887 270.173 116.712 270.912 116.712C271.651 116.712 272.297 116.887 272.851 117.239C273.408 117.591 273.842 118.084 274.151 118.72C274.463 119.355 274.619 120.099 274.619 120.952C274.619 121.797 274.463 122.536 274.151 123.168C273.842 123.8 273.408 124.292 272.851 124.643C272.297 124.995 271.651 125.17 270.912 125.17ZM270.912 124.041C271.473 124.041 271.935 123.897 272.297 123.61C272.659 123.322 272.927 122.944 273.101 122.475C273.275 122.006 273.362 121.499 273.362 120.952C273.362 120.405 273.275 119.895 273.101 119.423C272.927 118.951 272.659 118.569 272.297 118.278C271.935 117.987 271.473 117.841 270.912 117.841C270.351 117.841 269.889 117.987 269.527 118.278C269.165 118.569 268.897 118.951 268.723 119.423C268.549 119.895 268.462 120.405 268.462 120.952C268.462 121.499 268.549 122.006 268.723 122.475C268.897 122.944 269.165 123.322 269.527 123.61C269.889 123.897 270.351 124.041 270.912 124.041ZM279.628 125.17C278.946 125.17 278.344 124.998 277.822 124.654C277.3 124.306 276.892 123.816 276.597 123.184C276.302 122.548 276.155 121.797 276.155 120.93C276.155 120.071 276.302 119.325 276.597 118.693C276.892 118.061 277.302 117.573 277.827 117.228C278.353 116.884 278.96 116.712 279.649 116.712C280.182 116.712 280.603 116.8 280.911 116.978C281.224 117.152 281.462 117.351 281.625 117.575C281.792 117.795 281.922 117.976 282.014 118.118H282.121V114.091H283.378V125H282.163V123.743H282.014C281.922 123.892 281.79 124.08 281.62 124.308C281.449 124.531 281.206 124.732 280.89 124.909C280.574 125.083 280.153 125.17 279.628 125.17ZM279.798 124.041C280.302 124.041 280.729 123.91 281.077 123.647C281.425 123.381 281.689 123.013 281.87 122.544C282.051 122.072 282.142 121.527 282.142 120.909C282.142 120.298 282.053 119.764 281.876 119.306C281.698 118.844 281.435 118.485 281.087 118.23C280.739 117.971 280.31 117.841 279.798 117.841C279.266 117.841 278.822 117.978 278.467 118.251C278.115 118.521 277.85 118.888 277.673 119.354C277.499 119.815 277.412 120.334 277.412 120.909C277.412 121.491 277.501 122.021 277.678 122.496C277.859 122.969 278.126 123.345 278.477 123.626C278.832 123.903 279.273 124.041 279.798 124.041ZM288.262 125.192C287.744 125.192 287.273 125.094 286.851 124.899C286.428 124.7 286.093 124.414 285.844 124.041C285.595 123.665 285.471 123.21 285.471 122.678C285.471 122.209 285.563 121.829 285.748 121.538C285.933 121.243 286.18 121.012 286.489 120.845C286.797 120.678 287.138 120.554 287.511 120.472C287.888 120.387 288.266 120.32 288.646 120.27C289.143 120.206 289.546 120.158 289.855 120.126C290.168 120.091 290.395 120.032 290.537 119.95C290.682 119.869 290.755 119.727 290.755 119.524V119.482C290.755 118.956 290.611 118.548 290.324 118.256C290.04 117.965 289.608 117.82 289.029 117.82C288.429 117.82 287.959 117.951 287.618 118.214C287.277 118.477 287.037 118.757 286.899 119.055L285.706 118.629C285.919 118.132 286.203 117.745 286.558 117.468C286.916 117.187 287.307 116.992 287.73 116.882C288.156 116.768 288.575 116.712 288.987 116.712C289.25 116.712 289.551 116.744 289.892 116.808C290.237 116.868 290.569 116.994 290.888 117.186C291.212 117.377 291.48 117.667 291.693 118.054C291.906 118.441 292.012 118.96 292.012 119.609V125H290.755V123.892H290.691C290.606 124.07 290.464 124.26 290.265 124.462C290.066 124.664 289.802 124.837 289.472 124.979C289.141 125.121 288.738 125.192 288.262 125.192ZM288.454 124.062C288.951 124.062 289.37 123.965 289.711 123.77C290.056 123.574 290.315 123.322 290.489 123.013C290.666 122.704 290.755 122.379 290.755 122.038V120.888C290.702 120.952 290.585 121.01 290.404 121.064C290.226 121.113 290.02 121.158 289.786 121.197C289.555 121.232 289.329 121.264 289.109 121.293C288.893 121.317 288.717 121.339 288.582 121.357C288.255 121.399 287.95 121.468 287.666 121.564C287.385 121.657 287.158 121.797 286.984 121.985C286.813 122.17 286.728 122.422 286.728 122.741C286.728 123.178 28
15436.89 123.509 287.213 123.732C287.54 123.952 287.953 124.062 288.454 124.062ZM294.824 128.068C294.61 128.068 294.42 128.05 294.254 128.015C294.087 127.983 293.971 127.951 293.907 127.919L294.227 126.811C294.532 126.889 294.802 126.918 295.037 126.896C295.271 126.875 295.479 126.77 295.66 126.582C295.844 126.397 296.013 126.097 296.166 125.682L296.4 125.043L293.375 116.818H294.738L296.997 123.338H297.082L299.341 116.818H300.704L297.231 126.193C297.075 126.616 296.881 126.966 296.651 127.243C296.42 127.523 296.152 127.731 295.846 127.866C295.544 128.001 295.203 128.068 294.824 128.068ZM303.726 123.509L303.641 124.084C303.58 124.489 303.488 124.922 303.364 125.384C303.243 125.845 303.117 126.28 302.985 126.689C302.854 127.097 302.746 127.422 302.66 127.663H301.702C301.748 127.436 301.808 127.136 301.883 126.763C301.957 126.39 302.032 125.973 302.106 125.511C302.185 125.053 302.248 124.585 302.298 124.105L302.362 123.509H303.726ZM312.127 125L309.634 116.818H310.955L312.724 123.082H312.809L314.556 116.818H315.899L317.624 123.061H317.71L319.478 116.818H320.799L318.306 125H317.07L315.281 118.714H315.153L313.363 125H312.127ZM325.613 125.17C324.825 125.17 324.145 124.996 323.573 124.648C323.005 124.297 322.566 123.807 322.257 123.178C321.952 122.546 321.799 121.811 321.799 120.973C321.799 120.135 321.952 119.396 322.257 118.757C322.566 118.114 322.996 117.614 323.546 117.255C324.1 116.893 324.747 116.712 325.485 116.712C325.911 116.712 326.332 116.783 326.748 116.925C327.163 117.067 327.541 117.298 327.882 117.617C328.223 117.933 328.495 118.352 328.697 118.874C328.9 119.396 329.001 120.039 329.001 120.803V121.335H322.694V120.249H327.723C327.723 119.787 327.63 119.375 327.446 119.013C327.264 118.651 327.005 118.365 326.668 118.155C326.334 117.946 325.94 117.841 325.485 117.841C324.985 117.841 324.551 117.965 324.186 118.214C323.823 118.459 323.545 118.778 323.349 119.173C323.154 119.567 323.056 119.989 323.056 120.44V121.165C323.056 121.783 323.163 122.306 323.376 122.736C323.593 123.162 323.893 123.487 324.276 123.711C324.66 123.931 325.105 124.041 325.613 124.041C325.943 124.041 326.242 123.995 326.508 123.903C326.778 123.807 327.011 123.665 327.206 123.477C327.401 123.285 327.552 123.047 327.659 122.763L328.873 123.104C328.745 123.516 328.53 123.878 328.229 124.19C327.927 124.499 327.554 124.741 327.11 124.915C326.666 125.085 326.167 125.17 325.613 125.17ZM332.021 114.091V115.05C332.021 115.341 331.968 115.652 331.861 115.982C331.758 116.309 331.606 116.626 331.403 116.935C331.204 117.241 330.963 117.507 330.679 117.734L329.997 117.18C330.221 116.861 330.414 116.529 330.578 116.184C330.745 115.836 330.828 115.465 330.828 115.071V114.091H332.021ZM333.36 125V116.818H334.574V118.054H334.659C334.808 117.649 335.078 117.321 335.469 117.069C335.86 116.816 336.3 116.69 336.79 116.69C336.882 116.69 336.998 116.692 337.136 116.696C337.275 116.699 337.379 116.705 337.45 116.712V117.99C337.408 117.979 337.31 117.963 337.157 117.942C337.008 117.917 336.85 117.905 336.683 117.905C336.286 117.905 335.931 117.988 335.618 118.155C335.309 118.319 335.064 118.546 334.883 118.837C334.705 119.125 334.617 119.453 334.617 119.822V125H333.36ZM342.122 125.17C341.334 125.17 340.654 124.996 340.082 124.648C339.514 124.297 339.075 123.807 338.766 123.178C338.461 122.546 338.308 121.811 338.308 120.973C338.308 120.135 338.461 119.396 338.766 118.757C339.075 118.114 339.505 117.614 340.055 117.255C340.609 116.893 341.256 116.712 341.994 116.712C342.42 116.712 342.841 116.783 343.257 116.925C343.672 117.067 344.05 117.298 344.391 117.617C344.732 117.933 345.004 118.352 345.206 118.874C345.409 119.396 345.51 120.039 345.51 120.803V121.335H339.203V120.249H344.231C344.231 119.787 344.139 119.375 343.954 119.013C343.773 118.651 343.514 118.365 343.177 118.155C342.843 117.946 342.449 117.841 341.994 117.841C341.493 117.841 341.06 117.965 340.694 118.214C340.332 118.459 340.053 118.778 339.858 119.173C339.663 119.567 339.565 119.989 339.565 120.44V121.165C339.565 121.783 339.672 122.306 339.885 122.736C340.101 123.162 340.401 123.487 340.785 123.711C341.169 123.931 341.614 124.041 342.122 124.041C342.452 124.041 342.751 123.995 343.017 123.903C343.287 123.807 343.519 123.665 343.715 123.477C343.91 123.285 344.061 123.047 344.167 122.763L345.382 123.104C345.254 123.516 345.039 123.878 344.737 124.19C344.436 124.499 344.063 124.741 343.619 124.915C343.175 125.085 342.676 125.17 342.122 125.17ZM354.048 125.192C353.53 125.192 353.059 125.094 352.637 124.899C352.214 124.7 351.879 124.414 351.63 124.041C351.382 123.665 351.257 123.21 351.257 122.678C351.257 122.209 351.35 121.829 351.534 121.538C351.719 121.243 351.966 121.012 352.275 120.845C352.584 120.678 352.925 120.554 353.297 120.472C353.674 120.387 354.052 120.32 354.432 120.27C354.929 120.206 355.332 120.158 355.641 120.126C355.954 120.091 356.181 120.032 356.323 119.95C356.469 119.869 356.54
15431 119.727 356.541 119.524V119.482C356.541 118.956 356.398 118.548 356.11 118.256C355.826 117.965 355.394 117.82 354.816 117.82C354.215 117.82 353.745 117.951 353.404 118.214C353.063 118.477 352.823 118.757 352.685 119.055L351.492 118.629C351.705 118.132 351.989 117.745 352.344 117.468C352.703 117.187 353.093 116.992 353.516 116.882C353.942 116.768 354.361 116.712 354.773 116.712C355.036 116.712 355.338 116.744 355.678 116.808C356.023 116.868 356.355 116.994 356.675 117.186C356.998 117.377 357.266 117.667 357.479 118.054C357.692 118.441 357.798 118.96 357.798 119.609V125H356.541V123.892H356.477C356.392 124.07 356.25 124.26 356.051 124.462C355.852 124.664 355.588 124.837 355.258 124.979C354.927 125.121 354.524 125.192 354.048 125.192ZM354.24 124.062C354.737 124.062 355.156 123.965 355.497 123.77C355.842 123.574 356.101 123.322 356.275 123.013C356.453 122.704 356.541 122.379 356.541 122.038V120.888C356.488 120.952 356.371 121.01 356.19 121.064C356.012 121.113 355.806 121.158 355.572 121.197C355.341 121.232 355.116 121.264 354.895 121.293C354.679 121.317 354.503 121.339 354.368 121.357C354.041 121.399 353.736 121.468 353.452 121.564C353.171 121.657 352.944 121.797 352.77 121.985C352.6 122.17 352.514 122.422 352.514 122.741C352.514 123.178 352.676 123.509 352.999 123.732C353.326 123.952 353.74 124.062 354.24 124.062ZM361.35 120.078V125H360.093V116.818H361.307V118.097H361.414C361.606 117.681 361.897 117.347 362.288 117.095C362.678 116.839 363.182 116.712 363.8 116.712C364.354 116.712 364.839 116.825 365.255 117.053C365.67 117.276 365.993 117.617 366.224 118.075C366.455 118.53 366.57 119.105 366.57 119.801V125H365.313V119.886C365.313 119.244 365.146 118.743 364.812 118.384C364.479 118.022 364.021 117.841 363.438 117.841C363.037 117.841 362.678 117.928 362.362 118.102C362.05 118.276 361.803 118.53 361.622 118.864C361.441 119.197 361.35 119.602 361.35 120.078ZM262.453 151.239C261.846 151.239 261.324 151.161 260.887 151.004C260.45 150.852 260.086 150.649 259.795 150.397C259.507 150.148 259.278 149.882 259.108 149.598L260.109 148.895C260.223 149.044 260.367 149.214 260.541 149.406C260.715 149.602 260.953 149.77 261.255 149.912C261.56 150.058 261.96 150.131 262.453 150.131C263.114 150.131 263.659 149.971 264.088 149.651C264.518 149.332 264.733 148.831 264.733 148.149V146.487H264.626C264.534 146.636 264.403 146.821 264.232 147.041C264.065 147.258 263.824 147.451 263.508 147.622C263.195 147.789 262.773 147.872 262.24 147.872C261.58 147.872 260.987 147.716 260.461 147.403C259.939 147.091 259.525 146.636 259.22 146.04C258.918 145.443 258.767 144.719 258.767 143.866C258.767 143.028 258.914 142.299 259.209 141.677C259.504 141.052 259.914 140.569 260.44 140.228C260.965 139.884 261.572 139.712 262.261 139.712C262.794 139.712 263.217 139.8 263.529 139.978C263.845 140.152 264.087 140.351 264.254 140.575C264.424 140.795 264.555 140.976 264.648 141.118H264.776V139.818H265.99V148.234C265.99 148.938 265.83 149.509 265.511 149.95C265.195 150.393 264.768 150.718 264.232 150.924C263.7 151.134 263.107 151.239 262.453 151.239ZM262.411 146.743C262.915 146.743 263.341 146.627 263.689 146.397C264.037 146.166 264.301 145.834 264.483 145.401C264.664 144.967 264.754 144.449 264.754 143.845C264.754 143.256 264.665 142.735 264.488 142.284C264.31 141.833 264.048 141.48 263.7 141.224C263.352 140.969 262.922 140.841 262.411 140.841C261.878 140.841 261.434 140.976 261.079 141.246C260.727 141.516 260.463 141.878 260.285 142.332C260.111 142.787 260.024 143.291 260.024 143.845C260.024 144.413 260.113 144.916 260.29 145.353C260.472 145.786 260.738 146.127 261.089 146.375C261.445 146.62 261.885 146.743 262.411 146.743ZM268.291 148V139.818H269.548V148H268.291ZM268.93 138.455C268.685 138.455 268.474 138.371 268.297 138.204C268.123 138.037 268.036 137.837 268.036 137.602C268.036 137.368 268.123 137.167 268.297 137C268.474 136.833 268.685 136.75 268.93 136.75C269.175 136.75 269.385 136.833 269.559 137C269.737 137.167 269.825 137.368 269.825 137.602C269.825 137.837 269.737 138.037 269.559 138.204C269.385 138.371 269.175 138.455 268.93 138.455ZM278.541 139.818L275.516 148H274.237L271.212 139.818H272.575L274.834 146.338H274.919L277.177 139.818H278.541ZM280.2 148V139.818H281.457V148H280.2ZM280.84 138.455C280.595 138.455 280.383 138.371 280.206 138.204C280.032 138.037 279.945 137.837 279.945 137.602C279.945 137.368 280.032 137.167 280.206 137C280.383 136.833 280.595 136.75 280.84 136.75C281.085 136.75 281.294 136.833 281.468 137C281.646 137.167 281.734 137.368 281.734 137.602C281.734 137.837 281.646 138.037 281.468 138.204C281.294 138.371 281.085 138.455 280.84 138.455ZM285.017 143.078V148H283.76V139.818H284.974V141.097H285.081C285.273 140.681 285.564 140.347 285.955 140.095C286.345 139.839 286.849 139.712 287.467 139.712C288.021 139.712 288.506 139.825 288.922 140.053C289.337 140.276 289.66 140.617 289.891 141.075C290.122 141.53 290.237 142.105 290.237 142.801V148H288.98V142.886C288.98 142.244 288.813 141.743 288.479 141.384C288.146 141.022 287.688 140.841 287.105 140.841C286.704 140.841 286.345 140.928 286.029 141.102C285.717 141.276 285.47 141.53 285.289 141.864C285.108 142.197 285.017 142.602 285.017 143.078ZM295.837 151.239C295.23 151.239 294.708 151.161 294.271 151.004C293.834 150.852 293.47 150.649 293.179 150.397C292.891 150.148 292.662 149.882 292.492 149.598L293.493 148.895C293.607 149.044 293.751 149.214 293.925 149.406C294.099 149.602 294.337 149.77 294.638 149.912C294.944 150.058 295.343 150.131 295.837 150.131C296.497 150.131 297.043 149.971 297.472 149.651C297.902 149.332 298.117 148.831 298.117 148.149V146.487H298.01C297.918 146.636 297.786 146.821 297.616 147.041C297.449 147.258 297.208 147.451 296.892 147.622C296.579 147.789 296.157 147.872 295.624 147.872C294.963 147.872 294.37 147.716 293.845 147.403C293.323 147.091 292.909 146.636 292.604 146.04C292.302 145.443 292.151 144.719 292.151 143.866C292.151 143.028 292.298 142.299 292.593 141.677C292.888 141.052 293.298 140.569 293.823 140.228C294.349 139.884 294.956 139.712 295.645 139.712C296.178 139.712 296.6 139.8 296.913 139.978C297.229 140.152 297.47 140.351 297.637 140.575C297.808 140.795 297.939 140.976 298.032 141.118H298.159V139.818H299.374V148.234C299.374 148.938 299.214 149.509 298.894 149.95C298.578 150.393 298.152 150.718 297.616 150.924C297.083 151.134 296.49 151.239 295.837 151.239ZM295.794 146.743C296.299 146.743 296.725 146.627 297.073 146.397C297.421 146.166 297.685 145.834 297.866 145.401C298.047 144.967 298.138 144.449 298.138 143.845C298.138 143.256 298.049 142.735 297.872 142.284C297.694 141.833 297.431 141.48 297.
1543083 141.224C296.735 140.969 296.306 140.841 295.794 140.841C295.262 140.841 294.818 140.976 294.463 141.246C294.111 141.516 293.847 141.878 293.669 142.332C293.495 142.787 293.408 143.291 293.408 143.845C293.408 144.413 293.497 144.916 293.674 145.353C293.855 145.786 294.122 146.127 294.473 146.375C294.828 146.62 295.269 146.743 295.794 146.743ZM309.452 139.818V140.884H305.212V139.818H309.452ZM306.448 137.858H307.705V145.656C307.705 146.011 307.756 146.278 307.859 146.455C307.966 146.629 308.101 146.746 308.264 146.807C308.431 146.864 308.607 146.892 308.791 146.892C308.93 146.892 309.044 146.885 309.132 146.871C309.221 146.853 309.292 146.839 309.345 146.828L309.601 147.957C309.516 147.989 309.397 148.021 309.244 148.053C309.092 148.089 308.898 148.107 308.664 148.107C308.309 148.107 307.96 148.03 307.62 147.877C307.282 147.725 307.002 147.492 306.778 147.18C306.558 146.867 306.448 146.473 306.448 145.997V137.858ZM312.776 143.078V148H311.519V137.091H312.776V141.097H312.882C313.074 140.674 313.362 140.338 313.745 140.09C314.132 139.838 314.647 139.712 315.29 139.712C315.848 139.712 316.336 139.824 316.755 140.047C317.174 140.267 317.499 140.607 317.73 141.065C317.964 141.519 318.081 142.098 318.081 142.801V148H316.824V142.886C316.824 142.237 316.655 141.734 316.318 141.379C315.984 141.02 315.521 140.841 314.928 140.841C314.516 140.841 314.147 140.928 313.82 141.102C313.497 141.276 313.241 141.53 313.053 141.864C312.868 142.197 312.776 142.602 312.776 143.078ZM323.811 148.17C323.023 148.17 322.343 147.996 321.771 147.648C321.203 147.297 320.765 146.807 320.456 146.178C320.15 145.546 319.998 144.811 319.998 143.973C319.998 143.135 320.15 142.396 320.456 141.757C320.765 141.114 321.194 140.614 321.745 140.255C322.299 139.893 322.945 139.712 323.684 139.712C324.11 139.712 324.531 139.783 324.946 139.925C325.362 140.067 325.74 140.298 326.081 140.617C326.422 140.933 326.693 141.352 326.896 141.874C327.098 142.396 327.199 143.039 327.199 143.803V144.335H320.892V143.249H325.921C325.921 142.787 325.828 142.375 325.644 142.013C325.463 141.651 325.203 141.365 324.866 141.155C324.532 140.946 324.138 140.841 323.684 140.841C323.183 140.841 322.75 140.965 322.384 141.214C322.022 141.459 321.743 141.778 321.548 142.173C321.352 142.567 321.255 142.989 321.255 143.44V144.165C321.255 144.783 321.361 145.306 321.574 145.736C321.791 146.162 322.091 146.487 322.474 146.711C322.858 146.931 323.304 147.041 323.811 147.041C324.142 147.041 324.44 146.995 324.706 146.903C324.976 146.807 325.209 146.665 325.404 146.477C325.599 146.285 325.75 146.047 325.857 145.763L327.071 146.104C326.944 146.516 326.729 146.878 326.427 147.19C326.125 147.499 325.752 147.741 325.308 147.915C324.864 148.085 324.365 148.17 323.811 148.17ZM262.709 162.818V163.884H258.469V162.818H262.709ZM259.705 160.858H260.962V168.656C260.962 169.011 261.013 169.278 261.116 169.455C261.223 169.629 261.358 169.746 261.521 169.807C261.688 169.864 261.864 169.892 262.048 169.892C262.187 169.892 262.3 169.885 262.389 169.871C262.478 169.853 262.549 169.839 262.602 169.828L262.858 170.957C262.773 170.989 262.654 171.021 262.501 171.053C262.348 171.089 262.155 171.107 261.92 171.107C261.565 171.107 261.217 171.03 260.876 170.877C260.539 170.725 260.259 170.492 260.035 170.18C259.815 169.867 259.705 169.473 259.705 168.997V160.858ZM264.6 171V162.818H265.814V164.054H265.9C266.049 163.649 266.319 163.321 266.709 163.069C267.1 162.816 267.54 162.69 268.03 162.69C268.123 162.69 268.238 162.692 268.376 162.696C268.515 162.699 268.62 162.705 268.691 162.712V163.99C268.648 163.979 268.55 163.963 268.398 163.942C268.249 163.917 268.091 163.905 267.924 163.905C267.526 163.905 267.171 163.988 266.858 164.155C266.549 164.319 266.304 164.546 266.123 164.837C265.946 165.125 265.857 165.453 265.857 165.822V171H264.6ZM275.337 167.655V162.818H276.594V171H275.337V169.615H275.252C275.06 170.031 274.762 170.384 274.357 170.675C273.952 170.963 273.441 171.107 272.823 171.107C272.312 171.107 271.857 170.995 271.459 170.771C271.062 170.544 270.749 170.203 270.522 169.748C270.294 169.29 270.181 168.713 270.181 168.017V162.818H271.438V167.932C271.438 168.528 271.605 169.004 271.939 169.359C272.276 169.714 272.706 169.892 273.228 169.892C273.54 169.892 273.858 169.812 274.181 169.652C274.508 169.493 274.781 169.248 275.002 168.917C275.225 168.587 275.337 168.166 275.337 167.655ZM284.692 164.651L283.563 164.97C283.492 164.782 283.387 164.599 283.249 164.422C283.114 164.24 282.929 164.091 282.695 163.974C282.46 163.857 282.16 163.798 281.794 163.798C281.294 163.798 280.876 163.914 280.543 164.145C280.212 164.372 280.047 164.661 280.047 165.013C280.047 165.325 280.161 165.572 280.388 165.753C280.615 165.934 280.971 166.085 281.453 166.206L282.668 166.504C283.4 166.682 283.945 166.953 284.303 167.319C284.662 167.681 284.841 168.148 284.841 168.72C284.841 169.189 284.706 169.608 284.436 169.977C284.17 170.347 283.797 170.638 283.318 170.851C282.838 171.064 282.281 171.17 281.645 171.17C280.811 171.17 280.12 170.989 279.573 170.627C279.026 170.265 278.68 169.736 278.534 169.04L279.728 168.741C279.841 169.182 280.056 169.512 280.372 169.732C280.692 169.952 281.109 170.062 281.624 170.062C282.21 170.062 282.675 169.938 283.02 169.69C283.368 169.437 283.542 169.136 283.542 168.784C283.542 168.5 283.442 168.262 283.243 168.07C283.044 167.875 282.739 167.729 282.327 167.634L280.963 167.314C280.214 167.136 279.664 166.861 279.312 166.488C278.964 166.112 278.79 165.641 278.79 165.077C278.79 164.615 278.92 164.207 279.179 163.852C279.442 163.496 279.799 163.218 280.25 163.015C280.704 162.813 281.219 162.712 281.794 162.712C282.604 162.712 283.24 162.889 283.701 163.244C284.167 163.599 284.497 164.068 284.692 164.651ZM290.292 162.818V163.884H286.052V162.818H290.292ZM287.288 160.858H288.545V168.656C288.545 169.011 288.596 169.278 288.699 169.455C288.806 169.629 288.941 169.746 289.104 169.807C289.271 169.864 289.447 169.892 289.631 169.892C289.77 169.892 289.883 169.885 289.972 169.871C290.061 169.853 290.132 169.839 290.185 169.828L290.441 170.957C290.356 170.989 290.237 171.021 290.084 171.053C289.931 171.089 289.738 171.107 289.503 171.107C289.148 171.107 288.8 171.03 288.459 170.877C288.122 170.725 287.842 170.492 287.618 170.18C287.398 169.867 287.288 169.473 287.288 168.997V160.858ZM294.036 171L291.544 162.8
154318H292.865L294.633 169.082H294.718L296.465 162.818H297.808L299.534 169.061H299.619L301.387 162.818H302.708L300.215 171H298.98L297.19 164.714H297.062L295.272 171H294.036ZM307.416 171.17C306.677 171.17 306.029 170.995 305.472 170.643C304.918 170.292 304.484 169.8 304.172 169.168C303.863 168.536 303.708 167.797 303.708 166.952C303.708 166.099 303.863 165.355 304.172 164.72C304.484 164.084 304.918 163.591 305.472 163.239C306.029 162.887 306.677 162.712 307.416 162.712C308.154 162.712 308.801 162.887 309.355 163.239C309.912 163.591 310.346 164.084 310.654 164.72C310.967 165.355 311.123 166.099 311.123 166.952C311.123 167.797 310.967 168.536 310.654 169.168C310.346 169.8 309.912 170.292 309.355 170.643C308.801 170.995 308.154 171.17 307.416 171.17ZM307.416 170.041C307.977 170.041 308.439 169.897 308.801 169.61C309.163 169.322 309.431 168.944 309.605 168.475C309.779 168.006 309.866 167.499 309.866 166.952C309.866 166.405 309.779 165.895 309.605 165.423C309.431 164.951 309.163 164.569 308.801 164.278C308.439 163.987 307.977 163.841 307.416 163.841C306.855 163.841 306.393 163.987 306.031 164.278C305.669 164.569 305.401 164.951 305.227 165.423C305.053 165.895 304.966 166.405 304.966 166.952C304.966 167.499 305.053 168.006 305.227 168.475C305.401 168.944 305.669 169.322 306.031 169.61C306.393 169.897 306.855 170.041 307.416 170.041ZM313.042 171V162.818H314.257V164.054H314.342C314.491 163.649 314.761 163.321 315.152 163.069C315.542 162.816 315.983 162.69 316.473 162.69C316.565 162.69 316.68 162.692 316.819 162.696C316.957 162.699 317.062 162.705 317.133 162.712V163.99C317.09 163.979 316.993 163.963 316.84 163.942C316.691 163.917 316.533 163.905 316.366 163.905C315.968 163.905 315.613 163.988 315.301 164.155C314.992 164.319 314.747 164.546 314.566 164.837C314.388 165.125 314.299 165.453 314.299 165.822V171H313.042ZM322.694 162.818V163.884H318.454V162.818H322.694ZM319.69 160.858H320.947V168.656C320.947 169.011 320.998 169.278 321.101 169.455C321.208 169.629 321.343 169.746 321.506 169.807C321.673 169.864 321.849 169.892 322.034 169.892C322.172 169.892 322.286 169.885 322.375 169.871C322.463 169.853 322.534 169.839 322.588 169.828L322.843 170.957C322.758 170.989 322.639 171.021 322.486 171.053C322.334 171.089 322.14 171.107 321.906 171.107C321.551 171.107 321.203 171.03 320.862 170.877C320.524 170.725 320.244 170.492 320.02 170.18C319.8 169.867 319.69 169.473 319.69 168.997V160.858ZM326.018 166.078V171H324.761V160.091H326.018V164.097H326.125C326.316 163.674 326.604 163.338 326.987 163.09C327.375 162.838 327.889 162.712 328.532 162.712C329.09 162.712 329.578 162.824 329.997 163.047C330.416 163.267 330.741 163.607 330.972 164.065C331.206 164.519 331.323 165.098 331.323 165.801V171H330.066V165.886C330.066 165.237 329.898 164.734 329.56 164.379C329.226 164.02 328.763 163.841 328.17 163.841C327.758 163.841 327.389 163.928 327.062 164.102C326.739 164.276 326.483 164.53 326.295 164.864C326.11 165.197 326.018 165.602 326.018 166.078ZM262.474 194.17C261.736 194.17 261.088 193.995 260.53 193.643C259.976 193.292 259.543 192.8 259.23 192.168C258.922 191.536 258.767 190.797 258.767 189.952C258.767 189.099 258.922 188.355 259.23 187.72C259.543 187.084 259.976 186.591 260.53 186.239C261.088 185.887 261.736 185.712 262.474 185.712C263.213 185.712 263.859 185.887 264.413 186.239C264.971 186.591 265.404 187.084 265.713 187.72C266.026 188.355 266.182 189.099 266.182 189.952C266.182 190.797 266.026 191.536 265.713 192.168C265.404 192.8 264.971 193.292 264.413 193.643C263.859 193.995 263.213 194.17 262.474 194.17ZM262.474 193.041C263.036 193.041 263.497 192.897 263.859 192.61C264.222 192.322 264.49 191.944 264.664 191.475C264.838 191.006 264.925 190.499 264.925 189.952C264.925 189.405 264.838 188.895 264.664 188.423C264.49 187.951 264.222 187.569 263.859 187.278C263.497 186.987 263.036 186.841 262.474 186.841C261.913 186.841 261.452 186.987 261.089 187.278C260.727 187.569 260.459 187.951 260.285 188.423C260.111 188.895 260.024 189.405 260.024 189.952C260.024 190.499 260.111 191.006 260.285 191.475C260.459 191.944 260.727 192.322 261.089 192.61C261.452 192.897 261.913 193.041 262.474 193.041ZM268.101 197.068V185.818H269.315V187.118H269.464C269.557 186.976 269.685 186.795 269.848 186.575C270.015 186.351 270.253 186.152 270.562 185.978C270.874 185.8 271.297 185.712 271.829 185.712C272.518 185.712 273.126 185.884 273.651 186.228C274.177 186.573 274.587 187.061 274.882 187.693C275.176 188.325 275.324 189.071 275.324 189.93C275.324 190.797 275.176 191.548 274.882 192.184C274.587 192.816 274.179 193.306 273.657 193.654C273.134 193.998 272.533 194.17 271.851 194.17C271.325 194.17 270.904 194.083 270.588 193.909C270.272 193.732 270.029 193.531 269.859 193.308C269.688 193.08 269.557 192.892 269.464 192.743H269.358V197.068H268.101ZM269.337 189.909C269.337 190.527 269.427 191.072 269.608 191.544C269.789 192.013 270.054 192.381 270.402 192.647C270.75 192.91 271.176 193.041 271.68 193.041C272.206 193.041 272.644 192.903 272.996 192.626C273.351 192.345 273.617 191.969 273.795 191.496C273.976 191.021 274.067 190.491 274.067 189.909C274.067 189.334 273.978 188.815 273.8 188.354C273.626 187.888 273.362 187.521 273.007 187.251C272.655 186.978 272.213 186.841 271.68 186.841C271.169 186.841 270.739 186.971 270.391 187.23C270.043 187.485 269.78 187.844 269.603 188.306C269.425 188.764 269.337 189.298 269.337 189.909ZM280.672 194.17C279.883 194.17 279.203 193.99
15436 278.632 193.648C278.063 193.297 277.625 192.807 277.316 192.178C277.011 191.546 276.858 190.811 276.858 189.973C276.858 189.135 277.011 188.396 277.316 187.757C277.625 187.114 278.055 186.614 278.605 186.255C279.159 185.893 279.805 185.712 280.544 185.712C280.97 185.712 281.391 185.783 281.806 185.925C282.222 186.067 282.6 186.298 282.941 186.617C283.282 186.933 283.554 187.352 283.756 187.874C283.958 188.396 284.06 189.039 284.06 189.803V190.335H277.753V189.249H282.781C282.781 188.787 282.689 188.375 282.504 188.013C282.323 187.651 282.064 187.365 281.726 187.155C281.393 186.946 280.998 186.841 280.544 186.841C280.043 186.841 279.61 186.965 279.244 187.214C278.882 187.459 278.603 187.778 278.408 188.173C278.213 188.567 278.115 188.989 278.115 189.44V190.165C278.115 190.783 278.222 191.306 278.435 191.736C278.651 192.162 278.951 192.487 279.335 192.711C279.718 192.931 280.164 193.041 280.672 193.041C281.002 193.041 281.3 192.995 281.567 192.903C281.837 192.807 282.069 192.665 282.264 192.477C282.46 192.285 282.611 192.047 282.717 191.763L283.932 192.104C283.804 192.516 283.589 192.878 283.287 193.19C282.985 193.499 282.612 193.741 282.169 193.915C281.725 194.085 281.226 194.17 280.672 194.17ZM285.972 194V185.818H287.186V187.054H287.272C287.421 186.649 287.691 186.321 288.081 186.069C288.472 185.816 288.912 185.69 289.402 185.69C289.495 185.69 289.61 185.692 289.748 185.696C289.887 185.699 289.992 185.705 290.063 185.712V186.99C290.02 186.979 289.922 186.963 289.77 186.942C289.621 186.917 289.463 186.905 289.296 186.905C288.898 186.905 288.543 186.988 288.23 187.155C287.921 187.319 287.676 187.546 287.495 187.837C287.318 188.125 287.229 188.453 287.229 188.822V194H285.972ZM293.961 194.192C293.442 194.192 292.972 194.094 292.549 193.899C292.126 193.7 291.791 193.414 291.542 193.041C291.294 192.665 291.169 192.21 291.169 191.678C291.169 191.209 291.262 190.829 291.446 190.538C291.631 190.243 291.878 190.012 292.187 189.845C292.496 189.678 292.837 189.554 293.21 189.472C293.586 189.387 293.964 189.32 294.344 189.27C294.841 189.206 295.244 189.158 295.553 189.126C295.866 189.091 296.093 189.032 296.235 188.95C296.381 188.869 296.453 188.727 296.453 188.524V188.482C296.453 187.956 296.31 187.548 296.022 187.256C295.738 186.965 295.306 186.82 294.728 186.82C294.127 186.82 293.657 186.951 293.316 187.214C292.975 187.477 292.735 187.757 292.597 188.055L291.404 187.629C291.617 187.132 291.901 186.745 292.256 186.468C292.615 186.187 293.005 185.992 293.428 185.882C293.854 185.768 294.273 185.712 294.685 185.712C294.948 185.712 295.25 185.744 295.591 185.808C295.935 185.868 296.267 185.994 296.587 186.186C296.91 186.377 297.178 186.667 297.391 187.054C297.604 187.441 297.711 187.96 297.711 188.609V194H296.453V192.892H296.39C296.304 193.07 296.162 193.26 295.963 193.462C295.765 193.664 295.5 193.837 295.17 193.979C294.839 194.121 294.436 194.192 293.961 194.192ZM294.152 193.062C294.65 193.062 295.069 192.965 295.409 192.77C295.754 192.574 296.013 192.322 296.187 192.013C296.365 191.704 296.453 191.379 296.453 191.038V189.888C296.4 189.952 296.283 190.01 296.102 190.064C295.924 190.113 295.718 190.158 295.484 190.197C295.253 190.232 295.028 190.264 294.808 190.293C294.591 190.317 294.415 190.339 294.28 190.357C293.953 190.399 293.648 190.468 293.364 190.564C293.083 190.657 292.856 190.797 292.682 190.985C292.512 191.17 292.426 191.422 292.426 191.741C292.426 192.178 292.588 192.509 292.911 192.732C293.238 192.952 293.652 193.062 294.152 193.062ZM303.563 185.818V186.884H299.323V185.818H303.563ZM300.559 183.858H301.816V191.656C301.816 192.011 301.868 192.278 301.971 192.455C302.077 192.629 302.212 192.746 302.375 192.807C302.542 192.864 302.718 192.892 302.903 192.892C303.041 192.892 303.155 192.885 303.244 192.871C303.332 192.853 303.403 192.839 303.457 192.828L303.712 193.957C303.627 193.989 303.508 194.021 303.356 194.053C303.203 194.089 303.009 194.107 302.775 194.107C302.42 194.107 302.072 194.03 301.731 193.877C301.394 193.725 301.113 193.492 300.889 193.18C300.669 192.867 300.559 192.473 300.559 191.997V183.858ZM305.454 194V185.818H306.711V194H305.454ZM306.093 184.455C305.848 184.455 305.637 184.371 305.46 184.204C305.286 184.037 305.199 183.837 305.199 183.602C305.199 183.368 305.286 183.167 305.46 183C305.637 182.833 305.848 182.75 306.
1543093 182.75C306.339 182.75 306.548 182.833 306.722 183C306.9 183.167 306.988 183.368 306.988 183.602C306.988 183.837 306.9 184.037 306.722 184.204C306.548 184.371 306.339 184.455 306.093 184.455ZM312.338 194.17C311.599 194.17 310.951 193.995 310.393 193.643C309.839 193.292 309.406 192.8 309.094 192.168C308.785 191.536 308.63 190.797 308.63 189.952C308.63 189.099 308.785 188.355 309.094 187.72C309.406 187.084 309.839 186.591 310.393 186.239C310.951 185.887 311.599 185.712 312.338 185.712C313.076 185.712 313.723 185.887 314.277 186.239C314.834 186.591 315.267 187.084 315.576 187.72C315.889 188.355 316.045 189.099 316.045 189.952C316.045 190.797 315.889 191.536 315.576 192.168C315.267 192.8 314.834 193.292 314.277 193.643C313.723 193.995 313.076 194.17 312.338 194.17ZM312.338 193.041C312.899 193.041 313.36 192.897 313.723 192.61C314.085 192.322 314.353 191.944 314.527 191.475C314.701 191.006 314.788 190.499 314.788 189.952C314.788 189.405 314.701 188.895 314.527 188.423C314.353 187.951 314.085 187.569 313.723 187.278C313.36 186.987 312.899 186.841 312.338 186.841C311.777 186.841 311.315 186.987 310.953 187.278C310.591 187.569 310.322 187.951 310.148 188.423C309.974 188.895 309.887 189.405 309.887 189.952C309.887 190.499 309.974 191.006 310.148 191.475C310.322 191.944 310.591 192.322 310.953 192.61C311.315 192.897 311.777 193.041 312.338 193.041ZM319.221 189.078V194H317.964V185.818H319.179V187.097H319.285C319.477 186.681 319.768 186.347 320.159 186.095C320.549 185.839 321.054 185.712 321.671 185.712C322.225 185.712 322.71 185.825 323.126 186.053C323.541 186.276 323.864 186.617 324.095 187.075C324.326 187.53 324.441 188.105 324.441 188.801V194H323.184V188.886C323.184 188.244 323.017 187.743 322.684 187.384C322.35 187.022 321.892 186.841 321.309 186.841C320.908 186.841 320.549 186.928 320.233 187.102C319.921 187.276 319.674 187.53 319.493 187.864C319.312 188.197 319.221 188.602 319.221 189.078Z",fill:"#04B97A"}),(0,v.jsx)("path",{d:"M259.321 57V46.0909H265.905V47.2628H260.642V50.9489H265.564V52.1207H260.642V55.8281H265.99V57H259.321ZM273.698 60.0682V55.7429H273.591C273.499 55.892 273.368 56.0803 273.197 56.3075C273.027 56.5312 272.783 56.7319 272.467 56.9094C272.151 57.0835 271.73 57.1705 271.205 57.1705C270.523 57.1705 269.921 56.9982 269.399 56.6538C268.877 56.3058 268.469 55.8157 268.174 55.1836C267.879 54.5479 267.732 53.7969 267.732 52.9304C267.732 52.071 267.879 51.3253 268.174 50.6932C268.469 50.0611 268.879 49.5728 269.404 49.2283C269.93 48.8839 270.537 48.7116 271.226 48.7116C271.759 48.7116 272.18 48.8004 272.489 48.978C272.801 49.152 273.039 49.3509 273.202 49.5746C273.369 49.7947 273.499 49.9759 273.591 50.1179H273.74V48.8182H274.955V60.0682H273.698ZM271.375 56.0412C271.88 56.0412 272.306 55.9098 272.654 55.647C273.002 55.3807 273.266 55.0131 273.447 54.5444C273.629 54.0721 273.719 53.527 273.719 52.9091C273.719 52.2983 273.63 51.7638 273.453 51.3058C273.275 50.8441 273.012 50.4854 272.664 50.2298C272.316 49.9705 271.887 49.8409 271.375 49.8409C270.843 49.8409 270.399 49.9776 270.044 50.2511C269.692 50.521 269.428 50.8885 269.25 51.3537C269.076 51.8153 268.989 52.3338 268.989 52.9091C268.989 53.4915 269.078 54.0206 269.255 54.4964C269.436 54.9687 269.703 55.3452 270.054 55.6257C270.409 55.9027 270.85 56.0412 271.375 56.0412ZM282.412 53.6548V48.8182H283.669V57H282.412V55.6151H282.327C282.135 56.0305 281.837 56.3839 281.432 56.6751C281.027 56.9627 280.516 57.1065 279.898 57.1065C279.387 57.1065 278.932 56.9947 278.534 56.771C278.137 56.5437 277.824 56.2028 277.597 55.7482C277.37 55.2901 277.256 54.7131 277.256 54.017V48.8182H278.513V53.9318C278.513 54.5284 278.68 55.0043 279.014 55.3594C279.351 55.7145 279.781 55.892 280.303 55.892C280.615 55.892 280.933 55.8121 281.256 55.6523C281.583 55.4925 281.857 55.2475 282.077 54.9173C282.3 54.587 282.412 54.1662 282.412 53.6548ZM285.972 57V48.8182H287.229V57H285.972ZM286.611 47.4545C286.366 47.4545 286.155 47.3711 285.977 47.2042C285.803 47.0373 285.716 46.8366 285.716 46.6023C285.716 46.3679 285.803 46.1673 285.977 46.0004C286.155 45.8335 286.366 45.75 286.611 45.75C286.856 45.75 287.066 45.8335 287.24 46.0004C287.417 46.1673 287.506 46.3679 287.506 46.6023C287.506 46.8366 287.417 47.0373 287.24 47.2042C287.066 47.3711 286.856 47.4545 286.611 47.4545ZM289.531 60.0682V48.8182H290.746V50.1179H290.895C290.987 49.9759 291.115 49.7947 291.279 49.5746C291.445 49.3509 291.683 49.152 291.992 48.978C292.305 48.8004 292.727 48.7116 293.26 48.7116C293.949 48.7116 294.556 48.8839 295.082 49.2283C295.607 49.5728 296.018 50.0611 296.312 50.6932C296.607 51.3253 296.754 52.071 296.754 52.9304C296.754 53.7969 296.607 54.5479 296.312 55.1836C29
15436.018 55.8157 295.609 56.3058 295.087 56.6538C294.565 56.9982 293.963 57.1705 293.281 57.1705C292.756 57.1705 292.335 57.0835 292.019 56.9094C291.703 56.7319 291.46 56.5312 291.289 56.3075C291.119 56.0803 290.987 55.892 290.895 55.7429H290.789V60.0682H289.531ZM290.767 52.9091C290.767 53.527 290.858 54.0721 291.039 54.5444C291.22 55.0131 291.485 55.3807 291.833 55.647C292.181 55.9098 292.607 56.0412 293.111 56.0412C293.637 56.0412 294.075 55.9027 294.427 55.6257C294.782 55.3452 295.048 54.9687 295.226 54.4964C295.407 54.0206 295.497 53.4915 295.497 52.9091C295.497 52.3338 295.409 51.8153 295.231 51.3537C295.057 50.8885 294.792 50.521 294.437 50.2511C294.086 49.9776 293.644 49.8409 293.111 49.8409C292.6 49.8409 292.17 49.9705 291.822 50.2298C291.474 50.4854 291.211 50.8441 291.034 51.3058C290.856 51.7638 290.767 52.2983 290.767 52.9091ZM298.672 60.0682V48.8182H299.887V50.1179H300.036C300.128 49.9759 300.256 49.7947 300.419 49.5746C300.586 49.3509 300.824 49.152 301.133 48.978C301.445 48.8004 301.868 48.7116 302.401 48.7116C303.09 48.7116 303.697 48.8839 304.222 49.2283C304.748 49.5728 305.158 50.0611 305.453 50.6932C305.748 51.3253 305.895 52.071 305.895 52.9304C305.895 53.7969 305.748 54.5479 305.453 55.1836C305.158 55.8157 304.75 56.3058 304.228 56.6538C303.706 56.9982 303.104 57.1705 302.422 57.1705C301.896 57.1705 301.476 57.0835 301.16 56.9094C300.844 56.7319 300.6 56.5312 300.43 56.3075C300.259 56.0803 300.128 55.892 300.036 55.7429H299.929V60.0682H298.672ZM299.908 52.9091C299.908 53.527 299.998 54.0721 300.18 54.5444C300.361 55.0131 300.625 55.3807 300.973 55.647C301.321 55.9098 301.747 56.0412 302.252 56.0412C302.777 56.0412 303.216 55.9027 303.567 55.6257C303.922 55.3452 304.189 54.9687 304.366 54.4964C304.547 54.0206 304.638 53.4915 304.638 52.9091C304.638 52.3338 304.549 51.8153 304.372 51.3537C304.198 50.8885 303.933 50.521 303.578 50.2511C303.226 49.9776 302.784 49.8409 302.252 49.8409C301.74 49.8409 301.311 49.9705 300.963 50.2298C300.615 50.4854 300.352 50.8441 300.174 51.3058C299.997 51.7638 299.908 52.2983 299.908 52.9091ZM311.243 57.1705C310.455 57.1705 309.775 56.9964 309.203 56.6484C308.635 56.2969 308.196 55.8068 307.887 55.1783C307.582 54.5462 307.429 53.8111 307.429 52.973C307.429 52.1349 307.582 51.3963 307.887 50.7571C308.196 50.1143 308.626 49.6136 309.176 49.255C309.73 48.8928 310.377 48.7116 311.115 48.7116C311.541 48.7116 311.962 48.7827 312.378 48.9247C312.793 49.0668 313.171 49.2976 313.512 49.6172C313.853 49.9332 314.125 50.3523 314.327 50.8743C314.53 51.3963 314.631 52.0391 314.631 52.8026V53.3352H308.324V52.2486H313.352C313.352 51.7869 313.26 51.375 313.075 51.0128C312.894 50.6506 312.635 50.3647 312.298 50.1552C311.964 49.9457 311.57 49.8409 311.115 49.8409C310.615 49.8409 310.181 49.9652 309.816 50.2138C309.453 50.4588 309.175 50.7784 308.979 51.1726C308.784 51.5668 308.686 51.9893 308.686 52.4403V53.1648C308.686 53.7827 308.793 54.3065 309.006 54.7362C309.222 55.1623 309.523 55.4872 309.906 55.7109C310.29 55.9311 310.735 56.0412 311.243 56.0412C311.573 56.0412 311.872 55.995 312.138 55.9027C312.408 55.8068 312.64 55.6648 312.836 55.4766C313.031 55.2848 313.182 55.0469 313.289 54.7628L314.503 55.1037C314.375 55.5156 314.16 55.8778 313.858 56.1903C313.557 56.4993 313.184 56.7408 312.74 56.9148C312.296 57.0852 311.797 57.1705 311.243 57.1705ZM319.633 57.1705C318.951 57.1705 318.349 56.9982 317.827 56.6538C317.305 56.3058 316.896 55.8157 316.602 55.1836C316.307 54.5479 316.16 53.7969 316.16 52.9304C316.16 52.071 316.307 51.3253 316.602 50.6932C316.896 50.0611 317.307 49.5728 317.832 49.2283C318.358 48.8839 318.965 48.7116 319.654 48.7116C320.187 48.7116 320.607 48.8004 320.916 48.978C321.229 49.152 321.467 49.3509 321.63 49.5746C321.797 49.7947 321.927 49.9759 322.019 50.1179H322.126V46.0909H323.383V57H322.168V55.7429H322.019C321.927 55.892 321.795 56.0803 321.625 56.3075C321.454 56.5312 321.211 56.7319 320.895 56.9094C320.579 57.0835 320.158 57.1705 319.633 57.1705ZM319.803 56.0412C320.307 56.0412 320.733 55.9098 321.081 55.647C321.43 55.3807 321.694 55.0131 321.875 54.5444C322.056 54.0721 322.147 53.527 322.147 52.9091C322.147 52.2983 322.058 51.7638 321.881 51.3058C321.703 50.8441 321.44 50.4854 321.092 50.2298C320.744 49.9705 320.314 49.8409 319.803 49.8409C319.27 49.8409 318.827 49.9776 318.471 50.2511C318.12 50.521 317.855 50.8885 317.678 51.3537C317.504 51.8153 317.417 52.3338 317.417 52.9091C317.417 53.4915 317.506 54.0206 317.683 54.4964C317.864 54.9687 318.131 55.3452 318.482 55.6257C318.837 55.9027 319.278 56.0412 319.803 56.0412Z",fill:"#D28A04"})]}),l[0]=e,l[1]=t):(e=l[0],t=l[1]),l[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsxs)("radialGradient",{id:"paint0_radial_38_7016",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(153.5 100.5) rotate(90) scale(158.5 242.087)",children:[(0,v.jsx)("stop",{stopColor:"#252837"}),(0,v.jsx)("stop",{offset:"1",stopColor:"#0D0E12"})]}),l[2]=n):n=l[2],l[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsxs)("linearGradient",{id:"paint1_linear_38_7016",x1:"168.5",y1:"-21.875",x2:"168.5",y2:"183",gradientUnits:"userSpaceOnUse",children:[(0,v.jsx)("stop",{stopColor:"#13141B"}),(0,v.jsx)("stop",{offset:"1",stopColor:"#9499AD"})]}),l[3]=i):i=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.jsxs)("linearGradient",{id:"paint2_linear_38_7016",x1:"241",y1:"3.25",x2:"163.5",y2:"3.25",gradientUnits:"userSpaceOnUse",children:[(0,v.jsx)("stop",{stopColor:"#A9F9DC"}),(0,v.jsx)("stop",{offset:"1",stopColor:"#0FF0A1"})]}),l[4]=r):r=l[4],l[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsxs)("linearGradient",{id:"paint3_linear_38_7016",x1:"241",y1:"108.25",x2:"168",y2:"108.25",gradientUnits:"userSpaceOnUse",children:[(0,v.jsx)("stop",{stopColor:"#A9F9DC"}),(0,v.jsx)("stop",{offset:"1",stopColor:"#0FF0A1"})]}),l[5]=a):a=l[5],l[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,v.jsxs)("svg",{height:"auto",width:"100%",viewBox:"0 0 307 201",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin",style:e,children:[t,(0,v.jsxs)("defs",{children:[n,i,r,a,(0,v.jsxs)("linearGradient",{id:"paint4_linear_38_7016",x1:"241",y1:"63.25",x2:"168",y2:"63.25",gradientUnits:"userSpaceOnUse",children:[(0,v.jsx)("stop",{stopColor:"#F9E994"}),(0,v.jsx)("stop",{offset:"1",stopColor:"#F9BC15"})]})]})]}),l[6]=o):o=l[6],o}function KY(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D=(0,j.c)(51),{metadata:z}=e,[P,R]=(0,_.useState)(!1),N=(0,_.useRef)(null),O=(0,_.useRef)(null),{t:V}=as(K$);D[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>R(KH),D[0]=t):t=D[0];let M=t;if(D[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>R(!1),i=()=>[N.current,O.current],D[1]=n,D[2]=i):(n=D[1],i=D[2]),(0,I.PR)(n,i),D[3]!==P?(r=e=>{"Escape"===e.key&&P&&R(!1)},D[3]=P,D[4]=r):r=D[4],(0,I.Pm)(r),z?.ejected)return null;D[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)(KB,{}),D[5]=a):a=D[5],D[6]!==V?(o=V("create-link-info-popover.eyebrow-title"),D[6]=V,D[7]=o):o=D[7],D[8]!==o?(l=(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:o}),D[8]=o,D[9]=l):l=D[9],D[10]!==V?(s=V("create-link-info-popover.eyebrow-badge"),D[10]=V,D[11]=s):s=D[11],D[12]!==s?(d=(0,v.jsx)(I.Ex,{fontSize:1,children:s}),D[12]=s,D[13]=d):d=D[13],D[14]!==l||D[15]!==d?(c=(0,v.jsxs)(I.so,{gap:1,align:"center",children:[l,d]}),D[14]=l,D[15]=d,D[16]=c):c=D[16],D[17]!==V?(u=V("create-link-info-popover.header"),D[17]=V,D[18]=u):u=D[18],D[19]!==u?(p=(0,v.jsx)(I.DZ,{size:2,children:u}),D[19]=u,D[20]=p):p=D[20],D[21]!==V?(m=V("create-link-info-popover.text"),D[21]=V,D[22]=m):m=D[22],D[23]!==m?(h=(0,v.jsx)(I.EY,{size:1,children:m}),D[23]=m,D[24]=h):h=D[24],D[25]===Symbol.for("react.memo_cache_sentinel")?(f=(0,v.jsx)(I.so,{flex:1,justify:"flex-end",children:(0,v.jsx)(KF,{})}),D[25]=f):f=D[25],D[26]!==p||D[27]!==h?(g=(0,v.jsxs)(I.BJ,{space:4,children:[p,h,f]}),D[26]=p,D[27]=h,D[28]=g):g=D[28],D[29]!==g||D[30]!==c?(y=(0,v.jsxs)(I.Zp,{overflow:"hidden",radius:3,ref:N,children:[a,(0,v.jsxs)(I.BJ,{space:3,paddingX:4,paddingY:3,children:[c,g]})]}),D[29]=g,D[30]=c,D[31]=y):y=D[31];let L=y;return D[32]===Symbol.for("react.memo_cache_sentinel")?(C=(0,v.jsx)(I.EY,{size:0,weight:"medium",children:(0,v.jsx)(eT.Eoh,{})}),D[32]=C):C=D[32],D[33]!==V?(x=V("studio-create-link-banner.text"),D[33]=V,D[34]=x):x=D[34],D[35]!==x?(b=(0,v.jsxs)(I.so,{gap:2,align:"center",children:[C,(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:x})})]}),D[35]=x,D[36]=b):b=D[36],D[37]===Symbol.for("react.memo_cache_sentinel")?(w={width:320},D[37]=w):w=D[37],D[38]===Symbol.for("react.memo_cache_sentinel")?(k=["bottom","bottom-end","right-start","right","right-end"],D[38]=k):k=D[38],D[39]===Symbol.for("react.memo_cache_sentinel")?(S={marginBottom:"-0.5em",marginTop:"-0.5em"},D[39]=S):S=D[39],D[40]!==V?(T=V("create-link-info.tooltip"),D[40]=V,D[41]=T):T=D[41],D[42]!==T?(E=(0,v.jsx)(tL.$n,{ref:O,icon:eT.YzR,mode:"bleed",onClick:M,style:S,tooltipProps:{content:T}}),D[42]=T,D[43]=E):E=D[43],D[44]!==P||D[45]!==L||D[46]!==E?($=(0,v.jsx)(tL.AM,{content:L,open:P,radius:3,style:w,tone:"default",placement:"bottom-start",fallbackPlacements:k,children:E}),D[44]=P,D[45]=L,D[46]=E,D[47]=$):$=D[47],D[48]!==b||D[49]!==$?(A=(0,v.jsxs)(I.so,{gap:1,align:"center",children:[b,$]}),D[48]=b,D[49]=$,D[50]=A):A=D[50],A}function KH(e){return!e}function KU(e){let t,n,i,r=(0,j.c)(8),{children:a}=e,{beta:o}=_g(),l=ZD(),s=o?.create,d=!!o?.create?.startInCreateEnabled;r[0]===Symbol.for("react.memo_cache_sentinel")?(t={documentLinkedBannerContent:KY,documentLinkedActions:KL},r[0]=t):t=r[0],r[1]!==l||r[2]!==s||r[3]!==d?(n={...s,startInCreateEnabled:d,appIdCache:l,components:t},r[1]=l,r[2]=s,r[3]=d,r[4]=n):n=r[4];let c=n;return r[5]!==a||r[6]!==c?(i=(0,v.jsx)(S.iS.Provider,{value:c,children:a}),r[5]=a,r[6]=c,r[7]=i):i=r[7],i}function KZ(e){let t,n,i=(0,j.c)(4);return i[0]!==e?(t=e.renderDefault(e),i[0]=e,i[1]=t):t=i[1],i[2]!==t?(n=(0,v.jsx)(KU,{children:t}),i[2]=t,i[3]=n):n=i[3],n}let Kq=R1(()=>({name:"sanity/create-integration",studio:{components:{layout:KZ}},i18n:{bundles:[KA]}})),KW={publish:{actionName:"Publishing",badgeColor:"primary",badgeTone:"positive"},unpublish:{actionName:"Unpublishing",badgeColor:"danger",badgeTone:"critical"}},KJ={scheduled:{title:"Upcoming"},succeeded:{title:"Completed"},cancelled:{title:"Failed"}},KK=Object.keys(KJ).filter(e=>!!e),KG="This document has validation errors that should be resolved before its publish date.",KX={type:"scheduledPublishing"},KQ={used:!1,loading:!0},K1=new Map;function K2(e){let t,n,i,r=(0,j.c)(16),{children:a}=e,{enabled:o,isLoading:l,error:s}=EY("scheduledPublishing"),{scheduledPublishing:d}=cY(),c=d.enabled,u=d.__internal__workspaceEnabled;r[0]!==u||r[1]!==c?(t={explicitEnabled:u,isWorkspaceEnabled:c},r[0]=u,r[1]=c,r[2]=t):t=r[2];let p=function(e){let t,n=(0,j.c)(4),{explicitEnabled:i,isWorkspaceEnabled:r}=e,a=el0(ob),{projectId:o,dataset:l}=cY(),s=`${o}-${l}`;if(!K1.get(s)){let e=(function(e){let{dataset:t,projectId:n}=e.config();return e.observable.request({uri:`/schedules/${n}/${t}?limit=1`,tag:"scheduled-publishing-used"}).pipe((0,eV.T)(e=>({used:e.schedules?.length>0,loading:!1})),(0,eY.W)(()=>(0,eP.of)({used:!1,loading:!1})))})(a).pipe((0,e1.t)());K1.set(s,e)}e:{let e;if(i){let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)({used:!0,loading:!1}),n[0]=e):e=n[0],t=e;break e}if(!r){let e;n[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)({used:!1,loading:!1}),n[1]=e):e=n[1],t=e;break e}n[2]!==s?(e=K1.get(s)||(0,eP.of)(KQ),n[2]=s,n[3]=e):e=n[3],t=e}return(0,tF.J)(t,KQ)}(t);e:{let e;if(!c||l||s){let e;r[3]!==p?(e={enabled:!1,mode:null,hasUsedScheduledPublishing:p},r[3]=p,r[4]=e):e=r[4],n=e;break e}if(u){let e,t=o?"default":"upsell";r[5]!==p||r[6]!==t?(e={enabled:!0,mode:t,hasUsedScheduledPublishing:p}
1543,r[5]=p,r[6]=t,r[7]=e):e=r[7],n=e;break e}if(!p.used){let e;r[8]!==p?(e={enabled:!1,mode:null,hasUsedScheduledPublishing:p},r[8]=p,r[9]=e):e=r[9],n=e;break e}let t=o?"default":"upsell";r[10]!==p||r[11]!==t?(e={enabled:!0,mode:t,hasUsedScheduledPublishing:p},r[10]=p,r[11]=t,r[12]=e):e=r[12],n=e}let m=n;return r[13]!==a||r[14]!==m?(i=(0,v.jsx)(S.Ng.Provider,{value:m,children:a}),r[13]=a,r[14]=m,r[15]=i):i=r[15],i}function K5(){return(0,_.useContext)(S.Ng)}let K0=(0,eI.I4)(I.dU).withConfig({displayName:"TimeZoneButtonElementQuery",componentId:"sc-1578vde-0"})`.button-small{display:block;}.button-large{display:none;}&[data-eq-min~='2']{.button-small{display:none;}.button-large{display:block;}}`,K7=e=>{let t,n,i,r,a=(0,j.c)(8),{description:o,title:l}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.EY,{size:2,children:(0,v.jsx)(eT.YZv,{})}),a[0]=t):t=a[0],a[1]!==l?(n=(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:l}),a[1]=l,a[2]=n):n=a[2],a[3]!==o?(i=o&&(0,v.jsx)(I.EY,{size:1,children:o}),a[3]=o,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(r=(0,v.jsx)(I.Zp,{overflow:"hidden",padding:4,radius:2,shadow:1,tone:"critical",children:(0,v.jsxs)(I.so,{align:"center",gap:4,children:[t,(0,v.jsxs)(I.cV,{space:2,children:[n,i]})]})}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r},K3=()=>{let e,t,n,i,r,a=(0,j.c)(5);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.EY,{size:2,children:(0,v.jsx)(eT.YzR,{})}),a[0]=e):e=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:"Schedule Publishing is not enabled"}),a[1]=t):t=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsxs)(I.EY,{size:1,children:["We recommend using"," ",(0,v.jsx)("a",{target:"_blank",href:"https://www.sanity.io/blog/introducing-content-releases",rel:"noreferrer",children:"Releases"}),"."]}),a[2]=n):n=a[2],a[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsxs)(I.EY,{size:1,children:["Scheduled Publishing is not enabled by default. It can be enabled in the config by setting ",(0,v.jsx)("code",{children:"scheduledPublishing.enabled = true"})]}),a[3]=i):i=a[3],a[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.jsx)(I.Zp,{overflow:"hidden",padding:4,radius:2,shadow:1,tone:"suggest",children:(0,v.jsxs)(I.so,{align:"center",gap:4,children:[e,(0,v.jsxs)(I.cV,{space:3,children:[t,(0,v.jsxs)(I.BJ,{space:3,marginTop:2,children:[n,i,(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)("a",{target:"_blank",href:"https://www.sanity.io/docs/scheduled-publishing",rel:"noreferrer",children:"Read the docs"})})]})]})]})}),a[4]=r):r=a[4],r};function K8(e){return e?.executedAt||e?.executeAt}function K4({reverseOrder:e}={reverseOrder:!1}){return function(t,n){let i=K8(t),r=K8(n);return i===r?0:null===i?1:null===r?-1:(i>r?1:-1)*(e?-1:1)}}let K6=e=>{let t,n,i,r,a,o=(0,j.c)(10),{body:l,title:s}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(eT.CTc,{}),o[0]=t):t=o[0],o[1]!==s?(n=s&&(0,v.jsx)(I.EY,{size:2,weight:"semibold",children:s}),o[1]=s,o[2]=n):n=o[2],o[3]!==n?(i=(0,v.jsxs)(I.cV,{space:2,children:[t,n]}),o[3]=n,o[4]=i):i=o[4],o[5]!==l?(r=l&&(0,v.jsx)(I.EY,{size:1,children:l}),o[5]=l,o[6]=r):r=o[6],o[7]!==i||o[8]!==r?(a=(0,v.jsxs)(I.BJ,{paddingY:1,space:3,children:[i,r]}),o[7]=i,o[8]=r,o[9]=a):a=o[9],a};function K9(e){let t;return"object"==typeof e&&e&&"statusCode"in e&&"response"in e?t=403===e.response.statusCode?"Forbidden. Please check that your project has access to Scheduled Publishing.":e.message:(e instanceof Error&&(t=e.message),t=String(e)),t}let Ge=kd("useScheduleOperation"),Gt="scheduleDelete",Gn="scheduleDeleteMultiple",Gi="schedulePublish",Gr="scheduleUpdate";function Ga(e,t){return`${t} ${e}${1===t?"":"s"}`}let Go=(e,t)=>new CustomEvent(e,t);function Gl(){let e,t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(24),p=(0,T.dj)();u[0]===Symbol.for("react.memo_cache_sentinel")?(e={type:"scheduledPublishing"},u[0]=e):e=u[0];let{formatDateTz:m}=ky(e),h=((d=(0,j.c)(3))[0]===Symbol.for("react.memo_cache_sentinel")?(l={apiVersion:"2022-09-01"},d[0]=l):l=d[0],c=el0(l),d[1]!==c?(s=function(e){let{dataset:t,projectId:n}=e.config();function i({scheduleId:i}){return Ge("_delete:",i),e.request({method:"DELETE",uri:`/schedules/${n}/${t}/${i}`})}return{create:function({date:i,documentId:r}){Ge("_create:",r);let a=new Date(i);return a.setSeconds(0),a.setMilliseconds(0),e.request({body:{documents:[{documentId:r}],executeAt:a,name:a},method:"POST",uri:`/schedules/${n}/${t}`})},delete:i,deleteMultiple:function({scheduleIds:e}){return Ge("_deleteMultiple:",e),Promise.allSettled(e.map(e=>i({scheduleId:e})))},publish:function({scheduleId:i}){return Ge("_publish:",i),e.request({method:"POST",uri:`/schedules/${n}/${t}/${i}/publish`})},update:function({documentSchedule:i,scheduleId:r}){return Ge("_update:",r,i),e.request({body:i,method:"PATCH",uri:`/schedules/${n}/${t}/${r}`})}}}(c),d[1]=c,d[2]=s):s=d[2],s);u[1]!==h||u[2]!==m||u[3]!==p?(t=async function(e){let{date:t,displayToast:n,documentId:i}=e,r=void 0===n||n;await (async()=>{let e=await h.create({date:t,documentId:i});window.dispatchEvent(Go("scheduleCreate",{detail:{date:t,documentId:i}})),r&&e?.executeAt&&p.push({closable:!0,description:(0,v.jsx)(K6,{body:m({date:new Date(e.executeAt),includeTimeZone:!0,prefix:"Publishing on "}),title:"Schedule created"}),duration:15e3,status:"success"})})().catch(e=>{r&&p.push({closable:!0,description:(0,v.jsx)(K6,{body:K9(e),title:"Unable to create schedule"}),duration:15e3,status:"error"})})},u[1]=h,u[2]=m,u[3]=p,u[4]=t):t=u[4];let f=t;u[5]!==h||u[6]!==p?(n=async function(e){let{displayToast:t,schedule:n}=e,i=void 0===t||t;await (async()=>{await h.delete({scheduleId:n?.id}),window.dispatchEvent(Go(Gt,{detail:{scheduleId:n?.id}})),i&&p.push({closable:!0,description:(0,v.jsx)(K6,{title:"Schedule deleted"}),status:"success"})})().catch(e=>{i&&p.push({closable:!0,description:(0,v.jsx)(K6,{body:K9(e),title:"Unable to delete schedule"}),duration:15e3,status:"error"})})},u[5]=h,u[6]=p,u[7]=n):n=u[7];let g=n;u[8]!==h||u[9]!==p?(i=async function(e){let{displayToast:t,schedules:n}=e,i=void 0===t||t;await (async()=>{let e=n.map(Gs),{fulfilledIds:t,rejectedReasons:r}=(await h.deleteMultiple({scheduleIds:e})).reduce((e,t,i)=>("fulfilled"===t.status&&e.fulfilledIds.push(n[i].id),"rejected"===t.status&&e.rejectedReasons.push(`[${n[i].id}]: ${t.reason}`),e),{fulfilledIds:[],rejectedReasons:[]}),a=t.length,o=r.length;t?.length>0&&window.dispatchEvent(Go(Gn,{detail:{scheduleIds:t}})),i&&(t?.length>0&&p.push({closable:!0,description:(0,v.jsx)(K6,{title:`${Ga("schedule",a)} deleted`}),status:"success"}),r?.length>0&&p.push({closable:!0,description:(0,v.jsx)(K6,{body:r?.toString(),title:`Unable to delete ${Ga("schedule",o)}`}),duration:15e3,status:"error"}))})().catch(e=>{i&&p.push({closable:!0,description:(0,v.jsx)(K6,{body:K9(e),title:"Unable to delete schedules"}),duration:15e3,status:"error"})})}
1543,u[8]=h,u[9]=p,u[10]=i):i=u[10];let y=i;u[11]!==h||u[12]!==p?(r=async function(e){let{displayToast:t,schedule:n}=e,i=void 0===t||t;try{let e=n.id;await h.publish({scheduleId:e}),window.dispatchEvent(Go(Gi,{detail:{scheduleId:e}})),i&&p.push({closable:!0,description:(0,v.jsx)(K6,{title:"Document published"}),status:"success"})}catch(e){i&&p.push({closable:!0,description:(0,v.jsx)(K6,{body:K9(e),title:"Unable to publish schedule"}),duration:15e3,status:"error"})}},u[11]=h,u[12]=p,u[13]=r):r=u[13];let C=r;u[14]!==h||u[15]!==m||u[16]!==p?(a=async function(e){let{date:t,displayToast:n,scheduleId:i}=e,r=void 0===n||n;try{await h.update({documentSchedule:{executeAt:t},scheduleId:i}),window.dispatchEvent(Go(Gr,{detail:{date:t,scheduleId:i}})),r&&p.push({closable:!0,description:(0,v.jsx)(K6,{body:m({date:new Date(t),includeTimeZone:!0,prefix:"Publishing on "}),title:"Schedule updated"}),duration:15e3,status:"success"})}catch(e){r&&p.push({closable:!0,description:(0,v.jsx)(K6,{body:K9(e),title:"Unable to update schedule"}),duration:15e3,status:"error"})}},u[14]=h,u[15]=m,u[16]=p,u[17]=a):a=u[17];let x=a;return u[18]!==f||u[19]!==g||u[20]!==y||u[21]!==C||u[22]!==x?(o={createSchedule:f,deleteSchedule:g,deleteSchedules:y,publishSchedule:C,updateSchedule:x},u[18]=f,u[19]=g,u[20]=y,u[21]=C,u[22]=x,u[23]=o):o=u[23],o}function Gs(e){return e.id}let Gd=[];function Gc(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(32);y[0]!==e?(t=void 0===e?{}:e,y[0]=e,y[1]=t):t=y[1];let{documentId:C,state:x}=t,{mode:b,enabled:v}=K5(),w="default"===b?1e4:void 0,k="default"===b,S="default"===b;y[2]!==w||y[3]!==k||y[4]!==S?(n={refreshWhenHidden:!1,refreshWhenOffline:!1,revalidateOnFocus:!1,shouldRetryOnError:!1,refreshInterval:w,revalidateIfStale:k,revalidateOnReconnect:S},y[2]=w,y[3]=k,y[4]=S,y[5]=n):n=y[5];let I=n,T=function(){let e,t,n=(0,j.c)(3);n[0]===Symbol.for("react.memo_cache_sentinel")?(e={apiVersion:"2022-09-01"},n[0]=e):e=n[0];let i=el0(e);n[1]!==i?(t=i.config(),n[1]=i,n[2]=t):t=n[2];let{dataset:r,projectId:a}=t;return`/schedules/${a}/${r}`}();y[6]!==C||y[7]!==x?(i={documentIds:C,state:x},y[6]=C,y[7]=x,y[8]=i):i=y[8],y[9]!==i||y[10]!==T?(r={params:i,url:T},y[9]=i,y[10]=T,y[11]=r):r=y[11];let E=r,$=((f=(0,j.c)(5))[0]===Symbol.for("react.memo_cache_sentinel")?(m={apiVersion:"2022-09-01"},f[0]=m):m=f[0],g=el0(m),f[1]!==g||f[2]!==E.params||f[3]!==E.url?(h=()=>g.request({query:E.params,method:"GET",uri:E.url}),f[1]=g,f[2]=E.params,f[3]=E.url,f[4]=h):h=f[4],h),{data:A,error:D,mutate:z}=jY(v?E:null,$,I);y[12]!==z?(a=e=>{z(t=>({schedules:t?.schedules?.filter(t=>t.id!==e.detail.scheduleId)}),!0)},y[12]=z,y[13]=a):a=y[13];let P=a;y[14]!==z?(o=e=>{z(t=>({schedules:t?.schedules?.filter(t=>!e.detail.scheduleIds.includes(t.id))}),!0)},y[14]=z,y[15]=o):o=y[15];let R=o;y[16]!==z?(l=e=>{z(t=>{let n=t?.schedules||[],i=n.findIndex(t=>t.id===e.detail.scheduleId);return{schedules:[...n.slice(0,i),{...n[i],executeAt:new Date().toISOString(),state:"succeeded"},...n.slice(i+1)]}},!0)},y[16]=z,y[17]=l):l=y[17];let N=l;y[18]!==z?(s=e=>{z(t=>{let n=t?.schedules||[],i=n.findIndex(t=>t.id===e.detail.scheduleId);return{schedules:[...n.slice(0,i),{...n[i],executeAt:e.detail.date},...n.slice(i+1)]}},!0)},y[18]=z,y[19]=s):s=y[19];let O=s;y[20]!==P||y[21]!==R||y[22]!==N||y[23]!==O?(d=()=>(window.addEventListener(Gt,P),window.addEventListener(Gn,R),window.addEventListener(Gi,N),window.addEventListener(Gr,O),()=>{window.removeEventListener(Gt,P),window.removeEventListener(Gn,R),window.removeEventListener(Gi,N),window.removeEventListener(Gr,O)}),c=[P,R,N,O],y[20]=P,y[21]=R,y[22]=N,y[23]=O,y[24]=d,y[25]=c):(d=y[24],c=y[25]),(0,_.useEffect)(d,c),y[26]!==A?.schedules?(u=A?.schedules?.sort(K4()),y[26]=A?.schedules,y[27]=u):u=y[27];let V=!D&&!A,M=u||Gd;return y[28]!==D||y[29]!==V||y[30]!==M?(p={error:D,isInitialLoading:V,schedules:M},y[28]=D,y[29]=V,y[30]=M,y[31]=p):p=y[31],p}let Gu=[];function Gp(e){let t,n,i,r,a,o,l=(0,j.c)(22),{children:s,value:d}=e,[c,u]=(0,_.useState)(d.sortBy||"executeAt");l[0]===Symbol.for("react.memo_cache_sentinel")?(t={type:"scheduledPublishing"},l[0]=t):t=l[0];let{utcToCurrentZoneDate:p}=ky(t);l[1]!==p?(n=e=>function(t){let n=K8(t);if(!n)return!1;let i=p(new Date(n));return(0,nd.r)(i,e)},l[1]=p,l[2]=n):n=l[2];let m=n;l[3]!==m||l[4]!==c||l[5]!==d.scheduleState||l[6]!==d.schedules||l[7]!==d.selectedDate?(i=d.schedules.filter(e=>d.selectedDate?m(d.selectedDate)(e):(function(e){return function(t){return t.state===e}})(d.scheduleState)(e)).sort((e,t)=>
1543"createdAt"===c?e[c]<t[c]?1:-1:"executeAt"===c?K4({reverseOrder:!("scheduled"===d.scheduleState||d.selectedDate)})(e,t):1)||[],l[3]=m,l[4]=c,l[5]=d.scheduleState,l[6]=d.schedules,l[7]=d.selectedDate,l[8]=i):i=l[8];let h=i;l[9]!==m||l[10]!==d.schedules?(r=e=>d.schedules.filter(m(e)).sort(K4()),l[9]=m,l[10]=d.schedules,l[11]=r):r=l[11];let f=r,g=d.schedules||Gu;l[12]!==h||l[13]!==f||l[14]!==c||l[15]!==g||l[16]!==d.scheduleState||l[17]!==d.selectedDate?(a={activeSchedules:h,schedules:g,schedulesByDate:f,scheduleState:d.scheduleState,selectedDate:d.selectedDate,setSortBy:u,sortBy:c},l[12]=h,l[13]=f,l[14]=c,l[15]=g,l[16]=d.scheduleState,l[17]=d.selectedDate,l[18]=a):a=l[18];let y=a;return l[19]!==s||l[20]!==y?(o=(0,v.jsx)(S.qI.Provider,{value:y,children:s}),l[19]=s,l[20]=y,l[21]=o):o=l[21],o}function Gm(){let e=(0,_.useContext)(S.qI);if(void 0===e)throw Error("useSchedules must be used within a SchedulesProvider");return e}function Gh(e,t){let n,i=(0,j.c)(5);if(i[0]!==t||i[1]!==e){let r;i[3]!==t?(r=e=>e.state===t,i[3]=t,i[4]=r):r=i[4],n=e.filter(r),i[0]=t,i[1]=e,i[2]=n}else n=i[2];return n}let Gf=e=>{let t,n,i,r,a,o=(0,j.c)(16),{selected:l,schedules:s,state:d}=e,c=Gh(s,d).length,u=c>0,p="cancelled"===d;o[0]!==d?(t={state:{state:d}},o[0]=d,o[1]=t):t=o[1];let{href:m,onClick:h}=(0,nU.DN)(t),f=p?"critical":"default",g=KJ[d];return o[2]!==g.title?(n=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:g.title}),o[2]=g.title,o[3]=n):n=o[3],o[4]!==c||o[5]!==u?(i=u&&(0,v.jsx)(I.EY,{size:0,children:c}),o[4]=c,o[5]=u,o[6]=i):i=o[6],o[7]!==n||o[8]!==i?(r=(0,v.jsxs)(I.so,{gap:2,align:"center",children:[n,i]}),o[7]=n,o[8]=i,o[9]=r):r=o[9],o[10]!==m||o[11]!==h||o[12]!==l||o[13]!==f||o[14]!==r?(a=(0,v.jsx)(I.$n,{as:"a",href:m,mode:"bleed",onClick:h,selected:l,tone:f,padding:2,children:r}),o[10]=m,o[11]=h,o[12]=l,o[13]=f,o[14]=r,o[15]=a):a=o[15],a},Gg=e=>{let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(26),{onClearDate:p,selectedDate:m}=e,{navigate:h}=(0,nU.rd)(),{schedules:f,scheduleState:g}=Gm();u[0]!==h?(t=e=>{h(e)},u[0]=h,u[1]=t):t=u[1];let y=t,C=Gh(f,g);return u[2]===Symbol.for("react.memo_cache_sentinel")?(n=["block","block","none"],u[2]=n):n=u[2],u[3]!==p||u[4]!==m?(i=m&&(0,v.jsx)(tL.$n,{iconRight:eT.USm,onClick:p,text:(0,nn.GP)(m,"d MMMM yyyy"),tone:"primary"}),u[3]=p,u[4]=m,u[5]=i):i=u[5],u[6]!==C?.length||u[7]!==y||u[8]!==g?(r=g&&(0,v.jsx)(tL.IU,{button:(0,v.jsx)(tL.$n,{iconRight:eT.wBL,mode:"ghost",text:`${KJ[g].title} (${C?.length||0})`,tone:"default"}),id:"state",menu:(0,v.jsx)(I.W1,{style:{minWidth:"175px"},children:KK.map(e=>(0,v.jsx)(tL.Dr,{iconRight:e===g?eT.Nrt:void 0,onClick:y.bind(void 0,{state:e}),text:KJ[e].title},e))}),placement:"bottom"}),u[6]=C?.length,u[7]=y,u[8]=g,u[9]=r):r=u[9],u[10]!==i||u[11]!==r?(a=(0,v.jsxs)(I.az,{display:n,children:[i,r]}),u[10]=i,u[11]=r,u[12]=a):a=u[12],u[13]===Symbol.for("react.memo_cache_sentinel")?(o=["none","none","block"],u[13]=o):o=u[13],u[14]!==p||u[15]!==m?(l=m&&(0,v.jsx)(tL.$n,{iconRight:eT.USm,onClick:p,text:(0,nn.GP)(m,"d MMMM yyyy"),tone:"primary"}),u[14]=p,u[15]=m,u[16]=l):l=u[16],u[17]!==g||u[18]!==f?(s=g&&(0,v.jsx)(I.so,{gap:2,children:KK.map(e=>(0,v.jsx)(Gf,{schedules:f,selected:g===e,state:e},e))}),u[17]=g,u[18]=f,u[19]=s):s=u[19],u[20]!==l||u[21]!==s?(d=(0,v.jsxs)(I.az,{display:o,children:[l,s]}),u[20]=l,u[21]=s,u[22]=d):d=u[22],u[23]!==a||u[24]!==d?(c=(0,v.jsxs)(v.Fragment,{children:[a,d]}),u[23]=a,u[24]=d,u[25]=c):c=u[25],c};function Gy(e){let t,n,i,r,a=(0,j.c)(9);a[0]===Symbol.for("react.memo_cache_sentinel")?(t={dataUri:"/journey/scheduled-publishing",feature:"scheduled_publishing"},a[0]=t):t=a[0];let o=$O(t),l=e.children;return a[1]!==o?(n=$N(o),a[1]=o,a[2]=n):n=a[2],a[3]!==n?(i=(0,v.jsx)($7,{...n}),a[3]=n,a[4]=i):i=a[4],a[5]!==o||a[6]!==e.children||a[7]!==i?(r=(0,v.jsxs)(S.Zk.Provider,{value:o,children:[l,i]}),a[5]=o,a[6]=e.children,a[7]=i,a[8]=r):r=a[8],r}function GC(){return(0,_.useContext)(S.Zk)}let Gx=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(15);return f[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)("path",{d:"M54 26C54 28.7614 49.0751 31 43 31C36.9249 31 32 28.7614 32 26C32 23.2386 36.9249 7 43 7C49.0751 7 54 23.2386 54 26Z",stroke:"#7B8CA8",strokeWidth:"1.2"}),n=(0,v.jsx)("path",{d:"M65 71.5V57M65 71.5L60.5789 69.0132M65 71.5L60.5789 73.9868M65 57L57 52.5L54 54.1875M65 57V42.5M65 57L57 47M65 57L58.1586 60.8483M65 57L60.5789 67.5M65 42.5L57 38L54 39.6875M65 42.5L57 47M65 42.5V27.5M57 47L65 27.5M57 47L54 39.6875M57 47L54 45.3125M57 47L54 50.75M57 23L65 27.5M57 23L54 24.6875V39.6875M57 23V60M65 27.5L57 32L54 30.3125",stroke:"#7B8CA8",strokeWidth:"1.2"}),o=(0,v.jsx)("path",{d:"M54 76C54 78.7614 49.0751 81 43 81C36.9249 81 32 78.7614 32 76M54 76H60.5V63L54 57M54 76V57M32 76H25V63L32 57M32 76V57M32 26V57M54 26V57M54 45C54 47.7614 49.0751 50 43 50V35C49.0751 35 54 32.7614 54 30",stroke:"#7B8CA8",strokeWidth:"1.2"}),l=(0,v.jsx)("path",{d:"M43 45.5701H44.8976L45.8465 43.1981L46.9679 42.7335L49.3162 43.7399L50.658 42.3981L49.6516 40.0499L50.1161 38.9284L52.4882 37.9795V36.0819L50.1161 35.1331L49.6516 34.0116M47.1334 34.9653C47.5197 35.5597 47.7441 36.269 47.7441 37.0307C47.7441 39.1268 46.0449 40.826 43.9488 40.826C43.6212 40.826 43.3033 40.7845 43 40.7064",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinejoin:"round"}),s=(0,v.jsx)("path",{d:"M63.5464 78.6739L64.9606 78.0321L67.4355 78.5135L68.6174 78.2913L69.6174 77.1566H71.6174L72.6174 78.2913L73.7994 78.5135L76.2743 78.0321L77.6885 78.6739M63.5464 78.6739L64.607 79.7972L64.1174 80.3336L63.5464 80.4373M63.5464 78.6739V80.4373M77.6885 78.6739L76.6278 79.7972L77.1174 80.3336L77.6885 80.4373M77.6885 78.6739V80.4373M63.5464 80.4373L61.6174 80.7875V81.6952L64.1174 82.1491L64.607 82.6855L63.5464 83.8088L64.9606 84.4506L67.4355 83.9693L68.6174 84.1915L69.6174 85.3261H71.6174L72.6174 84.1915L73.7994 83.9693L76.2743 84.4506L77.6885 83.8088L76.6278 82.6855L77.1174 82.1491L79.6174 81.6952V80.7875L77.6885 80.4373",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),d=(0,v.jsx)("path",{d:"M79.6174 81.4647V84.7162L77.6885 85.0664M76.2743 87.4716L77.6885 86.8298V85.0664M76.2743 87.4716L73.7994 86.9902L72.6174 87.2124L71.6174 88.3471M76.2743 87.4716V84.7162M61.6174 81.4647V84.7162L63.5464 85.0664M71.6174 88.3471H69.6174M71.6174 88.3471V85.3261M69.6174 88.3471L68.6174 87.2124L67.4355 86.9902L64.9606 87.4716M69.6174 88.3471V85.3261M64.9606 87.4716L64.2535 87.1507L63.5464 86.8298V85.0664M64.9606 87.4716V84.6825M63.5464 84.039V85.0664M77.6885 84.039V85.0664",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),c=(0,v.jsx)("path",{d:"M73.6174 81.2412C73.6174 81.9932 72.2743 82.6028 70.6174 82.6028C68.9606 82.6028 67.61
154374 81.9932 67.6174 81.2412C67.6174 80.4892 68.9606 79.8796 70.6174 79.8796C72.2743 79.8796 73.6174 80.4892 73.6174 81.2412Z",stroke:"#7B8CA8",strokeWidth:"1.2"}),u=(0,v.jsx)("path",{d:"M90 85.3616C90 86.1136 88.6569 86.7232 87 86.7232C85.3431 86.7232 84 86.1136 84 85.3616M90 85.3616C90 84.6096 88.6569 84 87 84C85.3431 84 84 84.6096 84 85.3616M90 85.3616V87.3616C90 88.1136 88.6569 88.7232 87 88.7232C85.3431 88.7232 84 88.1136 84 87.3616V85.3616",stroke:"#7B8CA8",strokeWidth:"1.2"}),p=(0,v.jsx)("path",{d:"M82 89.8648C82 90.3425 81.3284 90.7297 80.5 90.7297C79.6716 90.7297 79 90.3425 79 89.8648M82 89.8648C82 89.3872 81.3284 89 80.5 89C79.6716 89 79 89.3872 79 89.8648M82 89.8648V91.1352C82 91.6128 81.3284 92 80.5 92C79.6716 92 79 91.6128 79 91.1352V89.8648",stroke:"#7B8CA8",strokeWidth:"1.2"}),m=(0,v.jsx)("path",{d:"M52.7555 46.7289L52.5381 45.0136L51.2951 44.6903L50.2695 46.0824L49.4558 46.1956L48.0892 45.1364L46.9817 45.7867L47.2408 47.4962L46.7455 48.1517L45.0302 48.3691L44.7069 49.612M51.1084 47.9593C49.8968 47.6442 48.6622 48.2485 48.1434 49.3385",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),i=(0,v.jsx)("path",{d:"M39 80.5L38 83.5C38 84.8807 40.2386 86 43 86C45.7614 86 48 84.8807 48 83.5L47 80.5",stroke:"#7B8CA8",strokeWidth:"1.2"}),r=(0,v.jsx)("path",{d:"M32 77L31 80C31 81.3807 33.2386 82.5 36 82.5C36.9107 82.5 37.7646 82.3783 38.5 82.1655",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),a=(0,v.jsx)("path",{d:"M54 77L55 80C55 81.3807 52.7614 82.5 50 82.5C49.0893 82.5 48.2354 82.3783 47.5 82.1655",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),f[0]=t,f[1]=n,f[2]=i,f[3]=r,f[4]=a,f[5]=o,f[6]=l,f[7]=s,f[8]=d,f[9]=c,f[10]=u,f[11]=p,f[12]=m):(t=f[0],n=f[1],i=f[2],r=f[3],a=f[4],o=f[5],l=f[6],s=f[7],d=f[8],c=f[9],u=f[10],p=f[11],m=f[12]),f[13]!==e?(h=(0,v.jsxs)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t,n,o,l,s,d,c,u,p,m,i,r,a]}),f[13]=e,f[14]=h):h=f[14],h},Gb=e=>{let t,n,i,r,a,o,l,s,d=(0,j.c)(9);return d[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)("path",{d:"M35 84.5L41.7308 67H50V69.5M65 84.5L58.2692 67M32 65H42.5H50H57.5H81V23H19V65H24",stroke:"#7B8CA8",strokeWidth:"1.2"}),n=(0,v.jsx)("path",{d:"M84 16V23H16V16M84 16H16M84 16L82 14H18L16 16",stroke:"#7B8CA8",strokeWidth:"1.2"}),i=(0,v.jsx)("path",{d:"M24 65H18L17 67H83L82 65H32",stroke:"#7B8CA8",strokeWidth:"1.2"}),r=(0,v.jsx)("circle",{cx:"50",cy:"72",r:"2",stroke:"#7B8CA8",strokeWidth:"1.2"}),a=(0,v.jsx)("path",{d:"M24 63C24 61.8954 24.8954 61 26 61H30C31.1046 61 32 61.8954 32 63V67H24V63Z",stroke:"#7B8CA8",strokeWidth:"1.2"}),o=(0,v.jsx)("path",{d:"M24 65C24 63.8954 24.8954 63 26 63H30C31.1046 63 32 63.8954 32 65V67H24V65Z",stroke:"#7B8CA8",strokeWidth:"1.2"}),l=(0,v.jsx)("path",{d:"M28 44.9975C31.0617 44.62 33.5601 42.4793 35.2478 39.995C36.199 38.5947 36.9116 37.0761 36.9653 35.3597C36.9973 34.3355 36.8332 33.1459 35.8944 32.5454C35.3035 32.1675 34.4935 32.0285 33.8044 32.0022C32.7788 31.9631 32.1643 32.4357 31.8489 33.4197C30.3123 38.2145 33.0184 42.7025 36.3911 45.8977C38.1152 47.531 40.0746 48.9275 42.1179 50.1294C43.9867 51.2287 46.003 52.2595 48.1189 52.7885C48.9466 52.9954 50.4951 53.3913 51.3211 52.954C52.3579 52.4051 51.8285 49.7323 51.7091 48.9809C51.3862 46.9486 50.7293 45.0311 49.8726 43.1662C49.3791 42.0918 48.7948 40.8004 47.9999 39.8967C47.4959 39.3237 47.1331 39.4889 47.1101 40.2278C47.0699 41.5204 47.5768 42.7535 48.3103 43.7973C50.633 47.1024 54.4924 49.4656 58.2792 50.6985C59.9643 51.2471 61.8953 51.7306 63.6853 51.6193C65.3845 51.5137 65.6225 50.1321 65.7287 48.655C65.9958 44.9405 64.9629 40.7695 62.6403 37.7963C61.615 36.4839 60.3547 35.6334 58.6879 35.4476C57.7554 35.3437 56.665 35.3303 55.7391 35.5097C54.8073 35.6903 54.0162 36.297 54.3371 37.3462C54.6464 38.3572 55.8044 39.0666 56.6444 39.5759C57.983 40.3876 59.4813 40.9898 61.0262 41.2624C63.2658 41.6576 65.1745 41.1715 67.141 40.1346C67.9966 39.6835 68.8825 39.1795 69.4379 38.3861",stroke:"#7B8CA8",strokeWidth:"1.2"}),d[0]=t,d[1]=n,d[2]=i,d[3]=r,d[4]=a,d[5]=o,d[6]=l):(t=d[0],n=d[1],i=d[2],r=d[3],a=d[4],o=d[5],l=d[6]),d[7]!==e?(s=(0,v.jsxs)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t,n,i,r,a,o,l]}),d[7]=e,d[8]=s):s=d[8],s},Gv=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(16);return g[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)("path",{d:"M35.5034 34.5961C35.
15436531 34.1763 35.8628 33.792 36.1352 33.4478C37.6813 31.4827 40.9503 31.2145 44.9898 32.3554M35.5034 34.5961L24.12 78.5806C23.4656 81.1092 26.1309 83.2083 28.4357 81.9796L68.4485 60.6484M35.5034 34.5961C34.2315 38.1622 37.2902 44.2842 43.0792 50.0342M68.4485 60.6484C68.8174 60.4078 69.1391 60.118 69.4084 59.7777C70.9736 57.7883 70.4521 54.4677 68.3472 50.7308M68.4485 60.6484C65.1795 62.7806 58.1999 61.0522 51.0413 56.4338M49.3164 55.2667C48.6043 54.7622 47.8933 54.2299 47.1867 53.6707C46.3331 52.9953 45.5161 52.3044 44.7387 51.6037M49.3164 55.2667C49.8913 55.674 50.4669 56.0632 51.0413 56.4338M49.3164 55.2667C52.3445 53.1871 58.7283 49.8329 66.4965 47.8874M51.0413 56.4338C55.9305 53.432 62.4593 51.6876 68.3472 50.7308M43.0792 50.0342C43.6098 50.5612 44.1634 51.0852 44.7387 51.6037M43.0792 50.0342C44.4006 45.7138 45.8116 38.387 44.9898 32.3554M44.7387 51.6037C47.6743 44.2968 48.7135 38.3712 48.6643 33.6916M63.9622 36.487C63.2905 34.23 62.35 29.5386 63.9622 28.8293C65.9774 27.9426 68.5569 33.5045 70.8139 32.2148C73.0709 30.9251 69.4435 27.7814 70.8139 25.2019C72.1842 22.6224 79.6002 28.4262 81.2123 23.4285C82.502 19.4304 79.7614 16.6574 78.2298 15.7708M66.4965 47.8874C70.7697 46.8171 75.462 46.1731 80.2449 46.4019L80.2449 49.7068C77.5329 49.6936 73.1535 49.9498 68.3472 50.7308M66.4965 47.8874C64.45 45.1054 61.6564 42.2264 58.3003 39.5859C55.0633 37.039 51.7429 35.0416 48.6643 33.6916M48.6643 33.6916C48.5822 25.8794 45.4671 21.5396 43.0792 20.043L39.941 23.4285C42.9851 25.0774 44.4569 28.4441 44.9898 32.3554",stroke:"#7B8CA8",strokeWidth:"1.2"}),n=(0,v.jsx)("path",{d:"M32.2094 47.3001C31.0515 50.5465 34.6857 56.6214 40.9597 61.5862C47.2404 66.5562 53.9958 68.696 56.8839 66.8122",stroke:"#7B8CA8",strokeWidth:"1.2"}),l=(0,v.jsx)("path",{d:"M28.8867 60.1903C28.1245 62.3275 30.5169 66.3267 34.6472 69.595C38.7818 72.8669 43.229 74.2755 45.1303 73.0354",stroke:"#7B8CA8",strokeWidth:"1.2"}),s=(0,v.jsx)("path",{d:"M26.2718 70.2225C25.8147 71.5039 27.2491 73.9016 29.7254 75.8611C32.2044 77.8228 34.8707 78.6673 36.0106 77.9238",stroke:"#7B8CA8",strokeWidth:"1.2"}),d=(0,v.jsx)("path",{d:"M28.0529 44.1724C29.5354 43.1981 32.3735 40.6904 31.8652 38.4538C31.2298 35.6581 22.8425 38.9622 22.7155 36.5477C22.5884 34.1331 27.0361 30.575 26.909 28.6688C26.7819 26.7626 18.6489 30.8291 18.6489 26.8896C18.6489 23.738 21.36 22.1029 22.7155 21.6793",stroke:"#7B8CA8",strokeWidth:"1.2"}),c=(0,v.jsx)("rect",{x:"21.8833",y:"50.1122",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 21.8833 50.1122)",stroke:"#7B8CA8",strokeWidth:"1.2"}),u=(0,v.jsx)("rect",{x:"16.0527",y:"36.722",width:"3.03077",height:"3.03077",transform:"rotate(4.36851 16.0527 36.722)",stroke:"#7B8CA8",strokeWidth:"1.2"}),p=(0,v.jsx)("rect",{x:"27.9448",y:"22.8353",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 27.9448 22.8353)",stroke:"#7B8CA8",strokeWidth:"1.2"}),m=(0,v.jsx)("rect",{x:"53.7065",y:"33.443",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 53.7065 33.443)",stroke:"#7B8CA8",strokeWidth:"1.2"}),h=(0,v.jsx)("rect",{x:"67.3447",y:"13.743",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 67.3447 13.743)",stroke:"#7B8CA8",strokeWidth:"1.2"}),i=(0,v.jsx)("rect",{x:"74.9219",y:"54.6584",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 74.9219 54.6584)",stroke:"#7B8CA8",strokeWidth:"1.2"}),r=(0,v.jsx)("rect",{x:"70.3755",y:"66.7814",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 70.3755 66.7814)",stroke:"#7B8CA8",strokeWidth:"1.2"}),a=(0,v.jsx)("rect",{x:"77.9526",y:"78.9045",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 77.9526 78.9045)",stroke:"#7B8CA8",strokeWidth:"1.2"}),o=(0,v.jsx)("rect",{x:"82.4985",y:"62.2353",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 82.4985 62.2353)",stroke:"#7B8CA8",strokeWidth:"1.2"}),g[0]=t,g[1]=n,g[2]=i,g[3]=r,g[4]=a,g[5]=o,g[6]=l,g[7]=s,g[8]=d,g[9]=c,g[10]=u,g[11]=p,g[12]=m,g[13]=h):(t=g[0],n=g[1],i=g[2],r=g[3],a=g[4],o=g[5],l=g[6],s=g[7],d=g[8],c=g[9],u=g[10],p=g[11],m=g[12],h=g[13]),g[14]!==e?(f=(0,v.jsxs)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t,n,l,s,d,c,u,p,m,h,i,r,a,o]}),g[14]=e,g[15]=f):f=g[15],f},Gj=e=>{let t,n,i,r,a,o,l,s,d,c=(0,j.c)(16),{scheduleState:u,selectedDate:p}=e;switch(u){case"succeeded":n="When a scheduled document is successfully published it moves to this list view.",i="No completed scheduled publications ... yet",t=Gx;break;case"cancelled":n="Schedules can fail for several reasons, for example when their documents are deleted. When they do, they show up here.",i="No failed scheduled publications",t=Gv;break;case"scheduled":n="When editing a document, create a new scheduled publication from the menu next to the Publish button.",i="No upcoming scheduled publications",t=Gb}if(p){let e;n="No schedules for this date.",c[0]!==p?(e=(0,nn.GP)(p,"d MMMM yyyy"),c[0]=p,c[1]=e):e=c[1],i=e,t=Gb}return c[2]!==t?(r=t&&(0,v.jsx)(t,{}),c[2]=t,c[3]=r):r=c[3],c[4]!==r?(a=(0,v.jsx)(I.so,{justify:"center",children:r}),c[4]=r,c[5]=a):a=c[5],c[6]!==i?(o=i&&(0,v.jsx)(I.DZ,{align:"center",size:1,children:i}),c[6]=i,c[7]=o):o=c[7],c[8]!==n?(l=n&&(0,v.jsx)(I.EY,{align:"center",size:1,children:n}),c[8]=n,c[9]=l):l=c[9],c[10]!==o||c[11]!==l?(s=(0,v.jsxs)(I.BJ,{space:4,children:[o,l]}
1543),c[10]=o,c[11]=l,c[12]=s):s=c[12],c[13]!==a||c[14]!==s?(d=(0,v.jsx)(I.Zp,{paddingX:6,paddingBottom:8,paddingTop:7,radius:2,shadow:1,children:(0,v.jsxs)(I.BJ,{space:4,children:[a,s]})}),c[13]=a,c[14]=s,c[15]=d):d=c[15],d};function Gw(e){return e.documents?.[0]}function G_(e){return Gw(e)?.documentId.replaceAll("drafts.","")}function Gk(e){let t,n,i=(0,j.c)(5);i[0]!==e?(t=Gw(e),i[0]=e,i[1]=t):t=i[1];let r=t,a=R8(),o=r.documentType;e:{let e;if(!o){n=void 0;break e}i[2]!==a||i[3]!==o?(e=a.get(o),i[2]=a,i[3]=o,i[4]=e):e=i[4],n=e}return n}let GS=(0,eI.I4)(I.dU).withConfig({displayName:"DateWithTooltipElementQuery",componentId:"sc-hcyssw-0"})`.date-small{display:inline;}.date-medium{display:none;}.date-large{display:none;}&[data-eq-min~='1']{.date-small{display:none;}.date-medium{display:inline;}.date-large{display:none;}}&[data-eq-min~='2']{.date-small{display:none;}.date-medium{display:none;}.date-large{display:inline;}}`;function GI(e){let t,n=(0,j.c)(3),{children:i,value:r}=e;return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(S.Nj.Provider,{value:r,children:i}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t}function GT(e){let t,n,i,r=(0,j.c)(8),[a,o]=(0,_.useState)(!1);r[0]!==e?(t=e&&e?.executeAt?{date:e.executeAt}:null,r[0]=e,r[1]=t):t=r[1];let[l,s]=(0,_.useState)(t);r[2]!==e?(n=t=>{let n=e?.executeAt&&new Date(e.executeAt).getTime()===new Date(t?.date).getTime();s(t),o(!n)},r[2]=e,r[3]=n):n=r[3];let d=n;return r[4]!==l||r[5]!==d||r[6]!==a?(i={formData:l,isDirty:a,onFormChange:d},r[4]=l,r[5]=d,r[6]=a,r[7]=i):i=r[7],i}function GE(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(27),{date:c,focused:u,isCurrentMonth:p,isToday:m,customValidation:h,onSelect:f,selected:g}=e;e:{let e;if(!h){t=!0;break e}d[0]!==h||d[1]!==c?(e=h((0,nk.D)(c)),d[0]=h,d[1]=c,d[2]=e):e=d[2],t=e}let y=t;d[3]!==c||d[4]!==y||d[5]!==f?(n=()=>{y&&f(c)},d[3]=c,d[4]=y,d[5]=f,d[6]=n):n=d[6];let C=n;d[7]!==c?(i=c.toDateString(),d[7]=c,d[8]=i):i=d[8];let x=u?"true":"",b=!y,w=m||g?"primary":"default",_=!g&&!p;d[9]===Symbol.for("react.memo_cache_sentinel")?(r={textAlign:"center"},d[9]=r):r=d[9];let k=p?"medium":"regular";return d[10]!==c?(a=c.getDate(),d[10]=c,d[11]=a):a=d[11],d[12]!==_||d[13]!==k||d[14]!==a?(o=(0,v.jsx)(I.EY,{muted:_,style:r,weight:k,children:a}),d[12]=_,d[13]=k,d[14]=a,d[15]=o):o=d[15],d[16]!==C||d[17]!==g||d[18]!==o||d[19]!==i||d[20]!==x||d[21]!==b||d[22]!==w?(l=(0,v.jsx)(I.Zp,{"aria-label":i,"aria-pressed":g,as:"button",__unstable_focusRing:!0,"data-weekday":!0,"data-focused":x,disabled:b,role:"button",tabIndex:-1,onClick:C,padding:3,radius:2,selected:g,tone:w,children:o}),d[16]=C,d[17]=g,d[18]=o,d[19]=i,d[20]=x,d[21]=b,d[22]=w,d[23]=l):l=d[23],d[24]!==g||d[25]!==l?(s=(0,v.jsx)("div",{"aria-selected":g,"data-ui":"CalendarDay",children:l}),d[24]=g,d[25]=l,d[26]=s):s=d[26],s}let G$=["January","February","March","April","May","June","July","August","September","October","November","December"],GA=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],GD=(0,ew.A)(0,24),Gz=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],GP=[1,2,3,4,5,6];function GR(e){let t,n,i,r,a,o=(0,j.c)(20),{customValidation:l,timeZoneScope:s}=e,{getCurrentZoneDate:d}=ky(s),c=e.hidden||!1;if(o[0]===Symbol.for("react.memo_cache_sentinel")?(t={gridTemplateColumns:"repeat(7, minmax(44px, 46px))"},n=GA.map(GN),o[0]=t,o[1]=n):(t=o[0],n=o[1]),o[2]!==l||o[3]!==d||o[4]!==e.date||o[5]!==e.focused||o[6]!==e.onSelect||o[7]!==e.selected){let t;o[9]!==l||o[10]!==d||o[11]!==e.focused||o[12]!==e.onSelect||o[13]!==e.selected?(t=(t,n)=>t.days.map((t,i)=>{let r=e.focused&&(0,nd.r)(t,e.focused),a=e.selected&&(0,nd.r)(t,e.selected),o=(0,nd.r)(t,d()),s=e.focused&&(0,nc.t)(t,e.focused);return(0,v.jsx)(GE,{date:t,focused:r,isCurrentMonth:s,isToday:o,customValidation:l,onSelect:e.onSelect,selected:a},`${n}-${i}`)}),o[9]=l,o[10]=d,o[11]=e.focused,o[12]=e.onSelect,o[13]=e.selected,o[14]=t):t=o[14],i=(e=>{let t;return(t=(0,nr.w)(e),(0,na.Y)({start:t,end:(0,no.W)(t)}).map(e=>[e,...GP.map(t=>(0,nl.f)(e,t))])).map(e=>({number:(0,ns.N)(e[0]),days:e}))})(e.date).map(t),o[2]=l,o[3]=d,o[4]=e.date,o[5]=e.focused,o[6]=e.onSelect,o[7]=e.selected,o[8]=i}else i=o[8];return o[15]!==i?(r=(0,v.jsxs)(I.xA,{gap:1,style:t,children:[n,i]}),o[15]=i,o[16]=r):r=o[16],o[17]!==c||o[18]!==r?(a=(0,v.jsx)(I.az,{"aria-hidden":c,"data-ui":"CalendarMonth",children:r}),o[17]=c,o[18]=r,o[19]=a):a=o[19],a}function GN(e){return(0,v.jsx)(I.az,{paddingY:2,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",style:{textAlign:"center"},children:e})},e)}let GO=e=>{let t,n,i,r,a=(0,j.c)(8);a[0]!==e?({onChange:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=e=>{let n=parseInt(e.currentTarget.value,10);isNaN(n)||t(n)},a[3]=t,a[4]=i):i=a[4];let o=i;return a[5]!==o||a[6]!==n?(r=(0,v.jsx)(kN,{"data-testid":"date-input",...n,onChange:o,inputMode:"numeric"}),a[5]=o,a[6]=n,a[7]=r):r=a[7],r},GV=(0,v.jsx)("span",{"data-preserve-focus":!0,style:{overflow:"hidden",position:"absolute",outline:"none"},tabIndex:-1}),GM=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z,P,R,N,O,V,M,L,F,B,Y=(0,j.c)(95),{getCurrentZoneDate:H,zoneDateToUtc:U}=ky(e.timeZoneScope);Y[0]!==e?({selectTime:o,onFocusedDateChange:i,selectedDate:l,focusedDate:s,timeStep:d,onSelect:r,customValidation:n,timeZoneScope:c,...a}=e,Y[0]=e,Y[1]=n,Y[2]=i,Y[3]=r,Y[4]=a,Y[5]=o,Y[6]=l,Y[7]=s,Y[8]=d,Y[9]=c):(n=Y[1],i=Y[2],r=Y[3],a=Y[4],o=Y[5],l=Y[6],s=Y[7],d=Y[8],c=Y[9]),Y[10]!==H||Y[11]!==l?(u=void 0===l?H():l,Y[10]=H,Y[11
1543]=l,Y[12]=u):u=Y[12];let Z=u,q=void 0===s?Z:s,W=void 0===d?1:d;Y[13]!==i||Y[14]!==U?(p=e=>i(U(e)),Y[13]=i,Y[14]=U,Y[15]=p):p=Y[15];let J=p;Y[16]!==q||Y[17]!==J?(m=e=>J((0,nu.X)((0,np.Z)(q,e),1)),Y[16]=q,Y[17]=J,Y[18]=m):m=Y[18];let K=m;Y[19]!==K?(h=e=>K(Number(e.currentTarget.value)),Y[19]=K,Y[20]=h):h=Y[20];let G=h;Y[21]!==q||Y[22]!==J?(f=e=>J((0,nm.P)(q,e)),Y[21]=q,Y[22]=J,Y[23]=f):f=Y[23];let X=f;Y[24]!==q||Y[25]!==J?(g=e=>J((0,nh.i)(q,e)),Y[24]=q,Y[25]=J,Y[26]=g):g=Y[26];let Q=g;Y[27]!==r||Y[28]!==Z||Y[29]!==U?(y=e=>{r(U((0,nf.g)((0,ng.a)(e,Z.getHours()),Z.getMinutes())))},Y[27]=r,Y[28]=Z,Y[29]=U,Y[30]=y):y=Y[30];let ee=y;Y[31]!==r||Y[32]!==Z||Y[33]!==U?(C=e=>{let t=Number(e.currentTarget.value);r(U((0,nf.g)(Z,t)))},Y[31]=r,Y[32]=Z,Y[33]=U,Y[34]=C):C=Y[34];let et=C;Y[35]!==r||Y[36]!==Z||Y[37]!==U?(x=e=>{let t=Number(e.currentTarget.value);r(U((0,ng.a)(Z,t)))},Y[35]=r,Y[36]=Z,Y[37]=U,Y[38]=x):x=Y[38];let en=x;Y[39]!==r||Y[40]!==Z||Y[41]!==U?(b=(e,t)=>{r(U((0,ng.a)((0,nf.g)(Z,t),e)))},Y[39]=r,Y[40]=Z,Y[41]=U,Y[42]=b):b=Y[42];let ei=b,er=(0,_.useRef)(null);Y[43]===Symbol.for("react.memo_cache_sentinel")?(w=()=>er.current,Y[43]=w):w=Y[43],(0,_.useImperativeHandle)(t,w),Y[44]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{er.current?.querySelector('[data-focused="true"]')?.focus()},Y[44]=k):k=Y[44];let ea=k;Y[45]!==q||Y[46]!==i||Y[47]!==U?(S=e=>{if(Gz.includes(e.key)){if(e.preventDefault(),e.currentTarget.hasAttribute("data-calendar-grid"))return void ea();"ArrowUp"===e.key&&i(U((0,nl.f)(q,-7))),"ArrowDown"===e.key&&i(U((0,nl.f)(q,7))),"ArrowLeft"===e.key&&i(U((0,nl.f)(q,-1))),"ArrowRight"===e.key&&i(U((0,nl.f)(q,1))),er.current?.querySelector("[data-preserve-focus]")?.focus()}},Y[45]=q,Y[46]=i,Y[47]=U,Y[48]=S):S=Y[48];let eo=S;Y[49]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{ea()},E=[ea],Y[49]=T,Y[50]=E):(T=Y[49],E=Y[50]),(0,_.useEffect)(T,E),Y[51]===Symbol.for("react.memo_cache_sentinel")?($=()=>{document.activeElement?.matches("[data-calendar-grid], [data-calendar-grid] [data-preserve-focus]")&&ea()},Y[51]=$):$=Y[51],Y[52]!==q?(A=[er,ea,q],Y[52]=q,Y[53]=A):A=Y[53],(0,_.useEffect)($,A),Y[54]!==r?(D=()=>r(new Date),Y[54]=r,Y[55]=D):D=Y[55];let el=D;return Y[56]!==q?(z=q?.getMonth(),Y[56]=q,Y[57]=z):z=Y[57],Y[58]!==G||Y[59]!==X||Y[60]!==z?(P=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(GL,{moveFocusedDate:X,onChange:G,value:z})}),Y[58]=G,Y[59]=X,Y[60]=z,Y[61]=P):P=Y[61],Y[62]!==q?(R=q.getFullYear(),Y[62]=q,Y[63]=R):R=Y[63],Y[64]!==X||Y[65]!==Q||Y[66]!==R?(N=(0,v.jsx)(I.az,{marginLeft:2,children:(0,v.jsx)(GB,{moveFocusedDate:X,onChange:Q,value:R})}),Y[64]=X,Y[65]=Q,Y[66]=R,Y[67]=N):N=Y[67],Y[68]!==P||Y[69]!==N?(O=(0,v.jsxs)(I.so,{children:[P,N]}),Y[68]=P,Y[69]=N,Y[70]=O):O=Y[70],Y[71]!==n||Y[72]!==q||Y[73]!==ee||Y[74]!==Z||Y[75]!==c?(V=(0,v.jsx)(GR,{date:q,focused:q,customValidation:n,onSelect:ee,selected:Z,timeZoneScope:c}),Y[71]=n,Y[72]=q,Y[73]=ee,Y[74]=Z,Y[75]=c,Y[76]=V):V=Y[76],Y[77]!==eo||Y[78]!==V?(M=(0,v.jsxs)(I.az,{"data-calendar-grid":!0,onKeyDown:eo,marginTop:2,overflow:"hidden",tabIndex:0,children:[V,GV]}),Y[77]=eo,Y[78]=V,Y[79]=M):M=Y[79],Y[80]!==O||Y[81]!==M?(L=(0,v.jsxs)(I.az,{padding:2,children:[O,M]}),Y[80]=O,Y[81]=M,Y[82]=L):L=Y[82],Y[83]!==en||Y[84]!==et||Y[85]!==el||Y[86]!==ei||Y[87]!==o||Y[88]!==Z||Y[89]!==W?(F=o&&(0,v.jsxs)(I.az,{padding:2,style:{borderTop:"1px solid var(--card-border-color)"},children:[(0,v.jsxs)(I.so,{align:"center",children:[(0,v.jsxs)(I.so,{align:"center",flex:1,children:[(0,v.jsx)(I.az,{children:(0,v.jsx)(I.l6,{"aria-label":"Select hour",value:Z?.getHours(),onChange:en,children:GD.map(GY)})}),(0,v.jsx)(I.az,{paddingX:1,children:(0,v.jsx)(I.EY,{children:":"})}),(0,v.jsx)(I.az,{children:(0,v.jsx)(I.l6,{"aria-label":"Select minutes",value:Z?.getMinutes(),onChange:et,children:(0,ew.A)(0,60,W).map(GH)})})]}),(0,v.jsx)(I.az,{marginLeft:2,children:(0,v.jsx)(I.$n,{text:"Set to current time",mode:"bleed",onClick:el})})]}),!1]}),Y[83]=en,Y[84]=et,Y[85]=el,Y[86]=ei,Y[87]=o,Y[88]=Z,Y[89]=W,Y[90]=F):F=Y[90],Y[91]!==a||Y[92]!==L||Y[93]!==F?(B=(0,v.jsxs)(I.az,{"data-ui":"Calendar",...a,ref:er,children:[L,F]}),Y[91]=a,Y[92]=L,Y[93]=F,Y[94]=B):B=Y[94],B});function GL(e){let t,n,i,r,a,o,l,s=(0,j.c)(16),{moveFocusedDate:d,onChange:c,value:u}=e;s[0]!==d?(t=()=>d(-1),s[0]=d,s[1]=t):t=s[1];let p=t;s[2]!==d?(n=()=>d(1),s[2]=d,s[3]=n):n=s[3];let m=n;return s[4]!==p?(i=(0,v.jsx)(I.$n,{"aria-label":"Go to previous month",onClick:p,mode:"bleed",icon:eT.YJP,paddingX:2,radius:0}),s[4]=p,s[5]=i):i=s[5],s[6]===Symbol.for("react.memo_cache_sentinel")?(r=G$.map(GF),s[6]=r):r=s[6],s[7]!==c||s[8]!==u?(a=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.l6,{radius:0,value:u,onChange:c,children:r})}),s[7]=c,s[8]=u,s[9]=a):a=s[9],s[10]!==m?(o=(0,v.jsx)(I.$n,{"aria-label":"Go to next month",mode:"bleed",icon:eT.vKP,onClick:m,paddingX:2,radius:0}),s[10]=m,s[11]=o):o=s[11],s[12]!==i||s[13]!==a||s[14]!==o?(l=(0,v.jsxs)(I.so,{flex:1,children:[i,a,o]}),s[12]=i,s[13]=a,s[14]=o,s[15]=l):l=s[15],l}function GF(e,t){return(0,v.jsx)("option",{value:t,children:e},t)}function GB(e){let t,n,i,r,a,o,l,s=(0,j.c)(16),{moveFocusedDate:d,onChange:c,value:u}=e;s[0]!==d?(t=()=>d(-12),s[0]=d,s[1]=t):t=s[1];let p=t;s[2]!==d?(n=()=>d(12),s[2]=d,s[3]=n):n=s[3];let m=n;return s[4]!==p?(i=(0,v.jsx)(I.$n,{"aria-label":"Previous year",onClick:p,mode:"bleed",icon:eT.YJP,paddingX:2,radius:0}),s[4]=p,s[5]=i):i=s[5],s[6]===Symbol.for("react.memo_cache_sentinel")?(r={width:65},s[6]=r):r=s[6],s[7]!==c||s[8]!==u?(a=(0,v.jsx)(GO,{value:u,onChange:c,radius:0,style:r}),s[7]=c,s[8]=u,s[9]=a):a=s[9],s[10]!==m?(o=(0,v.jsx)(I.$n,{"aria-label":"Next year",onClick:m,mode:"bleed",icon:eT.vKP,paddingX:2,radius:0}),s[10]=m,s[11]=o):o=s[11],s[12]!==i||s[13]!==a||s[14]!==o?(l=(0,v.jsxs)(I.so,{children:[i,a,o]}),s[12]=i,s[13]=a,s[14]=o,s[15]=l):l=s[15],l}function GY(e){return(0,v.jsx)("option",{value:e,children:`${e}`.padStart(2,"0")},e)}function GH(e){return(0,v.jsx)("option",{value:e,children:`${e}`.padStart(2,"0")},e)}let GU=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(24);p[0]!==e?({value:n,onChange:r,customValidation:i,timeZoneScope:o,...a}=e,p[0]=e,p[1]=n,p[2]=i,p[3]=r,p[4]=a,p[5]=o):(n=p[1],i=p[2],r=p[3],a=p[4],o=p[5]),p[6]!==n?(l=n??new Date,p[6]=n,p[7]=l):l=p[7];let m=l,{utcToCurrentZoneDate:h}=ky(o),[f,g]=(0,_.useState)();p[8]!==r?(s=e=>{r(e),g(void 0)},p[8]=r,p[9]=s):s=p[9];let y=s;p[10]!==h||p[11]!==m?(d=h(m),p[10]=h,p[11]=m,p[12]=d):d=p[12];let C=f||m;return p[13]!==C||p[14]!==h?(c=h(C),p[13]=C,p[14]=h,p[15]=c):c=p[15],p[16]!==i||p[17]!==y||p[18]!==t||p[19]!==a||p[20]!==d||p[21]!==c||p[22]!==o?(u=(0,v.jsx)(GM,{...a,ref:t,selectedDate:d,onSelect:y,focusedDate:c,onFocusedDateChange:g,customValidation:i,timeZoneScope:o}),p[16]=i,p[17]=y,p[18]=t,p[19]=a,p[20]=d,p[21]=c,p[22]=o,p[23]=u):u=p[23],u}),GZ=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w=(0,j.c)(32);
1543w[0]!==e?({value:c,inputValue:i,customValidation:n,onInputChange:a,onChange:r,selectTime:l,timeStep:s,timeZoneScope:d,...o}=e,w[0]=e,w[1]=n,w[2]=i,w[3]=r,w[4]=a,w[5]=o,w[6]=l,w[7]=s,w[8]=d,w[9]=c):(n=w[1],i=w[2],r=w[3],a=w[4],o=w[5],l=w[6],s=w[7],d=w[8],c=w[9]);let k=(0,_.useRef)(null),S=(0,_.useRef)(null),T=(0,_.useRef)(null);w[10]===Symbol.for("react.memo_cache_sentinel")?(u=()=>S.current,w[10]=u):u=w[10],(0,_.useImperativeHandle)(t,u);let[E,$]=(0,_.useState)(!1),A=(0,I.WP)();w[11]===Symbol.for("react.memo_cache_sentinel")?(p=()=>$(!1),m=()=>[k.current],w[11]=p,w[12]=m):(p=w[11],m=w[12]),(0,I.PR)(p,m),w[13]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{S.current?.focus(),S.current?.select()},w[13]=h):h=w[13];let D=h;w[14]===Symbol.for("react.memo_cache_sentinel")?(f=e=>{"Escape"===e.key&&$(!1)},w[14]=f):f=w[14];let z=f;w[15]===Symbol.for("react.memo_cache_sentinel")?(g=()=>$(!0),w[15]=g):g=w[15];let P=g;w[16]===Symbol.for("react.memo_cache_sentinel")?(y={padding:"5px"},w[16]=y):y=w[16],w[17]===Symbol.for("react.memo_cache_sentinel")?(C=(0,v.jsx)(I.az,{style:y,children:(0,v.jsx)(I.$n,{ref:T,icon:eT.CTc,mode:"bleed",padding:2,onClick:P,style:{display:"block"},"data-testid":"select-date-button"})}),w[17]=C):C=w[17];let R=C;return w[18]!==n||w[19]!==E||w[20]!==r||w[21]!==A||w[22]!==l||w[23]!==s||w[24]!==d||w[25]!==c?(x=E?(0,v.jsx)(I.XS,{zOffset:1e3,children:(0,v.jsx)(tL.AM,{constrainSize:!0,content:(0,v.jsx)(I.az,{overflow:"auto",children:(0,v.jsx)(tq.Ay,{onDeactivation:D,children:(0,v.jsx)(GU,{selectTime:l,timeStep:s,onKeyUp:z,value:c,onChange:r,customValidation:n,timeZoneScope:d})})}),"data-testid":"date-input-dialog",fallbackPlacements:["bottom","bottom-start","top-end","top","top-start"],floatingBoundary:A.element,open:!0,placement:"bottom-end",portal:!0,radius:2,ref:k,children:R})}):R,w[18]=n,w[19]=E,w[20]=r,w[21]=A,w[22]=l,w[23]=s,w[24]=d,w[25]=c,w[26]=x):x=w[26],w[27]!==i||w[28]!==a||w[29]!==o||w[30]!==x?(b=(0,v.jsx)(kN,{"data-testid":"date-input",ref:S,...o,value:i,onChange:a,suffix:x}),w[27]=i,w[28]=a,w[29]=o,w[30]=x,w[31]=b):b=w[31],b}),Gq=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z,P=(0,j.c)(66);P[0]!==e?({value:C,markers:l,title:y,description:i,placeholder:c,parseInputValue:d,formatInputValue:a,deserialize:r,serialize:h,selectTime:m,timeStep:f,readOnly:u,level:o,onChange:s,customValidation:n,timeZoneScope:g,...p}=e,P[0]=e,P[1]=n,P[2]=i,P[3]=r,P[4]=a,P[5]=o,P[6]=l,P[7]=s,P[8]=d,P[9]=c,P[10]=u,P[11]=p,P[12]=m,P[13]=h,P[14]=f,P[15]=g,P[16]=y,P[17]=C):(n=P[1],i=P[2],r=P[3],a=P[4],o=P[5],l=P[6],s=P[7],d=P[8],c=P[9],u=P[10],p=P[11],m=P[12],h=P[13],f=P[14],g=P[15],y=P[16],C=P[17]);let[R,N]=(0,_.useState)(null);P[18]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{N(null)},P[18]=x):x=P[18],P[19]!==C?(b=[C],P[19]=C,P[20]=b):b=P[20],(0,_.useEffect)(x,b);let{zoneDateToUtc:O}=ky(g),V=typeof C>"u";P[21]!==R||P[22]!==s||P[23]!==d||P[24]!==h||P[25]!==V||P[26]!==O?(w=e=>{let t=e.currentTarget.value,n=""===t?null:d(t);null===n?(s(null),V&&R&&N(null)):n.isValid?s(h(O(n.date))):N(t)},P[21]=R,P[22]=s,P[23]=d,P[24]=h,P[25]=V,P[26]=O,P[27]=w):w=P[27];let M=w;P[28]!==s||P[29]!==h?(k=e=>{s(e?h(e):null)},P[28]=s,P[29]=h,P[30]=k):k=P[30];let L=k,F=(0,_.useRef)(null);P[31]===Symbol.for("react.memo_cache_sentinel")?(S=()=>F.current,P[31]=S):S=P[31],(0,_.useImperativeHandle)(t,S);let B=(0,_.useId)();P[32]!==r||P[33]!==a||P[34]!==R||P[35]!==d||P[36]!==C?(T=R?d(R):C?r(C):null,E=R||(T?.isValid?a(T.date):C),P[32]=r,P[33]=a,P[34]=R,P[35]=d,P[36]=C,P[37]=T,P[38]=E):(T=P[37],E=P[38]);let Y=E;P[39]!==l?($=l.map(GW),P[39]=l,P[40]=$):$=P[40];let H=$;return P[41]!==H||P[42]!==T?(A=T?.error?[...H,{level:"error",message:T.error,path:[]}]:H,P[41]=H,P[42]=T,P[43]=A):A=P[43],P[44]!==n||P[45]!==a||P[46]!==L||P[47]!==M||P[48]!==B||P[49]!==Y||P[50]!==T?.date||P[51]!==T?.error||P[52]!==c||P[53]!==u||P[54]!==p||P[55]!==m||P[56]!==f||P[57]!==g?(D=u?(0,v.jsx)(I.ks,{value:Y,readOnly:!0}):(0,v.jsx)(GZ,{...p,id:B,selectTime:m,timeStep:f,placeholder:c||`e.g. ${a(new Date)}`,ref:F,value:T?.date,inputValue:Y||"",readOnly:!!u,onInputChange:M,onChange:L,customValidity:T?.error,customValidation:n,timeZoneScope:g}),P[44]=n,P[45]=a,P[46]=L,P[47]=M,P[48]=B,P[49]=Y,P[50]=T?.date,P[51]=T?.error,P[52]=c,P[53]=u,P[54]=p,P[55]=m,P[56]=f,P[57]=g,P[58]=D):D=P[58],P[59]!==i||P[60]!==B||P[61]!==o||P[62]!==A||P[63]!==D||P[64]!==y?(z=(0,v.jsx)(xY,{validation:A,title:y,level:o,description:i,inputId:B,children:D}),P[59]=i,P[60]=B,P[61]=o,P[62]=A,P[63]=D,P[64]=y,P[65]=z):z=P[65],z});function GW(e){return{level:e.level,path:e.path,message:e.message??e.item?.message}}function GJ(e){return e.toISOString()}function GK(e){let t=new Date(e);return t instanceof Date&&!isNaN(t.valueOf())?{isValid:!0,date:t}:{isValid:!1,error:`Invalid date value: "${e}"`}}
1543let GG=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u=(0,j.c)(30);u[0]!==e?({type:a,onChange:n,timeZoneScope:r,...i}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=r,u[4]=a):(n=u[1],i=u[2],r=u[3],a=u[4]);let{title:p,description:m,placeholder:h}=a,{scheduledPublishing:f}=cY(),g=f.inputDateTimeFormat,{getCurrentZoneDate:y,timeZone:C}=ky(r);u[5]!==a.options?(o=function(e={}){return{customValidation:e.customValidation||function(){return!0},customValidationMessage:e.customValidationMessage||"Invalid date.",calendarTodayLabel:e.calendarTodayLabel||"Today",timeStep:"timeStep"in e&&Number(e.timeStep)||1}}(a.options),u[5]=a.options,u[6]=o):o=u[6];let{customValidation:x,customValidationMessage:b,timeStep:w}=o;u[7]!==n||u[8]!==w?(l=e=>{let t=e;null!==t&&w>1&&(t=function(e,t){if(!t||1===t)return e;let n=(0,ny.H)(e),i=(0,nC.O)(n),r=i%t;return GJ(0!==r?(0,nf.g)(n,i-r):n)}(t,w)),n(t)},u[7]=n,u[8]=w,u[9]=l):l=u[9];let _=l;u[10]!==g||u[11]!==C.name?(s=e=>(0,nn.GP)(e,`${g}`,{in:(0,t2.tz)(C.name)}),u[10]=g,u[11]=C.name,u[12]=s):s=u[12];let k=s;u[13]!==x||u[14]!==b||u[15]!==y||u[16]!==g?(d=e=>{let t=(0,t7.qg)(e,`${g}`,y());return(0,t0.f)(t)?x(t)?{isValid:!0,date:t}:{isValid:!1,error:b}:{isValid:!1,error:`Invalid date. Must be in the format "${g}"`}},u[13]=x,u[14]=b,u[15]=y,u[16]=g,u[17]=d):d=u[17];let S=d;return u[18]!==x||u[19]!==m||u[20]!==k||u[21]!==t||u[22]!==_||u[23]!==S||u[24]!==h||u[25]!==i||u[26]!==w||u[27]!==r||u[28]!==p?(c=(0,v.jsx)(Gq,{...i,onChange:_,ref:t,selectTime:!0,timeStep:w,title:p,description:m,placeholder:h,serialize:GJ,deserialize:GK,formatInputValue:k,customValidation:x,parseInputValue:S,timeZoneScope:r}),u[18]=x,u[19]=m,u[20]=k,u[21]=t,u[22]=_,u[23]=S,u[24]=h,u[25]=i,u[26]=w,u[27]=r,u[28]=p,u[29]=c):c=u[29],c}),GX=e=>{let t,n,i,r,a,o=(0,j.c)(11),{onChange:l,value:s}=e,{getCurrentZoneDate:d}=ky(KX),[c,u]=(0,_.useState)();o[0]!==l?(t=e=>{e&&l&&(l({date:e}),u(e))},o[0]=l,o[1]=t):t=o[1];let p=t;o[2]!==d?(n=e=>e>d(),o[2]=d,o[3]=n):n=o[3];let m=n;o[4]===Symbol.for("react.memo_cache_sentinel")?(i=[],o[4]=i):i=o[4],o[5]!==m?(r={name:"date",options:{customValidation:m,customValidationMessage:"Date cannot be in the past."},title:"Date and time"},o[5]=m,o[6]=r):r=o[6];let h=void 0===c?s?.date:c;return o[7]!==p||o[8]!==r||o[9]!==h?(a=(0,v.jsx)(I.BJ,{space:4,children:(0,v.jsx)(I.Zp,{children:(0,v.jsx)(GG,{level:0,markers:i,onChange:p,type:r,value:h,timeZoneScope:KX})})}),o[7]=p,o[8]=r,o[9]=h,o[10]=a):a=o[10],a};function GQ(e){let t,n,i=(0,j.c)(6),{onChange:r,value:a}=e;return i[0]!==r||i[1]!==a?(t=(0,v.jsx)(GX,{onChange:r,value:a}),i[0]=r,i[1]=a,i[2]=t):t=i[2],i[3]!==e.children||i[4]!==t?(n=(0,v.jsxs)(I.BJ,{space:4,children:[e.children,t]}),i[3]=e.children,i[4]=t,i[5]=n):n=i[5],n}let G1=e=>{let t,n,i,r,a,o=(0,j.c)(12),{title:l,timeZoneScope:s}=e,{timeZone:d}=ky(s),{t:c}=as();return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)("input",{style:{opacity:0,position:"absolute",width:0},tabIndex:-1,type:"button"}),o[0]=t):t=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(n={marginTop:"-1em",marginBottom:"-1em"},o[1]=n):n=o[1],o[2]!==c||o[3]!==d.alternativeName||o[4]!==d.offset?(i=c("time-zone.time-zone-tooltip-scheduled-publishing",{alternativeName:d.alternativeName,offset:d.offset}),o[2]=c,o[3]=d.alternativeName,o[4]=d.offset,o[5]=i):i=o[5],o[6]!==i||o[7]!==s?(r=(0,v.jsx)(I.az,{marginLeft:2,style:n,children:(0,v.jsx)(kQ,{tooltipContent:i,timeZoneScope:s,useElementQueries:!0})}),o[6]=i,o[7]=s,o[8]=r):r=o[8],o[9]!==r||o[10]!==l?(a=(0,v.jsx)(K0,{children:(0,v.jsxs)(I.so,{align:"center",children:[l,t,r]})}),o[9]=r,o[10]=l,o[11]=a):a=o[11],a},G2=e=>{let t,n,i,r,a,o=(0,j.c)(16),{onClose:l,schedule:s}=e,{updateSchedule:d}=Gl(),{formData:c,isDirty:u,onFormChange:p}=GT(s);o[0]!==c||o[1]!==l||o[2]!==s||o[3]!==d?(t=async()=>{c?.date&&(await d({date:c.date,scheduleId:s.id}),l())},o[0]=c,o[1]=l,o[2]=s,o[3]=d,o[4]=t):t=o[4];let m=t,h=!u;return o[5]!==m||o[6]!==h?(n={confirmButton:{text:"Update",disabled:h,onClick:m}},o[5]=m,o[6]=h,o[7]=n):n=o[7],o[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(G1,{timeZoneScope:KX,title:"Edit schedule"}),o[8]=i):i=o[8],o[9]!==c||o[10]!==p?(r=(0,v.jsx)(GQ,{onChange:p,value:c}),o[9]=c,o[10]=p,o[11]=r):r=o[11],o[12]!==l||o[13]!==n||o[14]!==r?(a=(0,v.jsx)(tL.lG,{footer:n,header:i,id:"time-zone",onClose:l,width:1,children:r}),o[12]=l,o[13]=n,o[14]=r,o[15]=a):a=o[15],a};function G5(e,t){let n,i,r=(0,j.c)(10),{visible:a,show:o,hide:l,timeZoneScope:s}=function(e){let t,n,i,r=(0,j.c)(5),[a,o]=(0,_.useState)(!1);r[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{o(!1)},r[0]=t):t=r[0];let l=t;r[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{o(!0)},r[1]=n):n=r[1];let s=n;return r[2]!==a||r[3]!==e?(i={visible:a,show:s,timeZoneScope:e,hide:l},r[2]=a,r[3]=e,r[4]=i):i=r[4],i}(t);r[0]!==l||r[1]!==e||r[2]!==a?(n={onClose:l,schedule:e,visible:a},r[0]=l,r[1]=e,r[2]=a,r[3]=n):n=r[3];let d=n,c=a?G2:null;return r[4]!==d||r[5]!==l||r[6]!==o||r[7]!==c||r[8]!==s?(i={DialogScheduleEdit:c,dialogProps:d,timeZoneScope:s,dialogScheduleEditShow:o,hide:l},r[4]=d,r[5]=l,r[6]=o,r[7]=c,r[8]=s,r[9]=i):i=r[9],i}let G0=e=>{let t,n,i,r=(0,j.c)(13),{currentUser:a,hasPermission:o,icon:l,onClick:s,permissionsOperationLabel:d,title:c,tone:u,disabled:p}=e;r[0]!==a||r[1]!==d?(t=(0,v.jsx)(I.az,{paddingX:2,paddingY:1,children:(0,v.jsx)(R5,{currentUser:a,context:d})}),r[0]=a,r[1]=d,r[2]=t):t=r[2];let m=!o||p;return r[3]!==l||r[4]!==s||r[5]!==m||r[6]!==c||r[7]!==u?(n=(0,v.jsx)("div",{children:(0,v.jsx)(tL.Dr,{disabled:m,icon:l,onClick:s,text:c,tone:u})}),r[3]=l,r[4]=s,r[5]=m,r[6]=c,r[7]=u,r[8]=n):n=r[8],r[9]!==o||r[10]!==t||r[11]!==n?(i=(0,v.jsx)(tL.m_,{content:t,disabled:o,placement:"left",portal:!0,children:n}),r[9]=o,r[10]=t,r[11]=n,r[12]=i):i=r[12],i},G7=e=>{let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(43),{actions:p,onDelete:m,onEdit:h,schedule:f,schemaType:g}=e,{mode:y}=K5();u[0]!==f?(t=Gw(f),u[0]=f,u[1]=t):t=u[1];let C=t,x=o5(),b=g?.name;u[2]!==C.documentId||u[3]!==b?(n={id:C.documentId,type:b,permission:"publish"},u[2]=C.documentId,u[3]=b,u[4]=n):n=u[4];let[w,_]=dd(n),{deleteSchedule:k,publishSchedule:S}=Gl(),I=!_&&!w?.granted;u[5]!==h?(i=()=>{h?.()},u[5]=h,u[6]=i):i=u[6];let T=i;u[7]!==k||u[8]!==m||u[9]!==f?(r=()=>{k({schedule:f}).then(()=>m?.())},u[7]=k,u[8]=m,u[9]=f,u[10]=r):r=u[10];let E=r;u[11]!==S||u[12]!==f?(a=()=>{S({schedule:f})},u[11]=S,u[12]=f,u[13]=a):a=u[13];let $=a;return x?(u[14]!==p?.edit||u[15]!==x||u[16]!==T||u[17]!==I||u[18]!==y?(o=p?.edit&&(0,v.jsx)(G0,{
1543currentUser:x,hasPermission:!I,icon:eT.CTc,onClick:T,permissionsOperationLabel:"edit-schedules",title:"Edit schedule",disabled:"upsell"===y}),u[14]=p?.edit,u[15]=x,u[16]=T,u[17]=I,u[18]=y,u[19]=o):o=u[19],u[20]!==p?.execute||u[21]!==x||u[22]!==$||u[23]!==I||u[24]!==y?(l=p?.execute&&(0,v.jsx)(G0,{currentUser:x,hasPermission:!I,icon:eT.VQ$,onClick:$,permissionsOperationLabel:"execute-schedules",title:"Publish now",disabled:"upsell"===y}),u[20]=p?.execute,u[21]=x,u[22]=$,u[23]=I,u[24]=y,u[25]=l):l=u[25],u[26]!==p?.delete||u[27]!==x||u[28]!==E||u[29]!==I||u[30]!==y?(s=p?.delete&&(0,v.jsx)(G0,{currentUser:x,hasPermission:!I,icon:eT.ucK,onClick:E,permissionsOperationLabel:"delete-schedules",title:"Delete schedule",tone:"critical",disabled:"upsell"===y}),u[26]=p?.delete,u[27]=x,u[28]=E,u[29]=I,u[30]=y,u[31]=s):s=u[31],u[32]!==p?.clear||u[33]!==x||u[34]!==E||u[35]!==I||u[36]!==y?(d=p?.clear&&(0,v.jsx)(G0,{currentUser:x,hasPermission:!I,icon:eT.Dee,onClick:E,permissionsOperationLabel:"delete-schedules",title:"Clear completed schedule",disabled:"upsell"===y}),u[32]=p?.clear,u[33]=x,u[34]=E,u[35]=I,u[36]=y,u[37]=d):d=u[37],u[38]!==o||u[39]!==l||u[40]!==s||u[41]!==d?(c=(0,v.jsxs)(v.Fragment,{children:[o,l,s,d]}),u[38]=o,u[39]=l,u[40]=s,u[41]=d,u[42]=c):c=u[42],c):null},G3=e=>{let t,n,i,r,a=(0,j.c)(10),{actions:o,onDelete:l,onEdit:s,schedule:d,schemaType:c}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(rl,{}),a[0]=t):t=a[0],a[1]!==o||a[2]!==l||a[3]!==s||a[4]!==d||a[5]!==c?(n=(0,v.jsx)(I.W1,{children:(0,v.jsx)(G7,{actions:o,onDelete:l,onEdit:s,schedule:d,schemaType:c})}),a[1]=o,a[2]=l,a[3]=s,a[4]=d,a[5]=c,a[6]=n):n=a[6],a[7]===Symbol.for("react.memo_cache_sentinel")?(i={portal:!0,tone:"default"},a[7]=i):i=a[7],a[8]!==n?(r=(0,v.jsx)(tL.IU,{button:t,id:"contextMenu",menu:n,placement:"left",popover:i}),a[8]=n,a[9]=r):r=a[9],r},G8={validation:[],isValidating:!1};function G4(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=function(e=G8.validation){let t=e.filter(eD.Uw).length>0,n=e.filter(eD.AF).length>0,i="default";return n&&(i="default"),t&&(i="critical"),{markers:e,validationTone:i,hasError:t,hasWarning:n}}(e),n[0]=e,n[1]=t):t=n[1],t}function G6(e){let t,n,i=(0,j.c)(6),{schedule:r,updateValidation:a}=e,o=Gk(r);i[0]!==r?(t=G_(r),i[0]=r,i[1]=t):t=i[1];let l=t;return l&&o?.name?(i[2]!==l||i[3]!==o.name||i[4]!==a?(n=(0,v.jsx)(G9,{id:l,schemaName:o.name,updateValidation:a}),i[2]=l,i[3]=o.name,i[4]=a,i[5]=n):n=i[5],n):null}function G9(e){let t,n,i,r=(0,j.c)(6),{id:a,schemaName:o,updateValidation:l}=e,[s,d]=(0,_.useState)(!1);return(r[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=setTimeout(()=>{d(!0)},1500);return()=>{clearTimeout(e)}},n=[],r[0]=t,r[1]=n):(t=r[0],n=r[1]),(0,_.useEffect)(t,n),s)?(r[2]!==a||r[3]!==o||r[4]!==l?(i=(0,v.jsx)(Xe,{id:a,schemaName:o,updateValidation:l}),r[2]=a,r[3]=o,r[4]=l,r[5]=i):i=r[5],i):null}function Xe(e){let t,n,i,r=(0,j.c)(6),{id:a,schemaName:o,updateValidation:l}=e;r[0]!==a?(t=(0,tG.T4)(a),r[0]=a,r[1]=t):t=r[1];let s=Yi(t,o,!0);return r[2]!==l||r[3]!==s?(n=()=>{s.isValidating||l(s)},i=[l,s],r[2]=l,r[3]=s,r[4]=n,r[5]=i):(n=r[4],i=r[5]),(0,_.useEffect)(n,i),null}function Xt(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=e?e.replaceAll("drafts.",""):void 0,n[0]=e,n[1]=t):t=n[1],t}let Xn=(0,eI.I4)(I.EY).withConfig({displayName:"StyledText",componentId:"sc-q947a2-0"})`white-space:initial;`,Xi={error:"critical",warning:"caution",info:"primary"};function Xr(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(30),{marker:m,onClick:h,path:f,truncate:g}=e;p[0]!==m.path||p[1]!==h?(t=()=>{h&&h(m.path)},p[0]=m.path,p[1]=h,p[2]=t):t=p[2];let y=t,C=Xi[m?.level]||void 0,x=m.message??m.item?.message;p[3]!==m.level?(n="error"===m.level&&(0,v.jsx)(eT.YZv,{}),p[3]=m.level,p[4]=n):n=p[4],p[5]!==m.level?(i="warning"===m.level&&(0,v.jsx)(eT.sAQ,{}),p[5]=m.level,p[6]=i):i=p[6],p[7]!==m.level?(r="info"===m.level&&(0,v.jsx)(eT.YzR,{}),p[7]=m.level,p[8]=r):r=p[8],p[9]!==n||p[10]!==i||p[11]!==r?(a=(0,v.jsx)(I.az,{children:(0,v.jsxs)(I.EY,{size:1,children:[n,i,r]})}),p[9]=n,p[10]=i,p[11]=r,p[12]=a):a=p[12],p[13]!==f?(o=f&&(0,v.jsx)(Xn,{size:1,weight:"semibold",children:f}),p[13]=f,p[14]=o):o=p[14],p[15]!==x||p[16]!==g?(l=x&&(0,v.jsx)(Xn,{muted:!0,size:1,textOverflow:g?"ellipsis":void 0,children:x}),p[15]=x,p[16]=g,p[17]=l):l=p[17],p[18]!==o||p[19]!==l?(s=(0,v.jsxs)(I.BJ,{space:2,flex:1,paddingLeft:3,children:[o,l]}),p[18]=o,p[19]=l,p[20]=s):s=p[20],p[21]!==a||p[22]!==s?(d=(0,v.jsxs)(I.so,{children:[a,s]}),p[21]=a,p[22]=s,p[23]=d):d=p[23];let b=d;return p[24]!==b?(c=(0,v.jsx)(I.az,{padding:2,children:b}),p[24]=b,p[25]=c):c=p[25],p[26]!==y||p[27]!==C||p[28]!==c?(u=(0,v.jsx)(I.Dr,{padding:1,onClick:y,radius:2,tone:C,children:c}),p[26]=y,p[27]=C,p[28]=c,p[29]=u):u=p[29],u}function Xa(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(27),{documentType:u,kind:p,validation:m,onFocus:h,onClose:f,truncate:g}=e;if(c[0]!==u||c[1]!==p||c[2]!==f||c[3]!==h||c[4]!==g||c[5]!==m){s=Symbol.for("react.early_return_sentinel");
1543e:{let e,d,y=m.filter(eD.Uw),C=m.filter(eD.AF),x=m.filter(eD.Gm);c[14]!==f||c[15]!==h?(e=e=>{h&&h(void 0===e?[]:e),f&&f()},c[14]=f,c[15]=h,c[16]=e):e=c[16];let b=e;c[17]!==u?(d=e=>{let t=u&&u.fields,n=t&&t.find(t=>t.name===e[0]);return n&&n.type.title||""},c[17]=u,c[18]=d):d=c[18];let j=d,w=y.length>0,_=C.length>0,k=x.length>0;if(!w&&!_&&!k){s=null;break e}t=I.mc,n=0,i=p,r="validation-list",a=w&&y.map((e,t)=>(0,v.jsx)(Xr,{truncate:g,path:j(e.path),marker:e,onClick:b},t)),o=_&&C.map((e,t)=>(0,v.jsx)(Xr,{truncate:g,path:j(e.path),marker:e,onClick:b},t)),l=k&&x.map((e,t)=>(0,v.jsx)(Xr,{truncate:g,path:j(e.path),marker:e,onClick:b},t))}c[0]=u,c[1]=p,c[2]=f,c[3]=h,c[4]=g,c[5]=m,c[6]=t,c[7]=n,c[8]=i,c[9]=r,c[10]=a,c[11]=o,c[12]=l,c[13]=s}else t=c[6],n=c[7],i=c[8],r=c[9],a=c[10],o=c[11],l=c[12],s=c[13];return s!==Symbol.for("react.early_return_sentinel")?s:(c[19]!==t||c[20]!==n||c[21]!==i||c[22]!==r||c[23]!==a||c[24]!==o||c[25]!==l?(d=(0,v.jsxs)(t,{width:n,"data-kind":i,"data-testid":r,children:[a,o,l]}),c[19]=t,c[20]=n,c[21]=i,c[22]=r,c[23]=a,c[24]=o,c[25]=l,c[26]=d):d=c[26],d)}let Xo={portal:!0,constrainSize:!0,preventOverflow:!0,tone:"default",width:0,placement:"bottom-end"};function Xl(e){let t,n,i,r,a,o,l,s=(0,j.c)(21),{type:d,markers:c,menuHeader:u,documentId:p}=e,m=(0,nU.rd)(),{hasError:h,hasWarning:f}=G4(c),g=h||f?"visible":"hidden",y=(0,_.useId)()||"",C=Xt(p);s[0]!==C||s[1]!==m?(t=e=>{C&&m.navigateIntent("edit",{id:C,path:encodeURIComponent(w.dI(e))})},s[0]=C,s[1]=m,s[2]=t):t=s[2];let x=t,b=y||"";s[3]===Symbol.for("react.memo_cache_sentinel")?(n={content:"Show validation issues"},s[3]=n):n=s[3];let k=h?eT.YZv:eT.sAQ;s[4]!==g?(i={visibility:g},s[4]=g,s[5]=i):i=s[5];let S=h?"critical":"default";s[6]!==k||s[7]!==i||s[8]!==S?(r=(0,v.jsx)(tL.$n,{tooltipProps:n,mode:"bleed","data-testid":"schedule-validation-list-button",icon:k,style:i,tone:S}),s[6]=k,s[7]=i,s[8]=S,s[9]=r):r=s[9];let T=u??null;return s[10]!==c||s[11]!==x||s[12]!==d?(a=(0,v.jsx)(Xa,{documentType:d,validation:c,onFocus:x}),s[10]=c,s[11]=x,s[12]=d,s[13]=a):a=s[13],s[14]!==T||s[15]!==a?(o=(0,v.jsx)(I.W1,{padding:1,children:(0,v.jsx)(I.mc,{width:0,children:(0,v.jsxs)(I.BJ,{space:1,children:[T,a]})})}),s[14]=T,s[15]=a,s[16]=o):o=s[16],s[17]!==b||s[18]!==o||s[19]!==r?(l=(0,v.jsx)(tL.IU,{id:b,button:r,menu:o,popover:Xo}),s[17]=b,s[18]=o,s[19]=r,s[20]=l):l=s[20],l}let Xs=e=>{let t,n,i,r,a,o,l,s,d=(0,j.c)(22),{date:c,useElementQueries:u}=e;d[0]===Symbol.for("react.memo_cache_sentinel")?(t={type:"scheduledPublishing"},d[0]=t):t=d[0];let{formatDateTz:p}=ky(t);d[1]!==c?(n=(0,nA.B)(c,new Date,{addSuffix:!0}),d[1]=c,d[2]=n):n=d[2];let m=n;d[3]!==c||d[4]!==p?(i=p({date:c,format:ko}),d[3]=c,d[4]=p,d[5]=i):i=d[5];let h=i;d[6]!==c||d[7]!==p?(r=p({date:c,format:"d MMMM yyyy',' p"}),d[6]=c,d[7]=p,d[8]=r):r=d[8];let f=r;d[9]!==c||d[10]!==p?(a=p({date:c,format:"d MMM yy',' p"}),d[9]=c,d[10]=p,d[11]=a):a=d[11];let g=a;return d[12]!==h||d[13]!==f||d[14]!==g||d[15]!==u?(o=u?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{className:"date-small",children:g}),(0,v.jsx)("span",{className:"date-medium",children:f}),(0,v.jsx)("span",{className:"date-large",children:h})]}):h,d[12]=h,d[13]=f,d[14]=g,d[15]=u,d[16]=o):o=d[16],d[17]!==o?(l=(0,v.jsx)("span",{children:o}),d[17]=o,d[18]=l):l=d[18],d[19]!==m||d[20]!==l?(s=(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",children:(0,v.jsx)(tL.m_,{content:m,portal:!0,children:l})}),d[19]=m,d[20]=l,d[21]=s):s=d[21],s},Xd={portal:!0,constrainSize:!0,preventOverflow:!0,tone:"default",width:0},Xc=e=>{let t,n,i,r,a,o=(0,j.c)(6),{stateReason:l}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(tL.$n,{tooltipProps:{content:"Schedule failed"},mode:"bleed","data-testid":"schedule-validation-list-button",icon:eT.YZv,tone:"critical"}),o[0]=t):t=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(I.EY,{size:1,children:"This schedule failed to run."}),o[1]=n):n=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(I.EY,{size:1,style:{color:ez.wv[700].hex},children:(0,v.jsx)(eT.YZv,{})}),o[2]=i):i=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(r={color:ez.wv[700].hex},o[3]=r):r=o[3],o[4]!==l?(a=(0,v.jsx)(tL.IU,{id:"stateReason",button:t,menu:(0,v.jsx)(I.W1,{padding:1,children:(0,v.jsxs)(I.mc,{padding:2,width:0,children:[n,(0,v.jsxs)(I.so,{gap:3,marginTop:4,padding:1,children:[i,(0,v.jsx)(I.EY,{size:1,style:r,weight:"medium",children:l})]})]})}),popover:Xd}),o[4]=l,o[5]=a):a=o[5],a},Xu=e=>{let t,n=(0,j.c)(2),{id:i}=e;return n[0]!==i?(t=(0,v.jsx)(ua,{user:i,withTooltip:!0}),n[0]=i,n[1]=t):t=n[1],t},Xp=(0,eI.I4)(I.az).withConfig({displayName:"StatusDotPlaceholder",componentId:"sc-cgui20-0"})`width:9px;`,Xm=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z,P,R,N,O,V,M,L,F,B,Y,H,U,Z,q,W,J,K,G,X,Q,ee,et,en,ei,er,ea,eo,el,es,ed,ec,eu,ep,em,eh,ef,eg,ey,eC=(0,j.c)(163),{children:ex,contextMenu:eb,linkComponent:ev,onClick:ej,previewState:ew,publishedDocumentId:e_,schedule:ek,schemaType:eS,useElementQueries:eI}=e,{mode:eT}=K5(),[eE,e$]=(0,_.useState)(G8),{validation:eA}=eE,{hasError:eD,validationTone:ez}=G4(eA);eC[0]===Symbol.for("react.memo_cache_sentinel")?(t={type:"scheduledPublishing"},eC[0]=t):t=eC[0];let{formatDateTz:eP}=ky(t);if(eC[1]!==ex||eC[2]!==eP||eC[3]!==ev||eC[4]!==eT||eC[5]!==ej||eC[6]!==ew?.draft||eC[7]!==ew?.published||eC[8]!==ek||eC[9]!==ez){let e=K8(ek);d=e?new Date(e):null,s=I.Zp,z=1,P=2,R=1,O=ez,eC[49]!==eT||eC[50]!==ek.state?(V="upsell"===eT&&"sc
1543heduled"===ek.state?{opacity:.7}:void 0,eC[49]=eT,eC[50]=ek.state,eC[51]=V):V=eC[51],l=I.so,$="center",A=1,D="space-between",o=tL.m_,eC[52]===Symbol.for("react.memo_cache_sentinel")?(k={open:400},eC[52]=k):k=eC[52],S="bottom-end";let t=ew?.draft,j=ew?.published;eC[53]!==t||eC[54]!==j?(T=(0,v.jsx)(esy,{draft:t,published:j}),eC[53]=t,eC[54]=j,eC[55]=T):T=eC[55],E=!ew?.draft&&!ew?.published,a=I.Zp,p=!0,m=ev||void 0,h=ej||ev?"a":void 0,f=1,g=ej,y=1,C=2,x=0,b=ez,r=I.so,L="center",F=3,B="flex-start",eC[56]!==ex?(Y=ex?0:[1,2],eC[56]=ex,eC[57]=Y):Y=eC[57],eC[58]!==ex?(H=ex&&(0,v.jsx)(I.az,{style:{flexBasis:"auto",flexGrow:1},children:ex}),eC[58]=ex,eC[59]=H):H=eC[59],eC[60]!==ek.action?(u="unpublish"===ek.action&&(0,v.jsx)(I.so,{style:{flexShrink:0},children:(0,v.jsx)(I.Ex,{fontSize:0,mode:"outline",tone:KW[ek.action].badgeTone,children:ek.action})}),eC[60]=ek.action,eC[61]=u):u=eC[61],i=I.az,eC[62]===Symbol.for("react.memo_cache_sentinel")?(N=["block","none"],M={flexShrink:0,width:"90px"},eC[62]=N,eC[63]=M):(N=eC[62],M=eC[63]),n=I.BJ,c=2,w=d?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.EY,{size:1,children:eP({date:d,format:"dd/MM/yyyy"})}),(0,v.jsx)(I.EY,{size:1,children:eP({date:d,format:"p"})})]}):(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)("em",{children:"No date specified"})}),eC[1]=ex,eC[2]=eP,eC[3]=ev,eC[4]=eT,eC[5]=ej,eC[6]=ew?.draft,eC[7]=ew?.published,eC[8]=ek,eC[9]=ez,eC[10]=n,eC[11]=i,eC[12]=r,eC[13]=a,eC[14]=o,eC[15]=l,eC[16]=s,eC[17]=d,eC[18]=c,eC[19]=u,eC[20]=p,eC[21]=m,eC[22]=h,eC[23]=f,eC[24]=g,eC[25]=y,eC[26]=C,eC[27]=x,eC[28]=b,eC[29]=w,eC[30]=k,eC[31]=S,eC[32]=T,eC[33]=E,eC[34]=$,eC[35]=A,eC[36]=D,eC[37]=z,eC[38]=P,eC[39]=R,eC[40]=N,eC[41]=O,eC[42]=V,eC[43]=M,eC[44]=L,eC[45]=F,eC[46]=B,eC[47]=Y,eC[48]=H}else n=eC[10],i=eC[11],r=eC[12],a=eC[13],o=eC[14],l=eC[15],s=eC[16],d=eC[17],c=eC[18],u=eC[19],p=eC[20],m=eC[21],h=eC[22],f=eC[23],g=eC[24],y=eC[25],C=eC[26],x=eC[27],b=eC[28],w=eC[29],k=eC[30],S=eC[31],T=eC[32],E=eC[33],$=eC[34],A=eC[35],D=eC[36],z=eC[37],P=eC[38],R=eC[39],N=eC[40],O=eC[41],V=eC[42],M=eC[43],L=eC[44],F=eC[45],B=eC[46],Y=eC[47],H=eC[48];eC[64]!==n||eC[65]!==c||eC[66]!==w?(U=(0,v.jsx)(n,{space:c,children:w}),eC[64]=n,eC[65]=c,eC[66]=w,eC[67]=U):U=eC[67],eC[68]!==i||eC[69]!==N||eC[70]!==U||eC[71]!==M?(Z=(0,v.jsx)(i,{display:N,style:M,children:U}),eC[68]=i,eC[69]=N,eC[70]=U,eC[71]=M,eC[72]=Z):Z=eC[72],eC[73]===Symbol.for("react.memo_cache_sentinel")?(q=["none","block"],eC[73]=q):q=eC[73];let eR=ex?"35%":"auto";eC[74]!==eR?(W={flexShrink:0,maxWidth:"250px",width:eR},eC[74]=eR,eC[75]=W):W=eC[75],eC[76]!==d||eC[77]!==eI?(J=d?(0,v.jsx)(Xs,{date:d,useElementQueries:eI}):(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)("em",{children:"No date specified"})}),eC[76]=d,eC[77]=eI,eC[78]=J):J=eC[78],eC[79]!==W||eC[80]!==J?(K=(0,v.jsx)(I.az,{display:q,style:W,children:J}),eC[79]=W,eC[80]=J,eC[81]=K):K=eC[81],eC[82]!==ex?(G=!ex&&(0,v.jsx)(I.az,{style:{visibility:"hidden"},children:(0,v.jsx)(j8,{isPlaceholder:!0})}),eC[82]=ex,eC[83]=G):G=eC[83],eC[84]===Symbol.for("react.memo_cache_sentinel")?(X={flexShrink:0,marginLeft:"auto"},eC[84]=X):X=eC[84],eC[85]===Symbol.for("react.memo_cache_sentinel")?(Q=["none","none","block"],eC[85]=Q):Q=eC[85],eC[86]===Symbol.for("react.memo_cache_sentinel")?(ee={flexShrink:0},eC[86]=ee):ee=eC[86];let eN=ek?.author;return eC[87]!==eN?(et=(0,v.jsx)(I.az,{display:Q,marginX:3,style:ee,children:(0,v.jsx)(Xu,{id:eN})}),eC[87]=eN,eC[88]=et):et=eC[88],eC[89]===Symbol.for("react.memo_cache_sentinel")?(en=["none","block"],ei=[2,2,3],er={flexShrink:0},eC[89]=en,eC[90]=ei,eC[91]=er):(en=eC[89],ei=eC[90],er=eC[91]),eC[92]!==e_?(ea=(0,v.jsx)(I.az,{display:en,marginX:ei,style:er,children:e_?(0,v.jsx)(Xh,{publishedDocumentId:e_}):(0,v.jsx)(Xp,{})}),eC[92]=e_,eC[93]=ea):ea=eC[93],eC[94]!==et||eC[95]!==ea?(eo=(0,v.jsxs)(I.so,{align:"center",style:X,children:[et,ea]}),eC[94]=et,eC[95]=ea,eC[96]=eo):eo=eC[96],eC[97]!==r||eC[98]!==u||eC[99]!==Z||eC[100]!==K||eC[101]!==G||eC[102]!==eo||eC[103]!==L||eC[104]!==F||eC[105]!==B||eC[106]!==Y||eC[107]!==H?(el=(0,v.jsxs)(r,{align:L,gap:F,justify:B,paddingLeft:Y,children:[H,u,Z,K,G,eo]}),eC[97]=r,eC[98]=u,eC[99]=Z,eC[100]=K,eC[101]=G,eC[102]=eo,eC[103]=L,eC[104]=F,eC[105]=B,eC[106]=Y,eC[107]=H,eC[108]=el):el=eC[108],eC[109]!==a||eC[110]!==
1543p||eC[111]!==m||eC[112]!==h||eC[113]!==f||eC[114]!==g||eC[115]!==y||eC[116]!==C||eC[117]!==x||eC[118]!==b||eC[119]!==el?(es=(0,v.jsx)(a,{__unstable_focusRing:p,as:m,"data-as":h,flex:f,onClick:g,padding:y,radius:C,tabIndex:x,tone:b,children:el}),eC[109]=a,eC[110]=p,eC[111]=m,eC[112]=h,eC[113]=f,eC[114]=g,eC[115]=y,eC[116]=C,eC[117]=x,eC[118]=b,eC[119]=el,eC[120]=es):es=eC[120],eC[121]!==o||eC[122]!==k||eC[123]!==S||eC[124]!==T||eC[125]!==E||eC[126]!==es?(ed=(0,v.jsx)(o,{delay:k,placement:S,content:T,disabled:E,children:es}),eC[121]=o,eC[122]=k,eC[123]=S,eC[124]=T,eC[125]=E,eC[126]=es,eC[127]=ed):ed=eC[127],eC[128]===Symbol.for("react.memo_cache_sentinel")?(ec={width:"38px"},eC[128]=ec):ec=eC[128],eC[129]!==eD||eC[130]!==e_||eC[131]!==ek||eC[132]!==eS||eC[133]!==eA?(eu="scheduled"===ek.state&&(0,v.jsxs)(I.az,{children:[(0,v.jsx)(G6,{schedule:ek,updateValidation:e$}),(0,v.jsx)(Xl,{markers:eA,type:eS,documentId:e_,menuHeader:(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(I.EY,{size:1,children:eD?KG:"This document has validation warnings."})})})]}),eC[129]=eD,eC[130]=e_,eC[131]=ek,eC[132]=eS,eC[133]=eA,eC[134]=eu):eu=eC[134],eC[135]!==ek.state||eC[136]!==ek.stateReason?(ep="cancelled"===ek.state&&(0,v.jsx)(Xc,{stateReason:ek.stateReason}),eC[135]=ek.state,eC[136]=ek.stateReason,eC[137]=ep):ep=eC[137],eC[138]!==eu||eC[139]!==ep?(em=(0,v.jsxs)(I.so,{justify:"center",style:ec,children:[eu,ep]}),eC[138]=eu,eC[139]=ep,eC[140]=em):em=eC[140],eC[141]!==ek.state||eC[142]!==ek.stateReason?(eh="cancelled"===ek.state&&(0,v.jsx)(Xc,{stateReason:ek.stateReason}),eC[141]=ek.state,eC[142]=ek.stateReason,eC[143]=eh):eh=eC[143],eC[144]!==eb?(ef=eb&&(0,v.jsx)(I.az,{style:{flexShrink:0},paddingRight:2,children:eb}),eC[144]=eb,eC[145]=ef):ef=eC[145],eC[146]!==l||eC[147]!==$||eC[148]!==A||eC[149]!==D||eC[150]!==ed||eC[151]!==em||eC[152]!==eh||eC[153]!==ef?(eg=(0,v.jsxs)(l,{align:$,gap:A,justify:D,children:[ed,em,eh,ef]}),eC[146]=l,eC[147]=$,eC[148]=A,eC[149]=D,eC[150]=ed,eC[151]=em,eC[152]=eh,eC[153]=ef,eC[154]=eg):eg=eC[154],eC[155]!==s||eC[156]!==z||eC[157]!==P||eC[158]!==R||eC[159]!==O||eC[160]!==V||eC[161]!==eg?(ey=(0,v.jsx)(s,{padding:z,radius:P,shadow:R,tone:O,style:V,children:eg}),eC[155]=s,eC[156]=z,eC[157]=P,eC[158]=R,eC[159]=O,eC[160]=V,eC[161]=eg,eC[162]=ey):ey=eC[162],ey};function Xh(e){let t,n=(0,j.c)(3),{publishedDocumentId:i}=e,r=Ra(i);return n[0]!==r.draft||n[1]!==r.published?(t=(0,v.jsx)(gW,{draft:r.draft,published:r.published}),n[0]=r.draft,n[1]=r.published,n[2]=t):t=n[2],t}let Xf=e=>{let t,n,i,r,a,o,l=(0,j.c)(20),{schedule:s,schemaType:d}=e,{DialogScheduleEdit:c,dialogProps:u,dialogScheduleEditShow:p}=G5(s,KX),{onComplete:m}=function(){let e=(0,_.useContext)(S.Nj);if(void 0===e)throw Error("useDocumentActionProps must be used within a DocumentActionPropsProvider");return e}();l[0]!==s?(t=G_(s),l[0]=s,l[1]=t):t=l[1];let h=t;return l[2]!==c||l[3]!==u?(n=c&&(0,v.jsx)(c,{...u}),l[2]=c,l[3]=u,l[4]=n):n=l[4],l[5]===Symbol.for("react.memo_cache_sentinel")?(i={delete:!0,edit:!0},l[5]=i):i=l[5],l[6]!==p||l[7]!==m||l[8]!==s||l[9]!==d?(r=(0,v.jsx)(G3,{actions:i,onDelete:m,onEdit:p,schedule:s,schemaType:d}),l[6]=p,l[7]=m,l[8]=s,l[9]=d,l[10]=r):r=l[10],l[11]!==p||l[12]!==h||l[13]!==s||l[14]!==d||l[15]!==r?(a=(0,v.jsx)(Xm,{contextMenu:r,onClick:p,publishedDocumentId:h,schedule:s,schemaType:d}),l[11]=p,l[12]=h,l[13]=s,l[14]=d,l[15]=r,l[16]=a):a=l[16],l[17]!==n||l[18]!==a?(o=(0,v.jsxs)(v.Fragment,{children:[n,a]}),l[17]=n,l[18]=a,l[19]=o):o=l[19],o},Xg=e=>{let t,n,i,r,a,o=(0,j.c)(10),{onDelete:l,schedule:s}=e,{deleteSchedule:d}=Gl();o[0]!==d||o[1]!==l||o[2]!==s?(t=()=>{d({schedule:s}).then(()=>l?.())},o[0]=d,o[1]=l,o[2]=s,o[3]=t):t=o[3];let c=t;return o[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(rl,{}),o[4]=n):n=o[4],o[5]!==c?(i=(0,v.jsx)(I.W1,{children:(0,v.jsx)(tL.Dr,{icon:eT.ucK,onClick:c,text:"Delete schedule",tone:"critical"})}),o[5]=c,o[6]=i):i=o[6],o[7]===Symbol.for("react.memo_cache_sentinel")?(r={portal:!0,tone:"default"},o[7]=r):r=o[7],o[8]!==i?(a=(0,v.jsx)(tL.IU,{button:n,id:"contextMenu",menu:i,placement:"left",popover:r}),o[8]=i,o[9]=a):a=o[9],a},Xy=e=>{let t,n,i,r=(0,j.c)(6),{schedule:a}=e;return r[0]!==a?(t=(0,v.jsx)(Xg,{schedule:a}),r[0]=a,r[1]=t):t=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(j8,{icon:eT.KSC,layout:"default",subtitle:(0,v.jsx)("em",{children:"It may have been deleted"}),title:(0,v.jsx)("em",{style:{color:ez.wv[600].hex},children:"Document not found"})}),r[2]=n):n=r[2],r[3]!==a||r[4]!==t?(i=(0,v.jsx)(Xm,{contextMenu:t,schedule:a,useElementQueries:!0,children:n}),r[3]=a,r[4]=t,r[5]=i):i=r[5],i},XC=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(30),{previewState:d,schedule:c,schemaType:u}=e,p=d.draft||d.published,m="succeeded"===c.state,h="scheduled"===c.state,{DialogScheduleEdit:f,dialogProps:g,dialogScheduleEditShow:y}=G5(c,KX),C=Xt(p?._id);s[0]!==u||s[1]!==p?((t=(0,_.forwardRef)((e,t)=>(0,v.jsx)(nU.RZ,{...e,intent:"edit",params:{type:u.name,id:p&&(0,tG.IM)(p?._id)},ref:t}
1543))).displayName="ForwardRef(LinkComponent)",s[0]=u,s[1]=p,s[2]=t):t=s[2];let x=t;s[3]!==f||s[4]!==g?(n=f&&(0,v.jsx)(f,{...g}),s[3]=f,s[4]=g,s[5]=n):n=s[5];let b=!m;return s[6]!==m||s[7]!==h||s[8]!==b?(i={clear:m,delete:b,edit:h,execute:h},s[6]=m,s[7]=h,s[8]=b,s[9]=i):i=s[9],s[10]!==y||s[11]!==c||s[12]!==u||s[13]!==i?(r=(0,v.jsx)(G3,{actions:i,onEdit:y,schedule:c,schemaType:u}),s[10]=y,s[11]=c,s[12]=u,s[13]=i,s[14]=r):r=s[14],s[15]!==d.isLoading||s[16]!==u||s[17]!==p?(a=d.isLoading?(0,v.jsx)(j8,{icon:u?.icon,isPlaceholder:d.isLoading,layout:"default"}):(0,v.jsx)(Pz,{layout:"default",schemaType:u,value:p}),s[15]=d.isLoading,s[16]=u,s[17]=p,s[18]=a):a=s[18],s[19]!==x||s[20]!==d||s[21]!==C||s[22]!==c||s[23]!==u||s[24]!==r||s[25]!==a?(o=(0,v.jsx)(Xm,{contextMenu:r,linkComponent:x,previewState:d,publishedDocumentId:C,schedule:c,schemaType:u,useElementQueries:!0,children:a}),s[19]=x,s[20]=d,s[21]=C,s[22]=c,s[23]=u,s[24]=r,s[25]=a,s[26]=o):o=s[26],s[27]!==n||s[28]!==o?(l=(0,v.jsxs)(v.Fragment,{children:[n,o]}),s[27]=n,s[28]=o,s[29]=l):l=s[29],l},Xx=e=>{let t,n,i,r=(0,j.c)(13),{schedule:a,type:o}=e;r[0]!==a?(t=Gw(a),r[0]=a,r[1]=t):t=r[1];let l=t,s=Gk(a),d=function(e,t){let n,i,r,a=(0,j.c)(6),o=cc();a[0]===Symbol.for("react.memo_cache_sentinel")?(n={},a[0]=n):n=a[0];let[l,s]=(0,_.useState)(n);return a[1]!==e||a[2]!==o||a[3]!==t?(i=()=>{var n,i,r,a;let l,d;if(!t)return;let c=(n=o,i=t,r=e,a=0,l=!0===i.liveEdit?(0,eP.of)({snapshot:null}):n.observeForPreview({_type:"reference",_ref:(0,tG.T4)(r)},i),d=n.observeForPreview({_type:"reference",_ref:(0,tG.IM)(r)},i),(0,e8.z)([l,d]).pipe((0,eV.T)(([e,t])=>({draft:e.snapshot?{title:"",...e.snapshot}:null,isLoading:!1,published:t.snapshot?{title:"",...t.snapshot}:null})),(0,tr.Z)({draft:null,isLoading:!0,published:null}))).subscribe(e=>{s(e)});return()=>{c?.unsubscribe()}},r=[o,t,e],a[1]=e,a[2]=o,a[3]=t,a[4]=i,a[5]=r):(i=a[4],r=a[5]),(0,_.useEffect)(i,r),l}(l?.documentId,s),c=!(d.draft||d.published)&&!d.isLoading;e:{if(!s||c){let e;r[2]!==a?(e=(0,v.jsx)(Xy,{schedule:a}),r[2]=a,r[3]=e):e=r[3],n=e;break e}if("document"===o){let e;r[4]!==a||r[5]!==s?(e=(0,v.jsx)(Xf,{schedule:a,schemaType:s}),r[4]=a,r[5]=s,r[6]=e):e=r[6],n=e;break e}if("tool"===o){let e;r[7]!==d||r[8]!==a||r[9]!==s?(e=(0,v.jsx)(XC,{previewState:d,schedule:a,schemaType:s}),r[7]=d,r[8]=a,r[9]=s,r[10]=e):e=r[10],n=e;break e}n=null}let u=n;return r[11]!==u?(i=(0,v.jsx)(GS,{children:u}),r[11]=u,r[12]=i):i=r[12],i};function Xb(e){let t,n,i,r=(0,j.c)(10),{item:a,measureElement:o}=e,{content:l,virtualRow:s}=a,d=`translateY(${s.start}px)`;r[0]!==d?(t={position:"absolute",top:0,left:0,width:"100%",transform:d},r[0]=d,r[1]=t):t=r[1];let c=t;return r[2]!==l?(n="string"==typeof l?(0,v.jsx)(Xj,{content:l}):(0,v.jsx)(Xv,{schedule:l}),r[2]=l,r[3]=n):n=r[3],r[4]!==o||r[5]!==c||r[6]!==n||r[7]!==s.index||r[8]!==s.key?(i=(0,v.jsx)(I.az,{"data-index":s.index,paddingBottom:2,ref:o,style:c,children:n},s.key),r[4]=o,r[5]=c,r[6]=n,r[7]=s.index,r[8]=s.key,r[9]=i):i=r[9],i}function Xv(e){let t,n,i,r=(0,j.c)(4),{schedule:a}=e;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(Xw,{}),r[0]=t):t=r[0];let[o,l]=(0,_.useState)(t);return r[1]!==a?(n=()=>{let e=!0,t=setTimeout(()=>{e&&l((0,v.jsx)(Xx,{schedule:a,type:"tool"}))},200);return()=>{e=!1,clearTimeout(t)}},i=[a],r[1]=a,r[2]=n,r[3]=i):(n=r[2],i=r[3]),(0,_.useEffect)(n,i),o}function Xj(e){let t,n=(0,j.c)(2),{content:i}=e;return n[0]!==i?(t=(0,v.jsx)(I.so,{align:"flex-end",paddingBottom:2,paddingTop:4,children:(0,v.jsx)(I.JU,{muted:!0,size:1,children:i})}),n[0]=i,n[1]=t):t=n[1],t}function Xw(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.Zp,{padding:1,radius:2,shadow:1,children:(0,v.jsx)(I.Zp,{padding:1,children:(0,v.jsx)(j8,{isPlaceholder:!0})})}),t[0]=e):e=t[0],e}function X_(e){return new Date(e).toLocaleString("default",{month:"long",year:"numeric"})}let Xk=()=>{var e,t;let n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(26),{activeSchedules:f,scheduleState:g,sortBy:y}=Gm(),{measureElement:C,virtualList:x,totalSize:b,containerRef:w}=(e=f,t=y,n=(0,_.useRef)(null),i=(0,_.useMemo)(()=>{let n=[];return e.forEach((i,r)=>{if("executeAt"==t){let t=K8(e[r-1]),a=r>0&&t?X_(t):null,o=K8(i),l=o?X_(o):null;l!==a&&n.push(l||"No date specified")}n.push(i)}),n},[e,t]),a=(r=(0,E.Te)({count:i.length,getScrollElement:()=>n.current,estimateSize:()=>50,overscan:5})).getVirtualItems().map(e=>{let t=i[e.index];return{content:t,key:"string"==typeof t?t:t.id,virtualRow:e}}),{containerRef:n,measureElement:r.measureElement,totalSize:r.getTotalSize(),virtualList:a}),{deleteSchedules:k}=Gl();h[0]!==f||h[1]!==k?(o=()=>{k({schedules:f||[]})},h[0]=f,h[1]=k,h[2]=o):o=h[2];let S=o;h[3]!==w?(l=()=>{w?.current?.scrollTo(0,0)},h[3]=w,h[4]=l):l=h[4],h[5]!==w||h[6]!==g||h[7]!==y?(s=[g,y,w],h[5]=w,h[6]=g,h[7]=y,h[8]=s):s=h[8],(0,_.useEffect)(l,s);let T=`${b}px`;if(h[9]!==T?(d={height:T,width:"100%",position:"relative"},h[9]=T,h[10]=d):d=h[10],h[11]!==C||h[12]!==x){let e;h[14]!==C?(e=e=>(0,v.jsx)(Xb,{item:e,measureElement:C},e.key),h[14]=C,h[15]=e):e=h[15],c=x.map(e),h[11]=C,h[12]=x,h[13]=c}else c=h[13];return h[16]!==d||h[17]!==c?(u=(0,v.jsx)(I.az,{style:d,children:c}),h[16]=d,h[17]=c,h[18]=u):u=h[18],h[19]!==S||h[20]!==g?(p="succeeded"===g&&(0,v.jsx)(I.so,{justify:"center",marginTop:6,children:(0,v.jsx)(tL.$n,{icon:eT.Dee,mode:"ghost",onClick:S,text:"Clear all c
1543ompleted schedules"})}),h[19]=S,h[20]=g,h[21]=p):p=h[21],h[22]!==w||h[23]!==u||h[24]!==p?(m=(0,v.jsxs)(I.az,{paddingBottom:6,paddingTop:1,paddingX:4,ref:w,overflow:"hidden",children:[u,p]}),h[22]=w,h[23]=u,h[24]=p,h[25]=m):m=h[25],m},XS=(0,eI.I4)(I.mc).withConfig({displayName:"Panel",componentId:"sc-1ny9eog-0"})`width:auto;`,XI=()=>{let e,t,n,i,r=(0,j.c)(13),{activeSchedules:a,selectedDate:o,scheduleState:l}=Gm(),{upsellData:s,telemetryLogs:d}=GC(),{mode:c}=K5(),u="upsell"===c&&"scheduled"===l;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e={height:"100%"},r[0]=e):e=r[0],r[1]!==c||r[2]!==d||r[3]!==s?(t="upsell"===c&&s&&(0,v.jsx)(XS,{width:1,padding:4,paddingBottom:1,children:(0,v.jsx)(FP,{layout:"horizontal",data:s,onPrimaryClick:d.panelPrimaryClicked,onSecondaryClick:d.panelSecondaryClicked})}),r[1]=c,r[2]=d,r[3]=s,r[4]=t):t=r[4],r[5]!==a.length||r[6]!==l||r[7]!==o||r[8]!==u?(n=0===a.length?(0,v.jsx)(XS,{width:1,padding:4,paddingTop:4,children:(0,v.jsx)(Gj,{scheduleState:l,selectedDate:o})}):(0,v.jsxs)(v.Fragment,{children:[u&&(0,v.jsx)(I.Zp,{margin:4,marginBottom:2,padding:3,tone:"caution",radius:3,shadow:1,children:(0,v.jsxs)(I.so,{gap:3,align:"center",children:[(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.sAQ,{})}),(0,v.jsx)(I.EY,{size:1,children:"Your scheduled documents won't be published automatically unless you upgrade your plan. You can still publish them manually."})]})}),(0,v.jsx)(I.az,{paddingTop:4*!u,children:(0,v.jsx)(Xk,{})})]}),r[5]=a.length,r[6]=l,r[7]=o,r[8]=u,r[9]=n):n=r[9],r[10]!==t||r[11]!==n?(i=(0,v.jsxs)(I.az,{style:e,children:[t,n]}),r[10]=t,r[11]=n,r[12]=i):i=r[12],i},XT=()=>{let e,t,n,i,r,a,o,l=(0,j.c)(15),{setSortBy:s,sortBy:d}=Gm();l[0]!==s?(e=()=>s("createdAt"),l[0]=s,l[1]=e):e=l[1];let c=e;l[2]!==s?(t=()=>s("executeAt"),l[2]=s,l[3]=t):t=l[3];let u=t;l[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(rl,{}),l[4]=n):n=l[4],l[5]===Symbol.for("react.memo_cache_sentinel")?(i={minWidth:"250px"},l[5]=i):i=l[5];let p="createdAt"===d?eT.Nrt:void 0;l[6]!==c||l[7]!==p?(r=(0,v.jsx)(tL.Dr,{icon:eT.ycB,iconRight:p,onClick:c,text:"Sort by time added"}),l[6]=c,l[7]=p,l[8]=r):r=l[8];let m="executeAt"===d?eT.Nrt:void 0;return l[9]!==u||l[10]!==m?(a=(0,v.jsx)(tL.Dr,{icon:eT.ycB,iconRight:m,onClick:u,text:"Sort by time scheduled"}),l[9]=u,l[10]=m,l[11]=a):a=l[11],l[12]!==r||l[13]!==a?(o=(0,v.jsx)(tL.IU,{button:n,id:"sort",menu:(0,v.jsxs)(I.W1,{style:i,children:[r,a]})}),l[12]=r,l[13]=a,l[14]=o):o=l[14],o},XE=e=>{let t,n,i,r=(0,j.c)(8),{mode:a,selected:o}=e,l=void 0===a?"default":a;return r[0]!==l||r[1]!==o?(t="default"===l?{background:ez.wm[o?100:300].hex}:{}
1543,r[0]=l,r[1]=o,r[2]=t):t=r[2],r[3]!==l?(n="failed"===l?{background:ez.wv[500].hex}:{},r[3]=l,r[4]=n):n=r[4],r[5]!==t||r[6]!==n?(i=(0,v.jsx)(I.az,{style:{...t,...n,borderRadius:"2px",height:"2px",width:"100%"}}),r[5]=t,r[6]=n,r[7]=i):i=r[7],i};function X$(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,_=(0,j.c)(60),{date:k,focused:S,isCurrentMonth:T,isToday:E,onSelect:$,selected:A}=e,{schedulesByDate:D}=Gm();_[0]!==k||_[1]!==D?(t=D(k),_[0]=k,_[1]=D,_[2]=t):t=_[2];let z=t;_[3]!==k||_[4]!==$||_[5]!==A?(n=()=>{$(A?void 0:k)},_[3]=k,_[4]=$,_[5]=A,_[6]=n):n=_[6];let P=n;E||A?i="primary":((0,nw.c)(k),i="default");let R=z.length>0;_[7]!==z?(r=z.filter(Xz),_[7]=z,_[8]=r):r=_[8],_[9]!==z?(a=z.filter(XD),_[9]=z,_[10]=a):a=_[10],_[11]!==z?(o=z.filter(XA),_[11]=z,_[12]=o):o=_[12],_[13]!==r||_[14]!==a||_[15]!==o?(l={completed:r,failed:a,upcoming:o},_[13]=r,_[14]=a,_[15]=o,_[16]=l):l=_[16];let{completed:N,failed:O,upcoming:V}=l;_[17]!==k||_[18]!==z?(s=(0,v.jsx)(XP,{date:k,schedules:z}),_[17]=k,_[18]=z,_[19]=s):s=_[19];let M=!R;_[20]!==k?(d=k.toDateString(),_[20]=k,_[21]=d):d=_[21];let L=S?"true":"";_[22]===Symbol.for("react.memo_cache_sentinel")?(c={position:"relative"},_[22]=c):c=_[22];let F=A||T?1:.35;return _[23]!==F?(u={opacity:F,textAlign:"center"},_[23]=F,_[24]=u):u=_[24],_[25]!==k||_[26]!==A?(p=A?(0,v.jsx)(eT.USm,{}):k.getDate(),_[25]=k,_[26]=A,_[27]=p):p=_[27],_[28]!==u||_[29]!==p?(m=(0,v.jsx)(I.EY,{size:1,style:u,children:p}),_[28]=u,_[29]=p,_[30]=m):m=_[30],_[31]===Symbol.for("react.memo_cache_sentinel")?(h={bottom:2,left:2,position:"absolute",right:2},_[31]=h):h=_[31],_[32]!==N.length||_[33]!==A?(f=N.length>0&&(0,v.jsx)(XE,{selected:A}),_[32]=N.length,_[33]=A,_[34]=f):f=_[34],_[35]!==A||_[36]!==V.length?(g=V.length>0&&(0,v.jsx)(XE,{selected:A}),_[35]=A,_[36]=V.length,_[37]=g):g=_[37],_[38]!==O.length||_[39]!==A?(y=O.length>0&&(0,v.jsx)(XE,{mode:"failed",selected:A}),_[38]=O.length,_[39]=A,_[40]=y):y=_[40],_[41]!==f||_[42]!==g||_[43]!==y?(C=(0,v.jsx)(I.az,{style:h,children:(0,v.jsxs)(I.so,{align:"center",gap:1,justify:"center",children:[f,g,y]})}),_[41]=f,_[42]=g,_[43]=y,_[44]=C):C=_[44],_[45]!==P||_[46]!==A||_[47]!==m||_[48]!==C||_[49]!==d||_[50]!==L||_[51]!==i?(x=(0,v.jsxs)(I.Zp,{"aria-label":d,"aria-pressed":A,as:"button",__unstable_focusRing:!0,"data-weekday":!0,"data-focused":L,role:"button",tabIndex:-1,onClick:P,paddingX:3,paddingY:4,radius:2,selected:A,style:c,tone:i,children:[m,C]}),_[45]=P,_[46]=A,_[47]=m,_[48]=C,_[49]=d,_[50]=L,_[51]=i,_[52]=x):x=_[52],_[53]!==x||_[54]!==s||_[55]!==M?(b=(0,v.jsx)(tL.m_,{content:s,disabled:M,portal:!0,children:x}),_[53]=x,_[54]=s,_[55]=M,_[56]=b):b=_[56],_[57]!==A||_[58]!==b?(w=(0,v.jsx)("div",{"aria-selected":A,"data-ui":"CalendarDay",children:b}),_[57]=A,_[58]=b,_[59]=w):w=_[59],w}function XA(e){return"scheduled"===e.state}function XD(e){return"cancelled"===e.state}function Xz(e){return"succeeded"===e.state}function XP(e){let t,n,i,r,a,o=(0,j.c)(12),{date:l,schedules:s}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(t={type:"scheduledPublishing"},o[0]=t):t=o[0];let{formatDateTz:d}=ky(t),c=(void 0===s?[]:s).reduce(XN,{cancelled:[],succeeded:[],scheduled:[]}),u=I.az;o[1]!==l?(n=(0,nn.GP)(l,"d MMMM yyyy"),o[1]=l,o[2]=n):n=o[2],o[3]!==n?(i=(0,v.jsx)(I.az,{marginBottom:4,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:n})}),o[3]=n,o[4]=i):i=o[4];let p=I.BJ,m=Object.keys(c).map(e=>{let t=c[e];return 0===t.length?null:(0,v.jsxs)(I.BJ,{space:2,children:[(0,v.jsx)(I.JU,{muted:!0,size:0,children:KJ[e].title}),(0,v.jsx)(I.BJ,{space:1,children:t.filter(XR).map(e=>{let t=K8(e);return t?(0,v.jsxs)(I.cV,{space:2,children:[(0,v.jsx)(I.az,{style:{width:"60px"},children:(0,v.jsx)(I.EY,{size:1,weight:"regular",children:d({date:new Date(t),format:"p"})})}),(0,v.jsx)(I.so,{align:"center",style:{flexShrink:0,opacity:+("unpublish"===e.action)},children:(0,v.jsx)(I.Ex,{fontSize:0,mode:"outline",tone:KW[e.action].badgeTone,children:e.action})})]},e.id):null})})]},e)});return o[5]!==p||o[6]!==m?(r=(0,v.jsx)(p,{space:3,children:m}),o[5]=p,o[6]=m,o[7]=r):r=o[7],o[8]!==u||o[9]!==i||o[10]!==r?(a=(0,v.jsxs)(u,{padding:3,children:[i,r]}),o[8]=u,o[9]=i,o[10]=r,o[11]=a):a=o[11],a}function XR(e){return e.executeAt}function XN(e,t){return e[t.state].push(t),e}let XO=e=>{let t,n,i,r=(0,j.c)(11),{onSelect:a,selectedDate:o,timeZoneScope:l}=e,{getCurrentZoneDate:s,utcToCurrentZoneDate:d}=ky(l);r[0]!==s||r[1]!==o?(t=o||s(),r[0]=s,r[1]=o,r[2]=t):t=r[2];let[c,u]=(0,_.useState)(t);r[3]!==d?(n=e=>{u(d(e))},r[3]=d,r[4]=n):n=r[4];let p=n;return r[5]!==c||r[6]!==p||r[7]!==a||r[8]!==o||r[9]!==l?(i=(0,v.jsx)(LN,{focusedDate:c,onFocusedDateChange:p,onSelect:a,selectedDate:o,renderCalendarDay:X$,timeZoneScope:l}),r[5]=c,r[6]=p,r[7]=a,r[8]=o,r[9]=l,r[10]=i):i=r[10],i},XV=(0,eI.I4)(I.az).withConfig({displayName:"Column",componentId:"sc-1q185kz-0"})`flex-direction:column;&:not(:last-child){border-right:1px solid var(--card-border-color);}`,XM=[],XL="yyyy-MM-dd";function XF(){let e,t=(0,j.c)(4),n=(0,nU.rd)(),i=LO();t[0]!==n?(e=n.resolveIntentLink(F1,{view:"drafts"}),t[0]=n,t[1]=e):e=t[1];let r=e;if(i){let e;return t[2]!==r?(e=(0,v.jsx)(I.Zp,{padding:4,tone:"caution",width:"fill",children:(0,v.jsx)(I.so,{gap:3,align:"center",justify:"center",children:(0,v.jsxs)(I.EY,{size:1,weight:"medium",children:["Scheduled Drafts is enabled for this Studio. All new Scheduled Drafts will be"," ",(0,v.jsx)(nU.N_,{href:r,children:"available here"})]})})}),t[2]=r,t[3]=e):e=t[3],e}}function XB(){var e,t,n;let i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A,D,z,P,R=(0,j.c)(60),N=(0,nU.rd)(),{scheduledPublishing:O}=cY(),{sanity:V}=(0,I.DP)(),{error:M,isInitialLoading:L,schedules:F}=Gc(),B=void 0===F?XM:F,{t:Y}=as(),{enabled:H,hasUsedScheduledPublishing:U}=K5(),Z=(0,_.useRef)(void 0),q=N.state.state;R[0]!==N.state.date?(o=N.state.date?(0,t7.qg)(N.state.date,XL,new Date):void 0,R[0]=N.state.date,R[1]=o):o=R[1];let W=o;R[2]!==N.state.state?(l=()=>{N.state.state&&(Z.current=N.state.state)}
1543,s=[N.state.state],R[2]=N.state.state,R[3]=l,R[4]=s):(l=R[3],s=R[4]),(0,_.useEffect)(l,s),e=N,t=q,n=W,(a=(0,j.c)(5))[0]!==t||a[1]!==e||a[2]!==n?(i=()=>{t||n||e.navigate({state:KK[0]},{replace:!0})},r=[n,e,t],a[0]=t,a[1]=e,a[2]=n,a[3]=i,a[4]=r):(i=a[3],r=a[4]),(0,_.useEffect)(i,r);let{formatDateTz:J,timeZone:K}=ky(KX);R[5]!==q||R[6]!==B||R[7]!==W?(d={schedules:B,scheduleState:q,selectedDate:W},R[5]=q,R[6]=B,R[7]=W,R[8]=d):d=R[8];let G=d;R[9]!==N?(c=()=>{N.navigate({state:Z?.current||KK[0]})},R[9]=N,R[10]=c):c=R[10];let X=c;R[11]!==J||R[12]!==N?(u=e=>{e?N.navigate({date:J({date:e,format:XL})}):N.navigate({state:Z?.current||KK[0]})},R[11]=J,R[12]=N,R[13]=u):u=R[13];let Q=u;if(!H){let e;if(O.__internal__workspaceEnabled){let e;return R[14]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.mc,{width:1,paddingTop:4,children:(0,v.jsx)(I.az,{paddingTop:4,paddingX:4,children:(0,v.jsx)(K7,{description:"Something went wrong loading permissions, please try again.",title:"Permissions check failed"})})}),R[14]=e):e=R[14],e}return R[15]!==U.loading?(e=(0,v.jsx)(I.mc,{width:1,paddingTop:4,children:(0,v.jsx)(I.az,{paddingTop:4,paddingX:4,children:U.loading?(0,v.jsx)(ry,{}):(0,v.jsx)(K3,{})})}),R[15]=U.loading,R[16]=e):e=R[16],e}return R[17]===Symbol.for("react.memo_cache_sentinel")?(p=["none",null,null,"flex"],R[17]=p):p=R[17],R[18]===Symbol.for("react.memo_cache_sentinel")?(m={position:"sticky",top:0,width:"350px"},R[18]=m):m=R[18],R[19]!==Q||R[20]!==W?(h=(0,v.jsx)(XV,{display:p,style:m,children:(0,v.jsx)(XO,{onSelect:Q,timeZoneScope:KX,selectedDate:W})}),R[19]=Q,R[20]=W,R[21]=h):h=R[21],R[22]===Symbol.for("react.memo_cache_sentinel")?(f=(0,v.jsx)(XF,{}),R[22]=f):f=R[22],R[23]!==V.color.card.enabled.bg?(g={background:V.color.card.enabled.bg,position:"sticky",top:0,zIndex:1},R[23]=V.color.card.enabled.bg,R[24]=g):g=R[24],R[25]===Symbol.for("react.memo_cache_sentinel")?(y={borderBottom:"1px solid var(--card-border-color)",minHeight:"55px"},R[25]=y):y=R[25],R[26]!==X||R[27]!==W?(C=(0,v.jsx)(Gg,{onClearDate:X,selectedDate:W}),R[26]=X,R[27]=W,R[28]=C):C=R[28],R[29]!==Y||R[30]!==K.alternativeName||R[31]!==K.offset?(x=Y("time-zone.time-zone-tooltip-content-releases",{alternativeName:K.alternativeName,offset:K.offset}),R[29]=Y,R[30]=K.alternativeName,R[31]=K.offset,R[32]=x):x=R[32],R[33]!==x?(b=(0,v.jsx)(kQ,{tooltipContent:x,timeZoneScope:KX,useElementQueries:!0}),R[33]=x,R[34]=b):b=R[34],R[35]===Symbol.for("react.memo_cache_sentinel")?(w=(0,v.jsx)(XT,{}),R[35]=w):w=R[35],R[36]!==b?(k=(0,v.jsxs)(I.so,{align:"center",gap:1,children:[b,w]}),R[36]=b,R[37]=k):k=R[37],R[38]!==C||R[39]!==k?(S=(0,v.jsx)(I.so,{align:"center",paddingLeft:4,paddingRight:3,style:y,children:(0,v.jsxs)(I.so,{align:"center",flex:1,justify:"space-between",children:[C,k]})}),R[38]=C,R[39]=k,R[40]=S):S=R[40],R[41]!==g||R[42]!==S?(T=(0,v.jsx)(K0,{style:g,children:S}),R[41]=g,R[42]=S,R[43]=T):T=R[43],R[44]!==M?(E=M&&(0,v.jsx)(I.az,{paddingTop:4,paddingX:4,children:(0,v.jsx)(K7,{description:"More information in the developer console.",title:"Something went wrong, unable to retrieve schedules."})}),R[44]=M,R[45]=E):E=R[45],R[46]!==L?($=(0,v.jsx)(I.az,{flex:1,overflow:"auto",children:L?(0,v.jsx)(I.az,{padding:4,children:(0,v.jsx)(I.EY,{muted:!0,children:"Loading..."})}):(0,v.jsx)(XI,{})}),R[46]=L,R[47]=$):$=R[47],R[48]!==E||R[49]!==$?(A=(0,v.jsxs)(I.so,{direction:"column",flex:1,children:[E,$]}),R[48]=E,R[49]=$,R[50]=A):A=R[50],R[51]!==T||R[52]!==A?(D=(0,v.jsxs)(XV,{display:"flex",flex:1,overflow:"hidden",children:[f,T,A]}),R[51]=T,R[52]=A,R[53]=D):D=R[53],R[54]!==D||R[55]!==h?(z=(0,v.jsx)(I.so,{direction:"column",height:"fill",flex:1,overflow:"hidden",children:(0,v.jsxs)(I.so,{flex:1,height:"fill",children:[h,D]})}),R[54]=D,R[55]=h,R[56]=z):z=R[56],R[57]!==G||R[58]!==z?(P=(0,v.jsx)(Gp,{value:G,children:z}),R[57]=G,R[58]=z,R[59]=P):P=R[59],P}let XY=e=>{let t,n,i,r=(0,j.c)(11),{buttonText:a,disabled:o,icon:l,onAction:s,onComplete:d,tone:c}=e,u=void 0===a?"Action":a,p=void 0===c?"positive":c;return r[0]!==d?(t=(0,v.jsx)(tL.$n,{mode:"bleed",onClick:d,text:"Cancel"}),r[0]=d,r[1]=t):t=r[1],r[2]!==u||r[3]!==o||r[4]!==l||r[5]!==s||r[6]!==p?(n=s&&(0,v.jsx)(tL.$n,{disabled:o,icon:l,onClick:s,text:u,tone:p}),r[2]=u,r[3]=o,r[4]=l,r[5]=s,r[6]=p,r[7]=n):n=r[7],r[8]!==t||r[9]!==n?(i=(0,v.jsxs)(I.so,{width:"full",gap:3,justify:"flex-end",children:[t,n]}),r[8]=t,r[9]=n,r[10]=i):i=r[10],i};function XH(e){let t,n,i,r=(0,j.c)(5),{id:a,schemaType:o}=e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsxs)(I.EY,{size:1,children:["Schedule this document to be published at any time in the future.",(0,v.jsx)("br",{}),"Any edits in the meantime will be added to the scheduled document."]}),n=(0,v.jsx)(I.EY,{size:1,children:"Visit the Schedules page to get an overview of all schedules."}),r[0]=t,r[1]=n):(t=r[0],n=r[1]),r[2]!==a||r[3]!==o?(i=(0,v.jsxs)(I.BJ,{space:4,children:[t,n,(0,v.jsx)(XU,{id:a,type:o})]}),r[2]=a,r[3]=o,r[4]=i):i=r[4],i}function XU(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(11),{id:c,type:u}=e,p=(l=(0,j.c)(3),s=R8(),l[0]!==s||l[1]!==u?(o=s.get(u),l[0]=s,l[1]=u,l[2]=o):o=l[2],o);d[0]!==c?(t=(0,tG.T4)(c),d[0]=c,d[1]=t):t=d[1];let m=t;d[2]!==c?(n=(0,tG.IM)(c),d[2]=c,d[3]=n):n=d[3];let h=n,f=Yi(m,u,!0),{hasError:g}=G4(f.validation);return g?(d[4]!==h||d[5]!==p||d[6]!==f.validation?(i=(0,v.jsx)(Xl,{markers:f.validation,type:p,documentId:h}),d[4]=h,d[5]=p,d[6]=f.validation,d[7]=i):i=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.jsx)(I.EY,{size:1,children:KG}),d[8]=r):r=d[8],d[9]!==i?(a=(0,v.jsx)(I.Zp,{padding:2,radius:1,shadow:1,tone:"critical",children:(0,v.jsxs)(I.so,{gap:1,align:"center",children:[i,r]})}),d[9]=i,d[10]=a):a=d[10],a):null}let XZ=e=>{let t,n=(0,j.c)(2),{schedules:i}=e;return n[0]!==i?(t=(0,v.jsx)(I.BJ,{space:4,children:0===i.length?(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,children:"No schedules"})}):(0,v.jsx)(I.BJ,{space:2,children:i.map(Xq)})}),n[0]=i,n[1]=t):t=n[1],t};function Xq(e){return(0,v.jsx)(Xx,{schedule:e,type:"document"},e.id)}let XW=kd("ScheduleAction"),XJ=e=>{let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(47),{draft:p,id:m,liveEdit:h,onComplete:f,published:g,type:y}=e,C=o5();u[0]!==m||u[1]!==y?(t={id:m,type:y,permission:"publish"},u[0]=m,u[1]=y,u[2]=t):t=u[2];let[x,b]=dd(t),{createSchedule:w}=Gl(),{enabled:k,mode:S}=K5(),{handleOpenDialog:T}=GC(),[E,$]=(0,_.useState)(!1),{formData:A,onFormChange:D}=GT();u[3]!==m?(n={documentId:m,state:"scheduled"},u[3]=m,u[4]=n):n=u[4];let{error:z,isInitialLoading:P,schedules:R}=Gc(n);XW("schedules",R);let N=R&&R.length>0,O=null!==p||null!==g,V=!b&&!x?.granted;u[5]!==T||u[6]!==S?(i=()=>{"upsell"===S?T("document_action"):$(!0)},u[5]=T,u[6]=S,u[7]=i):i=u[7];let M=i;u[8]!==w||u[9]!==A||u[10]!==m||u[11]!==f?(r=()=>{A?.date&&w({date:A.date,documentId:m}).then(f)},u[8]=w,u[9]=A,u[10]=m,u[11]=f,u[12]=r):r=u[12];let L=r,F=N?"Edit Schedule":"Schedule";if(V){let e,t;return u[13]!==C?(e=(0,v.jsx)(R5,{currentUser:C,context:"edit-schedules"}),u[13]=C,u[14]=e):e=u[14],u[15]!==e||u[16]!==F?(t={disabled:!0,icon:eT.CTc,label:F,title:e},u[15]=e,u[16]=F,u[17]=t):t=u[17],t}let B="This document doesn't exist yet";O&&(B=null),P&&(B="Loading schedules"),h&&(B="Live Edit is enabled for this content type and publishing happens automatically as you make changes"),u[18]!==z||u[19]!==A||u[20]!==N||u[21]!==m||u[22]!==D||u[23]!==e||u[24]!==R||u[25]!==y?(a=z?(0,v.jsx)(K7,{description:"More information in the developer console.",title:"Something went wrong, unable to retrieve schedules."}):(0,v.jsx)(GI,{value:e,children:N?(0,v.jsx)(XZ,{schedules:R}):(0,v.jsx)(GQ,{onChange:D,value:A,children:(0,v.jsx)(XH,{id:m,schemaType:y})})}),u[18]=z,u[19]=A,u[20]=N,u[21]=m,u[22]=D,u[23]=e,u[24]=R,u[25]=y,u[26]=a):a=u[26],u[27]!==A?.date||u[28]!==L||u[29]!==N||u[30]!==f?(o=!N&&(0,v.jsx)(XY,{buttonText:"Schedule",disabled:!A?.date,icon:eT.O4,onAction:L,onComplete:f,tone:"primary"}),u[27]=A?.date,u[28]=L,u[29]=N,u[30]=f,u[31]=o):o=u[31],u[32]!==F?(l=(0,v.jsx)(G1,{timeZoneScope:KX,title:F}),u[32]=F,u[33]=l):l=u[33],u[34]!==f||u[35]!==a||u[36]!==o||u[37]!==l?(s={content:a,footer:o,header:l,onClose:f,type:"dialog"},u[34]=f,u[35]=a,u[36]=o,u[37]=l,u[38]=s):s=u[38];let Y=s;if(!k)return null;let H=E&&Y,U=P||!O||h;return u[39]!==B?(d=B&&(0,v.jsx)(I.az,{style:{maxWidth:"315px"},children:(0,v.jsx)(I.EY,{size:1,children:B})}),u[39]=B,u[40]=d):d=u[40],u[41]!==M||u[42]!==d||u[43]!==H||u[44]!==U||u[45]!==F?(c={dialog:H,disabled:U,label:F,icon:eT.CTc,onHandle:M,title:d},u[41]=M,u[42]=d,u[43]=H,u[44]=U,u[45]=F,u[46]=c):c=u[46],c};XJ.action="schedule",XJ.displayName="ScheduleAction";let XK=kd("ScheduledBadge"),XG=e=>{let t,n,i,r=(0,j.c)(7);r[0]!==e.id?(t={documentId:e.id,state:"scheduled"},r[0]=e.id,r[1]=t):t=r[1];let{schedules:a}=Gc(t);XK("schedules",a);let o=a?.[0];if(!o||!o.executeAt||!o.action)return null;r[2]!==o.executeAt?(n=(0,nn.GP)(new Date(o.executeAt),ko),r[2]=o.executeAt,r[3]=n):n=r[3];let l=n,s=KW[o.action],d=`${KW[o.action].actionName} on ${l} (local time)`;return r[4]!==s.badgeColor||r[5]!==d?(i={color:s.badgeColor,label:"Scheduled",title:d},r[4]=s.badgeColor,r[5]=d,r[6]=i):i=r[6],i};function XX(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(24),{id:m,markers:h}=e,f=Xt(m),{hasError:g}=G4(h);p[0]!==f?(t={documentId:f,state:"scheduled"},p[0]=f,p[1]=t):t=p[1];let{schedules:y}=Gc(t),{mode:C}=K5();if(!(y.length>0))return null;p[2]!==C?(n="upsell"===C&&(0,v.jsx)(I.Zp,{tone:"caution",padding:3,radius:3,shadow:1,marginBottom:3,children:(0,v.jsxs)(I.so,{align:"center",gap:3,padding:1,children:[(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(eT.sAQ,{})}),(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"medium",children:"Scheduled publishing is not available on your current plan"})]})}),p[2]=C,p[3]=n):n=p[3];let x=g?"critical":"primary";return p[4]!==C?(i="upsell"===C?{opacity:.7}:void 0,p[4]=C,p[5]=i):i=p[5],p[6]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(eT.CTc,{})}
1543),p[6]=r):r=p[6],p[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsxs)(I.so,{align:"center",gap:3,marginBottom:1,padding:1,children:[r,(0,v.jsxs)(I.EY,{muted:!0,size:1,children:[(0,v.jsx)("span",{style:{fontWeight:600},children:"Upcoming schedule"})," (local time)"]})]}),p[7]=a):a=p[7],p[8]!==y?(o=y.map(XQ),p[8]=y,p[9]=o):o=p[9],p[10]!==o?(l=(0,v.jsx)(I.BJ,{space:2,children:o}),p[10]=o,p[11]=l):l=p[11],p[12]!==g?(s=g&&(0,v.jsx)(I.az,{marginTop:3,children:(0,v.jsx)(I.EY,{muted:!0,size:1,weight:"regular",children:KG})}),p[12]=g,p[13]=s):s=p[13],p[14]!==l||p[15]!==s?(d=(0,v.jsxs)(I.BJ,{space:2,children:[a,l,s]}),p[14]=l,p[15]=s,p[16]=d):d=p[16],p[17]!==x||p[18]!==i||p[19]!==d?(c=(0,v.jsx)(I.Zp,{padding:3,radius:1,shadow:1,tone:x,style:i,children:d}),p[17]=x,p[18]=i,p[19]=d,p[20]=c):c=p[20],p[21]!==n||p[22]!==c?(u=(0,v.jsxs)(I.az,{marginBottom:4,children:[n,c]}),p[21]=n,p[22]=c,p[23]=u):u=p[23],u}function XQ(e){if(!e.executeAt)return null;let t=(0,nn.GP)(new Date(e.executeAt),ko);return(0,v.jsxs)(I.cV,{space:2,children:[(0,v.jsx)(I.EY,{muted:!0,size:1,children:t}),(0,v.jsx)(I.so,{style:{opacity:+("unpublish"===e.action)},children:(0,v.jsx)(I.Ex,{fontSize:0,mode:"outline",children:e.action})})]},e.id)}function X1(e){let t,n,i,r=(0,j.c)(8),{value:a,validation:o,children:l}=e;r[0]!==o?(t=o.map(X2),r[0]=o,r[1]=t):t=r[1];let s=t;return r[2]!==a||r[3]!==s?(n=a?._id?(0,v.jsx)(XX,{id:a._id,markers:s}):null,r[2]=a,r[3]=s,r[4]=n):n=r[4],r[5]!==l||r[6]!==n?(i=(0,v.jsxs)(v.Fragment,{children:[n,l]}),r[5]=l,r[6]=n,r[7]=i):i=r[7],i}function X2(e){return{level:e.level,path:e.path,item:{message:e.message},message:e.message}}function X5(e){let t,n=(0,j.c)(6),{enabled:i,mode:r}=K5();if(!i){let t;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],t}n[2]!==e?(t=e.renderDefault(e),n[2]=e,n[3]=t):t=n[3];let a=t;if("upsell"===r){let e;return n[4]!==a?(e=(0,v.jsx)(Gy,{children:a}),n[4]=a,n[5]=e):e=n[5],e}return a}XG.displayName="ScheduledBadge";let X0="sanity/scheduled-publishing",X7=R1({name:X0,document:{actions:(e,t)=>"published"===t.versionType?e:0>e.findIndex(e=>"publish"===e.action)?[XJ,...e]:e.flatMap(e=>"publish"===e.action?[e,XJ]:e),badges:e=>[...e,XG]},form:{components:{input:e=>{let t,n=(0,j.c)(7),{schemaType:i}=e;if("document"===function e(t){return t.type?e(t.type):t}(i).name){let t,i;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],n[2]!==e||n[3]!==t?(i=(0,v.jsx)(X1,{...e,children:t}),n[2]=e,n[3]=t,n[4]=i):i=n[4],i}return n[5]!==e?(t=e.renderDefault(e),n[5]=e,n[6]=t):t=n[6],t}}},studio:{components:{layout:function(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(K2,{children:(0,v.jsx)(X5,{...e})}),n[0]=e,n[1]=t):t=n[1],t}}},tools:e=>[...e,{name:"schedules",title:"Schedules",icon:eT.CTc,component:XB,router:nU.wE.create("/",[nU.wE.create("/state/:state"),nU.wE.create("/date/:date")]),__internalApplicationType:"sanity/scheduled-publishing"}]}),X3="tasks";function X8(e){let t,n,i=(0,j.c)(6),{children:r}=e,{enabled:a,isLoading:o,error:l}=EY("sanityTasks"),s=cY().tasks?.enabled;e:{let e;if(!s||o||l){let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e={enabled:!1,mode:null},i[0]=e):e=i[0],t=e;break e}let n=a?"default":"upsell";i[1]!==n?(e={enabled:!0,mode:n},i[1]=n,i[2]=e):e=i[2],t=e}let d=t;return i[3]!==r||i[4]!==d?(n=(0,v.jsx)(S.JW.Provider,{value:d,children:r}),i[3]=r,i[4]=d,i[5]=n):n=i[5],n}function X4(){return(0,_.useContext)(S.JW)}function X6(e){let t,n=(0,j.c)(3),{children:i,isLastPane:r}=e;return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(S.EM.Provider,{value:r,children:i}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t}function X9(e){let t,n,i,r=(0,j.c)(8),[a,o]=(0,_.useState)(null);r[0]!==a?(t={documentValue:a,permission:"read"},r[0]=a,r[1]=t):t=r[1];let l=esc(t);r[2]!==l||r[3]!==a?(n={mentionOptions:l,selectedDocument:a,setSelectedDocument:o},r[2]=l,r[3]=a,r[4]=n):n=r[4];let s=n;return r[5]!==e.children||r[6]!==s?(i=(0,v.jsx)(S.BY.Provider,{value:s,children:e.children}),r[5]=e.children,r[6]=s,r[7]=i):i=r[7],i}function Qe(){let e=(0,_.useContext)(S.BY);if(!e)throw Error("useMentionUser must be used within a MentionUserProvider");return e}let Qt=(0,tW.g_)({name:"Task Created",version:1,description:"A task is created"}),Qn=(0,tW.g_)({name:"Task Status Changed",version:1,description:"Task status changed"}),Qi=(0,tW.g_)({name:"Task Duplicated",version:1,description:"A task is duplicated"}),Qr=(0,tW.g_)({name:"Task Removed",version:1,description:"A task is removed"}),Qa=(0,tW.g_)({name:"Task Link Copied",version:1,description:"The link to a task is copied"}),Qo=(0,tW.g_)({name:"Task Link Opened",version:1,description:"User visited the studio through a link with a task"}),Ql={viewMode:"list",selectedTask:null,activeTabId:"assigned",duplicateTaskValues:null,isOpen:!1};function Qs(e,t){switch(t.type){case"TOGGLE_TASKS_VIEW":return t.payload?{...e,isOpen:t.payload}:{...Ql,isOpen:t.payload};case"CREATE_TASK":return{...e,viewMode:"create",selectedTask:(0,ii.A)()};case"EDIT_TASK":return{...e,viewMode:"edit",selectedTask:t.payload.id};case"EDIT_DRAFT":return{...e,viewMode:"draft",selectedTask:t.payload.id};case"DUPLICATE_TASK":return{...e,viewMode:"duplicate",selectedTask:(0,ii.A)(),duplicateTaskValues:t.payload.duplicateTaskValues};case"SET_ACTIVE_TAB":return{...e,viewMode:"list",activeTabId:t.payload};case"NAVIGATE_TO_LIST":return{...e,viewMode:"list"};default:return e}}let Qd=e=>{let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(25),{children:h}=e,[f,g]=(0,_.useReducer)(Qs,Ql),y=(0,nU.rd)(),C=(0,T.dj)(),x=(0,tK.Jr)();m[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{switch(e.type){case"list":g({type:"NAVIGATE_TO_LIST"});break;case"create":g({type:"CREATE_TASK"});break;case"edit":g({type:"EDIT_TASK",payload:{id:e.id}});break;case"duplicate":g({type:"DUPLICATE_TASK",payload:{duplicateTaskValues:e.duplicateTaskValues}});break;case"draft":g({type:"EDIT_DRAFT",payload:{id:e.id}})}},m[0]=t):t=m[0];let b=t;m[1]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{g({type:"SET_ACTIVE_TAB",payload:e})},m[1]=n):n=m[1];let w=n;m[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{g({type:"TOGGLE_TASKS_VIEW",payload:!1})},m[2]=i):i=m[2];let k=i;m[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{g({type:"TOGGLE_TASKS_VIEW",payload:!0})},m[3]=r):r=m[3];let I=r;m[4]!==f.selectedTask||m[5]!==f.viewMode||m[6]!==x||m[7]!==C?(a=()=>{let e=new URL(window.location.href);e.searchParams.set("sidebar","tasks"),e.searchParams.set("viewMode",f.viewM
1543ode),f.selectedTask&&e.searchParams.set("selectedTask",f.selectedTask),navigator.clipboard.writeText(e.toString()).then(()=>{x.log(Qa)}).catch(()=>{C.push({closable:!0,status:"error",title:"Failed to copy link to clipboard"})})},m[4]=f.selectedTask,m[5]=f.viewMode,m[6]=x,m[7]=C,m[8]=a):a=m[8];let E=a;if(m[9]!==y.state._searchParams){let e=new URLSearchParams(y.state._searchParams);o=e.get("sidebar"),s=e.get("viewMode"),l=e.get("selectedTask"),m[9]=y.state._searchParams,m[10]=o,m[11]=l,m[12]=s}else o=m[10],l=m[11],s=m[12];let $=l;m[13]!==$||m[14]!==o||m[15]!==x||m[16]!==s?(d=()=>{"tasks"===o&&(g({type:"TOGGLE_TASKS_VIEW",payload:!0}),"edit"===s&&$&&(g({type:"EDIT_TASK",payload:{id:$}}),x.log(Qo)))},c=[$,o,x,s],m[13]=$,m[14]=o,m[15]=x,m[16]=s,m[17]=d,m[18]=c):(d=m[17],c=m[18]),(0,_.useEffect)(d,c),m[19]!==E||m[20]!==f?(u={state:f,setViewMode:b,setActiveTab:w,handleCloseTasks:k,handleOpenTasks:I,handleCopyLinkToTask:E},m[19]=E,m[20]=f,m[21]=u):u=m[21];let A=u;return m[22]!==h||m[23]!==A?(p=(0,v.jsx)(S.S$.Provider,{value:A,children:h}),m[22]=h,m[23]=A,m[24]=p):p=m[24],p};function Qc(){return(0,_.useContext)(S.S$)||Qu}let Qu={state:{activeTabId:"assigned",viewMode:"list",selectedTask:null,isOpen:!1,duplicateTaskValues:null},setActiveTab:()=>null,setViewMode:()=>null,handleCloseTasks:()=>null,handleCopyLinkToTask:()=>null,handleOpenTasks:()=>null};function Qp(e,t){switch(t.type){case"TASKS_SET":{let n=t.tasks.reduce((e,t)=>({...e,[t._id]:t}),{});return{...e,tasks:n}}case"TASK_ADDED":{let n=t.payload,i={[n._id]:{...e.tasks[n._id],...n,_state:n._state||void 0,_createdAt:n._createdAt||new Date().toISOString()}};return{...e,tasks:{...e.tasks,...i}}}case"TASK_RECEIVED":{let n=t.payload;return{...e,tasks:{...e.tasks,[n._id]:n}}}case"TASK_DELETED":{let{[t.id]:n,...i}=e.tasks;return{...e,tasks:i}}case"TASK_UPDATED":{let n=t.payload,i=n._id,r={...e.tasks[i],...n};return{...e,tasks:{...e.tasks,[i]:r}}}default:return e}}let Qm={tasks:{}},Qh={events:["welcome","mutation","reconnect"],includeResult:!0,visibility:"query",includeAllVersions:!0,tag:"tasks-store"},Qf=`{ 1544 ..., 1545}`,Qg=`*[_type == "tasks.task"] ${Qf} | order(_createdAt desc)`,Qy=[];function QC(e){let t,n,i,r,a,o=(0,j.c)(11),{children:l}=e,[s,d]=(0,_.useState)(null);o[0]===Symbol.for("react.memo_cache_sentinel")?(t={},o[0]=t):t=o[0];let{data:c,isLoading:u}=function(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(24),{client:u}=J2(),{documentId:p}=e,[m,h]=(0,_.useReducer)(Qp,Qm),[f,g]=(0,_.useState)(null!==u),[y,C]=(0,_.useState)(null);c[0]!==p?(t=p?(0,tG.IM)(p):null,c[0]=p,c[1]=t):t=c[1],c[2]!==t?(n={documentId:t},c[2]=t,c[3]=n):n=c[3];let x=n;c[4]!==u||c[5]!==x?(i=async()=>{if(!u)return void g(!1);try{let e=await u.fetch(Qg,x);h({type:"TASKS_SET",tasks:e}),g(!1)}catch(e){C(e)}},c[4]=u,c[5]=x,c[6]=i):i=c[6];let b=i;c[7]!==b?(r=async e=>{if("welcome"===e.type&&(g(!0),await b(),g(!1)),"reconnect"===e.type&&g(!0),"mutation"===e.type){if("appear"===e.transition){let t=e.result;t&&h({type:"TASK_RECEIVED",payload:t})}if("disappear"===e.transition&&h({type:"TASK_DELETED",id:e.documentId}),"update"===e.transition){let t=e.result;t&&h({type:"TASK_UPDATED",payload:t})}}},c[7]=b,c[8]=r):r=c[8];let v=r;e:{let e;if(!u){let e;c[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eP.of)(),c[9]=e):e=c[9],a=e;break e}if(c[10]!==u.observable||c[11]!==x){let t;c[13]===Symbol.for("react.memo_cache_sentinel")?(t=e=>(C(e),(0,eP.of)(e)),c[13]=t):t=c[13],e=u.observable.listen(Qg,x,Qh).pipe((0,eY.W)(t)),c[10]=u.observable,c[11]=x,c[12]=e}else e=c[12];a=e}let w=a;c[14]!==v||c[15]!==w?(o=()=>{let e=w.subscribe(v);return()=>{e?.unsubscribe()}},l=[v,w],c[14]=v,c[15]=w,c[16]=o,c[17]=l):(o=c[16],l=c[17]),(0,_.useEffect)(o,l),c[18]!==m.tasks?(s=Object.values(m.tasks),c[18]=m.tasks,c[19]=s):s=c[19];let k=s;return c[20]!==y||c[21]!==f||c[22]!==k?(d={data:k,dispatch:h,error:y,isLoading:f},c[20]=y,c[21]=f,c[22]=k,c[23]=d):d=c[23],d}(t),p=void 0===c?Qy:c;o[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,U.A)(d,1e3),o[1]=n):n=o[1];let m=n;o[2]!==p?(i=p??[],o[2]=p,o[3]=i):i=o[3],o[4]!==s||o[5]!==u||o[6]!==i?(r={activeDocument:s,setActiveDocument:m,isLoading:u,data:i},o[4]=s,o[5]=u,o[6]=i,o[7]=r):r=o[7];let h=r;return o[8]!==l||o[9]!==h?(a=(0,v.jsx)(S.sF.Provider,{value:h,children:l}),o[8]=l,o[9]=h,o[10]=a):a=o[10],a}function Qx(){let e=(0,j.c)(1),t=(0,_.useContext)(S.sF);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={activeDocument:null,setActiveDocument:Qb,data:[],isLoading:!1},e[0]=t):t=e[0],t}return t}function Qb(){return null}function Qv(e){let t,n,i,r,a=(0,j.c)(9);a[0]===Symbol.for("react.memo_cache_sentinel")?(t={dataUri:"/journey/tasks",feature:"tasks"},a[0]=t):t=a[0];let o=$O(t),l=e.children;return a[1]!==o?(n=$N(o),a[1]=o,a[2]=n):n=a[2],a[3]!==n?(i=(0,v.jsx)($7,{...n}),a[3]=n,a[4]=i):i=a[4],a[5]!==o||a[6]!==e.children||a[7]!==i?(r=(0,v.jsxs)(S.b_.Provider,{value:o,children:[l,i]}),a[5]=o,a[6]=e.children,a[7]=i,a[8]=r):r=a[8],r}function Qj(){return(0,_.useContext)(S.b_)||Qw}let Qw={upsellData:null,handleOpenDialog:()=>null,handleClose:()=>null,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:()=>null,dialogPrimaryClicked:()=>null,panelViewed:()=>null,panelDismissed:()=>null,panelPrimaryClicked:()=>null,panelSecondaryClicked:()=>null}};function Q_(){let e,t,n=(0,j.c)(14),{handleOpenTasks:i,setViewMode:r}=Qc(),{enabled:a,mode:o}=X4(),{handleOpenDialog:l}=Qj();n[0]!==l||n[1]!==i||n[2]!==o||n[3]!==r?(e=()=>{"upsell"===o?l("document_action"):(i(),r({type:"create"}))},n[0]=l,n[1]=i,n[2]=o,n[3]=r,n[4]=e):e=n[4];let s=e,{t:d}=as(X3);e:{let e,i,r,o;
1545if(!a){t=null;break e}n[5]!==d?(e=d("actions.create.text"),n[5]=d,n[6]=e):e=n[6],n[7]!==d?(i=d("actions.create.text"),n[7]=d,n[8]=i):i=n[8],n[9]===Symbol.for("react.memo_cache_sentinel")?(r=["paneActions"],n[9]=r):r=n[9],n[10]!==s||n[11]!==e||n[12]!==i?(o={icon:eT.ZMV,label:e,title:i,group:r,onHandle:s},n[10]=s,n[11]=e,n[12]=i,n[13]=o):o=n[13],t=o}return t}function Qk(e){let t,n,i=(0,j.c)(6),{documentId:r,documentType:a}=e,o=(0,_.useContext)(S.EM),{setActiveDocument:l}=Qx();return i[0]!==r||i[1]!==a||i[2]!==o||i[3]!==l?(t=()=>(r&&o&&a&&l?.({documentId:(0,tG.A_)(r)?r:(0,tG.IM)(r),documentType:a}),()=>{o&&l?.(null)}),n=[r,a,o,l],i[0]=r,i[1]=a,i[2]=o,i[3]=l,i[4]=t,i[5]=n):(t=i[4],n=i[5]),(0,_.useEffect)(t,n),null}function QS(e){let t,n=(0,j.c)(2),{enabled:i}=X4();return i?(n[0]!==e?(t=(0,v.jsx)(Qk,{...e}),n[0]=e,n[1]=t):t=n[1],t):null}function QI(e){let t,n,i,r=(0,j.c)(8),a=e.value?._id,o=e.value?._type;return r[0]!==a||r[1]!==o?(t=(0,v.jsx)(QS,{documentId:a,documentType:o}),r[0]=a,r[1]=o,r[2]=t):t=r[2],r[3]!==e?(n=e.renderDefault(e),r[3]=e,r[4]=n):n=r[4],r[5]!==t||r[6]!==n?(i=(0,v.jsxs)(v.Fragment,{children:[t,n]}),r[5]=t,r[6]=n,r[7]=i):i=r[7],i}Q_.displayName="TaskCreateAction";let QT=eI.I4.div.withConfig({displayName:"ButtonContainer",componentId:"sc-s9haa-0"})`position:relative;[data-ui='Badge']{position:absolute;top:-2px;right:-2px;}`;function QE({documentId:e,documentType:t,dataset:n,projectId:i}){return{documentType:t,document:{_ref:(0,tG.IM)(e),_type:"crossDatasetReference",_dataset:n,_projectId:i,_weak:!0}}}function Q$(e){if(!e)return[];let t=[];return e?.forEach(e=>{(0,eD.L4)(e)&&e.children.forEach(e=>{"mention"!==e._type||"string"!=typeof e.userId||t.includes(e.userId)||t.push(e.userId)})}),t}let QA="2024-03-05",QD=[{value:"open",title:"To Do",icon:(0,v.jsx)(eT.GQ2,{})},{value:"closed",title:"Done",icon:(0,v.jsx)(eT.Dee,{})}],Qz=["title","status","assignedTo","dueBy","target","description"];function QP(){let e,t,n,i,r=(0,j.c)(12),{client:a,createAddonDataset:o}=J2(),l=o5();r[0]!==a||r[1]!==o||r[2]!==l?(e=async e=>{if(!l)throw Error("No current user found. Unable to create task.");let t={...e,authorId:l.id,_type:"tasks.task"};if(!a){let e=await o();if(!e)throw Error("No addon client found. Unable to create task.");return await e.create(t)}return await a.create(t)},r[0]=a,r[1]=o,r[2]=l,r[3]=e):e=r[3];let s=e;r[4]!==a?(t=async(e,t)=>{if(!a)throw Error("No client. Unable to create task.");return await a.patch(e).set(t).commit()},r[4]=a,r[5]=t):t=r[5];let d=t;r[6]!==a?(n=async e=>{if(!a)throw Error("No client. Unable to create task.");await a.delete(e)},r[6]=a,r[7]=n):n=r[7];let c=n;return r[8]!==s||r[9]!==d||r[10]!==c?(i={create:s,edit:d,remove:c},r[8]=s,r[9]=d,r[10]=c,r[11]=i):i=r[11],i}function QR(e){let t,n,i,r,a=(0,j.c)(12),{id:o,onError:l,onRemoved:s}=e,[d,c]=(0,_.useState)("idle"),[u,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(null),f=QP();a[0]!==o||a[1]!==l||a[2]!==s||a[3]!==f?(t=async()=>{let e=async()=>{c("loading"),await f.remove(o),s?.(),c("idle"),await new Promise(QN),p(!1)};try{await e()}catch(e){l?.(e.message),h(e.message),c("error")}c("idle")},a[0]=o,a[1]=l,a[2]=s,a[3]=f,a[4]=t):t=a[4];let g=t;a[5]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{p(!0)},a[5]=n):n=a[5];let y=n;a[6]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{p(!1)},a[6]=i):i=a[6];let C=i;return a[7]!==m||a[8]!==g||a[9]!==d||a[10]!==u?(r={removeStatus:d,showDialog:u,error:m,handleRemove:g,handleOpenDialog:y,handleCloseDialog:C},a[7]=m,a[8]=g,a[9]=d,a[10]=u,a[11]=r):r=a[11],r}function QN(e){return setTimeout(e,300)}let QO={month:"long",day:"2-digit",minute:"2-digit",hour:"2-digit",second:"2-digit"},QV={minimal:!0,useTemporalPhrase:!0},QM=eI.I4.strong.withConfig({displayName:"Strong",componentId:"sc-wah2ag-0"})`font-weight:600;`,QL=eI.I4.span.withConfig({displayName:"NoWrap",componentId:"sc-wah2ag-1"})`white-space:nowrap;`;function QF(e){let t,n=(0,j.c)(3),i=new Date(e),r=ud(QO).format(i),a=um(i||"",QV);return n[0]!==r||n[1]!==a?(t={timeAgo:a,formattedDate:r},n[0]=r,n[1]=a,n[2]=t):t=n[2],t}function QB(e){let t,n=(0,j.c)(3),{userId:i}=e,[r,a]=o2(i);return n[0]!==a||n[1]!==r?.displayName?(t=a?(0,v.jsx)(T.r5,{style:{width:"15ch"}}):(0,v.jsx)(QM,{children:r?.displayName}),n[0]=a,n[1]=r?.displayName,n[2]=t):t=n[2],t}let QY={month:"short",day:"numeric",timeZone:"UTC"};function QH(e){let t,n=(0,j.c)(2),{date:i}=e,r=new Date(i),a=ud(QY).format(r);return n[0]!==a?(t=(0,v.jsx)(QM,{children:(0,v.jsx)(QL,{children:a})}),n[0]=a,n[1]=t):t=n[1],t}let QU=eI.I4.span.withConfig({displayName:"LinkWrapper",componentId:"sc-wah2ag-2"})`> a{color:var(--card-fg-muted-color);text-decoration:underline;text-underline-offset:1px;font-weight:600;}`;function QZ(e){let t,n,i,r=(0,j.c)(11),{target:a}=e,o=R8(),l=a.document._ref,s=a.documentType,d=o.get(s),{perspectiveStack:c}=a3();r[0]!==l||r[1]!==s||r[2]!==c?(t={documentId:l,documentType:s,perspectiveStack:c},r[0]=l,r[1]=s,r[2]=c,r[3]=t):t=r[3];let{isLoading:u,value:p}=NT(t);if(u){let e;return r[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.r5,{style:{width:"15ch"}}),r[4]=e):e=r[4],e}if(!d)return null;r[5]!==l||r[6]!==s?(n={id:l,type:s},r[5]=l,r[6]=s,r[7]=n):n=r[7];let m=p?.title;return r[8]!==n||r[9]!==m?(i=(0,v.jsx)(QU,{children:(0,v.jsx)(nU.RZ,{intent:"edit",params:n,children:m})}),r[8]=n,r[9]=m,r[10]=i):i=r[10],i}let Qq=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s=(0,j.c)(20),{activity:d}=e,{formattedDate:c,timeAgo:u}=QF(d.timestamp);s[0]!==d?(t=function(e){switch(e.field){case"status":{let t=QD.find(t=>t.value===e.to)?.title;return{text:"changed status to",icon:QD.find(t=>t.value===e.to)?.icon||(0,v.jsx)(eT.GQ2,{}),changeTo:(0,v.jsx)(QM,{children:t})}}case"target":return e.to?{text:"set target content to",icon:(0,v.jsx)(eT.qYV,{}),changeTo:(0,v.jsx)(QZ,{target:e.to})}:{text:"removed target content",icon:(0,v.jsx)(eT.qYV,{}),changeTo:void 0};case"dueBy":return e.from?e.to?{text:"changed the due date to",icon:(0,v.jsx)(eT.CTc,{}),changeTo:(0,v.jsx)(QH,{date:e.to})}:{text:"removed the due date",icon:(0,v.jsx)(eT.CTc,{}),changeTo:void 0}:{text:"set the due date to",icon:(0,v.jsx)(eT.CTc,{}),changeTo:(0,v.jsx)(QH,{date:e.to})};case"assignedTo":return e.to?{text:"assigned to",icon:(0,v.jsx)(eT.nys,{}),changeTo:(0,v.jsx)(QB,{userId:e.to})}:{text:"unassigned this task",icon:(0,v.jsx)(eT.nys,{}),changeTo:void 0};
1545case"description":return{text:"updated the task description",icon:(0,v.jsx)(eT.qUP,{}),changeTo:void 0};case"title":return{text:"updated the task title",icon:(0,v.jsx)(eT.qUP,{}),changeTo:void 0};default:return{text:"",icon:(0,v.jsx)(eT.GQ2,{})}}}(d),s[0]=d,s[1]=t):t=s[1];let{icon:p,text:m,changeTo:h}=t;return s[2]!==p?(n=(0,v.jsx)(I.az,{marginTop:1,marginLeft:1,marginRight:3,children:(0,v.jsx)(I.az,{marginRight:1,children:(0,v.jsx)(I.EY,{children:p})})}),s[2]=p,s[3]=n):n=s[3],s[4]!==d.author?(i=(0,v.jsx)(QB,{userId:d.author}),s[4]=d.author,s[5]=i):i=s[5],s[6]!==c||s[7]!==u?(r=(0,v.jsx)(QL,{children:(0,v.jsx)("time",{dateTime:c,children:u})}),s[6]=c,s[7]=u,s[8]=r):r=s[8],s[9]!==c||s[10]!==r?(a=(0,v.jsx)(tL.m_,{content:c,placement:"top-end",children:r}),s[9]=c,s[10]=r,s[11]=a):a=s[11],s[12]!==h||s[13]!==i||s[14]!==a||s[15]!==m?(o=(0,v.jsxs)(I.EY,{muted:!0,size:1,children:[i," ",m," ",h," â¢"," ",a]}),s[12]=h,s[13]=i,s[14]=a,s[15]=m,s[16]=o):o=s[16],s[17]!==n||s[18]!==o?(l=(0,v.jsxs)(I.so,{gap:1,children:[n,o]}),s[17]=n,s[18]=o,s[19]=l):l=s[19],l},(e,t)=>e.activity.timestamp===t.activity.timestamp),QW=eI.I4.div.withConfig({displayName:"AvatarRoot",componentId:"sc-nls8jj-0"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 1546 min-height: ${t.avatar.sizes[e.$size]?.size}px; 1547 min-width: ${t.avatar.sizes[e.$size]?.size}px; 1548 display: flex; 1549 align-items: center; 1550 justify-content: center; 1551 border-radius: 50%; 1552 ${e.$border?"box-shadow: inset 0 0 0 1px var(--card-border-color);":""}; 1553 ${e.$removeBg?"--card-avatar-gray-bg-color: transparent;":""} 1554 `});function QJ(e){let t,n,i,r,a,o,l=(0,j.c)(27),{user:s,size:d,border:c}=e,u=void 0===d?0:d,p=void 0===c||c,[m,h]=o2(s?.id||"");if(h){let e;return l[0]!==u?(e=(0,v.jsx)(ut,{$size:u,animated:!0}),l[0]=u,l[1]=e):e=l[1],e}if(!s||!m){let e,t,n;return l[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eT.nys,{}),l[2]=e):e=l[2],l[3]!==u?(t=(0,v.jsx)(I.EY,{size:u,children:e}),l[3]=u,l[4]=t):t=l[4],l[5]!==p||l[6]!==u||l[7]!==t?(n=(0,v.jsx)(QW,{$size:u,$border:p,children:t}),l[5]=p,l[6]=u,l[7]=t,l[8]=n):n=l[8],n}let f=!e.withTooltip;l[9]===Symbol.for("react.memo_cache_sentinel")?(t=["top","top-start"],l[9]=t):t=l[9];let g=!!m?.imageUrl;return l[10]!==m.imageUrl?(n=m?.imageUrl?{color:void 0}:{},l[10]=m.imageUrl,l[11]=n):n=l[11],l[12]!==e.withTooltip?(i=e.withTooltip?{title:null}:{},l[12]=e.withTooltip,l[13]=i):i=l[13],l[14]!==m||l[15]!==u||l[16]!==n||l[17]!==i?(r=(0,v.jsx)(ua,{user:m,size:u,...n,...i}),l[14]=m,l[15]=u,l[16]=n,l[17]=i,l[18]=r):r=l[18],l[19]!==u||l[20]!==g||l[21]!==r?(a=(0,v.jsx)(QW,{$size:u,$removeBg:g,children:r}),l[19]=u,l[20]=g,l[21]=r,l[22]=a):a=l[22],l[23]!==m.displayName||l[24]!==f||l[25]!==a?(o=(0,v.jsx)(tL.m_,{content:m.displayName,disabled:f,portal:!0,fallbackPlacements:t,placement:"top-end",children:a}),l[23]=m.displayName,l[24]=f,l[25]=a,l[26]=o):o=l[26],o}let QK=(0,eI.I4)(I.so).withConfig({displayName:"ActivityChildrenRoot",componentId:"sc-ymm4s0-0"})`height:100%;`,QG=eI.I4.div.withConfig({displayName:"ActivityItemChildrenContainer",componentId:"sc-ymm4s0-1"})`width:100%;`;function QX(e){let t,n,i,r,a=(0,j.c)(10),{avatarPaddingTop:o,userId:l,children:s}=e,d=void 0===o?1:o;return a[0]!==l?(t=(0,v.jsx)(QJ,{user:{id:l},size:0}),a[0]=l,a[1]=t):t=a[1],a[2]!==d||a[3]!==t?(n=(0,v.jsx)(I.az,{marginRight:3,paddingTop:d,children:t}),a[2]=d,a[3]=t,a[4]=n):n=a[4],a[5]!==s?(i=(0,v.jsx)(QK,{align:"center",flex:1,children:(0,v.jsx)(QG,{children:s})}),a[5]=s,a[6]=i):i=a[6],a[7]!==n||a[8]!==i?(r=(0,v.jsxs)(I.so,{children:[n,i]}),a[7]=n,a[8]=i,a[9]=r):r=a[9],r}function QQ(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(25),{mentionOptions:u,currentUser:p,onSubmit:m}=e,{mode:h}=X4(),[f,g]=(0,_.useState)(null),y=(0,_.useRef)(null);c[0]!==f?(t=Z1(f),c[0]=f,c[1]=t):t=c[1];let C=t;c[2]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{g(e)},c[2]=n):n=c[2];let x=n;c[3]!==C||c[4]!==m||c[5]!==f?(i=()=>{C&&(m(f),g(null))},c[3]=C,c[4]=m,c[5]=f,c[6]=i):i=c[6];let b=i;c[7]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{y.current?.discardDialogController.close()},c[7]=r):r=c[7];let w=r;c[8]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{y.current?.discardDialogController.close(),g(null)},c[8]=a):a=c[8];let k=a;c[9]!==C?(o=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),C?y.current?.discardDialogController.open():(y.current?.discardDialogController.close(),g(null)))},c[9]=C,c[10]=o):o=c[10];let S=o,{t:T}=as(X3),E="upsell"===h;return c[11]!==h||c[12]!==T?(l=T("upsell"===h?"panel.comment.placeholder.upsell":"panel.comment.placeholder"),c[11]=h,c[12]=T,c[13]=l):l=c[13],c[14]!==p||c[15]!==S||c[16]!==b||c[17]!==u||c[18]!==E||c[19]!==l||c[20]!==f?(s=(0,v.jsx)(I.Zp,{tone:"transparent",radius:3,padding:2,children:(0,v.jsx)(qU,{withAvatar:!1,currentUser:p,expandOnFocus:!0,mentionOptions:u,onChange:x,onDiscardConfirm:k,onDiscardCancel:w,onKeyDown:S,onSubmit:b,readOnly:E,placeholder:l,ref:y,value:f})}),c[14]=p,c[15]=S,c[16]=b,c[17]=u,c[18]=E,c[19]=l,c[20]=f,c[21]=s):s=c[21],c[22]!==p.id||c[23]!==s?(d=(0,v.jsx)(QX,{userId:p.id,avatarPaddingTop:3,children:s}),c[22]=p.id,c[23]=s,c[24]=d):d=c[24],d}let Q1={parentCommentAvatar:!1,threadCommentsAvatar:!0,replyAvatar:!0,avatarSize:0},Q2=eI.I4.div.withConfig({displayName:"CommentListItemRoot",componentId:"sc-noev9t-0"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 1555 [data-ui='CommentsListItem'] { 1556 padding-right: ${t.space[2]}px; 1557 } 1558 1559 // Increase the padding when the comment input is focused 1560 [data-ui='CommentInputEditableWrap']:focus-within { 1561 padding-bottom: ${t.space[2]}px; 1562 } 1563 `});function Q5(e){let t,n,i=(0,j.c)(6),{parentComment:r}=e,{mode:a}=X4(),o=a??"default";return i[0]!==e||i[1]!==o?(t=(0,v.jsx)(Q2,{children:(0,v.jsx)(WU,{...e,avatarConfig:Q1,canReply:!0,isSelected:!1,mode:o})}),i[0]=e,i[1]=o,i[2]=t):t=i[2],i[3]!==r.authorId||i[4]!==t?(n=(0,v.jsx)(QX,{userId:r.authorId,avatarPaddingTop:3,children:t}),i[3]=r.authorId,i[4]=t,i[5]=n):n=i[5],n}let Q0=(0,eI.I4)(T.r5).withConfig({displayName:"UserSkeleton",componentId:"sc-i297zw-0"})`max-width:15ch;width:'100%';`,Q7=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(22),{createdAt:c,authorId:u}=e,[p,m]=o2(u),{timeAgo:h,formattedDate:f}=QF(c),{t:g}=as(X3);return d[0]===Symbol.for("react.memo_cache_sentinel")?(t={fontWeight:600},d[0]=t):t=d[0],d[1]!==m||d[2]!==g||d[3]!==p?.displayName?(n=m?(0,v.jsx)(Q0,{}
1563):p?.displayName??g("panel.activity.unknown-user"),d[1]=m,d[2]=g,d[3]=p?.displayName,d[4]=n):n=d[4],d[5]!==n?(i=(0,v.jsxs)("strong",{style:t,children:[n," "]}),d[5]=n,d[6]=i):i=d[6],d[7]!==g?(r=g("panel.activity.created-fragment"),d[7]=g,d[8]=r):r=d[8],d[9]!==c||d[10]!==h?(a=(0,v.jsx)(QL,{children:(0,v.jsx)("time",{dateTime:c,children:h})}),d[9]=c,d[10]=h,d[11]=a):a=d[11],d[12]!==f||d[13]!==a?(o=(0,v.jsx)(tL.m_,{content:f,placement:"top-end",children:a}),d[12]=f,d[13]=a,d[14]=o):o=d[14],d[15]!==i||d[16]!==r||d[17]!==o?(l=(0,v.jsx)(I.so,{align:"center",paddingTop:1,children:(0,v.jsxs)(I.EY,{size:1,muted:!0,children:[i,r," â¢"," ",o]})}),d[15]=i,d[16]=r,d[17]=o,d[18]=l):l=d[18],d[19]!==u||d[20]!==l?(s=(0,v.jsx)(QX,{userId:u,children:l}),d[19]=u,d[20]=l,d[21]=s):s=d[21],s},(e,t)=>e.createdAt===t.createdAt);function Q3(e){let t,n,i,r,a=(0,j.c)(13),{value:o,onChange:l,path:s,currentUserId:d}=e,c=o.subscribers?.includes(d)?"Unsubscribe":"Subscribe";a[0]!==d||a[1]!==l||a[2]!==s||a[3]!==o.subscribers?(t=()=>{let e=o.subscribers||[];e.includes(d)||l(hq(e.concat(d),s)),e.includes(d)&&l(hq(e.filter(e=>e!==d),s))},a[0]=d,a[1]=l,a[2]=s,a[3]=o.subscribers,a[4]=t):t=a[4];let u=t;return a[5]!==c||a[6]!==u?(n=(0,v.jsx)(tL.$n,{mode:"bleed",text:c,onClick:u}),a[5]=c,a[6]=u,a[7]=n):n=a[7],a[8]!==o.subscribers?(i=o.subscribers&&o.subscribers?.length>0&&(0,v.jsx)(Q4,{subscriberIds:o.subscribers}),a[8]=o.subscribers,a[9]=i):i=a[9],a[10]!==n||a[11]!==i?(r=(0,v.jsxs)(I.so,{gap:1,align:"center",children:[n,i]}),a[10]=n,a[11]=i,a[12]=r):r=a[12],r}let Q8=[];function Q4(e){let t,n,i,r=(0,j.c)(6),{subscriberIds:a}=e;r[0]!==a?(t=a?.filter(Boolean)||Q8,r[0]=a,r[1]=t):t=r[1];let o=t;return r[2]!==o?(n=o.map(Q6),r[2]=o,r[3]=n):n=r[3],r[4]!==n?(i=(0,v.jsx)(ia.N,{initial:!1,children:(0,v.jsx)(I.GE,{maxLength:3,size:0,children:n})}),r[4]=n,r[5]=i):i=r[5],i}function Q6(e){return(0,v.jsx)(ir.P.div,{exit:{opacity:0,x:"2px",scale:.9},animate:{opacity:1,x:0,scale:1,transition:{type:"spring",visualDuration:.2}},initial:{opacity:0,x:"2px",scale:.9},children:(0,v.jsx)(QJ,{user:{id:e},size:0})},e)}let Q9=[],eee={hidden:{opacity:0,x:0},visible:{opacity:1,x:0}},eet=(0,eI.I4)(ir.P.create(I.BJ)).withConfig({displayName:"MotionStack",componentId:"sc-e0lmf7-0"})``;function een(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(79),{value:T,onChange:E,path:$,activityData:A}=e;S[0]!==A?(t=void 0===A?[]:A,S[0]=A,S[1]=t):t=S[1];let D=t,z=o5(),{title:P,basePath:R,name:N}=cY(),{comments:O,mentionOptions:V,operation:M,getComment:L}=Jm(),[F,B]=(0,_.useState)(null),[Y,H]=(0,_.useState)(null),[U,Z]=(0,_.useState)(!1),q=O.loading,W=O.data.open;S[2]!==R||S[3]!==T._id||S[4]!==T.subscribers||S[5]!==T.title||S[6]!==N||S[7]!==P?(n=(e,t)=>{let n=new URL(`${window.location.origin}${R?`${R}/`:""}`);n.searchParams.set("sidebar","tasks"),n.searchParams.set("selectedTask",T?._id),n.searchParams.set("viewMode","edit"),n.searchParams.set("commentId",t);let i=Q$(e),r=Array.from(new Set([...T.subscribers||[],...i]));return{documentTitle:T.title||"Sanity task",url:n.toString(),workspaceTitle:P,workspaceName:N,subscribers:r}},S[2]=R,S[3]=T._id,S[4]=T.subscribers,S[5]=T.title,S[6]=N,S[7]=P,S[8]=n):n=S[8];let J=n;S[9]!==J||S[10]!==E||S[11]!==M?(i=async e=>{let t=(0,ii.A)(),n=J(e,t),i={id:t,type:"task",message:e,parentCommentId:void 0,reactions:Q9,status:"open",threadId:(0,ii.A)(),context:{notification:n}};E(hq(n.subscribers,["subscribers"])),await M.create(i)},S[9]=J,S[10]=E,S[11]=M,S[12]=i):i=S[12];let K=i;S[13]!==J||S[14]!==E||S[15]!==M?(r=async e=>{let t=(0,ii.A)(),n=J(e.message,t);E(hq(n.subscribers,["subscribers"])),await M.create({id:t,type:"task",message:e.message,parentCommentId:e.parentCommentId,reactions:Q9,status:"open",threadId:e.threadId,context:{notification:n}})},S[13]=J,S[14]=E,S[15]=M,S[16]=r):r=S[16];let G=r;S[17]!==L||S[18]!==J||S[19]!==E||S[20]!==M?(a=async e=>{let t=L(e);if(!t)return;let n=J(t.message,t._id);E(hq(n.subscribers,["subscribers"])),await M.create({type:"task",id:t._id,message:t.message,parentCommentId:t.parentCommentId,reactions:t.reactions||Q9,status:t.status,threadId:t.threadId,context:{notification:n}})},S[17]=L,S[18]=J,S[19]=E,S[20]=M,S[21]=a):a=S[21];let X=a;S[22]!==M?(o=async(e,t)=>{await M.react(e,t)},S[22]=M,S[23]=o):o=S[23];let Q=o;S[24]===Symbol.for("react.memo_cache_sentinel")?(l=e=>B(e),S[24]=l):l=S[24];let ee=l;S[25]===Symbol.for("react.memo_cache_sentinel")?(s=()=>B(null),S[25]=s):s=S[25];let et=s;S[26]!==M?(d=async e=>{try{Z(!0),H(null),await M.remove(e),B(null)}catch(e){H(e)}Z(!1)},S[26]=M,S[27]=d):d=S[27];let en=d;S[28]!==M?(c=async(e,t)=>{await M.update(e,t)},S[28]=M,S[29]=c):c=S[29];let ei=c;if(S[30]!==D||S[31]!==W){let e=D.map(eea),t=W.map(eer);u=e.concat(t).sort(eei),S[30]=D,S[31]=W,S[32]=u}else u=S[32];let er=u,{t:ea}=as(X3);if(S[33]!==F||S[34]!==W){let e;S[36]!==F?(e=e=>e.parentComment?._id===F,S[36]=F,S[37]=e):e=S[37],p=W.find(e),S[33]=F,S[34]=W,S[35]=p}else p=S[35];let eo=p,el=!!(eo&&eo?.replies?.length>0);return S[38]!==Y||S[39]!==U||S[40]!==F||S[41]!==el||S[42]!==en?(m=F&&(0,v.jsx)(Z4,{commentId:F,error:Y,isParent:el,loading:U,onClose:et,onConfirm:en}),S[38]=Y,S[39]=U,S[40]=F,S[41]=el,S[42]=en,S[43]=m):m=S[43],S[44]!==ea?(h=ea("panel.activity.title"),S[44]=ea,S[45]=h
1563):h=S[45],S[46]!==h?(f=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.EY,{size:2,weight:"semibold",children:h})}),S[46]=h,S[47]=f):f=S[47],S[48]!==z||S[49]!==E||S[50]!==$||S[51]!==T?(g=z?.id&&(0,v.jsx)(Q3,{currentUserId:z.id,value:T,onChange:E,path:$}),S[48]=z,S[49]=E,S[50]=$,S[51]=T,S[52]=g):g=S[52],S[53]!==f||S[54]!==g?(y=(0,v.jsxs)(I.so,{align:"center",children:[f,g]}),S[53]=f,S[54]=g,S[55]=y):y=S[55],S[56]!==q?(C=q&&(0,v.jsx)(ry,{showText:!0,title:"Loading activity"}),S[56]=q,S[57]=C):C=S[57],S[58]!==er||S[59]!==z||S[60]!==K||S[61]!==X||S[62]!==ei||S[63]!==Q||S[64]!==G||S[65]!==q||S[66]!==V||S[67]!==T.authorId||S[68]!==T.createdByUser?(x=!q&&(0,v.jsxs)(eet,{animate:"visible",initial:"hidden",space:4,variants:eee,children:[T.createdByUser&&(0,v.jsx)(I.BJ,{paddingBottom:1,children:(0,v.jsx)(Q7,{createdAt:T.createdByUser,authorId:T.authorId})}),z&&(0,v.jsxs)(I.BJ,{space:4,marginTop:1,children:[er.map(e=>"activity"===e._type?(0,v.jsx)(Qq,{activity:e.payload},e.timestamp):(0,v.jsx)(Q5,{currentUser:z,mentionOptions:V,onCreateRetry:X,onDelete:ee,onEdit:ei,onReactionSelect:Q,onReply:G,parentComment:e.payload.parentComment,replies:e.payload.replies},e.payload.parentComment._id)),(0,v.jsx)(QQ,{currentUser:z,mentionOptions:V,onSubmit:K})]})]}),S[58]=er,S[59]=z,S[60]=K,S[61]=X,S[62]=ei,S[63]=Q,S[64]=G,S[65]=q,S[66]=V,S[67]=T.authorId,S[68]=T.createdByUser,S[69]=x):x=S[69],S[70]!==x?(b=(0,v.jsx)(ia.N,{children:x}),S[70]=x,S[71]=b):b=S[71],S[72]!==y||S[73]!==C||S[74]!==b?(w=(0,v.jsxs)(I.BJ,{space:5,children:[y,C,b]}),S[72]=y,S[73]=C,S[74]=b,S[75]=w):w=S[75],S[76]!==m||S[77]!==w?(k=(0,v.jsxs)(v.Fragment,{children:[m,w]}),S[76]=m,S[77]=w,S[78]=k):k=S[78],k}function eei(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()}function eer(e){return{_type:"comment",payload:e,timestamp:e.parentComment._createdAt}}function eea(e){return{_type:"activity",payload:e,timestamp:e.timestamp}}function eeo(e){let t,n,i,r,a,o,l,s=(0,j.c)(21),{user:d,onSelect:c,pressed:u}=e,{t:p}=as(X3);s[0]!==c||s[1]!==d.id?(t=()=>c(d.id),s[0]=c,s[1]=d.id,s[2]=t):t=s[2];let m=t,h=!d.granted,f=d.id?d:void 0;return s[3]!==f?(n=(0,v.jsx)(QJ,{user:f,size:1}),s[3]=f,s[4]=n):n=s[4],s[5]!==d.displayName?(i=(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",title:d.displayName,children:d.displayName}),s[5]=d.displayName,s[6]=i):i=s[6],s[7]!==n||s[8]!==i?(r=(0,v.jsxs)(I.so,{align:"center",gap:2,flex:1,children:[n,i]}),s[7]=n,s[8]=i,s[9]=r):r=s[9],s[10]!==p||s[11]!==d.granted?(a=!d.granted&&(0,v.jsx)(I.Ex,{fontSize:1,mode:"outline",children:p("form.input.assignee.unauthorized.text")}),s[10]=p,s[11]=d.granted,s[12]=a):a=s[12],s[13]!==r||s[14]!==a?(o=(0,v.jsxs)(I.so,{align:"center",gap:3,children:[r,a]}),s[13]=r,s[14]=a,s[15]=o):o=s[15],s[16]!==m||s[17]!==u||s[18]!==h||s[19]!==o?(l=(0,v.jsx)(I.Dr,{onClick:m,padding:1,disabled:h,pressed:u,children:o}),s[16]=m,s[17]=u,s[18]=h,s[19]=o,s[20]=l):l=s[20],l}let eel=(0,eI.I4)(I.W1).withConfig({displayName:"StyledMenu",componentId:"sc-195clky-0"})`width:308px;border-radius:3px;`,ees=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],eed={id:"",displayName:"No assignee",granted:!0};function eec(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(29),{onSelect:m,value:h}=e,f=void 0===h?"":h,[g,y]=(0,_.useState)(""),{mentionOptions:C}=Qe(),x=(0,_.useRef)(null);p[0]===Symbol.for("react.memo_cache_sentinel")?(t=[eed],p[0]=t):t=p[0],p[1]!==C.data?(n=t.concat(C.data||[]),p[1]=C.data,p[2]=n):n=p[2];let b=n;p[3]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{y(e.currentTarget.value)},p[3]=i):i=p[3];let w=i;e:{let e,t;if(!g){let e;p[4]!==b?(e=b||[],p[4]=b,p[5]=e):e=p[5],r=e;break e}if(p[6]!==b||p[7]!==g){let t=(0,ec.A)(g).toLocaleLowerCase();e=b?.map(eeu)?.filter(e=>e?.searchName.includes(t))?.sort((e,n)=>{let i=e.searchName.startsWith(t),r=n.searchName.startsWith(t);return i&&!r?-1:!i&&r?1:0}),p[6]=b,p[7]=g,p[8]=e}else e=p[8];let n=e;p[9]!==n?(t=n||[],p[9]=n,p[10]=t):t=p[10],r=t}let k=r;p[11]!==m||p[12]!==f?(a=e=>(0,v.jsx)(eeo,{user:e,onSelect:m,pressed:e.id===f},e.id),p[11]=m,p[12]=f,p[13]=a):a=p[13];let S=a;p[14]===Symbol.for("react.memo_cache_sentinel")?(o=e=>
1563{e.target!==x.current&&(ees.includes(e.key)||x.current?.focus())},p[14]=o):o=p[14];let T=o,{t:E}=as(X3);if(C.loading){let e;return p[15]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.mc,{width:0,children:(0,v.jsx)(ry,{showText:!0})}),p[15]=e):e=p[15],e}return p[16]!==E?(l=E("form.input.assignee.search.placeholder"),p[16]=E,p[17]=l):l=p[17],p[18]!==g||p[19]!==l?(s=(0,v.jsx)(I.ks,{placeholder:l,autoFocus:!0,border:!1,onChange:w,value:g,fontSize:1,icon:eT.nys,ref:x,name:"assigneeSearch",autoComplete:"off"}),p[18]=g,p[19]=l,p[20]=s):s=p[20],p[21]===Symbol.for("react.memo_cache_sentinel")?(d={maxHeight:"320px",overflowY:"scroll",paddingTop:"8px"},p[21]=d):d=p[21],p[22]!==k||p[23]!==S||p[24]!==E?(c=(0,v.jsx)("div",{style:d,children:0===k.length?(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(I.EY,{align:"center",size:1,muted:!0,children:E("form.input.assignee.search.no-users.text")})}):(0,v.jsx)(I.wj,{items:k,renderItem:S})}),p[22]=k,p[23]=S,p[24]=E,p[25]=c):c=p[25],p[26]!==c||p[27]!==s?(u=(0,v.jsxs)("div",{onKeyDown:T,children:[s,c]}),p[26]=c,p[27]=s,p[28]=u):u=p[28],u}function eeu(e){return{...e,searchName:(0,ec.A)(e.displayName||"").toLocaleLowerCase()}}function eep(e){let t,n,i,r=(0,j.c)(7),{onSelect:a,menuButton:o,value:l}=e;return r[0]!==a||r[1]!==l?(t=(0,v.jsx)(eel,{children:(0,v.jsx)(eec,{onSelect:a,value:l})}),r[0]=a,r[1]=l,r[2]=t):t=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(n={placement:"bottom",fallbackPlacements:["bottom"],portal:!0,constrainSize:!0},r[3]=n):n=r[3],r[4]!==o||r[5]!==t?(i=(0,v.jsx)(tL.IU,{button:o,id:"assign-user-menu",menu:t,popover:n}),r[4]=o,r[5]=t,r[6]=i):i=r[6],i}let eem=(0,eI.I4)(I.Zp).withConfig({displayName:"FocusableCard",componentId:"sc-zmjcha-0"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 1564 &[data-as='button'] { 1565 border: 1px solid var(--card-border-color); 1566 &:focus-within { 1567 border: 1px solid var(--card-focus-ring-color); 1568 } 1569 --card-muted-fg-color: ${t.color.input.default.enabled.placeholder}; 1570 } 1571 `});function eeh(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(29),{value:u,onChange:p}=e,{mentionOptions:m}=Qe();c[0]!==m.data||c[1]!==u?(t=m.data?.find(e=>e.id===u),c[0]=m.data,c[1]=u,c[2]=t):t=c[2];let h=t;c[3]!==p?(n=e=>p(hq(e)),c[3]=p,c[4]=n):n=c[4];let f=n,{t:g}=as(X3);e:{let e;if(u){if(m.loading){let e;c[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.r5,{animated:!0,style:{width:"10ch"}}),c[5]=e):e=c[5],i=e;break e}if(h){i=h.displayName||h.email;break e}if(!h){let e;c[6]!==g?(e=g("form.input.assignee.user-not-found.text"),c[6]=g,c[7]=e):e=c[7],i=e;break e}}c[8]!==g?(e=g("form.input.assignee.search.placeholder"),c[8]=g,c[9]=e):e=c[9],i=e}let y=i;c[10]!==h?(r=(0,v.jsx)(QJ,{user:h,size:1,border:!1}),c[10]=h,c[11]=r):r=c[11];let C=!h;return c[12]!==y||c[13]!==C?(a=(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",muted:C,children:y}),c[12]=y,c[13]=C,c[14]=a):a=c[14],c[15]!==r||c[16]!==a?(o=(0,v.jsxs)(I.so,{align:"center",gap:1,flex:1,children:[r,a]}),c[15]=r,c[16]=a,c[17]=o):o=c[17],c[18]!==h||c[19]!==g||c[20]!==u?(l=u&&h&&!h.granted&&(0,v.jsx)(I.Ex,{fontSize:1,mode:"outline",children:g("form.input.assignee.unauthorized.text")}),c[18]=h,c[19]=g,c[20]=u,c[21]=l):l=c[21],c[22]!==o||c[23]!==l?(s=(0,v.jsx)(eem,{"data-as":"button",padding:1,radius:2,tabIndex:0,children:(0,v.jsxs)(I.so,{align:"center",gap:3,children:[o,l]})}),c[22]=o,c[23]=l,c[24]=s):s=c[24],c[25]!==f||c[26]!==s||c[27]!==u?(d=(0,v.jsx)(eep,{onSelect:f,value:u,menuButton:s}),c[25]=f,c[26]=s,c[27]=u,c[28]=d):d=c[28],d}let eef=(0,eI.I4)(I.$n).withConfig({displayName:"StyledButton",componentId:"sc-j38c0m-0"})`padding:3px 6px;`;function eeg(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(37),{value:h,onChange:f,path:g}=e;m[0]===Symbol.for("react.memo_cache_sentinel")?(t=["subscribers"],m[0]=t):t=m[0];let y=gI(t),{mentionOptions:C}=Qe();m[1]!==C.data||m[2]!==h?(n=C.data?.find(e=>e.id===h),m[1]=C.data,m[2]=h,m[3]=n):n=m[3];let x=n,{t:b}=as(X3);m[4]!==f||m[5]!==g||m[6]!==y?(i=e=>{f(hq(e,g)),y&&!y.includes(e)&&e&&f(hq([...y,e],["subscribers"]))},m[4]=f,m[5]=g,m[6]=y,m[7]=i):i=m[7];let w=i;e:{let e;if(h){if(C.loading){let e;m[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(T.r5,{animated:!0,style:{width:"10ch"}}),m[8]=e):e=m[8],r=e;break e}if(x){r=x.displayName||x.email;break e}if(!x){let e;m[9]!==b?(e=b("form.input.assignee.user-not-found.text"),m[9]=b,m[10]=e):e=m[10],r=e;break e}}m[11]!==b?(e=b("form.input.assignee.no-user-assigned.text"),m[11]=b,m[12]=e):e=m[12],r=e}let _=r;return m[13]!==b||m[14]!==h?(a=b(h?"form.input.assignee.user-assigned.tooltip":"form.input.assignee.no-user-assigned.tooltip"),m[13]=b,m[14]=h,m[15]=a):a=m[15],m[16]!==x?(o=(0,v.jsx)(QJ,{user:x,size:0}),m[16]=x,m[17]=o):o=m[17],m[18]!==_?(l=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",children:_})}),m[18]=_,m[19]=l):l=m[19],m[20]!==o||m[21]!==l?(s=(0,v.jsxs)(I.so,{align:"center",gap:2,flex:1,children:[o,l]}),m[20]=o,m[21]=l,m[22]=s):s=m[22],m[23]!==x||m[24]!==b||m[25]!==h?(d=h&&x&&!x.granted&&(0,v.jsx)(I.Ex,{fontSize:1,mode:"outline",children:b("form.input.assignee.unauthorized.text")}),m[23]=x,m[24]=b,m[25]=h,m[26]=d):d=m[26],m[27]!==s||m[28]!==d?(c=(0,v.jsxs)(I.so,{align:"center",gap:3,children:[s,d]}),m[27]=s,m[28]=d,m[29]=c):c=m[29],m[30]!==a||m[31]!==c?(u=(0,v.jsx)(eef,{mode:"ghost",padding:0,children:(0,v.jsx)(tL.m_,{content:a,children:c})}),m[30]=a,m[31]=c,m[32]=u):u=m[32],m[33]!==w||m[34]!==u||m[35]!==h?(p=(0,v.jsx)(eep,{onSelect:w,value:h,menuButton:u}),m[33]=w,m[34]=u,m[35]=h,m[36]=p):p=m[36],p}let eey={dateStyle:"long",timeZone:"UTC"},eeC={month:"short",day:"numeric",timeZone:"UTC"};function eex(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x=(0,j.c)(49),{value:b,onChange:w,path:k}=e,{t:S}=as(),{t:T}=as(X3),[E,$]=(0,_.useState)(!1),A=(0,_.useRef)(null),D=(0,_.useRef)(null),z=ud(eey),P=ud(eeC);e:{let e,n,i;if(!b){let e;x[0]===Symbol.for("react.memo_cache_sentinel")?(e={short:"----",full:"----"},x[0]=e):e=x[0],t=e;break e}x[1]!==z||x[2]!==b?(e=z.format(new Date(b)),x[1]=z,x[2]=b,x[3]=e):e=x[3];let r=e;x[4]!==P||x[5]!==b?(n=P.format(new Date(b)),x[4]=P,x[5]=b,x[6]=n):n=x[6];let a=n;
1571x[7]!==r||x[8]!==a?(i={short:a,full:r},x[7]=r,x[8]=a,x[9]=i):i=x[9],t=i}let R=t;x[10]===Symbol.for("react.memo_cache_sentinel")?(n=()=>$(!1),i=()=>[A.current],x[10]=n,x[11]=i):(n=x[10],i=x[11]),(0,I.PR)(n,i),x[12]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{"Escape"===e.key&&$(!1)},x[12]=r):r=x[12];let N=r;x[13]===Symbol.for("react.memo_cache_sentinel")?(a=()=>$(eeb),x[13]=a):a=x[13];let O=a;x[14]!==S?(o=kK(S),x[14]=S,x[15]=o):o=x[15];let V=o;x[16]!==w||x[17]!==k?(l=e=>{w(e?hq((0,tX.GP)(e,tX.D2),k):hW(k)),$(!1)},x[16]=w,x[17]=k,x[18]=l):l=x[18];let M=l;if(x[19]!==b){let e;s=(0,tX.qg)(b||"",tX.D2),x[23]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{D.current?.focus()},x[23]=e):e=x[23],d=e,c=s?.date?.getFullYear(),x[19]=b,x[20]=s,x[21]=d,x[22]=c}else s=x[20],d=x[21],c=x[22];let L=c===new Date().getFullYear();x[24]!==V||x[25]!==s.date||x[26]!==M?(u=(0,v.jsx)(kU,{calendarLabels:V,selectTime:!1,timeStep:1,onKeyUp:N,value:s.date,onChange:M,timeZoneScope:RD}),x[24]=V,x[25]=s.date,x[26]=M,x[27]=u):u=x[27],x[28]!==M||x[29]!==T||x[30]!==b?(p=b&&(0,v.jsx)(I.so,{justify:"flex-start",padding:3,paddingTop:0,children:(0,v.jsx)(tL.$n,{mode:"bleed",text:T("form.input.date.buttons.remove.text"),onClick:()=>M(null),tone:"critical"})}),x[28]=M,x[29]=T,x[30]=b,x[31]=p):p=x[31],x[32]!==d||x[33]!==u||x[34]!==p?(m=(0,v.jsx)(I.az,{overflow:"auto",children:(0,v.jsxs)(tq.Ay,{onDeactivation:d,children:[u,p]})}),x[32]=d,x[33]=u,x[34]=p,x[35]=m):m=x[35],x[36]===Symbol.for("react.memo_cache_sentinel")?(h=["bottom-start","bottom-end"],x[36]=h):h=x[36];let F=L?R.short:R.full;return x[37]!==T||x[38]!==b?(f=T(b?"form.input.date.buttons.tooltip":"form.input.date.buttons.empty.tooltip"),x[37]=T,x[38]=b,x[39]=f):f=x[39],x[40]!==f?(g={content:f},x[40]=f,x[41]=g):g=x[41],x[42]!==F||x[43]!==g?(y=(0,v.jsx)(tL.$n,{icon:eT.CTc,mode:"ghost",text:F,onClick:O,ref:D,tooltipProps:g}),x[42]=F,x[43]=g,x[44]=y):y=x[44],x[45]!==E||x[46]!==m||x[47]!==y?(C=(0,v.jsx)(tL.AM,{constrainSize:!0,"data-testid":"date-input-dialog",portal:!0,ref:A,content:m,open:E,placement:"bottom",fallbackPlacements:h,children:y}),x[45]=E,x[46]=m,x[47]=y,x[48]=C):C=x[48],C}function eeb(e){return!e}let eev=(0,eI.I4)(I.EY).withConfig({displayName:"NormalText",componentId:"sc-lvza0v-0"})`word-break:break-word;`;function eej(e){let t,n=(0,j.c)(2),{children:i}=e;return n[0]!==i?(t=(0,v.jsx)(I.az,{paddingTop:2,paddingBottom:3,children:(0,v.jsx)(eev,{size:1,children:i})}),n[0]=i,n[1]=t):t=n[1],t}let eew=e=>{let{children:t}=e;return(0,v.jsx)(eej,{children:t})},ee_=eI.I4.div.withConfig({displayName:"DescriptionInputRoot",componentId:"sc-11riqti-0"})(e=>{let t=(0,nN.JW)(e.theme),n="edit"===e.$mode?t.space[1]:t.space[3],i="edit"===e.$mode?120:200;return(0,eI.AH)` 1572 /* select CommentInputEditableWrap and change the padding */ 1573 [data-ui='CommentInputEditableWrap'] { 1574 overflow: hidden; 1575 padding: ${"edit"===e.$mode?`${n}px 0px`:`${n}px ${t.space[2]}px`}; 1576 min-height: ${Math.max(e.$minHeight+n,i)}px !important; 1577 } 1578 #comment-input-root { 1579 box-shadow: ${"edit"===e.$mode?"none":""}; 1580 } 1581 [data-ui='CommentInputActions'] { 1582 display: none !important; 1583 } 1584 `});function eek(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(23),{value:u,mode:p,inputProps:m}=e,{onChange:h}=m,f=o5(),{mentionOptions:g}=Qe();c[0]!==h?(t=e=>h(hq(e)),c[0]=h,c[1]=t):t=c[1];let y=t,[C,x]=(0,_.useState)(null),[b,w]=(0,_.useState)(200);c[2]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{let t=e.querySelector('[role="textbox"]');t&&w(t.scrollHeight)},c[2]=n):n=c[2];let k=n;c[3]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{e&&(0,_.startTransition)(()=>{x(e)})},c[3]=i):i=c[3];let S=i,{t:I}=as(X3);return(c[4]!==C?(r=()=>{C&&k(C)},c[4]=C,c[5]=r):r=c[5],c[6]!==C||c[7]!==u?(a=[u,k,C],c[6]=C,c[7]=u,c[8]=a):a=c[8],(0,_.useEffect)(r,a),f)?(c[9]!==u?(o=u??[],c[9]=u,c[10]=o):o=c[10],c[11]!==I?(l=I("form.input.description.placeholder"),c[11]=I,c[12]=l):l=c[12],c[13]!==f||c[14]!==y||c[15]!==g||c[16]!==o||c[17]!==l?(s=(0,v.jsx)(qU,{expandOnFocus:!1,currentUser:f,mentionOptions:g,onChange:y,value:o,withAvatar:!1,placeholder:l,onDiscardConfirm:eeS,renderBlock:eew}
1584),c[13]=f,c[14]=y,c[15]=g,c[16]=o,c[17]=l,c[18]=s):s=c[18],c[19]!==p||c[20]!==s||c[21]!==b?(d=(0,v.jsx)(ee_,{$mode:p,ref:S,$minHeight:b,children:s}),c[19]=p,c[20]=s,c[21]=b,c[22]=d):d=c[22],d):null}function eeS(){return null}let eeI=eI.I4.div.withConfig({displayName:"FieldWrapperRoot",componentId:"sc-1who9vc-0"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 1585 // Reset the padding of the field header content box 1586 [data-ui='fieldHeaderContentBox'] { 1587 padding: 0; 1588 label { 1589 font-weight: ${t.font.text.weights.regular}; 1590 } 1591 } 1592 `});function eeT(e){let t,n,i=(0,j.c)(4);return i[0]!==e?(t=e.renderDefault(e),i[0]=e,i[1]=t):t=i[1],i[2]!==t?(n=(0,v.jsx)(eeI,{children:t}),i[2]=t,i[3]=n):n=i[3],n}let eeE=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c=(0,j.c)(21),{t:u}=as(X3);if(c[0]!==e?({value:r,options:n,...i}=e,c[0]=e,c[1]=n,c[2]=i,c[3]=r):(n=c[1],i=c[2],r=c[3]),c[4]!==n||c[5]!==r){let e;c[7]!==r?(e=e=>e.value===r,c[7]=r,c[8]=e):e=c[8],a=n.find(e),c[4]=n,c[5]=r,c[6]=a}else a=c[6];let p=a;c[9]!==r?(o=QD.find(e=>e.value===r)?.icon,c[9]=r,c[10]=o):o=c[10];let m=o;c[11]!==u?(l=u("form.input.status.button.tooltip"),c[11]=u,c[12]=l):l=c[12],c[13]!==l?(s={content:l},c[13]=l,c[14]=s):s=c[14];let h=p?.title||r;return c[15]!==m||c[16]!==t||c[17]!==i||c[18]!==s||c[19]!==h?(d=(0,v.jsx)(tL.$n,{...i,ref:t,tooltipProps:s,icon:m,text:h,tone:"default",mode:"ghost"}),c[15]=m,c[16]=t,c[17]=i,c[18]=s,c[19]=h,c[20]=d):d=c[20],d});function ee$(e){let t,n,i,r,a,o=(0,j.c)(20),{value:l,onChange:s,options:d,path:c}=e,u=(0,tK.Jr)();o[0]!==s||o[1]!==c||o[2]!==u||o[3]!==l?(t=e=>{s(hq(e,c)),u.log(Qn,{from:l,to:e})},o[0]=s,o[1]=c,o[2]=u,o[3]=l,o[4]=t):t=o[4];let p=t;if(o[5]!==d||o[6]!==l?(n=(0,v.jsx)(eeE,{value:l,options:d}),o[5]=d,o[6]=l,o[7]=n):n=o[7],o[8]!==p||o[9]!==d||o[10]!==l){let e;o[12]!==p||o[13]!==l?(e=e=>{let t=l===e.value,n=QD.find(t=>t.value===e.value)?.icon;return(0,v.jsx)(tL.Dr,{icon:"string"==typeof e.value&&n||eT.GQ2,text:e.title||e.value,pressed:t,iconRight:t&&(0,v.jsx)(eT.Nrt,{}),onClick:()=>p(e.value)},e.title)},o[12]=p,o[13]=l,o[14]=e):e=o[14],i=d.map(e),o[8]=p,o[9]=d,o[10]=l,o[11]=i}else i=o[11];return o[15]!==i?(r=(0,v.jsx)(I.W1,{children:i}),o[15]=i,o[16]=r):r=o[16],o[17]!==n||o[18]!==r?(a=(0,v.jsx)(tL.IU,{button:n,id:"reference-menuButton",menu:r}),o[17]=n,o[18]=r,o[19]=a):a=o[19],a}function eeA(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)("div",{children:"Config errors"}),t[0]=e):e=t[0],e}function eeD(e){let t,n=(0,j.c)(2),{children:i}=e;return n[0]!==i?(t=(0,v.jsx)(el1,{LoadingComponent:ry,ConfigErrorsComponent:eeA,children:i}),n[0]=i,n[1]=t):t=n[1],t}let eez=(0,eI.I4)(I.Zp).withConfig({displayName:"EmptyReferenceRoot",componentId:"sc-uj54jx-0"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 1593 &:focus { 1594 border: 1px solid var(--card-focus-ring-color); 1595 } 1596 &:focus-visible { 1597 outline: none; 1598 border: 1px solid var(--card-focus-ring-color); 1599 } 1600 &:hover { 1601 border-color: ${t.color.input.default.hovered.border}; 1602 } 1603 `}),eeP=(0,eI.I4)(I.EY).withConfig({displayName:"Placeholder",componentId:"sc-uj54jx-1"})(e=>` 1604 color: ${(0,nN.JW)(e.theme).color.input.default.enabled.placeholder}; 1605 margin-left: 3px; 1606 `),eeR=(0,eI.I4)(I.Zp).withConfig({displayName:"TargetRoot",componentId:"sc-uj54jx-2"})`position:relative;[data-ui='show-on-hover']{opacity:0;position:absolute;right:6px;top:4px;display:flex;}&:focus-within,&:hover{padding-right:36px;[data-testid='compact-preview__status']{opacity:0;}[data-ui='show-on-hover']{transition:opacity 200ms;opacity:1;}}`,eeN=(0,eI.I4)(nU.RZ).withConfig({displayName:"StyledIntentLink",componentId:"sc-uj54jx-3"})(()=>(0,eI.AH)` 1607 text-decoration: none; 1608 width: 100%; 1609 overflow: hidden; 1610 cursor: pointer; 1611 &:focus { 1612 box-shadow: 0 0 0 1px var(--card-focus-ring-color); 1613 } 1614 &:focus-visible { 1615 outline: none; 1616 box-shadow: 0 0 0 1px var(--card-focus-ring-color); 1617 } 1618 `);function eeO(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(28),{value:c,handleRemove:u}=e,p=c.document._ref,m=c.documentType,h=R8();d[0]!==h||d[1]!==c.documentType?(t=h.get(c.documentType),d[0]=h,d[1]=c.documentType,d[2]=t):t=d[2];let f=t,g=cb(p),{t:y}=as(X3);d[3]!==p||d[4]!==m?(n=(0,_.forwardRef)(function(e,t){let n=(0,tG._S)(p);return(0,v.jsx)(eeN,{...e,intent:"edit",params:{id:(0,tG.IM)(p),type:m},ref:t,searchParams:n?[["perspective",n]]:void 0})}),d[3]=p,d[4]=m,d[5]=n):n=d[5];let C=n;if(!f){let e,t;return d[6]!==y?(e=y("form.input.target.error.schema-not-found"),d[6]=y,d[7]=e):e=d[7],d[8]!==e?(t=(0,v.jsx)(I.EY,{children:e}),d[8]=e,d[9]=t):t=d[9],t}return d[10]!==g||d[11]!==m||d[12]!==f||d[13]!==c.document._ref?(i=(0,v.jsx)(Mq,{documentType:m,documentId:c.document._ref,layout:"compact",presence:g,schemaType:f,showBadge:!1}),d[10]=g,d[11]=m,d[12]=f,d[13]=c.document._ref,d[14]=i):i=d[14],d[15]!==C||d[16]!==i?(r=(0,v.jsx)(I.Zp,{as:C,radius:2,"data-as":"button",children:i}),d[15]=C,d[16]=i,d[17]=r):r=d[17],d[18]!==y?(a=y("form.input.target.buttons.remove.text"),d[18]=y,d[19]=a):a=d[19],d[20]!==a?(o={content:a},d[20]=a,d[21]=o):o=d[21],d[22]!==u||d[23]!==o?(l=(0,v.jsx)("div",{"data-ui":"show-on-hover",children:(0,v.jsx)(tL.$n,{icon:eT.USm,mode:"bleed",onClick:u,tooltipProps:o})}),d[22]=u,d[23]=o,d[24]=l):l=d[24],d[25]!==r||d[26]!==l?(s=(0,v.jsx)(eeR,{border:!0,radius:2,children:(0,v.jsxs)(I.so,{gap:1,align:"center",justify:"space-between",children:[r,l]})}),d[25]=r,d[26]=l,d[27]=s):s=d[27],s}function eeV(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(32),[m,h]=(0,_.useState)(!1),{dataset:f,projectId:g}=cY(),{mode:y,inputProps:C,value:x}=e,{onChange:b}=C;p[0]!==f||p[1]!==b||p[2]!==g?(t=e=>{b(hq(QE({documentId:e._id,documentType:e._type,dataset:f,projectId:g})))},p[0]=f,p[1]=b,p[2]=g,p[3]=t):t=p[3];let w=t;p[4]!==b?(n=()=>{b(hW())},p[4]=b,p[5]=n):n=p[5];let k=n;p[6]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{h(!0)},p[6]=i):i=p[6];let S=i;p[7]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{h(!1)},p[7]=r):r=p[7];let T=r;p[8]===Symbol.for("react.memo_cache_sentinel")?(a=e=>{("Enter"===e.key||" "===e.key)&&h(!0)},p[8]=a):a=p[8];let E=a,{t:$}=as(X3),A="edit"===y,D=4*("edit"===y);return p[9]!==y||p[10]!==e.description||p[11]!==e.inputId||p[12]!==e.title||p[13]!==e.validation?(o="create"===y&&(0,v.jsx)(I.az,{"data-ui":"fieldHeaderContentBox",children:(0,v.jsx)(xF,{description:e.description,inputId:e.inputId,title:e.title,validation:e.validation,deprecated:void 0})}),p[9]=y,p[10]=e.description,p[11]=e.inputId,p[12]=e.title,p[13]=e.validation,p[14]=o):o=p[14],p[15]!==k||p[16]!==$||p[17]!==x?(l=x?(0,v.jsx)(eeO,{value:x,handleRemove:k}):(0,v.jsx)(eez,{border:!0,radius:2,paddingX:2,paddingY:3,onClick:S,onKeyDown:E,tabIndex:0,children:(0,v.jsxs)(I.so,{gap:1,justify:"flex-start",align:"center",children:[(0,v.jsx)(I.az,{paddingX:1,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.pyG,{})})}),(0,v.jsx)(eeP,{size:1,children:$("form.input.target.search.placeholder")})]})}),p[15]=k,p[16]=$,p[17]=x,p[18]=l):l=p[18],p[19]!==o||p[20]!==l?(s=(0,v.jsxs)(I.BJ,{space:2,children:[o,l]}),p[19]=o,p[20]=l,p[21]=s):s=p[21],p[22]!==w||p[23]!==m?(d=(0,v.jsx)(M5,{open:m,onClose:T,onItemSelect:w,disableIntentLink:!0}),p[22]=w,p[23]=m,p[24]=d):d=p[24],p[25]!==s||p[26]!==d?(c=(0,v.jsx)(eeI,{children:(0,v.jsx)(I.XS,{zOffset:100,children:(0,v.jsx)(eeD,{children:(0,v.jsxs)(Lr,{children:[s,d]})})})}),p[25]=s,p[26]=d,p[27]=c):c=p[27],p[28]!==c||p[29]!==A||p[30]!==D?(u=(0,v.jsx)(I.Zp,{borderBottom:A,paddingBottom:D,children:c}),p[28]=c,p[29]=A,p[30]=D,p[31]=u):u=p[31],u}let eeM=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-1a3jozv-0"})(e=>` 1619 display: grid; 1620 grid-template-columns: 1fr; 1621 padding-top: ${(0,nN.JW)(e.theme).space[3]}px; 1622 `),eeL=eI.I4.textarea.withConfig({displayName:"TitleInput",componentId:"sc-1a3jozv-1"})(e=>{let{color:t,font:n}=(0,nN.JW)(e.theme);return(0,eI.AH)` 1623 resize: none; 1624 overflow: hidden; 1625 appearance: none; 1626 background: none; 1627 border: 0; 1628 padding: 0; 1629 border-radius: 0; 1630 outline: none; 1631 width: 100%; 1632 box-sizing: border-box; 1633 font-family: ${n.text.family};
1634 font-weight: ${n.text.weights.semibold}; 1635 font-size: ${n.text.sizes[3].fontSize}px; 1636 line-height: ${n.text.sizes[3].lineHeight}px; 1637 margin: 0; 1638 position: relative; 1639 z-index: 1; 1640 display: block; 1641 transition: height 500ms; 1642 /* NOTE: This is a hack to disable Chromeâs autofill styles */ 1643 &:-webkit-autofill, 1644 &:-webkit-autofill:hover, 1645 &:-webkit-autofill:focus, 1646 &:-webkit-autofill:active { 1647 -webkit-text-fill-color: var(--input-fg-color) !important; 1648 transition: background-color 5000s; 1649 transition-delay: 86400s /* 24h */; 1650 } 1651 1652 color: ${t.input.default.enabled.fg}; 1653 1654 &::placeholder { 1655 color: ${t.input.default.enabled.placeholder}; 1656 } 1657 `});function eeF(e){let t,n,i,r,a=(0,j.c)(11),{value:o,onChange:l,placeholder:s,path:d}=e,c=(0,_.useRef)(null);a[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{c.current&&(c.current.style.height="auto",c.current.style.height=`${c.current.scrollHeight}px`)},a[0]=t):t=a[0],a[1]!==o?(n=[o],a[1]=o,a[2]=n):n=a[2],(0,_.useEffect)(t,n),a[3]!==l||a[4]!==d?(i=e=>{let t=e.currentTarget.value;return t||l(hW(d)),l(hq(t.replace(/\n/g,""),d))},a[3]=l,a[4]=d,a[5]=i):i=a[5];let u=i,p=!o;return a[6]!==u||a[7]!==s||a[8]!==p||a[9]!==o?(r=(0,v.jsx)(eeM,{children:(0,v.jsx)(eeL,{ref:c,autoFocus:p,value:o,placeholder:s,onChange:u,rows:1})}),a[6]=u,a[7]=s,a[8]=p,a[9]=o,a[10]=r):r=a[10],r}function eeB(e){let t,n=(0,j.c)(4),{value:i,inputProps:r}=e,{onChange:a,schemaType:o}=r;return n[0]!==a||n[1]!==o.placeholder||n[2]!==i?(t=(0,v.jsx)(eeF,{value:i,onChange:a,placeholder:o.placeholder}),n[0]=a,n[1]=o.placeholder,n[2]=i,n[3]=t):t=n[3],t}function eeY(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k=(0,j.c)(67),[S,E]=(0,_.useState)(!1),{onChange:$}=e,{setViewMode:A,setActiveTab:D}=Qc(),z=(0,T.dj)(),P=(0,tK.Jr)(),[R,N]=(0,_.useState)(!1);k[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>N(eeH),k[0]=t):t=k[0];let O=t,V=e.value;k[1]!==A?(n=()=>{A({type:"list"})},k[1]=A,k[2]=n):n=k[2];let M=n;k[3]!==M||k[4]!==V._id?(i={id:V._id,onRemoved:M},k[3]=M,k[4]=V._id,k[5]=i):i=k[5];let{handleRemove:L,removeStatus:F}=QR(i),{t:B}=as(X3),{data:Y}=Qx();if(k[6]!==Y||k[7]!==V._id){let e;k[9]!==V._id?(e=e=>e._id===V._id,k[9]=V._id,k[10]=e):e=k[10],r=Y.find(e),k[6]=Y,k[7]=V._id,k[8]=r}else r=k[8];let H=r;k[11]!==R||k[12]!==D||k[13]!==A||k[14]!==B||k[15]!==P||k[16]!==z?(a=()=>{P.log(Qt),z.push({closable:!0,status:"success",title:B("form.status.success")}),E(!1),R?A({type:"create"}):D("subscribed")},k[11]=R,k[12]=D,k[13]=A,k[14]=B,k[15]=P,k[16]=z,k[17]=a):a=k[17];let U=(0,_.useEffectEvent)(a);k[18]!==S||k[19]!==U||k[20]!==H?.createdByUser?(o=()=>{S&&H?.createdByUser&&U()},k[18]=S,k[19]=U,k[20]=H?.createdByUser,k[21]=o):o=k[21];let Z=H?.createdByUser;k[22]!==S||k[23]!==Z?(l=[S,Z],k[22]=S,k[23]=Z,k[24]=l):l=k[24],(0,_.useEffect)(o,l),k[25]!==B||k[26]!==z?(s=()=>{E(!1),z.push({closable:!0,status:"error",title:B("form.status.error.creation-failed")})},k[25]=B,k[26]=z,k[27]=s):s=k[27];let q=(0,_.useEffectEvent)(s);k[28]!==S||k[29]!==q?(d=()=>{let e=null;return S&&(e=setTimeout(()=>q(),1e4)),()=>{e&&clearTimeout(e)}},k[28]=S,k[29]=q,k[30]=d):d=k[30],k[31]!==S?(c=[S],k[31]=S,k[32]=c):c=k[32],(0,_.useEffect)(d,c),k[33]!==$||k[34]!==B||k[35]!==z||k[36]!==V?(u=async()=>{let e;(E(!0),V?.title)?$([hq((e=V.subscribers||[],Q$(V.description).forEach(t=>{e.includes(t)||e.push(t)}),V.assignedTo&&(e.includes(V.assignedTo)||e.push(V.assignedTo)),e),["subscribers"]),hq(new Date().toISOString(),["createdByUser"])]):z.push({closable:!0,status:"error",title:B("form.status.error.title-required")})},k[33]=$,k[34]=B,k[35]=z,k[36]=V,k[37]=u):u=k[37];let W=u;return k[38]!==e?(p=e.renderDefault(e),k[38]=e,k[39]=p):p=k[39],k[40]!==L||k[41]!==F||k[42]!==B||k[43]!==V._rev?(m=V._rev&&(0,v.jsx)(tL.$n,{onClick:L,mode:"bleed",icon:eT.ucK,tooltipProps:{content:B("buttons.discard.text")},disabled:"loading"===F,loading:"loading"===F}),k[40]=L,k[41]=F,k[42]=B,k[43]=V._rev,k[44]=m):m=k[44],k[45]!==R?(h=(0,v.jsx)(I.dO,{onChange:O,checked:R}),k[45]=R,k[46]=h):h=k[46],k[47]!==B?(f=B("form.input.create-more.text"),k[47]=B,k[48]=f):f=k[48],k[49]!==f?(g=(0,v.jsx)(I.EY,{size:1,muted:!0,children:f}),k[49]=f,k[50]=g):g=k[50],k[51]!==h||k[52]!==g?(y=(0,v.jsxs)(I.so,{align:"center",gap:2,justify:"flex-end",flex:1,children:[h,g]}),k[51]=h,k[52]=g,k[53]=y):y=k[53],k[54]!==B?(C=B("buttons.create.text"),k[54]=B,k[55]=C):C=k[55],k[56]!==S||k[57]!==W||k[58]!==C?(x=(0,v.jsx)(tL.$n,{text:C,onClick:W,disabled:S,loading:S}),k[56]=S,k[57]=W,k[58]=C,k[59]=x):x=k[59],k[60]!==m||k[61]!==y||k[62]!==x?(b=(0,v.jsx)(I.az,{paddingY:5,children:(0,v.jsxs)(I.so,{paddingTop:1,gap:4,children:[m,y,x]})}),k[60]=m,k[61]=y,k[62]=x,k[63]=b):b=k[63],k[64]!==p||k[65]!==b?(w=(0,v.jsxs)(v.Fragment,{children:[p,b]}),k[64]=p,k[65]=b,k[66]=w):w=k[66],w}function eeH(e){return!e}function eeU(e){let t=(0,j.c)(25),{handleCloseDialog:n,handleRemove:i,removeStatus:r,showDialog:a}=e,{t:o}=as(X3);if(a){let e,a,l,s,d,c,u,p,m;t[0]!==o?(e=o("dialog.remove-task.title"),t[0]=o,t[1]=e):e=t[1],t[2]!==o?(a=o("dialog.remove-task.buttons.cancel.text"),t[2]=o,t[3]=a):a=t[3],t[4]!==n||t[5]!==a?(l={text:a,onClick:n},t[4]=n,t[5]=a,t[6]=l):l=t[6],t[7]!==o?(s=o("dialog.remove-task.buttons.confirm.text"),t[7]=o,t[8]=s):s=t[8];let h="loading"===r;return t[9]!==i||t[10]!==s||t[11]!==h?(d={text:s,tone:"critical",onClick:i,loading:h},t[9]=i,t[10]=s,t[11]=h,t[12]=d):d=t[12],t[13]!==l||t[14]!==d?(c={cancelButton:l,confirmButton:d},t[13]=l,t[14]=d,t[15]=c):c=t[15],t[16]!==o?(u=o("dialog.remove-task.body"),t[16]=o,t[17]=u):u=t[17],t[18]!==u?(p=(0,v.jsx)(I.BJ,{space:3,children:(0,v.jsx)(I.EY,{as:"p",children:u})}),t[18]=u,t[19]=p):p=t[19],t[20]!==n||t[21]!==e||t[22]!==c||t[23]!==p?(m=(0,v.jsx)(tL.lG,{id:"remove-task",header:e,onClose:n,footer:c,children:p}),t[20]=n,t[21]=e,t[22]=c,t[23]=p,t[24]=m):m=t[24],m}return null}let eeZ=(0,eI.I4)(I.so).withConfig({displayName:"FirstRow",componentId:"sc-1obzhuh-0"})(e=>{let t=(0,nN.JW)(e.theme);return(0,eI.AH)` 1658 column-gap: ${t.space[2]}px; 1659 row-gap: ${t.space[3]}px; 1660 `});function eeq(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(42),{id:C,value:x}
1660=e,{setViewMode:b,handleCopyLinkToTask:w}=Qc(),{mode:_}=X4(),k=(0,tK.Jr)();y[0]!==b||y[1]!==k?(t=()=>{b({type:"list"}),k.log(Qr)},y[0]=b,y[1]=k,y[2]=t):t=y[2];let S=t;y[3]!==C||y[4]!==S?(n={id:C,onRemoved:S},y[3]=C,y[4]=S,y[5]=n):n=y[5];let T=QR(n);y[6]!==b||y[7]!==k||y[8]!==x?(i=()=>{b({type:"duplicate",duplicateTaskValues:x}),k.log(Qi)},y[6]=b,y[7]=k,y[8]=x,y[9]=i):i=y[9];let E=i,{t:$}=as(X3);y[10]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.jsx)(rl,{}),y[10]=r):r=y[10],y[11]===Symbol.for("react.memo_cache_sentinel")?(a={placement:"bottom",fallbackPlacements:["bottom-end","bottom-start"]},y[11]=a):a=y[11],y[12]!==$?(o=$("menuitem.duplicate.text"),y[12]=$,y[13]=o):o=y[13],y[14]!==_||y[15]!==$?(l="upsell"===_?{content:$("menuitem.duplicate.upsell-tooltip")}:void 0,y[14]=_,y[15]=$,y[16]=l):l=y[16];let A="upsell"===_;return y[17]!==E||y[18]!==o||y[19]!==l||y[20]!==A?(s=(0,v.jsx)(tL.Dr,{text:o,icon:eT.TdU,onClick:E,tooltipProps:l,disabled:A}),y[17]=E,y[18]=o,y[19]=l,y[20]=A,y[21]=s):s=y[21],y[22]!==$?(d=$("menuitem.copylink.text"),y[22]=$,y[23]=d):d=y[23],y[24]!==w||y[25]!==d?(c=(0,v.jsx)(tL.Dr,{text:d,icon:eT.qYV,onClick:w}),y[24]=w,y[25]=d,y[26]=c):c=y[26],y[27]===Symbol.for("react.memo_cache_sentinel")?(u=(0,v.jsx)(I.Nj,{}),y[27]=u):u=y[27],y[28]!==$?(p=$("menuitem.delete.text"),y[28]=$,y[29]=p):p=y[29],y[30]!==T.handleOpenDialog||y[31]!==p?(m=(0,v.jsx)(tL.Dr,{text:p,icon:eT.ucK,onClick:T.handleOpenDialog,tone:"critical"}),y[30]=T.handleOpenDialog,y[31]=p,y[32]=m):m=y[32],y[33]!==c||y[34]!==m||y[35]!==s?(h=(0,v.jsx)(I.az,{paddingTop:3,children:(0,v.jsx)(tL.IU,{id:"edit-task-menu",button:r,popover:a,menu:(0,v.jsxs)(I.W1,{children:[s,c,u,m]})})}),y[33]=c,y[34]=m,y[35]=s,y[36]=h):h=y[36],y[37]!==T?(f=(0,v.jsx)(eeU,{...T}),y[37]=T,y[38]=f):f=y[38],y[39]!==h||y[40]!==f?(g=(0,v.jsxs)(v.Fragment,{children:[h,f]}),y[39]=h,y[40]=f,y[41]=g):g=y[41],g}function eeW(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b=(0,j.c)(52);b[0]!==e.schemaType.fields?(t=e.schemaType.fields.find(eeJ),b[0]=e.schemaType.fields,b[1]=t):t=b[1];let w=t,k=e.value,S=o5(),{t:T}=as(X3),E=function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(17);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],d[0]=t):t=d[0];let[c,u]=(0,_.useState)(t);d[1]===Symbol.for("react.memo_cache_sentinel")?(n={apiVersion:QA},d[1]=n):n=d[1];let p=el0(n),m=e?._id??"";d[2]!==m?(i=(0,tG.IM)(m),d[2]=m,d[3]=i):i=d[3];let h=i;d[4]!==p||d[5]!==h?(r=async e=>{try{if(!h)return;let t=await cK(p,h,{tag:"sanity.studio.tasks.history",effectFormat:"mendoza",reverse:!0}),n=function(e,t,n){let i=function(e){let{_rev:t,...n}=e;return n}(e),r=[],a=i;for(let e of t){let{timestamp:t,effects:o}=e,l=o[e.documentIDs[0]];l&&l.revert&&(a=(0,iH.X)(i,l.revert),n.forEach(n=>{a?.[n]!==i?.[n]&&r.push({field:n,from:a?.[n],to:i?.[n],timestamp:t,author:e.author})}),i=a)}let o=r.sort((e,t)=>e.timestamp.localeCompare(t.timestamp)),l=o.findIndex(e=>"createdByUser"===e.field);return function(e){let t=[];for(let n of e){let e=t[t.length-1];if(!e||!Qz.includes(n.field)){t.push(n);continue}if(e.author===n.author&&e.field===n.field){let t=new Date(e.timestamp),i=new Date(n.timestamp);if(12e4>=Math.abs(t.getTime()-i.getTime())){e.to=n.to,e.timestamp=n.timestamp;continue}}t.push(n)}return t}(o.slice(l+1))}(e,[...t],["createdByUser","title","description","dueBy","assignedTo","status","target"]);u(n)}catch(e){console.error("Failed to fetch and parse activity log",e)}},d[4]=p,d[5]=h,d[6]=r):r=d[6];let f=r;d[7]!==f||d[8]!==e?(a=t=>f(e),d[7]=f,d[8]=e,d[9]=a):a=d[9];let g=(0,_.useEffectEvent)(a);return d[10]!==g||d[11]!==e._rev?(o=()=>{g(e._rev)},d[10]=g,d[11]=e._rev,d[12]=o):o=d[12],d[13]!==e._rev?(l=[e._rev],d[13]=e._rev,d[14]=l):l=d[14],(0,_.useEffect)(o,l),d[15]!==c?(s={changes:c},d[15]=c,d[16]=s):s=d[16],s}(k).changes;b[2]!==S||b[3]!==e||b[4]!==k.subscribers?(n=t=>{let n=k.subscribers||[];e.onChange(t),S&&(n.includes(S.id)||e.onChange(hq([...n,S.id],["subscribers"])))},b[2]=S,b[3]=e,b[4]=k.subscribers,b[5]=n):n=b[5];let $=n;if(!w)throw Error("Status field not found");if(!k?._id){let e;return b[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ry,{}),b[6]=e):e=b[6],e}let A=e.value?.title;b[7]===Symbol.for("react.memo_cache_sentinel")?(i=["title"],b[7]=i):i=b[7],b[8]!==T?(r=T("form.input.title.placeholder"),b[8]=T,b[9]=r):r=b[9],b[10]!==$||b[11]!==A||b[12]!==r?(a=(0,v.jsx)(I.BJ,{flex:1,children:(0,v.jsx)(eeF,{onChange:$,value:A,path:i,placeholder:r})}),b[10]=$,b[11]=A,b[12]=r,b[13]=a):a=b[13];let D=e.value?._id;b[14]!==D||b[15]!==k?(o=(0,v.jsx)(eeq,{id:D,value:k}),b[14]=D,b[15]=k,b[16]=o):o=b[16],b[17]!==a||b[18]!==o?(l=(0,v.jsxs)(I.so,{align:"flex-start",ga
1660p:3,children:[a,o]}),b[17]=a,b[18]=o,b[19]=l):l=b[19];let z=e.value?.status;b[20]===Symbol.for("react.memo_cache_sentinel")?(s=["status"],b[20]=s):s=b[20],b[21]!==$||b[22]!==w.type.options.list||b[23]!==z?(d=(0,v.jsx)(ee$,{value:z,path:s,onChange:$,options:w.type.options.list}),b[21]=$,b[22]=w.type.options.list,b[23]=z,b[24]=d):d=b[24];let P=e.value?.assignedTo;b[25]===Symbol.for("react.memo_cache_sentinel")?(c=["assignedTo"],b[25]=c):c=b[25],b[26]!==$||b[27]!==P?(u=(0,v.jsx)(eeg,{value:P,onChange:$,path:c}),b[26]=$,b[27]=P,b[28]=u):u=b[28];let R=e.value?.dueBy;return b[29]===Symbol.for("react.memo_cache_sentinel")?(p=["dueBy"],b[29]=p):p=b[29],b[30]!==$||b[31]!==R?(m=(0,v.jsx)(eex,{value:R,onChange:$,path:p}),b[30]=$,b[31]=R,b[32]=m):m=b[32],b[33]!==d||b[34]!==u||b[35]!==m?(h=(0,v.jsx)(I.Zp,{borderTop:!0,marginTop:3,children:(0,v.jsx)(eeZ,{paddingBottom:3,paddingTop:4,align:"flex-start",justify:"flex-start",wrap:"wrap",children:(0,v.jsxs)(tL.vE,{children:[d,u,m]})})}),b[33]=d,b[34]=u,b[35]=m,b[36]=h):h=b[36],b[37]!==e?(f=e.renderDefault(e),b[37]=e,b[38]=f):f=b[38],b[39]===Symbol.for("react.memo_cache_sentinel")?(g=["subscribers"],b[39]=g):g=b[39],b[40]!==E||b[41]!==e.onChange||b[42]!==k?(y=(0,v.jsx)(I.Zp,{borderTop:!0,paddingTop:4,marginTop:4,paddingBottom:6,children:(0,v.jsx)(een,{value:k,onChange:e.onChange,path:g,activityData:E})}),b[40]=E,b[41]=e.onChange,b[42]=k,b[43]=y):y=b[43],b[44]!==y||b[45]!==k._id?(C=(0,v.jsx)(eeD,{children:(0,v.jsx)(JH,{documentId:k._id,documentType:"tasks.task",sortOrder:"asc",type:"task",children:y})}),b[44]=y,b[45]=k._id,b[46]=C):C=b[46],b[47]!==h||b[48]!==f||b[49]!==C||b[50]!==l?(x=(0,v.jsxs)(v.Fragment,{children:[l,h,f,C]}),b[47]=h,b[48]=f,b[49]=C,b[50]=l,b[51]=x):x=b[51],x}function eeJ(e){return"status"===e.name}function eeK(e){let t,n,i,r,a=(0,j.c)(11),o=e.value,l=o5();a[0]!==o.subscribers?(t=o.subscribers||[],a[0]=o.subscribers,a[1]=t):t=a[1];let s=t;a[2]!==l||a[3]!==s||a[4]!==o.description?(n=e=>{if(!l||e.some(ee1)||e.some(eeQ))return e;let t=[...s],n=e.find(eeX);n&&"set"===n.type&&"string"==typeof n.value&&!t.includes(n.value)&&t.push(n.value),t.includes(l.id)||t.push(l.id);let i=e.find(eeG);if(i){let e=Q$(o.description);Q$("set"===i.type?i.value:void 0).filter(t=>!e.includes(t)).forEach(e=>{t.includes(e)||t.push(e)})}return t.length!==s.length&&e.push(hq(t,["subscribers"])),e},a[2]=l,a[3]=s,a[4]=o.description,a[5]=n):n=a[5];let d=n;return a[6]!==e?(i=(0,v.jsx)(eeW,{...e}),a[6]=e,a[7]=i):i=a[7],a[8]!==i||a[9]!==d?(r=(0,v.jsx)(Yp,{transform:d,children:i}),a[8]=i,a[9]=d,a[10]=r):r=a[10],r}function eeG(e){return"description"===e.path[0]&&"set"===e.type}function eeX(e){return"assignedTo"===e.path[0]}function eeQ(e){return"context"===e.path[0]&&"notification"===e.path[1]}function ee1(e){return"subscribers"===e.path[0]}function ee2(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(37),{inputProps:c}=e,{onChange:u}=c,p=(0,nU.ks)(ee5);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],d[0]=t):t=d[0];
1660let{target:m,_id:h,context:f,_rev:g}=gI(t),{title:y,basePath:C,name:x}=cY(),b=el0(ob);d[1]!==b?(n=(0,t1.OX)(b),d[1]=b,d[2]=n):n=d[2];let v=n,w=m?.document?._ref??"",S=m?.documentType??"",{perspectiveStack:I}=a3();d[3]!==w||d[4]!==S||d[5]!==I?(i={documentId:w,documentType:S,perspectiveStack:I},d[3]=w,d[4]=S,d[5]=I,d[6]=i):i=d[6];let{isLoading:T,value:E}=NT(i),$=E?.title||null;d[7]!==v||d[8]!==E?(r=(0,tQ.LG)(E?.media)?v.image(E.media).width(96).height(96).url():null,d[7]=v,d[8]=E,d[9]=r):r=d[9];let A=r,D=f?.notification?.url;d[10]!==h||d[11]!==p||d[12]!==C||d[13]!==D?(a=D&&dT?D:function(e,t,n=""){let i=window.location.origin;t&&(i+=t),n&&(i+=`/${n}`);let r=new URL(`${i}/`);return r.searchParams.set("sidebar","tasks"),r.searchParams.set("selectedTask",e),r.searchParams.set("viewMode","edit"),r.toString()}(h,C,p),d[10]=h,d[11]=p,d[12]=C,d[13]=D,d[14]=a):a=d[14];let z=a;d[15]!==A||d[16]!==z||d[17]!==$||d[18]!==x||d[19]!==y?(o={url:z,workspaceTitle:y,targetContentImageUrl:A,targetContentTitle:$,workspaceName:x},d[15]=A,d[16]=z,d[17]=$,d[18]=x,d[19]=y,d[20]=o):o=d[20];let P=o;return d[21]!==g||d[22]!==f?.notification||d[23]!==w||d[24]!==S||d[25]!==P||d[26]!==u||d[27]!==T?(l=()=>{w&&S&&T||g&&(k(f?.notification,P)||u(hq(P,["notification"])))},d[21]=g,d[22]=f?.notification,d[23]=w,d[24]=S,d[25]=P,d[26]=u,d[27]=T,d[28]=l):l=d[28],d[29]!==g||d[30]!==f||d[31]!==w||d[32]!==S||d[33]!==P||d[34]!==u||d[35]!==T?(s=[g,f,w,S,P,T,u],d[29]=g,d[30]=f,d[31]=w,d[32]=S,d[33]=P,d[34]=u,d[35]=T,d[36]=s):s=d[36],(0,_.useEffect)(l,s),null}function ee5(e){return"string"==typeof e.tool?e.tool:void 0}function ee0(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(eeD,{children:(0,v.jsx)(ee2,{...e})}),n[0]=e,n[1]=t):t=n[1],t}let ee7=e=>(0,eD.MI)({type:"object",name:"target",title:"Target",components:{field:t=>(0,v.jsx)(eeV,{...t,mode:e})},fields:[{name:"document",type:"crossDatasetReference",dataset:"playground",weak:!0,studioUrl:({id:e,type:t})=>`intent/edit/id=${e};type=${t}/`,to:[{type:"any_document",preview:{select:{title:"title"}}}]},{name:"documentType",type:"string",title:"Document type"}]}),ee3=e=>(0,eD.MI)({type:"array",name:"description",title:"Description",components:{field:t=>(0,v.jsx)(eek,{...t,mode:e})},of:[{type:"block",name:"block",of:[{name:"mention",type:"object",fields:[{name:"userId",type:"string"}]}],marks:{annotations:[]},styles:[{title:"Normal",value:"normal"}],lists:[]}]});function ee8(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(23),{children:u,mode:p,addonDataset:m}=e;c[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:QA},c[0]=t):t=c[0];let h=el0(t);c[1]!==h?(n=h.config(),c[1]=h,c[2]=n):n=c[2];let f=n.apiHost,g=_g(),y=`addon-dataset-${m}`,C=g.projectId;c[3]!==p?(i=(0,eD.U8)({type:"document",name:"tasks.task",liveEdit:!0,components:{input:"edit"===p?eeK:eeY},fields:[{type:"string",title:"Title",name:"title",placeholder:"Task title",components:{field:eeB},hidden:"edit"===p},..."edit"===p?[ee7(p),ee3(p)]:[ee3(p),ee7(p)],{type:"string",name:"assignedTo",title:"Assign to",placeholder:"Select assignee",components:{field:eeT,input:eeh},hidden:"edit"===p},{type:"date",name:"dueBy",title:"Deadline",placeholder:"yyyy-mm-dd",components:{field:eeT},hidden:"edit"===p},{type:"string",name:"authorId",hidden:!0},{type:"string",name:"createdByUser",hidden:!0},{type:"array",of:[{type:"string"}],name:"subscribers",hidden:!0},{type:"string",name:"status",title:"Status",options:{list:QD.map(e=>({value:e.value,title:e.title}))},hidden:!0},{type:"object",name:"context",components:{field:ee0},fields:[{type:"object",name:"notification",fields:[{type:"string",name:"url"},{type:"string",name:"workspaceTitle"},{type:"string",name:"targetContentImageUrl"},{type:"string",name:"targetContentTitle"}]}]}]}),c[3]=p,c[4]=i):i=c[4],c[5]!==i?(r={types:[i]},c[5]=i,c[6]=r):r=c[6],c[7]!==m||c[8]!==f||c[9]!==g.projectId||c[10]!==y||c[11]!==r?(a={basePath:"",dataset:m,name:y,projectId:C,apiHost:f,schema:r},c[7]=m,c[8]=f,c[9]=g.projectId,c[10]=y,c[11]=r,c[12]=a):a=c[12];let x=a;c[13]!==x?(o=et5(x,{basePath:""}),c[13]=x,c[14]=o):o=c[14];let{workspaces:b}=o,w=elJ(b[0]);return w?(c[15]!==u?(l=(0,v.jsx)(ci,{children:u}),c[15]=u,c[16]=l):l=c[16],c[17]!==w.unstable_sources[0]||c[18]!==l?(s=(0,v.jsx)(_f,{source:w.unstable_sources[0],children:l}
1660),c[17]=w.unstable_sources[0],c[18]=l,c[19]=s):s=c[19],c[20]!==w||c[21]!==s?(d=(0,v.jsx)(cB,{workspace:w,children:s}),c[20]=w,c[21]=s,c[22]=d):d=c[22],d):null}function ee4(e){let t,n,i,r,a=(0,j.c)(11),{client:o,ready:l,createAddonDataset:s}=J2();a[0]!==o?(t=o?.config().dataset,a[0]=o,a[1]=t):t=a[1];let d=t;if(a[2]!==d||a[3]!==s||a[4]!==l?(n=()=>{!d&&l&&s()},i=[d,l,s],a[2]=d,a[3]=s,a[4]=l,a[5]=n,a[6]=i):(n=a[5],i=a[6]),(0,_.useEffect)(n,i),!d){let e;return a[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ry,{}),a[7]=e):e=a[7],e}return a[8]!==d||a[9]!==e?(r=(0,v.jsx)(ee8,{...e,addonDataset:d}),a[8]=d,a[9]=e,a[10]=r):r=a[10],r}let ee6={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.2,delay:.2}}},ee9=(0,eI.I4)(ir.P.div).withConfig({displayName:"FormBuilderRoot",componentId:"sc-9e51nn-0"})(e=>{let t=(0,nN.JW)(e.theme);return` 1661 // Update spacing for the form builder 1662 & > [data-ui='Stack'] { 1663 grid-gap: ${(0,I.D0)(t.space[4])}; 1664 } 1665`}),ete=e=>{let t,n,i,r,a,o=(0,j.c)(25),{documentId:l,initialValue:s}=e,[d]=(0,_.useState)(etn);o[0]!==s?(t=s?{loading:!1,value:s,error:null}:void 0,o[0]=s,o[1]=t):t=o[1],o[2]!==l||o[3]!==t?(n={documentId:l,documentType:"tasks.task",initialValue:t},o[2]=l,o[3]=t,o[4]=n):n=o[4];let{formState:c,onChange:u,onPathOpen:p,onFocus:m,onBlur:h,onSetActiveFieldGroup:f,onSetCollapsedFieldSet:g,onSetCollapsedPath:y,collapsedFieldSets:C,ready:x,collapsedPaths:b,schemaType:w,value:k}=Ya(n),S=null===c||!x,{setSelectedDocument:T}=Qe(),E=S?void 0:k?.target,$=E?.document?._ref,A=E?.documentType;return o[5]!==T||o[6]!==$||o[7]!==A?(i=()=>{T($&&A?{_id:$,_type:A}:null)},r=[$,A,T],o[5]=T,o[6]=$,o[7]=A,o[8]=i,o[9]=r):(i=o[8],r=o[9]),(0,_.useEffect)(i,r),o[10]!==C||o[11]!==b||o[12]!==c||o[13]!==S||o[14]!==h||o[15]!==u||o[16]!==m||o[17]!==p||o[18]!==f||o[19]!==g||o[20]!==y||o[21]!==d||o[22]!==w||o[23]!==k?(a=(0,v.jsx)(I.az,{children:S?(0,v.jsx)(ry,{showText:!0}):(0,v.jsx)(ee9,{id:"wrapper",initial:"hidden",animate:"visible",variants:ee6,children:(0,v.jsx)(z9,{__internal_patchChannel:d,id:"root",onChange:u,onPathFocus:m,onPathOpen:p,onPathBlur:h,onFieldGroupSelect:f,onSetFieldSetCollapsed:g,onSetPathCollapsed:y,collapsedPaths:b,collapsedFieldSets:C,focusPath:c.focusPath,changed:c.changed,focused:c.focused,groups:c.groups,validation:c.validation,members:c.members,presence:c.presence,schemaType:w,value:k,hasUpstreamVersion:!1})})}),o[10]=C,o[11]=b,o[12]=c,o[13]=S,o[14]=h,o[15]=u,o[16]=m,o[17]=p,o[18]=f,o[19]=g,o[20]=y,o[21]=d,o[22]=w,o[23]=k,o[24]=a):a=o[24],a};function ett(){let e,t,n,i=(0,j.c)(23),r=o5(),{activeDocument:a}=Qx(),{dataset:o,projectId:l}=cY(),{state:s}=Qc(),{selectedTask:d,viewMode:c,duplicateTaskValues:u}=s;e:{if(!r||!d){e=void 0;break e}if("duplicate"===c){let t,n=`${u?.title} (copy)`;i[0]!==r.id||i[1]!==u||i[2]!==d||i[3]!==n?(t={...u,title:n,createdByUser:void 0,_id:d,_type:"tasks.task",authorId:r.id,status:"open"},i[0]=r.id,i[1]=u,i[2]=d,i[3]=n,i[4]=t):t=i[4],e=t;break e}if("create"===c){let t,n,s;i[5]!==r.id?(t=[r.id],i[5]=r.id,i[6]=t):t=i[6],i[7]!==a||i[8]!==o||i[9]!==l?(n=a?QE({documentId:a.documentId,documentType:a.documentType,dataset:o,projectId:l}):void 0,i[7]=a,i[8]=o,i[9]=l,i[10]=n):n=i[10],i[11]!==r.id||i[12]!==d||i[13]!==t||i[14]!==n?(s={_id:d,_type:"tasks.task",authorId:r.id,status:"open",subscribers:t,target:n},i[11]=r.id,i[12]=d,i[13]=t,i[14]=n,i[15]=s):s=i[15],e=s;break e}e=void 0}let p=e;if(!r){let e;return i[16]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ry,{showText:!0,title:"Loading current user"}),i[16]=e):e=i[16],e}if(!d)return null;let m="edit"===c?"edit":"create";return i[17]!==p||i[18]!==d?(t=(0,v.jsx)(ete,{documentId:d,initialValue:p}),i[17]=p,i[18]=d,i[19]=t):t=i[19],i[20]!==m||i[21]!==t?(n=(0,v.jsx)(X9,{children:(0,v.jsx)(ee4,{mode:m,children:t})}),i[20]=m,i[21]=t,i[22]=n):n=i[22],n}function etn(){return gA()}let eti={open:{assigned:{heading:"empty-state.status.list.open.assigned.heading",text:"empty-state.status.list.open.assigned.text"},document:{heading:"empty-state.status.list.open.document.heading",text:""},subscribed:{heading:"empty-state.status.list.open.subscribed.heading",text:"empty-state.status.list.open.subscribed.text"}},closed:{assigned:{heading:"empty-state.status.list.closed.assigned.heading",text:"empty-state.status.list.closed.assigned.text"},document:{heading:"empty-state.status.list.closed.document.heading",text:""},subscribed:{heading:"empty-state.status.list.closed.subscribed.heading",text:"empty-state.status.list.closed.subscribed.text"}}};function etr(e){let t,n,i,r,a,o=(0,j.c)(13),{status:l}=e,{state:s}=Qc(),{activeTabId:d}=s,{t:c}=as(X3),{heading:u,text:p}
1665=eti[l][d];return o[0]!==u||o[1]!==c?(t=c(u),o[0]=u,o[1]=c,o[2]=t):t=o[2],o[3]!==t?(n=(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:t}),o[3]=t,o[4]=n):n=o[4],o[5]!==c||o[6]!==p?(i=c(p),o[5]=c,o[6]=p,o[7]=i):i=o[7],o[8]!==i?(r=(0,v.jsx)(I.EY,{size:1,children:i}),o[8]=i,o[9]=r):r=o[9],o[10]!==n||o[11]!==r?(a=(0,v.jsxs)(I.BJ,{space:3,children:[n,r]}),o[10]=n,o[11]=r,o[12]=a):a=o[12],a}let eta={assigned:{heading:"empty-state.list.assigned.heading",text:"empty-state.list.assigned.text"},subscribed:{heading:"empty-state.list.subscribed.heading",text:"empty-state.list.subscribed.text"},document:{heading:"empty-state.list.document.heading",text:"empty-state.list.document.text"},noActiveDocument:{heading:"empty-state.list.no-active-document.heading",text:"empty-state.list.no-active-document.text"}},eto=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-1li3f83-0"})`max-width:268px;margin:0 auto;height:100%;margin-top:40%;`,etl=(0,eI.I4)(I.EY).withConfig({displayName:"AnimatedText",componentId:"sc-1li3f83-1"})`@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}animation:fadeIn 0.2s ease-in-out;`;function ets(){let e,t,n,i,r,a,o,l=(0,j.c)(22),{activeDocument:s}=Qx(),{mode:d}=X4(),{state:c,setViewMode:u}=Qc(),{activeTabId:p}=c,m=s||"document"!==p?p:"noActiveDocument",{heading:h,text:f}=eta[m],{t:g}=as(X3);l[0]!==u?(e=()=>{u({type:"create"})},l[0]=u,l[1]=e):e=l[1];let y=e;return l[2]!==h||l[3]!==g?(t=g(h),l[2]=h,l[3]=g,l[4]=t):t=l[4],l[5]!==m||l[6]!==t?(n=(0,v.jsx)(etl,{size:1,weight:"semibold",children:t},m),l[5]=m,l[6]=t,l[7]=n):n=l[7],l[8]!==g||l[9]!==f?(i=g(f),l[8]=g,l[9]=f,l[10]=i):i=l[10],l[11]!==m||l[12]!==i?(r=(0,v.jsx)(I.az,{paddingBottom:6,paddingTop:1,children:(0,v.jsx)(etl,{size:1,align:"center",children:i},m)}),l[11]=m,l[12]=i,l[13]=r):r=l[13],l[14]!==y||l[15]!==d||l[16]!==g?(a="upsell"!==d&&(0,v.jsx)(tL.$n,{icon:eT.REV,text:g("empty-state.list.create-new"),onClick:y}),l[14]=y,l[15]=d,l[16]=g,l[17]=a):a=l[17],l[18]!==n||l[19]!==r||l[20]!==a?(o=(0,v.jsx)(eto,{children:(0,v.jsxs)(I.so,{direction:"column",gap:3,align:"center",flex:1,justify:"center",children:[n,r,a]})}),l[18]=n,l[19]=r,l[20]=a,l[21]=o):o=l[21],o}let etd=(0,eI.I4)(nU.RZ).withConfig({displayName:"StyledIntentLink",componentId:"sc-3e5coy-0"})(e=>` 1666 text-decoration: underline; 1667 text-decoration-color: ${(0,nN.JW)(e.theme).color.input.default.enabled.border}; 1668 text-underline-offset: 2px; 1669`);function etc(e){let t,n,i,r,a=(0,j.c)(12),{documentId:o,documentType:l}=e,s=R8().get(l),{perspectiveStack:d}=a3();a[0]!==o||a[1]!==l||a[2]!==d?(t={documentId:o,documentType:l,perspectiveStack:d},a[0]=o,a[1]=l,a[2]=d,a[3]=t):t=a[3];let{isLoading:c,value:u}=NT(t);a[4]!==o||a[5]!==l?(n=(0,_.forwardRef)(function(e,t){return(0,v.jsx)(etd,{...e,intent:"edit",params:{id:o,type:l},ref:t})}),a[4]=o,a[5]=l,a[6]=n):n=a[6];let p=n;return s?(a[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.pyG,{})}),a[7]=i):i=a[7],a[8]!==p||a[9]!==c||a[10]!==u?.title?(r=(0,v.jsxs)(I.so,{align:"center",gap:2,children:[i,c?(0,v.jsx)(T.r5,{size:1,muted:!0}):(0,v.jsx)(I.EY,{size:1,as:p,weight:"medium",style:{maxWidth:"20ch"},textOverflow:"ellipsis",children:u?.title||"Untitled"})]}),a[8]=p,a[9]=c,a[10]=u?.title,a[11]=r):r=a[11],r):null}function etu(e){let t,n,i=(0,j.c)(7),r=QP(),{documentId:a,status:o}=e,[l,s]=(0,_.useState)("closed"===o),[d,c]=(0,_.useState)(!1);i[0]!==a||i[1]!==r?(t=async e=>{let t=e.target.checked;s(t),c(!0);try{t?await r.edit(a,{status:"closed"}):t||await r.edit(a,{status:"open"})}catch(e){console.error("An error occurred while updating the task status",e)}c(!1)},i[0]=a,i[1]=r,i[2]=t):t=i[2];let u=t;return i[3]!==l||i[4]!==u||i[5]!==d?(n=(0,v.jsx)(I.so,{children:d?(0,v.jsx)("div",{style:{height:"17px",width:"17px"},children:(0,v.jsx)(I.y$,{style:{marginLeft:"3.5px",marginRight:"3.5px",marginTop:"3.5px"}})}):(0,v.jsx)(I.Sc,{onChange:u,checked:l,disabled:d})}),i[3]=l,i[4]=u,i[5]=d,i[6]=n):n=i[6],n}let etp=(0,eI.I4)(I.$n).withConfig({displayName:"TitleButton",componentId:"sc-l0skoq-0"})`width:100%;max-width:100%;
1669`,etm=(0,eI.I4)(I.so).withConfig({displayName:"TaskDetailsRoot",componentId:"sc-l0skoq-1"})`margin-left:29px;`,eth={dateStyle:"medium",timeZone:"UTC"},etf={month:"short",day:"numeric",timeZone:"UTC"},etg={weekday:"long",timeZone:"UTC"};function ety(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(24),{dueBy:u}=e,p=ud(eth),m=ud(etf),h=ud(etg);if(c[0]!==h||c[1]!==u||c[2]!==p||c[3]!==m){let e=new Date(u);t=p.format(e),n=m.format(e),i=h.format(e),r=(0,nD.c)(e),a=(0,nz.o)(e),c[0]=h,c[1]=u,c[2]=p,c[3]=m,c[4]=t,c[5]=n,c[6]=i,c[7]=r,c[8]=a}else t=c[4],n=c[5],i=c[6],r=c[7],a=c[8];c[9]!==t||c[10]!==n||c[11]!==i||c[12]!==r||c[13]!==a?(o={fullDate:t,monthAndDay:n,day:i,isDueByToday:r,isDueThisWeek:a},c[9]=t,c[10]=n,c[11]=i,c[12]=r,c[13]=a,c[14]=o):o=c[14];let{fullDate:f,monthAndDay:g,day:y,isDueByToday:C,isDueThisWeek:x}=o,b=C?"critical":"transparent",w=C?"Today":x?y:g;return c[15]!==u||c[16]!==w?(l=(0,v.jsx)(I.so,{align:"center",gap:2,children:(0,v.jsx)(I.EY,{as:"time",size:1,dateTime:u,muted:!0,children:w})}),c[15]=u,c[16]=w,c[17]=l):l=c[17],c[18]!==b||c[19]!==l?(s=(0,v.jsx)(I.Zp,{tone:b,padding:1,radius:2,children:l}),c[18]=b,c[19]=l,c[20]=s):s=c[20],c[21]!==f||c[22]!==s?(d=(0,v.jsx)(tL.m_,{content:f,children:s}),c[21]=f,c[22]=s,c[23]=d):d=c[23],d}function etC(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(24),{assignedTo:u,title:p,dueBy:m,target:h,onSelect:f,documentId:g,status:y}=e;c[0]!==h?(t=function(e){if(e?.document?._ref)return{_ref:e?.document._ref,_type:e?.documentType}}(h),c[0]=h,c[1]=t):t=c[1];let C=t;c[2]!==g||c[3]!==y?(n=(0,v.jsx)(I.az,{children:(0,v.jsx)(etu,{documentId:g,status:y})}),c[2]=g,c[3]=y,c[4]=n):n=c[4];let x=p||"Untitled";return c[5]!==x?(i=(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",weight:"semibold",children:x}),c[5]=x,c[6]=i):i=c[6],c[7]!==f||c[8]!==i?(r=(0,v.jsx)(I.so,{flex:1,children:(0,v.jsx)(etp,{onClick:f,mode:"bleed",padding:2,children:i})}),c[7]=f,c[8]=i,c[9]=r):r=c[9],c[10]!==u?(a=u?{id:u}:void 0,c[10]=u,c[11]=a):a=c[11],c[12]!==a?(o=(0,v.jsx)(QJ,{user:a,withTooltip:!0}),c[12]=a,c[13]=o):o=c[13],c[14]!==n||c[15]!==r||c[16]!==o?(l=(0,v.jsxs)(I.so,{align:"center",gap:1,children:[n,r,o]}),c[14]=n,c[15]=r,c[16]=o,c[17]=l):l=c[17],c[18]!==m||c[19]!==C?(s=(m||C)&&(0,v.jsxs)(etm,{align:"center",gap:2,paddingX:0,children:[m&&(0,v.jsx)(ety,{dueBy:m}),C&&(0,v.jsx)(I.az,{marginLeft:1,children:(0,v.jsx)(etc,{documentId:C._ref,documentType:C._type})})]}),c[18]=m,c[19]=C,c[20]=s):s=c[20],c[21]!==l||c[22]!==s?(d=(0,v.jsxs)(I.BJ,{space:3,children:[l,s]}),c[21]=l,c[22]=s,c[23]=d):d=c[23],d}let etx=[],etb=(0,eI.I4)(I.so).withConfig({displayName:"DetailsFlex",componentId:"sc-1e5ydah-0"})`[data-ui='summary-icon']{transition:transform 0.2s;transform:rotate(-90deg);}&[open] [data-ui='summary-icon']{transform:rotate(0);}> summary::-webkit-details-marker{display:none;}`,etv=(0,eI.I4)(I.az).withConfig({displayName:"SummaryBox",componentId:"sc-1e5ydah-1"})`list-style:none;`;function etj(e){let t,n,i,r,a,o,l,s=(0,j.c)(17),{status:d,tasks:c,onTaskSelect:u}=e,p="open"===d;return s[0]!==d?(t=QD.find(e=>e.value===d)?.title,s[0]=d,s[1]=t):t=s[1],s[2]!==t?(n=(0,v.jsx)(I.EY,{size:1,weight:"medium",muted:!0,children:t}),s[2]=t,s[3]=n):n=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)(eT.D3D,{"data-ui":"summary-icon"})}),s[4]=i):i=s[4],s[5]!==n?(r=(0,v.jsx)(etv,{forwardedAs:"summary",paddingY:1,children:(0,v.jsxs)(I.so,{align:"center",gap:1,paddingY:1,children:[n,i]})}),s[5]=n,s[6]=r):r=s[6],s[7]!==u||s[8]!==d||s[9]!==c?(a=c?.length>0?c.map((e,t)=>{let n=t<c.length-1;return(0,v.jsxs)(_.Fragment,{children:[(0,v.jsx)(etC,{documentId:e._id,title:e.title,dueBy:e.dueBy,assignedTo:e.assignedTo,target:e.target,onSelect:()=>u(e._id),status:e.status}),n&&(0,v.jsx)(I.Nj,{})]},e._id)}):(0,v.jsx)(etr,{status:d}),s[7]=u,s[8]=d,s[9]=c,s[10]=a):a=s[10],s[11]!==a?(o=(0,v.jsx)(I.BJ,{space:4,marginTop:3,paddingBottom:5,children:a}),s[11]=a,s[12]=o):o=s[12],s[13]!==p||s[14]!==r||s[15]!==o?(l=(0,v.jsxs)(etb,{forwardedAs:"details",direction:"column",open:p,children:[r,o]}),s[13]=p,s[14]=r,s[15]=o,s[16]=l):l=s[16],l}function etw(e){let t,n,i=(0,j.c)(8),{items:r,onTaskSelect:a}=e,o=void 0===r?etx:r;i[0]!==o?(t=o.reduce(et_,{}),i[0]=o,i[1]=t):t=i[1];let l=t,s=l.open?.length>0,d=l.closed?.length>0;return i[2]!==d||i[3]!==s||i[4]!==a||i[5]!==l.closed||i[6]!==l.open?(n=(0,v.jsx)(I.BJ,{space:4,flex:1,children:s||d?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(etj,{status:"open",tasks:l.open,onTaskSelect:a}),(0,v.jsx)(etj,{status:"closed",tasks:l.closed,onTaskSelect:a})]}):(0,v.jsx)(ets,{})}),i[2]=d,i[3]=s,i[4]=a,i[5]=l.closed,i[6]=l.open,i[7]=n):n=i[7],n}function et_(e,t){return e[t.status]||(e[t.status]=[]),e[t.status].push(t),e}function etk(){let e,t=(0,j.c)(4),{upsellData:n,telemetryLogs:i}=Qj(),{panelPrimaryClicked:r,panelSecondaryClicked:a}=i;return n?(t[0]!==n||t[1]!==r||t[2]!==a?(e=(0,v.jsx)(I.mc,{width:1,children:(0,v.jsx)(I.az,{marginBottom:6,children:(0,v.jsx)(FP,{data:n,onPrimaryClick:r,onSecondaryClick:a})})}),t[0]=n,t[1]=r,t[2]=a,t[3]=e):e=t[3],e):null}let etS={marginLeft:"-0.5em",justifyContent:"space-between",display:"flex"};function etI(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(22),{activeTabId:u,onChange:p}=e,{t:m}=as(X3);c[0]!==m?(t=m("tab.assigned.label"),c[0]=m,c[1]=t):t=c[1],c[2]!==t?(n={id:"assigned",label:t},c[2]=t,c[3]=n):n=c[3],c[4]!==m?(i=m("tab.subscribed.label"),c[4]=m,c[5]=i):i=c[5],c[6]!==i?(r={id:"subscribed",label:i},c[6]=i,c[7]=r):r=c[7],c[8]!==m?(a=m("tab.document.label"),c[8]=m,c[9]=a):a=c[9],c[10]!==a?(o={id:"document",label:a},c[10]=a,c[11]=o):o=c[11],c[12]!==n||c[13]!==r||c[14]!==o?(l=[n,r,o],c[12]=n,c[13]=r,c[14]=o,c[15]=l):l=c[15];let h=l;c[16]!==p?(s=e=>{p(e.id)},c[16]=p,c[17]=s):s=c[17];let f=s;return c[18]!==u||c[19]!==f||c[20]!==h?(d=(0,v.jsx)(I.wb,{space:2,style:etS,children:h.map(e=>(0,v.jsx)(tL.oz,{"aria-controls":`${e.id}
1669-panel`,id:`${e.id}-tab`,onClick:()=>f(e),selected:e.id===u,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:e.label})},`${e.id}-tab`))}),c[18]=u,c[19]=f,c[20]=h,c[21]=d):d=c[21],d}let etT=eI.I4.div.withConfig({displayName:"Divider",componentId:"sc-12ergp7-0"})(e=>` 1670 height: 25px; 1671 width: 1px; 1672 background-color: ${(0,nN.JW)(e.theme).color.input.default.enabled.border}; 1673 `);function etE(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(41),{items:y}=e,{state:C,setViewMode:x}=Qc(),{selectedTask:b}=C;if(g[0]!==y||g[1]!==b){let e;t=y.filter(et$),g[4]!==b?(e=e=>e._id===b,g[4]=b,g[5]=e):e=g[5],n=t.findIndex(e),g[0]=y,g[1]=b,g[2]=t,g[3]=n}else t=g[2],n=g[3];let w=n;g[6]!==w||g[7]!==t||g[8]!==x?(i=()=>{x({type:"edit",id:w>0?t[w-1]._id:t[t.length-1]._id})},g[6]=w,g[7]=t,g[8]=x,g[9]=i):i=g[9];let _=i;g[10]!==w||g[11]!==t||g[12]!==x?(r=()=>{x({type:"edit",id:w<t.length-1?t[w+1]._id:t[0]._id})},g[10]=w,g[11]=t,g[12]=x,g[13]=r):r=g[13];let k=r,{t:S}=as(X3);if(!t.length)return null;g[14]!==S?(a=S("buttons.previous.tooltip"),g[14]=S,g[15]=a):a=g[15],g[16]!==a?(o={content:a},g[16]=a,g[17]=o):o=g[17],g[18]!==_||g[19]!==o?(l=(0,v.jsx)(tL.$n,{tooltipProps:o,mode:"bleed",icon:eT.YJP,onClick:_}),g[18]=_,g[19]=o,g[20]=l):l=g[20],g[21]!==S?(s=S("panel.navigation.tooltip"),g[21]=S,g[22]=s):s=g[22];let T=w+1;return g[23]!==t.length||g[24]!==T?(d=(0,v.jsx)(I.az,{paddingY:2,children:(0,v.jsxs)(I.EY,{size:1,children:[T," / ",t.length]})}),g[23]=t.length,g[24]=T,g[25]=d):d=g[25],g[26]!==s||g[27]!==d?(c=(0,v.jsx)(tL.m_,{content:s,children:d}),g[26]=s,g[27]=d,g[28]=c):c=g[28],g[29]!==S?(u=S("buttons.next.tooltip"),g[29]=S,g[30]=u):u=g[30],g[31]!==u?(p={content:u},g[31]=u,g[32]=p):p=g[32],g[33]!==k||g[34]!==p?(m=(0,v.jsx)(tL.$n,{tooltipProps:p,mode:"bleed",icon:eT.vKP,onClick:k}),g[33]=k,g[34]=p,g[35]=m):m=g[35],g[36]===Symbol.for("react.memo_cache_sentinel")?(h=(0,v.jsx)(etT,{}),g[36]=h):h=g[36],g[37]!==m||g[38]!==l||g[39]!==c?(f=(0,v.jsx)(tL.vE,{children:(0,v.jsxs)(I.so,{gap:1,align:"center",children:[l,c,m,h]})}),g[37]=m,g[38]=l,g[39]=c,g[40]=f):f=g[40],f}function et$(e){return"open"===e.status}let etA={constrainSize:!0,fallbackPlacements:["bottom-end"],placement:"bottom-end",portal:!0},etD=(0,eI.I4)(I.W1).withConfig({displayName:"StyledMenu",componentId:"sc-1p0npqq-0"})`width:220px;`;function etz(e){let t,n,i=(0,j.c)(8),{isSelected:r,item:a,onSelect:o}=e;i[0]!==a._id||i[1]!==o?(t=()=>{o(a._id)},i[0]=a._id,i[1]=o,i[2]=t):t=i[2];let l=t,s=r?eT.Nrt:void 0,d=a.title||"Untitled";return i[3]!==l||i[4]!==s||i[5]!==r||i[6]!==d?(n=(0,v.jsx)(tL.Dr,{iconRight:s,onClick:l,pressed:r,selected:r,text:d}),i[3]=l,i[4]=s,i[5]=r,i[6]=d,i[7]=n):n=i[7],n}function etP(){let e,t,n,i,r,a,o,l,s=(0,j.c)(20),{data:d}=Qx(),{state:c,setViewMode:u}=Qc(),{viewMode:p,selectedTask:m}=c,h=o5(),f=h?.id?d.filter(e=>{let t=e.authorId===h.id,n=!e.createdByUser,i=e._updatedAt!==e._createdAt,r="create"!==p||e._id!==m;return t&&n&&r&&i}):rM;s[0]!==u?(e=e=>{u({type:"draft",id:e})},s[0]=u,s[1]=e):e=s[1];let g=e,{t:y}=as(X3);if(!f.length)return null;let C=tL.IU;s[2]!==y?(t=y("buttons.draft.text"),s[2]=y,s[3]=t):t=s[3],s[4]!==t?(n=(0,v.jsx)(tL.$n,{text:t,mode:"ghost",iconRight:eT.D3D}),s[4]=t,s[5]=n):n=s[5],s[6]!==y?(i=y("panel.drafts.title"),s[6]=y,s[7]=i):i=s[7],s[8]!==i?(r=(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:i})}),s[8]=i,s[9]=r):r=s[9],s[10]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)(I.Nj,{}),s[10]=a):a=s[10];let x=f?.map(e=>(0,v.jsx)(etz,{isSelected:m===e._id,item:e,onSelect:g},e._id));return s[11]!==etD||s[12]!==r||s[13]!==a||s[14]!==x?(o=(0,v.jsxs)(etD,{children:[r,a,x]}),s[11]=etD,s[12]=r,s[13]=a,s[14]=x,s[15]=o):o=s[15],s[16]!==C||s[17]!==n||s[18]!==o?(l=(0,v.jsx)(C,{button:n,id:"edit-task-menu",menu:o,popover:etA}),s[16]=C,s[17]=n,s[18]=o,s[19]=l):l=s[19],l}function etR(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(34),{items:m}=e,{mode:h}=X4(),{state:f,setViewMode:g,handleCloseTasks:y}=Qc(),{viewMode:C,activeTabId:x}=f;p[0]!==g?(t=()=>{g({type:"create"})},p[0]=g,p[1]=t):t=p[1];let b=t;p[2]!==g?(n=()=>{g({type:"list"})},p[2]=g,p[3]=n):n=p[3];let w=n,{t:_}=as(X3);return p[4]!==x||p[5]!==w||p[6]!==_||p[7]!==C?(i=(0,v.jsx)(I.so,{align:"center",flex:1,children:"list"===C?(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(I.EY,{size:2,weight:"semibold",children:_("panel.title")})}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.$n,{mode:"bleed",space
1673:2,padding:2,onClick:w,children:(0,v.jsx)(I.EY,{size:1,children:_("panel.title")})}),(0,v.jsx)(eT.vKP,{}),(0,v.jsx)(I.az,{paddingX:2,children:(0,v.jsx)(I.EY,{size:1,weight:"semibold",style:{textTransform:"capitalize"},children:"create"===C||"draft"===C?_("panel.create.title"):x})})]})}),p[4]=x,p[5]=w,p[6]=_,p[7]=C,p[8]=i):i=p[8],p[9]!==C?(r=("create"===C||"draft"===C)&&(0,v.jsx)(etP,{}),p[9]=C,p[10]=r):r=p[10],p[11]!==m||p[12]!==C?(a="edit"===C&&(0,v.jsx)(etE,{items:m}),p[11]=m,p[12]=C,p[13]=a):a=p[13],p[14]!==b||p[15]!==h||p[16]!==_||p[17]!==C?(o="list"===C&&(0,v.jsx)(tL.$n,{icon:eT.REV,onClick:b,mode:"bleed",text:_("buttons.new.text"),disabled:"upsell"===h,tooltipProps:"upsell"===h?{content:_("buttons.new.upsell-tooltip")}:void 0}),p[14]=b,p[15]=h,p[16]=_,p[17]=C,p[18]=o):o=p[18],p[19]!==_?(l=_("panel.close.tooltip"),p[19]=_,p[20]=l):l=p[20],p[21]!==l?(s={content:l},p[21]=l,p[22]=s):s=p[22],p[23]!==y||p[24]!==s?(d=(0,v.jsx)(tL.$n,{tooltipProps:s,iconRight:eT.USm,mode:"bleed",onClick:y}),p[23]=y,p[24]=s,p[25]=d):d=p[25],p[26]!==o||p[27]!==d?(c=(0,v.jsxs)(I.so,{gap:1,children:[o,d]}),p[26]=o,p[27]=d,p[28]=c):c=p[28],p[29]!==i||p[30]!==r||p[31]!==a||p[32]!==c?(u=(0,v.jsxs)(I.so,{justify:"space-between",align:"center",gap:1,children:[i,r,a,c]}),p[29]=i,p[30]=r,p[31]=a,p[32]=c,p[33]=u):u=p[33],u}let etN=ir.P.create(I.Zp),etO=(0,eI.I4)(etN).withConfig({displayName:"RootCard",componentId:"sc-a0aemq-0"})`flex:1;flex-direction:column;`,etV=(0,eI.I4)(I.BJ).withConfig({displayName:"HeaderStack",componentId:"sc-a0aemq-1"})`border-bottom:1px solid var(--card-border-color);`,etM=(0,eI.I4)(I.so).withConfig({displayName:"ContentFlex",componentId:"sc-a0aemq-2"})`overflow-y:scroll;overflow-x:hidden;`;function etL(){let e,t,n,i,r,a,o,l,s,d,c=(0,j.c)(39),{mode:u}=X4(),{activeDocument:p,data:m,isLoading:h}=Qx(),{state:f,setActiveTab:g,setViewMode:y}=Qc(),{activeTabId:C,viewMode:x,selectedTask:b}=f,w=o5();c[0]!==y?(e=e=>y({type:"edit",id:e}),c[0]=y,c[1]=e):e=c[1];let _=e;if(c[2]!==p||c[3]!==C||c[4]!==w||c[5]!==m){let e;c[7]!==p||c[8]!==C||c[9]!==w?(e=e=>!!e.createdByUser&&("assigned"===C?e.assignedTo===w?.id:"subscribed"===C?w?.id&&e.subscribers?.includes(w.id):"document"===C&&p?.documentId&&e.target?.document._ref===p.documentId),c[7]=p,c[8]=C,c[9]=w,c[10]=e):e=c[10],t=m.filter(e),c[2]=p,c[3]=C,c[4]=w,c[5]=m,c[6]=t}else t=c[6];let k=t;e:{let e,t,i;if("list"!==x){let e;c[11]!==b?(e=(0,v.jsx)(ett,{},b),c[11]=b,c[12]=e):e=c[12],n=e;break e}if(h){let e;c[13]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.so,{align:"center",justify:"center",children:(0,v.jsx)(I.y$,{})}),c[13]=e):e=c[13],n=e;break e}c[14]!==u?(e="upsell"===u&&(0,v.jsx)(etk,{}),c[14]=u,c[15]=e):e=c[15],c[16]!==k||c[17]!==_?(t=(0,v.jsx)(etw,{items:k,onTaskSelect:_}),c[16]=k,c[17]=_,c[18]=t):t=c[18],c[19]!==e||c[20]!==t?(i=(0,v.jsxs)(v.Fragment,{children:[e,t]}),c[19]=e,c[20]=t,c[21]=i):i=c[21],n=i}let S=n;return c[22]===Symbol.for("react.memo_cache_sentinel")?(i={opacity:0},c[22]=i):i=c[22],c[23]===Symbol.for("react.memo_cache_sentinel")?(r={opacity:1,transition:{duration:.2}},c[23]=r):r=c[23],c[24]!==k?(a=(0,v.jsx)(etR,{items:k}),c[24]=k,c[25]=a):a=c[25],c[26]!==C||c[27]!==h||c[28]!==g||c[29]!==x?(o="list"===x&&!h&&(0,v.jsx)(etI,{activeTabId:C,onChange:g}),c[26]=C,c[27]=h,c[28]=g,c[29]=x,c[30]=o):o=c[30],c[31]!==a||c[32]!==o?(l=(0,v.jsxs)(etV,{space:3,padding:3,sizing:"border",children:[a,o]}),c[31]=a,c[32]=o,c[33]=l):l=c[33],c[34]!==S?(s=(0,v.jsx)(etM,{direction:"column",flex:1,overflow:"auto",padding:3,paddingTop:4,paddingX:4,sizing:"border",children:S}),c[34]=S,c[35]=s):s=c[35],c[36]!==l||c[37]!==s?(d=(0,v.jsxs)(etO,{display:"flex",height:"fill",flex:1,overflow:"hidden",initial:i,animate:r,children:[l,s]}),c[36]=l,c[37]=s,c[38]=d):d=c[38],d}function etF(){let e,t=(0,j.c)(1),{enabled:n}=X4();return n?(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(etL,{}),t[0]=e):e=t[0],e):null}let etB=(0,eI.I4)(I.so).withConfig({displayName:"RootFlex",componentId:"sc-1y8zfkj-0"})(({theme:e})=>{let t=e.sanity.media;return(0,eI.AH)` 1674 min-height: 100%; 1675 1676 @media (max-width: ${t[3]}px) { 1677 position: relative; 1678 } 1679 `}),etY=(0,eI.I4)(I.Wd).withConfig({displayName:"SidebarMotionLayer",componentId:"sc-1y8zfkj-1"})(({theme:e})=>{let t=e.sanity.media;return(0,eI.AH)` 1680 display: flex; 1681 flex-direction: column; 1682 height: 100%; 1683 width: 360px; 1684 border-left: 1px solid var(--card-border-color); 1685 box-sizing: border-box; 1686 overflow: hidden; 1687 1688 box-shadow: 1689 0px 6px 8px -4px var(--card-shadow-umbra-color), 1690 0px 12px 17px -1px var(--card-shadow-penumbra-color); 1691 1692 @media (max-width: ${t[3]}px) { 1693 bottom: 0; 1694 position: absolute; 1695 right: 0; 1696 top: 0; 1697 } 1698 1699 @media (max-width: ${t[1]}px) { 1700 border-left: 0; 1701 min-width: 100%; 1702 left: 0; 1703 } 1704 `});function etH(e){let t,n,i,r,a,o=(0,j.c)(12),l=(0,I.aY)(),{state:s}=Qc(),{isOpen:d}=s,c=l<=1&&d?"hidden":"auto";return o[0]!==e?(t=e.renderDefault(e),o[0]=e,o[1]=t):t=o[1],o[2]!==c||o[3]!==t?(n=(0,v.jsx)(I.az,{flex:1,height:"fill",overflow:c,children:t}),o[2]=c,o[3]=t,o[4]=n):n=o[4],o[5]!==d?(i=d&&(0,v.jsx)(etY,{zOffset:100,height:"fill",children:(0,v.jsx)(etF,{})}),o[5]=d,o[6]=i):i=o[6],o[7]!==i?(r=(0,v.jsx)(ia.N,{initial:!1,children:i}),o[7]=i,o[8]=r):r=o[8],o[9]!==n||o[10]!==r?(a=(0,v.jsxs)(etB,{sizing:"border",height:"fill",children:[n,r]}),o[9]=n,o[10]=r,o[11]=a):a=o[11],a}let etU=e=>{let t,n,i,r=(0,j.c)(10),{enabled:a,mode:o}=X4();if(!a){let t;return r[0]!==e?(t=e.renderDefault(e),r[0]=e,r[1]=t):t=r[1],t}r[2]!==e?(t=e.renderDefault(e),r[2]=e,r[3]=t):t=r[3],r[4]!==t?(n=(0,v.jsx)(QC,{children:(0,v.jsx)(Qd,{children:t})}),r[4]=t,r[5]=n):n=r[5];let l=n;if("upsell"===o){let e;return r[6]!==l?(e=(0,v.jsx)(Kv,{children:(0,v.jsx)(Qv,{children:l})}
1704),r[6]=l,r[7]=e):e=r[7],e}return r[8]!==l?(i=(0,v.jsx)(Kv,{children:l}),r[8]=l,r[9]=i):i=r[9],i},etZ=[],etq=e=>{let t,n,i,r=(0,j.c)(8),{onClick:a,isOpen:o}=e,{t:l}=as(X3);return r[0]!==l?(t=l("toolbar.tooltip"),r[0]=l,r[1]=t):t=r[1],r[2]!==t?(n={content:t},r[2]=t,r[3]=n):n=r[3],r[4]!==o||r[5]!==a||r[6]!==n?(i=(0,v.jsx)(tL.$n,{tooltipProps:n,icon:eT.Dee,mode:"bleed",onClick:a,selected:o,"data-testid":"tasks-toolbar"}),r[4]=o,r[5]=a,r[6]=n,r[7]=i):i=r[7],i};function etW(e){let t,n,i,r,a,o,l,s=(0,j.c)(22),{handleOpenTasks:d,handleCloseTasks:c,state:u}=Qc(),{isOpen:p}=u,{t:m}=as(X3);s[0]!==c||s[1]!==d||s[2]!==p?(t=()=>{p?c():d()},s[0]=c,s[1]=d,s[2]=p,s[3]=t):t=s[3];let h=t;s[4]!==h||s[5]!==p?(n=()=>(0,v.jsx)(etq,{onClick:h,isOpen:p}),s[4]=h,s[5]=p,s[6]=n):n=s[6];let f=n,g=e?.__internal_actions||etZ;s[7]!==f?(i={location:"topbar",name:"tasks-topbar",render:f},s[7]=f,s[8]=i):i=s[8],s[9]!==m?(r=m("actions.open.text"),s[9]=m,s[10]=r):r=s[10],s[11]!==h||s[12]!==p||s[13]!==r?(a={icon:eT.Dee,location:"sidebar",name:"tasks-sidebar",onAction:h,selected:p,title:r},s[11]=h,s[12]=p,s[13]=r,s[14]=a):a=s[14],s[15]!==g||s[16]!==i||s[17]!==a?(o=[...g,i,a],s[15]=g,s[16]=i,s[17]=a,s[18]=o):o=s[18];let y=o;return s[19]!==y||s[20]!==e?(l=e.renderDefault({...e,__internal_actions:y}),s[19]=y,s[20]=e,s[21]=l):l=s[21],l}let etJ="sanity/tasks",etK=R1({name:etJ,__internal_tasks:{footerAction:(0,v.jsx)(function(){let e,t,n,i,r,a,o=(0,j.c)(31),{data:l,activeDocument:s}=Qx(),{handleOpenTasks:d,setActiveTab:c}=Qc(),u=(0,I.aY)();o[0]!==s||o[1]!==l?(e=s?.documentId?l.filter(e=>e.target?.document._ref===s.documentId&&"open"===e.status&&e.createdByUser):[],o[0]=s,o[1]=l,o[2]=e):e=o[2];let p=e;o[3]!==d||o[4]!==c?(t=()=>{d(),c("document")},o[3]=d,o[4]=c,o[5]=t):t=o[5];let m=t,{t:h}=as(X3);if(0===p.length)return null;if(u<3){let e,t,n,i,r;return o[6]!==p.length||o[7]!==h?(e=h("document.footer.open-tasks.placeholder",{count:p.length}),o[6]=p.length,o[7]=h,o[8]=e):e=o[8],o[9]!==e?(t={content:e},o[9]=e,o[10]=t):t=o[10],o[11]!==m||o[12]!==t?(n=(0,v.jsx)(tL.$n,{mode:"bleed",icon:eT.ZMV,size:"large",onClick:m,tooltipProps:t}),o[11]=m,o[12]=t,o[13]=n):n=o[13],o[14]!==p.length?(i=(0,v.jsx)(I.Ex,{"data-testid":"tasks-badge",tone:"primary",fontSize:0,children:p.length}),o[14]=p.length,o[15]=i):i=o[15],o[16]!==n||o[17]!==i?(r=(0,v.jsxs)(QT,{children:[n,i]}),o[16]=n,o[17]=i,o[18]=r):r=o[18],r}return o[19]!==p.length||o[20]!==h?(n=h("document.footer.open-tasks.placeholder",{count:p.length}),o[19]=p.length,o[20]=h,o[21]=n):n=o[21],o[22]!==n?(i={content:n},o[22]=n,o[23]=i):i=o[23],o[24]!==p.length||o[25]!==h?(r=h("document.footer.open-tasks.text",{count:p.length}),o[24]=p.length,o[25]=h,o[26]=r):r=o[26],o[27]!==m||o[28]!==i||o[29]!==r?(a=(0,v.jsx)(tL.$n,{mode:"bleed",tooltipProps:i,text:r,onClick:m}),o[27]=m,o[28]=i,o[29]=r,o[30]=a):a=o[30],a},{})},document:{actions:e=>[...e,Q_].filter(Boolean)},studio:{components:{layout:function(e){let t,n=(0,j.c)(2);return n[0]!==e?(t=(0,v.jsx)(X8,{children:(0,v.jsx)(etU,{...e})}),n[0]=e,n[1]=t):t=n[1],t},navbar:function(e){let t,n=(0,j.c)(4),{enabled:i}=X4();if(!i){let t;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==e?(t=(0,v.jsx)(etW,{...e}),n[2]=e,n[3]=t):t=n[3],t},activeToolLayout:function(e){let t,n=(0,j.c)(4),{enabled:i}=X4();if(!i){let t;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==e?(t=(0,v.jsx)(etH,{...e}),n[2]=e,n[3]=t):t=n[3],t}}},form:{components:{input:e=>"root"===e.id&&e.schemaType.type?.name==="document"?(0,v.jsx)(QI,{...e}):e.renderDefault(e)}},i18n:{bundles:[{locale:"en-US",namespace:X3,resources:()=>n.e(5587).then(n.bind(n,55587))}]}}),etG=[KT(),etK(),X7(),Kq(),Nr(),ZK(),Zo(),F7(),F2()];class etX extends Error{constructor(e){super("SchemaError"),this.schema=e,this.name="SchemaError"}}let etQ=tH("sanity:config"),et1=e=>"error"===e.severity,et2=new WeakMap;function et5(e,t){if(!Array.isArray(e)&&"missingConfigFile"in e)throw new Y$({name:"",type:"configuration file",causes:["No `sanity.config.ts` file found","No `sanity.config.js` file found"]});let n=function(e){let t=e||"";if("string"!=typeof t||t.length>0&&!t.startsWith("/"))throw new Y$({name:"",type:"options",causes:["basePath must be a string, and must start with a slash"]});return"/"===t?"":t}(t?.basePath),i=Array.isArray(e)?e:[{...e,name:e.name??"default"}];try{!function({workspaces:e}){var t;let n,i;if(0===e.length)throw new ru("At least one workspace is required.");t=e,n=1===t.length,i=new Map,t.forEach((e,t)=>{let{name:r,title:a}=e,o=rd(a,t);
1704if(!r&&!n)throw new ru(`All workspaces must have a \`name\`, unless only a single workspace is defined. Workspace ${o} did not define a \`name\`.`,{workspace:e,index:t});let l=n&&typeof r>"u"?"default":r;if("string"!=typeof l)throw new ru(`Workspace at index ${t} defined an invalid \`name\` - must be a string.`,{workspace:e,index:t});let s=l.toLowerCase(),d=i.get(s);if(d){let n=rd(d.workspace.title,d.index);throw new ru(`\`name\`s must be unique. Workspace ${n} and workspace ${o} both have the \`name\` \`${l}\``,{workspace:e,index:t})}if(i.set(s,{index:t,workspace:e}),!/^[a-z0-9][a-z0-9_-]*$/i.test(l))throw new ru(`All workspace \`name\`s must consist of only a-z, 0-9, underscore and dashes, and cannot begin with an underscore or dash. Workspace ${o} has the invalid name \`${l}\``,{workspace:e,index:t})}),function(e){e.length>1&&e.every(rp),e.every(rm);let[t,...n]=e,i=(t.basePath||"/").slice(1).split("/").filter(Boolean).length;n.forEach((e,n)=>{let r=(e.basePath||"/").slice(1).split("/").length;if(i!==r)throw new ru(`All workspace \`basePath\`s must have the same amount of segments. Workspace \`${rs(t,n)}\` had ${i} segment${1===i?"":"s"} \`${t.basePath}\` but workspace \`${rs(e,n)}\` had ${r} segment${1===r?"":"s"} \`${e.basePath}\``,{workspace:e,index:n})});let r=new Map;e.forEach((e,t)=>{let n=(e.basePath||"").toLowerCase(),i=r.get(n);if(i)throw new ru(`\`basePath\`s must be unique. Workspaces \`${i}\` and \`${rs(e,t)}\` both have the \`basePath\` \`${n}\``,{workspace:e,index:t});r.set(n,rs(e,t))})}(e)}({workspaces:i})}catch(e){throw new Y$({name:"",type:"workspace",causes:[e.message]})}return{type:"prepared-config",workspaces:i.map(e=>{var t,i;if(et2.has(e))return et2.get(e);let r={tasks:{enabled:!0,...e.unstable_tasks,...e.tasks},scheduledPublishing:{enabled:!0,inputDateTimeFormat:"dd/MM/yyyy HH:mm",...e.scheduledPublishing,__internal__workspaceEnabled:e.scheduledPublishing?.enabled??!1},releases:{...e.releases,enabled:e.releases?.enabled??!0},apps:{canvas:{enabled:!0,...e.apps?.canvas}},mediaLibrary:e?.mediaLibrary,scheduledDrafts:e.scheduledDrafts??{enabled:!0}},{unstable_sources:a=[],...o}=e,l=[o,...a].map(({plugins:e,...t})=>({...t,plugins:[...e??[],...etG.filter(t=>t.name===X0?r.scheduledPublishing.enabled&&!!e?.length:t.name===etJ?r.tasks.enabled:t.name===Nn?r.releases.enabled:t.name===ZJ?r.apps?.canvas?.enabled??!1:t.name===Za?r.mediaLibrary?.enabled:t.name===F5?r.releases.enabled||r.scheduledDrafts?.enabled:t.name!==FQ||r.scheduledDrafts?.enabled)].filter(e=>{let t="@sanity/assist"!==e.name||e.handlesGDR;return t||console.warn(`Found an incompatible version of @sanity/assist plugin. It has been disabled. 1705To re-enable the plugin, please upgrade to https://github.com/sanity-io/assist/releases/tag/v3.2.2 or later.`),t})})).map(e=>{var t;let n,i,r,a,o,{projectId:l,dataset:s}=e;try{n=function({config:e,context:t}){return Hd({propertyName:"schema.types",config:e,context:t,initialValue:[],reducer:YG})}({config:e,context:{projectId:l,dataset:s}})}catch(t){throw new Y$({name:e.name,type:"source",causes:[t]})}let d=(t={name:e.name,types:n},i=(0,nH.i6)(t.types).getTypes(),a=(r=(0,nH.Uh)(i)).some(e=>e.problems.some(vG)),(o=n4.Sj.compile({name:t.name,types:a?[]:t.types.filter(Boolean),parent:vX}))._validation=r,sj(o)),c=d._validation,u=c?.filter(e=>e.problems.some(et1));if(c&&u?.length)throw new etX(d);let p=function(e){var t;if(rZ(t=e.auth)&&"state"in t&&rZ(t.state)&&"subscribe"in t.state&&"function"==typeof t.state.subscribe)return e.auth;let n=e.unstable_clientFactory||tM.UU,{projectId:i,dataset:r,apiHost:a}=e;return oH({apiHost:a,...e.auth,clientFactory:n,dataset:r,projectId:i})}(e),m=function(e){let{projectId:t,dataset:n,name:i}=e,r={projectId:t,dataset:n},a=Hd({config:e,context:r,propertyName:"i18n.locales",reducer:Y2,initialValue:[rw]}),o=Hd({config:e,context:r,propertyName:"i18n.bundles",reducer:Y5,initialValue:function(e){let t=[];for(let n of e){if(n.bundles&&!Array.isArray(n.bundles))throw Error(`Resource bundle for locale ${n.id} is not an array`);if(n.bundles)for(let e of n.bundles){if("locale"in e&&e.locale!==n.id)throw Error(`Resource bundle inside locale ${n.id} has mismatching locale id`);
1705if(!e.namespace)throw Error(`Resource bundle for locale ${n.id} is missing namespace`);t.push("locale"in e?e:{...e,locale:n.id})}}return t}(a)});return function({locales:e,bundles:t,projectId:n,sourceName:i}){let r=function(e,t,n,i){let r=r_?localStorage.getItem(rk(e,t))??void 0:void 0,a=n.find(e=>e.id===r),o=n[n.length-1],l=a?.id??o.id??Hm.lng;return{...Hm,ns:Array.from(i),lng:l,supportedLngs:n.map(e=>e.id)}}(n,i,e,new Set(t.map(e=>e.namespace))),a=(0,it.Q_)().use(function(e){let{bundles:t}=e;return{type:"backend",init:function(){},read:function(e,n,i){let r=t.filter(t=>t.locale===e&&t.namespace===n);0===r.length?i(`No translations found for namespace "${n}", language "${e}"`,void 0):Hc(r).then(e=>i(null,e)).catch(e=>i(e,!0))}}}({bundles:t})).use(eA.r9);a.init(r).catch(e=>{console.error("Failed to initialize i18n backend: %s",e)});let o=e.map(Hh);return{source:{get currentLocale(){return o.find(e=>e.id===a.language)??rw},loadNamespaces(e){let t=e.filter(e=>!a.hasLoadedNamespace(e));return 0===t.length?Promise.resolve():a.loadNamespaces(t)},locales:o,t:ao(a.t)},i18next:a}}({locales:a,bundles:o,projectId:t,sourceName:i})}(e),h=p.state.pipe((0,eV.T)(({client:t,authenticated:n,currentUser:i})=>(function({config:e,client:t,currentUser:n,schema:i,authenticated:r,auth:a,i18n:o}){var l,s,d,c,u,p;let m,h,f,g,{dataset:y,projectId:C}=e,x=function(e,t){let{dataset:n,url:i,requestTagPrefix:r="sanity.studio"}=e.withConfig({apiVersion:"2022-06-30"}).config(),a=`${`${i.replace(/\/+$/,"")}/socket/${n}`.replace(/^http/,"ws")}?tag=${r}`,o=t.token?{token$:t.token}:{};return(0,tY.uz)(a,o)}(t,a),b=[],j={},w=e=>{if(!e||!e.apiVersion)throw Error("Missing required `apiVersion` option");return j[e.apiVersion]||(j[e.apiVersion]=t.withConfig(e)),j[e.apiVersion]},_={client:t,getClient:w,currentUser:n,dataset:y,projectId:C,schema:i,i18n:o.source,[Yq]:(e=>{let{config:t,initialValue:n}=e;return YZ(t,[]).reduce((e,{config:t})=>{let n=t[Yq];if(typeof n>"u")return e;if("object"==typeof n&&null!==n)return n;throw Error(`Expected an object, but received ${py(n)}`)},n)})({config:e,initialValue:void 0})};_.client=[...Object.keys(t),...Object.keys(t.__proto__)].reduce((e,n)=>{let i=Object.hasOwnProperty.call(t,n)?t[n]:t.__proto__[n];return Object.defineProperty(e,n,{get:()=>(console.warn('`configContext.client` is deprecated and will be removed in the next release! Use `context.getClient({apiVersion: "2021-06-07"})` instead'),i)})},{});let k={fileSource:b1({client:l=_.client,title:e.title||e.name}),imageSource:bQ({client:l,title:e.title||e.name})},S=(m=Ha({config:s=e,initialValue:void 0}),Hr({config:s,initialValue:!1})?{fileSource:{name:(d={libraryId:m||null}).name||YI,i18nKey:d.i18nKey||"asset-sources.media-library.file.title",component:e=>(0,v.jsx)(Yj,{...e,libraryId:d.libraryId}),icon:d.icon||eT.pyG,Uploader:YS,openInSource:YT},imageSource:{name:(c={libraryId:m||null}).name||YI,i18nKey:c.i18nKey||"asset-sources.media-library.image.title",component:e=>(0,v.jsx)(Yj,{...e,libraryId:c.libraryId}),icon:c.icon||eT.xfq,Uploader:YS,openInSource:YT}}:{fileSource:null,imageSource:null});try{h=Hd({config:e,context:_,propertyName:"schema.templates",reducer:Y1,initialValue:i.getTypeNames().filter(e=>!e.startsWith("sanity.")).map(e=>i.get(e)).filter(r$).filter(e=>e.type?.name==="document").map(e=>({id:e.name,schemaType:e.name,title:e.title||e.name,icon:e.icon,value:e.initialValue||{_type:e.name}}))})}catch(t){throw new Y$({name:e.name,type:"source",causes:[t]})}try{f=Hd({config:e,context:_,initialValue:[],propertyName:"tools",reducer:YQ})}catch(t){throw new Y$({name:e.name,type:"source",causes:[t]})}if(f.some(({name:e})=>"tool"===e))throw Error('A tool cannot have the name "tool". Please enter a different name.');let I=h.filter(e=>!e.parameters?.length).map(e=>({templateId:e.id,description:e.description,icon:e.icon,title:e.title})),T=h.reduce((e,t)=>(e.set(t.id,t),e),new Map),E=t=>{let{schemaType:n}=t,r=Hd({config:e,context:{..._,creationContext:t},initialValue:I,propertyName:"document.resolveNewDocumentOptions",reducer:Y8}),a=[];if(a.length)throw new Y$({name:e.name,type:"source",causes:a});return r.map((e,t)=>{let n=T.get(e.templateId);if(!n)throw Error(`Could not find template with ID \`${e.templateId}\``);let r=i.get(n.schemaType);if(!r)throw Error(`Could not find matching schema type \`${n.schemaType}\` for template \`${n.id}\``);let a=e.title||n.title,o=r?.title===a?void 0:r?.title;return{id:`${e.templateId}-${t}`,templateId:e.templateId,type:"initialValueTemplateItem",title:a,i18n:e.i18n||n.i18n,subtitle:e.subtitle||o,description:e.description||n.description,icon:e.icon||n.icon||r?.icon,initialDocumentId:e.initialDocumentId,parameters:e.parameters,schemaType:n.schemaType}}).filter(e=>!n||"document"===t.type||n===T.get(e.templateId)?.schemaType)};try{g=E({type:"global"})}catch(e){b.push(e)}if(b.length)throw new Y$({name:e.name,type:"source",causes:b});return{type:"source",name:e.name,title:e.title||(0,eu.A)(e.name),schema:i,getClient:w,dataset:y,projectId:C,tools:f,currentUser:n,authenticated:r,templates:h,auth:a,i18n:o.source,__internal_tasks:(e=>{let{config:t}=e;return YZ(t,[]).reduce((e,{config:t})=>{let n=t.__internal_tasks;if(!n)return e;if("object"==typeof n&&n.footerAction)return n;throw Error(`Expected \`__internal__tasks\` to be an object with footerAction, but received ${py(n)}`)},void 0)})({config:e}),document:{actions:t=>Hd({config:e,context:{..._,...t},initialValue:YJ,propertyName:"document.actions",reducer:Y7}),badges:t=>Hd({config:e,context:{..._,...t},initialValue:YW,propertyName:"document.badges",reducer:Y0}),drafts:{enabled:Hd({config:e,context:_,reducer:Hl,propertyName:"document.drafts.enabled",initialValue:!0})},unstable_fieldActions:t=>Hd({config:e,context:{..._,...t},initialValue:YY,propertyName:"document.unstable_fieldActions",reducer:YB}),inspectors:t=>Hd({config:e,context:{..._,...t},initialValue:rM,propertyName:"document.inspectors",reducer:Ht}),resolveProductionUrl:t=>Hd({config:e,context:{..._,...t},initialValue:void 0,propertyName:"resolveProductionUrl",asyncReducer:YX}),resolveNewDocumentOptions:E,unstable_languageFilter:t=>Hd({config:e,context:{..._,...t},initialValue:YK,propertyName:"document.unstable_languageFilter",reducer:He}),unstable_comments:{enabled:t=>Hn({context:t,config:e,initialValue:!0})},comments:{enabled:t=>Hn({context:t,config:e,initialValue:!0})}},form:{file:{assetSources:Hd({config:e,context:_,initialValue:S.fileSource?[S.fileSource,k.fileSource]:[k.fileSource],propertyName:"formBuilder.file.assetSources",reducer:Y4}
1705),directUploads:Y6({config:e,schemaTypeName:"file"})},image:{assetSources:Hd({config:e,context:_,initialValue:S.imageSource?[S.imageSource,k.imageSource]:[k.imageSource],propertyName:"formBuilder.image.assetSources",reducer:Y9}),directUploads:Y6({config:e,schemaTypeName:"image"})}},search:{filters:Hf,operators:UN,unstable_partialIndexing:{enabled:(e=>{let{config:t,initialValue:n}=e;return YZ(t,[]).reduce((e,{config:t})=>{let n=t.search?.unstable_partialIndexing?.enabled;if(!n&&"boolean"!=typeof n)return e;if("boolean"==typeof n)return n;throw Error(`Expected \`search.unstable_partialIndexing.enabled\` to be a boolean, but received ${py(n)}`)},n)})({config:e,initialValue:e.search?.unstable_partialIndexing?.enabled??!1})},strategy:(({config:e,initialValue:t})=>{let[n,i]=YZ(e,[]).reduce(([e,t],n)=>{let{enableLegacySearch:i,strategy:r}=n.config.search??{};if("u">typeof r){if(!(0,eD.GC)(r)){let e=new Intl.ListFormat("en-US",{type:"disjunction"}).format(eD.IB.map(e=>`"${e}"`)),t="string"==typeof r?`"${r}"`:py(r);throw Error(`Expected \`search.strategy\` to be ${e}, but received ${t}`)}return[e,r]}return"boolean"==typeof i?[i?"groqLegacy":"groq2024",t]:[e,t]},[void 0,void 0]);return i??n??t})({config:e,initialValue:"groqLegacy"}),enableLegacySearch:Hd({config:e,context:_,reducer:Ho,propertyName:"enableLegacySearch",initialValue:!0})},__internal:{bifur:x,i18next:o.i18next,staticInitialValueTemplateItems:g,options:e,schemaDescriptorId:r?(u=UO(i,w(ob)),p=e
1705=>{etQ("Uploading schema failed",{err:e})},u.catch(p),u):Promise.resolve(void 0)},onUncaughtError:(t,n)=>(e=>{let{config:t,context:n}=e;YZ(t,[]).forEach(({config:e})=>{let t=e.onUncaughtError;if("function"==typeof t)return t(n.error,n.errorInfo);if(t)throw Error(`Expected \`document.onUncaughtError\` to be a a function, but received ${py(t)}`)})})({config:e,context:{error:t,errorInfo:n}}),beta:{eventsAPI:{documents:Hi({config:e,initialValue:!0,key:"documents"}),releases:Hi({config:e,initialValue:!1,key:"releases"})},create:{startInCreateEnabled:!1,fallbackStudioOrigin:void 0}},__internal_serverDocumentActions:{enabled:(e=>{let{config:t,initialValue:n}=e;return YZ(t,[]).reduce((e,{config:t})=>{let n=t.__internal_serverDocumentActions?.enabled;if(typeof n>"u")return e;if("boolean"==typeof n)return n;throw Error(`Expected \`__internal_serverDocumentActions\` to be a boolean, but received ${py(n)}`)},n)})({config:e,initialValue:void 0})},announcements:{enabled:(e=>{let{config:t,initialValue:n}=e;return YZ(t,[]).reduce((e,{config:t})=>{let n=t.announcements?.enabled;if(!n&&"boolean"!=typeof n)return e;if("boolean"==typeof n)return n;throw Error(`Expected \`announcements.enabled\` to be a boolean, but received ${py(n)}`)},n)})({config:e,initialValue:!0})},mediaLibrary:{enabled:Hr({config:e,initialValue:!1}),libraryId:Ha({config:e,initialValue:void 0}),__internal:{frontendHost:(e=>{let{config:t,initialValue:n}=e;return YZ(t,[]).reduce((e,{config:t})=>{let n=t.mediaLibrary?.__internal?.frontendHost;if(!n&&"string"!=typeof n)return e;if("string"==typeof n)return n;throw Error(`Expected \`mediaLibrary.__internal.frontendHost\` to be a string, but received ${py(n)}`)},n)})({config:e,initialValue:void 0})}},advancedVersionControl:{enabled:Hd({config:e,context:_,reducer:Hs,propertyName:"advancedVersionControl.enabled",initialValue:!1})},scheduledDrafts:{enabled:(e=>{let{config:t,initialValue:n}=e;return YZ(t,[]).reduce((e,{config:t})=>{let n=t.scheduledDrafts?.enabled;if(typeof n>"u")return e;if("boolean"==typeof n)return n;throw Error(`Expected a boolean, but received ${py(n)}`)},n)})({config:e,initialValue:!0})},releases:e.releases?{enabled:e.releases.enabled??!0,limit:e.releases.limit,actions:t=>Hd({config:e,context:{..._,...t},initialValue:[],propertyName:"releases.actions",reducer:Y3})}:{enabled:!0}}})({config:e,client:t,currentUser:i,schema:d,authenticated:n,auth:p,i18n:m})),(0,e1.t)(1));return{name:e.name,projectId:e.projectId,dataset:e.dataset,title:e.title||(0,eu.A)(e.name),auth:p,schema:d,i18n:m.source,source:h}}),s=o.title||(0,eu.A)(o.name),d={type:"workspace-summary",auth:l[0].auth,basePath:(t=n,i=o.basePath,`/${[t,i||""].map(e=>e.replace(/^\/+/g,"").replace(/\/+$/g,"")).filter(Boolean).join("/")}`),dataset:o.dataset,apiHost:o.apiHost,schema:l[0].schema,i18n:l[0].i18n,customIcon:!!o.icon,icon:function(e,t,n=""){return(0,tU.isValidElementType)(e)?(0,v.jsx)(e,{}):(0,_.isValidElement)(e)?e:YO(t,n)}(o.icon,s,`${o.projectId} ${o.dataset}`),name:o.name||"default",projectId:o.projectId,theme:o.theme||I.Qx,title:s,subtitle:o.subtitle,__internal:{sources:l},...r};return et2.set(e,d),d})}}function et0(e){let t,n=(0,j.c)(7),{projectId:i,dataset:r,schema:a,currentUser:o,getClient:l,i18n:s}=e;return n[0]!==o||n[1]!==r||n[2]!==l||n[3]!==s||n[4]!==i||n[5]!==a?(t={projectId:i,dataset:r,schema:a,currentUser:o,getClient:l,i18n:s},n[0]=o,n[1]=r,n[2]=l,n[3]=s,n[4]=i,n[5]=a,n[6]=t):t=n[6],t}function et7(e){let{projectId:t,dataset:n,schema:i,currentUser:r,getClient:a,i18n:o}=e;return{projectId:t,dataset:n,schema:i,currentUser:r,getClient:a,i18n:o}}function et3(e){let t,n,i=(0,j.c)(8),{config:r,children:a,basePath:o,LoadingComponent:l}=e;i[0]!==o||i[1]!==r?(t=et5(r,{basePath:o}),i[0]=o,i[1]=r,i[2]=t):t=i[2];let s=(0,_.useDeferredValue)(t.workspaces,null);if(null===s){let e;return i[3]!==l?(e=(0,v.jsx)(l,{}),i[3]=l,i[4]=e):e=i[4],e}return i[5]!==a||i[6]!==s?(n=(0,v.jsx)(S.WB.Provider,{value:s,children:a}),i[5]=a,i[6]=s,i[7]=n):n=i[7],n}function et8(e){let t,n=(0,j.c)(3),{children:i,history:r}=e;return n[0]!==i||n[1]!==r?(t=(0,v.jsx)(S.Nv.Provider,{value:r,children:i}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t}let et4=(0,_.memo)(function(e){let t,n,i,r=(0,j.c)(9),{children:a,history:o,activeWorkspace:l,setActiveWorkspace:s}=e;r[0]!==l||r[1]!==s?(t={activeWorkspace:l,setActiveWorkspace:s},r[0]=l,r[1]=s,r[2]=t):t=r[2];let d=t;return r[3]!==a||r[4]!==o?(n=(0,v.jsx)(et8,{history:o,children:a}),r[3]=a,r[4]=o,r[5]=n):n=r[5],r[6]!==n||r[7]!==d?(i=(0,v.jsx)(S.ZC.Provider,{value:d,children:n}),r[6]=n,r[7]=d,r[8]=i):i=r[8],i});function et6(e,t){if(e.type!==t.type)return!1;switch(e.type){case"match":return e.workspace===t.workspace;case"redirect":return e.pathname===t.pathname;case"not-found":return!0;default:throw Error(`Unknown type: ${e.type}`)}}function et9(e){let t,n,i,r,a,o=(0,j.c)(25),{children:l,LoadingComponent:s,NotFoundComponent:d,unstable_history:c}=e,u=rc();o[0]!==c?(t=c||(typeof document>"u"?(0,iP.sC)():(0,iP.zR)()),o[0]=c,o[1]=t):t=o[1];let p=t;o[2]!==p||o[3]!==u?(n=e=>{let t=u.find(t=>t.name===e);t&&p.push(t.basePath)},o[2]=p,o[3]=u,o[4]=n):n=o[4];let m=n;o[5]!==m||o[6]!==u[0].name?(i=()=>{m(u[0].name)},o[5]=m,o[6]=u[0].name,o[7]=i):i=o[7];let h=i,f=function(e,t){let n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(18),m=((c=(0,j.c)(2))[0]!==t?(d=t.map(e=>{let t=e.basePath||"/";return{workspace:e,name:e.name,basePath:t,basePathRegex:RegExp(`^${(0,eS.A)(t)}(\\/|$)`,"i")}}),c[0]=t,c[1]=d):d=c[1],d);p[0]!==m?(u=m.map(e=>e.basePath.slice(1).split("/")).reduce((e,t)=>
1705{for(let n=0;n<e.length;n++)if(e[n]!==t[n].toLowerCase())return e.slice(0,n);return e}),n=RegExp(`^${function e([t,...n]){return t?`(\\/${(0,eS.A)(t)}${e(n)}(\\/|$))?`:""}(u)}$`,"i"),p[0]=m,p[1]=n):n=p[1];let h=n;p[2]!==e.location.pathname?(i=()=>e.location.pathname,p[2]=e.location.pathname,p[3]=i):i=p[3];let[f]=(0,_.useState)(i);p[4]!==e?(r=t=>e.listen(t),p[4]=e,p[5]=r):r=p[5],p[6]!==e.location.pathname?(a=()=>e.location.pathname,p[6]=e.location.pathname,p[7]=a):a=p[7],p[8]!==f?(o=()=>f,p[8]=f,p[9]=o):o=p[9],p[10]!==h||p[11]!==m?(l=e=>(function({pathname:e,workspaces:t,basePathRegex:n}){let[i]=t;for(let{workspace:n,basePath:i,basePathRegex:r}of t)if(r.test(e)||"/"===i)return{type:"match",workspace:n};return"/"===e||n.test(e)?{type:"redirect",pathname:i.basePath}:{type:"not-found"}})({basePathRegex:h,pathname:e,workspaces:m}),p[10]=h,p[11]=m,p[12]=l):l=p[12],p[13]!==r||p[14]!==a||p[15]!==o||p[16]!==l?(s={subscribe:r,getSnapshot:a,getServerSnapshot:o,selector:l,isEqual:et6},p[13]=r,p[14]=a,p[15]=o,p[16]=l,p[17]=s):s=p[17];let g=s;return(0,iR.useSyncExternalStoreWithSelector)(g.subscribe,g.getSnapshot,g.getServerSnapshot,g.selector,g.isEqual)}(p,u);switch(o[8]!==p||o[9]!==f.pathname||o[10]!==f.type?(r=()=>{"redirect"===f.type&&p.replace(f.pathname)},o[8]=p,o[9]=f.pathname,o[10]=f.type,o[11]=r):r=o[11],o[12]!==p||o[13]!==f?(a=[p,f],o[12]=p,o[13]=f,o[14]=a):a=o[14],(0,_.useEffect)(r,a),f.type){case"match":{let e;return o[15]!==l||o[16]!==p||o[17]!==f.workspace||o[18]!==m?(e=(0,v.jsx)(et4,{activeWorkspace:f.workspace,history:p,setActiveWorkspace:m,children:l}),o[15]=l,o[16]=p,o[17]=f.workspace,o[18]=m,o[19]=e):e=o[19],e}case"redirect":{let e;return o[20]!==s?(e=(0,v.jsx)(s,{}),o[20]=s,o[21]=e):e=o[21],e}case"not-found":{let e;return o[22]!==d||o[23]!==h?(e=(0,v.jsx)(d,{onNavigateToDefaultWorkspace:h}),o[22]=d,o[23]=h,o[24]=e):e=o[24],e}default:throw Error(`Unknown type: ${f.type}`)}}function ene(e){switch(e){case"dark":case"light":return e;default:return"system"}}let ent=new Set,enn=e=>(i||(i=ene(localStorage.getItem("sanityStudio:ui:colorScheme"))||"system"),ent.add(e),()=>{ent.delete(e)});function eni(){return i}function enr(e){for(let t of(i=ene(e),ent))t()}function ena(){return(0,I.Xy)()?"dark":"light"}function eno(e){let t,n=(0,j.c)(3),{children:i,scheme:r}=e,a=ena(),o="system"===r?a:r;return n[0]!==i||n[1]!==o?(t=(0,v.jsx)(I.NP,{scheme:o,theme:I.Qx,children:i}),n[0]=i,n[1]=o,n[2]=t):t=n[2],t}function enl(e){let t,n=(0,j.c)(7),{children:i,onSchemeChange:r,scheme:a}=e;if(a){let e;return n[0]!==i||n[1]!==r||n[2]!==a?(e=(0,v.jsx)(enc,{scheme:a,onSchemeChange:r,children:i}),n[0]=i,n[1]=r,n[2]=a,n[3]=e):e=n[3],e}return n[4]!==i||n[5]!==r?(t=(0,v.jsx)(ens,{onSchemeChange:r,children:i}),n[4]=i,n[5]=r,n[6]=t):t=n[6],t}function ens(e){let t,n,i,r,a=(0,j.c)(10),{children:o,onSchemeChange:l}=e,s=(0,_.useSyncExternalStore)(enn,eni,end);return a[0]!==l||a[1]!==s?(t=()=>{"function"==typeof l&&l(s),localStorage.setItem("sanityStudio:ui:colorScheme",s)},n=[l,s],a[0]=l,a[1]=s,a[2]=t,a[3]=n):(t=a[2],n=a[3]),(0,_.useEffect)(t,n),a[4]!==o||a[5]!==s?(i=(0,v.jsx)(eno,{scheme:s,children:o}),a[4]=o,a[5]=s,a[6]=i):i=a[6],a[7]!==s||a[8]!==i?(r=(0,v.jsx)(S.RU.Provider,{value:enr,children:(0,v.jsx)(S.fG.Provider,{value:s,children:i})}),a[7]=s,a[8]=i,a[9]=r):r=a[9],r}function end(){return"system"}function enc(e){let t,n,i,r=(0,j.c)(9),{children:a,onSchemeChange:o,scheme:l}=e,s="function"==typeof o&&o;return r[0]!==a||r[1]!==l?(t=(0,v.jsx)(eno,{scheme:l,children:a}),r[0]=a,r[1]=l,r[2]=t):t=r[2],r[3]!==l||r[4]!==t?(n=(0,v.jsx)(S.fG.Provider,{value:l,children:t}),r[3]=l,r[4]=t,r[5]=n):n=r[5],r[6]!==s||r[7]!==n?(i=(0,v.jsx)(S.RU.Provider,{value:s,children:n}),r[6]=s,r[7]=n,r[8]=i):i=r[8],i}function enu(){let e=(0,_.useContext)(S.RU);if(null===e)throw Error("Could not find `ColorSchemeSetValueContext` context");return e}function enp(){let e=(0,_.useContext)(S.fG);if(null===e)throw Error("Could not find `ColorSchemeValueContext` context");return e}function enm(){let e=enp(),t=ena();return"system"===e?t:e}function enh(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(37),g=enp();f[0]!==t?(n=t("user-menu.color-scheme.system-title"),f[0]=t,f[1]=n):n=f[1],f[2]!==t?(i=t("user-menu.color-scheme.system-description"),f[2]=t,f[3]=i):i=f[3];let y="system"===g;f[4]!==e?(r=()=>e("system"),f[4]=e,f[5]=r):r=f[5],f[6]!==n||f[7]!==i||f[8]!==y||f[9]!==r?(a={title:n,name:"system",label:i,selected:y,onSelect:r,icon:eT.eZO},f[6]=n,f[7]=i,f[8]=y,f[9]=r,f[10]=a):a=f[10],f[11]!==t?(o=t("user-menu.color-scheme.dar
1705k-title"),f[11]=t,f[12]=o):o=f[12],f[13]!==t?(l=t("user-menu.color-scheme.dark-description"),f[13]=t,f[14]=l):l=f[14];let C="dark"===g;f[15]!==e?(s=()=>e("dark"),f[15]=e,f[16]=s):s=f[16],f[17]!==o||f[18]!==l||f[19]!==C||f[20]!==s?(d={title:o,name:"dark",label:l,selected:C,onSelect:s,icon:eT.rRK},f[17]=o,f[18]=l,f[19]=C,f[20]=s,f[21]=d):d=f[21],f[22]!==t?(c=t("user-menu.color-scheme.light-title"),f[22]=t,f[23]=c):c=f[23],f[24]!==t?(u=t("user-menu.color-scheme.light-description"),f[24]=t,f[25]=u):u=f[25];let x="light"===g;return f[26]!==e?(p=()=>e("light"),f[26]=e,f[27]=p):p=f[27],f[28]!==c||f[29]!==u||f[30]!==x||f[31]!==p?(m={title:c,name:"light",label:u,selected:x,onSelect:p,icon:eT.gLX},f[28]=c,f[29]=u,f[30]=x,f[31]=p,f[32]=m):m=f[32],f[33]!==m||f[34]!==a||f[35]!==d?(h=[a,d,m],f[33]=m,f[34]=a,f[35]=d,f[36]=h):h=f[36],h}let enf=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l=(0,j.c)(12),{onClick:s}=e,{t:d}=as();return l[0]!==d?(n=d("search.action-open-aria-label"),l[0]=d,l[1]=n):n=l[1],l[2]!==d?(i=d("search.button.tooltip"),l[2]=d,l[3]=i):i=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(r=[Ve,"K"],l[4]=r):r=l[4],l[5]!==i?(a={content:i,hotkeys:r,portal:!0}
1705,l[5]=i,l[6]=a):a=l[6],l[7]!==s||l[8]!==t||l[9]!==n||l[10]!==a?(o=(0,v.jsx)(tL.$n,{"aria-label":n,"data-testid":"studio-search",icon:eT.WIv,tooltipProps:a,onClick:s,mode:"bleed",ref:t}),l[7]=s,l[8]=t,l[9]=n,l[10]=a,l[11]=o):o=l[11],o}),eng=(0,eI.I4)(I.Zp).withConfig({displayName:"InnerCard",componentId:"sc-1tllvnd-0"})`flex-direction:column;overflow:hidden;overflow:clip;pointer-events:all;position:relative;`,eny=(0,eI.I4)(I.az).withConfig({displayName:"SearchDialogBox",componentId:"sc-1tllvnd-1"})`height:100%;left:0;overflow:hidden;overflow:clip;pointer-events:none;position:fixed;top:0;width:100%;z-index:1;`;function enC(e){let t,n,i,r=(0,j.c)(15),{onClose:a,onOpen:o,open:l}=e,[s,d]=(0,_.useState)(null),c=enm(),{state:u}=Vn(),{filtersVisible:p,terms:m}=u;r[0]!==m?(t=Vi({terms:m}),r[0]=m,r[1]=t):t=r[1];let h=t;return r[2]!==p||r[3]!==h||r[4]!==s||r[5]!==a||r[6]!==l||r[7]!==c?(n=l&&(0,v.jsx)(I.ZL,{children:(0,v.jsx)(tq.Ay,{autoFocus:!r6,returnFocus:!0,children:(0,v.jsx)(eny,{children:(0,v.jsxs)(eng,{display:"flex",height:"fill",scheme:c,tone:"default",children:[(0,v.jsx)(Mz,{onClose:a,ref:d}),p&&(0,v.jsx)(I.Zp,{borderTop:!0,flex:"none",children:(0,v.jsx)(Mi,{})}),h?(0,v.jsx)(MK,{inputElement:s}):(0,v.jsx)(ME,{inputElement:s})]})})})}),r[2]=p,r[3]=h,r[4]=s,r[5]=a,r[6]=l,r[7]=c,r[8]=n):n=r[8],r[9]!==h||r[10]!==a||r[11]!==o||r[12]!==l||r[13]!==n?(i=(0,v.jsx)(Vo,{hasValidTerms:h,onClose:a,onOpen:o,open:l,children:n}),r[9]=h,r[10]=a,r[11]=o,r[12]=l,r[13]=n,r[14]=i):i=r[14],i}let enx=e=>{let t,n=(0,j.c)(1),{children:i,capability:r,condition:a}=e,o=void 0===a?"unavailable":a,l=cg();n[0]===Symbol.for("react.memo_cache_sentinel")?(t={},n[0]=t):t=n[0];let s=!0===(0,tF.J)(l.capabilities,t)[r];return"available"===o&&!s||"unavailable"===o&&s?null:i},enb=(0,_.forwardRef)(function(e,t){let n,i,r,a,o=(0,j.c)(9);o[0]!==e?({name:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n?(r=()=>({tool:n,[n]:void 0}),o[3]=n,o[4]=r):r=o[4];let l=(0,nU.ks)(r);return o[5]!==t||o[6]!==i||o[7]!==l?(a=(0,v.jsx)(nU.s8,{state:l,...i,ref:t}),o[5]=t,o[6]=i,o[7]=l,o[8]=a):a=o[8],a}),env=(0,eI.AH)` 1706 position: relative; 1707 cursor: default; 1708 &::before { 1709 content: ''; 1710 position: absolute; 1711 display: block; 1712 inset: -4px; 1713 border-radius: 9999px; 1714 } 1715`,enj=eI.I4.div.withConfig({displayName:"Dot",componentId:"sc-1wfug2b-0"})({width:4,height:4,borderRadius:3,boxShadow:"0 0 0 1px var(--card-bg-color)"}),enw=(0,eI.I4)(enb).withConfig({displayName:"OversizedButton",componentId:"sc-1wfug2b-1"})`${env}`;function en_(){let e,t,n,i,r=(0,j.c)(10),{t:a}=as(),{errorCount$:o}=cF(),l=0!==(0,tF.J)(o),s=(0,nU.ks)(enk);r[0]!==a?(e=a("release.navbar.tooltip"),r[0]=a,r[1]=e):e=r[1];let d=s===F0;return r[2]!==l?(t=l&&(0,v.jsx)(enj,{"data-ui":"error-status-icon",style:{backgroundColor:"var(--card-badge-critical-dot-color)"}}),r[2]=l,r[3]=t):t=r[3],r[4]!==d||r[5]!==t?(n=(0,v.jsx)(I.$n,{as:enw,name:F0,"data-as":"a",icon:eT.CTc,mode:"bleed",padding:2,radius:"full","data-testid":"releases-tool-link",selected:d,children:t}),r[4]=d,r[5]=t,r[6]=n):n=r[6],r[7]!==e||r[8]!==n?(i=(0,v.jsx)(tL.m_,{content:e,children:n}),r[7]=e,r[8]=n,r[9]=i):i=r[9],i}function enk(e){return"string"==typeof e.tool?e.tool:void 0}let enS=(0,eI.I4)(nU.RZ).withConfig({displayName:"OversizedButton",componentId:"sc-1pt35p9-0"})`${env}`;function enI(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(18),{children:p,text:m}=e,h=(0,_.useRef)(null),[f,g]=(0,_.useState)(null),[y,C]=(0,_.useState)(!1);u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{h.current&&g(h.current.offsetWidth)},u[0]=t):t=u[0],u[1]!==m?(n=[m],u[1]=m,u[2]=n):n=u[2],(0,_.useLayoutEffect)(t,n),u[3]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{C(!0)},u[3]=i):i=u[3];let x=i;u[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{C(!1)},u[4]=r):r=u[4];let b=r,w=null===f?"auto":f,k=y?"hidden":"visible";u[5]!==w||u[6]!==k?(a={display:"inline-block",width:w,overflow:k},u[5]=w,u[6]=k,u[7]=a):a=u[7];let S=f||"auto";return u[8]!==S?(o={width:S},u[8]=S,u[9]=o):o=u[9],u[10]===Symbol.for("react.memo_cache_sentinel")?(l={type:"spring",bounce:0,duration:.3},u[10]=l):l=u[10],u[11]===Symbol.for("react.memo_cache_sentinel")?(s={display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},u[11]=s):s=u[11],u[12]!==p?(d=(0,v.jsx)("div",{ref:h,style:s,children:p}),u[12]=p,u[13]=d):d=u[13],u[14]!==d||u[15]!==a||u[16]!==o?(c=(0,v.jsx)(ir.P.div,{style:a,animate:o,transition:l,onAnimationStart:x,onAnimationComplete:b,children:d}),u[14]=d,u[15]=a,u[16]=o,u[17]=c):c=u[17],c}let enT=e=>{let t,n,i,r,a=(0,j.c)(10),{selectedPerspective:o}=e,{t:l}=as();a[0]!==o._id?(t=(0,_.forwardRef)(function(e,t){let{children:n,...i}=e;return(0,v.jsx)(enS,{...i,ref:t,intent:Ni,params:{id:cN(o._id)},children:n})}),a[0]=o._id,a[1]=t):t=a[1];let s=t,d=o.metadata?.title;return a[2]!==l?(n=l("release.placeholder-untitled-release"),a[2]=l,a[3]=n):n=a[3],a[4]!==s?(i=e=>{let{displayTitle:t}=e;return(0,v.jsx)(I.$n,{as:s,"data-as":"a",rel:"noopener noreferrer",mode:"bleed",padding:2,radius:"full",style:{maxWidth:"180px"},text:t})},a[4]=s,a[5]=i):i=a[5],a[6]!==d||a[7]!==n||a[8]!==i?(r=(0,v.jsx)(ug,{title:d,fallback:n,children:i}),a[6]=d,a[7]=n,a[8]=i,a[9]=r):r=a[9],r};function enE(e){let t,n,i=(0,j.c)(6),{selectedPerspective:r}=e,{t:a}=as(),o=rG(r)?r._id:r;return i[0]!==r||i[1]!==a?(t=uS(r)||uI(r)?(0,v.jsx)(I.az,{padding:2,style:{userSelect:"none",overflow:"hidden"},children:(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:a(uS(r)?"release.chip.published":"release.chip.global.drafts")})}):rG(r)?(0,v.jsx)(enT,{selectedPerspective:r}):(0,v.jsx)(I.az,{padding:2,style:{userSelect:"none",overflow:"hidden"},children:(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:r})}),i[0]=r,i[1]=a,i[2]=t):t=i[2],i[3]!==o||i[4]!==t?(n=(0,v.jsx)(enI,{text:o,children:t}),i[3]=o,i[4]=t,i[5]=n):n=i[5],n}let en$="--card-border-color",enA=eI.I4.div.withConfig({displayName:"GlobalPerspectiveMenuItemIndicator",componentId:"sc-fhv8td-0"})(({$inRange:e,$last:t,$first:n,$isDefaultPerspective:i})=>(0,eI.AH)` 1716 position: relative; 1717 1718 --indicator-left: ${18}px; 1719 --indicator-width: ${5}px; 1720 --indicator-color: var(${en$}); 1721 --indicator-bottom: ${4}px; 1722 1723 --indicator-in-range-height: 16.5px; 1724 1725 ${e&&!t&&(0,eI.AH)` 1726 &:after { 1727 content: ''; 1728 display: block; 1729 position: absolute; 1730 left: var(--indicator-left); 1731 bottom: -var(--indicator-bottom); 1732 width: var(--indicator-width); 1733 height: ${i?"calc(var(--indicator-bottom) + 12px)":"var(--indicator-bottom)"}; 1734 background-color: var(--card-border-color); 1735 } 1736 `} 1737 1738 ${e&&(0,eI.AH)` 1739 > [data-ui='MenuItem'] { 1740 position: relative; 1741 1742 &:before, 1743 &:after { 1744 content: ''; 1745 display: block; 1746 position: absolute; 1747 left: var(--indicator-left); 1748 width: var(--indicator-width); 1749 background-color: var(--card-border-color); 1750 } 1751 1752 &:before { 1753 top: 0; 1754 height: var(--indicator-in-range-height); 1755 } 1756 1757 &:after { 1758 top: var(--indicator-in-range-height); 1759 bottom: 0; 1760 } 1761 } 1762 `} 1763 1764 ${n&&(0,eI.AH)` 1765 > [data-ui='MenuItem']:after { 1766 margin-top: -3px; 1767 border-top-left-radius: ${5}px; 1768 border-top-right-radius: ${5}px; 1769 } 1770 > [data-ui='MenuItem']:before { 1771 display: none; 1772 } 1773 `} 1774 1775 ${t&&(0,eI.AH)` 1776 > [data-ui='MenuItem']:before { 1777 // dot diameter (5px) - 1.6px stroke divided by 2 1778 padding-bottom: 1.7px; 1779 border-bottom-left-radius: ${5}px; 1780 border-bottom-right-radius: ${5}px; 1781 } 1782 > [data-ui='MenuItem']:after { 1783 display: none; 1784 } 1785 `} 1786 `),enD=(0,eI.I4)(I.az).withConfig({displayName:"GlobalPerspectiveMenuLabelIndicator",componentId:"sc-fhv8td-1"})(({$withinRange:e})=>(0,eI.AH)` 1787 position: relative; 1788 // 4px padding + 33px release indicator width + 4px gap 1789 padding-left: 41px; 1790 1791 ${e&&(0,eI.AH)` 1792 &:before { 1793 content: ''; 1794 display: block; 1795 position: absolute; 1796 left: ${18}px; 1797 top: 0; 1798 bottom: -${4}px; 1799 width: ${5}px; 1800 background-color: var(${en$}); 1801 } 1802 `} 1803 `),enz=(0,eI.I4)(I.$n).withConfig({displayName:"ToggleLayerButton",componentId:"sc-12cs1nb-0"})(({$visible:e})=>(0,eI.AH)` 1804 --card-fg-color: inherit; 1805 --card-icon-color: inherit; 1806 1807 background-color: inherit; 1808 opacity: ${+!e}; 1809 1810 @media (hover: hover) { 1811 &:not([data-disabled='true']):hover { 1812 --card-fg-color: inherit; 1813 --card-icon-color: inherit; 1814 } 1815 } 1816 1817 [data-ui='MenuItem']:hover & { 1818 opacity: 1; 1819 } 1820 `),enP=()=>{let e,t,n=(0,j.c)(2);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={opacity:0}
1820,n[0]=e):e=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.Zy4,{style:e})})}),n[1]=t):t=n[1],t};function enR(e,t){let{lastIndex:n}=e;if(0!==n){if(0===t)return"first";if(t===n)return"last";if(t>0&&t<n)return"within"}}let enN=(0,_.forwardRef)((e,t)=>{let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,_,k=(0,j.c)(66),{release:S,rangePosition:T}=e,{document:E}=cY(),{drafts:$}=E,{enabled:A}=$,D=A?uy:uC,{selectedPerspective:z,selectedPerspectiveName:P}=a3(),R=Rj(),{toggleExcludedPerspective:N,isPerspectiveExcluded:O}=function(){let e,t,n,i=(0,j.c)(9),{navigate:r}=(0,nU.rd)(),{excludedPerspectives:a}=a3();i[0]!==a||i[1]!==r?(e=e=>{let t=a||[];r({stickyParams:{excludedPerspectives:(t.includes(e)?t.filter(t=>t!==e):[...t,e]).toString()}})},i[0]=a,i[1]=r,i[2]=e):e=i[2];let o=e;i[3]!==a?(t=e=>!!a?.includes(e),i[3]=a,i[4]=t):t=i[4];let l=t;return i[5]!==a||i[6]!==l||i[7]!==o?(n={excludedPerspectives:a,toggleExcludedPerspective:o,isPerspectiveExcluded:l},i[5]=a,i[6]=l,i[7]=o,i[8]=n):n=i[8],n}();k[0]!==S?(n=rG(S)?cN(S._id):S,k[0]=S,k[1]=n):n=k[1];let V=n,M=S===D,L=P?V===P:M;k[2]!==O||k[3]!==V?(i=O(V),k[2]=O,k[3]=V,k[4]=i):i=k[4];let F=i,{t:B}=as();k[5]!==V||k[6]!==N?(r=e=>{e.stopPropagation(),N(V)},k[5]=V,k[6]=N,k[7]=r):r=k[7];let Y=r;k[8]!==V||k[9]!==R?(a=()=>R(V),k[8]=V,k[9]=R,k[10]=a):a=k[10];let H=a;e:{let e;if("published"===S){o=!1;break e}if(uI(S)){let e;k[11]!==z?(e=rG(z),k[11]=z,k[12]=e):e=k[12],o=e;break e}if(uT(S)){o=!1;break e}k[13]!==T?(e=T&&["first","within"].includes(T),k[13]=T,k[14]=e):e=k[14],o=e}let U=o,Z="first"===T,q="last"===T,W=!!T,J=`release-${V}`;k[15]!==e.menuItemProps||k[16]!==S?(l=e.menuItemProps?.({perspective:S}),k[15]=e.menuItemProps,k[16]=S,k[17]=l):l=k[17],k[18]===Symbol.for("react.memo_cache_sentinel")?(s={position:"relative",zIndex:1},k[18]=s):s=k[18],k[19]!==F||k[20]!==S?(d=(0,v.jsx)(I.az,{flex:"none",style:s,children:(0,v.jsx)(I.EY,{size:1,children:F?(0,v.jsx)(enP,{}):(0,v.jsx)(RL,{tone:uA(S)})})}),k[19]=F,k[20]=S,k[21]=d):d=k[21];let K=F?.5:void 0;return k[22]!==K?(c={opacity:K,maxWidth:"200px",minWidth:0},k[22]=K,k[23]=c):c=k[23],k[24]===Symbol.for("react.memo_cache_sentinel")?(u={minWidth:0},k[24]=u):u=k[24],k[25]!==S||k[26]!==B?(p=rG(S)?(0,v.jsx)(ug,{title:S.metadata.title,fallback:B("release.placeholder-untitled-release"),textProps:{size:1,weight:"medium",style:{minWidth:0}}}):(0,v.jsx)(I.EY,{size:1,weight:"medium",style:{minWidth:0},children:B(uI(S)?"release.navbar.drafts":"release.navbar.published")}),k[25]=S,k[26]=B,k[27]=p):p=k[27],k[28]!==S?(m=rG(S)&&"u">typeof S.error&&"active"===S.state&&(0,v.jsx)(I.EY,{size:1,"data-testid":"release-error-icon",children:(0,v.jsx)(NF,{icon:eT.YZv,tone:"critical"})}),k[28]=S,k[29]=m):m=k[29],k[30]!==p||k[31]!==m?(h=(0,v.jsxs)(I.so,{gap:3,align:"center",style:u,children:[p,m]}),k[30]=p,k[31]=m,k[32]=h):h=k[32],k[33]!==S?(f=rG(S)&&"scheduled"===S.metadata.releaseType&&(S.publishAt||S.metadata.intendedPublishAt)&&(0,v.jsx)(I.EY,{muted:!0,size:1,children:uk(S)}),k[33]=S,k[34]=f):f=k[34],k[35]!==c||k[36]!==h||k[37]!==f?(g=(0,v.jsxs)(I.BJ,{flex:1,paddingY:2,paddingRight:2,space:2,style:c,children:[h,f]}),k[35]=c,k[36]=h,k[37]=f,k[38]=g):g=k[38],k[39]!==U||k[40]!==Y||k[41]!==F||k[42]!==B?(y=U&&(0,v.jsx)(tL.m_,{portal:!0,content:B("release.layer.hide"),placement:"bottom",children:(0,v.jsx)(enz,{$visible:!F,forwardedAs:"div",icon:F?eT.V$C:eT.N5q,mode:"bleed",onClick:Y,padding:2,"data-testid":"release-toggle-visibility"})}),k[39]=U,k[40]=Y,k[41]=F,k[42]=B,k[43]=y):y=k[43],k[44]!==S?(C=rG(S)&&uT(S)&&(0,v.jsx)(I.az,{padding:2,children:(0,v.jsx)(I.EY,{size:1,"data-testid":"release-lock-icon",children:(0,v.jsx)(eT.XAi,{})})}),k[44]=S,k[45]=C):C=k[45],k[46]!==y||k[47]!==C?(x=(0,v.jsxs)(I.az,{flex:"none",children:[y,C]}),k[46]=y,k[47]=C,k[48]=x):x=k[48],k[49]!==d||k[50]!==g||k[51]!==x?(b=(0,v.jsxs)(I.so,{align:"flex-start",gap:1,children:[d,g,x]}),k[49]=d,k[50]=g,k[51]=x,k[52]=b):b=k[52],k[53]!==L||k[54]!==H||k[55]!==J||k[56]!==l||k[57]!==b?(w=(0,v.jsx)(I.Dr,{onClick:H,padding:1,pressed:L,"data-testid":J,...l,children:b}),k[53]=L,k[54]=H,k[55]=J,k[56]=l,k[57]=b,k[58]=w):w=k[58],k[59]!==M||k[60]!==t||k[61]!==w||k[62]!==Z||k[63]!==q||k[64]!==W?(_=(0,v.jsx)(enA,{$isDefaultPerspective:M,$first:Z,$last:q,$inRange:W,ref:t,children:w}),k[59]=M,k[60]=t,k[61]=w,k[62]=Z,k[63]=q,k[64]=W,k[65]=_):_=k[65],_});enN.displayName="GlobalPerspectiveMenuItem";let enO={asap:"release.type.asap",scheduled:"release.type.scheduled",undecided:"release.type.undecided"};function enV(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(29),{releaseType:c,releases:u,range:p,currentGlobalBundleMenuItemRef:m,menuItemProps:h}=e,{t:f}=as(),{selectedReleaseId:g}=a3();d[0]!==m||d[1]!==g?(t=e=>g===e?m:void 0,d[0]=m,d[1]=g,d[2]=t):t=d[2];let y=t;if(0===u.length)return null;let{lastIndex:C,offsets:x}=p,b=x[c],w=b>0&&C>=b,_="asap"===c?1:4;d[3]===Symbol.for("react.memo_cache_sentinel")?(n={textTransform:"uppercase"},d[3]=n):n=d[3];let k=enO[c];if(d[4]!==f||d[5]!==k?(i=f(k),d[4]=f,d[5]=k,d[6]=i):i=d[6],d[7]!==i?(r=(0,v.jsx)(I.JU,{muted:!0,style:n,size:1,children:i}),d[7]=i,d[8]=r):r=d[8],d[9]!==w||d[10]!==_||d[11]!==r?(a=(0,v.jsx)(enD,{$withinRange:w,paddingRight:2,paddingTop:_,paddingBottom:2,children:r}),d[9]=w,d[10]=_,d[11]=r,d[12]=a):a=d[12],d[13]!==y||d[14]!==h||d[15]!==p||d[16]!==b||d[17]!==u){let e;d[19]!==y||d[20]!==h||d[21]!==p||d[22]!==b?(e=(e,t)=>
1820(0,v.jsx)(enN,{release:e,ref:y(cN(e._id)),rangePosition:enR(p,b+t),menuItemProps:h},e._id),d[19]=y,d[20]=h,d[21]=p,d[22]=b,d[23]=e):e=d[23],o=u.map(e),d[13]=y,d[14]=h,d[15]=p,d[16]=b,d[17]=u,d[18]=o}else o=d[18];return d[24]!==o?(l=(0,v.jsx)(I.so,{direction:"column",gap:1,children:o}),d[24]=o,d[25]=l):l=d[25],d[26]!==l||d[27]!==a?(s=(0,v.jsxs)(v.Fragment,{children:[a,l]}),d[26]=l,d[27]=a,d[28]=s):s=d[28],s}let enM=(0,eI.I4)(nU.RZ).withConfig({displayName:"StyledLinkComponent",componentId:"sc-4l76h7-0"})`text-decoration:none;`,enL=()=>{let e,t,n,i,r,a=(0,j.c)(11),o=(0,nU.rd)(),{t:l}=as(),s=(0,tK.Jr)(),d=LO(),{enabled:c}=EY(EF),{document:u}=cY(),{drafts:p}=u,{enabled:m}=p;a[0]!==o?(e=o.resolveIntentLink(F1,{view:"drafts"}),a[0]=o,a[1]=e):e=a[1];let h=e;a[2]!==s?(t=()=>{s.log(LW,{source:"menu"})},a[2]=s,a[3]=t):t=a[3];let f=t;a[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,_.forwardRef)(function(e,t){return(0,v.jsx)(enM,{...e,intent:F1,params:{view:"drafts"},ref:t})}),a[4]=n):n=a[4];let g=n;return d&&c&&m?(a[5]!==l?(i=l("release.menu.scheduled-drafts"),a[5]=l,a[6]=i):i=a[6],a[7]!==f||a[8]!==h||a[9]!==i?(r=(0,v.jsx)(tL.Dr,{as:g,href:h,onClick:f,icon:eT.CTc,text:i,"data-testid":"scheduled-drafts-menu-item"}),a[7]=f,a[8]=h,a[9]=i,a[10]=r):r=a[10],r):null},enF=(0,eI.I4)(nU.RZ).withConfig({displayName:"StyledLinkComponent",componentId:"sc-1z0umyx-0"})`text-decoration:none;`,enB=()=>{let e,t,n,i,r,a=(0,j.c)(11),o=(0,nU.rd)(),{t:l}=as(),s=(0,tK.Jr)();a[0]!==o?(e=o.resolvePathFromState({tool:F0}),a[0]=o,a[1]=e):e=a[1];let d=e;a[2]!==s?(t=()=>{s.log(Lq,{source:"menu"})},a[2]=s,a[3]=t):t=a[3];let c=t;a[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,_.forwardRef)(function(e,t){return(0,v.jsx)(enF,{...e,intent:Ni,params:{source:"menu"},ref:t})}),a[4]=n):n=a[4];let u=n;return a[5]!==l?(i=l("release.menu.view-releases"),a[5]=l,a[6]=i):i=a[6],a[7]!==c||a[8]!==d||a[9]!==i?(r=(0,v.jsx)(tL.Dr,{as:u,href:d,onClick:c,icon:eT.CTc,text:i,"data-testid":"view-content-releases-menu-item"}),a[7]=c,a[8]=d,a[9]=i,a[10]=r):r=a[10],r},enY=["asap","scheduled","undecided"],enH=(0,eI.I4)(I.az).withConfig({displayName:"StyledBox",componentId:"sc-150hw49-0"})`overflow:auto;max-height:75vh;`,enU=(0,eI.I4)(I.az).withConfig({displayName:"StyledPublishedBox",componentId:"sc-150hw49-1"})(({$reducePadding:e,$removePadding:t})=>(0,eI.AH)` 1821 position: sticky; 1822 top: 0; 1823 background-color: var(--card-bg-color); 1824 z-index: 10; 1825 padding-bottom: ${t?"0px":e?"4px":"16px"}; 1826 `);function enZ(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(53),{areReleasesEnabled:f,setScrollContainer:g,onScroll:y,isRangeVisible:C,selectedPerspectiveName:x,handleOpenBundleDialog:b,scrollElementRef:w,menuItemProps:_}=e,{loading:k,data:S}=gU();h[0]!==S?(t=S.filter(enq),h[0]=S,h[1]=t):t=h[1];let T=t,{document:E}=cY(),{drafts:$}=E,{enabled:A}=$;h[2]!==T?(n=enY.reduce((e,t)=>({...e,[t]:T.filter(e=>{let{metadata:n}=e;return n.releaseType===t})}),{}),h[2]=T,h[3]=n):n=h[3];let D=n,z=typeof x>"u";if(h[4]!==A||h[5]!==z||h[6]!==x||h[7]!==D){let e,t;i=+!!z,h[10]!==A?(e=[uC,A?uy:[]].flat(),h[10]=A,h[11]=e):e=h[11];let n=e,{asap:a,scheduled:o}=D,l=n.length+a.length,s=n.length+a.length+o.length;h[12]!==n.length||h[13]!==l||h[14]!==s?(t={asap:n.length,scheduled:l,undecided:s},h[12]=n.length,h[13]=l,h[14]=s,h[15]=t):t=h[15],r=t,enY.forEach(e=>{let t=D[e],n=r[e];t.forEach((e,t)=>{x===cN(e._id)&&(i=n+t)})}),h[4]=A,h[5]=z,h[6]=x,h[7]=D,h[8]=i,h[9]=r}else i=h[8],r=h[9];h[16]!==i||h[17]!==r?(a={lastIndex:i,offsets:r},h[16]=i,h[17]=r,h[18]=a):a=h[18];let P=a;if(k){let e;return h[19]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.so,{padding:4,justify:"center","data-testid":"spinner",children:(0,v.jsx)(I.y$,{muted:!0})}),h[19]=e):e=h[19],e}let R=!T.length||!f,N=!f;return h[20]!==C||h[21]!==P?(o=C?enR(P,0):void 0,h[20]=C,h[21]=P,h[22]=o):o=h[22],h[23]!==_||h[24]!==o?(l=(0,v.jsx)(enN,{rangePosition:o,release:"published",menuItemProps:_}),h[23]=_,h[24]=o,h[25]=l):l=h[25],h[26]!==A||h[27]!==C||h[28]!==_||h[29]!==P?(s=A&&(0,v.jsx)(enN,{rangePosition:C?enR(P,1):void 0,release:uy,menuItemProps:_}),h[26]=A,h[27]=C,h[28]=_,h[29]=P,h[30]=s):s=h[30],h[31]!==s||h[32]!==R||h[33]!==N||h[34]!==l?(d=(0,v.jsxs)(enU,{$reducePadding:R,$removePadding:N,children:[l,s]}),h[31]=s,h[32]=R,h[33]=N,h[34]=l,h[35]=d):d=h[35],h[36]!==f||h[37]!==_||h[38]!==P||h[39]!==w||h[40]!==D?(c=f&&(0,v.jsx)(v.Fragment,{children:enY.map(e=>(0,v.jsx)(enV,{releaseType:e,releases:D[e],range:P,currentGlobalBundleMenuItemRef:w,menuItemProps:_},e))}),h[36]=f,h[37]=_,h[38]=P,h[39]=w,h[40]=D,h[41]=c):c=h[41],h[42]!==y||h[43]!==g||h[44]!==d||h[45]!==c?(u=(0,v.jsxs)(enH,{ref:g,onScroll:y,children:[d,c]}),h[42]=y,h[43]=g,h[44]=d,h[45]=c,h[46]=u):u=h[46],h[47]!==f||h[48]!==b?(p=f&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.Nj,{}),(0,v.jsx)(enL,{}),(0,v.jsx)(enB,{}),(0,v.jsx)(F9,{onCreateRelease:b})]}),h[47]=f,h[48]=b,h[49]=p):p=h[49],h[50]!==u||h[51]!==p?(m=(0,v.jsxs)(v.Fragment,{children:[u,p]}),h[50]=u,h[51]=p,h[52]=m):m=h[52],m}function enq(e){return!rX(e)}let enW=(0,eI.I4)(I.W1).withConfig({displayName:"StyledMenu",componentId:"sc-3ke5c8-0"}
1826)`min-width:200px;max-width:320px;`,enJ=(0,eI.I4)(I.$n).withConfig({displayName:"OversizedButton",componentId:"sc-3ke5c8-1"})`${env}`;function enK(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(23),{selectedPerspectiveName:c,areReleasesEnabled:u,menuItemProps:p}=e,m=void 0===u||u,[h,f]=(0,_.useState)(!1),{handleOpenDialog:g,mode:y}=Rw(),C=(0,_.useRef)(null),{isRangeVisible:x,onScroll:b,resetRangeVisibility:w,setScrollContainer:k,scrollElementRef:S}=(()=>{let e,t,n,i,r=(0,j.c)(5),a=(0,_.useRef)(null),o=(0,_.useRef)(null),[l,s]=(0,_.useState)(!0);r[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>s(function(e,t){if(!e||!t)return!0;let n=e.getBoundingClientRect();return t.getBoundingClientRect().top>=n.top+65}(a.current,o.current)),r[0]=e):e=r[0];let d=e;r[1]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{a.current=e},r[1]=t):t=r[1];let c=t;r[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>s(!0),r[2]=n):n=r[2];let u=n;return r[3]!==l?(i={resetRangeVisibility:u,onScroll:d,isRangeVisible:l,setScrollContainer:c,scrollElementRef:o},r[3]=l,r[4]=i):i=r[4],i})();d[0]!==g||d[1]!==y?(t=()=>{"upsell"===y?g():f(!0)},d[0]=g,d[1]=y,d[2]=t):t=d[2];let I=t;d[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{f(!1)},d[3]=n):n=d[3];let T=n;return d[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(enJ,{"data-testid":"global-perspective-menu-button",iconRight:eT.D3D,mode:"bleed",padding:2,radius:"full"}),d[4]=i):i=d[4],d[5]!==m||d[6]!==I||d[7]!==x||d[8]!==p||d[9]!==b||d[10]!==S||d[11]!==c||d[12]!==k?(r=(0,v.jsx)(enW,{"data-testid":"release-menu",ref:C,children:(0,v.jsx)(enZ,{areReleasesEnabled:m,setScrollContainer:k,onScroll:b,isRangeVisible:x,scrollElementRef:S,selectedPerspectiveName:c,handleOpenBundleDialog:I,menuItemProps:p})}),d[5]=m,d[6]=I,d[7]=x,d[8]=p,d[9]=b,d[10]=S,d[11]=c,d[12]=k,d[13]=r):r=d[13],d[14]===Symbol.for("react.memo_cache_sentinel")?(a={constrainSize:!0,fallbackPlacements:["bottom-end"],placement:"bottom-end",portal:!0,tone:"default",zOffset:3e3},d[14]=a):a=d[14],d[15]!==w||d[16]!==r?(o=(0,v.jsx)(tL.IU,{button:i,id:"releases-menu",onClose:w,menu:r,popover:a}),d[15]=w,d[16]=r,d[17]=o):o=d[17],d[18]!==h?(l=h&&(0,v.jsx)(LY,{onCancel:T,onSubmit:T,origin:"structure"}),d[18]=h,d[19]=l):l=d[19],d[20]!==o||d[21]!==l?(s=(0,v.jsxs)(v.Fragment,{children:[o,l]}),d[20]=o,d[21]=l,d[22]=s):s=d[22],s}let enG=(0,eI.I4)(I.Zp).withConfig({displayName:"ReleasesNavContainer",componentId:"sc-d4iobr-0"})`position:relative;display:flex;&:not([hidden]){display:flex;}align-items:center;gap:2px;padding:2px;margin:-3px 0;span:has(> [data-ui='error-status-icon']){position:absolute;top:6px;right:6px;padding:0;}a:hover,button:hover{position:relative;z-index:2;}`,enX=e=>{let t,n,i,r,a=(0,j.c)(13),{withReleasesToolButton:o,menuItemProps:l}=e,s=F3(),d=!!cY().releases?.enabled,{selectedPerspective:c,selectedPerspectiveName:u}=a3();a[0]!==s||a[1]!==o?(t=o&&s&&(0,v.jsx)(en_,{}),a[0]=s,a[1]=o,a[2]=t):t=a[2],a[3]!==c?(n=(0,v.jsx)(enE,{selectedPerspective:c}),a[3]=c,a[4]=n):n=a[4];let p=s&&d;return a[5]!==l||a[6]!==u||a[7]!==p?(i=(0,v.jsx)(enK,{selectedPerspectiveName:u,areReleasesEnabled:p,menuItemProps:l}),a[5]=l,a[6]=u,a[7]=p,a[8]=i):i=a[8],a[9]!==t||a[10]!==n||a[11]!==i?(r=(0,v.jsxs)(enG,{flex:"none",tone:"inherit",radius:"full","data-ui":"ReleasesNav",border:!0,children:[t,n,i]}),a[9]=t,a[10]=n,a[11]=i,a[12]=r):r=a[12],r};function enQ(e){let t,n=(0,j.c)(3),{activeTool:i}=e,r=i.component;return n[0]!==r||n[1]!==i?(t=(0,v.jsx)(r,{tool:i}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t}let en1=["sanity/schedules"];function en2(e){return!e.__internalApplicationType||!en1.includes(e.__internalApplicationType)}function en5(e){let t,n,i,r,a=(0,j.c)(9),{children:o}=e;a[0]===Symbol.for("react.memo_cache_sentinel")?(t={dataUri:"/journey/document-limit",feature:"document-limits"},a[0]=t):t=a[0];let l=$O(t);return a[1]!==l?(n=$N(l),a[1]=l,a[2]=n):n=a[2],a[3]!==n?(i=(0,v.jsx)($7,{...n}),a[3]=n,a[4]=i):i=a[4],a[5]!==o||a[6]!==l||a[7]!==i?(r=(0,v.jsxs)(S.Bk.Provider,{value:l,children:[o,i]}),a[5]=o,a[6]=l,a[7]=i,a[8]=r):r=a[8],r}let en0=()=>{let e=(0,_.useContext)(S.Bk);if(!e)throw Error("useDocumentLimitsUpsellContext must be used within a DocumentLimitUpsellProvider");return e};function en7(){let e,t,n,i,r,a,o=(0,j.c)(12),{upsellData:l,telemetryLogs:s}=en0();o[0]!==s?(e=()=>{s.panelPrimaryClicked()},o[0]=s,o[1]=e):e=o[1];let d=e;o[2]!==s?(t=()=>{s.panelSecondaryClicked()},o[2]=s,o[3]=t):t=o[3];let c=t;if(!l){let e;return o[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ry,{title:"Loading documents limit",showText:!0}),o[4]=e):e=o[4],e}return o[5]===Symbol.for("react.memo_cache_sentinel")?(n={opacity:0,scale:.95},i={opacity:1,scale:1},r={duration:.2},o[5]=n,o[6]=i,o[7]=r):(n=o[5],i=o[6],r=o[7]),o[8]!==d||o[9]!==c||o[10]!==l?(a=(0,v.jsx)(I.so,{height:"fill",width:"fill",justify:"center",align:"center",padding:4,children:(0,v.jsx)(ir.P.div,{initial:n,animate:i,transition:r,children:(0,v.jsx)(I.mc,{width:0,children:(0,v.jsx)(FP,{data:l,onPrimaryClick:d,onSecondaryClick:c})})})}),o[8]=d,o[9]=c,o[10]=l,o[11]=a):a=o[11],a}let en3=e=>e instanceof tM.MZ&&"documentLimitExceededError"===e.response.body.error.type,en8=(0,iu.i)("http1-performance-issues");function en4(){let e,t,n,i,r=(0,j.c)(4);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.sAQ,{})})}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.EY,{as:"h1",size:1,weight:"medium",children:"No configured tools"}),n=(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:"Please configure a tool in your Studio configuration."}),r[1]=t,r[2]=n):(t=r[1],n=r[2]),r[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(I.Zp,{height:"fill",children:(0,v.jsx)(I.so,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,v.jsx)(I.mc,{width:0,children:(0,v.jsx)(I.Zp,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,v.jsxs)(I.so,{children:[e,(0,v.jsxs)(I.BJ,{flex:1,marginLeft:3,space:3,children:[t,n,(0,v.jsx)(I.EY,{as:"p",muted:!0,size:1,children:(0,v.jsx)("a",{href:"https://www.sanity.io/docs/studio-tools",rel:"noreferrer",target:"_blank",children:"Learn how to add a tool â"})})]})]})})})})}),r[3]=i):i=r[3],i}function en6(e){let t,n,i=(0,j.c)(3),{reason:r}=e,a=void 0===r?"Redirectingâ¦":r;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.yBO,{})})}),i[0]=t):t=i[0],i[1]!==a?(n=(0,v.jsx)(I.Zp,{height:"fill",children:(0,v.jsx)(I.so,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,v.jsx)(I.mc,{width:0,children:(0,v.jsx)(I.Zp,{padding:4,radius:2,shadow:1,tone:"primary",children:(0,v.jsxs)(I.so,{children:[t,(0,v.jsx)(I.BJ,{flex:1,marginLeft:3,space:3,children:(0,v.jsx)(I.EY,{as:"h1",size:1,weight:"bold",children:a})})]})})})})}),i[1]=a,i[2]=n):n=i[2],n}function en9(e){let t,n,i=(0,j.c)(3),{toolName:r}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.sAQ,{})})}),i[0]=t):t=i[0],i[1]!==r?(n=(0,v.jsx)(I.Zp,{height:"fill",children:(0,v.jsx)(I.so,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,v.jsx)(I.mc,{width:0,children:(0,v.jsx)(I.Zp,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,v.jsxs)(I.so,{children:[t,(0,v.jsx)(I.BJ,{flex:1,marginLeft:3,space:3,children:(0,v.jsxs)(I.EY,{as:"h1",size:1,weight:"medium",children:["Tool not found: ",(0,v.jsx)("code",{children:r})]})})]})})})})}),i[1]=r,i[2]=n):n=i[2],n}let eie=()=>{let e;if(!(typeof document>"u")&&"querySelectorAll"in document)return Array.from(document.querySelectorAll('script[type="importmap"]')).some(t=>{if(!t.textContent)return!1;let n=JSON.parse(t.textContent).imports||{};
1826return"sanity"in n&&(e=n.sanity,!0)}),e};function eit(e){let t=[],n,i=(0,ix._)(e),r=async e=>i.send(e),a=async()=>{await Promise.all(t.map(r)).catch(e=>{console.error("Failed to send buffered events from transport: ",e)})};return{flush:async()=>i.flush(),send:async e=>n?r(e):(typeof n>"u"&&t.push(e),{}),setConsent:async e=>{n=e,e&&await a(),t=[]}}}let ein="https://[email protected]/4507342122123264",eii=!("__sanityErrorChannel"in rH),eir=r_&&!!localStorage.getItem("SANITY_DEBUG_ERROR_REPORTING"),eia="u">typeof window,eio={dsn:ein,release:tV.s,environment:dT?"development":"production",debug:eir,enabled:eia&&(!dT||eir),transport:eit},eil=[(0,ib.D)(),(0,iv.Z)(),(0,ij.G)({eventTarget:!1}),(0,iw.F)({console:!1}),(0,i_.L)({onerror:!0,onunhandledrejection:!0}),(0,ik.p)(),(0,iS.s)(),(C=[],{name:"SanityDedupe",processEvent(e){if(e.type)return e;try{if(function(e,t){for(let n of t){let t=eiu(e),i=eiu(n);if(t&&i&&t!==i)continue;let r=Math.floor(e.timestamp||0);if(300>Math.abs(r-Math.floor(n.timestamp||0)))return!0}return!1}(e,C))return eir&&console.warn("[sanity/sentry] Dropping error from being reported because it is a duplicate"),null}catch{}return C.length>10&&C.shift(),C.push(e),e}}),(0,iI.M)()],eis=Object.prototype.toString;function eid(e){switch(eis.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:var t=e,n=Error;try{return t instanceof n}catch{return!1}}}function eic(e){return function(e){for(let t of e.exception?.values||[])t.mechanism&&(t.mechanism.handled=!1)}(e),e}function eiu(e){if(e.message)return e.message;if(e.exception){for(let t of e.exception.values||[])if(t.value)return t.value}}let eip=function(){let e,t=[];function n(i,r={}){if(!e)return t.push({error:i,options:r}),null;let{reactErrorInfo:a={},errorBoundary:o}=r,{componentStack:l}=a,s={};l&&(s.react={componentStack:l});let d={handled:"no"};o&&(d.errorBoundary=o);let c=null;return(0,iE.v4)(()=>
1826{if(l&&eid(i)){var e,t;let n,r=Error(i.message);r.name=`${o||"ErrorBoundary"} ${i.name}`,r.stack=l,e=i,t=r,n=new WeakMap,function e(t,i){if(!n.has(t)){if(eid(t.cause)){n.set(t,!0),e(t.cause,i);return}t.cause=i}}(e,t)}c=(0,iT.Cp)(i,{mechanism:{handled:!1},captureContext:{contexts:s,tags:d}})}),c?{eventId:c}:null}function i(e){return!!e&&"setConsent"in e&&"function"==typeof e.setConsent}return{initialize:function(){(function(){if(e||!eir&&!eie()||!eir&&eii)return;let t=(0,iT.Dp)(),n=t&&(0,iE.KU)()?.getOptions().dsn===ein;if(t&&!n){e=(0,iE.KU)(),(0,iE.o5)();return}if(n){e=new i$.y({...eio,stackParser:iA.lG,integrations:eil,beforeSend:eic,transport:eit}),new iD.H().setClient(e),e.init();return}(0,iz.T)({...eio,defaultIntegrations:!1,integrations:eil,beforeSend:eic}),e=(0,iE.KU)(),(0,iE.o5)()})(),e&&t.length>0&&(t.forEach(({error:e,options:t})=>n(e,t)),t.length=0)},reportError:n,enable:function(){let t=e?.getTransport();i(t)&&t.setConsent(!0)},disable:function(){let t=e?.getTransport();i(t)&&t.setConsent(!1)}}}(),eim=["Failed to fetch dynamically imported module:","Importing a module script failed.","error loading dynamically imported module"];function eih(e){return"TypeError"===e.name&&eim.some(t=>e.message.toLowerCase().startsWith(t.toLowerCase()))}let eif=rE(e=>(0,e8.z)(e.map(e=>e.auth.state.pipe((0,eV.T)(t=>[e.name,t])))).pipe((0,eV.T)(e=>Object.fromEntries(e)))),eig={"logged-in":"","logged-out":"Signed out","no-access":""},eiy=eI.I4.div.withConfig({displayName:"Media",componentId:"sc-13u8s6k-0"})`width:${e=>"small"===e.$size?"25px":"41px"};height:${e=>"small"===e.$size?"25px":"41px"};border-radius:0.25rem;padding:0;svg{width:100%;height:100%;border-radius:inherit;}`,eiC=e=>{let t,n,i=(0,j.c)(5),{icon:r,size:a}=e,o=void 0===a?"small":a;i[0]!==r?(t=eix(r),i[0]=r,i[1]=t):t=i[1];let l=t;return i[2]!==l||i[3]!==o?(n=(0,v.jsx)(eiy,{$size:o,children:l}),i[2]=l,i[3]=o,i[4]=n):n=i[4],n},eix=e=>(0,tU.isValidElementType)(e)?(0,v.jsx)(e,{}):(0,_.isValidElement)(e)?e:void 0;function eib(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(21),{state:c,subtitle:u,selected:p,title:m,icon:h,iconRight:f}=e;d[0]!==f?(t=eix(f),d[0]=f,d[1]=t):t=d[1];let g=t;return d[2]!==h?(n=(0,v.jsx)(eiC,{icon:h,size:"small"}),d[2]=h,d[3]=n):n=d[3],d[4]!==m?(i=(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:m}),d[4]=m,d[5]=i):i=d[5],d[6]!==u?(r=u&&(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:u}),d[6]=u,d[7]=r):r=d[7],d[8]!==i||d[9]!==r?(a=(0,v.jsxs)(I.BJ,{flex:1,space:2,children:[i,r]}),d[8]=i,d[9]=r,d[10]=a):a=d[10],d[11]!==c?(o=c&&eig[c]&&(0,v.jsx)(I.az,{paddingLeft:1,children:(0,v.jsx)(I.EY,{size:1,muted:!0,textOverflow:"ellipsis",children:eig[c]})}),d[11]=c,d[12]=o):o=d[12],d[13]!==g||d[14]!==p?(l=(p||g)&&(0,v.jsxs)(I.so,{align:"center",gap:4,paddingLeft:3,paddingRight:2,children:[p&&(0,v.jsx)(I.EY,{children:(0,v.jsx)(eT.Nrt,{})}),g&&(0,v.jsx)(I.EY,{muted:!0,children:g})]}),d[13]=g,d[14]=p,d[15]=l):l=d[15],d[16]!==n||d[17]!==a||d[18]!==o||d[19]!==l?(s=(0,v.jsxs)(I.so,{align:"center",flex:"none",gap:3,children:[n,a,o,l]}),d[16]=n,d[17]=a,d[18]=o,d[19]=l,d[20]=s):s=d[20],s}let eiv=[{url:"https://snty.link/community",i18nKey:"workspaces.community-title",title:"Community"},{url:"https://www.sanity.io/docs",i18nKey:"workspaces.docs-title",title:"Docs"},{url:"https://www.sanity.io/legal/privacy",i18nKey:"workspaces.privacy-title",title:"Privacy"},{url:"https://www.sanity.io",i18nKey:"workspaces.sanity-io-title",title:"sanity.io"}],eij=(0,eI.I4)(I.EY).withConfig({displayName:"StyledText",componentId:"sc-cwavj5-0"})`a{color:inherit;}`;function eiw(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(23),{children:u,footer:p,header:m}=e,h=(0,I.Xy)();c[0]!==m?(t="object"==typeof m&&(0,v.jsx)(I.az,{children:m}),c[0]=m,c[1]=t):t=c[1],c[2]!==m?(n="string"==typeof m&&(0,v.jsx)(I.az,{paddingY:4,children:(0,v.jsx)(I.DZ,{align:"center",size:1,children:m})}),c[2]=m,c[3]=n):n=c[3];let f=!!m,g=!!p;return c[4]!==u||c[5]!==f||c[6]!==g?(i=(0,v.jsx)(I.az,{paddingX:1,children:(0,v.jsx)(I.Zp,{borderTop:f,borderBottom:g,children:u})}),c[4]=u,c[5]=f,c[6]=g,c[7]=i):i=c[7],c[8]!==p?(r=p&&(0,v.jsx)(I.az,{children:p}),c[8]=p,c[9]=r):r=c[9],c[10]!==t||c[11]!==n||c[12]!==i||c[13]!==r?(a=(0,v.jsx)(I.Zp,{border:!0,radius:3,overflow:"auto",children:(0,v.jsxs)(I.BJ,{children:[t,n,i,r]})}),c[10]=t,c[11]=n,c[12]=i,c[13]=r,c[14]=a):a=c[14],c[15]!==h?(o=(0,v.jsx)(I.EY,{size:3,children:(0,v.jsx)(iN.U5,{dark:h})}),c[15]=h,c[16]=o):o=c[16],c[17]===Symbol.for("react.memo_cache_sentinel")?(l=(0,v.jsx)(I.so,{align:"center",gap:2,children:eiv.map(ei_)}),c[17]=l):l=c[17],c[18]!==o?(s=(0,v.jsxs)(I.so,{direction:"column",gap:4,justify:"center",align:"center",paddingBottom:4,children:[o,l]}),c[18]=o,c[19]=s):s=c[19],c[20]!==a||c[21]!==s?(d=(0,v.jsxs)(I.BJ,{space:6,children:[a,s]}),c[20]=a,c[21]=s,c[22]=d):d=c[22],d}function ei_(e,t){return(0,v.jsxs)(_.Fragment,{children:[(0,v.jsx)(eij,{muted:!0,size:1,children:(0,v.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:e.title})}),t<eiv.length-1&&(0,v.jsx)(I.EY,{size:1,muted:!0,children:"â¢"})]},e.title)}function eik(){let e,t,n,i,r,a,o,l,s=(0,j.c)(46),d=rc(),{activeWorkspace:c,setActiveWorkspace:u}=B8(),[p]=eif(d),[m,h]=(0,_.useState)(c?.name||null);s[0]!==m||s[1]!==d?(e=1===d.length?d[0]:d.find(e=>e.name===m),s[0]=m,s[1]=d,s[2]=e):e=s[2];let f=e,g=f?.auth?.LoginComponent;s[3]===Symbol.for("react.memo_cache_sentinel")?(t=()=>h(null),s[3]=t):t=s[3];let y=t,{t:C}=as();if(!p){let e;return s[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ry,{showText:!0}),s[4]=e):e=s[4],e}if(g&&f){let e,t,n,i,r,a;s[5]!==C||s[6]!==d.length?(e=d.length>1&&(0,v.jsx)(I.so,{children:(0,v.jsx)(tL.$n,{icon:eT.A60,mode:"bleed",onClick:y,text:C("workspaces.action.choose-another-workspace")})}),s[5]=C,s[6]=d.length,s[7]=e):e=s[7];let o=f?.subtitle;return s[8]!==f.icon||s[9]!==f.title||s[10]!==o?(t=(0,v.jsx)(I.az,{padding:3,children:(0,v.jsx)(eib,{icon:f.icon,title:f.title,subtitle:o})}),s[8]=f.icon,s[9]=f.title,s[10]=o,s[11]=t):t=s[11],s[12]!==f.basePath?(n=window.location.pathname.startsWith(f.basePath)?`${window.location.pathname}${window.location.search}`:f.basePath,s[12]=f.basePath,s[13]=n):n=s[13],s[14]!==g||s[15]!==f.projectId||s[16]!==m||s[17]!==n?(i=(0,v.jsx)(I.BJ,{padding:2,paddingBottom:3,paddingTop:4,children:(0,v.jsx)(g,{projectId:f.projectId,redirectPath:n},m)}),s[14]=g,s[15]=f.projectId,s[16]=m,s[17]=n,s[18]=i):i=s[18],s[19]!==t||s[20]!==i?(r=(0,v.jsx)(eiw,{header:t,children:i}),s[19]=t,s[20]=i,s[21]=r):r=s[21],s[22]!==e||s[23]!==r?(a=(0,v.jsxs)(I.BJ,{space:2,children:[e,r]}),s[22]=e,s[23]=r,s[24]=a):a=s[24],a}if(s[25]!==C?(n=C("workspaces.choose-your-workspace-label"),s[25]=C,s[26]=n):n=s[26],s[27]!==C?(i=C("workspaces.action.add-workspace"),s[27]=C,s[28]=i):i=s[28],s[29]!==i?(r=(0,v.jsx)(I.BJ,{padding:1,children:(0,v.jsx)(tL.$n,{as:"a",href:"https://www.sanity.io/docs/workspaces",icon:eT.REV,mode:"bleed",rel:"noopener noreferrer",size:"large",target:"__blank",text:i})}),s[29]=i,s[30]=r):r=s[30],s[31]!==c||s[32]!==p||s[33]!==u||s[34]!==d){let e;s[36]!==c||s[37]!==p||s[38]!==u?(e=e=>{let t=p[e.name].authenticated?"logged-in":e.auth.LoginComponent?"logged-out":"no-access";return(0,v.jsx)(I.Zp,{as:"button",radius:2,padding:2,onClick:()=>{"logged-in"===t&&e.name!==c.name&&u(e.name),"logged-out"===t&&h(e.name)},children:(0,v.jsx)(eib,{icon:e?.icon,iconRight:eT.vKP,state:t,subtitle:e?.subtitle,title:e?.title||e.name})},e.name)},s[36]=c,s[37]=p,s[38]=u,s[39]=e):e=s[39],a=d.map(e),s[31]=c,s[32]=p,s[33]=u,s[34]=d,s[35]=a}else a=s[35];return s[40]!==a?(o=(0,v.jsx)(I.BJ,{space:1,paddingX:1,paddingY:2,children:a}),s[40]=a,s[41]=o):o=s[41],s[42]!==n||s[43]!==r||s[44]!==o?(l=(0,v.jsx)(eiw,{header:n,footer:r,children:o}),s[42]=n,s[43]=r,s[44]=o,s[45]=l):l=s[45],l}function eiS(){let{getClient:e}=cY();return e({apiVersion:"2025-08-15"}).config().apiHost.endsWith(".work")?"https://www.sanity.work":"https://www.sanity.io"}function eiI(e){let t,n,i,r=(0,j.c)(7);r[0]!==e?(t=e||{},r[0]=e,r[1]=t):t=r[1];let{enabled:a}=t,o=void 0===a||a,l=cm();r[2]!==l?(n=l.getGrants().pipe((0,eV.T)(eiT)),r[2]=l,r[3]=n):n=r[3];let s=n;return r[4]!==o||r[5]!==s?(i=o?s:(0,eP.of)(!1),r[4]=o,r[5]=s,r[6]=i):i=r[6],(0,tF.J)(i,!1)}function eiT(e){return!!e["sanity.project.members"]?.some(eiE)}function eiE(e){return e.grants.some(ei$)}
1826function ei$(e){return"invite"===e.name}function eiA(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(30),{multipleWorkspaces:m}=e,{projectId:h}=cY(),{value:f}=function(){let e,t,n,i=(0,j.c)(5),r=cm(),[a,o]=(0,_.useState)(null);return i[0]!==r?(e=()=>{let e=r.get().subscribe(o);return()=>e.unsubscribe()},t=[r],i[0]=r,i[1]=e,i[2]=t):(e=i[1],t=i[2]),(0,_.useEffect)(e,t),i[3]!==a?(n={value:a},i[3]=a,i[4]=n):n=i[4],n}(),{activeWorkspace:g}=B8(),y=eiS(),C=eiI(),{t:x}=as(),b=m?3:4;p[0]!==g.icon?(t=(0,v.jsx)(eiC,{icon:g.icon,size:"large"}),p[0]=g.icon,p[1]=t):t=p[1];let w=f?.displayName;p[2]!==w?(n=(0,v.jsx)(I.EY,{size:0,children:w}),p[2]=w,p[3]=n):n=p[3],p[4]!==g.title?(i=(0,v.jsx)(I.EY,{size:2,weight:"medium",children:g.title}),p[4]=g.title,p[5]=i):i=p[5],p[6]!==n||p[7]!==i?(r=(0,v.jsxs)(I.BJ,{marginLeft:2,space:2,children:[n,i]}),p[6]=n,p[7]=i,p[8]=r):r=p[8],p[9]!==t||p[10]!==r?(a=(0,v.jsxs)(I.so,{align:"center",children:[t,r]}),p[9]=t,p[10]=r,p[11]=a):a=p[11];let k=`${y}/manage/project/${h}`;return p[12]!==x?(o=x("user-menu.action.manage-project-aria-label"),p[12]=x,p[13]=o):o=p[13],p[14]===Symbol.for("react.memo_cache_sentinel")?(l={"--card-border-color":"unset"},p[14]=l):l=p[14],p[15]!==k||p[16]!==o?(s=(0,v.jsx)(tL.$n,{mode:"bleed",as:"a",href:k,target:"_blank",icon:eT.DP5,text:o,style:l}),p[15]=k,p[16]=o,p[17]=s):s=p[17],p[18]!==C||p[19]!==y||p[20]!==h||p[21]!==x?(d=C&&(0,v.jsx)(tL.$n,{mode:"bleed",as:"a",href:`${y}/manage/project/${h}/members?invite=true`,target:"_blank",icon:eT.gIx,text:x("user-menu.action.invite-members"),style:{"--card-border-color":"unset"}}),p[18]=C,p[19]=y,p[20]=h,p[21]=x,p[22]=d):d=p[22],p[23]!==s||p[24]!==d?(c=(0,v.jsxs)(I.so,{justify:"flex-start",gap:3,paddingTop:4,children:[s,d]}),p[23]=s,p[24]=d,p[25]=c):c=p[25],p[26]!==b||p[27]!==c||p[28]!==a?(u=(0,v.jsxs)(I.BJ,{paddingX:4,paddingTop:4,paddingBottom:b,children:[a,c]}),p[26]=b,p[27]=c,p[28]=a,p[29]=u):u=p[29],u}let eiD={constrainSize:!0,fallbackPlacements:["bottom-end","bottom"],placement:"bottom-end",tone:"default"};function eiz(){let e,t,n,i,r,a,o,l,s,d=(0,j.c)(25),c=rc(),{activeWorkspace:u}=B8(),[p]=eif(c),{t:m}=as(),[h,f]=(0,_.useState)(0);d[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{e&&f(e.scrollHeight>e.clientHeight?e.offsetWidth-e.clientWidth:0)},d[0]=e):e=d[0];let g=e,y=!p;return d[1]!==m?(t=m("workspaces.select-workspace-tooltip"),d[1]=m,d[2]=t):t=d[2],d[3]!==u.title?(n=(0,v.jsx)(I.az,{children:(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:u.title})}),d[3]=u.title,d[4]=n):n=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eT.D3D,{})}),d[5]=i):i=d[5],d[6]!==n?(r=(0,v.jsxs)(I.so,{align:"center",gap:2,children:[n,i]}),d[6]=n,d[7]=r):r=d[7],d[8]!==y||d[9]!==r?(a=(0,v.jsx)(I.$n,{disabled:y,mode:"bleed",padding:2,width:"fill",children:r}),d[8]=y,d[9]=r,d[10]=a):a=d[10],d[11]!==y||d[12]!==t||d[13]!==a?(o=(0,v.jsx)(I.so,{children:(0,v.jsx)(tL.m_,{content:t,disabled:y,portal:!0,children:a})}),d[11]=y,d[12]=t,d[13]=a,d[14]=o):o=d[14],d[15]!==u.name||d[16]!==p||d[17]!==y||d[18]!==h||d[19]!==m||d[20]!==c?(l=!y&&p?(0,v.jsxs)(I.W1,{padding:0,style:{maxWidth:"350px",minWidth:"250px",overflowY:"hidden"},children:[(0,v.jsx)(eiA,{multipleWorkspaces:c.length>1}),c.length>1&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.Nj,{style:{padding:0}}),(0,v.jsxs)(I.az,{paddingTop:2,paddingBottom:1,children:[(0,v.jsx)(I.az,{paddingRight:5,paddingLeft:4,paddingBottom:3,children:(0,v.jsx)(I.EY,{size:0,weight:"medium",children:m("workspaces.action.switch-workspace")})}),(0,v.jsx)(I.BJ,{ref:g,space:1,style:{overflowY:"auto",maxHeight:"40vh"},children:c.map(e=>{let t=p[e.name].authenticated?"logged-in":e.auth.LoginComponent?"logged-out":"no-access",n=e.name===u.name;return(0,v.jsx)(tL.Dr,{as:"a",href:e.basePath,badgeText:eig[t],iconRight:n?eT.Nrt:void 0,pressed:n,preview:(0,v.jsx)(eiC,{icon:e.icon,size:"small"}),selected:n,__unstable_subtitle:e.subtitle,text:e?.title||e.name,style:{marginLeft:"1rem",marginRight:`calc(1.25rem - ${h}px)`},__unstable_space:0},e.name)})})]})]})]}):void 0,d[15]=u.name,d[16]=p,d[17]=y,d[18]=h,d[19]=m,d[20]=c,d[21]=l):l=d[21],d[22]!==o||d[23]!==l?
1826(s=(0,v.jsx)(tL.IU,{button:o,id:"workspace-menu",menu:l,popover:eiD}),d[22]=o,d[23]=l,d[24]=s):s=d[24],s}function eiP(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.Zp,{height:"fill",overflow:"auto",paddingX:4,children:(0,v.jsx)(I.so,{height:"fill",direction:"column",align:"center",justify:"center",paddingTop:4,children:(0,v.jsx)(I.mc,{width:0,children:(0,v.jsx)(eik,{})})})}),t[0]=e):e=t[0],e}function eiR(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(v.Fragment,{children:"TODO: implement config errors screen"}),t[0]=e):e=t[0],e}let eiN=(0,eI.I4)(I.so).withConfig({displayName:"CenteredContainer",componentId:"sc-sih713-0"})`min-height:100vh;box-sizing:border-box;`,eiO=(0,eI.I4)(I.az).withConfig({displayName:"ContentWrapper",componentId:"sc-sih713-1"})`width:100%;max-width:640px;`,eiV=eI.I4.a.withConfig({displayName:"HelpLink",componentId:"sc-sih713-2"})`color:var(--card-link-fg-color);text-decoration:none;display:inline-flex;align-items:center;gap:0.25em;&:hover{text-decoration:underline;}`;function eiM(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(27),{projectId:f,isStaging:g,primaryProjectId:y}=e,C=!!(y&&f&&y===f),x=window.location.origin,b=g?"https://sanity.work":"https://sanity.io";if(h[0]!==b||h[1]!==f){let e=new URL(`/manage/project/${f}/api`,b);e.searchParams.set("cors","add"),e.searchParams.set("origin",x),e.searchParams.set("credentials",""),t=e.toString(),h[0]=b,h[1]=f,h[2]=t}else t=h[2];let w=t;if(h[3]!==b||h[4]!==f){let e=new URL(`/manage/project/${f}/studios`,b);e.searchParams.set("studio","add"),e.searchParams.set("origin",x),n=e.toString(),h[3]=b,h[4]=f,h[5]=n}else n=h[5];let k=n;return h[6]===Symbol.for("react.memo_cache_sentinel")?(i=[],h[6]=i):i=h[6],(0,_.useEffect)(eiL,i),h[7]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.jsx)(I.DZ,{as:"h1",size:2,children:"Connect this studio to your project"}),a=(0,v.jsx)(I.EY,{size:2,muted:!0,children:"This studio is not registered and cannot access your content yet. Choose how you want to connect it."}),h[7]=r,h[8]=a):(r=h[7],a=h[8]),h[9]!==C?(o=C?[1,1,2]:1,h[9]=C,h[10]=o):o=h[10],h[11]!==k||h[12]!==C?(l=C&&(0,v.jsx)(I.Zp,{border:!0,padding:4,radius:4,children:(0,v.jsxs)(I.so,{direction:"column",gap:4,height:"fill",children:[(0,v.jsxs)(I.BJ,{space:4,flex:1,children:[(0,v.jsx)(I.EY,{size:2,weight:"medium",children:"Register studio"}),(0,v.jsx)(I.EY,{size:1,muted:!0,children:"For production and editor-facing studios. Enables schema syncing, Content Agent, and other COS features."})]}),(0,v.jsx)(tL.$n,{as:"a",href:k,target:"_blank",rel:"noopener noreferrer",size:"large",text:"Register this studio",width:"fill"})]})}),h[11]=k,h[12]=C,h[13]=l):l=h[13],h[14]===Symbol.for("react.memo_cache_sentinel")?(s=(0,v.jsxs)(I.BJ,{space:4,flex:1,children:[(0,v.jsx)(I.EY,{size:2,weight:"medium",children:"Add development host"}),(0,v.jsx)(I.EY,{size:1,muted:!0,children:"For localhost and preview URLs. Does not register this Studio and does not sync schemas."})]}),h[14]=s):s=h[14],h[15]!==w?(d=(0,v.jsx)(I.Zp,{border:!0,padding:4,radius:4,children:(0,v.jsxs)(I.so,{direction:"column",gap:4,height:"fill",children:[s,(0,v.jsx)(tL.$n,{as:"a",href:w,iconRight:eT.ZPM,target:"_blank",rel:"noopener noreferrer",text:"Add development host",mode:"ghost",size:"large",width:"fill"})]})}),h[15]=w,h[16]=d):d=h[16],h[17]!==C?(c=C&&(0,v.jsx)(I.so,{justify:"center",children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:"Recommended"})}),h[17]=C,h[18]=c):c=h[18],h[19]!==o||h[20]!==l||h[21]!==d||h[22]!==c?(u=(0,v.jsxs)(I.xA,{columns:o,gapX:4,gapY:3,children:[l,d,c]}),h[19]=o,h[20]=l,h[21]=d,h[22]=c,h[23]=u):u=h[23],h[24]===Symbol.for("react.memo_cache_sentinel")?(p=(0,v.jsx)(I.so,{justify:"flex-end",children:(0,v.jsx)(I.EY,{size:1,children:(0,v.jsx)(eiV,{href:"https://www.sanity.io/docs/cors",target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:"Need help? â"})})}),h[24]=p):p=h[24],h[25]!==u?(m=(0,v.jsx)(I.Zp,{height:"fill",children:(0,v.jsx)(eiN,{align:"center",justify:"center",padding:4,children:(0,v.jsx)(eiO,{paddingBottom:5,children:(0,v.jsxs)(I.BJ,{space:5,children:[r,a,u,p]})})})}),h[25]=u,h[26]=m):m=h[26],m}function eiL(){return window.addEventListener("focus",eiF),()=>{window.removeEventListener("focus",eiF)}}function eiF(){window.location.reload()}function eiB(){let e,t,n,i,r,a,o,l,s,d=(0,j.c)(20),[c,u]=(0,_.useState)(null),[p,m]=(0,_.useState)(null);if(p)throw p;let{activeWorkspace:h}=B8();d[0]!==h.auth?(e=()=>{h.auth.logout?.()},d[0]=h.auth,d[1]=e):e=d[1];let f=e;d[2]!==h.auth.state?(t=()=>{let e=h.auth.state.subscribe({next:e=>{let{currentUser:t}=e;u(t)},error:m});return()=>{e.unsubscribe()}},d[2]=h.auth.state,d[3]=t):t=d[3],d[4]!==h?(n=[h],d[4]=h,d[5]=n):n=d[5],(0,_.useEffect)(t,n);let g=c?.provider;d[6]!==g?(i=oU(g),d[6]=g,d[7]=i):i=d[7];let y=i,C=y?` through ${y}`:"";d[8]!==f?(r={confirmButton:{text:"Sign out",onClick:f,tone:"default"}},d[8]=f,d[9]=r):r=d[9],d[10]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)(I.EY,{children:"You are not authorized to access this studio. Please contact someone with access to invite you to this project."}),d[10]=a):a=d[10];let x=c?.name,b=c?.email;return d[11]!==x||d[12]!==b?(o=(0,v.jsxs)("strong",{children:[x," (",b,")"]}),d[11]=x,d[12]=b,d[13]=o):o=d[13],d[14]!==C||d[15]!==o?(l=(0,v.jsxs)(I.BJ,{space:4,children:[a,(0,v.jsxs)(I.EY,{children:["If you think this is an error, verify that you are signed in with the correct account. You are currently signed in as"," ",o,C,"."]})]}),d[14]=C,d[15]=o,d[16]=l):l=d[16],d[17]!==l||d[18]!==r?(s=(0,v.jsx)(I.Zp,{height:"fill",children:(0,v.jsx)(tL.lG,{id:"not-authorized-dialog",header:"Not authorized",width:1,footer:r,children:l})}),d[17]=l,d[18]=r,d[19]=s):s=d[19],s}function eiY(e){let t,n,i=(0,j.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.DZ,{as:"h1",children:"Worksp
1826ace not found"}),i[0]=t):t=i[0],i[1]!==e.onNavigateToDefaultWorkspace?(n=(0,v.jsx)(I.Zp,{height:"fill",sizing:"border",tone:"caution",display:"flex",children:(0,v.jsx)(I.so,{direction:"row",justify:"center",flex:1,align:"center",children:(0,v.jsxs)(I.BJ,{space:4,children:[t,(0,v.jsx)(I.cV,{children:(0,v.jsx)(tL.$n,{text:"Go to default workspace",onClick:e.onNavigateToDefaultWorkspace,mode:"ghost"})})]})})}),i[1]=e.onNavigateToDefaultWorkspace,i[2]=n):n=i[2],n}function eiH(){let e,t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(52),[g,y]=(0,_.useState)(null),[C,x]=(0,_.useState)(),[b,w]=(0,_.useState)(),k=(0,T.dj)(),[S,E]=(0,_.useState)(null),[$,A]=(0,_.useState)(),[D,z]=(0,_.useState)(!0),[P,R]=(0,_.useState)(!1),[N,O]=(0,_.useState)(!1),[V,M]=(0,_.useState)(!1),[L,F]=(0,_.useState)(!1),[B,Y]=(0,_.useState)(!1),[H,U]=(0,_.useState)(),[Z,q]=(0,_.useState)(0),{activeWorkspace:W}=B8();f[0]!==W.auth?(e=()=>{W.auth.logout?.()},f[0]=W.auth,f[1]=e):e=f[1];let J=e;f[2]!==W.auth.state?(t=()=>{let e=W.auth.state.subscribe({next:e=>{let{client:t,currentUser:n}=e;w(t.config().projectId),x(t.withConfig({apiVersion:"2024-07-01"})),y(n)},error:E});return()=>{e.unsubscribe()}},f[2]=W.auth.state,f[3]=t):t=f[3],f[4]!==W?(n=[W],f[4]=W,f[5]=n):n=f[5],(0,_.useEffect)(t,n),f[6]!==C||f[7]!==b?(i=()=>{if(!C||!b)return eiW;let e=C.observable.request({url:"/access/requests/me",tag:"request-access"}).pipe((0,e0.j)(()=>z(!1))).subscribe({next:e=>{if(!e||!e.length)return;let t=e.filter(e=>e.resourceId===b),n=t.find(eiq);n&&(0,nS.d)((0,nP.J)(new Date(n.createdAt),2),new Date)?Y(!0):t.find(eiZ)?O(!0):t.find(eiU)&&M(!0)},error:e=>{console.error(e),E(!0)}});return()=>{e.unsubscribe()}},r=[C,b],f[6]=C,f[7]=b,f[8]=i,f[9]=r):(i=f[8],r=f[9]),(0,_.useEffect)(i,r),f[10]!==C||f[11]!==H||f[12]!==b||f[13]!==k?(a=()=>{C&&b&&(R(!0),C.request({url:`/access/project/${b}/requests`,method:"post",body:{note:H,requestUrl:window?.location.href,type:"access"}}).then(e=>{e&&O(!0)}).catch(e=>{let t=e?.response?.statusCode,n=e?.response?.body?.message;429===t&&(F(!0),A(n)),409===t?(Y(!0),A(n)):k.push({title:"There was a problem submitting your request.",status:"error"})}).finally(()=>{R(!1)}))},f[10]=C,f[11]=H,f[12]=b,f[13]=k,f[14]=a):a=f[14];let K=a,G=g?.provider;f[15]!==G?(o=oU(G),f[15]=G,f[16]=o):o=f[16];let X=o,Q=X?` through ${X}`:"";if(D){let e;return f[17]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ry,{}),f[17]=e):e=f[17],e}if(S){let e;return f[18]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eiB,{}),f[18]=e):e=f[18],e}let ee=g?.name,et=g?.email;return f[19]!==ee||f[20]!==et?(l=(0,v.jsxs)("strong",{children:[ee," (",et,")"]}),f[19]=ee,f[20]=et,f[21]=l):l=f[21],f[22]!==Q||f[23]!==l?(s=(0,v.jsxs)(I.EY,{children:["You are not authorized to access this studio (currently signed in as"," ",l,Q,")."]}),f[22]=Q,f[23]=l,f[24]=s):s=f[24],f[25]!==K||f[26]!==B||f[27]!==V||f[28]!==N||f[29]!==L||f[30]!==P||f[31]!==$||f[32]!==H||f[33]!==Z?(d=L||N||B?(0,v.jsx)(I.Zp,{tone:N?"transparent":"caution",padding:3,radius:2,shadow:1,children:(0,v.jsxs)(I.EY,{size:1,children:[L&&!N&&(0,v.jsx)(v.Fragment,{children:$??`You've reached the limit for access requests across all projects. Please wait 1827 before submitting more requests or contact an admin for assistance.`}),N&&(0,v.jsx)(v.Fragment,{children:"Your request to access this project is pending approval."}),B&&(0,v.jsx)(v.Fragment,{children:$??"Your request to access this project has been declined."})]})}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.EY,{children:V?(0,v.jsx)(v.Fragment,{children:"Your previous request has expired. You may again request access below with an optional note. The administrator(s) will receive an email letting them know that you are requesting access."}):(0,v.jsx)(v.Fragment,{children:"You can request access below with an optional note. The administrator(s) will receive an email letting them know that you are requesting access."})}),(0,v.jsxs)(I.BJ,{space:3,paddingBottom:0,children:[(0,v.jsx)(I.ks,{maxLength:150,disabled:P,onKeyDown:e=>{"Enter"===e.key&&K()},onChange:e=>{U(e.currentTarget.value),q(e.currentTarget.value.length)},value:H,placeholder:"Add your noteâ¦"}),(0,v.jsx)(I.EY,{align:"right",muted:!0,size:1,children:`${Z}/150`})]})]}),f[25]=K,f[26]=B,f[27]=V,f[28]=N,f[29]=L,f[30]=P,f[31]=$,f[32]=H,f[33]=Z,f[34]=d):d=f[34],f[35]!==s||f[36]!==d?(c=(0,v.jsxs)(I.BJ,{space:4,children:[s,d]}),f[35]=s,f[36]=d,f[37]=c):c=f[37],f[38]!==J?(u=(0,v.jsx)(tL.$n,{mode:"bleed",text:"Sign out",tone
1827:"default",onClick:J,size:"large"}),f[38]=J,f[39]=u):u=f[39],f[40]!==K||f[41]!==B||f[42]!==N||f[43]!==L||f[44]!==P?(p=!L&&!B&&(0,v.jsx)(tL.$n,{mode:"default",text:N?"Request sent":"Request access",disabled:N||P,loading:P,tone:"default",onClick:K,size:"large"}),f[40]=K,f[41]=B,f[42]=N,f[43]=L,f[44]=P,f[45]=p):p=f[45],f[46]!==u||f[47]!==p?(m=(0,v.jsxs)(I.so,{align:"center",justify:"space-between",paddingTop:4,children:[u,p]}),f[46]=u,f[47]=p,f[48]=m):m=f[48],f[49]!==c||f[50]!==m?(h=(0,v.jsx)(I.Zp,{height:"fill",children:(0,v.jsx)(tL.lG,{id:"not-authorized-dialog",header:"Not authorized",width:1,children:(0,v.jsxs)(I.az,{children:[c,m]})})}),f[49]=c,f[50]=m,f[51]=h):h=f[51],h}function eiU(e){return"pending"===e.status&&(0,nv.Y)((0,nP.J)(new Date(e.createdAt),2),new Date)}function eiZ(e){return"pending"===e.status&&(0,nS.d)((0,nP.J)(new Date(e.createdAt),2),new Date)}function eiq(e){return"declined"===e.status}function eiW(){}function eiJ(e){let t=e.path[0];return"type"===t.kind?{name:t.name||`<anonymous ${t.type}>`,type:t.type}:null}let eiK={error:"critical",warning:"caution"},eiG=eI.I4.code.withConfig({displayName:"SegmentSpan",componentId:"sc-7o71rt-0"})`&&{background:none;color:inherit;}`,eiX=(0,eI.I4)(I.EY).withConfig({displayName:"ErrorMessageText",componentId:"sc-7o71rt-1"})`white-space:pre-line;`;function eiQ(e){let t,n,i=(0,j.c)(4),{problemGroups:r}=e;if(as(),i[0]!==r){for(let e of(t=[],r))for(let n of e.problems)t.push({group:e,problem:n});i[0]=r,i[1]=t}else t=i[1];let a=t;return i[2]!==a?(n=(0,v.jsx)(I.BJ,{as:"ul",space:4,children:a.map(ei1)}),i[2]=a,i[3]=n):n=i[3],n}function ei1(e,t){let{group:n,problem:i}=e,r="error"===i.severity,a="warning"===i.severity,o=eiJ(n);return(0,v.jsxs)(I.Zp,{border:!0,padding:4,radius:2,tone:eiK[i.severity],children:[(0,v.jsxs)(I.so,{children:[(0,v.jsx)(I.az,{marginRight:3,children:(0,v.jsxs)(I.EY,{muted:!0,size:1,children:[r&&(0,v.jsx)(eT.YZv,{}),a&&(0,v.jsx)(eT.sAQ,{})]})}),(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.EY,{size:1,weight:"medium",children:o?(0,v.jsxs)(v.Fragment,{children:[(0,es.A)(o.type),' type "',o.name,'"']}):null})})]}),(0,v.jsx)(I.az,{marginTop:4,children:(0,v.jsx)(I.Zp,{border:!0,overflow:"auto",padding:2,tone:"inherit",children:(0,v.jsx)(T.BI,{separator:(0,v.jsx)(I.EY,{muted:!0,size:1,children:"â"}),children:n.path.map(ei2)})})}),(0,v.jsx)(I.az,{as:"ul",marginTop:4,children:(0,v.jsx)(I.az,{as:"li",children:(0,v.jsxs)(I.BJ,{space:3,children:[(0,v.jsx)(eiX,{muted:!0,size:1,children:i.message}),i.helpId&&(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsx)("a",{href:(0,iu.i)(i.helpId),target:"_blank",rel:"noopener noreferrer",children:"View documentation â"})})]})})})]},t)}function ei2(e,t){if("type"===e.kind){var n;let i=`${(n=e.name||`<anonymous ${e.type}>`,n?.startsWith("<unnamed_type_@_index")?`[${n.slice(1,-1).split("_")[4]}]`:n)}:${e.type}`;return(0,v.jsx)(I.EY,{title:i,size:1,textOverflow:"ellipsis",children:(0,v.jsx)(eiG,{children:i})},t)}return"property"===e.kind?(0,v.jsx)(I.EY,{title:e.name,size:1,textOverflow:"ellipsis",children:(0,v.jsx)(eiG,{children:e.name})},t):null}function ei5(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(29),{schema:h}=e;m[0]!==h._validation?(t=h._validation?.filter(ei0)||[],m[0]=h._validation,m[1]=t):t=m[1];let f=t;m[2]!==h?(n=()=>{let e;return e=h._validation?.filter(e=>e.problems.some(e=>"warning"===e.severity)),void(e?.length!==0&&(console.groupCollapsed(`\u26A0\uFE0F Schema has ${e?.length} warnings`),e?.forEach(e=>{let t=e.path.map(e=>"type"===e.kind?`${e.name||"<unnamed>"}(${e.type})`:"property"===e.kind?e.name:null).filter(Boolean).join(" > ");console.group(`%cAt ${t}`,"color: #FF7636"),e.problems.forEach(e=>{console.log(e.message)}),console.groupEnd()}),console.groupEnd()))},i=[h],m[2]=h,m[3]=n,m[4]=i):(n=m[3],i=m[4]),(0,_.useEffect)(n,i);let g=(0,T.dj)(),{t:y}=as("studio"),{t:C}=as("copy-paste"),[,x]=function(){let e,t,n=(0,j.c)(3),[i,r]=(0,_.useState)(null);n[0]===Symbol.for("react.memo_cache_sentinel")?(e=async e=>{if(!navigator?.clipboard)return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(e),r(e),!0}catch(e){return console.warn("Copy failed",e),r(null),!1}},n[0]=e):e=n[0];let a=e;return n[1]!==i?(t=[i,a],n[1]=i,n[2]=t):t=n[2],t}();m[5]!==x||m[6]!==f||m[7]!==y||m[8]!==C||m[9]!==g?(r=async()=>{let e=function(e){let t=`# Schema errors 1828 1829`;for(let n of(t+=`There were errors while attempting to compile the configuration of your Sanity Studio
1829Schema types. 1830 1831`,e)){let e=eiJ(n);e?t+=`## ${(0,es.A)(e.type)} type "${e.name}" 1832 1833`:t+=`## Unknown type 1834 1835`;let i=[];for(let e of n.path)"type"===e.kind?i.push(`${e.name||`<anonymous ${e.type}>`}:${e.type}`):"property"===e.kind&&i.push(`${e.name}`);for(let e of(t+=`Path: ${i.join(" â ")} 1836`,n.problems))t+=`${(0,es.A)(e.severity)}: ${e.message} 1837`,e.helpId&&(t+=`[View documentation for this ${e.severity}](${(0,iu.i)(e.helpId)}) 1838`);t+=` 1839`}return t}(f);try{await x(e)?g.push({status:"success",title:y("about-dialog.version-info.copy-to-clipboard-button.copied-text","Copied to clipboard")}):g.push({status:"error",title:C("copy-paste.on-copy.validation.clipboard-not-supported.title","Clipboard not supported")})}catch{g.push({status:"error",title:C("copy-paste.on-copy.validation.clipboard-not-supported.title","Clipboard not supported")})}},m[5]=x,m[6]=f,m[7]=y,m[8]=C,m[9]=g,m[10]=r):r=m[10];let b=r;return m[11]===Symbol.for("react.memo_cache_sentinel")?(a=[4,5,6,7],m[11]=a):a=m[11],m[12]!==y?(o=y("schema-errors.title","Schema errors"),m[12]=y,m[13]=o):o=m[13],m[14]!==o?(l=(0,v.jsx)(I.DZ,{as:"h1",children:o}),m[14]=o,m[15]=l):l=m[15],m[16]!==y?(s=y("about-dialog.version-info.copy-to-clipboard-button.text","Copy to clipboard"),m[16]=y,m[17]=s):s=m[17],m[18]!==b||m[19]!==s?(d=(0,v.jsx)(tL.$n,{text:s,onClick:b}),m[18]=b,m[19]=s,m[20]=d):d=m[20],m[21]!==l||m[22]!==d?(c=(0,v.jsxs)(I.so,{justify:"space-between",align:"center",gap:2,children:[l,d]}),m[21]=l,m[22]=d,m[23]=c):c=m[23],m[24]!==f?(u=(0,v.jsx)(eiQ,{problemGroups:f}),m[24]=f,m[25]=u):u=m[25],m[26]!==c||m[27]!==u?(p=(0,v.jsx)(I.Zp,{height:"fill",overflow:"auto",paddingY:a,paddingX:4,sizing:"border",children:(0,v.jsx)(I.mc,{width:1,children:(0,v.jsxs)(I.BJ,{space:5,children:[c,u]})})}),m[26]=c,m[27]=u,m[28]=p):p=m[28],p}function ei0(e){return e.problems.some(ei7)}function ei7(e){return"error"===e.severity}let ei3=(0,eI.I4)(I.az).withConfig({displayName:"View",componentId:"sc-13fi13m-0"})`align-items:center;`;function ei8(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(19),{error:c,eventId:u,heading:p,onReset:m}=e,h=void 0===p?"An error occurred":p,f=c?.message,g="string"==typeof c?.stack&&c?.stack;return d[0]===Symbol.for("react.memo_cache_sentinel")?(t=[4,5,6,7],d[0]=t):t=d[0],d[1]!==h?(n=(0,v.jsx)(I.DZ,{children:h}),d[1]=h,d[2]=n):n=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(I.EY,{children:"An error occurred that Sanity Studio was unable to recover from."}),r=(0,v.jsxs)(I.EY,{children:[(0,v.jsx)("strong",{children:"To report this error,"})," copy the error details and share them with your development team or Sanity Support."]}),d[3]=i,d[4]=r):(i=d[3],r=d[4]),d[5]!==u||d[6]!==f||d[7]!==g?(a=dT&&(0,v.jsx)(I.Zp,{border:!0,radius:2,overflow:"auto",padding:4,tone:"critical",children:(0,v.jsxs)(I.BJ,{space:4,children:[f&&(0,v.jsx)(I.Cy,{weight:"bold",size:1,children:f}),g&&(0,v.jsx)(I.Cy,{size:1,children:g}),u&&(0,v.jsxs)(I.Cy,{size:1,children:["Event ID: ",u]})]})}),d[5]=u,d[6]=f,d[7]=g,d[8]=a):a=d[8],d[9]!==n||d[10]!==a?(o=(0,v.jsxs)(I.BJ,{space:4,children:[n,i,r,a]}),d[9]=n,d[10]=a,d[11]=o):o=d[11],d[12]!==c||d[13]!==u||d[14]!==m?(l=(0,v.jsx)(esw,{error:c,eventId:u,onRetry:m,size:"large"}),d[12]=c,d[13]=u,d[14]=m,d[15]=l):l=d[15],d[16]!==o||d[17]!==l?(s=(0,v.jsx)(I.Zp,{height:"fill",overflow:"auto",paddingY:t,paddingX:4,sizing:"border",children:(0,v.jsx)(ei3,{display:"flex",height:"fill",children:(0,v.jsx)(I.mc,{width:3,children:(0,v.jsxs)(I.BJ,{space:6,children:[o,l]})})})}),d[16]=o,d[17]=l,d[18]=s):s=d[18],s}let ei4=(0,eI.I4)(I.az).withConfig({displayName:"View",componentId:"sc-nf9q0j-0"})`align-items:center;`;function ei6(){window.location.reload()}function ei9(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(21),{error:p,eventId:m,autoReload:h}=e;u[0]!==h?(t=h?(0,eK.O)(0,1e3).pipe((0,eH.s)(6),(0,eV.T)(ere)):(0,eP.of)(0),u[0]=h,u[1]=t):t=u[1];let f=(0,tF.J)(t,5);u[2]!==h||u[3]!==f?(n=()=>{h&&f<1&&ei6()},i=[h,f],u[2]=h,u[3]=f,u[4]=n,u[5]=i):(n=u[4],i=u[5]),(0,_.useEffect)(n,i),u[6]===Symbol.for("react.memo_cache_sentinel")?(r=[4,5,6,7],u[6]=r):r=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,v.jsx)(I.DZ,{children:"Import error"}),o=(0,v.jsx)(I.EY,{children:"An error occurred during dynamic import."}),u[7]=a,u[8]=o):(a=u[7],o=u[8]),u[9]!==p||u[10]!==m?(l=dT&&(0,v.jsx)(I.Zp,{border:!0,radius:2,overflow:"auto",padding:4,tone:"critical",children:(0,v.jsxs)(I.BJ,{space:4,children:[p.message&&(0,v.jsx)(I.Cy,{weight:"bold",size:1,children:p.message}),p.stack&&(0,v.jsx)(I.Cy,{size:1,children:p.stack}),m&&(0,v.jsxs)(I.Cy,{size:1,children:["Event ID: ",m]})]})}
1839),u[9]=p,u[10]=m,u[11]=l):l=u[11],u[12]!==h||u[13]!==f?(s=h?(0,v.jsxs)(I.EY,{muted:!0,children:["Reloading ",f<=0?"now":`in ${f}s`,"â¦"]}):null,u[12]=h,u[13]=f,u[14]=s):s=u[14];let g=h?"Reload now":"Reload";return u[15]!==g?(d=(0,v.jsx)(I.cV,{space:3,children:(0,v.jsx)(tL.$n,{onClick:ei6,text:g,tone:"primary",icon:eT.Fjq,size:"large"})}),u[15]=g,u[16]=d):d=u[16],u[17]!==l||u[18]!==s||u[19]!==d?(c=(0,v.jsx)(I.Zp,{height:"fill",overflow:"auto",paddingY:r,paddingX:4,sizing:"border",children:(0,v.jsx)(ei4,{display:"flex",height:"fill",children:(0,v.jsx)(I.mc,{width:3,children:(0,v.jsx)(I.BJ,{space:6,children:(0,v.jsxs)(I.BJ,{space:4,children:[a,o,l,s,d]})})})})}),u[17]=l,u[18]=s,u[19]=d,u[20]=c):c=u[20],c}function ere(e){return 5-e}let ert=(0,_.lazy)(()=>n.e(7286).then(n.bind(n,87286)).then(e=>({default:e.DevServerStoppedErrorScreen})));function ern(e){let t,n,i,r=(0,j.c)(20),{children:a,heading:o,getErrorScreen:l,primaryProjectId:s}=e,d=void 0===o?"An error occurred":o,[c,u]=(0,_.useState)(),[p,m]=(0,_.useState)();r[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>u(void 0),r[0]=t):t=r[0];let h=t;r[1]!==l?(n=e=>{let t;try{t=eip.reportError(e.error,{reactErrorInfo:e.info,errorBoundary:"StudioErrorBoundary"})?.eventId}catch(e){e.message=`Encountered an additional error when reporting error: ${e.message}`,console.error(e)}m(l?.(e.error)),u({error:e.error,componentStack:e.info.componentStack,eventId:t})},r[1]=l,r[2]=n):n=r[2];let f=n;if((0,iV.i)(h),!c?.error){let e;return r[3]!==a||r[4]!==f?(e=(0,v.jsx)(tL.tH,{onCatch:f,children:a}),r[3]=a,r[4]=f,r[5]=e):e=r[5],e}if(p)return p;if(c.error instanceof ow){let e;return r[6]!==c.error.isStaging||r[7]!==c.error.projectId||r[8]!==s?(e=(0,v.jsx)(eiM,{projectId:c.error.projectId,isStaging:c.error.isStaging,primaryProjectId:s}),r[6]=c.error.isStaging,r[7]=c.error.projectId,r[8]=s,r[9]=e):e=r[9],e}if(c.error instanceof etX){let e;return r[10]!==c.error.schema?(e=(0,v.jsx)(ei5,{schema:c.error.schema}),r[10]=c.error.schema,r[11]=e):e=r[11],e}if("ViteDevServerStoppedError"in c.error&&c.error.ViteDevServerStoppedError){let e;return r[12]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ert,{}),r[12]=e):e=r[12],e}if(eih(c.error)){let e;return r[13]!==c.error||r[14]!==c.eventId?(e=(0,v.jsx)(ei9,{error:c.error,eventId:c.eventId,autoReload:!0}),r[13]=c.error,r[14]=c.eventId,r[15]=e):e=r[15],e}return r[16]!==c.error||r[17]!==c.eventId||r[18]!==d?(i=(0,v.jsx)(ei8,{heading:d,error:c.error,eventId:c.eventId,onReset:h}),r[16]=c.error,r[17]=c.eventId,r[18]=d,r[19]=i):i=r[19],i}let eri=(0,_.lazy)(()=>n.e(7286).then(n.bind(n,87286)).then(e=>({default:e.DetectViteDevServerStopped}))),err,era=(0,eI.I4)(I.Zp).withConfig({displayName:"SearchFullscreenPortalCard",componentId:"sc-ryuemf-0"})`height:100%;left:0;overflow:hidden;overflow:clip;position:fixed;top:0;width:100%;z-index:200;`;function ero(){let e,t,n,i=(0,j.c)(2),r=((t=(0,j.c)(1))[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:erl,pick:erm},t[0]=e):e=t[0],a4(e));return i[0]!==r?(n=(0,v.jsx)(r,{}),i[0]=r,i[1]=n):n=i[1],n}function erl(){let e,t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,E,$,A,D=(0,j.c)(64),{name:z,title:P,tools:R}=cY();!function(){let e,t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(46),{push:x}=(0,T.dj)(),{t:b}=as();C[0]===Symbol.for("react.memo_cache_sentinel")?(e={apiVersion:"2025-03-01"},C[0]=e):e=C[0];let w=el0(e);C[1]!==b?(t=b("network-check.slow-protocol-warning.title"),C[1]=b,C[2]=t):t=C[2];let k=t,[S,E]=(0,_.useState)(),[$,A]=function(e){let t,n,i,r=(0,j.c)(7);r[0]!==e?(t=()=>{let t=sessionStorage.getItem(e);return"string"==typeof t?t:void 0},r[0]=e,r[1]=t):t=r[1];let[a,o]=(0,_.useState)(t);r[2]!==e?(n=t=>{o(t),void 0===t?sessionStorage.removeItem(e):sessionStorage.setItem(e,t)},r[2]=e,r[3]=n):n=r[3];let l=n,s="string"==typeof a?a:void 0;return r[4]!==l||r[5]!==s?(i=[s,l],r[4]=l,r[5]=s,r[6]=i):i=r[6],i}("sanity-studio.network.check.snooze");C[3]!==$?(n=$?new Date($):void 0,C[3]=$,C[4]=n):n=C[4];let D=n;C[5]!==D?(i=D&&new Date().getTime()-D.getTime()<864e5,C[5]=D,C[6]=i):i=C[6];let z=i;C[7]!==w||C[8]!==z?(r=()=>{var e,t;let n,i=(z?(0,eP.of)(void 0):(e=w,typeof PerformanceObserver>"u"||typeof PerformanceResourceTiming>"u"?(0,eP.of)(void 0):(t=`${e.getUrl("/ping")}?tag=sanity.studio.protocol-check`,n=(0,tp._)(new eU.c(e=>{let t=new PerformanceObserver(t=>{for(let n of t.getEntries())e.next(n)});return t.observe({type:"resource",buffered:!0}),()=>t.disconnect()}).pipe((0,to.p)(e=>e instanceof PerformanceResourceTiming&&e.name===t),(0,eH.s)(1),(0,eV.T)(e=>localStorage._sanity_debugProtocol??e.nextHopProtocol))),(0,eN.v)(()=>fetch(t)).pipe((0,tx.Z)(()=>n),(0,tv.w)({first:2500,with:()=>(0,eP.of)(void 0)})))).pipe((0,eV.T)(e=>{if(e)return e.startsWith("http/0")||e.startsWith("http/1")}))).subscribe(e=>E(e));return()=>i.unsubscribe()},C[7]=w,C[8]=z,C[9]=r):r=C[9],C[10]!==w||C[11]!==z||C[12]!==x||C[13]!==k||C[14]!==D?(a=[w,z,x,k,D],C[10]=w,C[11]=z,C[12]=x,C[13]=k,C[14]=D,C[15]=a):a=C[15],(0,_.useEffect)(r,a),C[16]!==A?(o=()=>A(new Date().toISOString()),C[16]=A,C[17]=o):o=C[17];let P=o,R=S&&!z;C[18]!==b?(l=b("network-check.slow-protocol-warning.description"),C[18]=b,C[19]=l):l=C[19],C[20]!==l?(s=(0,v.jsx)(I.so,{children:(0,v.jsxs)(I.EY,{size:1,children:[l," "]})}),C[20]=l,C[21]=s):s=C[21],C[22]!==b?(d=b("network-check.slow-protocol-warning.learn-more-button.tooltip"),C[22]=b,C[23]=d):d=C[23],C[24]!==d?(c={content:d},C[24]=d,C[25]=c):c=C[25],C[26]!==b?(u=b("network-check.slow-protocol-warning.learn-more-button.text"),C[26]=b,C[27]=u):u=C[27],C[28]!==c||C[29]!==u?(p=(0,v.jsx)(tL.$n,{as:"a",href:en8,target:"_blank",rel:"noreferrer",mode:"ghost",tone:"primary",size:"default",icon:eT.ZPM,tooltipProps:c,text:u}),C[28]=c,C[29]=u,C[30]=p):p=C[30],C[31]!==b?(m=b("network-check.slow-protocol-warning.snooze-button.text"),C[31]=b,C[32]=m):m=C[32],C[33]!==P||C[34]!==m?(h=(0,v.jsx)(tL.$n,{mode:"bleed",tone:"neutral",size:"default",text:m,onClick:P}),C[33]=P,C[34]=m,C[35]=h):h=C[35],C[36]!==p||C[37]!==h?(f=(0,v.jsxs)(I.so,{gap:3,children:[p,h]}),C[36]=p,C[37]=h,C[38]=f):f=C[38],C[39]!==f||C[40]!==s?(g=(0,v.jsxs)(I.BJ,{space:4,paddingY:1,children:[s,f]}),C[39]=f,C[40]=s,C[41]=g):g=C[41],C[42]!==g||C[43]!==R||C[44]!==k?(y={id:"network-protocol-check",status:"warning",enabled:R,title:k,description:g},C[42]=g,C[43]=R,C[44]=k,C[45]=y):y=C[45],el7(y)}(),D[0]!==R?(r=R.filter(en2),D[0]=R,D[1]=r):r=D[1];let N=r,O=(0,nU.rd)(),V=(0,nU.ks)(erc);if(D[2]!==V||D[3]!==R){let e;D[5]!==V?(e=e=>
1839e.name===V,D[5]=V,D[6]=e):e=D[6],a=R.find(e),D[2]=V,D[3]=R,D[4]=a}else a=D[4];let M=a,[L,F]=(0,_.useState)(!1),[B,Y]=(0,_.useState)(null),[H,U]=(0,_.useState)(!1);e:{let e;D[7]!==z||D[8]!==P?(e=P||(0,eu.A)(z),D[7]=z,D[8]=P,D[9]=e):e=D[9];let t=e,n=M?M.title||M.name:void 0;if(n){o=`${n} | ${t}`;break e}o=t}let Z=o,q=!!M?.controlsDocumentTitle;D[10]!==Z||D[11]!==q?(l=()=>{q||(document.title=Z)},s=[Z,q],D[10]=Z,D[11]=q,D[12]=l,D[13]=s):(l=D[12],s=D[13]),(0,_.useEffect)(l,s),D[14]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{F(e)},D[14]=d):d=D[14];let W=d;D[15]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{U(e)},D[15]=c):c=D[15];let J=c;D[16]!==L||D[17]!==B||D[18]!==H?(u={searchFullscreenOpen:L,searchFullscreenPortalEl:B,searchOpen:H,onSearchFullscreenOpenChange:W,onSearchOpenChange:J},D[16]=L,D[17]=B,D[18]=H,D[19]=u):u=D[19];let K=u,G=((t=(0,j.c)(1))[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:eaX,pick:erp},t[0]=e):e=t[0],a4(e)),X=((i=(0,j.c)(1))[0]===Symbol.for("react.memo_cache_sentinel")?(n={defaultComponent:enQ,pick:erh},i[0]=n):n=i[0],a4(n));D[20]!==M||D[21]!==V||D[22]!==R?(p=!M&&("desk"===V||!V)&&"u">typeof window&&/\/desk(\/|$)/.test(window.location.pathname)&&R.some(erd),D[20]=M,D[21]=V,D[22]=R,D[23]=p):p=D[23];let Q=p;D[24]!==Q||D[25]!==O?(h=()=>{Q&&O.navigateUrl({path:window.location.pathname.replace(/\/desk/,"/structure"),replace:!0})},m=[Q,O],D[24]=Q,D[25]=O,D[26]=m,D[27]=h):(m=D[26],h=D[27]),(0,_.useEffect)(h,m),D[28]!==G?(f=(0,v.jsx)(G,{}),D[28]=G,D[29]=f):f=D[29],D[30]!==K||D[31]!==f?(g=(0,v.jsx)(S.qT.Provider,{value:K,children:f}),D[30]=K,D[31]=f,D[32]=g):g=D[32],D[33]!==Q?(y=Q&&(0,v.jsx)(en6,{}),D[33]=Q,D[34]=y):y=D[34],D[35]!==M||D[36]!==N?(C=!M&&0===N.length&&(0,v.jsx)(en4,{}),D[35]=M,D[36]=N,D[37]=C):C=D[37],D[38]!==M||D[39]!==V||D[40]!==Q||D[41]!==R.length?(x=R.length>0&&!M&&V&&!Q&&(0,v.jsx)(en9,{toolName:V}),D[38]=M,D[39]=V,D[40]=Q,D[41]=R.length,D[42]=x):x=D[42],D[43]!==L?(b=L&&(0,v.jsx)(era,{ref:Y,overflow:"auto"}),D[43]=L,D[44]=b):b=D[44];let ee=M?.name,et=`The ${M?.name} tool crashed`;return D[45]===Symbol.for("react.memo_cache_sentinel")?(w=err&&(0,v.jsx)(eri,{}),D[45]=w):w=D[45],D[46]!==X||D[47]!==M||D[48]!==V?(k=M&&V&&(0,v.jsx)(nU.GD,{scope:V,__unsafe_disableScopedSearchParams:M.router?.__unsafe_disableScopedSearchParams,children:(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(ry,{showText:!0}),children:(0,v.jsx)(X,{activeTool:M})})}),D[46]=X,D[47]=M,D[48]=V,D[49]=k):k=D[49],D[50]!==L||D[51]!==k?(E=(0,v.jsx)(I.Zp,{flex:1,hidden:L,children:k}),D[50]=L,D[51]=k,D[52]=E):E=D[52],D[53]!==ee||D[54]!==et||D[55]!==E?($=(0,v.jsxs)(ern,{heading:et,getErrorScreen:ers,children:[w,E]},ee),D[53]=ee,D[54]=et,D[55]=E,D[56]=$):$=D[56],D[57]!==g||D[58]!==y||D[59]!==C||D[60]!==x||D[61]!==b||D[62]!==$?(A=(0,v.jsxs)(I.so,{"data-ui":"ToolScreen",direction:"column",height:"fill","data-testid":"studio-layout",children:[g,y,C,x,b,$]}),D[57]=g,D[58]=y,D[59]=C,D[60]=x,D[61]=b,D[62]=$,D[63]=A):A=D[63],A}function ers(e){return en3(e)?(0,v.jsx)(en7,{}):null}function erd(e){return"structure"===e.name}function erc(e){return"string"==typeof e.tool?e.tool:void 0}function eru(e){return e.studio?.components?.toolMenu}function erp(e){return e.studio?.components?.navbar}function erm(e){return e.studio?.components?.layout}function erh(e){return e.studio?.components?.activeToolLayout}function erf(){let e,t=(0,j.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:ea6,pick:eru},t[0]=e):e=t[0],a4(e)}function erg(){let e,t,n,i,r,a,o,l,s,d=(0,j.c)(25),c=R8();d[0]!==c._validation?(e=c._validation?.filter(ery)||[],d[0]=c._validation,d[1]=e):e=d[1];let u=e,p=enm(),{t:m}=as(),h=(0,_.useId)(),[f,g]=(0,_.useState)(!1),[y,C]=(0,_.useState)(null);d[2]===Symbol.for("react.memo_cache_sentinel")?(t=()=>g(!0),d[2]=t):t=d[2];let x=t;d[3]!==y?(n=()=>{g(!1),y&&y.focus()},d[3]=y,d[4]=n):n=d[4];let b=n;return 0===u.length?null:(d[5]!==m?(i=m("configuration-issues.button.label"),d[5]=m,d[6]=i):i=d[6],d[7]!==m?(r=m("configuration-issues.button.tooltip"),d[7]=m,d[8]=r):r=d[8],d[9]!==p||d[10]!==r?(a={scheme:p,content:r},d[9]=p,d[10]=r,d[11]=a):a=d[11],d[12]!==f||d[13]!==i||d[14]!==a?(o=(0,v.jsx)(edl,{icon:eT.sAQ,mode:"bleed",onClick:x,ref:C,selected:f,tone:"caution","aria-label":i,tooltipProps:a}),d[12]=f,d[13]=i,d[14]=a,d[15]=o):o=d[15],d[16]!==h||d[17]!==u||d[18]!==b||d[19]!==f||d[20]!==p?(l=f&&(0,v.jsx)(tL.lG,{header:"Configuration issues",width:2,onClickOutside:b,onClose:b,scheme:p,id:h,children:(0,v.jsxs)(I.BJ,{space:4,children:[(0,v.jsxs)(I.BJ,{space:3,children:[(0,v.jsxs)(I.EY,{as:"h2",size:1,weight:"medium",children:["Found ",u.length," schema warnings"]})," ",(0,v.jsx)(I.EY,{muted:!0,size:1,children:"Configuration checks are only performed during development and will not be visible in production builds"})]}),(0,v.jsx)(eiQ,{problemGroups:u})]})}),d[16]=h,d[17]=u,d[18]=b,d[19]=f,d[20]=p,d[21]=l):l=d[21],d[22]!==o||d[23]!==l?
1839(s=(0,v.jsxs)(v.Fragment,{children:[o,l]}),d[22]=o,d[23]=l,d[24]=s):s=d[24],s)}function ery(e){return e.problems.some(erC)}function erC(e){return"warning"===e.severity}let erx=(0,tW.g_)({name:"Trial Dialog Viewed",version:1,description:"User viewed a dialog or popover related to free trial"}),erb=(0,tW.g_)({name:"Trial Dialog Dismissed",version:1,description:"User dismissed a dialog or popover related to free trial"}),erv=(0,tW.g_)({name:"Trial Dialog CTA Clicked",version:1,description:"User clicked a CTA in a dialog or popover related to free trial"});function erj({showOnLoad:e,dialogId:t}){return e&&"free-upgrade-popover"===t.toLowerCase()?"trialStarted":e&&"trial-ending-popover"===t.toLowerCase()?"trialEndingSoon":e&&"project-downgraded-to-free"===t.toLowerCase()?"trialEnded":e||"after-trial-upgrade"!==t.toLowerCase()?"trialActive":"postTrial"}let erw=(0,tW.g_)({name:"Upsell Dialog Viewed",version:1,description:"User viewed the upsell dialog"}),er_=(0,tW.g_)({name:"Upsell Dialog Dismissed",version:1,description:"User dismissed the upsell dialog"}),erk=(0,tW.g_)({name:"Upsell Dialog Upgrade CTA Clicked",version:1,description:'User clicked the "Upgrade" CTA in the upsell dialog'}),erS=(0,tW.g_)({name:"Upsell Dialog Learn More CTA Clicked",version:1,description:'User clicked the "Learn More" CTA in the upsell dialog'}),erI=(0,eI.I4)(tL.$n).withConfig({displayName:"StyledButton",componentId:"sc-ytxa91-0"})`position:absolute;top:12px;right:12px;z-index:20;background:transparent;border-radius:9999px;box-shadow:none;color:white;--card-fg-color:white;:hover{--card-fg-color:white;}`,erT=eI.I4.img.withConfig({displayName:"Image",componentId:"sc-ytxa91-1"})`object-fit:cover;width:100%;height:100%;height:196px;`,erE=(0,eI.I4)(tL.lG).withConfig({displayName:"StyledDialog",componentId:"sc-ytxa91-2"})`> [data-ui='DialogCard']{max-width:22.5rem;}`;function er$(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(39),{onClose:f,onOpenNext:g,onOpenUrlCallback:y,content:C,open:x}=e;h[0]!==f?(t=function(){f("xClick")},h[0]=f,h[1]=t):t=h[1];let b=t;h[2]!==f?(n=function(){f("outsideClick")},h[2]=f,h[3]=n):n=h[3];let w=n;h[4]!==f?(i=function(){f("ctaClicked")},h[4]=f,h[5]=i):i=h[5];let _=i,k=enm();if(!x)return null;h[6]!==C.secondaryButton||h[7]!==b?(r=C.secondaryButton?.text?{text:C.secondaryButton.text,mode:"bleed",tone:"default",onClick:b}:void 0,h[6]=C.secondaryButton,h[7]=b,h[8]=r):r=h[8];let S=C.ctaButton?.text;return h[9]!==C.ctaButton||h[10]!==_||h[11]!==g||h[12]!==y?(a=C.ctaButton?.action==="openUrl"?{href:C.ctaButton.url,target:"_blank",rel:"noopener noreferrer",as:"a",onClick:y}:{onClick:C.ctaButton?.action==="openNext"?g:_},h[9]=C.ctaButton,h[10]=_,h[11]=g,h[12]=y,h[13]=a):a=h[13],h[14]!==S||h[15]!==a?(o={text:S,mode:"default",tone:"primary",...a},h[14]=S,h[15]=a,h[16]=o):o=h[16],h[17]!==r||h[18]!==o?(l={cancelButton:r,confirmButton:o},h[17]=r,h[18]=o,h[19]=l):l=h[19],h[20]!==b?(s=(0,v.jsx)(erI,{icon:eT.USm,mode:"bleed",tone:"default",onClick:b,tabIndex:-1,tooltipProps:null}),h[20]=b,h[21]=s):s=h[21],h[22]!==C.image?(d=C.image&&(0,v.jsx)(erT,{src:C.image.asset.url,alt:C.image.asset.altText??""}),h[22]=C.image,h[23]=d):d=h[23],h[24]!==C.headingText?(c=(0,v.jsx)(I.az,{paddingX:2,marginTop:3,children:(0,v.jsx)(I.DZ,{size:2,children:C.headingText})}),h[24]=C.headingText,h[25]=c):c=h[25],h[26]!==C.descriptionText?(u=(0,v.jsx)(I.az,{marginTop:4,paddingBottom:3,children:(0,v.jsx)($Q,{blocks:C.descriptionText})}),h[26]=C.descriptionText,h[27]=u):u=h[27],h[28]!==c||h[29]!==u?(p=(0,v.jsxs)(I.so,{padding:3,direction:"column",children:[c,u]}),h[28]=c,h[29]=u,h[30]=p):p=h[30],h[31]!==w||h[32]!==f||h[33]!==k||h[34]!==d||h[35]!==p||h[36]!==l||h[37]!==s?(m=(0,v.jsxs)(erE,{id:"free-trial-modal",onClose:f,onClickOutside:w,padding:!1,__unstable_hideCloseButton:!0,scheme:k,footer:l,children:[s,d,p]}),h[31]=w,h[32]=f,h[33]=k,h[34]=d,h[35]=p,h[36]=l,h[37]=s,h[38]=m):m=h[38],m}let erA=eI.I4.div.withConfig({displayName:"CenteredStroke",componentId:"sc-olne1x-0"})`position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);`,erD=e=>{let t,n,i,r,a=(0,j.c)(8),{daysLeft:o,totalDays:l}=e,s=Math.round((l-o)/l*100),d=2*Math.PI*10,c=(100-s)/100*d;a[0]===Symbol.for("react.memo_cache_sentinel")?(t={transform:"rotate(-90deg)"},a[0]=t):t=a[0];let u=s>75?ez.D9[600].hex:ez.Zp[400].hex;return a[1]!==u?(n=(0,v.jsx)("circle",{r:10,cx:10.6,cy:10.6,fill:"transparent",strokeWidth:1.2,stroke:u}),a[1]=u,a[2]=n):n=a[2],a[3]!==c?(i=(0,v.jsx)("circle",{r:10,cx:10.6,cy:10.6,fill:"transparent",strokeWidth:1.2,stroke:"var(--card-border-color)",strokeDasharray:d,strokeDashoffset:c}),a[3]=c,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(r=(0,v.jsx)(I.Zp,{children:(0,v.jsx)(erA,{children:(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:21.2,height:21.2,viewBox:"0 0 21.2 21.2",style:t,children:[n,i]})})}),a[5]=n,a[6]=i,a[7]=r):r=a[7],r},erz=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l=(0,j.c)(14),{toggleShowContent:s,daysLeft:d,totalDays:c}=e,{t:u}=as();return l[0]!==d||l[1]!==u?(n=d?u("free-trial.tooltip.days-count",{count:d}):u("free-trial.tooltip.trial-finished"),l[0]=d,l[1]=u,l[2]=n):n=l[2],l[3]!==n?(i={content:n},l[3]=n,l[4]=i):i=l[4],l[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.jsx)(I.EY,{size:0,children:(0,v.jsx)(eT.DQQ,{})}),l[5]=r):r=l[5],l[6]!==d||l[7]!==c?(a=d>0&&(0,v.jsx)(erD,{daysLeft:d,totalDays:c}),l[6]=d,l[7]=c,l[8]=a):a=l[8],l[9]!==t||l[10]!==i||l[11]!==a||l[12]!==s?(o=(0,v.jsxs)(tL.$n,{mode:"bleed",onClick:s,ref:t,tooltipProps:i,children:[r,a]}),l[9]=t,l[10]=i,l[11]=a,l[12]=s,l[13]=o):o=l[13],o}
1839),erP=(0,_.forwardRef)(function(e,t){let n,i,r=(0,j.c)(7),{toggleShowContent:a,daysLeft:o}=e,{t:l}=as();return r[0]!==o||r[1]!==l?(n=o?l("user-menu.action.free-trial",{count:o}):l("user-menu.action.free-trial-finished"),r[0]=o,r[1]=l,r[2]=n):n=r[2],r[3]!==t||r[4]!==n||r[5]!==a?(i=(0,v.jsx)(tL.$n,{ref:t,icon:eT.DQQ,justify:"flex-start",mode:"bleed",size:"large",onClick:a,text:n}),r[3]=t,r[4]=n,r[5]=a,r[6]=i):i=r[6],i}),erR=eI.I4.img.withConfig({displayName:"Image",componentId:"sc-1ch473w-0"})`object-fit:cover;width:100%;height:100%;height:180px;`;function erN(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(26),{content:u,handleClose:p,handleOpenNext:m}=e;c[0]!==u.image?(t=u.image&&(0,v.jsx)(erR,{src:u.image.asset.url,alt:u.image.asset.altText??""}),c[0]=u.image,c[1]=t):t=c[1],c[2]!==u.headingText?(n=(0,v.jsx)(I.az,{paddingX:2,marginTop:3,children:(0,v.jsx)(I.DZ,{size:1,children:u.headingText})}),c[2]=u.headingText,c[3]=n):n=c[3],c[4]!==u.descriptionText?(i=(0,v.jsx)(I.az,{marginTop:4,children:(0,v.jsx)($Q,{blocks:u.descriptionText})}),c[4]=u.descriptionText,c[5]=i):i=c[5],c[6]!==n||c[7]!==i?(r=(0,v.jsxs)(I.so,{padding:3,direction:"column",children:[n,i]}),c[6]=n,c[7]=i,c[8]=r):r=c[8],c[9]!==u.secondaryButton||c[10]!==p?(a=u.secondaryButton?.text&&(0,v.jsx)(tL.$n,{mode:"bleed",text:u.secondaryButton.text,tone:"default",onClick:()=>p("xClick")}),c[9]=u.secondaryButton,c[10]=p,c[11]=a):a=c[11];let h=u.ctaButton?.text;return c[12]!==u.ctaButton||c[13]!==p||c[14]!==m?(o=u.ctaButton?.action==="openUrl"?{href:u.ctaButton.url,target:"_blank",rel:"noopener noreferrer",as:"a"}:{onClick:u.ctaButton?.action==="openNext"?m:()=>p("ctaClicked")},c[12]=u.ctaButton,c[13]=p,c[14]=m,c[15]=o):o=c[15],c[16]!==h||c[17]!==o?(l=(0,v.jsx)(tL.$n,{mode:"default",tooltipProps:null,text:h,autoFocus:!0,tone:"primary",...o}),c[16]=h,c[17]=o,c[18]=l):l=c[18],c[19]!==a||c[20]!==l?(s=(0,v.jsxs)(I.so,{width:"full",gap:3,justify:"flex-end",padding:3,children:[a,l]}),c[19]=a,c[20]=l,c[21]=s):s=c[21],c[22]!==t||c[23]!==r||c[24]!==s?(d=(0,v.jsx)(I.Zp,{radius:3,overflow:"hidden",width:0,children:(0,v.jsxs)(I.mc,{width:0,children:[t,r,s]})}),c[22]=t,c[23]=r,c[24]=s,c[25]=d):d=c[25],d}function erO(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(57),{type:g}=e,{data:y,showDialog:C,showOnLoad:x,toggleShowContent:b}=(()=>{let e=(0,_.useContext)(S.sj);if(!e)throw Error("useFreeTrial must be used within a FreeTrialProvider");return e})(),w=enm(),k=(0,tK.Jr)(),[I,T]=(0,_.useState)(null),[E,$]=(0,_.useState)(!1);f[0]!==I?(t=()=>{I&&$(!0)},n=[I],f[0]=I,f[1]=t,f[2]=n):(t=f[1],n=f[2]),(0,_.useEffect)(t,n),f[3]!==b?(i=()=>b(!0),f[3]=b,f[4]=i):i=f[4];let A=i;f[5]!==I||f[6]!==b?(r=()=>{I?.focus(),b(!1)},f[5]=I,f[6]=b,f[7]=r):r=f[7];let D=r;f[8]!==y||f[9]!==x||f[10]!==k||f[11]!==D?(a=e=>t=>{let n=y?.showOnLoad||y?.showOnClick;n&&k.log(erb,{dialogId:n.id,dialogRevision:n._rev,dialogType:e,source:"studio",trialDaysLeft:y.daysLeft,dialogTrialStage:erj({showOnLoad:x,dialogId:n.id}),dialogDismissAction:t}),D()},f[8]=y,f[9]=x,f[10]=k,f[11]=D,f[12]=a):a=f[12];let z=a;f[13]!==A||f[14]!==y||f[15]!==x||f[16]!==k?(o=e=>()=>{let t=y?.showOnLoad||y?.showOnClick;t&&k.log(erv,{dialogId:t.id,dialogRevision:t._rev,dialogType:"modal",source:"studio",trialDaysLeft:y.daysLeft,dialogTrialStage:erj({showOnLoad:x,dialogId:t.id}),dialogCtaType:"openURL"===e?"upgrade":"learnMore"}),A()},f[13]=A,f[14]=y,f[15]=x,f[16]=k,f[17]=o):o=f[17];let P=o;f[18]!==A||f[19]!==y||f[20]!==k?(l=()=>{y?.showOnLoad&&k.log(erv,{dialogId:y.showOnLoad.id,dialogRevision:y.showOnLoad._rev,dialogType:"popover",source:"studio",trialDaysLeft:y.daysLeft,dialogTrialStage:erj({showOnLoad:!0,dialogId:y.showOnLoad.id}),dialogCtaType:"learnMore"}),A()},f[18]=A,f[19]=y,f[20]=k,f[21]=l):l=f[21];let R=l;f[22]!==A||f[23]!==y||f[24]!==k?(s=()=>{y?.showOnClick&&k.log(erx,{dialogId:y.showOnClick.id,dialogRevision:y.showOnClick._rev,dialogTrigger:"fromClick",dialogType:"modal",source:"studio",trialDaysLeft:y.daysLeft,dialogTrialStage:erj({showOnLoad:!0,dialogId:y.showOnClick.id})}),A()},f[22]=A,f[23]=y,f[24]=k,f[25]=s):s=f[25];let N=s;if(!y?.id)return null;let O=x?y.showOnLoad:y.showOnClick;if(!O)return null;f[26]!==y.daysLeft||f[27]!==y.totalDays||f[28]!==N||f[29]!==g?(d="sidebar"===g?(0,v.jsx)(erP,{toggleShowContent:N,daysLeft:y.daysLeft,ref:T}):(0,v.jsx)(erz,{toggleShowContent:N,daysLeft:y.daysLeft,totalDays:y.totalDays,ref:T}),f[26]=y.daysLeft,f[27]=y.totalDays,f[28]=N,f[29]=g,f[30]=d):d=f[30];let V=d;if(O?.dialogType==="popover"){let e,t,n,i=C&&E,r="sidebar"===g?"top":"bottom-end";return f[31]!==z?(e=z("popover"),f[31]=z,f[32]=e):e=f[32],f[33]!==O||f[34]!==R||f[35]!==e?(t=(0,v.jsx)(erN,{content:O,handleClose:e,handleOpenNext:R}),f[33]=O,f[34]=R,f[35]=e,f[36]=t):t=f[36],f[37]!==V||f[38]!==w||f[39]!==i||f[40]!==r||f[41]!==t?(n=(0,v.jsx)(tL.AM,{open:i,size:0,scheme:w,radius:3,tone:"default",portal:!0,placement:r,content:t,children:V}),f[37]=V,f[38]=w,f[39]=i,f[40]=r,f[41]=t,f[42]=n):n=f[42],n}return f[43]!==z?(c=z("modal"),f[43]=z,f[44]=c):c=f[44],f[45]!==P?(u=P("openNext"),p=P("openURL"),f[45]=P,f[46]=u,f[47]=p):(u=f[46],p=f[47]
1839),f[48]!==O||f[49]!==C||f[50]!==c||f[51]!==u||f[52]!==p?(m=(0,v.jsx)(er$,{content:O,onClose:c,onOpenNext:u,onOpenUrlCallback:p,open:C}),f[48]=O,f[49]=C,f[50]=c,f[51]=u,f[52]=p,f[53]=m):m=f[53],f[54]!==V||f[55]!==m?(h=(0,v.jsxs)(v.Fragment,{children:[V,m]}),f[54]=V,f[55]=m,f[56]=h):h=f[56],h}let erV=e=>{let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(30),{children:p}=e,m=(0,nU.rd)(),[h,f]=(0,_.useState)(null),[g,y]=(0,_.useState)(!1),[C,x]=(0,_.useState)(!1);u[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"2023-12-11"},u[0]=t):t=u[0];let b=el0(t),w=(0,tK.Jr)();if(u[1]!==h||u[2]!==g||u[3]!==C||u[4]!==w?(n=()=>{let e=h?.showOnLoad;g&&C&&e&&w.log(erx,{dialogId:e.id,dialogRevision:e._rev,dialogTrialStage:erj({showOnLoad:C,dialogId:e.id}),dialogTrigger:C?"auto":"fromClick",dialogType:e.dialogType,source:"studio",trialDaysLeft:h.daysLeft})},i=[g,h,C,w],u[1]=h,u[2]=g,u[3]=C,u[4]=w,u[5]=n,u[6]=i):(n=u[5],i=u[6]),(0,_.useEffect)(n,i),u[7]!==m.state._searchParams){let e=new URLSearchParams(m.state._searchParams);a=e.get("trialState"),r=e.get("seenBefore"),u[7]=m.state._searchParams,u[8]=r,u[9]=a}else r=u[8],a=u[9];let k=r;
1839u[10]!==b.observable||u[11]!==k||u[12]!==a?(o=()=>{let e=new URLSearchParams;e.append("studioVersion",tV.s),a&&e.append("trialState",a),k&&e.append("seenBefore",k);let t=e.get("trialState")?"/journey/trial/override":"/journey/trial",n=b.observable.request({url:`${t}?${e.toString()}`}).subscribe(e=>{f(e),e?.showOnLoad&&(x(!0),y(!0))},erM);return()=>{n.unsubscribe()}},u[10]=b.observable,u[11]=k,u[12]=a,u[13]=o):o=u[13],u[14]!==b||u[15]!==k||u[16]!==a?(l=[b,k,a],u[14]=b,u[15]=k,u[16]=a,u[17]=l):l=u[17],(0,_.useEffect)(o,l),u[18]!==b||u[19]!==h?.showOnLoad||u[20]!==C?(s=e=>{C?(x(!1),y(void 0!==e&&e),h?.showOnLoad?.id&&b.request({url:`/journey/trial/${h?.showOnLoad.id}`,method:"POST"})):y(erL)},u[18]=b,u[19]=h?.showOnLoad,u[20]=C,u[21]=s):s=u[21];let I=s;return u[22]!==h||u[23]!==g||u[24]!==C||u[25]!==I?(d={data:h,showDialog:g,toggleShowContent:I,showOnLoad:C},u[22]=h,u[23]=g,u[24]=C,u[25]=I,u[26]=d):d=u[26],u[27]!==p||u[28]!==d?(c=(0,v.jsx)(S.sj.Provider,{value:d,children:p}),u[27]=p,u[28]=d,u[29]=c):c=u[29],c};function erM(){}function erL(e){return!e}let erF=(0,eI.I4)(I.Zp).attrs({overflow:"hidden",radius:2}).withConfig({displayName:"LogoMarkContainer",componentId:"sc-1blqnlt-0"})`height:${25}px;width:${25}px;`,erB=(0,eI.I4)(I.Zp).withConfig({displayName:"StyledCard",componentId:"sc-1blqnlt-1"})`border-radius:${({theme:e})=>(0,I.D0)(e.sanity.radius[2])};display:flex;outline:none;text-decoration:none;&:focus-visible{box-shadow:${({theme:e})=>g7({base:e.sanity.color.base,focusRing:{...e.sanity.focusRing,offset:1}})};}`;function erY(){let e,t,n,i=(0,j.c)(7),{activeWorkspace:r}=B8();i[0]===Symbol.for("react.memo_cache_sentinel")?(e={state:{}},i[0]=e):e=i[0];let{href:a,onClick:o}=(0,nU.DN)(e);return i[1]!==r.icon?(t=(0,v.jsx)(I.so,{align:"center",children:(0,v.jsx)(erF,{children:(0,v.jsx)(I.so,{align:"center",height:"fill",justify:"center",children:(0,v.jsx)(eiC,{icon:r.icon,size:"small"})})})}),i[1]=r.icon,i[2]=t):t=i[2],i[3]!==o||i[4]!==a||i[5]!==t?(n=(0,v.jsx)(erB,{as:"a",href:a,onClick:o,children:t}),i[3]=o,i[4]=a,i[5]=t,i[6]=n):n=i[6],n}function erH(e){let t,n,i=(0,j.c)(4),{setScheme:r}=e,{t:a}=as(),o=enh(r,a);return i[0]!==o?(t=o.map(erU),i[0]=o,i[1]=t):t=i[1],i[2]!==t?(n=(0,v.jsx)(I.Zp,{borderTop:!0,flex:"none",padding:2,overflow:"auto",children:(0,v.jsx)(I.BJ,{as:"ul",space:1,children:t})}),i[2]=t,i[3]=n):n=i[3],n}function erU(e){let{icon:t,label:n,name:i,onSelect:r,selected:a,title:o}=e;return(0,v.jsx)(I.BJ,{as:"li",children:(0,v.jsx)(tL.$n,{"aria-label":n,icon:t,iconRight:a&&(0,v.jsx)(eT.Nrt,{}),justify:"flex-start",mode:"bleed",onClick:r,selected:a,size:"large",text:o})},i)}function erZ(){return(0,j.c)(9),af(),null}function erq(){let e,t,n,i,r,a,o=(0,j.c)(17),{projectId:l}=cY(),{t:s}=as(),d=eiS(),c=eiI();o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(I.BJ,{as:"li",children:(0,v.jsx)(erO,{type:"sidebar"})}),o[0]=e):e=o[0],o[1]!==s?(t=s("user-menu.action.manage-project-aria-label"),o[1]=s,o[2]=t):t=o[2];let u=`${d}/manage/project/${l}`;return o[3]!==s?(n=s("user-menu.action.manage-project"),o[3]=s,o[4]=n):n=o[4],o[5]!==t||o[6]!==u||o[7]!==n?(i=(0,v.jsx)(I.BJ,{as:"li",children:(0,v.jsx)(tL.$n,{"aria-label":t,as:"a",href:u,icon:eT.DP5,justify:"flex-start",mode:"bleed",size:"large",target:"_blank",text:n})}),o[5]=t,o[6]=u,o[7]=n,o[8]=i):i=o[8],o[9]!==c||o[10]!==d||o[11]!==l||o[12]!==s?(r=c&&(0,v.jsx)(I.BJ,{as:"li",children:(0,v.jsx)(tL.$n,{"aria-label":s("user-menu.action.invite-members-aria-label"),as:"a",href:`${d}/manage/project/${l}/members?invite=true`,icon:eT.gIx,justify:"flex-start",mode:"bleed",size:"large",target:"_blank",text:s("user-menu.action.invite-members")})}),o[9]=c,o[10]=d,o[11]=l,o[12]=s,o[13]=r):r=o[13],o[14]!==i||o[15]!==r?(a=(0,v.jsx)(I.Zp,{borderTop:!0,flex:"none",padding:2,children:(0,v.jsxs)(I.BJ,{as:"ul",space:1,children:[e,i,r]})}),o[14]=i,o[15]=r,o[16]=a):a=o[16],a}let erW={bounce:0,damping:20,mass:.5,stiffness:200,type:"spring"},erJ={open:{opacity:1},closed:{opacity:0}},erK={open:{x:"0%"},closed:{x:"-100%"}},erG=(0,eI.I4)(I.Wd).withConfig({displayName:"Root",componentId:"sc-7l5ixj-0"})`position:fixed;top:0;left:0;width:100%;height:100%;`,erX=(0,eI.I4)(ir.P.create(I.Zp)).withConfig({displayName:"BackdropMotion",componentId:"sc-7l5ixj-1"})`position:absolute;top:0;left:0;right:0;bottom:0;background:var(--card-shadow-penumbra-color);`,erQ=(0,eI.I4)(ir.P.create(I.Zp)).withConfig({displayName:"InnerCardMotion",componentId:"sc-7l5ixj-2"})`position:relative;pointer-events:all;flex-direction:column;height:100%;
1839min-width:200px;max-width:280px;overflow:auto;`,er1=(0,_.memo)(function(e){let t,n,i,r,a,o=(0,j.c)(23),{__internal_actions:l,activeToolName:s,isOpen:d,onClose:c,tools:u}=e,p=enu(),{auth:m,currentUser:h}=cY(),f=rc(),g=erf(),{t:y}=as();o[0]!==c?(t=e=>{"Escape"===e.key&&c()},o[0]=c,o[1]=t):t=o[1];let C=t;o[2]!==c?(n=e=>{e?.(),c()},o[2]=c,o[3]=n):n=o[3];let x=n;o[4]!==l||o[5]!==x?(i=l?.filter(er2)?.map(e=>{let{render:t}=e;return t?(0,v.jsx)(t,{},e.name):(0,v.jsx)(tL.$n,{icon:e?.icon,justify:"flex-start",mode:"bleed",onClick:()=>x(e.onAction),selected:e.selected,size:"large",text:e.title,width:"fill"},e.name)}),o[4]=l,o[5]=x,o[6]=i):i=o[6];let b=i;return o[7]!==g||o[8]!==b||o[9]!==s||o[10]!==m||o[11]!==h?.email||o[12]!==h?.name||o[13]!==C||o[14]!==d||o[15]!==c||o[16]!==p||o[17]!==y||o[18]!==u||o[19]!==f?(r=d&&(0,v.jsx)(tq.Ay,{returnFocus:!0,children:(0,v.jsxs)(erG,{onKeyDown:C,children:[(0,v.jsx)(erX,{animate:"open","data-open":d,exit:"closed",initial:"closed",onClick:c,transition:erW,variants:erJ}),(0,v.jsxs)(erQ,{animate:"open","data-open":d,display:"flex",exit:"closed",height:"fill",initial:"closed",shadow:1,transition:erW,variants:erK,children:[(0,v.jsx)(I.Zp,{borderBottom:!0,children:(0,v.jsxs)(I.BJ,{space:3,padding:3,children:[(0,v.jsxs)(I.so,{align:"center",children:[(0,v.jsx)(I.so,{flex:1,align:"center",paddingRight:2,children:(0,v.jsx)(enx,{capability:"globalUserMenu",children:(0,v.jsxs)(I.so,{flex:1,align:"center",children:[(0,v.jsx)(ua,{size:1,user:"me"}),(0,v.jsx)(I.az,{flex:1,marginLeft:3,title:h?.name||h?.email,children:(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:h?.name||h?.email})})]})})}),(0,v.jsx)(tL.$n,{icon:eT.USm,mode:"bleed",onClick:c,tooltipProps:{content:y("user-menu.close-menu")}})]}),f.length>1&&(0,v.jsxs)(I.so,{flex:1,gap:1,children:[(0,v.jsx)(erY,{}),(0,v.jsx)(eiz,{})]})]})}),(0,v.jsxs)(I.so,{direction:"column",flex:1,justify:"space-between",overflow:"auto",children:[(0,v.jsx)(I.Zp,{flex:"none",padding:2,children:(0,v.jsx)(g,{activeToolName:s,closeSidebar:c,context:"sidebar",isSidebarOpen:d,tools:u})}),(0,v.jsxs)(I.so,{direction:"column",children:[b&&(0,v.jsx)(I.Zp,{flex:"none",padding:2,children:(0,v.jsx)(I.BJ,{space:1,children:b})}),p&&(0,v.jsx)(erH,{setScheme:p}),(0,v.jsx)(erZ,{}),(0,v.jsx)(erq,{})]})]}),m.logout&&(0,v.jsx)(I.Zp,{flex:"none",padding:2,borderTop:!0,children:(0,v.jsx)(I.BJ,{children:(0,v.jsx)(tL.$n,{iconRight:eT.NAZ,justify:"flex-start",mode:"bleed",onClick:m.logout,size:"large",text:y("user-menu.action.sign-out")})})})]})]})}),o[7]=g,o[8]=b,o[9]=s,o[10]=m,o[11]=h?.email,o[12]=h?.name,o[13]=C,o[14]=d,o[15]=c,o[16]=p,o[17]=y,o[18]=u,o[19]=f,o[20]=r):r=o[20],o[21]!==r?(a=(0,v.jsx)(ia.N,{children:r}),o[21]=r,o[22]=a):a=o[22],a});function er2(e){return"sidebar"===e.location}let er5=(0,eI.I4)(tL.AM).withConfig({displayName:"StyledPopover",componentId:"sc-1oe0xko-0"})(()=>(0,eI.AH)` 1840 [data-ui='Popover__wrapper'] { 1841 width: 320px; 1842 display: flex; 1843 flex-direction: column; 1844 border-radius: ${({theme:e})=>e.sanity.radius[3]}px; 1845 position: relative; 1846 overflow: hidden; 1847 overflow: clip; 1848 } 1849 `),er0=(0,eI.I4)(tL.lG).withConfig({displayName:"StyledDialog",componentId:"sc-1oe0xko-1"})(()=>(0,eI.AH)` 1850 [data-ui='DialogCard'] { 1851 justify-content: flex-start; 1852 } 1853 `),er7=(0,eI.I4)(I.so).withConfig({displayName:"RootFlex",componentId:"sc-1oe0xko-2"})``,er3=(0,eI.I4)(I.Zp).withConfig({displayName:"PopoverHeaderCard",componentId:"sc-1oe0xko-3"})`min-height:max-content;`,er8=(0,eI.I4)(I.Zp).withConfig({displayName:"DialogHeaderCard",componentId:"sc-1oe0xko-4"})`min-height:max-content;`,er4=(0,eI.I4)(I.so).withConfig({displayName:"PopoverListFlex",componentId:"sc-1oe0xko-5"})(e=>{let{$maxDisplayedItems:t,$itemHeight:n}=e;return(0,eI.AH)` 1854 --item-height: ${n}px; 1855 --max-items: ${t}; 1856 --list-padding: 0.5rem; 1857 1858 position: relative; 1859 max-height: calc(var(--item-height) * var(--max-items) + var(--list-padding)); 1860 min-height: calc((var(--item-height) * 1)); 1861 `});function er6(e){let t,n,i,r,a,o,l,s=(0,j.c)(28),{option:d,currentUser:c,onClick:u,preview:p}=e,{selectedReleaseId:m}=a3();s[0]!==d.schemaType||s[1]!==d.templateId||s[2]!==m?(t={template:d.templateId,type:d.schemaType,version:m},s[0]=d.schemaType,s[1]=d.templateId,s[2]=m,s[3]=t):t=s[3];let h=t;s[4]!==h?(n={intent:"create",params:h},s[4]=h,s[5]=n):n=s[5];let{onClick:f,href:g}=(0,nU.cQ)(n);s[6]!==u||s[7]!==f||s[8]!==d?(i=e=>{f(e),u(d)},s[6]=u,s[7]=f,s[8]=d,s[9]=i):i=s[9];let y=i,{title:C}=ap(d);s[10]!==c?(r=(0,v.jsx)(R5,{currentUser:c,context:"create-document"}),s[10]=c,s[11]=r):r=s[11];let x=d.hasPermission?"a":"button",b=`create-new-${d.templateId}
1861`,w=!d.hasPermission,_="inline"===p?3:4,k="inline"===p?1:void 0;return s[12]!==k||s[13]!==C?(a=(0,v.jsx)(I.EY,{size:k,children:C}),s[12]=k,s[13]=C,s[14]=a):a=s[14],s[15]!==y||s[16]!==g||s[17]!==x||s[18]!==b||s[19]!==w||s[20]!==_||s[21]!==a?(o=(0,v.jsx)("div",{children:(0,v.jsx)(I.Zp,{as:x,"data-testid":b,disabled:w,href:g,marginBottom:1,onClick:y,padding:_,radius:2,children:a})}),s[15]=y,s[16]=g,s[17]=x,s[18]=b,s[19]=w,s[20]=_,s[21]=a,s[22]=o):o=s[22],s[23]!==d.hasPermission||s[24]!==d.id||s[25]!==o||s[26]!==r?(l=(0,v.jsx)(tL.m_,{disabled:d.hasPermission,portal:!0,content:r,children:o},d.id),s[23]=d.hasPermission,s[24]=d.id,s[25]=o,s[26]=r,s[27]=l):l=s[27],l}let er9=(0,eI.I4)(I.so).withConfig({displayName:"ContentFlex",componentId:"sc-1jduvp1-0"})`min-height:100px;`;function eae(e){let t,n,i,r,a,o=(0,j.c)(27),{currentUser:l,loading:s,onDocumentClick:d,options:c,preview:u,searchQuery:p,textInputElement:m}=e,{t:h}=as(),f=c.length>0&&!s;o[0]!==d?(t=()=>{d()},o[0]=d,o[1]=t):t=o[1];let g=t;o[2]!==c?(n=e=>c[e]?.hasPermission??!0,o[2]=c,o[3]=n):n=o[3];let y=n;o[4]!==l||o[5]!==g||o[6]!==u?(i=e=>(0,v.jsx)(er6,{currentUser:l,onClick:g,option:e,preview:u},e.id),o[4]=l,o[5]=g,o[6]=u,o[7]=i):i=o[7];let C=i;if(s){let e;return o[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ry,{showText:!0}),o[8]=e):e=o[8],e}if(!f&&p){let e,t;return o[9]!==p?(e={searchQuery:p},o[9]=p,o[10]=e):e=o[10],o[11]!==h||o[12]!==e?(t=(0,v.jsx)(er9,{align:"center",flex:1,height:"fill",justify:"center",padding:4,sizing:"border",children:(0,v.jsx)(I.EY,{align:"center",muted:!0,size:1,children:(0,v.jsx)(aE,{t:h,i18nKey:"new-document.no-results",values:e})})}),o[11]=h,o[12]=e,o[13]=t):t=o[13],t}if(!f){let e,t;return o[14]!==h?(e=h("new-document.no-document-types-found"),o[14]=h,o[15]=e):e=o[15],o[16]!==e?(t=(0,v.jsx)(er9,{align:"center",flex:1,height:"fill",justify:"center",padding:4,sizing:"border",children:(0,v.jsx)(I.EY,{align:"center",muted:!0,size:1,children:e})}),o[16]=e,o[17]=t):t=o[17],t}o[18]!==h?(r=h("new-document.new-document"),o[18]=h,o[19]=r):r=o[19];let x="inline"===u?1:2;return o[20]!==y||o[21]!==c||o[22]!==C||o[23]!==r||o[24]!==x||o[25]!==m?(a=(0,v.jsx)(rr,{activeItemDataAttr:"data-hovered",ariaLabel:r,autoFocus:r6?void 0:"input",getItemDisabled:y,inputElement:m,itemHeight:33,items:c,overscan:5,padding:x,paddingBottom:0,renderItem:C}),o[20]=y,o[21]=c,o[22]=C,o[23]=r,o[24]=x,o[25]=m,o[26]=a):a=o[26],a}function eat(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(90),{canCreateDocument:T,modal:E,loading:$,options:A}=e,D=void 0===E?"popover":E,[z,P]=(0,_.useState)(!1),[R,N]=(0,_.useState)(""),O=(0,_.useRef)(null),V=(0,_.useRef)(null),[M,L]=(0,_.useState)(null),[F,B]=(0,_.useState)(null),{t:Y}=as(),H=ad(A),U=enm(),Z=o5(),q=R8(),W=A.length>0;S[0]!==Y?(t=Y("new-document.filter-placeholder"),S[0]=Y,S[1]=t):t=S[1];let J=t;S[2]!==Y?(n=Y("new-document.title"),S[2]=Y,S[3]=n):n=S[3];let K=n;S[4]!==Y?(i=Y("new-document.open-dialog-aria-label"),S[4]=Y,S[5]=i):i=S[5];let G=i;if(S[6]!==A||S[7]!==q){let e;S[9]!==q?(e=e=>{let t=q.get(e.schemaType);return t&&!(0,eD.fq)(t)},S[9]=q,S[10]=e):e=S[10],r=A.filter(e),S[6]=A,S[7]=q,S[8]=r}else r=S[8];let X=r;S[11]!==H||S[12]!==R||S[13]!==X?(a=X.map(e=>({...e,title:H({...e,title:e?.title||e.id}).title})).sort((e,t)=>e.title.localeCompare(t.title)).filter(e=>{let t;return t=e.title.toLowerCase(),R.trim().toLowerCase().split(/[\s\-_]+/).every(e=>t.includes(e))}).sort((e,t)=>{let n,i,r;return n=e.title.toLowerCase(),i=t.title.toLowerCase(),r=R.trim().toLowerCase(),n.startsWith(r)&&!i.startsWith(r)?-1:i.startsWith(r)&&!n.startsWith(r)?1:n.includes(r)&&!i.includes(r)?-1:i.includes(r)&&!n.includes(r)?1:0}),S[11]=H,S[12]=R,S[13]=X,S[14]=a):a=S[14];let Q=a;S[15]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{N(e.currentTarget.value)},S[15]=o):o=S[15];let ee=o;S[16]===Symbol.for("react.memo_cache_sentinel")?(l=()=>P(ean),S[16]=l):l=S[16];let et=l;S[17]!==M?(s=()=>{P(!1),N(""),M?.focus()},S[17]=M,S[18]=s):s=S[18];let en=s;S[19]!==z?(d=e=>{"ArrowDown"!==e.key||z||P(!0)},S[19]=z,S[20]=d):d=S[20];let ei=d;S[21]!==en||S[22]!==z?(c=e=>{("Escape"===e.key||"Tab"===e.key)&&z&&en()},S[21]=en,S[22]=z,S[23]=c):c=S[23];let er=c;S[24]!==M?(u=()=>[M,V.current,O.current],S[24]=M,S[25]=u):u=S[25],(0,I.PR)(z&&en,u);let ea="popover"===D?"inline":"default";S[26]!==Z||S[27]!==Q||S[28]!==$||S[29]!==F||S[30]!==R||S[31]!==ea?(p={currentUser:Z,loading:$,onDocumentClick:et,options:Q,searchQuery:R,preview:ea,textInputElement:F},S[26]=Z,S[27]=Q,S[28]=$,S[29]=F,S[30]=R,S[31]=ea,S[32]=p):p=S[32];let eo=p;S[33]!==$||S[34]!==J||S[35]!==R?(m={__unstable_disableFocusRing:!0,border:!1,"data-testid":"new-document-button-search-input",defaultValue:R,disabled:$,icon:eT.WIv,onChange:ee,placeholder:J,ref:B},S[33]=$,S[34]=J,S[35]=R,S[36]=m):m=S[36];let el=m,es=!T||!W||$;S[37]!==z||S[38]!==G||S[39]!==es?(h={"aria-label":G,"data-testid":"new-document-button",disabled:es,icon:eT.REV,text:"",mode:"bleed",onClick:et,ref:L,selected:z},S[37]=z,S[38]=G,S[39]=es,S[40]=h):h=S[40];let ed=h;e:{let e;if(!W){let e,t;S[41]!==Y?(e=Y("new-document.no-document-types-label"),S[41]=Y,S[42]=e):e=S[42],S[43]!==e?(t=(0,v.jsx)(I.EY,{size:1,children:e}),S[43]=e,S[44]=t):t=S[44],f=t;break e}if(T){let e,t;S[45]!==Y?(e=Y("new-document.create-new-document-label"),S[45]=Y,S[46]=e):e=S[46],S[47]!==e?
1861(t=(0,v.jsx)(I.EY,{size:1,children:e}),S[47]=e,S[48]=t):t=S[48],f=t;break e}S[49]!==Z?(e=(0,v.jsx)(R5,{currentUser:Z,context:"create-any-document"}),S[49]=Z,S[50]=e):e=S[50],f=e}let ec=f,eu=$||z;S[51]!==U||S[52]!==eu||S[53]!==ec?(g={content:ec,disabled:eu,scheme:U},S[51]=U,S[52]=eu,S[53]=ec,S[54]=g):g=S[54];let ep=g;if("dialog"===D){let e,t,n,i;return S[55]!==ed?(e=(0,v.jsx)("div",{children:(0,v.jsx)(tL.$n,{...ed})}),S[55]=ed,S[56]=e):e=S[56],S[57]!==ep||S[58]!==e?(t=(0,v.jsx)(tL.m_,{...ep,children:e}),S[57]=ep,S[58]=e,S[59]=t):t=S[59],S[60]!==en||S[61]!==z||S[62]!==U||S[63]!==eo||S[64]!==el||S[65]!==K?(n=z&&(0,v.jsx)(er0,{header:K,id:"create-new-document-dialog",onClickOutside:en,onClose:en,ref:V,scheme:U,width:1,children:(0,v.jsxs)(er7,{direction:"column",flex:1,height:"fill",children:[(0,v.jsx)(er8,{padding:2,borderBottom:!0,children:(0,v.jsx)(I.ks,{"data-testid":"new-document-button-search-input",...el})}),(0,v.jsx)(I.so,{direction:"column",overflow:"hidden",children:(0,v.jsx)(eae,{...eo})})]})}),S[60]=en,S[61]=z,S[62]=U,S[63]=eo,S[64]=el,S[65]=K,S[66]=n):n=S[66],S[67]!==t||S[68]!==n?(i=(0,v.jsxs)(v.Fragment,{children:[t,n]}),S[67]=t,S[68]=n,S[69]=i):i=S[69],i}return S[70]!==el?(y=(0,v.jsx)(er3,{sizing:"border",children:(0,v.jsx)(I.BJ,{children:(0,v.jsx)(I.Zp,{borderBottom:!0,padding:1,children:(0,v.jsx)(I.ks,{...el,fontSize:1,radius:1})})})}),S[70]=el,S[71]=y):y=S[71],S[72]!==eo?(C=(0,v.jsx)(er4,{$itemHeight:33,$maxDisplayedItems:10,direction:"column",overflow:"hidden",children:(0,v.jsx)(eae,{...eo})}),S[72]=eo,S[73]=C):C=S[73],S[74]!==y||S[75]!==C?(x=(0,v.jsxs)(er7,{direction:"column",flex:1,forwardedAs:tq.Ay,height:"fill",returnFocus:!0,children:[y,C]}),S[74]=y,S[75]=C,S[76]=x):x=S[76],S[77]!==ei||S[78]!==z||S[79]!==ed?(b=(0,v.jsx)("div",{children:(0,v.jsx)(tL.$n,{...ed,"aria-expanded":z,"aria-haspopup":"true",onKeyDown:ei})}),S[77]=ei,S[78]=z,S[79]=ed,S[80]=b):b=S[80],S[81]!==ep||S[82]!==b?(w=(0,v.jsx)("div",{children:(0,v.jsx)(tL.m_,{...ep,children:b})}),S[81]=ep,S[82]=b,S[83]=w):w=S[83],S[84]!==er||S[85]!==z||S[86]!==U||S[87]!==x||S[88]!==w?(k=(0,v.jsx)(er5,{constrainSize:!0,onKeyDown:er,open:z,tone:"default",portal:!0,radius:3,ref:O,scheme:U,content:x,children:w}),S[84]=er,S[85]=z,S[86]=U,S[87]=x,S[88]=w,S[89]=k):k=S[89],k}function ean(e){return!e}let eai=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(31),{locations:c,user:u,focused:p,onFocus:m}=e,[h,f]=(0,_.useState)(null),{t:g}=as();d[0]!==p||d[1]!==h?(t=()=>{p&&h&&(h.focus(),h.setAttribute("data-selected","")),p||h?.removeAttribute("data-selected")},n=[h,p],d[0]=p,d[1]=h,d[2]=t,d[3]=n):(t=d[2],n=d[3]),(0,_.useEffect)(t,n),d[4]!==m||d[5]!==u.id?(i=()=>{m(u.id)},d[4]=m,d[5]=u.id,d[6]=i):i=d[6];let y=i;if(d[7]!==y||d[8]!==c||d[9]!==u){a=Symbol.for("react.early_return_sentinel");e:{let e=(0,Y.A)(c||[],["lastActiveAt"],["desc"]).find(ear);if(r=!!e?.documentId,e){let t,n,i=(0,tG._S)(e.documentId),r={id:(0,tG.IM)(e.documentId),path:w.dI(e.path)},o=i?[["perspective",i]]:[];d[12]!==u?(t=(0,v.jsx)(ua,{size:1,user:u}),d[12]=u,d[13]=t):t=d[13],d[14]!==y||d[15]!==r||d[16]!==o||d[17]!==t||d[18]!==u.displayName?(n=(0,v.jsx)(tL.Dr,{as:nU.RZ,intent:"edit",params:r,searchParams:o,"data-as":"a",onFocus:y,preview:t,ref:f,text:u.displayName}),d[14]=y,d[15]=r,d[16]=o,d[17]=t,d[18]=u.displayName,d[19]=n):n=d[19],a=n;break e}}d[7]=y,d[8]=c,d[9]=u,d[10]=r,d[11]=a}else r=d[10],a=d[11];if(a!==Symbol.for("react.early_return_sentinel"))return a;let C=!r;return d[20]!==r||d[21]!==g?(o=r?void 0:{content:g("presence.not-in-a-document"),placement:"left"},d[20]=r,d[21]=g,d[22]=o):o=d[22],d[23]!==u?(l=(0,v.jsx)(ua,{size:1,user:u}),d[23]=u,d[24]=l):l=d[24],d[25]!==y||d[26]!==C||d[27]!==o||d[28]!==l||d[29]!==u.displayName?(s=(0,v.jsx)(tL.Dr,{as:"div",disabled:C,tooltipProps:o,"data-as":"a",onFocus:y,preview:l,ref:f,text:u.displayName}),d[25]=y,d[26]=C,d[27]=o,d[28]=l,d[29]=u.displayName,d[30]=s):s=d[30],s});function ear(e){return e.documentId}let eaa=(0,eI.I4)(I.W1).withConfig({displayName:"StyledMenu",componentId:"sc-2q9fcp-0"})`max-width:260px;`,eao=(0,eI.I4)(I.BJ).withConfig({displayName:"FooterStack",componentId:"sc-2q9fcp-1"})`position:sticky;bottom:0;background-color:var(--card-bg-color);`;function eal(){let e,t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y=(0,j.c)(42),C=function(){let e,t,n=(0,j.c)(2),[i,r]=(0,_.useReducer)(c_,!1);n[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>(0,_.startTransition)(r),t=[],n[0]=e,n[1]=t):(e=n[0],t=n[1]),(0,_.useEffect)(e,t);let a=cp();return(0,tF.J)(i?a.globalPresence$:cw,cj)}(),{projectId:x}=cY(),b=enm(),{t:w}=as(),k=C.length>0,[S,T]=(0,_.useState)(!1);y[0]!==S?(e={enabled:S},y[0]=S,y[1]=e):e=y[1];let E=eiI(e),[$,A]=(0,_.useState)();y[2]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{A(e)},y[2]=t):t=y[2];let D=t;y[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{A("")},y[3]=n):n=y[3];let z=n;y[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{A("")},y[4]=i):i=y[4];let P=i;y[5]!==w?(r=w("presence.aria-label"),y[5]=w,y[6]=r):r=y[6];let R=k?"positive":void 0;y[7]!==w?(a=w("presence.tooltip-content"),y[7]=w,y[8]=a):a=y[8],y[9]!==a?(o={content:a},y[9]=a,y[10]=o):o=y[10],y[11]!==r||y[12]!==R||y[13]!==o?(l=(0,v.jsx)(edl,{icon:eT.c2u,"aria-label":r,mode:"bleed",tone:R,tooltipProps:o}),y[11]=r,y[12]=R,y[13]=o,y[14]=l):l=y[14];let N=l;y[15]===Symbol.for("react.memo_cache_sentinel")?(s=["bottom"],y[15]=s):s=y[15],y[16]!==b?(d={constrainSize:!0,fallbackPlacements:s,placement:"bottom",portal:!0,scheme:b,tone:"default"},y[16]=b,y[17]=d):d=y[17];let O=d,V=eiS();return y[18]!==w?(c=w("presence.aria-label"),y[18]=w,y[19]=c):c=y[19],y[20]===Symbol.for("react.memo_cache_sentinel")?(u=()=>T(!0),y[20]=u):u=y[20],y[21]!==$||y[22]!==k||y[23]!==C?(p=k&&C.map(e=>(0,v.jsx)(eai,{focused:$===e.user.id,onFocus:D,locations:e.locations,user:e.user},e.user.id)),y[21]=$,y[22]=k,y[23]=C,y[24]=p):p=y[24],y[25]!==k||y[26]!==w?(m=!k&&(0,v.jsx)(I.az,{padding:3,children:(0,v.jsxs)(I.BJ,{space:3,children:[(0,v.jsx)(I.EY,{weight:"medium",size:1,children:w("presence.no-one-else-title")}),(0,v.jsx)(I.EY,{size:1,muted:!0,children:w("presence.no-one-else-description")})]})}),y[25]=k,y[26]=w,y[27]=m):m=y[27],y[28]!==E||y[29]!==V||y[30]!==x||y[31]!==w?(h=E&&(0,v.jsxs)(eao,{space:1,children:[(0,v.jsx)(I.Nj,{}),(0,v.jsx)(tL.Dr,{as:"a",href:`${V}/manage/project/${x}/members?invite=true`,icon:eT.gIx,onFocus:z,rel:"noopener noreferrer",target:"_blank",text:w("presence.action.manage-members")})]}),y[28]=E,y[29]=V,y[30]=x,y[31]=w,y[32]=h):h=y[32],y[33]!==p||y[34]!==m||y[35]!==h?(f=(0,v.jsxs)(eaa,{children:[p,m,h]}),y[33]=p,y[34]=m,y[35]=h,y[36]=f):f=y[36],y[37]!==N||y[38]!==O||y[39]!==c||y[40]!==f?(g=(0,v.jsx)(tL.IU,{button:N,"aria-label":c,id:"global-presence-menu",onOpen:u,menu:f,onClose:P,popover:O}),y[37]=N,y[38]=O,y[39]=c,y[40]=f,y[41]=g):g=y[41],g}function eas(){return(0,_.useContext)(S.HP)}function ead(){return(0,_.useContext)(S.Eb)}let eac=(0,tW.g_)({name:"Product Announcement Card Seen",version:1,description:"User viewed the product announcement card"}
1861),eau=(0,tW.g_)({name:"Product Announcement Card Clicked",version:1,description:"User clicked the product announcement card"}),eap=(0,tW.g_)({name:"Product Announcement Card Dismissed",version:1,description:"User dismissed the product announcement card"}),eam=(0,tW.g_)({name:"Product Announcement Viewed",version:1,description:"User viewed the product announcement"}),eah=(0,tW.g_)({name:"Product Announcement Link Clicked",version:1,description:"User clicked the link in the product announcement "}),eaf=(0,tW.g_)({name:"Product Announcement Dismissed",version:1,description:"User dismissed the product announcement modal "}),eag=(0,tW.g_)({name:"Whats New Help Menu Item Clicked",version:1,description:'User clicked the "Whats new" help menu item'});function eay(){}function eaC(e){let t,n,i=(0,j.c)(9),{text:r}=e,{onDialogOpen:a,studioAnnouncements:o}=function(){let e=(0,j.c)(1),t=(0,_.useContext)(S.Zb);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={studioAnnouncements:[],unseenAnnouncements:[],onDialogOpen:eay},e[0]=t):t=e[0],t}return t}(),l=(0,tK.Jr)();i[0]!==a||i[1]!==o[0]?._id||i[2]!==o[0]?.name||i[3]!==o[0]?.title||i[4]!==l?(t=()=>{a("help_menu"),l.log(eag,{source:"studio",announcement_id:o[0]?._id,announcement_title:o[0]?.title,announcement_internal_name:o[0]?.name,studio_version:tV.s})},i[0]=a,i[1]=o[0]?._id,i[2]=o[0]?.name,i[3]=o[0]?.title,i[4]=l,i[5]=t):t=i[5];let s=t;return 0===o.length?null:(i[6]!==s||i[7]!==r?(n=(0,v.jsx)(tL.Dr,{tone:"default",text:r,onClick:s}),i[6]=s,i[7]=r,i[8]=n):n=i[8],n)}function eax(e){return!!e["sanity.project"]?.some(eab)}function eab(e){return e.grants.some(eav)}function eav(e){return"deployStudio"===e.name}function eaj(){document.location.reload()}function eaw(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h=(0,j.c)(35),{error:f,isLoading:g,value:y,latestTaggedVersion:C,currentVersion:x,onOpenStudioVersionDialog:b,newAutoUpdateVersion:w}=e,k=y?.resources?.sectionArray,{t:S}=as();if(g){let e;return h[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(ry,{showText:!0}),h[0]=e):e=h[0],e}h[1]!==S?(t=S("help-resources.action.join-our-community"),h[1]=S,h[2]=t):t=h[2],h[3]!==t?(n=(0,v.jsx)(tL.Dr,{as:"a",text:t,href:"https://www.sanity.io/exchange/community",target:"_blank"}),h[3]=t,h[4]=n):n=h[4],h[5]!==S?(i=S("help-resources.action.help-and-support"),h[5]=S,h[6]=i):i=h[6],h[7]!==i?(r=(0,v.jsx)(tL.Dr,{as:"a",text:i,href:"https://www.sanity.io/contact/support",target:"_blank"}),h[7]=i,h[8]=r):r=h[8],h[9]!==S?(a=S("help-resources.action.contact-sales"),h[9]=S,h[10]=a):a=h[10],h[11]!==a?(o=(0,v.jsx)(tL.Dr,{as:"a",text:a,href:"https://www.sanity.io/contact/sales?ref=studio",target:"_blank"}),h[11]=a,h[12]=o):o=h[12],h[13]!==n||h[14]!==r||h[15]!==o?(l=(0,v.jsxs)(v.Fragment,{children:[n,r,o]}),h[13]=n,h[14]=r,h[15]=o,h[16]=l):l=h[16];let T=l;return h[17]!==x||h[18]!==C||h[19]!==w||h[20]!==b?(s=(0,v.jsx)(ea_,{currentVersion:x,newAutoUpdateVersion:w,latestTaggedVersion:C,onOpenStudioVersionDialog:b}),h[17]=x,h[18]=C,h[19]=w,h[20]=b,h[21]=s):s=h[21],h[22]===Symbol.for("react.memo_cache_sentinel")?(c=(0,v.jsx)(eak,{}),d=(0,v.jsx)(I.Nj,{}),h[22]=d,h[23]=c):(d=h[22],c=h[23]),h[24]!==f||h[25]!==k?(u=!f&&k?.map((e,t)=>e?(0,v.jsxs)(_.Fragment,{children:[(0,v.jsx)(eaS,{subSection:e}),t<k.length-1&&(0,v.jsx)(I.Nj,{})]},e._key):null),h[24]=f,h[25]=k,h[26]=u):u=h[26],h[27]!==f||h[28]!==T||h[29]!==y?(p=(void 0===y||f)&&(0,v.jsx)("div",{children:T}),h[27]=f,h[28]=T,h[29]=y,h[30]=p):p=h[30],h[31]!==u||h[32]!==p||h[33]!==s?(m=(0,v.jsxs)(v.Fragment,{children:[s,c,d,u,p]}),h[31]=u,h[32]=p,h[33]=s,h[34]=m):m=h[34],m}function ea_(e){let t,n,i,r,a,o,l,s,d=(0,j.c)(30),{currentVersion:c,newAutoUpdateVersion:u,latestTaggedVersion:p,onOpenStudioVersionDialog:m}=e,{t:h}=as(),f=!!p&&(c?.compareMain?.(p)??0)<0,g="positive",y;d[0]!==h?(y=h("help-resources.up-to-date"),d[0]=h,d[1]=y):y=d[1];let C=y,x=m,b="menu-item-studio-version";if(u){let e;d[2]!==u.version||d[3]!==h?(e=h("help-resources.studio-auto-update-now",{newVersion:u.version}),d[2]=u.version,d[3]=h,d[4]=e):e=d[4],C=e,g="caution",x=eaj,b="menu-item-update-studio-now"}else if(f){let e,t=p?.version;d[5]!==h||d[6]!==t?(e=h("help-resources.latest-sanity-version",{latestVersion:t}),d[5]=h,d[6]=t,d[7]=e):e=d[7],C=e,g="caution"}let w=x,_=b;d[8]!==h?(t=h("help-resources.studio"),d[8]=h,d[9]=t):t=d[9],d[10]!==t?(n=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:t}),d[10]=t,d[11]=n):n=d[11],d[12]!==C?(i=(0,v.jsx)(I.EY,{muted:!0,size:1,children:C}),d[12]=C,d[13]=i):i=d[13],d[14]!==n||d[15]!==i?(r=(0,v.jsxs)(I.so,{direction:"column",flex:1,gap:2,padding:1,children:[n,i]}),d[14]=n,d[15]=i,d[16]=r):r=d[16];let k=g;return d[17]!==c.version||d[18]!==h?(a=h("help-resources.version",{version:c.version}),d[17]=c.version,d[18]=h,d[19]=a):a=d[19],d[20]!==a||d[21]!==g?(o=(0,v.jsx)(I.Ex,{tone:k,children:a}),d[20]=a,d[21]=g,d[22]=o):o=d[22],d[23]!==o||d[24]!==r?(l=(0,v.jsxs)(I.so,{align:"flex-start",children:[r,o]}),d[23]=o,d[24]=r,d[25]=l):l=d[25],d[26]!==x||d[27]!==l||d[28]!==b?(s=(0,v.jsx)(I.Dr,{padding:2,onClick:w,"data-testid":_,children:l}),d[26]=x,d[27]=l,d[28]=b,d[29]=s):s=d[29],s}function eak(){var e;let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(11),{t:p}=as(),{userApplication:m}=eas(),h=eiS(),f=rc()[0]?.projectId,g=(e=!m,l=(0,j.c)(5),s=void 0===e||e,d=cm(),l[0]!==d?(a=d.getGrants().pipe((0,eV.T)(eax)),l[0]=d,l[1]=a):a=l[1],c=a,l[2]!==s||l[3]!==c?(o=s?c:(0,eP.of)(!1),l[2]=s,l[3]=c,l[4]=o):o=l[4],(0,tF.J)(o,!1));u[0]!==g||u[1]!==f||u[2]!==h?(t=()=>{if(!f||!g)return;let e=new URL(`${h}/manage/project/${f}/studios`);e.searchParams.set("studio","add"),e.searchParams.set("origin",window.location.origin),window.open(e,"_blank","noopener,noreferrer")},u[0]=g,u[1]=f,u[2]=h,u[3]=t):t=u[3];let y=t;if(m)return null;u[4]!==p?(n=p("help-resources.register-studio"),u[4]=p,u[5]=n):n=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(eT.ZPM,{}),u[6]=i):i=u[6];let C=!g;return u[7]!==y||u[8]!==n||u[9]!==C?(r=(0,v.jsx)(I.Zp,{tone:"caution",radius:4,children:(0,v.jsx)(tL.Dr,{text:n,iconRight:i,onClick:y,tone:"caution",disabled:C})}),u[7]=y,u[8]=n,u[9]=C,u[10]=r):r=u[10],r}function eaS(e){let t,n,i=(0,j.c)(4),{subSection:r}=e;return i[0]!==r?.items?(t=r?.items?.map(eaI),i[0]=r?.items,i[1]=t):t=i[1],i[2]!==t?(n=(0,v.jsx)(v.Fragment,{children:t}),i[2]=t,i[3]=n):n=i[3],n}function eaI(e){if(!e||!e.title)return null;switch(e._type){case"externalLink":return e.url?(0,v.jsx)(tL.Dr,{as:"a",tone:"default",text:e.title,href:e.url,target:"_blank"},e._key):null;case"internalAction":return e.type?"studio-announcements-modal"===e.type?(0,v.jsx)(eaC,{text:e.title},e._key):"show-welcome-modal"===e.type&&(0,v.jsx)(tL.Dr,{text:e.title},e._key):null;default:return null}}let eaT=(0,eI.I4)(I.Zp).attrs({overflow:"hidden",radius:4}).withConfig({displayName:"MonogramContainer",componentId:"sc-5co060-0"})`height:${75}px;width:${75}px;`;function eaE(){window.location.reload()}function ea$(e){return 0===e.prerelease.length?"default":1===e.prerelease.length&&"dev"===e.prerelease[0]?"development":"prerelease"}let eaA=(0,eI.I4)(I.Ex).withConfig({displayName:"TruncateBadge",componentId:"sc-5co060-1"})`display:block;
1861span{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:clip;}`,eaD=/^[0-9a-fA-F]+$/i;function eaz(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S,T,E,$,A=(0,j.c)(74),{t:D}=as(),{onClose:z}=e,P=(0,_.useId)(),{projectId:R}=cY(),{isAutoUpdating:N,autoUpdatingVersion:O,currentVersion:V,importMapInfo:M,latestTaggedVersion:L,versionCheckStatus:F,checkForUpdates:B}=ead(),Y=L&&V&&V.compareMain(L)>=0;A[0]!==V?(t=ea$(V),A[0]=V,A[1]=t):t=A[1];let H=t;A[2]!==O||A[3]!==V?(n=!!V&&!!O&&iO.neq(V,O),A[2]=O,A[3]=V,A[4]=n):n=A[4];let U=n;A[5]!==B?(i=()=>{B();let e=setInterval(B,1e4);return()=>clearInterval(e)},r=[B],A[5]=B,A[6]=i,A[7]=r):(i=A[6],r=A[7]),(0,_.useEffect)(i,r),A[8]!==V?(a=function(e){let t=e.prerelease;if(0===t.length)return`https://github.com/sanity-io/sanity/releases/tag/v${e.version}`;if("pr"===t[0]&&"number"==typeof t[1])return`https://github.com/sanity-io/sanity/pull/${t[1]}`;if("next"===t[0]&&1===e.build.length&&eaD.test(e.build[0]))return`https://github.com/sanity-io/sanity/tree/${e.build[0]}`;let n="git"===e.prerelease[0],i=e.build.length>0&&eaD.test(e.build[0]);if(n&&i)return`https://github.com/sanity-io/sanity/commit/${e.build[0]}`}(V),A[8]=V,A[9]=a):a=A[9];let Z=a,q=eiS();A[10]!==M||A[11]!==D?(o=M?.valid&&!M.appId?(0,v.jsxs)(I.Zp,{padding:4,tone:"caution",children:[(0,v.jsxs)(I.so,{align:"flex-start",gap:3,children:[(0,v.jsx)(NY,{tone:"caution",children:(0,v.jsx)(eT.sAQ,{})}),(0,v.jsxs)(I.BJ,{space:4,children:[(0,v.jsx)(NY,{size:1,tone:"caution",weight:"medium",children:D("about-dialog.configuration-issue.header")}),(0,v.jsx)(NY,{size:1,tone:"caution",children:(0,v.jsx)(aE,{t:D,i18nKey:"about-dialog.configuration-issue.missing-appid"})}),(0,v.jsx)(NY,{size:1,tone:"caution",children:(0,v.jsx)(I.EY,{muted:!0,size:1,children:(0,v.jsxs)("a",{href:"https://www.sanity.io/docs/studio/latest-version-of-sanity",target:"_blank",rel:"noopener noreferrer",children:[D("about-dialog.configuration-issue.missing-appid.view-documentation")," â"]})})})]})]}),(0,v.jsx)(I.BJ,{space:2})]}):null,A[10]=M,A[11]=D,A[12]=o):o=A[12];let W=o,J="development"===H?"caution":"prerelease"===H?"suggest":"neutral";return A[13]!==F?.checking?(l=F?.checking?(0,v.jsx)(I.so,{margin:2,padding:2,style:{position:"absolute",right:0},children:(0,v.jsx)(I.y$,{size:0})}):null,A[13]=F?.checking,A[14]=l):l=A[14],A[15]===Symbol.for("react.memo_cache_sentinel")?(s=(0,v.jsx)(I.so,{align:"center",justify:"center",paddingY:4,children:(0,v.jsx)(eaT,{children:(0,v.jsx)(iN.jM,{height:75,width:75})})}),A[15]=s):s=A[15],A[16]===Symbol.for("react.memo_cache_sentinel")?(d=(0,v.jsx)(I.so,{justify:"flex-end",align:"center",children:(0,v.jsx)(I.EY,{as:"h2",size:1,weight:"semibold",children:"Sanity Studio"})}),A[16]=d):d=A[16],A[17]!==V.version?(c=eaP(V.version),A[17]=V.version,A[18]=c):c=A[18],A[19]!==c||A[20]!==J?(u=(0,v.jsx)(I.Ex,{tone:J,children:c}),A[19]=c,A[20]=J,A[21]=u):u=A[21],A[22]!==H||A[23]!==D?(p=D("development"===H?"about-dialog.version-info.tooltip.development":"prerelease"===H?"about-dialog.version-info.tooltip.prerelease":"about-dialog.version-info.tooltip.up-to-date"),A[22]=H,A[23]=D,A[24]=p):p=A[24],A[25]!==p?(m=(0,v.jsx)(I.Ex,{size:1,children:p}),A[25]=p,A[26]=m):m=A[26],A[27]!==u||A[28]!==m?(h=(0,v.jsx)(I.Zp,{children:(0,v.jsxs)(I.cV,{space:1,children:[u,m]})}),A[27]=u,A[28]=m,A[29]=h):h=A[29],A[30]!==V?(f=V?eaP(V.version):"unknown",A[30]=V,A[31]=f):f=A[31],A[32]!==f||A[33]!==J?(g=(0,v.jsx)(eaA,{tone:J,children:f}),A[32]=f,A[33]=J,A[34]=g):g=A[34],A[35]!==Z||A[36]!==D?(y=Z&&(0,v.jsx)(tL.$n,{as:"a",target:"_blank",rel:"noopener noreferrer",icon:eT.Nbh,mode:"bleed",tooltipProps:{content:D("about-dialog.version-info.view-on-github")},href:Z}),A[35]=Z,A[36]=D,A[37]=y):y=A[37],A[38]!==g||A[39]!==y?(C=(0,v.jsxs)(I.so,{gap:2,align:"center",paddingRight:2,children:[g,y]}),A[38]=g,A[39]=y,A[40]=C):C=A[40],A[41]!==h||A[42]!==C?(x=(0,v.jsx)(tL.m_,{placement:"bottom",content:h,children:C}),A[41]=h,A[42]=C,A[43]=x):x=A[43],A[44]!==O||A[45]!==H||A[46]!==N||A[47]!==Y||A[48]!==L||A[49]!==U||A[50]!==D?(b=N&&U?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.so,{justify:"flex-end",align:"center",children:(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:D("about-dialog.version-info.new-version.text")})}),(0,v.jsxs)(I.so,{justify:"flex-start",align:"center",gap:2,children:[(0,v.jsx)(I.Ex,{tone:"primary",children:O&&eaP(O?.version)}),(0,v.jsx)(tL.$n,{onClick:eaE,mode:"bleed",tone:"primary",text:O&&"prerelease"===ea$(O)?void 0:D("about-dialog.version-info.update-button.text"),tooltipProps:{content:(0,v.jsx)(I.EY,{size:1,children:D("about-dialog.version-info.reload-to-update")})},icon:eT.fNY})]})]}):!Y||H?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.so,{justify:"flex-end",align:"center",children:(0,v.jsx)(I.EY,{size:1,weight:"semibold",children:D("about-dialog.version-info.latest-version.header")})}),(0,v.jsxs)(I.so,{justify:"flex-start",align:"center",gap:2,children:[(0,v.jsx)(I.Ex,{tone:"primary",children:L?eaP(L.version):"unknown"}),H?null:(0,v.jsx)(tL.$n,{as:"a",href:"https://www.sanity.io/docs/upgrade",target:"_blank",rel:"noopener noreferrer",mode:"bleed",tooltipProps:{content:D("about-dialog.version-info.update-button.tooltip")},text:D("about-dialog.version-info.update-button.text"),iconRight:eT.ZPM})]})]}):null,A[44]=O,A[45]=H,A[46]=N,A[47]=Y,A[48]=L,A[49]=U,A[50]=D,A[51]=b):b=A[51],A[52]!==x||A[53]!==b?(w=(0,v.jsxs)(I.xA,{columns:2,gap:2,children:[d,x,b]}),A[52]=x,A[53]=b,A[54]=w):w=A[54],A[55]!==N||A[56]!==R||A[57]!==q||A[58]!==D?(k=N?(0,v.jsx)(I.Zp,{tone:"transparent",padding:2,radius:3,marginX:2,children:(0,v.jsxs)(I.so,{align:"center",justify:"space-evenly",gap:2,children:[(0,v.jsx)(I.EY,{size:1,muted:!0,children:D("about-dialog.version-info.auto-updates.enabled")}),(0,v.jsx)(tL.$n,{as:"a",href:`${q}/manage/project/${R}/studios?host=${document.location.hostname}`,target:"_blank",rel:"noopener noreferrer",mode:"ghost",text:D("about-dialog.version-info.auto-updates.manage-version"),icon:eT.DP5})]})}):(0,v.jsx)(I.Zp,{tone:"transparent",padding:2,radius:3,marginX:2,children:(0,v.jsxs)(I.so,{align:"center",justify:"space-evenly",gap:2,children:[(0,v.jsx)(I.EY,{size:1,muted:!0,children:D("about-dialog.version-info.auto-updates.disabled")}),(0,v.jsx)(tL.$n,{as:"a",href:"https://www.sanity.io/docs/auto-updating-studios",target:"_blank",rel:"noopener noreferrer",mode:"ghost",text:D("about-dialog.version-info.auto-updates.how-to-enable"),iconRight:eT.ZPM})]})}),A[55]=N,A[56]=R,A[57]=q,A[58]=D,A[59]=k):k=A[59],A[60]!==W||A[61]!==k?(S=(0,v.jsxs)(I.BJ,{space:2,paddingY:3,children:[k,W]}),A[60]=W,A[61]=k,A[62]=S):S=A[62],A[63]!==z?(T=(0,v.jsx)(I.BJ,{paddingX:3,children:(0,v.jsx)(tL.$n,{tone:"primary",text:"OK",paddingY:3,onClick:z})}),A[63]=z,A[64]=T):T=A[64],A[65]!==w||A[66]!==S||A[67]!==T?(E=(0,v.jsxs)(I.BJ,{space:3,paddingY:3,children:[s,w,S,T]}),A[65]=w,A[66]=S,A[67]=T,A[68]=E):E=A[68],A[69]!==P||A[70]!==z||A[71]!==E||A[72]!==l?($=(0,v.jsxs)(tL.lG,{width:0,onClickOutside:z,id:P,padding:!1,children:[l,E]}),A[69]=P,A[70]=z,A[71]=E,A[72]=l,A[73]=$):$=A[73],$}function eaP(e){return e.startsWith("v")?e:`v${e}`}let eaR=(0,eI.I4)(I.W1).withConfig({displayName:"StyledMenu",componentId:"sc-1fgplss-0"})`max-width:300px;
1861min-width:200px;`;function eaN(){let e,t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k=(0,j.c)(43),{t:S}=as(),{userApplication:I,isLoading:T}=eas(),{value:E,error:$,isLoading:A}=((x=(0,j.c)(4))[0]===Symbol.for("react.memo_cache_sentinel")?(y={apiVersion:"1"},x[0]=y):y=x[0],b=el0(y),w=ah().id,x[1]!==b||x[2]!==w?(C=b.withConfig({apiVersion:"1"}).observable.request({url:"/help",query:{m:[`sanity@${tV.s}`],locale:w},tag:"module.version-check",json:!0}),x[1]=b,x[2]=w,x[3]=C):C=x[3],an(C)),{autoUpdatingVersion:D,currentVersion:z,latestTaggedVersion:P}=ead();if(k[0]!==D||k[1]!==z||k[2]!==P){let r;t=iO.parse(z),e=iO.parse(D)||void 0,k[7]!==P?(r=iO.parse(P)||void 0,k[7]=P,k[8]=r):r=k[8],n=r,i=!!t&&!!e&&iO.neq(t,e),k[0]=D,k[1]=z,k[2]=P,k[3]=e,k[4]=t,k[5]=n,k[6]=i}else e=k[3],t=k[4],n=k[5],i=k[6];let R=i;k[9]!==T||k[10]!==R||k[11]!==I?(r=()=>R?"primary":T||I?void 0:"caution",k[9]=T,k[10]=R,k[11]=I,k[12]=r):r=k[12];let N=r,[O,V]=(0,_.useState)(!1);k[13]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{V(!1)},k[13]=a):a=k[13];let M=a;k[14]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{V(!0)},k[14]=o):o=k[14];let L=o;k[15]!==O?(l=O&&(0,v.jsx)(eaz,{onClose:M}),k[15]=O,k[16]=l):l=k[16],k[17]!==N?(s=N(),k[17]=N,k[18]=s):s=k[18],k[19]!==S?(d=S("help-resources.title"),k[19]=S,k[20]=d):d=k[20],k[21]!==S?(c=S("help-resources.title"),k[21]=S,k[22]=c):c=k[22],k[23]!==c?(u={content:c},k[23]=c,k[24]=u):u=k[24],k[25]!==s||k[26]!==d||k[27]!==u?(p=(0,v.jsx)(edl,{tone:s,"aria-label":d,icon:eT.V1u,"data-testid":"button-resources-menu",mode:"bleed",tooltipProps:u}),k[25]=s,k[26]=d,k[27]=u,k[28]=p):p=k[28];let F=R?e:void 0;return k[29]!==t||k[30]!==$||k[31]!==A||k[32]!==n||k[33]!==F||k[34]!==E?(m=(0,v.jsx)(eaR,{"data-testid":"menu-button-resources",children:(0,v.jsx)(eaw,{currentVersion:t,latestTaggedVersion:n,newAutoUpdateVersion:F,error:$,isLoading:A,value:E,onOpenStudioVersionDialog:L})}),k[29]=t,k[30]=$,k[31]=A,k[32]=n,k[33]=F,k[34]=E,k[35]=m):m=k[35],k[36]===Symbol.for("react.memo_cache_sentinel")?(h={constrainSize:!0,tone:"default"},k[36]=h):h=k[36],k[37]!==m||k[38]!==p?(f=(0,v.jsx)(tL.IU,{button:p,id:"menu-button-resources",menu:m,popover:h}),k[37]=m,k[38]=p,k[39]=f):f=k[39],k[40]!==f||k[41]!==l?(g=(0,v.jsxs)(v.Fragment,{children:[l,f]}),k[40]=f,k[41]=l,k[42]=g):g=k[42],g}function eaO(){return(0,j.c)(10),af(),null}function eaV(e){let t,n,i,r=(0,j.c)(5),{setScheme:a}=e,{t:o}=as(),l=enh(a,o);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.Nj,{}),r[0]=t):t=r[0],r[1]!==l?(n=l.map(eaM),r[1]=l,r[2]=n):n=r[2],r[3]!==n?(i=(0,v.jsxs)(v.Fragment,{children:[t,n]}),r[3]=n,r[4]=i):i=r[4],i}function eaM(e){let{icon:t,label:n,name:i,onSelect:r,selected:a,title:o}=e;return(0,v.jsx)(tL.Dr,{"aria-label":n,icon:t,onClick:r,pressed:a,text:o,iconRight:a&&(0,v.jsx)(eT.Nrt,{}),"data-testid":`color-scheme-${i}`},i)}let eaL=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-a7k4iv-0"})`position:absolute;width:18px;height:18px;background:var(--card-bg-color);bottom:-4px;right:-4px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:1px solid var(--card-bg-color);box-sizing:content-box;svg{box-sizing:content-box;border:1px solid var(--card-hairline-soft-color);border-radius:50%;padding:2px;width:12px;height:12px;}&[data-logo='github']{svg{path{fill:var(--card-fg-color);}}}&[data-logo='saml']{svg{path{fill:var(--card-fg-color);}}}`,eaF=(0,v.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,v.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,v.jsx)("path",{d:"M12 6.13764C12 5.72977 11.9663 5.31971 11.8943 4.91846H6.12036V7.22895H9.42684C9.28963 7.97412 8.84876 8.63332 8.20322 9.05221V10.5514H10.1759C11.3342 9.50637 12 7.9631 12 6.13764Z",fill:"#4285F4"}),(0,v.jsx)("path",{d:"M6.12019 12.0002C7.77118 12.0002 9.16349 11.4688 10.1779 10.5517L8.20529 9.05253C7.65646 9.41851 6.94793 9.62574 6.12244 9.62574C4.52544 9.62574 3.17136 8.56971 2.68552 7.1499H0.649902V8.69537C1.68908 10.7215 3.80567 12.0002 6.12019 12.0002V12.0002Z",fill:"#34A853"}),(0,v.jsx)("path",{d:"M2.68332 7.14986C2.4269 6.40469 2.4269 5.59778 2.68332 4.8526V3.30713H0.649951C-0.218278 5.00252 -0.218278 6.99995 0.649951 8.69533L2.68332 7.14986V7.14986Z",fill:"#FBBC04"}),(0,v.jsx)("path",{d:"M6.12019 2.37483C6.99291 2.3616 7.8364 2.68348 8.46845 3.27433L10.2161 1.56131C9.1095 0.542752 7.64071 -0.017233 6.12019 0.000404333C3.80566 0.000404333 1.68908 1.27911 0.649902 3.3074L2.68326 4.85288C3.16686 3.43087 4.52319 2.37483 6.12019 2.37483V2.37483Z",fill:"#EA4335"})]}),(0,v.jsx)("defs",{children:(0,v.jsx)("clipPath",{id:"clip0",children:(0,v.jsx)("rect",{width:"12",height:"12",fill:"white"})})})]}),eaB=(0,v.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,v.jsx)("g",{clipPath:"url(#clip0)",children:(0,v.jsx)("path",{d:"M11.195 3.13503C10.6711 2.22838 9.91808 1.47537 9.01144 0.951471C8.09222 0.414976 7.08837 0.146729 5.99987 0.146729C4.91137 0.146729 3.90752 0.414976 2.98831 0.951471C2.08163 1.47534
18611.32862 2.22836 0.804744 3.13503C0.268248 4.05497 0 5.05883 0 6.14659C0 7.45399 0.381531 8.62978 1.14459 9.67394C1.90765 10.7181 2.89327 11.4408 4.10143 11.8419C4.24208 11.868 4.34624 11.8497 4.41392 11.7872C4.44666 11.7577 4.47263 11.7215 4.49006 11.681C4.50749 11.6405 4.51595 11.5967 4.51488 11.5527C4.51488 11.537 4.51361 11.3963 4.51105 11.1307C4.5085 10.8651 4.50722 10.6334 4.50722 10.4355L4.32745 10.4666C4.18407 10.4895 4.03885 10.4986 3.89375 10.494C3.71159 10.4908 3.53001 10.4725 3.35087 10.4393C3.16049 10.4045 2.98119 10.3246 2.82796 10.2064C2.66705 10.0846 2.54715 9.91661 2.48428 9.72484L2.40602 9.54506C2.34022 9.40286 2.25754 9.2691 2.15976 9.14666C2.04775 9.00072 1.93447 8.90176 1.81991 8.84977L1.76518 8.81064C1.72769 8.78356 1.6936 8.75205 1.66367 8.71679C1.63479 8.6841 1.61108 8.64719 1.59334 8.60734C1.57766 8.57085 1.5907 8.54085 1.63247 8.51731C1.67461 8.49405 1.75123 8.48256 1.86068 8.48256L2.01692 8.50582C2.12108 8.52662 2.24996 8.5891 2.40356 8.69326C2.5585 8.79876 2.68797 8.93748 2.78254 9.09932C2.90239 9.31294 3.04695 9.47575 3.21624 9.58775C3.38552 9.69976 3.55609 9.75576 3.72793 9.75576C3.87725 9.7578 4.02641 9.74479 4.17312 9.7169C4.29459 9.69195 4.41264 9.65254 4.52473 9.59952C4.57162 9.25037 4.69931 8.98212 4.90782 8.79477C4.63684 8.76849 4.36827 8.72157 4.10444 8.6544C3.84797 8.58382 3.60133 8.48141 3.37029 8.34958C3.12825 8.218 2.91442 8.04015 2.74095 7.82613C2.57421 7.6178 2.4374 7.34417 2.3305 7.00524C2.2236 6.6663 2.1707 6.27584 2.1718 5.83383C2.1718 5.20357 2.37757 4.66708 2.7891 4.22435C2.59629 3.75006 2.61453 3.21885 2.84383 2.63073C2.99487 2.58385 3.21879 2.61897 3.51559 2.73608C3.81239 2.85319 4.02983 2.95352 4.16792 3.03707C4.30601 3.12025 4.41665 3.19058 4.49983 3.24804C5.48153 2.9773 6.51821 2.9773 7.49991 3.24804L7.79679 3.0606C8.0249 2.92356 8.26549 2.80849 8.51535 2.71693C8.79135 2.61276 9.00231 2.58412 9.14825 2.63101C9.38248 3.21949 9.40327 3.7507 9.21064 4.22462C9.62199 4.66735 9.82776 5.20385 9.82795 5.83411C9.82795 6.27684 9.77459 6.66904 9.66787 7.01071C9.56116 7.35238 9.42325 7.62601 9.25415 7.8316C9.07785 8.04326 8.86311 8.21966 8.62124 8.35149C8.39008 8.48329 8.14337 8.5857 7.88682 8.65632C7.62412 8.72277 7.35674 8.76915 7.087 8.79505C7.35698 9.02927 7.49206 9.3994 7.49225 9.90543V11.5527C7.49115 11.5964 7.49929 11.6398 7.51612 11.6802C7.53295 11.7206 7.5581 11.7569 7.58993 11.7869C7.65505 11.8493 7.75794 11.8675 7.89858 11.8416C9.10693 11.4403 10.0926 10.7177 10.8557 9.67367C11.6188 8.62968 12.0003 7.4539 12.0003 6.14632C11.9997 5.05873 11.7313 4.05497 11.195 3.13503V3.13503Z",fill:"black"})}),(0,v.jsx)("defs",{children:(0,v.jsx)("clipPath",{id:"clip0",children:(0,v.jsx)("rect",{width:"12",height:"12",fill:"white"})})})]}),eaY=(0,v.jsxs)("svg",{width:"17",height:"9",viewBox:"0 0 17 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,v.jsx)("path",{d:"M0.0691681 5.98162C0.115833 7.24157 1.07247 8.00221 2.59841 8.00221C4.17102 8.00221 5.12299 7.19957 5.12299 5.86962C5.12299 4.83832 4.55367 4.25501 3.25172 3.96569L2.56108 3.80703C1.8331 3.64837 1.53445 3.38704 1.53445 2.91106C1.53445 2.40708 1.94977 2.09442 2.61708 2.09442C3.27505 2.09442 3.6997 2.43508 3.75103 2.99039H5.00166C4.95966 1.78643 4.01236 0.997795 2.60308 0.997795C1.14713 0.997795 0.218496 1.79577 0.218496 3.05105C0.218496 4.04968 0.815808 4.69366 2.03376 4.96898L2.73374 5.13231C3.51304 5.30497 3.8117 5.54763 3.8117 6.00495C3.8117 6.55093 3.34972 6.90092 2.62174 6.90092C1.85644 6.90092 1.38045 6.56493 1.31979 5.98162H0.0691681Z"}),(0,v.jsx)("path",{d:"M5.97695 5.98162C6.02362 7.24157 6.98025 8.00221 8.5062 8.00221C10.0788 8.00221 11.0308 7.19957 11.0308 5.86962C11.0308 4.83832 10.4615 4.25501 9.15951 3.96569L8.46886 3.80703C7.74089 3.64837 7.44223 3.38704 7.44223 2.91106C7.44223 2.40708 7.85755 2.09442 8.52486 2.09442C9.18284 2.09442 9.60749 2.43508 9.65882 2.99039H10.9094C10.8674 1.78643 9.92015 0.997795 8.51086 0.997795C7.05492 0.997795 6.12628 1.79577 6.12628 3.05105C6.12628 4.04968 6.72359 4.69366 7.94155 4.96898L8.64153 5.13231C9.42083 5.30497 9.71949 5.54763 9.71949 6.00495C9.71949 6.55093 9.2575 6.90092 8.52953 6.90092C7.76422 6.90092 7.28824 6.56493 7.22758 5.98162H5.97695Z"}),(0,v.jsx)("path",{d:"M16.9852 5.01565V3.98435C16.9852 2.11309 16.0099 0.997795 14.3953 0.997795C12.7807 0.997795 11.8054 2.11309 11.8054 3.98435V5.01565C11.8054 6.88692 12.7807 8.00221 14.3953 8.00221C16.0099 8.00221 16.9852 6.88692 16.9852 5.01565ZM14.3953 6.82625C13.5833 6.82625 13.154 6.21494 13.154 5.00165V3.99835C13.154 2.78506 13.5833 2.17375 14.3953 2.17375C15.2073 2.17375 15.6366 2.78506 15.6366 3.99835V5.00165C15.6366 6.21494 15.2073 6.82625 14.3953 6.82625Z"})]}),eaH=e=>{let t,n,i,r=(0,j.c)(10),{provider:a}=e;r[0]!==a?(t=a?.startsWith("saml-"),r[0]=a,r[1]=t):t=r[1];let o=t,l=o?"saml":a,s="google"===a&&eaF,d="github"===a&&eaB;r[2]!==a?(n="sanity"===a&&(0,v.jsx)(iN.jM,{}),r[2]=a,r[3]=n):n=r[3];let c=o&&eaY;return r[4]!==l||r[5]!==s||r[6]!==d||r[7]!==n||r[8]!==c?(i=(0,v.jsxs)(eaL,{"data-logo":l,children:[s,d,n,c]}),r[4]=l,r[5]=s,r[6]=d,r[7]=n,r[8]=c,r[9]=i):i=r[9],i},eaU=(0,eI.I4)(I.W1).withConfig({displayName:"StyledMenu",componentId:"sc-oyyyzo-0"}
1861)`min-width:200px;max-width:300px;`,eaZ=(0,eI.I4)(I.az).withConfig({displayName:"AvatarBox",componentId:"sc-oyyyzo-1"})`position:relative;min-width:${({theme:e})=>e.sanity.avatar.sizes[2].size}px;min-height:${({theme:e})=>e.sanity.avatar.sizes[2].size}px;`;function eaq(){let e,t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g=(0,j.c)(43),{currentUser:y,auth:C}=cY(),x=enm(),b=enu(),w=oU(y?.provider),{t:_}=as();g[0]!==x?(e={placement:"bottom",portal:!0,preventOverflow:!0,scheme:x,constrainSize:!0,tone:"default"},g[0]=x,g[1]=e):e=g[1];let k=e,S=tL.IU;g[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(I.$n,{mode:"bleed",padding:0,radius:"full",children:(0,v.jsx)(ua,{size:1,user:"me"})}),g[2]=t):t=g[2];let T=I.Zp,E=I.so,$=tL.m_,A=!w,D=_("user-menu.login-provider",{providerTitle:w});g[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(ua,{size:2,user:"me"}),g[3]=n):n=g[3],g[4]!==y?(i=y?.provider&&(0,v.jsx)(eaH,{provider:y.provider}),g[4]=y,g[5]=i):i=g[5],g[6]!==i?(r=(0,v.jsxs)(eaZ,{marginRight:3,children:[n,i]}),g[6]=i,g[7]=r):r=g[7],g[8]!==$||g[9]!==r||g[10]!==A||g[11]!==D?(a=(0,v.jsx)($,{disabled:A,portal:!0,content:D,children:r}),g[8]=$,g[9]=r,g[10]=A,g[11]=D,g[12]=a):a=g[12];let z=y?.name;g[13]!==z?(o=(0,v.jsx)(I.EY,{size:1,weight:"medium",textOverflow:"ellipsis",children:z}),g[13]=z,g[14]=o):o=g[14];let P=y?.email;return g[15]!==P?(l=(0,v.jsx)(I.EY,{size:1,muted:!0,textOverflow:"ellipsis",children:P}),g[15]=P,g[16]=l):l=g[16],g[17]!==o||g[18]!==l?(s=(0,v.jsxs)(I.BJ,{space:2,flex:1,children:[o,l]}),g[17]=o,g[18]=l,g[19]=s):s=g[19],g[20]!==E||g[21]!==a||g[22]!==s?(d=(0,v.jsxs)(E,{align:"center",children:[a,s]}),g[20]=E,g[21]=a,g[22]=s,g[23]=d):d=g[23],g[24]!==T||g[25]!==d?(c=(0,v.jsx)(T,{padding:2,children:d}),g[24]=T,g[25]=d,g[26]=c):c=g[26],g[27]!==b?(u=b&&(0,v.jsx)(eaV,{setScheme:b}),g[27]=b,g[28]=u):u=g[28],g[29]===Symbol.for("react.memo_cache_sentinel")?(p=(0,v.jsx)(eaO,{}),g[29]=p):p=g[29],g[30]!==C.logout||g[31]!==_?(m=C.logout&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(I.Nj,{}),(0,v.jsx)(tL.Dr,{iconRight:eT.NAZ,text:_("user-menu.action.sign-out"),disabled:!C.logout,...C.logout&&{onClick:C.logout}})]}),g[30]=C.logout,g[31]=_,g[32]=m):m=g[32],g[33]!==eaU||g[34]!==c||g[35]!==u||g[36]!==m?(h=(0,v.jsxs)(eaU,{"data-testid":"user-menu",children:[c,u,p,m]}),g[33]=eaU,g[34]=c,g[35]=u,g[36]=m,g[37]=h):h=g[37],g[38]!==S||g[39]!==k||g[40]!==t||g[41]!==h?(f=(0,v.jsx)(S,{button:t,id:"user-menu",menu:h,popover:k}),g[38]=S,g[39]=k,g[40]=t,g[41]=h,g[42]=f):f=g[42],f}let eaW=[],eaJ=(0,eI.I4)(I.Wd).withConfig({displayName:"RootLayer",componentId:"sc-zgp1z1-0"})`min-height:auto;position:relative;&[data-search-open='true']{top:0;position:sticky;}`,eaK=(0,eI.I4)(I.Zp).withConfig({displayName:"RootCard",componentId:"sc-zgp1z1-1"})`line-height:0;`,eaG=(0,eI.I4)(I.xA).withConfig({displayName:"NavGrid",componentId:"sc-zgp1z1-2"})`grid-template-columns:auto auto auto;@media screen and (min-width:${({theme:e})=>`${e.sanity.media[4]}px`}){grid-template-columns:1fr auto 1fr;}`;function eaX(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,T,E,$,A,D,z,P,R,N,O,V,M,L,F,B,Y=(0,j.c)(113),{__internal_actions:H}=e,U=void 0===H?eaW:H,{name:Z,tools:q}=cY(),W=(0,nU.ks)(),J=(0,I.aY)(),K="string"==typeof W.tool?W.tool:void 0,G=function(){let e,t,n,i,r=(0,j.c)(14),{__internal:a}=_g(),{staticInitialValueTemplateItems:o}=a;r[0]!==o?(e={templateItems:o},r[0]=o,r[1]=e):e=r[1];let[l,s]=dI(e);r[2]!==l||r[3]!==o?(t=l?.some(e=>o.some(t=>t.id===e.id))||!1,r[2]=l,r[3]=o,r[4]=t):t=r[4];let d=t;if(r[5]!==l||r[6]!==o){let e;r[8]!==l?(e=e=>({...e,title:e?.title||e.id,hasPermission:l?.find(t=>t.id===e.id)?.granted||!1}),r[8]=l,r[9]=e):e=r[9],n=o.map(e),r[5]=l,r[6]=o,r[7]=n}else n=r[7];let c=n;return r[10]!==d||r[11]!==s||r[12]!==c?(i={canCreateDocument:d,loading:s,options:c},r[10]=d,r[11]=s,r[12]=c,r[13]=i):i=r[13],i}(),{t:X}=as(),{onSearchFullscreenOpenChange:Q,onSearchOpenChange:ee,searchFullscreenOpen:et,searchFullscreenPortalEl:en,searchOpen:ei}=(0,_.useContext)(S.qT),{selectedPerspective:er,perspectiveStack:ea}=a3(),eo=erf(),[el,es]=(0,_.useState)(!1),ed=(0,_.useRef)(W),ec=(0,_.useRef)(Z);Y[0]!==Z||Y[1]!==W?(t=()=>{(ed.current.tool!==W.tool||Z!==ec.current)&&es(!1),ed.current=W,ec.current=Z},n=[Z,W],Y[0]=Z,Y[1]=W,Y[2]=t,Y[3]=n):(t=Y[2],n=Y[3]),(0,_.useEffect)(t,n);let[eu,ep]=(0,_.useState)(null),[em,eh]=(0,_.useState)(null),ef=J>1,eg=J<=1,ey=J>1,eC=J<=1,ex=J>1&&dT,eb=J<=1,ev=J>=3;Y[4]!==ef||Y[5]!==eg||Y[6]!==ey||Y[7]!==eC||Y[8]!==ex||Y[9]!==eb||Y[10]!==ev?(i={resources:ef,collapsedPresenceMenu:eg,loginStatus:ey,searchFullscreen:eC,configIssues:ex,newDocumentFullscreen:eb,tools:ev},Y[4]=ef,Y[5]=eg,Y[6]=ey,Y[7]=eC,Y[8]=ex,Y[9]=eb,Y[10]=ev,Y[11]=i):i=Y[11];let ej=i;Y[12]!==Q||Y[13]!==et?(r=()=>{Q(et)},a=[et,Q],Y[12]=Q,Y[13]=et,Y[14]=r,Y[15]=a):(r=Y[14],a=Y[15]),(0,_.useEffect)(r,a),Y[16]!==Q||Y[17]!==ee||Y[18]!==ej.searchFullscreen?(o=()=>{ej.searchFullscreen?ee(!1):Q(!1)},l=[Q,ee,ej.searchFullscreen],Y[16]=Q,Y[17]=ee,Y[18]=ej.searchFullscreen,Y[19]=o,Y[20]=l):(o=Y[19],l=Y[20]),(0,_.useEffect)(o,l),Y[21]!==ee?(s=()=>{ee(!0)},Y[21]=ee,Y[22]=s):s=Y[22];let ew=s;Y[23]!==Q?(d=()=>{Q(!0)},Y[23]=Q,Y[24]=d):d=Y[24];let e_=d;Y[25]!==ee?(c=()=>{ee(!1)},Y[25]=ee,Y[26]=c):c=Y[26];let ek=c;Y[27]!==Q||Y[28]!==em?(u=()=>{Q(!1),em?.focus()},Y[27]=Q,Y[28]=em,Y[29]=u):u=Y[29];let eS=u;
1861Y[30]!==eu?(p=()=>{es(!1),eu?.focus()},Y[30]=eu,Y[31]=p):p=Y[31];let eI=p;Y[32]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{es(!0)},Y[32]=m):m=Y[32];let eE=m;e:{let e;if(!ej.tools){h=null;break e}Y[33]!==U?(e=U?.filter(ea1)?.map(eaQ),Y[33]=U,Y[34]=e):e=Y[34],h=e}let e$=h;Y[35]!==er?(f=uA(er),Y[35]=er,Y[36]=f):f=Y[36],Y[37]!==ej.tools||Y[38]!==X?(g=!ej.tools&&(0,v.jsx)(tL.$n,{mode:"bleed",icon:eT.ZB$,onClick:eE,ref:ep,tooltipProps:{content:X("user-menu.open-menu"),placement:"bottom"}}),Y[37]=ej.tools,Y[38]=X,Y[39]=g):g=Y[39],Y[40]===Symbol.for("react.memo_cache_sentinel")?(y=(0,v.jsxs)(I.so,{gap:1,children:[(0,v.jsx)(erY,{}),(0,v.jsx)(eiz,{})]}),Y[40]=y):y=Y[40],Y[41]!==g?(C=(0,v.jsxs)(I.so,{align:"center",gap:2,children:[g,y]}),Y[41]=g,Y[42]=C):C=Y[42];let eA=ej.newDocumentFullscreen?"dialog":"popover";return Y[43]!==G||Y[44]!==eA?(x=(0,v.jsx)(eat,{...G,modal:eA}),Y[43]=G,Y[44]=eA,Y[45]=x):x=Y[45],Y[46]!==ew||Y[47]!==ej.searchFullscreen?(b=!ej.searchFullscreen&&(0,v.jsx)(enf,{onClick:ew,ref:eh}),Y[46]=ew,Y[47]=ej.searchFullscreen,Y[48]=b):b=Y[48],Y[49]!==C||Y[50]!==x||Y[51]!==b?(w=(0,v.jsx)(tL.vE,{children:(0,v.jsxs)(I.so,{align:"center",gap:2,justify:"flex-start",children:[C,x,b]})}),Y[49]=C,Y[50]=x,Y[51]=b,Y[52]=w):w=Y[52],Y[53]!==eo||Y[54]!==K||Y[55]!==eI||Y[56]!==ej.tools||Y[57]!==q?(k=ej.tools&&(0,v.jsx)(eo,{activeToolName:K,closeSidebar:eI,context:"topbar",isSidebarOpen:!1,tools:q}),Y[53]=eo,Y[54]=K,Y[55]=eI,Y[56]=ej.tools,Y[57]=q,Y[58]=k):k=Y[58],Y[59]!==k?(T=(0,v.jsx)(I.so,{align:"center",justify:"center",children:k}),Y[59]=k,Y[60]=T):T=Y[60],Y[61]!==ek||Y[62]!==eS||Y[63]!==ew||Y[64]!==e_||Y[65]!==ea||Y[66]!==et||Y[67]!==en||Y[68]!==ei||Y[69]!==ej.searchFullscreen?(E=(0,v.jsx)(I.EZ,{element:document.body,children:ej.searchFullscreen?(0,v.jsx)(I.GD,{element:en,children:(0,v.jsx)(enC,{onClose:eS,onOpen:e_,open:et})}):(0,v.jsx)(M5,{onClose:ek,onOpen:ew,open:ei,previewPerspective:ea})}),Y[61]=ek,Y[62]=eS,Y[63]=ew,Y[64]=e_,Y[65]=ea,Y[66]=et,Y[67]=en,Y[68]=ei,Y[69]=ej.searchFullscreen,Y[70]=E):E=Y[70],Y[71]!==ej.searchFullscreen||Y[72]!==E?($=(0,v.jsx)(I.XS,{children:(0,v.jsx)(Lr,{fullscreen:ej.searchFullscreen,children:E})}),Y[71]=ej.searchFullscreen,Y[72]=E,Y[73]=$):$=Y[73],Y[74]===Symbol.for("react.memo_cache_sentinel")?(A=(0,v.jsx)(enX,{withReleasesToolButton:!0}),Y[74]=A):A=Y[74],Y[75]!==ej.tools?(D=ej.tools&&(0,v.jsx)(erO,{type:"topbar"}),Y[75]=ej.tools,Y[76]=D):D=Y[76],Y[77]===Symbol.for("react.memo_cache_sentinel")?(z=(0,v.jsx)(eal,{}),Y[77]=z):z=Y[77],Y[78]!==ej.configIssues?(P=ej.configIssues&&(0,v.jsx)(erg,{}),Y[78]=ej.configIssues,Y[79]=P):P=Y[79],Y[80]!==ej.resources?(R=ej.resources&&(0,v.jsx)(eaN,{}),Y[80]=ej.resources,Y[81]=R):R=Y[81],Y[82]!==e_||Y[83]!==ej.searchFullscreen?(N=ej.searchFullscreen&&(0,v.jsx)(enf,{onClick:e_,ref:eh}),Y[82]=e_,Y[83]=ej.searchFullscreen,Y[84]=N):N=Y[84],Y[85]!==ej.tools?(O=ej.tools&&(0,v.jsx)(enx,{capability:"globalUserMenu",children:(0,v.jsx)(I.az,{flex:"none",marginLeft:1,children:(0,v.jsx)(eaq,{})})}),Y[85]=ej.tools,Y[86]=O):O=Y[86],Y[87]!==e$||Y[88]!==$||Y[89]!==D||Y[90]!==P||Y[91]!==R||Y[92]!==N||Y[93]!==O?(V=(0,v.jsx)(tL.vE,{children:(0,v.jsxs)(I.so,{align:"center",gap:1,justify:"flex-end",children:[$,A,e$,D,z,P,R,N,O]})}),Y[87]=e$,Y[88]=$,Y[89]=D,Y[90]=P,Y[91]=R,Y[92]=N,Y[93]=O,Y[94]=V):V=Y[94],Y[95]!==w||Y[96]!==T||Y[97]!==V?(M=(0,v.jsxs)(eaG,{gap:1,children:[w,T,V]}),Y[95]=w,Y[96]=T,Y[97]=V,Y[98]=M):M=Y[98],Y[99]!==f||Y[100]!==M?(L=(0,v.jsx)(eaK,{tone:f,borderBottom:!0,"data-testid":"studio-navbar","data-ui":"Navbar",padding:3,sizing:"border",children:M}),Y[99]=f,Y[100]=M,Y[101]=L):L=Y[101],Y[102]!==U||Y[103]!==K||Y[104]!==el||Y[105]!==eI||Y[106]!==ej.tools||Y[107]!==q?(F=!ej.tools&&(0,v.jsx)(er1,{__internal_actions:U,activeToolName:K,isOpen:el,onClose:eI,tools:q}),Y[102]=U,Y[103]=K,Y[104]=el,Y[105]=eI,Y[106]=ej.tools,Y[107]=q,Y[108]=F):F=Y[108],Y[109]!==et||Y[110]!==L||Y[111]!==F?(B=(0,v.jsx)(erV,{children:(0,v.jsxs)(eaJ,{zOffset:100,"data-search-open":et,children:[L,F]})}),Y[109]=et,Y[110]=L,Y[111]=F,Y[112]=B):B=Y[112],B}function eaQ(e){let{render:t}=e;return t?(0,v.jsx)(t,{},e.name):(0,v.jsx)(tL.$n,{iconRight:e?.icon,mode:"bleed",onClick:e?.onAction,selected:e.selected,text:e.title},e.name)}function ea1(e){return"topbar"===e.location}function ea2(e){return!!e}let ea5=(0,eI.I4)(IE).withConfig({displayName:"OptionObserveElement",componentId:"sc-1w3wepe-0"})`list-style:none;white-space:nowrap;flex-shrink:0;
1861opacity:0;visibility:hidden;`,ea0=(0,eI.I4)(I.so).withConfig({displayName:"HiddenRow",componentId:"sc-1w3wepe-1"})`opacity:0;height:0.1px;overflow:hidden;`,ea7=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,S=(0,j.c)(55);S[0]!==e?({children:n,gap:a,menuButtonProps:o,disableRestoreFocusOnClose:r,onMenuClose:l,collapsed:i,...s}=e,S[0]=e,S[1]=n,S[2]=i,S[3]=r,S[4]=a,S[5]=o,S[6]=l,S[7]=s):(n=S[1],i=S[2],r=S[3],a=S[4],o=S[5],l=S[6],s=S[7]);let[T,E]=(0,_.useState)(null);S[8]===Symbol.for("react.memo_cache_sentinel")?(d=[],S[8]=d):d=S[8];let[$,A]=(0,_.useState)(d),[D,z]=(0,_.useState)(!1);S[9]!==n?(c=_.Children.toArray(n).filter(ea2),S[9]=n,S[10]=c):c=S[10];let P=c;e:{let e;if(i||!D){u=null;break e}if(S[11]!==P||S[12]!==$){let t;S[14]!==$?(t=e=>!$.some(t=>t.key===e.key),S[14]=$,S[15]=t):t=S[15],e=P.filter(t),S[11]=P,S[12]=$,S[13]=e}else e=S[13];u=e}let R=u;S[16]!==T?(p={root:T,threshold:1,rootMargin:"1px"},S[16]=T,S[17]=p):p=S[17];let N=p;S[18]!==o?.button?(m=o?.button||(0,v.jsx)(rl,{}),S[18]=o?.button,S[19]=m):m=S[19];let O=m;S[20]!==P||S[21]!==i||S[22]!==$?(h=i?P:P.filter(e=>{let{key:t}=e;return $.find(e=>e.key===t)}),S[20]=P,S[21]=i,S[22]=$,S[23]=h):h=S[23];let V=h;S[24]!==$||S[25]!==D?(f=(e,t)=>{let n=$.some(e=>e.key===t.key);D||z(!0);let i=e.isIntersecting;n||i||A(e=>[...e,t]),n&&i&&A(e=>e.filter(e=>e.key!==t.key))},S[24]=$,S[25]=D,S[26]=f):f=S[26];let M=f;return S[27]===Symbol.for("react.memo_cache_sentinel")?(g={position:"relative"},S[27]=g):g=S[27],S[28]!==i||S[29]!==r||S[30]!==$.length||S[31]!==O||S[32]!==o||S[33]!==V||S[34]!==l?(y=($.length>0||i)&&(0,v.jsx)(II,{disableRestoreFocusOnClose:r,menuButton:O,menuButtonProps:o,menuOptions:V,onMenuClose:l}),S[28]=i,S[29]=r,S[30]=$.length,S[31]=O,S[32]=o,S[33]=V,S[34]=l,S[35]=y):y=S[35],S[36]!==R||S[37]!==a||S[38]!==y?(C=(0,v.jsxs)(I.so,{justify:"center",gap:a,flex:1,children:[R,y]}),S[36]=R,S[37]=a,S[38]=y,S[39]=C):C=S[39],S[40]!==O?(x=(0,_.cloneElement)(O,{disabled:!0,"aria-hidden":!0}),S[40]=O,S[41]=x):x=S[41],S[42]!==P||S[43]!==M||S[44]!==N?(b=P?.map(e=>(0,v.jsx)(ea5,{options:N,onIntersectionChange:t=>M(t[0],e),children:(0,_.cloneElement)(e,{disabled:!0,"aria-hidden":!0,tabIndex:-1})},`${e.key}_observer`)),S[42]=P,S[43]=M,S[44]=N,S[45]=b):b=S[45],S[46]!==a||S[47]!==x||S[48]!==b?(w=(0,v.jsxs)(ea0,{justify:"flex-start",gap:a,ref:E,"data-hidden":!0,"aria-hidden":"true",children:[x,b]}),S[46]=a,S[47]=x,S[48]=b,S[49]=w):w=S[49],S[50]!==t||S[51]!==s||S[52]!==w||S[53]!==C?(k=(0,v.jsxs)(I.so,{direction:"column",ref:t,sizing:"border",style:g,...s,children:[C,w]}),S[50]=t,S[51]=s,S[52]=w,S[53]=C,S[54]=k):k=S[54],k});function ea3(e){let t,n,i,r,a,o=(0,j.c)(13),{activeToolName:l,tools:s}=e,d=enm(),[c,u]=(0,_.useState)(null);o[0]===Symbol.for("react.memo_cache_sentinel")?(t=["arrows"],o[0]=t):t=o[0],o[1]!==c?(n={rootElement:c,navigation:t},o[1]=c,o[2]=n):n=o[2],edr(n),o[3]!==d?(i={popover:{constrainSize:!0,portal:!0,scheme:d,tone:"default"}},o[3]=d,o[4]=i):i=o[4];let p=i;if(o[5]!==l||o[6]!==s){let e;o[8]!==l?(e=(e,t)=>{let n=e?.title||(0,eu.A)(e.name),i=(0,_.forwardRef)(function(t,n){return(0,v.jsx)(enb,{...t,ref:n,name:e.name,children:t.children})});return(0,v.jsx)(tL.$n,{as:i,"data-as":"a",mode:"bleed",selected:l===e.name,text:n},`${e.name}-${t}`)},o[8]=l,o[9]=e):e=o[9],r=s.map(e),o[5]=l,o[6]=s,o[7]=r}else r=o[7];let m=r;return o[10]!==m||o[11]!==p?(a=(0,v.jsx)(I.so,{justify:"center",marginX:4,children:(0,v.jsx)(ea7,{"data-testid":"tool-collapse-menu",gap:1,menuButtonProps:p,ref:u,children:m})}),o[10]=m,o[11]=p,o[12]=a):a=o[12],a}function ea8(e){let t,n,i=(0,j.c)(9),{activeToolName:r,isVisible:a,tools:o}=e;if(i[0]!==r||i[1]!==a||i[2]!==o){let e;i[4]!==r||i[5]!==a?(e=e=>{let t=e?.title||(0,eu.A)(e.name),n=(0,_.forwardRef)(function(t,n){return(0,v.jsx)(enb,{...t,ref:n,name:e.name,children:t.children})});return(0,v.jsx)(I.BJ,{as:"li",children:(0,v.jsx)(tL.$n,{as:n,justify:"flex-start",mode:"bleed",selected:r===e.name,size:"large",tabIndex:a?0:-1,text:t})},e.name)},i[4]=r,i[5]=a,i[6]=e):e=i[6],t=o.map(e),i[0]=r,i[1]=a,i[2]=o,i[3]=t}else t=i[3];return i[7]!==t?(n=(0,v.jsx)(I.BJ,{as:"ul",space:1,children:t}),i[7]=t,i[8]=n):n=i[8],n}let ea4=["releases"];function ea6(e){let t,n,i,r,a,o,l=(0,j.c)(17);l[0]!==e?({context:t,isSidebarOpen:n,tools:r,...i}=e,l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r):(t=l[1],n=l[2],i=l[3],r=l[4]);let{enabled:s}=K5();if(l[5]!==s||l[6]!==r){let e;l[8]!==s?(e=e=>("schedules"!==e.name||!!s)&&!ea4.includes(e.name),l[8]=s,l[9]=e):e=l[9],a=r.filter(e),l[5]=s,l[6]=r,l[7]=a}else a=l[7];let d=a;if(d.length<=1)return null;if("sidebar"===t){let e;return l[10]!==n||l[11]!==i||l[12]!==d?(e=(0,v.jsx)(ea8,{isVisible:n,tools:d,...i}),l[10]=n,l[11]=i,l[12]=d,l[13]=e):e=l[13],e}return l[14]!==i||l[15]!==d?(o=(0,v.jsx)(ea3,{tools:d,...i}),l[14]=i,l[15]=d,l[16]=o):o=l[16],o}let ea9=(0,tW.g_)({name:"Field Copied",version:1,description:'User clicked the "Copy field" button in the field action menu or used the Ctrl+C shortcut'}),eoe=(0,tW.g_)({name:"Field Pasted",version:1,description:'User clicked the "Paste field" button in the field action menu or used the Ctrl+V shortcut'}),eot="web application/vnd.sanity-clipboard-item+json",eon="text/html",eoi="text/plain",eor="web application/x-portable-text",eoa="u">typeof ClipboardItem&&"supports"in ClipboardItem&&ClipboardItem.supports(eot),eoo="u">typeof ClipboardItem&&"supports"in ClipboardItem&&ClipboardItem.supports(eor),eol="sanity-clipboard-base64";async function eos(){for(let e of(await navigator.clipboard.read())){let t=await eou(e);if(t)return t}return null}function eod(e){return"object"==typeof e&&null!==e&&"_type"in e}async function eoc(e){var t;let n=eom(e.value),i=function(e){let t=new TextEncoder().encode(e),n="";for(let e=0;e<t.byteLength;e++)n+=String.fromCharCode(t[e]);return btoa(n)}(JSON.stringify(e)),r=!!Array.isArray(t=e.value)&&t.some(e=>eod(e)&&(0,nQ.IG)(e)),a=function(e){if(!e)return"";if(rq(e))return`<p>${eop(e)}</p>`;if(Number.isFinite(e))return`<p>${e}</p>`;if(Array.isArray(e)){if(e.some(e=>eod(e)&&(0,nQ.IG)(e)))return(0,ic.FE)(e);
1861let t=e.map(eom).filter(Boolean).join(", ");return t?`<p>${eop(t)}</p>`:""}if("object"==typeof e){if(eod(e)&&(0,nQ.IG)(e))return(0,ic.FE)([e]);let t=Object.entries(e).map(([e,t])=>e.startsWith("_")?"":eom(t)).filter(Boolean).join(", ");return t?`<p>${eop(t)}</p>`:""}return""}(e.value),o=`<div data-${eol}="${i}">${a}</div>`,l=new ClipboardItem({...eoa&&{[eot]:new Blob([JSON.stringify(e)],{type:eot})},...r&&eoo&&{[eor]:new Blob([JSON.stringify(e.value)],{type:eor})},[eon]:new Blob([o],{type:eon}),[eoi]:new Blob([n],{type:eoi})});try{return await navigator.clipboard.write([l]),!0}catch(e){if("NotAllowedError"===e.name)throw e;return console.error(`Failed to write to clipboard: ${e.message}`,e),!1}}async function eou(e){if(e.types.includes(eot))return JSON.parse(await (await e.getType(eot)).text());if(!e.types.includes(eon))return null;let t=await (await e.getType(eon)).text(),n=new DOMParser().parseFromString(t,"text/html");try{let e=n.querySelector(`[data-${eol}]`);if(!e)return null;let{sanityClipboardBase64:t}=e.dataset;return t?JSON.parse(function(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return new TextDecoder().decode(n)}(t)):null}catch{return null}}function eop(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function eom(e){return e?rq(e)?e:Number.isFinite(e)?e.toString():Array.isArray(e)?e.some(e=>eod(e)&&(0,nQ.IG)(e))?(0,nQ.bo)(e):e.map(eom).filter(Boolean).join(", "):"object"==typeof e?eod(e)&&(0,nQ.IG)(e)?(0,nQ.bo)(e):Object.entries(e).map(([e,t])=>e.startsWith("_")?"":eom(t)).filter(Boolean).join(", "):"":""}function eoh(e){if(null==e)return!0;if("object"==typeof e){let t=Object.keys(e);if(1===t.length&&"_key"===t[0])return!0}return!!(Array.isArray(e)&&0===e.length)}function eof(e){return!!(e instanceof HTMLElement&&e.isContentEditable||e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)}function eog(e){return 0===e.length||1===e.length&&""===e[0]}async function eoy(e){let{targetRootPath:t,rootDocumentValue:n,referencedDocument:i,getClient:r,schemaTypeOptions:a}=e;if(!a.filter)return!0;let o=await yM({options:a,document:n,valuePath:t,perspective:[],getClient:r});if(!o.filter)return!0;try{let e=o.params||{},t=`*[${o.filter}]`,n=(0,iY.qg)(t,e),r=await (await (0,iY._3)(n,{params:e,dataset:[i]})).get();return!eoh(r)}catch(e){return console.error("Error evaluating GROQ filter:",e),!1}}let eoC=()=>y4(12);async function eox({sourceRootSchemaType:e,sourcePath:t,sourceValue:n,sourceRootPath:i=[],targetRootSchemaType:r,targetRootValue:a,targetRootPath:o,targetValue:l,targetPath:s,keyGenerator:d=eoC,targetDocumentSchemaType:c,currentUser:u,options:p={validateReferences:!0,validateAssets:!0,client:void 0}}){let m=[];if(!e)throw Error("Source root schema type is not defined");if(!r)throw Error("Target root schema type is not defined");let h=Bw(e,t,n),f=Bw(r,s,l);if(!h)throw Error("Could not find source schema type at path");if(!f)throw Error("Could not find target schema type at path");let g=sw(r.readOnly,{value:a,parent:null,document:a,currentUser:u,path:o}),y=sw(f.readOnly,{value:l,parent:null,document:a,currentUser:u,path:s}),C=function({path:e,value:t,schemaType:n,currentUser:i}){return!!e.find((r,a)=>{let o=e.slice(0,a+1),l=Bw(n,o,t);if(!l)throw Error(`Could not find target schema type at path ${e.join(".")}`);return sw(l.readOnly,{value:t,parent:null,document:t,currentUser:i,path:o})})}({path:o,value:a,schemaType:c,currentUser:u});if(g||y||C)return{targetValue:void 0,errors:[{level:"error",sourceValue:n,i18n:{key:"copy-paste.on-paste.validation.read-only-target.description"}}]};if((0,eD.wD)(h)&&(0,eD.F0)(f)||(0,eD.F0)(h)&&(0,eD.wD)(f))return{targetValue:void 0,errors:[{level:"error",sourceValue:n,i18n:{key:"copy-paste.on-paste.validation.image-file-incompatible.description",args:{sourceSchemaType:e.name,targetSchemaType:r.name}}}]};let x=h.jsonType,b=f.jsonType,v=(0,ep.A)(i),j="u">typeof v&&(0,eD.wr)(v),w=0===t.length&&"array"===x&&!Array.isArray(n)&&j,_=(["number","string","boolean"].includes(x)||w)&&(0,eD.gw)(f),k="object"===x&&(0,eD.m5)(f);
1861if(!(x===b||function e(t,n){return rZ(t)&&rZ(n)&&("number"===t.jsonType&&"string"===n.jsonType||e(t.type,n.type))}(h,f)||function e(t,n){return rZ(t)&&rZ(n)&&("number"===t.jsonType&&(0,eD.gw)(n)&&n.of.map(e=>e.jsonType).includes("string")||e(t.type,n.type))}(h,f)||_||k))return{targetValue:void 0,errors:[{level:"error",sourceValue:n,i18n:{key:"copy-paste.on-paste.validation.schema-type-incompatible.description"}}]};let S=oi(n,t);if("object"===h.jsonType&&"object"===f.jsonType)return eob({sourceValue:S,targetSchemaType:f,targetRootValue:a,targetRootPath:o,targetPath:[],errors:m,keyGenerator:d,options:p});if("array"===h.jsonType&&"array"===f.jsonType)return eoj({sourceValue:w&&!Array.isArray(S)?[S]:S,targetSchemaType:f,targetRootValue:a,targetRootPath:o,errors:m,options:p,keyGenerator:d});if(_||k){let e;e=k&&(0,eD.Kk)(S)&&"object"===S._type||!(0,eD.Kk)(S)?function(e){if(0===e.length)return"object";let t=e[e.length-1];return(0,eD.tA)(t)||(0,eD.wr)(t)||(0,eD.Z9)(t)?"object":t}(i):(0,eD.Kk)(S)?S._type:"object";let t=k&&!Array.isArray(S)?[{...S,_type:e,_key:d()}]:[S];return eoj({sourceValue:Array.isArray(S)?S:t,targetSchemaType:f,targetRootValue:a,targetRootPath:o,errors:m,options:p,keyGenerator:d})}return eow({sourceValue:S,targetSchemaType:f,errors:m})}async function eob({sourceValue:e,targetSchemaType:t,targetPath:n,targetRootValue:i,targetRootPath:r,errors:a,keyGenerator:o,options:l}){if(eoh(e))return{targetValue:void 0,errors:a};let s={...(0,eD.Kk)(e)?{_type:t.name}:{},...e&&"object"==typeof e&&"_key"in e?{_key:o()}:{}},d=(0,tQ.oX)(e)&&(0,eD.A_)(e.asset)?e.asset._ref:void 0,c=(0,eD.Kk)(e)?e._type:void 0,u=d&&(0,tQ.FF)(d),p=d&&(0,tQ.Y9)(d),m=("image"===c||u)&&!(0,eD.F0)(t),h=("file"===c||p)&&!(0,eD.wD)(t);if((0,eD.Kk)(e)&&(m||h))return a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.image-file-incompatible.description",args:{sourceSchemaType:c,targetSchemaType:t.name}}}),{targetValue:void 0,errors:a};if(l?.validateAssets&&l.client&&((0,eD.F0)(t)||(0,eD.wD)(t))&&t.options?.accept&&(0,tQ.oX)(e)&&(0,eD.A_)(e.asset)){let n=e.asset?._ref;if(!n)return{targetValue:void 0,errors:a};try{let i=(0,eD.F0)(t)?"sanity.imageAsset":"sanity.fileAsset",r=await l.client.fetch("*[_type == $type &&_id == $ref][0]{mimeType, originalFilename}",{ref:n,type:i});if(!r)return{targetValue:void 0,errors:a};let o={type:r.mimeType,name:r.originalFilename},s=r.mimeType;if(!C$(o,t.options.accept))return a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.mime-type-incompatible.description",args:{mimeType:s}}}),{targetValue:void 0,errors:a}}catch(t){return console.error("Error fetching asset document:",t),a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.mime-type-validation-failed.description"}}),{targetValue:void 0,errors:a}}}if((0,eD.do)(t)){let n=t.to.map(e=>e.name);if(l?.validateReferences&&l.client&&(0,eD.A_)(e))try{let o=t.options?.filter?"*[_id in $ids]|order(_updatedAt)[0]":"*[_id in $ids]|order(_updatedAt)[0]{_id, _type}",{publishedId:s,draftId:d}=rA(e._ref),c=await l.client.fetch(o,{ids:[s,d]});if(!c&&!t.weak)return a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.reference-validation-failed.description",args:{ref:e._ref}}}),{targetValue:void 0,errors:a};if(c&&!n.includes(c._type))return a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.reference-type-incompatible.description",args:{sourceReferenceType:c._type,targetReferenceTypes:n.join(", ")}}}),{targetValue:void 0,errors:a};if(l.client&&t.options?.filter&&!await eoy({rootDocumentValue:i||{},referencedDocument:c,schemaTypeOptions:t.options,targetRootPath:r,getClient:e=>l.client.withConfig(e)}))return a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.reference-filter-incompatible.description"}}),{targetValue:void 0,errors:a}}catch(t){return console.error("Error fetching reference document:",t),a.push({level:"error",sourceValue:s,i18n:{key:"copy-paste.on-paste.validation.reference-validation-failed.description",args:{ref:e._ref}}}),{targetValue:void 0,errors:a}}}let f={},g=(0,eD.Pb)(t)&&(0,eD.L4)(e)&&!eoh(e.markDefs);if(g){let t=e.markDefs||[];t.filter(e=>
1861e._key).forEach(e=>{f[e._key]=o()}),s.markDefs=t.map(e=>({...e,_key:f[e._key]}))}for(let d of t.fields){let c=d.type,u=(0,eD.zR)(c),p=(0,eD.$d)(c);if((0,eD.zZ)(c)){let t=eow({sourceValue:e?e[d.name]:void 0,targetSchemaType:c,errors:a});eoh(t.targetValue)||(s[d.name]=t.targetValue)}else if(p){let t=await eob({sourceValue:oi(e,n.concat(d.name)),targetPath:[],targetSchemaType:c,targetRootValue:i,targetRootPath:r,errors:a,options:l,keyGenerator:o});eoh(t.targetValue)||(s[d.name]=eo_(t.targetValue))}else if(u){let n=e?e[d.name]:void 0,u=await eoj({sourceValue:n,targetSchemaType:c,targetRootValue:i,targetRootPath:r,errors:a,options:l,keyGenerator:o});if(g&&"markDefs"===d.name&&!eoh(s.markDefs))continue;let p=Array.isArray(n)&&0===n.length&&("markDefs"===d.name&&(0,eD.Pb)(t)||"marks"===d.name&&(0,eD.Yg)(t));eoh(u.targetValue)?p&&(s[d.name]=[]):s[d.name]=u.targetValue}}let y=eo_(oi(s,n));return Object.keys(f).length>0&&(0,eD.L4)(y)&&(y.children=y.children.map(e=>(0,eD.bn)(e)&&e.marks?{...e,marks:e.marks.map(e=>f[e]||e)}:e)),(0,eD.do)(t)&&(t.weak?y._weak=!0:delete y._weak),(0,eD.do)(t)&&(0,eD.A_)(e)&&e._strengthenOnPublish&&(y._weak=!0,y._strengthenOnPublish=e._strengthenOnPublish),{targetValue:y,errors:a}}function eov(e,t){let n=(0,nq.yu)(e);return t.of.find(e=>e.name===n)}async function eoj({sourceValue:e,targetSchemaType:t,targetRootValue:n,targetRootPath:i,errors:r,options:a,keyGenerator:o}){let l;if(!e||!Array.isArray(e))return{targetValue:void 0,errors:[{level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.array-type-incompatible.description",args:{type:typeof e}}}]};let s=(0,eD.gw)(t),d=(0,eD.m5)(t);if(s){let n=t.of.map(e=>e.jsonType),i=n.includes("number"),a=e.filter(e=>!!("string"==typeof e&&n.includes("string")||"number"==typeof e&&(n.includes("number")||n.includes("string"))||"boolean"==typeof e&&n.includes("boolean"))).map(e=>i||"number"!=typeof e?e:`${e}`),o=e.filter(e=>!a.includes(i||"number"!=typeof e?e:`${e}`));o.length>0&&o.forEach(e=>{r.push({level:a.length>0?"warning":"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.array-value-incompatible.description",args:{type:typeof e}}})}),a.length>0&&(l=a)}if(d){let s=e.filter(e=>void 0!==eov(e,t)),d=e.filter(e=>void 0===eov(e,t));l=0===s.length?void 0:(await Promise.all(s.map(e=>eob({sourceValue:e,targetSchemaType:eov(e,t),targetPath:[],targetRootValue:n,targetRootPath:i,errors:r,options:a,keyGenerator:o})))).map(e=>e.targetValue).filter(e=>!eoh(e)),d.length>0&&d.forEach(e=>{r.push({level:s.length>0?"warning":"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.array-value-incompatible.description",args:{type:(0,nq.yu)(e)}}})})}return{targetValue:l,errors:r}}function eow({sourceValue:e,targetSchemaType:t,errors:n}){let i;if(typeof e>"u")return{targetValue:void 0,errors:n};let r=t.jsonType===typeof e,a="number"==typeof e&&"string"===t.jsonType;if(r||a){let r="string"==typeof e||"number"==typeof e;if(((0,eD.F3)(t)||(0,eD.pZ)(t))&&r){let i=t.options?.list?.map(e=>"string"==typeof e||"number"==typeof e?e:e.value)||[];i.length>0&&!i.includes(e)&&n.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.string-value-incompatible.description",args:{value:e,allowedStrings:i}}})}i=a?`${e}`:e}else n.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.primitive-type-incompatible.description",args:{type:typeof e}}});return{targetValue:i,errors:n}}function eo_(e){let t=new Set(["_id","_createdAt","_updatedAt","_rev"]);return Object.keys(e).reduce((n,i)=>t.has(i)?n:{...n,[i]:e[i]},{})}let eok=e=>{let t,n,i,r,a,o=(0,j.c)(20),{children:l}=e,s=(0,T.dj)(),d=(0,tK.Jr)(),c=R8(),u=o5(),{t:p}=as("copy-paste"),m=el0(ob),[h,f]=(0,_.useState)(null);o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{let{documentId:t,documentType:n,schemaType:i,onChange:r}=e,a={documentId:(0,tG.IM)(t),documentType:n,schemaType:i,onChange:r};f(e=>(0,D.A)(e,a)?e:a)},o[0]=t):t=o[0];let g=t;o[1]!==h||o[2]!==p||o[3]!==d||o[4]!==s?(n=async(e,t,n)=>{if(!h)return;let{documentId:i,documentType:r,schemaType:a}=h,o=Bw(a,e,t);if(!o)return void s.push({status:"error",title:p("copy-paste.on-copy.validation.schema-type-incompatible.title",{path:w.dI(e)})});let l=o.type?.name==="document",c=oi(t,e);if(eoh(c))return void s.push({status:"warning",title:p("copy-paste.on-copy.validation.no-value.title")});let u=e.length>0?(0,ep.A)(e):void 0,m=u&&((0,eD.tA)(u)||(0,eD.wr)(u)),f="arrayItem"===n.context.source||m||"append"===n.patchType,g=f&&m?e.slice(0,-1):e,y=m&&!Array.isArray(c),C={type:"sanityClipboardItem",documentId:i,documentType:r,isDocument:l,sc
1861hemaTypeName:o.name,valuePath:g,value:y?[c]:c,patchType:f?"append":"replace"};d.log(ea9,{context:n?.context?.source||"unknown",schemaTypes:[o.jsonType]});try{await eoc(C)||s.push({status:"error",title:p("copy-paste.on-copy.validation.clipboard-not-supported.title"),description:p("copy-paste.on-copy.validation.clipboard-not-supported.description")})}catch(e){if("NotAllowedError"===e.name)s.push({status:"error",title:p("copy-paste.on-copy.validation.clipboard-not-supported.title"),description:p("copy-paste.on-copy.validation.clipboard-not-supported.description")});else throw e}},o[1]=h,o[2]=p,o[3]=d,o[4]=s,o[5]=n):n=o[5];let y=n;o[6]!==m||o[7]!==u||o[8]!==h||o[9]!==c||o[10]!==p||o[11]!==d||o[12]!==s?(i=async(e,t,n)=>{if(!h)return;let{schemaType:i,onChange:r}=h,a=Bw(i,e,t),o=null;try{o=await eos()}catch(e){"NotAllowedError"===e.name&&s.push({status:"error",title:p("copy-paste.on-copy.validation.clipboard-not-supported.title"),description:p("copy-paste.on-copy.validation.clipboard-not-supported.description")});return}if(!o)return void s.push({status:"info",title:p("copy-paste.on-paste.validation.clipboard-empty.title")});if(!o.documentType)return void s.push({status:"error",title:p("copy-paste.on-paste.validation.clipboard-invalid.title")});let l=c.get(o.documentType);if(!l)return void s.push({status:"error",title:p("copy-paste.on-paste.validation.clipboard-invalid.title")});let f=[],g=[],y=Bw(l,o.valuePath,t);if(!y)return void s.push({status:"error",title:p("copy-paste.on-paste.validation.schema-type-incompatible.title",{path:w.dI(o.valuePath)})});if(!i)return void s.push({status:"error",title:p("copy-paste.on-paste.validation.schema-type-incompatible.title",{path:w.dI(e)})});let C=a.title||a.name,x={targetDocumentSchemaType:i,sourceRootSchemaType:y,sourcePath:[],sourceRootPath:o.valuePath,sourceValue:o.value,targetRootSchemaType:a,targetPath:[],targetRootPath:e,targetRootValue:t,currentUser:u,options:{validateAssets:!0,validateReferences:!0,client:m}};g.push(y.jsonType);let b=async()=>{let{targetValue:t,errors:n}=await eox(x),i=n.filter(eoI),r=eoh(t);if(i.length>0){let e=p(i[0].i18n.key,i[0].i18n.args);s.push({status:"error",title:p("copy-paste.on-paste.validation.clipboard-invalid.title"),description:e});return}if(n.length>0&&!r){let e=n.map(e=>p(e.i18n.key,e.i18n.args)).join(", ");s.push({status:"warning",title:p("copy-paste.on-paste.validation.partial-warning.title"),description:e})}if(r)return void s.push({status:"warning",title:p("copy-paste.on-paste.validation.clipboard-empty.title")});let l=o?.patchType||"replace",d="array"!==o.schemaTypeName&&"array"===a.jsonType||"append"===l,c=d&&e.length>0&&"array"===a.jsonType,u=d&&e.length>0?[...e.slice(0,-1),`${e.slice(-1)?.[0]}[-1]`]:e,m="array"===a.jsonType?[hU([],e)]:[];f.push({patches:c?[...m,hZ(t,"after",u)]:[...m,hq(t,e)],targetSchemaTypeTitle:C})};try{await b()}catch(e){s.push({status:"error",title:e.message});return}if(d.log(eoe,{context:n?.context?.source||"unknown",schemaTypes:g}),f.length){let e=(0,M.A)(f.map(eoT));r(gD.from(e))}},o[6]=m,o[7]=u,o[8]=h,o[9]=c,o[10]=p,o[11]=d,o[12]=s,o[13]=i):i=o[13];let C=i;o[14]!==y||o[15]!==C?(r={setDocumentMeta:g,onCopy:y,onPaste:C},o[14]=y,o[15]=C,o[16]=r):r=o[16];let x=r;return o[17]!==l||o[18]!==x?(a=(0,v.jsx)(S.Uc.Provider,{value:x,children:l}),o[17]=l,o[18]=x,o[19]=a):a=o[19],a},eoS=()=>{let e=(0,_.useContext)(S.Uc);if(!e)throw Error("useCopyPaste must be used within a CopyPasteProvider");return e};function eoI(e){return"warning"!==e.level}function eoT(e){let{patches:t}=e;return t}async function eoE(e){let{workspaces:t,resolveSchemaDescriptorId:n,resolveIcon:i,bundleVersion:r,buildId:a}=e;return{buildId:a,bundleVersion:r,workspaces:(await Promise.all(t.map(async e=>{let t=await n(e);return t?{name:e.name,projectId:e.projectId,dataset:e.dataset,schemaDescriptorId:t,basePath:e.basePath||void 0,title:e.title||void 0,subtitle:e.subtitle||void 0,icon:i(e),mediaLibraryId:e.mediaLibrary?.enabled?e.mediaLibrary.libraryId:void 0}:null}))).filter(e=>null!==e)}}let eo$={ALLOWED_ATTR:["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan","alt","crossorigin","decoding","elementtiming","fetchpriority","loading","src","srcset"],ALLOWED_TAGS:["img","style","svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","switch","symbol","text","textpath","title","tref","tspan","view","vkern","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]},eoA=typeof __SANITY_BUILD_TIMESTAMP__>"u"?void 0:`${__SANITY_BUILD_TIMESTAMP__}`;async function eoD(e){let t=e.__internal.sources[0];if(t)return(0,tp._)(t.source)}async function eoz(e){return await (await eoD(e))?.__internal?.schemaDescriptorId}async function eoP(e,t,n){let{id:i,projectId:r}=e,a=t.find(e=>e.projectId===r);if(!a)return;let o=await eoE({workspaces:t,resolveSchemaDescriptorId:eoz,resolveIcon:e=>(e=>{try{let t=function(e,t,n=""){return(0,tU.isValidElementType)(e)?(0,v.jsx)(e,{}):(0,_.isValidElement)(e)?e:YO(t,n)}(e.icon,e.title,e.subtitle),n=(0,v.jsx)(I.NP,{theme:e.theme,children:t}),i=(0,id.qV)(n).trim();return iL.sanitize(i,eo$)}catch{return}})({icon:e.icon,title:e.title||e.name,subtitle:e.subtitle,theme:n}),bundleVersion:tV.s,buildId:eoA});if(0===o.workspaces.length)return;let{client:l,authenticated:s}=await (0,tp._)(a.auth.state);s&&await l.withConfig(ob).request({method:"POST",uri:`/projects/${r}/user-applications/${i}/config/live-manifest`,body:{value:o},tag:"live-manifest-register"})}let eoR=tH("sanity:manifest");
1861function eoN(){let e,t,n=(0,j.c)(5),i=rc(),{userApplication:r}=eas(),{theme:a}=(0,I.GG)();return n[0]!==a||n[1]!==r||n[2]!==i?(e=()=>{r&&0!==i.length&&eoP(r,i,a).catch(eoO)},t=[r,i,a],n[0]=a,n[1]=r,n[2]=i,n[3]=e,n[4]=t):(e=n[3],t=n[4]),(0,_.useEffect)(e,t),null}function eoO(e){eoR("Failed to upload studio manifest",e)}let eoV=(0,eI.DU)(e=>{let t,{color:n,font:i}=(0,nN.JW)(e.theme);return(0,eI.AH)` 1862 ::-webkit-resizer { 1863 background-image: ${t=encodeURIComponent(n.icon),`url("data:image/svg+xml,%3Csvg width='9' height='9' viewBox='0 0 9 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 8L8 1' stroke='${t}' stroke-linecap='round'/%3E%3Cpath d='M5 8L8 5' stroke='${t}' stroke-linecap='round'/%3E%3C/svg%3E%0A")`}; 1864 background-repeat: no-repeat; 1865 background-position: bottom right; 1866 } 1867 1868 ::-webkit-scrollbar { 1869 width: ${12}px; 1870 height: ${12}px; 1871 } 1872 1873 ::-webkit-scrollbar-corner { 1874 background-color: transparent; 1875 } 1876 1877 ::-webkit-scrollbar-thumb { 1878 background-clip: content-box; 1879 background-color: var(--card-border-color, ${n.border}); 1880 border: ${4}px solid transparent; 1881 } 1882 1883 ::-webkit-scrollbar-thumb:hover { 1884 background-color: var(--card-muted-fg-color, ${n.muted.fg}); 1885 } 1886 1887 ::-webkit-scrollbar-track { 1888 background: transparent; 1889 } 1890 1891 *::selection { 1892 background-color: ${(0,nN.B3)(n.focusRing,.3)}; 1893 } 1894 1895 html { 1896 background-color: ${n.bg}; 1897 } 1898 1899 body { 1900 scrollbar-gutter: stable; 1901 } 1902 1903 #sanity { 1904 font-family: ${i.text.family}; 1905 } 1906 1907 b { 1908 font-weight: ${i.text.weights.medium}; 1909 } 1910 1911 strong { 1912 font-weight: ${i.text.weights.medium}; 1913 } 1914 `});function eoM(e){let t,n,i,r,a,o=(0,j.c)(20),{children:l,selectedPerspectiveName:s,excludedPerspectives:d}=e,c=void 0===d?rM:d,{data:u}=gU(),{document:p}=cY(),{drafts:m}=p,{enabled:h}=m;o[0]!==u||o[1]!==s?(t=Yr(s,u),o[0]=u,o[1]=s,o[2]=t):t=o[2];let f=t;o[3]!==c||o[4]!==h||o[5]!==u||o[6]!==s?(n=function({selectedPerspectiveName:e,releases:t,excludedPerspectives:n,isDraftModelEnabled:i}){let r=i?gY:gH;if(!e)return r;if("published"===e)return gH;let a=gB(t).map(e=>cN(e._id)),o=a.indexOf(e);return -1===o?[e,...r]:a.slice(o).concat(r).filter(e=>!n.includes(e))}({releases:u,selectedPerspectiveName:s,excludedPerspectives:c,isDraftModelEnabled:h}),o[3]=c,o[4]=h,o[5]=u,o[6]=s,o[7]=n):n=o[7];let g=n;o[8]!==u||o[9]!==s?(i=rR(s)?void 0:u.map(eoL).find(e=>e===s),o[8]=u,o[9]=s,o[10]=i):i=o[10],o[11]!==c||o[12]!==g||o[13]!==f||o[14]!==s||o[15]!==i?(r={selectedPerspective:f,selectedPerspectiveName:s,selectedReleaseId:i,perspectiveStack:g,excludedPerspectives:c},o[11]=c,o[12]=g,o[13]=f,o[14]=s,o[15]=i,o[16]=r):r=o[16];let y=r;return o[17]!==l||o[18]!==y?(a=(0,v.jsx)(S.A3.Provider,{value:y,children:l}),o[17]=l,o[18]=y,o[19]=a):a=o[19],a}function eoL(e){return cN(e._id)}function eoF(e){let t,n,i=(0,j.c)(6),{children:r}=e,a=(0,nU.rd)(),{document:o}=cY(),{drafts:l}=o,{enabled:s}=l,d=a.stickyParams.perspective;!s&&typeof d>"u"&&(d=uC),i[0]!==a.stickyParams.excludedPerspectives?(t=a.stickyParams.excludedPerspectives?.split(",")||rM,i[0]=a.stickyParams.excludedPerspectives,i[1]=t):t=i[1];let c=t;return i[2]!==r||i[3]!==c||i[4]!==d?(n=(0,v.jsx)(eoM,{selectedPerspectiveName:d,excludedPerspectives:c,children:r}),i[2]=r,i[3]=c,i[4]=d,i[5]=n):n=i[5],n}let eoB=tH("sanity:store");function eoY(e){let t,n,i,r,a=(0,j.c)(5),{children:o}=e,l=(0,_.useContext)(S.b1);a[0]!==l?(t=l||(i={},r={},{get:async e=>{let{projectId:t}=e.config();if(void 0===t)return[];let n=r[t];if(n)return Promise.all((await n).map(e=>i[e]));let a=e.withConfig(ob).request({method:"GET",url:`/projects/${t}/user-applications`,tag:"user-application-cache.fetch-user-applications"}).then(e=>(r[t]=e.map(e=>(i[e.id]=e,e.id)),e)).catch(e=>(eoB("Fetching user application failed.",{err:e}),delete r[t],[]));return r[t]=a.then(e=>e.map(e=>e.id)),a}}),a[0]=l,a[1]=t):t=a[1];let s=t;return a[2]!==s||a[3]!==o?(n=(0,v.jsx)(S.b1.Provider,{value:s,children:o}),a[2]=s,a[3]=o,a[4]=n):n=a[4],n}function eoH(e){let t,n,i,r,a,o=(0,j.c)(16),{children:l,AuthenticateComponent:s,LoadingComponent:d,NotAuthenticatedComponent:c}=e,u=void 0===s?eiP:s,p=void 0===d?ry:d,m=void 0===c?eiB:c,[h,f]=(0,_.useState)(null);if(h)throw h;let[g,y]=(0,_.useState)("loading"),[C,x]=(0,_.useState)(),{activeWorkspace:b}=B8();if(o[0]!==b.auth?(t=()=>{b.auth.handleCallbackUrl?.().catch(f)},n=[b.auth],o[0]=b.auth,o[1]=t,o[2]=n):(t=o[1],n=o[2]),(0,_.useEffect)(t,n),o[3]!==b.auth.state?(i=()=>{let e=b.auth.state.subscribe({next:e=>{let{authenticated:t,currentUser:n}=e;if(t&&(!Array.isArray(n?.roles)||0===n.roles.length)){y("unauthorized"),n?.provider&&x(n.provider);return}y(t?"logged-in":"logged-out")},error:f});return()=>{e.unsubscribe()}},o[3]=b.auth.state,o[4]=i):i=o[4],o[5]!==b?(r=[b],o[5]=b,o[6]=r):r=o[6],(0,_.useEffect)(i,r),"loading"===g){let e;return o[7]!==p?(e=(0,v.jsx)(p,{}),o[7]=p,o[8]=e):e=o[8],e}if("unauthorized"===g){let e;if(!C||"sanity"===C){let e;return o[9]!==m?(e=(0,v.jsx)(m,{}),o[9]=m,o[10]=e):e=o[10],e}return o[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,v.jsx)(eiH,{}),o[11]=e):e=o[11],e}if("logged-out"===g){let e;return o[12]!==u?(e=(0,v.jsx)(u,{}),o[12]=u,o[13]=e):e=o[13],e}return o[14]!==l?(a=(0,v.jsx)(v.Fragment,{children:l}),o[14]=l,o[15]=a):a=o[15],a}let eoU=()=>((function(){let e,t,n=(0,j.c)(4),{node:i}=cy(),{navigateUrl:r}=(0,nU.rd)();n[0]!==r||n[1]!==i?(e=()=>i?.on("dashboard/v1/history/change-path",e=>{let{path:t}=e;r({path:t.replace(/^\/+/,"/"),replace:!1})}),t=[r,i],n[0]=r,n[1]=i,n[2]=e,n[3]=t):(e=n[2],t=n[3]),(0,_.useEffect)(e,t)})(),null);async function eoZ(e,t){if(typeof window>"u"||!window.location||0===t.length)return;let n=t[0],i=await (0,tp._)(n.auth.state);if(!i.authenticated)return;let r="sanity.studio";
1914return void 0!==n.apiHost&&n.apiHost.includes("sanity.work")&&(r="studio.sanity.work"),(await e.get(i.client)).reduce((e,t)=>{var n;let i=(n=r,"internal"===t.urlType?`https://${t.appHost}.${n}`:t.appHost);return i&&function({origin:e,pathname:t},n){let i=new URL(n);if(e!==i.origin)return!1;let r=i.pathname;return t===r||t.startsWith(r.endsWith("/")?r:`${r}/`)}(window.location,i)&&i.length>e[1].length?[t,i]:e},[void 0,""])[0]}let eoq=tH("studio:live-user-application");function eoW(e){let t,n,i,r,a=(0,j.c)(10),{children:o}=e,[l,s]=(0,_.useState)(void 0),[d,c]=(0,_.useState)(!0),u=rc(),p=function(){let e=(0,_.useContext)(S.b1);if(!e)throw Error("UserApplicationCache: missing context value. Ensure the component is wrapped in a UserApplicationCacheProvider.");return e}();a[0]!==p||a[1]!==u?(t=()=>{let e=!0;return c(!0),eoZ(p,u).then(t=>{e&&(s(t),c(!1))}).catch(t=>{eoq("Error when determining live user application id:",t),e&&(s(void 0),c(!1))}),()=>{e=!1}},n=[p,u],a[0]=p,a[1]=u,a[2]=t,a[3]=n):(t=a[2],n=a[3]),(0,_.useEffect)(t,n),a[4]!==d||a[5]!==l?(i={userApplication:l,isLoading:d},a[4]=d,a[5]=l,a[6]=i):i=a[6];let m=i;return a[7]!==o||a[8]!==m?(r=(0,v.jsx)(S.HP.Provider,{value:m,children:o}),a[7]=o,a[8]=m,a[9]=r):r=a[9],r}let eoJ={apiVersion:"2023-12-18"};function eoK(e){let t,n,i=(0,j.c)(6),{errorReporter:r}=e,a=el0(eoJ);return i[0]!==a.observable||i[1]!==r?(t=()=>{let e=a.observable.request({uri:"/intake/telemetry-status",tag:"telemetry-consent.error-reporting"}).subscribe({next:e=>{e?.status==="granted"?r.enable():r.disable()},error:eoG});return()=>e.unsubscribe()},i[0]=a.observable,i[1]=r,i[2]=t):t=i[2],i[3]!==a||i[4]!==r?(n=[a,r],i[3]=a,i[4]=r,i[5]=n):n=i[5],(0,_.useEffect)(t,n),null}function eoG(e){console.error("Error fetching telemetry status",e)}let eoX="u">typeof __SANITY_STAGING__&&!0===__SANITY_STAGING__,eoQ=`${eoX?"https://sanity-cdn.work":"https://sanity-cdn.com"}/v1/modules`;function eo1(){return Math.floor(Date.now()/1e3)}let eo2=async e=>{let{packageName:t,minVersion:n,appId:i}=e;try{return(await fetch(function({packageName:e,minVersion:t,appId:n}){let i=eo1();return`${eoQ}/by-app/${n}/t${i}/^${t.version}/${e}`}({appId:i,packageName:t,minVersion:n}),{headers:{accept:"application/json"}})).json().then(e=>e.packageVersion)}catch(e){console.error(Error(`Failed to fetch version for package "${t}" (using appId=${i})`,{cause:e}));return}},eo5=async e=>{let{packageName:t,minVersion:n,tag:i="latest"}=e;try{return(await fetch(function({packageName:e,minVersion:t,tag:n="latest"}){let i=eo1();return`${eoQ}/${e}/${n}/^${t.version}/t${i}`}({packageName:t,minVersion:n,tag:i}),{headers:{accept:"application/json"}})).json().then(e=>e.latest)}catch(e){console.error(`Failed to fetch version for package (using tag=${i})`,t,"Error:",e);return}},eo0=/^\/v1\/modules\/sanity\/[^/]+\/[^/]+\/[^/]+\/?$/,eo7=/^\/v1\/modules\/by-app\/[^/]+\/[^/]+\/[^/]+\/[^/]+\/?$/,eo3=()=>{},eo8=(0,z.A)(()=>iO.parse(tV.s)),eo4=(0,z.A)(()=>eie()),eo6="sanity";function eo9(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(17),{children:p}=e;if(u[0]===Symbol.for("react.memo_cache_sentinel")){e:{let e=eo4();if(!e){t=void 0;break e}let n=function(e){let t=function(e){if(eo7.test(e.pathname)){let[,,,,t,,n]=e.pathname.split("/");return{valid:!0,appId:t,version:n}}if(eo0.test(e.pathname)){let[,,,,,t]=e.pathname.split("/");return{valid:!0,appId:void 0,version:t}}return{valid:!1,error:Error(`Unable to parse module CDN URL: ${e.pathname}`)}}(new URL(e,"https://example.com"));if(!t.valid)return t;let{appId:n,version:i}=t,r=decodeURIComponent(i);return iO.validRange(r)?{valid:!0,appId:n,minVersion:r}:{valid:!1,error:Error(`Invalid minVersion "${r}" in module cdn url: ${e}`)}}(e);n.valid||console.warn(Error("Unable to extract version from import map, auto updates may not work as expected",{cause:n.error})),t=n.valid?{...n,minVersion:iO.coerce(n.minVersion,{includePrerelease:!0})}:n}u[0]=t}else t=u[0];let m=t;u[1]===Symbol.for("react.memo_cache_sentinel")?(n=eo8(),u[1]=n):n=u[1];let h=n,f=!!m,g=(0,_.useRef)(void 0),[y,C]=(0,_.useState)(),[x,b]=(0,_.useState)();u[2]!==y?(i=y?iO.parse(y):void 0,u[2]=y,u[3]=i):i=u[3];let w=i;u[4]!==x?(r=x?iO.parse(x):void 0,u[4]=x,u[5]=r):r=u[5];let k=r;u[6]===Symbol.for("react.memo_cache_sentinel")?(a={lastCheckedAt:null,checking:!1},u[6]=a):a=u[6];let[I,T]=(0,_.useState)(a);u[7]===Symbol.for("react.memo_cache_sentinel")?(o=async()=>
1914{if(g.current&&g.current+1e4>new Date().getTime())return;g.current=new Date().getTime(),T(ele);let e=eo5({packageName:eo6,minVersion:m?.valid?m.minVersion:h,tag:"latest"}),t=m?.valid?m.appId?eo2({packageName:eo6,minVersion:m?.valid?m.minVersion:h,appId:m.appId}):e:void 0;Promise.all([e,t]).then(e=>{let[t,n]=e;C(n),b(t)}).finally(()=>T({lastCheckedAt:new Date,checking:!1}))},u[7]=o):o=u[7];let E=o;u[8]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{let e=async function(){await E()};e();let t=setInterval(e,9e5);return()=>clearInterval(t)},s=[E],u[8]=l,u[9]=s):(l=u[8],s=u[9]),(0,_.useEffect)(l,s),u[10]!==w||u[11]!==k||u[12]!==I?(d={isAutoUpdating:f,autoUpdatingVersion:w,importMapInfo:m,latestTaggedVersion:k,currentVersion:h,checkForUpdates:f?E:eo3,versionCheckStatus:I},u[10]=w,u[11]=k,u[12]=I,u[13]=d):d=u[13];let $=d;return u[14]!==p||u[15]!==$?(c=(0,v.jsx)(S.Eb.Provider,{value:$,children:p}),u[14]=p,u[15]=$,u[16]=c):c=u[16],c}function ele(e){return{...e,checking:!0}}let elt=(0,eI.i7)` 1915 0% { 1916 background-position: 100%; 1917 } 1918 100% { 1919 background-position: -100%; 1920 } 1921`,eln=eI.I4.div.withConfig({displayName:"Root",componentId:"sc-1i1h10i-0"})(e=>{let t=(0,nN.JW)(e.theme),n=t.color.selectable.default.hovered.bg,i=t.color.selectable.default.enabled.bg;return(0,eI.AH)` 1922 position: relative; 1923 cursor: pointer; 1924 // hide the close button 1925 #close-floating-button { 1926 opacity: 0; 1927 transition: opacity 0.2s; 1928 } 1929 1930 &:hover { 1931 > [data-ui='whats-new-card'] { 1932 --card-bg-color: ${n}; 1933 box-shadow: inset 0 0 2px 1px var(--card-skeleton-color-to); 1934 background-image: linear-gradient( 1935 to right, 1936 var(--card-bg-color), 1937 var(--card-bg-color), 1938 ${i}, 1939 var(--card-bg-color), 1940 var(--card-bg-color), 1941 var(--card-bg-color) 1942 ); 1943 background-position: 100%; 1944 background-size: 200% 100%; 1945 background-attachment: fixed; 1946 animation-name: ${elt}; 1947 animation-timing-function: ease-in; 1948 animation-iteration-count: infinite; 1949 animation-duration: 2000ms; 1950 } 1951 #close-floating-button { 1952 opacity: 1; 1953 background: transparent; 1954 1955 &:hover { 1956 transition: all 0.2s; 1957 box-shadow: 0 0 0 1px ${t.color.selectable.default.hovered.border}; 1958 } 1959 } 1960 } 1961 `}),eli=eI.I4.div.withConfig({displayName:"ButtonRoot",componentId:"sc-1i1h10i-1"})`z-index:1;position:absolute;top:2px;right:6px;`;function elr(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f=(0,j.c)(37),{title:g,id:y,isOpen:C,name:x,preHeader:b,onCardClick:w,onCardDismiss:k}=e,{t:S}=as(),T=(0,tK.Jr)();return f[0]!==y||f[1]!==C||f[2]!==x||f[3]!==T||f[4]!==g?(t=()=>{C&&T.log(eac,{announcement_id:y,announcement_title:g,announcement_internal_name:x,source:"studio",studio_version:tV.s})},n=[T,y,g,C,x],f[0]=y,f[1]=C,f[2]=x,f[3]=T,f[4]=g,f[5]=t,f[6]=n):(t=f[5],n=f[6]),(0,_.useEffect)(t,n),f[7]===Symbol.for("react.memo_cache_sentinel")?(i={bottom:12,left:12,top:"none"},f[7]=i):i=f[7],f[8]!==S?(r=S("announcement.floating-button.open-label"),f[8]=S,f[9]=r):r=f[9],f[10]!==b?(a=(0,v.jsx)(I.az,{marginRight:6,children:(0,v.jsx)(I.EY,{as:"h3",size:1,muted:!0,children:b})}),f[10]=b,f[11]=a):a=f[11],f[12]!==g?(o=(0,v.jsx)(I.EY,{size:1,weight:"medium",children:g}),f[12]=g,f[13]=o):o=f[13],f[14]!==a||f[15]!==o?(l=(0,v.jsxs)(I.BJ,{space:3,children:[a,o]}),f[14]=a,f[15]=o,f[16]=l):l=f[16],f[17]!==w||f[18]!==r||f[19]!==l?(s=(0,v.jsx)(I.Zp,{"data-ui":"whats-new-card",padding:3,radius:3,onClick:w,role:"button","aria-label":r,children:l}),f[17]=w,f[18]=r,f[19]=l,f[20]=s):s=f[20],f[21]!==S?(d=S("announcement.floating-button.dismiss-label"),f[21]=S,f[22]=d):d=f[22],f[23]!==S?(c=S("announcement.floating-button.dismiss"),f[23]=S,f[24]=c):c=f[24],f[25]!==c?(u={content:c},f[25]=c,f[26]=u):u=f[26],f[27]!==k||f[28]!==u||f[29]!==d?(p=(0,v.jsx)(eli,{children:(0,v.jsx)(tL.$n,{id:"close-floating-button",mode:"bleed",onClick:k,icon:eT.USm,tone:"default","aria-label":d,tooltipProps:u})}),f[27]=k,f[28]=u,f[29]=d,f[30]=p):p=f[30],f[31]!==p||f[32]!==s?(m=(0,v.jsxs)(eln,{"data-ui":"whats-new-root",children:[s,p]}),f[31]=p,f[32]=s,f[33]=m):m=f[33],f[34]!==C||f[35]!==m?(h=(0,v.jsx)(tL.AM,{open:C,shadow:3,portal:!0,style:i,width:0,placement:"bottom-start",content:m}),f[34]=C,f[35]=m,f[36]=h):h=f[36],h}let ela=eI.I4.hr.withConfig({displayName:"Hr",componentId:"sc-k789fr-0"})`height:1px;background:var(--card-border-color);width:100%;opacity:${({$show:e})=>+!!e};transition:opacity 0.3s ease;margin:0;border:none;`;function elo(e){let t,n,i,r=(0,j.c)(5),{parentRef:a}=e,o=(0,_.useRef)(null),[l,s]=(0,_.useState)(!0);return r[0]!==a?(t=()=>{let e=o.current,t=a.current;if(!e||!t)return;let n=new IntersectionObserver(e=>{let[t]=e;s(t.isIntersecting)},{root:t,threshold:0,rootMargin:"-60px 0px 0px 0px"});return n.observe(e),()=>{n.disconnect()}},n=[a],r[0]=a,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,_.useEffect)(t,n),r[3]!==l?
1961(i=(0,v.jsx)(I.az,{paddingBottom:4,children:(0,v.jsx)(I.az,{paddingY:3,paddingX:3,children:(0,v.jsx)(ela,{ref:o,$show:l})})}),r[3]=l,r[4]=i):i=r[4],i}let ell={month:"short",day:"2-digit"},els=(0,eI.I4)(I.az).withConfig({displayName:"Root",componentId:"sc-j96pa2-0"})`overflow:auto;max-height:75vh;`,eld=(0,eI.I4)(I.xA).withConfig({displayName:"DialogHeader",componentId:"sc-j96pa2-1"})`position:sticky;display:grid;grid-template-columns:64px 1fr 64px;top:0;z-index:1;background:var(--card-bg-color);`,elc=(0,eI.I4)(I.az).withConfig({displayName:"FloatingButtonBox",componentId:"sc-j96pa2-2"})`position:absolute;top:12px;right:24px;z-index:2;`,elu=(0,eI.I4)(tL.$n).withConfig({displayName:"FloatingButton",componentId:"sc-j96pa2-3"})``;function elp(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(35),{announcement:m,mode:h,isFirst:f,parentRef:g}=e,y=(0,tK.Jr)(),C=ud(ell),x=(0,_.useRef)(null);e:{let e;if(!m.publishedDate){t="";break e}p[0]!==m.publishedDate||p[1]!==C?(e=C.format(new Date(m.publishedDate)),p[0]=m.publishedDate,p[1]=C,p[2]=e):e=p[2],t=e}let b=t;p[3]!==m._id||p[4]!==m.name||p[5]!==m.title||p[6]!==h||p[7]!==y?(n=e=>{let{url:t,linkTitle:n}=e;y.log(eah,{announcement_id:m._id,announcement_title:m.title,announcement_internal_name:m.name,source:"studio",studio_version:tV.s,origin:h,link_url:t,link_title:n})},p[3]=m._id,p[4]=m.name,p[5]=m.title,p[6]=h,p[7]=y,p[8]=n):n=p[8];let w=n;p[9]!==m._id||p[10]!==m.name||p[11]!==m.title||p[12]!==h||p[13]!==y?(i=e=>{y.log(eam,{announcement_id:m._id,announcement_title:m.title,announcement_internal_name:m.name,source:"studio",studio_version:tV.s,scrolled_into_view:e,origin:h})},p[9]=m._id,p[10]=m.name,p[11]=m.title,p[12]=h,p[13]=y,p[14]=i):i=p[14];let k=i;return p[15]!==f||p[16]!==k||p[17]!==g?(r=()=>{if(f)return void k(!1);let e=x.current,t=g.current;if(!e||!t)return;let n=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&(k(!0),n.disconnect())},{root:t,threshold:1,rootMargin:"0px 0px -100px 0px"});return n.observe(e),()=>{n.disconnect()}},a=[k,g,f],p[15]=f,p[16]=k,p[17]=g,p[18]=r,p[19]=a):(r=p[18],a=p[19]),(0,_.useEffect)(r,a),p[20]!==b?(o=(0,v.jsx)(I.az,{flex:"none",padding:2,paddingRight:0,children:(0,v.jsx)(I.az,{paddingLeft:2,children:(0,v.jsx)(I.EY,{size:1,muted:!0,children:b})})}),p[20]=b,p[21]=o):o=p[21],p[22]!==m.title?(l=(0,v.jsx)(I.so,{flex:1,padding:2,justify:"center",ref:x,children:(0,v.jsx)(I.EY,{as:"h2",size:1,weight:"semibold",children:m.title})}),p[22]=m.title,p[23]=l):l=p[23],p[24]!==o||p[25]!==l?(s=(0,v.jsxs)(eld,{padding:3,children:[o,l]}),p[24]=o,p[25]=l,p[26]=s):s=p[26],p[27]!==m.body?(d=m.body||[],p[27]=m.body,p[28]=d):d=p[28],p[29]!==w||p[30]!==d?(c=(0,v.jsx)(I.az,{padding:4,children:(0,v.jsx)($Q,{blocks:d,onLinkClick:w})}),p[29]=w,p[30]=d,p[31]=c):c=p[31],p[32]!==c||p[33]!==s?(u=(0,v.jsxs)(I.az,{children:[s,c]}),p[32]=c,p[33]=s,p[34]=u):u=p[34],u}function elm(e){let t,n,i,r,a,o,l=(0,j.c)(18),{announcements:s,onClose:d,mode:c}=e,u=void 0===s?[]:s,p=(0,_.useRef)(null),{t:m}=as(),h=tL.lG,f=u.map((e,t)=>(0,v.jsxs)(_.Fragment,{children:[(0,v.jsx)(elp,{announcement:e,mode:c,isFirst:0===t,parentRef:p}),t<u.length-1&&(0,v.jsx)(elo,{parentRef:p})]},e._id));return l[0]!==m?(t=m("announcement.dialog.close-label"),l[0]=m,l[1]=t):t=l[1],l[2]!==m?(n=m("announcement.dialog.close"),l[2]=m,l[3]=n):n=l[3],l[4]!==n?(i={content:n},l[4]=n,l[5]=i):i=l[5],l[6]!==d||l[7]!==t||l[8]!==i?(r=(0,v.jsx)(elc,{children:(0,v.jsx)(elu,{"aria-label":t,icon:eT.USm,mode:"bleed",onClick:d,tooltipProps:i})}),l[6]=d,l[7]=t,l[8]=i,l[9]=r):r=l[9],l[10]!==els||l[11]!==r||l[12]!==f?(a=(0,v.jsxs)(els,{ref:p,height:"fill",children:[f,r]}),l[10]=els,l[11]=r,l[12]=f,l[13]=a):a=l[13],l[14]!==h||l[15]!==d||l[16]!==a?(o=(0,v.jsx)(h,{id:"in-app-communication-dialog",onClose:d,onClickOutside:d,width:1,bodyHeight:"fill",padding:!1,__unstable_hideCloseButton:!0,__unstable_autoFocus:!1,children:a}),l[14]=h,l[15]=d,l[16]=a,l[17]=o):o=l[17],o}let elh="studio.announcement.seen",elf={value:null,error:null,loading:!0};function elg(e){return(0,eP.of)({value:null,error:e,loading:!1})}function ely(e){return{value:e,error:null,loading:!1}}let elC=["administrator","editor","viewer","contributor","developer","custom"],elx={apiVersion:"v2024-09-19"};function elb(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,I,T=(0,j.c)(47),{children:E}=e,$=(0,tK.Jr)(),[A,D]=(0,_.useState)(null),[z,P]=(0,_.useState)(!1),[R,N]=(C=(0,j.c)(13),x=(0,nU.rd)(),b=cf(),C[0]!==b?(p=b.getKey(elh).pipe((0,eV.T)(ely),(0,tr.Z)(elf),(0,eY.W)(elg)),C[0]=b,C[1]=p):p=C[1],w=p,C[2]!==b?(m=async e=>{await b.setKey(elh,e)},C[2]=b,C[3]=m):m=C[3],k=m,C[4]!==x.state._searchParams?(h=new URLSearchParams(x.state._searchParams)?.get("reset-announcements"),C[4]=x.state._searchParams,C[5]=h):h=C[5],I=h,C[6]!==I||C[7]!==k?(f=()=>{null!==I&&k(I?I.split(","):[])},g=[I,k],C[6]=I,C[7]=k,C[8]=f,C[9]=g):(f=C[8],g=C[9]),(0,_.useEffect)(f,g),C[10]!==w||C[11]!==k?(y=[w,k],C[10]=w,C[11]=k,C[12]=y):y=C[12],y),{currentUser:O}=cY(),V=el0(elx);if(T[0]!==V.observable||T[1]!==O?.roles||T[2]!==R){let e;T[4]!==O?.roles?(e=e=>e?e.filter(e=>{var t,n;return function(e,t){switch(e.audience){case"everyone":default:return!0;case"specific-version":return(0,iO.satisfies)(t,`= ${e.studioVersion}`,{includePrerelease:!0});case"greater-than-or-equal-version":return(0,iO.satisfies)(t,`>= ${e.studioVersion}`,{includePrerelease:!0});case"less-than-or-equal-version":return(0,iO.satisfies)(t,`<= ${e.studioVersion}`,{includePrerelease:!0})}}({audience:e.audience,studioVersion:e.studioVersion},tV.s)&&(t=e.audienceRole,n=O?.roles,!t||!t.length||!!n&&!!n.length&&(!!n.some(e=>t.includes(e.name))||!!n.some(e=>!elC.includes(e.name))&&t.includes("custom")))}
1961):[],T[4]=O?.roles,T[5]=e):e=T[5];let n=V.observable.request({url:"/journey/announcements"}).pipe((0,eV.T)(e),(0,eY.W)(elw),(0,tr.Z)([]));t=(0,e8.z)([n,R]).pipe((0,eV.T)(elj)),T[0]=V.observable,T[1]=O?.roles,T[2]=R,T[3]=t}else t=T[3];let M=t;T[6]===Symbol.for("react.memo_cache_sentinel")?(n={unseen:[],all:[]},T[6]=n):n=T[6];let L=(0,tF.J)(M,n),F=L.unseen,B=L.all;T[7]!==N||T[8]!==B?(i=()=>{N(B.map(elv))},T[7]=N,T[8]=B,T[9]=i):i=T[9];let Y=i;T[10]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{D(e),P(!0)},T[10]=r):r=T[10];let H=r;T[11]!==Y||T[12]!==$||T[13]!==F[0]?._id||T[14]!==F[0]?.name||T[15]!==F[0]?.title?(a=()=>{Y(),P(!0),$.log(eap,{announcement_id:F[0]?._id,announcement_title:F[0]?.title,announcement_internal_name:F[0]?.name,source:"studio",studio_version:tV.s})},T[11]=Y,T[12]=$,T[13]=F[0]?._id,T[14]=F[0]?.name,T[15]=F[0]?.title,T[16]=a):a=T[16];let U=a;T[17]!==$||T[18]!==F[0]?._id||T[19]!==F[0]?.name||T[20]!==F[0]?.title?(o=()=>{H("card"),$.log(eau,{announcement_id:F[0]?._id,announcement_title:F[0]?.title,announcement_internal_name:F[0]?.name,source:"studio",studio_version:tV.s})},T[17]=$,T[18]=F[0]?._id,T[19]=F[0]?.name,T[20]=F[0]?.title,T[21]=o):o=T[21];let Z=o;T[22]!==A||T[23]!==Y||T[24]!==B[0]||T[25]!==$||T[26]!==F[0]?(l=()=>{let e="help_menu"===A?B[0]:F[0];$.log(eaf,{announcement_id:e?._id,announcement_title:e?.title,announcement_internal_name:e?.name,source:"studio",studio_version:tV.s,origin:A??"card"}),D(null),Y()},T[22]=A,T[23]=Y,T[24]=B[0],T[25]=$,T[26]=F[0],T[27]=l):l=T[27];let q=l;T[28]!==B||T[29]!==F?(s={studioAnnouncements:B,unseenAnnouncements:F,onDialogOpen:H},T[28]=B,T[29]=F,T[30]=s):s=T[30];let W=s;return T[31]!==Z||T[32]!==U||T[33]!==z||T[34]!==F[0]||T[35]!==F.length?(d=F.length>0&&(0,v.jsx)(elr,{preHeader:F[0].preHeader,title:F[0].title,name:F[0].name,id:F[0]._id,onCardClick:Z,isOpen:!z,onCardDismiss:U}),T[31]=Z,T[32]=U,T[33]=z,T[34]=F[0],T[35]=F.length,T[36]=d):d=T[36],T[37]!==A||T[38]!==q||T[39]!==B||T[40]!==F?(c=A&&(0,v.jsx)(elm,{mode:A,announcements:"help_menu"===A?B:F,onClose:q}),T[37]=A,T[38]=q,T[39]=B,T[40]=F,T[41]=c):c=T[41],T[42]!==E||T[43]!==W||T[44]!==c||T[45]!==d?(u=(0,v.jsxs)(S.Zb.Provider,{value:W,children:[E,d,c]}),T[42]=E,T[43]=W,T[44]=c,T[45]=d,T[46]=u):u=T[46],u}function elv(e){return e._id}function elj(e){let[t,n]=e;return n.loading||n.error?{unseen:[],all:t}:n.value?{unseen:t.filter(e=>!n.value?.includes(e._id)),all:t}:{unseen:t,all:t}}function elw(){return[]}function el_(e){let t=(0,j.c)(2);if(_g().announcements?.enabled){let n;return t[0]!==e?(n=(0,v.jsx)(elb,{...e}),t[0]=e,t[1]=n):n=t[1],n}return e.children}let elk=rH.__sanityErrorChannel;function elS(e){let t,n,i,r,a=(0,j.c)(16),{children:o,primaryProjectId:l}=e,[s,d]=(0,_.useState)();a[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>d(void 0),a[0]=t):t=a[0];let c=t,u=(0,T.dj)();if((0,iV.i)(c),a[1]!==u?(n=()=>{if(elk)return elk.subscribe(e=>{var t;let n;if(!en3(e.error)&&e.error&&e.error instanceof Error){if((t=e.error)instanceof etX||t instanceof ow||t instanceof Y$||(0,ea.A)(t)&&"ViteDevServerStoppedError"in t&&t.ViteDevServerStoppedError)return void d({error:e.error});try{n=eip.reportError(e.error)?.eventId}catch(e){e.message=`Encountered an additional error when reporting error: ${e.message}`,console.error(e)}eih(e.error)?d({error:e.error,eventId:n}):u.push({id:e.error.message,closable:!0,description:e.error.message,duration:5e3,title:"Uncaught error",status:"error"})}})},i=[u],a[1]=u,a[2]=n,a[3]=i):(n=a[2],i=a[3]),(0,_.useEffect)(n,i),!s?.error)return o;if(s.error instanceof ow){let e;return a[4]!==s.error.isStaging||a[5]!==s.error.projectId||a[6]!==l?(e=(0,v.jsx)(eiM,{projectId:s.error.projectId,isStaging:s.error.isStaging,primaryProjectId:l}),a[4]=s.error.isStaging,a[5]=s.error.projectId,a[6]=l,a[7]=e):e=a[7],e}if(s.error instanceof etX){let e;return a[8]!==s.error.schema?(e=(0,v.jsx)(ei5,{schema:s.error.schema}),a[8]=s.error.schema,a[9]=e):e=a[9],e}if(eih(s.error)){let e;return a[10]!==s.error||a[11]!==s.eventId?(e=(0,v.jsx)(ei9,{error:s.error,eventId:s.eventId}),a[10]=s.error,a[11]=s.eventId,a[12]=e):e=a[12],e}return a[13]!==s.error||a[14]!==s.eventId?(r=(0,v.jsx)(ei8,{error:s.error,eventId:s.eventId,onReset:c}),a[13]=s.error,a[14]=s.eventId,a[15]=r):r=a[15],r}I.Qx.fonts.code.family,I.Qx.fonts.text.family,ez.Ql.hex,ez.ON.hex,ez.z1[500].hex,ez.ON.hex,ez.Ql.hex,ez.wm[500].hex,ez.wm[500].hex,ez.wm[500].hex,ez.wv[500].hex,ez.z1[500].hex,ez.wL[500].hex,ez.D9[500].hex,ez.z1[500].hex,ez.z1[500].hex,ez.wL[500].hex,ez.D9[500].hex,ez.wv[500].hex,ez.Ql.hex,ez.ON.hex;let elI=(0,nN.me)();function elT(e){return{...elI,v2:e.v2,fonts:!0===e.__themer?elI.fonts:e.fonts??elI.fonts,color:e.color??elI.color}}function elE(e){let t,n,i,r=(0,j.c)(18),{children:a}=e,o=B8().activeWorkspace.theme;if(o.__legacy){let e,t,n,i,l=o.__dark?"dark":"light";return r[0]!==o?(e=elT(o),r[0]=o,r[1]=e):e=r[1],r[2]!==a?(t=(0,v.jsx)(I.XS,{children:a}),r[2]=a,r[3]=t):t=r[3],r[4]!==l||r[5]!==e||r[6]!==t?(n=(0,v.jsx)(I.NP,{scheme:l,theme:e,children:t}),r[4]=l,r[5]=e,r[6]=t,r[7]=n):n=r[7],r[8]!==l||r[9]!==n?(i=(0,v.jsx)(S.RU.Provider,{value:!1,children:(0,v.jsx)(S.fG.Provider,{value:l,children:n})}),r[8]=l,r[9]=n,r[10]=i):i=r[10],i}return r[11]!==o?(t=elT(o),r[11]=o,r[12]=t):t=r[12],r[13]!==a?(n=(0,v.jsx)(I.XS,{children:a}),r[13]=a,r[14]=n):n=r[14],r[15]!==t||r[16]!==n?(i=(0,v.jsx)(I.NP,{theme:t,children:n}
1961),r[15]=t,r[16]=n,r[17]=i):i=r[17],i}let el$=(0,tW.g_)({name:"Performance INP Measured",maxSampleRate:6e4,version:1,description:"Performance INP (Interaction to Next Paint) measurement happened"}),elA=(0,tW.g_)({name:"Performance LCP Measured",version:2,description:"Largest Contentful Paint measurement with attribution"}),elD=(0,tW.g_)({name:"Performance FCP Measured",version:2,description:"First Contentful Paint measurement with attribution"}),elz=(0,tW.g_)({name:"Performance CLS Measured",version:2,description:"Cumulative Layout Shift measurement with attribution"}),elP=(0,tW.g_)({name:"Performance TTFB Measured",version:2,description:"Time to First Byte measurement with attribution"}),elR=(0,tW.g_)({name:"Performance INP Measured",version:2,description:"Interaction to Next Paint with attribution (web-vitals)",maxSampleRate:3e4});function elN(e){let t,n,i,r,a,o,l,s,d,c,u;return r=(0,j.c)(5),a=(0,tK.Jr)(),r[0]!==a?(t=(e,t)=>{let n;for(let t of e.getEntries())"event"===t.entryType&&t.duration>(n?.duration||0)&&(n=t);n&&a.log(el$,{target:function(e){if(!e)return null;if(!(e instanceof Element))return e.nodeName;let{nodeName:t,classList:n,id:i}=e;return t.toLowerCase()+(i?`#${i}`:"")+(n?`.${n.value.replaceAll(" ",".")}`:"")}(n.target),attrs:function(e){if(!e||!(e instanceof Element))return;let t=e.getAttribute("data-ui")||void 0,n=e.getAttribute("data-testid")||void 0;return t||n?{ui:t,testId:n}:void 0}(n.target),interaction:n.name,duration:n.duration})},r[0]=a,r[1]=t):t=r[1],o=t,r[2]!==o?(n=()=>{if(!("PerformanceObserver"in globalThis))return;let e=new PerformanceObserver(o);return e.observe({type:"event",buffered:!0}),()=>{e.disconnect()}},i=[o],r[2]=o,r[3]=n,r[4]=i):(n=r[3],i=r[4]),(0,_.useEffect)(n,i),d=(0,j.c)(3),c=(0,tK.Jr)(),u=(0,_.useRef)(!1),d[0]!==c?(l=()=>{u.current||(u.current=!0,(0,iM.fK)(e=>{c.log(elA,e)}),(0,iM.zB)(e=>{c.log(elD,e)}),(0,iM.IN)(e=>{c.log(elz,e)}),(0,iM.Ck)(e=>{c.log(elP,e)}),(0,iM.rH)(e=>{c.log(elR,e)}))},s=[c],d[0]=c,d[1]=l,d[2]=s):(l=d[1],s=d[2]),(0,_.useEffect)(l,s),e.children}let elO=(0,tW.GH)(),elV=!!("u">typeof i7&&i7.env?.SANITY_STUDIO_DEBUG_TELEMETRY),elM="u">typeof window,elL={flushInterval:1e3,resolveConsent:()=>Promise.resolve({status:"granted"}),sendEvents:async e=>{console.log("[telemetry] submit events (noop): %O",e)},sendBeacon:e=>(console.log("[telemetry] submit events (noop): %O",e),!0)};function elF(e){let t=el0({apiVersion:"v2023-12-18"}),n=t.config().projectId,i=cY(),{value:r}=Zc(),a=(0,nU.ks)((0,_.useCallback)(e=>"string"==typeof e.tool?e.tool:void 0,[])),o=(0,_.useRef)(null);(0,_.useEffect)(()=>{elM&&(o.current={userAgent:navigator.userAgent,screen:{density:window.devicePixelRatio,height:window.screen.height,width:window.screen.width,innerHeight:window.innerHeight,innerWidth:window.innerWidth},studioVersion:tV.s,reactVersion:_.version,environment:"production",orgId:r||null,activeTool:a,activeWorkspace:i.name,activeProjectId:i.projectId,activeDataset:i.dataset})},[r,a,i.name,i.projectId,i.dataset]);let l=(0,_.useMemo)(()=>elV?elL:{flushInterval:3e4,resolveConsent:()=>t.request({uri:"/intake/telemetry-status",tag:"telemetry-consent.studio"}),sendEvents:e=>{if(!elM||!o.current)return Promise.resolve();let i=o.current,r=e.map(e=>({...e,context:i}));return t.request({uri:"/intake/batch",method:"POST",json:!0,body:{projectId:n,batch:r}})},sendBeacon:e=>{if(!elM||!o.current)return!1;let i=o.current,r=e.map(e=>({...e,context:i}));return navigator.sendBeacon(t.getUrl("/intake/batch"),JSON.stringify({projectId:n,batch:r}))}},[t,n]),s=(0,_.useMemo)(()=>(0,tW.rC)(elO,l),[l]);return(0,_.useEffect)(()=>{elM&&o.current&&s.logger.updateUserProperties({userAgent:o.current.userAgent,screen:o.current.screen,reactVersion:_.version,studioVersion:tV.s,environment:o.current.environment})},[s.logger]),(0,v.jsx)(tK.Hb,{store:s,children:(0,v.jsx)(elN,{children:e.children})})}function elB(e){let t={},n=t.order||[],i=t.hidden||[];if(!n.length&&!i.length)return e;let r=e.reduce((e,t)=>{let i=t.title||"<unknown>";if(!t.name)return console.warn(`Tool "${i}" does not have the required "name" property`),e;if(e[t.name]){let n=e[t.name].tool.title;return console.warn(`Tools with duplicate name "${t.name}" found ("${i}" and "${n}")`),e}let r=n.indexOf(t.name);return e[t.name]={tool:t,index:-1===r?1/0:r},e},{}),a=e.filter(e=>-1===i.indexOf(e.name));return a.sort((e,t)=>
1961{let n=r[e.name],i=r[t.name],a=n?n.index:1/0,o=i?i.index:1/0;return a===o?0:a-o}),a}(0,eI.I4)(I.so).withConfig({displayName:"ListItem",componentId:"sc-q8j4kz-0"})``,(0,eI.I4)(I.az).attrs({padding:4}).withConfig({displayName:"ErrorMessageRoot",componentId:"sc-q8j4kz-1"})``;let elY=["mode","template"],elH=["mode"];function elU(e){var t,n,i;let r,a,o,l,s,d,c,u,p,m,h,f,g,y,C,x,b,w,k,I,T,E,$,A,z,P,R,N,O=(0,j.c)(10),{children:V,LoadingComponent:M,workspace:L}=e,{basePath:F,tools:B}=L,Y=function(){let e=(0,_.useContext)(S.Nv);if(!e)throw Error("Could not find `RouterHistoryProvider` context");return e}();O[0]!==F||O[1]!==B?(R=function(e){let{basePath:t="/",tools:n}=e,i=nU.wE.create("/:tool",e=>{let t=n.find(t=>t.name===e.tool);return t||"desk"!==e.tool||(t=n.find(e=>"structure"===e.name)),t?nU.wE.scope(t.name,"/",t.router):nU.wE.create("/")});return nU.wE.create(t,[nU.wE.intents("/intent"),i])}({basePath:F,tools:B}),O[0]=F,O[1]=B,O[2]=R):R=O[2];let H=R,[U,Z]=(t=Y,n=H,i=B,(x=(0,j.c)(45))[0]!==n?(r=n.getBasePath(),o=RegExp,a=(0,eS.A)(r),x[0]=n,x[1]=r,x[2]=a,x[3]=o):(r=x[1],a=x[2],o=x[3]),b=`^${a}(\\/|\\?|$)`,x[4]!==o||x[5]!==b?(l=new o(b,"i"),x[4]=o,x[5]=b,x[6]=l):l=x[6],w=l,x[7]!==r||x[8]!==w?(s=e=>"/"===r||w.test(e),x[7]=r,x[8]=w,x[9]=s):s=x[9],k=s,x[10]!==t?(d=e=>t.listen(e),c=()=>`${t.location.pathname}${t.location.search||""}`,x[10]=t,x[11]=d,x[12]=c):(d=x[11],c=x[12]),x[13]!==n||x[14]!==k?(u=e=>"string"==typeof e&&k(e)?{type:"state",state:n.decode(e)||{},isNotFound:n.isNotFound(e)}:null,x[13]=n,x[14]=k,x[15]=u):u=x[15],x[16]!==d||x[17]!==c||x[18]!==u?(p={subscribe:d,getSnapshot:c,getServerSnapshot:elq,selector:u},x[16]=d,x[17]=c,x[18]=u,x[19]=p):p=x[19],I=p,T=(0,iR.useSyncExternalStoreWithSelector)(I.subscribe,I.getSnapshot,I.getServerSnapshot,I.selector,D.A),E=(0,_.useRef)(T),x[20]!==T||x[21]!==t||x[22]!==n||x[23]!==i?(m=()=>{if(T?.type==="state"&&!T.state?.intent){var e,r;let a,o=(e=T.state,r=e&&(elB(i).find(t=>t.name===e.space)?{...e,tool:e.space,space:void 0}:e),a=elB(i).find(en2),r&&!r.tool&&a?Object.assign({},r,{tool:a.name}):r);o&&o!==T.state&&t.replace(n.encode(o))}},x[20]=T,x[21]=t,x[22]=n,x[23]=i,x[24]=m):m=x[24],$=T?.state,A=T?.type,x[25]!==t||x[26]!==n||x[27]!==$||x[28]!==A||x[29]!==i?(h=[$,A,t,n,i],x[25]=t,x[26]=n,x[27]=$,x[28]=A,x[29]=i,x[30]=h):h=x[30],(0,_.useEffect)(m,h),x[31]!==T||x[32]!==t||x[33]!==n||x[34]!==i?(f=()=>{let e=elW(T,n,i,E);e?t.replace(e):E.current=T},g=[T,t,n,i],x[31]=T,x[32]=t,x[33]=n,x[34]=i,x[35]=f,x[36]=g):(f=x[35],g=x[36]),(0,_.useEffect)(f,g),x[37]!==t||x[38]!==n||x[39]!==I||x[40]!==i?(y=e=>{let{path:r,replace:a}=e,o=elW(I.selector(r),n,i,E),l="string"==typeof o?o:r;a?t.replace(l):t.push(l)},x[37]=t,x[38]=n,x[39]=I,x[40]=i,x[41]=y):y=x[41],z=y,P=T?.state??null,x[42]!==z||x[43]!==P?(C=[P,z],x[42]=z,x[43]=P,x[44]=C):C=x[44],C);if(!U){let e;return O[3]!==M?(e=(0,v.jsx)(M,{}),O[3]=M,O[4]=e):e=O[4],e}return O[5]!==V||O[6]!==Z||O[7]!==H||O[8]!==U?(N=(0,v.jsx)(tL.tH,{onCatch:elZ,children:(0,v.jsx)(nU.pg,{onNavigate:Z,router:H,state:U,children:V})}),O[5]=V,O[6]=Z,O[7]=H,O[8]=U,O[9]=N):N=O[9],N}function elZ(e){let{error:t}=e;throw t}function elq(){return null}function elW(e,t,n,i){if(e?.type==="state"&&e.state?.intent){let r=function(e,t,n){let{intent:i,params:r,payload:a}=n;if("string"!=typeof i)throw Error("intent must be a string");if(!rZ(r))throw Error("intent params must be a string");let o=elB(e),l=t?.tool?o.find(e=>e.name===t.tool):null,s=l?o.filter(e=>e!==l):o,d=[];"create"===i?d=elY:"edit"===i&&(d=elH);let{tool:c}=(l?[l,...s]:o).reduce((e,n)=>{if(!n||"function"!=typeof n.canHandleIntent)return e;let a=n.canHandleIntent(i,r,t&&t[n.name]);if("boolean"==typeof a)return a&&e.score<0?{score:0,tool:n}:e;if(!rZ(a))return e;let o=d.reduce((e,t)=>t in r&&a[t]?e+1:e,0);return o>e.score?{score:o,tool:n}:e},{score:-1,tool:null});if(c?.getIntentState){let{_searchParams:e,...o}=c.getIntentState(i,r,t&&t[c.name],a),l={...t,_searchParams:n._searchParams,tool:c.name,[c.name]:o};return c.router?.__unsafe_disableScopedSearchParams?l._searchParams=[...n._searchParams?.filter(([e])=>nU.VK.includes(e))||[],...Array.isArray(e)?e:[]]:o._searchParams=e,{type:"state",isNotFound:!1,state:l}}return{type:"intent",isNotFound:!0,intent:{name:i,params:r}}}(n,i.current?.type==="state"?i.current.state:{},e.state);if(r?.type==="state")return t.encode(r.state)}return null}function elJ(e){let t,n,i=(0,j.c)(3),[r,a]=(0,_.useState)(null);if(r)throw r;let[o,l]=(0,_.useState)(null);return i[0]!==e?(t=()=>{let t=(0,e8.z)(e.__internal.sources.map(elG)).pipe((0,eV.T)(t=>{let n=t.filter(elK);if(n.length)throw new Y$({name:e.name,causes:n,type:"workspace"});return t}),(0,eV.T)(t=>{let[n,...i]=t,{releases:r,...a}=e;return{...a,...n,unstable_sources:[n,...i],type:"workspace"}})).subscribe({next:l,error:a});return()=>t.unsubscribe()},n=[e],i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,_.useEffect)(t,n),o}function elK(e){return e instanceof Y$}function elG(e){let{source:t}=e;return t.pipe((0,eY.W)(elX))}function elX(e){if(e instanceof Y$)return(0,eP.of)(e);throw e}function elQ(e){let t,n,i,r=(0,j.c)(12),{children:a,LoadingComponent:o}=e,{activeWorkspace:l}=B8(),s=elJ(l);if(!s){let e;return r[0]!==o?(e=(0,v.jsx)(o,{}),r[0]=o,r[1]=e):e=r[1],e}return r[2]!==o||r[3]!==a||r[4]!==s?(t=(0,v.jsx)(elU,{LoadingComponent:o,workspace:s,children:a}),r[2]=o,r[3]=a,r[4]=s,r[5]=t):t=r[5],r[6]!==t||r[7]!==s.unstable_sources[0]?(n=(0,v.jsx)(_f,{source:s.unstable_sources[0],children:t}),r[6]=t,r[7]=s.unstable_sources[0],r[8]=n):n=r[8],r[9]!==n||r[10]!==s?(i=(0,v.jsx)(cB,{workspace:s,children:n}),r[9]=n,r[10]=s,r[11]=i):i=r[11],i}function el1(e){let t,n,i,r=(0,j.c)(5);if(r[0]!==e){let{ConfigErrorsComponent:n,...i}=e;t=i,r[0]=e,r[1]=t}else t=r[1];r[2]===Symbol.for("react.memo_cache_sentinel")?(n={error:null},r[2]=n):n=r[2];let[a,o]=(0,_.useState)(n),{error:l}=a;if(l)throw l;return r[3]!==t?(i=(0,v.jsx)(tL.tH,{onCatch:o,children:(0,v.jsx)(elQ,{...t})}),r[3]=t,r[4]=i):i=r[4],i}function el2(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(25),{children:p,config:m,basePath:h,onSchemeChange:f,scheme:g,unstable_history:y,unstable_noAuthBoundary:C}=e;eip.initialize();let x=(Array.isArray(m)?m[0]:m)?.projectId;u[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(eoN,{}),u[0]=t):t=u[0],u[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(eoK,{errorReporter:eip}),u[1]=n):n=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,v.jsx)(eoU,{}),u[2]=i):i=u[2],u[3]!==p?(r=(0,v.jsx)(eoY,{children:(0,v.jsxs)(eoW,{children:[t,(0,v.jsx)(el1,{LoadingComponent:ry,ConfigErrorsComponent:eiR,children:(0,v.jsx)(rS,{children:(0,v.jsxs)(eo9,{children:[n,(0,v.jsx)(ci,{children:(0,v.jsx)(elF,{children:(0,v.jsxs)(ZA,{children:[i,(0,v.jsx)(el_,{children:(0,v.jsx)(eoF,{children:(0,v.jsx)(en5,{children:(0,v.jsx)($3,{children:p})})})})]})})})]})})})]})}),u[3]=p,u[4]=r):r=u[4];let b=r;return u[5]!==b||u[6]!==C?(a=(0,v.jsx)(elE,{children:(0,v.jsx)(og,{children:C?b:(0,v.jsx)(eoH,{LoadingComponent:ry,AuthenticateComponent:eiP,NotAuthenticatedComponent:eiB,children:b})})}),u[5]=b,u[6]=C,u[7]=a):a=u[7],u[8]!==y||u[9]!==a?(o=(0,v.jsx)(et9,{unstable_history:y,NotFoundComponent:eiY,LoadingComponent:ry,children:a}),u[8]=y,u[9]=a,u[10]=o):o=u[10],u[11]!==h||u[12]!==m||u[13]!==o?(l=(0,v.jsx)(et3,{config:m,basePath:h,LoadingComponent:ry,children:o}),u[11]=h,u[12]=m,u[13]=o,u[14]=l):l=u[14],u[15]!==x||u[16]!==l?(s=(0,v.jsx)(elS,{primaryProjectId:x,children:l}),u[15]=x,u[16]=l,u[17]=s):s=u[17],u[18]!==x||u[19]!==s?(d=(0,v.jsx)(T.tE,{paddingY:7,zOffset:RA,children:(0,v.jsx)(ern,{primaryProjectId:x,children:s})}),u[18]=x,u[19]=s,u[20]=d):d=u[20],u[21]!==f||u[22]!==g||u[23]!==d?(c=(0,v.jsx)(enl,{onSchemeChange:f,scheme:g,children:d}),u[21]=f,u[22]=g,u[23]=d,u[24]=c):c=u[24],c}function el5(e){let t,n,i,r=(0,j.c)(11),{basePath:a,config:o,onSchemeChange:l,scheme:s,unstable_globalStyles:d,unstable_history:c,unstable_noAuthBoundary:u}=e;return r[0]!==d?(t=d&&(0,v.jsx)(eoV,{}),r[0]=d,r[1]=t):t=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.jsx)(ero,{}),r[2]=n):n=r[2],r[3]!==a||r[4]!==o||r[5]!==l||r[6]!==s||r[7]!==t||r[8]!==c||r[9]!==u?(i=(0,v.jsxs)(el2,{basePath:a,config:o,onSchemeChange:l,scheme:s,unstable_history:c,unstable_noAuthBoundary:u,children:[t,n]}),r[3]=a,r[4]=o,r[5]=l,r[6]=s,r[7]=t,r[8]=c,r[9]=u,r[10]=i):i=r[10],i}function el0(e){let t,n=(0,j.c)(5),i=_g();if(!e){let e;return console.warn('Calling `useClient()` without specifying an API version is deprecated and will stop working in the next major version - please specify a date, e.g. `useClient({apiVersion: "2025-02-10"})`.'),n[0]!==i?(e=i.getClient({apiVersion:"v2025-02-07"}),n[0]=i,n[1]=e):e=n[1],e}return n[2]!==e||n[3]!==i?(t=i.getClient(e),n[2]=e,n[3]=i,n[4]=t):t=n[4],t}function el7(e){let t,n,i,r,a=(0,j.c)(8),o=(0,T.dj)(),[l,s]=(0,_.useState)();a[0]!==e.enabled?(t=()=>{(0,_.startTransition)(()=>s(t=>e.enabled?t||new Date:void 0))},n=[e.enabled],a[0]=e.enabled,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,_.useEffect)(t,n);let d=function(e,t){let n,i,r=(0,j.c)(4),[a,o]=(0,_.useState)(el3);return r[0]!==t||1e3!==r[1]?(n=()=>
1961{if(!t)return;let e=setInterval(()=>{(0,_.startTransition)(()=>o(new Date))},1e3);return()=>clearInterval(e)},i=[1e3,t],r[0]=t,r[1]=1e3,r[2]=n,r[3]=i):(n=r[2],i=r[3]),(0,_.useEffect)(n,i),a}(1e3,!!e.enabled),c=l&&e.enabled&&d.getTime()-l.getTime()>(e?.delay??0);a[3]!==c||a[4]!==e||a[5]!==o?(i=()=>{if(c)return o.push({...e,duration:1/0}),()=>{o.push({...e,duration:.01})}},r=[e,o,c],a[3]=c,a[4]=e,a[5]=o,a[6]=i,a[7]=r):(i=a[6],r=a[7]),(0,_.useEffect)(i,r)}function el3(){return new Date}function el8(e,t){let n,i=(0,j.c)(4),r=cu();return i[0]!==t||i[1]!==r.pair||i[2]!==e?(n=r.pair.operationEvents(e,t),i[0]=t,i[1]=r.pair,i[2]=e,i[3]=n):n=i[3],(0,tF.J)(n)}(0,ip.KV)(im.A),(0,ip.KV)(ih.A),(0,ip.KV)(ig.A),(0,ip.KV)(iy.A),(0,ip.KV)(iC.A);let el4=(0,tZ.v_)("mod+c"),el6=(0,tZ.v_)("mod+v");function el9(e){let t,n,i,r=(0,j.c)(11),{value:a,element:o,focusPath:l}=e,{onCopy:s,onPaste:d}=eoS();r[0]!==l||r[1]!==s||r[2]!==d||r[3]!==a?(t=e=>{let t=e.target;if(el4(e)){if(eof(t)||function(){if(typeof window>"u"||!window.getSelection)return!1;let e=window.getSelection();return null!==e&&!e.isCollapsed}()||eog(l))return;e.preventDefault(),e.stopPropagation(),s(l,a,{context:{source:"keyboardShortcut"}})}if(el6(e)){if(eof(t)||eog(l)||t?.dataset?.isFileTarget==="true")return;e.stopPropagation(),e.preventDefault(),d(l,a,{context:{source:"keyboardShortcut"}})}},r[0]=l,r[1]=s,r[2]=d,r[3]=a,r[4]=t):t=r[4];let c=(0,_.useEffectEvent)(t);r[5]!==o||r[6]!==c?(n=()=>(o?.addEventListener("keydown",c),()=>{o?.removeEventListener("keydown",c)}),r[5]=o,r[6]=c,r[7]=n):n=r[7],r[8]!==o||r[9]!==d?(i=[o,d],r[8]=o,r[9]=d,r[10]=i):i=r[10],(0,_.useEffect)(n,i)}function ese(e){let t,n,i,r,a,o=(0,j.c)(18),{documentId:l,documentType:s,projectId:d,dataset:c,resourceId:u,resourceType:p,schemaName:m}=e,{node:h}=cy();if("studio"===p&&(!d||!c))throw Error("projectId and dataset are required for studio resources");let f="studio"!==p||u?u:`${d}.${c}`;if(!f)throw Error("resourceId is required for media-library and canvas resources");o[0]!==l||o[1]!==s||o[2]!==f||o[3]!==p||o[4]!==m?(t={documentId:l,documentType:s,resourceId:f,resourceType:p,schemaName:m},o[0]=l,o[1]=s,o[2]=f,o[3]=p,o[4]=m,o[5]=t):t=o[5];let g=t;o[6]!==g||o[7]!==h?(n=function({node:e,context:t}){let n,i=new eq.B;return{state:(0,ti.T)(()=>typeof e>"u",(0,eP.of)(est),(0,eZ.h)(i.pipe((0,eQ.F)(),(0,to.p)(e=>"boolean"==typeof e),(0,tj.N)(i=>(0,eZ.h)(i.pipe((0,eV.T)(e=>({type:"SET",payload:e}))),i.pipe((0,tw.B)(750),(0,to.p)(e=>!(typeof n>"u")&&e!==n),function({node:e,context:t}){return(0,eX.F)((0,tx.Z)(n=>{if(typeof t.resourceId>"u"||typeof e>"u")return eO.w;let i={eventType:n?"added":"removed",document:{id:t.documentId,type:t.documentType,resource:{id:t.resourceId,type:t.resourceType,...t.schemaName?{schemaName:t.
1961schemaName}:{}}}};return(0,eL.H)(e.fetch("dashboard/v1/events/favorite/mutate",i)).pipe((0,eY.W)(e=>(console.error("Favorites service write error",e),eG.t)),(0,eV.T)(e=>({success:"object"==typeof e&&null!==e&&"success"in e&&!!e.success,isFavorited:n})))},1))}({node:e,context:t}),(0,e5.M)(({success:e,isFavorited:t})=>{e&&(n=t)}),(0,eM.n)(()=>eO.w))))),(function({node:e,context:t}){if(typeof t.resourceId>"u"||typeof e>"u")return eO.w;let n={document:{id:t.documentId,type:t.documentType,resource:{id:t.resourceId,type:t.resourceType,schemaName:t.schemaName}}};return(0,eL.H)(e.fetch("dashboard/v1/events/favorite/query",n)).pipe((0,tv.w)({first:3e3,with:()=>(0,eJ.$)(()=>Error("Favorites service connection timeout"))}),(0,eV.T)(e=>({isFavorited:e.isFavorited})),(0,eY.W)(e=>(console.error("Favorites service connection error",e),(0,eP.of)({isFavorited:!1}))))})({node:e,context:t}).pipe((0,eV.T)(e=>({type:"END_READ",payload:e})),(0,e5.M)(({payload:e})=>{n=e.isFavorited}),(0,tr.Z)({type:"BEGIN_READ"}))).pipe((0,ts.S)((e,t)=>{switch(t.type){case"BEGIN_READ":return{...e,isReady:!1};case"END_READ":return{...e,value:t.payload.isFavorited,isReady:!0};case"SET":return{...e,value:t.payload};default:return e}},est))),setState:e=>i.next(e)}}({node:h,context:g}),o[6]=g,o[7]=h,o[8]=n):n=o[8];let y=n,C=(0,tF.J)(y.state);o[9]!==y?(i=()=>y.setState(!0),o[9]=y,o[10]=i):i=o[10];let x=i;o[11]!==y?(r=()=>y.setState(!1),o[11]=y,o[12]=r):r=o[12];let b=r,v=C?.value,w=C?.isReady??!1;return o[13]!==x||o[14]!==b||o[15]!==v||o[16]!==w?(a={favorite:x,unfavorite:b,isFavorited:v,isReady:w},o[13]=x,o[14]=b,o[15]=v,o[16]=w,o[17]=a):a=o[17],a}let est={value:void 0,isReady:!1},esn=e=>{let t,n,i=(0,j.c)(5),{t:r}=as();i[0]!==r?(t=r("common.reconnecting.toast.title"),i[0]=r,i[1]=t):t=i[1],i[2]!==e||i[3]!==t?(n={enabled:e,delay:2e3,id:"sanity/reconnecting",status:"warning",title:t},i[2]=e,i[3]=t,i[4]=n):n=i[4],el7(n)},esi=e=>{let t,n,i,r,a=(0,j.c)(14),o=Zp();a[0]===Symbol.for("react.memo_cache_sentinel")?(t={enabled:!0},a[0]=t):t=a[0];let{studioApp:l,loading:s}=ZV(t),{activeWorkspace:d}=B8(),{value:c,loading:u}=Zc(),p=o?.name==="coreUi",m=eiS(),h=l?.appId||"";e:{let t;if(!p||s||u||!h||!c){let t;a[1]!==e?(t=e||window.location.toString(),a[1]=e,a[2]=t):t=a[2],n=t;break e}a[3]!==d.name||a[4]!==h||a[5]!==c||a[6]!==m?(t=(({organizationId:e,dashboardDomain:t,appId:n,workspaceName:i})=>`${t}/@${e}/studio/${n}/${i}`)({dashboardDomain:m,organizationId:c,appId:h,workspaceName:d.name}),a[3]=d.name,a[4]=h,a[5]=c,a[6]=m,a[7]=t):t=a[7],n=t}let f=n;a[8]!==p||a[9]!==f?(i=e=>{let{coreUi:t,studio:n}=e;return(p?t:n)?.(f)||f},a[8]=p,a[9]=f,a[10]=i):i=a[10];let g=i;return a[11]!==g||a[12]!==f?(r={buildStudioUrl:g,studioUrl:f},a[11]=g,a[12]=f,a[13]=r):r=a[13],r},esr={isSyncing:!0},esa={isSyncing:!1};function eso(e,t,n){let i,r=(0,j.c)(5),a=cu();return r[0]!==a.pair||r[1]!==t||r[2]!==e||r[3]!==n?(i=a.pair.consistencyStatus(e,t,n).pipe((0,eV.T)(esl)),r[0]=a.pair,r[1]=t,r[2]=e,r[3]=n,r[4]=i):i=r[4],(0,tF.J)(i,esa)}function esl(e){return e?esa:esr}function ess(){return _g().templates}let esd={data:[],error:null,loading:!0};function esc(e){let t,n,i,r,a,o,l=(0,j.c)(21),{documentValue:s,permission:d}=e,c=cm(),u=cl(),p=el0(ob),[m,h]=(0,_.useState)(esd);if(l[0]!==c||l[1]!==u){let e,n=c.get().pipe((0,eV.T)(esf)).pipe((0,e1.t)(1));l[3]!==u?(e=async e=>{let t=e.map(esh);return await u.getUsers(t)},l[3]=u,l[4]=e):e=l[4],t=n.pipe((0,eM.n)(e),(0,eV.T)(esp)),l[0]=c,l[1]=u,l[2]=t}else t=l[2];let f=t;l[5]!==p.observable?(n=p.observable.fetch('*[_type == "system.group"]').pipe((0,e1.t)(1)),l[5]=p.observable,l[6]=n):n=l[6];let g=n;l[7]!==g||l[8]!==f?(i=[f,g],l[7]=g,l[8]=f,l[9]=i):i=l[9];let[y,C]=i;if(l[10]!==s||l[11]!==d||l[12]!==C||l[13]!==y){let e;l[15]!==s||l[16]!==d?(e=async e=>{let[t,n]=e,i=t?.map(async e=>{let t=[...n.map(t=>t.members.includes(e.id)?t.grants:[])].flat(),{granted:i}=await dk(e.id,t,d,s);return{...e,granted:i}});return await Promise.all(i||[])},l[15]=s,l[16]=d,l[17]=e):e=l[17],r=(0,tg.p)([y,C]).pipe((0,tx.Z)(e)).pipe((0,eV.T)(esu)),l[10]=s,l[11]=d,l[12]=C,l[13]=y,l[14]=r}else r=l[14];let x=r;return l[18]!==x?(a=()=>{let e=(0,eP.of)(esd),t=(0,eR.x)(e,x).subscribe({next:h,error:e=>{h({data:[],error:e,loading:!1})}});return()=>{t.unsubscribe()}},o=[x],l[18]=x,l[19]=a,l[20]=o):(a=l[19],o=l[20]),(0,_.useEffect)(a,o),m}function esu(e){return{error:null,loading:!1,data:(0,ee.A)(e,"displayName")}}function esp(e){return e.map(esm)}function esm(e){return{displayName:e.displayName,id:e.id,granted:!1}}function esh(e){let{id:t}=e;return t}function esf(e){return e.members?.filter(esg)}function esg(e){return!e.isRobot}function esy(e){let t,n,i,r,a,o=(0,j.c)(19),{draft:l,published:s,versions:d,singleLine:c}=e,{data:u}=gU();o[0]!==d?(t=Object.entries(d??{}),o[0]=d,o[1]=t):t=o[1];let p=t,{t:m}=as(),{document:h}=cY(),{drafts:f}=h,{enabled:g}=f,y=c?"center":"flex-start",C=c?"row":"column";return o[2]!==s||o[3]!==m?(n=s&&(0,v.jsx)(esx,{title:m("release.chip.published"),mode:"published",timestamp:s._updatedAt,tone:"positive"}),o[2]=s,o[3]=m,o[4]=n):n=o[4],o[5]!==l||o[6]!==g||o[7]!==m?(i=g&&l&&(0,v.jsx)(esx,{title:m("release.chip.draft"),mode:"draft",timestamp:l._updatedAt,tone:"caution"}),o[5]=l,o[6]=g,o[7]=m,o[8]=i):i=o[8],o[9]!==u||o[10]!==m||o[11]!==p?(r=p.map(e=>{let[t,n]=e;if(!n)return null;let i=u?.find(e=>cN(e._id)===t);return(0,v.jsx)(esx,{mode:n._updatedAt===n._createdAt?"created":"edited",title:i?.metadata.title||m("release.placeholder-untitled-release"),timestamp:n?._updatedAt,tone:i?uA(i):"default"},t)}),o[9]=u,o[10]=m,o[11]=p,o[12]=r):r=o[12],o[13]!==y||o[14]!==C||o[15]!==n||o[16]!==i||o[17]!==r?(a=(0,v.jsxs)(I.so,{align:y,direction:C,gap:3,wrap:"nowrap",children:[n,i,r]}),o[13]=y,o[14]=C,o[15]=n,o[16]=i,o[17]=r,o[18]=a):a=o[18],a}let esC={draft:"document-status.edited",published:"document-status.published",edited:"document-status.edited",created:"document-status.created"},esx=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(16),{title:d,timestamp:c,mode:u,tone:p}=e,{t:m}=as();s[0]===Symbol.for("react.memo_cache_sentinel")?(t={minimal:!0,useTemporalPhrase:!0},s[0]=t):t=s[0];let h=um(c||"",t);s[1]!==p?(n=(0,v.jsx)(RL,{tone:p,padding:0}),s[1]=p,s[2]=n):n=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(i={color:"var(--card-muted-fg-color)"},s[3]=i):i=s[3];let f=esC[u];return s[4]!==h||s[5]!==m||s[6]!==f?(r=m(f,{date:h}),s[4]=h,s[5]=m,s[6]=f,s[7]=r):r=s[7],s[8]!==r?(a=(0,v.jsx)("span",{style:i,children:r}),s[8]=r,s[9]=a):a=s[9],s[10]!==a||s[11]!==d?(o=(0,v.jsxs)(I.EY,{size:1,children:[d," -"," ",a]}),s[10]=a,s[11]=d,s[12]=o):o=s[12],s[13]!==n||s[14]!==o?(l=(0,v.jsxs)(I.so,{align:"center",gap:2,children:[n,o]}),s[13]=n,s[14]=o,s[15]=l):l=s[15],l},esb="copyErrorDetails";function esv(e){return navigator.clipboard.writeText(e)}let esj=["authorization"],esw=e=>{let t,n,i,r,a,o,l=(0,j.c)(10),{error:s,eventId:d,onRetry:c,isRetrying:u,size:p}=e,m=(a=(0,j.c)(4),o=(0,T.dj)(),a[0]!==s||a[1]!==d||a[2]!==o?(r=()=>{(0,eP.of)({error:s,eventId:d}).pipe((0,eV.T)(({error:e,eventId:t})=>JSON.stringify({error:function e(t){if(!rZ(t))return t;let n={};for(let[i,r]of Object.entries(t))if("headers"===i.toLowerCase()&&rZ(r)){let e={};for(let[t,n]of Object.entries(r))esj.some(e=>t.toLowerCase().includes(e))?e[t]="[hidden]":e[t]=n;n[i]=e}else rZ(r)||Array.isArray(r)?n[i]=e(r):n[i]=r;return n}(rZ(e)?(0,eC.A)(e,Object.getOwnPropertyNames(e)):void 0),eventId:t},null,2)),(0,eY.W)(e=>(console.error(e),o.push({status:"error",title:"Failed to get error details",id:esb}),eO.w)),(0,e5.M)(esv),(0,eY.W)(e=>(console.error(e),o.push({status:"error",title:"Failed to copy error details",id:esb}),eO.w))).subscribe()},a[0]=s,a[1]=d,a[2]=o,a[3]=r):r=a[3],r);return l[0]!==u||l[1]!==c||l[2]!==p?(t=c&&(0,v.jsx)(tL.$n,{disabled:u,loading:u,onClick:c,text:"Retry",tone:"primary",icon:eT.Fjq,size:p}),l[0]=u,l[1]=c,l[2]=p,l[3]=t):t=l[3],l[4]!==m||l[5]!==p?(n=(0,v.jsx)(tL.m_,{content:"These technical details may be useful for developers.",children:(0,v.jsx)(tL.$n,{onClick:m,text:"Copy error details",tone:"default",mode:"ghost",icon:eT.TdU,size:p})}),l[4]=m,l[5]=p,l[6]=n):n=l[6],l[7]!==t||l[8]!==n?(i=(0,v.jsxs)(I.cV,{space:3,children:[t,n]}),l[7]=t,l[8]=n,l[9]=i):i=l[9],i},es_=(0,eI.I4)(I.mc).withConfig({displayName:"StyledContainer",componentId:"sc-bnxr1x-0"})(e=>{let{theme:t}
1961=e,{container:n,media:i}=t.sanity;return(0,I.U1)(i,e.$width,e=>({width:"auto"===e?"none":(0,I.D0)(n[e]),maxWidth:"100%"}))}),esk=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l=(0,j.c)(11);l[0]!==e?({width:i,...n}=e,l[0]=e,l[1]=n,l[2]=i):(n=l[1],i=l[2]),l[3]!==i?(r=void 0===i?[]:i,l[3]=i,l[4]=r):r=l[4];let s=r;return l[5]!==s?(a=Array.isArray(s)?s:[s],l[5]=s,l[6]=a):a=l[6],l[7]!==t||l[8]!==n||l[9]!==a?(o=(0,v.jsx)(es_,{...n,"data-ui":"PopoverContainer",$width:a,ref:t}),l[7]=t,l[8]=n,l[9]=a,l[10]=o):o=l[10],o}),esS=(0,eI.I4)(tL.AM).withConfig({displayName:"StyledPopover",componentId:"sc-qlxjvl-0"})(()=>(0,eI.AH)` 1962 /* Make the popover scrollable if it overflows the viewport */ 1963 [data-ui='Popover__wrapper'] { 1964 overflow: auto; 1965 } 1966 `),esI=(0,eI.I4)(I.Wd).withConfig({displayName:"StickyLayer",componentId:"sc-qlxjvl-1"})(e=>{let t=e.theme.sanity.radius[3];return(0,eI.AH)` 1967 position: sticky; 1968 top: 0; 1969 width: 100%; 1970 background: var(--card-bg-color); 1971 border-bottom: 1px solid var(--card-border-color); 1972 border-top-left-radius: ${t}px; 1973 border-top-right-radius: ${t}px; 1974 `});function esT(e){let t,n,i,r,a,o,l,s,d,c=(0,j.c)(23),{children:u,header:p,onClose:m,referenceElement:h,containerRef:f,width:g}=e;c[0]!==m||c[1]!==h?(t=()=>{m(),h?.focus()},c[0]=m,c[1]=h,c[2]=t):t=c[2];let y=t;c[3]!==p?(n=(0,v.jsx)(I.az,{flex:1,children:(0,v.jsx)(I.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:p})}),c[3]=p,c[4]=n):n=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(i={content:"Close"},c[5]=i):i=c[5],c[6]!==y?(r=(0,v.jsx)(tL.$n,{icon:eT.USm,mode:"bleed",onClick:y,tooltipProps:i}),c[6]=y,c[7]=r):r=c[7],c[8]!==n||c[9]!==r?(a=(0,v.jsx)(esI,{children:(0,v.jsx)(I.az,{padding:2,paddingLeft:4,children:(0,v.jsxs)(I.so,{align:"center",gap:2,children:[n,r]})})}),c[8]=n,c[9]=r,c[10]=a):a=c[10],c[11]!==u?(o=(0,v.jsx)(I.az,{padding:4,children:u}),c[11]=u,c[12]=o):o=c[12],c[13]!==f||c[14]!==a||c[15]!==o?(l=(0,v.jsx)(tq.Ay,{autoFocus:!0,children:(0,v.jsxs)(I.BJ,{ref:f,children:[a,o]})}),c[13]=f,c[14]=a,c[15]=o,c[16]=l):l=c[16],c[17]!==l||c[18]!==g?(s=(0,v.jsx)(esk,{width:g,"data-testid":"popover-dialog",children:l}),c[17]=l,c[18]=g,c[19]=s):s=c[19];let C=s;return c[20]!==C||c[21]!==h?(d=(0,v.jsx)(esS,{portal:!0,constrainSize:!0,content:C,open:!0,referenceElement:h}),c[20]=C,c[21]=h,c[22]=d):d=c[22],d}let esE=(0,eI.I4)(I.Zp).withConfig({displayName:"StyledCard",componentId:"sc-13z6s3f-0"})(()=>(0,eI.AH)` 1975 /* TextWithTone uses its own logic to set color, and we therefore need */ 1976 /* to override this logic in order to set the correct color in different states */ 1977 &[data-selected], 1978 &[data-pressed], 1979 &:active { 1980 [data-ui='TextWithTone'] { 1981 color: inherit; 1982 } 1983 } 1984 `),es$=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d=(0,j.c)(16);d[0]!==e?({children:i,selected:a,as:n,...r}=e,d[0]=e,d[1]=n,d[2]=i,d[3]=r,d[4]=a):(n=d[1],i=d[2],r=d[3],a=d[4]),d[5]!==a?(o={selected:a},d[5]=a,d[6]=o):o=d[6];let c=o;return d[7]!==i||d[8]!==c?(l=(0,v.jsx)(S.cr.Provider,{value:c,children:i}),d[7]=i,d[8]=c,d[9]=l):l=d[9],d[10]!==n||d[11]!==t||d[12]!==r||d[13]!==a||d[14]!==l?(s=(0,v.jsx)(esE,{"data-ui":"PreviewCard",...r,forwardedAs:n,ref:t,selected:a,children:l}),d[10]=n,d[11]=t,d[12]=r,d[13]=a,d[14]=l,d[15]=s):s=d[15],s}),esA=(0,eI.I4)(es$).withConfig({displayName:"ReferenceInputPreviewCard",componentId:"sc-13z6s3f-1"})`min-height:36px;`,esD=eI.I4.span.withConfig({displayName:"MediaWrapper",componentId:"sc-9zn1wt-0"})(e=>{let{$dimensions:t,$layout:n,$radius:i,$responsive:r}=e,a=t.width||0,o=t.width||0,l=Ft[n].icon;return(0,eI.AH)` 1985 position: relative; 1986 width: ${r?"100%":(0,I.D0)(a)}; 1987 height: ${r?"100%":(0,I.D0)(o)}; 1988 min-width: ${r?void 0:(0,I.D0)(a)}; 1989 border-radius: ${({theme:e})=>(0,I.D0)(e.sanity.radius[i])}; 1990 display: flex; 1991 overflow: hidden; 1992 overflow: clip; 1993 align-items: center; 1994 justify-content: center; 1995 1996 & img { 1997 position: absolute; 1998 left: 0; 1999 top: 0; 2000 width: 100%; 2001 height: 100%; 2002 object-fit: contain; 2003 border-radius: inherit; 2004 } 2005 2006 & svg { 2007 // Shared styles for SVG icons 2008 color: var(--card-icon-color); 2009 display: block; 2010 flex: 1; 2011 2012 // Specific styles for non Sanity icons 2013 &:not([data-sanity-icon]) { 2014 height: 1em; 2015 width: 1em; 2016 max-width: 1em; 2017 max-height: 1em; 2018 } 2019 2020 // Specific styles for Sanity icons 2021 &[data-sanity-icon] { 2022 display: block; 2023 font-size: calc(${l} / 16 * 1em); 2024 } 2025 } 2026 2027 & > span[data-border] { 2028 display: block; 2029 position: absolute; 2030 left: 0; 2031 top: 0; 2032 right: 0; 2033 bottom: 0; 2034 box-shadow: inset 0 0 0 1px var(--card-fg-color); 2035 opacity: 0.1; 2036 border-radius: inherit; 2037 pointer-events: none; 2038 } 2039 `});function esz(e){let t,n,i,r=(0,j.c)(14),{border:a,dimensions:o,layout:l,media:s,radius:d,responsive:c,styles:u}=e,p=void 0===a||a,m=void 0===d?1:d,h=void 0!==c&&c,f=u?.media;return r[0]!==o||r[1]!==l||r[2]!==s?(t=function(e){let{dimensions:t,layout:n,media:i,styles:r}=e;return"string"==typeof i?(0,v.jsx)(I.EY,{as:"span",className:r?.mediaString,size:1,children:i}):(0,tU.isValidElementType)(i)?(0,v.jsx)(i,{dimensions:t,layout:n}):(0,_.isValidElement)(i)?i:null}({dimensions:o,layout:l,media:s}
2039),r[0]=o,r[1]=l,r[2]=s,r[3]=t):t=r[3],r[4]!==p?(n=p&&(0,v.jsx)("span",{"data-border":!0}),r[4]=p,r[5]=n):n=r[5],r[6]!==o||r[7]!==l||r[8]!==m||r[9]!==h||r[10]!==f||r[11]!==t||r[12]!==n?(i=(0,v.jsxs)(esD,{$dimensions:o,$layout:l,$radius:m,$responsive:h,className:f,"data-testid":"Media",children:[t,n]}),r[6]=o,r[7]=l,r[8]=m,r[9]=h,r[10]=f,r[11]=t,r[12]=n,r[13]=i):i=r[13],i}function esP(e,t,n){return"string"==typeof e?e:(0,tU.isValidElementType)(e)?(0,v.jsx)(e,{layout:t}):e||n}esD.displayName="Styled(MediaWrapper)";let esR={...Ft.compact.media,aspect:1,fit:"crop",dpr:(0,nO.m)()},esN=(0,eI.I4)(I.so).withConfig({displayName:"Root",componentId:"sc-81976j-0"})`height:${(0,I.D0)(Ft.compact.media.height)};box-sizing:content-box;`,esO=(0,eI.I4)(T.r5).attrs({animated:!0,radius:1,size:1}).withConfig({displayName:"TitleSkeleton",componentId:"sc-81976j-1"})`max-width:${(0,I.D0)(160)};width:80%;`,esV=(0,eI.I4)(I.Zp).withConfig({displayName:"Root",componentId:"sc-sggonj-0"})`overflow:hidden;overflow:clip;`,esM=(0,eI.I4)(I.Zp).withConfig({displayName:"Bar",componentId:"sc-sggonj-1"})(({theme:e})=>{let{color:t}=e.sanity;return(0,eI.AH)` 2040 height: ${.5}rem; 2041 background: ${ez.OZ.blue[t.dark?400:500].hex}; 2042 transition: transform 75ms; 2043 `});function esL(e){let t,n=(0,j.c)(2),{value:i}=e,r=`translate3d(${i-100}%, 0, 0)`;return n[0]!==r?(t=(0,v.jsx)(esV,{radius:5,children:(0,v.jsx)(esM,{radius:5,style:{transform:r}})}),n[0]=r,n[1]=t):t=n[1],t}let esF={...Ft.default.media,aspect:1,fit:"crop",dpr:(0,nO.m)()},esB=(0,eI.I4)(I.so).withConfig({displayName:"Root",componentId:"sc-1wtcvgg-0"})`height:${(0,I.D0)(Ft.default.media.height)};box-sizing:content-box;`,esY=(0,eI.I4)(T.r5).attrs({animated:!0,radius:1,size:1}).withConfig({displayName:"TitleSkeleton",componentId:"sc-1wtcvgg-1"})`max-width:${(0,I.D0)(160)};width:80%;`,esH=(0,eI.I4)(T.r5).attrs({animated:!0,radius:1,size:1}).withConfig({displayName:"SubtitleSkeleton",componentId:"sc-1wtcvgg-2"})`max-width:${(0,I.D0)(120)};width:60%;`;function esU(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(49),{title:p,subtitle:m,media:h,status:f,isPlaceholder:g,children:y,styles:C,progress:x}=e,{t:b}=as(),w=C?.root,_=!!m&&C?.hasSubtitle;u[0]!==w||u[1]!==_?(t=nB(w,_),u[0]=w,u[1]=_,u[2]=t):t=u[2];let k=t,S="number"==typeof x&&x>-1;u[3]!==f||u[4]!==C?.status?(n=f&&(0,v.jsx)(I.az,{className:C?.status,"data-testid":"default-preview__status",children:esP(f,"default")}),u[3]=f,u[4]=C?.status,u[5]=n):n=u[5];let E=n;if(g){let e,t,n,i,r,a=C?.placeholder,o=h?2:3;return u[6]!==h?(e=h&&(0,v.jsx)(I.az,{flex:"none",children:(0,v.jsx)(T.EA,{animated:!0,delay:300,radius:1,style:Ft.default.media})}),u[6]=h,u[7]=e):e=u[7],u[8]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsxs)(I.BJ,{"data-testid":"default-preview__heading",flex:1,space:2,children:[(0,v.jsx)(esY,{delay:300}),(0,v.jsx)(esH,{delay:300})]}),u[8]=t):t=u[8],u[9]!==E?(n=(0,v.jsx)(I.az,{flex:"none",padding:1,children:E}),u[9]=E,u[10]=n):n=u[10],u[11]!==e||u[12]!==n?(i=(0,v.jsxs)(I.so,{align:"center",flex:1,gap:2,children:[e,t,n]}),u[11]=e,u[12]=n,u[13]=i):i=u[13],u[14]!==a||u[15]!==o||u[16]!==i?(r=(0,v.jsx)(esB,{align:"center",className:a,"data-testid":"default-preview",padding:2,paddingLeft:o,children:i}),u[14]=a,u[15]=o,u[16]=i,u[17]=r):r=u[17],r}let $=h?2:3;u[18]!==h||u[19]!==C?(i=h&&(0,v.jsx)(I.az,{flex:"none",children:(0,v.jsx)(esz,{dimensions:esF,layout:"default",media:h,styles:C})}),u[18]=h,u[19]=C,u[20]=i):i=u[20];let A=C?.heading;return u[21]!==S||u[22]!==x?(r=S&&(0,v.jsx)(esL,{value:x}),u[21]=S,u[22]=x,u[23]=r):r=u[23],u[24]!==S||u[25]!==C?.subtitle||u[26]!==C?.title||u[27]!==m||u[28]!==b||u[29]!==p?(a=!S&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(I.EY,{className:C?.title,size:1,style:{color:"inherit"},textOverflow:"ellipsis",weight:"medium",children:[p&&esP(p,"default"),!p&&(0,v.jsx)("span",{style:{color:"var(--card-muted-fg-color)"},children:b("preview.default.title-fallback")})]}),m&&(0,v.jsx)(I.EY,{muted:!0,size:1,textOverflow:"ellipsis",className:C?.subtitle,children:esP(m,"default")})]}
2043),u[24]=S,u[25]=C?.subtitle,u[26]=C?.title,u[27]=m,u[28]=b,u[29]=p,u[30]=a):a=u[30],u[31]!==A||u[32]!==r||u[33]!==a?(o=(0,v.jsxs)(I.BJ,{className:A,"data-testid":"default-preview__header",flex:1,space:2,children:[r,a]}),u[31]=A,u[32]=r,u[33]=a,u[34]=o):o=u[34],u[35]!==E?(l=(0,v.jsx)(I.az,{flex:"none",padding:1,children:E}),u[35]=E,u[36]=l):l=u[36],u[37]!==y||u[38]!==C?.children?(s=y&&(0,v.jsx)("div",{className:C?.children,children:y}),u[37]=y,u[38]=C?.children,u[39]=s):s=u[39],u[40]!==l||u[41]!==s||u[42]!==i||u[43]!==o?(d=(0,v.jsxs)(I.so,{align:"center",flex:1,gap:2,children:[i,o,l,s]}),u[40]=l,u[41]=s,u[42]=i,u[43]=o,u[44]=d):d=u[44],u[45]!==k||u[46]!==d||u[47]!==$?(c=(0,v.jsx)(esB,{align:"center",className:k,"data-testid":"default-preview",padding:2,paddingLeft:$,children:d}),u[45]=k,u[46]=d,u[47]=$,u[48]=c):c=u[48],c}let esZ={...Ft.detail.media,fit:"crop",aspect:1,dpr:(0,nO.m)()},esq=eI.I4.svg.withConfig({displayName:"Root",componentId:"sc-29w9ng-0"})`width:${43}px;height:${43}px;transform:rotate(-90deg);`,esW=eI.I4.circle.withConfig({displayName:"BgCircle",componentId:"sc-29w9ng-1"})(({theme:e})=>{let{color:t}=e.sanity;return(0,eI.AH)` 2044 fill: none; 2045 stroke: ${ez.OZ.gray[t.dark?900:100].hex}; 2046 stroke-width: ${3}px; 2047 `}),esJ=eI.I4.circle.withConfig({displayName:"ProgressCircle",componentId:"sc-29w9ng-2"})(({theme:e})=>{let{color:t}=e.sanity;return(0,eI.AH)` 2048 fill: none; 2049 stroke: ${ez.OZ.blue[t.dark?400:500].hex}; 2050 stroke-width: ${3}px; 2051 transition: stroke-dashoffset 75ms; 2052 `});function esK(e){let t,n,i=(0,j.c)(3),{value:r}=e,a=Math.min(Math.max(r,0),100),o=2*Math.PI*20,l="21.5 21.5 43 43";i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,v.jsx)(esW,{cx:43,cy:43,r:20}),i[0]=t):t=i[0];let s=`${(100-a)/100*o}px`;return i[1]!==s?(n=(0,v.jsxs)(esq,{viewBox:l,children:[t,(0,v.jsx)(esJ,{cx:43,cy:43,r:20,style:{strokeDasharray:o,strokeDashoffset:s}})]}),i[1]=s,i[2]=n):n=i[2],n}let esG=(0,eI.I4)(I.az).withConfig({displayName:"RootBox",componentId:"sc-g2aiwo-0"})`position:relative;`,esX=(0,eI.I4)(I.so).attrs({align:"center",justify:"center"}).withConfig({displayName:"MediaFlex",componentId:"sc-g2aiwo-1"})`position:absolute;left:0;top:0;right:0;bottom:0;`,esQ=(0,eI.I4)(T.EA).attrs({animated:!0,radius:2}).withConfig({displayName:"MediaSkeleton",componentId:"sc-g2aiwo-2"})`width:100%;height:100%;`,es1=(0,eI.I4)(I.so).attrs({align:"center",justify:"center"}).withConfig({displayName:"ProgressFlex",componentId:"sc-g2aiwo-3"})`position:absolute;left:0;top:0;right:0;bottom:0;&:before{background-color:var(--card-bg-color);opacity:0.75;content:'';display:block;position:absolute;left:0;top:0;right:0;bottom:0;}> svg{position:relative;z-index:2;}`,es2=(0,eI.I4)(I.BJ).attrs({space:2}).withConfig({displayName:"TooltipContentStack",componentId:"sc-g2aiwo-4"})`max-width:${(0,I.D0)(200)};`,es5={...Ft.media.media,aspect:1,fit:"crop",dpr:(0,nO.m)()},es0=(0,eI.I4)(I.so).attrs({align:"center"}).withConfig({displayName:"HeaderFlex",componentId:"sc-1ss4u22-0"})`height:${(0,I.D0)(Ft.block.media.height)};white-space:nowrap;position:relative;z-index:1;`,es7=(0,eI.I4)(I.Zp).withConfig({displayName:"MediaCard",componentId:"sc-1ss4u22-1"})`overflow:hidden;position:relative;padding-bottom:${({$ratio:e})=>e}%;& > span{position:absolute;top:0;left:0;right:0;bottom:0;}`,es3=(0,eI.I4)(I.az).attrs({overflow:"hidden"}).withConfig({displayName:"RootBox",componentId:"sc-1ss4u22-2"})`border-radius:${({theme:e})=>e.sanity.radius[1]}px;`,es8={...Ft.blockImage.media,fit:"fillmax",dpr:(0,nO.m)()},es4={...Ft.block.media,aspect:1,fit:"crop",dpr:(0,nO.m)()},es6=(0,eI.I4)(I.so).attrs({align:"center"}).withConfig({displayName:"HeaderFlex",componentId:"sc-2nqxb9-0"})`min-height:${(0,I.D0)(Ft.block.media.height)};`,es9=eI.I4.span.withConfig({displayName:"RootSpan",componentId:"sc-uy374x-0"})`display:inline-flex;align-items:center;vertical-align:top;height:calc(1em - 1px);max-width:100%;`,ede=eI.I4.span.withConfig({displayName:"MediaSpan",componentId:"sc-uy374x-1"})`position:relative;display:inline-block;width:calc(1em - 1px);height:calc(1em - 1px);min-width:calc(1em - 1px);& img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:${({theme:e})=>(0,I.D0)(e.sanity.radius[1])};}& img + span{position:absolute;
2052left:0;top:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px var(--card-fg-color);opacity:0.2;border-radius:${({theme:e})=>(0,I.D0)(e.sanity.radius[1])};}& svg{display:block;font-size:calc(14 / 16 * 1em);margin:1px 0;&[data-sanity-icon]{font-size:calc(18 / 16 * 1em);margin:calc(1px + (2 / 18 * -1em)) 0;}}`,edt=(0,eI.I4)(I.EY).attrs({forwardedAs:"span"}).withConfig({displayName:"TextSpan",componentId:"sc-uy374x-2"})(({theme:e})=>{let t=e.sanity.fonts.text,n=t.sizes[1];return(0,eI.AH)` 2053 font-size: calc(${n.fontSize} / 16 * 1em); 2054 font-weight: ${t.weights.medium}; 2055 box-sizing: border-box; 2056 display: inline-block; 2057 vertical-align: top; 2058 line-height: ${n.lineHeight/n.fontSize}; 2059 padding-left: 0.5em; 2060 padding-right: calc(0.5em - 2px); 2061 min-width: 0; 2062 2063 & > span { 2064 display: block; 2065 white-space: nowrap; 2066 text-overflow: ellipsis; 2067 overflow: hidden; 2068 overflow: clip; 2069 } 2070 `}),edn={...Ft.inline.media,fit:"crop",aspect:1,dpr:(0,nO.m)()};Ft.default.media,(0,nO.m)(),(0,eI.I4)(I.az).withConfig({displayName:"Root",componentId:"sc-1ar6jbk-0"})`height:100%;a{color:currentColor;text-decoration:none;}svg[data-sanity-icon]{margin:0;}`,(0,eI.I4)(I.so).attrs({align:"center"}).withConfig({displayName:"HeaderFlex",componentId:"sc-1ar6jbk-1"})`height:${(0,I.D0)(Ft.default.media.height)};`,(0,eI.I4)(T.r5).attrs({animated:!0,radius:1}).withConfig({displayName:"TitleSkeleton",componentId:"sc-1ar6jbk-2"})`max-width:${(0,I.D0)(160)};width:80%;`,(0,eI.I4)(T.r5).attrs({animated:!0,radius:1,size:1}).withConfig({displayName:"SubtitleSkeleton",componentId:"sc-1ar6jbk-3"})`max-width:${(0,I.D0)(120)};width:60%;`;let edi=["aria-hidden","disabled","href"];function edr(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(25),{direction:p,initialFocus:m,loop:h,navigation:f,pause:g,rootElement:y}=e,C=void 0===p?"horizontal":p,x=void 0===h||h;u[0]!==f?(t=void 0===f?["arrows"]:f,u[0]=f,u[1]=t):t=u[1];let b=t,v=void 0!==g&&g,[w,k]=(0,_.useState)(-1);u[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],u[2]=n):n=u[2];let[S,I]=(0,_.useState)(n),T=S.length,E=T-1,$="horizontal"===C?"ArrowRight":"ArrowDown",A="horizontal"===C?"ArrowLeft":"ArrowUp";u[3]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{k(e)},u[3]=i):i=u[3];let D=i;u[4]!==T||u[5]!==E||u[6]!==x||u[7]!==b||u[8]!==$||u[9]!==v||u[10]!==A?(r=e=>{if(v)return;let t=()=>{e.preventDefault(),k(e=>{let t=(e+E)%T;return x||t!==E?t:e})},n=()=>{e.preventDefault(),k(e=>{let t=(e+1)%T;return x||0!==t?t:e})};"Tab"===e.key&&b.includes("tab")&&(e.shiftKey?t():n()),b.includes("arrows")&&(e.key===A&&t(),e.key===$&&n())},u[4]=T,u[5]=E,u[6]=x,u[7]=b,u[8]=$,u[9]=v,u[10]=A,u[11]=r):r=u[11];let z=r;u[12]!==y?(a=()=>{let e=()=>{y&&I([...y.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(e=>!e.hasAttribute("disabled")&&"true"!==e.getAttribute("aria-hidden")))};e();let t=new MutationObserver(e);return y&&t.observe(y,{childList:!0,subtree:!0,attributeFilter:edi}),()=>{t.disconnect()}},o=[y],u[12]=y,u[13]=a,u[14]=o):(a=u[13],o=u[14]),(0,_.useEffect)(a,o),u[15]!==S||u[16]!==w||u[17]!==m||u[18]!==E?(l=()=>{S.forEach((e,t)=>{t===w?(e.setAttribute("tabIndex","0"),e.setAttribute("aria-selected","true"),e.focus(),e.onfocus=()=>D(t),e.onblur=()=>D(-1)):(e.setAttribute("tabIndex","-1"),e.setAttribute("aria-selected","false"),e.onfocus=()=>D(t))}),-1===w&&S&&S["last"===m?E:0]?.setAttribute("tabIndex","0")},s=[S,w,D,m,E],u[15]=S,u[16]=w,u[17]=m,u[18]=E,u[19]=l,u[20]=s):(l=u[19],s=u[20]),(0,_.useEffect)(l,s),u[21]!==z||u[22]!==y?(d=()=>(y?.addEventListener("keydown",z),()=>{y?.removeEventListener("keydown",z)}),c=[z,y],u[21]=z,u[22]=y,u[23]=d,u[24]=c):(d=u[23],c=u[24]),(0,_.useEffect)(d,c)}let eda=(0,eI.I4)(tL.$n).withConfig({displayName:"StyledButton",componentId:"sc-1352kvs-0"})`position:relative;& > span:nth-child(2){position:absolute;top:6px;right:6px;padding:0;}`,edo=eI.I4.div.withConfig({displayName:"Dot",componentId:"sc-1352kvs-1"})({width:4,height:4,borderRadius:3,boxShadow:"0 0 0 1px var(--card-bg-color)"}),edl=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(22);p[0]!==e?({disabled:n,icon:i,"aria-label":r,mode:o,text:l,tone:s,...a}=e,p[0]=e,p[1]=n,p[2]=i,p[3]=r,p[4]=a,p[5]=o,p[6]=l,p[7]=s):(n=p[1],i=p[2],r=p[3],a=p[4],o=p[5],l=p[6],s=p[7]);let m=void 0===o?"bleed":o,h=`var(--card-badge-${s}-dot-color)`;p[8]!==h?(d={backgroundColor:h},p[8]=h,p[9]=d):d=p[9];let f=d,g=!!n;return p[10]!==f||p[11]!==s?(c=s&&(0,v.jsx)(edo,{style:f}),p[10]=f,p[11]=s,p[12]=c):c=p[12],p[13]!==g||p[14]!==i||p[15]!==r||p[16]!==m||p[17]!==t||p[18]!==a||p[19]!==c||p[20]!==l?(u=(0,v.jsx)(eda,{"data-ui":"StatusButton",...a,"aria-label":r,disabled:g,mode:m,ref:t,text:l,icon:i,children:c}),p[13]=g,p[14]=i,p[15]=r,p[16]=m,p[17]=t,p[18]=a,p[19]=c,p[20]=l,p[21]=u):u=p[21],u}),eds=(0,_.forwardRef)(function(e,t){let n,i,r,a,o,l,s=(0,j.c)(13);s[0]!==e?({children:n,content:i,disabled:r,...a}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=r,s[4]=a):(n=s[1],i=s[2],r=s[3],a=s[4]);let d=r||!i;return s[5]!==n?(o=(0,v.jsx)("div",{children:n}),s[5]=n,s[6]=o):o=s[6],s[7]!==i||s[8]!==t||s[9]!==a||s[10]!==d||s[11]!==o?(l=(0,v.jsx)(tL.m_,{...a,content:i,disabled:d,ref:t,children:o}
2070),s[7]=i,s[8]=t,s[9]=a,s[10]=d,s[11]=o,s[12]=l):l=s[12],l});function edd(){return(0,_.useContext)(S.SR)}function edc(e){let t,n=(0,j.c)(3),{children:i,zOffset:r}=e,a=edd()[r];return n[0]!==i||n[1]!==a?(t=(0,v.jsx)(I.XS,{zOffset:a,children:i}),n[0]=i,n[1]=a,n[2]=t):t=n[2],t}(0,_.forwardRef)((e,t)=>{let n,i=(0,j.c)(2),{push:r}=(0,T.dj)();return i[0]!==r?(n=()=>({push:r}),i[0]=r,i[1]=n):n=i[1],(0,_.useImperativeHandle)(t,n),null}).displayName="ForwardRef(ImperativeToast)";let edu=[];function edp(e){let t,n=(0,j.c)(3),{children:i,id:r}=e,a=br(r,edu);return n[0]!==i||n[1]!==a?(t=i(a),n[0]=i,n[1]=a,n[2]=t):t=n[2],t}let edm=e=>{let t,n,i,r,a,o,l,s=(0,j.c)(20),{path:d,hasRevertHover:c}=e,{onSetFocus:u}=(0,_.useContext)(S.HJ),p=edd(),[m,h]=(0,_.useState)(!1);s[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{h(!0)},s[0]=t):t=s[0];let f=t;s[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{h(!1)},s[1]=n):n=s[1];let g=n,[y,C]=(0,_.useState)(null);s[2]!==y||s[3]!==d?(i=y?`change-${w.dI(d)}`:null,s[2]=y,s[3]=d,s[4]=i):i=s[4];let x=i;s[5]!==y||s[6]!==m||s[7]!==c||s[8]!==d||s[9]!==p.popover?(r=()=>({element:y,path:d,isChanged:!0,hasFocus:!1,hasHover:m,zIndex:Array.isArray(p.popover)?p.popover[0]:p.popover,hasRevertHover:c}),s[5]=y,s[6]=m,s[7]=c,s[8]=d,s[9]=p.popover,s[10]=r):r=s[10],h9(x,r,k),s[11]!==u||s[12]!==d?(a=e=>{var t,n,i;t=e,n=u,i=d,t.stopPropagation(),n(i)},s[11]=u,s[12]=d,s[13]=a):a=s[13];let b=a;return s[14]!==d?(o=!1,s[14]=d,s[15]=o):o=s[15],s[16]!==b||s[17]!==e.children||s[18]!==o?(l=(0,v.jsxs)("div",{ref:C,onClick:b,onMouseLeave:g,onMouseEnter:f,children:[o,e.children]}),s[16]=b,s[17]=e.children,s[18]=o,s[19]=l):l=s[19],l};function edh(e,t,n){let i,r=t.slice(t.indexOf("-")+1)||"[]",a=w.sH(r),o=`${e}-${w.dI(a)}`;if(n.has(o))return n.get(o);if(a.length>0)for(let t=a.length-1;t>=0;t--){let i=a.slice(0,t),r=`${e}-${w.dI(i)}`;if(n.has(r))return n.get(r)}for(let[t,r]of n){if(!("path"in r)||!t.startsWith(e))continue;let n=w.$U(a,r.path),o=r.path[r.path.length-1],l=n===r.path.length-1&&(0,eD.o8)(o);if(0!==n&&!(n!==r.path.length&&!l)&&(i=r,n===a.length))break}return i}function edf(e){let t=getComputedStyle(e).overflow;return t.includes("auto")||t.includes("scroll")}let edg=(e,t)=>{let n={top:0,left:0,height:t.offsetHeight,width:t.offsetWidth},i={top:0,left:0,height:e.offsetHeight,width:e.offsetWidth},r=!1,a=e;for(;a&&a!==t&&t.contains(a);)r&&(n.top+=a.offsetTop,n.left+=a.offsetLeft),edf(a)&&(n.top=a.offsetTop,n.height=a.offsetHeight,n.left=a.offsetLeft,n.width=a.offsetWidth,r=!0),i.top+=a.offsetTop-a.scrollTop,i.left+=a.offsetLeft-a.scrollLeft,a=a.offsetParent;return{rect:i,bounds:n}};function edy(e){var t;let n=e.element;if(!n)return;let i=n;for(;!(((t=i).scrollHeight!==t.offsetHeight||t.scrollWidth!==t.offsetWidth)&&edf(t));)if(!(i=i.parentElement))return;i.scroll({top:i.scrollTop+e.rect.top-e.bounds.top+-15,left:0,behavior:"smooth"})}eI.I4.rect.withConfig({displayName:"DebugRect",componentId:"sc-42jssh-0"})`stroke:#ccc;fill:none;pointer-events:none;stroke-linecap:round;`;let edC=eI.I4.path.withConfig({displayName:"ConnectorPath",componentId:"sc-42jssh-1"})`fill:none;pointer-events:none;stroke-linejoin:round;stroke:var(--card-badge-caution-dot-color);`,edx=eI.I4.path.withConfig({displayName:"InteractivePath",componentId:"sc-42jssh-2"})`fill:none;pointer-events:stroke;stroke:transparent;cursor:pointer;stroke-linecap:round;stroke-linejoin:round;opacity:0;&:hover{opacity:0.2;}`,edb=(0,eI.I4)(function(e){let t,n,i,r=(0,j.c)(9);r[0]!==e?({bounds:t,...n}=e,r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]);let a=Math.max(t.left,e.left),o=Math.max(e.top,t.top),l=Math.max(0,e.height-(o-e.top)),s=Math.max(0,e.width-(a-e.left));return r[3]!==l||r[4]!==n||r[5]!==s||r[6]!==a||r[7]!==o?(i=(0,v.jsx)("rect",{...n,x:a,y:o,height:l,width:s}),r[3]=l,r[4]=n,r[5]=s,r[6]=a,r[7]=o,r[8]=i):i=r[8],i}).withConfig({displayName:"RightBarWrapper",componentId:"sc-42jssh-3"})`stroke:none;pointer-events:none;fill:var(--card-badge-caution-dot-color);`;function edv(e,t,n){return`M ${e-4} ${t-4*n} L ${e} ${t}L ${e+4} ${t-4*n}`}function edj(e,t){return`M${e} ${t}`}function edw(e,t){return`L${e} ${t}`}function ed_(e,t,n,i){return`Q${e} ${t} ${n} ${i}`}function edk(e,t){let n=e.top+e.height/2,i=e.top+e.height<t.top+2,r=e.top>t.top+t.height-2;return{bounds:t,left:e.left,top:n,centerY:n,startY:e.top+8,endY:e.top+e.height-8,isAbove:i,isBelow:r,outOfBounds:i||r}}let edS=(0,_.memo)(function(e){let t,n,i,r,a,o,l,s,d,c,u,p,m=(0,j.c)(41),{from:h,to:f}=e;if(m[0]!==h||m[1]!==f){i=Symbol.for("react.early_return_sentinel");e:{var g;let e,r,a,o,l;if(e={top:(g={from:h,to:f}).from.bounds.top+12,bottom:g.from.bounds.top+g.from.bounds.height-12,left:g.from.bounds.left,right:g.from.bounds.left+g.from.bounds.width,width:g.from.bounds.width,height:g.from.bounds.height-24},(r=edk(g.from.rect,e)).left=g.from.rect.left+g.from.rect.width+1,a={top:g.to.bounds.top+12,bottom:g.to.bounds.top+g.to.bounds.height-12,left:g.to.bounds.left,right:g.to.bounds.left+g.to.bounds.width,width:g.to.bounds.width,height:g.to.bounds.height-24},l=Math.max((o=edk(g.to.rect,a)).startY,r.startY),r.top=Math.min(l,r.endY),r.top<a.top?r.top=Math.min(a.top,r.endY):r.top>a.bottom&&(r.top=Math.max(a.bottom,r.startY)),o.top=Math.min(l,o.endY),o.top<e.top?o.top=Math.min(e.top,o.endY):o.top>e.bottom&&(o.top=Math.max(e.bottom,o.startY)),r.top=Math.min(Math.max(r.top,e.top),e.bottom),o.top=Math.min(Math.max(o.top,a.top),a.bottom),(t={from:r,to:o}).from.outOfBounds&&t.to.outOfBounds){i=null;break e}n=function(e){let{from:t,to:n}=e,{left:i,top:r}=t,{left:a,top:o}=n,l=[],s=Math.min(4,Math.abs(r-o)/2);return t.isAbove?l.push(edj(i+8,r-12+2),edw(i+8,r-4),ed_(i+8,r,i+8+4,r)):t.isBelow?l.push(edj(i+8,r+12-2),edw(i+8,r+4),ed_(i+8,r,i+8+4,r)):l.push(edj(i,r)),n.isAbove?r<n.bounds.top?l.push(edw(n.bounds.left-8-s,r),ed_(n.bounds.left-8,r,n.bounds.left-8,r+s),edw(n.bounds.left-8,o-s),ed_(n.bounds.left-8,o,n.bounds.left-8+s,o),edw(n.bounds.left+8-4,o),ed_(n.bounds.left+8,o,n.bounds.left+8,o-4),edw(n.bounds.left+8,o-12+2)):l.push(edw(n.bounds.left+8-4,r),ed_(n.bounds.left+8,r,n.bounds.left+8,r-4),edw(n.bounds.left+8,o-12+2)):n.isBelow?r>n.bounds.top+n.bounds.height?l.push(edw(n.bounds.left-8-s,r),ed_(n.bounds.left-8,r,n.bounds.left-8,r-s),edw(n.bounds.left-8,o+s),ed_(n.bounds.left-8,o,n.bounds.left-8+s,o),edw(n.bounds.left+8-4,o),ed_(n.bounds.left+8,o,n.bounds.left+8,o+4),edw(n.bounds.left+8,o+12-2)):l.push(edw(n.bounds.left+8-4,r),ed_(n.bounds.left+8,r,n.bounds.left+8,r+4),edw(n.bounds.left+8,o+12-2)):r<o?l.push(edw(n.bounds.left+8-s,r),ed_(n.bounds.left+8,r,n.bounds.left+8,r+s),edw(n.bounds.left+8,o-s),ed_(n.bounds.left+8,o,n.bounds.left+8+s,o),edw(a,o)):l.push(edw(n.bounds.left+8-s,r),ed_(n.bounds.left+8,r,n.bounds.left+8,r-s),edw(n.bounds.left+8,o+s),ed_(n.bounds.left+8,o,n.bounds.left+8+s,o),edw(a,o)),function(e,t=""){return e.join(t)}(l)}(t)}m[0]=h,m[1]=f,m[2]=t,m[3]=n,m[4]=i}else t=m[2],n=m[3],i=m[4];if(i!==Symbol.for("react.early_return_sentinel"))return i;let y=n;m[5]!==y?(r=(0,v.jsx)(edx,{d:y,strokeWidth:16}),a=(0,v.jsx)(edC,{d:y,strokeWidth:1}),m[5]=y,m[6]=r,m[7]=a):(r=m[6],a=m[7]);let C=f.rect.left-.5;return m[8]!==C||m[9]!==f.bounds||m[10]!==f.rect.height||m[11]!==f.rect.top?(o=(0,v.jsx)(edb,{top:f.rect.top,left
2070:C,height:f.rect.height,width:1,bounds:f.bounds}),m[8]=C,m[9]=f.bounds,m[10]=f.rect.height,m[11]=f.rect.top,m[12]=o):o=m[12],m[13]!==t.from.bounds||m[14]!==t.from.isAbove||m[15]!==t.from.left?(l=t.from.isAbove&&(0,v.jsx)(edC,{d:edv(t.from.left+8,t.from.bounds.top-12+2,-1),strokeWidth:1}),m[13]=t.from.bounds,m[14]=t.from.isAbove,m[15]=t.from.left,m[16]=l):l=m[16],m[17]!==t.from.bounds||m[18]!==t.from.isBelow||m[19]!==t.from.left?(s=t.from.isBelow&&(0,v.jsx)(edC,{d:edv(t.from.left+8,t.from.bounds.top+t.from.bounds.height+12-2,1),strokeWidth:1}),m[17]=t.from.bounds,m[18]=t.from.isBelow,m[19]=t.from.left,m[20]=s):s=m[20],m[21]!==t.to.bounds||m[22]!==t.to.isAbove?(d=t.to.isAbove&&(0,v.jsx)(edC,{d:edv(t.to.bounds.left+8,t.to.bounds.top-12+2,-1),strokeWidth:1}),m[21]=t.to.bounds,m[22]=t.to.isAbove,m[23]=d):d=m[23],m[24]!==t.to.bounds||m[25]!==t.to.isBelow?(c=t.to.isBelow&&(0,v.jsx)(edC,{d:edv(t.to.bounds.left+8,t.to.bounds.top+t.to.bounds.height+12-2,1),strokeWidth:1}),m[24]=t.to.bounds,m[25]=t.to.isBelow,m[26]=c):c=m[26],m[27]!==t.from.bounds||m[28]!==t.from.outOfBounds||m[29]!==t.to.bounds||m[30]!==t.to.outOfBounds?(u=!1,m[27]=t.from.bounds,m[28]=t.from.outOfBounds,m[29]=t.to.bounds,m[30]=t.to.outOfBounds,m[31]=u):u=m[31],m[32]!==c||m[33]!==u||m[34]!==r||m[35]!==a||m[36]!==o||m[37]!==l||m[38]!==s||m[39]!==d?(p=(0,v.jsxs)(v.Fragment,{children:[r,a,o,l,s,d,c,u]}),m[32]=c,m[33]=u,m[34]=r,m[35]=a,m[36]=o,m[37]=l,m[38]=s,m[39]=d,m[40]=p):p=m[40],p}),edI=eI.I4.svg.withConfig({displayName:"SvgWrapper",componentId:"sc-1u9wd4m-0"})`pointer-events:none;position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;`;function edT(e,t,n,i){let r=[],a=[];for(let n of e){if("changePanel"===n[0]||!n[1].isChanged)continue;let[e,i]=n;if(e===t||i.hasHover){r.push(n);continue}if(i.hasFocus){a.push(n);continue}}let o=r.length>0;return{connectors:(o?r:a).map(([e])=>{let t=edh("field",e,n),i=edh("change",e,n);return t&&i?{field:{id:e,...t},change:{id:e,...i}}:null}).filter(e=>!!e?.field.element&&!!e?.change.element).map(({field:e,change:t})=>({hasHover:e.hasHover||t.hasHover,hasFocus:e.hasFocus,hasRevertHover:t.hasRevertHover,field:{...e,...edg(e.element,i)},change:{...t,...edg(t.element,i)}})),isHoverConnector:o}}function edE(e){let t,n,i,r,a,o,l,s,d,c,u,p,m,h,f,g,y,C=(0,j.c)(23),{rootElement:x,onSetFocus:b}=e,[w,k]=(0,_.useState)(null),I=h6(),{isReviewChangesOpen:T}=(d=(0,j.c)(2),c=(0,_.useContext)(S.HJ),d[0]!==c?(s={...c,changesOpen:c.isReviewChangesOpen},d[0]=c,d[1]=s):s=d[1],s);C[0]!==I?(t=new Map(I),C[0]=I,C[1]=t):t=C[1];let E=t;C[2]!==I||C[3]!==E||C[4]!==w||C[5]!==x?(n=()=>edT(I,w,E,x),C[2]=I,C[3]=E,C[4]=w,C[5]=x,C[6]=n):n=C[6];let[$,A]=(0,_.useState)(n),{connectors:D}=$;C[7]!==D?(i=D.sort(ed$),C[7]=D,C[8]=i):i=C[8];let z=i[0];C[9]!==I||C[10]!==E||C[11]!==w||C[12]!==T||C[13]!==x?(r=()=>{T&&A(edT(I,w,E,x))},C[9]=I,C[10]=E,C[11]=w,C[12]=T,C[13]=x,C[14]=r):r=C[14];let P=r;(m=(0,j.c)(4))[0]!==x||m[1]!==P?(u=()=>r2.observe(x,P),p=[x,P],m[0]=x,m[1]=P,m[2]=u,m[3]=p):(u=m[2],p=m[3]),(0,_.useEffect)(u,p),g=(0,j.c)(4),y=(0,_.useContext)(S.z_),g[0]!==P||g[1]!==y?(h=()=>y?.subscribe(P),f=[P,y],g[0]=P,g[1]=y,g[2]=h,g[3]=f):(h=g[2],f=g[3]),(0,_.useEffect)(h,f);let R=z&&z.field.zIndex;return C[15]!==R?(a={zIndex:R},C[15]=R,C[16]=a):a=C[16],C[17]!==b||C[18]!==z?(o=z?.change&&(0,v.jsx)(edA,{field:z.field,change:z.change,onSetFocus:b,setHovered:k},z.field.id),C[17]=b,C[18]=z,C[19]=o):o=C[19],C[20]!==a||C[21]!==o?(l=(0,v.jsx)(edI,{style:a,children:o}),C[20]=a,C[21]=o,C[22]=l):l=C[22],l}function ed$(e,t){return t.field.id.length-e.field.id.length}function edA(e){let t,n,i,r,a,o,l,s,d,c,u,p=(0,j.c)(35),{change:m,field:h,onSetFocus:f,setHovered:g}=e;p[0]!==m||p[1]!==h||p[2]!==f?(t=()=>{edy(h),edy(m),f(h.path)},p[0]=m,p[1]=h,p[2]=f,p[3]=t):t=p[3];let y=t;p[4]!==h.id||p[5]!==g?(n=()=>g(h.id),p[4]=h.id,p[5]=g,p[6]=n):n=p[6];let C=n;p[7]!==g?(i=()=>g(null),p[7]=g,p[8]=i):i=p[8];let x=i,b=h.rect.left+3;p[9]!==h.rect||p[10]!==b?(r={...h.rect,left:b},p[9]=h.rect,p[10]=b,p[11]=r):r=p[11],p[12]!==h.bounds||p[13]!==r?(a={rect:r,bounds:h.bounds},p[12]=h.bounds,p[13]=r,p[14]=a):a=p[14];let w=a,_=m.rect.left+1;p[15]!==m.rect||p[16]!==_?(o={...m.rect,left:_},p[15]=m.rect,p[16]=_,p[17]=o):o=p[17],p[18]!==m.bounds||p[19]!==o?(l={rect:o,bounds:m.bounds},p[18]=m.bounds,p[19]=o,p[20]=l):l=p[20];let k=l;return p[21]!==w||p[22]!==k?(s=(0,v.jsx)(edS,{from:w,to:k}),p[21]=w,p[22]=k,p[23]=s):s=p[23],p[24]!==C||p[25]!==x||p[26]!==y||p[27]!==s?(d=(0,v.jsx)("g",{onClick:y,onMouseEnter:C,onMouseLeave:x,children:s}),p[24]=C,p[25]=x,p[26]=y,p[27]=s,p[28]=d):d=p[28],p[29]!==m||p[30]!==h?(c=!1,p[29]=m,p[30]=h,p[31]=c):c=p[31],p[32]!==d||p[33]!==c?(u=(0,v.jsxs)(v.Fragment,{children:[d,c]}),p[32]=d,p[33]=c,p[34]=u):u=p[34],u}function edD(e){let t,n,i,r,a,o,l,s,d,c,u=(0,j.c)(22);u[0]!==e?({children:t,className:n,isReviewChangesOpen:i,onOpenReviewChanges:r,onSetFocus:a,...o}=e,u[0]=e,u[1]=t,u[2]=n,u[3]=i,u[4]=r,u[5]=a,u[6]=o):(t=u[1],n=u[2],i=u[3],r=u[4],a=u[5],o=u[6]);let[p,m]=(0,_.useState)();u[7]!==i||u[8]!==r||u[9]!==a?(l={isReviewChangesOpen:i,onOpenReviewChanges:r,onSetFocus:a},u[7]=i,u[8]=r,u[9]=a,u[10]=l):l=u[10];let h=l;
2070return u[11]!==a||u[12]!==p?(s=p&&(0,v.jsx)(edE,{rootElement:p,onSetFocus:a}),u[11]=a,u[12]=p,u[13]=s):s=u[13],u[14]!==t||u[15]!==n||u[16]!==o||u[17]!==s?(d=(0,v.jsx)(h8,{children:(0,v.jsxs)(SN,{...o,ref:m,className:n,children:[t,s]})}),u[14]=t,u[15]=n,u[16]=o,u[17]=s,u[18]=d):d=u[18],u[19]!==h||u[20]!==d?(c=(0,v.jsx)(S.HJ.Provider,{value:h,children:d}),u[19]=h,u[20]=d,u[21]=c):c=u[21],c}function edz(){let e=(0,_.useContext)(S.iS);if(!e)throw Error("useSanityCreateConfig must be used within a SanityCreateConfigProvider");return e}function edP({selectedPerspective:e,isDraftModelEnabled:t,schemaType:n}){return typeof n>"u"?{result:!1,reason:"INSUFFICIENT_DATA"}:rG(e)&&"active"!==e.state?{result:!1,reason:"RELEASE_NOT_ACTIVE"}:uS(e)&&!0!==n.liveEdit?{result:!1,reason:"PUBLISHED_NOT_WRITEABLE"}:uI(e)&&!t&&!0!==n.liveEdit?{result:!1,reason:"DRAFTS_NOT_WRITEABLE"}:{result:!0}}function edR(){let e,t,n,i,r=(0,j.c)(9),{selectedReleaseId:a}=a3(),{data:o}=gU();r[0]!==o?(e=void 0===o?[]:o,r[0]=o,r[1]=e):e=r[1];let l=e;return r[2]!==l||r[3]!==a?(n=rQ(t=a?l.find(e=>cN(e._id)===a):void 0),r[2]=l,r[3]=a,r[4]=t,r[5]=n):(t=r[4],n=r[5]),r[6]!==t||r[7]!==n?(i={isPaused:n,currentRelease:t},r[6]=t,r[7]=n,r[8]=i):i=r[8],i}}}]);
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.