import{j as e}from"./vendor-react-Dp9pL_Wn.js";import{l as s}from"./c6eedc03a-CsEFTfjy.js";import{j as t,c as n}from"./vendor-ant-cds-bBedrtIN.js";import{M as i}from"./vendor-intl-D2wGIp4M.js";const a="relative [clip-path:polygon(0_0,calc(100%-16px)_0,100%_16px,100%_100%,0_100%)]";function r(){return e.jsxs("span",{"aria-hidden":!0,className:"pointer-events-none absolute right-0 top-0 z-[1] h-4 w-4",children:[e.jsx("span",{className:"absolute inset-0 [filter:drop-shadow(-1px_2px_1px_var(--cds-shadow-color))_drop-shadow(-3px_3px_5px_var(--cds-shadow-color))]",children:e.jsx("span",{className:"absolute inset-0 rounded-bl-[2px] bg-surface-2 group-hover:bg-surface-1 [clip-path:polygon(0_0,100%_100%,0_100%)]"})}),e.jsx("span",{className:"absolute inset-0 bg-surface-2 group-hover:bg-surface-1 [clip-path:polygon(15px_14.5px,16.5px_16px,15px_16px)]"}),e.jsx("span",{className:"absolute inset-0 bg-alpha-2 [clip-path:polygon(0px_-1px,17px_16px,14.59px_16px,0px_1.41px)]"})]})}function o({count:s=6,columns:o="two",variant:c="text",silent:d=!1,dogEar:p=!1,withSourceBadge:x=!1,className:g}){return e.jsxs("div",{role:d?void 0:"status","aria-hidden":d||void 0,className:g,children:[!d&&e.jsx("span",{className:"sr-only",children:e.jsx(i,{defaultMessage:"Loading",id:"iFsDVRnIHW"})}),e.jsx("div",{"aria-hidden":!0,className:"three"===o?"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3":"grid auto-rows-fr grid-cols-1 gap-3 md:grid-cols-2 md:gap-6",children:Array.from({length:s}).map((s,i)=>"thumbnail"===c?e.jsxs("div",{className:n("flex flex-col rounded-card shadow-card-ring [--cds-ring-inner:1px] [--cds-ring-outer:0px]",p?"bg-surface-2":"bg-surface-1",p&&a),children:[p?e.jsx(l,{withSourceBadge:x}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-[164px]"}),e.jsx("div",{className:"mx-px border-t border-alpha-1"}),e.jsxs("div",{className:"flex flex-col gap-xs p-lg pt-md",children:[e.jsx("div",{className:"flex h-5 items-center",children:e.jsx(t,{height:14,width:"70%"})}),e.jsx("div",{className:"flex h-4 items-center",children:e.jsx(t,{height:11,width:"50%"})})]})]}),p&&e.jsx(r,{})]},i):e.jsxs("div",{className:"flex h-[140px] flex-col gap-md rounded-card bg-surface-1 p-lg shadow-card-ring [--cds-ring-inner:1px] [--cds-ring-outer:0px]",children:[e.jsx(t,{height:16,width:"60%"}),e.jsxs("div",{className:"flex flex-grow flex-col gap-xs",children:[e.jsx(t,{height:12}),e.jsx(t,{height:12,width:"85%"})]}),e.jsx(t,{height:10,width:100,className:"mt-auto"})]},i))})]})}function l({withSourceBadge:i}){const a=s("__gb__2387839550"),r=a?"text-caption":"text-footnote",o=e.jsx("div",{className:"flex h-[1lh] items-center text-body",children:e.jsx(t,{height:14,width:"70%"})}),l=e.jsx("div",{className:n("flex h-[1lh] items-center",r),children:e.jsx(t,{height:11,width:"50%"})});return a?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"relative h-[120px]",children:i&&e.jsx("span",{"data-size":"sm",className:"absolute left-3 top-3 inline-flex h-control-nested w-12 items-center",children:e.jsx(t,{height:"100%",width:"100%",className:"rounded-chip"})})}),e.jsx("div",{className:"mx-px border-t border-alpha-1"}),e.jsxs("div",{className:"flex flex-col gap-xs p-3.5",children:[o,l,e.jsx("div",{className:"flex h-[1lh] items-center text-caption",children:e.jsx(t,{height:11,width:"85%"})})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-[120px]"}),e.jsx("div",{className:"mx-px border-t border-alpha-1"}),e.jsxs("div",{className:"flex flex-col gap-xs p-3.5",children:[o,l,i&&e.jsx("div",{children:e.jsx("span",{"data-size":"sm",className:"inline-flex h-control-nested w-12 items-center align-middle",children:e.jsx(t,{height:"100%",width:"100%",className:"rounded-chip"})})})]})]})}
/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
 * Released under the MIT license
 * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
 *-----------------------------------------------------------------------------*/var c={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}};const d=Object.freeze(Object.defineProperty({__proto__:null,conf:c,language:{defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@keywords":{token:"keyword.$0",next:"@qualified"},"@default":{token:"identifier",next:"@qualified"}}}],{include:"@whitespace"},[/}/,{cases:{"$S2==interpolatedstring":{token:"string.quote",next:"@pop"},"$S2==litinterpstring":{token:"string.quote",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},Symbol.toStringTag,{value:"Module"}));export{r as D,o as L,a,d as c};
