@popmelt.com/core 0.36.0 → 0.37.1
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 +106 -23
- package/claude-plugin/.claude-plugin/plugin.json +1 -1
- package/claude-plugin/skills/popmelt-core/SKILL.md +6 -1
- package/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/codex-plugin/skills/popmelt-core/SKILL.md +6 -1
- package/dist/ExploreAttachment-6AIMXC2K.mjs +1 -0
- package/dist/PagePreviewLayer-SIH7DDBF.mjs +1 -0
- package/dist/ParticipantRuntime-RTMEFDKF.mjs +1 -0
- package/dist/PhoneHostGate-RZRGWS2E.mjs +1 -0
- package/dist/PopmeltTasteConnectedPane-FAJXJEQQ.mjs +1 -0
- package/dist/PreviewRuntime-MW33PLMV.mjs +1 -0
- package/dist/{QueuedReplies-ESIFFRKS.mjs → QueuedReplies-4APDDNQX.mjs} +1 -1
- package/dist/SamplePlacementOverlay-2VLBRDPZ.mjs +1 -0
- package/dist/ShareProjectPane-OR2LS2A3.mjs +1 -0
- package/dist/SuppliedContext-SAQKEDWW.mjs +1 -0
- package/dist/ThreadErrorCard-OSHIWSHR.mjs +1 -0
- package/dist/ThreadPanel-CMC5Q6WM.mjs +1 -0
- package/dist/adapter-react-three-fiber.d.mts +20 -3
- package/dist/adapter-react-three-fiber.mjs +1 -1
- package/dist/adapter-three.d.mts +53 -2
- package/dist/adapter-three.mjs +45 -1
- package/dist/bridge-entry.mjs +1 -1
- package/dist/bridgeSSEStream-6OMAFDFW.mjs +1 -0
- package/dist/bridgeWebSocketStream-WIOGOPJW.mjs +1 -0
- package/dist/browser-runtime-5W2ZKUCZ.mjs +1 -0
- package/dist/browser.d.mts +4 -4
- package/dist/browser.mjs +1 -1
- package/dist/canvas-chat-note-O3USBECW.mjs +1 -0
- package/dist/checkFixture-DQPLFEUL.mjs +1 -0
- package/dist/{chunk-AH6LZOQC.mjs → chunk-3PSB5BST.mjs} +1 -1
- package/dist/chunk-3QYA5LGF.mjs +1 -0
- package/dist/chunk-3VOEPWRL.mjs +1 -0
- package/dist/chunk-4LVGVKSS.mjs +1 -0
- package/dist/chunk-5GEBVPTA.mjs +1 -0
- package/dist/chunk-5IZHN3A7.mjs +1 -0
- package/dist/chunk-6EO73WJN.mjs +1 -0
- package/dist/chunk-6XEEXK3U.mjs +1 -0
- package/dist/chunk-76WRZ2NH.mjs +1 -0
- package/dist/chunk-7EISKUU7.mjs +1 -0
- package/dist/chunk-7JWADHTH.mjs +1 -0
- package/dist/chunk-A4GARXVQ.mjs +1 -0
- package/dist/chunk-AAMUU2QA.mjs +1 -0
- package/dist/chunk-AGCS65LT.mjs +1 -0
- package/dist/{chunk-RR4SHK7O.mjs → chunk-AOTDTBQO.mjs} +1 -1
- package/dist/chunk-ATLUO4G7.mjs +1 -0
- package/dist/chunk-AYZUOBFI.mjs +1 -0
- package/dist/chunk-B22WBEQC.mjs +1 -0
- package/dist/chunk-B4DYUYX4.mjs +1 -0
- package/dist/{chunk-NDGM4DAP.mjs → chunk-BYASSHKJ.mjs} +1 -1
- package/dist/chunk-C2ZSNUXQ.mjs +1 -0
- package/dist/chunk-CCFTIBCJ.mjs +1 -0
- package/dist/chunk-CIKFUS7J.mjs +1 -0
- package/dist/chunk-CK3CDA3L.mjs +1 -0
- package/dist/chunk-CVVD2OMQ.mjs +1 -0
- package/dist/chunk-EBJ23A7F.mjs +1 -0
- package/dist/chunk-ECMLCGAM.mjs +1 -0
- package/dist/chunk-EFGQKWSZ.mjs +1 -0
- package/dist/chunk-EILBHZDX.mjs +1 -0
- package/dist/{chunk-DOCRI237.mjs → chunk-ELKVFX2O.mjs} +1 -1
- package/dist/{chunk-EXIUW3JX.mjs → chunk-EUFR7R5Q.mjs} +1 -1
- package/dist/chunk-EZVFCJEG.mjs +1 -0
- package/dist/chunk-F3VZQGPM.mjs +1 -0
- package/dist/chunk-FHCKFQBY.mjs +1 -0
- package/dist/chunk-FJWWBKCQ.mjs +1 -0
- package/dist/chunk-FON4QY7P.mjs +1 -0
- package/dist/chunk-GAUQZAW6.mjs +1 -0
- package/dist/chunk-GLF7Z5IR.mjs +1 -0
- package/dist/chunk-HAN6CUNB.mjs +1 -0
- package/dist/chunk-HAZXZ5TU.mjs +1 -0
- package/dist/chunk-HBFSPXIC.mjs +1 -0
- package/dist/chunk-HKHZBKAN.mjs +1 -0
- package/dist/chunk-HPU2UMVE.mjs +1 -0
- package/dist/{chunk-YHYFWNN6.mjs → chunk-IAXSC2ZN.mjs} +1 -1
- package/dist/chunk-IW7V7WNL.mjs +1 -0
- package/dist/chunk-JEGBAHYK.mjs +1 -0
- package/dist/chunk-JJK4LAN6.mjs +1 -0
- package/dist/chunk-JSNK6NX7.mjs +1 -0
- package/dist/chunk-KCDHP4N3.mjs +1 -0
- package/dist/chunk-KF73S7MG.mjs +1 -0
- package/dist/chunk-KXVXWEN4.mjs +1 -0
- package/dist/chunk-L6S66APQ.mjs +1 -0
- package/dist/chunk-LH7HKUCK.mjs +1 -0
- package/dist/chunk-LOUWY55X.mjs +1 -0
- package/dist/chunk-MPEVFQ43.mjs +1 -0
- package/dist/{chunk-57FM7XQV.mjs → chunk-NI77Y3WC.mjs} +1 -1
- package/dist/chunk-O2ZQFLNV.mjs +1 -0
- package/dist/chunk-OA63PYHZ.mjs +1 -0
- package/dist/chunk-OIKFQ2FV.mjs +1 -0
- package/dist/chunk-OREALBUO.mjs +1 -0
- package/dist/chunk-OVZ4CQGM.mjs +1 -0
- package/dist/chunk-PRPXMDZ7.mjs +1 -0
- package/dist/chunk-PWQB3FIW.mjs +1 -0
- package/dist/chunk-QE5XGXIA.mjs +30 -0
- package/dist/chunk-QV5G3XRE.mjs +1 -0
- package/dist/chunk-ROKRMYFR.mjs +1 -0
- package/dist/chunk-SBD7GQDN.mjs +1 -0
- package/dist/chunk-SKKHZBOJ.mjs +1 -0
- package/dist/chunk-SOGN7S54.mjs +1 -0
- package/dist/chunk-SOT33EQ4.mjs +1 -0
- package/dist/chunk-SUAHDXJZ.mjs +1 -0
- package/dist/chunk-TCGXG7UA.mjs +1 -0
- package/dist/chunk-TIAPJGX2.mjs +1 -0
- package/dist/chunk-TMSGNHXH.mjs +1 -0
- package/dist/chunk-UTP56NCY.mjs +1 -0
- package/dist/chunk-UX3DTCHL.mjs +1 -0
- package/dist/chunk-VVNZ5IEG.mjs +24 -0
- package/dist/chunk-W2QQVB2H.mjs +1 -0
- package/dist/chunk-WF3YGZPI.mjs +1 -0
- package/dist/chunk-WJHYEACV.mjs +1 -0
- package/dist/chunk-WP2SHSCG.mjs +1 -0
- package/dist/chunk-X6I6KQDG.mjs +1 -0
- package/dist/chunk-XJJDBMZI.mjs +1 -0
- package/dist/chunk-YMWXWXPV.mjs +1 -0
- package/dist/chunk-YYODLRV3.mjs +1 -0
- package/dist/cli.mjs +1 -1
- package/dist/codex-note-context-6QGJT2V3.mjs +1 -0
- package/dist/codex-project-3GJPU63O.mjs +1 -0
- package/dist/codex-session-registry-YNU6LEVH.mjs +1 -0
- package/dist/codex-store-mount-F6RBC77X.mjs +1 -0
- package/dist/{dev-server-DtX2_HCa.d.mts → dev-server-BRrhkH5t.d.mts} +11 -1
- package/dist/dev-server-KWVIMLLL.mjs +1 -0
- package/dist/focus-inspection-F25RXWZV.mjs +1 -0
- package/dist/guest-admission.d.mts +2 -0
- package/dist/guest-admission.mjs +1 -0
- package/dist/guest-live-canvas.d.mts +2 -0
- package/dist/guest-live-canvas.mjs +1 -0
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +1 -1
- package/dist/invitationLink-LUIIOAEZ.mjs +1 -0
- package/dist/inviteQr-HVHH45SN.mjs +1 -0
- package/dist/inviteQr-U77MLSEQ.mjs +1 -0
- package/dist/media.d.mts +3 -3
- package/dist/memory-store.d.mts +5 -1
- package/dist/page-interaction-TV3P6B3X.mjs +1 -0
- package/dist/page-planes-2ZepTpen.d.mts +817 -0
- package/dist/participantBootstrap-BuTrTQbo.d.mts +22 -0
- package/dist/{participantBootstrap-DFJlcKRI.d.mts → participantBootstrap-CSLsiQ-C.d.mts} +9 -3
- package/dist/peer-client-7X52EKMX.mjs +1 -0
- package/dist/plain-html-EF7MUNRZ.mjs +1 -0
- package/dist/plugin-astro.d.mts +5 -2
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-next.mjs +1 -1
- package/dist/plugin-nuxt.d.mts +4 -2
- package/dist/plugin-nuxt.mjs +1 -1
- package/dist/plugin-vite.d.mts +69 -9
- package/dist/plugin-vite.mjs +1 -1
- package/dist/qr-encoder.mjs +3 -0
- package/dist/server.d.mts +45 -20
- package/dist/server.mjs +1 -1
- package/dist/shared-page-GO76UP7I.mjs +1 -0
- package/dist/{subjects-DdavjSTL.d.mts → subjects-BQFCkehy.d.mts} +84 -1
- package/dist/taste-proposal-session-DBOUA54V.mjs +1 -0
- package/dist/toolbarFonts-GVPRHJGB.mjs +1 -0
- package/dist/{types-g9YCBx4Z.d.mts → types-CggBG-H6.d.mts} +1 -137
- package/dist/{video-adapter-DB6Hex1f.d.mts → video-adapter-C0kSwUir.d.mts} +2 -2
- package/dist/workspace-snapshot-6LN7U2NJ.mjs +1 -0
- package/package.json +45 -22
- package/samples/README.md +32 -0
- package/samples/build.d.mts +16 -0
- package/samples/build.mjs +138 -0
- package/dist/ExploreAttachment-H5WPEAZB.mjs +0 -1
- package/dist/PagePreviewLayer-WCYOBKAS.mjs +0 -1
- package/dist/ParticipantRuntime-HEC26AER.mjs +0 -1
- package/dist/PhoneHostGate-Q2AXVOSH.mjs +0 -1
- package/dist/PopmeltTasteConnectedPane-B7DHQKRQ.mjs +0 -1
- package/dist/PreviewRuntime-H2UOLP6T.mjs +0 -1
- package/dist/SuppliedContext-7ASO6GAW.mjs +0 -1
- package/dist/ThreadErrorCard-6R7W3RGZ.mjs +0 -1
- package/dist/ThreadPanel-3IS7GUYS.mjs +0 -1
- package/dist/bridgeSSEStream-K3UIMBTC.mjs +0 -1
- package/dist/bridgeWebSocketStream-2SUZUBE3.mjs +0 -1
- package/dist/browser-runtime-ILNTJLZ5.mjs +0 -1
- package/dist/canvas-chat-note-MGAEUYJO.mjs +0 -1
- package/dist/checkFixture-YE2ROOLL.mjs +0 -1
- package/dist/chunk-26P7UUHT.mjs +0 -1
- package/dist/chunk-2P2NUZW7.mjs +0 -1
- package/dist/chunk-3SEXH3AZ.mjs +0 -1
- package/dist/chunk-3XJEC6LS.mjs +0 -1
- package/dist/chunk-4LHTPRFY.mjs +0 -1
- package/dist/chunk-5D2ADU7H.mjs +0 -1
- package/dist/chunk-5K7SACPW.mjs +0 -1
- package/dist/chunk-67QNAAUC.mjs +0 -1
- package/dist/chunk-7CGKO4IU.mjs +0 -30
- package/dist/chunk-BACXPVHP.mjs +0 -1
- package/dist/chunk-DC47WNPG.mjs +0 -1
- package/dist/chunk-DJTGR3RO.mjs +0 -1
- package/dist/chunk-DLUNNAZC.mjs +0 -1
- package/dist/chunk-EX63NVDN.mjs +0 -1
- package/dist/chunk-FLTHWLRC.mjs +0 -1
- package/dist/chunk-G6RYESYI.mjs +0 -1
- package/dist/chunk-G7JR5Z3P.mjs +0 -1
- package/dist/chunk-GBVPRXA3.mjs +0 -1
- package/dist/chunk-HAE5LUJX.mjs +0 -1
- package/dist/chunk-HU2XWUJC.mjs +0 -1
- package/dist/chunk-HV7HRQ2S.mjs +0 -1
- package/dist/chunk-J4WDYITA.mjs +0 -1
- package/dist/chunk-L7QONR4K.mjs +0 -1
- package/dist/chunk-LVEMYZOA.mjs +0 -1
- package/dist/chunk-MSWXKP77.mjs +0 -1
- package/dist/chunk-NSCO633B.mjs +0 -1
- package/dist/chunk-NWE5PYKM.mjs +0 -1
- package/dist/chunk-O4HZP3RP.mjs +0 -1
- package/dist/chunk-OAHYSDJ4.mjs +0 -1
- package/dist/chunk-PNTM77NT.mjs +0 -1
- package/dist/chunk-RUTWU5W2.mjs +0 -1
- package/dist/chunk-TLREGQQB.mjs +0 -1
- package/dist/chunk-TUXBMJQZ.mjs +0 -1
- package/dist/chunk-V2I7PSJW.mjs +0 -1
- package/dist/chunk-WDAXARLI.mjs +0 -1
- package/dist/chunk-WHJEKDNP.mjs +0 -1
- package/dist/chunk-X2Q3H6X7.mjs +0 -1
- package/dist/chunk-XJQJQ5V5.mjs +0 -1
- package/dist/chunk-XT6PHPPG.mjs +0 -1
- package/dist/chunk-YD3PDEFX.mjs +0 -1
- package/dist/chunk-ZDXQ7WNW.mjs +0 -1
- package/dist/codex-note-context-YFURG7VL.mjs +0 -1
- package/dist/codex-project-3NSU5OWL.mjs +0 -1
- package/dist/codex-session-registry-ONODFWFD.mjs +0 -1
- package/dist/focus-inspection-SZJ5KP23.mjs +0 -1
- package/dist/peer-client-56EAHIGF.mjs +0 -1
- package/dist/taste-proposal-session-XU4N7RUV.mjs +0 -1
- package/dist/workspace-snapshot-RTTXNNUX.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";function t(t){if(typeof document<"u"&&t===document)return null;try{let e=t.defaultView?.frameElement;return"iframe"===e?.localName?e:null}catch{return null}}function e(t){if("iframe"!==t.localName||t.closest("[data-devtools],[data-popmelt-peer-surface]"))return null;try{let e=t.contentDocument;return e?.documentElement?e:null}catch{return null}}function n(t){let e=t.getBoundingClientRect(),n=t.offsetWidth?e.width/t.offsetWidth:1,r=t.offsetHeight?e.height/t.offsetHeight:1;return{x:e.left+t.clientLeft*n,y:e.top+t.clientTop*r,sx:n,sy:r}}function r(e,r){let{left:o,top:l,width:i,height:u}=e,a=t(r);for(;a;){let e=n(a);o=e.x+o*e.sx,l=e.y+l*e.sy,i*=e.sx,u*=e.sy,a=t(a.ownerDocument)}return new DOMRect(o,l,i,u)}function o(t){return r(t.getBoundingClientRect(),t.ownerDocument)}function l(e,r,o){let l=[],i=t(o);for(;i;)l.unshift(i),i=t(i.ownerDocument);for(let t of l){let o=n(t);e=(e-o.x)/o.sx,r=(r-o.y)/o.sy}return{x:e,y:r}}function i(t){return t.ownerDocument.defaultView??window}function u(t){return!(!t||"http://www.w3.org/1999/xhtml"!==t.namespaceURI)}function a(e,n=document){if(e===n)return!0;let r=t(e);return!(!r?.isConnected||r.contentDocument!==e||!a(r.ownerDocument,n))}function s(e,n){if(!a(n))return new DOMRect(0,0,0,0);let o=e.left,l=e.top,i=e.right,u=e.bottom;for(let e=t(n);e;e=t(e.ownerDocument)){let t=r({left:0,top:0,width:e.clientWidth,height:e.clientHeight},e.contentDocument);o=Math.max(o,t.left),l=Math.max(l,t.top),i=Math.min(i,t.right),u=Math.min(u,t.bottom)}return new DOMRect(o,l,Math.max(0,i-o),Math.max(0,u-l))}var f="@frame(";function c(t,e){return`${f}${encodeURIComponent(JSON.stringify({selector:t,url:e.URL}))}) `}function d(t){if(!t.startsWith(f))return null;let e=t.indexOf(") ");if(e<0)return null;try{let n=JSON.parse(decodeURIComponent(t.slice(7,e)));return"string"!=typeof n.selector||"string"!=typeof n.url?null:{...n,rest:t.slice(e+2)}}catch{return null}}var h=" >>> ";function m(t){let e=[];for(let n of t.querySelectorAll("*"))n.shadowRoot&&e.push(n.shadowRoot);return e}function g(t=document){let e=[t];for(let t of e)e.push(...m(t));return e}function p(t,n=document){if(t.startsWith(f)){let r=d(t);if(!r)return null;let o=r.selector.startsWith(f)||r.selector.includes(h)?[p(r.selector,n)].filter(t=>!!t):g(n).flatMap(t=>Array.from(t.querySelectorAll(r.selector))),l=1===o.length?o[0]:null,i=l&&e(l);return i&&i.URL===r.url?p(r.rest,i):null}let r=t.split(h);if(r.length>1){let t=n,e=null;for(let n=0;n<r.length;n+=1){if(e=t.querySelector(r[n]),!e)return null;if(n<r.length-1){if(!e.shadowRoot)return null;t=e.shadowRoot}}return e}let o=[n];for(let e of o){let n=e.querySelector(t);if(n)return n;o.push(...m(e))}return null}function y(t){if(t.parentElement)return t.parentElement;let e=t.getRootNode();return"host"in e?e.host:null}function w(t,e){return e.startsWith(f)||e.includes(h)?p(e)===t:t.matches(e)}function b(t,e){let n=t;for(;n;){let t=n.closest(e);if(t)return t;let r=n.getRootNode();n=r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in r?r.host:null}return null}function R(t,e){let n=e;for(;n;){if(n===t)return!0;n=y(n)}return!1}function N(t){let e=t.getAttribute("style");return t.style.setProperty("pointer-events","auto","important"),()=>{null===e?t.removeAttribute("style"):t.setAttribute("style",e)}}function x(t,e,n){return e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom}function E(t,e,n,r){let o=9===t.nodeType?t:t.ownerDocument,l=o.defaultView;if(!l)return;let i=t.querySelector("dialog[open]"),u=o.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(t){let o=t;if(r&&o.matches(r)||!i&&o.hasAttribute("inert"))return NodeFilter.FILTER_REJECT;let u=l.getComputedStyle(o);return"none"===u.display||!i&&"svg"===o.localName&&"hidden"===u.overflowX&&"hidden"===u.overflowY&&!x(o.getBoundingClientRect(),e,n)?NodeFilter.FILTER_REJECT:o.style&&"none"===u.pointerEvents&&function(t,e,n,r,o){let l=t.getBoundingClientRect();if(!l.width&&!l.height||x(l,e,n)||"http://www.w3.org/1999/xhtml"!==t.namespaceURI||"list-item"===o.display)return!0;for(let e of["::before","::after"]){let n=r.getComputedStyle(t,e).content;if(n&&"none"!==n&&"normal"!==n)return!0}for(let r of t.childNodes){if(r.nodeType!==Node.TEXT_NODE||!r.textContent?.trim())continue;let o=t.ownerDocument.createRange();if(o.selectNodeContents(r),!o.getBoundingClientRect||x(o.getBoundingClientRect(),e,n))return!0}return!1}(o,e,n,l,u)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),a=[];for(let t=u.nextNode();t;t=u.nextNode())a.push(t);if(!a.length)return;let s=[];try{for(let t of a)s.push(N(t))}catch(t){throw s.forEach(t=>t()),t}return()=>s.forEach(t=>t())}function C(t,n,r,o=t=>[t],l,i){let u=[];for(let o of t.querySelectorAll("iframe")){if(!e(o))continue;let t=o.getBoundingClientRect();n<t.left||n>t.right||r<t.top||r>t.bottom||"none"===o.ownerDocument.defaultView?.getComputedStyle(o).pointerEvents&&u.push(N(o))}try{let e=()=>{let e="function"==typeof t.elementsFromPoint?t.elementsFromPoint(n,r):[],o=t.elementFromPoint?.(n,r)??null;return(o&&!e.includes(o)?[o,...e]:e).filter(e=>9===t.nodeType||e.getRootNode()===t)},u=e(),a=u;if(l){let o=E(t,n,r,i);if(o)try{a=e()}finally{o()}a=a.filter(t=>u.includes(t)||l(t))}return a.flatMap(o)}finally{u.forEach(t=>t())}}function T(t,n,r=document,o,i){let u=[],a=new Set,s=9===r.nodeType?r:r.ownerDocument,f=l(t,n,s);for(let l of g(r).reverse())if(!(i&&"host"in l&&b(l.host,i)))for(let r of C(l,f.x,f.y,r=>{let l=e(r);return l?[...T(t,n,l,o,i),r]:[r]},o,i))a.has(r)||(a.add(r),u.push(r));return u}function A(){return h}var D=["id","data-testid","data-test","data-cy","data-popmelt-media-id","aria-label","name","href"],F=t=>t.replace(/\s+/g," ").trim();function S(t){return"id"===t||"data-popmelt-media-id"===t||/^data-(?:testid|test|cy)(?:-[a-z0-9_-]+)?$/.test(t)}function v(t,e){return!(!(e&&e.length<=200)||"id"===t&&/^(radix-|:|_r_)/.test(e))}function O(t){let e={},n=new Set([...D,...t.getAttributeNames().filter(S)]);for(let r of n){let n=t.getAttribute(r);n&&v(r,n)&&(e[r]=n)}let r=F(t.querySelector("h1,h2,h3,h4,h5,h6")?.textContent??""),o=F(Array.from(t.childNodes).filter(t=>3===t.nodeType).map(t=>t.textContent).join(" "));return{tag:t.tagName.toLowerCase(),...Object.keys(e).length?{attributes:e}:{},...r&&r.length<=200?{heading:r}:{},...o&&o.length<=200?{text:o}:{}}}function M(t,e,n=document){let r=g(n),o=t=>{try{return r.flatMap(e=>Array.from(e.querySelectorAll(t)))}catch{return[]}},l=!(!e||!(e.heading||e.text||Object.keys(e.attributes??{}).length)),i=t=>{if(!e||!l)return!0;let n=O(t);return n.tag===e.tag&&(!e.heading||n.heading===e.heading)&&(!e.text||n.text===e.text)&&Object.entries(e.attributes??{}).every(([e,n])=>t.getAttribute(e)===n)};for(let r of t){if(r.includes(" >>> ")||r.startsWith("@frame(")){try{let t=p(r,n),o=d(r),l=Object.entries(e?.attributes??{}).filter(([t])=>S(t)),u=o&&t&&(o.rest.startsWith("[data-pm=")||l.length>0&&t.tagName.toLowerCase()===e?.tag&&l.every(([e,n])=>t.getAttribute(e)===n));if(t&&(u||i(t)))return{status:"matched",element:t}}catch{}continue}let t=o(r);if(1===t.length&&(/^\[data-pm=/.test(r)||!l))return{status:"matched",element:t[0]}}if(!l||t.some(t=>t.includes(" >>> ")||t.startsWith("@frame("))||!/^[a-z][a-z0-9-]*$/.test(e.tag))return{status:"missing"};let u=o(e.tag);if(u.length>500)return{status:"ambiguous"};let a=Object.entries(e.attributes??{}).filter(([t])=>S(t));if(a.length){let t=u.filter(t=>a.every(([e,n])=>t.getAttribute(e)===n));return 1===t.length?{status:"matched",element:t[0]}:{status:t.length?"ambiguous":"missing"}}let s=u.filter(i);return 1===s.length?{status:"matched",element:s[0]}:{status:s.length?"ambiguous":"missing"}}function W(t,e,n=document){let r={};if(e)for(let[t,n]of Object.entries({...e.dataAttributes,...e.id?{id:e.id}:{}}))S(t)&&v(t,n)&&(r[t]=n);let o=e?.targetFingerprint?.tag??e?.tagName?.toLowerCase(),l=e&&o?{...e.targetFingerprint,tag:o,attributes:{...r,...e.targetFingerprint?.attributes}}:e?.targetFingerprint,i=M([t,e?.selector].filter(t=>!!t),l,n);return"matched"===i.status?i.element:null}export{t as a,e as b,r as c,o as d,l as e,i as f,u as g,a as h,s as i,c as j,g as k,p as l,y as m,w as n,b as o,R as p,T as q,A as r,S as s,O as t,M as u,W as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{f as e}from"./chunk-C2ZSNUXQ.mjs";import{a as t}from"./chunk-NI77Y3WC.mjs";import{va as n,B as r,C as o,Qa as i,E as a}from"./chunk-OA63PYHZ.mjs";import{a as l}from"./chunk-ECMLCGAM.mjs";import{useRef as s,useEffect as d,useMemo as u,useState as c,useLayoutEffect as p}from"react";import{jsxs as m,jsx as h,Fragment as f}from"react/jsx-runtime";function g(e){let t=(e.id||e.label).replace(/^.*\//,"").match(/(?:^|[\s-])(\d+)(?:[.\s-](\d{1,2}))?/);return t?1e3*Number(t[1])+Number(t[2]??0):0}function v(e){if(void 0!==e.tierRank)return e.tierRank;let t=`${e.id} ${e.label}`.toLowerCase();return/\b(nano|spark|haiku)\b/.test(t)?1:/\b(mini|luna|flash)\b/.test(t)?2:/\b(terra|sonnet)\b/.test(t)?3:/\b(sol|opus|pro)\b/.test(t)?4:/\b(fable|ultra)\b/.test(t)?5:3}function b(e){let t=e.length>0&&e.every(({model:e})=>e.releaseDate&&Number.isFinite(Date.parse(e.releaseDate)));return[...e].sort((e,n)=>(t?Date.parse(e.model.releaseDate)-Date.parse(n.model.releaseDate):g(e.model)-g(n.model))||v(e.model)-v(n.model)||(n.model.catalogPriority??-n.index)-(e.model.catalogPriority??-e.index))}function x(e,t){return b(t.map((e,t)=>({index:t,model:e})))}function y(e){let t=e?.speedTiers?.filter(e=>"default"!==e.id);return t?.length?[{value:"default",label:"Normal"},...t.map(e=>({value:e.id,label:e.label}))]:[]}function k(e,t){let n=t.serviceTier;if(!n||"default"===n||e.speedTiers?.some(({id:e})=>e===n))return t;let r="fast"===n&&e.speedTiers?.some(({id:e})=>"priority"===e);return{...t,serviceTier:r?"priority":void 0}}function w(e,t){return t?b(e.flatMap((e,n)=>e.upstreamProvider===t?[{index:n,model:e}]:[])):[]}function L(e){let t={anthropic:"Anthropic","openai-codex":"OpenAI Codex",openai:"OpenAI",openrouter:"OpenRouter"};return t[e]?t[e]:e.split(/[-_]/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function E(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"")}function C(e,t,n){let r=e.getRootNode().elementFromPoint?.(t,n)??e.ownerDocument.elementFromPoint?.(t,n);return r instanceof Node&&e.contains(r)}function M(e,t,n,r){let o=()=>{e.removeEventListener("pointermove",a,!0),e.removeEventListener("pointerup",i,!0),e.removeEventListener("pointercancel",i,!0),e.defaultView?.removeEventListener("blur",l)},i=e=>{e.pointerId===t&&(o(),n(e))},a=e=>{if(e.pointerId===t){if("mouse"===e.pointerType&&!(1&e.buttons))return void i(e);r?.(e)}},l=()=>{o(),n(null)};return e.addEventListener("pointermove",a,!0),e.addEventListener("pointerup",i,!0),e.addEventListener("pointercancel",i,!0),e.defaultView?.addEventListener("blur",l),o}function T(e,t){if(!t.width||!t.height)return null;let n=e.x<t.left?t.left-e.x:e.x-t.right,r=e.y<t.top?t.top-e.y:e.y-t.bottom;return n<=0&&r<=0?null:r>=n?{axis:"y",distance:r,direction:e.y<t.top?1:-1,start:t.left,end:t.right}:{axis:"x",distance:n,direction:e.x<t.left?1:-1,start:t.top,end:t.bottom}}function S(e,t,n,r){let o=e.ownerDocument,i=r?.trigger,a=null,l=null,s=null,d=!1,u=e=>{d!==e&&(d=e,r?.onHoldChange?.(e))},c=({x:t,y:n})=>C(e,t,n)||!(!i||!C(i,t,n)),p=()=>{null!==a&&(cancelAnimationFrame(a),a=null)},m=()=>n?.()??(r?e:null),h=(e,n)=>{l?.(),p(),u(!0);let r=e,i=null,a=0,s=0,d=performance.now(),h=d+320,f=(e=!1)=>{l=null,u(!1),cancelAnimationFrame(k),clearTimeout(w),o.removeEventListener("pointermove",v,!0),o.removeEventListener("pointerdown",b,!0),o.removeEventListener("keydown",x,!0),o.defaultView?.removeEventListener("blur",y),e&&!c(r)&&(p(),t(r))},g=()=>{if(!i)return;if(c(r))return void f();let t="x"===i.axis?"y":"x",n=(r[i.axis]-e[i.axis])*i.direction,o=Math.max(0,n/i.distance),l=e[t],u=l+(i.start-l)*o,p=l+(i.end-l)*o,m=6+28*(1-o);if(n<a-6||o>1||r[t]<u-m||r[t]>p+m)return void f(!0);if(a=Math.max(a,n),n-s<12)return;s=n;let g=performance.now(),v=Math.min(d+560,g+160);v<=h||(h=v,clearTimeout(w),w=setTimeout(()=>f(!0),h-g))},v=e=>{"mouse"===e.pointerType&&(r={x:e.clientX,y:e.clientY},g())},b=e=>{r={x:e.clientX,y:e.clientY},f(!0)},x=e=>{"Escape"===e.key&&f(!0)},y=()=>f(!0),k=requestAnimationFrame(()=>{let t=m(),r=t?.getBoundingClientRect();!r||n&&t===n.pane&&r.left===n.bounds.left&&r.top===n.bounds.top&&r.width===n.bounds.width&&r.height===n.bounds.height?f(!0):(i=T(e,r),i?g():f(!0))}),w=setTimeout(()=>f(!0),320);l=f,o.addEventListener("pointermove",v,!0),o.addEventListener("pointerdown",b,!0),o.addEventListener("keydown",x,!0),o.defaultView?.addEventListener("blur",y)},f=n=>{if(null!==s||l||"touch"===n.pointerType)return;let o=n.relatedTarget;if(o instanceof Node&&(e.contains(o)||i?.contains(o)))return;let d={x:n.clientX,y:n.clientY};r&&"mouse"===n.pointerType?h(d):(p(),a=requestAnimationFrame(()=>{a=null,!l&&null===s&&!c(d)&&t(d)}))},g=e=>{if(null!==s||l||0===e.detail||"pointerType"in e&&"mouse"!==e.pointerType)return;let t=m();if(!(t&&e.target instanceof Node&&t.contains(e.target)))return;let n={x:e.clientX,y:e.clientY},r=t.getBoundingClientRect();T(n,r)||h(n,{pane:t,bounds:r})},v=e=>{if(s=null,"mouse"===e?.pointerType){let n={x:e.clientX,y:e.clientY};if("pointercancel"!==e.type)return void h(n);if(!c(n))return u(!1),void t(n)}u(!1)},b=e=>{0!==e.button||s||!(e.target instanceof Element)||!e.target.closest("[data-model-scrub]")||(l?.(),p(),s=M(o,e.pointerId,v),u(!0))};return(n||r)&&e.addEventListener("click",g,!0),e.addEventListener("pointerout",f),e.addEventListener("pointerover",p),i?.addEventListener("pointerout",f),i?.addEventListener("pointerover",p),r&&e.addEventListener("pointerdown",b,!0),()=>{p(),l?.(),s?.(),u(!1),e.removeEventListener("click",g,!0),e.removeEventListener("pointerout",f),e.removeEventListener("pointerover",p),i?.removeEventListener("pointerout",f),i?.removeEventListener("pointerover",p),e.removeEventListener("pointerdown",b,!0)}}var I=l,P={WebkitUserSelect:"none",userSelect:"none"},R={minimal:"Minimal",low:"Low",medium:"Medium",high:"High",xhigh:"X-high",max:"Max",ultra:"Ultra"};function z(e){let t=e.replace(/-/g," ").replace(/^claude\s+/i,"").replace(/^GPT\s*/i,"GPT ").replace(/^Sonn\b/i,"Sonnet").replace(/^(fable|opus|sonnet)\b/i,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()),n=t.match(/^GPT\s+(\d+)(?:\.(\d+))?\b/i);if(!n)return t;let r=Number(n[1]),o=Number(n[2]??0);return r>5||5===r&&o>=6?t.replace(/^GPT\s+/i,""):t}function D({count:e,index:t,pill:n}){let r=Math.min(e,7),o=t<0?-1:e<=1?0:Math.round(t*(r-1)/(e-1));return h("span",{title:t>=0?`${t+1} of ${e}`:void 0,style:{alignItems:"center",background:n?"var(--picker-control)":"transparent",borderRadius:9,display:"inline-flex",gap:2,justifyContent:"center",padding:n?"2px 4px":4,transition:"background-color 120ms ease, padding 120ms ease"},children:Array.from({length:r},(e,t)=>{let n=t===o;return h("span",{style:0!==t||n?{background:"currentColor",opacity:n?1:.55,borderRadius:999,height:n?3:2,width:n?3:2,transition:"background-color 120ms ease, height 120ms ease, width 120ms ease"}:{background:"currentColor",opacity:.45,borderRadius:2,height:6,width:1,transition:"background-color 120ms ease, height 120ms ease, width 120ms ease"}},t)})})}function A({icon:e,options:t,selectedIndex:n,displayLabel:r,onSelect:o,scrub:i=!1,settingLabel:a}){let l=s(null),d=s(!1),[u,f]=c(!1),[g,v]=c(!1),b=n>=0&&n<t.length?n:0,x=t[b],y=!o||t.length<=1,k=n<0?"Inherit":x?.label,w=s({onSelect:o,count:t.length});p(()=>{w.current={onSelect:o,count:t.length},(!i||y)&&l.current&&(l.current(),v(!1))},[y,o,t.length,i]),p(()=>()=>l.current?.(),[]);return m("button",{type:"button","aria-label":a?`${a}: ${k}`:void 0,disabled:y,onPointerDown:e=>{if(!i||y||0!==e.button||l.current)return;let t=e.currentTarget,{pointerId:r,clientX:o}=e,a=t.getBoundingClientRect(),s=t.ownerDocument.defaultView,u=s?.visualViewport,c=u?.offsetLeft??0,p=c+(u?.width??s?.innerWidth??a.right),m=Math.max(a.left,c)+4,h=Math.min(a.right,p)-4,f=!1,g=n;d.current=!1,v(!0);let x=e=>{let t=e-o,{count:n,onSelect:r}=w.current,i=Math.min(b,n-1),a=t<0?i:n-1-i,l=Math.max(1,t<0?o-m:h-o);if(!f&&Math.abs(t)<Math.min(4,l))return;f=!0;let s=Math.min(22,l/Math.max(1,a)),d=Math.max(0,Math.min(n-1,i+Math.round(t/s)));d!==g&&(g=d,r?.(d))},k=M(t.ownerDocument,r,e=>{"pointerup"===e?.type&&x(e.clientX),l.current?.(),v(!1),d.current=!!e&&"pointercancel"!==e.type&&(f||!C(t,e.clientX,e.clientY))},e=>x(e.clientX));l.current=()=>{l.current=null,k(),t.hasPointerCapture(r)&&t.releasePointerCapture(r)},t.setPointerCapture(r)},"data-model-scrub":i&&!y?"":void 0,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onClick:e=>{let r=d.current;d.current=!1,!(e.detail>0&&r)&&(y||o(((n<0?-1:b)+1)%t.length))},style:{alignItems:"center",background:"transparent",border:0,borderRadius:24,color:u||g?"var(--picker-primary)":"var(--picker-secondary)",cursor:y?"default":i?"ew-resize":"pointer",display:"flex",fontFamily:I,fontSize:12,height:30,justifyContent:"space-between",letterSpacing:"0.12px",padding:"8px 6px 8px 10px",touchAction:i?"none":"auto",...P,width:"100%",transition:"background-color 120ms ease, color 120ms ease"},children:[m("span",{style:{alignItems:"center",display:"inline-flex",gap:6,minWidth:0},children:[h(e,{"aria-hidden":"true",size:12,strokeWidth:1.75}),h("span",{style:{...P,lineHeight:1.35,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a??r??x?.label??"Unavailable"})]}),m("span",{style:{alignItems:"center",display:"inline-flex",gap:2},children:[a&&h("span",{style:{...P,fontSize:11},children:k}),h(D,{count:t.length,index:n,pill:u||g})]})]})}function F({theme:a,visible:l,style:p,provider:g,availableProviders:v=[],models:b,modelIndex:k,agentSettings:C={},onProviderChange:M,onModelChange:T,onAgentSettingsChange:P,triggerRef:D,onHoverExit:F,onHoverHoldChange:N}){let X=s(null);d(()=>{let e=X.current,t=D?.current;if(l&&e&&t&&F)return S(e,F,void 0,{trigger:t,onHoldChange:N})},[l,D,F,N]);let $="dark"===a?"light":"dark",O=t[$],j=b[k]??b[0],H=u(()=>function(e){return[...new Set(e.flatMap(e=>e.upstreamProvider?[e.upstreamProvider]:[]))]}(b),[b]),Y=j?.upstreamProvider??H[0],[G,U]=c(""),[W,V]=c(!1),[B,q]=c(!1),Z=u(()=>function(e,t){let n=E(t);return n?e.filter(e=>E(`${e} ${L(e)}`).includes(n)):e}(H,G),[G,H]),K=function(e,t){if(!e||!t)return"";let n=L(e);return E(`${e} ${n}`).includes(E(t))?n:""}(Z[0],G),Q=K.toLowerCase().indexOf(G.trim().toLowerCase());d(()=>{W||U(Y?L(Y):"")},[W,Y]);let _=e=>{let t=function(e,t){let n=w(e,t);return n.find(e=>e.model.isDefault)?.index??n[0]?.index??0}(b,e);U(L(e)),V(!1),T?.(t)},J=u(()=>"omp"===g?w(b,Y):x(0,b),[b,g,Y]),ee=J.findIndex(e=>e.index===k),te=J.map(e=>({value:String(e.index),label:z(e.model.label)})),ne="claude"===g?["low","medium","high","xhigh","max"]:["low","medium","high","xhigh"],re=j?.supportedReasoningLevels?.map(e=>e.effort)??ne,oe=re.map(e=>({value:e,label:R[e]??e})),ie=C.reasoningEffort??j?.defaultReasoningLevel??re[0],ae=Math.max(0,re.indexOf(ie??"")),le=y(j),se=u(()=>J.some(({model:e})=>y(e).length>0),[J]),de=le.findIndex(e=>e.value===C.serviceTier),ue=["codex","claude","omp","copilot","opencode","cursor"].filter(e=>0===v.length||v.includes(e));return m("div",{"data-model-picker":!0,"data-popmelt-font":"sans",ref:X,style:{"--picker-control":O.control,"--picker-primary":O.primary,"--picker-secondary":"dark"===$?O.threadPrimary:O.hoverForeground,colorScheme:$,color:O.primary,background:O.raisedSurface,border:`1px solid ${O.border}`,borderRadius:20,bottom:39,boxSizing:"border-box",display:"flex",flexDirection:"column",left:0,opacity:l?1:0,padding:4,pointerEvents:l?"auto":"none",fontFamily:I,position:"absolute",transition:"opacity 120ms ease",width:Math.max(se?152:139,32*ue.length),zIndex:4,...p},children:[h("div",{style:{display:"flex",width:"100%"},children:ue.map(t=>{let n=g===t;return h("button",{type:"button","aria-label":"Use "+("codex"===t?"GPT":"claude"===t?"Claude":"copilot"===t?"Copilot":"cursor"===t?"Grok Code (Cursor)":"opencode"===t?"OpenCode":"OMP"),"aria-pressed":n,disabled:!M,onClick:()=>M?.(t),style:{alignItems:"center",background:n?O.control:"transparent",border:0,borderRadius:24,color:n?O.primary:"var(--picker-secondary)",cursor:M?"pointer":"default",display:"flex",flex:1,justifyContent:"center",padding:"8px 0",transition:"background-color 120ms ease, color 120ms ease"},children:h(e,{provider:t,size:12})},t)})}),"omp"===g&&H.length>0&&m("div",{style:{position:"relative",width:"100%"},children:[h(n,{"aria-hidden":"true",size:12,strokeWidth:1.75,style:{color:O.secondary,left:10,opacity:B?1:0,pointerEvents:"none",position:"absolute",top:8,transition:"opacity 120ms ease",zIndex:3}}),W&&K&&h("div",{"aria-hidden":"true",style:{color:O.secondary,fontFamily:I,fontSize:12,height:28,left:0,lineHeight:"28px",overflow:"hidden",padding:B?"0 10px 0 28px":"0 10px",pointerEvents:"none",position:"absolute",right:0,top:0,transition:"padding-left 120ms ease",whiteSpace:"pre",zIndex:1},children:Q>=0?m(f,{children:[K.slice(0,Q),h("span",{style:{color:O.primary},children:K.slice(Q,Q+G.trim().length)}),K.slice(Q+G.trim().length)]}):K}),h("input",{"aria-label":"OMP provider","aria-autocomplete":"inline",autoComplete:"off",onBlur:()=>{V(!1)},onChange:e=>{U(e.currentTarget.value),V(!0)},onFocus:e=>{V(!0),e.currentTarget.select()},onKeyDown:e=>{if("Enter"===e.key){let t=Z[0];t&&(e.preventDefault(),_(t),e.currentTarget.blur())}else if("Tab"===e.key){let e=Z[0];e&&K&&_(e)}else"Escape"===e.key&&e.currentTarget.blur()},onMouseEnter:()=>q(!0),onMouseLeave:()=>q(!1),placeholder:"Provider",value:G,style:{background:"transparent",border:0,borderRadius:0,boxSizing:"border-box",color:W&&K?"transparent":W||B?O.primary:"var(--picker-secondary)",caretColor:W&&!K?O.primary:"transparent",cursor:W?"text":"pointer",fontFamily:I,fontSize:12,height:28,outline:"none",padding:B?"6px 10px 6px 28px":"6px 10px",position:"relative",transition:"color 120ms ease, padding-left 120ms ease",width:"100%",zIndex:2}})]}),h(A,{icon:r,options:te,selectedIndex:ee,displayLabel:ee<0&&j?z(j.label):void 0,onSelect:T?e=>{let t=J[e];t&&T?.(t.index)}:void 0,scrub:l}),"opencode"!==g&&"cursor"!==g&&h(A,{icon:o,options:oe,selectedIndex:ae,onSelect:P?e=>P({...C,reasoningEffort:oe[e].value}):void 0,scrub:l}),le.length>0&&h(A,{icon:i,settingLabel:"Speed",options:le,selectedIndex:de,onSelect:P?e=>P({...C,serviceTier:le[e].value}):void 0,scrub:l})]})}function N({triggerRef:t,provider:n,open:r,onClick:o,onMouseEnter:i,onMouseLeave:l,style:s}){let[d,u]=c(!1);return m("button",{type:"button",ref:t,"data-model-picker":!0,"aria-expanded":r,"aria-label":"Choose model settings",onMouseEnter:()=>{u(!0),i?.()},onMouseLeave:()=>{u(!1),l?.()},onClick:o,style:{alignItems:"center",background:r||d?"var(--popmelt-thread-control, #eaeaea)":"transparent",border:0,borderRadius:40,color:"var(--popmelt-thread-muted-strong, #888)",cursor:"pointer",display:"flex",gap:2,height:24,padding:"0 3px 0 6px",...s,transition:"background-color 120ms ease, color 120ms ease"},children:[h(e,{provider:n,size:14}),h(a,{"aria-hidden":"true",size:12,strokeWidth:1.75,style:{transform:r?"rotate(180deg)":"rotate(0deg)",transition:"transform 120ms ease"}})]})}export{x as a,y as b,k as c,C as d,S as e,F as f,N as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as t}from"./chunk-HKHZBKAN.mjs";import{createServer as a}from"http";import{readFile as i,realpath as r,stat as s}from"fs/promises";import{extname as o,join as n}from"path";var d={".html":"text/html; charset=utf-8",".htm":"text/html; charset=utf-8",".css":"text/css",".js":"text/javascript",".mjs":"text/javascript",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".svg":"image/svg+xml",".gif":"image/gif",".avif":"image/avif",".webp":"image/webp",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf"};async function m(m,p=0,c){let f=await r(m),l=a((a,m)=>{if(m.setHeader("Cache-Control","no-store"),m.setHeader("X-Content-Type-Options","nosniff"),a.headers.host!==new URL(w).host)return void m.writeHead(403).end();let p=()=>{(async()=>{if("GET"!==a.method&&"HEAD"!==a.method)return void m.writeHead(405).end();let p=new URL(a.url??"/",w);if(c&&p.pathname===e)return void m.writeHead(200,{"Content-Type":"text/javascript"}).end("HEAD"===a.method?void 0:await t("toolbar"));let l=decodeURIComponent(p.pathname);if(/[\\%]/.test(l)||l.includes("\0")||l.split("/").some(e=>e.startsWith(".")||"node_modules"===e))return void m.writeHead(404).end();let h=n(f,l);(await s(h)).isDirectory()&&(h=n(h,"index.html"));let g=d[o(h).toLowerCase()];if(!g||await r(h)!==h||!(await s(h)).isFile())return void m.writeHead(404).end();let v=await i(h);if(c&&g.startsWith("text/html")){let t="<script>window.__POPMELT_PARTICIPANTS__="+JSON.stringify(await c.read(l)).replace(/</g,"\\u003c")+'<\/script><script defer src="'+e+'"><\/script>',a=v.toString();v=/<\/head\s*>/i.test(a)?a.replace(/<\/head\s*>/i,()=>t+"</head>"):a.replace(/^(\s*<!doctype[^>]*>)?/i,e=>e+t)}m.writeHead(200,{"Content-Type":g}).end("HEAD"===a.method?void 0:v)})().catch(()=>m.writeHead(404).end())};c?c.middleware(a,m,p):p()}),w="";return await new Promise((e,t)=>l.once("error",t).listen(p,"127.0.0.1",e)),w="http://127.0.0.1:"+l.address().port,{origin:w,isRunning:()=>l.listening,close:async()=>{let e=new Promise(e=>l.close(()=>e()));l.closeAllConnections(),await e}}}export{m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{h as e,g as t}from"./chunk-
|
|
1
|
+
"use client";import{h as e,g as t}from"./chunk-FON4QY7P.mjs";import{useSyncExternalStore as r,useEffect as n,useCallback as o}from"react";var a="devtools-toolbar-theme",i="popmelt-theme-change",d="popmelt-theme-project-change",l="(prefers-color-scheme: dark)",c={light:{surface:"#eaeaea",border:"#dddddd",control:"#dddddd",primary:"#222222",threadPrimary:"#222222",secondary:"#777777",muted:"#aaaaaa",mutedStrong:"#888888",hoverSurface:"#dddddd",hoverForeground:"#333333",raisedSurface:"#ffffff",softSurface:"#f5f5f5",actionSurface:"#222222",actionForeground:"#eeeeee",actionHover:"#000000",hairline:"rgba(0,0,0,0.1)",softHairline:"rgba(0,0,0,0.06)",scrollbarIdle:"rgba(34,34,34,0.2)",scrollbarHover:"rgba(34,34,34,0.5)",logoFilter:"none"},dark:{surface:"#111111",border:"#222222",control:"#222222",primary:"#dddddd",threadPrimary:"#aaaaaa",secondary:"#777777",muted:"#555555",mutedStrong:"#777777",hoverSurface:"#222222",hoverForeground:"#dddddd",raisedSurface:"#181818",softSurface:"#181818",actionSurface:"#dddddd",actionForeground:"#222222",actionHover:"#ffffff",hairline:"rgba(255,255,255,0.1)",softHairline:"rgba(255,255,255,0.06)",scrollbarIdle:"rgba(221,221,221,0.2)",scrollbarHover:"rgba(221,221,221,0.5)",logoFilter:"invert(1)"}};function w(e){return"light"===e||"dark"===e?e:"auto"}function u(e){return"light"===e?"dark":"dark"===e?"auto":"light"}function f(){if(typeof window>"u")return{exists:!1,preference:"auto"};let e,t=p(window.__POPMELT_PROJECT_ID__);try{e=window.localStorage.getItem(t)}catch{let e=document.documentElement.style.colorScheme;return{exists:!1,preference:"dark"===e||"light"===e?e:"auto"}}if(null!==e)return{exists:!0,preference:w(e)};let r=window.__POPMELT_PROJECT_ID__;if(r){let e=p(void 0),n=window.localStorage.getItem(e);if(null!==n){let o=w(n);window.localStorage.setItem(t,o),window.localStorage.removeItem(e);let a=E(void 0);return null!==window.localStorage.getItem(a)&&(window.localStorage.setItem(E(r),o),window.localStorage.removeItem(a)),{exists:!0,preference:o}}}let n=window.localStorage.getItem(a);if(null!==n){let e=w(n);return window.__POPMELT_PROJECT_ID__&&(window.localStorage.setItem(t,e),window.localStorage.removeItem(a)),{exists:!0,preference:e}}return{exists:!1,preference:"auto"}}function s(){return f().preference}function m(e,t,r){if(typeof window>"u")return;window.localStorage.setItem(p(t),e);let n=E(t);r?window.localStorage.setItem(n,e):window.localStorage.removeItem(n)}function g(){if(typeof window>"u")return"auto:light";return`${s()}:${window.matchMedia(l).matches?"dark":"light"}`}function v(e){if(typeof window>"u")return()=>{};let t=t=>{let r=p(window.__POPMELT_PROJECT_ID__);(t.key===r||t.key===a)&&e()},r=window.matchMedia(l),n=()=>e();return window.addEventListener("storage",t),window.addEventListener(i,e),window.addEventListener(d,e),r.addEventListener("change",n),()=>{window.removeEventListener("storage",t),window.removeEventListener(i,e),window.removeEventListener(d,e),r.removeEventListener("change",n)}}function h(a){let d=r(v,g,()=>"auto:light"),[l,c]=d.split(":"),u=function(e,t){return"auto"===e?t?"dark":"light":e}(l,"dark"===c),h=typeof window<"u"?window.__POPMELT_PROJECT_ID__:void 0;return n(()=>{if(!a||!h)return;let r=!1;return(async()=>{let n=E(h),o=window.localStorage.getItem(n);if(null!==o){let t=w(o),n=await e(a,t);return void(!r&&n&&(m(n.preferences.theme,h,!1),window.dispatchEvent(new Event(i))))}let d=await t(a);if(r||!d)return;let l=f();if(!d.exists&&l.exists){let t=await e(a,l.preference);return void(!r&&t&&(m(t.preferences.theme,h,!1),window.dispatchEvent(new Event(i))))}m(d.preferences.theme,h,!1),window.dispatchEvent(new Event(i))})(),()=>{r=!0}},[a,h]),[u,o(t=>{typeof window>"u"||s()===t||(m(t,h,!(!a||!h)),window.dispatchEvent(new Event(i)),a&&h&&e(a,t).then(e=>{e&&(m(e.preferences.theme,h,!1),window.dispatchEvent(new Event(i)))}))},[a,h]),l]}function p(e){let t=e?.trim()||"default";return`${a}:${t}`}function E(e){return`${p(e)}:pending-sync`}function _(){typeof window<"u"&&window.dispatchEvent(new Event(d))}export{c as a,u as b,h as c,_ as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as e}from"./chunk-G2ZHJXHZ.mjs";import{a as t,c as n}from"./chunk-53SKVMWR.mjs";import{a as o,i,c as a,h as r,f as d,d as s}from"./chunk-QV5G3XRE.mjs";import{l}from"./chunk-FJWWBKCQ.mjs";import{h as c,i as p}from"./chunk-AOTDTBQO.mjs";import{X as u,c as f,b as h,o as m,h as g,i as y,j as v,k as S,e as I}from"./chunk-JEGBAHYK.mjs";import{h as x,a as M,g as w}from"./chunk-W2QQVB2H.mjs";import{f as b}from"./chunk-AAMUU2QA.mjs";import{v as T,d as k}from"./chunk-LH7HKUCK.mjs";import{a as A}from"./chunk-XJJDBMZI.mjs";import{a as E}from"./chunk-OREALBUO.mjs";import{a as C}from"./chunk-B4DYUYX4.mjs";import{c as N,a as O}from"./chunk-NI77Y3WC.mjs";import{N as P,I as D,ia as _,$ as R,Ma as L,qa as $,xa as j,M as z}from"./chunk-OA63PYHZ.mjs";import{a as H}from"./chunk-PRPXMDZ7.mjs";import{createContext as B,memo as F,useContext as W,useState as K,useEffect as Y,useRef as U,useLayoutEffect as Q,useReducer as X,useSyncExternalStore as q,useId as V}from"react";import{jsxs as J,Fragment as G,jsx as Z}from"react/jsx-runtime";function ee(e,t){return te(e,t)?e:t}function te(e,t){if(Object.is(e,t))return!0;if(!e||!t||"object"!=typeof e||"object"!=typeof t||Array.isArray(e)!==Array.isArray(t))return!1;let n=e,o=t,i=Object.keys(n);return i.length===Object.keys(o).length&&i.every(e=>Object.prototype.hasOwnProperty.call(o,e)&&te(n[e],o[e]))}var ne=B(null),oe=()=>()=>{},ie=()=>null;function ae(){return Math.random().toString(36).substring(2,9)}function re(e){return"text"===e.type&&"lasso"===e.region?.kind&&(e={...e,fontSize:12,linkedAnchor:e.linkedAnchor??"bottom-left"}),e.status?e:e.captured?{...e,status:"in_flight"}:{...e,status:"pending"}}function de(e){return{canvasSamples:e.canvasSamples,annotations:e.annotations,styleModifications:e.styleModifications,textModifications:e.textModifications,domModifications:e.domModifications,spacingTokenChanges:e.spacingTokenChanges,spacingTokenMods:e.spacingTokenMods}}function se(e,t){return{...e,undoStack:[...e.undoStack,{...de(e),...t&&{textEditSessionId:t}}],redoStack:[]}}function le(e,t,n=!0){let{selector:o,durableSelector:i,element:a,changes:r}=t,d=typeof window<"u"?b(window.location.pathname):"/",s=r.filter(e=>e.original!==e.modified);if(0===s.length)return e;let l=n?se(e):e,c=l.styleModifications.findIndex(e=>e.selector===o&&(!e.pathname||e.pathname===d));if(c>=0){let e=l.styleModifications[c],t=e.captured?[]:[...e.changes];for(let e of s){let n=t.findIndex(t=>t.property===e.property);n>=0?t=e.modified===t[n].original?t.filter((e,t)=>t!==n):t.map((t,o)=>o===n?{...t,modified:e.modified,token:e.token,sticker:e.sticker}:t):t.push(e)}return 0===t.length?{...l,styleModifications:l.styleModifications.filter((e,t)=>t!==c)}:{...l,styleModifications:l.styleModifications.map((e,n)=>n===c?{...e,changes:t,createdAt:e.createdAt??Date.now(),captured:!1,pathname:d}:e)}}return{...l,styleModifications:[...l.styleModifications,{selector:o,durableSelector:i,element:a,changes:s,createdAt:Date.now(),pathname:d}]}}function ce(e,t){let n=new Map,o=[];for(let i of e){let e=i.sampledTree&&i.referenceSelector?n.get(i.referenceSelector):void 0,a=e&&e.pathname===i.pathname?{...i,referenceSelector:e.referenceSelector,placement:e.placement}:i;i.sampledTree&&t.has(i.id)?(n.set(i.selector,a),n.set(`[data-popmelt-placement-item="${i.id}"]`,a)):o.push(a)}return o.length===e.length?e:o}function pe(e,t,n,o){return e.selector===t&&(!e.pathname||e.pathname===o)&&e.textNodePath.length===n.length&&e.textNodePath.every((e,t)=>e===n[t])}function ue(e,t,n=!0){let{selector:o,durableSelector:i,element:a,textNodePath:r,original:d,modified:s}=t,l=typeof window<"u"?b(window.location.pathname):"/",c=e.textModifications.findIndex(e=>pe(e,o,r,l)),p=t.paragraphs?JSON.stringify(t.paragraphs.before)===JSON.stringify(t.paragraphs.after):d===s;if(p&&c<0)return e;if(c>=0){let o=e.textModifications[c],r=o.captured&&n?se(e):e,u=o.captured?d:o.original;return(t.paragraphs?p:s===u)?{...r,textModifications:r.textModifications.filter((e,t)=>t!==c)}:{...r,textModifications:r.textModifications.map((e,n)=>n===c?{...e,durableSelector:i,element:a,...t.paragraphs&&{paragraphs:t.paragraphs},original:u,canvasLabel:t.canvasLabel,modified:s,createdAt:e.createdAt??Date.now(),captured:!1,pathname:l}:e)}}let u=n?se(e):e;return{...u,textModifications:[...u.textModifications,{selector:o,durableSelector:i,element:a,textNodePath:r,...t.paragraphs&&{paragraphs:t.paragraphs},...void 0!==t.canvasLabel&&{canvasLabel:t.canvasLabel},original:d,modified:s,createdAt:Date.now(),pathname:l}]}}function fe(e,t,n=!0,o){return 0===t.length?e:t.reduce((e,t)=>ue(e,t,!1),n?se(e,o):e)}function he(e,t){switch(t.type){case"SET_ANNOTATING":return function(e,t){return{...e,isAnnotating:t}}(e,t.payload);case"SET_TOOL":return function(e,t){return{...e,activeTool:t}}(e,t.payload);case"SET_COLOR":return function(e,t){return{...e,activeColor:t}}(e,t.payload);case"SET_STROKE_WIDTH":return function(e,t){return{...e,strokeWidth:t}}(e,t.payload);case"ADD_TEXT":return function(e,t){let n={id:t.id??ae(),type:"text",points:[t.point],text:t.text,fontSize:t.fontSize||12,color:e.activeColor,strokeWidth:e.strokeWidth,timestamp:Date.now(),status:"pending",pathname:typeof window<"u"?b(window.location.pathname):"/",groupId:t.groupId,linkedSelector:t.linkedSelector,target:t.target,linkedAnchor:t.linkedAnchor,elements:t.elements,...t.region?{region:t.region}:{},...t.imageCount?{imageCount:t.imageCount}:{},...t.attachments?.length?{attachments:t.attachments}:{},...t.interactionEpisode?{interactionEpisode:t.interactionEpisode}:{}};return{...t.groupId?e:se(e),annotations:[...e.annotations,n]}}(e,t.payload);case"UPDATE_TEXT":return function(e,t){return{...se(e),annotations:e.annotations.map(e=>e.id===t.id?{...e,text:t.text,...null!=t.imageCount?{imageCount:t.imageCount}:{},...t.attachments?{attachments:t.attachments}:{},...t.interactionEpisode?{interactionEpisode:t.interactionEpisode}:{}}:e)}}(e,t.payload);case"CLEAR_INTERACTION_EPISODE":return function(e,t){return{...se(e),annotations:e.annotations.map(e=>{if(e.id!==t.id)return e;let n=e.interactionEpisode?.frames?.length??0,{interactionEpisode:o,...i}=e;if(0===n)return i;let a=Math.max(0,(e.imageCount??0)-n);if(0===a){let{imageCount:e,...t}=i;return t}return{...i,imageCount:a}})}}(e,t.payload);case"DELETE_ANNOTATION":return function(e,t){let n=se(e),o=e.annotations.find(e=>e.id===t.id)?.groupId,i=new Set(e.annotations.filter(e=>e.id===t.id||o&&e.groupId===o).map(e=>e.id));return{...n,annotations:e.annotations.filter(e=>e.id!==t.id&&!(o&&e.groupId===o)),selectedAnnotationIds:e.selectedAnnotationIds.filter(e=>!i.has(e)),lastSelectedId:e.lastSelectedId&&i.has(e.lastSelectedId)?null:e.lastSelectedId}}(e,t.payload);case"MOVE_ANNOTATION":return function(e,t){let n=t.saveUndo?se(e):e,o=e.annotations.find(e=>e.id===t.id)?.groupId;return{...n,annotations:e.annotations.map(e=>{if(!(e.id===t.id||o&&e.groupId===o))return e;let n=t.delta.x,i=t.delta.y;return{...e,points:e.points.map(e=>({x:e.x+n,y:e.y+i}))}})}}(e,t.payload);case"RESIZE_ANNOTATION":return function(e,t){let n=t.saveUndo?se(e):e,o=e.annotations.find(e=>e.id===t.id);if(!o||"text"===o.type||o.points.length<2)return e;let i=0,a=0;if("rectangle"===o.type&&o.groupId){let e=t.points,n=Math.min(e[0].x,e[1].x),r=Math.max(e[0].y,e[1].y),d=o.points[0],s=o.points[o.points.length-1],l=Math.min(d.x,s.x),c=Math.max(d.y,s.y);i=n-l,a=r-c}return{...n,annotations:e.annotations.map(e=>e.id===t.id?{...e,points:t.points}:o.groupId&&e.groupId===o.groupId&&"text"===e.type?{...e,points:e.points.map(e=>({x:e.x+i,y:e.y+a}))}:e)}}(e,t.payload);case"PASTE_ANNOTATIONS":return function(e,t){return{...se(e),annotations:[...e.annotations,...t.annotations.map(re)]}}(e,t.payload);case"RESTORE_ANNOTATIONS":return function(e,t){let n=new Set,o=[];for(let e of t.annotations)n.has(e.id)||(n.add(e.id),o.push(re(e)));return{...e,annotations:o}}(e,t.payload);case"SYNC_ANNOTATIONS":return function(e,t){let n=new Map(e.annotations.map(e=>[e.id,e])),o=t.annotations.map(e=>{let t=re(e),o=n.get(t.id);return o&&t.linkedSelector&&o.linkedSelector===t.linkedSelector?{...t,points:o.points,linkedAnchor:o.linkedAnchor}:t});return{...e,annotations:o}}(e,t.payload);case"MERGE_ANNOTATIONS":return function(e,t){let n=new Set(e.annotations.map(e=>e.id)),o=t.annotations.filter(e=>!n.has(e.id)).map(re);return o.length>0?{...e,annotations:[...e.annotations,...o]}:e}(e,t.payload);case"UNDO":return function(e){if(0===e.undoStack.length)return e;let t=e.undoStack[e.undoStack.length-1];return{...e,annotations:t?.annotations||[],canvasSamples:t?.canvasSamples,styleModifications:t?.styleModifications||[],textModifications:t?.textModifications||[],domModifications:t?.domModifications||[],spacingTokenChanges:t?.spacingTokenChanges||[],spacingTokenMods:t?.spacingTokenMods||[],undoStack:e.undoStack.slice(0,-1),redoStack:[...e.redoStack,de(e)]}}(e);case"REDO":return function(e){if(0===e.redoStack.length)return e;let t=e.redoStack[e.redoStack.length-1];return{...e,annotations:t?.annotations||[],canvasSamples:t?.canvasSamples,styleModifications:t?.styleModifications||[],textModifications:t?.textModifications||[],domModifications:t?.domModifications||[],spacingTokenChanges:t?.spacingTokenChanges||[],spacingTokenMods:t?.spacingTokenMods||[],redoStack:e.redoStack.slice(0,-1),undoStack:[...e.undoStack,de(e)]}}(e);case"SELECT_ANNOTATION":return function(e,t){let{id:n,addToSelection:o}=t;if(null===n)return{...e,selectedAnnotationIds:[],lastSelectedId:null};if(o){if(e.selectedAnnotationIds.includes(n)){let t=e.selectedAnnotationIds.filter(e=>e!==n);return{...e,selectedAnnotationIds:t,lastSelectedId:t.length>0?t[t.length-1]:null}}return{...e,selectedAnnotationIds:[...e.selectedAnnotationIds,n],lastSelectedId:n}}return{...e,selectedAnnotationIds:[n],lastSelectedId:n}}(e,t.payload);case"UPDATE_ANNOTATION_COLOR":return function(e,t){let n=e.annotations.find(e=>e.id===t.id)?.groupId,o=new Set;for(let t of e.selectedAnnotationIds){let n=e.annotations.find(e=>e.id===t);n?.groupId&&o.add(n.groupId)}return{...e,annotations:e.annotations.map(i=>i.id===t.id||e.selectedAnnotationIds.includes(i.id)||i.groupId&&(i.groupId===n||o.has(i.groupId))?{...i,color:t.color}:i)}}(e,t.payload);case"MARK_CAPTURED":return function(e,t){let n=typeof window<"u"?b(window.location.pathname):"/",o=t?.annotationIds?new Set(t.annotationIds):void 0,i=t?.textModifications??e.textModifications.filter(e=>!e.pathname||e.pathname===n),a=e=>e.filter(e=>!i.some(t=>e.pathname===t.pathname&&pe(e,t.selector,t.textNodePath,t.pathname??"")&&e.createdAt===t.createdAt&&e.original===t.original&&e.modified===t.modified&&te(e.paragraphs,t.paragraphs))),r=(e,t,n=!0)=>t?t.some(t=>te(t,e)):n,d=t?.domModifications??e.domModifications.filter(e=>!e.pathname||e.pathname===n),s=e=>!e.captured&&d.some(t=>te(t,e))?{...e,captured:!0}:e,l=e=>({...e,textModifications:a(e.textModifications),domModifications:(e.domModifications??[]).map(e=>e.sampledTree?s(e):e)});return{...e,undoStack:e.undoStack.map(l),redoStack:e.redoStack.map(l),annotations:e.annotations.map(e=>o&&!o.has(e.id)?e:{...e,captured:!0,status:"pending"!==e.status&&"sending"!==e.status&&e.status?e.status:"in_flight"}),styleModifications:e.styleModifications.map(e=>r(e,t?.styleModifications,!e.pathname||e.pathname===n)?{...e,captured:!0}:e),textModifications:a(e.textModifications),domModifications:e.domModifications.map(s),spacingTokenChanges:e.spacingTokenChanges.map(e=>r(e,t?.spacingTokenChanges)?{...e,captured:!0}:e),spacingTokenMods:e.spacingTokenMods.map(e=>r(e,t?.spacingTokenMods)?{...e,captured:!0}:e)}}(e,t.payload);case"CLEAR":return function(e){return{...e,canvasSamples:void 0,annotations:[],undoStack:[],redoStack:[],selectedAnnotationIds:[],lastSelectedId:null,textModifications:[],domModifications:[],spacingTokenChanges:[],spacingTokenMods:[]}}(e);case"DISCARD_DRAFT":return function(e){return e.canvasSamples?.length||e.annotations.some(e=>"pending"===(e.status??"pending"))||e.styleModifications.some(e=>!e.captured)||e.textModifications.some(e=>!e.captured)||e.domModifications.some(e=>!e.captured)||e.spacingTokenChanges.some(e=>!e.captured)||e.spacingTokenMods.some(e=>!e.captured)?{...se(e),canvasSamples:void 0,annotations:e.annotations.filter(e=>"pending"!==(e.status??"pending")),styleModifications:e.styleModifications.filter(e=>e.captured),textModifications:e.textModifications.filter(e=>e.captured),domModifications:e.domModifications.filter(e=>e.captured),spacingTokenChanges:e.spacingTokenChanges.filter(e=>e.captured),spacingTokenMods:e.spacingTokenMods.filter(e=>e.captured),selectedAnnotationIds:[],lastSelectedId:null}:e}(e);case"MODIFY_STYLE":return function(e,t){let{selector:n,element:o,property:i,original:a,modified:r}=t,d=typeof window<"u"?b(window.location.pathname):"/",s=e.styleModifications.findIndex(e=>e.selector===n&&(!e.pathname||e.pathname===d));if(a===r&&s<0)return e;if(s>=0){let t=e.styleModifications[s];if(t.captured){let t=se(e),n=t.styleModifications.map((e,t)=>t===s?{...e,changes:[{property:i,original:a,modified:r}],createdAt:e.createdAt??Date.now(),captured:!1,pathname:d}:e);return{...t,styleModifications:n}}let n,o=t.changes.findIndex(e=>e.property===i),l=e;if(o>=0){let e=t.changes[o];n=r===e.original?t.changes.filter((e,t)=>t!==o):t.changes.map((e,t)=>t===o?{...e,modified:r}:e)}else{if(a===r)return e;l=se(e),n=[...t.changes,{property:i,original:a,modified:r}]}if(0===n.length)return{...l,styleModifications:l.styleModifications.filter((e,t)=>t!==s)};let c=l.styleModifications.map((e,t)=>t===s?{...e,changes:n,createdAt:e.createdAt??Date.now()}:e);return{...l,styleModifications:c}}{let t=se(e),s={selector:n,element:o,changes:[{property:i,original:a,modified:r}],createdAt:Date.now(),pathname:d};return{...t,styleModifications:[...t.styleModifications,s]}}}(e,t.payload);case"DISCARD_PLACED_SAMPLE":{let{selector:n,pathname:o}=t.payload,i=e.domModifications.find(e=>e.selector===n&&e.pathname===o&&e.sampledTree&&!e.captured),a=i?ce(e.domModifications,new Set([i.id])):e.domModifications,r=e.canvasSamples?.filter(e=>!(e.selector===n&&e.pathname===o&&e.subject?.inserted));return a.length===e.domModifications.length&&r?.length===e.canvasSamples?.length?e:{...se(e),domModifications:a,canvasSamples:r}}case"PULL_PEER_EDITS":{let{styles:n,texts:o,canvases:i=[],placedElement:a}=t.payload;if(!(n.length||o.length||i.length||a))return e;let r=se(e);a&&(r.domModifications=[...e.domModifications,a]),i.length&&(r.canvasSamples=[...(e.canvasSamples??[]).filter(e=>!e.subject||!i.some(t=>!t.subject&&t.pathname===e.pathname&&t.selector===e.subject?.canvasSelector)),...i]);for(let e of n)r=le(r,e,!1);return fe(r,o,!1)}case"MODIFY_STYLES_BATCH":return le(e,t.payload);case"CLEAR_STYLE":return function(e,t){let{selector:n,property:o}=t,i=typeof window<"u"?b(window.location.pathname):"/",a=se(e),r=a.styleModifications.map(e=>e.selector!==n||e.pathname&&e.pathname!==i?e:{...e,changes:e.changes.filter(e=>e.property!==o)}).filter(e=>e.changes.length>0);return{...a,styleModifications:r}}(e,t.payload);case"CLEAR_STICKER":return function(e,t){let{selector:n,sticker:o}=t,i=typeof window<"u"?b(window.location.pathname):"/";if(!e.styleModifications.find(e=>e.selector===n&&(!e.pathname||e.pathname===i)&&!e.captured&&e.changes.some(e=>e.sticker?.family===o.family&&e.sticker.subproperty===o.subproperty)))return e;let a=se(e),r=a.styleModifications.map(e=>e.selector!==n||e.pathname&&e.pathname!==i||e.captured?e:{...e,changes:e.changes.filter(e=>e.sticker?.family!==o.family||e.sticker.subproperty!==o.subproperty)}).filter(e=>e.changes.length>0);return{...a,styleModifications:r}}(e,t.payload);case"CLEAR_ALL_STYLES":return function(e){return 0===e.styleModifications.length?e:{...se(e),styleModifications:[]}}(e);case"RECOVER_PLACEMENT_SLOT":{let{id:n,slot:o}=t.payload,i=e.domModifications.find(e=>e.id===n);return i?.captured&&i.sampledTree&&!i.sourceSlot?{...e,domModifications:e.domModifications.map(e=>e===i?{...e,sourceSlot:o}:e)}:e}case"SETTLE_IMPLEMENTED_PLACEMENTS":return function(e,t){let n=new Set(t),o=new Set;for(let t of[e,...e.undoStack,...e.redoStack])for(let e of t.domModifications??[])e.captured&&e.sampledTree&&n.has(e.id)&&o.add(e.id);if(!o.size)return e;let i=e=>({...e,domModifications:ce(e.domModifications??[],o)});return{...e,domModifications:ce(e.domModifications,o),undoStack:e.undoStack.map(i),redoStack:e.redoStack.map(i)}}(e,t.payload.ids);case"SETTLE_CAPTURED_STYLES":return function(e,t){let n=new Set(t.selectors);if(0===n.size)return e;let o=e.styleModifications.filter(e=>!(e.captured&&(n.has(e.selector)||e.durableSelector&&n.has(e.durableSelector))));return o.length===e.styleModifications.length?e:{...e,styleModifications:o}}(e,t.payload);case"RESTORE_STYLE_MODIFICATIONS":return function(e,t){let n=Date.now();return{...e,styleModifications:t.map((e,t)=>({...e,createdAt:e.createdAt??n+t}))}}(e,t.payload);case"MODIFY_TEXT_CONTENT":return ue(e,t.payload);case"MODIFY_TEXT_CONTENTS":return fe(e,t.payload,t.saveUndo??!0,t.textEditSessionId);case"CANCEL_PARAGRAPH_EDIT":{let{id:n,selector:o,pathname:i,originalDrafts:a}=t.payload,r=e.undoStack.findIndex(e=>e.textEditSessionId===n);if(r<0)return e;let d=e=>[...e.filter(e=>e.selector!==o||e.pathname&&e.pathname!==i),...a],s=e.undoStack.slice(r).filter(e=>e.textEditSessionId!==n);return{...e,textModifications:d(e.textModifications),undoStack:[...e.undoStack.slice(0,r),...s.map(e=>({...e,textModifications:d(e.textModifications)}))]}}case"RESTORE_TEXT_MODIFICATIONS":return function(e,t){let n=Date.now();return{...e,textModifications:t.filter(e=>!e.captured).map((e,t)=>({...e,createdAt:e.createdAt??n+t}))}}(e,t.payload);case"MODIFY_DOM_STRUCTURE":return function(e,t){let n=se(e),o=n.domModifications.findIndex(e=>e.id===t.id);return o>=0?{...n,domModifications:n.domModifications.map((e,n)=>n===o?{...t,captured:!1}:e)}:{...n,domModifications:[...n.domModifications,t]}}(e,t.payload);case"RESTORE_DOM_MODIFICATIONS":return function(e,t){return{...e,domModifications:t}}(e,t.payload);case"UPDATE_LINKED_POSITIONS":return function(e,t){let{updates:n}=t,o=new Map(n.map(e=>[e.id,e]));return{...e,annotations:e.annotations.map(e=>{let t=o.get(e.id);return t?{...e,points:[t.point,...e.points.slice(1)],...t.linkedAnchor?{linkedAnchor:t.linkedAnchor}:{}}:e})}}(e,t.payload);case"CLEANUP_ORPHANED":return function(e,t){let{linkedSelectors:n,styleSelectors:o}=t,i=new Set(n),a=new Set(o),r=typeof window<"u"?b(window.location.pathname):"/",d=new Set,s=new Set;for(let t of e.annotations)t.linkedSelector&&i.has(t.linkedSelector)&&(d.add(t.id),t.groupId&&s.add(t.groupId));for(let t of e.annotations)t.groupId&&s.has(t.groupId)&&d.add(t.id);let l=e.annotations.filter(e=>!d.has(e.id)),c=e.styleModifications.filter(e=>!a.has(e.selector)||e.pathname&&e.pathname!==r),p=e.domModifications.filter(e=>!a.has(e.selector)||e.pathname&&e.pathname!==r);if(l.length===e.annotations.length&&c.length===e.styleModifications.length&&p.length===e.domModifications.length)return e;let u=e.selectedAnnotationIds.filter(e=>!d.has(e));return{...e,annotations:l,styleModifications:c,domModifications:p,selectedAnnotationIds:u,lastSelectedId:u.length>0?u[u.length-1]:null}}(e,t.payload);case"SET_ANNOTATION_STATUS":return function(e,t){let n=new Set(t.ids);return{...e,annotations:e.annotations.map(e=>!n.has(e.id)||t.from&&(e.status??"pending")!==t.from?e:{...e,status:t.status})}}(e,t.payload);case"MARK_ANNOTATIONS_REPLIED":return function(e,t){let n=new Set(t.ids),o=new Set;for(let t of e.annotations)n.has(t.id)&&t.groupId&&o.add(t.groupId);return{...e,annotations:e.annotations.map(e=>{if(!(n.has(e.id)||e.groupId&&o.has(e.groupId)))return e;let i=!!t.jobId&&e.replyJobIds?.includes(t.jobId),a="waiting_input"===e.status;return{...e,status:a?"waiting_input":"resolved",replyCount:(e.replyCount??0)+(i?0:1),replyJobIds:t.jobId&&!i?[...e.replyJobIds??[],t.jobId]:e.replyJobIds,threadId:e.threadId||t.threadId,question:a?e.question:void 0}})}}(e,t.payload);case"MARK_ANNOTATIONS_FAILED":return function(e,t){let n=new Set(t.ids),o=new Set;for(let t of e.annotations)n.has(t.id)&&t.groupId&&o.add(t.groupId);return{...e,annotations:e.annotations.map(e=>n.has(e.id)||e.groupId&&o.has(e.groupId)?{...e,status:"failed",threadId:e.threadId||t.threadId,question:void 0}:e)}}(e,t.payload);case"SET_ANNOTATION_THREAD":return function(e,t){let n=new Set(t.ids),o=new Set;for(let t of e.annotations)n.has(t.id)&&t.groupId&&o.add(t.groupId);return{...e,annotations:e.annotations.map(e=>n.has(e.id)||e.groupId&&o.has(e.groupId)?{...e,threadId:t.threadId,targetBindingId:t.targetBindingId}:e)}}(e,t.payload);case"SET_ANNOTATION_QUESTION":return function(e,t){let n=new Set(t.ids),o=new Set;for(let t of e.annotations)n.has(t.id)&&t.groupId&&o.add(t.groupId);return{...e,annotations:e.annotations.map(e=>n.has(e.id)||e.groupId&&o.has(e.groupId)?{...e,status:"waiting_input",question:t.question,threadId:t.threadId}:e)}}(e,t.payload);case"APPLY_RESOLUTIONS":return function(e,t){let n=new Map(t.resolutions.map(e=>[e.annotationId,e])),o=new Map;for(let t of e.annotations){let e=n.get(t.id);e&&t.groupId&&o.set(t.groupId,e)}return{...e,annotations:e.annotations.map(e=>{let i=n.get(e.id)||(e.groupId?o.get(e.groupId):void 0);if(!i)return e;let a=!!t.jobId&&e.replyJobIds?.includes(t.jobId);return{...e,status:i.status,resolutionSummary:i.summary,scope:i.finalScope??i.inferredScope??null,replyCount:(e.replyCount??0)+(a?0:1),replyJobIds:t.jobId&&!a?[...e.replyJobIds??[],t.jobId]:e.replyJobIds,question:void 0,threadId:e.threadId||t.threadId}})}}(e,t.payload);case"ADD_SPACING_TOKEN_CHANGE":return function(e,t){let n=e.spacingTokenChanges.findIndex(e=>e.tokenPath===t.tokenPath);return n>=0?{...e,spacingTokenChanges:e.spacingTokenChanges.map((e,o)=>o===n?t:e)}:{...e,spacingTokenChanges:[...e.spacingTokenChanges,t]}}(e,t.payload);case"RESTORE_SPACING_TOKEN_CHANGES":return function(e,t){return{...e,spacingTokenChanges:t}}(e,t.payload);case"MODIFY_SPACING_TOKEN":return function(e,t){let n,o=se(e),i=e.spacingTokenMods.findIndex(e=>e.tokenPath===t.tokenPath);if(i>=0){let o=e.spacingTokenMods[i],a={...t,originalValue:o.captured?o.currentValue:o.originalValue,originalPx:o.captured?o.currentPx:o.originalPx,captured:!1};n=e.spacingTokenMods.map((e,t)=>t===i?a:e)}else n=[...e.spacingTokenMods,{...t,captured:!1}];return{...o,spacingTokenMods:n}}(e,t.payload);case"DELETE_SPACING_TOKEN":return function(e,t){let n,o=se(e),i=e.spacingTokenMods.findIndex(e=>e.tokenPath===t.tokenPath),a=i>=0?e.spacingTokenMods[i]:null,r=i>=0?a.captured?a.currentValue:a.originalValue:t.originalValue,d=i>=0?a.captured?a.currentPx:a.originalPx:parseFloat(t.originalValue)||0,s={tokenPath:t.tokenPath,originalValue:r,currentValue:"__deleted__",targets:a?.targets??[],originalPx:d,currentPx:0,captured:!1};return n=i>=0?e.spacingTokenMods.map((e,t)=>t===i?s:e):[...e.spacingTokenMods,s],{...o,spacingTokenMods:n}}(e,t.payload);default:return t}}function me(e,t){let n=W(ne),[o,i]=X(he,C),a=q(n?.subscribe??oe,n?.getSnapshot??ie,n?.getSnapshot??ie)??o,r=n?.dispatch??i;Y(()=>{if(!a.isAnnotating)return;let n=n=>{t?.current||n.defaultPrevented||n.isComposing||n.altKey||n.composedPath().some(e=>e instanceof Element&&(e.matches('input, textarea, select, [role="textbox"]')||e instanceof HTMLElement&&e.isContentEditable||e.hasAttribute("contenteditable")&&"false"!==e.getAttribute("contenteditable")))||(n.metaKey||n.ctrlKey)&&n.key.toLowerCase()===A.actions.undo.key&&(n.preventDefault(),n.shiftKey?r({type:"REDO"}):e?.current?.()||r({type:"UNDO"}))};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[r,a.isAnnotating,e,t]);let d=n?.getUndoHead?n.getUndoHead():a.undoStack.at(-1);return[a,r,d]}function ge(){return{isDragging:!1,hasMoved:!1,mode:"move",startX:0,startY:0,element:null,originalParent:null,originalIndex:-1,selector:null,durableSelector:null,elementInfo:null}}function ye(e){if(!e||e===document.body||e===document.documentElement||l(e))return!1;let t=e.tagName.toLowerCase();return!["script","style","link","meta","head","html","body","input","textarea","select","option","button"].includes(t)&&!!e.parentElement}function ve(e){let t=e.getAttribute("data-pm");return t||(t=Math.random().toString(36).substring(2,8),e.setAttribute("data-pm",t)),`[data-pm="${t}"]`}function Se(e){return e.parentElement?Array.from(e.parentElement.children).indexOf(e):-1}function Ie(e){e.removeAttribute("data-pm"),e.querySelectorAll("[data-pm]").forEach(e=>e.removeAttribute("data-pm"))}function xe(e,t,n,o,i=x){let a=n.parentElement;if(!a)return null;let r=i(e,t);for(;r&&r!==document.body;)if(r===n||n.contains(r))r=r.parentElement;else{if(r.parentElement===a&&ye(r))break;r=r.parentElement}if(!r||r===document.body||r.parentElement!==a||r===o)return null;let d=r.getBoundingClientRect(),s=d.height>=d.width?t<d.top+d.height/2?"before":"after":e<d.left+d.width/2?"before":"after",l=Se(r);return{parent:a,reference:r,placement:s,index:"before"===s?l:l+1}}function Me(e,t,n){let o=Array.from(e.children).filter(e=>e!==t),i=Math.max(0,Math.min(n,o.length));e.insertBefore(t,o[i]??null)}function we({drag:e,clientX:t,clientY:n,pathname:o,createId:i,rootElement:a,elementAtPoint:r}){let d=e.element;if(!(d&&e.selector&&e.durableSelector&&e.elementInfo))return null;let s=xe(t,n,d,a,r);if(!s)return null;let l=e.originalParent===s.parent&&s.index>e.originalIndex?s.index-1:s.index;if("move"===e.mode&&e.originalParent===s.parent&&(l===e.originalIndex||l===e.originalIndex+1))return null;let c=M(s.parent),p=ve(s.parent),u=M(s.reference),f=ve(s.reference),h=e.selector,m=e.durableSelector,g=e.elementInfo;if("copy"===e.mode){let e=d.cloneNode(!0);if(!(e instanceof Element))return null;Ie(e),Me(s.parent,e,l),h=ve(e),m=M(e),g={...w(e),selector:h}}else Me(s.parent,d,l);let y=e.originalParent;return{id:i(),operation:e.mode,selector:h,durableSelector:m,element:g,sourceSelector:"copy"===e.mode?e.selector:void 0,sourceDurableSelector:"copy"===e.mode?e.durableSelector:void 0,sourceElement:"copy"===e.mode?e.elementInfo:void 0,originalParentSelector:y?ve(y):void 0,originalParentDurableSelector:y?M(y):void 0,originalIndex:e.originalIndex,targetParentSelector:p,targetParentDurableSelector:c,targetIndex:l,referenceSelector:f,referenceDurableSelector:u,placement:s.placement,pathname:o}}function be(e){return e instanceof HTMLElement&&("INPUT"===e.tagName||"TEXTAREA"===e.tagName||!0===e.isContentEditable||"true"===e.getAttribute("contenteditable"))}function Te(e){return be(e.composedPath?.()[0]??e.target)||be(function(){if(typeof document>"u")return null;let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}())}function ke(e,t,n){if(n)return[n];let o=new Set(t),i=new Map;for(let t of e)t.groupId&&t.threadId&&i.set(t.groupId,t.threadId);let a=new Set;for(let t of e){if(!o.has(t.id))continue;let e=t.threadId||(t.groupId?i.get(t.groupId):void 0);e&&a.add(e)}return[...a]}function Ae({state:e,stateRef:t,activeTextRef:n,selectedIdsRef:o,dispatch:i,clearSelection:a,selectAnnotation:r,handHoveredElement:d,onArchiveThread:s,openThreadId:l,currentPathname:c,hasOpenThread:p}){let u=U([]),f=U(0),h=U(null);Y(()=>{let m=m=>{if("Escape"===m.key){if(m.defaultPrevented||m.repeat||n.current||p||Te(m))return;if(o.current.length>0)return m.preventDefault(),void a();let e=t.current;if(e.annotations.some(e=>"pending"===(e.status??"pending"))||e.styleModifications.some(e=>!e.captured)||e.textModifications.some(e=>!e.captured)||e.domModifications.some(e=>!e.captured)||e.spacingTokenChanges.some(e=>!e.captured)||e.spacingTokenMods.some(e=>!e.captured))return m.preventDefault(),void i({type:"DISCARD_DRAFT"})}if((m.metaKey||m.ctrlKey)&&"c"===m.key.toLowerCase()&&"hand"===e.activeTool&&d&&!n.current){if(ye(d)){m.preventDefault();let e=ve(d);h.current={source:d,sourceSelector:e,sourceDurableSelector:M(d),sourceElement:{...w(d),selector:e}}}return}if((m.metaKey||m.ctrlKey)&&"v"===m.key.toLowerCase()&&"hand"===e.activeTool&&h.current&&!n.current){let e=h.current,t=d&&ye(d)?d:e.source,n=t.parentElement;if(n){m.preventDefault();let o=M(n),a=ve(n),r=M(t),d=ve(t),s=Se(t)+1,l=e.source.cloneNode(!0);if(l instanceof Element){Ie(l),Me(n,l,s);let t=ve(l),p=M(l),u={...w(l),selector:t};i({type:"MODIFY_DOM_STRUCTURE",payload:{id:ae(),operation:"copy",selector:t,durableSelector:p,element:u,sourceSelector:e.sourceSelector,sourceDurableSelector:e.sourceDurableSelector,sourceElement:e.sourceElement,targetParentSelector:a,targetParentDurableSelector:o,targetIndex:s,referenceSelector:d,referenceDurableSelector:r,placement:"after",pathname:c}})}}return}if((m.metaKey||m.ctrlKey)&&"v"===m.key&&u.current.length>0&&!n.current){m.preventDefault(),f.current+=1;let e=20*f.current,t=u.current[0]?.groupId?Math.random().toString(36).substring(2,9):void 0,n=u.current.map(n=>({...n,id:Math.random().toString(36).substring(2,9),groupId:n.groupId?t:void 0,timestamp:Date.now(),points:n.points.map(t=>({x:t.x+e,y:t.y+e}))}));i({type:"PASTE_ANNOTATIONS",payload:{annotations:n}});let o=n.find(e=>"text"!==e.type)??n[0];return void(o&&r(o.id))}let g=o.current;if(!(n.current||Te(m)||"Delete"!==m.key&&"Backspace"!==m.key||m.metaKey||m.ctrlKey||m.altKey)){if(0===g.length&&!l)return;let e=ke(t.current.annotations,g,l);if(!s||0===e.length)return;m.preventDefault();for(let t of e)s(t);a()}};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[n,a,c,i,d,p,s,l,r,o,e.activeTool,t])}function Ee(e,t,n){let o=e.filter(e=>!(e.captured||e.selector!==t||e.pathname&&e.pathname!==n));return o.length?{type:"MODIFY_TEXT_CONTENTS",payload:o.map(e=>({...e,modified:e.original}))}:null}function Ce(e,t){return"text"===e.type&&(e.groupId?t.filter(t=>t.groupId===e.groupId):[e]).every(e=>"pending"===(e.status??"pending")&&!e.threadId)}var Ne=B(0),Oe=28;function Pe({threadId:t,color:n,size:o}){let i=W(e);if(!t||i?.preview?.threadId!==t)return null;let a=i.preview.enabled;return Z("button",{type:"button","data-devtools":"explore-preview-badge","aria-label":"Preview option on page","aria-pressed":a,title:a?"Turn off page preview":"Preview option on page",onPointerDown:e=>{e.preventDefault(),e.stopPropagation()},onKeyDown:e=>e.stopPropagation(),onClick:e=>{e.preventDefault(),e.stopPropagation(),i.setPreview(e=>e&&e.threadId===t?{...e,enabled:!e.enabled,revealOnPage:!1}:e)},style:{...m(o),appearance:"none",width:28,minWidth:28,padding:0,margin:0,border:0,display:"grid",placeItems:"center",cursor:"pointer",backgroundColor:n,color:"#fff",borderRadius:8,opacity:a?1:.5},children:Z(P,{size:12,strokeWidth:2.25})})}var De=160;function _e(e,t,n){let o=e.points[0];if(typeof window>"u"||"text"!==e.type||!o)return!0;let i=e.region?.points,a=i?.length?H(i):{...o,width:0,height:0};return a.x+a.width>=t&&a.y+a.height>=n&&a.x<t+window.innerWidth&&a.y<n+window.innerHeight}function Re(e,t,n,o=.5){let i=Math.max(0,e-2*o),a=Math.max(0,t-2*o),r=function(e,t,n){let o=Math.max(0,n.topLeft),i=Math.max(0,n.topRight),a=Math.max(0,n.bottomRight),r=Math.max(0,n.bottomLeft),d=Math.min(1,e/Math.max(1,o+i),e/Math.max(1,r+a),t/Math.max(1,o+r),t/Math.max(1,i+a));return{topLeft:o*d,topRight:i*d,bottomRight:a*d,bottomLeft:r*d}}(e,t,n),d=Math.max(0,r.topLeft-o),s=Math.max(0,r.topRight-o),l=Math.max(0,r.bottomRight-o),c=Math.max(0,r.bottomLeft-o),p=o+i,u=o+a;return[`M ${o+d} ${o}`,"H "+(p-s),`A ${s} ${s} 0 0 1 ${p} ${o+s}`,"V "+(u-l),`A ${l} ${l} 0 0 1 ${p-l} ${u}`,`H ${o+c}`,`A ${c} ${c} 0 0 1 ${o} ${u-c}`,`V ${o+d}`,`A ${d} ${d} 0 0 1 ${o+d} ${o}`,"Z"].join(" ")}var Le=12,$e=8;function je(e){return e>0?16+7.2*String(e).length+16:0}function ze({stepCount:e,onClear:o,layered:i=!1,submitted:a=!1,style:r}){let[d]=N(),s=O[d];return e<1?null:J("span",{"data-devtools":"interaction-episode-badge","data-popmelt-submitted":a?"true":void 0,"aria-label":`${e} recorded ${1===e?"action":"actions"}${a?", sent":""}`,onContextMenu:e=>{e.preventDefault(),e.stopPropagation(),o?.()},style:{height:22,display:"inline-flex",alignItems:"center",boxSizing:"border-box",backgroundColor:a?"#8c8c8c":s.surface,border:`1px solid ${a?"#8c8c8c":s.border}`,borderRadius:8,color:a?"#dddddd":s.primary,fontFamily:g,fontSize:12,fontWeight:600,padding:i?`0 8px 0 ${.7*n}px`:"0 8px 0 5.6px",gap:4,pointerEvents:o?"auto":"none",WebkitMaskImage:i?t:void 0,maskImage:i?t:void 0,...r},children:[J("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Z("path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"}),Z("path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"})]}),Z("span",{children:e})]})}function He(e,t,n){return function(e,t,n){if(void 0===n.avoidLeft&&void 0===n.avoidRight)return!0;let o=typeof window<"u"?window.innerWidth:9999,i=n.avoidLeft??0,a=n.avoidRight??o;return e+t>i&&e<a}(t,n,e)?e:{}}function Be(e,t,n){return`translate(min(0px, calc(100vw - ${e} - 100%)), min(max(0px, calc(${void 0!==n.avoidTop?`${n.avoidTop}px`:"0px"} - ${t})), calc(${void 0!==n.avoidBottom?`${n.avoidBottom}px`:"100dvh"} - ${t} - 100%)))`}function Fe(e,t,n){if(void 0===n.avoidTop&&void 0===n.avoidBottom)return e;let o=typeof window<"u"?window.innerHeight:9999,i=n.avoidTop??0,a=n.avoidBottom??o,r=Math.max(i,a-t);return Math.max(i,Math.min(e,r))}function We({left:e,top:t,scrollX:n,scrollY:o,avoidTop:i,avoidBottom:a,style:r,children:d,...s}){return Z("div",{"data-devtools":"badge-hit-area",...s,style:{position:"fixed",left:0,top:0,padding:Le,...r,transform:`translate3d(${`calc(${e}px - var(--popmelt-scroll-x, ${n}px))`}, ${`calc(${t}px - var(--popmelt-scroll-y, ${o}px))`}, 0)`,willChange:"transform"},children:Z("div",{style:{transform:Be(`calc(${e+Le}px - var(--popmelt-scroll-x, ${n}px))`,`calc(${t+Le}px - var(--popmelt-scroll-y, ${o}px))`,{avoidTop:i,avoidBottom:a})},children:d})})}function Ke({bundleCount:e,style:o,layered:i=!1,compact:a=!1,description:r,replacementText:d,actionLabel:s,actionIcon:l,shortcut:c,onHoverChange:p,onSend:u}){let[f,h]=K(!1),[y]=N(),v=O[y],S=W(Ne),x=V(),M=typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform)?"⌘":"Ctrl",w=Math.max(1,e),b=a&&!f,T=e=>b?Z(j,{size:12,strokeWidth:2,"aria-hidden":!0}):J(G,e?{children:[Z("span",{style:{color:"inherit",fontWeight:600},children:w>1?`Send all ${w}`:"Send"}),Z(j,{size:12,strokeWidth:2,"aria-hidden":!0})]}:{children:[J("span",{style:{display:"inline-flex",alignItems:"center",gap:2,color:"inherit",fontWeight:600},children:[Z("span",{children:M}),Z("span",{children:"+"}),Z(z,{size:12,strokeWidth:2,"aria-hidden":!0})]}),Z("span",{style:{color:v.secondary,fontWeight:600},children:"to"}),Z(j,{size:12,strokeWidth:2,"aria-hidden":!0}),w>1&&Z("span",{style:{color:"inherit",fontWeight:600},children:w})]}),k=e=>J(G,s?{children:[c&&J("span",{className:"popmelt-action-shortcut","aria-hidden":!0,style:{alignItems:"center",gap:4,fontWeight:500},children:[Z("span",{style:{display:"inline-flex",alignItems:"center",gap:2},children:c}),Z("span",{style:{color:v.secondary},children:"to"})]}),l,Z("span",{style:{fontWeight:500},children:s})]}:{children:[Z("span",{className:"popmelt-send-hint-desktop",style:{alignItems:"center",gap:4},children:T(e)}),J("span",{className:"popmelt-send-hint-mobile",style:{alignItems:"center",gap:4},children:[!b&&Z("span",{style:{color:"inherit",fontWeight:600},children:"Send"}),Z(j,{size:12,strokeWidth:2,"aria-hidden":!0})]})]}),A=d?Z("span",{role:"tooltip","data-devtools":"parent-pinned-location-tooltip",style:{overflow:"hidden",textOverflow:"ellipsis"},children:d}):null,C={...m(),lineHeight:12*I+"px",display:"flex",alignItems:"center",boxSizing:"border-box",backgroundColor:v.surface,border:`1px solid ${v.border}`,fontFamily:g,fontSize:12,color:s&&!u?v.secondary:v.primary,userSelect:"none",padding:i?`0 8px 0 ${n}px`:"0 8px",gap:4,whiteSpace:"nowrap",borderRadius:8,letterSpacing:"0.24px",WebkitMaskImage:i?t:void 0,maskImage:i?t:void 0},P=w>1?`Send all ${w} pending annotations`:"Send pending annotation";return J("div",{"data-devtools":"send-hint-hit-area","data-popmelt-send-rejection":S?S%2?"odd":"even":void 0,onMouseEnter:()=>{h(!0),p?.(!0)},onMouseLeave:()=>{h(!1),p?.(!1)},style:{display:"grid",width:"max-content",...o},children:[Z("style",{children:`\n@keyframes popmelt-send-rejection-odd { ${E} }\n@keyframes popmelt-send-rejection-even { ${E} }\n[data-popmelt-send-rejection="odd"] { animation: popmelt-send-rejection-odd 220ms ease-out; }\n[data-popmelt-send-rejection="even"] { animation: popmelt-send-rejection-even 220ms ease-out; }\n@media (prefers-reduced-motion: reduce) {\n [data-popmelt-send-rejection] { animation: none; }\n}\n.popmelt-send-hint-desktop { display: inline-flex; }\n.popmelt-action-shortcut { display: inline-flex; }\n@media (hover: none) and (pointer: coarse) {\n .popmelt-action-shortcut { display: none; }\n}\n.popmelt-send-hint-mobile { display: none; }\n@media (max-width: 767px) {\n .popmelt-send-hint-desktop { display: none; }\n .popmelt-send-hint-mobile { display: inline-flex; }\n}\n `}),Z("div",{"aria-hidden":!0,style:{...C,gridArea:"1 / 1",visibility:"hidden"},children:k(!1)}),J("button",{type:"button","data-devtools":"annotation-badge","aria-label":s??P,"aria-describedby":r?x:void 0,disabled:!u,onPointerDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>{e.preventDefault(),e.stopPropagation(),u?.()},style:{...C,gridArea:"1 / 1",justifySelf:"start",maxWidth:d?"min(320px, calc(100vw - 16px))":void 0,overflow:d?"hidden":void 0,appearance:"none",margin:0,opacity:1,cursor:u?"pointer":"default",touchAction:"manipulation"},children:[r&&Z("span",{id:x,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},children:r}),A??k(f)]})]})}function Ye({count:e,color:t,size:n=22,onHoverChange:o}){return J("div",{"data-devtools":"nested-annotation-count-badge",onMouseEnter:()=>o?.(!0),onMouseLeave:()=>o?.(!1),style:{height:n,display:"flex",alignItems:"center",backgroundColor:t,color:"#8c8c8c"===t?"#dddddd":"#ffffff",fontFamily:g,fontSize:12,fontWeight:600,lineHeight:1,padding:"0 8px",borderRadius:8,userSelect:"none",whiteSpace:"nowrap"},children:["+",e]})}function Ue({scrollX:e,scrollY:t,projected:n,children:i}){let a=W(o),r=U(null);return Q(()=>{let e=r.current;if(!a||n||!e)return;let t=()=>{e.style.setProperty("--popmelt-scroll-x",`${window.scrollX}px`),e.style.setProperty("--popmelt-scroll-y",`${window.scrollY}px`)};return t(),window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t),e.style.removeProperty("--popmelt-scroll-x"),e.style.removeProperty("--popmelt-scroll-y")}},[n,a]),Z("div",{ref:r,part:n?void 0:s,"data-devtools":"annotation-badge-layer",style:{"--popmelt-painted-x":`var(--popmelt-scroll-x, ${e}px)`,"--popmelt-painted-y":`var(--popmelt-scroll-y, ${t}px)`,position:"fixed",inset:0,pointerEvents:"none",zIndex:9999},children:i})}function Qe({annotations:t,supersededAnnotations:n,inFlightIds:i,orientationLabels:a,activeIds:r,queuePositions:d,scrollX:s,scrollY:l,annotationGroupMap:c,onViewThread:p,onSelectAnnotation:u,onDeleteDraftAnnotation:f,onClearInteractionEpisode:h,onHoverAnnotation:x,canvasRef:M,toolbarRef:w,activeBundleAnnotationIds:b,inactiveBundleOpacity:T=.5,animateBundleOpacity:k=!0,hoverRestoredAnnotationIds:A,nestedAnnotationCountById:E,nestedAnnotationIdsById:C,onHoverNestedAnnotations:N,onHoverSendBundle:O,onSend:P,sendHintAnchorId:j,pendingBundleCount:z=1,parentPinnedAnnotationIds:H,parentPinnedLocationLabels:B,parentPinnedTooltipAnnotationId:F,onActivateAnnotation:U,hiddenAnnotationIds:Q,displayAnnotations:X,projected:q=!1}){let V=W(e),ee=W(o),[te,ne]=K(0),oe=!!(i&&i.size>0&&(void 0===r||r.size>0));Y(()=>{if(!oe||!ee)return;let e=setInterval(()=>{ne(e=>(e+1)%3)},250);return()=>{clearInterval(e)}},[oe,ee]);let ie=[],ae=typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform)?"⌘":"Ctrl";for(let e of t){if("text"!==e.type||!e.text||!e.points[0]||n.has(e)||Q?.has(e.id))continue;let o=e.groupId?t.filter(t=>t.groupId===e.groupId):[e],d=e.status??"pending",p=z>0&&e.id===j,u=e.interactionEpisode?.steps.length??0,f=E?.get(e.id)??0,h=C?.get(e.id)??[],m=o.reduce((e,t)=>Math.max(e,t.replyCount??0),0),x="sending"===d||o.some(e=>"sending"===e.status),w="awaiting_review"===d,T=!x&&(!(!i||!i.has(e.id)&&!o.some(e=>i.has(e.id)))||"in_flight"===e.status||o.some(e=>"in_flight"===e.status)),k=o.some(e=>"resolved"===e.status&&(e.replyCount??0)>0||"needs_review"===e.status),N=o.some(e=>e.threadId),O=!b||o.some(e=>b.has(e.id)||A?.has(e.id));if(!(p||x||w||T||"resolved"===d||"failed"===d||"needs_review"===d||k||N||u>0)&&0===f)continue;let P=e.threadId||o.find(e=>e.threadId)?.threadId,D="needs_review"===d||o.some(e=>"needs_review"===e.status),_="waiting_input"===d||o.some(e=>"waiting_input"===e.status),R="failed"===d||o.some(e=>"failed"===e.status),L=p||x||w||T||D||_||R||m>0||"resolved"===d&&N||u>0;if(!L&&0===f)continue;let $=e.points[0],B=e.fontSize||12,F=B*I,W=c.get(e.id),K=((X?.find(t=>t.id===e.id)??e).text??e.text).replace(/\n/g," "),Y=void 0!==W?W+". "+K:K,U=M?.current?.getContext("2d")??document.createElement("canvas").getContext("2d");if(!U)continue;U.font=`${B}px ${g}`;let q=$.x-s,V=H?.has(e.id)?y:0,J=Math.max(60,v(q)-V),G=S(U,Y,J),Z=U.measureText(G).width,ee=T&&!!r&&!r.has(e.id)&&!o.some(e=>r.has(e.id));ie.push({id:e.id,threadId:P,visible:_e(e,s,l),x:$.x+Z+V+8+2,y:$.y-4,size:F+8,color:p?"#000000":e.color,isSending:x,isAwaitingReview:w,isInFlight:T,orientationLabel:a?.get(e.id)??o.map(e=>a?.get(e.id)).find(Boolean),isQueued:ee,queuePosition:void 0,isNeedsReview:D,isQuestion:_,isFailed:R,replyCount:m>0?m:"resolved"===d&&N?1:0,isInActiveBundle:O,isSendHint:p,interactionEpisodeStepCount:u,interactionEpisodeSubmitted:"pending"!==d,nestedCount:f,nestedAnnotationIds:h,nestedColor:"pending"===d?e.color:"#8c8c8c",showActionBadge:L,canDeleteDraft:Ce(e,t)})}let re=ie.filter(e=>e.isQueued);if(re.length>0&&re.forEach((e,t)=>{e.queuePosition=d?.get(e.id)??`(${t+1}/${re.length})`}),0===ie.length)return null;let de=M?.current?.getContext("2d")??document.createElement("canvas").getContext("2d"),se=ie.map(e=>{de&&(de.font=`12px ${g}`);let t=e.nestedCount>0?(de?.measureText(`+${e.nestedCount}`).width??7.2*String(e.nestedCount).length+7.2)+16:0,n=je(e.interactionEpisodeStepCount),o=e.threadId&&V?.preview?.threadId===e.threadId?30:0;if(!e.showActionBadge)return t+n+o;let i,a=F===e.id?B?.get(e.id):void 0;i=a||(e.isSendHint?ae:e.isSending?"Sending":e.isAwaitingReview?"Awaiting review":e.isInFlight?e.isQueued?"Queued"+(e.queuePosition?` ${e.queuePosition}`:""):e.orientationLabel??"Thinking":e.isQuestion?"Question":e.isFailed?"Failed":e.replyCount>0?"Replied":"Needs decision");let r=e.isSendHint||a?0:12,d=7.2*i.length;de&&(d=de.measureText(i).width);let s=e.isSendHint&&de?de.measureText("to").width:e.isSendHint?14.4:0,l=e.isSendHint&&de?de.measureText("+").width:e.isSendHint?7.2:0,c=e.isSendHint&&z>1&&de?de.measureText(String(z)).width:e.isSendHint&&z>1?7.2:0;return n+t+(a?Math.min(d+16,320):e.isSendHint?d+l+s+c+16+12+12+4+4*(z>1?3:2):6+r+4+d+8)+2*(+(n>0)+ +(t>0)+1-1)+o}),le=function(e){let t=e?.current?.getBoundingClientRect();return!t||typeof window>"u"?{}:t.top<window.innerHeight/2?{avoidTop:t.bottom+8,avoidLeft:t.left-8,avoidRight:t.right+8}:{avoidBottom:t.top-8,avoidLeft:t.left-8,avoidRight:t.right+8}}(w),ce=[];for(let e=0;e<ie.length;e++){let t=ie[e].y-l,n=ie[e].x-s,o=He(le,n,se[e]),i=Fe(t,ie[e].size,o),a=i+ie[e].size,r=n;for(let t=0;t<e;t++){if(!ie[t].visible||!ie[e].visible)continue;let n=ie[t].y-l,o=He(le,ce[t],se[t]),d=Fe(n,ie[t].size,o);if(!(i<d+ie[t].size&&a>d))continue;let s=ce[t]+se[t];r<s+2&&(r=s+2)}ce.push(r)}return J(Ue,{scrollX:s,scrollY:l,projected:q,children:[Z("style",{dangerouslySetInnerHTML:{__html:'\n@media (prefers-reduced-motion: no-preference) {\n [data-devtools="annotation-badge-layer"] [data-devtools="badge-hit-area"] {\n transition: opacity 160ms ease-out;\n }\n}\n[data-devtools="annotation-badge-layer"] [data-devtools="annotation-badge"]::selection,\n[data-devtools="annotation-badge-layer"] [data-devtools="annotation-badge"] *::selection {\n background: #000000;\n color: #ffffff;\n}\n'}}),ie.map((e,t)=>{let n=!!e.threadId,o=B?.get(e.id),i=!!o&&F===e.id,a=n||!!o,r=!!e.threadId&&V?.preview?.threadId===e.threadId,d=e.showActionBadge&&e.isSendHint||r,c=a&&!d,y=()=>{U?U(e.id,e.threadId):(u?.(e.id),e.threadId&&p?.(e.threadId))},v=He(le,ce[t],se[t]);return Z(We,{inert:!e.visible||void 0,"aria-hidden":!e.visible||void 0,left:ce[t]+s-Le,top:e.y-Le,scrollX:s,scrollY:l,avoidTop:v.avoidTop,avoidBottom:v.avoidBottom,onMouseDown:e=>e.stopPropagation(),onContextMenu:t=>{t.preventDefault(),t.stopPropagation(),e.canDeleteDraft&&f&&f(e.id)},onClick:a?e=>{e.stopPropagation(),y()}:void 0,onMouseEnter:()=>{x?.(e.id)},onMouseLeave:()=>{x?.(null)},onFocus:()=>x?.(e.id),onBlur:()=>x?.(null),onKeyDown:c?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),y())}:void 0,role:c?"button":void 0,tabIndex:c?0:void 0,"aria-label":c&&o?`${o}. Activate to reveal the annotation source${n?" and open its thread":""}`:void 0,style:{position:"absolute",opacity:e.visible?1:0,pointerEvents:e.visible?"auto":"none",cursor:a?"pointer":void 0,zIndex:9999,minWidth:e.isSendHint?se[t]:void 0},children:J("div",{style:{position:"relative",display:"flex",alignItems:"center",gap:2},children:[Z(ze,{stepCount:e.interactionEpisodeStepCount,submitted:e.interactionEpisodeSubmitted,onClear:e.canDeleteDraft&&h?()=>h(e.id):void 0}),e.nestedCount>0&&Z(Ye,{count:e.nestedCount,color:e.nestedColor,size:e.size,onHoverChange:t=>N?.(e.id,t?e.nestedAnnotationIds:null)}),Z(Pe,{threadId:e.threadId,color:e.color,size:e.size}),e.showActionBadge&&(e.isSendHint?Z(Ke,{bundleCount:z,description:o?`${o}. Activate the annotation label to reveal its source.`:void 0,replacementText:i?o:void 0,onHoverChange:O,onSend:P}):Z("div",{"data-devtools":"annotation-badge",style:{...m(e.size),display:"flex",alignItems:"center",backgroundColor:e.color,fontFamily:g,fontSize:12,color:"#ffffff",userSelect:"none",padding:"0 8px 0 6px",gap:4,whiteSpace:"nowrap",maxWidth:i?"min(320px, calc(100vw - 16px))":void 0,overflow:i?"hidden":void 0,borderRadius:8,opacity:e.isInActiveBundle?1:T,transition:k?"opacity 120ms ease-out":"none"},children:i?Z("span",{role:"tooltip","data-devtools":"parent-pinned-location-tooltip",style:{overflow:"hidden",textOverflow:"ellipsis"},children:o}):e.isAwaitingReview?J(G,{children:[Z(D,{size:12,strokeWidth:2.25}),"Awaiting review"]}):e.isQueued?J("span",{style:{opacity:.6,color:"inherit",display:"inline-flex",alignItems:"center",gap:4},children:[Z(D,{size:12,strokeWidth:2.25}),"Queued",e.queuePosition?` ${e.queuePosition}`:""]}):e.isSending||e.isInFlight?J(G,{children:["Approval needed"===e.orientationLabel?Z(_,{size:12,"aria-label":"Approval needed"}):Z("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",style:{verticalAlign:"middle",opacity:.6},children:J(G,1===te?{children:[Z("circle",{cx:"7",cy:"7",r:"2"}),Z("circle",{cx:"17",cy:"7",r:"2"}),Z("circle",{cx:"7",cy:"17",r:"2"}),Z("circle",{cx:"17",cy:"17",r:"2"})]}:{children:[Z("circle",{cx:"12",cy:"6",r:"2"}),Z("circle",{cx:"6",cy:"12",r:"2"}),Z("circle",{cx:"18",cy:"12",r:"2"}),Z("circle",{cx:"12",cy:"18",r:"2"})]})}),Z("span",{style:{opacity:.6,color:"inherit"},children:e.isSending?"Sending":e.isQueued?"Queued"+(e.queuePosition?` ${e.queuePosition}`:""):e.orientationLabel??"Thinking"})]}):J(G,{children:[e.isQuestion?Z(R,{size:12,strokeWidth:2.25}):e.isFailed?Z(L,{size:12,strokeWidth:2.25}):e.replyCount>0?Z($,{size:12,strokeWidth:2.25}):J("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Z("path",{d:"M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9"}),Z("path",{d:"M10 21h4"})]}),Z("span",{style:{color:"inherit"},children:e.isQuestion?"Question":e.isFailed?"Failed":e.replyCount>0?"Replied":"Needs decision"})]})}))]})},e.id)})]})}function Xe({d:e,color:t,animated:n}){let o=U(null);return Q(()=>{let e=o.current;if(!e||"function"!=typeof e.getTotalLength)return;let t=function(e){if(Number.isFinite(e)&&!(e<=0))return Math.max(1,Math.round(e/f))*f}(e.getTotalLength());void 0===t?e.removeAttribute("pathLength"):e.setAttribute("pathLength",String(t))},[e]),Z("path",{ref:o,d:e,fill:"none",stroke:t,strokeWidth:1,strokeDasharray:n?h:void 0,"data-popmelt-marching-stroke":n||void 0,style:n?{animation:"popmelt-march 0.6s linear infinite"}:void 0})}function qe(){return Z("style",{children:`\n @keyframes popmelt-march {\n from { stroke-dashoffset: 0; }\n to { stroke-dashoffset: -${f}; }\n }\n @media (prefers-reduced-motion: reduce) {\n [data-popmelt-marching-stroke="true"] { animation: none !important; }\n }\n `})}function Ve({annotations:e,activeIds:t,scrollX:n,scrollY:i,spotlightIds:a,emphasizedIds:r,hoverRestoredIds:d,inactiveOpacity:s=.5}){if(!W(o))return null;let l=e.filter(e=>e.region&&e.region.points.length>=3&&t?.has(e.id));return l.length?J(G,{children:[Z(qe,{}),Z("svg",{"data-devtools":"marching-lasso","aria-hidden":!0,style:{position:"fixed",inset:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:9995,overflow:"visible"},children:Z("g",{transform:`translate(${-n} ${-i})`,children:l.map(e=>{let t=a?.size?a.has(e.id)?1:.2:!r||r.has(e.id)||d?.has(e.id)?1:s;return Z("g",{"data-popmelt-region-id":e.id,opacity:t,children:Z(Xe,{d:`${e.region.points.map((e,t)=>`${t?"L":"M"}${e.x} ${e.y}`).join(" ")} Z`,color:e.color,animated:!0})},e.id)})})})]}):null}var Je=F(function({inFlightSelectorColors:e,animated:t=!0,subjectRegistry:n,selectorElementInfo:s}){let l=W(o),[f,h]=K([]);return Y(()=>{if(!l)return;if(0===e.size)return void h([]);let o=null,a=new Map,r=new Map,f=typeof ResizeObserver>"u"?void 0:new ResizeObserver(v),m=!0,g=!1,y=()=>{let n=new Set;m=!1,g=!1;let o=[];for(let[i,l]of e){let e=T(i,s?.get(i)),h=a.get(i);if(h?.element===e&&e?.closest("[data-popmelt-hover-painter]"))continue;if(h?.paint.abort(),a.delete(i),!e){g=!0,m=!0;continue}let y=e.hasAttribute("data-popmelt-subject-adapter");y&&(g=!0);let v=u(e,l,0,t?"marching":"solid");if(v){a.set(i,{element:e,paint:v});continue}let S=y?void 0:r.get(e);!S&&!y&&(S=d(e),S&&(r.set(e,S),f?.observe(e,{box:"border-box"}))),S?n.add(e):m=!0;let I=k(e);o.push({selector:i,anchor:S?.name,top:I.top,left:I.left,width:I.width,height:I.height,color:l,radius:p(e),radiusStyle:c(e)})}for(let[e,t]of r)n.has(e)||(f?.unobserve(e),t.release(),r.delete(e));h(e=>e.length||o.length?o:e)};function v(){null===o&&(o=requestAnimationFrame(()=>{o=null,y()}))}let S=()=>{m&&v()};y(),window.addEventListener("scroll",S,{capture:!0,passive:!0}),window.addEventListener("resize",v,!0);let I=new MutationObserver(t=>{a.size===e.size&&t.every(e=>"attributes"===e.type&&"style"===e.attributeName&&e.target instanceof Element&&e.target.closest("[data-popmelt-hover-painter]"))||v()});I.observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["style","class"]});let x=n?.subscribeFrame(()=>{g&&y()}),M=[...e.keys()].some(e=>e.startsWith("@frame("))?i(y):void 0;return()=>{window.removeEventListener("scroll",S,!0),f?.disconnect();for(let e of r.values())e.release();window.removeEventListener("resize",v,!0),I.disconnect();for(let e of a.values())e.paint.abort();x?.(),M?.(),o&&cancelAnimationFrame(o)}},[t,e,n,s,l]),l&&0!==f.length?J(G,{children:[t&&Z(qe,{}),f.map(e=>Z("div",{"data-devtools":"marching-ants",part:e.anchor?a:void 0,style:{position:"fixed",...r(e.anchor,e,e.left,e.top),width:e.width,height:e.height,pointerEvents:"none",zIndex:9995,overflow:"visible",borderTopLeftRadius:e.radiusStyle.topLeft,borderTopRightRadius:e.radiusStyle.topRight,borderBottomRightRadius:e.radiusStyle.bottomRight,borderBottomLeftRadius:e.radiusStyle.bottomLeft},children:Z("svg",{style:{position:"absolute",inset:0,width:"100%",height:"100%",overflow:"visible"},children:Z(Xe,{d:Re(e.width,e.height,{topLeft:e.radius["top-left"],topRight:e.radius["top-right"],bottomRight:e.radius["bottom-right"],bottomLeft:e.radius["bottom-left"]}),color:e.color,animated:t})})},e.selector))]}):null},(e,t)=>{if(e.animated!==t.animated||e.subjectRegistry!==t.subjectRegistry||e.inFlightSelectorColors.size!==t.inFlightSelectorColors.size)return!1;let n=e.inFlightSelectorColors.entries();for(let[o,i]of t.inFlightSelectorColors){let a=n.next().value;if(a?.[0]!==o||a[1]!==i||e.selectorElementInfo?.get(o)!==t.selectorElementInfo?.get(o))return!1}return!0});export{We as A,Ke as B,Ye as C,Qe as D,Ve as E,Je as F,ee as a,te as b,ne as c,ae as d,he as e,me as f,ge as g,ye as h,ve as i,Se as j,xe as k,we as l,Te as m,ke as n,Ae as o,Oe as p,Pe as q,Ee as r,Ce as s,Ne as t,De as u,_e as v,Le as w,$e as x,je as y,ze as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{forwardRef as a}from"react";import{jsxs as h,Fragment as d,jsx as t}from"react/jsx-runtime";function e(d,t){return a(function({size:a=24,width:e=a,height:i=a,color:l="currentColor",className:c,children:r,...p},n){let M=!!r||Object.keys(p).some(a=>a.startsWith("aria-")||"role"===a||"title"===a);return h("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:i,viewBox:"0 0 24 24",fill:"none",stroke:l,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:c?`lucide ${d} ${c}`:`lucide ${d}`,"aria-hidden":!M||void 0,...p,children:[t,r]})})}var i=e("lucide-smartphone",h(d,{children:[t("rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),t("path",{d:"M12 18h.01"})]})),l=e("lucide-a-large-small",h(d,{children:[t("path",{d:"m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16"}),t("path",{d:"M15.697 14h5.606"}),t("path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16"}),t("path",{d:"M3.304 13h6.392"})]})),c=e("lucide-text-align-center lucide-align-center",h(d,{children:[t("path",{d:"M21 5H3"}),t("path",{d:"M17 12H7"}),t("path",{d:"M19 19H5"})]})),r=e("lucide-align-center-vertical",h(d,{children:[t("path",{d:"M12 2v20"}),t("path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4"}),t("path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4"}),t("path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1"}),t("path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1"})]})),p=e("lucide-align-end-vertical",h(d,{children:[t("rect",{width:"16",height:"6",x:"2",y:"4",rx:"2"}),t("rect",{width:"9",height:"6",x:"9",y:"14",rx:"2"}),t("path",{d:"M22 22V2"})]})),n=e("lucide-align-horizontal-justify-center",h(d,{children:[t("rect",{width:"6",height:"14",x:"2",y:"5",rx:"2"}),t("rect",{width:"6",height:"10",x:"16",y:"7",rx:"2"}),t("path",{d:"M12 2v20"})]})),M=e("lucide-align-horizontal-justify-end",h(d,{children:[t("rect",{width:"6",height:"14",x:"2",y:"5",rx:"2"}),t("rect",{width:"6",height:"10",x:"12",y:"7",rx:"2"}),t("path",{d:"M22 2v20"})]})),s=e("lucide-align-horizontal-justify-start",h(d,{children:[t("rect",{width:"6",height:"14",x:"6",y:"5",rx:"2"}),t("rect",{width:"6",height:"10",x:"16",y:"7",rx:"2"}),t("path",{d:"M2 2v20"})]})),u=e("lucide-align-horizontal-space-around",h(d,{children:[t("rect",{width:"6",height:"10",x:"9",y:"7",rx:"2"}),t("path",{d:"M4 22V2"}),t("path",{d:"M20 22V2"})]})),o=e("lucide-align-horizontal-space-between",h(d,{children:[t("rect",{width:"6",height:"14",x:"3",y:"5",rx:"2"}),t("rect",{width:"6",height:"10",x:"15",y:"7",rx:"2"}),t("path",{d:"M3 2v20"}),t("path",{d:"M21 2v20"})]})),x=e("lucide-text-align-justify lucide-align-justify",h(d,{children:[t("path",{d:"M3 5h18"}),t("path",{d:"M3 12h18"}),t("path",{d:"M3 19h18"})]})),v=e("lucide-text-align-start lucide-text lucide-align-left",h(d,{children:[t("path",{d:"M21 5H3"}),t("path",{d:"M15 12H3"}),t("path",{d:"M17 19H3"})]})),g=e("lucide-text-align-end lucide-align-right",h(d,{children:[t("path",{d:"M21 5H3"}),t("path",{d:"M21 12H9"}),t("path",{d:"M21 19H7"})]})),m=e("lucide-align-start-vertical",h(d,{children:[t("rect",{width:"9",height:"6",x:"6",y:"14",rx:"2"}),t("rect",{width:"16",height:"6",x:"6",y:"4",rx:"2"}),t("path",{d:"M2 2v20"})]})),y=e("lucide-archive",h(d,{children:[t("rect",{width:"20",height:"5",x:"2",y:"3",rx:"1"}),t("path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"}),t("path",{d:"M10 12h4"})]})),w=e("lucide-arrow-big-up",t("path",{d:"M9 19a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-6a1 1 0 0 1 1-1h3.293a.707.707 0 0 0 .5-1.207l-7.086-7.086a1 1 0 0 0-1.414 0l-7.086 7.086a.707.707 0 0 0 .5 1.207H8a1 1 0 0 1 1 1z"})),H=e("lucide-arrow-down",h(d,{children:[t("path",{d:"M12 5v14"}),t("path",{d:"m19 12-7 7-7-7"})]})),z=e("lucide-arrow-left",h(d,{children:[t("path",{d:"m12 19-7-7 7-7"}),t("path",{d:"M19 12H5"})]})),V=e("lucide-arrow-left-right",h(d,{children:[t("path",{d:"M8 3 4 7l4 4"}),t("path",{d:"M4 7h16"}),t("path",{d:"m16 21 4-4-4-4"}),t("path",{d:"M20 17H4"})]})),f=e("lucide-arrow-right",h(d,{children:[t("path",{d:"M5 12h14"}),t("path",{d:"m12 5 7 7-7 7"})]})),L=e("lucide-arrow-up-right",h(d,{children:[t("path",{d:"M7 7h10v10"}),t("path",{d:"M7 17 17 7"})]})),b=e("lucide-ban",h(d,{children:[t("circle",{cx:"12",cy:"12",r:"10"}),t("path",{d:"M4.929 4.929 19.07 19.071"})]})),k=e("lucide-between-horizontal-start lucide-between-horizonal-start",h(d,{children:[t("rect",{width:"13",height:"7",x:"8",y:"3",rx:"1"}),t("path",{d:"m2 9 3 3-3 3"}),t("rect",{width:"13",height:"7",x:"8",y:"14",rx:"1"})]})),A=e("lucide-between-vertical-end",h(d,{children:[t("rect",{width:"7",height:"13",x:"3",y:"3",rx:"1"}),t("path",{d:"m9 22 3-3 3 3"}),t("rect",{width:"7",height:"13",x:"14",y:"3",rx:"1"})]})),j=e("lucide-blend",h(d,{children:[t("circle",{cx:"15",cy:"9",r:"7"}),t("circle",{cx:"9",cy:"15",r:"7"})]})),C=e("lucide-letter-b lucide-bold",t("path",{d:"M6 12h9a4 4 0 010 8H7a1 1 0 01-1-1V5a1 1 0 011-1h7a4 4 0 010 8"})),q=e("lucide-bot",h(d,{children:[t("path",{d:"M12 8V4H8"}),t("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),t("path",{d:"M2 14h2"}),t("path",{d:"M20 14h2"}),t("path",{d:"M15 13v2"}),t("path",{d:"M9 13v2"})]})),N=e("lucide-brain",h(d,{children:[t("path",{d:"M12 18V5"}),t("path",{d:"M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4"}),t("path",{d:"M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294"}),t("path",{d:"M17.996 5.125a4 4 0 012.526 5.77"}),t("path",{d:"M18 18a4 4 0 002-7.465"}),t("path",{d:"M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517"}),t("path",{d:"M6 18a4 4 0 01-2-7.465"}),t("path",{d:"M6.004 5.125a4 4 0 00-2.526 5.77"})]})),Z=e("lucide-check",t("path",{d:"M20 6 9 17l-5-5"})),$=e("lucide-chevron-down",t("path",{d:"m6 9 6 6 6-6"})),B=e("lucide-chevron-left",t("path",{d:"m15 18-6-6 6-6"})),O=e("lucide-chevron-right",t("path",{d:"m9 18 6-6-6-6"})),W=e("lucide-circle-dashed",h(d,{children:[t("path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0"}),t("path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0"}),t("path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"}),t("path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8"}),t("path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"}),t("path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8"}),t("path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"}),t("path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"})]})),D=e("lucide-clock",h(d,{children:[t("circle",{cx:"12",cy:"12",r:"10"}),t("path",{d:"M12 6v6l4 2"})]})),E=e("lucide-command",t("path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3"})),F=e("lucide-component",h(d,{children:[t("path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"}),t("path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z"}),t("path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z"}),t("path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"})]})),G=e("lucide-copy",h(d,{children:[t("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),t("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]})),I=e("lucide-corner-down-left",h(d,{children:[t("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"}),t("path",{d:"m9 10-5 5 5 5"})]})),J=e("lucide-eye",h(d,{children:[t("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),t("circle",{cx:"12",cy:"12",r:"3"})]})),K=e("lucide-fingerprint-pattern lucide-fingerprint",h(d,{children:[t("path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),t("path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),t("path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),t("path",{d:"M2 12a10 10 0 0 1 18-6"}),t("path",{d:"M2 16h.01"}),t("path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}),t("path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}),t("path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),t("path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"})]})),P=e("lucide-folder",t("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})),Q=e("lucide-hand",h(d,{children:[t("path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2"}),t("path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2"}),t("path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8"}),t("path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"})]})),R=e("lucide-rotate-ccw-clock lucide-history",h(d,{children:[t("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),t("path",{d:"M3 3v5h5"}),t("path",{d:"M12 7v5l4 2"})]})),S=e("lucide-image",h(d,{children:[t("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),t("circle",{cx:"9",cy:"9",r:"2"}),t("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"})]})),T=e("lucide-info",h(d,{children:[t("circle",{cx:"12",cy:"12",r:"10"}),t("path",{d:"M12 16v-4"}),t("path",{d:"M12 8h.01"})]})),U=e("lucide-link-2",h(d,{children:[t("path",{d:"M9 17H7A5 5 0 0 1 7 7h2"}),t("path",{d:"M15 7h2a5 5 0 1 1 0 10h-2"}),t("line",{x1:"8",x2:"16",y1:"12",y2:"12"})]})),X=e("lucide-loader-circle lucide-loader-2",t("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})),Y=e("lucide-lock",h(d,{children:[t("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),t("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})),_=e("lucide-lock-open lucide-unlock",h(d,{children:[t("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),t("path",{d:"M7 11V7a5 5 0 0 1 9.9-1"})]})),aa=e("lucide-log-out",h(d,{children:[t("path",{d:"m16 17 5-5-5-5"}),t("path",{d:"M21 12H9"}),t("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"})]})),ha=e("lucide-maximize-2",h(d,{children:[t("path",{d:"M15 3h6v6"}),t("path",{d:"m21 3-7 7"}),t("path",{d:"m3 21 7-7"}),t("path",{d:"M9 21H3v-6"})]})),da=e("lucide-message-circle",t("path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"})),ta=e("lucide-message-circle-question-mark lucide-message-circle-question",h(d,{children:[t("path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"}),t("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),t("path",{d:"M12 17h.01"})]})),ea=e("lucide-minimize-2",h(d,{children:[t("path",{d:"m14 10 7-7"}),t("path",{d:"M20 10h-6V4"}),t("path",{d:"m3 21 7-7"}),t("path",{d:"M4 14h6v6"})]})),ia=e("lucide-minus",t("path",{d:"M5 12h14"})),la=e("lucide-monitor",h(d,{children:[t("rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}),t("line",{x1:"8",x2:"16",y1:"21",y2:"21"}),t("line",{x1:"12",x2:"12",y1:"17",y2:"21"})]})),ca=e("lucide-monitor-smartphone",h(d,{children:[t("path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8"}),t("path",{d:"M10 19v-3.96 3.15"}),t("path",{d:"M7 19h5"}),t("rect",{width:"6",height:"10",x:"16",y:"12",rx:"2"})]})),ra=e("lucide-moon",t("path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"})),pa=e("lucide-move",h(d,{children:[t("path",{d:"M12 2v20"}),t("path",{d:"m15 19-3 3-3-3"}),t("path",{d:"m19 9 3 3-3 3"}),t("path",{d:"M2 12h20"}),t("path",{d:"m5 9-3 3 3 3"}),t("path",{d:"m9 5 3-3 3 3"})]})),na=e("lucide-move-horizontal",h(d,{children:[t("path",{d:"m18 8 4 4-4 4"}),t("path",{d:"M2 12h20"}),t("path",{d:"m6 8-4 4 4 4"})]})),Ma=e("lucide-move-vertical",h(d,{children:[t("path",{d:"M12 2v20"}),t("path",{d:"m8 18 4 4 4-4"}),t("path",{d:"m8 6 4-4 4 4"})]})),sa=e("lucide-octagon-alert lucide-alert-octagon",h(d,{children:[t("path",{d:"M12 16h.01"}),t("path",{d:"M12 8v4"}),t("path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"})]})),ua=e("lucide-palette",h(d,{children:[t("path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"}),t("circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor"}),t("circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor"}),t("circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor"}),t("circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor"})]})),oa=e("lucide-pause",h(d,{children:[t("rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}),t("rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"})]})),xa=e("lucide-pen-line lucide-edit-3",h(d,{children:[t("path",{d:"M13 21h8"}),t("path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"})]})),va=e("lucide-play",t("path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"})),ga=e("lucide-plug",h(d,{children:[t("path",{d:"M12 22v-5"}),t("path",{d:"M15 8V2"}),t("path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z"}),t("path",{d:"M9 8V2"})]})),ma=e("lucide-plus",h(d,{children:[t("path",{d:"M5 12h14"}),t("path",{d:"M12 5v14"})]})),ya=e("lucide-refresh-cw",h(d,{children:[t("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),t("path",{d:"M21 3v5h-5"}),t("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),t("path",{d:"M8 16H3v5"})]})),wa=e("lucide-reply",h(d,{children:[t("path",{d:"M20 18v-2a4 4 0 0 0-4-4H4"}),t("path",{d:"m9 17-5-5 5-5"})]})),Ha=e("lucide-rotate-ccw",h(d,{children:[t("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),t("path",{d:"M3 3v5h5"})]})),za=e("lucide-rotate-cw",h(d,{children:[t("path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}),t("path",{d:"M21 3v5h-5"})]})),Va=e("lucide-ruler",h(d,{children:[t("path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z"}),t("path",{d:"m14.5 12.5 2-2"}),t("path",{d:"m11.5 9.5 2-2"}),t("path",{d:"m8.5 6.5 2-2"}),t("path",{d:"m17.5 15.5 2-2"})]})),fa=e("lucide-scaling",h(d,{children:[t("path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),t("path",{d:"M14 15H9v-5"}),t("path",{d:"M16 3h5v5"}),t("path",{d:"M21 3 9 15"})]})),La=e("lucide-search",h(d,{children:[t("path",{d:"m21 21-4.34-4.34"}),t("circle",{cx:"11",cy:"11",r:"8"})]})),ba=e("lucide-send",h(d,{children:[t("path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}),t("path",{d:"m21.854 2.147-10.94 10.939"})]})),ka=e("lucide-send-horizontal lucide-send-horizonal",h(d,{children:[t("path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z"}),t("path",{d:"M6 12h16"})]})),Aa=e("lucide-settings",h(d,{children:[t("path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}),t("circle",{cx:"12",cy:"12",r:"3"})]})),ja=e("lucide-signal",h(d,{children:[t("path",{d:"M2 20h.01"}),t("path",{d:"M7 20v-4"}),t("path",{d:"M12 20v-8"}),t("path",{d:"M17 20V8"}),t("path",{d:"M22 4v16"})]})),Ca=e("lucide-signal-high",h(d,{children:[t("path",{d:"M2 20h.01"}),t("path",{d:"M7 20v-4"}),t("path",{d:"M12 20v-8"}),t("path",{d:"M17 20V8"})]})),qa=e("lucide-signal-low",h(d,{children:[t("path",{d:"M2 20h.01"}),t("path",{d:"M7 20v-4"})]})),Na=e("lucide-signal-medium",h(d,{children:[t("path",{d:"M2 20h.01"}),t("path",{d:"M7 20v-4"}),t("path",{d:"M12 20v-8"})]})),Za=e("lucide-signal-zero",t("path",{d:"M2 20h.01"})),$a=e("lucide-sliders-horizontal",h(d,{children:[t("path",{d:"M10 5H3"}),t("path",{d:"M12 19H3"}),t("path",{d:"M14 3v4"}),t("path",{d:"M16 17v4"}),t("path",{d:"M21 12h-9"}),t("path",{d:"M21 19h-5"}),t("path",{d:"M21 5h-7"}),t("path",{d:"M8 10v4"}),t("path",{d:"M8 12H3"})]})),Ba=e("lucide-mouse-pointer-2",t("path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z"})),Oa=e("lucide-square-mouse-pointer lucide-inspect",h(d,{children:[t("path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"}),t("path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"})]})),Wa=e("lucide-stretch-horizontal",h(d,{children:[t("rect",{width:"20",height:"6",x:"2",y:"4",rx:"2"}),t("rect",{width:"20",height:"6",x:"2",y:"14",rx:"2"})]})),Da=e("lucide-sun",h(d,{children:[t("circle",{cx:"12",cy:"12",r:"4"}),t("path",{d:"M12 2v2"}),t("path",{d:"M12 20v2"}),t("path",{d:"m4.93 4.93 1.41 1.41"}),t("path",{d:"m17.66 17.66 1.41 1.41"}),t("path",{d:"M2 12h2"}),t("path",{d:"M20 12h2"}),t("path",{d:"m6.34 17.66-1.41 1.41"}),t("path",{d:"m19.07 4.93-1.41 1.41"})]})),Ea=e("lucide-terminal",h(d,{children:[t("path",{d:"M12 19h8"}),t("path",{d:"m4 17 6-6-6-6"})]})),Fa=e("lucide-thumbs-up",h(d,{children:[t("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}),t("path",{d:"M7 10v12"})]})),Ga=e("lucide-trash lucide-trash-2",h(d,{children:[t("path",{d:"M10 11v6"}),t("path",{d:"M14 11v6"}),t("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),t("path",{d:"M3 6h18"}),t("path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})),Ia=e("lucide-triangle-alert lucide-alert-triangle",h(d,{children:[t("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),t("path",{d:"M12 9v4"}),t("path",{d:"M12 17h.01"})]})),Ja=e("lucide-user",h(d,{children:[t("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),t("circle",{cx:"12",cy:"7",r:"4"})]})),Ka=e("lucide-user-plus",h(d,{children:[t("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),t("circle",{cx:"9",cy:"7",r:"4"}),t("line",{x1:"19",x2:"19",y1:"8",y2:"14"}),t("line",{x1:"22",x2:"16",y1:"11",y2:"11"})]})),Pa=e("lucide-x",h(d,{children:[t("path",{d:"M18 6 6 18"}),t("path",{d:"m6 6 12 12"})]})),Qa=e("lucide-zap",t("path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"}));export{ta as $,C as A,Ca as Aa,q as B,qa as Ba,N as C,Na as Ca,Z as D,Za as Da,$ as E,$a as Ea,B as F,Ba as Fa,O as G,Oa as Ga,W as H,Wa as Ha,D as I,Da as Ia,E as J,Ea as Ja,F as K,Fa as Ka,G as L,Ga as La,I as M,Ia as Ma,J as N,Ja as Na,K as O,Ka as Oa,P,Pa,Q,Qa,R,S,T,U,X as V,Y as W,_ as X,aa as Y,ha as Z,da as _,e as a,ea as aa,i as b,ia as ba,l as c,la as ca,c as d,ca as da,r as e,ra as ea,p as f,pa as fa,n as g,na as ga,M as h,Ma as ha,s as i,sa as ia,u as j,ua as ja,o as k,oa as ka,x as l,xa as la,v as m,va as ma,g as n,ga as na,m as o,ma as oa,y as p,ya as pa,w as q,wa as qa,H as r,Ha as ra,z as s,za as sa,V as t,Va as ta,f as u,fa as ua,L as v,La as va,b as w,ba as wa,k as x,ka as xa,A as y,Aa as ya,j as z,ja as za};
|