UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines 4.18 kB
import{n as e}from"./rolldown-runtime-DkW27tQK.js";function t(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function n(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1}function r(e,t,n){return t.tokenize=n,n(e,t)}function i(e,t){var i=e.peek();if(i==`'`||i==`"`)return e.next(),r(e,t,o(i,`string`));if(i==`/`){if(e.next(),e.eat(`*`))return r(e,t,a);if(e.eat(`/`))return e.skipToEnd(),`comment`;e.backUp(1)}else if(/[+\-\d\.]/.test(i)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return`number`}else if(i==`#`)return e.next(),i=e.peek(),i==`"`?(e.next(),r(e,t,o(`"`,`string`))):i==`b`?(e.next(),e.eatWhile(/[01]/),`number`):i==`x`?(e.next(),e.eatWhile(/[\da-f]/i),`number`):i==`o`?(e.next(),e.eatWhile(/[0-7]/),`number`):i==`#`?(e.next(),`punctuation`):i==`[`||i==`(`?(e.next(),`bracket`):e.match(/f|t|all-keys|include|key|next|rest/i)?`atom`:(e.eatWhile(/[-a-zA-Z]/),`error`);else if(i==`~`)return e.next(),i=e.peek(),i==`=`?(e.next(),i=e.peek(),i==`=`&&e.next(),`operator`):`operator`;else if(i==`:`){if(e.next(),i=e.peek(),i==`=`)return e.next(),`operator`;if(i==`:`)return e.next(),`punctuation`}else if(`[](){}`.indexOf(i)!=-1)return e.next(),`bracket`;else if(`.,`.indexOf(i)!=-1)return e.next(),`punctuation`;else if(e.match(`end`))return`keyword`;for(var s in u)if(u.hasOwnProperty(s)){var c=u[s];if(c instanceof Array&&n(c,function(t){return e.match(t)})||e.match(c))return d[s]}return/[+\-*\/^=<>&|]/.test(i)?(e.next(),`operator`):e.match(`define`)?`def`:(e.eatWhile(/[\w\-]/),p.hasOwnProperty(e.current())?m[e.current()]:e.current().match(l)?`variable`:(e.next(),`variableName.standard`))}function a(e,t){for(var n=!1,r=!1,a=0,o;o=e.next();){if(o==`/`&&n){if(a>0)a--;else{t.tokenize=i;break}}else o==`*`&&r&&a++;n=o==`*`,r=o==`/`}return`comment`}function o(e,t){return function(n,r){for(var a=!1,o,s=!1;(o=n.next())!=null;){if(o==e&&!a){s=!0;break}a=!a&&o==`\\`}return(s||!a)&&(r.tokenize=i),t}}var s,c,l,u,d,f,p,m,h;function g(){return(g=e((()=>{for(var e in s={unnamedDefinition:[`interface`],namedDefinition:[`module`,`library`,`macro`,`C-struct`,`C-union`,`C-function`,`C-callable-wrapper`],typeParameterizedDefinition:[`class`,`C-subtype`,`C-mapped-subtype`],otherParameterizedDefinition:[`method`,`function`,`C-variable`,`C-address`],constantSimpleDefinition:[`constant`],variableSimpleDefinition:[`variable`],otherSimpleDefinition:[`generic`,`domain`,`C-pointer-type`,`table`],statement:[`if`,`block`,`begin`,`method`,`case`,`for`,`select`,`when`,`unless`,`until`,`while`,`iterate`,`profiling`,`dynamic-bind`],separator:[`finally`,`exception`,`cleanup`,`else`,`elseif`,`afterwards`],other:[`above`,`below`,`by`,`from`,`handler`,`in`,`instance`,`let`,`local`,`otherwise`,`slot`,`subclass`,`then`,`to`,`keyed-by`,`virtual`],signalingCalls:[`signal`,`error`,`cerror`,`break`,`check-type`,`abort`]},s.otherDefinition=s.unnamedDefinition.concat(s.namedDefinition).concat(s.otherParameterizedDefinition),s.definition=s.typeParameterizedDefinition.concat(s.otherDefinition),s.parameterizedDefinition=s.typeParameterizedDefinition.concat(s.otherParameterizedDefinition),s.simpleDefinition=s.constantSimpleDefinition.concat(s.variableSimpleDefinition).concat(s.otherSimpleDefinition),s.keyword=s.statement.concat(s.separator).concat(s.other),c=`[-_a-zA-Z?!*@<>$%]+`,l=RegExp(`^`+c),u={symbolKeyword:c+`:`,symbolClass:`<`+c+`>`,symbolGlobal:`\\*`+c+`\\*`,symbolConstant:`\\$`+c},d={symbolKeyword:`atom`,symbolClass:`tag`,symbolGlobal:`variableName.standard`,symbolConstant:`variableName.constant`},u)u.hasOwnProperty(e)&&(u[e]=RegExp(`^`+u[e]));u.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/],f={},f.keyword=`keyword`,f.definition=`def`,f.simpleDefinition=`def`,f.signalingCalls=`builtin`,p={},m={},t([`keyword`,`definition`,`simpleDefinition`,`signalingCalls`],function(e){t(s[e],function(t){p[t]=e,m[t]=f[e]})}),h={name:`dylan`,startState:function(){return{tokenize:i,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:`/*`,close:`*/`}}}}})))()}g();export{h as dylan}; //# sourceMappingURL=dylan-7WzUunzT.js.map