react-grab 0.0.59 → 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.
- package/README.md +51 -4
- package/dist/{chunk-XODHRTU2.cjs → chunk-2EGDLG6B.cjs} +586 -732
- package/dist/{chunk-KM7JGKVG.js → chunk-BPIV2CRB.js} +586 -732
- package/dist/{core-DZ65ta1h.d.cts → core-Dpg0VXHq.d.cts} +12 -8
- package/dist/{core-DZ65ta1h.d.ts → core-Dpg0VXHq.d.ts} +12 -8
- package/dist/core.cjs +8 -8
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +31 -41
- package/dist/index.js +2 -2
- package/dist/styles.css +1 -1
- package/package.json +2 -2
|
@@ -87,8 +87,8 @@ function createMemo(fn, value, options) {
|
|
|
87
87
|
updateComputation(c3);
|
|
88
88
|
return readSignal.bind(c3);
|
|
89
89
|
}
|
|
90
|
-
function isPromise(
|
|
91
|
-
return
|
|
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,
|
|
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 ||
|
|
115
|
-
value:
|
|
114
|
+
if ((p3 === initP || v3 === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
|
|
115
|
+
value: v3
|
|
116
116
|
}));
|
|
117
117
|
initP = NO_INIT;
|
|
118
|
-
completeLoad(
|
|
118
|
+
completeLoad(v3, error2);
|
|
119
119
|
}
|
|
120
|
-
return
|
|
120
|
+
return v3;
|
|
121
121
|
}
|
|
122
|
-
function completeLoad(
|
|
122
|
+
function completeLoad(v3, err) {
|
|
123
123
|
runUpdates(() => {
|
|
124
|
-
if (err === void 0) setValue(() =>
|
|
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,
|
|
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
|
|
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((
|
|
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
|
|
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
|
-
|
|
722
|
-
if (
|
|
723
|
-
nodeStyle.setProperty(s3,
|
|
724
|
-
prev[s3] =
|
|
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
|
|
812
|
-
while (typeof
|
|
813
|
-
current = insertExpression(parent,
|
|
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;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@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-gray-border:#b0b0b0}}@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}.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-\\[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-\\[18px\\]{width:18px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.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-\\[3px\\]{border-radius:3px}.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-br-\\[3px\\]{border-bottom-right-radius:3px}.rounded-bl-\\[3px\\]{border-bottom-left-radius:3px}.border{border-style:var(--tw-border-style);border-width:1px}.border-\\[0\\.5px\\]{border-style:var(--tw-border-style);border-width:.5px}.\\[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-\\[\\#001D0E\\]{border-color:#001d0e}.border-\\[\\#00553269\\]{border-color:#00553269}.border-\\[\\#A3FFCA\\]{border-color:#a3ffca}.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-gray-border{border-color:var(--color-label-gray-border)}.border-label-tag-border{border-color:var(--color-label-tag-border)}.border-white{border-color:var(--color-white)}.border-t-\\[\\#B6B6B6\\]{border-top-color:#b6b6b6}.bg-\\[\\#A3FFCA\\]{background-color:#a3ffca}.bg-\\[\\#F2F2F2\\]{background-color:#f2f2f2}.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-0\\.5{padding:calc(var(--spacing)*.5)}.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}.px-\\[5px\\]{padding-inline:5px}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-\\[5px\\]{padding-block:5px}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing)*1)}.pb-1\\.5{padding-bottom:calc(var(--spacing)*1.5)}.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}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#00381F\\]{color:#00381f}.text-\\[\\#47004A\\]{color:#47004a}.text-\\[\\#767676\\]{color:#767676}.text-\\[\\#A3FFCA\\]{color:#a3ffca}.text-black{color:var(--color-black)}.text-label-tag-border{color:var(--color-label-tag-border)}.text-white{color:var(--color-white)}.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}.\\[box-shadow\\:\\#00000033_0px_2px_3px\\]{box-shadow:0 2px 3px #0003}.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,)}.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-80:hover{opacity:.8}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}}@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}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@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 [
|
|
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(
|
|
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:
|
|
3667
|
+
return { x: x3, y: y3 };
|
|
3667
3668
|
};
|
|
3668
3669
|
|
|
3669
3670
|
// src/components/crosshair.tsx
|
|
@@ -3735,54 +3736,12 @@ var Crosshair = (props) => {
|
|
|
3735
3736
|
});
|
|
3736
3737
|
};
|
|
3737
3738
|
|
|
3738
|
-
// src/components/icon-cursor-simple.tsx
|
|
3739
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 12 12"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M0.675576 0.0318497C0.491988 -0.0369956 0.285105 0.0078173 0.146461 0.146461C0.0078173 0.285105 -0.0369956 0.491988 0.0318497 0.675576L4.15685 11.6756C4.2337 11.8805 4.43492 12.0117 4.65345 11.9992C4.87197 11.9868 5.057 11.8336 5.11009 11.6213L6.41232 6.41232L11.6213 5.11009C11.8336 5.057 11.9868 4.87197 11.9992 4.65345C12.0117 4.43492 11.8805 4.2337 11.6756 4.15685L0.675576 0.0318497Z"fill=currentColor>`);
|
|
3740
|
-
var IconCursorSimple = (props) => {
|
|
3741
|
-
const size = () => props.size ?? 9;
|
|
3742
|
-
return (() => {
|
|
3743
|
-
var _el$ = _tmpl$3();
|
|
3744
|
-
createRenderEffect((_p$) => {
|
|
3745
|
-
var _v$ = size(), _v$2 = size(), _v$3 = props.class;
|
|
3746
|
-
_v$ !== _p$.e && setAttribute(_el$, "width", _p$.e = _v$);
|
|
3747
|
-
_v$2 !== _p$.t && setAttribute(_el$, "height", _p$.t = _v$2);
|
|
3748
|
-
_v$3 !== _p$.a && setAttribute(_el$, "class", _p$.a = _v$3);
|
|
3749
|
-
return _p$;
|
|
3750
|
-
}, {
|
|
3751
|
-
e: void 0,
|
|
3752
|
-
t: void 0,
|
|
3753
|
-
a: void 0
|
|
3754
|
-
});
|
|
3755
|
-
return _el$;
|
|
3756
|
-
})();
|
|
3757
|
-
};
|
|
3758
|
-
|
|
3759
3739
|
// src/components/icon-open.tsx
|
|
3760
|
-
var _tmpl$
|
|
3740
|
+
var _tmpl$3 = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">`);
|
|
3761
3741
|
var IconOpen = (props) => {
|
|
3762
3742
|
const size = () => props.size ?? 12;
|
|
3763
3743
|
return (() => {
|
|
3764
|
-
var _el$ = _tmpl$
|
|
3765
|
-
createRenderEffect((_p$) => {
|
|
3766
|
-
var _v$ = size(), _v$2 = size(), _v$3 = props.class;
|
|
3767
|
-
_v$ !== _p$.e && setAttribute(_el$, "width", _p$.e = _v$);
|
|
3768
|
-
_v$2 !== _p$.t && setAttribute(_el$, "height", _p$.t = _v$2);
|
|
3769
|
-
_v$3 !== _p$.a && setAttribute(_el$, "class", _p$.a = _v$3);
|
|
3770
|
-
return _p$;
|
|
3771
|
-
}, {
|
|
3772
|
-
e: void 0,
|
|
3773
|
-
t: void 0,
|
|
3774
|
-
a: void 0
|
|
3775
|
-
});
|
|
3776
|
-
return _el$;
|
|
3777
|
-
})();
|
|
3778
|
-
};
|
|
3779
|
-
|
|
3780
|
-
// src/components/icon-stop.tsx
|
|
3781
|
-
var _tmpl$5 = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 9 9"fill=none><rect x=1 y=1 width=7 height=7 rx=1 fill=currentColor>`);
|
|
3782
|
-
var IconStop = (props) => {
|
|
3783
|
-
const size = () => props.size ?? 9;
|
|
3784
|
-
return (() => {
|
|
3785
|
-
var _el$ = _tmpl$5();
|
|
3744
|
+
var _el$ = _tmpl$3();
|
|
3786
3745
|
createRenderEffect((_p$) => {
|
|
3787
3746
|
var _v$ = size(), _v$2 = size(), _v$3 = props.class;
|
|
3788
3747
|
_v$ !== _p$.e && setAttribute(_el$, "width", _p$.e = _v$);
|
|
@@ -3799,27 +3758,22 @@ var IconStop = (props) => {
|
|
|
3799
3758
|
};
|
|
3800
3759
|
|
|
3801
3760
|
// src/components/selection-label.tsx
|
|
3802
|
-
var _tmpl$
|
|
3803
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-[#B3B3B3] py-0"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">`);
|
|
3804
|
-
var _tmpl$32 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-
|
|
3805
|
-
var _tmpl$42 = /* @__PURE__ */ template(`<div class="
|
|
3806
|
-
var _tmpl$
|
|
3807
|
-
var _tmpl$
|
|
3808
|
-
var _tmpl$7 = /* @__PURE__ */ template(`<
|
|
3809
|
-
var _tmpl$8 = /* @__PURE__ */ template(`<button>`);
|
|
3810
|
-
var _tmpl$9 = /* @__PURE__ */ template(`<div>`);
|
|
3811
|
-
var _tmpl$0 = /* @__PURE__ */ template(`<div class="
|
|
3812
|
-
var _tmpl$1 = /* @__PURE__ */ template(`<div
|
|
3813
|
-
var _tmpl$10 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex
|
|
3814
|
-
var _tmpl$11 = /* @__PURE__ */ template(`<div class="
|
|
3815
|
-
var _tmpl$12 = /* @__PURE__ */ template(`<
|
|
3816
|
-
var _tmpl$13 = /* @__PURE__ */ template(`<div class="flex
|
|
3817
|
-
var _tmpl$14 = /* @__PURE__ */ template(`<div class="contain-layout
|
|
3818
|
-
var _tmpl$15 = /* @__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 rounded-xs bg-white [border-width:0.5px] border-solid border-white p-0.5 w-fit h-fit"style="box-shadow:#0000008C 0px 0px 2px"><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`);
|
|
3819
|
-
var _tmpl$16 = /* @__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">`);
|
|
3820
|
-
var _tmpl$17 = /* @__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 p-0.5 rounded-xs bg-white [border-width:0.5px] border-solid border-white w-fit h-fit cursor-pointer ml-1 transition-none hover:scale-105 hover:shadow-md"style="box-shadow:#0000008C 0px 0px 2px"><div style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)>`);
|
|
3821
|
-
var _tmpl$18 = /* @__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">`);
|
|
3822
|
-
var _tmpl$19 = /* @__PURE__ */ template(`<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white [box-shadow:#00000033_0px_2px_3px] antialiased w-fit h-fit p-0">`);
|
|
3761
|
+
var _tmpl$4 = /* @__PURE__ */ template(`<div style="background-image:linear-gradient(in oklab 180deg, oklab(88.7% 0.086 -0.058) 0%, oklab(83.2% 0.132 -0.089) 100%)"><span>`);
|
|
3762
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-[#B3B3B3] py-0 bg-[#F7F7F7]"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">`);
|
|
3763
|
+
var _tmpl$32 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-white py-0"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">>`);
|
|
3764
|
+
var _tmpl$42 = /* @__PURE__ */ template(`<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">`);
|
|
3765
|
+
var _tmpl$5 = /* @__PURE__ */ template(`<div role=button><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">`);
|
|
3766
|
+
var _tmpl$6 = /* @__PURE__ */ template(`<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-xs"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">`);
|
|
3767
|
+
var _tmpl$7 = /* @__PURE__ */ template(`<div class="[font-synthesis:none] contain-layout shrink-0 flex items-center gap-1 rounded-xs bg-white antialiased w-fit h-fit py-1 px-1.5"><div class="contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]"><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">`);
|
|
3768
|
+
var _tmpl$8 = /* @__PURE__ */ template(`<button class="contain-layout shrink-0 flex flex-col items-start rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black">`);
|
|
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>`);
|
|
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">`);
|
|
3771
|
+
var _tmpl$1 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">`);
|
|
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`);
|
|
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">`);
|
|
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)>`);
|
|
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">`);
|
|
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">`);
|
|
3823
3777
|
var ARROW_HEIGHT = 8;
|
|
3824
3778
|
var LABEL_GAP = 4;
|
|
3825
3779
|
var IDLE_TIMEOUT_MS = 400;
|
|
@@ -3834,7 +3788,7 @@ var TagBadge = (props) => {
|
|
|
3834
3788
|
props.onHoverChange?.(false);
|
|
3835
3789
|
};
|
|
3836
3790
|
return (() => {
|
|
3837
|
-
var _el$ = _tmpl$
|
|
3791
|
+
var _el$ = _tmpl$4(), _el$2 = _el$.firstChild;
|
|
3838
3792
|
addEventListener(_el$, "click", props.onClick);
|
|
3839
3793
|
_el$.addEventListener("mouseleave", handleMouseLeave);
|
|
3840
3794
|
_el$.addEventListener("mouseenter", handleMouseEnter);
|
|
@@ -3869,46 +3823,12 @@ var ParentBadge = (props) => (() => {
|
|
|
3869
3823
|
insert(_el$4, () => props.name);
|
|
3870
3824
|
return _el$3;
|
|
3871
3825
|
})();
|
|
3872
|
-
var
|
|
3873
|
-
var _el$5 = _tmpl$32(), _el$6 = _el$5.firstChild;
|
|
3874
|
-
insert(_el$6, () => props.name);
|
|
3875
|
-
return _el$5;
|
|
3876
|
-
})();
|
|
3877
|
-
var ChevronSeparator = () => _tmpl$42();
|
|
3878
|
-
var CopiedChevronSeparator = () => _tmpl$52();
|
|
3879
|
-
var CopiedTagBadge = (props) => (() => {
|
|
3880
|
-
var _el$9 = _tmpl$62(), _el$0 = _el$9.firstChild;
|
|
3881
|
-
insert(_el$0, () => props.tagName);
|
|
3882
|
-
return _el$9;
|
|
3883
|
-
})();
|
|
3884
|
-
var ActionPill = (props) => {
|
|
3885
|
-
const baseClass = cn("flex items-center h-[18px] rounded-[1.5px] gap-[3px] px-[5px] py-px border-[0.5px] border-solid border-label-gray-border", props.shrink && "shrink-0 w-fit", props.asButton && "cursor-pointer bg-transparent", props.dimmed && "opacity-50 hover:opacity-100 transition-opacity");
|
|
3886
|
-
const content = [memo(() => props.icon), (() => {
|
|
3887
|
-
var _el$1 = _tmpl$7();
|
|
3888
|
-
insert(_el$1, () => props.label);
|
|
3889
|
-
createRenderEffect(() => className(_el$1, cn("text-black text-[12px] leading-4 font-medium tracking-[-0.04em]", props.shrink && "shrink-0 w-fit h-fit")));
|
|
3890
|
-
return _el$1;
|
|
3891
|
-
})()];
|
|
3892
|
-
return props.asButton ? (() => {
|
|
3893
|
-
var _el$10 = _tmpl$8();
|
|
3894
|
-
addEventListener(_el$10, "click", props.onClick);
|
|
3895
|
-
className(_el$10, baseClass);
|
|
3896
|
-
insert(_el$10, content);
|
|
3897
|
-
return _el$10;
|
|
3898
|
-
})() : (() => {
|
|
3899
|
-
var _el$11 = _tmpl$9();
|
|
3900
|
-
addEventListener(_el$11, "click", props.onClick);
|
|
3901
|
-
className(_el$11, baseClass);
|
|
3902
|
-
insert(_el$11, content);
|
|
3903
|
-
createRenderEffect(() => setAttribute(_el$11, "role", props.onClick ? "button" : void 0));
|
|
3904
|
-
return _el$11;
|
|
3905
|
-
})();
|
|
3906
|
-
};
|
|
3826
|
+
var ChevronSeparator = () => _tmpl$32();
|
|
3907
3827
|
var Arrow = (props) => {
|
|
3908
3828
|
const arrowColor = () => props.color ?? "white";
|
|
3909
3829
|
return (() => {
|
|
3910
|
-
var _el$
|
|
3911
|
-
createRenderEffect((_$p) => style(_el$
|
|
3830
|
+
var _el$6 = _tmpl$42();
|
|
3831
|
+
createRenderEffect((_$p) => style(_el$6, {
|
|
3912
3832
|
left: `${props.leftPx}px`,
|
|
3913
3833
|
...props.position === "bottom" ? {
|
|
3914
3834
|
top: "0",
|
|
@@ -3923,19 +3843,20 @@ var Arrow = (props) => {
|
|
|
3923
3843
|
"border-top": `8px solid ${arrowColor()}`
|
|
3924
3844
|
}
|
|
3925
3845
|
}, _$p));
|
|
3926
|
-
return _el$
|
|
3846
|
+
return _el$6;
|
|
3927
3847
|
})();
|
|
3928
3848
|
};
|
|
3929
3849
|
var ClickToCopyPill = (props) => (() => {
|
|
3930
|
-
var _el$
|
|
3931
|
-
addEventListener(_el$
|
|
3932
|
-
|
|
3933
|
-
|
|
3850
|
+
var _el$7 = _tmpl$5(), _el$8 = _el$7.firstChild;
|
|
3851
|
+
addEventListener(_el$7, "click", props.onClick);
|
|
3852
|
+
insert(_el$8, () => props.hasParent ? "Copy" : "Click to copy");
|
|
3853
|
+
createRenderEffect(() => className(_el$7, cn("contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]", props.asButton && "cursor-pointer", props.dimmed && "opacity-50 hover:opacity-100 transition-opacity")));
|
|
3854
|
+
return _el$7;
|
|
3934
3855
|
})();
|
|
3935
3856
|
var BottomSection = (props) => (() => {
|
|
3936
|
-
var _el$
|
|
3937
|
-
insert(_el$
|
|
3938
|
-
return _el$
|
|
3857
|
+
var _el$9 = _tmpl$6();
|
|
3858
|
+
insert(_el$9, () => props.children);
|
|
3859
|
+
return _el$9;
|
|
3939
3860
|
})();
|
|
3940
3861
|
var SelectionLabel = (props) => {
|
|
3941
3862
|
let containerRef;
|
|
@@ -4031,9 +3952,10 @@ var SelectionLabel = (props) => {
|
|
|
4031
3952
|
const viewportWidth = window.innerWidth;
|
|
4032
3953
|
const viewportHeight = window.innerHeight;
|
|
4033
3954
|
const selectionCenterX = bounds.x + bounds.width / 2;
|
|
3955
|
+
const cursorX = props.mouseX ?? selectionCenterX;
|
|
4034
3956
|
const selectionBottom = bounds.y + bounds.height;
|
|
4035
3957
|
const selectionTop = bounds.y;
|
|
4036
|
-
let positionLeft =
|
|
3958
|
+
let positionLeft = cursorX - labelWidth / 2;
|
|
4037
3959
|
let positionTop = selectionBottom + ARROW_HEIGHT + LABEL_GAP;
|
|
4038
3960
|
if (positionLeft + labelWidth > viewportWidth - VIEWPORT_MARGIN_PX) {
|
|
4039
3961
|
positionLeft = viewportWidth - labelWidth - VIEWPORT_MARGIN_PX;
|
|
@@ -4052,7 +3974,7 @@ var SelectionLabel = (props) => {
|
|
|
4052
3974
|
if (positionTop < VIEWPORT_MARGIN_PX) {
|
|
4053
3975
|
positionTop = VIEWPORT_MARGIN_PX;
|
|
4054
3976
|
}
|
|
4055
|
-
const arrowLeft = Math.max(12, Math.min(
|
|
3977
|
+
const arrowLeft = Math.max(12, Math.min(cursorX - positionLeft, labelWidth - 12));
|
|
4056
3978
|
return {
|
|
4057
3979
|
left: positionLeft,
|
|
4058
3980
|
top: positionTop,
|
|
@@ -4092,128 +4014,84 @@ var SelectionLabel = (props) => {
|
|
|
4092
4014
|
return memo(() => props.visible !== false)() && props.selectionBounds;
|
|
4093
4015
|
},
|
|
4094
4016
|
get children() {
|
|
4095
|
-
var _el$
|
|
4096
|
-
_el$
|
|
4097
|
-
_el$
|
|
4017
|
+
var _el$0 = _tmpl$14(), _el$12 = _el$0.firstChild;
|
|
4018
|
+
_el$0.$$click = stopPropagation;
|
|
4019
|
+
_el$0.$$mousedown = stopPropagation;
|
|
4098
4020
|
var _ref$ = containerRef;
|
|
4099
|
-
typeof _ref$ === "function" ? use(_ref$, _el$
|
|
4100
|
-
insert(_el$
|
|
4021
|
+
typeof _ref$ === "function" ? use(_ref$, _el$0) : containerRef = _el$0;
|
|
4022
|
+
insert(_el$0, createComponent(Arrow, {
|
|
4101
4023
|
get position() {
|
|
4102
4024
|
return arrowPosition();
|
|
4103
4025
|
},
|
|
4104
4026
|
get leftPx() {
|
|
4105
4027
|
return computedPosition().arrowLeft;
|
|
4106
|
-
},
|
|
4107
|
-
get color() {
|
|
4108
|
-
return props.status === "copied" || props.status === "fading" ? "#A3FFCA" : void 0;
|
|
4109
4028
|
}
|
|
4110
|
-
}), _el$
|
|
4111
|
-
insert(_el$
|
|
4029
|
+
}), _el$12);
|
|
4030
|
+
insert(_el$0, createComponent(Show, {
|
|
4112
4031
|
get when() {
|
|
4113
4032
|
return props.status === "copied" || props.status === "fading";
|
|
4114
4033
|
},
|
|
4115
4034
|
get children() {
|
|
4116
|
-
var _el$
|
|
4117
|
-
insert(_el$
|
|
4118
|
-
|
|
4119
|
-
get when() {
|
|
4120
|
-
return props.componentName;
|
|
4121
|
-
},
|
|
4122
|
-
get children() {
|
|
4123
|
-
return [createComponent(CopiedParentBadge, {
|
|
4124
|
-
get name() {
|
|
4125
|
-
return props.componentName;
|
|
4126
|
-
}
|
|
4127
|
-
}), createComponent(CopiedChevronSeparator, {})];
|
|
4128
|
-
}
|
|
4129
|
-
}), null);
|
|
4130
|
-
insert(_el$19, createComponent(CopiedTagBadge, {
|
|
4131
|
-
get tagName() {
|
|
4132
|
-
return tagDisplay();
|
|
4133
|
-
}
|
|
4134
|
-
}), null);
|
|
4135
|
-
return _el$16;
|
|
4035
|
+
var _el$1 = _tmpl$7(), _el$10 = _el$1.firstChild, _el$11 = _el$10.firstChild;
|
|
4036
|
+
insert(_el$11, () => props.hasAgent ? "Completed" : "Copied");
|
|
4037
|
+
return _el$1;
|
|
4136
4038
|
}
|
|
4137
|
-
}), _el$
|
|
4138
|
-
insert(_el$
|
|
4039
|
+
}), _el$12);
|
|
4040
|
+
insert(_el$12, createComponent(Show, {
|
|
4139
4041
|
get when() {
|
|
4140
4042
|
return props.status === "copying";
|
|
4141
4043
|
},
|
|
4142
4044
|
get children() {
|
|
4143
|
-
var _el$
|
|
4144
|
-
insert(_el$
|
|
4145
|
-
|
|
4146
|
-
return tagDisplay();
|
|
4147
|
-
},
|
|
4148
|
-
get isClickable() {
|
|
4149
|
-
return isTagClickable();
|
|
4150
|
-
},
|
|
4151
|
-
onClick: handleTagClick,
|
|
4152
|
-
onHoverChange: handleTagHoverChange,
|
|
4153
|
-
showMono: true,
|
|
4154
|
-
shrink: true
|
|
4155
|
-
}), null);
|
|
4156
|
-
insert(_el$21, createComponent(ActionPill, {
|
|
4157
|
-
get icon() {
|
|
4158
|
-
return createComponent(IconCursorSimple, {
|
|
4159
|
-
size: 9,
|
|
4160
|
-
"class": "text-black shrink-0"
|
|
4161
|
-
});
|
|
4162
|
-
},
|
|
4163
|
-
get label() {
|
|
4164
|
-
return props.statusText ?? "Grabbing\u2026";
|
|
4165
|
-
}
|
|
4166
|
-
}), null);
|
|
4167
|
-
insert(_el$21, createComponent(Show, {
|
|
4168
|
-
get when() {
|
|
4169
|
-
return memo(() => !!props.hasAgent)() && props.onAbort;
|
|
4170
|
-
},
|
|
4045
|
+
var _el$13 = _tmpl$0(), _el$14 = _el$13.firstChild, _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild;
|
|
4046
|
+
insert(_el$16, () => props.statusText ?? "Grabbing\u2026");
|
|
4047
|
+
insert(_el$13, createComponent(BottomSection, {
|
|
4171
4048
|
get children() {
|
|
4172
|
-
var _el$
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
}));
|
|
4188
|
-
return _el$22;
|
|
4049
|
+
var _el$17 = _tmpl$9(), _el$18 = _el$17.firstChild;
|
|
4050
|
+
var _ref$2 = inputRef;
|
|
4051
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$18) : inputRef = _el$18;
|
|
4052
|
+
insert(_el$17, createComponent(Show, {
|
|
4053
|
+
get when() {
|
|
4054
|
+
return props.onAbort;
|
|
4055
|
+
},
|
|
4056
|
+
get children() {
|
|
4057
|
+
var _el$19 = _tmpl$8();
|
|
4058
|
+
addEventListener(_el$19, "click", props.onAbort);
|
|
4059
|
+
return _el$19;
|
|
4060
|
+
}
|
|
4061
|
+
}), null);
|
|
4062
|
+
createRenderEffect(() => _el$18.value = props.inputValue ?? "");
|
|
4063
|
+
return _el$17;
|
|
4189
4064
|
}
|
|
4190
4065
|
}), null);
|
|
4191
|
-
return _el$
|
|
4066
|
+
return _el$13;
|
|
4192
4067
|
}
|
|
4193
4068
|
}), null);
|
|
4194
|
-
insert(_el$
|
|
4069
|
+
insert(_el$12, createComponent(Show, {
|
|
4195
4070
|
get when() {
|
|
4196
4071
|
return memo(() => !!isNotProcessing())() && !props.isInputExpanded;
|
|
4197
4072
|
},
|
|
4198
4073
|
get children() {
|
|
4199
|
-
var _el$
|
|
4200
|
-
insert(_el$
|
|
4074
|
+
var _el$20 = _tmpl$11(), _el$21 = _el$20.firstChild, _el$23 = _el$21.nextSibling, _el$24 = _el$23.firstChild;
|
|
4075
|
+
insert(_el$21, createComponent(ClickToCopyPill, {
|
|
4201
4076
|
onClick: handleSubmit,
|
|
4202
|
-
shrink: true
|
|
4077
|
+
shrink: true,
|
|
4078
|
+
get hasParent() {
|
|
4079
|
+
return !!props.componentName;
|
|
4080
|
+
}
|
|
4203
4081
|
}), null);
|
|
4204
|
-
insert(_el$
|
|
4082
|
+
insert(_el$21, createComponent(Show, {
|
|
4205
4083
|
get when() {
|
|
4206
4084
|
return props.componentName;
|
|
4207
4085
|
},
|
|
4208
4086
|
get children() {
|
|
4209
|
-
var _el$
|
|
4210
|
-
insert(_el$
|
|
4087
|
+
var _el$22 = _tmpl$1();
|
|
4088
|
+
insert(_el$22, createComponent(ParentBadge, {
|
|
4211
4089
|
get name() {
|
|
4212
4090
|
return props.componentName;
|
|
4213
4091
|
}
|
|
4214
4092
|
}), null);
|
|
4215
|
-
insert(_el$
|
|
4216
|
-
insert(_el$
|
|
4093
|
+
insert(_el$22, createComponent(ChevronSeparator, {}), null);
|
|
4094
|
+
insert(_el$22, createComponent(TagBadge, {
|
|
4217
4095
|
get tagName() {
|
|
4218
4096
|
return tagDisplay();
|
|
4219
4097
|
},
|
|
@@ -4225,10 +4103,10 @@ var SelectionLabel = (props) => {
|
|
|
4225
4103
|
showMono: true,
|
|
4226
4104
|
shrink: true
|
|
4227
4105
|
}), null);
|
|
4228
|
-
return _el$
|
|
4106
|
+
return _el$22;
|
|
4229
4107
|
}
|
|
4230
4108
|
}), null);
|
|
4231
|
-
insert(_el$
|
|
4109
|
+
insert(_el$21, createComponent(Show, {
|
|
4232
4110
|
get when() {
|
|
4233
4111
|
return !props.componentName;
|
|
4234
4112
|
},
|
|
@@ -4247,40 +4125,43 @@ var SelectionLabel = (props) => {
|
|
|
4247
4125
|
});
|
|
4248
4126
|
}
|
|
4249
4127
|
}), null);
|
|
4250
|
-
insert(_el$
|
|
4128
|
+
insert(_el$24, createComponent(BottomSection, {
|
|
4251
4129
|
get children() {
|
|
4252
|
-
var _el$
|
|
4253
|
-
return _el$
|
|
4130
|
+
var _el$25 = _tmpl$10(), _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling; _el$27.firstChild;
|
|
4131
|
+
return _el$25;
|
|
4254
4132
|
}
|
|
4255
4133
|
}));
|
|
4256
|
-
createRenderEffect((_$p) => setStyleProperty(_el$
|
|
4257
|
-
return _el$
|
|
4134
|
+
createRenderEffect((_$p) => setStyleProperty(_el$23, "grid-template-rows", isIdle() ? "1fr" : "0fr"));
|
|
4135
|
+
return _el$20;
|
|
4258
4136
|
}
|
|
4259
4137
|
}), null);
|
|
4260
|
-
insert(_el$
|
|
4138
|
+
insert(_el$12, createComponent(Show, {
|
|
4261
4139
|
get when() {
|
|
4262
4140
|
return memo(() => !!isNotProcessing())() && props.isInputExpanded;
|
|
4263
4141
|
},
|
|
4264
4142
|
get children() {
|
|
4265
|
-
var _el$
|
|
4266
|
-
insert(_el$
|
|
4143
|
+
var _el$29 = _tmpl$13(), _el$30 = _el$29.firstChild;
|
|
4144
|
+
insert(_el$30, createComponent(ClickToCopyPill, {
|
|
4267
4145
|
onClick: handleSubmit,
|
|
4268
4146
|
dimmed: true,
|
|
4269
|
-
shrink: true
|
|
4147
|
+
shrink: true,
|
|
4148
|
+
get hasParent() {
|
|
4149
|
+
return !!props.componentName;
|
|
4150
|
+
}
|
|
4270
4151
|
}), null);
|
|
4271
|
-
insert(_el$
|
|
4152
|
+
insert(_el$30, createComponent(Show, {
|
|
4272
4153
|
get when() {
|
|
4273
4154
|
return props.componentName;
|
|
4274
4155
|
},
|
|
4275
4156
|
get children() {
|
|
4276
|
-
var _el$
|
|
4277
|
-
insert(_el$
|
|
4157
|
+
var _el$31 = _tmpl$1();
|
|
4158
|
+
insert(_el$31, createComponent(ParentBadge, {
|
|
4278
4159
|
get name() {
|
|
4279
4160
|
return props.componentName;
|
|
4280
4161
|
}
|
|
4281
4162
|
}), null);
|
|
4282
|
-
insert(_el$
|
|
4283
|
-
insert(_el$
|
|
4163
|
+
insert(_el$31, createComponent(ChevronSeparator, {}), null);
|
|
4164
|
+
insert(_el$31, createComponent(TagBadge, {
|
|
4284
4165
|
get tagName() {
|
|
4285
4166
|
return tagDisplay();
|
|
4286
4167
|
},
|
|
@@ -4293,10 +4174,10 @@ var SelectionLabel = (props) => {
|
|
|
4293
4174
|
shrink: true,
|
|
4294
4175
|
forceShowIcon: true
|
|
4295
4176
|
}), null);
|
|
4296
|
-
return _el$
|
|
4177
|
+
return _el$31;
|
|
4297
4178
|
}
|
|
4298
4179
|
}), null);
|
|
4299
|
-
insert(_el$
|
|
4180
|
+
insert(_el$30, createComponent(Show, {
|
|
4300
4181
|
get when() {
|
|
4301
4182
|
return !props.componentName;
|
|
4302
4183
|
},
|
|
@@ -4316,29 +4197,29 @@ var SelectionLabel = (props) => {
|
|
|
4316
4197
|
});
|
|
4317
4198
|
}
|
|
4318
4199
|
}), null);
|
|
4319
|
-
insert(_el$
|
|
4200
|
+
insert(_el$29, createComponent(BottomSection, {
|
|
4320
4201
|
get children() {
|
|
4321
|
-
var _el$
|
|
4322
|
-
_el$
|
|
4323
|
-
_el$
|
|
4324
|
-
var _ref$
|
|
4325
|
-
typeof _ref$
|
|
4326
|
-
_el$
|
|
4327
|
-
createRenderEffect(() => className(_el$
|
|
4328
|
-
createRenderEffect(() => _el$
|
|
4329
|
-
return _el$
|
|
4202
|
+
var _el$32 = _tmpl$12(), _el$33 = _el$32.firstChild, _el$34 = _el$33.nextSibling, _el$35 = _el$34.firstChild;
|
|
4203
|
+
_el$33.$$keydown = handleKeyDown;
|
|
4204
|
+
_el$33.$$input = handleInput;
|
|
4205
|
+
var _ref$3 = inputRef;
|
|
4206
|
+
typeof _ref$3 === "function" ? use(_ref$3, _el$33) : inputRef = _el$33;
|
|
4207
|
+
_el$34.$$click = handleSubmit;
|
|
4208
|
+
createRenderEffect(() => className(_el$35, cn("w-2.5 h-[9px] shrink-0 bg-cover bg-center transition-opacity duration-100", props.inputValue ? "opacity-[0.99]" : "opacity-50")));
|
|
4209
|
+
createRenderEffect(() => _el$33.value = props.inputValue ?? "");
|
|
4210
|
+
return _el$32;
|
|
4330
4211
|
}
|
|
4331
4212
|
}), null);
|
|
4332
|
-
return _el$
|
|
4213
|
+
return _el$29;
|
|
4333
4214
|
}
|
|
4334
4215
|
}), null);
|
|
4335
4216
|
createRenderEffect((_p$) => {
|
|
4336
4217
|
var _v$3 = `${computedPosition().top}px`, _v$4 = `${computedPosition().left}px`, _v$5 = props.visible ? "auto" : "none", _v$6 = props.status === "fading" ? 0 : 1, _v$7 = props.status === "copied" || props.status === "fading" ? "none" : void 0;
|
|
4337
|
-
_v$3 !== _p$.e && setStyleProperty(_el$
|
|
4338
|
-
_v$4 !== _p$.t && setStyleProperty(_el$
|
|
4339
|
-
_v$5 !== _p$.a && setStyleProperty(_el$
|
|
4340
|
-
_v$6 !== _p$.o && setStyleProperty(_el$
|
|
4341
|
-
_v$7 !== _p$.i && setStyleProperty(_el$
|
|
4218
|
+
_v$3 !== _p$.e && setStyleProperty(_el$0, "top", _p$.e = _v$3);
|
|
4219
|
+
_v$4 !== _p$.t && setStyleProperty(_el$0, "left", _p$.t = _v$4);
|
|
4220
|
+
_v$5 !== _p$.a && setStyleProperty(_el$0, "pointer-events", _p$.a = _v$5);
|
|
4221
|
+
_v$6 !== _p$.o && setStyleProperty(_el$0, "opacity", _p$.o = _v$6);
|
|
4222
|
+
_v$7 !== _p$.i && setStyleProperty(_el$12, "display", _p$.i = _v$7);
|
|
4342
4223
|
return _p$;
|
|
4343
4224
|
}, {
|
|
4344
4225
|
e: void 0,
|
|
@@ -4347,14 +4228,14 @@ var SelectionLabel = (props) => {
|
|
|
4347
4228
|
o: void 0,
|
|
4348
4229
|
i: void 0
|
|
4349
4230
|
});
|
|
4350
|
-
return _el$
|
|
4231
|
+
return _el$0;
|
|
4351
4232
|
}
|
|
4352
4233
|
});
|
|
4353
4234
|
};
|
|
4354
4235
|
delegateEvents(["click", "mousedown", "input", "keydown"]);
|
|
4355
4236
|
|
|
4356
4237
|
// src/components/selection-cursor.tsx
|
|
4357
|
-
var _tmpl$
|
|
4238
|
+
var _tmpl$15 = /* @__PURE__ */ template(`<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>`);
|
|
4358
4239
|
var SelectionCursor = (props) => {
|
|
4359
4240
|
const [isHovered, setIsHovered] = createSignal(false);
|
|
4360
4241
|
const [debouncedVisible, setDebouncedVisible] = createSignal(false);
|
|
@@ -4391,7 +4272,7 @@ var SelectionCursor = (props) => {
|
|
|
4391
4272
|
});
|
|
4392
4273
|
}
|
|
4393
4274
|
}), (() => {
|
|
4394
|
-
var _el$ = _tmpl$
|
|
4275
|
+
var _el$ = _tmpl$15(), _el$2 = _el$.firstChild;
|
|
4395
4276
|
_el$.addEventListener("mouseleave", () => setIsHovered(false));
|
|
4396
4277
|
_el$.addEventListener("mouseenter", () => setIsHovered(true));
|
|
4397
4278
|
_el$2.$$click = handleClick;
|
|
@@ -4419,6 +4300,9 @@ var SelectionCursor = (props) => {
|
|
|
4419
4300
|
get selectionBounds() {
|
|
4420
4301
|
return props.elementBounds;
|
|
4421
4302
|
},
|
|
4303
|
+
get mouseX() {
|
|
4304
|
+
return props.x;
|
|
4305
|
+
},
|
|
4422
4306
|
visible: true,
|
|
4423
4307
|
get onSubmit() {
|
|
4424
4308
|
return props.onClick;
|
|
@@ -4432,10 +4316,6 @@ var SelectionCursor = (props) => {
|
|
|
4432
4316
|
delegateEvents(["click"]);
|
|
4433
4317
|
|
|
4434
4318
|
// src/components/renderer.tsx
|
|
4435
|
-
var truncateStatus = (status, maxLength = 30) => {
|
|
4436
|
-
if (status.length <= maxLength) return status;
|
|
4437
|
-
return `${status.slice(0, maxLength)}\u2026`;
|
|
4438
|
-
};
|
|
4439
4319
|
var ReactGrabRenderer = (props) => {
|
|
4440
4320
|
return [createComponent(Show, {
|
|
4441
4321
|
get when() {
|
|
@@ -4525,13 +4405,19 @@ var ReactGrabRenderer = (props) => {
|
|
|
4525
4405
|
get selectionBounds() {
|
|
4526
4406
|
return session.selectionBounds;
|
|
4527
4407
|
},
|
|
4408
|
+
get mouseX() {
|
|
4409
|
+
return session.position.x;
|
|
4410
|
+
},
|
|
4528
4411
|
visible: true,
|
|
4529
4412
|
hasAgent: true,
|
|
4530
4413
|
get status() {
|
|
4531
4414
|
return session.isStreaming ? "copying" : "copied";
|
|
4532
4415
|
},
|
|
4533
4416
|
get statusText() {
|
|
4534
|
-
return
|
|
4417
|
+
return session.lastStatus || "Please wait\u2026";
|
|
4418
|
+
},
|
|
4419
|
+
get inputValue() {
|
|
4420
|
+
return session.context.prompt;
|
|
4535
4421
|
},
|
|
4536
4422
|
onAbort: () => props.onAbortSession?.(session.id)
|
|
4537
4423
|
})]
|
|
@@ -4550,6 +4436,9 @@ var ReactGrabRenderer = (props) => {
|
|
|
4550
4436
|
get selectionBounds() {
|
|
4551
4437
|
return props.selectionBounds;
|
|
4552
4438
|
},
|
|
4439
|
+
get mouseX() {
|
|
4440
|
+
return props.mouseX;
|
|
4441
|
+
},
|
|
4553
4442
|
get visible() {
|
|
4554
4443
|
return props.selectionLabelVisible;
|
|
4555
4444
|
},
|
|
@@ -4605,6 +4494,9 @@ var ReactGrabRenderer = (props) => {
|
|
|
4605
4494
|
get selectionBounds() {
|
|
4606
4495
|
return instance.bounds;
|
|
4607
4496
|
},
|
|
4497
|
+
get mouseX() {
|
|
4498
|
+
return instance.mouseX;
|
|
4499
|
+
},
|
|
4608
4500
|
visible: true,
|
|
4609
4501
|
get status() {
|
|
4610
4502
|
return instance.status;
|
|
@@ -4645,8 +4537,8 @@ var ReactGrabRenderer = (props) => {
|
|
|
4645
4537
|
})];
|
|
4646
4538
|
};
|
|
4647
4539
|
|
|
4648
|
-
// ../../node_modules/.pnpm/bippy@0.5.
|
|
4649
|
-
var e = `0.5.
|
|
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`;
|
|
4650
4542
|
var t = `bippy-${e}`;
|
|
4651
4543
|
var n = Object.defineProperty;
|
|
4652
4544
|
var r2 = Object.prototype.hasOwnProperty;
|
|
@@ -4733,10 +4625,7 @@ var _ = () => {
|
|
|
4733
4625
|
}
|
|
4734
4626
|
};
|
|
4735
4627
|
|
|
4736
|
-
// ../../node_modules/.pnpm/bippy@0.5.
|
|
4737
|
-
_();
|
|
4738
|
-
|
|
4739
|
-
// ../../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
|
|
4740
4629
|
var a2 = 0;
|
|
4741
4630
|
var o2 = 1;
|
|
4742
4631
|
var c2 = 5;
|
|
@@ -4749,17 +4638,6 @@ var y = 26;
|
|
|
4749
4638
|
var b = 27;
|
|
4750
4639
|
var ne = 28;
|
|
4751
4640
|
var re = 30;
|
|
4752
|
-
var k = (e2) => {
|
|
4753
|
-
switch (e2.tag) {
|
|
4754
|
-
case c2:
|
|
4755
|
-
case y:
|
|
4756
|
-
case b:
|
|
4757
|
-
return true;
|
|
4758
|
-
default:
|
|
4759
|
-
return typeof e2.type == `string`;
|
|
4760
|
-
}
|
|
4761
|
-
};
|
|
4762
|
-
var me = (e2) => !e2 || typeof e2 != `object` ? false : `pendingProps` in e2 && !(`containerInfo` in e2);
|
|
4763
4641
|
function N(e2, t2, n2 = false) {
|
|
4764
4642
|
if (!e2) return null;
|
|
4765
4643
|
let r3 = t2(e2);
|
|
@@ -4821,18 +4699,6 @@ var Ee = () => {
|
|
|
4821
4699
|
let e2 = h();
|
|
4822
4700
|
return !!e2._instrumentationIsActive || o() || l();
|
|
4823
4701
|
};
|
|
4824
|
-
var De = (e2) => {
|
|
4825
|
-
let t2 = e2.alternate;
|
|
4826
|
-
if (!t2) return e2;
|
|
4827
|
-
if (t2.actualStartTime && e2.actualStartTime) return t2.actualStartTime > e2.actualStartTime ? t2 : e2;
|
|
4828
|
-
for (let t3 of $) {
|
|
4829
|
-
let n2 = N(t3.current, (t4) => {
|
|
4830
|
-
if (t4 === e2) return true;
|
|
4831
|
-
});
|
|
4832
|
-
if (n2) return n2;
|
|
4833
|
-
}
|
|
4834
|
-
return e2;
|
|
4835
|
-
};
|
|
4836
4702
|
var Pe = (e2) => {
|
|
4837
4703
|
let n2 = h();
|
|
4838
4704
|
for (let t2 of n2.renderers.values()) try {
|
|
@@ -4846,243 +4712,79 @@ var Pe = (e2) => {
|
|
|
4846
4712
|
}
|
|
4847
4713
|
return null;
|
|
4848
4714
|
};
|
|
4849
|
-
var $ = /* @__PURE__ */ new Set();
|
|
4850
4715
|
|
|
4851
|
-
// ../../node_modules/.pnpm/bippy@0.5.
|
|
4852
|
-
var
|
|
4853
|
-
var
|
|
4854
|
-
var
|
|
4855
|
-
var
|
|
4856
|
-
var
|
|
4857
|
-
var
|
|
4858
|
-
var
|
|
4859
|
-
var
|
|
4860
|
-
if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 =
|
|
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 });
|
|
4861
4726
|
return e2;
|
|
4862
4727
|
};
|
|
4863
|
-
var
|
|
4864
|
-
var
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
var
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
e2 && typeof e2 == `object` && (`H` in e2 ? e2.H = t2 : e2.current = t2);
|
|
4876
|
-
}
|
|
4877
|
-
};
|
|
4878
|
-
var w2 = (e2) => `
|
|
4879
|
-
in ${e2}`;
|
|
4880
|
-
var T2 = (e2, t2) => {
|
|
4881
|
-
let n2 = w2(e2);
|
|
4882
|
-
return t2 && (n2 += ` (at ${t2})`), n2;
|
|
4883
|
-
};
|
|
4884
|
-
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\])?$/;
|
|
4885
4740
|
var D = (e2, t2) => {
|
|
4886
|
-
|
|
4887
|
-
let n2 = Error.prepareStackTrace;
|
|
4888
|
-
Error.prepareStackTrace = void 0, E = true;
|
|
4889
|
-
let r3 = oe2();
|
|
4890
|
-
C2(null);
|
|
4891
|
-
let i2 = console.error, a3 = console.warn;
|
|
4892
|
-
console.error = () => {
|
|
4893
|
-
}, console.warn = () => {
|
|
4894
|
-
};
|
|
4895
|
-
try {
|
|
4896
|
-
let n3 = { DetermineComponentFrameRoot() {
|
|
4897
|
-
let n4;
|
|
4898
|
-
try {
|
|
4899
|
-
if (t2) {
|
|
4900
|
-
let t3 = function() {
|
|
4901
|
-
throw Error();
|
|
4902
|
-
};
|
|
4903
|
-
if (Object.defineProperty(t3.prototype, `props`, { set: function() {
|
|
4904
|
-
throw Error();
|
|
4905
|
-
} }), typeof Reflect == `object` && Reflect.construct) {
|
|
4906
|
-
try {
|
|
4907
|
-
Reflect.construct(t3, []);
|
|
4908
|
-
} catch (e3) {
|
|
4909
|
-
n4 = e3;
|
|
4910
|
-
}
|
|
4911
|
-
Reflect.construct(e2, [], t3);
|
|
4912
|
-
} else {
|
|
4913
|
-
try {
|
|
4914
|
-
t3.call();
|
|
4915
|
-
} catch (e3) {
|
|
4916
|
-
n4 = e3;
|
|
4917
|
-
}
|
|
4918
|
-
e2.call(t3.prototype);
|
|
4919
|
-
}
|
|
4920
|
-
} else {
|
|
4921
|
-
try {
|
|
4922
|
-
throw Error();
|
|
4923
|
-
} catch (e3) {
|
|
4924
|
-
n4 = e3;
|
|
4925
|
-
}
|
|
4926
|
-
let t3 = e2();
|
|
4927
|
-
t3 && typeof t3.catch == `function` && t3.catch(() => {
|
|
4928
|
-
});
|
|
4929
|
-
}
|
|
4930
|
-
} catch (e3) {
|
|
4931
|
-
if (e3 instanceof Error && n4 instanceof Error && typeof e3.stack == `string`) return [e3.stack, n4.stack];
|
|
4932
|
-
}
|
|
4933
|
-
return [null, null];
|
|
4934
|
-
} };
|
|
4935
|
-
n3.DetermineComponentFrameRoot.displayName = `DetermineComponentFrameRoot`;
|
|
4936
|
-
let r4 = Object.getOwnPropertyDescriptor(n3.DetermineComponentFrameRoot, `name`);
|
|
4937
|
-
r4?.configurable && Object.defineProperty(n3.DetermineComponentFrameRoot, `name`, { value: `DetermineComponentFrameRoot` });
|
|
4938
|
-
let [i3, a4] = n3.DetermineComponentFrameRoot();
|
|
4939
|
-
if (i3 && a4) {
|
|
4940
|
-
let t3 = i3.split(`
|
|
4941
|
-
`), n4 = a4.split(`
|
|
4942
|
-
`), r5 = 0, o4 = 0;
|
|
4943
|
-
for (; r5 < t3.length && !t3[r5].includes(`DetermineComponentFrameRoot`); ) r5++;
|
|
4944
|
-
for (; o4 < n4.length && !n4[o4].includes(`DetermineComponentFrameRoot`); ) o4++;
|
|
4945
|
-
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--;
|
|
4946
|
-
for (; r5 >= 1 && o4 >= 0; r5--, o4--) if (t3[r5] !== n4[o4]) {
|
|
4947
|
-
if (r5 !== 1 || o4 !== 1) do
|
|
4948
|
-
if (r5--, o4--, o4 < 0 || t3[r5] !== n4[o4]) {
|
|
4949
|
-
let n5 = `
|
|
4950
|
-
${t3[r5].replace(` at new `, ` at `)}`, i4 = Te(e2);
|
|
4951
|
-
return i4 && n5.includes(`<anonymous>`) && (n5 = n5.replace(`<anonymous>`, i4)), n5;
|
|
4952
|
-
}
|
|
4953
|
-
while (r5 >= 1 && o4 >= 0);
|
|
4954
|
-
break;
|
|
4955
|
-
}
|
|
4956
|
-
}
|
|
4957
|
-
} finally {
|
|
4958
|
-
E = false, Error.prepareStackTrace = n2, C2(r3), console.error = i2, console.warn = a3;
|
|
4959
|
-
}
|
|
4960
|
-
let o3 = e2 ? Te(e2) : ``, s3 = o3 ? w2(o3) : ``;
|
|
4961
|
-
return s3;
|
|
4962
|
-
};
|
|
4963
|
-
var se2 = (e2, t2) => {
|
|
4964
|
-
let m3 = e2.tag, h3 = ``;
|
|
4965
|
-
switch (m3) {
|
|
4966
|
-
case ne:
|
|
4967
|
-
h3 = w2(`Activity`);
|
|
4968
|
-
break;
|
|
4969
|
-
case o2:
|
|
4970
|
-
h3 = D(e2.type, true);
|
|
4971
|
-
break;
|
|
4972
|
-
case f2:
|
|
4973
|
-
h3 = D(e2.type.render, false);
|
|
4974
|
-
break;
|
|
4975
|
-
case a2:
|
|
4976
|
-
case h2:
|
|
4977
|
-
h3 = D(e2.type, false);
|
|
4978
|
-
break;
|
|
4979
|
-
case c2:
|
|
4980
|
-
case y:
|
|
4981
|
-
case b:
|
|
4982
|
-
h3 = w2(e2.type);
|
|
4983
|
-
break;
|
|
4984
|
-
case ee:
|
|
4985
|
-
h3 = w2(`Lazy`);
|
|
4986
|
-
break;
|
|
4987
|
-
case p2:
|
|
4988
|
-
h3 = e2.child !== t2 && t2 !== null ? w2(`Suspense Fallback`) : w2(`Suspense`);
|
|
4989
|
-
break;
|
|
4990
|
-
case te:
|
|
4991
|
-
h3 = w2(`SuspenseList`);
|
|
4992
|
-
break;
|
|
4993
|
-
case re:
|
|
4994
|
-
h3 = w2(`ViewTransition`);
|
|
4995
|
-
break;
|
|
4996
|
-
default:
|
|
4997
|
-
return ``;
|
|
4998
|
-
}
|
|
4999
|
-
return h3;
|
|
5000
|
-
};
|
|
5001
|
-
var ce2 = (e2) => {
|
|
5002
|
-
try {
|
|
5003
|
-
let t2 = ``, n2 = e2, r3 = null;
|
|
5004
|
-
do {
|
|
5005
|
-
t2 += se2(n2, r3);
|
|
5006
|
-
let e3 = n2._debugInfo;
|
|
5007
|
-
if (e3 && Array.isArray(e3)) for (let n3 = e3.length - 1; n3 >= 0; n3--) {
|
|
5008
|
-
let r4 = e3[n3];
|
|
5009
|
-
typeof r4.name == `string` && (t2 += T2(r4.name, r4.env));
|
|
5010
|
-
}
|
|
5011
|
-
r3 = n2, n2 = n2.return;
|
|
5012
|
-
} while (n2);
|
|
5013
|
-
return t2;
|
|
5014
|
-
} catch (e3) {
|
|
5015
|
-
return e3 instanceof Error ? `
|
|
5016
|
-
Error generating stack: ${e3.message}
|
|
5017
|
-
${e3.stack}` : ``;
|
|
5018
|
-
}
|
|
5019
|
-
};
|
|
5020
|
-
var le2 = (e2) => {
|
|
5021
|
-
let t2 = Error.prepareStackTrace;
|
|
5022
|
-
Error.prepareStackTrace = void 0;
|
|
5023
|
-
let n2 = e2;
|
|
5024
|
-
if (!n2) return ``;
|
|
5025
|
-
Error.prepareStackTrace = t2, n2.startsWith(`Error: react-stack-top-frame
|
|
5026
|
-
`) && (n2 = n2.slice(29));
|
|
5027
|
-
let r3 = n2.indexOf(`
|
|
5028
|
-
`);
|
|
5029
|
-
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(`
|
|
5030
|
-
`, r3)), r3 !== -1) n2 = n2.slice(0, r3);
|
|
5031
|
-
else return ``;
|
|
5032
|
-
return n2;
|
|
5033
|
-
};
|
|
5034
|
-
var O2 = /(^|@)\S+:\d+/;
|
|
5035
|
-
var k2 = /^\s*at .*(\S+:\d+|\(native\))/m;
|
|
5036
|
-
var ue2 = /^(eval@)?(\[native code\])?$/;
|
|
5037
|
-
var j2 = (e2, t2) => {
|
|
5038
|
-
if (t2?.includeInElement !== false) {
|
|
4741
|
+
{
|
|
5039
4742
|
let n2 = e2.split(`
|
|
5040
4743
|
`), r3 = [];
|
|
5041
4744
|
for (let e3 of n2) if (/^\s*at\s+/.test(e3)) {
|
|
5042
|
-
let t3 =
|
|
4745
|
+
let t3 = A(e3, void 0)[0];
|
|
5043
4746
|
t3 && r3.push(t3);
|
|
5044
4747
|
} else if (/^\s*in\s+/.test(e3)) {
|
|
5045
4748
|
let t3 = e3.replace(/^\s*in\s+/, ``).replace(/\s*\(at .*\)$/, ``);
|
|
5046
|
-
r3.push({
|
|
5047
|
-
} else if (e3.match(
|
|
5048
|
-
let t3 =
|
|
4749
|
+
r3.push({ functionName: t3, source: e3 });
|
|
4750
|
+
} else if (e3.match(oe2)) {
|
|
4751
|
+
let t3 = j(e3, void 0)[0];
|
|
5049
4752
|
t3 && r3.push(t3);
|
|
5050
4753
|
}
|
|
5051
|
-
return
|
|
4754
|
+
return k(r3, t2);
|
|
5052
4755
|
}
|
|
5053
|
-
return e2.match(k2) ? P2(e2, t2) : F2(e2, t2);
|
|
5054
4756
|
};
|
|
5055
|
-
var
|
|
4757
|
+
var O2 = (e2) => {
|
|
5056
4758
|
if (!e2.includes(`:`)) return [e2, void 0, void 0];
|
|
5057
4759
|
let t2 = /(.+?)(?::(\d+))?(?::(\d+))?$/, n2 = t2.exec(e2.replace(/[()]/g, ``));
|
|
5058
4760
|
return [n2[1], n2[2] || void 0, n2[3] || void 0];
|
|
5059
4761
|
};
|
|
5060
|
-
var
|
|
5061
|
-
var
|
|
5062
|
-
let n2 =
|
|
5063
|
-
`).filter((e3) => !!e3.match(
|
|
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);
|
|
5064
4766
|
return n2.map((e3) => {
|
|
5065
4767
|
let t3 = e3;
|
|
5066
4768
|
t3.includes(`(eval `) && (t3 = t3.replace(/eval code/g, `eval`).replace(/(\(eval at [^()]*)|(,.*$)/g, ``));
|
|
5067
4769
|
let n3 = t3.replace(/^\s+/, ``).replace(/\(eval code/g, `(`).replace(/^.*?\s+/, ``), r3 = n3.match(/ (\(.+\)$)/);
|
|
5068
4770
|
n3 = r3 ? n3.replace(r3[0], ``) : n3;
|
|
5069
|
-
let i2 =
|
|
5070
|
-
return {
|
|
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 };
|
|
5071
4773
|
});
|
|
5072
4774
|
};
|
|
5073
|
-
var
|
|
5074
|
-
let n2 =
|
|
5075
|
-
`).filter((e3) => !e3.match(
|
|
4775
|
+
var j = (e2, t2) => {
|
|
4776
|
+
let n2 = k(e2.split(`
|
|
4777
|
+
`).filter((e3) => !e3.match(ce2)), t2);
|
|
5076
4778
|
return n2.map((e3) => {
|
|
5077
4779
|
let t3 = e3;
|
|
5078
|
-
if (t3.includes(` > eval`) && (t3 = t3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, `:$1`)), !t3.includes(`@`) && !t3.includes(`:`)) return {
|
|
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 };
|
|
5079
4781
|
{
|
|
5080
|
-
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 =
|
|
5081
|
-
return {
|
|
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 };
|
|
5082
4784
|
}
|
|
5083
4785
|
});
|
|
5084
4786
|
};
|
|
5085
|
-
var
|
|
4787
|
+
var pe = S((exports, t2) => {
|
|
5086
4788
|
(function(n2, r3) {
|
|
5087
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 = {}));
|
|
5088
4790
|
})(void 0, function(e2) {
|
|
@@ -5173,10 +4875,10 @@ var me2 = re2((exports, t2) => {
|
|
|
5173
4875
|
}
|
|
5174
4876
|
function h3(e3) {
|
|
5175
4877
|
let t4 = new d3();
|
|
5176
|
-
for (let n3 = 0; n3 < e3.length; ) n3 =
|
|
4878
|
+
for (let n3 = 0; n3 < e3.length; ) n3 = g4(e3, n3, t4, [0]);
|
|
5177
4879
|
return t4.flush();
|
|
5178
4880
|
}
|
|
5179
|
-
function
|
|
4881
|
+
function g4(e3, n3, r4, i3) {
|
|
5180
4882
|
let a4 = e3[n3], { 0: o4, 1: c4, 2: l4, 3: u4, 4: d4, vars: f4 } = a4;
|
|
5181
4883
|
n3 > 0 && r4.write(t3), i3[0] = s3(r4, o4, i3[0]), s3(r4, c4, 0), s3(r4, d4, 0);
|
|
5182
4884
|
let p4 = a4.length === 6 ? 1 : 0;
|
|
@@ -5185,12 +4887,12 @@ var me2 = re2((exports, t2) => {
|
|
|
5185
4887
|
for (n3++; n3 < e3.length; ) {
|
|
5186
4888
|
let t4 = e3[n3], { 0: a5, 1: o5 } = t4;
|
|
5187
4889
|
if (a5 > l4 || a5 === l4 && o5 >= u4) break;
|
|
5188
|
-
n3 =
|
|
4890
|
+
n3 = g4(e3, n3, r4, i3);
|
|
5189
4891
|
}
|
|
5190
4892
|
return r4.write(t3), i3[0] = s3(r4, l4, i3[0]), s3(r4, u4, 0), n3;
|
|
5191
4893
|
}
|
|
5192
|
-
function
|
|
5193
|
-
let { length: t4 } = e3, n3 = new f3(e3), r4 = [], i3 = [], a4 = 0, s4 = 0, l4 = 0, u4 = 0, d4 = 0, m4 = 0, h4 = 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;
|
|
5194
4896
|
do {
|
|
5195
4897
|
let e4 = n3.indexOf(`;`), t5 = 0;
|
|
5196
4898
|
for (; n3.pos < e4; n3.pos++) {
|
|
@@ -5199,12 +4901,12 @@ var me2 = re2((exports, t2) => {
|
|
|
5199
4901
|
e5[2] = a4, e5[3] = t5;
|
|
5200
4902
|
continue;
|
|
5201
4903
|
}
|
|
5202
|
-
let f4 = o3(n3, 0),
|
|
5203
|
-
if (
|
|
4904
|
+
let f4 = o3(n3, 0), _5 = f4 & 1, v4 = f4 & 2, y4 = f4 & 4, b4 = null, x4 = p3, S4;
|
|
4905
|
+
if (_5) {
|
|
5204
4906
|
let e5 = o3(n3, s4);
|
|
5205
4907
|
l4 = o3(n3, s4 === e5 ? l4 : 0), s4 = e5, S4 = [a4, t5, 0, 0, e5, l4];
|
|
5206
4908
|
} else S4 = [a4, t5, 0, 0];
|
|
5207
|
-
if (S4.isScope = !!
|
|
4909
|
+
if (S4.isScope = !!y4, v4) {
|
|
5208
4910
|
let e5 = u4, t6 = d4;
|
|
5209
4911
|
u4 = o3(n3, u4);
|
|
5210
4912
|
let r5 = e5 === u4;
|
|
@@ -5213,15 +4915,15 @@ var me2 = re2((exports, t2) => {
|
|
|
5213
4915
|
if (S4.callsite = b4, c3(n3, e4)) {
|
|
5214
4916
|
x4 = [];
|
|
5215
4917
|
do {
|
|
5216
|
-
h4 = a4,
|
|
4918
|
+
h4 = a4, g5 = t5;
|
|
5217
4919
|
let e5 = o3(n3, 0), r5;
|
|
5218
4920
|
if (e5 < -1) {
|
|
5219
4921
|
r5 = [[o3(n3, 0)]];
|
|
5220
4922
|
for (let t6 = -1; t6 > e5; t6--) {
|
|
5221
4923
|
let e6 = h4;
|
|
5222
|
-
h4 = o3(n3, h4),
|
|
4924
|
+
h4 = o3(n3, h4), g5 = o3(n3, h4 === e6 ? g5 : 0);
|
|
5223
4925
|
let t7 = o3(n3, 0);
|
|
5224
|
-
r5.push([t7, h4,
|
|
4926
|
+
r5.push([t7, h4, g5]);
|
|
5225
4927
|
}
|
|
5226
4928
|
} else r5 = [[e5]];
|
|
5227
4929
|
x4.push(r5);
|
|
@@ -5233,13 +4935,13 @@ var me2 = re2((exports, t2) => {
|
|
|
5233
4935
|
} while (n3.pos < t4);
|
|
5234
4936
|
return r4;
|
|
5235
4937
|
}
|
|
5236
|
-
function
|
|
4938
|
+
function v3(e3) {
|
|
5237
4939
|
if (e3.length === 0) return ``;
|
|
5238
4940
|
let t4 = new d3();
|
|
5239
|
-
for (let n3 = 0; n3 < e3.length; ) n3 =
|
|
4941
|
+
for (let n3 = 0; n3 < e3.length; ) n3 = y3(e3, n3, t4, [0, 0, 0, 0, 0, 0, 0]);
|
|
5240
4942
|
return t4.flush();
|
|
5241
4943
|
}
|
|
5242
|
-
function
|
|
4944
|
+
function y3(e3, n3, r4, i3) {
|
|
5243
4945
|
let a4 = e3[n3], { 0: o4, 1: c4, 2: l4, 3: u4, isScope: d4, callsite: f4, bindings: p4 } = a4;
|
|
5244
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]);
|
|
5245
4947
|
let m4 = (a4.length === 6 ? 1 : 0) | (f4 ? 2 : 0) | (d4 ? 4 : 0);
|
|
@@ -5264,7 +4966,7 @@ var me2 = re2((exports, t2) => {
|
|
|
5264
4966
|
for (n3++; n3 < e3.length; ) {
|
|
5265
4967
|
let t4 = e3[n3], { 0: a5, 1: o5 } = t4;
|
|
5266
4968
|
if (a5 > l4 || a5 === l4 && o5 >= u4) break;
|
|
5267
|
-
n3 =
|
|
4969
|
+
n3 = y3(e3, n3, r4, i3);
|
|
5268
4970
|
}
|
|
5269
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;
|
|
5270
4972
|
}
|
|
@@ -5291,7 +4993,7 @@ var me2 = re2((exports, t2) => {
|
|
|
5291
4993
|
function ee3(e3, t4) {
|
|
5292
4994
|
return e3[0] - t4[0];
|
|
5293
4995
|
}
|
|
5294
|
-
function
|
|
4996
|
+
function C3(e3) {
|
|
5295
4997
|
let r4 = new d3(), i3 = 0, a4 = 0, o4 = 0, c4 = 0;
|
|
5296
4998
|
for (let l4 = 0; l4 < e3.length; l4++) {
|
|
5297
4999
|
let u4 = e3[l4];
|
|
@@ -5304,18 +5006,18 @@ var me2 = re2((exports, t2) => {
|
|
|
5304
5006
|
}
|
|
5305
5007
|
return r4.flush();
|
|
5306
5008
|
}
|
|
5307
|
-
e2.decode = x3, e2.decodeGeneratedRanges =
|
|
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 });
|
|
5308
5010
|
});
|
|
5309
5011
|
});
|
|
5310
|
-
var
|
|
5311
|
-
var
|
|
5312
|
-
var
|
|
5313
|
-
var
|
|
5314
|
-
var
|
|
5315
|
-
var
|
|
5316
|
-
var
|
|
5317
|
-
var
|
|
5318
|
-
var
|
|
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) => {
|
|
5319
5021
|
if (n2 < 0 || n2 >= e2.length) return null;
|
|
5320
5022
|
let i2 = e2[n2];
|
|
5321
5023
|
if (!i2 || i2.length === 0) return null;
|
|
@@ -5328,49 +5030,49 @@ var W2 = (e2, t2, n2, r3) => {
|
|
|
5328
5030
|
let l3 = t2[o3];
|
|
5329
5031
|
return l3 ? { columnNumber: c3, fileName: l3, lineNumber: s3 + 1 } : null;
|
|
5330
5032
|
};
|
|
5331
|
-
var
|
|
5033
|
+
var V = (e2, t2, n2) => {
|
|
5332
5034
|
if (e2.sections) {
|
|
5333
5035
|
let r3 = null;
|
|
5334
5036
|
for (let i3 of e2.sections) if (t2 > i3.offset.line || t2 === i3.offset.line && n2 >= i3.offset.column) r3 = i3;
|
|
5335
5037
|
else break;
|
|
5336
5038
|
if (!r3) return null;
|
|
5337
5039
|
let i2 = t2 - r3.offset.line, a3 = t2 === r3.offset.line ? n2 - r3.offset.column : n2;
|
|
5338
|
-
return
|
|
5040
|
+
return B(r3.map.mappings, r3.map.sources, i2, a3);
|
|
5339
5041
|
}
|
|
5340
|
-
return
|
|
5042
|
+
return B(e2.mappings, e2.sources, t2 - 1, n2);
|
|
5341
5043
|
};
|
|
5342
|
-
var
|
|
5044
|
+
var _e = (e2, t2) => {
|
|
5343
5045
|
let n2 = t2.split(`
|
|
5344
5046
|
`), r3;
|
|
5345
5047
|
for (let e3 = n2.length - 1; e3 >= 0 && !r3; e3--) {
|
|
5346
|
-
let t3 = n2[e3].match(
|
|
5048
|
+
let t3 = n2[e3].match(he);
|
|
5347
5049
|
t3 && (r3 = t3[1] || t3[2]);
|
|
5348
5050
|
}
|
|
5349
5051
|
if (!r3) return null;
|
|
5350
|
-
let i2 =
|
|
5351
|
-
if (!(
|
|
5052
|
+
let i2 = I2.test(r3);
|
|
5053
|
+
if (!(me.test(r3) || i2 || r3.startsWith(`/`))) {
|
|
5352
5054
|
let t3 = e2.split(`/`);
|
|
5353
5055
|
t3[t3.length - 1] = r3, r3 = t3.join(`/`);
|
|
5354
5056
|
}
|
|
5355
5057
|
return r3;
|
|
5356
5058
|
};
|
|
5357
|
-
var
|
|
5358
|
-
var
|
|
5359
|
-
let t2 = e2.sections.map(({ map: e3, offset: t3 }) => ({ map: { ...e3, mappings: (0,
|
|
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();
|
|
5360
5062
|
for (let e3 of t2) for (let t3 of e3.map.sources) n2.add(t3);
|
|
5361
5063
|
return { file: e2.file, mappings: [], names: [], sections: t2, sourceRoot: void 0, sources: Array.from(n2), sourcesContent: void 0, version: 3 };
|
|
5362
5064
|
};
|
|
5363
|
-
var
|
|
5065
|
+
var H = (e2) => {
|
|
5364
5066
|
if (!e2) return false;
|
|
5365
5067
|
let t2 = e2.trim();
|
|
5366
5068
|
if (!t2) return false;
|
|
5367
|
-
let n2 = t2.match(
|
|
5069
|
+
let n2 = t2.match(I2);
|
|
5368
5070
|
if (!n2) return true;
|
|
5369
5071
|
let r3 = n2[0].toLowerCase();
|
|
5370
5072
|
return r3 === `http:` || r3 === `https:`;
|
|
5371
5073
|
};
|
|
5372
|
-
var
|
|
5373
|
-
if (!
|
|
5074
|
+
var U = async (e2, t2 = fetch) => {
|
|
5075
|
+
if (!H(e2)) return null;
|
|
5374
5076
|
let n2;
|
|
5375
5077
|
try {
|
|
5376
5078
|
let r4 = await t2(e2);
|
|
@@ -5379,105 +5081,284 @@ var q = async (e2, t2 = fetch) => {
|
|
|
5379
5081
|
return null;
|
|
5380
5082
|
}
|
|
5381
5083
|
if (!n2) return null;
|
|
5382
|
-
let r3 =
|
|
5383
|
-
if (!r3 || !
|
|
5084
|
+
let r3 = _e(e2, n2);
|
|
5085
|
+
if (!r3 || !H(r3)) return null;
|
|
5384
5086
|
try {
|
|
5385
5087
|
let e3 = await t2(r3), n3 = await e3.json();
|
|
5386
|
-
return `sections` in n3 ?
|
|
5088
|
+
return `sections` in n3 ? ye(n3) : ve(n3);
|
|
5387
5089
|
} catch {
|
|
5388
5090
|
return null;
|
|
5389
5091
|
}
|
|
5390
5092
|
};
|
|
5391
|
-
var
|
|
5392
|
-
if (t2 &&
|
|
5393
|
-
let t3 =
|
|
5093
|
+
var W = async (e2, t2 = true, n2) => {
|
|
5094
|
+
if (t2 && R.has(e2)) {
|
|
5095
|
+
let t3 = R.get(e2);
|
|
5394
5096
|
if (t3 == null) return null;
|
|
5395
|
-
if (
|
|
5097
|
+
if (ge(t3)) {
|
|
5396
5098
|
let n3 = t3.deref();
|
|
5397
5099
|
if (n3) return n3;
|
|
5398
|
-
|
|
5100
|
+
R.delete(e2);
|
|
5399
5101
|
} else return t3;
|
|
5400
5102
|
}
|
|
5401
|
-
if (t2 &&
|
|
5402
|
-
let r3 =
|
|
5403
|
-
t2 &&
|
|
5103
|
+
if (t2 && z.has(e2)) return z.get(e2);
|
|
5104
|
+
let r3 = U(e2, n2);
|
|
5105
|
+
t2 && z.set(e2, r3);
|
|
5404
5106
|
let i2 = await r3;
|
|
5405
|
-
return t2 &&
|
|
5406
|
-
};
|
|
5407
|
-
var xe2 = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
|
|
5408
|
-
var Se2 = [`rsc://`, `file:///`, `webpack://`, `webpack-internal://`, `node:`, `turbopack://`, `metro://`, `/app-pages-browser/`];
|
|
5409
|
-
var Ce2 = `about://React/`;
|
|
5410
|
-
var we2 = [`<anonymous>`, `eval`, ``];
|
|
5411
|
-
var Te2 = /\.(jsx|tsx|ts|js)$/;
|
|
5412
|
-
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;
|
|
5413
|
-
var De2 = /^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/;
|
|
5414
|
-
var Y = (e2) => e2?.fileName != null;
|
|
5415
|
-
var Oe = (e2) => e2._debugStack instanceof Error && typeof e2._debugStack?.stack == `string`;
|
|
5416
|
-
var ke2 = (e2) => {
|
|
5417
|
-
let t2 = e2._debugSource;
|
|
5418
|
-
return t2 ? typeof t2 == `object` && !!t2 && `fileName` in t2 && typeof t2.fileName == `string` && `lineNumber` in t2 && typeof t2.lineNumber == `number` : false;
|
|
5107
|
+
return t2 && z.delete(e2), t2 && (i2 === null ? R.set(e2, null) : R.set(e2, L ? new WeakRef(i2) : i2)), i2;
|
|
5419
5108
|
};
|
|
5420
|
-
var
|
|
5421
|
-
if (
|
|
5422
|
-
|
|
5423
|
-
|
|
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;
|
|
5424
5122
|
}
|
|
5425
|
-
let r3 = X2(e2), i2 = await Z(r3, 2 ** 53 - 1, t2, n2);
|
|
5426
|
-
if (!i2 || i2.length === 0) return null;
|
|
5427
|
-
for (let e3 of i2) if (Y(e3)) return e3;
|
|
5428
5123
|
return null;
|
|
5429
5124
|
};
|
|
5430
|
-
var
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
}
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
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;
|
|
5444
5208
|
}
|
|
5445
5209
|
}
|
|
5446
|
-
|
|
5210
|
+
} finally {
|
|
5211
|
+
X = false, Error.prepareStackTrace = n2, q(r3), console.error = i2, console.warn = a3;
|
|
5212
|
+
}
|
|
5213
|
+
let o3 = e2 ? Te(e2) : ``, s3 = o3 ? J(o3) : ``;
|
|
5214
|
+
return s3;
|
|
5215
|
+
};
|
|
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));
|
|
5447
5295
|
}
|
|
5448
|
-
return
|
|
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})`) };
|
|
5449
5304
|
};
|
|
5450
|
-
var
|
|
5451
|
-
|
|
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 ``;
|
|
5452
5326
|
let t2 = e2;
|
|
5453
|
-
if (t2.startsWith(
|
|
5454
|
-
let e3 = t2.slice(
|
|
5455
|
-
t2 = n3 !== -1 && (
|
|
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;
|
|
5456
5330
|
}
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
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
|
+
}
|
|
5460
5338
|
}
|
|
5461
|
-
if (
|
|
5462
|
-
let e3 = t2.match(
|
|
5339
|
+
if (w.test(t2)) {
|
|
5340
|
+
let e3 = t2.match(w);
|
|
5463
5341
|
e3 && (t2 = t2.slice(e3[0].length));
|
|
5464
5342
|
}
|
|
5465
|
-
let
|
|
5466
|
-
if (
|
|
5467
|
-
let e3 = t2.slice(
|
|
5468
|
-
|
|
5343
|
+
let r3 = t2.indexOf(`?`);
|
|
5344
|
+
if (r3 !== -1) {
|
|
5345
|
+
let e3 = t2.slice(r3);
|
|
5346
|
+
ae2.test(e3) && (t2 = t2.slice(0, r3));
|
|
5469
5347
|
}
|
|
5470
5348
|
return t2;
|
|
5471
5349
|
};
|
|
5472
|
-
var
|
|
5473
|
-
let t2 =
|
|
5474
|
-
return !(!t2 || !
|
|
5350
|
+
var je = (e2) => {
|
|
5351
|
+
let t2 = $(e2);
|
|
5352
|
+
return !(!t2 || !re2.test(t2) || ie2.test(t2));
|
|
5475
5353
|
};
|
|
5476
5354
|
|
|
5477
5355
|
// src/utils/is-capitalized.ts
|
|
5478
5356
|
var isCapitalized = (value) => value.length > 0 && /^[A-Z]/.test(value);
|
|
5479
5357
|
|
|
5480
|
-
//
|
|
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
|
|
5481
5362
|
var NEXT_INTERNAL_COMPONENT_NAMES = /* @__PURE__ */ new Set([
|
|
5482
5363
|
"InnerLayoutRouter",
|
|
5483
5364
|
"RedirectErrorBoundary",
|
|
@@ -5501,11 +5382,14 @@ var NEXT_INTERNAL_COMPONENT_NAMES = /* @__PURE__ */ new Set([
|
|
|
5501
5382
|
"AppRouter",
|
|
5502
5383
|
"ServerRoot",
|
|
5503
5384
|
"SegmentStateProvider",
|
|
5504
|
-
"RootErrorBoundary"
|
|
5385
|
+
"RootErrorBoundary",
|
|
5386
|
+
"LoadableComponent"
|
|
5505
5387
|
]);
|
|
5506
5388
|
var checkIsNextProject = () => {
|
|
5507
5389
|
if (typeof document === "undefined") return false;
|
|
5508
|
-
return Boolean(
|
|
5390
|
+
return Boolean(
|
|
5391
|
+
document.getElementById("__NEXT_DATA__") || document.querySelector("nextjs-portal")
|
|
5392
|
+
);
|
|
5509
5393
|
};
|
|
5510
5394
|
var checkIsInternalComponentName = (name) => {
|
|
5511
5395
|
if (name.startsWith("_")) return true;
|
|
@@ -5521,105 +5405,60 @@ var checkIsSourceComponentName = (name) => {
|
|
|
5521
5405
|
};
|
|
5522
5406
|
var getStack = async (element) => {
|
|
5523
5407
|
if (!Ee()) return [];
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
const ownerStack = X2(maybeFiber);
|
|
5528
|
-
const sources = await Z(ownerStack);
|
|
5529
|
-
if (sources && sources.length > 0) {
|
|
5530
|
-
const stack = [];
|
|
5531
|
-
for (const source of sources) {
|
|
5532
|
-
if (source.functionName && !checkIsInternalComponentName(source.functionName)) {
|
|
5533
|
-
stack.push({
|
|
5534
|
-
name: source.functionName,
|
|
5535
|
-
source: source.fileName ? {
|
|
5536
|
-
fileName: source.fileName,
|
|
5537
|
-
lineNumber: source.lineNumber,
|
|
5538
|
-
columnNumber: source.columnNumber
|
|
5539
|
-
} : null
|
|
5540
|
-
});
|
|
5541
|
-
}
|
|
5542
|
-
}
|
|
5543
|
-
if (stack.length > 0) {
|
|
5544
|
-
return stack;
|
|
5545
|
-
}
|
|
5546
|
-
}
|
|
5547
|
-
const fiber = De(maybeFiber);
|
|
5548
|
-
const unresolvedStack = [];
|
|
5549
|
-
N(
|
|
5550
|
-
fiber,
|
|
5551
|
-
(currentFiber) => {
|
|
5552
|
-
const displayName = k(currentFiber) ? typeof currentFiber.type === "string" ? currentFiber.type : null : Te(currentFiber);
|
|
5553
|
-
if (displayName && !checkIsInternalComponentName(displayName)) {
|
|
5554
|
-
unresolvedStack.push({
|
|
5555
|
-
name: displayName,
|
|
5556
|
-
sourcePromise: Ae2(currentFiber)
|
|
5557
|
-
});
|
|
5558
|
-
}
|
|
5559
|
-
},
|
|
5560
|
-
true
|
|
5561
|
-
);
|
|
5562
|
-
const resolvedStack = await Promise.all(
|
|
5563
|
-
unresolvedStack.map(async (frame) => ({
|
|
5564
|
-
name: frame.name,
|
|
5565
|
-
source: await frame.sourcePromise
|
|
5566
|
-
}))
|
|
5567
|
-
);
|
|
5568
|
-
return resolvedStack.filter((frame) => frame.source !== null);
|
|
5569
|
-
} catch {
|
|
5570
|
-
return [];
|
|
5571
|
-
}
|
|
5408
|
+
const fiber = Pe(element);
|
|
5409
|
+
if (!fiber) return null;
|
|
5410
|
+
return await Q(fiber);
|
|
5572
5411
|
};
|
|
5573
5412
|
var getNearestComponentName = async (element) => {
|
|
5413
|
+
if (Ee()) return null;
|
|
5574
5414
|
const stack = await getStack(element);
|
|
5415
|
+
if (!stack) return null;
|
|
5575
5416
|
for (const frame of stack) {
|
|
5576
|
-
if (checkIsSourceComponentName(frame.
|
|
5577
|
-
return frame.
|
|
5417
|
+
if (frame.functionName && checkIsSourceComponentName(frame.functionName)) {
|
|
5418
|
+
return frame.functionName;
|
|
5578
5419
|
}
|
|
5579
5420
|
}
|
|
5580
5421
|
return null;
|
|
5581
5422
|
};
|
|
5582
|
-
var
|
|
5423
|
+
var getElementContext = async (element, options = {}) => {
|
|
5424
|
+
const { maxLines = 3 } = options;
|
|
5583
5425
|
const html = getHTMLPreview(element);
|
|
5584
5426
|
const stack = await getStack(element);
|
|
5585
5427
|
const isNextProject = checkIsNextProject();
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
${clientComponentName ? ` in ${clientComponentName}` : ""} at ${fileName}`;
|
|
5613
|
-
if (isNextProject && lineNumber && columnNumber) {
|
|
5614
|
-
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
|
+
}
|
|
5615
5454
|
}
|
|
5616
5455
|
}
|
|
5617
|
-
return
|
|
5456
|
+
return `${html}${stackContext.join("")}`;
|
|
5618
5457
|
};
|
|
5619
5458
|
var getFileName = (stack) => {
|
|
5620
5459
|
for (const frame of stack) {
|
|
5621
|
-
if (frame.
|
|
5622
|
-
return
|
|
5460
|
+
if (frame.fileName && je(frame.fileName)) {
|
|
5461
|
+
return $(frame.fileName);
|
|
5623
5462
|
}
|
|
5624
5463
|
}
|
|
5625
5464
|
return null;
|
|
@@ -6167,9 +6006,9 @@ var updateSession = (session, updates, storage) => {
|
|
|
6167
6006
|
};
|
|
6168
6007
|
|
|
6169
6008
|
// src/utils/generate-snippet.ts
|
|
6170
|
-
var generateSnippet = async (elements) => {
|
|
6009
|
+
var generateSnippet = async (elements, options = {}) => {
|
|
6171
6010
|
const elementSnippetResults = await Promise.allSettled(
|
|
6172
|
-
elements.map((element) =>
|
|
6011
|
+
elements.map((element) => getElementContext(element, options))
|
|
6173
6012
|
);
|
|
6174
6013
|
const elementSnippets = elementSnippetResults.map((result) => result.status === "fulfilled" ? result.value : "").filter((snippet) => snippet.trim());
|
|
6175
6014
|
if (elementSnippets.length === 0) {
|
|
@@ -6313,7 +6152,7 @@ var createAgentManager = (initialAgentOptions) => {
|
|
|
6313
6152
|
const content = await generateSnippet(elements);
|
|
6314
6153
|
const context = { content, prompt, options: agentOptions?.getOptions?.() };
|
|
6315
6154
|
const tagName = (element.tagName || "").toLowerCase() || void 0;
|
|
6316
|
-
const componentName = getNearestComponentName(element) || void 0;
|
|
6155
|
+
const componentName = await getNearestComponentName(element) || void 0;
|
|
6317
6156
|
const session = createSession(context, position, selectionBounds, tagName, componentName);
|
|
6318
6157
|
session.lastStatus = "Please wait\u2026";
|
|
6319
6158
|
sessionElements.set(session.id, element);
|
|
@@ -6381,9 +6220,20 @@ var createAgentManager = (initialAgentOptions) => {
|
|
|
6381
6220
|
};
|
|
6382
6221
|
|
|
6383
6222
|
// src/core.tsx
|
|
6384
|
-
var _tmpl$
|
|
6223
|
+
var _tmpl$16 = /* @__PURE__ */ template(`<span class="tabular-nums align-middle">`);
|
|
6385
6224
|
var _tmpl$23 = /* @__PURE__ */ template(`<span class="font-mono tabular-nums align-middle"><<!>>`);
|
|
6386
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
|
+
};
|
|
6387
6237
|
var hasInited = false;
|
|
6388
6238
|
var getScriptOptions = () => {
|
|
6389
6239
|
if (typeof window === "undefined") return null;
|
|
@@ -6429,6 +6279,7 @@ var init = (rawOptions) => {
|
|
|
6429
6279
|
enabled: true,
|
|
6430
6280
|
keyHoldDuration: 200,
|
|
6431
6281
|
allowActivationInsideInput: true,
|
|
6282
|
+
maxContextLines: 3,
|
|
6432
6283
|
...scriptOptions,
|
|
6433
6284
|
...rawOptions
|
|
6434
6285
|
};
|
|
@@ -6463,7 +6314,7 @@ var init = (rawOptions) => {
|
|
|
6463
6314
|
hasInited = true;
|
|
6464
6315
|
const logIntro = () => {
|
|
6465
6316
|
try {
|
|
6466
|
-
const version = "0.0.
|
|
6317
|
+
const version = "0.0.61";
|
|
6467
6318
|
const logoDataUri = `data:image/svg+xml;base64,${btoa(LOGO_SVG)}`;
|
|
6468
6319
|
console.log(`%cReact Grab${version ? ` v${version}` : ""}%c
|
|
6469
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;`, "");
|
|
@@ -6488,6 +6339,8 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
|
|
|
6488
6339
|
const [isHoldingKeys, setIsHoldingKeys] = createSignal(false);
|
|
6489
6340
|
const [mouseX, setMouseX] = createSignal(OFFSCREEN_POSITION);
|
|
6490
6341
|
const [mouseY, setMouseY] = createSignal(OFFSCREEN_POSITION);
|
|
6342
|
+
const [detectedElement, setDetectedElement] = createSignal(null);
|
|
6343
|
+
let lastElementDetectionTime = 0;
|
|
6491
6344
|
const [isDragging, setIsDragging] = createSignal(false);
|
|
6492
6345
|
const [dragStartX, setDragStartX] = createSignal(OFFSCREEN_POSITION);
|
|
6493
6346
|
const [dragStartY, setDragStartY] = createSignal(OFFSCREEN_POSITION);
|
|
@@ -6627,7 +6480,7 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
|
|
|
6627
6480
|
}
|
|
6628
6481
|
}));
|
|
6629
6482
|
};
|
|
6630
|
-
const createLabelInstance = (bounds, tagName, componentName, status, element) => {
|
|
6483
|
+
const createLabelInstance = (bounds, tagName, componentName, status, element, mouseX2) => {
|
|
6631
6484
|
const instanceId = `label-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
6632
6485
|
setLabelInstances((prev) => [...prev, {
|
|
6633
6486
|
id: instanceId,
|
|
@@ -6636,7 +6489,8 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
|
|
|
6636
6489
|
componentName,
|
|
6637
6490
|
status,
|
|
6638
6491
|
createdAt: Date.now(),
|
|
6639
|
-
element
|
|
6492
|
+
element,
|
|
6493
|
+
mouseX: mouseX2
|
|
6640
6494
|
}]);
|
|
6641
6495
|
return instanceId;
|
|
6642
6496
|
};
|
|
@@ -6654,7 +6508,7 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
|
|
|
6654
6508
|
setCopyStartY(positionY);
|
|
6655
6509
|
setIsCopying(true);
|
|
6656
6510
|
startProgressAnimation();
|
|
6657
|
-
const instanceId = bounds && tagName ? createLabelInstance(bounds, tagName, componentName, "copying", element) : null;
|
|
6511
|
+
const instanceId = bounds && tagName ? createLabelInstance(bounds, tagName, componentName, "copying", element, positionX) : null;
|
|
6658
6512
|
await operation().finally(() => {
|
|
6659
6513
|
setIsCopying(false);
|
|
6660
6514
|
stopProgressAnimation();
|
|
@@ -6685,7 +6539,9 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
|
|
|
6685
6539
|
let copiedContent = "";
|
|
6686
6540
|
await options.onBeforeCopy?.(elements);
|
|
6687
6541
|
try {
|
|
6688
|
-
const elementSnippetResults = await Promise.allSettled(elements.map((element) =>
|
|
6542
|
+
const elementSnippetResults = await Promise.allSettled(elements.map((element) => getElementContext(element, {
|
|
6543
|
+
maxLines: options.maxContextLines
|
|
6544
|
+
})));
|
|
6689
6545
|
const elementSnippets = [];
|
|
6690
6546
|
for (const result of elementSnippetResults) {
|
|
6691
6547
|
if (result.status === "fulfilled" && result.value.trim()) {
|
|
@@ -6759,7 +6615,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6759
6615
|
};
|
|
6760
6616
|
const targetElement = createMemo(() => {
|
|
6761
6617
|
if (!isRendererActive() || isDragging()) return null;
|
|
6762
|
-
return
|
|
6618
|
+
return detectedElement();
|
|
6763
6619
|
});
|
|
6764
6620
|
createEffect(() => {
|
|
6765
6621
|
const element = targetElement();
|
|
@@ -6821,7 +6677,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6821
6677
|
const copying = isCopying();
|
|
6822
6678
|
if (!element) {
|
|
6823
6679
|
return (() => {
|
|
6824
|
-
var _el$ = _tmpl$
|
|
6680
|
+
var _el$ = _tmpl$16();
|
|
6825
6681
|
insert(_el$, copying ? "Please wait\u2026" : "1 element");
|
|
6826
6682
|
return _el$;
|
|
6827
6683
|
})();
|
|
@@ -6847,7 +6703,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6847
6703
|
})();
|
|
6848
6704
|
}
|
|
6849
6705
|
return (() => {
|
|
6850
|
-
var _el$10 = _tmpl$
|
|
6706
|
+
var _el$10 = _tmpl$16();
|
|
6851
6707
|
insert(_el$10, copying ? "Please wait\u2026" : "1 element");
|
|
6852
6708
|
return _el$10;
|
|
6853
6709
|
})();
|
|
@@ -6877,10 +6733,11 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6877
6733
|
return;
|
|
6878
6734
|
}
|
|
6879
6735
|
getStack(element).then((stack) => {
|
|
6736
|
+
if (!stack) return;
|
|
6880
6737
|
for (const frame of stack) {
|
|
6881
|
-
if (frame.
|
|
6882
|
-
setSelectionFilePath(
|
|
6883
|
-
setSelectionLineNumber(frame.
|
|
6738
|
+
if (frame.fileName && je(frame.fileName)) {
|
|
6739
|
+
setSelectionFilePath($(frame.fileName));
|
|
6740
|
+
setSelectionLineNumber(frame.lineNumber);
|
|
6884
6741
|
return;
|
|
6885
6742
|
}
|
|
6886
6743
|
}
|
|
@@ -6912,10 +6769,10 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6912
6769
|
} : null
|
|
6913
6770
|
});
|
|
6914
6771
|
}));
|
|
6915
|
-
createEffect(on(() => [isInputMode(), mouseX(), mouseY(), targetElement()], ([inputMode, x3,
|
|
6772
|
+
createEffect(on(() => [isInputMode(), mouseX(), mouseY(), targetElement()], ([inputMode, x3, y3, target]) => {
|
|
6916
6773
|
options.onInputModeChange?.(inputMode, {
|
|
6917
6774
|
x: x3,
|
|
6918
|
-
y:
|
|
6775
|
+
y: y3,
|
|
6919
6776
|
targetElement: target
|
|
6920
6777
|
});
|
|
6921
6778
|
}));
|
|
@@ -6925,10 +6782,10 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6925
6782
|
createEffect(on(() => [dragVisible(), dragBounds()], ([visible, bounds]) => {
|
|
6926
6783
|
options.onDragBox?.(Boolean(visible), bounds ?? null);
|
|
6927
6784
|
}));
|
|
6928
|
-
createEffect(on(() => [crosshairVisible(), mouseX(), mouseY()], ([visible, x3,
|
|
6785
|
+
createEffect(on(() => [crosshairVisible(), mouseX(), mouseY()], ([visible, x3, y3]) => {
|
|
6929
6786
|
options.onCrosshair?.(Boolean(visible), {
|
|
6930
6787
|
x: x3,
|
|
6931
|
-
y:
|
|
6788
|
+
y: y3
|
|
6932
6789
|
});
|
|
6933
6790
|
}));
|
|
6934
6791
|
createEffect(on(() => [labelVisible(), labelVariant(), labelContent(), cursorPosition()], ([visible, variant, content, position]) => {
|
|
@@ -6961,7 +6818,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6961
6818
|
} else if (activated && dragging) {
|
|
6962
6819
|
setCursorOverride("crosshair");
|
|
6963
6820
|
} else if (activated && target) {
|
|
6964
|
-
setCursorOverride("
|
|
6821
|
+
setCursorOverride("default");
|
|
6965
6822
|
} else if (activated) {
|
|
6966
6823
|
setCursorOverride("crosshair");
|
|
6967
6824
|
} else {
|
|
@@ -7056,9 +6913,8 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7056
6913
|
options.agent?.onAbort?.(session, element);
|
|
7057
6914
|
if (element && document.contains(element)) {
|
|
7058
6915
|
const rect = element.getBoundingClientRect();
|
|
7059
|
-
const centerX = rect.left + rect.width / 2;
|
|
7060
6916
|
const centerY = rect.top + rect.height / 2;
|
|
7061
|
-
setMouseX(
|
|
6917
|
+
setMouseX(session.position.x);
|
|
7062
6918
|
setMouseY(centerY);
|
|
7063
6919
|
setFrozenElement(element);
|
|
7064
6920
|
setInputText(session.context.prompt);
|
|
@@ -7084,6 +6940,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7084
6940
|
return;
|
|
7085
6941
|
}
|
|
7086
6942
|
const bounds = createElementBounds(element);
|
|
6943
|
+
const labelPositionX = mouseX();
|
|
7087
6944
|
const currentX = bounds.x + bounds.width / 2;
|
|
7088
6945
|
const currentY = bounds.y + bounds.height / 2;
|
|
7089
6946
|
setMouseX(currentX);
|
|
@@ -7094,7 +6951,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7094
6951
|
element,
|
|
7095
6952
|
prompt,
|
|
7096
6953
|
position: {
|
|
7097
|
-
x:
|
|
6954
|
+
x: labelPositionX,
|
|
7098
6955
|
y: currentY
|
|
7099
6956
|
},
|
|
7100
6957
|
selectionBounds: bounds
|
|
@@ -7158,6 +7015,14 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7158
7015
|
if (isInputMode() || isToggleFrozen()) return;
|
|
7159
7016
|
setMouseX(clientX);
|
|
7160
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
|
+
}
|
|
7161
7026
|
if (isDragging()) {
|
|
7162
7027
|
const direction = getAutoScrollDirection(clientX, clientY);
|
|
7163
7028
|
const isNearEdge = direction.top || direction.bottom || direction.left || direction.right;
|
|
@@ -7761,9 +7626,8 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7761
7626
|
newAgentOptions?.onAbort?.(session, element);
|
|
7762
7627
|
if (element && document.contains(element)) {
|
|
7763
7628
|
const rect = element.getBoundingClientRect();
|
|
7764
|
-
const centerX = rect.left + rect.width / 2;
|
|
7765
7629
|
const centerY = rect.top + rect.height / 2;
|
|
7766
|
-
setMouseX(
|
|
7630
|
+
setMouseX(session.position.x);
|
|
7767
7631
|
setMouseY(centerY);
|
|
7768
7632
|
setFrozenElement(element);
|
|
7769
7633
|
setInputText(session.context.prompt);
|
|
@@ -7785,7 +7649,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7785
7649
|
};
|
|
7786
7650
|
/*! Bundled license information:
|
|
7787
7651
|
|
|
7788
|
-
bippy/dist/rdt-hook-
|
|
7652
|
+
bippy/dist/rdt-hook-7WClMTWh.js:
|
|
7789
7653
|
(**
|
|
7790
7654
|
* @license bippy
|
|
7791
7655
|
*
|
|
@@ -7795,7 +7659,7 @@ bippy/dist/rdt-hook-BE3UuUaz.js:
|
|
|
7795
7659
|
* LICENSE file in the root directory of this source tree.
|
|
7796
7660
|
*)
|
|
7797
7661
|
|
|
7798
|
-
bippy/dist/
|
|
7662
|
+
bippy/dist/core-CoV0JPOT.js:
|
|
7799
7663
|
(**
|
|
7800
7664
|
* @license bippy
|
|
7801
7665
|
*
|
|
@@ -7805,7 +7669,7 @@ bippy/dist/install-hook-only-_lLceJhv.js:
|
|
|
7805
7669
|
* LICENSE file in the root directory of this source tree.
|
|
7806
7670
|
*)
|
|
7807
7671
|
|
|
7808
|
-
bippy/dist/
|
|
7672
|
+
bippy/dist/source.js:
|
|
7809
7673
|
(**
|
|
7810
7674
|
* @license bippy
|
|
7811
7675
|
*
|
|
@@ -7815,7 +7679,7 @@ bippy/dist/core-_xno6DOO.js:
|
|
|
7815
7679
|
* LICENSE file in the root directory of this source tree.
|
|
7816
7680
|
*)
|
|
7817
7681
|
|
|
7818
|
-
bippy/dist/
|
|
7682
|
+
bippy/dist/install-hook-only-CTBENLgG.js:
|
|
7819
7683
|
(**
|
|
7820
7684
|
* @license bippy
|
|
7821
7685
|
*
|
|
@@ -7834,22 +7698,12 @@ bippy/dist/index.js:
|
|
|
7834
7698
|
* This source code is licensed under the MIT license found in the
|
|
7835
7699
|
* LICENSE file in the root directory of this source tree.
|
|
7836
7700
|
*)
|
|
7837
|
-
|
|
7838
|
-
bippy/dist/source.js:
|
|
7839
|
-
(**
|
|
7840
|
-
* @license bippy
|
|
7841
|
-
*
|
|
7842
|
-
* Copyright (c) Aiden Bai
|
|
7843
|
-
*
|
|
7844
|
-
* This source code is licensed under the MIT license found in the
|
|
7845
|
-
* LICENSE file in the root directory of this source tree.
|
|
7846
|
-
*)
|
|
7847
7701
|
*/
|
|
7848
7702
|
|
|
7849
7703
|
exports.DEFAULT_THEME = DEFAULT_THEME;
|
|
7850
7704
|
exports.Ee = Ee;
|
|
7851
|
-
exports.formatElementInfo = formatElementInfo;
|
|
7852
7705
|
exports.generateSnippet = generateSnippet;
|
|
7706
|
+
exports.getElementContext = getElementContext;
|
|
7853
7707
|
exports.getFileName = getFileName;
|
|
7854
7708
|
exports.getStack = getStack;
|
|
7855
7709
|
exports.init = init;
|