react-grab 0.0.17 → 0.0.19

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.
@@ -0,0 +1,47 @@
1
+ interface StoreApi<T> {
2
+ getInitialState(): T;
3
+ getState(): T;
4
+ setState(partialState: ((prevState: T) => T) | Partial<T>): T;
5
+ subscribe(listener: Listener<T>): () => void;
6
+ subscribe<U>(listener: Listener<U>, selector: (state: T) => unknown): () => void;
7
+ }
8
+ type Listener<T> = (state: T, prevState: T | undefined) => (() => unknown) | void;
9
+
10
+ interface Adapter {
11
+ name: string;
12
+ open: (promptText: string) => void;
13
+ }
14
+ declare const cursorAdapter: Adapter;
15
+
16
+ type Hotkey = KeyboardEvent["key"];
17
+
18
+ interface Options {
19
+ /**
20
+ * adapter to open the prompt in an external tool
21
+ */
22
+ adapter?: Adapter;
23
+ enabled?: boolean;
24
+ /**
25
+ * hotkey to trigger the overlay
26
+ *
27
+ * default: ["Meta", "C"] on macOS, ["Control", "C"] on Windows/Linux
28
+ */
29
+ hotkey?: Hotkey | Hotkey[];
30
+ /**
31
+ * time required (ms) to hold the key to trigger the overlay
32
+ *
33
+ * default: 500
34
+ */
35
+ keyHoldDuration?: number;
36
+ }
37
+ interface LibStore {
38
+ keyPressTimestamps: Map<Hotkey, number>;
39
+ mouseX: number;
40
+ mouseY: number;
41
+ overlayMode: "copying" | "hidden" | "visible";
42
+ pressedKeys: Set<Hotkey>;
43
+ }
44
+ declare const libStore: StoreApi<LibStore>;
45
+ declare const init: (options?: Options) => (() => void) | undefined;
46
+
47
+ export { type Adapter, type Options, cursorAdapter, init, libStore };
package/dist/index.d.ts CHANGED
@@ -24,13 +24,13 @@ interface Options {
24
24
  /**
25
25
  * hotkey to trigger the overlay
26
26
  *
27
- * default: ["Meta", "C"]
27
+ * default: ["Meta", "C"] on macOS, ["Control", "C"] on Windows/Linux
28
28
  */
29
29
  hotkey?: Hotkey | Hotkey[];
30
30
  /**
31
31
  * time required (ms) to hold the key to trigger the overlay
32
32
  *
33
- * default: 1000
33
+ * default: 500
34
34
  */
35
35
  keyHoldDuration?: number;
36
36
  }
