prompt-mentions 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.css +3 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var r=n(t);const o=e=>"divider"!==e.type&&"title"!==e.type,i=(e,t,n)=>{const r=e.length;if(0===r)return-1;let i=t,l=0;do{i=1===n?i>=r-1?0:i+1:i<=0?r-1:i-1,l++}while(!o(e[i])&&l<r);return l>=r?-1:i},l=e=>{const t=e.findIndex(o);return t>=0?t:0},s=(e,t)=>{let n=e;for(const e of t){const t=n.find(t=>t.id===e);if(!t?.children)return[];n=t.children}return n},a=(e,t)=>{const n=t.toLowerCase(),r=[],o=e=>{for(const t of e)if("divider"!==t.type&&"title"!==t.type){if(t.label.toLowerCase().includes(n)){const e={id:t.id,label:t.label};t.icon&&(e.icon=t.icon),t.type&&(e.type=t.type),r.push(e)}t.children&&o(t.children)}};return o(e),r},c=[{trigger:"@",options:[]}],u=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d=e=>{const t=[];for(const n of e)t.push(n),n.children&&t.push(...d(n.children));return t},p=e=>{const{type:t,props:n}=e;if("string"==typeof t){const e=n||{},r=Object.entries(e).filter(([e])=>"children"!==e&&"ref"!==e).map(([e,t])=>{const n="className"===e?"class":"htmlFor"===e?"for":"strokeWidth"===e?"stroke-width":"strokeLinecap"===e?"stroke-linecap":"strokeLinejoin"===e?"stroke-linejoin":"fillRule"===e?"fill-rule":"clipRule"===e?"clip-rule":"viewBox"===e?"viewBox":e.replace(/([A-Z])/g,"-$1").toLowerCase();return"boolean"==typeof t?t?n:"":`${n}="${String(t).replace(/"/g,""")}"`}).filter(Boolean).join(" "),o=r?`<${t} ${r}>`:`<${t}>`,i=e.children;return null==i?["path","circle","ellipse","line","polygon","polyline","rect","use","img","br","hr","input"].includes(t)?r?`<${t} ${r}/>`:`<${t}/>`:`${o}</${t}>`:`${o}${f(i)}</${t}>`}if("object"==typeof t&&null!==t&&"render"in t)try{const e=(0,t.render)(n,null);return e&&"object"==typeof e&&"type"in e?p(e):""}catch{return""}if("function"==typeof t)try{if(t.prototype&&t.prototype.isReactComponent)return"";const e=t(n);return e&&"object"==typeof e&&"type"in e?p(e):""}catch{return""}return""},f=e=>null==e?"":"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(f).join(""):"object"==typeof e&&"type"in e?p(e):"",g=e=>{if(!e)return"";if("string"==typeof e)return e;try{return p(e)}catch{return""}},h={createHTML(e,t,n,r,o=!1){const i=r?`<span class="mention-pill-icon" data-mention-delete="true"><span class="mention-pill-icon-original">${g(r)}</span><span class="mention-pill-icon-delete"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path d="M18 6L6 18M6 6l12 12"/></svg></span></span>`:"";return`<span contenteditable="false" data-mention="${t}" data-mention-id="${e}" data-mention-trigger="${n}"${r?` data-icon="${encodeURIComponent(g(r))}"`:""}${o?"":' data-hide-trigger="true"'} class="mention-pill">${i}${o?`${n}${t}`:t}</span>`},isMentionElement:e=>e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-mention"),parseValueMulti(e,t){let n=e;for(const e of t){const t=d(e.options),r=e.showTrigger??!1,o=new RegExp(`${u(e.trigger)}\\[([^\\]]+)\\]`,"g");n=n.replace(o,(n,o)=>{const i=t.find(e=>e.id===o)||t.find(e=>e.label===o);return this.createHTML(i?.id||o,i?.label||o,e.trigger,i?.icon,r)})}return n},parseValueWithIcons(e,t){const n=new RegExp(`${u(t)}\\[([^\\]]+)\\]`,"g");return e.replace(n,(e,n)=>this.createHTML(n,n,t))},extractValueMulti(e,t){let n="";const r=t[0]??"@",o=e=>{if(e.nodeType===Node.TEXT_NODE)n+=e.textContent||"";else if(this.isMentionElement(e)){const t=e.getAttribute("data-mention-id")||e.getAttribute("data-mention"),o=e.getAttribute("data-mention-trigger")||r;n+=`${o}[${t}]`}else e.nodeType===Node.ELEMENT_NODE&&e.childNodes.forEach(o)};return o(e),n},extractMentions(e,t="@"){const n=[];return e.querySelectorAll("[data-mention]").forEach(e=>{const r=e.getAttribute("data-mention")||"",o=e.getAttribute("data-mention-id")||r,i=e.getAttribute("data-mention-trigger")||t;n.push({id:o,label:r,trigger:i})}),n},textPosToSerializedPosMulti(e,t,n){let r=0,o=0;const i=n[0]??"@",l=e=>{if(e.nodeType===Node.TEXT_NODE){const n=e.textContent?.length??0;if(r+n>=t)return o+=t-r,!0;r+=n,o+=n}else if(this.isMentionElement(e)){const n=e.textContent?.length??0,l=e.getAttribute("data-mention-id")||e.getAttribute("data-mention")||"",s=(e.getAttribute("data-mention-trigger")||i).length+l.length+2;if(r+n>=t)return o+=s,!0;r+=n,o+=s}else if(e.nodeType===Node.ELEMENT_NODE)for(const t of Array.from(e.childNodes))if(l(t))return!0;return!1};return l(e),o}},m={get:()=>window.getSelection(),getRange(){const e=this.get();return e&&e.rangeCount>0?e.getRangeAt(0):null},getCursorPosition(e){const t=this.getRange();if(!t)return 0;const n=t.cloneRange();return n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset),n.toString().length},setCursorPosition(e,t){const n=this.get();if(!n)return;const r=document.createRange();let o=0,i=!1;const l=e=>{if(e.nodeType===Node.TEXT_NODE){const n=e.textContent?.length??0;if(o+n>=t)return r.setStart(e,t-o),r.collapse(!0),i=!0,!0;o+=n}else if(h.isMentionElement(e)){const n=e.textContent?.length??0;if(o+n>=t)return r.setStartAfter(e),r.collapse(!0),i=!0,!0;o+=n}else if(e.nodeType===Node.ELEMENT_NODE)for(const t of Array.from(e.childNodes))if(l(t))return!0;return!1};l(e),i||(r.selectNodeContents(e),r.collapse(!1)),n.removeAllRanges(),n.addRange(r)},getCaretCoordinates(e){const t=this.getRange();if(!t)return{top:0,left:0,bottom:0,height:0};const n=t.getBoundingClientRect();if(0===n.width&&0===n.height){const t=e.getBoundingClientRect(),n=20;return{top:t.top,left:t.left,bottom:t.top+n,height:n}}return{top:n.top,left:n.left,bottom:n.bottom,height:n.height}},setAfter(e,t,n=1){const r=document.createRange();r.setStart(t,n),r.collapse(!0),e.removeAllRanges(),e.addRange(r)}};function v(e,t){const n=document.createRange();n.selectNode(e);const r=t.compareBoundaryPoints(Range.START_TO_START,n),o=t.compareBoundaryPoints(Range.END_TO_END,n);return r<=0&&o>=0}function y({getElement:e}){const n=t.useRef(null),r=t.useCallback(()=>{n.current=null},[]),o=t.useCallback((e,t,r)=>{const o=function(e,t){if(t.current)return t.current;if(!e.anchorNode||!e.focusNode)return"right";if(e.anchorNode===e.focusNode)return e.focusOffset<e.anchorOffset?"left":"right";return e.anchorNode.compareDocumentPosition(e.focusNode)&Node.DOCUMENT_POSITION_PRECEDING?"left":(Node,"right")}(e,n);n.current||(n.current=o);const i=function(e,t,n){const r=e.cloneRange();return"start"===t?function(e,t,n){const r=t.startContainer,o=t.startOffset;if("left"===n)if(r.nodeType===Node.TEXT_NODE&&o>0)e.setStart(r,o-1);else if(r.nodeType===Node.TEXT_NODE&&0===o){const t=r.previousSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,Math.max(0,(t.textContent?.length??0)-1));else{if(!t)return null;e.setStartBefore(t)}}else{if(!(r.nodeType===Node.ELEMENT_NODE&&o>0))return null;{const t=r.childNodes[o-1];if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,Math.max(0,(t.textContent?.length??0)-1));else{if(!t)return null;e.setStartBefore(t)}}}else if(r.nodeType===Node.TEXT_NODE)if(o<(r.textContent?.length??0))e.setStart(r,o+1);else{const t=r.nextSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,1);else{if(!t)return null;e.setStartAfter(t)}}else{if(r.nodeType!==Node.ELEMENT_NODE)return null;{const t=r.childNodes[o];if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,1);else{if(!t)return null;e.setStartAfter(t)}}}return e}(r,e,n):function(e,t,n){const r=t.endContainer,o=t.endOffset;if("right"===n)if(r.nodeType===Node.TEXT_NODE)if(o<(r.textContent?.length??0))e.setEnd(r,o+1);else{const t=r.nextSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setEnd(t,1);else{if(!t)return null;e.setEndAfter(t)}}else{if(r.nodeType!==Node.ELEMENT_NODE)return null;{const t=r.childNodes[o];if(t&&t.nodeType===Node.TEXT_NODE)e.setEnd(t,1);else{if(!t)return null;e.setEndAfter(t)}}}else if(r.nodeType===Node.TEXT_NODE&&o>0)e.setEnd(r,o-1);else if(r.nodeType===Node.TEXT_NODE&&0===o){const t=r.previousSibling;if(t&&t.nodeType===Node.TEXT_NODE){const n=t.textContent?.length??0;e.setEnd(t,n>0?n-1:0)}else{if(!t)return null;e.setEndBefore(t)}}else{if(!(r.nodeType===Node.ELEMENT_NODE&&o>0))return null;{const t=r.childNodes[o-1];if(t&&t.nodeType===Node.TEXT_NODE){const n=t.textContent?.length??0;e.setEnd(t,n>0?n-1:0)}else{if(!t)return null;e.setEndBefore(t)}}}return e}(r,e,n)}(t,"left"===o?"start":"end",r);return!!i&&(i.collapsed?(n.current=null,e.removeAllRanges(),e.addRange(i),!0):(e.removeAllRanges(),e.addRange(i),!0))},[]);return{handleAtomicMentionNavigation:t.useCallback(t=>{const r=e();if(!r)return!1;if(t.altKey||t.metaKey||t.ctrlKey)return!1;const i=m.get();if(!i||0===i.rangeCount)return!1;const l=i.getRangeAt(0),s="ArrowLeft"===t.key,a=t.shiftKey;if(!s&&"ArrowRight"!==t.key)return!1;let c=null;if(s){const e=l.startContainer,t=l.startOffset;if(e.nodeType===Node.TEXT_NODE&&0===t){const t=e.previousSibling;t&&h.isMentionElement(t)&&(c=t)}else if(e.nodeType===Node.ELEMENT_NODE){const n=e.childNodes[t-1];n&&h.isMentionElement(n)&&(c=n)}}else{const e=l.endContainer,t=l.endOffset;if(e.nodeType===Node.TEXT_NODE){if(t===(e.textContent?.length??0)){const t=e.nextSibling;t&&h.isMentionElement(t)&&(c=t)}}else if(e.nodeType===Node.ELEMENT_NODE){const n=e.childNodes[t];n&&h.isMentionElement(n)&&(c=n)}}if(c){if(!l.collapsed&&v(c,l)){if(t.preventDefault(),a)o(i,l,s?"left":"right");else{n.current=null;const e=document.createRange();s?e.setStart(l.startContainer,l.startOffset):e.setStart(l.endContainer,l.endOffset),e.collapse(!0),i.removeAllRanges(),i.addRange(e)}return!0}t.preventDefault();const e=document.createRange();return a?(l.collapsed&&(n.current=s?"left":"right"),s?(e.setStartBefore(c),e.setEnd(l.endContainer,l.endOffset)):(e.setStart(l.startContainer,l.startOffset),e.setEndAfter(c))):(n.current=null,s?(e.setStartBefore(c),e.collapse(!0)):(e.setStartAfter(c),e.collapse(!0))),i.removeAllRanges(),i.addRange(e),!0}if(!l.collapsed){const e=r.querySelectorAll("[data-mention]");for(const r of Array.from(e))if(v(r,l)){if(t.preventDefault(),a)o(i,l,s?"left":"right");else{n.current=null;const e=document.createRange();s?e.setStart(l.startContainer,l.startOffset):e.setStart(l.endContainer,l.endOffset),e.collapse(!0),i.removeAllRanges(),i.addRange(e)}return!0}}return!1},[e,o]),updateMentionSelectionVisuals:t.useCallback(()=>{const t=e();if(!t)return;const n=m.get(),r=t.querySelectorAll("[data-mention]");if(r.forEach(e=>{e.classList.remove("mention-selected")}),!n||0===n.rangeCount)return;const o=n.getRangeAt(0);o.collapsed||r.forEach(e=>{v(e,o)&&e.classList.add("mention-selected")})},[e]),resetSelectionDirection:r}}var b,x={exports:{}},C={};var w,S,E={};var T=(S||(S=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),x.exports=function(){if(b)return C;b=1;var e=t;function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal"),l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return C.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,C.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},C.flushSync=function(e){var t=l.T,n=o.p;try{if(l.T=null,o.p=2,e)return e()}finally{l.T=t,o.p=n,o.d.f()}},C.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,o.d.C(e,t))},C.prefetchDNS=function(e){"string"==typeof e&&o.d.D(e)},C.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=s(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?o.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:l}):"script"===n&&o.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},C.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=s(t.as,t.crossOrigin);o.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&o.d.M(e)},C.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=s(n,t.crossOrigin);o.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},C.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=s(t.as,t.crossOrigin);o.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else o.d.m(e)},C.requestFormReset=function(e){o.d.r(e)},C.unstable_batchedUpdates=function(e,t){return e(t)},C.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},C.useFormStatus=function(){return l.H.useHostTransitionStatus()},C.version="19.2.3",C}()):x.exports=(w||(w=1,"production"!==process.env.NODE_ENV&&function(){function e(){}function n(e){return""+e}function r(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}function o(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":'something with type "'+typeof e+'"'}function i(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":"string"==typeof e?JSON.stringify(e):"number"==typeof e?"`"+e+"`":'something with type "'+typeof e+'"'}function l(){var e=u.H;return null===e&&console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=t,a={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),u=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,E.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error("Target container is not a DOM element.");return function(e,t,r){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;try{n(o);var i=!1}catch(e){i=!0}return i&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object"),n(o)),{$$typeof:c,key:null==o?null:""+o,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},E.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},E.preconnect=function(e,t){"string"==typeof e&&e?null!=t&&"object"!=typeof t?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(t)):null!=t&&"string"!=typeof t.crossOrigin&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,a.d.C(e,t))},E.prefetchDNS=function(e){if("string"==typeof e&&e){if(1<arguments.length){var t=arguments[1];"object"==typeof t&&t.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(t))}}else console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e));"string"==typeof e&&a.d.D(e)},E.preinit=function(e,t){if("string"==typeof e&&e?null==t||"object"!=typeof t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(t)):"style"!==t.as&&"script"!==t.as&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),"string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,l=r(n,t.crossOrigin),s="string"==typeof t.integrity?t.integrity:void 0,c="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?a.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:l,integrity:s,fetchPriority:c}):"script"===n&&a.d.X(e,{crossOrigin:l,integrity:s,fetchPriority:c,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},E.preinitModule=function(e,t){var n="";"string"==typeof e&&e||(n+=" The `href` argument encountered was "+o(e)+"."),void 0!==t&&"object"!=typeof t?n+=" The `options` argument encountered was "+o(t)+".":t&&"as"in t&&"script"!==t.as&&(n+=" The `as` option encountered was "+i(t.as)+"."),n?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n):"script"===(n=t&&"string"==typeof t.as?t.as:"script")||(n=i(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)),"string"==typeof e&&("object"==typeof t&&null!==t?null!=t.as&&"script"!==t.as||(n=r(t.as,t.crossOrigin),a.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})):null==t&&a.d.M(e))},E.preload=function(e,t){var n="";if("string"==typeof e&&e||(n+=" The `href` argument encountered was "+o(e)+"."),null==t||"object"!=typeof t?n+=" The `options` argument encountered was "+o(t)+".":"string"==typeof t.as&&t.as||(n+=" The `as` option encountered was "+o(t.as)+"."),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),"string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var i=r(n=t.as,t.crossOrigin);a.d.L(e,n,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},E.preloadModule=function(e,t){var n="";"string"==typeof e&&e||(n+=" The `href` argument encountered was "+o(e)+"."),void 0!==t&&"object"!=typeof t?n+=" The `options` argument encountered was "+o(t)+".":t&&"as"in t&&"string"!=typeof t.as&&(n+=" The `as` option encountered was "+o(t.as)+"."),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),"string"==typeof e&&(t?(n=r(t.as,t.crossOrigin),a.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})):a.d.m(e))},E.requestFormReset=function(e){a.d.r(e)},E.unstable_batchedUpdates=function(e,t){return e(t)},E.useFormState=function(e,t,n){return l().useFormState(e,t,n)},E.useFormStatus=function(){return l().useHostTransitionStatus()},E.version="19.2.3","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),E)),x.exports);const O=()=>e.jsx("svg",{className:"mention-menu-chevron",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})}),M=({isOpen:n,caretRect:r,preferredPosition:o="below",options:i,selectedIndex:l,onSelect:s,onEnterSubmenu:a,isInSubmenu:c=!1,onHoverIndex:u,onClose:d,isKeyboardNavigating:p=!1,onMouseActivity:f,themeStyles:g})=>{const h=t.useRef(null),[m,v]=t.useState(o),[y,b]=t.useState(0),x=t.useCallback(e=>{p&&f?.(),u?.(e)},[p,f,u]);if(t.useEffect(()=>{if(!n||!d)return;const e=e=>{const t=e.target;if(h.current?.contains(t))return;const n=t.closest?.(".prompt-input");n||d()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n,d]),t.useLayoutEffect(()=>{if(!n||!h.current)return;const e=h.current.getBoundingClientRect();b(e.height);const t=window.innerHeight-r.bottom-4,i=r.top-4;v("below"===o?e.height>t&&i>t?"above":"below":e.height>i&&t>i?"below":"above")},[n,r,o,i]),t.useEffect(()=>{if(n&&h.current){const e=h.current.querySelector(`[data-index="${l}"]`);e&&e.scrollIntoView({block:"nearest"})}},[n,l]),!n||0===i.length)return null;const C=e.jsx("div",{ref:h,className:"mention-menu"+(p?" keyboard-navigating":""),style:{position:"fixed",top:Math.max(4,"below"===m?r.bottom+4:r.top-y-4),left:r.left},children:i.map((t,n)=>{const r=`${n}-${t.id}`;if("divider"===t.type)return e.jsx("div",{className:"mention-menu-divider",role:"separator"},r);if("title"===t.type)return e.jsxs("div",{className:"mention-menu-title",children:[t.icon&&e.jsx("span",{className:"mention-menu-item-icon",children:t.icon}),e.jsx("span",{className:"mention-menu-title-label",children:t.label})]},r);const o=t.children&&t.children.length>0;return e.jsxs("div",{"data-index":n,className:`mention-menu-item ${n===l?"mention-menu-item-selected":""} ${o?"mention-menu-item-has-children":""}`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),o&&a?a(t):s(t)},onMouseMove:()=>x(n),children:[t.icon&&e.jsx("span",{className:"mention-menu-item-icon",children:t.icon}),e.jsx("span",{className:"mention-menu-item-label",children:t.label}),o&&e.jsx(O,{})]},r)})});return T.createPortal(e.jsx("div",{style:g,children:C}),document.body)};function R(e){if(!e)return{};const t={};return e.backgroundColor&&(t["--prompt-background-color"]=e.backgroundColor),e.color&&(t["--prompt-color"]=e.color),e.placeholderColor&&(t["--prompt-placeholder-color"]=e.placeholderColor),e.fontSize&&(t["--prompt-font-size"]=e.fontSize),e.fontFamily&&(t["--prompt-font-family"]=e.fontFamily),e.borderRadius&&(t["--prompt-border-radius"]=e.borderRadius),e.borderColor&&(t["--prompt-border-color"]=e.borderColor),e.padding&&(t["--prompt-padding"]=e.padding),e.focusBorderColor&&(t["--prompt-focus-border-color"]=e.focusBorderColor),e.focusBoxShadow&&(t["--prompt-focus-box-shadow"]=e.focusBoxShadow),e.lineHeight&&(t["--prompt-line-height"]=e.lineHeight),e.borderWidth&&(t["--prompt-border-width"]=e.borderWidth),e.menu&&(e.menu.backgroundColor&&(t["--prompt-mention-menu-background-color"]=e.menu.backgroundColor),e.menu.borderColor&&(t["--prompt-mention-menu-border-color"]=e.menu.borderColor),e.menu.color&&(t["--prompt-mention-menu-color"]=e.menu.color),e.menu.itemHoverColor&&(t["--prompt-mention-menu-item-hover-color"]=e.menu.itemHoverColor),e.menu.chevronColor&&(t["--prompt-mention-menu-chevron-color"]=e.menu.chevronColor),e.menu.chevronHoverColor&&(t["--prompt-mention-menu-chevron-hover-color"]=e.menu.chevronHoverColor),e.menu.minWidth&&(t["--prompt-mention-menu-min-width"]=e.menu.minWidth),e.menu.item&&(e.menu.item.height&&(t["--prompt-mention-menu-item-height"]=e.menu.item.height),e.menu.item.padding&&(t["--prompt-mention-menu-item-padding"]=e.menu.item.padding),e.menu.item.gap&&(t["--prompt-mention-menu-item-gap"]=e.menu.item.gap),e.menu.item.labelFontSize&&(t["--prompt-mention-menu-item-label-font-size"]=e.menu.item.labelFontSize),void 0!==e.menu.item.labelFontWeight&&(t["--prompt-mention-menu-item-label-font-weight"]=String(e.menu.item.labelFontWeight)),e.menu.item.iconHeight&&(t["--prompt-mention-menu-item-icon-height"]=e.menu.item.iconHeight)),e.menu.title&&(e.menu.title.padding&&(t["--prompt-mention-menu-title-padding"]=e.menu.title.padding),e.menu.title.paddingTop&&(t["--prompt-mention-menu-title-padding-top"]=e.menu.title.paddingTop),e.menu.title.height&&(t["--prompt-mention-menu-title-height"]=e.menu.title.height),e.menu.title.labelFontSize&&(t["--prompt-mention-menu-title-label-font-size"]=e.menu.title.labelFontSize),void 0!==e.menu.title.labelFontWeight&&(t["--prompt-mention-menu-title-label-font-weight"]=String(e.menu.title.labelFontWeight)),e.menu.title.labelColor&&(t["--prompt-mention-menu-title-label-color"]=e.menu.title.labelColor),e.menu.title.labelTextTransform&&(t["--prompt-mention-menu-title-label-text-transform"]=e.menu.title.labelTextTransform),e.menu.title.labelLetterSpacing&&(t["--prompt-mention-menu-title-label-letter-spacing"]=e.menu.title.labelLetterSpacing),void 0!==e.menu.title.labelOpacity&&(t["--prompt-mention-menu-title-label-opacity"]=String(e.menu.title.labelOpacity)))),e.pill&&(e.pill.backgroundColor&&(t["--prompt-mention-pill-background-color"]=e.pill.backgroundColor),e.pill.borderRadius&&(t["--prompt-mention-pill-border-radius"]=e.pill.borderRadius),e.pill.color&&(t["--prompt-mention-pill-color"]=e.pill.color),e.pill.padding&&(t["--prompt-mention-pill-padding"]=e.pill.padding),e.pill.lineHeight&&(t["--prompt-mention-pill-line-height"]=e.pill.lineHeight)),t}const N={light:{backgroundColor:"white",color:"black",placeholderColor:"#9ca3af",fontSize:"14px",fontFamily:"inherit",borderRadius:"0.375rem",borderColor:"#d1d5db",padding:"0.5rem",focusBorderColor:"#6366f1",focusBoxShadow:"0 0 0 2px rgba(99, 102, 241, 0.2)",menu:{backgroundColor:"white",borderColor:"#e5e7eb",color:"black",itemHoverColor:"#f3f4f6",chevronColor:"#9ca3af",chevronHoverColor:"#6366f1",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#9ca3af",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)",borderRadius:"9999px",color:"white",padding:"0.125rem 0.5rem"}},cursorDark:{backgroundColor:"#22242C",color:"#d8dee9",placeholderColor:"#585C65",fontSize:"13px",fontFamily:'-apple-system, "system-ui", sans-serif',borderRadius:"8px",borderColor:"#2F353F",padding:".375rem .5rem .25rem",focusBorderColor:"#2F353F",focusBoxShadow:"none",lineHeight:"1.7",menu:{backgroundColor:"#1A1C21",borderColor:"#282C35",color:"#7A88A1",itemHoverColor:"#21262E",chevronColor:"#373C48",chevronHoverColor:"#373C48",minWidth:"240px",item:{height:"20px",padding:"2px 6px",gap:"0px",labelFontSize:"12px",labelFontWeight:300,iconHeight:"12px"},title:{padding:"2px 6px",paddingTop:"2px",height:"20px",labelFontSize:"11px",labelFontWeight:300,labelColor:"#d8dee9",labelTextTransform:"none",labelLetterSpacing:"0",labelOpacity:.4}},pill:{backgroundColor:"#283B56",borderRadius:"4px",color:"#d8dee9",padding:"1px 4px 2px 4px",lineHeight:"1.4"}},githubDark:{backgroundColor:"#0d1117",color:"#c9d1d9",placeholderColor:"#484f58",fontSize:"14px",fontFamily:"inherit",borderRadius:"6px",borderColor:"#30363d",padding:"0.5rem 0.75rem",focusBorderColor:"#58a6ff",focusBoxShadow:"0 0 0 2px rgba(88, 166, 255, 0.2)",menu:{backgroundColor:"#161b22",borderColor:"#30363d",color:"#c9d1d9",itemHoverColor:"#21262d",chevronColor:"#484f58",chevronHoverColor:"#58a6ff",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#8b949e",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"#388bfd26",borderRadius:"6px",color:"#58a6ff",padding:"0.125rem 0.5rem"}},minimal:{backgroundColor:"#fafafa",color:"#18181b",placeholderColor:"#a1a1aa",fontSize:"15px",fontFamily:"inherit",borderRadius:"8px",borderColor:"#e4e4e7",padding:"0.75rem",focusBorderColor:"#18181b",focusBoxShadow:"0 0 0 2px rgba(24, 24, 27, 0.1)",menu:{backgroundColor:"#ffffff",borderColor:"#e4e4e7",color:"#3f3f46",itemHoverColor:"#f4f4f5",chevronColor:"#a1a1aa",chevronHoverColor:"#18181b",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#a1a1aa",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"#18181b",borderRadius:"4px",color:"#fafafa",padding:"0.125rem 0.5rem"}}},j=r.forwardRef(function({title:t="CSS",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#663399"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63"})]})}),k=r.forwardRef(function({title:t="Docker",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#2496ED"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"})]})}),_=r.forwardRef(function({title:t=".ENV",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#ECD53F"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M24 0v24H0V0h24ZM10.933 15.89H6.84v5.52h4.198v-.93H7.955v-1.503h2.77v-.93h-2.77v-1.224h2.978v-.934Zm2.146 0h-1.084v5.52h1.035v-3.6l2.226 3.6h1.118v-5.52h-1.036v3.686l-2.259-3.687Zm5.117 0h-1.208l1.973 5.52h1.19l1.976-5.52h-1.182l-1.352 4.085-1.397-4.086ZM5.4 19.68H3.72v1.68H5.4v-1.68Z"})]})}),D=r.forwardRef(function({title:t="Git",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#F05032"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M23.546 10.93L13.067.452c-.604-.603-1.582-.603-2.188 0L8.708 2.627l2.76 2.76c.645-.215 1.379-.07 1.889.441.516.515.658 1.258.438 1.9l2.658 2.66c.645-.223 1.387-.078 1.9.435.721.72.721 1.884 0 2.604-.719.719-1.881.719-2.6 0-.539-.541-.674-1.337-.404-1.996L12.86 8.955v6.525c.176.086.342.203.488.348.713.721.713 1.883 0 2.6-.719.721-1.889.721-2.609 0-.719-.719-.719-1.879 0-2.598.182-.18.387-.316.605-.406V8.835c-.217-.091-.424-.222-.6-.401-.545-.545-.676-1.342-.396-2.009L7.636 3.7.45 10.881c-.6.605-.6 1.584 0 2.189l10.48 10.477c.604.604 1.582.604 2.186 0l10.43-10.43c.605-.603.605-1.582 0-2.187"})]})}),z=r.forwardRef(function({title:t="Go",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#00ADD8"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"})]})}),A=r.forwardRef(function({title:t="GraphQL",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#E10098"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"})]})}),L=r.forwardRef(function({title:t="HTML5",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#E34F26"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438L1.5 0zm7.031 9.75l-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157H8.531z"})]})}),H=r.forwardRef(function({title:t="ImageJ",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#00D8E0"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M13.1286 17.5084h-8.072a.187.187 0 0 1-.187-.187v-.4442a.187.187 0 0 1 .187-.187h8.0721a.187.187 0 0 1 .187.187v.4442a.1872.1872 0 0 1-.1871.187zm5.6234-12.195c-1.4233.0033-4.2184-.0098-5.6414-.0065a.4035.4035 0 0 0-.4035.4035v3.6061c0 .2229.1807.4035.4035.4035h1.7475v8.19a1.8275 1.8275 0 0 1-.9112 1.5761 1.8277 1.8277 0 0 1-1.8224 0 1.8276 1.8276 0 0 1-.9113-1.5784H6.941c0 2.1705 1.1677 4.193 3.0473 5.2782.9398.5428 1.9936.8141 3.0474.8141s2.1076-.2713 3.0474-.8139c1.8795-1.0837 3.0444-3.1089 3.0473-5.274V5.692a.3785.3785 0 0 0-.3784-.3786zM7.4546 15.2306h3.276a.6403.6403 0 0 0 .6403-.6403V.6403A.6403.6403 0 0 0 10.7306 0h-3.276a.6403.6403 0 0 0-.6403.6403v13.95c0 .3536.2867.6403.6403.6403z"})]})}),B=r.forwardRef(function({title:t="JavaScript",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#F7DF1E"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179l.004-.056z"})]})}),V=r.forwardRef(function({title:t="JSON",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#000000"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M12.043 23.968c.479-.004.953-.029 1.426-.094a11.805 11.805 0 003.146-.863 12.404 12.404 0 003.793-2.542 11.977 11.977 0 002.44-3.427 11.794 11.794 0 001.02-3.476c.149-1.16.135-2.346-.045-3.499a11.96 11.96 0 00-.793-2.788 11.197 11.197 0 00-.854-1.617c-1.168-1.837-2.861-3.314-4.81-4.3a12.835 12.835 0 00-2.172-.87h-.005c.119.063.24.132.345.201.12.074.239.146.351.225a8.93 8.93 0 011.559 1.33c1.063 1.145 1.797 2.548 2.218 4.041.284.982.434 1.998.495 3.017.044.743.044 1.491-.047 2.229-.149 1.27-.554 2.51-1.228 3.596a7.475 7.475 0 01-1.903 2.084c-1.244.928-2.877 1.482-4.436 1.114a3.916 3.916 0 01-.748-.258 4.692 4.692 0 01-.779-.45 6.08 6.08 0 01-1.244-1.105 6.507 6.507 0 01-1.049-1.747 7.366 7.366 0 01-.494-2.54c-.03-1.273.225-2.553.854-3.67a6.43 6.43 0 011.663-1.918c.225-.178.464-.333.704-.479l.016-.007a5.121 5.121 0 00-1.441-.12 4.963 4.963 0 00-1.228.24c-.359.12-.704.27-1.019.45a6.146 6.146 0 00-.733.494c-.211.18-.42.36-.615.555-1.123 1.153-1.768 2.682-2.022 4.256-.15.973-.15 1.96-.091 2.95.105 1.395.391 2.787.945 4.062a8.518 8.518 0 001.348 2.173 8.14 8.14 0 003.132 2.23 7.934 7.934 0 002.113.54c.074.015.149.015.209.015zm-2.934-.398a4.102 4.102 0 01-.45-.228 8.5 8.5 0 01-2.038-1.534c-1.094-1.137-1.827-2.566-2.247-4.08a15.184 15.184 0 01-.495-3.172 12.14 12.14 0 01.046-2.082c.135-1.257.495-2.501 1.124-3.58a6.889 6.889 0 011.783-2.053 6.23 6.23 0 011.633-.9 5.363 5.363 0 013.522-.045c.029 0 .029 0 .045.03.015.015.045.015.06.03.045.016.104.045.165.074.239.12.479.271.704.42a6.294 6.294 0 012.097 2.502c.42.914.615 1.934.631 2.938.014 1.079-.18 2.157-.645 3.146a6.42 6.42 0 01-2.638 2.832c.09.03.18.045.271.075.225.044.449.074.688.074 1.468.045 2.892-.66 3.94-1.647.195-.18.375-.375.54-.585.225-.27.435-.54.614-.823.239-.375.435-.75.614-1.154a8.112 8.112 0 00.509-1.664c.196-1.004.211-2.022.149-3.026-.135-2.022-.673-4.045-1.842-5.724a9.054 9.054 0 00-.555-.719 9.868 9.868 0 00-1.063-1.034 8.477 8.477 0 00-1.363-.915 9.927 9.927 0 00-1.692-.598l-.3-.06c-.209-.03-.42-.044-.634-.06a8.453 8.453 0 00-1.015.016c-.704.045-1.412.16-2.112.337C5.799 1.227 2.863 3.566 1.3 6.67A11.834 11.834 0 00.238 9.801a11.81 11.81 0 00-.104 3.775c.12 1.02.374 2.023.778 2.977.227.57.511 1.124.825 1.648 1.094 1.783 2.683 3.236 4.51 4.24.688.39 1.408.69 2.157.944.226.074.45.15.689.21z"})]})}),P=r.forwardRef(function({title:t="Markdown",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#000000"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M22.27 19.385H1.73A1.73 1.73 0 010 17.655V6.345a1.73 1.73 0 011.73-1.73h20.54A1.73 1.73 0 0124 6.345v11.308a1.73 1.73 0 01-1.73 1.731zM5.769 15.923v-4.5l2.308 2.885 2.307-2.885v4.5h2.308V8.078h-2.308l-2.307 2.885-2.308-2.885H3.46v7.847zM21.232 12h-2.309V8.077h-2.307V12h-2.308l3.461 4.039z"})]})}),F=r.forwardRef(function({title:t="PHP",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#777BB4"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"})]})}),I=r.forwardRef(function({title:t="Python",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#3776AB"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z"})]})}),$=r.forwardRef(function({title:t="React",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#61DAFB"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"})]})}),K=r.forwardRef(function({title:t="Ruby",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#CC342D"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"})]})}),U=r.forwardRef(function({title:t="Rust",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#000000"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"})]})}),W=r.forwardRef(function({title:t="Sass",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#CC6699"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zM9.615 15.998c.175.645.156 1.248-.024 1.792l-.065.18c-.024.061-.052.12-.078.176-.14.29-.326.56-.555.81-.698.759-1.672 1.047-2.09.805-.45-.262-.226-1.335.584-2.19.871-.918 2.12-1.509 2.12-1.509v-.003l.108-.061zm9.911-10.861c-.542-2.133-4.077-2.834-7.422-1.645-1.989.707-4.144 1.818-5.693 3.267C4.568 8.48 4.275 9.98 4.396 10.607c.427 2.211 3.457 3.657 4.703 4.73v.006c-.367.18-3.056 1.529-3.686 2.925-.675 1.47.105 2.521.615 2.655 1.575.436 3.195-.36 4.065-1.649.84-1.261.766-2.881.404-3.676.496-.135 1.08-.195 1.83-.104 2.101.24 2.521 1.56 2.43 2.1-.09.539-.523.854-.674.944-.15.091-.195.12-.181.181.015.09.091.09.21.075.165-.03 1.096-.45 1.141-1.471.045-1.29-1.186-2.729-3.375-2.7-.9.016-1.471.091-1.875.256-.03-.045-.061-.075-.105-.105-1.35-1.455-3.855-2.475-3.75-4.41.03-.705.285-2.564 4.8-4.814 3.705-1.846 6.661-1.335 7.171-.21.733 1.604-1.576 4.59-5.431 5.024-1.47.165-2.235-.404-2.431-.615-.209-.225-.239-.24-.314-.194-.12.06-.045.255 0 .375.12.3.585.825 1.396 1.095.704.225 2.43.359 4.5-.45 2.324-.899 4.139-3.405 3.614-5.505l.073.067z"})]})}),X=r.forwardRef(function({title:t="Shell",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#FFD500"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M12 .863C5.34.863 0 6.251 0 12.98c0 .996.038 1.374.246 2.33l3.662 2.71.57 4.515h6.102l.326.227c.377.262.705.375 1.082.375.352 0 .732-.101 1.024-.313l.39-.289h6.094l.563-4.515 3.695-2.71c.208-.956.246-1.334.246-2.33C24 6.252 18.661.863 12 .863zm.996 2.258c.9 0 1.778.224 2.512.649l-2.465 12.548 3.42-12.062c1.059.36 1.863.941 2.508 1.814l.025.034-4.902 10.615 5.572-9.713.033.03c.758.708 1.247 1.567 1.492 2.648l-6.195 7.666 6.436-6.5.01.021c.253.563.417 1.36.417 1.996 0 .509-.024.712-.164 1.25l-3.554 2.602-.467 3.71h-4.475l-.517.395c-.199.158-.482.266-.682.266-.199 0-.483-.108-.682-.266l-.517-.394H6.322l-.445-3.61-3.627-2.666c-.11-.436-.16-.83-.16-1.261 0-.72.159-1.49.426-2.053l.013-.024 6.45 6.551L2.75 9.621c.25-1.063.874-2.09 1.64-2.713l5.542 9.776L4.979 6.1c.555-.814 1.45-1.455 2.546-1.827l3.424 12.069L8.355 3.816l.055-.03c.814-.45 1.598-.657 2.457-.657.195 0 .286.004.528.03l.587 13.05.46-13.059c.224-.025.309-.029.554-.029z"})]})}),q=r.forwardRef(function({title:t="Svelte",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#FF3E00"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"})]})}),G=r.forwardRef(function({title:t="SVG",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#FFB13B"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M12 0c-1.497 0-2.749.965-3.248 2.17a3.45 3.45 0 00-.238 1.416 3.459 3.459 0 00-1.168-.834 3.508 3.508 0 00-1.463-.256 3.513 3.513 0 00-2.367 1.02c-1.06 1.058-1.263 2.625-.764 3.83.179.432.47.82.82 1.154a3.49 3.49 0 00-1.402.252C.965 9.251 0 10.502 0 12c0 1.497.965 2.749 2.17 3.248.437.181.924.25 1.414.236-.357.338-.65.732-.832 1.17-.499 1.205-.295 2.772.764 3.83 1.058 1.06 2.625 1.263 3.83.764.437-.181.83-.476 1.168-.832-.014.49.057.977.238 1.414C9.251 23.035 10.502 24 12 24c1.497 0 2.749-.965 3.248-2.17a3.45 3.45 0 00.238-1.416c.338.356.73.653 1.168.834 1.205.499 2.772.295 3.83-.764 1.06-1.058 1.263-2.625.764-3.83a3.459 3.459 0 00-.834-1.168 3.45 3.45 0 001.416-.238C23.035 14.749 24 13.498 24 12c0-1.497-.965-2.749-2.17-3.248a3.455 3.455 0 00-1.414-.236c.357-.338.65-.732.832-1.17.499-1.205.295-2.772-.764-3.83a3.513 3.513 0 00-2.367-1.02 3.508 3.508 0 00-1.463.256c-.437.181-.83.475-1.168.832a3.45 3.45 0 00-.238-1.414C14.749.965 13.498 0 12 0zm-.041 1.613a1.902 1.902 0 011.387 3.246v3.893L16.098 6A1.902 1.902 0 1118 7.902l-2.752 2.752h3.893a1.902 1.902 0 110 2.692h-3.893L18 16.098A1.902 1.902 0 1116.098 18l-2.752-2.752v3.893a1.902 1.902 0 11-2.692 0v-3.893L7.902 18A1.902 1.902 0 116 16.098l2.752-2.752H4.859a1.902 1.902 0 110-2.692h3.893L6 7.902A1.902 1.902 0 117.902 6l2.752 2.752V4.859a1.902 1.902 0 011.305-3.246z"})]})}),Z=r.forwardRef(function({title:t="TypeScript",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#3178C6"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"})]})}),Y=r.forwardRef(function({title:t="YAML",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#CB171E"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"m0 .97 4.111 6.453v4.09h2.638v-4.09L11.053.969H8.214L5.58 5.125 2.965.969Zm12.093.024-4.47 10.544h2.114l.97-2.345h4.775l.804 2.345h2.26L14.255.994Zm1.133 2.225 1.463 3.87h-3.096zm3.06 9.475v10.29H24v-2.199h-5.454v-8.091zm-12.175.002v10.335h2.217v-7.129l2.32 4.792h1.746l2.4-4.96v7.295h2.127V12.696h-2.904L9.44 17.37l-2.455-4.674Z"})]})}),J=()=>e.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",clipRule:"evenodd"})}),Q=()=>e.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"})}),ee=()=>e.jsx(Z,{}),te=()=>e.jsx(B,{}),ne=()=>e.jsx($,{}),re=()=>e.jsx(j,{}),oe=()=>e.jsx(L,{}),ie=()=>e.jsx(V,{}),le=()=>e.jsx(P,{}),se=()=>e.jsx(I,{}),ae=()=>e.jsx(Y,{}),ce=()=>e.jsx(X,{}),ue=()=>e.jsx(H,{}),de=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[e.jsx("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"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),pe=()=>e.jsx(D,{}),fe=()=>e.jsx(J,{}),ge=()=>e.jsx(W,{}),he=()=>e.jsx(J,{}),me=()=>e.jsx(A,{}),ve=()=>e.jsx(k,{}),ye=()=>e.jsx(_,{}),be={ts:ee,tsx:ne,mts:ee,cts:ee,js:te,jsx:ne,mjs:te,cjs:te,css:re,scss:ge,sass:ge,less:re,html:oe,htm:oe,vue:()=>e.jsx(J,{}),svelte:()=>e.jsx(q,{}),json:ie,yaml:ae,yml:ae,toml:de,xml:oe,md:le,mdx:le,txt:fe,rst:fe,py:se,pyw:se,go:()=>e.jsx(z,{}),rs:()=>e.jsx(U,{}),c:he,cpp:he,cc:he,h:he,hpp:he,java:()=>e.jsx(J,{}),php:()=>e.jsx(F,{}),rb:()=>e.jsx(K,{}),sql:()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[e.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),e.jsx("path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}),e.jsx("path",{d:"M3 12A9 3 0 0 0 21 12"})]}),graphql:me,gql:me,sh:ce,bash:ce,zsh:ce,fish:ce,png:ue,jpg:ue,jpeg:ue,gif:ue,webp:ue,ico:ue,svg:()=>e.jsx(G,{}),gitignore:pe,gitattributes:pe,env:ye,"env.local":ye,"env.development":ye,"env.production":ye,dockerfile:ve,dockerignore:ve,config:de,rc:de},xe={"package.json":ie,"tsconfig.json":ee,"jsconfig.json":te,".gitignore":pe,".gitattributes":pe,".env":ye,".env.local":ye,".env.development":ye,".env.production":ye,dockerfile:ve,"docker-compose.yml":ve,"docker-compose.yaml":ve,"readme.md":le,license:fe,"license.md":fe};function Ce(t){const n=t.toLowerCase();if(xe[n])return xe[n]();if(t.endsWith("/"))return e.jsx(Q,{});const r=t.lastIndexOf(".");if(-1===r||r===t.length-1)return;const o=t.slice(r+1).toLowerCase(),i=be[o];return i?i():e.jsx(J,{})}const we=Q,Se=[{trigger:"@",options:[]}];function Ee(e){return e.map(e=>{if("divider"===e.type||"title"===e.type)return e;if(e.icon)return e.children?{...e,children:Ee(e.children)}:e;const t=Ce(e.label),n=e.children?Ee(e.children):void 0;return{...e,...t&&{icon:t},...n&&{children:n}}})}exports.DefaultFileIcon=J,exports.DefaultFolderIcon=we,exports.Prompt=n=>{const{initialValue:r="",onChange:o,onEnter:u,onMentionAdded:d,onMentionDeleted:p,onMentionClick:f,placeholder:g="",mentionConfigs:v=Se,theme:b,className:x="",style:C,extensionIcons:w=!1}=n,S=t.useMemo(()=>function(e,t){return t?e.map(e=>({...e,options:Ee(e.options)})):e}(v,w),[v,w]),{ref:E,isEmpty:T,handlers:O,mentions:j}=function({initialValue:e="",onChange:n,onEnter:r,onMentionAdded:o,onMentionDeleted:u,onMentionClick:d,mentionConfigs:p=c}={}){const f=t.useMemo(()=>p.map(e=>e.trigger),[p]),g=t.useMemo(()=>p.map(e=>({trigger:e.trigger,options:e.options})),[p]),v=t.useRef(null),[b,x]=t.useState(!e),C=t.useRef(null),w=t.useRef(null),S=t.useRef(null),E=t.useRef(!1),T=t.useRef([]),O=t.useRef(n),M=t.useRef(r),R=t.useRef(o),N=t.useRef(u),j=t.useRef(d);O.current=n,M.current=r,R.current=o,N.current=u,j.current=d;const k=function({initialValue:e="",maxSize:n=100}={}){const r=t.useRef([{content:e,cursorPosition:e.length}]),o=t.useRef(0),i=t.useRef(!1);return{push:t.useCallback((e,t)=>{const i=r.current[o.current];i&&i.content===e||(r.current=r.current.slice(0,o.current+1),r.current.push({content:e,cursorPosition:t}),r.current.length>n?r.current.shift():o.current++)},[n]),undo:t.useCallback(()=>o.current<=0?null:(o.current--,r.current[o.current]??null),[]),redo:t.useCallback(()=>o.current>=r.current.length-1?null:(o.current++,r.current[o.current]??null),[]),canUndo:t.useCallback(()=>o.current>0,[]),canRedo:t.useCallback(()=>o.current<r.current.length-1,[]),isUndoRedo:t.useCallback(()=>i.current,[]),setUndoRedo:t.useCallback(e=>{i.current=e},[])}}({initialValue:e}),_=function({configs:e=[]}={}){const n=t.useMemo(()=>{const t=new Map;for(const n of e)t.set(n.trigger,n.options);return 0===t.size&&t.set("@",[]),t},[e]),r=t.useMemo(()=>Array.from(n.keys()),[n]),[o,c]=t.useState({isOpen:!1,caretRect:{top:0,left:0,bottom:0,height:0},searchText:"",parentStack:[],activeTrigger:r[0]??"@"}),[u,d]=t.useState(0),[p,f]=t.useState(!1),g=n.get(o.activeTrigger)??[];t.useRef(g).current=g;const h=s(g,o.parentStack),m=o.searchText&&0===o.parentStack.length?a(g,o.searchText):h,v=t.useCallback(e=>n.get(e)??[],[n]),y=t.useCallback((e,t)=>{const r=n.get(t)??[];c({isOpen:!0,caretRect:e,searchText:"",parentStack:[],activeTrigger:t}),d(l(r))},[n]),b=t.useCallback(()=>{c(e=>({...e,isOpen:!1,searchText:"",parentStack:[]})),d(0)},[]),x=t.useCallback(e=>{c(t=>{const r=n.get(t.activeTrigger)??[],o=e?a(r,e):r;return d(l(o)),{...t,searchText:e,parentStack:[]}})},[n]),C=t.useCallback(()=>{f(!0),d(e=>{const t=i(m,e,1);return t>=0?t:e})},[m]),w=t.useCallback(()=>{f(!0),d(e=>{const t=i(m,e,-1);return t>=0?t:e})},[m]),S=t.useCallback(()=>{f(!1)},[]),E=t.useCallback(()=>m[u]??null,[m,u]),T=t.useCallback(e=>{e.children&&0!==e.children.length&&(c(t=>({...t,parentStack:[...t.parentStack,e.id],searchText:""})),d(l(e.children)))},[]),O=t.useCallback(()=>{c(e=>{if(0===e.parentStack.length)return e;const t=n.get(e.activeTrigger)??[],r=e.parentStack.slice(0,-1),o=s(t,r),i=e.parentStack[e.parentStack.length-1],l=o.findIndex(e=>e.id===i);return d(l>=0?l:0),{...e,parentStack:r}})},[n]);return{menuState:o,options:g,selectedIndex:u,activeTrigger:o.activeTrigger,openMenu:y,closeMenu:b,updateSearch:x,selectNext:C,selectPrevious:w,getSelectedOption:E,filteredOptions:m,enterSubmenu:T,exitSubmenu:O,isInSubmenu:o.parentStack.length>0,currentMenuItems:h,setSelectedIndex:d,getOptionsForTrigger:v,triggers:r,isKeyboardNavigating:p,clearKeyboardNavigation:S}}({configs:g}),D=t.useMemo(()=>({mentionStart:C,mentionEnd:w,activeTrigger:S}),[]),z=t.useCallback(()=>v.current,[]),A=t.useCallback(()=>{const e=z();return e?h.extractValueMulti(e,f):""},[z,f]),L=t.useCallback(e=>{const t=v.current,n=(r=e).replace(/\u00A0/g," ").trim()?r:"";var r;x(!n);const o=t?h.extractMentions(t,f[0]??"@"):[],i=T.current,l=o.filter(e=>!i.some(t=>t.id===e.id&&t.trigger===e.trigger)),s=i.filter(e=>!o.some(t=>t.id===e.id&&t.trigger===e.trigger));T.current=o,l.forEach(e=>R.current?.(e)),s.forEach(e=>N.current?.(e)),O.current?.(n,o)},[f]),H=t.useCallback(()=>{const e=z();e&&k.push(A(),m.getCursorPosition(e))},[z,A,k]),B=t.useCallback(()=>{L(A()),H()},[A,L,H]),V=t.useCallback((e,t)=>{const n=z();n&&(n.innerHTML=h.parseValueMulti(e,p),L(h.extractValueMulti(n,f)),requestAnimationFrame(()=>m.setCursorPosition(n,t)))},[z,p,f,L]),P=t.useCallback(()=>{k.setUndoRedo(!0);const e=k.undo();e&&V(e.content,e.cursorPosition),k.setUndoRedo(!1)},[k,V]),F=t.useCallback(()=>{k.setUndoRedo(!0);const e=k.redo();e&&V(e.content,e.cursorPosition),k.setUndoRedo(!1)},[k,V]),{handleAtomicMentionNavigation:I,updateMentionSelectionVisuals:$}=y({getElement:z}),{checkForMentionTrigger:K,clearMentionState:U}=function({getElement:e,triggers:n,mentionRefs:r,isMenuOpen:o,openMenu:i,closeMenu:l,updateSearch:s}){const a=t.useCallback(()=>{r.mentionStart.current=null,r.mentionEnd.current=null,r.activeTrigger.current=null},[r]);return{checkForMentionTrigger:t.useCallback(()=>{const t=e();if(!t)return;if(!(t.textContent||"").trim())return void(o&&(l(),a()));const c=m.getRange();if(!c)return;let u=c.startContainer,d=c.startOffset;if(u.nodeType!==Node.TEXT_NODE){if(u!==t&&u.nodeType!==Node.ELEMENT_NODE)return void(o&&(l(),a()));{const e=Array.from(t.childNodes);let n=null,r=0;for(const t of e){const o=t.textContent?.length??0;if(t.nodeType===Node.TEXT_NODE&&(r+o>=d||t===e[e.length-1])){n=t;break}r+=o}if(!n||n.nodeType!==Node.TEXT_NODE)return void(o&&(l(),a()));u=n,d=n.textContent?.length??0}}const p=u.textContent||"";let f=-1,g=null;for(let e=Math.max(d,r.mentionEnd.current??0)-1;e>=0;e--){const t=p[e]??"",r=n.find(t=>p.slice(e,e+t.length)===t);if(r&&(0===e||/\s/.test(p[e-1]??""))){f=e,g=r;break}if(/\s/.test(t))break}if(-1!==f&&g){if(d<=f)return void(o&&(l(),a()));const e=c.cloneRange();e.selectNodeContents(t),e.setEnd(u,f);const n=e.toString().length;(null===r.mentionEnd.current||d>r.mentionEnd.current)&&(r.mentionEnd.current=d);const h=p.slice(f+g.length,r.mentionEnd.current);o||(r.mentionStart.current=n,r.mentionEnd.current=d,r.activeTrigger.current=g,i(m.getCaretCoordinates(t),g)),s(h)}else o&&(l(),a())},[e,n,r,o,i,l,s,a]),clearMentionState:a}}({getElement:z,triggers:f,mentionRefs:D,isMenuOpen:_.menuState.isOpen,openMenu:_.openMenu,closeMenu:_.closeMenu,updateSearch:_.updateSearch}),{insertMention:W}=function({getElement:e,getValue:n,triggers:r,mentionConfigs:o,mentionRefs:i,onInserted:l,closeMenu:s,enterSubmenu:a}){return{insertMention:t.useCallback(t=>{const c=e(),u=m.get();if(!c||!u||null===i.mentionStart.current||!i.activeTrigger.current)return;if(t.children&&t.children.length>0)return void a(t);const d=i.activeTrigger.current,p=o.find(e=>e.trigger===d),f=p?.showTrigger??!1,g=m.getCursorPosition(c),v=i.mentionStart.current,y=n(),b=h.textPosToSerializedPosMulti(c,v,r),x=h.textPosToSerializedPosMulti(c,g,r),C=y.slice(0,b),w=y.slice(x),S=`${C}${d}[${t.id}] ${w}`,E=o.map(e=>e.trigger===d?{...e,options:[...e.options,t]}:e);c.innerHTML=h.parseValueMulti(S,E),m.setCursorPosition(c,v+(f?d.length:0)+t.label.length+1+(t.icon?1:0)),i.mentionStart.current=null,i.mentionEnd.current=null,i.activeTrigger.current=null,s(),l(S)},[e,n,r,o,i,l,s,a])}}({getElement:z,getValue:A,triggers:f,mentionConfigs:p,mentionRefs:D,onInserted:e=>{L(e),H()},closeMenu:_.closeMenu,enterSubmenu:_.enterSubmenu}),{onCopy:X,onCut:q,onPaste:G}=function({getElement:e,triggers:n,mentionConfigs:r,onContentChanged:o}){const i=t.useCallback(()=>{const e=m.get();if(!e||0===e.rangeCount)return{text:"",html:""};const t=e.getRangeAt(0);if(t.collapsed)return{text:"",html:""};const r=t.cloneContents(),o=document.createElement("div");return o.appendChild(r),{text:h.extractValueMulti(o,n),html:o.innerHTML}},[n]);return{onCopy:t.useCallback(e=>{const{text:t,html:n}=i();(t||n)&&(e.preventDefault(),e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",n))},[i]),onCut:t.useCallback(t=>{const n=e(),r=m.get();if(!n||!r)return;const{text:l,html:s}=i();(l||s)&&(t.preventDefault(),t.clipboardData.setData("text/plain",l),t.clipboardData.setData("text/html",s),r.getRangeAt(0).deleteContents(),o())},[e,i,o]),onPaste:t.useCallback(t=>{t.preventDefault();const n=e(),i=m.get();if(!n||!i||0===i.rangeCount)return;const l=t.clipboardData.getData("text/plain");if(!l)return;const s=i.getRangeAt(0);s.collapsed||s.deleteContents();const a=h.parseValueMulti(l,r),c=document.createElement("div");c.innerHTML=a;const u=Array.from(c.childNodes);let d=null;u.forEach(e=>{const t=e.cloneNode(!0);s.insertNode(t),s.setStartAfter(t),s.collapse(!0),d=t}),d&&(s.setStartAfter(d),s.collapse(!0),i.removeAllRanges(),i.addRange(s)),o()},[e,r,o])}}({getElement:z,triggers:f,mentionConfigs:p,onContentChanged:B}),Z=t.useCallback(e=>{const t=z(),n=m.getRange();if(!t||!n?.collapsed||0!==n.startOffset)return!1;const r=n.startContainer,o=r.nodeType===Node.TEXT_NODE?r.previousSibling:r.previousElementSibling;return!(!o||!h.isMentionElement(o)||(e.preventDefault(),o.remove(),L(A()),H(),0))},[z,A,L,H]),Y=t.useCallback(e=>{const t=navigator.platform.toUpperCase().includes("MAC"),n=t?e.metaKey:e.ctrlKey;if(_.menuState.isOpen)switch(e.key){case"ArrowDown":return e.preventDefault(),void _.selectNext();case"ArrowUp":return e.preventDefault(),void _.selectPrevious();case"Tab":{e.preventDefault();const t=_.getSelectedOption();return void(t&&(t.children&&t.children.length>0?_.enterSubmenu(t):W(t)))}case"Enter":{e.preventDefault();const t=_.getSelectedOption();return void(t&&W(t))}case"Escape":return e.preventDefault(),void(_.isInSubmenu?_.exitSubmenu():(_.closeMenu(),U()))}if(!(("ArrowLeft"===e.key||"ArrowRight"===e.key)&&I(e)||"Backspace"===e.key&&Z(e))){if("Backspace"===e.key&&_.menuState.isOpen&&null!==C.current){const e=z();e&&(E.current?(_.closeMenu(),U(),E.current=!1):m.getCursorPosition(e)===C.current+(S.current??f[0]??"@").length&&(_.closeMenu(),U()))}if((e.metaKey||e.ctrlKey)&&"a"===e.key?E.current=!0:"Backspace"!==e.key&&(E.current=!1),n&&"z"===e.key&&!e.shiftKey?(e.preventDefault(),P()):(n&&"z"===e.key&&e.shiftKey||e.ctrlKey&&"y"===e.key&&!t)&&(e.preventDefault(),F()),"Enter"===e.key&&!e.shiftKey){e.preventDefault();const t=z(),n=t?h.extractMentions(t,f[0]??"@"):[];M.current?.(A(),n)}}},[_,W,Z,P,F,I,z,f,A,U]),J=t.useCallback(e=>{["ArrowLeft","ArrowRight","Home","End"].includes(e.key)&&(K(),$())},[K,$]),Q=t.useCallback(()=>{$(),_.menuState.isOpen&&requestAnimationFrame(()=>{K()})},[_.menuState.isOpen,K,$]),ee=t.useCallback(e=>{const t=e.target,n=t.closest("[data-mention-delete]");if(n){e.preventDefault(),e.stopPropagation();const t=n.closest("[data-mention]");if(t){const e=z();if(!e)return;const n=m.get();if(n){const e=document.createRange();e.setStartAfter(t),e.collapse(!0),n.removeAllRanges(),n.addRange(e)}t.remove(),L(A()),H(),e.focus()}return}const r=t.closest("[data-mention]");if(!r)return;const o=z();if(!o)return;if(e.preventDefault(),j.current){const e=r.getAttribute("data-mention-id")||r.getAttribute("data-mention")||"",t=r.getAttribute("data-mention")||"",n=r.getAttribute("data-mention-trigger")||f[0]||"@";j.current({id:e,label:t,trigger:n})}const i=r.getBoundingClientRect(),l=e.clientX,s=i.left+i.width/2,a=m.get();if(!a)return;const c=document.createRange();l<s?c.setStartBefore(r):c.setStartAfter(r),c.collapse(!0),a.removeAllRanges(),a.addRange(c),o.focus()},[z,A,L,H,f]),te=t.useCallback(()=>{z()&&!k.isUndoRedo()&&(L(A()),H(),K())},[z,A,k,L,H,K]);t.useEffect(()=>{const t=v.current;t&&e&&(t.innerHTML=h.parseValueMulti(e,p),T.current=h.extractMentions(t,f[0]??"@"))},[]),t.useEffect(()=>{const e=()=>{const e=v.current;if(!e)return;const t=window.getSelection();if(t&&t.rangeCount>0){const n=t.getRangeAt(0);e.contains(n.commonAncestorContainer)?$():e.querySelectorAll("[data-mention]").forEach(e=>{e.classList.remove("mention-selected")})}};return document.addEventListener("selectionchange",e),()=>{document.removeEventListener("selectionchange",e)}},[$]);const ne=t.useCallback(()=>{_.closeMenu(),U()},[_,U]);return{ref:v,isEmpty:b,handlers:{onInput:te,onKeyDown:Y,onKeyUp:J,onSelect:Q,onMouseDown:ee,onCopy:X,onCut:q,onPaste:G},mentions:{menuState:_.menuState,filteredOptions:_.filteredOptions,selectedIndex:_.selectedIndex,selectOption:W,enterSubmenu:_.enterSubmenu,exitSubmenu:_.exitSubmenu,isInSubmenu:_.isInSubmenu,setSelectedIndex:_.setSelectedIndex,activeTrigger:_.activeTrigger,closeMenu:ne,isKeyboardNavigating:_.isKeyboardNavigating,clearKeyboardNavigation:_.clearKeyboardNavigation}}}({initialValue:r,mentionConfigs:S,onChange:o,onEnter:u,onMentionAdded:d,onMentionDeleted:p,onMentionClick:f}),k=S.find(e=>e.trigger===j.activeTrigger),_=k?.menuPosition??"below",{styles:D,className:z}=function(e){return e?"string"==typeof e&&e in N?{styles:R(N[e]),className:""}:"object"==typeof e?{styles:R(e),className:""}:{styles:{},className:""}:{styles:{},className:""}}(b),A={...D,...C},L=["prompt-container",z,x].filter(Boolean).join(" ");return e.jsxs("div",{className:L,style:A,children:[e.jsx("div",{ref:E,contentEditable:!0,...O,className:"prompt-input"}),T&&e.jsx("div",{className:"prompt-placeholder",children:g}),e.jsx(M,{isOpen:j.menuState.isOpen,caretRect:j.menuState.caretRect,preferredPosition:_,options:j.filteredOptions,selectedIndex:j.selectedIndex,onSelect:j.selectOption,onEnterSubmenu:j.enterSubmenu,onExitSubmenu:j.exitSubmenu,isInSubmenu:j.isInSubmenu,onHoverIndex:j.setSelectedIndex,onClose:j.closeMenu,themeStyles:D})]})},exports.extensionIconMap=be,exports.filenameIconMap=xe,exports.getExtensionIcon=Ce,exports.presetThemes=N,exports.themeToStyles=R;
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var r=n(t);const o=e=>"divider"!==e.type&&"title"!==e.type,i=(e,t,n)=>{const r=e.length;if(0===r)return-1;let i=t,l=0;do{i=1===n?i>=r-1?0:i+1:i<=0?r-1:i-1,l++}while(!o(e[i])&&l<r);return l>=r?-1:i},l=e=>{const t=e.findIndex(o);return t>=0?t:0},s=(e,t)=>{let n=e;for(const e of t){const t=n.find(t=>t.id===e);if(!t?.children)return[];n=t.children}return n},a=(e,t)=>{const n=t.toLowerCase(),r=[],o=e=>{for(const t of e)if("divider"!==t.type&&"title"!==t.type){if(t.label.toLowerCase().includes(n)){const e={id:t.id,label:t.label};t.icon&&(e.icon=t.icon),t.type&&(e.type=t.type),r.push(e)}t.children&&o(t.children)}};return o(e),r},c=[{trigger:"@",options:[]}],u=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d=e=>{const t=[];for(const n of e)t.push(n),n.children&&t.push(...d(n.children));return t},p=e=>{const{type:t,props:n}=e;if("string"==typeof t){const e=n||{},r=Object.entries(e).filter(([e])=>"children"!==e&&"ref"!==e).map(([e,t])=>{const n="className"===e?"class":"htmlFor"===e?"for":"strokeWidth"===e?"stroke-width":"strokeLinecap"===e?"stroke-linecap":"strokeLinejoin"===e?"stroke-linejoin":"fillRule"===e?"fill-rule":"clipRule"===e?"clip-rule":"viewBox"===e?"viewBox":e.replace(/([A-Z])/g,"-$1").toLowerCase();return"boolean"==typeof t?t?n:"":`${n}="${String(t).replace(/"/g,""")}"`}).filter(Boolean).join(" "),o=r?`<${t} ${r}>`:`<${t}>`,i=e.children;return null==i?["path","circle","ellipse","line","polygon","polyline","rect","use","img","br","hr","input"].includes(t)?r?`<${t} ${r}/>`:`<${t}/>`:`${o}</${t}>`:`${o}${f(i)}</${t}>`}if("object"==typeof t&&null!==t&&"render"in t)try{const e=(0,t.render)(n,null);return e&&"object"==typeof e&&"type"in e?p(e):""}catch{return""}if("function"==typeof t)try{if(t.prototype&&t.prototype.isReactComponent)return"";const e=t(n);return e&&"object"==typeof e&&"type"in e?p(e):""}catch{return""}return""},f=e=>null==e?"":"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(f).join(""):"object"==typeof e&&"type"in e?p(e):"",g=e=>{if(!e)return"";if("string"==typeof e)return e;try{return p(e)}catch{return""}},h={createHTML(e,t,n,r,o=!1){const i=r?`<span class="mention-pill-icon" data-mention-delete="true"><span class="mention-pill-icon-original">${g(r)}</span><span class="mention-pill-icon-delete"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path d="M18 6L6 18M6 6l12 12"/></svg></span></span>`:"";return`<span contenteditable="false" data-mention="${t}" data-mention-id="${e}" data-mention-trigger="${n}"${r?` data-icon="${encodeURIComponent(g(r))}"`:""}${o?"":' data-hide-trigger="true"'} class="mention-pill">${i}${o?`${n}${t}`:t}</span>`},isMentionElement:e=>e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-mention"),parseValueMulti(e,t){let n=e;for(const e of t){const t=d(e.options),r=e.showTrigger??!1,o=new RegExp(`${u(e.trigger)}\\[([^\\]]+)\\]`,"g");n=n.replace(o,(n,o)=>{const i=t.find(e=>e.id===o)||t.find(e=>e.label===o);return this.createHTML(i?.id||o,i?.label||o,e.trigger,i?.icon,r)})}return n},parseValueWithIcons(e,t){const n=new RegExp(`${u(t)}\\[([^\\]]+)\\]`,"g");return e.replace(n,(e,n)=>this.createHTML(n,n,t))},extractValueMulti(e,t){let n="";const r=t[0]??"@",o=e=>{if(e.nodeType===Node.TEXT_NODE)n+=e.textContent||"";else if(this.isMentionElement(e)){const t=e.getAttribute("data-mention-id")||e.getAttribute("data-mention"),o=e.getAttribute("data-mention-trigger")||r;n+=`${o}[${t}]`}else e.nodeType===Node.ELEMENT_NODE&&e.childNodes.forEach(o)};return o(e),n},extractMentions(e,t="@"){const n=[];return e.querySelectorAll("[data-mention]").forEach(e=>{const r=e.getAttribute("data-mention")||"",o=e.getAttribute("data-mention-id")||r,i=e.getAttribute("data-mention-trigger")||t;n.push({id:o,label:r,trigger:i})}),n},textPosToSerializedPosMulti(e,t,n){let r=0,o=0;const i=n[0]??"@",l=e=>{if(e.nodeType===Node.TEXT_NODE){const n=e.textContent?.length??0;if(r+n>=t)return o+=t-r,!0;r+=n,o+=n}else if(this.isMentionElement(e)){const n=e.textContent?.length??0,l=e.getAttribute("data-mention-id")||e.getAttribute("data-mention")||"",s=(e.getAttribute("data-mention-trigger")||i).length+l.length+2;if(r+n>=t)return o+=s,!0;r+=n,o+=s}else if(e.nodeType===Node.ELEMENT_NODE)for(const t of Array.from(e.childNodes))if(l(t))return!0;return!1};return l(e),o}},m={get:()=>window.getSelection(),getRange(){const e=this.get();return e&&e.rangeCount>0?e.getRangeAt(0):null},getCursorPosition(e){const t=this.getRange();if(!t)return 0;const n=t.cloneRange();return n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset),n.toString().length},setCursorPosition(e,t){const n=this.get();if(!n)return;const r=document.createRange();let o=0,i=!1;const l=e=>{if(e.nodeType===Node.TEXT_NODE){const n=e.textContent?.length??0;if(o+n>=t)return r.setStart(e,t-o),r.collapse(!0),i=!0,!0;o+=n}else if(h.isMentionElement(e)){const n=e.textContent?.length??0;if(o+n>=t)return r.setStartAfter(e),r.collapse(!0),i=!0,!0;o+=n}else if(e.nodeType===Node.ELEMENT_NODE)for(const t of Array.from(e.childNodes))if(l(t))return!0;return!1};l(e),i||(r.selectNodeContents(e),r.collapse(!1)),n.removeAllRanges(),n.addRange(r)},getCaretCoordinates(e){const t=this.getRange();if(!t)return{top:0,left:0,bottom:0,height:0};const n=t.getBoundingClientRect();if(0===n.width&&0===n.height){const t=e.getBoundingClientRect(),n=20;return{top:t.top,left:t.left,bottom:t.top+n,height:n}}return{top:n.top,left:n.left,bottom:n.bottom,height:n.height}},setAfter(e,t,n=1){const r=document.createRange();r.setStart(t,n),r.collapse(!0),e.removeAllRanges(),e.addRange(r)}};function v(e,t){const n=document.createRange();n.selectNode(e);const r=t.compareBoundaryPoints(Range.START_TO_START,n),o=t.compareBoundaryPoints(Range.END_TO_END,n);return r<=0&&o>=0}function y({getElement:e}){const n=t.useRef(null),r=t.useCallback(()=>{n.current=null},[]),o=t.useCallback((e,t,r)=>{const o=function(e,t){if(t.current)return t.current;if(!e.anchorNode||!e.focusNode)return"right";if(e.anchorNode===e.focusNode)return e.focusOffset<e.anchorOffset?"left":"right";return e.anchorNode.compareDocumentPosition(e.focusNode)&Node.DOCUMENT_POSITION_PRECEDING?"left":(Node,"right")}(e,n);n.current||(n.current=o);const i=function(e,t,n){const r=e.cloneRange();return"start"===t?function(e,t,n){const r=t.startContainer,o=t.startOffset;if("left"===n)if(r.nodeType===Node.TEXT_NODE&&o>0)e.setStart(r,o-1);else if(r.nodeType===Node.TEXT_NODE&&0===o){const t=r.previousSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,Math.max(0,(t.textContent?.length??0)-1));else{if(!t)return null;e.setStartBefore(t)}}else{if(!(r.nodeType===Node.ELEMENT_NODE&&o>0))return null;{const t=r.childNodes[o-1];if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,Math.max(0,(t.textContent?.length??0)-1));else{if(!t)return null;e.setStartBefore(t)}}}else if(r.nodeType===Node.TEXT_NODE)if(o<(r.textContent?.length??0))e.setStart(r,o+1);else{const t=r.nextSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,1);else{if(!t)return null;e.setStartAfter(t)}}else{if(r.nodeType!==Node.ELEMENT_NODE)return null;{const t=r.childNodes[o];if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,1);else{if(!t)return null;e.setStartAfter(t)}}}return e}(r,e,n):function(e,t,n){const r=t.endContainer,o=t.endOffset;if("right"===n)if(r.nodeType===Node.TEXT_NODE)if(o<(r.textContent?.length??0))e.setEnd(r,o+1);else{const t=r.nextSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setEnd(t,1);else{if(!t)return null;e.setEndAfter(t)}}else{if(r.nodeType!==Node.ELEMENT_NODE)return null;{const t=r.childNodes[o];if(t&&t.nodeType===Node.TEXT_NODE)e.setEnd(t,1);else{if(!t)return null;e.setEndAfter(t)}}}else if(r.nodeType===Node.TEXT_NODE&&o>0)e.setEnd(r,o-1);else if(r.nodeType===Node.TEXT_NODE&&0===o){const t=r.previousSibling;if(t&&t.nodeType===Node.TEXT_NODE){const n=t.textContent?.length??0;e.setEnd(t,n>0?n-1:0)}else{if(!t)return null;e.setEndBefore(t)}}else{if(!(r.nodeType===Node.ELEMENT_NODE&&o>0))return null;{const t=r.childNodes[o-1];if(t&&t.nodeType===Node.TEXT_NODE){const n=t.textContent?.length??0;e.setEnd(t,n>0?n-1:0)}else{if(!t)return null;e.setEndBefore(t)}}}return e}(r,e,n)}(t,"left"===o?"start":"end",r);return!!i&&(i.collapsed?(n.current=null,e.removeAllRanges(),e.addRange(i),!0):(e.removeAllRanges(),e.addRange(i),!0))},[]);return{handleAtomicMentionNavigation:t.useCallback(t=>{const r=e();if(!r)return!1;if(t.altKey||t.metaKey||t.ctrlKey)return!1;const i=m.get();if(!i||0===i.rangeCount)return!1;const l=i.getRangeAt(0),s="ArrowLeft"===t.key,a=t.shiftKey;if(!s&&"ArrowRight"!==t.key)return!1;let c=null;if(s){const e=l.startContainer,t=l.startOffset;if(e.nodeType===Node.TEXT_NODE&&0===t){const t=e.previousSibling;t&&h.isMentionElement(t)&&(c=t)}else if(e.nodeType===Node.ELEMENT_NODE){const n=e.childNodes[t-1];n&&h.isMentionElement(n)&&(c=n)}}else{const e=l.endContainer,t=l.endOffset;if(e.nodeType===Node.TEXT_NODE){if(t===(e.textContent?.length??0)){const t=e.nextSibling;t&&h.isMentionElement(t)&&(c=t)}}else if(e.nodeType===Node.ELEMENT_NODE){const n=e.childNodes[t];n&&h.isMentionElement(n)&&(c=n)}}if(c){if(!l.collapsed&&v(c,l)){if(t.preventDefault(),a)o(i,l,s?"left":"right");else{n.current=null;const e=document.createRange();s?e.setStart(l.startContainer,l.startOffset):e.setStart(l.endContainer,l.endOffset),e.collapse(!0),i.removeAllRanges(),i.addRange(e)}return!0}t.preventDefault();const e=document.createRange();return a?(l.collapsed&&(n.current=s?"left":"right"),s?(e.setStartBefore(c),e.setEnd(l.endContainer,l.endOffset)):(e.setStart(l.startContainer,l.startOffset),e.setEndAfter(c))):(n.current=null,s?(e.setStartBefore(c),e.collapse(!0)):(e.setStartAfter(c),e.collapse(!0))),i.removeAllRanges(),i.addRange(e),!0}if(!l.collapsed){const e=r.querySelectorAll("[data-mention]");for(const r of Array.from(e))if(v(r,l)){if(t.preventDefault(),a)o(i,l,s?"left":"right");else{n.current=null;const e=document.createRange();s?e.setStart(l.startContainer,l.startOffset):e.setStart(l.endContainer,l.endOffset),e.collapse(!0),i.removeAllRanges(),i.addRange(e)}return!0}}return!1},[e,o]),updateMentionSelectionVisuals:t.useCallback(()=>{const t=e();if(!t)return;const n=m.get(),r=t.querySelectorAll("[data-mention]");if(r.forEach(e=>{e.classList.remove("mention-selected")}),!n||0===n.rangeCount)return;const o=n.getRangeAt(0);o.collapsed||r.forEach(e=>{v(e,o)&&e.classList.add("mention-selected")})},[e]),resetSelectionDirection:r}}var b,x={exports:{}},C={};var w,S,E={};var T=(S||(S=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),x.exports=function(){if(b)return C;b=1;var e=t;function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal"),l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return C.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,C.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},C.flushSync=function(e){var t=l.T,n=o.p;try{if(l.T=null,o.p=2,e)return e()}finally{l.T=t,o.p=n,o.d.f()}},C.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,o.d.C(e,t))},C.prefetchDNS=function(e){"string"==typeof e&&o.d.D(e)},C.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=s(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?o.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:l}):"script"===n&&o.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},C.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=s(t.as,t.crossOrigin);o.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&o.d.M(e)},C.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=s(n,t.crossOrigin);o.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},C.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=s(t.as,t.crossOrigin);o.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else o.d.m(e)},C.requestFormReset=function(e){o.d.r(e)},C.unstable_batchedUpdates=function(e,t){return e(t)},C.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},C.useFormStatus=function(){return l.H.useHostTransitionStatus()},C.version="19.2.3",C}()):x.exports=(w||(w=1,"production"!==process.env.NODE_ENV&&function(){function e(){}function n(e){return""+e}function r(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}function o(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":'something with type "'+typeof e+'"'}function i(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":"string"==typeof e?JSON.stringify(e):"number"==typeof e?"`"+e+"`":'something with type "'+typeof e+'"'}function l(){var e=u.H;return null===e&&console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=t,a={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),u=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,E.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error("Target container is not a DOM element.");return function(e,t,r){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;try{n(o);var i=!1}catch(e){i=!0}return i&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object"),n(o)),{$$typeof:c,key:null==o?null:""+o,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},E.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},E.preconnect=function(e,t){"string"==typeof e&&e?null!=t&&"object"!=typeof t?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(t)):null!=t&&"string"!=typeof t.crossOrigin&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,a.d.C(e,t))},E.prefetchDNS=function(e){if("string"==typeof e&&e){if(1<arguments.length){var t=arguments[1];"object"==typeof t&&t.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(t))}}else console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e));"string"==typeof e&&a.d.D(e)},E.preinit=function(e,t){if("string"==typeof e&&e?null==t||"object"!=typeof t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(t)):"style"!==t.as&&"script"!==t.as&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),"string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,l=r(n,t.crossOrigin),s="string"==typeof t.integrity?t.integrity:void 0,c="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?a.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:l,integrity:s,fetchPriority:c}):"script"===n&&a.d.X(e,{crossOrigin:l,integrity:s,fetchPriority:c,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},E.preinitModule=function(e,t){var n="";"string"==typeof e&&e||(n+=" The `href` argument encountered was "+o(e)+"."),void 0!==t&&"object"!=typeof t?n+=" The `options` argument encountered was "+o(t)+".":t&&"as"in t&&"script"!==t.as&&(n+=" The `as` option encountered was "+i(t.as)+"."),n?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n):"script"===(n=t&&"string"==typeof t.as?t.as:"script")||(n=i(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)),"string"==typeof e&&("object"==typeof t&&null!==t?null!=t.as&&"script"!==t.as||(n=r(t.as,t.crossOrigin),a.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})):null==t&&a.d.M(e))},E.preload=function(e,t){var n="";if("string"==typeof e&&e||(n+=" The `href` argument encountered was "+o(e)+"."),null==t||"object"!=typeof t?n+=" The `options` argument encountered was "+o(t)+".":"string"==typeof t.as&&t.as||(n+=" The `as` option encountered was "+o(t.as)+"."),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),"string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var i=r(n=t.as,t.crossOrigin);a.d.L(e,n,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},E.preloadModule=function(e,t){var n="";"string"==typeof e&&e||(n+=" The `href` argument encountered was "+o(e)+"."),void 0!==t&&"object"!=typeof t?n+=" The `options` argument encountered was "+o(t)+".":t&&"as"in t&&"string"!=typeof t.as&&(n+=" The `as` option encountered was "+o(t.as)+"."),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),"string"==typeof e&&(t?(n=r(t.as,t.crossOrigin),a.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})):a.d.m(e))},E.requestFormReset=function(e){a.d.r(e)},E.unstable_batchedUpdates=function(e,t){return e(t)},E.useFormState=function(e,t,n){return l().useFormState(e,t,n)},E.useFormStatus=function(){return l().useHostTransitionStatus()},E.version="19.2.3","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),E)),x.exports);const O=()=>e.jsx("svg",{className:"mention-menu-chevron",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})}),M=({isOpen:n,caretRect:r,preferredPosition:o="below",options:i,selectedIndex:l,onSelect:s,onEnterSubmenu:a,isInSubmenu:c=!1,onHoverIndex:u,onClose:d,isKeyboardNavigating:p=!1,onMouseActivity:f,themeStyles:g})=>{const h=t.useRef(null),[m,v]=t.useState(o),[y,b]=t.useState(0),x=t.useCallback(e=>{p&&f?.(),u?.(e)},[p,f,u]);if(t.useEffect(()=>{if(!n||!d)return;const e=e=>{const t=e.target;if(h.current?.contains(t))return;const n=t.closest?.(".prompt-input");n||d()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n,d]),t.useLayoutEffect(()=>{if(!n||!h.current)return;const e=h.current.getBoundingClientRect();b(e.height);const t=window.innerHeight-r.bottom-4,i=r.top-4;v("below"===o?e.height>t&&i>t?"above":"below":e.height>i&&t>i?"below":"above")},[n,r,o,i]),t.useEffect(()=>{if(n&&h.current){const e=h.current.querySelector(`[data-index="${l}"]`);e&&e.scrollIntoView({block:"nearest"})}},[n,l]),!n||0===i.length)return null;const C=e.jsx("div",{ref:h,className:"mention-menu"+(p?" keyboard-navigating":""),style:{position:"fixed",top:Math.max(4,"below"===m?r.bottom+4:r.top-y-4),left:r.left},children:i.map((t,n)=>{const r=`${n}-${t.id}`;if("divider"===t.type)return e.jsx("div",{className:"mention-menu-divider",role:"separator"},r);if("title"===t.type)return e.jsxs("div",{className:"mention-menu-title",children:[t.icon&&e.jsx("span",{className:"mention-menu-item-icon",children:t.icon}),e.jsx("span",{className:"mention-menu-title-label",children:t.label})]},r);const o=t.children&&t.children.length>0;return e.jsxs("div",{"data-index":n,className:`mention-menu-item ${n===l?"mention-menu-item-selected":""} ${o?"mention-menu-item-has-children":""}`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),o&&a?a(t):s(t)},onMouseMove:()=>x(n),children:[t.icon&&e.jsx("span",{className:"mention-menu-item-icon",children:t.icon}),e.jsx("span",{className:"mention-menu-item-label",children:t.label}),o&&e.jsx(O,{})]},r)})});return T.createPortal(e.jsx("div",{style:g,children:C}),document.body)};function R(e){if(!e)return{};const t={};return e.backgroundColor&&(t["--prompt-background-color"]=e.backgroundColor),e.color&&(t["--prompt-color"]=e.color),e.placeholderColor&&(t["--prompt-placeholder-color"]=e.placeholderColor),e.fontSize&&(t["--prompt-font-size"]=e.fontSize),e.fontFamily&&(t["--prompt-font-family"]=e.fontFamily),e.borderRadius&&(t["--prompt-border-radius"]=e.borderRadius),e.borderColor&&(t["--prompt-border-color"]=e.borderColor),e.padding&&(t["--prompt-padding"]=e.padding),e.focusBorderColor&&(t["--prompt-focus-border-color"]=e.focusBorderColor),e.focusBoxShadow&&(t["--prompt-focus-box-shadow"]=e.focusBoxShadow),e.lineHeight&&(t["--prompt-line-height"]=e.lineHeight),e.borderWidth&&(t["--prompt-border-width"]=e.borderWidth),e.minHeight&&(t["--prompt-min-height"]=e.minHeight),e.menu&&(e.menu.backgroundColor&&(t["--prompt-mention-menu-background-color"]=e.menu.backgroundColor),e.menu.borderColor&&(t["--prompt-mention-menu-border-color"]=e.menu.borderColor),e.menu.color&&(t["--prompt-mention-menu-color"]=e.menu.color),e.menu.itemHoverColor&&(t["--prompt-mention-menu-item-hover-color"]=e.menu.itemHoverColor),e.menu.chevronColor&&(t["--prompt-mention-menu-chevron-color"]=e.menu.chevronColor),e.menu.chevronHoverColor&&(t["--prompt-mention-menu-chevron-hover-color"]=e.menu.chevronHoverColor),e.menu.minWidth&&(t["--prompt-mention-menu-min-width"]=e.menu.minWidth),e.menu.item&&(e.menu.item.height&&(t["--prompt-mention-menu-item-height"]=e.menu.item.height),e.menu.item.padding&&(t["--prompt-mention-menu-item-padding"]=e.menu.item.padding),e.menu.item.gap&&(t["--prompt-mention-menu-item-gap"]=e.menu.item.gap),e.menu.item.labelFontSize&&(t["--prompt-mention-menu-item-label-font-size"]=e.menu.item.labelFontSize),void 0!==e.menu.item.labelFontWeight&&(t["--prompt-mention-menu-item-label-font-weight"]=String(e.menu.item.labelFontWeight)),e.menu.item.iconHeight&&(t["--prompt-mention-menu-item-icon-height"]=e.menu.item.iconHeight)),e.menu.title&&(e.menu.title.padding&&(t["--prompt-mention-menu-title-padding"]=e.menu.title.padding),e.menu.title.paddingTop&&(t["--prompt-mention-menu-title-padding-top"]=e.menu.title.paddingTop),e.menu.title.height&&(t["--prompt-mention-menu-title-height"]=e.menu.title.height),e.menu.title.labelFontSize&&(t["--prompt-mention-menu-title-label-font-size"]=e.menu.title.labelFontSize),void 0!==e.menu.title.labelFontWeight&&(t["--prompt-mention-menu-title-label-font-weight"]=String(e.menu.title.labelFontWeight)),e.menu.title.labelColor&&(t["--prompt-mention-menu-title-label-color"]=e.menu.title.labelColor),e.menu.title.labelTextTransform&&(t["--prompt-mention-menu-title-label-text-transform"]=e.menu.title.labelTextTransform),e.menu.title.labelLetterSpacing&&(t["--prompt-mention-menu-title-label-letter-spacing"]=e.menu.title.labelLetterSpacing),void 0!==e.menu.title.labelOpacity&&(t["--prompt-mention-menu-title-label-opacity"]=String(e.menu.title.labelOpacity)))),e.pill&&(e.pill.backgroundColor&&(t["--prompt-mention-pill-background-color"]=e.pill.backgroundColor),e.pill.borderRadius&&(t["--prompt-mention-pill-border-radius"]=e.pill.borderRadius),e.pill.color&&(t["--prompt-mention-pill-color"]=e.pill.color),e.pill.padding&&(t["--prompt-mention-pill-padding"]=e.pill.padding),e.pill.lineHeight&&(t["--prompt-mention-pill-line-height"]=e.pill.lineHeight)),t}const N={light:{backgroundColor:"white",color:"black",placeholderColor:"#9ca3af",fontSize:"14px",fontFamily:"inherit",borderRadius:"0.375rem",borderColor:"#d1d5db",padding:"0.5rem",focusBorderColor:"#6366f1",focusBoxShadow:"0 0 0 2px rgba(99, 102, 241, 0.2)",menu:{backgroundColor:"white",borderColor:"#e5e7eb",color:"black",itemHoverColor:"#f3f4f6",chevronColor:"#9ca3af",chevronHoverColor:"#6366f1",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#9ca3af",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)",borderRadius:"9999px",color:"white",padding:"0.125rem 0.5rem"}},cursorDark:{backgroundColor:"#22242C",color:"#d8dee9",placeholderColor:"#585C65",fontSize:"13px",fontFamily:'-apple-system, "system-ui", sans-serif',borderRadius:"8px",borderColor:"#2F353F",padding:".375rem .5rem .25rem",focusBorderColor:"#2F353F",focusBoxShadow:"none",lineHeight:"1.7",menu:{backgroundColor:"#1A1C21",borderColor:"#282C35",color:"#7A88A1",itemHoverColor:"#21262E",chevronColor:"#373C48",chevronHoverColor:"#373C48",minWidth:"240px",item:{height:"20px",padding:"2px 6px",gap:"0px",labelFontSize:"12px",labelFontWeight:300,iconHeight:"12px"},title:{padding:"2px 6px",paddingTop:"2px",height:"20px",labelFontSize:"11px",labelFontWeight:300,labelColor:"#d8dee9",labelTextTransform:"none",labelLetterSpacing:"0",labelOpacity:.4}},pill:{backgroundColor:"#283B56",borderRadius:"4px",color:"#d8dee9",padding:"1px 4px 2px 4px",lineHeight:"1.4"}},githubDark:{backgroundColor:"#0d1117",color:"#c9d1d9",placeholderColor:"#484f58",fontSize:"14px",fontFamily:"inherit",borderRadius:"6px",borderColor:"#30363d",padding:"0.5rem 0.75rem",focusBorderColor:"#58a6ff",focusBoxShadow:"0 0 0 2px rgba(88, 166, 255, 0.2)",menu:{backgroundColor:"#161b22",borderColor:"#30363d",color:"#c9d1d9",itemHoverColor:"#21262d",chevronColor:"#484f58",chevronHoverColor:"#58a6ff",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#8b949e",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"#388bfd26",borderRadius:"6px",color:"#58a6ff",padding:"0.125rem 0.5rem"}},minimal:{backgroundColor:"#fafafa",color:"#18181b",placeholderColor:"#a1a1aa",fontSize:"15px",fontFamily:"inherit",borderRadius:"8px",borderColor:"#e4e4e7",padding:"0.75rem",focusBorderColor:"#18181b",focusBoxShadow:"0 0 0 2px rgba(24, 24, 27, 0.1)",menu:{backgroundColor:"#ffffff",borderColor:"#e4e4e7",color:"#3f3f46",itemHoverColor:"#f4f4f5",chevronColor:"#a1a1aa",chevronHoverColor:"#18181b",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#a1a1aa",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"#18181b",borderRadius:"4px",color:"#fafafa",padding:"0.125rem 0.5rem"}}},j=r.forwardRef(function({title:t="CSS",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#663399"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63"})]})}),k=r.forwardRef(function({title:t="Docker",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#2496ED"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"})]})}),_=r.forwardRef(function({title:t=".ENV",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#ECD53F"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M24 0v24H0V0h24ZM10.933 15.89H6.84v5.52h4.198v-.93H7.955v-1.503h2.77v-.93h-2.77v-1.224h2.978v-.934Zm2.146 0h-1.084v5.52h1.035v-3.6l2.226 3.6h1.118v-5.52h-1.036v3.686l-2.259-3.687Zm5.117 0h-1.208l1.973 5.52h1.19l1.976-5.52h-1.182l-1.352 4.085-1.397-4.086ZM5.4 19.68H3.72v1.68H5.4v-1.68Z"})]})}),D=r.forwardRef(function({title:t="Git",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#F05032"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M23.546 10.93L13.067.452c-.604-.603-1.582-.603-2.188 0L8.708 2.627l2.76 2.76c.645-.215 1.379-.07 1.889.441.516.515.658 1.258.438 1.9l2.658 2.66c.645-.223 1.387-.078 1.9.435.721.72.721 1.884 0 2.604-.719.719-1.881.719-2.6 0-.539-.541-.674-1.337-.404-1.996L12.86 8.955v6.525c.176.086.342.203.488.348.713.721.713 1.883 0 2.6-.719.721-1.889.721-2.609 0-.719-.719-.719-1.879 0-2.598.182-.18.387-.316.605-.406V8.835c-.217-.091-.424-.222-.6-.401-.545-.545-.676-1.342-.396-2.009L7.636 3.7.45 10.881c-.6.605-.6 1.584 0 2.189l10.48 10.477c.604.604 1.582.604 2.186 0l10.43-10.43c.605-.603.605-1.582 0-2.187"})]})}),z=r.forwardRef(function({title:t="Go",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#00ADD8"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"})]})}),A=r.forwardRef(function({title:t="GraphQL",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#E10098"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"})]})}),L=r.forwardRef(function({title:t="HTML5",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#E34F26"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438L1.5 0zm7.031 9.75l-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157H8.531z"})]})}),H=r.forwardRef(function({title:t="ImageJ",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#00D8E0"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M13.1286 17.5084h-8.072a.187.187 0 0 1-.187-.187v-.4442a.187.187 0 0 1 .187-.187h8.0721a.187.187 0 0 1 .187.187v.4442a.1872.1872 0 0 1-.1871.187zm5.6234-12.195c-1.4233.0033-4.2184-.0098-5.6414-.0065a.4035.4035 0 0 0-.4035.4035v3.6061c0 .2229.1807.4035.4035.4035h1.7475v8.19a1.8275 1.8275 0 0 1-.9112 1.5761 1.8277 1.8277 0 0 1-1.8224 0 1.8276 1.8276 0 0 1-.9113-1.5784H6.941c0 2.1705 1.1677 4.193 3.0473 5.2782.9398.5428 1.9936.8141 3.0474.8141s2.1076-.2713 3.0474-.8139c1.8795-1.0837 3.0444-3.1089 3.0473-5.274V5.692a.3785.3785 0 0 0-.3784-.3786zM7.4546 15.2306h3.276a.6403.6403 0 0 0 .6403-.6403V.6403A.6403.6403 0 0 0 10.7306 0h-3.276a.6403.6403 0 0 0-.6403.6403v13.95c0 .3536.2867.6403.6403.6403z"})]})}),B=r.forwardRef(function({title:t="JavaScript",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#F7DF1E"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179l.004-.056z"})]})}),V=r.forwardRef(function({title:t="JSON",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#000000"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M12.043 23.968c.479-.004.953-.029 1.426-.094a11.805 11.805 0 003.146-.863 12.404 12.404 0 003.793-2.542 11.977 11.977 0 002.44-3.427 11.794 11.794 0 001.02-3.476c.149-1.16.135-2.346-.045-3.499a11.96 11.96 0 00-.793-2.788 11.197 11.197 0 00-.854-1.617c-1.168-1.837-2.861-3.314-4.81-4.3a12.835 12.835 0 00-2.172-.87h-.005c.119.063.24.132.345.201.12.074.239.146.351.225a8.93 8.93 0 011.559 1.33c1.063 1.145 1.797 2.548 2.218 4.041.284.982.434 1.998.495 3.017.044.743.044 1.491-.047 2.229-.149 1.27-.554 2.51-1.228 3.596a7.475 7.475 0 01-1.903 2.084c-1.244.928-2.877 1.482-4.436 1.114a3.916 3.916 0 01-.748-.258 4.692 4.692 0 01-.779-.45 6.08 6.08 0 01-1.244-1.105 6.507 6.507 0 01-1.049-1.747 7.366 7.366 0 01-.494-2.54c-.03-1.273.225-2.553.854-3.67a6.43 6.43 0 011.663-1.918c.225-.178.464-.333.704-.479l.016-.007a5.121 5.121 0 00-1.441-.12 4.963 4.963 0 00-1.228.24c-.359.12-.704.27-1.019.45a6.146 6.146 0 00-.733.494c-.211.18-.42.36-.615.555-1.123 1.153-1.768 2.682-2.022 4.256-.15.973-.15 1.96-.091 2.95.105 1.395.391 2.787.945 4.062a8.518 8.518 0 001.348 2.173 8.14 8.14 0 003.132 2.23 7.934 7.934 0 002.113.54c.074.015.149.015.209.015zm-2.934-.398a4.102 4.102 0 01-.45-.228 8.5 8.5 0 01-2.038-1.534c-1.094-1.137-1.827-2.566-2.247-4.08a15.184 15.184 0 01-.495-3.172 12.14 12.14 0 01.046-2.082c.135-1.257.495-2.501 1.124-3.58a6.889 6.889 0 011.783-2.053 6.23 6.23 0 011.633-.9 5.363 5.363 0 013.522-.045c.029 0 .029 0 .045.03.015.015.045.015.06.03.045.016.104.045.165.074.239.12.479.271.704.42a6.294 6.294 0 012.097 2.502c.42.914.615 1.934.631 2.938.014 1.079-.18 2.157-.645 3.146a6.42 6.42 0 01-2.638 2.832c.09.03.18.045.271.075.225.044.449.074.688.074 1.468.045 2.892-.66 3.94-1.647.195-.18.375-.375.54-.585.225-.27.435-.54.614-.823.239-.375.435-.75.614-1.154a8.112 8.112 0 00.509-1.664c.196-1.004.211-2.022.149-3.026-.135-2.022-.673-4.045-1.842-5.724a9.054 9.054 0 00-.555-.719 9.868 9.868 0 00-1.063-1.034 8.477 8.477 0 00-1.363-.915 9.927 9.927 0 00-1.692-.598l-.3-.06c-.209-.03-.42-.044-.634-.06a8.453 8.453 0 00-1.015.016c-.704.045-1.412.16-2.112.337C5.799 1.227 2.863 3.566 1.3 6.67A11.834 11.834 0 00.238 9.801a11.81 11.81 0 00-.104 3.775c.12 1.02.374 2.023.778 2.977.227.57.511 1.124.825 1.648 1.094 1.783 2.683 3.236 4.51 4.24.688.39 1.408.69 2.157.944.226.074.45.15.689.21z"})]})}),P=r.forwardRef(function({title:t="Markdown",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#000000"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M22.27 19.385H1.73A1.73 1.73 0 010 17.655V6.345a1.73 1.73 0 011.73-1.73h20.54A1.73 1.73 0 0124 6.345v11.308a1.73 1.73 0 01-1.73 1.731zM5.769 15.923v-4.5l2.308 2.885 2.307-2.885v4.5h2.308V8.078h-2.308l-2.307 2.885-2.308-2.885H3.46v7.847zM21.232 12h-2.309V8.077h-2.307V12h-2.308l3.461 4.039z"})]})}),F=r.forwardRef(function({title:t="PHP",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#777BB4"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"})]})}),I=r.forwardRef(function({title:t="Python",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#3776AB"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z"})]})}),$=r.forwardRef(function({title:t="React",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#61DAFB"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"})]})}),K=r.forwardRef(function({title:t="Ruby",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#CC342D"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"})]})}),U=r.forwardRef(function({title:t="Rust",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#000000"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"})]})}),W=r.forwardRef(function({title:t="Sass",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#CC6699"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zM9.615 15.998c.175.645.156 1.248-.024 1.792l-.065.18c-.024.061-.052.12-.078.176-.14.29-.326.56-.555.81-.698.759-1.672 1.047-2.09.805-.45-.262-.226-1.335.584-2.19.871-.918 2.12-1.509 2.12-1.509v-.003l.108-.061zm9.911-10.861c-.542-2.133-4.077-2.834-7.422-1.645-1.989.707-4.144 1.818-5.693 3.267C4.568 8.48 4.275 9.98 4.396 10.607c.427 2.211 3.457 3.657 4.703 4.73v.006c-.367.18-3.056 1.529-3.686 2.925-.675 1.47.105 2.521.615 2.655 1.575.436 3.195-.36 4.065-1.649.84-1.261.766-2.881.404-3.676.496-.135 1.08-.195 1.83-.104 2.101.24 2.521 1.56 2.43 2.1-.09.539-.523.854-.674.944-.15.091-.195.12-.181.181.015.09.091.09.21.075.165-.03 1.096-.45 1.141-1.471.045-1.29-1.186-2.729-3.375-2.7-.9.016-1.471.091-1.875.256-.03-.045-.061-.075-.105-.105-1.35-1.455-3.855-2.475-3.75-4.41.03-.705.285-2.564 4.8-4.814 3.705-1.846 6.661-1.335 7.171-.21.733 1.604-1.576 4.59-5.431 5.024-1.47.165-2.235-.404-2.431-.615-.209-.225-.239-.24-.314-.194-.12.06-.045.255 0 .375.12.3.585.825 1.396 1.095.704.225 2.43.359 4.5-.45 2.324-.899 4.139-3.405 3.614-5.505l.073.067z"})]})}),X=r.forwardRef(function({title:t="Shell",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#FFD500"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M12 .863C5.34.863 0 6.251 0 12.98c0 .996.038 1.374.246 2.33l3.662 2.71.57 4.515h6.102l.326.227c.377.262.705.375 1.082.375.352 0 .732-.101 1.024-.313l.39-.289h6.094l.563-4.515 3.695-2.71c.208-.956.246-1.334.246-2.33C24 6.252 18.661.863 12 .863zm.996 2.258c.9 0 1.778.224 2.512.649l-2.465 12.548 3.42-12.062c1.059.36 1.863.941 2.508 1.814l.025.034-4.902 10.615 5.572-9.713.033.03c.758.708 1.247 1.567 1.492 2.648l-6.195 7.666 6.436-6.5.01.021c.253.563.417 1.36.417 1.996 0 .509-.024.712-.164 1.25l-3.554 2.602-.467 3.71h-4.475l-.517.395c-.199.158-.482.266-.682.266-.199 0-.483-.108-.682-.266l-.517-.394H6.322l-.445-3.61-3.627-2.666c-.11-.436-.16-.83-.16-1.261 0-.72.159-1.49.426-2.053l.013-.024 6.45 6.551L2.75 9.621c.25-1.063.874-2.09 1.64-2.713l5.542 9.776L4.979 6.1c.555-.814 1.45-1.455 2.546-1.827l3.424 12.069L8.355 3.816l.055-.03c.814-.45 1.598-.657 2.457-.657.195 0 .286.004.528.03l.587 13.05.46-13.059c.224-.025.309-.029.554-.029z"})]})}),q=r.forwardRef(function({title:t="Svelte",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#FF3E00"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"})]})}),G=r.forwardRef(function({title:t="SVG",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#FFB13B"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M12 0c-1.497 0-2.749.965-3.248 2.17a3.45 3.45 0 00-.238 1.416 3.459 3.459 0 00-1.168-.834 3.508 3.508 0 00-1.463-.256 3.513 3.513 0 00-2.367 1.02c-1.06 1.058-1.263 2.625-.764 3.83.179.432.47.82.82 1.154a3.49 3.49 0 00-1.402.252C.965 9.251 0 10.502 0 12c0 1.497.965 2.749 2.17 3.248.437.181.924.25 1.414.236-.357.338-.65.732-.832 1.17-.499 1.205-.295 2.772.764 3.83 1.058 1.06 2.625 1.263 3.83.764.437-.181.83-.476 1.168-.832-.014.49.057.977.238 1.414C9.251 23.035 10.502 24 12 24c1.497 0 2.749-.965 3.248-2.17a3.45 3.45 0 00.238-1.416c.338.356.73.653 1.168.834 1.205.499 2.772.295 3.83-.764 1.06-1.058 1.263-2.625.764-3.83a3.459 3.459 0 00-.834-1.168 3.45 3.45 0 001.416-.238C23.035 14.749 24 13.498 24 12c0-1.497-.965-2.749-2.17-3.248a3.455 3.455 0 00-1.414-.236c.357-.338.65-.732.832-1.17.499-1.205.295-2.772-.764-3.83a3.513 3.513 0 00-2.367-1.02 3.508 3.508 0 00-1.463.256c-.437.181-.83.475-1.168.832a3.45 3.45 0 00-.238-1.414C14.749.965 13.498 0 12 0zm-.041 1.613a1.902 1.902 0 011.387 3.246v3.893L16.098 6A1.902 1.902 0 1118 7.902l-2.752 2.752h3.893a1.902 1.902 0 110 2.692h-3.893L18 16.098A1.902 1.902 0 1116.098 18l-2.752-2.752v3.893a1.902 1.902 0 11-2.692 0v-3.893L7.902 18A1.902 1.902 0 116 16.098l2.752-2.752H4.859a1.902 1.902 0 110-2.692h3.893L6 7.902A1.902 1.902 0 117.902 6l2.752 2.752V4.859a1.902 1.902 0 011.305-3.246z"})]})}),Z=r.forwardRef(function({title:t="TypeScript",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#3178C6"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"})]})}),Y=r.forwardRef(function({title:t="YAML",color:n="currentColor",size:r=24,...o},i){return"default"===n&&(n="#CB171E"),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:n,viewBox:"0 0 24 24",ref:i,...o,children:[e.jsx("title",{children:t}),e.jsx("path",{d:"m0 .97 4.111 6.453v4.09h2.638v-4.09L11.053.969H8.214L5.58 5.125 2.965.969Zm12.093.024-4.47 10.544h2.114l.97-2.345h4.775l.804 2.345h2.26L14.255.994Zm1.133 2.225 1.463 3.87h-3.096zm3.06 9.475v10.29H24v-2.199h-5.454v-8.091zm-12.175.002v10.335h2.217v-7.129l2.32 4.792h1.746l2.4-4.96v7.295h2.127V12.696h-2.904L9.44 17.37l-2.455-4.674Z"})]})}),J=()=>e.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",clipRule:"evenodd"})}),Q=()=>e.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"})}),ee=()=>e.jsx(Z,{}),te=()=>e.jsx(B,{}),ne=()=>e.jsx($,{}),re=()=>e.jsx(j,{}),oe=()=>e.jsx(L,{}),ie=()=>e.jsx(V,{}),le=()=>e.jsx(P,{}),se=()=>e.jsx(I,{}),ae=()=>e.jsx(Y,{}),ce=()=>e.jsx(X,{}),ue=()=>e.jsx(H,{}),de=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[e.jsx("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"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),pe=()=>e.jsx(D,{}),fe=()=>e.jsx(J,{}),ge=()=>e.jsx(W,{}),he=()=>e.jsx(J,{}),me=()=>e.jsx(A,{}),ve=()=>e.jsx(k,{}),ye=()=>e.jsx(_,{}),be={ts:ee,tsx:ne,mts:ee,cts:ee,js:te,jsx:ne,mjs:te,cjs:te,css:re,scss:ge,sass:ge,less:re,html:oe,htm:oe,vue:()=>e.jsx(J,{}),svelte:()=>e.jsx(q,{}),json:ie,yaml:ae,yml:ae,toml:de,xml:oe,md:le,mdx:le,txt:fe,rst:fe,py:se,pyw:se,go:()=>e.jsx(z,{}),rs:()=>e.jsx(U,{}),c:he,cpp:he,cc:he,h:he,hpp:he,java:()=>e.jsx(J,{}),php:()=>e.jsx(F,{}),rb:()=>e.jsx(K,{}),sql:()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[e.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),e.jsx("path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}),e.jsx("path",{d:"M3 12A9 3 0 0 0 21 12"})]}),graphql:me,gql:me,sh:ce,bash:ce,zsh:ce,fish:ce,png:ue,jpg:ue,jpeg:ue,gif:ue,webp:ue,ico:ue,svg:()=>e.jsx(G,{}),gitignore:pe,gitattributes:pe,env:ye,"env.local":ye,"env.development":ye,"env.production":ye,dockerfile:ve,dockerignore:ve,config:de,rc:de},xe={"package.json":ie,"tsconfig.json":ee,"jsconfig.json":te,".gitignore":pe,".gitattributes":pe,".env":ye,".env.local":ye,".env.development":ye,".env.production":ye,dockerfile:ve,"docker-compose.yml":ve,"docker-compose.yaml":ve,"readme.md":le,license:fe,"license.md":fe};function Ce(t){const n=t.toLowerCase();if(xe[n])return xe[n]();if(t.endsWith("/"))return e.jsx(Q,{});const r=t.lastIndexOf(".");if(-1===r||r===t.length-1)return;const o=t.slice(r+1).toLowerCase(),i=be[o];return i?i():e.jsx(J,{})}const we=Q,Se=[{trigger:"@",options:[]}];function Ee(e){return e.map(e=>{if("divider"===e.type||"title"===e.type)return e;if(e.icon)return e.children?{...e,children:Ee(e.children)}:e;const t=Ce(e.label),n=e.children?Ee(e.children):void 0;return{...e,...t&&{icon:t},...n&&{children:n}}})}exports.DefaultFileIcon=J,exports.DefaultFolderIcon=we,exports.Prompt=n=>{const{initialValue:r="",onChange:o,onEnter:u,onMentionAdded:d,onMentionDeleted:p,onMentionClick:f,placeholder:g="",mentionConfigs:v=Se,theme:b,className:x="",style:C,extensionIcons:w=!1}=n,S=t.useMemo(()=>function(e,t){return t?e.map(e=>({...e,options:Ee(e.options)})):e}(v,w),[v,w]),{ref:E,isEmpty:T,handlers:O,mentions:j}=function({initialValue:e="",onChange:n,onEnter:r,onMentionAdded:o,onMentionDeleted:u,onMentionClick:d,mentionConfigs:p=c}={}){const f=t.useMemo(()=>p.map(e=>e.trigger),[p]),g=t.useMemo(()=>p.map(e=>({trigger:e.trigger,options:e.options})),[p]),v=t.useRef(null),[b,x]=t.useState(!e),C=t.useRef(null),w=t.useRef(null),S=t.useRef(null),E=t.useRef(!1),T=t.useRef([]),O=t.useRef(n),M=t.useRef(r),R=t.useRef(o),N=t.useRef(u),j=t.useRef(d);O.current=n,M.current=r,R.current=o,N.current=u,j.current=d;const k=function({initialValue:e="",maxSize:n=100}={}){const r=t.useRef([{content:e,cursorPosition:e.length}]),o=t.useRef(0),i=t.useRef(!1);return{push:t.useCallback((e,t)=>{const i=r.current[o.current];i&&i.content===e||(r.current=r.current.slice(0,o.current+1),r.current.push({content:e,cursorPosition:t}),r.current.length>n?r.current.shift():o.current++)},[n]),undo:t.useCallback(()=>o.current<=0?null:(o.current--,r.current[o.current]??null),[]),redo:t.useCallback(()=>o.current>=r.current.length-1?null:(o.current++,r.current[o.current]??null),[]),canUndo:t.useCallback(()=>o.current>0,[]),canRedo:t.useCallback(()=>o.current<r.current.length-1,[]),isUndoRedo:t.useCallback(()=>i.current,[]),setUndoRedo:t.useCallback(e=>{i.current=e},[])}}({initialValue:e}),_=function({configs:e=[]}={}){const n=t.useMemo(()=>{const t=new Map;for(const n of e)t.set(n.trigger,n.options);return 0===t.size&&t.set("@",[]),t},[e]),r=t.useMemo(()=>Array.from(n.keys()),[n]),[o,c]=t.useState({isOpen:!1,caretRect:{top:0,left:0,bottom:0,height:0},searchText:"",parentStack:[],activeTrigger:r[0]??"@"}),[u,d]=t.useState(0),[p,f]=t.useState(!1),g=n.get(o.activeTrigger)??[];t.useRef(g).current=g;const h=s(g,o.parentStack),m=o.searchText&&0===o.parentStack.length?a(g,o.searchText):h,v=t.useCallback(e=>n.get(e)??[],[n]),y=t.useCallback((e,t)=>{const r=n.get(t)??[];c({isOpen:!0,caretRect:e,searchText:"",parentStack:[],activeTrigger:t}),d(l(r))},[n]),b=t.useCallback(()=>{c(e=>({...e,isOpen:!1,searchText:"",parentStack:[]})),d(0)},[]),x=t.useCallback(e=>{c(t=>{const r=n.get(t.activeTrigger)??[],o=e?a(r,e):r;return d(l(o)),{...t,searchText:e,parentStack:[]}})},[n]),C=t.useCallback(()=>{f(!0),d(e=>{const t=i(m,e,1);return t>=0?t:e})},[m]),w=t.useCallback(()=>{f(!0),d(e=>{const t=i(m,e,-1);return t>=0?t:e})},[m]),S=t.useCallback(()=>{f(!1)},[]),E=t.useCallback(()=>m[u]??null,[m,u]),T=t.useCallback(e=>{e.children&&0!==e.children.length&&(c(t=>({...t,parentStack:[...t.parentStack,e.id],searchText:""})),d(l(e.children)))},[]),O=t.useCallback(()=>{c(e=>{if(0===e.parentStack.length)return e;const t=n.get(e.activeTrigger)??[],r=e.parentStack.slice(0,-1),o=s(t,r),i=e.parentStack[e.parentStack.length-1],l=o.findIndex(e=>e.id===i);return d(l>=0?l:0),{...e,parentStack:r}})},[n]);return{menuState:o,options:g,selectedIndex:u,activeTrigger:o.activeTrigger,openMenu:y,closeMenu:b,updateSearch:x,selectNext:C,selectPrevious:w,getSelectedOption:E,filteredOptions:m,enterSubmenu:T,exitSubmenu:O,isInSubmenu:o.parentStack.length>0,currentMenuItems:h,setSelectedIndex:d,getOptionsForTrigger:v,triggers:r,isKeyboardNavigating:p,clearKeyboardNavigation:S}}({configs:g}),D=t.useMemo(()=>({mentionStart:C,mentionEnd:w,activeTrigger:S}),[]),z=t.useCallback(()=>v.current,[]),A=t.useCallback(()=>{const e=z();return e?h.extractValueMulti(e,f):""},[z,f]),L=t.useCallback(e=>{const t=v.current,n=(r=e).replace(/\u00A0/g," ").trim()?r:"";var r;x(!n);const o=t?h.extractMentions(t,f[0]??"@"):[],i=T.current,l=o.filter(e=>!i.some(t=>t.id===e.id&&t.trigger===e.trigger)),s=i.filter(e=>!o.some(t=>t.id===e.id&&t.trigger===e.trigger));T.current=o,l.forEach(e=>R.current?.(e)),s.forEach(e=>N.current?.(e)),O.current?.(n,o)},[f]),H=t.useCallback(()=>{const e=z();e&&k.push(A(),m.getCursorPosition(e))},[z,A,k]),B=t.useCallback(()=>{L(A()),H()},[A,L,H]),V=t.useCallback((e,t)=>{const n=z();n&&(n.innerHTML=h.parseValueMulti(e,p),L(h.extractValueMulti(n,f)),requestAnimationFrame(()=>m.setCursorPosition(n,t)))},[z,p,f,L]),P=t.useCallback(()=>{k.setUndoRedo(!0);const e=k.undo();e&&V(e.content,e.cursorPosition),k.setUndoRedo(!1)},[k,V]),F=t.useCallback(()=>{k.setUndoRedo(!0);const e=k.redo();e&&V(e.content,e.cursorPosition),k.setUndoRedo(!1)},[k,V]),{handleAtomicMentionNavigation:I,updateMentionSelectionVisuals:$}=y({getElement:z}),{checkForMentionTrigger:K,clearMentionState:U}=function({getElement:e,triggers:n,mentionRefs:r,isMenuOpen:o,openMenu:i,closeMenu:l,updateSearch:s}){const a=t.useCallback(()=>{r.mentionStart.current=null,r.mentionEnd.current=null,r.activeTrigger.current=null},[r]);return{checkForMentionTrigger:t.useCallback(()=>{const t=e();if(!t)return;if(!(t.textContent||"").trim())return void(o&&(l(),a()));const c=m.getRange();if(!c)return;let u=c.startContainer,d=c.startOffset;if(u.nodeType!==Node.TEXT_NODE){if(u!==t&&u.nodeType!==Node.ELEMENT_NODE)return void(o&&(l(),a()));{const e=Array.from(t.childNodes);let n=null,r=0;for(const t of e){const o=t.textContent?.length??0;if(t.nodeType===Node.TEXT_NODE&&(r+o>=d||t===e[e.length-1])){n=t;break}r+=o}if(!n||n.nodeType!==Node.TEXT_NODE)return void(o&&(l(),a()));u=n,d=n.textContent?.length??0}}const p=u.textContent||"";let f=-1,g=null;for(let e=Math.max(d,r.mentionEnd.current??0)-1;e>=0;e--){const t=p[e]??"",r=n.find(t=>p.slice(e,e+t.length)===t);if(r&&(0===e||/\s/.test(p[e-1]??""))){f=e,g=r;break}if(/\s/.test(t))break}if(-1!==f&&g){if(d<=f)return void(o&&(l(),a()));const e=c.cloneRange();e.selectNodeContents(t),e.setEnd(u,f);const n=e.toString().length;(null===r.mentionEnd.current||d>r.mentionEnd.current)&&(r.mentionEnd.current=d);const h=p.slice(f+g.length,r.mentionEnd.current);o||(r.mentionStart.current=n,r.mentionEnd.current=d,r.activeTrigger.current=g,i(m.getCaretCoordinates(t),g)),s(h)}else o&&(l(),a())},[e,n,r,o,i,l,s,a]),clearMentionState:a}}({getElement:z,triggers:f,mentionRefs:D,isMenuOpen:_.menuState.isOpen,openMenu:_.openMenu,closeMenu:_.closeMenu,updateSearch:_.updateSearch}),{insertMention:W}=function({getElement:e,getValue:n,triggers:r,mentionConfigs:o,mentionRefs:i,onInserted:l,closeMenu:s,enterSubmenu:a}){return{insertMention:t.useCallback(t=>{const c=e(),u=m.get();if(!c||!u||null===i.mentionStart.current||!i.activeTrigger.current)return;if(t.children&&t.children.length>0)return void a(t);const d=i.activeTrigger.current,p=o.find(e=>e.trigger===d),f=p?.showTrigger??!1,g=m.getCursorPosition(c),v=i.mentionStart.current,y=n(),b=h.textPosToSerializedPosMulti(c,v,r),x=h.textPosToSerializedPosMulti(c,g,r),C=y.slice(0,b),w=y.slice(x),S=`${C}${d}[${t.id}] ${w}`,E=o.map(e=>e.trigger===d?{...e,options:[...e.options,t]}:e);c.innerHTML=h.parseValueMulti(S,E),m.setCursorPosition(c,v+(f?d.length:0)+t.label.length+1+(t.icon?1:0)),i.mentionStart.current=null,i.mentionEnd.current=null,i.activeTrigger.current=null,s(),l(S)},[e,n,r,o,i,l,s,a])}}({getElement:z,getValue:A,triggers:f,mentionConfigs:p,mentionRefs:D,onInserted:e=>{L(e),H()},closeMenu:_.closeMenu,enterSubmenu:_.enterSubmenu}),{onCopy:X,onCut:q,onPaste:G}=function({getElement:e,triggers:n,mentionConfigs:r,onContentChanged:o}){const i=t.useCallback(()=>{const e=m.get();if(!e||0===e.rangeCount)return{text:"",html:""};const t=e.getRangeAt(0);if(t.collapsed)return{text:"",html:""};const r=t.cloneContents(),o=document.createElement("div");return o.appendChild(r),{text:h.extractValueMulti(o,n),html:o.innerHTML}},[n]);return{onCopy:t.useCallback(e=>{const{text:t,html:n}=i();(t||n)&&(e.preventDefault(),e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",n))},[i]),onCut:t.useCallback(t=>{const n=e(),r=m.get();if(!n||!r)return;const{text:l,html:s}=i();(l||s)&&(t.preventDefault(),t.clipboardData.setData("text/plain",l),t.clipboardData.setData("text/html",s),r.getRangeAt(0).deleteContents(),o())},[e,i,o]),onPaste:t.useCallback(t=>{t.preventDefault();const n=e(),i=m.get();if(!n||!i||0===i.rangeCount)return;const l=t.clipboardData.getData("text/plain");if(!l)return;const s=i.getRangeAt(0);s.collapsed||s.deleteContents();const a=h.parseValueMulti(l,r),c=document.createElement("div");c.innerHTML=a;const u=Array.from(c.childNodes);let d=null;u.forEach(e=>{const t=e.cloneNode(!0);s.insertNode(t),s.setStartAfter(t),s.collapse(!0),d=t}),d&&(s.setStartAfter(d),s.collapse(!0),i.removeAllRanges(),i.addRange(s)),o()},[e,r,o])}}({getElement:z,triggers:f,mentionConfigs:p,onContentChanged:B}),Z=t.useCallback(e=>{const t=z(),n=m.getRange();if(!t||!n?.collapsed||0!==n.startOffset)return!1;const r=n.startContainer,o=r.nodeType===Node.TEXT_NODE?r.previousSibling:r.previousElementSibling;return!(!o||!h.isMentionElement(o)||(e.preventDefault(),o.remove(),L(A()),H(),0))},[z,A,L,H]),Y=t.useCallback(e=>{const t=navigator.platform.toUpperCase().includes("MAC"),n=t?e.metaKey:e.ctrlKey;if(_.menuState.isOpen)switch(e.key){case"ArrowDown":return e.preventDefault(),void _.selectNext();case"ArrowUp":return e.preventDefault(),void _.selectPrevious();case"Tab":{e.preventDefault();const t=_.getSelectedOption();return void(t&&(t.children&&t.children.length>0?_.enterSubmenu(t):W(t)))}case"Enter":{e.preventDefault();const t=_.getSelectedOption();return void(t&&W(t))}case"Escape":return e.preventDefault(),void(_.isInSubmenu?_.exitSubmenu():(_.closeMenu(),U()))}if(!(("ArrowLeft"===e.key||"ArrowRight"===e.key)&&I(e)||"Backspace"===e.key&&Z(e))){if("Backspace"===e.key&&_.menuState.isOpen&&null!==C.current){const e=z();e&&(E.current?(_.closeMenu(),U(),E.current=!1):m.getCursorPosition(e)===C.current+(S.current??f[0]??"@").length&&(_.closeMenu(),U()))}if((e.metaKey||e.ctrlKey)&&"a"===e.key?E.current=!0:"Backspace"!==e.key&&(E.current=!1),n&&"z"===e.key&&!e.shiftKey?(e.preventDefault(),P()):(n&&"z"===e.key&&e.shiftKey||e.ctrlKey&&"y"===e.key&&!t)&&(e.preventDefault(),F()),"Enter"===e.key&&!e.shiftKey){e.preventDefault();const t=z(),n=t?h.extractMentions(t,f[0]??"@"):[];M.current?.(A(),n)}}},[_,W,Z,P,F,I,z,f,A,U]),J=t.useCallback(e=>{["ArrowLeft","ArrowRight","Home","End"].includes(e.key)&&(K(),$())},[K,$]),Q=t.useCallback(()=>{$(),_.menuState.isOpen&&requestAnimationFrame(()=>{K()})},[_.menuState.isOpen,K,$]),ee=t.useCallback(e=>{const t=e.target,n=t.closest("[data-mention-delete]");if(n){e.preventDefault(),e.stopPropagation();const t=n.closest("[data-mention]");if(t){const e=z();if(!e)return;const n=m.get();if(n){const e=document.createRange();e.setStartAfter(t),e.collapse(!0),n.removeAllRanges(),n.addRange(e)}t.remove(),L(A()),H(),e.focus()}return}const r=t.closest("[data-mention]");if(!r)return;const o=z();if(!o)return;if(e.preventDefault(),j.current){const e=r.getAttribute("data-mention-id")||r.getAttribute("data-mention")||"",t=r.getAttribute("data-mention")||"",n=r.getAttribute("data-mention-trigger")||f[0]||"@";j.current({id:e,label:t,trigger:n})}const i=r.getBoundingClientRect(),l=e.clientX,s=i.left+i.width/2,a=m.get();if(!a)return;const c=document.createRange();l<s?c.setStartBefore(r):c.setStartAfter(r),c.collapse(!0),a.removeAllRanges(),a.addRange(c),o.focus()},[z,A,L,H,f]),te=t.useCallback(()=>{z()&&!k.isUndoRedo()&&(L(A()),H(),K())},[z,A,k,L,H,K]);t.useEffect(()=>{const t=v.current;t&&e&&(t.innerHTML=h.parseValueMulti(e,p),T.current=h.extractMentions(t,f[0]??"@"))},[]),t.useEffect(()=>{const e=()=>{const e=v.current;if(!e)return;const t=window.getSelection();if(t&&t.rangeCount>0){const n=t.getRangeAt(0);e.contains(n.commonAncestorContainer)?$():e.querySelectorAll("[data-mention]").forEach(e=>{e.classList.remove("mention-selected")})}};return document.addEventListener("selectionchange",e),()=>{document.removeEventListener("selectionchange",e)}},[$]);const ne=t.useCallback(()=>{_.closeMenu(),U()},[_,U]);return{ref:v,isEmpty:b,handlers:{onInput:te,onKeyDown:Y,onKeyUp:J,onSelect:Q,onMouseDown:ee,onCopy:X,onCut:q,onPaste:G},mentions:{menuState:_.menuState,filteredOptions:_.filteredOptions,selectedIndex:_.selectedIndex,selectOption:W,enterSubmenu:_.enterSubmenu,exitSubmenu:_.exitSubmenu,isInSubmenu:_.isInSubmenu,setSelectedIndex:_.setSelectedIndex,activeTrigger:_.activeTrigger,closeMenu:ne,isKeyboardNavigating:_.isKeyboardNavigating,clearKeyboardNavigation:_.clearKeyboardNavigation}}}({initialValue:r,mentionConfigs:S,onChange:o,onEnter:u,onMentionAdded:d,onMentionDeleted:p,onMentionClick:f}),k=S.find(e=>e.trigger===j.activeTrigger),_=k?.menuPosition??"below",{styles:D,className:z}=function(e){return e?"string"==typeof e&&e in N?{styles:R(N[e]),className:""}:"object"==typeof e?{styles:R(e),className:""}:{styles:{},className:""}:{styles:{},className:""}}(b),A={...D,...C},L=["prompt-container",z,x].filter(Boolean).join(" ");return e.jsxs("div",{className:L,style:A,children:[e.jsx("div",{ref:E,contentEditable:!0,...O,className:"prompt-input"}),T&&e.jsx("div",{className:"prompt-placeholder",children:g}),e.jsx(M,{isOpen:j.menuState.isOpen,caretRect:j.menuState.caretRect,preferredPosition:_,options:j.filteredOptions,selectedIndex:j.selectedIndex,onSelect:j.selectOption,onEnterSubmenu:j.enterSubmenu,onExitSubmenu:j.exitSubmenu,isInSubmenu:j.isInSubmenu,onHoverIndex:j.setSelectedIndex,onClose:j.closeMenu,themeStyles:D})]})},exports.extensionIconMap=be,exports.filenameIconMap=xe,exports.getExtensionIcon=Ce,exports.presetThemes=N,exports.themeToStyles=R;
|
package/dist/index.css
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
--prompt-focus-box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
|
|
29
29
|
--prompt-line-height: 1.7;
|
|
30
30
|
--prompt-border-width: 1px;
|
|
31
|
+
--prompt-min-height: 100px;
|
|
31
32
|
|
|
32
33
|
/* ===== Mention Menu ===== */
|
|
33
34
|
--prompt-mention-menu-background-color: white;
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
|
|
74
75
|
/* Prompt Input */
|
|
75
76
|
.prompt-input {
|
|
76
|
-
min-height:
|
|
77
|
+
min-height: var(--prompt-min-height);
|
|
77
78
|
padding: var(--prompt-padding);
|
|
78
79
|
border: var(--prompt-border-width) solid var(--prompt-border-color);
|
|
79
80
|
border-radius: var(--prompt-border-radius);
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
line-height: var(--prompt-line-height);
|
|
83
84
|
background-color: var(--prompt-background-color);
|
|
84
85
|
color: var(--prompt-color);
|
|
86
|
+
cursor: text;
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
.prompt-input:focus {
|
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ interface PromptTheme {
|
|
|
46
46
|
lineHeight?: string;
|
|
47
47
|
/** Border width of the prompt input */
|
|
48
48
|
borderWidth?: string;
|
|
49
|
+
/** Minimum height of the prompt input */
|
|
50
|
+
minHeight?: string;
|
|
49
51
|
/** Mention menu configuration */
|
|
50
52
|
menu?: {
|
|
51
53
|
/** Background color of the menu */
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import r,{useRef as o,useCallback as i,useMemo as l,useState as a,useEffect as c,useLayoutEffect as s}from"react";const d=e=>"divider"!==e.type&&"title"!==e.type,u=(e,t,n)=>{const r=e.length;if(0===r)return-1;let o=t,i=0;do{o=1===n?o>=r-1?0:o+1:o<=0?r-1:o-1,i++}while(!d(e[o])&&i<r);return i>=r?-1:o},p=e=>{const t=e.findIndex(d);return t>=0?t:0},f=(e,t)=>{let n=e;for(const e of t){const t=n.find(t=>t.id===e);if(!t?.children)return[];n=t.children}return n},g=(e,t)=>{const n=t.toLowerCase(),r=[],o=e=>{for(const t of e)if("divider"!==t.type&&"title"!==t.type){if(t.label.toLowerCase().includes(n)){const e={id:t.id,label:t.label};t.icon&&(e.icon=t.icon),t.type&&(e.type=t.type),r.push(e)}t.children&&o(t.children)}};return o(e),r},h=[{trigger:"@",options:[]}],m=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),v=e=>{const t=[];for(const n of e)t.push(n),n.children&&t.push(...v(n.children));return t},y=e=>{const{type:t,props:n}=e;if("string"==typeof t){const e=n||{},r=Object.entries(e).filter(([e])=>"children"!==e&&"ref"!==e).map(([e,t])=>{const n="className"===e?"class":"htmlFor"===e?"for":"strokeWidth"===e?"stroke-width":"strokeLinecap"===e?"stroke-linecap":"strokeLinejoin"===e?"stroke-linejoin":"fillRule"===e?"fill-rule":"clipRule"===e?"clip-rule":"viewBox"===e?"viewBox":e.replace(/([A-Z])/g,"-$1").toLowerCase();return"boolean"==typeof t?t?n:"":`${n}="${String(t).replace(/"/g,""")}"`}).filter(Boolean).join(" "),o=r?`<${t} ${r}>`:`<${t}>`,i=e.children;return null==i?["path","circle","ellipse","line","polygon","polyline","rect","use","img","br","hr","input"].includes(t)?r?`<${t} ${r}/>`:`<${t}/>`:`${o}</${t}>`:`${o}${b(i)}</${t}>`}if("object"==typeof t&&null!==t&&"render"in t)try{const e=(0,t.render)(n,null);return e&&"object"==typeof e&&"type"in e?y(e):""}catch{return""}if("function"==typeof t)try{if(t.prototype&&t.prototype.isReactComponent)return"";const e=t(n);return e&&"object"==typeof e&&"type"in e?y(e):""}catch{return""}return""},b=e=>null==e?"":"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(b).join(""):"object"==typeof e&&"type"in e?y(e):"",w=e=>{if(!e)return"";if("string"==typeof e)return e;try{return y(e)}catch{return""}},S={createHTML(e,t,n,r,o=!1){const i=r?`<span class="mention-pill-icon" data-mention-delete="true"><span class="mention-pill-icon-original">${w(r)}</span><span class="mention-pill-icon-delete"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path d="M18 6L6 18M6 6l12 12"/></svg></span></span>`:"";return`<span contenteditable="false" data-mention="${t}" data-mention-id="${e}" data-mention-trigger="${n}"${r?` data-icon="${encodeURIComponent(w(r))}"`:""}${o?"":' data-hide-trigger="true"'} class="mention-pill">${i}${o?`${n}${t}`:t}</span>`},isMentionElement:e=>e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-mention"),parseValueMulti(e,t){let n=e;for(const e of t){const t=v(e.options),r=e.showTrigger??!1,o=new RegExp(`${m(e.trigger)}\\[([^\\]]+)\\]`,"g");n=n.replace(o,(n,o)=>{const i=t.find(e=>e.id===o)||t.find(e=>e.label===o);return this.createHTML(i?.id||o,i?.label||o,e.trigger,i?.icon,r)})}return n},parseValueWithIcons(e,t){const n=new RegExp(`${m(t)}\\[([^\\]]+)\\]`,"g");return e.replace(n,(e,n)=>this.createHTML(n,n,t))},extractValueMulti(e,t){let n="";const r=t[0]??"@",o=e=>{if(e.nodeType===Node.TEXT_NODE)n+=e.textContent||"";else if(this.isMentionElement(e)){const t=e.getAttribute("data-mention-id")||e.getAttribute("data-mention"),o=e.getAttribute("data-mention-trigger")||r;n+=`${o}[${t}]`}else e.nodeType===Node.ELEMENT_NODE&&e.childNodes.forEach(o)};return o(e),n},extractMentions(e,t="@"){const n=[];return e.querySelectorAll("[data-mention]").forEach(e=>{const r=e.getAttribute("data-mention")||"",o=e.getAttribute("data-mention-id")||r,i=e.getAttribute("data-mention-trigger")||t;n.push({id:o,label:r,trigger:i})}),n},textPosToSerializedPosMulti(e,t,n){let r=0,o=0;const i=n[0]??"@",l=e=>{if(e.nodeType===Node.TEXT_NODE){const n=e.textContent?.length??0;if(r+n>=t)return o+=t-r,!0;r+=n,o+=n}else if(this.isMentionElement(e)){const n=e.textContent?.length??0,l=e.getAttribute("data-mention-id")||e.getAttribute("data-mention")||"",a=(e.getAttribute("data-mention-trigger")||i).length+l.length+2;if(r+n>=t)return o+=a,!0;r+=n,o+=a}else if(e.nodeType===Node.ELEMENT_NODE)for(const t of Array.from(e.childNodes))if(l(t))return!0;return!1};return l(e),o}},C={get:()=>window.getSelection(),getRange(){const e=this.get();return e&&e.rangeCount>0?e.getRangeAt(0):null},getCursorPosition(e){const t=this.getRange();if(!t)return 0;const n=t.cloneRange();return n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset),n.toString().length},setCursorPosition(e,t){const n=this.get();if(!n)return;const r=document.createRange();let o=0,i=!1;const l=e=>{if(e.nodeType===Node.TEXT_NODE){const n=e.textContent?.length??0;if(o+n>=t)return r.setStart(e,t-o),r.collapse(!0),i=!0,!0;o+=n}else if(S.isMentionElement(e)){const n=e.textContent?.length??0;if(o+n>=t)return r.setStartAfter(e),r.collapse(!0),i=!0,!0;o+=n}else if(e.nodeType===Node.ELEMENT_NODE)for(const t of Array.from(e.childNodes))if(l(t))return!0;return!1};l(e),i||(r.selectNodeContents(e),r.collapse(!1)),n.removeAllRanges(),n.addRange(r)},getCaretCoordinates(e){const t=this.getRange();if(!t)return{top:0,left:0,bottom:0,height:0};const n=t.getBoundingClientRect();if(0===n.width&&0===n.height){const t=e.getBoundingClientRect(),n=20;return{top:t.top,left:t.left,bottom:t.top+n,height:n}}return{top:n.top,left:n.left,bottom:n.bottom,height:n.height}},setAfter(e,t,n=1){const r=document.createRange();r.setStart(t,n),r.collapse(!0),e.removeAllRanges(),e.addRange(r)}};function E(e,t){const n=document.createRange();n.selectNode(e);const r=t.compareBoundaryPoints(Range.START_TO_START,n),o=t.compareBoundaryPoints(Range.END_TO_END,n);return r<=0&&o>=0}function T({getElement:e}){const t=o(null),n=i(()=>{t.current=null},[]),r=i((e,n,r)=>{const o=function(e,t){if(t.current)return t.current;if(!e.anchorNode||!e.focusNode)return"right";if(e.anchorNode===e.focusNode)return e.focusOffset<e.anchorOffset?"left":"right";return e.anchorNode.compareDocumentPosition(e.focusNode)&Node.DOCUMENT_POSITION_PRECEDING?"left":(Node,"right")}(e,t);t.current||(t.current=o);const i=function(e,t,n){const r=e.cloneRange();return"start"===t?function(e,t,n){const r=t.startContainer,o=t.startOffset;if("left"===n)if(r.nodeType===Node.TEXT_NODE&&o>0)e.setStart(r,o-1);else if(r.nodeType===Node.TEXT_NODE&&0===o){const t=r.previousSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,Math.max(0,(t.textContent?.length??0)-1));else{if(!t)return null;e.setStartBefore(t)}}else{if(!(r.nodeType===Node.ELEMENT_NODE&&o>0))return null;{const t=r.childNodes[o-1];if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,Math.max(0,(t.textContent?.length??0)-1));else{if(!t)return null;e.setStartBefore(t)}}}else if(r.nodeType===Node.TEXT_NODE)if(o<(r.textContent?.length??0))e.setStart(r,o+1);else{const t=r.nextSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,1);else{if(!t)return null;e.setStartAfter(t)}}else{if(r.nodeType!==Node.ELEMENT_NODE)return null;{const t=r.childNodes[o];if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,1);else{if(!t)return null;e.setStartAfter(t)}}}return e}(r,e,n):function(e,t,n){const r=t.endContainer,o=t.endOffset;if("right"===n)if(r.nodeType===Node.TEXT_NODE)if(o<(r.textContent?.length??0))e.setEnd(r,o+1);else{const t=r.nextSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setEnd(t,1);else{if(!t)return null;e.setEndAfter(t)}}else{if(r.nodeType!==Node.ELEMENT_NODE)return null;{const t=r.childNodes[o];if(t&&t.nodeType===Node.TEXT_NODE)e.setEnd(t,1);else{if(!t)return null;e.setEndAfter(t)}}}else if(r.nodeType===Node.TEXT_NODE&&o>0)e.setEnd(r,o-1);else if(r.nodeType===Node.TEXT_NODE&&0===o){const t=r.previousSibling;if(t&&t.nodeType===Node.TEXT_NODE){const n=t.textContent?.length??0;e.setEnd(t,n>0?n-1:0)}else{if(!t)return null;e.setEndBefore(t)}}else{if(!(r.nodeType===Node.ELEMENT_NODE&&o>0))return null;{const t=r.childNodes[o-1];if(t&&t.nodeType===Node.TEXT_NODE){const n=t.textContent?.length??0;e.setEnd(t,n>0?n-1:0)}else{if(!t)return null;e.setEndBefore(t)}}}return e}(r,e,n)}(n,"left"===o?"start":"end",r);return!!i&&(i.collapsed?(t.current=null,e.removeAllRanges(),e.addRange(i),!0):(e.removeAllRanges(),e.addRange(i),!0))},[]);return{handleAtomicMentionNavigation:i(n=>{const o=e();if(!o)return!1;if(n.altKey||n.metaKey||n.ctrlKey)return!1;const i=C.get();if(!i||0===i.rangeCount)return!1;const l=i.getRangeAt(0),a="ArrowLeft"===n.key,c=n.shiftKey;if(!a&&"ArrowRight"!==n.key)return!1;let s=null;if(a){const e=l.startContainer,t=l.startOffset;if(e.nodeType===Node.TEXT_NODE&&0===t){const t=e.previousSibling;t&&S.isMentionElement(t)&&(s=t)}else if(e.nodeType===Node.ELEMENT_NODE){const n=e.childNodes[t-1];n&&S.isMentionElement(n)&&(s=n)}}else{const e=l.endContainer,t=l.endOffset;if(e.nodeType===Node.TEXT_NODE){if(t===(e.textContent?.length??0)){const t=e.nextSibling;t&&S.isMentionElement(t)&&(s=t)}}else if(e.nodeType===Node.ELEMENT_NODE){const n=e.childNodes[t];n&&S.isMentionElement(n)&&(s=n)}}if(s){if(!l.collapsed&&E(s,l)){if(n.preventDefault(),c)r(i,l,a?"left":"right");else{t.current=null;const e=document.createRange();a?e.setStart(l.startContainer,l.startOffset):e.setStart(l.endContainer,l.endOffset),e.collapse(!0),i.removeAllRanges(),i.addRange(e)}return!0}n.preventDefault();const e=document.createRange();return c?(l.collapsed&&(t.current=a?"left":"right"),a?(e.setStartBefore(s),e.setEnd(l.endContainer,l.endOffset)):(e.setStart(l.startContainer,l.startOffset),e.setEndAfter(s))):(t.current=null,a?(e.setStartBefore(s),e.collapse(!0)):(e.setStartAfter(s),e.collapse(!0))),i.removeAllRanges(),i.addRange(e),!0}if(!l.collapsed){const e=o.querySelectorAll("[data-mention]");for(const o of Array.from(e))if(E(o,l)){if(n.preventDefault(),c)r(i,l,a?"left":"right");else{t.current=null;const e=document.createRange();a?e.setStart(l.startContainer,l.startOffset):e.setStart(l.endContainer,l.endOffset),e.collapse(!0),i.removeAllRanges(),i.addRange(e)}return!0}}return!1},[e,r]),updateMentionSelectionVisuals:i(()=>{const t=e();if(!t)return;const n=C.get(),r=t.querySelectorAll("[data-mention]");if(r.forEach(e=>{e.classList.remove("mention-selected")}),!n||0===n.rangeCount)return;const o=n.getRangeAt(0);o.collapsed||r.forEach(e=>{E(e,o)&&e.classList.add("mention-selected")})},[e]),resetSelectionDirection:n}}var x,O={exports:{}},M={};var N,R,_={};var D=(R||(R=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),O.exports=function(){if(x)return M;x=1;var e=r;function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var o={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal"),l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return M.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,M.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},M.flushSync=function(e){var t=l.T,n=o.p;try{if(l.T=null,o.p=2,e)return e()}finally{l.T=t,o.p=n,o.d.f()}},M.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,o.d.C(e,t))},M.prefetchDNS=function(e){"string"==typeof e&&o.d.D(e)},M.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?o.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:l}):"script"===n&&o.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},M.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);o.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&o.d.M(e)},M.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=a(n,t.crossOrigin);o.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},M.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);o.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else o.d.m(e)},M.requestFormReset=function(e){o.d.r(e)},M.unstable_batchedUpdates=function(e,t){return e(t)},M.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},M.useFormStatus=function(){return l.H.useHostTransitionStatus()},M.version="19.2.3",M}()):O.exports=(N||(N=1,"production"!==process.env.NODE_ENV&&function(){function e(){}function t(e){return""+e}function n(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}function o(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":'something with type "'+typeof e+'"'}function i(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":"string"==typeof e?JSON.stringify(e):"number"==typeof e?"`"+e+"`":'something with type "'+typeof e+'"'}function l(){var e=d.H;return null===e&&console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=r,c={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},s=Symbol.for("react.portal"),d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,_.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error("Target container is not a DOM element.");return function(e,n,r){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;try{t(o);var i=!1}catch(e){i=!0}return i&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object"),t(o)),{$$typeof:s,key:null==o?null:""+o,children:e,containerInfo:n,implementation:r}}(e,n,null,r)},_.flushSync=function(e){var t=d.T,n=c.p;try{if(d.T=null,c.p=2,e)return e()}finally{d.T=t,c.p=n,c.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},_.preconnect=function(e,t){"string"==typeof e&&e?null!=t&&"object"!=typeof t?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(t)):null!=t&&"string"!=typeof t.crossOrigin&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,c.d.C(e,t))},_.prefetchDNS=function(e){if("string"==typeof e&&e){if(1<arguments.length){var t=arguments[1];"object"==typeof t&&t.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(t))}}else console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e));"string"==typeof e&&c.d.D(e)},_.preinit=function(e,t){if("string"==typeof e&&e?null==t||"object"!=typeof t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(t)):"style"!==t.as&&"script"!==t.as&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),"string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,l=n(r,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?c.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:s}):"script"===r&&c.d.X(e,{crossOrigin:l,integrity:a,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},_.preinitModule=function(e,t){var r="";"string"==typeof e&&e||(r+=" The `href` argument encountered was "+o(e)+"."),void 0!==t&&"object"!=typeof t?r+=" The `options` argument encountered was "+o(t)+".":t&&"as"in t&&"script"!==t.as&&(r+=" The `as` option encountered was "+i(t.as)+"."),r?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",r):"script"===(r=t&&"string"==typeof t.as?t.as:"script")||(r=i(r),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',r,e)),"string"==typeof e&&("object"==typeof t&&null!==t?null!=t.as&&"script"!==t.as||(r=n(t.as,t.crossOrigin),c.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})):null==t&&c.d.M(e))},_.preload=function(e,t){var r="";if("string"==typeof e&&e||(r+=" The `href` argument encountered was "+o(e)+"."),null==t||"object"!=typeof t?r+=" The `options` argument encountered was "+o(t)+".":"string"==typeof t.as&&t.as||(r+=" The `as` option encountered was "+o(t.as)+"."),r&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',r),"string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var i=n(r=t.as,t.crossOrigin);c.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},_.preloadModule=function(e,t){var r="";"string"==typeof e&&e||(r+=" The `href` argument encountered was "+o(e)+"."),void 0!==t&&"object"!=typeof t?r+=" The `options` argument encountered was "+o(t)+".":t&&"as"in t&&"string"!=typeof t.as&&(r+=" The `as` option encountered was "+o(t.as)+"."),r&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',r),"string"==typeof e&&(t?(r=n(t.as,t.crossOrigin),c.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})):c.d.m(e))},_.requestFormReset=function(e){c.d.r(e)},_.unstable_batchedUpdates=function(e,t){return e(t)},_.useFormState=function(e,t,n){return l().useFormState(e,t,n)},_.useFormStatus=function(){return l().useHostTransitionStatus()},_.version="19.2.3","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_)),O.exports);const z=()=>e("svg",{className:"mention-menu-chevron",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})}),A=({isOpen:n,caretRect:r,preferredPosition:l="below",options:d,selectedIndex:u,onSelect:p,onEnterSubmenu:f,isInSubmenu:g=!1,onHoverIndex:h,onClose:m,isKeyboardNavigating:v=!1,onMouseActivity:y,themeStyles:b})=>{const w=o(null),[S,C]=a(l),[E,T]=a(0),x=i(e=>{v&&y?.(),h?.(e)},[v,y,h]);if(c(()=>{if(!n||!m)return;const e=e=>{const t=e.target;if(w.current?.contains(t))return;const n=t.closest?.(".prompt-input");n||m()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n,m]),s(()=>{if(!n||!w.current)return;const e=w.current.getBoundingClientRect();T(e.height);const t=window.innerHeight-r.bottom-4,o=r.top-4;C("below"===l?e.height>t&&o>t?"above":"below":e.height>o&&t>o?"below":"above")},[n,r,l,d]),c(()=>{if(n&&w.current){const e=w.current.querySelector(`[data-index="${u}"]`);e&&e.scrollIntoView({block:"nearest"})}},[n,u]),!n||0===d.length)return null;const O=e("div",{ref:w,className:"mention-menu"+(v?" keyboard-navigating":""),style:{position:"fixed",top:Math.max(4,"below"===S?r.bottom+4:r.top-E-4),left:r.left},children:d.map((n,r)=>{const o=`${r}-${n.id}`;if("divider"===n.type)return e("div",{className:"mention-menu-divider",role:"separator"},o);if("title"===n.type)return t("div",{className:"mention-menu-title",children:[n.icon&&e("span",{className:"mention-menu-item-icon",children:n.icon}),e("span",{className:"mention-menu-title-label",children:n.label})]},o);const i=n.children&&n.children.length>0;return t("div",{"data-index":r,className:`mention-menu-item ${r===u?"mention-menu-item-selected":""} ${i?"mention-menu-item-has-children":""}`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),i&&f?f(n):p(n)},onMouseMove:()=>x(r),children:[n.icon&&e("span",{className:"mention-menu-item-icon",children:n.icon}),e("span",{className:"mention-menu-item-label",children:n.label}),i&&e(z,{})]},o)})});return D.createPortal(e("div",{style:b,children:O}),document.body)};function L(e){if(!e)return{};const t={};return e.backgroundColor&&(t["--prompt-background-color"]=e.backgroundColor),e.color&&(t["--prompt-color"]=e.color),e.placeholderColor&&(t["--prompt-placeholder-color"]=e.placeholderColor),e.fontSize&&(t["--prompt-font-size"]=e.fontSize),e.fontFamily&&(t["--prompt-font-family"]=e.fontFamily),e.borderRadius&&(t["--prompt-border-radius"]=e.borderRadius),e.borderColor&&(t["--prompt-border-color"]=e.borderColor),e.padding&&(t["--prompt-padding"]=e.padding),e.focusBorderColor&&(t["--prompt-focus-border-color"]=e.focusBorderColor),e.focusBoxShadow&&(t["--prompt-focus-box-shadow"]=e.focusBoxShadow),e.lineHeight&&(t["--prompt-line-height"]=e.lineHeight),e.borderWidth&&(t["--prompt-border-width"]=e.borderWidth),e.menu&&(e.menu.backgroundColor&&(t["--prompt-mention-menu-background-color"]=e.menu.backgroundColor),e.menu.borderColor&&(t["--prompt-mention-menu-border-color"]=e.menu.borderColor),e.menu.color&&(t["--prompt-mention-menu-color"]=e.menu.color),e.menu.itemHoverColor&&(t["--prompt-mention-menu-item-hover-color"]=e.menu.itemHoverColor),e.menu.chevronColor&&(t["--prompt-mention-menu-chevron-color"]=e.menu.chevronColor),e.menu.chevronHoverColor&&(t["--prompt-mention-menu-chevron-hover-color"]=e.menu.chevronHoverColor),e.menu.minWidth&&(t["--prompt-mention-menu-min-width"]=e.menu.minWidth),e.menu.item&&(e.menu.item.height&&(t["--prompt-mention-menu-item-height"]=e.menu.item.height),e.menu.item.padding&&(t["--prompt-mention-menu-item-padding"]=e.menu.item.padding),e.menu.item.gap&&(t["--prompt-mention-menu-item-gap"]=e.menu.item.gap),e.menu.item.labelFontSize&&(t["--prompt-mention-menu-item-label-font-size"]=e.menu.item.labelFontSize),void 0!==e.menu.item.labelFontWeight&&(t["--prompt-mention-menu-item-label-font-weight"]=String(e.menu.item.labelFontWeight)),e.menu.item.iconHeight&&(t["--prompt-mention-menu-item-icon-height"]=e.menu.item.iconHeight)),e.menu.title&&(e.menu.title.padding&&(t["--prompt-mention-menu-title-padding"]=e.menu.title.padding),e.menu.title.paddingTop&&(t["--prompt-mention-menu-title-padding-top"]=e.menu.title.paddingTop),e.menu.title.height&&(t["--prompt-mention-menu-title-height"]=e.menu.title.height),e.menu.title.labelFontSize&&(t["--prompt-mention-menu-title-label-font-size"]=e.menu.title.labelFontSize),void 0!==e.menu.title.labelFontWeight&&(t["--prompt-mention-menu-title-label-font-weight"]=String(e.menu.title.labelFontWeight)),e.menu.title.labelColor&&(t["--prompt-mention-menu-title-label-color"]=e.menu.title.labelColor),e.menu.title.labelTextTransform&&(t["--prompt-mention-menu-title-label-text-transform"]=e.menu.title.labelTextTransform),e.menu.title.labelLetterSpacing&&(t["--prompt-mention-menu-title-label-letter-spacing"]=e.menu.title.labelLetterSpacing),void 0!==e.menu.title.labelOpacity&&(t["--prompt-mention-menu-title-label-opacity"]=String(e.menu.title.labelOpacity)))),e.pill&&(e.pill.backgroundColor&&(t["--prompt-mention-pill-background-color"]=e.pill.backgroundColor),e.pill.borderRadius&&(t["--prompt-mention-pill-border-radius"]=e.pill.borderRadius),e.pill.color&&(t["--prompt-mention-pill-color"]=e.pill.color),e.pill.padding&&(t["--prompt-mention-pill-padding"]=e.pill.padding),e.pill.lineHeight&&(t["--prompt-mention-pill-line-height"]=e.pill.lineHeight)),t}const k={light:{backgroundColor:"white",color:"black",placeholderColor:"#9ca3af",fontSize:"14px",fontFamily:"inherit",borderRadius:"0.375rem",borderColor:"#d1d5db",padding:"0.5rem",focusBorderColor:"#6366f1",focusBoxShadow:"0 0 0 2px rgba(99, 102, 241, 0.2)",menu:{backgroundColor:"white",borderColor:"#e5e7eb",color:"black",itemHoverColor:"#f3f4f6",chevronColor:"#9ca3af",chevronHoverColor:"#6366f1",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#9ca3af",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)",borderRadius:"9999px",color:"white",padding:"0.125rem 0.5rem"}},cursorDark:{backgroundColor:"#22242C",color:"#d8dee9",placeholderColor:"#585C65",fontSize:"13px",fontFamily:'-apple-system, "system-ui", sans-serif',borderRadius:"8px",borderColor:"#2F353F",padding:".375rem .5rem .25rem",focusBorderColor:"#2F353F",focusBoxShadow:"none",lineHeight:"1.7",menu:{backgroundColor:"#1A1C21",borderColor:"#282C35",color:"#7A88A1",itemHoverColor:"#21262E",chevronColor:"#373C48",chevronHoverColor:"#373C48",minWidth:"240px",item:{height:"20px",padding:"2px 6px",gap:"0px",labelFontSize:"12px",labelFontWeight:300,iconHeight:"12px"},title:{padding:"2px 6px",paddingTop:"2px",height:"20px",labelFontSize:"11px",labelFontWeight:300,labelColor:"#d8dee9",labelTextTransform:"none",labelLetterSpacing:"0",labelOpacity:.4}},pill:{backgroundColor:"#283B56",borderRadius:"4px",color:"#d8dee9",padding:"1px 4px 2px 4px",lineHeight:"1.4"}},githubDark:{backgroundColor:"#0d1117",color:"#c9d1d9",placeholderColor:"#484f58",fontSize:"14px",fontFamily:"inherit",borderRadius:"6px",borderColor:"#30363d",padding:"0.5rem 0.75rem",focusBorderColor:"#58a6ff",focusBoxShadow:"0 0 0 2px rgba(88, 166, 255, 0.2)",menu:{backgroundColor:"#161b22",borderColor:"#30363d",color:"#c9d1d9",itemHoverColor:"#21262d",chevronColor:"#484f58",chevronHoverColor:"#58a6ff",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#8b949e",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"#388bfd26",borderRadius:"6px",color:"#58a6ff",padding:"0.125rem 0.5rem"}},minimal:{backgroundColor:"#fafafa",color:"#18181b",placeholderColor:"#a1a1aa",fontSize:"15px",fontFamily:"inherit",borderRadius:"8px",borderColor:"#e4e4e7",padding:"0.75rem",focusBorderColor:"#18181b",focusBoxShadow:"0 0 0 2px rgba(24, 24, 27, 0.1)",menu:{backgroundColor:"#ffffff",borderColor:"#e4e4e7",color:"#3f3f46",itemHoverColor:"#f4f4f5",chevronColor:"#a1a1aa",chevronHoverColor:"#18181b",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#a1a1aa",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"#18181b",borderRadius:"4px",color:"#fafafa",padding:"0.125rem 0.5rem"}}},H=n.forwardRef(function({title:n="CSS",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#663399"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63"})]})}),B=n.forwardRef(function({title:n="Docker",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#2496ED"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"})]})}),V=n.forwardRef(function({title:n=".ENV",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#ECD53F"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M24 0v24H0V0h24ZM10.933 15.89H6.84v5.52h4.198v-.93H7.955v-1.503h2.77v-.93h-2.77v-1.224h2.978v-.934Zm2.146 0h-1.084v5.52h1.035v-3.6l2.226 3.6h1.118v-5.52h-1.036v3.686l-2.259-3.687Zm5.117 0h-1.208l1.973 5.52h1.19l1.976-5.52h-1.182l-1.352 4.085-1.397-4.086ZM5.4 19.68H3.72v1.68H5.4v-1.68Z"})]})}),P=n.forwardRef(function({title:n="Git",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#F05032"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M23.546 10.93L13.067.452c-.604-.603-1.582-.603-2.188 0L8.708 2.627l2.76 2.76c.645-.215 1.379-.07 1.889.441.516.515.658 1.258.438 1.9l2.658 2.66c.645-.223 1.387-.078 1.9.435.721.72.721 1.884 0 2.604-.719.719-1.881.719-2.6 0-.539-.541-.674-1.337-.404-1.996L12.86 8.955v6.525c.176.086.342.203.488.348.713.721.713 1.883 0 2.6-.719.721-1.889.721-2.609 0-.719-.719-.719-1.879 0-2.598.182-.18.387-.316.605-.406V8.835c-.217-.091-.424-.222-.6-.401-.545-.545-.676-1.342-.396-2.009L7.636 3.7.45 10.881c-.6.605-.6 1.584 0 2.189l10.48 10.477c.604.604 1.582.604 2.186 0l10.43-10.43c.605-.603.605-1.582 0-2.187"})]})}),F=n.forwardRef(function({title:n="Go",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#00ADD8"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"})]})}),I=n.forwardRef(function({title:n="GraphQL",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#E10098"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"})]})}),j=n.forwardRef(function({title:n="HTML5",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#E34F26"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438L1.5 0zm7.031 9.75l-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157H8.531z"})]})}),$=n.forwardRef(function({title:n="ImageJ",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#00D8E0"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M13.1286 17.5084h-8.072a.187.187 0 0 1-.187-.187v-.4442a.187.187 0 0 1 .187-.187h8.0721a.187.187 0 0 1 .187.187v.4442a.1872.1872 0 0 1-.1871.187zm5.6234-12.195c-1.4233.0033-4.2184-.0098-5.6414-.0065a.4035.4035 0 0 0-.4035.4035v3.6061c0 .2229.1807.4035.4035.4035h1.7475v8.19a1.8275 1.8275 0 0 1-.9112 1.5761 1.8277 1.8277 0 0 1-1.8224 0 1.8276 1.8276 0 0 1-.9113-1.5784H6.941c0 2.1705 1.1677 4.193 3.0473 5.2782.9398.5428 1.9936.8141 3.0474.8141s2.1076-.2713 3.0474-.8139c1.8795-1.0837 3.0444-3.1089 3.0473-5.274V5.692a.3785.3785 0 0 0-.3784-.3786zM7.4546 15.2306h3.276a.6403.6403 0 0 0 .6403-.6403V.6403A.6403.6403 0 0 0 10.7306 0h-3.276a.6403.6403 0 0 0-.6403.6403v13.95c0 .3536.2867.6403.6403.6403z"})]})}),K=n.forwardRef(function({title:n="JavaScript",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#F7DF1E"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179l.004-.056z"})]})}),U=n.forwardRef(function({title:n="JSON",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#000000"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M12.043 23.968c.479-.004.953-.029 1.426-.094a11.805 11.805 0 003.146-.863 12.404 12.404 0 003.793-2.542 11.977 11.977 0 002.44-3.427 11.794 11.794 0 001.02-3.476c.149-1.16.135-2.346-.045-3.499a11.96 11.96 0 00-.793-2.788 11.197 11.197 0 00-.854-1.617c-1.168-1.837-2.861-3.314-4.81-4.3a12.835 12.835 0 00-2.172-.87h-.005c.119.063.24.132.345.201.12.074.239.146.351.225a8.93 8.93 0 011.559 1.33c1.063 1.145 1.797 2.548 2.218 4.041.284.982.434 1.998.495 3.017.044.743.044 1.491-.047 2.229-.149 1.27-.554 2.51-1.228 3.596a7.475 7.475 0 01-1.903 2.084c-1.244.928-2.877 1.482-4.436 1.114a3.916 3.916 0 01-.748-.258 4.692 4.692 0 01-.779-.45 6.08 6.08 0 01-1.244-1.105 6.507 6.507 0 01-1.049-1.747 7.366 7.366 0 01-.494-2.54c-.03-1.273.225-2.553.854-3.67a6.43 6.43 0 011.663-1.918c.225-.178.464-.333.704-.479l.016-.007a5.121 5.121 0 00-1.441-.12 4.963 4.963 0 00-1.228.24c-.359.12-.704.27-1.019.45a6.146 6.146 0 00-.733.494c-.211.18-.42.36-.615.555-1.123 1.153-1.768 2.682-2.022 4.256-.15.973-.15 1.96-.091 2.95.105 1.395.391 2.787.945 4.062a8.518 8.518 0 001.348 2.173 8.14 8.14 0 003.132 2.23 7.934 7.934 0 002.113.54c.074.015.149.015.209.015zm-2.934-.398a4.102 4.102 0 01-.45-.228 8.5 8.5 0 01-2.038-1.534c-1.094-1.137-1.827-2.566-2.247-4.08a15.184 15.184 0 01-.495-3.172 12.14 12.14 0 01.046-2.082c.135-1.257.495-2.501 1.124-3.58a6.889 6.889 0 011.783-2.053 6.23 6.23 0 011.633-.9 5.363 5.363 0 013.522-.045c.029 0 .029 0 .045.03.015.015.045.015.06.03.045.016.104.045.165.074.239.12.479.271.704.42a6.294 6.294 0 012.097 2.502c.42.914.615 1.934.631 2.938.014 1.079-.18 2.157-.645 3.146a6.42 6.42 0 01-2.638 2.832c.09.03.18.045.271.075.225.044.449.074.688.074 1.468.045 2.892-.66 3.94-1.647.195-.18.375-.375.54-.585.225-.27.435-.54.614-.823.239-.375.435-.75.614-1.154a8.112 8.112 0 00.509-1.664c.196-1.004.211-2.022.149-3.026-.135-2.022-.673-4.045-1.842-5.724a9.054 9.054 0 00-.555-.719 9.868 9.868 0 00-1.063-1.034 8.477 8.477 0 00-1.363-.915 9.927 9.927 0 00-1.692-.598l-.3-.06c-.209-.03-.42-.044-.634-.06a8.453 8.453 0 00-1.015.016c-.704.045-1.412.16-2.112.337C5.799 1.227 2.863 3.566 1.3 6.67A11.834 11.834 0 00.238 9.801a11.81 11.81 0 00-.104 3.775c.12 1.02.374 2.023.778 2.977.227.57.511 1.124.825 1.648 1.094 1.783 2.683 3.236 4.51 4.24.688.39 1.408.69 2.157.944.226.074.45.15.689.21z"})]})}),W=n.forwardRef(function({title:n="Markdown",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#000000"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M22.27 19.385H1.73A1.73 1.73 0 010 17.655V6.345a1.73 1.73 0 011.73-1.73h20.54A1.73 1.73 0 0124 6.345v11.308a1.73 1.73 0 01-1.73 1.731zM5.769 15.923v-4.5l2.308 2.885 2.307-2.885v4.5h2.308V8.078h-2.308l-2.307 2.885-2.308-2.885H3.46v7.847zM21.232 12h-2.309V8.077h-2.307V12h-2.308l3.461 4.039z"})]})}),X=n.forwardRef(function({title:n="PHP",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#777BB4"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"})]})}),G=n.forwardRef(function({title:n="Python",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#3776AB"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z"})]})}),q=n.forwardRef(function({title:n="React",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#61DAFB"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"})]})}),Z=n.forwardRef(function({title:n="Ruby",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#CC342D"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"})]})}),Y=n.forwardRef(function({title:n="Rust",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#000000"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"})]})}),J=n.forwardRef(function({title:n="Sass",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#CC6699"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zM9.615 15.998c.175.645.156 1.248-.024 1.792l-.065.18c-.024.061-.052.12-.078.176-.14.29-.326.56-.555.81-.698.759-1.672 1.047-2.09.805-.45-.262-.226-1.335.584-2.19.871-.918 2.12-1.509 2.12-1.509v-.003l.108-.061zm9.911-10.861c-.542-2.133-4.077-2.834-7.422-1.645-1.989.707-4.144 1.818-5.693 3.267C4.568 8.48 4.275 9.98 4.396 10.607c.427 2.211 3.457 3.657 4.703 4.73v.006c-.367.18-3.056 1.529-3.686 2.925-.675 1.47.105 2.521.615 2.655 1.575.436 3.195-.36 4.065-1.649.84-1.261.766-2.881.404-3.676.496-.135 1.08-.195 1.83-.104 2.101.24 2.521 1.56 2.43 2.1-.09.539-.523.854-.674.944-.15.091-.195.12-.181.181.015.09.091.09.21.075.165-.03 1.096-.45 1.141-1.471.045-1.29-1.186-2.729-3.375-2.7-.9.016-1.471.091-1.875.256-.03-.045-.061-.075-.105-.105-1.35-1.455-3.855-2.475-3.75-4.41.03-.705.285-2.564 4.8-4.814 3.705-1.846 6.661-1.335 7.171-.21.733 1.604-1.576 4.59-5.431 5.024-1.47.165-2.235-.404-2.431-.615-.209-.225-.239-.24-.314-.194-.12.06-.045.255 0 .375.12.3.585.825 1.396 1.095.704.225 2.43.359 4.5-.45 2.324-.899 4.139-3.405 3.614-5.505l.073.067z"})]})}),Q=n.forwardRef(function({title:n="Shell",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#FFD500"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M12 .863C5.34.863 0 6.251 0 12.98c0 .996.038 1.374.246 2.33l3.662 2.71.57 4.515h6.102l.326.227c.377.262.705.375 1.082.375.352 0 .732-.101 1.024-.313l.39-.289h6.094l.563-4.515 3.695-2.71c.208-.956.246-1.334.246-2.33C24 6.252 18.661.863 12 .863zm.996 2.258c.9 0 1.778.224 2.512.649l-2.465 12.548 3.42-12.062c1.059.36 1.863.941 2.508 1.814l.025.034-4.902 10.615 5.572-9.713.033.03c.758.708 1.247 1.567 1.492 2.648l-6.195 7.666 6.436-6.5.01.021c.253.563.417 1.36.417 1.996 0 .509-.024.712-.164 1.25l-3.554 2.602-.467 3.71h-4.475l-.517.395c-.199.158-.482.266-.682.266-.199 0-.483-.108-.682-.266l-.517-.394H6.322l-.445-3.61-3.627-2.666c-.11-.436-.16-.83-.16-1.261 0-.72.159-1.49.426-2.053l.013-.024 6.45 6.551L2.75 9.621c.25-1.063.874-2.09 1.64-2.713l5.542 9.776L4.979 6.1c.555-.814 1.45-1.455 2.546-1.827l3.424 12.069L8.355 3.816l.055-.03c.814-.45 1.598-.657 2.457-.657.195 0 .286.004.528.03l.587 13.05.46-13.059c.224-.025.309-.029.554-.029z"})]})}),ee=n.forwardRef(function({title:n="Svelte",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#FF3E00"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"})]})}),te=n.forwardRef(function({title:n="SVG",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#FFB13B"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M12 0c-1.497 0-2.749.965-3.248 2.17a3.45 3.45 0 00-.238 1.416 3.459 3.459 0 00-1.168-.834 3.508 3.508 0 00-1.463-.256 3.513 3.513 0 00-2.367 1.02c-1.06 1.058-1.263 2.625-.764 3.83.179.432.47.82.82 1.154a3.49 3.49 0 00-1.402.252C.965 9.251 0 10.502 0 12c0 1.497.965 2.749 2.17 3.248.437.181.924.25 1.414.236-.357.338-.65.732-.832 1.17-.499 1.205-.295 2.772.764 3.83 1.058 1.06 2.625 1.263 3.83.764.437-.181.83-.476 1.168-.832-.014.49.057.977.238 1.414C9.251 23.035 10.502 24 12 24c1.497 0 2.749-.965 3.248-2.17a3.45 3.45 0 00.238-1.416c.338.356.73.653 1.168.834 1.205.499 2.772.295 3.83-.764 1.06-1.058 1.263-2.625.764-3.83a3.459 3.459 0 00-.834-1.168 3.45 3.45 0 001.416-.238C23.035 14.749 24 13.498 24 12c0-1.497-.965-2.749-2.17-3.248a3.455 3.455 0 00-1.414-.236c.357-.338.65-.732.832-1.17.499-1.205.295-2.772-.764-3.83a3.513 3.513 0 00-2.367-1.02 3.508 3.508 0 00-1.463.256c-.437.181-.83.475-1.168.832a3.45 3.45 0 00-.238-1.414C14.749.965 13.498 0 12 0zm-.041 1.613a1.902 1.902 0 011.387 3.246v3.893L16.098 6A1.902 1.902 0 1118 7.902l-2.752 2.752h3.893a1.902 1.902 0 110 2.692h-3.893L18 16.098A1.902 1.902 0 1116.098 18l-2.752-2.752v3.893a1.902 1.902 0 11-2.692 0v-3.893L7.902 18A1.902 1.902 0 116 16.098l2.752-2.752H4.859a1.902 1.902 0 110-2.692h3.893L6 7.902A1.902 1.902 0 117.902 6l2.752 2.752V4.859a1.902 1.902 0 011.305-3.246z"})]})}),ne=n.forwardRef(function({title:n="TypeScript",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#3178C6"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"})]})}),re=n.forwardRef(function({title:n="YAML",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#CB171E"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"m0 .97 4.111 6.453v4.09h2.638v-4.09L11.053.969H8.214L5.58 5.125 2.965.969Zm12.093.024-4.47 10.544h2.114l.97-2.345h4.775l.804 2.345h2.26L14.255.994Zm1.133 2.225 1.463 3.87h-3.096zm3.06 9.475v10.29H24v-2.199h-5.454v-8.091zm-12.175.002v10.335h2.217v-7.129l2.32 4.792h1.746l2.4-4.96v7.295h2.127V12.696h-2.904L9.44 17.37l-2.455-4.674Z"})]})}),oe=()=>e("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",clipRule:"evenodd"})}),ie=()=>e("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"})}),le=()=>e(ne,{}),ae=()=>e(K,{}),ce=()=>e(q,{}),se=()=>e(H,{}),de=()=>e(j,{}),ue=()=>e(U,{}),pe=()=>e(W,{}),fe=()=>e(G,{}),ge=()=>e(re,{}),he=()=>e(Q,{}),me=()=>e($,{}),ve=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[e("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"}),e("circle",{cx:"12",cy:"12",r:"3"})]}),ye=()=>e(P,{}),be=()=>e(oe,{}),we=()=>e(J,{}),Se=()=>e(oe,{}),Ce=()=>e(I,{}),Ee=()=>e(B,{}),Te=()=>e(V,{}),xe={ts:le,tsx:ce,mts:le,cts:le,js:ae,jsx:ce,mjs:ae,cjs:ae,css:se,scss:we,sass:we,less:se,html:de,htm:de,vue:()=>e(oe,{}),svelte:()=>e(ee,{}),json:ue,yaml:ge,yml:ge,toml:ve,xml:de,md:pe,mdx:pe,txt:be,rst:be,py:fe,pyw:fe,go:()=>e(F,{}),rs:()=>e(Y,{}),c:Se,cpp:Se,cc:Se,h:Se,hpp:Se,java:()=>e(oe,{}),php:()=>e(X,{}),rb:()=>e(Z,{}),sql:()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[e("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),e("path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}),e("path",{d:"M3 12A9 3 0 0 0 21 12"})]}),graphql:Ce,gql:Ce,sh:he,bash:he,zsh:he,fish:he,png:me,jpg:me,jpeg:me,gif:me,webp:me,ico:me,svg:()=>e(te,{}),gitignore:ye,gitattributes:ye,env:Te,"env.local":Te,"env.development":Te,"env.production":Te,dockerfile:Ee,dockerignore:Ee,config:ve,rc:ve},Oe={"package.json":ue,"tsconfig.json":le,"jsconfig.json":ae,".gitignore":ye,".gitattributes":ye,".env":Te,".env.local":Te,".env.development":Te,".env.production":Te,dockerfile:Ee,"docker-compose.yml":Ee,"docker-compose.yaml":Ee,"readme.md":pe,license:be,"license.md":be};function Me(t){const n=t.toLowerCase();if(Oe[n])return Oe[n]();if(t.endsWith("/"))return e(ie,{});const r=t.lastIndexOf(".");if(-1===r||r===t.length-1)return;const o=t.slice(r+1).toLowerCase(),i=xe[o];return i?i():e(oe,{})}const Ne=oe,Re=ie,_e=[{trigger:"@",options:[]}];function De(e){return e.map(e=>{if("divider"===e.type||"title"===e.type)return e;if(e.icon)return e.children?{...e,children:De(e.children)}:e;const t=Me(e.label),n=e.children?De(e.children):void 0;return{...e,...t&&{icon:t},...n&&{children:n}}})}const ze=n=>{const{initialValue:r="",onChange:s,onEnter:d,onMentionAdded:m,onMentionDeleted:v,onMentionClick:y,placeholder:b="",mentionConfigs:w=_e,theme:E,className:x="",style:O,extensionIcons:M=!1}=n,N=l(()=>function(e,t){return t?e.map(e=>({...e,options:De(e.options)})):e}(w,M),[w,M]),{ref:R,isEmpty:_,handlers:D,mentions:z}=function({initialValue:e="",onChange:t,onEnter:n,onMentionAdded:r,onMentionDeleted:s,onMentionClick:d,mentionConfigs:m=h}={}){const v=l(()=>m.map(e=>e.trigger),[m]),y=l(()=>m.map(e=>({trigger:e.trigger,options:e.options})),[m]),b=o(null),[w,E]=a(!e),x=o(null),O=o(null),M=o(null),N=o(!1),R=o([]),_=o(t),D=o(n),z=o(r),A=o(s),L=o(d);_.current=t,D.current=n,z.current=r,A.current=s,L.current=d;const k=function({initialValue:e="",maxSize:t=100}={}){const n=o([{content:e,cursorPosition:e.length}]),r=o(0),l=o(!1);return{push:i((e,o)=>{const i=n.current[r.current];i&&i.content===e||(n.current=n.current.slice(0,r.current+1),n.current.push({content:e,cursorPosition:o}),n.current.length>t?n.current.shift():r.current++)},[t]),undo:i(()=>r.current<=0?null:(r.current--,n.current[r.current]??null),[]),redo:i(()=>r.current>=n.current.length-1?null:(r.current++,n.current[r.current]??null),[]),canUndo:i(()=>r.current>0,[]),canRedo:i(()=>r.current<n.current.length-1,[]),isUndoRedo:i(()=>l.current,[]),setUndoRedo:i(e=>{l.current=e},[])}}({initialValue:e}),H=function({configs:e=[]}={}){const t=l(()=>{const t=new Map;for(const n of e)t.set(n.trigger,n.options);return 0===t.size&&t.set("@",[]),t},[e]),n=l(()=>Array.from(t.keys()),[t]),[r,c]=a({isOpen:!1,caretRect:{top:0,left:0,bottom:0,height:0},searchText:"",parentStack:[],activeTrigger:n[0]??"@"}),[s,d]=a(0),[h,m]=a(!1),v=t.get(r.activeTrigger)??[];o(v).current=v;const y=f(v,r.parentStack),b=r.searchText&&0===r.parentStack.length?g(v,r.searchText):y,w=i(e=>t.get(e)??[],[t]),S=i((e,n)=>{const r=t.get(n)??[];c({isOpen:!0,caretRect:e,searchText:"",parentStack:[],activeTrigger:n}),d(p(r))},[t]),C=i(()=>{c(e=>({...e,isOpen:!1,searchText:"",parentStack:[]})),d(0)},[]),E=i(e=>{c(n=>{const r=t.get(n.activeTrigger)??[],o=e?g(r,e):r;return d(p(o)),{...n,searchText:e,parentStack:[]}})},[t]),T=i(()=>{m(!0),d(e=>{const t=u(b,e,1);return t>=0?t:e})},[b]),x=i(()=>{m(!0),d(e=>{const t=u(b,e,-1);return t>=0?t:e})},[b]),O=i(()=>{m(!1)},[]),M=i(()=>b[s]??null,[b,s]),N=i(e=>{e.children&&0!==e.children.length&&(c(t=>({...t,parentStack:[...t.parentStack,e.id],searchText:""})),d(p(e.children)))},[]),R=i(()=>{c(e=>{if(0===e.parentStack.length)return e;const n=t.get(e.activeTrigger)??[],r=e.parentStack.slice(0,-1),o=f(n,r),i=e.parentStack[e.parentStack.length-1],l=o.findIndex(e=>e.id===i);return d(l>=0?l:0),{...e,parentStack:r}})},[t]);return{menuState:r,options:v,selectedIndex:s,activeTrigger:r.activeTrigger,openMenu:S,closeMenu:C,updateSearch:E,selectNext:T,selectPrevious:x,getSelectedOption:M,filteredOptions:b,enterSubmenu:N,exitSubmenu:R,isInSubmenu:r.parentStack.length>0,currentMenuItems:y,setSelectedIndex:d,getOptionsForTrigger:w,triggers:n,isKeyboardNavigating:h,clearKeyboardNavigation:O}}({configs:y}),B=l(()=>({mentionStart:x,mentionEnd:O,activeTrigger:M}),[]),V=i(()=>b.current,[]),P=i(()=>{const e=V();return e?S.extractValueMulti(e,v):""},[V,v]),F=i(e=>{const t=b.current,n=(r=e).replace(/\u00A0/g," ").trim()?r:"";var r;E(!n);const o=t?S.extractMentions(t,v[0]??"@"):[],i=R.current,l=o.filter(e=>!i.some(t=>t.id===e.id&&t.trigger===e.trigger)),a=i.filter(e=>!o.some(t=>t.id===e.id&&t.trigger===e.trigger));R.current=o,l.forEach(e=>z.current?.(e)),a.forEach(e=>A.current?.(e)),_.current?.(n,o)},[v]),I=i(()=>{const e=V();e&&k.push(P(),C.getCursorPosition(e))},[V,P,k]),j=i(()=>{F(P()),I()},[P,F,I]),$=i((e,t)=>{const n=V();n&&(n.innerHTML=S.parseValueMulti(e,m),F(S.extractValueMulti(n,v)),requestAnimationFrame(()=>C.setCursorPosition(n,t)))},[V,m,v,F]),K=i(()=>{k.setUndoRedo(!0);const e=k.undo();e&&$(e.content,e.cursorPosition),k.setUndoRedo(!1)},[k,$]),U=i(()=>{k.setUndoRedo(!0);const e=k.redo();e&&$(e.content,e.cursorPosition),k.setUndoRedo(!1)},[k,$]),{handleAtomicMentionNavigation:W,updateMentionSelectionVisuals:X}=T({getElement:V}),{checkForMentionTrigger:G,clearMentionState:q}=function({getElement:e,triggers:t,mentionRefs:n,isMenuOpen:r,openMenu:o,closeMenu:l,updateSearch:a}){const c=i(()=>{n.mentionStart.current=null,n.mentionEnd.current=null,n.activeTrigger.current=null},[n]);return{checkForMentionTrigger:i(()=>{const i=e();if(!i)return;if(!(i.textContent||"").trim())return void(r&&(l(),c()));const s=C.getRange();if(!s)return;let d=s.startContainer,u=s.startOffset;if(d.nodeType!==Node.TEXT_NODE){if(d!==i&&d.nodeType!==Node.ELEMENT_NODE)return void(r&&(l(),c()));{const e=Array.from(i.childNodes);let t=null,n=0;for(const r of e){const o=r.textContent?.length??0;if(r.nodeType===Node.TEXT_NODE&&(n+o>=u||r===e[e.length-1])){t=r;break}n+=o}if(!t||t.nodeType!==Node.TEXT_NODE)return void(r&&(l(),c()));d=t,u=t.textContent?.length??0}}const p=d.textContent||"";let f=-1,g=null;for(let e=Math.max(u,n.mentionEnd.current??0)-1;e>=0;e--){const n=p[e]??"",r=t.find(t=>p.slice(e,e+t.length)===t);if(r&&(0===e||/\s/.test(p[e-1]??""))){f=e,g=r;break}if(/\s/.test(n))break}if(-1!==f&&g){if(u<=f)return void(r&&(l(),c()));const e=s.cloneRange();e.selectNodeContents(i),e.setEnd(d,f);const t=e.toString().length;(null===n.mentionEnd.current||u>n.mentionEnd.current)&&(n.mentionEnd.current=u);const h=p.slice(f+g.length,n.mentionEnd.current);r||(n.mentionStart.current=t,n.mentionEnd.current=u,n.activeTrigger.current=g,o(C.getCaretCoordinates(i),g)),a(h)}else r&&(l(),c())},[e,t,n,r,o,l,a,c]),clearMentionState:c}}({getElement:V,triggers:v,mentionRefs:B,isMenuOpen:H.menuState.isOpen,openMenu:H.openMenu,closeMenu:H.closeMenu,updateSearch:H.updateSearch}),{insertMention:Z}=function({getElement:e,getValue:t,triggers:n,mentionConfigs:r,mentionRefs:o,onInserted:l,closeMenu:a,enterSubmenu:c}){return{insertMention:i(i=>{const s=e(),d=C.get();if(!s||!d||null===o.mentionStart.current||!o.activeTrigger.current)return;if(i.children&&i.children.length>0)return void c(i);const u=o.activeTrigger.current,p=r.find(e=>e.trigger===u),f=p?.showTrigger??!1,g=C.getCursorPosition(s),h=o.mentionStart.current,m=t(),v=S.textPosToSerializedPosMulti(s,h,n),y=S.textPosToSerializedPosMulti(s,g,n),b=m.slice(0,v),w=m.slice(y),E=`${b}${u}[${i.id}] ${w}`,T=r.map(e=>e.trigger===u?{...e,options:[...e.options,i]}:e);s.innerHTML=S.parseValueMulti(E,T),C.setCursorPosition(s,h+(f?u.length:0)+i.label.length+1+(i.icon?1:0)),o.mentionStart.current=null,o.mentionEnd.current=null,o.activeTrigger.current=null,a(),l(E)},[e,t,n,r,o,l,a,c])}}({getElement:V,getValue:P,triggers:v,mentionConfigs:m,mentionRefs:B,onInserted:e=>{F(e),I()},closeMenu:H.closeMenu,enterSubmenu:H.enterSubmenu}),{onCopy:Y,onCut:J,onPaste:Q}=function({getElement:e,triggers:t,mentionConfigs:n,onContentChanged:r}){const o=i(()=>{const e=C.get();if(!e||0===e.rangeCount)return{text:"",html:""};const n=e.getRangeAt(0);if(n.collapsed)return{text:"",html:""};const r=n.cloneContents(),o=document.createElement("div");return o.appendChild(r),{text:S.extractValueMulti(o,t),html:o.innerHTML}},[t]);return{onCopy:i(e=>{const{text:t,html:n}=o();(t||n)&&(e.preventDefault(),e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",n))},[o]),onCut:i(t=>{const n=e(),i=C.get();if(!n||!i)return;const{text:l,html:a}=o();(l||a)&&(t.preventDefault(),t.clipboardData.setData("text/plain",l),t.clipboardData.setData("text/html",a),i.getRangeAt(0).deleteContents(),r())},[e,o,r]),onPaste:i(t=>{t.preventDefault();const o=e(),i=C.get();if(!o||!i||0===i.rangeCount)return;const l=t.clipboardData.getData("text/plain");if(!l)return;const a=i.getRangeAt(0);a.collapsed||a.deleteContents();const c=S.parseValueMulti(l,n),s=document.createElement("div");s.innerHTML=c;const d=Array.from(s.childNodes);let u=null;d.forEach(e=>{const t=e.cloneNode(!0);a.insertNode(t),a.setStartAfter(t),a.collapse(!0),u=t}),u&&(a.setStartAfter(u),a.collapse(!0),i.removeAllRanges(),i.addRange(a)),r()},[e,n,r])}}({getElement:V,triggers:v,mentionConfigs:m,onContentChanged:j}),ee=i(e=>{const t=V(),n=C.getRange();if(!t||!n?.collapsed||0!==n.startOffset)return!1;const r=n.startContainer,o=r.nodeType===Node.TEXT_NODE?r.previousSibling:r.previousElementSibling;return!(!o||!S.isMentionElement(o)||(e.preventDefault(),o.remove(),F(P()),I(),0))},[V,P,F,I]),te=i(e=>{const t=navigator.platform.toUpperCase().includes("MAC"),n=t?e.metaKey:e.ctrlKey;if(H.menuState.isOpen)switch(e.key){case"ArrowDown":return e.preventDefault(),void H.selectNext();case"ArrowUp":return e.preventDefault(),void H.selectPrevious();case"Tab":{e.preventDefault();const t=H.getSelectedOption();return void(t&&(t.children&&t.children.length>0?H.enterSubmenu(t):Z(t)))}case"Enter":{e.preventDefault();const t=H.getSelectedOption();return void(t&&Z(t))}case"Escape":return e.preventDefault(),void(H.isInSubmenu?H.exitSubmenu():(H.closeMenu(),q()))}if(!(("ArrowLeft"===e.key||"ArrowRight"===e.key)&&W(e)||"Backspace"===e.key&&ee(e))){if("Backspace"===e.key&&H.menuState.isOpen&&null!==x.current){const e=V();e&&(N.current?(H.closeMenu(),q(),N.current=!1):C.getCursorPosition(e)===x.current+(M.current??v[0]??"@").length&&(H.closeMenu(),q()))}if((e.metaKey||e.ctrlKey)&&"a"===e.key?N.current=!0:"Backspace"!==e.key&&(N.current=!1),n&&"z"===e.key&&!e.shiftKey?(e.preventDefault(),K()):(n&&"z"===e.key&&e.shiftKey||e.ctrlKey&&"y"===e.key&&!t)&&(e.preventDefault(),U()),"Enter"===e.key&&!e.shiftKey){e.preventDefault();const t=V(),n=t?S.extractMentions(t,v[0]??"@"):[];D.current?.(P(),n)}}},[H,Z,ee,K,U,W,V,v,P,q]),ne=i(e=>{["ArrowLeft","ArrowRight","Home","End"].includes(e.key)&&(G(),X())},[G,X]),re=i(()=>{X(),H.menuState.isOpen&&requestAnimationFrame(()=>{G()})},[H.menuState.isOpen,G,X]),oe=i(e=>{const t=e.target,n=t.closest("[data-mention-delete]");if(n){e.preventDefault(),e.stopPropagation();const t=n.closest("[data-mention]");if(t){const e=V();if(!e)return;const n=C.get();if(n){const e=document.createRange();e.setStartAfter(t),e.collapse(!0),n.removeAllRanges(),n.addRange(e)}t.remove(),F(P()),I(),e.focus()}return}const r=t.closest("[data-mention]");if(!r)return;const o=V();if(!o)return;if(e.preventDefault(),L.current){const e=r.getAttribute("data-mention-id")||r.getAttribute("data-mention")||"",t=r.getAttribute("data-mention")||"",n=r.getAttribute("data-mention-trigger")||v[0]||"@";L.current({id:e,label:t,trigger:n})}const i=r.getBoundingClientRect(),l=e.clientX,a=i.left+i.width/2,c=C.get();if(!c)return;const s=document.createRange();l<a?s.setStartBefore(r):s.setStartAfter(r),s.collapse(!0),c.removeAllRanges(),c.addRange(s),o.focus()},[V,P,F,I,v]),ie=i(()=>{V()&&!k.isUndoRedo()&&(F(P()),I(),G())},[V,P,k,F,I,G]);c(()=>{const t=b.current;t&&e&&(t.innerHTML=S.parseValueMulti(e,m),R.current=S.extractMentions(t,v[0]??"@"))},[]),c(()=>{const e=()=>{const e=b.current;if(!e)return;const t=window.getSelection();if(t&&t.rangeCount>0){const n=t.getRangeAt(0);e.contains(n.commonAncestorContainer)?X():e.querySelectorAll("[data-mention]").forEach(e=>{e.classList.remove("mention-selected")})}};return document.addEventListener("selectionchange",e),()=>{document.removeEventListener("selectionchange",e)}},[X]);const le=i(()=>{H.closeMenu(),q()},[H,q]);return{ref:b,isEmpty:w,handlers:{onInput:ie,onKeyDown:te,onKeyUp:ne,onSelect:re,onMouseDown:oe,onCopy:Y,onCut:J,onPaste:Q},mentions:{menuState:H.menuState,filteredOptions:H.filteredOptions,selectedIndex:H.selectedIndex,selectOption:Z,enterSubmenu:H.enterSubmenu,exitSubmenu:H.exitSubmenu,isInSubmenu:H.isInSubmenu,setSelectedIndex:H.setSelectedIndex,activeTrigger:H.activeTrigger,closeMenu:le,isKeyboardNavigating:H.isKeyboardNavigating,clearKeyboardNavigation:H.clearKeyboardNavigation}}}({initialValue:r,mentionConfigs:N,onChange:s,onEnter:d,onMentionAdded:m,onMentionDeleted:v,onMentionClick:y}),H=N.find(e=>e.trigger===z.activeTrigger),B=H?.menuPosition??"below",{styles:V,className:P}=function(e){return e?"string"==typeof e&&e in k?{styles:L(k[e]),className:""}:"object"==typeof e?{styles:L(e),className:""}:{styles:{},className:""}:{styles:{},className:""}}(E),F={...V,...O},I=["prompt-container",P,x].filter(Boolean).join(" ");return t("div",{className:I,style:F,children:[e("div",{ref:R,contentEditable:!0,...D,className:"prompt-input"}),_&&e("div",{className:"prompt-placeholder",children:b}),e(A,{isOpen:z.menuState.isOpen,caretRect:z.menuState.caretRect,preferredPosition:B,options:z.filteredOptions,selectedIndex:z.selectedIndex,onSelect:z.selectOption,onEnterSubmenu:z.enterSubmenu,onExitSubmenu:z.exitSubmenu,isInSubmenu:z.isInSubmenu,onHoverIndex:z.setSelectedIndex,onClose:z.closeMenu,themeStyles:V})]})};export{Ne as DefaultFileIcon,Re as DefaultFolderIcon,ze as Prompt,xe as extensionIconMap,Oe as filenameIconMap,Me as getExtensionIcon,k as presetThemes,L as themeToStyles};
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import r,{useRef as o,useCallback as i,useMemo as l,useState as a,useEffect as c,useLayoutEffect as s}from"react";const d=e=>"divider"!==e.type&&"title"!==e.type,u=(e,t,n)=>{const r=e.length;if(0===r)return-1;let o=t,i=0;do{o=1===n?o>=r-1?0:o+1:o<=0?r-1:o-1,i++}while(!d(e[o])&&i<r);return i>=r?-1:o},p=e=>{const t=e.findIndex(d);return t>=0?t:0},f=(e,t)=>{let n=e;for(const e of t){const t=n.find(t=>t.id===e);if(!t?.children)return[];n=t.children}return n},g=(e,t)=>{const n=t.toLowerCase(),r=[],o=e=>{for(const t of e)if("divider"!==t.type&&"title"!==t.type){if(t.label.toLowerCase().includes(n)){const e={id:t.id,label:t.label};t.icon&&(e.icon=t.icon),t.type&&(e.type=t.type),r.push(e)}t.children&&o(t.children)}};return o(e),r},h=[{trigger:"@",options:[]}],m=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),v=e=>{const t=[];for(const n of e)t.push(n),n.children&&t.push(...v(n.children));return t},y=e=>{const{type:t,props:n}=e;if("string"==typeof t){const e=n||{},r=Object.entries(e).filter(([e])=>"children"!==e&&"ref"!==e).map(([e,t])=>{const n="className"===e?"class":"htmlFor"===e?"for":"strokeWidth"===e?"stroke-width":"strokeLinecap"===e?"stroke-linecap":"strokeLinejoin"===e?"stroke-linejoin":"fillRule"===e?"fill-rule":"clipRule"===e?"clip-rule":"viewBox"===e?"viewBox":e.replace(/([A-Z])/g,"-$1").toLowerCase();return"boolean"==typeof t?t?n:"":`${n}="${String(t).replace(/"/g,""")}"`}).filter(Boolean).join(" "),o=r?`<${t} ${r}>`:`<${t}>`,i=e.children;return null==i?["path","circle","ellipse","line","polygon","polyline","rect","use","img","br","hr","input"].includes(t)?r?`<${t} ${r}/>`:`<${t}/>`:`${o}</${t}>`:`${o}${b(i)}</${t}>`}if("object"==typeof t&&null!==t&&"render"in t)try{const e=(0,t.render)(n,null);return e&&"object"==typeof e&&"type"in e?y(e):""}catch{return""}if("function"==typeof t)try{if(t.prototype&&t.prototype.isReactComponent)return"";const e=t(n);return e&&"object"==typeof e&&"type"in e?y(e):""}catch{return""}return""},b=e=>null==e?"":"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(b).join(""):"object"==typeof e&&"type"in e?y(e):"",w=e=>{if(!e)return"";if("string"==typeof e)return e;try{return y(e)}catch{return""}},S={createHTML(e,t,n,r,o=!1){const i=r?`<span class="mention-pill-icon" data-mention-delete="true"><span class="mention-pill-icon-original">${w(r)}</span><span class="mention-pill-icon-delete"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path d="M18 6L6 18M6 6l12 12"/></svg></span></span>`:"";return`<span contenteditable="false" data-mention="${t}" data-mention-id="${e}" data-mention-trigger="${n}"${r?` data-icon="${encodeURIComponent(w(r))}"`:""}${o?"":' data-hide-trigger="true"'} class="mention-pill">${i}${o?`${n}${t}`:t}</span>`},isMentionElement:e=>e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-mention"),parseValueMulti(e,t){let n=e;for(const e of t){const t=v(e.options),r=e.showTrigger??!1,o=new RegExp(`${m(e.trigger)}\\[([^\\]]+)\\]`,"g");n=n.replace(o,(n,o)=>{const i=t.find(e=>e.id===o)||t.find(e=>e.label===o);return this.createHTML(i?.id||o,i?.label||o,e.trigger,i?.icon,r)})}return n},parseValueWithIcons(e,t){const n=new RegExp(`${m(t)}\\[([^\\]]+)\\]`,"g");return e.replace(n,(e,n)=>this.createHTML(n,n,t))},extractValueMulti(e,t){let n="";const r=t[0]??"@",o=e=>{if(e.nodeType===Node.TEXT_NODE)n+=e.textContent||"";else if(this.isMentionElement(e)){const t=e.getAttribute("data-mention-id")||e.getAttribute("data-mention"),o=e.getAttribute("data-mention-trigger")||r;n+=`${o}[${t}]`}else e.nodeType===Node.ELEMENT_NODE&&e.childNodes.forEach(o)};return o(e),n},extractMentions(e,t="@"){const n=[];return e.querySelectorAll("[data-mention]").forEach(e=>{const r=e.getAttribute("data-mention")||"",o=e.getAttribute("data-mention-id")||r,i=e.getAttribute("data-mention-trigger")||t;n.push({id:o,label:r,trigger:i})}),n},textPosToSerializedPosMulti(e,t,n){let r=0,o=0;const i=n[0]??"@",l=e=>{if(e.nodeType===Node.TEXT_NODE){const n=e.textContent?.length??0;if(r+n>=t)return o+=t-r,!0;r+=n,o+=n}else if(this.isMentionElement(e)){const n=e.textContent?.length??0,l=e.getAttribute("data-mention-id")||e.getAttribute("data-mention")||"",a=(e.getAttribute("data-mention-trigger")||i).length+l.length+2;if(r+n>=t)return o+=a,!0;r+=n,o+=a}else if(e.nodeType===Node.ELEMENT_NODE)for(const t of Array.from(e.childNodes))if(l(t))return!0;return!1};return l(e),o}},C={get:()=>window.getSelection(),getRange(){const e=this.get();return e&&e.rangeCount>0?e.getRangeAt(0):null},getCursorPosition(e){const t=this.getRange();if(!t)return 0;const n=t.cloneRange();return n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset),n.toString().length},setCursorPosition(e,t){const n=this.get();if(!n)return;const r=document.createRange();let o=0,i=!1;const l=e=>{if(e.nodeType===Node.TEXT_NODE){const n=e.textContent?.length??0;if(o+n>=t)return r.setStart(e,t-o),r.collapse(!0),i=!0,!0;o+=n}else if(S.isMentionElement(e)){const n=e.textContent?.length??0;if(o+n>=t)return r.setStartAfter(e),r.collapse(!0),i=!0,!0;o+=n}else if(e.nodeType===Node.ELEMENT_NODE)for(const t of Array.from(e.childNodes))if(l(t))return!0;return!1};l(e),i||(r.selectNodeContents(e),r.collapse(!1)),n.removeAllRanges(),n.addRange(r)},getCaretCoordinates(e){const t=this.getRange();if(!t)return{top:0,left:0,bottom:0,height:0};const n=t.getBoundingClientRect();if(0===n.width&&0===n.height){const t=e.getBoundingClientRect(),n=20;return{top:t.top,left:t.left,bottom:t.top+n,height:n}}return{top:n.top,left:n.left,bottom:n.bottom,height:n.height}},setAfter(e,t,n=1){const r=document.createRange();r.setStart(t,n),r.collapse(!0),e.removeAllRanges(),e.addRange(r)}};function E(e,t){const n=document.createRange();n.selectNode(e);const r=t.compareBoundaryPoints(Range.START_TO_START,n),o=t.compareBoundaryPoints(Range.END_TO_END,n);return r<=0&&o>=0}function T({getElement:e}){const t=o(null),n=i(()=>{t.current=null},[]),r=i((e,n,r)=>{const o=function(e,t){if(t.current)return t.current;if(!e.anchorNode||!e.focusNode)return"right";if(e.anchorNode===e.focusNode)return e.focusOffset<e.anchorOffset?"left":"right";return e.anchorNode.compareDocumentPosition(e.focusNode)&Node.DOCUMENT_POSITION_PRECEDING?"left":(Node,"right")}(e,t);t.current||(t.current=o);const i=function(e,t,n){const r=e.cloneRange();return"start"===t?function(e,t,n){const r=t.startContainer,o=t.startOffset;if("left"===n)if(r.nodeType===Node.TEXT_NODE&&o>0)e.setStart(r,o-1);else if(r.nodeType===Node.TEXT_NODE&&0===o){const t=r.previousSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,Math.max(0,(t.textContent?.length??0)-1));else{if(!t)return null;e.setStartBefore(t)}}else{if(!(r.nodeType===Node.ELEMENT_NODE&&o>0))return null;{const t=r.childNodes[o-1];if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,Math.max(0,(t.textContent?.length??0)-1));else{if(!t)return null;e.setStartBefore(t)}}}else if(r.nodeType===Node.TEXT_NODE)if(o<(r.textContent?.length??0))e.setStart(r,o+1);else{const t=r.nextSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,1);else{if(!t)return null;e.setStartAfter(t)}}else{if(r.nodeType!==Node.ELEMENT_NODE)return null;{const t=r.childNodes[o];if(t&&t.nodeType===Node.TEXT_NODE)e.setStart(t,1);else{if(!t)return null;e.setStartAfter(t)}}}return e}(r,e,n):function(e,t,n){const r=t.endContainer,o=t.endOffset;if("right"===n)if(r.nodeType===Node.TEXT_NODE)if(o<(r.textContent?.length??0))e.setEnd(r,o+1);else{const t=r.nextSibling;if(t&&t.nodeType===Node.TEXT_NODE)e.setEnd(t,1);else{if(!t)return null;e.setEndAfter(t)}}else{if(r.nodeType!==Node.ELEMENT_NODE)return null;{const t=r.childNodes[o];if(t&&t.nodeType===Node.TEXT_NODE)e.setEnd(t,1);else{if(!t)return null;e.setEndAfter(t)}}}else if(r.nodeType===Node.TEXT_NODE&&o>0)e.setEnd(r,o-1);else if(r.nodeType===Node.TEXT_NODE&&0===o){const t=r.previousSibling;if(t&&t.nodeType===Node.TEXT_NODE){const n=t.textContent?.length??0;e.setEnd(t,n>0?n-1:0)}else{if(!t)return null;e.setEndBefore(t)}}else{if(!(r.nodeType===Node.ELEMENT_NODE&&o>0))return null;{const t=r.childNodes[o-1];if(t&&t.nodeType===Node.TEXT_NODE){const n=t.textContent?.length??0;e.setEnd(t,n>0?n-1:0)}else{if(!t)return null;e.setEndBefore(t)}}}return e}(r,e,n)}(n,"left"===o?"start":"end",r);return!!i&&(i.collapsed?(t.current=null,e.removeAllRanges(),e.addRange(i),!0):(e.removeAllRanges(),e.addRange(i),!0))},[]);return{handleAtomicMentionNavigation:i(n=>{const o=e();if(!o)return!1;if(n.altKey||n.metaKey||n.ctrlKey)return!1;const i=C.get();if(!i||0===i.rangeCount)return!1;const l=i.getRangeAt(0),a="ArrowLeft"===n.key,c=n.shiftKey;if(!a&&"ArrowRight"!==n.key)return!1;let s=null;if(a){const e=l.startContainer,t=l.startOffset;if(e.nodeType===Node.TEXT_NODE&&0===t){const t=e.previousSibling;t&&S.isMentionElement(t)&&(s=t)}else if(e.nodeType===Node.ELEMENT_NODE){const n=e.childNodes[t-1];n&&S.isMentionElement(n)&&(s=n)}}else{const e=l.endContainer,t=l.endOffset;if(e.nodeType===Node.TEXT_NODE){if(t===(e.textContent?.length??0)){const t=e.nextSibling;t&&S.isMentionElement(t)&&(s=t)}}else if(e.nodeType===Node.ELEMENT_NODE){const n=e.childNodes[t];n&&S.isMentionElement(n)&&(s=n)}}if(s){if(!l.collapsed&&E(s,l)){if(n.preventDefault(),c)r(i,l,a?"left":"right");else{t.current=null;const e=document.createRange();a?e.setStart(l.startContainer,l.startOffset):e.setStart(l.endContainer,l.endOffset),e.collapse(!0),i.removeAllRanges(),i.addRange(e)}return!0}n.preventDefault();const e=document.createRange();return c?(l.collapsed&&(t.current=a?"left":"right"),a?(e.setStartBefore(s),e.setEnd(l.endContainer,l.endOffset)):(e.setStart(l.startContainer,l.startOffset),e.setEndAfter(s))):(t.current=null,a?(e.setStartBefore(s),e.collapse(!0)):(e.setStartAfter(s),e.collapse(!0))),i.removeAllRanges(),i.addRange(e),!0}if(!l.collapsed){const e=o.querySelectorAll("[data-mention]");for(const o of Array.from(e))if(E(o,l)){if(n.preventDefault(),c)r(i,l,a?"left":"right");else{t.current=null;const e=document.createRange();a?e.setStart(l.startContainer,l.startOffset):e.setStart(l.endContainer,l.endOffset),e.collapse(!0),i.removeAllRanges(),i.addRange(e)}return!0}}return!1},[e,r]),updateMentionSelectionVisuals:i(()=>{const t=e();if(!t)return;const n=C.get(),r=t.querySelectorAll("[data-mention]");if(r.forEach(e=>{e.classList.remove("mention-selected")}),!n||0===n.rangeCount)return;const o=n.getRangeAt(0);o.collapsed||r.forEach(e=>{E(e,o)&&e.classList.add("mention-selected")})},[e]),resetSelectionDirection:n}}var x,O={exports:{}},M={};var N,R,_={};var D=(R||(R=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),O.exports=function(){if(x)return M;x=1;var e=r;function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var o={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal"),l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return M.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,M.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},M.flushSync=function(e){var t=l.T,n=o.p;try{if(l.T=null,o.p=2,e)return e()}finally{l.T=t,o.p=n,o.d.f()}},M.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,o.d.C(e,t))},M.prefetchDNS=function(e){"string"==typeof e&&o.d.D(e)},M.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?o.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:l}):"script"===n&&o.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},M.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);o.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&o.d.M(e)},M.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=a(n,t.crossOrigin);o.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},M.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);o.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else o.d.m(e)},M.requestFormReset=function(e){o.d.r(e)},M.unstable_batchedUpdates=function(e,t){return e(t)},M.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},M.useFormStatus=function(){return l.H.useHostTransitionStatus()},M.version="19.2.3",M}()):O.exports=(N||(N=1,"production"!==process.env.NODE_ENV&&function(){function e(){}function t(e){return""+e}function n(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}function o(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":'something with type "'+typeof e+'"'}function i(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":"string"==typeof e?JSON.stringify(e):"number"==typeof e?"`"+e+"`":'something with type "'+typeof e+'"'}function l(){var e=d.H;return null===e&&console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=r,c={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},s=Symbol.for("react.portal"),d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,_.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error("Target container is not a DOM element.");return function(e,n,r){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;try{t(o);var i=!1}catch(e){i=!0}return i&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object"),t(o)),{$$typeof:s,key:null==o?null:""+o,children:e,containerInfo:n,implementation:r}}(e,n,null,r)},_.flushSync=function(e){var t=d.T,n=c.p;try{if(d.T=null,c.p=2,e)return e()}finally{d.T=t,c.p=n,c.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},_.preconnect=function(e,t){"string"==typeof e&&e?null!=t&&"object"!=typeof t?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(t)):null!=t&&"string"!=typeof t.crossOrigin&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,c.d.C(e,t))},_.prefetchDNS=function(e){if("string"==typeof e&&e){if(1<arguments.length){var t=arguments[1];"object"==typeof t&&t.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(t))}}else console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e));"string"==typeof e&&c.d.D(e)},_.preinit=function(e,t){if("string"==typeof e&&e?null==t||"object"!=typeof t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(t)):"style"!==t.as&&"script"!==t.as&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),"string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,l=n(r,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?c.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:s}):"script"===r&&c.d.X(e,{crossOrigin:l,integrity:a,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},_.preinitModule=function(e,t){var r="";"string"==typeof e&&e||(r+=" The `href` argument encountered was "+o(e)+"."),void 0!==t&&"object"!=typeof t?r+=" The `options` argument encountered was "+o(t)+".":t&&"as"in t&&"script"!==t.as&&(r+=" The `as` option encountered was "+i(t.as)+"."),r?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",r):"script"===(r=t&&"string"==typeof t.as?t.as:"script")||(r=i(r),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',r,e)),"string"==typeof e&&("object"==typeof t&&null!==t?null!=t.as&&"script"!==t.as||(r=n(t.as,t.crossOrigin),c.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})):null==t&&c.d.M(e))},_.preload=function(e,t){var r="";if("string"==typeof e&&e||(r+=" The `href` argument encountered was "+o(e)+"."),null==t||"object"!=typeof t?r+=" The `options` argument encountered was "+o(t)+".":"string"==typeof t.as&&t.as||(r+=" The `as` option encountered was "+o(t.as)+"."),r&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',r),"string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var i=n(r=t.as,t.crossOrigin);c.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},_.preloadModule=function(e,t){var r="";"string"==typeof e&&e||(r+=" The `href` argument encountered was "+o(e)+"."),void 0!==t&&"object"!=typeof t?r+=" The `options` argument encountered was "+o(t)+".":t&&"as"in t&&"string"!=typeof t.as&&(r+=" The `as` option encountered was "+o(t.as)+"."),r&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',r),"string"==typeof e&&(t?(r=n(t.as,t.crossOrigin),c.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})):c.d.m(e))},_.requestFormReset=function(e){c.d.r(e)},_.unstable_batchedUpdates=function(e,t){return e(t)},_.useFormState=function(e,t,n){return l().useFormState(e,t,n)},_.useFormStatus=function(){return l().useHostTransitionStatus()},_.version="19.2.3","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_)),O.exports);const z=()=>e("svg",{className:"mention-menu-chevron",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})}),A=({isOpen:n,caretRect:r,preferredPosition:l="below",options:d,selectedIndex:u,onSelect:p,onEnterSubmenu:f,isInSubmenu:g=!1,onHoverIndex:h,onClose:m,isKeyboardNavigating:v=!1,onMouseActivity:y,themeStyles:b})=>{const w=o(null),[S,C]=a(l),[E,T]=a(0),x=i(e=>{v&&y?.(),h?.(e)},[v,y,h]);if(c(()=>{if(!n||!m)return;const e=e=>{const t=e.target;if(w.current?.contains(t))return;const n=t.closest?.(".prompt-input");n||m()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n,m]),s(()=>{if(!n||!w.current)return;const e=w.current.getBoundingClientRect();T(e.height);const t=window.innerHeight-r.bottom-4,o=r.top-4;C("below"===l?e.height>t&&o>t?"above":"below":e.height>o&&t>o?"below":"above")},[n,r,l,d]),c(()=>{if(n&&w.current){const e=w.current.querySelector(`[data-index="${u}"]`);e&&e.scrollIntoView({block:"nearest"})}},[n,u]),!n||0===d.length)return null;const O=e("div",{ref:w,className:"mention-menu"+(v?" keyboard-navigating":""),style:{position:"fixed",top:Math.max(4,"below"===S?r.bottom+4:r.top-E-4),left:r.left},children:d.map((n,r)=>{const o=`${r}-${n.id}`;if("divider"===n.type)return e("div",{className:"mention-menu-divider",role:"separator"},o);if("title"===n.type)return t("div",{className:"mention-menu-title",children:[n.icon&&e("span",{className:"mention-menu-item-icon",children:n.icon}),e("span",{className:"mention-menu-title-label",children:n.label})]},o);const i=n.children&&n.children.length>0;return t("div",{"data-index":r,className:`mention-menu-item ${r===u?"mention-menu-item-selected":""} ${i?"mention-menu-item-has-children":""}`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),i&&f?f(n):p(n)},onMouseMove:()=>x(r),children:[n.icon&&e("span",{className:"mention-menu-item-icon",children:n.icon}),e("span",{className:"mention-menu-item-label",children:n.label}),i&&e(z,{})]},o)})});return D.createPortal(e("div",{style:b,children:O}),document.body)};function L(e){if(!e)return{};const t={};return e.backgroundColor&&(t["--prompt-background-color"]=e.backgroundColor),e.color&&(t["--prompt-color"]=e.color),e.placeholderColor&&(t["--prompt-placeholder-color"]=e.placeholderColor),e.fontSize&&(t["--prompt-font-size"]=e.fontSize),e.fontFamily&&(t["--prompt-font-family"]=e.fontFamily),e.borderRadius&&(t["--prompt-border-radius"]=e.borderRadius),e.borderColor&&(t["--prompt-border-color"]=e.borderColor),e.padding&&(t["--prompt-padding"]=e.padding),e.focusBorderColor&&(t["--prompt-focus-border-color"]=e.focusBorderColor),e.focusBoxShadow&&(t["--prompt-focus-box-shadow"]=e.focusBoxShadow),e.lineHeight&&(t["--prompt-line-height"]=e.lineHeight),e.borderWidth&&(t["--prompt-border-width"]=e.borderWidth),e.minHeight&&(t["--prompt-min-height"]=e.minHeight),e.menu&&(e.menu.backgroundColor&&(t["--prompt-mention-menu-background-color"]=e.menu.backgroundColor),e.menu.borderColor&&(t["--prompt-mention-menu-border-color"]=e.menu.borderColor),e.menu.color&&(t["--prompt-mention-menu-color"]=e.menu.color),e.menu.itemHoverColor&&(t["--prompt-mention-menu-item-hover-color"]=e.menu.itemHoverColor),e.menu.chevronColor&&(t["--prompt-mention-menu-chevron-color"]=e.menu.chevronColor),e.menu.chevronHoverColor&&(t["--prompt-mention-menu-chevron-hover-color"]=e.menu.chevronHoverColor),e.menu.minWidth&&(t["--prompt-mention-menu-min-width"]=e.menu.minWidth),e.menu.item&&(e.menu.item.height&&(t["--prompt-mention-menu-item-height"]=e.menu.item.height),e.menu.item.padding&&(t["--prompt-mention-menu-item-padding"]=e.menu.item.padding),e.menu.item.gap&&(t["--prompt-mention-menu-item-gap"]=e.menu.item.gap),e.menu.item.labelFontSize&&(t["--prompt-mention-menu-item-label-font-size"]=e.menu.item.labelFontSize),void 0!==e.menu.item.labelFontWeight&&(t["--prompt-mention-menu-item-label-font-weight"]=String(e.menu.item.labelFontWeight)),e.menu.item.iconHeight&&(t["--prompt-mention-menu-item-icon-height"]=e.menu.item.iconHeight)),e.menu.title&&(e.menu.title.padding&&(t["--prompt-mention-menu-title-padding"]=e.menu.title.padding),e.menu.title.paddingTop&&(t["--prompt-mention-menu-title-padding-top"]=e.menu.title.paddingTop),e.menu.title.height&&(t["--prompt-mention-menu-title-height"]=e.menu.title.height),e.menu.title.labelFontSize&&(t["--prompt-mention-menu-title-label-font-size"]=e.menu.title.labelFontSize),void 0!==e.menu.title.labelFontWeight&&(t["--prompt-mention-menu-title-label-font-weight"]=String(e.menu.title.labelFontWeight)),e.menu.title.labelColor&&(t["--prompt-mention-menu-title-label-color"]=e.menu.title.labelColor),e.menu.title.labelTextTransform&&(t["--prompt-mention-menu-title-label-text-transform"]=e.menu.title.labelTextTransform),e.menu.title.labelLetterSpacing&&(t["--prompt-mention-menu-title-label-letter-spacing"]=e.menu.title.labelLetterSpacing),void 0!==e.menu.title.labelOpacity&&(t["--prompt-mention-menu-title-label-opacity"]=String(e.menu.title.labelOpacity)))),e.pill&&(e.pill.backgroundColor&&(t["--prompt-mention-pill-background-color"]=e.pill.backgroundColor),e.pill.borderRadius&&(t["--prompt-mention-pill-border-radius"]=e.pill.borderRadius),e.pill.color&&(t["--prompt-mention-pill-color"]=e.pill.color),e.pill.padding&&(t["--prompt-mention-pill-padding"]=e.pill.padding),e.pill.lineHeight&&(t["--prompt-mention-pill-line-height"]=e.pill.lineHeight)),t}const k={light:{backgroundColor:"white",color:"black",placeholderColor:"#9ca3af",fontSize:"14px",fontFamily:"inherit",borderRadius:"0.375rem",borderColor:"#d1d5db",padding:"0.5rem",focusBorderColor:"#6366f1",focusBoxShadow:"0 0 0 2px rgba(99, 102, 241, 0.2)",menu:{backgroundColor:"white",borderColor:"#e5e7eb",color:"black",itemHoverColor:"#f3f4f6",chevronColor:"#9ca3af",chevronHoverColor:"#6366f1",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#9ca3af",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)",borderRadius:"9999px",color:"white",padding:"0.125rem 0.5rem"}},cursorDark:{backgroundColor:"#22242C",color:"#d8dee9",placeholderColor:"#585C65",fontSize:"13px",fontFamily:'-apple-system, "system-ui", sans-serif',borderRadius:"8px",borderColor:"#2F353F",padding:".375rem .5rem .25rem",focusBorderColor:"#2F353F",focusBoxShadow:"none",lineHeight:"1.7",menu:{backgroundColor:"#1A1C21",borderColor:"#282C35",color:"#7A88A1",itemHoverColor:"#21262E",chevronColor:"#373C48",chevronHoverColor:"#373C48",minWidth:"240px",item:{height:"20px",padding:"2px 6px",gap:"0px",labelFontSize:"12px",labelFontWeight:300,iconHeight:"12px"},title:{padding:"2px 6px",paddingTop:"2px",height:"20px",labelFontSize:"11px",labelFontWeight:300,labelColor:"#d8dee9",labelTextTransform:"none",labelLetterSpacing:"0",labelOpacity:.4}},pill:{backgroundColor:"#283B56",borderRadius:"4px",color:"#d8dee9",padding:"1px 4px 2px 4px",lineHeight:"1.4"}},githubDark:{backgroundColor:"#0d1117",color:"#c9d1d9",placeholderColor:"#484f58",fontSize:"14px",fontFamily:"inherit",borderRadius:"6px",borderColor:"#30363d",padding:"0.5rem 0.75rem",focusBorderColor:"#58a6ff",focusBoxShadow:"0 0 0 2px rgba(88, 166, 255, 0.2)",menu:{backgroundColor:"#161b22",borderColor:"#30363d",color:"#c9d1d9",itemHoverColor:"#21262d",chevronColor:"#484f58",chevronHoverColor:"#58a6ff",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#8b949e",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"#388bfd26",borderRadius:"6px",color:"#58a6ff",padding:"0.125rem 0.5rem"}},minimal:{backgroundColor:"#fafafa",color:"#18181b",placeholderColor:"#a1a1aa",fontSize:"15px",fontFamily:"inherit",borderRadius:"8px",borderColor:"#e4e4e7",padding:"0.75rem",focusBorderColor:"#18181b",focusBoxShadow:"0 0 0 2px rgba(24, 24, 27, 0.1)",menu:{backgroundColor:"#ffffff",borderColor:"#e4e4e7",color:"#3f3f46",itemHoverColor:"#f4f4f5",chevronColor:"#a1a1aa",chevronHoverColor:"#18181b",minWidth:"180px",item:{height:"auto",padding:"0.5rem 0.75rem",gap:"4px",labelFontSize:"0.875rem",labelFontWeight:500,iconHeight:"1.25rem"},title:{padding:"0.5rem 0.75rem",paddingTop:"0.75rem",height:"auto",labelFontSize:"0.6875rem",labelFontWeight:600,labelColor:"#a1a1aa",labelTextTransform:"uppercase",labelLetterSpacing:"0.05em",labelOpacity:1}},pill:{backgroundColor:"#18181b",borderRadius:"4px",color:"#fafafa",padding:"0.125rem 0.5rem"}}},H=n.forwardRef(function({title:n="CSS",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#663399"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63"})]})}),B=n.forwardRef(function({title:n="Docker",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#2496ED"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"})]})}),V=n.forwardRef(function({title:n=".ENV",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#ECD53F"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M24 0v24H0V0h24ZM10.933 15.89H6.84v5.52h4.198v-.93H7.955v-1.503h2.77v-.93h-2.77v-1.224h2.978v-.934Zm2.146 0h-1.084v5.52h1.035v-3.6l2.226 3.6h1.118v-5.52h-1.036v3.686l-2.259-3.687Zm5.117 0h-1.208l1.973 5.52h1.19l1.976-5.52h-1.182l-1.352 4.085-1.397-4.086ZM5.4 19.68H3.72v1.68H5.4v-1.68Z"})]})}),P=n.forwardRef(function({title:n="Git",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#F05032"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M23.546 10.93L13.067.452c-.604-.603-1.582-.603-2.188 0L8.708 2.627l2.76 2.76c.645-.215 1.379-.07 1.889.441.516.515.658 1.258.438 1.9l2.658 2.66c.645-.223 1.387-.078 1.9.435.721.72.721 1.884 0 2.604-.719.719-1.881.719-2.6 0-.539-.541-.674-1.337-.404-1.996L12.86 8.955v6.525c.176.086.342.203.488.348.713.721.713 1.883 0 2.6-.719.721-1.889.721-2.609 0-.719-.719-.719-1.879 0-2.598.182-.18.387-.316.605-.406V8.835c-.217-.091-.424-.222-.6-.401-.545-.545-.676-1.342-.396-2.009L7.636 3.7.45 10.881c-.6.605-.6 1.584 0 2.189l10.48 10.477c.604.604 1.582.604 2.186 0l10.43-10.43c.605-.603.605-1.582 0-2.187"})]})}),F=n.forwardRef(function({title:n="Go",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#00ADD8"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"})]})}),I=n.forwardRef(function({title:n="GraphQL",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#E10098"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"})]})}),j=n.forwardRef(function({title:n="HTML5",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#E34F26"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438L1.5 0zm7.031 9.75l-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157H8.531z"})]})}),$=n.forwardRef(function({title:n="ImageJ",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#00D8E0"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M13.1286 17.5084h-8.072a.187.187 0 0 1-.187-.187v-.4442a.187.187 0 0 1 .187-.187h8.0721a.187.187 0 0 1 .187.187v.4442a.1872.1872 0 0 1-.1871.187zm5.6234-12.195c-1.4233.0033-4.2184-.0098-5.6414-.0065a.4035.4035 0 0 0-.4035.4035v3.6061c0 .2229.1807.4035.4035.4035h1.7475v8.19a1.8275 1.8275 0 0 1-.9112 1.5761 1.8277 1.8277 0 0 1-1.8224 0 1.8276 1.8276 0 0 1-.9113-1.5784H6.941c0 2.1705 1.1677 4.193 3.0473 5.2782.9398.5428 1.9936.8141 3.0474.8141s2.1076-.2713 3.0474-.8139c1.8795-1.0837 3.0444-3.1089 3.0473-5.274V5.692a.3785.3785 0 0 0-.3784-.3786zM7.4546 15.2306h3.276a.6403.6403 0 0 0 .6403-.6403V.6403A.6403.6403 0 0 0 10.7306 0h-3.276a.6403.6403 0 0 0-.6403.6403v13.95c0 .3536.2867.6403.6403.6403z"})]})}),K=n.forwardRef(function({title:n="JavaScript",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#F7DF1E"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179l.004-.056z"})]})}),U=n.forwardRef(function({title:n="JSON",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#000000"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M12.043 23.968c.479-.004.953-.029 1.426-.094a11.805 11.805 0 003.146-.863 12.404 12.404 0 003.793-2.542 11.977 11.977 0 002.44-3.427 11.794 11.794 0 001.02-3.476c.149-1.16.135-2.346-.045-3.499a11.96 11.96 0 00-.793-2.788 11.197 11.197 0 00-.854-1.617c-1.168-1.837-2.861-3.314-4.81-4.3a12.835 12.835 0 00-2.172-.87h-.005c.119.063.24.132.345.201.12.074.239.146.351.225a8.93 8.93 0 011.559 1.33c1.063 1.145 1.797 2.548 2.218 4.041.284.982.434 1.998.495 3.017.044.743.044 1.491-.047 2.229-.149 1.27-.554 2.51-1.228 3.596a7.475 7.475 0 01-1.903 2.084c-1.244.928-2.877 1.482-4.436 1.114a3.916 3.916 0 01-.748-.258 4.692 4.692 0 01-.779-.45 6.08 6.08 0 01-1.244-1.105 6.507 6.507 0 01-1.049-1.747 7.366 7.366 0 01-.494-2.54c-.03-1.273.225-2.553.854-3.67a6.43 6.43 0 011.663-1.918c.225-.178.464-.333.704-.479l.016-.007a5.121 5.121 0 00-1.441-.12 4.963 4.963 0 00-1.228.24c-.359.12-.704.27-1.019.45a6.146 6.146 0 00-.733.494c-.211.18-.42.36-.615.555-1.123 1.153-1.768 2.682-2.022 4.256-.15.973-.15 1.96-.091 2.95.105 1.395.391 2.787.945 4.062a8.518 8.518 0 001.348 2.173 8.14 8.14 0 003.132 2.23 7.934 7.934 0 002.113.54c.074.015.149.015.209.015zm-2.934-.398a4.102 4.102 0 01-.45-.228 8.5 8.5 0 01-2.038-1.534c-1.094-1.137-1.827-2.566-2.247-4.08a15.184 15.184 0 01-.495-3.172 12.14 12.14 0 01.046-2.082c.135-1.257.495-2.501 1.124-3.58a6.889 6.889 0 011.783-2.053 6.23 6.23 0 011.633-.9 5.363 5.363 0 013.522-.045c.029 0 .029 0 .045.03.015.015.045.015.06.03.045.016.104.045.165.074.239.12.479.271.704.42a6.294 6.294 0 012.097 2.502c.42.914.615 1.934.631 2.938.014 1.079-.18 2.157-.645 3.146a6.42 6.42 0 01-2.638 2.832c.09.03.18.045.271.075.225.044.449.074.688.074 1.468.045 2.892-.66 3.94-1.647.195-.18.375-.375.54-.585.225-.27.435-.54.614-.823.239-.375.435-.75.614-1.154a8.112 8.112 0 00.509-1.664c.196-1.004.211-2.022.149-3.026-.135-2.022-.673-4.045-1.842-5.724a9.054 9.054 0 00-.555-.719 9.868 9.868 0 00-1.063-1.034 8.477 8.477 0 00-1.363-.915 9.927 9.927 0 00-1.692-.598l-.3-.06c-.209-.03-.42-.044-.634-.06a8.453 8.453 0 00-1.015.016c-.704.045-1.412.16-2.112.337C5.799 1.227 2.863 3.566 1.3 6.67A11.834 11.834 0 00.238 9.801a11.81 11.81 0 00-.104 3.775c.12 1.02.374 2.023.778 2.977.227.57.511 1.124.825 1.648 1.094 1.783 2.683 3.236 4.51 4.24.688.39 1.408.69 2.157.944.226.074.45.15.689.21z"})]})}),W=n.forwardRef(function({title:n="Markdown",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#000000"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M22.27 19.385H1.73A1.73 1.73 0 010 17.655V6.345a1.73 1.73 0 011.73-1.73h20.54A1.73 1.73 0 0124 6.345v11.308a1.73 1.73 0 01-1.73 1.731zM5.769 15.923v-4.5l2.308 2.885 2.307-2.885v4.5h2.308V8.078h-2.308l-2.307 2.885-2.308-2.885H3.46v7.847zM21.232 12h-2.309V8.077h-2.307V12h-2.308l3.461 4.039z"})]})}),X=n.forwardRef(function({title:n="PHP",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#777BB4"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"})]})}),G=n.forwardRef(function({title:n="Python",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#3776AB"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z"})]})}),q=n.forwardRef(function({title:n="React",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#61DAFB"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"})]})}),Z=n.forwardRef(function({title:n="Ruby",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#CC342D"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"})]})}),Y=n.forwardRef(function({title:n="Rust",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#000000"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"})]})}),J=n.forwardRef(function({title:n="Sass",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#CC6699"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zM9.615 15.998c.175.645.156 1.248-.024 1.792l-.065.18c-.024.061-.052.12-.078.176-.14.29-.326.56-.555.81-.698.759-1.672 1.047-2.09.805-.45-.262-.226-1.335.584-2.19.871-.918 2.12-1.509 2.12-1.509v-.003l.108-.061zm9.911-10.861c-.542-2.133-4.077-2.834-7.422-1.645-1.989.707-4.144 1.818-5.693 3.267C4.568 8.48 4.275 9.98 4.396 10.607c.427 2.211 3.457 3.657 4.703 4.73v.006c-.367.18-3.056 1.529-3.686 2.925-.675 1.47.105 2.521.615 2.655 1.575.436 3.195-.36 4.065-1.649.84-1.261.766-2.881.404-3.676.496-.135 1.08-.195 1.83-.104 2.101.24 2.521 1.56 2.43 2.1-.09.539-.523.854-.674.944-.15.091-.195.12-.181.181.015.09.091.09.21.075.165-.03 1.096-.45 1.141-1.471.045-1.29-1.186-2.729-3.375-2.7-.9.016-1.471.091-1.875.256-.03-.045-.061-.075-.105-.105-1.35-1.455-3.855-2.475-3.75-4.41.03-.705.285-2.564 4.8-4.814 3.705-1.846 6.661-1.335 7.171-.21.733 1.604-1.576 4.59-5.431 5.024-1.47.165-2.235-.404-2.431-.615-.209-.225-.239-.24-.314-.194-.12.06-.045.255 0 .375.12.3.585.825 1.396 1.095.704.225 2.43.359 4.5-.45 2.324-.899 4.139-3.405 3.614-5.505l.073.067z"})]})}),Q=n.forwardRef(function({title:n="Shell",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#FFD500"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M12 .863C5.34.863 0 6.251 0 12.98c0 .996.038 1.374.246 2.33l3.662 2.71.57 4.515h6.102l.326.227c.377.262.705.375 1.082.375.352 0 .732-.101 1.024-.313l.39-.289h6.094l.563-4.515 3.695-2.71c.208-.956.246-1.334.246-2.33C24 6.252 18.661.863 12 .863zm.996 2.258c.9 0 1.778.224 2.512.649l-2.465 12.548 3.42-12.062c1.059.36 1.863.941 2.508 1.814l.025.034-4.902 10.615 5.572-9.713.033.03c.758.708 1.247 1.567 1.492 2.648l-6.195 7.666 6.436-6.5.01.021c.253.563.417 1.36.417 1.996 0 .509-.024.712-.164 1.25l-3.554 2.602-.467 3.71h-4.475l-.517.395c-.199.158-.482.266-.682.266-.199 0-.483-.108-.682-.266l-.517-.394H6.322l-.445-3.61-3.627-2.666c-.11-.436-.16-.83-.16-1.261 0-.72.159-1.49.426-2.053l.013-.024 6.45 6.551L2.75 9.621c.25-1.063.874-2.09 1.64-2.713l5.542 9.776L4.979 6.1c.555-.814 1.45-1.455 2.546-1.827l3.424 12.069L8.355 3.816l.055-.03c.814-.45 1.598-.657 2.457-.657.195 0 .286.004.528.03l.587 13.05.46-13.059c.224-.025.309-.029.554-.029z"})]})}),ee=n.forwardRef(function({title:n="Svelte",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#FF3E00"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"})]})}),te=n.forwardRef(function({title:n="SVG",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#FFB13B"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M12 0c-1.497 0-2.749.965-3.248 2.17a3.45 3.45 0 00-.238 1.416 3.459 3.459 0 00-1.168-.834 3.508 3.508 0 00-1.463-.256 3.513 3.513 0 00-2.367 1.02c-1.06 1.058-1.263 2.625-.764 3.83.179.432.47.82.82 1.154a3.49 3.49 0 00-1.402.252C.965 9.251 0 10.502 0 12c0 1.497.965 2.749 2.17 3.248.437.181.924.25 1.414.236-.357.338-.65.732-.832 1.17-.499 1.205-.295 2.772.764 3.83 1.058 1.06 2.625 1.263 3.83.764.437-.181.83-.476 1.168-.832-.014.49.057.977.238 1.414C9.251 23.035 10.502 24 12 24c1.497 0 2.749-.965 3.248-2.17a3.45 3.45 0 00.238-1.416c.338.356.73.653 1.168.834 1.205.499 2.772.295 3.83-.764 1.06-1.058 1.263-2.625.764-3.83a3.459 3.459 0 00-.834-1.168 3.45 3.45 0 001.416-.238C23.035 14.749 24 13.498 24 12c0-1.497-.965-2.749-2.17-3.248a3.455 3.455 0 00-1.414-.236c.357-.338.65-.732.832-1.17.499-1.205.295-2.772-.764-3.83a3.513 3.513 0 00-2.367-1.02 3.508 3.508 0 00-1.463.256c-.437.181-.83.475-1.168.832a3.45 3.45 0 00-.238-1.414C14.749.965 13.498 0 12 0zm-.041 1.613a1.902 1.902 0 011.387 3.246v3.893L16.098 6A1.902 1.902 0 1118 7.902l-2.752 2.752h3.893a1.902 1.902 0 110 2.692h-3.893L18 16.098A1.902 1.902 0 1116.098 18l-2.752-2.752v3.893a1.902 1.902 0 11-2.692 0v-3.893L7.902 18A1.902 1.902 0 116 16.098l2.752-2.752H4.859a1.902 1.902 0 110-2.692h3.893L6 7.902A1.902 1.902 0 117.902 6l2.752 2.752V4.859a1.902 1.902 0 011.305-3.246z"})]})}),ne=n.forwardRef(function({title:n="TypeScript",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#3178C6"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"})]})}),re=n.forwardRef(function({title:n="YAML",color:r="currentColor",size:o=24,...i},l){return"default"===r&&(r="#CB171E"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,fill:r,viewBox:"0 0 24 24",ref:l,...i,children:[e("title",{children:n}),e("path",{d:"m0 .97 4.111 6.453v4.09h2.638v-4.09L11.053.969H8.214L5.58 5.125 2.965.969Zm12.093.024-4.47 10.544h2.114l.97-2.345h4.775l.804 2.345h2.26L14.255.994Zm1.133 2.225 1.463 3.87h-3.096zm3.06 9.475v10.29H24v-2.199h-5.454v-8.091zm-12.175.002v10.335h2.217v-7.129l2.32 4.792h1.746l2.4-4.96v7.295h2.127V12.696h-2.904L9.44 17.37l-2.455-4.674Z"})]})}),oe=()=>e("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",clipRule:"evenodd"})}),ie=()=>e("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:e("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"})}),le=()=>e(ne,{}),ae=()=>e(K,{}),ce=()=>e(q,{}),se=()=>e(H,{}),de=()=>e(j,{}),ue=()=>e(U,{}),pe=()=>e(W,{}),fe=()=>e(G,{}),ge=()=>e(re,{}),he=()=>e(Q,{}),me=()=>e($,{}),ve=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[e("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"}),e("circle",{cx:"12",cy:"12",r:"3"})]}),ye=()=>e(P,{}),be=()=>e(oe,{}),we=()=>e(J,{}),Se=()=>e(oe,{}),Ce=()=>e(I,{}),Ee=()=>e(B,{}),Te=()=>e(V,{}),xe={ts:le,tsx:ce,mts:le,cts:le,js:ae,jsx:ce,mjs:ae,cjs:ae,css:se,scss:we,sass:we,less:se,html:de,htm:de,vue:()=>e(oe,{}),svelte:()=>e(ee,{}),json:ue,yaml:ge,yml:ge,toml:ve,xml:de,md:pe,mdx:pe,txt:be,rst:be,py:fe,pyw:fe,go:()=>e(F,{}),rs:()=>e(Y,{}),c:Se,cpp:Se,cc:Se,h:Se,hpp:Se,java:()=>e(oe,{}),php:()=>e(X,{}),rb:()=>e(Z,{}),sql:()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[e("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),e("path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}),e("path",{d:"M3 12A9 3 0 0 0 21 12"})]}),graphql:Ce,gql:Ce,sh:he,bash:he,zsh:he,fish:he,png:me,jpg:me,jpeg:me,gif:me,webp:me,ico:me,svg:()=>e(te,{}),gitignore:ye,gitattributes:ye,env:Te,"env.local":Te,"env.development":Te,"env.production":Te,dockerfile:Ee,dockerignore:Ee,config:ve,rc:ve},Oe={"package.json":ue,"tsconfig.json":le,"jsconfig.json":ae,".gitignore":ye,".gitattributes":ye,".env":Te,".env.local":Te,".env.development":Te,".env.production":Te,dockerfile:Ee,"docker-compose.yml":Ee,"docker-compose.yaml":Ee,"readme.md":pe,license:be,"license.md":be};function Me(t){const n=t.toLowerCase();if(Oe[n])return Oe[n]();if(t.endsWith("/"))return e(ie,{});const r=t.lastIndexOf(".");if(-1===r||r===t.length-1)return;const o=t.slice(r+1).toLowerCase(),i=xe[o];return i?i():e(oe,{})}const Ne=oe,Re=ie,_e=[{trigger:"@",options:[]}];function De(e){return e.map(e=>{if("divider"===e.type||"title"===e.type)return e;if(e.icon)return e.children?{...e,children:De(e.children)}:e;const t=Me(e.label),n=e.children?De(e.children):void 0;return{...e,...t&&{icon:t},...n&&{children:n}}})}const ze=n=>{const{initialValue:r="",onChange:s,onEnter:d,onMentionAdded:m,onMentionDeleted:v,onMentionClick:y,placeholder:b="",mentionConfigs:w=_e,theme:E,className:x="",style:O,extensionIcons:M=!1}=n,N=l(()=>function(e,t){return t?e.map(e=>({...e,options:De(e.options)})):e}(w,M),[w,M]),{ref:R,isEmpty:_,handlers:D,mentions:z}=function({initialValue:e="",onChange:t,onEnter:n,onMentionAdded:r,onMentionDeleted:s,onMentionClick:d,mentionConfigs:m=h}={}){const v=l(()=>m.map(e=>e.trigger),[m]),y=l(()=>m.map(e=>({trigger:e.trigger,options:e.options})),[m]),b=o(null),[w,E]=a(!e),x=o(null),O=o(null),M=o(null),N=o(!1),R=o([]),_=o(t),D=o(n),z=o(r),A=o(s),L=o(d);_.current=t,D.current=n,z.current=r,A.current=s,L.current=d;const k=function({initialValue:e="",maxSize:t=100}={}){const n=o([{content:e,cursorPosition:e.length}]),r=o(0),l=o(!1);return{push:i((e,o)=>{const i=n.current[r.current];i&&i.content===e||(n.current=n.current.slice(0,r.current+1),n.current.push({content:e,cursorPosition:o}),n.current.length>t?n.current.shift():r.current++)},[t]),undo:i(()=>r.current<=0?null:(r.current--,n.current[r.current]??null),[]),redo:i(()=>r.current>=n.current.length-1?null:(r.current++,n.current[r.current]??null),[]),canUndo:i(()=>r.current>0,[]),canRedo:i(()=>r.current<n.current.length-1,[]),isUndoRedo:i(()=>l.current,[]),setUndoRedo:i(e=>{l.current=e},[])}}({initialValue:e}),H=function({configs:e=[]}={}){const t=l(()=>{const t=new Map;for(const n of e)t.set(n.trigger,n.options);return 0===t.size&&t.set("@",[]),t},[e]),n=l(()=>Array.from(t.keys()),[t]),[r,c]=a({isOpen:!1,caretRect:{top:0,left:0,bottom:0,height:0},searchText:"",parentStack:[],activeTrigger:n[0]??"@"}),[s,d]=a(0),[h,m]=a(!1),v=t.get(r.activeTrigger)??[];o(v).current=v;const y=f(v,r.parentStack),b=r.searchText&&0===r.parentStack.length?g(v,r.searchText):y,w=i(e=>t.get(e)??[],[t]),S=i((e,n)=>{const r=t.get(n)??[];c({isOpen:!0,caretRect:e,searchText:"",parentStack:[],activeTrigger:n}),d(p(r))},[t]),C=i(()=>{c(e=>({...e,isOpen:!1,searchText:"",parentStack:[]})),d(0)},[]),E=i(e=>{c(n=>{const r=t.get(n.activeTrigger)??[],o=e?g(r,e):r;return d(p(o)),{...n,searchText:e,parentStack:[]}})},[t]),T=i(()=>{m(!0),d(e=>{const t=u(b,e,1);return t>=0?t:e})},[b]),x=i(()=>{m(!0),d(e=>{const t=u(b,e,-1);return t>=0?t:e})},[b]),O=i(()=>{m(!1)},[]),M=i(()=>b[s]??null,[b,s]),N=i(e=>{e.children&&0!==e.children.length&&(c(t=>({...t,parentStack:[...t.parentStack,e.id],searchText:""})),d(p(e.children)))},[]),R=i(()=>{c(e=>{if(0===e.parentStack.length)return e;const n=t.get(e.activeTrigger)??[],r=e.parentStack.slice(0,-1),o=f(n,r),i=e.parentStack[e.parentStack.length-1],l=o.findIndex(e=>e.id===i);return d(l>=0?l:0),{...e,parentStack:r}})},[t]);return{menuState:r,options:v,selectedIndex:s,activeTrigger:r.activeTrigger,openMenu:S,closeMenu:C,updateSearch:E,selectNext:T,selectPrevious:x,getSelectedOption:M,filteredOptions:b,enterSubmenu:N,exitSubmenu:R,isInSubmenu:r.parentStack.length>0,currentMenuItems:y,setSelectedIndex:d,getOptionsForTrigger:w,triggers:n,isKeyboardNavigating:h,clearKeyboardNavigation:O}}({configs:y}),B=l(()=>({mentionStart:x,mentionEnd:O,activeTrigger:M}),[]),V=i(()=>b.current,[]),P=i(()=>{const e=V();return e?S.extractValueMulti(e,v):""},[V,v]),F=i(e=>{const t=b.current,n=(r=e).replace(/\u00A0/g," ").trim()?r:"";var r;E(!n);const o=t?S.extractMentions(t,v[0]??"@"):[],i=R.current,l=o.filter(e=>!i.some(t=>t.id===e.id&&t.trigger===e.trigger)),a=i.filter(e=>!o.some(t=>t.id===e.id&&t.trigger===e.trigger));R.current=o,l.forEach(e=>z.current?.(e)),a.forEach(e=>A.current?.(e)),_.current?.(n,o)},[v]),I=i(()=>{const e=V();e&&k.push(P(),C.getCursorPosition(e))},[V,P,k]),j=i(()=>{F(P()),I()},[P,F,I]),$=i((e,t)=>{const n=V();n&&(n.innerHTML=S.parseValueMulti(e,m),F(S.extractValueMulti(n,v)),requestAnimationFrame(()=>C.setCursorPosition(n,t)))},[V,m,v,F]),K=i(()=>{k.setUndoRedo(!0);const e=k.undo();e&&$(e.content,e.cursorPosition),k.setUndoRedo(!1)},[k,$]),U=i(()=>{k.setUndoRedo(!0);const e=k.redo();e&&$(e.content,e.cursorPosition),k.setUndoRedo(!1)},[k,$]),{handleAtomicMentionNavigation:W,updateMentionSelectionVisuals:X}=T({getElement:V}),{checkForMentionTrigger:G,clearMentionState:q}=function({getElement:e,triggers:t,mentionRefs:n,isMenuOpen:r,openMenu:o,closeMenu:l,updateSearch:a}){const c=i(()=>{n.mentionStart.current=null,n.mentionEnd.current=null,n.activeTrigger.current=null},[n]);return{checkForMentionTrigger:i(()=>{const i=e();if(!i)return;if(!(i.textContent||"").trim())return void(r&&(l(),c()));const s=C.getRange();if(!s)return;let d=s.startContainer,u=s.startOffset;if(d.nodeType!==Node.TEXT_NODE){if(d!==i&&d.nodeType!==Node.ELEMENT_NODE)return void(r&&(l(),c()));{const e=Array.from(i.childNodes);let t=null,n=0;for(const r of e){const o=r.textContent?.length??0;if(r.nodeType===Node.TEXT_NODE&&(n+o>=u||r===e[e.length-1])){t=r;break}n+=o}if(!t||t.nodeType!==Node.TEXT_NODE)return void(r&&(l(),c()));d=t,u=t.textContent?.length??0}}const p=d.textContent||"";let f=-1,g=null;for(let e=Math.max(u,n.mentionEnd.current??0)-1;e>=0;e--){const n=p[e]??"",r=t.find(t=>p.slice(e,e+t.length)===t);if(r&&(0===e||/\s/.test(p[e-1]??""))){f=e,g=r;break}if(/\s/.test(n))break}if(-1!==f&&g){if(u<=f)return void(r&&(l(),c()));const e=s.cloneRange();e.selectNodeContents(i),e.setEnd(d,f);const t=e.toString().length;(null===n.mentionEnd.current||u>n.mentionEnd.current)&&(n.mentionEnd.current=u);const h=p.slice(f+g.length,n.mentionEnd.current);r||(n.mentionStart.current=t,n.mentionEnd.current=u,n.activeTrigger.current=g,o(C.getCaretCoordinates(i),g)),a(h)}else r&&(l(),c())},[e,t,n,r,o,l,a,c]),clearMentionState:c}}({getElement:V,triggers:v,mentionRefs:B,isMenuOpen:H.menuState.isOpen,openMenu:H.openMenu,closeMenu:H.closeMenu,updateSearch:H.updateSearch}),{insertMention:Z}=function({getElement:e,getValue:t,triggers:n,mentionConfigs:r,mentionRefs:o,onInserted:l,closeMenu:a,enterSubmenu:c}){return{insertMention:i(i=>{const s=e(),d=C.get();if(!s||!d||null===o.mentionStart.current||!o.activeTrigger.current)return;if(i.children&&i.children.length>0)return void c(i);const u=o.activeTrigger.current,p=r.find(e=>e.trigger===u),f=p?.showTrigger??!1,g=C.getCursorPosition(s),h=o.mentionStart.current,m=t(),v=S.textPosToSerializedPosMulti(s,h,n),y=S.textPosToSerializedPosMulti(s,g,n),b=m.slice(0,v),w=m.slice(y),E=`${b}${u}[${i.id}] ${w}`,T=r.map(e=>e.trigger===u?{...e,options:[...e.options,i]}:e);s.innerHTML=S.parseValueMulti(E,T),C.setCursorPosition(s,h+(f?u.length:0)+i.label.length+1+(i.icon?1:0)),o.mentionStart.current=null,o.mentionEnd.current=null,o.activeTrigger.current=null,a(),l(E)},[e,t,n,r,o,l,a,c])}}({getElement:V,getValue:P,triggers:v,mentionConfigs:m,mentionRefs:B,onInserted:e=>{F(e),I()},closeMenu:H.closeMenu,enterSubmenu:H.enterSubmenu}),{onCopy:Y,onCut:J,onPaste:Q}=function({getElement:e,triggers:t,mentionConfigs:n,onContentChanged:r}){const o=i(()=>{const e=C.get();if(!e||0===e.rangeCount)return{text:"",html:""};const n=e.getRangeAt(0);if(n.collapsed)return{text:"",html:""};const r=n.cloneContents(),o=document.createElement("div");return o.appendChild(r),{text:S.extractValueMulti(o,t),html:o.innerHTML}},[t]);return{onCopy:i(e=>{const{text:t,html:n}=o();(t||n)&&(e.preventDefault(),e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",n))},[o]),onCut:i(t=>{const n=e(),i=C.get();if(!n||!i)return;const{text:l,html:a}=o();(l||a)&&(t.preventDefault(),t.clipboardData.setData("text/plain",l),t.clipboardData.setData("text/html",a),i.getRangeAt(0).deleteContents(),r())},[e,o,r]),onPaste:i(t=>{t.preventDefault();const o=e(),i=C.get();if(!o||!i||0===i.rangeCount)return;const l=t.clipboardData.getData("text/plain");if(!l)return;const a=i.getRangeAt(0);a.collapsed||a.deleteContents();const c=S.parseValueMulti(l,n),s=document.createElement("div");s.innerHTML=c;const d=Array.from(s.childNodes);let u=null;d.forEach(e=>{const t=e.cloneNode(!0);a.insertNode(t),a.setStartAfter(t),a.collapse(!0),u=t}),u&&(a.setStartAfter(u),a.collapse(!0),i.removeAllRanges(),i.addRange(a)),r()},[e,n,r])}}({getElement:V,triggers:v,mentionConfigs:m,onContentChanged:j}),ee=i(e=>{const t=V(),n=C.getRange();if(!t||!n?.collapsed||0!==n.startOffset)return!1;const r=n.startContainer,o=r.nodeType===Node.TEXT_NODE?r.previousSibling:r.previousElementSibling;return!(!o||!S.isMentionElement(o)||(e.preventDefault(),o.remove(),F(P()),I(),0))},[V,P,F,I]),te=i(e=>{const t=navigator.platform.toUpperCase().includes("MAC"),n=t?e.metaKey:e.ctrlKey;if(H.menuState.isOpen)switch(e.key){case"ArrowDown":return e.preventDefault(),void H.selectNext();case"ArrowUp":return e.preventDefault(),void H.selectPrevious();case"Tab":{e.preventDefault();const t=H.getSelectedOption();return void(t&&(t.children&&t.children.length>0?H.enterSubmenu(t):Z(t)))}case"Enter":{e.preventDefault();const t=H.getSelectedOption();return void(t&&Z(t))}case"Escape":return e.preventDefault(),void(H.isInSubmenu?H.exitSubmenu():(H.closeMenu(),q()))}if(!(("ArrowLeft"===e.key||"ArrowRight"===e.key)&&W(e)||"Backspace"===e.key&&ee(e))){if("Backspace"===e.key&&H.menuState.isOpen&&null!==x.current){const e=V();e&&(N.current?(H.closeMenu(),q(),N.current=!1):C.getCursorPosition(e)===x.current+(M.current??v[0]??"@").length&&(H.closeMenu(),q()))}if((e.metaKey||e.ctrlKey)&&"a"===e.key?N.current=!0:"Backspace"!==e.key&&(N.current=!1),n&&"z"===e.key&&!e.shiftKey?(e.preventDefault(),K()):(n&&"z"===e.key&&e.shiftKey||e.ctrlKey&&"y"===e.key&&!t)&&(e.preventDefault(),U()),"Enter"===e.key&&!e.shiftKey){e.preventDefault();const t=V(),n=t?S.extractMentions(t,v[0]??"@"):[];D.current?.(P(),n)}}},[H,Z,ee,K,U,W,V,v,P,q]),ne=i(e=>{["ArrowLeft","ArrowRight","Home","End"].includes(e.key)&&(G(),X())},[G,X]),re=i(()=>{X(),H.menuState.isOpen&&requestAnimationFrame(()=>{G()})},[H.menuState.isOpen,G,X]),oe=i(e=>{const t=e.target,n=t.closest("[data-mention-delete]");if(n){e.preventDefault(),e.stopPropagation();const t=n.closest("[data-mention]");if(t){const e=V();if(!e)return;const n=C.get();if(n){const e=document.createRange();e.setStartAfter(t),e.collapse(!0),n.removeAllRanges(),n.addRange(e)}t.remove(),F(P()),I(),e.focus()}return}const r=t.closest("[data-mention]");if(!r)return;const o=V();if(!o)return;if(e.preventDefault(),L.current){const e=r.getAttribute("data-mention-id")||r.getAttribute("data-mention")||"",t=r.getAttribute("data-mention")||"",n=r.getAttribute("data-mention-trigger")||v[0]||"@";L.current({id:e,label:t,trigger:n})}const i=r.getBoundingClientRect(),l=e.clientX,a=i.left+i.width/2,c=C.get();if(!c)return;const s=document.createRange();l<a?s.setStartBefore(r):s.setStartAfter(r),s.collapse(!0),c.removeAllRanges(),c.addRange(s),o.focus()},[V,P,F,I,v]),ie=i(()=>{V()&&!k.isUndoRedo()&&(F(P()),I(),G())},[V,P,k,F,I,G]);c(()=>{const t=b.current;t&&e&&(t.innerHTML=S.parseValueMulti(e,m),R.current=S.extractMentions(t,v[0]??"@"))},[]),c(()=>{const e=()=>{const e=b.current;if(!e)return;const t=window.getSelection();if(t&&t.rangeCount>0){const n=t.getRangeAt(0);e.contains(n.commonAncestorContainer)?X():e.querySelectorAll("[data-mention]").forEach(e=>{e.classList.remove("mention-selected")})}};return document.addEventListener("selectionchange",e),()=>{document.removeEventListener("selectionchange",e)}},[X]);const le=i(()=>{H.closeMenu(),q()},[H,q]);return{ref:b,isEmpty:w,handlers:{onInput:ie,onKeyDown:te,onKeyUp:ne,onSelect:re,onMouseDown:oe,onCopy:Y,onCut:J,onPaste:Q},mentions:{menuState:H.menuState,filteredOptions:H.filteredOptions,selectedIndex:H.selectedIndex,selectOption:Z,enterSubmenu:H.enterSubmenu,exitSubmenu:H.exitSubmenu,isInSubmenu:H.isInSubmenu,setSelectedIndex:H.setSelectedIndex,activeTrigger:H.activeTrigger,closeMenu:le,isKeyboardNavigating:H.isKeyboardNavigating,clearKeyboardNavigation:H.clearKeyboardNavigation}}}({initialValue:r,mentionConfigs:N,onChange:s,onEnter:d,onMentionAdded:m,onMentionDeleted:v,onMentionClick:y}),H=N.find(e=>e.trigger===z.activeTrigger),B=H?.menuPosition??"below",{styles:V,className:P}=function(e){return e?"string"==typeof e&&e in k?{styles:L(k[e]),className:""}:"object"==typeof e?{styles:L(e),className:""}:{styles:{},className:""}:{styles:{},className:""}}(E),F={...V,...O},I=["prompt-container",P,x].filter(Boolean).join(" ");return t("div",{className:I,style:F,children:[e("div",{ref:R,contentEditable:!0,...D,className:"prompt-input"}),_&&e("div",{className:"prompt-placeholder",children:b}),e(A,{isOpen:z.menuState.isOpen,caretRect:z.menuState.caretRect,preferredPosition:B,options:z.filteredOptions,selectedIndex:z.selectedIndex,onSelect:z.selectOption,onEnterSubmenu:z.enterSubmenu,onExitSubmenu:z.exitSubmenu,isInSubmenu:z.isInSubmenu,onHoverIndex:z.setSelectedIndex,onClose:z.closeMenu,themeStyles:V})]})};export{Ne as DefaultFileIcon,Re as DefaultFolderIcon,ze as Prompt,xe as extensionIconMap,Oe as filenameIconMap,Me as getExtensionIcon,k as presetThemes,L as themeToStyles};
|