owncast/static/web/_next/static/chunks/1650.84f5dabaecde8ab1.js
2023-11-24 06:25:00 +00:00

1 line
No EOL
6 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1650],{31650:function(e,t,r){function mkVBScript(e){var t="error";function wordRegexp(e){return RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),n=RegExp("^((<>)|(<=)|(>=))"),a=RegExp("^[\\.,]"),o=RegExp("^[\\(\\)]"),i=RegExp("^[A-Za-z][_A-Za-z0-9]*"),c=wordRegexp(["and","or","not","xor","is","mod","eqv","imp"]),u=["WScript","err","debug","RegExp"],b=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);u=u.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(u=u.concat(["server","response","request","session","application"]),b=b.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var s=wordRegexp(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),l=wordRegexp(["true","false","nothing","empty","null"]),d=wordRegexp(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),v=wordRegexp(u),m=wordRegexp(b),p=wordRegexp(["class","sub","select","while","if","function","property","with","for"]),g=wordRegexp(["else","elseif","case"]),h=wordRegexp(["next","loop","wend"]),f=wordRegexp(["end"]),y=wordRegexp(["do"]),x=wordRegexp(["on error resume next","exit"]),k=wordRegexp(["rem"]);function indent(e,t){t.currentIndent++}function dedent(e,t){t.currentIndent--}function tokenBase(e,u){if(e.eatSpace())return null;if("'"===e.peek()||e.match(k))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var b=!1;if(e.match(/^\d*\.\d+/i)?b=!0:e.match(/^\d+\.\d*/)?b=!0:e.match(/^\.\d+/)&&(b=!0),b)return e.eat(/J/i),"number";var w=!1;if(e.match(/^&H[0-9a-f]+/i)?w=!0:e.match(/^&O[0-7]+/i)?w=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),w=!0):e.match(/^0(?![\dx])/i)&&(w=!0),w)return e.eat(/L/i),"number"}return e.match('"')?(u.tokenize=tokenStringFactory(e.current()),u.tokenize(e,u)):e.match(n)||e.match(r)||e.match(c)?"operator":e.match(a)?null:e.match(o)?"bracket":e.match(x)?(u.doInCurrentLine=!0,"keyword"):e.match(y)?(indent(e,u),u.doInCurrentLine=!0,"keyword"):e.match(p)?(u.doInCurrentLine?u.doInCurrentLine=!1:indent(e,u),"keyword"):e.match(g)?"keyword":e.match(f)?(dedent(e,u),dedent(e,u),"keyword"):e.match(h)?(u.doInCurrentLine?u.doInCurrentLine=!1:dedent(e,u),"keyword"):e.match(s)?"keyword":e.match(l)?"atom":e.match(m)?"variableName.special":e.match(d)||e.match(v)?"builtin":e.match(i)?"variable":(e.next(),t)}function tokenStringFactory(e){var t=1==e.length,r="string";return function(n,a){for(;!n.eol();){if(n.eatWhile(/[^'"]/),n.match(e))return a.tokenize=tokenBase,r;n.eat(/['"]/)}return t&&(a.tokenize=tokenBase),r}}function tokenLexer(e,r){var n=r.tokenize(e,r),a=e.current();if("."===a){if(n=r.tokenize(e,r),a=e.current(),!n||"variable"!==n.substr(0,8)&&"builtin"!==n&&"keyword"!==n)return t;("builtin"===n||"keyword"===n)&&(n="variable"),b.indexOf(a.substr(1))>-1&&(n="keyword")}return n}return{name:"vbscript",startState:function(){return{tokenize:tokenBase,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var r=tokenLexer(e,t);return t.lastToken={style:r,content:e.current()},null===r&&(r=null),r},indent:function(e,t,r){var n=t.replace(/^\s+|\s+$/g,"");return n.match(h)||n.match(f)||n.match(g)?r.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*r.unit}}}r.r(t),r.d(t,{vbScript:function(){return n},vbScriptASP:function(){return a}});let n=mkVBScript({}),a=mkVBScript({isASP:!0})}}]);