owncast/static/web/_next/static/chunks/3465.77dee7ec6cc7e947.js
2023-01-30 17:44:49 +00:00

1 line
No EOL
2.4 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3465],{43465:function(e,r,t){function n(e){for(var r={},t=e.split(" "),n=0;n<t.length;++n)r[t[n]]=!0;return r}t.r(r),t.d(r,{tcl:function(){return c}});var a=n("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),o=n("if elseif else and not or eq ne in ni for foreach while switch"),i=/[+\-*&%=<>!?^\/\|]/;function l(e,r,t){return r.tokenize=t,t(e,r)}function u(e,r){var t=r.beforeParams;r.beforeParams=!1;var n=e.next();if(('"'==n||"'"==n)&&r.inParams)return l(e,r,function(e,r){for(var t,a=!1,o=!1;null!=(t=e.next());){if(t==n&&!a){o=!0;break}a=!a&&"\\"==t}return o&&(r.tokenize=u),"string"});if(/[\[\]{}\(\),;\.]/.test(n))return"("==n&&t?r.inParams=!0:")"==n&&(r.inParams=!1),null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if("#"==n)return e.eat("*")?l(e,r,f):"#"==n&&e.match(/ *\[ *\[/)?l(e,r,s):(e.skipToEnd(),"comment");if('"'==n)return e.skipTo(/"/),"comment";if("$"==n)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),r.beforeParams=!0,"builtin";if(i.test(n))return e.eatWhile(i),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var c=e.current().toLowerCase();return a&&a.propertyIsEnumerable(c)?"keyword":o&&o.propertyIsEnumerable(c)?(r.beforeParams=!0,"keyword"):null}function f(e,r){for(var t,n=!1;t=e.next();){if("#"==t&&n){r.tokenize=u;break}n="*"==t}return"comment"}function s(e,r){for(var t,n=0;t=e.next();){if("#"==t&&2==n){r.tokenize=u;break}"]"==t?n++:" "!=t&&(n=0)}return"meta"}let c={name:"tcl",startState:function(){return{tokenize:u,beforeParams:!1,inParams:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},languageData:{commentTokens:{line:"#"}}}}}]);