@@ -6,36 +6,36 @@ 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 ye={name:"cursor",open:t=>{if(!t)return;let e=new URL("cursor://anysphere.cursor-deeplink/prompt");e.searchParams.set("text",t),window.open(e.toString(),"_blank");}};var Nt=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],Ft=t=>!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-"),kt=t=>Array.isArray(t),Pt=(t,e=false)=>{let{composed:n,target:r}=t,l,i;if(r instanceof HTMLElement&&Ft(r)&&n){let s=t.composedPath()[0];s instanceof HTMLElement&&(l=s.tagName,i=s.role);}else r instanceof HTMLElement&&(l=r.tagName,i=r.role);return kt(e)?!!(l&&e&&e.some(o=>typeof l=="string"&&o.toLowerCase()===l.toLowerCase()||o===i)):!!(l&&e&&e)},Dt=t=>Pt(t,Nt),ze=()=>{let t=l=>{Dt(l)||l.code!==void 0&&I.setState(i=>{let o=new Map(i.keyPressTimestamps);return i.pressedKeys.has(l.key)||o.set(l.key,Date.now()),{...i,keyPressTimestamps:o,pressedKeys:new Set([l.key,...i.pressedKeys])}});},e=l=>{l.code!==void 0&&I.setState(i=>{let o=new Map(i.keyPressTimestamps);return o.delete(l.key),{...i,keyPressTimestamps:o,pressedKeys:new Set([...i.pressedKeys].filter(s=>s!==l.key))}});},n=()=>{I.setState(l=>({...l,keyPressTimestamps:new Map,pressedKeys:new Set}));},r=()=>{I.setState(l=>({...l,keyPressTimestamps:new Map,pressedKeys:new Set}));};return document.addEventListener("keydown",t),document.addEventListener("keyup",e),window.addEventListener("blur",n),window.addEventListener("contextmenu",r),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e),window.removeEventListener("blur",n),window.removeEventListener("contextmenu",r);}},ve=t=>{let{pressedKeys:e}=I.getState();return t.length===1?e.has(t.toLowerCase())||e.has(t.toUpperCase()):e.has(t)},Be=(t,e,n)=>{let r=null,l=null,i=Date.now(),o=()=>{r!==null&&(clearTimeout(r),r=null),l!==null&&(l(),l=null);},s=(y,g)=>y.length===1?g.has(y.toLowerCase())||g.has(y.toUpperCase()):g.has(y),u=y=>Array.isArray(t)?t.every(g=>s(g,y)):s(t,y),c=()=>{let y=I.getState(),{pressedKeys:g}=y;if(!u(g)){r!==null&&(clearTimeout(r),r=null);return}let p=Date.now()-i,a=e-p;if(a<=0){n(),o();return}r!==null&&clearTimeout(r),r=setTimeout(()=>{n(),o();},a);};return l=I.subscribe(()=>{c();},y=>y.pressedKeys),c(),o};var Ke="0.3.32",se=`bippy-${Ke}`,We=Object.defineProperty,Ht=Object.prototype.hasOwnProperty,Q=()=>{},Xe=t=>{try{Function.prototype.toString.call(t).indexOf("^_^")>-1&&setTimeout(()=>{throw new 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{}},Ye=(t=B())=>"getFiberRoots"in t,Qe=false,qe,_e=(t=B())=>Qe?true:(typeof t.inject=="function"&&(qe=t.inject.toString()),!!qe?.includes("(injected)")),oe=new Set,q=new Set,Ze=t=>{let e=new Map,n=0,r={checkDCE:Xe,supportsFiber:true,supportsFlight:true,hasUnsupportedRendererAttached:false,renderers:e,onCommitFiberRoot:Q,onCommitFiberUnmount:Q,onPostCommitFiberRoot:Q,on:Q,inject(l){let i=++n;return e.set(i,l),q.add(l),r._instrumentationIsActive||(r._instrumentationIsActive=true,oe.forEach(o=>o())),i},_instrumentationSource:se,_instrumentationIsActive:false};try{We(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{get(){return r},set(o){if(o&&typeof o=="object"){let s=r.renderers;r=o,s.size>0&&(s.forEach((u,c)=>{q.add(u),o.renderers.set(c,u);}),ie(t));}},configurable:!0,enumerable:!0});let l=window.hasOwnProperty,i=!1;We(window,"hasOwnProperty",{value:function(){try{if(!i&&arguments[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,i=!0,-0}catch{}return l.apply(this,arguments)},configurable:!0,writable:!0});}catch{ie(t);}return r},ie=t=>{t&&oe.add(t);try{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!e)return;if(!e._instrumentationSource){if(e.checkDCE=Xe,e.supportsFiber=!0,e.supportsFlight=!0,e.hasUnsupportedRendererAttached=!1,e._instrumentationSource=se,e._instrumentationIsActive=!1,e.on=Q,e.renderers.size){e._instrumentationIsActive=!0,oe.forEach(r=>r());return}let n=e.inject;_e(e)&&!Ye()&&(Qe=!0,e.inject({scheduleRefresh(){}})&&(e._instrumentationIsActive=!0)),e.inject=r=>{let l=n(r);return q.add(r),e._instrumentationIsActive=!0,oe.forEach(i=>i()),l};}(e.renderers.size||e._instrumentationIsActive||_e())&&t?.();}catch{}},Je=()=>Ht.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),B=t=>Je()?(ie(t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Ze(t),et=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),tt=()=>{try{et()&&B();}catch{}},ae=0,Z=1;var le=5;var ce=11,Se=13,nt=14,ue=15,Ce=16;var be=19;var de=26,fe=27,we=28,Ee=30;var Te=t=>{switch(t.tag){case le:case de:case fe:return true;default:return typeof t.type=="string"}},Le=t=>{switch(t.tag){case ae:case Z:case ue:case nt:case ce:return true;default:return false}};function Re(t,e,n=false){return t&&e(t)instanceof Promise?Ae(t,e,n):Me(t,e,n)}var Me=(t,e,n=false)=>{if(!t)return null;if(e(t)===true)return t;let r=n?t.return:t.child;for(;r;){let l=Me(r,e,n);if(l)return l;r=n?null:r.sibling;}return null},Ae=async(t,e,n=false)=>{if(!t)return null;if(await e(t)===true)return t;let r=n?t.return:t.child;for(;r;){let l=await Ae(r,e,n);if(l)return l;r=n?null:r.sibling;}return null};var K=t=>{let e=t;return typeof e=="function"?e:typeof e=="object"&&e?K(e.type||e.render):null},pe=t=>{let e=t;if(typeof e=="string")return e;if(typeof e!="function"&&!(typeof e=="object"&&e))return null;let n=e.displayName||e.name||null;if(n)return n;let r=K(e);return r&&(r.displayName||r.name)||null};var Oe=t=>B(()=>{let e=B();t.onActive?.(),e._instrumentationSource=t.name??se;let n=e.onCommitFiberRoot;t.onCommitFiberRoot&&(e.onCommitFiberRoot=(i,o,s)=>{n&&n(i,o,s),t.onCommitFiberRoot?.(i,o,s);});let r=e.onCommitFiberUnmount;t.onCommitFiberUnmount&&(e.onCommitFiberUnmount=(i,o)=>{r&&r(i,o),t.onCommitFiberUnmount?.(i,o);});let l=e.onPostCommitFiberRoot;t.onPostCommitFiberRoot&&(e.onPostCommitFiberRoot=(i,o)=>{l&&l(i,o),t.onPostCommitFiberRoot?.(i,o);});}),xe=t=>{let e=B();for(let n of e.renderers.values())try{let r=n.findFiberByHostInstance?.(t);if(r)return r}catch{}if(typeof t=="object"&&t!=null){if("_reactRootContainer"in t)return t._reactRootContainer?._internalRoot?.current?.child;for(let n in t)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return t[n]||null}return null},Ie=new Set;tt();var qt=Object.create,rt=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,ot=Object.getOwnPropertyNames,Xt=Object.getPrototypeOf,Yt=Object.prototype.hasOwnProperty,U=(t,e)=>function(){return e||(0, t[ot(t)[0]])((e={exports:{}}).exports,e),e.exports},Qt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(var l=ot(e),i=0,o=l.length,s;i<o;i++)s=l[i],!Yt.call(t,s)&&s!==n&&rt(t,s,{get:(u=>e[u]).bind(null,s),enumerable:!(r=Kt(e,s))||r.enumerable});return t},Zt=(t,e,n)=>(n=t!=null?qt(Xt(t)):{},Qt(rt(n,"default",{value:t,enumerable:true}),t)),it=/^\s*at .*(\S+:\d+|\(native\))/m,Jt=/^(eval@)?(\[native code\])?$/;function en(t,e){return t.match(it)?tn(t,e):nn(t,e)}function st(t){if(!t.includes(":"))return [t,void 0,void 0];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]}function at(t,e){return e&&e.slice!=null?Array.isArray(e.slice)?t.slice(e.slice[0],e.slice[1]):t.slice(0,e.slice):t}function tn(t,e){return at(t.split(`
10
- `).filter(r=>!!r.match(it)),e).map(r=>{r.includes("(eval ")&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let l=r.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),i=l.match(/ (\(.+\)$)/);l=i?l.replace(i[0],""):l;let o=st(i?i[1]:l),s=i&&l||void 0,u=["eval","<anonymous>"].includes(o[0])?void 0:o[0];return {function:s,file:u,line:o[1]?+o[1]:void 0,col:o[2]?+o[2]:void 0,raw:r}})}function nn(t,e){return at(t.split(`
11
- `).filter(r=>!r.match(Jt)),e).map(r=>{if(r.includes(" > eval")&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!r.includes("@")&&!r.includes(":"))return {function:r};{let l=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,i=r.match(l),o=i&&i[1]?i[1]:void 0,s=st(r.replace(l,""));return {function:o,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:r}}})}var rn=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.js"(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(n){if(0<=n&&n<e.length)return e[n];throw new TypeError("Must be between 0 and 63: "+n)},t.decode=function(n){var r=65,l=90,i=97,o=122,s=48,u=57,c=43,y=47,g=26,p=52;return r<=n&&n<=l?n-r:i<=n&&n<=o?n-i+g:s<=n&&n<=u?n-s+p:n==c?62:n==y?63:-1};}}),lt=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(t){var e=rn(),n=5,r=1<<n,l=r-1,i=r;function o(u){return u<0?(-u<<1)+1:(u<<1)+0}function s(u){var c=(u&1)===1,y=u>>1;return c?-y:y}t.encode=function(c){var y="",g,p=o(c);do g=p&l,p>>>=n,p>0&&(g|=i),y+=e.encode(g);while(p>0);return y},t.decode=function(c,y,g){var p=c.length,a=0,f=0,m,d;do{if(y>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(d=e.decode(c.charCodeAt(y++)),d===-1)throw new Error("Invalid base64 digit: "+c.charAt(y-1));m=!!(d&i),d&=l,a=a+(d<<f),f+=n;}while(m);g.value=s(a),g.rest=y;};}}),ee=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(t){function e(v,_,w){if(_ in v)return v[_];if(arguments.length===3)return w;throw new Error('"'+_+'" is a required argument.')}t.getArg=e;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function l(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}t.urlParse=l;function i(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}t.urlGenerate=i;var o=32;function s(v){var _=[];return function(w){for(var C=0;C<_.length;C++)if(_[C].input===w){var P=_[0];return _[0]=_[C],_[C]=P,_[0].result}var A=v(w);return _.unshift({input:w,result:A}),_.length>o&&_.pop(),A}}var u=s(function(_){var w=_,C=l(_);if(C){if(!C.path)return _;w=C.path;}for(var P=t.isAbsolute(w),A=[],k=0,O=0;;)if(k=O,O=w.indexOf("/",k),O===-1){A.push(w.slice(k));break}else for(A.push(w.slice(k,O));O<w.length&&w[O]==="/";)O++;for(var z,D=0,O=A.length-1;O>=0;O--)z=A[O],z==="."?A.splice(O,1):z===".."?D++:D>0&&(z===""?(A.splice(O+1,D),D=0):(A.splice(O,2),D--));return w=A.join("/"),w===""&&(w=P?"/":"."),C?(C.path=w,i(C)):w});t.normalize=u;function c(v,_){v===""&&(v="."),_===""&&(_=".");var w=l(_),C=l(v);if(C&&(v=C.path||"/"),w&&!w.scheme)return C&&(w.scheme=C.scheme),i(w);if(w||_.match(r))return _;if(C&&!C.host&&!C.path)return C.host=_,i(C);var P=_.charAt(0)==="/"?_:u(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=P,i(C)):P}t.join=c,t.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function y(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var w=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++w;}return Array(w+1).join("../")+_.substr(v.length+1)}t.relative=y;var g=function(){var v=Object.create(null);return !("__proto__"in v)}();function p(v){return v}function a(v){return m(v)?"$"+v:v}t.toSetString=g?p:a;function f(v){return m(v)?v.slice(1):v}t.fromSetString=g?p:f;function m(v){if(!v)return false;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return false;for(var w=_-10;w>=0;w--)if(v.charCodeAt(w)!==36)return false;return true}function d(v,_,w){var C=E(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||w)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:E(v.name,_.name)}t.compareByOriginalPositions=d;function h(v,_,w){var C;return C=v.originalLine-_.originalLine,C!==0||(C=v.originalColumn-_.originalColumn,C!==0||w)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:E(v.name,_.name)}t.compareByOriginalPositionsNoSource=h;function S(v,_,w){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||w)||(C=E(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:E(v.name,_.name)}t.compareByGeneratedPositionsDeflated=S;function b(v,_,w){var C=v.generatedColumn-_.generatedColumn;return C!==0||w||(C=E(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:E(v.name,_.name)}t.compareByGeneratedPositionsDeflatedNoLine=b;function E(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function T(v,_){var w=v.generatedLine-_.generatedLine;return w!==0||(w=v.generatedColumn-_.generatedColumn,w!==0)||(w=E(v.source,_.source),w!==0)||(w=v.originalLine-_.originalLine,w!==0)||(w=v.originalColumn-_.originalColumn,w!==0)?w:E(v.name,_.name)}t.compareByGeneratedPositionsInflated=T;function L(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=L;function R(v,_,w){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),w){var C=l(w);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var P=C.path.lastIndexOf("/");P>=0&&(C.path=C.path.substring(0,P+1));}_=c(i(C),_);}return u(_)}t.computeSourceURL=R;}}),ct=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(t){var e=ee(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function l(){this._array=[],this._set=r?new Map:Object.create(null);}l.fromArray=function(o,s){for(var u=new l,c=0,y=o.length;c<y;c++)u.add(o[c],s);return u},l.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},l.prototype.add=function(o,s){var u=r?o:e.toSetString(o),c=r?this.has(o):n.call(this._set,u),y=this._array.length;(!c||s)&&this._array.push(o),c||(r?this._set.set(o,y):this._set[u]=y);},l.prototype.has=function(o){if(r)return this._set.has(o);var s=e.toSetString(o);return n.call(this._set,s)},l.prototype.indexOf=function(o){if(r){var s=this._set.get(o);if(s>=0)return s}else {var u=e.toSetString(o);if(n.call(this._set,u))return this._set[u]}throw new Error('"'+o+'" is not in the set.')},l.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},l.prototype.toArray=function(){return this._array.slice()},t.ArraySet=l;}}),on=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(t){var e=ee();function n(l,i){var o=l.generatedLine,s=i.generatedLine,u=l.generatedColumn,c=i.generatedColumn;return s>o||s==o&&c>=u||e.compareByGeneratedPositionsInflated(l,i)<=0}function r(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}r.prototype.unsortedForEach=function(i,o){this._array.forEach(i,o);},r.prototype.add=function(i){n(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=false,this._array.push(i));},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=true),this._array},t.MappingList=r;}}),ut=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(t){var e=lt(),n=ee(),r=ct().ArraySet,l=on().MappingList;function i(o){o||(o={}),this._file=n.getArg(o,"file",null),this._sourceRoot=n.getArg(o,"sourceRoot",null),this._skipValidation=n.getArg(o,"skipValidation",false),this._ignoreInvalidMapping=n.getArg(o,"ignoreInvalidMapping",false),this._sources=new r,this._names=new r,this._mappings=new l,this._sourcesContents=null;}i.prototype._version=3,i.fromSourceMap=function(s,u){var c=s.sourceRoot,y=new i(Object.assign(u||{},{file:s.file,sourceRoot:c}));return s.eachMapping(function(g){var p={generated:{line:g.generatedLine,column:g.generatedColumn}};g.source!=null&&(p.source=g.source,c!=null&&(p.source=n.relative(c,p.source)),p.original={line:g.originalLine,column:g.originalColumn},g.name!=null&&(p.name=g.name)),y.addMapping(p);}),s.sources.forEach(function(g){var p=g;c!==null&&(p=n.relative(c,g)),y._sources.has(p)||y._sources.add(p);var a=s.sourceContentFor(g);a!=null&&y.setSourceContent(g,a);}),y},i.prototype.addMapping=function(s){var u=n.getArg(s,"generated"),c=n.getArg(s,"original",null),y=n.getArg(s,"source",null),g=n.getArg(s,"name",null);!this._skipValidation&&this._validateMapping(u,c,y,g)===false||(y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:u.line,generatedColumn:u.column,originalLine:c!=null&&c.line,originalColumn:c!=null&&c.column,source:y,name:g}));},i.prototype.setSourceContent=function(s,u){var c=s;this._sourceRoot!=null&&(c=n.relative(this._sourceRoot,c)),u!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(c)]=u):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(c)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},i.prototype.applySourceMap=function(s,u,c){var y=u;if(u==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=s.file;}var g=this._sourceRoot;g!=null&&(y=n.relative(g,y));var p=new r,a=new r;this._mappings.unsortedForEach(function(f){if(f.source===y&&f.originalLine!=null){var m=s.originalPositionFor({line:f.originalLine,column:f.originalColumn});m.source!=null&&(f.source=m.source,c!=null&&(f.source=n.join(c,f.source)),g!=null&&(f.source=n.relative(g,f.source)),f.originalLine=m.line,f.originalColumn=m.column,m.name!=null&&(f.name=m.name));}var d=f.source;d!=null&&!p.has(d)&&p.add(d);var h=f.name;h!=null&&!a.has(h)&&a.add(h);},this),this._sources=p,this._names=a,s.sources.forEach(function(f){var m=s.sourceContentFor(f);m!=null&&(c!=null&&(f=n.join(c,f)),g!=null&&(f=n.relative(g,f)),this.setSourceContent(f,m));},this);},i.prototype._validateMapping=function(s,u,c,y){if(u&&typeof u.line!="number"&&typeof u.column!="number"){var g="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(g),false;throw new Error(g)}if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!u&&!c&&!y)){if(s&&"line"in s&&"column"in s&&u&&"line"in u&&"column"in u&&s.line>0&&s.column>=0&&u.line>0&&u.column>=0&&c)return;var g="Invalid mapping: "+JSON.stringify({generated:s,source:c,original:u,name:y});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(g),false;throw new Error(g)}},i.prototype._serializeMappings=function(){for(var s=0,u=1,c=0,y=0,g=0,p=0,a="",f,m,d,h,S=this._mappings.toArray(),b=0,E=S.length;b<E;b++){if(m=S[b],f="",m.generatedLine!==u)for(s=0;m.generatedLine!==u;)f+=";",u++;else if(b>0){if(!n.compareByGeneratedPositionsInflated(m,S[b-1]))continue;f+=",";}f+=e.encode(m.generatedColumn-s),s=m.generatedColumn,m.source!=null&&(h=this._sources.indexOf(m.source),f+=e.encode(h-p),p=h,f+=e.encode(m.originalLine-1-y),y=m.originalLine-1,f+=e.encode(m.originalColumn-c),c=m.originalColumn,m.name!=null&&(d=this._names.indexOf(m.name),f+=e.encode(d-g),g=d)),a+=f;}return a},i.prototype._generateSourcesContent=function(s,u){return s.map(function(c){if(!this._sourcesContents)return null;u!=null&&(c=n.relative(u,c));var y=n.toSetString(c);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},i.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=i;}}),sn=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.js"(t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2;function e(n,r,l,i,o,s){var u=Math.floor((r-n)/2)+n,c=o(l,i[u],true);return c===0?u:c>0?r-u>1?e(u,r,l,i,o,s):s==t.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-n>1?e(n,u,l,i,o,s):s==t.LEAST_UPPER_BOUND?u:n<0?-1:n}t.search=function(r,l,i,o){if(l.length===0)return -1;var s=e(-1,l.length,r,l,i,o||t.GREATEST_LOWER_BOUND);if(s<0)return -1;for(;s-1>=0&&i(l[s],l[s-1],true)===0;)--s;return s};}}),an=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(t){function e(l){function i(u,c,y){var g=u[c];u[c]=u[y],u[y]=g;}function o(u,c){return Math.round(u+Math.random()*(c-u))}function s(u,c,y,g){if(y<g){var p=o(y,g),a=y-1;i(u,p,g);for(var f=u[g],m=y;m<g;m++)c(u[m],f,false)<=0&&(a+=1,i(u,a,m));i(u,a+1,m);var d=a+1;s(u,c,y,d-1),s(u,c,d+1,g);}}return s}function n(l){let i=e.toString();return new Function(`return ${i}`)()(l)}let r=new WeakMap;t.quickSort=function(l,i,o=0){let s=r.get(i);s===void 0&&(s=n(i),r.set(i,s)),s(l,i,o,l.length-1);};}}),ln=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(t){var e=ee(),n=sn(),r=ct().ArraySet,l=lt(),i=an().quickSort;function o(p,a){var f=p;return typeof p=="string"&&(f=e.parseSourceMapInput(p)),f.sections!=null?new g(f,a):new s(f,a)}o.fromSourceMap=function(p,a){return s.fromSourceMap(p,a)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(a,f){var m=a.charAt(f);return m===";"||m===","},o.prototype._parseMappings=function(a,f){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(a,f,m){var d=f||null,h=m||o.GENERATED_ORDER,S;switch(h){case o.GENERATED_ORDER:S=this._generatedMappings;break;case o.ORIGINAL_ORDER:S=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var b=this.sourceRoot,E=a.bind(d),T=this._names,L=this._sources,R=this._sourceMapURL,v=0,_=S.length;v<_;v++){var w=S[v],C=w.source===null?null:L.at(w.source);C!==null&&(C=e.computeSourceURL(b,C,R)),E({source:C,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:T.at(w.name)});}},o.prototype.allGeneratedPositionsFor=function(a){var f=e.getArg(a,"line"),m={source:e.getArg(a,"source"),originalLine:f,originalColumn:e.getArg(a,"column",0)};if(m.source=this._findSourceIndex(m.source),m.source<0)return [];var d=[],h=this._findMapping(m,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(h>=0){var S=this._originalMappings[h];if(a.column===void 0)for(var b=S.originalLine;S&&S.originalLine===b;)d.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++h];else for(var E=S.originalColumn;S&&S.originalLine===f&&S.originalColumn==E;)d.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++h];}return d},t.SourceMapConsumer=o;function s(p,a){var f=p;typeof p=="string"&&(f=e.parseSourceMapInput(p));var m=e.getArg(f,"version"),d=e.getArg(f,"sources"),h=e.getArg(f,"names",[]),S=e.getArg(f,"sourceRoot",null),b=e.getArg(f,"sourcesContent",null),E=e.getArg(f,"mappings"),T=e.getArg(f,"file",null);if(m!=this._version)throw new Error("Unsupported version: "+m);S&&(S=e.normalize(S)),d=d.map(String).map(e.normalize).map(function(L){return S&&e.isAbsolute(S)&&e.isAbsolute(L)?e.relative(S,L):L}),this._names=r.fromArray(h.map(String),true),this._sources=r.fromArray(d,true),this._absoluteSources=this._sources.toArray().map(function(L){return e.computeSourceURL(S,L,a)}),this.sourceRoot=S,this.sourcesContent=b,this._mappings=E,this._sourceMapURL=a,this.file=T;}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(p){var a=p;if(this.sourceRoot!=null&&(a=e.relative(this.sourceRoot,a)),this._sources.has(a))return this._sources.indexOf(a);var f;for(f=0;f<this._absoluteSources.length;++f)if(this._absoluteSources[f]==p)return f;return -1},s.fromSourceMap=function(a,f){var m=Object.create(s.prototype),d=m._names=r.fromArray(a._names.toArray(),true),h=m._sources=r.fromArray(a._sources.toArray(),true);m.sourceRoot=a._sourceRoot,m.sourcesContent=a._generateSourcesContent(m._sources.toArray(),m.sourceRoot),m.file=a._file,m._sourceMapURL=f,m._absoluteSources=m._sources.toArray().map(function(_){return e.computeSourceURL(m.sourceRoot,_,f)});for(var S=a._mappings.toArray().slice(),b=m.__generatedMappings=[],E=m.__originalMappings=[],T=0,L=S.length;T<L;T++){var R=S[T],v=new u;v.generatedLine=R.generatedLine,v.generatedColumn=R.generatedColumn,R.source&&(v.source=h.indexOf(R.source),v.originalLine=R.originalLine,v.originalColumn=R.originalColumn,R.name&&(v.name=d.indexOf(R.name)),E.push(v)),b.push(v);}return i(m.__originalMappings,e.compareByOriginalPositions),m},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}let c=e.compareByGeneratedPositionsDeflatedNoLine;function y(p,a){let f=p.length,m=p.length-a;if(!(m<=1))if(m==2){let d=p[a],h=p[a+1];c(d,h)>0&&(p[a]=h,p[a+1]=d);}else if(m<20)for(let d=a;d<f;d++)for(let h=d;h>a;h--){let S=p[h-1],b=p[h];if(c(S,b)<=0)break;p[h-1]=b,p[h]=S;}else i(p,c,a);}s.prototype._parseMappings=function(a,f){var m=1,d=0,h=0,S=0,b=0,E=0,T=a.length,L=0,v={},_=[],w=[],C,A,k,O;let z=0;for(;L<T;)if(a.charAt(L)===";")m++,L++,d=0,y(w,z),z=w.length;else if(a.charAt(L)===",")L++;else {for(C=new u,C.generatedLine=m,k=L;k<T&&!this._charIsMappingSeparator(a,k);k++);for(a.slice(L,k),A=[];L<k;)l.decode(a,L,v),O=v.value,L=v.rest,A.push(O);if(A.length===2)throw new Error("Found a source, but no line and column");if(A.length===3)throw new Error("Found a source and line, but no column");if(C.generatedColumn=d+A[0],d=C.generatedColumn,A.length>1&&(C.source=b+A[1],b+=A[1],C.originalLine=h+A[2],h=C.originalLine,C.originalLine+=1,C.originalColumn=S+A[3],S=C.originalColumn,A.length>4&&(C.name=E+A[4],E+=A[4])),w.push(C),typeof C.originalLine=="number"){let M=C.source;for(;_.length<=M;)_.push(null);_[M]===null&&(_[M]=[]),_[M].push(C);}}y(w,z),this.__generatedMappings=w;for(var D=0;D<_.length;D++)_[D]!=null&&i(_[D],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(..._);},s.prototype._findMapping=function(a,f,m,d,h,S){if(a[m]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[m]);if(a[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return n.search(a,f,h,S)},s.prototype.computeColumnSpans=function(){for(var a=0;a<this._generatedMappings.length;++a){var f=this._generatedMappings[a];if(a+1<this._generatedMappings.length){var m=this._generatedMappings[a+1];if(f.generatedLine===m.generatedLine){f.lastGeneratedColumn=m.generatedColumn-1;continue}}f.lastGeneratedColumn=1/0;}},s.prototype.originalPositionFor=function(a){var f={generatedLine:e.getArg(a,"line"),generatedColumn:e.getArg(a,"column")},m=this._findMapping(f,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(a,"bias",o.GREATEST_LOWER_BOUND));if(m>=0){var d=this._generatedMappings[m];if(d.generatedLine===f.generatedLine){var h=e.getArg(d,"source",null);h!==null&&(h=this._sources.at(h),h=e.computeSourceURL(this.sourceRoot,h,this._sourceMapURL));var S=e.getArg(d,"name",null);return S!==null&&(S=this._names.at(S)),{source:h,line:e.getArg(d,"originalLine",null),column:e.getArg(d,"originalColumn",null),name:S}}}return {source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return a==null}):false},s.prototype.sourceContentFor=function(a,f){if(!this.sourcesContent)return null;var m=this._findSourceIndex(a);if(m>=0)return this.sourcesContent[m];var d=a;this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d));var h;if(this.sourceRoot!=null&&(h=e.urlParse(this.sourceRoot))){var S=d.replace(/^file:\/\//,"");if(h.scheme=="file"&&this._sources.has(S))return this.sourcesContent[this._sources.indexOf(S)];if((!h.path||h.path=="/")&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(f)return null;throw new Error('"'+d+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(a){var f=e.getArg(a,"source");if(f=this._findSourceIndex(f),f<0)return {line:null,column:null,lastColumn:null};var m={source:f,originalLine:e.getArg(a,"line"),originalColumn:e.getArg(a,"column")},d=this._findMapping(m,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(a,"bias",o.GREATEST_LOWER_BOUND));if(d>=0){var h=this._originalMappings[d];if(h.source===m.source)return {line:e.getArg(h,"generatedLine",null),column:e.getArg(h,"generatedColumn",null),lastColumn:e.getArg(h,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=s;function g(p,a){var f=p;typeof p=="string"&&(f=e.parseSourceMapInput(p));var m=e.getArg(f,"version"),d=e.getArg(f,"sections");if(m!=this._version)throw new Error("Unsupported version: "+m);this._sources=new r,this._names=new r;var h={line:-1,column:0};this._sections=d.map(function(S){if(S.url)throw new Error("Support for url field in sections not implemented.");var b=e.getArg(S,"offset"),E=e.getArg(b,"line"),T=e.getArg(b,"column");if(E<h.line||E===h.line&&T<h.column)throw new Error("Section offsets must be ordered and non-overlapping.");return h=b,{generatedOffset:{generatedLine:E+1,generatedColumn:T+1},consumer:new o(e.getArg(S,"map"),a)}});}g.prototype=Object.create(o.prototype),g.prototype.constructor=o,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var p=[],a=0;a<this._sections.length;a++)for(var f=0;f<this._sections[a].consumer.sources.length;f++)p.push(this._sections[a].consumer.sources[f]);return p}}),g.prototype.originalPositionFor=function(a){var f={generatedLine:e.getArg(a,"line"),generatedColumn:e.getArg(a,"column")},m=n.search(f,this._sections,function(h,S){var b=h.generatedLine-S.generatedOffset.generatedLine;return b||h.generatedColumn-S.generatedOffset.generatedColumn}),d=this._sections[m];return d?d.consumer.originalPositionFor({line:f.generatedLine-(d.generatedOffset.generatedLine-1),column:f.generatedColumn-(d.generatedOffset.generatedLine===f.generatedLine?d.generatedOffset.generatedColumn-1:0),bias:a.bias}):{source:null,line:null,column:null,name:null}},g.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(a){return a.consumer.hasContentsOfAllSources()})},g.prototype.sourceContentFor=function(a,f){for(var m=0;m<this._sections.length;m++){var d=this._sections[m],h=d.consumer.sourceContentFor(a,true);if(h||h==="")return h}if(f)return null;throw new Error('"'+a+'" is not in the SourceMap.')},g.prototype.generatedPositionFor=function(a){for(var f=0;f<this._sections.length;f++){var m=this._sections[f];if(m.consumer._findSourceIndex(e.getArg(a,"source"))!==-1){var d=m.consumer.generatedPositionFor(a);if(d){var h={line:d.line+(m.generatedOffset.generatedLine-1),column:d.column+(m.generatedOffset.generatedLine===d.line?m.generatedOffset.generatedColumn-1:0)};return h}}}return {line:null,column:null}},g.prototype._parseMappings=function(a,f){this.__generatedMappings=[],this.__originalMappings=[];for(var m=0;m<this._sections.length;m++)for(var d=this._sections[m],h=d.consumer._generatedMappings,S=0;S<h.length;S++){var b=h[S],E=d.consumer._sources.at(b.source);E!==null&&(E=e.computeSourceURL(d.consumer.sourceRoot,E,this._sourceMapURL)),this._sources.add(E),E=this._sources.indexOf(E);var T=null;b.name&&(T=d.consumer._names.at(b.name),this._names.add(T),T=this._names.indexOf(T));var L={source:E,generatedLine:b.generatedLine+(d.generatedOffset.generatedLine-1),generatedColumn:b.generatedColumn+(d.generatedOffset.generatedLine===b.generatedLine?d.generatedOffset.generatedColumn-1:0),originalLine:b.originalLine,originalColumn:b.originalColumn,name:T};this.__generatedMappings.push(L),typeof L.originalLine=="number"&&this.__originalMappings.push(L);}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions);},t.IndexedSourceMapConsumer=g;}}),cn=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(t){var e=ut().SourceMapGenerator,n=ee(),r=/(\r?\n)/,l=10,i="$$$isSourceNode$$$";function o(s,u,c,y,g){this.children=[],this.sourceContents={},this.line=s??null,this.column=u??null,this.source=c??null,this.name=g??null,this[i]=true,y!=null&&this.add(y);}o.fromStringWithSourceMap=function(u,c,y){var g=new o,p=u.split(r),a=0,f=function(){var b=T(),E=T()||"";return b+E;function T(){return a<p.length?p[a++]:void 0}},m=1,d=0,h=null;return c.eachMapping(function(b){if(h!==null)if(m<b.generatedLine)S(h,f()),m++,d=0;else {var E=p[a]||"",T=E.substr(0,b.generatedColumn-d);p[a]=E.substr(b.generatedColumn-d),d=b.generatedColumn,S(h,T),h=b;return}for(;m<b.generatedLine;)g.add(f()),m++;if(d<b.generatedColumn){var E=p[a]||"";g.add(E.substr(0,b.generatedColumn)),p[a]=E.substr(b.generatedColumn),d=b.generatedColumn;}h=b;},this),a<p.length&&(h&&S(h,f()),g.add(p.splice(a).join(""))),c.sources.forEach(function(b){var E=c.sourceContentFor(b);E!=null&&(y!=null&&(b=n.join(y,b)),g.setSourceContent(b,E));}),g;function S(b,E){if(b===null||b.source===void 0)g.add(E);else {var T=y?n.join(y,b.source):b.source;g.add(new o(b.originalLine,b.originalColumn,T,E,b.name));}}},o.prototype.add=function(u){if(Array.isArray(u))u.forEach(function(c){this.add(c);},this);else if(u[i]||typeof u=="string")u&&this.children.push(u);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);return this},o.prototype.prepend=function(u){if(Array.isArray(u))for(var c=u.length-1;c>=0;c--)this.prepend(u[c]);else if(u[i]||typeof u=="string")this.children.unshift(u);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);return this},o.prototype.walk=function(u){for(var c,y=0,g=this.children.length;y<g;y++)c=this.children[y],c[i]?c.walk(u):c!==""&&u(c,{source:this.source,line:this.line,column:this.column,name:this.name});},o.prototype.join=function(u){var c,y,g=this.children.length;if(g>0){for(c=[],y=0;y<g-1;y++)c.push(this.children[y]),c.push(u);c.push(this.children[y]),this.children=c;}return this},o.prototype.replaceRight=function(u,c){var y=this.children[this.children.length-1];return y[i]?y.replaceRight(u,c):typeof y=="string"?this.children[this.children.length-1]=y.replace(u,c):this.children.push("".replace(u,c)),this},o.prototype.setSourceContent=function(u,c){this.sourceContents[n.toSetString(u)]=c;},o.prototype.walkSourceContents=function(u){for(var c=0,y=this.children.length;c<y;c++)this.children[c][i]&&this.children[c].walkSourceContents(u);for(var g=Object.keys(this.sourceContents),c=0,y=g.length;c<y;c++)u(n.fromSetString(g[c]),this.sourceContents[g[c]]);},o.prototype.toString=function(){var u="";return this.walk(function(c){u+=c;}),u},o.prototype.toStringWithSourceMap=function(u){var c={code:"",line:1,column:0},y=new e(u),g=false,p=null,a=null,f=null,m=null;return this.walk(function(d,h){c.code+=d,h.source!==null&&h.line!==null&&h.column!==null?((p!==h.source||a!==h.line||f!==h.column||m!==h.name)&&y.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:c.line,column:c.column},name:h.name}),p=h.source,a=h.line,f=h.column,m=h.name,g=true):g&&(y.addMapping({generated:{line:c.line,column:c.column}}),p=null,g=false);for(var S=0,b=d.length;S<b;S++)d.charCodeAt(S)===l?(c.line++,c.column=0,S+1===b?(p=null,g=false):g&&y.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:c.line,column:c.column},name:h.name})):c.column++;}),this.walkSourceContents(function(d,h){y.setSourceContent(d,h);}),{code:c.code,map:y}},t.SourceNode=o;}}),un=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(t){t.SourceMapGenerator=ut().SourceMapGenerator,t.SourceMapConsumer=ln().SourceMapConsumer,t.SourceNode=cn().SourceNode;}}),dn=Zt(un()),me=false,W=t=>`
12
- in ${t}`,fn=/^data:application\/json[^,]+base64,/,pn=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,dt=async(t,e)=>{let n=e.split(`
13
- `),r;for(let s=n.length-1;s>=0&&!r;s--){let u=n[s].match(pn);u&&(r=u[1]||u[2]);}if(!r)return null;let l=/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r);if(!(fn.test(r)||l||r.startsWith("/"))){let s=t.split("/");s[s.length-1]=r,r=s.join("/");}let o=await(await fetch(r)).json();return new dn.SourceMapConsumer(o)},Fe=async(t,e)=>{let n=en(t);if(!n.length)return [];let r=n.slice(0,e);return (await Promise.all(r.map(async({file:i,line:o,col:s=0})=>{if(!i||!o)return null;try{let u=await fetch(i);if(u.ok){let c=await u.text(),y=await dt(i,c);if(y){let g=y.originalPositionFor({line:o,column:s});return {fileName:((g&&typeof g.source=="string"?g.source:void 0)||void 0||i).replace(/^file:\/\//,""),lineNumber:g?.line??o,columnNumber:g?.column??s}}}return {fileName:i.replace(/^file:\/\//,""),lineNumber:o,columnNumber:s}}catch{return {fileName:i.replace(/^file:\/\//,""),lineNumber:o,columnNumber:s}}}))).filter(i=>i!==null)},J=(t,e)=>{if(!t||me)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,me=true;let r=ke();Ne(null);let l=console.error,i=console.warn;console.error=()=>{},console.warn=()=>{};try{let u={DetermineComponentFrameRoot(){let p;try{if(e){let a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[]);}catch(f){p=f;}Reflect.construct(t,[],a);}else {try{a.call();}catch(f){p=f;}t.call(a.prototype);}}else {try{throw Error()}catch(f){p=f;}let a=t();a&&typeof a.catch=="function"&&a.catch(()=>{});}}catch(a){if(a&&p&&typeof a.stack=="string")return [a.stack,p.stack]}return [null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[y,g]=u.DetermineComponentFrameRoot();if(y&&g){let p=y.split(`
9
+ var ve={name:"cursor",open:t=>{if(!t)return;let e=new URL("cursor://anysphere.cursor-deeplink/prompt");e.searchParams.set("text",t),window.open(e.toString(),"_blank");}};var kt=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],Pt=t=>!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-"),Dt=t=>Array.isArray(t),Ht=(t,e=false)=>{let{composed:n,target:r}=t,l,i;if(r instanceof HTMLElement&&Pt(r)&&n){let s=t.composedPath()[0];s instanceof HTMLElement&&(l=s.tagName,i=s.role);}else r instanceof HTMLElement&&(l=r.tagName,i=r.role);return Dt(e)?!!(l&&e&&e.some(o=>typeof l=="string"&&o.toLowerCase()===l.toLowerCase()||o===i)):!!(l&&e&&e)},jt=t=>Ht(t,kt),Be=()=>{let t=l=>{jt(l)||l.code!==void 0&&x.setState(i=>{let o=new Map(i.keyPressTimestamps);return i.pressedKeys.has(l.key)||o.set(l.key,Date.now()),{...i,keyPressTimestamps:o,pressedKeys:new Set([l.key,...i.pressedKeys])}});},e=l=>{l.code!==void 0&&x.setState(i=>{let o=new Map(i.keyPressTimestamps);return o.delete(l.key),{...i,keyPressTimestamps:o,pressedKeys:new Set([...i.pressedKeys].filter(s=>s!==l.key))}});},n=()=>{x.setState(l=>({...l,keyPressTimestamps:new Map,pressedKeys:new Set}));},r=()=>{x.setState(l=>({...l,keyPressTimestamps:new Map,pressedKeys:new Set}));};return document.addEventListener("keydown",t),document.addEventListener("keyup",e),window.addEventListener("blur",n),window.addEventListener("contextmenu",r),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e),window.removeEventListener("blur",n),window.removeEventListener("contextmenu",r);}},_e=t=>{let{pressedKeys:e}=x.getState();return t.length===1?e.has(t.toLowerCase())||e.has(t.toUpperCase()):e.has(t)},We=(t,e,n)=>{let r=null,l=null,i=Date.now(),o=()=>{r!==null&&(clearTimeout(r),r=null),l!==null&&(l(),l=null);},s=(y,g)=>y.length===1?g.has(y.toLowerCase())||g.has(y.toUpperCase()):g.has(y),c=y=>Array.isArray(t)?t.every(g=>s(g,y)):s(t,y),u=()=>{let y=x.getState(),{pressedKeys:g}=y;if(!c(g)){r!==null&&(clearTimeout(r),r=null);return}let p=Date.now()-i,a=e-p;if(a<=0){n(),o();return}r!==null&&clearTimeout(r),r=setTimeout(()=>{n(),o();},a);};return l=x.subscribe(()=>{u();},y=>y.pressedKeys),u(),o};var Xe="0.3.33",ae=`bippy-${Xe}`,qe=Object.defineProperty,$t=Object.prototype.hasOwnProperty,Z=()=>{},Ye=t=>{try{Function.prototype.toString.call(t).indexOf("^_^")>-1&&setTimeout(()=>{throw new 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{}},Qe=(t=B())=>"getFiberRoots"in t,Ze=false,Ke,Se=(t=B())=>Ze?true:(typeof t.inject=="function"&&(Ke=t.inject.toString()),!!Ke?.includes("(injected)")),ie=new Set,K=new Set,Je=t=>{let e=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:ae,checkDCE:Ye,hasUnsupportedRendererAttached:false,inject(l){let i=++n;return e.set(i,l),K.add(l),r._instrumentationIsActive||(r._instrumentationIsActive=true,ie.forEach(o=>o())),i},on:Z,onCommitFiberRoot:Z,onCommitFiberUnmount:Z,onPostCommitFiberRoot:Z,renderers:e,supportsFiber:true,supportsFlight:true};try{qe(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(o){if(o&&typeof o=="object"){let s=r.renderers;r=o,s.size>0&&(s.forEach((c,u)=>{K.add(c),o.renderers.set(u,c);}),se(t));}}});let l=window.hasOwnProperty,i=!1;qe(window,"hasOwnProperty",{configurable:!0,value:function(...o){try{if(!i&&o[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,i=!0,-0}catch{}return l.apply(this,o)},writable:!0});}catch{se(t);}return r},se=t=>{t&&ie.add(t);try{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!e)return;if(!e._instrumentationSource){let n=Qe();if(e.checkDCE=Ye,e.supportsFiber=!0,e.supportsFlight=!0,e.hasUnsupportedRendererAttached=!1,e._instrumentationSource=ae,e._instrumentationIsActive=!1,n||(e.on=Z),e.renderers.size){e._instrumentationIsActive=!0,ie.forEach(l=>l());return}let r=e.inject;Se(e)&&!n&&(Ze=!0,e.inject({scheduleRefresh(){}})&&(e._instrumentationIsActive=!0)),e.inject=l=>{let i=r(l);return K.add(l),e._instrumentationIsActive=!0,ie.forEach(o=>o()),i};}(e.renderers.size||e._instrumentationIsActive||Se())&&t?.();}catch{}},et=()=>$t.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),B=t=>et()?(se(t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Je(t),tt=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),nt=()=>{try{tt()&&B();}catch{}},le=0,J=1;var ce=5;var ue=11,Ce=13,rt=14,de=15,be=16;var we=19;var fe=26,pe=27,Ee=28,Te=30;var Le=t=>{switch(t.tag){case ce:case fe:case pe:return true;default:return typeof t.type=="string"}},Me=t=>{switch(t.tag){case J:case ue:case le:case rt:case de:return true;default:return false}};function Re(t,e,n=false){return t&&e(t)instanceof Promise?Oe(t,e,n):Ae(t,e,n)}var Ae=(t,e,n=false)=>{if(!t)return null;if(e(t)===true)return t;let r=n?t.return:t.child;for(;r;){let l=Ae(r,e,n);if(l)return l;r=n?null:r.sibling;}return null},Oe=async(t,e,n=false)=>{if(!t)return null;if(await e(t)===true)return t;let r=n?t.return:t.child;for(;r;){let l=await Oe(r,e,n);if(l)return l;r=n?null:r.sibling;}return null};var X=t=>{let e=t;return typeof e=="function"?e:typeof e=="object"&&e?X(e.type||e.render):null},me=t=>{let e=t;if(typeof e=="string")return e;if(typeof e!="function"&&!(typeof e=="object"&&e))return null;let n=e.displayName||e.name||null;if(n)return n;let r=X(e);return r&&(r.displayName||r.name)||null};var xe=t=>B(()=>{let e=B();t.onActive?.(),e._instrumentationSource=t.name??ae;let n=e.onCommitFiberRoot;t.onCommitFiberRoot&&(e.onCommitFiberRoot=(i,o,s)=>{n&&n(i,o,s),t.onCommitFiberRoot?.(i,o,s);});let r=e.onCommitFiberUnmount;t.onCommitFiberUnmount&&(e.onCommitFiberUnmount=(i,o)=>{r&&r(i,o),t.onCommitFiberUnmount?.(i,o);});let l=e.onPostCommitFiberRoot;t.onPostCommitFiberRoot&&(e.onPostCommitFiberRoot=(i,o)=>{l&&l(i,o),t.onPostCommitFiberRoot?.(i,o);});}),Ie=t=>{let e=B();for(let n of e.renderers.values())try{let r=n.findFiberByHostInstance?.(t);if(r)return r}catch{}if(typeof t=="object"&&t!=null){if("_reactRootContainer"in t)return t._reactRootContainer?._internalRoot?.current?.child;for(let n in t)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return t[n]||null}return null},Ne=new Set;nt();var Xt=Object.create,ot=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,it=Object.getOwnPropertyNames,Qt=Object.getPrototypeOf,Zt=Object.prototype.hasOwnProperty,V=(t,e)=>function(){return e||(0, t[it(t)[0]])((e={exports:{}}).exports,e),e.exports},Jt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(var l=it(e),i=0,o=l.length,s;i<o;i++)s=l[i],!Zt.call(t,s)&&s!==n&&ot(t,s,{get:(c=>e[c]).bind(null,s),enumerable:!(r=Yt(e,s))||r.enumerable});return t},en=(t,e,n)=>(n=t!=null?Xt(Qt(t)):{},Jt(ot(n,"default",{value:t,enumerable:true}),t)),st=/^\s*at .*(\S+:\d+|\(native\))/m,tn=/^(eval@)?(\[native code\])?$/;function nn(t,e){return t.match(st)?rn(t,e):on(t,e)}function at(t){if(!t.includes(":"))return [t,void 0,void 0];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]}function lt(t,e){return e&&e.slice!=null?Array.isArray(e.slice)?t.slice(e.slice[0],e.slice[1]):t.slice(0,e.slice):t}function rn(t,e){return lt(t.split(`
10
+ `).filter(r=>!!r.match(st)),e).map(r=>{r.includes("(eval ")&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let l=r.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),i=l.match(/ (\(.+\)$)/);l=i?l.replace(i[0],""):l;let o=at(i?i[1]:l),s=i&&l||void 0,c=["eval","<anonymous>"].includes(o[0])?void 0:o[0];return {function:s,file:c,line:o[1]?+o[1]:void 0,col:o[2]?+o[2]:void 0,raw:r}})}function on(t,e){return lt(t.split(`
11
+ `).filter(r=>!r.match(tn)),e).map(r=>{if(r.includes(" > eval")&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!r.includes("@")&&!r.includes(":"))return {function:r};{let l=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,i=r.match(l),o=i&&i[1]?i[1]:void 0,s=at(r.replace(l,""));return {function:o,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:r}}})}var sn=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.js"(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(n){if(0<=n&&n<e.length)return e[n];throw new TypeError("Must be between 0 and 63: "+n)},t.decode=function(n){var r=65,l=90,i=97,o=122,s=48,c=57,u=43,y=47,g=26,p=52;return r<=n&&n<=l?n-r:i<=n&&n<=o?n-i+g:s<=n&&n<=c?n-s+p:n==u?62:n==y?63:-1};}}),ct=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(t){var e=sn(),n=5,r=1<<n,l=r-1,i=r;function o(c){return c<0?(-c<<1)+1:(c<<1)+0}function s(c){var u=(c&1)===1,y=c>>1;return u?-y:y}t.encode=function(u){var y="",g,p=o(u);do g=p&l,p>>>=n,p>0&&(g|=i),y+=e.encode(g);while(p>0);return y},t.decode=function(u,y,g){var p=u.length,a=0,f=0,m,d;do{if(y>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(d=e.decode(u.charCodeAt(y++)),d===-1)throw new Error("Invalid base64 digit: "+u.charAt(y-1));m=!!(d&i),d&=l,a=a+(d<<f),f+=n;}while(m);g.value=s(a),g.rest=y;};}}),te=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(t){function e(v,_,w){if(_ in v)return v[_];if(arguments.length===3)return w;throw new Error('"'+_+'" is a required argument.')}t.getArg=e;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function l(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}t.urlParse=l;function i(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}t.urlGenerate=i;var o=32;function s(v){var _=[];return function(w){for(var C=0;C<_.length;C++)if(_[C].input===w){var k=_[0];return _[0]=_[C],_[C]=k,_[0].result}var A=v(w);return _.unshift({input:w,result:A}),_.length>o&&_.pop(),A}}var c=s(function(_){var w=_,C=l(_);if(C){if(!C.path)return _;w=C.path;}for(var k=t.isAbsolute(w),A=[],P=0,I=0;;)if(P=I,I=w.indexOf("/",P),I===-1){A.push(w.slice(P));break}else for(A.push(w.slice(P,I));I<w.length&&w[I]==="/";)I++;for(var D,H=0,I=A.length-1;I>=0;I--)D=A[I],D==="."?A.splice(I,1):D===".."?H++:H>0&&(D===""?(A.splice(I+1,H),H=0):(A.splice(I,2),H--));return w=A.join("/"),w===""&&(w=k?"/":"."),C?(C.path=w,i(C)):w});t.normalize=c;function u(v,_){v===""&&(v="."),_===""&&(_=".");var w=l(_),C=l(v);if(C&&(v=C.path||"/"),w&&!w.scheme)return C&&(w.scheme=C.scheme),i(w);if(w||_.match(r))return _;if(C&&!C.host&&!C.path)return C.host=_,i(C);var k=_.charAt(0)==="/"?_:c(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=k,i(C)):k}t.join=u,t.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function y(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var w=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++w;}return Array(w+1).join("../")+_.substr(v.length+1)}t.relative=y;var g=function(){var v=Object.create(null);return !("__proto__"in v)}();function p(v){return v}function a(v){return m(v)?"$"+v:v}t.toSetString=g?p:a;function f(v){return m(v)?v.slice(1):v}t.fromSetString=g?p:f;function m(v){if(!v)return false;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return false;for(var w=_-10;w>=0;w--)if(v.charCodeAt(w)!==36)return false;return true}function d(v,_,w){var C=E(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||w)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:E(v.name,_.name)}t.compareByOriginalPositions=d;function h(v,_,w){var C;return C=v.originalLine-_.originalLine,C!==0||(C=v.originalColumn-_.originalColumn,C!==0||w)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:E(v.name,_.name)}t.compareByOriginalPositionsNoSource=h;function S(v,_,w){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||w)||(C=E(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:E(v.name,_.name)}t.compareByGeneratedPositionsDeflated=S;function b(v,_,w){var C=v.generatedColumn-_.generatedColumn;return C!==0||w||(C=E(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:E(v.name,_.name)}t.compareByGeneratedPositionsDeflatedNoLine=b;function E(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function T(v,_){var w=v.generatedLine-_.generatedLine;return w!==0||(w=v.generatedColumn-_.generatedColumn,w!==0)||(w=E(v.source,_.source),w!==0)||(w=v.originalLine-_.originalLine,w!==0)||(w=v.originalColumn-_.originalColumn,w!==0)?w:E(v.name,_.name)}t.compareByGeneratedPositionsInflated=T;function L(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=L;function M(v,_,w){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),w){var C=l(w);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var k=C.path.lastIndexOf("/");k>=0&&(C.path=C.path.substring(0,k+1));}_=u(i(C),_);}return c(_)}t.computeSourceURL=M;}}),ut=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(t){var e=te(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function l(){this._array=[],this._set=r?new Map:Object.create(null);}l.fromArray=function(o,s){for(var c=new l,u=0,y=o.length;u<y;u++)c.add(o[u],s);return c},l.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},l.prototype.add=function(o,s){var c=r?o:e.toSetString(o),u=r?this.has(o):n.call(this._set,c),y=this._array.length;(!u||s)&&this._array.push(o),u||(r?this._set.set(o,y):this._set[c]=y);},l.prototype.has=function(o){if(r)return this._set.has(o);var s=e.toSetString(o);return n.call(this._set,s)},l.prototype.indexOf=function(o){if(r){var s=this._set.get(o);if(s>=0)return s}else {var c=e.toSetString(o);if(n.call(this._set,c))return this._set[c]}throw new Error('"'+o+'" is not in the set.')},l.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},l.prototype.toArray=function(){return this._array.slice()},t.ArraySet=l;}}),an=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(t){var e=te();function n(l,i){var o=l.generatedLine,s=i.generatedLine,c=l.generatedColumn,u=i.generatedColumn;return s>o||s==o&&u>=c||e.compareByGeneratedPositionsInflated(l,i)<=0}function r(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}r.prototype.unsortedForEach=function(i,o){this._array.forEach(i,o);},r.prototype.add=function(i){n(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=false,this._array.push(i));},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=true),this._array},t.MappingList=r;}}),dt=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(t){var e=ct(),n=te(),r=ut().ArraySet,l=an().MappingList;function i(o){o||(o={}),this._file=n.getArg(o,"file",null),this._sourceRoot=n.getArg(o,"sourceRoot",null),this._skipValidation=n.getArg(o,"skipValidation",false),this._ignoreInvalidMapping=n.getArg(o,"ignoreInvalidMapping",false),this._sources=new r,this._names=new r,this._mappings=new l,this._sourcesContents=null;}i.prototype._version=3,i.fromSourceMap=function(s,c){var u=s.sourceRoot,y=new i(Object.assign(c||{},{file:s.file,sourceRoot:u}));return s.eachMapping(function(g){var p={generated:{line:g.generatedLine,column:g.generatedColumn}};g.source!=null&&(p.source=g.source,u!=null&&(p.source=n.relative(u,p.source)),p.original={line:g.originalLine,column:g.originalColumn},g.name!=null&&(p.name=g.name)),y.addMapping(p);}),s.sources.forEach(function(g){var p=g;u!==null&&(p=n.relative(u,g)),y._sources.has(p)||y._sources.add(p);var a=s.sourceContentFor(g);a!=null&&y.setSourceContent(g,a);}),y},i.prototype.addMapping=function(s){var c=n.getArg(s,"generated"),u=n.getArg(s,"original",null),y=n.getArg(s,"source",null),g=n.getArg(s,"name",null);!this._skipValidation&&this._validateMapping(c,u,y,g)===false||(y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:c.line,generatedColumn:c.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:y,name:g}));},i.prototype.setSourceContent=function(s,c){var u=s;this._sourceRoot!=null&&(u=n.relative(this._sourceRoot,u)),c!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(u)]=c):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},i.prototype.applySourceMap=function(s,c,u){var y=c;if(c==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=s.file;}var g=this._sourceRoot;g!=null&&(y=n.relative(g,y));var p=new r,a=new r;this._mappings.unsortedForEach(function(f){if(f.source===y&&f.originalLine!=null){var m=s.originalPositionFor({line:f.originalLine,column:f.originalColumn});m.source!=null&&(f.source=m.source,u!=null&&(f.source=n.join(u,f.source)),g!=null&&(f.source=n.relative(g,f.source)),f.originalLine=m.line,f.originalColumn=m.column,m.name!=null&&(f.name=m.name));}var d=f.source;d!=null&&!p.has(d)&&p.add(d);var h=f.name;h!=null&&!a.has(h)&&a.add(h);},this),this._sources=p,this._names=a,s.sources.forEach(function(f){var m=s.sourceContentFor(f);m!=null&&(u!=null&&(f=n.join(u,f)),g!=null&&(f=n.relative(g,f)),this.setSourceContent(f,m));},this);},i.prototype._validateMapping=function(s,c,u,y){if(c&&typeof c.line!="number"&&typeof c.column!="number"){var g="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(g),false;throw new Error(g)}if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!c&&!u&&!y)){if(s&&"line"in s&&"column"in s&&c&&"line"in c&&"column"in c&&s.line>0&&s.column>=0&&c.line>0&&c.column>=0&&u)return;var g="Invalid mapping: "+JSON.stringify({generated:s,source:u,original:c,name:y});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(g),false;throw new Error(g)}},i.prototype._serializeMappings=function(){for(var s=0,c=1,u=0,y=0,g=0,p=0,a="",f,m,d,h,S=this._mappings.toArray(),b=0,E=S.length;b<E;b++){if(m=S[b],f="",m.generatedLine!==c)for(s=0;m.generatedLine!==c;)f+=";",c++;else if(b>0){if(!n.compareByGeneratedPositionsInflated(m,S[b-1]))continue;f+=",";}f+=e.encode(m.generatedColumn-s),s=m.generatedColumn,m.source!=null&&(h=this._sources.indexOf(m.source),f+=e.encode(h-p),p=h,f+=e.encode(m.originalLine-1-y),y=m.originalLine-1,f+=e.encode(m.originalColumn-u),u=m.originalColumn,m.name!=null&&(d=this._names.indexOf(m.name),f+=e.encode(d-g),g=d)),a+=f;}return a},i.prototype._generateSourcesContent=function(s,c){return s.map(function(u){if(!this._sourcesContents)return null;c!=null&&(u=n.relative(c,u));var y=n.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},i.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=i;}}),ln=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.js"(t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2;function e(n,r,l,i,o,s){var c=Math.floor((r-n)/2)+n,u=o(l,i[c],true);return u===0?c:u>0?r-c>1?e(c,r,l,i,o,s):s==t.LEAST_UPPER_BOUND?r<i.length?r:-1:c:c-n>1?e(n,c,l,i,o,s):s==t.LEAST_UPPER_BOUND?c:n<0?-1:n}t.search=function(r,l,i,o){if(l.length===0)return -1;var s=e(-1,l.length,r,l,i,o||t.GREATEST_LOWER_BOUND);if(s<0)return -1;for(;s-1>=0&&i(l[s],l[s-1],true)===0;)--s;return s};}}),cn=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(t){function e(l){function i(c,u,y){var g=c[u];c[u]=c[y],c[y]=g;}function o(c,u){return Math.round(c+Math.random()*(u-c))}function s(c,u,y,g){if(y<g){var p=o(y,g),a=y-1;i(c,p,g);for(var f=c[g],m=y;m<g;m++)u(c[m],f,false)<=0&&(a+=1,i(c,a,m));i(c,a+1,m);var d=a+1;s(c,u,y,d-1),s(c,u,d+1,g);}}return s}function n(l){let i=e.toString();return new Function(`return ${i}`)()(l)}let r=new WeakMap;t.quickSort=function(l,i,o=0){let s=r.get(i);s===void 0&&(s=n(i),r.set(i,s)),s(l,i,o,l.length-1);};}}),un=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(t){var e=te(),n=ln(),r=ut().ArraySet,l=ct(),i=cn().quickSort;function o(p,a){var f=p;return typeof p=="string"&&(f=e.parseSourceMapInput(p)),f.sections!=null?new g(f,a):new s(f,a)}o.fromSourceMap=function(p,a){return s.fromSourceMap(p,a)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(a,f){var m=a.charAt(f);return m===";"||m===","},o.prototype._parseMappings=function(a,f){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(a,f,m){var d=f||null,h=m||o.GENERATED_ORDER,S;switch(h){case o.GENERATED_ORDER:S=this._generatedMappings;break;case o.ORIGINAL_ORDER:S=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var b=this.sourceRoot,E=a.bind(d),T=this._names,L=this._sources,M=this._sourceMapURL,v=0,_=S.length;v<_;v++){var w=S[v],C=w.source===null?null:L.at(w.source);C!==null&&(C=e.computeSourceURL(b,C,M)),E({source:C,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:T.at(w.name)});}},o.prototype.allGeneratedPositionsFor=function(a){var f=e.getArg(a,"line"),m={source:e.getArg(a,"source"),originalLine:f,originalColumn:e.getArg(a,"column",0)};if(m.source=this._findSourceIndex(m.source),m.source<0)return [];var d=[],h=this._findMapping(m,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(h>=0){var S=this._originalMappings[h];if(a.column===void 0)for(var b=S.originalLine;S&&S.originalLine===b;)d.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++h];else for(var E=S.originalColumn;S&&S.originalLine===f&&S.originalColumn==E;)d.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++h];}return d},t.SourceMapConsumer=o;function s(p,a){var f=p;typeof p=="string"&&(f=e.parseSourceMapInput(p));var m=e.getArg(f,"version"),d=e.getArg(f,"sources"),h=e.getArg(f,"names",[]),S=e.getArg(f,"sourceRoot",null),b=e.getArg(f,"sourcesContent",null),E=e.getArg(f,"mappings"),T=e.getArg(f,"file",null);if(m!=this._version)throw new Error("Unsupported version: "+m);S&&(S=e.normalize(S)),d=d.map(String).map(e.normalize).map(function(L){return S&&e.isAbsolute(S)&&e.isAbsolute(L)?e.relative(S,L):L}),this._names=r.fromArray(h.map(String),true),this._sources=r.fromArray(d,true),this._absoluteSources=this._sources.toArray().map(function(L){return e.computeSourceURL(S,L,a)}),this.sourceRoot=S,this.sourcesContent=b,this._mappings=E,this._sourceMapURL=a,this.file=T;}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(p){var a=p;if(this.sourceRoot!=null&&(a=e.relative(this.sourceRoot,a)),this._sources.has(a))return this._sources.indexOf(a);var f;for(f=0;f<this._absoluteSources.length;++f)if(this._absoluteSources[f]==p)return f;return -1},s.fromSourceMap=function(a,f){var m=Object.create(s.prototype),d=m._names=r.fromArray(a._names.toArray(),true),h=m._sources=r.fromArray(a._sources.toArray(),true);m.sourceRoot=a._sourceRoot,m.sourcesContent=a._generateSourcesContent(m._sources.toArray(),m.sourceRoot),m.file=a._file,m._sourceMapURL=f,m._absoluteSources=m._sources.toArray().map(function(_){return e.computeSourceURL(m.sourceRoot,_,f)});for(var S=a._mappings.toArray().slice(),b=m.__generatedMappings=[],E=m.__originalMappings=[],T=0,L=S.length;T<L;T++){var M=S[T],v=new c;v.generatedLine=M.generatedLine,v.generatedColumn=M.generatedColumn,M.source&&(v.source=h.indexOf(M.source),v.originalLine=M.originalLine,v.originalColumn=M.originalColumn,M.name&&(v.name=d.indexOf(M.name)),E.push(v)),b.push(v);}return i(m.__originalMappings,e.compareByOriginalPositions),m},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}let u=e.compareByGeneratedPositionsDeflatedNoLine;function y(p,a){let f=p.length,m=p.length-a;if(!(m<=1))if(m==2){let d=p[a],h=p[a+1];u(d,h)>0&&(p[a]=h,p[a+1]=d);}else if(m<20)for(let d=a;d<f;d++)for(let h=d;h>a;h--){let S=p[h-1],b=p[h];if(u(S,b)<=0)break;p[h-1]=b,p[h]=S;}else i(p,u,a);}s.prototype._parseMappings=function(a,f){var m=1,d=0,h=0,S=0,b=0,E=0,T=a.length,L=0,v={},_=[],w=[],C,A,P,I;let D=0;for(;L<T;)if(a.charAt(L)===";")m++,L++,d=0,y(w,D),D=w.length;else if(a.charAt(L)===",")L++;else {for(C=new c,C.generatedLine=m,P=L;P<T&&!this._charIsMappingSeparator(a,P);P++);for(a.slice(L,P),A=[];L<P;)l.decode(a,L,v),I=v.value,L=v.rest,A.push(I);if(A.length===2)throw new Error("Found a source, but no line and column");if(A.length===3)throw new Error("Found a source and line, but no column");if(C.generatedColumn=d+A[0],d=C.generatedColumn,A.length>1&&(C.source=b+A[1],b+=A[1],C.originalLine=h+A[2],h=C.originalLine,C.originalLine+=1,C.originalColumn=S+A[3],S=C.originalColumn,A.length>4&&(C.name=E+A[4],E+=A[4])),w.push(C),typeof C.originalLine=="number"){let q=C.source;for(;_.length<=q;)_.push(null);_[q]===null&&(_[q]=[]),_[q].push(C);}}y(w,D),this.__generatedMappings=w;for(var H=0;H<_.length;H++)_[H]!=null&&i(_[H],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(..._);},s.prototype._findMapping=function(a,f,m,d,h,S){if(a[m]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[m]);if(a[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return n.search(a,f,h,S)},s.prototype.computeColumnSpans=function(){for(var a=0;a<this._generatedMappings.length;++a){var f=this._generatedMappings[a];if(a+1<this._generatedMappings.length){var m=this._generatedMappings[a+1];if(f.generatedLine===m.generatedLine){f.lastGeneratedColumn=m.generatedColumn-1;continue}}f.lastGeneratedColumn=1/0;}},s.prototype.originalPositionFor=function(a){var f={generatedLine:e.getArg(a,"line"),generatedColumn:e.getArg(a,"column")},m=this._findMapping(f,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(a,"bias",o.GREATEST_LOWER_BOUND));if(m>=0){var d=this._generatedMappings[m];if(d.generatedLine===f.generatedLine){var h=e.getArg(d,"source",null);h!==null&&(h=this._sources.at(h),h=e.computeSourceURL(this.sourceRoot,h,this._sourceMapURL));var S=e.getArg(d,"name",null);return S!==null&&(S=this._names.at(S)),{source:h,line:e.getArg(d,"originalLine",null),column:e.getArg(d,"originalColumn",null),name:S}}}return {source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return a==null}):false},s.prototype.sourceContentFor=function(a,f){if(!this.sourcesContent)return null;var m=this._findSourceIndex(a);if(m>=0)return this.sourcesContent[m];var d=a;this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d));var h;if(this.sourceRoot!=null&&(h=e.urlParse(this.sourceRoot))){var S=d.replace(/^file:\/\//,"");if(h.scheme=="file"&&this._sources.has(S))return this.sourcesContent[this._sources.indexOf(S)];if((!h.path||h.path=="/")&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(f)return null;throw new Error('"'+d+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(a){var f=e.getArg(a,"source");if(f=this._findSourceIndex(f),f<0)return {line:null,column:null,lastColumn:null};var m={source:f,originalLine:e.getArg(a,"line"),originalColumn:e.getArg(a,"column")},d=this._findMapping(m,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(a,"bias",o.GREATEST_LOWER_BOUND));if(d>=0){var h=this._originalMappings[d];if(h.source===m.source)return {line:e.getArg(h,"generatedLine",null),column:e.getArg(h,"generatedColumn",null),lastColumn:e.getArg(h,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=s;function g(p,a){var f=p;typeof p=="string"&&(f=e.parseSourceMapInput(p));var m=e.getArg(f,"version"),d=e.getArg(f,"sections");if(m!=this._version)throw new Error("Unsupported version: "+m);this._sources=new r,this._names=new r;var h={line:-1,column:0};this._sections=d.map(function(S){if(S.url)throw new Error("Support for url field in sections not implemented.");var b=e.getArg(S,"offset"),E=e.getArg(b,"line"),T=e.getArg(b,"column");if(E<h.line||E===h.line&&T<h.column)throw new Error("Section offsets must be ordered and non-overlapping.");return h=b,{generatedOffset:{generatedLine:E+1,generatedColumn:T+1},consumer:new o(e.getArg(S,"map"),a)}});}g.prototype=Object.create(o.prototype),g.prototype.constructor=o,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var p=[],a=0;a<this._sections.length;a++)for(var f=0;f<this._sections[a].consumer.sources.length;f++)p.push(this._sections[a].consumer.sources[f]);return p}}),g.prototype.originalPositionFor=function(a){var f={generatedLine:e.getArg(a,"line"),generatedColumn:e.getArg(a,"column")},m=n.search(f,this._sections,function(h,S){var b=h.generatedLine-S.generatedOffset.generatedLine;return b||h.generatedColumn-S.generatedOffset.generatedColumn}),d=this._sections[m];return d?d.consumer.originalPositionFor({line:f.generatedLine-(d.generatedOffset.generatedLine-1),column:f.generatedColumn-(d.generatedOffset.generatedLine===f.generatedLine?d.generatedOffset.generatedColumn-1:0),bias:a.bias}):{source:null,line:null,column:null,name:null}},g.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(a){return a.consumer.hasContentsOfAllSources()})},g.prototype.sourceContentFor=function(a,f){for(var m=0;m<this._sections.length;m++){var d=this._sections[m],h=d.consumer.sourceContentFor(a,true);if(h||h==="")return h}if(f)return null;throw new Error('"'+a+'" is not in the SourceMap.')},g.prototype.generatedPositionFor=function(a){for(var f=0;f<this._sections.length;f++){var m=this._sections[f];if(m.consumer._findSourceIndex(e.getArg(a,"source"))!==-1){var d=m.consumer.generatedPositionFor(a);if(d){var h={line:d.line+(m.generatedOffset.generatedLine-1),column:d.column+(m.generatedOffset.generatedLine===d.line?m.generatedOffset.generatedColumn-1:0)};return h}}}return {line:null,column:null}},g.prototype._parseMappings=function(a,f){this.__generatedMappings=[],this.__originalMappings=[];for(var m=0;m<this._sections.length;m++)for(var d=this._sections[m],h=d.consumer._generatedMappings,S=0;S<h.length;S++){var b=h[S],E=d.consumer._sources.at(b.source);E!==null&&(E=e.computeSourceURL(d.consumer.sourceRoot,E,this._sourceMapURL)),this._sources.add(E),E=this._sources.indexOf(E);var T=null;b.name&&(T=d.consumer._names.at(b.name),this._names.add(T),T=this._names.indexOf(T));var L={source:E,generatedLine:b.generatedLine+(d.generatedOffset.generatedLine-1),generatedColumn:b.generatedColumn+(d.generatedOffset.generatedLine===b.generatedLine?d.generatedOffset.generatedColumn-1:0),originalLine:b.originalLine,originalColumn:b.originalColumn,name:T};this.__generatedMappings.push(L),typeof L.originalLine=="number"&&this.__originalMappings.push(L);}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions);},t.IndexedSourceMapConsumer=g;}}),dn=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(t){var e=dt().SourceMapGenerator,n=te(),r=/(\r?\n)/,l=10,i="$$$isSourceNode$$$";function o(s,c,u,y,g){this.children=[],this.sourceContents={},this.line=s??null,this.column=c??null,this.source=u??null,this.name=g??null,this[i]=true,y!=null&&this.add(y);}o.fromStringWithSourceMap=function(c,u,y){var g=new o,p=c.split(r),a=0,f=function(){var b=T(),E=T()||"";return b+E;function T(){return a<p.length?p[a++]:void 0}},m=1,d=0,h=null;return u.eachMapping(function(b){if(h!==null)if(m<b.generatedLine)S(h,f()),m++,d=0;else {var E=p[a]||"",T=E.substr(0,b.generatedColumn-d);p[a]=E.substr(b.generatedColumn-d),d=b.generatedColumn,S(h,T),h=b;return}for(;m<b.generatedLine;)g.add(f()),m++;if(d<b.generatedColumn){var E=p[a]||"";g.add(E.substr(0,b.generatedColumn)),p[a]=E.substr(b.generatedColumn),d=b.generatedColumn;}h=b;},this),a<p.length&&(h&&S(h,f()),g.add(p.splice(a).join(""))),u.sources.forEach(function(b){var E=u.sourceContentFor(b);E!=null&&(y!=null&&(b=n.join(y,b)),g.setSourceContent(b,E));}),g;function S(b,E){if(b===null||b.source===void 0)g.add(E);else {var T=y?n.join(y,b.source):b.source;g.add(new o(b.originalLine,b.originalColumn,T,E,b.name));}}},o.prototype.add=function(c){if(Array.isArray(c))c.forEach(function(u){this.add(u);},this);else if(c[i]||typeof c=="string")c&&this.children.push(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this},o.prototype.prepend=function(c){if(Array.isArray(c))for(var u=c.length-1;u>=0;u--)this.prepend(c[u]);else if(c[i]||typeof c=="string")this.children.unshift(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this},o.prototype.walk=function(c){for(var u,y=0,g=this.children.length;y<g;y++)u=this.children[y],u[i]?u.walk(c):u!==""&&c(u,{source:this.source,line:this.line,column:this.column,name:this.name});},o.prototype.join=function(c){var u,y,g=this.children.length;if(g>0){for(u=[],y=0;y<g-1;y++)u.push(this.children[y]),u.push(c);u.push(this.children[y]),this.children=u;}return this},o.prototype.replaceRight=function(c,u){var y=this.children[this.children.length-1];return y[i]?y.replaceRight(c,u):typeof y=="string"?this.children[this.children.length-1]=y.replace(c,u):this.children.push("".replace(c,u)),this},o.prototype.setSourceContent=function(c,u){this.sourceContents[n.toSetString(c)]=u;},o.prototype.walkSourceContents=function(c){for(var u=0,y=this.children.length;u<y;u++)this.children[u][i]&&this.children[u].walkSourceContents(c);for(var g=Object.keys(this.sourceContents),u=0,y=g.length;u<y;u++)c(n.fromSetString(g[u]),this.sourceContents[g[u]]);},o.prototype.toString=function(){var c="";return this.walk(function(u){c+=u;}),c},o.prototype.toStringWithSourceMap=function(c){var u={code:"",line:1,column:0},y=new e(c),g=false,p=null,a=null,f=null,m=null;return this.walk(function(d,h){u.code+=d,h.source!==null&&h.line!==null&&h.column!==null?((p!==h.source||a!==h.line||f!==h.column||m!==h.name)&&y.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:u.line,column:u.column},name:h.name}),p=h.source,a=h.line,f=h.column,m=h.name,g=true):g&&(y.addMapping({generated:{line:u.line,column:u.column}}),p=null,g=false);for(var S=0,b=d.length;S<b;S++)d.charCodeAt(S)===l?(u.line++,u.column=0,S+1===b?(p=null,g=false):g&&y.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:u.line,column:u.column},name:h.name})):u.column++;}),this.walkSourceContents(function(d,h){y.setSourceContent(d,h);}),{code:u.code,map:y}},t.SourceNode=o;}}),fn=V({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(t){t.SourceMapGenerator=dt().SourceMapGenerator,t.SourceMapConsumer=un().SourceMapConsumer,t.SourceNode=dn().SourceNode;}}),pn=en(fn()),he=false,W=t=>`
12
+ in ${t}`,mn=/^data:application\/json[^,]+base64,/,hn=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,ft=async(t,e)=>{let n=e.split(`
13
+ `),r;for(let s=n.length-1;s>=0&&!r;s--){let c=n[s].match(hn);c&&(r=c[1]||c[2]);}if(!r)return null;let l=/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r);if(!(mn.test(r)||l||r.startsWith("/"))){let s=t.split("/");s[s.length-1]=r,r=s.join("/");}let o=await(await fetch(r)).json();return new pn.SourceMapConsumer(o)},ke=async(t,e)=>{let n=nn(t);if(!n.length)return [];let r=n.slice(0,e);return (await Promise.all(r.map(async({col:i=0,file:o,line:s})=>{if(!o||!s)return null;try{let c=await fetch(o);if(c.ok){let u=await c.text(),y=await ft(o,u);if(y){let g=y.originalPositionFor({column:i,line:s}),p=(g&&typeof g.source=="string"?g.source:void 0)||void 0;return {columnNumber:g?.column??i,fileName:(p||o).replace(/^file:\/\//,""),lineNumber:g?.line??s}}}return {columnNumber:i,fileName:o.replace(/^file:\/\//,""),lineNumber:s}}catch{return {columnNumber:i,fileName:o.replace(/^file:\/\//,""),lineNumber:s}}}))).filter(i=>i!==null)},ee=(t,e)=>{if(!t||he)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,he=true;let r=Pe();Fe(null);let l=console.error,i=console.warn;console.error=()=>{},console.warn=()=>{};try{let c={DetermineComponentFrameRoot(){let p;try{if(e){let a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[]);}catch(f){p=f;}Reflect.construct(t,[],a);}else {try{a.call();}catch(f){p=f;}t.call(a.prototype);}}else {try{throw Error()}catch(f){p=f;}let a=t();a&&typeof a.catch=="function"&&a.catch(()=>{});}}catch(a){if(a&&p&&typeof a.stack=="string")return [a.stack,p.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[y,g]=c.DetermineComponentFrameRoot();if(y&&g){let p=y.split(`
14
14
  `),a=g.split(`
