PageSourceSearch

https://www.ugenie.ai/_next/static/chunks/7094.373c4177f79bcddd.js

js ugenie.ai collected 2026-10-05 13:11:50 UTC 24,568 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7094],{4713:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ez});var r=n(15933),i=n(95155),l=n(43377),a=n(12115),o=n(54557),s=n(7250),d=n(24861),u=n(36356),c=n(71286),p=n(70954),f=n(7161),h=n(55067),m=n(43890),x=n(17336),y=n(10883),g=n(33015),v=n(57348),j=n(71311),w=n(78735),I=n(44537),P=n(54457),b=n(50793),_=n(18343),k=n(1125),S=n(98175),E=n(94372),L=n(93917),z=n(82183),A=n(90330),N=n(83060),T=n(24323),C=n(59694),O=n(25386),D=n(60245),B=n(29370),M=n(46592);function R(){let e=(0,r._)(["\n  &:not(:last-child)::after {\n    content: ' ➝ ';\n    opacity: 0.5;\n  }\n"]);return R=function(){return e},e}function Y(){let e=(0,r._)(["\n  min-height: 100%;\n  min-width: 320px;\n"]);return Y=function(){return e},e}let Z=[];function H(e){let t,n,r,a,o,s,u,f,h,m,x,y,g,v,j,w;let I=(0,l.c)(60),{children:P,flatIndex:b,index:_,params:k,payload:S,siblingIndex:E}=e,{navigate:L,navigateIntent:z,resolvePathFromState:A}=(0,c.rd)(),N=(0,c.ks)(),{panes:T,expand:C}=(0,d.usePaneLayout)();t=(null==N?void 0:N.panes)||Z,n=null==T?void 0:T[T.length-2];let O=_-1;I[0]!==O||I[1]!==t||I[2]!==N||I[3]!==E?(r=e=>{let n=t[O]||[],r=n[E],i=e(n,r),l=[...t.slice(0,O),i,...t.slice(O+1)];return{...N||{},panes:l}},I[0]=O,I[1]=t,I[2]=N,I[3]=E,I[4]=r):r=I[4];let D=r;I[5]!==D||I[6]!==L?(a=e=>{let t=D(e);return setTimeout(()=>L(t),0),t},I[5]=D,I[6]=L,I[7]=a):a=I[7];let R=a;I[8]!==D||I[9]!==A||I[10]!==E?(o=e=>A(D((t,n)=>[...t.slice(0,E),{...n,params:e},...t.slice(E+1)])),I[8]=D,I[9]=A,I[10]=E,I[11]=o):o=I[11];let Y=o;I[12]!==R||I[13]!==E?(s=e=>{R((t,n)=>[...t.slice(0,E),{...n,payload:e},...t.slice(E+1)])},I[12]=R,I[13]=E,I[14]=s):s=I[14];let H=s;I[15]!==R||I[16]!==E?(u=e=>{R((t,n)=>[...t.slice(0,E),{...n,params:e},...t.slice(E+1)])},I[15]=R,I[16]=E,I[17]=u):u=I[17];let J=u;I[18]!==O||I[19]!==L||I[20]!==t?(f=e=>{let{id:n,parentRefPath:r,type:i,template:l,version:a}=e;L({panes:[...t.slice(0,O+1),[{id:n,params:{template:l.id,parentRefPath:(0,B.dI)(r),type:i,version:a},payload:l.params}]]})},I[18]=O,I[19]=L,I[20]=t,I[21]=f):f=I[21];let F=f,K=!!t[O]&&t[O].length>1,V=t[O]?t[O].length:0,W=b?d.BackLink:void 0;return I[22]!==R?(m=e=>{let t=void 0===e?{}:e;R(()=>[{id:t.id||"",payload:t.payload,params:t.params||{}}])},x=()=>{R(G)},I[22]=R,I[23]=m,I[24]=x):(m=I[23],x=I[24]),I[25]!==C||I[26]!==O||I[27]!==n||I[28]!==L||I[29]!==t?(y=e=>{(void 0===e||e)&&n&&C(n.element),L({panes:[...t.slice(0,O)]})},I[25]=C,I[26]=O,I[27]=n,I[28]=L,I[29]=t,I[30]=y):y=I[30],I[31]!==R||I[32]!==E?(g=e=>{R((t,n)=>{let r={...n,payload:(null==e?void 0:e.payload)||n.payload,params:(null==e?void 0:e.params)||n.params};return[...t.slice(0,E),r,...t.slice(E)]})},I[31]=R,I[32]=E,I[33]=g):g=I[33],I[34]!==k||I[35]!==J?(v=e=>{let t=p(k,"view");return J(e?{...t,view:e}:t)},I[34]=k,I[35]=J,I[36]=v):v=I[36],I[37]!==Y||I[38]!==b||I[39]!==O||I[40]!==F||I[41]!==z||I[42]!==k||I[43]!==S||I[44]!==t||I[45]!==J||I[46]!==H||I[47]!==E||I[48]!==V||I[49]!==W||I[50]!==m||I[51]!==x||I[52]!==y||I[53]!==g||I[54]!==v||I[55]!==K?(j={index:b,groupIndex:O,siblingIndex:E,payload:S,params:k,hasGroupSiblings:K,groupLength:V,routerPanesState:t,ChildLink:d.ChildLink,BackLink:W,ReferenceChildLink:d.ReferenceChildLink,handleEditReference:F,ParameterizedLink:d.ParameterizedLink,replaceCurrent:m,closeCurrent:x,closeCurrentAndAfter:y,duplicateCurrent:g,setView:v,setParams:J,setPayload:H,createPathWithParams:Y,navigateIntent:z},I[37]=Y,I[38]=b,I[39]=O,I[40]=F,I[41]=z,I[42]=k,I[43]=S,I[44]=t,I[45]=J,I[46]=H,I[47]=E,I[48]=V,I[49]=W,I[50]=m,I[51]=x,I[52]=y,I[53]=g,I[54]=v,I[55]=K,I[56]=j):j=I[56],h=j,I[57]!==P||I[58]!==h?(w=(0,i.jsx)(M.l4.Provider,{value:h,children:P}),I[57]=P,I[58]=h,I[59]=w):w=I[59],w}function G(e,t){return e.length>1?e.filter(e=>e!==t):e}class J 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 F=new WeakMap;function K(e){let t=F.get(e);if(t)return t;let n=(0,j.Ak)();return F.set(e,n),n}let V=e=>!!e&&"function"==typeof(null==e?void 0:e.then),W=e=>!!(0,o.u4i)(e)&&"function"==typeof e.serialize,$=e=>(t,n,r)=>{try{return e(t,n,r)}catch(e){throw e instanceof J?e:new J({message:"string"==typeof(null==e?void 0:e.message)?e.message:"",context:n,cause:e})}},q=e=>function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e(...n).pipe((0,w.H)(1),(0,I.B)())};function Q(e){let t=$(q(e((e,n,r)=>{if(!e)throw new J({message:"Pane returned no child",context:n,helpId:"structure-item-returned-no-child"});
1return V(e)||(0,f.A)(e)?(0,h.H)(e).pipe((0,P.n)(e=>t(e,n,r))):W(e)?t(e.serialize(n),n,r):"function"==typeof e?t(e(n.id,n),n,r):(0,m.of)(e)})));return t}let X=new WeakMap;function U(e,t){let n=X.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 `".concat(t,"` to be a function but got ").concat(typeof r," instead."));let i=r.bind(e);return n.set(t,i),X.set(e,n),i}async function ee(e){let t=new Map,n=Q(e=>(n,r,i)=>{let l=n&&"".concat(K(n),"-").concat(r.path.join("__")),a=l&&t.get(l);if(a)return a;let o=e(n,r,i);return l&&t.set(l,o),o}),r=[[{id:"__edit__".concat(e.params.id),params:{...p(e.params,["id"]),type:e.params.type},payload:e.payload}]];async function i(e){var t;let{currentId:r,flatIndex:l,intent:a,params:o,parent:s,path:d,payload:u,unresolvedPane:c,levelIndex:p,structureContext:f}=e;if(!c)return[];let{id:h,type:m,...y}=o,g=await (0,x._)(n(c,{id:r,splitIndex:0,parent:s,path:d,index:l,params:{},payload:void 0,structureContext:f},l));return"document"===g.type&&g.id===h?[{panes:[...d.slice(0,d.length-1).map(e=>[{id:e}]),[{id:h,params:y,payload:u}]],depthIndex:d.length,levelIndex:p}]:(null===(t=g.canHandleIntent)||void 0===t?void 0:t.call(g,a,o,{pane:g,index:l}))||"documentList"===g.type&&g.schemaTypeName===m&&"_type == $type"===g.options.filter?[{panes:[...d.map(e=>[{id:e}]),[{id:o.id,params:y,payload:u}]],depthIndex:d.length,levelIndex:p}]:"list"===g.type&&g.child&&g.items?(await Promise.all(g.items.map((e,t)=>"divider"===e.type?Promise.resolve([]):i({currentId:e._id||e.id,flatIndex:l+1,intent:a,params:o,parent:g,path:[...d,e.id],payload:u,unresolvedPane:"function"==typeof g.child?U(g,"child"):g.child,levelIndex:t,structureContext:f})))).flat():[]}let l=(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 l?l.panes:r}let et=(e,t)=>{let n=e.replace(/^__edit__/,""),{params:r,payload:i,structureContext:{resolveDocumentNode:l}}=t,{type:a,template:o}=r;if(!a)throw Error("Document type for document with ID ".concat(n," was not provided in the router params."));let s=l({schemaType:a,documentId:n}).id("editor");return o&&(s=s.initialValueTemplate(o,i)),s.serialize()},en=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?K(e.paneNode):null};return"metaHash(".concat(JSON.stringify(t),")")};function er(e){return(null==e?void 0:e.panes)||[]}function ei(){return new v.m(1)}function el(e){let t=e.reduce(eo,[]),n=t.length,r=e.map(r=>{var i;let{groupIndex:l,flatIndex:a,siblingIndex:o,routerPaneSibling:s,path:u}=r,c=s.id,p=t[l+1];return{active:l===n-2,childItemId:null!==(i=null==p?void 0:p[0].id)&&void 0!==i?i:null,index:a,itemId:s.id,groupIndex:l,key:"".concat("loading"===r.type?"unknown":r.paneNode.id,"-").concat(c,"-").concat(o),pane:"loading"===r.type?d.LOADING_PANE:r.paneNode,params:s.params||{},path:u.join(";"),payload:s.payload,selected:a===e.length-1,siblingIndex:o}});return{paneDataItems:r,routerPanes:t,resolvedPanes:r.map(ea)}}function ea(e){return e.pane}function eo(e,t){let n=e[t.groupIndex]||[];return n[t.siblingIndex]=t.routerPaneSibling,e[t.groupIndex]=n,e}
1async function es(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:(0,z.A)(),type:n};if(t&&!n){let n=await (0,x._)(e.resolveTypeForDocument(t));return{id:t,type:n}}throw new J({message:"Neither document `id` or `type` was provided when trying to resolve intent."})}let ed={},eu=(0,a.memo)(function(){let e,t;let n=(0,l.c)(7),{navigate:r}=(0,c.rd)(),i=(0,c.ks)(ec),{rootPaneNode:s,structureContext:u}=(0,d.useStructureTool)(),p=(0,o.q3J)(),[f,h]=(0,a.useState)(null);if(f)throw f;return n[0]!==p||n[1]!==i||n[2]!==r||n[3]!==s||n[4]!==u?(e=()=>{if(i){let{intent:e,params:t,payload:n}=i,l=!1;return(async function(){let{id:i,type:a}=await es(p,"string"==typeof t.id?t.id:void 0,"string"==typeof t.type?t.type:void 0);if(l)return;let o=await ee({intent:e,params:{...t,id:i,type:a},payload:n,rootPaneNode:s,structureContext:u});l||r({panes:o},{replace:!0})})().catch(h),()=>{l=!0}}},t=[p,i,r,s,u],n[0]=p,n[1]=i,n[2]=r,n[3]=s,n[4]=u,n[5]=e,n[6]=t):(e=n[5],t=n[6]),(0,a.useEffect)(e,t),null});function ec(e){let t="string"==typeof e.intent?e.intent:void 0;return t?{intent:t,params:(0,o.u4i)(e.params)?e.params:ed,payload:e.payload}:void 0}let ep=C.I4.span(R());function ef(e){let t,n,r,a,d,c,p,f,h,m,x,y,g,v;let j=(0,l.c)(37),{error:w}=e;if(!(w instanceof J))throw w;let{cause:I}=w,{t:P}=(0,o.Bdt)(u.Z7),b=(null==I?void 0:I.stack)||w.stack,_=b&&!(I instanceof u.LV)&&!w.message.includes("Module build failed:");j[0]!==I?(t=I instanceof u.LV?I.path:[],j[0]=I,j[1]=t):t=j[1];let k=t,S=I instanceof u.LV&&I.helpId||w.helpId;return j[2]!==P?(n=P("structure-error.header.text"),j[2]=P,j[3]=n):n=j[3],j[4]!==n?(r=(0,i.jsx)(N.DZ,{as:"h2",children:n}),j[4]=n,j[5]=r):r=j[5],j[6]!==k||j[7]!==P?(a=k.length>0&&(0,i.jsxs)(N.BJ,{space:2,children:[(0,i.jsx)(N.EY,{size:1,weight:"medium",children:P("structure-error.structure-path.label")}),(0,i.jsx)(N.Cy,{children:k.slice(1).map(eh)})]}),j[6]=k,j[7]=P,j[8]=a):a=j[8],j[9]!==P?(d=P("structure-error.error.label"),j[9]=P,j[10]=d):d=j[10],j[11]!==d?(c=(0,i.jsx)(N.EY,{size:1,weight:"medium",children:d}),j[11]=d,j[12]=c):c=j[12],j[13]!==w.message||j[14]!==_||j[15]!==b?(p=_?b.replace(/\(\.\.\.\)\./g,"(...)\n  .").replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(RegExp(" \\(https?:\\/\\/".concat(window.location.host),"g")," ("):w.message,j[13]=w.message,j[14]=_,j[15]=b,j[16]=p):p=j[16],j[17]!==p?(f=(0,i.jsx)(N.Cy,{children:p}),j[17]=p,j[18]=f):f=j[18],j[19]!==c||j[20]!==f?(h=(0,i.jsxs)(N.BJ,{marginTop:4,space:2,children:[c,f]}),j[19]=c,j[20]=f,j[21]=h):h=j[21],j[22]!==S||j[23]!==P?(m=S&&(0,i.jsx)(N.az,{marginTop:4,children:(0,i.jsx)(N.EY,{children:(0,i.jsx)("a",{href:(0,s.iB)(S),rel:"noopener noreferrer",target:"_blank",children:P("structure-error.docs-link.text")})})}),j[22]=S,j[23]=P,j[24]=m):m=j[24],j[25]!==P?(x=P("structure-error.reload-button.text"),j[25]=P,j[26]=x):x=j[26],j[27]!==x?(y=(0,i.jsx)(N.az,{marginTop:4,children:(0,i.jsx)(s.$n,{text:x,icon:A.Fjq,tone:"primary",onClick:em})}),j[27]=x,j[28]=y):y=j[28],j[29]!==m||j[30]!==y||j[31]!==a||j[32]!==h?(g=(0,i.jsxs)(N.Zp,{marginTop:4,padding:4,radius:2,overflow:"auto",shadow:1,tone:"inherit",children:[a,h,m,y]}),j[29]=m,j[30]=y,j[31]=a,j[32]=h,j[33]=g):g=j[33],j[34]!==g||j[35]!==r?(v=(0,i.jsx)(N.Zp,{height:"fill",overflow:"auto",padding:4,sizing:"border",tone:"critical",children:(0,i.jsxs)(N.mc,{children:[r,g]})}),j[34]=g,j[35]=r,j[36]=v):v=j[36],v}function eh(e,t){return(0,i.jsx)(ep,{children:e},"".concat(e,"-").concat(t))}function em(){window.location.reload()}function ex(e){let t,n,r,a,s;let c=(0,l.c)(14),{isSelected:p,pane:f,paneKey:h}=e;c[0]!==f?(t=(0,o.u4i)(f)&&f.type||null,c[0]=f,c[1]=t):t=c[1];let m=t,{t:x}=(0,o.Bdt)(u.Z7);return c[2]!==x?(n=x("panes.unknown-pane-type.title"),c[2]=x,c[3]=n):n=c[3],c[4]!==n?(r=(0,i.jsx)(d.PaneHeader,{title:n}),c[4]=n,c[5]=r):r=c[5],c[6]!==x||c[7]!==m?(a=(0,i.jsx)(d.PaneContent,{children:(0,i.jsx)(N.az,{padding:4,children:"string"==typeof m?(0,i.jsx)(N.EY,{as:"p",muted:!0,children:(0,i.jsx)(o.HTc,{t:x,i18nKey:"panes.unknown-pane-type.unknown-type.text",values:{type:m}})}):(0,i.jsx)(N.EY,{as:"p",muted:!0,children:(0,i.jsx)(o.HTc,{t:x,i18nKey:"panes.unknown-pane-type.missing-type.text"})})})}),c[6]=x,c[7]=m,c[8]=a):a=c[8],c[9]!==p||c[10]!==h||c[11]!==r||c[12]!==a?(s=(0,i.jsxs)(d.Pane,{id:h,selected:p,children:[r,a]}),c[9]=p,c[10]=h,c[11]=r,c[12]=a,c[13]=s):s=c[13],s}let ey={component:(0,a.lazy)(()=>n.e(5562).then(n.bind(n,45562))),document:(0,a.lazy)(()=>Promise.resolve().then(n.bind(n,24861)).then(function(e){return e.pane})),documentList:(0,a.lazy)(()=>Promise.resolve().then(n.bind(n,24861)).then(function(e){return e.pane$1})),list:(0,a.lazy)(()=>n.e(8778).then(n.bind(n,78778)))},eg=(0,a.memo)(function(e){let t,n,r,o;let s=(0,l.c)(23),{active:u,childItemId:c,groupIndex:p,index:f,itemId:h,pane:m,paneKey:x,params:y,payload:g,path:v,selected:j,siblingIndex:w}=e,I=ey[m.type]||ex;s[0]!==x||s[1]!==v||s[2]!==j?(t=(0,i.jsx)(d.LoadingPane,{paneKey:x,path:v,selected:j}),s[0]=x,s[1]=v,s[2]=j,s[3]=t):t=s[3];let P=c||"";return s[4]!==I||s[5]!==u||s[6]!==f||s[7]!==h||s[8]!==m||s[9]!==x||s[10]!==j||s[11]!==P?(n=(0,i.jsx)(I,{childItemId:P,index:f,itemId:h,isActive:u,isSelected:j,paneKey:x,pane:m}),s[4]=I,s[5]=u,s[6]=f,s[7]=h,s[8]=m,s[9]=x,s[10]=j,s[11]=P,s[12]=n):n=s[12],s[13]!==t||s[14]!==n?(r=(0,i.jsx)(a.Suspense,{fallback:t,children:n}),s[13]=t,s[14]=n,s[15]=r):r=s[15],s[16]!==p||s[17]!==f||s[18]!==y||s[19]!==g||s[20]!==w||s[21]!==r?(o=(0,i.jsx)(H,{flatIndex:f,index:
1p,params:y,payload:g,siblingIndex:w,children:r}),s[16]=p,s[17]=f,s[18]=y,s[19]=g,s[20]=w,s[21]=r,s[22]=o):o=s[22],o},(e,t)=>{let{params:n={},payload:r=null,...i}=e,{params:l={},payload:a=null,...o}=t;if(!D(n,l)||!D(r,a))return!1;for(let e of new Set([...Object.keys(i),...Object.keys(o)]))if(i[e]!==o[e])return!1;return!0});function ev(){let e,t,n,r,a,s,d,c;let p=(0,l.c)(17),{t:f}=(0,o.Bdt)(u.Z7);return p[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(N.az,{children:(0,i.jsx)(N.EY,{size:1,children:(0,i.jsx)(A.sAQ,{})})}),p[0]=e):e=p[0],p[1]!==f?(t=f("no-document-types-screen.title"),p[1]=f,p[2]=t):t=p[2],p[3]!==t?(n=(0,i.jsx)(N.EY,{as:"h1",size:1,weight:"medium",children:t}),p[3]=t,p[4]=n):n=p[4],p[5]!==f?(r=f("no-document-types-screen.subtitle"),p[5]=f,p[6]=r):r=p[6],p[7]!==r?(a=(0,i.jsx)(N.EY,{as:"p",muted:!0,size:1,children:r}),p[7]=r,p[8]=a):a=p[8],p[9]!==f?(s=f("no-document-types-screen.link-text"),p[9]=f,p[10]=s):s=p[10],p[11]!==s?(d=(0,i.jsx)(N.EY,{as:"p",muted:!0,size:1,children:(0,i.jsx)("a",{href:"https://www.sanity.io/docs/create-a-schema-and-configure-sanity-studio",target:"_blank",rel:"noreferrer",children:s})}),p[11]=s,p[12]=d):d=p[12],p[13]!==n||p[14]!==a||p[15]!==d?(c=(0,i.jsx)(N.Zp,{height:"fill",children:(0,i.jsx)(N.so,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,i.jsx)(N.mc,{width:0,children:(0,i.jsx)(N.Zp,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,i.jsxs)(N.so,{children:[e,(0,i.jsxs)(N.BJ,{flex:1,marginLeft:3,space:3,children:[n,a,d]})]})})})})}),p[13]=n,p[14]=a,p[15]=d,p[16]=c):c=p[16],c}let ej=e=>{let t,n;let r=(0,l.c)(7),{documentId:i,documentType:s}=e,{selectedReleaseId:d}=(0,o.QO2)(),c=(0,o.zX2)(i,s,"default",d),p=(0,o.pDY)(),{t:f}=(0,o.Bdt)(u.Z7),h=!(null==c?void 0:c.published)&&!(null==c?void 0:c.draft),m=(null==c?void 0:c.version)||(null==c?void 0:c.draft)||(null==c?void 0:c.published),x=p.get(s),{value:y,isLoading:g}=(0,o.MOl)({enabled:!0,schemaType:x,value:m}),v=h?f("browser-document-title.new-document",{schemaType:(null==x?void 0:x.title)||(null==x?void 0:x.name)}):(null==y?void 0:y.title)||f("browser-document-title.untitled-document"),j=c.ready&&!g,w=eP(v);return r[0]!==w||r[1]!==j?(t=()=>{j&&(document.title=w)},r[0]=w,r[1]=j,r[2]=t):t=r[2],r[3]!==v||r[4]!==w||r[5]!==j?(n=[v,j,w],r[3]=v,r[4]=w,r[5]=j,r[6]=n):n=r[6],(0,a.useEffect)(t,n),null},ew=e=>{let t,n;let r=(0,l.c)(5),{title:i}=e,o=eP(i);return r[0]!==o?(t=()=>{document.title=o},r[0]=o,r[1]=t):t=r[1],r[2]!==o||r[3]!==i?(n=[o,i],r[2]=o,r[3]=i,r[4]=n):n=r[4],(0,a.useEffect)(t,n),null},eI=e=>{let t;let n=(0,l.c)(8),{resolvedPanes:r}=e;if(!(null==r?void 0:r.length))return null;let a=r[r.length-1];if(a===d.LOADING_PANE){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(ew,{}),n[0]=e):e=n[0],e}if(function(e){return e!==d.LOADING_PANE&&"document"===e.type}(a)){let e;if(null==a?void 0:a.title){let e;return n[1]!==a.title?(e=(0,i.jsx)(ew,{title:a.title}),n[1]=a.title,n[2]=e):e=n[2],e}return n[3]!==a.options.id||n[4]!==a.options.type?(e=(0,i.jsx)(ej,{documentId:a.options.id,documentType:a.options.type}),n[3]=a.options.id,n[4]=a.options.type,n[5]=e):e=n[5],e}let o=null==a?void 0:a.title;return n[6]!==o?(t=(0,i.jsx)(ew,{title:o}),n[6]=o,n[7]=t):t=n[7],t};function eP(e){let t;let n=(0,l.c)(3),r=(0,d.useStructureTool)().structureContext.title;return n[0]!==e||n[1]!==r?(t=[e,r].filter(eb),n[0]=e,n[1]=r,n[2]=t):t=n[2],t.join(" | ")}function eb(e){return e}let e_=(0,C.I4)(d.PaneLayout)(Y()),ek=(0,O.v_)("mod+s"),eS=(0,a.memo)(function(e){var t;let n,r,u,p,f,h,x,v,j,w,I,z;let A=(0,l.c)(31),{onPaneChange:C}=e,{push:O}=(0,T.dj)(),B=(0,o.pDY)(),{layoutCollapsed:M,setLayoutCollapsed:R}=(0,d.useStructureTool)(),{paneDataItems:Y,resolvedPanes:Z}=function(){let e,t,n;let r=(0,l.c)(6),[i,o]=(0,a.useState)();if(i)throw i;let{structureContext:u,rootPaneNode:p}=(0,d.useStructureTool)();r[0]===Symbol.for("react.memo_cache_sentinel")?(e={paneDataItems:[],resolvedPanes:[],routerPanes:[]},r[0]=e):e=r[0];let[f,h]=(0,a.useState)(e),x=function(){let e,t,n,r;let i=(0,l.c)(6),[o]=(0,a.useState)(ei);i[0]!==o?(t=o.asObservable().pipe((0,b.T)(er)),i[0]=o,i[1]=t):t=i[1],e=t;let{state:s}=(0,c.rd)();return i[2]!==s||i[3]!==o?(n=()=>{o.next(s)},r=[s,o],i[2]=s,i[3]=o,i[4]=n,i[5]=r):(n=i[4],r=i[5]),(0,a.useEffect)(n,r),e}();return r[1]!==p||r[2]!==x||r[3]!==u?(t=()=>{let e=(function(e){let{routerPanesStream:t,rootPaneNode:n,initialCacheState:r={cacheKeysByFlatIndex:[],flattenedRouterPanes:[],resolvedPaneCache:new Map,resolvePane:()=>g.t},structureContext:i}=e;return t.pipe((0,b.T)(e=>[[{id:"root"}],...e]),(0,b.T)(e=>e.flatMap((e,t)=>e.map((e,n)=>({routerPaneSibling:e,groupIndex:t,siblingIndex:n}))).map((e,t)=>({...e,flatIndex:t}))),(0,_.Z)([]),(0,k.N)(function(e,t){var n,r=!1;e.subscribe((0,S._)(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),(0,b.T)(e=>{let[t,n]=e;for(let e=0;e<n.length;e++)if(!D(t[e],n[e]))return{flattenedRouterPanes:n,diffIndex:e};return{flattenedRouterPanes:n,diffIndex:n.length}}),(0,E.S)((e,t)=>{let{cacheKeysByFlatIndex:n,resolvedPaneCache:r}=e,{flattenedRouterPanes:i,diffIndex:l}=t,a=n.slice(0,l+1),o=n.slice(l+1),s=new Set(a.flatMap(e=>Array.from(e)));for(let e of o.flatMap(e=>Array.from(e)).filter(e=>!s.has(e)))r.delete(e);return{flattenedRouterPanes:i,cacheKeysByFlatIndex:n,resolvedPaneCache:r,resolvePane:Q(e=>(t,i,l)=>{var a,o;let s=t&&"".concat(K(t),"-").concat("contextHash(".concat(JSON.stringify({id:i.id,parentId:parent&&K(parent),path:i.path,index:i.index,splitIndex:i.splitIndex,serializeOptionsIndex:null===(a=i.serializeOptions)||void 0===a?void 0:a.index,serializeOptionsPath:null===(o=i.serializeOptions)||void 0===o?void 0:o.path}),")")),d=s&&r.get(s);if(d)return d;let u=e(t,i,l);if(!s)return u;let c=n[l]||new Set;return c.add(s),n[l]=c,r.set(s,u),u})}}
1,r),(0,P.n)(e=>{let{flattenedRouterPanes:t,resolvePane:r}=e;return function e(t){let{unresolvedPane:n,flattenedRouterPanes:r,parent:i,path:l,resolvePane:a,structureContext:o}=t,[d,...u]=r,c=u[0],p={id:d.routerPaneSibling.id,splitIndex:d.siblingIndex,parent:i,path:[...l,d.routerPaneSibling.id],index:d.flatIndex,params:d.routerPaneSibling.params||{},payload:d.routerPaneSibling.payload,structureContext:o};try{return a(n,p,d.flatIndex).pipe((0,P.n)(t=>{let r;let s={type:"resolvedMeta",...d,paneNode:t,path:p.path},f=u.map((e,t)=>({type:"loading",path:[...p.path,...u.slice(t).map((t,n)=>"[".concat(e.flatIndex+n,"]"))],paneNode:null,...e}));return u.length?(r=(null==c?void 0:c.routerPaneSibling.id.startsWith("__edit__"))?e({unresolvedPane:et,flattenedRouterPanes:u,parent:i,path:p.path,resolvePane:a,structureContext:o}):d.groupIndex===(null==c?void 0:c.groupIndex)?e({unresolvedPane:n,flattenedRouterPanes:u,parent:i,path:l,resolvePane:a,structureContext:o}):e({unresolvedPane:"function"==typeof t.child?U(t,"child"):t.child,flattenedRouterPanes:u,parent:t,path:p.path,resolvePane:a,structureContext:o}),(0,y.x)((0,m.of)([s,...f]),r.pipe((0,b.T)(e=>[s,...e])))):(0,m.of)([s])}))}catch(e){if(e instanceof J&&(e.context&&console.warn("Pane resolution error at index ".concat(e.context.index).concat(e.context.splitIndex>0?" for split pane index ".concat(e.context.splitIndex):"",": ").concat(e.message).concat(e.helpId?" - see ".concat((0,s.iB)(e.helpId)):""),e),"structure-item-returned-no-child"===e.helpId))return(0,m.of)([]);throw e}}({unresolvedPane:n,flattenedRouterPanes:t,parent:null,path:[],resolvePane:r,structureContext:i})})).pipe((0,E.S)((e,t)=>t.map((t,n)=>{let r=e[n];return r&&"loading"===t.type&&r.routerPaneSibling.id===t.routerPaneSibling.id?r:t}),[]),(0,L.F)((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(en(r)!==en(i))return!1}return!0}))})({rootPaneNode:p,routerPanesStream:x,structureContext:u}).pipe((0,b.T)(el)).subscribe({next:e=>h(e),error:e=>o(e)});return()=>e.unsubscribe()},n=[p,x,u],r[1]=p,r[2]=x,r[3]=u,r[4]=t,r[5]=n):(t=r[4],n=r[5]),(0,a.useEffect)(t,n),f}(),H=(0,c.ks)(eE),{sanity:G}=(0,N.DP)(),{media:F}=G,[V,W]=(0,a.useState)(null);A[0]!==R?(n=()=>R(!0),A[0]=R,A[1]=n):n=A[1];let $=n;A[2]!==R?(r=()=>R(!1),A[2]=R,A[3]=r):r=A[3];let q=r;if(A[4]!==C||A[5]!==Z?(u=()=>{Z.length&&C(Z)},p=[C,Z],A[4]=C,A[5]=Z,A[6]=u,A[7]=p):(u=A[6],p=A[7]),(0,a.useEffect)(u,p),A[8]!==O?(f=()=>{let e=e=>{ek(e)&&(e.preventDefault(),O({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=[O],A[8]=O,A[9]=f,A[10]=h):(f=A[9],h=A[10]),(0,a.useEffect)(f,h),!(null===(t=B._original)||void 0===t?void 0:t.types.some(o.Xhw))){let e;return A[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(ev,{}),A[11]=e):e=A[11],e}let X=V||null,ee=M?void 0:"fill",ea=F[1];return A[12]!==Y?(x=Y.map(eL),A[12]=Y,A[13]=x):x=A[13],A[14]!==H||A[15]!==Y.length?(v=Y.length<=1&&H&&(0,i.jsx)(d.LoadingPane,{paneKey:"intent-resolver"}),A[14]=H,A[15]=Y.length,A[16]=v):v=A[16],A[17]!==$||A[18]!==q||A[19]!==F[1]||A[20]!==x||A[21]!==v||A[22]!==ee?(j=(0,i.jsxs)(e_,{flex:1,height:ee,minWidth:ea,onCollapse:$,onExpand:q,children:[x,v]}),A[17]=$,A[18]=q,A[19]=F[1],A[20]=x,A[21]=v,A[22]=ee,A[23]=j):j=A[23],A[24]!==Z?(w=(0,i.jsx)(eI,{resolvedPanes:Z}),A[24]=Z,A[25]=w):w=A[25],A[26]===Symbol.for("react.memo_cache_sentinel")?(I=(0,i.jsx)("div",{"data-portal":"",ref:W}),A[26]=I):I=A[26],A[27]!==j||A[28]!==w||A[29]!==X?(z=(0,i.jsxs)(N.GD,{element:X,children:[j,w,I]}),A[27]=j,A[28]=w,A[29]=X,A[30]=z):z=A[30],z});function eE(e){return"string"==typeof e.intent}function eL(e){let{active:t,childItemId:n,groupIndex:r,itemId:l,key:o,pane:s,index:u,params:c,path:p,payload:f,siblingIndex:h,selected:m}=e;return(0,i.jsx)(a.Fragment,{children:s===d.LOADING_PANE?(0,i.jsx)(d.LoadingPane,{paneKey:o,path:p,selected:m}):(0,i.jsx)(eg,{active:t,groupIndex:r,index:u,pane:s,childItemId:n,itemId:l,paneKey:o,params:c,payload:f,path:p,selected:m,siblingIndex:h})},"".concat(s===d.LOADING_PANE?"loading":s.type,"-").concat(u))}function ez(e){let t,n,r,c,p,f,h;let m=(0,l.c)(14),{tool:x}=e,{options:y}=x,{unstable_sources:g}=(0,o.hA9)(),[v]=g;m[0]!==y?(t=y||{},m[0]=y,m[1]=t):t=m[1];let{source:j,defaultDocumentNode:w,structure:I}=t;m[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],m[2]=n):n=m[2],(0,a.useEffect)(eA,n),m[3]===Symbol.for("react.memo_cache_sentinel")?(r={error:null},m[3]=r):r=m[3];let[P,b]=(0,a.useState)(r),{error:_}=P;if(_){let e;return m[4]!==_?(e=(0,i.jsx)(ef,{error:_}
1),m[4]=_,m[5]=e):e=m[5],e}let k=j||v.name;return m[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,i.jsx)(eS,{onPaneChange:d.setActivePanes}),p=(0,i.jsx)(eu,{}),m[6]=c,m[7]=p):(c=m[6],p=m[7]),m[8]!==w||m[9]!==I?(f=(0,i.jsxs)(u.$l,{defaultDocumentNode:w,structure:I,children:[c,p]}),m[8]=w,m[9]=I,m[10]=f):f=m[10],m[11]!==k||m[12]!==f?(h=(0,i.jsx)(s.tH,{onCatch:b,children:(0,i.jsx)(o.NeO,{name:k,children:f})}),m[11]=k,m[12]=f,m[13]=h):h=m[13],h}function eA(){return(0,d.setActivePanes)([]),eN}function eN(){return(0,d.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.