import{g as e}from"./vendor-react-Dp9pL_Wn.js";import{a as r}from"./c8f5e99bb-DGMeGty8.js";function s(e,r){for(var s=0;s<r.length;s++){const o=r[s];if("string"!=typeof o&&!Array.isArray(o))for(const r in o)if("default"!==r&&!(r in e)){const s=Object.getOwnPropertyDescriptor(o,r);s&&Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>o[r]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var o,c;var t=function(){if(c)return o;c=1;var e=r();function s(r){r.register(e),function(e){var r=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,s=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(e,o){for(var c=0;c<o;c++)e=e.replace(/<self>/g,function(){return"(?:"+e+")"});return e.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+s+")").replace(/<comment>/g,"(?:"+r+")")}var c=o(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),t=o(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),a=o(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),n=o(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),u=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,i=/(?!\d)[^\s>\/=$<%]+/.source+u+/\s*\/?>/.source,l=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+u+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+i+"|"+o(/<\1/.source+u+/\s*>/.source+"(?:"+/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+i+"|<self>)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/</.source+i+")";e.languages.cshtml=e.languages.extend("markup",{});var g={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:e.languages.insertBefore("csharp","string",{html:{pattern:RegExp(l),greedy:!0,inside:e.languages.cshtml}},{csharp:e.languages.extend("csharp",{})})};e.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[a,/(?:code|functions)\s*/.source+a,/(?:for|foreach|lock|switch|using|while)\s*/.source+c+/\s*/.source+a,/do\s*/.source+a+/\s*while\s*/.source+c+/(?:\s*;)?/.source,/try\s*/.source+a+/\s*catch\s*/.source+c+/\s*/.source+a+/\s*finally\s*/.source+a,/if\s*/.source+c+/\s*/.source+a+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+c+")?"+/\s*/.source+a+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:g}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:g}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+c+")(?:"+/[?!]?\.\w+\b/.source+"|"+c+"|"+t+"|"+n+c+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:g}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),e.languages.razor=e.languages.cshtml}(r)}return o=s,s.displayName="cshtml",s.aliases=["razor"],o}();const a=s({__proto__:null,default:e(t)},[t]);export{a as c};