15
15
  `),f=0,m=0;for(;f<p.length&&!p[f].includes("DetermineComponentFrameRoot");)f++;for(;m<a.length&&!a[m].includes("DetermineComponentFrameRoot");)m++;if(f===p.length||m===a.length)for(f=p.length-1,m=a.length-1;f>=1&&m>=0&&p[f]!==a[m];)m--;for(;f>=1&&m>=0;f--,m--)if(p[f]!==a[m]){if(f!==1||m!==1)do if(f--,m--,m<0||p[f]!==a[m]){let d=`
16
- ${p[f].replace(" at new "," at ")}`,h=pe(t);return h&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",h)),d}while(f>=1&&m>=0);break}}}finally{me=false,Error.prepareStackTrace=n,Ne(r),console.error=l,console.warn=i;}let o=t?pe(t):"";return o?W(o):""},ke=()=>{let t=B();for(let e of [...Array.from(q),...Array.from(t.renderers.values())]){let n=e.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},Ne=t=>{for(let e of q){let n=e.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=t:n.current=t);}},ft=t=>{let e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=t.stack;if(!n)return "";Error.prepareStackTrace=e,n.startsWith(`Error: react-stack-top-frame
16
+ ${p[f].replace(" at new "," at ")}`,h=me(t);return h&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",h)),d}while(f>=1&&m>=0);break}}}finally{he=false,Error.prepareStackTrace=n,Fe(r),console.error=l,console.warn=i;}let o=t?me(t):"";return o?W(o):""},Pe=()=>{let t=B();for(let e of [...Array.from(K),...Array.from(t.renderers.values())]){let n=e.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},Fe=t=>{for(let e of K){let n=e.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=t:n.current=t);}},pt=t=>{let e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=t.stack;if(!n)return "";Error.prepareStackTrace=e,n.startsWith(`Error: react-stack-top-frame
17
17
  `)&&(n=n.slice(29));let r=n.indexOf(`
