芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/tvc.mgaplay.com.br/web/dist/vendor/ckeditor/plugins/codemirror/js/beautify-html.js
!function(){var t=function(t){function e(i){if(n[i])return n[i].exports;var _=n[i]={i:i,l:!1,exports:{}};return t[i].call(_.exports,_,_.exports,e),_.l=!0,_.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n||4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var _ in t)e.d(i,_,function(e){return t[e]}.bind(null,_));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=18)}([,,function(t,e,n){function i(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__wrap_point_character_count=this.__wrap_point_index=this.__alignment_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function _(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=Array(t.indent_size+1).join(t.indent_char)),e=e||"",0
t?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;0<=e;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),--t.__character_count),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");this.__character_count=-1!==e?t.length-e:this.__character_count+t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){0
t&&(n=0),(n+=t*this.__indent_size)+(e||0)},_.prototype.get_indent_string=function(t,e){var n=this.__base_string;return 0>t&&(t=0,n=""),e=(e||0)+t*this.__indent_size,this.__ensure_cache(e),n+this.__cache[e]},_.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},_.prototype.__add_column=function(){var t=this.__cache.length,e=0;e="",this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,e=Array(e+1).join(this.__indent_string)),t&&(e+=Array(t+1).join(" ")),this.__cache.push(e)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},r.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},r.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();return e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline(),e=this.__lines.join("\n"),"\n"!==t&&(e=e.replace(/[\n]/g,t)),e},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),1
=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=i},function(t,e,n){var i=n(8).InputScanner,_=n(3).Token,r=n(10).TokenStream,s=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"};e=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)},e.prototype.tokenize=function(){this._input.restart(),this.__tokens=new r,this._reset();for(var t,e=new _(a.START,""),n=null,i=[],s=new r;e.type!==a.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)s.add(t),t=this._get_next_token(e,n);s.isEmpty()||(t.comments_before=s,s=new r),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},e.prototype._is_first_token=function(){return this.__tokens.isEmpty()},e.prototype._reset=function(){},e.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},e.prototype._is_comment=function(t){return!1},e.prototype._is_opening=function(t){return!1},e.prototype._is_closing=function(t,e){return!1},e.prototype._create_token=function(t,e){return new _(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},e.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=e,t.exports.TOKEN=a},function(t,e,n){function i(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return 0===this.__tokens_length},i.prototype.hasNext=function(){return this.__position
/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}var _=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1};i.prototype=new _,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},i.prototype.read_options=function(t){var e,n=this._create();for(e in r)n._disabled[e]=-1===t.templating.indexOf(e);return n._update(),n},i.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},i.prototype.read=function(){for(var t="",e=(t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern),this._read_template());e;)t+=e=this._match_pattern?e+this._input.read(this._match_pattern):e+this._input.readUntil(this.__template_pattern),e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},i.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},i.prototype._read_template=function(){var t="",e=this._input.peek();return"<"===e?(e=this._input.peek(1),this._disabled.php||this._excluded.php||"?"!==e||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==e||(t=t||this.__patterns.erb.read())):"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read()))),t},t.exports.TemplatablePattern=i},,,,function(t,e,n){var i=n(19).Beautifier,_=n(20).Options;t.exports=function(t,e,n,_){return new i(t,e,n,_).beautify()},t.exports.defaultOptions=function(){return new _}},function(t,e,n){function i(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function _(t){this._printer=t,this._current_frame=null}function r(t,e,n,i){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=i,this._tag_stack=null,this._options=new s(e,"html"),this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}var s=n(20).Options,a=n(2).Output,o=n(21).Tokenizer,p=n(21).TOKEN,h=/\r\n|[\r\n]/,u=/\r\n|[\r\n]/g,l=function(t,e){this.alignment_size=this.indent_level=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new a(t,e)};l.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},l.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},l.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},l.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},l.prototype.print_preserved_newlines=function(t){var e=0;for(t.type!==p.TEXT&&t.previous.type!==p.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines
(t=this.indent_level+(t||0))?"":this._output.get_indent_string(t)},_.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},_.prototype.record_tag=function(t){this._current_frame=new i(this._current_frame,t,this._printer.indent_level)},_.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},_.prototype._get_frame=function(t,e){for(var n=this._current_frame;n&&-1===t.indexOf(n.tag);){if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},_.prototype.try_pop=function(t,e){var n=this._get_frame([t],e);return this._try_pop_frame(n)},_.prototype.indent_to_tag=function(t){(t=this._get_frame(t))&&(this._printer.indent_level=t.indent_level)},r.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&h.test(t)&&(e=t.match(h)[0]));var n=(t=t.replace(u,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new c;n=new l(this._options,n),t=new o(t,this._options).tokenize(),this._tag_stack=new _(n);for(var s=null,a=t.next();a.type!==p.EOF;)a.type===p.TAG_OPEN||a.type===p.COMMENT?r=s=this._handle_tag_open(n,a,r,i):a.type===p.ATTRIBUTE||a.type===p.EQUALS||a.type===p.VALUE||a.type===p.TEXT&&!r.tag_complete?s=this._handle_inside_tag(n,a,r,t):a.type===p.TAG_CLOSE?s=this._handle_tag_close(n,a,r):a.type===p.TEXT?s=this._handle_text(n,a,r):n.add_raw_token(a),i=s,a=t.next();return n._output.get_code(e)},r.prototype._handle_tag_close=function(t,e,n){var i={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),i},r.prototype._handle_inside_tag=function(t,e,n,i){var _=n.has_wrapped_attrs,r={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted)t.add_raw_token(e);else if("{"===n.tag_start_char&&e.type===p.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===p.ATTRIBUTE?(t.set_space_before_token(!0),n.attr_count+=1):(e.type===p.EQUALS||e.type===p.VALUE&&e.previous.type===p.EQUALS)&&t.set_space_before_token(!1),e.type===p.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),_=_||0!==e.newlines),this._is_wrap_attributes_force)){var s=1
o&&a.type!==p.EOF&&a.type!==p.TAG_CLOSE);s=!s}s&&(t.print_newline(!1),_=!0)}t.print_token(e),_=_||t.previous_token_wrapped(),n.has_wrapped_attrs=_}return r},r.prototype._handle_text=function(t,e,n){var i={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),i},r.prototype._print_custom_beatifier_text=function(t,e,n){var i=this;if(""!==e.text){var _,s=e.text,a=1,o="",p="";if("javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?_=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?_=this._css_beautify:"html"===n.custom_beautifier_name&&(_=function(t,e){return new r(t,e,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-t.indent_level),a=t.get_full_indent(a),s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(\x3c!--|]*)/))?n[1]:"":(this.tag_check=(n=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/))?n[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===p.COMMENT&&(this.tag_complete=!0),this.tag_name=(this.is_start_tag="/"!==this.tag_check.charAt(0))?this.tag_check:this.tag_check.substr(1),this.is_end_tag=(this.is_end_tag=!this.is_start_tag||e.closed&&"/>"===e.closed.text)||"{"===this.tag_start_char&&(3>this.text.length||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};r.prototype._get_tag_open_token=function(t){return(t=new c(this._tag_stack.get_parser_token(),t)).alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||-1!==this._options.void_elements.indexOf(t.tag_check),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&-1!==this._options.unformatted.indexOf(t.tag_check),t.is_content_unformatted=!t.is_empty_element&&-1!==this._options.content_unformatted.indexOf(t.tag_check),t.is_inline_element=-1!==this._options.inline.indexOf(t.tag_name)||"{"===t.tag_start_char,t},r.prototype._set_tag_position=function(t,e,n,i,_){if(!n.is_empty_element)if(n.is_end_tag)n.start_tag_token=this._tag_stack.try_pop(n.tag_name);else if(this._do_optional_end_element(n)&&(n.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(n),!("script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted)){var r=n.tag_check,s=null,a=null;if(e.closed){"script"===r?s="text/javascript":"style"===r&&(s="text/css"),r=null;for(var o=e.next;o.type!==p.EOF&&e.closed!==o;){if(o.type===p.ATTRIBUTE&&"type"===o.text){o.next&&o.next.type===p.EQUALS&&o.next.next&&o.next.next.type===p.VALUE&&(r=o.next.next.text);break}o=o.next}-1<(s=r||s).search("text/css")?a="css":-1
]|\/>/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:_.starting_with(/{{!--/).until_after(/--}}/),handlebars:_.starting_with(/{{/).until_after(/}}/),handlebars_open:_.until(/[\n\r\t }]/),handlebars_raw_close:_.until(/}}/),comment:_.starting_with(/\x3c!--/).until_after(/--\x3e/),cdata:_.starting_with(//),processing:_.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter&&(n=this._input.get_literal_regexp(this._options.unformatted_content_delimiter),this.__patterns.unformatted_content_delimiter=_.matching(n).until_after(n))},n.prototype=new i,n.prototype._is_comment=function(t){return!1},n.prototype._is_opening=function(t){return t.type===a.TAG_OPEN},n.prototype._is_closing=function(t,e){return t.type===a.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},n.prototype._reset=function(){this._current_tag_name=""},n.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(a.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,e))||this._read_attribute(i,t,e))||this._read_close(i,e))||this._read_raw_content(i,t,e))||this._read_content_word(i))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,e))||this._create_token(a.UNKNOWN,this._input.next())},n.prototype._read_comment_or_cdata=function(t){var e=null,n=null,i=null;return"<"===t&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=o.get_directives(n))&&"start"===i.ignore&&(n+=o.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((e=this._create_token(a.COMMENT,n)).directives=i)),e},n.prototype._read_processing=function(t){var e=null,n=null;return"<"===t&&("!"!==(t=this._input.peek(1))&&"?"!==t||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((e=this._create_token(a.COMMENT,n)).directives=null)),e},n.prototype._read_open=function(t,e){var n=null;return n=null,e||"<"!==t||(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),n=this._create_token(a.TAG_OPEN,n)),n},n.prototype._read_open_handlebars=function(t,e){var n=null;return n=null,!e&&this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),n=this._create_token(a.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),n=this._create_token(a.TAG_OPEN,n))),n},n.prototype._read_close=function(t,e){var n=null;return n=null,e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),n=this._create_token(a.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),n=this._create_token(a.TAG_CLOSE,"}}"))),n},n.prototype._read_attribute=function(t,e,n){var i=null,_="";return n&&"<"===n.text[0]&&("="===t?i=this._create_token(a.EQUALS,this._input.next()):'"'===t||"'"===t?(e=this._input.next(),e='"'===t?e+this.__patterns.double_quote.read():e+this.__patterns.single_quote.read(),i=this._create_token(a.VALUE,e)):(_=this.__patterns.attribute.read())&&(i=e.type===a.EQUALS?this._create_token(a.VALUE,_):this._create_token(a.ATTRIBUTE,_))),i},n.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},n.prototype._read_raw_content=function(t,e,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(e.type===a.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0])if("script"===(e=e.opened.text.substr(1).toLowerCase())||"style"===e){if(t=this._read_comment_or_cdata(t))return t.type=a.TEXT,t;i=this._input.readUntil(new RegExp(""+e+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(e)&&(i=this._input.readUntil(new RegExp(""+e+"[\\n\\r\\t ]*?>","ig")));return i?this._create_token(a.TEXT,i):null},n.prototype._read_content_word=function(t){var e="";if(this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(e=this.__patterns.unformatted_content_delimiter.read()),e||(e=this.__patterns.word.read()),e)return this._create_token(a.TEXT,e)},t.exports.Tokenizer=n,t.exports.TOKEN=a}]);if("function"==typeof define&&define.amd)define(["require","./beautify","./beautify-css"],(function(e){var n=e("./beautify"),i=e("./beautify-css");return{html_beautify:function(e,_){return t(e,_,n.js_beautify,i.css_beautify)}}}));else if("undefined"!=typeof exports){var e=require("./beautify.js"),n=require("./beautify-css.js");exports.html_beautify=function(i,_){return t(i,_,e.js_beautify,n.css_beautify)}}else"undefined"!=typeof window?window.html_beautify=function(e,n){return t(e,n,window.js_beautify,window.css_beautify)}:"undefined"!=typeof global&&(global.html_beautify=function(e,n){return t(e,n,global.js_beautify,global.css_beautify)})}();