PageSourceSearch

https://www.danharris.com/_next/static/chunks/9845.98ae0d7476a4efbd.js

js danharris.com collected 2026-09-24 17:35:42 UTC 23,550 bytes, 10 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9845],{59845:function(e,t,n){n.r(t),n.d(t,{default:function(){return ek}});var r=n(57437),i=n(44184),a=n(2265),l=n(74819),s=n(9115),o=n(7347),d=n(29525),u=n(48634),c=n(46075),p=n(79473),h=n(28419),f=n(87935),m=n(30783),x=n(85393),y=n(11368),g=n(95978),v=n(66629),w=n(98563),j=n(90456),b=n(73600),I=n(7449),P=n(36940),_=n(17753),S=n(4382),k=n(45609),z=n(28887),$=n(9315),E=n(71033),L=n(90535),C=n(74487),N=n(80717),A=n(70421),O=n(21652),T=n(51187),R=n(18923);let U=[];function D(e){let t,n,a,l,s,d,p,h,f,m,x,y,g,v,w,j;let b=(0,i.c)(60),{children:I,flatIndex:P,index:_,params:S,payload:k,siblingIndex:z}=e,{navigate:$,navigateIntent:E,resolvePathFromState:L}=(0,u.tv)(),C=(0,u.z)(),{panes:N,expand:A}=(0,o.usePaneLayout)();t=C?.panes||U,n=N?.[N.length-2];let O=_-1;b[0]!==O||b[1]!==t||b[2]!==C||b[3]!==z?(a=e=>{let n=t[O]||[],r=n[z],i=e(n,r),a=[...t.slice(0,O),i,...t.slice(O+1)];return{...C,panes:a}},b[0]=O,b[1]=t,b[2]=C,b[3]=z,b[4]=a):a=b[4];let D=a;b[5]!==D||b[6]!==$?(l=e=>{let t=D(e);return setTimeout(()=>$(t),0),t},b[5]=D,b[6]=$,b[7]=l):l=b[7];let G=l;b[8]!==D||b[9]!==L||b[10]!==z?(s=e=>L(D((t,n)=>[...t.slice(0,z),{...n,params:e},...t.slice(z+1)])),b[8]=D,b[9]=L,b[10]=z,b[11]=s):s=b[11];let K=s;b[12]!==G||b[13]!==z?(d=e=>{G((t,n)=>[...t.slice(0,z),{...n,payload:e},...t.slice(z+1)])},b[12]=G,b[13]=z,b[14]=d):d=b[14];let W=d;b[15]!==G||b[16]!==z?(p=e=>{G((t,n)=>[...t.slice(0,z),{...n,params:e},...t.slice(z+1)])},b[15]=G,b[16]=z,b[17]=p):p=b[17];let B=p;b[18]!==O||b[19]!==$||b[20]!==t?(h=e=>{let{id:n,parentRefPath:r,type:i,template:a,version:l}=e;$({panes:[...t.slice(0,O+1),[{id:n,params:{template:a.id,parentRefPath:(0,T.BB)(r),type:i,version:l},payload:a.params}]]})},b[18]=O,b[19]=$,b[20]=t,b[21]=h):h=b[21];let F=h,H=!!t[O]&&t[O].length>1,Z=t[O]?t[O].length:0,q=P?o.BackLink:void 0;return b[22]!==G?(m=e=>{let t=void 0===e?{}:e;G(()=>[{id:t.id||"",payload:t.payload,params:t.params||{}}])},x=()=>{G(M)},b[22]=G,b[23]=m,b[24]=x):(m=b[23],x=b[24]),b[25]!==A||b[26]!==O||b[27]!==n||b[28]!==$||b[29]!==t?(y=e=>{(void 0===e||e)&&n&&A(n.element),$({panes:t.slice(0,O)})},b[25]=A,b[26]=O,b[27]=n,b[28]=$,b[29]=t,b[30]=y):y=b[30],b[31]!==G||b[32]!==z?(g=e=>{G((t,n)=>{let r={...n,payload:e?.payload||n.payload,params:e?.params||n.params};return[...t.slice(0,z),r,...t.slice(z)]})},b[31]=G,b[32]=z,b[33]=g):g=b[33],b[34]!==S||b[35]!==B?(v=e=>{let t=c(S,"view");return B(e?{...t,view:e}:t)},b[34]=S,b[35]=B,b[36]=v):v=b[36],b[37]!==K||b[38]!==P||b[39]!==O||b[40]!==F||b[41]!==E||b[42]!==S||b[43]!==k||b[44]!==t||b[45]!==B||b[46]!==W||b[47]!==z||b[48]!==Z||b[49]!==q||b[50]!==m||b[51]!==x||b[52]!==y||b[53]!==g||b[54]!==v||b[55]!==H?(w={index:P,groupIndex:O,siblingIndex:z,payload:k,params:S,hasGroupSiblings:H,groupLength:Z,routerPanesState:t,ChildLink:o.ChildLink,BackLink:q,ReferenceChildLink:o.ReferenceChildLink,handleEditReference:F,ParameterizedLink:o.ParameterizedLink,replaceCurrent:m,closeCurrent:x,closeCurrentAndAfter:y,duplicateCurrent:g,setView:v,setParams:B,setPayload:W,createPathWithParams:K,navigateIntent:E},b[37]=K,b[38]=P,b[39]=O,b[40]=F,b[41]=E,b[42]=S,b[43]=k,b[44]=t,b[45]=B,b[46]=W,b[47]=z,b[48]=Z,b[49]=q,b[50]=m,b[51]=x,b[52]=y,b[53]=g,b[54]=v,b[55]=H,b[56]=w):w=b[56],f=w,b[57]!==I||b[58]!==f?(j=(0,r.jsx)(R.ud.Provider,{value:f,children:I}),b[57]=I,b[58]=f,b[59]=j):j=b[59],j}function M(e,t){return e.length>1?e.filter(e=>e!==t):e}class G extends Error{constructor({message:e,context:t,helpId:n,cause:r}){super(e),this.name="PaneResolutionError",this.context=t,this.helpId=n,this.cause=r}}let K=new WeakMap;function W(e){let t=K.get(e);if(t)return t;let n=(0,v.x0)();return K.set(e,n),n}let B=e=>!!e&&"function"==typeof e?.then,F=e=>!!(0,l.Uy$)(e)&&"function"==typeof e.serialize,H=e=>(t,n,r)=>{try{return e(t,n,r)}catch(e){throw e instanceof G?e:new G({message:"string"==typeof e?.message?e.message:"",context:n,cause:e})}},Z=e=>(...t)=>e(...t).pipe((0,w._)(1),(0,j.x)());function q(e){let t=H(Z(e((e,n,r)=>{if(!e)throw new G({message:"Pane returned no child",context:n,helpId:"structure-item-returned-no-child"});return B(e)||(0,p.b)(e)?(0,h.D)(e).pipe((0,b.w)(e=>t(e,n,r))):F(e)?t(e.serialize(n),n,r):"function"==typeof e?t(e(n.id,n),n,r):(0,f.of)(e)})));return t}let V=new WeakMap;function J(e,t){let n=V.get(e)||new Map;if(n){let e=n.get(t);if(e)return e}let r=e[t];if("function"!=typeof r)throw Error(`Expected property \`${t}\` to be a function but got ${typeof r} instead.`);let i=r.bind(e);return n.set(t,i),V.set(e,n),i}async function X(e){let t=new Map,n=q(e=>(n,r,i)=>{let a=n&&`${W(n)}-${r.path.join("__")}`,l=a&&t.get(a);if(l)return l;let s=e(n,r,i);return a&&t.set(a,s),s}
1),r=[[{id:`__edit__${e.params.id}`,params:{...c(e.params,["id"]),type:e.params.type},payload:e.payload}]];async function i({currentId:e,flatIndex:t,intent:r,params:a,parent:l,path:s,payload:o,unresolvedPane:d,levelIndex:u,structureContext:c}){if(!d)return[];let{id:p,type:h,...f}=a,x=await (0,m.z)(n(d,{id:e,splitIndex:0,parent:l,path:s,index:t,params:{},payload:void 0,structureContext:c},t));return"document"===x.type&&x.id===p?[{panes:[...s.slice(0,s.length-1).map(e=>[{id:e}]),[{id:p,params:f,payload:o}]],depthIndex:s.length,levelIndex:u}]:x.canHandleIntent?.(r,a,{pane:x,index:t})||"documentList"===x.type&&x.schemaTypeName===h&&"_type == $type"===x.options.filter?[{panes:[...s.map(e=>[{id:e}]),[{id:a.id,params:f,payload:o}]],depthIndex:s.length,levelIndex:u}]:"list"===x.type&&x.child&&x.items?(await Promise.all(x.items.map((e,n)=>"divider"===e.type?Promise.resolve([]):i({currentId:e._id||e.id,flatIndex:t+1,intent:r,params:a,parent:x,path:[...s,e.id],payload:o,unresolvedPane:"function"==typeof x.child?J(x,"child"):x.child,levelIndex:n,structureContext:c})))).flat():[]}let a=(await i({currentId:"root",flatIndex:0,levelIndex:0,intent:e.intent,params:e.params,parent:null,path:[],payload:e.payload,unresolvedPane:e.rootPaneNode,structureContext:e.structureContext})).sort((e,t)=>e.depthIndex===t.depthIndex?e.levelIndex-t.levelIndex:e.depthIndex-t.depthIndex)[0];return a?a.panes:r}let Y=(e,t)=>{let n=e.replace(/^__edit__/,""),{params:r,payload:i,structureContext:{resolveDocumentNode:a}}=t,{type:l,template:s}=r;if(!l)throw Error(`Document type for document with ID ${n} was not provided in the router params.`);let o=a({schemaType:l,documentId:n}).id("editor");return s&&(o=o.initialValueTemplate(s,i)),o.serialize()},Q=e=>{let t={type:e.type,id:e.routerPaneSibling.id,params:e.routerPaneSibling.params||{},payload:e.routerPaneSibling.payload||null,flatIndex:e.flatIndex,groupIndex:e.groupIndex,siblingIndex:e.siblingIndex,path:e.path,paneNode:"resolvedMeta"===e.type?W(e.paneNode):null};return`metaHash(${JSON.stringify(t)})`};function ee(e){return e?.panes||[]}function et(){return new g.t(1)}function en(e){let t=e.reduce(ei,[]),n=t.length,r=e.map(r=>{let{groupIndex:i,flatIndex:a,siblingIndex:l,routerPaneSibling:s,path:d}=r,u=s.id,c=t[i+1];return{active:i===n-2,childItemId:c?.[0].id??null,index:a,itemId:s.id,groupIndex:i,key:`${"loading"===r.type?"unknown":r.paneNode.id}-${u}-${l}`,pane:"loading"===r.type?o.LOADING_PANE:r.paneNode,params:s.params||{},path:d.join(";"),payload:s.payload,selected:a===e.length-1,siblingIndex:l}});return{paneDataItems:r,routerPanes:t,resolvedPanes:r.map(er)}}function er(e){return e.pane}function ei(e,t){let n=e[t.groupIndex]||[];return n[t.siblingIndex]=t.routerPaneSibling,e[t.groupIndex]=n,e}async function ea(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:(0,$.Z)(),type:n};if(t&&!n){let n=await (0,m.z)(e.resolveTypeForDocument(t));return{id:t,type:n}}throw new G({message:"Neither document `id` or `type` was provided when trying to resolve intent."})}let el={},es=(0,a.memo)(function(){let e,t;let n=(0,i.c)(7),{navigate:r}=(0,u.tv)(),s=(0,u.z)(eo),{rootPaneNode:d,structureContext:c}=(0,o.useStructureTool)(),p=(0,l.H__)(),[h,f]=(0,a.useState)(null);if(h)throw h;return n[0]!==p||n[1]!==s||n[2]!==r||n[3]!==d||n[4]!==c?(e=()=>{if(s){let{intent:e,params:t,payload:n}=s,i=!1;return(async function(){let{id:a,type:l}=await ea(p,"string"==typeof t.id?t.id:void 0,"string"==typeof t.type?t.type:void 0);if(i)return;let s=await X({intent:e,params:{...t,id:a,type:l},payload:n,rootPaneNode:d,structureContext:c});i||r({panes:s},{replace:!0})})().catch(f),()=>{i=!0}}},t=[p,s,r,d,c],n[0]=p,n[1]=s,n[2]=r,n[3]=d,n[4]=c,n[5]=e,n[6]=t):(e=n[5],t=n[6]),(0,a.useEffect)(e,t),null});function eo(e){let t="string"==typeof e.intent?e.intent:void 0;return t?{intent:t,params:(0,l.Uy$)(e.params)?e.params:el,payload:e.payload}:void 0}let ed=N.zo.span`
2  &:not(:last-child)::after {
3    content: ' ➝ ';
4    opacity: 0.5;
5  }
6`;function eu(e){let t,n,a,o,u,c,p,h,f,m,x,y,g,v;let w=(0,i.c)(37),{error:j}=e;if(!(j instanceof G))throw j;let{cause:b}=j,{t:I}=(0,l.$G7)(d.UA),P=b?.stack||j.stack,_=P&&!(b instanceof d.zc)&&!j.message.includes("Module build failed:");w[0]!==b?(t=b instanceof d.zc?b.path:[],w[0]=b,w[1]=t):t=w[1];let S=t,k=b instanceof d.zc&&b.helpId||j.helpId;return w[2]!==I?(n=I("structure-error.header.text"),w[2]=I,w[3]=n):n=w[3],w[4]!==n?(a=(0,r.jsx)(L.X6,{as:"h2",children:n}),w[4]=n,w[5]=a):a=w[5],w[6]!==S||w[7]!==I?(o=S.length>0&&(0,r.jsxs)(L.Kq,{space:2,children:[(0,r.jsx)(L.xv,{size:1,weight:"medium",children:I("structure-error.structure-path.label")}),(0,r.jsx)(L.EK,{children:S.slice(1).map(ec)})]}),w[6]=S,w[7]=I,w[8]=o):o=w[8],w[9]!==I?(u=I("structure-error.error.label"),w[9]=I,w[10]=u):u=w[10],w[11]!==u?(c=(0,r.jsx)(L.xv,{size:1,weight:"medium",children:u}),w[11]=u,w[12]=c):c=w[12],w[13]!==j.message||w[14]!==_||w[15]!==P?(p=_?P.replace(/\(\.\.\.\)\./g,`(...)
7  .`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(RegExp(` \\(https?:\\/\\/${window.location.host}`,"g")," ("):j.message,w[13]=j.message,w[14]=_,w[15]=P,w[16]=p):p=w[16],w[17]!==p?(h=(0,r.jsx)(L.EK,{children:p}),w[17]=p,w[18]=h):h=w[18],w[19]!==c||w[20]!==h?(f=(0,r.jsxs)(L.Kq,{marginTop:4,space:2,children:[c,h]}),w[19]=c,w[20]=h,w[21]=f):f=w[21],w[22]!==k||w[23]!==I?(m=k&&(0,r.jsx)(L.xu,{marginTop:4,children:(0,r.jsx)(L.xv,{children:(0,r.jsx)("a",{href:(0,s.h0)(k),rel:"noopener noreferrer",target:"_blank",children:I("structure-error.docs-link.text")})})}),w[22]=k,w[23]=I,w[24]=m):m=w[24],w[25]!==I?(x=I("structure-error.reload-button.text"),w[25]=I,w[26]=x):x=w[26],w[27]!==x?(y=(0,r.jsx)(L.xu,{marginTop:4,children:(0,r.jsx)(s.zx,{text:
7x,icon:E.bnu,tone:"primary",onClick:ep})}),w[27]=x,w[28]=y):y=w[28],w[29]!==m||w[30]!==y||w[31]!==o||w[32]!==f?(g=(0,r.jsxs)(L.Zb,{marginTop:4,padding:4,radius:2,overflow:"auto",shadow:1,tone:"inherit",children:[o,f,m,y]}),w[29]=m,w[30]=y,w[31]=o,w[32]=f,w[33]=g):g=w[33],w[34]!==g||w[35]!==a?(v=(0,r.jsx)(L.Zb,{height:"fill",overflow:"auto",padding:4,sizing:"border",tone:"critical",children:(0,r.jsxs)(L.W2,{children:[a,g]})}),w[34]=g,w[35]=a,w[36]=v):v=w[36],v}function ec(e,t){return(0,r.jsx)(ed,{children:e},`${e}-${t}`)}function ep(){window.location.reload()}function eh(e){let t,n,a,s,u;let c=(0,i.c)(14),{isSelected:p,pane:h,paneKey:f}=e;c[0]!==h?(t=(0,l.Uy$)(h)&&h.type||null,c[0]=h,c[1]=t):t=c[1];let m=t,{t:x}=(0,l.$G7)(d.UA);return c[2]!==x?(n=x("panes.unknown-pane-type.title"),c[2]=x,c[3]=n):n=c[3],c[4]!==n?(a=(0,r.jsx)(o.PaneHeader,{title:n}),c[4]=n,c[5]=a):a=c[5],c[6]!==x||c[7]!==m?(s=(0,r.jsx)(o.PaneContent,{children:(0,r.jsx)(L.xu,{padding:4,children:"string"==typeof m?(0,r.jsx)(L.xv,{as:"p",muted:!0,children:(0,r.jsx)(l.vNl,{t:x,i18nKey:"panes.unknown-pane-type.unknown-type.text",values:{type:m}})}):(0,r.jsx)(L.xv,{as:"p",muted:!0,children:(0,r.jsx)(l.vNl,{t:x,i18nKey:"panes.unknown-pane-type.missing-type.text"})})})}),c[6]=x,c[7]=m,c[8]=s):s=c[8],c[9]!==p||c[10]!==f||c[11]!==a||c[12]!==s?(u=(0,r.jsxs)(o.Pane,{id:f,selected:p,children:[a,s]}),c[9]=p,c[10]=f,c[11]=a,c[12]=s,c[13]=u):u=c[13],u}let ef={component:(0,a.lazy)(()=>n.e(496).then(n.bind(n,40496))),document:(0,a.lazy)(()=>Promise.resolve().then(n.bind(n,7347)).then(function(e){return e.pane})),documentList:(0,a.lazy)(()=>Promise.resolve().then(n.bind(n,7347)).then(function(e){return e.pane$1})),list:(0,a.lazy)(()=>n.e(6790).then(n.bind(n,36790)))},em=(0,a.memo)(function(e){let t,n,l,s;let d=(0,i.c)(23),{active:u,childItemId:c,groupIndex:p,index:h,itemId:f,pane:m,paneKey:x,params:y,payload:g,path:v,selected:w,siblingIndex:j}=e,b=ef[m.type]||eh;d[0]!==x||d[1]!==v||d[2]!==w?(t=(0,r.jsx)(o.LoadingPane,{paneKey:x,path:v,selected:w}),d[0]=x,d[1]=v,d[2]=w,d[3]=t):t=d[3];let I=c||"";return d[4]!==b||d[5]!==u||d[6]!==h||d[7]!==f||d[8]!==m||d[9]!==x||d[10]!==w||d[11]!==I?(n=(0,r.jsx)(b,{childItemId:I,index:h,itemId:f,isActive:u,isSelected:w,paneKey:x,pane:m}),d[4]=b,d[5]=u,d[6]=h,d[7]=f,d[8]=m,d[9]=x,d[10]=w,d[11]=I,d[12]=n):n=d[12],d[13]!==t||d[14]!==n?(l=(0,r.jsx)(a.Suspense,{fallback:t,children:n}),d[13]=t,d[14]=n,d[15]=l):l=d[15],d[16]!==p||d[17]!==h||d[18]!==y||d[19]!==g||d[20]!==j||d[21]!==l?(s=(0,r.jsx)(D,{flatIndex:h,index:p,params:y,payload:g,siblingIndex:j,children:l}),d[16]=p,d[17]=h,d[18]=y,d[19]=g,d[20]=j,d[21]=l,d[22]=s):s=d[22],s},({params:e={},payload:t=null,...n},{params:r={},payload:i=null,...a})=>{if(!O(e,r)||!O(t,i))return!1;for(let e of new Set([...Object.keys(n),...Object.keys(a)]))if(n[e]!==a[e])return!1;return!0});function ex(){let e,t,n,a,s,o,u,c;let p=(0,i.c)(17),{t:h}=(0,l.$G7)(d.UA);return p[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(L.xu,{children:(0,r.jsx)(L.xv,{size:1,children:(0,r.jsx)(E.foC,{})})}),p[0]=e):e=p[0],p[1]!==h?(t=h("no-document-types-screen.title"),p[1]=h,p[2]=t):t=p[2],p[3]!==t?(n=(0,r.jsx)(L.xv,{as:"h1",size:1,weight:"medium",children:t}),p[3]=t,p[4]=n):n=p[4],p[5]!==h?(a=h("no-document-types-screen.subtitle"),p[5]=h,p[6]=a):a=p[6],p[7]!==a?(s=(0,r.jsx)(L.xv,{as:"p",muted:!0,size:1,children:a}),p[7]=a,p[8]=s):s=p[8],p[9]!==h?(o=h("no-document-types-screen.link-text"),p[9]=h,p[10]=o):o=p[10],p[11]!==o?(u=(0,r.jsx)(L.xv,{as:"p",muted:!0,size:1,children:(0,r.jsx)("a",{href:"https://www.sanity.io/docs/create-a-schema-and-configure-sanity-studio",target:"_blank",rel:"noreferrer",children:o})}),p[11]=o,p[12]=u):u=p[12],p[13]!==n||p[14]!==s||p[15]!==u?(c=(0,r.jsx)(L.Zb,{height:"fill",children:(0,r.jsx)(L.kC,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,r.jsx)(L.W2,{width:0,children:(0,r.jsx)(L.Zb,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,r.jsxs)(L.kC,{children:[e,(0,r.jsxs)(L.Kq,{flex:1,marginLeft:3,space:3,children:[n,s,u]})]})})})})}),p[13]=n,p[14]=s,p[15]=u,p[16]=c):c=p[16],c}let ey=e=>{let t,n;
7let r=(0,i.c)(7),{documentId:s,documentType:o}=e,{selectedReleaseId:u}=(0,l.Wc0)(),c=(0,l.iav)(s,o,"default",u),p=(0,l.I_y)(),{t:h}=(0,l.$G7)(d.UA),f=!c?.published&&!c?.draft,m=c?.version||c?.draft||c?.published,x=p.get(o),{value:y,isLoading:g}=(0,l._2T)({enabled:!0,schemaType:x,value:m}),v=f?h("browser-document-title.new-document",{schemaType:x?.title||x?.name}):y?.title||h("browser-document-title.untitled-document"),w=c.ready&&!g,j=ew(v);return r[0]!==j||r[1]!==w?(t=()=>{w&&(document.title=j)},r[0]=j,r[1]=w,r[2]=t):t=r[2],r[3]!==v||r[4]!==j||r[5]!==w?(n=[v,w,j],r[3]=v,r[4]=j,r[5]=w,r[6]=n):n=r[6],(0,a.useEffect)(t,n),null},eg=e=>{let t,n;let r=(0,i.c)(5),{title:l}=e,s=ew(l);return r[0]!==s?(t=()=>{document.title=s},r[0]=s,r[1]=t):t=r[1],r[2]!==s||r[3]!==l?(n=[s,l],r[2]=s,r[3]=l,r[4]=n):n=r[4],(0,a.useEffect)(t,n),null},ev=e=>{let t;let n=(0,i.c)(8),{resolvedPanes:a}=e;if(!a?.length)return null;let l=a[a.length-1];if(l===o.LOADING_PANE){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(eg,{}),n[0]=e):e=n[0],e}if(l!==o.LOADING_PANE&&"document"===l.type){let e;if(l?.title){let e;return n[1]!==l.title?(e=(0,r.jsx)(eg,{title:l.title}),n[1]=l.title,n[2]=e):e=n[2],e}return n[3]!==l.options.id||n[4]!==l.options.type?(e=(0,r.jsx)(ey,{documentId:l.options.id,documentType:l.options.type}),n[3]=l.options.id,n[4]=l.options.type,n[5]=e):e=n[5],e}let s=l?.title;return n[6]!==s?(t=(0,r.jsx)(eg,{title:s}),n[6]=s,n[7]=t):t=n[7],t};function ew(e){let t;let n=(0,i.c)(3),r=(0,o.useStructureTool)().structureContext.title;return n[0]!==e||n[1]!==r?(t=[e,r].filter(ej),n[0]=e,n[1]=r,n[2]=t):t=n[2],t.join(" | ")}function ej(e){return e}let eb=(0,N.zo)(o.PaneLayout)`
8  min-height: 100%;
9  min-width: 320px;
10`,eI=(0,A.P6)("mod+s"),eP=(0,a.memo)(function(e){let t,n,d,c,p,h,m,g,v,w,j,$;let E=(0,i.c)(31),{onPaneChange:N}=e,{push:A}=(0,C.pm)(),T=(0,l.I_y)(),{layoutCollapsed:R,setLayoutCollapsed:U}=(0,o.useStructureTool)(),{paneDataItems:D,resolvedPanes:M}=function(){let e,t,n;let r=(0,i.c)(6),[l,d]=(0,a.useState)();if(l)throw l;let{structureContext:c,rootPaneNode:p}=(0,o.useStructureTool)();r[0]===Symbol.for("react.memo_cache_sentinel")?(e={paneDataItems:[],resolvedPanes:[],routerPanes:[]},r[0]=e):e=r[0];let[h,m]=(0,a.useState)(e),g=function(){let e,t,n,r;let l=(0,i.c)(6),[s]=(0,a.useState)(et);l[0]!==s?(t=s.asObservable().pipe((0,I.U)(ee)),l[0]=s,l[1]=t):t=l[1],e=t;let{state:o}=(0,u.tv)();return l[2]!==o||l[3]!==s?(n=()=>{s.next(o)},r=[o,s],l[2]=o,l[3]=s,l[4]=n,l[5]=r):(n=l[4],r=l[5]),(0,a.useEffect)(n,r),e}();return r[1]!==p||r[2]!==g||r[3]!==c?(t=()=>{let e=(function({routerPanesStream:e,rootPaneNode:t,initialCacheState:n={cacheKeysByFlatIndex:[],flattenedRouterPanes:[],resolvedPaneCache:new Map,resolvePane:()=>y.C},structureContext:r}){return e.pipe((0,I.U)(e=>[[{id:"root"}],...e]),(0,I.U)(e=>e.flatMap((e,t)=>e.map((e,n)=>({routerPaneSibling:e,groupIndex:t,siblingIndex:n}))).map((e,t)=>({...e,flatIndex:t}))),(0,P.O)([]),(0,_.e)(function(e,t){var n,r=!1;e.subscribe((0,S.x)(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),(0,I.U)(([e,t])=>{for(let n=0;n<t.length;n++)if(!O(e[n],t[n]))return{flattenedRouterPanes:t,diffIndex:n};return{flattenedRouterPanes:t,diffIndex:t.length}}),(0,k.R)((e,t)=>{let{cacheKeysByFlatIndex:n,resolvedPaneCache:r}=e,{flattenedRouterPanes:i,diffIndex:a}=t,l=n.slice(0,a+1),s=n.slice(a+1),o=new Set(l.flatMap(e=>Array.from(e)));for(let e of s.flatMap(e=>Array.from(e)).filter(e=>!o.has(e)))r.delete(e);return{flattenedRouterPanes:i,cacheKeysByFlatIndex:n,resolvedPaneCache:r,resolvePane:q(e=>(t,i,a)=>{let l=t&&`${W(t)}-contextHash(${JSON.stringify({id:i.id,parentId:parent&&W(parent),path:i.path,index:i.index,splitIndex:i.splitIndex,serializeOptionsIndex:i.serializeOptions?.index,serializeOptionsPath:i.serializeOptions?.path})})`,s=l&&r.get(l);if(s)return s;let o=e(t,i,a);if(!l)return o;let d=n[a]||new Set;return d.add(l),n[a]=d,r.set(l,o),o})}},n),(0,b.w)(({flattenedRouterPanes:e,resolvePane:n})=>(function e({unresolvedPane:t,flattenedRouterPanes:n,parent:r,path:i,resolvePane:a,structureContext:l}){let[o,...d]=n,u=d[0],c={id:o.routerPaneSibling.id,splitIndex:o.siblingIndex,parent:r,path:[...i,o.routerPaneSibling.id],index:o.flatIndex,params:o.routerPaneSibling.params||{},payload:o.routerPaneSibling.payload,structureContext:l};try{return a(t,c,o.flatIndex).pipe((0,b.w)(n=>{let s;let p={type:"resolvedMeta",...o,paneNode:n,path:c.path},h=d.map((e,t)=>({type:"loading",path:[...c.path,...d.slice(t).map((t,n)=>`[${e.flatIndex+n}]`)],paneNode:null,...e}));return d.length?(s=u?.routerPaneSibling.id.startsWith("__edit__")?e({unresolvedPane:Y,flattenedRouterPanes:d,parent:r,path:c.path,resolvePane:a,structureContext:l}):o.groupIndex===u?.groupIndex?e({unresolvedPane:t,flattenedRouterPanes:d,parent:r,path:i,resolvePane:a,structureContext:l}):e({unresolvedPane:"function"==typeof n.child?J(n,"child"):n.child,flattenedRouterPanes:d,parent:n,path:c.path,resolvePane:a,structureContext:l}),(0,x.z)((0,f.of)([p,...h]),s.pipe((0,I.U)(e=>[p,...e])))):(0,f.of)([p])}))}catch(e){if(e instanceof G&&(e.context&&console.warn(`Pane resolution error at index ${e.context.
10index}${e.context.splitIndex>0?` for split pane index ${e.context.splitIndex}`:""}: ${e.message}${e.helpId?` - see ${(0,s.h0)(e.helpId)}`:""}`,e),"structure-item-returned-no-child"===e.helpId))return(0,f.of)([]);throw e}})({unresolvedPane:t,flattenedRouterPanes:e,parent:null,path:[],resolvePane:n,structureContext:r}))).pipe((0,k.R)((e,t)=>t.map((t,n)=>{let r=e[n];return r&&"loading"===t.type&&r.routerPaneSibling.id===t.routerPaneSibling.id?r:t}),[]),(0,z.x)((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<t.length;n++){let r=e[n],i=t[n];if(Q(r)!==Q(i))return!1}return!0}))})({rootPaneNode:p,routerPanesStream:g,structureContext:c}).pipe((0,I.U)(en)).subscribe({next:e=>m(e),error:e=>d(e)});return()=>e.unsubscribe()},n=[p,g,c],r[1]=p,r[2]=g,r[3]=c,r[4]=t,r[5]=n):(t=r[4],n=r[5]),(0,a.useEffect)(t,n),h}(),K=(0,u.z)(e_),{sanity:B}=(0,L.Fg)(),{media:F}=B,[H,Z]=(0,a.useState)(null);E[0]!==U?(t=()=>U(!0),E[0]=U,E[1]=t):t=E[1];let V=t;E[2]!==U?(n=()=>U(!1),E[2]=U,E[3]=n):n=E[3];let X=n;if(E[4]!==N||E[5]!==M?(d=()=>{M.length&&N(M)},c=[N,M],E[4]=N,E[5]=M,E[6]=d,E[7]=c):(d=E[6],c=E[7]),(0,a.useEffect)(d,c),E[8]!==A?(p=()=>{let e=e=>{eI(e)&&(e.preventDefault(),A({closable:!0,id:"auto-save-message",status:"info",title:"Your work is automatically saved!",duration:4e3}))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},h=[A],E[8]=A,E[9]=p,E[10]=h):(p=E[9],h=E[10]),(0,a.useEffect)(p,h),!T._original?.types.some(l.mPO)){let e;return E[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(ex,{}),E[11]=e):e=E[11],e}let er=H||null,ei=R?void 0:"fill",ea=F[1];return E[12]!==D?(m=D.map(eS),E[12]=D,E[13]=m):m=E[13],E[14]!==K||E[15]!==D.length?(g=D.length<=1&&K&&(0,r.jsx)(o.LoadingPane,{paneKey:"intent-resolver"}),E[14]=K,E[15]=D.length,E[16]=g):g=E[16],E[17]!==V||E[18]!==X||E[19]!==F[1]||E[20]!==m||E[21]!==g||E[22]!==ei?(v=(0,r.jsxs)(eb,{flex:1,height:ei,minWidth:ea,onCollapse:V,onExpand:X,children:[m,g]}),E[17]=V,E[18]=X,E[19]=F[1],E[20]=m,E[21]=g,E[22]=ei,E[23]=v):v=E[23],E[24]!==M?(w=(0,r.jsx)(ev,{resolvedPanes:M}),E[24]=M,E[25]=w):w=E[25],E[26]===Symbol.for("react.memo_cache_sentinel")?(j=(0,r.jsx)("div",{"data-portal":"",ref:Z}),E[26]=j):j=E[26],E[27]!==v||E[28]!==w||E[29]!==er?($=(0,r.jsxs)(L.Xp,{element:er,children:[v,w,j]}),E[27]=v,E[28]=w,E[29]=er,E[30]=$):$=E[30],$});function e_(e){return"string"==typeof e.intent}function eS(e){let{active:t,childItemId:n,groupIndex:i,itemId:l,key:s,pane:d,index:u,params:c,path:p,payload:h,siblingIndex:f,selected:m}=e;return(0,r.jsx)(a.Fragment,{children:d===o.LOADING_PANE?(0,r.jsx)(o.LoadingPane,{paneKey:s,path:p,selected:m}):(0,r.jsx)(em,{active:t,groupIndex:i,index:u,pane:d,childItemId:n,itemId:l,paneKey:s,params:c,payload:h,path:p,selected:m,siblingIndex:f})},`${d===o.LOADING_PANE?"loading":d.type}-${u}`)}function ek(e){let t,n,u,c,p,h,f;let m=(0,i.c)(14),{tool:x}=e,{options:y}=x,{unstable_sources:g}=(0,l.cFj)(),[v]=g;m[0]!==y?(t=y||{},m[0]=y,m[1]=t):t=m[1];let{source:w,defaultDocumentNode:j,structure:b}=t;m[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],m[2]=n):n=m[2],(0,a.useEffect)(ez,n),m[3]===Symbol.for("react.memo_cache_sentinel")?(u={error:null},m[3]=u):u=m[3];let[I,P]=(0,a.useState)(u),{error:_}=I;if(_){let e;return m[4]!==_?(e=(0,r.jsx)(eu,{error:_}),m[4]=_,m[5]=e):e=m[5],e}let S=w||v.name;return m[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)(eP,{onPaneChange:o.setActivePanes}),p=(0,r.jsx)(es,{}),m[6]=c,m[7]=p):(c=m[6],p=m[7]),m[8]!==j||m[9]!==b?(h=(0,r.jsxs)(d.b9,{defaultDocumentNode:j,structure:b,children:[c,p]}),m[8]=j,m[9]=b,m[10]=h):h=m[10],m[11]!==S||m[12]!==h?(f=(0,r.jsx)(s.SV,{onCatch:P,children:(0,r.jsx)(l.cWh,{name:S,children:h})}),m[11]=S,m[12]=h,m[13]=f):f=m[13],f}function ez(){return(0,o.setActivePanes)([]),e$}function e$(){return(0,o.setActivePanes)([])}}}]);

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.