18
18
  `);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(`
19
- `,r)),r!==-1)n=n.slice(0,r);else return "";return n},pt=t=>{let e=t._debugStack;if(e instanceof Error&&typeof e?.stack=="string"){let i=ft(e);if(i)return i}if(!ke())return null;let r=Te(t)?K(Re(t,i=>{if(Le(i))return true},true)?.type):K(t.type);return !r||me?null:J(r,t.tag===Z)},Pe=async t=>{let e=t._debugSource;if(e){let{fileName:n,lineNumber:r}=e;return {fileName:n,lineNumber:r,columnNumber:"columnNumber"in e&&typeof e.columnNumber=="number"?e.columnNumber:0}}try{let n=pt(t);if(n)return (await Fe(n,1))[0]||null}catch{}return null},mt=(t,e)=>{switch(t.tag){case de:case fe:case le:return W(t.type);case Ce:return W("Lazy");case Se:return t.child!==e&&e!==null?W("Suspense Fallback"):W("Suspense");case be:return W("SuspenseList");case ae:case ue:return J(t.type,false);case ce:return J(t.type.render,false);case Z:return J(t.type,true);case we:return W("Activity");case Ee:return W("ViewTransition");default:return ""}},ht=(t,e,n)=>{let r=`
20
- in ${t}`;return e&&(r+=` (at ${e})`),r},De=t=>{try{let e="",n=t,r=null;do{e+=mt(n,r);let l=n._debugInfo;if(l&&Array.isArray(l))for(let i=l.length-1;i>=0;i--){let o=l[i];typeof o.name=="string"&&(e+=ht(o.name,o.env,o.debugLocation));}r=n,n=n.return;}while(n);return e}catch(e){return e instanceof Error?`
19
+ `,r)),r!==-1)n=n.slice(0,r);else return "";return n},mt=t=>{let e=t._debugStack;if(e instanceof Error&&typeof e?.stack=="string"){let i=pt(e);if(i)return i}if(!Pe())return null;let r=Le(t)?X(Re(t,i=>{if(Me(i))return true},true)?.type):X(t.type);return !r||he?null:ee(r,t.tag===J)},De=async t=>{let e=t._debugSource;if(e){let{fileName:n,lineNumber:r}=e;return {columnNumber:"columnNumber"in e&&typeof e.columnNumber=="number"?e.columnNumber:0,fileName:n,lineNumber:r}}try{let n=mt(t);if(n)return (await ke(n,1))[0]||null}catch{}return null},ht=(t,e)=>{switch(t.tag){case Ee:return W("Activity");case J:return ee(t.type,true);case ue:return ee(t.type.render,false);case le:case de:return ee(t.type,false);case ce:case fe:case pe:return W(t.type);case be:return W("Lazy");case Ce:return t.child!==e&&e!==null?W("Suspense Fallback"):W("Suspense");case we:return W("SuspenseList");case Te:return W("ViewTransition");default:return ""}},gt=(t,e,n)=>{let r=`
20
+ in ${t}`;return e&&(r+=` (at ${e})`),r},He=t=>{try{let e="",n=t,r=null;do{e+=ht(n,r);let l=n._debugInfo;if(l&&Array.isArray(l))for(let i=l.length-1;i>=0;i--){let o=l[i];typeof o.name=="string"&&(e+=gt(o.name,o.env,o.debugLocation));}r=n,n=n.return;}while(n);return e}catch(e){return e instanceof Error?`
21
21
  Error generating stack: ${e.message}
