import{A as k,B as w}from"./index.f4d41e67.entry.js";import{a as O}from"./javascript.32ad0f86.js";function S(l,h){return h.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(a){if(a!=="default"&&!(a in l)){var f=Object.getOwnPropertyDescriptor(i,a);Object.defineProperty(l,a,f.get?f:{enumerable:!0,get:function(){return i[a]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(l,h){(function(i){i(k.exports,w.exports,O.exports)})(function(i){function a(r,c,o,s){this.state=r,this.mode=c,this.depth=o,this.prev=s}function f(r){return new a(i.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&f(r.prev))}i.defineMode("jsx",function(r,c){var o=i.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),s=i.getMode(r,c&&c.base||"javascript");function j(t){var n=t.tagName;t.tagName=null;var e=o.indent(t,"","");return t.tagName=n,e}function g(t,n){return n.context.mode==o?y(t,n,n.context):b(t,n,n.context)}function y(t,n,e){if(e.depth==2)return t.match(/^.*?\*\//)?e.depth=1:t.skipToEnd(),"comment";if(t.peek()=="{"){o.skipAttribute(e.state);var u=j(e.state),p=e.state.context;if(p&&t.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?u-=r.indentUnit:e.prev.state.lexical&&(u=e.prev.state.lexical.indented)}else e.depth==1&&(u+=r.indentUnit);return n.context=new a(i.startState(s,u),s,0,n.context),null}if(e.depth==1){if(t.peek()=="<")return o.skipAttribute(e.state),n.context=new a(i.startState(o,j(e.state)),o,0,n.context),null;if(t.match("//"))return t.skipToEnd(),"comment";if(t.match("/*"))return e.depth=2,g(t,n)}var v=o.token(t,e.state),d=t.current(),m;return/\btag\b/.test(v)?/>$/.test(d)?e.state.context?e.depth=0:n.context=n.context.prev:/^</.test(d)&&(e.depth=1):!v&&(m=d.indexOf("{"))>-1&&t.backUp(d.length-m),v}function b(t,n,e){if(t.peek()=="<"&&s.expressionAllowed(t,e.state))return n.context=new a(i.startState(o,s.indent(e.state,"","")),o,0,n.context),s.skipExpression(e.state),null;var u=s.token(t,e.state);if(!u&&e.depth!=null){var p=t.current();p=="{"?e.depth++:p=="}"&&--e.depth==0&&(n.context=n.context.prev)}return u}return{startState:function(){return{context:new a(i.startState(s),s)}},copyState:function(t){return{context:f(t.context)}},token:g,indent:function(t,n,e){return t.context.mode.indent(t.context.state,n,e)},innerMode:function(t){return t.context}}},"xml","javascript"),i.defineMIME("text/jsx","jsx"),i.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();var T=x.exports,N=S({__proto__:null,default:T},[x.exports]);export{N as j};
