import{C as z}from"./index.991aca48.entry.js";function w(l,s){for(var t=0;t<s.length;t++){const u=s[t];if(typeof u!="string"&&!Array.isArray(u)){for(const c in u)if(c!=="default"&&!(c in l)){const a=Object.getOwnPropertyDescriptor(u,c);a&&Object.defineProperty(l,c,a.get?a:{enumerable:!0,get:()=>u[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var k={};(function(l,s){(function(t){t(z)})(function(t){t.defineMode("yacas",function(u,c){function a(e){for(var r={},n=e.split(" "),o=0;o<n.length;++o)r[n[o]]=!0;return r}var v=a("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),b="(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)",f="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",g=new RegExp(b),h=new RegExp(f),m=new RegExp(f+"?_"+f),y=new RegExp(f+"\\s*\\(");function p(e,r){var n;if(n=e.next(),n==='"')return r.tokenize=S,r.tokenize(e,r);if(n==="/"){if(e.eat("*"))return r.tokenize=T,r.tokenize(e,r);if(e.eat("/"))return e.skipToEnd(),"comment"}e.backUp(1);var o=e.match(/^(\w+)\s*\(/,!1);o!==null&&v.hasOwnProperty(o[1])&&r.scopes.push("bodied");var i=d(r);if(i==="bodied"&&n==="["&&r.scopes.pop(),(n==="["||n==="{"||n==="(")&&r.scopes.push(n),i=d(r),(i==="["&&n==="]"||i==="{"&&n==="}"||i==="("&&n===")")&&r.scopes.pop(),n===";")for(;i==="bodied";)r.scopes.pop(),i=d(r);return e.match(/\d+ *#/,!0,!1)?"qualifier":e.match(g,!0,!1)?"number":e.match(m,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(y,!0,!1)?(e.backUp(1),"variable"):e.match(h,!0,!1)?"variable-2":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function S(e,r){for(var n,o=!1,i=!1;(n=e.next())!=null;){if(n==='"'&&!i){o=!0;break}i=!i&&n==="\\"}return o&&!i&&(r.tokenize=p),"string"}function T(e,r){for(var n,o;(o=e.next())!=null;){if(n==="*"&&o==="/"){r.tokenize=p;break}n=o}return"comment"}function d(e){var r=null;return e.scopes.length>0&&(r=e.scopes[e.scopes.length-1]),r}return{startState:function(){return{tokenize:p,scopes:[]}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},indent:function(e,r){if(e.tokenize!==p&&e.tokenize!==null)return t.Pass;var n=0;return(r==="]"||r==="];"||r==="}"||r==="};"||r===");")&&(n=-1),(e.scopes.length+n)*u.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),t.defineMIME("text/x-yacas",{name:"yacas"})})})();const E=w({__proto__:null,default:k},[k]);export{E as y};