22
- ${e.stack}`:""}},gt=t=>t.length?t[0]===t[0].toUpperCase():false,He=async t=>{let e=/\n\s+(?:in|at)\s+([^\s(]+)(?:\s+\((?:at\s+)?([^)]+)\))?/g,n=[],r;for(r=e.exec(t);r!==null;){let l=r[1],i=r[2];if(!gt(l)){r=e.exec(t),n.push({name:l,source:void 0});continue}let o;if(i&&i!=="Server")try{let s=` at ${l} (${i})`,u=await Fe(s,1);u.length>0&&(o=u[0]);}catch{}n.push({name:l,source:o||void 0}),r=e.exec(t);}return n};var mn=Ie;Oe({onCommitFiberRoot(t,e){mn.add(e);}});var yt=async t=>{let e=xe(t);if(!e)return null;let n=De(e),l=(await He(n)).map(i=>({componentName:i.name,fileName:i.source?.fileName}));if(l.length>0&&e){let i=await Pe(e);if(i){let o=e.type,s=o?.displayName??o?.name??l[0].componentName;l[0].displayName=s,l[0].source=`${i.fileName}:${i.lineNumber}:${i.columnNumber}`;}}return l},vt=t=>t.filter(e=>e.fileName&&!e.fileName.includes("node_modules")&&e.componentName.length>1&&!e.fileName.startsWith("_")),hn=t=>{if(t.length===0)return "";if(t.length===1){let r=t[0].lastIndexOf("/");return r>0?t[0].substring(0,r+1):""}let e=t[0];for(let r=1;r<t.length;r++){let l=t[r],i=0;for(;i<e.length&&i<l.length&&e[i]===l[i];)i++;e=e.substring(0,i);}let n=e.lastIndexOf("/");return n>0?e.substring(0,n+1):""},_t=t=>{let e=t.map(r=>r.fileName).filter(r=>!!r),n=hn(e);return t.map((r,l)=>{let i=r.fileName;i&&n&&(i=i.startsWith(n)?i.substring(n.length):i);let s=`${r.displayName||r.componentName}${i?` (${i})`:""}`;return l===0&&r.source&&(s+=`
23
- ${r.source}`),s}).join(`
24
- `)},St=t=>{let e=new Set(["article","aside","footer","form","header","main","nav","section"]),n=d=>{let h=d.tagName.toLowerCase();if(e.has(h)||d.id)return true;if(d.className&&typeof d.className=="string"){let S=d.className.trim();if(S&&S.length>0)return true}return Array.from(d.attributes).some(S=>S.name.startsWith("data-"))},r=(d,h=10)=>{let S=[],b=d.parentElement,E=0;for(;b&&E<h&&b.tagName!=="BODY"&&!(n(b)&&(S.push(b),S.length>=3));)b=b.parentElement,E++;return S.reverse()},l=d=>{let h=[],S=d,b=0,E=5;for(;S&&b<E&&S.tagName!=="BODY";){let T=S.tagName.toLowerCase();if(S.id){T+=`#${S.id}`,h.unshift(T);break}else if(S.className&&typeof S.className=="string"&&S.className.trim()){let L=S.className.trim().split(/\s+/).slice(0,2);T+=`.${L.join(".")}`;}if(!S.id&&(!S.className||!S.className.trim())&&S.parentElement){let L=Array.from(S.parentElement.children),R=L.indexOf(S);R>=0&&L.length>1&&(T+=`:nth-child(${R+1})`);}h.unshift(T),S=S.parentElement,b++;}return h.join(" > ")},i=(d,h=false)=>{let S=d.tagName.toLowerCase(),b=[];if(d.id&&b.push(`id="${d.id}"`),d.className&&typeof d.className=="string"){let R=d.className.trim().split(/\s+/);if(R.length>0&&R[0]){let _=(h?R.slice(0,3):R).join(" ");_.length>30&&(_=_.substring(0,30)+"..."),b.push(`class="${_}"`);}}let E=Array.from(d.attributes).filter(R=>R.name.startsWith("data-")),T=h?E.slice(0,1):E;for(let R of T){let v=R.value;v.length>20&&(v=v.substring(0,20)+"..."),b.push(`${R.name}="${v}"`);}let L=d.getAttribute("aria-label");if(L&&!h){let R=L;R.length>20&&(R=R.substring(0,20)+"..."),b.push(`aria-label="${R}"`);}return b.length>0?`<${S} ${b.join(" ")}>`:`<${S}>`},o=d=>`</${d.tagName.toLowerCase()}>`,s=d=>{let h=d.textContent||"";h=h.trim().replace(/\s+/g," ");let S=60;return h.length>S&&(h=h.substring(0,S)+"..."),h},u=d=>{if(d.id)return `#${d.id}`;if(d.className&&typeof d.className=="string"){let h=d.className.trim().split(/\s+/);if(h.length>0&&h[0])return `.${h[0]}`}return null},c=[];c.push(`Path: ${l(t)}`),c.push("");let y=r(t);for(let d=0;d<y.length;d++){let h=" ".repeat(d);c.push(h+i(y[d],true));}let g=t.parentElement,p=-1;if(g){let d=Array.from(g.children);if(p=d.indexOf(t),p>0){let h=d[p-1];if(u(h)&&p<=2){let b=" ".repeat(y.length);c.push(`${b} ${i(h,true)}`),c.push(`${b} </${h.tagName.toLowerCase()}>`);}else if(p>0){let b=" ".repeat(y.length);c.push(`${b} ... (${p} element${p===1?"":"s"})`);}}}let a=" ".repeat(y.length);c.push(a+" <!-- SELECTED -->");let f=s(t),m=t.children.length;if(f&&m===0&&f.length<40?c.push(`${a} ${i(t)}${f}${o(t)}`):(c.push(a+" "+i(t)),f&&c.push(`${a} ${f}`),m>0&&c.push(`${a} ... (${m} element${m===1?"":"s"})`),c.push(a+" "+o(t))),g&&p>=0){let d=Array.from(g.children),h=d.length-p-1;if(h>0){let S=d[p+1];u(S)&&h<=2?(c.push(`${a} ${i(S,true)}`),c.push(`${a} </${S.tagName.toLowerCase()}>`)):c.push(`${a} ... (${h} element${h===1?"":"s"})`);}}for(let d=y.length-1;d>=0;d--){let h=" ".repeat(d);c.push(h+o(y[d]));}return c.join(`
25
- `)};var he=(t,e,n)=>t+(e-t)*n;var gn=({borderRadius:t,height:e,transform:n,width:r,x:l,y:i})=>{let o=document.createElement("div");return o.style.position="fixed",o.style.top=`${i}px`,o.style.left=`${l}px`,o.style.width=`${r}px`,o.style.height=`${e}px`,o.style.borderRadius=t,o.style.transform=n,o.style.pointerEvents="none",o.style.border="1px solid rgb(210, 57, 192)",o.style.backgroundColor="rgba(210, 57, 192, 0.2)",o.style.zIndex="2147483646",o.style.boxSizing="border-box",o.style.display="none",o},yn=(t,{borderRadius:e,height:n,transform:r,width:l,x:i,y:o})=>{let s=parseFloat(t.style.top)||0,u=parseFloat(t.style.left)||0,c=parseFloat(t.style.width)||0,y=parseFloat(t.style.height)||0,g=`${he(s,o,.95)}px`,p=`${he(u,i,.95)}px`,a=`${he(c,l,.95)}px`,f=`${he(y,n,.95)}px`;t.style.top!==g&&(t.style.top=g),t.style.left!==p&&(t.style.left=p),t.style.width!==a&&(t.style.width=a),t.style.height!==f&&(t.style.height=f),t.style.borderRadius!==e&&(t.style.borderRadius=e),t.style.transform!==r&&(t.style.transform=r);},Ct=t=>{let e=gn({borderRadius:"0px",height:0,transform:"none",width:0,x:-1e3,y:-1e3});t.appendChild(e);let n=false;return {hide:()=>{n=false,e.style.display="none";},isVisible:()=>n,show:()=>{n=true,e.style.display="block";},update:r=>{yn(e,r);}}},bt=(t,e)=>{let n=document.createElement("div");n.style.position="fixed",n.style.top=`${e.y}px`,n.style.left=`${e.x}px`,n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,n.style.borderRadius=e.borderRadius,n.style.transform=e.transform,n.style.pointerEvents="none",n.style.border="1px solid rgb(210, 57, 192)",n.style.backgroundColor="rgba(210, 57, 192, 0.2)",n.style.zIndex="2147483646",n.style.boxSizing="border-box",n.style.transition="opacity 0.3s ease-out",n.style.opacity="1",t.appendChild(n),requestAnimationFrame(()=>{n.style.opacity="0";}),setTimeout(()=>{n.remove();},300);},vn=()=>{let t=document.createElement("span");return t.style.display="inline-block",t.style.width="8px",t.style.height="8px",t.style.border="1.5px solid rgb(210, 57, 192)",t.style.borderTopColor="transparent",t.style.borderRadius="50%",t.style.marginRight="4px",t.style.verticalAlign="middle",t.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:600,easing:"linear",iterations:1/0}),t},te=null,wt=()=>{let t=document.createElement("div");return t.style.position="fixed",t.style.top="calc(8px + env(safe-area-inset-top))",t.style.padding="2px 6px",t.style.backgroundColor="#fde7f7",t.style.color="#b21c8e",t.style.border="1px solid #f7c5ec",t.style.borderRadius="4px",t.style.fontSize="11px",t.style.fontWeight="500",t.style.fontFamily="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",t.style.zIndex="2147483647",t.style.pointerEvents="none",t.style.opacity="0",t.style.transition="opacity 0.2s ease-in-out",t.style.display="flex",t.style.alignItems="center",t.style.maxWidth="calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)))",t.style.overflow="hidden",t.style.textOverflow="ellipsis",t.style.whiteSpace="nowrap",t},Et=(t,e,n,r)=>{let l=te,i=false;if(l||(l=wt(),t.appendChild(l),te=l,i=true,je=false),!je){let b=l.querySelector("span");if(b){let E=document.createElement("span");E.textContent=r?`<${r}>`:"<element>",E.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",E.style.fontVariantNumeric="tabular-nums",b.replaceChildren(E);}else {let E=document.createElement("span"),T=document.createElement("span");T.textContent=r?`<${r}>`:"<element>",T.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",T.style.fontVariantNumeric="tabular-nums",E.appendChild(T),l.appendChild(E);}}let o=l.getBoundingClientRect(),s=window.innerWidth,u=window.innerHeight,c=Math.round(e),y=Math.round(n)-o.height-6,g=4,p=8,a=8,f=s-o.width-8,m=u-o.height-8,d=c<p,h=y<a,S=d||h;c=Math.max(p,Math.min(c,f)),y=Math.max(a,Math.min(y,m)),S&&(c+=g,y+=g),l.style.left=`${c}px`,l.style.top=`${y}px`,l.style.right="auto",i?requestAnimationFrame(()=>{l.style.opacity="1";}):l.style.opacity!=="1"&&(l.style.opacity="1");},je=false,ge=new Set,Tt=(t,e,n)=>{let r=wt();r.style.zIndex="2147483648",t.appendChild(r),ge.add(r);let l=()=>{if(e===void 0||n===void 0)return;let s=r.getBoundingClientRect(),u=window.innerWidth,c=window.innerHeight,y=Math.round(e),g=Math.round(n)-s.height-6,p=4,a=8,f=8,m=u-s.width-8,d=c-s.height-8,h=y<a,S=g<f,b=h||S;y=Math.max(a,Math.min(y,m)),g=Math.max(f,Math.min(g,d)),b&&(y+=p,g+=p),r.style.left=`${y}px`,r.style.top=`${g}px`,r.style.right="auto";},i=vn(),o=document.createElement("span");return o.textContent="Grabbing\u2026",r.appendChild(i),r.appendChild(o),l(),requestAnimationFrame(()=>{r.style.opacity="1";}),s=>{r.textContent="";let u=document.createElement("span");u.textContent="\u2713",u.style.display="inline-block",u.style.marginRight="4px",u.style.fontWeight="600";let c=document.createElement("span"),y=document.createElement("span");y.textContent=s?`<${s}>`:"<element>",y.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",y.style.fontVariantNumeric="tabular-nums",c.appendChild(document.createTextNode("Grabbed ")),c.appendChild(y),r.appendChild(u),r.appendChild(c),requestAnimationFrame(()=>{l();}),setTimeout(()=>{r.style.opacity="0",setTimeout(()=>{r.remove(),ge.delete(r);},200);},1500);}},X=()=>{te&&(te.remove(),te=null),je=false;},$e=()=>{for(let t of ge)t.remove();ge.clear();},V=null,_n=()=>{let t=document.createElement("div");t.style.position="fixed",t.style.zIndex="2147483647",t.style.pointerEvents="none",t.style.opacity="0",t.style.transition="opacity 0.1s ease-in-out";let e=document.createElement("div");e.style.width="32px",e.style.height="2px",e.style.backgroundColor="rgba(178, 28, 142, 0.2)",e.style.borderRadius="1px",e.style.overflow="hidden",e.style.position="relative";let n=document.createElement("div");return n.style.width="0%",n.style.height="100%",n.style.backgroundColor="#b21c8e",n.style.borderRadius="1px",n.style.transition="width 0.05s linear",n.setAttribute("data-progress-fill","true"),e.appendChild(n),t.appendChild(e),t},Ge=(t,e,n,r)=>{V||(V=_n(),t.appendChild(V),requestAnimationFrame(()=>{V&&(V.style.opacity="1");}));let l=V,i=l.getBoundingClientRect(),o=window.innerWidth,s=window.innerHeight,u=14,c=8,y=n-i.width/2,g=r+u;g+i.height+c>s&&(g=r-i.height-u),g=Math.max(c,Math.min(g,s-i.height-c)),y=Math.max(c,Math.min(y,o-i.width-c)),l.style.top=`${g}px`,l.style.left=`${y}px`;let p=l.querySelector("[data-progress-fill]");if(p){let a=Math.min(100,Math.max(0,e*100));p.style.width=`${a}%`;}},Lt=()=>{V&&(V.style.opacity="0",setTimeout(()=>{V&&(V.remove(),V=null);},100));};var Sn=typeof window<"u"&&window.navigator.clipboard&&window.isSecureContext,Ue=async t=>{if(Sn)try{return await navigator.clipboard.writeText(t),!0}catch{}let e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="fixed",e.style.top="-9999px",e.style.opacity="0",e.style.pointerEvents="none";let n=document.body||document.documentElement;n.appendChild(e),e.select(),e.setSelectionRange(0,e.value.length);let r=false;try{r=document.execCommand("copy");}catch{r=false;}finally{n.removeChild(e);}return r};var Rt=(t,e=window.getComputedStyle(t))=>e.display!=="none"&&e.visibility!=="hidden"&&e.opacity!=="0";var Y="data-react-grab",Mt=()=>{let t=document.querySelector(`[${Y}]`);if(t){let i=t.shadowRoot?.querySelector(`[${Y}]`);if(i instanceof HTMLDivElement&&t.shadowRoot)return i}let e=document.createElement("div");e.setAttribute(Y,"true"),e.style.zIndex="2147483646",e.style.position="fixed",e.style.top="0",e.style.left="0";let n=e.attachShadow({mode:"open"}),r=document.createElement("div");return r.setAttribute(Y,"true"),n.appendChild(r),(document.body??document.documentElement).appendChild(e),r};var At=t=>{let e=new Map,n=0,r,l=g=>{let p=r,a=typeof g=="function"?g(p):g,f={...p,...a};r=f;for(let m of e.values())if(m.type==="selected"){let d=m.selector(f),h=m.prevSelectedValue;Object.is(h,d)||(m.prevSelectedValue=d,m.listener(d,h));}else m.listener(f,p);return r},i=()=>r,o=t(l,i);r=o;let s=(g,p)=>{let a=String(n++),m={listener:(d,h)=>g(d,h),prevSelectedValue:p(r),selector:p,type:"selected"};return e.set(a,m),()=>{e.delete(a);}},u=g=>{let p=String(n++),a={listener:g,type:"full"};return e.set(p,a),()=>{e.delete(p);}};function c(g,p){return p?s(g,p):u(g)}return {getInitialState(){return o},getState:i,setState:l,subscribe:c}};var I=At(()=>({keyPressTimestamps:new Map,mouseX:-1e3,mouseY:-1e3,overlayMode:"hidden",pressedKeys:new Set})),Cn=(t={})=>{if(t.enabled===false)return;let e={adapter:void 0,enabled:true,hotkey:["Meta","C"],keyHoldDuration:500,...t},n=Mt(),r=Ct(n),l=null,i=null,o=false,s=null,u=null,c=()=>{if(Array.isArray(e.hotkey)){for(let M of e.hotkey)if(!ve(M))return false;return true}return ve(e.hotkey)},y=()=>{if(u===null)return;let M=Date.now()-u,F=Math.min(1,M/e.keyHoldDuration),{mouseX:j,mouseY:N}=I.getState();Ge(n,F,j,N),F<1&&(s=requestAnimationFrame(y));},g=()=>{if(s!==null)return;u=Date.now();let{mouseX:M,mouseY:F}=I.getState();Ge(n,0,M,F),s=requestAnimationFrame(y);},p=()=>{s!==null&&(cancelAnimationFrame(s),s=null),u=null,Lt();},a=null,f=M=>{let{overlayMode:F}=I.getState();if(M.has("Escape")||M.has("Esc")){I.setState(N=>{let x=new Set(N.pressedKeys);x.delete("Escape"),x.delete("Esc");let $=new Map(N.keyPressTimestamps);$.delete("Escape"),$.delete("Esc");let G=Array.isArray(e.hotkey)?e.hotkey:[e.hotkey];for(let H of G)H.length===1?(x.delete(H.toLowerCase()),x.delete(H.toUpperCase()),$.delete(H.toLowerCase()),$.delete(H.toUpperCase())):(x.delete(H),$.delete(H));return {...N,keyPressTimestamps:$,overlayMode:"hidden",pressedKeys:x}}),a&&(a(),a=null),p();return}if(!c()){a&&(a(),a=null),F!=="hidden"&&I.setState(N=>({...N,overlayMode:"hidden"})),p();return}F==="hidden"&&!a&&(g(),a=Be(e.hotkey,e.keyHoldDuration,()=>{I.setState(N=>({...N,overlayMode:"visible"})),p(),a=null;}));},m=I.subscribe(f,M=>M.pressedKeys),d=false,h=-1e3,S=-1e3,b=M=>{h=M.clientX,S=M.clientY,!d&&(d=true,requestAnimationFrame(()=>{d=false,I.setState(F=>({...F,mouseX:h,mouseY:S}));}));},E=M=>{if(M.button!==0)return;let{overlayMode:F}=I.getState();F!=="hidden"&&(M.preventDefault(),M.stopPropagation(),M.stopImmediatePropagation(),I.setState(j=>({...j,overlayMode:"copying"})));},T=()=>{document.hidden&&($e(),X());},L=false,R=()=>{L||(L=true,requestAnimationFrame(()=>{L=false,O();}));},v=false,_=()=>{v||(v=true,requestAnimationFrame(()=>{v=false,O();}));};window.addEventListener("mousemove",b),window.addEventListener("mousedown",E),window.addEventListener("scroll",R,true),window.addEventListener("resize",_),document.addEventListener("visibilitychange",T);let w=ze(),C=(M,F)=>{let j=document.elementsFromPoint(M,F);for(let N of j){if(N.closest(`[${Y}]`))continue;let x=window.getComputedStyle(N);if(Rt(N,x))return N}return null},P=async M=>{let F=(M.tagName||"").toLowerCase(),j=M.getBoundingClientRect(),N=Tt(n,j.left,j.top);try{let x=St(M);await Ue(`
22
+ ${e.stack}`:""}},yt=t=>t.length?t[0]===t[0].toUpperCase():false,je=async t=>{let e=/\n\s+(?:in|at)\s+([^\s(]+)(?:\s+\((?:at\s+)?([^)]+)\))?/g,n=[],r;for(r=e.exec(t);r!==null;){let l=r[1],i=r[2];if(!yt(l)){r=e.exec(t),n.push({name:l,source:void 0});continue}let o;if(i&&i!=="Server")try{let s=` at ${l} (${i})`,c=await ke(s,1);c.length>0&&(o=c[0]);}catch{}n.push({name:l,source:o||void 0}),r=e.exec(t);}return n};var gn=Ne;xe({onCommitFiberRoot(t,e){gn.add(e);}});var vt=t=>{if(!t)return t;let e=t.split("/");for(let n=0;n<e.length/2;n++)for(let r=1;r<=e.length-n;r++){let l=e.slice(n,n+r),i=n+r,o=e.slice(i,i+r);if(l.length>2&&l.length===o.length&&l.every((s,c)=>s===o[c]))return e.slice(i).join("/")}return t},_t=async t=>{let e=Ie(t);if(!e)return null;let n=He(e),l=(await je(n)).map(i=>({componentName:i.name,fileName:vt(i.source?.fileName)}));if(l.length>0&&e){let i=await De(e);if(i){let o=e.type,s=o?.displayName??o?.name??l[0].componentName;l[0].displayName=s;let c=vt(i.fileName);l[0].source=`${c}:${i.lineNumber}:${i.columnNumber}`;}}return l},St=t=>t.filter(e=>e.fileName&&!e.fileName.includes("node_modules")&&e.componentName.length>1&&!e.fileName.startsWith("_")),Ct=t=>t.map((e,n)=>{let r=e.fileName,i=`${e.displayName||e.componentName}${r?` (${r})`:""}`;return n===0&&e.source&&(i+=`
23
+ ${e.source}`),i}).join(`
24
+ `),bt=t=>{let e=new Set(["article","aside","footer","form","header","main","nav","section"]),n=d=>{let h=d.tagName.toLowerCase();if(e.has(h)||d.id)return true;if(d.className&&typeof d.className=="string"){let S=d.className.trim();if(S&&S.length>0)return true}return Array.from(d.attributes).some(S=>S.name.startsWith("data-"))},r=(d,h=10)=>{let S=[],b=d.parentElement,E=0;for(;b&&E<h&&b.tagName!=="BODY"&&!(n(b)&&(S.push(b),S.length>=3));)b=b.parentElement,E++;return S.reverse()},l=d=>{let h=[],S=d,b=0,E=5;for(;S&&b<E&&S.tagName!=="BODY";){let T=S.tagName.toLowerCase();if(S.id){T+=`#${S.id}`,h.unshift(T);break}else if(S.className&&typeof S.className=="string"&&S.className.trim()){let L=S.className.trim().split(/\s+/).slice(0,2);T+=`.${L.join(".")}`;}if(!S.id&&(!S.className||!S.className.trim())&&S.parentElement){let L=Array.from(S.parentElement.children),M=L.indexOf(S);M>=0&&L.length>1&&(T+=`:nth-child(${M+1})`);}h.unshift(T),S=S.parentElement,b++;}return h.join(" > ")},i=(d,h=false)=>{let S=d.tagName.toLowerCase(),b=[];if(d.id&&b.push(`id="${d.id}"`),d.className&&typeof d.className=="string"){let M=d.className.trim().split(/\s+/);if(M.length>0&&M[0]){let _=(h?M.slice(0,3):M).join(" ");_.length>30&&(_=_.substring(0,30)+"..."),b.push(`class="${_}"`);}}let E=Array.from(d.attributes).filter(M=>M.name.startsWith("data-")),T=h?E.slice(0,1):E;for(let M of T){let v=M.value;v.length>20&&(v=v.substring(0,20)+"..."),b.push(`${M.name}="${v}"`);}let L=d.getAttribute("aria-label");if(L&&!h){let M=L;M.length>20&&(M=M.substring(0,20)+"..."),b.push(`aria-label="${M}"`);}return b.length>0?`<${S} ${b.join(" ")}>`:`<${S}>`},o=d=>`</${d.tagName.toLowerCase()}>`,s=d=>{let h=d.textContent||"";h=h.trim().replace(/\s+/g," ");let S=60;return h.length>S&&(h=h.substring(0,S)+"..."),h},c=d=>{if(d.id)return `#${d.id}`;if(d.className&&typeof d.className=="string"){let h=d.className.trim().split(/\s+/);if(h.length>0&&h[0])return `.${h[0]}`}return null},u=[];u.push(`Path: ${l(t)}`),u.push("");let y=r(t);for(let d=0;d<y.length;d++){let h=" ".repeat(d);u.push(h+i(y[d],true));}let g=t.parentElement,p=-1;if(g){let d=Array.from(g.children);if(p=d.indexOf(t),p>0){let h=d[p-1];if(c(h)&&p<=2){let b=" ".repeat(y.length);u.push(`${b} ${i(h,true)}`),u.push(`${b} </${h.tagName.toLowerCase()}>`);}else if(p>0){let b=" ".repeat(y.length);u.push(`${b} ... (${p} element${p===1?"":"s"})`);}}}let a=" ".repeat(y.length);u.push(a+" <!-- SELECTED -->");let f=s(t),m=t.children.length;if(f&&m===0&&f.length<40?u.push(`${a} ${i(t)}${f}${o(t)}`):(u.push(a+" "+i(t)),f&&u.push(`${a} ${f}`),m>0&&u.push(`${a} ... (${m} element${m===1?"":"s"})`),u.push(a+" "+o(t))),g&&p>=0){let d=Array.from(g.children),h=d.length-p-1;if(h>0){let S=d[p+1];c(S)&&h<=2?(u.push(`${a} ${i(S,true)}`),u.push(`${a} </${S.tagName.toLowerCase()}>`)):u.push(`${a} ... (${h} element${h===1?"":"s"})`);}}for(let d=y.length-1;d>=0;d--){let h=" ".repeat(d);u.push(h+o(y[d]));}return u.join(`
25
+ `)};var ge=(t,e,n)=>t+(e-t)*n;var yn=({borderRadius:t,height:e,transform:n,width:r,x:l,y:i})=>{let o=document.createElement("div");return o.style.position="fixed",o.style.top=`${i}px`,o.style.left=`${l}px`,o.style.width=`${r}px`,o.style.height=`${e}px`,o.style.borderRadius=t,o.style.transform=n,o.style.pointerEvents="none",o.style.border="1px solid rgb(210, 57, 192)",o.style.backgroundColor="rgba(210, 57, 192, 0.2)",o.style.zIndex="2147483646",o.style.boxSizing="border-box",o.style.display="none",o},vn=(t,{borderRadius:e,height:n,transform:r,width:l,x:i,y:o})=>{let s=parseFloat(t.style.top)||0,c=parseFloat(t.style.left)||0,u=parseFloat(t.style.width)||0,y=parseFloat(t.style.height)||0,g=`${ge(s,o,.95)}px`,p=`${ge(c,i,.95)}px`,a=`${ge(u,l,.95)}px`,f=`${ge(y,n,.95)}px`;t.style.top!==g&&(t.style.top=g),t.style.left!==p&&(t.style.left=p),t.style.width!==a&&(t.style.width=a),t.style.height!==f&&(t.style.height=f),t.style.borderRadius!==e&&(t.style.borderRadius=e),t.style.transform!==r&&(t.style.transform=r);},wt=t=>{let e=yn({borderRadius:"0px",height:0,transform:"none",width:0,x:-1e3,y:-1e3});t.appendChild(e);let n=false;return {hide:()=>{n=false,e.style.display="none";},isVisible:()=>n,show:()=>{n=true,e.style.display="block";},update:r=>{vn(e,r);}}},Et=(t,e)=>{let n=document.createElement("div");n.style.position="fixed",n.style.top=`${e.y}px`,n.style.left=`${e.x}px`,n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,n.style.borderRadius=e.borderRadius,n.style.transform=e.transform,n.style.pointerEvents="none",n.style.border="1px solid rgb(210, 57, 192)",n.style.backgroundColor="rgba(210, 57, 192, 0.2)",n.style.zIndex="2147483646",n.style.boxSizing="border-box",n.style.transition="opacity 0.3s ease-out",n.style.opacity="1",t.appendChild(n),requestAnimationFrame(()=>{n.style.opacity="0";}),setTimeout(()=>{n.remove();},300);},_n=()=>{let t=document.createElement("span");return t.style.display="inline-block",t.style.width="8px",t.style.height="8px",t.style.border="1.5px solid rgb(210, 57, 192)",t.style.borderTopColor="transparent",t.style.borderRadius="50%",t.style.marginRight="4px",t.style.verticalAlign="middle",t.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:600,easing:"linear",iterations:1/0}),t},ne=null,Tt=()=>{let t=document.createElement("div");return t.style.position="fixed",t.style.top="calc(8px + env(safe-area-inset-top))",t.style.padding="2px 6px",t.style.backgroundColor="#fde7f7",t.style.color="#b21c8e",t.style.border="1px solid #f7c5ec",t.style.borderRadius="4px",t.style.fontSize="11px",t.style.fontWeight="500",t.style.fontFamily="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",t.style.zIndex="2147483647",t.style.pointerEvents="none",t.style.opacity="0",t.style.transition="opacity 0.2s ease-in-out",t.style.display="flex",t.style.alignItems="center",t.style.maxWidth="calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)))",t.style.overflow="hidden",t.style.textOverflow="ellipsis",t.style.whiteSpace="nowrap",t},Lt=(t,e,n,r)=>{let l=ne,i=false;if(l||(l=Tt(),t.appendChild(l),ne=l,i=true,$e=false),!$e){let b=l.querySelector("span");if(b){let E=document.createElement("span");E.textContent=r?`<${r}>`:"<element>",E.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",E.style.fontVariantNumeric="tabular-nums",b.replaceChildren(E);}else {let E=document.createElement("span"),T=document.createElement("span");T.textContent=r?`<${r}>`:"<element>",T.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",T.style.fontVariantNumeric="tabular-nums",E.appendChild(T),l.appendChild(E);}}let o=l.getBoundingClientRect(),s=window.innerWidth,c=window.innerHeight,u=Math.round(e),y=Math.round(n)-o.height-6,g=4,p=8,a=8,f=s-o.width-8,m=c-o.height-8,d=u<p,h=y<a,S=d||h;u=Math.max(p,Math.min(u,f)),y=Math.max(a,Math.min(y,m)),S&&(u+=g,y+=g),l.style.left=`${u}px`,l.style.top=`${y}px`,l.style.right="auto",i?requestAnimationFrame(()=>{l.style.opacity="1";}):l.style.opacity!=="1"&&(l.style.opacity="1");},$e=false,ye=new Set,Mt=(t,e,n)=>{let r=Tt();r.style.zIndex="2147483648",t.appendChild(r),ye.add(r);let l=()=>{if(e===void 0||n===void 0)return;let s=r.getBoundingClientRect(),c=window.innerWidth,u=window.innerHeight,y=Math.round(e),g=Math.round(n)-s.height-6,p=4,a=8,f=8,m=c-s.width-8,d=u-s.height-8,h=y<a,S=g<f,b=h||S;y=Math.max(a,Math.min(y,m)),g=Math.max(f,Math.min(g,d)),b&&(y+=p,g+=p),r.style.left=`${y}px`,r.style.top=`${g}px`,r.style.right="auto";},i=_n(),o=document.createElement("span");return o.textContent="Grabbing\u2026",r.appendChild(i),r.appendChild(o),l(),requestAnimationFrame(()=>{r.style.opacity="1";}),s=>{r.textContent="";let c=document.createElement("span");c.textContent="\u2713",c.style.display="inline-block",c.style.marginRight="4px",c.style.fontWeight="600";let u=document.createElement("span"),y=document.createElement("span");y.textContent=s?`<${s}>`:"<element>",y.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",y.style.fontVariantNumeric="tabular-nums",u.appendChild(document.createTextNode("Grabbed ")),u.appendChild(y),r.appendChild(c),r.appendChild(u),requestAnimationFrame(()=>{l();}),setTimeout(()=>{r.style.opacity="0",setTimeout(()=>{r.remove(),ye.delete(r);},200);},1500);}},Y=()=>{ne&&(ne.remove(),ne=null),$e=false;},Ge=()=>{for(let t of ye)t.remove();ye.clear();},z=null,Sn=()=>{let t=document.createElement("div");t.style.position="fixed",t.style.zIndex="2147483647",t.style.pointerEvents="none",t.style.opacity="0",t.style.transition="opacity 0.1s ease-in-out";let e=document.createElement("div");e.style.width="32px",e.style.height="2px",e.style.backgroundColor="rgba(178, 28, 142, 0.2)",e.style.borderRadius="1px",e.style.overflow="hidden",e.style.position="relative";let n=document.createElement("div");return n.style.width="0%",n.style.height="100%",n.style.backgroundColor="#b21c8e",n.style.borderRadius="1px",n.style.transition="width 0.05s linear",n.setAttribute("data-progress-fill","true"),e.appendChild(n),t.appendChild(e),t},Ue=(t,e,n,r)=>{z||(z=Sn(),t.appendChild(z),requestAnimationFrame(()=>{z&&(z.style.opacity="1");}));let l=z,i=l.getBoundingClientRect(),o=window.innerWidth,s=window.innerHeight,c=14,u=8,y=n-i.width/2,g=r+c;g+i.height+u>s&&(g=r-i.height-c),g=Math.max(u,Math.min(g,s-i.height-u)),y=Math.max(u,Math.min(y,o-i.width-u)),l.style.top=`${g}px`,l.style.left=`${y}px`;let p=l.querySelector("[data-progress-fill]");if(p){let a=Math.min(100,Math.max(0,e*100));p.style.width=`${a}%`;}},Rt=()=>{z&&(z.style.opacity="0",setTimeout(()=>{z&&(z.remove(),z=null);},100));};var Cn=typeof window<"u"&&window.navigator.clipboard&&window.isSecureContext,Ve=async t=>{if(Cn)try{return await navigator.clipboard.writeText(t),!0}catch{}let e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="fixed",e.style.top="-9999px",e.style.opacity="0",e.style.pointerEvents="none";let n=document.body||document.documentElement;n.appendChild(e),e.select(),e.setSelectionRange(0,e.value.length);let r=false;try{r=document.execCommand("copy");}catch{r=false;}finally{n.removeChild(e);}return r};var At=(t,e=window.getComputedStyle(t))=>e.display!=="none"&&e.visibility!=="hidden"&&e.opacity!=="0";var Q="data-react-grab",Ot=()=>{let t=document.querySelector(`[${Q}]`);if(t){let i=t.shadowRoot?.querySelector(`[${Q}]`);if(i instanceof HTMLDivElement&&t.shadowRoot)return i}let e=document.createElement("div");e.setAttribute(Q,"true"),e.style.zIndex="2147483646",e.style.position="fixed",e.style.top="0",e.style.left="0";let n=e.attachShadow({mode:"open"}),r=document.createElement("div");return r.setAttribute(Q,"true"),n.appendChild(r),(document.body??document.documentElement).appendChild(e),r};var xt=t=>{let e=new Map,n=0,r,l=g=>{let p=r,a=typeof g=="function"?g(p):g,f={...p,...a};r=f;for(let m of e.values())if(m.type==="selected"){let d=m.selector(f),h=m.prevSelectedValue;Object.is(h,d)||(m.prevSelectedValue=d,m.listener(d,h));}else m.listener(f,p);return r},i=()=>r,o=t(l,i);r=o;let s=(g,p)=>{let a=String(n++),m={listener:(d,h)=>g(d,h),prevSelectedValue:p(r),selector:p,type:"selected"};return e.set(a,m),()=>{e.delete(a);}},c=g=>{let p=String(n++),a={listener:g,type:"full"};return e.set(p,a),()=>{e.delete(p);}};function u(g,p){return p?s(g,p):c(g)}return {getInitialState(){return o},getState:i,setState:l,subscribe:u}};var x=xt(()=>({keyPressTimestamps:new Map,mouseX:-1e3,mouseY:-1e3,overlayMode:"hidden",pressedKeys:new Set})),bn=()=>typeof navigator>"u"?["Meta","C"]:navigator.platform.toLowerCase().includes("mac")?["Meta","C"]:["Control","C"],wn=(t={})=>{if(t.enabled===false)return;let e={adapter:void 0,enabled:true,hotkey:t.hotkey??bn(),keyHoldDuration:500,...t},n=Ot(),r=wt(n),l=null,i=null,o=false,s=null,c=null,u=()=>{if(Array.isArray(e.hotkey)){for(let R of e.hotkey)if(!_e(R))return false;return true}return _e(e.hotkey)},y=()=>{if(c===null)return;let R=Date.now()-c,N=Math.min(1,R/e.keyHoldDuration),{mouseX:$,mouseY:F}=x.getState();Ue(n,N,$,F),N<1&&(s=requestAnimationFrame(y));},g=()=>{if(s!==null)return;c=Date.now();let{mouseX:R,mouseY:N}=x.getState();Ue(n,0,R,N),s=requestAnimationFrame(y);},p=()=>{s!==null&&(cancelAnimationFrame(s),s=null),c=null,Rt();},a=null,f=R=>{let{overlayMode:N}=x.getState();if(R.has("Escape")||R.has("Esc")){x.setState(F=>{let O=new Set(F.pressedKeys);O.delete("Escape"),O.delete("Esc");let G=new Map(F.keyPressTimestamps);G.delete("Escape"),G.delete("Esc");let U=Array.isArray(e.hotkey)?e.hotkey:[e.hotkey];for(let j of U)j.length===1?(O.delete(j.toLowerCase()),O.delete(j.toUpperCase()),G.delete(j.toLowerCase()),G.delete(j.toUpperCase())):(O.delete(j),G.delete(j));return {...F,keyPressTimestamps:G,overlayMode:"hidden",pressedKeys:O}}),a&&(a(),a=null),p();return}if(!u()){a&&(a(),a=null),N!=="hidden"&&x.setState(F=>({...F,overlayMode:"hidden"})),p();return}N==="hidden"&&!a&&(g(),a=We(e.hotkey,e.keyHoldDuration,()=>{x.setState(F=>({...F,overlayMode:"visible"})),p(),a=null;}));},m=x.subscribe(f,R=>R.pressedKeys),d=false,h=-1e3,S=-1e3,b=R=>{h=R.clientX,S=R.clientY,!d&&(d=true,requestAnimationFrame(()=>{d=false,x.setState(N=>({...N,mouseX:h,mouseY:S}));}));},E=R=>{if(R.button!==0)return;let{overlayMode:N}=x.getState();N!=="hidden"&&(R.preventDefault(),R.stopPropagation(),R.stopImmediatePropagation(),x.setState($=>({...$,overlayMode:"copying"})));},T=R=>{let{overlayMode:N}=x.getState();N!=="hidden"&&(R.preventDefault(),R.stopPropagation(),R.stopImmediatePropagation());},L=()=>{document.hidden&&(Ge(),Y());},M=false,v=()=>{M||(M=true,requestAnimationFrame(()=>{M=false,D();}));},_=false,w=()=>{_||(_=true,requestAnimationFrame(()=>{_=false,D();}));};window.addEventListener("mousemove",b),window.addEventListener("mousedown",E,true),window.addEventListener("click",T,true),window.addEventListener("scroll",v,true),window.addEventListener("resize",w),document.addEventListener("visibilitychange",L);let C=Be(),k=(R,N)=>{let $=document.elementsFromPoint(R,N);for(let F of $){if(F.closest(`[${Q}]`))continue;let O=window.getComputedStyle(F);if(At(F,O))return F}return null},A=async R=>{let N=(R.tagName||"").toLowerCase(),$=R.getBoundingClientRect(),F=Mt(n,$.left,$.top);try{let O=bt(R);await Ve(`
26
26
 
