@mintlify/components 0.1.44 → 0.1.46
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/{CodeBlock → Code}/CodeBlock.d.ts +0 -0
- package/dist/Code/CodeGroup.d.ts +17 -0
- package/dist/{CodeBlock → Code}/CopyToClipboardButton.d.ts +0 -0
- package/dist/Code/index.d.ts +3 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/main.css +70 -19
- package/package-lock.json +43371 -0
- package/package.json +1 -1
- package/build-storybook.log +0 -364
- package/dist/CodeBlock/CodeTabBar.d.ts +0 -6
- package/dist/CodeBlock/CopyToClipboard.d.ts +0 -2
- package/dist/CodeBlock/index.d.ts +0 -2
- package/dist/CodeGroup.d.ts +0 -12
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type CodeGroupProps = {
|
|
3
|
+
children: any;
|
|
4
|
+
/** Color of the filename text and the border underneath it when the content is being shown */
|
|
5
|
+
selectedColor?: string;
|
|
6
|
+
/** Background color for the tooltip saying Copied when you click the clipboard */
|
|
7
|
+
copiedTooltipColor?: string;
|
|
8
|
+
isSmallText?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Group multiple code blocks into a tabbed UI.
|
|
12
|
+
* Uses CodeBlocks as children but does not render them directly. Instead,
|
|
13
|
+
* CodeGroup extracts the props and renders CodeBlock's children.
|
|
14
|
+
*
|
|
15
|
+
* @param {CodeBlock[]} props.children
|
|
16
|
+
*/
|
|
17
|
+
export declare function CodeGroup({ children, selectedColor, copiedTooltipColor, isSmallText, }: CodeGroupProps): JSX.Element | null;
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Accordion, AccordionGroup } from "./Accordion";
|
|
|
2
2
|
import { Button } from "./Button";
|
|
3
3
|
import { Card } from "./Card";
|
|
4
4
|
import { CardGroup } from "./CardGroup";
|
|
5
|
-
import { CodeBlock } from "./
|
|
5
|
+
import { CodeBlock, CodeGroup } from "./Code";
|
|
6
6
|
import { Info, Warning, Note, Tip, Check } from "./Callouts";
|
|
7
7
|
import { Frame } from "./Frame";
|
|
8
8
|
import { Param } from "./Param";
|
|
@@ -11,4 +11,4 @@ import { Tab, Tabs } from "./Tabs";
|
|
|
11
11
|
import { Tooltip } from "./Tooltip";
|
|
12
12
|
import { Expandable } from "./Expandable";
|
|
13
13
|
import "./css/globals.css";
|
|
14
|
-
export { Accordion, AccordionGroup, Button, Card, CardGroup, CodeBlock, Check, Expandable, Frame, Info, Warning, Note, Param, PillSelect, Tabs, Tip, Tab, Tooltip, };
|
|
14
|
+
export { Accordion, AccordionGroup, Button, Card, CardGroup, CodeBlock, CodeGroup, Check, Expandable, Frame, Info, Warning, Note, Param, PillSelect, Tabs, Tip, Tab, Tooltip, };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
(()=>{"use strict";var e={455:(e,t,r)=>{var n=r(258),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,n)&&!s.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:i.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},557:(e,t,r)=>{e.exports=r(455)},258:e=>{e.exports=require("react")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{Accordion:()=>u,AccordionGroup:()=>f,Button:()=>m,Card:()=>y,CardGroup:()=>k,Check:()=>_,CodeBlock:()=>L,Expandable:()=>ft,Frame:()=>U,Info:()=>A,Note:()=>D,Param:()=>z,PillSelect:()=>et,Tab:()=>rt,Tabs:()=>ot,Tip:()=>H,Tooltip:()=>lt,Warning:()=>F});var e=r(557),t=r(258);function o(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=o(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const a=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=o(e))&&(n&&(n+=" "),n+=t);return n};var l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function i(t){var r=t.open;return(0,e.jsx)("svg",l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",className:"h-3 w-3",style:{fill:"currentColor",transform:r?"rotate(90deg)":void 0}},{children:(0,e.jsx)("path",{d:"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})}))}const s=function(t){var r=t.title,n=t.description,o=t.open,s=t.setOpen,c=t.icon,u=t.isRounded,d=t.coverClass;return(0,e.jsxs)("button",l({onClick:function(){return s(!o)},className:a("not-prose flex flex-row items-center content-center w-full",u&&"rounded-t-xl",u&&!o&&"rounded-b-xl",d),"aria-controls":r+"Children","aria-expanded":o},{children:[(0,e.jsx)(i,{open:o}),c?(0,e.jsx)("div",l({className:"h-4 w-4 fill-slate-800 dark:fill-slate-100 text-slate-800 dark:text-slate-100"},{children:c})):null,(0,e.jsxs)("div",l({className:"leading-tight text-left"},{children:[(0,e.jsx)("p",l({className:"m-0 font-medium text-slate-900 dark:text-slate-200"},{children:r})),n?(0,e.jsx)("p",l({className:"m-0 text-slate-900 dark:text-slate-200"},{children:n})):null]}))]}))};var c=function(){return c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};const u=function(r){var n=r.title,o=r.description,l=r.defaultOpen,i=void 0!==l&&l,u=r.icon,d=r.onChange,f=r.variant,p=void 0===f?"rounded":f,v=r.children,h=(0,t.useState)(i),m=h[0],x=h[1],b=function(e){return"minimalist"===e?{parentClass:"",coverClass:"[&>div]:ml-2 py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200",contentClass:"mt-2 pt-1 mb-4 mx-[7px] px-4 border-l border-slate-100 dark:border-slate-800"}:{parentClass:"border dark:border-slate-800 rounded-xl mb-3",coverClass:"py-4 px-5 space-x-2 hover:bg-slate-100 hover:dark:bg-slate-800",contentClass:"mt-2 mb-4 mx-6"}}(p),g=b.parentClass,y=b.coverClass,w=b.contentClass;return(0,e.jsxs)("div",c({role:"listitem",className:g},{children:[(0,e.jsx)(s,{title:n,description:o,open:m,setOpen:function(e){x(e),d&&d(e)},icon:u,isRounded:"rounded"===p,coverClass:y}),(0,e.jsx)("div",c({className:a(w,!m&&"hidden")},{children:v}))]}),n)};var d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)};const f=function(t){var r=t.children;return(0,e.jsx)("div",d({className:"[&>div]:border-0 [&>div]:rounded-none [&>div>button]:rounded-none [&>div]:mb-0 overflow-hidden mt-0 mb-3 rounded-xl prose prose-slate dark:prose-dark divide-y divide-inherit border dark:border-slate-800",role:"list"},{children:r}))};var p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)},v={indigo:["bg-indigo-50 text-indigo-600 hover:bg-indigo-200 hover:text-indigo-700 focus:ring-indigo-500","text-indigo-300 group-hover:text-indigo-400"],pink:["bg-pink-50 text-pink-600 hover:bg-pink-100 hover:text-pink-700 focus:ring-pink-600","text-pink-300 group-hover:text-pink-400"],sky:["bg-sky-50 text-sky-600 hover:bg-sky-100 hover:text-sky-700 focus:ring-sky-600","text-sky-300 group-hover:text-sky-400"],blue:["bg-blue-50 text-blue-600 hover:bg-blue-100 hover:text-blue-700 focus:ring-blue-600","text-blue-300 group-hover:text-blue-400"],gray:["bg-slate-100 text-slate-700 hover:bg-slate-200 hover:text-slate-900 focus:ring-slate-500","text-slate-300 group-hover:text-slate-400"]},h=p(p({},v),{gray:["dark:bg-slate-700 dark:text-slate-100 dark:hover:bg-slate-600 dark:hover:text-white dark:focus:ring-slate-500","dark:text-slate-500 dark:group-hover:text-slate-400"],sky:["dark:bg-sky-500 dark:text-sky-50 dark:hover:bg-sky-400 dark:hover:text-white dark:focus:ring-sky-200","dark:text-sky-300 dark:group-hover:text-sky-100"]});function m(t){var r=t.href,n=t.color,o=void 0===n?"gray":n,l=t.darkColor,i=void 0===l?o:l,s=t.reverse,c=void 0!==s&&s,u=t.children,d="string"==typeof o?v[o]:o,f="string"==typeof i?h[i]||[]:i;return(0,e.jsxs)("a",p({className:a("group inline-flex items-center h-9 rounded-full text-sm font-semibold whitespace-nowrap px-3 focus:outline-none focus:ring-2",d[0],f[0],c&&"flex-row-reverse"),href:r},{children:[u,(0,e.jsx)("svg",p({className:a("overflow-visible",c?"mr-3":"ml-3",d[1],f[1]),width:"3",height:"6",viewBox:"0 0 3 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:(0,e.jsx)("path",{d:c?"M3 0L0 3L3 6":"M0 0L3 3L0 6"})}))]}))}const x=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,b=/^[a-zA-Z]:\\/;var g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)};function y(t){var r=t.title,n=t.icon,o=t.className,l=t.href,i=t.onClick,s=t.children,c=l?"a":"div",u=function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!b.test(e)&&x.test(e)}(null!=l?l:"")?{target:"_blank",rel:"noreferrer"}:{};return(0,e.jsxs)(c,g({className:a("block not-prose font-normal group relative my-2 ring-2 ring-transparent rounded-xl border border-slate-200 dark:border-slate-800 overflow-hidden px-6 py-5 w-full",l&&"cursor-pointer",o),href:l,onClick:i},u,{children:[n?(0,e.jsx)("div",g({className:"h-6 w-6 fill-slate-800 dark:fill-slate-100 text-slate-800 dark:text-slate-100"},{children:n})):null,(0,e.jsx)("h2",g({className:a("font-semibold text-base text-slate-800 dark:text-white",null!=n&&"mt-4")},{children:r})),(0,e.jsx)("span",g({className:a("mt-1 font-normal",r?"text-slate-600 dark:text-slate-400":"text-slate-700 dark:text-slate-300")},{children:s}))]}))}var w=function(){return w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},w.apply(this,arguments)};function k(t){var r=t.children,n=t.cols,o=void 0===n?2:n;return(0,e.jsx)("div",w({className:"not-prose grid sm:grid-cols-".concat(o," gap-x-4")},{children:r}))}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}var C=function e(t){return["string","number"].includes(j(t))?t.toString():t instanceof Array?t.map(e).join(""):"object"===j(t)&&t?e(t.props.children):""},N=function(){return N=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},N.apply(this,arguments)};function O(t){var r=t.filename,n=t.filenameColor,o=t.children;return(0,e.jsxs)("div",N({className:"flex text-slate-400 text-xs leading-6"},{children:[(0,e.jsx)("div",N({className:"flex-none border-t border-b border-t-transparent px-4 py-1 flex items-center",style:{color:n,borderBottomColor:n}},{children:r})),(0,e.jsx)("div",N({className:"flex-auto flex items-center bg-slate-700/50 border border-slate-500/30 rounded-t"},{children:o&&(0,e.jsx)("div",N({className:"flex-auto flex items-center justify-end px-4 space-x-4"},{children:o}))}))]}))}function S(e){return t=this,r=void 0,o=function(){var t;return function(e,t){var r,n,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,n=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){l.label=a[1];break}if(6===a[0]&&l.label<o[1]){l.label=o[1],o=a;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(a);break}o[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,i])}}}(this,(function(r){switch(r.label){case 0:if(e||console.warn("Called copyToClipboard() with empty text"),!navigator.clipboard)return console.error("The Clipboard API was unavailable. The Clipboard API is only available client-side in browsers using HTTPS."),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(e)];case 2:return r.sent(),[2,"success"];case 3:return t=r.sent(),console.error("Failed to copy: ",t),[2,"error"];case 4:return[2]}}))},new((n=void 0)||(n=Promise))((function(e,a){function l(e){try{s(o.next(e))}catch(e){a(e)}}function i(e){try{s(o.throw(e))}catch(e){a(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(l,i)}s((o=o.apply(t,r||[])).next())}));var t,r,n,o}var E=function(){return E=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},E.apply(this,arguments)};function I(r){var n=this,o=r.textToCopy,a=r.copiedTooltipColor,l=void 0===a?"#002937":a,i=(0,t.useState)(!0),s=i[0],c=i[1];return o?navigator.clipboard?(0,e.jsxs)("button",E({className:"relative",onClick:function(){return e=n,t=void 0,a=function(){return function(e,t){var r,n,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,n=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){l.label=a[1];break}if(6===a[0]&&l.label<o[1]){l.label=o[1],o=a;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(a);break}o[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,i])}}}(this,(function(e){switch(e.label){case 0:return[4,S(o)];case 1:return"success"===e.sent()&&(c(!1),setTimeout((function(){c(!0)}),2e3)),[2]}}))},new((r=void 0)||(r=Promise))((function(n,o){function l(e){try{s(a.next(e))}catch(e){o(e)}}function i(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,i)}s((a=a.apply(e,t||[])).next())}));var e,t,r,a}},{children:[(0,e.jsxs)("svg",E({className:"top-5 h-5 fill-slate-500 hover:fill-slate-300 cursor-pointer",viewBox:"0 0 20 20"},{children:[(0,e.jsx)("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),(0,e.jsx)("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"})]})),(0,e.jsx)(P,{hidden:s,copiedTooltipColor:l})]})):(console.warn("The browser's Clipboard API is unavailable. The Clipboard API is only available on HTTPS."),null):null}function P(t){var r=t.hidden,n=t.copiedTooltipColor;return(0,e.jsx)("div",E({className:a(r&&"hidden","absolute bottom-full left-1/2 mb-3.5 pb-1 -translate-x-1/2")},{children:(0,e.jsxs)("div",E({className:"relative text-white text-xs leading-6 font-medium px-1.5 rounded-lg",style:{background:n},"data-reach-alert":"true"},{children:["Copied",(0,e.jsx)("svg",E({"aria-hidden":"true",width:"16",height:"6",viewBox:"0 0 16 6",className:"absolute top-full left-1/2 -mt-px -ml-2",style:{color:n}},{children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 0H1V1.00366V1.00366V1.00371H1.01672C2.72058 1.0147 4.24225 2.74704 5.42685 4.72928C6.42941 6.40691 9.57154 6.4069 10.5741 4.72926C11.7587 2.74703 13.2803 1.0147 14.9841 1.00371H15V0Z",fill:"currentColor"})}))]}))}))}var T=function(){return T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},T.apply(this,arguments)};function L(r){var n=r.filename,o=r.filenameColor,l=r.copiedTooltipColor,i=r.children,s=(0,t.useState)(!1),c=s[0],u=s[1];return(0,t.useEffect)((function(){u(!0)}),[]),(0,e.jsxs)("div",T({className:a("mt-5 mb-8 bg-slate-800 rounded-xl shadow-lg dark:ring-1 dark:ring-white/10 dark:ring-inset",n&&"pt-2")},{children:[n?(0,e.jsx)(O,T({filename:n,filenameColor:o},{children:c?(0,e.jsx)(I,{textToCopy:C(i),copiedTooltipColor:null!=l?l:o}):void 0})):null,(0,e.jsx)("div",T({className:"children:!my-0 children:!shadow-none children:!bg-transparent relative"},{children:c?i:null}))]}))}var M=function(){return M=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},M.apply(this,arguments)};function R(t){var r=t.children,n=t.icon,o=t.className;return(0,e.jsx)("div",M({className:"px-4 py-4 mb-4 rounded-xl ".concat(o)},{children:(0,e.jsxs)("div",M({className:"flex items-start space-x-3"},{children:[(0,e.jsx)("div",M({className:"mt-0.5 w-4"},{children:n})),(0,e.jsx)("div",M({className:"flex-1 font-medium text-sm prose dark:text-slate-50"},{children:r}))]}))}))}function A(t){var r=t.children;return(0,e.jsx)(R,M({className:"bg-slate-100 dark:bg-slate-600",icon:(0,e.jsx)("svg",M({viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"flex-none w-5 h-5 text-slate-400 dark:text-slate-300","aria-label":"Info"},{children:(0,e.jsx)("path",{d:"M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 14.5C4.41563 14.5 1.5 11.5841 1.5 8C1.5 4.41594 4.41563 1.5 8 1.5C11.5844 1.5 14.5 4.41594 14.5 8C14.5 11.5841 11.5844 14.5 8 14.5ZM9.25 10.5H8.75V7.75C8.75 7.3375 8.41563 7 8 7H7C6.5875 7 6.25 7.3375 6.25 7.75C6.25 8.1625 6.5875 8.5 7 8.5H7.25V10.5H6.75C6.3375 10.5 6 10.8375 6 11.25C6 11.6625 6.3375 12 6.75 12H9.25C9.66406 12 10 11.6641 10 11.25C10 10.8359 9.66563 10.5 9.25 10.5ZM8 6C8.55219 6 9 5.55219 9 5C9 4.44781 8.55219 4 8 4C7.44781 4 7 4.44687 7 5C7 5.55313 7.44687 6 8 6Z"})}))},{children:r}))}function F(t){var r=t.children;return(0,e.jsx)(R,M({icon:(0,e.jsx)("svg",M({className:"flex-none w-5 h-5 text-yellow-400 dark:text-yellow-300/80",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-label":"Warning"},{children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})),className:"bg-amber-50 dark:bg-yellow-500/40"},{children:r}))}function D(t){var r=t.children;return(0,e.jsx)(R,M({icon:(0,e.jsx)("svg",M({width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4 text-sky-500","aria-label":"Note"},{children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1.3C10.14 1.3 12.7 3.86 12.7 7C12.7 10.14 10.14 12.7 7 12.7C5.48908 12.6974 4.0408 12.096 2.97241 11.0276C1.90403 9.9592 1.30264 8.51092 1.3 7C1.3 3.86 3.86 1.3 7 1.3ZM7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM8 3H6V8H8V3ZM8 9H6V11H8V9Z"})})),className:"bg-sky-100 dark:bg-sky-900"},{children:r}))}function H(t){var r=t.children;return(0,e.jsx)(R,M({icon:(0,e.jsx)("svg",M({width:"11",height:"14",viewBox:"0 0 11 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto","aria-label":"Tip"},{children:(0,e.jsx)("path",{d:"M3.12794 12.4232C3.12794 12.5954 3.1776 12.7634 3.27244 12.907L3.74114 13.6095C3.88471 13.8248 4.21067 14 4.46964 14H6.15606C6.41415 14 6.74017 13.825 6.88373 13.6095L7.3508 12.9073C7.43114 12.7859 7.49705 12.569 7.49705 12.4232L7.50055 11.3513H3.12521L3.12794 12.4232ZM5.31288 0C2.52414 0.00875889 0.5 2.26889 0.5 4.78826C0.5 6.00188 0.949566 7.10829 1.69119 7.95492C2.14321 8.47011 2.84901 9.54727 3.11919 10.4557C3.12005 10.4625 3.12175 10.4698 3.12261 10.4771H7.50342C7.50427 10.4698 7.50598 10.463 7.50684 10.4557C7.77688 9.54727 8.48281 8.47011 8.93484 7.95492C9.67728 7.13181 10.1258 6.02703 10.1258 4.78826C10.1258 2.15486 7.9709 0.000106649 5.31288 0ZM7.94902 7.11267C7.52078 7.60079 6.99082 8.37878 6.6077 9.18794H4.02051C3.63739 8.37878 3.10743 7.60079 2.67947 7.11294C2.11997 6.47551 1.8126 5.63599 1.8126 4.78826C1.8126 3.09829 3.12794 1.31944 5.28827 1.3126C7.2435 1.3126 8.81315 2.88226 8.81315 4.78826C8.81315 5.63599 8.50688 6.47551 7.94902 7.11267ZM4.87534 2.18767C3.66939 2.18767 2.68767 3.16939 2.68767 4.37534C2.68767 4.61719 2.88336 4.81288 3.12521 4.81288C3.36705 4.81288 3.56274 4.61599 3.56274 4.37534C3.56274 3.6515 4.1515 3.06274 4.87534 3.06274C5.11719 3.06274 5.31288 2.86727 5.31288 2.62548C5.31288 2.38369 5.11599 2.18767 4.87534 2.18767Z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:r}))}function _(t){var r=t.children;return(0,e.jsx)(R,M({icon:(0,e.jsx)("svg",M({className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512","aria-label":"Check"},{children:(0,e.jsx)("path",{d:"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:r}))}var B=function(){return B=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},B.apply(this,arguments)},V={none:"",md:"p-8"};function U(t){var r=t.as,n=void 0===r?"div":r,o=t.style,l=t.className,i=t.containerClassName,s=t.html,c=t.children,u=t.hint,d=t.padding,f=void 0===d?"md":d,p=t.lightOnly,v=void 0!==p&&p,h=V[f];return(0,e.jsxs)("div",B({className:i},{children:[void 0!==u&&(0,e.jsxs)("div",B({className:"not-prose mb-4 flex items-center space-x-2"},{children:[(0,e.jsx)("svg",B({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"flex-none w-4 h-4 fill-slate-400 dark:fill-slate-300"},{children:(0,e.jsx)("path",{d:"M224 320c0 17.69 14.33 32 32 32h64c17.67 0 32-14.31 32-32s-14.33-32-32-32h-64C238.3 288 224 302.3 224 320zM267.6 256H352c17.67 0 32-14.31 32-32s-14.33-32-32-32h-80v40C272 240.5 270.3 248.5 267.6 256zM272 160H480c17.67 0 32-14.31 32-32s-14.33-32-32-32h-208.8C271.5 98.66 272 101.3 272 104V160zM320 416c0-17.69-14.33-32-32-32H224c-17.67 0-32 14.31-32 32s14.33 32 32 32h64C305.7 448 320 433.7 320 416zM202.1 355.8C196 345.6 192 333.3 192 320c0-5.766 1.08-11.24 2.51-16.55C157.4 300.6 128 269.9 128 232V159.1C128 151.2 135.2 144 143.1 144S160 151.2 159.1 159.1l0 69.72C159.1 245.2 171.3 271.1 200 271.1C222.1 271.1 240 254.1 240 232v-128C240 81.91 222.1 64 200 64H136.6C103.5 64 72.03 80 52.47 106.8L26.02 143.2C9.107 166.5 0 194.5 0 223.3V312C0 387.1 60.89 448 136 448h32.88C163.4 438.6 160 427.7 160 416C160 388.1 178 364.6 202.1 355.8z"})})),(0,e.jsx)("p",B({className:"text-slate-700 text-sm font-medium dark:text-slate-200"},{children:u}))]})),(0,e.jsxs)(n,B({style:o,className:a("not-prose relative bg-slate-50 rounded-xl overflow-hidden",!v&&"dark:bg-slate-800/25")},{children:[(0,e.jsx)("div",{style:{backgroundPosition:"10px 10px"},className:a("absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))]",!v&&"dark:bg-grid-slate-700/25 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]")}),(0,e.jsx)("div",B({className:a("relative rounded-xl overflow-auto flex justify-center",h,l)},s?{dangerouslySetInnerHTML:{__html:s}}:{children:c})),(0,e.jsx)("div",{className:a("absolute inset-0 pointer-events-none border border-black/5 rounded-xl",!v&&"dark:border-white/5")})]}))]}))}var Z=function(){return Z=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Z.apply(this,arguments)};function z(t){return(0,e.jsx)(W,Z({},t))}function W(t){var r=t.name,n=t.type,o=t.defaultValue,l=t.required,i=void 0!==l&&l,s=t.optional,c=void 0!==s&&s,u=t.hidden,d=void 0!==u&&u,f=t.nameClasses,p=t.children;return d?null:(0,e.jsxs)("div",Z({className:a("pb-3 mb-4 border-b border-slate-100 dark:border-slate-800")},{children:[(0,e.jsxs)("div",Z({className:"flex font-mono text-sm"},{children:[r&&(0,e.jsxs)("div",Z({className:"py-px flex-1 space-x-2 truncate"},{children:[(0,e.jsx)("span",Z({className:a("px-1 py-px rounded-md font-medium bg-slate-50 dark:bg-slate-800 border border-slate-200 dark:border-slate-700",f,f&&!f.includes("text-")||!f?"dark:text-slate-200":void 0)},{children:r})),i&&(0,e.jsx)("span",Z({className:"text-slate-500 dark:text-slate-300"},{children:"Required"})),c&&(0,e.jsx)("span",Z({className:"text-slate-500 dark:text-slate-300"},{children:"Optional"})),o&&(0,e.jsxs)("span",Z({className:"text-slate-500 dark:text-slate-300"},{children:["Default: ",o]}))]})),n&&(0,e.jsx)("div",Z({className:"text-slate-600 dark:text-slate-300"},{children:n}))]})),(0,e.jsx)("div",Z({className:"mt-2 prose-sm prose-slate dark:prose-dark"},{children:p}))]}))}function $(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,$),n}var q,Q=((q=Q||{})[q.None=0]="None",q[q.RenderStrategy=1]="RenderStrategy",q[q.Static=2]="Static",q),G=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(G||{});function K({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:a=!0,name:l}){let i=J(t,e);if(a)return Y(i,r,n,l);let s=null!=o?o:0;if(2&s){let{static:e=!1,...t}=i;if(e)return Y(t,r,n,l)}if(1&s){let{unmount:e=!0,...t}=i;return $(e?0:1,{0:()=>null,1:()=>Y({...t,hidden:!0,style:{display:"none"}},r,n,l)})}return Y(i,r,n,l)}function Y(e,r={},n,o){let{as:a=n,children:l,refName:i="ref",...s}=te(e,["unmount","static"]),c=void 0!==e.ref?{[i]:e.ref}:{},u="function"==typeof l?l(r):l;s.className&&"function"==typeof s.className&&(s.className=s.className(r));let d={};if(r){let e=!1,t=[];for(let[n,o]of Object.entries(r))"boolean"==typeof o&&(e=!0),!0===o&&t.push(n);e&&(d["data-headlessui-state"]=t.join(" "))}if(a===t.Fragment&&Object.keys(ee(s)).length>0){if(!(0,t.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,t.cloneElement)(u,Object.assign({},J(u.props,ee(te(s,["ref"]))),d,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(u.ref,c.ref)))}return(0,t.createElement)(a,Object.assign({},te(s,["ref"]),a!==t.Fragment&&c,a!==t.Fragment&&d),u)}function J(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...n){let o=r[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function X(e){var r;return Object.assign((0,t.forwardRef)(e),{displayName:null!=(r=e.displayName)?r:e.name})}function ee(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function te(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}function re(){let e=[],t=[],r={enqueue(e){t.push(e)},addEventListener:(e,t,n,o)=>(e.addEventListener(t,n,o),r.add((()=>e.removeEventListener(t,n,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>r.requestAnimationFrame((()=>r.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return r.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),r.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0){let[t]=e.splice(r,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return r}function ne(){let[e]=(0,t.useState)(re);return(0,t.useEffect)((()=>()=>e.dispose()),[e]),e}const oe="undefined"==typeof window||"undefined"==typeof document;let ae=oe?t.useEffect:t.useLayoutEffect;function le(e){let r=(0,t.useRef)(e);return ae((()=>{r.current=e}),[e]),r}let ie=function(e){let r=le(e);return t.useCallback(((...e)=>r.current(...e)),[r])},se=Symbol();function ce(...e){let r=(0,t.useRef)(e);(0,t.useEffect)((()=>{r.current=e}),[e]);let n=ie((e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[se])))?void 0:n}let ue={serverHandoffComplete:!1};var de;let fe=0;function pe(){return++fe}let ve=null!=(de=t.useId)?de:function(){let e=function(){let[e,r]=(0,t.useState)(ue.serverHandoffComplete);return(0,t.useEffect)((()=>{!0!==e&&r(!0)}),[e]),(0,t.useEffect)((()=>{!1===ue.serverHandoffComplete&&(ue.serverHandoffComplete=!0)}),[]),e}(),[r,n]=t.useState(e?pe:null);return ae((()=>{null===r&&n(pe())}),[r]),null!=r?""+r:void 0};var he=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(he||{}),me=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(me||{});function xe(e){return oe?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let be=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var ge,ye=((ge=ye||{})[ge.First=1]="First",ge[ge.Previous=2]="Previous",ge[ge.Next=4]="Next",ge[ge.Last=8]="Last",ge[ge.WrapAround=16]="WrapAround",ge[ge.NoScroll=32]="NoScroll",ge),we=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(we||{}),ke=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ke||{});function je(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(be))}var Ce=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ce||{});function Ne(e,t=0){var r;return e!==(null==(r=xe(e))?void 0:r.body)&&$(t,{0:()=>e.matches(be),1(){let t=e;for(;null!==t;){if(t.matches(be))return!0;t=t.parentElement}return!1}})}function Oe(e){let t=xe(e);re().nextFrame((()=>{t&&!Ne(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}let Se=["textarea","input"].join(",");function Ee(e,t=(e=>e)){return e.slice().sort(((e,r)=>{let n=t(e),o=t(r);if(null===n||null===o)return 0;let a=n.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Ie(e,t){return function(e,t,r=!0,n=null){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?r?Ee(e):e:je(e);n=null!=n?n:o.activeElement;let l,i=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(n))-1;if(4&t)return Math.max(0,a.indexOf(n))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},u=0,d=a.length;do{if(u>=d||u+d<=0)return 0;let e=s+u;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}l=a[e],null==l||l.focus(c),u+=i}while(l!==o.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Se))&&r}(l)&&l.select(),l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),2}(je(),t,!0,e)}function Pe(e,r,n){let o=le(r);(0,t.useEffect)((()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}let Te=(0,t.createContext)(null);Te.displayName="OpenClosedContext";var Le=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Le||{});function Me(){return(0,t.useContext)(Te)}function Re({value:e,children:r}){return t.createElement(Te.Provider,{value:e},r)}function Ae(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()?"button":void 0}function Fe(e,r){let[n,o]=(0,t.useState)((()=>Ae(e)));return ae((()=>{o(Ae(e))}),[e.type,e.as]),ae((()=>{n||!r.current||r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&o("button")}),[n,r]),n}var De=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(De||{}),He=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(He||{}),_e=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(_e||{});function Be(e,t=(e=>e)){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=Ee(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),o=r?n.indexOf(r):null;return-1===o&&(o=null),{items:n,activeItemIndex:o}}let Ve={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,menuState:0},2:(e,t)=>{var r;let n=Be(e),o=function(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=null!=n?n:-1,a=(()=>{switch(e.focus){case 0:return r.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=r.slice().reverse().findIndex(((e,r,n)=>!(-1!==o&&n.length-r-1>=o||t.resolveDisabled(e))));return-1===e?e:r.length-1-e}case 2:return r.findIndex(((e,r)=>!(r<=o||t.resolveDisabled(e))));case 3:{let e=r.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:r.length-1-e}case 4:return r.findIndex((r=>t.resolveId(r)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===a?n:a}(t,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeItemIndex:o,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled})),a=o?e.items.indexOf(o):-1;return-1===a||a===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:a,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=Be(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...r}},6:(e,t)=>{let r=Be(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...r,activationTrigger:1}}},Ue=(0,t.createContext)(null);function Ze(e){let r=(0,t.useContext)(Ue);if(null===r){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ze),t}return r}function ze(e,t){return $(t.type,Ve,e,t)}Ue.displayName="MenuContext";let We=t.Fragment,$e=X((function(e,r){let n=(0,t.useReducer)(ze,{menuState:1,buttonRef:(0,t.createRef)(),itemsRef:(0,t.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsRef:a,buttonRef:l},i]=n,s=ce(r);!function(e,r,n=!0){let o=(0,t.useRef)(!1);function a(t,n){if(!o.current||t.defaultPrevented)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),l=n(t);if(null!==l&&l.ownerDocument.documentElement.contains(l)){for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(l))return}return!Ne(l,Ce.Loose)&&-1!==l.tabIndex&&t.preventDefault(),r(t,l)}}(0,t.useEffect)((()=>{requestAnimationFrame((()=>{o.current=n}))}),[n]);let l=(0,t.useRef)(null);Pe("mousedown",(e=>{var t,r;o.current&&(l.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),Pe("click",(e=>{!l.current||(a(e,(()=>l.current)),l.current=null)}),!0),Pe("blur",(e=>a(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([l,a],((e,t)=>{var r;i({type:1}),Ne(t,Ce.Loose)||(e.preventDefault(),null==(r=l.current)||r.focus())}),0===o);let c=(0,t.useMemo)((()=>({open:0===o})),[o]),u=e,d={ref:s};return t.createElement(Ue.Provider,{value:n},t.createElement(Re,{value:$(o,{0:Le.Open,1:Le.Closed})},K({ourProps:d,theirProps:u,slot:c,defaultTag:We,name:"Menu"})))})),qe=X((function(e,r){var n;let[o,a]=Ze("Menu.Button"),l=ce(o.buttonRef,r),i=`headlessui-menu-button-${ve()}`,s=ne(),c=ie((e=>{switch(e.key){case he.Space:case he.Enter:case he.ArrowDown:e.preventDefault(),e.stopPropagation(),a({type:0}),s.nextFrame((()=>a({type:2,focus:me.First})));break;case he.ArrowUp:e.preventDefault(),e.stopPropagation(),a({type:0}),s.nextFrame((()=>a({type:2,focus:me.Last})))}})),u=ie((e=>{e.key===he.Space&&e.preventDefault()})),d=ie((t=>{if(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}(t.currentTarget))return t.preventDefault();e.disabled||(0===o.menuState?(a({type:1}),s.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),a({type:0})))})),f=(0,t.useMemo)((()=>({open:0===o.menuState})),[o]),p=e;return K({ourProps:{ref:l,id:i,type:Fe(e,o.buttonRef),"aria-haspopup":!0,"aria-controls":null==(n=o.itemsRef.current)?void 0:n.id,"aria-expanded":e.disabled?void 0:0===o.menuState,onKeyDown:c,onKeyUp:u,onClick:d},theirProps:p,slot:f,defaultTag:"button",name:"Menu.Button"})})),Qe=Q.RenderStrategy|Q.Static,Ge=X((function(e,r){var n,o;let[a,l]=Ze("Menu.Items"),i=ce(a.itemsRef,r),s=function(...e){return(0,t.useMemo)((()=>xe(...e)),[...e])}(a.itemsRef),c=`headlessui-menu-items-${ve()}`,u=ne(),d=Me(),f=null!==d?d===Le.Open:0===a.menuState;(0,t.useEffect)((()=>{let e=a.itemsRef.current;!e||0===a.menuState&&e!==(null==s?void 0:s.activeElement)&&e.focus({preventScroll:!0})}),[a.menuState,a.itemsRef,s]),function({container:e,accept:r,walk:n,enabled:o=!0}){let a=(0,t.useRef)(r),l=(0,t.useRef)(n);(0,t.useEffect)((()=>{a.current=r,l.current=n}),[r,n]),ae((()=>{if(!e||!o)return;let t=xe(e);if(!t)return;let r=a.current,n=l.current,i=Object.assign((e=>r(e)),{acceptNode:r}),s=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;s.nextNode();)n(s.currentNode)}),[e,o,a,l])}({container:a.itemsRef.current,enabled:0===a.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=ie((e=>{var t,r;switch(u.dispose(),e.key){case he.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),l({type:3,value:e.key});case he.Enter:if(e.preventDefault(),e.stopPropagation(),l({type:1}),null!==a.activeItemIndex){let{dataRef:e}=a.items[a.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}Oe(a.buttonRef.current);break;case he.ArrowDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:me.Next});case he.ArrowUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:me.Previous});case he.Home:case he.PageUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:me.First});case he.End:case he.PageDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:me.Last});case he.Escape:e.preventDefault(),e.stopPropagation(),l({type:1}),re().nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case he.Tab:e.preventDefault(),e.stopPropagation(),l({type:1}),re().nextFrame((()=>{Ie(a.buttonRef.current,e.shiftKey?ye.Previous:ye.Next)}));break;default:1===e.key.length&&(l({type:3,value:e.key}),u.setTimeout((()=>l({type:4})),350))}})),v=ie((e=>{e.key===he.Space&&e.preventDefault()})),h=(0,t.useMemo)((()=>({open:0===a.menuState})),[a]),m=e;return K({ourProps:{"aria-activedescendant":null===a.activeItemIndex||null==(n=a.items[a.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(o=a.buttonRef.current)?void 0:o.id,id:c,onKeyDown:p,onKeyUp:v,role:"menu",tabIndex:0,ref:i},theirProps:m,slot:h,defaultTag:"div",features:Qe,visible:f,name:"Menu.Items"})})),Ke=t.Fragment,Ye=X((function(e,r){let{disabled:n=!1,...o}=e,[a,l]=Ze("Menu.Item"),i=`headlessui-menu-item-${ve()}`,s=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===i,c=(0,t.useRef)(null),u=ce(r,c);ae((()=>{if(0!==a.menuState||!s||0===a.activationTrigger)return;let e=re();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[c,s,a.menuState,a.activationTrigger,a.activeItemIndex]);let d=(0,t.useRef)({disabled:n,domRef:c});ae((()=>{d.current.disabled=n}),[d,n]),ae((()=>{var e,t;d.current.textValue=null==(t=null==(e=c.current)?void 0:e.textContent)?void 0:t.toLowerCase()}),[d,c]),ae((()=>(l({type:5,id:i,dataRef:d}),()=>l({type:6,id:i}))),[d,i]);let f=ie((e=>{if(n)return e.preventDefault();l({type:1}),Oe(a.buttonRef.current)})),p=ie((()=>{if(n)return l({type:2,focus:me.Nothing});l({type:2,focus:me.Specific,id:i})})),v=ie((()=>{n||s||l({type:2,focus:me.Specific,id:i,trigger:0})})),h=ie((()=>{n||!s||l({type:2,focus:me.Nothing})})),m=(0,t.useMemo)((()=>({active:s,disabled:n})),[s,n]);return K({ourProps:{id:i,ref:u,role:"menuitem",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,disabled:void 0,onClick:f,onFocus:p,onPointerMove:v,onMouseMove:v,onPointerLeave:h,onMouseLeave:h},theirProps:o,slot:m,defaultTag:Ke,name:"Menu.Item"})})),Je=Object.assign($e,{Button:qe,Items:Ge,Item:Ye});var Xe=function(){return Xe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xe.apply(this,arguments)};function et(r){var n=r.options,o=r.onChange,l=r.defaultOption,i=r.selectedOptionClass,s=l,c=Array.isArray(n)&&n.length>0;null==l&&c&&(s=n[0]);var u=(0,t.useState)(s),d=u[0],f=u[1];return c?(0,e.jsx)("div",Xe({className:"relative"},{children:(0,e.jsxs)(Je,{children:[(0,e.jsxs)(Je.Button,Xe({className:"text-xs text-slate-500 dark:text-slate-400 leading-5 font-semibold !bg-slate-400/10 rounded-full py-1 px-3 flex items-center space-x-2 hover:bg-slate-400/20 dark:highlight-white/5"},{children:[d,(0,e.jsx)("svg",Xe({width:"6",height:"3",className:"ml-2 overflow-visible","aria-hidden":"true"},{children:(0,e.jsx)("path",{d:"M0 0L3 3L6 0",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}))]})),(0,e.jsx)(Je.Items,Xe({className:"absolute top-full mt-1 py-2 w-40 rounded-lg bg-white shadow text-sm leading-6 font-semibold text-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:highlight-white/5"},{children:n.map((function(t){return(0,e.jsx)(Je.Item,Xe({disabled:t===d},{children:function(r){var n=r.active;return(0,e.jsxs)("a",Xe({className:a("flex items-center justify-between px-3 py-1 cursor-pointer",n&&"bg-slate-50 text-slate-900 dark:bg-slate-600/30 dark:text-white",t===d&&i),onClick:function(){return function(e){f(e),o&&o(e)}(t)}},{children:[t,t===d&&(0,e.jsx)("svg",Xe({width:"24",height:"24",fill:"none","aria-hidden":"true"},{children:(0,e.jsx)("path",{d:"m7.75 12.75 2.25 2.5 6.25-6.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))]}))}}),t)}))}))]})})):null}var tt=function(){return tt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tt.apply(this,arguments)};function rt(t){var r=t.title,n=t.isActive,o=void 0===n||n,l=t.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h2",tt({className:a("flex text-sm leading-6 font-semibold whitespace-nowrap pt-3 pb-2.5 -mb-px max-w-max border-b",o?"text-primary dark:text-primary-light border-current":"text-slate-900 border-transparent hover:border-slate-300 dark:text-slate-200 dark:hover:border-slate-700")},{children:r})),l?(0,e.jsx)("div",tt({className:"prose dark:prose-dark"},{children:l})):null]})}var nt=function(){return nt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nt.apply(this,arguments)};function ot(r){var n=r.children,o=(0,t.useState)(0),a=o[0],l=o[1],i=t.Children.toArray(n),s=i[a].props.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("ul",nt({className:"not-prose mb-6 pb-[1px] flex-none min-w-full overflow-auto border-b border-slate-200 space-x-6 flex dark:border-slate-200/10"},{children:i.map((function(t,r){return(0,e.jsx)("li",nt({className:"cursor-pointer",onClick:function(){return l(r)}},{children:(0,e.jsx)(rt,{title:t.props.title,isActive:r===a})}))}))})),(0,e.jsx)("div",nt({className:"prose dark:prose-dark"},{children:s}))]})}var at=function(){return at=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},at.apply(this,arguments)};function lt(t){var r=t.tip,n=t.children;return n?(0,e.jsxs)("span",at({className:"group z-10 inline relative"},{children:[it(n),(0,e.jsx)("span",at({className:"hidden group-hover:flex w-fit lg:whitespace-nowrap absolute bottom-full left-1/2 mb-0.5 pb-1 -translate-x-1/2 bg-slate-800 text-center text-slate-50 text-xs px-1.5 py-1 rounded-lg border border-slate-50"},{children:r}))]})):null}function it(r){return(0,t.isValidElement)(r)?r:(0,e.jsx)("span",at({className:"underline decoration-dotted decoration-2 underline-offset-4 decoration-slate-400 dark:decoration-slate-500"},{children:r}))}var st=function(){return st=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},st.apply(this,arguments)};function ct(t){var r=t.open;return(0,e.jsx)("svg",st({xmlns:"http://www.w3.org/2000/svg",className:a("h-3 w-3",r&&"rotate-90 -mt-1"),viewBox:"0 0 256 512",fill:"currentColor"},{children:(0,e.jsx)("path",{d:"M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"})}))}const ut=function(t){var r=t.title,n=t.description,o=t.open,a=t.setOpen;return(0,e.jsxs)("button",st({onClick:function(){return a(!o)},className:"not-prose mt-1.5 flex flex-row items-center content-center w-full py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200 ".concat(o?"":"rounded-b-xl"),"aria-controls":r+"Children","aria-expanded":o},{children:[(0,e.jsx)(ct,{open:o}),(0,e.jsxs)("div",st({className:"ml-2 leading-tight text-left"},{children:[(0,e.jsxs)("p",st({className:"m-0"},{children:[o?"Hide":"Show"," ",r]})),n?(0,e.jsx)("p",st({className:"m-0"},{children:n})):null]}))]}))};var dt=function(){return dt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dt.apply(this,arguments)};const ft=function(r){var n=r.title,o=r.description,l=r.defaultOpen,i=void 0!==l&&l,s=r.onChange,c=r.children,u=(0,t.useState)(i),d=u[0],f=u[1];return(0,e.jsxs)("div",dt({role:"listitem",className:""},{children:[(0,e.jsx)(ut,{title:n,description:o,open:d,setOpen:function(e){f(e),s&&s(e)}}),(0,e.jsx)("div",dt({id:n+"Children",className:a("mt-2 pt-2 mb-4 mx-[6px] px-4 border-l border-slate-100 dark:border-slate-800",!d&&"hidden")},{children:c}))]}),n)}})(),module.exports=n})();
|
|
2
|
+
(()=>{"use strict";var e={455:(e,t,r)=>{var n=r(258),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,n)&&!i.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},557:(e,t,r)=>{e.exports=r(455)},258:e=>{e.exports=require("react")}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{Accordion:()=>u,AccordionGroup:()=>f,Button:()=>h,Card:()=>y,CardGroup:()=>C,Check:()=>qe,CodeBlock:()=>S,CodeGroup:()=>He,Expandable:()=>Ft,Frame:()=>Ke,Info:()=>ze,Note:()=>$e,Param:()=>Je,PillSelect:()=>kt,Tab:()=>Ot,Tabs:()=>It,Tip:()=>Ze,Tooltip:()=>St,Warning:()=>We});var e=r(557),t=r(258);function a(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=a(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const o=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=a(e))&&(n&&(n+=" "),n+=t);return n};var l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};function s(t){var r=t.open;return(0,e.jsx)("svg",l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",className:"h-3 w-3",style:{fill:"currentColor",transform:r?"rotate(90deg)":void 0}},{children:(0,e.jsx)("path",{d:"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})}))}const i=function(t){var r=t.title,n=t.description,a=t.open,i=t.setOpen,c=t.icon,u=t.isRounded,d=t.coverClass;return(0,e.jsxs)("button",l({onClick:function(){return i(!a)},className:o("not-prose flex flex-row items-center content-center w-full",u&&"rounded-t-xl",u&&!a&&"rounded-b-xl",d),"aria-controls":r+"Children","aria-expanded":a},{children:[(0,e.jsx)(s,{open:a}),c?(0,e.jsx)("div",l({className:"h-4 w-4 fill-slate-800 dark:fill-slate-100 text-slate-800 dark:text-slate-100"},{children:c})):null,(0,e.jsxs)("div",l({className:"leading-tight text-left"},{children:[(0,e.jsx)("p",l({className:"m-0 font-medium text-slate-900 dark:text-slate-200"},{children:r})),n?(0,e.jsx)("p",l({className:"m-0 text-slate-900 dark:text-slate-200"},{children:n})):null]}))]}))};var c=function(){return c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},c.apply(this,arguments)};const u=function(r){var n=r.title,a=r.description,l=r.defaultOpen,s=void 0!==l&&l,u=r.icon,d=r.onChange,f=r.variant,p=void 0===f?"rounded":f,v=r.children,m=(0,t.useState)(s),h=m[0],x=m[1],b=function(e){return"minimalist"===e?{parentClass:"",coverClass:"[&>div]:ml-2 py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200",contentClass:"mt-2 pt-1 mb-4 mx-[7px] px-4 border-l border-slate-100 dark:border-slate-800"}:{parentClass:"border dark:border-slate-800 rounded-xl mb-3",coverClass:"py-4 px-5 space-x-2 hover:bg-slate-100 hover:dark:bg-slate-800",contentClass:"mt-2 mb-4 mx-6"}}(p),g=b.parentClass,y=b.coverClass,w=b.contentClass;return(0,e.jsxs)("div",c({role:"listitem",className:g},{children:[(0,e.jsx)(i,{title:n,description:a,open:h,setOpen:function(e){x(e),d&&d(e)},icon:u,isRounded:"rounded"===p,coverClass:y}),(0,e.jsx)("div",c({className:o(w,!h&&"hidden")},{children:v}))]}),n)};var d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},d.apply(this,arguments)};const f=function(t){var r=t.children;return(0,e.jsx)("div",d({className:"[&>div]:border-0 [&>div]:rounded-none [&>div>button]:rounded-none [&>div]:mb-0 overflow-hidden mt-0 mb-3 rounded-xl prose prose-slate dark:prose-dark divide-y divide-inherit border dark:border-slate-800",role:"list"},{children:r}))};var p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},p.apply(this,arguments)},v={indigo:["bg-indigo-50 text-indigo-600 hover:bg-indigo-200 hover:text-indigo-700 focus:ring-indigo-500","text-indigo-300 group-hover:text-indigo-400"],pink:["bg-pink-50 text-pink-600 hover:bg-pink-100 hover:text-pink-700 focus:ring-pink-600","text-pink-300 group-hover:text-pink-400"],sky:["bg-sky-50 text-sky-600 hover:bg-sky-100 hover:text-sky-700 focus:ring-sky-600","text-sky-300 group-hover:text-sky-400"],blue:["bg-blue-50 text-blue-600 hover:bg-blue-100 hover:text-blue-700 focus:ring-blue-600","text-blue-300 group-hover:text-blue-400"],gray:["bg-slate-100 text-slate-700 hover:bg-slate-200 hover:text-slate-900 focus:ring-slate-500","text-slate-300 group-hover:text-slate-400"]},m=p(p({},v),{gray:["dark:bg-slate-700 dark:text-slate-100 dark:hover:bg-slate-600 dark:hover:text-white dark:focus:ring-slate-500","dark:text-slate-500 dark:group-hover:text-slate-400"],sky:["dark:bg-sky-500 dark:text-sky-50 dark:hover:bg-sky-400 dark:hover:text-white dark:focus:ring-sky-200","dark:text-sky-300 dark:group-hover:text-sky-100"]});function h(t){var r=t.href,n=t.color,a=void 0===n?"gray":n,l=t.darkColor,s=void 0===l?a:l,i=t.reverse,c=void 0!==i&&i,u=t.children,d="string"==typeof a?v[a]:a,f="string"==typeof s?m[s]||[]:s;return(0,e.jsxs)("a",p({className:o("group inline-flex items-center h-9 rounded-full text-sm font-semibold whitespace-nowrap px-3 focus:outline-none focus:ring-2",d[0],f[0],c&&"flex-row-reverse"),href:r},{children:[u,(0,e.jsx)("svg",p({className:o("overflow-visible",c?"mr-3":"ml-3",d[1],f[1]),width:"3",height:"6",viewBox:"0 0 3 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:(0,e.jsx)("path",{d:c?"M3 0L0 3L3 6":"M0 0L3 3L0 6"})}))]}))}const x=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,b=/^[a-zA-Z]:\\/;var g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},g.apply(this,arguments)};function y(t){var r=t.title,n=t.icon,a=t.className,l=t.href,s=t.onClick,i=t.children,c=l?"a":"div",u=function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!b.test(e)&&x.test(e)}(null!=l?l:"")?{target:"_blank",rel:"noreferrer"}:{};return(0,e.jsxs)(c,g({className:o("block not-prose font-normal group relative my-2 ring-2 ring-transparent rounded-xl border border-slate-200 dark:border-slate-800 overflow-hidden px-6 py-5 w-full",l&&"cursor-pointer",a),href:l,onClick:s},u,{children:[n?(0,e.jsx)("div",g({className:"h-6 w-6 fill-slate-800 dark:fill-slate-100 text-slate-800 dark:text-slate-100"},{children:n})):null,(0,e.jsx)("h2",g({className:o("font-semibold text-base text-slate-800 dark:text-white",null!=n&&"mt-4")},{children:r})),(0,e.jsx)("span",g({className:o("mt-1 font-normal",r?"text-slate-600 dark:text-slate-400":"text-slate-700 dark:text-slate-300")},{children:i}))]}))}var w=function(){return w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},w.apply(this,arguments)};function C(t){var r=t.children,n=t.cols,a=void 0===n?2:n;return(0,e.jsx)("div",w({className:"not-prose grid sm:grid-cols-".concat(a," gap-x-4")},{children:r}))}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}var k=function e(t){return["string","number"].includes(j(t))?t.toString():t instanceof Array?t.map(e).join(""):"object"===j(t)&&t?e(t.props.children):""};function N(e){return t=this,r=void 0,a=function(){var t;return function(e,t){var r,n,a,o,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,n=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!((a=(a=l.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){l.label=o[1];break}if(6===o[0]&&l.label<a[1]){l.label=a[1],a=o;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(o);break}a[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(r){switch(r.label){case 0:if(e||console.warn("Called copyToClipboard() with empty text"),!navigator.clipboard)return console.error("The Clipboard API was unavailable. The Clipboard API is only available client-side in browsers using HTTPS."),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(e)];case 2:return r.sent(),[2,"success"];case 3:return t=r.sent(),console.error("Failed to copy: ",t),[2,"error"];case 4:return[2]}}))},new((n=void 0)||(n=Promise))((function(e,o){function l(e){try{i(a.next(e))}catch(e){o(e)}}function s(e){try{i(a.throw(e))}catch(e){o(e)}}function i(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(l,s)}i((a=a.apply(t,r||[])).next())}));var t,r,n,a}var O=function(){return O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},O.apply(this,arguments)};function P(r){var n=this,a=r.textToCopy,o=r.copiedTooltipColor,l=void 0===o?"#002937":o,s=(0,t.useState)(!0),i=s[0],c=s[1];return a?navigator.clipboard?(0,e.jsxs)("button",O({className:"relative",onClick:function(){return e=n,t=void 0,o=function(){return function(e,t){var r,n,a,o,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,n=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!((a=(a=l.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){l.label=o[1];break}if(6===o[0]&&l.label<a[1]){l.label=a[1],a=o;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(o);break}a[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(e){switch(e.label){case 0:return[4,N(a)];case 1:return"success"===e.sent()&&(c(!1),setTimeout((function(){c(!0)}),2e3)),[2]}}))},new((r=void 0)||(r=Promise))((function(n,a){function l(e){try{i(o.next(e))}catch(e){a(e)}}function s(e){try{i(o.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,s)}i((o=o.apply(e,t||[])).next())}));var e,t,r,o}},{children:[(0,e.jsx)("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",className:"top-5 h-[1.15rem] fill-slate-500 hover:fill-slate-300 cursor-pointer"},{children:(0,e.jsx)("path",{d:"M320 64H280h-9.6C263 27.5 230.7 0 192 0s-71 27.5-78.4 64H104 64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zM80 112v24c0 13.3 10.7 24 24 24h88 88c13.3 0 24-10.7 24-24V112h16c8.8 0 16 7.2 16 16V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V128c0-8.8 7.2-16 16-16H80zm88-32a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM136 272a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zm40-16c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c8.8 0 16-7.2 16-16s-7.2-16-16-16H176zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c8.8 0 16-7.2 16-16s-7.2-16-16-16H176zm-64 40a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"})})),(0,e.jsx)(I,{hidden:i,copiedTooltipColor:l})]})):(console.warn("The browser's Clipboard API is unavailable. The Clipboard API is only available on HTTPS."),null):null}function I(t){var r=t.hidden,n=t.copiedTooltipColor;return(0,e.jsx)("div",O({className:o(r&&"hidden","absolute bottom-full left-1/2 mb-3.5 pb-1 -translate-x-1/2")},{children:(0,e.jsxs)("div",O({className:"relative text-white text-xs leading-6 font-medium px-1.5 rounded-lg",style:{background:n},"data-reach-alert":"true"},{children:["Copied",(0,e.jsx)("svg",O({"aria-hidden":"true",width:"16",height:"6",viewBox:"0 0 16 6",className:"absolute top-full left-1/2 -mt-px -ml-2",style:{color:n}},{children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 0H1V1.00366V1.00366V1.00371H1.01672C2.72058 1.0147 4.24225 2.74704 5.42685 4.72928C6.42941 6.40691 9.57154 6.4069 10.5741 4.72926C11.7587 2.74703 13.2803 1.0147 14.9841 1.00371H15V0Z",fill:"currentColor"})}))]}))}))}var T=function(){return T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},T.apply(this,arguments)};function S(r){var n=r.filename,a=r.filenameColor,l=r.copiedTooltipColor,s=r.children,i=(0,t.useState)(!1),c=i[0],u=i[1];return(0,t.useEffect)((function(){u(!0)}),[]),(0,e.jsxs)("div",T({className:o("mt-5 mb-8 not-prose gray-frame",n&&"pt-2")},{children:[n?(0,e.jsx)(E,T({filename:n,filenameColor:a},{children:c?(0,e.jsx)(P,{textToCopy:k(s),copiedTooltipColor:null!=l?l:a}):void 0})):null,!n&&c&&(0,e.jsx)("div",T({className:"absolute top-5 right-5"},{children:(0,e.jsx)(P,{textToCopy:k(s),copiedTooltipColor:null!=l?l:a})})),(0,e.jsx)("div",T({className:"code-in-gray-frame children:!my-0 children:!shadow-none children:!bg-transparent",style:{fontVariantLigatures:"none"}},{children:c?s:null}))]}))}function E(t){var r=t.filename,n=t.filenameColor,a=t.children;return(0,e.jsxs)("div",T({className:"flex text-slate-400 text-xs leading-6"},{children:[(0,e.jsx)("div",T({className:"flex-none border-t border-b border-t-transparent px-4 py-1 flex items-center",style:{color:n,borderBottomColor:n}},{children:r})),(0,e.jsx)("div",T({className:"flex-auto flex items-center bg-slate-700/50 border border-slate-500/30 rounded-t"},{children:a&&(0,e.jsx)("div",T({className:"flex-auto flex items-center justify-end px-4 space-x-4"},{children:a}))}))]}))}function R(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,R),n}var A,L=((A=L||{})[A.None=0]="None",A[A.RenderStrategy=1]="RenderStrategy",A[A.Static=2]="Static",A),M=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(M||{});function F({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:o=!0,name:l}){let s=H(t,e);if(o)return D(s,r,n,l);let i=null!=a?a:0;if(2&i){let{static:e=!1,...t}=s;if(e)return D(t,r,n,l)}if(1&i){let{unmount:e=!0,...t}=s;return R(e?0:1,{0:()=>null,1:()=>D({...t,hidden:!0,style:{display:"none"}},r,n,l)})}return D(s,r,n,l)}function D(e,r={},n,a){let{as:o=n,children:l,refName:s="ref",...i}=U(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof l?l(r):l;i.className&&"function"==typeof i.className&&(i.className=i.className(r));let d={};if(r){let e=!1,t=[];for(let[n,a]of Object.entries(r))"boolean"==typeof a&&(e=!0),!0===a&&t.push(n);e&&(d["data-headlessui-state"]=t.join(" "))}if(o===t.Fragment&&Object.keys(V(i)).length>0){if(!(0,t.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(i).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,t.cloneElement)(u,Object.assign({},H(u.props,V(U(i,["ref"]))),d,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(u.ref,c.ref)))}return(0,t.createElement)(o,Object.assign({},U(i,["ref"]),o!==t.Fragment&&c,o!==t.Fragment&&d),u)}function H(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...n){let a=r[e];for(let e of a){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function _(e){var r;return Object.assign((0,t.forwardRef)(e),{displayName:null!=(r=e.displayName)?r:e.name})}function V(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function U(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}const B="undefined"==typeof window||"undefined"==typeof document;let z=B?t.useEffect:t.useLayoutEffect,W={serverHandoffComplete:!1};var $;let Z=0;function q(){return++Z}let G=null!=($=t.useId)?$:function(){let e=function(){let[e,r]=(0,t.useState)(W.serverHandoffComplete);return(0,t.useEffect)((()=>{!0!==e&&r(!0)}),[e]),(0,t.useEffect)((()=>{!1===W.serverHandoffComplete&&(W.serverHandoffComplete=!0)}),[]),e}(),[r,n]=t.useState(e?q:null);return z((()=>{null===r&&n(q())}),[r]),null!=r?""+r:void 0};var Q=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Q||{});function K(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Y(){let e=[],t=[],r={enqueue(e){t.push(e)},addEventListener:(e,t,n,a)=>(e.addEventListener(t,n,a),r.add((()=>e.removeEventListener(t,n,a)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>r.requestAnimationFrame((()=>r.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return r.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return K((()=>{t.current&&e[0]()})),r.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0){let[t]=e.splice(r,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return r}function J(e){return B?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let X=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var ee,te=((ee=te||{})[ee.First=1]="First",ee[ee.Previous=2]="Previous",ee[ee.Next=4]="Next",ee[ee.Last=8]="Last",ee[ee.WrapAround=16]="WrapAround",ee[ee.NoScroll=32]="NoScroll",ee),re=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(re||{}),ne=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ne||{});function ae(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(X))}var oe=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(oe||{});function le(e,t=0){var r;return e!==(null==(r=J(e))?void 0:r.body)&&R(t,{0:()=>e.matches(X),1(){let t=e;for(;null!==t;){if(t.matches(X))return!0;t=t.parentElement}return!1}})}function se(e){let t=J(e);Y().nextFrame((()=>{t&&!le(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}let ie=["textarea","input"].join(",");function ce(e,t=(e=>e)){return e.slice().sort(((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let o=n.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function ue(e,t,r=!0,n=null){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?r?ce(e):e:ae(e);n=null!=n?n:a.activeElement;let l,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),i=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(n))-1;if(4&t)return Math.max(0,o.indexOf(n))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},u=0,d=o.length;do{if(u>=d||u+d<=0)return 0;let e=i+u;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}l=o[e],null==l||l.focus(c),u+=s}while(l!==a.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,ie))&&r}(l)&&l.select(),l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),2}function de(e){let r=(0,t.useRef)(e);return z((()=>{r.current=e}),[e]),r}let fe=function(e){let r=de(e);return t.useCallback(((...e)=>r.current(...e)),[r])},pe=Symbol();function ve(...e){let r=(0,t.useRef)(e);(0,t.useEffect)((()=>{r.current=e}),[e]);let n=fe((e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[pe])))?void 0:n}function me(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()?"button":void 0}function he(e,r){let[n,a]=(0,t.useState)((()=>me(e)));return z((()=>{a(me(e))}),[e.type,e.as]),z((()=>{n||!r.current||r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&a("button")}),[n,r]),n}var xe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(xe||{});let be=_((function(e,t){let{features:r=1,...n}=e;return F({ourProps:{ref:t,"aria-hidden":2==(2&r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}},theirProps:n,slot:{},defaultTag:"div",name:"Hidden"})}));function ge({onFocus:e}){let[r,n]=(0,t.useState)(!0);return r?t.createElement(be,{as:"button",type:"button",features:xe.Focusable,onFocus:t=>{t.preventDefault();let r,a=50;r=requestAnimationFrame((function t(){if(!(a--<=0))return e()?(n(!1),void cancelAnimationFrame(r)):void(r=requestAnimationFrame(t));r&&cancelAnimationFrame(r)}))}}):null}var ye=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(ye||{});let we={0(e,t){let r=e.tabs.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}));if(t.index<0)return{...e,selectedIndex:e.tabs.indexOf(r[0])};if(t.index>e.tabs.length)return{...e,selectedIndex:e.tabs.indexOf(r[r.length-1])};let n=e.tabs.slice(0,t.index),a=[...e.tabs.slice(t.index),...n].find((e=>r.includes(e)));return a?{...e,selectedIndex:e.tabs.indexOf(a)}:e},1(e,t){var r;if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],a=ce([...e.tabs,t.tab],(e=>e.current)),o=null!=(r=a.indexOf(n))?r:e.selectedIndex;return-1===o&&(o=e.selectedIndex),{...e,tabs:a,selectedIndex:o}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:ce([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},Ce=(0,t.createContext)(null);function je(e){let r=(0,t.useContext)(Ce);if(null===r){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,je),t}return r}Ce.displayName="TabsSSRContext";let ke=(0,t.createContext)(null);function Ne(e){let r=(0,t.useContext)(ke);if(null===r){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ne),t}return r}ke.displayName="TabsDataContext";let Oe=(0,t.createContext)(null);function Pe(e){let r=(0,t.useContext)(Oe);if(null===r){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Pe),t}return r}function Ie(e,t){return R(t.type,we,e,t)}Oe.displayName="TabsActionsContext";let Te=t.Fragment,Se=_((function(e,r){let{defaultIndex:n=0,vertical:a=!1,manual:o=!1,onChange:l,selectedIndex:s=null,...i}=e;const c=a?"vertical":"horizontal",u=o?"manual":"auto";let d=null!==s,f=ve(r),[p,v]=(0,t.useReducer)(Ie,{selectedIndex:null!=s?s:n,tabs:[],panels:[]}),m=(0,t.useMemo)((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),h=de(l||(()=>{})),x=de(p.tabs),b=(0,t.useMemo)((()=>({orientation:c,activation:u,...p})),[c,u,p]),g=de(d?e.selectedIndex:p.selectedIndex),y=(0,t.useMemo)((()=>({registerTab:e=>(v({type:1,tab:e}),()=>v({type:2,tab:e})),registerPanel:e=>(v({type:3,panel:e}),()=>v({type:4,panel:e})),change(e){g.current!==e&&h.current(e),d||v({type:0,index:e})}})),[v,d]);z((()=>{v({type:0,index:null!=s?s:n})}),[s]);let w=(0,t.useRef)({tabs:[],panels:[]}),C={ref:f};return t.createElement(Ce.Provider,{value:w},t.createElement(Oe.Provider,{value:y},t.createElement(ke.Provider,{value:b},b.tabs.length<=0&&t.createElement(ge,{onFocus:()=>{var e,t;for(let r of x.current)if(0===(null==(e=r.current)?void 0:e.tabIndex))return null==(t=r.current)||t.focus(),!0;return!1}}),F({ourProps:C,theirProps:i,slot:m,defaultTag:Te,name:"Tabs"}))))})),Ee=_((function(e,t){let{orientation:r,selectedIndex:n}=Ne("Tab.List");return F({ourProps:{ref:ve(t),role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:n},defaultTag:"div",name:"Tabs.List"})})),Re=_((function(e,r){var n,a;let o=`headlessui-tabs-tab-${G()}`,{orientation:l,activation:s,selectedIndex:i,tabs:c,panels:u}=Ne("Tab"),d=Pe("Tab"),f=Ne("Tab"),p=je("Tab"),v=(0,t.useRef)(null),m=ve(v,r);z((()=>d.registerTab(v)),[d,v]);let h=p.current.tabs.indexOf(o);-1===h&&(h=p.current.tabs.push(o)-1);let x=c.indexOf(v);-1===x&&(x=h);let b=x===i,g=fe((e=>{var t;let r=e();if(r===re.Success&&"auto"===s){let e=null==(t=J(v))?void 0:t.activeElement,r=f.tabs.findIndex((t=>t.current===e));-1!==r&&d.change(r)}return r})),y=fe((e=>{let t=c.map((e=>e.current)).filter(Boolean);if(e.key===Q.Space||e.key===Q.Enter)return e.preventDefault(),e.stopPropagation(),void d.change(x);switch(e.key){case Q.Home:case Q.PageUp:return e.preventDefault(),e.stopPropagation(),g((()=>ue(t,te.First)));case Q.End:case Q.PageDown:return e.preventDefault(),e.stopPropagation(),g((()=>ue(t,te.Last)))}return g((()=>R(l,{vertical:()=>e.key===Q.ArrowUp?ue(t,te.Previous|te.WrapAround):e.key===Q.ArrowDown?ue(t,te.Next|te.WrapAround):re.Error,horizontal:()=>e.key===Q.ArrowLeft?ue(t,te.Previous|te.WrapAround):e.key===Q.ArrowRight?ue(t,te.Next|te.WrapAround):re.Error})))===re.Success?e.preventDefault():void 0})),w=(0,t.useRef)(!1),C=fe((()=>{var e;w.current||(w.current=!0,null==(e=v.current)||e.focus(),d.change(x),K((()=>{w.current=!1})))})),j=fe((e=>{e.preventDefault()})),k=(0,t.useMemo)((()=>({selected:b})),[b]),N=e;return F({ourProps:{ref:m,onKeyDown:y,onMouseDown:j,onClick:C,id:o,role:"tab",type:he(e,v),"aria-controls":null==(a=null==(n=u[x])?void 0:n.current)?void 0:a.id,"aria-selected":b,tabIndex:b?0:-1},theirProps:N,slot:k,defaultTag:"button",name:"Tabs.Tab"})})),Ae=_((function(e,r){let{selectedIndex:n}=Ne("Tab.Panels");return F({ourProps:{ref:ve(r)},theirProps:e,slot:(0,t.useMemo)((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),Le=L.RenderStrategy|L.Static,Me=_((function(e,r){var n,a,o,l;let{selectedIndex:s,tabs:i,panels:c}=Ne("Tab.Panel"),u=Pe("Tab.Panel"),d=je("Tab.Panel"),f=`headlessui-tabs-panel-${G()}`,p=(0,t.useRef)(null),v=ve(p,r);z((()=>u.registerPanel(p)),[u,p]);let m=d.current.panels.indexOf(f);-1===m&&(m=d.current.panels.push(f)-1);let h=c.indexOf(p);-1===h&&(h=m);let x=h===s,b=(0,t.useMemo)((()=>({selected:x})),[x]),g=e,y={ref:v,id:f,role:"tabpanel","aria-labelledby":null==(a=null==(n=i[h])?void 0:n.current)?void 0:a.id,tabIndex:x?0:-1};return x||null!=(o=e.unmount)&&!o||null!=(l=e.static)&&l?F({ourProps:y,theirProps:g,slot:b,defaultTag:"div",features:Le,visible:x,name:"Tabs.Panel"}):t.createElement(be,{as:"span",...y})})),Fe=Object.assign(Re,{Group:Se,List:Ee,Panels:Ae,Panel:Me});var De=function(){return De=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},De.apply(this,arguments)};function He(r){var n=r.children,a=r.selectedColor,l=r.copiedTooltipColor,s=r.isSmallText,i=(0,t.useState)(0),c=i[0],u=i[1],d=(0,t.useState)(!1),f=d[0],p=d[1];if((0,t.useEffect)((function(){p(!0)}),[]),null==n)return console.warn("CodeGroup has no children, expected at least one CodeBlock child."),null;if(Array.isArray(n)){if(0===n.length)return null}else n=[n];var v=n.filter((function(e,t){return t===c}))[0];return(0,e.jsxs)(Fe.Group,De({as:"div",onChange:u,className:"not-prose gray-frame"},{children:[(0,e.jsxs)("div",De({className:"flex text-xs leading-6 rounded-tl-xl pt-2"},{children:[(0,e.jsx)(Fe.List,De({className:"flex"},{children:n.map((function(t,r){return(0,e.jsx)(_e,De({myIndex:r,selectedIndex:c,selectedColor:a},{children:t.props.filename}),t.props.filename+"TabItem"+r)}))})),(0,e.jsx)("div",De({className:o("flex-auto flex justify-end bg-slate-700/50 border-y border-slate-500/30 pr-4 rounded-tr",c===n.length-1?"rounded-tl border-l":"")},{children:f?(0,e.jsx)(P,{textToCopy:k(v.props.children),copiedTooltipColor:null!=l?l:a}):void 0}))]})),(0,e.jsx)(Fe.Panels,De({className:"flex overflow-auto"},{children:n.map((function(t){return(0,e.jsx)(Fe.Panel,De({className:o("flex-none code-in-gray-frame",s&&"text-xs leading-5"),style:{fontVariantLigatures:"none"}},{children:f&&t.props.children}),t.props.filename)}))}))]}))}function _e(t){var r=t.children,n=t.selectedIndex,a=t.myIndex,l=t.selectedColor,s=void 0===l?"#CBD5E1":l,i=n===a,c=i?null:n===a-1?"capped":"normal",u=i?null:n===a+1?"capped":"normal";return(0,e.jsxs)(Fe,De({className:"flex items-center relative overflow-hidden px-4 py-1 text-slate-400 outline-none",style:{color:i?s:""}},{children:[(0,e.jsx)("span",De({className:"z-10"},{children:r})),!i&&(0,e.jsx)(Ve,{className:o("bg-slate-700/50 border-y border-slate-500/30","capped"===c&&"border-l rounded-tl","capped"===u&&"border-r rounded-tr")}),"normal"===u&&(0,e.jsx)(Ve,{className:"inset-y-px border-r border-slate-200/5 z-20"}),i&&(0,e.jsx)("div",{className:"pointer-events-none absolute inset-0 border-b",style:{borderColor:s}})]}))}function Ve(t){var r=t.className;return(0,e.jsx)("div",{className:o("pointer-events-none absolute inset-0",r)})}var Ue=function(){return Ue=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ue.apply(this,arguments)};function Be(t){var r=t.children,n=t.icon,a=t.className;return(0,e.jsx)("div",Ue({className:"px-4 py-4 mb-4 rounded-xl ".concat(a)},{children:(0,e.jsxs)("div",Ue({className:"flex items-start space-x-3"},{children:[(0,e.jsx)("div",Ue({className:"mt-0.5 w-4"},{children:n})),(0,e.jsx)("div",Ue({className:"flex-1 font-medium text-sm prose dark:text-slate-50"},{children:r}))]}))}))}function ze(t){var r=t.children;return(0,e.jsx)(Be,Ue({className:"bg-slate-100 dark:bg-slate-600",icon:(0,e.jsx)("svg",Ue({viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"flex-none w-5 h-5 text-slate-400 dark:text-slate-300","aria-label":"Info"},{children:(0,e.jsx)("path",{d:"M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 14.5C4.41563 14.5 1.5 11.5841 1.5 8C1.5 4.41594 4.41563 1.5 8 1.5C11.5844 1.5 14.5 4.41594 14.5 8C14.5 11.5841 11.5844 14.5 8 14.5ZM9.25 10.5H8.75V7.75C8.75 7.3375 8.41563 7 8 7H7C6.5875 7 6.25 7.3375 6.25 7.75C6.25 8.1625 6.5875 8.5 7 8.5H7.25V10.5H6.75C6.3375 10.5 6 10.8375 6 11.25C6 11.6625 6.3375 12 6.75 12H9.25C9.66406 12 10 11.6641 10 11.25C10 10.8359 9.66563 10.5 9.25 10.5ZM8 6C8.55219 6 9 5.55219 9 5C9 4.44781 8.55219 4 8 4C7.44781 4 7 4.44687 7 5C7 5.55313 7.44687 6 8 6Z"})}))},{children:r}))}function We(t){var r=t.children;return(0,e.jsx)(Be,Ue({icon:(0,e.jsx)("svg",Ue({className:"flex-none w-5 h-5 text-yellow-400 dark:text-yellow-300/80",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-label":"Warning"},{children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})),className:"bg-amber-50 dark:bg-yellow-500/40"},{children:r}))}function $e(t){var r=t.children;return(0,e.jsx)(Be,Ue({icon:(0,e.jsx)("svg",Ue({width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4 text-sky-500","aria-label":"Note"},{children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1.3C10.14 1.3 12.7 3.86 12.7 7C12.7 10.14 10.14 12.7 7 12.7C5.48908 12.6974 4.0408 12.096 2.97241 11.0276C1.90403 9.9592 1.30264 8.51092 1.3 7C1.3 3.86 3.86 1.3 7 1.3ZM7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM8 3H6V8H8V3ZM8 9H6V11H8V9Z"})})),className:"bg-sky-100 dark:bg-sky-900"},{children:r}))}function Ze(t){var r=t.children;return(0,e.jsx)(Be,Ue({icon:(0,e.jsx)("svg",Ue({width:"11",height:"14",viewBox:"0 0 11 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto","aria-label":"Tip"},{children:(0,e.jsx)("path",{d:"M3.12794 12.4232C3.12794 12.5954 3.1776 12.7634 3.27244 12.907L3.74114 13.6095C3.88471 13.8248 4.21067 14 4.46964 14H6.15606C6.41415 14 6.74017 13.825 6.88373 13.6095L7.3508 12.9073C7.43114 12.7859 7.49705 12.569 7.49705 12.4232L7.50055 11.3513H3.12521L3.12794 12.4232ZM5.31288 0C2.52414 0.00875889 0.5 2.26889 0.5 4.78826C0.5 6.00188 0.949566 7.10829 1.69119 7.95492C2.14321 8.47011 2.84901 9.54727 3.11919 10.4557C3.12005 10.4625 3.12175 10.4698 3.12261 10.4771H7.50342C7.50427 10.4698 7.50598 10.463 7.50684 10.4557C7.77688 9.54727 8.48281 8.47011 8.93484 7.95492C9.67728 7.13181 10.1258 6.02703 10.1258 4.78826C10.1258 2.15486 7.9709 0.000106649 5.31288 0ZM7.94902 7.11267C7.52078 7.60079 6.99082 8.37878 6.6077 9.18794H4.02051C3.63739 8.37878 3.10743 7.60079 2.67947 7.11294C2.11997 6.47551 1.8126 5.63599 1.8126 4.78826C1.8126 3.09829 3.12794 1.31944 5.28827 1.3126C7.2435 1.3126 8.81315 2.88226 8.81315 4.78826C8.81315 5.63599 8.50688 6.47551 7.94902 7.11267ZM4.87534 2.18767C3.66939 2.18767 2.68767 3.16939 2.68767 4.37534C2.68767 4.61719 2.88336 4.81288 3.12521 4.81288C3.36705 4.81288 3.56274 4.61599 3.56274 4.37534C3.56274 3.6515 4.1515 3.06274 4.87534 3.06274C5.11719 3.06274 5.31288 2.86727 5.31288 2.62548C5.31288 2.38369 5.11599 2.18767 4.87534 2.18767Z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:r}))}function qe(t){var r=t.children;return(0,e.jsx)(Be,Ue({icon:(0,e.jsx)("svg",Ue({className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512","aria-label":"Check"},{children:(0,e.jsx)("path",{d:"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:r}))}var Ge=function(){return Ge=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ge.apply(this,arguments)},Qe={none:"",md:"p-8"};function Ke(t){var r=t.as,n=void 0===r?"div":r,a=t.style,l=t.className,s=t.containerClassName,i=t.html,c=t.children,u=t.hint,d=t.padding,f=void 0===d?"md":d,p=t.lightOnly,v=void 0!==p&&p,m=Qe[f];return(0,e.jsxs)("div",Ge({className:s},{children:[void 0!==u&&(0,e.jsxs)("div",Ge({className:"not-prose mb-4 flex items-center space-x-2"},{children:[(0,e.jsx)("svg",Ge({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"flex-none w-4 h-4 fill-slate-400 dark:fill-slate-300"},{children:(0,e.jsx)("path",{d:"M224 320c0 17.69 14.33 32 32 32h64c17.67 0 32-14.31 32-32s-14.33-32-32-32h-64C238.3 288 224 302.3 224 320zM267.6 256H352c17.67 0 32-14.31 32-32s-14.33-32-32-32h-80v40C272 240.5 270.3 248.5 267.6 256zM272 160H480c17.67 0 32-14.31 32-32s-14.33-32-32-32h-208.8C271.5 98.66 272 101.3 272 104V160zM320 416c0-17.69-14.33-32-32-32H224c-17.67 0-32 14.31-32 32s14.33 32 32 32h64C305.7 448 320 433.7 320 416zM202.1 355.8C196 345.6 192 333.3 192 320c0-5.766 1.08-11.24 2.51-16.55C157.4 300.6 128 269.9 128 232V159.1C128 151.2 135.2 144 143.1 144S160 151.2 159.1 159.1l0 69.72C159.1 245.2 171.3 271.1 200 271.1C222.1 271.1 240 254.1 240 232v-128C240 81.91 222.1 64 200 64H136.6C103.5 64 72.03 80 52.47 106.8L26.02 143.2C9.107 166.5 0 194.5 0 223.3V312C0 387.1 60.89 448 136 448h32.88C163.4 438.6 160 427.7 160 416C160 388.1 178 364.6 202.1 355.8z"})})),(0,e.jsx)("p",Ge({className:"text-slate-700 text-sm font-medium dark:text-slate-200"},{children:u}))]})),(0,e.jsxs)(n,Ge({style:a,className:o("not-prose relative bg-slate-50 rounded-xl overflow-hidden",!v&&"dark:bg-slate-800/25")},{children:[(0,e.jsx)("div",{style:{backgroundPosition:"10px 10px"},className:o("absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))]",!v&&"dark:bg-grid-slate-700/25 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]")}),(0,e.jsx)("div",Ge({className:o("relative rounded-xl overflow-auto flex justify-center",m,l)},i?{dangerouslySetInnerHTML:{__html:i}}:{children:c})),(0,e.jsx)("div",{className:o("absolute inset-0 pointer-events-none border border-black/5 rounded-xl",!v&&"dark:border-white/5")})]}))]}))}var Ye=function(){return Ye=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ye.apply(this,arguments)};function Je(t){return(0,e.jsx)(Xe,Ye({},t))}function Xe(t){var r=t.name,n=t.type,a=t.defaultValue,l=t.required,s=void 0!==l&&l,i=t.optional,c=void 0!==i&&i,u=t.hidden,d=void 0!==u&&u,f=t.nameClasses,p=t.children;return d?null:(0,e.jsxs)("div",Ye({className:o("pb-3 mb-4 border-b border-slate-100 dark:border-slate-800")},{children:[(0,e.jsxs)("div",Ye({className:"flex font-mono text-sm"},{children:[r&&(0,e.jsxs)("div",Ye({className:"py-px flex-1 space-x-2 truncate"},{children:[(0,e.jsx)("span",Ye({className:o("px-1 py-px rounded-md font-medium bg-slate-50 dark:bg-slate-800 border border-slate-200 dark:border-slate-700",f,f&&!f.includes("text-")||!f?"dark:text-slate-200":void 0)},{children:r})),s&&(0,e.jsx)("span",Ye({className:"text-slate-500 dark:text-slate-300"},{children:"Required"})),c&&(0,e.jsx)("span",Ye({className:"text-slate-500 dark:text-slate-300"},{children:"Optional"})),a&&(0,e.jsxs)("span",Ye({className:"text-slate-500 dark:text-slate-300"},{children:["Default: ",a]}))]})),n&&(0,e.jsx)("div",Ye({className:"text-slate-600 dark:text-slate-300"},{children:n}))]})),(0,e.jsx)("div",Ye({className:"mt-2 prose-sm prose-slate dark:prose-dark"},{children:p}))]}))}function et(){let[e]=(0,t.useState)(Y);return(0,t.useEffect)((()=>()=>e.dispose()),[e]),e}var tt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(tt||{});function rt(e,r,n){let a=de(r);(0,t.useEffect)((()=>{function t(e){a.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}let nt=(0,t.createContext)(null);nt.displayName="OpenClosedContext";var at=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(at||{});function ot(){return(0,t.useContext)(nt)}function lt({value:e,children:r}){return t.createElement(nt.Provider,{value:e},r)}var st=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(st||{}),it=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(it||{}),ct=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(ct||{});function ut(e,t=(e=>e)){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=ce(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),a=r?n.indexOf(r):null;return-1===a&&(a=null),{items:n,activeItemIndex:a}}let dt={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,menuState:0},2:(e,t)=>{var r;let n=ut(e),a=function(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),a=null!=n?n:-1,o=(()=>{switch(e.focus){case 0:return r.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=r.slice().reverse().findIndex(((e,r,n)=>!(-1!==a&&n.length-r-1>=a||t.resolveDisabled(e))));return-1===e?e:r.length-1-e}case 2:return r.findIndex(((e,r)=>!(r<=a||t.resolveDisabled(e))));case 3:{let e=r.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:r.length-1-e}case 4:return r.findIndex((r=>t.resolveId(r)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===o?n:o}(t,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeItemIndex:a,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),a=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled})),o=a?e.items.indexOf(a):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=ut(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...r}},6:(e,t)=>{let r=ut(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...r,activationTrigger:1}}},ft=(0,t.createContext)(null);function pt(e){let r=(0,t.useContext)(ft);if(null===r){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,pt),t}return r}function vt(e,t){return R(t.type,dt,e,t)}ft.displayName="MenuContext";let mt=t.Fragment,ht=_((function(e,r){let n=(0,t.useReducer)(vt,{menuState:1,buttonRef:(0,t.createRef)(),itemsRef:(0,t.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:o,buttonRef:l},s]=n,i=ve(r);!function(e,r,n=!0){let a=(0,t.useRef)(!1);function o(t,n){if(!a.current||t.defaultPrevented)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),l=n(t);if(null!==l&&l.getRootNode().contains(l)){for(let e of o){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(l))return}return!le(l,oe.Loose)&&-1!==l.tabIndex&&t.preventDefault(),r(t,l)}}(0,t.useEffect)((()=>{requestAnimationFrame((()=>{a.current=n}))}),[n]);let l=(0,t.useRef)(null);rt("mousedown",(e=>{var t,r;a.current&&(l.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),rt("click",(e=>{!l.current||(o(e,(()=>l.current)),l.current=null)}),!0),rt("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([l,o],((e,t)=>{var r;s({type:1}),le(t,oe.Loose)||(e.preventDefault(),null==(r=l.current)||r.focus())}),0===a);let c=fe((()=>{s({type:1})})),u=(0,t.useMemo)((()=>({open:0===a,close:c})),[a,c]),d=e,f={ref:i};return t.createElement(ft.Provider,{value:n},t.createElement(lt,{value:R(a,{0:at.Open,1:at.Closed})},F({ourProps:f,theirProps:d,slot:u,defaultTag:mt,name:"Menu"})))})),xt=_((function(e,r){var n;let[a,o]=pt("Menu.Button"),l=ve(a.buttonRef,r),s=`headlessui-menu-button-${G()}`,i=et(),c=fe((e=>{switch(e.key){case Q.Space:case Q.Enter:case Q.ArrowDown:e.preventDefault(),e.stopPropagation(),o({type:0}),i.nextFrame((()=>o({type:2,focus:tt.First})));break;case Q.ArrowUp:e.preventDefault(),e.stopPropagation(),o({type:0}),i.nextFrame((()=>o({type:2,focus:tt.Last})))}})),u=fe((e=>{e.key===Q.Space&&e.preventDefault()})),d=fe((t=>{if(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}(t.currentTarget))return t.preventDefault();e.disabled||(0===a.menuState?(o({type:1}),i.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(t.preventDefault(),o({type:0})))})),f=(0,t.useMemo)((()=>({open:0===a.menuState})),[a]),p=e;return F({ourProps:{ref:l,id:s,type:he(e,a.buttonRef),"aria-haspopup":!0,"aria-controls":null==(n=a.itemsRef.current)?void 0:n.id,"aria-expanded":e.disabled?void 0:0===a.menuState,onKeyDown:c,onKeyUp:u,onClick:d},theirProps:p,slot:f,defaultTag:"button",name:"Menu.Button"})})),bt=L.RenderStrategy|L.Static,gt=_((function(e,r){var n,a;let[o,l]=pt("Menu.Items"),s=ve(o.itemsRef,r),i=function(...e){return(0,t.useMemo)((()=>J(...e)),[...e])}(o.itemsRef),c=`headlessui-menu-items-${G()}`,u=et(),d=ot(),f=null!==d?d===at.Open:0===o.menuState;(0,t.useEffect)((()=>{let e=o.itemsRef.current;!e||0===o.menuState&&e!==(null==i?void 0:i.activeElement)&&e.focus({preventScroll:!0})}),[o.menuState,o.itemsRef,i]),function({container:e,accept:r,walk:n,enabled:a=!0}){let o=(0,t.useRef)(r),l=(0,t.useRef)(n);(0,t.useEffect)((()=>{o.current=r,l.current=n}),[r,n]),z((()=>{if(!e||!a)return;let t=J(e);if(!t)return;let r=o.current,n=l.current,s=Object.assign((e=>r(e)),{acceptNode:r}),i=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;i.nextNode();)n(i.currentNode)}),[e,a,o,l])}({container:o.itemsRef.current,enabled:0===o.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=fe((e=>{var t,r;switch(u.dispose(),e.key){case Q.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),l({type:3,value:e.key});case Q.Enter:if(e.preventDefault(),e.stopPropagation(),l({type:1}),null!==o.activeItemIndex){let{dataRef:e}=o.items[o.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}se(o.buttonRef.current);break;case Q.ArrowDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:tt.Next});case Q.ArrowUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:tt.Previous});case Q.Home:case Q.PageUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:tt.First});case Q.End:case Q.PageDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:tt.Last});case Q.Escape:e.preventDefault(),e.stopPropagation(),l({type:1}),Y().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case Q.Tab:e.preventDefault(),e.stopPropagation(),l({type:1}),Y().nextFrame((()=>{!function(e,t){ue(ae(),t,!0,e)}(o.buttonRef.current,e.shiftKey?te.Previous:te.Next)}));break;default:1===e.key.length&&(l({type:3,value:e.key}),u.setTimeout((()=>l({type:4})),350))}})),v=fe((e=>{e.key===Q.Space&&e.preventDefault()})),m=(0,t.useMemo)((()=>({open:0===o.menuState})),[o]),h=e;return F({ourProps:{"aria-activedescendant":null===o.activeItemIndex||null==(n=o.items[o.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(a=o.buttonRef.current)?void 0:a.id,id:c,onKeyDown:p,onKeyUp:v,role:"menu",tabIndex:0,ref:s},theirProps:h,slot:m,defaultTag:"div",features:bt,visible:f,name:"Menu.Items"})})),yt=t.Fragment,wt=_((function(e,r){let{disabled:n=!1,...a}=e,[o,l]=pt("Menu.Item"),s=`headlessui-menu-item-${G()}`,i=null!==o.activeItemIndex&&o.items[o.activeItemIndex].id===s,c=(0,t.useRef)(null),u=ve(r,c);z((()=>{if(0!==o.menuState||!i||0===o.activationTrigger)return;let e=Y();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[c,i,o.menuState,o.activationTrigger,o.activeItemIndex]);let d=(0,t.useRef)({disabled:n,domRef:c});z((()=>{d.current.disabled=n}),[d,n]),z((()=>{var e,t;d.current.textValue=null==(t=null==(e=c.current)?void 0:e.textContent)?void 0:t.toLowerCase()}),[d,c]),z((()=>(l({type:5,id:s,dataRef:d}),()=>l({type:6,id:s}))),[d,s]);let f=fe((()=>{l({type:1})})),p=fe((e=>{if(n)return e.preventDefault();l({type:1}),se(o.buttonRef.current)})),v=fe((()=>{if(n)return l({type:2,focus:tt.Nothing});l({type:2,focus:tt.Specific,id:s})})),m=fe((()=>{n||i||l({type:2,focus:tt.Specific,id:s,trigger:0})})),h=fe((()=>{n||!i||l({type:2,focus:tt.Nothing})})),x=(0,t.useMemo)((()=>({active:i,disabled:n,close:f})),[i,n,f]);return F({ourProps:{id:s,ref:u,role:"menuitem",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,disabled:void 0,onClick:p,onFocus:v,onPointerMove:m,onMouseMove:m,onPointerLeave:h,onMouseLeave:h},theirProps:a,slot:x,defaultTag:yt,name:"Menu.Item"})})),Ct=Object.assign(ht,{Button:xt,Items:gt,Item:wt});var jt=function(){return jt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},jt.apply(this,arguments)};function kt(r){var n=r.options,a=r.onChange,l=r.defaultOption,s=r.selectedOptionClass,i=l,c=Array.isArray(n)&&n.length>0;null==l&&c&&(i=n[0]);var u=(0,t.useState)(i),d=u[0],f=u[1];return c?(0,e.jsx)("div",jt({className:"relative"},{children:(0,e.jsxs)(Ct,{children:[(0,e.jsxs)(Ct.Button,jt({className:"text-xs text-slate-500 dark:text-slate-400 leading-5 font-semibold !bg-slate-400/10 rounded-full py-1 px-3 flex items-center space-x-2 hover:bg-slate-400/20 dark:highlight-white/5"},{children:[d,(0,e.jsx)("svg",jt({width:"6",height:"3",className:"ml-2 overflow-visible","aria-hidden":"true"},{children:(0,e.jsx)("path",{d:"M0 0L3 3L6 0",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}))]})),(0,e.jsx)(Ct.Items,jt({className:"absolute top-full mt-1 py-2 w-40 rounded-lg bg-white shadow text-sm leading-6 font-semibold text-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:highlight-white/5"},{children:n.map((function(t){return(0,e.jsx)(Ct.Item,jt({disabled:t===d},{children:function(r){var n=r.active;return(0,e.jsxs)("a",jt({className:o("flex items-center justify-between px-3 py-1 cursor-pointer",n&&"bg-slate-50 text-slate-900 dark:bg-slate-600/30 dark:text-white",t===d&&s),onClick:function(){return function(e){f(e),a&&a(e)}(t)}},{children:[t,t===d&&(0,e.jsx)("svg",jt({width:"24",height:"24",fill:"none","aria-hidden":"true"},{children:(0,e.jsx)("path",{d:"m7.75 12.75 2.25 2.5 6.25-6.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))]}))}}),t)}))}))]})})):null}var Nt=function(){return Nt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Nt.apply(this,arguments)};function Ot(t){var r=t.title,n=t.isActive,a=void 0===n||n,l=t.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h2",Nt({className:o("flex text-sm leading-6 font-semibold whitespace-nowrap pt-3 pb-2.5 -mb-px max-w-max border-b",a?"text-primary dark:text-primary-light border-current":"text-slate-900 border-transparent hover:border-slate-300 dark:text-slate-200 dark:hover:border-slate-700")},{children:r})),l?(0,e.jsx)("div",Nt({className:"prose dark:prose-dark"},{children:l})):null]})}var Pt=function(){return Pt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Pt.apply(this,arguments)};function It(r){var n=r.children,a=(0,t.useState)(0),o=a[0],l=a[1],s=t.Children.toArray(n),i=s[o].props.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("ul",Pt({className:"not-prose mb-6 pb-[1px] flex-none min-w-full overflow-auto border-b border-slate-200 space-x-6 flex dark:border-slate-200/10"},{children:s.map((function(t,r){return(0,e.jsx)("li",Pt({className:"cursor-pointer",onClick:function(){return l(r)}},{children:(0,e.jsx)(Ot,{title:t.props.title,isActive:r===o})}))}))})),(0,e.jsx)("div",Pt({className:"prose dark:prose-dark"},{children:i}))]})}var Tt=function(){return Tt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Tt.apply(this,arguments)};function St(t){var r=t.tip,n=t.children;return n?(0,e.jsxs)("span",Tt({className:"group z-10 inline relative"},{children:[Et(n),(0,e.jsx)("span",Tt({className:"hidden group-hover:flex w-fit lg:whitespace-nowrap absolute bottom-full left-1/2 mb-0.5 pb-1 -translate-x-1/2 bg-slate-800 text-center text-slate-50 text-xs px-1.5 py-1 rounded-lg border border-slate-50"},{children:r}))]})):null}function Et(r){return(0,t.isValidElement)(r)?r:(0,e.jsx)("span",Tt({className:"underline decoration-dotted decoration-2 underline-offset-4 decoration-slate-400 dark:decoration-slate-500"},{children:r}))}var Rt=function(){return Rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Rt.apply(this,arguments)};function At(t){var r=t.open;return(0,e.jsx)("svg",Rt({xmlns:"http://www.w3.org/2000/svg",className:o("h-3 w-3",r&&"rotate-90 -mt-1"),viewBox:"0 0 256 512",fill:"currentColor"},{children:(0,e.jsx)("path",{d:"M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"})}))}const Lt=function(t){var r=t.title,n=t.description,a=t.open,o=t.setOpen;return(0,e.jsxs)("button",Rt({onClick:function(){return o(!a)},className:"not-prose mt-1.5 flex flex-row items-center content-center w-full py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200 ".concat(a?"":"rounded-b-xl"),"aria-controls":r+"Children","aria-expanded":a},{children:[(0,e.jsx)(At,{open:a}),(0,e.jsxs)("div",Rt({className:"ml-2 leading-tight text-left"},{children:[(0,e.jsxs)("p",Rt({className:"m-0"},{children:[a?"Hide":"Show"," ",r]})),n?(0,e.jsx)("p",Rt({className:"m-0"},{children:n})):null]}))]}))};var Mt=function(){return Mt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Mt.apply(this,arguments)};const Ft=function(r){var n=r.title,a=r.description,l=r.defaultOpen,s=void 0!==l&&l,i=r.onChange,c=r.children,u=(0,t.useState)(s),d=u[0],f=u[1];return(0,e.jsxs)("div",Mt({role:"listitem",className:""},{children:[(0,e.jsx)(Lt,{title:n,description:a,open:d,setOpen:function(e){f(e),i&&i(e)}}),(0,e.jsx)("div",Mt({id:n+"Children",className:o("mt-2 pt-2 mb-4 mx-[6px] px-4 border-l border-slate-100 dark:border-slate-800",!d&&"hidden")},{children:c}))]}),n)}})(),module.exports=n})();
|
package/dist/main.css
CHANGED
|
@@ -1258,6 +1258,35 @@ video {
|
|
|
1258
1258
|
--tw-prose-invert-th-borders: #475569;
|
|
1259
1259
|
--tw-prose-invert-td-borders: #334155;
|
|
1260
1260
|
}
|
|
1261
|
+
.gray-frame {
|
|
1262
|
+
position: relative;
|
|
1263
|
+
border-radius: 0.75rem;
|
|
1264
|
+
--tw-bg-opacity: 1;
|
|
1265
|
+
background-color: rgba(30, 41, 59, var(--tw-bg-opacity));
|
|
1266
|
+
--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
1267
|
+
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
1268
|
+
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
|
|
1269
|
+
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
|
|
1270
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);
|
|
1271
|
+
}
|
|
1272
|
+
.dark .gray-frame {
|
|
1273
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1274
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1275
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
|
1276
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
|
1277
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));
|
|
1278
|
+
--tw-ring-inset: inset;
|
|
1279
|
+
--tw-ring-color: rgba(255, 255, 255, 0.1);
|
|
1280
|
+
}
|
|
1281
|
+
.code-in-gray-frame {
|
|
1282
|
+
min-width: 100%;
|
|
1283
|
+
overflow-x: auto;
|
|
1284
|
+
padding: 1.25rem;
|
|
1285
|
+
font-size: 0.875rem;
|
|
1286
|
+
line-height: 1.5rem;
|
|
1287
|
+
--tw-text-opacity: 1;
|
|
1288
|
+
color: rgba(248, 250, 252, var(--tw-text-opacity));
|
|
1289
|
+
}
|
|
1261
1290
|
.pointer-events-none {
|
|
1262
1291
|
pointer-events: none;
|
|
1263
1292
|
}
|
|
@@ -1273,6 +1302,10 @@ video {
|
|
|
1273
1302
|
bottom: 0px;
|
|
1274
1303
|
left: 0px;
|
|
1275
1304
|
}
|
|
1305
|
+
.inset-y-px {
|
|
1306
|
+
top: 1px;
|
|
1307
|
+
bottom: 1px;
|
|
1308
|
+
}
|
|
1276
1309
|
.top-full {
|
|
1277
1310
|
top: 100%;
|
|
1278
1311
|
}
|
|
@@ -1285,9 +1318,15 @@ video {
|
|
|
1285
1318
|
.top-5 {
|
|
1286
1319
|
top: 1.25rem;
|
|
1287
1320
|
}
|
|
1321
|
+
.right-5 {
|
|
1322
|
+
right: 1.25rem;
|
|
1323
|
+
}
|
|
1288
1324
|
.z-10 {
|
|
1289
1325
|
z-index: 10;
|
|
1290
1326
|
}
|
|
1327
|
+
.z-20 {
|
|
1328
|
+
z-index: 20;
|
|
1329
|
+
}
|
|
1291
1330
|
.m-0 {
|
|
1292
1331
|
margin: 0px;
|
|
1293
1332
|
}
|
|
@@ -1418,6 +1457,9 @@ video {
|
|
|
1418
1457
|
.h-3 {
|
|
1419
1458
|
height: 0.75rem;
|
|
1420
1459
|
}
|
|
1460
|
+
.h-\[1\.15rem\] {
|
|
1461
|
+
height: 1.15rem;
|
|
1462
|
+
}
|
|
1421
1463
|
.w-4 {
|
|
1422
1464
|
width: 1rem;
|
|
1423
1465
|
}
|
|
@@ -1580,12 +1622,25 @@ video {
|
|
|
1580
1622
|
border-top-left-radius: 0.25rem;
|
|
1581
1623
|
border-top-right-radius: 0.25rem;
|
|
1582
1624
|
}
|
|
1625
|
+
.rounded-tl-xl {
|
|
1626
|
+
border-top-left-radius: 0.75rem;
|
|
1627
|
+
}
|
|
1628
|
+
.rounded-tr {
|
|
1629
|
+
border-top-right-radius: 0.25rem;
|
|
1630
|
+
}
|
|
1631
|
+
.rounded-tl {
|
|
1632
|
+
border-top-left-radius: 0.25rem;
|
|
1633
|
+
}
|
|
1583
1634
|
.border {
|
|
1584
1635
|
border-width: 1px;
|
|
1585
1636
|
}
|
|
1586
1637
|
.border-0 {
|
|
1587
1638
|
border-width: 0px;
|
|
1588
1639
|
}
|
|
1640
|
+
.border-y {
|
|
1641
|
+
border-top-width: 1px;
|
|
1642
|
+
border-bottom-width: 1px;
|
|
1643
|
+
}
|
|
1589
1644
|
.border-b {
|
|
1590
1645
|
border-bottom-width: 1px;
|
|
1591
1646
|
}
|
|
@@ -1595,6 +1650,9 @@ video {
|
|
|
1595
1650
|
.border-t {
|
|
1596
1651
|
border-top-width: 1px;
|
|
1597
1652
|
}
|
|
1653
|
+
.border-r {
|
|
1654
|
+
border-right-width: 1px;
|
|
1655
|
+
}
|
|
1598
1656
|
.border-none {
|
|
1599
1657
|
border-style: none;
|
|
1600
1658
|
}
|
|
@@ -1616,6 +1674,9 @@ video {
|
|
|
1616
1674
|
.border-slate-500\/30 {
|
|
1617
1675
|
border-color: rgba(100, 116, 139, 0.3);
|
|
1618
1676
|
}
|
|
1677
|
+
.border-slate-200\/5 {
|
|
1678
|
+
border-color: rgba(226, 232, 240, 0.05);
|
|
1679
|
+
}
|
|
1619
1680
|
.border-current {
|
|
1620
1681
|
border-color: currentColor;
|
|
1621
1682
|
}
|
|
@@ -1750,6 +1811,9 @@ video {
|
|
|
1750
1811
|
.pt-2 {
|
|
1751
1812
|
padding-top: 0.5rem;
|
|
1752
1813
|
}
|
|
1814
|
+
.pr-4 {
|
|
1815
|
+
padding-right: 1rem;
|
|
1816
|
+
}
|
|
1753
1817
|
.pt-3 {
|
|
1754
1818
|
padding-top: 0.75rem;
|
|
1755
1819
|
}
|
|
@@ -1910,12 +1974,9 @@ video {
|
|
|
1910
1974
|
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
|
|
1911
1975
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);
|
|
1912
1976
|
}
|
|
1913
|
-
.
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
|
|
1917
|
-
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
|
|
1918
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);
|
|
1977
|
+
.outline-none {
|
|
1978
|
+
outline: 2px solid transparent;
|
|
1979
|
+
outline-offset: 2px;
|
|
1919
1980
|
}
|
|
1920
1981
|
.ring-2 {
|
|
1921
1982
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
@@ -1927,6 +1988,9 @@ video {
|
|
|
1927
1988
|
.ring-transparent {
|
|
1928
1989
|
--tw-ring-color: transparent;
|
|
1929
1990
|
}
|
|
1991
|
+
.filter {
|
|
1992
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1993
|
+
}
|
|
1930
1994
|
.bg-grid-slate-100 {
|
|
1931
1995
|
background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 32%27 width=%2732%27 height=%2732%27 fill=%27none%27 stroke=%27%23f1f5f9%27%3e%3cpath d=%27M0 .5H31.5V32%27/%3e%3c/svg%3e");
|
|
1932
1996
|
}
|
|
@@ -2207,19 +2271,6 @@ video {
|
|
|
2207
2271
|
-webkit-text-decoration-color: #64748b;
|
|
2208
2272
|
text-decoration-color: #64748b;
|
|
2209
2273
|
}
|
|
2210
|
-
.dark .dark\:ring-1 {
|
|
2211
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2212
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2213
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
|
2214
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
|
2215
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));
|
|
2216
|
-
}
|
|
2217
|
-
.dark .dark\:ring-inset {
|
|
2218
|
-
--tw-ring-inset: inset;
|
|
2219
|
-
}
|
|
2220
|
-
.dark .dark\:ring-white\/10 {
|
|
2221
|
-
--tw-ring-color: rgba(255, 255, 255, 0.1);
|
|
2222
|
-
}
|
|
2223
2274
|
.dark .dark\:bg-grid-slate-700\/25 {
|
|
2224
2275
|
background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 32%27 width=%2732%27 height=%2732%27 fill=%27none%27 stroke=%27rgb%2851 65 85 / 0.25%29%27%3e%3cpath d=%27M0 .5H31.5V32%27/%3e%3c/svg%3e");
|
|
2225
2276
|
}
|