react-grab 0.0.60 → 0.0.61

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.
@@ -87,8 +87,8 @@ function createMemo(fn, value, options) {
87
87
  updateComputation(c3);
88
88
  return readSignal.bind(c3);
89
89
  }
90
- function isPromise(v2) {
91
- return v2 && typeof v2 === "object" && "then" in v2;
90
+ function isPromise(v3) {
91
+ return v3 && typeof v3 === "object" && "then" in v3;
92
92
  }
93
93
  function createResource(pSource, pFetcher, pOptions) {
94
94
  let source;
@@ -107,21 +107,21 @@ function createResource(pSource, pFetcher, pOptions) {
107
107
  const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
108
108
  equals: false
109
109
  }), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
110
- function loadEnd(p3, v2, error2, key) {
110
+ function loadEnd(p3, v3, error2, key) {
111
111
  if (pr === p3) {
112
112
  pr = null;
113
113
  key !== void 0 && (resolved = true);
114
- if ((p3 === initP || v2 === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
115
- value: v2
114
+ if ((p3 === initP || v3 === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
115
+ value: v3
116
116
  }));
117
117
  initP = NO_INIT;
118
- completeLoad(v2, error2);
118
+ completeLoad(v3, error2);
119
119
  }
120
- return v2;
120
+ return v3;
121
121
  }
122
- function completeLoad(v2, err) {
122
+ function completeLoad(v3, err) {
123
123
  runUpdates(() => {
124
- if (err === void 0) setValue(() => v2);
124
+ if (err === void 0) setValue(() => v3);
125
125
  setState(err !== void 0 ? "errored" : resolved ? "ready" : "unresolved");
126
126
  setError(err);
127
127
  for (const c3 of contexts.keys()) c3.decrement();
@@ -129,10 +129,10 @@ function createResource(pSource, pFetcher, pOptions) {
129
129
  }, false);
130
130
  }
131
131
  function read() {
132
- const c3 = SuspenseContext, v2 = value(), err = error();
132
+ const c3 = SuspenseContext, v3 = value(), err = error();
133
133
  if (err !== void 0 && !pr) throw err;
134
134
  if (Listener && !Listener.user && c3) ;
135
- return v2;
135
+ return v3;
136
136
  }
137
137
  function load(refetching = true) {
138
138
  if (refetching !== false && scheduled) return;
@@ -172,7 +172,7 @@ function createResource(pSource, pFetcher, pOptions) {
172
172
  setState(resolved ? "refreshing" : "pending");
173
173
  trigger();
174
174
  }, false);
175
- return p3.then((v2) => loadEnd(p3, v2, void 0, lookup), (e2) => loadEnd(p3, void 0, castError(e2), lookup));
175
+ return p3.then((v3) => loadEnd(p3, v3, void 0, lookup), (e2) => loadEnd(p3, void 0, castError(e2), lookup));
176
176
  }
177
177
  Object.defineProperties(read, {
178
178
  state: {
@@ -712,16 +712,16 @@ function style(node, value, prev) {
712
712
  typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
713
713
  prev || (prev = {});
714
714
  value || (value = {});
715
- let v2, s3;
715
+ let v3, s3;
716
716
  for (s3 in prev) {
717
717
  value[s3] == null && nodeStyle.removeProperty(s3);
718
718
  delete prev[s3];
719
719
  }
720
720
  for (s3 in value) {
721
- v2 = value[s3];
722
- if (v2 !== prev[s3]) {
723
- nodeStyle.setProperty(s3, v2);
724
- prev[s3] = v2;
721
+ v3 = value[s3];
722
+ if (v3 !== prev[s3]) {
723
+ nodeStyle.setProperty(s3, v3);
724
+ prev[s3] = v3;
725
725
  }
726
726
  }
727
727
  return prev;
@@ -808,9 +808,9 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
808
808
  current = cleanChildren(parent, current, marker);
809
809
  } else if (t2 === "function") {
810
810
  createRenderEffect(() => {
811
- let v2 = value();
812
- while (typeof v2 === "function") v2 = v2();
813
- current = insertExpression(parent, v2, current, marker);
811
+ let v3 = value();
812
+ while (typeof v3 === "function") v3 = v3();
813
+ current = insertExpression(parent, v3, current, marker);
814
814
  });
815
815
  return () => current;
816
816
  } else if (Array.isArray(value)) {
@@ -890,7 +890,7 @@ function cleanChildren(parent, current, marker, replacement) {
890
890
 
891
891
  // dist/styles.css
892
892
  var styles_default = `/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
893
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--radius-xs:.125rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-grab-pink:#b21c8e;--color-grab-purple:#d239c0;--color-label-tag-border:#730079}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-2147483645{z-index:2147483645}.z-2147483646{z-index:2147483646}.z-2147483647{z-index:2147483647}.z-\\[2147483645\\]{z-index:2147483645}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.-ml-\\[2px\\]{margin-left:-2px}.ml-1{margin-left:calc(var(--spacing)*1)}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.size-fit{width:fit-content;height:fit-content}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-\\[7px\\]{height:7px}.h-\\[9px\\]{height:9px}.h-\\[18px\\]{height:18px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-\\[7px\\]{width:7px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-crosshair{cursor:crosshair}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-\\[3px\\]{gap:3px}.gap-\\[5px\\]{gap:5px}.gap-px{gap:1px}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.rounded-\\[1\\.5px\\]{border-radius:1.5px}.rounded-\\[1px\\]{border-radius:1px}.rounded-full{border-radius:3.40282e38px}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-b-xs{border-bottom-right-radius:var(--radius-xs);border-bottom-left-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-grab-purple{border-color:var(--color-grab-purple)}.border-grab-purple\\/40{border-color:#d239c066}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/40{border-color:color-mix(in oklab,var(--color-grab-purple)40%,transparent)}}.border-grab-purple\\/50{border-color:#d239c080}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/50{border-color:color-mix(in oklab,var(--color-grab-purple)50%,transparent)}}.border-label-tag-border{border-color:var(--color-label-tag-border)}.border-white{border-color:var(--color-white)}.border-t-\\[\\#D9D9D9\\]{border-top-color:#d9d9d9}.bg-\\[\\#F7F7F7\\]{background-color:#f7f7f7}.bg-black{background-color:var(--color-black)}.bg-grab-pink{background-color:var(--color-grab-pink)}.bg-grab-purple\\/5{background-color:#d239c00d}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/5{background-color:color-mix(in oklab,var(--color-grab-purple)5%,transparent)}}.bg-grab-purple\\/8{background-color:#d239c014}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/8{background-color:color-mix(in oklab,var(--color-grab-purple)8%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-cover{background-size:cover}.bg-center{background-position:50%}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-\\[3px\\]{padding-block:3px}.py-\\[5px\\]{padding-block:5px}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing)*1)}.align-middle{vertical-align:middle}.font-\\[ui-monospace\\,\\'SFMono-Regular\\'\\,\\'SF_Mono\\'\\,\\'Menlo\\'\\,\\'Consolas\\'\\,\\'Liberation_Mono\\'\\,monospace\\]{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[12px\\]{font-size:12px}.leading-3\\.5{--tw-leading:calc(var(--spacing)*3.5);line-height:calc(var(--spacing)*3.5)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-\\[-0\\.04em\\]{--tw-tracking:-.04em;letter-spacing:-.04em}.tracking-\\[-0\\.08em\\]{--tw-tracking:-.08em;letter-spacing:-.08em}.whitespace-normal{white-space:normal}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#47004A\\]{color:#47004a}.text-\\[\\#767676\\]{color:#767676}.text-black{color:var(--color-black)}.text-label-tag-border{color:var(--color-label-tag-border)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-\\[0\\.99\\]{opacity:.99}.brightness-125{--tw-brightness:brightness(125%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.\\[filter\\:drop-shadow\\(0px_0px_4px_\\#51515180\\)\\]{filter:drop-shadow(0 0 4px #51515180)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\,height\\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-30{--tw-duration:30ms;transition-duration:30ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[transform\\,width\\,height\\]{will-change:transform,width,height}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,)var(--tw-contain-layout,)var(--tw-contain-paint,)var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.\\[font-synthesis\\:none\\]{font-synthesis:none}@media (hover:hover){.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:opacity-100:hover{opacity:1}}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.react-grab-shimmer{position:relative;overflow:hidden}.react-grab-shimmer:after{content:"";border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,#0000 0%,#fff6 50%,#0000 100%) 0 0/200% 100%;animation:1.5s ease-in-out infinite shimmer;position:absolute;inset:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}`;
893
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--radius-xs:.125rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-grab-pink:#b21c8e;--color-grab-purple:#d239c0;--color-label-tag-border:#730079;--color-label-muted:#767676}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-2147483645{z-index:2147483645}.z-2147483646{z-index:2147483646}.z-2147483647{z-index:2147483647}.z-\\[2147483645\\]{z-index:2147483645}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.-ml-\\[2px\\]{margin-left:-2px}.ml-1{margin-left:calc(var(--spacing)*1)}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.size-fit{width:fit-content;height:fit-content}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-\\[7px\\]{height:7px}.h-\\[9px\\]{height:9px}.h-\\[18px\\]{height:18px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-\\[7px\\]{width:7px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-crosshair{cursor:crosshair}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-\\[3px\\]{gap:3px}.gap-\\[5px\\]{gap:5px}.gap-px{gap:1px}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.rounded-\\[1\\.5px\\]{border-radius:1.5px}.rounded-\\[1px\\]{border-radius:1px}.rounded-full{border-radius:3.40282e38px}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-b-xs{border-bottom-right-radius:var(--radius-xs);border-bottom-left-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-grab-purple{border-color:var(--color-grab-purple)}.border-grab-purple\\/40{border-color:#d239c066}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/40{border-color:color-mix(in oklab,var(--color-grab-purple)40%,transparent)}}.border-grab-purple\\/50{border-color:#d239c080}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/50{border-color:color-mix(in oklab,var(--color-grab-purple)50%,transparent)}}.border-label-tag-border{border-color:var(--color-label-tag-border)}.border-white{border-color:var(--color-white)}.border-t-\\[\\#D9D9D9\\]{border-top-color:#d9d9d9}.bg-\\[\\#F7F7F7\\]{background-color:#f7f7f7}.bg-black{background-color:var(--color-black)}.bg-grab-pink{background-color:var(--color-grab-pink)}.bg-grab-purple\\/5{background-color:#d239c00d}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/5{background-color:color-mix(in oklab,var(--color-grab-purple)5%,transparent)}}.bg-grab-purple\\/8{background-color:#d239c014}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/8{background-color:color-mix(in oklab,var(--color-grab-purple)8%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-cover{background-size:cover}.bg-center{background-position:50%}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-\\[3px\\]{padding-block:3px}.py-\\[5px\\]{padding-block:5px}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing)*1)}.align-middle{vertical-align:middle}.font-\\[ui-monospace\\,\\'SFMono-Regular\\'\\,\\'SF_Mono\\'\\,\\'Menlo\\'\\,\\'Consolas\\'\\,\\'Liberation_Mono\\'\\,monospace\\]{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[12px\\]{font-size:12px}.leading-3\\.5{--tw-leading:calc(var(--spacing)*3.5);line-height:calc(var(--spacing)*3.5)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-\\[-0\\.04em\\]{--tw-tracking:-.04em;letter-spacing:-.04em}.tracking-\\[-0\\.08em\\]{--tw-tracking:-.08em;letter-spacing:-.08em}.whitespace-normal{white-space:normal}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#47004A\\]{color:#47004a}.text-black{color:var(--color-black)}.text-label-muted{color:var(--color-label-muted)}.text-label-tag-border{color:var(--color-label-tag-border)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-\\[0\\.99\\]{opacity:.99}.brightness-125{--tw-brightness:brightness(125%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter-\\[drop-shadow\\(0px_0px_4px_\\#51515180\\)\\]{filter:drop-shadow(0 0 4px #51515180)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\,height\\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-30{--tw-duration:30ms;transition-duration:30ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[transform\\,width\\,height\\]{will-change:transform,width,height}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,)var(--tw-contain-layout,)var(--tw-contain-paint,)var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.\\[font-synthesis\\:none\\]{font-synthesis:none}@media (hover:hover){.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:opacity-100:hover{opacity:1}}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.react-grab-shimmer{position:relative;overflow:hidden}.react-grab-shimmer:after{content:"";border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,#0000 0%,#fff6 50%,#0000 100%) 0 0/200% 100%;animation:1.5s ease-in-out infinite shimmer;position:absolute;inset:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}`;
894
894
 
895
895
  // src/utils/is-keyboard-event-triggered-by-input.ts
896
896
  var FORM_TAGS_AND_ROLES = [
@@ -1027,6 +1027,7 @@ var COPIED_LABEL_DURATION_MS = 1500;
1027
1027
  var SELECTION_CURSOR_SETTLE_DELAY_MS = 500;
1028
1028
  var BLUR_DEACTIVATION_THRESHOLD_MS = 500;
1029
1029
  var DRAG_THRESHOLD_PX = 2;
1030
+ var ELEMENT_DETECTION_THROTTLE_MS = 32;
1030
1031
  var AUTO_SCROLL_EDGE_THRESHOLD_PX = 25;
1031
1032
  var AUTO_SCROLL_SPEED_PX = 10;
1032
1033
  var Z_INDEX_LABEL = 2147483647;
@@ -3625,14 +3626,14 @@ var useAnimatedPosition = (options) => {
3625
3626
  const lerpFactor = options.lerpFactor ?? 0.3;
3626
3627
  const convergenceThreshold = options.convergenceThreshold ?? 0.5;
3627
3628
  const [x3, setX] = createSignal(options.x());
3628
- const [y2, setY] = createSignal(options.y());
3629
+ const [y3, setY] = createSignal(options.y());
3629
3630
  let targetX = options.x();
3630
3631
  let targetY = options.y();
3631
3632
  let animationFrameId = null;
3632
3633
  let hasBeenRenderedOnce = false;
3633
3634
  const animate = () => {
3634
3635
  const currentX = lerp(x3(), targetX, lerpFactor);
3635
- const currentY = lerp(y2(), targetY, lerpFactor);
3636
+ const currentY = lerp(y3(), targetY, lerpFactor);
3636
3637
  setX(currentX);
3637
3638
  setY(currentY);
3638
3639
  const hasConverged = Math.abs(currentX - targetX) < convergenceThreshold && Math.abs(currentY - targetY) < convergenceThreshold;
@@ -3663,7 +3664,7 @@ var useAnimatedPosition = (options) => {
3663
3664
  animationFrameId = null;
3664
3665
  }
3665
3666
  });
3666
- return { x: x3, y: y2 };
3667
+ return { x: x3, y: y3 };
3667
3668
  };
3668
3669
 
3669
3670
  // src/components/crosshair.tsx
@@ -3768,11 +3769,11 @@ var _tmpl$8 = /* @__PURE__ */ template(`<button class="contain-layout shrink-0 f
3768
3769
  var _tmpl$9 = /* @__PURE__ */ template(`<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px>`);
3769
3770
  var _tmpl$0 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-[1.5px] gap-[3px]"><div class="text-black text-[12px] leading-4 tracking-[-0.04em] font-sans font-medium w-auto h-fit whitespace-normal react-grab-shimmer">`);
3770
3771
  var _tmpl$1 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">`);
3771
- var _tmpl$10 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit"><span class="text-[#767676] text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">Press</span><div class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><div class="w-2.5 h-[9px] shrink-0 opacity-[0.99] bg-cover bg-center"style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)></div></div><span class="text-[#767676] text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">to edit`);
3772
+ var _tmpl$10 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit"><span class="text-label-muted text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">Press</span><div class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><div class="w-2.5 h-[9px] shrink-0 opacity-[0.99] bg-cover bg-center"style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)></div></div><span class="text-label-muted text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">to edit`);
3772
3773
  var _tmpl$11 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit px-1.5"></div><div class="grid w-full transition-[grid-template-rows] duration-30 ease-out"><div class="overflow-hidden min-h-0">`);
3773
3774
  var _tmpl$12 = /* @__PURE__ */ template(`<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0"placeholder="type to edit"rows=1 style=field-sizing:content;min-height:16px></textarea><button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)>`);
3774
3775
  var _tmpl$13 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-fit h-fit">`);
3775
- var _tmpl$14 = /* @__PURE__ */ template(`<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out [filter:drop-shadow(0px_0px_4px_#51515180)]"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white antialiased w-fit h-fit p-0">`);
3776
+ var _tmpl$14 = /* @__PURE__ */ template(`<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)]"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white antialiased w-fit h-fit p-0">`);
3776
3777
  var ARROW_HEIGHT = 8;
3777
3778
  var LABEL_GAP = 4;
3778
3779
  var IDLE_TIMEOUT_MS = 400;
@@ -4299,6 +4300,9 @@ var SelectionCursor = (props) => {
4299
4300
  get selectionBounds() {
4300
4301
  return props.elementBounds;
4301
4302
  },
4303
+ get mouseX() {
4304
+ return props.x;
4305
+ },
4302
4306
  visible: true,
4303
4307
  get onSubmit() {
4304
4308
  return props.onClick;
@@ -4490,6 +4494,9 @@ var ReactGrabRenderer = (props) => {
4490
4494
  get selectionBounds() {
4491
4495
  return instance.bounds;
4492
4496
  },
4497
+ get mouseX() {
4498
+ return instance.mouseX;
4499
+ },
4493
4500
  visible: true,
4494
4501
  get status() {
4495
4502
  return instance.status;
@@ -4530,8 +4537,8 @@ var ReactGrabRenderer = (props) => {
4530
4537
  })];
4531
4538
  };
4532
4539
 
4533
- // ../../node_modules/.pnpm/bippy@0.5.21_@types+react@19.2.2_react@19.2.0/node_modules/bippy/dist/rdt-hook-BE3UuUaz.js
4534
- var e = `0.5.21`;
4540
+ // ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/rdt-hook-7WClMTWh.js
4541
+ var e = `0.5.25`;
4535
4542
  var t = `bippy-${e}`;
4536
4543
  var n = Object.defineProperty;
4537
4544
  var r2 = Object.prototype.hasOwnProperty;
@@ -4618,10 +4625,7 @@ var _ = () => {
4618
4625
  }
4619
4626
  };
4620
4627
 
4621
- // ../../node_modules/.pnpm/bippy@0.5.21_@types+react@19.2.2_react@19.2.0/node_modules/bippy/dist/install-hook-only-_lLceJhv.js
4622
- _();
4623
-
4624
- // ../../node_modules/.pnpm/bippy@0.5.21_@types+react@19.2.2_react@19.2.0/node_modules/bippy/dist/core-_xno6DOO.js
4628
+ // ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/core-CoV0JPOT.js
4625
4629
  var a2 = 0;
4626
4630
  var o2 = 1;
4627
4631
  var c2 = 5;
@@ -4634,17 +4638,6 @@ var y = 26;
4634
4638
  var b = 27;
4635
4639
  var ne = 28;
4636
4640
  var re = 30;
4637
- var k = (e2) => {
4638
- switch (e2.tag) {
4639
- case c2:
4640
- case y:
4641
- case b:
4642
- return true;
4643
- default:
4644
- return typeof e2.type == `string`;
4645
- }
4646
- };
4647
- var me = (e2) => !e2 || typeof e2 != `object` ? false : `pendingProps` in e2 && !(`containerInfo` in e2);
4648
4641
  function N(e2, t2, n2 = false) {
4649
4642
  if (!e2) return null;
4650
4643
  let r3 = t2(e2);
@@ -4706,18 +4699,6 @@ var Ee = () => {
4706
4699
  let e2 = h();
4707
4700
  return !!e2._instrumentationIsActive || o() || l();
4708
4701
  };
4709
- var De = (e2) => {
4710
- let t2 = e2.alternate;
4711
- if (!t2) return e2;
4712
- if (t2.actualStartTime && e2.actualStartTime) return t2.actualStartTime > e2.actualStartTime ? t2 : e2;
4713
- for (let t3 of $) {
4714
- let n2 = N(t3.current, (t4) => {
4715
- if (t4 === e2) return true;
4716
- });
4717
- if (n2) return n2;
4718
- }
4719
- return e2;
4720
- };
4721
4702
  var Pe = (e2) => {
4722
4703
  let n2 = h();
4723
4704
  for (let t2 of n2.renderers.values()) try {
@@ -4731,243 +4712,79 @@ var Pe = (e2) => {
4731
4712
  }
4732
4713
  return null;
4733
4714
  };
4734
- var $ = /* @__PURE__ */ new Set();
4735
4715
 
4736
- // ../../node_modules/.pnpm/bippy@0.5.21_@types+react@19.2.2_react@19.2.0/node_modules/bippy/dist/source.js
4737
- var b2 = Object.create;
4738
- var x2 = Object.defineProperty;
4739
- var S2 = Object.getOwnPropertyDescriptor;
4740
- var ee2 = Object.getOwnPropertyNames;
4741
- var te2 = Object.getPrototypeOf;
4742
- var ne2 = Object.prototype.hasOwnProperty;
4743
- var re2 = (e2, t2) => () => (t2 || e2((t2 = { exports: {} }).exports, t2), t2.exports);
4744
- var ie2 = (e2, t2, n2, r3) => {
4745
- if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 = ee2(t2), a3 = 0, o3 = i2.length, s3; a3 < o3; a3++) s3 = i2[a3], !ne2.call(e2, s3) && s3 !== n2 && x2(e2, s3, { get: ((e3) => t2[e3]).bind(null, s3), enumerable: !(r3 = S2(t2, s3)) || r3.enumerable });
4716
+ // ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/source.js
4717
+ var g2 = Object.create;
4718
+ var _2 = Object.defineProperty;
4719
+ var v = Object.getOwnPropertyDescriptor;
4720
+ var y2 = Object.getOwnPropertyNames;
4721
+ var b2 = Object.getPrototypeOf;
4722
+ var x = Object.prototype.hasOwnProperty;
4723
+ var S = (e2, t2) => () => (t2 || e2((t2 = { exports: {} }).exports, t2), t2.exports);
4724
+ var ee2 = (e2, t2, n2, r3) => {
4725
+ if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 = y2(t2), a3 = 0, o3 = i2.length, s3; a3 < o3; a3++) s3 = i2[a3], !x.call(e2, s3) && s3 !== n2 && _2(e2, s3, { get: ((e3) => t2[e3]).bind(null, s3), enumerable: !(r3 = v(t2, s3)) || r3.enumerable });
4746
4726
  return e2;
4747
4727
  };
4748
- var ae2 = (e2, t2, n2) => (n2 = e2 == null ? {} : b2(te2(e2)), ie2(x2(n2, `default`, { value: e2, enumerable: true }) , e2));
4749
- var oe2 = () => {
4750
- let n2 = h();
4751
- for (let t2 of [...Array.from(d), ...Array.from(n2.renderers.values())]) {
4752
- let e2 = t2.currentDispatcherRef;
4753
- if (e2 && typeof e2 == `object`) return `H` in e2 ? e2.H : e2.current;
4754
- }
4755
- return null;
4756
- };
4757
- var C2 = (t2) => {
4758
- for (let n2 of d) {
4759
- let e2 = n2.currentDispatcherRef;
4760
- e2 && typeof e2 == `object` && (`H` in e2 ? e2.H = t2 : e2.current = t2);
4761
- }
4762
- };
4763
- var w2 = (e2) => `
4764
- in ${e2}`;
4765
- var T2 = (e2, t2) => {
4766
- let n2 = w2(e2);
4767
- return t2 && (n2 += ` (at ${t2})`), n2;
4768
- };
4769
- var E = false;
4728
+ var C = (e2, t2, n2) => (n2 = e2 == null ? {} : g2(b2(e2)), ee2(_2(n2, `default`, { value: e2, enumerable: true }) , e2));
4729
+ var w = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
4730
+ var te2 = [`rsc://`, `file:///`, `webpack://`, `webpack-internal://`, `node:`, `turbopack://`, `metro://`, `/app-pages-browser/`];
4731
+ var T = `about://React/`;
4732
+ var ne2 = [`<anonymous>`, `eval`, ``];
4733
+ var re2 = /\.(jsx|tsx|ts|js)$/;
4734
+ var ie2 = /(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i;
4735
+ var ae2 = /^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/;
4736
+ var E = `(at Server)`;
4737
+ var oe2 = /(^|@)\S+:\d+/;
4738
+ var se2 = /^\s*at .*(\S+:\d+|\(native\))/m;
4739
+ var ce2 = /^(eval@)?(\[native code\])?$/;
4770
4740
  var D = (e2, t2) => {
4771
- if (!e2 || E) return ``;
4772
- let n2 = Error.prepareStackTrace;
4773
- Error.prepareStackTrace = void 0, E = true;
4774
- let r3 = oe2();
4775
- C2(null);
4776
- let i2 = console.error, a3 = console.warn;
4777
- console.error = () => {
4778
- }, console.warn = () => {
4779
- };
4780
- try {
4781
- let n3 = { DetermineComponentFrameRoot() {
4782
- let n4;
4783
- try {
4784
- if (t2) {
4785
- let t3 = function() {
4786
- throw Error();
4787
- };
4788
- if (Object.defineProperty(t3.prototype, `props`, { set: function() {
4789
- throw Error();
4790
- } }), typeof Reflect == `object` && Reflect.construct) {
4791
- try {
4792
- Reflect.construct(t3, []);
4793
- } catch (e3) {
4794
- n4 = e3;
4795
- }
4796
- Reflect.construct(e2, [], t3);
4797
- } else {
4798
- try {
4799
- t3.call();
4800
- } catch (e3) {
4801
- n4 = e3;
4802
- }
4803
- e2.call(t3.prototype);
4804
- }
4805
- } else {
4806
- try {
4807
- throw Error();
4808
- } catch (e3) {
4809
- n4 = e3;
4810
- }
4811
- let t3 = e2();
4812
- t3 && typeof t3.catch == `function` && t3.catch(() => {
4813
- });
4814
- }
4815
- } catch (e3) {
4816
- if (e3 instanceof Error && n4 instanceof Error && typeof e3.stack == `string`) return [e3.stack, n4.stack];
4817
- }
4818
- return [null, null];
4819
- } };
4820
- n3.DetermineComponentFrameRoot.displayName = `DetermineComponentFrameRoot`;
4821
- let r4 = Object.getOwnPropertyDescriptor(n3.DetermineComponentFrameRoot, `name`);
4822
- r4?.configurable && Object.defineProperty(n3.DetermineComponentFrameRoot, `name`, { value: `DetermineComponentFrameRoot` });
4823
- let [i3, a4] = n3.DetermineComponentFrameRoot();
4824
- if (i3 && a4) {
4825
- let t3 = i3.split(`
4826
- `), n4 = a4.split(`
4827
- `), r5 = 0, o4 = 0;
4828
- for (; r5 < t3.length && !t3[r5].includes(`DetermineComponentFrameRoot`); ) r5++;
4829
- for (; o4 < n4.length && !n4[o4].includes(`DetermineComponentFrameRoot`); ) o4++;
4830
- if (r5 === t3.length || o4 === n4.length) for (r5 = t3.length - 1, o4 = n4.length - 1; r5 >= 1 && o4 >= 0 && t3[r5] !== n4[o4]; ) o4--;
4831
- for (; r5 >= 1 && o4 >= 0; r5--, o4--) if (t3[r5] !== n4[o4]) {
4832
- if (r5 !== 1 || o4 !== 1) do
4833
- if (r5--, o4--, o4 < 0 || t3[r5] !== n4[o4]) {
4834
- let n5 = `
4835
- ${t3[r5].replace(` at new `, ` at `)}`, i4 = Te(e2);
4836
- return i4 && n5.includes(`<anonymous>`) && (n5 = n5.replace(`<anonymous>`, i4)), n5;
4837
- }
4838
- while (r5 >= 1 && o4 >= 0);
4839
- break;
4840
- }
4841
- }
4842
- } finally {
4843
- E = false, Error.prepareStackTrace = n2, C2(r3), console.error = i2, console.warn = a3;
4844
- }
4845
- let o3 = e2 ? Te(e2) : ``, s3 = o3 ? w2(o3) : ``;
4846
- return s3;
4847
- };
4848
- var se2 = (e2, t2) => {
4849
- let m3 = e2.tag, h3 = ``;
4850
- switch (m3) {
4851
- case ne:
4852
- h3 = w2(`Activity`);
4853
- break;
4854
- case o2:
4855
- h3 = D(e2.type, true);
4856
- break;
4857
- case f2:
4858
- h3 = D(e2.type.render, false);
4859
- break;
4860
- case a2:
4861
- case h2:
4862
- h3 = D(e2.type, false);
4863
- break;
4864
- case c2:
4865
- case y:
4866
- case b:
4867
- h3 = w2(e2.type);
4868
- break;
4869
- case ee:
4870
- h3 = w2(`Lazy`);
4871
- break;
4872
- case p2:
4873
- h3 = e2.child !== t2 && t2 !== null ? w2(`Suspense Fallback`) : w2(`Suspense`);
4874
- break;
4875
- case te:
4876
- h3 = w2(`SuspenseList`);
4877
- break;
4878
- case re:
4879
- h3 = w2(`ViewTransition`);
4880
- break;
4881
- default:
4882
- return ``;
4883
- }
4884
- return h3;
4885
- };
4886
- var ce2 = (e2) => {
4887
- try {
4888
- let t2 = ``, n2 = e2, r3 = null;
4889
- do {
4890
- t2 += se2(n2, r3);
4891
- let e3 = n2._debugInfo;
4892
- if (e3 && Array.isArray(e3)) for (let n3 = e3.length - 1; n3 >= 0; n3--) {
4893
- let r4 = e3[n3];
4894
- typeof r4.name == `string` && (t2 += T2(r4.name, r4.env));
4895
- }
4896
- r3 = n2, n2 = n2.return;
4897
- } while (n2);
4898
- return t2;
4899
- } catch (e3) {
4900
- return e3 instanceof Error ? `
4901
- Error generating stack: ${e3.message}
4902
- ${e3.stack}` : ``;
4903
- }
4904
- };
4905
- var le2 = (e2) => {
4906
- let t2 = Error.prepareStackTrace;
4907
- Error.prepareStackTrace = void 0;
4908
- let n2 = e2;
4909
- if (!n2) return ``;
4910
- Error.prepareStackTrace = t2, n2.startsWith(`Error: react-stack-top-frame
4911
- `) && (n2 = n2.slice(29));
4912
- let r3 = n2.indexOf(`
4913
- `);
4914
- if (r3 !== -1 && (n2 = n2.slice(r3 + 1)), r3 = Math.max(n2.indexOf(`react_stack_bottom_frame`), n2.indexOf(`react-stack-bottom-frame`)), r3 !== -1 && (r3 = n2.lastIndexOf(`
4915
- `, r3)), r3 !== -1) n2 = n2.slice(0, r3);
4916
- else return ``;
4917
- return n2;
4918
- };
4919
- var O2 = /(^|@)\S+:\d+/;
4920
- var k2 = /^\s*at .*(\S+:\d+|\(native\))/m;
4921
- var ue2 = /^(eval@)?(\[native code\])?$/;
4922
- var j2 = (e2, t2) => {
4923
- if (t2?.includeInElement !== false) {
4741
+ {
4924
4742
  let n2 = e2.split(`
4925
4743
  `), r3 = [];
4926
4744
  for (let e3 of n2) if (/^\s*at\s+/.test(e3)) {
4927
- let t3 = P2(e3, void 0)[0];
4745
+ let t3 = A(e3, void 0)[0];
4928
4746
  t3 && r3.push(t3);
4929
4747
  } else if (/^\s*in\s+/.test(e3)) {
4930
4748
  let t3 = e3.replace(/^\s*in\s+/, ``).replace(/\s*\(at .*\)$/, ``);
4931
- r3.push({ function: t3, raw: e3 });
4932
- } else if (e3.match(O2)) {
4933
- let t3 = F2(e3, void 0)[0];
4749
+ r3.push({ functionName: t3, source: e3 });
4750
+ } else if (e3.match(oe2)) {
4751
+ let t3 = j(e3, void 0)[0];
4934
4752
  t3 && r3.push(t3);
4935
4753
  }
4936
- return N2(r3, t2);
4754
+ return k(r3, t2);
4937
4755
  }
4938
- return e2.match(k2) ? P2(e2, t2) : F2(e2, t2);
4939
4756
  };
4940
- var M2 = (e2) => {
4757
+ var O2 = (e2) => {
4941
4758
  if (!e2.includes(`:`)) return [e2, void 0, void 0];
4942
4759
  let t2 = /(.+?)(?::(\d+))?(?::(\d+))?$/, n2 = t2.exec(e2.replace(/[()]/g, ``));
4943
4760
  return [n2[1], n2[2] || void 0, n2[3] || void 0];
4944
4761
  };
4945
- var N2 = (e2, t2) => t2 && t2.slice != null ? Array.isArray(t2.slice) ? e2.slice(t2.slice[0], t2.slice[1]) : e2.slice(0, t2.slice) : e2;
4946
- var P2 = (e2, t2) => {
4947
- let n2 = N2(e2.split(`
4948
- `).filter((e3) => !!e3.match(k2)), t2);
4762
+ var k = (e2, t2) => t2 && t2.slice != null ? Array.isArray(t2.slice) ? e2.slice(t2.slice[0], t2.slice[1]) : e2.slice(0, t2.slice) : e2;
4763
+ var A = (e2, t2) => {
4764
+ let n2 = k(e2.split(`
4765
+ `).filter((e3) => !!e3.match(se2)), t2);
4949
4766
  return n2.map((e3) => {
4950
4767
  let t3 = e3;
4951
4768
  t3.includes(`(eval `) && (t3 = t3.replace(/eval code/g, `eval`).replace(/(\(eval at [^()]*)|(,.*$)/g, ``));
4952
4769
  let n3 = t3.replace(/^\s+/, ``).replace(/\(eval code/g, `(`).replace(/^.*?\s+/, ``), r3 = n3.match(/ (\(.+\)$)/);
4953
4770
  n3 = r3 ? n3.replace(r3[0], ``) : n3;
4954
- let i2 = M2(r3 ? r3[1] : n3), a3 = r3 && n3 || void 0, o3 = [`eval`, `<anonymous>`].includes(i2[0]) ? void 0 : i2[0];
4955
- return { function: a3, file: o3, line: i2[1] ? +i2[1] : void 0, col: i2[2] ? +i2[2] : void 0, raw: t3 };
4771
+ let i2 = O2(r3 ? r3[1] : n3), a3 = r3 && n3 || void 0, o3 = [`eval`, `<anonymous>`].includes(i2[0]) ? void 0 : i2[0];
4772
+ return { functionName: a3, fileName: o3, lineNumber: i2[1] ? +i2[1] : void 0, columnNumber: i2[2] ? +i2[2] : void 0, source: t3 };
4956
4773
  });
4957
4774
  };
4958
- var F2 = (e2, t2) => {
4959
- let n2 = N2(e2.split(`
4960
- `).filter((e3) => !e3.match(ue2)), t2);
4775
+ var j = (e2, t2) => {
4776
+ let n2 = k(e2.split(`
4777
+ `).filter((e3) => !e3.match(ce2)), t2);
4961
4778
  return n2.map((e3) => {
4962
4779
  let t3 = e3;
4963
- if (t3.includes(` > eval`) && (t3 = t3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, `:$1`)), !t3.includes(`@`) && !t3.includes(`:`)) return { function: t3 };
4780
+ if (t3.includes(` > eval`) && (t3 = t3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, `:$1`)), !t3.includes(`@`) && !t3.includes(`:`)) return { functionName: t3 };
4964
4781
  {
4965
- let e4 = /(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/, n3 = t3.match(e4), r3 = n3 && n3[1] ? n3[1] : void 0, i2 = M2(t3.replace(e4, ``));
4966
- return { function: r3, file: i2[0], line: i2[1] ? +i2[1] : void 0, col: i2[2] ? +i2[2] : void 0, raw: t3 };
4782
+ let e4 = /(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/, n3 = t3.match(e4), r3 = n3 && n3[1] ? n3[1] : void 0, i2 = O2(t3.replace(e4, ``));
4783
+ return { functionName: r3, fileName: i2[0], lineNumber: i2[1] ? +i2[1] : void 0, columnNumber: i2[2] ? +i2[2] : void 0, source: t3 };
4967
4784
  }
4968
4785
  });
4969
4786
  };
4970
- var me2 = re2((exports, t2) => {
4787
+ var pe = S((exports, t2) => {
4971
4788
  (function(n2, r3) {
4972
4789
  typeof exports == `object` && t2 !== void 0 ? r3(exports) : typeof define == `function` && define.amd ? define([`exports`], r3) : (n2 = typeof globalThis < `u` ? globalThis : n2 || self, r3(n2.sourcemapCodec = {}));
4973
4790
  })(void 0, function(e2) {
@@ -5058,10 +4875,10 @@ var me2 = re2((exports, t2) => {
5058
4875
  }
5059
4876
  function h3(e3) {
5060
4877
  let t4 = new d3();
5061
- for (let n3 = 0; n3 < e3.length; ) n3 = g3(e3, n3, t4, [0]);
4878
+ for (let n3 = 0; n3 < e3.length; ) n3 = g4(e3, n3, t4, [0]);
5062
4879
  return t4.flush();
5063
4880
  }
5064
- function g3(e3, n3, r4, i3) {
4881
+ function g4(e3, n3, r4, i3) {
5065
4882
  let a4 = e3[n3], { 0: o4, 1: c4, 2: l4, 3: u4, 4: d4, vars: f4 } = a4;
5066
4883
  n3 > 0 && r4.write(t3), i3[0] = s3(r4, o4, i3[0]), s3(r4, c4, 0), s3(r4, d4, 0);
5067
4884
  let p4 = a4.length === 6 ? 1 : 0;
@@ -5070,12 +4887,12 @@ var me2 = re2((exports, t2) => {
5070
4887
  for (n3++; n3 < e3.length; ) {
5071
4888
  let t4 = e3[n3], { 0: a5, 1: o5 } = t4;
5072
4889
  if (a5 > l4 || a5 === l4 && o5 >= u4) break;
5073
- n3 = g3(e3, n3, r4, i3);
4890
+ n3 = g4(e3, n3, r4, i3);
5074
4891
  }
5075
4892
  return r4.write(t3), i3[0] = s3(r4, l4, i3[0]), s3(r4, u4, 0), n3;
5076
4893
  }
5077
- function _3(e3) {
5078
- let { length: t4 } = e3, n3 = new f3(e3), r4 = [], i3 = [], a4 = 0, s4 = 0, l4 = 0, u4 = 0, d4 = 0, m4 = 0, h4 = 0, g4 = 0;
4894
+ function _4(e3) {
4895
+ let { length: t4 } = e3, n3 = new f3(e3), r4 = [], i3 = [], a4 = 0, s4 = 0, l4 = 0, u4 = 0, d4 = 0, m4 = 0, h4 = 0, g5 = 0;
5079
4896
  do {
5080
4897
  let e4 = n3.indexOf(`;`), t5 = 0;
5081
4898
  for (; n3.pos < e4; n3.pos++) {
@@ -5084,12 +4901,12 @@ var me2 = re2((exports, t2) => {
5084
4901
  e5[2] = a4, e5[3] = t5;
5085
4902
  continue;
5086
4903
  }
5087
- let f4 = o3(n3, 0), _4 = f4 & 1, v3 = f4 & 2, y3 = f4 & 4, b4 = null, x4 = p3, S4;
5088
- if (_4) {
4904
+ let f4 = o3(n3, 0), _5 = f4 & 1, v4 = f4 & 2, y4 = f4 & 4, b4 = null, x4 = p3, S4;
4905
+ if (_5) {
5089
4906
  let e5 = o3(n3, s4);
5090
4907
  l4 = o3(n3, s4 === e5 ? l4 : 0), s4 = e5, S4 = [a4, t5, 0, 0, e5, l4];
5091
4908
  } else S4 = [a4, t5, 0, 0];
5092
- if (S4.isScope = !!y3, v3) {
4909
+ if (S4.isScope = !!y4, v4) {
5093
4910
  let e5 = u4, t6 = d4;
5094
4911
  u4 = o3(n3, u4);
5095
4912
  let r5 = e5 === u4;
@@ -5098,15 +4915,15 @@ var me2 = re2((exports, t2) => {
5098
4915
  if (S4.callsite = b4, c3(n3, e4)) {
5099
4916
  x4 = [];
5100
4917
  do {
5101
- h4 = a4, g4 = t5;
4918
+ h4 = a4, g5 = t5;
5102
4919
  let e5 = o3(n3, 0), r5;
5103
4920
  if (e5 < -1) {
5104
4921
  r5 = [[o3(n3, 0)]];
5105
4922
  for (let t6 = -1; t6 > e5; t6--) {
5106
4923
  let e6 = h4;
5107
- h4 = o3(n3, h4), g4 = o3(n3, h4 === e6 ? g4 : 0);
4924
+ h4 = o3(n3, h4), g5 = o3(n3, h4 === e6 ? g5 : 0);
5108
4925
  let t7 = o3(n3, 0);
5109
- r5.push([t7, h4, g4]);
4926
+ r5.push([t7, h4, g5]);
5110
4927
  }
5111
4928
  } else r5 = [[e5]];
5112
4929
  x4.push(r5);
@@ -5118,13 +4935,13 @@ var me2 = re2((exports, t2) => {
5118
4935
  } while (n3.pos < t4);
5119
4936
  return r4;
5120
4937
  }
5121
- function v2(e3) {
4938
+ function v3(e3) {
5122
4939
  if (e3.length === 0) return ``;
5123
4940
  let t4 = new d3();
5124
- for (let n3 = 0; n3 < e3.length; ) n3 = y2(e3, n3, t4, [0, 0, 0, 0, 0, 0, 0]);
4941
+ for (let n3 = 0; n3 < e3.length; ) n3 = y3(e3, n3, t4, [0, 0, 0, 0, 0, 0, 0]);
5125
4942
  return t4.flush();
5126
4943
  }
5127
- function y2(e3, n3, r4, i3) {
4944
+ function y3(e3, n3, r4, i3) {
5128
4945
  let a4 = e3[n3], { 0: o4, 1: c4, 2: l4, 3: u4, isScope: d4, callsite: f4, bindings: p4 } = a4;
5129
4946
  i3[0] < o4 ? (b3(r4, i3[0], o4), i3[0] = o4, i3[1] = 0) : n3 > 0 && r4.write(t3), i3[1] = s3(r4, a4[1], i3[1]);
5130
4947
  let m4 = (a4.length === 6 ? 1 : 0) | (f4 ? 2 : 0) | (d4 ? 4 : 0);
@@ -5149,7 +4966,7 @@ var me2 = re2((exports, t2) => {
5149
4966
  for (n3++; n3 < e3.length; ) {
5150
4967
  let t4 = e3[n3], { 0: a5, 1: o5 } = t4;
5151
4968
  if (a5 > l4 || a5 === l4 && o5 >= u4) break;
5152
- n3 = y2(e3, n3, r4, i3);
4969
+ n3 = y3(e3, n3, r4, i3);
5153
4970
  }
5154
4971
  return i3[0] < l4 ? (b3(r4, i3[0], l4), i3[0] = l4, i3[1] = 0) : r4.write(t3), i3[1] = s3(r4, u4, i3[1]), n3;
5155
4972
  }
@@ -5176,7 +4993,7 @@ var me2 = re2((exports, t2) => {
5176
4993
  function ee3(e3, t4) {
5177
4994
  return e3[0] - t4[0];
5178
4995
  }
5179
- function te3(e3) {
4996
+ function C3(e3) {
5180
4997
  let r4 = new d3(), i3 = 0, a4 = 0, o4 = 0, c4 = 0;
5181
4998
  for (let l4 = 0; l4 < e3.length; l4++) {
5182
4999
  let u4 = e3[l4];
@@ -5189,18 +5006,18 @@ var me2 = re2((exports, t2) => {
5189
5006
  }
5190
5007
  return r4.flush();
5191
5008
  }
5192
- e2.decode = x3, e2.decodeGeneratedRanges = _3, e2.decodeOriginalScopes = m3, e2.encode = te3, e2.encodeGeneratedRanges = v2, e2.encodeOriginalScopes = h3, Object.defineProperty(e2, `__esModule`, { value: true });
5009
+ e2.decode = x3, e2.decodeGeneratedRanges = _4, e2.decodeOriginalScopes = m3, e2.encode = C3, e2.encodeGeneratedRanges = v3, e2.encodeOriginalScopes = h3, Object.defineProperty(e2, `__esModule`, { value: true });
5193
5010
  });
5194
5011
  });
5195
- var z2 = ae2(me2());
5196
- var B2 = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
5197
- var he2 = /^data:application\/json[^,]+base64,/;
5198
- var ge2 = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/;
5199
- var V2 = typeof WeakRef < `u`;
5200
- var H2 = /* @__PURE__ */ new Map();
5201
- var U2 = /* @__PURE__ */ new Map();
5202
- var _e2 = (e2) => V2 && e2 instanceof WeakRef;
5203
- var W2 = (e2, t2, n2, r3) => {
5012
+ var F2 = C(pe());
5013
+ var I2 = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
5014
+ var me = /^data:application\/json[^,]+base64,/;
5015
+ var he = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/;
5016
+ var L = typeof WeakRef < `u`;
5017
+ var R = /* @__PURE__ */ new Map();
5018
+ var z = /* @__PURE__ */ new Map();
5019
+ var ge = (e2) => L && e2 instanceof WeakRef;
5020
+ var B = (e2, t2, n2, r3) => {
5204
5021
  if (n2 < 0 || n2 >= e2.length) return null;
5205
5022
  let i2 = e2[n2];
5206
5023
  if (!i2 || i2.length === 0) return null;
@@ -5213,49 +5030,49 @@ var W2 = (e2, t2, n2, r3) => {
5213
5030
  let l3 = t2[o3];
5214
5031
  return l3 ? { columnNumber: c3, fileName: l3, lineNumber: s3 + 1 } : null;
5215
5032
  };
5216
- var G2 = (e2, t2, n2) => {
5033
+ var V = (e2, t2, n2) => {
5217
5034
  if (e2.sections) {
5218
5035
  let r3 = null;
5219
5036
  for (let i3 of e2.sections) if (t2 > i3.offset.line || t2 === i3.offset.line && n2 >= i3.offset.column) r3 = i3;
5220
5037
  else break;
5221
5038
  if (!r3) return null;
5222
5039
  let i2 = t2 - r3.offset.line, a3 = t2 === r3.offset.line ? n2 - r3.offset.column : n2;
5223
- return W2(r3.map.mappings, r3.map.sources, i2, a3);
5040
+ return B(r3.map.mappings, r3.map.sources, i2, a3);
5224
5041
  }
5225
- return W2(e2.mappings, e2.sources, t2 - 1, n2);
5042
+ return B(e2.mappings, e2.sources, t2 - 1, n2);
5226
5043
  };
5227
- var ve2 = (e2, t2) => {
5044
+ var _e = (e2, t2) => {
5228
5045
  let n2 = t2.split(`
5229
5046
  `), r3;
5230
5047
  for (let e3 = n2.length - 1; e3 >= 0 && !r3; e3--) {
5231
- let t3 = n2[e3].match(ge2);
5048
+ let t3 = n2[e3].match(he);
5232
5049
  t3 && (r3 = t3[1] || t3[2]);
5233
5050
  }
5234
5051
  if (!r3) return null;
5235
- let i2 = B2.test(r3);
5236
- if (!(he2.test(r3) || i2 || r3.startsWith(`/`))) {
5052
+ let i2 = I2.test(r3);
5053
+ if (!(me.test(r3) || i2 || r3.startsWith(`/`))) {
5237
5054
  let t3 = e2.split(`/`);
5238
5055
  t3[t3.length - 1] = r3, r3 = t3.join(`/`);
5239
5056
  }
5240
5057
  return r3;
5241
5058
  };
5242
- var ye2 = (e2) => ({ file: e2.file, mappings: (0, z2.decode)(e2.mappings), names: e2.names, sourceRoot: e2.sourceRoot, sources: e2.sources, sourcesContent: e2.sourcesContent, version: 3 });
5243
- var be2 = (e2) => {
5244
- let t2 = e2.sections.map(({ map: e3, offset: t3 }) => ({ map: { ...e3, mappings: (0, z2.decode)(e3.mappings) }, offset: t3 })), n2 = /* @__PURE__ */ new Set();
5059
+ var ve = (e2) => ({ file: e2.file, mappings: (0, F2.decode)(e2.mappings), names: e2.names, sourceRoot: e2.sourceRoot, sources: e2.sources, sourcesContent: e2.sourcesContent, version: 3 });
5060
+ var ye = (e2) => {
5061
+ let t2 = e2.sections.map(({ map: e3, offset: t3 }) => ({ map: { ...e3, mappings: (0, F2.decode)(e3.mappings) }, offset: t3 })), n2 = /* @__PURE__ */ new Set();
5245
5062
  for (let e3 of t2) for (let t3 of e3.map.sources) n2.add(t3);
5246
5063
  return { file: e2.file, mappings: [], names: [], sections: t2, sourceRoot: void 0, sources: Array.from(n2), sourcesContent: void 0, version: 3 };
5247
5064
  };
5248
- var K = (e2) => {
5065
+ var H = (e2) => {
5249
5066
  if (!e2) return false;
5250
5067
  let t2 = e2.trim();
5251
5068
  if (!t2) return false;
5252
- let n2 = t2.match(B2);
5069
+ let n2 = t2.match(I2);
5253
5070
  if (!n2) return true;
5254
5071
  let r3 = n2[0].toLowerCase();
5255
5072
  return r3 === `http:` || r3 === `https:`;
5256
5073
  };
5257
- var q = async (e2, t2 = fetch) => {
5258
- if (!K(e2)) return null;
5074
+ var U = async (e2, t2 = fetch) => {
5075
+ if (!H(e2)) return null;
5259
5076
  let n2;
5260
5077
  try {
5261
5078
  let r4 = await t2(e2);
@@ -5264,105 +5081,284 @@ var q = async (e2, t2 = fetch) => {
5264
5081
  return null;
5265
5082
  }
5266
5083
  if (!n2) return null;
5267
- let r3 = ve2(e2, n2);
5268
- if (!r3 || !K(r3)) return null;
5084
+ let r3 = _e(e2, n2);
5085
+ if (!r3 || !H(r3)) return null;
5269
5086
  try {
5270
5087
  let e3 = await t2(r3), n3 = await e3.json();
5271
- return `sections` in n3 ? be2(n3) : ye2(n3);
5088
+ return `sections` in n3 ? ye(n3) : ve(n3);
5272
5089
  } catch {
5273
5090
  return null;
5274
5091
  }
5275
5092
  };
5276
- var J = async (e2, t2 = true, n2) => {
5277
- if (t2 && H2.has(e2)) {
5278
- let t3 = H2.get(e2);
5093
+ var W = async (e2, t2 = true, n2) => {
5094
+ if (t2 && R.has(e2)) {
5095
+ let t3 = R.get(e2);
5279
5096
  if (t3 == null) return null;
5280
- if (_e2(t3)) {
5097
+ if (ge(t3)) {
5281
5098
  let n3 = t3.deref();
5282
5099
  if (n3) return n3;
5283
- H2.delete(e2);
5100
+ R.delete(e2);
5284
5101
  } else return t3;
5285
5102
  }
5286
- if (t2 && U2.has(e2)) return U2.get(e2);
5287
- let r3 = q(e2, n2);
5288
- t2 && U2.set(e2, r3);
5103
+ if (t2 && z.has(e2)) return z.get(e2);
5104
+ let r3 = U(e2, n2);
5105
+ t2 && z.set(e2, r3);
5289
5106
  let i2 = await r3;
5290
- return t2 && U2.delete(e2), t2 && (i2 === null ? H2.set(e2, null) : H2.set(e2, V2 ? new WeakRef(i2) : i2)), i2;
5107
+ return t2 && z.delete(e2), t2 && (i2 === null ? R.set(e2, null) : R.set(e2, L ? new WeakRef(i2) : i2)), i2;
5291
5108
  };
5292
- var xe2 = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
5293
- var Se2 = [`rsc://`, `file:///`, `webpack://`, `webpack-internal://`, `node:`, `turbopack://`, `metro://`, `/app-pages-browser/`];
5294
- var Ce2 = `about://React/`;
5295
- var we2 = [`<anonymous>`, `eval`, ``];
5296
- var Te2 = /\.(jsx|tsx|ts|js)$/;
5297
- var Ee2 = /(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i;
5298
- var De2 = /^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/;
5299
- var Y = (e2) => e2?.fileName != null;
5300
- var Oe = (e2) => e2._debugStack instanceof Error && typeof e2._debugStack?.stack == `string`;
5301
- var ke2 = (e2) => {
5302
- let t2 = e2._debugSource;
5303
- return t2 ? typeof t2 == `object` && !!t2 && `fileName` in t2 && typeof t2.fileName == `string` && `lineNumber` in t2 && typeof t2.lineNumber == `number` : false;
5304
- };
5305
- var Ae2 = async (e2, t2 = true, n2) => {
5306
- if (ke2(e2)) {
5307
- let t3 = e2._debugSource;
5308
- return t3 || null;
5109
+ var G = async (e2, t2 = true, n2) => await Promise.all(e2.map(async (e3) => {
5110
+ if (!e3.fileName) return e3;
5111
+ let r3 = await W(e3.fileName, t2, n2);
5112
+ if (!r3 || typeof e3.lineNumber != `number` || typeof e3.columnNumber != `number`) return e3;
5113
+ let i2 = V(r3, e3.lineNumber, e3.columnNumber);
5114
+ return i2 ? { ...e3, source: i2.fileName && e3.source ? e3.source.replace(e3.fileName, i2.fileName) : e3.source, fileName: i2.fileName, lineNumber: i2.lineNumber, columnNumber: i2.columnNumber, isSymbolicated: true } : e3;
5115
+ }));
5116
+ var K = (e2) => e2._debugStack instanceof Error && typeof e2._debugStack?.stack == `string`;
5117
+ var be = () => {
5118
+ let n2 = h();
5119
+ for (let t2 of [...Array.from(d), ...Array.from(n2.renderers.values())]) {
5120
+ let e2 = t2.currentDispatcherRef;
5121
+ if (e2 && typeof e2 == `object`) return `H` in e2 ? e2.H : e2.current;
5309
5122
  }
5310
- let r3 = X2(e2), i2 = await Z(r3, 2 ** 53 - 1, t2, n2);
5311
- if (!i2 || i2.length === 0) return null;
5312
- for (let e3 of i2) if (Y(e3)) return e3;
5313
5123
  return null;
5314
5124
  };
5315
- var X2 = (e2) => Oe(e2) ? le2(e2._debugStack.stack) : ce2(e2);
5316
- var Z = async (e2, t2 = 2 ** 53 - 1, n2 = true, r3) => {
5317
- let i2 = j2(e2, { slice: t2 }), a3 = [];
5318
- for (let e3 of i2) {
5319
- if (!e3?.file) {
5320
- a3.push({ fileName: void 0, lineNumber: e3?.line, columnNumber: e3?.col, functionName: e3?.function });
5321
- continue;
5322
- }
5323
- let t3 = await J(e3.file, n2, r3);
5324
- if (t3 && typeof e3.line == `number` && typeof e3.col == `number`) {
5325
- let n3 = G2(t3, e3.line, e3.col);
5326
- if (n3) {
5327
- a3.push(n3);
5328
- continue;
5125
+ var q = (t2) => {
5126
+ for (let n2 of d) {
5127
+ let e2 = n2.currentDispatcherRef;
5128
+ e2 && typeof e2 == `object` && (`H` in e2 ? e2.H = t2 : e2.current = t2);
5129
+ }
5130
+ };
5131
+ var J = (e2) => `
5132
+ in ${e2}`;
5133
+ var Y = (e2, t2) => {
5134
+ let n2 = J(e2);
5135
+ return t2 && (n2 += ` (at ${t2})`), n2;
5136
+ };
5137
+ var X = false;
5138
+ var Z = (e2, t2) => {
5139
+ if (!e2 || X) return ``;
5140
+ let n2 = Error.prepareStackTrace;
5141
+ Error.prepareStackTrace = void 0, X = true;
5142
+ let r3 = be();
5143
+ q(null);
5144
+ let i2 = console.error, a3 = console.warn;
5145
+ console.error = () => {
5146
+ }, console.warn = () => {
5147
+ };
5148
+ try {
5149
+ let n3 = { DetermineComponentFrameRoot() {
5150
+ let n4;
5151
+ try {
5152
+ if (t2) {
5153
+ let t3 = function() {
5154
+ throw Error();
5155
+ };
5156
+ if (Object.defineProperty(t3.prototype, `props`, { set: function() {
5157
+ throw Error();
5158
+ } }), typeof Reflect == `object` && Reflect.construct) {
5159
+ try {
5160
+ Reflect.construct(t3, []);
5161
+ } catch (e3) {
5162
+ n4 = e3;
5163
+ }
5164
+ Reflect.construct(e2, [], t3);
5165
+ } else {
5166
+ try {
5167
+ t3.call();
5168
+ } catch (e3) {
5169
+ n4 = e3;
5170
+ }
5171
+ e2.call(t3.prototype);
5172
+ }
5173
+ } else {
5174
+ try {
5175
+ throw Error();
5176
+ } catch (e3) {
5177
+ n4 = e3;
5178
+ }
5179
+ let t3 = e2();
5180
+ t3 && typeof t3.catch == `function` && t3.catch(() => {
5181
+ });
5182
+ }
5183
+ } catch (e3) {
5184
+ if (e3 instanceof Error && n4 instanceof Error && typeof e3.stack == `string`) return [e3.stack, n4.stack];
5185
+ }
5186
+ return [null, null];
5187
+ } };
5188
+ n3.DetermineComponentFrameRoot.displayName = `DetermineComponentFrameRoot`;
5189
+ let r4 = Object.getOwnPropertyDescriptor(n3.DetermineComponentFrameRoot, `name`);
5190
+ r4?.configurable && Object.defineProperty(n3.DetermineComponentFrameRoot, `name`, { value: `DetermineComponentFrameRoot` });
5191
+ let [i3, a4] = n3.DetermineComponentFrameRoot();
5192
+ if (i3 && a4) {
5193
+ let t3 = i3.split(`
5194
+ `), n4 = a4.split(`
5195
+ `), r5 = 0, o4 = 0;
5196
+ for (; r5 < t3.length && !t3[r5].includes(`DetermineComponentFrameRoot`); ) r5++;
5197
+ for (; o4 < n4.length && !n4[o4].includes(`DetermineComponentFrameRoot`); ) o4++;
5198
+ if (r5 === t3.length || o4 === n4.length) for (r5 = t3.length - 1, o4 = n4.length - 1; r5 >= 1 && o4 >= 0 && t3[r5] !== n4[o4]; ) o4--;
5199
+ for (; r5 >= 1 && o4 >= 0; r5--, o4--) if (t3[r5] !== n4[o4]) {
5200
+ if (r5 !== 1 || o4 !== 1) do
5201
+ if (r5--, o4--, o4 < 0 || t3[r5] !== n4[o4]) {
5202
+ let n5 = `
5203
+ ${t3[r5].replace(` at new `, ` at `)}`, i4 = Te(e2);
5204
+ return i4 && n5.includes(`<anonymous>`) && (n5 = n5.replace(`<anonymous>`, i4)), n5;
5205
+ }
5206
+ while (r5 >= 1 && o4 >= 0);
5207
+ break;
5329
5208
  }
5330
5209
  }
5331
- a3.push({ fileName: e3.file, lineNumber: e3.line, columnNumber: e3.col, functionName: e3.function });
5210
+ } finally {
5211
+ X = false, Error.prepareStackTrace = n2, q(r3), console.error = i2, console.warn = a3;
5332
5212
  }
5333
- return a3;
5213
+ let o3 = e2 ? Te(e2) : ``, s3 = o3 ? J(o3) : ``;
5214
+ return s3;
5334
5215
  };
5335
- var Q = (e2) => {
5336
- if (!e2 || we2.includes(e2)) return ``;
5216
+ var xe = (e2, t2) => {
5217
+ let m3 = e2.tag, h3 = ``;
5218
+ switch (m3) {
5219
+ case ne:
5220
+ h3 = J(`Activity`);
5221
+ break;
5222
+ case o2:
5223
+ h3 = Z(e2.type, true);
5224
+ break;
5225
+ case f2:
5226
+ h3 = Z(e2.type.render, false);
5227
+ break;
5228
+ case a2:
5229
+ case h2:
5230
+ h3 = Z(e2.type, false);
5231
+ break;
5232
+ case c2:
5233
+ case y:
5234
+ case b:
5235
+ h3 = J(e2.type);
5236
+ break;
5237
+ case ee:
5238
+ h3 = J(`Lazy`);
5239
+ break;
5240
+ case p2:
5241
+ h3 = e2.child !== t2 && t2 !== null ? J(`Suspense Fallback`) : J(`Suspense`);
5242
+ break;
5243
+ case te:
5244
+ h3 = J(`SuspenseList`);
5245
+ break;
5246
+ case re:
5247
+ h3 = J(`ViewTransition`);
5248
+ break;
5249
+ default:
5250
+ return ``;
5251
+ }
5252
+ return h3;
5253
+ };
5254
+ var Se = (e2) => {
5255
+ try {
5256
+ let t2 = ``, n2 = e2, r3 = null;
5257
+ do {
5258
+ t2 += xe(n2, r3);
5259
+ let e3 = n2._debugInfo;
5260
+ if (e3 && Array.isArray(e3)) for (let n3 = e3.length - 1; n3 >= 0; n3--) {
5261
+ let r4 = e3[n3];
5262
+ typeof r4.name == `string` && (t2 += Y(r4.name, r4.env));
5263
+ }
5264
+ r3 = n2, n2 = n2.return;
5265
+ } while (n2);
5266
+ return t2;
5267
+ } catch (e3) {
5268
+ return e3 instanceof Error ? `
5269
+ Error generating stack: ${e3.message}
5270
+ ${e3.stack}` : ``;
5271
+ }
5272
+ };
5273
+ var Ce = (e2) => {
5274
+ let t2 = Error.prepareStackTrace;
5275
+ Error.prepareStackTrace = void 0;
5276
+ let n2 = e2;
5277
+ if (!n2) return ``;
5278
+ Error.prepareStackTrace = t2, n2.startsWith(`Error: react-stack-top-frame
5279
+ `) && (n2 = n2.slice(29));
5280
+ let r3 = n2.indexOf(`
5281
+ `);
5282
+ if (r3 !== -1 && (n2 = n2.slice(r3 + 1)), r3 = Math.max(n2.indexOf(`react_stack_bottom_frame`), n2.indexOf(`react-stack-bottom-frame`)), r3 !== -1 && (r3 = n2.lastIndexOf(`
5283
+ `, r3)), r3 !== -1) n2 = n2.slice(0, r3);
5284
+ else return ``;
5285
+ return n2;
5286
+ };
5287
+ var we = (e2) => !!(e2.fileName?.startsWith(`rsc://`) && e2.functionName);
5288
+ var Te2 = (e2, t2) => e2.fileName === t2.fileName && e2.lineNumber === t2.lineNumber && e2.columnNumber === t2.columnNumber;
5289
+ var Ee2 = (e2) => {
5290
+ let t2 = /* @__PURE__ */ new Map();
5291
+ for (let n2 of e2) for (let e3 of n2.stackFrames) {
5292
+ if (!we(e3)) continue;
5293
+ let n3 = e3.functionName, r3 = t2.get(n3) ?? [], i2 = r3.some((t3) => Te2(t3, e3));
5294
+ i2 || (r3.push(e3), t2.set(n3, r3));
5295
+ }
5296
+ return t2;
5297
+ };
5298
+ var De = (e2, t2, n2) => {
5299
+ if (!e2.functionName) return { ...e2, isServer: true };
5300
+ let r3 = t2.get(e2.functionName);
5301
+ if (!r3 || r3.length === 0) return { ...e2, isServer: true };
5302
+ let i2 = n2.get(e2.functionName) ?? 0, a3 = r3[i2 % r3.length];
5303
+ return n2.set(e2.functionName, i2 + 1), { ...e2, isServer: true, fileName: a3.fileName, lineNumber: a3.lineNumber, columnNumber: a3.columnNumber, source: e2.source?.replace(E, `(${a3.fileName}:${a3.lineNumber}:${a3.columnNumber})`) };
5304
+ };
5305
+ var Oe = (e2) => {
5306
+ let t2 = [];
5307
+ return N(e2, (e3) => {
5308
+ if (!K(e3)) return;
5309
+ let n2 = typeof e3.type == `string` ? e3.type : Te(e3.type) || `<anonymous>`;
5310
+ t2.push({ componentName: n2, stackFrames: D(Ce(e3._debugStack?.stack)) });
5311
+ }, true), t2;
5312
+ };
5313
+ var Q = async (e2, t2 = true, n2) => {
5314
+ let r3 = Oe(e2), i2 = D(Se(e2)), a3 = Ee2(r3), o3 = /* @__PURE__ */ new Map(), s3 = i2.map((e3) => {
5315
+ let t3 = e3.source?.includes(E) ?? false;
5316
+ return t3 ? De(e3, a3, o3) : e3;
5317
+ }), c3 = s3.filter((e3, t3, n3) => {
5318
+ if (t3 === 0) return true;
5319
+ let r4 = n3[t3 - 1];
5320
+ return e3.functionName !== r4.functionName;
5321
+ });
5322
+ return G(c3, t2, n2);
5323
+ };
5324
+ var $ = (e2) => {
5325
+ if (!e2 || ne2.includes(e2)) return ``;
5337
5326
  let t2 = e2;
5338
- if (t2.startsWith(Ce2)) {
5339
- let e3 = t2.slice(Ce2.length), n3 = e3.indexOf(`/`), r3 = e3.indexOf(`:`);
5340
- t2 = n3 !== -1 && (r3 === -1 || n3 < r3) ? e3.slice(n3 + 1) : e3;
5327
+ if (t2.startsWith(T)) {
5328
+ let e3 = t2.slice(T.length), n3 = e3.indexOf(`/`), r4 = e3.indexOf(`:`);
5329
+ t2 = n3 !== -1 && (r4 === -1 || n3 < r4) ? e3.slice(n3 + 1) : e3;
5341
5330
  }
5342
- for (let e3 of Se2) if (t2.startsWith(e3)) {
5343
- t2 = t2.slice(e3.length), e3 === `file:///` && (t2 = `/${t2.replace(/^\/+/, ``)}`);
5344
- break;
5331
+ let n2 = true;
5332
+ for (; n2; ) {
5333
+ n2 = false;
5334
+ for (let e3 of te2) if (t2.startsWith(e3)) {
5335
+ t2 = t2.slice(e3.length), e3 === `file:///` && (t2 = `/${t2.replace(/^\/+/, ``)}`), n2 = true;
5336
+ break;
5337
+ }
5345
5338
  }
5346
- if (xe2.test(t2)) {
5347
- let e3 = t2.match(xe2);
5339
+ if (w.test(t2)) {
5340
+ let e3 = t2.match(w);
5348
5341
  e3 && (t2 = t2.slice(e3[0].length));
5349
5342
  }
5350
- let n2 = t2.indexOf(`?`);
5351
- if (n2 !== -1) {
5352
- let e3 = t2.slice(n2);
5353
- De2.test(e3) && (t2 = t2.slice(0, n2));
5343
+ let r3 = t2.indexOf(`?`);
5344
+ if (r3 !== -1) {
5345
+ let e3 = t2.slice(r3);
5346
+ ae2.test(e3) && (t2 = t2.slice(0, r3));
5354
5347
  }
5355
5348
  return t2;
5356
5349
  };
5357
- var Me2 = (e2) => {
5358
- let t2 = Q(e2);
5359
- return !(!t2 || !Te2.test(t2) || Ee2.test(t2));
5350
+ var je = (e2) => {
5351
+ let t2 = $(e2);
5352
+ return !(!t2 || !re2.test(t2) || ie2.test(t2));
5360
5353
  };
5361
5354
 
5362
5355
  // src/utils/is-capitalized.ts
5363
5356
  var isCapitalized = (value) => value.length > 0 && /^[A-Z]/.test(value);
5364
5357
 
5365
- // src/instrumentation.ts
5358
+ // ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/install-hook-only-CTBENLgG.js
5359
+ _();
5360
+
5361
+ // src/context.ts
5366
5362
  var NEXT_INTERNAL_COMPONENT_NAMES = /* @__PURE__ */ new Set([
5367
5363
  "InnerLayoutRouter",
5368
5364
  "RedirectErrorBoundary",
@@ -5386,11 +5382,14 @@ var NEXT_INTERNAL_COMPONENT_NAMES = /* @__PURE__ */ new Set([
5386
5382
  "AppRouter",
5387
5383
  "ServerRoot",
5388
5384
  "SegmentStateProvider",
5389
- "RootErrorBoundary"
5385
+ "RootErrorBoundary",
5386
+ "LoadableComponent"
5390
5387
  ]);
5391
5388
  var checkIsNextProject = () => {
5392
5389
  if (typeof document === "undefined") return false;
5393
- return Boolean(document.getElementById("__NEXT_DATA__"));
5390
+ return Boolean(
5391
+ document.getElementById("__NEXT_DATA__") || document.querySelector("nextjs-portal")
5392
+ );
5394
5393
  };
5395
5394
  var checkIsInternalComponentName = (name) => {
5396
5395
  if (name.startsWith("_")) return true;
@@ -5406,105 +5405,60 @@ var checkIsSourceComponentName = (name) => {
5406
5405
  };
5407
5406
  var getStack = async (element) => {
5408
5407
  if (!Ee()) return [];
5409
- try {
5410
- const maybeFiber = Pe(element);
5411
- if (!maybeFiber || !me(maybeFiber)) return [];
5412
- const ownerStack = X2(maybeFiber);
5413
- const sources = await Z(ownerStack);
5414
- if (sources && sources.length > 0) {
5415
- const stack = [];
5416
- for (const source of sources) {
5417
- if (source.functionName && !checkIsInternalComponentName(source.functionName)) {
5418
- stack.push({
5419
- name: source.functionName,
5420
- source: source.fileName ? {
5421
- fileName: source.fileName,
5422
- lineNumber: source.lineNumber,
5423
- columnNumber: source.columnNumber
5424
- } : null
5425
- });
5426
- }
5427
- }
5428
- if (stack.length > 0) {
5429
- return stack;
5430
- }
5431
- }
5432
- const fiber = De(maybeFiber);
5433
- const unresolvedStack = [];
5434
- N(
5435
- fiber,
5436
- (currentFiber) => {
5437
- const displayName = k(currentFiber) ? typeof currentFiber.type === "string" ? currentFiber.type : null : Te(currentFiber);
5438
- if (displayName && !checkIsInternalComponentName(displayName)) {
5439
- unresolvedStack.push({
5440
- name: displayName,
5441
- sourcePromise: Ae2(currentFiber)
5442
- });
5443
- }
5444
- },
5445
- true
5446
- );
5447
- const resolvedStack = await Promise.all(
5448
- unresolvedStack.map(async (frame) => ({
5449
- name: frame.name,
5450
- source: await frame.sourcePromise
5451
- }))
5452
- );
5453
- return resolvedStack.filter((frame) => frame.source !== null);
5454
- } catch {
5455
- return [];
5456
- }
5408
+ const fiber = Pe(element);
5409
+ if (!fiber) return null;
5410
+ return await Q(fiber);
5457
5411
  };
5458
5412
  var getNearestComponentName = async (element) => {
5413
+ if (Ee()) return null;
5459
5414
  const stack = await getStack(element);
5415
+ if (!stack) return null;
5460
5416
  for (const frame of stack) {
5461
- if (checkIsSourceComponentName(frame.name)) {
5462
- return frame.name;
5417
+ if (frame.functionName && checkIsSourceComponentName(frame.functionName)) {
5418
+ return frame.functionName;
5463
5419
  }
5464
5420
  }
5465
5421
  return null;
5466
5422
  };
5467
- var formatElementInfo = async (element) => {
5423
+ var getElementContext = async (element, options = {}) => {
5424
+ const { maxLines = 3 } = options;
5468
5425
  const html = getHTMLPreview(element);
5469
5426
  const stack = await getStack(element);
5470
5427
  const isNextProject = checkIsNextProject();
5471
- let fileName = null;
5472
- let lineNumber = null;
5473
- let columnNumber = null;
5474
- let serverComponentName = null;
5475
- let clientComponentName = null;
5476
- for (const frame of stack) {
5477
- if (checkIsSourceComponentName(frame.name) && !serverComponentName && !frame.source?.fileName) {
5478
- serverComponentName = frame.name;
5479
- continue;
5480
- }
5481
- if (!frame.source) continue;
5482
- if (Me2(frame.source.fileName) && !fileName) {
5483
- fileName = Q(frame.source.fileName);
5484
- lineNumber = frame.source.lineNumber ?? null;
5485
- columnNumber = frame.source.columnNumber ?? null;
5486
- clientComponentName = frame.name;
5487
- break;
5488
- }
5489
- }
5490
- let result = html;
5491
- if (serverComponentName) {
5492
- result += `
5493
- in ${serverComponentName} (Server)`;
5494
- }
5495
- if (fileName) {
5496
- result += `
5497
- ${clientComponentName ? ` in ${clientComponentName}` : ""} at ${fileName}`;
5498
- if (isNextProject && lineNumber && columnNumber) {
5499
- result += `:${lineNumber}:${columnNumber}`;
5428
+ const stackContext = [];
5429
+ if (stack) {
5430
+ for (const frame of stack) {
5431
+ if (stackContext.length >= maxLines) break;
5432
+ if (frame.isServer && (!frame.functionName || checkIsSourceComponentName(frame.functionName))) {
5433
+ stackContext.push(
5434
+ `
5435
+ in ${frame.functionName || "<anonymous>"} (at Server)`
5436
+ );
5437
+ continue;
5438
+ }
5439
+ if (frame.fileName && je(frame.fileName)) {
5440
+ let line = "\n in ";
5441
+ const hasComponentName = frame.functionName && checkIsSourceComponentName(frame.functionName);
5442
+ if (hasComponentName) {
5443
+ line += `${frame.functionName} (at `;
5444
+ }
5445
+ line += $(frame.fileName);
5446
+ if (isNextProject && frame.lineNumber && frame.columnNumber) {
5447
+ line += `:${frame.lineNumber}:${frame.columnNumber}`;
5448
+ }
5449
+ if (hasComponentName) {
5450
+ line += `)`;
5451
+ }
5452
+ stackContext.push(line);
5453
+ }
5500
5454
  }
5501
5455
  }
5502
- return result;
5456
+ return `${html}${stackContext.join("")}`;
5503
5457
  };
5504
5458
  var getFileName = (stack) => {
5505
5459
  for (const frame of stack) {
5506
- if (frame.source && Me2(frame.source.fileName)) {
5507
- return Q(frame.source.fileName);
5460
+ if (frame.fileName && je(frame.fileName)) {
5461
+ return $(frame.fileName);
5508
5462
  }
5509
5463
  }
5510
5464
  return null;
@@ -6052,9 +6006,9 @@ var updateSession = (session, updates, storage) => {
6052
6006
  };
6053
6007
 
6054
6008
  // src/utils/generate-snippet.ts
6055
- var generateSnippet = async (elements) => {
6009
+ var generateSnippet = async (elements, options = {}) => {
6056
6010
  const elementSnippetResults = await Promise.allSettled(
6057
- elements.map((element) => formatElementInfo(element))
6011
+ elements.map((element) => getElementContext(element, options))
6058
6012
  );
6059
6013
  const elementSnippets = elementSnippetResults.map((result) => result.status === "fulfilled" ? result.value : "").filter((snippet) => snippet.trim());
6060
6014
  if (elementSnippets.length === 0) {
@@ -6269,6 +6223,17 @@ var createAgentManager = (initialAgentOptions) => {
6269
6223
  var _tmpl$16 = /* @__PURE__ */ template(`<span class="tabular-nums align-middle">`);
6270
6224
  var _tmpl$23 = /* @__PURE__ */ template(`<span class="font-mono tabular-nums align-middle">&lt;<!>>`);
6271
6225
  var _tmpl$33 = /* @__PURE__ */ template(`<span class="tabular-nums ml-1 align-middle"> in `);
6226
+ var onIdle = (callback) => {
6227
+ if ("scheduler" in globalThis) {
6228
+ return globalThis.scheduler.postTask(callback, {
6229
+ priority: "background"
6230
+ });
6231
+ }
6232
+ if ("requestIdleCallback" in window) {
6233
+ return requestIdleCallback(callback);
6234
+ }
6235
+ return setTimeout(callback, 0);
6236
+ };
6272
6237
  var hasInited = false;
6273
6238
  var getScriptOptions = () => {
6274
6239
  if (typeof window === "undefined") return null;
@@ -6314,6 +6279,7 @@ var init = (rawOptions) => {
6314
6279
  enabled: true,
6315
6280
  keyHoldDuration: 200,
6316
6281
  allowActivationInsideInput: true,
6282
+ maxContextLines: 3,
6317
6283
  ...scriptOptions,
6318
6284
  ...rawOptions
6319
6285
  };
@@ -6348,7 +6314,7 @@ var init = (rawOptions) => {
6348
6314
  hasInited = true;
6349
6315
  const logIntro = () => {
6350
6316
  try {
6351
- const version = "0.0.60";
6317
+ const version = "0.0.61";
6352
6318
  const logoDataUri = `data:image/svg+xml;base64,${btoa(LOGO_SVG)}`;
6353
6319
  console.log(`%cReact Grab${version ? ` v${version}` : ""}%c
6354
6320
  https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${logoDataUri}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`, "");
@@ -6373,6 +6339,8 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6373
6339
  const [isHoldingKeys, setIsHoldingKeys] = createSignal(false);
6374
6340
  const [mouseX, setMouseX] = createSignal(OFFSCREEN_POSITION);
6375
6341
  const [mouseY, setMouseY] = createSignal(OFFSCREEN_POSITION);
6342
+ const [detectedElement, setDetectedElement] = createSignal(null);
6343
+ let lastElementDetectionTime = 0;
6376
6344
  const [isDragging, setIsDragging] = createSignal(false);
6377
6345
  const [dragStartX, setDragStartX] = createSignal(OFFSCREEN_POSITION);
6378
6346
  const [dragStartY, setDragStartY] = createSignal(OFFSCREEN_POSITION);
@@ -6512,7 +6480,7 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6512
6480
  }
6513
6481
  }));
6514
6482
  };
6515
- const createLabelInstance = (bounds, tagName, componentName, status, element) => {
6483
+ const createLabelInstance = (bounds, tagName, componentName, status, element, mouseX2) => {
6516
6484
  const instanceId = `label-${Date.now()}-${Math.random().toString(36).slice(2)}`;
6517
6485
  setLabelInstances((prev) => [...prev, {
6518
6486
  id: instanceId,
@@ -6521,7 +6489,8 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6521
6489
  componentName,
6522
6490
  status,
6523
6491
  createdAt: Date.now(),
6524
- element
6492
+ element,
6493
+ mouseX: mouseX2
6525
6494
  }]);
6526
6495
  return instanceId;
6527
6496
  };
@@ -6539,7 +6508,7 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6539
6508
  setCopyStartY(positionY);
6540
6509
  setIsCopying(true);
6541
6510
  startProgressAnimation();
6542
- const instanceId = bounds && tagName ? createLabelInstance(bounds, tagName, componentName, "copying", element) : null;
6511
+ const instanceId = bounds && tagName ? createLabelInstance(bounds, tagName, componentName, "copying", element, positionX) : null;
6543
6512
  await operation().finally(() => {
6544
6513
  setIsCopying(false);
6545
6514
  stopProgressAnimation();
@@ -6570,7 +6539,9 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6570
6539
  let copiedContent = "";
6571
6540
  await options.onBeforeCopy?.(elements);
6572
6541
  try {
6573
- const elementSnippetResults = await Promise.allSettled(elements.map((element) => formatElementInfo(element)));
6542
+ const elementSnippetResults = await Promise.allSettled(elements.map((element) => getElementContext(element, {
6543
+ maxLines: options.maxContextLines
6544
+ })));
6574
6545
  const elementSnippets = [];
6575
6546
  for (const result of elementSnippetResults) {
6576
6547
  if (result.status === "fulfilled" && result.value.trim()) {
@@ -6644,7 +6615,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6644
6615
  };
6645
6616
  const targetElement = createMemo(() => {
6646
6617
  if (!isRendererActive() || isDragging()) return null;
6647
- return getElementAtPosition(mouseX(), mouseY());
6618
+ return detectedElement();
6648
6619
  });
6649
6620
  createEffect(() => {
6650
6621
  const element = targetElement();
@@ -6762,10 +6733,11 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6762
6733
  return;
6763
6734
  }
6764
6735
  getStack(element).then((stack) => {
6736
+ if (!stack) return;
6765
6737
  for (const frame of stack) {
6766
- if (frame.source && Me2(frame.source.fileName)) {
6767
- setSelectionFilePath(Q(frame.source.fileName));
6768
- setSelectionLineNumber(frame.source.lineNumber);
6738
+ if (frame.fileName && je(frame.fileName)) {
6739
+ setSelectionFilePath($(frame.fileName));
6740
+ setSelectionLineNumber(frame.lineNumber);
6769
6741
  return;
6770
6742
  }
6771
6743
  }
@@ -6797,10 +6769,10 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6797
6769
  } : null
6798
6770
  });
6799
6771
  }));
6800
- createEffect(on(() => [isInputMode(), mouseX(), mouseY(), targetElement()], ([inputMode, x3, y2, target]) => {
6772
+ createEffect(on(() => [isInputMode(), mouseX(), mouseY(), targetElement()], ([inputMode, x3, y3, target]) => {
6801
6773
  options.onInputModeChange?.(inputMode, {
6802
6774
  x: x3,
6803
- y: y2,
6775
+ y: y3,
6804
6776
  targetElement: target
6805
6777
  });
6806
6778
  }));
@@ -6810,10 +6782,10 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6810
6782
  createEffect(on(() => [dragVisible(), dragBounds()], ([visible, bounds]) => {
6811
6783
  options.onDragBox?.(Boolean(visible), bounds ?? null);
6812
6784
  }));
6813
- createEffect(on(() => [crosshairVisible(), mouseX(), mouseY()], ([visible, x3, y2]) => {
6785
+ createEffect(on(() => [crosshairVisible(), mouseX(), mouseY()], ([visible, x3, y3]) => {
6814
6786
  options.onCrosshair?.(Boolean(visible), {
6815
6787
  x: x3,
6816
- y: y2
6788
+ y: y3
6817
6789
  });
6818
6790
  }));
6819
6791
  createEffect(on(() => [labelVisible(), labelVariant(), labelContent(), cursorPosition()], ([visible, variant, content, position]) => {
@@ -7043,6 +7015,14 @@ ${plainTextContentOnly}` : plainTextContentOnly;
7043
7015
  if (isInputMode() || isToggleFrozen()) return;
7044
7016
  setMouseX(clientX);
7045
7017
  setMouseY(clientY);
7018
+ const now = performance.now();
7019
+ if (now - lastElementDetectionTime >= ELEMENT_DETECTION_THROTTLE_MS) {
7020
+ lastElementDetectionTime = now;
7021
+ onIdle(() => {
7022
+ const candidate = getElementAtPosition(clientX, clientY);
7023
+ setDetectedElement(candidate);
7024
+ });
7025
+ }
7046
7026
  if (isDragging()) {
7047
7027
  const direction = getAutoScrollDirection(clientX, clientY);
7048
7028
  const isNearEdge = direction.top || direction.bottom || direction.left || direction.right;
@@ -7669,7 +7649,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
7669
7649
  };
7670
7650
  /*! Bundled license information:
7671
7651
 
7672
- bippy/dist/rdt-hook-BE3UuUaz.js:
7652
+ bippy/dist/rdt-hook-7WClMTWh.js:
7673
7653
  (**
7674
7654
  * @license bippy
7675
7655
  *
@@ -7679,7 +7659,7 @@ bippy/dist/rdt-hook-BE3UuUaz.js:
7679
7659
  * LICENSE file in the root directory of this source tree.
7680
7660
  *)
7681
7661
 
7682
- bippy/dist/install-hook-only-_lLceJhv.js:
7662
+ bippy/dist/core-CoV0JPOT.js:
7683
7663
  (**
7684
7664
  * @license bippy
7685
7665
  *
@@ -7689,7 +7669,7 @@ bippy/dist/install-hook-only-_lLceJhv.js:
7689
7669
  * LICENSE file in the root directory of this source tree.
7690
7670
  *)
7691
7671
 
7692
- bippy/dist/core-_xno6DOO.js:
7672
+ bippy/dist/source.js:
7693
7673
  (**
7694
7674
  * @license bippy
7695
7675
  *
@@ -7699,7 +7679,7 @@ bippy/dist/core-_xno6DOO.js:
7699
7679
  * LICENSE file in the root directory of this source tree.
7700
7680
  *)
7701
7681
 
7702
- bippy/dist/src-C_DvVIY-.js:
7682
+ bippy/dist/install-hook-only-CTBENLgG.js:
7703
7683
  (**
7704
7684
  * @license bippy
7705
7685
  *
@@ -7718,22 +7698,12 @@ bippy/dist/index.js:
7718
7698
  * This source code is licensed under the MIT license found in the
7719
7699
  * LICENSE file in the root directory of this source tree.
7720
7700
  *)
7721
-
7722
- bippy/dist/source.js:
7723
- (**
7724
- * @license bippy
7725
- *
7726
- * Copyright (c) Aiden Bai
7727
- *
7728
- * This source code is licensed under the MIT license found in the
7729
- * LICENSE file in the root directory of this source tree.
7730
- *)
7731
7701
  */
7732
7702
 
7733
7703
  exports.DEFAULT_THEME = DEFAULT_THEME;
7734
7704
  exports.Ee = Ee;
7735
- exports.formatElementInfo = formatElementInfo;
7736
7705
  exports.generateSnippet = generateSnippet;
7706
+ exports.getElementContext = getElementContext;
7737
7707
  exports.getFileName = getFileName;
7738
7708
  exports.getStack = getStack;
7739
7709
  exports.init = init;