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