react-grab 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/chunk-73DWLENH.js +6232 -0
- package/dist/chunk-V3NBFNRU.cjs +6240 -0
- package/dist/core.cjs +34 -0
- package/dist/core.d.cts +157 -0
- package/dist/core.d.ts +157 -0
- package/dist/core.js +1 -0
- package/dist/index.cjs +33 -1902
- package/dist/index.d.cts +3 -65
- package/dist/index.d.ts +3 -65
- package/dist/index.global.js +30 -29
- package/dist/index.js +5 -1900
- package/dist/styles.css +2 -0
- package/package.json +20 -2
package/dist/index.global.js
CHANGED
|
@@ -6,45 +6,46 @@ var ReactGrab=(function(exports){'use strict';/**
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
var ao=(e,t)=>e===t;var lo=Symbol("solid-track"),ut={equals:ao},Ln=Bn,me=1,We=2,Mn={owned:null,cleanups:null,context:null,owner:null};var _=null,b=null,je=null,L=null,q=null,ne=null,dt=0;function Me(e,t){let n=L,r=_,o=e.length===0,i=t===void 0?r:t,s=o?Mn:{owned:null,cleanups:null,context:i?i.context:null,owner:i},l=o?e:()=>e(()=>ue(()=>Ae(s)));_=s,L=null;try{return Se(l,!0)}finally{L=n,_=r;}}function E(e,t){t=t?Object.assign({},ut,t):ut;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),Hn(n,o));return [Dn.bind(n),r]}function re(e,t,n){let r=Ut(e,t,false,me);Qe(r);}function J(e,t,n){Ln=go;let r=Ut(e,t,false,me);(r.user=true),ne?ne.push(r):Qe(r);}function D(e,t,n){n=n?Object.assign({},ut,n):ut;let r=Ut(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Qe(r),Dn.bind(r)}function ue(e){if(L===null)return e();let t=L;L=null;try{return je?je.untrack(e):e()}finally{L=t;}}function $e(e,t,n){let r=Array.isArray(e),o;return s=>{let l;if(r){l=Array(e.length);for(let c=0;c<e.length;c++)l[c]=e[c]();}else l=e();let a=ue(()=>t(l,o,s));return o=l,a}}function $n(e){J(()=>ue(e));}function fe(e){return _===null||(_.cleanups===null?_.cleanups=[e]:_.cleanups.push(e)),e}E(false);function Dn(){let e=b;if(this.sources&&(this.state))if((this.state)===me)Qe(this);else {let t=q;q=null,Se(()=>ft(this),false),q=t;}if(L){let t=this.observers?this.observers.length:0;L.sources?(L.sources.push(this),L.sourceSlots.push(t)):(L.sources=[this],L.sourceSlots=[t]),this.observers?(this.observers.push(L),this.observerSlots.push(L.sources.length-1)):(this.observers=[L],this.observerSlots=[L.sources.length-1]);}return e&&b.sources.has(this)?this.tValue:this.value}function Hn(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&Se(()=>{for(let o=0;o<e.observers.length;o+=1){let i=e.observers[o],s=b&&b.running;s&&b.disposed.has(i)||((s?!i.tState:!i.state)&&(i.pure?q.push(i):ne.push(i),i.observers&&jn(i)),s?i.tState=me:i.state=me);}if(q.length>1e6)throw q=[],new Error},false);}return t}function Qe(e){if(!e.fn)return;Ae(e);let t=dt;In(e,e.value,t);}function In(e,t,n){let r,o=_,i=L;L=_=e;try{r=e.fn(t);}catch(s){return e.pure&&((e.state=me,e.owned&&e.owned.forEach(Ae),e.owned=null)),e.updatedAt=n+1,Gt(s)}finally{L=i,_=o;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Hn(e,r):e.value=r,e.updatedAt=n);}function Ut(e,t,n,r=me,o){let i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:_,context:_?_.context:null,pure:n};if(_===null||_!==Mn&&(_.owned?_.owned.push(i):_.owned=[i]),je);return i}function Ze(e){let t=b;if((e.state)===0)return;if((e.state)===We)return ft(e);if(e.suspense&&ue(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<dt);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===me)Qe(e);else if((e.state)===We){let o=q;q=null,Se(()=>ft(e,n[0]),false),q=o;}}}function Se(e,t){if(q)return e();let n=false;t||(q=[]),ne?n=true:ne=[],dt++;try{let r=e();return fo(n),r}catch(r){n||(ne=null),q=null,Gt(r);}}function fo(e){if(q&&(Bn(q),q=null),e)return;let n=ne;ne=null,n.length&&Se(()=>Ln(n),false);}function Bn(e){for(let t=0;t<e.length;t++)Ze(e[t]);}function go(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:Ze(r);}for(t=0;t<n;t++)Ze(e[t]);}function ft(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let o=e.sources[r];if(o.sources){let i=o.state;i===me?o!==t&&(!o.updatedAt||o.updatedAt<dt)&&Ze(o):i===We&&ft(o,t);}}}function jn(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=We,r.pure?q.push(r):ne.push(r),r.observers&&jn(r));}}function Ae(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){let i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Ae(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ae(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function po(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Gt(e,t=_){let r=po(e);throw r;}var ho=Symbol("fallback");function Pn(e){for(let t=0;t<e.length;t++)e[t]();}function bo(e,t,n={}){let r=[],o=[],i=[],s=0,l=t.length>1?[]:null;return fe(()=>Pn(i)),()=>{let a=e()||[],c=a.length,m,d;return a[lo],ue(()=>{let g,p,S,A,W,G,Y,V,Z;if(c===0)s!==0&&(Pn(i),i=[],r=[],o=[],s=0,l&&(l=[])),n.fallback&&(r=[ho],o[0]=Me(ye=>(i[0]=ye,n.fallback())),s=1);else if(s===0){for(o=new Array(c),d=0;d<c;d++)r[d]=a[d],o[d]=Me(x);s=c;}else {for(S=new Array(c),A=new Array(c),l&&(W=new Array(c)),G=0,Y=Math.min(s,c);G<Y&&r[G]===a[G];G++);for(Y=s-1,V=c-1;Y>=G&&V>=G&&r[Y]===a[V];Y--,V--)S[V]=o[Y],A[V]=i[Y],l&&(W[V]=l[Y]);for(g=new Map,p=new Array(V+1),d=V;d>=G;d--)Z=a[d],m=g.get(Z),p[d]=m===void 0?-1:m,g.set(Z,d);for(m=G;m<=Y;m++)Z=r[m],d=g.get(Z),d!==void 0&&d!==-1?(S[d]=o[m],A[d]=i[m],l&&(W[d]=l[m]),d=p[d],g.set(Z,d)):i[m]();for(d=G;d<c;d++)d in S?(o[d]=S[d],i[d]=A[d],l&&(l[d]=W[d],l[d](d))):o[d]=Me(x);o=o.slice(0,s=c),r=a.slice(0);}return o});function x(g){if(i[d]=g,l){let[p,S]=E(d);return l[d]=S,t(a[d],p)}return t(a[d])}}}function R(e,t){return ue(()=>e(t||{}))}var wo=e=>`Stale read from <${e}>.`;function mt(e){let t="fallback"in e&&{fallback:()=>e.fallback};return D(bo(()=>e.each,e.children,t||void 0))}function j(e){let t=e.keyed,n=D(()=>e.when,void 0,void 0),r=t?n:D(n,void 0,{equals:(o,i)=>!o==!i});return D(()=>{let o=r();if(o){let i=e.children;return typeof i=="function"&&i.length>0?ue(()=>i(t?o:()=>{if(!ue(r))throw wo("Show");return n()})):i}return e.fallback},void 0,void 0)}var Te=e=>D(()=>e());function So(e,t,n){let r=n.length,o=t.length,i=r,s=0,l=0,a=t[o-1].nextSibling,c=null;for(;s<o||l<i;){if(t[s]===n[l]){s++,l++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){let m=i<r?l?n[l-1].nextSibling:n[i-l]:a;for(;l<i;)e.insertBefore(n[l++],m);}else if(i===l)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[l]===t[o-1]){let m=t[--o].nextSibling;e.insertBefore(n[l++],t[s++].nextSibling),e.insertBefore(n[--i],m),t[o]=n[i];}else {if(!c){c=new Map;let d=l;for(;d<i;)c.set(n[d],d++);}let m=c.get(t[s]);if(m!=null)if(l<m&&m<i){let d=s,x=1,g;for(;++d<o&&d<i&&!((g=c.get(t[d]))==null||g!==m+x);)x++;if(x>m-l){let p=t[s];for(;l<m;)e.insertBefore(n[l++],p);}else e.replaceChild(n[l++],t[s++]);}else s++;else t[s++].remove();}}}var Un="_$DX_DELEGATE";function Yn(e,t,n,r={}){let o;return Me(i=>{o=i,t===document?e():pe(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{o(),t.textContent="";}}function ee(e,t,n,r){let o,i=()=>{let l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},s=()=>(o||(o=i())).cloneNode(true);return s.cloneNode=s,s}function zn(e,t=window.document){let n=t[Un]||(t[Un]=new Set);for(let r=0,o=e.length;r<o;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,vo));}}function To(e,t,n){(e.removeAttribute(t));}function pt(e,t,n){if(!t)return n?To(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function ge(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function ve(e,t,n){return ue(()=>e(t,n))}function pe(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return gt(e,t,r,n);re(o=>gt(e,t(),o,n),r);}function vo(e){let t=e.target,n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=a=>Object.defineProperty(e,"target",{configurable:true,value:a}),s=()=>{let a=t[n];if(a&&!t.disabled){let c=t[`${n}Data`];if(c!==void 0?a.call(t,c,e):a.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),true},l=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let a=e.composedPath();i(a[0]);for(let c=0;c<a.length-2&&(t=a[c],!!s());c++){if(t._$host){t=t._$host,l();break}if(t.parentNode===o)break}}else l();i(r);}function gt(e,t,n,r,o){for(;typeof n=="function";)n=n();if(t===n)return n;let s=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(s==="number"&&(t=t.toString(),t===n))return n;if(l){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=Ve(e,n,r,a);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||s==="boolean"){n=Ve(e,n,r);}else {if(s==="function")return re(()=>{let a=t();for(;typeof a=="function";)a=a();n=gt(e,a,n,r);}),()=>n;if(Array.isArray(t)){let a=[],c=n&&Array.isArray(n);if(Yt(a,t,n,o))return re(()=>n=gt(e,a,n,r,true)),()=>n;if(a.length===0){if(n=Ve(e,n,r),l)return n}else c?n.length===0?Gn(e,a,r):So(e,n,a):(n&&Ve(e),Gn(e,a));n=a;}else if(t.nodeType){if(Array.isArray(n)){if(l)return n=Ve(e,n,r,t);Ve(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function Yt(e,t,n,r){let o=false;for(let i=0,s=t.length;i<s;i++){let l=t[i],a=n&&n[e.length],c;if(!(l==null||l===true||l===false))if((c=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))o=Yt(e,l,a)||o;else if(c==="function")if(r){for(;typeof l=="function";)l=l();o=Yt(e,Array.isArray(l)?l:[l],Array.isArray(a)?a:[a])||o;}else e.push(l),o=true;else {let m=String(l);a&&a.nodeType===3&&a.data===m?e.push(a):e.push(document.createTextNode(m));}}return o}function Gn(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n);}function Ve(e,t,n,r){if(n===void 0)return e.textContent="";let o=r||document.createTextNode("");if(t.length){let i=false;for(let s=t.length-1;s>=0;s--){let l=t[s];if(o!==l){let a=l.parentNode===e;!i&&!s?a?e.replaceChild(o,l):e.insertBefore(o,n):a&&l.remove();}else i=true;}}else e.insertBefore(o,n);return [o]}var Eo=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],Ro=e=>!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-"),_o=e=>Array.isArray(e),Ao=(e,t=false)=>{let{composed:n,target:r}=e,o,i;if(r instanceof HTMLElement&&Ro(r)&&n){let l=e.composedPath()[0];l instanceof HTMLElement&&(o=l.tagName,i=l.role);}else r instanceof HTMLElement&&(o=r.tagName,i=r.role);return _o(t)?!!(o&&t&&t.some(s=>typeof o=="string"&&s.toLowerCase()===o.toLowerCase()||s===i)):!!(o&&t&&t)},qn=e=>Ao(e,Eo);var Ue="data-react-grab",Wn=()=>{let e=document.querySelector(`[${Ue}]`);if(e){let i=e.shadowRoot?.querySelector(`[${Ue}]`);if(i instanceof HTMLDivElement&&e.shadowRoot)return i}let t=document.createElement("div");t.setAttribute(Ue,"true"),t.style.zIndex="2147483646",t.style.position="fixed",t.style.top="0",t.style.left="0";let n=t.attachShadow({mode:"open"}),r=document.createElement("div");return r.setAttribute(Ue,"true"),n.appendChild(r),(document.body??document.documentElement).appendChild(t),r};var ke=(e,t,n)=>e+(t-e)*n;var Oo=ee("<div>"),ht=e=>{let[t,n]=E(e.bounds.x),[r,o]=E(e.bounds.y),[i,s]=E(e.bounds.width),[l,a]=E(e.bounds.height),[c,m]=E(1),d=false,x=null,g=null,p=e.bounds,S=false,A=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,W=()=>{if(S)return;S=true;let V=()=>{let Z=ke(t(),p.x,A()),ye=ke(r(),p.y,A()),Fe=ke(i(),p.width,A()),_e=ke(l(),p.height,A());n(Z),o(ye),s(Fe),a(_e),Math.abs(Z-p.x)<.5&&Math.abs(ye-p.y)<.5&&Math.abs(Fe-p.width)<.5&&Math.abs(_e-p.height)<.5?(x=null,S=false):x=requestAnimationFrame(V);};x=requestAnimationFrame(V);};J($e(()=>e.bounds,V=>{if(p=V,!d){n(p.x),o(p.y),s(p.width),a(p.height),d=true;return}W();})),J(()=>{e.variant==="grabbed"&&e.createdAt&&(g=window.setTimeout(()=>{m(0);},1500));}),fe(()=>{x!==null&&(cancelAnimationFrame(x),x=null),g!==null&&(window.clearTimeout(g),g=null),S=false;});let G={position:"fixed","box-sizing":"border-box","pointer-events":e.variant==="drag"?"none":"auto","z-index":e.variant==="grabbed"?"2147483645":"2147483646"},Y=()=>e.variant==="drag"?{border:"1px dashed rgba(210, 57, 192, 0.4)","background-color":"rgba(210, 57, 192, 0.05)","will-change":"transform, width, height",contain:"layout paint size",cursor:"crosshair"}:e.variant==="selection"?{border:"1px dashed rgba(210, 57, 192, 0.5)","background-color":"rgba(210, 57, 192, 0.08)"}:{border:"1px solid rgb(210, 57, 192)","background-color":"rgba(210, 57, 192, 0.08)",transition:"opacity 0.3s ease-out"};return R(j,{get when(){return e.visible!==false},get children(){var V=Oo();return re(Z=>pt(V,{...G,...Y(),top:`${r()}px`,left:`${t()}px`,width:`${i()}px`,height:`${l()}px`,"border-radius":e.bounds.borderRadius,transform:e.bounds.transform,opacity:c()},Z)),V}})};var Fo=ee('<span style="display:inline-block;width:8px;height:8px;border:1.5px solid rgb(210, 57, 192);border-top-color:transparent;border-radius:50%;margin-right:4px;vertical-align:middle">'),Zn=e=>{let t;return $n(()=>{t&&t.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:600,easing:"linear",iterations:1/0});}),(()=>{var n=Fo(),r=t;return typeof r=="function"?ve(r,n):t=n,re(o=>pt(n,{...e.style},o)),n})()};var bt=(e,t,n,r)=>{let o=window.innerWidth,i=window.innerHeight,s=8,l=8,a=o-n-8,c=i-r-8,m=Math.max(s,Math.min(e,a)),d=Math.max(l,Math.min(t,c));return {left:m,top:d}};var Ge=e=>{let t=e.lerpFactor??.3,n=e.convergenceThreshold??.5,[r,o]=E(e.x()),[i,s]=E(e.y()),l=e.x(),a=e.y(),c=null,m=false,d=()=>{let g=ke(r(),l,t),p=ke(i(),a,t);o(g),s(p),Math.abs(g-l)<n&&Math.abs(p-a)<n?c=null:c=requestAnimationFrame(d);},x=()=>{c===null&&(c=requestAnimationFrame(d));};return J(()=>{if(l=e.x(),a=e.y(),!m){o(l),s(a),m=true;return}x();}),fe(()=>{c!==null&&(cancelAnimationFrame(c),c=null);}),{x:r,y:i}};var Kn=e=>{let[t,n]=E(0);return J($e(()=>e.visible,r=>{if(r!==false)requestAnimationFrame(()=>{n(1);});else {n(0);return}if(e.autoFadeOutAfter!==void 0){let o=setTimeout(()=>{n(0);},e.autoFadeOutAfter);fe(()=>clearTimeout(o));}})),t};var yt=(e,t,n,r,o)=>[{left:Math.round(e)+o,top:Math.round(t)+o},{left:Math.round(e)-n-o,top:Math.round(t)+o},{left:Math.round(e)+o,top:Math.round(t)-r-o},{left:Math.round(e)-n-o,top:Math.round(t)-r-o}];var Io=ee('<div style="position:absolute;top:0;left:0;bottom:0;background-color:rgba(178, 28, 142, 0.2);border-radius:3px;transition:width 0.1s ease-out;pointer-events:none">'),No=ee("<span style=display:inline-block;margin-right:4px;font-weight:600>\u2713"),Po=ee("<div style=margin-right:4px>Copied"),Lo=ee(`<span style="font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;font-variant-numeric:tabular-nums;vertical-align:middle">`),Mo=ee("<span style=font-variant-numeric:tabular-nums;font-size:10px;margin-left:4px;vertical-align:middle>"),$o=ee("<div style=margin-left:4px>to clipboard"),Do=ee("<div style=font-size:9px;opacity:0.6;text-align:center;margin-top:2px>Click or drag to select"),Ho=ee(`<div style="position:fixed;background-color:#fde7f7;color:#b21c8e;border:1px solid #f7c5ec;border-radius:4px;font-size:11px;font-weight:500;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;pointer-events:none;transition:opacity 0.2s ease-in-out;max-width:calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)));overflow:hidden"><div style="position:relative;padding:2px 6px;display:flex;flex-direction:column"><div style=display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap>`),Xt=e=>{let t,n=Ge({x:()=>e.x,y:()=>e.y,lerpFactor:.3}),r=Kn({visible:e.visible,autoFadeOutAfter:e.variant==="success"?1700:void 0}),o=()=>t?.getBoundingClientRect(),i=()=>{let l=o();if(!l)return {left:n.x(),top:n.y()};let a=window.innerWidth,c=window.innerHeight,m=yt(n.x(),n.y(),l.width,l.height,14);for(let x of m){let g=x.left>=8&&x.left+l.width<=a-8,p=x.top>=8&&x.top+l.height<=c-8;if(g&&p)return x}let d=bt(m[0].left,m[0].top,l.width,l.height);return d.left+=4,d.top+=4,d},s=()=>{let a=e.text.indexOf(" in ");return a===-1?{primary:e.text,secondary:""}:{primary:e.text.slice(0,a),secondary:e.text.slice(a)}};return R(j,{get when(){return e.visible!==false},get children(){var l=Ho(),a=l.firstChild,c=a.firstChild,m=t;return typeof m=="function"?ve(m,l):t=l,pe(l,R(j,{get when(){return Te(()=>e.variant==="processing")()&&e.progress!==void 0},get children(){var d=Io();return re(x=>ge(d,"width",`${Math.min(100,Math.max(0,(e.progress??0)*100))}%`)),d}}),a),pe(c,R(j,{get when(){return e.variant==="processing"},get children(){return R(Zn,{})}}),null),pe(c,R(j,{get when(){return e.variant==="success"},get children(){return No()}}),null),pe(c,R(j,{get when(){return e.variant==="success"},get children(){return Po()}}),null),pe(c,R(j,{get when(){return e.variant==="processing"},children:"Please wait\u2026"}),null),pe(c,R(j,{get when(){return e.variant!=="processing"},get children(){return [(()=>{var d=Lo();return pe(d,()=>s().primary),d})(),R(j,{get when(){return Te(()=>e.variant==="hover")()&&s().secondary!==""},get children(){var d=Mo();return pe(d,()=>s().secondary),d}})]}}),null),pe(c,R(j,{get when(){return e.variant==="success"},get children(){return $o()}}),null),pe(a,R(j,{get when(){return Te(()=>e.variant==="hover")()&&e.showHint},get children(){return Do()}}),null),re(d=>{var x=`${i().top}px`,g=`${i().left}px`,p=e.zIndex?.toString()??"2147483647",S=r();return x!==d.e&&ge(l,"top",d.e=x),g!==d.t&&ge(l,"left",d.t=g),p!==d.a&&ge(l,"z-index",d.a=p),S!==d.o&&ge(l,"opacity",d.o=S),d},{e:void 0,t:void 0,a:void 0,o:void 0}),l}})};var Bo=ee("<canvas style=position:fixed;top:0;left:0;pointer-events:none;z-index:2147483645>"),Qn=e=>{let t,n=null,r=0,o=0,i=1,s=Ge({x:()=>e.mouseX,y:()=>e.mouseY,lerpFactor:.3}),l=()=>{t&&(i=Math.max(window.devicePixelRatio||1,2),r=window.innerWidth,o=window.innerHeight,t.width=r*i,t.height=o*i,t.style.width=`${r}px`,t.style.height=`${o}px`,n=t.getContext("2d"),n&&n.scale(i,i));},a=()=>{n&&(n.clearRect(0,0,r,o),n.strokeStyle="rgba(210, 57, 192)",n.lineWidth=1,n.beginPath(),n.moveTo(s.x(),0),n.lineTo(s.x(),o),n.moveTo(0,s.y()),n.lineTo(r,s.y()),n.stroke());};return J(()=>{l(),a();let c=()=>{l(),a();};window.addEventListener("resize",c),fe(()=>{window.removeEventListener("resize",c);});}),J(()=>{s.x(),s.y(),a();}),R(j,{get when(){return e.visible!==false},get children(){var c=Bo(),m=t;return typeof m=="function"?ve(m,c):t=c,c}})};var jo=ee(`<div data-react-grab-input style="position:fixed;background-color:#fde7f7;color:#b21c8e;border:1px solid #f7c5ec;border-radius:4px;font-size:11px;font-weight:500;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;max-width:calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)));overflow:hidden"><div style="position:relative;padding:2px 3px;display:flex;flex-direction:column;gap:2px"><textarea placeholder="e.g., Make this button larger"rows=1 style="width:240px;padding:2px 4px;background-color:#ffffff;color:#b21c8e;border:1px solid #f7c5ec;border-radius:3px;font-size:11px;line-height:1.2;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;outline:none;resize:vertical;min-height:18px"></textarea><div style=font-size:9px;opacity:0.6;text-align:center>Enter \u23CE to submit, Escape to cancel`),Jn=e=>{let t,n,r=Ge({x:()=>e.x,y:()=>e.y,lerpFactor:.3}),o=()=>t?.getBoundingClientRect(),i=()=>{let a=o();if(!a)return {left:r.x(),top:r.y()};let c=window.innerWidth,m=window.innerHeight,d=yt(r.x(),r.y(),a.width,a.height,14);for(let g of d){let p=g.left>=8&&g.left+a.width<=c-8,S=g.top>=8&&g.top+a.height<=m-8;if(p&&S)return g}let x=bt(d[0].left,d[0].top,a.width,a.height);return x.left+=4,x.top+=4,x},s=a=>{a.code==="Enter"&&!a.shiftKey?(a.preventDefault(),a.stopPropagation(),e.onSubmit()):a.code==="Escape"&&(a.preventDefault(),a.stopPropagation(),e.onCancel());},l=a=>{let c=a.target;e.onInput(c.value);};return J(()=>{e.visible&&n?n.focus():!e.visible&&n&&n.blur();}),(()=>{var a=jo(),c=a.firstChild,m=c.firstChild;m.nextSibling;var x=t;typeof x=="function"?ve(x,a):t=a,m.$$keydown=s,m.$$input=l;var g=n;return typeof g=="function"?ve(g,m):n=m,re(p=>{var S=e.visible?"block":"none",A=`${i().top}px`,W=`${i().left}px`,G=e.zIndex?.toString()??"2147483647",Y=e.visible?"auto":"none";return S!==p.e&&ge(a,"display",p.e=S),A!==p.t&&ge(a,"top",p.t=A),W!==p.a&&ge(a,"left",p.a=W),G!==p.o&&ge(a,"z-index",p.o=G),Y!==p.i&&ge(a,"pointer-events",p.i=Y),p},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),re(()=>m.value=e.value),a})()};zn(["input","keydown"]);var er=e=>[R(j,{get when(){return Te(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return R(ht,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible}})}}),R(j,{get when(){return Te(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return R(Qn,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),R(j,{get when(){return Te(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return R(ht,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),R(mt,{get each(){return e.grabbedBoxes??[]},children:t=>R(ht,{variant:"grabbed",get bounds(){return t.bounds},get createdAt(){return t.createdAt}})}),R(j,{get when(){return e.labelVariant!=="processing"},get children(){return R(mt,{get each(){return e.successLabels??[]},children:t=>R(Xt,{variant:"success",get text(){return t.text},get x(){return e.mouseX??0},get y(){return e.mouseY??0}})})}}),R(j,{get when(){return Te(()=>!!(e.labelVisible&&e.labelVariant&&e.labelText&&e.labelX!==void 0))()&&e.labelY!==void 0},get children(){return R(Xt,{get variant(){return e.labelVariant},get text(){return e.labelText},get x(){return e.labelX},get y(){return e.labelY},get visible(){return e.labelVisible},get zIndex(){return e.labelZIndex},get progress(){return e.progress},get showHint(){return e.labelShowHint}})}}),R(Jn,{get x(){return e.inputX??0},get y(){return e.inputY??0},get zIndex(){return e.labelZIndex},get value(){return e.inputValue??""},get visible(){return e.inputVisible??false},get onInput(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get onCancel(){return e.onInputCancel}})];var rr="0.5.16",St=`bippy-${rr}`,tr=Object.defineProperty,Vo=Object.prototype.hasOwnProperty,et=()=>{},or=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{}},Tt=(e=Ee())=>"getFiberRoots"in e,ir=false,nr,tt=(e=Ee())=>ir?true:(typeof e.inject=="function"&&(nr=e.inject.toString()),!!nr?.includes("(injected)")),Ct=new Set,De=new Set,sr=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:St,checkDCE:or,hasUnsupportedRendererAttached:false,inject(o){let i=++n;return t.set(i,o),De.add(o),r._instrumentationIsActive||(r._instrumentationIsActive=true,Ct.forEach(s=>s())),i},on:et,onCommitFiberRoot:et,onCommitFiberUnmount:et,onPostCommitFiberRoot:et,renderers:t,supportsFiber:true,supportsFlight:true};try{tr(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(s){if(s&&typeof s=="object"){let l=r.renderers;r=s,l.size>0&&(l.forEach((a,c)=>{De.add(a),s.renderers.set(c,a);}),xt(e));}}});let o=window.hasOwnProperty,i=!1;tr(window,"hasOwnProperty",{configurable:!0,value:function(...s){try{if(!i&&s[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,i=!0,-0}catch{}return o.apply(this,s)},writable:!0});}catch{xt(e);}return r},xt=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=or,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=St,t._instrumentationIsActive=!1;let n=Tt(t);if(n||(t.on=et),t.renderers.size){t._instrumentationIsActive=!0,Ct.forEach(i=>i());return}let r=t.inject,o=tt(t);o&&!n&&(ir=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=i=>{let s=r(i);return De.add(i),o&&t.renderers.set(s,i),t._instrumentationIsActive=!0,Ct.forEach(l=>l()),s};}(t.renderers.size||t._instrumentationIsActive||tt())&&e?.();}catch{}},qt=()=>Vo.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Ee=e=>qt()?(xt(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):sr(e),ar=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Wt=()=>{try{ar()&&Ee();}catch{}};Wt();var vt=0,Et=1;var Rt=5;var _t=11,Zt=13,lr=14,At=15,Kt=16;var Qt=19;var kt=26,Ot=27,Jt=28,en=30;var Ft=e=>{switch(e.tag){case Rt:case kt:case Ot:return true;default:return typeof e.type=="string"}},It=e=>{switch(e.tag){case Et:case _t:case vt:case lr:case At:return true;default:return false}},tn=e=>!e||typeof e!="object"?true:"pendingProps"in e&&!("containerInfo"in e);function Ye(e,t,n=false){if(!e)return null;let r=t(e);if(r instanceof Promise)return (async()=>{if(await r===true)return e;let i=n?e.return:e.child;for(;i;){let s=await rn(i,t,n);if(s)return s;i=n?null:i.sibling;}return null})();if(r===true)return e;let o=n?e.return:e.child;for(;o;){let i=nn(o,t,n);if(i)return i;o=n?null:o.sibling;}return null}var nn=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let o=nn(r,t,n);if(o)return o;r=n?null:r.sibling;}return null},rn=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let o=await rn(r,t,n);if(o)return o;r=n?null:r.sibling;}return null};var on=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?on(t.type||t.render):null},He=e=>{let t=e;if(typeof t=="string")return t;if(typeof t!="function"&&!(typeof t=="object"&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=on(t);return r&&(r.displayName||r.name)||null};var ze=()=>!!Ee()._instrumentationIsActive||Tt()||tt(),Nt=e=>{let t=e.alternate;if(!t)return e;if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let n of cr){let r=Ye(n.current,o=>{if(o===e)return true});if(r)return r}return e};var nt=e=>{let t=Ee();for(let n of t.renderers.values())try{let r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let n in e)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return e[n]||null}return null},cr=new Set;var Ko=Object.create,br=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,Jo=Object.getOwnPropertyNames,ei=Object.getPrototypeOf,ti=Object.prototype.hasOwnProperty,ni=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ri=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Jo(t),i=0,s=o.length,l;i<s;i++)l=o[i],!ti.call(e,l)&&l!==n&&br(e,l,{get:(a=>t[a]).bind(null,l),enumerable:!(r=Qo(t,l))||r.enumerable});return e},oi=(e,t,n)=>(n=e==null?{}:Ko(ei(e)),ri(br(n,"default",{value:e,enumerable:true}),e)),ii=()=>{let e=Ee();for(let t of [...Array.from(De),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},ur=e=>{for(let t of De){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},Re=e=>`
|
|
10
|
-
in ${e}`,si=(e,t)=>{let n=Re(e);return t&&(n+=` (at ${t})`),n},sn=false,an=(e,t)=>{if(!e||sn)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,sn=true;let r=ii();ur(null);let o=console.error,i=console.warn;console.error=()=>{},console.warn=()=>{};try{let a={DetermineComponentFrameRoot(){let x;try{if(t){let g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[]);}catch(p){x=p;}Reflect.construct(e,[],g);}else {try{g.call();}catch(p){x=p;}e.call(g.prototype);}}else {try{throw Error()}catch(p){x=p;}let g=e();g&&typeof g.catch=="function"&&g.catch(()=>{});}}catch(g){if(g instanceof Error&&x instanceof Error&&typeof g.stack=="string")return [g.stack,x.stack]}return [null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[m,d]=a.DetermineComponentFrameRoot();if(m&&d){let x=m.split(`
|
|
11
|
-
`),
|
|
12
|
-
`),p=
|
|
13
|
-
|
|
9
|
+
var zo=(e,t)=>e===t;var jo=Symbol("solid-track"),Ct={equals:zo},nr=ar,we=1,at=2,rr={owned:null,cleanups:null,context:null,owner:null};var M=null,y=null,Je=null,V=null,ne=null,ae=null,Tt=0;function We(e,t){let n=V,r=M,i=e.length===0,o=t===void 0?r:t,s=i?rr:{owned:null,cleanups:null,context:o?o.context:null,owner:o},a=i?e:()=>e(()=>ge(()=>$e(s)));M=s,V=null;try{return Oe(a,!0)}finally{V=n,M=r;}}function F(e,t){t=t?Object.assign({},Ct,t):Ct;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),sr(n,i));return [ir.bind(n),r]}function le(e,t,n){let r=ln(e,t,false,we);ut(r);}function ie(e,t,n){nr=Xo;let r=ln(e,t,false,we);(r.user=true),ae?ae.push(r):ut(r);}function G(e,t,n){n=n?Object.assign({},Ct,n):Ct;let r=ln(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ut(r),ir.bind(r)}function ge(e){if(V===null)return e();let t=V;V=null;try{return Je?Je.untrack(e):e()}finally{V=t;}}function De(e,t,n){let r=Array.isArray(e),i;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]();}else a=e();let l=ge(()=>t(a,i,s));return i=a,l}}function or(e){ie(()=>ge(e));}function he(e){return M===null||(M.cleanups===null?M.cleanups=[e]:M.cleanups.push(e)),e}F(false);function ir(){let e=y;if(this.sources&&(this.state))if((this.state)===we)ut(this);else {let t=ne;ne=null,Oe(()=>St(this),false),ne=t;}if(V){let t=this.observers?this.observers.length:0;V.sources?(V.sources.push(this),V.sourceSlots.push(t)):(V.sources=[this],V.sourceSlots=[t]),this.observers?(this.observers.push(V),this.observerSlots.push(V.sources.length-1)):(this.observers=[V],this.observerSlots=[V.sources.length-1]);}return e&&y.sources.has(this)?this.tValue:this.value}function sr(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&Oe(()=>{for(let i=0;i<e.observers.length;i+=1){let o=e.observers[i],s=y&&y.running;s&&y.disposed.has(o)||((s?!o.tState:!o.state)&&(o.pure?ne.push(o):ae.push(o),o.observers&&lr(o)),s?o.tState=we:o.state=we);}if(ne.length>1e6)throw ne=[],new Error},false);}return t}function ut(e){if(!e.fn)return;$e(e);let t=Tt;Jn(e,e.value,t);}function Jn(e,t,n){let r,i=M,o=V;V=M=e;try{r=e.fn(t);}catch(s){return e.pure&&((e.state=we,e.owned&&e.owned.forEach($e),e.owned=null)),e.updatedAt=n+1,cn(s)}finally{V=o,M=i;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?sr(e,r):e.value=r,e.updatedAt=n);}function ln(e,t,n,r=we,i){let o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:M,context:M?M.context:null,pure:n};if(M===null||M!==rr&&(M.owned?M.owned.push(o):M.owned=[o]),Je);return o}function lt(e){let t=y;if((e.state)===0)return;if((e.state)===at)return St(e);if(e.suspense&&ge(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Tt);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===we)ut(e);else if((e.state)===at){let i=ne;ne=null,Oe(()=>St(e,n[0]),false),ne=i;}}}function Oe(e,t){if(ne)return e();let n=false;t||(ne=[]),ae?n=true:ae=[],Tt++;try{let r=e();return Uo(n),r}catch(r){n||(ae=null),ne=null,cn(r);}}function Uo(e){if(ne&&(ar(ne),ne=null),e)return;let n=ae;ae=null,n.length&&Oe(()=>nr(n),false);}function ar(e){for(let t=0;t<e.length;t++)lt(e[t]);}function Xo(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:lt(r);}for(t=0;t<n;t++)lt(e[t]);}function St(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let o=i.state;o===we?i!==t&&(!i.updatedAt||i.updatedAt<Tt)&<(i):o===at&&St(i,t);}}}function lr(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=at,r.pure?ne.push(r):ae.push(r),r.observers&&lr(r));}}function $e(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){let o=i.pop(),s=n.observerSlots.pop();r<i.length&&(o.sourceSlots[s]=r,i[r]=o,n.observerSlots[r]=s);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)$e(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)$e(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function Wo(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function cn(e,t=M){let r=Wo(e);throw r;}var qo=Symbol("fallback");function tr(e){for(let t=0;t<e.length;t++)e[t]();}function Zo(e,t,n={}){let r=[],i=[],o=[],s=0,a=t.length>1?[]:null;return he(()=>tr(o)),()=>{let l=e()||[],c=l.length,f,m;return l[jo],ge(()=>{let p,b,v,R,E,T,A,H,W;if(c===0)s!==0&&(tr(o),o=[],r=[],i=[],s=0,a&&(a=[])),n.fallback&&(r=[qo],i[0]=We(se=>(o[0]=se,n.fallback())),s=1);else if(s===0){for(i=new Array(c),m=0;m<c;m++)r[m]=l[m],i[m]=We(C);s=c;}else {for(v=new Array(c),R=new Array(c),a&&(E=new Array(c)),T=0,A=Math.min(s,c);T<A&&r[T]===l[T];T++);for(A=s-1,H=c-1;A>=T&&H>=T&&r[A]===l[H];A--,H--)v[H]=i[A],R[H]=o[A],a&&(E[H]=a[A]);for(p=new Map,b=new Array(H+1),m=H;m>=T;m--)W=l[m],f=p.get(W),b[m]=f===void 0?-1:f,p.set(W,m);for(f=T;f<=A;f++)W=r[f],m=p.get(W),m!==void 0&&m!==-1?(v[m]=i[f],R[m]=o[f],a&&(E[m]=a[f]),m=b[m],p.set(W,m)):o[f]();for(m=T;m<c;m++)m in v?(i[m]=v[m],o[m]=R[m],a&&(a[m]=E[m],a[m](m))):i[m]=We(C);i=i.slice(0,s=c),r=l.slice(0);}return i});function C(p){if(o[m]=p,a){let[b,v]=F(m);return a[m]=v,t(l[m],b)}return t(l[m])}}}function P(e,t){return ge(()=>e(t||{}))}var Qo=e=>`Stale read from <${e}>.`;function kt(e){let t="fallback"in e&&{fallback:()=>e.fallback};return G(Zo(()=>e.each,e.children,t||void 0))}function Q(e){let t=e.keyed,n=G(()=>e.when,void 0,void 0),r=t?n:G(n,void 0,{equals:(i,o)=>!i==!o});return G(()=>{let i=r();if(i){let o=e.children;return typeof o=="function"&&o.length>0?ge(()=>o(t?i:()=>{if(!ge(r))throw Qo("Show");return n()})):o}return e.fallback},void 0,void 0)}var xe=e=>G(()=>e());function ti(e,t,n){let r=n.length,i=t.length,o=r,s=0,a=0,l=t[i-1].nextSibling,c=null;for(;s<i||a<o;){if(t[s]===n[a]){s++,a++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===s){let f=o<r?a?n[a-1].nextSibling:n[o-a]:l;for(;a<o;)e.insertBefore(n[a++],f);}else if(o===a)for(;s<i;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[o-1]&&n[a]===t[i-1]){let f=t[--i].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--o],f),t[i]=n[o];}else {if(!c){c=new Map;let m=a;for(;m<o;)c.set(n[m],m++);}let f=c.get(t[s]);if(f!=null)if(a<f&&f<o){let m=s,C=1,p;for(;++m<i&&m<o&&!((p=c.get(t[m]))==null||p!==f+C);)C++;if(C>f-a){let b=t[s];for(;a<f;)e.insertBefore(n[a++],b);}else e.replaceChild(n[a++],t[s++]);}else s++;else t[s++].remove();}}}var ur="_$DX_DELEGATE";function fr(e,t,n,r={}){let i;return We(o=>{i=o,t===document?e():ue(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{i(),t.textContent="";}}function re(e,t,n,r){let i,o=()=>{let a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},s=()=>(i||(i=o())).cloneNode(true);return s.cloneNode=s,s}function mr(e,t=window.document){let n=t[ur]||(t[ur]=new Set);for(let r=0,i=e.length;r<i;r++){let o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,ri));}}function ni(e,t,n){(e.removeAttribute(t));}function pr(e,t){(t==null?e.removeAttribute("class"):e.className=t);}function gr(e,t,n){if(!t)return n?ni(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function J(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function Fe(e,t,n){return ge(()=>e(t,n))}function ue(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Et(e,t,r,n);le(i=>Et(e,t(),i,n),r);}function ri(e){let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=l=>Object.defineProperty(e,"target",{configurable:true,value:l}),s=()=>{let l=t[n];if(l&&!t.disabled){let c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),true},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let l=e.composedPath();o(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!s());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===i)break}}else a();o(r);}function Et(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;let s=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(s==="number"&&(t=t.toString(),t===n))return n;if(a){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=et(e,n,r,l);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||s==="boolean"){n=et(e,n,r);}else {if(s==="function")return le(()=>{let l=t();for(;typeof l=="function";)l=l();n=Et(e,l,n,r);}),()=>n;if(Array.isArray(t)){let l=[],c=n&&Array.isArray(n);if(un(l,t,n,i))return le(()=>n=Et(e,l,n,r,true)),()=>n;if(l.length===0){if(n=et(e,n,r),a)return n}else c?n.length===0?dr(e,l,r):ti(e,n,l):(n&&et(e),dr(e,l));n=l;}else if(t.nodeType){if(Array.isArray(n)){if(a)return n=et(e,n,r,t);et(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function un(e,t,n,r){let i=false;for(let o=0,s=t.length;o<s;o++){let a=t[o],l=n&&n[e.length],c;if(!(a==null||a===true||a===false))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))i=un(e,a,l)||i;else if(c==="function")if(r){for(;typeof a=="function";)a=a();i=un(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||i;}else e.push(a),i=true;else {let f=String(a);l&&l.nodeType===3&&l.data===f?e.push(l):e.push(document.createTextNode(f));}}return i}function dr(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n);}function et(e,t,n,r){if(n===void 0)return e.textContent="";let i=r||document.createTextNode("");if(t.length){let o=false;for(let s=t.length-1;s>=0;s--){let a=t[s];if(i!==a){let l=a.parentNode===e;!o&&!s?l?e.replaceChild(i,a):e.insertBefore(i,n):l&&a.remove();}else o=true;}}else e.insertBefore(i,n);return [i]}var hr=`/*! tailwindcss v4.1.17 | 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-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--font-weight-semibold:600;--leading-tight:1.25;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,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);--color-grab-pink:#b21c8e;--color-grab-pink-light:#fde7f7;--color-grab-pink-border:#f7c5ec;--color-grab-purple:#d239c0}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-0{top:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-2147483645{z-index:2147483645}.z-2147483646{z-index:2147483646}.z-\\[2147483645\\]{z-index:2147483645}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mr-1{margin-right:calc(var(--spacing)*1)}.ml-1{margin-left:calc(var(--spacing)*1)}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.hidden{display:none}.inline-block{display:inline-block}.h-2{height:calc(var(--spacing)*2)}.min-h-\\[18px\\]{min-height:18px}.w-2{width:calc(var(--spacing)*2)}.w-\\[240px\\]{width:240px}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-crosshair{cursor:crosshair}.resize{resize:both}.resize-y{resize:vertical}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-\\[3px\\]{border-radius:3px}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-grab-pink-border{border-color:var(--color-grab-pink-border)}.border-grab-purple{border-color:var(--color-grab-purple)}.border-grab-purple\\/40{border-color:#d239c066}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/40{border-color:color-mix(in oklab,var(--color-grab-purple)40%,transparent)}}.border-grab-purple\\/50{border-color:#d239c080}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/50{border-color:color-mix(in oklab,var(--color-grab-purple)50%,transparent)}}.border-t-transparent{border-top-color:#0000}.bg-grab-pink-light{background-color:var(--color-grab-pink-light)}.bg-grab-pink\\/20{background-color:#b21c8e33}@supports (color:color-mix(in lab, red, red)){.bg-grab-pink\\/20{background-color:color-mix(in oklab,var(--color-grab-pink)20%,transparent)}}.bg-grab-purple\\/5{background-color:#d239c00d}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/5{background-color:color-mix(in oklab,var(--color-grab-purple)5%,transparent)}}.bg-grab-purple\\/8{background-color:#d239c014}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/8{background-color:color-mix(in oklab,var(--color-grab-purple)8%,transparent)}}.bg-white{background-color:var(--color-white)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-\\[3px\\]{padding-inline:3px}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[9px\\]{font-size:9px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-grab-pink{color:var(--color-grab-pink)}.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,)}.opacity-60{opacity:.6}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition-\\[width\\]{transition-property:width;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))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[transform\\,width\\,height\\]{will-change:transform,width,height}.outline-none{--tw-outline-style:none;outline-style:none}}@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-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`;var ii=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],si=e=>!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-"),ai=e=>Array.isArray(e),li=(e,t=false)=>{let{composed:n,target:r}=e,i,o;if(r instanceof HTMLElement&&si(r)&&n){let a=e.composedPath()[0];a instanceof HTMLElement&&(i=a.tagName,o=a.role);}else r instanceof HTMLElement&&(i=r.tagName,o=r.role);return ai(t)?!!(i&&t&&t.some(s=>typeof i=="string"&&s.toLowerCase()===i.toLowerCase()||s===o)):!!(i&&t&&t)},br=e=>li(e,ii);var tt="data-react-grab",yr=e=>{let t=document.querySelector(`[${tt}]`);if(t){let s=t.shadowRoot?.querySelector(`[${tt}]`);if(s instanceof HTMLDivElement&&t.shadowRoot)return s}let n=document.createElement("div");n.setAttribute(tt,"true"),n.style.zIndex="2147483646",n.style.position="fixed",n.style.top="0",n.style.left="0";let r=n.attachShadow({mode:"open"});{let s=document.createElement("style");s.textContent=e,r.appendChild(s);}let i=document.createElement("div");return i.setAttribute(tt,"true"),r.appendChild(i),(document.body??document.documentElement).appendChild(n),i};var He=(e,t,n)=>e+(t-e)*n;function wr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=wr(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=wr(e))&&(r&&(r+=" "),r+=t);return r}var pn="-",ci=e=>{let t=di(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:s=>{let a=s.split(pn);return a[0]===""&&a.length!==1&&a.shift(),Sr(a,t)||ui(s)},getConflictingClassGroupIds:(s,a)=>{let l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},Sr=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?Sr(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let o=e.join(pn);return t.validators.find(({validator:s})=>s(o))?.classGroupId},vr=/^\[(.+)\]$/,ui=e=>{if(vr.test(e)){let t=vr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return "arbitrary.."+n}},di=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mi(Object.entries(e.classGroups),n).forEach(([o,s])=>{mn(s,r,o,t);}),r},mn=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){let o=i===""?t:Cr(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(fi(i)){mn(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{mn(s,Cr(t,o),n,r);});});},Cr=(e,t)=>{let n=e;return t.split(pn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r);}),n},fi=e=>e.isThemeGetter,mi=(e,t)=>t?e.map(([n,r])=>{let i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return [n,i]}):e,pi=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map,i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map);};return {get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s);}}},Tr="!",gi=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,s=a=>{let l=[],c=0,f=0,m;for(let R=0;R<a.length;R++){let E=a[R];if(c===0){if(E===i&&(r||a.slice(R,R+o)===t)){l.push(a.slice(f,R)),f=R+o;continue}if(E==="/"){m=R;continue}}E==="["?c++:E==="]"&&c--;}let C=l.length===0?a:a.substring(f),p=C.startsWith(Tr),b=p?C.substring(1):C,v=m&&m>f?m-f:void 0;return {modifiers:l,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:s}):s},hi=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r);}),t.push(...n.sort()),t},bi=e=>({cache:pi(e.cacheSize),parseClassName:gi(e),...ci(e)}),yi=/\s+/,wi=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],s=e.trim().split(yi),a="";for(let l=s.length-1;l>=0;l-=1){let c=s[l],{modifiers:f,hasImportantModifier:m,baseClassName:C,maybePostfixModifierPosition:p}=n(c),b=!!p,v=r(b?C.substring(0,p):C);if(!v){if(!b){a=c+(a.length>0?" "+a:a);continue}if(v=r(C),!v){a=c+(a.length>0?" "+a:a);continue}b=false;}let R=hi(f).join(":"),E=m?R+Tr:R,T=E+v;if(o.includes(T))continue;o.push(T);let A=i(v,b);for(let H=0;H<A.length;++H){let W=A[H];o.push(E+W);}a=c+(a.length>0?" "+a:a);}return a};function xi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=kr(t))&&(r&&(r+=" "),r+=n);return r}var kr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=kr(e[r]))&&(n&&(n+=" "),n+=t);return n};function vi(e,...t){let n,r,i,o=s;function s(l){let c=t.reduce((f,m)=>m(f),e());return n=bi(c),r=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){let c=r(l);if(c)return c;let f=wi(l,n);return i(l,f),f}return function(){return o(xi.apply(null,arguments))}}var U=e=>{let t=n=>n[e]||[];return t.isThemeGetter=true,t},Er=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ci=/^\d+\/\d+$/,Si=new Set(["px","full","screen"]),Ti=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ki=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ei=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ri=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ai=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Le=e=>nt(e)||Si.has(e)||Ci.test(e),Be=e=>rt(e,"length",Mi),nt=e=>!!e&&!Number.isNaN(Number(e)),fn=e=>rt(e,"number",nt),dt=e=>!!e&&Number.isInteger(Number(e)),_i=e=>e.endsWith("%")&&nt(e.slice(0,-1)),O=e=>Er.test(e),ze=e=>Ti.test(e),Oi=new Set(["length","size","percentage"]),Fi=e=>rt(e,Oi,Rr),Li=e=>rt(e,"position",Rr),Ni=new Set(["image","url"]),Ii=e=>rt(e,Ni,Di),Pi=e=>rt(e,"",$i),ft=()=>true,rt=(e,t,n)=>{let r=Er.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):false},Mi=e=>ki.test(e)&&!Ei.test(e),Rr=()=>false,$i=e=>Ri.test(e),Di=e=>Ai.test(e);var Hi=()=>{let e=U("colors"),t=U("spacing"),n=U("blur"),r=U("brightness"),i=U("borderColor"),o=U("borderRadius"),s=U("borderSpacing"),a=U("borderWidth"),l=U("contrast"),c=U("grayscale"),f=U("hueRotate"),m=U("invert"),C=U("gap"),p=U("gradientColorStops"),b=U("gradientColorStopPositions"),v=U("inset"),R=U("margin"),E=U("opacity"),T=U("padding"),A=U("saturate"),H=U("scale"),W=U("sepia"),se=U("skew"),ke=U("space"),Ee=U("translate"),be=()=>["auto","contain","none"],fe=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto",O,t],g=()=>[O,t],d=()=>["",Le,Be],w=()=>["auto",nt,O],k=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",O],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[nt,O];return {cacheSize:500,separator:":",theme:{colors:[ft],spacing:[Le,Be],blur:["none","",ze,O],brightness:N(),borderColor:[e],borderRadius:["none","","full",ze,O],borderSpacing:g(),borderWidth:d(),contrast:N(),grayscale:$(),hueRotate:N(),invert:$(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[_i,Be],inset:x(),margin:x(),opacity:N(),padding:g(),saturate:N(),scale:N(),sepia:$(),skew:N(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[ze]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...k(),O]}],overflow:[{overflow:fe()}],"overflow-x":[{"overflow-x":fe()}],"overflow-y":[{"overflow-y":fe()}],overscroll:[{overscroll:be()}],"overscroll-x":[{"overscroll-x":be()}],"overscroll-y":[{"overscroll-y":be()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",dt,O]}],basis:[{basis:x()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",dt,O]}],"grid-cols":[{"grid-cols":[ft]}],"col-start-end":[{col:["auto",{span:["full",dt,O]},O]}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":[ft]}],"row-start-end":[{row:["auto",{span:[dt,O]},O]}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[ke]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ke]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[ze]},ze]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ze,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fn]}],"font-family":[{font:[ft]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",nt,fn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Le,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Le,Be]}],"underline-offset":[{"underline-offset":["auto",Le,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...k(),Li]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Fi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ii]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:L()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[Le,O]}],"outline-w":[{outline:[Le,Be]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:d()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Le,Be]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ze,Pi]}],"shadow-color":[{shadow:[ft]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ze,O]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[m]}],saturate:[{saturate:[A]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[H]}],"scale-x":[{"scale-x":[H]}],"scale-y":[{"scale-y":[H]}],rotate:[{rotate:[dt,O]}],"translate-x":[{"translate-x":[Ee]}],"translate-y":[{"translate-y":[Ee]}],"skew-x":[{"skew-x":[se]}],"skew-y":[{"skew-y":[se]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Le,Be,fn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ar=vi(Hi);var _r=(...e)=>Ar(xr(e));var zi=re("<div>"),Rt=e=>{let[t,n]=F(e.bounds.x),[r,i]=F(e.bounds.y),[o,s]=F(e.bounds.width),[a,l]=F(e.bounds.height),[c,f]=F(1),m=false,C=null,p=null,b=e.bounds,v=false,R=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,E=()=>{if(v)return;v=true;let T=()=>{let A=He(t(),b.x,R()),H=He(r(),b.y,R()),W=He(o(),b.width,R()),se=He(a(),b.height,R());n(A),i(H),s(W),l(se),Math.abs(A-b.x)<.5&&Math.abs(H-b.y)<.5&&Math.abs(W-b.width)<.5&&Math.abs(se-b.height)<.5?(C=null,v=false):C=requestAnimationFrame(T);};C=requestAnimationFrame(T);};return ie(De(()=>e.bounds,T=>{if(b=T,!m){n(b.x),i(b.y),s(b.width),l(b.height),m=true;return}E();})),ie(()=>{e.variant==="grabbed"&&e.createdAt&&(p=window.setTimeout(()=>{f(0);},1500));}),he(()=>{C!==null&&(cancelAnimationFrame(C),C=null),p!==null&&(window.clearTimeout(p),p=null),v=false;}),P(Q,{get when(){return e.visible!==false},get children(){var T=zi();return le(A=>{var H=_r("fixed box-border",e.variant==="drag"&&"pointer-events-none",e.variant!=="drag"&&"pointer-events-auto",e.variant==="grabbed"&&"z-2147483645",e.variant!=="grabbed"&&"z-2147483646",e.variant==="drag"&&"border border-dashed border-grab-purple/40 bg-grab-purple/5 will-change-[transform,width,height] cursor-crosshair",e.variant==="selection"&&"border border-dashed border-grab-purple/50 bg-grab-purple/8",e.variant==="grabbed"&&"border border-grab-purple bg-grab-purple/8 transition-opacity duration-300 ease-out"),W=`${r()}px`,se=`${t()}px`,ke=`${o()}px`,Ee=`${a()}px`,be=e.bounds.borderRadius,fe=e.bounds.transform,x=c(),g=e.variant==="drag"?"layout paint size":void 0;return H!==A.e&&pr(T,A.e=H),W!==A.t&&J(T,"top",A.t=W),se!==A.a&&J(T,"left",A.a=se),ke!==A.o&&J(T,"width",A.o=ke),Ee!==A.i&&J(T,"height",A.i=Ee),be!==A.n&&J(T,"border-radius",A.n=be),fe!==A.s&&J(T,"transform",A.s=fe),x!==A.h&&J(T,"opacity",A.h=x),g!==A.r&&J(T,"contain",A.r=g),A},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0}),T}})};var ji=re('<span class="inline-block w-2 h-2 border-[1.5px] border-grab-dark-pink border-t-transparent rounded-full mr-1 align-middle">'),Or=e=>{let t;return or(()=>{t&&t.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:600,easing:"linear",iterations:1/0});}),(()=>{var n=ji(),r=t;return typeof r=="function"?Fe(r,n):t=n,le(i=>gr(n,e.style,i)),n})()};var At=(e,t,n,r)=>{let i=window.innerWidth,o=window.innerHeight,s=8,a=8,l=i-n-8,c=o-r-8,f=Math.max(s,Math.min(e,l)),m=Math.max(a,Math.min(t,c));return {left:f,top:m}};var ot=e=>{let t=e.lerpFactor??.3,n=e.convergenceThreshold??.5,[r,i]=F(e.x()),[o,s]=F(e.y()),a=e.x(),l=e.y(),c=null,f=false,m=()=>{let p=He(r(),a,t),b=He(o(),l,t);i(p),s(b),Math.abs(p-a)<n&&Math.abs(b-l)<n?c=null:c=requestAnimationFrame(m);},C=()=>{c===null&&(c=requestAnimationFrame(m));};return ie(()=>{if(a=e.x(),l=e.y(),!f){i(a),s(l),f=true;return}C();}),he(()=>{c!==null&&(cancelAnimationFrame(c),c=null);}),{x:r,y:o}};var Fr=e=>{let[t,n]=F(0);return ie(De(()=>e.visible,r=>{if(r!==false)requestAnimationFrame(()=>{n(1);});else {n(0);return}if(e.autoFadeOutAfter!==void 0){let i=setTimeout(()=>{n(0);},e.autoFadeOutAfter);he(()=>clearTimeout(i));}})),t};var _t=(e,t,n,r,i)=>[{left:Math.round(e)+i,top:Math.round(t)+i},{left:Math.round(e)-n-i,top:Math.round(t)+i},{left:Math.round(e)+i,top:Math.round(t)-r-i},{left:Math.round(e)-n-i,top:Math.round(t)-r-i}];var Vi=re('<div class="absolute top-0 left-0 bottom-0 bg-grab-pink/20 rounded-[3px] transition-[width] duration-100 ease-out pointer-events-none">'),Gi=re('<span class="inline-block mr-1 font-semibold">\u2713'),Ui=re("<div class=mr-1>Copied"),Yi=re("<div class=ml-1>to clipboard"),Xi=re('<div class="text-[9px] opacity-60 text-center mt-0.5">Click or drag to select'),Wi=re('<div class="fixed bg-grab-pink-light text-grab-pink border border-grab-pink-border rounded text-[11px] font-medium font-sans pointer-events-none transition-opacity duration-200 ease-in-out overflow-hidden"style="max-width:calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)))"><div class="relative py-0.5 px-1.5 flex flex-col"><div class="flex items-center text-ellipsis whitespace-nowrap">'),hn=e=>{let t,n=ot({x:()=>e.x,y:()=>e.y,lerpFactor:.3}),r=Fr({visible:e.visible,autoFadeOutAfter:e.variant==="success"?1700:void 0}),i=()=>t?.getBoundingClientRect(),o=()=>{let s=i();if(!s)return {left:n.x(),top:n.y()};let a=window.innerWidth,l=window.innerHeight,c=_t(n.x(),n.y(),s.width,s.height,14);for(let m of c){let C=m.left>=8&&m.left+s.width<=a-8,p=m.top>=8&&m.top+s.height<=l-8;if(C&&p)return m}let f=At(c[0].left,c[0].top,s.width,s.height);return f.left+=4,f.top+=4,f};return P(Q,{get when(){return e.visible!==false},get children(){var s=Wi(),a=s.firstChild,l=a.firstChild,c=t;return typeof c=="function"?Fe(c,s):t=s,ue(s,P(Q,{get when(){return xe(()=>e.variant==="processing")()&&e.progress!==void 0},get children(){var f=Vi();return le(m=>J(f,"width",`${Math.min(100,Math.max(0,(e.progress??0)*100))}%`)),f}}),a),ue(l,P(Q,{get when(){return e.variant==="processing"},get children(){return P(Or,{})}}),null),ue(l,P(Q,{get when(){return e.variant==="success"},get children(){return Gi()}}),null),ue(l,P(Q,{get when(){return e.variant==="success"},get children(){return Ui()}}),null),ue(l,P(Q,{get when(){return e.variant==="processing"},children:"Please wait\u2026"}),null),ue(l,P(Q,{get when(){return e.variant!=="processing"},get children(){return e.content}}),null),ue(l,P(Q,{get when(){return e.variant==="success"},get children(){return Yi()}}),null),ue(a,P(Q,{get when(){return xe(()=>e.variant==="hover")()&&e.showHint},get children(){return Xi()}}),null),le(f=>{var m=`${o().top}px`,C=`${o().left}px`,p=e.zIndex?.toString()??"2147483647",b=r();return m!==f.e&&J(s,"top",f.e=m),C!==f.t&&J(s,"left",f.t=C),p!==f.a&&J(s,"z-index",f.a=p),b!==f.o&&J(s,"opacity",f.o=b),f},{e:void 0,t:void 0,a:void 0,o:void 0}),s}})};var qi=re('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">'),Lr=e=>{let t,n=null,r=0,i=0,o=1,s=ot({x:()=>e.mouseX,y:()=>e.mouseY,lerpFactor:.3}),a=()=>{t&&(o=Math.max(window.devicePixelRatio||1,2),r=window.innerWidth,i=window.innerHeight,t.width=r*o,t.height=i*o,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext("2d"),n&&n.scale(o,o));},l=()=>{n&&(n.clearRect(0,0,r,i),n.strokeStyle="rgba(210, 57, 192)",n.lineWidth=1,n.beginPath(),n.moveTo(s.x(),0),n.lineTo(s.x(),i),n.moveTo(0,s.y()),n.lineTo(r,s.y()),n.stroke());};return ie(()=>{a(),l();let c=()=>{a(),l();};window.addEventListener("resize",c),he(()=>{window.removeEventListener("resize",c);});}),ie(()=>{s.x(),s.y(),l();}),P(Q,{get when(){return e.visible!==false},get children(){var c=qi(),f=t;return typeof f=="function"?Fe(f,c):t=c,c}})};var Zi=re('<div data-react-grab-input class="fixed bg-grab-pink-light text-grab-pink border border-grab-pink-border rounded text-[11px] font-medium font-sans overflow-hidden"style="max-width:calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)))"><div class="relative p-0.5 px-[3px] flex flex-col gap-0.5"><textarea placeholder="e.g., Make this button larger"rows=1 class="w-[240px] px-1 py-0.5 bg-white text-grab-pink border border-grab-pink-border rounded-[3px] text-[11px] leading-tight font-sans outline-none resize-y min-h-[18px]"></textarea><div class="text-[9px] opacity-60 text-center">Enter \u23CE to submit, Escape to cancel'),Nr=e=>{let t,n,r=ot({x:()=>e.x,y:()=>e.y,lerpFactor:.3}),i=()=>t?.getBoundingClientRect(),o=()=>{let l=i();if(!l)return {left:r.x(),top:r.y()};let c=window.innerWidth,f=window.innerHeight,m=_t(r.x(),r.y(),l.width,l.height,14);for(let p of m){let b=p.left>=8&&p.left+l.width<=c-8,v=p.top>=8&&p.top+l.height<=f-8;if(b&&v)return p}let C=At(m[0].left,m[0].top,l.width,l.height);return C.left+=4,C.top+=4,C},s=l=>{l.code==="Enter"&&!l.shiftKey?(l.preventDefault(),l.stopPropagation(),e.onSubmit()):l.code==="Escape"&&(l.preventDefault(),l.stopPropagation(),e.onCancel());},a=l=>{let c=l.target;e.onInput(c.value);};return ie(()=>{e.visible&&n?n.focus():!e.visible&&n&&n.blur();}),(()=>{var l=Zi(),c=l.firstChild,f=c.firstChild,m=t;typeof m=="function"?Fe(m,l):t=l,f.$$keydown=s,f.$$input=a;var C=n;return typeof C=="function"?Fe(C,f):n=f,le(p=>{var b=e.visible?"block":"none",v=`${o().top}px`,R=`${o().left}px`,E=e.zIndex?.toString()??"2147483647",T=e.visible?"auto":"none";return b!==p.e&&J(l,"display",p.e=b),v!==p.t&&J(l,"top",p.t=v),R!==p.a&&J(l,"left",p.a=R),E!==p.o&&J(l,"z-index",p.o=E),T!==p.i&&J(l,"pointer-events",p.i=T),p},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),le(()=>f.value=e.value),l})()};mr(["input","keydown"]);var Ir=e=>[P(Q,{get when(){return xe(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return P(Rt,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible}})}}),P(Q,{get when(){return xe(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return P(Lr,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),P(Q,{get when(){return xe(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return P(Rt,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),P(kt,{get each(){return e.grabbedBoxes??[]},children:t=>P(Rt,{variant:"grabbed",get bounds(){return t.bounds},get createdAt(){return t.createdAt}})}),P(Q,{get when(){return e.labelVariant!=="processing"},get children(){return P(kt,{get each(){return e.successLabels??[]},children:t=>P(hn,{variant:"success",get content(){return xe(()=>t.text)},get x(){return e.mouseX??0},get y(){return e.mouseY??0}})})}}),P(Q,{get when(){return xe(()=>!!(e.labelVisible&&e.labelVariant&&e.labelContent!==void 0&&e.labelX!==void 0))()&&e.labelY!==void 0},get children(){return P(hn,{get variant(){return e.labelVariant},get content(){return e.labelContent},get x(){return e.labelX},get y(){return e.labelY},get visible(){return e.labelVisible},get zIndex(){return e.labelZIndex},get progress(){return e.progress},get showHint(){return e.labelShowHint}})}}),P(Nr,{get x(){return e.inputX??0},get y(){return e.inputY??0},get zIndex(){return e.labelZIndex},get value(){return e.inputValue??""},get visible(){return e.inputVisible??false},get onInput(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get onCancel(){return e.onInputCancel}})];var $r="0.5.16",Nt=`bippy-${$r}`,Pr=Object.defineProperty,Ki=Object.prototype.hasOwnProperty,pt=()=>{},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{}},It=(e=Ne())=>"getFiberRoots"in e,Hr=false,Mr,gt=(e=Ne())=>Hr?true:(typeof e.inject=="function"&&(Mr=e.inject.toString()),!!Mr?.includes("(injected)")),Ft=new Set,qe=new Set,Br=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:Nt,checkDCE:Dr,hasUnsupportedRendererAttached:false,inject(i){let o=++n;return t.set(o,i),qe.add(i),r._instrumentationIsActive||(r._instrumentationIsActive=true,Ft.forEach(s=>s())),o},on:pt,onCommitFiberRoot:pt,onCommitFiberUnmount:pt,onPostCommitFiberRoot:pt,renderers:t,supportsFiber:true,supportsFlight:true};try{Pr(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(s){if(s&&typeof s=="object"){let a=r.renderers;r=s,a.size>0&&(a.forEach((l,c)=>{qe.add(l),s.renderers.set(c,l);}),Lt(e));}}});let i=window.hasOwnProperty,o=!1;Pr(window,"hasOwnProperty",{configurable:!0,value:function(...s){try{if(!o&&s[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,o=!0,-0}catch{}return i.apply(this,s)},writable:!0});}catch{Lt(e);}return r},Lt=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=Nt,t._instrumentationIsActive=!1;let n=It(t);if(n||(t.on=pt),t.renderers.size){t._instrumentationIsActive=!0,Ft.forEach(o=>o());return}let r=t.inject,i=gt(t);i&&!n&&(Hr=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let s=r(o);return qe.add(o),i&&t.renderers.set(s,o),t._instrumentationIsActive=!0,Ft.forEach(a=>a()),s};}(t.renderers.size||t._instrumentationIsActive||gt())&&e?.();}catch{}},bn=()=>Ki.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Ne=e=>bn()?(Lt(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Br(e),zr=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),yn=()=>{try{zr()&&Ne();}catch{}};yn();var Pt=0,Mt=1;var $t=5;var Dt=11,wn=13,jr=14,Ht=15,xn=16;var vn=19;var Bt=26,zt=27,Cn=28,Sn=30;var jt=e=>{switch(e.tag){case $t:case Bt:case zt:return true;default:return typeof e.type=="string"}},Vt=e=>{switch(e.tag){case Mt:case Dt:case Pt:case jr:case Ht:return true;default:return false}},Tn=e=>!e||typeof e!="object"?true:"pendingProps"in e&&!("containerInfo"in e);function it(e,t,n=false){if(!e)return null;let r=t(e);if(r instanceof Promise)return (async()=>{if(await r===true)return e;let o=n?e.return:e.child;for(;o;){let s=await En(o,t,n);if(s)return s;o=n?null:o.sibling;}return null})();if(r===true)return e;let i=n?e.return:e.child;for(;i;){let o=kn(i,t,n);if(o)return o;i=n?null:i.sibling;}return null}var kn=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=kn(r,t,n);if(i)return i;r=n?null:r.sibling;}return null},En=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=await En(r,t,n);if(i)return i;r=n?null:r.sibling;}return null};var Rn=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?Rn(t.type||t.render):null},Ze=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=Rn(t);return r&&(r.displayName||r.name)||null};var je=()=>!!Ne()._instrumentationIsActive||It()||gt(),Gt=e=>{let t=e.alternate;if(!t)return e;if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let n of Vr){let r=it(n.current,i=>{if(i===e)return true});if(r)return r}return e};var ht=e=>{let t=Ne();for(let n of t.renderers.values())try{let r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let n in e)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return e[n]||null}return null},Vr=new Set;var ss=Object.create,Kr=Object.defineProperty,as=Object.getOwnPropertyDescriptor,ls=Object.getOwnPropertyNames,cs=Object.getPrototypeOf,us=Object.prototype.hasOwnProperty,ds=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fs=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=ls(t),o=0,s=i.length,a;o<s;o++)a=i[o],!us.call(e,a)&&a!==n&&Kr(e,a,{get:(l=>t[l]).bind(null,a),enumerable:!(r=as(t,a))||r.enumerable});return e},ms=(e,t,n)=>(n=e==null?{}:ss(cs(e)),fs(Kr(n,"default",{value:e,enumerable:true}),e)),ps=()=>{let e=Ne();for(let t of [...Array.from(qe),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},Gr=e=>{for(let t of qe){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},Ie=e=>`
|
|
11
|
+
in ${e}`,gs=(e,t)=>{let n=Ie(e);return t&&(n+=` (at ${t})`),n},An=false,_n=(e,t)=>{if(!e||An)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,An=true;let r=ps();Gr(null);let i=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let l={DetermineComponentFrameRoot(){let C;try{if(t){let p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[]);}catch(b){C=b;}Reflect.construct(e,[],p);}else {try{p.call();}catch(b){C=b;}e.call(p.prototype);}}else {try{throw Error()}catch(b){C=b;}let p=e();p&&typeof p.catch=="function"&&p.catch(()=>{});}}catch(p){if(p instanceof Error&&C instanceof Error&&typeof p.stack=="string")return [p.stack,C.stack]}return [null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[f,m]=l.DetermineComponentFrameRoot();if(f&&m){let C=f.split(`
|
|
12
|
+
`),p=m.split(`
|
|
13
|
+
`),b=0,v=0;for(;b<C.length&&!C[b].includes("DetermineComponentFrameRoot");)b++;for(;v<p.length&&!p[v].includes("DetermineComponentFrameRoot");)v++;if(b===C.length||v===p.length)for(b=C.length-1,v=p.length-1;b>=1&&v>=0&&C[b]!==p[v];)v--;for(;b>=1&&v>=0;b--,v--)if(C[b]!==p[v]){if(b!==1||v!==1)do if(b--,v--,v<0||C[b]!==p[v]){let R=`
|
|
14
|
+
${C[b].replace(" at new "," at ")}`,E=Ze(e);return E&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",E)),R}while(b>=1&&v>=0);break}}}finally{An=false,Error.prepareStackTrace=n,Gr(r),console.error=i,console.warn=o;}let s=e?Ze(e):"";return s?Ie(s):""},hs=(e,t)=>{let n=e.tag,r="";switch(n){case Cn:r=Ie("Activity");break;case Mt:r=_n(e.type,true);break;case Dt:r=_n(e.type.render,false);break;case Pt:case Ht:r=_n(e.type,false);break;case $t:case Bt:case zt:r=Ie(e.type);break;case xn:r=Ie("Lazy");break;case wn:r=e.child!==t&&t!==null?Ie("Suspense Fallback"):Ie("Suspense");break;case vn:r=Ie("SuspenseList");break;case Sn:r=Ie("ViewTransition");break;default:return ""}return r},bs=e=>{try{let t="",n=e,r=null;do{t+=hs(n,r);let i=n._debugInfo;if(i&&Array.isArray(i))for(let o=i.length-1;o>=0;o--){let s=i[o];typeof s.name=="string"&&(t+=gs(s.name,s.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
|
|
14
15
|
Error generating stack: ${t.message}
|
|
15
|
-
${t.stack}`:""}},
|
|
16
|
+
${t.stack}`:""}},ys=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return "";Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
|
|
16
17
|
`)&&(n=n.slice(29));let r=n.indexOf(`
|
|
17
18
|
`);if(r!==-1&&(n=n.slice(r+1)),r=Math.max(n.indexOf("react_stack_bottom_frame"),n.indexOf("react-stack-bottom-frame")),r!==-1&&(r=n.lastIndexOf(`
|
|
18
|
-
`,r)),r!==-1)n=n.slice(0,r);else return "";return n},
|
|
19
|
-
`),r=[];for(let
|
|
20
|
-
`).filter(r=>!!r.match(
|
|
21
|
-
`).filter(r=>!r.match(
|
|
22
|
-
`),r;for(let
|
|
23
|
-
`)},
|
|
24
|
-
`):`(${
|
|
25
|
-
${
|
|
26
|
-
${
|
|
27
|
-
${
|
|
28
|
-
</${t}>`:`<${t}${r} />`};var Li=()=>document.hasFocus()?new Promise(e=>setTimeout(e,50)):new Promise(e=>{let t=()=>{window.removeEventListener("focus",t),setTimeout(e,50);};window.addEventListener("focus",t),window.focus();}),Lt=async(e,t)=>{await Li();try{try{return await navigator.clipboard.writeText(e),t?.(),!0}catch{return Mi(e,t)}}catch{return false}},Mi=(e,t)=>{if(!document.execCommand)return false;let n=document.createElement("textarea");n.value=String(e),n.style.clipPath="inset(50%)",n.ariaHidden="true",(document.body||document.documentElement).append(n);try{n.select();let o=document.execCommand("copy");return o&&t?.(),o}finally{n.remove();}};var ot=()=>{try{let e=new(window.AudioContext||window.webkitAudioContext),t=e.createGain();t.connect(e.destination),[{freq:523.25,start:0,duration:.1},{freq:659.25,start:.05,duration:.1},{freq:783.99,start:.1,duration:.15}].forEach(r=>{let o=e.createOscillator(),i=e.createGain();o.connect(i),i.connect(t),o.frequency.value=r.freq,o.type="triangle";let s=e.currentTime+r.start,l=s+.01,a=s+r.duration;i.gain.setValueAtTime(0,s),i.gain.linearRampToValueAtTime(.15,l),i.gain.exponentialRampToValueAtTime(.01,a),o.start(s),o.stop(a);});}catch{}};var Fr=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var it=e=>{if(e.closest(`[${Ue}]`))return false;let t=window.getComputedStyle(e);return !(!Fr(e,t)||t.pointerEvents==="none")};var un=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(it(r))return r;return null};var $i=(e,t)=>{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),o=Math.min(e.right,t.right),i=Math.min(e.bottom,t.bottom),s=Math.max(0,o-n),l=Math.max(0,i-r);return s*l},Di=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,Ir=(e,t,n)=>{let r=[],o=Array.from(document.querySelectorAll("*")),i={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height};for(let s of o){if(!n){let c=(s.tagName||"").toUpperCase();if(c==="HTML"||c==="BODY")continue}if(!t(s))continue;let l=s.getBoundingClientRect(),a={left:l.left,top:l.top,right:l.left+l.width,bottom:l.top+l.height};if(n){let c=$i(i,a),m=Math.max(0,l.width*l.height);m>0&&c/m>=.75&&r.push(s);}else Di(a,i)&&r.push(s);}return r},Nr=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),Pr=(e,t)=>{let n=Ir(e,t,true);return Nr(n)},Lr=(e,t)=>{let n=Ir(e,t,false);return Nr(n)};var Mt=e=>{let t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return {borderRadius:n.borderRadius||"0px",height:t.height,transform:n.transform||"none",width:t.width,x:t.left,y:t.top}};var Mr=false,$r=e=>{let t={enabled:true,keyHoldDuration:300,allowActivationInsideInput:true,playCopySound:false,...e};return t.enabled===false||Mr?{activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{}}:(Mr=true,(()=>{try{let r="0.0.48",i=`data:image/svg+xml;base64,${btoa('<svg width="294" height="294" viewBox="0 0 294 294" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_0_3)"><mask id="mask0_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="294" height="294"><path d="M294 0H0V294H294V0Z" fill="white"/></mask><g mask="url(#mask0_0_3)"><path d="M144.599 47.4924C169.712 27.3959 194.548 20.0265 212.132 30.1797C227.847 39.2555 234.881 60.3243 231.926 89.516C231.677 92.0069 231.328 94.5423 230.94 97.1058L228.526 110.14C228.517 110.136 228.505 110.132 228.495 110.127C228.486 110.165 228.479 110.203 228.468 110.24L216.255 105.741C216.256 105.736 216.248 105.728 216.248 105.723C207.915 103.125 199.421 101.075 190.82 99.5888L190.696 99.5588L173.526 97.2648L173.511 97.2631C173.492 97.236 173.467 97.2176 173.447 97.1905C163.862 96.2064 154.233 95.7166 144.599 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8624 138.391 86.939 147.193C90.8624 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245C115.749 197.245 115.758 197.246 115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.507 229.974L144.609 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.472 238.38C154.485 238.392 154.499 238.402 154.513 238.412L143.846 247.482L143.827 247.497C126.56 261.128 109.472 268.745 94.8019 268.745C88.5916 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3164 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3363 185.327 9.52301 167.51 9.52301 147.193C9.52301 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3164 60.3243 61.3496 39.2555 77.0657 30.1797C94.6494 20.0265 119.486 27.3959 144.599 47.4924ZM70.6423 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5176 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8516 207.742 83.0977 205.066 70.6423 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1787 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.9311 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.759 110.203C59.234 110.839 57.7378 111.475 56.27 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9104 147.193C67.822 135.23 63.7566 122.855 60.759 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.854 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.6291 47.6015 67.6975 64.5954 70.0424 87.9446L70.0416 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8263 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.773 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.29 38.512C183.321 38.512 169.34 44.4991 154.444 56.0153C163.93 64.9374 172.634 74.6557 180.462 85.064C193.375 86.6345 206.128 89.3102 218.584 93.0624C218.812 91.4325 219.003 89.8118 219.165 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.552 64.3097C138.104 70.2614 132.054 76.6306 126.443 83.3765C132.39 82.995 138.426 82.8046 144.552 82.8046C150.727 82.8046 156.778 83.0143 162.707 83.3765C157.08 76.6293 151.015 70.2596 144.552 64.3097Z" fill="white"/><path d="M144.598 47.4924C169.712 27.3959 194.547 20.0265 212.131 30.1797C227.847 39.2555 234.88 60.3243 231.926 89.516C231.677 92.0069 231.327 94.5423 230.941 97.1058L228.526 110.14L228.496 110.127C228.487 110.165 228.478 110.203 228.469 110.24L216.255 105.741L216.249 105.723C207.916 103.125 199.42 101.075 190.82 99.5888L190.696 99.5588L173.525 97.2648L173.511 97.263C173.492 97.236 173.468 97.2176 173.447 97.1905C163.863 96.2064 154.234 95.7166 144.598 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8622 138.391 86.939 147.193C90.8622 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245L115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.506 229.974L144.61 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.473 238.38L154.512 238.412L143.847 247.482L143.827 247.497C126.56 261.13 109.472 268.745 94.8018 268.745C88.5915 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3162 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3362 185.327 9.52298 167.51 9.52298 147.193C9.52298 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3162 60.3243 61.3496 39.2555 77.0657 30.1797C94.6493 20.0265 119.486 27.3959 144.598 47.4924ZM70.6422 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5175 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8515 207.742 83.0977 205.066 70.6422 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1786 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.931 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.7589 110.203C59.234 110.839 57.7378 111.475 56.2699 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9103 147.193C67.822 135.23 63.7566 122.855 60.7589 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.8539 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.629 47.6015 67.6975 64.5954 70.0424 87.9446L70.0415 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8262 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.772 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.291 38.512C183.321 38.512 169.34 44.4991 154.443 56.0153C163.929 64.9374 172.634 74.6557 180.462 85.064C193.374 86.6345 206.129 89.3102 218.584 93.0624C218.813 91.4325 219.003 89.8118 219.166 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.551 64.3097C138.103 70.2614 132.055 76.6306 126.443 83.3765C132.389 82.995 138.427 82.8046 144.551 82.8046C150.727 82.8046 156.779 83.0143 162.707 83.3765C157.079 76.6293 151.015 70.2596 144.551 64.3097Z" fill="#FF40E0"/></g><mask id="mask1_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="102" y="84" width="161" height="162"><path d="M235.282 84.827L102.261 112.259L129.693 245.28L262.714 217.848L235.282 84.827Z" fill="white"/></mask><g mask="url(#mask1_0_3)"><path d="M136.863 129.916L213.258 141.224C220.669 142.322 222.495 152.179 215.967 155.856L187.592 171.843L184.135 204.227C183.339 211.678 173.564 213.901 169.624 207.526L129.021 141.831C125.503 136.14 130.245 128.936 136.863 129.916Z" fill="#FF40E0" stroke="#FF40E0" stroke-width="0.817337" stroke-linecap="round" stroke-linejoin="round"/></g></g><defs><clipPath id="clip0_0_3"><rect width="294" height="294" fill="white"/></clipPath></defs></svg>')}`;console.log(`%cReact Grab${r?` v${r}`:""}%c
|
|
29
|
-
https://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${
|
|
19
|
+
`,r)),r!==-1)n=n.slice(0,r);else return "";return n},ws=/(^|@)\S+:\d+/,Qr=/^\s*at .*(\S+:\d+|\(native\))/m,xs=/^(eval@)?(\[native code\])?$/;var vs=(e,t)=>{if(t?.includeInElement!==false){let n=e.split(`
|
|
20
|
+
`),r=[];for(let i of n)if(/^\s*at\s+/.test(i)){let o=Ur(i,void 0)[0];o&&r.push(o);}else if(/^\s*in\s+/.test(i)){let o=i.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");r.push({function:o,raw:i});}else if(i.match(ws)){let o=Yr(i,void 0)[0];o&&r.push(o);}return On(r,t)}return e.match(Qr)?Ur(e,t):Yr(e,t)},Jr=e=>{if(!e.includes(":"))return [e,void 0,void 0];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/,n=t.exec(e.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]},On=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e;var Ur=(e,t)=>On(e.split(`
|
|
21
|
+
`).filter(r=>!!r.match(Qr)),t).map(r=>{let i=r;i.includes("(eval ")&&(i=i.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let o=i.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),s=o.match(/ (\(.+\)$)/);o=s?o.replace(s[0],""):o;let a=Jr(s?s[1]:o),l=s&&o||void 0,c=["eval","<anonymous>"].includes(a[0])?void 0:a[0];return {function:l,file:c,line:a[1]?+a[1]:void 0,col:a[2]?+a[2]:void 0,raw:i}});var Yr=(e,t)=>On(e.split(`
|
|
22
|
+
`).filter(r=>!r.match(xs)),t).map(r=>{let i=r;if(i.includes(" > eval")&&(i=i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!i.includes("@")&&!i.includes(":"))return {function:i};{let o=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,s=i.match(o),a=s&&s[1]?s[1]:void 0,l=Jr(i.replace(o,""));return {function:a,file:l[0],line:l[1]?+l[1]:void 0,col:l[2]?+l[2]:void 0,raw:i}}});var Cs=ds((e,t)=>{(function(n,r){typeof e=="object"&&t!==void 0?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.sourcemapCodec={}));})(void 0,function(n){let r=44,i=59,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),a=new Uint8Array(128);for(let x=0;x<o.length;x++){let g=o.charCodeAt(x);s[x]=g,a[g]=x;}function l(x,g){let d=0,w=0,k=0;do{let B=x.next();k=a[B],d|=(k&31)<<w,w+=5;}while(k&32);let L=d&1;return d>>>=1,L&&(d=-2147483648|-d),g+d}function c(x,g,d){let w=g-d;w=w<0?-w<<1|1:w<<1;do{let k=w&31;w>>>=5,w>0&&(k|=32),x.write(s[k]);}while(w>0);return g}function f(x,g){return x.pos>=g?false:x.peek()!==r}let m=1024*16,C=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(x){return Buffer.from(x.buffer,x.byteOffset,x.byteLength).toString()}}:{decode(x){let g="";for(let d=0;d<x.length;d++)g+=String.fromCharCode(x[d]);return g}};class p{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(m);}write(g){let{buffer:d}=this;d[this.pos++]=g,this.pos===m&&(this.out+=C.decode(d),this.pos=0);}flush(){let{buffer:g,out:d,pos:w}=this;return w>0?d+C.decode(g.subarray(0,w)):d}}class b{constructor(g){this.pos=0,this.buffer=g;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(g){let{buffer:d,pos:w}=this,k=d.indexOf(g,w);return k===-1?d.length:k}}let v=[];function R(x){let{length:g}=x,d=new b(x),w=[],k=[],L=0;for(;d.pos<g;d.pos++){L=l(d,L);let B=l(d,0);if(!f(d,g)){let K=k.pop();K[2]=L,K[3]=B;continue}let I=l(d,0),$=l(d,0),z=$&1,N=z?[L,B,0,0,I,l(d,0)]:[L,B,0,0,I],ee=v;if(f(d,g)){ee=[];do{let K=l(d,0);ee.push(K);}while(f(d,g))}N.vars=ee,w.push(N),k.push(N);}return w}function E(x){let g=new p;for(let d=0;d<x.length;)d=T(x,d,g,[0]);return g.flush()}function T(x,g,d,w){let k=x[g],{0:L,1:B,2:I,3:$,4:z,vars:N}=k;g>0&&d.write(r),w[0]=c(d,L,w[0]),c(d,B,0),c(d,z,0);let ee=k.length===6?1:0;c(d,ee,0),k.length===6&&c(d,k[5],0);for(let K of N)c(d,K,0);for(g++;g<x.length;){let K=x[g],{0:D,1:te}=K;if(D>I||D===I&&te>=$)break;g=T(x,g,d,w);}return d.write(r),w[0]=c(d,I,w[0]),c(d,$,0),g}function A(x){let{length:g}=x,d=new b(x),w=[],k=[],L=0,B=0,I=0,$=0,z=0,N=0,ee=0,K=0;do{let D=d.indexOf(";"),te=0;for(;d.pos<D;d.pos++){if(te=l(d,te),!f(d,D)){let q=k.pop();q[2]=L,q[3]=te;continue}let ce=l(d,0),Ge=ce&1,Pe=ce&2,me=ce&4,Ke=null,Qe=v,ve;if(Ge){let q=l(d,B);I=l(d,B===q?I:0),B=q,ve=[L,te,0,0,q,I];}else ve=[L,te,0,0];if(ve.isScope=!!me,Pe){let q=$,Ce=z;$=l(d,$);let Se=q===$;z=l(d,Se?z:0),N=l(d,Se&&Ce===z?N:0),Ke=[$,z,N];}if(ve.callsite=Ke,f(d,D)){Qe=[];do{ee=L,K=te;let q=l(d,0),Ce;if(q<-1){Ce=[[l(d,0)]];for(let Se=-1;Se>q;Se--){let ye=ee;ee=l(d,ee),K=l(d,ee===ye?K:0);let Te=l(d,0);Ce.push([Te,ee,K]);}}else Ce=[[q]];Qe.push(Ce);}while(f(d,D))}ve.bindings=Qe,w.push(ve),k.push(ve);}L++,d.pos=D+1;}while(d.pos<g);return w}function H(x){if(x.length===0)return "";let g=new p;for(let d=0;d<x.length;)d=W(x,d,g,[0,0,0,0,0,0,0]);return g.flush()}function W(x,g,d,w){let k=x[g],{0:L,1:B,2:I,3:$,isScope:z,callsite:N,bindings:ee}=k;w[0]<L?(se(d,w[0],L),w[0]=L,w[1]=0):g>0&&d.write(r),w[1]=c(d,k[1],w[1]);let K=(k.length===6?1:0)|(N?2:0)|(z?4:0);if(c(d,K,0),k.length===6){let{4:D,5:te}=k;D!==w[2]&&(w[3]=0),w[2]=c(d,D,w[2]),w[3]=c(d,te,w[3]);}if(N){let{0:D,1:te,2:ce}=k.callsite;D===w[4]?te!==w[5]&&(w[6]=0):(w[5]=0,w[6]=0),w[4]=c(d,D,w[4]),w[5]=c(d,te,w[5]),w[6]=c(d,ce,w[6]);}if(ee)for(let D of ee){D.length>1&&c(d,-D.length,0);let te=D[0][0];c(d,te,0);let ce=L,Ge=B;for(let Pe=1;Pe<D.length;Pe++){let me=D[Pe];ce=c(d,me[1],ce),Ge=c(d,me[2],Ge),c(d,me[0],0);}}for(g++;g<x.length;){let D=x[g],{0:te,1:ce}=D;if(te>I||te===I&&ce>=$)break;g=W(x,g,d,w);}return w[0]<I?(se(d,w[0],I),w[0]=I,w[1]=0):d.write(r),w[1]=c(d,$,w[1]),g}function se(x,g,d){do x.write(i);while(++g<d)}function ke(x){let{length:g}=x,d=new b(x),w=[],k=0,L=0,B=0,I=0,$=0;do{let z=d.indexOf(";"),N=[],ee=true,K=0;for(k=0;d.pos<z;){let D;k=l(d,k),k<K&&(ee=false),K=k,f(d,z)?(L=l(d,L),B=l(d,B),I=l(d,I),f(d,z)?($=l(d,$),D=[k,L,B,I,$]):D=[k,L,B,I]):D=[k],N.push(D),d.pos++;}ee||Ee(N),w.push(N),d.pos=z+1;}while(d.pos<=g);return w}function Ee(x){x.sort(be);}function be(x,g){return x[0]-g[0]}function fe(x){let g=new p,d=0,w=0,k=0,L=0;for(let B=0;B<x.length;B++){let I=x[B];if(B>0&&g.write(i),I.length===0)continue;let $=0;for(let z=0;z<I.length;z++){let N=I[z];z>0&&g.write(r),$=c(g,N[0],$),N.length!==1&&(d=c(g,N[1],d),w=c(g,N[2],w),k=c(g,N[3],k),N.length!==4&&(L=c(g,N[4],L)));}}return g.flush()}n.decode=ke,n.decodeGeneratedRanges=A,n.decodeOriginalScopes=R,n.encode=fe,n.encodeGeneratedRanges=H,n.encodeOriginalScopes=E,Object.defineProperty(n,"__esModule",{value:true});});}),eo=ms(Cs()),to=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Ss=/^data:application\/json[^,]+base64,/,Ts=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,no=typeof WeakRef<"u",bt=new Map,Ut=new Map,ks=e=>no&&e instanceof WeakRef,Xr=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let o=null;for(let f of i)if(f[0]<=r)o=f;else break;if(!o||o.length<4)return null;let[,s,a,l]=o;if(s===void 0||a===void 0||l===void 0)return null;let c=t[s];return c?{columnNumber:l,fileName:c,lineNumber:a+1}:null},Es=(e,t,n)=>{if(e.sections){let r=null;for(let s of e.sections)if(t>s.offset.line||t===s.offset.line&&n>=s.offset.column)r=s;else break;if(!r)return null;let i=t-r.offset.line,o=t===r.offset.line?n-r.offset.column:n;return Xr(r.map.mappings,r.map.sources,i,o)}return Xr(e.mappings,e.sources,t-1,n)},Rs=(e,t)=>{let n=t.split(`
|
|
23
|
+
`),r;for(let o=n.length-1;o>=0&&!r;o--){let s=n[o].match(Ts);s&&(r=s[1]||s[2]);}if(!r)return null;let i=to.test(r);if(!(Ss.test(r)||i||r.startsWith("/"))){let o=e.split("/");o[o.length-1]=r,r=o.join("/");}return r},As=e=>({file:e.file,mappings:(0, eo.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),_s=e=>{let t=e.sections.map(({map:r,offset:i})=>({map:{...r,mappings:(0, eo.decode)(r.mappings)},offset:i})),n=new Set;for(let r of t)for(let i of r.map.sources)n.add(i);return {file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},Wr=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(to);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},Os=async(e,t=fetch)=>{if(!Wr(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=Rs(e,n);if(!r||!Wr(r))return null;try{let i=await t(r),o=await i.json();return "sections"in o?_s(o):As(o)}catch{return null}},Fs=async(e,t=true,n)=>{if(t&&bt.has(e)){let o=bt.get(e);if(o==null)return null;if(ks(o)){let s=o.deref();if(s)return s;bt.delete(e);}else return o}if(t&&Ut.has(e))return Ut.get(e);let r=Os(e,n);t&&Ut.set(e,r);let i=await r;return t&&Ut.delete(e),t&&(i===null?bt.set(e,null):bt.set(e,no?new WeakRef(i):i)),i},qr=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Ls=["rsc://","file:///","webpack://","node:","turbopack://","metro://"],Zr="about://React/",Ns=["<anonymous>","eval",""],Is=/\.(jsx|tsx|ts|js)$/,Ps=/(\.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,Ms=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,$s=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",Ds=e=>{let t=e._debugSource;return t?typeof t=="object"&&!!t&&"fileName"in t&&typeof t.fileName=="string"&&"lineNumber"in t&&typeof t.lineNumber=="number":false},ro=async(e,t=true,n)=>{if(Ds(e))return e._debugSource||null;let r=Hs(e),i=await Bs(r,1,t,n);return !i||i.length===0?null:i[0]},Hs=e=>$s(e)?ys(e._debugStack.stack):bs(e);var Bs=async(e,t=1,n=true,r)=>{let i=vs(e,{slice:t??1}),o=[];for(let s of i){if(!s?.file)continue;let a=await Fs(s.file,n,r);if(a&&typeof s.line=="number"&&typeof s.col=="number"){let l=Es(a,s.line,s.col);if(l){o.push(l);continue}}o.push({fileName:s.file,lineNumber:s.line,columnNumber:s.col,functionName:s.function});}return o},Fn=e=>{if(!e||Ns.includes(e))return "";let t=e;if(t.startsWith(Zr)){let r=t.slice(Zr.length),i=r.indexOf("/"),o=r.indexOf(":");t=i!==-1&&(o===-1||i<o)?r.slice(i+1):r;}for(let r of Ls)if(t.startsWith(r)){t=t.slice(r.length),r==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`);break}if(qr.test(t)){let r=t.match(qr);r&&(t=t.slice(r[0].length));}let n=t.indexOf("?");if(n!==-1){let r=t.slice(n);Ms.test(r)&&(t=t.slice(0,n));}return t},oo=e=>{let t=Fn(e);return !(!t||!Is.test(t)||Ps.test(t))};var io=e=>e.length>0&&/^[A-Z]/.test(e);var zs=["InnerLayoutRouter","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","LoadingBoundary","ErrorBoundary","InnerScrollAndFocusHandler","ScrollAndFocusHandler","RenderFromTemplateContext","OuterLayoutRouter","body","html","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","DevRootHTTPAccessFallbackBoundary","AppDevOverlayErrorBoundary","AppDevOverlay","HotReload","Router","ErrorBoundaryHandler","ErrorBoundary","AppRouter","ServerRoot","SegmentStateProvider","RootErrorBoundary"],js=()=>!!document.getElementById("__NEXT_DATA__"),so=e=>!!(e.startsWith("_")||zs.includes(e)),Vs=e=>!(so(e)||!io(e)||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context")),Yt=e=>{if(!je())return null;try{let t=ht(e);if(!t)return null;let n=null;return it(t,r=>{if(Vt(r)){let i=Ze(r);if(i&&Vs(i))return n=i,!0}return !1},!0),n}catch{return null}},Xt=async e=>{if(!je())return [];try{let t=ht(e);if(!t||!Tn(t))return [];let n=Gt(t),r=[];return it(n,o=>{let s=jt(o)?typeof o.type=="string"?o.type:null:Ze(o);s&&!so(s)&&r.push({name:s,sourcePromise:ro(o)});},!0),(await Promise.all(r.map(async o=>({name:o.name,source:await o.sourcePromise})))).filter(o=>o.source!==null)}catch{return []}},Wt=e=>{let t=js();return e.map(({name:n,source:r})=>{if(!r)return ` at ${n}`;if(r.fileName.startsWith("about://React/Server"))return ` at ${n} (Server)`;if(!oo(r.fileName))return ` at ${n}`;let i=` at ${n} in ${Fn(r.fileName)}`;return t?`${i}:${r.lineNumber}:${r.columnNumber}`:i}).join(`
|
|
24
|
+
`)},qt=e=>{let t=e.tagName.toLowerCase();if(!(e instanceof HTMLElement))return `<${t} />`;let n=e.innerText?.trim()??e.textContent?.trim()??"",r="",i=Array.from(e.attributes);for(let p of i){let b=p.name,v=p.value;v.length>20&&(v=`${v.slice(0,20)}...`),r+=` ${b}="${v}"`;}let o=[],s=[],a=false,l=Array.from(e.childNodes);for(let p of l)p.nodeType!==Node.COMMENT_NODE&&(p.nodeType===Node.TEXT_NODE?p.textContent&&p.textContent.trim().length>0&&(a=true):p instanceof Element&&(a?s.push(p):o.push(p)));let c=p=>p.length===0?"":p.length<=2?p.map(b=>`<${b.tagName.toLowerCase()} ...>`).join(`
|
|
25
|
+
`):`(${p.length} elements)`,f="",m=c(o);if(m&&(f+=`
|
|
26
|
+
${m}`),n.length>0){let p=n.length>100?`${n.slice(0,100)}...`:n;f+=`
|
|
27
|
+
${p}`;}let C=c(s);return C&&(f+=`
|
|
28
|
+
${C}`),f.length>0?`<${t}${r}>${f}
|
|
29
|
+
</${t}>`:`<${t}${r} />`};var Gs=()=>document.hasFocus()?new Promise(e=>setTimeout(e,50)):new Promise(e=>{let t=()=>{window.removeEventListener("focus",t),setTimeout(e,50);};window.addEventListener("focus",t),window.focus();}),Zt=async(e,t)=>{await Gs();try{try{return await navigator.clipboard.writeText(e),t?.(),!0}catch{return Us(e,t)}}catch{return false}},Us=(e,t)=>{if(!document.execCommand)return false;let n=document.createElement("textarea");n.value=String(e),n.style.clipPath="inset(50%)",n.ariaHidden="true",(document.body||document.documentElement).append(n);try{n.select();let i=document.execCommand("copy");return i&&t?.(),i}finally{n.remove();}};var ao=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var yt=e=>{if(e.closest(`[${tt}]`))return false;let t=window.getComputedStyle(e);return !(!ao(e,t)||t.pointerEvents==="none")};var Ln=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(yt(r))return r;return null};var Ys=(e,t)=>{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom),s=Math.max(0,i-n),a=Math.max(0,o-r);return s*a},Xs=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,lo=(e,t,n)=>{let r=[],i=Array.from(document.querySelectorAll("*")),o={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height};for(let s of i){if(!n){let c=(s.tagName||"").toUpperCase();if(c==="HTML"||c==="BODY")continue}if(!t(s))continue;let a=s.getBoundingClientRect(),l={left:a.left,top:a.top,right:a.left+a.width,bottom:a.top+a.height};if(n){let c=Ys(o,l),f=Math.max(0,a.width*a.height);f>0&&c/f>=.75&&r.push(s);}else Xs(l,o)&&r.push(s);}return r},co=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),uo=(e,t)=>{let n=lo(e,t,true);return co(n)},fo=(e,t)=>{let n=lo(e,t,false);return co(n)};var Ws=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),qs=e=>{let t=e.trim();if(!t)return null;let n=parseFloat(t);return Ws(n)?n:null},mo=(e,t)=>{let n=e.split(",");if(n.length!==t)return null;let r=[];for(let i of n){let o=qs(i);if(o===null)return null;r.push(o);}return r},Zs=(e,t,n,r)=>e===1&&t===0&&n===0&&r===1,Ks=e=>e[0]===1&&e[1]===0&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0&&e[8]===0&&e[9]===0&&e[10]===1&&e[11]===0&&e[15]===1,Kt=e=>{try{if(!(e instanceof Element))return "none";let t=window.getComputedStyle(e);if(!t)return "none";let n=t.transform;if(!n||n==="none")return "none";let r=n.match(/^matrix3d\(([^)]+)\)$/);if(r){let o=mo(r[1],16);if(o&&o.length===16){let s=[...o];return s[12]=0,s[13]=0,s[14]=0,Ks(s)?"none":`matrix3d(${s.join(", ")})`}}let i=n.match(/^matrix\(([^)]+)\)$/);if(i){let o=mo(i[1],6);if(o&&o.length===6){let[s,a,l,c]=o;return Zs(s,a,l,c)?"none":`matrix(${s}, ${a}, ${l}, ${c}, 0, 0)`}}return "none"}catch{return "none"}};var Qt=e=>{let t=e.getBoundingClientRect();return {borderRadius:window.getComputedStyle(e).borderRadius||"0px",height:t.height,transform:Kt(e),width:t.width,x:t.left,y:t.top}};var Z={enabled:true,hue:0,selectionBox:{enabled:true,color:void 0,borderRadius:void 0},dragBox:{enabled:true,color:void 0},grabbedBoxes:{enabled:true,color:void 0},elementLabel:{enabled:true,backgroundColor:void 0,textColor:void 0,borderColor:void 0,padding:void 0,cursorOffset:void 0},successLabels:{enabled:true},crosshair:{enabled:true,color:void 0},inputOverlay:{enabled:true}},po=e=>e?{enabled:e.enabled??Z.enabled,hue:e.hue??Z.hue,selectionBox:{enabled:e.selectionBox?.enabled??Z.selectionBox.enabled,color:e.selectionBox?.color??Z.selectionBox.color,borderRadius:e.selectionBox?.borderRadius??Z.selectionBox.borderRadius},dragBox:{enabled:e.dragBox?.enabled??Z.dragBox.enabled,color:e.dragBox?.color??Z.dragBox.color},grabbedBoxes:{enabled:e.grabbedBoxes?.enabled??Z.grabbedBoxes.enabled,color:e.grabbedBoxes?.color??Z.grabbedBoxes.color},elementLabel:{enabled:e.elementLabel?.enabled??Z.elementLabel.enabled,backgroundColor:e.elementLabel?.backgroundColor??Z.elementLabel.backgroundColor,textColor:e.elementLabel?.textColor??Z.elementLabel.textColor,borderColor:e.elementLabel?.borderColor??Z.elementLabel.borderColor,padding:e.elementLabel?.padding??Z.elementLabel.padding,cursorOffset:e.elementLabel?.cursorOffset??Z.elementLabel.cursorOffset},successLabels:{enabled:e.successLabels?.enabled??Z.successLabels.enabled},crosshair:{enabled:e.crosshair?.enabled??Z.crosshair.enabled,color:e.crosshair?.color??Z.crosshair.color},inputOverlay:{enabled:e.inputOverlay?.enabled??Z.inputOverlay.enabled}}:Z;var go=re('<span class="font-mono tabular-nums align-middle">1 element'),ho=re('<span class="font-mono tabular-nums align-middle"><<!>>'),ea=re('<span class="tabular-nums text-[10px] ml-1 align-middle"> in '),bo=false,Nn=e=>{let t={enabled:true,keyHoldDuration:200,allowActivationInsideInput:true,...e},n=po(t.theme);return t.enabled===false||bo?{activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{},copyElement:()=>Promise.resolve(false),getState:()=>({isActive:false,isDragging:false,isCopying:false,targetElement:null,dragBounds:null})}:(bo=true,(()=>{try{let i="0.0.50",s=`data:image/svg+xml;base64,${btoa('<svg width="294" height="294" viewBox="0 0 294 294" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_0_3)"><mask id="mask0_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="294" height="294"><path d="M294 0H0V294H294V0Z" fill="white"/></mask><g mask="url(#mask0_0_3)"><path d="M144.599 47.4924C169.712 27.3959 194.548 20.0265 212.132 30.1797C227.847 39.2555 234.881 60.3243 231.926 89.516C231.677 92.0069 231.328 94.5423 230.94 97.1058L228.526 110.14C228.517 110.136 228.505 110.132 228.495 110.127C228.486 110.165 228.479 110.203 228.468 110.24L216.255 105.741C216.256 105.736 216.248 105.728 216.248 105.723C207.915 103.125 199.421 101.075 190.82 99.5888L190.696 99.5588L173.526 97.2648L173.511 97.2631C173.492 97.236 173.467 97.2176 173.447 97.1905C163.862 96.2064 154.233 95.7166 144.599 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8624 138.391 86.939 147.193C90.8624 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245C115.749 197.245 115.758 197.246 115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.507 229.974L144.609 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.472 238.38C154.485 238.392 154.499 238.402 154.513 238.412L143.846 247.482L143.827 247.497C126.56 261.128 109.472 268.745 94.8019 268.745C88.5916 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3164 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3363 185.327 9.52301 167.51 9.52301 147.193C9.52301 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3164 60.3243 61.3496 39.2555 77.0657 30.1797C94.6494 20.0265 119.486 27.3959 144.599 47.4924ZM70.6423 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5176 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8516 207.742 83.0977 205.066 70.6423 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1787 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.9311 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.759 110.203C59.234 110.839 57.7378 111.475 56.27 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9104 147.193C67.822 135.23 63.7566 122.855 60.759 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.854 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.6291 47.6015 67.6975 64.5954 70.0424 87.9446L70.0416 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8263 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.773 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.29 38.512C183.321 38.512 169.34 44.4991 154.444 56.0153C163.93 64.9374 172.634 74.6557 180.462 85.064C193.375 86.6345 206.128 89.3102 218.584 93.0624C218.812 91.4325 219.003 89.8118 219.165 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.552 64.3097C138.104 70.2614 132.054 76.6306 126.443 83.3765C132.39 82.995 138.426 82.8046 144.552 82.8046C150.727 82.8046 156.778 83.0143 162.707 83.3765C157.08 76.6293 151.015 70.2596 144.552 64.3097Z" fill="white"/><path d="M144.598 47.4924C169.712 27.3959 194.547 20.0265 212.131 30.1797C227.847 39.2555 234.88 60.3243 231.926 89.516C231.677 92.0069 231.327 94.5423 230.941 97.1058L228.526 110.14L228.496 110.127C228.487 110.165 228.478 110.203 228.469 110.24L216.255 105.741L216.249 105.723C207.916 103.125 199.42 101.075 190.82 99.5888L190.696 99.5588L173.525 97.2648L173.511 97.263C173.492 97.236 173.468 97.2176 173.447 97.1905C163.863 96.2064 154.234 95.7166 144.598 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8622 138.391 86.939 147.193C90.8622 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245L115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.506 229.974L144.61 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.473 238.38L154.512 238.412L143.847 247.482L143.827 247.497C126.56 261.13 109.472 268.745 94.8018 268.745C88.5915 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3162 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3362 185.327 9.52298 167.51 9.52298 147.193C9.52298 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3162 60.3243 61.3496 39.2555 77.0657 30.1797C94.6493 20.0265 119.486 27.3959 144.598 47.4924ZM70.6422 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5175 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8515 207.742 83.0977 205.066 70.6422 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1786 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.931 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.7589 110.203C59.234 110.839 57.7378 111.475 56.2699 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9103 147.193C67.822 135.23 63.7566 122.855 60.7589 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.8539 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.629 47.6015 67.6975 64.5954 70.0424 87.9446L70.0415 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8262 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.772 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.291 38.512C183.321 38.512 169.34 44.4991 154.443 56.0153C163.929 64.9374 172.634 74.6557 180.462 85.064C193.374 86.6345 206.129 89.3102 218.584 93.0624C218.813 91.4325 219.003 89.8118 219.166 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.551 64.3097C138.103 70.2614 132.055 76.6306 126.443 83.3765C132.389 82.995 138.427 82.8046 144.551 82.8046C150.727 82.8046 156.779 83.0143 162.707 83.3765C157.079 76.6293 151.015 70.2596 144.551 64.3097Z" fill="#FF40E0"/></g><mask id="mask1_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="102" y="84" width="161" height="162"><path d="M235.282 84.827L102.261 112.259L129.693 245.28L262.714 217.848L235.282 84.827Z" fill="white"/></mask><g mask="url(#mask1_0_3)"><path d="M136.863 129.916L213.258 141.224C220.669 142.322 222.495 152.179 215.967 155.856L187.592 171.843L184.135 204.227C183.339 211.678 173.564 213.901 169.624 207.526L129.021 141.831C125.503 136.14 130.245 128.936 136.863 129.916Z" fill="#FF40E0" stroke="#FF40E0" stroke-width="0.817337" stroke-linecap="round" stroke-linejoin="round"/></g></g><defs><clipPath id="clip0_0_3"><rect width="294" height="294" fill="white"/></clipPath></defs></svg>')}`;console.log(`%cReact Grab${i?` v${i}`:""}%c
|
|
30
|
+
https://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${s}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,""),navigator.onLine&&i&&fetch(`https://www.react-grab.com/api/version?t=${Date.now()}`,{referrerPolicy:"origin",keepalive:!0,priority:"low",cache:"no-store"}).then(a=>a.text()).then(a=>{a&&a!==i&&console.warn(`[React Grab] v${i} is outdated (latest: v${a})`);}).catch(()=>null);}catch{}})(),We(i=>{let[o,s]=F(false),[a,l]=F(-1e3),[c,f]=F(-1e3),[m,C]=F(false),[p,b]=F(-1e3),[v,R]=F(-1e3),[E,T]=F(false),[A,H]=F(null),[W,se]=F(null),[ke,Ee]=F(0),[be,fe]=F([]),[x,g]=F([]),[d,w]=F(false),[k,L]=F(false),[B,I]=F(false),[$,z]=F(false),[N,ee]=F(-1e3),[K,D]=F(-1e3),[te,ce]=F(false),[Ge,Pe]=F(0),[me,Ke]=F(false),[Qe,ve]=F(""),q=null,Ce=null,Se=null,ye=null,Te=null,Ue=null,Ye=G(()=>d()&&!E()),yo=G(()=>a()>-1e3&&c()>-1e3),wo=u=>(u.metaKey||u.ctrlKey)&&u.code==="KeyC",In=(u,h)=>({top:h<25,bottom:h>window.innerHeight-25,left:u<25,right:u>window.innerWidth-25}),Pn=(u,h)=>{let S=`grabbed-${Date.now()}-${Math.random()}`,_=Date.now(),X={id:S,bounds:u,createdAt:_,element:h},oe=be();fe([...oe,X]),setTimeout(()=>{fe(pe=>pe.filter(Y=>Y.id!==S));},1700);},Mn=u=>{let h=`success-${Date.now()}-${Math.random()}`;g(S=>[...S,{id:h,text:u}]),setTimeout(()=>{g(S=>S.filter(_=>_.id!==h));},1700);},xo=u=>`<selected_element>
|
|
30
31
|
${u}
|
|
31
|
-
</selected_element>`,
|
|
32
|
+
</selected_element>`,nn=u=>(u.tagName||"").toLowerCase(),vo=u=>{let h=nn(u);return h?`<${h}>`:"1 element"},$n=u=>{try{let h=u.map(S=>({tagName:nn(S)}));window.dispatchEvent(new CustomEvent("react-grab:element-selected",{detail:{elements:h}}));}catch{}},wt=async(u,h,S)=>{ee(u),D(h),T(true),Eo(),await S().finally(()=>{T(false),xt(),k()&&Re();});},Co=u=>"innerText"in u,So=u=>Co(u)?u.innerText:u.textContent??"",Dn=u=>u.map(h=>So(h).trim()).filter(h=>h.length>0).join(`
|
|
32
33
|
|
|
33
|
-
`),
|
|
34
|
-
${
|
|
35
|
-
${
|
|
34
|
+
`),rn=async(u,h)=>{let S=false,_="",X=je();try{await t.onBeforeCopy?.(u);}catch{}try{let pe=(await Promise.allSettled(u.map(async Y=>{let _e=qt(Y);if(!X)return `## HTML Frame:
|
|
35
|
+
${_e}`;let on=await Xt(Y),qn=Wt(on);return qn?`## HTML Frame:
|
|
36
|
+
${_e}
|
|
36
37
|
|
|
37
38
|
## Code Location:
|
|
38
|
-
${
|
|
39
|
-
${
|
|
39
|
+
${qn}`:`## HTML Frame:
|
|
40
|
+
${_e}`}))).map(Y=>Y.status==="fulfilled"?Y.value:"").filter(Y=>Y.trim());if(pe.length>0){let Y=pe.map(on=>xo(on)).join(`
|
|
40
41
|
|
|
41
|
-
`),
|
|
42
|
+
`),_e=h?`${h}
|
|
42
43
|
|
|
43
|
-
${
|
|
44
|
+
${Y}`:Y;_=_e,S=await Zt(_e);}if(!S){let Y=Dn(u);if(Y.length>0){let _e=h?`${h}
|
|
44
45
|
|
|
45
|
-
${
|
|
46
|
+
${Y}`:Y;_=_e,S=await Zt(_e);}}if(S)try{t.onCopySuccess?.(u,_);}catch{}}catch(oe){try{t.onCopyError?.(oe);}catch{}let pe=Dn(u);if(pe.length>0){let Y=h?`${h}
|
|
46
47
|
|
|
47
|
-
${
|
|
48
|
+
${pe}`:pe;_=Y,S=await Zt(Y);}}try{t.onAfterCopy?.(u,S);}catch{}return S},Hn=async(u,h)=>{try{t.onElementSelect?.(u);}catch{}n.grabbedBoxes.enabled&&Pn(Qt(u),u),await new Promise(_=>requestAnimationFrame(_)),await rn([u],h)&&n.successLabels.enabled&&Mn(vo(u)),$n([u]);},Bn=async u=>{if(u.length===0)return;for(let S of u)try{t.onElementSelect?.(S);}catch{}if(n.grabbedBoxes.enabled)for(let S of u)Pn(Qt(S),S);await new Promise(S=>requestAnimationFrame(S)),await rn(u)&&n.successLabels.enabled&&Mn(`${u.length} elements`),$n(u);},Me=G(()=>!Ye()||m()?null:Ln(a(),c())),To=G(()=>{Ge();let u=Me();if(!u)return;let h=u.getBoundingClientRect();return {borderRadius:window.getComputedStyle(u).borderRadius||"0px",height:h.height,transform:Kt(u),width:h.width,x:h.left,y:h.top}}),zn=(u,h)=>{let S=u+window.scrollX,_=h+window.scrollY;return {x:Math.abs(S-p()),y:Math.abs(_-v())}},jn=G(()=>{if(!m())return false;let u=zn(a(),c());return u.x>2||u.y>2}),Vn=(u,h)=>{let S=u+window.scrollX,_=h+window.scrollY,X=Math.min(p(),S),oe=Math.min(v(),_),pe=Math.abs(S-p()),Y=Math.abs(_-v());return {x:X-window.scrollX,y:oe-window.scrollY,width:pe,height:Y}},Xe=G(()=>{if(!jn())return;let u=Vn(a(),c());return {borderRadius:"0px",height:u.height,transform:"none",width:u.width,x:u.x,y:u.y}}),ko=G(()=>{let u=Me();if(!u)return go();let h=nn(u),S=Yt(u);return h&&S?[(()=>{var _=ho(),X=_.firstChild,oe=X.nextSibling;oe.nextSibling;return ue(_,h,oe),_})(),(()=>{var _=ea();_.firstChild;return ue(_,S,null),_})()]:h?(()=>{var _=ho(),X=_.firstChild,oe=X.nextSibling;oe.nextSibling;return ue(_,h,oe),_})():go()}),Gn=G(()=>E()?{x:N(),y:K()}:{x:a(),y:c()}),Un=G(()=>E()?{x:N(),y:K()}:{x:a(),y:c()});ie(De(()=>[Me(),A()],([u,h])=>{if(h&&u&&h!==u&&H(null),u)try{t.onElementHover?.(u);}catch{}})),ie(De(()=>Ge(),()=>{let u=be();if(u.length===0)return;let h=u.map(S=>({...S,bounds:Qt(S.element)}));fe(h);})),ie(De(()=>[d(),m(),E(),Me(),Xe()],([u,h,S,_,X])=>{try{t.onStateChange?.({isActive:u,isDragging:h,isCopying:S,targetElement:_,dragBounds:X?{x:X.x,y:X.y,width:X.width,height:X.height}:null});}catch{}}));let Eo=()=>{let u=Date.now();se(u),I(false),Se=window.setTimeout(()=>{I(true),Se=null;},150);let h=()=>{let S=W();if(S===null)return;let X=(Date.now()-S)/t.keyHoldDuration,oe=1-Math.exp(-X),Y=E()?Math.min(oe,.95):1;Ee(Y),Y<1&&(Ce=requestAnimationFrame(h));};h();},xt=()=>{Ce!==null&&(cancelAnimationFrame(Ce),Ce=null),Se!==null&&(window.clearTimeout(Se),Se=null),se(null),Ee(1),I(false);},Ro=()=>{let u=()=>{if(!m()){st();return}let h=In(a(),c());h.top&&window.scrollBy(0,-10),h.bottom&&window.scrollBy(0,10),h.left&&window.scrollBy(-10,0),h.right&&window.scrollBy(10,0),h.top||h.bottom||h.left||h.right?Ue=requestAnimationFrame(u):Ue=null;};u();},st=()=>{Ue!==null&&(cancelAnimationFrame(Ue),Ue=null);},vt=()=>{xt(),w(true),document.body.style.cursor="crosshair",t.onActivate?.();},Re=()=>{L(false),s(false),w(false),Ke(false),ve(""),document.body.style.cursor="",m()&&(C(false),document.body.style.userSelect=""),q&&window.clearTimeout(q),ye&&window.clearTimeout(ye),Te&&(window.clearTimeout(Te),Te=null),ce(false),st(),xt(),t.onDeactivate?.();},Ao=u=>{ve(u);},_o=()=>{if(!me())return;let u=Me(),h=Qe().trim(),S=a(),_=c();Ke(false),ve(""),u?wt(S,_,()=>Hn(u,h||void 0)).then(()=>{Re();}):Re();},Yn=()=>{me()&&Re();},Xn=new AbortController,Ae=Xn.signal;window.addEventListener("keydown",u=>{if(u.code==="Escape"&&o()){if(me())return;Re();return}if(u.code==="Enter"&&o()&&!me()){u.preventDefault(),u.stopPropagation(),L(true),ye!==null&&(window.clearTimeout(ye),ye=null),d()||(q&&window.clearTimeout(q),vt()),Ke(true);return}if(!(!t.allowActivationInsideInput&&br(u))&&wo(u)){if(d()){if(k())return;ye!==null&&window.clearTimeout(ye),ye=window.setTimeout(()=>{Re();},200);return}o()&&u.repeat||(q!==null&&window.clearTimeout(q),o()||s(true),q=window.setTimeout(()=>{vt();},t.keyHoldDuration));}},{signal:Ae,capture:true}),window.addEventListener("keyup",u=>{if(!o()&&!d())return;let h=!u.metaKey&&!u.ctrlKey;if(u.code==="KeyC"||h){if(k())return;Re();}},{signal:Ae,capture:true}),window.addEventListener("mousemove",u=>{if(l(u.clientX),f(u.clientY),Te!==null&&window.clearTimeout(Te),ce(false),Te=window.setTimeout(()=>{ce(true),Te=null;},300),m()){let h=In(u.clientX,u.clientY),S=h.top||h.bottom||h.left||h.right;S&&Ue===null?Ro():!S&&Ue!==null&&st();}},{signal:Ae}),window.addEventListener("mousedown",u=>{if(me()){u.target.closest("[data-react-grab-input]")||Yn();return}if(!Ye()||E())return;u.preventDefault(),C(true);let h=u.clientX+window.scrollX,S=u.clientY+window.scrollY;b(h),R(S),document.body.style.userSelect="none";try{t.onDragStart?.(h,S);}catch{}},{signal:Ae}),window.addEventListener("mouseup",u=>{if(!m())return;let h=zn(u.clientX,u.clientY),S=h.x>2||h.y>2;if(C(false),st(),document.body.style.userSelect="",S){z(true);let _=Vn(u.clientX,u.clientY),X=uo(_,yt);if(X.length>0){try{t.onDragEnd?.(X,_);}catch{}wt(u.clientX,u.clientY,()=>Bn(X));}else {let oe=fo(_,yt);if(oe.length>0){try{t.onDragEnd?.(oe,_);}catch{}wt(u.clientX,u.clientY,()=>Bn(oe));}}}else {let _=Ln(u.clientX,u.clientY);if(!_)return;H(_),wt(u.clientX,u.clientY,()=>Hn(_));}},{signal:Ae}),window.addEventListener("click",u=>{(Ye()||E()||$())&&(u.preventDefault(),u.stopPropagation(),$()&&z(false),k()&&!E()&&(o()?L(false):Re()));},{signal:Ae,capture:true}),document.addEventListener("visibilitychange",()=>{document.hidden&&fe([]);},{signal:Ae}),window.addEventListener("scroll",()=>{Pe(u=>u+1);},{signal:Ae,capture:true}),window.addEventListener("resize",()=>{Pe(u=>u+1);},{signal:Ae}),he(()=>{Xn.abort(),q&&window.clearTimeout(q),ye&&window.clearTimeout(ye),Te&&window.clearTimeout(Te),st(),xt(),document.body.style.userSelect="",document.body.style.cursor="";});let Wn=yr(hr),Oo=G(()=>n.selectionBox.enabled&&Ye()&&!m()&&!!Me()),Fo=G(()=>n.dragBox.enabled&&Ye()&&jn()),Lo=G(()=>E()?"processing":"hover"),No=G(()=>!n.elementLabel.enabled||me()?false:E()?true:x().length>0?false:Ye()&&!m()&&!!Me()),Io=G(()=>E()&&B()&&yo()),Po=G(()=>n.crosshair.enabled&&Ye()&&!m()),Mo=G(()=>n.inputOverlay.enabled&&me()),$o=G(()=>n.grabbedBoxes.enabled),Do=G(()=>n.successLabels.enabled);return n.enabled&&(n.hue!==0&&(Wn.style.filter=`hue-rotate(${n.hue}deg)`),fr(()=>P(Ir,{get selectionVisible(){return Oo()},get selectionBounds(){return To()},get dragVisible(){return Fo()},get dragBounds(){return Xe()},get grabbedBoxes(){return xe(()=>!!$o())()?be():[]},get successLabels(){return xe(()=>!!Do())()?x():[]},get labelVariant(){return Lo()},get labelContent(){return ko()},get labelX(){return Gn().x},get labelY(){return Gn().y},get labelVisible(){return No()},labelZIndex:2147483647,get labelShowHint(){return te()},get progressVisible(){return Io()},get progress(){return ke()},get mouseX(){return Un().x},get mouseY(){return Un().y},get crosshairVisible(){return Po()},get inputVisible(){return Mo()},get inputX(){return a()},get inputY(){return c()},get inputValue(){return Qe()},onInputChange:Ao,onInputSubmit:_o,onInputCancel:Yn,theme:n}),Wn)),{activate:()=>{d()||vt();},deactivate:()=>{d()&&Re();},toggle:()=>{d()?Re():vt();},isActive:()=>d(),dispose:i,copyElement:async u=>{let h=Array.isArray(u)?u:[u];if(h.length===0)return false;try{await t.onBeforeCopy?.(h);}catch{}let S=await rn(h);try{t.onAfterCopy?.(h,S);}catch{}return S},getState:()=>({isActive:d(),isDragging:m(),isCopying:E(),targetElement:Me(),dragBounds:Xe()?{x:Xe().x,y:Xe().y,width:Xe().width,height:Xe().height}:null})}}))};typeof window<"u"&&Nn();/*! Bundled license information:
|
|
48
49
|
|
|
49
50
|
bippy/dist/rdt-hook-CrcWl4lP.js:
|
|
50
51
|
(**
|
|
@@ -105,4 +106,4 @@ bippy/dist/source.js:
|
|
|
105
106
|
* This source code is licensed under the MIT license found in the
|
|
106
107
|
* LICENSE file in the root directory of this source tree.
|
|
107
108
|
*)
|
|
108
|
-
*/exports.
|
|
109
|
+
*/exports.DEFAULT_THEME=Z;exports.formatStack=Wt;exports.getHTMLPreview=qt;exports.getNearestComponentName=Yt;exports.getStack=Xt;exports.init=Nn;exports.isInstrumentationActive=je;return exports;})({});
|