vendor: 8,538 bytes, lines 1-5
1import{a as V}from"./chunk-NFEKNJA6.js";import{a as $}from"./chunk-TIS3VNEO.js";import{e as Q,j as F}from"./chunk-HAPUDHDK.js";var Y=Q(P=>{F();(function(){var U;(function(){"use strict";var N=[,,function(m){function u(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}u.prototype.clone_empty=function(){var e=new u(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},u.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},u.prototype.has_match=function(e){for(var _=this.__items.length-1;_>=0;_--)if(this.__items[_].match(e))return!0;return!1},u.prototype.set_indent=function(e,_){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=_||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},u.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)},u.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},u.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},u.prototype.is_empty=function(){return this.__items.length===0},u.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},u.prototype.push=function(e){this.__items.push(e);var _=e.lastIndexOf(` 2`);_!==-1?this.__character_count=e.length-_:this.__character_count+=e.length},u.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},u.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},u.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},u.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},u.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e};function a(e,_){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),_=_||"",e.indent_level>0&&(_=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=_,this.__base_string_length=_.length}a.prototype.get_indent_size=function(e,_){var i=this.__base_string_length;return _=_||0,e<0&&(i=0),i+=e*this.__indent_size,i+=_,i},a.prototype.get_indent_string=function(e,_){var i=this.__base_string;return _=_||0,e<0&&(e=0,i=""),_+=e*this.__indent_size,this.__ensure_cache(_),i+=this.__cache[_],i},a.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var e=this.__cache.length,_=0,i="";this.__indent_size&&e>=this.__indent_size&&(_=Math.floor(e/this.__indent_size),e-=_*this.__indent_size,i=new Array(_+1).join(this.__indent_string)),e&&(i+=new Array(e+1).join(" ")),this.__cache.push(i)};function r(e,_){this.__indent_cache=new a(e,_),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new u(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}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(e,_){return this.__indent_cache.get_indent_string(e,_)},r.prototype.get_indent_size=function(e,_){return this.__indent_cache.get_indent_size(e,_)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var _=this.current_line.pop();_&&(_[_.length-1]===` 3`&&(_=_.replace(/\n+$/g,"")),this.current_line.push(_)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(` 4`);return e!==` 5`&&(i=i.replace(/[\n]/g,e)),i},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,_){return e=e||0,_=_||0,this.next_line.set_indent(e,_),this.__lines.length>1?(this.current_line.set_indent(e,_),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var _=0;_<e.newlines;_++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},r.prototype.remove_indent=function(e){for(var _=this.__lines.length;e<_;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(e){for(e=e===void 0?!1:e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,_){for(var i=this.__lines.length-2;i>=0;){var o=this.__lines[i];if(o.is_empty())break;if(o.item(0).indexOf(e)!==0&&o.item(-1)!==_){this.__lines.splice(i+1,0,new u(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},m.exports.Output=r},function(m){function u(a,r,e,_){this.type=a,this.text=r,this.comments_before=null,this.newlines=e||0,this.whitespace_before=_||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}m.exports.Token=u},,,function(m){function u(e,_){this.raw_options=a(e,_),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","
5none","angular","django","erb","handlebars","php","smarty"],["auto"])}u.prototype._get_array=function(e,_){var i=this.raw_options[e],o=_||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(o=i.concat()):typeof i=="string"&&(o=i.split(/[^a-zA-Z0-9_\/\-]+/)),o},u.prototype._get_boolean=function(e,_){var i=this.raw_options[e],o=i===void 0?!!_:!!i;return o},u.prototype._get_characters=function(e,_){var i=this.raw_options[e],o=_||"";return typeof i=="string"&&(o=i.replace(/\\r/,"\r").replace(/\\n/,` 6`).replace(/\\t/," ")),o},u.prototype._get_number=function(e,_){var i=this.raw_options[e];_=parseInt(_,10),isNaN(_)&&(_=0);var o=parseInt(i,10);return isNaN(o)&&(o=_),o},u.prototype._get_selection=function(e,_,i){var o=this._get_selection_list(e,_,i);if(o.length!==1)throw new Error("Invalid Option Value: The option '"+e+`' can only be one of the following values: 7`+_+` 8You passed in: '`+this.raw_options[e]+"'");return o[0]},u.prototype._get_selection_list=function(e,_,i){if(!_||_.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[_[0]],!this._is_valid_selection(i,_))throw new Error("Invalid Default Value!");var o=this._get_array(e,i);if(!this._is_valid_selection(o,_))throw new Error("Invalid Option Value: The option '"+e+`' can contain only the following values: 9`+_+` 10You passed in: '`+this.raw_options[e]+"'");return o},u.prototype._is_valid_selection=function(e,_){return e.length&&_.length&&!e.some(function(i){return _.indexOf(i)===-1})};function a(e,_){var i={};e=r(e);var o;for(o in e)o!==_&&(i[o]=e[o]);if(_&&e[_])for(o in e[_])i[o]=e[_][o];return i}function r(e){var _={},i;for(i in e){var o=i.replace(/-/g,"_");_[o]=e[i]}return _}m.exports.Options=u,m.exports.normalizeOpts=r,m.exports.mergeOpts=a},,function(m){var u=RegExp.prototype.hasOwnProperty("sticky");function a(r){this.__input=r||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var r=null;return this.hasNext()&&(r=this.__input.charAt(this.__position),this.__position+=1),r},a.prototype.peek=function(r){var e=null;return r=r||0,r+=this.__position,r>=0&&r<this.__input_length&&(e=this.__input.charAt(r)),e},a.prototype.__match=function(r,e){r.lastIndex=e;var _=r.exec(this.__input);return _&&!(u&&r.sticky)&&_.index!==e&&(_=null),_},a.prototype.test=function(r,e){return e=e||0,e+=this.__position,e>=0&&e<this.__input_length?!!this.__match(r,e):!1},a.prototype.testChar=function(r,e){var _=this.peek(e);return r.lastIndex=0,_!==null&&r.test(_)},a.prototype.match=function(r){var e=this.__match(r,this.__position);return e?this.__position+=e[0].length:e=null,e},a.prototype.read=function(r,e,_){var i="",o;return r&&(o=this.match(r),o&&(i+=o[0])),e&&(o||!r)&&(i+=this.readUntil(e,_)),i},a.prototype.readUntil=function(r,e){var _="",i=this.__position;r.lastIndex=this.__position;var o=r.exec(this.__input);return o?(i=o.index,e&&(i+=o[0].length)):i=this.__input_length,_=this.__input.substring(this.__position,i),this.__position=i,_},a.prototype.readUntilAfter=function(r){return this.readUntil(r,!0)},a.prototype.get_regexp=function(r,e){var _=null,i="g";return e&&u&&(i="y"),typeof r=="string"&&r!==""?_=new RegExp(r,i):r&&(_=new RegExp(r.source,i)),_},a.prototype.get_literal_regexp=function(r){return RegExp(r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(r){var e=this.__position,_=this.readUntilAfter(r);return this.__position=e,_},a.prototype.lookBack=function(r){var e=this.__position-1;return e>=r.length&&this.__input.substring(e-r.length,e).toLowerCase()===r},m.exports.InputScanner=a},function(m,u,a){var r=a(8).InputScanner,e=a(3).Token,_=a(10).TokenStream,i=a(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},p=function(d,v){this._input=new r(d),this._options=v||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};p.prototype.tokenize=function(){this._input.restart(),this.__tokens=new _,this._reset();for(var d,v=new e(o.START,""),c=null,f=[],h=new _;v.type!==o.EOF;){for(d=this._get_next_token(v,c);this._is_comment(d);)h.add(d),d=this._get_next_token(v,c);h.isEmpty()||(d.comments_before=h,h=new _),d.parent=c,this._is_opening(d)?(f.push(c),c=d):c&&this._is_closing(d,c)&&(d.opened=c,c.closed=d,c=f.pop(),d.parent=c),d.previous=v,v.next=d,this.__tokens.add(d),v=d}return this.__tokens},p.prototype._is_first_token=function(){return this.__tokens.isEmpty()},p.prototype._reset=function(){},p.prototype._get_next_token=function(d,v){this._readWhitespace();var c=this._input.read(/.+/g);return c?this._create_token(o.RAW,c):this._create_token(o.EOF,"")},p.prototype._is_comment=function(d){return!1},p.prototype._is_opening=function(d){return!1},p.prototype._is_closing=function(d,v){return!1},p.prototype._create_token=function(d,v){var c=new e(d,v,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return c},p.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},m.exports.Tokenizer=p,m.exports.TOKEN=o},function(m){function u(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}u.prototype.restart=function(){this.__position=0},u.prototype.isEmpty=function(){return this.__tokens_length===0},u.prototype.hasNext=function(){return this.__position<this.__tokens_length},u.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},u.prototype.peek=function(a){var r=null;return a=a||0,a+=this.__position,a>
vendor: 27,168 bytes, lines 10-20
10=0&&a<this.__tokens_length&&(r=this.__tokens[a]),r},u.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},m.exports.TokenStream=u},function(m,u,a){var r=a(12).Pattern;function e(_,i){r.call(this,_,i),i?this._line_regexp=this._input.get_regexp(i._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}e.prototype=new r,e.prototype.__set_whitespace_patterns=function(_,i){_+="\\t ",i+="\\n\\r",this._match_pattern=this._input.get_regexp("["+_+i+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+i+"]")},e.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var _=this._input.read(this._match_pattern);if(_===" ")this.whitespace_before_token=" ";else if(_){var i=this.__split(this._newline_regexp,_);this.newline_count=i.length-1,this.whitespace_before_token=i[this.newline_count]}return _},e.prototype.matching=function(_,i){var o=this._create();return o.__set_whitespace_patterns(_,i),o._update(),o},e.prototype._create=function(){return new e(this._input,this)},e.prototype.__split=function(_,i){_.lastIndex=0;for(var o=0,p=[],d=_.exec(i);d;)p.push(i.substring(o,d.index)),o=d.index+d[0].length,d=_.exec(i);return o<i.length?p.push(i.substring(o,i.length)):p.push(""),p},m.exports.WhitespacePattern=e},function(m){function u(a,r){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,r&&(this._starting_pattern=this._input.get_regexp(r._starting_pattern,!0),this._match_pattern=this._input.get_regexp(r._match_pattern,!0),this._until_pattern=this._input.get_regexp(r._until_pattern),this._until_after=r._until_after)}u.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},u.prototype.read_match=function(){return this._input.match(this._match_pattern)},u.prototype.until_after=function(a){var r=this._create();return r._until_after=!0,r._until_pattern=this._input.get_regexp(a),r._update(),r},u.prototype.until=function(a){var r=this._create();return r._until_after=!1,r._until_pattern=this._input.get_regexp(a),r._update(),r},u.prototype.starting_with=function(a){var r=this._create();return r._starting_pattern=this._input.get_regexp(a,!0),r._update(),r},u.prototype.matching=function(a){var r=this._create();return r._match_pattern=this._input.get_regexp(a,!0),r._update(),r},u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){},m.exports.Pattern=u},function(m){function u(a,r){a=typeof a=="string"?a:a.source,r=typeof r=="string"?r:r.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+r,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+r,"g")}u.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var r={};this.__directive_pattern.lastIndex=0;for(var e=this.__directive_pattern.exec(a);e;)r[e[1]]=e[2],e=this.__directive_pattern.exec(a);return r},u.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},m.exports.Directives=u},function(m,u,a){var r=a(12).Pattern,e={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function _(i,o){r.call(this,i,o),this.__template_pattern=null,this._disabled=Object.assign({},e),this._excluded=Object.assign({},e),o&&(this.__template_pattern=this._input.get_regexp(o.__template_pattern),this._excluded=Object.assign(this._excluded,o._excluded),this._disabled=Object.assign(this._disabled,o._disabled));var p=new r(i);this.__patterns={handlebars_comment:p.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:p.starting_with(/{{{/).until_after(/}}}/),handlebars:p.starting_with(/{{/).until_after(/}}/),php:p.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:p.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:p.starting_with(/{%/).until_after(/%}/),django_value:p.starting_with(/{{/).until_after(/}}/),django_comment:p.starting_with(/{#/).until_after(/#}/),smarty:p.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:p.starting_with(/{\*/).until_after(/\*}/),smarty_literal:p.starting_with(/{literal}/).until_after(/{\/literal}/)}}_.prototype=new r,_.prototype._create=function(){return new _(this._input,this)},_.prototype._update=function(){this.__set_templated_pattern()},_.prototype.disable=function(i){var o=this._create();return o._disabled[i]=!0,o._update(),o},_.prototype.read_options=function(i){var o=this._create();for(var p in e)o._disabled[p]=i.templating.indexOf(p)===-1;return o._update(),o},_.prototype.exclude=function(i){var o=this._create();return o._excluded[i]=!0,o._update(),o},_.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var o=this._read_template();o;)this._match_pattern?o+=this._input.read(this._match_pattern):o+=this._input.readUntil(this.__template_pattern),i+=o,o=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},_.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},_.prototype._read_template=function(){var i="",o=this._input.peek();if(o==="<"){var p=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&p==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&p==="%"&&(i=i||this.__patterns.erb.read())}else o==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},m.exports.TemplatablePattern=_},,,,function(m,u,a){var r=a(19).Beautifier,e=a(20).Options;function _(i,o,p,d){var v=new r(i,o,p,d);return v.beautify()}m.exports=_,m.exports.defaultOptions=function(){return new e}},function(m,u,a){var r=a(20).Options,e=a(2).Output,_=a(21).Tokenizer,i=a(21).TOKEN,o=/\r\n|[\r\n]/,p=/\r\n|[\r\n]/g,d=function(n,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=n.max_preserve_newlines,this.preserve_newlines=n.preserve_newlines,this._output=new e(n,t)};d.prototype.current_line_has_match=function(n){return this._output.current_line.has_match(n)},d.prototype.set_space_before_token=function(n,t){this._output.space_before_token=n,this._output.non_breaking_space=t},d.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},d.prototype.add_raw_token=function(n){this._output.add_raw_token(n)},d.prototype.print_preserved_newlines=function(n){var t=0;n.type!==i.TEXT&&n.previous.type!==i.TEXT&&(t=n.newlines?1:0),this.preserve_newlines&&(t=n.newlines<this.max_preserve_newlines+1?n.newlines:this.max_preserve_newlines+1);for(var s=0;s<t;s++)this.print_newline(s>0);return t!==0},d.prototype.traverse_whitespace=function(n){return n.whitespace_before||n.newlines?(this.print_preserved_newlines(n)||(this._output.space_before_token=!0),!0):!1},d.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},d.prototype.print_newline=function(n){this._output.add_new_line(n)},d.prototype.print_token=function(n){n.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(n.text))},d.prototype.indent=function(){this.indent_level++},d.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},d.prototype.get_full_indent=function(n){return n=this.indent_level+(n||0),n<1?"":this._output.get_indent_string(n)};var v=function(n){for(var t=null,s=n.next;s.type!==i.EOF&&n.closed!==s;){if(s.type===i.ATTRIBUTE&&s.text==="type"){s.next&&s.next.type===i.EQUALS&&s.next.next&&s.next.next.type===i.VALUE&&(t=s.next.next.text);break}s=s.next}return t},c=function(n,t){var s=null,w=null;return t.closed?(n==="script"?s="text/javascript":n==="style"&&(s="text/css"),s=v(t)||s,s.search("text/css")>-1?w="css":s.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?w="javascript":s.search(/(text|application|dojo)\/(x-)?(html)/)>-1?w="html":s.search(/test\/null/)>-1&&(w="null"),w):null};function f(n,t){return t.indexOf(n)!==-1}function h(n,t,s){this.parent=n||null,this.tag=t?t.tag_name:"",this.indent_level=s||0,this.parser_token=t||null}function l(n){this._printer=n,this._current_frame=null}l.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},l.prototype.record_tag=function(n){var t=new h(this._current_frame,n,this._printer.indent_level);this._current_frame=t},l.prototype._try_pop_frame=function(n){var t=null;return n&&(t=n.parser_token,this._printer.indent_level=n.indent_level,this._current_frame=n.parent),t},l.prototype._get_frame=function(n,t){for(var s=this._current_frame;s&&n.indexOf(s.tag)===-1;){if(t&&t.indexOf(s.tag)!==-1){s=null;break}s=s.parent}return s},l.prototype.try_pop=function(n,t){var s=this._get_frame([n],t);return this._try_pop_frame(s)},l.prototype.indent_to_tag=function(n){var t=this._get_frame(n);t&&(this._printer.indent_level=t.indent_level)};function y(n,t,s,w){this._source_text=n||"",t=t||{},this._js_beautify=s,this._css_beautify=w,this._tag_stack=null;var g=new r(t,"html");this._options=g,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}y.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var n=this._source_text,t=this._options.eol;this._options.eol==="auto"&&(t=` 11`,n&&o.test(n)&&(t=n.match(o)[0])),n=n.replace(p,` 12`);var s=n.match(/^[\t ]*/)[0],w={text:"",type:""},g=new E,b=new d(this._options,s),O=new _(n,this._options).tokenize();this._tag_stack=new l(b);for(var T=null,x=O.next();x.type!==i.EOF;)x.type===i.TAG_OPEN||x.type===i.COMMENT?(T=this._handle_tag_open(b,x,g,w,O),g=T):x.type===i.ATTRIBUTE||x.type===i.EQUALS||x.type===i.VALUE||x.type===i.TEXT&&!g.tag_complete?T=this._handle_inside_tag(b,x,g,w):x.type===i.TAG_CLOSE?T=this._handle_tag_close(b,x,g):x.type===i.TEXT?T=this._handle_text(b,x,g):x.type===i.CONTROL_FLOW_OPEN?T=this._handle_control_flow_open(b,x):x.type===i.CONTROL_FLOW_CLOSE?T=this._handle_control_flow_close(b,x):b.add_raw_token(x),w=T,x=O.next();var j=b._output.get_code(t);return j},y.prototype._handle_control_flow_open=function(n,t){var s={text:t.text,type:t.type};return n.set_space_before_token(t.newlines||t.whitespace_before!=="",!0),t.newlines?n.print_preserved_newlines(t):n.set_space_before_token(t.newlines||t.whitespace_before!=="",!0),n.print_token(t),n.indent(),s},y.prototype._handle_control_flow_close=function(n,t){var s={text:t.text,type:t.type};return n.deindent(),t.newlines?n.print_preserved_newlines(t):n.set_space_before_token(t.newlines||t.whitespace_before!=="",!0),n.print_token(t),s},y.prototype._handle_tag_close=function(n,t,s){var w={text:t.text,type:t.type};return n.alignment_size=0,s.tag_complete=!0,n.set_space_before_token(t.newlines||t.whitespace_before!=="",!0),s.is_unformatted?n.add_raw_token(t):(s.tag_start_char==="<"&&(n.set_space_before_token(t.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&s.has_wrapped_attrs&&n.print_newline(!1)),n.print_token(t)),s.indent_content&&!(s.is_unformatted||s.is_content_unformatted)&&(n.indent(),s.indent_content=!1),!s.is_inline_element&&!(s.is_unformatted||s.is_content_unformatted)&&n.set_wrap_point(),w},y.prototype._handle_inside_tag=function(n,t,s,w){var g=s.has_wrapped_attrs,b={text:t.text,type:t.type};return n.set_space_before_token(t.newlines||t.whitespace_before!=="",!0),s.is_unformatted?n.add_raw_token(t):s.tag_start_char==="{"&&t.type===i.TEXT?n.print_preserved_newlines(t)?(t.newlines=0,n.add_raw_token(t)):n.print_token(t):(t.type===i.ATTRIBUTE?n.set_space_before_token(!0):(t.type===i.EQUALS||t.type===i.VALUE&&t.previous.type===i.EQUALS)&&n.set_space_before_token(!1),t.type===i.ATTRIBUTE&&s.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(n.traverse_whitespace(t),g=g||t.newlines!==0),this._is_wrap_attributes_force&&s.attr_count>=this._options.wrap_attributes_min_attrs&&(w.type!==i.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(n.print_newline(!1),g=!0)),n.print_token(t),g=g||n.previous_token_wrapped(),s.has_wrapped_attrs=g),b},y.prototype._handle_text=function(n,t,s){var w={text:t.text,type:"TK_CONTENT"};return s.custom_beautifier_name?this._print_custom_beatifier_text(n,t,s):s.is_unformatted||s.is_content_unformatted?n.add_raw_token(t):(n.traverse_whitespace(t),n.print_token(t)),w},y.prototype._print_custom_beatifier_text=function(n,t,s){var w=this;if(t.text!==""){var g=t.text,b,O=1,T="",x="";s.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?b=this._js_beautify:s.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?b=this._css_beautify:s.custom_beautifier_name==="html"&&(b=function(M,X){var D=new y(M,X,w._js_beautify,w._css_beautify);return D.beautify()}),this._options.indent_scripts==="keep"?O=0:this._options.indent_scripts==="separate"&&(O=-n.indent_level);var j=n.get_full_indent(O);if(g=g.replace(/\n[ \t]*$/,""),s.custom_beautifier_name!=="html"&&g[0]==="<"&&g.match(/^(<!--|<!\[CDATA\[)/)){var A=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(g);if(!A){n.add_raw_token(t);return}T=j+A[1]+` 13`,g=A[4],A[5]&&(x=j+A[5]),g=g.replace(/\n[ \t]*$/,""),(A[2]||A[3].indexOf(` 14`)!==-1)&&(A=A[3].match(/[ \t]+$/),A&&(t.whitespace_before=A[0]))}if(g)if(b){var W=function(){this.eol=` 15`};W.prototype=this._options.raw_options;var B=new W;g=b(j+g,B)}else{var K=t.whitespace_before;K&&(g=g.replace(new RegExp(` 16(`+K+")?","g"),` 17`)),g=j+g.replace(/\n/g,` 18`+j)}T&&(g?g=T+g+` 19`+x:g=T+x),n.print_newline(!1),g&&(t.text=g,t.whitespace_before="",t.newlines=0,n.add_raw_token(t),n.print_newline(!0))}},y.prototype._handle_tag_open=function(n,t,s,w,g){var b=this._get_tag_open_token(t);if((s.is_unformatted||s.is_content_unformatted)&&!s.is_empty_element&&t.type===i.TAG_OPEN&&!b.is_start_tag?(n.add_raw_token(t),b.start_tag_token=this._tag_stack.try_pop(b.tag_name)):(n.traverse_whitespace(t),this._set_tag_position(n,t,b,s,w),b.is_inline_element||n.set_wrap_point(),n.print_token(t)),b.is_start_tag&&this._is_wrap_attributes_force){var O=0,T;do T=g.peek(O),T.type===i.ATTRIBUTE&&(b.attr_count+=1),O+=1;while(T.type!==i.EOF&&T.type!==i.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(b.alignment_size=t.text.length+1),!b.tag_complete&&!b.is_unformatted&&(n.alignment_size=b.alignment_size),b};var E=function(n,t){if(this.parent=n||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!t)this.tag_complete=!0;else{var s;this.tag_start_char=t.text[0],this.text=t.text,this.tag_start_char==="<"?(s=t.text.match(/^<([^\s>]*)/),this.tag_check=s?s[1]:""):(s=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=s?s[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&t.next!==null?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===i.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&t.closed.text==="/>";var w=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(w=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(w)))}};y.prototype._get_tag_open_token=function(n){var t=new E(this._tag_stack.get_parser_token(),n);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||f(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&f(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&f(t.tag_check,this._options.content_unformatted),t.is_inline_element=f(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||t.tag_start_char==="{",t},y.prototype._set_tag_position=function(n,t,s,w,g){if(s.is_empty_element||(s.is_end_tag?s.start_tag_token=this._tag_stack.try_pop(s.tag_name):(this._do_optional_end_element(s)&&(s.is_inline_element||n.print_newline(!1)),this._tag_stack.record_tag(s),(s.tag_name==="script"||s.tag_name==="style")&&!(s.is_unformatted||s.is_content_unformatted)&&(s.custom_beautifier_name=c(s.tag_check,t)))),f(s.tag_check,this._options.extra_liners)&&(n.print_newline(!1),n._output.just_added_blankline()||n.print_newline(!0)),s.is_empty_element){if(s.tag_start_char==="{"&&s.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),s.indent_content=!0;var b=n.current_line_has_match(/{{#if/);b||n.print_newline(!1)}s.tag_name==="!--"&&g.type===i.TAG_CLOSE&&w.is_end_tag&&s.text.indexOf(` 20`)===-1||(s.is_inline_element||s.is_unformatted||n.print_newline(!1),this._calcluate_parent_multiline(n,s))}else if(s.is_end_tag){var O=!1;O=s.start_tag_token&&s.start_tag_token.multiline_content,O=O||!s.is_inline_element&&!(w.is_inline_element||w.is_unformatted)&&!(g.type===i.TAG_CLOSE&&s.start_tag_token===w)&&g.type!=="TK_CONTENT",(s.is_content_unformatted||s.is_unformatted)&&(O=!1),O&&n.print_newline(!1)}else s.indent_content=!s.custom_beautifier_name,s.tag_start_char==="<"&&(s.tag_name==="html"?s.indent_content=this._options.indent_inner_html:s.tag_name==="head"?s.indent_content=this._options.indent_head_inner_html:s.tag_name==="body"&&(s.indent_content=this._options.indent_body_inner_html)),!(s.is_inline_element||s.is_unformatted)&&(g.type!=="TK_CONTENT"||s.is_content_unformatted)&&n.print_newline(!1),this._calcluate_parent_multiline(n,s)},y.prototype._calcluate_parent_multiline=function(n,t){t.parent&&n._output.just_added_newline()&&!((t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element)&&(t.parent.multiline_content=!0)};var z=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],k=["a","audio","del","ins","map","noscript","video"];y.prototype._do_optional_end_element=function(n){var t=null;if(!(n.is_empty_element||!n.is_start_tag||!n.parent)){if(n.tag_name==="body")t=t||this._tag_stack.try_pop("head");else if(n.tag_name==="li")t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(n.tag_name==="dd"||n.tag_name==="dt")t=t||this._tag_stack.try_pop("dt",["dl"]),t=t||this._tag_stack.try_pop("dd",["dl"]);else if(n.parent.tag_name==="p"&&z.indexOf(n.tag_name)!==-1){var s=n.parent.parent;(!s||k.indexOf(s.tag_name)===-1)&&(t=t||this._tag_stack.try_pop("p"))}else n.tag_name==="rp"||n.tag_name==="rt"?(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]),t=t||this._tag_stack.try_pop("rp",["ruby","rtc"])):n.tag_name==="optgroup"?t=t||this._tag_stack.try_pop("optgroup",["select"]):n.tag_name==="option"?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):n.tag_name==="colgroup"?t=t||this._tag_stack.try_pop("caption",["table"]):n.tag_name==="thead"?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"])):n.tag_name==="tbody"||n.tag_name==="tfoot"?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("thead",["table"]),t=t||this._tag_stack.try_pop("tbody",["table"])):n.tag_name==="tr"?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(n.tag_name==="th"||n.tag_name==="td")&&(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),t=t||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return n.parent=this._tag_stack.get_parser_token(),t}},m.exports.Beautifier=y},function(m,u,a){var r=a(6).Options;function e(_){r.call(this,_,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}e.prototype=new r,m.exports.Options=e},function(m,u,a){var r=a(9).Tokenizer,e=a(9).TOKEN,_=a(13).Directives,i=a(14).TemplatablePattern,o=a(12).Pattern,p={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:e.START,RAW:e.RAW,EOF:e.EOF},d=new _(/<\!--/,/-->/),v=function(c,f){r.call(this,c,f),this._current_tag_name="";var h=new i(this._input).read_options(this._options),l=new o(this._input);if(this.__patterns={word:h.until(/[\n\r\t <]/),word_control_flow_close_excluded:h.until(/[\n\r\t <}]/),single_quote:h.until_after(/'/),double_quote:h.until_after(/"/),attribute:h.until(/[\n\r\t =>]|\/>/),element_name:h.until(/[\n\r\t >\/]/),angular_control_flow_start:l.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:l.starting_with(/{{!--/).until_after(/--}}/),handlebars:l.starting_with(/{{/).until_after(/}}/),handlebars_open:l.until(/[\n\r\t }]/),handlebars_raw_close:l.until(/}}/),comment:l.starting_with(/<!--/).until_after(/-->/),cdata:l.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:l.starting_with(/<!\[/).until_after(/]>/),processing:l.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var y=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=l.matching(y).until_after(y)}};v.prototype=new r,v.prototype._is_comment=function(c){return!1},v.prototype._is_opening=function(c){return c.type===p.TAG_OPEN||c.type===p.CONTROL_FLOW_OPEN},v.prototype._is_closing=function(c,f){return c.type===p.TAG_CLOSE&&f&&((c.text===">"||c.text==="/>")&&f.text[0]==="<"||c.text==="}}"&&f.text[0]==="{"&&f.text[1]==="{")||c.type===p.CONTROL_FLOW_CLOSE&&c.text==="}"&&f.text.endsWith("{")},v.prototype._reset=function(){this._current_tag_name=""},v.prototype._get_next_token=function(c,f){var h=null;this._readWhitespace();var l=this._input.peek();return l===null?this._create_token(p.EOF,""):(h=h||this._read_open_handlebars(l,f),h=h||this._read_attribute(l,c,f),h=h||this._read_close(l,f),h=h||this._read_control_flows(l,f),h=h||this._read_raw_content(l,c,f),h=h||this._read_content_word(l,f),h=h||this._read_comment_or_cdata(l),h=h||this._read_processing(l),h=h||this._read_open(l,f),h=h||this._create_token(p.UNKNOWN,this._input.next()),h)},v.prototype._read_comment_or_cdata=function(c){var f=null,h=null,l=null;if(c==="<"){var y=this._input.peek(1);y==="!"&&(h=this.__patterns.comment.read(),h?(l=d.get_directives(h),l&&l.
20ignore==="start"&&(h+=d.readIgnored(this._input))):h=this.__patterns.cdata.read()),h&&(f=this._create_token(p.COMMENT,h),f.directives=l)}return f},v.prototype._read_processing=function(c){var f=null,h=null,l=null;if(c==="<"){var y=this._input.peek(1);(y==="!"||y==="?")&&(h=this.__patterns.conditional_comment.read(),h=h||this.__patterns.processing.read()),h&&(f=this._create_token(p.COMMENT,h),f.directives=l)}return f},v.prototype._read_open=function(c,f){var h=null,l=null;return(!f||f.type===p.CONTROL_FLOW_OPEN)&&c==="<"&&(h=this._input.next(),this._input.peek()==="/"&&(h+=this._input.next()),h+=this.__patterns.element_name.read(),l=this._create_token(p.TAG_OPEN,h)),l},v.prototype._read_open_handlebars=function(c,f){var h=null,l=null;return(!f||f.type===p.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&c==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(h=this.__patterns.handlebars_comment.read(),h=h||this.__patterns.handlebars.read(),l=this._create_token(p.COMMENT,h)):(h=this.__patterns.handlebars_open.read(),l=this._create_token(p.TAG_OPEN,h))),l},v.prototype._read_control_flows=function(c,f){var h="",l=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return l;if(c==="@"){if(h=this.__patterns.angular_control_flow_start.read(),h==="")return l;for(var y=h.endsWith("(")?1:0,E=0;!(h.endsWith("{")&&y===E);){var z=this._input.next();if(z===null)break;z==="("?y++:z===")"&&E++,h+=z}l=this._create_token(p.CONTROL_FLOW_OPEN,h)}else c==="}"&&f&&f.type===p.CONTROL_FLOW_OPEN&&(h=this._input.next(),l=this._create_token(p.CONTROL_FLOW_CLOSE,h));return l},v.prototype._read_close=function(c,f){var h=null,l=null;return f&&f.type===p.TAG_OPEN&&(f.text[0]==="<"&&(c===">"||c==="/"&&this._input.peek(1)===">")?(h=this._input.next(),c==="/"&&(h+=this._input.next()),l=this._create_token(p.TAG_CLOSE,h)):f.text[0]==="{"&&c==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),l=this._create_token(p.TAG_CLOSE,"}}"))),l},v.prototype._read_attribute=function(c,f,h){var l=null,y="";if(h&&h.text[0]==="<")if(c==="=")l=this._create_token(p.EQUALS,this._input.next());else if(c==='"'||c==="'"){var E=this._input.next();c==='"'?E+=this.__patterns.double_quote.read():E+=this.__patterns.single_quote.read(),l=this._create_token(p.VALUE,E)}else y=this.__patterns.attribute.read(),y&&(f.type===p.EQUALS?l=this._create_token(p.VALUE,y):l=this._create_token(p.ATTRIBUTE,y));return l},v.prototype._is_content_unformatted=function(c){return this._options.void_elements.indexOf(c)===-1&&(this._options.content_unformatted.indexOf(c)!==-1||this._options.unformatted.indexOf(c)!==-1)},v.prototype._read_raw_content=function(c,f,h){var l="";if(h&&h.text[0]==="{")l=this.__patterns.handlebars_raw_close.read();else if(f.type===p.TAG_CLOSE&&f.opened.text[0]==="<"&&f.text[0]!=="/"){var y=f.opened.text.substr(1).toLowerCase();if(y==="script"||y==="style"){var E=this._read_comment_or_cdata(c);if(E)return E.type=p.TEXT,E;l=this._input.readUntil(new RegExp("</"+y+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(y)&&(l=this._input.readUntil(new RegExp("</"+y+"[\\n\\r\\t ]*?>","ig")))}return l?this._create_token(p.TEXT,l):null},v.prototype._read_content_word=function(c,f){var h="";if(this._options.unformatted_content_delimiter&&c===this._options.unformatted_content_delimiter[0]&&(h=this.__patterns.unformatted_content_delimiter.read()),h||(h=f&&f.type===p.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),h)return this._create_token(p.TEXT,h)},m.exports.Tokenizer=v,m.exports.TOKEN=p}],L={};function R(m){var u=L[m];if(u!==void 0)return u.exports;var a=L[m]={exports:{}};return N[m](a,a.exports,R),a.exports}var S=R(18);U=S})();var C=U;if(typeof define=="function"&&define.amd)define(["require","./beautify","./beautify-css"],function(N){var L=N("./beautify"),R=N("./beautify-css");return{html_beautify:function(S,m){return C(S,m,L.js_beautify,R.css_beautify)}}});else if(typeof P<"u"){var I=V(),G=$();P.html_beautify=function(N,L){return C(N,L,I.js_beautify,G.css_beautify)}}else typeof window<"u"?window.html_beautify=function(N,L){return C(N,L,window.js_beautify,window.css_beautify)}:typeof global<"u"&&(global.html_beautify=function(N,L){return C(N,L,global.js_beautify,global.css_beautify)})})()});
20export default Y();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.