offsite 0.0.68 → 0.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/apps/client/dist/assets/ChevronsDownUpIcon-BNVFd2te.js +1 -0
  2. package/apps/client/dist/assets/{XIcon-DVUan90_.js → XIcon-BTZO46wb.js} +6 -6
  3. package/apps/client/dist/assets/{context-menu-B0aGaw4r.js → context-menu-D16WxIXt.js} +23 -23
  4. package/apps/client/dist/assets/diff-panel-CGW6idmO.js +260 -0
  5. package/apps/client/dist/assets/dist-D99rUXSZ.js +1 -0
  6. package/apps/client/dist/assets/dist-DUf7iKTq.js +1 -0
  7. package/apps/client/dist/assets/dist-Jliw2AH0.js +168 -0
  8. package/apps/client/dist/assets/editor-dialog-BdpvXPtR.js +52 -0
  9. package/apps/client/dist/assets/{highlights-ClFpvuAt.js → highlights-B40Xqqot.js} +2 -2
  10. package/apps/client/dist/assets/{image-viewer-DOTYtAy5.js → image-viewer-BDChyfSI.js} +1 -1
  11. package/apps/client/dist/assets/index-B_dYtuJ6.css +2 -0
  12. package/apps/client/dist/assets/index-CVRb_eva.js +73 -0
  13. package/apps/client/dist/assets/libesm-Bfkx4A5Z.js +13 -0
  14. package/apps/client/dist/assets/{preview-dialog-Bq-8p3uq.js → preview-dialog-BWCK-x3l.js} +1 -1
  15. package/apps/client/dist/assets/resolveLanguages-CUb-sBYj.js +2 -0
  16. package/apps/client/dist/assets/shiki-1q83RgHy.js +2 -0
  17. package/apps/client/dist/assets/stream-tokenizer-BcBuusIz.js +1 -0
  18. package/apps/client/dist/assets/tokensToHtml-BxQY-Ba2.js +14 -0
  19. package/apps/client/dist/assets/{tooltip-CVlWgxCV.js → tooltip-CKPboHje.js} +1 -1
  20. package/apps/client/dist/assets/{video-viewer-DsgT3Iz6.js → video-viewer-BXp_ueAz.js} +1 -1
  21. package/apps/client/dist/assets/{zoomable-image-QJPuc-JP.js → zoomable-image-C1DMNgds.js} +1 -1
  22. package/apps/client/dist/assets/zoomable-image-DAEgBZCp.js +1 -0
  23. package/apps/client/dist/index.html +8 -7
  24. package/apps/client/dist/sw.js +1 -1
  25. package/package.json +1 -1
  26. package/apps/client/dist/assets/appendItems-BzU1_nhw.js +0 -9
  27. package/apps/client/dist/assets/constants-CmGPilXJ.js +0 -1
  28. package/apps/client/dist/assets/diff-panel-BwlgTA7f.js +0 -408
  29. package/apps/client/dist/assets/dist-D58YXc_P.js +0 -2
  30. package/apps/client/dist/assets/dist-NHATWfcN.js +0 -1
  31. package/apps/client/dist/assets/editor-dialog-CSefFtgP.js +0 -52
  32. package/apps/client/dist/assets/getFiletypeFromFileName-DGoZTiUS.js +0 -1
  33. package/apps/client/dist/assets/index-dFajjlBv.css +0 -2
  34. package/apps/client/dist/assets/index-osF-Hjys.js +0 -21
  35. package/apps/client/dist/assets/libesm-Dyf3eB1R.js +0 -13
  36. package/apps/client/dist/assets/renderTokenLines-CZITQnBN.js +0 -3
  37. package/apps/client/dist/assets/shiki-BoAJalUP.js +0 -2
  38. package/apps/client/dist/assets/stream-tokenizer-bYvWJIhm.js +0 -4
  39. package/apps/client/dist/assets/zoomable-image-YrWyn05A.js +0 -1
