"use strict";(self.webpackChunksc_components=self.webpackChunksc_components||[]).push([[5479],{25479(D,y,v){function o(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}v.d(y,{ttcn:()=>B});const i={name:"ttcn",keywords:o("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),builtin:o("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),types:o("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),timerOps:o("read running start stop timeout"),portOps:o("call catch check clear getcall getreply halt raise receive reply send trigger"),configOps:o("create connect disconnect done kill killed map unmap"),verdictOps:o("getverdict setverdict"),sutOps:o("action"),functionOps:o("apply derefers refers"),verdictConsts:o("error fail inconc none pass"),booleanConsts:o("true false"),otherConsts:o("null NULL omit"),visibilityModifiers:o("private public friend"),templateMatch:o("complement ifpresent subset superset permutation"),multiLineStrings:!0};var f=[];function a(e){if(e)for(var t in e)e.hasOwnProperty(t)&&f.push(t)}a(i.keywords),a(i.builtin),a(i.timerOps),a(i.portOps);var s,g=i.keywords||{},x=i.builtin||{},k=i.timerOps||{},w=i.portOps||{},O=i.configOps||{},C=i.verdictOps||{},E=i.sutOps||{},I=i.functionOps||{},_=i.verdictConsts||{},L=i.booleanConsts||{},z=i.otherConsts||{},S=i.types||{},M=i.visibilityModifiers||{},W=i.templateMatch||{},T=i.multiLineStrings,N=!1!==i.indentStatements,d=/[+\-*&@=<>!\/]/;function P(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=function $(e){return function(t,n){for(var u,r=!1,b=!1;null!=(u=t.next());){if(u==e&&!r){var l=t.peek();l&&("b"==(l=l.toLowerCase())||"h"==l||"o"==l)&&t.next(),b=!0;break}r=!r&&"\\"==u}return(b||!(r||T))&&(n.tokenize=null),"string"}}(n),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(n))return s=n,"punctuation";if("#"==n)return e.skipToEnd(),"atom";if("%"==n)return e.eatWhile(/\b/),"atom";if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if("/"==n){if(e.eat("*"))return t.tokenize=m,m(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(d.test(n))return"@"==n&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(d),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current();return g.propertyIsEnumerable(r)?"keyword":x.propertyIsEnumerable(r)?"builtin":k.propertyIsEnumerable(r)||O.propertyIsEnumerable(r)||C.propertyIsEnumerable(r)||w.propertyIsEnumerable(r)||E.propertyIsEnumerable(r)||I.propertyIsEnumerable(r)?"def":_.propertyIsEnumerable(r)||L.propertyIsEnumerable(r)||z.propertyIsEnumerable(r)?"string":S.propertyIsEnumerable(r)?"typeName.standard":M.propertyIsEnumerable(r)?"modifier":W.propertyIsEnumerable(r)?"atom":"variable"}function m(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function h(e,t,n,r,u){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=u}function p(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new h(r,t,n,null,e.context)}function c(e){var t=e.context.type;return(")"==t||"]"==t||"}"==t)&&(e.indented=e.context.indented),e.context=e.context.prev}const B={name:"ttcn",startState:function(){return{tokenize:null,context:new h(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;s=null;var r=(t.tokenize||P)(e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=s&&":"!=s&&","!=s||"statement"!=n.type)if("{"==s)p(t,e.column(),"}");else if("["==s)p(t,e.column(),"]");else if("("==s)p(t,e.column(),")");else if("}"==s){for(;"statement"==n.type;)n=c(t);for("}"==n.type&&(n=c(t));"statement"==n.type;)n=c(t)}else s==n.type?c(t):N&&(("}"==n.type||"top"==n.type)&&";"!=s||"statement"==n.type&&"newstatement"==s)&&p(t,e.column(),"statement");else c(t);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:f}}}}]);