1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0fa82-6030-7f50-a0e6-02eb105bf870")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,10641,e=>{"use strict";var t=e.i(539919),r=e.i(306973);let n=(0,t.createContext)(null);e.s(["EditorFileScopeContext",0,n,"useEditorFileScope",0,function(){return(0,t.useContext)(n)},"useScopedFileRegistry",0,function(e){let r=(0,t.useContext)(n)??e,l=r?.workspaceId,i=r?.resolveFileId,a=r?.getFileId;return(0,t.useMemo)(()=>i&&a?{workspaceId:l,resolveFileId:i,getFileId:a}:null,[a,i,l])},"useScopedWorkspaceFiles",0,function(){let e=(0,t.useContext)(n),l=(0,r.useFilesContextOptional)();return(0,t.useMemo)(()=>e?{workspaceId:e.workspaceId,getFileContent:e.getFileContent,getFileAssetUrl:e.getFileAssetUrl,updateFileContent:e.updateFileContent,fileTree:e.fileTree,staticSubresourcesPreauthorized:!0===e.staticSubresourcesPreauthorized,preauthorizedBrowserSdk:e.preauthorizedBrowserSdk??null,resolvePath:e.resolvePath??null}:{workspaceId:l?.workspaceId??null,getFileContent:l?.getFileContent??null,getFileAssetUrl:l?.getFileAssetUrl??null,updateFileContent:l?.updateFileContent??null,fileTree:l?.workspaceId&&l.fileTreeWorkspaceId===l.workspaceId?l.fileTree:null,staticSubresourcesPreauthorized:!1,preauthorizedBrowserSdk:null,resolvePath:null},[e,l])}])},234968,e=>{"use strict";var t=e.i(539919);let r=(0,t.createContext)(null);e.s(["EmbedContext",0,r,"MAX_EMBED_DEPTH",0,4,"useEmbedContext",0,function(){return(0,t.useContext)(r)}])},133852,676486,e=>{"use strict";var t=e.i(9384),r=e.i(655153),n=e.i(909148),l=e.i(571121),i=e.i(529707),a=e.i(453782),o=e.i(450836),s=e.i(531083),u=e.i(539919),c=e.i(10001),d=e.i(753255),m=e.i(504808),p=e.i(234968),f=e.i(705939),h=e.i(736571),g=e.i(376340);let y=new Set(["markdown","agent-skill"]),x=new Set(["code","react","text","json","mermaid","table","shadertoy","pgn","ical","playlist","subtitle","kml"]),v={markdown:"Document","agent-skill":"Agent skill",code:"Code",react:"React app",text:"Text",json:"JSON",html:"HTML",mermaid:"Diagram",table:"Table",image:"Image",gif:"Animated image",exr:"HDR image",video:"Video",audio:"Audio",pdf:"PDF","3d":"3D model",pptx:"Presentation",lottie:"Animation",psd:"Photoshop file",diary:"Diary",epub:"E-book",ical:"Calendar",midi:"MIDI",archive:"Archive",kml:"Map",design:"Design",fig:"Figma file",link:"Bookmark",pgn:"Chess game",sqlite:"Database",playlist:"Playlist",subtitle:"Subtitles",cast:"Terminal recording",diff:"Diff",notebook:"Notebook",xlsx:"Spreadsheet","kicad-pcb":"PCB",shadertoy:"Shader",dj:"DJ set","video-edit":"Video project",solitaire:"Solitaire game",sudoku:"Sudoku puzzle",whiteboard:"Whiteboard",kanban:"Board",automation:"Automation",site:"Site",snake:"Game"},b=new Map,k=new Map,w=(0,f.getHeavyEditorCacheScope)();function j(e,t,r){if(!r)return!0;if(null!==e&&e!==r.size)return!1;let n=r.modified??null;return!n||!t||t===n}async function E(e,t,r,n,l){let i=k.get(e);if(i)return i;let a=(async()=>{try{let e,i=n.workspaceId??w;if(i){let e=await (0,c.getCachedHoverPreview)(i,t);if(e&&j(e.sourceSize,e.sourceModified,l))if(("image"===r||"video"===r)&&"unsupported"===e.status)(0,c.deleteCachedHoverPreview)(i,t);else{let t=function(e){if("unsupported"===e.status)return{emoji:null,body:{kind:"generic"}};if(!e.valueJson)return null;try{return JSON.parse(e.valueJson)}catch{return null}}(e);if(t)return t}}if(!n.getFileAssetUrl)return{emoji:null,body:{kind:"generic"}};let a=(0,c.getPreviewCacheEpoch)(),o=(0,d.basename)(t),{response:s,aboveCap:u,asset:p}=await (0,h.loadEditorFile)(t,o,{getFileContent:n.getFileContent,getFileAssetUrl:n.getFileAssetUrl,inlineLimitBytes:512e3,mintForAnyFile:!0,fetchContent:"image"!==r&&"video"!==r,requireAssetForContent:!0,skipEditorPreload:!0}),f=p?.size??s?.size??l?.size??null,g=l?.modified??null;if(p)if("image"===r||"video"===r)e={emoji:null,body:{kind:r}};else if(u||!s||"utf-8"!==s.encoding)e={emoji:null,body:{kind:"generic"}};else if("html"===r){let t=s.content.slice(0,512e3);e={emoji:null,body:t.trim()?{kind:"html",html:t}:{kind:"empty"}}}else if("doc"===r){let{emoji:t,blocks:r}=function(e){let t=e.replace(/^/,""),r=(t=t.replace(/^\s*---\n[\s\S]*?\n---\s*\n?/,"")).match(/<FileIcon\b[^>]*\bicon="([^"]+)"/),n=r?r[1]:null;t=(t=(t=t.replace(/```[\s\S]*?```/g," ").replace(/~~~[\s\S]*?~~~/g," ")).replace(/<Mention\b[^>]*\blabel="([^"]*)"[^>]*\/?>/g,"$1")).replace(/<[^>]+>/g," ");let l=[],i=320;for(let e of t.split("\n")){let t,r;if(l.length>=6||i<=0)break;let n=e.trim();if(!n||/^([-*_])\1{2,}$/.test(n.replace(/\s/g,""))||n.includes("-")&&/^\|?[\s:|-]+\|?$/.test(n))continue;let a="text";(r=n.match(/^(#{1,6})\s+(.*)$/))?(a="heading",n=r[2]):(r=n.match(/^[-*+]\s+(.*)$/))?(a="bullet",n=r[1]):(r=n.match(/^(\d+)\.\s+(.*)$/))?(a="ordered",t=`${r[1]}.`,n=r[2]):(r=n.match(/^>\s?(.*)$/))&&(a="quote",n=r[1]),(n=n.replace(/!\[[^\]]*\]\([^)]*\)/g,"").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1").trim())&&(l.push(t?{type:a,text:n,marker:t}:{type:a,text:n}),i-=n.length)}return{emoji:n,blocks:l}}(s.content);
1e={emoji:t,body:r.length?{kind:"doc",blocks:r}:{kind:"empty"}}}else if("code"===r){let{language:r,text:n}=function(e,t){let r=(0,m.getMonacoLanguage)(t),n=e.replace(/\t/g," ").split("\n");for(;n.length&&!n[0].trim();)n.shift();return{language:r,text:n.slice(0,12).join("\n").trimEnd()}}(s.content,(0,d.basename)(t));e={emoji:null,body:n?{kind:"code",language:r,text:n}:{kind:"empty"}}}else e={emoji:null,body:{kind:"generic"}};else e={emoji:null,body:{kind:"generic"}};if(i&&null!==f){let r="generic"===e.body.kind;(0,c.setCachedHoverPreview)({workspaceId:i,path:t,status:r?"unsupported":"ok",valueJson:r?null:JSON.stringify(e),sourceSize:f,sourceModified:g},a)}return e}catch{return{emoji:null,body:{kind:"generic"}}}})();k.set(e,a);try{let t=await a;return b.set(e,{expires:Date.now()+15e3,value:t,sourceSize:l?.size??null,sourceModified:l?.modified??null}),t}finally{k.delete(e)}}function C(e){var t;let r,n=(0,p.useEmbedContext)(),l=(0,u.useContext)(g.FilePreviewLoadContext),i=n?.getFileContent??l?.getFileContent??null,a=n?.getFileAssetUrl??l?.getFileAssetUrl??null,o=n?.workspaceId??l?.workspaceId??w,s=n?.getFileMetadata??l?.getFileMetadata,c=(0,u.useMemo)(()=>i?{workspaceId:o,getFileContent:i,getFileAssetUrl:a,getFileMetadata:s}:null,[o,i,a,s]),f=(0,u.useMemo)(()=>e?!e||e.startsWith("/")||e.startsWith("//")||/^[a-z][a-z0-9+.-]*:/i.test(e)?e:`/${e}`:null,[e]),h=(0,u.useMemo)(()=>f?s?.(f)??null:null,[s,f]),k=f?(t=o??null,`${t??w??"global"}:${f}`):null,C=(0,u.useMemo)(()=>{let e;if(!f)return null;let t=(0,d.basename)(f),r=(0,m.getEditorForFile)(t,f);return{editorType:r,basename:t,title:(e=t.lastIndexOf("."))>0?t.slice(0,e):t,typeLabel:v[r]??"File",cls:y.has(r)?"doc":(0,m.isImageMediaEditorType)(r)?"image":"video"===r?"video":"html"===r?"html":x.has(r)?"code":"generic"}},[f]),F=C?.cls,S="doc"===F||"code"===F||"html"===F||"image"===F||"video"===F,[P,N]=(0,u.useState)(null);if((0,u.useEffect)(()=>{let e;if(!f||!k||!S||!c||((e=b.get(k))?e.expires<Date.now()||!j(e.sourceSize,e.sourceModified,h)?(b.delete(k),null):e.value:null))return;let t=!1;return E(k,f,F,c,h).then(e=>{t||N({path:f,value:e})}).catch(()=>{t||N({path:f,value:{emoji:null,body:{kind:"generic"}}})}),()=>{t=!0}},[f,k,S,F,c,h]),!f||!C)return null;let A=null;if("generic"!==F&&c){let e,t=P?.path===f?P.value:k?(e=b.get(k))&&j(e.sourceSize,e.sourceModified,h)?e.value:null:null;t?(A=t.emoji,r=t.body):r={kind:"loading"}}else r={kind:"generic"};return{editorType:C.editorType,basename:C.basename,title:C.title,typeLabel:C.typeLabel,emoji:A,body:r}}(0,f.subscribeHeavyEditorCacheScope)(function(e){e!==w&&(w=e,b.clear(),k.clear())}),e.s(["useFilePreview",0,C],676486);let F={maskImage:"linear-gradient(to bottom, black 70%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 70%, transparent 100%)"},S=/(\*\*|__)([\s\S]+?)\1|(~~)([\s\S]+?)\3|(`)([^`]+?)\5|(\*|_)([\s\S]+?)\7/;function P(e,r="i"){let n=[],l=e,o=0;for(;l.length;){let e=S.exec(l);if(!e){n.push(l);break}e.index>0&&n.push(l.slice(0,e.index));let s=`${r}-${o++}`;void 0!==e[1]?n.push((0,t.jsx)("strong",{children:P(e[2],s)},s)):void 0!==e[3]?n.push((0,t.jsx)("del",{className:"line-through opacity-80",children:P(e[4],s)},s)):void 0!==e[5]?n.push((0,t.jsx)("code",{className:(0,a.cn)("rounded px-1 font-mono text-[0.85em]",i.bg.muted()),children:e[6]},s)):n.push((0,t.jsx)("em",{children:P(e[8],s)},s)),l=l.slice(e.index+e[0].length)}return n}function N({blocks:e}){return(0,t.jsx)("div",{className:"mt-3 space-y-1 overflow-hidden",style:{maxHeight:144,...F},children:e.map((e,r)=>"heading"===e.type?(0,t.jsx)("p",{className:(0,a.cn)("line-clamp-2 text-sm font-semibold",i.text.primary()),children:P(e.text)},r):"bullet"===e.type||"ordered"===e.type?(0,t.jsxs)("div",{className:(0,a.cn)("flex gap-1.5 text-sm",i.text.secondary()),children:[(0,t.jsx)("span",{className:"flex-shrink-0 tabular-nums opacity-70",children:"ordered"===e.type?e.marker:"â¢"}),(0,t.jsx)("span",{className:"line-clamp-2 min-w-0",children:P(e.text)})]},r):"quote"===e.type?(0,t.jsx)("p",{className:(0,a.cn)("border-l-2 pl-2 text-sm italic",i.border.default(),i.text.muted()),children:P(e.text)},r):(0,t.jsx)("p",{className:(0,a.cn)("line-clamp-3 text-sm",i.text.secondary()),children:P(e.text)},r))})}function A({text:e}){return(0,t.jsx)("pre",{className:(0,a.cn)("mt-3 overflow-hidden rounded-lg p-3 font-mono text-xs leading-relaxed",i.bg.muted(),i.text.secondary()),style:{maxHeight:156,...F},children:(0,t.jsx)("code",{className:"whitespace-pre",children:e})})}function L({html:e,title:r}){return(0,t.jsx)("div",{className:(0,a.cn)("relative w-full overflow-hidden",i.bg.muted()),style:{height:176},children:(0,t.jsx)("iframe",{title:`Preview of ${r}`,srcDoc:e,sandbox:"",scrolling:"no",tabIndex:-1,"aria-hidden":!0,
1className:(0,a.cn)("border-0",i.bg.surface()),style:{width:1024,height:563.2,transform:"scale(0.3125)",transformOrigin:"top left",pointerEvents:"none"}})})}function I({kind:e,basename:n,src:l,loading:o}){return(0,t.jsx)("div",{className:(0,a.cn)("flex h-40 w-full items-center justify-center overflow-hidden",i.bg.muted()),children:l?"image"===e?(0,t.jsx)("img",{src:l,alt:n,className:"h-full w-full object-cover",draggable:!1}):(0,t.jsx)("video",{src:l,className:"h-full w-full object-cover",muted:!0,loop:!0,autoPlay:!0,playsInline:!0,preload:"metadata","aria-hidden":!0}):o?(0,t.jsx)("div",{className:"h-6 w-24 animate-pulse rounded bg-current opacity-10","aria-hidden":!0}):(0,t.jsx)(r.FileTypeIcon,{filename:n,size:40})})}function T(){return(0,t.jsxs)("div",{className:"mt-3 space-y-2","aria-hidden":!0,children:[(0,t.jsx)("div",{className:"h-3 w-3/4 animate-pulse rounded bg-current opacity-10"}),(0,t.jsx)("div",{className:"h-3 w-full animate-pulse rounded bg-current opacity-10"}),(0,t.jsx)("div",{className:"h-3 w-5/6 animate-pulse rounded bg-current opacity-10"})]})}function M({preview:e,path:o,mediaUrl:s="",mediaLoading:u=!1,className:c}){var d;let m,p,{body:f,emoji:h,basename:g,title:y,typeLabel:x}=e,v="image"===f.kind||"video"===f.kind||"html"===f.kind;return(0,t.jsxs)("div",{className:(0,a.cn)("overflow-hidden rounded-xl border shadow-lg",i.bg.surface(),i.border.default(),c),style:{width:320},children:[("image"===f.kind||"video"===f.kind)&&(0,t.jsx)(I,{kind:f.kind,basename:g,src:s,loading:u}),"html"===f.kind&&(0,t.jsx)(L,{html:f.html,title:y}),(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[!v&&(0,t.jsx)("span",{className:"mt-0.5 flex-shrink-0",children:h?(0,t.jsx)(n.PageIcon,{value:h,size:26}):o?(0,t.jsx)(l.WorkspaceFileIcon,{path:o,filename:g,size:26}):(0,t.jsx)(r.FileTypeIcon,{filename:g,size:26})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:(0,a.cn)("truncate text-[15px] font-semibold",i.text.primary()),children:y}),(0,t.jsx)("p",{className:(0,a.cn)("text-xs",i.text.muted()),children:x})]})]}),"loading"===f.kind&&(0,t.jsx)(T,{}),"doc"===f.kind&&(d=f.blocks,m=d[0],(p=m?.type==="heading"&&m.text.trim().toLowerCase()===y.trim().toLowerCase()?d.slice(1):d).length?(0,t.jsx)(N,{blocks:p}):null),"code"===f.kind&&(0,t.jsx)(A,{text:f.text})]})]})}e.s(["FILE_PREVIEW_CARD_WIDTH",0,320,"FilePreviewCard",0,function({path:e,className:r}){let n=C(e),l=n?.body.kind==="image"||n?.body.kind==="video",i=(0,o.useWorkspaceAsset)(l?(0,s.toWorkspaceAssetPath)(e):null,{mode:"lenient"});return n?(0,t.jsx)(M,{preview:n,path:e,mediaUrl:i.url,mediaLoading:i.loading,className:r}):null},"FilePreviewCardView",0,M],133852)},251253,e=>{"use strict";var t=e.i(9384);e.i(66563);var r=e.i(583573),n=e.i(539919),l=e.i(200510),i=e.i(121288),a=e.i(133852);function o(){let e=(0,n.useRef)(null),t=(0,n.useRef)(null),r=(0,n.useCallback)(()=>{e.current&&clearTimeout(e.current),t.current&&clearTimeout(t.current)},[]),l=(0,n.useCallback)(t=>{r(),e.current=setTimeout(t,280)},[r]),i=(0,n.useCallback)(r=>{e.current&&clearTimeout(e.current),t.current&&clearTimeout(t.current),t.current=setTimeout(r,140)},[]);return(0,n.useEffect)(()=>r,[r]),{scheduleOpen:l,scheduleClose:i,clear:r}}function s({anchorEl:e,path:r}){let o=(0,n.useRef)(null),[u,c]=(0,n.useState)(null),d=(0,n.useCallback)(()=>
1{let t=o.current;if(!e||!t)return;let r=(0,i.placeFloatingMenu)(e.getBoundingClientRect(),{width:t.offsetWidth||a.FILE_PREVIEW_CARD_WIDTH,height:t.offsetHeight},"down");c(e=>(0,i.sameFloatingMenuPosition)(e,r)?e:r)},[e]);return((0,n.useLayoutEffect)(()=>{d()},[d,r]),(0,n.useEffect)(()=>{if(!e)return;let t=o.current,r=0,n=()=>{r||(r=requestAnimationFrame(()=>{r=0,d()}))},l=t?new ResizeObserver(n):null;return t&&l&&l.observe(t),window.addEventListener("scroll",n,{capture:!0,passive:!0}),window.addEventListener("resize",n),()=>{r&&cancelAnimationFrame(r),l?.disconnect(),window.removeEventListener("scroll",n,{capture:!0}),window.removeEventListener("resize",n)}},[e,d]),"u"<typeof document)?null:(0,l.createPortal)((0,t.jsx)("div",{ref:o,style:{top:u?.top??0,left:u?.left??0,visibility:u?"visible":"hidden"},className:"pointer-events-none fixed z-[100]",children:(0,t.jsx)(a.FilePreviewCard,{path:r})}),document.body)}function u(e,t){if(!e||e.startsWith("#")||e.startsWith("//")||/^[a-z][a-z0-9+.-]*:/i.test(e))return null;if(t){let n=(0,r.resolveWorkspaceLinkHref)(t,e);return n?`/${n}`:null}let n=e.split(/[?#]/)[0];if(!n)return null;try{n=decodeURIComponent(n)}catch{}return n.startsWith("/")||(n=`/${n}`),"/"===(n=n.replace(/\/{2,}/g,"/"))?null:n}e.s(["AnchoredPreviewCard",0,s,"LinkHoverPreviews",0,function({editor:e,knownPaths:r,documentPath:l}){let[i,a]=(0,n.useState)(null),{scheduleOpen:c,scheduleClose:d,clear:m}=o();return((0,n.useEffect)(()=>{let t=e?.view.dom;if(!t)return;let n=e=>{let n=e.target,i=n?.closest("a.editor-link");if(!i||!t.contains(i))return;let o=u(i.getAttribute("href"),l);o&&r.has(o)&&c(()=>a({el:i,path:o}))},i=e=>{let t=e.target,r=t?.closest("a.editor-link");if(!r)return;let n=e.relatedTarget;n&&r.contains(n)||d(()=>a(null))};return t.addEventListener("mouseover",n),t.addEventListener("mouseout",i),()=>{t.removeEventListener("mouseover",n),t.removeEventListener("mouseout",i),m()}},[e,r,l,c,d,m]),i)?(0,t.jsx)(s,{anchorEl:i.el,path:i.path}):null},"normalizeKnownPath",0,function(e){return u(e)??e},"useHoverIntentTimers",0,o,"useHoverPreview",0,function(){let[e,t]=(0,n.useState)(null),{scheduleOpen:r,scheduleClose:l}=o();return{anchor:e,triggerProps:{onMouseEnter:e=>{let n=e.currentTarget;r(()=>t(n))},onMouseLeave:()=>l(()=>t(null)),onFocus:e=>{let n=e.currentTarget;r(()=>t(n))},onBlur:()=>l(()=>t(null))}}}])},450836,e=>{"use strict";var t=e.i(539919),r=e.i(306973),n=e.i(916090),l=e.i(10641),i=e.i(885274),a=e.i(839888);e.s(["useWorkspaceAsset",0,function(e,o){let s=o?.mode??"lenient",u=o?.trackVersion??!0,c=o?.watchUploadPreview??!1,d=o?.refreshLeadMs??n.REFRESH_LEAD_MS,m=(0,l.useEditorFileScope)(),p=(0,r.useFilesContextOptional)(),f=(0,i.useWorkspaceAssetUrl)(),h=m?.getFileAssetUrl??p?.getFileAssetUrl??f??void 0,g=m?m.fileTree:p?.fileTree??null,y=h?.workspaceId??null,x=e??"",v=!!x&&(0,n.isWorkspacePath)(x),b=v&&u&&g?(0,n.fileVersion)(g,x):"",k=u?b:void 0,w=(0,a.useImagePreviewEntry)(c&&v?x:null),j=!!w&&!w.done,[E,C]=(0,t.useState)(()=>{if(!v)return null;let e=(0,n.peekCachedUrl)(x,k,y);return e?{path:x,version:b,url:e}:null}),[F,S]=(0,t.useState)(null);(0,t.useEffect)(()=>{let e;if(!v||!h||j)return;let t=!1,r=async()=>{let l=await (0,n.resolveWorkspaceAsset)(x,h,{version:k});if(t)return;if(!l||"string"!=typeof l.url||!l.url){"strict"===s&&S("Failed to load media");return}C({path:x,version:b,url:l.url}),S(null);let i=(0,n.assetRefreshDelayMs)(l.expiresAt,Date.now(),d);null!==i&&(e=setTimeout(r,i))};return r(),()=>{t=!0,e&&clearTimeout(e)}},[v,x,b,k,h,j,s,d]);let P="strict"===s?F:null;if(!v)return{url:x,error:null,loading:!1};if(E&&E.path===x&&(!u||E.version===b))return{url:E.url,error:P,loading:!1};if(w)return{url:w.url,error:null,loading:!1};let N=!!h&&!j&&null===P;return{url:"",error:P,loading:N}}])},885274,e=>{"use strict";var t=e.i(539919);let r=(0,t.createContext)(null);e.s(["WorkspaceAssetUrlContext",0,r,"useWorkspaceAssetUrl",0,function(){return(0,t.useContext)(r)}])},839888,e=>{"use strict";var t=e.i(539919);let r=new Map,n=new Set,l=new Map,i=r;function a(){i=new Map(r),n.forEach(e=>e())}function o(e){return n.add(e),()=>{n.delete(e)}}function s(){return i}function u(e){let t=l.get(e);t&&(clearTimeout(t),l.delete(e))}function c(e){let t=r.get(e);t&&(URL.revokeObjectURL(t.url),r.delete(e),a())}e.s(["discardImagePreview",0,function(e){u(e),c(e)},"markPreviewDone",0,function(e){let t=r.get(e);if(!t||t.done)return;r.set(e,{...t,done:!0}),a(),u(e);let n=setTimeout(()=>{l.delete(e),c(e)},5e3);l.set(e,n)},"setImagePreview",0,function(e,t){u(e);let n=r.get(e);n&&n.url!==t&&URL.revokeObjectURL(n.url),r.set(e,{url:t,done:!1}),a()},"useImagePreviewEntry",0,function(e){let r=(0,t.useSyncExternalStore)(o,s,s);return e?r.get(e)??null:null},"useImagePreviewPaths",0,function(){let e=(0,t.useSyncExternalStore)(o,s,s);return(0,t.useMemo)(()=>{let t=new Set;for(let[r,n]of e)n.done||t.add(r);return t},[e])}])},758823,e=>{"use strict";var t=e.i(9384),r=e.i(800062),n=e.i(512409),l=e.i(676704),i=e.i(198631);let a=(0,i.default)("codepen",[["polygon",{points:"12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2",key:"srzb37"}],["line",{x1:"12",x2:"12",y1:"22",y2:"15.5",key:"1t73f2"}],["polyline",{points:"22 8.5 12 15.5 2 8.5",key:"ajlxae"}],["polyline",{points:"2 15.5 12 8.5 22 15.5",key:"susrui"}],["line",{x1:"12",x2:"12",y1:"2",y2:"8.5",key:"2cldga"}]]),o=(0,i.default)("codesandbox",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["polyline",{points:"7.5 4.21 12 6.81 16.5 4.21",key:"fabo96"}
1],["polyline",{points:"7.5 19.79 7.5 14.6 3 12",key:"z377f1"}],["polyline",{points:"21 12 16.5 14.6 16.5 19.79",key:"9nrev1"}],["polyline",{points:"3.27 6.96 12 12.01 20.73 6.96",key:"1180pa"}],["line",{x1:"12",x2:"12",y1:"22.08",y2:"12",key:"3z3uq6"}]]);var s=e.i(715682),u=e.i(48989),c=e.i(541546),d=e.i(378985),m=e.i(661112),p=e.i(498081),f=e.i(412509),h=e.i(599437),g=e.i(628299),y=e.i(401442),x=e.i(935073),v=e.i(355156),b=e.i(753281),k=e.i(360954),w=e.i(200611),j=e.i(114346),E=e.i(671798),C=e.i(535935),F=e.i(923844),S=e.i(281437),P=e.i(539919),N=e.i(529707),A=e.i(362845),L=e.i(150095);let I=new Map;async function T(e){try{let t=await (0,L.apiFetch)(`/api/url-embed/oembed?url=${encodeURIComponent(e)}`,{skipLog:!0});if(!t.ok)return null;let r=await t.json();return{title:r.title,authorName:r.author_name,thumbnailUrl:r.thumbnail_url,thumbnailWidth:r.thumbnail_width,thumbnailHeight:r.thumbnail_height,providerName:r.provider_name,html:r.html}}catch{return null}}var M=e.i(453782);let z={youtube:S.Youtube,vimeo:F.Video,loom:F.Video,spotify:b.Music,soundcloud:b.Music,figma:c.Figma,codepen:a,codesandbox:o,tiktok:F.Video,gist:d.FileCode,twitter:C.Twitter,reddit:v.MessageSquare,instagram:h.Instagram,facebook:u.Facebook,linkedin:y.Linkedin,pinterest:n.Bookmark,giphy:f.Image,googleMaps:x.Map,canva:k.Palette,miro:g.Layers,typeform:l.ClipboardList,tally:l.ClipboardList,replit:E.Terminal,streamlit:r.BarChart3,excalidraw:w.Pencil,framer:p.Globe,tableau:r.BarChart3,invision:m.Film};function U(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch{return e}}function D({html:e,title:r,allow:n}){if(!e)return(0,t.jsx)("div",{className:(0,M.cn)("absolute inset-0 flex items-center justify-center text-xs",N.text.muted()),children:"Loadingâ¦"});let l=`<!DOCTYPE html><html><head><meta charset="utf-8"><base target="_blank"><style>html,body{margin:0;padding:0;background:transparent;overflow:auto;font-family:system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif}</style></head><body>${e}</body></html>`;return(0,t.jsx)("iframe",{srcDoc:l,title:r,loading:"lazy",allow:n,className:"absolute inset-0 h-full w-full border-0"})}function R({url:e,fallback:r}){let[n,l]=(0,P.useState)(!1),i=null;try{i=new URL(e).hostname}catch{}return n||!i?(0,t.jsx)(r,{size:14,className:(0,M.cn)("shrink-0",N.text.muted())}):(0,t.jsx)("img",{src:`https://www.google.com/s2/favicons?sz=64&domain=${encodeURIComponent(i)}`,alt:"",width:14,height:14,onError:()=>l(!0),className:"shrink-0 rounded-sm",style:{width:14,height:14}})}function O({meta:e,resolved:r,onPlay:n}){return(0,t.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),n()},className:"nodrag group absolute inset-0 flex h-full w-full items-center justify-center overflow-hidden border-0 p-0",style:{background:e?.thumbnailUrl?`center / cover no-repeat url(${JSON.stringify(e.thumbnailUrl)}), #000`:"#000"},"aria-label":e?.title?`Play "${e.title}"`:`Play ${r.provider} embed`,children:(0,t.jsx)("span",{className:(0,M.cn)("flex h-14 w-20 items-center justify-center rounded-xl shadow-lg transition group-hover:scale-105",N.mediaPlayButton.bg,N.mediaPlayButton.bgHover,N.mediaPlayButton.ink),children:(0,t.jsx)(j.Play,{size:28,fill:"currentColor"})})})}function _({url:e,title:r,className:n}){let l=U(e),i=(0,A.safeUrl)(e),a=(0,M.cn)("flex items-center gap-2 rounded-lg border px-3 py-2 text-sm no-underline",N.border.default(),N.bg.muted(),i&&N.hover.bg(),N.text.primary(),n),o=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.ExternalLink,{size:14,className:N.text.muted()}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",title:r??e,children:r??e}),(0,t.jsx)("span",{className:(0,M.cn)("shrink-0 text-xs",N.text.muted()),children:l})]});return i?(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:a,children:o}):(0,t.jsx)("div",{className:a,children:o})}e.s(["URL_EMBED_FRAME_CHROME_HEIGHT",0,36,"UrlEmbed",0,function({url:e,className:r,title:n,fillContainer:l,showFrame:i}){let a=(0,A.getEmbedForUrl)(e),o=function(e){let[t,r]=(0,P.useState)({key:null,data:null});return(0,P.useEffect)(()=>{if(!e)return;let t=!1,n=I.get(e);return n||(n=T(e),I.set(e,n)),n.then(n=>{t||r({key:e,data:n})}),()=>{t=!0}},[e]),t.key===e?t.data:null}(a?e:null),[u,c]=(0,P.useState)(!1);if(!a)return(0,t.jsx)(_,{url:e,title:n,className:r});let d=l?{width:"100%",height:"100%"}:{aspectRatio:String(a.aspectRatio)},m=o?.title??n,f=!0!==a.isVideo||u?a.useOembedHtml?(0,t.jsx)(D,{html:o?.html,title:m??a.provider,allow:a.allow}):"image"===a.embedMode?(0,t.jsx)("img",{src:a.embedUrl,alt:m??a.provider,draggable:!1,
1className:"absolute inset-0 h-full w-full object-contain"}):(0,t.jsx)("iframe",{src:u?function(e){try{let t=new URL(e);return t.searchParams.set("autoplay","1"),t.toString()}catch{return e}}(a.embedUrl):a.embedUrl,title:m??a.provider,loading:"lazy",allow:a.allow,allowFullScreen:a.allowFullScreen??!1,className:"absolute inset-0 h-full w-full border-0"}):(0,t.jsx)(O,{meta:o,resolved:a,onPlay:()=>c(!0)});if(i){let n=m??U(e),l=z[a.provider]??p.Globe;return(0,t.jsxs)("div",{className:(0,M.cn)("flex flex-col overflow-hidden rounded-md border",N.border.default(),N.bg.muted(),r),style:d,children:[(0,t.jsx)("div",{className:"relative min-h-0 flex-1",children:f}),(0,t.jsxs)("div",{className:(0,M.cn)("flex shrink-0 items-center gap-2 border-t px-3 text-xs",N.border.default()),style:{height:36},children:[(0,t.jsx)(R,{url:e,fallback:l}),(0,t.jsx)("span",{className:(0,M.cn)("min-w-0 flex-1 truncate",N.text.primary()),title:n,children:n}),(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:(0,M.cn)("nodrag shrink-0 rounded p-1",N.hover.bg(),N.text.muted()),title:"Open original",onMouseDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),children:(0,t.jsx)(s.ExternalLink,{size:12})})]})]})}return(0,t.jsx)("div",{className:(0,M.cn)("relative w-full overflow-hidden rounded-lg",N.bg.muted(),r),style:d,children:f})}],758823)},965263,806153,e=>{"use strict";var t=e.i(9384),r=e.i(539919),n=e.i(156407);let l="arg.ai",i=`https://${l}`,a=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function o(e){try{return decodeURIComponent(e)}catch{return e}}function s(e,t){var r;let s,u;if(!e)return null;let c=e.trim();if(!c||!c.startsWith("/")&&!a.test(c))return null;let{base:d,hostname:m}=function(e){let t=e??(window.location?.origin||void 0);if(!t)return{base:i,hostname:null};try{let e=new URL(t);return{base:e.origin,hostname:e.hostname.toLowerCase()}}catch{return{base:i,hostname:null}}}(t?.origin);try{s=new URL(c,d)}catch{return null}return"http:"!==s.protocol&&"https:"!==s.protocol?null:(r=s.hostname,u=r.toLowerCase(),m&&u===m||u===l||u.endsWith(`.${l}`))?function(e){if((0,n.isWorkspaceDesktopRoute)(e)){let t=o(e.split("/")[4]||"");return t?{orgSlug:(0,n.parseOrgSlugFromPath)(e),target:{kind:"desktop",workspaceId:t}}:null}if((0,n.isChatRoute)(e)){let t=o(e.split("/")[4]||"");return t?{orgSlug:(0,n.parseOrgSlugFromPath)(e),target:{kind:"chat",chatId:t}}:null}let t=(0,n.parseWorkspaceRoute)(e);if(!t.isWorkspaceRoute)return null;let r=t.routeOrgSlug;if(t.routePage)return{orgSlug:r,target:{kind:"page",page:t.routePage}};let l=t.routeWorkspaceId;return l?t.routeFilePath?{orgSlug:r,target:{kind:"file",workspaceId:l,path:t.routeFilePath}}:t.routeFolderPath?{orgSlug:r,target:{kind:"folder",workspaceId:l,path:t.routeFolderPath}}:{orgSlug:r,target:{kind:"workspace",workspaceId:l}}:null}(s.pathname):null}e.s(["isPlainLeftClick",0,function(e){return 0===e.button&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey},"parseArgAppLink",0,s,"parseArgWorkspaceFileLink",0,function(e,t,r){let n=s(e,r);return!n||"file"!==n.target.kind||n.orgSlug&&n.orgSlug!==t?null:{workspaceId:n.target.workspaceId,path:n.target.path}}],806153);let u=new Set;function c(e){return u.add(e),()=>{u.delete(e)}}function d(){return null}function m(){return null}let p=(0,r.createContext)(null);e.s(["DesktopOsLinkProvider",0,function({open:e,children:n}){let l=(0,r.useMemo)(()=>({open:e}),[e]);return(0,t.jsx)(p.Provider,{value:l,children:n})},"useArgAppLinkOpener",0,function(){let e=(0,r.useContext)(p),t=(0,r.useSyncExternalStore)(c,d,m),n=(0,r.useCallback)(r=>{if("string"!=typeof r)return!1;let n=s(r);return!!n&&(e?e.open(n):!!t&&t(r,n))},[e,t]);return e||t?n:null}],965263)},369090,(e,t,r)=>{"use strict";var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g;function d(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,c=1;function m(e){var t=e.match(l);t&&(r+=t.length);var n=e.lastIndexOf("\n");c=~n?e.length-n:c+e.length}function p(){var e={line:r,column:c}
1;return function(t){return t.position=new f(e),g(i),t}}function f(e){this.start=e,this.end={line:r,column:c},this.source=t.source}function h(n){var l=Error(t.source+":"+r+":"+c+": "+n);if(l.reason=n,l.filename=t.source,l.line=r,l.column=c,l.source=e,t.silent);else throw l}function g(t){var r=t.exec(e);if(r){var n=r[0];return m(n),e=e.slice(n.length),r}}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return h("End of comment missing");var n=e.slice(2,r-2);return c+=2,m(n),e=e.slice(r),c+=2,t({type:"comment",comment:n})}}f.prototype.content=e,g(i);var v,b=[];for(y(b);v=function(){var e=p(),t=g(a);if(t){if(x(),!g(o))return h("property missing ':'");var r=g(s),l=e({type:"declaration",property:d(t[0].replace(n,"")),value:r?d(r[0].replace(n,"")):""});return g(u),l}}();)!1!==v&&(b.push(v),y(b));return b}},559596,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;let n=(0,l.default)(e),i="function"==typeof t;return n.forEach(e=>{if("declaration"!==e.type)return;let{property:n,value:l}=e;i?t(n,l,e):l&&((r=r||{})[n]=l)}),r};let l=n(e.r(369090))},851521,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};r.camelCase=function(e,t){var r;return(void 0===t&&(t={}),!(r=e)||i.test(r)||n.test(r))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,u):e.replace(a,u)).replace(l,s))}},763185,(e,t,r)=>{"use strict";var n=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(559596)),l=e.r(851521);function i(e,t){var r={};return e&&"string"==typeof e&&(0,n.default)(e,function(e,n){e&&n&&(r[(0,l.camelCase)(e,t)]=n)}),r}i.default=i,t.exports=i},535935,e=>{"use strict";let t=(0,e.i(198631).default)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);e.s(["Twitter",0,t],535935)},603884,e=>{"use strict";var t=e.i(897802),r=e.i(816220),n=e.i(465741),l=e.i(158206),i=e.i(273638);let a={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var o=e.i(61634),s=e.i(722365),u=e.i(763185),c=e.i(417798),d=e.i(980615);let m={}.hasOwnProperty,p=new Map,f=/[A-Z]/g,h=new Set(["table","tbody","thead","tfoot","tr"]),g=new Set(["td","th"]),y="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function x(e,n,c){var p,x,C,F,S,P,N,A,L;let I,T,M,z,U,D,R,O,_,W,H;return"element"===n.type?(p=e,x=n,C=c,T=I=p.schema,"svg"===x.tagName.toLowerCase()&&"html"===I.space&&(p.schema=o.svg),p.ancestors.push(x),M=w(p,x.tagName,!1),z=function(e,t){let n,l,o={};for(l in t.properties)if("children"!==l&&m.call(t.properties,l)){let c=function(e,t,n){let l=(0,i.find)(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=l.commaSeparated?(0,r.stringify)(n):(0,s.stringify)(n)),"style"===l.property){let t="object"==typeof n?n:function(e,t){try{return(0,u.default)(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};let t=new d.VFileMessage("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=y+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,r={};for(t in e)m.call(e,t)&&(r[function(e){let t=e.replace(f,E);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return r}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&l.space?a[l.property]||l.property:l.attribute,n]}}(e,l,t.properties[l]);if(c){let[r,l]=c;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&g.has(t.tagName)?n=l:o[r]=l}}return n&&((o.style||(o.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),o}(p,x),U=k(p,x),h.has(x.tagName)&&(U=U.filter(function(e){return"string"!=typeof e||!(0,l.whitespace)(e)})),v(p,z,M,x),b(z,U),p.ancestors.pop(),p.schema=I,p.create(x,M,z,C)):"mdxFlowExpression"===n.type||"mdxTextExpression"===n.type?function(e,r){if(r.data&&r.data.estree&&e.evaluater){let n=r.data.estree.body[0];return(0,t.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}j(e,r.position)}(e,n):"mdxJsxFlowElement"===n.type||"mdxJsxTextElement"===n.type?(F=e,S=n,P=c,R=D=F.schema,"svg"===S.name&&"html"===D.space&&(F.schema=o.svg),F.ancestors.push(S),O=null===S.name?F.Fragment:w(F,S.name,!0),_=function(e,r){let n={};for(let l of r.attributes)if("mdxJsxExpressionAttribute"===l.type)if(l.data&&l.data.estree&&e.evaluater){let r=l.data.estree.body[0];(0,t.ok)("ExpressionStatement"===r.type);let i=r.expression;
1(0,t.ok)("ObjectExpression"===i.type);let a=i.properties[0];(0,t.ok)("SpreadElement"===a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else j(e,r.position);else{let i,a=l.name;if(l.value&&"object"==typeof l.value)if(l.value.data&&l.value.data.estree&&e.evaluater){let r=l.value.data.estree.body[0];(0,t.ok)("ExpressionStatement"===r.type),i=e.evaluater.evaluateExpression(r.expression)}else j(e,r.position);else i=null===l.value||l.value;n[a]=i}return n}(F,S),W=k(F,S),v(F,_,O,S),b(_,W),F.ancestors.pop(),F.schema=D,F.create(S,O,_,P)):"mdxjsEsm"===n.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);j(e,t.position)}(e,n):"root"===n.type?(N=e,A=n,L=c,b(H={},k(N,A)),N.create(A,N.Fragment,H,L)):"text"===n.type?n.value:void 0}function v(e,t,r,n){"string"!=typeof r&&r!==e.Fragment&&e.passNode&&(t.node=n)}function b(e,t){if(t.length>0){let r=t.length>1?t:t[0];r&&(e.children=r)}}function k(e,t){let r=[],n=-1,l=e.passKeys?new Map:p;for(;++n<t.children.length;){let i,a=t.children[n];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=l.get(e)||0;i=e+"-"+t,l.set(e,t+1)}}let o=x(e,a,i);void 0!==o&&r.push(o)}return r}function w(e,r,l){let i;if(l)if(r.includes(".")){let e,l=r.split("."),a=-1;for(;++a<l.length;){let t=(0,n.name)(l[a])?{type:"Identifier",name:l[a]}:{type:"Literal",value:l[a]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(a&&"Literal"===t.type),optional:!1}:t}(0,t.ok)(e,"always a result"),i=e}else i=(0,n.name)(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};else i={type:"Literal",value:r};if("Literal"===i.type){let t=i.value;return m.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(i);j(e)}function j(e,t){let r=new d.VFileMessage("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=y+"#cannot-handle-mdx-estrees-without-createevaluater",r}function E(e){return"-"+e.toLowerCase()}let C={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var F=e.i(9384);e.i(539919);var S=e.i(403010),P=e.i(652652),N=e.i(879302),A=e.i(216920),L=e.i(159902);let I=[],T={allowDangerousHtml:!0},M=/^(https?|ircs?|mailto|xmpp)$/i,z=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function U(e){let t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),l=e.indexOf("/");return -1===t||-1!==l&&t>l||-1!==r&&t>r||-1!==n&&t>n||M.test(e.slice(0,t))?e:""}e.s(["default",0,function(e){var r;let n,l,i,a,s,u=(n=(r=e).rehypePlugins||I,l=r.remarkPlugins||I,i=r.remarkRehypeOptions?{...r.remarkRehypeOptions,...T}:T,(0,N.unified)().use(S.default).use(l).use(P.default,i).use(n)),d=(a=e.children||"",s=new L.VFile,"string"==typeof a?s.value=a:(0,t.unreachable)("Unexpected value `"+a+"` for `children` prop, expected `string`"),s);return function(e,r){let n=r.allowedElements,l=r.allowElement,i=r.components,a=r.disallowedElements,s=r.skipHtml,u=r.unwrapDisallowed,d=r.urlTransform||U;for(let e of z)Object.hasOwn(r,e.from)&&(0,t.unreachable)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&a&&(0,t.unreachable)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,A.visit)(e,function(e,t,r){if("raw"===e.type&&r&&"number"==typeof t)return s?r.children.splice(t,1):r.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in C)if(Object.hasOwn(C,t)&&Object.hasOwn(e.properties,t)){let r=e.properties[t],n=C[t];(null===n||n.includes(e.tagName))&&(e.properties[t]=d(String(r||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&l&&"number"==typeof t&&(i=!l(e,t,r)),i&&r&&"number"==typeof t)return u&&e.children?r.children.splice(t,1,...e.children):r.children.splice(t,1),t}}),function(e,t){var r,n,l,i;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=s,n=t.jsxDEV,a=function(e,t,l,i){let a=Array.isArray(l.children),o=(0,c.pointStart)(e);return n(t,l,i,a,{columnNumber:o?o.column-1:void 0,fileName:r,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
1if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");l=t.jsx,i=t.jsxs,a=function(e,t,r,n){let a=Array.isArray(r.children)?i:l;return n?a(t,r,n):a(t,r)}}let u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?o.svg:o.html,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},d=x(u,e,void 0);return d&&"string"!=typeof d?d:u.create(e,u.Fragment,{children:d||void 0},void 0)}(e,{Fragment:F.Fragment,components:i,ignoreInvalidStyle:!0,jsx:F.jsx,jsxs:F.jsxs,passKeys:!0,passNode:!0})}(u.runSync(u.parse(d),d),e)}],603884)}]); 2 3//# chunkId=01a0fa82-6030-7f50-a0e6-02eb105bf870
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.