@@ -0,0 +1,260 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{a as t,i as n,n as r}from"./dist-D99rUXSZ.js";import{n as i,r as a,t as o}from"./TextWrapIcon-BRhMbXe9.js";import{t as s}from"./ChevronsDownUpIcon-BNVFd2te.js";import{$t as c,I as l,M as u,N as d,g as f,t as p}from"./XIcon-BTZO46wb.js";import{a as m,t as h}from"./button-CWFREsRn.js";import{An as g,Ft as _,G as v,Gn as y,N as b,P as x,W as S,Wn as C,at as w,cn as T,gt as E,ot as D,zt as O}from"./dist-Jliw2AH0.js";import{c as k,l as A,r as j}from"./utils-U6QfaJBO.js";function M(e,t){let n=0;for(let r=0;r<e.length;r++)n+=t(e[r],r);return n}var N=[[`path`,{d:`M18.2505 10.5H19.6403C21.4918 10.5 22.0421 10.7655 21.9975 12.0838C21.9237 14.2674 20.939 16.8047 17 17.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M5.94627 20.6145C2.57185 18.02 2.07468 14.3401 2.00143 10.5001C1.96979 8.8413 2.45126 8.5 4.65919 8.5H15.3408C17.5487 8.5 18.0302 8.8413 17.9986 10.5001C17.9253 14.3401 17.4281 18.02 14.0537 20.6145C13.0934 21.3528 12.2831 21.5 10.9194 21.5H9.08064C7.71686 21.5 6.90658 21.3528 5.94627 20.6145Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M11.3089 2.5C10.7622 2.83861 10.0012 4 10.0012 5.5M7.53971 4C7.53971 4 7 4.5 7 5.5M14.0012 4C13.7279 4.1693 13.5 5 13.5 5.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],P=[[`path`,{d:`M3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 2.5V21.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}]],F=[[`path`,{d:`M2.49219 15.5H21.4922`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M2.49219 8.5H21.4922`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M2.49219 12C2.49219 7.52166 2.49219 5.28249 3.88343 3.89124C5.27467 2.5 7.51384 2.5 11.9922 2.5C16.4705 2.5 18.7097 2.5 20.1009 3.89124C21.4922 5.28249 21.4922 7.52166 21.4922 12C21.4922 16.4783 21.4922 18.7175 20.1009 20.1088C18.7097 21.5 16.4705 21.5 11.9922 21.5C7.51384 21.5 5.27467 21.5 3.88343 20.1088C2.49219 18.7175 2.49219 16.4783 2.49219 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`2`}]],I=e(A(),1);function L(e){let t=(0,I.useRef)(e);return(0,I.useInsertionEffect)(()=>void(t.current=e)),(0,I.useCallback)((...e)=>t.current(...e),[])}var R=k(),z=(0,I.createContext)(void 0);function ee(){return(0,I.useContext)(z)}var B={position:`absolute`,top:0,bottom:0,textAlign:`center`,whiteSpace:`normal`,touchAction:`none`},V={display:`contents`};function H(){return null}function U({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:r,renderHeaderFilenameSuffix:i,renderHeaderMetadata:a,renderAnnotation:o,renderGutterUtility:s,renderMergeConflictUtility:c,lineAnnotations:l,getHoveredLine:u,getInstance:d,getAnnotationSlotName:f=O}){let p=n?.(e),m=r?.(e),h=i?.(e),_=a?.(e);return(0,R.jsxs)(R.Fragment,{children:[p==null?(0,R.jsxs)(R.Fragment,{children:[m!=null&&(0,R.jsx)(`div`,{slot:`header-prefix`,children:m}),h!=null&&(0,R.jsx)(`div`,{slot:`header-filename-suffix`,children:h}),_!=null&&(0,R.jsx)(`div`,{slot:`header-metadata`,children:_})]}):(0,R.jsx)(`div`,{slot:g,children:p}),o!=null&&l?.map((t,n)=>(0,R.jsx)(`div`,{slot:f(t),children:o(t,e)},n)),t!=null&&c!=null&&d!=null&&t.map(t=>{if(t==null)return;let n=te(t,e);return(0,R.jsx)(`div`,{slot:n,style:V,children:c(t,d)},n)}),s!=null&&(0,R.jsx)(`div`,{slot:`gutter-utility-slot`,style:B,children:s(u)})]})}function te(e,t){let n=b(e,t);return n==null?void 0:x({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex})}var ne=(0,I.createContext)(void 0);function re(e,t){return typeof window>`u`&&t!=null?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`template`,{shadowrootmode:`open`,dangerouslySetInnerHTML:{__html:t}}),e]}):(0,R.jsx)(R.Fragment,{children:e})}var ie=(0,I.createContext)(void 0);function W(){return(0,I.useContext)(ie)}function G(){let[e]=(0,I.useState)(()=>{let e=0,t;return{getSnapshot:()=>e,subscribe(e){return t=e,()=>{t=void 0}},forceUpdate(){e++,t?.()}}});return(0,I.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot),e.forceUpdate}function K(e,t){"use no memo";return e.current?.__getNextRenderData(t)}var q=typeof window>`u`?I.useEffect:I.useLayoutEffect;function J({fileDiff:e,oldFile:t,newFile:n,options:r,editorOptions:i,editStateKey:a,lineAnnotations:o,selectedLines:s,prerenderedHTML:c,metrics:l,hasGutterRenderUtility:u,hasCustomHeader:d,disableWorkerPool:f,edit:p,onEditChange:m,onEditComplete:h}){let g=W(),_=s!==void 0,b=(0,I.useContext)(ne),x=ee(),[C,w]=(0,I.useState)(),E=L(e=>m?.(e)),D=m==null?void 0:E,k=(0,I.useRef)(null),A=L(r=>{let i=h?.(r)??`reject`;return i===`accept`&&(k.current={fileDiff:{installed:r.fileDiff,stale:r.originalFileDiff},filePair:e==null?{fileDiff:r.fileDiff,installed:{oldFile:r.oldFile,newFile:r.newFile},stale:{oldFile:t??null,newFile:n??null}}:null,annotations:{installed:r.lineAnnotations,stale:r.originalLineAnnotations}}),i}),j=h==null?void 0:A,M=ae({acceptedCache:k,fileDiff:e,newFile:n,oldFile:t,parseDiffOptions:r?.parseDiffOptions}),N=(0,I.useRef)(null),P=G(),F=K(N,oe(k,M,o))??{fileDiff:M,lineAnnotations:o??y},R=(0,I.useRef)(null),z=(0,I.useRef)(null),B=L(()=>{if(x==null)throw Error(`FileDiff: EditContext is not attached`);return x(`file-diff`,i??{},a)}),V=L(e=>{if(e!=null){if(N.current!=null)throw Error(`useFileDiffInstance: An instance should not already exist when a node is created`);g==null?N.current=new v(Z({controlledSelection:_,hasCustomHeader:d,hasGutterRenderUtility:u,onEditChange:D,onEditComplete:j,options:r}),f?void 0:b,P):N.current=new S(Z({controlledSelection:_,hasCustomHeader:d,hasGutterRenderUtility:u,onEditChange:D,onEditComplete:j,options:r}),g,l,f?void 0:b,P),N.current.hydrate({fileDiff:M,fileContainer:e,lineAnnotations:o,prerenderedHTML:c})}else{if(N.current==null)throw Error(`useFileDiffInstance: A FileDiff instance should exist when unmounting`);z.current=null,N.current.cleanUp(),N.current=null,R.current=null}});q(()=>{let{current:e}=N;if(e==null)return;let t=Z({controlledSelection:_,hasCustomHeader:d,hasGutterRenderUtility:u,onEditChange:D,onEditComplete:j,options:r}),n=!T(e.options,t);if(e.setOptions(t),!p&&(z.current=null,R.current!=null)){let{current:e}=R;R.current=null,e()}let i=se(M,o,k);if(e.render({forceRender:n,fileDiff:i.fileDiff,lineAnnotations:i.lineAnnotations}),s!==void 0&&e.setSelectedLines(s),!p||R.current!=null)return;if(x==null)throw Error(`FileDiff: EditContext is not attached`);let a=()=>{N.current===e&&R.current==null&&e.__canAttachEditor()&&(R.current=Q(e,B),P())};if(e.__canAttachEditor()){z.current=null,a();return}let c=e.__prepareForEditing();if(c==null){z.current=null;return}if(z.current?.promise===c)return;let l={promise:c};z.current=l,c.then(()=>{z.current===l&&(a(),z.current=null)}).catch(e=>{z.current===l&&(z.current=null,w(e))})});let H=(0,I.useCallback)(()=>N.current?.getHoveredLine(),[]),U=(0,I.useCallback)(e=>N.current?.getAnnotationSlotName(e)??O(e),[]);if(C!=null)throw C;return{...F,ref:V,getHoveredLine:H,getAnnotationSlotName:U}}function ae({acceptedCache:e,fileDiff:t,newFile:n,oldFile:r,parseDiffOptions:i}){return(0,I.useMemo)(()=>{if(t!=null)return t;let{current:a}=e,o=a?.filePair;if(a!=null&&o!=null){if(Y(r,n,o.stale)||Y(r,n,o.installed))return o.fileDiff;a.filePair=null}return w(r??null,n??null,i)},[e,t,r,n,i])}function Y(e,t,n){return _(e??void 0,n.oldFile??void 0)&&_(t??void 0,n.newFile??void 0)}function oe(e,t,n){"use no memo";return X(t,n,e.current)}function X(e,t,n){return{fileDiff:n?.fileDiff!=null&&E(e,n.fileDiff.stale)?n.fileDiff.installed:e,lineAnnotations:n?.annotations!=null&&t===n.annotations.stale?n.annotations.installed:t}}function se(e,t,n){let{current:r}=n,i=X(e,t,r);return r==null||(r.fileDiff!=null&&!E(e,r.fileDiff.stale)&&(r.fileDiff=null),t!==r.annotations?.stale&&(r.annotations=null),r.fileDiff==null&&r.annotations==null&&r.filePair==null&&(n.current=null)),i}function Z({options:e,controlledSelection:t,hasCustomHeader:n,hasGutterRenderUtility:r,onEditChange:i,onEditComplete:a}){return{...e,controlledSelection:t,renderCustomHeader:n?H:e?.renderCustomHeader,renderGutterUtility:r?H:e?.renderGutterUtility,onEditChange:i,onEditComplete:a}}function Q(e,t){let n=t();try{return n.edit(e)}catch(e){throw n.cleanUp(),e}}function ce({fileDiff:e,options:t,editorOptions:n,editStateKey:r,metrics:i,lineAnnotations:a,selectedLines:o,className:s,style:c,prerenderedHTML:l,renderAnnotation:u,renderCustomHeader:d,renderHeaderPrefix:f,renderHeaderFilenameSuffix:p,renderHeaderMetadata:m,renderGutterUtility:h,disableWorkerPool:g=!1,edit:_=!1,onEditChange:v,onEditComplete:y}){let{ref:b,getHoveredLine:x,getAnnotationSlotName:S,fileDiff:w,lineAnnotations:T}=J({fileDiff:e,options:t,editorOptions:n,editStateKey:r,metrics:i,lineAnnotations:a,selectedLines:o,prerenderedHTML:l,hasGutterRenderUtility:h!=null,hasCustomHeader:d!=null,disableWorkerPool:g,edit:_,onEditChange:v,onEditComplete:y}),E=U({fileDiff:w,renderCustomHeader:d,renderHeaderPrefix:f,renderHeaderFilenameSuffix:p,renderHeaderMetadata:m,renderAnnotation:u,renderGutterUtility:h,lineAnnotations:T,getHoveredLine:x,getAnnotationSlotName:S});return(0,R.jsx)(C,{ref:b,className:s,style:c,children:re(E,l)})}var le=3e3,ue=`text-foreground hover:bg-accent aria-pressed:bg-accent inline-flex h-7 min-w-7 cursor-pointer items-center justify-center rounded-lg px-1.5 [&_svg]:opacity-80`,$=`text-muted-foreground hover:text-foreground aria-pressed:bg-background aria-pressed:text-foreground dark:aria-pressed:bg-input/72 inline-flex h-6 cursor-pointer items-center justify-center rounded-md px-2.5 aria-pressed:shadow-xs`;function de(e){let[g,_]=(0,I.useState)(null),[v,y]=(0,I.useState)(null),[b,x]=(0,I.useState)(0),S=(0,I.useRef)({patch:null,count:0}),C=d(e=>e.prefs.diff),w=l(),[T,E]=r(`diffFlipped`,[]);function O(e){u({...f().prefs,diff:{...C,...e}})}(0,I.useEffect)(()=>{let t=!0,n=!1;async function r(){if(!n){n=!0;try{let n=await c(e.machine,`git.diff`,{projectId:e.projectId});if(!t||(y(null),n===S.current.patch))return;S.current={patch:n,count:S.current.count+1},_(n.trim()===``?[]:D(n,`${e.projectId}:${S.current.count}`).flatMap(e=>e.files))}catch(e){t&&y(j(e))}finally{n=!1}}}function i(){document.hidden||r()}r();let a=window.setInterval(i,le);return window.addEventListener(`focus`,i),()=>{t=!1,window.clearInterval(a),window.removeEventListener(`focus`,i)}},[e.machine,e.projectId,e.running,b]);let k=g??[],A=M(k,e=>M(e.hunks,e=>e.additionLines)),L=M(k,e=>M(e.hunks,e=>e.deletionLines));return(0,R.jsxs)(`div`,{className:`bg-background flex h-full min-h-0 min-w-0 flex-col`,children:[(0,R.jsxs)(`div`,{className:`border-border/60 bg-background flex h-(--workspace-topbar-height) shrink-0 items-center justify-between gap-2 border-b pr-3 pl-3`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,R.jsx)(h,{size:`icon-sm`,variant:`ghost`,title:`Close`,"aria-label":`Close`,onClick:e.onClose,children:(0,R.jsx)(m,{icon:p,className:`size-4`})}),(0,R.jsx)(`span`,{className:`text-foreground min-w-0 truncate text-xs font-medium`,children:`Uncommitted changes`})]}),(0,R.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[k.length>0&&(0,R.jsxs)(`span`,{className:`text-2xs mr-1 inline-flex items-center gap-1 font-mono tabular-nums`,children:[(0,R.jsxs)(`span`,{className:`text-diff-addition`,children:[`+`,A]}),(0,R.jsxs)(`span`,{className:`text-diff-deletion`,children:[`-`,L]})]}),(0,R.jsx)(h,{size:`icon-sm`,variant:`ghost`,title:`Refresh diff`,"aria-label":`Refresh diff`,onClick:()=>x(b+1),children:(0,R.jsx)(m,{icon:i,className:`size-4`})}),k.length>0&&(0,R.jsx)(h,{size:`icon-sm`,variant:`ghost`,title:C.collapsed?`Expand all files`:`Collapse all files`,onClick:()=>{E([]),O({collapsed:!C.collapsed})},children:(0,R.jsx)(m,{icon:C.collapsed?n:s,className:`size-4`})}),(0,R.jsxs)(`div`,{className:`bg-input/40 flex shrink-0 items-center rounded-lg p-0.5`,children:[(0,R.jsx)(`button`,{className:$,"aria-pressed":!C.split,"aria-label":`Stacked diff view`,onClick:()=>O({split:!1}),children:(0,R.jsx)(m,{icon:F,className:`size-3.5`})}),(0,R.jsx)(`button`,{className:$,"aria-pressed":C.split,"aria-label":`Split diff view`,onClick:()=>O({split:!0}),children:(0,R.jsx)(m,{icon:P,className:`size-3.5`})})]}),(0,R.jsx)(`button`,{className:ue,"aria-pressed":C.wrap,title:C.wrap?`Disable line wrapping`:`Enable line wrapping`,onClick:()=>O({wrap:!C.wrap}),children:(0,R.jsx)(m,{icon:o,className:`size-3.5`})})]})]}),(0,R.jsxs)(`div`,{className:`diff-render-surface min-h-0 flex-1 overflow-y-auto [--code-background:var(--background)]`,children:[v!==null&&(0,R.jsx)(`p`,{className:`text-muted-foreground p-4 text-center text-xs`,children:v}),v===null&&g===null&&(0,R.jsx)(`p`,{className:`text-muted-foreground p-4 text-center text-xs`,children:`Loading…`}),v===null&&g?.length===0&&(0,R.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center gap-3 p-6 text-center`,children:[(0,R.jsx)(m,{icon:N,className:`text-muted-foreground/40 size-8`}),(0,R.jsxs)(`div`,{className:`grid gap-1`,children:[(0,R.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:`No uncommitted changes`}),(0,R.jsx)(`p`,{className:`text-muted-foreground/50 text-xs italic`,children:`If it works, don’t touch it.`})]})]}),v===null&&k.map(e=>{let n=C.collapsed!==T.includes(e.name);function r(){E(T.includes(e.name)?T.filter(t=>t!==e.name):[...T,e.name])}return(0,R.jsx)(`div`,{onClick:e=>{e.nativeEvent.composedPath().some(e=>e instanceof Element&&e.hasAttribute(`data-title`))&&r()},children:(0,R.jsx)(ce,{fileDiff:e,options:{theme:w,themeType:`dark`,unsafeCSS:`:host,
2
+ [data-diffs-header],
3
+ [data-diff],
4
+ [data-file],
5
+ [data-error-wrapper],
6
+ [data-virtualizer-buffer] {
7
+ --diffs-header-font-family: var(--font-sans) !important;
8
+ --diffs-font-family: var(--font-mono) !important;
9
+ --diffs-bg: var(--code-background) !important;
10
+ --diffs-light-bg: var(--code-background) !important;
11
+ --diffs-dark-bg: var(--code-background) !important;
12
+ --diffs-token-light-bg: transparent;
13
+ --diffs-token-dark-bg: transparent;
14
+
15
+ --diffs-bg-context-override: color-mix(
16
+ in srgb,
17
+ var(--code-background) 97%,
18
+ var(--code-foreground)
19
+ );
20
+ --diffs-bg-hover-override: color-mix(
21
+ in srgb,
22
+ var(--code-background) 94%,
23
+ var(--code-foreground)
24
+ );
25
+ --diffs-bg-separator-override: color-mix(
26
+ in srgb,
27
+ var(--code-background) 95%,
28
+ var(--code-foreground)
29
+ );
30
+ --diffs-bg-buffer-override: color-mix(
31
+ in srgb,
32
+ var(--code-background) 90%,
33
+ var(--code-foreground)
34
+ );
35
+
36
+ --diffs-bg-context-gutter-override: var(--code-background);
37
+ --diffs-addition-color-override: var(--diff-addition);
38
+ --diffs-deletion-color-override: var(--diff-deletion);
39
+ --diffs-bg-addition-hover-override: color-mix(
40
+ in srgb,
41
+ var(--code-background) 85%,
42
+ var(--diff-addition)
43
+ );
44
+ --diffs-bg-addition-emphasis-override: color-mix(
45
+ in srgb,
46
+ var(--code-background) 65%,
47
+ var(--diff-addition)
48
+ );
49
+
50
+ --diffs-bg-deletion-hover-override: color-mix(
51
+ in srgb,
52
+ var(--code-background) 85%,
53
+ var(--diff-deletion)
54
+ );
55
+ --diffs-bg-deletion-emphasis-override: color-mix(
56
+ in srgb,
57
+ var(--code-background) 65%,
58
+ var(--diff-deletion)
59
+ );
60
+
61
+ background-color: var(--diffs-bg) !important;
62
+ color: var(--code-foreground) !important;
63
+ }
64
+
65
+ :is(
66
+ [data-line],
67
+ [data-line-annotation],
68
+ [data-merge-conflict],
69
+ [data-merge-conflict-actions],
70
+ [data-no-newline]
71
+ )[data-selected-line] {
72
+ --diffs-line-bg: light-dark(
73
+ color-mix(
74
+ in lab,
75
+ var(--code-background) 88%,
76
+ color-mix(in srgb, var(--code-background) 50%, var(--diffs-modified-base))
77
+ ),
78
+ color-mix(
79
+ in lab,
80
+ var(--code-background) 80%,
81
+ color-mix(in srgb, var(--code-background) 70%, var(--diffs-modified-base))
82
+ )
83
+ ) !important;
84
+ }
85
+
86
+ :is([data-gutter-buffer], [data-column-number])[data-selected-line] {
87
+ --diffs-line-bg: light-dark(
88
+ color-mix(
89
+ in lab,
90
+ var(--code-background) 91%,
91
+ color-mix(in srgb, var(--code-background) 35%, var(--diffs-modified-base))
92
+ ),
93
+ color-mix(
94
+ in lab,
95
+ var(--code-background) 85%,
96
+ color-mix(in srgb, var(--code-background) 60%, var(--diffs-modified-base))
97
+ )
98
+ ) !important;
99
+ }
100
+
101
+ [data-indicators='bars']
102
+ :is(
103
+ [data-column-number],
104
+ [data-gutter-buffer='annotation']
105
+ )[data-selected-line] {
106
+ position: relative;
107
+ }
108
+
109
+ [data-indicators='bars']
110
+ :is(
111
+ [data-column-number],
112
+ [data-gutter-buffer='annotation']
113
+ )[data-selected-line]::before {
114
+ position: absolute !important;
115
+ inset-block: 0 !important;
116
+ inset-inline-start: 0 !important;
117
+ display: block !important;
118
+ width: 4px !important;
119
+ min-width: 4px !important;
120
+ max-width: 4px !important;
121
+ height: auto !important;
122
+ padding: 0 !important;
123
+ content: '' !important;
124
+ background-color: var(--diffs-modified-base) !important;
125
+ background-image: none !important;
126
+ }
127
+
128
+ [data-file-info] {
129
+ background-color: var(--code-background) !important;
130
+ border-block-color: transparent !important;
131
+ color: var(--code-foreground) !important;
132
+ }
133
+
134
+ [data-diffs-header] {
135
+ position: sticky !important;
136
+ top: 0;
137
+ z-index: 4;
138
+ background-color: var(--code-background) !important;
139
+ border-bottom-color: transparent !important;
140
+ align-items: center !important;
141
+ font-family: var(--font-sans) !important;
142
+ font-size: 12px !important;
143
+ line-height: 1 !important;
144
+ min-height: 32px !important;
145
+ padding-block: 6px !important;
146
+ padding-inline: 8px 12px !important;
147
+ }
148
+
149
+ [data-diffs-header]:hover {
150
+ background-color: var(--code-background) !important;
151
+ box-shadow: inset 3px 0
152
+ color-mix(in srgb, var(--code-foreground) 24%, transparent);
153
+ }
154
+
155
+ :is([data-separator='line-info'], [data-separator='line-info-basic']) {
156
+ height: 24px !important;
157
+ margin-block: 0 !important;
158
+ --diffs-bg-separator: color-mix(
159
+ in srgb,
160
+ var(--code-background) 97%,
161
+ var(--code-foreground)
162
+ );
163
+ }
164
+
165
+ :is([data-separator='line-info'], [data-separator='line-info-basic'])
166
+ [data-separator-content] {
167
+ color: color-mix(
168
+ in srgb,
169
+ var(--code-foreground) 50%,
170
+ var(--code-background)
171
+ ) !important;
172
+ font-family: var(--font-sans) !important;
173
+ font-size: 11px !important;
174
+ text-decoration: none !important;
175
+ }
176
+
177
+ :is([data-separator='line-info'], [data-separator='line-info-basic'])
178
+ [data-expand-button] {
179
+ color: color-mix(
180
+ in srgb,
181
+ var(--code-foreground) 50%,
182
+ var(--code-background)
183
+ ) !important;
184
+ }
185
+
186
+ :is(
187
+ [data-separator='line-info'],
188
+ [data-separator='line-info-basic']
189
+ )[data-expand-index]
190
+ :is([data-separator-content], [data-expand-button]):hover {
191
+ color: var(--code-foreground) !important;
192
+ background-color: color-mix(
193
+ in srgb,
194
+ var(--code-background) 92%,
195
+ var(--code-foreground)
196
+ ) !important;
197
+ }
198
+
199
+ [data-diffs-header] [data-header-content] {
200
+ align-items: center !important;
201
+ line-height: 1 !important;
202
+ }
203
+
204
+ [data-diffs-header] :is([data-title], [data-prev-name]) {
205
+ line-height: 16px !important;
206
+ }
207
+
208
+ [data-diffs-header] [data-metadata] {
209
+ align-items: center !important;
210
+ line-height: 1 !important;
211
+ font-variant-numeric: tabular-nums;
212
+ }
213
+
214
+ [data-diffs-header] [data-additions-count],
215
+ [data-diffs-header] [data-deletions-count] {
216
+ font-family: var(--font-mono) !important;
217
+ font-size: 11px !important;
218
+ font-variant-numeric: tabular-nums;
219
+ line-height: 1 !important;
220
+ }
221
+
222
+ [data-diffs-header] [data-change-icon],
223
+ [data-diffs-header] [data-rename-icon] {
224
+ display: block;
225
+ flex-shrink: 0;
226
+ }
227
+
228
+ [data-title] {
229
+ cursor: pointer;
230
+ transition: color 120ms ease;
231
+ font-family: var(--font-sans) !important;
232
+ }
233
+
234
+ [data-title]:hover {
235
+ color: color-mix(
236
+ in srgb,
237
+ var(--code-foreground) 84%,
238
+ var(--primary)
239
+ ) !important;
240
+ }
241
+
242
+ [data-diff],
243
+ [data-file] {
244
+ transition: opacity 200ms ease-out;
245
+ }
246
+
247
+ @starting-style {
248
+ [data-diff],
249
+ [data-file] {
250
+ opacity: 0;
251
+ }
252
+ }
253
+
254
+ @media (prefers-reduced-motion: reduce) {
255
+ [data-diff],
256
+ [data-file] {
257
+ transition: none;
258
+ }
259
+ }
260
+ `,collapsed:n,lineDiffType:`word-alt`,overflow:C.wrap?`wrap`:`scroll`,diffStyle:C.split?`split`:`unified`},renderHeaderPrefix:()=>(0,R.jsx)(`button`,{className:`text-muted-foreground hover:text-foreground flex size-5 cursor-pointer items-center justify-center`,"aria-label":n?`Expand file`:`Collapse file`,onClick:r,children:(0,R.jsx)(m,{icon:n?a:t,className:`size-3.5`})})})},e.name)})]})]})}export{de as DiffPanel};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";import{l as n}from"./utils-U6QfaJBO.js";var r=[[`path`,{d:`M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],i=[[`path`,{d:`M18 14C18 14 13.5811 19 12 19C10.4188 19 6 14 6 14`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M18 9.99996C18 9.99996 13.5811 5.00001 12 5C10.4188 4.99999 6 10 6 10`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],a=t(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),o=e(n(),1),s=e(a(),1),c=typeof window<`u`?o.useLayoutEffect:o.useEffect;function l(e,t,n,r){let i=(0,o.useRef)(t);c(()=>{i.current=t},[t]),(0,o.useEffect)(()=>{let t=n?.current??window;if(!(t&&t.addEventListener))return;let a=e=>{i.current(e)};return t.addEventListener(e,a,r),()=>{t.removeEventListener(e,a,r)}},[e,n,r])}function u(e){let t=(0,o.useRef)(()=>{throw Error(`Cannot call an event handler while rendering.`)});return c(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>t.current?.call(t,...e),[t])}var d=typeof window>`u`;function f(e,t,n={}){let{initializeWithValue:r=!0}=n,i=(0,o.useCallback)(e=>n.serializer?n.serializer(e):JSON.stringify(e),[n]),a=(0,o.useCallback)(e=>{if(n.deserializer)return n.deserializer(e);if(e===`undefined`)return;let r=t instanceof Function?t():t,i;try{i=JSON.parse(e)}catch(e){return console.error(`Error parsing JSON:`,e),r}return i},[n,t]),s=(0,o.useCallback)(()=>{let n=t instanceof Function?t():t;if(d)return n;try{let t=window.localStorage.getItem(e);return t?a(t):n}catch(t){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,t),n}},[t,e,a]),[c,f]=(0,o.useState)(()=>r?s():t instanceof Function?t():t),p=u(t=>{d&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{let n=t instanceof Function?t(s()):t;window.localStorage.setItem(e,i(n)),f(n),window.dispatchEvent(new StorageEvent(`local-storage`,{key:e}))}catch(t){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,t)}}),m=u(()=>{d&&console.warn(`Tried removing localStorage key \u201C${e}\u201D even though environment is not a client`);let n=t instanceof Function?t():t;window.localStorage.removeItem(e),f(n),window.dispatchEvent(new StorageEvent(`local-storage`,{key:e}))});(0,o.useEffect)(()=>{f(s())},[e]);let h=(0,o.useCallback)(t=>{t.key&&t.key!==e||f(s())},[e,s]);return l(`storage`,h),l(`local-storage`,h),[c,p,m]}function p(e){let t=(0,o.useRef)(e);t.current=e,(0,o.useEffect)(()=>()=>{t.current()},[])}function m(e,t=500,n){let r=(0,o.useRef)();p(()=>{r.current&&r.current.cancel()});let i=(0,o.useMemo)(()=>{let i=(0,s.default)(e,t,n),a=(...e)=>i(...e);return a.cancel=()=>{i.cancel()},a.isPending=()=>!!r.current,a.flush=()=>i.flush(),a},[e,t,n]);return(0,o.useEffect)(()=>{r.current=(0,s.default)(e,t,n)},[e,t,n]),i}function h(e,t,n){let r=n?.equalityFn??((e,t)=>e===t),i=e instanceof Function?e():e,[a,s]=(0,o.useState)(i),c=(0,o.useRef)(i),l=m(s,t,n);return r(c.current,i)||(l(i),c.current=i),[a,l]}var g=typeof window>`u`;function _(e,t={}){let{initializeWithValue:n=!0}=t;g&&(n=!1);let r=(0,o.useCallback)(e=>{if(t.deserializer)return t.deserializer(e);if(e===`undefined`)return;let n;try{n=JSON.parse(e)}catch(e){return console.error(`Error parsing JSON:`,e),null}return n},[t]),i=(0,o.useCallback)(()=>{if(g)return null;try{let t=window.localStorage.getItem(e);return t?r(t):null}catch(t){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,t),null}},[e,r]),[a,s]=(0,o.useState)(()=>{if(n)return i()});(0,o.useEffect)(()=>{s(i())},[e]);let c=(0,o.useCallback)(t=>{t.key&&t.key!==e||s(i())},[e,i]);return l(`storage`,c),l(`local-storage`,c),a}export{r as a,i,f as n,_ as r,h as t};
@@ -0,0 +1 @@
1
+ import{$ as e,$n as t,$t as n,A as r,An as i,At as a,B as o,Bn as s,Bt as c,C as l,Cn as u,Ct as d,D as f,Dn as p,Dt as m,E as h,En as g,Et as _,F as v,Fn as y,G as b,Gn as x,Gt as S,H as C,Hn as w,Ht as T,I as E,In as D,It as O,J as k,Jn as A,Jt as j,K as M,Kn as N,Kt as P,L as F,Ln as I,Lt as L,M as R,Mn as z,Mt as B,Nn as V,Nt as H,O as U,On as W,Ot as G,Pn as K,Pt as q,Q as J,Qn as Y,Qt as X,R as Z,Rn as Q,Rt as $,S as ee,Sn as te,St as ne,T as re,Tn as ie,Tt as ae,U as oe,Un as se,Ut as ce,V as le,Vn as ue,Vt as de,W as fe,Wn as pe,Wt as me,X as he,Xn as ge,Xt as _e,Y as ve,Yn as ye,Yt as be,Z as xe,Zn as Se,Zt as Ce,_ as we,_n as Te,_t as Ee,a as De,an as Oe,ar as ke,at as Ae,b as je,bn as Me,bt as Ne,c as Pe,cn as Fe,cr as Ie,ct as Le,d as Re,dn as ze,dt as Be,en as Ve,er as He,et as Ue,f as We,fn as Ge,ft as Ke,g as qe,gn as Je,gt as Ye,h as Xe,hn as Ze,ht as Qe,i as $e,in as et,ir as tt,it as nt,j as rt,jn as it,jt as at,k as ot,kn as st,kt as ct,l as lt,ln as ut,lt as dt,m as ft,mn as pt,mt,n as ht,nn as gt,nr as _t,nt as vt,o as yt,on as bt,or as xt,ot as St,p as Ct,pn as wt,pt as Tt,q as Et,qn as Dt,qt as Ot,r as kt,rn as At,rr as jt,rt as Mt,s as Nt,sn as Pt,sr as Ft,st as It,t as Lt,tn as Rt,tr as zt,tt as Bt,u as Vt,un as Ht,ut as Ut,v as Wt,vn as Gt,vt as Kt,w as qt,wn as Jt,wt as Yt,x as Xt,xn as Zt,xt as Qt,y as $t,yn as en,yt as tn,z as nn,zn as rn,zt as an}from"./dist-Jliw2AH0.js";import{_ as on,a as sn,b as cn,c as ln,d as un,f as dn,l as fn,m as pn,o as mn,p as hn,r as gn,s as _n,t as vn,u as yn,v as bn}from"./tokensToHtml-BxQY-Ba2.js";import{a as xn,c as Sn,i as Cn,n as wn,o as Tn,r as En,s as Dn,t as On}from"./resolveLanguages-CUb-sBYj.js";import{t as kn}from"./formatCSSVariablePrefix-KRh9vnZf.js";export{xn as AttachedLanguages,o as CODE_VIEW_DIFF_OPTION_KEYS,le as CODE_VIEW_FILE_OPTION_KEYS,g as CODE_VIEW_FOOTER_ATTRIBUTE,p as CODE_VIEW_HEADER_ATTRIBUTE,W as COMMIT_METADATA_SPLIT,st as CORE_CSS_ATTRIBUTE,i as CUSTOM_HEADER_SLOT_ID,nn as CodeToTokenTransformStream,C as CodeView,it as DEFAULT_CODE_VIEW_FILE_METRICS,z as DEFAULT_CODE_VIEW_LAYOUT,V as DEFAULT_COLLAPSED_CONTEXT_THRESHOLD,K as DEFAULT_EXPANDED_REGION,y as DEFAULT_HIGHLIGHTER,D as DEFAULT_RENDER_RANGE,I as DEFAULT_SMOOTH_SCROLL_SETTINGS,Q as DEFAULT_THEMES,rn as DEFAULT_TOKENIZE_MAX_LENGTH,s as DEFAULT_VIRTUAL_FILE_METRICS,ue as DIFFS_DEVELOPMENT_BUILD,w as DIFFS_SCROLLBAR_GUTTER_MEASURED_PROPERTY,se as DIFFS_SCROLLBAR_MEASURE_ATTRIBUTE,pe as DIFFS_TAG_NAME,k as DiffHunksRenderer,x as EMPTY_LINE_ANNOTATIONS,N as EMPTY_RENDER_RANGE,de as EXTENSION_TO_FILE_FORMAT,Dt as FILENAME_HEADER_REGEX,A as FILE_CONTEXT_BLOB,Kt as File,b as FileDiff,q as FileRenderer,F as FileStream,ye as GIT_DIFF_FILE_BREAK_REGEX,ge as HEADER_FILENAME_SUFFIX_SLOT_ID,Se as HEADER_METADATA_SLOT_ID,Y as HEADER_PREFIX_SLOT_ID,t as HUNK_HEADER,bn as HighlighterDisposedError,He as INDEX_LINE_METADATA,gt as InteractionManager,zt as MERGE_CONFLICT_BASE_MARKER_REGEX,_t as MERGE_CONFLICT_END_MARKER_REGEX,jt as MERGE_CONFLICT_SEPARATOR_MARKER_REGEX,tt as MERGE_CONFLICT_START_MARKER_REGEX,Tn as RegisteredCustomLanguages,Rt as ResizeManager,Dn as ResolvedLanguages,Sn as ResolvingLanguages,ke as SPLIT_WITH_NEWLINES,H as SVGSpriteSheet,nt as ScrollSyncManager,xt as THEME_CSS_ATTRIBUTE,Ft as UNIFIED_DIFF_FILE_BREAK_REGEX,Ie as UNSAFE_CSS_ATTRIBUTE,rt as UnresolvedFile,oe as VIRTUALIZED_FILE_DIFF_LAYOUT_CHECKPOINT_INTERVAL,Ee as VirtualizedFile,fe as VirtualizedFileDiff,ot as Virtualizer,Et as areDiffLineAnnotationsEqual,Mt as areDiffRenderOptionsEqual,Ye as areDiffTargetsEqual,n as areFileRenderOptionsEqual,Qe as areFilesEqual,M as areHunkDataEqual,Ve as areLanguagesAttached,B as areLineAnnotationsEqual,Ht as areObjectsEqual,Fe as areOptionsEqual,at as arePrePropertiesEqual,X as areRenderRangesEqual,Pt as areSelectionsEqual,u as areThemesAttached,ut as areThemesEqual,r as areVirtualWindowSpecsEqual,We as areWorkerStatsEqual,Cn as attachResolvedLanguages,re as attachResolvedThemes,Re as canUseWASM,Be as cleanLastNewline,ie as cleanUpResolvedLanguages,te as cleanUpResolvedThemes,ze as clearRenderQueue,Tt as cloneFileDiffMetadata,mt as cloneHunks,Ce as createAnnotationElement,a as createAnnotationWrapperNode,qt as createCSSVariablesTheme,he as createDiffSpanDecoration,vt as createEmptyRowBuffer,be as createFileHeaderElement,ln as createGutterGap,fn as createGutterItem,ct as createGutterUtilityContentNode,et as createGutterUtilityElement,yn as createGutterWrapper,un as createHastElement,pt as createHighlighter,dn as createIconElement,Bt as createNoNewlineElement,Ot as createPreElement,j as createPreWrapperProperties,Vt as createRowNodes,Ue as createSeparator,Z as createSpanFromToken,Pe as createStyleElement,hn as createTextNodeElement,lt as createThemeStyleElement,G as createUnsafeCSSStyleNode,bt as createWindowFromScrollPosition,Ge as dequeueRender,dt as detachString,Nt as diffAcceptRejectHunk,Ze as disposeHighlighter,pn as findCodeElement,kn as formatCSSVariablePrefix,T as getCustomExtensionsMap,ce as getCustomExtensionsVersion,me as getFiletypeFromFileName,Je as getHighlighterIfLoaded,c as getHighlighterOptions,L as getHighlighterThemeStyles,cn as getHighlighterType,e as getHunkSeparatorSlotName,_e as getIconForType,an as getLineAnnotationName,ne as getLineAnnotationSource,yt as getLineEndingType,De as getLineNodes,Qt as getOrCreateCodeNode,U as getResolvedLanguages,wn as getResolvedOrResolveLanguage,l as getResolvedOrResolveTheme,ee as getResolvedThemes,Te as getSharedHighlighter,$e as getSingularPatch,Jt as getThemes,J as getTotalLineCountFromHunks,R as getUnresolvedDiffHunksRendererOptions,f as hasResolvedLanguages,Xt as hasResolvedThemes,_n as hastToHtml,Ke as hydratePartialDiff,$ as isDefaultRenderRange,Ct as isDiffAnnotation,ft as isDiffAnnotationCollection,Xe as isFileAnnotation,qe as isFileAnnotationCollection,Gt as isHighlighterLoaded,en as isHighlighterLoading,Me as isHighlighterNull,on as isWorkerContext,Ae as parseDiffFromFile,kt as parseLineType,St as parsePatchFiles,Yt as patchScrollbarGutterSize,At as pluckInteractionOptions,Oe as prefersReducedMotion,Zt as preloadHighlighter,Ne as prerenderHTMLIfNecessary,It as processFile,mn as processLine,Le as processPatch,xe as pushOrJoinSpan,wt as queueRender,d as recordLineAnnotationSource,$t as registerCustomCSSVariableTheme,h as registerCustomLanguage,je as registerCustomTheme,Ut as releaseStringDetachBuffer,ve as renderDiffWithHighlighter,O as renderFileWithHighlighter,gn as renderTokenLines,S as replaceCustomExtensions,v as resolveConflict,En as resolveLanguage,On as resolveLanguages,E as resolveRegion,Wt as resolveTheme,we as resolveThemes,P as setCustomExtension,ht as setLanguageOverride,tn as setPreNodeProperties,sn as tokenStyle,vn as tokensToHtml,Lt as trimPatchContext,ae as wrapCoreCSS,_ as wrapThemeCSS,m as wrapUnsafeCSS};