import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{y as t}from"./app-initial~artifact-tab-content.electron~app-main~appgen-settings-page~page~pull-request-r~i9veoilb-D02S5oqQ.js";function n(e,t,n){let r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}var r,i,a,o=e((()=>{t(),r=e=>{let{transform:t}=e;return{...t,y:0}},i=e=>{let{draggingNodeRect:t,transform:r,scrollableAncestorRects:i}=e,a=i[0];return!t||!a?r:n(r,t,a)},a=e=>{let{transform:t}=e;return{...t,x:0}}}));export{a as i,i as n,r,o as t};
//# sourceMappingURL=modifiers.esm-gnD0E5XJ.js.map