react-grab 0.0.40 → 0.0.42

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/dist/index.d.cts CHANGED
@@ -4,7 +4,6 @@ interface Options {
4
4
  allowActivationInsideInput?: boolean;
5
5
  onActivate?: () => void;
6
6
  playCopySound?: boolean;
7
- isExtension?: boolean;
8
7
  }
9
8
  interface ReactGrabAPI {
10
9
  activate: () => void;
@@ -41,6 +40,7 @@ interface ReactGrabRendererProps {
41
40
  labelY?: number;
42
41
  labelVisible?: boolean;
43
42
  labelZIndex?: number;
43
+ labelShowHint?: boolean;
44
44
  progressVisible?: boolean;
45
45
  progress?: number;
46
46
  mouseX?: number;
@@ -48,23 +48,10 @@ interface ReactGrabRendererProps {
48
48
  crosshairVisible?: boolean;
49
49
  }
50
50
 
51
- declare global {
52
- interface Window {
53
- __REACT_GRAB_EXTENSION_ACTIVE__?: boolean;
54
- }
55
- }
56
51
  declare const init: (rawOptions?: Options) => ReactGrabAPI;
57
52
 
58
53
  declare const playCopySound: () => void;
59
54
 
60
- declare const htmlToMarkdown: (html: string) => string;
61
- declare const elementToMarkdown: (element: Element) => string;
62
-
63
- declare global {
64
- interface Window {
65
- __REACT_GRAB_EXTENSION_ACTIVE__?: boolean;
66
- }
67
- }
68
55
  declare const getGlobalApi: () => ReactGrabAPI | null;
69
56
 
70
- export { type Options, type OverlayBounds, type ReactGrabAPI, type ReactGrabRendererProps, elementToMarkdown, getGlobalApi, htmlToMarkdown, init, playCopySound };
57
+ export { type Options, type OverlayBounds, type ReactGrabAPI, type ReactGrabRendererProps, getGlobalApi, init, playCopySound };
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ interface Options {
4
4
  allowActivationInsideInput?: boolean;
5
5
  onActivate?: () => void;
6
6
  playCopySound?: boolean;
7
- isExtension?: boolean;
8
7
  }
9
8
  interface ReactGrabAPI {
10
9
  activate: () => void;
@@ -41,6 +40,7 @@ interface ReactGrabRendererProps {
41
40
  labelY?: number;
42
41
  labelVisible?: boolean;
43
42
  labelZIndex?: number;
43
+ labelShowHint?: boolean;
44
44
  progressVisible?: boolean;
45
45
  progress?: number;
46
46
  mouseX?: number;
@@ -48,23 +48,10 @@ interface ReactGrabRendererProps {
48
48
  crosshairVisible?: boolean;
49
49
  }
50
50
 
51
- declare global {
52
- interface Window {
53
- __REACT_GRAB_EXTENSION_ACTIVE__?: boolean;
54
- }
55
- }
56
51
  declare const init: (rawOptions?: Options) => ReactGrabAPI;
57
52
 
58
53
  declare const playCopySound: () => void;
59
54
 
60
- declare const htmlToMarkdown: (html: string) => string;
61
- declare const elementToMarkdown: (element: Element) => string;
62
-
63
- declare global {
64
- interface Window {
65
- __REACT_GRAB_EXTENSION_ACTIVE__?: boolean;
66
- }
67
- }
68
55
  declare const getGlobalApi: () => ReactGrabAPI | null;
69
56
 
70
- export { type Options, type OverlayBounds, type ReactGrabAPI, type ReactGrabRendererProps, elementToMarkdown, getGlobalApi, htmlToMarkdown, init, playCopySound };
57
+ export { type Options, type OverlayBounds, type ReactGrabAPI, type ReactGrabRendererProps, getGlobalApi, init, playCopySound };
@@ -6,93 +6,38 @@ var ReactGrab=(function(exports){'use strict';/**
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- var _i=(e,t)=>e===t;var Ii=Symbol("solid-track"),ht={equals:_i},qn=Qn,de=1,Ze=2,Wn={owned:null,cleanups:null,context:null,owner:null};var L=null,p=null,ze=null,Y=null,ee=null,ie=null,pt=0;function Be(e,t){let n=Y,r=L,i=e.length===0,o=t===void 0?r:t,s=i?Wn:{owned:null,cleanups:null,context:o?o.context:null,owner:o},a=i?e:()=>e(()=>ue(()=>_e(s)));L=s,Y=null;try{return Ee(a,!0)}finally{Y=n,L=r;}}function I(e,t){t=t?Object.assign({},ht,t):ht;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),Jn(n,i));return [Zn.bind(n),r]}function fe(e,t,n){let r=Yt(e,t,false,de);et(r);}function ae(e,t,n){qn=Li;let r=Yt(e,t,false,de);(r.user=true),ie?ie.push(r):et(r);}function G(e,t,n){n=n?Object.assign({},ht,n):ht;let r=Yt(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,et(r),Zn.bind(r)}function ue(e){if(Y===null)return e();let t=Y;Y=null;try{return ze?ze.untrack(e):e()}finally{Y=t;}}function Ie(e,t,n){let r=Array.isArray(e),i;return s=>{let a;if(r){a=Array(e.length);for(let f=0;f<e.length;f++)a[f]=e[f]();}else a=e();let l=ue(()=>t(a,i,s));return i=a,l}}function Kn(e){ae(()=>ue(e));}function me(e){return L===null||(L.cleanups===null?L.cleanups=[e]:L.cleanups.push(e)),e}I(false);function Zn(){let e=p;if(this.sources&&(this.state))if((this.state)===de)et(this);else {let t=ee;ee=null,Ee(()=>gt(this),false),ee=t;}if(Y){let t=this.observers?this.observers.length:0;Y.sources?(Y.sources.push(this),Y.sourceSlots.push(t)):(Y.sources=[this],Y.sourceSlots=[t]),this.observers?(this.observers.push(Y),this.observerSlots.push(Y.sources.length-1)):(this.observers=[Y],this.observerSlots=[Y.sources.length-1]);}return e&&p.sources.has(this)?this.tValue:this.value}function Jn(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&Ee(()=>{for(let i=0;i<e.observers.length;i+=1){let o=e.observers[i],s=p&&p.running;s&&p.disposed.has(o)||((s?!o.tState:!o.state)&&(o.pure?ee.push(o):ie.push(o),o.observers&&er(o)),s?o.tState=de:o.state=de);}if(ee.length>1e6)throw ee=[],new Error},false);}return t}function et(e){if(!e.fn)return;_e(e);let t=pt;Un(e,e.value,t);}function Un(e,t,n){let r,i=L,o=Y;Y=L=e;try{r=e.fn(t);}catch(s){return e.pure&&((e.state=de,e.owned&&e.owned.forEach(_e),e.owned=null)),e.updatedAt=n+1,Gt(s)}finally{Y=o,L=i;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Jn(e,r):e.value=r,e.updatedAt=n);}function Yt(e,t,n,r=de,i){let o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:L,context:L?L.context:null,pure:n};if(L===null||L!==Wn&&(L.owned?L.owned.push(o):L.owned=[o]),ze);return o}function Je(e){let t=p;if((e.state)===0)return;if((e.state)===Ze)return gt(e);if(e.suspense&&ue(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<pt);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===de)et(e);else if((e.state)===Ze){let i=ee;ee=null,Ee(()=>gt(e,n[0]),false),ee=i;}}}function Ee(e,t){if(ee)return e();let n=false;t||(ee=[]),ie?n=true:ie=[],pt++;try{let r=e();return Mi(n),r}catch(r){n||(ie=null),ee=null,Gt(r);}}function Mi(e){if(ee&&(Qn(ee),ee=null),e)return;let n=ie;ie=null,n.length&&Ee(()=>qn(n),false);}function Qn(e){for(let t=0;t<e.length;t++)Je(e[t]);}function Li(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:Je(r);}for(t=0;t<n;t++)Je(e[t]);}function gt(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let o=i.state;o===de?i!==t&&(!i.updatedAt||i.updatedAt<pt)&&Je(i):o===Ze&&gt(i,t);}}}function er(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=Ze,r.pure?ee.push(r):ie.push(r),r.observers&&er(r));}}function _e(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){let o=i.pop(),s=n.observerSlots.pop();r<i.length&&(o.sourceSlots[s]=r,i[r]=o,n.observerSlots[r]=s);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)_e(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)_e(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function Di(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Gt(e,t=L){let r=Di(e);throw r;}var Hi=Symbol("fallback");function Xn(e){for(let t=0;t<e.length;t++)e[t]();}function Bi(e,t,n={}){let r=[],i=[],o=[],s=0,a=t.length>1?[]:null;return me(()=>Xn(o)),()=>{let l=e()||[],f=l.length,d,h;return l[Ii],ue(()=>{let v,S,R,k,M,T,A,N,_;if(f===0)s!==0&&(Xn(o),o=[],r=[],i=[],s=0,a&&(a=[])),n.fallback&&(r=[Hi],i[0]=Be(q=>(o[0]=q,n.fallback())),s=1);else if(s===0){for(i=new Array(f),h=0;h<f;h++)r[h]=l[h],i[h]=Be(x);s=f;}else {for(R=new Array(f),k=new Array(f),a&&(M=new Array(f)),T=0,A=Math.min(s,f);T<A&&r[T]===l[T];T++);for(A=s-1,N=f-1;A>=T&&N>=T&&r[A]===l[N];A--,N--)R[N]=i[A],k[N]=o[A],a&&(M[N]=a[A]);for(v=new Map,S=new Array(N+1),h=N;h>=T;h--)_=l[h],d=v.get(_),S[h]=d===void 0?-1:d,v.set(_,h);for(d=T;d<=A;d++)_=r[d],h=v.get(_),h!==void 0&&h!==-1?(R[h]=i[d],k[h]=o[d],a&&(M[h]=a[d]),h=S[h],v.set(_,h)):o[d]();for(h=T;h<f;h++)h in R?(i[h]=R[h],o[h]=k[h],a&&(a[h]=M[h],a[h](h))):i[h]=Be(x);i=i.slice(0,s=f),r=l.slice(0);}return i});function x(v){if(o[h]=v,a){let[S,R]=I(h);return a[h]=R,t(l[h],S)}return t(l[h])}}}function $(e,t){return ue(()=>e(t||{}))}var Vi=e=>`Stale read from <${e}>.`;function bt(e){let t="fallback"in e&&{fallback:()=>e.fallback};return G(Bi(()=>e.each,e.children,t||void 0))}function X(e){let t=e.keyed,n=G(()=>e.when,void 0,void 0),r=t?n:G(n,void 0,{equals:(i,o)=>!i==!o});return G(()=>{let i=r();if(i){let o=e.children;return typeof o=="function"&&o.length>0?ue(()=>o(t?i:()=>{if(!ue(r))throw Vi("Show");return n()})):o}return e.fallback},void 0,void 0)}var Fe=e=>G(()=>e());function Ui(e,t,n){let r=n.length,i=t.length,o=r,s=0,a=0,l=t[i-1].nextSibling,f=null;for(;s<i||a<o;){if(t[s]===n[a]){s++,a++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===s){let d=o<r?a?n[a-1].nextSibling:n[o-a]:l;for(;a<o;)e.insertBefore(n[a++],d);}else if(o===a)for(;s<i;)(!f||!f.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[o-1]&&n[a]===t[i-1]){let d=t[--i].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--o],d),t[i]=n[o];}else {if(!f){f=new Map;let h=a;for(;h<o;)f.set(n[h],h++);}let d=f.get(t[s]);if(d!=null)if(a<d&&d<o){let h=s,x=1,v;for(;++h<i&&h<o&&!((v=f.get(t[h]))==null||v!==d+x);)x++;if(x>d-a){let S=t[s];for(;a<d;)e.insertBefore(n[a++],S);}else e.replaceChild(n[a++],t[s++]);}else s++;else t[s++].remove();}}}function rr(e,t,n,r={}){let i;return Be(o=>{i=o,t===document?e():ve(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{i(),t.textContent="";}}function le(e,t,n,r){let i,o=()=>{let a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},s=()=>(i||(i=o())).cloneNode(true);return s.cloneNode=s,s}function zi(e,t,n){(e.removeAttribute(t));}function wt(e,t,n){if(!t)return n?zi(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function Se(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function $e(e,t,n){return ue(()=>e(t,n))}function ve(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return yt(e,t,r,n);fe(i=>yt(e,t(),i,n),r);}function yt(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;let s=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(s==="number"&&(t=t.toString(),t===n))return n;if(a){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=Xe(e,n,r,l);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||s==="boolean"){n=Xe(e,n,r);}else {if(s==="function")return fe(()=>{let l=t();for(;typeof l=="function";)l=l();n=yt(e,l,n,r);}),()=>n;if(Array.isArray(t)){let l=[],f=n&&Array.isArray(n);if(Ut(l,t,n,i))return fe(()=>n=yt(e,l,n,r,true)),()=>n;if(l.length===0){if(n=Xe(e,n,r),a)return n}else f?n.length===0?nr(e,l,r):Ui(e,n,l):(n&&Xe(e),nr(e,l));n=l;}else if(t.nodeType){if(Array.isArray(n)){if(a)return n=Xe(e,n,r,t);Xe(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function Ut(e,t,n,r){let i=false;for(let o=0,s=t.length;o<s;o++){let a=t[o],l=n&&n[e.length],f;if(!(a==null||a===true||a===false))if((f=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))i=Ut(e,a,l)||i;else if(f==="function")if(r){for(;typeof a=="function";)a=a();i=Ut(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||i;}else e.push(a),i=true;else {let d=String(a);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d));}}return i}function nr(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n);}function Xe(e,t,n,r){if(n===void 0)return e.textContent="";let i=r||document.createTextNode("");if(t.length){let o=false;for(let s=t.length-1;s>=0;s--){let a=t[s];if(i!==a){let l=a.parentNode===e;!o&&!s?l?e.replaceChild(i,a):e.insertBefore(i,n):l&&a.remove();}else o=true;}}else e.insertBefore(i,n);return [i]}var Xi=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],qi=e=>!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-"),Wi=e=>Array.isArray(e),Ki=(e,t=false)=>{let{composed:n,target:r}=e,i,o;if(r instanceof HTMLElement&&qi(r)&&n){let a=e.composedPath()[0];a instanceof HTMLElement&&(i=a.tagName,o=a.role);}else r instanceof HTMLElement&&(i=r.tagName,o=r.role);return Wi(t)?!!(i&&t&&t.some(s=>typeof i=="string"&&s.toLowerCase()===i.toLowerCase()||s===o)):!!(i&&t&&t)},or=e=>Ki(e,Xi);var qe="data-react-grab",sr=()=>{let e=document.querySelector(`[${qe}]`);if(e){let o=e.shadowRoot?.querySelector(`[${qe}]`);if(o instanceof HTMLDivElement&&e.shadowRoot)return o}let t=document.createElement("div");t.setAttribute(qe,"true"),t.style.zIndex="2147483646",t.style.position="fixed",t.style.top="0",t.style.left="0";let n=t.attachShadow({mode:"open"}),r=document.createElement("div");return r.setAttribute(qe,"true"),n.appendChild(r),(document.body??document.documentElement).appendChild(t),r};var ye=(e,t,n)=>e+(t-e)*n;var Ji=le("<div>"),Tt=e=>{let[t,n]=I(e.bounds.x),[r,i]=I(e.bounds.y),[o,s]=I(e.bounds.width),[a,l]=I(e.bounds.height),[f,d]=I(1),h=false,x=null,v=null,S=e.bounds,R=false,k=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,M=()=>{if(R)return;R=true;let N=()=>{let _=ye(t(),S.x,k()),q=ye(r(),S.y,k()),Q=ye(o(),S.width,k()),te=ye(a(),S.height,k());n(_),i(q),s(Q),l(te),Math.abs(_-S.x)<.5&&Math.abs(q-S.y)<.5&&Math.abs(Q-S.width)<.5&&Math.abs(te-S.height)<.5?(x=null,R=false):x=requestAnimationFrame(N);};x=requestAnimationFrame(N);};ae(Ie(()=>e.bounds,N=>{if(S=N,!h){n(S.x),i(S.y),s(S.width),l(S.height),h=true;return}M();})),ae(()=>{e.variant==="grabbed"&&e.createdAt&&(v=window.setTimeout(()=>{d(0);},1500));}),me(()=>{x!==null&&(cancelAnimationFrame(x),x=null),v!==null&&(window.clearTimeout(v),v=null),R=false;});let T={position:"fixed","box-sizing":"border-box","pointer-events":e.variant==="drag"?"none":"auto","z-index":e.variant==="grabbed"?"2147483645":"2147483646"},A=()=>e.variant==="drag"?{border:"1px dashed rgba(210, 57, 192, 0.4)","background-color":"rgba(210, 57, 192, 0.05)","will-change":"transform, width, height",contain:"layout paint size",cursor:"crosshair"}:e.variant==="selection"?{border:"1px dashed rgba(210, 57, 192, 0.5)","background-color":"rgba(210, 57, 192, 0.08)"}:{border:"1px solid rgb(210, 57, 192)","background-color":"rgba(210, 57, 192, 0.08)",transition:"opacity 0.3s ease-out"};return $(X,{get when(){return e.visible!==false},get children(){var N=Ji();return fe(_=>wt(N,{...T,...A(),top:`${r()}px`,left:`${t()}px`,width:`${o()}px`,height:`${a()}px`,"border-radius":e.bounds.borderRadius,transform:e.bounds.transform,opacity:f()},_)),N}})};var Qi=le('<span style="display:inline-block;width:8px;height:8px;border:1.5px solid rgb(210, 57, 192);border-top-color:transparent;border-radius:50%;margin-right:4px;vertical-align:middle">'),ar=e=>{let t;return Kn(()=>{t&&t.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:600,easing:"linear",iterations:1/0});}),(()=>{var n=Qi(),r=t;return typeof r=="function"?$e(r,n):t=n,fe(i=>wt(n,{...e.style},i)),n})()};var St=(e,t,n,r)=>{let i=window.innerWidth,o=window.innerHeight,s=8,a=8,l=i-n-8,f=o-r-8,d=Math.max(s,Math.min(e,l)),h=Math.max(a,Math.min(t,f));return {left:d,top:h}};var eo=le("<span style=display:inline-block;margin-right:4px;font-weight:600>\u2713"),to=le("<div style=margin-right:4px>Copied"),no=le(`<span style="font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;font-variant-numeric:tabular-nums;vertical-align:middle">`),ro=le("<span style=font-variant-numeric:tabular-nums;font-size:10px;margin-left:4px;vertical-align:middle>"),io=le("<div style=margin-left:4px>to clipboard"),oo=le(`<div style="position:fixed;padding:2px 6px;background-color:#fde7f7;color:#b21c8e;border:1px solid #f7c5ec;border-radius:4px;font-size:11px;font-weight:500;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;pointer-events:none;transition:opacity 0.2s ease-in-out;display:flex;align-items:center;max-width:calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)));overflow:hidden;text-overflow:ellipsis;white-space:nowrap">`),zt=e=>{let[t,n]=I(0),[r,i]=I(0),o,s=e.x,a=e.y,l=e.x,f=e.y,d=null,h=false,x=()=>{s=ye(s,l,.3),a=ye(a,f,.3),i(A=>A+1),Math.abs(s-l)<.5&&Math.abs(a-f)<.5?d=null:d=requestAnimationFrame(x);},v=()=>{d===null&&(d=requestAnimationFrame(x));},S=()=>{if(l=e.x,f=e.y,!h){s=l,a=f,h=true,i(T=>T+1);return}v();};ae(Ie(()=>e.visible,T=>{if(T!==false)requestAnimationFrame(()=>{n(1);});else {n(0);return}if(e.variant==="success"){let A=setTimeout(()=>{n(0);},1700);me(()=>clearTimeout(A));}})),ae(()=>{S();}),me(()=>{d!==null&&(cancelAnimationFrame(d),d=null);});let R=()=>o?.getBoundingClientRect(),k=()=>{r();let T=R();if(!T)return {left:s,top:a};let A=window.innerWidth,N=window.innerHeight,_=[{left:Math.round(s)+14,top:Math.round(a)+14},{left:Math.round(s)-T.width-14,top:Math.round(a)+14},{left:Math.round(s)+14,top:Math.round(a)-T.height-14},{left:Math.round(s)-T.width-14,top:Math.round(a)-T.height-14}];for(let Q of _){let te=Q.left>=8&&Q.left+T.width<=A-8,Te=Q.top>=8&&Q.top+T.height<=N-8;if(te&&Te)return Q}let q=St(_[0].left,_[0].top,T.width,T.height);return q.left+=4,q.top+=4,q},M=()=>{let A=e.text.indexOf(" in ");return A===-1?{primary:e.text,secondary:""}:{primary:e.text.slice(0,A),secondary:e.text.slice(A)}};return $(X,{get when(){return e.visible!==false},get children(){var T=oo(),A=o;return typeof A=="function"?$e(A,T):o=T,ve(T,$(X,{get when(){return e.variant==="processing"},get children(){return $(ar,{})}}),null),ve(T,$(X,{get when(){return e.variant==="success"},get children(){return eo()}}),null),ve(T,$(X,{get when(){return e.variant==="success"},get children(){return to()}}),null),ve(T,$(X,{get when(){return e.variant==="processing"},children:"Grabbing\u2026"}),null),ve(T,$(X,{get when(){return e.variant!=="processing"},get children(){return [(()=>{var N=no();return ve(N,()=>M().primary),N})(),$(X,{get when(){return Fe(()=>e.variant==="hover")()&&M().secondary!==""},get children(){var N=ro();return ve(N,()=>M().secondary),N}})]}}),null),ve(T,$(X,{get when(){return e.variant==="success"},get children(){return io()}}),null),fe(N=>{var _=`${k().top}px`,q=`${k().left}px`,Q=e.zIndex?.toString()??"2147483647",te=t();return _!==N.e&&Se(T,"top",N.e=_),q!==N.t&&Se(T,"left",N.t=q),Q!==N.a&&Se(T,"z-index",N.a=Q),te!==N.o&&Se(T,"opacity",N.o=te),N},{e:void 0,t:void 0,a:void 0,o:void 0}),T}})};var so=le('<div style="position:fixed;z-index:2147483647;pointer-events:none;transition:opacity 0.1s ease-in-out"><div style="width:32px;height:2px;background-color:rgba(178, 28, 142, 0.2);border-radius:1px;overflow:hidden;position:relative"><div style="height:100%;background-color:#b21c8e;border-radius:1px;transition:width 0.05s cubic-bezier(0.165, 0.84, 0.44, 1)">'),ao=e=>{let[t,n]=I(0);return ae(Ie(()=>e,r=>{r!==false?requestAnimationFrame(()=>{n(1);}):n(0);})),t},cr=e=>{let t=ao(e.visible),n,r=()=>{let i=n?.getBoundingClientRect();if(!i)return {left:e.mouseX,top:e.mouseY};let o=window.innerHeight,s=e.mouseX-i.width/2,a=e.mouseY+14+i.height+8>o?e.mouseY-i.height-14:e.mouseY+14;return St(s,a,i.width,i.height)};return $(X,{get when(){return e.visible!==false},get children(){var i=so(),o=i.firstChild,s=o.firstChild,a=n;return typeof a=="function"?$e(a,i):n=i,fe(l=>{var f=`${r().top}px`,d=`${r().left}px`,h=t(),x=`${Math.min(100,Math.max(0,e.progress*100))}%`;return f!==l.e&&Se(i,"top",l.e=f),d!==l.t&&Se(i,"left",l.t=d),h!==l.a&&Se(i,"opacity",l.a=h),x!==l.o&&Se(s,"width",l.o=x),l},{e:void 0,t:void 0,a:void 0,o:void 0}),i}})};var lo=le("<canvas style=position:fixed;top:0;left:0;pointer-events:none;z-index:2147483645>"),ur=e=>{let t,n=null,r=0,i=0,o=1,s=e.mouseX,a=e.mouseY,l=e.mouseX,f=e.mouseY,d=null,h=false,x=()=>{t&&(o=Math.max(window.devicePixelRatio||1,2),r=window.innerWidth,i=window.innerHeight,t.width=r*o,t.height=i*o,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext("2d"),n&&n.scale(o,o));},v=()=>{n&&(n.clearRect(0,0,r,i),n.strokeStyle="rgba(210, 57, 192)",n.lineWidth=1,n.beginPath(),n.moveTo(s,0),n.lineTo(s,i),n.moveTo(0,a),n.lineTo(r,a),n.stroke());},S=()=>{s=ye(s,l,.3),a=ye(a,f,.3),v(),Math.abs(s-l)<.5&&Math.abs(a-f)<.5?d=null:d=requestAnimationFrame(S);},R=()=>{d===null&&(d=requestAnimationFrame(S));},k=()=>{if(l=e.mouseX,f=e.mouseY,!h){s=l,a=f,h=true,v();return}R();};return ae(()=>{x(),v();let M=()=>{x(),v();};window.addEventListener("resize",M),me(()=>{window.removeEventListener("resize",M),d!==null&&(cancelAnimationFrame(d),d=null);});}),ae(()=>{k();}),$(X,{get when(){return e.visible!==false},get children(){var M=lo(),T=t;return typeof T=="function"?$e(T,M):t=M,M}})};var fr=e=>[$(X,{get when(){return Fe(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return $(Tt,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible}})}}),$(X,{get when(){return Fe(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return $(ur,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),$(X,{get when(){return Fe(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return $(Tt,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),$(bt,{get each(){return e.grabbedBoxes??[]},children:t=>$(Tt,{variant:"grabbed",get bounds(){return t.bounds},get createdAt(){return t.createdAt}})}),$(bt,{get each(){return e.successLabels??[]},children:t=>$(zt,{variant:"success",get text(){return t.text},get x(){return e.mouseX??0},get y(){return e.mouseY??0}})}),$(X,{get when(){return Fe(()=>!!(e.labelVisible&&e.labelVariant&&e.labelText&&e.labelX!==void 0))()&&e.labelY!==void 0},get children(){return $(zt,{get variant(){return e.labelVariant},get text(){return e.labelText},get x(){return e.labelX},get y(){return e.labelY},get visible(){return e.labelVisible},get zIndex(){return e.labelZIndex}})}}),$(X,{get when(){return Fe(()=>!!(e.progressVisible&&e.progress!==void 0&&e.mouseX!==void 0))()&&e.mouseY!==void 0},get children(){return $(cr,{get progress(){return e.progress},get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},get visible(){return e.progressVisible}})}})];var hr="0.5.14",nt=`bippy-${hr}`,dr=Object.defineProperty,co=Object.prototype.hasOwnProperty,tt=()=>{},gr=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")});}catch{}},Xt=(e=Re())=>"getFiberRoots"in e,pr=false,mr,xt=(e=Re())=>pr?true:(typeof e.inject=="function"&&(mr=e.inject.toString()),!!mr?.includes("(injected)")),Ct=new Set,je=new Set,br=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:nt,checkDCE:gr,hasUnsupportedRendererAttached:false,inject(i){let o=++n;return t.set(o,i),je.add(i),r._instrumentationIsActive||(r._instrumentationIsActive=true,Ct.forEach(s=>s())),o},on:tt,onCommitFiberRoot:tt,onCommitFiberUnmount:tt,onPostCommitFiberRoot:tt,renderers:t,supportsFiber:true,supportsFlight:true};try{dr(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(s){if(s&&typeof s=="object"){let a=r.renderers;r=s,a.size>0&&(a.forEach((l,f)=>{je.add(l),s.renderers.set(f,l);}),Et(e));}}});let i=window.hasOwnProperty,o=!1;dr(window,"hasOwnProperty",{configurable:!0,value:function(...s){try{if(!o&&s[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,o=!0,-0}catch{}return i.apply(this,s)},writable:!0});}catch{Et(e);}return r},Et=e=>{e&&Ct.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=gr,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=nt,t._instrumentationIsActive=!1;let n=Xt(t);if(n||(t.on=tt),t.renderers.size){t._instrumentationIsActive=!0,Ct.forEach(o=>o());return}let r=t.inject,i=xt(t);i&&!n&&(pr=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let s=r(o);return je.add(o),i&&t.renderers.set(s,o),t._instrumentationIsActive=!0,Ct.forEach(a=>a()),s};}(t.renderers.size||t._instrumentationIsActive||xt())&&e?.();}catch{}},qt=()=>co.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Re=e=>qt()?(Et(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):br(e),yr=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Wt=()=>{try{yr()&&Re();}catch{}};Wt();var Rt=0,Nt=1;var At=5;var Ot=11,Kt=13,wr=14,kt=15,Zt=16;var Jt=19;var _t=26,It=27,Qt=28,en=30;var tn=e=>{switch(e.tag){case At:case _t:case It:return true;default:return typeof e.type=="string"}},Ve=e=>{switch(e.tag){case Nt:case Ot:case Rt:case wr:case kt:return true;default:return false}};function Me(e,t,n=false){return e&&t(e)instanceof Promise?rn(e,t,n):nn(e,t,n)}var nn=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=nn(r,t,n);if(i)return i;r=n?null:r.sibling;}return null},rn=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=await rn(r,t,n);if(i)return i;r=n?null:r.sibling;}return null};var on=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?on(t.type||t.render):null},Pe=e=>{let t=e;if(typeof t=="string")return t;if(typeof t!="function"&&!(typeof t=="object"&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=on(t);return r&&(r.displayName||r.name)||null};var sn=e=>{let t=e.alternate;if(!t)return e;if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let n of Ft){let r=Me(n.current,i=>{if(i===e)return true});if(r)return r}return e};var an=e=>{let t=Re(e.onActive);t._instrumentationSource=e.name??nt;let n=t.onCommitFiberRoot;if(e.onCommitFiberRoot){let o=(s,a,l)=>{n!==o&&(n?.(s,a,l),e.onCommitFiberRoot?.(s,a,l));};t.onCommitFiberRoot=o;}let r=t.onCommitFiberUnmount;if(e.onCommitFiberUnmount){let o=(s,a)=>{t.onCommitFiberUnmount===o&&(r?.(s,a),e.onCommitFiberUnmount?.(s,a));};t.onCommitFiberUnmount=o;}let i=t.onPostCommitFiberRoot;if(e.onPostCommitFiberRoot){let o=(s,a)=>{t.onPostCommitFiberRoot===o&&(i?.(s,a),e.onPostCommitFiberRoot?.(s,a));};t.onPostCommitFiberRoot=o;}return t},Ye=e=>{let t=Re();for(let n of t.renderers.values())try{let r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let n in e)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return e[n]||null}return null},Ft=new Set;var wo=Object.create,Nr=Object.defineProperty,To=Object.getOwnPropertyDescriptor,So=Object.getOwnPropertyNames,vo=Object.getPrototypeOf,Co=Object.prototype.hasOwnProperty,xo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Eo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=So(t),o=0,s=i.length,a;o<s;o++)a=i[o],!Co.call(e,a)&&a!==n&&Nr(e,a,{get:(l=>t[l]).bind(null,a),enumerable:!(r=To(t,a))||r.enumerable});return e},Ro=(e,t,n)=>(n=e==null?{}:wo(vo(e)),Eo(Nr(n,"default",{value:e,enumerable:true}),e)),No=()=>{let e=Re();for(let t of [...Array.from(je),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},Tr=e=>{for(let t of je){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},Ne=e=>`
10
- in ${e}`,Ao=(e,t)=>{let n=Ne(e);return t&&(n+=` (at ${t})`),n},ln=false,cn=(e,t)=>{if(!e||ln)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,ln=true;let r=No();Tr(null);let i=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let l={DetermineComponentFrameRoot(){let x;try{if(t){let v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[]);}catch(S){x=S;}Reflect.construct(e,[],v);}else {try{v.call();}catch(S){x=S;}e.call(v.prototype);}}else {try{throw Error()}catch(S){x=S;}let v=e();v&&typeof v.catch=="function"&&v.catch(()=>{});}}catch(v){if(v instanceof Error&&x instanceof Error&&typeof v.stack=="string")return [v.stack,x.stack]}return [null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[d,h]=l.DetermineComponentFrameRoot();if(d&&h){let x=d.split(`
11
- `),v=h.split(`
12
- `),S=0,R=0;for(;S<x.length&&!x[S].includes("DetermineComponentFrameRoot");)S++;for(;R<v.length&&!v[R].includes("DetermineComponentFrameRoot");)R++;if(S===x.length||R===v.length)for(S=x.length-1,R=v.length-1;S>=1&&R>=0&&x[S]!==v[R];)R--;for(;S>=1&&R>=0;S--,R--)if(x[S]!==v[R]){if(S!==1||R!==1)do if(S--,R--,R<0||x[S]!==v[R]){let k=`
13
- ${x[S].replace(" at new "," at ")}`,M=Pe(e);return M&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",M)),k}while(S>=1&&R>=0);break}}}finally{ln=false,Error.prepareStackTrace=n,Tr(r),console.error=i,console.warn=o;}let s=e?Pe(e):"";return s?Ne(s):""},Oo=(e,t)=>{let n=e.tag,r="";switch(n){case Qt:r=Ne("Activity");break;case Nt:r=cn(e.type,true);break;case Ot:r=cn(e.type.render,false);break;case Rt:case kt:r=cn(e.type,false);break;case At:case _t:case It:r=Ne(e.type);break;case Zt:r=Ne("Lazy");break;case Kt:r=e.child!==t&&t!==null?Ne("Suspense Fallback"):Ne("Suspense");break;case Jt:r=Ne("SuspenseList");break;case en:r=Ne("ViewTransition");break;default:return ""}return r},ko=e=>{try{let t="",n=e,r=null;do{t+=Oo(n,r);let i=n._debugInfo;if(i&&Array.isArray(i))for(let o=i.length-1;o>=0;o--){let s=i[o];typeof s.name=="string"&&(t+=Ao(s.name,s.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
9
+ var Dr=(e,t)=>e===t;var Hr=Symbol("solid-track"),nt={equals:Dr},Sn=En,ae=1,je=2,Tn={owned:null,cleanups:null,context:null,owner:null};var O=null,g=null,Pe=null,I=null,U=null,Q=null,ot=0;function Fe(e,t){let n=I,r=O,o=e.length===0,i=t===void 0?r:t,s=o?Tn:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>ie(()=>Te(s)));O=s,I=null;try{return ye(a,!0)}finally{I=n,O=r;}}function E(e,t){t=t?Object.assign({},nt,t):nt;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),Cn(n,o));return [vn.bind(n),r]}function ne(e,t,n){let r=Pt(e,t,false,ae);Ye(r);}function re(e,t,n){Sn=Yr;let r=Pt(e,t,false,ae);(r.user=true),Q?Q.push(r):Ye(r);}function H(e,t,n){n=n?Object.assign({},nt,n):nt;let r=Pt(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Ye(r),vn.bind(r)}function ie(e){if(I===null)return e();let t=I;I=null;try{return Pe?Pe.untrack(e):e()}finally{I=t;}}function Ie(e,t,n){let r=Array.isArray(e),o;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]();}else a=e();let l=ie(()=>t(a,o,s));return o=a,l}}function xn(e){re(()=>ie(e));}function se(e){return O===null||(O.cleanups===null?O.cleanups=[e]:O.cleanups.push(e)),e}E(false);function vn(){let e=g;if(this.sources&&(this.state))if((this.state)===ae)Ye(this);else {let t=U;U=null,ye(()=>rt(this),false),U=t;}if(I){let t=this.observers?this.observers.length:0;I.sources?(I.sources.push(this),I.sourceSlots.push(t)):(I.sources=[this],I.sourceSlots=[t]),this.observers?(this.observers.push(I),this.observerSlots.push(I.sources.length-1)):(this.observers=[I],this.observerSlots=[I.sources.length-1]);}return e&&g.sources.has(this)?this.tValue:this.value}function Cn(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&ye(()=>{for(let o=0;o<e.observers.length;o+=1){let i=e.observers[o],s=g&&g.running;s&&g.disposed.has(i)||((s?!i.tState:!i.state)&&(i.pure?U.push(i):Q.push(i),i.observers&&Rn(i)),s?i.tState=ae:i.state=ae);}if(U.length>1e6)throw U=[],new Error},false);}return t}function Ye(e){if(!e.fn)return;Te(e);let t=ot;bn(e,e.value,t);}function bn(e,t,n){let r,o=O,i=I;I=O=e;try{r=e.fn(t);}catch(s){return e.pure&&((e.state=ae,e.owned&&e.owned.forEach(Te),e.owned=null)),e.updatedAt=n+1,It(s)}finally{I=i,O=o;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Cn(e,r):e.value=r,e.updatedAt=n);}function Pt(e,t,n,r=ae,o){let i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:O,context:O?O.context:null,pure:n};if(O===null||O!==Tn&&(O.owned?O.owned.push(i):O.owned=[i]),Pe);return i}function Ve(e){let t=g;if((e.state)===0)return;if((e.state)===je)return rt(e);if(e.suspense&&ie(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ot);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===ae)Ye(e);else if((e.state)===je){let o=U;U=null,ye(()=>rt(e,n[0]),false),U=o;}}}function ye(e,t){if(U)return e();let n=false;t||(U=[]),Q?n=true:Q=[],ot++;try{let r=e();return Vr(n),r}catch(r){n||(Q=null),U=null,It(r);}}function Vr(e){if(U&&(En(U),U=null),e)return;let n=Q;Q=null,n.length&&ye(()=>Sn(n),false);}function En(e){for(let t=0;t<e.length;t++)Ve(e[t]);}function Yr(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:Ve(r);}for(t=0;t<n;t++)Ve(e[t]);}function rt(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let o=e.sources[r];if(o.sources){let i=o.state;i===ae?o!==t&&(!o.updatedAt||o.updatedAt<ot)&&Ve(o):i===je&&rt(o,t);}}}function Rn(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=je,r.pure?U.push(r):Q.push(r),r.observers&&Rn(r));}}function Te(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){let i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Te(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Te(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function Ur(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function It(e,t=O){let r=Ur(e);throw r;}var zr=Symbol("fallback");function wn(e){for(let t=0;t<e.length;t++)e[t]();}function Xr(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return se(()=>wn(i)),()=>{let l=e()||[],c=l.length,m,f;return l[Hr],ie(()=>{let h,w,S,Y,oe,z,q,D,W;if(c===0)s!==0&&(wn(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[zr],o[0]=Fe(fe=>(i[0]=fe,n.fallback())),s=1);else if(s===0){for(o=new Array(c),f=0;f<c;f++)r[f]=l[f],o[f]=Fe(T);s=c;}else {for(S=new Array(c),Y=new Array(c),a&&(oe=new Array(c)),z=0,q=Math.min(s,c);z<q&&r[z]===l[z];z++);for(q=s-1,D=c-1;q>=z&&D>=z&&r[q]===l[D];q--,D--)S[D]=o[q],Y[D]=i[q],a&&(oe[D]=a[q]);for(h=new Map,w=new Array(D+1),f=D;f>=z;f--)W=l[f],m=h.get(W),w[f]=m===void 0?-1:m,h.set(W,f);for(m=z;m<=q;m++)W=r[m],f=h.get(W),f!==void 0&&f!==-1?(S[f]=o[m],Y[f]=i[m],a&&(oe[f]=a[m]),f=w[f],h.set(W,f)):i[m]();for(f=z;f<c;f++)f in S?(o[f]=S[f],i[f]=Y[f],a&&(a[f]=oe[f],a[f](f))):o[f]=Fe(T);o=o.slice(0,s=c),r=l.slice(0);}return o});function T(h){if(i[f]=h,a){let[w,S]=E(f);return a[f]=S,t(l[f],w)}return t(l[f])}}}function C(e,t){return ie(()=>e(t||{}))}var Wr=e=>`Stale read from <${e}>.`;function it(e){let t="fallback"in e&&{fallback:()=>e.fallback};return H(Xr(()=>e.each,e.children,t||void 0))}function $(e){let t=e.keyed,n=H(()=>e.when,void 0,void 0),r=t?n:H(n,void 0,{equals:(o,i)=>!o==!i});return H(()=>{let o=r();if(o){let i=e.children;return typeof i=="function"&&i.length>0?ie(()=>i(t?o:()=>{if(!ie(r))throw Wr("Show");return n()})):i}return e.fallback},void 0,void 0)}var he=e=>H(()=>e());function Qr(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,l=t[o-1].nextSibling,c=null;for(;s<o||a<i;){if(t[s]===n[a]){s++,a++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){let m=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],m);}else if(i===a)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){let m=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],m),t[o]=n[i];}else {if(!c){c=new Map;let f=a;for(;f<i;)c.set(n[f],f++);}let m=c.get(t[s]);if(m!=null)if(a<m&&m<i){let f=s,T=1,h;for(;++f<o&&f<i&&!((h=c.get(t[f]))==null||h!==m+T);)T++;if(T>m-a){let w=t[s];for(;a<m;)e.insertBefore(n[a++],w);}else e.replaceChild(n[a++],t[s++]);}else s++;else t[s++].remove();}}}function On(e,t,n,r={}){let o;return Fe(i=>{o=i,t===document?e():le(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{o(),t.textContent="";}}function X(e,t,n,r){let o,i=()=>{let a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},s=()=>(o||(o=i())).cloneNode(true);return s.cloneNode=s,s}function Jr(e,t,n){(e.removeAttribute(t));}function at(e,t,n){if(!t)return n?Jr(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function ce(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function xe(e,t,n){return ie(()=>e(t,n))}function le(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return st(e,t,r,n);ne(o=>st(e,t(),o,n),r);}function st(e,t,n,r,o){for(;typeof n=="function";)n=n();if(t===n)return n;let s=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(s==="number"&&(t=t.toString(),t===n))return n;if(a){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=$e(e,n,r,l);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||s==="boolean"){n=$e(e,n,r);}else {if(s==="function")return ne(()=>{let l=t();for(;typeof l=="function";)l=l();n=st(e,l,n,r);}),()=>n;if(Array.isArray(t)){let l=[],c=n&&Array.isArray(n);if($t(l,t,n,o))return ne(()=>n=st(e,l,n,r,true)),()=>n;if(l.length===0){if(n=$e(e,n,r),a)return n}else c?n.length===0?An(e,l,r):Qr(e,n,l):(n&&$e(e),An(e,l));n=l;}else if(t.nodeType){if(Array.isArray(n)){if(a)return n=$e(e,n,r,t);$e(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function $t(e,t,n,r){let o=false;for(let i=0,s=t.length;i<s;i++){let a=t[i],l=n&&n[e.length],c;if(!(a==null||a===true||a===false))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=$t(e,a,l)||o;else if(c==="function")if(r){for(;typeof a=="function";)a=a();o=$t(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||o;}else e.push(a),o=true;else {let m=String(a);l&&l.nodeType===3&&l.data===m?e.push(l):e.push(document.createTextNode(m));}}return o}function An(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n);}function $e(e,t,n,r){if(n===void 0)return e.textContent="";let o=r||document.createTextNode("");if(t.length){let i=false;for(let s=t.length-1;s>=0;s--){let a=t[s];if(o!==a){let l=a.parentNode===e;!i&&!s?l?e.replaceChild(o,a):e.insertBefore(o,n):l&&a.remove();}else i=true;}}else e.insertBefore(o,n);return [o]}var eo=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],to=e=>!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-"),no=e=>Array.isArray(e),ro=(e,t=false)=>{let{composed:n,target:r}=e,o,i;if(r instanceof HTMLElement&&to(r)&&n){let a=e.composedPath()[0];a instanceof HTMLElement&&(o=a.tagName,i=a.role);}else r instanceof HTMLElement&&(o=r.tagName,i=r.role);return no(t)?!!(o&&t&&t.some(s=>typeof o=="string"&&s.toLowerCase()===o.toLowerCase()||s===i)):!!(o&&t&&t)},kn=e=>ro(e,eo);var Me="data-react-grab",Nn=()=>{let e=document.querySelector(`[${Me}]`);if(e){let i=e.shadowRoot?.querySelector(`[${Me}]`);if(i instanceof HTMLDivElement&&e.shadowRoot)return i}let t=document.createElement("div");t.setAttribute(Me,"true"),t.style.zIndex="2147483646",t.style.position="fixed",t.style.top="0",t.style.left="0";let n=t.attachShadow({mode:"open"}),r=document.createElement("div");return r.setAttribute(Me,"true"),n.appendChild(r),(document.body??document.documentElement).appendChild(t),r};var ve=(e,t,n)=>e+(t-e)*n;var io=X("<div>"),lt=e=>{let[t,n]=E(e.bounds.x),[r,o]=E(e.bounds.y),[i,s]=E(e.bounds.width),[a,l]=E(e.bounds.height),[c,m]=E(1),f=false,T=null,h=null,w=e.bounds,S=false,Y=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,oe=()=>{if(S)return;S=true;let D=()=>{let W=ve(t(),w.x,Y()),fe=ve(r(),w.y,Y()),Re=ve(i(),w.width,Y()),Se=ve(a(),w.height,Y());n(W),o(fe),s(Re),l(Se),Math.abs(W-w.x)<.5&&Math.abs(fe-w.y)<.5&&Math.abs(Re-w.width)<.5&&Math.abs(Se-w.height)<.5?(T=null,S=false):T=requestAnimationFrame(D);};T=requestAnimationFrame(D);};re(Ie(()=>e.bounds,D=>{if(w=D,!f){n(w.x),o(w.y),s(w.width),l(w.height),f=true;return}oe();})),re(()=>{e.variant==="grabbed"&&e.createdAt&&(h=window.setTimeout(()=>{m(0);},1500));}),se(()=>{T!==null&&(cancelAnimationFrame(T),T=null),h!==null&&(window.clearTimeout(h),h=null),S=false;});let z={position:"fixed","box-sizing":"border-box","pointer-events":e.variant==="drag"?"none":"auto","z-index":e.variant==="grabbed"?"2147483645":"2147483646"},q=()=>e.variant==="drag"?{border:"1px dashed rgba(210, 57, 192, 0.4)","background-color":"rgba(210, 57, 192, 0.05)","will-change":"transform, width, height",contain:"layout paint size",cursor:"crosshair"}:e.variant==="selection"?{border:"1px dashed rgba(210, 57, 192, 0.5)","background-color":"rgba(210, 57, 192, 0.08)"}:{border:"1px solid rgb(210, 57, 192)","background-color":"rgba(210, 57, 192, 0.08)",transition:"opacity 0.3s ease-out"};return C($,{get when(){return e.visible!==false},get children(){var D=io();return ne(W=>at(D,{...z,...q(),top:`${r()}px`,left:`${t()}px`,width:`${i()}px`,height:`${a()}px`,"border-radius":e.bounds.borderRadius,transform:e.bounds.transform,opacity:c()},W)),D}})};var so=X('<span style="display:inline-block;width:8px;height:8px;border:1.5px solid rgb(210, 57, 192);border-top-color:transparent;border-radius:50%;margin-right:4px;vertical-align:middle">'),Pn=e=>{let t;return xn(()=>{t&&t.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:600,easing:"linear",iterations:1/0});}),(()=>{var n=so(),r=t;return typeof r=="function"?xe(r,n):t=n,ne(o=>at(n,{...e.style},o)),n})()};var ct=(e,t,n,r)=>{let o=window.innerWidth,i=window.innerHeight,s=8,a=8,l=o-n-8,c=i-r-8,m=Math.max(s,Math.min(e,l)),f=Math.max(a,Math.min(t,c));return {left:m,top:f}};var ut=e=>{let t=e.lerpFactor??.3,n=e.convergenceThreshold??.5,[r,o]=E(e.x()),[i,s]=E(e.y()),a=e.x(),l=e.y(),c=null,m=false,f=()=>{let h=ve(r(),a,t),w=ve(i(),l,t);o(h),s(w),Math.abs(h-a)<n&&Math.abs(w-l)<n?c=null:c=requestAnimationFrame(f);},T=()=>{c===null&&(c=requestAnimationFrame(f));};return re(()=>{if(a=e.x(),l=e.y(),!m){o(a),s(l),m=true;return}T();}),se(()=>{c!==null&&(cancelAnimationFrame(c),c=null);}),{x:r,y:i}};var ft=e=>{let[t,n]=E(0);return re(Ie(()=>e.visible,r=>{if(r!==false)requestAnimationFrame(()=>{n(1);});else {n(0);return}if(e.autoFadeOutAfter!==void 0){let o=setTimeout(()=>{n(0);},e.autoFadeOutAfter);se(()=>clearTimeout(o));}})),t};var In=(e,t,n,r,o)=>[{left:Math.round(e)+o,top:Math.round(t)+o},{left:Math.round(e)-n-o,top:Math.round(t)+o},{left:Math.round(e)+o,top:Math.round(t)-r-o},{left:Math.round(e)-n-o,top:Math.round(t)-r-o}];var ao=X('<div style="position:absolute;top:0;left:0;bottom:0;background-color:rgba(178, 28, 142, 0.2);border-radius:3px;transition:width 0.1s ease-out;pointer-events:none">'),lo=X("<span style=display:inline-block;margin-right:4px;font-weight:600>\u2713"),co=X("<div style=margin-right:4px>Copied"),uo=X(`<span style="font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;font-variant-numeric:tabular-nums;vertical-align:middle">`),fo=X("<span style=font-variant-numeric:tabular-nums;font-size:10px;margin-left:4px;vertical-align:middle>"),mo=X("<div style=margin-left:4px>to clipboard"),go=X("<div style=font-size:9px;opacity:0.6;text-align:center;margin-top:2px>Click or drag to select"),ho=X(`<div style="position:fixed;background-color:#fde7f7;color:#b21c8e;border:1px solid #f7c5ec;border-radius:4px;font-size:11px;font-weight:500;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;pointer-events:none;transition:opacity 0.2s ease-in-out;max-width:calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)));overflow:hidden"><div style="position:relative;padding:2px 6px;display:flex;flex-direction:column"><div style=display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap>`),Mt=e=>{let t,n=ut({x:()=>e.x,y:()=>e.y,lerpFactor:.3}),r=ft({visible:e.visible,autoFadeOutAfter:e.variant==="success"?1700:void 0}),o=()=>t?.getBoundingClientRect(),i=()=>{let a=o();if(!a)return {left:n.x(),top:n.y()};let l=window.innerWidth,c=window.innerHeight,m=In(n.x(),n.y(),a.width,a.height,14);for(let T of m){let h=T.left>=8&&T.left+a.width<=l-8,w=T.top>=8&&T.top+a.height<=c-8;if(h&&w)return T}let f=ct(m[0].left,m[0].top,a.width,a.height);return f.left+=4,f.top+=4,f},s=()=>{let l=e.text.indexOf(" in ");return l===-1?{primary:e.text,secondary:""}:{primary:e.text.slice(0,l),secondary:e.text.slice(l)}};return C($,{get when(){return e.visible!==false},get children(){var a=ho(),l=a.firstChild,c=l.firstChild,m=t;return typeof m=="function"?xe(m,a):t=a,le(a,C($,{get when(){return he(()=>e.variant==="processing")()&&e.progress!==void 0},get children(){var f=ao();return ne(T=>ce(f,"width",`${Math.min(100,Math.max(0,(e.progress??0)*100))}%`)),f}}),l),le(c,C($,{get when(){return e.variant==="processing"},get children(){return C(Pn,{})}}),null),le(c,C($,{get when(){return e.variant==="success"},get children(){return lo()}}),null),le(c,C($,{get when(){return e.variant==="success"},get children(){return co()}}),null),le(c,C($,{get when(){return e.variant==="processing"},children:"Please wait\u2026"}),null),le(c,C($,{get when(){return e.variant!=="processing"},get children(){return [(()=>{var f=uo();return le(f,()=>s().primary),f})(),C($,{get when(){return he(()=>e.variant==="hover")()&&s().secondary!==""},get children(){var f=fo();return le(f,()=>s().secondary),f}})]}}),null),le(c,C($,{get when(){return e.variant==="success"},get children(){return mo()}}),null),le(l,C($,{get when(){return he(()=>e.variant==="hover")()&&e.showHint},get children(){return go()}}),null),ne(f=>{var T=`${i().top}px`,h=`${i().left}px`,w=e.zIndex?.toString()??"2147483647",S=r();return T!==f.e&&ce(a,"top",f.e=T),h!==f.t&&ce(a,"left",f.t=h),w!==f.a&&ce(a,"z-index",f.a=w),S!==f.o&&ce(a,"opacity",f.o=S),f},{e:void 0,t:void 0,a:void 0,o:void 0}),a}})};var po=X('<div style="position:fixed;z-index:2147483647;pointer-events:none;transition:opacity 0.1s ease-in-out"><div style="width:32px;height:2px;background-color:rgba(178, 28, 142, 0.2);border-radius:1px;overflow:hidden;position:relative"><div style="height:100%;background-color:#b21c8e;border-radius:1px;transition:width 0.05s cubic-bezier(0.165, 0.84, 0.44, 1)">'),Mn=e=>{let t=ft({visible:e.visible}),n,r=()=>{let o=n?.getBoundingClientRect();if(!o)return {left:e.mouseX,top:e.mouseY};let i=window.innerHeight,s=e.mouseX-o.width/2,a=e.mouseY+14+o.height+8>i?e.mouseY-o.height-14:e.mouseY+14;return ct(s,a,o.width,o.height)};return C($,{get when(){return e.visible!==false},get children(){var o=po(),i=o.firstChild,s=i.firstChild,a=n;return typeof a=="function"?xe(a,o):n=o,ne(l=>{var c=`${r().top}px`,m=`${r().left}px`,f=t(),T=`${Math.min(100,Math.max(0,e.progress*100))}%`;return c!==l.e&&ce(o,"top",l.e=c),m!==l.t&&ce(o,"left",l.t=m),f!==l.a&&ce(o,"opacity",l.a=f),T!==l.o&&ce(s,"width",l.o=T),l},{e:void 0,t:void 0,a:void 0,o:void 0}),o}})};var bo=X("<canvas style=position:fixed;top:0;left:0;pointer-events:none;z-index:2147483645>"),Ln=e=>{let t,n=null,r=0,o=0,i=1,s=ut({x:()=>e.mouseX,y:()=>e.mouseY,lerpFactor:.3}),a=()=>{t&&(i=Math.max(window.devicePixelRatio||1,2),r=window.innerWidth,o=window.innerHeight,t.width=r*i,t.height=o*i,t.style.width=`${r}px`,t.style.height=`${o}px`,n=t.getContext("2d"),n&&n.scale(i,i));},l=()=>{n&&(n.clearRect(0,0,r,o),n.strokeStyle="rgba(210, 57, 192)",n.lineWidth=1,n.beginPath(),n.moveTo(s.x(),0),n.lineTo(s.x(),o),n.moveTo(0,s.y()),n.lineTo(r,s.y()),n.stroke());};return re(()=>{a(),l();let c=()=>{a(),l();};window.addEventListener("resize",c),se(()=>{window.removeEventListener("resize",c);});}),re(()=>{s.x(),s.y(),l();}),C($,{get when(){return e.visible!==false},get children(){var c=bo(),m=t;return typeof m=="function"?xe(m,c):t=c,c}})};var Dn=e=>[C($,{get when(){return he(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return C(lt,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible}})}}),C($,{get when(){return he(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return C(Ln,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),C($,{get when(){return he(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return C(lt,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),C(it,{get each(){return e.grabbedBoxes??[]},children:t=>C(lt,{variant:"grabbed",get bounds(){return t.bounds},get createdAt(){return t.createdAt}})}),C($,{get when(){return e.labelVariant!=="processing"},get children(){return C(it,{get each(){return e.successLabels??[]},children:t=>C(Mt,{variant:"success",get text(){return t.text},get x(){return e.mouseX??0},get y(){return e.mouseY??0}})})}}),C($,{get when(){return he(()=>!!(e.labelVisible&&e.labelVariant&&e.labelText&&e.labelX!==void 0))()&&e.labelY!==void 0},get children(){return C(Mt,{get variant(){return e.labelVariant},get text(){return e.labelText},get x(){return e.labelX},get y(){return e.labelY},get visible(){return e.labelVisible},get zIndex(){return e.labelZIndex},get progress(){return e.progress},get showHint(){return e.labelShowHint}})}}),C($,{get when(){return he(()=>!!(e.progressVisible&&e.progress!==void 0&&e.mouseX!==void 0))()&&e.mouseY!==void 0},get children(){return C(Mn,{get progress(){return e.progress},get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},get visible(){return e.progressVisible}})}})];var jn="0.5.16",pt=`bippy-${jn}`,Hn=Object.defineProperty,yo=Object.prototype.hasOwnProperty,ze=()=>{},Vn=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")});}catch{}},Lt=(e=Ce())=>"getFiberRoots"in e,Gn=false,Bn,gt=(e=Ce())=>Gn?true:(typeof e.inject=="function"&&(Bn=e.inject.toString()),!!Bn?.includes("(injected)")),mt=new Set,ke=new Set,Yn=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:pt,checkDCE:Vn,hasUnsupportedRendererAttached:false,inject(o){let i=++n;return t.set(i,o),ke.add(o),r._instrumentationIsActive||(r._instrumentationIsActive=true,mt.forEach(s=>s())),i},on:ze,onCommitFiberRoot:ze,onCommitFiberUnmount:ze,onPostCommitFiberRoot:ze,renderers:t,supportsFiber:true,supportsFlight:true};try{Hn(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(s){if(s&&typeof s=="object"){let a=r.renderers;r=s,a.size>0&&(a.forEach((l,c)=>{ke.add(l),s.renderers.set(c,l);}),ht(e));}}});let o=window.hasOwnProperty,i=!1;Hn(window,"hasOwnProperty",{configurable:!0,value:function(...s){try{if(!i&&s[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,i=!0,-0}catch{}return o.apply(this,s)},writable:!0});}catch{ht(e);}return r},ht=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=Vn,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=pt,t._instrumentationIsActive=!1;let n=Lt(t);if(n||(t.on=ze),t.renderers.size){t._instrumentationIsActive=!0,mt.forEach(i=>i());return}let r=t.inject,o=gt(t);o&&!n&&(Gn=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=i=>{let s=r(i);return ke.add(i),o&&t.renderers.set(s,i),t._instrumentationIsActive=!0,mt.forEach(a=>a()),s};}(t.renderers.size||t._instrumentationIsActive||gt())&&e?.();}catch{}},Dt=()=>yo.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Ce=e=>Dt()?(ht(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Yn(e),Un=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Ht=()=>{try{Un()&&Ce();}catch{}};Ht();var bt=0,yt=1;var wt=5;var St=11,Bt=13,zn=14,Tt=15,jt=16;var Vt=19;var xt=26,vt=27,Gt=28,Yt=30;var Ct=e=>{switch(e.tag){case wt:case xt:case vt:return true;default:return typeof e.type=="string"}},Et=e=>{switch(e.tag){case yt:case St:case bt:case zn:case Tt:return true;default:return false}},Ut=e=>!e||typeof e!="object"?true:"pendingProps"in e&&!("containerInfo"in e);function Le(e,t,n=false){if(!e)return null;let r=t(e);if(r instanceof Promise)return (async()=>{if(await r===true)return e;let i=n?e.return:e.child;for(;i;){let s=await Xt(i,t,n);if(s)return s;i=n?null:i.sibling;}return null})();if(r===true)return e;let o=n?e.return:e.child;for(;o;){let i=zt(o,t,n);if(i)return i;o=n?null:o.sibling;}return null}var zt=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let o=zt(r,t,n);if(o)return o;r=n?null:r.sibling;}return null},Xt=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let o=await Xt(r,t,n);if(o)return o;r=n?null:r.sibling;}return null};var qt=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?qt(t.type||t.render):null},Ne=e=>{let t=e;if(typeof t=="string")return t;if(typeof t!="function"&&!(typeof t=="object"&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=qt(t);return r&&(r.displayName||r.name)||null};var Rt=e=>{let t=e.alternate;if(!t)return e;if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let n of Xn){let r=Le(n.current,o=>{if(o===e)return true});if(r)return r}return e};var Xe=e=>{let t=Ce();for(let n of t.renderers.values())try{let r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let n in e)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return e[n]||null}return null},Xn=new Set;var _o=Object.create,tr=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,Oo=Object.getOwnPropertyNames,Fo=Object.getPrototypeOf,ko=Object.prototype.hasOwnProperty,No=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Po=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Oo(t),i=0,s=o.length,a;i<s;i++)a=o[i],!ko.call(e,a)&&a!==n&&tr(e,a,{get:(l=>t[l]).bind(null,a),enumerable:!(r=Ao(t,a))||r.enumerable});return e},Io=(e,t,n)=>(n=e==null?{}:_o(Fo(e)),Po(tr(n,"default",{value:e,enumerable:true}),e)),$o=()=>{let e=Ce();for(let t of [...Array.from(ke),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},qn=e=>{for(let t of ke){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},we=e=>`
10
+ in ${e}`,Mo=(e,t)=>{let n=we(e);return t&&(n+=` (at ${t})`),n},Wt=false,Kt=(e,t)=>{if(!e||Wt)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,Wt=true;let r=$o();qn(null);let o=console.error,i=console.warn;console.error=()=>{},console.warn=()=>{};try{let l={DetermineComponentFrameRoot(){let T;try{if(t){let h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[]);}catch(w){T=w;}Reflect.construct(e,[],h);}else {try{h.call();}catch(w){T=w;}e.call(h.prototype);}}else {try{throw Error()}catch(w){T=w;}let h=e();h&&typeof h.catch=="function"&&h.catch(()=>{});}}catch(h){if(h instanceof Error&&T instanceof Error&&typeof h.stack=="string")return [h.stack,T.stack]}return [null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[m,f]=l.DetermineComponentFrameRoot();if(m&&f){let T=m.split(`
11
+ `),h=f.split(`
12
+ `),w=0,S=0;for(;w<T.length&&!T[w].includes("DetermineComponentFrameRoot");)w++;for(;S<h.length&&!h[S].includes("DetermineComponentFrameRoot");)S++;if(w===T.length||S===h.length)for(w=T.length-1,S=h.length-1;w>=1&&S>=0&&T[w]!==h[S];)S--;for(;w>=1&&S>=0;w--,S--)if(T[w]!==h[S]){if(w!==1||S!==1)do if(w--,S--,S<0||T[w]!==h[S]){let Y=`
13
+ ${T[w].replace(" at new "," at ")}`,oe=Ne(e);return oe&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",oe)),Y}while(w>=1&&S>=0);break}}}finally{Wt=false,Error.prepareStackTrace=n,qn(r),console.error=o,console.warn=i;}let s=e?Ne(e):"";return s?we(s):""},Lo=(e,t)=>{let n=e.tag,r="";switch(n){case Gt:r=we("Activity");break;case yt:r=Kt(e.type,true);break;case St:r=Kt(e.type.render,false);break;case bt:case Tt:r=Kt(e.type,false);break;case wt:case xt:case vt:r=we(e.type);break;case jt:r=we("Lazy");break;case Bt:r=e.child!==t&&t!==null?we("Suspense Fallback"):we("Suspense");break;case Vt:r=we("SuspenseList");break;case Yt:r=we("ViewTransition");break;default:return ""}return r},Do=e=>{try{let t="",n=e,r=null;do{t+=Lo(n,r);let o=n._debugInfo;if(o&&Array.isArray(o))for(let i=o.length-1;i>=0;i--){let s=o[i];typeof s.name=="string"&&(t+=Mo(s.name,s.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
14
14
  Error generating stack: ${t.message}
15
- ${t.stack}`:""}},_o=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return "";Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
15
+ ${t.stack}`:""}},Ho=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return "";Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
16
16
  `)&&(n=n.slice(29));let r=n.indexOf(`
17
17
  `);if(r!==-1&&(n=n.slice(r+1)),r=Math.max(n.indexOf("react_stack_bottom_frame"),n.indexOf("react-stack-bottom-frame")),r!==-1&&(r=n.lastIndexOf(`
18
- `,r)),r!==-1)n=n.slice(0,r);else return "";return n},Io=/(^|@)\S+:\d+/,Ar=/^\s*at .*(\S+:\d+|\(native\))/m,Fo=/^(eval@)?(\[native code\])?$/;var Or=(e,t)=>{if(t?.includeInElement!==false){let n=e.split(`
19
- `),r=[];for(let i of n)if(/^\s*at\s+/.test(i)){let o=Sr(i,void 0)[0];o&&r.push(o);}else if(/^\s*in\s+/.test(i)){let o=i.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");r.push({function:o,raw:i});}else if(i.match(Io)){let o=vr(i,void 0)[0];o&&r.push(o);}return un(r,t)}return e.match(Ar)?Sr(e,t):vr(e,t)},kr=e=>{if(!e.includes(":"))return [e,void 0,void 0];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/,n=t.exec(e.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]},un=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e;var Sr=(e,t)=>un(e.split(`
20
- `).filter(r=>!!r.match(Ar)),t).map(r=>{let i=r;i.includes("(eval ")&&(i=i.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let o=i.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),s=o.match(/ (\(.+\)$)/);o=s?o.replace(s[0],""):o;let a=kr(s?s[1]:o),l=s&&o||void 0,f=["eval","<anonymous>"].includes(a[0])?void 0:a[0];return {function:l,file:f,line:a[1]?+a[1]:void 0,col:a[2]?+a[2]:void 0,raw:i}});var vr=(e,t)=>un(e.split(`
21
- `).filter(r=>!r.match(Fo)),t).map(r=>{let i=r;if(i.includes(" > eval")&&(i=i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!i.includes("@")&&!i.includes(":"))return {function:i};{let o=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,s=i.match(o),a=s&&s[1]?s[1]:void 0,l=kr(i.replace(o,""));return {function:a,file:l[0],line:l[1]?+l[1]:void 0,col:l[2]?+l[2]:void 0,raw:i}}});var $o=xo((e,t)=>{(function(n,r){typeof e=="object"&&t!==void 0?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.sourcemapCodec={}));})(void 0,function(n){let r=44,i=59,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),a=new Uint8Array(128);for(let w=0;w<o.length;w++){let g=o.charCodeAt(w);s[w]=g,a[g]=w;}function l(w,g){let c=0,m=0,y=0;do{let O=w.next();y=a[O],c|=(y&31)<<m,m+=5;}while(y&32);let E=c&1;return c>>>=1,E&&(c=-2147483648|-c),g+c}function f(w,g,c){let m=g-c;m=m<0?-m<<1|1:m<<1;do{let y=m&31;m>>>=5,m>0&&(y|=32),w.write(s[y]);}while(m>0);return g}function d(w,g){return w.pos>=g?false:w.peek()!==r}let h=1024*16,x=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(w){return Buffer.from(w.buffer,w.byteOffset,w.byteLength).toString()}}:{decode(w){let g="";for(let c=0;c<w.length;c++)g+=String.fromCharCode(w[c]);return g}};class v{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(h);}write(g){let{buffer:c}=this;c[this.pos++]=g,this.pos===h&&(this.out+=x.decode(c),this.pos=0);}flush(){let{buffer:g,out:c,pos:m}=this;return m>0?c+x.decode(g.subarray(0,m)):c}}class S{constructor(g){this.pos=0,this.buffer=g;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(g){let{buffer:c,pos:m}=this,y=c.indexOf(g,m);return y===-1?c.length:y}}let R=[];function k(w){let{length:g}=w,c=new S(w),m=[],y=[],E=0;for(;c.pos<g;c.pos++){E=l(c,E);let O=l(c,0);if(!d(c,g)){let W=y.pop();W[2]=E,W[3]=O;continue}let P=l(c,0),j=l(c,0),F=j&1,B=F?[E,O,0,0,P,l(c,0)]:[E,O,0,0,P],U=R;if(d(c,g)){U=[];do{let W=l(c,0);U.push(W);}while(d(c,g))}B.vars=U,m.push(B),y.push(B);}return m}function M(w){let g=new v;for(let c=0;c<w.length;)c=T(w,c,g,[0]);return g.flush()}function T(w,g,c,m){let y=w[g],{0:E,1:O,2:P,3:j,4:F,vars:B}=y;g>0&&c.write(r),m[0]=f(c,E,m[0]),f(c,O,0),f(c,F,0);let U=y.length===6?1:0;f(c,U,0),y.length===6&&f(c,y[5],0);for(let W of B)f(c,W,0);for(g++;g<w.length;){let W=w[g],{0:D,1:z}=W;if(D>P||D===P&&z>=j)break;g=T(w,g,c,m);}return c.write(r),m[0]=f(c,P,m[0]),f(c,j,0),g}function A(w){let{length:g}=w,c=new S(w),m=[],y=[],E=0,O=0,P=0,j=0,F=0,B=0,U=0,W=0;do{let D=c.indexOf(";"),z=0;for(;c.pos<D;c.pos++){if(z=l(c,z),!d(c,D)){let Z=y.pop();Z[2]=E,Z[3]=z;continue}let K=l(c,0),xe=K&1,pe=K&2,ne=K&4,se=null,be=R,ce;if(xe){let Z=l(c,O);P=l(c,O===Z?P:0),O=Z,ce=[E,z,0,0,Z,P];}else ce=[E,z,0,0];if(ce.isScope=!!ne,pe){let Z=j,Oe=F;j=l(c,j);let Le=Z===j;F=l(c,Le?F:0),B=l(c,Le&&Oe===F?B:0),se=[j,F,B];}if(ce.callsite=se,d(c,D)){be=[];do{U=E,W=z;let Z=l(c,0),Oe;if(Z<-1){Oe=[[l(c,0)]];for(let Le=-1;Le>Z;Le--){let at=U;U=l(c,U),W=l(c,U===at?W:0);let lt=l(c,0);Oe.push([lt,U,W]);}}else Oe=[[Z]];be.push(Oe);}while(d(c,D))}ce.bindings=be,m.push(ce),y.push(ce);}E++,c.pos=D+1;}while(c.pos<g);return m}function N(w){if(w.length===0)return "";let g=new v;for(let c=0;c<w.length;)c=_(w,c,g,[0,0,0,0,0,0,0]);return g.flush()}function _(w,g,c,m){let y=w[g],{0:E,1:O,2:P,3:j,isScope:F,callsite:B,bindings:U}=y;m[0]<E?(q(c,m[0],E),m[0]=E,m[1]=0):g>0&&c.write(r),m[1]=f(c,y[1],m[1]);let W=(y.length===6?1:0)|(B?2:0)|(F?4:0);if(f(c,W,0),y.length===6){let{4:D,5:z}=y;D!==m[2]&&(m[3]=0),m[2]=f(c,D,m[2]),m[3]=f(c,z,m[3]);}if(B){let{0:D,1:z,2:K}=y.callsite;D===m[4]?z!==m[5]&&(m[6]=0):(m[5]=0,m[6]=0),m[4]=f(c,D,m[4]),m[5]=f(c,z,m[5]),m[6]=f(c,K,m[6]);}if(U)for(let D of U){D.length>1&&f(c,-D.length,0);let z=D[0][0];f(c,z,0);let K=E,xe=O;for(let pe=1;pe<D.length;pe++){let ne=D[pe];K=f(c,ne[1],K),xe=f(c,ne[2],xe),f(c,ne[0],0);}}for(g++;g<w.length;){let D=w[g],{0:z,1:K}=D;if(z>P||z===P&&K>=j)break;g=_(w,g,c,m);}return m[0]<P?(q(c,m[0],P),m[0]=P,m[1]=0):c.write(r),m[1]=f(c,j,m[1]),g}function q(w,g,c){do w.write(i);while(++g<c)}function Q(w){let{length:g}=w,c=new S(w),m=[],y=0,E=0,O=0,P=0,j=0;do{let F=c.indexOf(";"),B=[],U=true,W=0;for(y=0;c.pos<F;){let D;y=l(c,y),y<W&&(U=false),W=y,d(c,F)?(E=l(c,E),O=l(c,O),P=l(c,P),d(c,F)?(j=l(c,j),D=[y,E,O,P,j]):D=[y,E,O,P]):D=[y],B.push(D),c.pos++;}U||te(B),m.push(B),c.pos=F+1;}while(c.pos<=g);return m}function te(w){w.sort(Te);}function Te(w,g){return w[0]-g[0]}function ge(w){let g=new v,c=0,m=0,y=0,E=0;for(let O=0;O<w.length;O++){let P=w[O];if(O>0&&g.write(i),P.length===0)continue;let j=0;for(let F=0;F<P.length;F++){let B=P[F];F>0&&g.write(r),j=f(g,B[0],j),B.length!==1&&(c=f(g,B[1],c),m=f(g,B[2],m),y=f(g,B[3],y),B.length!==4&&(E=f(g,B[4],E)));}}return g.flush()}n.decode=Q,n.decodeGeneratedRanges=A,n.decodeOriginalScopes=k,n.encode=ge,n.encodeGeneratedRanges=N,n.encodeOriginalScopes=M,Object.defineProperty(n,"__esModule",{value:true});});}),_r=Ro($o()),Ir=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Mo=/^data:application\/json[^,]+base64,/,Po=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Fr=typeof WeakRef<"u",rt=new Map,$t=new Map,Lo=e=>Fr&&e instanceof WeakRef,Cr=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let o=null;for(let d of i)if(d[0]<=r)o=d;else break;if(!o||o.length<4)return null;let[,s,a,l]=o;if(s===void 0||a===void 0||l===void 0)return null;let f=t[s];return f?{columnNumber:l,fileName:f,lineNumber:a+1}:null},Do=(e,t,n)=>{if(e.sections){let r=null;for(let s of e.sections)if(t>s.offset.line||t===s.offset.line&&n>=s.offset.column)r=s;else break;if(!r)return null;let i=t-r.offset.line,o=t===r.offset.line?n-r.offset.column:n;return Cr(r.map.mappings,r.map.sources,i,o)}return Cr(e.mappings,e.sources,t-1,n)},Ho=(e,t)=>{let n=t.split(`
22
- `),r;for(let o=n.length-1;o>=0&&!r;o--){let s=n[o].match(Po);s&&(r=s[1]||s[2]);}if(!r)return null;let i=Ir.test(r);if(!(Mo.test(r)||i||r.startsWith("/"))){let o=e.split("/");o[o.length-1]=r,r=o.join("/");}return r},Bo=e=>({file:e.file,mappings:(0, _r.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),jo=e=>{let t=e.sections.map(({map:r,offset:i})=>({map:{...r,mappings:(0, _r.decode)(r.mappings)},offset:i})),n=new Set;for(let r of t)for(let i of r.map.sources)n.add(i);return {file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},xr=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(Ir);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},Vo=async(e,t=fetch)=>{if(!xr(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=Ho(e,n);if(!r||!xr(r))return null;try{let i=await t(r),o=await i.json();return "sections"in o?jo(o):Bo(o)}catch{return null}},Yo=async(e,t=true,n)=>{if(t&&rt.has(e)){let o=rt.get(e);if(o==null)return null;if(Lo(o)){let s=o.deref();if(s)return s;rt.delete(e);}else return o}if(t&&$t.has(e))return $t.get(e);let r=Vo(e,n);t&&$t.set(e,r);let i=await r;return t&&$t.delete(e),t&&(i===null?rt.set(e,null):rt.set(e,Fr?new WeakRef(i):i)),i},Er=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Go=["rsc://","file:///","webpack://","node:","turbopack://","metro://"],Rr="about://React/",Uo=["<anonymous>","eval",""],zo=/\.(jsx|tsx|ts|js)$/,Xo=/(\.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,qo=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,Wo=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",Ko=e=>{let t=e._debugSource;return t?typeof t=="object"&&!!t&&"fileName"in t&&typeof t.fileName=="string"&&"lineNumber"in t&&typeof t.lineNumber=="number":false},Zo=async(e,t=true,n)=>{if(Ko(e))return e._debugSource||null;let r=$r(e);return Mr(r,void 0,t,n)},$r=e=>Wo(e)?_o(e._debugStack.stack):ko(e),Jo=async(e,t=true,n)=>{let r=await Mr(e,1,t,n);return !r||r.length===0?null:r[0]},Mr=async(e,t=1,n=true,r)=>{let i=Or(e,{slice:t??1}),o=[];for(let s of i){if(!s?.file)continue;let a=await Yo(s.file,n,r);if(a&&typeof s.line=="number"&&typeof s.col=="number"){let l=Do(a,s.line,s.col);if(l){o.push(l);continue}}o.push({fileName:s.file,lineNumber:s.line,columnNumber:s.col,functionName:s.function});}return o},We=e=>{if(!e||Uo.includes(e))return "";let t=e;if(t.startsWith(Rr)){let r=t.slice(Rr.length),i=r.indexOf("/"),o=r.indexOf(":");t=i!==-1&&(o===-1||i<o)?r.slice(i+1):r;}for(let r of Go)if(t.startsWith(r)){t=t.slice(r.length),r==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`);break}if(Er.test(t)){let r=t.match(Er);r&&(t=t.slice(r[0].length));}let n=t.indexOf("?");if(n!==-1){let r=t.slice(n);qo.test(r)&&(t=t.slice(0,n));}return t},fn=e=>{let t=We(e);return !(!t||!zo.test(t)||Xo.test(t))},Qo=async(e,t=true,n)=>{let r=Me(e,s=>{if(Ve(s))return true},true);if(r){let s=await Zo(r,t,n);if(s?.fileName){let a=We(s.fileName);if(fn(a))return {fileName:a,lineNumber:s.lineNumber,columnNumber:s.columnNumber,functionName:s.functionName}}}let i=Or($r(e),{includeInElement:false}),o=null;for(;i.length;){let s=i.pop();if(!s||!s.raw||!s.file)continue;let a=await Jo(s.raw,t,n);if(a)return {fileName:We(a.fileName),lineNumber:a.lineNumber,columnNumber:a.columnNumber,functionName:a.functionName};o={fileName:We(s.file),lineNumber:s.line,columnNumber:s.col,functionName:s.function};}return o},Pr=async(e,t=true,n)=>{let r=Ye(e);if(!r||!tn(r))return null;let i=sn(r);return i?Qo(i,t,n):null};var es=new Set(["role","name","aria-label","rel","href"]);function ts(e,t){let n=es.has(e);n||=e.startsWith("data-")&&it(e);let r=it(t)&&t.length<100;return r||=t.startsWith("#")&&it(t.slice(1)),n&&r}function ns(e){return it(e)}function rs(e){return it(e)}function is(e){return true}function Dr(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(e.tagName.toLowerCase()==="html")return "html";let n={root:document.body,idName:ns,className:rs,tagName:is,attr:ts,timeoutMs:1e3,seedMinLength:3,optimizedMinLength:2,maxNumberOfPathChecks:1/0},r=new Date,i={...n,...t},o=cs(i.root,n),s,a=0;for(let f of os(e,i,o)){if(new Date().getTime()-r.getTime()>i.timeoutMs||a>=i.maxNumberOfPathChecks){let h=as(e,o);if(!h)throw new Error(`Timeout: Can't find a unique selector after ${i.timeoutMs}ms`);return ot(h)}if(a++,hn(f,o)){s=f;break}}if(!s)throw new Error("Selector was not found.");let l=[...jr(s,e,i,o,r)];return l.sort(dn),l.length>0?ot(l[0]):ot(s)}function*os(e,t,n){let r=[],i=[],o=e,s=0;for(;o&&o!==n;){let a=ss(o,t);for(let l of a)l.level=s;if(r.push(a),o=o.parentElement,s++,i.push(...Br(r)),s>=t.seedMinLength){i.sort(dn);for(let l of i)yield l;i=[];}}i.sort(dn);for(let a of i)yield a;}function it(e){if(/^[a-z\-]{3,}$/i.test(e)){let t=e.split(/-|[A-Z]/);for(let n of t)if(n.length<=2||/[^aeiou]{4,}/i.test(n))return false;return true}return false}function ss(e,t){let n=[],r=e.getAttribute("id");r&&t.idName(r)&&n.push({name:"#"+CSS.escape(r),penalty:0});for(let s=0;s<e.classList.length;s++){let a=e.classList[s];t.className(a)&&n.push({name:"."+CSS.escape(a),penalty:1});}for(let s=0;s<e.attributes.length;s++){let a=e.attributes[s];t.attr(a.name,a.value)&&n.push({name:`[${CSS.escape(a.name)}="${CSS.escape(a.value)}"]`,penalty:2});}let i=e.tagName.toLowerCase();if(t.tagName(i)){n.push({name:i,penalty:5});let s=mn(e,i);s!==void 0&&n.push({name:Hr(i,s),penalty:10});}let o=mn(e);return o!==void 0&&n.push({name:ls(i,o),penalty:50}),n}function ot(e){let t=e[0],n=t.name;for(let r=1;r<e.length;r++){let i=e[r].level||0;t.level===i-1?n=`${e[r].name} > ${n}`:n=`${e[r].name} ${n}`,t=e[r];}return n}function Lr(e){return e.map(t=>t.penalty).reduce((t,n)=>t+n,0)}function dn(e,t){return Lr(e)-Lr(t)}function mn(e,t){let n=e.parentNode;if(!n)return;let r=n.firstChild;if(!r)return;let i=0;for(;r&&(r.nodeType===Node.ELEMENT_NODE&&(t===void 0||r.tagName.toLowerCase()===t)&&i++,r!==e);)r=r.nextSibling;return i}function as(e,t){let n=0,r=e,i=[];for(;r&&r!==t;){let o=r.tagName.toLowerCase(),s=mn(r,o);if(s===void 0)return;i.push({name:Hr(o,s),penalty:NaN,level:n}),r=r.parentElement,n++;}if(hn(i,t))return i}function ls(e,t){return e==="html"?"html":`${e}:nth-child(${t})`}function Hr(e,t){return e==="html"?"html":`${e}:nth-of-type(${t})`}function*Br(e,t=[]){if(e.length>0)for(let n of e[0])yield*Br(e.slice(1,e.length),t.concat(n));else yield t;}function cs(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}function hn(e,t){let n=ot(e);switch(t.querySelectorAll(n).length){case 0:throw new Error(`Can't select any node with this selector: ${n}`);case 1:return true;default:return false}}function*jr(e,t,n,r,i){if(e.length>2&&e.length>n.optimizedMinLength)for(let o=1;o<e.length-1;o++){if(new Date().getTime()-i.getTime()>n.timeoutMs)return;let a=[...e];a.splice(o,1),hn(a,r)&&r.querySelector(ot(a))===t&&(yield a,yield*jr(a,t,n,r,i));}}var Mt=e=>e.length>0&&/^[A-Z]/.test(e);an({onCommitFiberRoot(e,t){Ft.add(t);}});var us=e=>Dr(e),Pt=(e,t)=>e.length>t?`${e.substring(0,t)}...`:e,fs=e=>!Mt(e)||e.startsWith("_")||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context"),Vr=e=>{let t=Ye(e);if(!t)return null;let n=null;return Me(t,r=>{if(Ve(r)){let i=Pe(r);if(i&&!fs(i))return n=i,true}return false},true),n},Yr=async e=>{let t=await Pr(e);if(!t)return null;let n=We(t.fileName);if(fn(n))return `${n}:${t.lineNumber}:${t.columnNumber}`;if(n&&(n.includes(".tsx")||n.includes(".ts")||n.includes(".jsx")||n.includes(".js"))){let r=n.replace(/^webpack:\/\/_N_E\//,"").replace(/^webpack:\/\/\//,"").replace(/^webpack:\/\//,"").replace(/^\.\//,"");if(r&&!r.startsWith("node_modules")&&!r.includes(".next")&&!r.startsWith("webpack"))return `${r}:${t.lineNumber}:${t.columnNumber}`}return null},gn=async e=>{let t=new Set(["article","aside","footer","form","header","main","nav","section"]),n=c=>{let m=c.tagName.toLowerCase();if(t.has(m)||c.id)return true;if(c.className&&typeof c.className=="string"){let y=c.className.trim();if(y&&y.length>0)return true}return Array.from(c.attributes).some(y=>y.name.startsWith("data-"))},r=(c,m=10)=>{let y=[],E=c.parentElement,O=0;for(;E&&O<m&&E.tagName!=="BODY"&&!(n(E)&&(y.push(E),y.length>=3));)E=E.parentElement,O++;return y.reverse()},i=(c,m=false)=>{let y=c.tagName.toLowerCase(),E=[];if(c.id&&E.push(`id="${c.id}"`),c.className&&typeof c.className=="string"){let F=c.className.trim().split(/\s+/);if(F.length>0&&F[0]){let B=m?F.slice(0,3):F,U=Pt(B.join(" "),30);E.push(`class="${U}"`);}}let O=Array.from(c.attributes).filter(F=>F.name.startsWith("data-")),P=m?O.slice(0,1):O;for(let F of P)E.push(`${F.name}="${Pt(F.value,20)}"`);let j=c.getAttribute("aria-label");return j&&!m&&E.push(`aria-label="${Pt(j,20)}"`),E.length>0?`<${y} ${E.join(" ")}>`:`<${y}>`},o=c=>`</${c.tagName.toLowerCase()}>`,s=c=>{let m=(c.textContent||"").trim().replace(/\s+/g," ");return Pt(m,60)},a=c=>{if(c.id)return `#${c.id}`;if(c.className&&typeof c.className=="string"){let m=c.className.trim().split(/\s+/);if(m.length>0&&m[0])return `.${m[0]}`}return null},l=[],f=us(e);l.push(`- selector: ${f}`);let d=e.getBoundingClientRect();l.push(`- width: ${Math.round(d.width)}`),l.push(`- height: ${Math.round(d.height)}`),l.push("HTML snippet:"),l.push("```html");let h=r(e),x=h.map(c=>Vr(c)),v=Vr(e),S=await Promise.all(h.map(c=>Yr(c))),R=await Yr(e),k=[],M=[],T=0,A=c=>" ".repeat(c);for(let c=0;c<h.length;c++){let m=x[c],y=S[c];m&&y&&(c===0||x[c-1]!==m)&&(M[c]=T,l.push(`${A(T)}<${m} used-at="${y}">`),T++),k[c]=T,l.push(`${A(T)}${i(h[c],true)}`),T++;}let N=e.parentElement,_=-1;if(N){let c=Array.from(N.children);if(_=c.indexOf(e),_>0){let m=A(T);if(_<=2)for(let y=0;y<_;y++){let E=c[y];a(E)&&(l.push(`${m}${i(E,true)}`),l.push(`${m}</${E.tagName.toLowerCase()}>`));}else l.push(`${m}... (${_} element${_===1?"":"s"})`);}}let q=h.length>0?x[x.length-1]:null,Q=v&&R&&v!==q,te=T,Te=T;Q&&(l.push(`${A(te)}<${v} used-at="${R}">`),te++);let ge=A(te);l.push(`${ge}<!-- IMPORTANT: selected element -->`);let w=s(e),g=e.children.length;if(w&&g===0&&w.length<40?l.push(`${ge}${i(e)}${w}${o(e)}`):(l.push(`${ge}${i(e)}`),w&&l.push(`${ge} ${w}`),g>0&&l.push(`${ge} ... (${g} element${g===1?"":"s"})`),l.push(`${ge}${o(e)}`)),Q&&l.push(`${A(Te)}</${v}>`),N&&_>=0){let c=Array.from(N.children),m=c.length-_-1;if(m>0){let y=A(T);if(m<=2)for(let E=_+1;E<c.length;E++){let O=c[E];a(O)&&(l.push(`${y}${i(O,true)}`),l.push(`${y}</${O.tagName.toLowerCase()}>`));}else l.push(`${y}... (${m} element${m===1?"":"s"})`);}}for(let c=h.length-1;c>=0;c--){let m=A(k[c]);if(l.push(`${m}${o(h[c])}`),M[c]!==void 0){let y=A(M[c]);l.push(`${y}</${x[c]}>`);}}return l.push("```"),l.join(`
23
- `)};var ds=()=>document.hasFocus()?new Promise(e=>setTimeout(e,50)):new Promise(e=>{let t=()=>{window.removeEventListener("focus",t),setTimeout(e,50);};window.addEventListener("focus",t),window.focus();}),Ae=async(e,t)=>{await ds();try{if(Array.isArray(e)){if(!navigator?.clipboard?.write){for(let r of e)if(typeof r=="string"){let i=Lt(r,t);if(!i)return i}return t?.(),!0}let n=new Map;for(let r of e)if(r instanceof Blob){let i=r.type||"text/plain";n.has(i)||n.set(i,r);}else n.has("text/plain")||n.set("text/plain",new Blob([r],{type:"text/plain"}));if(n.size===0){let r=e.find(i=>typeof i=="string");return typeof r=="string"?Lt(r,t):!1}try{return await navigator.clipboard.write([new ClipboardItem(Object.fromEntries(n))]),t?.(),!0}catch{let r=e.filter(i=>typeof i=="string");if(r.length>0){let i=r.join(`
24
-
25
- `);return Lt(i,t)}return !1}}else {if(e instanceof Blob)return await navigator.clipboard.write([new ClipboardItem({[e.type]:e})]),t?.(),!0;try{return await navigator.clipboard.writeText(String(e)),t?.(),!0}catch{return Lt(e,t)}}}catch{return false}},Lt=(e,t)=>{if(!document.execCommand)return false;let n=document.createElement("textarea");n.value=String(e),n.style.clipPath="inset(50%)",n.ariaHidden="true",(document.body||document.documentElement).append(n);try{n.select();let i=document.execCommand("copy");return i&&t?.(),i}finally{n.remove();}};var Ce=()=>{try{let e=new(window.AudioContext||window.webkitAudioContext),t=e.createGain();t.connect(e.destination),[{freq:523.25,start:0,duration:.1},{freq:659.25,start:.05,duration:.1},{freq:783.99,start:.1,duration:.15}].forEach(r=>{let i=e.createOscillator(),o=e.createGain();i.connect(o),o.connect(t),i.frequency.value=r.freq,i.type="triangle";let s=e.currentTime+r.start,a=s+.01,l=s+r.duration;o.gain.setValueAtTime(0,s),o.gain.linearRampToValueAtTime(.15,a),o.gain.exponentialRampToValueAtTime(.01,l),i.start(s),i.stop(l);});}catch{}};var Gr=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var st=e=>{if(e.closest(`[${qe}]`))return false;let t=window.getComputedStyle(e);return !(!Gr(e,t)||t.pointerEvents==="none")};var pn=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(st(r))return r;return null};var Ur=(e,t,n)=>{let r=[],i=Array.from(document.querySelectorAll("*")),o=e.x,s=e.y,a=e.x+e.width,l=e.y+e.height;for(let f of i){if(!n){let R=(f.tagName||"").toUpperCase();if(R==="HTML"||R==="BODY")continue}if(!t(f))continue;let d=f.getBoundingClientRect(),h=d.left,x=d.top,v=d.left+d.width,S=d.top+d.height;if(n){let R=Math.max(o,h),k=Math.max(s,x),M=Math.min(a,v),T=Math.min(l,S),A=Math.max(0,M-R),N=Math.max(0,T-k),_=A*N,q=Math.max(0,d.width*d.height);q>0&&_/q>=.75&&r.push(f);}else h<a&&v>o&&x<l&&S>s&&r.push(f);}return r},zr=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t)));var Xr=(e,t)=>{let n=Ur(e,t,true);return zr(n)},qr=(e,t)=>{let n=Ur(e,t,false);return zr(n)};var bn=e=>{let t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return {borderRadius:n.borderRadius||"0px",height:t.height,transform:n.transform||"none",width:t.width,x:t.left,y:t.top}};var Wr=()=>{let e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e==="[::1]"};function ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r]);}return e}function Sn(e,t){return Array(t+1).join(e)}function Jr(e){return e.replace(/^\n*/,"")}function Qr(e){for(var t=e.length;t>0&&e[t-1]===`
26
- `;)t--;return e.substring(0,t)}function ei(e){return Qr(Jr(e))}var hs=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function vn(e){return Cn(e,hs)}var ti=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function ni(e){return Cn(e,ti)}function gs(e){return ii(e,ti)}var ri=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function ps(e){return Cn(e,ri)}function bs(e){return ii(e,ri)}function Cn(e,t){return t.indexOf(e.nodeName)>=0}function ii(e,t){return e.getElementsByTagName&&t.some(function(n){return e.getElementsByTagName(n).length})}var oe={};oe.paragraph={filter:"p",replacement:function(e){return `
27
-
28
- `+e+`
29
-
30
- `}};oe.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+`
31
- `}};oe.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));if(n.headingStyle==="setext"&&r<3){var i=Sn(r===1?"=":"-",e.length);return `
32
-
33
- `+e+`
34
- `+i+`
35
-
36
- `}else return `
37
-
38
- `+Sn("#",r)+" "+e+`
39
-
40
- `}};oe.blockquote={filter:"blockquote",replacement:function(e){return e=ei(e).replace(/^/gm,"> "),`
41
-
42
- `+e+`
43
-
44
- `}};oe.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return n.nodeName==="LI"&&n.lastElementChild===t?`
45
- `+e:`
46
-
47
- `+e+`
48
-
49
- `}};oe.listItem={filter:"li",replacement:function(e,t,n){var r=n.bulletListMarker+" ",i=t.parentNode;if(i.nodeName==="OL"){var o=i.getAttribute("start"),s=Array.prototype.indexOf.call(i.children,t);r=(o?Number(o)+s:s+1)+". ";}var a=/\n$/.test(e);return e=ei(e)+(a?`
50
- `:""),e=e.replace(/\n/gm,`
51
- `+" ".repeat(r.length)),r+e+(t.nextSibling?`
52
- `:"")}};oe.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,n){return `
53
-
54
- `+t.firstChild.textContent.replace(/\n/g,`
55
- `)+`
56
-
57
- `}};oe.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,n){for(var r=t.firstChild.getAttribute("class")||"",i=(r.match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,s=n.fence.charAt(0),a=3,l=new RegExp("^"+s+"{3,}","gm"),f;f=l.exec(o);)f[0].length>=a&&(a=f[0].length+1);var d=Sn(s,a);return `
58
-
59
- `+d+i+`
60
- `+o.replace(/\n$/,"")+`
61
- `+d+`
62
-
63
- `}};oe.horizontalRule={filter:"hr",replacement:function(e,t,n){return `
64
-
65
- `+n.hr+`
66
-
67
- `}};oe.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href");n&&(n=n.replace(/([()])/g,"\\$1"));var r=Dt(t.getAttribute("title"));return r&&(r=' "'+r.replace(/"/g,'\\"')+'"'),"["+e+"]("+n+r+")"}};oe.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,n){var r=t.getAttribute("href"),i=Dt(t.getAttribute("title"));i&&(i=' "'+i+'"');var o,s;switch(n.linkReferenceStyle){case "collapsed":o="["+e+"][]",s="["+e+"]: "+r+i;break;case "shortcut":o="["+e+"]",s="["+e+"]: "+r+i;break;default:var a=this.references.length+1;o="["+e+"]["+a+"]",s="["+a+"]: "+r+i;}return this.references.push(s),o},references:[],append:function(e){var t="";return this.references.length&&(t=`
68
-
69
- `+this.references.join(`
70
- `)+`
71
-
72
- `,this.references=[]),t}};oe.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}};oe.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}};oe.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!n},replacement:function(e){if(!e)return "";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];r.indexOf(n)!==-1;)n=n+"`";return n+t+e+t+n}};oe.image={filter:"img",replacement:function(e,t){var n=Dt(t.getAttribute("alt")),r=t.getAttribute("src")||"",i=Dt(t.getAttribute("title")),o=i?' "'+i+'"':"";return r?"!["+n+"]("+r+o+")":""}};function Dt(e){return e?e.replace(/(\n+\s*)+/g,`
73
- `):""}function oi(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t]);}oi.prototype={add:function(e,t){this.array.unshift(t);},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement});},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return ""}});},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return (t=yn(this.array,e,this.options))||(t=yn(this._keep,e,this.options))||(t=yn(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t);}};function yn(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(ys(i,t,n))return i}}function ys(e,t,n){var r=e.filter;if(typeof r=="string"){if(r===t.nodeName.toLowerCase())return true}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return true}else if(typeof r=="function"){if(r.call(e,t,n))return true}else throw new TypeError("`filter` needs to be a string, array, or function")}function ws(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(h){return h.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var o=null,s=false,a=null,l=Kr(a,t,i);l!==t;){if(l.nodeType===3||l.nodeType===4){var f=l.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!s&&f[0]===" "&&(f=f.substr(1)),!f){l=wn(l);continue}l.data=f,o=l;}else if(l.nodeType===1)n(l)||l.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=false):r(l)||i(l)?(o=null,s=true):o&&(s=false);else {l=wn(l);continue}var d=Kr(a,l,i);a=l,l=d;}o&&(o.data=o.data.replace(/ $/,""),o.data||wn(o));}}function wn(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function Kr(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var xn=typeof window<"u"?window:{};function Ts(){var e=xn.DOMParser,t=false;try{new e().parseFromString("","text/html")&&(t=!0);}catch{}return t}function Ss(){var e=function(){};return vs()?e.prototype.parseFromString=function(t){var n=new window.ActiveXObject("htmlfile");return n.designMode="on",n.open(),n.write(t),n.close(),n}:e.prototype.parseFromString=function(t){var n=document.implementation.createHTMLDocument("");return n.open(),n.write(t),n.close(),n},e}function vs(){var e=false;try{document.implementation.createHTMLDocument("").open();}catch{xn.ActiveXObject&&(e=true);}return e}var Cs=Ts()?xn.DOMParser:Ss();function xs(e,t){var n;if(typeof e=="string"){var r=Es().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");n=r.getElementById("turndown-root");}else n=e.cloneNode(true);return ws({element:n,isBlock:vn,isVoid:ni,isPre:t.preformattedCode?Rs:null}),n}var Tn;function Es(){return Tn=Tn||new Cs,Tn}function Rs(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function Ns(e,t){return e.isBlock=vn(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=As(e),e.flankingWhitespace=Os(e,t),e}function As(e){return !ni(e)&&!ps(e)&&/^\s*$/i.test(e.textContent)&&!gs(e)&&!bs(e)}function Os(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return {leading:"",trailing:""};var n=ks(e.textContent);return n.leadingAscii&&Zr("left",e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&Zr("right",e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function ks(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return {leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function Zr(e,t,n){var r,i,o;return e==="left"?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(r.nodeType===3?o=i.test(r.nodeValue):n.preformattedCode&&r.nodeName==="CODE"?o=false:r.nodeType===1&&!vn(r)&&(o=i.test(r.textContent))),o}var _s=Array.prototype.reduce,Is=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Ht(e){if(!(this instanceof Ht))return new Ht(e);var t={rules:oe,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:false,blankReplacement:function(n,r){return r.isBlock?`
74
-
75
- `:""},keepReplacement:function(n,r){return r.isBlock?`
76
-
77
- `+r.outerHTML+`
78
-
79
- `:r.outerHTML},defaultReplacement:function(n,r){return r.isBlock?`
80
-
81
- `+n+`
82
-
83
- `:n}};this.options=ms({},t,e),this.rules=new oi(this.options);}Ht.prototype={turndown:function(e){if(!Ms(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return "";var t=si.call(this,new xs(e,this.options));return Fs.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return Is.reduce(function(t,n){return t.replace(n[0],n[1])},e)}};function si(e){var t=this;return _s.call(e.childNodes,function(n,r){r=new Ns(r,t.options);var i="";return r.nodeType===3?i=r.isCode?r.nodeValue:t.escape(r.nodeValue):r.nodeType===1&&(i=$s.call(t,r)),ai(n,i)},"")}function Fs(e){var t=this;return this.rules.forEach(function(n){typeof n.append=="function"&&(e=ai(e,n.append(t.options)));}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function $s(e){var t=this.rules.forNode(e),n=si.call(this,e),r=e.flankingWhitespace;return (r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function ai(e,t){var n=Qr(e),r=Jr(t),i=Math.max(e.length-n.length,t.length-r.length),o=`
84
-
85
- `.substring(0,i);return n+o+r}function Ms(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var li=Ht;var Ge=null,ci=()=>(Ge||(Ge=new li({headingStyle:"atx",codeBlockStyle:"fenced",emDelimiter:"_",bulletListMarker:"-",linkStyle:"inlined",linkReferenceStyle:"full"}),Ge.addRule("strikethrough",{filter:["del","s"],replacement:e=>`~~${e}~~`}),Ge.addRule("removeHidden",{filter:e=>{if(e instanceof HTMLElement){let t=window.getComputedStyle(e);return t.display==="none"||t.visibility==="hidden"||t.opacity==="0"}return false},replacement:()=>""}),Ge.addRule("preserveButtons",{filter:["button"],replacement:e=>e?`[${e}]`:""}),Ge.addRule("preserveInputs",{filter:e=>e.nodeName==="INPUT"&&e instanceof HTMLInputElement,replacement:(e,t)=>{if(t instanceof HTMLInputElement){let n=t.value||t.placeholder;return n?`[${n}]`:""}return ""}})),Ge),Ps=e=>ci().turndown(e).trim(),En=e=>{let t=e.cloneNode(true);return ci().turndown(t).trim()};var Ls=150,ui=e=>{let t={enabled:true,keyHoldDuration:300,allowActivationInsideInput:true,playCopySound:false,...e};return t.enabled===false?{activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{}}:Be(n=>{let[i,o]=I(false),[s,a]=I(-1e3),[l,f]=I(-1e3),[d,h]=I(false),[x,v]=I(-1e3),[S,R]=I(-1e3),[k,M]=I(false),[T,A]=I(null),[N,_]=I(null),[q,Q]=I(0),[te,Te]=I([]),[ge,w]=I([]),[g,c]=I(false),[m,y]=I(false),[E,O]=I(false),[P,j]=I(false),[F,B]=I(-1e3),[U,W]=I(-1e3),[D,z]=I(false),K=null,xe=null,pe=null,ne=null,se=null,be=-1e3,ce=-1e3,Z=G(()=>g()&&!k()),Oe=G(()=>s()>-1e3&&l()>-1e3),Le=u=>(u.metaKey||u.ctrlKey)&&u.key.toLowerCase()==="c",at=u=>{let b=`grabbed-${Date.now()}-${Math.random()}`,C=Date.now(),V={id:b,bounds:u,createdAt:C},H=te();Te([...H,V]),setTimeout(()=>{Te(re=>re.filter(Ke=>Ke.id!==b));},1700);},lt=u=>{let b=`success-${Date.now()}-${Math.random()}`;w(C=>[...C,{id:b,text:u}]),setTimeout(()=>{w(C=>C.filter(V=>V.id!==b));},1700);},Rn=u=>`<selected_element>
86
- ${u}
87
- </selected_element>`,Nn=u=>{let b=window.getComputedStyle(u),C=u.getBoundingClientRect();return {width:`${Math.round(C.width)}px`,height:`${Math.round(C.height)}px`,paddingTop:b.paddingTop,paddingRight:b.paddingRight,paddingBottom:b.paddingBottom,paddingLeft:b.paddingLeft,background:b.background,opacity:b.opacity}},An=u=>{let b={elements:u.map(re=>({tagName:re.tagName,content:re.content,computedStyles:re.computedStyles}))},C=JSON.stringify(b),H=`<div data-react-grab="${btoa(encodeURIComponent(C).replace(/%([0-9A-F]{2})/g,(re,Ke)=>String.fromCharCode(parseInt(Ke,16))))}"></div>`;return new Blob([H],{type:"text/html"})},ct=u=>(u.tagName||"").toLowerCase(),di=u=>{let b=Ye(u);if(!b)return null;let C=null;return Me(b,V=>{if(Ve(V)){let H=Pe(V);if(H&&Mt(H)&&!H.startsWith("_")&&!H.startsWith("Primitive."))return C=H,true}return false},true),C},On=u=>{let b=ct(u),C=di(u);return b&&C?`<${b}> in ${C}`:b?`<${b}>`:"<element>"},kn=u=>{try{let b=u.map(C=>({tagName:ct(C)}));window.dispatchEvent(new CustomEvent("react-grab:element-selected",{detail:{elements:b}}));}catch{}},mi=()=>window.__REACT_GRAB_EXTENSION_ACTIVE__===true||t.isExtension===true,_n=()=>mi()&&!Wr(),Bt=async(u,b,C)=>{B(u),W(b),M(true),Si(),await C().finally(()=>{M(false),dt(),m()&&(i()?y(false):De());});},hi=u=>"innerText"in u,gi=u=>hi(u)?u.innerText:u.textContent??"",ut=u=>u.map(b=>gi(b).trim()).filter(b=>b.length>0).join(`
88
-
89
- `),In=u=>u.map(b=>En(b).trim()).filter(b=>b.length>0).join(`
90
-
91
- `),pi=async u=>{at(bn(u)),await new Promise(C=>requestAnimationFrame(C));let b=false;try{if(_n()){let C=In([u]);C.length>0&&(b=await Ae(C,t.playCopySound?Ce:void 0));}else {let C=await gn(u),V=Rn(C),H=An([{tagName:ct(u),content:C,computedStyles:Nn(u)}]);if(b=await Ae([V,H],t.playCopySound?Ce:void 0),!b){let re=ut([u]);re.length>0&&(b=await Ae(re,t.playCopySound?Ce:void 0));}}}catch{let C=ut([u]);C.length>0&&(b=await Ae(C,t.playCopySound?Ce:void 0));}b&&lt(On(u)),kn([u]);},Fn=async u=>{if(u.length===0)return;for(let C of u)at(bn(C));await new Promise(C=>requestAnimationFrame(C));let b=false;try{if(_n()){let C=In(u);C.length>0&&(b=await Ae(C,t.playCopySound?Ce:void 0));}else {let V=(await Promise.allSettled(u.map(H=>gn(H)))).map(H=>H.status==="fulfilled"?H.value:"").filter(H=>H.trim());if(V.length>0){let H=V.map(Ue=>Rn(Ue)).join(`
92
-
93
- `),re=V.map((Ue,jn)=>({tagName:ct(u[jn]),content:Ue,computedStyles:Nn(u[jn])})),Ke=An(re);if(b=await Ae([H,Ke],t.playCopySound?Ce:void 0),!b){let Ue=ut(u);Ue.length>0&&(b=await Ae(Ue,t.playCopySound?Ce:void 0));}}else {let H=ut(u);H.length>0&&(b=await Ae(H,t.playCopySound?Ce:void 0));}}}catch{}b&&lt(`${u.length} elements`),kn(u);},ke=G(()=>!Z()||d()?null:pn(s(),l())),bi=G(()=>{let u=ke();if(!u)return;let b=u.getBoundingClientRect(),C=window.getComputedStyle(u);return {borderRadius:C.borderRadius||"0px",height:b.height,transform:C.transform||"none",width:b.width,x:b.left,y:b.top}}),ft=2,$n=(u,b)=>({x:Math.abs(u-x()),y:Math.abs(b-S())}),Mn=G(()=>{if(!d())return false;let u=$n(s(),l());return u.x>ft||u.y>ft}),Pn=(u,b)=>{let C=Math.min(x(),u),V=Math.min(S(),b),H=Math.abs(u-x()),re=Math.abs(b-S());return {x:C,y:V,width:H,height:re}},yi=G(()=>{if(!Mn())return;let u=Pn(s(),l());return {borderRadius:"0px",height:u.height,transform:"none",width:u.width,x:u.x,y:u.y}}),wi=G(()=>{let u=ke();return u?On(u):"<element>"}),Ln=G(()=>k()?{x:F(),y:U()}:{x:s(),y:l()}),Dn=G(()=>k()?{x:F(),y:U()}:{x:s(),y:l()}),Ti=G(()=>!!(ke()&&ke()===T()));ae(Ie(()=>[ke(),T()],([u,b])=>{b&&u&&b!==u&&A(null);}));let Hn=G(()=>{let u=N();if(q(),u===null)return 0;let C=(Date.now()-u)/t.keyHoldDuration,V=1-Math.exp(-C),H=.95;return k()?Math.min(V,H):1}),Si=()=>{_(Date.now()),O(false),pe=window.setTimeout(()=>{O(true),pe=null;},Ls);let u=()=>{if(N()===null)return;Q(C=>C+1),Hn()<1&&(xe=requestAnimationFrame(u));};u();},dt=()=>{xe!==null&&(cancelAnimationFrame(xe),xe=null),pe!==null&&(window.clearTimeout(pe),pe=null),_(null),O(false);},mt=()=>{dt(),c(true),document.body.style.cursor="crosshair";},De=()=>{y(false),o(false),c(false),document.body.style.cursor="",d()&&(h(false),document.body.style.userSelect=""),K&&window.clearTimeout(K),ne&&window.clearTimeout(ne),se&&(window.clearTimeout(se),se=null),z(false),be=-1e3,ce=-1e3,dt();},Bn=new AbortController,He=Bn.signal;window.addEventListener("keydown",u=>{if(u.key==="Escape"&&i()){De();return}if(u.key==="Enter"&&i()){y(true),ne!==null&&(window.clearTimeout(ne),ne=null),g()||(K&&window.clearTimeout(K),mt(),t.onActivate?.());return}if(!(!t.allowActivationInsideInput&&or(u))&&Le(u)){if(g()){if(m())return;ne!==null&&window.clearTimeout(ne),ne=window.setTimeout(()=>{De();},200);return}u.repeat||(K!==null&&window.clearTimeout(K),i()||o(true),K=window.setTimeout(()=>{mt(),t.onActivate?.();},t.keyHoldDuration));}},{signal:He,capture:true}),window.addEventListener("keyup",u=>{if(!i()&&!g())return;let b=!u.metaKey&&!u.ctrlKey;if(u.key.toLowerCase()==="c"||b){if(m())return;De();}},{signal:He,capture:true}),window.addEventListener("mousemove",u=>{a(u.clientX),f(u.clientY),be===-1e3&&(be=u.clientX,ce=u.clientY);let b=u.clientX-be,C=u.clientY-ce;Math.sqrt(b*b+C*C)>=200?(se!==null&&window.clearTimeout(se),z(false),be=u.clientX,ce=u.clientY,se=window.setTimeout(()=>{z(true),be=s(),ce=l(),se=null;},100)):se===null&&!D()&&(se=window.setTimeout(()=>{z(true),be=s(),ce=l(),se=null;},100));},{signal:He}),window.addEventListener("mousedown",u=>{!Z()||k()||(u.preventDefault(),h(true),v(u.clientX),R(u.clientY),document.body.style.userSelect="none");},{signal:He}),window.addEventListener("mouseup",u=>{if(!d())return;let b=$n(u.clientX,u.clientY),C=b.x>ft||b.y>ft;if(h(false),document.body.style.userSelect="",C){j(true);let V=Pn(u.clientX,u.clientY),H=Xr(V,st);if(H.length>0)Bt(u.clientX,u.clientY,()=>Fn(H));else {let re=qr(V,st);re.length>0&&Bt(u.clientX,u.clientY,()=>Fn(re));}}else {let V=pn(u.clientX,u.clientY);if(!V)return;A(V),Bt(u.clientX,u.clientY,()=>pi(V));}},{signal:He}),window.addEventListener("click",u=>{(Z()||k()||P())&&(u.preventDefault(),u.stopPropagation(),P()&&j(false),m()&&!k()&&(i()?y(false):De()));},{signal:He,capture:true}),document.addEventListener("visibilitychange",()=>{document.hidden&&Te([]);},{signal:He}),me(()=>{Bn.abort(),K&&window.clearTimeout(K),ne&&window.clearTimeout(ne),se&&window.clearTimeout(se),dt(),document.body.style.userSelect="",document.body.style.cursor="";});let vi=sr(),Ci=G(()=>Z()&&!d()&&!!ke()),xi=G(()=>Z()&&Mn()),Ei=G(()=>k()?"processing":"hover"),Ri=G(()=>k()?true:ge().length>0?false:Z()&&!d()&&D()&&(!!ke()&&!Ti()||!ke())),Ni=G(()=>k()&&E()&&Oe()),Ai=G(()=>Z()&&!d());return rr(()=>$(fr,{get selectionVisible(){return Ci()},get selectionBounds(){return bi()},get dragVisible(){return xi()},get dragBounds(){return yi()},get grabbedBoxes(){return te()},get successLabels(){return ge()},get labelVariant(){return Ei()},get labelText(){return wi()},get labelX(){return Ln().x},get labelY(){return Ln().y},get labelVisible(){return Ri()},labelZIndex:2147483646,get progressVisible(){return Ni()},get progress(){return Hn()},get mouseX(){return Dn().x},get mouseY(){return Dn().y},get crosshairVisible(){return Ai()}}),vi),{activate:()=>{g()||(mt(),t.onActivate?.());},deactivate:()=>{g()&&De();},toggle:()=>{g()?De():(mt(),t.onActivate?.());},isActive:()=>g(),dispose:n}})};var fi=null,Zc=()=>fi,Ds="__REACT_GRAB_EXTENSION_ACTIVE__";window[Ds]||(fi=ui());/*! Bundled license information:
94
-
95
- bippy/dist/rdt-hook-DAGphl8S.js:
18
+ `,r)),r!==-1)n=n.slice(0,r);else return "";return n},Bo=/(^|@)\S+:\d+/,nr=/^\s*at .*(\S+:\d+|\(native\))/m,jo=/^(eval@)?(\[native code\])?$/;var Vo=(e,t)=>{if(t?.includeInElement!==false){let n=e.split(`
19
+ `),r=[];for(let o of n)if(/^\s*at\s+/.test(o)){let i=Wn(o,void 0)[0];i&&r.push(i);}else if(/^\s*in\s+/.test(o)){let i=o.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");r.push({function:i,raw:o});}else if(o.match(Bo)){let i=Kn(o,void 0)[0];i&&r.push(i);}return Zt(r,t)}return e.match(nr)?Wn(e,t):Kn(e,t)},rr=e=>{if(!e.includes(":"))return [e,void 0,void 0];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/,n=t.exec(e.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]},Zt=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e;var Wn=(e,t)=>Zt(e.split(`
20
+ `).filter(r=>!!r.match(nr)),t).map(r=>{let o=r;o.includes("(eval ")&&(o=o.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let i=o.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),s=i.match(/ (\(.+\)$)/);i=s?i.replace(s[0],""):i;let a=rr(s?s[1]:i),l=s&&i||void 0,c=["eval","<anonymous>"].includes(a[0])?void 0:a[0];return {function:l,file:c,line:a[1]?+a[1]:void 0,col:a[2]?+a[2]:void 0,raw:o}});var Kn=(e,t)=>Zt(e.split(`
21
+ `).filter(r=>!r.match(jo)),t).map(r=>{let o=r;if(o.includes(" > eval")&&(o=o.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!o.includes("@")&&!o.includes(":"))return {function:o};{let i=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,s=o.match(i),a=s&&s[1]?s[1]:void 0,l=rr(o.replace(i,""));return {function:a,file:l[0],line:l[1]?+l[1]:void 0,col:l[2]?+l[2]:void 0,raw:o}}});var Go=No((e,t)=>{(function(n,r){typeof e=="object"&&t!==void 0?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.sourcemapCodec={}));})(void 0,function(n){let r=44,o=59,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),a=new Uint8Array(128);for(let y=0;y<i.length;y++){let p=i.charCodeAt(y);s[y]=p,a[p]=y;}function l(y,p){let u=0,b=0,v=0;do{let P=y.next();v=a[P],u|=(v&31)<<b,b+=5;}while(v&32);let _=u&1;return u>>>=1,_&&(u=-2147483648|-u),p+u}function c(y,p,u){let b=p-u;b=b<0?-b<<1|1:b<<1;do{let v=b&31;b>>>=5,b>0&&(v|=32),y.write(s[v]);}while(b>0);return p}function m(y,p){return y.pos>=p?false:y.peek()!==r}let f=1024*16,T=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(y){return Buffer.from(y.buffer,y.byteOffset,y.byteLength).toString()}}:{decode(y){let p="";for(let u=0;u<y.length;u++)p+=String.fromCharCode(y[u]);return p}};class h{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(f);}write(p){let{buffer:u}=this;u[this.pos++]=p,this.pos===f&&(this.out+=T.decode(u),this.pos=0);}flush(){let{buffer:p,out:u,pos:b}=this;return b>0?u+T.decode(p.subarray(0,b)):u}}class w{constructor(p){this.pos=0,this.buffer=p;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(p){let{buffer:u,pos:b}=this,v=u.indexOf(p,b);return v===-1?u.length:v}}let S=[];function Y(y){let{length:p}=y,u=new w(y),b=[],v=[],_=0;for(;u.pos<p;u.pos++){_=l(u,_);let P=l(u,0);if(!m(u,p)){let V=v.pop();V[2]=_,V[3]=P;continue}let F=l(u,0),M=l(u,0),L=M&1,N=L?[_,P,0,0,F,l(u,0)]:[_,P,0,0,F],j=S;if(m(u,p)){j=[];do{let V=l(u,0);j.push(V);}while(m(u,p))}N.vars=j,b.push(N),v.push(N);}return b}function oe(y){let p=new h;for(let u=0;u<y.length;)u=z(y,u,p,[0]);return p.flush()}function z(y,p,u,b){let v=y[p],{0:_,1:P,2:F,3:M,4:L,vars:N}=v;p>0&&u.write(r),b[0]=c(u,_,b[0]),c(u,P,0),c(u,L,0);let j=v.length===6?1:0;c(u,j,0),v.length===6&&c(u,v[5],0);for(let V of N)c(u,V,0);for(p++;p<y.length;){let V=y[p],{0:A,1:k}=V;if(A>F||A===F&&k>=M)break;p=z(y,p,u,b);}return u.write(r),b[0]=c(u,F,b[0]),c(u,M,0),p}function q(y){let{length:p}=y,u=new w(y),b=[],v=[],_=0,P=0,F=0,M=0,L=0,N=0,j=0,V=0;do{let A=u.indexOf(";"),k=0;for(;u.pos<A;u.pos++){if(k=l(u,k),!m(u,A)){let te=v.pop();te[2]=_,te[3]=k;continue}let J=l(u,0),de=J&1,K=J&2,ee=J&4,me=null,He=S,pe;if(de){let te=l(u,P);F=l(u,P===te?F:0),P=te,pe=[_,k,0,0,te,F];}else pe=[_,k,0,0];if(pe.isScope=!!ee,K){let te=M,be=L;M=l(u,M);let _e=te===M;L=l(u,_e?L:0),N=l(u,_e&&be===L?N:0),me=[M,L,N];}if(pe.callsite=me,m(u,A)){He=[];do{j=_,V=k;let te=l(u,0),be;if(te<-1){be=[[l(u,0)]];for(let _e=-1;_e>te;_e--){let Qe=j;j=l(u,j),V=l(u,j===Qe?V:0);let Je=l(u,0);be.push([Je,j,V]);}}else be=[[te]];He.push(be);}while(m(u,A))}pe.bindings=He,b.push(pe),v.push(pe);}_++,u.pos=A+1;}while(u.pos<p);return b}function D(y){if(y.length===0)return "";let p=new h;for(let u=0;u<y.length;)u=W(y,u,p,[0,0,0,0,0,0,0]);return p.flush()}function W(y,p,u,b){let v=y[p],{0:_,1:P,2:F,3:M,isScope:L,callsite:N,bindings:j}=v;b[0]<_?(fe(u,b[0],_),b[0]=_,b[1]=0):p>0&&u.write(r),b[1]=c(u,v[1],b[1]);let V=(v.length===6?1:0)|(N?2:0)|(L?4:0);if(c(u,V,0),v.length===6){let{4:A,5:k}=v;A!==b[2]&&(b[3]=0),b[2]=c(u,A,b[2]),b[3]=c(u,k,b[3]);}if(N){let{0:A,1:k,2:J}=v.callsite;A===b[4]?k!==b[5]&&(b[6]=0):(b[5]=0,b[6]=0),b[4]=c(u,A,b[4]),b[5]=c(u,k,b[5]),b[6]=c(u,J,b[6]);}if(j)for(let A of j){A.length>1&&c(u,-A.length,0);let k=A[0][0];c(u,k,0);let J=_,de=P;for(let K=1;K<A.length;K++){let ee=A[K];J=c(u,ee[1],J),de=c(u,ee[2],de),c(u,ee[0],0);}}for(p++;p<y.length;){let A=y[p],{0:k,1:J}=A;if(k>F||k===F&&J>=M)break;p=W(y,p,u,b);}return b[0]<F?(fe(u,b[0],F),b[0]=F,b[1]=0):u.write(r),b[1]=c(u,M,b[1]),p}function fe(y,p,u){do y.write(o);while(++p<u)}function Re(y){let{length:p}=y,u=new w(y),b=[],v=0,_=0,P=0,F=0,M=0;do{let L=u.indexOf(";"),N=[],j=true,V=0;for(v=0;u.pos<L;){let A;v=l(u,v),v<V&&(j=false),V=v,m(u,L)?(_=l(u,_),P=l(u,P),F=l(u,F),m(u,L)?(M=l(u,M),A=[v,_,P,F,M]):A=[v,_,P,F]):A=[v],N.push(A),u.pos++;}j||Se(N),b.push(N),u.pos=L+1;}while(u.pos<=p);return b}function Se(y){y.sort(De);}function De(y,p){return y[0]-p[0]}function Ze(y){let p=new h,u=0,b=0,v=0,_=0;for(let P=0;P<y.length;P++){let F=y[P];if(P>0&&p.write(o),F.length===0)continue;let M=0;for(let L=0;L<F.length;L++){let N=F[L];L>0&&p.write(r),M=c(p,N[0],M),N.length!==1&&(u=c(p,N[1],u),b=c(p,N[2],b),v=c(p,N[3],v),N.length!==4&&(_=c(p,N[4],_)));}}return p.flush()}n.decode=Re,n.decodeGeneratedRanges=q,n.decodeOriginalScopes=Y,n.encode=Ze,n.encodeGeneratedRanges=D,n.encodeOriginalScopes=oe,Object.defineProperty(n,"__esModule",{value:true});});}),or=Io(Go()),ir=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Yo=/^data:application\/json[^,]+base64,/,Uo=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,sr=typeof WeakRef<"u",qe=new Map,_t=new Map,zo=e=>sr&&e instanceof WeakRef,Zn=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let o=e[n];if(!o||o.length===0)return null;let i=null;for(let m of o)if(m[0]<=r)i=m;else break;if(!i||i.length<4)return null;let[,s,a,l]=i;if(s===void 0||a===void 0||l===void 0)return null;let c=t[s];return c?{columnNumber:l,fileName:c,lineNumber:a+1}:null},Xo=(e,t,n)=>{if(e.sections){let r=null;for(let s of e.sections)if(t>s.offset.line||t===s.offset.line&&n>=s.offset.column)r=s;else break;if(!r)return null;let o=t-r.offset.line,i=t===r.offset.line?n-r.offset.column:n;return Zn(r.map.mappings,r.map.sources,o,i)}return Zn(e.mappings,e.sources,t-1,n)},qo=(e,t)=>{let n=t.split(`
22
+ `),r;for(let i=n.length-1;i>=0&&!r;i--){let s=n[i].match(Uo);s&&(r=s[1]||s[2]);}if(!r)return null;let o=ir.test(r);if(!(Yo.test(r)||o||r.startsWith("/"))){let i=e.split("/");i[i.length-1]=r,r=i.join("/");}return r},Wo=e=>({file:e.file,mappings:(0, or.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),Ko=e=>{let t=e.sections.map(({map:r,offset:o})=>({map:{...r,mappings:(0, or.decode)(r.mappings)},offset:o})),n=new Set;for(let r of t)for(let o of r.map.sources)n.add(o);return {file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},Qn=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(ir);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},Zo=async(e,t=fetch)=>{if(!Qn(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=qo(e,n);if(!r||!Qn(r))return null;try{let o=await t(r),i=await o.json();return "sections"in i?Ko(i):Wo(i)}catch{return null}},Qo=async(e,t=true,n)=>{if(t&&qe.has(e)){let i=qe.get(e);if(i==null)return null;if(zo(i)){let s=i.deref();if(s)return s;qe.delete(e);}else return i}if(t&&_t.has(e))return _t.get(e);let r=Zo(e,n);t&&_t.set(e,r);let o=await r;return t&&_t.delete(e),t&&(o===null?qe.set(e,null):qe.set(e,sr?new WeakRef(o):o)),o},Jn=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Jo=["rsc://","file:///","webpack://","node:","turbopack://","metro://"],er="about://React/",ei=["<anonymous>","eval",""],ti=/\.(jsx|tsx|ts|js)$/,ni=/(\.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,ri=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,oi=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",ii=e=>{let t=e._debugSource;return t?typeof t=="object"&&!!t&&"fileName"in t&&typeof t.fileName=="string"&&"lineNumber"in t&&typeof t.lineNumber=="number":false},ar=async(e,t=true,n)=>{if(ii(e))return e._debugSource||null;let r=si(e),o=await ai(r,1,t,n);return !o||o.length===0?null:o[0]},si=e=>oi(e)?Ho(e._debugStack.stack):Do(e);var ai=async(e,t=1,n=true,r)=>{let o=Vo(e,{slice:t??1}),i=[];for(let s of o){if(!s?.file)continue;let a=await Qo(s.file,n,r);if(a&&typeof s.line=="number"&&typeof s.col=="number"){let l=Xo(a,s.line,s.col);if(l){i.push(l);continue}}i.push({fileName:s.file,lineNumber:s.line,columnNumber:s.col,functionName:s.function});}return i},Qt=e=>{if(!e||ei.includes(e))return "";let t=e;if(t.startsWith(er)){let r=t.slice(er.length),o=r.indexOf("/"),i=r.indexOf(":");t=o!==-1&&(i===-1||o<i)?r.slice(o+1):r;}for(let r of Jo)if(t.startsWith(r)){t=t.slice(r.length),r==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`);break}if(Jn.test(t)){let r=t.match(Jn);r&&(t=t.slice(r[0].length));}let n=t.indexOf("?");if(n!==-1){let r=t.slice(n);ri.test(r)&&(t=t.slice(0,n));}return t},lr=e=>{let t=Qt(e);return !(!t||!ti.test(t)||ni.test(t))};var cr=e=>e.length>0&&/^[A-Z]/.test(e);var li=["InnerLayoutRouter","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","LoadingBoundary","ErrorBoundary","InnerScrollAndFocusHandler","ScrollAndFocusHandler","RenderFromTemplateContext","OuterLayoutRouter","body","html","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","DevRootHTTPAccessFallbackBoundary","AppDevOverlayErrorBoundary","AppDevOverlay","HotReload","Router","ErrorBoundaryHandler","ErrorBoundary","AppRouter","ServerRoot","SegmentStateProvider","RootErrorBoundary"],ci=()=>!!document.getElementById("__NEXT_DATA__"),ur=e=>!!(e.startsWith("_")||li.includes(e)),ui=e=>!(ur(e)||!cr(e)||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context")),fr=e=>{let t=Xe(e);if(!t)return null;let n=null;return Le(t,r=>{if(Et(r)){let o=Ne(r);if(o&&ui(o))return n=o,true}return false},true),n},dr=async e=>{let t=Xe(e);if(!t||!Ut(t))return [];let n=Rt(t),r=[];return Le(n,i=>{let s=Ct(i)?typeof i.type=="string"?i.type:null:Ne(i);s&&!ur(s)&&r.push({name:s,sourcePromise:ar(i)});},true),(await Promise.all(r.map(async i=>({name:i.name,source:await i.sourcePromise})))).filter(i=>i.source!==null)},mr=e=>{let t=ci();return e.map(({name:n,source:r})=>{if(!r)return ` at ${n}`;if(r.fileName.startsWith("about://React/Server"))return ` at ${n} (Server)`;if(!lr(r.fileName))return ` at ${n}`;let o=` at ${n} in ${Qt(r.fileName)}`;return t?`${o}:${r.lineNumber}:${r.columnNumber}`:o}).join(`
23
+ `)},gr=e=>{let t=e.tagName.toLowerCase();if(!(e instanceof HTMLElement))return `<${t} />`;let n=e.innerText?.trim()??e.textContent?.trim()??"",r="",o=Array.from(e.attributes);for(let h of o){let w=h.name,S=h.value;S.length>20&&(S=`${S.slice(0,20)}...`),r+=` ${w}="${S}"`;}let i=[],s=[],a=false,l=Array.from(e.childNodes);for(let h of l)h.nodeType!==Node.COMMENT_NODE&&(h.nodeType===Node.TEXT_NODE?h.textContent&&h.textContent.trim().length>0&&(a=true):h.nodeType===Node.ELEMENT_NODE&&(a?s.push(h):i.push(h)));let c=h=>h.length===0?"":h.length<=2?h.map(w=>`<${w.tagName.toLowerCase()} ...>`).join(`
24
+ `):`(${h.length} elements)`,m="",f=c(i);if(f&&(m+=`
25
+ ${f}`),n.length>0){let h=n.length>100?`${n.slice(0,100)}...`:n;m+=`
26
+ ${h}`;}let T=c(s);return T&&(m+=`
27
+ ${T}`),m.length>0?`<${t}${r}>${m}
28
+ </${t}>`:`<${t}${r} />`};var fi=()=>document.hasFocus()?new Promise(e=>setTimeout(e,50)):new Promise(e=>{let t=()=>{window.removeEventListener("focus",t),setTimeout(e,50);};window.addEventListener("focus",t),window.focus();}),At=async(e,t)=>{await fi();try{try{return await navigator.clipboard.writeText(e),t?.(),!0}catch{return di(e,t)}}catch{return false}},di=(e,t)=>{if(!document.execCommand)return false;let n=document.createElement("textarea");n.value=String(e),n.style.clipPath="inset(50%)",n.ariaHidden="true",(document.body||document.documentElement).append(n);try{n.select();let o=document.execCommand("copy");return o&&t?.(),o}finally{n.remove();}};var We=()=>{try{let e=new(window.AudioContext||window.webkitAudioContext),t=e.createGain();t.connect(e.destination),[{freq:523.25,start:0,duration:.1},{freq:659.25,start:.05,duration:.1},{freq:783.99,start:.1,duration:.15}].forEach(r=>{let o=e.createOscillator(),i=e.createGain();o.connect(i),i.connect(t),o.frequency.value=r.freq,o.type="triangle";let s=e.currentTime+r.start,a=s+.01,l=s+r.duration;i.gain.setValueAtTime(0,s),i.gain.linearRampToValueAtTime(.15,a),i.gain.exponentialRampToValueAtTime(.01,l),o.start(s),o.stop(l);});}catch{}};var hr=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var Ke=e=>{if(e.closest(`[${Me}]`))return false;let t=window.getComputedStyle(e);return !(!hr(e,t)||t.pointerEvents==="none")};var Jt=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(Ke(r))return r;return null};var mi=(e,t)=>{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),o=Math.min(e.right,t.right),i=Math.min(e.bottom,t.bottom),s=Math.max(0,o-n),a=Math.max(0,i-r);return s*a},gi=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,pr=(e,t,n)=>{let r=[],o=Array.from(document.querySelectorAll("*")),i={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height};for(let s of o){if(!n){let c=(s.tagName||"").toUpperCase();if(c==="HTML"||c==="BODY")continue}if(!t(s))continue;let a=s.getBoundingClientRect(),l={left:a.left,top:a.top,right:a.left+a.width,bottom:a.top+a.height};if(n){let c=mi(i,l),m=Math.max(0,a.width*a.height);m>0&&c/m>=.75&&r.push(s);}else gi(l,i)&&r.push(s);}return r},br=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),yr=(e,t)=>{let n=pr(e,t,true);return br(n)},wr=(e,t)=>{let n=pr(e,t,false);return br(n)};var en=e=>{let t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return {borderRadius:n.borderRadius||"0px",height:t.height,transform:n.transform||"none",width:t.width,x:t.left,y:t.top}};var Sr=e=>{let t={enabled:true,keyHoldDuration:300,allowActivationInsideInput:true,playCopySound:false,...e};return t.enabled===false?{activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{}}:Fe(n=>{let[r,o]=E(false),[i,s]=E(-1e3),[a,l]=E(-1e3),[c,m]=E(false),[f,T]=E(-1e3),[h,w]=E(-1e3),[S,Y]=E(false),[oe,z]=E(null),[q,D]=E(null),[W,fe]=E(0),[Re,Se]=E([]),[De,Ze]=E([]),[y,p]=E(false),[u,b]=E(false),[v,_]=E(false),[P,F]=E(false),[M,L]=E(-1e3),[N,j]=E(-1e3),[V,A]=E(false),k=null,J=null,de=null,K=null,ee=null,me=H(()=>y()&&!S()),He=H(()=>i()>-1e3&&a()>-1e3),pe=d=>(d.metaKey||d.ctrlKey)&&d.key.toLowerCase()==="c",te=d=>{let x=`grabbed-${Date.now()}-${Math.random()}`,R=Date.now(),Z={id:x,bounds:d,createdAt:R},B=Re();Se([...B,Z]),setTimeout(()=>{Se(ge=>ge.filter(dn=>dn.id!==x));},1700);},be=d=>{let x=`success-${Date.now()}-${Math.random()}`;Ze(R=>[...R,{id:x,text:d}]),setTimeout(()=>{Ze(R=>R.filter(Z=>Z.id!==x));},1700);},_e=d=>`<selected_element>
29
+ ${d}
30
+ </selected_element>`,Qe=d=>(d.tagName||"").toLowerCase(),Je=d=>{let x=Qe(d),R=fr(d);return x&&R?`<${x}> in ${R}`:x?`<${x}>`:"<element>"},tn=d=>{try{let x=d.map(R=>({tagName:Qe(R)}));window.dispatchEvent(new CustomEvent("react-grab:element-selected",{detail:{elements:x}}));}catch{}},Ft=async(d,x,R)=>{L(d),j(x),Y(true),Ar(),await R().finally(()=>{Y(false),et(),u()&&(r()?b(false):Ae());});},xr=d=>"innerText"in d,vr=d=>xr(d)?d.innerText:d.textContent??"",nn=d=>d.map(x=>vr(x).trim()).filter(x=>x.length>0).join(`
31
+
32
+ `),rn=async d=>{let x=false;try{let Z=(await Promise.allSettled(d.map(async B=>`## HTML Frame:
33
+ ${gr(B)}
34
+
35
+ ## Code Location:
36
+ ${mr(await dr(B))}`))).map(B=>B.status==="fulfilled"?B.value:"").filter(B=>B.trim());if(Z.length>0){let B=Z.map(ge=>_e(ge)).join(`
37
+
38
+ `);x=await At(B,t.playCopySound?We:void 0);}if(!x){let B=nn(d);B.length>0&&(x=await At(B,t.playCopySound?We:void 0));}}catch{let R=nn(d);R.length>0&&(x=await At(R,t.playCopySound?We:void 0));}return x},Cr=async d=>{te(en(d)),await new Promise(R=>requestAnimationFrame(R)),await rn([d])&&be(Je(d)),tn([d]);},on=async d=>{if(d.length===0)return;for(let R of d)te(en(R));await new Promise(R=>requestAnimationFrame(R)),await rn(d)&&be(`${d.length} elements`),tn(d);},Be=H(()=>!me()||c()?null:Jt(i(),a())),Er=H(()=>{let d=Be();if(!d)return;let x=d.getBoundingClientRect(),R=window.getComputedStyle(d);return {borderRadius:R.borderRadius||"0px",height:x.height,transform:R.transform||"none",width:x.width,x:x.left,y:x.top}}),sn=(d,x)=>({x:Math.abs(d-f()),y:Math.abs(x-h())}),an=H(()=>{if(!c())return false;let d=sn(i(),a());return d.x>2||d.y>2}),ln=(d,x)=>{let R=Math.min(f(),d),Z=Math.min(h(),x),B=Math.abs(d-f()),ge=Math.abs(x-h());return {x:R,y:Z,width:B,height:ge}},Rr=H(()=>{if(!an())return;let d=ln(i(),a());return {borderRadius:"0px",height:d.height,transform:"none",width:d.width,x:d.x,y:d.y}}),_r=H(()=>{let d=Be();return d?Je(d):"<element>"}),cn=H(()=>S()?{x:M(),y:N()}:{x:i(),y:a()}),un=H(()=>S()?{x:M(),y:N()}:{x:i(),y:a()});re(Ie(()=>[Be(),oe()],([d,x])=>{x&&d&&x!==d&&z(null);}));let Ar=()=>{let d=Date.now();D(d),_(false),de=window.setTimeout(()=>{_(true),de=null;},150);let x=()=>{let R=q();if(R===null)return;let B=(Date.now()-R)/t.keyHoldDuration,ge=1-Math.exp(-B),mn=S()?Math.min(ge,.95):1;fe(mn),mn<1&&(J=requestAnimationFrame(x));};x();},et=()=>{J!==null&&(cancelAnimationFrame(J),J=null),de!==null&&(window.clearTimeout(de),de=null),D(null),fe(1),_(false);},tt=()=>{et(),p(true),document.body.style.cursor="crosshair";},Ae=()=>{b(false),o(false),p(false),document.body.style.cursor="",c()&&(m(false),document.body.style.userSelect=""),k&&window.clearTimeout(k),K&&window.clearTimeout(K),ee&&(window.clearTimeout(ee),ee=null),A(false),et();},fn=new AbortController,Oe=fn.signal;window.addEventListener("keydown",d=>{if(d.key==="Escape"&&r()){Ae();return}if(d.key==="Enter"&&r()){b(true),K!==null&&(window.clearTimeout(K),K=null),y()||(k&&window.clearTimeout(k),tt(),t.onActivate?.());return}if(!(!t.allowActivationInsideInput&&kn(d))&&pe(d)){if(y()){if(u())return;K!==null&&window.clearTimeout(K),K=window.setTimeout(()=>{Ae();},200);return}d.repeat||(k!==null&&window.clearTimeout(k),r()||o(true),k=window.setTimeout(()=>{tt(),t.onActivate?.();},t.keyHoldDuration));}},{signal:Oe,capture:true}),window.addEventListener("keyup",d=>{if(!r()&&!y())return;let x=!d.metaKey&&!d.ctrlKey;if(d.key.toLowerCase()==="c"||x){if(u())return;Ae();}},{signal:Oe,capture:true}),window.addEventListener("mousemove",d=>{s(d.clientX),l(d.clientY),ee!==null&&window.clearTimeout(ee),A(false),ee=window.setTimeout(()=>{A(true),ee=null;},300);},{signal:Oe}),window.addEventListener("mousedown",d=>{!me()||S()||(d.preventDefault(),m(true),T(d.clientX),w(d.clientY),document.body.style.userSelect="none");},{signal:Oe}),window.addEventListener("mouseup",d=>{if(!c())return;let x=sn(d.clientX,d.clientY),R=x.x>2||x.y>2;if(m(false),document.body.style.userSelect="",R){F(true);let Z=ln(d.clientX,d.clientY),B=yr(Z,Ke);if(B.length>0)Ft(d.clientX,d.clientY,()=>on(B));else {let ge=wr(Z,Ke);ge.length>0&&Ft(d.clientX,d.clientY,()=>on(ge));}}else {let Z=Jt(d.clientX,d.clientY);if(!Z)return;z(Z),Ft(d.clientX,d.clientY,()=>Cr(Z));}},{signal:Oe}),window.addEventListener("click",d=>{(me()||S()||P())&&(d.preventDefault(),d.stopPropagation(),P()&&F(false),u()&&!S()&&(r()?b(false):Ae()));},{signal:Oe,capture:true}),document.addEventListener("visibilitychange",()=>{document.hidden&&Se([]);},{signal:Oe}),se(()=>{fn.abort(),k&&window.clearTimeout(k),K&&window.clearTimeout(K),ee&&window.clearTimeout(ee),et(),document.body.style.userSelect="",document.body.style.cursor="";});let Or=Nn(),Fr=H(()=>me()&&!c()&&!!Be()),kr=H(()=>me()&&an()),Nr=H(()=>S()?"processing":"hover"),Pr=H(()=>S()?true:De().length>0?false:me()&&!c()&&!!Be()),Ir=H(()=>S()&&v()&&He()),$r=H(()=>me()&&!c());return On(()=>C(Dn,{get selectionVisible(){return Fr()},get selectionBounds(){return Er()},get dragVisible(){return kr()},get dragBounds(){return Rr()},get grabbedBoxes(){return Re()},get successLabels(){return De()},get labelVariant(){return Nr()},get labelText(){return _r()},get labelX(){return cn().x},get labelY(){return cn().y},get labelVisible(){return Pr()},labelZIndex:2147483647,get labelShowHint(){return V()},get progressVisible(){return Ir()},get progress(){return W()},get mouseX(){return un().x},get mouseY(){return un().y},get crosshairVisible(){return $r()}}),Or),{activate:()=>{y()||(tt(),t.onActivate?.());},deactivate:()=>{y()&&Ae();},toggle:()=>{y()?Ae():(tt(),t.onActivate?.());},isActive:()=>y(),dispose:n}})};var Tr=null,kl=()=>Tr;Tr=Sr();/*! Bundled license information:
39
+
40
+ bippy/dist/rdt-hook-CrcWl4lP.js:
96
41
  (**
97
42
  * @license bippy
98
43
  *
@@ -102,7 +47,7 @@ bippy/dist/rdt-hook-DAGphl8S.js:
102
47
  * LICENSE file in the root directory of this source tree.
103
48
  *)
104
49
 
105
- bippy/dist/install-hook-only-DXZnu_Kj.js:
50
+ bippy/dist/install-hook-only-DtUPvEBg.js:
106
51
  (**
107
52
  * @license bippy
108
53
  *
@@ -112,7 +57,7 @@ bippy/dist/install-hook-only-DXZnu_Kj.js:
112
57
  * LICENSE file in the root directory of this source tree.
113
58
  *)
114
59
 
115
- bippy/dist/core-BE71wdnw.js:
60
+ bippy/dist/core-D7_ABaNC.js:
116
61
  (**
117
62
  * @license bippy
118
63
  *
@@ -151,4 +96,4 @@ bippy/dist/source.js:
151
96
  * This source code is licensed under the MIT license found in the
152
97
  * LICENSE file in the root directory of this source tree.
153
98
  *)
154
- */exports.elementToMarkdown=En;exports.getGlobalApi=Zc;exports.htmlToMarkdown=Ps;exports.init=ui;exports.playCopySound=Ce;return exports;})({});
99
+ */exports.getGlobalApi=kl;exports.init=Sr;exports.playCopySound=We;return exports;})({});