import{p as ge}from"./index-DT8qTvyx.js";import{a as Z}from"./codemirror-DDOoZ49x.js";import{a as he}from"./javascript-Cm8k7n1o.js";function be(H,X){for(var u=0;uv[q]})}}}return Object.freeze(Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}))}var ke={exports:{}},oe={exports:{}},ie;function we(){return ie||(ie=1,function(H,X){(function(u){u(Z)})(function(u){var v={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},q={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};u.defineMode("xml",function(O,D){var F=O.indentUnit,b={},$=D.htmlMode?v:q;for(var C in $)b[C]=$[C];for(var C in D)b[C]=D[C];var p,l;function m(t,i){function o(U){return i.tokenize=U,U(t,i)}var s=t.next();if(s=="<")return t.eat("!")?t.eat("[")?t.match("CDATA[")?o(P("atom","]]>")):null:t.match("--")?o(P("comment","-->")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),o(K(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),i.tokenize=P("meta","?>"),"meta"):(p=t.eat("/")?"closeTag":"openTag",i.tokenize=k,"tag bracket");if(s=="&"){var S;return t.eat("#")?t.eat("x")?S=t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):S=t.eatWhile(/[\d]/)&&t.eat(";"):S=t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),S?"atom":"error"}else return t.eatWhile(/[^&<]/),null}m.isInText=!0;function k(t,i){var o=t.next();if(o==">"||o=="/"&&t.eat(">"))return i.tokenize=m,p=o==">"?"endTag":"selfcloseTag","tag bracket";if(o=="=")return p="equals",null;if(o=="<"){i.tokenize=m,i.state=A,i.tagName=i.tagStart=null;var s=i.tokenize(t,i);return s?s+" tag error":"tag error"}else return/[\'\"]/.test(o)?(i.tokenize=z(o),i.stringStartCol=t.column(),i.tokenize(t,i)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function z(t){var i=function(o,s){for(;!o.eol();)if(o.next()==t){s.tokenize=k;break}return"string"};return i.isInAttribute=!0,i}function P(t,i){return function(o,s){for(;!o.eol();){if(o.match(i)){s.tokenize=m;break}o.next()}return t}}function K(t){return function(i,o){for(var s;(s=i.next())!=null;){if(s=="<")return o.tokenize=K(t+1),o.tokenize(i,o);if(s==">")if(t==1){o.tokenize=m;break}else return o.tokenize=K(t-1),o.tokenize(i,o)}return"meta"}}function j(t){return t&&t.toLowerCase()}function f(t,i,o){this.prev=t.context,this.tagName=i||"",this.indent=t.indented,this.startOfLine=o,(b.doNotIndent.hasOwnProperty(i)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function h(t){t.context&&(t.context=t.context.prev)}function _(t,i){for(var o;;){if(!t.context||(o=t.context.tagName,!b.contextGrabbers.hasOwnProperty(j(o))||!b.contextGrabbers[j(o)].hasOwnProperty(j(i))))return;h(t)}}function A(t,i,o){return t=="openTag"?(o.tagStart=i.column(),I):t=="closeTag"?L:A}function I(t,i,o){return t=="word"?(o.tagName=i.current(),l="tag",a):b.allowMissingTagName&&t=="endTag"?(l="tag bracket",a(t,i,o)):(l="error",I)}function L(t,i,o){if(t=="word"){var s=i.current();return o.context&&o.context.tagName!=s&&b.implicitlyClosed.hasOwnProperty(j(o.context.tagName))&&h(o),o.context&&o.context.tagName==s||b.matchClosing===!1?(l="tag",T):(l="tag error",c)}else return b.allowMissingTagName&&t=="endTag"?(l="tag bracket",T(t,i,o)):(l="error",c)}function T(t,i,o){return t!="endTag"?(l="error",T):(h(o),A)}function c(t,i,o){return l="error",T(t,i,o)}function a(t,i,o){if(t=="word")return l="attribute",M;if(t=="endTag"||t=="selfcloseTag"){var s=o.tagName,S=o.tagStart;return o.tagName=o.tagStart=null,t=="selfcloseTag"||b.autoSelfClosers.hasOwnProperty(j(s))?_(o,s):(_(o,s),o.context=new f(o,s,S==o.indented)),A}return l="error",a}function M(t,i,o){return t=="equals"?N:(b.allowMissing||(l="error"),a(t,i,o))}function N(t,i,o){return t=="string"?B:t=="word"&&b.allowUnquoted?(l="string",a):(l="error",a(t,i,o))}function B(t,i,o){return t=="string"?B:a(t,i,o)}return{startState:function(t){var i={tokenize:m,state:A,indented:t||0,tagName:null,tagStart:null,context:null};return t!=null&&(i.baseIndent=t),i},token:function(t,i){if(!i.tagName&&t.sol()&&(i.indented=t.indentation()),t.eatSpace())return null;p=null;var o=i.tokenize(t,i);return(o||p)&&o!="comment"&&(l=null,i.state=i.state(p||o,t,i),l&&(o=l=="error"?o+" error":l)),o},indent:function(t,i,o){var s=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+F;if(s&&s.noIndent)return u.Pass;if(t.tokenize!=k&&t.tokenize!=m)return o?o.match(/^(\s*)/)[0].length:0;if(t.tagName)return b.multilineTagIndentPastTag!==!1?t.tagStart+t.tagName.length+2:t.tagStart+F*(b.multilineTagIndentFactor||1);if(b.alignCDATA&&/$/,blockCommentStart:"",configuration:b.htmlMode?"html":"xml",helperType:b.htmlMode?"html":"xml",skipAttribute:function(t){t.state==N&&(t.state=a)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:t.type=="closeTag"}:null},xmlCurrentContext:function(t){for(var i=[],o=t.context;o;o=o.prev)i.push(o.tagName);return i.reverse()}}}),u.defineMIME("text/xml","xml"),u.defineMIME("application/xml","xml"),u.mimeModes.hasOwnProperty("text/html")||u.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),oe.exports}var ae={exports:{}},le;function ve(){return le||(le=1,function(H,X){(function(u){u(Z)})(function(u){u.defineMode("css",function(c,a){var M=a.inline;a.propertyKeywords||(a=u.resolveMode("text/css"));var N=c.indentUnit,B=a.tokenHooks,t=a.documentTypes||{},i=a.mediaTypes||{},o=a.mediaFeatures||{},s=a.mediaValueKeywords||{},S=a.propertyKeywords||{},U=a.nonStandardPropertyKeywords||{},ce=a.fontProperties||{},ue=a.counterDescriptors||{},J=a.colorKeywords||{},Q=a.valueKeywords||{},R=a.allowNested,de=a.lineComment,pe=a.supportsAtComponent===!0,ee=c.highlightNonStandardPropertyKeywords!==!1,Y,d;function x(e,n){return Y=n,e}function fe(e,n){var r=e.next();if(B[r]){var g=B[r](e,n);if(g!==!1)return g}if(r=="@")return e.eatWhile(/[\w\\\-]/),x("def",e.current());if(r=="="||(r=="~"||r=="|")&&e.eat("="))return x(null,"compare");if(r=='"'||r=="'")return n.tokenize=re(r),n.tokenize(e,n);if(r=="#")return e.eatWhile(/[\w\\\-]/),x("atom","hash");if(r=="!")return e.match(/^\s*\w*/),x("keyword","important");if(/\d/.test(r)||r=="."&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),x("number","unit");if(r==="-"){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),x("number","unit");if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable");if(e.match(/^\w+-/))return x("meta","meta")}else return/[,+>*\/]/.test(r)?x(null,"select-op"):r=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(n.tokenize=me),x("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null)}function re(e){return function(n,r){for(var g=!1,E;(E=n.next())!=null;){if(E==e&&!g){e==")"&&n.backUp(1);break}g=!g&&E=="\\"}return(E==e||!g&&e!=")")&&(r.tokenize=null),x("string","string")}}function me(e,n){return e.next(),e.match(/^\s*[\"\')]/,!1)?n.tokenize=null:n.tokenize=re(")"),x(null,"(")}function te(e,n,r){this.type=e,this.indent=n,this.prev=r}function y(e,n,r,g){return e.context=new te(r,n.indentation()+(g===!1?0:N),e.context),r}function W(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function G(e,n,r){return w[r.context.type](e,n,r)}function V(e,n,r,g){for(var E=g||1;E>0;E--)r.context=r.context.prev;return G(e,n,r)}function ne(e){var n=e.current().toLowerCase();Q.hasOwnProperty(n)?d="atom":J.hasOwnProperty(n)?d="keyword":d="variable"}var w={};return w.top=function(e,n,r){if(e=="{")return y(r,n,"block");if(e=="}"&&r.context.prev)return W(r);if(pe&&/@component/i.test(e))return y(r,n,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return y(r,n,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return y(r,n,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&e.charAt(0)=="@")return y(r,n,"at");if(e=="hash")d="builtin";else if(e=="word")d="tag";else{if(e=="variable-definition")return"maybeprop";if(e=="interpolation")return y(r,n,"interpolation");if(e==":")return"pseudo";if(R&&e=="(")return y(r,n,"parens")}return r.context.type},w.block=function(e,n,r){if(e=="word"){var g=n.current().toLowerCase();return S.hasOwnProperty(g)?(d="property","maybeprop"):U.hasOwnProperty(g)?(d=ee?"string-2":"property","maybeprop"):R?(d=n.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(d+=" error","maybeprop")}else return e=="meta"?"block":!R&&(e=="hash"||e=="qualifier")?(d="error","block"):w.top(e,n,r)},w.maybeprop=function(e,n,r){return e==":"?y(r,n,"prop"):G(e,n,r)},w.prop=function(e,n,r){if(e==";")return W(r);if(e=="{"&&R)return y(r,n,"propBlock");if(e=="}"||e=="{")return V(e,n,r);if(e=="(")return y(r,n,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(n.current()))d+=" error";else if(e=="word")ne(n);else if(e=="interpolation")return y(r,n,"interpolation");return"prop"},w.propBlock=function(e,n,r){return e=="}"?W(r):e=="word"?(d="property","maybeprop"):r.context.type},w.parens=function(e,n,r){return e=="{"||e=="}"?V(e,n,r):e==")"?W(r):e=="("?y(r,n,"parens"):e=="interpolation"?y(r,n,"interpolation"):(e=="word"&&ne(n),"parens")},w.pseudo=function(e,n,r){return e=="meta"?"pseudo":e=="word"?(d="variable-3",r.context.type):G(e,n,r)},w.documentTypes=function(e,n,r){return e=="word"&&t.hasOwnProperty(n.current())?(d="tag",r.context.type):w.atBlock(e,n,r)},w.atBlock=function(e,n,r){if(e=="(")return y(r,n,"atBlock_parens");if(e=="}"||e==";")return V(e,n,r);if(e=="{")return W(r)&&y(r,n,R?"block":"top");if(e=="interpolation")return y(r,n,"interpolation");if(e=="word"){var g=n.current().toLowerCase();g=="only"||g=="not"||g=="and"||g=="or"?d="keyword":i.hasOwnProperty(g)?d="attribute":o.hasOwnProperty(g)?d="property":s.hasOwnProperty(g)?d="keyword":S.hasOwnProperty(g)?d="property":U.hasOwnProperty(g)?d=ee?"string-2":"property":Q.hasOwnProperty(g)?d="atom":J.hasOwnProperty(g)?d="keyword":d="error"}return r.context.type},w.atComponentBlock=function(e,n,r){return e=="}"?V(e,n,r):e=="{"?W(r)&&y(r,n,R?"block":"top",!1):(e=="word"&&(d="error"),r.context.type)},w.atBlock_parens=function(e,n,r){return e==")"?W(r):e=="{"||e=="}"?V(e,n,r,2):w.atBlock(e,n,r)},w.restricted_atBlock_before=function(e,n,r){return e=="{"?y(r,n,"restricted_atBlock"):e=="word"&&r.stateArg=="@counter-style"?(d="variable","restricted_atBlock_before"):G(e,n,r)},w.restricted_atBlock=function(e,n,r){return e=="}"?(r.stateArg=null,W(r)):e=="word"?(r.stateArg=="@font-face"&&!ce.hasOwnProperty(n.current().toLowerCase())||r.stateArg=="@counter-style"&&!ue.hasOwnProperty(n.current().toLowerCase())?d="error":d="property","maybeprop"):"restricted_atBlock"},w.keyframes=function(e,n,r){return e=="word"?(d="variable","keyframes"):e=="{"?y(r,n,"top"):G(e,n,r)},w.at=function(e,n,r){return e==";"?W(r):e=="{"||e=="}"?V(e,n,r):(e=="word"?d="tag":e=="hash"&&(d="builtin"),"at")},w.interpolation=function(e,n,r){return e=="}"?W(r):e=="{"||e==";"?V(e,n,r):(e=="word"?d="variable":e!="variable"&&e!="("&&e!=")"&&(d="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:M?"block":"top",stateArg:null,context:new te(M?"block":"top",e||0,null)}},token:function(e,n){if(!n.tokenize&&e.eatSpace())return null;var r=(n.tokenize||fe)(e,n);return r&&typeof r=="object"&&(Y=r[1],r=r[0]),d=r,Y!="comment"&&(n.state=w[n.state](Y,e,n)),d},indent:function(e,n){var r=e.context,g=n&&n.charAt(0),E=r.indent;return r.type=="prop"&&(g=="}"||g==")")&&(r=r.prev),r.prev&&(g=="}"&&(r.type=="block"||r.type=="top"||r.type=="interpolation"||r.type=="restricted_atBlock")?(r=r.prev,E=r.indent):(g==")"&&(r.type=="parens"||r.type=="atBlock_parens")||g=="{"&&(r.type=="at"||r.type=="atBlock"))&&(E=Math.max(0,r.indent-N))),E},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:de,fold:"brace"}});function v(c){for(var a={},M=0;M-1?p.backUp(k.length-z):k.match(/<\/?$/)&&(p.backUp(k.length),p.match(l,!1)||p.match(k)),m}var O={};function D(p){var l=O[p];return l||(O[p]=new RegExp("\\s+"+p+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function F(p,l){var m=p.match(D(l));return m?/^\s*(.*?)\s*$/.exec(m[2])[1]:""}function b(p,l){return new RegExp((l?"^":"")+"","i")}function $(p,l){for(var m in p)for(var k=l[m]||(l[m]=[]),z=p[m],P=z.length-1;P>=0;P--)k.unshift(z[P])}function C(p,l){for(var m=0;m=0;K--)k.script.unshift(["type",P[K].matches,P[K].mode]);function j(f,h){var _=m.token(f,h.htmlState),A=/\btag\b/.test(_),I;if(A&&!/[<>\s\/]/.test(f.current())&&(I=h.htmlState.tagName&&h.htmlState.tagName.toLowerCase())&&k.hasOwnProperty(I))h.inTag=I+" ";else if(h.inTag&&A&&/>$/.test(f.current())){var L=/^([\S]+) (.*)/.exec(h.inTag);h.inTag=null;var T=f.current()==">"&&C(k[L[1]],L[2]),c=u.getMode(p,T),a=b(L[1],!0),M=b(L[1],!1);h.token=function(N,B){return N.match(a,!1)?(B.token=j,B.localState=B.localMode=null,null):q(N,M,B.localMode.token(N,B.localState))},h.localMode=c,h.localState=u.startState(c,m.indent(h.htmlState,"",""))}else h.inTag&&(h.inTag+=f.current(),f.eol()&&(h.inTag+=" "));return _}return{startState:function(){var f=u.startState(m);return{token:j,inTag:null,localMode:null,localState:null,htmlState:f}},copyState:function(f){var h;return f.localState&&(h=u.copyState(f.localMode,f.localState)),{token:f.token,inTag:f.inTag,localMode:f.localMode,localState:h,htmlState:u.copyState(m,f.htmlState)}},token:function(f,h){return h.token(f,h)},indent:function(f,h,_){return!f.localMode||/^\s*<\//.test(h)?m.indent(f.htmlState,h,_):f.localMode.indent?f.localMode.indent(f.localState,h,_):u.Pass},innerMode:function(f){return{state:f.localState||f.htmlState,mode:f.localMode||m}}}},"xml","javascript","css"),u.defineMIME("text/html","htmlmixed")})})();var se=ke.exports;const ye=ge(se),Se=be({__proto__:null,default:ye},[se]);export{Se as h};