browser-annotations 1.0.3
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 +30 -0
- package/dist/.vite/manifest.json +39 -0
- package/dist/assets/background.ts-Dj33HuXv.js +1 -0
- package/dist/assets/index.html-DrssvSnj.js +1 -0
- package/dist/assets/modulepreload-polyfill-B5Qt9EMX.js +1 -0
- package/dist/assets/sidebar-D84qA_V9.js +13 -0
- package/dist/assets/sidebar-DqDKjdnE.css +1 -0
- package/dist/icon.png +0 -0
- package/dist/manifest.json +23 -0
- package/dist/service-worker-loader.js +1 -0
- package/dist/src/devtools/index.html +12 -0
- package/dist/src/sidebar/index.html +14 -0
- package/package.json +39 -0
- package/scripts/postinstall.js +23 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# browser-annotations
|
|
2
|
+
|
|
3
|
+
Annotate elements and send them to your agents right from your Chrome DevTools.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm install -g browser-annotations
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Open `chrome://extensions`, enable **Developer mode**, click **Load unpacked**, and select:
|
|
12
|
+
|
|
13
|
+
- `~/browser-annotations/chrome` — created automatically during install
|
|
14
|
+
- or the `dist` folder in your package manager's global directory, if you prefer no symlink
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
1. Use the Chrome DevTools to select an element
|
|
19
|
+
2. Write your feedback in the `Feedback` tab
|
|
20
|
+
3. Use `Add` to batch annotations
|
|
21
|
+
4. Hit `Submit` to notify your agent or copy to clipboard
|
|
22
|
+
|
|
23
|
+
## Agent integration
|
|
24
|
+
|
|
25
|
+
For sending feedback straight to your agent, see the [pi](https://browser-annotations.dev/) and [Claude Code](https://browser-annotations.dev/) setup guides.
|
|
26
|
+
|
|
27
|
+
## Links
|
|
28
|
+
|
|
29
|
+
- [Documentation](https://browser-annotations.dev/)
|
|
30
|
+
- [GitHub](https://github.com/wiebekaai/browser-annotations)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"../../../../../../@crx/manifest": {
|
|
3
|
+
"file": "assets/crx-manifest.js-C7Uo5mdi.js",
|
|
4
|
+
"name": "crx-manifest.js",
|
|
5
|
+
"src": "../../../../../../@crx/manifest",
|
|
6
|
+
"isEntry": true
|
|
7
|
+
},
|
|
8
|
+
"_modulepreload-polyfill-B5Qt9EMX.js": {
|
|
9
|
+
"file": "assets/modulepreload-polyfill-B5Qt9EMX.js",
|
|
10
|
+
"name": "modulepreload-polyfill"
|
|
11
|
+
},
|
|
12
|
+
"src/background.ts": {
|
|
13
|
+
"file": "assets/background.ts-Dj33HuXv.js",
|
|
14
|
+
"name": "background.ts",
|
|
15
|
+
"src": "src/background.ts",
|
|
16
|
+
"isEntry": true
|
|
17
|
+
},
|
|
18
|
+
"src/devtools/index.html": {
|
|
19
|
+
"file": "assets/index.html-DrssvSnj.js",
|
|
20
|
+
"name": "index.html",
|
|
21
|
+
"src": "src/devtools/index.html",
|
|
22
|
+
"isEntry": true,
|
|
23
|
+
"imports": [
|
|
24
|
+
"_modulepreload-polyfill-B5Qt9EMX.js"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"src/sidebar/index.html": {
|
|
28
|
+
"file": "assets/sidebar-D84qA_V9.js",
|
|
29
|
+
"name": "sidebar",
|
|
30
|
+
"src": "src/sidebar/index.html",
|
|
31
|
+
"isEntry": true,
|
|
32
|
+
"imports": [
|
|
33
|
+
"_modulepreload-polyfill-B5Qt9EMX.js"
|
|
34
|
+
],
|
|
35
|
+
"css": [
|
|
36
|
+
"assets/sidebar-DqDKjdnE.css"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
chrome.runtime.onInstalled.addListener(()=>{console.log("Feedback extension installed.")});chrome.runtime.onMessage.addListener((e,r,t)=>{if(e.type==="captureVisibleTab"&&typeof e.tabId=="number")return chrome.tabs.get(e.tabId).then(n=>chrome.tabs.captureVisibleTab(n.windowId,{format:"png"}).then(t).catch(()=>t(null))),!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./modulepreload-polyfill-B5Qt9EMX.js";chrome.devtools.panels.elements.createSidebarPane("Feedback",e=>{e.setPage("src/sidebar/index.html")});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function s(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=s(e);fetch(e.href,r)}})();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import"./modulepreload-polyfill-B5Qt9EMX.js";const Dn=!1,Un=(e,t)=>e===t,st=Symbol("solid-proxy"),rn=typeof Proxy=="function",Vn=Symbol("solid-track"),it={equals:Un};let sn=dn;const ke=1,lt=2,ln={owned:null,cleanups:null,context:null,owner:null};var q=null;let bt=null,Fn=null,W=null,X=null,me=null,dt=0;function ot(e,t){const n=W,o=q,r=e.length===0,l=t===void 0?o:t,s=r?ln:{owned:null,cleanups:null,context:l?l.context:null,owner:l},i=r?e:()=>e(()=>pe(()=>Ve(s)));q=s,W=null;try{return Re(i,!0)}finally{W=n,q=o}}function H(e,t){t=t?Object.assign({},it,t):it;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(r=r(n.value)),un(n,r));return[cn.bind(n),o]}function D(e,t,n){const o=It(e,t,!1,ke);Ge(o)}function Ue(e,t,n){sn=qn;const o=It(e,t,!1,ke);o.user=!0,me?me.push(o):Ge(o)}function Le(e,t,n){n=n?Object.assign({},it,n):it;const o=It(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=n.equals||void 0,Ge(o),cn.bind(o)}function wt(e){return Re(e,!1)}function pe(e){if(W===null)return e();const t=W;W=null;try{return e()}finally{W=t}}function Ye(e,t,n){const o=Array.isArray(e);let r,l=n&&n.defer;return s=>{let i;if(o){i=Array(e.length);for(let u=0;u<e.length;u++)i[u]=e[u]()}else i=e();if(l)return l=!1,s;const a=pe(()=>t(i,r,s));return r=i,a}}function an(e){Ue(()=>pe(e))}function Tt(e){return q===null||(q.cleanups===null?q.cleanups=[e]:q.cleanups.push(e)),e}function cn(){if(this.sources&&this.state)if(this.state===ke)Ge(this);else{const e=X;X=null,Re(()=>ct(this),!1),X=e}if(W){const e=this.observers?this.observers.length:0;W.sources?(W.sources.push(this),W.sourceSlots.push(e)):(W.sources=[this],W.sourceSlots=[e]),this.observers?(this.observers.push(W),this.observerSlots.push(W.sources.length-1)):(this.observers=[W],this.observerSlots=[W.sources.length-1])}return this.value}function un(e,t,n){let o=e.value;return(!e.comparator||!e.comparator(o,t))&&(e.value=t,e.observers&&e.observers.length&&Re(()=>{for(let r=0;r<e.observers.length;r+=1){const l=e.observers[r],s=bt&&bt.running;s&&bt.disposed.has(l),(s?!l.tState:!l.state)&&(l.pure?X.push(l):me.push(l),l.observers&&fn(l)),s||(l.state=ke)}if(X.length>1e6)throw X=[],new Error},!1)),t}function Ge(e){if(!e.fn)return;Ve(e);const t=dt;Wn(e,e.value,t)}function Wn(e,t,n){let o;const r=q,l=W;W=q=e;try{o=e.fn(t)}catch(s){return e.pure&&(e.state=ke,e.owned&&e.owned.forEach(Ve),e.owned=null),e.updatedAt=n+1,hn(s)}finally{W=l,q=r}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?un(e,o):e.value=o,e.updatedAt=n)}function It(e,t,n,o=ke,r){const l={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:q,context:q?q.context:null,pure:n};return q===null||q!==ln&&(q.owned?q.owned.push(l):q.owned=[l]),l}function at(e){if(e.state===0)return;if(e.state===lt)return ct(e);if(e.suspense&&pe(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<dt);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===ke)Ge(e);else if(e.state===lt){const o=X;X=null,Re(()=>ct(e,t[0]),!1),X=o}}function Re(e,t){if(X)return e();let n=!1;t||(X=[]),me?n=!0:me=[],dt++;try{const o=e();return Gn(n),o}catch(o){n||(me=null),X=null,hn(o)}}function Gn(e){if(X&&(dn(X),X=null),e)return;const t=me;me=null,t.length&&Re(()=>sn(t),!1)}function dn(e){for(let t=0;t<e.length;t++)at(e[t])}function qn(e){let t,n=0;for(t=0;t<e.length;t++){const o=e[t];o.user?e[n++]=o:at(o)}for(t=0;t<n;t++)at(e[t])}function ct(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const o=e.sources[n];if(o.sources){const r=o.state;r===ke?o!==t&&(!o.updatedAt||o.updatedAt<dt)&&at(o):r===lt&&ct(o,t)}}}function fn(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=lt,n.pure?X.push(n):me.push(n),n.observers&&fn(n))}}function Ve(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),o=e.sourceSlots.pop(),r=n.observers;if(r&&r.length){const l=r.pop(),s=n.observerSlots.pop();o<r.length&&(l.sourceSlots[s]=o,r[o]=l,n.observerSlots[o]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Ve(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ve(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Kn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function hn(e,t=q){throw Kn(e)}const Hn=Symbol("fallback");function Vt(e){for(let t=0;t<e.length;t++)e[t]()}function Xn(e,t,n={}){let o=[],r=[],l=[],s=0,i=t.length>1?[]:null;return Tt(()=>Vt(l)),()=>{let a=e()||[],u=a.length,f,c;return a[Vn],pe(()=>{let $,P,I,N,U,O,j,B,M;if(u===0)s!==0&&(Vt(l),l=[],o=[],r=[],s=0,i&&(i=[])),n.fallback&&(o=[Hn],r[0]=ot(h=>(l[0]=h,n.fallback())),s=1);else if(s===0){for(r=new Array(u),c=0;c<u;c++)o[c]=a[c],r[c]=ot(b);s=u}else{for(I=new Array(u),N=new Array(u),i&&(U=new Array(u)),O=0,j=Math.min(s,u);O<j&&o[O]===a[O];O++);for(j=s-1,B=u-1;j>=O&&B>=O&&o[j]===a[B];j--,B--)I[B]=r[j],N[B]=l[j],i&&(U[B]=i[j]);for($=new Map,P=new Array(B+1),c=B;c>=O;c--)M=a[c],f=$.get(M),P[c]=f===void 0?-1:f,$.set(M,c);for(f=O;f<=j;f++)M=o[f],c=$.get(M),c!==void 0&&c!==-1?(I[c]=r[f],N[c]=l[f],i&&(U[c]=i[f]),c=P[c],$.set(M,c)):l[f]();for(c=O;c<u;c++)c in I?(r[c]=I[c],l[c]=N[c],i&&(i[c]=U[c],i[c](c))):r[c]=ot(b);r=r.slice(0,s=u),o=a.slice(0)}return r});function b($){if(l[c]=$,i){const[P,I]=H(c);return i[c]=I,t(a[c],P)}return t(a[c])}}}function w(e,t){return pe(()=>e(t||{}))}function Je(){return!0}const St={get(e,t,n){return t===st?n:e.get(t)},has(e,t){return t===st?!0:e.has(t)},set:Je,deleteProperty:Je,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Je,deleteProperty:Je}},ownKeys(e){return e.keys()}};function yt(e){return(e=typeof e=="function"?e():e)?e:{}}function Zn(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function Nt(...e){let t=!1;for(let s=0;s<e.length;s++){const i=e[s];t=t||!!i&&st in i,e[s]=typeof i=="function"?(t=!0,Le(i)):i}if(rn&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){const a=yt(e[i])[s];if(a!==void 0)return a}},has(s){for(let i=e.length-1;i>=0;i--)if(s in yt(e[i]))return!0;return!1},keys(){const s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(yt(e[i])));return[...new Set(s)]}},St);const n={},o=Object.create(null);for(let s=e.length-1;s>=0;s--){const i=e[s];if(!i)continue;const a=Object.getOwnPropertyNames(i);for(let u=a.length-1;u>=0;u--){const f=a[u];if(f==="__proto__"||f==="constructor")continue;const c=Object.getOwnPropertyDescriptor(i,f);if(!o[f])o[f]=c.get?{enumerable:!0,configurable:!0,get:Zn.bind(n[f]=[c.get.bind(i)])}:c.value!==void 0?c:void 0;else{const b=n[f];b&&(c.get?b.push(c.get.bind(i)):c.value!==void 0&&b.push(()=>c.value))}}}const r={},l=Object.keys(o);for(let s=l.length-1;s>=0;s--){const i=l[s],a=o[i];a&&a.get?Object.defineProperty(r,i,a):r[i]=a?a.value:void 0}return r}function mn(e,...t){const n=t.length;if(rn&&st in e){const r=n>1?t.flat():t[0],l=t.map(s=>new Proxy({get(i){return s.includes(i)?e[i]:void 0},has(i){return s.includes(i)&&i in e},keys(){return s.filter(i=>i in e)}},St));return l.push(new Proxy({get(s){return r.includes(s)?void 0:e[s]},has(s){return r.includes(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!r.includes(s))}},St)),l}const o=[];for(let r=0;r<=n;r++)o[r]={};for(const r of Object.getOwnPropertyNames(e)){let l=n;for(let a=0;a<t.length;a++)if(t[a].includes(r)){l=a;break}const s=Object.getOwnPropertyDescriptor(e,r);!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable?o[l][r]=s.value:Object.defineProperty(o[l],r,s)}return o}const Yn=e=>`Stale read from <${e}>.`;function Jn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Le(Xn(()=>e.each,e.children,t||void 0))}function ee(e){const t=e.keyed,n=Le(()=>e.when,void 0,void 0),o=t?n:Le(n,void 0,{equals:(r,l)=>!r==!l});return Le(()=>{const r=o();if(r){const l=e.children;return typeof l=="function"&&l.length>0?pe(()=>l(t?r:()=>{if(!pe(o))throw Yn("Show");return n()})):l}return e.fallback},void 0,void 0)}const Qn=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],eo=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Qn]),to=new Set(["innerHTML","textContent","innerText","children"]),no=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),oo=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function ro(e,t){const n=oo[e];return typeof n=="object"?n[t]?n.$:void 0:n}const so=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),ce=e=>Le(()=>e());function io(e,t,n){let o=n.length,r=t.length,l=o,s=0,i=0,a=t[r-1].nextSibling,u=null;for(;s<r||i<l;){if(t[s]===n[i]){s++,i++;continue}for(;t[r-1]===n[l-1];)r--,l--;if(r===s){const f=l<o?i?n[i-1].nextSibling:n[l-i]:a;for(;i<l;)e.insertBefore(n[i++],f)}else if(l===i)for(;s<r;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[l-1]&&n[i]===t[r-1]){const f=t[--r].nextSibling;e.insertBefore(n[i++],t[s++].nextSibling),e.insertBefore(n[--l],f),t[r]=n[l]}else{if(!u){u=new Map;let c=i;for(;c<l;)u.set(n[c],c++)}const f=u.get(t[s]);if(f!=null)if(i<f&&f<l){let c=s,b=1,$;for(;++c<r&&c<l&&!(($=u.get(t[c]))==null||$!==f+b);)b++;if(b>f-i){const P=t[s];for(;i<f;)e.insertBefore(n[i++],P)}else e.replaceChild(n[i++],t[s++])}else s++;else t[s++].remove()}}}const Ft="_$DX_DELEGATE";function lo(e,t,n,o={}){let r;return ot(l=>{r=l,t===document?e():v(t,e(),t.firstChild?null:void 0,n)},o.owner),()=>{r(),t.textContent=""}}function _(e,t,n,o){let r;const l=()=>{const i=document.createElement("template");return i.innerHTML=e,i.content.firstChild},s=()=>(r||(r=l())).cloneNode(!0);return s.cloneNode=s,s}function pn(e,t=window.document){const n=t[Ft]||(t[Ft]=new Set);for(let o=0,r=e.length;o<r;o++){const l=e[o];n.has(l)||(n.add(l),t.addEventListener(l,po))}}function Z(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function ao(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}function Fe(e,t){t==null?e.removeAttribute("class"):e.className=t}function At(e,t,n,o){if(o)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=l=>r.call(e,n[1],l))}else e.addEventListener(t,n,typeof n!="function"&&n)}function co(e,t,n={}){const o=Object.keys(t||{}),r=Object.keys(n);let l,s;for(l=0,s=r.length;l<s;l++){const i=r[l];!i||i==="undefined"||t[i]||(Wt(e,i,!1),delete n[i])}for(l=0,s=o.length;l<s;l++){const i=o[l],a=!!t[i];!i||i==="undefined"||n[i]===a||!a||(Wt(e,i,!0),n[i]=a)}return n}function uo(e,t,n){if(!t)return n?Z(e,"style"):t;const o=e.style;if(typeof t=="string")return o.cssText=t;typeof n=="string"&&(o.cssText=n=void 0),n||(n={}),t||(t={});let r,l;for(l in n)t[l]==null&&o.removeProperty(l),delete n[l];for(l in t)r=t[l],r!==n[l]&&(o.setProperty(l,r),n[l]=r);return n}function fo(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function zt(e,t={},n,o){const r={};return o||D(()=>r.children=We(e,t.children,r.children)),D(()=>typeof t.ref=="function"&&Oe(t.ref,e)),D(()=>ho(e,t,n,!0,r,!0)),r}function Oe(e,t,n){return pe(()=>e(t,n))}function v(e,t,n,o){if(n!==void 0&&!o&&(o=[]),typeof t!="function")return We(e,t,o,n);D(r=>We(e,t(),r,n),o)}function ho(e,t,n,o,r={},l=!1){t||(t={});for(const s in r)if(!(s in t)){if(s==="children")continue;r[s]=Gt(e,s,null,r[s],n,l,t)}for(const s in t){if(s==="children")continue;const i=t[s];r[s]=Gt(e,s,i,r[s],n,l,t)}}function mo(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Wt(e,t,n){const o=t.trim().split(/\s+/);for(let r=0,l=o.length;r<l;r++)e.classList.toggle(o[r],n)}function Gt(e,t,n,o,r,l,s){let i,a,u,f,c;if(t==="style")return uo(e,n,o);if(t==="classList")return co(e,n,o);if(n===o)return o;if(t==="ref")l||n(e);else if(t.slice(0,3)==="on:"){const b=t.slice(3);o&&e.removeEventListener(b,o,typeof o!="function"&&o),n&&e.addEventListener(b,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const b=t.slice(10);o&&e.removeEventListener(b,o,!0),n&&e.addEventListener(b,n,!0)}else if(t.slice(0,2)==="on"){const b=t.slice(2).toLowerCase(),$=so.has(b);if(!$&&o){const P=Array.isArray(o)?o[0]:o;e.removeEventListener(b,P)}($||n)&&(At(e,b,n,$),$&&pn([b]))}else t.slice(0,5)==="attr:"?Z(e,t.slice(5),n):t.slice(0,5)==="bool:"?ao(e,t.slice(5),n):(c=t.slice(0,5)==="prop:")||(u=to.has(t))||(f=ro(t,e.tagName))||(a=eo.has(t))||(i=e.nodeName.includes("-")||"is"in s)?(c&&(t=t.slice(5),a=!0),t==="class"||t==="className"?Fe(e,n):i&&!a&&!u?e[mo(t)]=n:e[f||t]=n):Z(e,no[t]||t,n);return n}function po(e){let t=e.target;const n=`$$${e.type}`,o=e.target,r=e.currentTarget,l=a=>Object.defineProperty(e,"target",{configurable:!0,value:a}),s=()=>{const a=t[n];if(a&&!t.disabled){const u=t[`${n}Data`];if(u!==void 0?a.call(t,u,e):a.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&l(t.host),!0},i=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const a=e.composedPath();l(a[0]);for(let u=0;u<a.length-2&&(t=a[u],!!s());u++){if(t._$host){t=t._$host,i();break}if(t.parentNode===r)break}}else i();l(o)}function We(e,t,n,o,r){for(;typeof n=="function";)n=n();if(t===n)return n;const l=typeof t,s=o!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=je(e,n,o,i)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||l==="boolean")n=je(e,n,o);else{if(l==="function")return D(()=>{let i=t();for(;typeof i=="function";)i=i();n=We(e,i,n,o)}),()=>n;if(Array.isArray(t)){const i=[],a=n&&Array.isArray(n);if(_t(i,t,n,r))return D(()=>n=We(e,i,n,o,!0)),()=>n;if(i.length===0){if(n=je(e,n,o),s)return n}else a?n.length===0?qt(e,i,o):io(e,n,i):(n&&je(e),qt(e,i));n=i}else if(t.nodeType){if(Array.isArray(n)){if(s)return n=je(e,n,o,t);je(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function _t(e,t,n,o){let r=!1;for(let l=0,s=t.length;l<s;l++){let i=t[l],a=n&&n[e.length],u;if(!(i==null||i===!0||i===!1))if((u=typeof i)=="object"&&i.nodeType)e.push(i);else if(Array.isArray(i))r=_t(e,i,a)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=_t(e,Array.isArray(i)?i:[i],Array.isArray(a)?a:[a])||r}else e.push(i),r=!0;else{const f=String(i);a&&a.nodeType===3&&a.data===f?e.push(a):e.push(document.createTextNode(f))}}return r}function qt(e,t,n=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],n)}function je(e,t,n,o){if(n===void 0)return e.textContent="";const r=o||document.createTextNode("");if(t.length){let l=!1;for(let s=t.length-1;s>=0;s--){const i=t[s];if(r!==i){const a=i.parentNode===e;!l&&!s?a?e.replaceChild(r,i):e.insertBefore(r,n):a&&i.remove()}else l=!0}}else e.insertBefore(r,n);return[r]}var go=_('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 256 256"aria-hidden=true><rect width=256 height=256 fill=none></rect><path d=M32,120l96-96,96,96H176v88a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V120Z fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16>'),bo=_('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 256 256"aria-hidden=true><rect width=256 height=256 fill=none></rect><polyline points="40 144 96 200 224 72"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16>'),wo=_('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 256 256"aria-hidden=true><rect width=256 height=256 fill=none></rect><path d=M180,48h0a28,28,0,0,1,28,28v0a28,28,0,0,1-28,28H152a0,0,0,0,1,0,0V76a28,28,0,0,1,28-28Z fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></path><path d=M48,48H76a28,28,0,0,1,28,28v0a28,28,0,0,1-28,28h0A28,28,0,0,1,48,76V48A0,0,0,0,1,48,48Z transform="translate(152 152) rotate(180)"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></path><path d=M152,152h28a28,28,0,0,1,28,28v0a28,28,0,0,1-28,28h0a28,28,0,0,1-28-28V152A0,0,0,0,1,152,152Z fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></path><path d=M76,152h0a28,28,0,0,1,28,28v0a28,28,0,0,1-28,28H48a0,0,0,0,1,0,0V180A28,28,0,0,1,76,152Z transform="translate(152 360) rotate(-180)"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></path><rect x=104 y=104 width=48 height=48 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16>'),yo=_('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 256 256"aria-hidden=true><rect width=256 height=256 fill=none></rect><polyline points="168 168 216 168 216 40 88 40 88 88"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></polyline><rect x=40 y=88 width=128 height=128 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16>'),xo=_('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 256 256"aria-hidden=true><rect width=256 height=256 fill=none></rect><circle cx=128 cy=128 r=96 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></circle><line x1=128 y1=32 x2=128 y2=72 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></line><line x1=128 y1=184 x2=128 y2=224 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></line><line x1=32 y1=128 x2=72 y2=128 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></line><line x1=184 y1=128 x2=224 y2=128 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16>'),ko=_('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 256 256"aria-hidden=true><rect width=256 height=256 fill=none></rect><circle cx=128 cy=128 r=96 fill=none stroke=currentColor stroke-miterlimit=10 stroke-width=16></circle><line x1=128 y1=136 x2=128 y2=80 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></line><circle fill=currentColor cx=128 cy=172 r=12>'),vo=_('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 256 256"><rect width=256 height=256 fill=none></rect><line x1=40 y1=128 x2=216 y2=128 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16>'),Co=_('<svg xmlns=http://www.w3.org/2000/svg fill=currentColor viewBox="0 0 256 256"aria-hidden=true><path d=M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z>'),$o=_('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 256 256"aria-hidden=true><rect width=256 height=256 fill=none></rect><line x1=40 y1=128 x2=216 y2=128 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></line><line x1=128 y1=40 x2=128 y2=216 fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16>'),So=_('<svg viewBox="0 0 256 256"fill=none aria-hidden=true><line x1=216 y1=56 x2=40 y2=56 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></line><line x1=104 y1=104 x2=104 y2=168 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></line><line x1=152 y1=104 x2=152 y2=168 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></line><path d=M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></path><path d=M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16>'),Ao=_('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 256 256"aria-hidden=true><rect width=256 height=256 fill=none></rect><line x1=200 y1=56 x2=56 y2=200 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16></line><line x1=200 y1=200 x2=56 y2=56 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=16>');function xt(e){return(()=>{var t=go();return D(()=>Z(t,"class",e.class)),t})()}function kt(e){return(()=>{var t=bo();return D(()=>Z(t,"class",e.class)),t})()}function Me(e){return(()=>{var t=wo();return D(()=>Z(t,"class",e.class)),t})()}function Kt(e){return(()=>{var t=yo();return D(()=>Z(t,"class",e.class)),t})()}function gn(e){return(()=>{var t=xo();return D(()=>Z(t,"class",e.class)),t})()}function _o(e){return(()=>{var t=ko();return D(()=>Z(t,"class",e.class)),t})()}function Eo(e){return(()=>{var t=vo();return D(()=>Z(t,"class",e.class)),t})()}function To(e){return(()=>{var t=Co();return D(()=>Z(t,"class",e.class)),t})()}function bn(e){return(()=>{var t=$o();return D(()=>Z(t,"class",e.class)),t})()}function Io(e){return(()=>{var t=So();return D(()=>Z(t,"class",e.class)),t})()}function No(e){return(()=>{var t=Ao();return D(()=>Z(t,"class",e.class)),t})()}function wn(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=wn(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function zo(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=wn(e))&&(o&&(o+=" "),o+=t);return o}const Po=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},jo=(e,t)=>({classGroupId:e,validator:t}),yn=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ut="-",Ht=[],Mo="arbitrary..",Oo=e=>{const t=Ro(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Lo(s);const i=s.split(ut),a=i[0]===""&&i.length>1?1:0;return xn(i,a,t)},getConflictingClassGroupIds:(s,i)=>{if(i){const a=o[s],u=n[s];return a?u?Po(u,a):a:u||Ht}return n[s]||Ht}}},xn=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],l=n.nextPart.get(r);if(l){const u=xn(e,t+1,l);if(u)return u}const s=n.validators;if(s===null)return;const i=t===0?e.join(ut):e.slice(t).join(ut),a=s.length;for(let u=0;u<a;u++){const f=s[u];if(f.validator(i))return f.classGroupId}},Lo=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?Mo+o:void 0})(),Ro=e=>{const{theme:t,classGroups:n}=e;return Bo(n,t)},Bo=(e,t)=>{const n=yn();for(const o in e){const r=e[o];Pt(r,n,o,t)}return n},Pt=(e,t,n,o)=>{const r=e.length;for(let l=0;l<r;l++){const s=e[l];Do(s,t,n,o)}},Do=(e,t,n,o)=>{if(typeof e=="string"){Uo(e,t,n);return}if(typeof e=="function"){Vo(e,t,n,o);return}Fo(e,t,n,o)},Uo=(e,t,n)=>{const o=e===""?t:kn(t,e);o.classGroupId=n},Vo=(e,t,n,o)=>{if(Wo(e)){Pt(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(jo(n,e))},Fo=(e,t,n,o)=>{const r=Object.entries(e),l=r.length;for(let s=0;s<l;s++){const[i,a]=r[s];Pt(a,kn(t,i),n,o)}},kn=(e,t)=>{let n=e;const o=t.split(ut),r=o.length;for(let l=0;l<r;l++){const s=o[l];let i=n.nextPart.get(s);i||(i=yn(),n.nextPart.set(s,i)),n=i}return n},Wo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Go=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(l,s)=>{n[l]=s,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(l){let s=n[l];if(s!==void 0)return s;if((s=o[l])!==void 0)return r(l,s),s},set(l,s){l in n?n[l]=s:r(l,s)}}},Et="!",Xt=":",qo=[],Zt=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),Ko=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const l=[];let s=0,i=0,a=0,u;const f=r.length;for(let I=0;I<f;I++){const N=r[I];if(s===0&&i===0){if(N===Xt){l.push(r.slice(a,I)),a=I+1;continue}if(N==="/"){u=I;continue}}N==="["?s++:N==="]"?s--:N==="("?i++:N===")"&&i--}const c=l.length===0?r:r.slice(a);let b=c,$=!1;c.endsWith(Et)?(b=c.slice(0,-1),$=!0):c.startsWith(Et)&&(b=c.slice(1),$=!0);const P=u&&u>a?u-a:void 0;return Zt(l,$,b,P)};if(t){const r=t+Xt,l=o;o=s=>s.startsWith(r)?l(s.slice(r.length)):Zt(qo,!1,s,void 0,!0)}if(n){const r=o;o=l=>n({className:l,parseClassName:r})}return o},Ho=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let l=0;l<n.length;l++){const s=n[l],i=s[0]==="[",a=t.has(s);i||a?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},Xo=e=>({cache:Go(e.cacheSize),parseClassName:Ko(e),sortModifiers:Ho(e),...Oo(e)}),Zo=/\s+/,Yo=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l}=t,s=[],i=e.trim().split(Zo);let a="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:c,modifiers:b,hasImportantModifier:$,baseClassName:P,maybePostfixModifierPosition:I}=n(f);if(c){a=f+(a.length>0?" "+a:a);continue}let N=!!I,U=o(N?P.substring(0,I):P);if(!U){if(!N){a=f+(a.length>0?" "+a:a);continue}if(U=o(P),!U){a=f+(a.length>0?" "+a:a);continue}N=!1}const O=b.length===0?"":b.length===1?b[0]:l(b).join(":"),j=$?O+Et:O,B=j+U;if(s.indexOf(B)>-1)continue;s.push(B);const M=r(U,N);for(let h=0;h<M.length;++h){const k=M[h];s.push(j+k)}a=f+(a.length>0?" "+a:a)}return a},Jo=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=vn(n))&&(r&&(r+=" "),r+=o);return r},vn=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=vn(e[o]))&&(n&&(n+=" "),n+=t);return n},Qo=(e,...t)=>{let n,o,r,l;const s=a=>{const u=t.reduce((f,c)=>c(f),e());return n=Xo(u),o=n.cache.get,r=n.cache.set,l=i,i(a)},i=a=>{const u=o(a);if(u)return u;const f=Yo(a,n);return r(a,f),f};return l=s,(...a)=>l(Jo(...a))},er=[],G=e=>{const t=n=>n[e]||er;return t.isThemeGetter=!0,t},Cn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$n=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,or=/\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$/,rr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ir=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,we=e=>tr.test(e),S=e=>!!e&&!Number.isNaN(Number(e)),ye=e=>!!e&&Number.isInteger(Number(e)),vt=e=>e.endsWith("%")&&S(e.slice(0,-1)),he=e=>nr.test(e),Sn=()=>!0,lr=e=>or.test(e)&&!rr.test(e),jt=()=>!1,ar=e=>sr.test(e),cr=e=>ir.test(e),ur=e=>!p(e)&&!g(e),dr=e=>ve(e,En,jt),p=e=>Cn.test(e),Ae=e=>ve(e,Tn,lr),Yt=e=>ve(e,yr,S),fr=e=>ve(e,Nn,Sn),hr=e=>ve(e,In,jt),Jt=e=>ve(e,An,jt),mr=e=>ve(e,_n,cr),Qe=e=>ve(e,zn,ar),g=e=>$n.test(e),De=e=>Ee(e,Tn),pr=e=>Ee(e,In),Qt=e=>Ee(e,An),gr=e=>Ee(e,En),br=e=>Ee(e,_n),et=e=>Ee(e,zn,!0),wr=e=>Ee(e,Nn,!0),ve=(e,t,n)=>{const o=Cn.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Ee=(e,t,n=!1)=>{const o=$n.exec(e);return o?o[1]?t(o[1]):n:!1},An=e=>e==="position"||e==="percentage",_n=e=>e==="image"||e==="url",En=e=>e==="length"||e==="size"||e==="bg-size",Tn=e=>e==="length",yr=e=>e==="number",In=e=>e==="family-name",Nn=e=>e==="number"||e==="weight",zn=e=>e==="shadow",xr=()=>{const e=G("color"),t=G("font"),n=G("text"),o=G("font-weight"),r=G("tracking"),l=G("leading"),s=G("breakpoint"),i=G("container"),a=G("spacing"),u=G("radius"),f=G("shadow"),c=G("inset-shadow"),b=G("text-shadow"),$=G("drop-shadow"),P=G("blur"),I=G("perspective"),N=G("aspect"),U=G("ease"),O=G("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...B(),g,p],h=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],d=()=>[g,p,a],C=()=>[we,"full","auto",...d()],L=()=>[ye,"none","subgrid",g,p],ne=()=>["auto",{span:["full",ye,g,p]},ye,g,p],J=()=>[ye,"auto",g,p],oe=()=>["auto","min","max","fr",g,p],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...d()],le=()=>[we,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...d()],ge=()=>[we,"screen","full","dvw","lvw","svw","min","max","fit",...d()],Ce=()=>[we,"screen","full","lh","dvh","lvh","svh","min","max","fit",...d()],x=()=>[e,g,p],qe=()=>[...B(),Qt,Jt,{position:[g,p]}],Ke=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Te=()=>["auto","cover","contain",gr,dr,{size:[g,p]}],Ie=()=>[vt,De,Ae],F=()=>["","none","full",u,g,p],K=()=>["",S,De,Ae],$e=()=>["solid","dashed","dotted","double"],He=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[S,vt,Qt,Jt],Be=()=>["","none",P,g,p],Ne=()=>["none",S,g,p],ze=()=>["none",S,g,p],Pe=()=>[S,g,p],Se=()=>[we,"full",...d()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[he],breakpoint:[he],color:[Sn],container:[he],"drop-shadow":[he],ease:["in","out","in-out"],font:[ur],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[he],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[he],shadow:[he],spacing:["px",S],text:[he],"text-shadow":[he],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",we,p,g,N]}],container:["container"],columns:[{columns:[S,p,g,i]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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"],sr:["sr-only","not-sr-only"],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:M()}],overflow:[{overflow:h()}],"overflow-x":[{"overflow-x":h()}],"overflow-y":[{"overflow-y":h()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[ye,"auto",g,p]}],basis:[{basis:[we,"full","auto",i,...d()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[S,we,"auto","initial","none",p]}],grow:[{grow:["",S,g,p]}],shrink:[{shrink:["",S,g,p]}],order:[{order:[ye,"first","last","none",g,p]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:d()}],"gap-x":[{"gap-x":d()}],"gap-y":[{"gap-y":d()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:d()}],px:[{px:d()}],py:[{py:d()}],ps:[{ps:d()}],pe:[{pe:d()}],pbs:[{pbs:d()}],pbe:[{pbe:d()}],pt:[{pt:d()}],pr:[{pr:d()}],pb:[{pb:d()}],pl:[{pl:d()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mbs:[{mbs:Q()}],mbe:[{mbe:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":d()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":d()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],"inline-size":[{inline:["auto",...ge()]}],"min-inline-size":[{"min-inline":["auto",...ge()]}],"max-inline-size":[{"max-inline":["none",...ge()]}],"block-size":[{block:["auto",...Ce()]}],"min-block-size":[{"min-block":["auto",...Ce()]}],"max-block-size":[{"max-block":["none",...Ce()]}],w:[{w:[i,"screen",...le()]}],"min-w":[{"min-w":[i,"screen","none",...le()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh",...le()]}],"font-size":[{text:["base",n,De,Ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,wr,fr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vt,p]}],"font-family":[{font:[pr,hr,t]}],"font-features":[{"font-features":[p]}],"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:[r,g,p]}],"line-clamp":[{"line-clamp":[S,"none",g,Yt]}],leading:[{leading:[l,...d()]}],"list-image":[{"list-image":["none",g,p]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",g,p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$e(),"wavy"]}],"text-decoration-thickness":[{decoration:[S,"from-font","auto",g,Ae]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[S,"auto",g,p]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g,p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",g,p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:qe()}],"bg-repeat":[{bg:Ke()}],"bg-size":[{bg:Te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ye,g,p],radial:["",g,p],conic:[ye,g,p]},br,mr]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:Ie()}],"gradient-via-pos":[{via:Ie()}],"gradient-to-pos":[{to:Ie()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-bs":[{"border-bs":K()}],"border-w-be":[{"border-be":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$e(),"hidden","none"]}],"divide-style":[{divide:[...$e(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...$e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[S,g,p]}],"outline-w":[{outline:["",S,De,Ae]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",f,et,Qe]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",c,et,Qe]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[S,Ae]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",b,et,Qe]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[S,g,p]}],"mix-blend":[{"mix-blend":[...He(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":He()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[S]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[g,p]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[S]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:qe()}],"mask-repeat":[{mask:Ke()}],"mask-size":[{mask:Te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",g,p]}],filter:[{filter:["","none",g,p]}],blur:[{blur:Be()}],brightness:[{brightness:[S,g,p]}],contrast:[{contrast:[S,g,p]}],"drop-shadow":[{"drop-shadow":["","none",$,et,Qe]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",S,g,p]}],"hue-rotate":[{"hue-rotate":[S,g,p]}],invert:[{invert:["",S,g,p]}],saturate:[{saturate:[S,g,p]}],sepia:[{sepia:["",S,g,p]}],"backdrop-filter":[{"backdrop-filter":["","none",g,p]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[S,g,p]}],"backdrop-contrast":[{"backdrop-contrast":[S,g,p]}],"backdrop-grayscale":[{"backdrop-grayscale":["",S,g,p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S,g,p]}],"backdrop-invert":[{"backdrop-invert":["",S,g,p]}],"backdrop-opacity":[{"backdrop-opacity":[S,g,p]}],"backdrop-saturate":[{"backdrop-saturate":[S,g,p]}],"backdrop-sepia":[{"backdrop-sepia":["",S,g,p]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":d()}],"border-spacing-x":[{"border-spacing-x":d()}],"border-spacing-y":[{"border-spacing-y":d()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",g,p]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[S,"initial",g,p]}],ease:[{ease:["linear","initial",U,g,p]}],delay:[{delay:[S,g,p]}],animate:[{animate:["none",O,g,p]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[I,g,p]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:ze()}],"scale-x":[{"scale-x":ze()}],"scale-y":[{"scale-y":ze()}],"scale-z":[{"scale-z":ze()}],"scale-3d":["scale-3d"],skew:[{skew:Pe()}],"skew-x":[{"skew-x":Pe()}],"skew-y":[{"skew-y":Pe()}],transform:[{transform:[g,p,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",g,p]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mbs":[{"scroll-mbs":d()}],"scroll-mbe":[{"scroll-mbe":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pbs":[{"scroll-pbs":d()}],"scroll-pbe":[{"scroll-pbe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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",g,p]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[S,De,Ae,Yt]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},kr=Qo(xr),te=(...e)=>kr(zo(e)),tt=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{return!1}},Pn=(e,t=40)=>{var u;if(e.length<=t)return e;const n=e.trim(),o=n.includes(">")?((u=n.split(">").pop())==null?void 0:u.trim())??n:n,r=n.includes(">")?`… > ${o}`:n;if(r.length<=t)return r;if(t<=1)return"…".slice(0,t);const l="…",s=r.startsWith("… > ")?"… > ":"",i=r.slice(s.length),a=t-s.length-l.length;return a<=0?`${s}${l}`.slice(0,t):`${s}${i.slice(0,a)}${l}`},vr=(e,t=80)=>{try{const n=new URL(e),o=n.host+n.pathname.replace(/\/$/,"")+n.search;return o.length<=t?o:o.slice(0,t)+"…"}catch{return e.length<=t?e:e.slice(0,t)+"…"}},Cr=0;function $r(e){return chrome.runtime.sendMessage({type:"captureVisibleTab",tabId:e}).catch(()=>null)}function Sr(e,t,n){return new Promise((o,r)=>{const l=new Image;l.onload=()=>{const s=Cr*n,i=Math.max(0,Math.floor(t.x*n-s)),a=Math.max(0,Math.floor(t.y*n-s)),u=Math.min(l.width,Math.ceil((t.x+t.width)*n+s)),f=Math.min(l.height,Math.ceil((t.y+t.height)*n+s)),c=Math.max(1,u-i),b=Math.max(1,f-a),$=document.createElement("canvas");$.width=c,$.height=b,$.getContext("2d").drawImage(l,i,a,c,b,0,0,c,b),o($.toDataURL("image/png"))},l.onerror=r,l.src=e})}async function en(e,t){try{const n=await $r(chrome.devtools.inspectedWindow.tabId);return n?await Sr(n,e,t):null}catch{return null}}function jn(e){const t=u=>!!u&&typeof u=="object",n=u=>{if(u.parentElement)return u.parentElement;const f=u.getRootNode();return f instanceof ShadowRoot?f.host:null},o=u=>{if(!t(u))return;const f=u.file,c=u.line,b=u.column;if(!(typeof f!="string"||typeof c!="number"||typeof b!="number"))return{file:f,line:c,column:b}},r=u=>{let f=u;for(;f;){const c=f.__svelte_meta;if(t(c))return c;f=n(f)}},l=()=>{const u=r(e);if(!u)return;const f=o(u.loc);return{framework:"svelte",...f?{location:f}:{}}},s=u=>{const f=Object.getOwnPropertyNames(u).find(c=>c.startsWith("__reactFiber$"));return f?u[f]??null:null},i=u=>{for(const f of u.split(`
|
|
2
|
+
`)){const c=f.match(/at .+? \(https?:\/\/[^/]+(\/[^?:]+?)(?:\?[^:]*)?:(\d+):(\d+)\)/);if(!c)continue;const b=c[1],$=c[2],P=c[3];if(!b.includes("/node_modules/"))return{file:b,line:Number($),column:Number(P)}}},a=()=>{const u=s(e);if(!u)return;let f=u;for(;f;){if(f._debugStack){const c=i(f._debugStack.stack??"");return{framework:"react",...c?{location:c}:{}}}f=f.return}return{framework:"react"}};return l()??a()}const Mn=(e,t)=>new Promise(n=>{chrome.devtools.inspectedWindow.eval(e,(o,r)=>{if(r!=null&&r.isException){const l=typeof r.value=="string"&&r.value||typeof r.description=="string"&&r.description||`Failed to capture ${t}`;n({payload:null,error:l});return}if(typeof o!="string"){console.warn(`Failed to capture ${t}`,r),n({payload:null,error:`Failed to capture ${t}`});return}try{n({payload:JSON.parse(o),error:null})}catch(l){console.warn(`Failed to parse ${t}`,l),n({payload:null,error:`Failed to parse ${t}`})}})});function Ar(){const e=c=>!!c&&typeof c=="object"&&"nodeType"in c&&c.nodeType===Node.ELEMENT_NODE,t=c=>!!c&&typeof c=="object"&&"nodeType"in c&&c.nodeType===Node.COMMENT_NODE,n=c=>!!c&&typeof c=="object"&&"nodeType"in c&&c.nodeType===Node.TEXT_NODE,o=c=>e(c)?c:c.parentElement?c.parentElement:c.parentNode instanceof ShadowRoot?c.parentNode.host:c.ownerDocument.documentElement,r=c=>{var N;const b=c.getBoundingClientRect();let $=b.x,P=b.y,I=c.ownerDocument;for(;((N=I.defaultView)==null?void 0:N.frameElement)instanceof Element;){const U=I.defaultView.frameElement,O=U.getBoundingClientRect();$+=O.x+U.clientLeft,P+=O.y+U.clientTop,I=U.ownerDocument}return{x:$,y:P,width:b.width,height:b.height}},l=()=>{const c=new URL(window.location.href),b=window.visualViewport?{width:window.visualViewport.width,height:window.visualViewport.height}:{width:window.innerWidth,height:window.innerHeight};return{href:c.href,origin:c.origin,userAgent:navigator.userAgent,devicePixelRatio:window.devicePixelRatio,viewport:b}},s=globalThis.$0??null;if(!e(s)&&!t(s)&&!n(s))throw new Error("The current devtools selection is not an element, comment, or text node.");const i=o(s),a=l(),u=r(i),f=jn(i);return JSON.stringify({page:a,boundingBox:u,...f?{source:f}:{}})}const _r=async()=>{const e=`
|
|
3
|
+
(() => {
|
|
4
|
+
const getSourceContext = ${jn};
|
|
5
|
+
return (${Ar})();
|
|
6
|
+
})();
|
|
7
|
+
`,{payload:t,error:n}=await Mn(e,"context");return t||(n&&console.warn(n),null)};function Er(){const[e,t]=H(null),[n,o]=H(!1);let r=0;return{selectionContext:e,isLoading:n,load:async()=>{const s=++r;o(!0);const i=await _r();return s!==r?e():(t(i),o(!1),i)}}}var Tr=_("<div role=tooltip>"),Ir=_("<kbd>"),Nr=_("<button>");const zr={"top-left":"[position-area:top_span-right] [justify-self:start] mb-1",top:"[position-area:top] [justify-self:anchor-center] mb-1","top-right":"[position-area:top_span-left] [justify-self:end] mb-1","bottom-left":"[position-area:bottom_span-right] [justify-self:start] mt-1",bottom:"[position-area:bottom] [justify-self:anchor-center] mt-1","bottom-right":"[position-area:bottom_span-left] [justify-self:end] mt-1",left:"[position-area:left] [align-self:anchor-center] mr-1",right:"[position-area:right] [align-self:anchor-center] ml-1"},xe=e=>(()=>{var t=Tr();return v(t,()=>e.children),D(n=>{var o=e.anchor,r=te("pointer-events-none fixed inset-auto z-20 w-max max-w-[calc(100vw-1rem)] overflow-hidden rounded border border-foreground/10 bg-panel px-1.5 py-0.75 text-2xs text-foreground opacity-0 [position-anchor:var(--anchor)] [position-try-fallbacks:flip-block,flip-inline] peer-hover:opacity-100 peer-focus-visible:opacity-100 peer-has-focus-visible:opacity-100",zr[e.position??"bottom"],e.class);return o!==n.e&&fo(t,"--anchor",n.e=o),r!==n.t&&Fe(t,n.t=r),n},{e:void 0,t:void 0}),t})(),_e=e=>{const[t,n]=mn(e,["children","class"]);return(()=>{var o=Ir();return zt(o,Nt(n,{get class(){return te("font-inherit inline-flex items-center gap-0.5 text-foreground/50",t.class)}}),!1,!0),v(o,()=>t.children),o})()},Pr=e=>{const[t,n]=mn(e,["loading","submitted","variant","children","class"]);return(()=>{var o=Nr();return zt(o,Nt(n,{get"data-loading"(){return t.loading?"":void 0},get"data-submitted"(){return t.submitted?"":void 0},get class(){return te("group relative flex size-8 items-center justify-center overflow-clip rounded-sm","[transition:scale_160ms_var(--ease-out-quint)]","active:scale-[0.935] data-loading:active:scale-100","before:absolute before:-inset-1/2 before:content-['']","before:bg-[conic-gradient(transparent_0%_85%,var(--color-foreground)_95%_100%)]","before:opacity-0 before:[transition:opacity_0ms]","data-loading:before:opacity-100","data-loading:before:[transition:opacity_150ms_ease-out]","data-loading:before:animate-[rotate_2s_linear_infinite]","after:absolute after:inset-0 after:content-['']","after:rounded-[inherit]","after:[transition:scale_300ms_var(--ease-out-quint),background-color_300ms_var(--ease-out-quint)]","data-loading:after:scale-[0.935]",t.variant==="blue"?["text-foreground","after:bg-accent","hover:after:bg-[color-mix(in_srgb,var(--color-accent)_90%,var(--color-panel))]","data-loading:after:bg-[color-mix(in_srgb,var(--color-accent)_90%,var(--color-panel))]","data-submitted:after:bg-[color-mix(in_srgb,var(--color-accent)_90%,var(--color-panel))]"]:["text-panel","after:bg-foreground","hover:after:bg-[color-mix(in_srgb,var(--color-foreground)_90%,var(--color-panel))]","data-loading:after:bg-[color-mix(in_srgb,var(--color-foreground)_90%,var(--color-panel))]","data-submitted:after:bg-[color-mix(in_srgb,var(--color-foreground)_90%,var(--color-panel))]"],t.class)}}),!1,!0),v(o,()=>t.children),o})()};function jr(){const e=h=>!!h&&typeof h=="object"&&"nodeType"in h&&h.nodeType===Node.ELEMENT_NODE,t=h=>!!h&&typeof h=="object"&&"nodeType"in h&&h.nodeType===Node.COMMENT_NODE,n=h=>!!h&&typeof h=="object"&&"nodeType"in h&&h.nodeType===Node.TEXT_NODE,o=h=>typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(h):Array.from(h).map((k,d)=>{if(/[a-zA-Z0-9_-]/.test(k)&&!(d===0&&/\d/.test(k)))return k;const C=k.codePointAt(0);return C==null?"":"\\"+C.toString(16)+" "}).join(""),r=h=>h.replaceAll("\\","\\\\").replaceAll('"','\\"'),l=h=>{let k=1,d=h.previousElementSibling;for(;d;)k+=1,d=d.previousElementSibling;return k},s=h=>{let k=1,d=h.previousElementSibling;for(;d;)d.localName===h.localName&&(k+=1),d=d.previousElementSibling;return k},i=(h,k,d)=>{try{const C=h.querySelectorAll(k);return C.length===1&&C[0]===d}catch{return!1}},a=(h,k)=>{const d=h.parentElement;if(!d)return!0;try{const C=d.querySelectorAll(":scope > "+k);return C.length===1&&C[0]===h}catch{return!1}},u=h=>{const k=o(h.localName),d=[],C=["data-testid","data-test","data-qa","data-cy","name","aria-label","role","type","for","placeholder","alt","title","href","src"];h.localName==="script"&&C.unshift("src","type","nonce","integrity","crossorigin","referrerpolicy","async","defer","nomodule");for(const L of C){if(!h.hasAttribute(L))continue;const ne=h.getAttribute(L),J=ne===""?k+"["+o(L)+"]":k+"["+o(L)+'="'+r(ne??"")+'"]';d.includes(J)||d.push(J)}return d},f=h=>{const k=o(h.localName),d=[...new Set(Array.from(h.classList).filter(Boolean))].map(L=>o(L));if(d.length===0)return[];const C=[k+"."+d.join(".")];for(const L of d)C.push(k+"."+L);return C},c=h=>{const k=o(h.localName),d=[];return h.id&&d.push("#"+o(h.id)),["html","head","body"].includes(h.localName)&&d.push(k),d.push(...u(h)),d.push(...f(h)),d.push(k),d.push(k+":nth-of-type("+s(h)+")"),d.push(k+":nth-child("+l(h)+")"),[...new Set(d)]},b=h=>h.includes(":nth-of-type("),$=h=>h.includes(":nth-child("),P=h=>b(h)||$(h),I=(h,k)=>{for(const d of k)if(d.startsWith("#")||a(h,d))return d;return k.find(d=>b(d))||k.find(d=>$(d))||k[k.length-1]||o(h.localName)},N=(h,k)=>{const d=[];let C=h;for(;C;){const L=c(C),ne=L.filter(oe=>!P(oe)),J=L.filter(oe=>P(oe));for(const oe of ne){const Y=[oe,...d].join(" > ");if(i(k,Y,h))return Y}if(d.length>0)for(const oe of J){const Y=[oe,...d].join(" > ");if(i(k,Y,h))return Y}d.unshift(I(C,L)),C=C.parentElement}return d.join(" > ")},U=h=>{var C;const k=[];let d=h.ownerDocument;for(;((C=d.defaultView)==null?void 0:C.frameElement)instanceof Element;){const L=d.defaultView.frameElement,ne=L.getRootNode();k.unshift(N(L,ne)),d=L.ownerDocument}return k},O=h=>e(h)?h:h.parentElement?h.parentElement:h.parentNode instanceof ShadowRoot?h.parentNode.host:h.ownerDocument.documentElement,j=h=>h.data.trim(),B=h=>{const k=O(h),d=k.getRootNode(),C=N(k,d),L=U(k);return{selector:C,...L.length>0?{frame:L}:{},...t(h)?{nodeType:"comment",content:j(h)}:n(h)?{nodeType:"text",content:j(h)}:{}}},M=globalThis.$0??null;if(!e(M)&&!t(M)&&!n(M))throw new Error("The current devtools selection is not an element, comment, or text node.");return JSON.stringify({selection:B(M),origin:new URL(window.location.href).origin})}function Mr(){const[e,t]=H(null),[n,o]=H(null),[r,l]=H(null);let s=0;const i=()=>{const a=++s,u=`
|
|
8
|
+
(() => {
|
|
9
|
+
return (${jr})();
|
|
10
|
+
})();
|
|
11
|
+
`;Mn(u,"selection").then(({payload:f,error:c})=>{if(a===s){if(l(c),!f){t(null);return}t(f.selection),o(f.origin)}})};return an(()=>{chrome.devtools.panels.elements.onSelectionChanged.addListener(i),i()}),Tt(()=>{chrome.devtools.panels.elements.onSelectionChanged.removeListener(i)}),{selection:e,origin:n,error:r}}const nt=({comment:e,screenshot:t,selection:n,context:o})=>({id:crypto.randomUUID(),createdAt:new Date().toISOString(),comment:e,...t?{screenshot:t}:{},target:n,...o});function On(e){var t,n;return!!e&&typeof e.id=="string"&&typeof((t=e.target)==null?void 0:t.selector)=="string"&&typeof((n=e.page)==null?void 0:n.href)=="string"}const Mt=e=>`feedback:${e}`,Or="http://127.0.0.1:3330/";async function Lr(e){const t=Mt(e),o=(await chrome.storage.local.get([t]))[t];return!o||typeof o.origin!="string"||o.origin!==e||typeof o.webhookEnabled!="boolean"||typeof o.webhookUrl!="string"?(o&&await chrome.storage.local.remove(t),{webhookEnabled:!0,webhookUrl:Or,annotations:[]}):{webhookEnabled:o.webhookEnabled,webhookUrl:o.webhookUrl,annotations:Array.isArray(o.annotations)?o.annotations.filter(On):[]}}async function Rr(e,t){try{await chrome.storage.local.set({[Mt(e)]:{origin:e,...t}})}catch(n){console.error("Failed to save sidebar state",n)}}function Br(e,t){const n=(o,r)=>{var i;const l=e();if(r!=="local"||!l)return;const s=(i=o[Mt(l)])==null?void 0:i.newValue;!s||typeof s.webhookEnabled!="boolean"||typeof s.webhookUrl!="string"||t({webhookEnabled:s.webhookEnabled,webhookUrl:s.webhookUrl,annotations:Array.isArray(s.annotations)?s.annotations.filter(On):[]})};return chrome.storage.onChanged.addListener(n),()=>chrome.storage.onChanged.removeListener(n)}const rt=(e,{includeScreenshot:t=!0}={})=>{var u;const{comment:n,screenshot:o,target:r,page:l,boundingBox:s,source:i}=e,a=[];if(a.push(`## \`${r.selector}\``),a.push(""),n&&(a.push(n),a.push("")),t&&o&&(a.push(``),a.push("")),a.push(`- **Page:** [${l.href}](${l.href})`),a.push(`- **Device:** \`${l.userAgent}\``),a.push(`- **Viewport:** ${l.viewport.width}×${l.viewport.height}`),a.push(`- **Device pixel ratio:** ${l.devicePixelRatio}`),a.push(`- **Position:** X ${Math.round(s.x)}, Y ${Math.round(s.y)}`),a.push(`- **Size:** ${Math.round(s.width)}×${Math.round(s.height)}`),(u=r.frame)!=null&&u.length&&a.push(`- **Frame:** \`${r.frame.join(" > ")}\``),r.nodeType&&r.content&&a.push(`- **Content:** \`${r.content}\``),i!=null&&i.location){const f=`${i.location.file}:${i.location.line}`;a.push(`- **Source:** [\`${f}\`](${i.location.file})`)}return a.join(`
|
|
12
|
+
`)},Ct=(e,{comment:t,includeScreenshot:n=!0}={})=>{const o=[];t&&(o.push("# Feedback"),o.push(""),o.push(t),o.push(""));for(const[r,l]of e.entries()){const s=rt(l,{includeScreenshot:n});o.push(s.replace(/^## /,`## ${r+1}. `)),o.push("")}return o.join(`
|
|
13
|
+
`).trimEnd()};var Dr=_("<button type=button>"),Ur=_('<li><article><p class="pr-5 whitespace-pre-wrap"></p><div class="mt-2 flex h-fit items-center gap-1"><span class="flex cursor-default items-center gap-1 text-2xs text-foreground/80">');const $t=e=>(()=>{var t=Dr();return zt(t,Nt(e,{get class(){return te("pointer-events-none absolute top-2 right-2 ml-auto text-2xs text-foreground/80 opacity-0 group-hover/annotation:pointer-events-auto group-hover/annotation:opacity-100 hover:text-foreground focus-visible:pointer-events-auto focus-visible:opacity-100",e.class)}}),!1,!1),t})(),Vr=e=>(()=>{var t=Ur(),n=t.firstChild,o=n.firstChild,r=o.nextSibling,l=r.firstChild;return v(o,()=>e.annotation.comment),v(r,w(ee,{get when(){return e.isBatching},get fallback(){return w($t,{"aria-label":"Discard annotation",get onClick(){return e.onRemove},get children(){return w(No,{class:"size-3"})}})},get children(){return[w(ee,{get when(){return e.isInBatch},get children(){return w($t,{"aria-label":"Exclude annotation",get onClick(){return e.onExclude},get children(){return w(Eo,{class:"size-3"})}})}}),w(ee,{get when(){return!e.isInBatch},get children(){return w($t,{"aria-label":"Include annotation",get onClick(){return e.onInclude},get children(){return w(bn,{class:"size-3"})}})}})]}}),l),v(l,w(gn,{class:"size-3 shrink-0"}),null),v(l,()=>Pn(e.annotation.target.selector),null),D(()=>Fe(n,te("group/annotation relative w-full bg-foreground/2 p-2 pl-3","before:absolute before:inset-y-0 before:left-0 before:w-0.5 before:transition-[background-color] before:duration-150 before:content-['']",e.isInBatch?"before:bg-accent":"before:bg-foreground/20"))),t})();var Fr=_('<form class="flex items-center gap-1.5 pl-1"><input class=field-sizing-content type=url name=url><button type=submit class="text-foreground/80 hover:text-foreground"aria-label=Save>'),tn=_("<span aria-hidden=true>X"),Wr=_('<div class="flex flex-col gap-0.5"><span class="inline-flex items-center gap-1">Copy all</span><span class="inline-flex items-center gap-1 text-foreground/50">Or current'),Gr=_('<div class="h-8 [anchor-name:--toolbar-copy-button]"><button type=button aria-label="Copy annotations"class="group peer flex size-8 items-center justify-center text-foreground/80 transition-[scale] duration-150 hover:text-foreground active:scale-[0.95]">'),nn=_("<span aria-hidden=true>K"),qr=_('<div class="flex flex-col gap-0.5"><span class="inline-flex items-center gap-1">Clear all</span><span class="inline-flex items-center gap-1 text-foreground/50">Or current'),Kr=_('<ol class="flex min-h-0 grow flex-col gap-2 overflow-y-auto scroll-fade p-2">'),Hr=_('<span class="block text-2xs text-foreground/80">'),Xr=_("<span aria-hidden=true>Esc"),Zr=_('<span class="inline-flex items-center gap-1">Cancel'),Yr=_('<div><div class="peer h-8 [anchor-name:--cancel-submit-button]"><button type=button class="flex h-8 items-center justify-center rounded-sm px-2 text-2xs text-foreground/80 transition-[scale,color] duration-150 hover:text-foreground active:scale-[0.9625]">Cancel'),on=_("<span aria-hidden=true>Enter"),Jr=_('<span class="inline-flex items-center gap-1">'),Qr=_('<div class="mt-2 ml-auto flex w-fit items-center gap-1 text-2xs text-foreground">'),es=_('<main><div class="flex h-8 border-b border-b-foreground/7 pl-1 text-2xs"><div class="flex items-center gap-1"><div class="relative flex h-8 items-center justify-center"><button class="toggle peer group flex size-4 items-center justify-center p-1"aria-label="Toggle webhook"type=button><span></span></button><div aria-hidden=true class="pointer-events-none absolute top-0 left-0 h-8 w-8 [anchor-name:--webhook-toggle]"></div></div></div><div class="ml-auto flex"><div class="h-8 [anchor-name:--toolbar-clear-button]"><button type=button aria-label="Clear annotations"class="group peer flex size-8 items-center justify-center text-foreground/80 transition-[scale] duration-150 hover:text-foreground active:scale-[0.95]"></button></div></div></div><div class="relative flex min-h-36 grow flex-col"></div><div class="border-t border-t-foreground/7"><form class=p-2><div class=relative><textarea name=comment class="flex field-sizing-content max-h-[4rlh] min-h-[2.5rlh] w-full resize-none rounded-sm border border-foreground/5 bg-foreground/2.5 p-2 text-xs hover:bg-foreground/4"></textarea></div><div class="mt-2 flex items-start gap-2"><div class="flex min-w-0 flex-col gap-1"></div><div class="ml-auto flex h-8 w-fit shrink-0 items-center gap-1 [anchor-name:--form-actions]"><div><div class="peer size-8 [anchor-name:--submit-button]">'),ts=_('<div><button type=button aria-label="Change Webhook URL"class="peer flex max-w-48 items-center truncate text-foreground/80 [anchor-name:--webhook-url] hover:text-foreground">'),ns=_('<span class="block text-2xs text-foreground/80">Select an element'),os=_('<div class="flex h-fit items-center gap-1"><span tabindex=0 class="peer flex cursor-default items-center gap-1 text-2xs text-foreground/80 select-none [anchor-name:--selector]"><span>'),rs=_('<span class="inline-flex items-center gap-1">Add'),ss=_('<div><div class="peer size-8 [anchor-name:--add-button]"><button type=submit name=intent value=add aria-label=Add class="flex size-8 items-center justify-center rounded-sm bg-foreground/5 text-foreground transition-[scale] duration-150 active:scale-[0.935]">');const is=()=>{const e={webhookUrlInput:void 0,annotationList:void 0,form:void 0,commentInput:void 0,addButton:void 0,submitButton:void 0},[t,n]=H(!1),[o,r]=H(!1),[l,s]=H(""),[i,a]=H([]);Ue(Ye(()=>[t(),l(),i()],async([y,E,ae])=>{const se=x();se&&(ft=!0,await Rr(se,{webhookEnabled:y,webhookUrl:E,annotations:ae}),ft=!1)},{defer:!0}));const[u,f]=H(null),c=()=>u()!==null,b=()=>u()??[],$=()=>{const y=new Set(b());return i().filter(({id:E})=>y.has(E))},P=y=>f(y),I=()=>{re(),f(null)};let N;const[U,O]=H(!1);let j;const[B,M]=H(!1),[h,k]=H(!1),d=()=>h()||B(),[C,L]=H(null),[ne,J]=H(null),[oe,Y]=H(!1);Ue(Ye(l,()=>Y(!1),{defer:!0}));const re=()=>{L(null),J(null)},Q=y=>{L(y)},le=y=>{J(y),Y(!0)},ge=()=>e.commentInput.value.trim()||void 0,{selection:Ce,origin:x}=Mr();Ue(Ye(Ce,re,{defer:!0})),Ue(Ye(x,async y=>{if(!y)return;const E=await Lr(y);wt(()=>{n(E.webhookEnabled),s(E.webhookUrl),a(E.annotations)})}));const{selectionContext:qe,isLoading:Ke,load:Te}=Er(),Ie=()=>{a([]),I()},F=async()=>{const y=Ce();if(!y)return Q("Select an element"),null;const E=await Te();return E?{selection:y,context:E}:null},K=async y=>{k(!0);try{const E=new AbortController,ae=setTimeout(()=>E.abort(),5e3);try{if(!(await fetch(l(),{method:"POST",headers:{"Content-Type":"text/markdown"},body:y,signal:E.signal})).ok)return le("Could not reach webhook"),!1}finally{clearTimeout(ae)}}catch{return le("Could not reach webhook"),!1}finally{k(!1),e.commentInput.focus()}return J(null),Y(!1),!0},$e=y=>{clearTimeout(j),M(!0),j=setTimeout(()=>{wt(()=>{M(!1),a(E=>{const ae=new Set(y);return E.filter(({id:se})=>!ae.has(se))}),I()}),e.form.reset()},2e3)},He=async()=>{const y=await F();if(!y)return;const E=await tt(rt(nt({comment:ge()||void 0,selection:y.selection,context:y.context}),{includeScreenshot:!1}));clearTimeout(N),O(E),E&&(N=setTimeout(()=>O(!1),2e3))},V=async()=>{const y=await tt(Ct(i(),{comment:ge(),includeScreenshot:!1}));clearTimeout(N),O(y),y&&(N=setTimeout(()=>O(!1),2e3))},Be=()=>t()?"Send":"Copy",Ne=()=>t()?c()?"sendBatch":"send":c()?"copyBatch":"copy",ze=async y=>{var se;if(y.preventDefault(),h())return;clearTimeout(j),M(!1);const E=ge();switch(((se=y.submitter)==null?void 0:se.value)??"add"){case"send":{if(i().length){P(i().map(({id:de})=>de));return}const R=await F();if(!R)return;const ie=await en(R.context.boundingBox,R.context.page.devicePixelRatio),ue=rt(nt({comment:E,screenshot:ie||void 0,selection:R.selection,context:R.context}));if(!await K(ue))return;M(!0),j=setTimeout(()=>M(!1),2e3),e.form.reset();break}case"copy":{if(i().length){P(i().map(({id:ie})=>ie));return}const R=await F();if(!R)return;await tt(rt(nt({comment:E,selection:R.selection,context:R.context}),{includeScreenshot:!1})),M(!0),j=setTimeout(()=>M(!1),2e3),e.form.reset();break}case"sendBatch":{const R=[...b()];if(!R.length)return;const ie=Ct($(),{comment:E});if(!await K(ie))return;$e(R);break}case"copyBatch":{const R=[...b()];if(!R.length)return;await tt(Ct($(),{comment:E,includeScreenshot:!1})),$e(R);break}case"add":default:{const R=await F();if(!R)return;const ie=nt({comment:E,selection:R.selection,context:R.context});a(ue=>[...ue,ie]),t()&&en(R.context.boundingBox,R.context.page.devicePixelRatio).then(ue=>{ue&&a(de=>de.some(({id:be})=>be===ie.id)?de.map(be=>be.id===ie.id?{...be,screenshot:ue}:be):de)}),e.form.reset(),e.annotationList.scrollTo({behavior:"smooth",top:e.annotationList.scrollHeight});break}}},Pe=y=>{if(d())return;const E=y.metaKey||y.ctrlKey;if(y.key==="Escape"){if(c()){y.preventDefault(),I();return}e.form.reset();return}if(E&&y.shiftKey&&y.key==="Enter"){e.form.requestSubmit(e.submitButton);return}if(E&&y.key==="Enter"){e.form.requestSubmit(e.addButton);return}if(E&&y.shiftKey&&y.key==="x"){V();return}if(E&&y.key==="x"){y.preventDefault(),He();return}if(E&&y.shiftKey&&y.key==="k"){y.preventDefault(),Ie();return}E&&y.key==="k"&&ge()&&(y.preventDefault(),e.form.reset())};let Se=!1,ft=!1,Ot=()=>{};return an(()=>{window.addEventListener("keydown",Pe),Ot=Br(x,y=>{Se||ft||wt(()=>{n(y.webhookEnabled),s(y.webhookUrl),a(y.annotations)})})}),Tt(()=>{Se=!0,Ot(),window.removeEventListener("keydown",Pe),clearTimeout(j),clearTimeout(N)}),(()=>{var y=es(),E=y.firstChild,ae=E.firstChild,se=ae.firstChild,R=se.firstChild,ie=R.firstChild;R.nextSibling;var ue=ae.nextSibling,de=ue.firstChild,be=de.firstChild,ht=E.nextSibling,Ln=ht.nextSibling,Xe=Ln.firstChild,Lt=Xe.firstChild,Ze=Lt.firstChild,Rn=Lt.nextSibling,mt=Rn.firstChild,pt=mt.nextSibling,gt=pt.firstChild,Bn=gt.firstChild;return y.$$keydown=re,y.$$pointerdown=re,R.$$click=()=>{Y(!1),r(!1),n(m=>!m)},v(se,w(xe,{anchor:"--webhook-toggle",position:"bottom-left",children:"Toggle webhook"}),null),v(ae,w(ee,{get when(){return t()},get children(){return w(ee,{get when(){return o()},get fallback(){return(()=>{var m=ts(),A=m.firstChild;return A.$$click=()=>{r(!0),queueMicrotask(()=>e.webhookUrlInput.select())},v(A,l),v(m,w(xe,{class:"ml-1.5",anchor:"--webhook-url",position:"right",children:"Change URL"}),null),m})()},get children(){var m=Fr(),A=m.firstChild,z=A.nextSibling;return m.$$keydown=T=>{T.key==="Escape"&&(T.preventDefault(),r(!1))},m.$$focusout=T=>{T.relatedTarget instanceof Node&&T.currentTarget.contains(T.relatedTarget)||(T.currentTarget.reset(),r(!1))},m.addEventListener("submit",T=>{T.preventDefault(),s(e.webhookUrlInput.value),r(!1)}),Oe(T=>e.webhookUrlInput=T,A),v(z,w(kt,{class:"size-3.25"})),D(()=>A.value=l()),m}})}}),null),v(ue,w(ee,{get when(){return t()},get children(){var m=Gr(),A=m.firstChild;return A.$$click=()=>V(),v(A,w(Kt,{get class(){return te("size-3.25 transition-[opacity,blur] duration-100","group-data-copied:scale-80 group-data-copied:opacity-0 group-data-copied:blur-[0.25px]","not-group-data-copied:opacity-100 not-group-data-copied:blur-none")}}),null),v(A,w(kt,{get class(){return te("absolute size-3.25 transition-[opacity,blur] duration-100","group-data-copied:opacity-100 group-data-copied:blur-none","not-group-data-copied:scale-80 not-group-data-copied:opacity-0 not-group-data-copied:blur-[0.25px]")}}),null),v(m,w(xe,{anchor:"--toolbar-copy-button",position:"bottom",get children(){var z=Wr(),T=z.firstChild;T.firstChild;var fe=T.nextSibling;return fe.firstChild,v(T,w(_e,{"aria-label":"Command Shift X",get children(){return[w(Me,{class:"size-2.5"})," ",w(xt,{class:"size-2.5"}),tn()]}}),null),v(fe,w(_e,{"aria-label":"Command X",get children(){return[w(Me,{class:"size-2.5"}),tn()]}}),null),z}}),null),D(()=>Z(A,"data-copied",U()?"":void 0)),m}}),de),be.$$click=Ie,v(be,w(Io,{get class(){return te("size-3.25")}})),v(de,w(xe,{anchor:"--toolbar-clear-button",position:"bottom-right",class:"mr-1",get children(){var m=qr(),A=m.firstChild;A.firstChild;var z=A.nextSibling;return z.firstChild,v(A,w(_e,{"aria-label":"Command Shift K",get children(){return[w(Me,{class:"size-2.5"})," ",w(xt,{class:"size-2.5"}),nn()]}}),null),v(z,w(_e,{"aria-label":"Command K",get children(){return[w(Me,{class:"size-2.5"}),nn()]}}),null),m}}),null),v(ht,w(ee,{get when(){return i().length},get children(){var m=Kr();return Oe(A=>e.annotationList=A,m),v(m,w(Jn,{get each(){return i()},children:A=>w(Vr,{annotation:A,get isBatching(){return c()},get isInBatch(){return ce(()=>!!c())()&&b().includes(A.id)},onRemove:()=>a(z=>z.filter(({id:T})=>T!==A.id)),onExclude:()=>f(z=>z&&z.filter(T=>T!==A.id)),onInclude:()=>f(z=>z&&!z.includes(A.id)?[...z,A.id]:z)})})),m}})),Oe(m=>e.form=m,Xe),Xe.addEventListener("submit",ze),Oe(m=>e.commentInput=m,Ze),v(mt,w(ee,{get when(){return ce(()=>!!c())()&&!B()},get children(){var m=Hr();return v(m,(()=>{var A=ce(()=>!!b().length);return()=>A()?`${t()?"Sending":"Copying"} ${b().length} annotation${b().length>1?"s":""}`:"No annotations selected"})()),m}}),null),v(mt,w(ee,{get when(){return ce(()=>!c())()&&!B()},get children(){return w(ee,{get when(){return Ce()},get fallback(){return ns()},children:m=>(()=>{var A=os(),z=A.firstChild,T=z.firstChild;return At(z,"focus",Te),At(z,"mouseenter",Te),v(z,w(gn,{class:"size-3 shrink-0"}),T),v(T,()=>Pn(m().selector)),v(A,w(xe,{class:"hidden max-w-[min(24rem,calc(100vw-1rem))] whitespace-normal",anchor:"--selector",position:"bottom-left",get children(){return w(ee,{get when(){return ce(()=>!Ke())()&&qe()},children:fe=>[ce(()=>vr(fe().page.href))," (",ce(()=>fe().page.viewport.width),"×",ce(()=>fe().page.viewport.height),")"]})}}),null),A})()})}}),null),v(pt,w(ee,{get when(){return c()},get fallback(){return(()=>{var m=ss(),A=m.firstChild,z=A.firstChild;return Oe(T=>e.addButton=T,z),v(z,w(bn,{class:"size-3.5"})),v(m,w(xe,{anchor:"--add-button",position:"top",get children(){var T=rs();return T.firstChild,v(T,w(_e,{"aria-label":"Command Enter",get children(){return[w(Me,{class:"size-2.5"})," ",on()]}}),null),T}}),null),m})()},get children(){var m=Yr(),A=m.firstChild,z=A.firstChild;return z.$$click=I,v(m,w(xe,{anchor:"--cancel-submit-button",position:"top",get children(){var T=Zr();return T.firstChild,v(T,w(_e,{"aria-label":"Escape",get children(){return Xr()}}),null),T}}),null),m}}),gt),v(Bn,w(Pr,{ref:m=>e.submitButton=m,type:"submit",name:"intent",get value(){return Ne()},get formNoValidate(){return c()||!!i().length},get"aria-label"(){return Be()},get"aria-busy"(){return h()||void 0},get loading(){return h()},get submitted(){return B()},get variant(){return c()?"blue":"white"},get children(){return[ce(()=>ce(()=>!!t())()?w(To,{get class(){return te("z-10 size-3.5 transition-[opacity,blur,scale] duration-150","group-data-submitted:scale-80 group-data-submitted:opacity-0 group-data-submitted:blur-[0.25px]","not-group-data-submitted:opacity-100 not-group-data-submitted:blur-none")}}):w(Kt,{get class(){return te("z-10 size-3.5 transition-[opacity,blur,scale] duration-150","group-data-submitted:scale-80 group-data-submitted:opacity-0 group-data-submitted:blur-[0.25px]","not-group-data-submitted:opacity-100 not-group-data-submitted:blur-none")}})),w(kt,{get class(){return te("absolute z-10 size-3.5 transition-[opacity,blur,scale] duration-150","group-data-submitted:opacity-100 group-data-submitted:blur-none","not-group-data-submitted:scale-80 not-group-data-submitted:opacity-0 not-group-data-submitted:blur-[0.25px]")}})]}})),v(gt,w(xe,{anchor:"--submit-button",position:"top",class:"mr-1",get children(){var m=Jr();return v(m,Be,null),v(m,w(_e,{"aria-label":"Command Shift Enter",get children(){return[w(Me,{class:"size-2.5"})," ",w(xt,{class:"size-2.5"}),on()]}}),null),m}}),null),v(Xe,w(ee,{get when(){return ne()||C()},get children(){var m=Qr();return v(m,w(_o,{class:"size-3 shrink-0 text-danger"}),null),v(m,()=>ne()||C(),null),m}}),null),D(m=>{var A=te("absolute inset-0 flex flex-col overflow-auto bg-panel font-mono text-foreground antialiased",d()&&"cursor-wait"),z=d()||void 0,T=te("block size-1.5 rounded-full transition-[background-color] duration-150",oe()?"bg-danger group-hover:bg-danger/80":t()?"bg-success group-hover:bg-success/80":"bg-foreground/50 group-hover:bg-foreground/80"),fe=d()||void 0,Rt=!c(),Bt=d()||void 0,Dt=c()?"Care to elaborate? (optional)":"What would you like?",Ut=d()||void 0;return A!==m.e&&Fe(y,m.e=A),z!==m.t&&(E.inert=m.t=z),T!==m.a&&Fe(ie,m.a=T),fe!==m.o&&(ht.inert=m.o=fe),Rt!==m.i&&(Ze.required=m.i=Rt),Bt!==m.n&&(Ze.readOnly=m.n=Bt),Dt!==m.s&&Z(Ze,"placeholder",m.s=Dt),Ut!==m.h&&(pt.inert=m.h=Ut),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),y})()};lo(()=>w(is,{}),document.getElementById("root"));pn(["pointerdown","keydown","click","focusout"]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@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-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--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-content:"";--scroll-fade-top:0px;--scroll-fade-bottom:0px}}}@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:"Berkeley Mono", "SF Mono", "Menlo", monospace;--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-500:oklch(68.5% .169 237.323);--color-violet-400:oklch(70.2% .183 293.541);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-zinc-950:oklch(14.1% .005 285.823);--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--radius-sm:.25rem;--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);--text-2xs:.625rem;--color-foreground:var(--color-zinc-950);--color-accent:var(--color-violet-400);--color-focus:var(--color-sky-500);--color-panel:#fff;--color-success:var(--color-teal-500);--color-danger:var(--color-rose-500);--ease-out-quint:cubic-bezier(.23, 1, .32, 1)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;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;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]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:focus-visible{outline:1px solid var(--color-focus);outline-offset:1px}input:-webkit-autofill{box-shadow:0 0 0 1000px var(--color-panel) inset}input:-webkit-autofill:hover{box-shadow:0 0 0 1000px var(--color-panel) inset}input:-webkit-autofill:focus{box-shadow:0 0 0 1000px var(--color-panel) inset}input:-webkit-autofill:active{box-shadow:0 0 0 1000px var(--color-panel) inset}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.inset-auto{inset:auto}.top-0{top:calc(var(--spacing) * 0)}.top-2{top:calc(var(--spacing) * 2)}.right-2{right:calc(var(--spacing) * 2)}.left-0{left:calc(var(--spacing) * 0)}.z-10{z-index:10}.z-20{z-index:20}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.hidden{display:none}.inline-flex{display:inline-flex}.field-sizing-content{field-sizing:content}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-3\.25{width:calc(var(--spacing) * 3.25);height:calc(var(--spacing) * 3.25)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.h-8{height:calc(var(--spacing) * 8)}.h-fit{height:fit-content}.max-h-\[4rlh\]{max-height:4rlh}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-36{min-height:calc(var(--spacing) * 36)}.min-h-\[2\.5rlh\]{min-height:2.5rlh}.w-8{width:calc(var(--spacing) * 8)}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-48{max-width:calc(var(--spacing) * 48)}.max-w-\[calc\(100vw-1rem\)\]{max-width:calc(100vw - 1rem)}.max-w-\[min\(24rem\,calc\(100vw-1rem\)\)\]{max-width:min(24rem,100vw - 1rem)}.min-w-0{min-width:calc(var(--spacing) * 0)}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-default{cursor:default}.cursor-wait{cursor:wait}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.\[align-self\:anchor-center\]{align-self:anchor-center}.\[justify-self\:anchor-center\]{justify-self:anchor-center}.\[justify-self\:end\]{justify-self:end}.\[justify-self\:start\]{justify-self:start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-foreground\/5{border-color:#09090b0d}@supports (color:color-mix(in lab,red,red)){.border-foreground\/5{border-color:color-mix(in oklab,var(--color-foreground) 5%,transparent)}}.border-foreground\/10{border-color:#09090b1a}@supports (color:color-mix(in lab,red,red)){.border-foreground\/10{border-color:color-mix(in oklab,var(--color-foreground) 10%,transparent)}}.border-t-foreground\/7{border-top-color:#09090b12}@supports (color:color-mix(in lab,red,red)){.border-t-foreground\/7{border-top-color:color-mix(in oklab,var(--color-foreground) 7%,transparent)}}.border-b-foreground\/7{border-bottom-color:#09090b12}@supports (color:color-mix(in lab,red,red)){.border-b-foreground\/7{border-bottom-color:color-mix(in oklab,var(--color-foreground) 7%,transparent)}}.bg-danger{background-color:var(--color-danger)}.bg-foreground\/2{background-color:#09090b05}@supports (color:color-mix(in lab,red,red)){.bg-foreground\/2{background-color:color-mix(in oklab,var(--color-foreground) 2%,transparent)}}.bg-foreground\/2\.5{background-color:#09090b06}@supports (color:color-mix(in lab,red,red)){.bg-foreground\/2\.5{background-color:color-mix(in oklab,var(--color-foreground) 2.5%,transparent)}}.bg-foreground\/5{background-color:#09090b0d}@supports (color:color-mix(in lab,red,red)){.bg-foreground\/5{background-color:color-mix(in oklab,var(--color-foreground) 5%,transparent)}}.bg-foreground\/50{background-color:#09090b80}@supports (color:color-mix(in lab,red,red)){.bg-foreground\/50{background-color:color-mix(in oklab,var(--color-foreground) 50%,transparent)}}.bg-panel{background-color:var(--color-panel)}.bg-success{background-color:var(--color-success)}.scroll-fade{--scroll-fade-size:24px;-webkit-mask-image:linear-gradient(to bottom,transparent,black var(--scroll-fade-top),black calc(100% - var(--scroll-fade-bottom)),transparent);mask-image:linear-gradient(to bottom,transparent,black var(--scroll-fade-top),black calc(100% - var(--scroll-fade-bottom)),transparent);animation-name:scroll-fade-top,scroll-fade-bottom;animation-timing-function:linear;animation-fill-mode:both;animation-timeline:scroll(self),scroll(self);animation-range:0px var(--scroll-fade-size),calc(100% - var(--scroll-fade-size)) 100%;-webkit-mask-composite:source-in;mask-composite:intersect}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.py-0\.75{padding-block:calc(var(--spacing) * .75)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-3{padding-left:calc(var(--spacing) * 3)}.font-mono{font-family:var(--font-mono)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-2xs{font-size:var(--text-2xs)}.whitespace-normal{white-space:normal}.whitespace-pre-wrap{white-space:pre-wrap}.text-danger{color:var(--color-danger)}.text-foreground{color:var(--color-foreground)}.text-foreground\/50{color:#09090b80}@supports (color:color-mix(in lab,red,red)){.text-foreground\/50{color:color-mix(in oklab,var(--color-foreground) 50%,transparent)}}.text-foreground\/80{color:#09090bcc}@supports (color:color-mix(in lab,red,red)){.text-foreground\/80{color:color-mix(in oklab,var(--color-foreground) 80%,transparent)}}.text-panel{color:var(--color-panel)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\]{transition-property:background-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[opacity\,blur\,scale\]{transition-property:opacity,blur,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[opacity\,blur\]{transition-property:opacity,blur;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[scale\,color\]{transition-property:scale,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[scale\]{transition-property:scale;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-150{--tw-duration:.15s;transition-duration:.15s}.select-none{-webkit-user-select:none;user-select:none}.\[anchor-name\:--add-button\]{anchor-name:--add-button}.\[anchor-name\:--cancel-submit-button\]{anchor-name:--cancel-submit-button}.\[anchor-name\:--form-actions\]{anchor-name:--form-actions}.\[anchor-name\:--selector\]{anchor-name:--selector}.\[anchor-name\:--submit-button\]{anchor-name:--submit-button}.\[anchor-name\:--toolbar-clear-button\]{anchor-name:--toolbar-clear-button}.\[anchor-name\:--toolbar-copy-button\]{anchor-name:--toolbar-copy-button}.\[anchor-name\:--webhook-toggle\]{anchor-name:--webhook-toggle}.\[anchor-name\:--webhook-url\]{anchor-name:--webhook-url}.\[position-anchor\:var\(--anchor\)\]{position-anchor:var(--anchor)}.\[position-area\:bottom\]{position-area:bottom}.\[position-area\:bottom_span-left\]{position-area:bottom span-left}.\[position-area\:bottom_span-right\]{position-area:bottom span-right}.\[position-area\:left\]{position-area:left}.\[position-area\:right\]{position-area:right}.\[position-area\:top\]{position-area:top}.\[position-area\:top_span-left\]{position-area:top span-left}.\[position-area\:top_span-right\]{position-area:top span-right}.\[position-try-fallbacks\:flip-block\,flip-inline\]{position-try-fallbacks:flip-block,flip-inline}.\[transition\:scale_160ms_var\(--ease-out-quint\)\]{transition:scale .16s var(--ease-out-quint)}.not-group-data-copied\:scale-80:not(:is(:where(.group)[data-copied] *)){--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x) var(--tw-scale-y)}.not-group-data-copied\:opacity-0:not(:is(:where(.group)[data-copied] *)){opacity:0}.not-group-data-copied\:opacity-100:not(:is(:where(.group)[data-copied] *)){opacity:1}.not-group-data-copied\:blur-\[0\.25px\]:not(:is(:where(.group)[data-copied] *)){--tw-blur:blur(.25px);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,)}.not-group-data-copied\:blur-none:not(:is(:where(.group)[data-copied] *)){--tw-blur: ;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,)}.not-group-data-submitted\:scale-80:not(:is(:where(.group)[data-submitted] *)){--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x) var(--tw-scale-y)}.not-group-data-submitted\:opacity-0:not(:is(:where(.group)[data-submitted] *)){opacity:0}.not-group-data-submitted\:opacity-100:not(:is(:where(.group)[data-submitted] *)){opacity:1}.not-group-data-submitted\:blur-\[0\.25px\]:not(:is(:where(.group)[data-submitted] *)){--tw-blur:blur(.25px);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,)}.not-group-data-submitted\:blur-none:not(:is(:where(.group)[data-submitted] *)){--tw-blur: ;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,)}@media(hover:hover){.group-hover\:bg-danger\/80:is(:where(.group):hover *){background-color:#ff2357cc}@supports (color:color-mix(in lab,red,red)){.group-hover\:bg-danger\/80:is(:where(.group):hover *){background-color:color-mix(in oklab,var(--color-danger) 80%,transparent)}}.group-hover\:bg-foreground\/80:is(:where(.group):hover *){background-color:#09090bcc}@supports (color:color-mix(in lab,red,red)){.group-hover\:bg-foreground\/80:is(:where(.group):hover *){background-color:color-mix(in oklab,var(--color-foreground) 80%,transparent)}}.group-hover\:bg-success\/80:is(:where(.group):hover *){background-color:#00baa7cc}@supports (color:color-mix(in lab,red,red)){.group-hover\:bg-success\/80:is(:where(.group):hover *){background-color:color-mix(in oklab,var(--color-success) 80%,transparent)}}.group-hover\/annotation\:pointer-events-auto:is(:where(.group\/annotation):hover *){pointer-events:auto}.group-hover\/annotation\:opacity-100:is(:where(.group\/annotation):hover *){opacity:1}}.group-data-copied\:scale-80:is(:where(.group)[data-copied] *){--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-data-copied\:opacity-0:is(:where(.group)[data-copied] *){opacity:0}.group-data-copied\:opacity-100:is(:where(.group)[data-copied] *){opacity:1}.group-data-copied\:blur-\[0\.25px\]:is(:where(.group)[data-copied] *){--tw-blur:blur(.25px);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,)}.group-data-copied\:blur-none:is(:where(.group)[data-copied] *){--tw-blur: ;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,)}.group-data-submitted\:scale-80:is(:where(.group)[data-submitted] *){--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-data-submitted\:opacity-0:is(:where(.group)[data-submitted] *){opacity:0}.group-data-submitted\:opacity-100:is(:where(.group)[data-submitted] *){opacity:1}.group-data-submitted\:blur-\[0\.25px\]:is(:where(.group)[data-submitted] *){--tw-blur:blur(.25px);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,)}.group-data-submitted\:blur-none:is(:where(.group)[data-submitted] *){--tw-blur: ;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,)}@media(hover:hover){.peer-hover\:opacity-100:is(:where(.peer):hover~*){opacity:1}}.peer-focus-visible\:opacity-100:is(:where(.peer):focus-visible~*),.peer-has-focus-visible\:opacity-100:is(:where(.peer):has(:focus-visible)~*){opacity:1}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:-inset-1\/2:before{content:var(--tw-content);top:-50%;right:-50%;bottom:-50%;left:-50%}.before\:inset-y-0:before{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.before\:left-0:before{content:var(--tw-content);left:calc(var(--spacing) * 0)}.before\:w-0\.5:before{content:var(--tw-content);width:calc(var(--spacing) * .5)}.before\:bg-accent:before{content:var(--tw-content);background-color:var(--color-accent)}.before\:bg-foreground\/20:before{content:var(--tw-content);background-color:#09090b33}@supports (color:color-mix(in lab,red,red)){.before\:bg-foreground\/20:before{background-color:color-mix(in oklab,var(--color-foreground) 20%,transparent)}}.before\:bg-\[conic-gradient\(transparent_0\%_85\%\,var\(--color-foreground\)_95\%_100\%\)\]:before{content:var(--tw-content);background-image:conic-gradient(transparent 0% 85%,var(--color-foreground) 95% 100%)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:transition-\[background-color\]:before{content:var(--tw-content);transition-property:background-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.before\:duration-150:before{content:var(--tw-content);--tw-duration:.15s;transition-duration:.15s}.before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.before\:\[transition\:opacity_0ms\]:before{content:var(--tw-content);transition:opacity}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing) * 0)}.after\:rounded-\[inherit\]:after{content:var(--tw-content);border-radius:inherit}.after\:bg-accent:after{content:var(--tw-content);background-color:var(--color-accent)}.after\:bg-foreground:after{content:var(--tw-content);background-color:var(--color-foreground)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.after\:\[transition\:scale_300ms_var\(--ease-out-quint\)\,background-color_300ms_var\(--ease-out-quint\)\]:after{content:var(--tw-content);transition:scale .3s var(--ease-out-quint),background-color .3s var(--ease-out-quint)}@media(hover:hover){.hover\:bg-foreground\/4:hover{background-color:#09090b0a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-foreground\/4:hover{background-color:color-mix(in oklab,var(--color-foreground) 4%,transparent)}}.hover\:text-foreground:hover{color:var(--color-foreground)}.hover\:after\:bg-\[color-mix\(in_srgb\,var\(--color-accent\)_90\%\,var\(--color-panel\)\)\]:hover:after{content:var(--tw-content);background-color:#af91ff}@supports (color:color-mix(in lab,red,red)){.hover\:after\:bg-\[color-mix\(in_srgb\,var\(--color-accent\)_90\%\,var\(--color-panel\)\)\]:hover:after{background-color:color-mix(in srgb,var(--color-accent) 90%,var(--color-panel))}}.hover\:after\:bg-\[color-mix\(in_srgb\,var\(--color-foreground\)_90\%\,var\(--color-panel\)\)\]:hover:after{content:var(--tw-content);background-color:#222224}@supports (color:color-mix(in lab,red,red)){.hover\:after\:bg-\[color-mix\(in_srgb\,var\(--color-foreground\)_90\%\,var\(--color-panel\)\)\]:hover:after{background-color:color-mix(in srgb,var(--color-foreground) 90%,var(--color-panel))}}}.focus-visible\:pointer-events-auto:focus-visible{pointer-events:auto}.focus-visible\:opacity-100:focus-visible{opacity:1}.active\:scale-\[0\.95\]:active{scale:.95}.active\:scale-\[0\.935\]:active{scale:.935}.active\:scale-\[0\.9625\]:active{scale:.9625}.data-loading\:before\:animate-\[rotate_2s_linear_infinite\][data-loading]:before{content:var(--tw-content);animation:2s linear infinite rotate}.data-loading\:before\:opacity-100[data-loading]:before{content:var(--tw-content);opacity:1}.data-loading\:before\:\[transition\:opacity_150ms_ease-out\][data-loading]:before{content:var(--tw-content);transition:opacity .15s ease-out}.data-loading\:after\:scale-\[0\.935\][data-loading]:after{content:var(--tw-content);scale:.935}.data-loading\:after\:bg-\[color-mix\(in_srgb\,var\(--color-accent\)_90\%\,var\(--color-panel\)\)\][data-loading]:after{content:var(--tw-content);background-color:#af91ff}@supports (color:color-mix(in lab,red,red)){.data-loading\:after\:bg-\[color-mix\(in_srgb\,var\(--color-accent\)_90\%\,var\(--color-panel\)\)\][data-loading]:after{background-color:color-mix(in srgb,var(--color-accent) 90%,var(--color-panel))}}.data-loading\:after\:bg-\[color-mix\(in_srgb\,var\(--color-foreground\)_90\%\,var\(--color-panel\)\)\][data-loading]:after{content:var(--tw-content);background-color:#222224}@supports (color:color-mix(in lab,red,red)){.data-loading\:after\:bg-\[color-mix\(in_srgb\,var\(--color-foreground\)_90\%\,var\(--color-panel\)\)\][data-loading]:after{background-color:color-mix(in srgb,var(--color-foreground) 90%,var(--color-panel))}}.data-loading\:active\:scale-100[data-loading]:active{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-submitted\:after\:bg-\[color-mix\(in_srgb\,var\(--color-accent\)_90\%\,var\(--color-panel\)\)\][data-submitted]:after{content:var(--tw-content);background-color:#af91ff}@supports (color:color-mix(in lab,red,red)){.data-submitted\:after\:bg-\[color-mix\(in_srgb\,var\(--color-accent\)_90\%\,var\(--color-panel\)\)\][data-submitted]:after{background-color:color-mix(in srgb,var(--color-accent) 90%,var(--color-panel))}}.data-submitted\:after\:bg-\[color-mix\(in_srgb\,var\(--color-foreground\)_90\%\,var\(--color-panel\)\)\][data-submitted]:after{content:var(--tw-content);background-color:#222224}@supports (color:color-mix(in lab,red,red)){.data-submitted\:after\:bg-\[color-mix\(in_srgb\,var\(--color-foreground\)_90\%\,var\(--color-panel\)\)\][data-submitted]:after{background-color:color-mix(in srgb,var(--color-foreground) 90%,var(--color-panel))}}}@media(prefers-color-scheme:dark){:root{--color-foreground:#fff;--color-accent:var(--color-violet-400);--color-focus:var(--color-sky-300);--color-panel:#0e0e12;--color-success:var(--color-teal-400);--color-danger:var(--color-rose-400)}}html{background-color:var(--color-panel)}body{color-scheme:light dark;min-height:100svh;margin:0}button:not(:disabled){cursor:pointer}@property --scroll-fade-top{syntax:"<length>";inherits:false;initial-value:0}@property --scroll-fade-bottom{syntax:"<length>";inherits:false;initial-value:0}@keyframes scroll-fade-top{to{--scroll-fade-top:var(--scroll-fade-size,0px)}}@keyframes scroll-fade-bottom{0%{--scroll-fade-bottom:var(--scroll-fade-size,0px)}to{--scroll-fade-bottom:0px}}@keyframes rotate{to{rotate:1turn}}@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-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-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-content{syntax:"*";inherits:false;initial-value:""}
|
package/dist/icon.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 3,
|
|
3
|
+
"name": "Browser Annotations",
|
|
4
|
+
"description": "Capture feedback from the Chrome DevTools.",
|
|
5
|
+
"version": "1.0.3",
|
|
6
|
+
"icons": {
|
|
7
|
+
"16": "icon.png",
|
|
8
|
+
"32": "icon.png",
|
|
9
|
+
"48": "icon.png",
|
|
10
|
+
"128": "icon.png"
|
|
11
|
+
},
|
|
12
|
+
"permissions": [
|
|
13
|
+
"storage"
|
|
14
|
+
],
|
|
15
|
+
"host_permissions": [
|
|
16
|
+
"<all_urls>"
|
|
17
|
+
],
|
|
18
|
+
"devtools_page": "src/devtools/index.html",
|
|
19
|
+
"background": {
|
|
20
|
+
"service_worker": "service-worker-loader.js",
|
|
21
|
+
"type": "module"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './assets/background.ts-Dj33HuXv.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Feedback</title>
|
|
7
|
+
<script type="module" crossorigin src="/assets/index.html-DrssvSnj.js"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-B5Qt9EMX.js">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Feedback</title>
|
|
7
|
+
<script type="module" crossorigin src="/assets/sidebar-D84qA_V9.js"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-B5Qt9EMX.js">
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/sidebar-DqDKjdnE.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "browser-annotations",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "Annotate elements and send them to your agents right from your Chrome DevTools.",
|
|
5
|
+
"homepage": "https://browser-annotations.dev/",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "wiebekaai/browser-annotations",
|
|
8
|
+
"files": [
|
|
9
|
+
"README.md",
|
|
10
|
+
"dist",
|
|
11
|
+
"scripts"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "vite build",
|
|
16
|
+
"check": "pnpm run check:types",
|
|
17
|
+
"check:types": "tsgo -b ./tsconfig.json",
|
|
18
|
+
"dev": "vite",
|
|
19
|
+
"prepack": "vite build",
|
|
20
|
+
"release": "npm publish --access public",
|
|
21
|
+
"postinstall": "node scripts/postinstall.js"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"clsx": "^2.1.1",
|
|
25
|
+
"solid-js": "1.9.12",
|
|
26
|
+
"tailwind-merge": "^3.5.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@browser-annotations/tsconfig": "workspace:*",
|
|
30
|
+
"@crxjs/vite-plugin": "2.2.1",
|
|
31
|
+
"@tailwindcss/vite": "4.2.2",
|
|
32
|
+
"@types/chrome": "0.1.38",
|
|
33
|
+
"@types/node": "25.5.0",
|
|
34
|
+
"@typescript/native-preview": "catalog:",
|
|
35
|
+
"tailwindcss": "4.2.2",
|
|
36
|
+
"vite": "^6.3.6",
|
|
37
|
+
"vite-plugin-solid": "2.11.11"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { mkdir, symlink, lstat, unlink } from "node:fs/promises";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { homedir } from "node:os";
|
|
4
|
+
|
|
5
|
+
try {
|
|
6
|
+
const distDir = join(import.meta.dirname, "..", "dist");
|
|
7
|
+
const targetDir = join(homedir(), "browser-annotations");
|
|
8
|
+
const linkPath = join(targetDir, "chrome");
|
|
9
|
+
|
|
10
|
+
await mkdir(targetDir, { recursive: true });
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
const stat = await lstat(linkPath);
|
|
14
|
+
if (stat.isSymbolicLink()) await unlink(linkPath);
|
|
15
|
+
} catch {}
|
|
16
|
+
|
|
17
|
+
await symlink(distDir, linkPath);
|
|
18
|
+
|
|
19
|
+
console.log(`Linked extension to ${linkPath}`);
|
|
20
|
+
console.log("Load as unpacked extension in chrome://extensions");
|
|
21
|
+
} catch (error) {
|
|
22
|
+
console.warn(`browser-annotations: skipped symlink setup (${error.message})`);
|
|
23
|
+
}
|