0);return 0!==t},o.prototype.traverse_whitespace=function(e){return(!!e.whitespace_before||!!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},o.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},o.prototype.print_newline=function(e){this._output.add_new_line(e)},o.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},o.prototype.indent=function(){this.indent_level++},o.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},o.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var s=function(e){for(var t=null,n=e.next;n.type!==r.EOF&&e.closed!==n;){if(n.type===r.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===r.EQUALS&&n.next.next&&n.next.next.type===r.VALUE&&(t=n.next.next.text);break}n=n.next}return t},l=function(e,t){var n=null,r=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),(n=s(t)||n).search("text/css")>-1?r="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?r="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?r="html":n.search(/test\/null/)>-1&&(r="null"),r):null};function u(e,t){return -1!==t.indexOf(e)}function c(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function d(e){this._printer=e,this._current_frame=null}function E(t,n,r,a){this._source_text=t||"",n=n||{},this._js_beautify=r,this._css_beautify=a,this._tag_stack=null;var i=new e(n,"html");this._options=i,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}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(e){var t=new c(this._current_frame,e,this._printer.indent_level);this._current_frame=t},d.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},d.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},d.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},d.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t=`
`,e&&a.test(e)&&(t=e.match(a)[0]));var s=(e=e.replace(i,`
`)).match(/^[\t ]*/)[0],l={text:"",type:""},u=new f,c=new o(this._options,s),E=new n(e,this._options).tokenize();this._tag_stack=new d(c);for(var p=null,h=E.next();h.type!==r.EOF;)h.type===r.TAG_OPEN||h.type===r.COMMENT?u=p=this._handle_tag_open(c,h,u,l,E):h.type!==r.ATTRIBUTE&&h.type!==r.EQUALS&&h.type!==r.VALUE&&(h.type!==r.TEXT||u.tag_complete)?h.type===r.TAG_CLOSE?p=this._handle_tag_close(c,h,u):h.type===r.TEXT?p=this._handle_text(c,h,u):h.type===r.CONTROL_FLOW_OPEN?p=this._handle_control_flow_open(c,h):h.type===r.CONTROL_FLOW_CLOSE?p=this._handle_control_flow_close(c,h):c.add_raw_token(h):p=this._handle_inside_tag(c,h,u,l),l=p,h=E.next();return c._output.get_code(t)},E.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},E.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},E.prototype._handle_tag_close=function(e,t,n){var r={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),n.indent_content&&!(n.is_unformatted||n.is_content_unformatted)&&(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),r},E.prototype._handle_inside_tag=function(e,t,n,a){var i=n.has_wrapped_attrs,o={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===r.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===r.ATTRIBUTE?e.set_space_before_token(!0):(t.type===r.EQUALS||t.type===r.VALUE&&t.previous.type===r.EQUALS)&&e.set_space_before_token(!1),t.type===r.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),i=i||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(a.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),i=!0)),e.print_token(t),n.has_wrapped_attrs=i=i||e.previous_token_wrapped()),o},E.prototype._handle_text=function(e,t,n){var r={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),r},E.prototype._print_custom_beatifier_text=function(e,t,n){var r=this;if(""!==t.text){var a,i=t.text,o=1,s="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?a=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?a=this._css_beautify:"html"===n.custom_beautifier_name&&(a=function(e,t){return new E(e,t,r._js_beautify,r._css_beautify).beautify()}),"keep"===this._options.indent_scripts?o=0:"separate"===this._options.indent_scripts&&(o=-e.indent_level);var u=e.get_full_indent(o);if(i=i.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===i[0]&&i.match(/^(|]]>)$/.exec(i);if(!c)return void e.add_raw_token(t);s=u+c[1]+`
`,i=c[4],c[5]&&(l=u+c[5]),i=i.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf(`
`))&&(c=c[3].match(/[ \t]+$/))&&(t.whitespace_before=c[0])}if(i)if(a){var d=function(){this.eol=`
`};d.prototype=this._options.raw_options,i=a(u+i,new d)}else{var f=t.whitespace_before;f&&(i=i.replace(RegExp(`
(`+f+")?","g"),`
`)),i=u+i.replace(/\n/g,`
`+u)}s&&(i=i?s+i+`
`+l:s+l),e.print_newline(!1),i&&(t.text=i,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},E.prototype._handle_tag_open=function(e,t,n,a,i){var o=this._get_tag_open_token(t);if((n.is_unformatted||n.is_content_unformatted)&&!n.is_empty_element&&t.type===r.TAG_OPEN&&!o.is_start_tag?(e.add_raw_token(t),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)):(e.traverse_whitespace(t),this._set_tag_position(e,t,o,n,a),o.is_inline_element||e.set_wrap_point(),e.print_token(t)),o.is_start_tag&&this._is_wrap_attributes_force){var s,l=0;do(s=i.peek(l)).type===r.ATTRIBUTE&&(o.attr_count+=1),l+=1;while(s.type!==r.EOF&&s.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(o.alignment_size=t.text.length+1),o.tag_complete||o.is_unformatted||(e.alignment_size=o.alignment_size),o};var f=function(e,t){if(this.parent=e||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_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==t.next?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===r.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 n,a=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(a=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(a)))}else this.tag_complete=!0};E.prototype._get_tag_open_token=function(e){var t=new f(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||u(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&&u(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&u(t.tag_check,this._options.content_unformatted),t.is_inline_element=u(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},E.prototype._set_tag_position=function(e,t,n,a,i){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=l(n.tag_check,t)))),u(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element)"{"===n.tag_start_char&&"else"===n.tag_check&&(this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1)),"!--"===n.tag_name&&i.type===r.TAG_CLOSE&&a.is_end_tag&&-1===n.text.indexOf(`
`)||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n));else if(n.is_end_tag){var o=!1;o=(o=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(a.is_inline_element||a.is_unformatted)&&(i.type!==r.TAG_CLOSE||n.start_tag_token!==a)&&"TK_CONTENT"!==i.type,(n.is_content_unformatted||n.is_unformatted)&&(o=!1),o&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),!(n.is_inline_element||n.is_unformatted)&&("TK_CONTENT"!==i.type||n.is_content_unformatted)&&e.print_newline(!1),this._calcluate_parent_multiline(e,n)},E.prototype._calcluate_parent_multiline=function(e,t){t.parent&&e._output.just_added_newline()&&!((t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element)&&(t.parent.multiline_content=!0)};var p=["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"],h=["a","audio","del","ins","map","noscript","video"];return E.prototype._do_optional_end_element=function(e){var t=null;if(!(e.is_empty_element||!e.is_start_tag||!e.parent)){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==p.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==h.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):("th"===e.tag_name||"td"===e.tag_name)&&(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},CZ.Beautifier=E,CZ}().Beautifier,t=C1().Options;return Cq.exports=function(t,n,r,a){return new e(t,n,r,a).beautify()},Cq.exports.defaultOptions=function(){return new t},Cq.exports}();function r(r,a,i,o){return n(r,a,i=i||e,o=o||t)}return r.defaultOptions=n.defaultOptions,Cr.js=e,Cr.css=t,Cr.html=r,Cr}()).js_beautify=ve.js,ve.css_beautify=ve.css,ve.html_beautify=ve.html,(vt=function(e,t){return ve.js_beautify(e,t)}).js=ve.js_beautify,vt.css=ve.css_beautify,vt.html=ve.html_beautify,vt.js_beautify=ve.js_beautify,vt.css_beautify=ve.css_beautify,vt.html_beautify=ve.html_beautify,Cn.exports=vt;var C4=Cn.exports,C6={exports:{}};C6.exports=function(e,t){var n,r,a,i,o,s,l,u,c,d,E,f=0,p=e.length,h="",_=!0,T=!1;function S(e){return" "===e||e===`
`||" "===e||"\r"===e||"\f"===e}function R(e){return"'"===e||'"'===e}function m(e){return a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"||"-_*.:#[]".indexOf(e)>=0}function A(){var e;for(e=u;e>0;e-=1)h+=n.indent}function O(){h=E(h),_?h+=" {":(h+=`
`,A(),h+="{"),i!==`
`&&(h+=`
`),u+=1}function I(){var e;u-=1,(h=E(h)).length>0&&T&&";"!==(e=h.charAt(h.length-1))&&"{"!==e&&(h+=";"),h+=`
`,A(),h+="}",r.push(h),h=""}for(n=arguments.length>1?t:{},typeof n.indent>"u"&&(n.indent=" "),"string"==typeof n.openbrace&&(_="end-of-line"===n.openbrace),"boolean"==typeof n.autosemicolon&&(T=n.autosemicolon),E=String.prototype.trimRight?function(e){return e.trimRight()}:function(e){return e.replace(/\s+$/,"")},u=0,s=(l={Start:0,AtRule:1,Block:2,Selector:3,Ruleset:4,Property:5,Separator:6,Expression:7,URL:8}).Start,d=!1,r=[],e=e.replace(/\r\n/g,`
`);f=128){s=l.Start,h+=a;continue}if(m(a)||"@"===a){if(0===(o=E(h)).length)r.length>0&&(h=`
`);else if("}"===o.charAt(o.length-1)||";"===o.charAt(o.length-1))h=o+`
`;else for(;" "===(i=h.charAt(h.length-1))||9===i.charCodeAt(0);)h=h.substr(0,h.length-1);h+=a,s="@"===a?l.AtRule:l.Selector;continue}}if(s===l.AtRule){if(";"===a){h+=a,s=l.Start;continue}if("{"===a){o=E(h),O(),s="@font-face"===o?l.Ruleset:l.Block;continue}h+=a;continue}if(s===l.Block){if(m(a)){if(0===(o=E(h)).length)r.length>0&&(h=`
`);else if("}"===o.charAt(o.length-1))h=o+`
`;else for(;" "===(i=h.charAt(h.length-1))||9===i.charCodeAt(0);)h=h.substr(0,h.length-1);A(),h+=a,s=l.Selector;continue}if("}"===a){I(),s=l.Start;continue}h+=a;continue}if(s===l.Selector){if("{"===a){O(),s=l.Ruleset;continue}if("}"===a){I(),s=l.Start;continue}h+=a;continue}if(s===l.Ruleset){if("}"===a){I(),s=l.Start,u>0&&(s=l.Block);continue}if(a===`
`){h=E(h)+`
`;continue}if(!S(a)){h=E(h)+`
`,A(),h+=a,s=l.Property;continue}h+=a;continue}if(s===l.Property){if(":"===a){h=E(h)+": ",s=l.Expression,S(i)&&(s=l.Separator);continue}if("}"===a){I(),s=l.Start,u>0&&(s=l.Block);continue}h+=a;continue}if(s===l.Separator){if(!S(a)){h+=a,s=l.Expression;continue}R(i)&&(s=l.Expression);continue}if(s===l.Expression){if("}"===a){I(),s=l.Start,u>0&&(s=l.Block);continue}if(";"===a){h=E(h)+`;
`,s=l.Ruleset;continue}h+=a,"("===a&&"l"===h.charAt(h.length-2)&&"r"===h.charAt(h.length-3)&&"u"===h.charAt(h.length-4)&&(s=l.URL);continue}if(s===l.URL&&")"===a&&h.charAt((h.length,!0))){h+=a,s=l.Expression;continue}h+=a}return h=r.join("")+h},C6.exports,C4.js_beautify;var C8={exports:{}},C7={}.hasOwnProperty;function C9(){for(var e="",t=0;t2&&void 0!==arguments[2]?arguments[2]:{},a=r.callback;"function"==typeof r&&(a=r,r={}),this.options=r;var i=this;function o(e){return a?(setTimeout(function(){a(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,u=1,c=s+l;r.maxEditLength&&(c=Math.min(c,r.maxEditLength));var d=null!=(n=r.timeout)?n:1/0,E=Date.now()+d,f=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=l&&p+1>=s)return o([{value:this.join(t),count:t.length}]);var h=-1/0,_=1/0;function T(){for(var n=Math.max(h,-u);n<=Math.min(_,u);n+=2){var r=void 0,a=f[n-1],c=f[n+1];a&&(f[n-1]=void 0);var d=!1;if(c){var E=c.oldPos-n;d=c&&0<=E&&E=l&&p+1>=s)return o(function(e,t,n,r,a){for(var i,o=[];t;)o.push(t),i=t.previousComponent,delete t.previousComponent,t=i;o.reverse();for(var s=0,l=o.length,u=0,c=0;se.length?n:e}),d.value=e.join(f)}else d.value=e.join(n.slice(u,u+d.count));u+=d.count,d.added||(c+=d.count)}}var p=o[l-1];return l>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(o[l-2].value+=p.value,o.pop()),o}(i,r.lastComponent,t,e,i.useLongestToken));f[n]=r,r.oldPos+1>=l&&(_=Math.min(_,n-1)),p+1>=s&&(h=Math.max(h,n+1))}u++}if(a)!function e(){setTimeout(function(){if(u>c||Date.now()>E)return a();T()||e()},0)}();else for(;u<=c&&Date.now()<=E;){var S=T();if(S)return S}},addToPath:function(e,t,n,r){var a=e.lastComponent;return a&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}},extractCommon:function(e,t,n,r){for(var a=t.length,i=n.length,o=e.oldPos,s=o-r,l=0;s+1"u"?n:t}:r;return"string"==typeof e?e:JSON.stringify(yN(e,null,null,a),a," ")},yg.equals=function(e,t){return yA.default.prototype.equals.call(yg,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var yC={};Object.defineProperty(yC,"__esModule",{value:!0}),yC.diffArrays=function(e,t,n){return yy.diff(e,t,n)},yC.arrayDiff=void 0;var yy=new((b8=ya)&&b8.__esModule?b8:{default:b8}).default;yC.arrayDiff=yy,yy.tokenize=function(e){return e.slice()},yy.join=yy.removeEmpty=function(e){return e};var yb={},yv={};Object.defineProperty(yv,"__esModule",{value:!0}),yv.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=[],i=0;function o(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[i]);if(t){var r="---"===t[1]?"old":"new",a=t[2].split(" ",2),o=a[0].replace(/\\\\/g,"\\");/^".*"$/.test(o)&&(o=o.substr(1,o.length-2)),e[r+"FileName"]=o,e[r+"Header"]=(a[1]||"").trim(),i++}}for(;i"u"?1:+a[2],newStart:+a[3],newLines:typeof a[4]>"u"?1:+a[4],lines:[],linedelimiters:[]};0===o.oldLines&&(o.oldStart+=1),0===o.newLines&&(o.newStart+=1);for(var s=0,l=0;i2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,yv.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw Error("applyPatch only works with a single input.");t=t[0]}for(var r,a,i=e.split(/\r\n|[\n\v\f\r\x85]/),o=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},u=0,c=n.fuzzFactor||0,d=0,E=0,f=0;f0?r[0]:" ",o=r.length>0?r.substr(1):r;if(" "===a||"-"===a){if(!l(t+1,i[t],a,o)&&++u>c)return!1;t++}}return!0}(p,T+_)){p.offset=E+=_;break}if(void 0===_)return!1;d=p.offset+p.oldStart+p.oldLines}for(var R=0,m=0;m0?g[0]:" ",C=g.length>0?g.substr(1):g,y=A.linedelimiters&&A.linedelimiters[I]||`
`;if(" "===N)O++;else if("-"===N)i.splice(O,1),o.splice(O,1);else if("+"===N)i.splice(O,0,C),o.splice(O,0,y),O++;else if("\\"===N){var b=A.lines[I-1]?A.lines[I-1][0]:null;"+"===b?r=!0:"-"===b&&(a=!0)}}}if(r)for(;!i[i.length-1];)i.pop(),o.pop();else a&&(i.push(""),o.push(`
`));for(var v=0;vtypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yk(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yk(e,void 0)}}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function yk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n"u"&&(o.context=4);var s=(0,yp.diffLines)(n,r,o);if(s){s.push({value:"",lines:[]});for(var l=[],u=0,c=0,d=[],E=1,f=1,p=0;p0?h(i.lines.slice(-o.context)):[],u-=d.length,c-=d.length)}(p=d).push.apply(p,yU(a.map(function(e){return(t.added?"+":"-")+e}))),t.added?f+=a.length:E+=a.length}else{if(u)if(a.length<=2*o.context&&e=s.length-2&&a.length<=o.context){var m=/\n$/.test(n),A=/\n$/.test(r),O=0==a.length&&d.length>R.oldLines;!m&&O&&n.length>0&&d.splice(R.oldLines,0,"\\ No newline at end of file"),(m||O)&&A||d.push("\\ No newline at end of file")}l.push(R),u=0,c=0,d=[]}E+=a.length,f+=a.length}}(p);return{oldFileName:e,newFileName:t,oldHeader:a,newHeader:i,hunks:l}}function h(e){return e.map(function(e){return" "+e})}}function yF(e){if(Array.isArray(e))return e.map(yF).join(`
`);var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader));for(var n=0;ne.length)return!1;for(var n=0;ntypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yV(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yV(e,void 0)}}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function yV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n"):r.removed&&t.push(""),t.push(function(e){var t=e;return(t=(t=(t=t.replace(/&/g,"&")).replace(/