"use strict";(self.webpackChunksc_markdown=self.webpackChunksc_markdown||[]).push([[916],{916(d,o,a){var u;function r(n,e){return u=e,n}function c(n,e){var l=n.next();if("<"!=l||!n.eat("!")){if("<"==l&&n.eat("?"))return e.tokenize=function s(n,e){return function(l,i){for(;!l.eol();){if(l.match(e)){i.tokenize=c;break}l.next()}return n}}("meta","?>"),r("meta",l);if("#"==l&&n.eatWhile(/[\w]/))return r("atom","tag");if("|"==l)return r("keyword","separator");if(l.match(/[\(\)\[\]\-\.,\+\?>]/))return r(null,l);if(l.match(/[\[\]]/))return r("rule",l);if('"'==l||"'"==l)return e.tokenize=function f(n){return function(e,l){for(var t,i=!1;null!=(t=e.next());){if(t==n&&!i){l.tokenize=c;break}i=!i&&"\\"==t}return r("string","tag")}}(l),e.tokenize(n,e);if(n.eatWhile(/[a-zA-Z\?\+\d]/)){var i=n.current();return null!==i.substr(i.length-1,i.length).match(/\?|\+/)&&n.backUp(1),r("tag","tag")}return"%"==l||"*"==l?r("number","number"):(n.eatWhile(/[\w\\\-_%.{,]/),r(null,null))}return n.eatWhile(/[\-]/)?(e.tokenize=k,k(n,e)):n.eatWhile(/[\w]/)?r("keyword","doindent"):void 0}function k(n,e){for(var i,l=0;null!=(i=n.next());){if(l>=2&&">"==i){e.tokenize=c;break}l="-"==i?l+1:0}return r("comment","comment")}a.d(o,{dtd:()=>h});const h={name:"dtd",startState:function(){return{tokenize:c,baseIndent:0,stack:[]}},token:function(n,e){if(n.eatSpace())return null;var l=e.tokenize(n,e),i=e.stack[e.stack.length-1];return"["==n.current()||"doindent"===u||"["==u?e.stack.push("rule"):"endtag"===u?e.stack[e.stack.length-1]="endtag":"]"==n.current()||"]"==u||">"==u&&"rule"==i?e.stack.pop():"["==u&&e.stack.push("["),l},indent:function(n,e,l){var i=n.stack.length;return"]"===e.charAt(0)?i--:">"===e.substr(e.length-1,e.length)&&("<"===e.substr(0,1)||"doindent"==u&&e.length>1||("doindent"==u?i--:">"==u&&e.length>1||"tag"==u&&">"!==e||("tag"==u&&"rule"==n.stack[n.stack.length-1]?i--:"tag"==u?i++:">"===e&&"rule"==n.stack[n.stack.length-1]&&">"===u?i--:">"===e&&"rule"==n.stack[n.stack.length-1]||("<"!==e.substr(0,1)&&">"===e.substr(0,1)?i-=1:">"===e||(i-=1)))),(null==u||"]"==u)&&i--),n.baseIndent+i*l.unit},languageData:{indentOnInput:/^\s*[\]>]$/}}}}]);