27
27
  <referenced_element>
28
- ${x}
29
- </referenced_element>`),N(F);let $=await yt(M);if($){let G=vt($);if(G.length>0){let H=_t(G),ne=`${x}
28
+ ${O}
29
+ </referenced_element>`);let G=await _t(R);if(G){let U=St(G);if(U.length>0){let j=Ct(U),re=`${O}
30
30
 
31
31
  Component owner stack:
32
- ${H}`;await Ue(`
32
+ ${j}`;await Ve(`
33
33
 
34
34
  <referenced_element>
35
- ${ne}
36
- </referenced_element>`).catch(()=>{}),e.adapter&&e.adapter.open(ne);}else e.adapter&&e.adapter.open(x);}else e.adapter&&e.adapter.open(x);}catch{N(F);}},A=M=>{let{mouseX:F,mouseY:j,overlayMode:N}=M;if(N==="hidden"){r.isVisible()&&r.hide(),o||X(),l=null,i=null;return}if(N==="copying"&&l){if(!o){o=true,i=l;let Ve=window.getComputedStyle(l),re=l.getBoundingClientRect();bt(n,{borderRadius:Ve.borderRadius||"0px",height:re.height,transform:Ve.transform||"none",width:re.width,x:re.left,y:re.top}),P(l).finally(()=>{o=false;});let xt=c();I.setState(It=>({...It,overlayMode:xt?"visible":"hidden"}));}return}let x=C(F,j);if(!x){r.isVisible()&&r.hide(),o||X(),l=null;return}if(i&&x!==i&&(i=null),x===i){r.isVisible()&&r.hide(),o||X(),l=x;return}let $=(x.tagName||"").toLowerCase();l=x;let G=x.getBoundingClientRect(),H=window.getComputedStyle(x),ne=H.borderRadius||"0px",Ot=H.transform||"none";r.update({borderRadius:ne,height:G.height,transform:Ot,width:G.width,x:G.left,y:G.top}),r.isVisible()||r.show(),Et(n,G.left,G.top,$);},k=false,O=()=>{k||(k=true,requestAnimationFrame(()=>{k=false,A(I.getState());}));},z=I.subscribe(()=>{O();}),D=()=>{O(),requestAnimationFrame(D);};return D(),()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mousedown",E),window.removeEventListener("scroll",R,true),window.removeEventListener("resize",_),document.removeEventListener("visibilitychange",T),w(),z(),m(),a&&a(),p(),$e(),X();}};if(typeof window<"u"&&typeof document<"u"){let t=document.currentScript,e={};if(t?.dataset){let{adapter:n,enabled:r,hotkey:l,keyHoldDuration:i}=t.dataset;if(n!==void 0&&n==="cursor"&&(e.adapter=ye),r!==void 0&&(e.enabled=r==="true"),l!==void 0){let o=l.split(",").map(s=>s.trim());e.hotkey=o.length===1?o[0]:o;}if(i!==void 0){let o=Number(i);Number.isNaN(o)||(e.keyHoldDuration=o);}}Cn(e);}/*! Bundled license information:
35
+ ${re}
36
+ </referenced_element>`).catch(()=>{}),e.adapter&&e.adapter.open(re);}else e.adapter&&e.adapter.open(O);}else e.adapter&&e.adapter.open(O);F(N);}catch{F(N);}},P=R=>{let{mouseX:N,mouseY:$,overlayMode:F}=R;if(F==="hidden"){r.isVisible()&&r.hide(),o||Y(),l=null,i=null;return}if(F==="copying"&&l){if(!o){o=true,i=l;let ze=window.getComputedStyle(l),oe=l.getBoundingClientRect();Et(n,{borderRadius:ze.borderRadius||"0px",height:oe.height,transform:ze.transform||"none",width:oe.width,x:oe.left,y:oe.top}),A(l).finally(()=>{o=false;});let Nt=u();x.setState(Ft=>({...Ft,overlayMode:Nt?"visible":"hidden"}));}return}let O=k(N,$);if(!O){r.isVisible()&&r.hide(),o||Y(),l=null;return}if(i&&O!==i&&(i=null),O===i){r.isVisible()&&r.hide(),o||Y(),l=O;return}let G=(O.tagName||"").toLowerCase();l=O;let U=O.getBoundingClientRect(),j=window.getComputedStyle(O),re=j.borderRadius||"0px",It=j.transform||"none";r.update({borderRadius:re,height:U.height,transform:It,width:U.width,x:U.left,y:U.top}),r.isVisible()||r.show(),Lt(n,U.left,U.top,G);},I=false,D=()=>{I||(I=true,requestAnimationFrame(()=>{I=false,P(x.getState());}));},H=x.subscribe(()=>{D();}),q=()=>{D(),requestAnimationFrame(q);};return q(),()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mousedown",E,true),window.removeEventListener("click",T,true),window.removeEventListener("scroll",v,true),window.removeEventListener("resize",w),document.removeEventListener("visibilitychange",L),C(),H(),m(),a&&a(),p(),Ge(),Y();}};if(typeof window<"u"&&typeof document<"u"){let t=document.currentScript,e={};if(t?.dataset){let{adapter:n,enabled:r,hotkey:l,keyHoldDuration:i}=t.dataset;if(n!==void 0&&n==="cursor"&&(e.adapter=ve),r!==void 0&&(e.enabled=r==="true"),l!==void 0){let o=l.split(",").map(s=>s.trim());e.hotkey=o.length===1?o[0]:o;}if(i!==void 0){let o=Number(i);Number.isNaN(o)||(e.keyHoldDuration=o);}}wn(e);}/*! Bundled license information:
37
37
 
38
- bippy/dist/src-De8xuJ2u.js:
38
+ bippy/dist/src-8Vg0r_-J.js:
39
39
  (**
40
40
  * @license bippy
41
41
  *
@@ -55,7 +55,7 @@ bippy/dist/index.js:
55
55
  * LICENSE file in the root directory of this source tree.
56
56
  *)
57
57
 
58
- bippy/dist/source-CBCTB51B.js:
58
+ bippy/dist/source-DQCmZhBV.js:
59
59
  (**
60
60
  * @license bippy
61
61
  *
@@ -74,4 +74,4 @@ bippy/dist/source.js:
74
74
  * This source code is licensed under the MIT license found in the
75
75
  * LICENSE file in the root directory of this source tree.
76
76
  *)
77
- */exports.cursorAdapter=ye;exports.init=Cn;exports.libStore=I;return exports;})({});
77
+ */exports.cursorAdapter=ve;exports.init=wn;exports.libStore=x;return exports;})({});