react-grab 0.2.0-dev.23bce0e → 0.2.0-dev.38d4995
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{copy-content-BwBAqbRh.d.cts → copy-content-CljOvmB4.d.cts} +294 -132
- package/dist/{copy-content-lkRiqdFh.d.ts → copy-content-DDLzIgnG.d.ts} +294 -132
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/core-C1CGyUJw.js +11 -0
- package/dist/core-CYC_DsQ_.cjs +11 -0
- package/dist/{execute-context-menu-action-DjY3nHFh.js → execute-context-menu-action-Dd-oxJiJ.js} +1 -1
- package/dist/{execute-context-menu-action-CTLj2Bxi.cjs → execute-context-menu-action-R9qh8DM8.cjs} +1 -1
- package/dist/freeze-updates-Bg6XBOxo.js +43 -0
- package/dist/freeze-updates-DsB9dRQe.cjs +43 -0
- package/dist/{index-CvAuGVjl.d.cts → index-BlldPSOG.d.cts} +1 -1
- package/dist/{index-BX45N3Oq.d.ts → index-VLefE6H1.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +19 -19
- package/dist/index.js +1 -1
- package/dist/open-file-CP_S-b2f.cjs +20 -0
- package/dist/open-file-DYWtuLPq.js +29 -0
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.d.cts +1 -1
- package/dist/primitives.d.ts +1 -1
- package/dist/primitives.js +1 -1
- package/dist/renderer-BYVRT521.cjs +9 -0
- package/dist/renderer-COtU0rkU.js +9 -0
- package/package.json +3 -3
- package/dist/core-BDARLOT5.cjs +0 -11
- package/dist/core-hRyDkVes.js +0 -11
- package/dist/freeze-updates-BMJYZMBU.cjs +0 -43
- package/dist/freeze-updates-CXjHiBEI.js +0 -43
- package/dist/open-file-C_RX8tk-.cjs +0 -20
- package/dist/open-file-D-QVk1oz.js +0 -29
- package/dist/renderer-BhlTRrcm.cjs +0 -9
- package/dist/renderer-DoXaOa_p.js +0 -9
package/dist/index.global.js
CHANGED
|
@@ -6,33 +6,33 @@
|
|
|
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
|
-
this.globalThis=this.globalThis||{},this.globalThis.__REACT_GRAB_MODULE__=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,t)=>()=>(e&&(t=e(e=0)),t),r=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r};function i(e){let t=String(e),n=t.length-1;return N.context.id+(n?String.fromCharCode(96+n):``)+t}function a(e){N.context=e}function o(){return{...N.context,id:N.getNextContextId(),count:0}}function s(e,t){let n=L,r=F,i=e.length===0,a=t===void 0?r:t,o=i?Me:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>g(()=>le(o)));F=o,L=null;try{return re(s,!0)}finally{L=n,F=r}}function c(e,t){t=t?Object.assign({},De,t):De;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[E.bind(n),e=>(typeof e==`function`&&(e=I&&I.running&&I.sources.has(n)?e(n.tValue):e(n.value)),te(n,e))]}function l(e,t,n){let r=k(e,t,!0,Ae);Pe&&I&&I.running?Ie.push(r):D(r)}function u(e,t,n){let r=k(e,t,!1,Ae);Pe&&I&&I.running?Ie.push(r):D(r)}function d(e,t,n){ke=oe;let r=k(e,t,!1,Ae),i=Ve&&T(Ve);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),Le?Le.push(r):D(r)}function f(e,t,n){n=n?Object.assign({},De,n):De;let r=k(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Pe&&I&&I.running?(r.tState=Ae,Ie.push(r)):D(r),E.bind(r)}function p(e){return e&&typeof e==`object`&&`then`in e}function m(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=Ne,u=null,d=!1,m=!1,h=`initialValue`in a,_=typeof r==`function`&&f(r),v=new Set,[y,b]=(a.storage||c)(a.initialValue),[x,C]=c(void 0),[w,ee]=c(void 0,{equals:!1}),[E,te]=c(h?`ready`:`unresolved`);N.context&&(u=N.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:N.load&&N.has(u)&&(s=N.load(u)));function D(e,t,n,r){return o===e&&(o=null,r!==void 0&&(h=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=Ne,I&&e&&d?(I.promises.delete(e),d=!1,re(()=>{I.running=!0,O(t,n)},!1)):O(t,n)),t}function O(e,t){re(()=>{t===void 0&&b(()=>e),te(t===void 0?h?`ready`:`unresolved`:`errored`),C(t);for(let e of v.keys())e.decrement();v.clear()},!1)}function k(){let e=Ve&&T(Ve),t=y(),n=x();if(n!==void 0&&!o)throw n;return L&&!L.user&&e&&l(()=>{w(),o&&(e.resolved&&I&&d?I.promises.add(o):v.has(e)||(e.increment(),v.add(e)))}),t}function ne(e=!0){if(e!==!1&&m)return;m=!1;let t=_?_():r;if(d=I&&I.running,t==null||t===!1){D(o,g(y));return}I&&o&&I.promises.delete(o);let n,a=s===Ne?g(()=>{try{return i(t,{value:y(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){D(o,void 0,de(n),t);return}else if(!p(a))return D(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?D(o,a.v,void 0,t):D(o,void 0,de(a.v),t),a):(m=!0,queueMicrotask(()=>m=!1),re(()=>{te(h?`refreshing`:`pending`),ee()},!1),a.then(e=>D(a,e,void 0,t),e=>D(a,void 0,de(e),t)))}Object.defineProperties(k,{state:{get:()=>E()},error:{get:()=>x()},loading:{get(){let e=E();return e===`pending`||e===`refreshing`}},latest:{get(){if(!h)return k();let e=x();if(e&&!o)throw e;return y()}}});let ie=F;return _?l(()=>(ie=F,ne(!1))):ne(!1),[k,{refetch:e=>S(ie,()=>ne(e)),mutate:b}]}function h(e){return re(e,!1)}function g(e){if(!Fe&&L===null)return e();let t=L;L=null;try{return Fe?Fe.untrack(e):e()}finally{L=t}}function _(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=g(()=>t(o,i,n));return i=o,s}}function v(e){d(()=>g(e))}function y(e){return F===null||(F.cleanups===null?F.cleanups=[e]:F.cleanups.push(e)),e}function b(){return L}function x(){return F}function S(e,t){let n=F,r=L;F=e,L=null;try{return re(t,!0)}catch(e){pe(e)}finally{F=n,L=r}}function C(e){if(I&&I.running)return e(),I.done;let t=L,n=F;return Promise.resolve().then(()=>{L=t,F=n;let r;return(Pe||Ve)&&(r=I||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),re(e,!1),L=F=null,r?r.done:void 0})}function w(e,t){let n=Symbol(`context`);return{id:n,Provider:he(n),defaultValue:e}}function T(e){let t;return F&&F.context&&(t=F.context[e.id])!==void 0?t:e.defaultValue}function ee(e){let t=f(e),n=f(()=>me(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}function E(){let e=I&&I.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===Ae)D(this);else{let e=Ie;Ie=null,re(()=>se(this),!1),Ie=e}if(L){let e=this.observers?this.observers.length:0;L.sources?(L.sources.push(this),L.sourceSlots.push(e)):(L.sources=[this],L.sourceSlots=[e]),this.observers?(this.observers.push(L),this.observerSlots.push(L.sources.length-1)):(this.observers=[L],this.observerSlots=[L.sources.length-1])}return e&&I.sources.has(this)?this.tValue:this.value}function te(e,t,n){let r=I&&I.running&&I.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(I){let r=I.running;(r||!n&&I.sources.has(e))&&(I.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&re(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=I&&I.running;r&&I.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?Ie.push(n):Le.push(n),n.observers&&ce(n)),r?n.tState=Ae:n.state=Ae)}if(Ie.length>1e6)throw Ie=[],Error()},!1)}return t}function D(e){if(!e.fn)return;le(e);let t=Re;O(e,I&&I.running&&I.sources.has(e)?e.tValue:e.value,t),I&&!I.running&&I.sources.has(e)&&queueMicrotask(()=>{re(()=>{I&&(I.running=!0),L=F=e,O(e,e.tValue,t),L=F=null},!1)})}function O(e,t,n){let r,i=F,a=L;L=F=e;try{r=e.fn(t)}catch(t){return e.pure&&(I&&I.running?(e.tState=Ae,e.tOwned&&e.tOwned.forEach(le),e.tOwned=void 0):(e.state=Ae,e.owned&&e.owned.forEach(le),e.owned=null)),e.updatedAt=n+1,pe(t)}finally{L=a,F=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?te(e,r,!0):I&&I.running&&e.pure?(I.sources.has(e)||(e.value=r),I.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function k(e,t,n,r=Ae,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:F,context:F?F.context:null,pure:n};if(I&&I.running&&(a.state=0,a.tState=r),F===null||F!==Me&&(I&&I.running&&F.pure?F.tOwned?F.tOwned.push(a):F.tOwned=[a]:F.owned?F.owned.push(a):F.owned=[a]),Fe&&a.fn){let e=a.fn,[t,n]=c(void 0,{equals:!1}),r=Fe.factory(e,n);y(()=>r.dispose());let i,o=()=>C(n).then(()=>{i&&=(i.dispose(),void 0)});a.fn=n=>(t(),I&&I.running?(i||=Fe.factory(e,o),i.track(n)):r.track(n))}return a}function ne(e){let t=I&&I.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===je)return se(e);if(e.suspense&&g(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Re);){if(t&&I.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(I.disposed.has(t))return}if((t?e.tState:e.state)===Ae)D(e);else if((t?e.tState:e.state)===je){let t=Ie;Ie=null,re(()=>se(e,n[0]),!1),Ie=t}}}function re(e,t){if(Ie)return e();let n=!1;t||(Ie=[]),Le?n=!0:Le=[],Re++;try{let t=e();return ie(n),t}catch(e){n||(Le=null),Ie=null,pe(e)}}function ie(e){if(Ie&&=(Pe&&I&&I.running?A(Ie):ae(Ie),null),e)return;let t;if(I){if(!I.promises.size&&!I.queue.size){let e=I.sources,n=I.disposed;Le.push.apply(Le,I.effects),t=I.resolve;for(let e of Le)`tState`in e&&(e.state=e.tState),delete e.tState;I=null,re(()=>{for(let e of n)le(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)le(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}Be(!1)},!1)}else if(I.running){I.running=!1,I.effects.push.apply(I.effects,Le),Le=null,Be(!0);return}}let n=Le;Le=null,n.length&&re(()=>ke(n),!1),t&&t()}function ae(e){for(let t=0;t<e.length;t++)ne(e[t])}function A(e){for(let t=0;t<e.length;t++){let n=e[t],r=I.queue;r.has(n)||(r.add(n),Pe(()=>{r.delete(n),re(()=>{I.running=!0,ne(n)},!1),I&&(I.running=!1)}))}}function oe(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:ne(r)}if(N.context){if(N.count){N.effects||=[],N.effects.push(...e.slice(0,n));return}a()}for(N.effects&&(N.done||!N.count)&&(e=[...N.effects,...e],n+=N.effects.length,delete N.effects),t=0;t<n;t++)ne(e[t])}function se(e,t){let n=I&&I.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===Ae?i!==t&&(!i.updatedAt||i.updatedAt<Re)&&ne(i):e===je&&se(i,t)}}}function ce(e){let t=I&&I.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=je:r.state=je,r.pure?Ie.push(r):Le.push(r),r.observers&&ce(r))}}function le(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)le(e.tOwned[t]);delete e.tOwned}if(I&&I.running&&e.pure)ue(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)le(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}I&&I.running?e.tState=0:e.state=0}function ue(e,t){if(t||(e.tState=0,I.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ue(e.owned[t])}function de(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function fe(e,t,n){try{for(let n of t)n(e)}catch(e){pe(e,n&&n.owner||null)}}function pe(e,t=F){let n=Oe&&t&&t.context&&t.context[Oe],r=de(e);if(!n)throw r;Le?Le.push({fn(){fe(r,n,t)},state:Ae}):fe(r,n,t)}function me(e){if(typeof e==`function`&&!e.length)return me(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=me(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function he(e,t){return function(t){let n;return u(()=>n=g(()=>(F.context={...F.context,[e]:t.value},ee(()=>t.children))),void 0),n}}function ge(e){for(let t=0;t<e.length;t++)e[t]()}function _e(e,t,n={}){let r=[],i=[],a=[],o=0,l=t.length>1?[]:null;return y(()=>ge(a)),()=>{let u=e()||[],d=u.length,f,p;return u[Ee],g(()=>{let e,t,c,h,g,_,v,y,b;if(d===0)o!==0&&(ge(a),a=[],r=[],i=[],o=0,l&&=[]),n.fallback&&(r=[He],i[0]=s(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(d),p=0;p<d;p++)r[p]=u[p],i[p]=s(m);o=d}else{for(c=Array(d),h=Array(d),l&&(g=Array(d)),_=0,v=Math.min(o,d);_<v&&r[_]===u[_];_++);for(v=o-1,y=d-1;v>=_&&y>=_&&r[v]===u[y];v--,y--)c[y]=i[v],h[y]=a[v],l&&(g[y]=l[v]);for(e=new Map,t=Array(y+1),p=y;p>=_;p--)b=u[p],f=e.get(b),t[p]=f===void 0?-1:f,e.set(b,p);for(f=_;f<=v;f++)b=r[f],p=e.get(b),p!==void 0&&p!==-1?(c[p]=i[f],h[p]=a[f],l&&(g[p]=l[f]),p=t[p],e.set(b,p)):a[f]();for(p=_;p<d;p++)p in c?(i[p]=c[p],a[p]=h[p],l&&(l[p]=g[p],l[p](p))):i[p]=s(m);i=i.slice(0,o=d),r=u.slice(0)}return i});function m(e){if(a[p]=e,l){let[e,n]=c(p);return l[p]=n,t(u[p],e)}return t(u[p])}}}function j(e,t){if(Ue&&N.context){let n=N.context;a(o());let r=g(()=>e(t||{}));return a(n),r}return g(()=>e(t||{}))}function ve(){return!0}function ye(e){return(e=typeof e==`function`?e():e)?e:{}}function be(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function xe(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&P in r,e[n]=typeof r==`function`?(t=!0,f(r)):r}if(Te&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=ye(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in ye(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(ye(e[n])));return[...new Set(t)]}},We);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:be.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function Se(e,...t){let n=t.length;if(Te&&P in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},We));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},We)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}function Ce(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return f(_e(()=>e.each,e.children,t||void 0))}function M(e){let t=e.keyed,n=f(()=>e.when,void 0,void 0),r=t?n:f(n,void 0,{equals:(e,t)=>!e==!t});return f(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?g(()=>a(t?i:()=>{if(!g(r))throw Ge(`Show`);return n()})):a}return e.fallback},void 0,void 0)}var N,we,P,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,F,I,Pe,Fe,L,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,R=n((()=>{N={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return i(this.context.count)},getNextContextId(){return i(this.context.count++)}},we=(e,t)=>e===t,P=Symbol(`solid-proxy`),Te=typeof Proxy==`function`,Ee=Symbol(`solid-track`),De={equals:we},Oe=null,ke=ae,Ae=1,je=2,Me={owned:null,cleanups:null,context:null,owner:null},Ne={},F=null,I=null,Pe=null,Fe=null,L=null,Ie=null,Le=null,Re=0,[ze,Be]=c(!1),He=Symbol(`fallback`),Ue=!1,We={get(e,t,n){return t===P?n:e.get(t)},has(e,t){return t===P?!0:e.has(t)},set:ve,deleteProperty:ve,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ve,deleteProperty:ve}},ownKeys(e){return e.keys()}},Ge=e=>`Stale read from <${e}>.`}));function Ke(e,t){let n=ht[e];return typeof n==`object`?n[t]?n.$:void 0:n}function qe(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}function Je(e,t,n,r={}){let i;return s(r=>{i=r,t===document?e():W(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function z(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>g(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Ye(e,t=window.document){let n=t[yt]||(t[yt]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,st))}}function B(e,t,n){rt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Xe(e,t,n,r){rt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Ze(e,t,n){rt(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function V(e,t){rt(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function H(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Qe(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(at(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(at(e,i,!0),n[i]=o)}return n}function $e(e,t,n){if(!t)return n?B(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function U(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function et(e,t={},n,r){let i={};return r||u(()=>i.children=ct(e,t.children,i.children)),u(()=>typeof t.ref==`function`&&tt(t.ref,e)),u(()=>nt(e,t,n,!0,i,!0)),i}function tt(e,t,n){return g(()=>e(t,n))}function W(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return ct(e,t,r,n);u(r=>ct(e,t(),r,n),r)}function nt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=ot(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||ct(e,t.children);continue}let s=t[o];i[o]=ot(e,o,s,i[o],n,a,t)}}function rt(e){return!!N.context&&!N.done&&(!e||e.isConnected)}function it(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function at(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function ot(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return $e(e,n,r);if(t===`classList`)return Qe(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=gt.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(H(e,i,n,a),a&&Ye([i]))}else if(t.slice(0,5)===`attr:`)B(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)Ze(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=pt.has(t))||!i&&((u=Ke(t,e.tagName))||(c=ft.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(rt(e))return n;t===`class`||t===`className`?V(e,n):s&&!c&&!l?e[it(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&_t[t.split(`:`)[0]];r?Xe(e,r,t,n):B(e,mt[t]||t,n)}return n}function st(e){if(N.registry&&N.events&&N.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),N.registry&&!N.done&&(N.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function ct(e,t,n,r,i){let a=rt(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=dt(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=dt(e,n,r)}else if(o===`function`)return u(()=>{let i=t();for(;typeof i==`function`;)i=i();n=ct(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(lt(o,t,n,i))return u(()=>n=ct(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=dt(e,n,r),s)return n}else c?n.length===0?ut(e,o,r):qe(e,n,o):(n&&dt(e),ut(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=dt(e,n,r,t);dt(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function lt(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=lt(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=lt(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function ut(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function dt(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}var ft,pt,mt,ht,gt,_t,vt,yt,G=n((()=>{R(),ft=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),pt=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),mt=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),ht=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}}),gt=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),_t={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},vt=e=>f(()=>e()),yt=`_$DX_DELEGATE`}));G();var bt=`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
10
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:"Geist", ui-sans-serif, system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:4px;--font-weight-medium:500;--radius-sm:4px;--ease-out:cubic-bezier(0, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--ease-drawer:cubic-bezier(.32, .72, 0, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.a11y-hitbox{position:relative}.a11y-hitbox:before{content:"";pointer-events:auto;width:100%;min-width:24px;height:100%;min-height:24px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing) * 0)}.top-full{top:100%}.right-full{right:100%}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing) * 0)}.left-full{left:100%}.z-1{z-index:1}.z-10{z-index:10}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.-m-0\\.5{margin:calc(var(--spacing) * -.5)}.m-0{margin:calc(var(--spacing) * 0)}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-my-1\\.5{margin-block:calc(var(--spacing) * -1.5)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2\\.5{margin-right:calc(var(--spacing) * 2.5)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2\\.5{margin-left:calc(var(--spacing) * 2.5)}.ml-4{margin-left:calc(var(--spacing) * 4)}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.list-item{display:list-item}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-\\[17px\\]{height:17px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-4{min-height:calc(var(--spacing) * 4)}.w-\\[calc\\(100\\%\\+16px\\)\\]{width:calc(100% + 16px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[150px\\]{min-width:150px}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-rotate-90{rotate:-90deg}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.interactive-scale{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}@media (hover:hover) and (pointer:fine){.interactive-scale:hover{transform:scale(1.05)}}.interactive-scale:active{transition:transform 60ms cubic-bezier(0,0,.2,1);transform:scale(.96)}.press-scale{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}.press-scale:active{transition:transform 60ms cubic-bezier(0,0,.2,1);transform:scale(.97)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.grid-cols-\\[0fr\\]{grid-template-columns:0fr}.grid-cols-\\[1fr\\]{grid-template-columns:1fr}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-\\[5px\\]{gap:5px}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded-\\[13px\\]{border-radius:13px}.rounded-\\[14px\\]{border-radius:14px}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l-\\[10px\\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-\\[10px\\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[var\\(--rg-border-button\\)\\]{border-color:var(--rg-border-button)}.border-t-\\[var\\(--rg-border-subtle\\)\\]{border-top-color:var(--rg-border-subtle)}.bg-\\[var\\(--rg-error-bg\\)\\]{background-color:var(--rg-error-bg)}.bg-\\[var\\(--rg-panel-bg\\)\\]{background-color:var(--rg-panel-bg)}.bg-\\[var\\(--rg-submit-bg\\)\\]{background-color:var(--rg-submit-bg)}.bg-\\[var\\(--rg-surface-hover\\)\\]{background-color:var(--rg-surface-hover)}.bg-transparent{background-color:#0000}.p-0{padding:calc(var(--spacing) * 0)}.px-0\\.25{padding-inline:calc(var(--spacing) * .25)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-\\[3px\\]{padding-inline:3px}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-0\\.25{padding-block:calc(var(--spacing) * .25)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-px{padding-block:1px}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-3\\.5{--tw-leading:calc(var(--spacing) * 3.5);line-height:calc(var(--spacing) * 3.5)}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.wrap-break-word{overflow-wrap:break-word}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\\[var\\(--rg-error-text\\)\\]{color:var(--rg-error-text)}.text-\\[var\\(--rg-submit-fg\\)\\]{color:var(--rg-submit-fg)}.text-\\[var\\(--rg-text-primary\\)\\]{color:var(--rg-text-primary)}.text-\\[var\\(--rg-text-primary-85\\)\\]{color:var(--rg-text-primary-85)}.text-\\[var\\(--rg-text-secondary\\)\\]{color:var(--rg-text-secondary)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.\\[box-shadow\\:var\\(--rg-shadow\\)\\]{box-shadow:var(--rg-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.\\[filter\\:var\\(--rg-drop-shadow\\)\\]{filter:var(--rg-drop-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-columns\\]{transition-property:grid-template-columns;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[padding\\,border-radius\\,transform\\]{transition-property:padding,border-radius,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[top\\,left\\,width\\,height\\,opacity\\,border-radius\\]{transition-property:top,left,width,height,opacity,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,color\\]{transition-property:transform,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-\\[80ms\\]{transition-delay:80ms}.duration-60{--tw-duration:60ms;transition-duration:60ms}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-140{--tw-duration:.14s;transition-duration:.14s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-180{--tw-duration:.18s;transition-duration:.18s}.duration-220{--tw-duration:.22s;transition-duration:.22s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-drawer{--tw-ease:var(--ease-drawer);transition-timing-function:var(--ease-drawer)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.ease-spring{--tw-ease:var(--ease-spring);transition-timing-function:var(--ease-spring)}.will-change-\\[opacity\\,transform\\]{will-change:opacity,transform}.will-change-transform{will-change:transform}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[corner-shape\\:superellipse\\(1\\.25\\)\\]{corner-shape:superellipse(1.25)}.\\[font-synthesis\\:none\\]{font-synthesis:none}@media (hover:hover){.group-hover\\:text-\\[var\\(--rg-text-primary\\)\\]:is(:where(.group):hover *){color:var(--rg-text-primary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\\:bg-\\[var\\(--rg-error-bg-hover\\)\\]:hover{background-color:var(--rg-error-bg-hover)}.hover\\:bg-\\[var\\(--rg-surface-active\\)\\]:hover{background-color:var(--rg-surface-active)}.hover\\:bg-\\[var\\(--rg-surface-hover\\)\\]:hover{background-color:var(--rg-surface-hover)}.hover\\:text-\\[var\\(--rg-text-primary\\)\\]:hover{color:var(--rg-text-primary)}}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:opacity-40:disabled{opacity:.4}}:host{all:initial;direction:ltr}:host,[data-rg-theme=dark]{--rg-panel-bg:#161616;--rg-text-primary:#fff;--rg-text-secondary:#a7a7a7;--rg-surface-hover:#ffffff1a;--rg-surface-active:#ffffff26;--rg-border-subtle:#ffffff1a;--rg-border-button:#fff3;--rg-submit-bg:#fff;--rg-submit-fg:#161616;--rg-error-text:#f87171;--rg-error-bg:#3d1515;--rg-error-bg-hover:#4d1f1f;--rg-shadow:0 2px 8px #00000014;--rg-drop-shadow:drop-shadow(0px 2px 8px #00000014);--rg-shimmer-from:#a1a1aa;--rg-shimmer-to:#d4d4d8;--rg-text-primary-85:#ffffffd9}@media (prefers-color-scheme:dark){:host:not([data-rg-theme]){--rg-panel-bg:#fff;--rg-text-primary:#171717;--rg-text-secondary:#737373;--rg-surface-hover:#0000000d;--rg-surface-active:#00000014;--rg-border-subtle:#00000014;--rg-border-button:#00000026;--rg-submit-bg:#171717;--rg-submit-fg:#fff;--rg-error-text:#dc2626;--rg-error-bg:#fee2e2;--rg-error-bg-hover:#fecaca;--rg-shadow:0 2px 12px #0000001a;--rg-drop-shadow:drop-shadow(0px 2px 12px #0000001a);--rg-shimmer-from:#71717a;--rg-shimmer-to:#a1a1aa;--rg-text-primary-85:#171717d9}}:host([data-rg-theme=light]),[data-rg-theme=light]{--rg-panel-bg:#fff;--rg-text-primary:#171717;--rg-text-secondary:#737373;--rg-surface-hover:#0000000d;--rg-surface-active:#00000014;--rg-border-subtle:#00000014;--rg-border-button:#00000026;--rg-submit-bg:#171717;--rg-submit-fg:#fff;--rg-error-text:#dc2626;--rg-error-bg:#fee2e2;--rg-error-bg-hover:#fecaca;--rg-shadow:0 2px 12px #0000001a;--rg-drop-shadow:drop-shadow(0px 2px 12px #0000001a);--rg-shimmer-from:#71717a;--rg-shimmer-to:#a1a1aa;--rg-text-primary-85:#171717d9}@media (prefers-reduced-motion:reduce){:host,:host *,:host :before,:host :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}:host :focus{box-shadow:none!important;outline:none!important}@keyframes shake{0%,to{translate:0}15%,45%{translate:calc(-3px * var(--rg-shake-x,1)) calc(-3px * var(--rg-shake-y,0))}30%,60%{translate:calc(3px * var(--rg-shake-x,1)) calc(3px * var(--rg-shake-y,0))}75%{translate:calc(-2px * var(--rg-shake-x,1)) calc(-2px * var(--rg-shake-y,0))}90%{translate:calc(2px * var(--rg-shake-x,1)) calc(2px * var(--rg-shake-y,0))}}@keyframes icon-loader-spin{0%{opacity:1}50%{opacity:.5}to{opacity:.2}}.icon-loader-bar{animation:.5s linear infinite icon-loader-spin}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.shimmer-text{background:linear-gradient(90deg, var(--rg-shimmer-from) 0%, var(--rg-shimmer-to) 25%, var(--rg-shimmer-from) 50%, var(--rg-shimmer-to) 75%, var(--rg-shimmer-from) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:2.5s linear infinite shimmer}.animate-shake,.animate-shake-vertical{will-change:translate;animation:.3s ease-out shake}@keyframes tooltip-fade-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}.animate-tooltip-fade-in{will-change:transform, opacity;animation:.1s ease-out tooltip-fade-in}.animate-shake-vertical{--rg-shake-x:0;--rg-shake-y:1}@supports (-webkit-touch-callout:none){textarea[data-react-grab-input]{font-size:16px}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}`;R();let xt=Symbol(`store-raw`),St=Symbol(`store-node`),Ct=Symbol(`store-has`),wt=Symbol(`store-self`);function Tt(e){let t=e[P];if(!t&&(Object.defineProperty(e,P,{value:t=new Proxy(e,Nt)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let i=0,a=n.length;i<a;i++){let a=n[i];r[a].get&&Object.defineProperty(e,a,{enumerable:r[a].enumerable,get:r[a].get.bind(t)})}}return t}function Et(e){let t;return typeof e==`object`&&!!e&&(e[P]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Dt(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[xt])return n;if(!Et(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Dt(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=Dt(i,t))!==i&&(e[a]=r))}return e}function Ot(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function kt(e,t,n){if(e[t])return e[t];let[r,i]=c(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function At(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===P||t===St?n:(delete n.value,delete n.writable,n.get=()=>e[P][t],n)}function jt(e){b()&&kt(Ot(e,St),wt)()}function Mt(e){return jt(e),Reflect.ownKeys(e)}let Nt={get(e,t,n){if(t===xt)return e;if(t===P)return n;if(t===Ee)return jt(e),n;let r=Ot(e,St),i=r[t],a=i?i():e[t];if(t===St||t===Ct||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);b()&&(typeof a!=`function`||e.hasOwnProperty(t))&&!(n&&n.get)&&(a=kt(r,t,a)())}return Et(a)?Tt(a):a},has(e,t){return t===xt||t===P||t===Ee||t===St||t===Ct||t===`__proto__`?!0:(b()&&kt(Ot(e,Ct),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Mt,getOwnPropertyDescriptor:At};function Pt(e,t,n,r=!1){if(!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[Ct]&&e[Ct][t]&&i!==void 0&&e[Ct][t].$()):(e[t]=n,e[Ct]&&e[Ct][t]&&i===void 0&&e[Ct][t].$());let o=Ot(e,St),s;if((s=kt(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=kt(o,`length`,a))&&s.$(e.length)}(s=o[wt])&&s.$()}function Ft(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Pt(e,i,t[i])}}function It(e,t){if(typeof t==`function`&&(t=t(e)),t=Dt(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Pt(e,n,r)}Pt(e,`length`,r)}else Ft(e,t)}function Lt(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(Array.isArray(r)){for(let i=0;i<r.length;i++)Lt(e,[r[i]].concat(t),n);return}else if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&Lt(e,[i].concat(t),n);return}else if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)Lt(e,[r].concat(t),n);return}else if(t.length>1){Lt(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||r===void 0&&a==null||(a=Dt(a),r===void 0||Et(i)&&Et(a)&&!Array.isArray(a)?Ft(i,a):Pt(e,r,a))}function Rt(...[e,t]){let n=Dt(e||{}),r=Array.isArray(n),i=Tt(n);function a(...e){h(()=>{r&&e.length===1?It(n,e[0]):Lt(n,e)})}return[i,a]}let zt=new WeakMap,Bt={get(e,t){if(t===xt)return e;let n=e[t],r;return Et(n)?zt.get(n)||(zt.set(n,r=new Proxy(n,Bt)),r):n},set(e,t,n){return Pt(e,t,Dt(n)),!0},deleteProperty(e,t){return Pt(e,t,void 0,!0),!0}};function Vt(e){return t=>{if(Et(t)){let n;(n=zt.get(t))||zt.set(t,n=new Proxy(t,Bt)),e(n)}return t}}var Ht,Ut,Wt=n((()=>{Ht=null,Ut=()=>{if(Ht!==null)return Ht;try{Ht=window.matchMedia(`(color-gamut: p3)`).matches}catch{Ht=!1}return Ht}})),Gt,Kt,qt,Jt,Yt=n((()=>{Wt(),Gt=Ut(),Kt=`210, 57, 192`,qt=`0.84 0.19 0.78`,Jt=e=>Gt?`color(display-p3 ${qt} / ${e})`:`rgba(${Kt}, ${e})`})),Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,K,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,q=n((()=>{Yt(),Xt=`0.2.0-dev.23bce0e`,Zt=`var(--rg-panel-bg)`,Qt=`var(--rg-shadow)`,$t=-1e3,en=.95,tn=1500,nn=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],rn=5e3,an=8e3,on=1e4,sn=.5,cn=2147483647,ln=2147483645,un=.7,dn=1e3/60,K=.01,fn=Jt(.4),pn=Jt(.05),mn=Jt(.5),hn=Jt(.08),gn=Jt(.15),_n=.2,vn=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],yn=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),bn=new Set([`a`,`button`,`code`,`label`,`option`,`pre`,`summary`,`text`]),xn=new Set([`script`,`style`,`template`,`noscript`]),Sn=[`Meta`,`Control`,`Shift`,`Alt`],Cn=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),wn=`data-react-grab-frozen`,Tn=`data-react-grab-same-origin-frame`,En=.5,Dn=`data-react-grab-input`,On=.9,kn=.5,An=`copy`,jn=`comment`,Mn=`superellipse(1.25)`,Nn=.01,Pn=1e3,Fn={left:-9999,top:-9999},In={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},Ln=1e3,Rn=-9999})),zn,Bn=n((()=>{zn=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE})),Vn,Hn=n((()=>{Bn(),Vn=e=>zn(e)&&e.namespaceURI===`http://www.w3.org/1999/xhtml`})),Un,J=n((()=>{Hn(),Un=e=>Vn(e)&&e.tagName===`IFRAME`})),Wn,Gn,Kn,qn=n((()=>{q(),Wn=new WeakMap,Gn=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?t:0},Kn=e=>{let t=performance.now(),n=Wn.get(e);if(n&&t-n.timestamp<16)return n.metrics;let r=e.ownerDocument.defaultView?.getComputedStyle(e),i;if(!r)i={contentOffsetX:e.clientLeft,contentOffsetY:e.clientTop,height:e.offsetHeight,width:e.offsetWidth};else{let t=Gn(r.borderLeftWidth),n=Gn(r.borderRightWidth),a=Gn(r.borderTopWidth),o=Gn(r.borderBottomWidth),s=Gn(r.paddingLeft),c=Gn(r.paddingRight),l=Gn(r.paddingTop),u=Gn(r.paddingBottom),d=Gn(r.width),f=Gn(r.height),p=t+n+s+c,m=a+o+l+u,h=r.boxSizing===`border-box`?d:d+p,g=r.boxSizing===`border-box`?f:f+m;i={contentOffsetX:t+s,contentOffsetY:a+l,height:g>0?g:e.offsetHeight,width:h>0?h:e.offsetWidth}}return Wn.set(e,{metrics:i,timestamp:t}),i}})),Jn,Yn=n((()=>{Jn=(e,t)=>t>0?e/t:1})),Xn,Zn=n((()=>{Xn=e=>{if(!e)return null;try{return e.frameElement}catch{return null}}})),Qn,$n=n((()=>{J(),qn(),Yn(),Zn(),Qn=(e,t,n)=>{let r=t,i=n,a=1,o=1,s=e;for(;s&&s!==window;){let e=Xn(s);if(!e||!Un(e))break;let t=e.getBoundingClientRect(),n=Kn(e),c=Jn(t.width,n.width),l=Jn(t.height,n.height);r=t.left+(n.contentOffsetX+r)*c,i=t.top+(n.contentOffsetY+i)*l,a*=c,o*=l,s=e.ownerDocument.defaultView}return{x:r,y:i,scaleX:a,scaleY:o}}})),er,tr=n((()=>{er=e=>{let t=e.ownerDocument.defaultView;return t?t.getComputedStyle(e):window.getComputedStyle(e)}})),nr,rr,ir=n((()=>{q(),nr=(e,t)=>e.replace(/([\d.]+)px/g,(e,n)=>{let r=Number(n)*Math.abs(t);return`${Number(r.toFixed(3))}px`}),rr=(e,t,n)=>{let[r,i]=e.split(`/`).map(e=>e.trim()),a=nr(r,t),o=nr(i??r,n);return i===void 0&&a===o?a:`${a} / ${o}`}})),ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr=n((()=>{ar=e=>Object.assign(e,{[Symbol.dispose]:e}),or=`0.6.1`,sr=`bippy-${or}`,cr=Object.defineProperty,lr=Object.prototype.hasOwnProperty,ur=()=>{},dr=e=>{try{Function.prototype.toString.call(e).indexOf(`^_^`)>-1&&setTimeout(()=>{throw Error(`React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build`)})}catch{}},fr=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),pr=!1,hr=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>pr?!0:(e&&typeof e.inject==`function`&&(mr=e.inject.toString()),!!mr?.includes(`(injected)`)),gr=new Set,_r=new Set,vr=e=>{e&&gr.add(e);let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:sr,checkDCE:dr,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),_r.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,gr.forEach(e=>e())),i},on:ur,onCommitFiberRoot:ur,onCommitFiberUnmount:ur,onPostCommitFiberRoot:ur,renderers:t,supportsFiber:!0,supportsFlight:!0};try{cr(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t,n.size>0&&(n.forEach((e,n)=>{_r.add(e),t.renderers.set(n,e)}),yr(e))}}});let t=window.hasOwnProperty,n=!1;cr(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{yr(e)}return r},yr=e=>{e&&gr.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=dr,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=sr,t._instrumentationIsActive=!1;let e=fr(t);if(e||(t.on=ur),t.renderers.size){t._instrumentationIsActive=!0,gr.forEach(e=>e());return}let n=t.inject,r=hr(t);r&&!e&&(pr=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return _r.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,gr.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||hr())&&e?.()}catch{}},br=()=>lr.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),xr=e=>br()?(yr(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):vr(e),Sr=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),Cr=()=>{try{Sr()&&xr()}catch{}}})),Tr=n((()=>{wr(),Cr()}));function Er(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await Lr(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=Ir(i,t,n);if(e)return e;i=n?null:i.sibling}return null}var Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di=n((()=>{wr(),Dr=60111,Or=`Symbol(react.concurrent_mode)`,kr=`Symbol(react.async_mode)`,Ar=e=>{switch(e.tag){case 5:case 26:case 27:return!0;default:return typeof e.type==`string`}},jr=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}},Mr=e=>!e||typeof e!=`object`?!1:`pendingProps`in e&&!(`containerInfo`in e),Nr=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0;switch(e.tag){case 1:case 9:case 11:case 0:case 14:case 15:return(r&1)==1;default:return e.alternate?n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref:!0}},Pr=e=>{switch(e.tag){case 18:return!0;case 7:case 6:case 23:case 22:return!0;case 3:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===`react.concurrent_mode`||t.description===`react.async_mode`;switch(t){case Dr:case Or:case kr:return!0;default:return!1}}}},Fr=e=>{let t=[],n=[];for(Ar(e)?t.push(e):e.child&&n.push(e.child);n.length;){let e=n.pop();if(!e)break;Ar(e)?t.push(e):e.child&&n.push(e.child),e.sibling&&n.push(e.sibling)}return t},Ir=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=Ir(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Lr=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await Lr(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Rr=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?Rr(t.type||t.render):null},zr=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=Rr(t);return r&&(r.displayName||r.name)||null},Br=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||fr(e)||hr(e)},Vr=new Set,Hr=e=>{let t=e.alternate;if(!t)return e;if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let t of Vr){let n=Er(t.current,t=>{if(t===e)return!0});if(n)return n}return e},Ur=0,Wr=new WeakMap,Gr=(e,t=Ur++)=>{Wr.set(e,t)},Kr=e=>{let t=Wr.get(e);return t===void 0&&e.alternate&&(t=Wr.get(e.alternate)),t===void 0&&(t=Ur++,Gr(e,t)),t},qr=(e,t,n)=>{let r=t;for(;r!=null;){if(Wr.has(r)||Kr(r),!Pr(r)&&Nr(r)&&e(r,`mount`),r.tag===13)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&qr(e,t,!1)}}else{let t=null;r.child!==null&&(t=r.child.child),t!==null&&qr(e,t,!1)}else r.child!=null&&qr(e,r.child,!0);r=n?r.sibling:null}},Jr=(e,t,n,r)=>{if(Wr.has(t)||Kr(t),!n)return;Wr.has(n)||Kr(n);let i=t.tag===13,a=!Pr(t);a&&Nr(t)&&e(t,`update`);let o=i&&n.memoizedState!==null,s=i&&t.memoizedState!==null;if(o&&s){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&Jr(e,r,i,t)}else if(o&&!s){let n=t.child;n!==null&&qr(e,n,!0)}else if(!o&&s){Xr(e,n);let r=t.child?.sibling??null;r!==null&&qr(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;){if(n.alternate){let i=n.alternate;Jr(e,n,i,a?t:r)}else qr(e,n,!1);n=n.sibling}}},Yr=(e,t)=>{(t.tag===3||!Pr(t))&&e(t,`unmount`)},Xr=(e,t)=>{let n=t.tag===13&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(Yr(e,r),Xr(e,r)),r=r.sibling},Zr=e=>{if(!br())return null;let t=e;for(;t.return;)t=t.return;let n=ai.get(t.stateNode);return n===void 0?null:xr().renderers?.get(n)??null},Qr=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),$r=(e,t=[])=>{if(!Qr(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);Qr(i)?n.push(...$r(i,a)):n.push({path:a,value:i})}return n},ei=new Set,ti=new Set,ni=new Set,ri=new Set,ii=new WeakMap,ai=new WeakMap,oi=e=>{let t=ii.get(e)??{};if(ii.set(e,t),!t.onCommitFiberRoot||e.onCommitFiberRoot!==t.onCommitFiberRoot){let n=e.onCommitFiberRoot,r=(t,i,a)=>{if(n?.(t,i,a),ii.get(e)?.onCommitFiberRoot===r){Vr.add(i),ai.set(i,t);for(let e of ei)e(t,i,a)}};t.onCommitFiberRoot=r,e.onCommitFiberRoot=r}if(!t.onCommitFiberUnmount||e.onCommitFiberUnmount!==t.onCommitFiberUnmount){let n=e.onCommitFiberUnmount,r=(t,i)=>{if(n?.(t,i),ii.get(e)?.onCommitFiberUnmount===r)for(let e of ti)e(t,i)};t.onCommitFiberUnmount=r,e.onCommitFiberUnmount=r}if(!t.onPostCommitFiberRoot||e.onPostCommitFiberRoot!==t.onPostCommitFiberRoot){let n=e.onPostCommitFiberRoot,r=(t,i)=>{if(n?.(t,i),ii.get(e)?.onPostCommitFiberRoot===r)for(let e of ni)e(t,i)};t.onPostCommitFiberRoot=r,e.onPostCommitFiberRoot=r}if(!t.onScheduleFiberRoot||e.onScheduleFiberRoot!==t.onScheduleFiberRoot){let n=e.onScheduleFiberRoot,r=(t,i,a)=>{if(n?.(t,i,a),ii.get(e)?.onScheduleFiberRoot===r)for(let e of ri)e(t,i,a)};t.onScheduleFiberRoot=r,e.onScheduleFiberRoot=r}},si=e=>{let t=xr(e.onActive);t._instrumentationSource=e.name??sr,oi(t);let{onActive:n,onCommitFiberRoot:r,onCommitFiberUnmount:i,onPostCommitFiberRoot:a,onScheduleFiberRoot:o}=e;return r&&ei.add(r),i&&ti.add(i),a&&ni.add(a),o&&ri.add(o),ar(()=>{n&&gr.delete(n),r&&ei.delete(r),i&&ti.delete(i),a&&ni.delete(a),o&&ri.delete(o)})},ci=new Set,li=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`),ui=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;let t=e.__internalInstanceHandle??e._internalInstanceHandle;if(Mr(t))return t;let n=e;for(let e of ci){let t=n[e];if(t)return t}for(let e of Object.keys(n))if(li(e))return ci.add(e),n[e]||null;for(let t of Vr){if(Zr(t.current)?.findFiberByHostInstance)continue;let n=Er(t.current,t=>t.stateNode===e);if(n)return n}}return null}})),fi=n((()=>{wr(),Tr(),di()})),pi,mi,hi,gi,_i=n((()=>{fi(),pi=new WeakMap,mi=(e,t)=>{pi.set(e,t)},hi=e=>pi.get(e)??null,gi=e=>hi(e)?.getFiber()??ui(e)})),vi,yi,bi,xi,Y,Si=n((()=>{q(),$n(),tr(),ir(),_i(),vi=new WeakMap,yi=new WeakMap,bi=()=>{vi=new WeakMap,yi=new WeakMap},xi=(e,t,n)=>{let r=yi.get(e);if(r&&n-r.timestamp<200)return r.borderRadius;let i=(t??er(e)).borderRadius||`0px`;return yi.set(e,{borderRadius:i,timestamp:n}),i},Y=e=>{let t=performance.now(),n=vi.get(e);if(n&&t-n.timestamp<16)return n.bounds;let r=hi(e);if(r){let n=r.getBounds();return vi.set(e,{bounds:n,timestamp:t}),n}let i=e.getBoundingClientRect(),a=Qn(e.ownerDocument.defaultView,i.left,i.top),o={borderRadius:rr(xi(e,null,t),a.scaleX,a.scaleY),height:i.height*a.scaleY,width:i.width*a.scaleX,x:a.x,y:a.y};return vi.set(e,{bounds:o,timestamp:t}),o}}));Si();let Ci=e=>({x:e.x+e.width/2,y:e.y+e.height/2});var X,wi=n((()=>{_i(),X=e=>{if(!e)return!1;let t=hi(e);return t?t.isConnected():!!(e.isConnected||e.ownerDocument?.contains(e))}}));wi();let Ti=e=>{let t=0,n=e.previousElementSibling;for(;n;)t+=1,n=n.previousElementSibling;return t};var Ei,Di=n((()=>{Ei=e=>{let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.ShadowRoot)}}));fi(),Di(),Bn();let Oi=new WeakMap,ki=e=>{if(e.anchorElement.isConnected)return e.anchorElement;let t=e.anchorElement.tagName,n=Hr(e.anchorParentFiber);if(Ar(n)){let r=n.stateNode;if(!zn(r)||!r.isConnected)return null;let i=r.children[e.anchorIndexInParent];return i&&i.tagName===t?i:null}for(let e of Fr(n)){let n=e.stateNode;if(zn(n)&&n.isConnected&&n.tagName===t)return n}return null},Ai=(e,t)=>{let n=e;for(let e of t){let t=(e.isShadowChild?n.shadowRoot?.children:n.children)?.[e.childIndex];if(!t)return null;n=t}return n},ji=e=>{let t=[],n=e,r=ui(n);for(;n&&!r;){let e=n.parentElement;if(e)t.unshift({childIndex:Ti(n),isShadowChild:!1}),n=e;else{let e=n.getRootNode();if(!Ei(e))break;t.unshift({childIndex:Ti(n),isShadowChild:!0}),n=e.host}r=ui(n)}let i=r?.return;return!n||!i?null:{anchorElement:n,anchorParentFiber:i,anchorIndexInParent:Ti(n),domPath:t,targetTagName:e.tagName}},Mi=(e,t)=>e.anchorElement.isConnected&&e.anchorIndexInParent===Ti(e.anchorElement)&&Ai(e.anchorElement,e.domPath)===t,Ni=e=>{if(!e.isConnected)return;let t=Oi.get(e);if(t&&Mi(t,e))return;let n=ji(e);n&&Oi.set(e,n)},Pi=e=>{if(e.isConnected)return e;let t=Oi.get(e);if(!t)return null;let n=ki(t);if(!n)return null;let r=Ai(n,t.domPath);return r&&r.isConnected&&r.tagName===t.targetTagName?r:null};R(),q();let Fi=e=>{let t=Pi(e)??e;return Ni(t),t},Ii=e=>{for(let t=0;t<e.frozenElements.length;t+=1)e.frozenElements[t]=Fi(e.frozenElements[t]);e.frozenElement=e.frozenElement&&Fi(e.frozenElement),e.detectedElement=e.detectedElement&&Fi(e.detectedElement),e.contextMenuElement=e.contextMenuElement&&Fi(e.contextMenuElement);for(let t of e.labelInstances)if(t.element&&=Fi(t.element),t.elements)for(let e=0;e<t.elements.length;e+=1)t.elements[e]=Fi(t.elements[e]);for(let t of e.grabbedBoxes)t.element&&=Fi(t.element)},Li=e=>({selectionInteractionLockDepth:0,wasActivatedByToggle:!1,pendingCommentMode:!1,keyHoldDuration:e.keyHoldDuration,dragStart:{x:$t,y:$t},copyStart:{x:$t,y:$t},copyOffsetFromCenterX:0,detectedElement:null,frozenElement:null,frozenElements:[],frozenDragRect:null,lastGrabbedElement:null,selectionFilePath:null,selectionLineNumber:null,inputText:``,grabbedBoxes:[],labelInstances:[],isTouchMode:!1,activationTimestamp:null,previouslyFocusedElement:null,contextMenuPosition:null,contextMenuElement:null,contextMenuClickOffset:null}),Ri=e=>{let[t,n]=Rt(Li(e)),[r,i]=c({x:$t,y:$t}),[a,o]=c(0),[s,l]=c({state:`idle`}),u=e=>{n(Vt(t=>{e(t),t.frozenElement=t.frozenElements.length>0?t.frozenElements[0]:null,t.frozenDragRect=null;for(let e of t.frozenElements)Ni(e)}))},d=()=>{u(e=>{e.frozenElements=[]})},f=e=>{l(t=>t.state===`active`?{...t,phase:e}:t)},p={startHold:e=>{e!==void 0&&n(`keyHoldDuration`,e),l({state:`holding`,startedAt:Date.now()})},releaseHold:()=>{s().state===`holding`&&l({state:`idle`})},activate:()=>{h(()=>{l({state:`active`,phase:`hovering`,isPromptMode:!1,isPendingDismiss:!1}),n(`activationTimestamp`,Date.now()),n(`previouslyFocusedElement`,document.activeElement)})},deactivate:()=>{h(()=>{l({state:`idle`}),n(Vt(e=>{e.wasActivatedByToggle=!1,e.pendingCommentMode=!1,e.inputText=``,e.frozenElement=null,e.frozenElements=[],e.frozenDragRect=null,e.activationTimestamp=null,e.previouslyFocusedElement=null,e.contextMenuPosition=null,e.contextMenuElement=null,e.contextMenuClickOffset=null,e.isTouchMode&&(e.detectedElement=null)}))})},toggle:()=>{t.activationTimestamp===null?(n(`wasActivatedByToggle`,!0),p.activate()):p.deactivate()},freeze:()=>{if(s().state===`active`){let e=t.frozenElement??t.detectedElement;e&&(Ni(e),n(`frozenElement`,e)),f(`frozen`)}},unfreeze:()=>{s().state===`active`&&h(()=>{n(Vt(e=>{e.frozenElement=null,e.frozenElements=[],e.frozenDragRect=null})),f(`hovering`)})},startDrag:(e,t)=>{s().state===`active`&&h(()=>{t||d(),n(`dragStart`,{x:e.x+window.scrollX,y:e.y+window.scrollY}),f(`dragging-select`)})},startDragReposition:()=>{let e=s();e.state===`active`&&e.phase===`dragging-select`&&f(`dragging-reposition`)},stopDragReposition:()=>{let e=s();e.state===`active`&&e.phase===`dragging-reposition`&&f(`dragging-select`)},shiftDragStart:e=>{let t=s();t.state===`active`&&t.phase===`dragging-reposition`&&n(`dragStart`,t=>({x:t.x+e.x,y:t.y+e.y}))},endDrag:()=>{let e=s();e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)&&h(()=>{n(`dragStart`,{x:$t,y:$t}),f(`justDragged`)})},cancelDrag:()=>{let e=s();e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)&&h(()=>{n(`dragStart`,{x:$t,y:$t}),f(`hovering`)})},finishJustDragged:()=>{let e=s();e.state===`active`&&e.phase===`justDragged`&&f(`hovering`)},startCopy:()=>{let e=s().state===`active`;l({state:`copying`,startedAt:Date.now(),wasActive:e})},completeCopy:()=>{let e=s(),t=e.state===`copying`?e.wasActive:!1;l({state:`justCopied`,copiedAt:Date.now(),wasActive:t})},finishJustCopied:()=>{let e=s();e.state===`justCopied`&&(e.wasActive&&!t.wasActivatedByToggle?h(()=>{d(),l({state:`active`,phase:`hovering`,isPromptMode:!1,isPendingDismiss:!1})}):p.deactivate())},enterPromptMode:(e,t)=>{let{x:r}=Ci(Y(t));Ni(t),h(()=>{n(`copyStart`,e),n(`copyOffsetFromCenterX`,e.x-r),i(e),n(`frozenElement`,t),n(`wasActivatedByToggle`,!0),s().state===`active`?l(e=>e.state===`active`?{...e,isPromptMode:!0,phase:`frozen`}:e):(l({state:`active`,phase:`frozen`,isPromptMode:!0,isPendingDismiss:!1}),n(`activationTimestamp`,Date.now()),n(`previouslyFocusedElement`,document.activeElement))})},exitPromptMode:()=>{l(e=>e.state===`active`?{...e,isPromptMode:!1,isPendingDismiss:!1}:e)},setInputText:e=>{n(`inputText`,e)},clearInputText:()=>{n(`inputText`,``)},setPendingDismiss:e=>{l(t=>t.state===`active`?{...t,isPendingDismiss:e}:t)},setPointer:e=>{i(t=>t.x===e.x&&t.y===e.y?t:e)},setDetectedElement:e=>{e&&Ni(e),n(`detectedElement`,e)},setFrozenElement:e=>{u(t=>{t.frozenElements=[e]})},setFrozenElements:e=>{u(t=>{t.frozenElements=e})},toggleFrozenElement:e=>{u(t=>{let n=t.frozenElements.indexOf(e);n>=0?t.frozenElements.splice(n,1):t.frozenElements.push(e)})},addFrozenElements:e=>{u(t=>{for(let n of e)t.frozenElements.includes(n)||t.frozenElements.push(n)})},setFrozenDragRect:e=>{n(`frozenDragRect`,e)},relinkLiveElements:()=>{n(Vt(Ii))},setCopyStart:(e,t)=>{let{x:r}=Ci(Y(t));n(`copyStart`,e),n(`copyOffsetFromCenterX`,e.x-r)},setLastGrabbed:e=>{n(`lastGrabbedElement`,e)},setWasActivatedByToggle:e=>{n(`wasActivatedByToggle`,e)},setPendingCommentMode:e=>{n(`pendingCommentMode`,e)},setTouchMode:e=>{n(`isTouchMode`,e)},incrementSelectionInteractionLockDepth:()=>{n(`selectionInteractionLockDepth`,e=>e+1)},decrementSelectionInteractionLockDepth:()=>{n(`selectionInteractionLockDepth`,e=>Math.max(0,e-1))},setSelectionSource:(e,t)=>{h(()=>{n(`selectionFilePath`,e),n(`selectionLineNumber`,t)})},incrementViewportVersion:()=>{o(e=>e+1)},addGrabbedBox:e=>{e.element&&Ni(e.element),n(`grabbedBoxes`,t=>[...t,e])},removeGrabbedBox:e=>{n(`grabbedBoxes`,t=>t.filter(t=>t.id!==e))},clearGrabbedBoxes:()=>{n(`grabbedBoxes`,[])},addLabelInstance:e=>{e.element&&Ni(e.element);for(let t of e.elements??[])Ni(t);n(`labelInstances`,t=>[...t,e])},updateLabelInstance:(e,r,i)=>{let a=t.labelInstances.findIndex(t=>t.id===e);a!==-1&&h(()=>{n(`labelInstances`,a,`status`,r),i===void 0?r!==`error`&&n(`labelInstances`,a,`errorMessage`,void 0):n(`labelInstances`,a,`errorMessage`,i)})},removeLabelInstance:e=>{n(`labelInstances`,t=>t.filter(t=>t.id!==e))},clearLabelInstances:()=>{n(`labelInstances`,[])},showContextMenu:(e,t)=>{let{x:r,y:i}=Ci(Y(t));Ni(t),h(()=>{n(`contextMenuPosition`,e),n(`contextMenuElement`,t),n(`contextMenuClickOffset`,{x:e.x-r,y:e.y-i})})},hideContextMenu:()=>{h(()=>{n(`contextMenuPosition`,null),n(`contextMenuElement`,null),n(`contextMenuClickOffset`,null)})},updateContextMenuPosition:()=>{let e=t.contextMenuElement,r=t.contextMenuClickOffset;if(!e||!r||!X(e))return;let{x:i,y:a}=Ci(Y(e));n(`contextMenuPosition`,{x:i+r.x,y:a+r.y})}};return{store:t,actions:p,pointer:r,viewportVersion:a,current:s}};var zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi=n((()=>{zi=class extends Error{constructor(e,t){super(e,t),this.name=`ReactGrabError`}},Bi=class extends zi{constructor(e,t){super(e,{cause:t}),this.name=`RecoverableError`}},Vi=class extends zi{constructor(e){super(`Failed to freeze page`,{cause:e}),this.name=`FreezeError`}},Hi=class extends Bi{constructor(e,t,n){super(`Failed to open source file "${e}"`,n),this.name=`OpenFileError`,this.filePath=e,this.lineNumber=t}},Ui=class extends Bi{constructor(e,t,n){super(`Plugin hook "${t}" failed for "${e}"`,n),this.name=`PluginHookError`,this.pluginName=e,this.hookName=t}},Wi=class extends Bi{constructor(e,t){super(`Plugin cleanup failed for "${e}"`,t),this.name=`PluginCleanupError`,this.pluginName=e}},Gi=class extends Bi{constructor(e,t){super(`Plugin setup failed for "${e}"`,t),this.name=`PluginSetupError`,this.pluginName=e}},Ki=class extends Bi{constructor(e,t){super(`Action "${e}" failed`,t),this.name=`ContextMenuActionError`,this.actionId=e}},qi=class extends Bi{constructor(e,t){super(`Action "${e}" enabled check failed`,t),this.name=`ContextMenuActionEnabledError`,this.actionId=e}},Ji=class extends zi{constructor(){super(`Can't generate CSS selector for non-element node type.`),this.name=`NonElementNodeError`}},Yi=class extends zi{constructor(e){super(`Timeout: Can't find a unique selector after ${e}ms`),this.name=`SelectorTimeoutError`,this.timeoutMs=e}},Xi=class extends zi{constructor(){super(`Selector was not found.`),this.name=`SelectorNotFoundError`}},Zi=class extends zi{constructor(){super(`Failed to copy`),this.name=`CopyFailedError`}}})),$i,ea=n((()=>{_i(),$i=e=>hi(e)?.getTagName()??(e.tagName||``).toLowerCase()})),ta,na,ra,ia,aa,oa=n((()=>{ea(),ta=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],na=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},ra=e=>{if(document.designMode===`on`)return!0;let t=na(e);if(!t)return!1;if(t.isContentEditable)return!0;let n=$i(t);return ta.some(e=>e===n||e===t.role)},ia=e=>{let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let e=t.selectionStart??0;return(t.selectionEnd??0)-e>0}return!1},aa=()=>{let e=window.getSelection();return e?e.toString().length>0:!1}})),sa,ca,la=n((()=>{sa=new WeakMap,ca=(e=document)=>{let t=sa.get(e);if(t!==void 0)return t;let n=e.querySelector(`script[nonce], style[nonce]`),r=n?.nonce||n?.getAttribute(`nonce`)||null;return r&&sa.set(e,r),r}})),ua,da,fa=n((()=>{ua=[[`data-rr-block`,``],[`data-rr-ignore`,``],[`data-rr-mask`,``],[`data-sentry-block`,``],[`data-sentry-ignore`,``],[`data-sentry-mask`,``],[`data-dd-privacy`,`hidden`],[`data-fs-exclude`,``],[`data-lr-exclude`,``],[`data-hj-suppress`,``],[`data-recording-disable`,``],[`data-clarity-mask`,`true`],[`data-heap-redact-text`,``]],da=e=>{for(let[t,n]of ua)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)}})),pa,ma=n((()=>{q(),pa=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===9})),ha,ga=n((()=>{Di(),ma(),Zn(),ha=e=>{if(e.assignedSlot)return e.assignedSlot;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return Ei(t)?t.host:pa(t)?Xn(t.defaultView):null}})),_a,va=n((()=>{ga(),_i(),_a=(e,t)=>{let n=hi(e)?.hostElement??e;for(;n;){if(n===t)return!0;n=ha(n)}return!1}})),ya,ba,xa,Sa,Ca,wa=n((()=>{va(),ya=null,ba=e=>{ya=e},xa=()=>ya,Sa=e=>ya?e?_a(e,ya):!1:!0,Ca=e=>e}));Qi(),oa(),la(),fa(),wa();let Ta=`data-react-grab`;q();let Ea=e=>{if(!document.body)return;let t=document.querySelectorAll(`[${Ta}]`);for(let n of t)n!==e&&n.parentNode!==e&&(n.shadowRoot||n.remove());document.body.appendChild(e)},Da=e=>{if(document.body)return Ea(e),()=>{};let t=()=>{document.removeEventListener(`DOMContentLoaded`,t),Ea(e)};return document.addEventListener(`DOMContentLoaded`,t,{once:!0}),()=>document.removeEventListener(`DOMContentLoaded`,t)},Oa=e=>{let t=window.setTimeout(()=>{Ea(e)},Pn),n=new MutationObserver(()=>{e.parentNode!==document.body&&Ea(e)});return n.observe(document.documentElement,{childList:!0}),()=>{window.clearTimeout(t),n.disconnect()}},ka=e=>{let t=document.querySelectorAll(`[${Ta}]`);for(let e of t){let t=e.shadowRoot?.querySelector(`[${Ta}]`);if(t instanceof HTMLDivElement)return{root:t,host:e,cancelPendingAttachment:Oa(e)};e.remove()}let n=document.createElement(`div`);n.setAttribute(Ta,`true`),da(n),n.style.zIndex=String(cn),n.style.position=`fixed`,n.style.inset=`0`,n.style.pointerEvents=`none`,n.style.contain=`strict`;let r=n.attachShadow({mode:`open`}),i=document.createElement(`style`),a=ca();a&&(i.nonce=a),i.textContent=`@import url("https://fonts.googleapis.com/css2?family=Geist:wght@500&display=swap");\n${e??``}`,r.appendChild(i);let o=document.createElement(`div`);o.setAttribute(Ta,`true`),r.appendChild(o);let s=Da(n),c=Oa(n);return{root:o,host:n,cancelPendingAttachment:()=>{s(),c()}}};wr(),di();let Aa=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,ja=[`rsc://`,`file:///`,`webpack-internal://`,`webpack://`,`node:`,`turbopack://`,`metro://`,`/app-pages-browser/`,`/(app-pages-browser)/`],Ma=[`rsc://`,`about://React/`],Na=[`<anonymous>`,`eval`,``],Pa=/\.(jsx|tsx|ts|js)$/,Fa=/(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i,Ia=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,La=/\(at [^)]+\)$/,Ra=[`react_stack_bottom_frame`,`react-stack-bottom-frame`],za=/(^|@)\S+:\d+/,Ba=/^\s*at .*(\S+:\d+|\(native\))/m,Va=/^(eval@)?(\[native code\])?$/,Ha=(e,t)=>{if(t?.includeInElement!==!1){let n=e.split(`
|
|
11
|
-
`),
|
|
12
|
-
`).filter(e=>!!e.match(
|
|
13
|
-
`).filter(e=>!e.match(
|
|
14
|
-
`,t))).slice(1),isTrusted:t!==-1}},
|
|
15
|
-
`,
|
|
9
|
+
this.globalThis=this.globalThis||{},this.globalThis.__REACT_GRAB_MODULE__=(function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(e&&(t=e(e=0)),t),l=(e,t)=>{let n={};for(var i in e)r(n,i,{get:e[i],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:`Module`}),n},u=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e};t=((e,t,i)=>(i=e==null?{}:n(o(e)),u(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)))(t,1);function d(e){let t=String(e),n=t.length-1;return M.context.id+(n?String.fromCharCode(96+n):``)+t}function f(e){M.context=e}function p(){return{...M.context,id:M.getNextContextId(),count:0}}function m(e,t){let n=F,r=N,i=e.length===0,a=t===void 0?r:t,o=i?Ve:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>S(()=>ve(o)));N=o,F=null;try{return de(s,!0)}finally{F=n,N=r}}function h(e,t){t=t?Object.assign({},Ie,t):Ie;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[oe.bind(n),e=>(typeof e==`function`&&(e=P&&P.running&&P.sources.has(n)?e(n.tValue):e(n.value)),se(n,e))]}function g(e,t,n){let r=le(e,t,!0,ze);Ue&&P&&P.running?I.push(r):O(r)}function _(e,t,n){let r=le(e,t,!1,ze);Ue&&P&&P.running?I.push(r):O(r)}function v(e,t,n){Re=he;let r=le(e,t,!1,ze),i=Je&&ie(Je);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),L?L.push(r):O(r)}function y(e,t,n){n=n?Object.assign({},Ie,n):Ie;let r=le(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Ue&&P&&P.running?(r.tState=ze,I.push(r)):O(r),oe.bind(r)}function b(e){return e&&typeof e==`object`&&`then`in e}function ee(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=He,c=null,l=!1,u=!1,d=`initialValue`in a,f=typeof r==`function`&&y(r),p=new Set,[m,_]=(a.storage||h)(a.initialValue),[v,ee]=h(void 0),[x,C]=h(void 0,{equals:!1}),[te,w]=h(d?`ready`:`unresolved`);M.context&&(c=M.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:M.load&&M.has(c)&&(s=M.load(c)));function T(e,t,n,r){return o===e&&(o=null,r!==void 0&&(d=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=He,P&&e&&l?(P.promises.delete(e),l=!1,de(()=>{P.running=!0,ne(t,n)},!1)):ne(t,n)),t}function ne(e,t){de(()=>{t===void 0&&_(()=>e),w(t===void 0?d?`ready`:`unresolved`:`errored`),ee(t);for(let e of p.keys())e.decrement();p.clear()},!1)}function D(){let e=Je&&ie(Je),t=m(),n=v();if(n!==void 0&&!o)throw n;return F&&!F.user&&e&&g(()=>{x(),o&&(e.resolved&&P&&l?P.promises.add(o):p.has(e)||(e.increment(),p.add(e)))}),t}function re(e=!0){if(e!==!1&&u)return;u=!1;let t=f?f():r;if(l=P&&P.running,t==null||t===!1){T(o,S(m));return}P&&o&&P.promises.delete(o);let n,a=s===He?S(()=>{try{return i(t,{value:m(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){T(o,void 0,be(n),t);return}else if(!b(a))return T(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?T(o,a.v,void 0,t):T(o,void 0,be(a.v),t),a):(u=!0,queueMicrotask(()=>u=!1),de(()=>{w(d?`refreshing`:`pending`),C()},!1),a.then(e=>T(a,e,void 0,t),e=>T(a,void 0,be(e),t)))}Object.defineProperties(D,{state:{get:()=>te()},error:{get:()=>v()},loading:{get(){let e=te();return e===`pending`||e===`refreshing`}},latest:{get(){if(!d)return D();let e=v();if(e&&!o)throw e;return m()}}});let ae=N;return f?g(()=>(ae=N,re(!1))):re(!1),[D,{refetch:e=>E(ae,()=>re(e)),mutate:_}]}function x(e){return de(e,!1)}function S(e){if(!We&&F===null)return e();let t=F;F=null;try{return We?We.untrack(e):e()}finally{F=t}}function C(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=S(()=>t(o,i,n));return i=o,s}}function te(e){v(()=>S(e))}function w(e){return N===null||(N.cleanups===null?N.cleanups=[e]:N.cleanups.push(e)),e}function T(){return F}function ne(){return N}function E(e,t){let n=N,r=F;N=e,F=null;try{return de(t,!0)}catch(e){Se(e)}finally{N=n,F=r}}function D(e){if(P&&P.running)return e(),P.done;let t=F,n=N;return Promise.resolve().then(()=>{F=t,N=n;let r;return(Ue||Je)&&(r=P||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),de(e,!1),F=N=null,r?r.done:void 0})}function re(e,t){let n=Symbol(`context`);return{id:n,Provider:we(n),defaultValue:e}}function ie(e){let t;return N&&N.context&&(t=N.context[e.id])!==void 0?t:e.defaultValue}function ae(e){let t=y(e),n=y(()=>Ce(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}function oe(){let e=P&&P.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===ze)O(this);else{let e=I;I=null,de(()=>ge(this),!1),I=e}if(F){let e=this.observers?this.observers.length:0;F.sources?(F.sources.push(this),F.sourceSlots.push(e)):(F.sources=[this],F.sourceSlots=[e]),this.observers?(this.observers.push(F),this.observerSlots.push(F.sources.length-1)):(this.observers=[F],this.observerSlots=[F.sources.length-1])}return e&&P.sources.has(this)?this.tValue:this.value}function se(e,t,n){let r=P&&P.running&&P.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(P){let r=P.running;(r||!n&&P.sources.has(e))&&(P.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&de(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=P&&P.running;r&&P.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?I.push(n):L.push(n),n.observers&&_e(n)),r?n.tState=ze:n.state=ze)}if(I.length>1e6)throw I=[],Error()},!1)}return t}function O(e){if(!e.fn)return;ve(e);let t=Ge;ce(e,P&&P.running&&P.sources.has(e)?e.tValue:e.value,t),P&&!P.running&&P.sources.has(e)&&queueMicrotask(()=>{de(()=>{P&&(P.running=!0),F=N=e,ce(e,e.tValue,t),F=N=null},!1)})}function ce(e,t,n){let r,i=N,a=F;F=N=e;try{r=e.fn(t)}catch(t){return e.pure&&(P&&P.running?(e.tState=ze,e.tOwned&&e.tOwned.forEach(ve),e.tOwned=void 0):(e.state=ze,e.owned&&e.owned.forEach(ve),e.owned=null)),e.updatedAt=n+1,Se(t)}finally{F=a,N=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?se(e,r,!0):P&&P.running&&e.pure?(P.sources.has(e)||(e.value=r),P.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function le(e,t,n,r=ze,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:N,context:N?N.context:null,pure:n};if(P&&P.running&&(a.state=0,a.tState=r),N===null||N!==Ve&&(P&&P.running&&N.pure?N.tOwned?N.tOwned.push(a):N.tOwned=[a]:N.owned?N.owned.push(a):N.owned=[a]),We&&a.fn){let e=a.fn,[t,n]=h(void 0,{equals:!1}),r=We.factory(e,n);w(()=>r.dispose());let i,o=()=>D(n).then(()=>{i&&=(i.dispose(),void 0)});a.fn=n=>(t(),P&&P.running?(i||=We.factory(e,o),i.track(n)):r.track(n))}return a}function ue(e){let t=P&&P.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Be)return ge(e);if(e.suspense&&S(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Ge);){if(t&&P.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(P.disposed.has(t))return}if((t?e.tState:e.state)===ze)O(e);else if((t?e.tState:e.state)===Be){let t=I;I=null,de(()=>ge(e,n[0]),!1),I=t}}}function de(e,t){if(I)return e();let n=!1;t||(I=[]),L?n=!0:L=[],Ge++;try{let t=e();return fe(n),t}catch(e){n||(L=null),I=null,Se(e)}}function fe(e){if(I&&=(Ue&&P&&P.running?me(I):pe(I),null),e)return;let t;if(P){if(!P.promises.size&&!P.queue.size){let e=P.sources,n=P.disposed;L.push.apply(L,P.effects),t=P.resolve;for(let e of L)`tState`in e&&(e.state=e.tState),delete e.tState;P=null,de(()=>{for(let e of n)ve(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)ve(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}qe(!1)},!1)}else if(P.running){P.running=!1,P.effects.push.apply(P.effects,L),L=null,qe(!0);return}}let n=L;L=null,n.length&&de(()=>Re(n),!1),t&&t()}function pe(e){for(let t=0;t<e.length;t++)ue(e[t])}function me(e){for(let t=0;t<e.length;t++){let n=e[t],r=P.queue;r.has(n)||(r.add(n),Ue(()=>{r.delete(n),de(()=>{P.running=!0,ue(n)},!1),P&&(P.running=!1)}))}}function he(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:ue(r)}if(M.context){if(M.count){M.effects||=[],M.effects.push(...e.slice(0,n));return}f()}for(M.effects&&(M.done||!M.count)&&(e=[...M.effects,...e],n+=M.effects.length,delete M.effects),t=0;t<n;t++)ue(e[t])}function ge(e,t){let n=P&&P.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===ze?i!==t&&(!i.updatedAt||i.updatedAt<Ge)&&ue(i):e===Be&&ge(i,t)}}}function _e(e){let t=P&&P.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=Be:r.state=Be,r.pure?I.push(r):L.push(r),r.observers&&_e(r))}}function ve(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ve(e.tOwned[t]);delete e.tOwned}if(P&&P.running&&e.pure)ye(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)ve(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}P&&P.running?e.tState=0:e.state=0}function ye(e,t){if(t||(e.tState=0,P.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ye(e.owned[t])}function be(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function xe(e,t,n){try{for(let n of t)n(e)}catch(e){Se(e,n&&n.owner||null)}}function Se(e,t=N){let n=Le&&t&&t.context&&t.context[Le],r=be(e);if(!n)throw r;L?L.push({fn(){xe(r,n,t)},state:ze}):xe(r,n,t)}function Ce(e){if(typeof e==`function`&&!e.length)return Ce(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=Ce(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function we(e,t){return function(t){let n;return _(()=>n=S(()=>(N.context={...N.context,[e]:t.value},ae(()=>t.children))),void 0),n}}function Te(e){for(let t=0;t<e.length;t++)e[t]()}function Ee(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return w(()=>Te(a)),()=>{let c=e()||[],l=c.length,u,d;return c[Fe],S(()=>{let e,t,p,h,g,_,v,y,b;if(l===0)o!==0&&(Te(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[Ye],i[0]=m(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d<l;d++)r[d]=c[d],i[d]=m(f);o=l}else{for(p=Array(l),h=Array(l),s&&(g=Array(l)),_=0,v=Math.min(o,l);_<v&&r[_]===c[_];_++);for(v=o-1,y=l-1;v>=_&&y>=_&&r[v]===c[y];v--,y--)p[y]=i[v],h[y]=a[v],s&&(g[y]=s[v]);for(e=new Map,t=Array(y+1),d=y;d>=_;d--)b=c[d],u=e.get(b),t[d]=u===void 0?-1:u,e.set(b,d);for(u=_;u<=v;u++)b=r[u],d=e.get(b),d!==void 0&&d!==-1?(p[d]=i[u],h[d]=a[u],s&&(g[d]=s[u]),d=t[d],e.set(b,d)):a[u]();for(d=_;d<l;d++)d in p?(i[d]=p[d],a[d]=h[d],s&&(s[d]=g[d],s[d](d))):i[d]=m(f);i=i.slice(0,o=l),r=c.slice(0)}return i});function f(e){if(a[d]=e,s){let[e,n]=h(d);return s[d]=n,t(c[d],e)}return t(c[d])}}}function k(e,t){if(Xe&&M.context){let n=M.context;f(p());let r=S(()=>e(t||{}));return f(n),r}return S(()=>e(t||{}))}function De(){return!0}function Oe(e){return(e=typeof e==`function`?e():e)?e:{}}function A(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function ke(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&Ne in r,e[n]=typeof r==`function`?(t=!0,y(r)):r}if(Pe&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=Oe(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Oe(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Oe(e[n])));return[...new Set(t)]}},Ze);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:A.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function Ae(e,...t){let n=t.length;if(Pe&&Ne in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},Ze));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},Ze)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}function je(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return y(Ee(()=>e.each,e.children,t||void 0))}function j(e){let t=e.keyed,n=y(()=>e.when,void 0,void 0),r=t?n:y(n,void 0,{equals:(e,t)=>!e==!t});return y(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?S(()=>a(t?i:()=>{if(!S(r))throw Qe(`Show`);return n()})):a}return e.fallback},void 0,void 0)}var M,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,N,P,Ue,We,F,I,L,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,R=c((()=>{M={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return d(this.context.count)},getNextContextId(){return d(this.context.count++)}},Me=(e,t)=>e===t,Ne=Symbol(`solid-proxy`),Pe=typeof Proxy==`function`,Fe=Symbol(`solid-track`),Ie={equals:Me},Le=null,Re=pe,ze=1,Be=2,Ve={owned:null,cleanups:null,context:null,owner:null},He={},N=null,P=null,Ue=null,We=null,F=null,I=null,L=null,Ge=0,[Ke,qe]=h(!1),Ye=Symbol(`fallback`),Xe=!1,Ze={get(e,t,n){return t===Ne?n:e.get(t)},has(e,t){return t===Ne?!0:e.has(t)},set:De,deleteProperty:De,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:De,deleteProperty:De}},ownKeys(e){return e.keys()}},Qe=e=>`Stale read from <${e}>.`}));function $e(e,t){let n=Ct[e];return typeof n==`object`?n[t]?n.$:void 0:n}function et(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}function tt(e,t,n,r={}){let i;return m(r=>{i=r,t===document?e():U(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function z(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>S(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function nt(e,t=window.document){let n=t[Dt]||(t[Dt]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,ht))}}function B(e,t,n){dt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function rt(e,t,n,r){dt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function it(e,t,n){dt(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function at(e,t){dt(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function V(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function ot(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(pt(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(pt(e,i,!0),n[i]=o)}return n}function st(e,t,n){if(!t)return n?B(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function H(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function ct(e,t={},n,r){let i={};return r||_(()=>i.children=gt(e,t.children,i.children)),_(()=>typeof t.ref==`function`&<(t.ref,e)),_(()=>ut(e,t,n,!0,i,!0)),i}function lt(e,t,n){return S(()=>e(t,n))}function U(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return gt(e,t,r,n);_(r=>gt(e,t(),r,n),r)}function ut(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=mt(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||gt(e,t.children);continue}let s=t[o];i[o]=mt(e,o,s,i[o],n,a,t)}}function dt(e){return!!M.context&&!M.done&&(!e||e.isConnected)}function ft(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function pt(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function mt(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return st(e,n,r);if(t===`classList`)return ot(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=wt.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(V(e,i,n,a),a&&nt([i]))}else if(t.slice(0,5)===`attr:`)B(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)it(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=xt.has(t))||!i&&((u=$e(t,e.tagName))||(c=bt.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(dt(e))return n;t===`class`||t===`className`?at(e,n):s&&!c&&!l?e[ft(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&Tt[t.split(`:`)[0]];r?rt(e,r,t,n):B(e,St[t]||t,n)}return n}function ht(e){if(M.registry&&M.events&&M.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),M.registry&&!M.done&&(M.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function gt(e,t,n,r,i){let a=dt(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=yt(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=yt(e,n,r)}else if(o===`function`)return _(()=>{let i=t();for(;typeof i==`function`;)i=i();n=gt(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(_t(o,t,n,i))return _(()=>n=gt(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=yt(e,n,r),s)return n}else c?n.length===0?vt(e,o,r):et(e,n,o):(n&&yt(e),vt(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=yt(e,n,r,t);yt(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function _t(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=_t(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=_t(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function vt(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function yt(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}var bt,xt,St,Ct,wt,Tt,Et,Dt,W=c((()=>{R(),bt=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),xt=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),St=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),Ct=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}}),wt=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),Tt={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},Et=e=>y(()=>e()),Dt=`_$DX_DELEGATE`}));W();var Ot=`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
10
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:"Geist", ui-sans-serif, system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:4px;--font-weight-medium:500;--radius-sm:4px;--ease-out:cubic-bezier(0, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--ease-drawer:cubic-bezier(.32, .72, 0, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.a11y-hitbox{position:relative}.a11y-hitbox:before{content:"";pointer-events:auto;width:100%;min-width:24px;height:100%;min-height:24px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing) * 0)}.top-full{top:100%}.right-full{right:100%}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing) * 0)}.left-full{left:100%}.z-1{z-index:1}.z-10{z-index:10}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.-m-0\\.5{margin:calc(var(--spacing) * -.5)}.m-0{margin:calc(var(--spacing) * 0)}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-my-1\\.5{margin-block:calc(var(--spacing) * -1.5)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2\\.5{margin-right:calc(var(--spacing) * 2.5)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2\\.5{margin-left:calc(var(--spacing) * 2.5)}.ml-4{margin-left:calc(var(--spacing) * 4)}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.list-item{display:list-item}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-\\[17px\\]{height:17px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-4{min-height:calc(var(--spacing) * 4)}.w-\\[calc\\(100\\%\\+16px\\)\\]{width:calc(100% + 16px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[150px\\]{min-width:150px}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-rotate-90{rotate:-90deg}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.interactive-scale{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}@media (hover:hover) and (pointer:fine){.interactive-scale:hover{transform:scale(1.05)}}.interactive-scale:active{transition:transform 60ms cubic-bezier(0,0,.2,1);transform:scale(.96)}.press-scale{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}.press-scale:active{transition:transform 60ms cubic-bezier(0,0,.2,1);transform:scale(.97)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.grid-cols-\\[0fr\\]{grid-template-columns:0fr}.grid-cols-\\[1fr\\]{grid-template-columns:1fr}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-\\[5px\\]{gap:5px}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded-\\[13px\\]{border-radius:13px}.rounded-\\[14px\\]{border-radius:14px}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l-\\[10px\\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-\\[10px\\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[var\\(--rg-border-button\\)\\]{border-color:var(--rg-border-button)}.border-t-\\[var\\(--rg-border-subtle\\)\\]{border-top-color:var(--rg-border-subtle)}.bg-\\[var\\(--rg-error-bg\\)\\]{background-color:var(--rg-error-bg)}.bg-\\[var\\(--rg-panel-bg\\)\\]{background-color:var(--rg-panel-bg)}.bg-\\[var\\(--rg-submit-bg\\)\\]{background-color:var(--rg-submit-bg)}.bg-\\[var\\(--rg-surface-hover\\)\\]{background-color:var(--rg-surface-hover)}.bg-transparent{background-color:#0000}.p-0{padding:calc(var(--spacing) * 0)}.px-0\\.25{padding-inline:calc(var(--spacing) * .25)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-\\[3px\\]{padding-inline:3px}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-0\\.25{padding-block:calc(var(--spacing) * .25)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-px{padding-block:1px}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-3\\.5{--tw-leading:calc(var(--spacing) * 3.5);line-height:calc(var(--spacing) * 3.5)}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.wrap-break-word{overflow-wrap:break-word}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\\[var\\(--rg-error-text\\)\\]{color:var(--rg-error-text)}.text-\\[var\\(--rg-submit-fg\\)\\]{color:var(--rg-submit-fg)}.text-\\[var\\(--rg-text-primary\\)\\]{color:var(--rg-text-primary)}.text-\\[var\\(--rg-text-primary-85\\)\\]{color:var(--rg-text-primary-85)}.text-\\[var\\(--rg-text-secondary\\)\\]{color:var(--rg-text-secondary)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.\\[box-shadow\\:var\\(--rg-shadow\\)\\]{box-shadow:var(--rg-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.\\[filter\\:var\\(--rg-drop-shadow\\)\\]{filter:var(--rg-drop-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-columns\\]{transition-property:grid-template-columns;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[padding\\,border-radius\\,transform\\]{transition-property:padding,border-radius,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[top\\,left\\,width\\,height\\,opacity\\,border-radius\\]{transition-property:top,left,width,height,opacity,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,color\\]{transition-property:transform,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-\\[80ms\\]{transition-delay:80ms}.duration-60{--tw-duration:60ms;transition-duration:60ms}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-140{--tw-duration:.14s;transition-duration:.14s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-180{--tw-duration:.18s;transition-duration:.18s}.duration-220{--tw-duration:.22s;transition-duration:.22s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-drawer{--tw-ease:var(--ease-drawer);transition-timing-function:var(--ease-drawer)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.ease-spring{--tw-ease:var(--ease-spring);transition-timing-function:var(--ease-spring)}.will-change-\\[opacity\\,transform\\]{will-change:opacity,transform}.will-change-transform{will-change:transform}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[corner-shape\\:superellipse\\(1\\.25\\)\\]{corner-shape:superellipse(1.25)}.\\[font-synthesis\\:none\\]{font-synthesis:none}@media (hover:hover){.group-hover\\:text-\\[var\\(--rg-text-primary\\)\\]:is(:where(.group):hover *){color:var(--rg-text-primary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\\:bg-\\[var\\(--rg-error-bg-hover\\)\\]:hover{background-color:var(--rg-error-bg-hover)}.hover\\:bg-\\[var\\(--rg-surface-active\\)\\]:hover{background-color:var(--rg-surface-active)}.hover\\:bg-\\[var\\(--rg-surface-hover\\)\\]:hover{background-color:var(--rg-surface-hover)}.hover\\:text-\\[var\\(--rg-text-primary\\)\\]:hover{color:var(--rg-text-primary)}}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:opacity-40:disabled{opacity:.4}}:host{all:initial;direction:ltr}:host,[data-rg-theme=dark]{--rg-panel-bg:#161616;--rg-text-primary:#fff;--rg-text-secondary:#a7a7a7;--rg-surface-hover:#ffffff1a;--rg-surface-active:#ffffff26;--rg-border-subtle:#ffffff1a;--rg-border-button:#fff3;--rg-submit-bg:#fff;--rg-submit-fg:#161616;--rg-error-text:#f87171;--rg-error-bg:#3d1515;--rg-error-bg-hover:#4d1f1f;--rg-shadow:0 2px 8px #00000014;--rg-drop-shadow:drop-shadow(0px 2px 8px #00000014);--rg-shimmer-from:#a1a1aa;--rg-shimmer-to:#d4d4d8;--rg-text-primary-85:#ffffffd9}@media (prefers-color-scheme:dark){:host:not([data-rg-theme]){--rg-panel-bg:#fff;--rg-text-primary:#171717;--rg-text-secondary:#737373;--rg-surface-hover:#0000000d;--rg-surface-active:#00000014;--rg-border-subtle:#00000014;--rg-border-button:#00000026;--rg-submit-bg:#171717;--rg-submit-fg:#fff;--rg-error-text:#dc2626;--rg-error-bg:#fee2e2;--rg-error-bg-hover:#fecaca;--rg-shadow:0 2px 12px #0000001a;--rg-drop-shadow:drop-shadow(0px 2px 12px #0000001a);--rg-shimmer-from:#71717a;--rg-shimmer-to:#a1a1aa;--rg-text-primary-85:#171717d9}}:host([data-rg-theme=light]),[data-rg-theme=light]{--rg-panel-bg:#fff;--rg-text-primary:#171717;--rg-text-secondary:#737373;--rg-surface-hover:#0000000d;--rg-surface-active:#00000014;--rg-border-subtle:#00000014;--rg-border-button:#00000026;--rg-submit-bg:#171717;--rg-submit-fg:#fff;--rg-error-text:#dc2626;--rg-error-bg:#fee2e2;--rg-error-bg-hover:#fecaca;--rg-shadow:0 2px 12px #0000001a;--rg-drop-shadow:drop-shadow(0px 2px 12px #0000001a);--rg-shimmer-from:#71717a;--rg-shimmer-to:#a1a1aa;--rg-text-primary-85:#171717d9}@media (prefers-reduced-motion:reduce){:host,:host *,:host :before,:host :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}:host :focus{box-shadow:none!important;outline:none!important}@keyframes shake{0%,to{translate:0}15%,45%{translate:calc(-3px * var(--rg-shake-x,1)) calc(-3px * var(--rg-shake-y,0))}30%,60%{translate:calc(3px * var(--rg-shake-x,1)) calc(3px * var(--rg-shake-y,0))}75%{translate:calc(-2px * var(--rg-shake-x,1)) calc(-2px * var(--rg-shake-y,0))}90%{translate:calc(2px * var(--rg-shake-x,1)) calc(2px * var(--rg-shake-y,0))}}@keyframes icon-loader-spin{0%{opacity:1}50%{opacity:.5}to{opacity:.2}}.icon-loader-bar{animation:.5s linear infinite icon-loader-spin}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.shimmer-text{background:linear-gradient(90deg, var(--rg-shimmer-from) 0%, var(--rg-shimmer-to) 25%, var(--rg-shimmer-from) 50%, var(--rg-shimmer-to) 75%, var(--rg-shimmer-from) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:2.5s linear infinite shimmer}.animate-shake,.animate-shake-vertical{will-change:translate;animation:.3s ease-out shake}@keyframes tooltip-fade-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}.animate-tooltip-fade-in{will-change:transform, opacity;animation:.1s ease-out tooltip-fade-in}.animate-shake-vertical{--rg-shake-x:0;--rg-shake-y:1}@supports (-webkit-touch-callout:none){textarea[data-react-grab-input]{font-size:16px}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}`;R();let kt=Symbol(`store-raw`),At=Symbol(`store-node`),G=Symbol(`store-has`),jt=Symbol(`store-self`);function Mt(e){let t=e[Ne];if(!t&&(Object.defineProperty(e,Ne,{value:t=new Proxy(e,Bt)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let i=0,a=n.length;i<a;i++){let a=n[i];r[a].get&&Object.defineProperty(e,a,{enumerable:r[a].enumerable,get:r[a].get.bind(t)})}}return t}function Nt(e){let t;return typeof e==`object`&&!!e&&(e[Ne]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Pt(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[kt])return n;if(!Nt(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Pt(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=Pt(i,t))!==i&&(e[a]=r))}return e}function Ft(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function It(e,t,n){if(e[t])return e[t];let[r,i]=h(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function Lt(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===Ne||t===At?n:(delete n.value,delete n.writable,n.get=()=>e[Ne][t],n)}function Rt(e){T()&&It(Ft(e,At),jt)()}function zt(e){return Rt(e),Reflect.ownKeys(e)}let Bt={get(e,t,n){if(t===kt)return e;if(t===Ne)return n;if(t===Fe)return Rt(e),n;let r=Ft(e,At),i=r[t],a=i?i():e[t];if(t===At||t===G||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);T()&&(typeof a!=`function`||e.hasOwnProperty(t))&&!(n&&n.get)&&(a=It(r,t,a)())}return Nt(a)?Mt(a):a},has(e,t){return t===kt||t===Ne||t===Fe||t===At||t===G||t===`__proto__`?!0:(T()&&It(Ft(e,G),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:zt,getOwnPropertyDescriptor:Lt};function Vt(e,t,n,r=!1){if(!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[G]&&e[G][t]&&i!==void 0&&e[G][t].$()):(e[t]=n,e[G]&&e[G][t]&&i===void 0&&e[G][t].$());let o=Ft(e,At),s;if((s=It(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=It(o,`length`,a))&&s.$(e.length)}(s=o[jt])&&s.$()}function Ht(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Vt(e,i,t[i])}}function Ut(e,t){if(typeof t==`function`&&(t=t(e)),t=Pt(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Vt(e,n,r)}Vt(e,`length`,r)}else Ht(e,t)}function Wt(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(Array.isArray(r)){for(let i=0;i<r.length;i++)Wt(e,[r[i]].concat(t),n);return}else if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&Wt(e,[i].concat(t),n);return}else if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)Wt(e,[r].concat(t),n);return}else if(t.length>1){Wt(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||r===void 0&&a==null||(a=Pt(a),r===void 0||Nt(i)&&Nt(a)&&!Array.isArray(a)?Ht(i,a):Vt(e,r,a))}function Gt(...[e,t]){let n=Pt(e||{}),r=Array.isArray(n),i=Mt(n);function a(...e){x(()=>{r&&e.length===1?Ut(n,e[0]):Wt(n,e)})}return[i,a]}let Kt=new WeakMap,qt={get(e,t){if(t===kt)return e;let n=e[t],r;return Nt(n)?Kt.get(n)||(Kt.set(n,r=new Proxy(n,qt)),r):n},set(e,t,n){return Vt(e,t,Pt(n)),!0},deleteProperty(e,t){return Vt(e,t,void 0,!0),!0}};function Jt(e){return t=>{if(Nt(t)){let n;(n=Kt.get(t))||Kt.set(t,n=new Proxy(t,qt)),e(n)}return t}}var Yt,Xt,Zt=c((()=>{Yt=null,Xt=()=>{if(Yt!==null)return Yt;try{Yt=window.matchMedia(`(color-gamut: p3)`).matches}catch{Yt=!1}return Yt}})),Qt,$t,en,tn,nn=c((()=>{Zt(),Qt=Xt(),$t=`210, 57, 192`,en=`0.84 0.19 0.78`,tn=e=>Qt?`color(display-p3 ${en} / ${e})`:`rgba(${$t}, ${e})`})),rn,an,on,sn,cn,ln,un,dn,K,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,q,Un,Wn,J=c((()=>{nn(),rn=`0.2.0-dev.38d4995`,an=`var(--rg-panel-bg)`,on=`var(--rg-shadow)`,sn=-1e3,cn=.95,ln=1500,un=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],dn=5e3,K=8e3,fn=1e4,pn=.5,mn=2147483647,hn=2147483645,gn=.7,_n=1e3/60,vn=.01,yn=tn(.4),bn=tn(.05),xn=tn(.5),Sn=tn(.08),Cn=tn(.15),wn=.2,Tn=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],En=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),Dn=new Set([`a`,`button`,`code`,`label`,`option`,`pre`,`summary`,`text`]),On=new Set([`script`,`style`,`template`,`noscript`]),kn=[`Meta`,`Control`,`Shift`,`Alt`],An=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),jn=`data-react-grab-frozen`,Mn=`data-react-grab-same-origin-frame`,Nn=.5,Pn=`data-react-grab-input`,Fn=.9,In=.5,Ln=`copy`,Rn=`comment`,zn=`superellipse(1.25)`,Bn=.01,Vn=1e3,Hn={left:-9999,top:-9999},q={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},Un=1e3,Wn=-9999})),Gn,Kn=c((()=>{Gn=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE})),qn,Jn=c((()=>{Kn(),qn=e=>Gn(e)&&e.namespaceURI===`http://www.w3.org/1999/xhtml`})),Yn,Xn=c((()=>{Jn(),Yn=e=>qn(e)&&e.tagName===`IFRAME`})),Zn,Qn,$n,er=c((()=>{J(),Zn=new WeakMap,Qn=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?t:0},$n=e=>{let t=performance.now(),n=Zn.get(e);if(n&&t-n.timestamp<16)return n.metrics;let r=e.ownerDocument.defaultView?.getComputedStyle(e),i;if(!r)i={contentOffsetX:e.clientLeft,contentOffsetY:e.clientTop,height:e.offsetHeight,width:e.offsetWidth};else{let t=Qn(r.borderLeftWidth),n=Qn(r.borderRightWidth),a=Qn(r.borderTopWidth),o=Qn(r.borderBottomWidth),s=Qn(r.paddingLeft),c=Qn(r.paddingRight),l=Qn(r.paddingTop),u=Qn(r.paddingBottom),d=Qn(r.width),f=Qn(r.height),p=t+n+s+c,m=a+o+l+u,h=r.boxSizing===`border-box`?d:d+p,g=r.boxSizing===`border-box`?f:f+m;i={contentOffsetX:t+s,contentOffsetY:a+l,height:g>0?g:e.offsetHeight,width:h>0?h:e.offsetWidth}}return Zn.set(e,{metrics:i,timestamp:t}),i}})),tr,nr=c((()=>{tr=(e,t)=>t>0?e/t:1})),rr,ir=c((()=>{rr=e=>{if(!e)return null;try{return e.frameElement}catch{return null}}})),ar,or=c((()=>{Xn(),er(),nr(),ir(),ar=(e,t,n)=>{let r=t,i=n,a=1,o=1,s=e;for(;s&&s!==window;){let e=rr(s);if(!e||!Yn(e))break;let t=e.getBoundingClientRect(),n=$n(e),c=tr(t.width,n.width),l=tr(t.height,n.height);r=t.left+(n.contentOffsetX+r)*c,i=t.top+(n.contentOffsetY+i)*l,a*=c,o*=l,s=e.ownerDocument.defaultView}return{x:r,y:i,scaleX:a,scaleY:o}}})),sr,cr=c((()=>{sr=e=>{let t=e.ownerDocument.defaultView;return t?t.getComputedStyle(e):window.getComputedStyle(e)}})),lr,ur,dr=c((()=>{J(),lr=(e,t)=>e.replace(/([\d.]+)px/g,(e,n)=>{let r=Number(n)*Math.abs(t);return`${Number(r.toFixed(3))}px`}),ur=(e,t,n)=>{let[r,i]=e.split(`/`).map(e=>e.trim()),a=lr(r,t),o=lr(i??r,n);return i===void 0&&a===o?a:`${a} / ${o}`}})),fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr=c((()=>{fr=`0.7.2`,pr=`bippy-${fr}`,mr=Object.defineProperty,hr=()=>{},gr=e=>Object.assign(e,{[Symbol.dispose]:e}),_r=e=>{try{Function.prototype.toString.call(e).indexOf(`^_^`)>-1&&setTimeout(()=>{throw Error(`React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build`)})}catch{}},vr=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),yr=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!e||typeof e.inject!=`function`||vr(e))return!1;try{return Function.prototype.toString.call(e.inject).includes(`(injected)`)}catch{return!1}},br=new Set,xr=new Set,Sr=new Set,Cr=()=>{for(let e of br)e()},wr=e=>{for(let t of Sr)t(e)},Tr=e=>(Sr.add(e),gr(()=>{Sr.delete(e)})),Er=e=>(e.renderers instanceof Map||(e.renderers=new Map),e.renderers),Dr=(e,t,n,r)=>{t.set(n,r),xr.add(r),e._instrumentationIsActive||(e._instrumentationIsActive=!0,Cr())},Or=e=>{e&&br.add(e);let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:pr,checkDCE:_r,hasUnsupportedRendererAttached:!1,inject:e=>{let i=++n;return Dr(r,t,i,e),i},on:hr,onCommitFiberRoot:hr,onCommitFiberUnmount:hr,onPostCommitFiberRoot:hr,renderers:t,supportsFiber:!0,supportsFlight:!0};try{if(mr(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t;let i=Er(r);n.forEach((e,t)=>{xr.add(e),i.set(t,e)}),(n.size>0||Sr.size>0)&&kr(e),wr(r)}}}),typeof window<`u`){let e=window.hasOwnProperty.bind(window),t=Object.getOwnPropertyDescriptor(window,`hasOwnProperty`),n=!1,r=()=>{t?mr(window,`hasOwnProperty`,t):Reflect.deleteProperty(window,`hasOwnProperty`)};mr(window,`hasOwnProperty`,{configurable:!0,value:t=>!n&&t===`__REACT_DEVTOOLS_GLOBAL_HOOK__`?(n=!0,r(),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,!1):e(t),writable:!0})}}catch{kr(e)}return r},kr=e=>{e&&br.add(e);let t=!1,n=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)return;let r=Er(n);if(!n._instrumentationSource){n.checkDCE=_r,n.supportsFiber=!0,n.supportsFlight=!0,n.hasUnsupportedRendererAttached=!1,n._instrumentationSource=pr,n._instrumentationIsActive=!1;let e=vr(n);e||(n.on=hr),r.size?(r.forEach(e=>xr.add(e)),n._instrumentationIsActive=!0,Cr(),t=!0):!e&&yr(n)&&(n._instrumentationIsActive=!0,Cr(),t=!0);let i=n.inject;n.inject=e=>{let t=i.call(n,e);return Dr(n,r,t,e),t}}!t&&(r.size||n._instrumentationIsActive)&&e?.()},Ar=()=>Object.hasOwn(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),jr=e=>Ar()?(kr(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__??Or(e)):Or(e)})),Nr=c((()=>{Mr();try{jr()}catch{}}));function Pr(e,t,n=!1){if(!e)return null;let r=t(e);return pi(r)?Promise.resolve(r).then(r=>r===!0?e:mi(e,t,n)):r===!0?e:mi(e,t,n)}var Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui=c((()=>{Mr(),Fr=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,Ir=/^\d+$/,Lr=e=>Rr(e)!==null,Rr=e=>{let t=Fr.exec(e);if(!t)return null;let n=t[4]?.split(`.`)??[];return n.some(e=>Ir.test(e)&&e.length>1&&e.startsWith(`0`))?null:{major:t[1],minor:t[2],patch:t[3],prerelease:n}},zr=(e,t)=>e.length===t.length?e===t?0:e<t?-1:1:e.length<t.length?-1:1,Br=(e,t)=>{let n=Ir.test(e),r=Ir.test(t);return n&&r?zr(e,t):n===r?e===t?0:e<t?-1:1:n?-1:1},Vr=(e,t)=>{if(e.length===0||t.length===0)return e.length===t.length?0:e.length===0?1:-1;let n=Math.max(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===void 0||i===void 0)return n===void 0?-1:1;let a=Br(n,i);if(a!==0)return a}return 0},Hr=(e,t)=>{let n=Rr(e),r=Rr(t);if(!n||!r)return null;let i=zr(n.major,r.major);if(i!==0)return i;let a=zr(n.minor,r.minor);if(a!==0)return a;let o=zr(n.patch,r.patch);return o===0?Vr(n.prerelease,r.prerelease):o},Ur={ChildDeletion:16,Cloned:8,ContentReset:32,Hydrating:4096,PerformedWork:1,Placement:2,Snapshot:1024,Update:4,Visibility:8192},Wr={CONCURRENT_MODE_NUMBER:60111,CONCURRENT_MODE_SYMBOL_DESCRIPTION:`react.concurrent_mode`,CONCURRENT_MODE_SYMBOL_STRING:`Symbol(react.concurrent_mode)`,DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION:`react.async_mode`,DEPRECATED_ASYNC_MODE_SYMBOL_STRING:`Symbol(react.async_mode)`,ELEMENT_SYMBOL_STRING:`Symbol(react.transitional.element)`,LEGACY_ELEMENT_SYMBOL_STRING:`Symbol(react.element)`},Gr=(e=>e)({"16.0.0":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:0,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:9},"16.4.3-alpha":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostHoistable:-1,HostPortal:6,HostRoot:5,HostSingleton:-1,HostText:8,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:4,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"16.6.0-beta.0":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:-1,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,ScopeComponent:-1,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"17.0.0-alpha":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:24,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"17.0.2":{ActivityComponent:31,CacheComponent:24,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:26,HostPortal:4,HostRoot:3,HostSingleton:27,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:28,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:23,MemoComponent:14,Mode:8,OffscreenComponent:22,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:29,TracingMarkerComponent:25,ViewTransitionComponent:30,YieldComponent:-1}}),Kr=[{isMinimumExcluded:!0,minimumVersion:`17.0.1`,workTags:Gr[`17.0.2`]},{isMinimumExcluded:!1,minimumVersion:`17.0.0-alpha`,workTags:Gr[`17.0.0-alpha`]},{isMinimumExcluded:!1,minimumVersion:`16.6.0-beta.0`,workTags:Gr[`16.6.0-beta.0`]},{isMinimumExcluded:!1,minimumVersion:`16.4.3-alpha`,workTags:Gr[`16.4.3-alpha`]}],qr=Gr[`17.0.2`],Jr=e=>{if(e===void 0)return qr;for(let t of Kr){let n=Hr(e,t.minimumVersion);if(n===null)return qr;if(n===1||n===0&&!t.isMinimumExcluded)return t.workTags}return Gr[`16.0.0`]},Yr=Jr(),Xr=new WeakMap,Zr=e=>e.startsWith(`0.0.0-`)?Yr:Jr(e),Qr=e=>{let t=e?.reconcilerVersion;return t&&Lr(t)?Zr(t):e?.version?Zr(e.version):Yr},$r=(e,t)=>{let n=Qr(t);Xr.set(e,n),e.alternate&&Xr.set(e.alternate,n)},ei=e=>{let t=Xr.get(e);if(t)return t;let n=[e],r=e;for(;r.return;)r=r.return,n.push(r);let i=Xr.get(r)??Yr;for(let e of n)Xr.set(e,i),e.alternate&&Xr.set(e.alternate,i);return i},Ur.Placement|Ur.Update|Ur.ChildDeletion|Ur.ContentReset|Ur.Hydrating|Ur.Visibility|Ur.Snapshot,ti=class extends Error{constructor(e,t){super(e,{cause:t}),this.name=`BippyError`}},ni=class extends ti{constructor(e,t){super(e,t),this.name=`BippyHookInspectionError`}},ri=class extends ni{constructor(e,t){super(e,t),this.name=`BippyUnsupportedHookError`}},ii=class extends ti{constructor(e,t){super(e,t),this.name=`BippySourceMapError`}},ai=e=>typeof e==`function`,oi=e=>{let t=`displayName`in e?e.displayName:null;if(typeof t==`string`&&t)return t;let n=`name`in e?e.name:null;return typeof n==`string`&&n?n:null},si=e=>typeof e==`object`&&!!e&&`tag`in e&&`stateNode`in e&&`return`in e&&`child`in e&&`sibling`in e&&`flags`in e,ci=e=>typeof e==`object`&&!!e&&`current`in e&&si(e.current),li=e=>{let t=ei(e);switch(e.tag){case t.HostComponent:case t.HostText:case t.HostHoistable:case t.HostSingleton:return!0;default:return!1}},ui=e=>{let t=ei(e);switch(e.tag){case t.ClassComponent:case t.ForwardRef:case t.FunctionComponent:case t.MemoComponent:case t.SimpleMemoComponent:return!0;default:return!1}},di=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0,i=ei(e);switch(e.tag){case i.ClassComponent:case i.ContextConsumer:case i.ForwardRef:case i.FunctionComponent:case i.MemoComponent:case i.SimpleMemoComponent:return(r&Ur.PerformedWork)===Ur.PerformedWork;default:return!e.alternate||n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref}},fi=e=>{let t=ei(e);switch(e.tag){case t.DehydratedSuspenseComponent:return!0;case t.Fragment:case t.HostText:case t.LegacyHiddenComponent:case t.OffscreenComponent:return!0;case t.HostRoot:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===Wr.CONCURRENT_MODE_SYMBOL_DESCRIPTION||t.description===Wr.DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION;switch(t){case Wr.CONCURRENT_MODE_NUMBER:case Wr.CONCURRENT_MODE_SYMBOL_STRING:case Wr.DEPRECATED_ASYNC_MODE_SYMBOL_STRING:return!0;default:return!1}}}},pi=e=>(typeof e==`object`||typeof e==`function`)&&e!==null&&`then`in e&&typeof e.then==`function`,mi=(e,t,n)=>hi(n?e.return:e.child,t,n),hi=(e,t,n)=>{if(!e)return null;let r=n?null:e.sibling,i=Pr(e,t,n);return pi(i)?Promise.resolve(i).then(e=>e??hi(r,t,n)):i??hi(r,t,n)},gi=e=>ai(e)?e:typeof e!=`object`||!e?null:gi(Reflect.get(e,`type`)??Reflect.get(e,`render`)),_i=e=>{if(typeof e==`string`)return e;if(typeof e!=`function`&&typeof e!=`object`||e===null)return null;let t=oi(e);if(t)return t;let n=gi(e);return n?oi(n):null},vi=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||vr(e)||yr(e)},yi=new Set,bi=new WeakMap,xi=e=>{let t=e.alternate;if(!t)return e;let n=e;for(;n.return;)n=n.return;if(ci(n.stateNode)){let r=Pr(n.stateNode.current,n=>{if(n===e||n===t)return!0});if(r)return r}if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let n of yi){let r=Pr(n.current,n=>{if(n===e||n===t)return!0});if(r)return r}return e},Si=0,Ci=new WeakMap,wi=(e,t=Si++)=>{Ci.set(e,t),Number.isSafeInteger(t)&&t>=Si&&(Si=t+1)},Ti=e=>{let t=Ci.get(e);return t===void 0&&e.alternate&&(t=Ci.get(e.alternate)),t===void 0&&(t=Si++,wi(e,t)),t},Ei=(e,t,n)=>{let r=t;for(;r!==null;){if(Ti(r),!fi(r)&&di(r)&&e(r,`mount`),r.tag===ei(r).SuspenseComponent)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&Ei(e,t,!1)}}else{let t=r.child?.child??null;t!==null&&Ei(e,t,!1)}else r.child!==null&&Ei(e,r.child,!0);r=n?r.sibling:null}},Di=(e,t,n)=>{if(Ti(t),!n)return;Ti(n);let r=t.tag===ei(t).SuspenseComponent;!fi(t)&&di(t)&&e(t,`update`);let i=r&&n.memoizedState!==null,a=r&&t.memoizedState!==null;if(i&&a){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&Di(e,r,i)}else if(i&&!a){let n=t.child;n!==null&&Ei(e,n,!0)}else if(!i&&a){ki(e,n);let r=t.child?.sibling??null;r!==null&&Ei(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;)n.alternate?Di(e,n,n.alternate):Ei(e,n,!1),n=n.sibling}},Oi=(e,t)=>{(t.tag===ei(t).HostRoot||!fi(t))&&e(t,`unmount`)},ki=(e,t)=>{let n=t.tag===ei(t).SuspenseComponent&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(Oi(e,r),ki(e,r)),r=r.sibling},Ai=new Set,ji=new WeakMap,Mi=!1,Ni=e=>{let t=ji.get(e)??{};if(ji.set(e,t),!t.onCommitFiberRoot||e.onCommitFiberRoot!==t.onCommitFiberRoot){let n=e.onCommitFiberRoot,r=(t,i,a,o)=>{if(n&&n.call(e,t,i,a,o),ji.get(e)?.onCommitFiberRoot!==r)return;$r(i.current,e.renderers.get(t));let s=i.current.memoizedState;s===null||s!==void 0&&(s.element===null||s.element===void 0)?(yi.delete(i),bi.delete(i)):(yi.add(i),bi.set(i,t));for(let{options:e}of Ai)e.onCommitFiberRoot&&e.onCommitFiberRoot(t,i,a,o)};t.onCommitFiberRoot=r,e.onCommitFiberRoot=r}if(!t.onCommitFiberUnmount||e.onCommitFiberUnmount!==t.onCommitFiberUnmount){let n=e.onCommitFiberUnmount,r=(t,i)=>{if($r(i,e.renderers.get(t)),n&&n.call(e,t,i),ji.get(e)?.onCommitFiberUnmount===r)for(let{options:e}of Ai)e.onCommitFiberUnmount&&e.onCommitFiberUnmount(t,i)};t.onCommitFiberUnmount=r,e.onCommitFiberUnmount=r}if(!t.onPostCommitFiberRoot||e.onPostCommitFiberRoot!==t.onPostCommitFiberRoot){let n=e.onPostCommitFiberRoot,r=(t,i)=>{if(n&&n.call(e,t,i),ji.get(e)?.onPostCommitFiberRoot===r)for(let{options:e}of Ai)e.onPostCommitFiberRoot&&e.onPostCommitFiberRoot(t,i)};t.onPostCommitFiberRoot=r,e.onPostCommitFiberRoot=r}if(!t.onScheduleFiberRoot||e.onScheduleFiberRoot!==t.onScheduleFiberRoot){let n=e.onScheduleFiberRoot,r=(t,i,a)=>{if(n&&n.call(e,t,i,a),ji.get(e)?.onScheduleFiberRoot===r)for(let{options:e}of Ai)e.onScheduleFiberRoot&&e.onScheduleFiberRoot(t,i,a)};t.onScheduleFiberRoot=r,e.onScheduleFiberRoot=r}},Pi=e=>{Mi||=(Tr(Ni),!0),Ni(e)};try{Ar()&&Pi(jr())}catch{}Fi=e=>{let t=jr(e.onActive);t._instrumentationSource=e.name??pr,Pi(t);let n={options:e};return Ai.add(n),gr(()=>{e.onActive&&br.delete(e.onActive),Ai.delete(n)})},Ii=new Set,Li=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`),Ri=e=>{let t=Reflect.get(e,`_reactRootContainer`);if(typeof t!=`object`||!t)return null;let n=Reflect.get(t,`_internalRoot`);if(typeof n!=`object`||!n)return null;let r=Reflect.get(n,`current`);if(typeof r!=`object`||!r)return null;let i=Reflect.get(r,`child`);return si(i)?i:null},zi=e=>{let t=Reflect.get(e,`__internalInstanceHandle`)??Reflect.get(e,`_internalInstanceHandle`);return si(t)?t:null},Bi=e=>{if(typeof e!=`object`||!e)return e;let t=Reflect.get(e,`canonical`);if(typeof t==`object`&&t){let e=Reflect.get(t,`publicInstance`);if(typeof e==`object`&&e)return e}let n=Reflect.get(e,`_nativeTag`);return typeof n==`number`?n:e},Vi=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){let t=Ri(e);if(t)return t;let n=zi(e);if(n)return n;for(let t of Ii){let n=Reflect.get(e,t);if(si(n))return n}for(let t of Object.keys(e))if(Li(t)){Ii.add(t);let n=Reflect.get(e,t);if(si(n))return n}}if(e!=null&&(typeof e==`object`||typeof e==`number`))for(let t of yi){let n=Pr(t.current,t=>li(t)&&Bi(t.stateNode)===e);if(n)return n}return null},Hi=Vi})),Wi=c((()=>{Mr(),Nr(),Ui(),Reflect.get(t,`useSyncExternalStore`)})),Gi,Ki,qi,Ji,Yi=c((()=>{Wi(),Gi=new WeakMap,Ki=(e,t)=>{Gi.set(e,t)},qi=e=>Gi.get(e)??null,Ji=e=>qi(e)?.getFiber()??Hi(e)})),Xi,Zi,Qi,$i,Y,ea=c((()=>{J(),or(),cr(),dr(),Yi(),Xi=new WeakMap,Zi=new WeakMap,Qi=()=>{Xi=new WeakMap,Zi=new WeakMap},$i=(e,t,n)=>{let r=Zi.get(e);if(r&&n-r.timestamp<200)return r.borderRadius;let i=(t??sr(e)).borderRadius||`0px`;return Zi.set(e,{borderRadius:i,timestamp:n}),i},Y=e=>{let t=performance.now(),n=Xi.get(e);if(n&&t-n.timestamp<16)return n.bounds;let r=qi(e);if(r){let n=r.getBounds();return Xi.set(e,{bounds:n,timestamp:t}),n}let i=e.getBoundingClientRect(),a=ar(e.ownerDocument.defaultView,i.left,i.top),o={borderRadius:ur($i(e,null,t),a.scaleX,a.scaleY),height:i.height*a.scaleY,width:i.width*a.scaleX,x:a.x,y:a.y};return Xi.set(e,{bounds:o,timestamp:t}),o}}));ea();let ta=e=>({x:e.x+e.width/2,y:e.y+e.height/2});var X,na=c((()=>{Yi(),X=e=>{if(!e)return!1;let t=qi(e);return t?t.isConnected():!!(e.isConnected||e.ownerDocument?.contains(e))}}));na();let ra=e=>{let t=0,n=e.previousElementSibling;for(;n;)t+=1,n=n.previousElementSibling;return t};var ia,aa=c((()=>{ia=e=>{let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.ShadowRoot)}}));Wi(),aa(),Kn();let oa=new WeakMap,sa=e=>{if(e.anchorElement.isConnected)return e.anchorElement;let t=e.anchorElement.tagName,n=xi(e.anchorParentFiber);if(li(n)){let r=n.stateNode;if(!Gn(r)||!r.isConnected)return null;let i=r.children[e.anchorIndexInParent];return i&&i.tagName===t?i:null}return ca(n,t)},ca=(e,t)=>{let n=e.child;for(;n;){if(li(n)){let e=n.stateNode;if(Gn(e)&&e.isConnected&&e.tagName===t)return e}else if(n.child){n=n.child;continue}for(;n!==e&&!n.sibling;)if(n=n.return,!n)return null;if(n===e)return null;n=n.sibling}return null},la=(e,t)=>{let n=e;for(let e of t){let t=(e.isShadowChild?n.shadowRoot?.children:n.children)?.[e.childIndex];if(!t)return null;n=t}return n},ua=e=>{let t=[],n=e,r=Hi(n);for(;n&&!r;){let e=n.parentElement;if(e)t.unshift({childIndex:ra(n),isShadowChild:!1}),n=e;else{let e=n.getRootNode();if(!ia(e))break;t.unshift({childIndex:ra(n),isShadowChild:!0}),n=e.host}r=Hi(n)}let i=r?.return;return!n||!i?null:{anchorElement:n,anchorParentFiber:i,anchorIndexInParent:ra(n),domPath:t,targetTagName:e.tagName}},da=(e,t)=>e.anchorElement.isConnected&&e.anchorIndexInParent===ra(e.anchorElement)&&la(e.anchorElement,e.domPath)===t,fa=e=>{if(!e.isConnected)return;let t=oa.get(e);if(t&&da(t,e))return;let n=ua(e);n&&oa.set(e,n)},pa=e=>{if(e.isConnected)return e;let t=oa.get(e);if(!t)return null;let n=sa(t);if(!n)return null;let r=la(n,t.domPath);return r&&r.isConnected&&r.tagName===t.targetTagName?r:null};R(),J();let ma=e=>{let t=pa(e)??e;return fa(t),t},ha=e=>{for(let t=0;t<e.frozenElements.length;t+=1)e.frozenElements[t]=ma(e.frozenElements[t]);e.frozenElement=e.frozenElement&&ma(e.frozenElement),e.detectedElement=e.detectedElement&&ma(e.detectedElement),e.contextMenuElement=e.contextMenuElement&&ma(e.contextMenuElement);for(let t of e.labelInstances)if(t.element&&=ma(t.element),t.elements)for(let e=0;e<t.elements.length;e+=1)t.elements[e]=ma(t.elements[e]);for(let t of e.grabbedBoxes)t.element&&=ma(t.element)},ga=e=>({selectionInteractionLockDepth:0,wasActivatedByToggle:!1,pendingCommentMode:!1,keyHoldDuration:e.keyHoldDuration,dragStart:{x:sn,y:sn},copyStart:{x:sn,y:sn},copyOffsetFromCenterX:0,detectedElement:null,frozenElement:null,frozenElements:[],frozenDragRect:null,lastGrabbedElement:null,selectionFilePath:null,selectionLineNumber:null,inputText:``,grabbedBoxes:[],labelInstances:[],isTouchMode:!1,activationTimestamp:null,previouslyFocusedElement:null,contextMenuPosition:null,contextMenuElement:null,contextMenuClickOffset:null}),_a=e=>{let[t,n]=Gt(ga(e)),[r,i]=h({x:sn,y:sn}),[a,o]=h(0),[s,c]=h({state:`idle`}),l=e=>{n(Jt(t=>{e(t),t.frozenElement=t.frozenElements.length>0?t.frozenElements[0]:null,t.frozenDragRect=null;for(let e of t.frozenElements)fa(e)}))},u=()=>{l(e=>{e.frozenElements=[]})},d=e=>{c(t=>t.state===`active`?{...t,phase:e}:t)},f={startHold:e=>{e!==void 0&&n(`keyHoldDuration`,e),c({state:`holding`,startedAt:Date.now()})},releaseHold:()=>{s().state===`holding`&&c({state:`idle`})},activate:()=>{x(()=>{c({state:`active`,phase:`hovering`,isPromptMode:!1,isPendingDismiss:!1}),n(`activationTimestamp`,Date.now()),n(`previouslyFocusedElement`,document.activeElement)})},deactivate:()=>{x(()=>{c({state:`idle`}),n(Jt(e=>{e.wasActivatedByToggle=!1,e.pendingCommentMode=!1,e.inputText=``,e.frozenElement=null,e.frozenElements=[],e.frozenDragRect=null,e.activationTimestamp=null,e.previouslyFocusedElement=null,e.contextMenuPosition=null,e.contextMenuElement=null,e.contextMenuClickOffset=null,e.isTouchMode&&(e.detectedElement=null)}))})},toggle:()=>{t.activationTimestamp===null?(n(`wasActivatedByToggle`,!0),f.activate()):f.deactivate()},freeze:()=>{if(s().state===`active`){let e=t.frozenElement??t.detectedElement;e&&(fa(e),n(`frozenElement`,e)),d(`frozen`)}},unfreeze:()=>{s().state===`active`&&x(()=>{n(Jt(e=>{e.frozenElement=null,e.frozenElements=[],e.frozenDragRect=null})),d(`hovering`)})},startDrag:(e,t)=>{s().state===`active`&&x(()=>{t||u(),n(`dragStart`,{x:e.x+window.scrollX,y:e.y+window.scrollY}),d(`dragging-select`)})},startDragReposition:()=>{let e=s();e.state===`active`&&e.phase===`dragging-select`&&d(`dragging-reposition`)},stopDragReposition:()=>{let e=s();e.state===`active`&&e.phase===`dragging-reposition`&&d(`dragging-select`)},shiftDragStart:e=>{let t=s();t.state===`active`&&t.phase===`dragging-reposition`&&n(`dragStart`,t=>({x:t.x+e.x,y:t.y+e.y}))},endDrag:()=>{let e=s();e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)&&x(()=>{n(`dragStart`,{x:sn,y:sn}),d(`justDragged`)})},cancelDrag:()=>{let e=s();e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)&&x(()=>{n(`dragStart`,{x:sn,y:sn}),d(`hovering`)})},finishJustDragged:()=>{let e=s();e.state===`active`&&e.phase===`justDragged`&&d(`hovering`)},startCopy:()=>{let e=s().state===`active`;c({state:`copying`,startedAt:Date.now(),wasActive:e})},completeCopy:()=>{let e=s(),t=e.state===`copying`?e.wasActive:!1;c({state:`justCopied`,copiedAt:Date.now(),wasActive:t})},finishJustCopied:()=>{let e=s();e.state===`justCopied`&&(e.wasActive&&!t.wasActivatedByToggle?x(()=>{u(),c({state:`active`,phase:`hovering`,isPromptMode:!1,isPendingDismiss:!1})}):f.deactivate())},enterPromptMode:(e,t)=>{let{x:r}=ta(Y(t));fa(t),x(()=>{n(`copyStart`,e),n(`copyOffsetFromCenterX`,e.x-r),i(e),n(`frozenElement`,t),n(`wasActivatedByToggle`,!0),s().state===`active`?c(e=>e.state===`active`?{...e,isPromptMode:!0,phase:`frozen`}:e):(c({state:`active`,phase:`frozen`,isPromptMode:!0,isPendingDismiss:!1}),n(`activationTimestamp`,Date.now()),n(`previouslyFocusedElement`,document.activeElement))})},exitPromptMode:()=>{c(e=>e.state===`active`?{...e,isPromptMode:!1,isPendingDismiss:!1}:e)},setInputText:e=>{n(`inputText`,e)},clearInputText:()=>{n(`inputText`,``)},setPendingDismiss:e=>{c(t=>t.state===`active`?{...t,isPendingDismiss:e}:t)},setPointer:e=>{i(t=>t.x===e.x&&t.y===e.y?t:e)},setDetectedElement:e=>{e&&fa(e),n(`detectedElement`,e)},setFrozenElement:e=>{l(t=>{t.frozenElements=[e]})},setFrozenElements:e=>{l(t=>{t.frozenElements=e})},toggleFrozenElement:e=>{l(t=>{let n=t.frozenElements.indexOf(e);n>=0?t.frozenElements.splice(n,1):t.frozenElements.push(e)})},addFrozenElements:e=>{l(t=>{for(let n of e)t.frozenElements.includes(n)||t.frozenElements.push(n)})},setFrozenDragRect:e=>{n(`frozenDragRect`,e)},relinkLiveElements:()=>{n(Jt(ha))},setCopyStart:(e,t)=>{let{x:r}=ta(Y(t));n(`copyStart`,e),n(`copyOffsetFromCenterX`,e.x-r)},setLastGrabbed:e=>{n(`lastGrabbedElement`,e)},setWasActivatedByToggle:e=>{n(`wasActivatedByToggle`,e)},setPendingCommentMode:e=>{n(`pendingCommentMode`,e)},setTouchMode:e=>{n(`isTouchMode`,e)},incrementSelectionInteractionLockDepth:()=>{n(`selectionInteractionLockDepth`,e=>e+1)},decrementSelectionInteractionLockDepth:()=>{n(`selectionInteractionLockDepth`,e=>Math.max(0,e-1))},setSelectionSource:(e,t)=>{x(()=>{n(`selectionFilePath`,e),n(`selectionLineNumber`,t)})},incrementViewportVersion:()=>{o(e=>e+1)},addGrabbedBox:e=>{e.element&&fa(e.element),n(`grabbedBoxes`,t=>[...t,e])},removeGrabbedBox:e=>{n(`grabbedBoxes`,t=>t.filter(t=>t.id!==e))},clearGrabbedBoxes:()=>{n(`grabbedBoxes`,[])},addLabelInstance:e=>{e.element&&fa(e.element);for(let t of e.elements??[])fa(t);n(`labelInstances`,t=>[...t,e])},updateLabelInstance:(e,r,i)=>{let a=t.labelInstances.findIndex(t=>t.id===e);a!==-1&&x(()=>{n(`labelInstances`,a,`status`,r),i===void 0?r!==`error`&&n(`labelInstances`,a,`errorMessage`,void 0):n(`labelInstances`,a,`errorMessage`,i)})},removeLabelInstance:e=>{n(`labelInstances`,t=>t.filter(t=>t.id!==e))},clearLabelInstances:()=>{n(`labelInstances`,[])},showContextMenu:(e,t)=>{let{x:r,y:i}=ta(Y(t));fa(t),x(()=>{n(`contextMenuPosition`,e),n(`contextMenuElement`,t),n(`contextMenuClickOffset`,{x:e.x-r,y:e.y-i})})},hideContextMenu:()=>{x(()=>{n(`contextMenuPosition`,null),n(`contextMenuElement`,null),n(`contextMenuClickOffset`,null)})},updateContextMenuPosition:()=>{let e=t.contextMenuElement,r=t.contextMenuClickOffset;if(!e||!r||!X(e))return;let{x:i,y:a}=ta(Y(e));n(`contextMenuPosition`,{x:i+r.x,y:a+r.y})}};return{store:t,actions:f,pointer:r,viewportVersion:a,current:s}};var va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja=c((()=>{va=class extends Error{constructor(e,t){super(e,t),this.name=`ReactGrabError`}},ya=class extends va{constructor(e,t){super(e,{cause:t}),this.name=`RecoverableError`}},ba=class extends va{constructor(e){super(`Failed to freeze page`,{cause:e}),this.name=`FreezeError`}},xa=class extends ya{constructor(e,t,n){super(`Failed to open source file "${e}"`,n),this.name=`OpenFileError`,this.filePath=e,this.lineNumber=t}},Sa=class extends ya{constructor(e,t,n){super(`Plugin hook "${t}" failed for "${e}"`,n),this.name=`PluginHookError`,this.pluginName=e,this.hookName=t}},Ca=class extends ya{constructor(e,t){super(`Plugin cleanup failed for "${e}"`,t),this.name=`PluginCleanupError`,this.pluginName=e}},wa=class extends ya{constructor(e,t){super(`Plugin setup failed for "${e}"`,t),this.name=`PluginSetupError`,this.pluginName=e}},Ta=class extends ya{constructor(e,t){super(`Action "${e}" failed`,t),this.name=`ContextMenuActionError`,this.actionId=e}},Ea=class extends ya{constructor(e,t){super(`Action "${e}" enabled check failed`,t),this.name=`ContextMenuActionEnabledError`,this.actionId=e}},Da=class extends va{constructor(){super(`Can't generate CSS selector for non-element node type.`),this.name=`NonElementNodeError`}},Oa=class extends va{constructor(e){super(`Timeout: Can't find a unique selector after ${e}ms`),this.name=`SelectorTimeoutError`,this.timeoutMs=e}},ka=class extends va{constructor(){super(`Selector was not found.`),this.name=`SelectorNotFoundError`}},Aa=class extends va{constructor(){super(`Failed to copy`),this.name=`CopyFailedError`}}})),Ma,Na=c((()=>{Yi(),Ma=e=>qi(e)?.getTagName()??(e.tagName||``).toLowerCase()})),Pa,Fa,Ia,La,Ra,za=c((()=>{Na(),Pa=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],Fa=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},Ia=e=>{if(document.designMode===`on`)return!0;let t=Fa(e);if(!t)return!1;if(t.isContentEditable)return!0;let n=Ma(t);return Pa.some(e=>e===n||e===t.role)},La=e=>{let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let e=t.selectionStart??0;return(t.selectionEnd??0)-e>0}return!1},Ra=()=>{let e=window.getSelection();return e?e.toString().length>0:!1}})),Ba,Va,Ha=c((()=>{Ba=new WeakMap,Va=(e=document)=>{let t=Ba.get(e);if(t!==void 0)return t;let n=e.querySelector(`script[nonce], style[nonce]`),r=n?.nonce||n?.getAttribute(`nonce`)||null;return r&&Ba.set(e,r),r}})),Ua,Wa,Ga=c((()=>{Ua=[[`data-rr-block`,``],[`data-rr-ignore`,``],[`data-rr-mask`,``],[`data-sentry-block`,``],[`data-sentry-ignore`,``],[`data-sentry-mask`,``],[`data-dd-privacy`,`hidden`],[`data-fs-exclude`,``],[`data-lr-exclude`,``],[`data-hj-suppress`,``],[`data-recording-disable`,``],[`data-clarity-mask`,`true`],[`data-heap-redact-text`,``]],Wa=e=>{for(let[t,n]of Ua)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)}})),Ka,qa=c((()=>{J(),Ka=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===9})),Ja,Ya=c((()=>{aa(),qa(),ir(),Ja=e=>{if(e.assignedSlot)return e.assignedSlot;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return ia(t)?t.host:Ka(t)?rr(t.defaultView):null}})),Xa,Za=c((()=>{Ya(),Yi(),Xa=(e,t)=>{let n=qi(e)?.hostElement??e;for(;n;){if(n===t)return!0;n=Ja(n)}return!1}})),Qa,$a,eo,to,no,ro=c((()=>{Za(),Qa=null,$a=e=>{Qa=e},eo=()=>Qa,to=e=>Qa?e?Xa(e,Qa):!1:!0,no=e=>e}));ja(),za(),Ha(),Ga(),ro();let io=`data-react-grab`;J();let ao=e=>{if(!document.body)return;let t=document.querySelectorAll(`[${io}]`);for(let n of t)n!==e&&n.parentNode!==e&&(n.shadowRoot||n.remove());document.body.appendChild(e)},oo=e=>{if(document.body)return ao(e),()=>{};let t=()=>{document.removeEventListener(`DOMContentLoaded`,t),ao(e)};return document.addEventListener(`DOMContentLoaded`,t,{once:!0}),()=>document.removeEventListener(`DOMContentLoaded`,t)},so=e=>{let t=window.setTimeout(()=>{ao(e)},Vn),n=new MutationObserver(()=>{e.parentNode!==document.body&&ao(e)});return n.observe(document.documentElement,{childList:!0}),()=>{window.clearTimeout(t),n.disconnect()}},co=e=>{let t=document.querySelectorAll(`[${io}]`);for(let e of t){let t=e.shadowRoot?.querySelector(`[${io}]`);if(t instanceof HTMLDivElement)return{root:t,host:e,cancelPendingAttachment:so(e)};e.remove()}let n=document.createElement(`div`);n.setAttribute(io,`true`),Wa(n),n.style.zIndex=String(mn),n.style.position=`fixed`,n.style.inset=`0`,n.style.pointerEvents=`none`,n.style.contain=`strict`;let r=n.attachShadow({mode:`open`}),i=document.createElement(`style`),a=Va();a&&(i.nonce=a),i.textContent=e??``,r.appendChild(i);let o=document.createElement(`div`);o.setAttribute(io,`true`),r.appendChild(o);let s=oo(n),c=so(n);return{root:o,host:n,cancelPendingAttachment:()=>{s(),c()}}};Mr(),Ui();let lo=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,uo=[`rsc://`,`file:///`,`webpack-internal://`,`webpack://`,`node:`,`turbopack://`,`metro://`,`/app-pages-browser/`,`/(app-pages-browser)/`],fo=[`rsc://`,`about://React/`],po=[`<anonymous>`,`eval`,``],mo=/\.(cjs|cts|js|jsx|mdx|mjs|mts|ts|tsx)$/,ho=/(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i,go=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,_o=/\(at [^)]+\)$/,vo=[`react_stack_bottom_frame`,`react-stack-bottom-frame`],yo=Error,bo=()=>yo.prepareStackTrace,xo=e=>{yo.prepareStackTrace=e},So=/(^|@)\S+:\d+/,Co=/^\s*at .*(\S+:\d+|\(native\))/m,wo=/^(eval@)?(\[native code\])?$/,To=(e,t)=>{if(t?.includeInElement!==!1){let t=e.split(`
|
|
11
|
+
`),n=[];for(let e of t)if(/^\s*at\s+/.test(e)){let t=Do(e)[0];t&&n.push(t)}else if(/^\s*in\s+/.test(e)){let t=e.replace(/^\s*in\s+/,``).replace(/\s*\(at .*\)$/,``);n.push({functionName:t,source:e})}else if(e.match(So)){let t=Oo(e)[0];t&&n.push(t)}return n}return e.match(Co)?Do(e):Oo(e)},Eo=e=>{if(!e.includes(`:`))return[e,void 0,void 0];let t=e.startsWith(`(`)&&/:\d+\)$/.test(e)?e.slice(1,-1):e,n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);return n?[n[1],n[2]||void 0,n[3]||void 0]:[t,void 0,void 0]},Do=e=>e.split(`
|
|
12
|
+
`).filter(e=>!!e.match(Co)).map(e=>{let t=e;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let i=Eo(r?r[1]:n);return{functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`,`(native)`].includes(i[0])?void 0:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}),Oo=e=>e.split(`
|
|
13
|
+
`).filter(e=>!e.match(wo)).map(e=>{let t=e;if(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)&&!t.includes(`:`))return{functionName:t};{let e=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(e),r=n&&n[1]?n[1]:void 0,i=Eo(t.replace(e,``));return{functionName:r,fileName:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}}),ko=new WeakMap,Ao=e=>vo.some(t=>e.includes(t)),jo=e=>{let t=e.getFunctionName?.()??``;if(t)return t;let n=e.getTypeName?.()??``,r=e.getMethodName?.()??``;return n&&r?`${n}.${r}`:r},Mo=e=>{let t=[];for(let n=1;n<e.length;n++){let r=e[n],i=jo(r);if(Ao(i))return{frames:t,isTrusted:!0};if(r.isNative?.()){t.push({functionName:i||void 0});continue}let a=r.getScriptNameOrSourceURL?.()??``;!a&&r.isEval?.()&&(a=r.getEvalOrigin?.()??``),t.push({functionName:i&&i!==`<anonymous>`?i:void 0,fileName:a&&a!==`<anonymous>`?a:void 0,lineNumber:r.getLineNumber?.()??void 0,columnNumber:r.getColumnNumber?.()??void 0,enclosingLineNumber:r.getEnclosingLineNumber?.()??void 0,enclosingColumnNumber:r.getEnclosingColumnNumber?.()??void 0,source:` at ${r.toString()}`})}return{frames:t,isTrusted:!1}},No=e=>{let t=-1;for(let n of vo)if(t=e.indexOf(n),t!==-1)break;return{frames:To(t===-1?e:e.slice(0,e.lastIndexOf(`
|
|
14
|
+
`,t))).slice(1),isTrusted:t!==-1}},Po=e=>{let t=ko.get(e);if(t)return t;let n=null,r=(e,t)=>{n=Mo(t);let r=`${e.name||`Error`}: ${e.message||``}`;for(let e of t)r+=`\n at ${e.toString()}`;return r},i=bo();xo(r);let a;try{a=String(e.stack)}finally{xo(i)}let o=n??No(a);return ko.set(e,o),o},Fo=()=>{let e=jr(),t=new Set([...xr,...e.renderers.values()]),n=[],r=new Set;for(let e of t){let t=e.currentDispatcherRef;!t||r.has(t)||(r.add(t),n.push(t))}return n},Io=e=>`H`in e?e.H:e.current,Lo=(e,t)=>{`H`in e?e.H=t:e.current=t};var Ro=44,zo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Bo=new Uint8Array(64),Vo=new Uint8Array(128);for(let e=0;e<zo.length;e++){let t=zo.charCodeAt(e);Bo[e]=t,Vo[t]=e}function Ho(e,t){let n=0,r=0,i=0;do i=Vo[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function Uo(e,t){return e.pos>=t?!1:e.peek()!==Ro}var Wo=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function Go(e){let{length:t}=e,n=new Wo(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=Ho(n,i),i<u&&(l=!1),u=i,Uo(n,e)?(a=Ho(n,a),o=Ho(n,o),s=Ho(n,s),Uo(n,e)?(c=Ho(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||Ko(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function Ko(e){e.sort(qo)}function qo(e,t){return e[0]-t[0]}let Jo=/^data:application\/json(?:;[^,]*)?,/i,Yo=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Xo=new Map,Zo=new WeakMap;var Qo=class extends Error{};let $o=new Map,es=new WeakMap,ts=new Set([`chrome-extension:`,`moz-extension:`,`safari-web-extension:`]),ns=new Set([`http:`,`https:`,...ts]),rs=(e,t,n,r)=>{let[,i,a,o,s]=e;if(i===void 0||a===void 0||o===void 0)return null;let c=t[i];return c?{columnNumber:o,fileName:c,functionName:s===void 0?void 0:r?.[s]||void 0,isIgnoreListed:n?.has(i)??!1,lineNumber:a+1}:null},is=(e,t,n,r,i,a)=>{if(n<0||n>=e.length)return null;let o=e[n];if(!o||o.length===0)return null;let s=null,c=0,l=o.length-1;for(;c<=l;){let e=c+l>>1;o[e][0]<=r?(s=o[e],c=e+1):l=e-1}return!s||s.length<4?null:rs(s,t,i,a)},as=(e,t,n)=>{if(e.sections){let r=t-1,i=null;for(let t of e.sections)if(r>t.offset.line||r===t.offset.line&&n>=t.offset.column)i=t;else break;if(!i)return null;let a=r-i.offset.line,o=r===i.offset.line?n-i.offset.column:n;return is(i.map.mappings,i.map.sources,a,o,i.map.ignoredSourceIndices,i.map.names)}return is(e.mappings,e.sources,t-1,n,e.ignoredSourceIndices,e.names)},os=(e,t,n,r,i)=>{if(!n)return null;let a=n.indexOf(r);if(a===-1)return null;let o=null;for(let r of e)for(let e of r){if(e[4]!==a)continue;let r=rs(e,t,i,n);if(r){if(!r.isIgnoreListed)return r;o??=r}}return o},ss=(e,t)=>{if(e.sections){let n=null;for(let r of e.sections){let e=os(r.map.mappings,r.map.sources,r.map.names,t,r.map.ignoredSourceIndices);if(e){if(!e.isIgnoreListed)return e;n??=e}}return n}return os(e.mappings,e.sources,e.names,t,e.ignoredSourceIndices)},cs=(e,t)=>{if(Jo.test(e))return e;try{return new URL(e,t).toString()}catch{try{let n=new URL(e,new URL(t,`https://bippy.invalid/`));return`${n.pathname}${n.search}${n.hash}`}catch{return null}}},ls=e=>{try{let t=new URL(e),n=t.pathname.lastIndexOf(`.bundle`);if(n===-1)return null;let r=t.pathname.slice(n+7);if(r&&!r.startsWith(`//&`))return null;if(t.pathname=`${t.pathname.slice(0,n)}.map`,r){let e=new URLSearchParams(r.slice(3));for(let[n,r]of e)t.searchParams.set(n,r)}return t.hash=``,t.toString()}catch{return null}},us=(e,t,n)=>{let r=n.headers.get(`sourcemap`)??n.headers.get(`x-sourcemap`);if(r)return cs(r.trim(),e);let i,a=t.length;for(;a>0&&!i;){let e=t.lastIndexOf(`
|
|
15
|
+
`,a-1)+1,n=t.slice(e,a).match(Yo);n&&(i=n[1]||n[2]),a=e-1}return i?cs(i,e):ls(e)},ds=e=>{if(typeof e!=`object`||!e)return!1;let t=Reflect.get(e,`version`),n=Reflect.get(e,`mappings`),r=Reflect.get(e,`file`),i=Reflect.get(e,`names`),a=Reflect.get(e,`sourceRoot`),o=Reflect.get(e,`sources`),s=Reflect.get(e,`sourcesContent`),c=Reflect.get(e,`ignoreList`),l=Reflect.get(e,`x_google_ignoreList`);if(t!==3||typeof n!=`string`||r!==void 0&&typeof r!=`string`||i!==void 0&&(!Array.isArray(i)||i.some(e=>typeof e!=`string`))||a!==void 0&&typeof a!=`string`||s!==void 0&&(!Array.isArray(s)||s.some(e=>typeof e!=`string`&&e!==null))||c!==void 0&&(!Array.isArray(c)||c.some(e=>!Number.isInteger(e)||e<0))||l!==void 0&&(!Array.isArray(l)||l.some(e=>!Number.isInteger(e)||e<0))||!Array.isArray(o)||o.some(e=>typeof e!=`string`)||s&&s.length!==o.length)return!1;let u=o.length;return[...c??[],...l??[]].every(e=>e<u)},fs=e=>{if(typeof e!=`object`||!e)return!1;let t=Reflect.get(e,`version`),n=Reflect.get(e,`sections`);return t!==3||!Array.isArray(n)?!1:n.every(e=>{if(typeof e!=`object`||!e)return!1;let t=Reflect.get(e,`map`),n=Reflect.get(e,`url`),r=Reflect.get(e,`offset`);if(typeof r!=`object`||!r)return!1;let i=Reflect.get(r,`column`),a=Reflect.get(r,`line`);return ds(t)!==(typeof n==`string`&&n.length>0)&&typeof i==`number`&&Number.isInteger(i)&&i>=0&&typeof a==`number`&&Number.isInteger(a)&&a>=0})},ps=e=>{let t=e.ignoreList??e.x_google_ignoreList;return t?.length?new Set(t):void 0},ms=(e,t,n)=>{if(!e||lo.test(t)||t.startsWith(`/`))return t;let r=e.endsWith(`/`)?e:`${e}/`,i=t.replace(/^\.\//,``);try{let e=lo.test(r)?r:new URL(r,n).toString();return new URL(i,e).toString()}catch{let e=`${r}${i}`.split(`/`),t=[];for(let n of e)n===`..`?t.pop():n!==`.`&&t.push(n);return t.join(`/`)}},hs=(e,t)=>e.sources.map(n=>ms(e.sourceRoot,n,t)),gs=(e,t)=>{try{return{file:e.file,ignoredSourceIndices:ps(e),mappings:Go(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:hs(e,t),sourcesContent:e.sourcesContent,version:3}}catch{return null}},_s=async(e,t,n)=>{let r=[],i=-1,a=-1;for(let o of e.sections){if(o.offset.line<i||o.offset.line===i&&o.offset.column<=a)return null;i=o.offset.line,a=o.offset.column;let e=o.url?cs(o.url,t):null,s=o.map??(e?await n(e):null);if(!s)return null;let c=e??t;try{r.push({map:{...s,ignoredSourceIndices:ps(s),mappings:Go(s.mappings),sources:hs(s,c)},offset:o.offset})}catch{return null}}let o=new Set;for(let e of r)for(let t of e.map.sources)o.add(t);return{file:e.file,mappings:[],names:[],sections:r,sourceRoot:void 0,sources:Array.from(o),sourcesContent:void 0,version:3}},vs=(e,t=!1)=>{if(!e)return!1;let n=e.trim();if(!n)return!1;let r=n.match(lo);if(!r)return!0;let i=r[0].toLowerCase();return t||ns.has(i)},ys=()=>typeof window>`u`&&typeof process<`u`&&typeof process.versions?.node==`string`,bs=e=>{try{let t=new URL(e);return(t.protocol===`http:`||t.protocol===`https:`)&&!t.username&&!t.password}catch{return!1}},xs=e=>{try{return new URL(e).protocol}catch{return null}},Ss=e=>{let t=xs(e);return t!==null&&ts.has(t)},Cs=(e,t)=>{try{let n=new URL(e),r=new URL(t);return n.protocol===r.protocol&&n.host===r.host}catch{return!1}},ws=(e,t,n,r)=>{if(Jo.test(t))return!0;if(!vs(t,r))return!1;let i=xs(e),a=xs(t),o=i!==null&&!ns.has(i)||a!==null&&!ns.has(a);return!(n||o||Ss(e)||Ss(t))||Cs(e,t)},Ts=e=>e===408||e===425||e===429||e>=500,Es=e=>{if(e.ok)return!0;if(Ts(e.status))throw new Qo;return!1},Ds=(e,t,n)=>!n||t.url.length===0||Cs(e,t.url),Os=e=>{if(e.timeoutMs===void 0||e.timeoutMs<0)return{cleanup:()=>{},signal:e.signal};let t=new AbortController,n=()=>t.abort(e.signal?.reason);e.signal?.aborted?n():e.signal?.addEventListener(`abort`,n,{once:!0});let r=setTimeout(()=>t.abort(new ii(`Source map request timed out`)),e.timeoutMs);return{cleanup:()=>{clearTimeout(r),e.signal?.removeEventListener(`abort`,n)},signal:t.signal}},ks=async(e,t)=>{let n=Number(e.headers.get(`content-length`));if(Number.isFinite(n)&&n>t)return null;if(!e.body){let n=await e.text();return new TextEncoder().encode(n).byteLength>t?null:n}let r=e.body.getReader(),i=new TextDecoder,a=[],o=0;try{for(;;){let{done:e,value:n}=await r.read();if(e)break;if(o+=n.byteLength,o>t)return await r.cancel(),null;a.push(i.decode(n,{stream:!0}))}return a.push(i.decode()),a.join(``)}finally{r.releaseLock()}},As=e=>{try{if(typeof globalThis.atob==`function`)return new TextDecoder().decode(Uint8Array.from(globalThis.atob(e),e=>e.charCodeAt(0)))}catch{return null}let t=e.replace(/\s/g,``).replace(/=+$/,``),n=[],r=0,i=0;for(let e of t){let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.indexOf(e);if(t===-1)return null;r=r*64+t,i+=6,i>=8&&(i-=8,n.push(Math.floor(r/2**i)&255),r%=2**i)}return new TextDecoder().decode(Uint8Array.from(n))},js=(e,t)=>{let n=e.indexOf(`,`);if(n===-1)return null;let r=e.slice(0,n),i=e.slice(n+1);if(i.length>t*2)return null;try{let e=r.toLowerCase().includes(`;base64`)?As(i):decodeURIComponent(i);return e===null||new TextEncoder().encode(e).byteLength>t?null:JSON.parse(e)}catch{return null}},Ms=async(e,t,n,r,i)=>{if(Jo.test(e))return js(e,r);let a=await t(e,{redirect:i?`error`:`follow`,signal:n});if(!Es(a)||!Ds(e,a,i))return null;let o=await ks(a,r);if(o===null)return null;try{return JSON.parse(o)}catch{return null}},Ns=async(e,t,n={})=>{let r=t!==void 0;if(!vs(e,r))return null;let i=ys(),a=i||Ss(e);if(i&&!t&&(!n.allowUnsafeServerFetch||!bs(e)))return null;let o=t??(typeof globalThis.fetch==`function`?globalThis.fetch.bind(globalThis):void 0);if(!o)return null;let s=n.maxBundleSizeBytes??26214400,c=n.maxSourceMapSizeBytes??104857600;if(s<0||c<0)return null;let l=Os(n);try{let t=await o(e,{redirect:a?`error`:`follow`,signal:l.signal});if(!Es(t)||!Ds(e,t,a))return null;let n=await ks(t,s);if(n===null)return null;let i=us(e,n,t);if(!i||!ws(e,i,a,r))return null;let u=await Ms(i,o,l.signal,c,a);return ds(u)?gs(u,i):fs(u)?_s(u,i,async t=>{if(!ws(e,t,a,r))return null;let n=await Ms(t,o,l.signal,c,a);return ds(n)?n:null}):null}finally{l.cleanup()}},Ps=(e,t,n)=>{if(!n)return t;let r=e.get(n);return r||(r=new Map,e.set(n,r)),r},Fs=e=>Ps(Zo,Xo,e),Is=e=>Ps(es,$o,e),Ls=(e,t)=>t.allowUnsafeServerFetch===void 0&&t.maxBundleSizeBytes===void 0&&t.maxSourceMapSizeBytes===void 0&&t.timeoutMs===void 0?e:`${e}\0${t.allowUnsafeServerFetch??``}\0${t.maxBundleSizeBytes??``}\0${t.maxSourceMapSizeBytes??``}\0${t.timeoutMs??``}`,Rs=async(e,t=!0,n,r={})=>{let i=t&&r.signal===void 0,a=Fs(n),o=Is(n),s=Ls(e,r);if(i&&a.has(s))return a.get(s)??null;let c=i?o.get(s):void 0;if(c)return(await c).sourceMap;let l=Ns(e,n,r).then(e=>({sourceMap:e,isTransientFailure:!1}),()=>({sourceMap:null,isTransientFailure:!0}));i&&o.set(s,l);let{sourceMap:u,isTransientFailure:d}=await l;return i&&(o.delete(s),d||a.set(s,u)),u},zs=async(e,t=!0,n)=>Promise.all(e.map(async e=>{if(!e.fileName)return e;let r=await Rs(e.fileName,t,n);if(!r||typeof e.lineNumber!=`number`||typeof e.columnNumber!=`number`)return e;let i=as(r,e.lineNumber,e.columnNumber);return i?{...e,source:i.fileName&&e.source?e.source.replace(e.fileName,i.fileName):e.source,fileName:i.fileName,functionName:i.functionName??e.functionName,lineNumber:i.lineNumber,columnNumber:i.columnNumber,isIgnoreListed:i.isIgnoreListed,isSymbolicated:!0}:e})),Bs=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack==`string`,Vs=e=>`tag`in e&&typeof e.tag==`number`,Hs=e=>{let t=null;if(Pr(e,n=>{if(n===e)return!1;let r=n._debugOwner;return(r===e||e.alternate!==null&&r===e.alternate)&&n._debugStack instanceof Error&&(t=n._debugStack,!0)}),!t)return null;let{frames:n,isTrusted:r}=Po(t);if(!r)return null;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.fileName)return{...t,lineNumber:t.enclosingLineNumber||t.lineNumber,columnNumber:t.enclosingColumnNumber||t.columnNumber}}return null},Us=()=>{let e=[];for(let t of Fo())e.push({currentDispatcherRef:t,value:Io(t)}),Lo(t,null);return e},Ws=e=>{for(let{currentDispatcherRef:t,value:n}of e)Lo(t,n)},Gs=e=>`\n in ${e}`,Ks=(e,t)=>{let n=Gs(e);return t&&(n+=` (at ${t})`),n},qs=!1,Js=new WeakMap,Ys=(e,t)=>{if(!e||qs)return``;let n=Js.get(e);if(n!==void 0)return n;let r=bo();xo(void 0),qs=!0;let i=Us(),a=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let n={DetermineComponentFrameRoot(){let n;try{if(t){let t=function(){throw Error()};if(Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){n=e}Reflect.construct(e,[],t)}else{try{Function.prototype.apply.call(t,void 0,[])}catch(e){n=e}Function.prototype.apply.call(e,t.prototype,[])}}else{try{throw Error()}catch(e){n=e}let t=Function.prototype.apply.call(e,void 0,[]);typeof t==`object`&&t&&`catch`in t&&typeof t.catch==`function`&&t.catch(()=>void 0)}}catch(e){if(e instanceof Error&&n instanceof Error&&typeof e.stack==`string`)return[e.stack,n.stack]}return[null,null]}};Object.defineProperty(n.DetermineComponentFrameRoot,`displayName`,{value:`DetermineComponentFrameRoot`}),Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,`name`)?.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});let[r,i]=n.DetermineComponentFrameRoot();if(r&&i){let t=r.split(`
|
|
16
16
|
`),n=i.split(`
|
|
17
|
-
`),a=0,o=0;for(;a<t.length&&!t[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<n.length&&!n[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===t.length||o===n.length)for(a=t.length-1,o=n.length-1;a>=1&&o>=0&&t[a]!==n[o];)o--;for(;a>=1&&o>=0;a--,o--)if(t[a]!==n[o]){if(a!==1||o!==1)do if(a--,o--,o<0||t[a]!==n[o]){let n=`\n${t[a].replace(` at new `,` at `)}`,r=
|
|
18
|
-
`)&&(
|
|
19
|
-
`);
|
|
20
|
-
`,i)),i!==-1)n=n.slice(0,i);else return``;return n},zo=e=>!!(e.functionName&&e.fileName&&Uo(e.fileName)),Bo=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,Vo=e=>{let t=new Map;for(let n of e)for(let e of n.stackFrames){if(!zo(e))continue;let n=e.functionName,r=t.get(n)??[];r.some(t=>Bo(t,e))||(r.push(e),t.set(n,r))}return t},Ho=(e,t,n)=>{if(!e.functionName)return{...e,isServer:!0};let r=t.get(e.functionName);if(!r||r.length===0)return{...e,isServer:!0};let i=n.get(e.functionName)??0,a=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:!0,fileName:a.fileName,lineNumber:a.lineNumber,columnNumber:a.columnNumber,source:e.source?.replace(`(at Server)`,`(${a.fileName}:${a.lineNumber}:${a.columnNumber})`)}},Uo=e=>Ma.some(t=>e.startsWith(t)),Wo=e=>!e.isServer&&e.fileName&&Uo(e.fileName)?{...e,isServer:!0}:e,Go=e=>{let t=[],n=e;for(;n;)if(Eo(n)){let e=n;if(n=Do(e),n&&To(e)){let{frames:n,isTrusted:r}=Qa(e._debugStack);if(r)for(let e of n)t.push(Wo(e))}}else{let e=n;if(n=e.owner,n&&e.debugStack instanceof Error)for(let n of Qa(e.debugStack).frames)t.push({...n,isServer:!0})}return t},Ko=e=>{let t=[];return Er(e,e=>{if(!To(e))return;let n=typeof e.type==`string`?e.type:zr(e.type)||`<anonymous>`;t.push({componentName:n,stackFrames:Ha(Ro(e._debugStack?.stack))})},!0),t},qo=async(e,t=!0,n)=>{let r=Ko(e),i=Ha(Lo(e)),a=Vo(r),o=new Map;return wo(i.map(e=>(e.source?.includes(`(at Server)`)??!1)||e.source!=null&&La.test(e.source)?Ho(e,a,o):e).filter((e,t,n)=>{if(t===0)return!0;let r=n[t-1];return e.functionName!==r.functionName}),t,n)},Jo=e=>!!e.fileName&&!e.isIgnoreListed,Yo=async(e,t=!0,n)=>{let r=Go(e);if(r.length>0){let i=Oo(e)??{};i.functionName=zr(e.type)??i.functionName;let a=await wo([i,...r],t,n);if(a.some((e,t)=>t>0&&Jo(e)))return a}return qo(e,t,n)},Xo=e=>{let t=e._debugSource;return t?typeof t==`object`&&!!t&&`fileName`in t&&typeof t.fileName==`string`&&`lineNumber`in t&&typeof t.lineNumber==`number`:!1},Zo=e=>e.fileName?{fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,functionName:e.functionName}:null,Qo=e=>{if(!To(e))return null;let{frames:t,isTrusted:n}=Qa(e._debugStack);if(!n)return null;for(let e of t)if(e.fileName)return e;return null},$o=async(e,t=!0,n)=>{if(Xo(e))return e._debugSource||null;let r=Qo(e)??Oo(e);if(r){let[e]=await wo([r],t,n),i=Zo(e);if(i)return i}let i=await qo(e,t,n);for(let e of i)if(e.fileName)return Zo(e);return null},es=e=>e.split(`/`).filter(Boolean).length,ts=e=>e.split(`/`).filter(Boolean)[0]??null,ns=e=>{let t=e.indexOf(`/`,1);if(t===-1||es(e.slice(0,t))!==1)return e;let n=e.slice(t);if(!Pa.test(n)||es(n)<2)return e;let r=ts(n);return!r||r.startsWith(`@`)||r.length>4?e:n},rs=e=>{if(!e||Na.some(t=>t===e))return``;let t=e,n=t.startsWith(`http://`)||t.startsWith(`https://`);if(n)try{t=new URL(t).pathname}catch{}if(n&&(t=ns(t)),t.startsWith(`about://React/`)){let e=t.slice(14),n=e.indexOf(`/`),r=e.indexOf(`:`);t=n!==-1&&(r===-1||n<r)?e.slice(n+1):e}let r=!0;for(;r;){r=!1;for(let e of ja)if(t.startsWith(e)){t=t.slice(e.length),e===`file:///`&&(t=`/${t.replace(/^\/+/,``)}`),r=!0;break}}if(Aa.test(t)){let e=t.match(Aa);e&&(t=t.slice(e[0].length))}if(t.startsWith(`//`)){let e=t.indexOf(`/`,2);t=e===-1?``:t.slice(e)}let i=t.indexOf(`?`);if(i!==-1){let e=t.slice(i);Ia.test(e)&&(t=t.slice(0,i))}return t},is=e=>{let t=rs(e);return!(!t||!Pa.test(t)||Fa.test(t))};wr(),di();let as=Symbol.for(`react.context`),os=[],ss=null,cs=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render."),ls=()=>{let e=ss;return e!==null&&(ss=e.next),e},us=e=>e._currentValue,ds=(e,t,n,r=null)=>{os.push({displayName:r,primitive:e,stackError:Error(),value:t,dispatcherHookName:n})},fs=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:return ds(`Promise`,e.value,`Use`),e.value;case`rejected`:throw e.reason}throw ds(`Unresolved`,e,`Use`),cs}if(t.$$typeof===as&&`_currentValue`in t){let e=t,n=us(e);return ds(`Context (use)`,n,`Use`,e.displayName||`Context`),n}}throw Error(`An unsupported type was passed to use(): `+String(e))},ps=e=>{let t=us(e);return ds(`Context`,t,`Context`,e.displayName||null),t},ms=e=>{let t=ls(),n=t===null?typeof e==`function`?e():e:t.memoizedState;return ds(`State`,n,`State`),[n,()=>{}]},hs=(e,t,n)=>{let r=ls(),i=r===null?n===void 0?t:n(t):r.memoizedState;return ds(`Reducer`,i,`Reducer`),[i,()=>{}]},gs=e=>{let t=ls(),n=t===null?{current:e}:t.memoizedState;return ds(`Ref`,n.current,`Ref`),n},_s=()=>{let e=ls();return ds(`CacheRefresh`,e===null?()=>{}:e.memoizedState,`CacheRefresh`),()=>{}},vs=e=>{ls(),ds(`LayoutEffect`,e,`LayoutEffect`)},ys=e=>{ls(),ds(`InsertionEffect`,e,`InsertionEffect`)},bs=e=>{ls(),ds(`Effect`,e,`Effect`)},xs=e=>{ls();let t;typeof e==`object`&&e&&`current`in e&&(t=e.current),ds(`ImperativeHandle`,t,`ImperativeHandle`)},Ss=(e,t)=>{ds(`DebugValue`,typeof t==`function`?t(e):e,`DebugValue`)},Cs=e=>{let t=ls();return ds(`Callback`,t===null?e:t.memoizedState[0],`Callback`),e},ws=e=>{let t=ls(),n=t===null?e():t.memoizedState[0];return ds(`Memo`,n,`Memo`),n},Ts=(e,t)=>{let n=ls();ls();let r=n===null?t():n.memoizedState;return ds(`SyncExternalStore`,r,`SyncExternalStore`),r},Es=()=>{let e=ls();ls();let t=e===null?!1:e.memoizedState;return ds(`Transition`,t,`Transition`),[t,()=>{}]},Ds=e=>{let t=ls(),n=t===null?e:t.memoizedState;return ds(`DeferredValue`,n,`DeferredValue`),n},Os=()=>{let e=ls(),t=e===null?``:e.memoizedState;return ds(`Id`,t,`Id`),t},ks=e=>[],As=e=>{let t=ls(),n=t===null?e:t.memoizedState;return ds(`Optimistic`,n,`Optimistic`),[n,()=>{}]},js=(e,t)=>{let n,r=null;if(e!==null){let t=e.memoizedState;if(typeof t==`object`&&t&&`then`in t&&typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:n=e.value;break;case`rejected`:r=e.reason;break;default:r=cs,n=e}}else n=t}else n=t;return{value:n,error:r}},Ms=e=>(t,n)=>{let r=ls();ls(),ls();let i=Error(),{value:a,error:o}=js(r,n);if(os.push({displayName:null,primitive:e,stackError:i,value:a,dispatcherHookName:e}),o!==null)throw o;return[a,()=>{},!1]},Ns=Ms(`ActionState`),Ps={readContext:us,use:fs,useCallback:Cs,useContext:ps,useEffect:bs,useImperativeHandle:xs,useLayoutEffect:vs,useInsertionEffect:ys,useMemo:ws,useReducer:hs,useRef:gs,useState:ms,useDebugValue:Ss,useDeferredValue:Ds,useTransition:Es,useSyncExternalStore:Ts,useId:Os,useHostTransitionStatus:()=>{let e=us({_currentValue:null});return ds(`HostTransitionStatus`,e,`HostTransitionStatus`),e},useFormState:Ms(`FormState`),useActionState:Ns,useOptimistic:As,useMemoCache:ks,useCacheRefresh:_s,useEffectEvent:e=>(ls(),ds(`EffectEvent`,e,`EffectEvent`),e)};typeof Proxy>`u`||new Proxy(Ps,{get(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let n=Error(`Missing method in Dispatcher: `+t);throw n.name=`ReactDebugToolsUnsupportedHookError`,n}}),q();let Fs=e=>e===void 0||!Number.isFinite(e)?3:Math.max(0,Math.floor(e)),Is=/^(?:\.\/)?\/?\([a-z][a-z0-9-]*\)\//,Ls=e=>{let t=rs(e);return t=t.replace(Is,``),t.startsWith(`./`)&&(t=t.slice(2)),t},Rs=e=>{try{return decodeURIComponent(e)}catch{return e}},zs=/(?:^|[/\\])node_modules[/\\]/,Bs=/[/\\]\.vite[/\\]deps[^/\\]*[/\\]/,Vs=/\.[mc]?[jt]sx?$/i,Hs=/^chunk-[A-Za-z0-9_-]+$/,Us=/[/\\]/,Ws=/^(.+?)@v?\d/,Gs=e=>e.split(Us).filter(Boolean),Ks=e=>{let[t,n]=Gs(e);return!t||t.startsWith(`.`)?null:t.startsWith(`@`)?n?`${t}/${n}`:null:t},qs=e=>{let t=Gs(e)[0];if(!t)return null;let n=t.replace(Vs,``);if(Hs.test(n))return null;if(!n.startsWith(`@`))return n;let r=n.indexOf(`_`);return r===-1?null:`${n.slice(0,r)}/${n.slice(r+1)}`},Js=(e,t,n)=>{let r=e.split(t);return r.length>1?n(r[r.length-1]):null},Ys=e=>e?.match(Ws)?.[1]??null,Xs=e=>{let t;try{t=new URL(e)}catch{return null}if(!t.hostname)return null;let n=Gs(t.pathname).map(Rs);for(let[e,t]of n.entries()){if(t.startsWith(`@`)){let r=Ys(n[e+1]);if(r)return`${t}/${r}`;continue}let r=Ys(t);if(r)return r}return null},Zs=e=>Js(e,Bs,qs)??Js(e,zs,Ks),Qs=e=>{if(!e)return null;let t=rs(e);return t&&(Zs(Rs(t))||Xs(e))||null},$s=/^@[A-Za-z0-9][A-Za-z0-9._-]*$/,ec=/^[A-Za-z0-9][A-Za-z0-9._-]*$/,tc=new Set([`app`,`web`,`website`,`frontend`,`client`,`src`]),nc=new Set([`app`,`src`,`components`,`pages`,`features`,`modules`,`hooks`,`lib`,`utils`,`ui`,`shared`,`common`,`core`,`styles`,`assets`]),rc=e=>{let t=e;for(;t.startsWith(`../`)||t.startsWith(`./`);)t=t.slice(t.startsWith(`../`)?3:2);return t},ic=e=>{let t=rc(Rs(rs(e)));if(t.startsWith(`/`))return null;let[n,r,...i]=Gs(t);return!n||!r||i.length===0||!$s.test(n)||nc.has(n.slice(1))||!ec.test(r)||Vs.test(r)||tc.has(r)?null:`${n}/${r}`},ac=e=>e?Qs(e)??ic(e):null,oc=e=>{if(!e)return{origin:`unknown`,packageName:null};let t=ac(e);return t?{origin:`package`,packageName:t}:is(e)?{origin:`app`,packageName:null}:{origin:`unknown`,packageName:null}};q(),ma(),Bn(),Di();let sc=new Set([`role`,`name`,`aria-label`,`rel`,`href`]),cc=e=>{if(!/^[a-z-]{3,}$/i.test(e))return!1;let t=e.split(/-|[A-Z]/);for(let e of t)if(e.length<=2||/[^aeiou]{4,}/i.test(e))return!1;return!0},lc=(e,t)=>{let n=sc.has(e)||e.startsWith(`data-`)&&cc(e),r=cc(t)&&t.length<100||t.startsWith(`#`)&&cc(t.slice(1));return n&&r},uc=e=>{let t=e[0].name;for(let n=1;n<e.length;n++)t=`${e[n].name} > ${t}`;return t},dc=e=>{let t=0;for(let n of e)t+=n.penalty;return t},fc=(e,t)=>dc(e)-dc(t),pc=(e,t)=>{let n=e.parentNode;if(!n)return;let r=n.firstChild;if(!r)return;let i=0;for(;r&&(zn(r)&&(t===void 0||r.tagName.toLowerCase()===t)&&i++,r!==e);)r=r.nextSibling;return i},mc=(e,t)=>e===`html`?`html`:`${e}:nth-child(${t})`,hc=(e,t)=>e===`html`?`html`:`${e}:nth-of-type(${t})`,gc=(e,t)=>{let n=[],r=e.getAttribute(`id`),i=e.tagName.toLowerCase();r&&cc(r)&&n.push({name:`#${CSS.escape(r)}`,penalty:0});for(let t of e.classList)cc(t)&&n.push({name:`.${CSS.escape(t)}`,penalty:1});for(let r of e.attributes)t(r.name,r.value)&&n.push({name:`[${CSS.escape(r.name)}="${CSS.escape(r.value)}"]`,penalty:2});n.push({name:i,penalty:5});let a=pc(e,i);a!==void 0&&n.push({name:hc(i,a),penalty:10});let o=pc(e);return o!==void 0&&n.push({name:mc(i,o),penalty:50}),n},_c=(e,t=on,n=[])=>{if(t<=0)return[];if(e.length===0)return[n];let r=[];for(let i of e[0]){let a=t-r.length;if(a<=0)break;r.push(..._c(e.slice(1),a,[...n,i]))}return r},vc=(e,t)=>{let n=t.getRootNode();return Ei(n)?n:pa(e)?e:e.ownerDocument},yc=(e,t)=>t.querySelectorAll(uc(e)).length===1,bc=(e,t)=>{let n=e,r=[];for(;n&&n!==t;){let e=n.tagName.toLowerCase(),t=pc(n,e);if(t===void 0)return;r.push({name:hc(e,t),penalty:10}),n=n.parentElement}return yc(r,t)?r:void 0},xc=(e,t,n,r)=>{if(e.nodeType!==Node.ELEMENT_NODE)throw new Ji;if(e.tagName.toLowerCase()===`html`)return`html`;let i=vc(t,e),a=Date.now(),o=[],s=e,c=0,l;for(;s&&s!==i&&!l;)if(o.push(gc(s,r)),s=s.parentElement,c++,c>=3){let t=_c(o);t.sort(fc);for(let r of t){if(Date.now()-a>n){let t=bc(e,i);if(!t)throw new Yi(n);return uc(t)}if(yc(r,i)){l=r;break}}}if(!l&&c<3){let e=_c(o);e.sort(fc);for(let t of e){if(Date.now()-a>n)break;if(yc(t,i)){l=t;break}}}if(!l)throw new Xi;return uc(l)};q();let Sc=/^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/i,Cc=/:r[a-z0-9]+:/i,wc=/_r_[a-z0-9]+_(?:$|-)/i,Tc=/«r[a-z0-9]+»/i,Ec=/^(?:downshift-\d+(?:-|$)|headlessui-[a-z-]+-\d+(?:-|$)|mui-\d+(?:-|$)|radix-\d+(?:-|$)|react-aria-\d+(?:-|$)|react-select-\d+(?:-|$))/i,Dc=/^ember\d+$/i,Oc=/^\d+$/,kc=e=>e.length>0&&e.length<=120&&!Cc.test(e)&&!Sc.test(e)&&!wc.test(e)&&!Tc.test(e)&&!Ec.test(e)&&!Dc.test(e)&&!Oc.test(e),Ac=new Set([`data-testid`,`data-test-id`,`data-test`,`data-cy`,`data-qa`,`aria-label`,`href`,`src`,`role`,`name`,`title`,`alt`]),jc=new Set([`button`,`link`,`checkbox`,`radio`,`switch`,`tab`,`menuitem`,`option`,`textbox`,`combobox`,`slider`,`spinbutton`]);q(),Zn(),Di(),Bn(),_i();let Mc=e=>e.ownerDocument.body??e.ownerDocument.documentElement,Nc=e=>e.length>0&&e.length<=120,Pc=(e,t)=>Ac.has(e)&&Nc(t)&&(e!==`role`||t.split(/\s+/).some(e=>jc.has(e))),Fc=(e,t)=>{try{let n=e.getRootNode(),r=(Ei(n)?n:e.ownerDocument).querySelectorAll(t);return r.length===1&&r[0]===e}catch{return!1}},Ic=e=>{let t=e.getAttribute(`id`),n=null;if(t){let r=`#${CSS.escape(t)}`;if(Fc(e,r)){if(kc(t))return{selector:r,isSemantic:!0};n=r}}for(let t of Ac){let n=e.getAttribute(t);if(!n||!Pc(t,n))continue;let r=`[${t}=${JSON.stringify(n)}]`;if(Fc(e,r))return{selector:r,isSemantic:!0};let i=`${e.tagName.toLowerCase()}${r}`;if(Fc(e,i))return{selector:i,isSemantic:!0}}return n?{selector:n,isSemantic:!1}:null},Lc=e=>{let t=[],n=e.getRootNode(),r=Ei(n)?n:Mc(e),i=e;for(;i;){let e=i.getAttribute(`id`);if(e){t.unshift(`#${CSS.escape(e)}`);break}let n=i.parentNode;if(!n){t.unshift(i.tagName.toLowerCase());break}let a=Array.from(n.children).indexOf(i)+1;if(t.unshift(`${i.tagName.toLowerCase()}:nth-child(${a})`),n===r){zn(r)&&t.unshift(r.tagName.toLowerCase());break}i=zn(n)?n:null}return t.join(` > `)},Rc=e=>{let t=Ic(e);if(t)return t;try{let t=xc(e,Mc(e),200,(e,t)=>lc(e,t)||Pc(e,t));if(t)return{selector:t,isSemantic:!1}}catch{}return{selector:Lc(e),isSemantic:!1}},zc=e=>{let t=hi(e);if(t)return{selector:t.getSelector(),isSemantic:!0};let n=Ic(e);if(!n?.isSemantic)return null;let r=e.getRootNode();if(Ei(r)){let e=zc(r.host);return e?{selector:`${e.selector} >>> ${n.selector}`,isSemantic:!0}:null}let i=Xn(e.ownerDocument.defaultView);if(!i)return n;let a=zc(i);return a?{selector:`${a.selector} >>iframe>> ${n.selector}`,isSemantic:!0}:null},Bc=e=>{let t=hi(e);if(t)return{selector:t.getSelector(),isSemantic:!0};let n=Rc(e),r=e.getRootNode();if(Ei(r)){let e=Bc(r.host);return{selector:`${e.selector} >>> ${n.selector}`,isSemantic:e.isSemantic&&n.isSemantic}}let i=Xn(e.ownerDocument.defaultView);if(!i)return n;let a=Bc(i);return{selector:`${a.selector} >>iframe>> ${n.selector}`,isSemantic:a.isSemantic&&n.isSemantic}};q(),ga();let Vc=[...Array.from(Ac).filter(e=>e!==`role`).map(e=>`[${e}]`),...Array.from(jc).map(e=>`[role~="${e}"]`)].join(`,`),Hc=[`button`,`input`,`select`,`textarea`].join(`,`),Uc=e=>{let t=e.getAttribute(`id`);return!!(t&&kc(t)||e.matches(Vc))},Wc=e=>Uc(e)||e.matches(Hc),Gc=e=>{let{body:t,documentElement:n}=e.ownerDocument;if(e===t||e===n)return!0;if(!t)return!1;let r=t.getElementsByTagName(`*`).length;return r===0?!1:e.getElementsByTagName(`*`).length/r>=sn},Kc=(e,t)=>{let n=e.getRootNode(),r=e;for(;r;){let i=Wc(r),a=i&&Gc(r);if(i){if(a&&r!==e)return e;if(!t||t(r)||a||!Uc(r)&&r===e)return r}let o=ha(r);r=o?.getRootNode()===n?o:null}return e};_i();let qc=e=>{if(hi(e))return zc(e);let t=null;return Kc(e,e=>{let n=zc(e);return n?(t=n,!0):!1}),t},Jc=[/\/assets\/[^/?#]+-[a-z0-9_-]{6,}\.(?:c|m)?js(?:[?#]|$)/,/\/_next\/static\/.*\.(?:c|m)?js(?:[?#]|$)/,/\/static\/chunks\/.*\.(?:c|m)?js(?:[?#]|$)/],Yc=e=>{if(!e)return!1;let t=`/${Ls(e)}`.toLowerCase();return Jc.some(e=>e.test(t))};q();let Xc=e=>{if(!e)return!1;let t=`/${Ls(e)}/`.toLowerCase();return nn.some(e=>t.includes(e))},Zc,Qc=(e=!1)=>{let t=new URL(document.baseURI);return Array.from(document.scripts).some(n=>{if(!n.src)return!1;try{let r=new URL(n.src,t);return(e||r.origin===t.origin)&&r.pathname.includes(`/_next/static/`)}catch{return!1}})},$c=()=>Array.from(document.scripts).some(e=>e.textContent?.includes(`self.__next_f.push`)),el=e=>(e&&(Zc=void 0),Zc??=typeof document<`u`&&!!(document.getElementById(`__NEXT_DATA__`)||document.querySelector(`nextjs-portal`)||Qc()||$c()&&Qc(!0)),Zc),tl=e=>e.map(e=>`\n in ${e}`).join(``),nl,rl=()=>{if(nl!==void 0)return nl;let e=document.querySelector(`script[src*="/_next/"]`)?.src,t=e?new URL(e).pathname:``,n=t.indexOf(`/_next/`);return nl=n>0?t.slice(0,n):``,nl};fi(),q();let il=[`about://React/`,`rsc://React/`],al=e=>il.some(t=>e.startsWith(t)),ol=e=>{for(let t of il){if(!e.startsWith(t))continue;let n=e.indexOf(`/`,t.length);if(n===-1)continue;let r=n+1,i=e.lastIndexOf(`?`);return Rs(i>r?e.slice(r,i):e.slice(r))}return e},sl=e=>{if(typeof e!=`object`||!e||!(`status`in e)||e.status!==`fulfilled`||!(`value`in e)||typeof e.value!=`object`||e.value===null||!(`originalStackFrame`in e.value))return null;let t=e.value.originalStackFrame;return typeof t!=`object`||!t||!(`file`in t)||typeof t.file!=`string`||!t.file||`ignored`in t&&t.ignored?null:{file:t.file,line1:`line1`in t&&typeof t.line1==`number`?t.line1:null,column1:`column1`in t&&typeof t.column1==`number`?t.column1:null}},cl=async(e,t)=>{let n=[],r=[];for(let t=0;t<e.length;t++){let i=e[t];!i.isServer||!i.fileName||(n.push(t),r.push({file:ol(i.fileName),methodName:i.functionName??`<unknown>`,line1:i.lineNumber??null,column1:i.columnNumber??null,arguments:[]}))}if(r.length===0)return e;let i=new AbortController,a=setTimeout(()=>i.abort(),rn),o=()=>i.abort();t?.aborted&&i.abort(),t?.addEventListener(`abort`,o);try{let t=await fetch(`${rl()}/__nextjs_original-stack-frames`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({frames:r,isServer:!0,isEdgeServer:!1,isAppDirectory:!0}),priority:`high`,signal:i.signal});if(!t.ok)return e;let a=await t.json();if(!Array.isArray(a))return e;let o=[...e];for(let t=0;t<n.length;t++){let r=sl(a[t]);if(!r)continue;let i=n[t];o[i]={...e[i],fileName:r.file,lineNumber:r.line1??void 0,columnNumber:r.column1??void 0,isSymbolicated:!0}}return o}catch{return e}finally{clearTimeout(a),t?.removeEventListener(`abort`,o)}},ll=e=>{let t=new Map;return Er(e,e=>{if(!To(e))return!1;let n=Ro(e._debugStack.stack);if(!n)return!1;for(let e of Ha(n))!e.functionName||!e.fileName||al(e.fileName)&&(t.has(e.functionName)||t.set(e.functionName,{...e,isServer:!0}));return!1},!0),t},ul=(e,t)=>{if(!t.some(e=>e.isServer&&!e.fileName&&e.functionName))return t;let n=ll(e);return n.size===0?t:t.map(e=>{if(!e.isServer||e.fileName||!e.functionName)return e;let t=n.get(e.functionName);return t?{...e,fileName:t.fileName,lineNumber:t.lineNumber,columnNumber:t.columnNumber}:e})};q();let dl=0,fl=[],pl=e=>e?.aborted?Promise.resolve(!1):dl<3?(dl+=1,Promise.resolve(!0)):new Promise(t=>{let n={abortSignal:e,resolve:t};e&&(n.handleAbort=()=>{let e=fl.indexOf(n);e!==-1&&(fl.splice(e,1),t(!1))},e.addEventListener(`abort`,n.handleAbort,{once:!0})),fl.push(n)}),ml=()=>{let e=fl.shift();if(e){e.abortSignal&&e.handleAbort&&e.abortSignal.removeEventListener(`abort`,e.handleAbort),e.resolve(!0);return}--dl},hl=async(e,t,n=an,r)=>{if(!await pl(r))return t;let i=new AbortController,a,o=new Promise(e=>{a=setTimeout(()=>{i.abort(),e(t)},n)}),s,c=new Promise(e=>{r&&(s=()=>{i.abort(),e(t)},r.aborted?s():r.addEventListener(`abort`,s,{once:!0}))});try{let t=e(i.signal);return t.catch(()=>{}),await Promise.race([t,o,c])}finally{clearTimeout(a),s&&r?.removeEventListener(`abort`,s),ml()}},gl=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),_l=e=>gl(e).replace(/"/g,`"`).replace(/\r/g,` `).replace(/\n/g,` `).replace(/\t/g,`	`),vl=(e,t)=>{if(e.length<=t)return e;let n=Math.max(0,t-3),r=e.slice(0,n),i=r.lastIndexOf(`&`);return`${i>r.lastIndexOf(`;`)?r.slice(0,i):r}...`.slice(0,t)},yl=e=>e.startsWith(`data-react-grab-`);q(),Bn();let bl=e=>e.replace(/\s+/g,` `).trim(),xl=e=>{let t=[];for(let n of e.childNodes){if(n.nodeType!==Node.TEXT_NODE)continue;let e=bl(n.textContent??``);e&&t.push(e)}return t.join(` `)},Sl=e=>e.getAttribute(`aria-hidden`)===`true`||e.hasAttribute(`hidden`)?!0:xn.has(e.tagName.toLowerCase()),Cl=(e,t,n)=>{if(e.nodeType===Node.TEXT_NODE){let r=bl(e.textContent??``);return r?(t.push(r),n-r.length):n}if(!zn(e)||Sl(e))return n;for(let r of e.childNodes)if(n=Cl(r,t,n),n<=0)break;return n},wl=(e,t)=>{if(Sl(e))return``;let n=xl(e);if(!bn.has(t)||n&&e.children.length===0)return n;let r=[];return Cl(e,r,100),r.join(` `)};q(),ea(),Bn(),Hn(),_i();let Tl=(e,t,n)=>`${e}="${vl(_l(t),n)}"`,El=e=>{let t=[];for(let n of vn){if(t.length>=8)break;let r=e.getAttribute(n);if(!r)continue;let i=n===`class`?15:120;t.push(Tl(n,r,i))}return t},Dl=e=>{let t=El(e);return t.length>0?` ${t.join(` `)}`:``},Ol=e=>e===`class`||e===`className`||e===`style`,kl=e=>{let t=El(e).map(e=>` ${e}`),n=[],r=[];for(let{name:t,value:i}of e.attributes)yl(t)||vn.includes(t)||Ol(t)||(yn.has(t)?n.push(i?` ${Tl(t,i,120)}`:` ${t}`):i&&r.push(` ${Tl(t,i,15)}`));return[...t,...n,...r].slice(0,8).join(``)},Al=e=>e.length===0?``:e.length<=2?e.map(e=>`<${$i(e)} ...>`).join(`
|
|
21
|
-
`):`(${e.length} elements)`,jl=e=>{let t=hi(e);if(t)return t.getPreview();let n=$i(e);if(!Vn(e)){let t=Dl(e),r=vl(gl(wl(e,n)),100);return r?`<${n}${t}>${r}</${n}>`:`<${n}${t} />`}let r=kl(e),i=vl(gl(wl(e,n)),100);return i?`<${n}${r}>${i}</${n}>`:`<${n}${r} />`},Ml=e=>{let t=hi(e);if(t)return t.getPreview();let n=$i(e),r=kl(e),i=wl(e,n),a=[],o=[],s=!1;for(let t of e.childNodes)t.nodeType!==Node.COMMENT_NODE&&(t.nodeType===Node.TEXT_NODE?t.textContent&&t.textContent.trim().length>0&&(s=!0):zn(t)&&(s?o.push(t):a.push(t)));let c=i.length>0&&bn.has(n),l=``,u=Al(a);u&&!c&&(l+=`\n ${u}`),i&&(l+=`\n ${vl(gl(i),100)}`);let d=Al(o);return d&&!c&&(l+=`\n ${d}`),l.length>0?`<${n}${r}>${l}\n</${n}>`:`<${n}${r} />`},Nl=new Set([`_`,`$`,`motion.`,`styled.`,`chakra.`,`ark.`,`Primitive.`,`Slot.`]),Pl=new Set(`AppRouter.AppRouterAnnouncer.AppDevOverlay.AppDevOverlayErrorBoundary.ClientPageRoot.ClientSegmentRoot.DevRootHTTPAccessFallbackBoundary.ErrorBoundary.ErrorBoundaryHandler.GracefulDegradeBoundary.HTTPAccessErrorFallback.HTTPAccessFallbackBoundary.HTTPAccessFallbackErrorBoundary.HandleRedirect.Head.HistoryUpdater.HotReload.InnerLayoutRouter.InnerScrollAndFocusHandler.InnerScrollAndFocusHandlerOld.InnerScrollAndMaybeFocusHandler.InnerScrollHandlerNew.LinkComponent.LoadableComponent.LoadingBoundary.LoadingBoundaryProvider.NotAllowedRootHTTPFallbackError.OfflineProvider.OuterLayoutRouter.RedirectBoundary.RedirectErrorBoundary.RenderFromTemplateContext.RenderValidationBoundaryAtThisLevel.ReplaySsrOnlyErrors.RootErrorBoundary.RootLevelDevOverlayElement.Router.ScrollAndFocusHandler.ScrollAndMaybeFocusHandler.SegmentBoundaryTrigger.SegmentBoundaryTriggerNode.SegmentStateProvider.SegmentTrieNode.SegmentViewNode.SegmentViewStateNode.ServerRoot.body.html`.split(`.`)),Fl=new Set([`<anonymous>`,`<unknown>`,`Anonymous`,`Unknown`]),Il=new Set([`Suspense`,`Fragment`,`StrictMode`,`Profiler`,`SuspenseList`]),Ll=new Set([`MotionDOMComponent`,`Slot`,`SlotClone`]),Rl=[`.Consumer`,`.Context`,`.Provider`,`.Slot`,`.SlotClone`,`.Slottable`,`ProviderProvider`],zl=(e,t=!1)=>{if(Fl.has(e)||t&&Pl.has(e)||Il.has(e)||Ll.has(e))return!0;for(let t of Rl)if(e.endsWith(t))return!0;for(let t of Nl)if(e.startsWith(t))return!0;return!1},Bl=(e,t=!1)=>!(!e||zl(e,t)),Vl=(e,t)=>e||t.isSemantic,Hl=e=>{let t=e.alternate,n=e._debugOwner,r=e._debugSource,i=e._debugStack;return{matches:a=>(a===e||a===t||a.alternate===e)&&a._debugOwner===n&&a._debugSource===r&&a._debugStack===i}},Ul=(e,t)=>e.length>t?`${e.slice(0,t)}...`:e;q();let Wl=e=>JSON.stringify(Ul(e,120)),Gl=(e,t,n)=>{e.get(t)===n&&e.delete(t)};q();let Kl=async(e,t)=>{for(let n=0;n<2;n+=1){let r=e();if(!r)return t();let i=await r.valuePromise;if(r.isCurrent()||n===1)return i}return t()};fi(),q(),Di(),_i();let ql=(e,t)=>!(e.length<=1||zl(e,t)||e[0]!==e[0].toUpperCase()),Jl=(e,t)=>e&&ql(e,t)?e:null,Yl=e=>!Xc(e)&&!Yc(e),Xl=e=>{if(!Br())return e;let t=e;for(;t?.ownerDocument===e.ownerDocument;){if(gi(t))return t;if(t.parentElement){t=t.parentElement;continue}let e=t.getRootNode();t=Ei(e)?e.host:null}return e},Zl=e=>{let t=e.return?.child??null;for(;t;){if(t!==e&&t.key!==null)return!0;t=t.sibling}return!1},Ql=e=>{let t=e,n=0;for(;t;){if(t.key!==null&&Zl(t))return String(t.key);if(jr(t)&&(n+=1,n===2))break;t=t.return}return null},$l=e=>{if(!Br())return null;let t=gi(Xl(e));return Ql(t?Hr(t):null)},eu=new WeakMap,tu=new WeakMap,nu=e=>{let t=Xl(e),n=gi(t);if(!n)return null;let r=Hr(n);return{element:t,fiber:r,revision:Hl(r)}},ru=(e,t)=>{let n=nu(e);return!!(n&&n.element===t.element&&t.revision.matches(n.fiber))},iu=(e,t,n)=>Kl(()=>{let t=nu(e);return t?{isCurrent:()=>ru(e,t),valuePromise:n(t)}:null},t),au=e=>t=>fetch(t,{signal:e,priority:`high`}),ou=(e,t)=>hl(async t=>{try{let n=await Yo(e,!0,au(t));return el()?await cl(ul(e,n),t):n}catch{return null}},null,void 0,t),su=e=>{if(!Br())return Promise.resolve([]);let t=eu.get(e.element);if(t?.revision.matches(e.fiber))return t.promise;let n=new AbortController,r=ou(e.fiber,n.signal);if(!ru(e.element,e))return r;let i={controller:n,promise:r,revision:e.revision};return eu.set(e.element,i),t?.controller.abort(),i.promise.then(t=>{t===null&&Gl(eu,e.element,i)}),i.promise},cu=e=>Br()?iu(e,()=>null,su):Promise.resolve([]),lu=async e=>{if(!Br())return null;let t=el(),n=Jl(hi(e)?_u(e):null,t);if(n)return n;let r=await cu(e);if(!r)return null;for(let e of r){let n=Jl(e.functionName,t);if(n)return n}return null},uu=e=>e[0]??null,du=(e,t)=>!e||!jr(e)?null:Jl(zr(e.type),t),fu=(e,t)=>hl(async t=>{try{let n=await $o(e,!0,au(t));if(!n?.fileName)return null;let r=el();return{filePath:Ls(n.fileName),lineNumber:n.lineNumber??null,columnNumber:n.columnNumber??null,componentName:Jl(n.functionName,r)??du(e._debugOwner,r),origin:oc(n.fileName).origin}}catch{return null}},null,void 0,t),pu=e=>{let t=tu.get(e.element);if(t?.revision.matches(e.fiber))return t.promise;let n=new AbortController,r=fu(e.fiber,n.signal);if(!ru(e.element,e))return r;let i={controller:n,promise:r,revision:e.revision};return tu.set(e.element,i),t?.controller.abort(),i.promise.then(t=>{t||Gl(tu,e.element,i)}),i.promise},mu=async e=>{let[t,n]=await Promise.all([pu(e),su(e)]);return{fiber:e.fiber,fiberSource:t,stack:n}},hu=(e,t)=>{let n=el(),r=(e,t)=>{let r=uu(e);return r?.fileName?{filePath:Ls(r.fileName),lineNumber:r.lineNumber??null,columnNumber:r.columnNumber??null,componentName:Jl(r.functionName,n),origin:t}:null},i=t.filter(e=>oc(e.fileName).origin===`app`),a=i.filter(e=>Yl(e.fileName));return e?.origin===`app`&&Yl(e.filePath)?e:r(a,`app`)||(e?.origin===`app`&&!Yc(e.filePath)?e:r(i,`app`)||(e?.origin===`app`||e?.origin===`package`?e:r(t.filter(e=>oc(e.fileName).origin===`package`),`package`)))},gu=async e=>iu(e,()=>null,async e=>{let t=await pu(e);return t?.origin===`app`&&Yl(t.filePath)?t:hu(t,await su(e)??[])}),_u=e=>vu(Xl(e),1)[0]??null,vu=(e,t,n=()=>!0)=>{if(!Br())return[];let r=gi(e);if(!r)return[];let i=el(),a=[];return Er(Hr(r),e=>{if(a.length>=t)return!0;if(jr(e)){let t=zr(e.type);t&&Bl(t,i)&&n(t)&&a.push(t)}return!1},!0),a},yu=[`/src/app/`,`/src/pages/`,`/app/`,`/pages/`],bu=(e,t)=>{let n=Ls(e);if(!t||!n.startsWith(`/`))return n;for(let e of yu){let t=n.indexOf(e);if(t!==-1)return`/./${n.slice(t+1)}`}return n},xu=(e,t)=>{let n=bu(e.filePath,t),r=t&&e.lineNumber?`${n}:${e.lineNumber}${e.columnNumber?`:${e.columnNumber}`:``}`:n;return e.componentName?`\n in ${e.componentName} (at ${r})`:`\n in ${r}`},Su={isAppSource:!1,consumesBudget:!1},Cu=(e,t,n,r)=>{let i=t.packageName,a=t.origin===`app`?e.fileName:null;if(e.isServer&&!a&&(n||!e.functionName)){let e=i?`${i} at Server`:`at Server`;return{text:`\n in ${n??`<anonymous>`} (${e})`,...Su}}return!a&&n?{text:i?`\n in ${n} (${i})`:`\n in ${n}`,...Su}:i?{text:`\n in ${i}`,...Su}:a?{text:xu({componentName:n,filePath:a,lineNumber:e.lineNumber??null,columnNumber:e.columnNumber??null},r),isAppSource:!0,consumesBudget:Yl(a)}:null},wu=(e,t={},n=null)=>{let r=Fs(t.maxLines),i=Math.max(r,20),a=el(),o=[],s=new Set,c=null,l=!1,u=!1,d=!1,f=0,p=e=>{e&&s.add(e)};if(n){let e=n.origin===`app`&&Yl(n.filePath);u=e,e&&(f+=1),p(n.componentName),o.push(xu(n,a))}for(let t of e){if(!r||o.length>=i)break;let e=oc(t.fileName),s=Jl(t.functionName,a),m=e.packageName?`${e.packageName}:${s??``}:${t.isServer?`server`:`client`}`:null;if(m&&m===c)continue;if(!l&&s&&s===n?.componentName){l=!0;continue}let h=Cu(t,e,s,a);h!==null&&(h.consumesBudget&&f>=r||h.text!==o[o.length-1]&&(h.isAppSource&&h.consumesBudget&&(u=!0),h.consumesBudget&&(f+=1,d=!0),p(s),o.push(h.text),c=m))}return{text:o.join(``),shouldAppendSelectorHint:!u,hasBudgetedStackFrame:d,renderedComponentNames:s,remainingHardLineCapacity:Math.max(0,i-o.length)}},Tu=(e,t)=>{let n=hu(e,t);return n?.origin===`app`?n:null},Eu=(e,t,n)=>{let r=Math.min(n,t.remainingHardLineCapacity);if(r===0)return t;let i=el(),a=vu(Xl(e),r,e=>ql(e,i)&&!t.renderedComponentNames.has(e));return a.length===0?t:{...t,text:`${t.text}${tl(a)}`,remainingHardLineCapacity:t.remainingHardLineCapacity-a.length}},Du=(e,t,n)=>{let r=n.stack??[],i=Tu(n.fiberSource,r),a=Fs(t.maxLines),o=wu(r,t,i);if(o.text)return o.hasBudgetedStackFrame?o:Eu(e,o,a);let s=vu(Xl(e),a),c=Math.max(a,20);return{text:tl(s),shouldAppendSelectorHint:!0,hasBudgetedStackFrame:!1,renderedComponentNames:new Set(s),remainingHardLineCapacity:Math.max(0,c-s.length)}},Ou=(e,t={})=>iu(e,()=>Du(e,t,{fiber:null,fiberSource:null,stack:[]}),async n=>Du(e,t,await mu(n))),ku=async(e,t={})=>(await Ou(e,t)).text,Au=(e,t)=>{let n=$l(e),r=n===null?``:`\n key: ${Wl(n)}`,i=t.shouldAppendSelectorHint?Bc(Kc(e)):qc(e),a=i&&Vl(t.shouldAppendSelectorHint,i)?i.selector:null,o=a?`\n selector: ${a}`:``;return{selector:a,text:`${t.text}${r}${o}`}},ju=async(e,t={})=>{let n=Xl(e);return`${Ml(n)}${Au(n,await Ou(n,t)).text}`},Mu=(e,t,n)=>{let r=t.stack??[],i=hu(t.fiberSource,r);return{componentName:_u(e),fiber:t.fiber,source:i,stack:r,stackContext:n.text}},Nu=(e,t,n)=>{let r=Du(e,t,n),i=Au(e,r);return{...Mu(e,n,r),referenceContext:`${jl(e)}${i.text.replace(/\n\s+/g,` `)}`}},Pu=(e,t,n)=>iu(e,()=>n(e,t,{fiber:null,fiberSource:null,stack:[]}),async r=>n(e,t,await mu(r))),Fu=(e,t={})=>Pu(e,t,Nu);R();let Iu=e=>{let[t,n]=c(void 0),r=0;return d(_(e,e=>{let t=++r;if(!e){n(void 0);return}let i=_u(e)??void 0;n(i),lu(e).then(e=>{r===t&&n(e??i)}).catch(()=>{r===t&&n(i)})})),[t,n]};var Lu,Ru,zu,Bu,Vu,Hu,Uu=n((()=>{Lu=typeof window<`u`,Ru=e=>0,zu=e=>{},Bu=Lu?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):Ru,Vu=Lu?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):zu,Hu=()=>Lu?new Promise(e=>Bu(()=>e())):Promise.resolve()}));Uu();let Wu=/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*([\d.]+%?))?\s*\)$/,Gu=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,`0`),Ku=(e,t,n,r=1)=>{let i=Gu(e),a=Gu(t),o=Gu(n);return r>=1?`#${i}${a}${o}`:`#${i}${a}${o}${Gu(r*255)}`},qu=e=>{if(!e.startsWith(`#`))return null;let t=e.slice(1);if(t.length!==6&&t.length!==8)return null;let n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16),a=t.length===8?parseInt(t.slice(6,8),16)/255:1;return!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)?null:{red:n,green:r,blue:i,alpha:a}},Ju=e=>{let t=e.match(Wu);if(!t)return null;let n=1;if(t[4]!==void 0){let e=t[4];n=e.endsWith(`%`)?Number(e.slice(0,-1))/100:Number(e)}return Ku(Number(t[1]),Number(t[2]),Number(t[3]),n)},Yu=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Xu=e=>{let t=e.match(Yu);if(!t)return null;let n=t[1];return n.length===3?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`:n.length===4?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:`#${n}`},Zu=`rgba(0, 0, 0, 0)`,Qu=`#00000000`,$u=/^oklch\(\s*([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+)(deg|grad|rad|turn)?(?:\s*\/\s*([+-]?\d*\.?\d+%?))?\s*\)$/i,ed=180/Math.PI,td=(e,t)=>e.endsWith(`%`)?Number(e.slice(0,-1))/100*t:Number(e),nd=(e,t)=>{let n=Number(e);return t===`grad`?n*.9:t===`rad`?n*ed:t===`turn`?n*360:n},rd=e=>{let t=Math.max(0,Math.min(1,e));return(t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055)*255},id=e=>{let t=e.match($u);if(!t)return null;let n=td(t[1],1),r=td(t[2],.4),i=nd(t[3],t[4])*Math.PI/180,a=t[5]===void 0?1:td(t[5],1);if(![n,r,i,a].every(Number.isFinite))return null;let o=r*Math.cos(i),s=r*Math.sin(i),c=n+.3963377774*o+.2158037573*s,l=n-.1055613458*o-.0638541728*s,u=n-.0894841775*o-1.291485548*s,d=c**3,f=l**3,p=u**3,m=4.0767416621*d-3.3077115913*f+.2309699292*p,h=-1.2684380046*d+2.6097574011*f-.3413193965*p,g=-.0041960863*d-.7034186147*f+1.707614701*p;return Ku(rd(m),rd(h),rd(g),Math.max(0,Math.min(1,a)))},ad=null,od=()=>ad||(typeof document>`u`?null:(ad=document.createElement(`canvas`).getContext(`2d`,{willReadFrequently:!0}),ad)),sd=(e,t)=>{e.clearRect(0,0,1,1),e.fillStyle=t,e.fillRect(0,0,1,1);let n=e.getImageData(0,0,1,1).data;return n[3]===0?Qu:Ku(n[0],n[1],n[2],n[3]/255)},cd=e=>{let t=e.trim();if(!t)return null;if(t.toLowerCase()===`transparent`)return Qu;let n=Xu(t);if(n)return n;let r=id(t);if(r)return r;let i=od();if(!i)return null;i.fillStyle=Zu,i.fillStyle=t;let a=i.fillStyle;return typeof a==`string`?a.toLowerCase()===Zu?t.toLowerCase().replace(/\s+/g,``)===`rgba(0,0,0,0)`?Qu:null:a.startsWith(`#`)&&a.length===7?a:a.startsWith(`rgb`)?Ju(a):sd(i,t):null};q();let ld=[`data-theme`,`data-mode`,`data-color-scheme`,`data-bs-theme`,`data-mui-color-scheme`,`data-mantine-color-scheme`],ud=[{attribute:`data-dark`,theme:`dark`},{attribute:`data-light`,theme:`light`}],dd=(e,t,n)=>{let[r,i,a]=[e,t,n].map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*r+.7152*i+.0722*a},fd=(e,t=0)=>{let n=cd(e),r=n?qu(n):null;return!r||r.alpha<=t?null:dd(r.red,r.green,r.blue)},pd=e=>{let t=fd(e);return t===null?null:t<.18?`dark`:`light`},md=e=>pd(getComputedStyle(e).backgroundColor),hd=()=>{let e=fd(getComputedStyle(document.documentElement).color,En);return e===null?null:e>.6?`dark`:null},gd=()=>{let e=document.createElement(`div`);e.style.cssText=`position:fixed;width:0;height:0;background-color:Canvas!important`,document.documentElement.appendChild(e);let t=pd(getComputedStyle(e).backgroundColor);return e.remove(),t},_d=e=>{let t=e.toLowerCase();return t===`dark`?`dark`:t===`light`?`light`:null},vd=e=>{let t=e.style.colorScheme||getComputedStyle(e).colorScheme;return t?t.trim().toLowerCase().split(/\s+/):[]},yd=e=>{let t=vd(e),n=t.includes(`dark`);return n===t.includes(`light`)?null:n?`dark`:`light`},bd=e=>{if(e.classList.contains(`dark`))return`dark`;if(e.classList.contains(`light`))return`light`;for(let t of ld){let n=e.getAttribute(t);if(!n)continue;let r=_d(n);if(r)return r}for(let{attribute:t,theme:n}of ud)if(e.hasAttribute(t))return n;return null},xd=(e,t)=>{for(let n of e){if(!n)continue;let e=t(n);if(e)return e}return null},Sd=()=>{let e=[document.documentElement,document.body],t=[document.body,document.documentElement];return xd(e,bd)??xd(e,yd)??xd(t,md)??hd()??gd()??`light`},Cd=e=>e===`dark`?`light`:`dark`,wd=()=>{let e=[];for(let t of[document.documentElement,document.body]){if(!t)continue;e.push(t.className);for(let n of ld)e.push(t.getAttribute(n)??``);for(let{attribute:n}of ud)e.push(t.hasAttribute(n)?`1`:``);let n=t.style;e.push(n.colorScheme,n.backgroundColor,n.color);for(let t=0;t<n.length;t++){let r=n[t];r.startsWith(`--`)&&e.push(`${r}:${n.getPropertyValue(r)}`)}}return e.join(`|`)},Td={attributes:!0,attributeFilter:[`class`,`style`,...ld,...ud.map(({attribute:e})=>e)]},Ed=(e,t)=>{let n=null,r=null,i=null,a=i=>{if(i===r&&n!==null)return getComputedStyle(document.body??document.documentElement).backgroundColor,n;r=i;let a=Cd(Sd());return a!==n&&(n=a,e.setAttribute(`data-rg-theme`,a),t?.(a)),a},o=()=>a(wd()),s=()=>{i!==null&&(Vu(i),i=null)},c=()=>{i===null&&(i=Bu(()=>{i=null,o()}))},l=o(),u=()=>{let e=wd();if(e===r){c();return}s(),a(e)},d=new MutationObserver(u);d.observe(document.documentElement,Td);let f=null;document.body?d.observe(document.body,Td):(f=new MutationObserver((e,t)=>{document.body&&(t.disconnect(),f=null,d.observe(document.body,Td),u())}),f.observe(document.documentElement,{childList:!0}));let p=()=>{r=null,c()},m=window.matchMedia(`(prefers-color-scheme: dark)`);return m.addEventListener(`change`,p),{theme:l,cleanup:()=>{f?.disconnect(),d.disconnect(),m.removeEventListener(`change`,p),s()}}},Dd=()=>{},Od=()=>({activate:Dd,deactivate:Dd,toggle:Dd,comment:Dd,isActive:()=>!1,isEnabled:()=>!1,setEnabled:Dd,getToolbarState:()=>null,setToolbarState:Dd,onToolbarStateChange:()=>Dd,reset:Dd,dispose:Dd,copyElement:()=>Promise.resolve(!1),getSource:()=>Promise.resolve(null),getStackContext:()=>Promise.resolve(``),getState:()=>({isActive:!1,isDragging:!1,isCopying:!1,isPromptMode:!1,isSelectionBoxVisible:!1,isDragBoxVisible:!1,targetElement:null,dragBounds:null,grabbedBoxes:[],labelInstances:[],selectionFilePath:null,toolbarState:null}),setOptions:Dd,registerPlugin:Dd,unregisterPlugin:Dd,getPlugins:()=>[],getDisplayName:()=>null}),kd=()=>{let e=new AbortController;return{signal:e.signal,abort:()=>e.abort(),addWindowListener:(t,n,r={})=>{window.addEventListener(t,n,{...r,signal:e.signal})},addDocumentListener:(t,n,r={})=>{document.addEventListener(t,n,{...r,signal:e.signal})}}};q(),wa();let Ad=(e,t)=>{let n=t?.componentName??`div`,r={version:Xt,content:e,entries:t?.entries??[{tagName:t?.tagName,componentName:n,content:e,commentText:t?.commentText}],timestamp:Date.now()},i=t=>{t.preventDefault(),t.clipboardData?.setData(`text/plain`,e),t.clipboardData?.setData(`text/html`,`<meta charset='utf-8'><pre><code>${gl(e)}</code></pre>`),t.clipboardData?.setData(`application/x-react-grab`,JSON.stringify(r))},a=document.createElement(`textarea`);document.addEventListener(`copy`,i);try{return a.value=e,a.style.position=`fixed`,a.style.left=`-9999px`,a.ariaHidden=`true`,document.body.appendChild(a),a.select(),typeof document.execCommand==`function`?document.execCommand(`copy`):!1}finally{document.removeEventListener(`copy`,i),a.remove()}},jd=(e,t=`Unknown error`)=>e instanceof Error&&e.message?e.message:t,Md=e=>e instanceof Error?e:Error(String(e)),Nd=Symbol(`aborted-promise-result`),Pd=async(e,t)=>{if(!t)return e;if(t.aborted)return Nd;let n=()=>{},r=new Promise(e=>{n=()=>e(Nd)});t.addEventListener(`abort`,n,{once:!0});try{return await Promise.race([e,r])}finally{t.removeEventListener(`abort`,n)}};ea();let Fd={status:`cancelled`},Id=e=>({functionName:e.functionName,fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,isServer:e.isServer,isSymbolicated:e.isSymbolicated}),Ld=async(e,t)=>{let n=await Fu(e,{maxLines:t});return{tagName:$i(e),componentName:n.componentName??n.source?.componentName??void 0,content:`[${n.referenceContext}]`,source:n.source,stackContext:n.stackContext,frames:n.stack.map(Id)}},Rd=async(e,t)=>{let n=[...new Set(e)],r=await Promise.all(n.map(e=>Ld(e,t)));return r.length>0?{content:r.map(e=>e.content).join(`
|
|
22
|
-
`),entries:r}:null},
|
|
23
|
-
iframe[${Tn}] { pointer-events: auto !important; }`,Xf=`html, body { pointer-events: auto !important; }`,Zf=new Set,Qf=new Map,$f=!1,ep=e=>{if(Qf.has(e))return;let t=qf(`data-react-grab-frozen-pseudo`,Yf,e),n=qf(`data-react-grab-hittest-override`,Xf,e);n.disabled=!0,Qf.set(e,{pointerEventsStyle:t,hitTestOverrideStyle:n})},tp=e=>{let t=Qf.get(e);t&&(t.pointerEventsStyle.remove(),t.hitTestOverrideStyle.remove(),Qf.delete(e))},np=()=>$f,rp=e=>(Zf.add(e),$f&&ep(e),()=>{Zf.delete(e),tp(e)}),ip=()=>{if(!$f){$f=!0,Zf.add(document);for(let e of Zf)ep(e)}},ap=()=>{if($f){$f=!1;for(let e of[...Qf.keys()])tp(e)}},op=()=>{if($f)for(let e of Qf.values())e.pointerEventsStyle.disabled||(e.pointerEventsStyle.disabled=!0),e.hitTestOverrideStyle.disabled&&(e.hitTestOverrideStyle.disabled=!1)},sp=()=>{if($f)for(let e of Qf.values())e.pointerEventsStyle.disabled&&(e.pointerEventsStyle.disabled=!1),e.hitTestOverrideStyle.disabled||(e.hitTestOverrideStyle.disabled=!0)}})),lp,up=n((()=>{lp=(e,t)=>{if(e.length!==0)throw e.length===1?e[0]:AggregateError(e,t)}})),dp,fp,pp,mp,hp,gp,_p,vp=n((()=>{wa(),up(),dp=new Set,fp=new Set,pp=!1,mp=(e,t)=>{if(fp.has(e))try{e.unfreeze()}catch(e){t.push(e)}finally{fp.delete(e)}},hp=e=>{dp.add(e);try{pp&&e.isConnected()&&(e.freeze(),fp.add(e))}catch(t){throw dp.delete(e),t}return()=>{let t=[];mp(e,t),dp.delete(e),lp(t,`Unregistering renderer freeze failed`)}},gp=()=>{if(!pp){pp=!0;try{for(let e of dp)e.isConnected()&&(e.freeze(),fp.add(e))}catch(e){pp=!1;let t=[];for(let e of[...fp].reverse())mp(e,t);throw t.length===0?e:AggregateError([e,...t],`Rolling back renderer freeze failed`)}}},_p=()=>{if(!pp)return;pp=!1;let e=[];for(let t of[...fp].reverse())mp(t,e);lp(e,`Unfreezing renderers failed`)}})),yp,bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm=n((()=>{fi(),q(),Si(),vp(),_i(),yp=new WeakMap,bp=new WeakMap,xp=new WeakMap,Sp=new WeakMap,Cp=new WeakMap,wp=[`name`,`position`,`rotation`,`scale`,`color`,`visible`,`args`],Tp=e=>typeof e==`object`&&!!e,Ep=e=>typeof e==`object`&&!!e||typeof e==`function`,Dp=(e,t)=>typeof e[t]==`function`,Op=e=>Tp(e)&&typeof e.x==`number`&&typeof e.y==`number`&&typeof e.z==`number`&&Dp(e,`set`)&&Dp(e,`clone`)&&Dp(e,`applyMatrix4`)&&Dp(e,`project`),kp=e=>Tp(e)&&Dp(e,`clone`)&&Dp(e,`premultiply`),Ap=e=>Tp(e)&&`boundingBox`in e&&Dp(e,`computeBoundingBox`),jp=e=>Tp(e)&&typeof e.type==`string`&&Tp(e.props)&&Mp(e.object),Mp=e=>Tp(e)&&e.isObject3D===!0&&typeof e.uuid==`string`&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.visible==`boolean`&&kp(e.matrixWorld)&&Dp(e,`updateWorldMatrix`),Np=e=>Tp(e)&&e.isCamera===!0,Pp=e=>Mp(e)&&e.isScene===!0&&Array.isArray(e.children),Fp=e=>Tp(e)&&typeof e.tagName==`string`&&e.tagName.toLowerCase()===`canvas`&&Dp(e,`getContext`),Ip=e=>Tp(e)&&Fp(e.domElement),Lp=e=>Tp(e)&&Dp(e,`set`),Rp=e=>Tp(e)&&Dp(e,`setFromCamera`)&&Dp(e,`intersectObjects`),zp=e=>Tp(e)&&Ip(e.gl)&&Pp(e.scene)&&Np(e.camera)&&Rp(e.raycaster)&&Lp(e.pointer),Bp=e=>e===`always`||e===`demand`||e===`never`,Vp=e=>Tp(e)&&typeof e.elapsedTime==`number`,Hp=(e,t)=>{let n=e.getState();if(typeof n.setFrameloop!=`function`)return;let r=Vp(n.clock)?n.clock.elapsedTime:null;n.setFrameloop(t);let i=e.getState().clock;r!==null&&Vp(i)&&(i.elapsedTime=r)},Up=e=>{if(Sp.has(e))return;let t=null,n=hp({freeze:()=>{let n=xp.get(e);if(!n)return;let r=n.getState();if(Bp(r.frameloop)&&typeof r.setFrameloop==`function`){let e=r.frameloop;Hp(n,`never`),t=()=>Hp(n,e)}},isConnected:()=>e.isConnected,unfreeze:()=>{t?.(),t=null}});Sp.set(e,n)},Wp=e=>{let t=Sp.get(e);t&&(Sp.delete(e),t())},Gp=e=>jp(e.__r3f)?e.__r3f:null,Kp=e=>{let t=e.current.stateNode;if(!Tp(t)||!Ep(t.containerInfo))return null;let n=t.containerInfo,r=Reflect.get(n,`getState`);if(typeof r!=`function`)return null;let i=Reflect.apply(r,n,[]);return zp(i)?()=>{let e=Reflect.apply(r,n,[]);return zp(e)?e:i}:null},qp=e=>{let t=Cp.get(e);t&&(Cp.delete(e),xp.get(t.canvas)===t.root&&(xp.delete(t.canvas),Wp(t.canvas)))},Jp=e=>{let t=Kp(e);if(!t){qp(e);return}let n=t().gl.domElement;if(!n.isConnected||!e.current.child){qp(e);return}let r=Cp.get(e);r&&r.canvas!==n&&(qp(e),r=void 0),r?(r.root.getState=t,r.root.selectableObjects=null):(r={canvas:n,root:{getState:t,selectableObjects:null}},Cp.set(e,r)),xp.set(n,r.root),Up(n)},si({name:`react-grab-three-selection`,onCommitFiberRoot:(e,t)=>Jp(t)}),Yp=e=>{let t=e;for(;t;){if(Gp(t))return t;t=t.parent}return null},Xp=e=>{let t=e;for(;t;){let e=Gp(t);if(e&&typeof e.eventCount==`number`&&e.eventCount>0)return!0;t=t.parent}return!1},Zp=(e,t)=>{let n=e;for(;n;){if(n===t)return!0;n=n.parent}return!1},Qp=e=>{let t=e;for(;t;){if(!t.visible)return!1;t=t.parent}return!0},$p=e=>!!Gp(e)&&(Ap(e.geometry)||e.type.toLowerCase()===`sprite`),em=e=>e.isInstancedMesh!==!0||typeof e.count!=`number`||!Number.isInteger(e.count)||e.count<=0||!e.getMatrixAt?0:e.count,tm=(e,t,n,r)=>{try{let i={object:n};r!==void 0&&(i.instanceId=r);let a=nm(t,n,i);a&&e.push(a)}catch{}},nm=(e,t,n)=>{let r=typeof n.instanceId==`number`&&Number.isInteger(n.instanceId)?n.instanceId:null,i=yp.get(t);i||(i=new Map,yp.set(t,i));let a=i.get(r);if(a)return a.canvas=e.gl.domElement,a.intersectionPoint=Op(n.point)?n.point:null,a.object=t,a.rootState=e,a.element;let o=Gp(t),s=o?ui(o):null;if(o&&!s)return null;let c=(o?.type||t.type||`object-3d`).toLowerCase(),l=e.gl.domElement.ownerDocument.createElement(c),u={canvas:e.gl.domElement,element:l,fiber:s,instance:o,instanceId:r,intersectionPoint:Op(n.point)?n.point:null,object:t,rootState:e,tagName:c},d=l.getBoundingClientRect.bind(l);return l.getBoundingClientRect=()=>{let e=pm(u),t=l.ownerDocument.defaultView?.DOMRect;return t?new t(e.x,e.y,e.width,e.height):d()},mi(l,{hostElement:u.canvas,supportsDomEditing:!1,getBounds:()=>pm(u),getFiber:()=>u.fiber?Hr(u.fiber):null,getPreview:()=>om(u),getSelector:()=>sm(u),getTagName:()=>u.tagName,isConnected:()=>u.canvas.isConnected&&Zp(u.object,u.rootState.scene)}),i.set(r,u),bp.set(l,u),l},rm=(e,t,n)=>{if(!Fp(e))return e;let r=xp.get(e);if(!r)return e;try{let i=r.getState(),a=Y(e);if(a.width<=0||a.height<=0)return e;let o=(t-a.x)/a.width*2-1,s=-((n-a.y)/a.height)*2+1;if(o<-1||o>1||s<-1||s>1)return e;i.pointer.set(o,s),i.raycaster.setFromCamera(i.pointer,i.camera);let c=i.raycaster.intersectObjects(i.scene.children,!0);for(let e of c){if(!Xp(e.object))continue;let t=Yp(e.object);if(!t||t.visible===!1)continue;let n=nm(i,t,e);if(n)return n}for(let e of c){let t=Yp(e.object);if(!t||t.visible===!1)continue;let n=nm(i,t,e);if(n)return n}}catch{}return e},im=(e,t)=>{if(!Fp(e))return[];let n=xp.get(e);if(!n)return[];try{let e=n.getState(),r=t?bp.get(t):null;if(!n.selectableObjects){let t=[],r=[...e.scene.children];for(let e=0;e<r.length;e+=1){let n=r[e];if(n.children)for(let e of n.children)r.push(e);$p(n)&&t.push(n)}n.selectableObjects=t}let i=[];for(let t of n.selectableObjects){if(!Qp(t)||!Zp(t,e.scene)||t.isInstancedMesh===!0&&t.count===0)continue;let n=em(t);if(n>0&&n<=512){for(let r=0;r<n;r+=1)tm(i,e,t,r);continue}if(n>512&&r?.object===t&&r.instanceId!==null){i.push(r.element);continue}tm(i,e,t)}return i}catch{return[]}},am=e=>typeof e==`string`?JSON.stringify(e):typeof e==`number`||typeof e==`boolean`?`{${String(e)}}`:Array.isArray(e)&&e.length<=4&&e.every(e=>typeof e==`number`||typeof e==`string`)?`{${JSON.stringify(e)}}`:null,om=e=>{let t=e.instance?.props??{},n=[];for(let r of wp){let i=t[r];r===`name`&&i===void 0&&e.object.name&&(i=e.object.name);let a=am(i);a&&n.push(`${r}=${a}`)}return e.instanceId!==null&&n.push(`instanceId={${e.instanceId}}`),`<${e.tagName}${n.length>0?` ${n.join(` `)}`:``} />`},sm=e=>{if(e.object.name)return`${e.tagName}[name=${JSON.stringify(e.object.name)}]`;let t=e.instanceId===null?``:`:${e.instanceId}`;return`${e.tagName}[uuid=${JSON.stringify(`${e.object.uuid}${t}`)}]`},cm=e=>{e.object.updateWorldMatrix(!0,!1);let t=e.object.matrixWorld.clone();if(e.instanceId===null||!e.object.getMatrixAt)return t;let n=e.object.matrixWorld.clone();return e.object.getMatrixAt(e.instanceId,n),n.premultiply(t)},lm=e=>{if(!Ap(e.geometry))return null;if(!e.geometry.boundingBox)try{e.geometry.computeBoundingBox()}catch{return null}let t=e.geometry.boundingBox;return!t||!Op(t.min)||!Op(t.max)?null:t},um=e=>{if(e.isInstancedMesh!==!0||typeof e.computeBoundingBox!=`function`)return null;if(!e.boundingBox)try{e.computeBoundingBox()}catch{return null}let t=e.boundingBox;return!t||!Op(t.min)||!Op(t.max)?null:t},dm=e=>e.instanceId===null?um(e.object)??lm(e.object):lm(e.object),fm=(e,t)=>{let n=t.x+t.width/2,r=t.y+t.height/2;try{let i=e.intersectionPoint?e.intersectionPoint.clone():Op(e.object.position)?e.object.position.clone().set(0,0,0).applyMatrix4(cm(e)):null;i&&(i.project(e.rootState.camera),Number.isFinite(i.x)&&Number.isFinite(i.y)&&(n=t.x+(i.x+1)/2*t.width,r=t.y+(1-i.y)/2*t.height))}catch{}return{x:n-16/2,y:r-16/2,width:16,height:16,borderRadius:`0px`}},pm=e=>{let t=Y(e.canvas);try{let n=dm(e);if(!n)return fm(e,t);let r=cm(e),i=[n.min.x,n.max.x],a=[n.min.y,n.max.y],o=[n.min.z,n.max.z],s=1/0,c=1/0,l=-1/0,u=-1/0,d=n.min.clone();for(let n of i)for(let i of a)for(let a of o){if(d.set(n,i,a).applyMatrix4(r).project(e.rootState.camera),!Number.isFinite(d.x)||!Number.isFinite(d.y))continue;let o=t.x+(d.x+1)/2*t.width,f=t.y+(1-d.y)/2*t.height;s=Math.min(s,o),c=Math.min(c,f),l=Math.max(l,o),u=Math.max(u,f)}if(!Number.isFinite(s)||!Number.isFinite(c)||!Number.isFinite(l)||!Number.isFinite(u))return fm(e,t);let f=Math.max(t.x,s),p=Math.max(t.y,c),m=Math.min(t.x+t.width,l),h=Math.min(t.y+t.height,u);return m<=f||h<=p?fm(e,t):{x:f,y:p,width:m-f,height:h-p,borderRadius:`0px`}}catch{return fm(e,t)}}})),hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm=n((()=>{q(),Si(),Hd(),qd(),Pf(),Lf(),ga(),kf(),Wf(),wa(),J(),Kf(),jf(),hf(),cp(),mm(),hm=null,gm=null,_m=null,vm=()=>{_m!==null&&clearTimeout(_m),_m=setTimeout(()=>{_m=null,sp()},100)},ym=()=>{_m!==null&&(clearTimeout(_m),_m=null)},bm=(e,t,n,r)=>{let i=Math.abs(e-n),a=Math.abs(t-r);return i<=2&&a<=2},xm=(e,t,n)=>{let r=rm(e,t,n);return mf(r)&&Sa(e)&&Af(e,t,n)?r:null},Sm=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return[];ym(),op();try{let n=If(e,t),r=xa()?n.filter(Sa):n,i=[],a=new Set,o=!1;for(let n of r){let r=n,s=Af(n,e,t);if(!o){let i=Uf(n,e,t);i&&Sa(i)&&mf(i)&&Af(i,e,t)?(r=i,s=!0,o=!0):mf(n)&&s&&(o=!0)}let c=rm(r,e,t);if(s&&!a.has(c)&&(a.add(c),i.push(c)),r===n)continue;let l=ha(r);for(;l&&Sa(l);){let n=rm(l,e,t);Af(l,e,t)&&!a.has(n)&&(a.add(n),i.push(n)),l=ha(l)}break}return i}finally{vm()}},Cm=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return null;let n=performance.now();if(gm){let r=gm.element,i=n-gm.timestamp<16;if(r.isConnected&&i&&Gf(e,t,gm.bounds)&&!Vd(r))return r;gm=null,hm?.element===r&&(hm=null)}if(hm){let r=bm(e,t,hm.clientX,hm.clientY),i=n-hm.timestamp<16;if(r&&i){if(!hm.preciseHitElement)return hm.element;let n=Uf(hm.preciseHitElement,e,t);if(n){let r=xm(n,e,t);if(r)return r}return hm.usesTextHitTesting?xm(hm.preciseHitElement,e,t)??Nf(e,t):hm.fallbackElement}}ym(),op();try{let r=null,i=Kd(e,t),a=i?Of(i)!==null:!1,o=i?Uf(i,e,t):null,s=o?xm(o,e,t):null,c=(i?xm(i,e,t):null)??Nf(e,t);if(r=s??c,r&&Un(r)&&!Vd(r)){let e=Y(r);gm={element:r,timestamp:n,bounds:{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height}}}else gm=null;return hm={clientX:e,clientY:t,element:r,fallbackElement:c,preciseHitElement:i?.namespaceURI===`http://www.w3.org/2000/svg`||o||a?i:null,usesTextHitTesting:a,timestamp:n},r}finally{vm()}},wm=()=>{ym(),sp(),hm=null,gm=null}})),Em,Dm=n((()=>{Em=(e,t,n)=>Math.max(t,Math.min(e,n))}));Tm(),Dm(),ma(),Di(),Zn();let Om=e=>{let t=[],n=e;for(;n;){t.unshift(n);let e=n.getRootNode();if(Ei(e)){n=e.host;continue}if(!pa(e))break;n=Xn(e.defaultView)}return t},km=(e,t)=>{if(e===t)return 0;let n=Om(e),r=Om(t),i=Math.min(n.length,r.length);for(let e=0;e<i;e+=1){let t=n[e],i=r[e];if(t===i)continue;let a=t.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}return n.length-r.length};cp(),q(),nf(),wa(),Lf(),Wf(),Si(),kf(),ga(),Hd(),J(),Di(),mm();let Am=e=>e.sort(km),jm=e=>Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.width)&&Number.isFinite(e.height)&&e.width>0&&e.height>0,Mm=(e,t)=>e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y,Nm=(e,t,n,r)=>{let i=[...e].filter(e=>!r.has(e)),a=i.filter(e=>e.tagName===`TR`),o=0;for(let t=0;t<i.length&&o<64;t+=1){let n=ha(i[t]);!n||n.tagName!==`TR`||e.has(n)||(o+=1,e.add(n),i.push(n),a.push(n))}let s=s=>{if(!s||e.has(s)||r.has(s)||o>=64)return;o+=1;let c=n.get(s);c||(c=Y(s),n.set(s,c)),!(!jm(c)||!Mm(c,t))&&(e.add(s),i.push(s),s.tagName===`TR`&&a.push(s))},c=e=>{if(!(e.length>32))for(let t of e){if(o>=64)return;s(t)}};for(let e=0;e<a.length&&o<64;e+=1){let t=a[e];s(t.previousElementSibling),s(t.nextElementSibling)}for(let e=0;e<i.length&&o<64;e+=1){let t=i[e];if(tf(t))continue;let n=t.parentElement?.children.length??0;(t.tagName===`TR`||n<=32)&&(s(t.previousElementSibling),s(t.nextElementSibling)),c(t.children),t.shadowRoot&&c(t.shadowRoot.children)}},Pm=(e,t)=>{if(e.width<=0||e.height<=0)return[];let n=Math.max(1,Math.round(window.innerWidth)),r=Math.max(1,Math.round(window.innerHeight)),i=e.x,a=e.y,o=e.x+e.width,s=e.y+e.height,c=i+e.width/2,l=a+e.height/2,u=Em(Math.ceil(e.width/32),3,20),d=Em(Math.ceil(e.height/32),3,20),f=u*d,p=f>100?Math.sqrt(100/f):1,m=Em(Math.floor(u*p),3,20),h=Em(Math.floor(d*p),3,20),g=new Set,_=[],v=(e,t)=>{let i=Em(Math.round(e),0,n-1),a=Em(Math.round(t),0,r-1),o=a*n+i;g.has(o)||(g.add(o),_.push(i,a))};v(t.x,t.y),v(i+1,a+1),v(o-1,a+1),v(i+1,s-1),v(o-1,s-1),v(c,a+1),v(c,s-1),v(i+1,l),v(o-1,l),v(c,l);for(let t=0;t<m;t+=1){let n=i+(t+.5)/m*e.width;for(let t=0;t<h;t+=1)v(n,a+(t+.5)/h*e.height)}return _},Fm=(e,t,n)=>{let r=e.x,i=e.y,a=e.x+e.width,o=e.y+e.height,s=new Set,c=new Map,l=new Map,u=new Set,d=new Set,f=new Set,p=Pm(e,t),m=e=>{let t=l.get(e);if(t!==void 0)return t;let r=n(e);return l.set(e,r),r};op();try{for(let e=0;e<p.length;e+=2){let t=If(p[e],p[e+1]);for(let n of t){if(n.tagName===`CANVAS`){if(d.has(n))continue;if(u.has(n)){s.add(n);continue}u.add(n);let t=n;if(e===0)try{t=rm(n,p[e],p[e+1])}catch{}let r=im(n,t);if(r.length>0||t!==n){d.add(n);for(let e of r)s.add(e);t!==n&&s.add(t);continue}}s.add(n)}let n=!1;for(let r of t){let t=r;if(e===0&&!n){let n=Uf(r,p[e],p[e+1]);n&&m(n)&&(s.add(n),n!==r&&f.add(r),t=n)}if(m(t)){if(!n){n=!0;continue}f.add(t)}}}}finally{sp()}for(let e of d)s.delete(e);Nm(s,e,c,d);let h=[],g=null,_=1/0,v=1/0,y=window.innerWidth,b=window.innerHeight,x=y>0&&b>0,S=y*On,C=b*On;for(let e of s){if(Un(e)&&Vd(e)||tf(e)||!Sa(e)||!m(e))continue;let n=c.get(e)??Y(e);if(!jm(n))continue;let s=n.x,l=n.y,u=s+n.width,d=l+n.height;if(x&&n.width>=S&&n.height>=C&&Math.min(y,u)-Math.max(0,s)>=S&&Math.min(b,d)-Math.max(0,l)>=C)continue;let p=Math.max(0,Math.min(a,u)-Math.max(r,s)),w=Math.max(0,Math.min(o,d)-Math.max(i,l)),T=n.width*n.height;if(p<=0||w<=0||T<=0)continue;let ee=Of(e),E=0,te=0,D=1/0;if(ee)for(let e of ee){let n=e.x,s=e.y,c=n+e.width,l=s+e.height,u=Math.max(0,Math.min(a,c)-Math.max(r,n)),d=Math.max(0,Math.min(o,l)-Math.max(i,s));E+=u*d,te+=e.width*e.height;let f=Math.max(n-t.x,0,t.x-c),p=Math.max(s-t.y,0,t.y-l),m=f*f+p*p;D=Math.min(D,m)}else{E=p*w;let e=Math.max(s-t.x,0,t.x-u),n=Math.max(l-t.y,0,t.y-d);D=e*e+n*n}if(E<=0)continue;let O=ee&&!f.has(e)?te:T;if(E/O>=.75){h.push(e);continue}(D<_||D===_&&T<v)&&(g=e,_=D,v=T)}return h.length>0?Am(h):g?[g]:[]},Im=e=>{let t=new Set(e),n=[];for(let r=e.length-1;r>=0;--r){let i=e[r];if(!t.has(i))continue;let a=i,o=ha(a),s=!1;for(;o;){let e=a.getRootNode();if(t.has(o)&&Ei(e)&&e.host===o)t.delete(o);else if(t.has(o)){s=!0;break}a=o,o=ha(a)}s||n.push(i)}return n.reverse()},Lm=(e,t,n)=>Im(Fm(e,t,n));q(),Dm();let Rm=(e,t)=>e.width<=0?0:Em((t.x-e.x)/e.width,0,1);Si(),kf();let zm=()=>{bi(),Tf(),wm()},Bm=e=>({borderRadius:`0px`,height:e.height,width:e.width,x:e.pageX-window.scrollX,y:e.pageY-window.scrollY}),Vm=e=>({pageX:e.x+window.scrollX,pageY:e.y+window.scrollY,width:e.width,height:e.height}),Hm=e=>({borderRadius:`0px`,height:e.height,width:e.width,x:e.x,y:e.y});q(),ga();let Um=(e,t,n)=>{let r=(e,t,n,r)=>{let i=[],a=e,o=0;for(;a&&i.length<n&&o<100;)r(a)&&i.push(a),a=t(a),o+=1;return i},i=r(ha(e),ha,6,t);i.reverse();let a=i.map((e,t)=>({element:e,depth:t,isLast:!0})),o=i.length,s=r(e.previousElementSibling,e=>e.previousElementSibling,7,n),c=r(e.nextElementSibling,e=>e.nextElementSibling,7,n),l=Math.min(s.length,Math.max(3,7-c.length)),u=Math.min(c.length,7-l),d=[...s.slice(0,l).reverse(),e,...c.slice(0,u)],f=r(e.firstElementChild,e=>e.nextElementSibling,6,t),p=d.length-1,m=f.length-1;return d.forEach((t,n)=>{a.push({element:t,depth:o,isLast:n===p}),t===e&&f.forEach((e,t)=>{a.push({element:e,depth:o+1,isLast:t===m})})}),a};q();let Wm=e=>e.namespaceURI===`http://www.w3.org/2000/svg`&&e.tagName!==`svg`,Gm=e=>{let t=e.getBoundingClientRect();return t.width>=16||t.height>=16},Km=(e,t)=>t(e)&&!Wm(e)&&Gm(e);q();let qm=e=>e===`edit`?An:e,Jm=new Set([`c`,`C`,`с`,`С`,`ȼ`,`Ȼ`,`ↄ`,`Ↄ`,`ᴄ`,`ᶜ`,`ⱼ`,`ⅽ`,`Ⅽ`,`ç`,`Ç`,`ć`,`Ć`,`č`,`Č`,`ĉ`,`Ĉ`,`ċ`,`Ċ`]),Ym=(e,t)=>t===`KeyC`?!0:!e||e.length!==1?!1:Jm.has(e);var Xm,Zm,Qm,$m=n((()=>{Xm=null,Zm=()=>{if(typeof navigator>`u`||!(`userAgentData`in navigator))return null;let e=navigator.userAgentData;if(typeof e!=`object`||!e||!(`platform`in e))return null;let t=e.platform;return typeof t==`string`?t:null},Qm=()=>{if(Xm===null){if(typeof navigator>`u`)return Xm=!1,Xm;let e=navigator.platform??Zm()??navigator.userAgent;Xm=/Mac|iPhone|iPad|iPod/i.test(e)}return Xm}}));$m();let eh=(e,t)=>{if(!e||!t)return!1;let n=e.toLowerCase();return t===`Space`?n===`space`||n===` `:t.startsWith(`Key`)?t.slice(3).toLowerCase()===n:t.startsWith(`Digit`)?t.slice(5)===n:!1},th={meta:`metaKey`,cmd:`metaKey`,command:`metaKey`,win:`metaKey`,windows:`metaKey`,ctrl:`ctrlKey`,control:`ctrlKey`,shift:`shiftKey`,alt:`altKey`,option:`altKey`,opt:`altKey`},nh=e=>{let t=e.split(`+`).map(e=>e.trim().toLowerCase()),n={metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1,key:null};for(let e of t){let t=th[e];t?n[t]=!0:n.key=e}return n},rh=e=>{if(typeof e==`function`)return t=>{try{return e(t)}catch{return!1}};let t=nh(e),n=t.key;return e=>{if(n===null){let n=t.metaKey?e.metaKey||e.key===`Meta`:!0,r=t.ctrlKey?e.ctrlKey||e.key===`Control`:!0,i=t.shiftKey?e.shiftKey||e.key===`Shift`:!0,a=t.altKey?e.altKey||e.key===`Alt`:!0,o=n&&r&&i&&a,s=[t.metaKey,t.ctrlKey,t.shiftKey,t.altKey].filter(Boolean).length,c=[e.metaKey||e.key===`Meta`,e.ctrlKey||e.key===`Control`,e.shiftKey||e.key===`Shift`,e.altKey||e.key===`Alt`].filter(Boolean).length;return o&&c>=s}let r=e.key?.toLowerCase()===n||eh(n,e.code),i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?(t.metaKey?e.metaKey:!0)&&(t.ctrlKey?e.ctrlKey:!0)&&(t.shiftKey?e.shiftKey:!0)&&(t.altKey?e.altKey:!0):!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey;return r&&i}},ih=e=>!e||typeof e==`function`?{metaKey:Qm(),ctrlKey:!Qm(),shiftKey:!1,altKey:!1,key:null}:nh(e);$m();let ah=(e,t)=>{if(t.activationKey)return rh(t.activationKey)(e);let n=(Qm()?e.metaKey:e.ctrlKey)&&!e.shiftKey&&!e.altKey;return!!(e.key&&n&&Ym(e.key,e.code))};var oh,sh=n((()=>{Hn(),oh=(e,t)=>{try{return e.composedPath().some(e=>Vn(e)&&e.hasAttribute(t))}catch{return!1}}}));sh(),Qi();let ch=async(e,t)=>{let n=el(),r=new URLSearchParams({file:e}),i=n?`line1`:`line`,a=n?`column1`:`column`;t&&r.set(i,String(t)),r.set(a,`1`);let o=n?`${rl()}/__nextjs_launch-editor`:`/__open-in-editor`;return(await fetch(`${o}?${r}`)).ok},lh=async(e,t,n)=>{try{let r=Ls(e);if(await ch(r,t).catch(()=>!1))return;let i=t?`&line=${t}`:``,a=`https://react-grab.com/open-file?url=${encodeURIComponent(r)}${i}`,o=n?n(a,r,t):a;window.open(o,`_blank`,`noopener,noreferrer`)}catch(n){throw n instanceof Hi?n:new Hi(e,t,n)}};var Z,uh=n((()=>{Z=e=>{console.warn(`[react-grab]`,e)}}));Qi(),uh();let dh=(e,t,n)=>{Z(e instanceof Hi?e:new Hi(t,n,e))},fh=(e,t,n)=>{try{if(n.onOpenFile(e,t))return;lh(e,t,n.transformOpenFileUrl).catch(n=>{dh(n,e,t)})}catch(n){dh(n,e,t)}},ph=e=>{if(e.length===0)return{x:0,y:0,width:0,height:0};if(e.length===1)return e[0];let t=1/0,n=1/0,r=-1/0,i=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height);return{x:t,y:n,width:r-t,height:i-n}},mh={enabled:!0,hue:0,selectionBox:{enabled:!0},dragBox:{enabled:!0},grabbedBoxes:{enabled:!0},elementLabel:{enabled:!0},toolbar:{enabled:!0}},hh=(e,t)=>({enabled:t.enabled??e.enabled,hue:t.hue??e.hue,selectionBox:{enabled:t.selectionBox?.enabled??e.selectionBox.enabled},dragBox:{enabled:t.dragBox?.enabled??e.dragBox.enabled},grabbedBoxes:{enabled:t.grabbedBoxes?.enabled??e.grabbedBoxes.enabled},elementLabel:{enabled:t.elementLabel?.enabled??e.elementLabel.enabled},toolbar:{enabled:t.toolbar?.enabled??e.toolbar.enabled}});R(),q(),Qi(),uh();let gh={activationMode:`toggle`,keyHoldDuration:100,allowActivationInsideInput:!0,activationKey:void 0,getContent:void 0,maxContextLines:3,freezeReactUpdates:!0},_h=(e={})=>{let t=new Map,n=[],r={},i=!1,[a,o]=Rt({theme:mh,options:{...gh,...e},actions:[]}),s=t=>{let n=mh,r={...gh,...e},i=[];for(let{config:e}of t)if(e.theme&&(n=hh(n,e.theme)),e.options&&(r={...r,...e.options}),e.actions)for(let t of e.actions)i.push(t);return{theme:n,options:r,actions:i}},c=e=>{o(`theme`,e.theme),o(`options`,{...e.options,...r}),o(`actions`,e.actions)},l=()=>{c(s(n))},u=(e,t)=>{r[e]=t,o(`options`,e,()=>t)},d=[`activationMode`,`keyHoldDuration`,`allowActivationInsideInput`,`activationKey`,`getContent`,`maxContextLines`,`freezeReactUpdates`],f=e=>{if(!i)for(let t of d)e[t]!==void 0&&u(t,e[t])},p=({plugin:e,config:t})=>{try{let n=t.cleanup?.();Promise.resolve(n).catch(t=>{Z(new Wi(e.name,t))})}catch(t){Z(new Wi(e.name,t))}},m=(e,t)=>{let n;try{n=e.setup?.(t,ee)??{};let r=n.cleanup?.bind(n);return{...n,cleanup:r,theme:e.theme?n.theme?hh(hh(mh,e.theme),n.theme):e.theme:n.theme,options:e.options?{...e.options,...n.options}:n.options,actions:e.actions?[...e.actions,...n.actions??[]]:n.actions,hooks:e.hooks?{...e.hooks,...n.hooks}:n.hooks}}catch(t){throw n&&p({plugin:e,config:n}),new Gi(e.name,t)}},h=(e,r)=>{if(i)return;let a={plugin:e,config:m(e,r)},o=t.get(e.name),l=new Map(t);l.set(e.name,a);let u;try{u=s(l.values())}catch(t){throw p(a),new Gi(e.name,t)}t.set(e.name,a),n=Array.from(t.values()),c(u),o&&p(o)},g=e=>{if(i)return;let r=t.get(e);r&&(t.delete(e),n=Array.from(t.values()),p(r),l())},_=()=>{if(i)return;i=!0;let e=n;t.clear(),n=[],e.forEach(p),l()},v=()=>n.map(({plugin:e})=>e.name),b=(e,...t)=>{for(let{plugin:r,config:i}of n){let n=i.hooks?.[e];if(n)try{let i=n(...t);i&&Promise.resolve(i).catch(t=>{Z(new Ui(r.name,String(e),t))})}catch(t){Z(new Ui(r.name,String(e),t))}}},S=(e,...t)=>{let r=!1;for(let{plugin:i,config:a}of n){let n=a.hooks?.[e];if(n)try{n(...t)===!0&&(r=!0)}catch(t){Z(new Ui(i.name,String(e),t))}}return r},C=async(e,...t)=>{for(let{plugin:r,config:i}of n){let n=i.hooks?.[e];if(n)try{await n(...t)}catch(t){Z(new Ui(r.name,String(e),t))}}},w=async(e,t,...r)=>{let i=t;for(let{plugin:t,config:a}of n){let n=a.hooks?.[e];if(n)try{i=await n(i,...r)}catch(n){Z(new Ui(t.name,String(e),n))}}return i},T=(e,t,...r)=>{let i=t;for(let{plugin:t,config:a}of n){let n=a.hooks?.[e];if(n)try{i=n(i,...r)}catch(n){Z(new Ui(t.name,String(e),n))}}return i},ee={onActivate:()=>b(`onActivate`),onDeactivate:()=>b(`onDeactivate`),onElementHover:e=>b(`onElementHover`,e),onElementSelect:e=>{let t=!1,r=[];for(let{plugin:i,config:a}of n){let n=a.hooks?.onElementSelect;if(n)try{let a=n(e);if(a){if(t=!0,a===!0)continue;r.push(a.catch(e=>(Z(new Ui(i.name,`onElementSelect`,e)),!1)))}}catch(e){Z(new Ui(i.name,`onElementSelect`,e))}}let i=r.length>0?Promise.all(r).then(e=>e.every(Boolean)):void 0;return{wasIntercepted:t,pendingResult:i}},onDragStart:(e,t)=>b(`onDragStart`,e,t),onDragEnd:(e,t)=>b(`onDragEnd`,e,t),onBeforeCopy:async e=>C(`onBeforeCopy`,e),transformCopyContent:async(e,t)=>w(`transformCopyContent`,e,t),onAfterCopy:(e,t)=>b(`onAfterCopy`,e,t),onCopySuccess:(e,t)=>b(`onCopySuccess`,e,t),onCopyError:e=>b(`onCopyError`,e),onStateChange:e=>b(`onStateChange`,e),onPromptModeChange:(e,t)=>b(`onPromptModeChange`,e,t),onSelectionBox:(e,t,n)=>b(`onSelectionBox`,e,t,n),onDragBox:(e,t)=>b(`onDragBox`,e,t),onGrabbedBox:(e,t)=>b(`onGrabbedBox`,e,t),onElementLabel:(e,t,n)=>b(`onElementLabel`,e,t,n),onContextMenu:(e,t)=>b(`onContextMenu`,e,t),onOpenFile:(e,t)=>S(`onOpenFile`,e,t),transformHtmlContent:async(e,t)=>w(`transformHtmlContent`,e,t),transformAgentContext:async(e,t)=>w(`transformAgentContext`,e,t),transformActionContext:e=>T(`transformActionContext`,e),transformOpenFileUrl:(e,t,n)=>T(`transformOpenFileUrl`,e,t,n)};return x()&&y(_),{register:h,unregister:g,getPluginNames:v,setOptions:f,dispose:_,store:a,hooks:ee}},vh=e=>`${e}-${Date.now()}-${Math.random().toString(36).slice(2,9)}`;q(),Si();let yh=e=>{let t=e.bounds.x+e.bounds.width/2,n=e.bounds.width/2,r=e.mouseX===void 0?void 0:e.mouseX-t;return{id:vh(`label`),bounds:e.bounds,boundsMultiple:e.boundsMultiple,tagName:e.tagName,componentName:e.componentName,status:e.status,createdAt:Date.now(),element:e.element,elements:e.elements,mouseX:e.mouseX,mouseXOffsetFromCenter:r,mouseXOffsetRatio:r!==void 0&&n>0?r/n:void 0,hideArrow:e.hideArrow}},bh=(e,t,n)=>{let r=new Map,i=e=>{let t=r.get(e);t!==void 0&&(window.clearTimeout(t),r.delete(e))},a=()=>{for(let e of r.values())window.clearTimeout(e);r.clear()},o=()=>{a(),e.clearLabelInstances(),n?.()},s=t=>{i(t);let n=window.setTimeout(()=>{e.updateLabelInstance(t,`fading`);let n=window.setTimeout(()=>{r.delete(t),e.removeLabelInstance(t)},125);r.set(t,n)},tn);r.set(t,n)};return{createInstance:(t,n,r,i,a)=>{o();let s=yh({bounds:t,tagName:n,componentName:r,status:i,element:a?.element,mouseX:a?.mouseX,elements:a?.elements,boundsMultiple:a?.boundsMultiple,hideArrow:a?.hideArrow});return e.addLabelInstance(s),s.id},createPerElementInstances:(t,n)=>{o();let r=[];for(let i of t){let t=yh({bounds:Y(i.element),tagName:i.tagName,componentName:i.componentName,status:n,element:i.element,mouseX:i.mouseX});e.addLabelInstance(t),r.push(t.id)}return r},updateAfterCopy:(t,n,r)=>{n?(e.updateLabelInstance(t,`copied`),s(t)):(i(t),e.updateLabelInstance(t,`error`,r||`Unknown error`))},markRetrying:t=>{i(t),e.updateLabelInstance(t,`copying`)},dismissInstance:t=>{i(t),e.removeLabelInstance(t)},cancelAllFades:a,clearAll:o,handleHoverChange:(n,r)=>{let a=t().find(e=>e.id===n);if(a){if(r){i(n),a.status===`fading`&&e.updateLabelInstance(n,`copied`);return}(a.status===`copied`||a.status===`fading`)&&s(n)}}}},xh=e=>{let t=window.innerWidth,n=window.innerHeight,r=Math.max(0,e.x),i=Math.min(t,e.x+e.width),a=Math.max(0,e.y),o=Math.min(n,e.y+e.height);return{x:(r+i)/2,y:(a+o)/2}};q(),Tm(),kf(),wi();let Sh=(e,t,n)=>{let r=[],i=(t,r)=>{let i=Of(t),a=n(t);if(i){for(let e of i)if(e.x<window.innerWidth&&e.x+e.width>0&&e.y<window.innerHeight&&e.y+e.height>0){a=e;break}}let o=xh(a),s=Sm(o.x,o.y).filter(e),c=s.indexOf(t);return c===-1?null:s[c+r]??null},a=e=>{let t=i(e,1);return t&&(r.push(e),r.length>50&&(r=r.slice(-50))),t},o=e=>{if(r.length>0){let e=r.pop();if(X(e))return e}return i(e,-1)},s=(e,n)=>{let i=e=>n?e.nextElementSibling:e.previousElementSibling,a=i(e);for(;a;){if(t(a))return r=[],a;a=i(a)}return null};return{findNext:(e,t)=>{switch(e){case`ArrowUp`:return a(t);case`ArrowDown`:return o(t);case`ArrowRight`:return s(t,!0);case`ArrowLeft`:return s(t,!1);default:return null}},clearHistory:()=>{r=[]}}},Ch=()=>{let e=new WeakSet,t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,`key`),n=!1;if(t?.get&&!t.get.__reactGrabPatched){n=!0;let r=t.get,i=function(){return e.has(this)?``:r.call(this)};i.__reactGrabPatched=!0,Object.defineProperty(KeyboardEvent.prototype,`key`,{get:i,configurable:!0})}return{claimedEvents:e,originalKeyDescriptor:t,restore:()=>{n&&t&&Object.defineProperty(KeyboardEvent.prototype,`key`,t)}}};q(),Uu();let wh=(e,t)=>({top:t<25,bottom:t>window.innerHeight-25,left:e<25,right:e>window.innerWidth-25}),Th=(e,t,n)=>{let r=null,i=()=>{if(!t()){a();return}let o=e(),s=wh(o.x,o.y),c=0,l=0;s.top&&(l-=10),s.bottom&&(l+=10),s.left&&(c-=10),s.right&&(c+=10);let u=!1;if(c!==0||l!==0){let e=window.scrollX,t=window.scrollY;window.scrollBy({behavior:`instant`,left:c,top:l});let r=window.scrollX-e,i=window.scrollY-t;u=r!==0||i!==0,u&&n?.({x:r,y:i})}r=u?Bu(i):null},a=()=>{r!==null&&(Vu(r),r=null)};return{start:i,stop:a,isActive:()=>r!==null}},Eh=()=>{let e=globalThis;return!!(e.chrome?.runtime?.id||e.browser?.runtime?.id)},Dh=e=>{try{let t=`0.2.0-dev.23bce0e`,n=`data:image/svg+xml;base64,${btoa(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 294 294"><path fill="#ff40e0" d="M145 47c25-20 50-27 67-17 16 9 23 30 20 60 0 2-1 5-1 7l-2 13h-1l-12-4c-8-3-17-5-25-6l-17-3c-10-1-20-1-29-1-10 0-20 0-29 1-6 8-11 16-16 24-5 9-9 17-13 26 4 9 8 18 13 26s10 16 16 24l11 14c5 7 11 13 18 19l10 8s-1 0 0 0l-11 9c-17 14-35 22-49 22-6 0-13-2-18-5-16-9-23-30-20-59 1-3 1-5 1-8-30-12-48-29-48-50 0-18 14-35 41-47 2-1 5-2 7-3 0-2 0-5-1-7-3-30 4-51 20-60 18-10 42-3 68 17M71 201c-1 2-1 4-1 5-2 24 3 41 13 47h1c11 7 30 1 51-15-10-9-18-18-26-29-13-1-26-4-38-8m9-38c-3 9-5 17-7 26 8 2 17 4 25 6-3-5-6-10-9-16-3-5-6-10-9-16m-19-53c-2 1-3 1-5 2-21 10-34 23-34 35 0 13 14 27 39 37 3-12 7-25 12-37-5-12-9-24-12-37m37-10c-8 1-17 3-25 6 2 8 4 16 7 25 3-5 6-11 9-16zm-3-61c-4-1-8 0-12 2-10 7-15 24-13 47 0 2 0 3 1 5 12-4 25-6 38-8 8-10 16-20 26-29-15-11-29-17-40-17m111 2c-4-2-8-3-12-2-11 0-25 5-40 17 10 9 19 19 26 29 13 2 26 4 39 8v-5c3-23-2-40-13-47m-61 23c-7 6-13 13-19 19h37c-6-6-12-13-18-19"/><mask id="a"><path fill="#fff" d="m235 85-133 27 28 133 133-27Z"/></mask><path fill="#ff40e0" d="m137 130 76 11c8 1 9 11 3 15l-28 16-4 32c-1 8-10 10-14 4l-41-66c-3-6 1-13 8-12" mask="url(#a)"/></svg>`)}`;console.log(`%cReact Grab${` v${t}`}%c\nhttps://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${n}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,``),e&&navigator.onLine&&!Eh()&&fetch(`https://www.react-grab.com/api/version?source=browser&v=${t}&t=${Date.now()}`,{referrerPolicy:`origin`,keepalive:!0,priority:`low`,cache:`no-store`}).then(e=>e.text()).then(e=>{e&&e!==t&&console.warn(`[React Grab] v${t} is outdated (latest: v${e}). Run \`npx grab@latest upgrade\` to upgrade.`)}).catch(()=>null)}catch{}},Oh=e=>typeof e==`object`&&!!e,kh=e=>{if(!Oh(e))return null;let t={};return typeof e.enabled==`boolean`&&(t.enabled=e.enabled),(e.activationMode===`toggle`||e.activationMode===`hold`)&&(t.activationMode=e.activationMode),typeof e.keyHoldDuration==`number`&&Number.isFinite(e.keyHoldDuration)&&(t.keyHoldDuration=e.keyHoldDuration),typeof e.allowActivationInsideInput==`boolean`&&(t.allowActivationInsideInput=e.allowActivationInsideInput),typeof e.activationKey==`string`&&(t.activationKey=e.activationKey),typeof e.maxContextLines==`number`&&Number.isFinite(e.maxContextLines)&&(t.maxContextLines=e.maxContextLines),typeof e.freezeReactUpdates==`boolean`&&(t.freezeReactUpdates=e.freezeReactUpdates),typeof e.telemetry==`boolean`&&(t.telemetry=e.telemetry),Object.keys(t).length===0?null:t},Ah=()=>{if(typeof window>`u`)return null;try{let e=(document.currentScript instanceof HTMLScriptElement?document.currentScript:null)?.getAttribute(`data-options`);return e?kh(JSON.parse(e)):null}catch{return null}},jh=e=>e===`Enter`||e===`NumpadEnter`,Mh=(e,t)=>e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height;var Nh,Ph,Fh,Ih=n((()=>{q(),wa(),Nh=`react-grab-toolbar-state`,Ph=()=>{try{let e=localStorage.getItem(Nh);if(!e)return null;let t=JSON.parse(e);if(typeof t!=`object`||!t)return null;let n=t,r=typeof n.collapsed==`boolean`?n.collapsed:!1;return{edge:n.edge===`top`||n.edge===`bottom`||n.edge===`left`||n.edge===`right`?n.edge:`bottom`,ratio:typeof n.ratio==`number`?n.ratio:kn,collapsed:r,enabled:!r,defaultAction:typeof n.defaultAction==`string`?n.defaultAction:An}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},Fh=e=>{try{localStorage.setItem(Nh,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}}}));Ih(),R(),wa();let Lh=e=>{let[t,n]=c(!1);return v(()=>{let t=Ca(t=>n(e(t))),r=()=>n(!1);window.addEventListener(`keydown`,t,{capture:!0}),window.addEventListener(`keyup`,t,{capture:!0}),window.addEventListener(`blur`,r),y(()=>{window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`keyup`,t,{capture:!0}),window.removeEventListener(`blur`,r)})}),t},Rh={name:`copy`,actions:[{id:`copy`,label:`Copy`,shortcut:`C`,showInToolbarMenu:!0,onAction:e=>{e.copy?.()}}]},zh={name:`comment`,actions:[{id:`comment`,label:`Comment`,shortcut:`Enter`,showInToolbarMenu:!0,onAction:e=>{e.enterPromptMode?.()}}]},Bh={name:`open`,actions:[{id:`open`,label:`Open`,shortcut:`O`,enabled:e=>!!e.filePath,onAction:e=>{e.filePath&&(fh(e.filePath,e.lineNumber,e.hooks),e.hideContextMenu(),e.cleanup())}}]};var Vh,Hh=n((()=>{Vh=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n])})),Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng=n((()=>{q(),Uu(),Uh=!1,Wh=null,Gh=!1,Kh=new Map,qh=-1,Jh=new WeakSet,Yh=new WeakSet,Xh=new WeakMap,Zh=new Map,Qh=new Map,$h=e=>{if(Wh===e&&(Gh=!0),Jh.has(e))return!0;if(!Uh&&Wh===e){let t=(Xh.get(e)??0)+1;return Xh.set(e,t),t<4?!1:(Jh.add(e),!0)}return!Uh||!(`gsapVersions`in window)||!(Error().stack??``).includes(`_tick`)?!1:(Jh.add(e),Yh.add(e),!0)},typeof window<`u`&&(window.requestAnimationFrame=e=>{let t=$h(e);if(Uh&&t){let t=qh--;return Kh.set(t,e),t}let n=Bu(t=>{if(Uh&&$h(e)){let t=qh--;Kh.set(t,e),Zh.set(n,t);return}let r=Wh,i=Gh;Wh=e,Gh=!1;try{e(t)}finally{let t=Gh;Wh=r,Gh=i,!t&&!Yh.has(e)&&(Jh.delete(e),Xh.delete(e))}});return n},window.cancelAnimationFrame=e=>{if(Kh.has(e)){Kh.delete(e);return}let t=Qh.get(e);if(t!==void 0){Vu(t.nativeId),Qh.delete(e);return}let n=Zh.get(e);if(n!==void 0){Kh.delete(n),Zh.delete(e);return}Vu(e)}),eg=()=>{if(!Uh){Uh=!0,Kh.clear(),Zh.clear();for(let[e,{nativeId:t,callback:n}]of Qh)Vu(t),Kh.set(e,n);Qh.clear()}},tg=()=>{if(Uh){Uh=!1;for(let[e,t]of Kh.entries()){let n=Bu(n=>{Qh.delete(e);let r=Wh,i=Gh;Wh=t,Gh=!1;try{t(n)}finally{let e=Gh;Wh=r,Gh=i,!e&&!Yh.has(t)&&(Jh.delete(t),Xh.delete(t))}});Qh.set(e,{nativeId:n,callback:t})}Kh.clear(),Zh.clear()}}})),rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg,Fg=n((()=>{q(),Hh(),Jf(),ng(),Bn(),of(),Di(),wa(),up(),rg=`
|
|
24
|
-
[${
|
|
25
|
-
[${
|
|
17
|
+
`),a=0,o=0;for(;a<t.length&&!t[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<n.length&&!n[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===t.length||o===n.length)for(a=t.length-1,o=n.length-1;a>=1&&o>=0&&t[a]!==n[o];)o--;for(;a>=1&&o>=0;a--,o--)if(t[a]!==n[o]){if(a!==1||o!==1)do if(a--,o--,o<0||t[a]!==n[o]){let n=`\n${t[a].replace(` at new `,` at `)}`,[r]=To(n);if(!r?.fileName)break;let i=_i(e);return i&&n.includes(`<anonymous>`)&&(n=n.replace(`<anonymous>`,i)),Js.set(e,n),n}while(a>=1&&o>=0);break}}}finally{qs=!1,xo(r),Ws(i),console.error=a,console.warn=o}let s=_i(e),c=s?Gs(s):``;return Js.set(e,c),c},Xs=(e,t)=>{let n=``,r=ei(e);switch(e.tag){case r.ActivityComponent:n=Gs(`Activity`);break;case r.ClassComponent:n=Ys(e.type,!0);break;case r.ForwardRef:n=Ys(gi(e.type)??e.type,!1);break;case r.FunctionComponent:case r.SimpleMemoComponent:n=Ys(gi(e.type)??e.type,!1);break;case r.HostComponent:case r.HostHoistable:case r.HostSingleton:typeof e.type==`string`&&(n=Gs(e.type));break;case r.LazyComponent:n=Gs(`Lazy`);break;case r.SuspenseComponent:n=e.child!==t&&t!==null?Gs(`Suspense Fallback`):Gs(`Suspense`);break;case r.SuspenseListComponent:n=Gs(`SuspenseList`);break;case r.ViewTransitionComponent:n=Gs(`ViewTransition`);break;default:return``}return n},Zs=e=>{try{let t=``,n=e,r=null;do{t+=Xs(n,r);let e=n._debugInfo;if(e&&Array.isArray(e))for(let n=e.length-1;n>=0;n--){let r=e[n];typeof r.name==`string`&&(t+=Ks(r.name,r.env))}r=n,n=n.return}while(n);return t}catch(e){return e instanceof Error?`\nBippy couldn’t generate the stack: ${e.message}\n${e.stack}`:``}},Qs=e=>{let t=e;if(!t)return``;t.startsWith(`Error: react-stack-top-frame
|
|
18
|
+
`)&&(t=t.slice(29));let n=t.indexOf(`
|
|
19
|
+
`);n!==-1&&(t=t.slice(n+1));let r=Math.max(...vo.map(e=>t.indexOf(e)));if(r!==-1&&(r=t.lastIndexOf(`
|
|
20
|
+
`,r)),r!==-1)t=t.slice(0,r);else return``;return t},$s=e=>!!(e.functionName&&e.fileName&&rc(e.fileName)),ec=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,tc=e=>{let t=new Map;for(let n of e){if(!$s(n))continue;let e=n.functionName,r=t.get(e)??[];r.some(e=>ec(e,n))||(r.push(n),t.set(e,r))}return t},nc=(e,t,n)=>{if(!e.functionName)return{...e,isServer:!0};let r=t.get(e.functionName);if(!r||r.length===0)return{...e,isServer:!0};let i=n.get(e.functionName)??0,a=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:!0,fileName:a.fileName,lineNumber:a.lineNumber,columnNumber:a.columnNumber,source:e.source?.replace(`(at Server)`,`(${a.fileName}:${a.lineNumber}:${a.columnNumber})`)}},rc=e=>fo.some(t=>e.startsWith(t)),ic=e=>!e.isServer&&e.fileName&&rc(e.fileName)?{...e,isServer:!0}:e,ac=e=>{let t=[],n=e;for(;n;)if(Vs(n)){let e=n;if(n=e._debugOwner,n&&Bs(e)){let{frames:n,isTrusted:r}=Po(e._debugStack);if(r)for(let e of n)t.push(ic(e))}}else{let e=n;if(n=e.owner,n&&e.debugStack instanceof Error)for(let n of Po(e.debugStack).frames)t.push({...n,isServer:!0})}return t},oc=e=>{let t=[];return Pr(e,e=>{if(!Bs(e))return;let{frames:n,isTrusted:r}=Po(e._debugStack);r&&t.push(...n)},!0),t},sc=e=>{let t=oc(e),n=To(Zs(e)),r=tc(t),i=new Map;return n.map(e=>e.source!==void 0&&_o.test(e.source)?nc(e,r,i):e).filter((e,t,n)=>{if(t===0)return!0;let r=n[t-1];return e.functionName!==r.functionName})},cc=async(e,t=!0,n)=>zs(sc(e),t,n),lc=e=>!!e.fileName&&!e.isIgnoreListed,uc=async(e,t=!0,n)=>{let r=ac(e);if(r.length>0){let i=Hs(e)??{};i.functionName=_i(e.type)??i.functionName;let a=await zs([i,...r],t,n);if(a.some((e,t)=>t>0&&lc(e)))return a}return cc(e,t,n)},dc=e=>{let t=e._debugSource;return t?typeof t==`object`&&typeof t.fileName==`string`&&t.fileName!==`(native)`&&typeof t.lineNumber==`number`:!1},fc=e=>e.fileName?{fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,functionName:e.functionName}:null,pc=e=>{if(!Bs(e))return null;let{frames:t,isTrusted:n}=Po(e._debugStack);if(!n)return null;for(let e of t)if(e.fileName)return e;return null},mc=async(e,t,n)=>{let r=_i(e.type);if(!r)return null;let i=To(Error().stack??``),a=new Set;for(let e of i){let i=e.fileName;if(!i||a.has(i))continue;a.add(i);let o=await Rs(i,t,n);if(!o)continue;let s=ss(o,r);if(s&&!s.isIgnoreListed)return fc(s)}return null},hc=async(e,t=!0,n)=>{if(dc(e))return e._debugSource;let r=pc(e)??Hs(e);if(r){let[e]=await zs([r],t,n),i=fc(e);if(i)return i}let i=await cc(e,t,n);for(let e of i)if(e.fileName)return fc(e);return mc(e,t,n)},gc=e=>e.split(`/`).filter(Boolean).length,_c=e=>{let t=e.indexOf(`/`,1);if(t===-1||gc(e.slice(0,t))!==1)return e;let n=e.slice(t);if(!mo.test(n))return e;let r=n.split(`/`).filter(Boolean);if(r.length<2)return e;let i=r[0];return i.startsWith(`@`)||i.length>4?e:n},vc=e=>{if(!e||po.some(t=>t===e))return``;let t=e,n=/^[a-zA-Z]:[\\/]/.test(t);if(t.startsWith(`http://`)||t.startsWith(`https://`)){try{t=new URL(t).pathname}catch{}t=_c(t)}if(t.startsWith(`about://React/`)){let e=t.slice(14),n=e.indexOf(`/`),r=e.indexOf(`:`);t=n!==-1&&(r===-1||n<r)?e.slice(n+1):e}let r=!0;for(;r;){r=!1;for(let e of uo)if(t.startsWith(e)){t=t.slice(e.length),e===`file:///`&&(t=`/${t.replace(/^\/+/,``)}`),r=!0;break}}if(!n){let e=t.match(lo);e&&(t=t.slice(e[0].length))}if(t.startsWith(`//`)){let e=t.indexOf(`/`,2);t=e===-1?``:t.slice(e)}let i=t.indexOf(`?`);if(i!==-1){let e=t.slice(i);go.test(e)&&(t=t.slice(0,i))}return t},yc=e=>{let t=vc(e);return!(!t||!mo.test(t)||ho.test(t))},bc=Symbol.for(`react.context`),xc=[],Sc=null,Cc=Error("Suspense interrupted this render. This error is an internal implementation detail of `use`."),wc=()=>{let e=Sc;return e!==null&&(Sc=e.next),e},Tc=e=>typeof e==`object`&&!!e&&`then`in e&&typeof e.then==`function`,Ec=e=>typeof e==`object`&&!!e&&`current`in e,Dc=e=>typeof e==`object`&&!!e&&`_currentValue`in e,Oc=e=>e._currentValue,kc=(e,t,n,r=null)=>{xc.push({displayName:r,primitive:e,stackError:Error(),value:t,dispatcherHookName:n})},Ac=e=>{if(typeof e==`object`&&e){if(Tc(e)){let t=e,n=Tc(t)?t:e;switch(n.status){case`fulfilled`:return kc(`Promise`,n.value,`Use`),n.value;case`rejected`:throw n.reason}throw kc(`Unresolved`,n,`Use`),Cc}if(`$$typeof`in e&&e.$$typeof===bc&&Dc(e)){let t={_currentValue:e._currentValue,displayName:typeof e.displayName==`string`?e.displayName:void 0},n=Oc(t);return kc(`Context (use)`,n,`Use`,t.displayName??`Context`),n}}throw new ni(`use() received an unsupported value: `+String(e))},jc=e=>{let t=Oc(e);return kc(`Context`,t,`Context`,e.displayName??null),t},Mc=e=>{let t=wc(),n=t===null?typeof e==`function`?e():e:t.memoizedState;return kc(`State`,n,`State`),[n,()=>{}]},Nc=(e,t,n)=>{let r=wc(),i=r===null?n===void 0?t:n(t):r.memoizedState;return kc(`Reducer`,i,`Reducer`),[i,()=>{}]},Pc=e=>{let t=wc(),n=Ec(t?.memoizedState)?t.memoizedState:{current:e};return kc(`Ref`,n.current,`Ref`),n},Fc=()=>{let e=wc();return kc(`CacheRefresh`,e===null?()=>{}:e.memoizedState,`CacheRefresh`),()=>{}},Ic=e=>{wc(),kc(`LayoutEffect`,e,`LayoutEffect`)},Lc=e=>{wc(),kc(`InsertionEffect`,e,`InsertionEffect`)},Rc=e=>{wc(),kc(`Effect`,e,`Effect`)},zc=e=>{wc(),kc(`ImperativeHandle`,Ec(e)?e.current:void 0,`ImperativeHandle`)},Bc=(e,t)=>{kc(`DebugValue`,typeof t==`function`?t(e):e,`DebugValue`)},Vc=e=>{let t=wc();return kc(`Callback`,Array.isArray(t?.memoizedState)?t.memoizedState[0]:e,`Callback`),e},Hc=e=>{let t=wc(),n=Array.isArray(t?.memoizedState)?t.memoizedState[0]:e();return kc(`Memo`,n,`Memo`),n},Uc=(e,t)=>{let n=wc();wc();let r=n===null?t():n.memoizedState;return kc(`SyncExternalStore`,r,`SyncExternalStore`),r},Wc=()=>{let e=wc();wc();let t=e?.memoizedState===!0;return kc(`Transition`,t,`Transition`),[t,()=>{}]},Gc=e=>{let t=wc(),n=t===null?e:t.memoizedState;return kc(`DeferredValue`,n,`DeferredValue`),n},Kc=()=>{let e=wc(),t=typeof e?.memoizedState==`string`?e.memoizedState:``;return kc(`Id`,t,`Id`),t},qc=e=>[],Jc=e=>{let t=wc(),n=t===null?e:t.memoizedState;return kc(`Optimistic`,n,`Optimistic`),[n,()=>{}]},Yc=(e,t)=>{let n,r=null;if(e!==null){let t=e.memoizedState;if(Tc(t))switch(t.status){case`fulfilled`:n=t.value;break;case`rejected`:r=t.reason;break;default:r=Cc,n=t}else n=t}else n=t;return{value:n,error:r}},Xc=e=>(t,n)=>{let r=wc();wc(),wc();let{value:i,error:a}=Yc(r,n);if(kc(e,i,e),a!==null)throw a;return[i,()=>{},!1]},Zc=Xc(`ActionState`),Qc={readContext:Oc,use:Ac,useCallback:Vc,useContext:jc,useEffect:Rc,useImperativeHandle:zc,useLayoutEffect:Ic,useInsertionEffect:Lc,useMemo:Hc,useReducer:Nc,useRef:Pc,useState:Mc,useDebugValue:Bc,useDeferredValue:Gc,useTransition:Wc,useSyncExternalStore:Uc,useId:Kc,useHostTransitionStatus:()=>{let e=Oc({_currentValue:null});return kc(`HostTransitionStatus`,e,`HostTransitionStatus`),e},useFormState:Xc(`FormState`),useActionState:Zc,useOptimistic:Jc,useMemoCache:qc,useCacheRefresh:Fc,useEffectEvent:e=>(wc(),kc(`EffectEvent`,e,`EffectEvent`),e)};new Proxy(Qc,{get(e,t){if(Object.hasOwn(e,t))return Reflect.get(e,t);throw new ri(`The React dispatcher is missing method `+t)}}),J();let $c=e=>e===void 0||!Number.isFinite(e)?3:Math.max(0,Math.floor(e)),el=/^(?:\.\/)?\/?\([a-z][a-z0-9-]*\)\//,tl=e=>{let t=vc(e);return t=t.replace(el,``),t.startsWith(`./`)&&(t=t.slice(2)),t},nl=e=>{try{return decodeURIComponent(e)}catch{return e}},rl=/(?:^|[/\\])node_modules[/\\]/,il=/[/\\]\.vite[/\\]deps[^/\\]*[/\\]/,al=/\.[mc]?[jt]sx?$/i,ol=/^chunk-[A-Za-z0-9_-]+$/,sl=/[/\\]/,cl=/^(.+?)@v?\d/,ll=e=>e.split(sl).filter(Boolean),ul=e=>{let[t,n]=ll(e);return!t||t.startsWith(`.`)?null:t.startsWith(`@`)?n?`${t}/${n}`:null:t},dl=e=>{let t=ll(e)[0];if(!t)return null;let n=t.replace(al,``);if(ol.test(n))return null;if(!n.startsWith(`@`))return n;let r=n.indexOf(`_`);return r===-1?null:`${n.slice(0,r)}/${n.slice(r+1)}`},fl=(e,t,n)=>{let r=e.split(t);return r.length>1?n(r[r.length-1]):null},pl=e=>e?.match(cl)?.[1]??null,ml=e=>{let t;try{t=new URL(e)}catch{return null}if(!t.hostname)return null;let n=ll(t.pathname).map(nl);for(let[e,t]of n.entries()){if(t.startsWith(`@`)){let r=pl(n[e+1]);if(r)return`${t}/${r}`;continue}let r=pl(t);if(r)return r}return null},hl=e=>fl(e,il,dl)??fl(e,rl,ul),gl=e=>{if(!e)return null;let t=vc(e);return t&&(hl(nl(t))||ml(e))||null},_l=/^@[A-Za-z0-9][A-Za-z0-9._-]*$/,vl=/^[A-Za-z0-9][A-Za-z0-9._-]*$/,yl=new Set([`app`,`web`,`website`,`frontend`,`client`,`src`]),bl=new Set([`app`,`src`,`components`,`pages`,`features`,`modules`,`hooks`,`lib`,`utils`,`ui`,`shared`,`common`,`core`,`styles`,`assets`]),xl=e=>{let t=e;for(;t.startsWith(`../`)||t.startsWith(`./`);)t=t.slice(t.startsWith(`../`)?3:2);return t},Sl=e=>{let t=xl(nl(vc(e)));if(t.startsWith(`/`))return null;let[n,r,...i]=ll(t);return!n||!r||i.length===0||!_l.test(n)||bl.has(n.slice(1))||!vl.test(r)||al.test(r)||yl.has(r)?null:`${n}/${r}`},Cl=e=>e?gl(e)??Sl(e):null,wl=e=>{if(!e)return{origin:`unknown`,packageName:null};let t=Cl(e);return t?{origin:`package`,packageName:t}:yc(e)?{origin:`app`,packageName:null}:{origin:`unknown`,packageName:null}};J(),qa(),Kn(),aa();let Tl=new Set([`role`,`name`,`aria-label`,`rel`,`href`]),El=e=>{if(!/^[a-z-]{3,}$/i.test(e))return!1;let t=e.split(/-|[A-Z]/);for(let e of t)if(e.length<=2||/[^aeiou]{4,}/i.test(e))return!1;return!0},Dl=(e,t)=>{let n=Tl.has(e)||e.startsWith(`data-`)&&El(e),r=El(t)&&t.length<100||t.startsWith(`#`)&&El(t.slice(1));return n&&r},Ol=e=>{let t=e[0].name;for(let n=1;n<e.length;n++)t=`${e[n].name} > ${t}`;return t},kl=e=>{let t=0;for(let n of e)t+=n.penalty;return t},Al=(e,t)=>kl(e)-kl(t),jl=(e,t)=>{let n=e.parentNode;if(!n)return;let r=n.firstChild;if(!r)return;let i=0;for(;r&&(Gn(r)&&(t===void 0||r.tagName.toLowerCase()===t)&&i++,r!==e);)r=r.nextSibling;return i},Ml=(e,t)=>e===`html`?`html`:`${e}:nth-child(${t})`,Nl=(e,t)=>e===`html`?`html`:`${e}:nth-of-type(${t})`,Pl=(e,t)=>{let n=[],r=e.getAttribute(`id`),i=e.tagName.toLowerCase();r&&El(r)&&n.push({name:`#${CSS.escape(r)}`,penalty:0});for(let t of e.classList)El(t)&&n.push({name:`.${CSS.escape(t)}`,penalty:1});for(let r of e.attributes)t(r.name,r.value)&&n.push({name:`[${CSS.escape(r.name)}="${CSS.escape(r.value)}"]`,penalty:2});n.push({name:i,penalty:5});let a=jl(e,i);a!==void 0&&n.push({name:Nl(i,a),penalty:10});let o=jl(e);return o!==void 0&&n.push({name:Ml(i,o),penalty:50}),n},Fl=(e,t=fn,n=[])=>{if(t<=0)return[];if(e.length===0)return[n];let r=[];for(let i of e[0]){let a=t-r.length;if(a<=0)break;r.push(...Fl(e.slice(1),a,[...n,i]))}return r},Il=(e,t)=>{let n=t.getRootNode();return ia(n)?n:Ka(e)?e:e.ownerDocument},Ll=(e,t)=>t.querySelectorAll(Ol(e)).length===1,Rl=(e,t)=>{let n=e,r=[];for(;n&&n!==t;){let e=n.tagName.toLowerCase(),t=jl(n,e);if(t===void 0)return;r.push({name:Nl(e,t),penalty:10}),n=n.parentElement}return Ll(r,t)?r:void 0},zl=(e,t,n,r)=>{if(e.nodeType!==Node.ELEMENT_NODE)throw new Da;if(e.tagName.toLowerCase()===`html`)return`html`;let i=Il(t,e),a=Date.now(),o=[],s=e,c=0,l;for(;s&&s!==i&&!l;)if(o.push(Pl(s,r)),s=s.parentElement,c++,c>=3){let t=Fl(o);t.sort(Al);for(let r of t){if(Date.now()-a>n){let t=Rl(e,i);if(!t)throw new Oa(n);return Ol(t)}if(Ll(r,i)){l=r;break}}}if(!l&&c<3){let e=Fl(o);e.sort(Al);for(let t of e){if(Date.now()-a>n)break;if(Ll(t,i)){l=t;break}}}if(!l)throw new ka;return Ol(l)};J();let Bl=/^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/i,Vl=/:r[a-z0-9]+:/i,Hl=/_r_[a-z0-9]+_(?:$|-)/i,Ul=/«r[a-z0-9]+»/i,Wl=/^(?:downshift-\d+(?:-|$)|headlessui-[a-z-]+-\d+(?:-|$)|mui-\d+(?:-|$)|radix-\d+(?:-|$)|react-aria-\d+(?:-|$)|react-select-\d+(?:-|$))/i,Gl=/^ember\d+$/i,Kl=/^\d+$/,ql=e=>e.length>0&&e.length<=120&&!Vl.test(e)&&!Bl.test(e)&&!Hl.test(e)&&!Ul.test(e)&&!Wl.test(e)&&!Gl.test(e)&&!Kl.test(e),Jl=new Set([`data-testid`,`data-test-id`,`data-test`,`data-cy`,`data-qa`,`aria-label`,`href`,`src`,`role`,`name`,`title`,`alt`]),Yl=new Set([`button`,`link`,`checkbox`,`radio`,`switch`,`tab`,`menuitem`,`option`,`textbox`,`combobox`,`slider`,`spinbutton`]);J(),ir(),aa(),Kn(),Yi();let Xl=e=>e.ownerDocument.body??e.ownerDocument.documentElement,Zl=e=>e.length>0&&e.length<=120,Ql=(e,t)=>Jl.has(e)&&Zl(t)&&(e!==`role`||t.split(/\s+/).some(e=>Yl.has(e))),$l=(e,t)=>{try{let n=e.getRootNode(),r=(ia(n)?n:e.ownerDocument).querySelectorAll(t);return r.length===1&&r[0]===e}catch{return!1}},eu=e=>{let t=e.getAttribute(`id`),n=null;if(t){let r=`#${CSS.escape(t)}`;if($l(e,r)){if(ql(t))return{selector:r,isSemantic:!0};n=r}}for(let t of Jl){let n=e.getAttribute(t);if(!n||!Ql(t,n))continue;let r=`[${t}=${JSON.stringify(n)}]`;if($l(e,r))return{selector:r,isSemantic:!0};let i=`${e.tagName.toLowerCase()}${r}`;if($l(e,i))return{selector:i,isSemantic:!0}}return n?{selector:n,isSemantic:!1}:null},tu=e=>{let t=[],n=e.getRootNode(),r=ia(n)?n:Xl(e),i=e;for(;i;){let e=i.getAttribute(`id`);if(e){t.unshift(`#${CSS.escape(e)}`);break}let n=i.parentNode;if(!n){t.unshift(i.tagName.toLowerCase());break}let a=Array.from(n.children).indexOf(i)+1;if(t.unshift(`${i.tagName.toLowerCase()}:nth-child(${a})`),n===r){Gn(r)&&t.unshift(r.tagName.toLowerCase());break}i=Gn(n)?n:null}return t.join(` > `)},nu=e=>{let t=eu(e);if(t)return t;try{let t=zl(e,Xl(e),200,(e,t)=>Dl(e,t)||Ql(e,t));if(t)return{selector:t,isSemantic:!1}}catch{}return{selector:tu(e),isSemantic:!1}},ru=e=>{let t=qi(e);if(t)return{selector:t.getSelector(),isSemantic:!0};let n=eu(e);if(!n?.isSemantic)return null;let r=e.getRootNode();if(ia(r)){let e=ru(r.host);return e?{selector:`${e.selector} >>> ${n.selector}`,isSemantic:!0}:null}let i=rr(e.ownerDocument.defaultView);if(!i)return n;let a=ru(i);return a?{selector:`${a.selector} >>iframe>> ${n.selector}`,isSemantic:!0}:null},iu=e=>{let t=qi(e);if(t)return{selector:t.getSelector(),isSemantic:!0};let n=nu(e),r=e.getRootNode();if(ia(r)){let e=iu(r.host);return{selector:`${e.selector} >>> ${n.selector}`,isSemantic:e.isSemantic&&n.isSemantic}}let i=rr(e.ownerDocument.defaultView);if(!i)return n;let a=iu(i);return{selector:`${a.selector} >>iframe>> ${n.selector}`,isSemantic:a.isSemantic&&n.isSemantic}};J(),Ya();let au=[...Array.from(Jl).filter(e=>e!==`role`).map(e=>`[${e}]`),...Array.from(Yl).map(e=>`[role~="${e}"]`)].join(`,`),ou=[`button`,`input`,`select`,`textarea`].join(`,`),su=e=>{let t=e.getAttribute(`id`);return!!(t&&ql(t)||e.matches(au))},cu=e=>su(e)||e.matches(ou),lu=e=>{let{body:t,documentElement:n}=e.ownerDocument;if(e===t||e===n)return!0;if(!t)return!1;let r=t.getElementsByTagName(`*`).length;return r===0?!1:e.getElementsByTagName(`*`).length/r>=pn},uu=(e,t)=>{let n=e.getRootNode(),r=e;for(;r;){let i=cu(r),a=i&&lu(r);if(i){if(a&&r!==e)return e;if(!t||t(r)||a||!su(r)&&r===e)return r}let o=Ja(r);r=o?.getRootNode()===n?o:null}return e};Yi();let du=e=>{if(qi(e))return ru(e);let t=null;return uu(e,e=>{let n=ru(e);return n?(t=n,!0):!1}),t},fu=[/\/assets\/[^/?#]+-[a-z0-9_-]{6,}\.(?:c|m)?js(?:[?#]|$)/,/\/_next\/static\/.*\.(?:c|m)?js(?:[?#]|$)/,/\/static\/chunks\/.*\.(?:c|m)?js(?:[?#]|$)/],pu=e=>{if(!e)return!1;let t=`/${tl(e)}`.toLowerCase();return fu.some(e=>e.test(t))};J();let mu=e=>{if(!e)return!1;let t=`/${tl(e)}/`.toLowerCase();return un.some(e=>t.includes(e))},hu,gu=(e=!1)=>{let t=new URL(document.baseURI);return Array.from(document.scripts).some(n=>{if(!n.src)return!1;try{let r=new URL(n.src,t);return(e||r.origin===t.origin)&&r.pathname.includes(`/_next/static/`)}catch{return!1}})},_u=()=>Array.from(document.scripts).some(e=>e.textContent?.includes(`self.__next_f.push`)),vu=e=>(e&&(hu=void 0),hu??=typeof document<`u`&&!!(document.getElementById(`__NEXT_DATA__`)||document.querySelector(`nextjs-portal`)||gu()||_u()&&gu(!0)),hu),yu=e=>e.map(e=>`\n in ${e}`).join(``),bu,xu=()=>{if(bu!==void 0)return bu;let e=document.querySelector(`script[src*="/_next/"]`)?.src,t=e?new URL(e).pathname:``,n=t.indexOf(`/_next/`);return bu=n>0?t.slice(0,n):``,bu};Wi(),J();let Su=[`about://React/`,`rsc://React/`],Cu=e=>Su.some(t=>e.startsWith(t)),wu=e=>{for(let t of Su){if(!e.startsWith(t))continue;let n=e.indexOf(`/`,t.length);if(n===-1)continue;let r=n+1,i=e.lastIndexOf(`?`);return nl(i>r?e.slice(r,i):e.slice(r))}return e},Tu=e=>{if(typeof e!=`object`||!e||!(`status`in e)||e.status!==`fulfilled`||!(`value`in e)||typeof e.value!=`object`||e.value===null||!(`originalStackFrame`in e.value))return null;let t=e.value.originalStackFrame;return typeof t!=`object`||!t||!(`file`in t)||typeof t.file!=`string`||!t.file||`ignored`in t&&t.ignored?null:{file:t.file,line1:`line1`in t&&typeof t.line1==`number`?t.line1:null,column1:`column1`in t&&typeof t.column1==`number`?t.column1:null}},Eu=async(e,t)=>{let n=[],r=[];for(let t=0;t<e.length;t++){let i=e[t];!i.isServer||!i.fileName||(n.push(t),r.push({file:wu(i.fileName),methodName:i.functionName??`<unknown>`,line1:i.lineNumber??null,column1:i.columnNumber??null,arguments:[]}))}if(r.length===0)return e;let i=new AbortController,a=setTimeout(()=>i.abort(),dn),o=()=>i.abort();t?.aborted&&i.abort(),t?.addEventListener(`abort`,o);try{let t=await fetch(`${xu()}/__nextjs_original-stack-frames`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({frames:r,isServer:!0,isEdgeServer:!1,isAppDirectory:!0}),priority:`high`,signal:i.signal});if(!t.ok)return e;let a=await t.json();if(!Array.isArray(a))return e;let o=[...e];for(let t=0;t<n.length;t++){let r=Tu(a[t]);if(!r)continue;let i=n[t];o[i]={...e[i],fileName:r.file,lineNumber:r.line1??void 0,columnNumber:r.column1??void 0,isSymbolicated:!0}}return o}catch{return e}finally{clearTimeout(a),t?.removeEventListener(`abort`,o)}},Du=e=>{let t=new Map;return Pr(e,e=>{if(!Bs(e))return!1;let n=Qs(e._debugStack.stack);if(!n)return!1;for(let e of To(n))!e.functionName||!e.fileName||Cu(e.fileName)&&(t.has(e.functionName)||t.set(e.functionName,{...e,isServer:!0}));return!1},!0),t},Ou=(e,t)=>{if(!t.some(e=>e.isServer&&!e.fileName&&e.functionName))return t;let n=Du(e);return n.size===0?t:t.map(e=>{if(!e.isServer||e.fileName||!e.functionName)return e;let t=n.get(e.functionName);return t?{...e,fileName:t.fileName,lineNumber:t.lineNumber,columnNumber:t.columnNumber}:e})};J();let ku=0,Au=[],ju=e=>e?.aborted?Promise.resolve(!1):ku<3?(ku+=1,Promise.resolve(!0)):new Promise(t=>{let n={abortSignal:e,resolve:t};e&&(n.handleAbort=()=>{let e=Au.indexOf(n);e!==-1&&(Au.splice(e,1),t(!1))},e.addEventListener(`abort`,n.handleAbort,{once:!0})),Au.push(n)}),Mu=()=>{let e=Au.shift();if(e){e.abortSignal&&e.handleAbort&&e.abortSignal.removeEventListener(`abort`,e.handleAbort),e.resolve(!0);return}--ku},Nu=async(e,t,n=K,r)=>{if(!await ju(r))return t;let i=new AbortController,a,o=new Promise(e=>{a=setTimeout(()=>{i.abort(),e(t)},n)}),s,c=new Promise(e=>{r&&(s=()=>{i.abort(),e(t)},r.aborted?s():r.addEventListener(`abort`,s,{once:!0}))});try{let t=e(i.signal);return t.catch(()=>{}),await Promise.race([t,o,c])}finally{clearTimeout(a),s&&r?.removeEventListener(`abort`,s),Mu()}},Pu=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),Fu=e=>Pu(e).replace(/"/g,`"`).replace(/\r/g,` `).replace(/\n/g,` `).replace(/\t/g,`	`),Iu=(e,t)=>{if(e.length<=t)return e;let n=Math.max(0,t-3),r=e.slice(0,n),i=r.lastIndexOf(`&`);return`${i>r.lastIndexOf(`;`)?r.slice(0,i):r}...`.slice(0,t)},Lu=e=>e.startsWith(`data-react-grab-`);J(),Kn();let Ru=e=>e.replace(/\s+/g,` `).trim(),zu=e=>{let t=[];for(let n of e.childNodes){if(n.nodeType!==Node.TEXT_NODE)continue;let e=Ru(n.textContent??``);e&&t.push(e)}return t.join(` `)},Bu=e=>e.getAttribute(`aria-hidden`)===`true`||e.hasAttribute(`hidden`)?!0:On.has(e.tagName.toLowerCase()),Vu=(e,t,n)=>{if(e.nodeType===Node.TEXT_NODE){let r=Ru(e.textContent??``);return r?(t.push(r),n-r.length):n}if(!Gn(e)||Bu(e))return n;for(let r of e.childNodes)if(n=Vu(r,t,n),n<=0)break;return n},Hu=(e,t)=>{if(Bu(e))return``;let n=zu(e);if(!Dn.has(t)||n&&e.children.length===0)return n;let r=[];return Vu(e,r,100),r.join(` `)};J(),Na(),Kn(),Jn(),Yi();let Uu=(e,t,n)=>`${e}="${Iu(Fu(t),n)}"`,Wu=e=>{let t=[];for(let n of Tn){if(t.length>=8)break;let r=e.getAttribute(n);if(!r)continue;let i=n===`class`?15:120;t.push(Uu(n,r,i))}return t},Gu=e=>{let t=Wu(e);return t.length>0?` ${t.join(` `)}`:``},Ku=e=>e===`class`||e===`className`||e===`style`,qu=e=>{let t=Wu(e).map(e=>` ${e}`),n=[],r=[];for(let{name:t,value:i}of e.attributes)Lu(t)||Tn.includes(t)||Ku(t)||(En.has(t)?n.push(i?` ${Uu(t,i,120)}`:` ${t}`):i&&r.push(` ${Uu(t,i,15)}`));return[...t,...n,...r].slice(0,8).join(``)},Ju=e=>e.length===0?``:e.length<=2?e.map(e=>`<${Ma(e)} ...>`).join(`
|
|
21
|
+
`):`(${e.length} elements)`,Yu=e=>{let t=qi(e);if(t)return t.getPreview();let n=Ma(e);if(!qn(e)){let t=Gu(e),r=Iu(Pu(Hu(e,n)),100);return r?`<${n}${t}>${r}</${n}>`:`<${n}${t} />`}let r=qu(e),i=Iu(Pu(Hu(e,n)),100);return i?`<${n}${r}>${i}</${n}>`:`<${n}${r} />`},Xu=e=>{let t=qi(e);if(t)return t.getPreview();let n=Ma(e),r=qu(e),i=Hu(e,n),a=[],o=[],s=!1;for(let t of e.childNodes)t.nodeType!==Node.COMMENT_NODE&&(t.nodeType===Node.TEXT_NODE?t.textContent&&t.textContent.trim().length>0&&(s=!0):Gn(t)&&(s?o.push(t):a.push(t)));let c=i.length>0&&Dn.has(n),l=``,u=Ju(a);u&&!c&&(l+=`\n ${u}`),i&&(l+=`\n ${Iu(Pu(i),100)}`);let d=Ju(o);return d&&!c&&(l+=`\n ${d}`),l.length>0?`<${n}${r}>${l}\n</${n}>`:`<${n}${r} />`},Zu=new Set([`_`,`$`,`motion.`,`styled.`,`chakra.`,`ark.`,`Primitive.`,`Slot.`]),Qu=new Set(`AppRouter.AppRouterAnnouncer.AppDevOverlay.AppDevOverlayErrorBoundary.ClientPageRoot.ClientSegmentRoot.DevRootHTTPAccessFallbackBoundary.ErrorBoundary.ErrorBoundaryHandler.GracefulDegradeBoundary.HTTPAccessErrorFallback.HTTPAccessFallbackBoundary.HTTPAccessFallbackErrorBoundary.HandleRedirect.Head.HistoryUpdater.HotReload.InnerLayoutRouter.InnerScrollAndFocusHandler.InnerScrollAndFocusHandlerOld.InnerScrollAndMaybeFocusHandler.InnerScrollHandlerNew.LinkComponent.LoadableComponent.LoadingBoundary.LoadingBoundaryProvider.NotAllowedRootHTTPFallbackError.OfflineProvider.OuterLayoutRouter.RedirectBoundary.RedirectErrorBoundary.RenderFromTemplateContext.RenderValidationBoundaryAtThisLevel.ReplaySsrOnlyErrors.RootErrorBoundary.RootLevelDevOverlayElement.Router.ScrollAndFocusHandler.ScrollAndMaybeFocusHandler.SegmentBoundaryTrigger.SegmentBoundaryTriggerNode.SegmentStateProvider.SegmentTrieNode.SegmentViewNode.SegmentViewStateNode.ServerRoot.body.html`.split(`.`)),$u=new Set([`<anonymous>`,`<unknown>`,`Anonymous`,`Unknown`]),ed=new Set([`Suspense`,`Fragment`,`StrictMode`,`Profiler`,`SuspenseList`]),td=new Set([`MotionDOMComponent`,`Slot`,`SlotClone`]),nd=[`.Consumer`,`.Context`,`.Provider`,`.Slot`,`.SlotClone`,`.Slottable`,`ProviderProvider`],rd=(e,t=!1)=>{if($u.has(e)||t&&Qu.has(e)||ed.has(e)||td.has(e))return!0;for(let t of nd)if(e.endsWith(t))return!0;for(let t of Zu)if(e.startsWith(t))return!0;return!1},id=(e,t=!1)=>!(!e||rd(e,t)),ad=(e,t)=>e||t.isSemantic,od=e=>{let t=e.alternate,n=e._debugOwner,r=e._debugSource,i=e._debugStack;return{matches:a=>(a===e||a===t||a.alternate===e)&&a._debugOwner===n&&a._debugSource===r&&a._debugStack===i}},sd=(e,t)=>e.length>t?`${e.slice(0,t)}...`:e;J();let cd=e=>JSON.stringify(sd(e,120)),ld=(e,t,n)=>{e.get(t)===n&&e.delete(t)};J();let ud=async(e,t)=>{for(let n=0;n<2;n+=1){let r=e();if(!r)return t();let i=await r.valuePromise;if(r.isCurrent()||n===1)return i}return t()};Wi(),J(),aa(),Yi();let dd=(e,t)=>!(e.length<=1||rd(e,t)||e[0]!==e[0].toUpperCase()),fd=(e,t)=>e&&dd(e,t)?e:null,pd=e=>!mu(e)&&!pu(e),md=e=>{if(!vi())return e;let t=e;for(;t?.ownerDocument===e.ownerDocument;){if(Ji(t))return t;if(t.parentElement){t=t.parentElement;continue}let e=t.getRootNode();t=ia(e)?e.host:null}return e},hd=e=>{let t=e.return?.child??null;for(;t;){if(t!==e&&t.key!==null)return!0;t=t.sibling}return!1},gd=e=>{let t=e,n=0;for(;t;){if(t.key!==null&&hd(t))return String(t.key);if(ui(t)&&(n+=1,n===2))break;t=t.return}return null},_d=e=>{if(!vi())return null;let t=Ji(md(e));return gd(t?xi(t):null)},vd=new WeakMap,yd=new WeakMap,bd=e=>{let t=md(e),n=Ji(t);if(!n)return null;let r=xi(n);return{element:t,fiber:r,revision:od(r)}},xd=(e,t)=>{let n=bd(e);return!!(n&&n.element===t.element&&t.revision.matches(n.fiber))},Sd=(e,t,n)=>ud(()=>{let t=bd(e);return t?{isCurrent:()=>xd(e,t),valuePromise:n(t)}:null},t),Cd=e=>t=>fetch(t,{signal:e,priority:`high`}),wd=(e,t)=>Nu(async t=>{try{let n=await uc(e,!0,Cd(t));return vu()?await Eu(Ou(e,n),t):n}catch{return null}},null,void 0,t),Td=e=>{if(!vi())return Promise.resolve([]);let t=vd.get(e.element);if(t?.revision.matches(e.fiber))return t.promise;let n=new AbortController,r=wd(e.fiber,n.signal);if(!xd(e.element,e))return r;let i={controller:n,promise:r,revision:e.revision};return vd.set(e.element,i),t?.controller.abort(),i.promise.then(t=>{t===null&&ld(vd,e.element,i)}),i.promise},Ed=e=>vi()?Sd(e,()=>null,Td):Promise.resolve([]),Dd=async e=>{if(!vi())return null;let t=vu(),n=fd(qi(e)?Fd(e):null,t);if(n)return n;let r=await Ed(e);if(!r)return null;for(let e of r){let n=fd(e.functionName,t);if(n)return n}return null},Od=e=>e[0]??null,kd=(e,t)=>!si(e)||!ui(e)?null:fd(_i(e.type),t),Ad=(e,t)=>Nu(async t=>{try{let n=await hc(e,!0,Cd(t));if(!n?.fileName)return null;let r=vu();return{filePath:tl(n.fileName),lineNumber:n.lineNumber??null,columnNumber:n.columnNumber??null,componentName:fd(n.functionName,r)??kd(e._debugOwner,r),origin:wl(n.fileName).origin}}catch{return null}},null,void 0,t),jd=e=>{let t=yd.get(e.element);if(t?.revision.matches(e.fiber))return t.promise;let n=new AbortController,r=Ad(e.fiber,n.signal);if(!xd(e.element,e))return r;let i={controller:n,promise:r,revision:e.revision};return yd.set(e.element,i),t?.controller.abort(),i.promise.then(t=>{t||ld(yd,e.element,i)}),i.promise},Md=async e=>{let[t,n]=await Promise.all([jd(e),Td(e)]);return{fiber:e.fiber,fiberSource:t,stack:n}},Nd=(e,t)=>{let n=vu(),r=(e,t)=>{let r=Od(e);return r?.fileName?{filePath:tl(r.fileName),lineNumber:r.lineNumber??null,columnNumber:r.columnNumber??null,componentName:fd(r.functionName,n),origin:t}:null},i=t.filter(e=>wl(e.fileName).origin===`app`),a=i.filter(e=>pd(e.fileName));return e?.origin===`app`&&pd(e.filePath)?e:r(a,`app`)||(e?.origin===`app`&&!pu(e.filePath)?e:r(i,`app`)||(e?.origin===`app`||e?.origin===`package`?e:r(t.filter(e=>wl(e.fileName).origin===`package`),`package`)))},Pd=async e=>Sd(e,()=>null,async e=>{let t=await jd(e);return t?.origin===`app`&&pd(t.filePath)?t:Nd(t,await Td(e)??[])}),Fd=e=>Id(md(e),1)[0]??null,Id=(e,t,n=()=>!0)=>{if(!vi())return[];let r=Ji(e);if(!r)return[];let i=vu(),a=[];return Pr(xi(r),e=>{if(a.length>=t)return!0;if(ui(e)){let t=_i(e.type);t&&id(t,i)&&n(t)&&a.push(t)}return!1},!0),a},Ld=[`/src/app/`,`/src/pages/`,`/app/`,`/pages/`],Rd=(e,t)=>{let n=tl(e);if(!t||!n.startsWith(`/`))return n;for(let e of Ld){let t=n.indexOf(e);if(t!==-1)return`/./${n.slice(t+1)}`}return n},zd=(e,t)=>{let n=Rd(e.filePath,t),r=t&&e.lineNumber?`${n}:${e.lineNumber}${e.columnNumber?`:${e.columnNumber}`:``}`:n;return e.componentName?`\n in ${e.componentName} (at ${r})`:`\n in ${r}`},Bd={isAppSource:!1,consumesBudget:!1},Vd=(e,t,n,r)=>{let i=t.packageName,a=t.origin===`app`?e.fileName:null;if(e.isServer&&!a&&(n||!e.functionName)){let e=i?`${i} at Server`:`at Server`;return{text:`\n in ${n??`<anonymous>`} (${e})`,...Bd}}return!a&&n?{text:i?`\n in ${n} (${i})`:`\n in ${n}`,...Bd}:i?{text:`\n in ${i}`,...Bd}:a?{text:zd({componentName:n,filePath:a,lineNumber:e.lineNumber??null,columnNumber:e.columnNumber??null},r),isAppSource:!0,consumesBudget:pd(a)}:null},Hd=(e,t={},n=null)=>{let r=$c(t.maxLines),i=Math.max(r,20),a=vu(),o=[],s=new Set,c=null,l=!1,u=!1,d=!1,f=0,p=e=>{e&&s.add(e)};if(n){let e=n.origin===`app`&&pd(n.filePath);u=e,e&&(f+=1),p(n.componentName),o.push(zd(n,a))}for(let t of e){if(!r||o.length>=i)break;let e=wl(t.fileName),s=fd(t.functionName,a),m=e.packageName?`${e.packageName}:${s??``}:${t.isServer?`server`:`client`}`:null;if(m&&m===c)continue;if(!l&&s&&s===n?.componentName){l=!0;continue}let h=Vd(t,e,s,a);h!==null&&(h.consumesBudget&&f>=r||h.text!==o[o.length-1]&&(h.isAppSource&&h.consumesBudget&&(u=!0),h.consumesBudget&&(f+=1,d=!0),p(s),o.push(h.text),c=m))}return{text:o.join(``),shouldAppendSelectorHint:!u,hasBudgetedStackFrame:d,renderedComponentNames:s,remainingHardLineCapacity:Math.max(0,i-o.length)}},Ud=(e,t)=>{let n=Nd(e,t);return n?.origin===`app`?n:null},Wd=(e,t,n)=>{let r=Math.min(n,t.remainingHardLineCapacity);if(r===0)return t;let i=vu(),a=Id(md(e),r,e=>dd(e,i)&&!t.renderedComponentNames.has(e));return a.length===0?t:{...t,text:`${t.text}${yu(a)}`,remainingHardLineCapacity:t.remainingHardLineCapacity-a.length}},Gd=(e,t,n)=>{let r=n.stack??[],i=Ud(n.fiberSource,r),a=$c(t.maxLines),o=Hd(r,t,i);if(o.text)return o.hasBudgetedStackFrame?o:Wd(e,o,a);let s=Id(md(e),a),c=Math.max(a,20);return{text:yu(s),shouldAppendSelectorHint:!0,hasBudgetedStackFrame:!1,renderedComponentNames:new Set(s),remainingHardLineCapacity:Math.max(0,c-s.length)}},Kd=(e,t={})=>Sd(e,()=>Gd(e,t,{fiber:null,fiberSource:null,stack:[]}),async n=>Gd(e,t,await Md(n))),qd=async(e,t={})=>(await Kd(e,t)).text,Jd=(e,t)=>{let n=_d(e),r=n===null?``:`\n key: ${cd(n)}`,i=t.shouldAppendSelectorHint?iu(uu(e)):du(e),a=i&&ad(t.shouldAppendSelectorHint,i)?i.selector:null,o=a?`\n selector: ${a}`:``;return{selector:a,text:`${t.text}${r}${o}`}},Yd=async(e,t={})=>{let n=md(e);return`${Xu(n)}${Jd(n,await Kd(n,t)).text}`},Xd=(e,t,n)=>{let r=t.stack??[],i=Nd(t.fiberSource,r);return{componentName:Fd(e),fiber:t.fiber,source:i,stack:r,stackContext:n.text}},Zd=(e,t,n)=>{let r=Gd(e,t,n),i=Jd(e,r);return{...Xd(e,n,r),referenceContext:`${Yu(e)}${i.text.replace(/\n\s+/g,` `)}`}},Qd=(e,t,n)=>Sd(e,()=>n(e,t,{fiber:null,fiberSource:null,stack:[]}),async r=>n(e,t,await Md(r))),$d=(e,t={})=>Qd(e,t,Zd);R();let ef=e=>{let[t,n]=h(void 0),r=0;return v(C(e,e=>{let t=++r;if(!e){n(void 0);return}let i=Fd(e)??void 0;n(i),Dd(e).then(e=>{r===t&&n(e??i)}).catch(()=>{r===t&&n(i)})})),[t,n]};var tf,nf,rf,af,of,sf,cf=c((()=>{tf=typeof window<`u`,nf=e=>0,rf=e=>{},af=tf?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):nf,of=tf?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):rf,sf=()=>tf?new Promise(e=>af(()=>e())):Promise.resolve()}));cf();let lf=/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*([\d.]+%?))?\s*\)$/,uf=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,`0`),df=(e,t,n,r=1)=>{let i=uf(e),a=uf(t),o=uf(n);return r>=1?`#${i}${a}${o}`:`#${i}${a}${o}${uf(r*255)}`},ff=e=>{if(!e.startsWith(`#`))return null;let t=e.slice(1);if(t.length!==6&&t.length!==8)return null;let n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16),a=t.length===8?parseInt(t.slice(6,8),16)/255:1;return!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)?null:{red:n,green:r,blue:i,alpha:a}},pf=e=>{let t=e.match(lf);if(!t)return null;let n=1;if(t[4]!==void 0){let e=t[4];n=e.endsWith(`%`)?Number(e.slice(0,-1))/100:Number(e)}return df(Number(t[1]),Number(t[2]),Number(t[3]),n)},mf=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hf=e=>{let t=e.match(mf);if(!t)return null;let n=t[1];return n.length===3?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`:n.length===4?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:`#${n}`},gf=`rgba(0, 0, 0, 0)`,_f=`#00000000`,vf=/^oklch\(\s*([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+)(deg|grad|rad|turn)?(?:\s*\/\s*([+-]?\d*\.?\d+%?))?\s*\)$/i,yf=180/Math.PI,bf=(e,t)=>e.endsWith(`%`)?Number(e.slice(0,-1))/100*t:Number(e),xf=(e,t)=>{let n=Number(e);return t===`grad`?n*.9:t===`rad`?n*yf:t===`turn`?n*360:n},Sf=e=>{let t=Math.max(0,Math.min(1,e));return(t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055)*255},Cf=e=>{let t=e.match(vf);if(!t)return null;let n=bf(t[1],1),r=bf(t[2],.4),i=xf(t[3],t[4])*Math.PI/180,a=t[5]===void 0?1:bf(t[5],1);if(![n,r,i,a].every(Number.isFinite))return null;let o=r*Math.cos(i),s=r*Math.sin(i),c=n+.3963377774*o+.2158037573*s,l=n-.1055613458*o-.0638541728*s,u=n-.0894841775*o-1.291485548*s,d=c**3,f=l**3,p=u**3,m=4.0767416621*d-3.3077115913*f+.2309699292*p,h=-1.2684380046*d+2.6097574011*f-.3413193965*p,g=-.0041960863*d-.7034186147*f+1.707614701*p;return df(Sf(m),Sf(h),Sf(g),Math.max(0,Math.min(1,a)))},wf=null,Tf=()=>wf||(typeof document>`u`?null:(wf=document.createElement(`canvas`).getContext(`2d`,{willReadFrequently:!0}),wf)),Ef=(e,t)=>{e.clearRect(0,0,1,1),e.fillStyle=t,e.fillRect(0,0,1,1);let n=e.getImageData(0,0,1,1).data;return n[3]===0?_f:df(n[0],n[1],n[2],n[3]/255)},Df=e=>{let t=e.trim();if(!t)return null;if(t.toLowerCase()===`transparent`)return _f;let n=hf(t);if(n)return n;let r=Cf(t);if(r)return r;let i=Tf();if(!i)return null;i.fillStyle=gf,i.fillStyle=t;let a=i.fillStyle;return typeof a==`string`?a.toLowerCase()===gf?t.toLowerCase().replace(/\s+/g,``)===`rgba(0,0,0,0)`?_f:null:a.startsWith(`#`)&&a.length===7?a:a.startsWith(`rgb`)?pf(a):Ef(i,t):null};J();let Of=[`data-theme`,`data-mode`,`data-color-scheme`,`data-bs-theme`,`data-mui-color-scheme`,`data-mantine-color-scheme`],kf=[{attribute:`data-dark`,theme:`dark`},{attribute:`data-light`,theme:`light`}],Af=(e,t,n)=>{let[r,i,a]=[e,t,n].map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*r+.7152*i+.0722*a},jf=(e,t=0)=>{let n=Df(e),r=n?ff(n):null;return!r||r.alpha<=t?null:Af(r.red,r.green,r.blue)},Mf=e=>{let t=jf(e);return t===null?null:t<.18?`dark`:`light`},Nf=e=>Mf(getComputedStyle(e).backgroundColor),Pf=()=>{let e=jf(getComputedStyle(document.documentElement).color,Nn);return e===null?null:e>.6?`dark`:null},Ff=()=>{let e=document.createElement(`div`);e.style.cssText=`position:fixed;width:0;height:0;background-color:Canvas!important`,document.documentElement.appendChild(e);let t=Mf(getComputedStyle(e).backgroundColor);return e.remove(),t},If=e=>{let t=e.toLowerCase();return t===`dark`?`dark`:t===`light`?`light`:null},Lf=e=>{let t=e.style.colorScheme||getComputedStyle(e).colorScheme;return t?t.trim().toLowerCase().split(/\s+/):[]},Rf=e=>{let t=Lf(e),n=t.includes(`dark`);return n===t.includes(`light`)?null:n?`dark`:`light`},zf=e=>{if(e.classList.contains(`dark`))return`dark`;if(e.classList.contains(`light`))return`light`;for(let t of Of){let n=e.getAttribute(t);if(!n)continue;let r=If(n);if(r)return r}for(let{attribute:t,theme:n}of kf)if(e.hasAttribute(t))return n;return null},Bf=(e,t)=>{for(let n of e){if(!n)continue;let e=t(n);if(e)return e}return null},Vf=()=>{let e=[document.documentElement,document.body],t=[document.body,document.documentElement];return Bf(e,zf)??Bf(e,Rf)??Bf(t,Nf)??Pf()??Ff()??`light`},Hf=e=>e===`dark`?`light`:`dark`,Uf=()=>{let e=[];for(let t of[document.documentElement,document.body]){if(!t)continue;e.push(t.className);for(let n of Of)e.push(t.getAttribute(n)??``);for(let{attribute:n}of kf)e.push(t.hasAttribute(n)?`1`:``);let n=t.style;e.push(n.colorScheme,n.backgroundColor,n.color);for(let t=0;t<n.length;t++){let r=n[t];r.startsWith(`--`)&&e.push(`${r}:${n.getPropertyValue(r)}`)}}return e.join(`|`)},Wf={attributes:!0,attributeFilter:[`class`,`style`,...Of,...kf.map(({attribute:e})=>e)]},Gf=(e,t)=>{let n=null,r=null,i=null,a=i=>{if(i===r&&n!==null)return getComputedStyle(document.body??document.documentElement).backgroundColor,n;r=i;let a=Hf(Vf());return a!==n&&(n=a,e.setAttribute(`data-rg-theme`,a),t?.(a)),a},o=()=>a(Uf()),s=()=>{i!==null&&(of(i),i=null)},c=()=>{i===null&&(i=af(()=>{i=null,o()}))},l=o(),u=()=>{let e=Uf();if(e===r){c();return}s(),a(e)},d=new MutationObserver(u);d.observe(document.documentElement,Wf);let f=null;document.body?d.observe(document.body,Wf):(f=new MutationObserver((e,t)=>{document.body&&(t.disconnect(),f=null,d.observe(document.body,Wf),u())}),f.observe(document.documentElement,{childList:!0}));let p=()=>{r=null,c()},m=window.matchMedia(`(prefers-color-scheme: dark)`);return m.addEventListener(`change`,p),{theme:l,cleanup:()=>{f?.disconnect(),d.disconnect(),m.removeEventListener(`change`,p),s()}}},Kf=()=>{},qf=()=>({activate:Kf,deactivate:Kf,toggle:Kf,comment:Kf,isActive:()=>!1,isEnabled:()=>!1,setEnabled:Kf,getToolbarState:()=>null,setToolbarState:Kf,onToolbarStateChange:()=>Kf,reset:Kf,dispose:Kf,copyElement:()=>Promise.resolve(!1),getSource:()=>Promise.resolve(null),getStackContext:()=>Promise.resolve(``),getState:()=>({isActive:!1,isDragging:!1,isCopying:!1,isPromptMode:!1,isSelectionBoxVisible:!1,isDragBoxVisible:!1,targetElement:null,dragBounds:null,grabbedBoxes:[],labelInstances:[],selectionFilePath:null,toolbarState:null}),setOptions:Kf,registerPlugin:Kf,unregisterPlugin:Kf,getPlugins:()=>[],getDisplayName:()=>null}),Jf=()=>{let e=new AbortController;return{signal:e.signal,abort:()=>e.abort(),addWindowListener:(t,n,r={})=>{window.addEventListener(t,n,{...r,signal:e.signal})},addDocumentListener:(t,n,r={})=>{document.addEventListener(t,n,{...r,signal:e.signal})}}};J(),ro();let Yf=(e,t)=>{let n=t?.componentName??`div`,r={version:rn,content:e,entries:t?.entries??[{tagName:t?.tagName,componentName:n,content:e,commentText:t?.commentText}],timestamp:Date.now()},i=t=>{t.preventDefault(),t.clipboardData?.setData(`text/plain`,e),t.clipboardData?.setData(`text/html`,`<meta charset='utf-8'><pre><code>${Pu(e)}</code></pre>`),t.clipboardData?.setData(`application/x-react-grab`,JSON.stringify(r))},a=document.createElement(`textarea`);document.addEventListener(`copy`,i);try{return a.value=e,a.style.position=`fixed`,a.style.left=`-9999px`,a.ariaHidden=`true`,document.body.appendChild(a),a.select(),typeof document.execCommand==`function`?document.execCommand(`copy`):!1}finally{document.removeEventListener(`copy`,i),a.remove()}},Xf=(e,t=`Unknown error`)=>e instanceof Error&&e.message?e.message:t,Zf=e=>e instanceof Error?e:Error(String(e)),Qf=Symbol(`aborted-promise-result`),$f=async(e,t)=>{if(!t)return e;if(t.aborted)return Qf;let n=()=>{},r=new Promise(e=>{n=()=>e(Qf)});t.addEventListener(`abort`,n,{once:!0});try{return await Promise.race([e,r])}finally{t.removeEventListener(`abort`,n)}};Na();let ep={status:`cancelled`},tp=e=>({functionName:e.functionName,fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,isServer:e.isServer,isSymbolicated:e.isSymbolicated}),np=async(e,t)=>{let n=await $d(e,{maxLines:t});return{tagName:Ma(e),componentName:n.componentName??n.source?.componentName??void 0,content:`[${n.referenceContext}]`,source:n.source,stackContext:n.stackContext,frames:n.stack.map(tp)}},rp=async(e,t)=>{let n=[...new Set(e)],r=await Promise.all(n.map(e=>np(e,t)));return r.length>0?{content:r.map(e=>e.content).join(`
|
|
22
|
+
`),entries:r}:null},ip=(e,t,n)=>{if(e?.entries)return t===e.content?e.entries:e.entries.length===1?[{...e.entries[0],content:t,commentText:n}]:e.entries.map(e=>({...e,commentText:n}))},ap=async(e,t,n,r)=>{if(e.signal?.aborted||await $f(t.onBeforeCopy(n),e.signal)===Qf)return ep;let i=!1,a=!1,o=``;try{let s=await $f(e.getContent?Promise.resolve(e.getContent(n)).then(e=>({content:e})):rp(n,e.maxContextLines),e.signal);if(s===Qf)return ep;let c=s?.content;if(c?.trim()){let l=await $f(t.transformCopyContent(c,n),e.signal);if(l===Qf)return ep;o=r?`${r}\n${l}`:l,o.trim()&&(a=!0,i=Yf(o,{componentName:e.componentName,entries:ip(s,o,r)}))}}catch(n){if(!a&&e.signal?.aborted)return ep;t.onCopyError(Zf(n))}return!a&&e.signal?.aborted?ep:(i&&t.onCopySuccess(n,o),t.onAfterCopy(n,i),{status:i?`succeeded`:`failed`})};var op,sp=c((()=>{op=e=>{try{return e.contentDocument}catch{return null}}})),cp,lp=c((()=>{er(),nr(),cp=(e,t,n)=>{let r=e.getBoundingClientRect(),i=$n(e),a=tr(r.width,i.width),o=tr(r.height,i.height);return{x:(t-r.left)/a-i.contentOffsetX,y:(n-r.top)/o-i.contentOffsetY}}})),up,dp,fp=c((()=>{lp(),sp(),Xn(),up=(e,t,n)=>{let r=e.elementFromPoint(t,n);for(;r;){let e=r.shadowRoot?.elementFromPoint(t,n);if(e&&e!==r){r=e;continue}if(Yn(r)){let e=op(r);if(!e)return r;let i=cp(r,t,n);return up(e,i.x,i.y)??r}return r}return null},dp=(e,t)=>up(document,e,t)})),pp,mp=c((()=>{J(),Ya(),pp=e=>{let t=e;for(;t;){if(t.hasAttribute(`data-react-grab-ignore`))return!0;t=Ja(t)}return!1}})),hp,gp,_p,vp,yp=c((()=>{cr(),hp=typeof Element<`u`&&typeof Element.prototype.checkVisibility==`function`,gp={checkOpacity:!0,checkVisibilityCSS:!0,opacityProperty:!0,visibilityProperty:!0},_p={checkVisibilityCSS:!0,visibilityProperty:!0},vp=(e,t)=>{if(hp&&!t)return e.checkVisibility(gp)?!0:e.checkVisibility(_p)?sr(e).opacity!==`0`:!1;let n=t??sr(e);return n.display!==`none`&&n.visibility!==`hidden`&&n.opacity!==`0`}})),bp,xp=c((()=>{Na(),bp=e=>{let t=Ma(e);return t===`html`||t===`body`}})),Sp,Cp,wp=c((()=>{Sp=[`data-react-grab`,`data-react-grab-demo`],Cp=e=>Sp.some(t=>e.hasAttribute(t))})),Tp,Ep=c((()=>{wp(),aa(),Tp=e=>{if(Cp(e))return!0;let t=e.getRootNode();return ia(t)&&Cp(t.host)}})),Dp,Op,kp,Ap,jp,Mp,Np=c((()=>{J(),yp(),xp(),cr(),Ep(),mp(),Yi(),Dp=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents===`none`&&e.position===`fixed`&&!isNaN(t)&&t>=2147483600},Op=e=>{let t=e.backgroundColor;return t===`transparent`||t===`rgba(0, 0, 0, 0)`},kp=e=>{let t=e.position;if(t!==`fixed`&&t!==`absolute`)return!1;if(Op(e)||parseFloat(e.opacity)<.1)return!0;let n=parseInt(e.zIndex,10);return!isNaN(n)&&n>1e3},Ap=new WeakMap,jp=()=>{Ap=new WeakMap},Mp=e=>{let t=qi(e);if(t)return t.isConnected();if(bp(e)||Tp(e)||pp(e))return!1;let n=performance.now(),r=Ap.get(e);if(r&&n-r.timestamp<50)return r.isVisible;if(!vp(e))return Ap.set(e,{isVisible:!1,timestamp:n}),!1;if(e.clientWidth/(e.ownerDocument.defaultView?.innerWidth??window.innerWidth)>=.9&&e.clientHeight/(e.ownerDocument.defaultView?.innerHeight??window.innerHeight)>=.9){let t=sr(e);if(Dp(t)||kp(t))return!1}return Ap.set(e,{isVisible:!0,timestamp:n}),!0}})),Pp,Fp=c((()=>{Pp=e=>{if(e===`transparent`)return!0;let t=e.lastIndexOf(`/`);if(t>=0)return Number.parseFloat(e.slice(t+1))===0;if(!e.startsWith(`rgba(`))return!1;let n=e.lastIndexOf(`,`);return n>=0&&Number.parseFloat(e.slice(n+1))===0}})),Ip,Lp=c((()=>{Fp(),Ip=e=>{let t=e.ownerDocument.defaultView?.getComputedStyle?.(e);if(!t)return!1;let n=t.backgroundClip!==`text`&&(t.backgroundImage!==`none`||!Pp(t.backgroundColor)),r=t.borderTopStyle!==`none`&&t.borderTopWidth!==`0px`||t.borderRightStyle!==`none`&&t.borderRightWidth!==`0px`||t.borderBottomStyle!==`none`&&t.borderBottomWidth!==`0px`||t.borderLeftStyle!==`none`&&t.borderLeftWidth!==`0px`;return n||r||t.boxShadow!==`none`||t.outlineStyle!==`none`}})),Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp=c((()=>{J(),or(),Lp(),Kn(),Jn(),Rp=new Set([`A`,`AUDIO`,`BUTTON`,`CANVAS`,`DETAILS`,`EMBED`,`IFRAME`,`IMG`,`INPUT`,`METER`,`OBJECT`,`OPTION`,`PROGRESS`,`SELECT`,`SUMMARY`,`SVG`,`TEXTAREA`,`VIDEO`]),zp=new Set([`button`,`checkbox`,`combobox`,`gridcell`,`link`,`listbox`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`scrollbar`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`,`treeitem`]),Bp=new Set(`A.ABBR.B.BDI.BDO.BR.CITE.CODE.DATA.DEL.DFN.EM.I.INS.KBD.MARK.Q.S.SAMP.SMALL.SPAN.STRONG.SUB.SUP.TIME.U.VAR.WBR`.split(`.`)),Vp=new WeakMap,Hp=new WeakMap,Up=()=>{Vp=new WeakMap,Hp=new WeakMap},Wp=(e,t,n)=>(Vp.set(e,t),Hp.set(e,n),t),Gp=e=>Rp.has(e.tagName)||zp.has(e.getAttribute(`role`)??``)||qn(e)&&e.isContentEditable,Kp=e=>{let t=performance.now(),n=Hp.get(e);if(n!==void 0&&t-n<16)return Vp.get(e)??null;if(Gp(e)||e.childNodes.length>64)return Wp(e,null,t);let r=[],i=[],a=0;for(let t=e.childNodes.length-1;t>=0;--t)i.push(e.childNodes[t]);for(;i.length>0;){if(a+=1,a>64)return Wp(e,null,t);let n=i.pop();if(n){if(n.nodeType===Node.TEXT_NODE){if(n.textContent?.trim()&&(r.push(n),r.length>32))return Wp(e,null,t);continue}if(!Gn(n)||!Bp.has(n.tagName)||a+i.length+n.childNodes.length>64)return Wp(e,null,t);for(let e=n.childNodes.length-1;e>=0;--e)i.push(n.childNodes[e])}}if(r.length===0||Ip(e))return Wp(e,null,t);try{let n=e.ownerDocument.createRange(),i=ar(e.ownerDocument.defaultView,0,0),a=[];for(let o of r){n.selectNodeContents(o);let r=n.getClientRects();if(a.length+r.length>64)return Wp(e,null,t);for(let e=0;e<r.length;e+=1){let t=r[e],n=t.width*i.scaleX,o=t.height*i.scaleY;!Number.isFinite(t.left)||!Number.isFinite(t.top)||!Number.isFinite(n)||!Number.isFinite(o)||n<=0||o<=0||a.push({borderRadius:`0px`,height:o,width:n,x:i.x+t.left*i.scaleX,y:i.y+t.top*i.scaleY})}}return Wp(e,a.length>0?a:null,t)}catch{return Wp(e,null,t)}}})),Jp,Yp=c((()=>{qp(),Jp=(e,t,n)=>{let r=Kp(e);if(!r)return!0;for(let e of r)if(t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height)return!0;return!1}})),Xp,Zp,Qp=c((()=>{lp(),sp(),Xn(),mp(),Np(),Yp(),ro(),Xp=(e,t,n,r,i)=>{let a=!0;for(let o of e.elementsFromPoint(t,n)){if(pp(o)&&(a=!1),!to(o))continue;let s=o.shadowRoot;if(a&&s&&s!==e){let e=Xp(s,t,n,r,i);if(e)return e}if(a&&Yn(o)){let e=op(o);if(e){let a=cp(o,t,n),s=Xp(e,a.x,a.y,r,i);if(s)return s}}if(Mp(o)&&Jp(o,r,i))return o}return null},Zp=(e,t)=>Xp(document,e,t,e,t)})),$p,em,tm=c((()=>{lp(),sp(),Xn(),mp(),$p=(e,t,n,r)=>{let i=e.elementsFromPoint(t,n),a=!0;for(let o of i){if(pp(o)&&(a=!1),a&&o.shadowRoot&&o.shadowRoot!==e&&$p(o.shadowRoot,t,n,r),a&&Yn(o)){let e=op(o);if(e){let i=cp(o,t,n);$p(e,i.x,i.y,r)}}r.add(o)}},em=(e,t)=>{let n=new Set;return $p(document,e,t,n),[...n]}})),nm,rm=c((()=>{lp(),ir(),Xn(),nm=(e,t,n)=>{let r=[],i=e;for(;i&&i!==window;){let e=rr(i);if(!e||!Yn(e))break;r.push(e),i=e.ownerDocument.defaultView}let a=t,o=n;for(let e=r.length-1;e>=0;--e){let t=cp(r[e],a,o);a=t.x,o=t.y}return{x:a,y:o}}})),im,am,om,sm,cm=c((()=>{rm(),cr(),Kn(),xp(),aa(),im=`http://www.w3.org/2000/svg`,am=e=>{if(e.localName===`svg`)return e;let t=e,n=e.parentElement;for(;n?.namespaceURI===im&&(t=n,n.localName!==`svg`);)n=n.parentElement;return t},om=(e,t,n,r)=>{if(typeof e.caretPositionFromPoint==`function`){let i=e.caretPositionFromPoint(t,n,{shadowRoots:r?[r]:[]});if(i)return i.offsetNode}return typeof e.caretRangeFromPoint==`function`?e.caretRangeFromPoint(t,n)?.startContainer??null:null},sm=(e,t,n)=>{if(bp(e))return null;let r=e.ownerDocument,i=r.defaultView;if(!i)return null;let a=nm(i,t,n),o=e.getRootNode(),s=om(r,a.x,a.y,ia(o)?o:null);if(!s)return null;let c=Gn(s)?s:s.parentElement;if(!c||c===e)return null;let l=e.namespaceURI===im;return!(l?am(e):e).contains(c)||!l&&sr(c).pointerEvents!==`none`?null:c}})),lm,um=c((()=>{lm=(e,t,n)=>e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom})),dm,fm=c((()=>{Ha(),Ga(),dm=(e,t,n=document)=>{let r=n.createElement(`style`);r.setAttribute(e,``);let i=Va(n);return i&&(r.nonce=i),Wa(r),r.textContent=t,n.head.appendChild(r),r}})),pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em=c((()=>{J(),fm(),pm=`html { pointer-events: none !important; }
|
|
23
|
+
iframe[${Mn}] { pointer-events: auto !important; }`,mm=`html, body { pointer-events: auto !important; }`,hm=new Set,gm=new Map,_m=!1,vm=e=>{if(gm.has(e))return;let t=dm(`data-react-grab-frozen-pseudo`,pm,e),n=dm(`data-react-grab-hittest-override`,mm,e);n.disabled=!0,gm.set(e,{pointerEventsStyle:t,hitTestOverrideStyle:n})},ym=e=>{let t=gm.get(e);t&&(t.pointerEventsStyle.remove(),t.hitTestOverrideStyle.remove(),gm.delete(e))},bm=()=>_m,xm=e=>(hm.add(e),_m&&vm(e),()=>{hm.delete(e),ym(e)}),Sm=()=>{if(!_m){_m=!0,hm.add(document);for(let e of hm)vm(e)}},Cm=()=>{if(_m){_m=!1;for(let e of[...gm.keys()])ym(e)}},wm=()=>{if(_m)for(let e of gm.values())e.pointerEventsStyle.disabled||(e.pointerEventsStyle.disabled=!0),e.hitTestOverrideStyle.disabled&&(e.hitTestOverrideStyle.disabled=!1)},Tm=()=>{if(_m)for(let e of gm.values())e.pointerEventsStyle.disabled&&(e.pointerEventsStyle.disabled=!1),e.hitTestOverrideStyle.disabled||(e.hitTestOverrideStyle.disabled=!0)}})),Dm,Om=c((()=>{Dm=(e,t)=>{if(e.length!==0)throw e.length===1?e[0]:AggregateError(e,t)}})),km,Am,jm,Mm,Nm,Pm,Fm,Im=c((()=>{ro(),Om(),km=new Set,Am=new Set,jm=!1,Mm=(e,t)=>{if(Am.has(e))try{e.unfreeze()}catch(e){t.push(e)}finally{Am.delete(e)}},Nm=e=>{km.add(e);try{jm&&e.isConnected()&&(e.freeze(),Am.add(e))}catch(t){throw km.delete(e),t}return()=>{let t=[];Mm(e,t),km.delete(e),Dm(t,`Unregistering renderer freeze failed`)}},Pm=()=>{if(!jm){jm=!0;try{for(let e of km)e.isConnected()&&(e.freeze(),Am.add(e))}catch(e){jm=!1;let t=[];for(let e of[...Am].reverse())Mm(e,t);throw t.length===0?e:AggregateError([e,...t],`Rolling back renderer freeze failed`)}}},Fm=()=>{if(!jm)return;jm=!1;let e=[];for(let t of[...Am].reverse())Mm(t,e);Dm(e,`Unfreezing renderers failed`)}})),Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh=c((()=>{Wi(),J(),ea(),Im(),Yi(),Lm=new WeakMap,Rm=new WeakMap,zm=new WeakMap,Bm=new WeakMap,Vm=new WeakMap,Hm=[`name`,`position`,`rotation`,`scale`,`color`,`visible`,`args`],Um=e=>typeof e==`object`&&!!e,Wm=e=>typeof e==`object`&&!!e||typeof e==`function`,Gm=(e,t)=>typeof e[t]==`function`,Km=e=>Um(e)&&typeof e.x==`number`&&typeof e.y==`number`&&typeof e.z==`number`&&Gm(e,`set`)&&Gm(e,`clone`)&&Gm(e,`applyMatrix4`)&&Gm(e,`project`),qm=e=>Um(e)&&Gm(e,`clone`)&&Gm(e,`premultiply`),Jm=e=>Um(e)&&`boundingBox`in e&&Gm(e,`computeBoundingBox`),Ym=e=>Um(e)&&typeof e.type==`string`&&Um(e.props)&&Xm(e.object),Xm=e=>Um(e)&&e.isObject3D===!0&&typeof e.uuid==`string`&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.visible==`boolean`&&qm(e.matrixWorld)&&Gm(e,`updateWorldMatrix`),Zm=e=>Um(e)&&e.isCamera===!0,Qm=e=>Xm(e)&&e.isScene===!0&&Array.isArray(e.children),$m=e=>Um(e)&&typeof e.tagName==`string`&&e.tagName.toLowerCase()===`canvas`&&Gm(e,`getContext`),eh=e=>Um(e)&&$m(e.domElement),th=e=>Um(e)&&Gm(e,`set`),nh=e=>Um(e)&&Gm(e,`setFromCamera`)&&Gm(e,`intersectObjects`),rh=e=>Um(e)&&eh(e.gl)&&Qm(e.scene)&&Zm(e.camera)&&nh(e.raycaster)&&th(e.pointer),ih=e=>e===`always`||e===`demand`||e===`never`,ah=e=>Um(e)&&typeof e.elapsedTime==`number`,oh=(e,t)=>{let n=e.getState();if(typeof n.setFrameloop!=`function`)return;let r=ah(n.clock)?n.clock.elapsedTime:null;n.setFrameloop(t);let i=e.getState().clock;r!==null&&ah(i)&&(i.elapsedTime=r)},sh=e=>{if(Bm.has(e))return;let t=null,n=Nm({freeze:()=>{let n=zm.get(e);if(!n)return;let r=n.getState();if(ih(r.frameloop)&&typeof r.setFrameloop==`function`){let e=r.frameloop;oh(n,`never`),t=()=>oh(n,e)}},isConnected:()=>e.isConnected,unfreeze:()=>{t?.(),t=null}});Bm.set(e,n)},ch=e=>{let t=Bm.get(e);t&&(Bm.delete(e),t())},lh=e=>Ym(e.__r3f)?e.__r3f:null,uh=e=>{let t=e.current.stateNode;if(!Um(t)||!Wm(t.containerInfo))return null;let n=t.containerInfo,r=Reflect.get(n,`getState`);if(typeof r!=`function`)return null;let i=Reflect.apply(r,n,[]);return rh(i)?()=>{let e=Reflect.apply(r,n,[]);return rh(e)?e:i}:null},dh=e=>{let t=Vm.get(e);t&&(Vm.delete(e),zm.get(t.canvas)===t.root&&(zm.delete(t.canvas),ch(t.canvas)))},fh=e=>{let t=uh(e);if(!t){dh(e);return}let n=t().gl.domElement;if(!n.isConnected||!e.current.child){dh(e);return}let r=Vm.get(e);r&&r.canvas!==n&&(dh(e),r=void 0),r?(r.root.getState=t,r.root.selectableObjects=null):(r={canvas:n,root:{getState:t,selectableObjects:null}},Vm.set(e,r)),zm.set(n,r.root),sh(n)},Fi({name:`react-grab-three-selection`,onCommitFiberRoot:(e,t)=>fh(t)}),ph=e=>{let t=e;for(;t;){if(lh(t))return t;t=t.parent}return null},mh=e=>{let t=e;for(;t;){let e=lh(t);if(e&&typeof e.eventCount==`number`&&e.eventCount>0)return!0;t=t.parent}return!1},hh=(e,t)=>{let n=e;for(;n;){if(n===t)return!0;n=n.parent}return!1},gh=e=>{let t=e;for(;t;){if(!t.visible)return!1;t=t.parent}return!0},_h=e=>!!lh(e)&&(Jm(e.geometry)||e.type.toLowerCase()===`sprite`),vh=e=>e.isInstancedMesh!==!0||typeof e.count!=`number`||!Number.isInteger(e.count)||e.count<=0||!e.getMatrixAt?0:e.count,yh=(e,t,n,r)=>{try{let i={object:n};r!==void 0&&(i.instanceId=r);let a=bh(t,n,i);a&&e.push(a)}catch{}},bh=(e,t,n)=>{let r=typeof n.instanceId==`number`&&Number.isInteger(n.instanceId)?n.instanceId:null,i=Lm.get(t);i||(i=new Map,Lm.set(t,i));let a=i.get(r);if(a)return a.canvas=e.gl.domElement,a.intersectionPoint=Km(n.point)?n.point:null,a.object=t,a.rootState=e,a.element;let o=lh(t),s=o?Hi(o):null;if(o&&!s)return null;let c=(o?.type||t.type||`object-3d`).toLowerCase(),l=e.gl.domElement.ownerDocument.createElement(c),u={canvas:e.gl.domElement,element:l,fiber:s,instance:o,instanceId:r,intersectionPoint:Km(n.point)?n.point:null,object:t,rootState:e,tagName:c},d=l.getBoundingClientRect.bind(l);return l.getBoundingClientRect=()=>{let e=jh(u),t=l.ownerDocument.defaultView?.DOMRect;return t?new t(e.x,e.y,e.width,e.height):d()},Ki(l,{hostElement:u.canvas,supportsDomEditing:!1,getBounds:()=>jh(u),getFiber:()=>u.fiber?xi(u.fiber):null,getPreview:()=>wh(u),getSelector:()=>Th(u),getTagName:()=>u.tagName,isConnected:()=>u.canvas.isConnected&&hh(u.object,u.rootState.scene)}),i.set(r,u),Rm.set(l,u),l},xh=(e,t,n)=>{if(!$m(e))return e;let r=zm.get(e);if(!r)return e;try{let i=r.getState(),a=Y(e);if(a.width<=0||a.height<=0)return e;let o=(t-a.x)/a.width*2-1,s=-((n-a.y)/a.height)*2+1;if(o<-1||o>1||s<-1||s>1)return e;i.pointer.set(o,s),i.raycaster.setFromCamera(i.pointer,i.camera);let c=i.raycaster.intersectObjects(i.scene.children,!0);for(let e of c){if(!mh(e.object))continue;let t=ph(e.object);if(!t||t.visible===!1)continue;let n=bh(i,t,e);if(n)return n}for(let e of c){let t=ph(e.object);if(!t||t.visible===!1)continue;let n=bh(i,t,e);if(n)return n}}catch{}return e},Sh=(e,t)=>{if(!$m(e))return[];let n=zm.get(e);if(!n)return[];try{let e=n.getState(),r=t?Rm.get(t):null;if(!n.selectableObjects){let t=[],r=[...e.scene.children];for(let e=0;e<r.length;e+=1){let n=r[e];if(n.children)for(let e of n.children)r.push(e);_h(n)&&t.push(n)}n.selectableObjects=t}let i=[];for(let t of n.selectableObjects){if(!gh(t)||!hh(t,e.scene)||t.isInstancedMesh===!0&&t.count===0)continue;let n=vh(t);if(n>0&&n<=512){for(let r=0;r<n;r+=1)yh(i,e,t,r);continue}if(n>512&&r?.object===t&&r.instanceId!==null){i.push(r.element);continue}yh(i,e,t)}return i}catch{return[]}},Ch=e=>typeof e==`string`?JSON.stringify(e):typeof e==`number`||typeof e==`boolean`?`{${String(e)}}`:Array.isArray(e)&&e.length<=4&&e.every(e=>typeof e==`number`||typeof e==`string`)?`{${JSON.stringify(e)}}`:null,wh=e=>{let t=e.instance?.props??{},n=[];for(let r of Hm){let i=t[r];r===`name`&&i===void 0&&e.object.name&&(i=e.object.name);let a=Ch(i);a&&n.push(`${r}=${a}`)}return e.instanceId!==null&&n.push(`instanceId={${e.instanceId}}`),`<${e.tagName}${n.length>0?` ${n.join(` `)}`:``} />`},Th=e=>{if(e.object.name)return`${e.tagName}[name=${JSON.stringify(e.object.name)}]`;let t=e.instanceId===null?``:`:${e.instanceId}`;return`${e.tagName}[uuid=${JSON.stringify(`${e.object.uuid}${t}`)}]`},Eh=e=>{e.object.updateWorldMatrix(!0,!1);let t=e.object.matrixWorld.clone();if(e.instanceId===null||!e.object.getMatrixAt)return t;let n=e.object.matrixWorld.clone();return e.object.getMatrixAt(e.instanceId,n),n.premultiply(t)},Dh=e=>{if(!Jm(e.geometry))return null;if(!e.geometry.boundingBox)try{e.geometry.computeBoundingBox()}catch{return null}let t=e.geometry.boundingBox;return!t||!Km(t.min)||!Km(t.max)?null:t},Oh=e=>{if(e.isInstancedMesh!==!0||typeof e.computeBoundingBox!=`function`)return null;if(!e.boundingBox)try{e.computeBoundingBox()}catch{return null}let t=e.boundingBox;return!t||!Km(t.min)||!Km(t.max)?null:t},kh=e=>e.instanceId===null?Oh(e.object)??Dh(e.object):Dh(e.object),Ah=(e,t)=>{let n=t.x+t.width/2,r=t.y+t.height/2;try{let i=e.intersectionPoint?e.intersectionPoint.clone():Km(e.object.position)?e.object.position.clone().set(0,0,0).applyMatrix4(Eh(e)):null;i&&(i.project(e.rootState.camera),Number.isFinite(i.x)&&Number.isFinite(i.y)&&(n=t.x+(i.x+1)/2*t.width,r=t.y+(1-i.y)/2*t.height))}catch{}return{x:n-16/2,y:r-16/2,width:16,height:16,borderRadius:`0px`}},jh=e=>{let t=Y(e.canvas);try{let n=kh(e);if(!n)return Ah(e,t);let r=Eh(e),i=[n.min.x,n.max.x],a=[n.min.y,n.max.y],o=[n.min.z,n.max.z],s=1/0,c=1/0,l=-1/0,u=-1/0,d=n.min.clone();for(let n of i)for(let i of a)for(let a of o){if(d.set(n,i,a).applyMatrix4(r).project(e.rootState.camera),!Number.isFinite(d.x)||!Number.isFinite(d.y))continue;let o=t.x+(d.x+1)/2*t.width,f=t.y+(1-d.y)/2*t.height;s=Math.min(s,o),c=Math.min(c,f),l=Math.max(l,o),u=Math.max(u,f)}if(!Number.isFinite(s)||!Number.isFinite(c)||!Number.isFinite(l)||!Number.isFinite(u))return Ah(e,t);let f=Math.max(t.x,s),p=Math.max(t.y,c),m=Math.min(t.x+t.width,l),h=Math.min(t.y+t.height,u);return m<=f||h<=p?Ah(e,t):{x:f,y:p,width:m-f,height:h-p,borderRadius:`0px`}}catch{return Ah(e,t)}}})),Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh=c((()=>{J(),ea(),sp(),fp(),Qp(),tm(),Ya(),qp(),cm(),ro(),Xn(),um(),Yp(),Np(),Em(),Mh(),Nh=null,Ph=null,Fh=null,Ih=()=>{Fh!==null&&clearTimeout(Fh),Fh=setTimeout(()=>{Fh=null,Tm()},100)},Lh=()=>{Fh!==null&&(clearTimeout(Fh),Fh=null)},Rh=(e,t,n,r)=>{let i=Math.abs(e-n),a=Math.abs(t-r);return i<=2&&a<=2},zh=(e,t,n)=>{let r=xh(e,t,n);return Mp(r)&&to(e)&&Jp(e,t,n)?r:null},Bh=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return[];Lh(),wm();try{let n=em(e,t),r=eo()?n.filter(to):n,i=[],a=new Set,o=!1;for(let n of r){let r=n,s=Jp(n,e,t);if(!o){let i=sm(n,e,t);i&&to(i)&&Mp(i)&&Jp(i,e,t)?(r=i,s=!0,o=!0):Mp(n)&&s&&(o=!0)}let c=xh(r,e,t);if(s&&!a.has(c)&&(a.add(c),i.push(c)),r===n)continue;let l=Ja(r);for(;l&&to(l);){let n=xh(l,e,t);Jp(l,e,t)&&!a.has(n)&&(a.add(n),i.push(n)),l=Ja(l)}break}return i}finally{Ih()}},Vh=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return null;let n=performance.now();if(Ph){let r=Ph.element,i=n-Ph.timestamp<16;if(r.isConnected&&i&&lm(e,t,Ph.bounds)&&!op(r))return r;Ph=null,Nh?.element===r&&(Nh=null)}if(Nh){let r=Rh(e,t,Nh.clientX,Nh.clientY),i=n-Nh.timestamp<16;if(r&&i){if(!Nh.preciseHitElement)return Nh.element;let n=sm(Nh.preciseHitElement,e,t);if(n){let r=zh(n,e,t);if(r)return r}return Nh.usesTextHitTesting?zh(Nh.preciseHitElement,e,t)??Zp(e,t):Nh.fallbackElement}}Lh(),wm();try{let r=null,i=dp(e,t),a=i?Kp(i)!==null:!1,o=i?sm(i,e,t):null,s=o?zh(o,e,t):null,c=(i?zh(i,e,t):null)??Zp(e,t);if(r=s??c,r&&Yn(r)&&!op(r)){let e=Y(r);Ph={element:r,timestamp:n,bounds:{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height}}}else Ph=null;return Nh={clientX:e,clientY:t,element:r,fallbackElement:c,preciseHitElement:i?.namespaceURI===`http://www.w3.org/2000/svg`||o||a?i:null,usesTextHitTesting:a,timestamp:n},r}finally{Ih()}},Hh=()=>{Lh(),Tm(),Nh=null,Ph=null}})),Wh,Gh=c((()=>{Wh=(e,t,n)=>Math.max(t,Math.min(e,n))}));Uh(),Gh(),qa(),aa(),ir();let Kh=e=>{let t=[],n=e;for(;n;){t.unshift(n);let e=n.getRootNode();if(ia(e)){n=e.host;continue}if(!Ka(e))break;n=rr(e.defaultView)}return t},qh=(e,t)=>{if(e===t)return 0;let n=Kh(e),r=Kh(t),i=Math.min(n.length,r.length);for(let e=0;e<i;e+=1){let t=n[e],i=r[e];if(t===i)continue;let a=t.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}return n.length-r.length};Em(),J(),xp(),ro(),tm(),cm(),ea(),qp(),Ya(),sp(),Xn(),aa(),Mh();let Jh=e=>e.sort(qh),Yh=e=>Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.width)&&Number.isFinite(e.height)&&e.width>0&&e.height>0,Xh=(e,t)=>e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y,Zh=(e,t,n,r)=>{let i=[...e].filter(e=>!r.has(e)),a=i.filter(e=>e.tagName===`TR`),o=0;for(let t=0;t<i.length&&o<64;t+=1){let n=Ja(i[t]);!n||n.tagName!==`TR`||e.has(n)||(o+=1,e.add(n),i.push(n),a.push(n))}let s=s=>{if(!s||e.has(s)||r.has(s)||o>=64)return;o+=1;let c=n.get(s);c||(c=Y(s),n.set(s,c)),!(!Yh(c)||!Xh(c,t))&&(e.add(s),i.push(s),s.tagName===`TR`&&a.push(s))},c=e=>{if(!(e.length>32))for(let t of e){if(o>=64)return;s(t)}};for(let e=0;e<a.length&&o<64;e+=1){let t=a[e];s(t.previousElementSibling),s(t.nextElementSibling)}for(let e=0;e<i.length&&o<64;e+=1){let t=i[e];if(bp(t))continue;let n=t.parentElement?.children.length??0;(t.tagName===`TR`||n<=32)&&(s(t.previousElementSibling),s(t.nextElementSibling)),c(t.children),t.shadowRoot&&c(t.shadowRoot.children)}},Qh=(e,t)=>{if(e.width<=0||e.height<=0)return[];let n=Math.max(1,Math.round(window.innerWidth)),r=Math.max(1,Math.round(window.innerHeight)),i=e.x,a=e.y,o=e.x+e.width,s=e.y+e.height,c=i+e.width/2,l=a+e.height/2,u=Wh(Math.ceil(e.width/32),3,20),d=Wh(Math.ceil(e.height/32),3,20),f=u*d,p=f>100?Math.sqrt(100/f):1,m=Wh(Math.floor(u*p),3,20),h=Wh(Math.floor(d*p),3,20),g=new Set,_=[],v=(e,t)=>{let i=Wh(Math.round(e),0,n-1),a=Wh(Math.round(t),0,r-1),o=a*n+i;g.has(o)||(g.add(o),_.push(i,a))};v(t.x,t.y),v(i+1,a+1),v(o-1,a+1),v(i+1,s-1),v(o-1,s-1),v(c,a+1),v(c,s-1),v(i+1,l),v(o-1,l),v(c,l);for(let t=0;t<m;t+=1){let n=i+(t+.5)/m*e.width;for(let t=0;t<h;t+=1)v(n,a+(t+.5)/h*e.height)}return _},$h=(e,t,n)=>{let r=e.x,i=e.y,a=e.x+e.width,o=e.y+e.height,s=new Set,c=new Map,l=new Map,u=new Set,d=new Set,f=new Set,p=Qh(e,t),m=e=>{let t=l.get(e);if(t!==void 0)return t;let r=n(e);return l.set(e,r),r};wm();try{for(let e=0;e<p.length;e+=2){let t=em(p[e],p[e+1]);for(let n of t){if(n.tagName===`CANVAS`){if(d.has(n))continue;if(u.has(n)){s.add(n);continue}u.add(n);let t=n;if(e===0)try{t=xh(n,p[e],p[e+1])}catch{}let r=Sh(n,t);if(r.length>0||t!==n){d.add(n);for(let e of r)s.add(e);t!==n&&s.add(t);continue}}s.add(n)}let n=!1;for(let r of t){let t=r;if(e===0&&!n){let n=sm(r,p[e],p[e+1]);n&&m(n)&&(s.add(n),n!==r&&f.add(r),t=n)}if(m(t)){if(!n){n=!0;continue}f.add(t)}}}}finally{Tm()}for(let e of d)s.delete(e);Zh(s,e,c,d);let h=[],g=null,_=1/0,v=1/0,y=window.innerWidth,b=window.innerHeight,ee=y>0&&b>0,x=y*Fn,S=b*Fn;for(let e of s){if(Yn(e)&&op(e)||bp(e)||!to(e)||!m(e))continue;let n=c.get(e)??Y(e);if(!Yh(n))continue;let s=n.x,l=n.y,u=s+n.width,d=l+n.height;if(ee&&n.width>=x&&n.height>=S&&Math.min(y,u)-Math.max(0,s)>=x&&Math.min(b,d)-Math.max(0,l)>=S)continue;let p=Math.max(0,Math.min(a,u)-Math.max(r,s)),C=Math.max(0,Math.min(o,d)-Math.max(i,l)),te=n.width*n.height;if(p<=0||C<=0||te<=0)continue;let w=Kp(e),T=0,ne=0,E=1/0;if(w)for(let e of w){let n=e.x,s=e.y,c=n+e.width,l=s+e.height,u=Math.max(0,Math.min(a,c)-Math.max(r,n)),d=Math.max(0,Math.min(o,l)-Math.max(i,s));T+=u*d,ne+=e.width*e.height;let f=Math.max(n-t.x,0,t.x-c),p=Math.max(s-t.y,0,t.y-l),m=f*f+p*p;E=Math.min(E,m)}else{T=p*C;let e=Math.max(s-t.x,0,t.x-u),n=Math.max(l-t.y,0,t.y-d);E=e*e+n*n}if(T<=0)continue;let D=w&&!f.has(e)?ne:te;if(T/D>=.75){h.push(e);continue}(E<_||E===_&&te<v)&&(g=e,_=E,v=te)}return h.length>0?Jh(h):g?[g]:[]},eg=e=>{let t=new Set(e),n=[];for(let r=e.length-1;r>=0;--r){let i=e[r];if(!t.has(i))continue;let a=i,o=Ja(a),s=!1;for(;o;){let e=a.getRootNode();if(t.has(o)&&ia(e)&&e.host===o)t.delete(o);else if(t.has(o)){s=!0;break}a=o,o=Ja(a)}s||n.push(i)}return n.reverse()},tg=(e,t,n)=>eg($h(e,t,n));J(),Gh();let ng=(e,t)=>e.width<=0?0:Wh((t.x-e.x)/e.width,0,1);ea(),qp();let rg=()=>{Qi(),Up(),Hh()},ig=e=>({borderRadius:`0px`,height:e.height,width:e.width,x:e.pageX-window.scrollX,y:e.pageY-window.scrollY}),ag=e=>({pageX:e.x+window.scrollX,pageY:e.y+window.scrollY,width:e.width,height:e.height}),og=e=>({borderRadius:`0px`,height:e.height,width:e.width,x:e.x,y:e.y});J(),Ya();let sg=(e,t,n)=>{let r=(e,t,n,r)=>{let i=[],a=e,o=0;for(;a&&i.length<n&&o<100;)r(a)&&i.push(a),a=t(a),o+=1;return i},i=r(Ja(e),Ja,6,t);i.reverse();let a=i.map((e,t)=>({element:e,depth:t,isLast:!0})),o=i.length,s=r(e.previousElementSibling,e=>e.previousElementSibling,7,n),c=r(e.nextElementSibling,e=>e.nextElementSibling,7,n),l=Math.min(s.length,Math.max(3,7-c.length)),u=Math.min(c.length,7-l),d=[...s.slice(0,l).reverse(),e,...c.slice(0,u)],f=r(e.firstElementChild,e=>e.nextElementSibling,6,t),p=d.length-1,m=f.length-1;return d.forEach((t,n)=>{a.push({element:t,depth:o,isLast:n===p}),t===e&&f.forEach((e,t)=>{a.push({element:e,depth:o+1,isLast:t===m})})}),a};J();let cg=e=>e.namespaceURI===`http://www.w3.org/2000/svg`&&e.tagName!==`svg`,lg=e=>{let t=e.getBoundingClientRect();return t.width>=16||t.height>=16},ug=(e,t)=>t(e)&&!cg(e)&&lg(e);J();let dg=e=>e===`edit`?Ln:e,fg=new Set([`c`,`C`,`с`,`С`,`ȼ`,`Ȼ`,`ↄ`,`Ↄ`,`ᴄ`,`ᶜ`,`ⱼ`,`ⅽ`,`Ⅽ`,`ç`,`Ç`,`ć`,`Ć`,`č`,`Č`,`ĉ`,`Ĉ`,`ċ`,`Ċ`]),pg=(e,t)=>t===`KeyC`?!0:!e||e.length!==1?!1:fg.has(e);var mg,hg,gg,_g=c((()=>{mg=null,hg=()=>{if(typeof navigator>`u`||!(`userAgentData`in navigator))return null;let e=navigator.userAgentData;if(typeof e!=`object`||!e||!(`platform`in e))return null;let t=e.platform;return typeof t==`string`?t:null},gg=()=>{if(mg===null){if(typeof navigator>`u`)return mg=!1,mg;let e=navigator.platform??hg()??navigator.userAgent;mg=/Mac|iPhone|iPad|iPod/i.test(e)}return mg}}));_g();let vg=(e,t)=>{if(!e||!t)return!1;let n=e.toLowerCase();return t===`Space`?n===`space`||n===` `:t.startsWith(`Key`)?t.slice(3).toLowerCase()===n:t.startsWith(`Digit`)?t.slice(5)===n:!1},yg={meta:`metaKey`,cmd:`metaKey`,command:`metaKey`,win:`metaKey`,windows:`metaKey`,ctrl:`ctrlKey`,control:`ctrlKey`,shift:`shiftKey`,alt:`altKey`,option:`altKey`,opt:`altKey`},bg=e=>{let t=e.split(`+`).map(e=>e.trim().toLowerCase()),n={metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1,key:null};for(let e of t){let t=yg[e];t?n[t]=!0:n.key=e}return n},xg=e=>{if(typeof e==`function`)return t=>{try{return e(t)}catch{return!1}};let t=bg(e),n=t.key;return e=>{if(n===null){let n=t.metaKey?e.metaKey||e.key===`Meta`:!0,r=t.ctrlKey?e.ctrlKey||e.key===`Control`:!0,i=t.shiftKey?e.shiftKey||e.key===`Shift`:!0,a=t.altKey?e.altKey||e.key===`Alt`:!0,o=n&&r&&i&&a,s=[t.metaKey,t.ctrlKey,t.shiftKey,t.altKey].filter(Boolean).length,c=[e.metaKey||e.key===`Meta`,e.ctrlKey||e.key===`Control`,e.shiftKey||e.key===`Shift`,e.altKey||e.key===`Alt`].filter(Boolean).length;return o&&c>=s}let r=e.key?.toLowerCase()===n||vg(n,e.code),i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?(t.metaKey?e.metaKey:!0)&&(t.ctrlKey?e.ctrlKey:!0)&&(t.shiftKey?e.shiftKey:!0)&&(t.altKey?e.altKey:!0):!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey;return r&&i}},Sg=e=>!e||typeof e==`function`?{metaKey:gg(),ctrlKey:!gg(),shiftKey:!1,altKey:!1,key:null}:bg(e);_g();let Cg=(e,t)=>{if(t.activationKey)return xg(t.activationKey)(e);let n=(gg()?e.metaKey:e.ctrlKey)&&!e.shiftKey&&!e.altKey;return!!(e.key&&n&&pg(e.key,e.code))};var wg,Tg=c((()=>{Jn(),wg=(e,t)=>{try{return e.composedPath().some(e=>qn(e)&&e.hasAttribute(t))}catch{return!1}}}));Tg(),ja();let Eg=async(e,t)=>{let n=vu(),r=new URLSearchParams({file:e}),i=n?`line1`:`line`,a=n?`column1`:`column`;t&&r.set(i,String(t)),r.set(a,`1`);let o=n?`${xu()}/__nextjs_launch-editor`:`/__open-in-editor`;return(await fetch(`${o}?${r}`)).ok},Dg=async(e,t,n)=>{try{let r=tl(e);if(await Eg(r,t).catch(()=>!1))return;let i=t?`&line=${t}`:``,a=`https://react-grab.com/open-file?url=${encodeURIComponent(r)}${i}`,o=n?n(a,r,t):a;window.open(o,`_blank`,`noopener,noreferrer`)}catch(n){throw n instanceof xa?n:new xa(e,t,n)}};var Z,Og=c((()=>{Z=e=>{console.warn(`[react-grab]`,e)}}));ja(),Og();let kg=(e,t,n)=>{Z(e instanceof xa?e:new xa(t,n,e))},Ag=(e,t,n)=>{try{if(n.onOpenFile(e,t))return;Dg(e,t,n.transformOpenFileUrl).catch(n=>{kg(n,e,t)})}catch(n){kg(n,e,t)}},jg=e=>{if(e.length===0)return{x:0,y:0,width:0,height:0};if(e.length===1)return e[0];let t=1/0,n=1/0,r=-1/0,i=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height);return{x:t,y:n,width:r-t,height:i-n}},Mg={enabled:!0,hue:0,selectionBox:{enabled:!0},dragBox:{enabled:!0},grabbedBoxes:{enabled:!0},elementLabel:{enabled:!0},toolbar:{enabled:!0}},Ng=(e,t)=>({enabled:t.enabled??e.enabled,hue:t.hue??e.hue,selectionBox:{enabled:t.selectionBox?.enabled??e.selectionBox.enabled},dragBox:{enabled:t.dragBox?.enabled??e.dragBox.enabled},grabbedBoxes:{enabled:t.grabbedBoxes?.enabled??e.grabbedBoxes.enabled},elementLabel:{enabled:t.elementLabel?.enabled??e.elementLabel.enabled},toolbar:{enabled:t.toolbar?.enabled??e.toolbar.enabled}});R(),J(),ja(),Og();let Pg={activationMode:`toggle`,keyHoldDuration:100,allowActivationInsideInput:!0,activationKey:void 0,getContent:void 0,maxContextLines:3,freezeReactUpdates:!0},Fg=(e={})=>{let t=new Map,n=[],r={},i=!1,[a,o]=Gt({theme:Mg,options:{...Pg,...e},actions:[]}),s=t=>{let n=Mg,r={...Pg,...e},i=[];for(let{config:e}of t)if(e.theme&&(n=Ng(n,e.theme)),e.options&&(r={...r,...e.options}),e.actions)for(let t of e.actions)i.push(t);return{theme:n,options:r,actions:i}},c=e=>{o(`theme`,e.theme),o(`options`,{...e.options,...r}),o(`actions`,e.actions)},l=()=>{c(s(n))},u=(e,t)=>{r[e]=t,o(`options`,e,()=>t)},d=[`activationMode`,`keyHoldDuration`,`allowActivationInsideInput`,`activationKey`,`getContent`,`maxContextLines`,`freezeReactUpdates`],f=e=>{if(!i)for(let t of d)e[t]!==void 0&&u(t,e[t])},p=({plugin:e,config:t})=>{try{let n=t.cleanup?.();Promise.resolve(n).catch(t=>{Z(new Ca(e.name,t))})}catch(t){Z(new Ca(e.name,t))}},m=(e,t)=>{let n;try{n=e.setup?.(t,C)??{};let r=n.cleanup?.bind(n);return{...n,cleanup:r,theme:e.theme?n.theme?Ng(Ng(Mg,e.theme),n.theme):e.theme:n.theme,options:e.options?{...e.options,...n.options}:n.options,actions:e.actions?[...e.actions,...n.actions??[]]:n.actions,hooks:e.hooks?{...e.hooks,...n.hooks}:n.hooks}}catch(t){throw n&&p({plugin:e,config:n}),new wa(e.name,t)}},h=(e,r)=>{if(i)return;let a={plugin:e,config:m(e,r)},o=t.get(e.name),l=new Map(t);l.set(e.name,a);let u;try{u=s(l.values())}catch(t){throw p(a),new wa(e.name,t)}t.set(e.name,a),n=Array.from(t.values()),c(u),o&&p(o)},g=e=>{if(i)return;let r=t.get(e);r&&(t.delete(e),n=Array.from(t.values()),p(r),l())},_=()=>{if(i)return;i=!0;let e=n;t.clear(),n=[],e.forEach(p),l()},v=()=>n.map(({plugin:e})=>e.name),y=(e,...t)=>{for(let{plugin:r,config:i}of n){let n=i.hooks?.[e];if(n)try{let i=n(...t);i&&Promise.resolve(i).catch(t=>{Z(new Sa(r.name,String(e),t))})}catch(t){Z(new Sa(r.name,String(e),t))}}},b=(e,...t)=>{let r=!1;for(let{plugin:i,config:a}of n){let n=a.hooks?.[e];if(n)try{n(...t)===!0&&(r=!0)}catch(t){Z(new Sa(i.name,String(e),t))}}return r},ee=async(e,...t)=>{for(let{plugin:r,config:i}of n){let n=i.hooks?.[e];if(n)try{await n(...t)}catch(t){Z(new Sa(r.name,String(e),t))}}},x=async(e,t,...r)=>{let i=t;for(let{plugin:t,config:a}of n){let n=a.hooks?.[e];if(n)try{i=await n(i,...r)}catch(n){Z(new Sa(t.name,String(e),n))}}return i},S=(e,t,...r)=>{let i=t;for(let{plugin:t,config:a}of n){let n=a.hooks?.[e];if(n)try{i=n(i,...r)}catch(n){Z(new Sa(t.name,String(e),n))}}return i},C={onActivate:()=>y(`onActivate`),onDeactivate:()=>y(`onDeactivate`),onElementHover:e=>y(`onElementHover`,e),onElementSelect:e=>{let t=!1,r=[];for(let{plugin:i,config:a}of n){let n=a.hooks?.onElementSelect;if(n)try{let a=n(e);if(a){if(t=!0,a===!0)continue;r.push(a.catch(e=>(Z(new Sa(i.name,`onElementSelect`,e)),!1)))}}catch(e){Z(new Sa(i.name,`onElementSelect`,e))}}let i=r.length>0?Promise.all(r).then(e=>e.every(Boolean)):void 0;return{wasIntercepted:t,pendingResult:i}},onDragStart:(e,t)=>y(`onDragStart`,e,t),onDragEnd:(e,t)=>y(`onDragEnd`,e,t),onBeforeCopy:async e=>ee(`onBeforeCopy`,e),transformCopyContent:async(e,t)=>x(`transformCopyContent`,e,t),onAfterCopy:(e,t)=>y(`onAfterCopy`,e,t),onCopySuccess:(e,t)=>y(`onCopySuccess`,e,t),onCopyError:e=>y(`onCopyError`,e),onStateChange:e=>y(`onStateChange`,e),onPromptModeChange:(e,t)=>y(`onPromptModeChange`,e,t),onSelectionBox:(e,t,n)=>y(`onSelectionBox`,e,t,n),onDragBox:(e,t)=>y(`onDragBox`,e,t),onGrabbedBox:(e,t)=>y(`onGrabbedBox`,e,t),onElementLabel:(e,t,n)=>y(`onElementLabel`,e,t,n),onContextMenu:(e,t)=>y(`onContextMenu`,e,t),onOpenFile:(e,t)=>b(`onOpenFile`,e,t),transformHtmlContent:async(e,t)=>x(`transformHtmlContent`,e,t),transformAgentContext:async(e,t)=>x(`transformAgentContext`,e,t),transformActionContext:e=>S(`transformActionContext`,e),transformOpenFileUrl:(e,t,n)=>S(`transformOpenFileUrl`,e,t,n)};return ne()&&w(_),{register:h,unregister:g,getPluginNames:v,setOptions:f,dispose:_,store:a,hooks:C}},Ig=e=>`${e}-${Date.now()}-${Math.random().toString(36).slice(2,9)}`;J(),ea();let Lg=e=>{let t=e.bounds.x+e.bounds.width/2,n=e.bounds.width/2,r=e.mouseX===void 0?void 0:e.mouseX-t;return{id:Ig(`label`),bounds:e.bounds,boundsMultiple:e.boundsMultiple,tagName:e.tagName,componentName:e.componentName,status:e.status,createdAt:Date.now(),element:e.element,elements:e.elements,mouseX:e.mouseX,mouseXOffsetFromCenter:r,mouseXOffsetRatio:r!==void 0&&n>0?r/n:void 0,hideArrow:e.hideArrow}},Rg=(e,t,n)=>{let r=new Map,i=e=>{let t=r.get(e);t!==void 0&&(window.clearTimeout(t),r.delete(e))},a=()=>{for(let e of r.values())window.clearTimeout(e);r.clear()},o=()=>{a(),e.clearLabelInstances(),n?.()},s=t=>{i(t);let n=window.setTimeout(()=>{e.updateLabelInstance(t,`fading`);let n=window.setTimeout(()=>{r.delete(t),e.removeLabelInstance(t)},125);r.set(t,n)},ln);r.set(t,n)};return{createInstance:(t,n,r,i,a)=>{o();let s=Lg({bounds:t,tagName:n,componentName:r,status:i,element:a?.element,mouseX:a?.mouseX,elements:a?.elements,boundsMultiple:a?.boundsMultiple,hideArrow:a?.hideArrow});return e.addLabelInstance(s),s.id},createPerElementInstances:(t,n)=>{o();let r=[];for(let i of t){let t=Lg({bounds:Y(i.element),tagName:i.tagName,componentName:i.componentName,status:n,element:i.element,mouseX:i.mouseX});e.addLabelInstance(t),r.push(t.id)}return r},updateAfterCopy:(t,n,r)=>{n?(e.updateLabelInstance(t,`copied`),s(t)):(i(t),e.updateLabelInstance(t,`error`,r||`Unknown error`))},markRetrying:t=>{i(t),e.updateLabelInstance(t,`copying`)},dismissInstance:t=>{i(t),e.removeLabelInstance(t)},cancelAllFades:a,clearAll:o,handleHoverChange:(n,r)=>{let a=t().find(e=>e.id===n);if(a){if(r){i(n),a.status===`fading`&&e.updateLabelInstance(n,`copied`);return}(a.status===`copied`||a.status===`fading`)&&s(n)}}}},zg=e=>{let t=window.innerWidth,n=window.innerHeight,r=Math.max(0,e.x),i=Math.min(t,e.x+e.width),a=Math.max(0,e.y),o=Math.min(n,e.y+e.height);return{x:(r+i)/2,y:(a+o)/2}};J(),Uh(),qp(),na();let Bg=(e,t,n)=>{let r=[],i=(t,r)=>{let i=Kp(t),a=n(t);if(i){for(let e of i)if(e.x<window.innerWidth&&e.x+e.width>0&&e.y<window.innerHeight&&e.y+e.height>0){a=e;break}}let o=zg(a),s=Bh(o.x,o.y).filter(e),c=s.indexOf(t);return c===-1?null:s[c+r]??null},a=e=>{let t=i(e,1);return t&&(r.push(e),r.length>50&&(r=r.slice(-50))),t},o=e=>{if(r.length>0){let e=r.pop();if(X(e))return e}return i(e,-1)},s=(e,n)=>{let i=e=>n?e.nextElementSibling:e.previousElementSibling,a=i(e);for(;a;){if(t(a))return r=[],a;a=i(a)}return null};return{findNext:(e,t)=>{switch(e){case`ArrowUp`:return a(t);case`ArrowDown`:return o(t);case`ArrowRight`:return s(t,!0);case`ArrowLeft`:return s(t,!1);default:return null}},clearHistory:()=>{r=[]}}},Vg=()=>{let e=new WeakSet,t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,`key`),n=!1;if(t?.get&&!t.get.__reactGrabPatched){n=!0;let r=t.get,i=function(){return e.has(this)?``:r.call(this)};i.__reactGrabPatched=!0,Object.defineProperty(KeyboardEvent.prototype,`key`,{get:i,configurable:!0})}return{claimedEvents:e,originalKeyDescriptor:t,restore:()=>{n&&t&&Object.defineProperty(KeyboardEvent.prototype,`key`,t)}}};J(),cf();let Hg=(e,t)=>({top:t<25,bottom:t>window.innerHeight-25,left:e<25,right:e>window.innerWidth-25}),Ug=(e,t,n)=>{let r=null,i=()=>{if(!t()){a();return}let o=e(),s=Hg(o.x,o.y),c=0,l=0;s.top&&(l-=10),s.bottom&&(l+=10),s.left&&(c-=10),s.right&&(c+=10);let u=!1;if(c!==0||l!==0){let e=window.scrollX,t=window.scrollY;window.scrollBy({behavior:`instant`,left:c,top:l});let r=window.scrollX-e,i=window.scrollY-t;u=r!==0||i!==0,u&&n?.({x:r,y:i})}r=u?af(i):null},a=()=>{r!==null&&(of(r),r=null)};return{start:i,stop:a,isActive:()=>r!==null}},Wg=()=>{let e=globalThis;return!!(e.chrome?.runtime?.id||e.browser?.runtime?.id)},Gg=e=>{try{let t=`0.2.0-dev.38d4995`,n=`data:image/svg+xml;base64,${btoa(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 294 294"><path fill="#ff40e0" d="M145 47c25-20 50-27 67-17 16 9 23 30 20 60 0 2-1 5-1 7l-2 13h-1l-12-4c-8-3-17-5-25-6l-17-3c-10-1-20-1-29-1-10 0-20 0-29 1-6 8-11 16-16 24-5 9-9 17-13 26 4 9 8 18 13 26s10 16 16 24l11 14c5 7 11 13 18 19l10 8s-1 0 0 0l-11 9c-17 14-35 22-49 22-6 0-13-2-18-5-16-9-23-30-20-59 1-3 1-5 1-8-30-12-48-29-48-50 0-18 14-35 41-47 2-1 5-2 7-3 0-2 0-5-1-7-3-30 4-51 20-60 18-10 42-3 68 17M71 201c-1 2-1 4-1 5-2 24 3 41 13 47h1c11 7 30 1 51-15-10-9-18-18-26-29-13-1-26-4-38-8m9-38c-3 9-5 17-7 26 8 2 17 4 25 6-3-5-6-10-9-16-3-5-6-10-9-16m-19-53c-2 1-3 1-5 2-21 10-34 23-34 35 0 13 14 27 39 37 3-12 7-25 12-37-5-12-9-24-12-37m37-10c-8 1-17 3-25 6 2 8 4 16 7 25 3-5 6-11 9-16zm-3-61c-4-1-8 0-12 2-10 7-15 24-13 47 0 2 0 3 1 5 12-4 25-6 38-8 8-10 16-20 26-29-15-11-29-17-40-17m111 2c-4-2-8-3-12-2-11 0-25 5-40 17 10 9 19 19 26 29 13 2 26 4 39 8v-5c3-23-2-40-13-47m-61 23c-7 6-13 13-19 19h37c-6-6-12-13-18-19"/><mask id="a"><path fill="#fff" d="m235 85-133 27 28 133 133-27Z"/></mask><path fill="#ff40e0" d="m137 130 76 11c8 1 9 11 3 15l-28 16-4 32c-1 8-10 10-14 4l-41-66c-3-6 1-13 8-12" mask="url(#a)"/></svg>`)}`;console.log(`%cReact Grab${` v${t}`}%c\nhttps://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${n}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,``),e&&navigator.onLine&&!Wg()&&fetch(`https://www.react-grab.com/api/version?source=browser&v=${t}&t=${Date.now()}`,{referrerPolicy:`origin`,keepalive:!0,priority:`low`,cache:`no-store`}).then(e=>e.text()).then(e=>{e&&e!==t&&console.warn(`[React Grab] v${t} is outdated (latest: v${e}). Run \`npx grab@latest upgrade\` to upgrade.`)}).catch(()=>null)}catch{}},Kg=e=>typeof e==`object`&&!!e,qg=e=>{if(!Kg(e))return null;let t={};return typeof e.enabled==`boolean`&&(t.enabled=e.enabled),(e.activationMode===`toggle`||e.activationMode===`hold`)&&(t.activationMode=e.activationMode),typeof e.keyHoldDuration==`number`&&Number.isFinite(e.keyHoldDuration)&&(t.keyHoldDuration=e.keyHoldDuration),typeof e.allowActivationInsideInput==`boolean`&&(t.allowActivationInsideInput=e.allowActivationInsideInput),typeof e.activationKey==`string`&&(t.activationKey=e.activationKey),typeof e.maxContextLines==`number`&&Number.isFinite(e.maxContextLines)&&(t.maxContextLines=e.maxContextLines),typeof e.freezeReactUpdates==`boolean`&&(t.freezeReactUpdates=e.freezeReactUpdates),typeof e.telemetry==`boolean`&&(t.telemetry=e.telemetry),Object.keys(t).length===0?null:t},Jg=()=>{if(typeof window>`u`)return null;try{let e=(document.currentScript instanceof HTMLScriptElement?document.currentScript:null)?.getAttribute(`data-options`);return e?qg(JSON.parse(e)):null}catch{return null}},Yg=e=>e===`Enter`||e===`NumpadEnter`,Xg=(e,t)=>e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height;var Zg,Qg,$g,e_=c((()=>{J(),ro(),Zg=`react-grab-toolbar-state`,Qg=()=>{try{let e=localStorage.getItem(Zg);if(!e)return null;let t=JSON.parse(e);if(typeof t!=`object`||!t)return null;let n=t,r=typeof n.collapsed==`boolean`?n.collapsed:!1;return{edge:n.edge===`top`||n.edge===`bottom`||n.edge===`left`||n.edge===`right`?n.edge:`bottom`,ratio:typeof n.ratio==`number`?n.ratio:In,collapsed:r,enabled:!r,defaultAction:typeof n.defaultAction==`string`?n.defaultAction:Ln}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},$g=e=>{try{localStorage.setItem(Zg,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}}}));e_(),R(),ro();let t_=e=>{let[t,n]=h(!1);return te(()=>{let t=no(t=>n(e(t))),r=()=>n(!1);window.addEventListener(`keydown`,t,{capture:!0}),window.addEventListener(`keyup`,t,{capture:!0}),window.addEventListener(`blur`,r),w(()=>{window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`keyup`,t,{capture:!0}),window.removeEventListener(`blur`,r)})}),t},n_={name:`copy`,actions:[{id:`copy`,label:`Copy`,shortcut:`C`,showInToolbarMenu:!0,onAction:e=>{e.copy?.()}}]},r_={name:`comment`,actions:[{id:`comment`,label:`Comment`,shortcut:`Enter`,showInToolbarMenu:!0,onAction:e=>{e.enterPromptMode?.()}}]},i_={name:`open`,actions:[{id:`open`,label:`Open`,shortcut:`O`,enabled:e=>!!e.filePath,onAction:e=>{e.filePath&&(Ag(e.filePath,e.lineNumber,e.hooks),e.hideContextMenu(),e.cleanup())}}]};var a_,o_=c((()=>{a_=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n])})),s_,c_,l_,u_,d_,f_,p_,m_,h_,g_,__,v_,y_,b_=c((()=>{J(),cf(),s_=!1,c_=null,l_=!1,u_=new Map,d_=-1,f_=new WeakSet,p_=new WeakSet,m_=new WeakMap,h_=new Map,g_=new Map,__=e=>{if(c_===e&&(l_=!0),f_.has(e))return!0;if(!s_&&c_===e){let t=(m_.get(e)??0)+1;return m_.set(e,t),t<4?!1:(f_.add(e),!0)}return!s_||!(`gsapVersions`in window)||!(Error().stack??``).includes(`_tick`)?!1:(f_.add(e),p_.add(e),!0)},typeof window<`u`&&(window.requestAnimationFrame=e=>{let t=__(e);if(s_&&t){let t=d_--;return u_.set(t,e),t}let n=af(t=>{if(s_&&__(e)){let t=d_--;u_.set(t,e),h_.set(n,t);return}let r=c_,i=l_;c_=e,l_=!1;try{e(t)}finally{let t=l_;c_=r,l_=i,!t&&!p_.has(e)&&(f_.delete(e),m_.delete(e))}});return n},window.cancelAnimationFrame=e=>{if(u_.has(e)){u_.delete(e);return}let t=g_.get(e);if(t!==void 0){of(t.nativeId),g_.delete(e);return}let n=h_.get(e);if(n!==void 0){u_.delete(n),h_.delete(e);return}of(e)}),v_=()=>{if(!s_){s_=!0,u_.clear(),h_.clear();for(let[e,{nativeId:t,callback:n}]of g_)of(t),u_.set(e,n);g_.clear()}},y_=()=>{if(s_){s_=!1;for(let[e,t]of u_.entries()){let n=af(n=>{g_.delete(e);let r=c_,i=l_;c_=t,l_=!1;try{t(n)}finally{let e=l_;c_=r,l_=i,!e&&!p_.has(t)&&(f_.delete(t),m_.delete(t))}});g_.set(e,{nativeId:n,callback:t})}u_.clear(),h_.clear()}}})),x_,S_,C_,w_,T_,E_,D_,O_,k_,A_,j_,M_,N_,P_,F_,I_,L_,R_,z_,B_,V_,H_,U_,W_,G_,K_,q_,J_,Y_,X_,Z_,Q_,$_=c((()=>{J(),o_(),fm(),b_(),Kn(),wp(),aa(),ro(),Om(),x_=`
|
|
24
|
+
[${jn}],
|
|
25
|
+
[${jn}] * {
|
|
26
26
|
animation-play-state: paused !important;
|
|
27
27
|
transition: none !important;
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,S_=`
|
|
30
30
|
*, *::before, *::after {
|
|
31
31
|
animation-play-state: paused !important;
|
|
32
32
|
transition: none !important;
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,C_=`svg`,w_=e=>e?.namespaceURI===`http://www.w3.org/2000/svg`&&e.tagName===`svg`,T_=null,E_=[],D_=[],O_=[],k_=new Set,A_=new Map,j_=new Map,M_=[],N_=()=>A_.size>0,P_=()=>{T_||=dm(`data-react-grab-frozen-styles`,x_)},F_=e=>{let t=new Set;for(let n of e){let e=w_(n)?n:n.closest(`svg`);w_(e)&&t.add(e);for(let e of n.querySelectorAll(C_))w_(e)&&t.add(e)}return[...t]},I_=(e,t)=>{let n=Reflect.get(e,t);typeof n==`function`&&n.call(e)},L_=(e,t)=>{for(let n of e){let e=j_.get(n)??0;if(e===0){j_.set(n,1),t.push(n),I_(n,`pauseAnimations`);continue}j_.set(n,e+1),t.push(n)}},R_=(e,t)=>{let n=[];for(let r of e){let e=j_.get(r);if(e){if(e===1){try{I_(r,`unpauseAnimations`),j_.delete(r)}catch(e){n.push(r),t.push(e)}continue}j_.set(r,e-1)}}return n},z_=e=>{let t=[];for(let n of e)for(let e of n.getAnimations({subtree:!0}))e.playState===`running`&&t.push(e);return t},B_=e=>{for(let t of e)try{t.finish()}catch{}},V_=e=>{for(let t of e)try{t.finish()}catch{try{t.play()}catch{}}},H_=e=>{if(!(e.effect instanceof KeyframeEffect))return!1;let t=e.effect.target;if(!Gn(t))return!1;let n=t.getRootNode();return ia(n)&&Cp(n.host)},U_=e=>{if(e.length===0||a_(e,O_))return;W_();let t=[...e];P_(),E_=t,D_=[];try{L_(F_(E_),D_);for(let e of E_)e.setAttribute(jn,``);let e=z_(E_);M_=[];for(let t of e)t.pause(),M_.push(t);O_=t}catch(e){try{W_()}catch(t){throw AggregateError([e,t],`Rolling back animation freeze failed`)}throw e}},W_=()=>{if(E_.length===0&&D_.length===0&&M_.length===0)return;let e=E_,t=D_,n=M_,r=[],i=[];O_=[];for(let t of e)try{t.removeAttribute(jn)}catch(e){i.push(t),r.push(e)}E_=i,D_=R_(t,r),V_(n),M_=[],Dm(r,`Unfreezing element animations failed`)},G_=e=>e.length===0?(W_(),()=>{}):(U_(e),W_),K_=e=>{let t=[];for(let n of e.getAnimations())H_(n)||n.playState===`running`&&t.push(n);return{targetDocument:e,runningAnimations:t}},q_=e=>{let t=A_.get(e);if(!t)return[];let n=[],r=t.styleElement;if(r){try{if(t.didUseCssFreeze){r.textContent=`
|
|
35
35
|
*, *::before, *::after {
|
|
36
36
|
transition: none !important;
|
|
37
37
|
}
|
|
38
|
-
`;let t=[];for(let n of e.getAnimations())wg(n)||t.push(n);Sg(t)}else Cg(t.frozenWaapiAnimations);t.didUseCssFreeze=!1,t.frozenWaapiAnimations=[]}catch(e){n.push(e)}try{r.remove(),t.styleElement=null}catch(e){n.push(e)}}return t.frozenSvgElements=bg(t.frozenSvgElements,n),t.styleElement===null&&t.frozenSvgElements.length===0&&t.frozenWaapiAnimations.length===0&&fg.delete(e),n},Ag=e=>{if(fg.has(e.targetDocument))return;let t=qf(`data-react-grab-global-freeze`,``,e.targetDocument),n={styleElement:t,frozenSvgElements:[],frozenWaapiAnimations:[],didUseCssFreeze:!1};if(fg.set(e.targetDocument,n),e.runningAnimations.length>200)t.textContent=ig,n.didUseCssFreeze=!0;else for(let t of e.runningAnimations)t.pause(),n.frozenWaapiAnimations.push(t);yg(_g(Array.from(e.targetDocument.querySelectorAll(ag))),n.frozenSvgElements)},jg=e=>{dg.add(e);try{hg()&&Ag(Og(e))}catch(t){dg.delete(e);let n=kg(e);throw n.length===0?t:AggregateError([t,...n],`Freezing frame animations failed`)}return()=>{dg.delete(e),lp(kg(e),`Unfreezing frame animations failed`)}},Mg=()=>hg()?[]:(dg.add(document),[...dg].map(Og)),Ng=e=>{if(!hg()){for(let t of e)Ag(t);eg()}},Pg=()=>{if(!hg())return;let e=[];for(let t of[...fg.keys()])e.push(...kg(t));try{tg()}catch(t){e.push(t)}lp(e,`Unfreezing global animations failed`)}})),Ig,Lg,Rg=n((()=>{Hd(),Hn(),J(),cf(),Ig=(e,t)=>{for(let n of e.querySelectorAll(`:hover`))if(!sf(n)&&(Vn(n)&&t.add(n),n.shadowRoot&&Ig(n.shadowRoot,t),Un(n))){let e=Vd(n);e&&Ig(e,t)}},Lg=()=>{let e=new Set;return Ig(document,e),[...e]}})),zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg,Jg,Yg,Xg,Zg,Qg,$g,e_,t_,n_,r_,i_,a_,o_=n((()=>{Tm(),Hd(),ga(),qd(),Rg(),Hn(),J(),cf(),wa(),cp(),up(),zg=[`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`],Bg=[`focus`,`blur`,`focusin`,`focusout`],Vg=[`background-color`,`color`,`border-color`,`box-shadow`,`transform`,`opacity`,`outline`,`filter`,`scale`,`visibility`,`display`],Hg=[`background-color`,`color`,`border-color`,`box-shadow`,`outline`,`outline-offset`,`outline-width`,`outline-color`,`outline-style`,`filter`,`opacity`,`ring-color`,`ring-width`],Ug=new Map,Wg=new Map,Gg=new Set,Kg=!1,qg=e=>{e.stopImmediatePropagation()},Jg=e=>{e.preventDefault(),e.stopImmediatePropagation()},Yg=e=>{for(let t of zg)e.addEventListener(t,qg,!0);for(let t of Bg)e.addEventListener(t,Jg,!0)},Xg=e=>{for(let t of zg)e.removeEventListener(t,qg,!0);for(let t of Bg)e.removeEventListener(t,Jg,!0)},Zg=e=>{Gg.add(e);let t=rp(e);return Kg&&Yg(e),()=>{Kg&&Xg(e),Gg.delete(e),t()}},Qg=(e,t,n)=>{if(n?.has(e))return null;let r=getComputedStyle(e),i=new Map,a=new Map;for(let n of t){let t=r.getPropertyValue(n);t&&(i.set(n,t),a.set(n,{value:e.style.getPropertyValue(n),priority:e.style.getPropertyPriority(n)}))}return{element:e,frozenPropertyValues:i,originalPropertyValues:a}},$g=(e,t)=>{let n=[],r=Kd(e,t);for(;r&&r!==document.documentElement&&!sf(r);)Vn(r)&&n.push(r),r=ha(r);return n},e_=()=>{let e=[],t=document.activeElement;for(;t&&t!==document.body;){if(Vn(t)&&e.push(t),t.shadowRoot?.activeElement){t=t.shadowRoot.activeElement;continue}if(Un(t)){t=Vd(t)?.activeElement??null;continue}t=null}return e},t_=(e,t)=>{for(let{element:n,frozenPropertyValues:r,originalPropertyValues:i}of e){t.set(n,i);for(let[e,t]of r)n.style.setProperty(e,t,`important`)}},n_=e=>{let t=[];for(let[n,r]of e){for(let[e,i]of r)try{i.value?n.style.setProperty(e,i.value,i.priority):n.style.removeProperty(e),r.delete(e)}catch(e){t.push(e)}r.size===0&&e.delete(n)}return t},r_=(e,t)=>{if(np())return null;let n=[],r=e!==void 0&&t!==void 0&&e>=0&&t>=0&&e<window.innerWidth&&t<window.innerHeight?$g(e,t):Lg();for(let e of r){let t=Qg(e,Vg);t&&n.push(t)}let i=[];for(let e of e_()){let t=Qg(e,Hg,Wg);t&&i.push(t)}return{hoverStates:n,focusStates:i}},i_=e=>{if(e){Kg=!0,Gg.add(document);for(let e of Gg)Yg(e);t_(e.hoverStates,Ug),t_(e.focusStates,Wg),ip()}},a_=()=>{wm(),Kg=!1;for(let e of Gg)Xg(e);let e=[...n_(Ug),...n_(Wg)];try{ap()}catch(t){e.push(t)}lp(e,`Unfreezing pseudo states failed`)}})),s_,c_,l_,u_=n((()=>{Fg(),o_(),vp(),up(),s_=()=>{let e=[];try{_p()}catch(t){e.push(t)}try{a_()}catch(t){e.push(t)}try{Pg()}catch(t){e.push(t)}return e},c_=(e,t)=>{let n=r_(e,t),r=Mg();try{i_(n),Ng(r),gp()}catch(e){let t=s_();throw t.length===0?e:AggregateError([e,...t],`Freezing global interactions failed`)}},l_=()=>{lp(s_(),`Unfreezing global interactions failed`)}})),d_,f_,p_,m_,h_,g_,__,v_,y_,b_,x_,S_,C_,w_,T_,E_,D_,O_,k_,A_,j_,M_,N_,P_,F_,I_,L_,R_,z_,B_,V_,H_,U_,W_,G_,K_,q_,J_,Y_,X_,Z_,Q_=n((()=>{fi(),Qi(),uh(),wa(),d_=!1,f_=0,p_=0,m_=(e,t,n)=>{let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i},h_=new WeakMap,g_=new WeakMap,__=new WeakMap,v_=new Set,y_=[],b_=[],x_=new WeakMap,S_=new WeakMap,C_=new WeakSet,w_=Vr,T_=new Set,E_=new WeakMap,si({name:`react-grab-freeze-updates`,onCommitFiberRoot:(e,t)=>{let n=xr().renderers.get(e);n&&E_.set(t,n)}}),D_=e=>{try{let t=e.rendererPackageName;return typeof t==`string`&&t.startsWith(`react-dom`)}catch{return!1}},O_=e=>{let t=e;for(;t.return;)t=t.return;return t.stateNode??null},k_=e=>{let t=e.current,n=t;for(;n;){let e=n.stateNode;if(e&&typeof e==`object`&&typeof Reflect.get(e,`nodeType`)==`number`)return e;if(n.child){n=n.child;continue}for(;n!==t&&!n.sibling;)if(n=n.return,!n)return null;if(n===t)return null;n=n.sibling}return null},A_=e=>{let t=E_.get(e);if(t)return D_(t)?t:null;let n=Array.from(xr().renderers.values()).filter(D_);if(n.length===1){let t=n[0];return t&&E_.set(e,t),t??null}let r=k_(e);if(!r)return null;for(let t of n)try{let n=t.findFiberByHostInstance?.(r);if(n&&O_(n)===e)return E_.set(e,t),t}catch{}return null},j_=e=>{let t=e.current?.stateNode;if(!t||typeof t!=`object`)return!1;let n=Reflect.get(t,`containerInfo`);return!!(n&&typeof n==`object`&&typeof Reflect.get(n,`nodeType`)==`number`)},M_=()=>{if(w_.size>0){let e=new Set;for(let t of w_)j_(t)&&e.add(t);return e}let e=new Set,t=n=>{let r=ui(n);if(r){let t=O_(r);t&&e.add(t);return}for(let r of Array.from(n.children))if(t(r),e.size>0)return};return t(document.body),e},N_=(e,t)=>{if(!e)return t;if(!t)return e;if(!e.next||!t.next)return t;let n=e.next,r=t.next,i=e===n,a=t===r;return i&&a?(e.next=t,t.next=e):i?(e.next=r,t.next=e):a?(t.next=n,e.next=t):(e.next=r,t.next=n),t},P_=e=>{if(!e||x_.has(e))return;let t={originalPendingDescriptor:Object.getOwnPropertyDescriptor(e,`pending`),pendingValueAtPause:e.pending,bufferedPending:null};typeof e.getSnapshot==`function`&&(t.originalGetSnapshot=e.getSnapshot,t.snapshotValueAtPause=e.getSnapshot(),e.getSnapshot=()=>d_?t.snapshotValueAtPause:t.originalGetSnapshot());let n=t.pendingValueAtPause;Object.defineProperty(e,`pending`,{configurable:!0,enumerable:!0,get:()=>d_?null:n,set:e=>{if(d_){e!==null&&(t.bufferedPending=N_(t.bufferedPending??null,e));return}n=e}}),x_.set(e,t)},F_=e=>{if(!e)return[];let t=[],n=e.next;if(!n)return[];let r=n;do r&&=(t.push(r.action),r.next);while(r&&r!==n);return t},I_=e=>{let t=x_.get(e);if(!t)return;t.originalGetSnapshot&&(e.getSnapshot=t.originalGetSnapshot),t.originalPendingDescriptor?Object.defineProperty(e,`pending`,t.originalPendingDescriptor):delete e.pending,e.pending=null;let n=e.dispatch;if(typeof n==`function`){let e=F_(t.pendingValueAtPause??null),r=F_(t.bufferedPending??null);for(let t of[...e,...r])b_.push(()=>n(t))}x_.delete(e)},L_=e=>{if(S_.has(e))return;let t={originalDescriptor:Object.getOwnPropertyDescriptor(e,`memoizedValue`),frozenValue:e.memoizedValue};Object.defineProperty(e,`memoizedValue`,{configurable:!0,enumerable:!0,get(){return d_?t.frozenValue:t.originalDescriptor?.get?t.originalDescriptor.get.call(this):this._memoizedValue},set(e){if(d_){t.pendingValue=e,t.didReceivePendingValue=!0;return}t.originalDescriptor?.set?t.originalDescriptor.set.call(this,e):this._memoizedValue=e}}),t.originalDescriptor?.get||(e._memoizedValue=t.frozenValue),S_.set(e,t)},R_=e=>{let t=S_.get(e);t&&(t.originalDescriptor?Object.defineProperty(e,`memoizedValue`,t.originalDescriptor):delete e.memoizedValue,t.didReceivePendingValue&&(e.memoizedValue=t.pendingValue),S_.delete(e))},z_=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&P_(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)L_(n),n=n.next},B_=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&I_(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)R_(n),n=n.next},V_=e=>{let t=e;for(;t;){if(jr(t)&&z_(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},H_=e=>{let t=e;for(;t;){if(jr(t)&&B_(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},U_=e=>{if(h_.has(e))return;let t=e,n={useState:t.useState,useReducer:t.useReducer,useTransition:t.useTransition,useSyncExternalStore:t.useSyncExternalStore};h_.set(e,n),t.useState=(...t)=>{let r=n.useState.apply(e,t);if(!d_||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,m_(g_,a,()=>(...e)=>{d_?b_.push(()=>a(...e)):a(...e)})]},t.useReducer=(...t)=>{let r=n.useReducer.apply(e,t);if(!d_||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,m_(g_,a,()=>(...e)=>{d_?b_.push(()=>a(...e)):a(...e)})]},t.useTransition=(...t)=>{let r=n.useTransition.apply(e,t);if(!d_||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,m_(__,a,()=>e=>{d_?y_.push(()=>a(e)):a(e)})]},t.useSyncExternalStore=((e,t,r)=>d_?n.useSyncExternalStore(t=>e(()=>{d_?v_.add(t):t()}),t,r):n.useSyncExternalStore(e,t,r))},W_=e=>{let t=e.currentDispatcherRef;if(!t||typeof t!=`object`)return;let n=`H`in t?`H`:`current`,r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>(r&&typeof r==`object`&&U_(r),r),set:e=>{r=e}})},G_=(e,t)=>{queueMicrotask(()=>{if(!(d_||p_!==t))try{for(let t of e){let e=A_(t);if(t.current&&e?.scheduleUpdate)try{e.scheduleUpdate(t.current)}catch(e){Z(new Bi(`scheduleUpdate failed during unfreeze`,e))}}}catch(e){Z(new Bi(`scheduleReactUpdate failed`,e))}})},K_=e=>{for(let t of e)try{t()}catch(e){Z(new Bi(`Callback failed during state replay`,e))}},q_=()=>{for(let e of xr().renderers.values())D_(e)&&(C_.has(e)||(W_(e),C_.add(e)))},J_=()=>{v_.clear(),y_.length=0,b_.length=0},Y_=()=>{let e=p_,t=new Set(T_);try{for(let e of M_())t.add(e)}catch(e){Z(new Bi(`Collecting fiber roots failed during unfreeze`,e))}T_.clear(),d_=!1;for(let e of t)try{H_(e.current)}catch(e){Z(new Bi(`Resuming a fiber root failed during unfreeze`,e))}let n=Array.from(v_),r=y_.slice(),i=b_.slice();J_(),K_(n),K_(r),K_(i),!d_&&p_===e&&G_(t,e)},X_=()=>{let e=f_===0;if(f_+=1,e)try{q_(),p_+=1,d_=!0;let e=M_();for(let t of e)T_.add(t),V_(t.current)}catch(e){throw--f_,d_&&Y_(),e}let t=!1;return()=>{t||(t=!0,--f_,f_===0&&Y_())}},Z_=()=>{try{return X_()}catch(e){return Z(new Bi(`Pausing React updates failed`,e)),()=>{}}}}));u_(),Q_();let $_=e=>{let t=e.left+e.width/2,n=e.top+e.height/2,r=n,i=window.innerHeight-n,a=t,o=window.innerWidth-t,s=Math.min(r,i,a,o);return s===r?`top`:s===a?`left`:s===o?`right`:`bottom`};var ev,tv,nv,rv=n((()=>{ev=e=>e.key===`Enter`,tv=e=>e.metaKey||e.ctrlKey,nv=(e,t,n={})=>{if(!t.key)return null;if(ev(t))return e.find(e=>e.shortcut===`Enter`)??null;if(t.repeat)return null;let r=t.key.toLowerCase();return tv(t)?n.includeModifierShortcuts===!0?e.find(e=>e.shortcut!==void 0&&e.shortcut!==`Enter`&&e.shortcutModifier!==!1&&r===e.shortcut.toLowerCase())??null:null:e.find(e=>e.shortcut!==void 0&&e.shortcutModifier===!1&&r===e.shortcut.toLowerCase())??null}}));rv();let iv=()=>{let e=!1;return{arm:()=>{e=!0},clear:()=>{e=!1},consume:()=>e?(e=!1,!0):!1}};R(),wi();let av=()=>{let[e,t]=c(!1),[n,r]=c(null),i=iv(),a=()=>{let e=n();return X(e)?e:null},o=()=>{r(null),i.clear(),t(!1)};return{selectedElement:a,isPendingDismiss:e,select:(e,n)=>{r(e),t(!1),n?.shouldPromptBeforeMouseHandoff?i.arm():i.clear()},clear:o,consumeMouseHandoff:()=>i.consume()&&a()!==null,showDismissPrompt:()=>a()?e()?!1:(t(!0),!0):(o(),!1),takeSelection:e=>{let t=a()??(X(e)?e:null);return o(),t}}};var ov,sv,cv=n((()=>{Qi(),uh(),ov=e=>e??!0,sv=(e,t)=>{if(typeof e.enabled==`function`){if(!t)return!1;try{return e.enabled(t)}catch(t){return Z(new qi(e.id,t)),!1}}return ov(e.enabled)}})),lv,uv=n((()=>{Qi(),cv(),uh(),lv=(e,t)=>{if(!sv(e,t))return!1;try{let n=e.onAction(t);n&&n.catch(t=>{Z(new Ki(e.id,t))})}catch(t){Z(new Ki(e.id,t))}return!0}}));uv(),Qi(),uh();let dv=e=>{Z(new Bi(`Toolbar state change subscriber failed`,e))},fv=(e,t)=>{for(let n of e)try{Promise.resolve(n(t)).catch(dv)}catch(e){dv(e)}},Q=(e,t)=>{try{e()}catch(e){t.push(e)}};q(),Hd(),Bn(),J(),cf(),up();let pv=e=>{let t=new Map,n=new Map,r=new Map,i=new Map,a=(e,a)=>{let c=r.get(e);c&&(r.delete(e),Q(()=>c.disconnect(),a));for(let t of[...r.keys()])`host`in t&&t.ownerDocument===e&&o(t,a);for(let t of[...i.keys()])t.ownerDocument===e&&s(t,a);let l=n.get(e);n.delete(e),l&&Q(l,a);let u=t.get(e);t.delete(e),u&&Q(u,a)},o=(e,t)=>{let n=r.get(e);if(n){r.delete(e),Q(()=>n.disconnect(),t);for(let n of e.querySelectorAll(`*`))c(n,t)}},s=(e,t)=>{let n=i.get(e);n&&(i.delete(e),Q(()=>n.abortController.abort(),t),Q(()=>e.removeAttribute(Tn),t),n.document&&a(n.document,t))},c=(e,t)=>{Un(e)&&s(e,t),e.shadowRoot&&o(e.shadowRoot,t)},l=(e,t)=>{for(let n of e.querySelectorAll(`*`))c(n,t);c(e,t)},u=n=>{t.has(n)||(t.set(n,e(n)),d(n),h(n))},d=e=>{let r=e.defaultView?.Element.prototype;if(!r)return;let i=r.attachShadow,a=new Proxy(i,{apply:(n,r,i)=>{let a=Reflect.apply(n,r,i);return a.mode===`open`&&r.isConnected&&t.has(e)&&h(a),a}});r.attachShadow=a,n.set(e,()=>{r.attachShadow===a&&(r.attachShadow=i)})},f=e=>{if(i.has(e))return;let t={abortController:new AbortController,document:null};i.set(e,t);let n=()=>{let n=[],r=Vd(e);if(t.document&&t.document!==r&&a(t.document,n),t.document=r,!r){e.removeAttribute(Tn),lp(n,`Cleaning up replaced frame document failed`);return}e.setAttribute(Tn,``),u(r),lp(n,`Cleaning up replaced frame document failed`)};e.addEventListener(`load`,n,{signal:t.abortController.signal}),n()},p=e=>{sf(e)||(Un(e)&&f(e),e.shadowRoot&&h(e.shadowRoot))},m=e=>{if(p(e),!sf(e))for(let t of e.querySelectorAll(`*`))p(t)},h=e=>{if(r.has(e))return;let t=`defaultView`in e?e.defaultView:e.ownerDocument.defaultView;if(!t)return;let n=new t.MutationObserver(e=>{let t=[];for(let n of e){for(let e of n.removedNodes)zn(e)&&l(e,t);for(let e of n.addedNodes)zn(e)&&m(e)}lp(t,`Cleaning up removed frame documents failed`)});r.set(e,n),n.observe(e,{childList:!0,subtree:!0});for(let t of e.querySelectorAll(`*`))p(t)};return u(document),()=>{let e=[];for(let t of[...i.keys()])s(t,e);for(let[t,n]of r)r.delete(t),Q(()=>n.disconnect(),e);for(let[t,r]of n)n.delete(t),Q(r,e);for(let[n,r]of t)t.delete(n),r&&Q(r,e);lp(e,`Cleaning up same-origin frame documents failed`)}};$n(),Fg(),o_(),up();let mv=(e,t)=>{window.dispatchEvent(t),t.defaultPrevented&&(e.preventDefault(),e.stopImmediatePropagation())},hv=(e,t,n)=>({bubbles:!0,cancelable:!0,composed:!0,clientX:t,clientY:n,screenX:e.screenX,screenY:e.screenY,button:e.button,buttons:e.buttons,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}),gv=e=>{let t=Qn(e.view,e.clientX,e.clientY);mv(e,new PointerEvent(e.type,{...hv(e,t.x,t.y),pointerId:e.pointerId,pointerType:e.pointerType,isPrimary:e.isPrimary,pressure:e.pressure,tangentialPressure:e.tangentialPressure,tiltX:e.tiltX,tiltY:e.tiltY,twist:e.twist,width:e.width,height:e.height}))},_v=e=>{let t=Qn(e.view,e.clientX,e.clientY);mv(e,new MouseEvent(e.type,hv(e,t.x,t.y)))},vv=e=>{mv(e,new KeyboardEvent(e.type,{bubbles:!0,cancelable:!0,composed:!0,key:e.key,code:e.code,location:e.location,repeat:e.repeat,isComposing:e.isComposing,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}))},yv=e=>pv(t=>{if(t===document)return;let n=t.defaultView;if(!n)return;let r=new AbortController,i=jg(t),a=Zg(t),o={capture:!0,signal:r.signal},s=t=>{e.shouldForwardInteraction()&&gv(t)},c=t=>{e.shouldForwardInteraction()&&_v(t)},l=t=>{(e.shouldForwardInteraction()||e.shouldForwardKeyboardEvent(t))&&vv(t)},u=n=>{e.shouldForwardInteraction()&&e.shouldForwardViewportEvent(t)&&window.dispatchEvent(new Event(n.type))};return n.addEventListener(`pointermove`,s,o),n.addEventListener(`pointerdown`,s,o),n.addEventListener(`pointerup`,s,o),n.addEventListener(`pointercancel`,s,o),n.addEventListener(`contextmenu`,c,o),n.addEventListener(`click`,c,o),n.addEventListener(`keydown`,l,o),n.addEventListener(`keyup`,l,o),n.addEventListener(`keypress`,l,o),n.addEventListener(`scroll`,u,o),n.addEventListener(`resize`,u,o),()=>{r.abort();let e=[];for(let t of[i,a])try{t()}catch(t){e.push(t)}lp(e,`Cleaning up frame event forwarding failed`)}});Zn();let bv=(e,t)=>{let n=t.ownerDocument;for(;n;){if(n===e)return!0;n=Xn(n.defaultView)?.ownerDocument??null}return!1};Qi(),uh();let xv=null,Sv=new Map,Cv=()=>typeof window>`u`?xv:window.__REACT_GRAB__??xv??null,wv=e=>{if(xv=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__),e)for(let[t,n]of Sv){Sv.delete(t);try{e.registerPlugin(n)}catch(e){Z(e instanceof Gi?e:new Gi(t,e))}}},Tv=e=>{xv===e&&(xv=null),typeof window<`u`&&window.__REACT_GRAB__===e&&delete window.__REACT_GRAB__},Ev=e=>{let t=Cv();if(t){t.registerPlugin(e);return}Sv.set(e.name,e)},Dv=e=>{let t=Cv();if(t){t.unregisterPlugin(e);return}Sv.delete(e)},Ov=async(e,t={})=>(await Promise.allSettled(e.map(e=>ju(e,t)))).map(e=>e.status===`fulfilled`?e.value:``);var kv,Av=n((()=>{kv=(e,t,n)=>e+(t-e)*n})),jv,Mv=n((()=>{q(),jv=(e,t)=>{let n=Math.max(t,1);return 1-(1-e)**(n/dn)}})),Nv,Pv,Fv,Iv,Lv=n((()=>{R(),Av(),q(),Uu(),Wt(),Mv(),Nv=z(`<canvas data-react-grab-overlay-canvas style=position:fixed;top:0;left:0;pointer-events:none>`),Pv={borderColor:mn,fillColor:hn,lerpFactor:en},Fv={drag:{borderColor:fn,fillColor:pn,lerpFactor:un},selection:Pv,grabbed:Pv},Iv=e=>{let t,n=null,r=0,i=0,a=1,o=null,s=null,c=null,l=[],f=null,p=[],m=Ut()?`display-p3`:`srgb`,h=()=>{t&&(a=Math.max(window.devicePixelRatio||1,2),r=document.documentElement.clientWidth||window.innerWidth,i=document.documentElement.clientHeight||window.innerHeight,t.width=r*a,t.height=i*a,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext(`2d`,{colorSpace:m}),n&&n.scale(a,a))},g=e=>{if(!e)return 0;let t=e.match(/^(\d+(?:\.\d+)?)/);return t?parseFloat(t[1]):0},b=(e,t,n)=>({id:e,current:{x:t.x,y:t.y,width:t.width,height:t.height},target:{x:t.x,y:t.y,width:t.width,height:t.height},borderRadius:g(t.borderRadius),opacity:n?.opacity??1,targetOpacity:n?.targetOpacity??n?.opacity??1,createdAt:n?.createdAt,fadeStartTimestamp:null,isInitialized:!0}),x=(e,t,n)=>{let r=e.target;r.x=t.x,r.y=t.y,r.width=t.width,r.height=t.height,e.borderRadius=g(t.borderRadius),n!==void 0&&(n>e.targetOpacity&&(e.opacity=n),e.targetOpacity=n)},S=e=>e.boundsMultiple??[e.bounds],C=(e,t,n,r,i,a,o,s,c=1)=>{if(r<=0||i<=0)return;let l=Math.min(r/2,i/2),u=Math.min(a,l),d=c!==1;d&&(e.globalAlpha=c),e.beginPath(),u>0?e.roundRect(t,n,r,i,u):e.rect(t,n,r,i),e.fillStyle=o,e.fill(),e.strokeStyle=s,e.lineWidth=1,e.stroke(),d&&(e.globalAlpha=1)},w=()=>{if(!n||!e.dragVisible||!f)return;let t=Fv.drag;C(n,f.current.x,f.current.y,f.current.width,f.current.height,f.borderRadius,t.fillColor,t.borderColor)},T=()=>{if(!n||!e.selectionVisible)return;let t=Fv.selection;for(let e of l)C(n,e.current.x,e.current.y,e.current.width,e.current.height,e.borderRadius,t.fillColor,t.borderColor,e.opacity)},ee=e=>{if(!n)return;let t=Fv.grabbed;for(let r of e)C(n,r.current.x,r.current.y,r.current.width,r.current.height,r.borderRadius,t.fillColor,t.borderColor,r.opacity)},E=()=>{!n||!t||r<=0||i<=0||(n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,t.width,t.height),n.setTransform(a,0,0,a,0,0),w(),T(),ee(p))},te=(e,t,n)=>{let r=kv(e.current.x,e.target.x,t),i=kv(e.current.y,e.target.y,t),a=kv(e.current.width,e.target.width,t),o=kv(e.current.height,e.target.height,t),s=Math.abs(r-e.target.x)<.5&&Math.abs(i-e.target.y)<.5&&Math.abs(a-e.target.width)<.5&&Math.abs(o-e.target.height)<.5;e.current.x=s?e.target.x:r,e.current.y=s?e.target.y:i,e.current.width=s?e.target.width:a,e.current.height=s?e.target.height:o;let c=!0;if(n?.interpolateOpacity){let n=kv(e.opacity,e.targetOpacity,t);c=Math.abs(n-e.targetOpacity)<K,e.opacity=c?e.targetOpacity:n}return!s||!c},D=()=>{let e=performance.now(),t=c===null?dn:e-c;c=e;let n=jv(Fv.drag.lerpFactor,t),r=jv(Fv.selection.lerpFactor,t),i=jv(Fv.grabbed.lerpFactor,t),a=!1,u=null;f?.isInitialized&&te(f,n)&&(a=!0);for(let e of l)e.isInitialized&&te(e,r)&&(a=!0);let d=Date.now();p=p.filter(t=>{let n=t.id.startsWith(`label-`);if(t.isInitialized&&te(t,i)&&(a=!0),n&&t.targetOpacity===0){t.fadeStartTimestamp===null&&(t.fadeStartTimestamp=e);let n=e-t.fadeStartTimestamp,r=Math.min(1,n/125),i=1-(1-r)*(1-r);return t.opacity=Math.max(0,1-i),r>=1?!1:(a=!0,!0)}else n&&(t.fadeStartTimestamp=null);if(t.createdAt!==void 0){let e=d-t.createdAt;if(e>=1625)return!1;if(e>1500){let n=Math.min(1,(e-tn)/125);t.opacity=1-(1-(1-n)*(1-n)),a=!0}else{let t=tn-e;u=u===null?t:Math.min(u,t)}return!0}return n?!0:t.opacity>0}),E(),a?o=Bu(D):(o=null,c=null,u!==null&&(s=window.setTimeout(()=>{s=null,O()},Math.max(0,u))))},O=()=>{s!==null&&(window.clearTimeout(s),s=null),o===null&&(o=Bu(D))},k=()=>{h(),O()};return d(_(()=>[e.selectionVisible,e.selectionBounds,e.selectionBoundsMultiple,e.selectionShouldSnap],([e,t,n,r])=>{if(!e||!t&&(!n||n.length===0)){l=[],O();return}let i;i=n&&n.length>0?n:t?[t]:[];let a=new Map;for(let e of l)a.set(e.id,e);l=i.map((e,t)=>{let n=`selection-${t}`,i=a.get(n);return i?(x(i,e),r&&(i.current.x=i.target.x,i.current.y=i.target.y,i.current.width=i.target.width,i.current.height=i.target.height),i):b(n,e)}),O()})),d(_(()=>[e.dragVisible,e.dragBounds],([e,t])=>{if(!e||!t){f=null,O();return}f?x(f,t):f=b(`drag`,t),O()})),d(_(()=>[e.grabbedBoxes,e.labelInstances],([e,t])=>{let n=e??[],r=t??[],i=new Map;for(let e of n)i.set(e.id,e);let a=new Map;for(let e of p)a.set(e.id,e);for(let e of n)if(!a.has(e.id)){let t=b(e.id,e.bounds,{createdAt:e.createdAt});p.push(t),a.set(e.id,t)}for(let e of p){let t=i.get(e.id);t&&x(e,t.bounds)}let o=new Set;for(let e of r){let t=S(e),n=e.status===`fading`?0:1;for(let r=0;r<t.length;r++){let i=t[r],s=`label-${e.id}-${r}`;o.add(s);let c=a.get(s);if(c)x(c,i,n);else{let e=b(s,i,{opacity:1,targetOpacity:n});p.push(e),a.set(s,e)}}}p=p.filter(e=>e.id.startsWith(`label-`)?o.has(e.id):i.has(e.id)),O()})),v(()=>{h(),O(),window.addEventListener(`resize`,k);let e=null,t=()=>{Math.max(window.devicePixelRatio||1,2)!==a&&(k(),n())},n=()=>{e&&e.removeEventListener(`change`,t),e=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),e.addEventListener(`change`,t)};n(),y(()=>{window.removeEventListener(`resize`,k),e&&e.removeEventListener(`change`,t),o!==null&&Vu(o),s!==null&&window.clearTimeout(s)})}),(()=>{var e=Nv(),n=t;return typeof n==`function`?tt(n,e):t=e,u(t=>U(e,`z-index`,String(ln))),e})()}})),Rv,zv,Bv=n((()=>{G(),R(),q(),wa(),Rv=z(`<div style=position:fixed;pointer-events:none;will-change:opacity;contain:strict;transform:translateZ(0)>`),zv=e=>{let t=xa(),n=t?getComputedStyle(t).borderRadius:`0px`,r=()=>t?.getBoundingClientRect()??null,[i,a]=c(r());if(t){let n=()=>a(r());v(()=>{let e=new ResizeObserver(n);e.observe(t),window.addEventListener(`scroll`,n,{capture:!0,passive:!0}),window.addEventListener(`resize`,n),y(()=>{e.disconnect(),window.removeEventListener(`scroll`,n,{capture:!0}),window.removeEventListener(`resize`,n)})}),d(()=>{e.visible&&n()})}let o=()=>{let e=i();return e?`${e.top}px`:`0`},s=()=>{let e=i();return e?`${e.left}px`:`0`},l=()=>{let e=i();return e?`${e.width}px`:`100%`},f=()=>{let e=i();return e?`${e.height}px`:`100%`};return(()=>{var t=Rv();return U(t,`border-radius`,n),U(t,`z-index`,ln),U(t,`transition`,`opacity 125ms ease-out`),U(t,`box-shadow`,`inset 0 0 50px ${gn}`),u(n=>{var r=o(),i=s(),a=l(),c=f(),u=+!!e.visible;return r!==n.e&&U(t,`top`,n.e=r),i!==n.t&&U(t,`left`,n.t=i),a!==n.a&&U(t,`width`,n.a=a),c!==n.o&&U(t,`height`,n.o=c),u!==n.i&&U(t,`opacity`,n.i=u),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})()}})),Vv,Hv=n((()=>{Vv=(e,t)=>{e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,t)}px`}})),Uv,Wv=n((()=>{wa(),Uv=(e,t)=>{e&&e.focus(t)}})),Gv,Kv=n((()=>{q(),Gv=e=>{if(e<=0)return 8;let t=e*_n;return Math.round(Math.max(4,Math.min(8,t)))}})),qv,Jv=n((()=>{wa(),qv=()=>{let e=xa();if(e){let t=e.getBoundingClientRect();return{width:t.width,height:t.height,offsetLeft:t.left,offsetTop:t.top}}let t=window.visualViewport;return t?{width:t.width,height:t.height,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop}:{width:window.innerWidth,height:window.innerHeight,offsetLeft:0,offsetTop:0}}})),Yv,Xv=n((()=>{q(),Yv=e=>e.isComposing||e.keyCode===229})),Zv,$,Qv=n((()=>{Zv=e=>{if(typeof e==`string`||typeof e==`number`)return String(e);if(!e||typeof e!=`object`)return``;if(Array.isArray(e)){let t=``;for(let n of e){if(!n)continue;let e=Zv(n);e&&(t=t?`${t} ${e}`:e)}return t}let t=``;for(let n in e)e[n]&&(t=t?`${t} ${n}`:n);return t},$=(...e)=>{let t=``;for(let n of e){if(!n)continue;let e=Zv(n);e&&(t=t?`${t} ${e}`:e)}return t}})),$v,ey=n((()=>{$v=e=>e.elementsCount&&e.elementsCount>1?{tagName:`${e.elementsCount} elements`,componentName:void 0}:{tagName:e.tagName||e.componentName||`element`,componentName:e.tagName?e.componentName:void 0}})),ty,ny,ry=n((()=>{G(),ty=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M19.2929 12.7071C19.6834 13.0976 20.3166 13.0976 20.7071 12.7071C21.0976 12.3166 21.0976 11.6834 20.7071 11.2929L12.7071 3.29289C12.5196 3.10536 12.2652 3 12 3C11.7348 3 11.4804 3.10536 11.2929 3.29289L3.29289 11.2929C2.90237 11.6834 2.90237 12.3166 3.29289 12.7071C3.68342 13.0976 4.31658 13.0976 4.70711 12.7071L11 6.41421L11 20C11 20.5523 11.4477 21 12 21C12.5523 21 13 20.5523 13 20L13 6.41422L19.2929 12.7071Z">`),ny=e=>{let t=()=>e.size??10;return(()=>{var n=ty();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),iy,ay,oy=n((()=>{G(),iy=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path class=icon-loader-bar d="M12 2v4"style=animation-delay:0ms></path><path class=icon-loader-bar d="M15 6.8l2-3.5"style=animation-delay:-42ms></path><path class=icon-loader-bar d="M17.2 9l3.5-2"style=animation-delay:-83ms></path><path class=icon-loader-bar d="M18 12h4"style=animation-delay:-125ms></path><path class=icon-loader-bar d="M17.2 15l3.5 2"style=animation-delay:-167ms></path><path class=icon-loader-bar d="M15 17.2l2 3.5"style=animation-delay:-208ms></path><path class=icon-loader-bar d="M12 18v4"style=animation-delay:-250ms></path><path class=icon-loader-bar d="M9 17.2l-2 3.5"style=animation-delay:-292ms></path><path class=icon-loader-bar d="M6.8 15l-3.5 2"style=animation-delay:-333ms></path><path class=icon-loader-bar d="M2 12h4"style=animation-delay:-375ms></path><path class=icon-loader-bar d="M6.8 9l-3.5-2"style=animation-delay:-417ms></path><path class=icon-loader-bar d="M9 6.8l-2-3.5"style=animation-delay:-458ms>`),ay=e=>{let t=()=>e.size??16;return(()=>{var n=iy();return n.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling,u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),sy,cy,ly=n((()=>{G(),q(),Kv(),sy=z(`<svg data-react-grab-arrow class="absolute block z-10"><path>`),cy=e=>{let t=()=>e.position===`bottom`,n=()=>Gv(e.labelWidth??0),r=()=>n()*2,i=()=>n(),a=()=>{let e=r(),n=i(),a=1*Math.SQRT1_2,o=e/2,s=t()?n:0,c=t()?a:n-a,l=+!!t();return`M0 ${s} L${o-a} ${c} A1 1 0 0 ${l} ${o+a} ${c} L${e} ${s} Z`};return(()=>{var n=sy(),o=n.firstChild;return B(o,`fill`,Zt),u(s=>{var c=r(),l=i(),u=`0 0 ${r()} ${i()}`,d=`calc(${e.leftPercent}% + ${e.leftOffsetPx}px)`,f=t()?`0`:void 0,p=t()?void 0:`0`,m=t()?`translateX(-50%) translateY(calc(-100% + 1px))`:`translateX(-50%) translateY(calc(100% - 1px))`,h=a();return c!==s.e&&B(n,`width`,s.e=c),l!==s.t&&B(n,`height`,s.t=l),u!==s.a&&B(n,`viewBox`,s.a=u),d!==s.o&&U(n,`left`,s.o=d),f!==s.i&&U(n,`top`,s.i=f),p!==s.n&&U(n,`bottom`,s.n=p),m!==s.s&&U(n,`transform`,s.s=m),h!==s.h&&B(o,`d`,s.h=h),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),n})()}})),uy,dy,fy,py,my,hy,gy,_y=n((()=>{G(),R(),Qv(),uy=z(`<span> `),dy=z(`<span class=text-[var(--rg-text-secondary)]> `),fy=z(`<span class=text-[var(--rg-text-primary)]> `),py=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-4 h-fit font-medium overflow-hidden text-ellipsis whitespace-nowrap min-w-0">`),my=z(`<button type=button>`),hy=z(`<div>`),gy=e=>{let t=()=>{e.onHoverChange?.(!0)},n=()=>{e.onHoverChange?.(!1)},r=()=>e.componentName?`${e.componentName}.${e.tagName}`:e.tagName,i=()=>(()=>{var t=py();return W(t,j(M,{get when(){return e.componentName},get children(){return[(()=>{var t=uy(),n=t.firstChild;return u(()=>n.data=e.componentName),t})(),(()=>{var t=dy(),n=t.firstChild;return u(()=>n.data=`.${e.tagName}`),t})()]}}),null),W(t,j(M,{get when(){return!e.componentName},get children(){var t=fy(),n=t.firstChild;return u(()=>n.data=e.tagName),t}}),null),t})();return j(M,{get when(){return e.isClickable},get fallback(){return(()=>{var r=hy();return H(r,`click`,e.onClick,!0),r.addEventListener(`mouseleave`,n),r.addEventListener(`mouseenter`,t),W(r,i),u(()=>V(r,$(`contain-layout flex items-center gap-1 max-w-[280px] overflow-hidden`,e.shrink&&`shrink-0`))),r})()},get children(){var a=my();return H(a,`click`,e.onClick,!0),a.addEventListener(`mouseleave`,n),a.addEventListener(`mouseenter`,t),W(a,i),u(t=>{var n=`Open source for ${r()}`,i=$(`contain-layout flex items-center gap-1 max-w-[280px] overflow-hidden cursor-pointer bg-transparent border-none p-0 m-0 text-left`,e.shrink&&`shrink-0`);return n!==t.e&&B(a,`aria-label`,t.e=n),i!==t.t&&V(a,t.t=i),t},{e:void 0,t:void 0}),a}})},Ye([`click`])})),vy,yy,by=n((()=>{G(),vy=z(`<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-1.5 w-auto h-fit self-stretch [border-top-width:0.5px] border-t-[var(--rg-border-subtle)] antialiased">`),yy=e=>(()=>{var t=vy();return W(t,()=>e.children),t})()})),xy,Sy=n((()=>{Qv(),xy=(e,t={})=>(n={})=>{let r=t.variants;if(!r)return e;let i=[e];for(let e in r){let a=n[e]??t.defaultVariants?.[e];if(a===void 0)continue;let o=r[e][String(a)];o&&i.push(o)}return $(...i)}})),Cy,wy,Ty,Ey=n((()=>{G(),R(),Qv(),Sy(),Cy=z(`<div>`),wy=xy(`contain-layout antialiased [font-synthesis:none] bg-[var(--rg-panel-bg)]`,{variants:{shape:{panel:`rounded-[14px] [corner-shape:superellipse(1.25)]`,pill:`rounded-full`}},defaultVariants:{shape:`panel`}}),Ty=e=>{let[t,n]=Se(e,[`shape`,`class`]);return(()=>{var e=Cy();return et(e,xe({get class(){return $(wy({shape:t.shape}),t.class)}},n),!1,!1),e})()}})),Dy,Oy,ky=n((()=>{Dy=null,Oy={claim:e=>{Dy=e},release:e=>{Dy===e&&(Dy=null)},isActive:e=>Dy===e}})),Ay,jy=n((()=>{R(),ky(),wa(),Ay=e=>{let t=Symbol(),n=Ca(n=>{Oy.isActive(t)&&(ra(n)||(n.code===`Enter`?e.onEnter?.(n):n.code===`Escape`&&e.onEscape?.(n)))});return v(()=>{Oy.claim(t),window.addEventListener(`keydown`,n,{capture:!0})}),y(()=>{Oy.release(t),window.removeEventListener(`keydown`,n,{capture:!0})}),{claimFocus:()=>Oy.claim(t)}}})),My,Ny,Py=n((()=>{G(),My=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M10.7071 21.2071C10.3166 21.5976 9.68342 21.5976 9.29289 21.2071L3.29289 15.2071C2.90237 14.8166 2.90237 14.1834 3.29289 13.7929L9.29289 7.79289C9.68342 7.40237 10.3166 7.40237 10.7071 7.79289C11.0976 8.18342 11.0976 8.81658 10.7071 9.20711L6.41421 13.5H16C16.5523 13.5 17 13.0523 17 12.5V3.5C17 2.94772 17.4477 2.5 18 2.5C18.5523 2.5 19 2.94772 19 3.5V12.5C19 14.1569 17.6569 15.5 16 15.5H6.41421L10.7071 19.7929C11.0976 20.1834 11.0976 20.8166 10.7071 21.2071Z">`),Ny=e=>{let t=()=>e.size??10;return(()=>{var n=My();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),Fy,Iy,Ly,Ry=n((()=>{G(),R(),Qv(),Sy(),Fy=z(`<button>`),Iy=xy(`contain-layout shrink-0 flex items-center justify-center cursor-pointer transition-all press-scale`,{variants:{variant:{chip:`px-[3px] py-px h-[17px] rounded-sm bg-[var(--rg-surface-hover)] [border-width:0.5px] border-solid border-[var(--rg-border-button)] hover:bg-[var(--rg-surface-active)] text-[var(--rg-text-primary)]`,destructive:`px-[3px] py-px h-[17px] rounded-sm bg-[var(--rg-error-bg)] hover:bg-[var(--rg-error-bg-hover)] text-[var(--rg-error-text)]`,ghost:`rounded-sm bg-transparent hover:bg-[var(--rg-surface-hover)] border-none outline-none p-0`}},defaultVariants:{variant:`chip`}}),Ly=e=>{let[t,n]=Se(e,[`variant`,`class`,`type`]);return(()=>{var e=Fy();return et(e,xe({get type(){return t.type??`button`},get class(){return $(Iy({variant:t.variant}),t.class)}},n),!1,!1),e})()}})),zy,By,Vy,Hy,Uy,Wy,Gy=n((()=>{G(),R(),jy(),Py(),Ry(),by(),zy=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">No`),By=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Copy`),Vy=z(`<span class="text-[var(--rg-error-text)] text-[13px] leading-3.5 font-sans font-medium">Yes`),Hy=z(`<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">`),Uy=z(`<div data-react-grab-discard-prompt class="contain-layout shrink-0 flex flex-col justify-center items-end w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit"> `),Wy=e=>{let t=()=>e.showCancel??!0,{claimFocus:n}=Ay({onEnter:t=>{t.preventDefault(),t.stopPropagation();let n=t.composedPath()[0],r=n instanceof HTMLElement?n:null;if(r?.closest(`[data-react-grab-discard-copy]`)){e.onCopy?.();return}if(r?.closest(`[data-react-grab-discard-no]`)){e.onCancel?.();return}e.onConfirm?.()},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.cancelOnEscape?e.onCancel?.():e.onConfirm?.()}});return(()=>{var r=Uy(),i=r.firstChild.firstChild.firstChild;return H(r,`click`,n,!0),H(r,`pointerdown`,n,!0),W(r,j(yy,{get children(){var n=Hy();return W(n,j(M,{get when(){return t()},get children(){return j(Ly,{"data-react-grab-discard-no":!0,get onClick(){return e.onCancel},get children(){return zy()}})}}),null),W(n,j(M,{get when(){return e.onCopy},get children(){return j(Ly,{"data-react-grab-discard-copy":!0,get onClick(){return e.onCopy},get children(){return By()}})}}),null),W(n,j(Ly,{variant:`destructive`,class:`gap-0.5`,"data-react-grab-discard-yes":!0,get onClick(){return e.onConfirm},get children(){return[Vy(),j(Ny,{size:10,class:`text-[var(--rg-error-text)] opacity-50`})]}}),null),n}}),null),u(()=>i.data=e.label??`Discard?`),r})()},Ye([`pointerdown`,`click`])})),Ky,qy,Jy=n((()=>{G(),Ky=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M7 2C4.23858 2 2 4.23858 2 7V15C2 17.7614 4.23858 20 7 20H8C8.55228 20 9 19.5523 9 19C9 18.4477 8.55228 18 8 18H7C5.34315 18 4 16.6569 4 15V7C4 5.34315 5.34315 4 7 4H17C18.6569 4 20 5.34315 20 7V15C20 16.6569 18.6569 18 17 18H14.4142L16.2071 16.2071C16.5976 15.8166 16.5976 15.1834 16.2071 14.7929C15.8166 14.4024 15.1834 14.4024 14.7929 14.7929L11.2929 18.2929C11.197 18.3888 11.1247 18.4993 11.0759 18.6172C11.027 18.7351 11 18.8644 11 19C11 19.2728 11.1093 19.5201 11.2864 19.7005C11.2889 19.7031 11.2914 19.7056 11.2939 19.7081L14.7929 23.2071C15.1834 23.5976 15.8166 23.5976 16.2071 23.2071C16.5976 22.8166 16.5976 22.1834 16.2071 21.7929L14.4142 20H17C19.7614 20 22 17.7614 22 15V7C22 4.23858 19.7614 2 17 2H7Z">`),qy=e=>{let t=()=>e.size??12;return(()=>{var n=Ky();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),Yy,Xy,Zy,Qy,$y,eb=n((()=>{G(),R(),jy(),Jy(),Ry(),by(),Yy=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Retry`),Xy=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Ok`),Zy=z(`<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">`),Qy=z(`<div data-react-grab-error role=alert aria-live=assertive class="contain-layout shrink-0 flex flex-col justify-center items-end w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-start gap-1 px-2 w-full h-fit"><span class="text-[var(--rg-error-text)] text-[13px] leading-4 font-sans font-medium overflow-hidden line-clamp-5"> `),$y=e=>{let{claimFocus:t}=Ay({onEnter:t=>{if(oh(t,`data-react-grab-error-ok`)){t.preventDefault(),t.stopPropagation(),e.onAcknowledge?.();return}t.preventDefault(),t.stopPropagation(),e.onRetry?.()},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.onAcknowledge?.()}}),n=()=>!!(e.onRetry||e.onAcknowledge);return(()=>{var r=Qy(),i=r.firstChild,a=i.firstChild,o=a.firstChild;return H(r,`click`,t,!0),H(r,`pointerdown`,t,!0),W(r,j(M,{get when(){return n()},get children(){return j(yy,{get children(){var t=Zy();return W(t,j(M,{get when(){return e.onRetry},get children(){return j(Ly,{"data-react-grab-retry":!0,class:`gap-1`,"aria-keyshortcuts":`Enter`,get onClick(){return e.onRetry},get children(){return[Yy(),j(qy,{size:10,"aria-hidden":`true`,class:`text-[var(--rg-text-secondary)]`})]}})}}),null),W(t,j(M,{get when(){return e.onAcknowledge},get children(){return j(Ly,{"data-react-grab-error-ok":!0,class:`gap-1`,"aria-keyshortcuts":`Escape`,get onClick(){return e.onAcknowledge},get children(){return Xy()}})}}),null),t}})}}),null),u(t=>{var r={"pt-1.5 pb-1":n(),"py-1.5":!n()},s=e.error,c=e.error;return t.e=Qe(i,r,t.e),s!==t.t&&B(a,`title`,t.t=s),c!==t.a&&(o.data=t.a=c),t},{e:void 0,t:void 0,a:void 0}),r})()},Ye([`pointerdown`,`click`])})),tb,nb,rb=n((()=>{G(),tb=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M7.5 12C7.5 13.3807 6.38071 14.5 5 14.5C3.61929 14.5 2.5 13.3807 2.5 12C2.5 10.6193 3.61929 9.5 5 9.5C6.38071 9.5 7.5 10.6193 7.5 12ZM14.5 12C14.5 13.3807 13.3807 14.5 12 14.5C10.6193 14.5 9.5 13.3807 9.5 12C9.5 10.6193 10.6193 9.5 12 9.5C13.3807 9.5 14.5 10.6193 14.5 12ZM19 14.5C20.3807 14.5 21.5 13.3807 21.5 12C21.5 10.6193 20.3807 9.5 19 9.5C17.6193 9.5 16.5 10.6193 16.5 12C16.5 13.3807 17.6193 14.5 19 14.5Z">`),nb=e=>{let t=()=>e.size??14;return(()=>{var n=tb();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),ib,ab,ob=n((()=>{G(),ib=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM17.7071 10.7071C18.0976 10.3166 18.0976 9.68342 17.7071 9.29289C17.3166 8.90237 16.6834 8.90237 16.2929 9.29289L11 14.5858L8.70711 12.2929C8.31658 11.9024 7.68342 11.9024 7.29289 12.2929C6.90237 12.6834 6.90237 13.3166 7.29289 13.7071L10.2929 16.7071C10.6834 17.0976 11.3166 17.0976 11.7071 16.7071L17.7071 10.7071Z">`),ab=e=>{let t=()=>e.size??14;return(()=>{var n=ib();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),sb,cb,lb,ub,db,fb,pb=n((()=>{G(),R(),q(),jy(),sh(),Py(),rb(),Qv(),Ry(),Ey(),ob(),sb=z(`<button type=button data-react-grab-ignore-events data-react-grab-more-options aria-label="More options">`),cb=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Keep`),lb=z(`<div class="contain-layout shrink-0 flex items-center justify-between gap-2 pt-1.5 pb-1 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap min-w-0"> </span><div class="contain-layout shrink-0 flex items-center gap-2 h-fit">`),ub=z(`<div class="contain-layout shrink-0 flex items-center gap-0.5 py-1.5 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap min-w-0"> `),db=e=>(()=>{var t=sb();return H(t,`click`,t=>{t.stopImmediatePropagation(),e.onClick()}),H(t,`pointerdown`,e=>{e.stopImmediatePropagation()}),W(t,j(nb,{size:14,"aria-hidden":`true`,class:`opacity-50 group-hover:opacity-100 transition-opacity`})),u(()=>V(t,$(Iy({variant:`ghost`}),`group size-4 text-[var(--rg-text-secondary)] hover:text-[var(--rg-text-primary)]`))),t})(),fb=e=>{let t,n,[r,i]=c(!1),[a,o]=c(!1),s=()=>r()?`Copied`:e.statusText,l=()=>{t!==void 0&&window.clearTimeout(t),n!==void 0&&window.clearTimeout(n),o(!0),e.onFadingChange?.(!0),e.onShowContextMenu?.()},d=()=>{r()||(i(!0),t=window.setTimeout(()=>{o(!0),e.onFadingChange?.(!0),n=window.setTimeout(()=>{e.onDismiss?.()},125)},tn-125))},{claimFocus:f}=Ay({onEnter:e=>{if(oh(e,`data-react-grab-more-options`)){e.preventDefault(),e.stopPropagation(),l();return}oh(e,`data-react-grab-context-menu`)||(e.preventDefault(),e.stopPropagation(),d())},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.onDismiss?.()}});return y(()=>{t!==void 0&&window.clearTimeout(t),n!==void 0&&window.clearTimeout(n)}),j(Ty,{shape:`pill`,"data-react-grab-completion":!0,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,class:`shrink-0 flex flex-col justify-center items-end w-fit h-fit max-w-[280px] transition-opacity duration-100 ease-out`,get style(){return{opacity:+!a()}},onPointerDown:f,onClick:f,get children(){return[j(M,{get when(){return vt(()=>!r())()&&e.onDismiss},get children(){var t=lb(),n=t.firstChild,i=n.firstChild,a=n.nextSibling;return W(a,j(M,{get when(){return e.onShowContextMenu},get children(){return j(db,{onClick:l})}}),null),W(a,j(M,{get when(){return e.onDismiss},get children(){return j(Ly,{"data-react-grab-dismiss":!0,class:`gap-1`,"aria-keyshortcuts":`Enter`,onClick:d,get disabled(){return r()},get"aria-disabled"(){return r()},get children(){return[cb(),j(M,{get when(){return!r()},get children(){return j(Ny,{size:10,class:`text-[var(--rg-text-secondary)]`})}})]}})}}),null),u(()=>i.data=s()),t}}),j(M,{get when(){return r()||!e.onDismiss},get children(){var t=ub(),n=t.firstChild,r=n.firstChild;return W(t,j(ab,{size:14,"aria-hidden":`true`,class:`text-[var(--rg-text-primary-85)] shrink-0`}),n),W(t,j(M,{get when(){return e.onShowContextMenu},get children(){return j(db,{onClick:l})}}),null),u(()=>r.data=s()),t}})]}})}})),mb,hb,gb,_b,vb,yb,bb,xb,Sb=n((()=>{G(),R(),q(),Hv(),Wv(),Kv(),Jv(),Xv(),wa(),Qv(),ey(),ry(),oy(),ly(),_y(),by(),Ey(),Gy(),eb(),pb(),mb=z(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 py-1.5 px-2 w-full h-fit"><span class="shimmer-text text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap"> `),hb=z(`<div class="contain-layout shrink-0 flex flex-col items-start w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit px-2 py-1.5">`),gb=z(`<button data-react-grab-submit type=button aria-label="Submit context"class="contain-layout shrink-0 flex items-center justify-center size-4 rounded-full bg-[var(--rg-submit-bg)] cursor-pointer ml-1 interactive-scale a11y-hitbox">`),_b=z(`<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events data-react-grab-input aria-label="Add context for selected element"aria-keyshortcuts="Enter Escape"class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-medium bg-transparent border-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"placeholder="Add context"rows=1 style=field-sizing:content;min-height:16px;scrollbar-width:none>`),vb=z(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start w-fit h-fit min-w-[150px] max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 w-fit h-fit px-2 max-w-full">`),yb=z(`<div data-react-grab-ignore-events data-react-grab-selection-label class="fixed font-sans text-[13px] antialiased select-none">`),bb={left:Rn,top:Rn,arrowLeftPercent:50,arrowLeftOffset:0,edgeOffsetX:0},xb=e=>{let t,n,r,i=!1,[a,o]=c(0),[s,l]=c(0),[p,m]=c(0),[h,g]=c(0),[b,x]=c(!1),[S,C]=c(!1),w=()=>e.status!==`copying`&&e.status!==`copied`&&e.status!==`fading`&&e.status!==`error`,T=()=>e.status===`copied`||e.status===`fading`,ee=()=>!!(e.isPromptMode||e.discardPrompt||T()&&(e.onDismiss||e.onShowContextMenu)||e.status===`error`&&(e.onAcknowledgeError||e.onRetry)),E,te=e=>{i=e},D=()=>{g(e=>e+1)};v(()=>{let e=xa();if(E=new ResizeObserver(r=>{for(let a of r){let r=a.target.getBoundingClientRect();a.target===t&&!i?(o(r.width),l(r.height)):a.target===n?m(r.width):a.target===e&&D()}}),e&&E.observe(e),t){let e=t.getBoundingClientRect();o(e.width),l(e.height),E.observe(t)}n&&(m(n.getBoundingClientRect().width),E.observe(n)),window.addEventListener(`scroll`,D,!0),window.addEventListener(`resize`,D),window.visualViewport?.addEventListener(`resize`,D),window.visualViewport?.addEventListener(`scroll`,D)}),y(()=>{E?.disconnect(),window.removeEventListener(`scroll`,D,!0),window.removeEventListener(`resize`,D),window.visualViewport?.removeEventListener(`resize`,D),window.visualViewport?.removeEventListener(`scroll`,D)});let O=()=>`${e.tagName??``}:${e.componentName??``}`,k=f(t=>{h();let n=O(),r=n===t.elementIdentity?t:{position:bb,computedArrowPosition:null,hadValidBounds:!1,elementIdentity:n},i=e.selectionBounds,o=a(),c=s(),l=o>0&&c>0,u=i&&i.width>0&&i.height>0;if(!l||!u)return{position:r.hadValidBounds?r.position:bb,computedArrowPosition:r.computedArrowPosition,hadValidBounds:r.hadValidBounds,elementIdentity:n};let d=qv(),f=d.offsetLeft,m=d.offsetTop,g=f+d.width,_=m+d.height;if(!(i.x+i.width>f&&i.x<g&&i.y+i.height>m&&i.y<_))return{position:bb,computedArrowPosition:r.computedArrowPosition,hadValidBounds:r.hadValidBounds,elementIdentity:n};let v=i.x+i.width/2,y=e.mouseX??v,b=i.y+i.height,x=i.y,S=e.hideArrow?0:Gv(p()),C=y,w=0,T=b+S+4,ee=C-o/2,E=C+o/2;E>g-8&&(w=g-8-E),ee+w<f+8&&(w=f+8-ee);let te=c+S+4,D=T+c<=_-8;D||(T=x-te),T<m+8&&(T=m+8);let k=o/2,ne=k-w,re=Math.min(16,k),ie=Math.max(o-16,k),ae=Math.max(re,Math.min(ie,ne))-k;return{position:{left:C,top:T,arrowLeftPercent:50,arrowLeftOffset:ae,edgeOffsetX:w},computedArrowPosition:D?`bottom`:`top`,hadValidBounds:!0,elementIdentity:n}},{position:bb,computedArrowPosition:null,hadValidBounds:!1,elementIdentity:``}),ne=()=>k().computedArrowPosition??`bottom`,re=()=>k().hadValidBounds;d(_(()=>e.selectionLabelShakeCount,()=>C(!0),{defer:!0}));let ie=t=>{if(Yv(t))return;t.stopImmediatePropagation();let n=t.code===`Enter`&&!t.shiftKey,r=t.code===`Escape`;n?(t.preventDefault(),e.onSubmit?.()):r&&(t.preventDefault(),e.onConfirmDismiss?.())},ae=t=>{let n=t.target;n instanceof HTMLTextAreaElement&&(Vv(n,95),e.onInputChange?.(n.value))},A=()=>$v({tagName:e.tagName,componentName:e.componentName,elementsCount:e.elementsCount}),oe=f(()=>!(e.error||e.discardPrompt||w()&&e.isPromptMode)),se=t=>{t.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen()},ce=t=>{t.stopImmediatePropagation(),w()&&e.isPromptMode&&!e.discardPrompt&&e.onSubmit&&r&&Uv(r,{preventScroll:!0})},le=()=>re()&&(T()||e.status===`error`);return j(M,{get when(){return vt(()=>e.visible!==!1)()&&(e.selectionBounds||le())},get children(){var i=yb();i.addEventListener(`mouseleave`,()=>e.onHoverChange?.(!1)),i.addEventListener(`mouseenter`,()=>e.onHoverChange?.(!0)),i.$$click=e=>{e.stopImmediatePropagation()},i.$$pointerdown=ce;var a=t;return typeof a==`function`?tt(a,i):t=i,U(i,`z-index`,`${cn}`),U(i,`transition`,`opacity 125ms ease-out, filter 125ms ease-out`),W(i,j(M,{get when(){return!e.hideArrow},get children(){return j(cy,{get position(){return ne()},get leftPercent(){return k().position.arrowLeftPercent},get leftOffsetPx(){return k().position.arrowLeftOffset},get labelWidth(){return p()}})}}),null),W(i,j(M,{get when(){return vt(()=>!!T())()&&!e.error},get children(){return j(fb,{get statusText(){return e.statusText??`Copied`},get onDismiss(){return e.onDismiss},onFadingChange:x,get onShowContextMenu(){return e.onShowContextMenu}})}}),null),W(i,j(Ty,{ref:e=>n=e,get shape(){return oe()?`pill`:`panel`},get class(){return $(`flex items-center gap-[5px] w-fit h-fit p-0`,S()&&`animate-shake`)},get style(){return{display:T()&&!e.error?`none`:void 0}},onAnimationEnd:()=>C(!1),get children(){return[j(M,{get when(){return e.status===`copying`},get children(){var t=mb(),n=t.firstChild,r=n.firstChild,i=r.firstChild;return W(n,j(ay,{size:13,class:`text-[var(--rg-text-secondary)] shrink-0`}),r),u(()=>i.data=e.statusText??`Grabbing…`),t}}),j(M,{get when(){return vt(()=>!!(w()&&!e.isPromptMode))()&&!e.discardPrompt},get children(){var t=hb(),n=t.firstChild;return W(n,j(gy,{get tagName(){return A().tagName},get componentName(){return A().componentName},get isClickable(){return!!(e.filePath&&e.onOpen)},onClick:se,onHoverChange:te,shrink:!0})),t}}),j(M,{get when(){return vt(()=>!!(w()&&e.isPromptMode))()&&!e.discardPrompt},get children(){var t=vb(),n=t.firstChild;return W(n,j(gy,{get tagName(){return A().tagName},get componentName(){return A().componentName},get isClickable(){return!!(e.filePath&&e.onOpen)},onClick:se,onHoverChange:te})),W(t,j(yy,{get children(){var t=_b(),n=t.firstChild;return n.$$keydown=ie,n.$$input=ae,tt(t=>{r=t,e.onSubmit&&queueMicrotask(()=>{Uv(t,{preventScroll:!0}),Vv(t,95)})},n),U(n,`max-height`,`95px`),W(t,j(M,{get when(){return e.onSubmit},get children(){var t=gb();return t.$$click=()=>e.onSubmit?.(),W(t,j(ny,{size:10,"aria-hidden":`true`,class:`text-[var(--rg-submit-fg)]`})),t}}),null),u(()=>n.readOnly=!e.onSubmit),u(()=>n.value=e.inputValue??``),t}}),null),t}}),j(M,{get when(){return e.discardPrompt},keyed:!0,children:e=>j(Wy,{get label(){return vt(()=>!!e.isKeyboardSelection)()?`Discard selection?`:e.label},get showCancel(){return!e.isKeyboardSelection},get cancelOnEscape(){return e.cancelOnEscape},get onConfirm(){return e.onConfirm},get onCopy(){return e.onCopy},onCancel:()=>{e.isKeyboardSelection||e.onCancel?.(),Uv(r,{preventScroll:!0})}})}),j(M,{get when(){return e.error},get children(){return j($y,{get error(){return e.error},get onAcknowledge(){return e.onAcknowledgeError},get onRetry(){return e.onRetry}})}})]}}),null),u(t=>{var n=`${k().position.top}px`,r=`${k().position.left}px`,a=`translateX(calc(-50% + ${k().position.edgeOffsetX}px))`,o=ee()?`auto`:`none`,s=e.status===`fading`||b()?0:1,c=`drop-shadow(${Qt}) blur(${e.status===`fading`||b()?`3px`:`0`})`;return n!==t.e&&U(i,`top`,t.e=n),r!==t.t&&U(i,`left`,t.t=r),a!==t.a&&U(i,`transform`,t.a=a),o!==t.o&&U(i,`pointer-events`,t.o=o),s!==t.i&&U(i,`opacity`,t.i=s),c!==t.n&&U(i,`filter`,t.n=c),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),i}})},Ye([`pointerdown`,`click`,`input`,`keydown`])})),Cb,wb,Tb=n((()=>{G(),Qv(),q(),Cb=z(`<span style="transition-property:transform;transition-timing-function:cubic-bezier(0.32, 0.72, 0, 1)"><svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M20.8977 4.02356L21.8277 4.39121C22.3784 2.99813 21.0382 1.60206 19.6238 2.09546L3.47334 7.72936C1.38661 8.45728 1.49021 11.443 3.6224 12.0245L10.1289 13.799L11.2331 19.8724C11.638 22.0991 14.7072 22.4019 15.5393 20.2972L21.8277 4.39121L20.8977 4.02356Z">`),wb=e=>{let t=()=>e.size??14,n=()=>e.rotationDeg??0;return(()=>{var r=Cb(),i=r.firstChild;return U(r,`transition-duration`,`180ms`),u(a=>{var o=$(`inline-flex items-center justify-center will-change-transform`,e.class),s=`rotate(${n()}deg)`,c=t(),l=t();return o!==a.e&&V(r,a.e=o),s!==a.t&&U(r,`transform`,a.t=s),c!==a.a&&B(i,`width`,a.a=c),l!==a.o&&B(i,`height`,a.o=l),a},{e:void 0,t:void 0,a:void 0,o:void 0}),r})()}})),Eb,Db,Ob,kb,Ab=n((()=>{G(),R(),Qv(),q(),Eb=z(`<div> `),Db=0,Ob=()=>Date.now()-Db<800,kb=e=>{let[t,n]=c(!1),[r,i]=c(!0),a;d(_(()=>e.visible,e=>{a!==void 0&&(clearTimeout(a),a=void 0),e?Ob()?(i(!1),n(!0)):(i(!0),a=setTimeout(()=>{n(!0)},400)):(t()&&(Db=Date.now()),n(!1))})),y(()=>{a!==void 0&&clearTimeout(a),t()&&(Db=Date.now())});let o=()=>e.position===`top`||e.position===`bottom`?{left:`50%`,translate:`-50%`,"z-index":`${cn}`}:{top:`50%`,translate:`0 -50%`,"z-index":`${cn}`};return j(M,{get when(){return t()},get children(){var t=Eb(),n=t.firstChild;return u(i=>{var a=$(`absolute whitespace-nowrap px-2 py-0.5 rounded-full text-[10px] font-sans font-medium leading-4 pointer-events-none`,`bg-[var(--rg-panel-bg)] text-[var(--rg-text-primary)] [box-shadow:var(--rg-shadow)]`,e.position===`top`&&`bottom-full mb-2.5`,e.position===`bottom`&&`top-full mt-2.5`,e.position===`left`&&`right-full mr-2.5`,e.position===`right`&&`left-full ml-2.5`,r()&&`animate-tooltip-fade-in`),s=o(),c=e.textContent;return a!==i.e&&V(t,i.e=a),i.t=$e(t,s,i.t),c!==i.a&&(n.data=i.a=c),i},{e:void 0,t:void 0,a:void 0}),t}})}})),jb,Mb,Nb=n((()=>{G(),R(),Ab(),jb=z(`<div><button data-react-grab-ignore-events type=button>`),Mb=e=>(()=>{var t=jb(),n=t.firstChild;H(n,`mouseleave`,e.onMouseLeave),H(n,`mouseenter`,e.onMouseEnter),H(n,`contextmenu`,t=>e.onContextMenu?.(t)),H(n,`click`,e.onClick,!0);var r=e.ref;return typeof r==`function`?tt(r,n):e.ref=n,W(n,()=>e.icon),W(t,j(M,{get when(){return e.tooltip},children:t=>j(kb,{get visible(){return!!e.tooltipVisible},get position(){return e.tooltipPosition??`top`},get textContent(){return t()}})}),null),u(r=>{var i=e.wrapperClass,a=e.isToggle?``:void 0,o=e.actionId,s=e.label,c=!!e.isActive,l=e.class;return i!==r.e&&V(t,r.e=i),a!==r.t&&B(n,`data-react-grab-toolbar-toggle`,r.t=a),o!==r.a&&B(n,`data-react-grab-toolbar-action`,r.a=o),s!==r.o&&B(n,`aria-label`,r.o=s),c!==r.i&&B(n,`aria-pressed`,r.i=c),l!==r.n&&V(n,r.n=l),r},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),t})(),Ye([`click`])})),Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb=n((()=>{q(),Jv(),Dm(),Pb=e=>e===`top`||e===`bottom`,Fb=e=>{let t=Pb(e);return{width:t?30:16,height:t?16:30}},Ib=(e,t,n,r)=>{let i=qv(),a=i.width,o=i.height,s=i.offsetLeft+16,c=Math.max(s,i.offsetLeft+a-n-16),l=i.offsetTop+16,u=Math.max(l,i.offsetTop+o-r-16);if(Pb(e)){let r=Math.max(0,a-n-32);return{x:Math.min(c,Math.max(s,i.offsetLeft+16+r*t)),y:e===`top`?l:u}}let d=Math.max(0,o-r-32),f=Math.min(u,Math.max(l,i.offsetTop+16+d*t));return{x:e===`left`?s:c,y:f}},Lb=(e,t,n,r,i)=>{let a=qv(),o=a.width,s=a.height;if(Pb(e)){let e=o-r-32;return e<=0?kn:Math.max(0,Math.min(1,(t-a.offsetLeft-16)/e))}let c=s-i-32;return c<=0?kn:Math.max(0,Math.min(1,(n-a.offsetTop-16)/c))},Rb=(e,t,n,r,i)=>{let a=qv(),o=a.width,s=a.height,{width:c,height:l}=n,u;if(Pb(t)){let n=(c-r)/2;u={x:Em(e.x-n,a.offsetLeft+16,a.offsetLeft+o-c-16),y:t===`top`?a.offsetTop+16:a.offsetTop+s-l-16}}else{let n=(l-i)/2,r=Em(e.y-n,a.offsetTop+16,a.offsetTop+s-l-16);u={x:t===`left`?a.offsetLeft+16:a.offsetLeft+o-c-16,y:r}}let d=Lb(t,u.x,u.y,c,l);return{position:u,ratio:d}},zb=(e,t,n,r)=>{let i=qv(),{width:a,height:o}=n,{width:s,height:c}=r;switch(e){case`top`:case`bottom`:{let n=(a-s)/2;return{x:Em(t.x+n,i.offsetLeft,i.offsetLeft+i.width-s),y:e===`top`?i.offsetTop:i.offsetTop+i.height-c}}case`left`:case`right`:{let n=(o-c)/2,r=Em(t.y+n,i.offsetTop,i.offsetTop+i.height-c);return{x:e===`left`?i.offsetLeft:i.offsetLeft+i.width-s,y:r}}}},Bb=(e,t,n,r,i,a)=>{let o=qv(),s=o.width,c=o.height,l=e+i*150,u=t+a*150,d=u-o.offsetTop+r/2,f=o.offsetTop+c-u-r/2,p=l-o.offsetLeft+n/2,m=o.offsetLeft+s-l-n/2,h=Math.min(d,f,p,m),g=e=>Em(e,o.offsetLeft+16,o.offsetLeft+s-n-16),_=e=>Em(e,o.offsetTop+16,o.offsetTop+c-r-16);return h===d?{edge:`top`,x:g(l),y:o.offsetTop+16}:h===p?{edge:`left`,x:o.offsetLeft+16,y:_(u)}:h===m?{edge:`right`,x:o.offsetLeft+s-n-16,y:_(u)}:{edge:`bottom`,x:g(l),y:o.offsetTop+c-r-16}}})),Hb,Ub,Wb=n((()=>{G(),Hb=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M9.29289 16.7071C8.90237 16.3166 8.90237 15.6834 9.29289 15.2929L12.5858 12L9.29289 8.70711C8.90237 8.31658 8.90237 7.68342 9.29289 7.29289C9.68342 6.90237 10.3166 6.90237 10.7071 7.29289L14.7071 11.2929C14.8946 11.4804 15 11.7348 15 12C15 12.2652 14.8946 12.5196 14.7071 12.7071L10.7071 16.7071C10.3166 17.0976 9.68342 17.0976 9.29289 16.7071Z">`),Ub=e=>{let t=()=>e.size??14;return(()=>{var n=Hb();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),Gb,Kb,qb=n((()=>{G(),Qv(),Vb(),Wb(),Gb=z(`<div data-react-grab-toolbar-panel><div><div><div></div></div></div><button data-react-grab-ignore-events data-react-grab-toolbar-collapse type=button class="group contain-layout shrink-0 flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox">`),Kb=e=>{let t=()=>e.snapEdge??`bottom`,n=()=>!Pb(t()),r=()=>e.isCollapsed?`duration-140`:`duration-220`,i=()=>n()?`transition-[grid-template-rows] ${r()} ease-drawer`:`transition-[grid-template-columns] ${r()} ease-drawer`,a=()=>n()?`min-h-0`:`min-w-0`,o=()=>e.isCollapsed?`${{top:`rounded-t-none rounded-b-[10px]`,bottom:`rounded-b-none rounded-t-[10px]`,left:`rounded-l-none rounded-r-[10px]`,right:`rounded-r-none rounded-l-[10px]`}[t()]} ${n()?`px-0.25 py-2`:`px-2 py-0.25`}`:``,s=()=>{let n=e.isCollapsed;switch(t()){case`top`:return n?`rotate-90`:`-rotate-90`;case`bottom`:return n?`-rotate-90`:`rotate-90`;case`left`:return n?`rotate-0`:`rotate-180`;case`right`:return n?`rotate-180`:`rotate-0`;default:return`-rotate-90`}},c=()=>{if(e.isChevronPressed)return n()?`scale(0.97, 1)`:`scale(1, 0.97)`},l=()=>e.isChevronPressed?`transition-[padding,border-radius,transform] duration-60 ease-[cubic-bezier(0,0,0.2,1)]`:`transition-[padding,border-radius,transform] ${r()} ease-drawer`;return(()=>{var t=Gb(),r=t.firstChild,d=r.firstChild,f=d.firstChild,p=r.nextSibling;return H(t,`click`,e.onPanelClick,!0),H(t,`animationend`,e.onAnimationEnd),W(f,()=>e.actionButtons),H(p,`pointercancel`,e.onCollapsePointerLeave),H(p,`pointerleave`,e.onCollapsePointerLeave),H(p,`pointerup`,e.onCollapsePointerUp,!0),H(p,`pointerdown`,e.onCollapsePointerDown),H(p,`click`,e.onCollapseClick,!0),W(p,j(Ub,{size:18,get class(){return $(`text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)] transition-[transform,color] duration-150 ease-drawer -m-0.5`,s())}})),u(s=>{var u=$(`flex items-center justify-center rounded-[13px] antialiased relative overflow-visible [font-synthesis:none]`,l(),n()&&`flex-col`,`bg-[var(--rg-panel-bg)] [box-shadow:var(--rg-shadow)]`,!e.isCollapsed&&(n()?`px-1.5 gap-0 py-2`:`py-1.5 gap-0 px-2`),o(),e.isShaking&&(n()?`animate-shake-vertical`:`animate-shake`)),m=e.transformOrigin,h=c(),g=$(`grid relative overflow-visible`,i(),e.isCollapsed?n()?`grid-rows-[0fr] pointer-events-none`:`grid-cols-[0fr] pointer-events-none`:n()?`grid-rows-[1fr]`:`grid-cols-[1fr]`),_=$(`flex`,n()?`flex-col items-center min-h-0`:`items-center min-w-0`,e.isCollapsed?`opacity-0`:`opacity-100`,e.isCollapsed?`transition-opacity duration-100 ease-drawer`:`transition-opacity duration-180 ease-drawer delay-[80ms]`),v=$(`relative overflow-visible flex`,n()?`flex-col items-center`:`items-center`,a()),y=e.isCollapsed?`Expand toolbar`:`Collapse toolbar`,b=!e.isCollapsed;return u!==s.e&&V(t,s.e=u),m!==s.t&&U(t,`transform-origin`,s.t=m),h!==s.a&&U(t,`transform`,s.a=h),g!==s.o&&V(r,s.o=g),_!==s.i&&V(d,s.i=_),v!==s.n&&V(f,s.n=v),y!==s.s&&B(p,`aria-label`,s.s=y),b!==s.h&&B(p,`aria-expanded`,s.h=b),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),t})()},Ye([`click`,`pointerup`])})),Jb,Yb=n((()=>{R(),q(),Uu(),wa(),Vb(),Jb=e=>{let[t,n]=c(!1),[r,i]=c(!1),[a,o]=c(!1),[s,l]=c({x:0,y:0}),u={x:0,y:0},d={x:0,y:0,time:0},f={x:0,y:0},p=!1,m,h,g=null,_=()=>{g?.abort(),g=null},v=()=>{m!==void 0&&(Vu(m),m=void 0)},b=t=>{if(!a()){if(Math.hypot(t.clientX-f.x,t.clientY-f.y)<=5)return;o(!0),e.onDragStart()}let n=performance.now(),r=n-d.time;r>0&&l({x:(t.clientX-d.x)/r,y:(t.clientY-d.y)/r}),d={x:t.clientX,y:t.clientY,time:n};let i=t.clientX-u.x,s=t.clientY-u.y;e.onPositionUpdate({x:i,y:s})},x=()=>{_();let t=a();if(n(!1),!t)return;p=!0;let r=e.getContainerRef(),o=r?.getBoundingClientRect();if(!o)return;let c=s(),l=Bb(o.left,o.top,o.width,o.height,c.x,c.y),u=Lb(l.edge,l.x,l.y,o.width,o.height);e.onSnapEdgeChange(l.edge,u),i(!0),v(),m=Bu(()=>{let t=r?.getBoundingClientRect(),n=t?{width:t.width,height:t.height}:e.getExpandedDimensions();m=Bu(()=>{m=void 0;let t=Ib(l.edge,u,n.width,n.height);e.onSnapComplete({edge:l.edge,ratio:u,position:t,expandedDimensions:n}),h=setTimeout(()=>{i(!1),e.onSnapAnimationEnd?.()},300)})})},S=Ca(t=>{if(t.button!==0||e.isCollapsed()||r())return;let i=e.getContainerRef()?.getBoundingClientRect();if(!i)return;f={x:t.clientX,y:t.clientY},u={x:t.clientX-i.left,y:t.clientY-i.top},n(!0),o(!1),l({x:0,y:0}),d={x:t.clientX,y:t.clientY,time:performance.now()},_(),g=new AbortController;let{signal:a}=g;window.addEventListener(`pointermove`,b,{signal:a}),window.addEventListener(`pointerup`,x,{signal:a}),window.addEventListener(`pointercancel`,x,{signal:a})});return y(()=>{_(),v(),clearTimeout(h)}),{isDragging:t,isSnapping:r,handlePointerDown:S,createDragAwareHandler:e=>t=>{if(t.stopImmediatePropagation(),p){p=!1;return}e()}}}})),Xb,Zb,Qb=n((()=>{Xb=360,Zb=(e,t)=>{let n=t-e;return e+(n-Math.round(n/Xb)*Xb)}})),$b,ex,tx=n((()=>{G(),R(),Qv(),Tb(),Nb(),q(),qb(),Jv(),wa(),Uu(),Vb(),Yb(),Qb(),$b=z(`<div data-react-grab-ignore-events data-react-grab-toolbar>`),ex=e=>{let t,n,r=null,i=Ph(),[a,o]=c(!1),[s,l]=c(!1),[f,p]=c(!1),[m,h]=c(i?.edge??`bottom`),[g,b]=c(i?.ratio??.5),[x,S]=c({x:0,y:0}),[C,w]=c(!1),[T,ee]=c(!1),[E,te]=c(!1),[D,O]=c(!1),[k,ne]=c(0),[re,ie]=c(null),ae=()=>{r?.(),r=null,e.isActive||l_()},A=Jb({getContainerRef:()=>t,isCollapsed:s,getExpandedDimensions:()=>he,onDragStart:()=>{ie(null),r&&ae()},onPositionUpdate:e=>S(e),onSnapEdgeChange:(e,t)=>{ve(m(),e),h(e),b(t)},onSnapComplete:e=>{he=e.expandedDimensions,S(e.position),F({edge:e.edge,ratio:e.ratio,collapsed:s(),enabled:!s()})}}),oe=()=>!Pb(m()),se=()=>oe()?`mb-1.5`:`mr-1.5`,ce=()=>e.defaultActionId??`copy`,le=()=>e.defaultActionLabel??`Copy`,ue=()=>!!e.isActive&&(e.activeActionId??`copy`)===ce(),de=t=>re()===t&&!e.isActive&&!s()&&!A.isDragging()&&!A.isSnapping()&&!e.isContextMenuOpen,fe=()=>{switch(m()){case`top`:return`bottom`;case`bottom`:return`top`;case`left`:return`right`;case`right`:return`left`;default:return`top`}},pe=e=>{e.stopImmediatePropagation()},me=t=>({onMouseEnter:e=>{A.isDragging()||(ie(t()),r||(r=Z_(),c_(e.clientX,e.clientY)))},onMouseLeave:()=>{let n=t();ie(e=>e===n?null:e),!e.isActive&&!e.isContextMenuOpen&&ae()}});d(_(()=>e.shakeCount,t=>{t&&!e.enabled&&w(!0)})),d(_(()=>[e.isActive,e.isContextMenuOpen],([e,t])=>{!e&&!t&&r&&ae()})),d(_(()=>ue(),e=>{if(!e){ne(e=>Zb(e,0));return}let t=null,r=0,i=0,a=()=>{if(t=null,!n)return;let e=n.getBoundingClientRect(),a=e.left+e.width/2,o=e.top+e.height/2,s=r-a,c=i-o;if(Math.hypot(s,c)<4)return;let l=Math.atan2(c,s)*180/Math.PI- -45;ne(e=>Zb(e,l))},o=Ca(e=>{r=e.clientX,i=e.clientY,t===null&&(t=Bu(a))});window.addEventListener(`pointermove`,o,{passive:!0}),y(()=>{window.removeEventListener(`pointermove`,o),t!==null&&Vu(t)})}));let he={width:38,height:28},[ge,_e]=c(Fb(m())),ve=(e,t)=>{Pb(e)!==Pb(t)&&_e(Fb(t))},ye=(e,n)=>{let r=t?.getBoundingClientRect(),i=Fb(n);return Rb(e,n,he,r?.width??i.width,r?.height??i.height)},be=()=>{S(Ib(m(),g(),he.width,he.height))},Se=A.createDragAwareHandler(()=>e.onToggle?.()),Ce=()=>$(`relative contain-layout flex items-center justify-center`,se()),M=e=>e?`text-[var(--rg-text-primary)]`:`text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)]`,N=A.createDragAwareHandler(()=>{if(s()){ke();return}let e=t?.getBoundingClientRect(),n=g();e&&(he={width:e.width,height:e.height}),ee(!0),l(!0),F({edge:m(),ratio:n,collapsed:!0,enabled:!1}),Oe()}),we=()=>zb(m(),x(),he,ge()),P,Te,Ee=null,De=()=>{let e=t?.getBoundingClientRect();!e||e.width===0||e.height===0||(s()?_e({width:e.width,height:e.height}):(he={width:e.width,height:e.height},Ee={width:e.width,height:e.height}))},Oe=()=>{Te&&clearTimeout(Te),Te=setTimeout(()=>{ee(!1),De()},260)},ke=()=>{let{position:e,ratio:t}=ye(I(),m());S(e),b(t),ee(!0),l(!1),F({edge:m(),ratio:t,collapsed:!1,enabled:!0}),Oe()},Ae=(e,t)=>{if(!(e===0||t===0)&&!(A.isDragging()||A.isSnapping())&&!T()){if(s()){let n=ge();if(n.width===e&&n.height===t)return;_e({width:e,height:t});return}Ee&&Ee.width===e&&Ee.height===t||(Ee={width:e,height:t},he={width:e,height:t},S(Ib(m(),g(),e,t)))}},je=null,Me=()=>{A.isDragging()||A.isSnapping()||je===null&&(je=Bu(()=>{je=null,be()}))},Ne=()=>{A.isDragging()||(p(!0),be(),P&&clearTimeout(P),P=setTimeout(()=>{p(!1);let e=Lb(m(),x().x,x().y,he.width,he.height);b(e),F({edge:m(),ratio:e,collapsed:s(),enabled:!s()})},500))},F=t=>{let n={...t,defaultAction:ce()};Fh(n),e.onStateChange?.(n)};v(()=>{t&&e.onContainerRef?.(t);let n=t?.getBoundingClientRect(),r=qv(),a=!!(n&&n.width>0&&n.height>0);i?(a&&n&&(he={width:n.width,height:n.height}),l(i.collapsed),S(Ib(i.edge,i.ratio,he.width,he.height))):a&&n?(he={width:n.width,height:n.height},S({x:r.offsetLeft+(r.width-n.width)/2,y:r.offsetTop+r.height-n.height-16}),b(kn)):(S(Ib(`bottom`,kn,he.width,he.height)),b(kn)),e.onSubscribeToStateChanges&&y(e.onSubscribeToStateChanges(e=>{if(T()||!t?.getBoundingClientRect())return;let n=s()!==e.collapsed;if(ve(m(),e.edge),h(e.edge),n&&!e.collapsed){let t=I();ee(!0),l(e.collapsed);let{position:n,ratio:r}=ye(t,e.edge);S(n),b(r),Oe()}else n&&(ee(!0),Oe()),l(e.collapsed),S(Ib(e.edge,e.ratio,he.width,he.height)),b(e.ratio)})),window.addEventListener(`resize`,Ne),window.visualViewport?.addEventListener(`resize`,Ne),window.visualViewport?.addEventListener(`scroll`,Ne);let c=xa();if(c&&(window.addEventListener(`scroll`,Me,{passive:!0,capture:!0}),typeof ResizeObserver<`u`)){let e=new ResizeObserver(Me);e.observe(c),y(()=>e.disconnect())}if(typeof ResizeObserver<`u`&&t){let e=new ResizeObserver(e=>{let n=e[0];if(!n)return;let r=n.borderBoxSize?.[0],i,a;if(r)i=r.inlineSize,a=r.blockSize;else{let e=t?.getBoundingClientRect();if(!e)return;i=e.width,a=e.height}Ae(i,a)});e.observe(t),y(()=>e.disconnect())}let u=setTimeout(()=>{o(!0)},500);y(()=>{clearTimeout(u)})}),y(()=>{window.removeEventListener(`resize`,Ne),window.visualViewport?.removeEventListener(`resize`,Ne),window.visualViewport?.removeEventListener(`scroll`,Ne),window.removeEventListener(`scroll`,Me,{capture:!0}),je!==null&&Vu(je),clearTimeout(P),clearTimeout(Te),r&&ae()});let I=()=>s()?we():x(),Pe=()=>s()?`cursor-pointer`:A.isDragging()?`cursor-grabbing`:`cursor-grab`,Fe=()=>D()||!!e.isContextMenuOpen||A.isDragging()||A.isSnapping()||T()||E(),L=()=>!!e.isActive&&!Fe(),Ie=()=>f()||A.isDragging()?``:A.isSnapping()?`transition-[transform,opacity] duration-300 ease-out`:T()?`transition-[transform,opacity] ${s()?`duration-140`:`duration-220`} ease-drawer`:`transition-[transform,opacity] duration-400 ease-drawer`,Le=()=>{switch(m()){case`top`:return`center top`;case`bottom`:return`center bottom`;case`left`:return`left center`;case`right`:return`right center`;default:return`center center`}};return(()=>{var r=$b();r.addEventListener(`mouseleave`,()=>{O(!1),e.onSelectHoverChange?.(!1)}),r.addEventListener(`mouseenter`,()=>{O(!0),s()||e.onSelectHoverChange?.(!0)}),H(r,`mousedown`,pe),H(r,`pointerdown`,e=>{pe(e),A.handlePointerDown(e)});var i=t;return typeof i==`function`?tt(i,r):t=r,W(r,j(Kb,{get isCollapsed(){return s()},get snapEdge(){return m()},get isShaking(){return C()},get isChevronPressed(){return E()},get transformOrigin(){return Le()},onAnimationEnd:()=>w(!1),onCollapseClick:N,onCollapsePointerDown:()=>te(!0),onCollapsePointerUp:()=>te(!1),onCollapsePointerLeave:()=>te(!1),onPanelClick:e=>{s()&&(e.stopPropagation(),ke())},get actionButtons(){return j(Mb,xe({get actionId(){return ce()},isToggle:!0,ref:e=>n=e,get label(){return vt(()=>!!ue())()?`Stop selecting element`:`${le()} element`},get isActive(){return ue()},class:`group contain-layout flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox`,get wrapperClass(){return Ce()},onClick:Se,onContextMenu:t=>{t.preventDefault(),t.stopPropagation(),ie(null),e.onToggleToolbarMenu?.()}},()=>me(ce),{get icon(){return j(wb,{size:14,get rotationDeg(){return k()},get class(){return M(ue())}})},get tooltipVisible(){return de(ce())},get tooltipPosition(){return fe()},get tooltip(){return le()}}))}})),u(e=>{var t=$(`fixed left-0 top-0 font-sans text-[13px] antialiased select-none`,Pe(),Ie(),a()?`pointer-events-auto`:`pointer-events-none`),n=String(cn),i=`translate(${I().x}px, ${I().y}px) scale(${L()?.97:1})`,o=Le(),s=a()?L()?.55:1:0;return t!==e.e&&V(r,e.e=t),n!==e.t&&U(r,`z-index`,e.t=n),i!==e.a&&U(r,`transform`,e.a=i),o!==e.o&&U(r,`transform-origin`,e.o=o),s!==e.i&&U(r,`opacity`,e.i=s),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),r})()}})),nx,rx,ix=n((()=>{R(),nx=w(),rx=()=>{let e=T(nx);if(!e)throw Error(`Menu subcomponents must be rendered inside <Menu.Provider>`);return e}})),ax,ox=n((()=>{G(),ix(),ax=e=>j(nx.Provider,{get value(){return e.store},get children(){return e.children}})})),sx,cx=n((()=>{G(),Qv(),Ey(),sx=e=>j(Ty,{get class(){return $(`flex flex-col w-fit h-fit`,e.class)},get style(){return e.style},get children(){return e.children}})})),lx,ux,dx=n((()=>{G(),Qv(),ix(),lx=z(`<div role=menu aria-orientation=vertical><div aria-hidden=true class="pointer-events-none absolute opacity-0 transition-[top,left,width,height,opacity,border-radius] duration-75 ease-out bg-[var(--rg-surface-hover)]">`),ux=e=>{let t=rx();return(()=>{var n=lx(),r=n.firstChild;n.$$pointermove=()=>t.notePointerMove(),tt(n=>{t.setHighlightContainer(n),e.ref?.(n)},n);var i=t.setHighlightRail;return typeof i==`function`?tt(i,r):t.setHighlightRail=r,W(n,()=>e.children,null),u(r=>{var i=e.label,a=t.keyboardNavigation?t.activeDescendantId():void 0,o=t.keyboardNavigation?-1:void 0,s=$(`relative flex flex-col`,e.class);return i!==r.e&&B(n,`aria-label`,r.e=i),a!==r.t&&B(n,`aria-activedescendant`,r.t=a),o!==r.a&&B(n,`tabindex`,r.a=o),s!==r.o&&V(n,r.o=s),r},{e:void 0,t:void 0,a:void 0,o:void 0}),n})()},Ye([`pointermove`])})),fx,px,mx=n((()=>{G(),R(),Qv(),ix(),fx=z(`<button data-react-grab-ignore-events type=button>`),px=e=>{let t=rx(),n=t.createItemId(),r=e.value,i=()=>e.role??`menuitem`,a=()=>!e.disabled,o=()=>t.activeValue()===r,s;return v(()=>{s&&(t.registerItem({value:r,domId:n,element:s,isEnabled:a,onSelect:()=>e.onSelect?.()}),y(()=>t.unregisterItem(r)))}),(()=>{var c=fx();c.$$click=t=>{t.stopPropagation(),a()&&e.onSelect?.()},c.addEventListener(`pointerleave`,()=>{t.clearActiveOnPointerLeave&&t.setActiveItem(null)}),c.addEventListener(`pointerenter`,()=>{a()&&t.canActivateOnHover()&&t.setActiveItem(r)}),c.$$pointerdown=e=>e.stopPropagation();var l=s;return typeof l==`function`?tt(l,c):s=c,B(c,`id`,n),W(c,()=>e.children),u(n=>{var a=e.dataId??r,s=i(),l=i()===`menuitemradio`?!!e.checked:void 0,u=!!e.disabled,d=t.keyboardNavigation?o()?0:-1:void 0,f=e.disabled,p=$(`relative z-1 contain-layout flex items-center justify-between w-full px-2 py-1 cursor-pointer text-left border-none bg-transparent disabled:opacity-40 disabled:cursor-default`,e.class);return a!==n.e&&B(c,`data-react-grab-menu-item`,n.e=a),s!==n.t&&B(c,`role`,n.t=s),l!==n.a&&B(c,`aria-checked`,n.a=l),u!==n.o&&B(c,`aria-disabled`,n.o=u),d!==n.i&&B(c,`tabindex`,n.i=d),f!==n.n&&(c.disabled=n.n=f),p!==n.s&&V(c,n.s=p),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),c})()},Ye([`pointerdown`,`click`])})),hx,gx,_x=n((()=>{G(),Qv(),hx=z(`<span> `),gx=e=>(()=>{var t=hx(),n=t.firstChild;return u(r=>{var i=$(`text-[13px] leading-4 font-sans font-medium`,e.class),a=e.textContent;return i!==r.e&&V(t,r.e=i),a!==r.t&&(n.data=r.t=a),r},{e:void 0,t:void 0}),t})()})),vx,yx,bx=n((()=>{G(),vx=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M6.5 5C5.67157 5 5 5.67157 5 6.5C5 7.32843 5.67157 8 6.5 8H8V6.5C8 5.67157 7.32843 5 6.5 5ZM10 8V6.5C10 4.567 8.433 3 6.5 3C4.567 3 3 4.567 3 6.5C3 8.433 4.567 10 6.5 10H8V14H6.5C4.567 14 3 15.567 3 17.5C3 19.433 4.567 21 6.5 21C8.433 21 10 19.433 10 17.5V16H14V17.5C14 19.433 15.567 21 17.5 21C19.433 21 21 19.433 21 17.5C21 15.567 19.433 14 17.5 14H16V10H17.5C19.433 10 21 8.433 21 6.5C21 4.567 19.433 3 17.5 3C15.567 3 14 4.567 14 6.5V8H10ZM10 10V14H14V10H10ZM16 8H17.5C18.3284 8 19 7.32843 19 6.5C19 5.67157 18.3284 5 17.5 5C16.6716 5 16 5.67157 16 6.5V8ZM16 16V17.5C16 18.3284 16.6716 19 17.5 19C18.3284 19 19 18.3284 19 17.5C19 16.6716 18.3284 16 17.5 16H16ZM8 16H6.5C5.67157 16 5 16.6716 5 17.5C5 18.3284 5.67157 19 6.5 19C7.32843 19 8 18.3284 8 17.5V16Z">`),yx=e=>{let t=()=>e.size??11;return(()=>{var n=vx();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),xx,Sx,Cx,wx=n((()=>{G(),R(),$m(),bx(),Py(),xx=z(`<span> `),Sx=z(`<span style=display:inline-flex;align-items:center;gap:2px>`),Cx=e=>{let t=()=>e.shortcut===`Enter`,n=()=>e.modifier!==!1,r=Qm();return(()=>{var i=Sx();return W(i,j(M,{get when(){return t()},get children(){return j(Ny,{size:8})}}),null),W(i,j(M,{get when(){return!t()},get children(){return j(M,{get when(){return n()},get fallback(){return(()=>{var t=xx(),n=t.firstChild;return u(()=>n.data=e.shortcut),t})()},get children(){return j(M,{when:r,get fallback(){return(()=>{var t=xx(),n=t.firstChild;return u(()=>n.data=`Ctrl+${e.shortcut}`),t})()},get children(){return[j(yx,{size:9}),(()=>{var t=xx(),n=t.firstChild;return u(()=>n.data=e.shortcut),t})()]}})}})}}),null),u(()=>V(i,e.class)),i})()}})),Tx,Ex=n((()=>{G(),Qv(),wx(),Tx=e=>j(Cx,{get shortcut(){return e.shortcut},get modifier(){return e.modifier},get class(){return $(`text-[11px] font-sans text-[var(--rg-text-secondary)] ml-4`,e.class)}})})),Dx,Ox,kx,Ax,jx,Mx,Nx=n((()=>{R(),Dx=`0`,Ox=`1`,kx=({hiddenOpacity:e=Dx,visibleOpacity:t=Ox}={})=>{let n,r,i,a=e=>{r&&(r.style.opacity=t,r.style.top=`${e.offsetTop}px`,r.style.left=`${e.offsetLeft}px`,r.style.width=`${e.offsetWidth}px`,r.style.height=`${e.offsetHeight}px`)},o=typeof ResizeObserver>`u`?void 0:new ResizeObserver(()=>{i&&a(i)});y(()=>o?.disconnect());let s=()=>{i=void 0,o?.disconnect(),r&&(r.style.opacity=e)};return{containerRef:e=>{n=e},followerRef:e=>{r=e},followElement:e=>{if(!(!r||!n)){if(!e){s();return}i=e,a(e),o?.disconnect(),o?.observe(e),o?.observe(n)}},hideFollower:s}},Ax=(e,t)=>e!==t&&e instanceof HTMLElement,jx=(e,t)=>{let n=[];for(let r of Array.from(e.children))Ax(r,t)&&n.push(r);return n},Mx=(e={})=>{let{topCornerRadiusPx:t,bottomCornerRadiusPx:n,cornerShape:r}=e,i=t!==void 0||n!==void 0,a,o=!1,s=e=>{if(!a||!i)return;let s=e.parentElement;if(!s)return;let c=jx(s,a),l=c[0]===e,u=c[c.length-1]===e,d=l&&t!==void 0?`${t}px`:`0px`,f=u&&n!==void 0?`${n}px`:`0px`;a.style.borderTopLeftRadius=d,a.style.borderTopRightRadius=d,a.style.borderBottomLeftRadius=f,a.style.borderBottomRightRadius=f,r&&!o&&(a.style.setProperty(`corner-shape`,r),o=!0)},{containerRef:c,followerRef:l,followElement:u,hideFollower:d}=kx();return{containerRef:c,highlightRef:e=>{a=e,o=!1,l(e)},updateHighlight:e=>{u(e),e&&s(e)},clearHighlight:d}}})),Px,Fx=n((()=>{R(),Nx(),Px=(e={})=>{let t=new Map,n=[],r=`react-grab-menu-${Math.random().toString(36).slice(2,8)}`,i=0,a=!1,o=e.value!==void 0,[s,l]=c(null),[u,p]=c(0),m=f(()=>o?e.value?.()??null:s()),h=t=>{if(o){e.onValueChange?.(t);return}l(t)},g=Mx(e.highlight??{});d(_([m,u],([e])=>{if(e===null){g.clearHighlight();return}let n=t.get(e);n?g.updateHighlight(n.element):g.clearHighlight()}));let v=()=>n.filter(e=>t.get(e)?.isEnabled()),y=()=>{let e=v();e.length>0&&h(e[0])},b=()=>{let e=v();e.length>0&&h(e[e.length-1])},x=()=>{let e=v();if(e.length===0)return;let t=e.indexOf(m()??``);h(e[t===-1?0:(t+1)%e.length])},S=()=>{let e=v();if(e.length===0)return;let t=e.indexOf(m()??``);h(e[t===-1?e.length-1:(t-1+e.length)%e.length])},C=f(()=>{u();let e=m();if(e!==null)return t.get(e)?.domId});return{keyboardNavigation:e.keyboardNavigation??!1,clearActiveOnPointerLeave:e.clearActiveOnPointerLeave??!1,activeValue:m,activeDescendantId:C,setActiveItem:h,createItemId:()=>`${r}-item-${i++}`,canActivateOnHover:()=>!(e.requirePointerMove??!1)||a,notePointerMove:()=>{a=!0},resetPointerMove:()=>{a=!1},registerItem:e=>{t.set(e.value,e),n.includes(e.value)||n.push(e.value),p(e=>e+1)},unregisterItem:e=>{t.delete(e);let r=n.indexOf(e);r!==-1&&n.splice(r,1),o||l(t=>t===e?null:t),p(e=>e+1)},getActiveItem:()=>{let e=m();return e===null?void 0:t.get(e)},selectFirst:y,selectLast:b,selectNext:x,selectPrevious:S,setHighlightContainer:g.containerRef,setHighlightRail:g.highlightRef}}})),Ix,Lx=n((()=>{ox(),cx(),dx(),mx(),_x(),Ex(),Fx(),Ix={Provider:ax,Panel:sx,List:ux,Item:px,Label:gx,Shortcut:Tx}})),Rx,zx=n((()=>{Rx=e=>{e.type===`contextmenu`&&e.preventDefault(),e.stopImmediatePropagation()}})),Bx,Vx=n((()=>{wa(),sh(),oa(),Uu(),Bx=e=>{let t=Ca(t=>{e.isOpen()&&(e.shouldIgnoreKeyboardEvent?.(t)||e.shouldIgnoreInputEvents&&ra(t)||t.code===`Escape`&&(t.preventDefault(),t.stopImmediatePropagation(),e.onDismiss(`keyboard`)))}),n=Ca(t=>{e.isOpen()&&(oh(t,`data-react-grab-ignore-events`)||e.shouldIgnoreRightClick&&t instanceof MouseEvent&&t.button===2||e.onDismiss(`pointer`))}),r=Bu(()=>{window.addEventListener(`mousedown`,n,{capture:!0}),window.addEventListener(`touchstart`,n,{capture:!0})});return window.addEventListener(`keydown`,t,{capture:!0}),()=>{Vu(r),window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`mousedown`,n,{capture:!0}),window.removeEventListener(`touchstart`,n,{capture:!0})}}})),Hx,Ux,Wx,Gx=n((()=>{G(),R(),q(),ly(),_y(),by(),Lx(),ey(),cv(),Uu(),zx(),Vx(),wa(),Hx=z(`<div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 w-fit h-fit px-2">`),Ux=z(`<div data-react-grab-ignore-events data-react-grab-context-menu class="fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none"style=pointer-events:auto>`),Wx=e=>{let t,n,r=null,i=Px({keyboardNavigation:!0,highlight:{bottomCornerRadiusPx:14,cornerShape:Mn}}),[a,o]=c(0),[s,l]=c(0),p=f(()=>e.position!==null),m=f(()=>$v({tagName:e.tagName,componentName:e.componentName})),h=()=>{if(t){let e=t.getBoundingClientRect();o(e.width),l(e.height)}};d(()=>{p()&&Bu(h)});let g=f(()=>{let t=e.selectionBounds,n=e.position,r=a(),i=s();if(r===0||i===0||!t||!n)return{left:Fn.left,top:Fn.top,arrowLeft:0,arrowPosition:`bottom`};let o=n.x??t.x+t.width/2,c=Math.max(4,Math.min(o-r/2,window.innerWidth-r-4)),l=Math.max(8,Math.min(o-c,r-8)),u=t.y+t.height+8+4,d=t.y-i-8-4,f=u+i>window.innerHeight,p=d>=0,m=f&&p,h=m?d:u,g=m?`top`:`bottom`;if(f&&!p){let e=n.y??t.y+t.height/2;h=Math.max(4,Math.min(e+4,window.innerHeight-i-4)),g=`top`}return{left:c,top:h,arrowLeft:l,arrowPosition:g}}),b=f(()=>{let t=e.actions??[],n=e.actionContext;return t.map(e=>({id:e.id,label:e.label,action:()=>{n&&lv(e,n)},enabled:sv(e,n),shortcut:e.shortcut,shortcutModifier:e.shortcutModifier}))});d(_(p,e=>{if(e){let e=t?.getRootNode(),i=e instanceof ShadowRoot?e.activeElement:null,a=document.activeElement;r=a instanceof HTMLElement&&i===null&&!(t instanceof Element&&t.contains(a))?a:null,n?.focus({preventScroll:!0});return}i.setActiveItem(null);let a=r;r=null,!(!(a instanceof HTMLElement)||!document.contains(a))&&Bu(()=>{let e=document.activeElement;(e===null||e===document.body)&&a.focus({preventScroll:!0})})})),v(()=>{h();let t=t=>{if(!p())return;let n=t.key===`ArrowDown`,r=t.key===`ArrowUp`,a=t.key===`Home`,o=t.key===`End`,s=t.key===`Tab`;if(n||r||a||o||s){t.preventDefault(),t.stopPropagation();let e=n||s&&!t.shiftKey;a?i.selectFirst():o?i.selectLast():e?i.selectNext():i.selectPrevious();return}let c=e.actions??[],l=e.actionContext,u=n=>{l&&lv(n,l)&&(t.preventDefault(),t.stopPropagation(),e.onHide())};if(t.key===`Enter`){let e=i.getActiveItem();if(e){t.preventDefault(),t.stopPropagation(),e.isEnabled()&&e.onSelect();return}}let d=nv(c,t,{includeModifierShortcuts:!0});d&&u(d)},n=Bx({isOpen:p,onDismiss:e.onDismiss,shouldIgnoreRightClick:!0}),r=Ca(t);window.addEventListener(`keydown`,r,{capture:!0}),y(()=>{n(),window.removeEventListener(`keydown`,r,{capture:!0})})});let x=f(()=>{let{tagName:e,componentName:t}=m();return`Actions for ${t?`${t}.${e}`:e}`});return j(M,{get when(){return p()},get children(){var r=Ux();H(r,`contextmenu`,Rx,!0),H(r,`click`,Rx,!0),H(r,`mousedown`,Rx,!0),H(r,`pointerdown`,Rx,!0);var a=t;return typeof a==`function`?tt(a,r):t=r,U(r,`z-index`,`${cn}`),W(r,j(cy,{get position(){return g().arrowPosition},leftPercent:0,get leftOffsetPx(){return g().arrowLeft}}),null),W(r,j(Ix.Panel,{class:`justify-center items-start min-w-[100px]`,get children(){return[(()=>{var t=Hx();return W(t,j(gy,{get tagName(){return m().tagName},get componentName(){return m().componentName},get isClickable(){return e.hasFilePath},onClick:t=>{if(t.stopPropagation(),e.hasFilePath&&e.actionContext){let t=e.actions?.find(e=>e.id===`open`);t&&lv(t,e.actionContext)}},shrink:!0})),t})(),j(yy,{get children(){return j(Ix.Provider,{store:i,get children(){return j(Ix.List,{ref:e=>n=e,get label(){return x()},class:`w-[calc(100%+16px)] -mx-2 -my-1.5 outline-none`,get children(){return j(Ce,{get each(){return b()},children:t=>j(Ix.Item,{get value(){return t.id},get dataId(){return t.label.toLowerCase()},get disabled(){return!t.enabled},onSelect:()=>{t.action(),e.onHide()},get children(){return[j(Ix.Label,{class:`text-[var(--rg-text-primary)]`,get textContent(){return t.label}}),j(M,{get when(){return t.shortcut},children:e=>j(Ix.Shortcut,{get shortcut(){return e()},get modifier(){return t.shortcutModifier}})})]}})})}})}})}})]}}),null),u(e=>{var t=`${g().top}px`,n=`${g().left}px`;return t!==e.e&&U(r,`top`,e.e=t),n!==e.t&&U(r,`left`,e.t=n),e},{e:void 0,t:void 0}),r}})},Ye([`pointerdown`,`mousedown`,`click`,`contextmenu`])})),Kx,qx=n((()=>{Kx=(e,t,n,r)=>Math.max(r,Math.min(e,n-t-r))})),Jx,Yx=n((()=>{qx(),Jx=({anchor:e,measuredWidth:t,measuredHeight:n,viewportLeft:r=0,viewportTop:i=0,viewportWidth:a,viewportHeight:o,anchorGapPx:s,viewportPaddingPx:c,offscreenPosition:l})=>{if(!e||t===0||n===0)return l;let u,d;return e.edge===`left`||e.edge===`right`?(u=e.edge===`left`?e.x+s:e.x-t-s,d=e.y-n/2):(u=e.x-t/2,d=e.edge===`top`?e.y+s:e.y-n-s),{left:r+Kx(u-r,t,a,c),top:i+Kx(d-i,n,o,c)}}})),Xx,Zx=n((()=>{R(),q(),Yx(),Jv(),wa(),Uu(),Xx=(e,t)=>{let[n,r]=c(0),[i,a]=c(0),[o,s]=c(!1),[l,u]=c(!1),[p,m]=c(0),[g,_]=c(`bottom`),v,b,x=()=>{clearTimeout(v),b!==void 0&&(Vu(b),b=void 0)},S=()=>{let t=e();t&&(r(t.offsetWidth),a(t.offsetHeight))},C=()=>{h(()=>{m(e=>e+1),S()})},w=f(()=>t()!==null);return d(()=>{let n=t();n?(_(n.edge),clearTimeout(v),s(!0),b!==void 0&&Vu(b),b=Bu(()=>{S(),e()?.offsetHeight,u(!0)})):(b!==void 0&&Vu(b),u(!1),v=setTimeout(()=>{s(!1)},120)),y(x)}),d(()=>{if(!w())return;window.addEventListener(`resize`,C),window.visualViewport?.addEventListener(`resize`,C),window.visualViewport?.addEventListener(`scroll`,C);let e=xa(),t;e&&typeof ResizeObserver<`u`&&(t=new ResizeObserver(C),t.observe(e)),y(()=>{window.removeEventListener(`resize`,C),window.visualViewport?.removeEventListener(`resize`,C),window.visualViewport?.removeEventListener(`scroll`,C),t?.disconnect()})}),{shouldMount:o,isAnimatedIn:l,lastAnchorEdge:g,displayPosition:f(e=>{p();let r=qv(),a=Jx({anchor:t(),measuredWidth:n(),measuredHeight:i(),viewportLeft:r.offsetLeft,viewportTop:r.offsetTop,viewportWidth:r.width,viewportHeight:r.height,anchorGapPx:8,viewportPaddingPx:8,offscreenPosition:Fn});return a.left===Fn.left?e:a},Fn),measure:S,clearAnimationHandles:x}}})),Qx,$x,eS=n((()=>{G(),R(),q(),Qv(),zx(),Zx(),Vx(),Qx=z(`<div data-react-grab-ignore-events>`),$x=e=>{let t,n=()=>e.interactive!==!1,r=Xx(()=>t,()=>e.position);return v(()=>{r.measure();let t=e.onDismiss?Bx({isOpen:()=>!!e.position,onDismiss:e.onDismiss}):void 0;y(()=>{r.clearAnimationHandles(),t?.()})}),j(M,{get when(){return r.shouldMount()},get children(){var i=Qx(),a=t;return typeof a==`function`?tt(a,i):t=i,et(i,xe(()=>({[e.dataAttribute]:``}),{get class(){return $(`fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none will-change-[opacity,transform]`,r.isAnimatedIn()?`transition-[opacity,transform] duration-220 ease-spring`:`transition-[opacity,transform] duration-120 ease-drawer`)},get style(){return{top:`${r.displayPosition().top}px`,left:`${r.displayPosition().left}px`,"z-index":`${cn}`,"pointer-events":n()&&r.isAnimatedIn()?`auto`:`none`,"transform-origin":In[r.lastAnchorEdge()],opacity:r.isAnimatedIn()?`1`:`0`,transform:r.isAnimatedIn()?`scale(1)`:`scale(0.92)`}},onPointerDown:Rx,onMouseDown:Rx,onClick:Rx,onContextMenu:Rx}),!1,!0),W(i,()=>e.children),i}})}})),tS,nS=n((()=>{G(),R(),q(),Lx(),eS(),tS=e=>{let t=Px({clearActiveOnPointerLeave:!0,highlight:{topCornerRadiusPx:14,bottomCornerRadiusPx:14,cornerShape:Mn}});return j($x,{get position(){return e.position},dataAttribute:`data-react-grab-toolbar-menu`,get onDismiss(){return e.onDismiss},get children(){return j(Ix.Panel,{class:`overflow-hidden`,style:{"min-width":`100px`},get children(){return j(Ix.Provider,{store:t,get children(){return j(Ix.List,{label:`Default action`,get children(){return j(Ce,{get each(){return e.actions},children:t=>{let n=()=>t.id===e.defaultActionId;return j(Ix.Item,{get value(){return t.id},role:`menuitemradio`,get checked(){return n()},onSelect:()=>{e.onSetDefaultAction(t.id),e.onDismiss()},get children(){return[j(Ix.Label,{get class(){return n()?`text-[var(--rg-text-primary)]`:`text-[var(--rg-text-secondary)]`},get textContent(){return t.label}}),j(M,{get when(){return t.shortcut},children:e=>j(Ix.Shortcut,{get shortcut(){return e()},get modifier(){return t.shortcutModifier}})})]}})}})}})}})}})}})}})),rS,iS,aS,oS,sS,cS=n((()=>{G(),R(),q(),Lx(),eS(),rS=z(`<span aria-hidden=true class="shrink-0 font-mono text-[11px] leading-4 text-[var(--rg-text-secondary)] opacity-60 mr-1"> `),iS=z(`<span> `),aS=z(`<span class=text-[var(--rg-text-secondary)]>.`),oS=z(`<span class="flex items-center min-w-0 w-full"><span class="text-[13px] leading-4 h-fit font-medium overflow-hidden text-ellipsis whitespace-nowrap min-w-0 transition-colors"><span> `),sS=e=>{let t=()=>e.state?.activeIndex??0,n=Px({value:()=>String(t()),highlight:{topCornerRadiusPx:14,bottomCornerRadiusPx:14,cornerShape:Mn}});return j($x,{get position(){return e.position},dataAttribute:`data-react-grab-hierarchy-menu`,interactive:!1,get children(){return j(Ix.Panel,{class:`overflow-hidden`,style:{"min-width":`160px`},get children(){return j(Ix.Provider,{store:n,get children(){return j(Ix.List,{label:`Navigate element hierarchy`,get children(){return j(Ce,{get each(){return e.state?.items??[]},children:(e,n)=>j(Ix.Item,{get value(){return String(n())},role:`menuitemradio`,get checked(){return n()===t()},get children(){var r=oS(),i=r.firstChild,a=i.firstChild,o=a.firstChild;return W(r,j(M,{get when(){return e.depth>0},get children(){var t=rS(),n=t.firstChild;return u(r=>{var i=`${(e.depth-1)*12}px`,a=e.isLast?`└─`:`├─`;return i!==r.e&&U(t,`padding-left`,r.e=i),a!==r.t&&(n.data=r.t=a),r},{e:void 0,t:void 0}),t}}),i),W(i,j(M,{get when(){return e.componentName},get children(){return[(()=>{var t=iS(),n=t.firstChild;return u(()=>n.data=e.componentName),t})(),aS()]}}),a),u(r=>{var a=n()===t(),s=n()!==t(),c=e.tagName;return a!==r.e&&i.classList.toggle(`text-[var(--rg-text-primary)]`,r.e=a),s!==r.t&&i.classList.toggle(`text-[var(--rg-text-secondary)]`,r.t=s),c!==r.a&&(o.data=r.a=c),r},{e:void 0,t:void 0,a:void 0}),r}})})}})}})}})}})}})),lS=r({ReactGrabRenderer:()=>uS}),uS,dS=n((()=>{G(),R(),q(),wi(),Lv(),Bv(),Sb(),tx(),Gx(),nS(),cS(),uS=e=>[j(Iv,{get selectionVisible(){return e.selectionVisible},get selectionBounds(){return e.selectionBounds},get selectionBoundsMultiple(){return e.selectionBoundsMultiple},get selectionShouldSnap(){return e.selectionShouldSnap},get dragVisible(){return e.dragVisible},get dragBounds(){return e.dragBounds},get grabbedBoxes(){return e.grabbedBoxes},get labelInstances(){return e.labelInstances}}),j(zv,{get visible(){return e.isFrozen??!1}}),j(M,{get when(){return vt(()=>!!e.selectionLabelVisible)()&&(e.frozenLabelEntryAccessors?.length??0)>0},get children(){return j(Ce,{get each(){return e.frozenLabelEntryAccessors??[]},children:e=>j(M,{get when(){return e.read()},children:e=>j(xb,{get tagName(){return e().tagName},get componentName(){return e().componentName},get selectionBounds(){return e().bounds},get mouseX(){return e().mouseX},visible:!0})})})}}),j(M,{get when(){return vt(()=>!!e.selectionLabelVisible)()&&e.pendingShiftPreviewEntry},children:e=>j(xb,{get tagName(){return e().tagName},get componentName(){return e().componentName},get selectionBounds(){return e().bounds},get mouseX(){return e().mouseX},visible:!0})}),j(M,{get when(){return vt(()=>!!(e.selectionLabelVisible&&e.selectionBounds))()&&(e.frozenLabelEntryAccessors?.length??0)===0},get children(){return j(xb,{get tagName(){return e.selectionTagName},get componentName(){return e.selectionComponentName},get elementsCount(){return e.selectionElementsCount},get selectionBounds(){return e.selectionBounds},get mouseX(){return e.mouseX},get visible(){return e.selectionLabelVisible},get isPromptMode(){return e.isPromptMode},get inputValue(){return e.inputValue},get status(){return e.selectionLabelStatus},get filePath(){return e.selectionFilePath},get onInputChange(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get selectionLabelShakeCount(){return e.selectionLabelShakeCount},get onConfirmDismiss(){return e.onConfirmDismiss},get discardPrompt(){return e.discardPrompt},get onOpen(){return e.onOpenSelectionFile}})}}),j(Ce,{get each(){return e.labelInstanceAccessors??[]},children:t=>j(M,{get when(){return t.read()},children:t=>j(xb,{get tagName(){return t().tagName},get componentName(){return t().componentName},get elementsCount(){return t().elementsCount},get selectionBounds(){return t().bounds},get mouseX(){return t().mouseX},visible:!0,get status(){return t().status},get statusText(){return t().statusText},get isPromptMode(){return t().isPromptMode},get inputValue(){return t().inputValue},get error(){return t().errorMessage},get hideArrow(){return t().hideArrow},get onShowContextMenu(){let n=t();if(!(!(n.status===`copied`||n.status===`fading`)||!X(n.element)))return()=>e.onShowContextMenuInstance?.(n.id)},onRetry:()=>e.onRetryInstance?.(t().id),onAcknowledgeError:()=>e.onAcknowledgeErrorInstance?.(t().id),onHoverChange:n=>e.onLabelInstanceHoverChange?.(t().id,n)})})}),j(M,{get when(){return e.toolbarVisible!==!1},get children(){return j(ex,{get isActive(){return e.isActive},get isContextMenuOpen(){return e.contextMenuPosition!==null},get onToggle(){return e.onToggleActive},get activeActionId(){return e.activeActionId},get defaultActionId(){return e.defaultActionId},get defaultActionLabel(){return e.defaultActionLabel},get enabled(){return e.enabled},get shakeCount(){return e.shakeCount},get onStateChange(){return e.onToolbarStateChange},get onSubscribeToStateChanges(){return e.onSubscribeToToolbarStateChanges},get onSelectHoverChange(){return e.onToolbarSelectHoverChange},get onContainerRef(){return e.onToolbarRef},get onToggleToolbarMenu(){return e.onToggleToolbarMenu}})}}),j(Wx,{get position(){return e.contextMenuPosition??null},get selectionBounds(){return e.contextMenuBounds??null},get tagName(){return e.contextMenuTagName},get componentName(){return e.contextMenuComponentName},get hasFilePath(){return e.contextMenuHasFilePath??!1},get actions(){return e.actions},get actionContext(){return e.actionContext},get onDismiss(){return e.onContextMenuDismiss??(()=>{})},get onHide(){return e.onContextMenuHide??(()=>{})}}),j(tS,{get position(){return e.toolbarMenuPosition??null},get actions(){return e.toolbarMenuActions??[]},get defaultActionId(){return e.defaultActionId??`copy`},get onSetDefaultAction(){return e.onSetDefaultAction??(()=>{})},get onDismiss(){return e.onToolbarMenuDismiss??(()=>{})}}),j(sS,{get position(){return e.hierarchyMenuPosition??null},get state(){return e.hierarchyState}})]}));G(),R(),Qi(),oa(),wa(),Uu(),Tm(),hf(),nf(),wi(),Si(),ea(),q(),fa(),la(),sh(),$m(),Ih(),Fg(),u_(),Q_(),uh(),rv(),uv(),Hn(),up(),fi();let fS=[Rh,zh,Bh],pS={status:`cancelled`},mS=!1,hS=e=>{if(typeof window>`u`)return Od();let t={enabled:!0,activationMode:`toggle`,keyHoldDuration:100,allowActivationInsideInput:!0,...Ah(),...e};if(t.enabled===!1||mS)return Od();mS=!0,ba(t.container??null),Dh(t.telemetry!==!1);let{enabled:n,telemetry:r,container:i,...a}=t;return s(e=>{let t=!1,n=new AbortController,r=null,i,o=new Set,s=_h(a),{store:l,actions:u,pointer:p,viewportVersion:h,current:v}=Ri({keyHoldDuration:s.store.options.keyHoldDuration??100}),b=f(()=>v().state===`holding`),x=f(()=>v().state===`active`),S=f(()=>{let e=v();return e.state===`active`&&e.phase===`frozen`}),C=f(()=>{let e=v();return e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)}),w=f(()=>{if(!C())return!1;let e=Math.abs(p().x+window.scrollX-l.dragStart.x),t=Math.abs(p().y+window.scrollY-l.dragStart.y);return e>2||t>2}),T=f(()=>{let e=v();return e.state===`active`&&e.phase===`dragging-reposition`}),ee=f(()=>{let e=v();return e.state===`active`&&e.phase===`justDragged`}),E=f(()=>v().state===`copying`),te=f(()=>l.selectionInteractionLockDepth>0),D=f(()=>v().state===`justCopied`),O=f(()=>{let e=v();return e.state===`active`&&!!e.isPromptMode}),k=f(()=>l.pendingCommentMode||O()),ne=f(()=>{let e=v();return e.state===`active`&&!!e.isPromptMode&&!!e.isPendingDismiss}),re=new Map,ie=(e,t)=>{re.has(e)||re.set(e,document.body.style[e]),document.body.style[e]=t},ae=e=>{let t=re.get(e);t!==void 0&&(document.body.style[e]=t,re.delete(e))};d(_(x,(e,t)=>{e&&!t?(c_(p().x,p().y),ie(`touchAction`,`none`)):!e&&t&&(l_(),ae(`touchAction`))}));let A=Ph(),[oe,se]=c(A?!A.collapsed:!0),[ce,le]=c(0),[ue,de]=c(0),[fe,pe]=c(A),[me,he]=c(!1),ge=Lh(e=>e.shiftKey),[ve,ye]=c(null),[be,xe]=c(null),Se=f(()=>l.contextMenuPosition!==null),Ce=f(()=>Se()||ve()!==null),M,N=null,we=new WeakMap,P=av(),Te=()=>!oe()||O()||te()||Se()||P.isPendingDismiss(),Ee=()=>{Ke(!1),we=new WeakMap},De=e=>{let t=fe()??Ph(),n={edge:t?.edge??`bottom`,ratio:t?.ratio??.5,collapsed:t?.collapsed??!1,enabled:t?.enabled??!0,defaultAction:t?.defaultAction??`copy`,...e};Fh(n),pe(n),fv(o,n)},Oe=()=>{We.timerId!==null&&(clearTimeout(We.timerId),We.timerId=null)},ke=()=>{We.copyWaiting=!1,We.holdTimerFired=!1,We.startTimestamp=null};d(()=>{if(v().state!==`holding`){Oe();return}We.startTimestamp=Date.now(),We.timerId=window.setTimeout(()=>{if(We.timerId=null,We.copyWaiting){We.holdTimerFired=!0;return}u.activate()},l.keyHoldDuration),y(Oe)}),d(()=>{let e=v();if(e.state!==`active`||e.phase!==`justDragged`)return;let t=setTimeout(()=>{u.finishJustDragged()},tn);y(()=>clearTimeout(t))}),d(()=>{if(v().state!==`justCopied`)return;let e=setTimeout(()=>{u.finishJustCopied()},tn);y(()=>clearTimeout(e))}),d(_(b,(e,t=!1)=>{!t||e||!x()||(s.store.options.activationMode!==`hold`&&u.setWasActivatedByToggle(!0),s.hooks.onActivate())}));let Ae=(e,t,n)=>{u.setCopyStart({x:t,y:n},e),u.clearInputText()},je=()=>{let e=l.frozenElement||At();e&&u.enterPromptMode({x:p().x,y:p().y},e)},Me={lastDetectionTimestamp:0,pendingDetectionScheduledAt:0,latestPointerX:0,latestPointerY:0},Ne=null,F={x:0,y:0},I=0,Pe=0,[Fe,L]=c(null),[Ie,Le]=c(0),Re=()=>{Ne!==null&&(clearTimeout(Ne),Ne=null)},ze=e=>{L({x:F.x,y:F.y}),I=e},Be=(e,t)=>{if(!w())return;F.x=e,F.y=t;let n=performance.now(),r=n-I,i=Pe>=16;if(I===0||!i&&r>=100){Re(),ze(n);return}Re(),Ne=window.setTimeout(()=>{w()&&ze(performance.now()),Ne=null},i?32:Math.min(32,100-r))},Ve=(e,t,n)=>(Re(),Lm(e,{x:t,y:n},mf)),He=()=>{Re(),I=0,Pe=0,L(null),Zt()},Ue=null,We={timerId:null,startTimestamp:null,copyWaiting:!1,holdTimerFired:!1},Ge=null,[R,Ke]=c(!1),qe=0,z=!1,Ye=null,B=()=>{z=!0,Ye!==null&&window.clearTimeout(Ye),Ye=window.setTimeout(()=>{z=!1,Ye=null},tn)},Xe=()=>{Ye!==null&&(window.clearTimeout(Ye),Ye=null),z=!1},Ze=0,V=null,H=null,[Qe,$e]=c(!1),[U,et]=c(null),[tt,W]=c(null),[nt,rt]=Iu(tt),it=f(()=>k()?jn:Qe()?U():x()?An:null),at=e=>Km(e,mf),ot=Sh(mf,at,Y),st=Th(p,()=>C(),e=>{if(T()){if(u.shiftDragStart(e),Ge){Ge={x:Ge.x+e.x,y:Ge.y+e.y};return}let{pageX:t,pageY:n}=Wt(p().x,p().y);Ge={x:t,y:n}}}),ct=f(()=>x()&&!E()),lt=new Map,ut=(e,t)=>{let n=vh(`grabbed`),r={id:n,bounds:e,createdAt:Date.now(),element:t};u.addGrabbedBox(r),s.hooks.onGrabbedBox(e,t);let i=window.setTimeout(()=>{lt.delete(n),u.removeGrabbedBox(n)},tn+125);lt.set(n,i)},dt=async e=>{let n=await Promise.all(e.map(async e=>{let t=await gu(e),n=t?.componentName??null,r=t?.filePath,i=t?.lineNumber??void 0,a=t?.columnNumber??void 0;n||=_u(e);let o=Vn(e)?e.innerText?.slice(0,100):void 0;return{tagName:$i(e),id:e.id||void 0,className:e.getAttribute(`class`)||void 0,textContent:o,componentName:n??void 0,filePath:r,lineNumber:i,columnNumber:a}}));t||window.dispatchEvent(new CustomEvent(`react-grab:element-selected`,{detail:{elements:n}}))},ft=new Map,pt=bh(u,()=>l.labelInstances,()=>ft.clear()),mt=e=>{for(let t of e)l.labelInstances.find(e=>e.id===t)?.status===`copying`&&(ft.delete(t),pt.dismissInstance(t))},ht=()=>{n.abort()},gt=()=>(n.signal.aborted&&!t&&(n=new AbortController),n.signal),_t=()=>(ht(),gt()),yt=()=>{ht(),r=null,mt(l.labelInstances.filter(e=>e.status===`copying`).map(e=>e.id))},G=async(e,t,n)=>{let r,i;try{if(r=await e(n),r.status===`cancelled`)return r;r.status===`failed`&&(i=`Failed to copy`)}catch(e){if(n.aborted)return pS;r={status:`failed`},i=jd(e,`Action failed`)}if(t)for(let e of t)pt.updateAfterCopy(e,r.status===`succeeded`,i);return r},xt=(e,t,n,r)=>{if(e){for(let e of n)ft.delete(e);return}let i={operation:t,siblingIds:new Set(n),shouldDeactivateAfter:r};for(let e of n)ft.set(e,i)},St=async(e,t,n,r=_t())=>{if(r.aborted)return!1;Xe(),v().state!==`copying`&&u.startCopy();let i=await G(e,t,r);if(i.status===`cancelled`)return!1;let a=i.status===`succeeded`;return t&&xt(a,e,t,!!n),v().state===`copying`?(a&&u.completeCopy(),n?K():a?(u.activate(),B()):(u.activate(),u.unfreeze()),!0):!0},Ct=e=>{let t=ft.get(e);if(!t)return;let n=[...t.siblingIds];for(let e of n)pt.markRetrying(e),ft.delete(e);St(t.operation,n,t.shouldDeactivateAfter).then(e=>{e||mt(n)})},wt=e=>{ft.get(e)?.siblingIds.delete(e),ft.delete(e),pt.dismissInstance(e)},Tt=(e,t,n,r)=>{let i=e[0],a=r??(i?_u(i):null),o=i?$i(i):null,c=a??o??void 0;return Bd({getContent:s.store.options.getContent,componentName:c,maxContextLines:s.store.options.maxContextLines,signal:t},s.hooks,e,n)},Et=async(e,t,n,r=gt())=>{if(e.length===0||r.aborted)return pS;let i=[],a=[];for(let t of e){let{wasIntercepted:e,pendingResult:n}=s.hooks.onElementSelect(t);e||i.push(t),n&&a.push(n),s.store.theme.grabbedBoxes.enabled&&ut(Y(t),t)}if(await Hu(),r.aborted)return pS;let o;if(i.length>0&&(o=await Tt(i,r,t,n),o.status===`cancelled`))return o;if(a.length>0){let e=await Pd(Promise.all(a),r);if(e===Nd)return o?.status===`succeeded`?o:pS;if(!e.every(Boolean))throw new Zi}return r.aborted&&!o?pS:(dt(e).catch(e=>{Z(new Bi(`Element selection notification failed`,e))}),o??{status:`succeeded`})},Dt=e=>{let n=_t(),i={},a=!1;r=i,lu(e.primaryElement).then(async t=>{if(n.aborted||r!==i){mt(e.labelInstanceIds);return}r=null,a=!0,await St(n=>Et(e.targetElements,e.extraPrompt,t??void 0,n),e.labelInstanceIds.length>0?e.labelInstanceIds:null,e.shouldDeactivateAfter,n)?e.onComplete?.():mt(e.labelInstanceIds)}).catch(o=>{if(n.aborted){mt(e.labelInstanceIds);return}if(t||!a&&r!==i)return;Z(new Bi(`Copy operation failed`,o));let s=jd(o,`Action failed`);for(let t of e.labelInstanceIds)pt.updateAfterCopy(t,!1,s);e.labelInstanceIds.length>0&&xt(!1,t=>lu(e.primaryElement).then(n=>t.aborted?pS:Et(e.targetElements,e.extraPrompt,n??void 0,t)),e.labelInstanceIds,!!e.shouldDeactivateAfter),v().state===`copying`&&(e.shouldDeactivateAfter?K():(u.activate(),u.unfreeze()))}).finally(()=>{r===i&&(r=null)})},Ot=e=>{let{element:t,cursorX:n,selectedElements:r,extraPrompt:i,shouldDeactivateAfter:a,onComplete:o,dragRect:s}=e,c=r??[t],d=s??l.frozenDragRect,f=c.length>1,p=!f&&t===Lt()?Ut():void 0,m=d&&f?Bm(d):p??Y(t),h=f?m.x+m.width/2:n,g=$i(t);Xe(),u.startCopy();let _=g?pt.createInstance(m,g,void 0,`copying`,{element:t,mouseX:h,elements:r}):null;Dt({primaryElement:t,targetElements:c,labelInstanceIds:_?[_]:[],extraPrompt:i,shouldDeactivateAfter:a,onComplete:o})},kt=e=>{let{elements:t,labelEntries:n,shouldDeactivateAfter:r,onComplete:i}=e,a=t[0];Xe(),u.startCopy(),Dt({primaryElement:a,targetElements:t,labelInstanceIds:pt.createPerElementInstances(n,`copying`),shouldDeactivateAfter:r,onComplete:i})},At=f(()=>{if(h(),!ct()||w()||te()||P.isPendingDismiss())return null;let e=l.detectedElement;return X(e)?e:null}),jt=f(()=>l.frozenElement||(S()?null:At())),Mt=f(()=>!x()||O()||R()||E()||Ce()||P.isPendingDismiss()?null:ge()?S()?jt():At()??l.frozenElement:P.selectedElement()),Nt=f(()=>{let e=Mt();return e?Um(e,mf,at):[]}),Pt=f(()=>{let e=Mt();return e?Math.max(0,Nt().findIndex(t=>t.element===e)):0}),Ft=f(()=>Mt()!==null);d(()=>{if(!l.detectedElement)return;let e=1,t=setInterval(()=>{if(X(l.detectedElement)||u.relinkLiveElements(),!X(l.detectedElement)){if(e>0){--e;return}dr()}},100);y(()=>clearInterval(t))}),d(_(jt,e=>{if(V!==null&&(clearTimeout(V),V=null),!e){W(null);return}V=window.setTimeout(()=>{V=null,W(e)},100)})),y(()=>{V!==null&&(clearTimeout(V),V=null)}),d(()=>{let e=l.frozenElements;y(Dg(e))}),d(_(x,e=>{e&&s.store.options.freezeReactUpdates&&y(Z_())}));let It=()=>{if(l.isTouchMode&&C()){let e=l.detectedElement;return!X(e)||tf(e)?void 0:e}let e=jt();if(!(!e||tf(e)))return e},Lt=f(()=>It()),Rt=()=>Lt()?l.isTouchMode&&C()?ct():ct()&&!w():!1,zt=_e(()=>l.frozenElements,e=>f(()=>(h(),Y(e)))),Bt=f(()=>{let e=l.frozenElements;if(e.length===0)return[];let t=l.frozenDragRect;return t&&e.length>1?[Bm(t)]:zt().map(e=>e())}),Vt=f(()=>{if(!R()||l.pendingCommentMode||Qe())return null;let e=l.detectedElement;return!X(e)||tf(e)||l.frozenElements.includes(e)?null:e}),Ht=f(()=>{h();let e=Vt();if(e)return Y(e)}),Ut=f(()=>{h();let e=l.frozenElements;if(e.length>0){let t=Bt();if(e.length===1){let e=t[0];if(e)return e}let n=l.frozenDragRect;return n?t[0]??Bm(n):Hm(ph(t))}let t=Lt();if(t)return Y(t)}),Wt=(e,t)=>({pageX:e+window.scrollX,pageY:t+window.scrollY}),Gt=(e,t)=>{let{pageX:n,pageY:r}=Wt(e,t);return{x:Math.abs(n-l.dragStart.x),y:Math.abs(r-l.dragStart.y)}},Kt=(e,t)=>{let{pageX:n,pageY:r}=Wt(e,t),i=Math.min(l.dragStart.x,n),a=Math.min(l.dragStart.y,r),o=Math.abs(n-l.dragStart.x),s=Math.abs(r-l.dragStart.y);return{x:i-window.scrollX,y:a-window.scrollY,width:o,height:s}},qt=e=>e.code===`Space`||e.key===` `,Jt=()=>{if(!C())return;u.startDragReposition();let{pageX:e,pageY:t}=Wt(p().x,p().y);Ge={x:e,y:t}},Yt=()=>{u.stopDragReposition(),Ge=null},Xt=f(()=>{if(h(),w())return Hm(Kt(p().x,p().y))}),Zt=f(()=>{if(Ie(),!w())return[];let e=Fe();if(!e)return[];let t=Kt(e.x,e.y),n=performance.now(),r=Lm(t,e,mf);return Pe=performance.now()-n,r}),Qt=f(()=>(h(),Zt().map(e=>Y(e)))),$t=f(()=>{let e=Qt();if(e.length>0)return e;let t=Ht();return t?[...Bt(),t]:Bt()}),en=_e(()=>l.frozenElements,e=>{let t=$i(e)||`element`,n=_u(e)??void 0;return{read:f(()=>{if(h(),!X(e))return null;let r=Y(e),i=we.get(e);return{tagName:t,componentName:n,bounds:r,mouseX:i===void 0?void 0:r.x+r.width*i}})}}),nn=f(()=>{if(O()||l.frozenElements.length<2)return[];let e=[];for(let t of en())t.read()!==null&&e.push(t);return e}),rn=f(()=>{if(O())return null;let e=Vt();return e?(h(),{tagName:$i(e)||`element`,componentName:_u(e)??void 0,bounds:Y(e),mouseX:p().x}):null}),an=f(()=>{if(E()||O()){h();let e=l.frozenElement||At();return e?{x:Ci(Y(e)).x+l.copyOffsetFromCenterX,y:l.copyStart.y}:{x:l.copyStart.x,y:l.copyStart.y}}return{x:p().x,y:p().y}}),on=f(()=>{if(!R()||l.frozenElements.length!==1)return;h();let e=l.frozenElements[0];if(!X(e))return;let t=we.get(e);if(t===void 0)return;let n=Y(e);return n.x+n.width*t});d(_(()=>[At(),l.lastGrabbedElement],([e,t])=>{t&&e&&t!==e&&u.setLastGrabbed(null),e&&s.hooks.onElementHover(e)})),d(_(()=>At(),e=>{let t=++Ze,n=()=>{Ze===t&&u.setSelectionSource(null,null)};if(!e){n();return}gu(e).then(e=>{if(Ze===t){if(!e){n();return}u.setSelectionSource(e.filePath,e.lineNumber)}}).catch(()=>{Ze===t&&u.setSelectionSource(null,null)})}));let sn=f(()=>l.grabbedBoxes.map(e=>({id:e.id,bounds:e.bounds,createdAt:e.createdAt}))),cn=f(()=>l.labelInstances.map(e=>({id:e.id,status:e.status,tagName:e.tagName,componentName:e.componentName,createdAt:e.createdAt})));d(_(f(()=>{let e=x(),t=C(),n=E(),r=O(),i=At(),a=Xt(),o=s.store.theme.enabled,c=s.store.theme.selectionBox.enabled,u=s.store.theme.dragBox.enabled,d=w(),f=jt(),p=D();return{isActive:e,isDragging:t,isCopying:n,isPromptMode:r,isSelectionBoxVisible:!!(o&&c&&e&&!n&&!p&&!t&&f!=null),isDragBoxVisible:!!(o&&u&&e&&!n&&d),targetElement:i,dragBounds:a?{x:a.x,y:a.y,width:a.width,height:a.height}:null,grabbedBoxes:[...sn()],labelInstances:[...cn()],selectionFilePath:l.selectionFilePath,toolbarState:fe()}}),e=>{s.hooks.onStateChange(e)})),d(_(()=>{let e=O();return{inputMode:e,position:e?p():g(p),target:e?At():g(At)}},({inputMode:e,position:t,target:n})=>{s.hooks.onPromptModeChange(e,{x:t.x,y:t.y,targetElement:n})})),d(_(()=>[kr(),Ut(),At()],([e,t,n])=>{s.hooks.onSelectionBox(!!e,t??null,n)})),d(_(()=>[zr(),Xt()],([e,t])=>{s.hooks.onDragBox(!!e,t??null)})),d(_(()=>{let e=Vr();return[e,Br(),e?an():g(an),e?At():g(At),l.selectionFilePath,l.selectionLineNumber]},([e,t,n,r,i,a])=>{s.hooks.onElementLabel(e,t,{x:n.x,y:n.y,content:``,element:r??void 0,tagName:r&&$i(r)||void 0,filePath:i??void 0,lineNumber:a??void 0})}));let ln=null,un=e=>{if(e){if(!ln){ln=document.createElement(`style`),ln.setAttribute(`data-react-grab-cursor`,``);let e=ca();e&&(ln.nonce=e),da(ln),document.head.appendChild(ln)}ln.textContent=`* { cursor: ${e} !important; }`}else ln&&=(ln.remove(),null)};d(_(()=>[x(),E(),O()],([e,t,n])=>{un(t?`progress`:e&&!n?`crosshair`:null)}));let dn=()=>{let e=b();u.activate(),e||s.hooks.onActivate()},K=()=>{yt();let e=C(),t=l.previouslyFocusedElement;Yt(),u.deactivate(),ti(),Ee(),qn(),P.clear(),$e(!1),et(null),e&&(ae(`userSelect`),He()),Ue&&window.clearTimeout(Ue),st.stop(),Vn(t)&&t!==document.body&&t!==document.activeElement&&X(t)&&t.focus({preventScroll:!0}),s.hooks.onDeactivate()},fn=()=>{b()&&u.releaseHold(),x()||E()?K():yt(),Xe()},pn=()=>{u.setWasActivatedByToggle(!0),dn()},mn=()=>{let e=[...l.frozenElements],t=l.frozenElement||At(),n=O()?l.inputText.trim():``;if(!t){K();return}let r=e.length>0?e:[t],i=r.map(e=>Y(e))[0],{x:a,y:o}=Ci(i),s=a+l.copyOffsetFromCenterX;u.setPointer({x:a,y:o}),u.exitPromptMode(),u.clearInputText(),Ot({element:t,cursorX:s,selectedElements:r,extraPrompt:n||void 0,shouldDeactivateAfter:!0})},hn=()=>{if(O()){if(ne()){u.clearInputText(),K();return}u.setPendingDismiss(!0),de(e=>e+1)}},gn=()=>{if(P.isPendingDismiss()){Xn();return}u.clearInputText(),K()},_n=()=>{u.setPendingDismiss(!1)},vn=()=>{H=null,$e(!1),u.setPendingCommentMode(!1),et(null)},yn=e=>{H=e,et(e),$e(!0)},bn=e=>{let t=l.frozenElement||At();if(!t)return!1;let n={x:p().x,y:p().y},r=s.store.actions.find(t=>t.id===e);return r?(u.clearInputText(),u.exitPromptMode(),vn(),lv(r,nr(t,n))||On(t,n),!0):(u.clearInputText(),u.exitPromptMode(),vn(),On(t,n),!0)},xn=e=>{if(E()){K();return}if(x()){if(it()!==e){if(O()){if(bn(e))return;K();return}u.setPendingCommentMode(!1),yn(e);return}K();return}oe()&&(yn(e),pn())},wn=()=>{xn(fe()?.defaultAction??`copy`)},Tn=()=>{let e=fe()?.defaultAction??`copy`;return s.store.actions.find(t=>t.id===e)?.label??`Copy`},En=(e,t,n)=>{vn(),u.clearInputText(),u.enterPromptMode({x:t,y:n},e)},On=(e,t)=>{Ee(),ni(),u.showContextMenu(t,e),qn(),s.hooks.onContextMenu(e,t)},kn=(e,t)=>{let n=H;if(H=null,et(null),!n)return;let r=s.store.actions.find(e=>e.id===n);if(!r){On(e,t);return}lv(r,nr(e,t))||On(e,t)},Mn=()=>{if(oe()){if(x()&&k()){K();return}u.setPendingCommentMode(!0),x()||pn()}},Pn=(e,t,n)=>{let r=n&&R()&&!C()&&!l.pendingCommentMode&&!Qe();if(Te()||S()&&!r)return;if(u.setPointer({x:e,y:t}),Me.latestPointerX=e,Me.latestPointerY=t,r){let n=Cm(e,t);n!==l.detectedElement&&u.setDetectedElement(n);return}let i=performance.now(),a=Me.pendingDetectionScheduledAt>0&&i-Me.pendingDetectionScheduledAt<200;if(!w()&&!a){Me.pendingDetectionScheduledAt=i;let e=Math.max(0,32-(i-Me.lastDetectionTimestamp));setTimeout(()=>{if(Te()||S()||w()){Me.pendingDetectionScheduledAt=0;return}l.detectedElement&&!X(l.detectedElement)&&(u.relinkLiveElements(),wm()),Me.lastDetectionTimestamp=performance.now();let e=Cm(Me.latestPointerX,Me.latestPointerY);e!==l.detectedElement&&u.setDetectedElement(e),Me.pendingDetectionScheduledAt=0},e)}if(C()){if(T()){let{pageX:n,pageY:r}=Wt(e,t);Ge&&u.shiftDragStart({x:n-Ge.x,y:r-Ge.y}),Ge={x:n,y:r}}Be(e,t);let n=wh(e,t),r=n.top||n.bottom||n.left||n.right;r&&!st.isActive()?st.start():!r&&st.isActive()&&st.stop()}},Fn=(e,t,n)=>{if(!ct()||te())return!1;!n&&R()&&Ee();let r=P.selectedElement()!==null;return u.startDrag({x:e,y:t},n||r),u.setPointer({x:e,y:t}),ie(`userSelect`,`none`),s.hooks.onDragStart(e+window.scrollX,t+window.scrollY),!0},In=(e,t)=>{let n=l.frozenElements.includes(e),r=l.frozenElements.length===0;if(!n){let n=Rm(Y(e),t);we.set(e,n),r&&rt(_u(e)??void 0)}u.toggleFrozenElement(e),wm();let i=l.frozenElements.includes(e);if(i||we.delete(e),l.frozenElements.length===0){Ee(),u.unfreeze();return}Tg(l.frozenElements),Ke(!0),u.setPointer(t),u.setLastGrabbed(i?e:l.frozenElements[l.frozenElements.length-1]),u.freeze(),qn()},Rn=()=>{let e=l.frozenElements.filter(X),t=e.map(e=>{let t=$i(e)||`element`,n=_u(e)??void 0,r=we.get(e),i=Y(e);return{element:e,tagName:t,componentName:n,mouseX:r===void 0?i.x+i.width/2:i.x+i.width*r}});if(Ee(),e.length===0){u.unfreeze();return}if(e.length===1){Ot({element:e[0],cursorX:t[0].mouseX,selectedElements:e,shouldDeactivateAfter:l.wasActivatedByToggle});return}kt({elements:e,labelEntries:t,shouldDeactivateAfter:l.wasActivatedByToggle})},q=(e,t,n,r)=>{if(t.length===0)return;let i=r&&!l.pendingCommentMode&&!Qe();if(i&&u.addFrozenElements(t),Tg(i?l.frozenElements:t),s.hooks.onDragEnd(t,e),i){let e=t[t.length-1];Ke(!0),wm(),u.setPointer(Ci(Y(e))),u.setLastGrabbed(e),u.freeze(),qn();return}let a=t[0],o=Ci(Y(a));u.setPointer(o),u.setFrozenElements(t);let c=Vm(e);if(u.setFrozenDragRect(c),u.freeze(),u.setLastGrabbed(a),l.pendingCommentMode){En(a,o.x,o.y);return}if(Qe()){$e(!1),H?kn(a,o):On(a,o);return}let d=l.wasActivatedByToggle&&!n;Ot({element:a,cursorX:o.x,selectedElements:t,shouldDeactivateAfter:d,dragRect:c})},zn=e=>{for(let t of l.frozenElements)if(X(t)&&Mh(e,Y(t)))return t;return null},Bn=(e,t,n,r)=>{let i=X(l.frozenElement)?l.frozenElement:null,a=P.selectedElement(),o=()=>Sm(e,t).find(mf)??null;if(r&&!l.pendingCommentMode&&!Qe()){let n=o();n!==null&&In(n,{x:e,y:t});return}let c=o()??(X(l.detectedElement)?l.detectedElement:null),d=a??c??i;if(!d)return;let f,m,h=c===null&&i===d,g=a===d;if(h)f=p().x,m=p().y;else if(g){let e=Ci(Y(d));f=e.x,m=e.y}else f=e,m=t;if(l.pendingCommentMode){En(d,f,m),P.clear();return}if(Qe()){$e(!1);let{wasIntercepted:e}=s.hooks.onElementSelect(d);if(e)return;P.clear(),Tg([d]),u.setFrozenElement(d);let t={x:f,y:m};u.setPointer(t),u.freeze(),H?kn(d,t):On(d,t);return}let _=l.wasActivatedByToggle&&!n;u.setLastGrabbed(d),Ot({element:d,cursorX:f,shouldDeactivateAfter:_}),P.clear()},Hn=()=>{C()&&(Yt(),He(),u.cancelDrag(),st.stop(),ae(`userSelect`),dr())},Un=(e,t,n,r)=>{if(!C())return;let i=Gt(e,t),a=i.x>2||i.y>2,o=a?Kt(e,t):null,s=o?Ve(o,e,t):[];He(),a?u.endDrag():u.cancelDrag(),Yt(),st.stop(),ae(`userSelect`),o?q(o,s,n,r):Bn(e,t,n,r)},J=kd(),Wn=yv({shouldForwardInteraction:()=>x()||b()||C()||te(),shouldForwardKeyboardEvent:e=>ah(e,s.store.options),shouldForwardViewportEvent:e=>{let t=l.frozenElement??At();return t&&bv(e,t)?!0:l.frozenElements.some(t=>bv(e,t))}}),Gn=Ch(),Kn=e=>{let t;try{t=Gn.originalKeyDescriptor?.get?Gn.originalKeyDescriptor.get.call(e):e.key}catch{return!1}let n=t===`Enter`||jh(e.code),r=x()||b();return n&&r&&!O()&&!P.isPendingDismiss()&&!l.wasActivatedByToggle?oh(e,`data-react-grab-input`)?!1:(Gn.claimedEvents.add(e),e.preventDefault(),e.stopImmediatePropagation(),!0):!1};J.addDocumentListener(`keydown`,Ca(Kn),{capture:!0}),J.addDocumentListener(`keyup`,Ca(Kn),{capture:!0}),J.addDocumentListener(`keypress`,Ca(Kn),{capture:!0});let qn=()=>{ot.clearHistory(),P.clear()},Jn=(e,t=!1)=>{u.setFrozenElement(e),u.freeze(),P.select(e,{shouldPromptBeforeMouseHandoff:t});let n=Ci(Y(e));u.setPointer(n),l.contextMenuPosition!==null&&u.showContextMenu(n,e)},Yn=()=>{P.showDismissPrompt()&&de(e=>e+1)},Xn=()=>{P.clear(),u.unfreeze(),qn()},Zn=()=>{let e=P.takeSelection(l.frozenElement);if(!e){Xn();return}let t=Ci(Y(e));qn(),u.setLastGrabbed(e),Ot({element:e,cursorX:t.x,shouldDeactivateAfter:l.wasActivatedByToggle})},Qn=e=>Cn.has(e.key)?e.key:e.key===`Tab`?e.shiftKey?`ArrowLeft`:`ArrowRight`:null,$n=(e,t={})=>{if(!x()||O()||R()||P.isPendingDismiss()&&!t.allowPendingKeyboardSelection)return!1;let n=Qn(e);if(!n||Ce())return!1;let r=jt(),i=!r;if(!r){let e=xa()?.getBoundingClientRect();r=e?Cm(e.left+e.width/2,e.top+e.height/2):Cm(window.innerWidth/2,window.innerHeight/2)}if(!r)return!1;let a=n===`ArrowUp`||n===`ArrowDown`,o=ot.findNext(n,r);if(!o&&!a&&!i)return!1;let s=o??r;return e.preventDefault(),e.stopPropagation(),Jn(s,!0),!0},er=e=>e.metaKey||e.ctrlKey||e.altKey||e.repeat||ra(e)||!x()||E()||te()||Ce()?null:l.frozenElement||At(),tr=e=>{let t=er(e);if(!t)return null;let n=nv(s.store.actions,e);return n?{element:t,action:n}:null},nr=(e,t)=>{let n=Y(e);return Xr({element:e,filePath:l.selectionFilePath??void 0,lineNumber:l.selectionLineNumber??void 0,tagName:$i(e)||void 0,componentName:nt(),position:t,shouldDeferHideContextMenu:!1,performWithFeedbackOptions:{fallbackBounds:n,fallbackSelectionBounds:[n],position:t}})},rr=e=>{let t=tr(e);if(!t)return!1;let{element:n,action:r}=t;return O()?bn(r.id)?(e.preventDefault(),e.stopImmediatePropagation(),!0):!1:lv(r,nr(n,{x:p().x,y:p().y}))?(e.preventDefault(),e.stopImmediatePropagation(),!0):!1},ir=()=>{let e=l.selectionFilePath,t=l.selectionLineNumber;e&&fh(e,t??void 0,s.hooks)},ar=e=>e.key?.toLowerCase()!==`o`||!x()||!(e.metaKey||e.ctrlKey)||!l.selectionFilePath?!1:(e.preventDefault(),e.stopPropagation(),ir(),!0),or=e=>{if(!x()||E()||l.contextMenuPosition!==null)return!1;let t=e.key===`F10`&&e.shiftKey,n=e.key===`ContextMenu`;if(!t&&!n)return!1;let r=l.frozenElements,i=r.length>1,a=(i?r[0]:null)||l.frozenElement||At();if(!a)return!1;e.preventDefault(),e.stopPropagation();let o=Ci(Y(a));return i?Tg(r):(Tg([a]),u.setFrozenElement(a)),u.setPointer(o),u.freeze(),On(a,o),!0},sr=f(()=>Nt().map(e=>({tagName:$i(e.element)||`element`,componentName:_u(e.element)??void 0,depth:e.depth,isLast:e.isLast}))),cr=f(()=>({items:sr(),activeIndex:Pt()})),lr=e=>{if(!(!s.store.options.allowActivationInsideInput&&ra(e))&&!(!ah(e,s.store.options)&&((e.metaKey||e.ctrlKey)&&!Sn.includes(e.key)&&!jh(e.code)&&(x()&&!l.wasActivatedByToggle?K():b()&&(Oe(),ke(),u.releaseHold())),!jh(e.code)||!b()))){if((x()||b())&&!O()&&(e.preventDefault(),jh(e.code)&&e.stopImmediatePropagation()),x()){if(l.wasActivatedByToggle&&s.store.options.activationMode!==`hold`||e.repeat)return;Ue!==null&&window.clearTimeout(Ue),Ue=window.setTimeout(()=>{K()},200);return}if(b()&&e.repeat){if(We.copyWaiting){let e=We.holdTimerFired;ke(),e&&u.activate()}return}if(!(E()||D())&&!b()){let t=s.store.options.keyHoldDuration??100;ra(e)?ia(e)?t+=600:t+=400:aa()&&(t+=600),ke(),u.startHold(t)}}},ur=e=>{if(!P.isPendingDismiss())return!1;if(jh(e.code))return!0;let t=Cn.has(e.key),n=tr(e)!==null;return!t&&!n?!1:t?$n(e,{allowPendingKeyboardSelection:!0}):rr(e)?(qn(),!0):!1};J.addWindowListener(`keydown`,Ca(e=>{if(Qn(e)&&ra(e)||ur(e))return;if(Kn(e),!oe()){ah(e,s.store.options)&&!e.repeat&&le(e=>e+1);return}let t=jh(e.code)&&b()&&!O(),n=oh(e,Dn);if(O()&&ah(e,s.store.options)&&!e.repeat&&!n){e.preventDefault(),e.stopPropagation(),hn();return}if(e.key===`Escape`&&E()){K();return}if(e.key===`Escape`&&Ce()){ve()!==null&&ti();return}let r=oh(e,`data-react-grab-ignore-events`)&&!t;if(O()||r)return O()&&!n&&rr(e)||(e.key===`Escape`&&(O()?hn():l.wasActivatedByToggle&&K()),r&&Cn.has(e.key)&&$n(e)),void 0;if(C()&&qt(e)){e.repeat||Jt(),e.preventDefault(),e.stopPropagation();return}if(e.key===`Escape`&&(b()||l.wasActivatedByToggle)){K();return}x()&&!Sn.includes(e.key)&&e.preventDefault();let i=Date.now()-qe<200;$n(e)||ar(e)||or(e)||rr(e)||i||lr(e)}),{capture:!0}),J.addWindowListener(`keyup`,Ca(e=>{if(Kn(e))return;if(qt(e)&&T()&&(Yt(),e.preventDefault(),e.stopPropagation()),e.key===`Shift`&&R()){C()&&Hn(),Rn();return}if(oh(e,`data-react-grab-ignore-events`))return;let t=ih(s.store.options.activationKey),n=t.metaKey||t.ctrlKey?Qm()?!e.metaKey:!e.ctrlKey:t.shiftKey&&!e.shiftKey||t.altKey&&!e.altKey,r=s.store.options.activationKey?rh(s.store.options.activationKey)(e):Ym(e.key,e.code);if(D()||z){(r||n)&&(Xe(),K());return}if(!b()&&!x()||O())return;let i=!!s.store.options.activationKey,a=s.store.options.activationMode===`hold`,o=C();if(x()){let e=Se();if(n){if(l.wasActivatedByToggle&&s.store.options.activationMode!==`hold`||e)return;K()}else if(a&&r){if(Ue!==null&&(window.clearTimeout(Ue),Ue=null),e||o)return;K()}else !i&&r&&Ue!==null&&(window.clearTimeout(Ue),Ue=null);return}if(r||n){if(l.wasActivatedByToggle&&s.store.options.activationMode!==`hold`)return;if(b()||We.holdTimerFired&&n){Oe();let t=(We.startTimestamp?Date.now()-We.startTimestamp:0)>=200,n=We.holdTimerFired&&t&&(s.store.options.allowActivationInsideInput||!ra(e));ke(),n?u.activate():u.releaseHold()}else K()}}),{capture:!0}),J.addDocumentListener(`copy`,()=>{b()&&(We.copyWaiting=!0)}),J.addWindowListener(`keypress`,Ca(Kn),{capture:!0}),J.addWindowListener(`pointermove`,Ca(e=>{if(!e.isPrimary)return;let t=e.pointerType===`touch`;if(u.setTouchMode(t),!oh(e,`data-react-grab-ignore-events`)&&!Te()&&!(t&&!b()&&!x())){if((t?b():x())&&!O()&&S()&&!e.shiftKey&&!R()){if(P.consumeMouseHandoff()){Yn();return}u.unfreeze(),qn()}Pn(e.clientX,e.clientY,e.shiftKey)}}),{passive:!0,capture:!0}),J.addWindowListener(`pointerdown`,Ca(e=>{if(e.button===0&&e.isPrimary&&(u.setTouchMode(e.pointerType===`touch`),!(!C()&&oh(e,`data-react-grab-ignore-events`))&&!Se())){if(O()){let t=Ut();t&&e.clientX>=t.x&&e.clientX<=t.x+t.width&&e.clientY>=t.y&&e.clientY<=t.y+t.height?mn():hn();return}if(P.isPendingDismiss()){e.preventDefault(),e.stopImmediatePropagation();return}if(te()){e.preventDefault(),e.stopImmediatePropagation();return}if(Fn(e.clientX,e.clientY,e.shiftKey)){if(e.pointerId!==void 0)try{document.documentElement.setPointerCapture(e.pointerId)}catch{}e.preventDefault(),e.stopImmediatePropagation()}}}),{capture:!0}),J.addWindowListener(`pointerup`,Ca(e=>{if(e.button!==0||!e.isPrimary||oh(e,`data-react-grab-ignore-events`)||Se())return;let t=ct()||te()||C(),n=e.metaKey||e.ctrlKey;Un(e.clientX,e.clientY,n,e.shiftKey),t&&(e.preventDefault(),e.stopImmediatePropagation())}),{capture:!0}),J.addWindowListener(`contextmenu`,Ca(e=>{if(!ct()||E()||O())return;let t=oh(e,`data-react-grab-ignore-events`),n={x:e.clientX,y:e.clientY},r=t&&l.frozenElements.length>1?zn(n):null,i=P.isPendingDismiss();if(t&&!r&&!i&&!Ft())return;if(Se()){e.preventDefault();return}e.preventDefault(),e.stopPropagation();let a=r??Cm(e.clientX,e.clientY);if(!a)return;let o=l.frozenElements;o.length>1&&o.includes(a)?Tg(o):(Tg([a]),u.setFrozenElement(a)),u.setPointer(n),u.freeze(),On(a,n)}),{capture:!0}),J.addWindowListener(`pointercancel`,Ca(e=>{e.isPrimary&&Hn()}),{capture:!0}),J.addWindowListener(`click`,Ca(e=>{oh(e,`data-react-grab-ignore-events`)||Se()||(ct()||ee())&&(e.preventDefault(),e.stopImmediatePropagation(),l.wasActivatedByToggle&&!O()&&!e.shiftKey&&(b()?u.setWasActivatedByToggle(!1):K()))}),{capture:!0}),J.addDocumentListener(`visibilitychange`,()=>{if(document.hidden){u.clearGrabbedBoxes();let e=l.activationTimestamp;x()&&!O()&&e!==null&&Date.now()-e>500&&K()}}),J.addWindowListener(`blur`,()=>{Hn(),b()&&(Oe(),u.releaseHold(),ke()),Ee()}),J.addWindowListener(`focus`,()=>{qe=Date.now()}),J.addWindowListener(`focusin`,e=>{oh(e,Ta)&&e.stopPropagation()},{capture:!0});let dr=()=>{if(!(l.isTouchMode&&!b()&&!x())&&!Te()&&!S()&&!C()&&l.frozenElements.length===0){let e=Cm(p().x,p().y);u.setDetectedElement(e)}},fr=null,pr=null,mr=()=>{zm(),dr(),Le(e=>e+1),u.incrementViewportVersion(),u.updateContextMenuPosition()},hr=()=>{pf(),mr()};J.addWindowListener(`scroll`,mr,{capture:!0});let gr=window.innerWidth,_r=window.innerHeight;J.addWindowListener(`resize`,()=>{let e=window.innerWidth,t=window.innerHeight;if(gr>0&&_r>0){let n=e/gr,r=t/_r,i=Math.abs(n-r)<Nn,a=Math.abs(n-1)>Nn;i&&a&&u.setPointer({x:p().x*n,y:p().y*r})}gr=e,_r=t,hr()});let vr=window.visualViewport;if(vr){let{signal:e}=J;vr.addEventListener(`resize`,hr,{signal:e}),vr.addEventListener(`scroll`,mr,{signal:e})}let yr=()=>{pr===null&&(pr=Bu(()=>{pr=null,u.incrementViewportVersion()}))};d(()=>{if(s.store.theme.enabled&&(x()||E()||l.labelInstances.length>0||l.grabbedBoxes.length>0)){if(fr!==null)return;fr=window.setInterval(()=>{u.relinkLiveElements(),yr()},100);return}fr!==null&&(window.clearInterval(fr),fr=null),pr!==null&&(Vu(pr),pr=null)}),y(()=>{fr!==null&&window.clearInterval(fr),pr!==null&&Vu(pr)}),J.addDocumentListener(`copy`,Ca(e=>{O()||oh(e,`data-react-grab-ignore-events`)||ct()&&e.preventDefault()}),{capture:!0}),y(()=>{let e=[];Q(Wn,e),Q(()=>J.abort(),e),Re(),Ue&&window.clearTimeout(Ue),Q(Xe,e),N&&Q(N,e),N=null,lt.forEach(e=>window.clearTimeout(e)),lt.clear(),Q(pt.cancelAllFades,e),ft.clear(),Q(st.stop,e),Q(l_,e),Q(()=>ae(`userSelect`),e),Q(()=>ae(`touchAction`),e),Q(()=>un(null),e),Q(Gn.restore,e),Q(()=>ba(null),e),lp(e,`Disposing React Grab failed`)});let{root:br,host:xr,cancelPendingAttachment:Sr}=ka(bt);y(Sr),y(Ed(xr).cleanup);let Cr=f(()=>s.store.theme.enabled),wr=f(()=>s.store.theme.selectionBox.enabled),Tr=f(()=>s.store.theme.elementLabel.enabled),Er=f(()=>s.store.theme.dragBox.enabled),Dr=f(()=>D()||me()&&!S()),Or=f(()=>Qt().length>0),kr=f(()=>!Cr()||!wr()||Dr()?!1:Or()?!0:Rt()),Ar=f(()=>{let e=Lt();if(e)return $i(e)||void 0}),jr=f(()=>!Cr()||Se()||!Tr()||Dr()?!1:Rt()),Mr=new Map,Nr=e=>{let t=e.elements?.filter(X)??[],n=e.element,r=null;t.length>0?r=t.map(Y):n&&X(n)&&(r=[Y(n)]);let i=e.bounds,a=e.boundsMultiple;r&&(i=r.length>1?Hm(ph(r)):r[0],e.boundsMultiple!==void 0&&(a=e.boundsMultiple.length>1&&e.boundsMultiple.length===e.elements?.length?r:[i]));let o=Mr.get(e.id),s=o?.boundsMultiple,c=s===a||s!==void 0&&a!==void 0&&s.length===a.length&&s.every((e,t)=>e.x===a[t].x&&e.y===a[t].y&&e.width===a[t].width&&e.height===a[t].height);if(o&&o.status===e.status&&o.errorMessage===e.errorMessage&&o.bounds.x===i.x&&o.bounds.y===i.y&&o.bounds.width===i.width&&o.bounds.height===i.height&&c)return o;let l=i.x+i.width/2,u=i.width/2,d;d=e.mouseXOffsetRatio!==void 0&&u>0?l+e.mouseXOffsetRatio*u:e.mouseXOffsetFromCenter===void 0?e.mouseX??l:l+e.mouseXOffsetFromCenter;let f={...e,bounds:i,boundsMultiple:a,mouseX:d};return Mr.set(e.id,f),f},Pr=f(()=>{if(!Cr()||!s.store.theme.grabbedBoxes.enabled)return[];h();let e=new Set(l.labelInstances.map(e=>e.id));for(let t of Mr.keys())e.has(t)||Mr.delete(t);return l.labelInstances.map(Nr)}),Fr=f(()=>new Map(Pr().map(e=>[e.id,e]))),Ir=new Map,Lr=f(()=>{let e=Pr(),t=new Set(e.map(e=>e.id));for(let e of Ir.keys())t.has(e)||Ir.delete(e);return e.map(e=>{let t=Ir.get(e.id);if(t)return t;let n=e.id,r={read:()=>Fr().get(n)??null};return Ir.set(n,r),r})}),Rr=f(()=>!Cr()||!s.store.theme.grabbedBoxes.enabled?[]:(h(),l.grabbedBoxes.map(e=>X(e.element)?{...e,bounds:Y(e.element)}:e))),zr=f(()=>Cr()&&Er()&&ct()&&w()),Br=f(()=>E()?`processing`:`hover`),Vr=f(()=>{if(!Cr())return!1;let e=Tr(),t=O(),n=E(),r=ct(),i=C(),a=!!jt(),o=me(),s=S();return!e||t||o&&!s?!1:n?!0:r&&!i&&a}),Hr=f(()=>{h();let e=l.contextMenuElement;return e?Y(e):null}),Ur=f(()=>(h(),l.contextMenuPosition)),Wr=f(()=>{let e=l.contextMenuElement;if(!e)return;let t=l.frozenElements.length;return t>1?`${t} elements`:$i(e)||void 0}),[Gr]=Iu(()=>l.frozenElements.length>1?null:l.contextMenuElement),[Kr]=m(()=>l.contextMenuElement,async e=>e?gu(e):null),qr=async e=>{u.incrementSelectionInteractionLockDepth();try{return await e()}finally{u.decrementSelectionInteractionLockDepth()}},Jr=(e,t,n,r,i)=>async a=>{await qr(async()=>{let o=i?.fallbackBounds??null,s=i?.fallbackSelectionBounds??[],c=i?.position??l.contextMenuPosition??p(),d=Bt(),f=Hr()??o,m=t.length>1,h=m?Hm(ph(d)):f,g=l.wasActivatedByToggle,_;if(_=m?d:f?[f]:s,u.hideContextMenu(),h){let i=m?h.x+h.width/2:c.x,o=pt.createInstance(h,n||`element`,r,`copying`,{element:e,mouseX:i,elements:m?t:void 0,boundsMultiple:_}),s=!1,l;try{s=await a(),s||(l=`Failed to copy`)}catch(e){l=jd(e,`Action failed`)}pt.updateAfterCopy(o,s,l)}else try{await a()}catch(e){Z(new Bi(`Action failed without feedback bounds`,e))}g?K():u.unfreeze()})},Yr=()=>{setTimeout(()=>{u.hideContextMenu()},0)},Xr=e=>{let{element:t,filePath:n,lineNumber:r,tagName:i,componentName:a,position:o,performWithFeedbackOptions:c,shouldDeferHideContextMenu:d,onBeforeCopy:f,onBeforePrompt:p,customEnterPromptMode:m}=e,h=l.frozenElements.length>0?l.frozenElements:[t],g=d?Yr:u.hideContextMenu,_={element:t,elements:h,filePath:n,lineNumber:r,componentName:a,tagName:i,enterPromptMode:m??(()=>{pt.clearAll(),vn(),p?.(),Ae(t,o.x,o.y),u.setPointer({x:o.x,y:o.y}),u.setFrozenElement(t),je(),x()||dn(),g()}),copy:()=>{vn(),f?.(),Ot({element:t,cursorX:o.x,selectedElements:h.length>1?h:void 0,shouldDeactivateAfter:l.wasActivatedByToggle}),g()},hooks:{transformHtmlContent:s.hooks.transformHtmlContent,onOpenFile:s.hooks.onOpenFile,transformOpenFileUrl:s.hooks.transformOpenFileUrl},performWithFeedback:Jr(t,h,i,a,c),hideContextMenu:g,cleanup:()=>{l.wasActivatedByToggle?K():u.unfreeze()}},v=s.hooks.transformActionContext(_);return{..._,...v}},Zr=f(()=>{let e=l.contextMenuElement;if(!e)return;let t=Kr(),n=l.contextMenuPosition??p();return Xr({element:e,filePath:t?.filePath,lineNumber:t?.lineNumber??void 0,tagName:Wr(),componentName:Gr(),position:n,shouldDeferHideContextMenu:!0,onBeforeCopy:()=>{P.clear()},customEnterPromptMode:()=>{pt.clearAll(),vn(),u.clearInputText(),u.enterPromptMode(n,e),Yr()}})}),Qr=()=>{setTimeout(()=>{u.hideContextMenu(),K()},0)},$r=()=>{if(!M)return null;let e=M.getBoundingClientRect(),t=$_(e);return t===`left`||t===`right`?{x:t===`left`?e.right:e.left,y:e.top+e.height/2,edge:t}:{x:e.left+e.width/2,y:t===`top`?e.bottom:e.top,edge:t}},ei=(e,t)=>{let n=null,r=()=>{let i=e();i&&t(i),n=Bu(r)};return r(),()=>{n!==null&&(Vu(n),n=null)}};d(()=>{if(!Ft())return;let e=ei($r,xe);y(()=>{e(),xe(null)})});let ti=()=>{N?.(),N=null,ye(null)},ni=()=>{u.hideContextMenu(),ti()},ri=()=>{ve()===null?(u.hideContextMenu(),N?.(),N=ei($r,ye)):ti()},ii=e=>{De({defaultAction:e}),Qe()&&yn(e)},ai=e=>{let t=l.labelInstances.find(t=>t.id===e);if(!t?.element||!X(t.element))return;let n=t.element,r=Ci(Y(n)),i={x:t.mouseX??r.x,y:r.y},a=t.elements&&t.elements.length>0?t.elements.filter(e=>X(e)):[n];setTimeout(()=>{ti(),x()||(u.setWasActivatedByToggle(!0),dn()),u.setPointer(i),u.setFrozenElements(a),a.length>1&&t.bounds&&u.setFrozenDragRect(Vm(t.bounds)),u.freeze(),u.showContextMenu(i,n)},0)};d(()=>{let e=s.store.theme.hue;e===0?br.style.filter=``:br.style.filter=`hue-rotate(${e}deg)`}),s.store.theme.enabled&&Promise.resolve().then(()=>(dS(),lS)).then(({ReactGrabRenderer:e})=>{t||(i=Je(()=>j(e,{get selectionVisible(){return kr()},get selectionBounds(){return Ut()},get selectionBoundsMultiple(){return $t()},get selectionShouldSnap(){return l.frozenElements.length>0||Qt().length>0},get selectionElementsCount(){return l.frozenElements.length},get frozenLabelEntryAccessors(){return nn()},get pendingShiftPreviewEntry(){return rn()??void 0},get selectionFilePath(){return l.selectionFilePath??void 0},get selectionTagName(){return Ar()},get selectionComponentName(){return nt()},get selectionLabelVisible(){return jr()},selectionLabelStatus:`idle`,get hierarchyState(){return cr()},get hierarchyMenuPosition(){return be()},get labelInstances(){return Pr()},get labelInstanceAccessors(){return Lr()},get dragVisible(){return zr()},get dragBounds(){return Xt()},get grabbedBoxes(){return Rr()},get mouseX(){return vt(()=>l.frozenElements.length>1)()?void 0:on()??an().x},get isFrozen(){return S()||x()||me()},get inputValue(){return l.inputText},get isPromptMode(){return O()},onShowContextMenuInstance:ai,onRetryInstance:Ct,onAcknowledgeErrorInstance:wt,get onLabelInstanceHoverChange(){return pt.handleHoverChange},get onInputChange(){return u.setInputText},onInputSubmit:()=>void mn(),get selectionLabelShakeCount(){return ue()},onConfirmDismiss:gn,onOpenSelectionFile:ir,get discardPrompt(){return vt(()=>!!P.isPendingDismiss())()?{isKeyboardSelection:!0,onConfirm:gn,onCopy:Zn}:ne()?{onConfirm:gn,onCancel:_n}:void 0},get toolbarVisible(){return s.store.theme.toolbar.enabled},get isActive(){return x()},onToggleActive:wn,get activeActionId(){return it()},get enabled(){return oe()},get shakeCount(){return ce()},onToolbarStateChange:e=>{pe(e),e.enabled!==oe()&&(se(e.enabled),e.enabled||(fn(),ni())),fv(o,e)},onSubscribeToToolbarStateChanges:e=>(o.add(e),()=>{o.delete(e)}),onToolbarSelectHoverChange:he,onToolbarRef:e=>{M=e},get contextMenuPosition(){return Ur()},get contextMenuBounds(){return Hr()},get contextMenuTagName(){return Wr()},get contextMenuComponentName(){return Gr()},get contextMenuHasFilePath(){return!!Kr()?.filePath},get actions(){return s.store.actions},get actionContext(){return Zr()},onContextMenuDismiss:Qr,onContextMenuHide:Yr,get toolbarMenuPosition(){return ve()},get toolbarMenuActions(){return s.store.actions.filter(e=>e.showInToolbarMenu===!0)},get defaultActionId(){return fe()?.defaultAction??`copy`},get defaultActionLabel(){return Tn()},onSetDefaultAction:ii,onToggleToolbarMenu:ri,onToolbarMenuDismiss:ti}),br))}).catch(e=>{console.warn(`[react-grab] Failed to load renderer:`,e)});let oi={activate:()=>{u.setPendingCommentMode(!1),!x()&&oe()&&pn()},deactivate:()=>{x()||E()?K():yt()},toggle:()=>{x()||E()?K():oe()&&pn()},comment:Mn,isActive:()=>x(),isEnabled:()=>oe(),setEnabled:e=>{e!==oe()&&(se(e),De({enabled:e,collapsed:!e}),e||(fn(),ni()))},getToolbarState:()=>fe()??Ph(),setToolbarState:e=>{let t=fe()??Ph(),n=e.collapsed??t?.collapsed??!1,r=e.defaultAction??t?.defaultAction??`copy`,i={edge:e.edge??t?.edge??`bottom`,ratio:e.ratio??t?.ratio??.5,collapsed:n,enabled:e.enabled??!n,defaultAction:qm(r)};Fh(i),pe(i),i.enabled!==oe()&&(se(i.enabled),i.enabled||(fn(),ni())),fv(o,i)},onToolbarStateChange:e=>(o.add(e),()=>{o.delete(e)}),reset:()=>{fn(),ni(),u.clearGrabbedBoxes(),pt.clearAll(),u.setSelectionSource(null,null)},dispose:()=>{if(t)return;let n=[];t=!0,mS=!1,Q(yt,n),Q(pt.clearAll,n),i&&Q(i,n),i=void 0,N&&Q(N,n),N=null,o.clear(),Q(e,n),Q(()=>Tv(oi),n),lp(n,`Disposing React Grab failed`)},copyElement:async e=>{let t=Array.isArray(e)?e:[e];return t.length===0?!1:(await Tt(t,gt())).status===`succeeded`},getSource:async e=>{let t=await gu(e);return t?{filePath:t.filePath,lineNumber:t.lineNumber,columnNumber:t.columnNumber??null,componentName:t.componentName}:null},getStackContext:e=>ku(e,{maxLines:s.store.options.maxContextLines}),getState:()=>({isActive:x(),isDragging:C(),isCopying:E(),isPromptMode:O(),isSelectionBoxVisible:!!kr(),isDragBoxVisible:!!zr(),targetElement:At(),dragBounds:Xt()??null,grabbedBoxes:[...sn()],labelInstances:[...cn()],selectionFilePath:l.selectionFilePath,toolbarState:fe()}),setOptions:e=>{s.setOptions(e)},registerPlugin:e=>{s.register(e,oi)},unregisterPlugin:e=>{s.unregister(e)},getPlugins:()=>s.getPluginNames(),getDisplayName:_u};for(let e of fS)s.register(e,oi);return queueMicrotask(()=>{if(t)return;let e=fe();if(!e)return;let n=qm(e.defaultAction??`copy`);n!==e.defaultAction&&De({defaultAction:n})}),setTimeout(()=>{el(!0)},Ln),oi})};return Qi(),typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(wv((window.__REACT_GRAB__??(()=>{if(typeof window>`u`||window.parent===window)return null;try{return window.parent.__REACT_GRAB__??null}catch{return null}})())||hS()),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:Cv()}))),e.DEFAULT_THEME=mh,e.FreezeError=Vi,e.OpenFileError=Hi,e.PluginSetupError=Gi,e.ReactGrabError=zi,e.commentPlugin=zh,e.formatElementInfo=ju,e.generateSnippet=Ov,e.getGlobalApi=Cv,e.getStack=cu,e.init=hS,e.isInstrumentationActive=Br,e.openPlugin=Bh,e.registerPlugin=Ev,e.setGlobalApi=wv,e.unregisterPlugin=Dv,e})({});
|
|
38
|
+
`;let t=[];for(let n of e.getAnimations())H_(n)||t.push(n);B_(t)}else V_(t.frozenWaapiAnimations);t.didUseCssFreeze=!1,t.frozenWaapiAnimations=[]}catch(e){n.push(e)}try{r.remove(),t.styleElement=null}catch(e){n.push(e)}}return t.frozenSvgElements=R_(t.frozenSvgElements,n),t.styleElement===null&&t.frozenSvgElements.length===0&&t.frozenWaapiAnimations.length===0&&A_.delete(e),n},J_=e=>{if(A_.has(e.targetDocument))return;let t=dm(`data-react-grab-global-freeze`,``,e.targetDocument),n={styleElement:t,frozenSvgElements:[],frozenWaapiAnimations:[],didUseCssFreeze:!1};if(A_.set(e.targetDocument,n),e.runningAnimations.length>200)t.textContent=S_,n.didUseCssFreeze=!0;else for(let t of e.runningAnimations)t.pause(),n.frozenWaapiAnimations.push(t);L_(F_(Array.from(e.targetDocument.querySelectorAll(C_))),n.frozenSvgElements)},Y_=e=>{k_.add(e);try{N_()&&J_(K_(e))}catch(t){k_.delete(e);let n=q_(e);throw n.length===0?t:AggregateError([t,...n],`Freezing frame animations failed`)}return()=>{k_.delete(e),Dm(q_(e),`Unfreezing frame animations failed`)}},X_=()=>N_()?[]:(k_.add(document),[...k_].map(K_)),Z_=e=>{if(!N_()){for(let t of e)J_(t);v_()}},Q_=()=>{if(!N_())return;let e=[];for(let t of[...A_.keys()])e.push(...q_(t));try{y_()}catch(t){e.push(t)}Dm(e,`Unfreezing global animations failed`)}})),ev,tv,nv=c((()=>{sp(),Jn(),Xn(),Ep(),ev=(e,t)=>{for(let n of e.querySelectorAll(`:hover`))if(!Tp(n)&&(qn(n)&&t.add(n),n.shadowRoot&&ev(n.shadowRoot,t),Yn(n))){let e=op(n);e&&ev(e,t)}},tv=()=>{let e=new Set;return ev(document,e),[...e]}})),rv,iv,av,ov,sv,cv,lv,uv,dv,fv,pv,mv,hv,gv,_v,vv,yv,bv,xv,Sv,Cv,wv=c((()=>{Uh(),sp(),Ya(),fp(),nv(),Jn(),Xn(),Ep(),ro(),Em(),Om(),rv=[`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`],iv=[`focus`,`blur`,`focusin`,`focusout`],av=[`background-color`,`color`,`border-color`,`box-shadow`,`transform`,`opacity`,`outline`,`filter`,`scale`,`visibility`,`display`],ov=[`background-color`,`color`,`border-color`,`box-shadow`,`outline`,`outline-offset`,`outline-width`,`outline-color`,`outline-style`,`filter`,`opacity`,`ring-color`,`ring-width`],sv=new Map,cv=new Map,lv=new Set,uv=!1,dv=e=>{e.stopImmediatePropagation()},fv=e=>{e.preventDefault(),e.stopImmediatePropagation()},pv=e=>{for(let t of rv)e.addEventListener(t,dv,!0);for(let t of iv)e.addEventListener(t,fv,!0)},mv=e=>{for(let t of rv)e.removeEventListener(t,dv,!0);for(let t of iv)e.removeEventListener(t,fv,!0)},hv=e=>{lv.add(e);let t=xm(e);return uv&&pv(e),()=>{uv&&mv(e),lv.delete(e),t()}},gv=(e,t,n)=>{if(n?.has(e))return null;let r=getComputedStyle(e),i=new Map,a=new Map;for(let n of t){let t=r.getPropertyValue(n);t&&(i.set(n,t),a.set(n,{value:e.style.getPropertyValue(n),priority:e.style.getPropertyPriority(n)}))}return{element:e,frozenPropertyValues:i,originalPropertyValues:a}},_v=(e,t)=>{let n=[],r=dp(e,t);for(;r&&r!==document.documentElement&&!Tp(r);)qn(r)&&n.push(r),r=Ja(r);return n},vv=()=>{let e=[],t=document.activeElement;for(;t&&t!==document.body;){if(qn(t)&&e.push(t),t.shadowRoot?.activeElement){t=t.shadowRoot.activeElement;continue}if(Yn(t)){t=op(t)?.activeElement??null;continue}t=null}return e},yv=(e,t)=>{for(let{element:n,frozenPropertyValues:r,originalPropertyValues:i}of e){t.set(n,i);for(let[e,t]of r)n.style.setProperty(e,t,`important`)}},bv=e=>{let t=[];for(let[n,r]of e){for(let[e,i]of r)try{i.value?n.style.setProperty(e,i.value,i.priority):n.style.removeProperty(e),r.delete(e)}catch(e){t.push(e)}r.size===0&&e.delete(n)}return t},xv=(e,t)=>{if(bm())return null;let n=[],r=e!==void 0&&t!==void 0&&e>=0&&t>=0&&e<window.innerWidth&&t<window.innerHeight?_v(e,t):tv();for(let e of r){let t=gv(e,av);t&&n.push(t)}let i=[];for(let e of vv()){let t=gv(e,ov,cv);t&&i.push(t)}return{hoverStates:n,focusStates:i}},Sv=e=>{if(e){uv=!0,lv.add(document);for(let e of lv)pv(e);yv(e.hoverStates,sv),yv(e.focusStates,cv),Sm()}},Cv=()=>{Hh(),uv=!1;for(let e of lv)mv(e);let e=[...bv(sv),...bv(cv)];try{Cm()}catch(t){e.push(t)}Dm(e,`Unfreezing pseudo states failed`)}})),Tv,Ev,Dv,Ov=c((()=>{$_(),wv(),Im(),Om(),Tv=()=>{let e=[];try{Fm()}catch(t){e.push(t)}try{Cv()}catch(t){e.push(t)}try{Q_()}catch(t){e.push(t)}return e},Ev=(e,t)=>{let n=xv(e,t),r=X_();try{Sv(n),Z_(r),Pm()}catch(e){let t=Tv();throw t.length===0?e:AggregateError([e,...t],`Freezing global interactions failed`)}},Dv=()=>{Dm(Tv(),`Unfreezing global interactions failed`)}})),kv,Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy=c((()=>{Wi(),ja(),Og(),ro(),kv=!1,Av=0,jv=0,Mv=(e,t,n)=>{let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i},Nv=new WeakMap,Pv=new WeakMap,Fv=new WeakMap,Iv=new Set,Lv=[],Rv=[],zv=new WeakMap,Bv=new WeakMap,Vv=new WeakSet,Hv=new Set,Uv=new WeakMap,Fi({name:`react-grab-freeze-updates`,onCommitFiberRoot:(e,t)=>{let n=jr().renderers.get(e);n&&Uv.set(t,n)}}),Wv=e=>{try{let t=e.rendererPackageName;return typeof t==`string`&&t.startsWith(`react-dom`)}catch{return!1}},Gv=e=>{let t=e;for(;t.return;)t=t.return;return t.stateNode??null},Kv=e=>{let t=e.current,n=t;for(;n;){let e=n.stateNode;if(e&&typeof e==`object`&&typeof Reflect.get(e,`nodeType`)==`number`)return e;if(n.child){n=n.child;continue}for(;n!==t&&!n.sibling;)if(n=n.return,!n)return null;if(n===t)return null;n=n.sibling}return null},qv=e=>{let t=Uv.get(e);if(t)return Wv(t)?t:null;let n=Array.from(jr().renderers.values()).filter(Wv);if(n.length===1){let t=n[0];return t&&Uv.set(e,t),t??null}let r=Kv(e);if(!r)return null;for(let t of n)try{let n=t.findFiberByHostInstance?.(r);if(n&&Gv(n)===e)return Uv.set(e,t),t}catch{}return null},Jv=e=>{let t=e.current?.stateNode;if(!t||typeof t!=`object`)return!1;let n=Reflect.get(t,`containerInfo`);return!!(n&&typeof n==`object`&&typeof Reflect.get(n,`nodeType`)==`number`)},Yv=()=>{if(yi.size>0){let e=new Set;for(let t of yi)Jv(t)&&e.add(t);return e}let e=new Set,t=n=>{let r=Hi(n);if(r){let t=Gv(r);t&&e.add(t);return}for(let r of Array.from(n.children))if(t(r),e.size>0)return};return t(document.body),e},Xv=(e,t)=>{if(!e)return t;if(!t)return e;if(!e.next||!t.next)return t;let n=e.next,r=t.next,i=e===n,a=t===r;return i&&a?(e.next=t,t.next=e):i?(e.next=r,t.next=e):a?(t.next=n,e.next=t):(e.next=r,t.next=n),t},Zv=e=>{if(!e||zv.has(e))return;let t={originalPendingDescriptor:Object.getOwnPropertyDescriptor(e,`pending`),pendingValueAtPause:e.pending,bufferedPending:null};typeof e.getSnapshot==`function`&&(t.originalGetSnapshot=e.getSnapshot,t.snapshotValueAtPause=e.getSnapshot(),e.getSnapshot=()=>kv?t.snapshotValueAtPause:t.originalGetSnapshot());let n=t.pendingValueAtPause;Object.defineProperty(e,`pending`,{configurable:!0,enumerable:!0,get:()=>kv?null:n,set:e=>{if(kv){e!==null&&(t.bufferedPending=Xv(t.bufferedPending??null,e));return}n=e}}),zv.set(e,t)},Qv=e=>{if(!e)return[];let t=[],n=e.next;if(!n)return[];let r=n;do r&&=(t.push(r.action),r.next);while(r&&r!==n);return t},$v=e=>{let t=zv.get(e);if(!t)return;t.originalGetSnapshot&&(e.getSnapshot=t.originalGetSnapshot),t.originalPendingDescriptor?Object.defineProperty(e,`pending`,t.originalPendingDescriptor):delete e.pending,e.pending=null;let n=e.dispatch;if(typeof n==`function`){let e=Qv(t.pendingValueAtPause??null),r=Qv(t.bufferedPending??null);for(let t of[...e,...r])Rv.push(()=>n(t))}zv.delete(e)},ey=e=>{if(Bv.has(e))return;let t={originalDescriptor:Object.getOwnPropertyDescriptor(e,`memoizedValue`),frozenValue:e.memoizedValue};Object.defineProperty(e,`memoizedValue`,{configurable:!0,enumerable:!0,get(){return kv?t.frozenValue:t.originalDescriptor?.get?t.originalDescriptor.get.call(this):this._memoizedValue},set(e){if(kv){t.pendingValue=e,t.didReceivePendingValue=!0;return}t.originalDescriptor?.set?t.originalDescriptor.set.call(this,e):this._memoizedValue=e}}),t.originalDescriptor?.get||(e._memoizedValue=t.frozenValue),Bv.set(e,t)},ty=e=>{let t=Bv.get(e);t&&(t.originalDescriptor?Object.defineProperty(e,`memoizedValue`,t.originalDescriptor):delete e.memoizedValue,t.didReceivePendingValue&&(e.memoizedValue=t.pendingValue),Bv.delete(e))},ny=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Zv(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)ey(n),n=n.next},ry=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&$v(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)ty(n),n=n.next},iy=e=>{let t=e;for(;t;){if(ui(t)&&ny(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},ay=e=>{let t=e;for(;t;){if(ui(t)&&ry(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},oy=e=>{if(Nv.has(e))return;let t=e,n={useState:t.useState,useReducer:t.useReducer,useTransition:t.useTransition,useSyncExternalStore:t.useSyncExternalStore};Nv.set(e,n),t.useState=(...t)=>{let r=n.useState.apply(e,t);if(!kv||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Mv(Pv,a,()=>(...e)=>{kv?Rv.push(()=>a(...e)):a(...e)})]},t.useReducer=(...t)=>{let r=n.useReducer.apply(e,t);if(!kv||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Mv(Pv,a,()=>(...e)=>{kv?Rv.push(()=>a(...e)):a(...e)})]},t.useTransition=(...t)=>{let r=n.useTransition.apply(e,t);if(!kv||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Mv(Fv,a,()=>e=>{kv?Lv.push(()=>a(e)):a(e)})]},t.useSyncExternalStore=((e,t,r)=>kv?n.useSyncExternalStore(t=>e(()=>{kv?Iv.add(t):t()}),t,r):n.useSyncExternalStore(e,t,r))},sy=e=>{let t=e.currentDispatcherRef;if(!t||typeof t!=`object`)return;let n=`H`in t?`H`:`current`,r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>(r&&typeof r==`object`&&oy(r),r),set:e=>{r=e}})},cy=(e,t)=>{queueMicrotask(()=>{if(!(kv||jv!==t))try{for(let t of e){let e=qv(t);if(t.current&&e?.scheduleUpdate)try{e.scheduleUpdate(t.current)}catch(e){Z(new ya(`scheduleUpdate failed during unfreeze`,e))}}}catch(e){Z(new ya(`scheduleReactUpdate failed`,e))}})},ly=e=>{for(let t of e)try{t()}catch(e){Z(new ya(`Callback failed during state replay`,e))}},uy=()=>{for(let e of jr().renderers.values())Wv(e)&&(Vv.has(e)||(sy(e),Vv.add(e)))},dy=()=>{Iv.clear(),Lv.length=0,Rv.length=0},fy=()=>{let e=jv,t=new Set(Hv);try{for(let e of Yv())t.add(e)}catch(e){Z(new ya(`Collecting fiber roots failed during unfreeze`,e))}Hv.clear(),kv=!1;for(let e of t)try{ay(e.current)}catch(e){Z(new ya(`Resuming a fiber root failed during unfreeze`,e))}let n=Array.from(Iv),r=Lv.slice(),i=Rv.slice();dy(),ly(n),ly(r),ly(i),!kv&&jv===e&&cy(t,e)},py=()=>{let e=Av===0;if(Av+=1,e)try{uy(),jv+=1,kv=!0;let e=Yv();for(let t of e)Hv.add(t),iy(t.current)}catch(e){throw--Av,kv&&fy(),e}let t=!1;return()=>{t||(t=!0,--Av,Av===0&&fy())}},my=()=>{try{return py()}catch(e){return Z(new ya(`Pausing React updates failed`,e)),()=>{}}}}));Ov(),hy();let gy=e=>{let t=e.left+e.width/2,n=e.top+e.height/2,r=n,i=window.innerHeight-n,a=t,o=window.innerWidth-t,s=Math.min(r,i,a,o);return s===r?`top`:s===a?`left`:s===o?`right`:`bottom`};var _y,vy,yy,by=c((()=>{_y=e=>e.key===`Enter`,vy=e=>e.metaKey||e.ctrlKey,yy=(e,t,n={})=>{if(!t.key)return null;if(_y(t))return e.find(e=>e.shortcut===`Enter`)??null;if(t.repeat)return null;let r=t.key.toLowerCase();return vy(t)?n.includeModifierShortcuts===!0?e.find(e=>e.shortcut!==void 0&&e.shortcut!==`Enter`&&e.shortcutModifier!==!1&&r===e.shortcut.toLowerCase())??null:null:e.find(e=>e.shortcut!==void 0&&e.shortcutModifier===!1&&r===e.shortcut.toLowerCase())??null}}));by();let xy=()=>{let e=!1;return{arm:()=>{e=!0},clear:()=>{e=!1},consume:()=>e?(e=!1,!0):!1}};R(),na();let Sy=()=>{let[e,t]=h(!1),[n,r]=h(null),i=xy(),a=()=>{let e=n();return X(e)?e:null},o=()=>{r(null),i.clear(),t(!1)};return{selectedElement:a,isPendingDismiss:e,select:(e,n)=>{r(e),t(!1),n?.shouldPromptBeforeMouseHandoff?i.arm():i.clear()},clear:o,consumeMouseHandoff:()=>i.consume()&&a()!==null,showDismissPrompt:()=>a()?e()?!1:(t(!0),!0):(o(),!1),takeSelection:e=>{let t=a()??(X(e)?e:null);return o(),t}}};var Cy,wy,Ty=c((()=>{ja(),Og(),Cy=e=>e??!0,wy=(e,t)=>{if(typeof e.enabled==`function`){if(!t)return!1;try{return e.enabled(t)}catch(t){return Z(new Ea(e.id,t)),!1}}return Cy(e.enabled)}})),Ey,Dy=c((()=>{ja(),Ty(),Og(),Ey=(e,t)=>{if(!wy(e,t))return!1;try{let n=e.onAction(t);n&&n.catch(t=>{Z(new Ta(e.id,t))})}catch(t){Z(new Ta(e.id,t))}return!0}}));Dy(),ja(),Og();let Oy=e=>{Z(new ya(`Toolbar state change subscriber failed`,e))},ky=(e,t)=>{for(let n of e)try{Promise.resolve(n(t)).catch(Oy)}catch(e){Oy(e)}},Q=(e,t)=>{try{e()}catch(e){t.push(e)}};J(),sp(),Kn(),Xn(),Ep(),Om();let Ay=e=>{let t=new Map,n=new Map,r=new Map,i=new Map,a=(e,a)=>{let c=r.get(e);c&&(r.delete(e),Q(()=>c.disconnect(),a));for(let t of[...r.keys()])`host`in t&&t.ownerDocument===e&&o(t,a);for(let t of[...i.keys()])t.ownerDocument===e&&s(t,a);let l=n.get(e);n.delete(e),l&&Q(l,a);let u=t.get(e);t.delete(e),u&&Q(u,a)},o=(e,t)=>{let n=r.get(e);if(n){r.delete(e),Q(()=>n.disconnect(),t);for(let n of e.querySelectorAll(`*`))c(n,t)}},s=(e,t)=>{let n=i.get(e);n&&(i.delete(e),Q(()=>n.abortController.abort(),t),Q(()=>e.removeAttribute(Mn),t),n.document&&a(n.document,t))},c=(e,t)=>{Yn(e)&&s(e,t),e.shadowRoot&&o(e.shadowRoot,t)},l=(e,t)=>{for(let n of e.querySelectorAll(`*`))c(n,t);c(e,t)},u=n=>{t.has(n)||(t.set(n,e(n)),d(n),h(n))},d=e=>{let r=e.defaultView?.Element.prototype;if(!r)return;let i=r.attachShadow,a=new Proxy(i,{apply:(n,r,i)=>{let a=Reflect.apply(n,r,i);return a.mode===`open`&&r.isConnected&&t.has(e)&&h(a),a}});r.attachShadow=a,n.set(e,()=>{r.attachShadow===a&&(r.attachShadow=i)})},f=e=>{if(i.has(e))return;let t={abortController:new AbortController,document:null};i.set(e,t);let n=()=>{let n=[],r=op(e);if(t.document&&t.document!==r&&a(t.document,n),t.document=r,!r){e.removeAttribute(Mn),Dm(n,`Cleaning up replaced frame document failed`);return}e.setAttribute(Mn,``),u(r),Dm(n,`Cleaning up replaced frame document failed`)};e.addEventListener(`load`,n,{signal:t.abortController.signal}),n()},p=e=>{Tp(e)||(Yn(e)&&f(e),e.shadowRoot&&h(e.shadowRoot))},m=e=>{if(p(e),!Tp(e))for(let t of e.querySelectorAll(`*`))p(t)},h=e=>{if(r.has(e))return;let t=`defaultView`in e?e.defaultView:e.ownerDocument.defaultView;if(!t)return;let n=new t.MutationObserver(e=>{let t=[];for(let n of e){for(let e of n.removedNodes)Gn(e)&&l(e,t);for(let e of n.addedNodes)Gn(e)&&m(e)}Dm(t,`Cleaning up removed frame documents failed`)});r.set(e,n),n.observe(e,{childList:!0,subtree:!0});for(let t of e.querySelectorAll(`*`))p(t)};return u(document),()=>{let e=[];for(let t of[...i.keys()])s(t,e);for(let[t,n]of r)r.delete(t),Q(()=>n.disconnect(),e);for(let[t,r]of n)n.delete(t),Q(r,e);for(let[n,r]of t)t.delete(n),r&&Q(r,e);Dm(e,`Cleaning up same-origin frame documents failed`)}};or(),$_(),wv(),Om();let jy=(e,t)=>{window.dispatchEvent(t),t.defaultPrevented&&(e.preventDefault(),e.stopImmediatePropagation())},My=(e,t,n)=>({bubbles:!0,cancelable:!0,composed:!0,clientX:t,clientY:n,screenX:e.screenX,screenY:e.screenY,button:e.button,buttons:e.buttons,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}),Ny=e=>{let t=ar(e.view,e.clientX,e.clientY);jy(e,new PointerEvent(e.type,{...My(e,t.x,t.y),pointerId:e.pointerId,pointerType:e.pointerType,isPrimary:e.isPrimary,pressure:e.pressure,tangentialPressure:e.tangentialPressure,tiltX:e.tiltX,tiltY:e.tiltY,twist:e.twist,width:e.width,height:e.height}))},Py=e=>{let t=ar(e.view,e.clientX,e.clientY);jy(e,new MouseEvent(e.type,My(e,t.x,t.y)))},Fy=e=>{jy(e,new KeyboardEvent(e.type,{bubbles:!0,cancelable:!0,composed:!0,key:e.key,code:e.code,location:e.location,repeat:e.repeat,isComposing:e.isComposing,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}))},Iy=e=>Ay(t=>{if(t===document)return;let n=t.defaultView;if(!n)return;let r=new AbortController,i=Y_(t),a=hv(t),o={capture:!0,signal:r.signal},s=t=>{e.shouldForwardInteraction()&&Ny(t)},c=t=>{e.shouldForwardInteraction()&&Py(t)},l=t=>{(e.shouldForwardInteraction()||e.shouldForwardKeyboardEvent(t))&&Fy(t)},u=n=>{e.shouldForwardInteraction()&&e.shouldForwardViewportEvent(t)&&window.dispatchEvent(new Event(n.type))};return n.addEventListener(`pointermove`,s,o),n.addEventListener(`pointerdown`,s,o),n.addEventListener(`pointerup`,s,o),n.addEventListener(`pointercancel`,s,o),n.addEventListener(`contextmenu`,c,o),n.addEventListener(`click`,c,o),n.addEventListener(`keydown`,l,o),n.addEventListener(`keyup`,l,o),n.addEventListener(`keypress`,l,o),n.addEventListener(`scroll`,u,o),n.addEventListener(`resize`,u,o),()=>{r.abort();let e=[];for(let t of[i,a])try{t()}catch(t){e.push(t)}Dm(e,`Cleaning up frame event forwarding failed`)}});ir();let Ly=(e,t)=>{let n=t.ownerDocument;for(;n;){if(n===e)return!0;n=rr(n.defaultView)?.ownerDocument??null}return!1};ja(),Og();let Ry=null,zy=new Map,By=()=>typeof window>`u`?Ry:window.__REACT_GRAB__??Ry??null,Vy=e=>{if(Ry=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__),e)for(let[t,n]of zy){zy.delete(t);try{e.registerPlugin(n)}catch(e){Z(e instanceof wa?e:new wa(t,e))}}},Hy=e=>{Ry===e&&(Ry=null),typeof window<`u`&&window.__REACT_GRAB__===e&&delete window.__REACT_GRAB__},Uy=e=>{let t=By();if(t){t.registerPlugin(e);return}zy.set(e.name,e)},Wy=e=>{let t=By();if(t){t.unregisterPlugin(e);return}zy.delete(e)},Gy=async(e,t={})=>(await Promise.allSettled(e.map(e=>Yd(e,t)))).map(e=>e.status===`fulfilled`?e.value:``);var Ky,qy=c((()=>{Ky=(e,t,n)=>e+(t-e)*n})),Jy,Yy=c((()=>{J(),Jy=(e,t)=>{let n=Math.max(t,1);return 1-(1-e)**(n/_n)}})),Xy,Zy,Qy,$y,eb=c((()=>{R(),qy(),J(),cf(),Zt(),Yy(),Xy=z(`<canvas data-react-grab-overlay-canvas style=position:fixed;top:0;left:0;pointer-events:none>`),Zy={borderColor:xn,fillColor:Sn,lerpFactor:cn},Qy={drag:{borderColor:yn,fillColor:bn,lerpFactor:gn},selection:Zy,grabbed:Zy},$y=e=>{let t,n=null,r=0,i=0,a=1,o=null,s=null,c=null,l=[],u=null,d=[],f=Xt()?`display-p3`:`srgb`,p=()=>{t&&(a=Math.max(window.devicePixelRatio||1,2),r=document.documentElement.clientWidth||window.innerWidth,i=document.documentElement.clientHeight||window.innerHeight,t.width=r*a,t.height=i*a,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext(`2d`,{colorSpace:f}),n&&n.scale(a,a))},m=e=>{if(!e)return 0;let t=e.match(/^(\d+(?:\.\d+)?)/);return t?parseFloat(t[1]):0},h=(e,t,n)=>({id:e,current:{x:t.x,y:t.y,width:t.width,height:t.height},target:{x:t.x,y:t.y,width:t.width,height:t.height},borderRadius:m(t.borderRadius),opacity:n?.opacity??1,targetOpacity:n?.targetOpacity??n?.opacity??1,createdAt:n?.createdAt,fadeStartTimestamp:null,isInitialized:!0}),g=(e,t,n)=>{let r=e.target;r.x=t.x,r.y=t.y,r.width=t.width,r.height=t.height,e.borderRadius=m(t.borderRadius),n!==void 0&&(n>e.targetOpacity&&(e.opacity=n),e.targetOpacity=n)},y=e=>e.boundsMultiple??[e.bounds],b=(e,t,n,r,i,a,o,s,c=1)=>{if(r<=0||i<=0)return;let l=Math.min(r/2,i/2),u=Math.min(a,l),d=c!==1;d&&(e.globalAlpha=c),e.beginPath(),u>0?e.roundRect(t,n,r,i,u):e.rect(t,n,r,i),e.fillStyle=o,e.fill(),e.strokeStyle=s,e.lineWidth=1,e.stroke(),d&&(e.globalAlpha=1)},ee=()=>{if(!n||!e.dragVisible||!u)return;let t=Qy.drag;b(n,u.current.x,u.current.y,u.current.width,u.current.height,u.borderRadius,t.fillColor,t.borderColor)},x=()=>{if(!n||!e.selectionVisible)return;let t=Qy.selection;for(let e of l)b(n,e.current.x,e.current.y,e.current.width,e.current.height,e.borderRadius,t.fillColor,t.borderColor,e.opacity)},S=e=>{if(!n)return;let t=Qy.grabbed;for(let r of e)b(n,r.current.x,r.current.y,r.current.width,r.current.height,r.borderRadius,t.fillColor,t.borderColor,r.opacity)},T=()=>{!n||!t||r<=0||i<=0||(n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,t.width,t.height),n.setTransform(a,0,0,a,0,0),ee(),x(),S(d))},ne=(e,t,n)=>{let r=Ky(e.current.x,e.target.x,t),i=Ky(e.current.y,e.target.y,t),a=Ky(e.current.width,e.target.width,t),o=Ky(e.current.height,e.target.height,t),s=Math.abs(r-e.target.x)<.5&&Math.abs(i-e.target.y)<.5&&Math.abs(a-e.target.width)<.5&&Math.abs(o-e.target.height)<.5;e.current.x=s?e.target.x:r,e.current.y=s?e.target.y:i,e.current.width=s?e.target.width:a,e.current.height=s?e.target.height:o;let c=!0;if(n?.interpolateOpacity){let n=Ky(e.opacity,e.targetOpacity,t);c=Math.abs(n-e.targetOpacity)<vn,e.opacity=c?e.targetOpacity:n}return!s||!c},E=()=>{let e=performance.now(),t=c===null?_n:e-c;c=e;let n=Jy(Qy.drag.lerpFactor,t),r=Jy(Qy.selection.lerpFactor,t),i=Jy(Qy.grabbed.lerpFactor,t),a=!1,f=null;u?.isInitialized&&ne(u,n)&&(a=!0);for(let e of l)e.isInitialized&&ne(e,r)&&(a=!0);let p=Date.now();d=d.filter(t=>{let n=t.id.startsWith(`label-`);if(t.isInitialized&&ne(t,i)&&(a=!0),n&&t.targetOpacity===0){t.fadeStartTimestamp===null&&(t.fadeStartTimestamp=e);let n=e-t.fadeStartTimestamp,r=Math.min(1,n/125),i=1-(1-r)*(1-r);return t.opacity=Math.max(0,1-i),r>=1?!1:(a=!0,!0)}else n&&(t.fadeStartTimestamp=null);if(t.createdAt!==void 0){let e=p-t.createdAt;if(e>=1625)return!1;if(e>1500){let n=Math.min(1,(e-ln)/125);t.opacity=1-(1-(1-n)*(1-n)),a=!0}else{let t=ln-e;f=f===null?t:Math.min(f,t)}return!0}return n?!0:t.opacity>0}),T(),a?o=af(E):(o=null,c=null,f!==null&&(s=window.setTimeout(()=>{s=null,D()},Math.max(0,f))))},D=()=>{s!==null&&(window.clearTimeout(s),s=null),o===null&&(o=af(E))},re=()=>{p(),D()};return v(C(()=>[e.selectionVisible,e.selectionBounds,e.selectionBoundsMultiple,e.selectionShouldSnap],([e,t,n,r])=>{if(!e||!t&&(!n||n.length===0)){l=[],D();return}let i;i=n&&n.length>0?n:t?[t]:[];let a=new Map;for(let e of l)a.set(e.id,e);l=i.map((e,t)=>{let n=`selection-${t}`,i=a.get(n);return i?(g(i,e),r&&(i.current.x=i.target.x,i.current.y=i.target.y,i.current.width=i.target.width,i.current.height=i.target.height),i):h(n,e)}),D()})),v(C(()=>[e.dragVisible,e.dragBounds],([e,t])=>{if(!e||!t){u=null,D();return}u?g(u,t):u=h(`drag`,t),D()})),v(C(()=>[e.grabbedBoxes,e.labelInstances],([e,t])=>{let n=e??[],r=t??[],i=new Map;for(let e of n)i.set(e.id,e);let a=new Map;for(let e of d)a.set(e.id,e);for(let e of n)if(!a.has(e.id)){let t=h(e.id,e.bounds,{createdAt:e.createdAt});d.push(t),a.set(e.id,t)}for(let e of d){let t=i.get(e.id);t&&g(e,t.bounds)}let o=new Set;for(let e of r){let t=y(e),n=e.status===`fading`?0:1;for(let r=0;r<t.length;r++){let i=t[r],s=`label-${e.id}-${r}`;o.add(s);let c=a.get(s);if(c)g(c,i,n);else{let e=h(s,i,{opacity:1,targetOpacity:n});d.push(e),a.set(s,e)}}}d=d.filter(e=>e.id.startsWith(`label-`)?o.has(e.id):i.has(e.id)),D()})),te(()=>{p(),D(),window.addEventListener(`resize`,re);let e=null,t=()=>{Math.max(window.devicePixelRatio||1,2)!==a&&(re(),n())},n=()=>{e&&e.removeEventListener(`change`,t),e=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),e.addEventListener(`change`,t)};n(),w(()=>{window.removeEventListener(`resize`,re),e&&e.removeEventListener(`change`,t),o!==null&&of(o),s!==null&&window.clearTimeout(s)})}),(()=>{var e=Xy(),n=t;return typeof n==`function`?lt(n,e):t=e,_(t=>H(e,`z-index`,String(hn))),e})()}})),tb,nb,rb=c((()=>{W(),R(),J(),ro(),tb=z(`<div style=position:fixed;pointer-events:none;will-change:opacity;contain:strict;transform:translateZ(0)>`),nb=e=>{let t=eo(),n=t?getComputedStyle(t).borderRadius:`0px`,r=()=>t?.getBoundingClientRect()??null,[i,a]=h(r());if(t){let n=()=>a(r());te(()=>{let e=new ResizeObserver(n);e.observe(t),window.addEventListener(`scroll`,n,{capture:!0,passive:!0}),window.addEventListener(`resize`,n),w(()=>{e.disconnect(),window.removeEventListener(`scroll`,n,{capture:!0}),window.removeEventListener(`resize`,n)})}),v(()=>{e.visible&&n()})}let o=()=>{let e=i();return e?`${e.top}px`:`0`},s=()=>{let e=i();return e?`${e.left}px`:`0`},c=()=>{let e=i();return e?`${e.width}px`:`100%`},l=()=>{let e=i();return e?`${e.height}px`:`100%`};return(()=>{var t=tb();return H(t,`border-radius`,n),H(t,`z-index`,hn),H(t,`transition`,`opacity 125ms ease-out`),H(t,`box-shadow`,`inset 0 0 50px ${Cn}`),_(n=>{var r=o(),i=s(),a=c(),u=l(),d=+!!e.visible;return r!==n.e&&H(t,`top`,n.e=r),i!==n.t&&H(t,`left`,n.t=i),a!==n.a&&H(t,`width`,n.a=a),u!==n.o&&H(t,`height`,n.o=u),d!==n.i&&H(t,`opacity`,n.i=d),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})()}})),ib,ab=c((()=>{ib=(e,t)=>{e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,t)}px`}})),ob,sb=c((()=>{ro(),ob=(e,t)=>{e&&e.focus(t)}})),cb,lb=c((()=>{J(),cb=e=>{if(e<=0)return 8;let t=e*wn;return Math.round(Math.max(4,Math.min(8,t)))}})),ub,db=c((()=>{ro(),ub=()=>{let e=eo();if(e){let t=e.getBoundingClientRect();return{width:t.width,height:t.height,offsetLeft:t.left,offsetTop:t.top}}let t=window.visualViewport;return t?{width:t.width,height:t.height,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop}:{width:window.innerWidth,height:window.innerHeight,offsetLeft:0,offsetTop:0}}})),fb,pb=c((()=>{J(),fb=e=>e.isComposing||e.keyCode===229})),mb,$,hb=c((()=>{mb=e=>{if(typeof e==`string`||typeof e==`number`)return String(e);if(!e||typeof e!=`object`)return``;if(Array.isArray(e)){let t=``;for(let n of e){if(!n)continue;let e=mb(n);e&&(t=t?`${t} ${e}`:e)}return t}let t=``;for(let n in e)e[n]&&(t=t?`${t} ${n}`:n);return t},$=(...e)=>{let t=``;for(let n of e){if(!n)continue;let e=mb(n);e&&(t=t?`${t} ${e}`:e)}return t}})),gb,_b=c((()=>{gb=e=>e.elementsCount&&e.elementsCount>1?{tagName:`${e.elementsCount} elements`,componentName:void 0}:{tagName:e.tagName||e.componentName||`element`,componentName:e.tagName?e.componentName:void 0}})),vb,yb,bb=c((()=>{W(),vb=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M19.2929 12.7071C19.6834 13.0976 20.3166 13.0976 20.7071 12.7071C21.0976 12.3166 21.0976 11.6834 20.7071 11.2929L12.7071 3.29289C12.5196 3.10536 12.2652 3 12 3C11.7348 3 11.4804 3.10536 11.2929 3.29289L3.29289 11.2929C2.90237 11.6834 2.90237 12.3166 3.29289 12.7071C3.68342 13.0976 4.31658 13.0976 4.70711 12.7071L11 6.41421L11 20C11 20.5523 11.4477 21 12 21C12.5523 21 13 20.5523 13 20L13 6.41422L19.2929 12.7071Z">`),yb=e=>{let t=()=>e.size??10;return(()=>{var n=vb();return _(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),xb,Sb,Cb=c((()=>{W(),xb=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path class=icon-loader-bar d="M12 2v4"style=animation-delay:0ms></path><path class=icon-loader-bar d="M15 6.8l2-3.5"style=animation-delay:-42ms></path><path class=icon-loader-bar d="M17.2 9l3.5-2"style=animation-delay:-83ms></path><path class=icon-loader-bar d="M18 12h4"style=animation-delay:-125ms></path><path class=icon-loader-bar d="M17.2 15l3.5 2"style=animation-delay:-167ms></path><path class=icon-loader-bar d="M15 17.2l2 3.5"style=animation-delay:-208ms></path><path class=icon-loader-bar d="M12 18v4"style=animation-delay:-250ms></path><path class=icon-loader-bar d="M9 17.2l-2 3.5"style=animation-delay:-292ms></path><path class=icon-loader-bar d="M6.8 15l-3.5 2"style=animation-delay:-333ms></path><path class=icon-loader-bar d="M2 12h4"style=animation-delay:-375ms></path><path class=icon-loader-bar d="M6.8 9l-3.5-2"style=animation-delay:-417ms></path><path class=icon-loader-bar d="M9 6.8l-2-3.5"style=animation-delay:-458ms>`),Sb=e=>{let t=()=>e.size??16;return(()=>{var n=xb();return n.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling,_(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),wb,Tb,Eb=c((()=>{W(),J(),lb(),wb=z(`<svg data-react-grab-arrow class="absolute block z-10"><path>`),Tb=e=>{let t=()=>e.position===`bottom`,n=()=>cb(e.labelWidth??0),r=()=>n()*2,i=()=>n(),a=()=>{let e=r(),n=i(),a=1*Math.SQRT1_2,o=e/2,s=t()?n:0,c=t()?a:n-a,l=+!!t();return`M0 ${s} L${o-a} ${c} A1 1 0 0 ${l} ${o+a} ${c} L${e} ${s} Z`};return(()=>{var n=wb(),o=n.firstChild;return B(o,`fill`,an),_(s=>{var c=r(),l=i(),u=`0 0 ${r()} ${i()}`,d=`calc(${e.leftPercent}% + ${e.leftOffsetPx}px)`,f=t()?`0`:void 0,p=t()?void 0:`0`,m=t()?`translateX(-50%) translateY(calc(-100% + 1px))`:`translateX(-50%) translateY(calc(100% - 1px))`,h=a();return c!==s.e&&B(n,`width`,s.e=c),l!==s.t&&B(n,`height`,s.t=l),u!==s.a&&B(n,`viewBox`,s.a=u),d!==s.o&&H(n,`left`,s.o=d),f!==s.i&&H(n,`top`,s.i=f),p!==s.n&&H(n,`bottom`,s.n=p),m!==s.s&&H(n,`transform`,s.s=m),h!==s.h&&B(o,`d`,s.h=h),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),n})()}})),Db,Ob,kb,Ab,jb,Mb,Nb,Pb=c((()=>{W(),R(),hb(),Db=z(`<span> `),Ob=z(`<span class=text-[var(--rg-text-secondary)]> `),kb=z(`<span class=text-[var(--rg-text-primary)]> `),Ab=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-4 h-fit font-medium overflow-hidden text-ellipsis whitespace-nowrap min-w-0">`),jb=z(`<button type=button>`),Mb=z(`<div>`),Nb=e=>{let t=()=>{e.onHoverChange?.(!0)},n=()=>{e.onHoverChange?.(!1)},r=()=>e.componentName?`${e.componentName}.${e.tagName}`:e.tagName,i=()=>(()=>{var t=Ab();return U(t,k(j,{get when(){return e.componentName},get children(){return[(()=>{var t=Db(),n=t.firstChild;return _(()=>n.data=e.componentName),t})(),(()=>{var t=Ob(),n=t.firstChild;return _(()=>n.data=`.${e.tagName}`),t})()]}}),null),U(t,k(j,{get when(){return!e.componentName},get children(){var t=kb(),n=t.firstChild;return _(()=>n.data=e.tagName),t}}),null),t})();return k(j,{get when(){return e.isClickable},get fallback(){return(()=>{var r=Mb();return V(r,`click`,e.onClick,!0),r.addEventListener(`mouseleave`,n),r.addEventListener(`mouseenter`,t),U(r,i),_(()=>at(r,$(`contain-layout flex items-center gap-1 max-w-[280px] overflow-hidden`,e.shrink&&`shrink-0`))),r})()},get children(){var a=jb();return V(a,`click`,e.onClick,!0),a.addEventListener(`mouseleave`,n),a.addEventListener(`mouseenter`,t),U(a,i),_(t=>{var n=`Open source for ${r()}`,i=$(`contain-layout flex items-center gap-1 max-w-[280px] overflow-hidden cursor-pointer bg-transparent border-none p-0 m-0 text-left`,e.shrink&&`shrink-0`);return n!==t.e&&B(a,`aria-label`,t.e=n),i!==t.t&&at(a,t.t=i),t},{e:void 0,t:void 0}),a}})},nt([`click`])})),Fb,Ib,Lb=c((()=>{W(),Fb=z(`<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-1.5 w-auto h-fit self-stretch [border-top-width:0.5px] border-t-[var(--rg-border-subtle)] antialiased">`),Ib=e=>(()=>{var t=Fb();return U(t,()=>e.children),t})()})),Rb,zb=c((()=>{hb(),Rb=(e,t={})=>(n={})=>{let r=t.variants;if(!r)return e;let i=[e];for(let e in r){let a=n[e]??t.defaultVariants?.[e];if(a===void 0)continue;let o=r[e][String(a)];o&&i.push(o)}return $(...i)}})),Bb,Vb,Hb,Ub=c((()=>{W(),R(),hb(),zb(),Bb=z(`<div>`),Vb=Rb(`contain-layout antialiased [font-synthesis:none] bg-[var(--rg-panel-bg)]`,{variants:{shape:{panel:`rounded-[14px] [corner-shape:superellipse(1.25)]`,pill:`rounded-full`}},defaultVariants:{shape:`panel`}}),Hb=e=>{let[t,n]=Ae(e,[`shape`,`class`]);return(()=>{var e=Bb();return ct(e,ke({get class(){return $(Vb({shape:t.shape}),t.class)}},n),!1,!1),e})()}})),Wb,Gb,Kb=c((()=>{Wb=null,Gb={claim:e=>{Wb=e},release:e=>{Wb===e&&(Wb=null)},isActive:e=>Wb===e}})),qb,Jb=c((()=>{R(),Kb(),ro(),qb=e=>{let t=Symbol(),n=no(n=>{Gb.isActive(t)&&(Ia(n)||(n.code===`Enter`?e.onEnter?.(n):n.code===`Escape`&&e.onEscape?.(n)))});return te(()=>{Gb.claim(t),window.addEventListener(`keydown`,n,{capture:!0})}),w(()=>{Gb.release(t),window.removeEventListener(`keydown`,n,{capture:!0})}),{claimFocus:()=>Gb.claim(t)}}})),Yb,Xb,Zb=c((()=>{W(),Yb=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M10.7071 21.2071C10.3166 21.5976 9.68342 21.5976 9.29289 21.2071L3.29289 15.2071C2.90237 14.8166 2.90237 14.1834 3.29289 13.7929L9.29289 7.79289C9.68342 7.40237 10.3166 7.40237 10.7071 7.79289C11.0976 8.18342 11.0976 8.81658 10.7071 9.20711L6.41421 13.5H16C16.5523 13.5 17 13.0523 17 12.5V3.5C17 2.94772 17.4477 2.5 18 2.5C18.5523 2.5 19 2.94772 19 3.5V12.5C19 14.1569 17.6569 15.5 16 15.5H6.41421L10.7071 19.7929C11.0976 20.1834 11.0976 20.8166 10.7071 21.2071Z">`),Xb=e=>{let t=()=>e.size??10;return(()=>{var n=Yb();return _(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),Qb,$b,ex,tx=c((()=>{W(),R(),hb(),zb(),Qb=z(`<button>`),$b=Rb(`contain-layout shrink-0 flex items-center justify-center cursor-pointer transition-all press-scale`,{variants:{variant:{chip:`px-[3px] py-px h-[17px] rounded-sm bg-[var(--rg-surface-hover)] [border-width:0.5px] border-solid border-[var(--rg-border-button)] hover:bg-[var(--rg-surface-active)] text-[var(--rg-text-primary)]`,destructive:`px-[3px] py-px h-[17px] rounded-sm bg-[var(--rg-error-bg)] hover:bg-[var(--rg-error-bg-hover)] text-[var(--rg-error-text)]`,ghost:`rounded-sm bg-transparent hover:bg-[var(--rg-surface-hover)] border-none outline-none p-0`}},defaultVariants:{variant:`chip`}}),ex=e=>{let[t,n]=Ae(e,[`variant`,`class`,`type`]);return(()=>{var e=Qb();return ct(e,ke({get type(){return t.type??`button`},get class(){return $($b({variant:t.variant}),t.class)}},n),!1,!1),e})()}})),nx,rx,ix,ax,ox,sx,cx=c((()=>{W(),R(),Jb(),Zb(),tx(),Lb(),nx=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">No`),rx=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Copy`),ix=z(`<span class="text-[var(--rg-error-text)] text-[13px] leading-3.5 font-sans font-medium">Yes`),ax=z(`<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">`),ox=z(`<div data-react-grab-discard-prompt class="contain-layout shrink-0 flex flex-col justify-center items-end w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit"> `),sx=e=>{let t=()=>e.showCancel??!0,{claimFocus:n}=qb({onEnter:t=>{t.preventDefault(),t.stopPropagation();let n=t.composedPath()[0],r=n instanceof HTMLElement?n:null;if(r?.closest(`[data-react-grab-discard-copy]`)){e.onCopy?.();return}if(r?.closest(`[data-react-grab-discard-no]`)){e.onCancel?.();return}e.onConfirm?.()},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.cancelOnEscape?e.onCancel?.():e.onConfirm?.()}});return(()=>{var r=ox(),i=r.firstChild.firstChild.firstChild;return V(r,`click`,n,!0),V(r,`pointerdown`,n,!0),U(r,k(Ib,{get children(){var n=ax();return U(n,k(j,{get when(){return t()},get children(){return k(ex,{"data-react-grab-discard-no":!0,get onClick(){return e.onCancel},get children(){return nx()}})}}),null),U(n,k(j,{get when(){return e.onCopy},get children(){return k(ex,{"data-react-grab-discard-copy":!0,get onClick(){return e.onCopy},get children(){return rx()}})}}),null),U(n,k(ex,{variant:`destructive`,class:`gap-0.5`,"data-react-grab-discard-yes":!0,get onClick(){return e.onConfirm},get children(){return[ix(),k(Xb,{size:10,class:`text-[var(--rg-error-text)] opacity-50`})]}}),null),n}}),null),_(()=>i.data=e.label??`Discard?`),r})()},nt([`pointerdown`,`click`])})),lx,ux,dx=c((()=>{W(),lx=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M7 2C4.23858 2 2 4.23858 2 7V15C2 17.7614 4.23858 20 7 20H8C8.55228 20 9 19.5523 9 19C9 18.4477 8.55228 18 8 18H7C5.34315 18 4 16.6569 4 15V7C4 5.34315 5.34315 4 7 4H17C18.6569 4 20 5.34315 20 7V15C20 16.6569 18.6569 18 17 18H14.4142L16.2071 16.2071C16.5976 15.8166 16.5976 15.1834 16.2071 14.7929C15.8166 14.4024 15.1834 14.4024 14.7929 14.7929L11.2929 18.2929C11.197 18.3888 11.1247 18.4993 11.0759 18.6172C11.027 18.7351 11 18.8644 11 19C11 19.2728 11.1093 19.5201 11.2864 19.7005C11.2889 19.7031 11.2914 19.7056 11.2939 19.7081L14.7929 23.2071C15.1834 23.5976 15.8166 23.5976 16.2071 23.2071C16.5976 22.8166 16.5976 22.1834 16.2071 21.7929L14.4142 20H17C19.7614 20 22 17.7614 22 15V7C22 4.23858 19.7614 2 17 2H7Z">`),ux=e=>{let t=()=>e.size??12;return(()=>{var n=lx();return _(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),fx,px,mx,hx,gx,_x=c((()=>{W(),R(),Jb(),dx(),tx(),Lb(),fx=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Retry`),px=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Ok`),mx=z(`<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">`),hx=z(`<div data-react-grab-error role=alert aria-live=assertive class="contain-layout shrink-0 flex flex-col justify-center items-end w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-start gap-1 px-2 w-full h-fit"><span class="text-[var(--rg-error-text)] text-[13px] leading-4 font-sans font-medium overflow-hidden line-clamp-5"> `),gx=e=>{let{claimFocus:t}=qb({onEnter:t=>{if(wg(t,`data-react-grab-error-ok`)){t.preventDefault(),t.stopPropagation(),e.onAcknowledge?.();return}t.preventDefault(),t.stopPropagation(),e.onRetry?.()},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.onAcknowledge?.()}}),n=()=>!!(e.onRetry||e.onAcknowledge);return(()=>{var r=hx(),i=r.firstChild,a=i.firstChild,o=a.firstChild;return V(r,`click`,t,!0),V(r,`pointerdown`,t,!0),U(r,k(j,{get when(){return n()},get children(){return k(Ib,{get children(){var t=mx();return U(t,k(j,{get when(){return e.onRetry},get children(){return k(ex,{"data-react-grab-retry":!0,class:`gap-1`,"aria-keyshortcuts":`Enter`,get onClick(){return e.onRetry},get children(){return[fx(),k(ux,{size:10,"aria-hidden":`true`,class:`text-[var(--rg-text-secondary)]`})]}})}}),null),U(t,k(j,{get when(){return e.onAcknowledge},get children(){return k(ex,{"data-react-grab-error-ok":!0,class:`gap-1`,"aria-keyshortcuts":`Escape`,get onClick(){return e.onAcknowledge},get children(){return px()}})}}),null),t}})}}),null),_(t=>{var r={"pt-1.5 pb-1":n(),"py-1.5":!n()},s=e.error,c=e.error;return t.e=ot(i,r,t.e),s!==t.t&&B(a,`title`,t.t=s),c!==t.a&&(o.data=t.a=c),t},{e:void 0,t:void 0,a:void 0}),r})()},nt([`pointerdown`,`click`])})),vx,yx,bx=c((()=>{W(),vx=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M7.5 12C7.5 13.3807 6.38071 14.5 5 14.5C3.61929 14.5 2.5 13.3807 2.5 12C2.5 10.6193 3.61929 9.5 5 9.5C6.38071 9.5 7.5 10.6193 7.5 12ZM14.5 12C14.5 13.3807 13.3807 14.5 12 14.5C10.6193 14.5 9.5 13.3807 9.5 12C9.5 10.6193 10.6193 9.5 12 9.5C13.3807 9.5 14.5 10.6193 14.5 12ZM19 14.5C20.3807 14.5 21.5 13.3807 21.5 12C21.5 10.6193 20.3807 9.5 19 9.5C17.6193 9.5 16.5 10.6193 16.5 12C16.5 13.3807 17.6193 14.5 19 14.5Z">`),yx=e=>{let t=()=>e.size??14;return(()=>{var n=vx();return _(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),xx,Sx,Cx=c((()=>{W(),xx=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM17.7071 10.7071C18.0976 10.3166 18.0976 9.68342 17.7071 9.29289C17.3166 8.90237 16.6834 8.90237 16.2929 9.29289L11 14.5858L8.70711 12.2929C8.31658 11.9024 7.68342 11.9024 7.29289 12.2929C6.90237 12.6834 6.90237 13.3166 7.29289 13.7071L10.2929 16.7071C10.6834 17.0976 11.3166 17.0976 11.7071 16.7071L17.7071 10.7071Z">`),Sx=e=>{let t=()=>e.size??14;return(()=>{var n=xx();return _(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),wx,Tx,Ex,Dx,Ox,kx,Ax=c((()=>{W(),R(),J(),Jb(),Tg(),Zb(),bx(),hb(),tx(),Ub(),Cx(),wx=z(`<button type=button data-react-grab-ignore-events data-react-grab-more-options aria-label="More options">`),Tx=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Keep`),Ex=z(`<div class="contain-layout shrink-0 flex items-center justify-between gap-2 pt-1.5 pb-1 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap min-w-0"> </span><div class="contain-layout shrink-0 flex items-center gap-2 h-fit">`),Dx=z(`<div class="contain-layout shrink-0 flex items-center gap-0.5 py-1.5 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap min-w-0"> `),Ox=e=>(()=>{var t=wx();return V(t,`click`,t=>{t.stopImmediatePropagation(),e.onClick()}),V(t,`pointerdown`,e=>{e.stopImmediatePropagation()}),U(t,k(yx,{size:14,"aria-hidden":`true`,class:`opacity-50 group-hover:opacity-100 transition-opacity`})),_(()=>at(t,$($b({variant:`ghost`}),`group size-4 text-[var(--rg-text-secondary)] hover:text-[var(--rg-text-primary)]`))),t})(),kx=e=>{let t,n,[r,i]=h(!1),[a,o]=h(!1),s=()=>r()?`Copied`:e.statusText,c=()=>{t!==void 0&&window.clearTimeout(t),n!==void 0&&window.clearTimeout(n),o(!0),e.onFadingChange?.(!0),e.onShowContextMenu?.()},l=()=>{r()||(i(!0),t=window.setTimeout(()=>{o(!0),e.onFadingChange?.(!0),n=window.setTimeout(()=>{e.onDismiss?.()},125)},ln-125))},{claimFocus:u}=qb({onEnter:e=>{if(wg(e,`data-react-grab-more-options`)){e.preventDefault(),e.stopPropagation(),c();return}wg(e,`data-react-grab-context-menu`)||(e.preventDefault(),e.stopPropagation(),l())},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.onDismiss?.()}});return w(()=>{t!==void 0&&window.clearTimeout(t),n!==void 0&&window.clearTimeout(n)}),k(Hb,{shape:`pill`,"data-react-grab-completion":!0,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,class:`shrink-0 flex flex-col justify-center items-end w-fit h-fit max-w-[280px] transition-opacity duration-100 ease-out`,get style(){return{opacity:+!a()}},onPointerDown:u,onClick:u,get children(){return[k(j,{get when(){return Et(()=>!r())()&&e.onDismiss},get children(){var t=Ex(),n=t.firstChild,i=n.firstChild,a=n.nextSibling;return U(a,k(j,{get when(){return e.onShowContextMenu},get children(){return k(Ox,{onClick:c})}}),null),U(a,k(j,{get when(){return e.onDismiss},get children(){return k(ex,{"data-react-grab-dismiss":!0,class:`gap-1`,"aria-keyshortcuts":`Enter`,onClick:l,get disabled(){return r()},get"aria-disabled"(){return r()},get children(){return[Tx(),k(j,{get when(){return!r()},get children(){return k(Xb,{size:10,class:`text-[var(--rg-text-secondary)]`})}})]}})}}),null),_(()=>i.data=s()),t}}),k(j,{get when(){return r()||!e.onDismiss},get children(){var t=Dx(),n=t.firstChild,r=n.firstChild;return U(t,k(Sx,{size:14,"aria-hidden":`true`,class:`text-[var(--rg-text-primary-85)] shrink-0`}),n),U(t,k(j,{get when(){return e.onShowContextMenu},get children(){return k(Ox,{onClick:c})}}),null),_(()=>r.data=s()),t}})]}})}})),jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx=c((()=>{W(),R(),J(),ab(),sb(),lb(),db(),pb(),ro(),hb(),_b(),bb(),Cb(),Eb(),Pb(),Lb(),Ub(),cx(),_x(),Ax(),jx=z(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 py-1.5 px-2 w-full h-fit"><span class="shimmer-text text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap"> `),Mx=z(`<div class="contain-layout shrink-0 flex flex-col items-start w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit px-2 py-1.5">`),Nx=z(`<button data-react-grab-submit type=button aria-label="Submit context"class="contain-layout shrink-0 flex items-center justify-center size-4 rounded-full bg-[var(--rg-submit-bg)] cursor-pointer ml-1 interactive-scale a11y-hitbox">`),Px=z(`<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events data-react-grab-input aria-label="Add context for selected element"aria-keyshortcuts="Enter Escape"class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-medium bg-transparent border-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"placeholder="Add context"rows=1 style=field-sizing:content;min-height:16px;scrollbar-width:none>`),Fx=z(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start w-fit h-fit min-w-[150px] max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 w-fit h-fit px-2 max-w-full">`),Ix=z(`<div data-react-grab-ignore-events data-react-grab-selection-label class="fixed font-sans text-[13px] antialiased select-none">`),Lx={left:Wn,top:Wn,arrowLeftPercent:50,arrowLeftOffset:0,edgeOffsetX:0},Rx=e=>{let t,n,r,i=!1,[a,o]=h(0),[s,c]=h(0),[l,u]=h(0),[d,f]=h(0),[p,m]=h(!1),[g,b]=h(!1),ee=()=>e.status!==`copying`&&e.status!==`copied`&&e.status!==`fading`&&e.status!==`error`,x=()=>e.status===`copied`||e.status===`fading`,S=()=>!!(e.isPromptMode||e.discardPrompt||x()&&(e.onDismiss||e.onShowContextMenu)||e.status===`error`&&(e.onAcknowledgeError||e.onRetry)),T,ne=e=>{i=e},E=()=>{f(e=>e+1)};te(()=>{let e=eo();if(T=new ResizeObserver(r=>{for(let a of r){let r=a.target.getBoundingClientRect();a.target===t&&!i?(o(r.width),c(r.height)):a.target===n?u(r.width):a.target===e&&E()}}),e&&T.observe(e),t){let e=t.getBoundingClientRect();o(e.width),c(e.height),T.observe(t)}n&&(u(n.getBoundingClientRect().width),T.observe(n)),window.addEventListener(`scroll`,E,!0),window.addEventListener(`resize`,E),window.visualViewport?.addEventListener(`resize`,E),window.visualViewport?.addEventListener(`scroll`,E)}),w(()=>{T?.disconnect(),window.removeEventListener(`scroll`,E,!0),window.removeEventListener(`resize`,E),window.visualViewport?.removeEventListener(`resize`,E),window.visualViewport?.removeEventListener(`scroll`,E)});let D=()=>`${e.tagName??``}:${e.componentName??``}`,re=y(t=>{d();let n=D(),r=n===t.elementIdentity?t:{position:Lx,computedArrowPosition:null,hadValidBounds:!1,elementIdentity:n},i=e.selectionBounds,o=a(),c=s(),u=o>0&&c>0,f=i&&i.width>0&&i.height>0;if(!u||!f)return{position:r.hadValidBounds?r.position:Lx,computedArrowPosition:r.computedArrowPosition,hadValidBounds:r.hadValidBounds,elementIdentity:n};let p=ub(),m=p.offsetLeft,h=p.offsetTop,g=m+p.width,_=h+p.height;if(!(i.x+i.width>m&&i.x<g&&i.y+i.height>h&&i.y<_))return{position:Lx,computedArrowPosition:r.computedArrowPosition,hadValidBounds:r.hadValidBounds,elementIdentity:n};let v=i.x+i.width/2,y=e.mouseX??v,b=i.y+i.height,ee=i.y,x=e.hideArrow?0:cb(l()),S=y,C=0,te=b+x+4,w=S-o/2,T=S+o/2;T>g-8&&(C=g-8-T),w+C<m+8&&(C=m+8-w);let ne=c+x+4,E=te+c<=_-8;E||(te=ee-ne),te<h+8&&(te=h+8);let re=o/2,ie=re-C,ae=Math.min(16,re),oe=Math.max(o-16,re),se=Math.max(ae,Math.min(oe,ie))-re;return{position:{left:S,top:te,arrowLeftPercent:50,arrowLeftOffset:se,edgeOffsetX:C},computedArrowPosition:E?`bottom`:`top`,hadValidBounds:!0,elementIdentity:n}},{position:Lx,computedArrowPosition:null,hadValidBounds:!1,elementIdentity:``}),ie=()=>re().computedArrowPosition??`bottom`,ae=()=>re().hadValidBounds;v(C(()=>e.selectionLabelShakeCount,()=>b(!0),{defer:!0}));let oe=t=>{if(fb(t))return;t.stopImmediatePropagation();let n=t.code===`Enter`&&!t.shiftKey,r=t.code===`Escape`;n?(t.preventDefault(),e.onSubmit?.()):r&&(t.preventDefault(),e.onConfirmDismiss?.())},se=t=>{let n=t.target;n instanceof HTMLTextAreaElement&&(ib(n,95),e.onInputChange?.(n.value))},O=()=>gb({tagName:e.tagName,componentName:e.componentName,elementsCount:e.elementsCount}),ce=y(()=>!(e.error||e.discardPrompt||ee()&&e.isPromptMode)),le=t=>{t.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen()},ue=t=>{t.stopImmediatePropagation(),ee()&&e.isPromptMode&&!e.discardPrompt&&e.onSubmit&&r&&ob(r,{preventScroll:!0})},de=()=>ae()&&(x()||e.status===`error`);return k(j,{get when(){return Et(()=>e.visible!==!1)()&&(e.selectionBounds||de())},get children(){var i=Ix();i.addEventListener(`mouseleave`,()=>e.onHoverChange?.(!1)),i.addEventListener(`mouseenter`,()=>e.onHoverChange?.(!0)),i.$$click=e=>{e.stopImmediatePropagation()},i.$$pointerdown=ue;var a=t;return typeof a==`function`?lt(a,i):t=i,H(i,`z-index`,`${mn}`),H(i,`transition`,`opacity 125ms ease-out, filter 125ms ease-out`),U(i,k(j,{get when(){return!e.hideArrow},get children(){return k(Tb,{get position(){return ie()},get leftPercent(){return re().position.arrowLeftPercent},get leftOffsetPx(){return re().position.arrowLeftOffset},get labelWidth(){return l()}})}}),null),U(i,k(j,{get when(){return Et(()=>!!x())()&&!e.error},get children(){return k(kx,{get statusText(){return e.statusText??`Copied`},get onDismiss(){return e.onDismiss},onFadingChange:m,get onShowContextMenu(){return e.onShowContextMenu}})}}),null),U(i,k(Hb,{ref:e=>n=e,get shape(){return ce()?`pill`:`panel`},get class(){return $(`flex items-center gap-[5px] w-fit h-fit p-0`,g()&&`animate-shake`)},get style(){return{display:x()&&!e.error?`none`:void 0}},onAnimationEnd:()=>b(!1),get children(){return[k(j,{get when(){return e.status===`copying`},get children(){var t=jx(),n=t.firstChild,r=n.firstChild,i=r.firstChild;return U(n,k(Sb,{size:13,class:`text-[var(--rg-text-secondary)] shrink-0`}),r),_(()=>i.data=e.statusText??`Grabbing…`),t}}),k(j,{get when(){return Et(()=>!!(ee()&&!e.isPromptMode))()&&!e.discardPrompt},get children(){var t=Mx(),n=t.firstChild;return U(n,k(Nb,{get tagName(){return O().tagName},get componentName(){return O().componentName},get isClickable(){return!!(e.filePath&&e.onOpen)},onClick:le,onHoverChange:ne,shrink:!0})),t}}),k(j,{get when(){return Et(()=>!!(ee()&&e.isPromptMode))()&&!e.discardPrompt},get children(){var t=Fx(),n=t.firstChild;return U(n,k(Nb,{get tagName(){return O().tagName},get componentName(){return O().componentName},get isClickable(){return!!(e.filePath&&e.onOpen)},onClick:le,onHoverChange:ne})),U(t,k(Ib,{get children(){var t=Px(),n=t.firstChild;return n.$$keydown=oe,n.$$input=se,lt(t=>{r=t,e.onSubmit&&queueMicrotask(()=>{ob(t,{preventScroll:!0}),ib(t,95)})},n),H(n,`max-height`,`95px`),U(t,k(j,{get when(){return e.onSubmit},get children(){var t=Nx();return t.$$click=()=>e.onSubmit?.(),U(t,k(yb,{size:10,"aria-hidden":`true`,class:`text-[var(--rg-submit-fg)]`})),t}}),null),_(()=>n.readOnly=!e.onSubmit),_(()=>n.value=e.inputValue??``),t}}),null),t}}),k(j,{get when(){return e.discardPrompt},keyed:!0,children:e=>k(sx,{get label(){return Et(()=>!!e.isKeyboardSelection)()?`Discard selection?`:e.label},get showCancel(){return!e.isKeyboardSelection},get cancelOnEscape(){return e.cancelOnEscape},get onConfirm(){return e.onConfirm},get onCopy(){return e.onCopy},onCancel:()=>{e.isKeyboardSelection||e.onCancel?.(),ob(r,{preventScroll:!0})}})}),k(j,{get when(){return e.error},get children(){return k(gx,{get error(){return e.error},get onAcknowledge(){return e.onAcknowledgeError},get onRetry(){return e.onRetry}})}})]}}),null),_(t=>{var n=`${re().position.top}px`,r=`${re().position.left}px`,a=`translateX(calc(-50% + ${re().position.edgeOffsetX}px))`,o=S()?`auto`:`none`,s=e.status===`fading`||p()?0:1,c=`drop-shadow(${on}) blur(${e.status===`fading`||p()?`3px`:`0`})`;return n!==t.e&&H(i,`top`,t.e=n),r!==t.t&&H(i,`left`,t.t=r),a!==t.a&&H(i,`transform`,t.a=a),o!==t.o&&H(i,`pointer-events`,t.o=o),s!==t.i&&H(i,`opacity`,t.i=s),c!==t.n&&H(i,`filter`,t.n=c),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),i}})},nt([`pointerdown`,`click`,`input`,`keydown`])})),Bx,Vx,Hx=c((()=>{W(),hb(),J(),Bx=z(`<span style="transition-property:transform;transition-timing-function:cubic-bezier(0.32, 0.72, 0, 1)"><svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M20.8977 4.02356L21.8277 4.39121C22.3784 2.99813 21.0382 1.60206 19.6238 2.09546L3.47334 7.72936C1.38661 8.45728 1.49021 11.443 3.6224 12.0245L10.1289 13.799L11.2331 19.8724C11.638 22.0991 14.7072 22.4019 15.5393 20.2972L21.8277 4.39121L20.8977 4.02356Z">`),Vx=e=>{let t=()=>e.size??14,n=()=>e.rotationDeg??0;return(()=>{var r=Bx(),i=r.firstChild;return H(r,`transition-duration`,`180ms`),_(a=>{var o=$(`inline-flex items-center justify-center will-change-transform`,e.class),s=`rotate(${n()}deg)`,c=t(),l=t();return o!==a.e&&at(r,a.e=o),s!==a.t&&H(r,`transform`,a.t=s),c!==a.a&&B(i,`width`,a.a=c),l!==a.o&&B(i,`height`,a.o=l),a},{e:void 0,t:void 0,a:void 0,o:void 0}),r})()}})),Ux,Wx,Gx,Kx,qx=c((()=>{W(),R(),hb(),J(),Ux=z(`<div> `),Wx=0,Gx=()=>Date.now()-Wx<800,Kx=e=>{let[t,n]=h(!1),[r,i]=h(!0),a;v(C(()=>e.visible,e=>{a!==void 0&&(clearTimeout(a),a=void 0),e?Gx()?(i(!1),n(!0)):(i(!0),a=setTimeout(()=>{n(!0)},400)):(t()&&(Wx=Date.now()),n(!1))})),w(()=>{a!==void 0&&clearTimeout(a),t()&&(Wx=Date.now())});let o=()=>e.position===`top`||e.position===`bottom`?{left:`50%`,translate:`-50%`,"z-index":`${mn}`}:{top:`50%`,translate:`0 -50%`,"z-index":`${mn}`};return k(j,{get when(){return t()},get children(){var t=Ux(),n=t.firstChild;return _(i=>{var a=$(`absolute whitespace-nowrap px-2 py-0.5 rounded-full text-[10px] font-sans font-medium leading-4 pointer-events-none`,`bg-[var(--rg-panel-bg)] text-[var(--rg-text-primary)] [box-shadow:var(--rg-shadow)]`,e.position===`top`&&`bottom-full mb-2.5`,e.position===`bottom`&&`top-full mt-2.5`,e.position===`left`&&`right-full mr-2.5`,e.position===`right`&&`left-full ml-2.5`,r()&&`animate-tooltip-fade-in`),s=o(),c=e.textContent;return a!==i.e&&at(t,i.e=a),i.t=st(t,s,i.t),c!==i.a&&(n.data=i.a=c),i},{e:void 0,t:void 0,a:void 0}),t}})}})),Jx,Yx,Xx=c((()=>{W(),R(),qx(),Jx=z(`<div><button data-react-grab-ignore-events type=button>`),Yx=e=>(()=>{var t=Jx(),n=t.firstChild;V(n,`mouseleave`,e.onMouseLeave),V(n,`mouseenter`,e.onMouseEnter),V(n,`contextmenu`,t=>e.onContextMenu?.(t)),V(n,`click`,e.onClick,!0);var r=e.ref;return typeof r==`function`?lt(r,n):e.ref=n,U(n,()=>e.icon),U(t,k(j,{get when(){return e.tooltip},children:t=>k(Kx,{get visible(){return!!e.tooltipVisible},get position(){return e.tooltipPosition??`top`},get textContent(){return t()}})}),null),_(r=>{var i=e.wrapperClass,a=e.isToggle?``:void 0,o=e.actionId,s=e.label,c=!!e.isActive,l=e.class;return i!==r.e&&at(t,r.e=i),a!==r.t&&B(n,`data-react-grab-toolbar-toggle`,r.t=a),o!==r.a&&B(n,`data-react-grab-toolbar-action`,r.a=o),s!==r.o&&B(n,`aria-label`,r.o=s),c!==r.i&&B(n,`aria-pressed`,r.i=c),l!==r.n&&at(n,r.n=l),r},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),t})(),nt([`click`])})),Zx,Qx,$x,eS,tS,nS,rS,iS=c((()=>{J(),db(),Gh(),Zx=e=>e===`top`||e===`bottom`,Qx=e=>{let t=Zx(e);return{width:t?30:16,height:t?16:30}},$x=(e,t,n,r)=>{let i=ub(),a=i.width,o=i.height,s=i.offsetLeft+16,c=Math.max(s,i.offsetLeft+a-n-16),l=i.offsetTop+16,u=Math.max(l,i.offsetTop+o-r-16);if(Zx(e)){let r=Math.max(0,a-n-32);return{x:Math.min(c,Math.max(s,i.offsetLeft+16+r*t)),y:e===`top`?l:u}}let d=Math.max(0,o-r-32),f=Math.min(u,Math.max(l,i.offsetTop+16+d*t));return{x:e===`left`?s:c,y:f}},eS=(e,t,n,r,i)=>{let a=ub(),o=a.width,s=a.height;if(Zx(e)){let e=o-r-32;return e<=0?In:Math.max(0,Math.min(1,(t-a.offsetLeft-16)/e))}let c=s-i-32;return c<=0?In:Math.max(0,Math.min(1,(n-a.offsetTop-16)/c))},tS=(e,t,n,r,i)=>{let a=ub(),o=a.width,s=a.height,{width:c,height:l}=n,u;if(Zx(t)){let n=(c-r)/2;u={x:Wh(e.x-n,a.offsetLeft+16,a.offsetLeft+o-c-16),y:t===`top`?a.offsetTop+16:a.offsetTop+s-l-16}}else{let n=(l-i)/2,r=Wh(e.y-n,a.offsetTop+16,a.offsetTop+s-l-16);u={x:t===`left`?a.offsetLeft+16:a.offsetLeft+o-c-16,y:r}}let d=eS(t,u.x,u.y,c,l);return{position:u,ratio:d}},nS=(e,t,n,r)=>{let i=ub(),{width:a,height:o}=n,{width:s,height:c}=r;switch(e){case`top`:case`bottom`:{let n=(a-s)/2;return{x:Wh(t.x+n,i.offsetLeft,i.offsetLeft+i.width-s),y:e===`top`?i.offsetTop:i.offsetTop+i.height-c}}case`left`:case`right`:{let n=(o-c)/2,r=Wh(t.y+n,i.offsetTop,i.offsetTop+i.height-c);return{x:e===`left`?i.offsetLeft:i.offsetLeft+i.width-s,y:r}}}},rS=(e,t,n,r,i,a)=>{let o=ub(),s=o.width,c=o.height,l=e+i*150,u=t+a*150,d=u-o.offsetTop+r/2,f=o.offsetTop+c-u-r/2,p=l-o.offsetLeft+n/2,m=o.offsetLeft+s-l-n/2,h=Math.min(d,f,p,m),g=e=>Wh(e,o.offsetLeft+16,o.offsetLeft+s-n-16),_=e=>Wh(e,o.offsetTop+16,o.offsetTop+c-r-16);return h===d?{edge:`top`,x:g(l),y:o.offsetTop+16}:h===p?{edge:`left`,x:o.offsetLeft+16,y:_(u)}:h===m?{edge:`right`,x:o.offsetLeft+s-n-16,y:_(u)}:{edge:`bottom`,x:g(l),y:o.offsetTop+c-r-16}}})),aS,oS,sS=c((()=>{W(),aS=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M9.29289 16.7071C8.90237 16.3166 8.90237 15.6834 9.29289 15.2929L12.5858 12L9.29289 8.70711C8.90237 8.31658 8.90237 7.68342 9.29289 7.29289C9.68342 6.90237 10.3166 6.90237 10.7071 7.29289L14.7071 11.2929C14.8946 11.4804 15 11.7348 15 12C15 12.2652 14.8946 12.5196 14.7071 12.7071L10.7071 16.7071C10.3166 17.0976 9.68342 17.0976 9.29289 16.7071Z">`),oS=e=>{let t=()=>e.size??14;return(()=>{var n=aS();return _(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),cS,lS,uS=c((()=>{W(),hb(),iS(),sS(),cS=z(`<div data-react-grab-toolbar-panel><div><div><div></div></div></div><button data-react-grab-ignore-events data-react-grab-toolbar-collapse type=button class="group contain-layout shrink-0 flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox">`),lS=e=>{let t=()=>e.snapEdge??`bottom`,n=()=>!Zx(t()),r=()=>e.isCollapsed?`duration-140`:`duration-220`,i=()=>n()?`transition-[grid-template-rows] ${r()} ease-drawer`:`transition-[grid-template-columns] ${r()} ease-drawer`,a=()=>n()?`min-h-0`:`min-w-0`,o=()=>e.isCollapsed?`${{top:`rounded-t-none rounded-b-[10px]`,bottom:`rounded-b-none rounded-t-[10px]`,left:`rounded-l-none rounded-r-[10px]`,right:`rounded-r-none rounded-l-[10px]`}[t()]} ${n()?`px-0.25 py-2`:`px-2 py-0.25`}`:``,s=()=>{let n=e.isCollapsed;switch(t()){case`top`:return n?`rotate-90`:`-rotate-90`;case`bottom`:return n?`-rotate-90`:`rotate-90`;case`left`:return n?`rotate-0`:`rotate-180`;case`right`:return n?`rotate-180`:`rotate-0`;default:return`-rotate-90`}},c=()=>{if(e.isChevronPressed)return n()?`scale(0.97, 1)`:`scale(1, 0.97)`},l=()=>e.isChevronPressed?`transition-[padding,border-radius,transform] duration-60 ease-[cubic-bezier(0,0,0.2,1)]`:`transition-[padding,border-radius,transform] ${r()} ease-drawer`;return(()=>{var t=cS(),r=t.firstChild,u=r.firstChild,d=u.firstChild,f=r.nextSibling;return V(t,`click`,e.onPanelClick,!0),V(t,`animationend`,e.onAnimationEnd),U(d,()=>e.actionButtons),V(f,`pointercancel`,e.onCollapsePointerLeave),V(f,`pointerleave`,e.onCollapsePointerLeave),V(f,`pointerup`,e.onCollapsePointerUp,!0),V(f,`pointerdown`,e.onCollapsePointerDown),V(f,`click`,e.onCollapseClick,!0),U(f,k(oS,{size:18,get class(){return $(`text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)] transition-[transform,color] duration-150 ease-drawer -m-0.5`,s())}})),_(s=>{var p=$(`flex items-center justify-center rounded-[13px] antialiased relative overflow-visible [font-synthesis:none]`,l(),n()&&`flex-col`,`bg-[var(--rg-panel-bg)] [box-shadow:var(--rg-shadow)]`,!e.isCollapsed&&(n()?`px-1.5 gap-0 py-2`:`py-1.5 gap-0 px-2`),o(),e.isShaking&&(n()?`animate-shake-vertical`:`animate-shake`)),m=e.transformOrigin,h=c(),g=$(`grid relative overflow-visible`,i(),e.isCollapsed?n()?`grid-rows-[0fr] pointer-events-none`:`grid-cols-[0fr] pointer-events-none`:n()?`grid-rows-[1fr]`:`grid-cols-[1fr]`),_=$(`flex`,n()?`flex-col items-center min-h-0`:`items-center min-w-0`,e.isCollapsed?`opacity-0`:`opacity-100`,e.isCollapsed?`transition-opacity duration-100 ease-drawer`:`transition-opacity duration-180 ease-drawer delay-[80ms]`),v=$(`relative overflow-visible flex`,n()?`flex-col items-center`:`items-center`,a()),y=e.isCollapsed?`Expand toolbar`:`Collapse toolbar`,b=!e.isCollapsed;return p!==s.e&&at(t,s.e=p),m!==s.t&&H(t,`transform-origin`,s.t=m),h!==s.a&&H(t,`transform`,s.a=h),g!==s.o&&at(r,s.o=g),_!==s.i&&at(u,s.i=_),v!==s.n&&at(d,s.n=v),y!==s.s&&B(f,`aria-label`,s.s=y),b!==s.h&&B(f,`aria-expanded`,s.h=b),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),t})()},nt([`click`,`pointerup`])})),dS,fS=c((()=>{R(),J(),cf(),ro(),iS(),dS=e=>{let[t,n]=h(!1),[r,i]=h(!1),[a,o]=h(!1),[s,c]=h({x:0,y:0}),l={x:0,y:0},u={x:0,y:0,time:0},d={x:0,y:0},f=!1,p,m,g=null,_=()=>{g?.abort(),g=null},v=()=>{p!==void 0&&(of(p),p=void 0)},y=t=>{if(!a()){if(Math.hypot(t.clientX-d.x,t.clientY-d.y)<=5)return;o(!0),e.onDragStart()}let n=performance.now(),r=n-u.time;r>0&&c({x:(t.clientX-u.x)/r,y:(t.clientY-u.y)/r}),u={x:t.clientX,y:t.clientY,time:n};let i=t.clientX-l.x,s=t.clientY-l.y;e.onPositionUpdate({x:i,y:s})},b=()=>{_();let t=a();if(n(!1),!t)return;f=!0;let r=e.getContainerRef(),o=r?.getBoundingClientRect();if(!o)return;let c=s(),l=rS(o.left,o.top,o.width,o.height,c.x,c.y),u=eS(l.edge,l.x,l.y,o.width,o.height);e.onSnapEdgeChange(l.edge,u),i(!0),v(),p=af(()=>{let t=r?.getBoundingClientRect(),n=t?{width:t.width,height:t.height}:e.getExpandedDimensions();p=af(()=>{p=void 0;let t=$x(l.edge,u,n.width,n.height);e.onSnapComplete({edge:l.edge,ratio:u,position:t,expandedDimensions:n}),m=setTimeout(()=>{i(!1),e.onSnapAnimationEnd?.()},300)})})},ee=no(t=>{if(t.button!==0||e.isCollapsed()||r())return;let i=e.getContainerRef()?.getBoundingClientRect();if(!i)return;d={x:t.clientX,y:t.clientY},l={x:t.clientX-i.left,y:t.clientY-i.top},n(!0),o(!1),c({x:0,y:0}),u={x:t.clientX,y:t.clientY,time:performance.now()},_(),g=new AbortController;let{signal:a}=g;window.addEventListener(`pointermove`,y,{signal:a}),window.addEventListener(`pointerup`,b,{signal:a}),window.addEventListener(`pointercancel`,b,{signal:a})});return w(()=>{_(),v(),clearTimeout(m)}),{isDragging:t,isSnapping:r,handlePointerDown:ee,createDragAwareHandler:e=>t=>{if(t.stopImmediatePropagation(),f){f=!1;return}e()}}}})),pS,mS,hS=c((()=>{pS=360,mS=(e,t)=>{let n=t-e;return e+(n-Math.round(n/pS)*pS)}})),gS,_S,vS=c((()=>{W(),R(),hb(),Hx(),Xx(),J(),uS(),db(),ro(),cf(),iS(),fS(),hS(),gS=z(`<div data-react-grab-ignore-events data-react-grab-toolbar>`),_S=e=>{let t,n,r=null,i=Qg(),[a,o]=h(!1),[s,c]=h(!1),[l,u]=h(!1),[d,f]=h(i?.edge??`bottom`),[p,m]=h(i?.ratio??.5),[g,y]=h({x:0,y:0}),[b,ee]=h(!1),[x,S]=h(!1),[T,ne]=h(!1),[E,D]=h(!1),[re,ie]=h(0),[ae,oe]=h(null),se=()=>{r?.(),r=null,e.isActive||Dv()},O=dS({getContainerRef:()=>t,isCollapsed:s,getExpandedDimensions:()=>_e,onDragStart:()=>{oe(null),r&&se()},onPositionUpdate:e=>y(e),onSnapEdgeChange:(e,t)=>{be(d(),e),f(e),m(t)},onSnapComplete:e=>{_e=e.expandedDimensions,y(e.position),Ie({edge:e.edge,ratio:e.ratio,collapsed:s(),enabled:!s()})}}),ce=()=>!Zx(d()),le=()=>ce()?`mb-1.5`:`mr-1.5`,ue=()=>e.defaultActionId??`copy`,de=()=>e.defaultActionLabel??`Copy`,fe=()=>!!e.isActive&&(e.activeActionId??`copy`)===ue(),pe=t=>ae()===t&&!e.isActive&&!s()&&!O.isDragging()&&!O.isSnapping()&&!e.isContextMenuOpen,me=()=>{switch(d()){case`top`:return`bottom`;case`bottom`:return`top`;case`left`:return`right`;case`right`:return`left`;default:return`top`}},he=e=>{e.stopImmediatePropagation()},ge=t=>({onMouseEnter:e=>{O.isDragging()||(oe(t()),r||(r=my(),Ev(e.clientX,e.clientY)))},onMouseLeave:()=>{let n=t();oe(e=>e===n?null:e),!e.isActive&&!e.isContextMenuOpen&&se()}});v(C(()=>e.shakeCount,t=>{t&&!e.enabled&&ee(!0)})),v(C(()=>[e.isActive,e.isContextMenuOpen],([e,t])=>{!e&&!t&&r&&se()})),v(C(()=>fe(),e=>{if(!e){ie(e=>mS(e,0));return}let t=null,r=0,i=0,a=()=>{if(t=null,!n)return;let e=n.getBoundingClientRect(),a=e.left+e.width/2,o=e.top+e.height/2,s=r-a,c=i-o;if(Math.hypot(s,c)<4)return;let l=Math.atan2(c,s)*180/Math.PI- -45;ie(e=>mS(e,l))},o=no(e=>{r=e.clientX,i=e.clientY,t===null&&(t=af(a))});window.addEventListener(`pointermove`,o,{passive:!0}),w(()=>{window.removeEventListener(`pointermove`,o),t!==null&&of(t)})}));let _e={width:38,height:28},[ve,ye]=h(Qx(d())),be=(e,t)=>{Zx(e)!==Zx(t)&&ye(Qx(t))},xe=(e,n)=>{let r=t?.getBoundingClientRect(),i=Qx(n);return tS(e,n,_e,r?.width??i.width,r?.height??i.height)},Se=()=>{y($x(d(),p(),_e.width,_e.height))},Ce=O.createDragAwareHandler(()=>e.onToggle?.()),we=()=>$(`relative contain-layout flex items-center justify-center`,le()),Te=e=>e?`text-[var(--rg-text-primary)]`:`text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)]`,Ee=O.createDragAwareHandler(()=>{if(s()){M();return}let e=t?.getBoundingClientRect(),n=p();e&&(_e={width:e.width,height:e.height}),S(!0),c(!0),Ie({edge:d(),ratio:n,collapsed:!0,enabled:!1}),j()}),De=()=>nS(d(),g(),_e,ve()),Oe,A,Ae=null,je=()=>{let e=t?.getBoundingClientRect();!e||e.width===0||e.height===0||(s()?ye({width:e.width,height:e.height}):(_e={width:e.width,height:e.height},Ae={width:e.width,height:e.height}))},j=()=>{A&&clearTimeout(A),A=setTimeout(()=>{S(!1),je()},260)},M=()=>{let{position:e,ratio:t}=xe(Le(),d());y(e),m(t),S(!0),c(!1),Ie({edge:d(),ratio:t,collapsed:!1,enabled:!0}),j()},Me=(e,t)=>{if(!(e===0||t===0)&&!(O.isDragging()||O.isSnapping())&&!x()){if(s()){let n=ve();if(n.width===e&&n.height===t)return;ye({width:e,height:t});return}Ae&&Ae.width===e&&Ae.height===t||(Ae={width:e,height:t},_e={width:e,height:t},y($x(d(),p(),e,t)))}},Ne=null,Pe=()=>{O.isDragging()||O.isSnapping()||Ne===null&&(Ne=af(()=>{Ne=null,Se()}))},Fe=()=>{O.isDragging()||(u(!0),Se(),Oe&&clearTimeout(Oe),Oe=setTimeout(()=>{u(!1);let e=eS(d(),g().x,g().y,_e.width,_e.height);m(e),Ie({edge:d(),ratio:e,collapsed:s(),enabled:!s()})},500))},Ie=t=>{let n={...t,defaultAction:ue()};$g(n),e.onStateChange?.(n)};te(()=>{t&&e.onContainerRef?.(t);let n=t?.getBoundingClientRect(),r=ub(),a=!!(n&&n.width>0&&n.height>0);i?(a&&n&&(_e={width:n.width,height:n.height}),c(i.collapsed),y($x(i.edge,i.ratio,_e.width,_e.height))):a&&n?(_e={width:n.width,height:n.height},y({x:r.offsetLeft+(r.width-n.width)/2,y:r.offsetTop+r.height-n.height-16}),m(In)):(y($x(`bottom`,In,_e.width,_e.height)),m(In)),e.onSubscribeToStateChanges&&w(e.onSubscribeToStateChanges(e=>{if(x()||!t?.getBoundingClientRect())return;let n=s()!==e.collapsed;if(be(d(),e.edge),f(e.edge),n&&!e.collapsed){let t=Le();S(!0),c(e.collapsed);let{position:n,ratio:r}=xe(t,e.edge);y(n),m(r),j()}else n&&(S(!0),j()),c(e.collapsed),y($x(e.edge,e.ratio,_e.width,_e.height)),m(e.ratio)})),window.addEventListener(`resize`,Fe),window.visualViewport?.addEventListener(`resize`,Fe),window.visualViewport?.addEventListener(`scroll`,Fe);let l=eo();if(l&&(window.addEventListener(`scroll`,Pe,{passive:!0,capture:!0}),typeof ResizeObserver<`u`)){let e=new ResizeObserver(Pe);e.observe(l),w(()=>e.disconnect())}if(typeof ResizeObserver<`u`&&t){let e=new ResizeObserver(e=>{let n=e[0];if(!n)return;let r=n.borderBoxSize?.[0],i,a;if(r)i=r.inlineSize,a=r.blockSize;else{let e=t?.getBoundingClientRect();if(!e)return;i=e.width,a=e.height}Me(i,a)});e.observe(t),w(()=>e.disconnect())}let u=setTimeout(()=>{o(!0)},500);w(()=>{clearTimeout(u)})}),w(()=>{window.removeEventListener(`resize`,Fe),window.visualViewport?.removeEventListener(`resize`,Fe),window.visualViewport?.removeEventListener(`scroll`,Fe),window.removeEventListener(`scroll`,Pe,{capture:!0}),Ne!==null&&of(Ne),clearTimeout(Oe),clearTimeout(A),r&&se()});let Le=()=>s()?De():g(),Re=()=>s()?`cursor-pointer`:O.isDragging()?`cursor-grabbing`:`cursor-grab`,ze=()=>E()||!!e.isContextMenuOpen||O.isDragging()||O.isSnapping()||x()||T(),Be=()=>!!e.isActive&&!ze(),Ve=()=>l()||O.isDragging()?``:O.isSnapping()?`transition-[transform,opacity] duration-300 ease-out`:x()?`transition-[transform,opacity] ${s()?`duration-140`:`duration-220`} ease-drawer`:`transition-[transform,opacity] duration-400 ease-drawer`,He=()=>{switch(d()){case`top`:return`center top`;case`bottom`:return`center bottom`;case`left`:return`left center`;case`right`:return`right center`;default:return`center center`}};return(()=>{var r=gS();r.addEventListener(`mouseleave`,()=>{D(!1),e.onSelectHoverChange?.(!1)}),r.addEventListener(`mouseenter`,()=>{D(!0),s()||e.onSelectHoverChange?.(!0)}),V(r,`mousedown`,he),V(r,`pointerdown`,e=>{he(e),O.handlePointerDown(e)});var i=t;return typeof i==`function`?lt(i,r):t=r,U(r,k(lS,{get isCollapsed(){return s()},get snapEdge(){return d()},get isShaking(){return b()},get isChevronPressed(){return T()},get transformOrigin(){return He()},onAnimationEnd:()=>ee(!1),onCollapseClick:Ee,onCollapsePointerDown:()=>ne(!0),onCollapsePointerUp:()=>ne(!1),onCollapsePointerLeave:()=>ne(!1),onPanelClick:e=>{s()&&(e.stopPropagation(),M())},get actionButtons(){return k(Yx,ke({get actionId(){return ue()},isToggle:!0,ref:e=>n=e,get label(){return Et(()=>!!fe())()?`Stop selecting element`:`${de()} element`},get isActive(){return fe()},class:`group contain-layout flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox`,get wrapperClass(){return we()},onClick:Ce,onContextMenu:t=>{t.preventDefault(),t.stopPropagation(),oe(null),e.onToggleToolbarMenu?.()}},()=>ge(ue),{get icon(){return k(Vx,{size:14,get rotationDeg(){return re()},get class(){return Te(fe())}})},get tooltipVisible(){return pe(ue())},get tooltipPosition(){return me()},get tooltip(){return de()}}))}})),_(e=>{var t=$(`fixed left-0 top-0 font-sans text-[13px] antialiased select-none`,Re(),Ve(),a()?`pointer-events-auto`:`pointer-events-none`),n=String(mn),i=`translate(${Le().x}px, ${Le().y}px) scale(${Be()?.97:1})`,o=He(),s=a()?Be()?.55:1:0;return t!==e.e&&at(r,e.e=t),n!==e.t&&H(r,`z-index`,e.t=n),i!==e.a&&H(r,`transform`,e.a=i),o!==e.o&&H(r,`transform-origin`,e.o=o),s!==e.i&&H(r,`opacity`,e.i=s),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),r})()}})),yS,bS,xS=c((()=>{R(),yS=re(),bS=()=>{let e=ie(yS);if(!e)throw Error(`Menu subcomponents must be rendered inside <Menu.Provider>`);return e}})),SS,CS=c((()=>{W(),xS(),SS=e=>k(yS.Provider,{get value(){return e.store},get children(){return e.children}})})),wS,TS=c((()=>{W(),hb(),Ub(),wS=e=>k(Hb,{get class(){return $(`flex flex-col w-fit h-fit`,e.class)},get style(){return e.style},get children(){return e.children}})})),ES,DS,OS=c((()=>{W(),hb(),xS(),ES=z(`<div role=menu aria-orientation=vertical><div aria-hidden=true class="pointer-events-none absolute opacity-0 transition-[top,left,width,height,opacity,border-radius] duration-75 ease-out bg-[var(--rg-surface-hover)]">`),DS=e=>{let t=bS();return(()=>{var n=ES(),r=n.firstChild;n.$$pointermove=()=>t.notePointerMove(),lt(n=>{t.setHighlightContainer(n),e.ref?.(n)},n);var i=t.setHighlightRail;return typeof i==`function`?lt(i,r):t.setHighlightRail=r,U(n,()=>e.children,null),_(r=>{var i=e.label,a=t.keyboardNavigation?t.activeDescendantId():void 0,o=t.keyboardNavigation?-1:void 0,s=$(`relative flex flex-col`,e.class);return i!==r.e&&B(n,`aria-label`,r.e=i),a!==r.t&&B(n,`aria-activedescendant`,r.t=a),o!==r.a&&B(n,`tabindex`,r.a=o),s!==r.o&&at(n,r.o=s),r},{e:void 0,t:void 0,a:void 0,o:void 0}),n})()},nt([`pointermove`])})),kS,AS,jS=c((()=>{W(),R(),hb(),xS(),kS=z(`<button data-react-grab-ignore-events type=button>`),AS=e=>{let t=bS(),n=t.createItemId(),r=e.value,i=()=>e.role??`menuitem`,a=()=>!e.disabled,o=()=>t.activeValue()===r,s;return te(()=>{s&&(t.registerItem({value:r,domId:n,element:s,isEnabled:a,onSelect:()=>e.onSelect?.()}),w(()=>t.unregisterItem(r)))}),(()=>{var c=kS();c.$$click=t=>{t.stopPropagation(),a()&&e.onSelect?.()},c.addEventListener(`pointerleave`,()=>{t.clearActiveOnPointerLeave&&t.setActiveItem(null)}),c.addEventListener(`pointerenter`,()=>{a()&&t.canActivateOnHover()&&t.setActiveItem(r)}),c.$$pointerdown=e=>e.stopPropagation();var l=s;return typeof l==`function`?lt(l,c):s=c,B(c,`id`,n),U(c,()=>e.children),_(n=>{var a=e.dataId??r,s=i(),l=i()===`menuitemradio`?!!e.checked:void 0,u=!!e.disabled,d=t.keyboardNavigation?o()?0:-1:void 0,f=e.disabled,p=$(`relative z-1 contain-layout flex items-center justify-between w-full px-2 py-1 cursor-pointer text-left border-none bg-transparent disabled:opacity-40 disabled:cursor-default`,e.class);return a!==n.e&&B(c,`data-react-grab-menu-item`,n.e=a),s!==n.t&&B(c,`role`,n.t=s),l!==n.a&&B(c,`aria-checked`,n.a=l),u!==n.o&&B(c,`aria-disabled`,n.o=u),d!==n.i&&B(c,`tabindex`,n.i=d),f!==n.n&&(c.disabled=n.n=f),p!==n.s&&at(c,n.s=p),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),c})()},nt([`pointerdown`,`click`])})),MS,NS,PS=c((()=>{W(),hb(),MS=z(`<span> `),NS=e=>(()=>{var t=MS(),n=t.firstChild;return _(r=>{var i=$(`text-[13px] leading-4 font-sans font-medium`,e.class),a=e.textContent;return i!==r.e&&at(t,r.e=i),a!==r.t&&(n.data=r.t=a),r},{e:void 0,t:void 0}),t})()})),FS,IS,LS=c((()=>{W(),FS=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M6.5 5C5.67157 5 5 5.67157 5 6.5C5 7.32843 5.67157 8 6.5 8H8V6.5C8 5.67157 7.32843 5 6.5 5ZM10 8V6.5C10 4.567 8.433 3 6.5 3C4.567 3 3 4.567 3 6.5C3 8.433 4.567 10 6.5 10H8V14H6.5C4.567 14 3 15.567 3 17.5C3 19.433 4.567 21 6.5 21C8.433 21 10 19.433 10 17.5V16H14V17.5C14 19.433 15.567 21 17.5 21C19.433 21 21 19.433 21 17.5C21 15.567 19.433 14 17.5 14H16V10H17.5C19.433 10 21 8.433 21 6.5C21 4.567 19.433 3 17.5 3C15.567 3 14 4.567 14 6.5V8H10ZM10 10V14H14V10H10ZM16 8H17.5C18.3284 8 19 7.32843 19 6.5C19 5.67157 18.3284 5 17.5 5C16.6716 5 16 5.67157 16 6.5V8ZM16 16V17.5C16 18.3284 16.6716 19 17.5 19C18.3284 19 19 18.3284 19 17.5C19 16.6716 18.3284 16 17.5 16H16ZM8 16H6.5C5.67157 16 5 16.6716 5 17.5C5 18.3284 5.67157 19 6.5 19C7.32843 19 8 18.3284 8 17.5V16Z">`),IS=e=>{let t=()=>e.size??11;return(()=>{var n=FS();return _(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),RS,zS,BS,VS=c((()=>{W(),R(),_g(),LS(),Zb(),RS=z(`<span> `),zS=z(`<span style=display:inline-flex;align-items:center;gap:2px>`),BS=e=>{let t=()=>e.shortcut===`Enter`,n=()=>e.modifier!==!1,r=gg();return(()=>{var i=zS();return U(i,k(j,{get when(){return t()},get children(){return k(Xb,{size:8})}}),null),U(i,k(j,{get when(){return!t()},get children(){return k(j,{get when(){return n()},get fallback(){return(()=>{var t=RS(),n=t.firstChild;return _(()=>n.data=e.shortcut),t})()},get children(){return k(j,{when:r,get fallback(){return(()=>{var t=RS(),n=t.firstChild;return _(()=>n.data=`Ctrl+${e.shortcut}`),t})()},get children(){return[k(IS,{size:9}),(()=>{var t=RS(),n=t.firstChild;return _(()=>n.data=e.shortcut),t})()]}})}})}}),null),_(()=>at(i,e.class)),i})()}})),HS,US=c((()=>{W(),hb(),VS(),HS=e=>k(BS,{get shortcut(){return e.shortcut},get modifier(){return e.modifier},get class(){return $(`text-[11px] font-sans text-[var(--rg-text-secondary)] ml-4`,e.class)}})})),WS,GS,KS,qS,JS,YS,XS=c((()=>{R(),WS=`0`,GS=`1`,KS=({hiddenOpacity:e=WS,visibleOpacity:t=GS}={})=>{let n,r,i,a=e=>{r&&(r.style.opacity=t,r.style.top=`${e.offsetTop}px`,r.style.left=`${e.offsetLeft}px`,r.style.width=`${e.offsetWidth}px`,r.style.height=`${e.offsetHeight}px`)},o=typeof ResizeObserver>`u`?void 0:new ResizeObserver(()=>{i&&a(i)});w(()=>o?.disconnect());let s=()=>{i=void 0,o?.disconnect(),r&&(r.style.opacity=e)};return{containerRef:e=>{n=e},followerRef:e=>{r=e},followElement:e=>{if(!(!r||!n)){if(!e){s();return}i=e,a(e),o?.disconnect(),o?.observe(e),o?.observe(n)}},hideFollower:s}},qS=(e,t)=>e!==t&&e instanceof HTMLElement,JS=(e,t)=>{let n=[];for(let r of Array.from(e.children))qS(r,t)&&n.push(r);return n},YS=(e={})=>{let{topCornerRadiusPx:t,bottomCornerRadiusPx:n,cornerShape:r}=e,i=t!==void 0||n!==void 0,a,o=!1,s=e=>{if(!a||!i)return;let s=e.parentElement;if(!s)return;let c=JS(s,a),l=c[0]===e,u=c[c.length-1]===e,d=l&&t!==void 0?`${t}px`:`0px`,f=u&&n!==void 0?`${n}px`:`0px`;a.style.borderTopLeftRadius=d,a.style.borderTopRightRadius=d,a.style.borderBottomLeftRadius=f,a.style.borderBottomRightRadius=f,r&&!o&&(a.style.setProperty(`corner-shape`,r),o=!0)},{containerRef:c,followerRef:l,followElement:u,hideFollower:d}=KS();return{containerRef:c,highlightRef:e=>{a=e,o=!1,l(e)},updateHighlight:e=>{u(e),e&&s(e)},clearHighlight:d}}})),ZS,QS=c((()=>{R(),XS(),ZS=(e={})=>{let t=new Map,n=[],r=`react-grab-menu-${Math.random().toString(36).slice(2,8)}`,i=0,a=!1,o=e.value!==void 0,[s,c]=h(null),[l,u]=h(0),d=y(()=>o?e.value?.()??null:s()),f=t=>{if(o){e.onValueChange?.(t);return}c(t)},p=YS(e.highlight??{});v(C([d,l],([e])=>{if(e===null){p.clearHighlight();return}let n=t.get(e);n?p.updateHighlight(n.element):p.clearHighlight()}));let m=()=>n.filter(e=>t.get(e)?.isEnabled()),g=()=>{let e=m();e.length>0&&f(e[0])},_=()=>{let e=m();e.length>0&&f(e[e.length-1])},b=()=>{let e=m();if(e.length===0)return;let t=e.indexOf(d()??``);f(e[t===-1?0:(t+1)%e.length])},ee=()=>{let e=m();if(e.length===0)return;let t=e.indexOf(d()??``);f(e[t===-1?e.length-1:(t-1+e.length)%e.length])},x=y(()=>{l();let e=d();if(e!==null)return t.get(e)?.domId});return{keyboardNavigation:e.keyboardNavigation??!1,clearActiveOnPointerLeave:e.clearActiveOnPointerLeave??!1,activeValue:d,activeDescendantId:x,setActiveItem:f,createItemId:()=>`${r}-item-${i++}`,canActivateOnHover:()=>!(e.requirePointerMove??!1)||a,notePointerMove:()=>{a=!0},resetPointerMove:()=>{a=!1},registerItem:e=>{t.set(e.value,e),n.includes(e.value)||n.push(e.value),u(e=>e+1)},unregisterItem:e=>{t.delete(e);let r=n.indexOf(e);r!==-1&&n.splice(r,1),o||c(t=>t===e?null:t),u(e=>e+1)},getActiveItem:()=>{let e=d();return e===null?void 0:t.get(e)},selectFirst:g,selectLast:_,selectNext:b,selectPrevious:ee,setHighlightContainer:p.containerRef,setHighlightRail:p.highlightRef}}})),$S,eC=c((()=>{CS(),TS(),OS(),jS(),PS(),US(),QS(),$S={Provider:SS,Panel:wS,List:DS,Item:AS,Label:NS,Shortcut:HS}})),tC,nC=c((()=>{tC=e=>{e.type===`contextmenu`&&e.preventDefault(),e.stopImmediatePropagation()}})),rC,iC=c((()=>{ro(),Tg(),za(),cf(),rC=e=>{let t=no(t=>{e.isOpen()&&(e.shouldIgnoreKeyboardEvent?.(t)||e.shouldIgnoreInputEvents&&Ia(t)||t.code===`Escape`&&(t.preventDefault(),t.stopImmediatePropagation(),e.onDismiss(`keyboard`)))}),n=no(t=>{e.isOpen()&&(wg(t,`data-react-grab-ignore-events`)||e.shouldIgnoreRightClick&&t instanceof MouseEvent&&t.button===2||e.onDismiss(`pointer`))}),r=af(()=>{window.addEventListener(`mousedown`,n,{capture:!0}),window.addEventListener(`touchstart`,n,{capture:!0})});return window.addEventListener(`keydown`,t,{capture:!0}),()=>{of(r),window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`mousedown`,n,{capture:!0}),window.removeEventListener(`touchstart`,n,{capture:!0})}}})),aC,oC,sC,cC=c((()=>{W(),R(),J(),Eb(),Pb(),Lb(),eC(),_b(),Ty(),cf(),nC(),iC(),ro(),aC=z(`<div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 w-fit h-fit px-2">`),oC=z(`<div data-react-grab-ignore-events data-react-grab-context-menu class="fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none"style=pointer-events:auto>`),sC=e=>{let t,n,r=null,i=ZS({keyboardNavigation:!0,highlight:{bottomCornerRadiusPx:14,cornerShape:zn}}),[a,o]=h(0),[s,c]=h(0),l=y(()=>e.position!==null),u=y(()=>gb({tagName:e.tagName,componentName:e.componentName})),d=()=>{if(t){let e=t.getBoundingClientRect();o(e.width),c(e.height)}};v(()=>{l()&&af(d)});let f=y(()=>{let t=e.selectionBounds,n=e.position,r=a(),i=s();if(r===0||i===0||!t||!n)return{left:Hn.left,top:Hn.top,arrowLeft:0,arrowPosition:`bottom`};let o=n.x??t.x+t.width/2,c=Math.max(4,Math.min(o-r/2,window.innerWidth-r-4)),l=Math.max(8,Math.min(o-c,r-8)),u=t.y+t.height+8+4,d=t.y-i-8-4,f=u+i>window.innerHeight,p=d>=0,m=f&&p,h=m?d:u,g=m?`top`:`bottom`;if(f&&!p){let e=n.y??t.y+t.height/2;h=Math.max(4,Math.min(e+4,window.innerHeight-i-4)),g=`top`}return{left:c,top:h,arrowLeft:l,arrowPosition:g}}),p=y(()=>{let t=e.actions??[],n=e.actionContext;return t.map(e=>({id:e.id,label:e.label,action:()=>{n&&Ey(e,n)},enabled:wy(e,n),shortcut:e.shortcut,shortcutModifier:e.shortcutModifier}))});v(C(l,e=>{if(e){let e=t?.getRootNode(),i=e instanceof ShadowRoot?e.activeElement:null,a=document.activeElement;r=a instanceof HTMLElement&&i===null&&!(t instanceof Element&&t.contains(a))?a:null,n?.focus({preventScroll:!0});return}i.setActiveItem(null);let a=r;r=null,!(!(a instanceof HTMLElement)||!document.contains(a))&&af(()=>{let e=document.activeElement;(e===null||e===document.body)&&a.focus({preventScroll:!0})})})),te(()=>{d();let t=t=>{if(!l())return;let n=t.key===`ArrowDown`,r=t.key===`ArrowUp`,a=t.key===`Home`,o=t.key===`End`,s=t.key===`Tab`;if(n||r||a||o||s){t.preventDefault(),t.stopPropagation();let e=n||s&&!t.shiftKey;a?i.selectFirst():o?i.selectLast():e?i.selectNext():i.selectPrevious();return}let c=e.actions??[],u=e.actionContext,d=n=>{u&&Ey(n,u)&&(t.preventDefault(),t.stopPropagation(),e.onHide())};if(t.key===`Enter`){let e=i.getActiveItem();if(e){t.preventDefault(),t.stopPropagation(),e.isEnabled()&&e.onSelect();return}}let f=yy(c,t,{includeModifierShortcuts:!0});f&&d(f)},n=rC({isOpen:l,onDismiss:e.onDismiss,shouldIgnoreRightClick:!0}),r=no(t);window.addEventListener(`keydown`,r,{capture:!0}),w(()=>{n(),window.removeEventListener(`keydown`,r,{capture:!0})})});let m=y(()=>{let{tagName:e,componentName:t}=u();return`Actions for ${t?`${t}.${e}`:e}`});return k(j,{get when(){return l()},get children(){var r=oC();V(r,`contextmenu`,tC,!0),V(r,`click`,tC,!0),V(r,`mousedown`,tC,!0),V(r,`pointerdown`,tC,!0);var a=t;return typeof a==`function`?lt(a,r):t=r,H(r,`z-index`,`${mn}`),U(r,k(Tb,{get position(){return f().arrowPosition},leftPercent:0,get leftOffsetPx(){return f().arrowLeft}}),null),U(r,k($S.Panel,{class:`justify-center items-start min-w-[100px]`,get children(){return[(()=>{var t=aC();return U(t,k(Nb,{get tagName(){return u().tagName},get componentName(){return u().componentName},get isClickable(){return e.hasFilePath},onClick:t=>{if(t.stopPropagation(),e.hasFilePath&&e.actionContext){let t=e.actions?.find(e=>e.id===`open`);t&&Ey(t,e.actionContext)}},shrink:!0})),t})(),k(Ib,{get children(){return k($S.Provider,{store:i,get children(){return k($S.List,{ref:e=>n=e,get label(){return m()},class:`w-[calc(100%+16px)] -mx-2 -my-1.5 outline-none`,get children(){return k(je,{get each(){return p()},children:t=>k($S.Item,{get value(){return t.id},get dataId(){return t.label.toLowerCase()},get disabled(){return!t.enabled},onSelect:()=>{t.action(),e.onHide()},get children(){return[k($S.Label,{class:`text-[var(--rg-text-primary)]`,get textContent(){return t.label}}),k(j,{get when(){return t.shortcut},children:e=>k($S.Shortcut,{get shortcut(){return e()},get modifier(){return t.shortcutModifier}})})]}})})}})}})}})]}}),null),_(e=>{var t=`${f().top}px`,n=`${f().left}px`;return t!==e.e&&H(r,`top`,e.e=t),n!==e.t&&H(r,`left`,e.t=n),e},{e:void 0,t:void 0}),r}})},nt([`pointerdown`,`mousedown`,`click`,`contextmenu`])})),lC,uC=c((()=>{lC=(e,t,n,r)=>Math.max(r,Math.min(e,n-t-r))})),dC,fC=c((()=>{uC(),dC=({anchor:e,measuredWidth:t,measuredHeight:n,viewportLeft:r=0,viewportTop:i=0,viewportWidth:a,viewportHeight:o,anchorGapPx:s,viewportPaddingPx:c,offscreenPosition:l})=>{if(!e||t===0||n===0)return l;let u,d;return e.edge===`left`||e.edge===`right`?(u=e.edge===`left`?e.x+s:e.x-t-s,d=e.y-n/2):(u=e.x-t/2,d=e.edge===`top`?e.y+s:e.y-n-s),{left:r+lC(u-r,t,a,c),top:i+lC(d-i,n,o,c)}}})),pC,mC=c((()=>{R(),J(),fC(),db(),ro(),cf(),pC=(e,t)=>{let[n,r]=h(0),[i,a]=h(0),[o,s]=h(!1),[c,l]=h(!1),[u,d]=h(0),[f,p]=h(`bottom`),m,g,_=()=>{clearTimeout(m),g!==void 0&&(of(g),g=void 0)},b=()=>{let t=e();t&&(r(t.offsetWidth),a(t.offsetHeight))},ee=()=>{x(()=>{d(e=>e+1),b()})},S=y(()=>t()!==null);return v(()=>{let n=t();n?(p(n.edge),clearTimeout(m),s(!0),g!==void 0&&of(g),g=af(()=>{b(),e()?.offsetHeight,l(!0)})):(g!==void 0&&of(g),l(!1),m=setTimeout(()=>{s(!1)},120)),w(_)}),v(()=>{if(!S())return;window.addEventListener(`resize`,ee),window.visualViewport?.addEventListener(`resize`,ee),window.visualViewport?.addEventListener(`scroll`,ee);let e=eo(),t;e&&typeof ResizeObserver<`u`&&(t=new ResizeObserver(ee),t.observe(e)),w(()=>{window.removeEventListener(`resize`,ee),window.visualViewport?.removeEventListener(`resize`,ee),window.visualViewport?.removeEventListener(`scroll`,ee),t?.disconnect()})}),{shouldMount:o,isAnimatedIn:c,lastAnchorEdge:f,displayPosition:y(e=>{u();let r=ub(),a=dC({anchor:t(),measuredWidth:n(),measuredHeight:i(),viewportLeft:r.offsetLeft,viewportTop:r.offsetTop,viewportWidth:r.width,viewportHeight:r.height,anchorGapPx:8,viewportPaddingPx:8,offscreenPosition:Hn});return a.left===Hn.left?e:a},Hn),measure:b,clearAnimationHandles:_}}})),hC,gC,_C=c((()=>{W(),R(),J(),hb(),nC(),mC(),iC(),hC=z(`<div data-react-grab-ignore-events>`),gC=e=>{let t,n=()=>e.interactive!==!1,r=pC(()=>t,()=>e.position);return te(()=>{r.measure();let t=e.onDismiss?rC({isOpen:()=>!!e.position,onDismiss:e.onDismiss}):void 0;w(()=>{r.clearAnimationHandles(),t?.()})}),k(j,{get when(){return r.shouldMount()},get children(){var i=hC(),a=t;return typeof a==`function`?lt(a,i):t=i,ct(i,ke(()=>({[e.dataAttribute]:``}),{get class(){return $(`fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none will-change-[opacity,transform]`,r.isAnimatedIn()?`transition-[opacity,transform] duration-220 ease-spring`:`transition-[opacity,transform] duration-120 ease-drawer`)},get style(){return{top:`${r.displayPosition().top}px`,left:`${r.displayPosition().left}px`,"z-index":`${mn}`,"pointer-events":n()&&r.isAnimatedIn()?`auto`:`none`,"transform-origin":q[r.lastAnchorEdge()],opacity:r.isAnimatedIn()?`1`:`0`,transform:r.isAnimatedIn()?`scale(1)`:`scale(0.92)`}},onPointerDown:tC,onMouseDown:tC,onClick:tC,onContextMenu:tC}),!1,!0),U(i,()=>e.children),i}})}})),vC,yC=c((()=>{W(),R(),J(),eC(),_C(),vC=e=>{let t=ZS({clearActiveOnPointerLeave:!0,highlight:{topCornerRadiusPx:14,bottomCornerRadiusPx:14,cornerShape:zn}});return k(gC,{get position(){return e.position},dataAttribute:`data-react-grab-toolbar-menu`,get onDismiss(){return e.onDismiss},get children(){return k($S.Panel,{class:`overflow-hidden`,style:{"min-width":`100px`},get children(){return k($S.Provider,{store:t,get children(){return k($S.List,{label:`Default action`,get children(){return k(je,{get each(){return e.actions},children:t=>{let n=()=>t.id===e.defaultActionId;return k($S.Item,{get value(){return t.id},role:`menuitemradio`,get checked(){return n()},onSelect:()=>{e.onSetDefaultAction(t.id),e.onDismiss()},get children(){return[k($S.Label,{get class(){return n()?`text-[var(--rg-text-primary)]`:`text-[var(--rg-text-secondary)]`},get textContent(){return t.label}}),k(j,{get when(){return t.shortcut},children:e=>k($S.Shortcut,{get shortcut(){return e()},get modifier(){return t.shortcutModifier}})})]}})}})}})}})}})}})}})),bC,xC,SC,CC,wC,TC=c((()=>{W(),R(),J(),eC(),_C(),bC=z(`<span aria-hidden=true class="shrink-0 font-mono text-[11px] leading-4 text-[var(--rg-text-secondary)] opacity-60 mr-1"> `),xC=z(`<span> `),SC=z(`<span class=text-[var(--rg-text-secondary)]>.`),CC=z(`<span class="flex items-center min-w-0 w-full"><span class="text-[13px] leading-4 h-fit font-medium overflow-hidden text-ellipsis whitespace-nowrap min-w-0 transition-colors"><span> `),wC=e=>{let t=()=>e.state?.activeIndex??0,n=ZS({value:()=>String(t()),highlight:{topCornerRadiusPx:14,bottomCornerRadiusPx:14,cornerShape:zn}});return k(gC,{get position(){return e.position},dataAttribute:`data-react-grab-hierarchy-menu`,interactive:!1,get children(){return k($S.Panel,{class:`overflow-hidden`,style:{"min-width":`160px`},get children(){return k($S.Provider,{store:n,get children(){return k($S.List,{label:`Navigate element hierarchy`,get children(){return k(je,{get each(){return e.state?.items??[]},children:(e,n)=>k($S.Item,{get value(){return String(n())},role:`menuitemradio`,get checked(){return n()===t()},get children(){var r=CC(),i=r.firstChild,a=i.firstChild,o=a.firstChild;return U(r,k(j,{get when(){return e.depth>0},get children(){var t=bC(),n=t.firstChild;return _(r=>{var i=`${(e.depth-1)*12}px`,a=e.isLast?`└─`:`├─`;return i!==r.e&&H(t,`padding-left`,r.e=i),a!==r.t&&(n.data=r.t=a),r},{e:void 0,t:void 0}),t}}),i),U(i,k(j,{get when(){return e.componentName},get children(){return[(()=>{var t=xC(),n=t.firstChild;return _(()=>n.data=e.componentName),t})(),SC()]}}),a),_(r=>{var a=n()===t(),s=n()!==t(),c=e.tagName;return a!==r.e&&i.classList.toggle(`text-[var(--rg-text-primary)]`,r.e=a),s!==r.t&&i.classList.toggle(`text-[var(--rg-text-secondary)]`,r.t=s),c!==r.a&&(o.data=r.a=c),r},{e:void 0,t:void 0,a:void 0}),r}})})}})}})}})}})}})),EC=l({ReactGrabRenderer:()=>DC}),DC,OC=c((()=>{W(),R(),J(),na(),eb(),rb(),zx(),vS(),cC(),yC(),TC(),DC=e=>[k($y,{get selectionVisible(){return e.selectionVisible},get selectionBounds(){return e.selectionBounds},get selectionBoundsMultiple(){return e.selectionBoundsMultiple},get selectionShouldSnap(){return e.selectionShouldSnap},get dragVisible(){return e.dragVisible},get dragBounds(){return e.dragBounds},get grabbedBoxes(){return e.grabbedBoxes},get labelInstances(){return e.labelInstances}}),k(nb,{get visible(){return e.isFrozen??!1}}),k(j,{get when(){return Et(()=>!!e.selectionLabelVisible)()&&(e.frozenLabelEntryAccessors?.length??0)>0},get children(){return k(je,{get each(){return e.frozenLabelEntryAccessors??[]},children:e=>k(j,{get when(){return e.read()},children:e=>k(Rx,{get tagName(){return e().tagName},get componentName(){return e().componentName},get selectionBounds(){return e().bounds},get mouseX(){return e().mouseX},visible:!0})})})}}),k(j,{get when(){return Et(()=>!!e.selectionLabelVisible)()&&e.pendingShiftPreviewEntry},children:e=>k(Rx,{get tagName(){return e().tagName},get componentName(){return e().componentName},get selectionBounds(){return e().bounds},get mouseX(){return e().mouseX},visible:!0})}),k(j,{get when(){return Et(()=>!!(e.selectionLabelVisible&&e.selectionBounds))()&&(e.frozenLabelEntryAccessors?.length??0)===0},get children(){return k(Rx,{get tagName(){return e.selectionTagName},get componentName(){return e.selectionComponentName},get elementsCount(){return e.selectionElementsCount},get selectionBounds(){return e.selectionBounds},get mouseX(){return e.mouseX},get visible(){return e.selectionLabelVisible},get isPromptMode(){return e.isPromptMode},get inputValue(){return e.inputValue},get status(){return e.selectionLabelStatus},get filePath(){return e.selectionFilePath},get onInputChange(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get selectionLabelShakeCount(){return e.selectionLabelShakeCount},get onConfirmDismiss(){return e.onConfirmDismiss},get discardPrompt(){return e.discardPrompt},get onOpen(){return e.onOpenSelectionFile}})}}),k(je,{get each(){return e.labelInstanceAccessors??[]},children:t=>k(j,{get when(){return t.read()},children:t=>k(Rx,{get tagName(){return t().tagName},get componentName(){return t().componentName},get elementsCount(){return t().elementsCount},get selectionBounds(){return t().bounds},get mouseX(){return t().mouseX},visible:!0,get status(){return t().status},get statusText(){return t().statusText},get isPromptMode(){return t().isPromptMode},get inputValue(){return t().inputValue},get error(){return t().errorMessage},get hideArrow(){return t().hideArrow},get onShowContextMenu(){let n=t();if(!(!(n.status===`copied`||n.status===`fading`)||!X(n.element)))return()=>e.onShowContextMenuInstance?.(n.id)},onRetry:()=>e.onRetryInstance?.(t().id),onAcknowledgeError:()=>e.onAcknowledgeErrorInstance?.(t().id),onHoverChange:n=>e.onLabelInstanceHoverChange?.(t().id,n)})})}),k(j,{get when(){return e.toolbarVisible!==!1},get children(){return k(_S,{get isActive(){return e.isActive},get isContextMenuOpen(){return e.contextMenuPosition!==null},get onToggle(){return e.onToggleActive},get activeActionId(){return e.activeActionId},get defaultActionId(){return e.defaultActionId},get defaultActionLabel(){return e.defaultActionLabel},get enabled(){return e.enabled},get shakeCount(){return e.shakeCount},get onStateChange(){return e.onToolbarStateChange},get onSubscribeToStateChanges(){return e.onSubscribeToToolbarStateChanges},get onSelectHoverChange(){return e.onToolbarSelectHoverChange},get onContainerRef(){return e.onToolbarRef},get onToggleToolbarMenu(){return e.onToggleToolbarMenu}})}}),k(sC,{get position(){return e.contextMenuPosition??null},get selectionBounds(){return e.contextMenuBounds??null},get tagName(){return e.contextMenuTagName},get componentName(){return e.contextMenuComponentName},get hasFilePath(){return e.contextMenuHasFilePath??!1},get actions(){return e.actions},get actionContext(){return e.actionContext},get onDismiss(){return e.onContextMenuDismiss??(()=>{})},get onHide(){return e.onContextMenuHide??(()=>{})}}),k(vC,{get position(){return e.toolbarMenuPosition??null},get actions(){return e.toolbarMenuActions??[]},get defaultActionId(){return e.defaultActionId??`copy`},get onSetDefaultAction(){return e.onSetDefaultAction??(()=>{})},get onDismiss(){return e.onToolbarMenuDismiss??(()=>{})}}),k(wC,{get position(){return e.hierarchyMenuPosition??null},get state(){return e.hierarchyState}})]}));W(),R(),ja(),za(),ro(),cf(),Uh(),Np(),xp(),na(),ea(),Na(),J(),Ga(),Ha(),Tg(),_g(),e_(),$_(),Ov(),hy(),Og(),by(),Dy(),Jn(),Om(),Wi();let kC=[n_,r_,i_],AC={status:`cancelled`},jC=!1,MC=e=>{if(typeof window>`u`)return qf();let t={enabled:!0,activationMode:`toggle`,keyHoldDuration:100,allowActivationInsideInput:!0,...Jg(),...e};if(t.enabled===!1||jC)return qf();jC=!0,$a(t.container??null),Gg(t.telemetry!==!1);let{enabled:n,telemetry:r,container:i,...a}=t;return m(e=>{let t=!1,n=new AbortController,r=null,i,o=new Set,s=Fg(a),{store:c,actions:l,pointer:u,viewportVersion:d,current:f}=_a({keyHoldDuration:s.store.options.keyHoldDuration??100}),p=y(()=>f().state===`holding`),m=y(()=>f().state===`active`),g=y(()=>{let e=f();return e.state===`active`&&e.phase===`frozen`}),_=y(()=>{let e=f();return e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)}),b=y(()=>{if(!_())return!1;let e=Math.abs(u().x+window.scrollX-c.dragStart.x),t=Math.abs(u().y+window.scrollY-c.dragStart.y);return e>2||t>2}),x=y(()=>{let e=f();return e.state===`active`&&e.phase===`dragging-reposition`}),te=y(()=>{let e=f();return e.state===`active`&&e.phase===`justDragged`}),T=y(()=>f().state===`copying`),ne=y(()=>c.selectionInteractionLockDepth>0),E=y(()=>f().state===`justCopied`),D=y(()=>{let e=f();return e.state===`active`&&!!e.isPromptMode}),re=y(()=>c.pendingCommentMode||D()),ie=y(()=>{let e=f();return e.state===`active`&&!!e.isPromptMode&&!!e.isPendingDismiss}),ae=new Map,oe=(e,t)=>{ae.has(e)||ae.set(e,document.body.style[e]),document.body.style[e]=t},se=e=>{let t=ae.get(e);t!==void 0&&(document.body.style[e]=t,ae.delete(e))};v(C(m,(e,t)=>{e&&!t?(Ev(u().x,u().y),oe(`touchAction`,`none`)):!e&&t&&(Dv(),se(`touchAction`))}));let O=Qg(),[ce,le]=h(O?!O.collapsed:!0),[ue,de]=h(0),[fe,pe]=h(0),[me,he]=h(O),[ge,_e]=h(!1),ve=t_(e=>e.shiftKey),[ye,be]=h(null),[xe,Se]=h(null),Ce=y(()=>c.contextMenuPosition!==null),we=y(()=>Ce()||ye()!==null),Te,De=null,Oe=new WeakMap,A=Sy(),ke=()=>!ce()||D()||ne()||Ce()||A.isPendingDismiss(),Ae=()=>{qe(!1),Oe=new WeakMap},je=e=>{let t=me()??Qg(),n={edge:t?.edge??`bottom`,ratio:t?.ratio??.5,collapsed:t?.collapsed??!1,enabled:t?.enabled??!0,defaultAction:t?.defaultAction??`copy`,...e};$g(n),he(n),ky(o,n)},j=()=>{L.timerId!==null&&(clearTimeout(L.timerId),L.timerId=null)},M=()=>{L.copyWaiting=!1,L.holdTimerFired=!1,L.startTimestamp=null};v(()=>{if(f().state!==`holding`){j();return}L.startTimestamp=Date.now(),L.timerId=window.setTimeout(()=>{if(L.timerId=null,L.copyWaiting){L.holdTimerFired=!0;return}l.activate()},c.keyHoldDuration),w(j)}),v(()=>{let e=f();if(e.state!==`active`||e.phase!==`justDragged`)return;let t=setTimeout(()=>{l.finishJustDragged()},ln);w(()=>clearTimeout(t))}),v(()=>{if(f().state!==`justCopied`)return;let e=setTimeout(()=>{l.finishJustCopied()},ln);w(()=>clearTimeout(e))}),v(C(p,(e,t=!1)=>{!t||e||!m()||(s.store.options.activationMode!==`hold`&&l.setWasActivatedByToggle(!0),s.hooks.onActivate())}));let Me=(e,t,n)=>{l.setCopyStart({x:t,y:n},e),l.clearInputText()},Ne=()=>{let e=c.frozenElement||G();e&&l.enterPromptMode({x:u().x,y:u().y},e)},Pe={lastDetectionTimestamp:0,pendingDetectionScheduledAt:0,latestPointerX:0,latestPointerY:0},Fe=null,Ie={x:0,y:0},Le=0,Re=0,[ze,Be]=h(null),[Ve,He]=h(0),N=()=>{Fe!==null&&(clearTimeout(Fe),Fe=null)},P=e=>{Be({x:Ie.x,y:Ie.y}),Le=e},Ue=(e,t)=>{if(!b())return;Ie.x=e,Ie.y=t;let n=performance.now(),r=n-Le,i=Re>=16;if(Le===0||!i&&r>=100){N(),P(n);return}N(),Fe=window.setTimeout(()=>{b()&&P(performance.now()),Fe=null},i?32:Math.min(32,100-r))},We=(e,t,n)=>(N(),tg(e,{x:t,y:n},Mp)),F=()=>{N(),Le=0,Re=0,Be(null),Zt()},I=null,L={timerId:null,startTimestamp:null,copyWaiting:!1,holdTimerFired:!1},Ge=null,[Ke,qe]=h(!1),Je=0,Ye=!1,Xe=null,Ze=()=>{Ye=!0,Xe!==null&&window.clearTimeout(Xe),Xe=window.setTimeout(()=>{Ye=!1,Xe=null},ln)},Qe=()=>{Xe!==null&&(window.clearTimeout(Xe),Xe=null),Ye=!1},R=0,$e=null,et=null,[z,nt]=h(!1),[B,rt]=h(null),[it,at]=h(null),[V,ot]=ef(it),st=y(()=>re()?Rn:z()?B():m()?Ln:null),H=e=>ug(e,Mp),ct=Bg(Mp,H,Y),lt=Ug(u,()=>_(),e=>{if(x()){if(l.shiftDragStart(e),Ge){Ge={x:Ge.x+e.x,y:Ge.y+e.y};return}let{pageX:t,pageY:n}=Wt(u().x,u().y);Ge={x:t,y:n}}}),U=y(()=>m()&&!T()),ut=new Map,dt=(e,t)=>{let n=Ig(`grabbed`),r={id:n,bounds:e,createdAt:Date.now(),element:t};l.addGrabbedBox(r),s.hooks.onGrabbedBox(e,t);let i=window.setTimeout(()=>{ut.delete(n),l.removeGrabbedBox(n)},ln+125);ut.set(n,i)},ft=async e=>{let n=await Promise.all(e.map(async e=>{let t=await Pd(e),n=t?.componentName??null,r=t?.filePath,i=t?.lineNumber??void 0,a=t?.columnNumber??void 0;n||=Fd(e);let o=qn(e)?e.innerText?.slice(0,100):void 0;return{tagName:Ma(e),id:e.id||void 0,className:e.getAttribute(`class`)||void 0,textContent:o,componentName:n??void 0,filePath:r,lineNumber:i,columnNumber:a}}));t||window.dispatchEvent(new CustomEvent(`react-grab:element-selected`,{detail:{elements:n}}))},pt=new Map,mt=Rg(l,()=>c.labelInstances,()=>pt.clear()),ht=e=>{for(let t of e)c.labelInstances.find(e=>e.id===t)?.status===`copying`&&(pt.delete(t),mt.dismissInstance(t))},gt=()=>{n.abort()},_t=()=>(n.signal.aborted&&!t&&(n=new AbortController),n.signal),vt=()=>(gt(),_t()),yt=()=>{gt(),r=null,ht(c.labelInstances.filter(e=>e.status===`copying`).map(e=>e.id))},bt=async(e,t,n)=>{let r,i;try{if(r=await e(n),r.status===`cancelled`)return r;r.status===`failed`&&(i=`Failed to copy`)}catch(e){if(n.aborted)return AC;r={status:`failed`},i=Xf(e,`Action failed`)}if(t)for(let e of t)mt.updateAfterCopy(e,r.status===`succeeded`,i);return r},xt=(e,t,n,r)=>{if(e){for(let e of n)pt.delete(e);return}let i={operation:t,siblingIds:new Set(n),shouldDeactivateAfter:r};for(let e of n)pt.set(e,i)},St=async(e,t,n,r=vt())=>{if(r.aborted)return!1;Qe(),f().state!==`copying`&&l.startCopy();let i=await bt(e,t,r);if(i.status===`cancelled`)return!1;let a=i.status===`succeeded`;return t&&xt(a,e,t,!!n),f().state===`copying`?(a&&l.completeCopy(),n?K():a?(l.activate(),Ze()):(l.activate(),l.unfreeze()),!0):!0},Ct=e=>{let t=pt.get(e);if(!t)return;let n=[...t.siblingIds];for(let e of n)mt.markRetrying(e),pt.delete(e);St(t.operation,n,t.shouldDeactivateAfter).then(e=>{e||ht(n)})},wt=e=>{pt.get(e)?.siblingIds.delete(e),pt.delete(e),mt.dismissInstance(e)},Tt=(e,t,n,r)=>{let i=e[0],a=r??(i?Fd(i):null),o=i?Ma(i):null,c=a??o??void 0;return ap({getContent:s.store.options.getContent,componentName:c,maxContextLines:s.store.options.maxContextLines,signal:t},s.hooks,e,n)},Dt=async(e,t,n,r=_t())=>{if(e.length===0||r.aborted)return AC;let i=[],a=[];for(let t of e){let{wasIntercepted:e,pendingResult:n}=s.hooks.onElementSelect(t);e||i.push(t),n&&a.push(n),s.store.theme.grabbedBoxes.enabled&&dt(Y(t),t)}if(await sf(),r.aborted)return AC;let o;if(i.length>0&&(o=await Tt(i,r,t,n),o.status===`cancelled`))return o;if(a.length>0){let e=await $f(Promise.all(a),r);if(e===Qf)return o?.status===`succeeded`?o:AC;if(!e.every(Boolean))throw new Aa}return r.aborted&&!o?AC:(ft(e).catch(e=>{Z(new ya(`Element selection notification failed`,e))}),o??{status:`succeeded`})},W=e=>{let n=vt(),i={},a=!1;r=i,Dd(e.primaryElement).then(async t=>{if(n.aborted||r!==i){ht(e.labelInstanceIds);return}r=null,a=!0,await St(n=>Dt(e.targetElements,e.extraPrompt,t??void 0,n),e.labelInstanceIds.length>0?e.labelInstanceIds:null,e.shouldDeactivateAfter,n)?e.onComplete?.():ht(e.labelInstanceIds)}).catch(o=>{if(n.aborted){ht(e.labelInstanceIds);return}if(t||!a&&r!==i)return;Z(new ya(`Copy operation failed`,o));let s=Xf(o,`Action failed`);for(let t of e.labelInstanceIds)mt.updateAfterCopy(t,!1,s);e.labelInstanceIds.length>0&&xt(!1,t=>Dd(e.primaryElement).then(n=>t.aborted?AC:Dt(e.targetElements,e.extraPrompt,n??void 0,t)),e.labelInstanceIds,!!e.shouldDeactivateAfter),f().state===`copying`&&(e.shouldDeactivateAfter?K():(l.activate(),l.unfreeze()))}).finally(()=>{r===i&&(r=null)})},kt=e=>{let{element:t,cursorX:n,selectedElements:r,extraPrompt:i,shouldDeactivateAfter:a,onComplete:o,dragRect:s}=e,u=r??[t],d=s??c.frozenDragRect,f=u.length>1,p=!f&&t===Lt()?Ut():void 0,m=d&&f?ig(d):p??Y(t),h=f?m.x+m.width/2:n,g=Ma(t);Qe(),l.startCopy();let _=g?mt.createInstance(m,g,void 0,`copying`,{element:t,mouseX:h,elements:r}):null;W({primaryElement:t,targetElements:u,labelInstanceIds:_?[_]:[],extraPrompt:i,shouldDeactivateAfter:a,onComplete:o})},At=e=>{let{elements:t,labelEntries:n,shouldDeactivateAfter:r,onComplete:i}=e,a=t[0];Qe(),l.startCopy(),W({primaryElement:a,targetElements:t,labelInstanceIds:mt.createPerElementInstances(n,`copying`),shouldDeactivateAfter:r,onComplete:i})},G=y(()=>{if(d(),!U()||b()||ne()||A.isPendingDismiss())return null;let e=c.detectedElement;return X(e)?e:null}),jt=y(()=>c.frozenElement||(g()?null:G())),Mt=y(()=>!m()||D()||Ke()||T()||we()||A.isPendingDismiss()?null:ve()?g()?jt():G()??c.frozenElement:A.selectedElement()),Nt=y(()=>{let e=Mt();return e?sg(e,Mp,H):[]}),Pt=y(()=>{let e=Mt();return e?Math.max(0,Nt().findIndex(t=>t.element===e)):0}),Ft=y(()=>Mt()!==null);v(()=>{if(!c.detectedElement)return;let e=1,t=setInterval(()=>{if(X(c.detectedElement)||l.relinkLiveElements(),!X(c.detectedElement)){if(e>0){--e;return}dr()}},100);w(()=>clearInterval(t))}),v(C(jt,e=>{if($e!==null&&(clearTimeout($e),$e=null),!e){at(null);return}$e=window.setTimeout(()=>{$e=null,at(e)},100)})),w(()=>{$e!==null&&(clearTimeout($e),$e=null)}),v(()=>{let e=c.frozenElements;w(G_(e))}),v(C(m,e=>{e&&s.store.options.freezeReactUpdates&&w(my())}));let It=()=>{if(c.isTouchMode&&_()){let e=c.detectedElement;return!X(e)||bp(e)?void 0:e}let e=jt();if(!(!e||bp(e)))return e},Lt=y(()=>It()),Rt=()=>Lt()?c.isTouchMode&&_()?U():U()&&!b():!1,zt=Ee(()=>c.frozenElements,e=>y(()=>(d(),Y(e)))),Bt=y(()=>{let e=c.frozenElements;if(e.length===0)return[];let t=c.frozenDragRect;return t&&e.length>1?[ig(t)]:zt().map(e=>e())}),Vt=y(()=>{if(!Ke()||c.pendingCommentMode||z())return null;let e=c.detectedElement;return!X(e)||bp(e)||c.frozenElements.includes(e)?null:e}),Ht=y(()=>{d();let e=Vt();if(e)return Y(e)}),Ut=y(()=>{d();let e=c.frozenElements;if(e.length>0){let t=Bt();if(e.length===1){let e=t[0];if(e)return e}let n=c.frozenDragRect;return n?t[0]??ig(n):og(jg(t))}let t=Lt();if(t)return Y(t)}),Wt=(e,t)=>({pageX:e+window.scrollX,pageY:t+window.scrollY}),Gt=(e,t)=>{let{pageX:n,pageY:r}=Wt(e,t);return{x:Math.abs(n-c.dragStart.x),y:Math.abs(r-c.dragStart.y)}},Kt=(e,t)=>{let{pageX:n,pageY:r}=Wt(e,t),i=Math.min(c.dragStart.x,n),a=Math.min(c.dragStart.y,r),o=Math.abs(n-c.dragStart.x),s=Math.abs(r-c.dragStart.y);return{x:i-window.scrollX,y:a-window.scrollY,width:o,height:s}},qt=e=>e.code===`Space`||e.key===` `,Jt=()=>{if(!_())return;l.startDragReposition();let{pageX:e,pageY:t}=Wt(u().x,u().y);Ge={x:e,y:t}},Yt=()=>{l.stopDragReposition(),Ge=null},Xt=y(()=>{if(d(),b())return og(Kt(u().x,u().y))}),Zt=y(()=>{if(Ve(),!b())return[];let e=ze();if(!e)return[];let t=Kt(e.x,e.y),n=performance.now(),r=tg(t,e,Mp);return Re=performance.now()-n,r}),Qt=y(()=>(d(),Zt().map(e=>Y(e)))),$t=y(()=>{let e=Qt();if(e.length>0)return e;let t=Ht();return t?[...Bt(),t]:Bt()}),en=Ee(()=>c.frozenElements,e=>{let t=Ma(e)||`element`,n=Fd(e)??void 0;return{read:y(()=>{if(d(),!X(e))return null;let r=Y(e),i=Oe.get(e);return{tagName:t,componentName:n,bounds:r,mouseX:i===void 0?void 0:r.x+r.width*i}})}}),tn=y(()=>{if(D()||c.frozenElements.length<2)return[];let e=[];for(let t of en())t.read()!==null&&e.push(t);return e}),nn=y(()=>{if(D())return null;let e=Vt();return e?(d(),{tagName:Ma(e)||`element`,componentName:Fd(e)??void 0,bounds:Y(e),mouseX:u().x}):null}),rn=y(()=>{if(T()||D()){d();let e=c.frozenElement||G();return e?{x:ta(Y(e)).x+c.copyOffsetFromCenterX,y:c.copyStart.y}:{x:c.copyStart.x,y:c.copyStart.y}}return{x:u().x,y:u().y}}),an=y(()=>{if(!Ke()||c.frozenElements.length!==1)return;d();let e=c.frozenElements[0];if(!X(e))return;let t=Oe.get(e);if(t===void 0)return;let n=Y(e);return n.x+n.width*t});v(C(()=>[G(),c.lastGrabbedElement],([e,t])=>{t&&e&&t!==e&&l.setLastGrabbed(null),e&&s.hooks.onElementHover(e)})),v(C(()=>G(),e=>{let t=++R,n=()=>{R===t&&l.setSelectionSource(null,null)};if(!e){n();return}Pd(e).then(e=>{if(R===t){if(!e){n();return}l.setSelectionSource(e.filePath,e.lineNumber)}}).catch(()=>{R===t&&l.setSelectionSource(null,null)})}));let on=y(()=>c.grabbedBoxes.map(e=>({id:e.id,bounds:e.bounds,createdAt:e.createdAt}))),sn=y(()=>c.labelInstances.map(e=>({id:e.id,status:e.status,tagName:e.tagName,componentName:e.componentName,createdAt:e.createdAt})));v(C(y(()=>{let e=m(),t=_(),n=T(),r=D(),i=G(),a=Xt(),o=s.store.theme.enabled,l=s.store.theme.selectionBox.enabled,u=s.store.theme.dragBox.enabled,d=b(),f=jt(),p=E();return{isActive:e,isDragging:t,isCopying:n,isPromptMode:r,isSelectionBoxVisible:!!(o&&l&&e&&!n&&!p&&!t&&f!=null),isDragBoxVisible:!!(o&&u&&e&&!n&&d),targetElement:i,dragBounds:a?{x:a.x,y:a.y,width:a.width,height:a.height}:null,grabbedBoxes:[...on()],labelInstances:[...sn()],selectionFilePath:c.selectionFilePath,toolbarState:me()}}),e=>{s.hooks.onStateChange(e)})),v(C(()=>{let e=D();return{inputMode:e,position:e?u():S(u),target:e?G():S(G)}},({inputMode:e,position:t,target:n})=>{s.hooks.onPromptModeChange(e,{x:t.x,y:t.y,targetElement:n})})),v(C(()=>[kr(),Ut(),G()],([e,t,n])=>{s.hooks.onSelectionBox(!!e,t??null,n)})),v(C(()=>[zr(),Xt()],([e,t])=>{s.hooks.onDragBox(!!e,t??null)})),v(C(()=>{let e=Vr();return[e,Br(),e?rn():S(rn),e?G():S(G),c.selectionFilePath,c.selectionLineNumber]},([e,t,n,r,i,a])=>{s.hooks.onElementLabel(e,t,{x:n.x,y:n.y,content:``,element:r??void 0,tagName:r&&Ma(r)||void 0,filePath:i??void 0,lineNumber:a??void 0})}));let cn=null,un=e=>{if(e){if(!cn){cn=document.createElement(`style`),cn.setAttribute(`data-react-grab-cursor`,``);let e=Va();e&&(cn.nonce=e),Wa(cn),document.head.appendChild(cn)}cn.textContent=`* { cursor: ${e} !important; }`}else cn&&=(cn.remove(),null)};v(C(()=>[m(),T(),D()],([e,t,n])=>{un(t?`progress`:e&&!n?`crosshair`:null)}));let dn=()=>{let e=p();l.activate(),e||s.hooks.onActivate()},K=()=>{yt();let e=_(),t=c.previouslyFocusedElement;Yt(),l.deactivate(),ti(),Ae(),Kn(),A.clear(),nt(!1),rt(null),e&&(se(`userSelect`),F()),I&&window.clearTimeout(I),lt.stop(),qn(t)&&t!==document.body&&t!==document.activeElement&&X(t)&&t.focus({preventScroll:!0}),s.hooks.onDeactivate()},fn=()=>{p()&&l.releaseHold(),m()||T()?K():yt(),Qe()},pn=()=>{l.setWasActivatedByToggle(!0),dn()},mn=()=>{let e=[...c.frozenElements],t=c.frozenElement||G(),n=D()?c.inputText.trim():``;if(!t){K();return}let r=e.length>0?e:[t],i=r.map(e=>Y(e))[0],{x:a,y:o}=ta(i),s=a+c.copyOffsetFromCenterX;l.setPointer({x:a,y:o}),l.exitPromptMode(),l.clearInputText(),kt({element:t,cursorX:s,selectedElements:r,extraPrompt:n||void 0,shouldDeactivateAfter:!0})},hn=()=>{if(D()){if(ie()){l.clearInputText(),K();return}l.setPendingDismiss(!0),pe(e=>e+1)}},gn=()=>{if(A.isPendingDismiss()){Xn();return}l.clearInputText(),K()},_n=()=>{l.setPendingDismiss(!1)},vn=()=>{et=null,nt(!1),l.setPendingCommentMode(!1),rt(null)},yn=e=>{et=e,rt(e),nt(!0)},bn=e=>{let t=c.frozenElement||G();if(!t)return!1;let n={x:u().x,y:u().y},r=s.store.actions.find(t=>t.id===e);return r?(l.clearInputText(),l.exitPromptMode(),vn(),Ey(r,nr(t,n))||Tn(t,n),!0):(l.clearInputText(),l.exitPromptMode(),vn(),Tn(t,n),!0)},xn=e=>{if(T()){K();return}if(m()){if(st()!==e){if(D()){if(bn(e))return;K();return}l.setPendingCommentMode(!1),yn(e);return}K();return}ce()&&(yn(e),pn())},Sn=()=>{xn(me()?.defaultAction??`copy`)},Cn=()=>{let e=me()?.defaultAction??`copy`;return s.store.actions.find(t=>t.id===e)?.label??`Copy`},wn=(e,t,n)=>{vn(),l.clearInputText(),l.enterPromptMode({x:t,y:n},e)},Tn=(e,t)=>{Ae(),ni(),l.showContextMenu(t,e),Kn(),s.hooks.onContextMenu(e,t)},En=(e,t)=>{let n=et;if(et=null,rt(null),!n)return;let r=s.store.actions.find(e=>e.id===n);if(!r){Tn(e,t);return}Ey(r,nr(e,t))||Tn(e,t)},Dn=()=>{if(ce()){if(m()&&re()){K();return}l.setPendingCommentMode(!0),m()||pn()}},On=(e,t,n)=>{let r=n&&Ke()&&!_()&&!c.pendingCommentMode&&!z();if(ke()||g()&&!r)return;if(l.setPointer({x:e,y:t}),Pe.latestPointerX=e,Pe.latestPointerY=t,r){let n=Vh(e,t);n!==c.detectedElement&&l.setDetectedElement(n);return}let i=performance.now(),a=Pe.pendingDetectionScheduledAt>0&&i-Pe.pendingDetectionScheduledAt<200;if(!b()&&!a){Pe.pendingDetectionScheduledAt=i;let e=Math.max(0,32-(i-Pe.lastDetectionTimestamp));setTimeout(()=>{if(ke()||g()||b()){Pe.pendingDetectionScheduledAt=0;return}c.detectedElement&&!X(c.detectedElement)&&(l.relinkLiveElements(),Hh()),Pe.lastDetectionTimestamp=performance.now();let e=Vh(Pe.latestPointerX,Pe.latestPointerY);e!==c.detectedElement&&l.setDetectedElement(e),Pe.pendingDetectionScheduledAt=0},e)}if(_()){if(x()){let{pageX:n,pageY:r}=Wt(e,t);Ge&&l.shiftDragStart({x:n-Ge.x,y:r-Ge.y}),Ge={x:n,y:r}}Ue(e,t);let n=Hg(e,t),r=n.top||n.bottom||n.left||n.right;r&&!lt.isActive()?lt.start():!r&<.isActive()&<.stop()}},jn=(e,t,n)=>{if(!U()||ne())return!1;!n&&Ke()&&Ae();let r=A.selectedElement()!==null;return l.startDrag({x:e,y:t},n||r),l.setPointer({x:e,y:t}),oe(`userSelect`,`none`),s.hooks.onDragStart(e+window.scrollX,t+window.scrollY),!0},Mn=(e,t)=>{let n=c.frozenElements.includes(e),r=c.frozenElements.length===0;if(!n){let n=ng(Y(e),t);Oe.set(e,n),r&&ot(Fd(e)??void 0)}l.toggleFrozenElement(e),Hh();let i=c.frozenElements.includes(e);if(i||Oe.delete(e),c.frozenElements.length===0){Ae(),l.unfreeze();return}U_(c.frozenElements),qe(!0),l.setPointer(t),l.setLastGrabbed(i?e:c.frozenElements[c.frozenElements.length-1]),l.freeze(),Kn()},Nn=()=>{let e=c.frozenElements.filter(X),t=e.map(e=>{let t=Ma(e)||`element`,n=Fd(e)??void 0,r=Oe.get(e),i=Y(e);return{element:e,tagName:t,componentName:n,mouseX:r===void 0?i.x+i.width/2:i.x+i.width*r}});if(Ae(),e.length===0){l.unfreeze();return}if(e.length===1){kt({element:e[0],cursorX:t[0].mouseX,selectedElements:e,shouldDeactivateAfter:c.wasActivatedByToggle});return}At({elements:e,labelEntries:t,shouldDeactivateAfter:c.wasActivatedByToggle})},Fn=(e,t,n,r)=>{if(t.length===0)return;let i=r&&!c.pendingCommentMode&&!z();if(i&&l.addFrozenElements(t),U_(i?c.frozenElements:t),s.hooks.onDragEnd(t,e),i){let e=t[t.length-1];qe(!0),Hh(),l.setPointer(ta(Y(e))),l.setLastGrabbed(e),l.freeze(),Kn();return}let a=t[0],o=ta(Y(a));l.setPointer(o),l.setFrozenElements(t);let u=ag(e);if(l.setFrozenDragRect(u),l.freeze(),l.setLastGrabbed(a),c.pendingCommentMode){wn(a,o.x,o.y);return}if(z()){nt(!1),et?En(a,o):Tn(a,o);return}let d=c.wasActivatedByToggle&&!n;kt({element:a,cursorX:o.x,selectedElements:t,shouldDeactivateAfter:d,dragRect:u})},In=e=>{for(let t of c.frozenElements)if(X(t)&&Xg(e,Y(t)))return t;return null},zn=(e,t,n,r)=>{let i=X(c.frozenElement)?c.frozenElement:null,a=A.selectedElement(),o=()=>Bh(e,t).find(Mp)??null;if(r&&!c.pendingCommentMode&&!z()){let n=o();n!==null&&Mn(n,{x:e,y:t});return}let d=o()??(X(c.detectedElement)?c.detectedElement:null),f=a??d??i;if(!f)return;let p,m,h=d===null&&i===f,g=a===f;if(h)p=u().x,m=u().y;else if(g){let e=ta(Y(f));p=e.x,m=e.y}else p=e,m=t;if(c.pendingCommentMode){wn(f,p,m),A.clear();return}if(z()){nt(!1);let{wasIntercepted:e}=s.hooks.onElementSelect(f);if(e)return;A.clear(),U_([f]),l.setFrozenElement(f);let t={x:p,y:m};l.setPointer(t),l.freeze(),et?En(f,t):Tn(f,t);return}let _=c.wasActivatedByToggle&&!n;l.setLastGrabbed(f),kt({element:f,cursorX:p,shouldDeactivateAfter:_}),A.clear()},Vn=()=>{_()&&(Yt(),F(),l.cancelDrag(),lt.stop(),se(`userSelect`),dr())},Hn=(e,t,n,r)=>{if(!_())return;let i=Gt(e,t),a=i.x>2||i.y>2,o=a?Kt(e,t):null,s=o?We(o,e,t):[];F(),a?l.endDrag():l.cancelDrag(),Yt(),lt.stop(),se(`userSelect`),o?Fn(o,s,n,r):zn(e,t,n,r)},q=Jf(),Wn=Iy({shouldForwardInteraction:()=>m()||p()||_()||ne(),shouldForwardKeyboardEvent:e=>Cg(e,s.store.options),shouldForwardViewportEvent:e=>{let t=c.frozenElement??G();return t&&Ly(e,t)?!0:c.frozenElements.some(t=>Ly(e,t))}}),J=Vg(),Gn=e=>{let t;try{t=J.originalKeyDescriptor?.get?J.originalKeyDescriptor.get.call(e):e.key}catch{return!1}let n=t===`Enter`||Yg(e.code),r=m()||p();return n&&r&&!D()&&!A.isPendingDismiss()&&!c.wasActivatedByToggle?wg(e,`data-react-grab-input`)?!1:(J.claimedEvents.add(e),e.preventDefault(),e.stopImmediatePropagation(),!0):!1};q.addDocumentListener(`keydown`,no(Gn),{capture:!0}),q.addDocumentListener(`keyup`,no(Gn),{capture:!0}),q.addDocumentListener(`keypress`,no(Gn),{capture:!0});let Kn=()=>{ct.clearHistory(),A.clear()},Jn=(e,t=!1)=>{l.setFrozenElement(e),l.freeze(),A.select(e,{shouldPromptBeforeMouseHandoff:t});let n=ta(Y(e));l.setPointer(n),c.contextMenuPosition!==null&&l.showContextMenu(n,e)},Yn=()=>{A.showDismissPrompt()&&pe(e=>e+1)},Xn=()=>{A.clear(),l.unfreeze(),Kn()},Zn=()=>{let e=A.takeSelection(c.frozenElement);if(!e){Xn();return}let t=ta(Y(e));Kn(),l.setLastGrabbed(e),kt({element:e,cursorX:t.x,shouldDeactivateAfter:c.wasActivatedByToggle})},Qn=e=>An.has(e.key)?e.key:e.key===`Tab`?e.shiftKey?`ArrowLeft`:`ArrowRight`:null,$n=(e,t={})=>{if(!m()||D()||Ke()||A.isPendingDismiss()&&!t.allowPendingKeyboardSelection)return!1;let n=Qn(e);if(!n||we())return!1;let r=jt(),i=!r;if(!r){let e=eo()?.getBoundingClientRect();r=e?Vh(e.left+e.width/2,e.top+e.height/2):Vh(window.innerWidth/2,window.innerHeight/2)}if(!r)return!1;let a=n===`ArrowUp`||n===`ArrowDown`,o=ct.findNext(n,r);if(!o&&!a&&!i)return!1;let s=o??r;return e.preventDefault(),e.stopPropagation(),Jn(s,!0),!0},er=e=>e.metaKey||e.ctrlKey||e.altKey||e.repeat||Ia(e)||!m()||T()||ne()||we()?null:c.frozenElement||G(),tr=e=>{let t=er(e);if(!t)return null;let n=yy(s.store.actions,e);return n?{element:t,action:n}:null},nr=(e,t)=>{let n=Y(e);return Xr({element:e,filePath:c.selectionFilePath??void 0,lineNumber:c.selectionLineNumber??void 0,tagName:Ma(e)||void 0,componentName:V(),position:t,shouldDeferHideContextMenu:!1,performWithFeedbackOptions:{fallbackBounds:n,fallbackSelectionBounds:[n],position:t}})},rr=e=>{let t=tr(e);if(!t)return!1;let{element:n,action:r}=t;return D()?bn(r.id)?(e.preventDefault(),e.stopImmediatePropagation(),!0):!1:Ey(r,nr(n,{x:u().x,y:u().y}))?(e.preventDefault(),e.stopImmediatePropagation(),!0):!1},ir=()=>{let e=c.selectionFilePath,t=c.selectionLineNumber;e&&Ag(e,t??void 0,s.hooks)},ar=e=>e.key?.toLowerCase()!==`o`||!m()||!(e.metaKey||e.ctrlKey)||!c.selectionFilePath?!1:(e.preventDefault(),e.stopPropagation(),ir(),!0),or=e=>{if(!m()||T()||c.contextMenuPosition!==null)return!1;let t=e.key===`F10`&&e.shiftKey,n=e.key===`ContextMenu`;if(!t&&!n)return!1;let r=c.frozenElements,i=r.length>1,a=(i?r[0]:null)||c.frozenElement||G();if(!a)return!1;e.preventDefault(),e.stopPropagation();let o=ta(Y(a));return i?U_(r):(U_([a]),l.setFrozenElement(a)),l.setPointer(o),l.freeze(),Tn(a,o),!0},sr=y(()=>Nt().map(e=>({tagName:Ma(e.element)||`element`,componentName:Fd(e.element)??void 0,depth:e.depth,isLast:e.isLast}))),cr=y(()=>({items:sr(),activeIndex:Pt()})),lr=e=>{if(!(!s.store.options.allowActivationInsideInput&&Ia(e))&&!(!Cg(e,s.store.options)&&((e.metaKey||e.ctrlKey)&&!kn.includes(e.key)&&!Yg(e.code)&&(m()&&!c.wasActivatedByToggle?K():p()&&(j(),M(),l.releaseHold())),!Yg(e.code)||!p()))){if((m()||p())&&!D()&&(e.preventDefault(),Yg(e.code)&&e.stopImmediatePropagation()),m()){if(c.wasActivatedByToggle&&s.store.options.activationMode!==`hold`||e.repeat)return;I!==null&&window.clearTimeout(I),I=window.setTimeout(()=>{K()},200);return}if(p()&&e.repeat){if(L.copyWaiting){let e=L.holdTimerFired;M(),e&&l.activate()}return}if(!(T()||E())&&!p()){let t=s.store.options.keyHoldDuration??100;Ia(e)?La(e)?t+=600:t+=400:Ra()&&(t+=600),M(),l.startHold(t)}}},ur=e=>{if(!A.isPendingDismiss())return!1;if(Yg(e.code))return!0;let t=An.has(e.key),n=tr(e)!==null;return!t&&!n?!1:t?$n(e,{allowPendingKeyboardSelection:!0}):rr(e)?(Kn(),!0):!1};q.addWindowListener(`keydown`,no(e=>{if(Qn(e)&&Ia(e)||ur(e))return;if(Gn(e),!ce()){Cg(e,s.store.options)&&!e.repeat&&de(e=>e+1);return}let t=Yg(e.code)&&p()&&!D(),n=wg(e,Pn);if(D()&&Cg(e,s.store.options)&&!e.repeat&&!n){e.preventDefault(),e.stopPropagation(),hn();return}if(e.key===`Escape`&&T()){K();return}if(e.key===`Escape`&&we()){ye()!==null&&ti();return}let r=wg(e,`data-react-grab-ignore-events`)&&!t;if(D()||r)return D()&&!n&&rr(e)||(e.key===`Escape`&&(D()?hn():c.wasActivatedByToggle&&K()),r&&An.has(e.key)&&$n(e)),void 0;if(_()&&qt(e)){e.repeat||Jt(),e.preventDefault(),e.stopPropagation();return}if(e.key===`Escape`&&(p()||c.wasActivatedByToggle)){K();return}m()&&!kn.includes(e.key)&&e.preventDefault();let i=Date.now()-Je<200;$n(e)||ar(e)||or(e)||rr(e)||i||lr(e)}),{capture:!0}),q.addWindowListener(`keyup`,no(e=>{if(Gn(e))return;if(qt(e)&&x()&&(Yt(),e.preventDefault(),e.stopPropagation()),e.key===`Shift`&&Ke()){_()&&Vn(),Nn();return}if(wg(e,`data-react-grab-ignore-events`))return;let t=Sg(s.store.options.activationKey),n=t.metaKey||t.ctrlKey?gg()?!e.metaKey:!e.ctrlKey:t.shiftKey&&!e.shiftKey||t.altKey&&!e.altKey,r=s.store.options.activationKey?xg(s.store.options.activationKey)(e):pg(e.key,e.code);if(E()||Ye){(r||n)&&(Qe(),K());return}if(!p()&&!m()||D())return;let i=!!s.store.options.activationKey,a=s.store.options.activationMode===`hold`,o=_();if(m()){let e=Ce();if(n){if(c.wasActivatedByToggle&&s.store.options.activationMode!==`hold`||e)return;K()}else if(a&&r){if(I!==null&&(window.clearTimeout(I),I=null),e||o)return;K()}else !i&&r&&I!==null&&(window.clearTimeout(I),I=null);return}if(r||n){if(c.wasActivatedByToggle&&s.store.options.activationMode!==`hold`)return;if(p()||L.holdTimerFired&&n){j();let t=(L.startTimestamp?Date.now()-L.startTimestamp:0)>=200,n=L.holdTimerFired&&t&&(s.store.options.allowActivationInsideInput||!Ia(e));M(),n?l.activate():l.releaseHold()}else K()}}),{capture:!0}),q.addDocumentListener(`copy`,()=>{p()&&(L.copyWaiting=!0)}),q.addWindowListener(`keypress`,no(Gn),{capture:!0}),q.addWindowListener(`pointermove`,no(e=>{if(!e.isPrimary)return;let t=e.pointerType===`touch`;if(l.setTouchMode(t),!wg(e,`data-react-grab-ignore-events`)&&!ke()&&!(t&&!p()&&!m())){if((t?p():m())&&!D()&&g()&&!e.shiftKey&&!Ke()){if(A.consumeMouseHandoff()){Yn();return}l.unfreeze(),Kn()}On(e.clientX,e.clientY,e.shiftKey)}}),{passive:!0,capture:!0}),q.addWindowListener(`pointerdown`,no(e=>{if(e.button===0&&e.isPrimary&&(l.setTouchMode(e.pointerType===`touch`),!(!_()&&wg(e,`data-react-grab-ignore-events`))&&!Ce())){if(D()){let t=Ut();t&&e.clientX>=t.x&&e.clientX<=t.x+t.width&&e.clientY>=t.y&&e.clientY<=t.y+t.height?mn():hn();return}if(A.isPendingDismiss()){e.preventDefault(),e.stopImmediatePropagation();return}if(ne()){e.preventDefault(),e.stopImmediatePropagation();return}if(jn(e.clientX,e.clientY,e.shiftKey)){if(e.pointerId!==void 0)try{document.documentElement.setPointerCapture(e.pointerId)}catch{}e.preventDefault(),e.stopImmediatePropagation()}}}),{capture:!0}),q.addWindowListener(`pointerup`,no(e=>{if(e.button!==0||!e.isPrimary||wg(e,`data-react-grab-ignore-events`)||Ce())return;let t=U()||ne()||_(),n=e.metaKey||e.ctrlKey;Hn(e.clientX,e.clientY,n,e.shiftKey),t&&(e.preventDefault(),e.stopImmediatePropagation())}),{capture:!0}),q.addWindowListener(`contextmenu`,no(e=>{if(!U()||T()||D())return;let t=wg(e,`data-react-grab-ignore-events`),n={x:e.clientX,y:e.clientY},r=t&&c.frozenElements.length>1?In(n):null,i=A.isPendingDismiss();if(t&&!r&&!i&&!Ft())return;if(Ce()){e.preventDefault();return}e.preventDefault(),e.stopPropagation();let a=r??Vh(e.clientX,e.clientY);if(!a)return;let o=c.frozenElements;o.length>1&&o.includes(a)?U_(o):(U_([a]),l.setFrozenElement(a)),l.setPointer(n),l.freeze(),Tn(a,n)}),{capture:!0}),q.addWindowListener(`pointercancel`,no(e=>{e.isPrimary&&Vn()}),{capture:!0}),q.addWindowListener(`click`,no(e=>{wg(e,`data-react-grab-ignore-events`)||Ce()||(U()||te())&&(e.preventDefault(),e.stopImmediatePropagation(),c.wasActivatedByToggle&&!D()&&!e.shiftKey&&(p()?l.setWasActivatedByToggle(!1):K()))}),{capture:!0}),q.addDocumentListener(`visibilitychange`,()=>{if(document.hidden){l.clearGrabbedBoxes();let e=c.activationTimestamp;m()&&!D()&&e!==null&&Date.now()-e>500&&K()}}),q.addWindowListener(`blur`,()=>{Vn(),p()&&(j(),l.releaseHold(),M()),Ae()}),q.addWindowListener(`focus`,()=>{Je=Date.now()}),q.addWindowListener(`focusin`,e=>{wg(e,io)&&e.stopPropagation()},{capture:!0});let dr=()=>{if(!(c.isTouchMode&&!p()&&!m())&&!ke()&&!g()&&!_()&&c.frozenElements.length===0){let e=Vh(u().x,u().y);l.setDetectedElement(e)}},fr=null,pr=null,mr=()=>{rg(),dr(),He(e=>e+1),l.incrementViewportVersion(),l.updateContextMenuPosition()},hr=()=>{jp(),mr()};q.addWindowListener(`scroll`,mr,{capture:!0});let gr=window.innerWidth,_r=window.innerHeight;q.addWindowListener(`resize`,()=>{let e=window.innerWidth,t=window.innerHeight;if(gr>0&&_r>0){let n=e/gr,r=t/_r,i=Math.abs(n-r)<Bn,a=Math.abs(n-1)>Bn;i&&a&&l.setPointer({x:u().x*n,y:u().y*r})}gr=e,_r=t,hr()});let vr=window.visualViewport;if(vr){let{signal:e}=q;vr.addEventListener(`resize`,hr,{signal:e}),vr.addEventListener(`scroll`,mr,{signal:e})}let yr=()=>{pr===null&&(pr=af(()=>{pr=null,l.incrementViewportVersion()}))};v(()=>{if(s.store.theme.enabled&&(m()||T()||c.labelInstances.length>0||c.grabbedBoxes.length>0)){if(fr!==null)return;fr=window.setInterval(()=>{l.relinkLiveElements(),yr()},100);return}fr!==null&&(window.clearInterval(fr),fr=null),pr!==null&&(of(pr),pr=null)}),w(()=>{fr!==null&&window.clearInterval(fr),pr!==null&&of(pr)}),q.addDocumentListener(`copy`,no(e=>{D()||wg(e,`data-react-grab-ignore-events`)||U()&&e.preventDefault()}),{capture:!0}),w(()=>{let e=[];Q(Wn,e),Q(()=>q.abort(),e),N(),I&&window.clearTimeout(I),Q(Qe,e),De&&Q(De,e),De=null,ut.forEach(e=>window.clearTimeout(e)),ut.clear(),Q(mt.cancelAllFades,e),pt.clear(),Q(lt.stop,e),Q(Dv,e),Q(()=>se(`userSelect`),e),Q(()=>se(`touchAction`),e),Q(()=>un(null),e),Q(J.restore,e),Q(()=>$a(null),e),Dm(e,`Disposing React Grab failed`)});let{root:br,host:xr,cancelPendingAttachment:Sr}=co(Ot);w(Sr),w(Gf(xr).cleanup);let Cr=y(()=>s.store.theme.enabled),wr=y(()=>s.store.theme.selectionBox.enabled),Tr=y(()=>s.store.theme.elementLabel.enabled),Er=y(()=>s.store.theme.dragBox.enabled),Dr=y(()=>E()||ge()&&!g()),Or=y(()=>Qt().length>0),kr=y(()=>!Cr()||!wr()||Dr()?!1:Or()?!0:Rt()),Ar=y(()=>{let e=Lt();if(e)return Ma(e)||void 0}),jr=y(()=>!Cr()||Ce()||!Tr()||Dr()?!1:Rt()),Mr=new Map,Nr=e=>{let t=e.elements?.filter(X)??[],n=e.element,r=null;t.length>0?r=t.map(Y):n&&X(n)&&(r=[Y(n)]);let i=e.bounds,a=e.boundsMultiple;r&&(i=r.length>1?og(jg(r)):r[0],e.boundsMultiple!==void 0&&(a=e.boundsMultiple.length>1&&e.boundsMultiple.length===e.elements?.length?r:[i]));let o=Mr.get(e.id),s=o?.boundsMultiple,c=s===a||s!==void 0&&a!==void 0&&s.length===a.length&&s.every((e,t)=>e.x===a[t].x&&e.y===a[t].y&&e.width===a[t].width&&e.height===a[t].height);if(o&&o.status===e.status&&o.errorMessage===e.errorMessage&&o.bounds.x===i.x&&o.bounds.y===i.y&&o.bounds.width===i.width&&o.bounds.height===i.height&&c)return o;let l=i.x+i.width/2,u=i.width/2,d;d=e.mouseXOffsetRatio!==void 0&&u>0?l+e.mouseXOffsetRatio*u:e.mouseXOffsetFromCenter===void 0?e.mouseX??l:l+e.mouseXOffsetFromCenter;let f={...e,bounds:i,boundsMultiple:a,mouseX:d};return Mr.set(e.id,f),f},Pr=y(()=>{if(!Cr()||!s.store.theme.grabbedBoxes.enabled)return[];d();let e=new Set(c.labelInstances.map(e=>e.id));for(let t of Mr.keys())e.has(t)||Mr.delete(t);return c.labelInstances.map(Nr)}),Fr=y(()=>new Map(Pr().map(e=>[e.id,e]))),Ir=new Map,Lr=y(()=>{let e=Pr(),t=new Set(e.map(e=>e.id));for(let e of Ir.keys())t.has(e)||Ir.delete(e);return e.map(e=>{let t=Ir.get(e.id);if(t)return t;let n=e.id,r={read:()=>Fr().get(n)??null};return Ir.set(n,r),r})}),Rr=y(()=>!Cr()||!s.store.theme.grabbedBoxes.enabled?[]:(d(),c.grabbedBoxes.map(e=>X(e.element)?{...e,bounds:Y(e.element)}:e))),zr=y(()=>Cr()&&Er()&&U()&&b()),Br=y(()=>T()?`processing`:`hover`),Vr=y(()=>{if(!Cr())return!1;let e=Tr(),t=D(),n=T(),r=U(),i=_(),a=!!jt(),o=ge(),s=g();return!e||t||o&&!s?!1:n?!0:r&&!i&&a}),Hr=y(()=>{d();let e=c.contextMenuElement;return e?Y(e):null}),Ur=y(()=>(d(),c.contextMenuPosition)),Wr=y(()=>{let e=c.contextMenuElement;if(!e)return;let t=c.frozenElements.length;return t>1?`${t} elements`:Ma(e)||void 0}),[Gr]=ef(()=>c.frozenElements.length>1?null:c.contextMenuElement),[Kr]=ee(()=>c.contextMenuElement,async e=>e?Pd(e):null),qr=async e=>{l.incrementSelectionInteractionLockDepth();try{return await e()}finally{l.decrementSelectionInteractionLockDepth()}},Jr=(e,t,n,r,i)=>async a=>{await qr(async()=>{let o=i?.fallbackBounds??null,s=i?.fallbackSelectionBounds??[],d=i?.position??c.contextMenuPosition??u(),f=Bt(),p=Hr()??o,m=t.length>1,h=m?og(jg(f)):p,g=c.wasActivatedByToggle,_;if(_=m?f:p?[p]:s,l.hideContextMenu(),h){let i=m?h.x+h.width/2:d.x,o=mt.createInstance(h,n||`element`,r,`copying`,{element:e,mouseX:i,elements:m?t:void 0,boundsMultiple:_}),s=!1,c;try{s=await a(),s||(c=`Failed to copy`)}catch(e){c=Xf(e,`Action failed`)}mt.updateAfterCopy(o,s,c)}else try{await a()}catch(e){Z(new ya(`Action failed without feedback bounds`,e))}g?K():l.unfreeze()})},Yr=()=>{setTimeout(()=>{l.hideContextMenu()},0)},Xr=e=>{let{element:t,filePath:n,lineNumber:r,tagName:i,componentName:a,position:o,performWithFeedbackOptions:u,shouldDeferHideContextMenu:d,onBeforeCopy:f,onBeforePrompt:p,customEnterPromptMode:h}=e,g=c.frozenElements.length>0?c.frozenElements:[t],_=d?Yr:l.hideContextMenu,v={element:t,elements:g,filePath:n,lineNumber:r,componentName:a,tagName:i,enterPromptMode:h??(()=>{mt.clearAll(),vn(),p?.(),Me(t,o.x,o.y),l.setPointer({x:o.x,y:o.y}),l.setFrozenElement(t),Ne(),m()||dn(),_()}),copy:()=>{vn(),f?.(),kt({element:t,cursorX:o.x,selectedElements:g.length>1?g:void 0,shouldDeactivateAfter:c.wasActivatedByToggle}),_()},hooks:{transformHtmlContent:s.hooks.transformHtmlContent,onOpenFile:s.hooks.onOpenFile,transformOpenFileUrl:s.hooks.transformOpenFileUrl},performWithFeedback:Jr(t,g,i,a,u),hideContextMenu:_,cleanup:()=>{c.wasActivatedByToggle?K():l.unfreeze()}},y=s.hooks.transformActionContext(v);return{...v,...y}},Zr=y(()=>{let e=c.contextMenuElement;if(!e)return;let t=Kr(),n=c.contextMenuPosition??u();return Xr({element:e,filePath:t?.filePath,lineNumber:t?.lineNumber??void 0,tagName:Wr(),componentName:Gr(),position:n,shouldDeferHideContextMenu:!0,onBeforeCopy:()=>{A.clear()},customEnterPromptMode:()=>{mt.clearAll(),vn(),l.clearInputText(),l.enterPromptMode(n,e),Yr()}})}),Qr=()=>{setTimeout(()=>{l.hideContextMenu(),K()},0)},$r=()=>{if(!Te)return null;let e=Te.getBoundingClientRect(),t=gy(e);return t===`left`||t===`right`?{x:t===`left`?e.right:e.left,y:e.top+e.height/2,edge:t}:{x:e.left+e.width/2,y:t===`top`?e.bottom:e.top,edge:t}},ei=(e,t)=>{let n=null,r=()=>{let i=e();i&&t(i),n=af(r)};return r(),()=>{n!==null&&(of(n),n=null)}};v(()=>{if(!Ft())return;let e=ei($r,Se);w(()=>{e(),Se(null)})});let ti=()=>{De?.(),De=null,be(null)},ni=()=>{l.hideContextMenu(),ti()},ri=()=>{ye()===null?(l.hideContextMenu(),De?.(),De=ei($r,be)):ti()},ii=e=>{je({defaultAction:e}),z()&&yn(e)},ai=e=>{let t=c.labelInstances.find(t=>t.id===e);if(!t?.element||!X(t.element))return;let n=t.element,r=ta(Y(n)),i={x:t.mouseX??r.x,y:r.y},a=t.elements&&t.elements.length>0?t.elements.filter(e=>X(e)):[n];setTimeout(()=>{ti(),m()||(l.setWasActivatedByToggle(!0),dn()),l.setPointer(i),l.setFrozenElements(a),a.length>1&&t.bounds&&l.setFrozenDragRect(ag(t.bounds)),l.freeze(),l.showContextMenu(i,n)},0)};v(()=>{let e=s.store.theme.hue;e===0?br.style.filter=``:br.style.filter=`hue-rotate(${e}deg)`}),s.store.theme.enabled&&Promise.resolve().then(()=>(OC(),EC)).then(({ReactGrabRenderer:e})=>{t||(i=tt(()=>k(e,{get selectionVisible(){return kr()},get selectionBounds(){return Ut()},get selectionBoundsMultiple(){return $t()},get selectionShouldSnap(){return c.frozenElements.length>0||Qt().length>0},get selectionElementsCount(){return c.frozenElements.length},get frozenLabelEntryAccessors(){return tn()},get pendingShiftPreviewEntry(){return nn()??void 0},get selectionFilePath(){return c.selectionFilePath??void 0},get selectionTagName(){return Ar()},get selectionComponentName(){return V()},get selectionLabelVisible(){return jr()},selectionLabelStatus:`idle`,get hierarchyState(){return cr()},get hierarchyMenuPosition(){return xe()},get labelInstances(){return Pr()},get labelInstanceAccessors(){return Lr()},get dragVisible(){return zr()},get dragBounds(){return Xt()},get grabbedBoxes(){return Rr()},get mouseX(){return Et(()=>c.frozenElements.length>1)()?void 0:an()??rn().x},get isFrozen(){return g()||m()||ge()},get inputValue(){return c.inputText},get isPromptMode(){return D()},onShowContextMenuInstance:ai,onRetryInstance:Ct,onAcknowledgeErrorInstance:wt,get onLabelInstanceHoverChange(){return mt.handleHoverChange},get onInputChange(){return l.setInputText},onInputSubmit:()=>void mn(),get selectionLabelShakeCount(){return fe()},onConfirmDismiss:gn,onOpenSelectionFile:ir,get discardPrompt(){return Et(()=>!!A.isPendingDismiss())()?{isKeyboardSelection:!0,onConfirm:gn,onCopy:Zn}:ie()?{onConfirm:gn,onCancel:_n}:void 0},get toolbarVisible(){return s.store.theme.toolbar.enabled},get isActive(){return m()},onToggleActive:Sn,get activeActionId(){return st()},get enabled(){return ce()},get shakeCount(){return ue()},onToolbarStateChange:e=>{he(e),e.enabled!==ce()&&(le(e.enabled),e.enabled||(fn(),ni())),ky(o,e)},onSubscribeToToolbarStateChanges:e=>(o.add(e),()=>{o.delete(e)}),onToolbarSelectHoverChange:_e,onToolbarRef:e=>{Te=e},get contextMenuPosition(){return Ur()},get contextMenuBounds(){return Hr()},get contextMenuTagName(){return Wr()},get contextMenuComponentName(){return Gr()},get contextMenuHasFilePath(){return!!Kr()?.filePath},get actions(){return s.store.actions},get actionContext(){return Zr()},onContextMenuDismiss:Qr,onContextMenuHide:Yr,get toolbarMenuPosition(){return ye()},get toolbarMenuActions(){return s.store.actions.filter(e=>e.showInToolbarMenu===!0)},get defaultActionId(){return me()?.defaultAction??`copy`},get defaultActionLabel(){return Cn()},onSetDefaultAction:ii,onToggleToolbarMenu:ri,onToolbarMenuDismiss:ti}),br))}).catch(e=>{console.warn(`[react-grab] Failed to load renderer:`,e)});let oi={activate:()=>{l.setPendingCommentMode(!1),!m()&&ce()&&pn()},deactivate:()=>{m()||T()?K():yt()},toggle:()=>{m()||T()?K():ce()&&pn()},comment:Dn,isActive:()=>m(),isEnabled:()=>ce(),setEnabled:e=>{e!==ce()&&(le(e),je({enabled:e,collapsed:!e}),e||(fn(),ni()))},getToolbarState:()=>me()??Qg(),setToolbarState:e=>{let t=me()??Qg(),n=e.collapsed??t?.collapsed??!1,r=e.defaultAction??t?.defaultAction??`copy`,i={edge:e.edge??t?.edge??`bottom`,ratio:e.ratio??t?.ratio??.5,collapsed:n,enabled:e.enabled??!n,defaultAction:dg(r)};$g(i),he(i),i.enabled!==ce()&&(le(i.enabled),i.enabled||(fn(),ni())),ky(o,i)},onToolbarStateChange:e=>(o.add(e),()=>{o.delete(e)}),reset:()=>{fn(),ni(),l.clearGrabbedBoxes(),mt.clearAll(),l.setSelectionSource(null,null)},dispose:()=>{if(t)return;let n=[];t=!0,jC=!1,Q(yt,n),Q(mt.clearAll,n),i&&Q(i,n),i=void 0,De&&Q(De,n),De=null,o.clear(),Q(e,n),Q(()=>Hy(oi),n),Dm(n,`Disposing React Grab failed`)},copyElement:async e=>{let t=Array.isArray(e)?e:[e];return t.length===0?!1:(await Tt(t,_t())).status===`succeeded`},getSource:async e=>{let t=await Pd(e);return t?{filePath:t.filePath,lineNumber:t.lineNumber,columnNumber:t.columnNumber??null,componentName:t.componentName}:null},getStackContext:e=>qd(e,{maxLines:s.store.options.maxContextLines}),getState:()=>({isActive:m(),isDragging:_(),isCopying:T(),isPromptMode:D(),isSelectionBoxVisible:!!kr(),isDragBoxVisible:!!zr(),targetElement:G(),dragBounds:Xt()??null,grabbedBoxes:[...on()],labelInstances:[...sn()],selectionFilePath:c.selectionFilePath,toolbarState:me()}),setOptions:e=>{s.setOptions(e)},registerPlugin:e=>{s.register(e,oi)},unregisterPlugin:e=>{s.unregister(e)},getPlugins:()=>s.getPluginNames(),getDisplayName:Fd};for(let e of kC)s.register(e,oi);return queueMicrotask(()=>{if(t)return;let e=me();if(!e)return;let n=dg(e.defaultAction??`copy`);n!==e.defaultAction&&je({defaultAction:n})}),setTimeout(()=>{vu(!0)},Un),oi})};return ja(),typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(Vy((window.__REACT_GRAB__??(()=>{if(typeof window>`u`||window.parent===window)return null;try{return window.parent.__REACT_GRAB__??null}catch{return null}})())||MC()),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:By()}))),e.DEFAULT_THEME=Mg,e.FreezeError=ba,e.OpenFileError=xa,e.PluginSetupError=wa,e.ReactGrabError=va,e.commentPlugin=r_,e.formatElementInfo=Yd,e.generateSnippet=Gy,e.getGlobalApi=By,e.getStack=Ed,e.init=MC,e.isInstrumentationActive=vi,e.openPlugin=i_,e.registerPlugin=Uy,e.setGlobalApi=Vy,e.unregisterPlugin=Wy,e})({},react);
|