From 86618fca3f313c3bc69034df5595e5793a12c1bf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 19 Jun 2021 22:17:05 +0000 Subject: [PATCH] chore(gh-bot): :rocket: deploy to github pages --- docs/js/rollup.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/js/rollup.min.js b/docs/js/rollup.min.js index 905a679..ec69532 100644 --- a/docs/js/rollup.min.js +++ b/docs/js/rollup.min.js @@ -417,7 +417,7 @@ type: `+JSON.stringify(p),f&&f.split(/\s*,\s*/).forEach(function(v){var A=/([a-z `),F(),v=!1):gt.nlb&&(jr>0||!V())?(K(` `),F()):(jr>0||!ie)&&M(),/comment[134]/.test(gt.type)){let Jt=le(gt.value);Jt&&K("//"+Jt),v=!0}else if(gt.type=="comment2"){let Jt=le(gt.value);Jt&&K("/*"+Jt+"*/"),A=!0}}}),u.length>fn&&(b=fn)}}}var ae=[];return{get:It,toString:It,indent:F,in_directive:!1,use_asm:null,active_scope:null,indentation:function(){return i},current_width:function(){return a-i},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return c},newline:fe,print:K,star:q,space:M,comma:re,colon:ce,last:function(){return I},semicolon:ge,force_semicolon:we,to_utf8:h,print_name:function(U){K(g(U))},print_string:function(U,ie,Z){var _e=m(U,ie);Z===!0&&!_e.includes("\\")&&(U6.test(u)||we(),we()),K(_e)},print_template_string_chars:function(U){var ie=m(U,"`").replace(/\${/g,"\\${");return K(ie.substr(1,ie.length-2))},encode_string:m,next_indent:xe,with_indent:pe,with_block:$,with_parens:z,with_square:J,add_mapping:Xe,option:function(U){return e[U]},printed_comments:l,prepend_comments:t?Pr:W,append_comments:t||n===pt?Pr:oe,line:function(){return o},col:function(){return a},pos:function(){return s},push_node:function(U){ae.push(U)},pop_node:function(){return ae.pop()},parent:function(U){return ae[ae.length-2-(U||0)]}}}(function(){function e(c,f){c.DEFMETHOD("_codegen",f)}se.DEFMETHOD("print",function(c,f){var _=this,y=_._codegen;_ instanceof Fe?c.active_scope=_:!c.use_asm&&_ instanceof An&&_.value=="use asm"&&(c.use_asm=c.active_scope);function v(){c.prepend_comments(_),_.add_source_map(c),y(_,c),c.append_comments(_)}c.push_node(_),f||_.needs_parens(c)?c.with_parens(v):v(),c.pop_node(),_===c.use_asm&&(c.use_asm=null)}),se.DEFMETHOD("_print",se.prototype.print),se.DEFMETHOD("print_to_string",function(c){var f=ec(c);return this.print(f),f.get()});function t(c,f){Array.isArray(c)?c.forEach(function(_){t(_,f)}):c.DEFMETHOD("needs_parens",f)}t(se,pt),t(mt,function(c){if(!c.has_parens()&&Di(c))return!0;if(c.option("webkit")){var f=c.parent();if(f instanceof Be&&f.expression===this)return!0}if(c.option("wrap_iife")){var f=c.parent();if(f instanceof ve&&f.expression===this)return!0}if(c.option("wrap_func_args")){var f=c.parent();if(f instanceof ve&&f.args.includes(this))return!0}return!1}),t(jt,function(c){var f=c.parent();return c.option("wrap_func_args")&&f instanceof ve&&f.args.includes(this)?!0:f instanceof Be&&f.expression===this}),t(tt,function(c){return!c.has_parens()&&Di(c)}),t(fi,Di),t(Dt,function(c){var f=c.parent();return f instanceof Be&&f.expression===this||f instanceof ve&&f.expression===this||f instanceof X&&f.operator==="**"&&this instanceof Ue&&f.left===this&&this.operator!=="++"&&this.operator!=="--"}),t(vr,function(c){var f=c.parent();return f instanceof Be&&f.expression===this||f instanceof ve&&f.expression===this||f instanceof X&&f.operator==="**"&&f.left===this||c.option("safari10")&&f instanceof Ue}),t(ke,function(c){var f=c.parent();return f instanceof ve||f instanceof Dt||f instanceof X||f instanceof rt||f instanceof Be||f instanceof Je||f instanceof Kt||f instanceof Ne||f instanceof jt||f instanceof br||f instanceof We||f instanceof to&&this===f.object||f instanceof er||f instanceof $t}),t(X,function(c){var f=c.parent();if(f instanceof ve&&f.expression===this||f instanceof Dt||f instanceof Be&&f.expression===this)return!0;if(f instanceof X){let _=f.operator,y=this.operator;if(y==="??"&&(_==="||"||_==="&&")||_==="??"&&(y==="||"||y==="&&"))return!0;let v=Fo[_],A=Fo[y];if(v>A||v==A&&(this===f.right||_=="**"))return!0}}),t(er,function(c){var f=c.parent();if(f instanceof X&&f.operator!=="="||f instanceof ve&&f.expression===this||f instanceof Ne&&f.condition===this||f instanceof Dt||f instanceof Be&&f.expression===this)return!0}),t(Be,function(c){var f=c.parent();if(f instanceof zn&&f.expression===this)return Bn(this,_=>{if(_ instanceof Fe)return!0;if(_ instanceof ve)return Qr})}),t(ve,function(c){var f=c.parent(),_;return f instanceof zn&&f.expression===this||f instanceof $t&&f.is_default&&this.expression instanceof mt?!0:this.expression instanceof mt&&f instanceof Be&&f.expression===this&&(_=c.parent(1))instanceof $e&&_.left===f}),t(zn,function(c){var f=c.parent();if(this.args.length===0&&(f instanceof Be||f instanceof ve&&f.expression===this))return!0}),t(Ze,function(c){var f=c.parent();if(f instanceof Be&&f.expression===this){var _=this.getValue();if(_<0||/^0/.test(m(_)))return!0}}),t(Jr,function(c){var f=c.parent();if(f instanceof Be&&f.expression===this){var _=this.getValue();if(_.startsWith("-"))return!0}}),t([$e,Ne],function(c){var f=c.parent();if(f instanceof Dt||f instanceof X&&!(f instanceof $e)||f instanceof ve&&f.expression===this||f instanceof Ne&&f.condition===this||f instanceof Be&&f.expression===this||this instanceof $e&&this.left instanceof ut&&this.left.is_array===!1)return!0}),e(An,function(c,f){f.print_string(c.value,c.quote),f.semicolon()}),e(We,function(c,f){f.print("..."),c.expression.print(f)}),e(ut,function(c,f){f.print(c.is_array?"[":"{");var _=c.names.length;c.names.forEach(function(y,v){v>0&&f.comma(),y.print(f),v==_-1&&y instanceof ar&&f.comma()}),f.print(c.is_array?"]":"}")}),e(si,function(c,f){f.print("debugger"),f.semicolon()});function n(c,f,_,y){var v=c.length-1;_.in_directive=y,c.forEach(function(A,b){_.in_directive===!0&&!(A instanceof An||A instanceof dt||A instanceof Ee&&A.body instanceof ze)&&(_.in_directive=!1),A instanceof dt||(_.indent(),A.print(_),b==v&&f||(_.newline(),f&&_.newline())),_.in_directive===!0&&A instanceof Ee&&A.body instanceof ze&&(_.in_directive=!1)}),_.in_directive=!1}zo.DEFMETHOD("_do_print_body",function(c){h(this.body,c)}),e(un,function(c,f){c.body.print(f),f.semicolon()}),e(st,function(c,f){n(c.body,!0,f,!0),f.print("")}),e(pn,function(c,f){c.label.print(f),f.colon(),c.body.print(f)}),e(Ee,function(c,f){c.body.print(f),f.semicolon()});function r(c,f){f.print("{"),f.with_indent(f.next_indent(),function(){f.append_comments(c,!0)}),f.print("}")}function i(c,f,_){c.body.length>0?f.with_block(function(){n(c.body,!1,f,_)}):r(c,f)}e(Ye,function(c,f){i(c,f)}),e(dt,function(c,f){f.semicolon()}),e(Mr,function(c,f){f.print("do"),f.space(),g(c.body,f),f.space(),f.print("while"),f.space(),f.with_parens(function(){c.condition.print(f)}),f.semicolon()}),e(Xr,function(c,f){f.print("while"),f.space(),f.with_parens(function(){c.condition.print(f)}),f.space(),c._do_print_body(f)}),e(Gt,function(c,f){f.print("for"),f.space(),f.with_parens(function(){c.init?(c.init instanceof Ot?c.init.print(f):o(c.init,f,!0),f.print(";"),f.space()):f.print(";"),c.condition?(c.condition.print(f),f.print(";"),f.space()):f.print(";"),c.step&&c.step.print(f)}),f.space(),c._do_print_body(f)}),e(dn,function(c,f){f.print("for"),c.await&&(f.space(),f.print("await")),f.space(),f.with_parens(function(){c.init.print(f),f.space(),f.print(c instanceof to?"of":"in"),f.space(),c.object.print(f)}),f.space(),c._do_print_body(f)}),e(Rn,function(c,f){f.print("with"),f.space(),f.with_parens(function(){c.expression.print(f)}),f.space(),c._do_print_body(f)}),Oe.DEFMETHOD("_do_print",function(c,f){var _=this;f||(_.async&&(c.print("async"),c.space()),c.print("function"),_.is_generator&&c.star(),_.name&&c.space()),_.name instanceof Ge?_.name.print(c):f&&_.name instanceof se&&c.with_square(function(){_.name.print(c)}),c.with_parens(function(){_.argnames.forEach(function(y,v){v&&c.comma(),y.print(c)})}),c.space(),i(_,c,!0)}),e(Oe,function(c,f){c._do_print(f)}),e(Qn,function(c,f){var _=c.prefix,y=_ instanceof Oe||_ instanceof X||_ instanceof Ne||_ instanceof ke||_ instanceof Dt||_ instanceof lt&&_.expression instanceof tt;y&&f.print("("),c.prefix.print(f),y&&f.print(")"),c.template_string.print(f)}),e(on,function(c,f){var _=f.parent()instanceof Qn;f.print("`");for(var y=0;y"),c.space();let v=f.body[0];if(f.body.length===1&&v instanceof Wt){let A=v.value;A?jo(A)?(c.print("("),A.print(c),c.print(")")):A.print(c):c.print("{}")}else i(f,c);y&&c.print(")")}),or.DEFMETHOD("_do_print",function(c,f){if(c.print(f),this.value){c.space();let _=this.value.start.comments_before;_&&_.length&&!c.printed_comments.has(_)?(c.print("("),this.value.print(c),c.print(")")):this.value.print(c)}c.semicolon()}),e(Wt,function(c,f){c._do_print(f,"return")}),e(Bo,function(c,f){c._do_print(f,"throw")}),e(er,function(c,f){var _=c.is_star?"*":"";f.print("yield"+_),c.expression&&(f.space(),c.expression.print(f))}),e(vr,function(c,f){f.print("await"),f.space();var _=c.expression,y=!(_ instanceof ve||_ instanceof ue||_ instanceof Be||_ instanceof Dt||_ instanceof it||_ instanceof vr||_ instanceof tt);y&&f.print("("),c.expression.print(f),y&&f.print(")")}),$r.DEFMETHOD("_do_print",function(c,f){c.print(f),this.label&&(c.space(),this.label.print(c)),c.semicolon()}),e(Lr,function(c,f){c._do_print(f,"break")}),e($i,function(c,f){c._do_print(f,"continue")});function a(c,f){var _=c.body;if(f.option("braces")||f.option("ie8")&&_ instanceof Mr)return g(_,f);if(!_)return f.force_semicolon();for(;;)if(_ instanceof _t){if(!_.alternative){g(c.body,f);return}_=_.alternative}else if(_ instanceof zo)_=_.body;else break;h(c.body,f)}e(_t,function(c,f){f.print("if"),f.space(),f.with_parens(function(){c.condition.print(f)}),f.space(),c.alternative?(a(c,f),f.space(),f.print("else"),f.space(),c.alternative instanceof _t?c.alternative.print(f):h(c.alternative,f)):c._do_print_body(f)}),e(sn,function(c,f){f.print("switch"),f.space(),f.with_parens(function(){c.expression.print(f)}),f.space();var _=c.body.length-1;_<0?r(c,f):f.with_block(function(){c.body.forEach(function(y,v){f.indent(!0),y.print(f),v<_&&y.body.length>0&&f.newline()})})}),xi.DEFMETHOD("_do_print_body",function(c){c.newline(),this.body.forEach(function(f){c.indent(),f.print(c),c.newline()})}),e(Ui,function(c,f){f.print("default:"),c._do_print_body(f)}),e(tr,function(c,f){f.print("case"),f.space(),c.expression.print(f),f.print(":"),c._do_print_body(f)}),e(Tn,function(c,f){f.print("try"),f.space(),i(c,f),c.bcatch&&(f.space(),c.bcatch.print(f)),c.bfinally&&(f.space(),c.bfinally.print(f))}),e(Ln,function(c,f){f.print("catch"),c.argname&&(f.space(),f.with_parens(function(){c.argname.print(f)})),f.space(),i(c,f)}),e(Ai,function(c,f){f.print("finally"),f.space(),i(c,f)}),Ot.DEFMETHOD("_do_print",function(c,f){c.print(f),c.space(),this.definitions.forEach(function(A,b){b&&c.comma(),A.print(c)});var _=c.parent(),y=_ instanceof Gt||_ instanceof dn,v=!y||_&&_.init!==this;v&&c.semicolon()}),e(ui,function(c,f){c._do_print(f,"let")}),e(mn,function(c,f){c._do_print(f,"var")}),e(li,function(c,f){c._do_print(f,"const")}),e(On,function(c,f){f.print("import"),f.space(),c.imported_name&&c.imported_name.print(f),c.imported_name&&c.imported_names&&(f.print(","),f.space()),c.imported_names&&(c.imported_names.length===1&&c.imported_names[0].foreign_name.name==="*"?c.imported_names[0].print(f):(f.print("{"),c.imported_names.forEach(function(_,y){f.space(),_.print(f),y{if(v instanceof Fe)return!0;if(v instanceof X&&v.operator=="in")return Qr})),c.print(f,y)}e(rt,function(c,f){if(c.name.print(f),c.value){f.space(),f.print("="),f.space();var _=f.parent(1),y=_ instanceof Gt||_ instanceof dn;o(c.value,f,y)}}),e(ve,function(c,f){c.expression.print(f),!(c instanceof zn&&c.args.length===0)&&((c.expression instanceof ve||c.expression instanceof Oe)&&f.add_mapping(c.start),c.optional&&f.print("?."),f.with_parens(function(){c.args.forEach(function(_,y){y&&f.comma(),_.print(f)})}))}),e(zn,function(c,f){f.print("new"),f.space(),ve.prototype._codegen(c,f)}),ke.DEFMETHOD("_do_print",function(c){this.expressions.forEach(function(f,_){_>0&&(c.comma(),c.should_break()&&(c.newline(),c.indent())),f.print(c)})}),e(ke,function(c,f){c._do_print(f)}),e(lt,function(c,f){var _=c.expression;_.print(f);var y=c.property,v=oa.has(y)?f.option("ie8"):!eh(y,f.option("ecma")>=2015||f.option("safari10"));c.optional&&f.print("?."),v?(f.print("["),f.add_mapping(c.end),f.print_string(y),f.print("]")):(_ instanceof Ze&&_.getValue()>=0&&(/[xa-f.)]/i.test(f.last())||f.print(".")),c.optional||f.print("."),f.add_mapping(c.end),f.print_name(y))}),e(ci,function(c,f){var _=c.expression;_.print(f);var y=c.property;c.optional&&f.print("?"),f.print(".#"),f.print_name(y)}),e(Ut,function(c,f){c.expression.print(f),c.optional&&f.print("?."),f.print("["),c.property.print(f),f.print("]")}),e(wn,function(c,f){c.expression.print(f)}),e(Ue,function(c,f){var _=c.operator;f.print(_),(/^[a-z]/i.test(_)||/[+-]$/.test(_)&&c.expression instanceof Ue&&/^[+-]/.test(c.expression.operator))&&f.space(),c.expression.print(f)}),e(Yr,function(c,f){c.expression.print(f),f.print(c.operator)}),e(X,function(c,f){var _=c.operator;c.left.print(f),_[0]==">"&&c.left instanceof Yr&&c.left.operator=="--"?f.print(" "):f.space(),f.print(_),(_=="<"||_=="<<")&&c.right instanceof Ue&&c.right.operator=="!"&&c.right.expression instanceof Ue&&c.right.expression.operator=="--"?f.print(" "):f.space(),c.right.print(f)}),e(Ne,function(c,f){c.condition.print(f),f.space(),f.print("?"),f.space(),c.consequent.print(f),f.space(),f.colon(),c.alternative.print(f)}),e(Je,function(c,f){f.with_square(function(){var _=c.elements,y=_.length;y>0&&f.space(),_.forEach(function(v,A){A&&f.comma(),v.print(f),A===y-1&&v instanceof ar&&f.comma()}),y>0&&f.space()})}),e(tt,function(c,f){c.properties.length>0?f.with_block(function(){c.properties.forEach(function(_,y){y&&(f.print(","),f.newline()),f.indent(),_.print(f)}),f.newline()}):r(c,f)}),e(et,function(c,f){if(f.print("class"),f.space(),c.name&&(c.name.print(f),f.space()),c.extends){var _=!(c.extends instanceof ue)&&!(c.extends instanceof Be)&&!(c.extends instanceof fi)&&!(c.extends instanceof mt);f.print("extends"),_?f.print("("):f.space(),c.extends.print(f),_?f.print(")"):f.space()}c.properties.length>0?f.with_block(function(){c.properties.forEach(function(y,v){v&&f.newline(),f.indent(),y.print(f)}),f.newline()}):f.print("{}")}),e(ca,function(c,f){f.print("new.target")});function s(c,f,_){if(_.option("quote_keys"))return _.print_string(c);if(""+ +c==c&&c>=0)return _.option("keep_numbers")?_.print(c):_.print(m(c));var y=oa.has(c)?_.option("ie8"):_.option("ecma")<2015||_.option("safari10")?!Om(c):!eh(c,!0);return y||f&&_.option("keep_quoted_props")?_.print_string(c,f):_.print_name(c)}e(Mt,function(c,f){function _(v){var A=v.definition();return A?A.mangled_name||A.name:v.name}var y=f.option("shorthand");y&&c.value instanceof Ge&&eh(c.key,f.option("ecma")>=2015||f.option("safari10"))&&_(c.value)===c.key&&!oa.has(c.key)?s(c.key,c.quote,f):y&&c.value instanceof br&&c.value.left instanceof Ge&&eh(c.key,f.option("ecma")>=2015||f.option("safari10"))&&_(c.value.left)===c.key?(s(c.key,c.quote,f),f.space(),f.print("="),f.space(),c.value.right.print(f)):(c.key instanceof se?f.with_square(function(){c.key.print(f)}):s(c.key,c.quote,f),f.colon(),c.value.print(f))}),e(la,(c,f)=>{c.static&&(f.print("static"),f.space()),f.print("#"),s(c.key.name,c.quote,f),c.value&&(f.print("="),c.value.print(f)),f.semicolon()}),e(Gn,(c,f)=>{c.static&&(f.print("static"),f.space()),c.key instanceof hi?s(c.key.name,c.quote,f):(f.print("["),c.key.print(f),f.print("]")),c.value&&(f.print("="),c.value.print(f)),f.semicolon()}),Kt.DEFMETHOD("_print_getter_setter",function(c,f,_){var y=this;y.static&&(_.print("static"),_.space()),c&&(_.print(c),_.space()),y.key instanceof bn?(f&&_.print("#"),s(y.key.name,y.quote,_)):_.with_square(function(){y.key.print(_)}),y.value._do_print(_,!0)}),e(Sr,function(c,f){c._print_getter_setter("set",!1,f)}),e(rr,function(c,f){c._print_getter_setter("get",!1,f)}),e(Vo,function(c,f){c._print_getter_setter("set",!0,f)}),e(no,function(c,f){c._print_getter_setter("get",!0,f)}),e(ua,function(c,f){var _;c.is_generator&&c.async?_="async*":c.is_generator?_="*":c.async&&(_="async"),c._print_getter_setter(_,!0,f)}),e(gn,function(c,f){var _;c.is_generator&&c.async?_="async*":c.is_generator?_="*":c.async&&(_="async"),c._print_getter_setter(_,!1,f)}),Ge.DEFMETHOD("_do_print",function(c){var f=this.definition();c.print_name(f?f.mangled_name||f.name:this.name)}),e(Ge,function(c,f){c._do_print(f)}),e(ar,Pr),e(yn,function(c,f){f.print("this")}),e(Ia,function(c,f){f.print("super")}),e(it,function(c,f){f.print(c.getValue())}),e(ze,function(c,f){f.print_string(c.getValue(),c.quote,f.in_directive)}),e(Ze,function(c,f){(f.option("keep_numbers")||f.use_asm)&&c.raw?f.print(c.raw):f.print(m(c.getValue()))}),e(Jr,function(c,f){f.print(c.getValue()+"n")});let u=/(<\s*\/\s*script)/i,l=(c,f)=>f.replace("/","\\/");e(xn,function(c,f){let{source:_,flags:y}=c.getValue();_=Yl(_),y=y?TR(y):"",_=_.replace(u,l),f.print(f.to_utf8(`/${_}/${y}`));let v=f.parent();v instanceof X&&/^\w/.test(v.operator)&&v.left===c&&f.print(" ")});function h(c,f){f.option("braces")?g(c,f):!c||c instanceof dt?f.force_semicolon():c.print(f)}function d(c){for(var f=c[0],_=f.length,y=1;ye===null&&t===null||e.TYPE===t.TYPE&&e.shallow_cmp(t),BR=(e,t)=>{if(!LR(e,t))return!1;let n=[e],r=[t],i=n.push.bind(n),a=r.push.bind(r);for(;n.length&&r.length;){let o=n.pop(),s=r.pop();if(!LR(o,s)||(o._children_backwards(i),s._children_backwards(a),n.length!==r.length))return!1}return n.length==0&&r.length==0},cn=e=>{let t=Object.keys(e).map(n=>{if(e[n]==="eq")return`this.${n} === other.${n}`;if(e[n]==="exist")return`(this.${n} == null ? other.${n} == null : this.${n} === other.${n})`;throw new Error(`mkshallow: Unexpected instruction: ${e[n]}`)}).join(" && ");return new Function("other","return "+t)},Lt=()=>!0;se.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)};si.prototype.shallow_cmp=Lt;An.prototype.shallow_cmp=cn({value:"eq"});Ee.prototype.shallow_cmp=Lt;Zt.prototype.shallow_cmp=Lt;dt.prototype.shallow_cmp=Lt;pn.prototype.shallow_cmp=cn({"label.name":"eq"});Mr.prototype.shallow_cmp=Lt;Xr.prototype.shallow_cmp=Lt;Gt.prototype.shallow_cmp=cn({init:"exist",condition:"exist",step:"exist"});dn.prototype.shallow_cmp=Lt;to.prototype.shallow_cmp=Lt;Rn.prototype.shallow_cmp=Lt;st.prototype.shallow_cmp=Lt;We.prototype.shallow_cmp=Lt;Oe.prototype.shallow_cmp=cn({is_generator:"eq",async:"eq"});ut.prototype.shallow_cmp=cn({is_array:"eq"});Qn.prototype.shallow_cmp=Lt;on.prototype.shallow_cmp=Lt;Fr.prototype.shallow_cmp=cn({value:"eq"});Go.prototype.shallow_cmp=Lt;$r.prototype.shallow_cmp=Lt;vr.prototype.shallow_cmp=Lt;er.prototype.shallow_cmp=cn({is_star:"eq"});_t.prototype.shallow_cmp=cn({alternative:"exist"});sn.prototype.shallow_cmp=Lt;xi.prototype.shallow_cmp=Lt;Tn.prototype.shallow_cmp=cn({bcatch:"exist",bfinally:"exist"});Ln.prototype.shallow_cmp=cn({argname:"exist"});Ai.prototype.shallow_cmp=Lt;Ot.prototype.shallow_cmp=Lt;rt.prototype.shallow_cmp=cn({value:"exist"});nr.prototype.shallow_cmp=Lt;On.prototype.shallow_cmp=cn({imported_name:"exist",imported_names:"exist"});sa.prototype.shallow_cmp=Lt;$t.prototype.shallow_cmp=cn({exported_definition:"exist",exported_value:"exist",exported_names:"exist",module_name:"eq",is_default:"eq"});ve.prototype.shallow_cmp=Lt;ke.prototype.shallow_cmp=Lt;Be.prototype.shallow_cmp=Lt;wn.prototype.shallow_cmp=Lt;lt.prototype.shallow_cmp=cn({property:"eq"});Dt.prototype.shallow_cmp=cn({operator:"eq"});X.prototype.shallow_cmp=cn({operator:"eq"});Ne.prototype.shallow_cmp=Lt;Je.prototype.shallow_cmp=Lt;tt.prototype.shallow_cmp=Lt;Kt.prototype.shallow_cmp=Lt;Mt.prototype.shallow_cmp=cn({key:"eq"});Sr.prototype.shallow_cmp=cn({static:"eq"});rr.prototype.shallow_cmp=cn({static:"eq"});gn.prototype.shallow_cmp=cn({static:"eq",is_generator:"eq",async:"eq"});et.prototype.shallow_cmp=cn({name:"exist",extends:"exist"});Gn.prototype.shallow_cmp=cn({static:"eq"});Ge.prototype.shallow_cmp=cn({name:"eq"});ca.prototype.shallow_cmp=Lt;yn.prototype.shallow_cmp=Lt;Ia.prototype.shallow_cmp=Lt;ze.prototype.shallow_cmp=cn({value:"eq"});Ze.prototype.shallow_cmp=cn({value:"eq"});Jr.prototype.shallow_cmp=cn({value:"eq"});xn.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source};Na.prototype.shallow_cmp=Lt;R();"use strict";var Im=1<<0,W6=1<<1,tc=null,rh=null,Is=class{constructor(t,n,r){this.name=n.name,this.orig=[n],this.init=r,this.eliminated=0,this.assignments=0,this.scope=t,this.replaced=0,this.global=!1,this.export=0,this.mangled_name=null,this.undeclared=!1,this.id=Is.next_id++,this.chained=!1,this.direct_access=!1,this.escaped=0,this.recursive_refs=0,this.references=[],this.should_replace=void 0,this.single_use=!1,this.fixed=!1,Object.seal(this)}fixed_value(){return!this.fixed||this.fixed instanceof se?this.fixed:this.fixed()}unmangleable(t){return t||(t={}),tc&&tc.has(this.id)&&xs(t.keep_fnames,this.orig[0].name)?!0:this.global&&!t.toplevel||this.export&Im||this.undeclared||!t.eval&&this.scope.pinned()||(this.orig[0]instanceof Zr||this.orig[0]instanceof Ti)&&xs(t.keep_fnames,this.orig[0].name)||this.orig[0]instanceof bn||(this.orig[0]instanceof Os||this.orig[0]instanceof Rs)&&xs(t.keep_classnames,this.orig[0].name)}mangle(t){let n=t.cache&&t.cache.props;if(this.global&&n&&n.has(this.name))this.mangled_name=n.get(this.name);else if(!this.mangled_name&&!this.unmangleable(t)){var r=this.scope,i=this.orig[0];t.ie8&&i instanceof Zr&&(r=r.parent_scope);let a=wE(this);this.mangled_name=a?a.mangled_name||a.name:r.next_mangled(t,this),this.global&&n&&n.set(this.name,this.mangled_name)}}};Is.next_id=1;function wE(e){if(e.orig[0]instanceof Vr&&e.scope.is_block_scope())return e.scope.get_defun_scope().variables.get(e.name)}Fe.DEFMETHOD("figure_out_scope",function(e,{parent_scope:t=null,toplevel:n=this}={}){if(e=Nr(e,{cache:null,ie8:!1,safari10:!1}),!(n instanceof st))throw new Error("Invalid toplevel scope");var r=this.parent_scope=t,i=new Map,a=null,o=null,s=[],u=new ln((d,m)=>{if(d.is_block_scope()){let A=r;d.block_scope=r=new Fe(d),r._block_scope=!0;let b=d instanceof Ln?A.parent_scope:A;if(r.init_scope_vars(b),r.uses_with=A.uses_with,r.uses_eval=A.uses_eval,e.safari10&&(d instanceof Gt||d instanceof dn)&&s.push(r),d instanceof sn){let I=r;r=A,d.expression.walk(u),r=I;for(let T=0;TA===d?!0:d instanceof fa?A instanceof Zr:!(A instanceof Oa||A instanceof Gi))||th(`"${d.name}" is redeclared`,d.start.file,d.start.line,d.start.col,d.start.pos),d instanceof _n||l(y,2),a!==r){d.mark_enclosed();var y=r.find_variable(d);d.thedef!==y&&(d.thedef=y,d.reference())}}else if(d instanceof wu){var v=i.get(d.name);if(!v)throw new Error(Xl("Undefined label {name} [{line},{col}]",{name:d.name,line:d.start.line,col:d.start.col}));d.thedef=v}!(r instanceof st)&&(d instanceof $t||d instanceof On)&&th(`"${d.TYPE}" statement may only appear at the top level`,d.start.file,d.start.line,d.start.col,d.start.pos)});this.walk(u);function l(d,m){if(o){var g=0;do m++;while(u.parent(g++)!==o)}var p=u.parent(m);if(d.export=p instanceof $t?Im:0){var c=p.exported_definition;(c instanceof Ht||c instanceof Br)&&p.is_default&&(d.export=W6)}}this instanceof st&&(this.globals=new Map);var u=new ln(d=>{if(d instanceof $r&&d.label)return d.label.thedef.references.push(d),!0;if(d instanceof ue){var m=d.name;if(m=="eval"&&u.parent()instanceof ve)for(var g=d.scope;g&&!g.uses_eval;g=g.parent_scope)g.uses_eval=!0;var p;return u.parent()instanceof nr&&u.parent(1).module_name||!(p=d.scope.find_variable(m))?(p=n.def_global(d),d instanceof io&&(p.export=Im)):p.scope instanceof Oe&&m=="arguments"&&(p.scope.uses_arguments=!0),d.thedef=p,d.reference(),d.scope.is_block_scope()&&!(p.orig[0]instanceof fa)&&(d.scope=d.scope.get_defun_scope()),!0}var c;if(d instanceof Vr&&(c=wE(d.definition())))for(var g=d.scope;g&&(Mo(g.enclosed,c),g!==c.scope);)g=g.parent_scope});if(this.walk(u),(e.ie8||e.safari10)&&Bn(this,d=>{if(d instanceof Vr){var m=d.name,g=d.thedef.references,p=d.scope.get_defun_scope(),c=p.find_variable(m)||n.globals.get(m)||p.def_variable(d);return g.forEach(function(f){f.thedef=c,f.reference()}),d.thedef=c,d.reference(),!0}}),e.safari10)for(let d of s)d.parent_scope.variables.forEach(function(m){Mo(d.enclosed,m)})});st.DEFMETHOD("def_global",function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var r=new Is(this,e);return r.undeclared=!0,r.global=!0,t.set(n,r),r});Fe.DEFMETHOD("init_scope_vars",function(e){this.variables=new Map,this.functions=new Map,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1});Fe.DEFMETHOD("conflicting_def",function(e){return this.enclosed.find(t=>t.name===e)||this.variables.has(e)||this.parent_scope&&this.parent_scope.conflicting_def(e)});Fe.DEFMETHOD("conflicting_def_shallow",function(e){return this.enclosed.find(t=>t.name===e)||this.variables.has(e)});Fe.DEFMETHOD("add_child_scope",function(e){if(e.parent_scope===this)return;e.parent_scope=this;let t=(()=>{let i=[],a=this;do i.push(a);while(a=a.parent_scope);return i.reverse(),i})(),n=new Set(e.enclosed),r=[];for(let i of t){r.forEach(a=>Mo(i.enclosed,a));for(let a of i.variables.values())n.has(a)&&(Mo(r,a),Mo(i.enclosed,a))}});function K6(e){let t=new Set;for(let n of new Set(e))(function r(i){i==null||t.has(i)||(t.add(i),r(i.parent_scope))})(n);return[...t]}Fe.DEFMETHOD("create_symbol",function(e,{source:t,tentative_name:n,scope:r,conflict_scopes:i=[r],init:a=null}={}){let o;if(i=K6(i),n){n=o=n.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/ig,"_");let u=0;for(;i.find(l=>l.conflicting_def_shallow(o));)o=n+"$"+u++}if(!o)throw new Error("No symbol name could be generated in create_symbol()");let s=C(e,t,{name:o,scope:r});return this.def_variable(s,a||null),s.mark_enclosed(),s});se.DEFMETHOD("is_block_scope",pt);et.DEFMETHOD("is_block_scope",pt);Oe.DEFMETHOD("is_block_scope",pt);st.DEFMETHOD("is_block_scope",pt);xi.DEFMETHOD("is_block_scope",pt);Zt.DEFMETHOD("is_block_scope",Zn);Fe.DEFMETHOD("is_block_scope",function(){return this._block_scope||!1});qr.DEFMETHOD("is_block_scope",Zn);Oe.DEFMETHOD("init_scope_vars",function(){Fe.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new _n({name:"arguments",start:this.start,end:this.end}))});jt.DEFMETHOD("init_scope_vars",function(){Fe.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1});Ge.DEFMETHOD("mark_enclosed",function(){for(var e=this.definition(),t=this.scope;t&&(Mo(t.enclosed,e),t!==e.scope);)t=t.parent_scope});Ge.DEFMETHOD("reference",function(){this.definition().references.push(this),this.mark_enclosed()});Fe.DEFMETHOD("find_variable",function(e){return e instanceof Ge&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)});Fe.DEFMETHOD("def_function",function(e,t){var n=this.def_variable(e,t);return(!n.init||n.init instanceof Ht)&&(n.init=t),this.functions.set(e.name,n),n});Fe.DEFMETHOD("def_variable",function(e,t){var n=this.variables.get(e.name);return n?(n.orig.push(e),n.init&&(n.scope!==e.scope||n.init instanceof mt)&&(n.init=t)):(n=new Is(this,e,t),this.variables.set(e.name,n),n.global=!this.parent_scope),e.thedef=n});function xE(e,t){var n=e.enclosed;e:for(;;){var r=Tr(++e.cname);if(!oa.has(r)&&!t.reserved.has(r)){if(rh&&rh.has(r))continue e;for(let i=n.length;--i>=0;){let a=n[i],o=a.mangled_name||a.unmangleable(t)&&a.name;if(r==o)continue e}return r}}}Fe.DEFMETHOD("next_mangled",function(e){return xE(this,e)});st.DEFMETHOD("next_mangled",function(e){let t,n=this.mangled_names;do t=xE(this,e);while(n.has(t));return t});mt.DEFMETHOD("next_mangled",function(e,t){for(var n=t.orig[0]instanceof _n&&this.name&&this.name.definition(),r=n?n.mangled_name||n.name:null;;){var i=xE(this,e);if(!r||r!=i)return i}});Ge.DEFMETHOD("unmangleable",function(e){var t=this.definition();return!t||t.unmangleable(e)});Uo.DEFMETHOD("unmangleable",pt);Ge.DEFMETHOD("unreferenced",function(){return!this.definition().references.length&&!this.scope.pinned()});Ge.DEFMETHOD("definition",function(){return this.thedef});Ge.DEFMETHOD("global",function(){return this.thedef.global});st.DEFMETHOD("_default_mangler_options",function(e){return e=Nr(e,{eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1}),e.module&&(e.toplevel=!0),!Array.isArray(e.reserved)&&!(e.reserved instanceof Set)&&(e.reserved=[]),e.reserved=new Set(e.reserved),e.reserved.add("arguments"),e});st.DEFMETHOD("mangle_names",function(e){e=this._default_mangler_options(e);var t=-1,n=[];e.keep_fnames&&(tc=new Set);let r=this.mangled_names=new Set;e.cache&&(this.globals.forEach(a),e.cache.props&&e.cache.props.forEach(function(o){r.add(o)}));var i=new ln(function(o,s){if(o instanceof pn){var u=t;return s(),t=u,!0}if(o instanceof Fe){o.variables.forEach(a);return}if(o.is_block_scope()){o.block_scope.variables.forEach(a);return}if(tc&&o instanceof rt&&o.value instanceof Oe&&!o.value.name&&xs(e.keep_fnames,o.name.name)){tc.add(o.name.definition().id);return}if(o instanceof Uo){let l;do l=Tr(++t);while(oa.has(l));return o.mangled_name=l,!0}if(!(e.ie8||e.safari10)&&o instanceof Vr){n.push(o.definition());return}});this.walk(i),(e.keep_fnames||e.keep_classnames)&&(rh=new Set,n.forEach(o=>{o.name.length<6&&o.unmangleable(e)&&rh.add(o.name)})),n.forEach(o=>{o.mangle(e)}),tc=null,rh=null;function a(o){!e.reserved.has(o.name)&&!(o.export&Im)&&n.push(o)}});st.DEFMETHOD("find_colliding_names",function(e){let t=e.cache&&e.cache.props,n=new Set;return e.reserved.forEach(r),this.globals.forEach(i),this.walk(new ln(function(a){a instanceof Fe&&a.variables.forEach(i),a instanceof Vr&&i(a.definition())})),n;function r(a){n.add(a)}function i(a){var o=a.name;if(a.global&&t&&t.has(o))o=t.get(o);else if(!a.unmangleable(e))return;r(o)}});st.DEFMETHOD("expand_names",function(e){Tr.reset(),Tr.sort(),e=this._default_mangler_options(e);var t=this.find_colliding_names(e),n=0;this.globals.forEach(i),this.walk(new ln(function(a){a instanceof Fe&&a.variables.forEach(i),a instanceof Vr&&i(a.definition())}));function r(){var a;do a=Tr(n++);while(t.has(a)||oa.has(a));return a}function i(a){if(a.global&&e.cache||a.unmangleable(e)||e.reserved.has(a.name))return;let o=wE(a),s=a.name=o?o.name:r();a.orig.forEach(function(u){u.name=s}),a.references.forEach(function(u){u.name=s})}});se.DEFMETHOD("tail_node",Qa);ke.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]});st.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);try{se.prototype.print=function(n,r){this._print(n,r),this instanceof Ge&&!this.unmangleable(e)?Tr.consider(this.name,-1):e.properties&&(this instanceof ci?Tr.consider("#"+this.property,-1):this instanceof lt?Tr.consider(this.property,-1):this instanceof Ut&&t(this.property))},Tr.consider(this.print_to_string(),1)}finally{se.prototype.print=se.prototype._print}Tr.sort();function t(n){n instanceof ze?Tr.consider(n.value,-1):n instanceof Ne?(t(n.consequent),t(n.alternative)):n instanceof ke&&t(n.tail_node())}});var Tr=(()=>{let e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),t="0123456789".split(""),n,r;function i(){r=new Map,e.forEach(function(s){r.set(s,0)}),t.forEach(function(s){r.set(s,0)})}o.consider=function(s,u){for(var l=s.length;--l>=0;)r.set(s[l],r.get(s[l])+u)};function a(s,u){return r.get(u)-r.get(s)}o.sort=function(){n=mE(e,a).concat(mE(t,a))},o.reset=i,i();function o(s){var u="",l=54;s++;do s--,u+=n[s%l],s=Math.floor(s/l),l=64;while(s>0);return u}return o})();R();var Nm;se.prototype.size=function(e,t){Nm=e&&e.mangle_options;let n=0;return nh(this,(r,i)=>{if(n+=r._size(i),r instanceof jt&&r.is_braceless())return n+=r.body[0].value._size(i),!0},t||e&&e.stack),Nm=void 0,n};se.prototype._size=()=>0;si.prototype._size=()=>8;An.prototype._size=function(){return 2+this.value.length};var En=e=>e.length&&e.length-1;Zt.prototype._size=function(){return 2+En(this.body)};st.prototype._size=function(){return En(this.body)};dt.prototype._size=()=>1;pn.prototype._size=()=>2;Mr.prototype._size=()=>9;Xr.prototype._size=()=>7;Gt.prototype._size=()=>8;dn.prototype._size=()=>8;Rn.prototype._size=()=>6;We.prototype._size=()=>3;var ih=e=>(e.is_generator?1:0)+(e.async?6:0);Si.prototype._size=function(){return ih(this)+4+En(this.argnames)+En(this.body)};mt.prototype._size=function(e){return!!Di(e)*2+ih(this)+12+En(this.argnames)+En(this.body)};Ht.prototype._size=function(){return ih(this)+13+En(this.argnames)+En(this.body)};jt.prototype._size=function(){let e=2+En(this.argnames);this.argnames.length===1&&this.argnames[0]instanceof Ge||(e+=2);let t=this.is_braceless()?0:En(this.body)+2;return ih(this)+e+t};ut.prototype._size=()=>2;on.prototype._size=function(){return 2+Math.floor(this.segments.length/2)*3};Fr.prototype._size=function(){return this.value.length};Wt.prototype._size=function(){return this.value?7:6};Bo.prototype._size=()=>6;Lr.prototype._size=function(){return this.label?6:5};$i.prototype._size=function(){return this.label?9:8};_t.prototype._size=()=>4;sn.prototype._size=function(){return 8+En(this.body)};tr.prototype._size=function(){return 5+En(this.body)};Ui.prototype._size=function(){return 8+En(this.body)};Tn.prototype._size=function(){return 3+En(this.body)};Ln.prototype._size=function(){let e=7+En(this.body);return this.argname&&(e+=2),e};Ai.prototype._size=function(){return 7+En(this.body)};var DE=(e,t)=>e+En(t.definitions);mn.prototype._size=function(){return DE(4,this)};ui.prototype._size=function(){return DE(4,this)};li.prototype._size=function(){return DE(6,this)};rt.prototype._size=function(){return this.value?1:0};nr.prototype._size=function(){return this.name?4:0};On.prototype._size=function(){let e=6;return this.imported_name&&(e+=1),(this.imported_name||this.imported_names)&&(e+=5),this.imported_names&&(e+=2+En(this.imported_names)),e};sa.prototype._size=()=>11;$t.prototype._size=function(){let e=7+(this.is_default?8:0);return this.exported_value&&(e+=this.exported_value._size()),this.exported_names&&(e+=2+En(this.exported_names)),this.module_name&&(e+=5),e};ve.prototype._size=function(){return this.optional?4+En(this.args):2+En(this.args)};zn.prototype._size=function(){return 6+En(this.args)};ke.prototype._size=function(){return En(this.expressions)};lt.prototype._size=function(){return this.optional?this.property.length+2:this.property.length+1};ci.prototype._size=function(){return this.optional?this.property.length+3:this.property.length+2};Ut.prototype._size=function(){return this.optional?4:2};Dt.prototype._size=function(){return this.operator==="typeof"?7:this.operator==="void"?5:this.operator.length};X.prototype._size=function(e){if(this.operator==="in")return 4;let t=this.operator.length;return(this.operator==="+"||this.operator==="-")&&this.right instanceof Dt&&this.right.operator===this.operator&&(t+=1),this.needs_parens(e)&&(t+=2),t};Ne.prototype._size=()=>3;Je.prototype._size=function(){return 2+En(this.elements)};tt.prototype._size=function(e){let t=2;return Di(e)&&(t+=2),t+En(this.properties)};var Pm=e=>typeof e=="string"?e.length:0;Mt.prototype._size=function(){return Pm(this.key)+1};var Mm=e=>e?7:0;rr.prototype._size=function(){return 5+Mm(this.static)+Pm(this.key)};Sr.prototype._size=function(){return 5+Mm(this.static)+Pm(this.key)};gn.prototype._size=function(){return Mm(this.static)+Pm(this.key)+ih(this)};ua.prototype._size=function(){return gn.prototype._size.call(this)+1};no.prototype._size=Vo.prototype._size=function(){return gn.prototype._size.call(this)+4};et.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)};Gn.prototype._size=function(){return Mm(this.static)+(typeof this.key=="string"?this.key.length+2:0)+(this.value?1:0)};la.prototype._size=function(){return Gn.prototype._size.call(this)+1};Ge.prototype._size=function(){return!Nm||this.definition().unmangleable(Nm)?this.name.length:1};hi.prototype._size=function(){return this.name.length};ue.prototype._size=kn.prototype._size=function(){let{name:e,thedef:t}=this;return t&&t.global?e.length:e==="arguments"?9:Ge.prototype._size.call(this)};ca.prototype._size=()=>10;$o.prototype._size=function(){return this.name.length};ka.prototype._size=function(){return this.name.length};yn.prototype._size=()=>4;Ia.prototype._size=()=>5;ze.prototype._size=function(){return this.value.length+2};Ze.prototype._size=function(){let{value:e}=this;return e===0?1:e>0&&Math.floor(e)===e?Math.floor(Math.log10(e)+1):e.toString().length};Jr.prototype._size=function(){return this.value.length};xn.prototype._size=function(){return this.value.toString().length};ir.prototype._size=()=>4;ks.prototype._size=()=>3;Ft.prototype._size=()=>6;ar.prototype._size=()=>0;Pa.prototype._size=()=>8;jn.prototype._size=()=>4;wi.prototype._size=()=>5;vr.prototype._size=()=>6;er.prototype._size=()=>6;"use strict";var Ns=1,CE=2,RE=4,OE=8,ah=16,nc=32,Du=256,kE=512,IE=1024,q6=Du|kE|IE,sr=(e,t)=>e.flags&t,Ci=(e,t)=>{e.flags|=t},rc=(e,t)=>{e.flags&=~t},Fm=class extends ln{constructor(t,{false_by_default:n=!1,mangle_options:r=!1}){super();t.defaults!==void 0&&!t.defaults&&(n=!0),this.options=Nr(t,{arguments:!1,arrows:!n,booleans:!n,booleans_as_integers:!1,collapse_vars:!n,comparisons:!n,computed_props:!n,conditionals:!n,dead_code:!n,defaults:!0,directives:!n,drop_console:!1,drop_debugger:!n,ecma:5,evaluate:!n,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!n,hoist_vars:!1,ie8:!1,if_return:!n,inline:!n,join_vars:!n,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!n,module:!1,negate_iife:!n,passes:1,properties:!n,pure_getters:!n&&"strict",pure_funcs:null,reduce_funcs:!n,reduce_vars:!n,sequences:!n,side_effects:!n,switches:!n,top_retain:null,toplevel:!!(t&&t.top_retain),typeofs:!n,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_symbols:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!n,warnings:!1},!0);var i=this.options.global_defs;if(typeof i=="object")for(var a in i)a[0]==="@"&&Jn(i,a)&&(i[a.slice(1)]=Lo(i[a],{expression:!0}));this.options.inline===!0&&(this.options.inline=3);var o=this.options.pure_funcs;typeof o=="function"?this.pure_funcs=o:this.pure_funcs=o?function(h){return!o.includes(h.expression.print_to_string())}:Zn;var s=this.options.top_retain;s instanceof RegExp?this.top_retain=function(h){return s.test(h.name)}:typeof s=="function"?this.top_retain=s:s&&(typeof s=="string"&&(s=s.split(/,/)),this.top_retain=function(h){return s.includes(h.name)}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var u=this.options.toplevel;this.toplevel=typeof u=="string"?{funcs:/funcs/.test(u),vars:/vars/.test(u)}:{funcs:u,vars:u};var l=this.options.sequences;this.sequences_limit=l==1?800:l|0,this.evaluated_regexps=new Map,this._toplevel=void 0,this.mangle_options=r}option(t){return this.options[t]}exposed(t){if(t.export)return!0;if(t.global){for(var n=0,r=t.orig.length;n0||this.option("reduce_vars"))&&this._toplevel.reset_opt_flags(this),this._toplevel=this._toplevel.transform(this),n>1){let s=0;if(Bn(this._toplevel,()=>{s++}),s=0&&(i.body[o]=i.body[o].transform(r))}else i instanceof _t?(i.body=i.body.transform(r),i.alternative&&(i.alternative=i.alternative.transform(r))):i instanceof Rn&&(i.body=i.body.transform(r));return i});n.transform(r)});function VR(e,t){if(t=GR(t),!(t instanceof se)){var n;if(e instanceof Je){var r=e.elements;if(t=="length")return Ri(r.length,e);typeof t=="number"&&t in r&&(n=r[t])}else if(e instanceof tt){t=""+t;for(var i=e.properties,a=i.length;--a>=0;){var o=i[a];if(!(o instanceof Mt))return;!n&&i[a].key===t&&(n=i[a].value)}}return n instanceof ue&&n.fixed_value()||n}}function ic(e,t,n,r,i,a){var o=t.parent(i),s=Fa(n,o);if(s)return s;if(!a&&o instanceof ve&&o.expression===n&&!(r instanceof jt)&&!(r instanceof et)&&!o.is_callee_pure(e)&&(!(r instanceof mt)||!(o instanceof zn)&&r.contains_this()))return!0;if(o instanceof Je)return ic(e,t,o,o,i+1);if(o instanceof Mt&&n===o.value){var u=t.parent(i+1);return ic(e,t,u,u,i+2)}if(o instanceof Be&&o.expression===n){var l=VR(r,o.property);return!a&&ic(e,t,o,l,i+1)}}(function(e){e(se,Pr);function t(p,c){c.assignments=0,c.chained=!1,c.direct_access=!1,c.escaped=0,c.recursive_refs=0,c.references=[],c.single_use=void 0,c.scope.pinned()?c.fixed=!1:c.orig[0]instanceof Gi||!p.exposed(c)?c.fixed=c.init:c.fixed=!1}function n(p,c,f){f.variables.forEach(function(_){t(c,_),_.fixed===null?(p.defs_to_safe_ids.set(_.id,p.safe_ids),o(p,_,!0)):_.fixed&&(p.loop_ids.set(_.id,p.in_loop),o(p,_,!0))})}function r(p,c){c.block_scope&&c.block_scope.variables.forEach(f=>{t(p,f)})}function i(p){p.safe_ids=Object.create(p.safe_ids)}function a(p){p.safe_ids=Object.getPrototypeOf(p.safe_ids)}function o(p,c,f){p.safe_ids[c.id]=f}function s(p,c){if(c.single_use=="m")return!1;if(p.safe_ids[c.id]){if(c.fixed==null){var f=c.orig[0];if(f instanceof _n||f.name=="arguments")return!1;c.fixed=C(Ft,f)}return!0}return c.fixed instanceof Ht}function u(p,c,f,_){if(c.fixed===void 0)return!0;let y;return c.fixed===null&&(y=p.defs_to_safe_ids.get(c.id))?(y[c.id]=!1,p.defs_to_safe_ids.delete(c.id),!0):!Jn(p.safe_ids,c.id)||!s(p,c)||c.fixed===!1||c.fixed!=null&&(!_||c.references.length>c.assignments)?!1:c.fixed instanceof Ht?_ instanceof se&&c.fixed.parent_scope===f:c.orig.every(v=>!(v instanceof Gi||v instanceof Ti||v instanceof Zr))}function l(p,c,f){return c.option("unused")&&!f.scope.pinned()&&f.references.length-f.recursive_refs==1&&p.loop_ids.get(f.id)===p.in_loop}function h(p){return p?p.is_constant()||p instanceof Oe||p instanceof yn:!1}function d(p,c,f,_,y,v=0,A=1){var b=p.parent(v);if(!(y&&(y.is_constant()||y instanceof fi))){if(b instanceof $e&&(b.operator==="="||b.logical)&&_===b.right||b instanceof ve&&(_!==b.expression||b instanceof zn)||b instanceof or&&_===b.value&&_.scope!==c.scope||b instanceof rt&&_===b.value||b instanceof er&&_===b.value&&_.scope!==c.scope){A>1&&!(y&&y.is_constant_expression(f))&&(A=1),(!c.escaped||c.escaped>A)&&(c.escaped=A);return}else if(b instanceof Je||b instanceof vr||b instanceof X&&Ou.has(b.operator)||b instanceof Ne&&_!==b.condition||b instanceof We||b instanceof ke&&_===b.tail_node())d(p,c,f,b,b,v+1,A);else if(b instanceof Mt&&_===b.value){var I=p.parent(v+1);d(p,c,f,I,I,v+2,A)}else if(b instanceof Be&&_===b.expression&&(y=VR(y,b.property),d(p,c,f,b,y,v+1,A+1),y))return;v>0||b instanceof ke&&_!==b.tail_node()||b instanceof Ee||(c.direct_access=!0)}}let m=p=>Bn(p,c=>{if(c instanceof Ge){var f=c.definition();!f||(c instanceof ue&&f.references.push(c),f.fixed=!1)}});e(Si,function(p,c,f){return i(p),n(p,f,this),c(),a(p),!0}),e($e,function(p,c,f){var _=this;if(_.left instanceof ut){m(_.left);return}let y=()=>{if(_.logical)return _.left.walk(p),i(p),_.right.walk(p),a(p),!0};var v=_.left;if(!(v instanceof ue))return y();var A=v.definition(),b=u(p,A,v.scope,_.right);if(A.assignments++,!b)return y();var I=A.fixed;if(!I&&_.operator!="="&&!_.logical)return y();var T=_.operator=="=",S=T?_.right:_;return ic(f,p,_,S,0)?y():(A.references.push(v),_.logical||(T||(A.chained=!0),A.fixed=T?function(){return _.right}:function(){return C(X,_,{operator:_.operator.slice(0,-1),left:I instanceof se?I:I(),right:_.right})}),_.logical?(o(p,A,!1),i(p),_.right.walk(p),a(p),!0):(o(p,A,!1),_.right.walk(p),o(p,A,!0),d(p,A,v.scope,_,S,0,1),!0))}),e(X,function(p){if(!!Ou.has(this.operator))return this.left.walk(p),i(p),this.right.walk(p),a(p),!0}),e(Zt,function(p,c,f){r(f,this)}),e(tr,function(p){return i(p),this.expression.walk(p),a(p),i(p),oo(this,p),a(p),!0}),e(et,function(p,c){return rc(this,ah),i(p),c(),a(p),!0}),e(Ne,function(p){return this.condition.walk(p),i(p),this.consequent.walk(p),a(p),i(p),this.alternative.walk(p),a(p),!0}),e(wn,function(p,c){let f=p.safe_ids;return c(),p.safe_ids=f,!0}),e(ve,function(p){this.expression.walk(p),this.optional&&i(p);for(let c of this.args)c.walk(p);return!0}),e(Be,function(p){if(!!this.optional)return this.expression.walk(p),i(p),this.property instanceof se&&this.property.walk(p),!0}),e(Ui,function(p,c){return i(p),c(),a(p),!0});function g(p,c,f){if(rc(this,ah),i(p),n(p,f,this),this.uses_arguments){c(),a(p);return}var _;return!this.name&&(_=p.parent())instanceof ve&&_.expression===this&&!_.args.some(y=>y instanceof We)&&this.argnames.every(y=>y instanceof Ge)&&this.argnames.forEach((y,v)=>{if(!!y.definition){var A=y.definition();A.orig.length>1||(A.fixed===void 0&&(!this.uses_arguments||p.has_directive("use strict"))?(A.fixed=function(){return _.args[v]||C(Ft,_)},p.loop_ids.set(A.id,p.in_loop),o(p,A,!0)):A.fixed=!1)}}),c(),a(p),!0}e(Oe,g),e(Mr,function(p,c,f){r(f,this);let _=p.in_loop;return p.in_loop=this,i(p),this.body.walk(p),UE(this)&&(a(p),i(p)),this.condition.walk(p),a(p),p.in_loop=_,!0}),e(Gt,function(p,c,f){r(f,this),this.init&&this.init.walk(p);let _=p.in_loop;return p.in_loop=this,i(p),this.condition&&this.condition.walk(p),this.body.walk(p),this.step&&(UE(this)&&(a(p),i(p)),this.step.walk(p)),a(p),p.in_loop=_,!0}),e(dn,function(p,c,f){r(f,this),m(this.init),this.object.walk(p);let _=p.in_loop;return p.in_loop=this,i(p),this.body.walk(p),a(p),p.in_loop=_,!0}),e(_t,function(p){return this.condition.walk(p),i(p),this.body.walk(p),a(p),this.alternative&&(i(p),this.alternative.walk(p),a(p)),!0}),e(pn,function(p){return i(p),this.body.walk(p),a(p),!0}),e(Vr,function(){this.definition().fixed=!1}),e(ue,function(p,c,f){var _=this.definition();_.references.push(this),_.references.length==1&&!_.fixed&&_.orig[0]instanceof Ti&&p.loop_ids.set(_.id,p.in_loop);var y;_.fixed===void 0||!s(p,_)?_.fixed=!1:_.fixed&&(y=this.fixed_value(),y instanceof Oe&&zE(p,_)?_.recursive_refs++:y&&!f.exposed(_)&&l(p,f,_)?_.single_use=y instanceof Oe&&!y.pinned()||y instanceof et||_.scope===this.scope&&y.is_constant_expression():_.single_use=!1,ic(f,p,this,y,0,h(y))&&(_.single_use?_.single_use="m":_.fixed=!1)),d(p,_,this.scope,this,y,0,1)}),e(st,function(p,c,f){this.globals.forEach(function(_){t(f,_)}),n(p,f,this)}),e(Tn,function(p,c,f){return r(f,this),i(p),oo(this,p),a(p),this.bcatch&&(i(p),this.bcatch.walk(p),a(p)),this.bfinally&&this.bfinally.walk(p),!0}),e(Dt,function(p){var c=this;if(!(c.operator!=="++"&&c.operator!=="--")){var f=c.expression;if(f instanceof ue){var _=f.definition(),y=u(p,_,f.scope,!0);if(_.assignments++,!!y){var v=_.fixed;if(!!v)return _.references.push(f),_.chained=!0,_.fixed=function(){return C(X,c,{operator:c.operator.slice(0,-1),left:C(Ue,c,{operator:"+",expression:v instanceof se?v:v()}),right:C(Ze,c,{value:1})})},o(p,_,!0),!0}}}}),e(rt,function(p,c){var f=this;if(f.name instanceof ut){m(f.name);return}var _=f.name.definition();if(f.value){if(u(p,_,f.name.scope,f.value))return _.fixed=function(){return f.value},p.loop_ids.set(_.id,p.in_loop),o(p,_,!1),c(),o(p,_,!0),!0;_.fixed=!1}}),e(Xr,function(p,c,f){r(f,this);let _=p.in_loop;return p.in_loop=this,i(p),c(),a(p),p.in_loop=_,!0})})(function(e,t){e.DEFMETHOD("reduce_vars",t)});st.DEFMETHOD("reset_opt_flags",function(e){let t=this,n=e.option("reduce_vars"),r=new ln(function(i,a){if(rc(i,q6),n)return e.top_retain&&i instanceof Ht&&r.parent()===t&&Ci(i,IE),i.reduce_vars(r,a,e)});r.safe_ids=Object.create(null),r.in_loop=null,r.loop_ids=new Map,r.defs_to_safe_ids=new Map,t.walk(r)});Ge.DEFMETHOD("fixed_value",function(){var e=this.thedef.fixed;return!e||e instanceof se?e:e()});ue.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return e.length==1&&e[0]instanceof Zr});function Lm(e){return e instanceof jt||e instanceof mt}function $R(e){if(e instanceof yn)return!0;if(e instanceof ue)return e.definition().orig[0]instanceof Zr;if(e instanceof Be){if(e=e.expression,e instanceof ue){if(e.is_immutable())return!1;e=e.fixed_value()}return e?e instanceof xn?!1:e instanceof it?!0:$R(e):!0}return!1}function NE(e,t){if(!(e instanceof ue))return!1;for(var n=e.definition().orig,r=n.length;--r>=0;)if(n[r]instanceof t)return!0}function Bm(e){for(let t=0;;t++){let n=e.parent(t);if(n instanceof st||n instanceof Oe)return n;if(n.block_scope)return n.block_scope}}function PE(e,t){for(var n,r=0;(n=e.parent(r++))&&!(n instanceof Fe);)if(n instanceof Ln&&n.argname){n=n.argname.definition().scope;break}return n.find_variable(t)}function He(e,t){if(t.length==1)return t[0];if(t.length==0)throw new Error("trying to create a sequence with length zero!");return C(ke,e,{expressions:t.reduce(ME,[])})}function Ri(e,t){switch(typeof e){case"string":return C(ze,t,{value:e});case"number":return isNaN(e)?C(ks,t):isFinite(e)?1/e<0?C(Ue,t,{operator:"-",expression:C(Ze,t,{value:-e})}):C(Ze,t,{value:e}):e<0?C(Ue,t,{operator:"-",expression:C(Pa,t)}):C(Pa,t);case"boolean":return C(e?jn:wi,t);case"undefined":return C(Ft,t);default:if(e===null)return C(ir,t,{value:null});if(e instanceof RegExp)return C(xn,t,{value:{source:Yl(e.source),flags:e.flags}});throw new Error(Xl("Can't handle constant of type: {type}",{type:typeof e}))}}function Cu(e,t,n){return e instanceof Ue&&e.operator=="delete"||e instanceof ve&&e.expression===t&&(n instanceof Be||n instanceof ue&&n.name=="eval")?He(t,[C(Ze,t,{value:0}),n]):n}function ME(e,t){return t instanceof ke?e.push(...t.expressions):e.push(t),e}function Vm(e){if(e===null)return[];if(e instanceof Ye)return e.body;if(e instanceof dt)return[];if(e instanceof un)return[e];throw new Error("Can't convert thing to statement array")}function Ps(e){return e===null||e instanceof dt?!0:e instanceof Ye?e.body.length==0:!1}function FE(e){return!(e instanceof Br||e instanceof Ht||e instanceof ui||e instanceof li||e instanceof $t||e instanceof On)}function LE(e){return e instanceof qr&&e.body instanceof Ye?e.body:e}function BE(e){return e.TYPE!="Call"?!1:e.expression instanceof mt||BE(e.expression)}function Ma(e){return e instanceof ue&&e.definition().undeclared}var X6=Tt("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");ue.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&X6.has(this.name)});var UR=Tt("Infinity NaN undefined");function zR(e){return e instanceof Pa||e instanceof ks||e instanceof Ft}function $m(e,t){var n,r,i=t.find_parent(Fe).get_defun_scope();s();var a,o=10;do a=!1,l(e),t.option("dead_code")&&d(e,t),t.option("if_return")&&h(e,t),t.sequences_limit>0&&(g(e,t),c(e,t)),t.option("join_vars")&&_(e),t.option("collapse_vars")&&u(e,t);while(a&&o-- >0);function s(){var y=t.self(),v=0;do if(y instanceof Ln||y instanceof Ai)v++;else if(y instanceof qr)n=!0;else if(y instanceof Fe){i=y;break}else y instanceof Tn&&(r=!0);while(y=t.parent(v++))}function u(y,v){if(i.pinned())return y;for(var A,b=[],I=y.length,T=new Ar(function(k){if(z)return k;if(!$)return k!==O[B]?k:(B++,B1)||k instanceof qr&&!(k instanceof Gt)||k instanceof $r||k instanceof Tn||k instanceof Rn||k instanceof er||k instanceof $t||k instanceof et||me instanceof Gt&&k!==me.init||!ge&&k instanceof ue&&!k.is_declared(v)&&!zm.has(k)||k instanceof ue&&me instanceof ve&&eo(me,ao))return z=!0,k;if(!q&&(!pe||!ge)&&(me instanceof X&&Ou.has(me.operator)&&me.left!==k||me instanceof Ne&&me.condition!==k||me instanceof _t&&me.condition!==k)&&(q=me),re&&!(k instanceof kn)&&M.equivalent_to(k)){if(q)return z=!0,k;if(Fa(k,me))return H&&J++,k;if(J++,H&&D instanceof rt)return k;if(a=z=!0,D instanceof Yr)return C(Ue,D,D);if(D instanceof rt){var Me=D.name.definition(),Ae=D.value;return Me.references.length-Me.replaced==1&&!v.exposed(Me)?(Me.replaced++,xe&&zR(Ae)?Ae.transform(v):Cu(me,k,Ae)):C($e,D,{operator:"=",logical:!1,left:C(ue,D.name,D.name),right:Ae})}return rc(D,nc),D}var wt;return(k instanceof ve||k instanceof or&&(fe||M instanceof Be||Jt(M))||k instanceof Be&&(fe||k.expression.may_throw_on_access(v))||k instanceof ue&&(F.get(k.name)||fe&&Jt(k))||k instanceof rt&&k.value&&(F.has(k.name.name)||fe&&Jt(k.name))||(wt=Fa(k.left,k))&&(wt instanceof Be||F.has(wt.name))||we&&(r?k.has_side_effects(v):hn(k)))&&(K=k,k instanceof Fe&&(z=!0)),V(k)},function(k){z||(K===k&&(z=!0),q===k&&(q=null))}),S=new Ar(function(k){if(z)return k;if(!$)return k!==O[B]?k:(B++,B=0;){I==0&&v.option("unused")&&oe();var O=[];for(ae(y[I]);b.length>0;){O=b.pop();var B=0,D=O[O.length-1],H=null,K=null,q=null,M=Z(D);if(!(!M||$R(M)||M.has_side_effects(v))){var F=Pe(D),pe=fn(M);M instanceof ue&&F.set(M.name,!1);var fe=gt(D),ge=jr(),we=D.may_throw(v),xe=D.name instanceof _n,$=xe,z=!1,J=0,re=!A||!$;if(!re){for(var ce=v.self().argnames.lastIndexOf(D.name)+1;!z&&ceJ)J=!1;else{z=!1,B=0,$=xe;for(var Xe=I;!z&&Xe!(ho instanceof We))){var Me=v.has_directive("use strict");Me&&!Yf(Me,me.body)&&(Me=!1);var Ae=me.argnames.length;A=k.args.slice(Ae);for(var wt=new Set,lr=Ae;--lr>=0;){var qt=me.argnames[lr],Kn=k.args[lr];let ho=qt.definition&&qt.definition();if(!(ho&&ho.orig.length>1)&&(A.unshift(C(rt,qt,{name:qt,value:Kn})),!wt.has(qt.name)))if(wt.add(qt.name),qt instanceof We){var xr=k.args.slice(lr);xr.every(Lh=>!W(me,Lh,Me))&&b.unshift([C(rt,qt,{name:qt.expression,value:C(Je,k,{elements:xr})})])}else Kn?(Kn instanceof Oe&&Kn.pinned()||W(me,Kn,Me))&&(Kn=null):Kn=C(Ft,qt).transform(v),Kn&&b.unshift([C(rt,qt,{name:qt,value:Kn})])}}}function ae(k){if(O.push(k),k instanceof $e)k.left.has_side_effects(v)||b.push(O.slice()),ae(k.right);else if(k instanceof X)ae(k.left),ae(k.right);else if(k instanceof ve&&!eo(k,ao))ae(k.expression),k.args.forEach(ae);else if(k instanceof tr)ae(k.expression);else if(k instanceof Ne)ae(k.condition),ae(k.consequent),ae(k.alternative);else if(k instanceof Ot){var me=k.definitions.length,Me=me-200;for(Me<0&&(Me=0);Me1&&!(k.name instanceof _n)||(Me>1?ie(k):!v.exposed(me)))return C(ue,k.name,k.name)}else{let wt=k instanceof $e?k.left:k.expression;return!NE(wt,Gi)&&!NE(wt,Oa)&&wt}}function _e(k){return k instanceof $e?k.right:k.value}function Pe(k){var me=new Map;if(k instanceof Dt)return me;var Me=new ln(function(Ae){for(var wt=Ae;wt instanceof Be;)wt=wt.expression;(wt instanceof ue||wt instanceof yn)&&me.set(wt.name,me.get(wt.name)||ic(v,Me,Ae,Ae,0))});return _e(k).walk(Me),me}function nt(k){if(k.name instanceof _n){var me=v.parent(),Me=v.self().argnames,Ae=Me.indexOf(k.name);if(Ae<0)me.args.length=Math.min(me.args.length,Me.length-1);else{var wt=me.args;wt[Ae]&&(wt[Ae]=C(Ze,wt[Ae],{value:0}))}return!0}var lr=!1;return y[I].transform(new Ar(function(qt,Kn,xr){if(lr)return qt;if(qt===k||qt.body===k)return lr=!0,qt instanceof rt?(qt.value=qt.name instanceof Gi?C(Ft,qt.value):null,qt):xr?oi.skip:null},function(qt){if(qt instanceof ke)switch(qt.expressions.length){case 0:return null;case 1:return qt.expressions[0]}}))}function fn(k){for(;k instanceof Be;)k=k.expression;return k instanceof ue&&k.definition().scope===i&&!(n&&(F.has(k.name)||D instanceof Dt||D instanceof $e&&!D.logical&&D.operator!="="))}function gt(k){return k instanceof Dt?Um.has(k.operator):_e(k).has_side_effects(v)}function jr(){if(fe)return!1;if(H)return!0;if(M instanceof ue){var k=M.definition();if(k.references.length-k.replaced==(D instanceof rt?1:2))return!0}return!1}function Jt(k){if(!k.definition)return!0;var me=k.definition();return me.orig.length==1&&me.orig[0]instanceof Ti?!1:me.scope.get_defun_scope()!==i?!0:!me.references.every(Me=>{var Ae=Me.scope.get_defun_scope();return Ae.TYPE=="Scope"&&(Ae=Ae.parent_scope),Ae===i})}function hn(k,me){if(k instanceof $e)return hn(k.left,!0);if(k instanceof Dt)return hn(k.expression,!0);if(k instanceof rt)return k.value&&hn(k.value);if(me){if(k instanceof lt||k instanceof Ut)return hn(k.expression,!0);if(k instanceof ue)return k.definition().scope!==i}return!1}}function l(y){for(var v=[],A=0;A=0;){var S=y[T],O=we(T),B=y[O];if(I&&!B&&S instanceof Wt){if(!S.value){a=!0,y.splice(T,1);continue}if(S.value instanceof Ue&&S.value.operator=="void"){a=!0,y[T]=C(Ee,S,{body:S.value.expression});continue}}if(S instanceof _t){var D=La(S.body);if(pe(D)){D.label&&Tu(D.label.thedef.references,D),a=!0,S=S.clone(),S.condition=S.condition.negate(v);var H=ge(S.body,D);S.body=C(Ye,S,{body:Vm(S.alternative).concat(fe())}),S.alternative=C(Ye,S,{body:H}),y[T]=S.transform(v);continue}var D=La(S.alternative);if(pe(D)){D.label&&Tu(D.label.thedef.references,D),a=!0,S=S.clone(),S.body=C(Ye,S.body,{body:Vm(S.body).concat(fe())});var H=ge(S.alternative,D);S.alternative=C(Ye,S.alternative,{body:H}),y[T]=S.transform(v);continue}}if(S instanceof _t&&S.body instanceof Wt){var K=S.body.value;if(!K&&!S.alternative&&(I&&!B||B instanceof Wt&&!B.value)){a=!0,y[T]=C(Ee,S.condition,{body:S.condition});continue}if(K&&!S.alternative&&B instanceof Wt&&B.value){a=!0,S=S.clone(),S.alternative=B,y[T]=S.transform(v),y.splice(O,1);continue}if(K&&!S.alternative&&(!B&&I&&b||B instanceof Wt)){a=!0,S=S.clone(),S.alternative=B||C(Wt,S,{value:null}),y[T]=S.transform(v),B&&y.splice(O,1);continue}var q=y[xe(T)];if(v.option("sequences")&&I&&!S.alternative&&q instanceof _t&&q.body instanceof Wt&&we(O)==y.length&&B instanceof Ee){a=!0,S=S.clone(),S.alternative=C(Ye,B,{body:[B,C(Wt,B,{value:null})]}),y[T]=S.transform(v),y.splice(O,1);continue}}}function M($){for(var z=0,J=$.length;--J>=0;){var re=$[J];if(re instanceof _t&&re.body instanceof Wt&&++z>1)return!0}return!1}function F($){return!$||$ instanceof Ue&&$.operator=="void"}function pe($){if(!$)return!1;for(var z=T+1,J=y.length;z=0;){var J=y[z];if(!(J instanceof mn&&m(J)))break}return z}}function d(y,v){for(var A,b=v.self(),I=0,T=0,S=y.length;I!v.value)}function g(y,v){if(y.length<2)return;var A=[],b=0;function I(){if(!!A.length){var D=He(A[0],A);y[b++]=C(Ee,D,{body:D}),A=[]}}for(var T=0,S=y.length;T=v.sequences_limit&&I();var B=O.body;A.length>0&&(B=B.drop_side_effect_free(v)),B&&ME(A,B)}else O instanceof Ot&&m(O)||O instanceof Ht||I(),y[b++]=O}I(),y.length=b,b!=S&&(a=!0)}function p(y,v){if(!(y instanceof Ye))return y;for(var A=null,b=0,I=y.body.length;b{if(q instanceof Fe)return!0;if(q instanceof X&&q.operator==="in")return Qr})||(S.init?S.init=A(S.init):(S.init=I.body,b--,a=!0)):S instanceof dn?!(S.init instanceof li)&&!(S.init instanceof ui)&&(S.object=A(S.object)):S instanceof _t?S.condition=A(S.condition):(S instanceof sn||S instanceof Rn)&&(S.expression=A(S.expression))),v.option("conditionals")&&S instanceof _t){var O=[],B=p(S.body,O),D=p(S.alternative,O);if(B!==!1&&D!==!1&&O.length>0){var H=O.length;O.push(C(_t,S,{condition:S.condition,body:B||C(dt,S.body),alternative:D})),O.unshift(b,1),[].splice.apply(y,O),T+=H,b+=H+1,I=null,a=!0;continue}}y[b++]=S,I=S instanceof Ee?S:null}y.length=b}function f(y,v){if(y instanceof Ot){var A=y.definitions[y.definitions.length-1];if(A.value instanceof tt){var b;if(v instanceof $e&&!v.logical?b=[v]:v instanceof ke&&(b=v.expressions.slice()),!!b){var I=!1;do{var T=b[0];if(!(T instanceof $e)||T.operator!="="||!(T.left instanceof Be))break;var S=T.left.expression;if(!(S instanceof ue)||A.name.name!=S.name||!T.right.is_constant_expression(i))break;var O=T.left.property;if(O instanceof se&&(O=O.evaluate(t)),O instanceof se)break;O=""+O;var B=t.option("ecma")<2015&&t.has_directive("use strict")?function(H){return H.key!=O&&H.key&&H.key.name!=O}:function(H){return H.key&&H.key.name!=O};if(!A.value.properties.every(B))break;var D=A.value.properties.filter(function(H){return H.key===O})[0];D?D.value=new ke({start:D.start,expressions:[D.value.clone(),T.right.clone()],end:D.end}):A.value.properties.push(C(Mt,T,{key:O,value:T.right})),b.shift(),I=!0}while(b.length);return I&&b}}}}function _(y){for(var v,A=0,b=-1,I=y.length;A{if(r instanceof mn)return r.remove_initializers(),n.push(r),!0;if(r instanceof Ht&&(r===t||!e.has_directive("use strict")))return n.push(r===t?r:C(mn,r,{definitions:[C(rt,r,{name:C(zi,r.name,r.name),value:null})]})),!0;if(r instanceof $t||r instanceof On)return n.push(r),!0;if(r instanceof Fe)return!0})}function GR(e){if(e instanceof it)return e.getValue();if(!(e instanceof Ue&&e.operator=="void"&&e.expression instanceof it))return e}function so(e,t){return sr(e,OE)||e instanceof Ft||e instanceof Ue&&e.operator=="void"&&!e.expression.has_side_effects(t)}(function(e){se.DEFMETHOD("may_throw_on_access",function(n){return!n.option("pure_getters")||this._dot_throw(n)});function t(n){return/strict/.test(n.option("pure_getters"))}e(se,t),e(ir,Zn),e(Ft,Zn),e(it,pt),e(Je,pt),e(tt,function(n){if(!t(n))return!1;for(var r=this.properties.length;--r>=0;)if(this.properties[r]._dot_throw(n))return!0;return!1}),e(et,pt),e(Kt,pt),e(rr,Zn),e(We,function(n){return this.expression._dot_throw(n)}),e(mt,pt),e(jt,pt),e(Yr,pt),e(Ue,function(){return this.operator=="void"}),e(X,function(n){return(this.operator=="&&"||this.operator=="||"||this.operator=="??")&&(this.left._dot_throw(n)||this.right._dot_throw(n))}),e($e,function(n){return this.logical?!0:this.operator=="="&&this.right._dot_throw(n)}),e(Ne,function(n){return this.consequent._dot_throw(n)||this.alternative._dot_throw(n)}),e(lt,function(n){return t(n)?this.property=="prototype"?!(this.expression instanceof mt||this.expression instanceof et):!0:!1}),e(wn,function(n){return this.expression._dot_throw(n)}),e(ke,function(n){return this.tail_node()._dot_throw(n)}),e(ue,function(n){if(this.name==="arguments")return!1;if(sr(this,OE))return!0;if(!t(n)||Ma(this)&&this.is_declared(n)||this.is_immutable())return!1;var r=this.fixed_value();return!r||r._dot_throw(n)})})(function(e,t){e.DEFMETHOD("_dot_throw",t)});(function(e){let t=Tt("! delete"),n=Tt("in instanceof == != === !== < <= >= >");e(se,pt),e(Ue,function(){return t.has(this.operator)}),e(X,function(){return n.has(this.operator)||Ou.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),e(Ne,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),e($e,function(){return this.operator=="="&&this.right.is_boolean()}),e(ke,function(){return this.tail_node().is_boolean()}),e(jn,Zn),e(wi,Zn)})(function(e,t){e.DEFMETHOD("is_boolean",t)});(function(e){e(se,pt),e(Ze,Zn);var t=Tt("+ - ~ ++ --");e(Dt,function(){return t.has(this.operator)});var n=Tt("- * / % & | ^ << >> >>>");e(X,function(r){return n.has(this.operator)||this.operator=="+"&&this.left.is_number(r)&&this.right.is_number(r)}),e($e,function(r){return n.has(this.operator.slice(0,-1))||this.operator=="="&&this.right.is_number(r)}),e(ke,function(r){return this.tail_node().is_number(r)}),e(Ne,function(r){return this.consequent.is_number(r)&&this.alternative.is_number(r)})})(function(e,t){e.DEFMETHOD("is_number",t)});(function(e){e(se,pt),e(ze,Zn),e(on,Zn),e(Ue,function(){return this.operator=="typeof"}),e(X,function(t){return this.operator=="+"&&(this.left.is_string(t)||this.right.is_string(t))}),e($e,function(t){return(this.operator=="="||this.operator=="+=")&&this.right.is_string(t)}),e(ke,function(t){return this.tail_node().is_string(t)}),e(Ne,function(t){return this.consequent.is_string(t)&&this.alternative.is_string(t)})})(function(e,t){e.DEFMETHOD("is_string",t)});var Ou=Tt("&& || ??"),Um=Tt("delete ++ --");function Fa(e,t){if(t instanceof Dt&&Um.has(t.operator))return t.expression;if(t instanceof $e&&t.left===e)return e}(function(e){function t(n,r){if(n instanceof se)return C(n.CTOR,r,n);if(Array.isArray(n))return C(Je,r,{elements:n.map(function(o){return t(o,r)})});if(n&&typeof n=="object"){var i=[];for(var a in n)Jn(n,a)&&i.push(C(Mt,r,{key:a,value:t(n[a],r)}));return C(tt,r,{properties:i})}return Ri(n,r)}st.DEFMETHOD("resolve_defines",function(n){return n.option("global_defs")?(this.figure_out_scope({ie8:n.option("ie8")}),this.transform(new Ar(function(r){var i=r._find_defs(n,"");if(!!i){for(var a=0,o=r,s;(s=this.parent(a++))&&!(!(s instanceof Be)||s.expression!==o);)o=s;if(!Fa(o,s))return i}}))):this}),e(se,Pr),e(wn,function(n,r){return this.expression._find_defs(n,r)}),e(lt,function(n,r){return this.expression._find_defs(n,"."+this.property+r)}),e(kn,function(){!!this.global()}),e(ue,function(n,r){if(!!this.global()){var i=n.option("global_defs"),a=this.name+r;if(Jn(i,a))return t(i[a],this)}})})(function(e,t){e.DEFMETHOD("_find_defs",t)});function Ho(e,t){return e.size()>t.size()?t:e}function Y6(e,t){return Ho(C(Ee,e,{body:e}),C(Ee,t,{body:t})).body}function ha(e,t,n){return(Di(e)?Y6:Ho)(t,n)}function VE(e){let t=new Map;for(var n of Object.keys(e))t.set(n,Tt(e[n]));return t}var ku=["constructor","toString","valueOf"],Iu=VE({Array:["indexOf","join","lastIndexOf","slice"].concat(ku),Boolean:ku,Function:ku,Number:["toExponential","toFixed","toPrecision"].concat(ku),Object:ku,RegExp:["test"].concat(ku),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(ku)}),jR=VE({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]});(function(e){se.DEFMETHOD("evaluate",function(h){if(!h.option("evaluate"))return this;var d=this._eval(h,1);return!d||d instanceof RegExp?d:typeof d=="function"||typeof d=="object"?this:d});var t=Tt("! ~ - + void");se.DEFMETHOD("is_constant",function(){return this instanceof it?!(this instanceof xn):this instanceof Ue&&this.expression instanceof it&&t.has(this.operator)}),e(un,function(){throw new Error(Xl("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(Oe,Qa),e(et,Qa),e(se,Qa),e(it,function(){return this.getValue()}),e(Jr,Qa),e(xn,function(h){let d=h.evaluated_regexps.get(this);if(d===void 0){try{d=(0,eval)(this.print_to_string())}catch(m){d=null}h.evaluated_regexps.set(this,d)}return d||this}),e(on,function(){return this.segments.length!==1?this:this.segments[0].value}),e(mt,function(h){if(h.option("unsafe")){var d=function(){};return d.node=this,d.toString=()=>this.print_to_string(),d}return this}),e(Je,function(h,d){if(h.option("unsafe")){for(var m=[],g=0,p=this.elements.length;gtypeof h=="object"||typeof h=="function"||typeof h=="symbol";e(X,function(h,d){r.has(this.operator)||d++;var m=this.left._eval(h,d);if(m===this.left)return this;var g=this.right._eval(h,d);if(g===this.right)return this;var p;if(m!=null&&g!=null&&i.has(this.operator)&&a(m)&&a(g)&&typeof m==typeof g)return this;switch(this.operator){case"&&":p=m&&g;break;case"||":p=m||g;break;case"??":p=m!=null?m:g;break;case"|":p=m|g;break;case"&":p=m&g;break;case"^":p=m^g;break;case"+":p=m+g;break;case"*":p=m*g;break;case"**":p=Math.pow(m,g);break;case"/":p=m/g;break;case"%":p=m%g;break;case"-":p=m-g;break;case"<<":p=m<>":p=m>>g;break;case">>>":p=m>>>g;break;case"==":p=m==g;break;case"===":p=m===g;break;case"!=":p=m!=g;break;case"!==":p=m!==g;break;case"<":p=m":p=m>g;break;case">=":p=m>=g;break;default:return this}return isNaN(p)&&h.find_parent(Rn)?this:p}),e(Ne,function(h,d){var m=this.condition._eval(h,d);if(m===this.condition)return this;var g=m?this.consequent:this.alternative,p=g._eval(h,d);return p===g?this:p});let o=new Set;e(ue,function(h,d){if(o.has(this))return this;var m=this.fixed_value();if(!m)return this;o.add(this);let g=m._eval(h,d);if(o.delete(this),g===m)return this;if(g&&typeof g=="object"){var p=this.definition().escaped;if(p&&d>p)return this}return g});var s={Array,Math,Number,Object,String},u=VE({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]});let l=new Set(["dotAll","global","ignoreCase","multiline","sticky","unicode"]);e(Be,function(h,d){if(!(this.optional&&this.expression._eval(h,d)==null)){if(h.option("unsafe")){var m=this.property;if(m instanceof se&&(m=m._eval(h,d),m===this.property))return this;var g=this.expression,p;if(Ma(g)){var c,f=g.name==="hasOwnProperty"&&m==="call"&&(c=h.parent()&&h.parent().args)&&c&&c[0]&&c[0].evaluate(h);if(f=f instanceof lt?f.expression:f,f==null||f.thedef&&f.thedef.undeclared)return this.clone();var _=u.get(g.name);if(!_||!_.has(m))return this;p=s[g.name]}else{if(p=g._eval(h,d+1),p instanceof RegExp){if(m=="source")return Yl(p.source);if(m=="flags"||l.has(m))return p[m]}if(!p||p===g||!Jn(p,m))return this;if(typeof p=="function")switch(m){case"name":return p.node.name?p.node.name.name:"";case"length":return p.node.length_property();default:return this}}return p[m]}return this}}),e(wn,function(h,d){let m=this.expression._eval(h,d);return m===this.expression?this:m}),e(ve,function(h,d){var m=this.expression;if(!(this.optional&&this.expression._eval(h,d)==null)){if(h.option("unsafe")&&m instanceof Be){var g=m.property;if(g instanceof se&&(g=g._eval(h,d),g===m.property))return this;var p,c=m.expression;if(Ma(c)){var f=c.name==="hasOwnProperty"&&g==="call"&&this.args[0]&&this.args[0].evaluate(h);if(f=f instanceof lt?f.expression:f,f==null||f.thedef&&f.thedef.undeclared)return this.clone();var _=jR.get(c.name);if(!_||!_.has(g))return this;p=s[c.name]}else{if(p=c._eval(h,d+1),p===c||!p)return this;var y=Iu.get(p.constructor.name);if(!y||!y.has(g))return this}for(var v=[],A=0,b=this.args.length;A=":return a.operator="<",a;case">":return a.operator="<=",a}switch(o){case"==":return a.operator="!=",a;case"!=":return a.operator="==",a;case"===":return a.operator="!==",a;case"!==":return a.operator="===",a;case"&&":return a.operator="||",a.left=a.left.negate(r,i),a.right=a.right.negate(r),n(this,a,i);case"||":return a.operator="&&",a.left=a.left.negate(r,i),a.right=a.right.negate(r),n(this,a,i);case"??":return a.right=a.right.negate(r),n(this,a,i)}return t(this)})})(function(e,t){e.DEFMETHOD("negate",function(n,r){return t.call(this,n,r)})});var Z6=Tt("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");ve.DEFMETHOD("is_callee_pure",function(e){if(e.option("unsafe")){var t=this.expression,n=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&t.expression.name==="hasOwnProperty"&&(n==null||n.thedef&&n.thedef.undeclared))return!1;if(Ma(t)&&Z6.has(t.name))return!0;let r;if(t instanceof lt&&Ma(t.expression)&&(r=jR.get(t.expression.name))&&r.has(t.property))return!0}return!!eo(this,Zl)||!e.pure_funcs(this)});se.DEFMETHOD("is_call_pure",pt);lt.DEFMETHOD("is_call_pure",function(e){if(!e.option("unsafe"))return;let t=this.expression,n;return t instanceof Je?n=Iu.get("Array"):t.is_boolean()?n=Iu.get("Boolean"):t.is_number(e)?n=Iu.get("Number"):t instanceof xn?n=Iu.get("RegExp"):t.is_string(e)?n=Iu.get("String"):this.may_throw_on_access(e)||(n=Iu.get("Object")),n&&n.has(this.property)});var zm=new Set(["Number","String","Array","Object","Function","Promise"]);(function(e){e(se,Zn),e(dt,pt),e(it,pt),e(yn,pt);function t(n,r){for(var i=n.length;--i>=0;)if(n[i].has_side_effects(r))return!0;return!1}e(Zt,function(n){return t(this.body,n)}),e(ve,function(n){return!this.is_callee_pure(n)&&(!this.expression.is_call_pure(n)||this.expression.has_side_effects(n))?!0:t(this.args,n)}),e(sn,function(n){return this.expression.has_side_effects(n)||t(this.body,n)}),e(tr,function(n){return this.expression.has_side_effects(n)||t(this.body,n)}),e(Tn,function(n){return t(this.body,n)||this.bcatch&&this.bcatch.has_side_effects(n)||this.bfinally&&this.bfinally.has_side_effects(n)}),e(_t,function(n){return this.condition.has_side_effects(n)||this.body&&this.body.has_side_effects(n)||this.alternative&&this.alternative.has_side_effects(n)}),e(pn,function(n){return this.body.has_side_effects(n)}),e(Ee,function(n){return this.body.has_side_effects(n)}),e(Oe,pt),e(et,function(n){return this.extends&&this.extends.has_side_effects(n)?!0:t(this.properties,n)}),e(X,function(n){return this.left.has_side_effects(n)||this.right.has_side_effects(n)}),e($e,Zn),e(Ne,function(n){return this.condition.has_side_effects(n)||this.consequent.has_side_effects(n)||this.alternative.has_side_effects(n)}),e(Dt,function(n){return Um.has(this.operator)||this.expression.has_side_effects(n)}),e(ue,function(n){return!this.is_declared(n)&&!zm.has(this.name)}),e(hi,pt),e(kn,pt),e(tt,function(n){return t(this.properties,n)}),e(Kt,function(n){return this.computed_key()&&this.key.has_side_effects(n)||this.value&&this.value.has_side_effects(n)}),e(Gn,function(n){return this.computed_key()&&this.key.has_side_effects(n)||this.static&&this.value&&this.value.has_side_effects(n)}),e(gn,function(n){return this.computed_key()&&this.key.has_side_effects(n)}),e(rr,function(n){return this.computed_key()&&this.key.has_side_effects(n)}),e(Sr,function(n){return this.computed_key()&&this.key.has_side_effects(n)}),e(Je,function(n){return t(this.elements,n)}),e(lt,function(n){return!this.optional&&this.expression.may_throw_on_access(n)||this.expression.has_side_effects(n)}),e(Ut,function(n){return this.optional&&zr(this.expression)?!1:!this.optional&&this.expression.may_throw_on_access(n)||this.expression.has_side_effects(n)||this.property.has_side_effects(n)}),e(wn,function(n){return this.expression.has_side_effects(n)}),e(ke,function(n){return t(this.expressions,n)}),e(Ot,function(n){return t(this.definitions,n)}),e(rt,function(){return this.value}),e(Fr,pt),e(on,function(n){return t(this.segments,n)})})(function(e,t){e.DEFMETHOD("has_side_effects",t)});(function(e){e(se,Zn),e(it,pt),e(dt,pt),e(Oe,pt),e(kn,pt),e(yn,pt);function t(n,r){for(var i=n.length;--i>=0;)if(n[i].may_throw(r))return!0;return!1}e(et,function(n){return this.extends&&this.extends.may_throw(n)?!0:t(this.properties,n)}),e(Je,function(n){return t(this.elements,n)}),e($e,function(n){return this.right.may_throw(n)?!0:!n.has_directive("use strict")&&this.operator=="="&&this.left instanceof ue?!1:this.left.may_throw(n)}),e(X,function(n){return this.left.may_throw(n)||this.right.may_throw(n)}),e(Zt,function(n){return t(this.body,n)}),e(ve,function(n){return this.optional&&zr(this.expression)?!1:t(this.args,n)?!0:this.is_callee_pure(n)?!1:this.expression.may_throw(n)?!0:!(this.expression instanceof Oe)||t(this.expression.body,n)}),e(tr,function(n){return this.expression.may_throw(n)||t(this.body,n)}),e(Ne,function(n){return this.condition.may_throw(n)||this.consequent.may_throw(n)||this.alternative.may_throw(n)}),e(Ot,function(n){return t(this.definitions,n)}),e(_t,function(n){return this.condition.may_throw(n)||this.body&&this.body.may_throw(n)||this.alternative&&this.alternative.may_throw(n)}),e(pn,function(n){return this.body.may_throw(n)}),e(tt,function(n){return t(this.properties,n)}),e(Kt,function(n){return this.value?this.value.may_throw(n):!1}),e(Gn,function(n){return this.computed_key()&&this.key.may_throw(n)||this.static&&this.value&&this.value.may_throw(n)}),e(gn,function(n){return this.computed_key()&&this.key.may_throw(n)}),e(rr,function(n){return this.computed_key()&&this.key.may_throw(n)}),e(Sr,function(n){return this.computed_key()&&this.key.may_throw(n)}),e(Wt,function(n){return this.value&&this.value.may_throw(n)}),e(ke,function(n){return t(this.expressions,n)}),e(Ee,function(n){return this.body.may_throw(n)}),e(lt,function(n){return!this.optional&&this.expression.may_throw_on_access(n)||this.expression.may_throw(n)}),e(Ut,function(n){return this.optional&&zr(this.expression)?!1:!this.optional&&this.expression.may_throw_on_access(n)||this.expression.may_throw(n)||this.property.may_throw(n)}),e(wn,function(n){return this.expression.may_throw(n)}),e(sn,function(n){return this.expression.may_throw(n)||t(this.body,n)}),e(ue,function(n){return!this.is_declared(n)&&!zm.has(this.name)}),e(hi,pt),e(Tn,function(n){return this.bcatch?this.bcatch.may_throw(n):t(this.body,n)||this.bfinally&&this.bfinally.may_throw(n)}),e(Dt,function(n){return this.operator=="typeof"&&this.expression instanceof ue?!1:this.expression.may_throw(n)}),e(rt,function(n){return this.value?this.value.may_throw(n):!1})})(function(e,t){e.DEFMETHOD("may_throw",t)});(function(e){function t(n){let r=!0;return Bn(this,i=>{if(i instanceof ue){if(sr(this,ah))return r=!1,Qr;var a=i.definition();if(Yf(a,this.enclosed)&&!this.variables.has(a.name)){if(n){var o=n.find_variable(i);if(a.undeclared?!o:o===a)return r="f",!0}return r=!1,Qr}return!0}if(i instanceof yn&&this instanceof jt)return r=!1,Qr}),r}e(se,pt),e(it,Zn),e(et,function(n){if(this.extends&&!this.extends.is_constant_expression(n))return!1;for(let r of this.properties)if(r.computed_key()&&!r.key.is_constant_expression(n)||r.static&&r.value&&!r.value.is_constant_expression(n))return!1;return t.call(this,n)}),e(Oe,t),e(Dt,function(){return this.expression.is_constant_expression()}),e(X,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(Je,function(){return this.elements.every(n=>n.is_constant_expression())}),e(tt,function(){return this.properties.every(n=>n.is_constant_expression())}),e(Kt,function(){return!!(!(this.key instanceof se)&&this.value&&this.value.is_constant_expression())})})(function(e,t){e.DEFMETHOD("is_constant_expression",t)});function La(e){return e&&e.aborts()}(function(e){e(un,ws),e(Go,Qa);function t(){for(var n=0;n{if(v instanceof kn){let A=v.definition();(f||A.global)&&!a.has(A.id)&&a.set(A.id,A)}}),_.value){if(_.name instanceof ut)_.walk(h);else{var y=_.name.definition();Zf(u,y.id,_.value),!y.chained&&_.name.fixed_value()===_.value&&o.set(y.id,_)}_.value.has_side_effects(e)&&_.value.walk(h)}}),!0}return m(g,p)}});t.walk(h),h=new ln(m),a.forEach(function(g){var p=u.get(g.id);p&&p.forEach(function(c){c.walk(h)})});var d=new Ar(function(p,c,f){var _=d.parent();if(r){let q=i(p);if(q instanceof ue){var v=q.definition(),y=a.has(v.id);if(p instanceof $e){if(!y||o.has(v.id)&&o.get(v.id)!==p)return Cu(_,p,p.right.transform(d))}else if(!y)return f?oi.skip:C(Ze,p,{value:0})}}if(l===t){var v;if(p.name&&(p instanceof fi&&!xs(e.option("keep_classnames"),(v=p.name.definition()).name)||p instanceof mt&&!xs(e.option("keep_fnames"),(v=p.name.definition()).name))&&(!a.has(v.id)||v.orig.length>1)&&(p.name=null),p instanceof Oe&&!(p instanceof Si))for(var A=!e.option("keep_fargs"),b=p.argnames,I=b.length;--I>=0;){var T=b[I];T instanceof We&&(T=T.expression),T instanceof br&&(T=T.left),!(T instanceof ut)&&!a.has(T.definition().id)?(Ci(T,Ns),A&&b.pop()):A=!1}if((p instanceof Ht||p instanceof Br)&&p!==t){let q=p.name.definition();if(!(q.global&&!n||a.has(q.id))){if(q.eliminated++,p instanceof Br){let F=p.drop_side_effect_free(e);if(F)return C(Ee,p,{body:F})}return f?oi.skip:C(dt,p)}}if(p instanceof Ot&&!(_ instanceof dn&&_.init===p)){var S=!(_ instanceof st)&&!(p instanceof mn),O=[],B=[],D=[],H=[];switch(p.definitions.forEach(function(q){q.value&&(q.value=q.value.transform(d));var M=q.name instanceof ut,F=M?new Is(null,{name:""}):q.name.definition();if(S&&F.global)return D.push(q);if(!(r||S)||M&&(q.name.names.length||q.name.is_array||e.option("pure_getters")!=!0)||a.has(F.id)){if(q.value&&o.has(F.id)&&o.get(F.id)!==q&&(q.value=q.value.drop_side_effect_free(e)),q.name instanceof zi){var pe=s.get(F.id);if(pe.length>1&&(!q.value||F.orig.indexOf(q.name)>F.eliminated)){if(q.value){var fe=C(ue,q.name,q.name);F.references.push(fe);var ge=C($e,q,{operator:"=",logical:!1,left:fe,right:q.value});o.get(F.id)===q&&o.set(F.id,ge),H.push(ge.transform(d))}Tu(pe,q),F.eliminated++;return}}q.value?(H.length>0&&(D.length>0?(H.push(q.value),q.value=He(q.value,H)):O.push(C(Ee,p,{body:He(p,H)})),H=[]),D.push(q)):B.push(q)}else if(F.orig[0]instanceof Vr){var we=q.value&&q.value.drop_side_effect_free(e);we&&H.push(we),q.value=null,B.push(q)}else{var we=q.value&&q.value.drop_side_effect_free(e);we&&H.push(we),F.eliminated++}}),(B.length>0||D.length>0)&&(p.definitions=B.concat(D),O.push(p)),H.length>0&&O.push(C(Ee,p,{body:He(p,H)})),O.length){case 0:return f?oi.skip:C(dt,p);case 1:return O[0];default:return f?oi.splice(O):C(Ye,p,{body:O})}}if(p instanceof Gt){c(p,this);var K;return p.init instanceof Ye&&(K=p.init,p.init=K.body.pop(),K.body.push(p)),p.init instanceof Ee?p.init=p.init.body:Ps(p.init)&&(p.init=null),K?f?oi.splice(K.body):K:p}if(p instanceof pn&&p.body instanceof Gt){if(c(p,this),p.body instanceof Ye){var K=p.body;return p.body=K.body.pop(),K.body.push(p),f?oi.splice(K.body):K}return p}if(p instanceof Ye)return c(p,this),f&&p.body.every(FE)?oi.splice(p.body):p;if(p instanceof Fe){let q=l;return l=p,c(p,this),l=q,p}}});t.transform(d);function m(g,p){var c;let f=i(g);if(f instanceof ue&&!NE(g.left,fa)&&t.variables.get(f.name)===(c=f.definition()))return g instanceof $e&&(g.right.walk(h),!c.chained&&g.left.fixed_value()===g.right&&o.set(c.id,g)),!0;if(g instanceof ue){if(c=g.definition(),!a.has(c.id)&&(a.set(c.id,c),c.orig[0]instanceof Vr)){let y=c.scope.is_block_scope()&&c.scope.get_defun_scope().variables.get(c.name);y&&a.set(y.id,y)}return!0}if(g instanceof Fe){var _=l;return l=g,p(),l=_,!0}}});Fe.DEFMETHOD("hoist_declarations",function(e){var t=this;if(e.has_directive("use asm")||!Array.isArray(t.body))return t;var n=e.option("hoist_funs"),r=e.option("hoist_vars");if(n||r){var i=[],a=[],o=new Map,s=0,u=0;Bn(t,f=>{if(f instanceof Fe&&f!==t)return!0;if(f instanceof mn)return++u,!0}),r=r&&u>1;var l=new Ar(function(_){if(_!==t){if(_ instanceof An)return i.push(_),C(dt,_);if(n&&_ instanceof Ht&&!(l.parent()instanceof $t)&&l.parent()===t)return a.push(_),C(dt,_);if(r&&_ instanceof mn&&!_.definitions.some(b=>b.name instanceof ut)){_.definitions.forEach(function(b){o.set(b.name.name,b),++s});var y=_.to_assignments(e),v=l.parent();if(v instanceof dn&&v.init===_){if(y==null){var A=_.definitions[0].name;return C(ue,A,A)}return y}return v instanceof Gt&&v.init===_?y:y?C(Ee,_,{body:y}):C(dt,_)}if(_ instanceof Fe)return _}});if(t=t.transform(l),s>0){var h=[];let f=t instanceof Oe,_=f?t.args_as_names():null;if(o.forEach((y,v)=>{f&&_.some(A=>A.name===y.name.name)?o.delete(v):(y=y.clone(),y.value=null,h.push(y),o.set(v,y))}),h.length>0){for(var d=0;dh instanceof We||h.computed_key())){o(a,this);let h=new Map,d=[];return l.properties.forEach(({key:m,value:g})=>{let p=Bm(i),c=t.create_symbol(s.CTOR,{source:s,scope:p,conflict_scopes:new Set([p,...s.definition().references.map(f=>f.scope)]),tentative_name:s.name+"_"+m});h.set(String(m),c.definition()),d.push(C(rt,a,{name:c,value:g}))}),r.set(u.id,h),oi.splice(d)}}else if(a instanceof Be&&a.expression instanceof ue){let s=r.get(a.expression.definition().id);if(s){let u=s.get(String(GR(a.property))),l=C(ue,a,{name:u.name,scope:a.expression.scope,thedef:u});return l.reference({}),l}}});return t.transform(i)});(function(e){function t(n,r,i){var a=n.length;if(!a)return null;for(var o=[],s=!1,u=0;u0&&(o[0].body=a.concat(o[0].body)),e.body=o;n=o[o.length-1];){var p=n.body[n.body.length-1];if(p instanceof Lr&&t.loopcontrol_target(p)===e&&n.body.pop(),n.body.length||n instanceof tr&&(s||n.expression.has_side_effects(t)))break;o.pop()===s&&(s=null)}if(o.length==0)return C(Ye,e,{body:a.concat(C(Ee,e.expression,{body:e.expression}))}).optimize(t);if(o.length==1&&(o[0]===u||o[0]===s)){var c=!1,f=new ln(function(v){if(c||v instanceof Oe||v instanceof Ee)return!0;v instanceof Lr&&f.loopcontrol_target(v)===e&&(c=!0)});if(e.walk(f),!c){var _=o[0].body.slice(),d=o[0].expression;return d&&_.unshift(C(Ee,d,{body:d})),_.unshift(C(Ee,e.expression,{body:e.expression})),C(Ye,e,{body:_}).optimize(t)}}return e;function y(v,A){A&&!La(A)?A.body=A.body.concat(v.body):Ru(t,v,a)}});je(Tn,function(e,t){if($m(e.body,t),e.bcatch&&e.bfinally&&e.bfinally.body.every(Ps)&&(e.bfinally=null),t.option("dead_code")&&e.body.every(Ps)){var n=[];return e.bcatch&&Ru(t,e.bcatch,n),e.bfinally&&n.push(...e.bfinally.body),C(Ye,e,{body:n}).optimize(t)}return e});Ot.DEFMETHOD("remove_initializers",function(){var e=[];this.definitions.forEach(function(t){t.name instanceof kn?(t.value=null,e.push(t)):Bn(t.name,n=>{n instanceof kn&&e.push(C(rt,t,{name:n,value:null}))})}),this.definitions=e});Ot.DEFMETHOD("to_assignments",function(e){var t=e.option("reduce_vars"),n=[];for(let o of this.definitions){if(o.value){var r=C(ue,o.name,o.name);n.push(C($e,o,{operator:"=",logical:!1,left:r,right:o.value})),t&&(r.definition().fixed=!1)}else if(o.value){var i=C(rt,o,{name:o.name,value:o.value}),a=C(mn,o,{definitions:[i]});n.push(a)}let s=o.name.definition();s.eliminated++,s.replaced--}return n.length==0?null:He(this,n)});je(Ot,function(e){return e.definitions.length==0?C(dt,e):e});je(rt,function(e){return e.name instanceof Oa&&e.value!=null&&so(e.value)&&(e.value=null),e});je(On,function(e){return e});function WR(e,t){return t.top_retain&&e instanceof Ht&&sr(e,IE)&&e.name&&t.top_retain(e.name)}je(ve,function(e,t){var n=e.expression,r=n;XR(e.args);var i=e.args.every(V=>!(V instanceof We));if(t.option("reduce_vars")&&r instanceof ue&&!eo(e,ao)){let V=r.fixed_value();WR(V,t)||(r=V)}if(e.optional&&zr(r))return C(Ft,e);var a=r instanceof Oe;if(a&&r.pinned())return e;if(t.option("unused")&&i&&a&&!r.uses_arguments){for(var o=0,s=0,u=0,l=e.args.length;u=r.argnames.length;if(d||sr(r.argnames[u],Ns)){var h=e.args[u].drop_side_effect_free(t);if(h)e.args[o++]=h;else if(!d){e.args[o++]=C(Ze,e.args[u],{value:0});continue}}else e.args[o++]=e.args[u];s=o}e.args.length=s}if(t.option("unsafe")){if(Ma(n))switch(n.name){case"Array":if(e.args.length!=1)return C(Je,e,{elements:e.args}).optimize(t);if(e.args[0]instanceof Ze&&e.args[0].value<=11){let V=[];for(let le=0;le=1&&e.args.length<=2&&e.args.every(V=>{var le=V.evaluate(t);return m.push(le),V!==le})){let[V,le]=m;V=Yl(new RegExp(V).source);let W=C(xn,e,{value:{source:V,flags:le}});if(W._eval(t)!==W)return W}break}else if(n instanceof lt)switch(n.property){case"toString":if(e.args.length==0&&!n.expression.may_throw_on_access(t))return C(X,e,{left:C(ze,e,{value:""}),operator:"+",right:n.expression}).optimize(t);break;case"join":if(n.expression instanceof Je)e:{var g;if(e.args.length>0&&(g=e.args[0].evaluate(t),g===e.args[0]))break e;for(var p=[],c=[],u=0,l=n.expression.elements.length;u0&&(p.push(C(ze,e,{value:c.join(g)})),c.length=0),p.push(f))}if(c.length>0&&p.push(C(ze,e,{value:c.join(g)})),p.length==0)return C(ze,e,{value:""});if(p.length==1)return p[0].is_string(t)?p[0]:C(X,p[0],{operator:"+",left:C(ze,e,{value:""}),right:p[0]});if(g==""){var y;return p[0].is_string(t)||p[1].is_string(t)?y=p.shift():y=C(ze,e,{value:""}),p.reduce(function(le,W){return C(X,W,{operator:"+",left:le,right:W})},y).optimize(t)}var h=e.clone();return h.expression=h.expression.clone(),h.expression.expression=h.expression.expression.clone(),h.expression.expression.elements=p,ha(t,e,h)}break;case"charAt":if(n.expression.is_string(t)){var v=e.args[0],A=v?v.evaluate(t):0;if(A!==v)return C(Ut,n,{expression:n.expression,property:Ri(A|0,v||n)}).optimize(t)}break;case"apply":if(e.args.length==2&&e.args[1]instanceof Je){var b=e.args[1].elements.slice();return b.unshift(e.args[0]),C(ve,e,{expression:C(lt,n,{expression:n.expression,optional:!1,property:"call"}),args:b}).optimize(t)}break;case"call":var I=n.expression;if(I instanceof ue&&(I=I.fixed_value()),I instanceof Oe&&!I.contains_this())return(e.args.length?He(this,[e.args[0],C(ve,e,{expression:n.expression,args:e.args.slice(1)})]):C(ve,e,{expression:n.expression,args:[]})).optimize(t);break}}if(t.option("unsafe_Function")&&Ma(n)&&n.name=="Function"){if(e.args.length==0)return C(mt,e,{argnames:[],body:[]}).optimize(t);if(e.args.every(V=>V instanceof ze))try{var T="n(function("+e.args.slice(0,-1).map(function(V){return V.value}).join(",")+"){"+e.args[e.args.length-1].value+"})",S=Lo(T),O={ie8:t.option("ie8")};S.figure_out_scope(O);var B=new Fm(t.options,{mangle_options:t.mangle_options});S=S.transform(B),S.figure_out_scope(O),Tr.reset(),S.compute_char_frequency(O),S.mangle_names(O);var D;Bn(S,V=>{if(Lm(V))return D=V,Qr});var T=ec();return Ye.prototype._codegen.call(D,D,T),e.args=[C(ze,e,{value:D.argnames.map(function(V){return V.print_to_string()}).join(",")}),C(ze,e.args[e.args.length-1],{value:T.get().replace(/^{|}$/g,"")})],e}catch(V){if(!(V instanceof km))throw V}}var H=a&&r.body[0],K=a&&!r.is_generator&&!r.async,q=K&&t.option("inline")&&!e.is_callee_pure(t);if(q&&H instanceof Wt){let V=H.value;if(!V||V.is_constant_expression()){V?V=V.clone(!0):V=C(Ft,e);let le=e.args.concat(V);return He(e,le).optimize(t)}if(r.argnames.length===1&&r.argnames[0]instanceof _n&&e.args.length<2&&V instanceof ue&&V.name===r.argnames[0].name){let le=(e.args[0]||C(Ft)).optimize(t),W;return le instanceof Be&&(W=t.parent())instanceof ve&&W.expression===e?He(e,[C(Ze,e,{value:0}),le]):le}}if(q){var M,F,pe=-1;let V,le,W;if(i&&!r.uses_arguments&&!(t.parent()instanceof et)&&!(r.name&&r instanceof mt)&&(le=xe(H))&&(n===r||eo(e,Jl)||t.option("unused")&&(V=n.definition()).references.length==1&&!zE(t,V)&&r.is_constant_expression(n.scope))&&!eo(e,Zl|ao)&&!r.contains_this()&&J()&&(W=Bm(t))&&!GE(W,r)&&!function(){let ae=0,U;for(;U=t.parent(ae++);){if(U instanceof br)return!0;if(U instanceof Zt)break}return!1}()&&!(M instanceof et))return Ci(r,Du),W.add_child_scope(r),He(e,It(le)).optimize(t)}if(q&&eo(e,Jl))return Ci(r,Du),r=C(r.CTOR===Ht?mt:r.CTOR,r,r),r.figure_out_scope({},{parent_scope:Bm(t),toplevel:t.get_toplevel()}),C(ve,e,{expression:r,args:e.args}).optimize(t);if(K&&t.option("side_effects")&&r.body.every(Ps)){var b=e.args.concat(C(Ft,e));return He(e,b).optimize(t)}if(t.option("negate_iife")&&t.parent()instanceof Ee&&BE(e))return e.negate(t,!0);var ge=e.evaluate(t);if(ge!==e)return ge=Ri(ge,e).optimize(t),ha(t,ge,e);return e;function we(V){if(!V)return C(Ft,e);if(V instanceof Wt)return V.value?V.value.clone(!0):C(Ft,e);if(V instanceof Ee)return C(Ue,V,{operator:"void",expression:V.body.clone(!0)})}function xe(V){var le=r.body,W=le.length;if(t.option("inline")<3)return W==1&&we(V);V=null;for(var oe=0;oe!U.value))return!1}else{if(V)return!1;ae instanceof dt||(V=ae)}}return we(V)}function $(V,le){for(var W=0,oe=r.argnames.length;W=0;){var ie=ae.definitions[U].name;if(ie instanceof ut||V.has(ie.name)||UR.has(ie.name)||M.conflicting_def(ie.name))return!1;F&&F.push(ie.definition())}}}return!0}function J(){var V=new Set;do if(M=t.parent(++pe),M.is_block_scope()&&M.block_scope&&M.block_scope.variables.forEach(function(oe){V.add(oe.name)}),M instanceof Ln)M.argname&&V.add(M.argname.name);else if(M instanceof qr)F=[];else if(M instanceof ue&&M.fixed_value()instanceof Fe)return!1;while(!(M instanceof Fe));var le=!(M instanceof st)||t.toplevel.vars,W=t.option("inline");return!z(V,W>=3&&le)||!$(V,W>=2&&le)?!1:!F||F.length==0||!KR(r,F)}function re(V,le,W,oe){var ae=W.definition();M.variables.has(W.name)||(M.variables.set(W.name,ae),M.enclosed.push(ae),V.push(C(rt,W,{name:W,value:null})));var ie=C(ue,W,W);ae.references.push(ie),oe&&le.push(C($e,e,{operator:"=",logical:!1,left:ie,right:oe.clone()}))}function ce(V,le){for(var W=r.argnames.length,oe=e.args.length;--oe>=W;)le.push(e.args[oe]);for(oe=W;--oe>=0;){var ae=r.argnames[oe],U=e.args[oe];if(sr(ae,Ns)||!ae.name||M.conflicting_def(ae.name))U&&le.push(U);else{var ie=C(zi,ae,ae);ae.definition().orig.push(ie),!U&&F&&(U=C(Ft,e)),re(V,le,ie,U)}}V.reverse(),le.reverse()}function Xe(V,le){for(var W=le.length,oe=0,ae=r.body.length;oegt.name!=Pe.name)){var nt=r.variables.get(Pe.name),fn=C(ue,Pe,Pe);nt.references.push(fn),le.splice(W++,0,C($e,_e,{operator:"=",logical:!1,left:fn,right:C(Ft,Pe)}))}}}}function It(V){var le=[],W=[];if(ce(le,W),Xe(le,W),W.push(V),le.length){let oe=M.body.indexOf(t.parent(pe-1))+1;M.body.splice(oe,0,C(mn,r,{definitions:le}))}return W.map(oe=>oe.clone(!0))}});je(zn,function(e,t){return t.option("unsafe")&&Ma(e.expression)&&["Object","RegExp","Function","Error","Array"].includes(e.expression.name)?C(ve,e,e).transform(t):e});je(ke,function(e,t){if(!t.option("side_effects"))return e;var n=[];i();var r=n.length-1;if(a(),r==0)return e=Cu(t.parent(),t.self(),n[0]),e instanceof ke||(e=e.optimize(t)),e;return e.expressions=n,e;function i(){var o=Di(t),s=e.expressions.length-1;e.expressions.forEach(function(u,l){l0&&so(n[r],t);)r--;r0){var n=this.clone();return n.right=He(this.right,t.slice(a)),t=t.slice(0,a),t.push(n),He(this,t).optimize(e)}}}return this});var t8=Tt("== === != !== * & | ^");function n8(e){return e instanceof Je||e instanceof Oe||e instanceof tt||e instanceof et}je(X,function(e,t){function n(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function r(I){if(n()){I&&(e.operator=I);var T=e.left;e.left=e.right,e.right=T}}if(t8.has(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof X&&Fo[e.left.operator]>=Fo[e.operator]||r()),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":var i=!0;(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!i&&so(e.left,t))e.left=C(ir,e.left);else if(t.option("typeofs")&&e.left instanceof ze&&e.left.value=="undefined"&&e.right instanceof Ue&&e.right.operator=="typeof"){var a=e.right.expression;(a instanceof ue?a.is_declared(t):!(a instanceof Be&&t.option("ie8")))&&(e.right=a,e.left=C(Ft,e.left).optimize(t),e.operator.length==2&&(e.operator+="="))}else if(e.left instanceof ue&&e.right instanceof ue&&e.left.definition()===e.right.definition()&&n8(e.left.fixed_value()))return C(e.operator[0]=="="?jn:wi,e);break;case"&&":case"||":var o=e.left;if(o.operator==e.operator&&(o=o.right),o instanceof X&&o.operator==(e.operator=="&&"?"!==":"===")&&e.right instanceof X&&o.operator==e.right.operator&&(so(o.left,t)&&e.right.left instanceof ir||o.left instanceof ir&&so(e.right.left,t))&&!o.right.has_side_effects(t)&&o.right.equivalent_to(e.right.right)){var s=C(X,e,{operator:o.operator.slice(0,-1),left:C(ir,e),right:o.right});return o!==e.left&&(s=C(X,e,{operator:e.operator,left:e.left.left,right:s})),s}break}if(e.operator=="+"&&t.in_boolean_context()){var u=e.left.evaluate(t),l=e.right.evaluate(t);if(u&&typeof u=="string")return He(e,[e.right,C(jn,e)]).optimize(t);if(l&&typeof l=="string")return He(e,[e.left,C(jn,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof X)||t.parent()instanceof $e){var h=C(Ue,e,{operator:"!",expression:e.negate(t,Di(t))});e=ha(t,e,h)}if(t.option("unsafe_comps"))switch(e.operator){case"<":r(">");break;case"<=":r(">=");break}}if(e.operator=="+"){if(e.right instanceof ze&&e.right.getValue()==""&&e.left.is_string(t))return e.left;if(e.left instanceof ze&&e.left.getValue()==""&&e.right.is_string(t))return e.right;if(e.left instanceof X&&e.left.operator=="+"&&e.left.left instanceof ze&&e.left.left.getValue()==""&&e.right.is_string(t))return e.left=e.left.right,e}if(t.option("evaluate")){switch(e.operator){case"&&":var u=sr(e.left,CE)?!0:sr(e.left,RE)?!1:e.left.evaluate(t);if(u){if(!(u instanceof se))return He(e,[e.left,e.right]).optimize(t)}else return Cu(t.parent(),t.self(),e.left).optimize(t);var l=e.right.evaluate(t);if(l){if(!(l instanceof se)){var d=t.parent();if(d.operator=="&&"&&d.left===t.self()||t.in_boolean_context())return e.left.optimize(t)}}else{if(t.in_boolean_context())return He(e,[e.left,C(wi,e)]).optimize(t);Ci(e,RE)}if(e.left.operator=="||"){var m=e.left.right.evaluate(t);if(!m)return C(Ne,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t)}break;case"||":var u=sr(e.left,CE)?!0:sr(e.left,RE)?!1:e.left.evaluate(t);if(u){if(!(u instanceof se))return Cu(t.parent(),t.self(),e.left).optimize(t)}else return He(e,[e.left,e.right]).optimize(t);var l=e.right.evaluate(t);if(l){if(!(l instanceof se)){if(t.in_boolean_context())return He(e,[e.left,C(jn,e)]).optimize(t);Ci(e,CE)}}else{var d=t.parent();if(d.operator=="||"&&d.left===t.self()||t.in_boolean_context())return e.left.optimize(t)}if(e.left.operator=="&&"){var m=e.left.right.evaluate(t);if(m&&!(m instanceof se))return C(Ne,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t)}break;case"??":if(zr(e.left))return e.right;var u=e.left.evaluate(t);if(!(u instanceof se))return u==null?e.right:e.left;if(t.in_boolean_context()){let S=e.right.evaluate(t);if(!(S instanceof se)&&!S)return e.left}}var g=!0;switch(e.operator){case"+":if(e.right instanceof it&&e.left instanceof X&&e.left.operator=="+"&&e.left.is_string(t)){var p=C(X,e,{operator:"+",left:e.left.right,right:e.right}),c=p.optimize(t);p!==c&&(e=C(X,e,{operator:"+",left:e.left.left,right:c}))}if(e.left instanceof X&&e.left.operator=="+"&&e.left.is_string(t)&&e.right instanceof X&&e.right.operator=="+"&&e.right.is_string(t)){var p=C(X,e,{operator:"+",left:e.left.right,right:e.right.left}),f=p.optimize(t);p!==f&&(e=C(X,e,{operator:"+",left:C(X,e.left,{operator:"+",left:e.left.left,right:f}),right:e.right.right}))}if(e.right instanceof Ue&&e.right.operator=="-"&&e.left.is_number(t)){e=C(X,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Ue&&e.left.operator=="-"&&n()&&e.right.is_number(t)){e=C(X,e,{operator:"-",left:e.right,right:e.left.expression});break}if(e.left instanceof on){var _=e.left,c=e.right.evaluate(t);if(c!=e.right)return _.segments[_.segments.length-1].value+=String(c),_}if(e.right instanceof on){var c=e.right,_=e.left.evaluate(t);if(_!=e.left)return c.segments[0].value=String(_)+c.segments[0].value,c}if(e.left instanceof on&&e.right instanceof on){var _=e.left,y=_.segments,c=e.right;y[y.length-1].value+=c.segments[0].value;for(var v=1;v=Fo[e.operator])){var A=C(X,e,{operator:e.operator,left:e.right,right:e.left});e.right instanceof it&&!(e.left instanceof it)?e=ha(t,A,e):e=ha(t,e,A)}g&&e.is_number(t)&&(e.right instanceof X&&e.right.operator==e.operator&&(e=C(X,e,{operator:e.operator,left:C(X,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof it&&e.left instanceof X&&e.left.operator==e.operator&&(e.left.left instanceof it?e=C(X,e,{operator:e.operator,left:C(X,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof it&&(e=C(X,e,{operator:e.operator,left:C(X,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof X&&e.left.operator==e.operator&&e.left.right instanceof it&&e.right instanceof X&&e.right.operator==e.operator&&e.right.left instanceof it&&(e=C(X,e,{operator:e.operator,left:C(X,e.left,{operator:e.operator,left:C(X,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof X&&e.right.operator==e.operator&&(Ou.has(e.operator)||e.operator=="+"&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=C(X,e.left,{operator:e.operator,left:e.left.transform(t),right:e.right.left.transform(t)}),e.right=e.right.right.transform(t),e.transform(t);var b=e.evaluate(t);return b!==e?(b=Ri(b,e).optimize(t),ha(t,b,e)):e});je(io,function(e){return e});function zE(e,t){for(var n,r=0;n=e.parent(r);r++)if(n instanceof Oe||n instanceof et){var i=n.name;if(i&&i.definition()===t)break}return n}function r8(e){for(var t,n=0;t=e.parent(n++);){if(t instanceof un)return!1;if(t instanceof Je||t instanceof Mt||t instanceof tt)return!0}return!1}je(ue,function(e,t){if(!t.option("ie8")&&Ma(e)&&!t.find_parent(Rn))switch(e.name){case"undefined":return C(Ft,e).optimize(t);case"NaN":return C(ks,e).optimize(t);case"Infinity":return C(Pa,e).optimize(t)}let n=t.parent();if(t.option("reduce_vars")&&Fa(e,n)!==e){let a=e.definition(),o=Bm(t);if(t.top_retain&&a.global&&t.top_retain(a))return a.fixed=!1,a.single_use=!1,e;let s=e.fixed_value(),u=a.single_use&&!(n instanceof ve&&n.is_callee_pure(t)||eo(n,ao))&&!(n instanceof $t&&s instanceof Oe&&s.name);if(u&&s instanceof se&&(u=!s.has_side_effects(t)&&!s.may_throw(t)),u&&(s instanceof Oe||s instanceof et)){if(WR(s,t))u=!1;else if(a.scope!==e.scope&&(a.escaped==1||sr(s,ah)||r8(t)||!t.option("reduce_funcs")))u=!1;else if(zE(t,a))u=!1;else if((a.scope!==e.scope||a.orig[0]instanceof _n)&&(u=s.is_constant_expression(e.scope),u=="f")){var r=e.scope;do(r instanceof Ht||Lm(r))&&Ci(r,ah);while(r=r.parent_scope)}}if(u&&s instanceof Oe&&(u=a.scope===e.scope&&!GE(o,s)||n instanceof ve&&n.expression===e&&!GE(o,s)&&!(s.name&&s.name.definition().recursive_refs>0)),u&&s){if(s instanceof Br&&(Ci(s,Du),s=C(fi,s,s)),s instanceof Ht&&(Ci(s,Du),s=C(mt,s,s)),a.recursive_refs>0&&s.name instanceof Ti){let l=s.name.definition(),h=s.variables.get(s.name.name),d=h&&h.orig[0];d instanceof Zr||(d=C(Zr,s.name,s.name),d.scope=s,s.name=d,h=s.def_function(d)),Bn(s,m=>{m instanceof ue&&m.definition()===l&&(m.thedef=h,h.references.push(m))})}return(s instanceof Oe||s instanceof et)&&s.parent_scope!==o&&(s=s.clone(!0,t.get_toplevel()),o.add_child_scope(s)),s.optimize(t)}if(s){let l;if(s instanceof yn)!(a.orig[0]instanceof _n)&&a.references.every(h=>a.scope===h.scope)&&(l=s);else{var i=s.evaluate(t);i!==s&&(t.option("unsafe_regexp")||!(i instanceof RegExp))&&(l=Ri(i,s))}if(l){let h=e.size(t),d=l.size(t),m=0;if(t.option("unused")&&!t.exposed(a)&&(m=(h+2+d)/(a.references.length-a.assignments)),d<=h+m)return l}}}return e});function GE(e,t){for(let n of t.enclosed){if(t.variables.has(n.name))continue;let r=e.find_variable(n.name);if(r){if(r===n)continue;return!0}}return!1}function Gm(e,t){return e instanceof ue||e.TYPE===t.TYPE}je(Ft,function(e,t){if(t.option("unsafe_undefined")){var n=PE(t,"undefined");if(n){var r=C(ue,e,{name:"undefined",scope:n.scope,thedef:n});return Ci(r,OE),r}}var i=Fa(t.self(),t.parent());return i&&Gm(i,e)?e:C(Ue,e,{operator:"void",expression:C(Ze,e,{value:0})})});je(Pa,function(e,t){var n=Fa(t.self(),t.parent());return n&&Gm(n,e)||t.option("keep_infinity")&&!(n&&!Gm(n,e))&&!PE(t,"Infinity")?e:C(X,e,{operator:"/",left:C(Ze,e,{value:1}),right:C(Ze,e,{value:0})})});je(ks,function(e,t){var n=Fa(t.self(),t.parent());return n&&!Gm(n,e)||PE(t,"NaN")?C(X,e,{operator:"/",left:C(Ze,e,{value:0}),right:C(Ze,e,{value:0})}):e});function KR(e,t){let n=r=>{if(r instanceof ue&&Yf(r.definition(),t))return Qr};return nh(e,(r,i)=>{if(r instanceof Fe&&r!==e){var a=i.parent();return a instanceof ve&&a.expression===r?void 0:Bn(r,n)?Qr:!0}})}var i8=Tt("+ - / * % >> << >>> | ^ &"),a8=Tt("* | ^ &");je($e,function(e,t){if(e.logical)return e.lift_sequences(t);var n;if(t.option("dead_code")&&e.left instanceof ue&&(n=e.left.definition()).scope===t.find_parent(Oe)){var r=0,i,a=e;do if(i=a,a=t.parent(r++),a instanceof or){if(o(r,a)||KR(n.scope,[n]))break;return e.operator=="="?e.right:(n.fixed=!1,C(X,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(t))}while(a instanceof X&&a.right===i||a instanceof ke&&a.tail_node()===i)}return e=e.lift_sequences(t),e.operator=="="&&e.left instanceof ue&&e.right instanceof X&&(e.right.left instanceof ue&&e.right.left.name==e.left.name&&i8.has(e.right.operator)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof ue&&e.right.right.name==e.left.name&&a8.has(e.right.operator)&&!e.right.left.has_side_effects(t)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e;function o(s,u){var l=e.right;e.right=C(ir,l);var h=u.may_throw(t);e.right=l;for(var d=e.left.definition().scope,m;(m=t.parent(s++))!==d;)if(m instanceof Tn&&(m.bfinally||h&&m.bcatch))return!0}});je(br,function(e,t){if(!t.option("evaluate"))return e;var n=e.right.evaluate(t);return n===void 0?e=e.left:n!==e.right&&(n=Ri(n,e.right),e.right=Ho(n,e.right)),e});function zr(e){let t;return e instanceof ir||so(e)||e instanceof ue&&(t=e.definition().fixed)instanceof se&&zr(t)||e instanceof Be&&e.optional&&zr(e.expression)||e instanceof ve&&e.optional&&zr(e.expression)||e instanceof wn&&zr(e.expression)}function o8(e,t,n){if(t.may_throw(n))return!1;let r;if(e instanceof X&&e.operator==="=="&&((r=zr(e.left)&&e.left)||(r=zr(e.right)&&e.right))&&(r===e.left?e.right:e.left).equivalent_to(t))return!0;if(e instanceof X&&e.operator==="||"){let i,a,o=s=>{if(!(s instanceof X&&(s.operator==="==="||s.operator==="==")))return!1;let u=0,l;return s.left instanceof ir&&(u++,i=s,l=s.right),s.right instanceof ir&&(u++,i=s,l=s.left),so(s.left)&&(u++,a=s,l=s.right),so(s.right)&&(u++,a=s,l=s.left),!(u!==1||!l.equivalent_to(t))};if(!o(e.left)||!o(e.right))return!1;if(i&&a&&i!==a)return!0}return!1}je(Ne,function(e,t){if(!t.option("conditionals"))return e;if(e.condition instanceof ke){var n=e.condition.expressions.slice();return e.condition=n.pop(),n.push(e),He(e,n)}var r=e.condition.evaluate(t);if(r!==e.condition)return r?Cu(t.parent(),t.self(),e.consequent):Cu(t.parent(),t.self(),e.alternative);var i=r.negate(t,Di(t));ha(t,r,i)===i&&(e=C(Ne,e,{condition:i,consequent:e.alternative,alternative:e.consequent}));var a=e.condition,o=e.consequent,s=e.alternative;if(a instanceof ue&&o instanceof ue&&a.definition()===o.definition())return C(X,e,{operator:"||",left:a,right:s});if(o instanceof $e&&s instanceof $e&&o.operator===s.operator&&o.logical===s.logical&&o.left.equivalent_to(s.left)&&(!e.condition.has_side_effects(t)||o.operator=="="&&!o.left.has_side_effects(t)))return C($e,e,{operator:o.operator,left:o.left,logical:o.logical,right:C(Ne,e,{condition:e.condition,consequent:o.right,alternative:s.right})});var u;if(o instanceof ve&&s.TYPE===o.TYPE&&o.args.length>0&&o.args.length==s.args.length&&o.expression.equivalent_to(s.expression)&&!e.condition.has_side_effects(t)&&!o.expression.has_side_effects(t)&&typeof(u=p())=="number"){var l=o.clone();return l.args[u]=C(Ne,e,{condition:e.condition,consequent:o.args[u],alternative:s.args[u]}),l}if(s instanceof Ne&&o.equivalent_to(s.consequent))return C(Ne,e,{condition:C(X,e,{operator:"||",left:a,right:s.condition}),consequent:o,alternative:s.alternative}).optimize(t);if(t.option("ecma")>=2020&&o8(a,s,t))return C(X,e,{operator:"??",left:s,right:o}).optimize(t);if(s instanceof ke&&o.equivalent_to(s.expressions[s.expressions.length-1]))return He(e,[C(X,e,{operator:"||",left:a,right:He(e,s.expressions.slice(0,-1))}),o]).optimize(t);if(s instanceof X&&s.operator=="&&"&&o.equivalent_to(s.right))return C(X,e,{operator:"&&",left:C(X,e,{operator:"||",left:a,right:s.left}),right:o}).optimize(t);if(o instanceof Ne&&o.alternative.equivalent_to(s))return C(Ne,e,{condition:C(X,e,{left:e.condition,operator:"&&",right:o.condition}),consequent:o.consequent,alternative:s});if(o.equivalent_to(s))return He(e,[e.condition,o]).optimize(t);if(o instanceof X&&o.operator=="||"&&o.right.equivalent_to(s))return C(X,e,{operator:"||",left:C(X,e,{operator:"&&",left:e.condition,right:o.left}),right:s}).optimize(t);var h=t.in_boolean_context();if(m(e.consequent))return g(e.alternative)?d(e.condition):C(X,e,{operator:"||",left:d(e.condition),right:e.alternative});if(g(e.consequent))return m(e.alternative)?d(e.condition.negate(t)):C(X,e,{operator:"&&",left:d(e.condition.negate(t)),right:e.alternative});if(m(e.alternative))return C(X,e,{operator:"||",left:d(e.condition.negate(t)),right:e.consequent});if(g(e.alternative))return C(X,e,{operator:"&&",left:d(e.condition),right:e.consequent});return e;function d(c){return c.is_boolean()?c:C(Ue,c,{operator:"!",expression:c.negate(t)})}function m(c){return c instanceof jn||h&&c instanceof it&&c.getValue()||c instanceof Ue&&c.operator=="!"&&c.expression instanceof it&&!c.expression.getValue()}function g(c){return c instanceof wi||h&&c instanceof it&&!c.getValue()||c instanceof Ue&&c.operator=="!"&&c.expression instanceof it&&c.expression.getValue()}function p(){for(var c=o.args,f=s.args,_=0,y=c.length;_=2015,r=this.expression;if(r instanceof tt)for(var i=r.properties,a=i.length;--a>=0;){var o=i[a];if(""+(o instanceof gn?o.key.name:o.key)==e)return!i.every(u=>(u instanceof Mt||n&&u instanceof gn&&!u.is_generator)&&!u.computed_key())||!qR(o.value,t)?void 0:C(Ut,this,{expression:C(Je,r,{elements:i.map(function(u){var l=u.value;l instanceof Si&&(l=C(mt,l,l));var h=u.key;return h instanceof se&&!(h instanceof bn)?He(u,[h,l]):l})}),property:C(Ze,this,{value:a})})}}});je(Ut,function(e,t){var n=e.expression,r=e.property;if(t.option("properties")){var i=r.evaluate(t);if(i!==r){if(typeof i=="string")if(i=="undefined")i=void 0;else{var a=parseFloat(i);a.toString()==i&&(i=a)}r=e.property=Ho(r,Ri(i,r).transform(t));var o=""+i;if(Om(o)&&o.length<=r.size()+1)return C(lt,e,{expression:n,optional:e.optional,property:o,quote:r.quote}).optimize(t)}}var s;e:if(t.option("arguments")&&n instanceof ue&&n.name=="arguments"&&n.definition().orig.length==1&&(s=n.scope)instanceof Oe&&s.uses_arguments&&!(s instanceof jt)&&r instanceof Ze){for(var u=r.getValue(),l=new Set,h=s.argnames,d=0;d1)&&(g=null)}else if(!g&&!t.option("keep_fargs")&&u=s.argnames.length;)g=s.create_symbol(_n,{source:s,scope:s,tentative_name:"argument_"+s.argnames.length}),s.argnames.push(g);if(g){var c=C(ue,e,g);return c.reference({}),rc(g,Ns),c}}if(Fa(e,t.parent()))return e;if(i!==r){var f=e.flatten_object(o,t);f&&(n=e.expression=f.expression,r=e.property=f.property)}if(t.option("properties")&&t.option("side_effects")&&r instanceof Ze&&n instanceof Je){var u=r.getValue(),_=n.elements,y=_[u];e:if(qR(y,t)){for(var v=!0,A=[],b=_.length;--b>u;){var a=_[b].drop_side_effect_free(t);a&&(A.unshift(a),v&&a.has_side_effects(t)&&(v=!1))}if(y instanceof We)break e;for(y=y instanceof ar?C(Ft,y):y,v||A.unshift(y);--b>=0;){var a=_[b];if(a instanceof We)break e;a=a.drop_side_effect_free(t),a?A.unshift(a):u--}return v?(A.push(y),He(e,A).optimize(t)):C(Ut,e,{expression:C(Je,n,{elements:A}),property:C(Ze,r,{value:u})})}}var I=e.evaluate(t);return I!==e?(I=Ri(I,e).optimize(t),ha(t,I,e)):e.optional&&zr(e.expression)?C(Ft,e):e});je(wn,function(e,t){return e.expression=e.expression.optimize(t),e});Oe.DEFMETHOD("contains_this",function(){return Bn(this,e=>{if(e instanceof yn)return Qr;if(e!==this&&e instanceof Fe&&!(e instanceof jt))return!0})});je(lt,function(e,t){let n=t.parent();if(Fa(e,n))return e;if(t.option("unsafe_proto")&&e.expression instanceof lt&&e.expression.property=="prototype"){var r=e.expression.expression;if(Ma(r))switch(r.name){case"Array":e.expression=C(Je,e.expression,{elements:[]});break;case"Function":e.expression=C(mt,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=C(Ze,e.expression,{value:0});break;case"Object":e.expression=C(tt,e.expression,{properties:[]});break;case"RegExp":e.expression=C(xn,e.expression,{value:{source:"t",flags:""}});break;case"String":e.expression=C(ze,e.expression,{value:""});break}}if(!(n instanceof ve)||!eo(n,ao)){let a=e.flatten_object(e.property,t);if(a)return a.optimize(t)}let i=e.evaluate(t);return i!==e?(i=Ri(i,e).optimize(t),ha(t,i,e)):e.optional&&zr(e.expression)?C(Ft,e):e});function jE(e,t){return t.in_boolean_context()?ha(t,e,He(e,[e,C(jn,e)]).optimize(t)):e}function XR(e){for(var t=0;ti instanceof ar)&&(e.splice(t,1,...r.elements),t--)}}}je(Je,function(e,t){var n=jE(e,t);return n!==e?n:(XR(e.elements),e)});function s8(e){for(var t=0;ti instanceof Mt)?(e.splice(t,1,...r.properties),t--):r instanceof it&&!(r instanceof ze)&&e.splice(t,1)}}}je(tt,function(e,t){var n=jE(e,t);return n!==e?n:(s8(e.properties),e)});je(xn,jE);je(Wt,function(e,t){return e.value&&so(e.value,t)&&(e.value=null),e});je(jt,$E);je(mt,function(e,t){return e=$E(e,t),t.option("unsafe_arrows")&&t.option("ecma")>=2015&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()&&!Bn(e,r=>{if(r instanceof yn)return Qr})?C(jt,e,e).optimize(t):e});je(et,function(e){return e});je(er,function(e,t){return e.expression&&!e.is_star&&so(e.expression,t)&&(e.expression=null),e});je(on,function(e,t){if(!t.option("evaluate")||t.parent()instanceof Qn)return e;for(var n=[],r=0;r=2015&&(!(n instanceof RegExp)||n.test(e.key+""))){var r=e.key,i=e.value,a=i instanceof jt&&Array.isArray(i.body)&&!i.contains_this();if((a||i instanceof mt)&&!i.name)return C(gn,e,{async:i.async,is_generator:i.is_generator,key:r instanceof se?r:C(bn,e,{name:r}),value:C(Si,i,i),quote:e.quote})}return e});je(ut,function(e,t){if(t.option("pure_getters")==!0&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!a(t)&&!(e.names[e.names.length-1]instanceof We)){for(var n=[],r=0;r1)throw new Error("inline source map only works with singular input");t.sourceMap.content=B8(e[a])}}i=t.parse.toplevel}r&&t.mangle.properties.keep_quoted!=="strict"&&SO(i,r),t.wrap&&(i=i.wrap_commonjs(t.wrap)),t.enclose&&(i=i.wrap_enclose(t.enclose)),n&&(n.rename=Date.now()),n&&(n.compress=Date.now()),t.compress&&(i=new Fm(t.compress,{mangle_options:t.mangle}).compress(i)),n&&(n.scope=Date.now()),t.mangle&&i.figure_out_scope(t.mangle),n&&(n.mangle=Date.now()),t.mangle&&(Tr.reset(),i.compute_char_frequency(t.mangle),i.mangle_names(t.mangle)),n&&(n.properties=Date.now()),t.mangle&&t.mangle.properties&&(i=AO(i,t.mangle.properties)),n&&(n.format=Date.now());var o={};if(t.format.ast&&(o.ast=i),t.format.spidermonkey&&(o.ast=i.to_mozilla_ast()),!Jn(t.format,"code")||t.format.code){if(t.sourceMap&&(t.format.source_map=await vO({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources)){if(e instanceof st)throw new Error("original source content unavailable");for(var a in e)Jn(e,a)&&t.format.source_map.get().setSourceContent(a,e[a])}delete t.format.ast,delete t.format.code,delete t.format.spidermonkey;var s=ec(t.format);if(i.print(s),o.code=s.get(),t.sourceMap)if(t.sourceMap.asObject?o.map=t.format.source_map.get().toJSON():o.map=t.format.source_map.toString(),t.sourceMap.url=="inline"){var u=typeof o.map=="object"?JSON.stringify(o.map):o.map;o.code+=` //# sourceMappingURL=data:application/json;charset=utf-8;base64,`+L8(u)}else t.sourceMap.url&&(o.code+=` -//# sourceMappingURL=`+t.sourceMap.url)}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=wO(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=wO(t.mangle.properties.cache))),t.format&&t.format.source_map&&t.format.source_map.destroy(),n&&(n.end=Date.now(),o.timings={parse:.001*(n.rename-n.parse),rename:.001*(n.compress-n.rename),compress:.001*(n.scope-n.compress),scope:.001*(n.mangle-n.scope),mangle:.001*(n.properties-n.mangle),properties:.001*(n.format-n.properties),format:.001*(n.end-n.format),total:.001*(n.end-n.start)}),o}R();var Ek=ji(yk()),vk=(e={module:!0})=>({name:"terser",async transform(t){try{return await ph(t)}catch(n){let{message:r,line:i,col:a}=n;throw console.error((0,Ek.codeFrameColumns)(t,{start:{line:i,column:a}},{message:r})),n}}});var WI=ji(Ak());R();var C5=4,Tk=0,wk=1,R5=2;function fc(e){let t=e.length;for(;--t>=0;)e[t]=0}var O5=0,xk=1,k5=2,I5=3,N5=258,pv=29,Eh=256,vh=Eh+1+pv,hc=30,dv=19,Dk=2*vh+1,Bu=15,mv=16,P5=7,gv=256,Ck=16,Rk=17,Ok=18,_v=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),rg=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),M5=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),kk=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),F5=512,Wo=new Array((vh+2)*2);fc(Wo);var bh=new Array(hc*2);fc(bh);var Sh=new Array(F5);fc(Sh);var Ah=new Array(N5-I5+1);fc(Ah);var yv=new Array(pv);fc(yv);var ig=new Array(hc);fc(ig);function Ev(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var Ik,Nk,Pk;function vv(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var Mk=e=>e<256?Sh[e]:Sh[256+(e>>>7)],Th=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},ki=(e,t,n)=>{e.bi_valid>mv-n?(e.bi_buf|=t<>mv-e.bi_valid,e.bi_valid+=n-mv):(e.bi_buf|=t<{ki(e,n[t*2],n[t*2+1])},Fk=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},L5=e=>{e.bi_valid===16?(Th(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},B5=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,u=t.stat_desc.max_length,l,h,d,m,g,p,c=0;for(m=0;m<=Bu;m++)e.bl_count[m]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;lu&&(m=u,c++),n[h*2+1]=m,!(h>r)&&(e.bl_count[m]++,g=0,h>=s&&(g=o[h-s]),p=n[h*2],e.opt_len+=p*(m+g),a&&(e.static_len+=p*(i[h*2+1]+g)));if(c!==0){do{for(m=u-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[u]--,c-=2}while(c>0);for(m=u;m!==0;m--)for(h=e.bl_count[m];h!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==m&&(e.opt_len+=(m-n[d*2+1])*n[d*2],n[d*2+1]=m),h--)}},Lk=(e,t,n)=>{let r=new Array(Bu+1),i=0,a,o;for(a=1;a<=Bu;a++)r[a]=i=i+n[a-1]<<1;for(o=0;o<=t;o++){let s=e[o*2+1];s!==0&&(e[o*2]=Fk(r[s]++,s))}},V5=()=>{let e,t,n,r,i,a=new Array(Bu+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?Th(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},$5=(e,t,n,r)=>{Vk(e),r&&(Th(e,n),Th(e,~n)),e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},$k=(e,t,n,r)=>{let i=t*2,a=n*2;return e[i]{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i{let r,i,a=0,o,s;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,r===0?lo(e,i,t):(o=Ah[i],lo(e,o+Eh+1,t),s=_v[o],s!==0&&(i-=yv[o],ki(e,i,s)),r--,o=Mk(r),lo(e,o,n),s=rg[o],s!==0&&(r-=ig[o],ki(e,r,s)));while(a{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,u=-1,l;for(e.heap_len=0,e.heap_max=Dk,o=0;o>1;o>=1;o--)bv(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],bv(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,bv(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],B5(e,t),Lk(n,u,e.bl_count)},zk=(e,t,n)=>{let r,i=-1,a,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s{let r,i=-1,a,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s{let t;for(zk(e,e.dyn_ltree,e.l_desc.max_code),zk(e,e.dyn_dtree,e.d_desc.max_code),Sv(e,e.bl_desc),t=dv-1;t>=3&&e.bl_tree[kk[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},z5=(e,t,n,r)=>{let i;for(ki(e,t-257,5),ki(e,n-1,5),ki(e,r-4,4),i=0;i{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Tk;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return wk;for(n=32;n{jk||(V5(),jk=!0),e.l_desc=new vv(e.dyn_ltree,Ik),e.d_desc=new vv(e.dyn_dtree,Nk),e.bl_desc=new vv(e.bl_tree,Pk),e.bi_buf=0,e.bi_valid=0,Bk(e)},Hk=(e,t,n,r)=>{ki(e,(O5<<1)+(r?1:0),3),$5(e,t,n,!0)},H5=e=>{ki(e,xk<<1,3),lo(e,gv,Wo),L5(e)},W5=(e,t,n,r)=>{let i,a,o=0;e.level>0?(e.strm.data_type===R5&&(e.strm.data_type=G5(e)),Sv(e,e.l_desc),Sv(e,e.d_desc),o=U5(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?Hk(e,t,n,r):e.strategy===C5||a===i?(ki(e,(xk<<1)+(r?1:0),3),Uk(e,Wo,bh)):(ki(e,(k5<<1)+(r?1:0),3),z5(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Uk(e,e.dyn_ltree,e.dyn_dtree)),Bk(e),r&&Vk(e)},K5=(e,t,n)=>(e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Ah[n]+Eh+1)*2]++,e.dyn_dtree[Mk(t)*2]++),e.last_lit===e.lit_bufsize-1),q5=j5,X5=Hk,Y5=W5,Z5=K5,J5=H5,Q5={_tr_init:q5,_tr_stored_block:X5,_tr_flush_block:Y5,_tr_tally:Z5,_tr_align:J5},e4=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0},wh=e4,t4=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},n4=new Uint32Array(t4()),r4=(e,t,n,r)=>{let i=n4,a=r+n;e^=-1;for(let o=r;o>>8^i[(e^t[o])&255];return e^-1},wr=r4,pc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xh={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:i4,_tr_stored_block:a4,_tr_flush_block:o4,_tr_tally:Fs,_tr_align:s4}=Q5,{Z_NO_FLUSH:Vu,Z_PARTIAL_FLUSH:u4,Z_FULL_FLUSH:l4,Z_FINISH:Ls,Z_BLOCK:Wk,Z_OK:co,Z_STREAM_END:Kk,Z_STREAM_ERROR:pa,Z_DATA_ERROR:c4,Z_BUF_ERROR:Av,Z_DEFAULT_COMPRESSION:f4,Z_FILTERED:h4,Z_HUFFMAN_ONLY:ag,Z_RLE:p4,Z_FIXED:d4,Z_DEFAULT_STRATEGY:m4,Z_UNKNOWN:g4,Z_DEFLATED:og}=xh,_4=9,y4=15,E4=8,v4=29,b4=256,Tv=b4+1+v4,S4=30,A4=19,T4=2*Tv+1,w4=15,kt=3,Bs=258,Ba=Bs+kt+1,x4=32,sg=42,wv=69,ug=73,lg=91,cg=103,$u=113,Dh=666,ur=1,Ch=2,Uu=3,dc=4,D4=3,Vs=(e,t)=>(e.msg=pc[t],t),qk=e=>(e<<1)-(e>4?9:0),$s=e=>{let t=e.length;for(;--t>=0;)e[t]=0},C4=(e,t,n)=>(t<{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Gr=(e,t)=>{o4(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,zs(e.strm)},zt=(e,t)=>{e.pending_buf[e.pending++]=t},Rh=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},R4=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=wh(e.adler,t,i,n):e.state.wrap===2&&(e.adler=wr(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Xk=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-Ba?e.strstart-(e.w_size-Ba):0,l=e.window,h=e.w_mask,d=e.prev,m=e.strstart+Bs,g=l[r+o-1],p=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(l[i+o]!==p||l[i+o-1]!==g||l[i]!==l[r]||l[++i]!==l[r+1])){r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&ro){if(e.match_start=t,o=a,a>=s)break;g=l[r+o-1],p=l[r+o]}}while((t=d[t&h])>u&&--n!=0);return o<=e.lookahead?o:e.lookahead},zu=e=>{let t=e.w_size,n,r,i,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Ba)){e.window.set(e.window.subarray(t,t+t),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,r=e.hash_size,n=r;do i=e.head[--n],e.head[n]=i>=t?i-t:0;while(--r);r=t,n=r;do i=e.prev[--n],e.prev[n]=i>=t?i-t:0;while(--r);a+=t}if(e.strm.avail_in===0)break;if(r=R4(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=r,e.lookahead+e.insert>=kt)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=Us(e,e.ins_h,e.window[o+1]);e.insert&&(e.ins_h=Us(e,e.ins_h,e.window[o+kt-1]),e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert{let n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(zu(e),e.lookahead===0&&t===Vu)return ur;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;let r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Gr(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Ba&&(Gr(e,!1),e.strm.avail_out===0))return ur}return e.insert=0,t===Ls?(Gr(e,!0),e.strm.avail_out===0?Uu:dc):(e.strstart>e.block_start&&(Gr(e,!1),e.strm.avail_out===0),ur)},xv=(e,t)=>{let n,r;for(;;){if(e.lookahead=kt&&(e.ins_h=Us(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Ba&&(e.match_length=Xk(e,n)),e.match_length>=kt)if(r=Fs(e,e.strstart-e.match_start,e.match_length-kt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=kt){e.match_length--;do e.strstart++,e.ins_h=Us(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!=0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Us(e,e.ins_h,e.window[e.strstart+1]);else r=Fs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Gr(e,!1),e.strm.avail_out===0))return ur}return e.insert=e.strstart{let n,r,i;for(;;){if(e.lookahead=kt&&(e.ins_h=Us(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=kt-1,n!==0&&e.prev_length4096)&&(e.match_length=kt-1)),e.prev_length>=kt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-kt,r=Fs(e,e.strstart-1-e.prev_match,e.prev_length-kt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Us(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!=0);if(e.match_available=0,e.match_length=kt-1,e.strstart++,r&&(Gr(e,!1),e.strm.avail_out===0))return ur}else if(e.match_available){if(r=Fs(e,0,e.window[e.strstart-1]),r&&Gr(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ur}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Fs(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,i,a,o=e.window;for(;;){if(e.lookahead<=Bs){if(zu(e),e.lookahead<=Bs&&t===Vu)return ur;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=kt&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+Bs;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=kt?(n=Fs(e,1,e.match_length-kt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Fs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Gr(e,!1),e.strm.avail_out===0))return ur}return e.insert=0,t===Ls?(Gr(e,!0),e.strm.avail_out===0?Uu:dc):e.last_lit&&(Gr(e,!1),e.strm.avail_out===0)?ur:Ch},I4=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(zu(e),e.lookahead===0)){if(t===Vu)return ur;break}if(e.match_length=0,n=Fs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Gr(e,!1),e.strm.avail_out===0))return ur}return e.insert=0,t===Ls?(Gr(e,!0),e.strm.avail_out===0?Uu:dc):e.last_lit&&(Gr(e,!1),e.strm.avail_out===0)?ur:Ch};function fo(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Oh=[new fo(0,0,0,0,O4),new fo(4,4,8,4,xv),new fo(4,5,16,8,xv),new fo(4,6,32,32,xv),new fo(4,4,16,16,mc),new fo(8,16,32,32,mc),new fo(8,16,128,128,mc),new fo(8,32,128,256,mc),new fo(32,128,258,1024,mc),new fo(32,258,258,4096,mc)],N4=e=>{e.window_size=2*e.w_size,$s(e.head),e.max_lazy_match=Oh[e.level].max_lazy,e.good_match=Oh[e.level].good_length,e.nice_match=Oh[e.level].nice_length,e.max_chain_length=Oh[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=kt-1,e.match_available=0,e.ins_h=0};function P4(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=og,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(T4*2),this.dyn_dtree=new Uint16Array((2*S4+1)*2),this.bl_tree=new Uint16Array((2*A4+1)*2),$s(this.dyn_ltree),$s(this.dyn_dtree),$s(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(w4+1),this.heap=new Uint16Array(2*Tv+1),$s(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Tv+1),$s(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Yk=e=>{if(!e||!e.state)return Vs(e,pa);e.total_in=e.total_out=0,e.data_type=g4;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?sg:$u,e.adler=t.wrap===2?0:1,t.last_flush=Vu,i4(t),co},Zk=e=>{let t=Yk(e);return t===co&&N4(e.state),t},M4=(e,t)=>!e||!e.state||e.state.wrap!==2?pa:(e.state.gzhead=t,co),Jk=(e,t,n,r,i,a)=>{if(!e)return pa;let o=1;if(t===f4&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>_4||n!==og||r<8||r>15||t<0||t>9||a<0||a>d4)return Vs(e,pa);r===8&&(r=9);let s=new P4;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<Jk(e,t,og,y4,E4,m4),L4=(e,t)=>{let n,r;if(!e||!e.state||t>Wk||t<0)return e?Vs(e,pa):pa;let i=e.state;if(!e.output||!e.input&&e.avail_in!==0||i.status===Dh&&t!==Ls)return Vs(e,e.avail_out===0?Av:pa);i.strm=e;let a=i.last_flush;if(i.last_flush=t,i.status===sg)if(i.wrap===2)e.adler=0,zt(i,31),zt(i,139),zt(i,8),i.gzhead?(zt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),zt(i,i.gzhead.time&255),zt(i,i.gzhead.time>>8&255),zt(i,i.gzhead.time>>16&255),zt(i,i.gzhead.time>>24&255),zt(i,i.level===9?2:i.strategy>=ag||i.level<2?4:0),zt(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(zt(i,i.gzhead.extra.length&255),zt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=wr(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=wv):(zt(i,0),zt(i,0),zt(i,0),zt(i,0),zt(i,0),zt(i,i.level===9?2:i.strategy>=ag||i.level<2?4:0),zt(i,D4),i.status=$u);else{let o=og+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=ag||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=x4),o+=31-o%31,i.status=$u,Rh(i,o),i.strstart!==0&&(Rh(i,e.adler>>>16),Rh(i,e.adler&65535)),e.adler=1}if(i.status===wv)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),zs(e),n=i.pending,i.pending===i.pending_buf_size));)zt(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=ug)}else i.status=ug;if(i.status===ug)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),zs(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}i.gzindexn&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),r===0&&(i.gzindex=0,i.status=lg)}else i.status=lg;if(i.status===lg)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),zs(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}i.gzindexn&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),r===0&&(i.status=cg)}else i.status=cg;if(i.status===cg&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&zs(e),i.pending+2<=i.pending_buf_size&&(zt(i,e.adler&255),zt(i,e.adler>>8&255),e.adler=0,i.status=$u)):i.status=$u),i.pending!==0){if(zs(e),e.avail_out===0)return i.last_flush=-1,co}else if(e.avail_in===0&&qk(t)<=qk(a)&&t!==Ls)return Vs(e,Av);if(i.status===Dh&&e.avail_in!==0)return Vs(e,Av);if(e.avail_in!==0||i.lookahead!==0||t!==Vu&&i.status!==Dh){let o=i.strategy===ag?I4(i,t):i.strategy===p4?k4(i,t):Oh[i.level].func(i,t);if((o===Uu||o===dc)&&(i.status=Dh),o===ur||o===Uu)return e.avail_out===0&&(i.last_flush=-1),co;if(o===Ch&&(t===u4?s4(i):t!==Wk&&(a4(i,0,0,!1),t===l4&&($s(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),zs(e),e.avail_out===0))return i.last_flush=-1,co}return t!==Ls?co:i.wrap<=0?Kk:(i.wrap===2?(zt(i,e.adler&255),zt(i,e.adler>>8&255),zt(i,e.adler>>16&255),zt(i,e.adler>>24&255),zt(i,e.total_in&255),zt(i,e.total_in>>8&255),zt(i,e.total_in>>16&255),zt(i,e.total_in>>24&255)):(Rh(i,e.adler>>>16),Rh(i,e.adler&65535)),zs(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?co:Kk)},B4=e=>{if(!e||!e.state)return pa;let t=e.state.status;return t!==sg&&t!==wv&&t!==ug&&t!==lg&&t!==cg&&t!==$u&&t!==Dh?Vs(e,pa):(e.state=null,t===$u?Vs(e,c4):co)},V4=(e,t)=>{let n=t.length;if(!e||!e.state)return pa;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==sg||r.lookahead)return pa;if(i===1&&(e.adler=wh(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&($s(r.head),r.strstart=0,r.block_start=0,r.insert=0);let u=new Uint8Array(r.w_size);u.set(t.subarray(n-r.w_size,n),0),t=u,n=r.w_size}let a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,zu(r);r.lookahead>=kt;){let u=r.strstart,l=r.lookahead-(kt-1);do r.ins_h=Us(r,r.ins_h,r.window[u+kt-1]),r.prev[u&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=u,u++;while(--l);r.strstart=u,r.lookahead=kt-1,zu(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=kt-1,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,co},$4=F4,U4=Jk,z4=Zk,G4=Yk,j4=M4,H4=L4,W4=B4,K4=V4,q4="pako deflate (from Nodeca project)",kh={deflateInit:$4,deflateInit2:U4,deflateReset:z4,deflateResetKeep:G4,deflateSetHeader:j4,deflate:H4,deflateEnd:W4,deflateSetDictionary:K4,deflateInfo:q4},X4=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Y4=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(!!n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let r in n)X4(n,r)&&(e[r]=n[r])}}return e},Z4=e=>{let t=0;for(let r=0,i=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ih[254]=Ih[254]=1;var J4=e=>{let t,n,r,i,a,o=e.length,s=0;for(i=0;i>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t},Q4=(e,t)=>{if(t<65534&&e.subarray&&Qk)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{let n,r,i=t||e.length,a=new Array(i*2);for(r=0,n=0;n4){a[r++]=65533,n+=s-1;continue}for(o&=s===2?31:s===3?15:7;s>1&&n1){a[r++]=65533;continue}o<65536?a[r++]=o:(o-=65536,a[r++]=55296|o>>10&1023,a[r++]=56320|o&1023)}return Q4(a,r)},tz=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+Ih[e[n]]>t?n:t},Nh={string2buf:J4,buf2string:ez,utf8border:tz};function nz(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var eI=nz,tI=Object.prototype.toString,{Z_NO_FLUSH:rz,Z_SYNC_FLUSH:iz,Z_FULL_FLUSH:az,Z_FINISH:oz,Z_OK:hg,Z_STREAM_END:sz,Z_DEFAULT_COMPRESSION:uz,Z_DEFAULT_STRATEGY:lz,Z_DEFLATED:cz}=xh;function Ph(e){this.options=fg.assign({level:uz,method:cz,chunkSize:16384,windowBits:15,memLevel:8,strategy:lz},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eI,this.strm.avail_out=0;let n=kh.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==hg)throw new Error(pc[n]);if(t.header&&kh.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Nh.string2buf(t.dictionary):tI.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=kh.deflateSetDictionary(this.strm,r),n!==hg)throw new Error(pc[n]);this._dict_set=!0}}Ph.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?oz:rz,typeof e=="string"?n.input=Nh.string2buf(e):tI.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(a===iz||a===az)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=kh.deflate(n,a),i===sz)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=kh.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===hg;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Ph.prototype.onData=function(e){this.chunks.push(e)};Ph.prototype.onEnd=function(e){e===hg&&(this.result=fg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Dv(e,t){let n=new Ph(t);if(n.push(e,!0),n.err)throw n.msg||pc[n.err];return n.result}function fz(e,t){return t=t||{},t.raw=!0,Dv(e,t)}function hz(e,t){return t=t||{},t.gzip=!0,Dv(e,t)}var pz=Ph,dz=Dv,mz=fz,gz=hz,_z=xh,yz={Deflate:pz,deflate:dz,deflateRaw:mz,gzip:gz,constants:_z},pg=30,Ez=12,vz=function(t,n){let r,i,a,o,s,u,l,h,d,m,g,p,c,f,_,y,v,A,b,I,T,S,O,B,D=t.state;r=t.next_in,O=t.input,i=r+(t.avail_in-5),a=t.next_out,B=t.output,o=a-(n-t.avail_out),s=a+(t.avail_out-257),u=D.dmax,l=D.wsize,h=D.whave,d=D.wnext,m=D.window,g=D.hold,p=D.bits,c=D.lencode,f=D.distcode,_=(1<>>24,g>>>=A,p-=A,A=v>>>16&255,A===0)B[a++]=v&65535;else if(A&16){b=v&65535,A&=15,A&&(p>>=A,p-=A),p<15&&(g+=O[r++]<>>24,g>>>=A,p-=A,A=v>>>16&255,A&16){if(I=v&65535,A&=15,pu){t.msg="invalid distance too far back",D.mode=pg;break e}if(g>>>=A,p-=A,A=a-o,I>A){if(A=I-A,A>h&&D.sane){t.msg="invalid distance too far back",D.mode=pg;break e}if(T=0,S=m,d===0){if(T+=l-A,A2;)B[a++]=S[T++],B[a++]=S[T++],B[a++]=S[T++],b-=3;b&&(B[a++]=S[T++],b>1&&(B[a++]=S[T++]))}else{T=a-I;do B[a++]=B[T++],B[a++]=B[T++],B[a++]=B[T++],b-=3;while(b>2);b&&(B[a++]=B[T++],b>1&&(B[a++]=B[T++]))}}else if((A&64)==0){v=f[(v&65535)+(g&(1<>3,r-=b,p-=b<<3,g&=(1<{let u=s.bits,l=0,h=0,d=0,m=0,g=0,p=0,c=0,f=0,_=0,y=0,v,A,b,I,T,S=null,O=0,B,D=new Uint16Array(gc+1),H=new Uint16Array(gc+1),K=null,q=0,M,F,pe;for(l=0;l<=gc;l++)D[l]=0;for(h=0;h=1&&D[m]===0;m--);if(g>m&&(g=m),m===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,s.bits=1,0;for(d=1;d0&&(e===iI||m!==1))return-1;for(H[1]=0,l=1;lnI||e===aI&&_>rI)return 1;for(;;){M=l-c,o[h]B?(F=K[q+o[h]],pe=S[O+o[h]]):(F=32+64,pe=0),v=1<>c)+A]=M<<24|F<<16|pe|0;while(A!==0);for(v=1<>=1;if(v!==0?(y&=v-1,y+=v):y=0,h++,--D[l]==0){if(l===m)break;l=t[n+o[h]]}if(l>g&&(y&I)!==b){for(c===0&&(c=g),T+=d,p=l-c,f=1<nI||e===aI&&_>rI)return 1;b=y&I,i[b]=g<<24|p<<16|T-a|0}}return y!==0&&(i[T+y]=l-c<<24|64<<16|0),s.bits=g,0},Mh=wz,xz=0,oI=1,sI=2,{Z_FINISH:uI,Z_BLOCK:Dz,Z_TREES:dg,Z_OK:Gu,Z_STREAM_END:Cz,Z_NEED_DICT:Rz,Z_STREAM_ERROR:da,Z_DATA_ERROR:lI,Z_MEM_ERROR:cI,Z_BUF_ERROR:Oz,Z_DEFLATED:fI}=xh,hI=1,pI=2,dI=3,mI=4,gI=5,_I=6,yI=7,EI=8,vI=9,bI=10,mg=11,Ko=12,Rv=13,SI=14,Ov=15,AI=16,TI=17,wI=18,xI=19,gg=20,_g=21,DI=22,CI=23,RI=24,OI=25,kI=26,kv=27,II=28,NI=29,Sn=30,PI=31,kz=32,Iz=852,Nz=592,Pz=15,Mz=Pz,MI=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Fz(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var FI=e=>{if(!e||!e.state)return da;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=hI,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Iz),t.distcode=t.distdyn=new Int32Array(Nz),t.sane=1,t.back=-1,Gu},LI=e=>{if(!e||!e.state)return da;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,FI(e)},BI=(e,t)=>{let n;if(!e||!e.state)return da;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15)?da:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,LI(e))},VI=(e,t)=>{if(!e)return da;let n=new Fz;e.state=n,n.window=null;let r=BI(e,t);return r!==Gu&&(e.state=null),r},Lz=e=>VI(e,Mz),$I=!0,Iv,Nv,Bz=e=>{if($I){Iv=new Int32Array(512),Nv=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Mh(oI,e.lens,0,288,Iv,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Mh(sI,e.lens,0,32,Nv,0,e.work,{bits:5}),$I=!1}e.lencode=Iv,e.lenbits=9,e.distcode=Nv,e.distbits=5},UI=(e,t,n,r)=>{let i,a=e.state;return a.window===null&&(a.wsize=1<=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave{let n,r,i,a,o,s,u,l,h,d,m,g,p,c,f=0,_,y,v,A,b,I,T,S,O=new Uint8Array(4),B,D,H=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return da;n=e.state,n.mode===Ko&&(n.mode=Rv),o=e.next_out,i=e.output,u=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,h=n.bits,d=s,m=u,S=Gu;e:for(;;)switch(n.mode){case hI:if(n.wrap===0){n.mode=Rv;break}for(;h<16;){if(s===0)break e;s--,l+=r[a++]<>>8&255,n.check=wr(n.check,O,2,0),l=0,h=0,n.mode=pI;break}if(n.flags=0,n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=Sn;break}if((l&15)!==fI){e.msg="unknown compression method",n.mode=Sn;break}if(l>>>=4,h-=4,T=(l&15)+8,n.wbits===0)n.wbits=T;else if(T>n.wbits){e.msg="invalid window size",n.mode=Sn;break}n.dmax=1<>8&1),n.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,n.check=wr(n.check,O,2,0)),l=0,h=0,n.mode=dI;case dI:for(;h<32;){if(s===0)break e;s--,l+=r[a++]<>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,n.check=wr(n.check,O,4,0)),l=0,h=0,n.mode=mI;case mI:for(;h<16;){if(s===0)break e;s--,l+=r[a++]<>8),n.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,n.check=wr(n.check,O,2,0)),l=0,h=0,n.mode=gI;case gI:if(n.flags&1024){for(;h<16;){if(s===0)break e;s--,l+=r[a++]<>>8&255,n.check=wr(n.check,O,2,0)),l=0,h=0}else n.head&&(n.head.extra=null);n.mode=_I;case _I:if(n.flags&1024&&(g=n.length,g>s&&(g=s),g&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+g),T)),n.flags&512&&(n.check=wr(n.check,r,g,a)),s-=g,a+=g,n.length-=g),n.length))break e;n.length=0,n.mode=yI;case yI:if(n.flags&2048){if(s===0)break e;g=0;do T=r[a+g++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T));while(T&&g>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Ko;break;case bI:for(;h<32;){if(s===0)break e;s--,l+=r[a++]<>>=h&7,h-=h&7,n.mode=kv;break}for(;h<3;){if(s===0)break e;s--,l+=r[a++]<>>=1,h-=1,l&3){case 0:n.mode=SI;break;case 1:if(Bz(n),n.mode=gg,t===dg){l>>>=2,h-=2;break e}break;case 2:n.mode=TI;break;case 3:e.msg="invalid block type",n.mode=Sn}l>>>=2,h-=2;break;case SI:for(l>>>=h&7,h-=h&7;h<32;){if(s===0)break e;s--,l+=r[a++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=Sn;break}if(n.length=l&65535,l=0,h=0,n.mode=Ov,t===dg)break e;case Ov:n.mode=AI;case AI:if(g=n.length,g){if(g>s&&(g=s),g>u&&(g=u),g===0)break e;i.set(r.subarray(a,a+g),o),s-=g,a+=g,u-=g,o+=g,n.length-=g;break}n.mode=Ko;break;case TI:for(;h<14;){if(s===0)break e;s--,l+=r[a++]<>>=5,h-=5,n.ndist=(l&31)+1,l>>>=5,h-=5,n.ncode=(l&15)+4,l>>>=4,h-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Sn;break}n.have=0,n.mode=wI;case wI:for(;n.have>>=3,h-=3}for(;n.have<19;)n.lens[H[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,B={bits:n.lenbits},S=Mh(xz,n.lens,0,19,n.lencode,0,n.work,B),n.lenbits=B.bits,S){e.msg="invalid code lengths set",n.mode=Sn;break}n.have=0,n.mode=xI;case xI:for(;n.have>>24,y=f>>>16&255,v=f&65535,!(_<=h);){if(s===0)break e;s--,l+=r[a++]<>>=_,h-=_,n.lens[n.have++]=v;else{if(v===16){for(D=_+2;h>>=_,h-=_,n.have===0){e.msg="invalid bit length repeat",n.mode=Sn;break}T=n.lens[n.have-1],g=3+(l&3),l>>>=2,h-=2}else if(v===17){for(D=_+3;h>>=_,h-=_,T=0,g=3+(l&7),l>>>=3,h-=3}else{for(D=_+7;h>>=_,h-=_,T=0,g=11+(l&127),l>>>=7,h-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Sn;break}for(;g--;)n.lens[n.have++]=T}}if(n.mode===Sn)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Sn;break}if(n.lenbits=9,B={bits:n.lenbits},S=Mh(oI,n.lens,0,n.nlen,n.lencode,0,n.work,B),n.lenbits=B.bits,S){e.msg="invalid literal/lengths set",n.mode=Sn;break}if(n.distbits=6,n.distcode=n.distdyn,B={bits:n.distbits},S=Mh(sI,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,B),n.distbits=B.bits,S){e.msg="invalid distances set",n.mode=Sn;break}if(n.mode=gg,t===dg)break e;case gg:n.mode=_g;case _g:if(s>=6&&u>=258){e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=h,vz(e,m),o=e.next_out,i=e.output,u=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,h=n.bits,n.mode===Ko&&(n.back=-1);break}for(n.back=0;f=n.lencode[l&(1<>>24,y=f>>>16&255,v=f&65535,!(_<=h);){if(s===0)break e;s--,l+=r[a++]<>A)],_=f>>>24,y=f>>>16&255,v=f&65535,!(A+_<=h);){if(s===0)break e;s--,l+=r[a++]<>>=A,h-=A,n.back+=A}if(l>>>=_,h-=_,n.back+=_,n.length=v,y===0){n.mode=kI;break}if(y&32){n.back=-1,n.mode=Ko;break}if(y&64){e.msg="invalid literal/length code",n.mode=Sn;break}n.extra=y&15,n.mode=DI;case DI:if(n.extra){for(D=n.extra;h>>=n.extra,h-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=CI;case CI:for(;f=n.distcode[l&(1<>>24,y=f>>>16&255,v=f&65535,!(_<=h);){if(s===0)break e;s--,l+=r[a++]<>A)],_=f>>>24,y=f>>>16&255,v=f&65535,!(A+_<=h);){if(s===0)break e;s--,l+=r[a++]<>>=A,h-=A,n.back+=A}if(l>>>=_,h-=_,n.back+=_,y&64){e.msg="invalid distance code",n.mode=Sn;break}n.offset=v,n.extra=y&15,n.mode=RI;case RI:if(n.extra){for(D=n.extra;h>>=n.extra,h-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Sn;break}n.mode=OI;case OI:if(u===0)break e;if(g=m-u,n.offset>g){if(g=n.offset-g,g>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Sn;break}g>n.wnext?(g-=n.wnext,p=n.wsize-g):p=n.wnext-g,g>n.length&&(g=n.length),c=n.window}else c=i,p=o-n.offset,g=n.length;g>u&&(g=u),u-=g,n.length-=g;do i[o++]=c[p++];while(--g);n.length===0&&(n.mode=_g);break;case kI:if(u===0)break e;i[o++]=n.length,u--,n.mode=_g;break;case kv:if(n.wrap){for(;h<32;){if(s===0)break e;s--,l|=r[a++]<{if(!e||!e.state)return da;let t=e.state;return t.window&&(t.window=null),e.state=null,Gu},Uz=(e,t)=>{if(!e||!e.state)return da;let n=e.state;return(n.wrap&2)==0?da:(n.head=t,t.done=!1,Gu)},zz=(e,t)=>{let n=t.length,r,i,a;return!e||!e.state||(r=e.state,r.wrap!==0&&r.mode!==mg)?da:r.mode===mg&&(i=1,i=wh(i,t,n,0),i!==r.check)?lI:(a=UI(e,t,n,n),a?(r.mode=PI,cI):(r.havedict=1,Gu))},Gz=LI,jz=BI,Hz=FI,Wz=Lz,Kz=VI,qz=Vz,Xz=$z,Yz=Uz,Zz=zz,Jz="pako inflate (from Nodeca project)",qo={inflateReset:Gz,inflateReset2:jz,inflateResetKeep:Hz,inflateInit:Wz,inflateInit2:Kz,inflate:qz,inflateEnd:Xz,inflateGetHeader:Yz,inflateSetDictionary:Zz,inflateInfo:Jz};function Qz(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var eG=Qz,zI=Object.prototype.toString,{Z_NO_FLUSH:tG,Z_FINISH:nG,Z_OK:Fh,Z_STREAM_END:Pv,Z_NEED_DICT:Mv,Z_STREAM_ERROR:rG,Z_DATA_ERROR:GI,Z_MEM_ERROR:iG}=xh;function Fv(e){this.options=fg.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)==0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eI,this.strm.avail_out=0;let n=qo.inflateInit2(this.strm,t.windowBits);if(n!==Fh)throw new Error(pc[n]);if(this.header=new eG,qo.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Nh.string2buf(t.dictionary):zI.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=qo.inflateSetDictionary(this.strm,t.dictionary),n!==Fh)))throw new Error(pc[n])}Fv.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,o,s;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?nG:tG,zI.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=qo.inflate(n,o),a===Mv&&i&&(a=qo.inflateSetDictionary(n,i),a===Fh?a=qo.inflate(n,o):a===GI&&(a=Mv));n.avail_in>0&&a===Pv&&n.state.wrap>0&&e[n.next_in]!==0;)qo.inflateReset(n),a=qo.inflate(n,o);switch(a){case rG:case GI:case Mv:case iG:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===Pv))if(this.options.to==="string"){let u=Nh.utf8border(n.output,n.next_out),l=n.next_out-u,h=Nh.buf2string(n.output,u);n.next_out=l,n.avail_out=r-l,l&&n.output.set(n.output.subarray(u,u+l),0),this.onData(h)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===Fh&&s===0)){if(a===Pv)return a=qo.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Fv.prototype.onData=function(e){this.chunks.push(e)};Fv.prototype.onEnd=function(e){e===Fh&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=fg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var{Deflate:lW,deflate:cW,deflateRaw:fW,gzip:aG}=yz;var jI=aG;var KI=new Map;self.onmessage=({data:e})=>{let t=`${e}`;(async()=>{var r;let n;try{let i=await $A({input:"/input.js",plugins:[F1(),(0,HI.httpResolve)({cache:KI,resolveIdFallback:(o,s)=>{if(s!=null&&!o.startsWith("."))return o.startsWith("https://")?o:`https://esm.sh/${o}`}}),vR(),qA({files:{"/input.js":t}}),vk()]}),{output:a}=await i.generate({format:"esm"});n=a[0].code,n=(r=n==null?void 0:n.trim)==null?void 0:r.call(n)}catch(i){self.postMessage({type:"rollup build error",error:i})}try{KI.clear();let{length:i}=await jI(n,{level:9});self.postMessage({value:{content:n,size:(0,WI.default)(i)}})}catch(i){self.postMessage({type:"gzip error",error:i})}})()};})(); +//# sourceMappingURL=`+t.sourceMap.url)}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=wO(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=wO(t.mangle.properties.cache))),t.format&&t.format.source_map&&t.format.source_map.destroy(),n&&(n.end=Date.now(),o.timings={parse:.001*(n.rename-n.parse),rename:.001*(n.compress-n.rename),compress:.001*(n.scope-n.compress),scope:.001*(n.mangle-n.scope),mangle:.001*(n.properties-n.mangle),properties:.001*(n.format-n.properties),format:.001*(n.end-n.format),total:.001*(n.end-n.start)}),o}R();var Ek=ji(yk()),vk=(e={module:!0})=>({name:"terser",async transform(t){try{return await ph(t)}catch(n){let{message:r,line:i,col:a}=n;throw console.error((0,Ek.codeFrameColumns)(t,{start:{line:i,column:a}},{message:r})),n}}});var WI=ji(Ak());R();var C5=4,Tk=0,wk=1,R5=2;function fc(e){let t=e.length;for(;--t>=0;)e[t]=0}var O5=0,xk=1,k5=2,I5=3,N5=258,pv=29,Eh=256,vh=Eh+1+pv,hc=30,dv=19,Dk=2*vh+1,Bu=15,mv=16,P5=7,gv=256,Ck=16,Rk=17,Ok=18,_v=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),rg=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),M5=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),kk=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),F5=512,Wo=new Array((vh+2)*2);fc(Wo);var bh=new Array(hc*2);fc(bh);var Sh=new Array(F5);fc(Sh);var Ah=new Array(N5-I5+1);fc(Ah);var yv=new Array(pv);fc(yv);var ig=new Array(hc);fc(ig);function Ev(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var Ik,Nk,Pk;function vv(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var Mk=e=>e<256?Sh[e]:Sh[256+(e>>>7)],Th=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},ki=(e,t,n)=>{e.bi_valid>mv-n?(e.bi_buf|=t<>mv-e.bi_valid,e.bi_valid+=n-mv):(e.bi_buf|=t<{ki(e,n[t*2],n[t*2+1])},Fk=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},L5=e=>{e.bi_valid===16?(Th(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},B5=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,u=t.stat_desc.max_length,l,h,d,m,g,p,c=0;for(m=0;m<=Bu;m++)e.bl_count[m]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;lu&&(m=u,c++),n[h*2+1]=m,!(h>r)&&(e.bl_count[m]++,g=0,h>=s&&(g=o[h-s]),p=n[h*2],e.opt_len+=p*(m+g),a&&(e.static_len+=p*(i[h*2+1]+g)));if(c!==0){do{for(m=u-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[u]--,c-=2}while(c>0);for(m=u;m!==0;m--)for(h=e.bl_count[m];h!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==m&&(e.opt_len+=(m-n[d*2+1])*n[d*2],n[d*2+1]=m),h--)}},Lk=(e,t,n)=>{let r=new Array(Bu+1),i=0,a,o;for(a=1;a<=Bu;a++)r[a]=i=i+n[a-1]<<1;for(o=0;o<=t;o++){let s=e[o*2+1];s!==0&&(e[o*2]=Fk(r[s]++,s))}},V5=()=>{let e,t,n,r,i,a=new Array(Bu+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?Th(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},$5=(e,t,n,r)=>{Vk(e),r&&(Th(e,n),Th(e,~n)),e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},$k=(e,t,n,r)=>{let i=t*2,a=n*2;return e[i]{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i{let r,i,a=0,o,s;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,r===0?lo(e,i,t):(o=Ah[i],lo(e,o+Eh+1,t),s=_v[o],s!==0&&(i-=yv[o],ki(e,i,s)),r--,o=Mk(r),lo(e,o,n),s=rg[o],s!==0&&(r-=ig[o],ki(e,r,s)));while(a{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,u=-1,l;for(e.heap_len=0,e.heap_max=Dk,o=0;o>1;o>=1;o--)bv(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],bv(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,bv(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],B5(e,t),Lk(n,u,e.bl_count)},zk=(e,t,n)=>{let r,i=-1,a,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s{let r,i=-1,a,o=t[0*2+1],s=0,u=7,l=4;for(o===0&&(u=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s{let t;for(zk(e,e.dyn_ltree,e.l_desc.max_code),zk(e,e.dyn_dtree,e.d_desc.max_code),Sv(e,e.bl_desc),t=dv-1;t>=3&&e.bl_tree[kk[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},z5=(e,t,n,r)=>{let i;for(ki(e,t-257,5),ki(e,n-1,5),ki(e,r-4,4),i=0;i{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Tk;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return wk;for(n=32;n{jk||(V5(),jk=!0),e.l_desc=new vv(e.dyn_ltree,Ik),e.d_desc=new vv(e.dyn_dtree,Nk),e.bl_desc=new vv(e.bl_tree,Pk),e.bi_buf=0,e.bi_valid=0,Bk(e)},Hk=(e,t,n,r)=>{ki(e,(O5<<1)+(r?1:0),3),$5(e,t,n,!0)},H5=e=>{ki(e,xk<<1,3),lo(e,gv,Wo),L5(e)},W5=(e,t,n,r)=>{let i,a,o=0;e.level>0?(e.strm.data_type===R5&&(e.strm.data_type=G5(e)),Sv(e,e.l_desc),Sv(e,e.d_desc),o=U5(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?Hk(e,t,n,r):e.strategy===C5||a===i?(ki(e,(xk<<1)+(r?1:0),3),Uk(e,Wo,bh)):(ki(e,(k5<<1)+(r?1:0),3),z5(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Uk(e,e.dyn_ltree,e.dyn_dtree)),Bk(e),r&&Vk(e)},K5=(e,t,n)=>(e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Ah[n]+Eh+1)*2]++,e.dyn_dtree[Mk(t)*2]++),e.last_lit===e.lit_bufsize-1),q5=j5,X5=Hk,Y5=W5,Z5=K5,J5=H5,Q5={_tr_init:q5,_tr_stored_block:X5,_tr_flush_block:Y5,_tr_tally:Z5,_tr_align:J5},e4=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0},wh=e4,t4=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},n4=new Uint32Array(t4()),r4=(e,t,n,r)=>{let i=n4,a=r+n;e^=-1;for(let o=r;o>>8^i[(e^t[o])&255];return e^-1},wr=r4,pc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xh={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:i4,_tr_stored_block:a4,_tr_flush_block:o4,_tr_tally:Fs,_tr_align:s4}=Q5,{Z_NO_FLUSH:Vu,Z_PARTIAL_FLUSH:u4,Z_FULL_FLUSH:l4,Z_FINISH:Ls,Z_BLOCK:Wk,Z_OK:co,Z_STREAM_END:Kk,Z_STREAM_ERROR:pa,Z_DATA_ERROR:c4,Z_BUF_ERROR:Av,Z_DEFAULT_COMPRESSION:f4,Z_FILTERED:h4,Z_HUFFMAN_ONLY:ag,Z_RLE:p4,Z_FIXED:d4,Z_DEFAULT_STRATEGY:m4,Z_UNKNOWN:g4,Z_DEFLATED:og}=xh,_4=9,y4=15,E4=8,v4=29,b4=256,Tv=b4+1+v4,S4=30,A4=19,T4=2*Tv+1,w4=15,kt=3,Bs=258,Ba=Bs+kt+1,x4=32,sg=42,wv=69,ug=73,lg=91,cg=103,$u=113,Dh=666,ur=1,Ch=2,Uu=3,dc=4,D4=3,Vs=(e,t)=>(e.msg=pc[t],t),qk=e=>(e<<1)-(e>4?9:0),$s=e=>{let t=e.length;for(;--t>=0;)e[t]=0},C4=(e,t,n)=>(t<{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Gr=(e,t)=>{o4(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,zs(e.strm)},zt=(e,t)=>{e.pending_buf[e.pending++]=t},Rh=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},R4=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=wh(e.adler,t,i,n):e.state.wrap===2&&(e.adler=wr(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Xk=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-Ba?e.strstart-(e.w_size-Ba):0,l=e.window,h=e.w_mask,d=e.prev,m=e.strstart+Bs,g=l[r+o-1],p=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(l[i+o]!==p||l[i+o-1]!==g||l[i]!==l[r]||l[++i]!==l[r+1])){r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&ro){if(e.match_start=t,o=a,a>=s)break;g=l[r+o-1],p=l[r+o]}}while((t=d[t&h])>u&&--n!=0);return o<=e.lookahead?o:e.lookahead},zu=e=>{let t=e.w_size,n,r,i,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Ba)){e.window.set(e.window.subarray(t,t+t),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,r=e.hash_size,n=r;do i=e.head[--n],e.head[n]=i>=t?i-t:0;while(--r);r=t,n=r;do i=e.prev[--n],e.prev[n]=i>=t?i-t:0;while(--r);a+=t}if(e.strm.avail_in===0)break;if(r=R4(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=r,e.lookahead+e.insert>=kt)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=Us(e,e.ins_h,e.window[o+1]);e.insert&&(e.ins_h=Us(e,e.ins_h,e.window[o+kt-1]),e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert{let n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(zu(e),e.lookahead===0&&t===Vu)return ur;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;let r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Gr(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Ba&&(Gr(e,!1),e.strm.avail_out===0))return ur}return e.insert=0,t===Ls?(Gr(e,!0),e.strm.avail_out===0?Uu:dc):(e.strstart>e.block_start&&(Gr(e,!1),e.strm.avail_out===0),ur)},xv=(e,t)=>{let n,r;for(;;){if(e.lookahead=kt&&(e.ins_h=Us(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Ba&&(e.match_length=Xk(e,n)),e.match_length>=kt)if(r=Fs(e,e.strstart-e.match_start,e.match_length-kt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=kt){e.match_length--;do e.strstart++,e.ins_h=Us(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!=0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Us(e,e.ins_h,e.window[e.strstart+1]);else r=Fs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Gr(e,!1),e.strm.avail_out===0))return ur}return e.insert=e.strstart{let n,r,i;for(;;){if(e.lookahead=kt&&(e.ins_h=Us(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=kt-1,n!==0&&e.prev_length4096)&&(e.match_length=kt-1)),e.prev_length>=kt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-kt,r=Fs(e,e.strstart-1-e.prev_match,e.prev_length-kt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Us(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!=0);if(e.match_available=0,e.match_length=kt-1,e.strstart++,r&&(Gr(e,!1),e.strm.avail_out===0))return ur}else if(e.match_available){if(r=Fs(e,0,e.window[e.strstart-1]),r&&Gr(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ur}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Fs(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,i,a,o=e.window;for(;;){if(e.lookahead<=Bs){if(zu(e),e.lookahead<=Bs&&t===Vu)return ur;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=kt&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+Bs;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=kt?(n=Fs(e,1,e.match_length-kt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Fs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Gr(e,!1),e.strm.avail_out===0))return ur}return e.insert=0,t===Ls?(Gr(e,!0),e.strm.avail_out===0?Uu:dc):e.last_lit&&(Gr(e,!1),e.strm.avail_out===0)?ur:Ch},I4=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(zu(e),e.lookahead===0)){if(t===Vu)return ur;break}if(e.match_length=0,n=Fs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Gr(e,!1),e.strm.avail_out===0))return ur}return e.insert=0,t===Ls?(Gr(e,!0),e.strm.avail_out===0?Uu:dc):e.last_lit&&(Gr(e,!1),e.strm.avail_out===0)?ur:Ch};function fo(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Oh=[new fo(0,0,0,0,O4),new fo(4,4,8,4,xv),new fo(4,5,16,8,xv),new fo(4,6,32,32,xv),new fo(4,4,16,16,mc),new fo(8,16,32,32,mc),new fo(8,16,128,128,mc),new fo(8,32,128,256,mc),new fo(32,128,258,1024,mc),new fo(32,258,258,4096,mc)],N4=e=>{e.window_size=2*e.w_size,$s(e.head),e.max_lazy_match=Oh[e.level].max_lazy,e.good_match=Oh[e.level].good_length,e.nice_match=Oh[e.level].nice_length,e.max_chain_length=Oh[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=kt-1,e.match_available=0,e.ins_h=0};function P4(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=og,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(T4*2),this.dyn_dtree=new Uint16Array((2*S4+1)*2),this.bl_tree=new Uint16Array((2*A4+1)*2),$s(this.dyn_ltree),$s(this.dyn_dtree),$s(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(w4+1),this.heap=new Uint16Array(2*Tv+1),$s(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Tv+1),$s(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Yk=e=>{if(!e||!e.state)return Vs(e,pa);e.total_in=e.total_out=0,e.data_type=g4;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?sg:$u,e.adler=t.wrap===2?0:1,t.last_flush=Vu,i4(t),co},Zk=e=>{let t=Yk(e);return t===co&&N4(e.state),t},M4=(e,t)=>!e||!e.state||e.state.wrap!==2?pa:(e.state.gzhead=t,co),Jk=(e,t,n,r,i,a)=>{if(!e)return pa;let o=1;if(t===f4&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>_4||n!==og||r<8||r>15||t<0||t>9||a<0||a>d4)return Vs(e,pa);r===8&&(r=9);let s=new P4;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<Jk(e,t,og,y4,E4,m4),L4=(e,t)=>{let n,r;if(!e||!e.state||t>Wk||t<0)return e?Vs(e,pa):pa;let i=e.state;if(!e.output||!e.input&&e.avail_in!==0||i.status===Dh&&t!==Ls)return Vs(e,e.avail_out===0?Av:pa);i.strm=e;let a=i.last_flush;if(i.last_flush=t,i.status===sg)if(i.wrap===2)e.adler=0,zt(i,31),zt(i,139),zt(i,8),i.gzhead?(zt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),zt(i,i.gzhead.time&255),zt(i,i.gzhead.time>>8&255),zt(i,i.gzhead.time>>16&255),zt(i,i.gzhead.time>>24&255),zt(i,i.level===9?2:i.strategy>=ag||i.level<2?4:0),zt(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(zt(i,i.gzhead.extra.length&255),zt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=wr(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=wv):(zt(i,0),zt(i,0),zt(i,0),zt(i,0),zt(i,0),zt(i,i.level===9?2:i.strategy>=ag||i.level<2?4:0),zt(i,D4),i.status=$u);else{let o=og+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=ag||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=x4),o+=31-o%31,i.status=$u,Rh(i,o),i.strstart!==0&&(Rh(i,e.adler>>>16),Rh(i,e.adler&65535)),e.adler=1}if(i.status===wv)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),zs(e),n=i.pending,i.pending===i.pending_buf_size));)zt(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=ug)}else i.status=ug;if(i.status===ug)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),zs(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}i.gzindexn&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),r===0&&(i.gzindex=0,i.status=lg)}else i.status=lg;if(i.status===lg)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),zs(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}i.gzindexn&&(e.adler=wr(e.adler,i.pending_buf,i.pending-n,n)),r===0&&(i.status=cg)}else i.status=cg;if(i.status===cg&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&zs(e),i.pending+2<=i.pending_buf_size&&(zt(i,e.adler&255),zt(i,e.adler>>8&255),e.adler=0,i.status=$u)):i.status=$u),i.pending!==0){if(zs(e),e.avail_out===0)return i.last_flush=-1,co}else if(e.avail_in===0&&qk(t)<=qk(a)&&t!==Ls)return Vs(e,Av);if(i.status===Dh&&e.avail_in!==0)return Vs(e,Av);if(e.avail_in!==0||i.lookahead!==0||t!==Vu&&i.status!==Dh){let o=i.strategy===ag?I4(i,t):i.strategy===p4?k4(i,t):Oh[i.level].func(i,t);if((o===Uu||o===dc)&&(i.status=Dh),o===ur||o===Uu)return e.avail_out===0&&(i.last_flush=-1),co;if(o===Ch&&(t===u4?s4(i):t!==Wk&&(a4(i,0,0,!1),t===l4&&($s(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),zs(e),e.avail_out===0))return i.last_flush=-1,co}return t!==Ls?co:i.wrap<=0?Kk:(i.wrap===2?(zt(i,e.adler&255),zt(i,e.adler>>8&255),zt(i,e.adler>>16&255),zt(i,e.adler>>24&255),zt(i,e.total_in&255),zt(i,e.total_in>>8&255),zt(i,e.total_in>>16&255),zt(i,e.total_in>>24&255)):(Rh(i,e.adler>>>16),Rh(i,e.adler&65535)),zs(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?co:Kk)},B4=e=>{if(!e||!e.state)return pa;let t=e.state.status;return t!==sg&&t!==wv&&t!==ug&&t!==lg&&t!==cg&&t!==$u&&t!==Dh?Vs(e,pa):(e.state=null,t===$u?Vs(e,c4):co)},V4=(e,t)=>{let n=t.length;if(!e||!e.state)return pa;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==sg||r.lookahead)return pa;if(i===1&&(e.adler=wh(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&($s(r.head),r.strstart=0,r.block_start=0,r.insert=0);let u=new Uint8Array(r.w_size);u.set(t.subarray(n-r.w_size,n),0),t=u,n=r.w_size}let a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,zu(r);r.lookahead>=kt;){let u=r.strstart,l=r.lookahead-(kt-1);do r.ins_h=Us(r,r.ins_h,r.window[u+kt-1]),r.prev[u&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=u,u++;while(--l);r.strstart=u,r.lookahead=kt-1,zu(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=kt-1,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,co},$4=F4,U4=Jk,z4=Zk,G4=Yk,j4=M4,H4=L4,W4=B4,K4=V4,q4="pako deflate (from Nodeca project)",kh={deflateInit:$4,deflateInit2:U4,deflateReset:z4,deflateResetKeep:G4,deflateSetHeader:j4,deflate:H4,deflateEnd:W4,deflateSetDictionary:K4,deflateInfo:q4},X4=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Y4=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(!!n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let r in n)X4(n,r)&&(e[r]=n[r])}}return e},Z4=e=>{let t=0;for(let r=0,i=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ih[254]=Ih[254]=1;var J4=e=>{let t,n,r,i,a,o=e.length,s=0;for(i=0;i>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t},Q4=(e,t)=>{if(t<65534&&e.subarray&&Qk)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{let n,r,i=t||e.length,a=new Array(i*2);for(r=0,n=0;n4){a[r++]=65533,n+=s-1;continue}for(o&=s===2?31:s===3?15:7;s>1&&n1){a[r++]=65533;continue}o<65536?a[r++]=o:(o-=65536,a[r++]=55296|o>>10&1023,a[r++]=56320|o&1023)}return Q4(a,r)},tz=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+Ih[e[n]]>t?n:t},Nh={string2buf:J4,buf2string:ez,utf8border:tz};function nz(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var eI=nz,tI=Object.prototype.toString,{Z_NO_FLUSH:rz,Z_SYNC_FLUSH:iz,Z_FULL_FLUSH:az,Z_FINISH:oz,Z_OK:hg,Z_STREAM_END:sz,Z_DEFAULT_COMPRESSION:uz,Z_DEFAULT_STRATEGY:lz,Z_DEFLATED:cz}=xh;function Ph(e){this.options=fg.assign({level:uz,method:cz,chunkSize:16384,windowBits:15,memLevel:8,strategy:lz},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eI,this.strm.avail_out=0;let n=kh.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==hg)throw new Error(pc[n]);if(t.header&&kh.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Nh.string2buf(t.dictionary):tI.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=kh.deflateSetDictionary(this.strm,r),n!==hg)throw new Error(pc[n]);this._dict_set=!0}}Ph.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?oz:rz,typeof e=="string"?n.input=Nh.string2buf(e):tI.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(a===iz||a===az)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=kh.deflate(n,a),i===sz)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=kh.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===hg;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Ph.prototype.onData=function(e){this.chunks.push(e)};Ph.prototype.onEnd=function(e){e===hg&&(this.result=fg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Dv(e,t){let n=new Ph(t);if(n.push(e,!0),n.err)throw n.msg||pc[n.err];return n.result}function fz(e,t){return t=t||{},t.raw=!0,Dv(e,t)}function hz(e,t){return t=t||{},t.gzip=!0,Dv(e,t)}var pz=Ph,dz=Dv,mz=fz,gz=hz,_z=xh,yz={Deflate:pz,deflate:dz,deflateRaw:mz,gzip:gz,constants:_z},pg=30,Ez=12,vz=function(t,n){let r,i,a,o,s,u,l,h,d,m,g,p,c,f,_,y,v,A,b,I,T,S,O,B,D=t.state;r=t.next_in,O=t.input,i=r+(t.avail_in-5),a=t.next_out,B=t.output,o=a-(n-t.avail_out),s=a+(t.avail_out-257),u=D.dmax,l=D.wsize,h=D.whave,d=D.wnext,m=D.window,g=D.hold,p=D.bits,c=D.lencode,f=D.distcode,_=(1<>>24,g>>>=A,p-=A,A=v>>>16&255,A===0)B[a++]=v&65535;else if(A&16){b=v&65535,A&=15,A&&(p>>=A,p-=A),p<15&&(g+=O[r++]<>>24,g>>>=A,p-=A,A=v>>>16&255,A&16){if(I=v&65535,A&=15,pu){t.msg="invalid distance too far back",D.mode=pg;break e}if(g>>>=A,p-=A,A=a-o,I>A){if(A=I-A,A>h&&D.sane){t.msg="invalid distance too far back",D.mode=pg;break e}if(T=0,S=m,d===0){if(T+=l-A,A2;)B[a++]=S[T++],B[a++]=S[T++],B[a++]=S[T++],b-=3;b&&(B[a++]=S[T++],b>1&&(B[a++]=S[T++]))}else{T=a-I;do B[a++]=B[T++],B[a++]=B[T++],B[a++]=B[T++],b-=3;while(b>2);b&&(B[a++]=B[T++],b>1&&(B[a++]=B[T++]))}}else if((A&64)==0){v=f[(v&65535)+(g&(1<>3,r-=b,p-=b<<3,g&=(1<{let u=s.bits,l=0,h=0,d=0,m=0,g=0,p=0,c=0,f=0,_=0,y=0,v,A,b,I,T,S=null,O=0,B,D=new Uint16Array(gc+1),H=new Uint16Array(gc+1),K=null,q=0,M,F,pe;for(l=0;l<=gc;l++)D[l]=0;for(h=0;h=1&&D[m]===0;m--);if(g>m&&(g=m),m===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,s.bits=1,0;for(d=1;d0&&(e===iI||m!==1))return-1;for(H[1]=0,l=1;lnI||e===aI&&_>rI)return 1;for(;;){M=l-c,o[h]B?(F=K[q+o[h]],pe=S[O+o[h]]):(F=32+64,pe=0),v=1<>c)+A]=M<<24|F<<16|pe|0;while(A!==0);for(v=1<>=1;if(v!==0?(y&=v-1,y+=v):y=0,h++,--D[l]==0){if(l===m)break;l=t[n+o[h]]}if(l>g&&(y&I)!==b){for(c===0&&(c=g),T+=d,p=l-c,f=1<nI||e===aI&&_>rI)return 1;b=y&I,i[b]=g<<24|p<<16|T-a|0}}return y!==0&&(i[T+y]=l-c<<24|64<<16|0),s.bits=g,0},Mh=wz,xz=0,oI=1,sI=2,{Z_FINISH:uI,Z_BLOCK:Dz,Z_TREES:dg,Z_OK:Gu,Z_STREAM_END:Cz,Z_NEED_DICT:Rz,Z_STREAM_ERROR:da,Z_DATA_ERROR:lI,Z_MEM_ERROR:cI,Z_BUF_ERROR:Oz,Z_DEFLATED:fI}=xh,hI=1,pI=2,dI=3,mI=4,gI=5,_I=6,yI=7,EI=8,vI=9,bI=10,mg=11,Ko=12,Rv=13,SI=14,Ov=15,AI=16,TI=17,wI=18,xI=19,gg=20,_g=21,DI=22,CI=23,RI=24,OI=25,kI=26,kv=27,II=28,NI=29,Sn=30,PI=31,kz=32,Iz=852,Nz=592,Pz=15,Mz=Pz,MI=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Fz(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var FI=e=>{if(!e||!e.state)return da;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=hI,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Iz),t.distcode=t.distdyn=new Int32Array(Nz),t.sane=1,t.back=-1,Gu},LI=e=>{if(!e||!e.state)return da;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,FI(e)},BI=(e,t)=>{let n;if(!e||!e.state)return da;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15)?da:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,LI(e))},VI=(e,t)=>{if(!e)return da;let n=new Fz;e.state=n,n.window=null;let r=BI(e,t);return r!==Gu&&(e.state=null),r},Lz=e=>VI(e,Mz),$I=!0,Iv,Nv,Bz=e=>{if($I){Iv=new Int32Array(512),Nv=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Mh(oI,e.lens,0,288,Iv,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Mh(sI,e.lens,0,32,Nv,0,e.work,{bits:5}),$I=!1}e.lencode=Iv,e.lenbits=9,e.distcode=Nv,e.distbits=5},UI=(e,t,n,r)=>{let i,a=e.state;return a.window===null&&(a.wsize=1<=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave{let n,r,i,a,o,s,u,l,h,d,m,g,p,c,f=0,_,y,v,A,b,I,T,S,O=new Uint8Array(4),B,D,H=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return da;n=e.state,n.mode===Ko&&(n.mode=Rv),o=e.next_out,i=e.output,u=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,h=n.bits,d=s,m=u,S=Gu;e:for(;;)switch(n.mode){case hI:if(n.wrap===0){n.mode=Rv;break}for(;h<16;){if(s===0)break e;s--,l+=r[a++]<>>8&255,n.check=wr(n.check,O,2,0),l=0,h=0,n.mode=pI;break}if(n.flags=0,n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=Sn;break}if((l&15)!==fI){e.msg="unknown compression method",n.mode=Sn;break}if(l>>>=4,h-=4,T=(l&15)+8,n.wbits===0)n.wbits=T;else if(T>n.wbits){e.msg="invalid window size",n.mode=Sn;break}n.dmax=1<>8&1),n.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,n.check=wr(n.check,O,2,0)),l=0,h=0,n.mode=dI;case dI:for(;h<32;){if(s===0)break e;s--,l+=r[a++]<>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,n.check=wr(n.check,O,4,0)),l=0,h=0,n.mode=mI;case mI:for(;h<16;){if(s===0)break e;s--,l+=r[a++]<>8),n.flags&512&&(O[0]=l&255,O[1]=l>>>8&255,n.check=wr(n.check,O,2,0)),l=0,h=0,n.mode=gI;case gI:if(n.flags&1024){for(;h<16;){if(s===0)break e;s--,l+=r[a++]<>>8&255,n.check=wr(n.check,O,2,0)),l=0,h=0}else n.head&&(n.head.extra=null);n.mode=_I;case _I:if(n.flags&1024&&(g=n.length,g>s&&(g=s),g&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+g),T)),n.flags&512&&(n.check=wr(n.check,r,g,a)),s-=g,a+=g,n.length-=g),n.length))break e;n.length=0,n.mode=yI;case yI:if(n.flags&2048){if(s===0)break e;g=0;do T=r[a+g++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T));while(T&&g>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Ko;break;case bI:for(;h<32;){if(s===0)break e;s--,l+=r[a++]<>>=h&7,h-=h&7,n.mode=kv;break}for(;h<3;){if(s===0)break e;s--,l+=r[a++]<>>=1,h-=1,l&3){case 0:n.mode=SI;break;case 1:if(Bz(n),n.mode=gg,t===dg){l>>>=2,h-=2;break e}break;case 2:n.mode=TI;break;case 3:e.msg="invalid block type",n.mode=Sn}l>>>=2,h-=2;break;case SI:for(l>>>=h&7,h-=h&7;h<32;){if(s===0)break e;s--,l+=r[a++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=Sn;break}if(n.length=l&65535,l=0,h=0,n.mode=Ov,t===dg)break e;case Ov:n.mode=AI;case AI:if(g=n.length,g){if(g>s&&(g=s),g>u&&(g=u),g===0)break e;i.set(r.subarray(a,a+g),o),s-=g,a+=g,u-=g,o+=g,n.length-=g;break}n.mode=Ko;break;case TI:for(;h<14;){if(s===0)break e;s--,l+=r[a++]<>>=5,h-=5,n.ndist=(l&31)+1,l>>>=5,h-=5,n.ncode=(l&15)+4,l>>>=4,h-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Sn;break}n.have=0,n.mode=wI;case wI:for(;n.have>>=3,h-=3}for(;n.have<19;)n.lens[H[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,B={bits:n.lenbits},S=Mh(xz,n.lens,0,19,n.lencode,0,n.work,B),n.lenbits=B.bits,S){e.msg="invalid code lengths set",n.mode=Sn;break}n.have=0,n.mode=xI;case xI:for(;n.have>>24,y=f>>>16&255,v=f&65535,!(_<=h);){if(s===0)break e;s--,l+=r[a++]<>>=_,h-=_,n.lens[n.have++]=v;else{if(v===16){for(D=_+2;h>>=_,h-=_,n.have===0){e.msg="invalid bit length repeat",n.mode=Sn;break}T=n.lens[n.have-1],g=3+(l&3),l>>>=2,h-=2}else if(v===17){for(D=_+3;h>>=_,h-=_,T=0,g=3+(l&7),l>>>=3,h-=3}else{for(D=_+7;h>>=_,h-=_,T=0,g=11+(l&127),l>>>=7,h-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Sn;break}for(;g--;)n.lens[n.have++]=T}}if(n.mode===Sn)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Sn;break}if(n.lenbits=9,B={bits:n.lenbits},S=Mh(oI,n.lens,0,n.nlen,n.lencode,0,n.work,B),n.lenbits=B.bits,S){e.msg="invalid literal/lengths set",n.mode=Sn;break}if(n.distbits=6,n.distcode=n.distdyn,B={bits:n.distbits},S=Mh(sI,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,B),n.distbits=B.bits,S){e.msg="invalid distances set",n.mode=Sn;break}if(n.mode=gg,t===dg)break e;case gg:n.mode=_g;case _g:if(s>=6&&u>=258){e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=h,vz(e,m),o=e.next_out,i=e.output,u=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,h=n.bits,n.mode===Ko&&(n.back=-1);break}for(n.back=0;f=n.lencode[l&(1<>>24,y=f>>>16&255,v=f&65535,!(_<=h);){if(s===0)break e;s--,l+=r[a++]<>A)],_=f>>>24,y=f>>>16&255,v=f&65535,!(A+_<=h);){if(s===0)break e;s--,l+=r[a++]<>>=A,h-=A,n.back+=A}if(l>>>=_,h-=_,n.back+=_,n.length=v,y===0){n.mode=kI;break}if(y&32){n.back=-1,n.mode=Ko;break}if(y&64){e.msg="invalid literal/length code",n.mode=Sn;break}n.extra=y&15,n.mode=DI;case DI:if(n.extra){for(D=n.extra;h>>=n.extra,h-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=CI;case CI:for(;f=n.distcode[l&(1<>>24,y=f>>>16&255,v=f&65535,!(_<=h);){if(s===0)break e;s--,l+=r[a++]<>A)],_=f>>>24,y=f>>>16&255,v=f&65535,!(A+_<=h);){if(s===0)break e;s--,l+=r[a++]<>>=A,h-=A,n.back+=A}if(l>>>=_,h-=_,n.back+=_,y&64){e.msg="invalid distance code",n.mode=Sn;break}n.offset=v,n.extra=y&15,n.mode=RI;case RI:if(n.extra){for(D=n.extra;h>>=n.extra,h-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Sn;break}n.mode=OI;case OI:if(u===0)break e;if(g=m-u,n.offset>g){if(g=n.offset-g,g>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Sn;break}g>n.wnext?(g-=n.wnext,p=n.wsize-g):p=n.wnext-g,g>n.length&&(g=n.length),c=n.window}else c=i,p=o-n.offset,g=n.length;g>u&&(g=u),u-=g,n.length-=g;do i[o++]=c[p++];while(--g);n.length===0&&(n.mode=_g);break;case kI:if(u===0)break e;i[o++]=n.length,u--,n.mode=_g;break;case kv:if(n.wrap){for(;h<32;){if(s===0)break e;s--,l|=r[a++]<{if(!e||!e.state)return da;let t=e.state;return t.window&&(t.window=null),e.state=null,Gu},Uz=(e,t)=>{if(!e||!e.state)return da;let n=e.state;return(n.wrap&2)==0?da:(n.head=t,t.done=!1,Gu)},zz=(e,t)=>{let n=t.length,r,i,a;return!e||!e.state||(r=e.state,r.wrap!==0&&r.mode!==mg)?da:r.mode===mg&&(i=1,i=wh(i,t,n,0),i!==r.check)?lI:(a=UI(e,t,n,n),a?(r.mode=PI,cI):(r.havedict=1,Gu))},Gz=LI,jz=BI,Hz=FI,Wz=Lz,Kz=VI,qz=Vz,Xz=$z,Yz=Uz,Zz=zz,Jz="pako inflate (from Nodeca project)",qo={inflateReset:Gz,inflateReset2:jz,inflateResetKeep:Hz,inflateInit:Wz,inflateInit2:Kz,inflate:qz,inflateEnd:Xz,inflateGetHeader:Yz,inflateSetDictionary:Zz,inflateInfo:Jz};function Qz(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var eG=Qz,zI=Object.prototype.toString,{Z_NO_FLUSH:tG,Z_FINISH:nG,Z_OK:Fh,Z_STREAM_END:Pv,Z_NEED_DICT:Mv,Z_STREAM_ERROR:rG,Z_DATA_ERROR:GI,Z_MEM_ERROR:iG}=xh;function Fv(e){this.options=fg.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)==0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eI,this.strm.avail_out=0;let n=qo.inflateInit2(this.strm,t.windowBits);if(n!==Fh)throw new Error(pc[n]);if(this.header=new eG,qo.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Nh.string2buf(t.dictionary):zI.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=qo.inflateSetDictionary(this.strm,t.dictionary),n!==Fh)))throw new Error(pc[n])}Fv.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,o,s;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?nG:tG,zI.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=qo.inflate(n,o),a===Mv&&i&&(a=qo.inflateSetDictionary(n,i),a===Fh?a=qo.inflate(n,o):a===GI&&(a=Mv));n.avail_in>0&&a===Pv&&n.state.wrap>0&&e[n.next_in]!==0;)qo.inflateReset(n),a=qo.inflate(n,o);switch(a){case rG:case GI:case Mv:case iG:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===Pv))if(this.options.to==="string"){let u=Nh.utf8border(n.output,n.next_out),l=n.next_out-u,h=Nh.buf2string(n.output,u);n.next_out=l,n.avail_out=r-l,l&&n.output.set(n.output.subarray(u,u+l),0),this.onData(h)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===Fh&&s===0)){if(a===Pv)return a=qo.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Fv.prototype.onData=function(e){this.chunks.push(e)};Fv.prototype.onEnd=function(e){e===Fh&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=fg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var{Deflate:lW,deflate:cW,deflateRaw:fW,gzip:aG}=yz;var jI=aG;var KI=new Map;self.onmessage=({data:e})=>{let t=`${e}`;(async()=>{var r;let n;try{let i=await $A({input:"/input.js",plugins:[F1(),(0,HI.httpResolve)({cache:KI,resolveIdFallback:(o,s)=>{if(s!=null&&!o.startsWith("."))return o.startsWith("https://")?o:`https://cdn.skypack.dev/${o}`}}),vR(),qA({files:{"/input.js":t}}),vk()]}),{output:a}=await i.generate({format:"esm"});n=a[0].code,n=(r=n==null?void 0:n.trim)==null?void 0:r.call(n)}catch(i){self.postMessage({type:"rollup build error",error:i})}try{KI.clear();let{length:i}=await jI(n,{level:9});self.postMessage({value:{content:n,size:(0,WI.default)(i)}})}catch(i){self.postMessage({type:"gzip error",error:i})}})()};})(); /* @license Rollup.js v2.51.2 -- knotmirror 0.0.1