!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eruda=e():t.eruda=e()}(window,function(){return r={},i.m=n=[function(t,vr,gr){"use strict";(function(t,e,n){gr.d(vr,"bb",function(){return nt}),gr.d(vr,"Y",function(){return rt}),gr.d(vr,"U",function(){return it}),gr.d(vr,"ab",function(){return st}),gr.d(vr,"ib",function(){return _t}),gr.d(vr,"Z",function(){return dt}),gr.d(vr,"zb",function(){return yt}),gr.d(vr,"t",function(){return $t}),gr.d(vr,"v",function(){return jt}),gr.d(vr,"w",function(){return At}),gr.d(vr,"x",function(){return Tt}),gr.d(vr,"y",function(){return Ct}),gr.d(vr,"A",function(){return Pt}),gr.d(vr,"C",function(){return Rt}),gr.d(vr,"Eb",function(){return Dt}),gr.d(vr,"E",function(){return Lt}),gr.d(vr,"G",function(){return zt}),gr.d(vr,"qb",function(){return Bt}),gr.d(vr,"N",function(){return Kt}),gr.d(vr,"T",function(){return qt}),gr.d(vr,"u",function(){return Xt}),gr.d(vr,"X",function(){return Zt}),gr.d(vr,"m",function(){return te}),gr.d(vr,"L",function(){return ee}),gr.d(vr,"H",function(){return ne}),gr.d(vr,"tb",function(){return ie}),gr.d(vr,"I",function(){return ae}),gr.d(vr,"K",function(){return oe}),gr.d(vr,"M",function(){return se}),gr.d(vr,"O",function(){return le}),gr.d(vr,"P",function(){return he}),gr.d(vr,"Q",function(){return fe}),gr.d(vr,"R",function(){return ge}),gr.d(vr,"S",function(){return me}),gr.d(vr,"V",function(){return be}),gr.d(vr,"W",function(){return we}),gr.d(vr,"db",function(){return ke}),gr.d(vr,"eb",function(){return $e}),gr.d(vr,"o",function(){return je}),gr.d(vr,"rb",function(){return Ce}),gr.d(vr,"yb",function(){return Pe}),gr.d(vr,"gb",function(){return Re}),gr.d(vr,"xb",function(){return De}),gr.d(vr,"s",function(){return Le}),gr.d(vr,"hb",function(){return Ne}),gr.d(vr,"jb",function(){return Me}),gr.d(vr,"lb",function(){return Fe}),gr.d(vr,"mb",function(){return ze}),gr.d(vr,"B",function(){return He}),gr.d(vr,"Db",function(){return Ke}),gr.d(vr,"r",function(){return Ge}),gr.d(vr,"F",function(){return qe}),gr.d(vr,"z",function(){return Ve}),gr.d(vr,"j",function(){return Xe}),gr.d(vr,"n",function(){return Ye}),gr.d(vr,"fb",function(){return Qe}),gr.d(vr,"p",function(){return Je}),gr.d(vr,"wb",function(){return tn}),gr.d(vr,"b",function(){return en}),gr.d(vr,"f",function(){return rn}),gr.d(vr,"g",function(){return dn}),gr.d(vr,"l",function(){return mn}),gr.d(vr,"c",function(){return xn}),gr.d(vr,"e",function(){return kn}),gr.d(vr,"J",function(){return On}),gr.d(vr,"kb",function(){return jn}),gr.d(vr,"k",function(){return Sn}),gr.d(vr,"a",function(){return Pn}),gr.d(vr,"nb",function(){return Rn}),gr.d(vr,"ob",function(){return Dn}),gr.d(vr,"pb",function(){return Ln}),gr.d(vr,"Ab",function(){return Mn}),gr.d(vr,"cb",function(){return zn}),gr.d(vr,"h",function(){return Bn}),gr.d(vr,"D",function(){return Hn}),gr.d(vr,"i",function(){return Un}),gr.d(vr,"sb",function(){return Kn}),gr.d(vr,"d",function(){return qn}),gr.d(vr,"ub",function(){return Vn}),gr.d(vr,"vb",function(){return Xn}),gr.d(vr,"Bb",function(){return Yn}),gr.d(vr,"Cb",function(){return Qn}),gr.d(vr,"Fb",function(){return Jn}),gr.d(vr,"Gb",function(){return Zn}),gr.d(vr,"Hb",function(){return tr});var r,i,a,o,s,u,l,c,_,h,p,f,d,v,g,m,b,y,w,x,k,$,O,E,j,A,S,T,C,P,R,D,L,N,M,F,z,I,B,H,U,K,W,G,q,V,X,Y,Q,J,Z=gr(12),tt=gr.n(Z),et={},nt=et.last=function(t){var e=t?t.length:0;if(e)return t[e-1]},rt=et.isUndef=function(t){return void 0===t},it=(et.types={},et.isObj=function(t){var e=tt()(t);return!!t&&("function"===e||"object"===e)}),at=et.has=(r=Object.prototype.hasOwnProperty,function(t,e){return r.call(t,e)}),ot=et.slice=function(t,e,n){var r=t.length;e=null==e?0:e<0?Math.max(r+e,0):Math.min(e,r),n=null==n?r:n<0?Math.max(r+n,0):Math.min(n,r);for(var i=[];e>6*e)+n);0>6*(e-1)),e--;return r}function f(t){for(;;){if(o<=a&&l){if(t)return r();throw new Error("Invalid byte index")}if(a===o)return!1;var e=i[a];if(a++,l){if(e":">",'"':""","'":"'","`":"`"},X="(?:"+st(V).join("|")+")",Y=new RegExp(X),Q=new RegExp(X,"g"),J=function(t){return V[t]},q),St=et.escapeJsStr=function(t){t=function(t){return yt(t).replace(e,function(t){switch(t){case'"':case"'":case"\\":return"\\"+t;case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})};var e=/["'\\\n\r\u2028\u2029]/g;return t}({}),Tt=et.escapeJsonStr=function(t){return St(t).replace(/\\'/g,"'").replace(/\t/g,"\\t")},Ct=et.escapeRegExp=function(t){return t.replace(/\W/g,"\\$&")},Pt=et.fileSize=function(t){t=function(t){if(t<=0)return"0";var e=Math.floor(Math.log(t)/Math.log(1024));return+(t/Math.pow(2,10*e)).toFixed(2)+n[e]};var n=["","K","M","G","T"];return t}({}),Rt=et.fullUrl=(s=document.createElement("a"),function(t){return s.href=t,s.protocol+"//"+s.host+s.pathname+s.search+s.hash}),Dt=et.upperFirst=function(t){return t.length<1?t:t[0].toUpperCase()+t.slice(1)},Lt=et.getObjType=function(t){return t.constructor&&t.constructor.name?t.constructor.name:Dt({}.toString.call(t).replace(/(\[object )|]/g,""))},Nt=et.identity=function(t){return t},Mt=et.objToStr=(u=Object.prototype.toString,function(t){return u.call(t)}),Ft=et.isArgs=function(t){return"[object Arguments]"===Mt(t)},zt=et.isArr=Array.isArray?Array.isArray:function(t){return"[object Array]"===Mt(t)},It=et.castPath=function(t){t=function(t,e){if(zt(t))return t;if(e&&at(e,t))return[t];var i=[];return t.replace(n,function(t,e,n,r){i.push(n?r.replace(a,"$1"):e||t)}),i};var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;return t}({}),Bt=et.safeGet=function(t,e){var n;for(n=(e=It(e,t)).shift();!rt(n);){if(null==(t=t[n]))return;n=e.shift()}return t},Ht=et.flatten=function(t){return function t(e,n){for(var r,i=e.length,a=-1;i--;)r=e[++a],zt(r)?t(r,n):n.push(r);return n}(t,[])},Ut=et.isDate=function(t){return"[object Date]"===Mt(t)},Kt=et.isFn=function(t){var e=Mt(t);return"[object Function]"===e||"[object GeneratorFunction]"===e||"[object AsyncFunction]"===e},Wt=et.getProto=(l=Object.getPrototypeOf,c={}.constructor,function(t){if(it(t)){if(l)return l(t);var e=t.__proto__;return e||null===e?e:Kt(t.constructor)?t.constructor.prototype:t instanceof c?c.prototype:void 0}}),Gt=et.isMiniProgram="undefined"!=typeof wx&&Kt(wx.openLocation),qt=et.isNum=function(t){return"[object Number]"===Mt(t)},Vt=et.isArrLike=(_=Math.pow(2,53)-1,function(t){if(!t)return!1;var e=t.length;return qt(e)&&0<=e&&e<=_&&!Kt(t)}),Xt=et.each=function(t,e,n){var r,i;if(e=Et(e,n),Vt(t))for(r=0,i=t.length;r>=1,t+=t;return n},Ee=et.lpad=function(t,e,n){var r=(t=yt(t)).length;return n=n||" ",r=o[s[i]]){r=s[i];break}return+(n/o[r]).toFixed(2)+r};var o={ms:1,s:1e3};o.m=60*o.s,o.h=60*o.m,o.d=24*o.h,o.y=365.25*o.d;var s=["y","d","h","m","s"],u=/^((?:\d+)?\.?\d+) *(s|m|h|d|y)?$/;return t}({}),De=et.toInt=function(t){return t?(t=Pe(t))-t%1:0===t?t:0},Le=et.detectBrowser=function(t){t=function(t){var e=c(t=(t=t||(ct?navigator.userAgent:"")).toLowerCase(),"msie ");if(e)return{version:e,name:"ie"};if(u.test(t))return{version:11,name:"ie"};for(var n=0,r=l.length;n/g,">"),i=n[i];var o=0,s=[];Xt(i,function(n){n.language&&(r=r.replace(n.re,function(t,e){return s[o++]=l(e,n.language,a),t.replace(e,"___subtmpl"+(o-1)+"___")}))}),Xt(i,function(t,e){n[t.language]||(r=r.replace(t.re,"___"+e+"___$1___end"+e+"___"))});var u=[];return r=r.replace(/___(?!subtmpl)\w+?___/g,function(t){var e="end"===t.substr(3,3),n=(e?t.substr(6):t.substr(3)).replace(/_/g,""),r=0").replace(new RegExp("___"+e+"___","g"),'')}),Xt(i,function(t){t.language&&(r=r.replace(/___subtmpl\d+___/g,function(t){var e=parseInt(t.replace(/___subtmpl(\d+)___/,"$1"),10);return s[e]}))}),r};var t={comment:"color:#63a35c;",string:"color:#183691;",number:"color:#0086b3;",keyword:"color:#a71d5d;",operator:"color:#994500;"},n={js:{comment:{re:/(\/\/.*|\/\*([\s\S]*?)\*\/)/g,style:"comment"},string:{re:/(('.*?')|(".*?"))/g,style:"string"},numbers:{re:/(-?(\d+|\d+\.\d+|\.\d+))/g,style:"number"},keywords:{re:/(?:\b)(function|for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|const|let|false|true|null|undefined)(?:\b)/gi,style:"keyword"},operator:{re:/(\+|-|\/|\*|%|=|<|>|\||\?|\.)/g,style:"operator"}}};return n.html={comment:{re:/(<!--([\s\S]*?)-->)/g,style:"comment"},tag:{re:/(<\/?\w(.|\n)*?\/?>)/g,style:"keyword",embed:["string"]},string:n.js.string,css:{re:/(?:<style.*?>)([\s\S]*)?(?:<\/style>)/gi,language:"css"},script:{re:/(?:<script.*?>)([\s\S]*?)(?:<\/script>)/gi,language:"js"}},n.css={comment:n.js.comment,string:n.js.string,numbers:{re:/((-?(\d+|\d+\.\d+|\.\d+)(%|px|em|pt|in)?)|#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,style:"number"},keywords:{re:/(@\w+|:?:\w+|[a-z-]+:)/g,style:"keyword"}},l}({}),Ve=et.extend=Yt(We),Xe=et.clone=function(t){return it(t)?zt(t)?t.slice():Ve({},t):t},Ye=et.copy=function(t,e){e=e||_t;var n=document.createElement("textarea"),r=document.body;Ve(n.style,{fontSize:"12pt",border:"0",padding:"0",margin:"0",position:"absolute",left:"-9999px"}),n.value=t,r.appendChild(n),n.setAttribute("readonly",""),n.select(),n.setSelectionRange(0,t.length);try{document.execCommand("copy"),e()}catch(t){e(t)}finally{r.removeChild(n)}},Qe=et.map=function(t,e,n){e=Be(e,n);for(var r=!Vt(t)&&st(t),i=(r||t).length,a=Array(i),o=0;owindow.innerHeight?"landscape":"portrait"}},xn.mixin(P),window.addEventListener("orientationchange",function(){setTimeout(function(){P.emit("change",P.get())},200)},!1),P),An=et.mapObj=function(t,e,n){e=Be(e,n);for(var r=st(t),i=r.length,a={},o=0;o[\]\u2100-\uFFFF(),]*/gi;return t}({}),zn=et.linkify=function(e,n){n=n||rr;var t=Fn(e);return Xt(t,function(t){e=e.replace(new RegExp(Ct(t),"g"),n)}),e},In=et.query=function(r){r={parse:function(t){var i={};return t=Mn(t).replace(e,""),Xt(t.split("&"),function(t){var e=t.split("="),n=e.shift(),r=0o)return L("Timeout");if(u&&u'+t+""}function ir(t){return Zt(t)?t.split(/\s+/):tn(t)}function ar(i){return function(t,e,n,r){t=on(t),rt(r)&&(r=n,n=void 0),Xt(t,function(t){vn[i](t,e,n,r)})}}function or(){return!0}function sr(){return!1}function ur(t){var e,n=this.events[t.type],r=function(t,e){var n,r,i,a,o=t.target,s=[],u=e.delegateCount;if(o.nodeType)for(;o!==this;o=o.parentNode||this){for(r=[],a=0;ae.right||t.bottome.bottom}function dr(t,e){this[e]=t.replace(/\w/,function(t){return t.toUpperCase()})}vr.q=et}).call(this,gr(16),gr(21),gr(36).setImmediate)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}e.exports=n},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(t,e){for(var n=0;n":">",'"':""","'":"'","`":"`","=":"="},i=/[&<>"'`=]/g,a=/[&<>"'`=]/;function o(t){return r[t]}function s(t){for(var e=1;e(r=f(r))?1:n"+p(t)+'null';if(f.default(n)||d.default(n))return"
  • "+p(t)+''+T.encode(n)+"
  • ";if("RegExp"===s&&(o="regexp"),"Number"===s&&(o="number"),"Number"===s||"RegExp"===s)return"
  • "+p(t)+''+T.encode(n.value)+"
  • ";if("Undefined"===s||"Symbol"===s)return"
  • "+p(t)+''+v.default(s)+"
  • ";if("(...)"===n)return"
  • "+p(t)+''+n+"
  • ";if(g.default(n)){var u=a.get(n),l=void 0;if(u)l=u.id;else{var c={};"proto"===r&&(c.self=e),l=a.set(n,c),this.map[l]=n}var _=function(t,e){if(e)return"Function"===e?T.getFnAbstract(b.default(t)):"Array"===e?"Array("+t.length+")":e}(n,s)||m.default(o),h="
  • '+p(t)+''+(i?"":_)+'
      ";return i&&(h+=this.objToHtml(n)),h+'
  • '}function p(t){if(i)return"";if(g.default(n)&&"virtual"===r)return"";var e=C+"key";return"unenumerable"!==r&&"proto"!==r&&"symbol"!==r||(e=C+"key-lighter"),''+T.encode(t)+": "}return"
  • "+p(t)+'"'+T.encode(n)+'"
  • '},p.prototype.appendTpl=function(){this.$container.html(this.objToHtml(this.data,!0))},p.prototype.bindEvent=function(){var o=this;this.$container.on("click","li",function(t){var e=o.map,n=l.default(this),r=n.data("object-id"),i=l.default(this).find("span").eq(0);if(!n.data("first-level")&&(r&&(n.find("ul").html(o.objToHtml(e[r],!1)),n.rmAttr("data-object-id")),t.stopImmediatePropagation(),i.hasClass(C+"expanded"))){var a=n.find("ul").eq(0);i.hasClass(C+"collapsed")?(i.rmClass(C+"collapsed"),a.show()):(i.addClass(C+"collapsed"),a.hide()),o.emit("change")}})},p.Static=_.default,p)},function(t,e,n){var r=n(14);function a(t,e){return t===e}e=function(t,i){return i=i||a,r(t,function(t,e,n){for(var r=n.length;++e":">",'"':""","'":"'","`":"`"},a="(?:"+r(i).join("|")+")",o=new RegExp(a),s=new RegExp(a,"g"),u=function(t){return i[t]};t.exports=e},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,s=a(n(30)),f=a(n(38)),d=a(n(2)),v=a(n(86)),c=a(n(18)),g=a(n(37)),m=a(n(35)),b=a(n(0)),y=a(n(29)),_=a(n(7)),h=a(n(28)),u=a(n(1)),l=a(n(4)),p=a(n(16)),w=a(n(20)),x=n(36),k="luna-object-viewer-",$=(o=w.default,i(O,o),O.prototype.set=function(t){u.default(t)&&(t=JSON.parse(t)),this.data={id:v.default("json"),enumerable:{0:t}},this.map={},function t(e,n){var r,i,a,o,s,u=n.id;if(u||0===u){if(n.type&&f.default(n.type,"Array")&&n.enumerable){var l=(i=u,a=(r=n).type,o=[],s={},b.default(r.enumerable,function(t,e){var n=g.default(e);y.default(n)?s[e]=t:o[n]=t}),o.enumerable=s,o.type=a,o.id=i,r.unenumerable&&(o.unenumerable=r.unenumerable),r.symbol&&(o.symbol=r.symbol),r.proto&&(o.proto=r.proto),o);100"+l(t)+'null';if(_.default(n)||h.default(n))return"
  • "+l(t)+''+x.encode(n)+"
  • ";if("RegExp"===n.type&&(e="regexp"),"Number"===n.type&&(e="number"),"Number"===n.type||"RegExp"===n.type)return"
  • "+l(t)+''+x.encode(n.value)+"
  • ";if("Undefined"===n.type||"Symbol"===n.type)return"
  • "+l(t)+''+p.default(n.type)+"
  • ";if("(...)"===n)return"
  • "+l(t)+''+n+"
  • ";if(d.default(n)){var a=n.id,o=n.reference,s=E(n)||c.default(e),u="
  • '+l(t)+''+(i?"":s)+'
      ";return i&&(u+=this.objToHtml(this.map[a])),u+'
  • '}function l(t){if(i)return"";if(d.default(n)&&n.jsonSplitArr)return"";var e=k+"key";return"unenumerable"!==r&&"proto"!==r&&"symbol"!==r||(e=k+"key-lighter"),''+x.encode(t)+": "}return"
  • "+l(t)+'"'+x.encode(n)+'"
  • '},O.prototype.appendTpl=function(){var t=this.map[this.data.id];this.$container.html(this.objToHtml(t,!0))},O.prototype.bindEvent=function(){var o=this;this.$container.on("click","li",function(t){var e=o.map,n=s.default(this),r=n.data("object-id"),i=s.default(this).find("span").eq(0);if(!n.data("first-level")&&(r&&(n.find("ul").html(o.objToHtml(e[r],!1)),n.rmAttr("data-object-id")),t.stopImmediatePropagation(),i.hasClass(k+"expanded"))){var a=n.find("ul").eq(0);i.hasClass(k+"collapsed")?(i.rmClass(k+"collapsed"),a.show()):(i.addClass(k+"collapsed"),a.hide()),o.emit("change")}})},O);function O(t){var e=o.call(this)||this;return e.$container=s.default(t),e.$container.addClass("luna-object-viewer"),e.bindEvent(),e}function E(t){var e=t.type,n=t.value;if(e)return"Function"===e?x.getFnAbstract(n):"Array"===e&&t.unenumerable?"Array("+t.unenumerable.length+")":t.type}e.default=$,e.getObjAbstract=E},function(t,e){var n=0;e=function(t){var e=++n+"";return t?t+e:e},t.exports=e},function(t,e,n){}],i.c=a,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/assets/",i(i.s=39))},function(t,e,n){var r,i,a,o;function s(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,s),e.l=!0,e.exports}o={},s.m=a=[function(t,e,n){"use strict";var r=n(1).Beautifier,i=n(5).Options;t.exports=function(t,e){return new r(t,e).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,n){"use strict";var r=n(2).Output,i=n(3).Token,u=n(4),a=n(5).Options,o=n(7).Tokenizer,_=n(7).line_starters,h=n(7).positionable_operators,p=n(7).TOKEN;function f(t,e){return-1!==e.indexOf(t)}function s(t,e){return t&&t.type===p.RESERVED&&t.text===e}function d(t,e){return t&&t.type===p.RESERVED&&f(t.text,e)}var v=["case","return","do","if","throw","else","await","break","continue","async"],g=function(t){for(var e={},n=0;nn&&(n=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new i(p.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},j.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new r(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(b);var n=new o(t,this._options);return this._tokens=n.tokenize(),t},j.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._reset(this._source_text),e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&u.lineBreak.test(t||"")&&(e=t.match(u.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(e)},j.prototype.handle_token=function(t,e){t.type===p.START_EXPR?this.handle_start_expr(t):t.type===p.END_EXPR?this.handle_end_expr(t):t.type===p.START_BLOCK?this.handle_start_block(t):t.type===p.END_BLOCK?this.handle_end_block(t):t.type===p.WORD||t.type===p.RESERVED?this.handle_word(t):t.type===p.SEMICOLON?this.handle_semicolon(t):t.type===p.STRING?this.handle_string(t):t.type===p.EQUALS?this.handle_equals(t):t.type===p.OPERATOR?this.handle_operator(t):t.type===p.COMMA?this.handle_comma(t):t.type===p.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===p.COMMENT?this.handle_comment(t,e):t.type===p.DOT?this.handle_dot(t):t.type===p.EOF?this.handle_eof(t):(t.type,p.UNKNOWN,this.handle_unknown(t,e))},j.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,r=this._options.keep_array_indentation&&O(this._flags.mode);if(t.comments_before)for(var i=t.comments_before.next();i;)this.handle_whitespace_and_comments(i,e),this.handle_token(i,e),i=t.comments_before.next();if(r)for(var a=0;athis._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&1this._flags.parent.indentation_level)&&(--this._flags.indentation_level,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},j.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},j.prototype.restore_mode=function(){0"!==this._flags.last_token.text)&&(f(this._flags.last_token.type,[p.EQUALS,p.START_EXPR,p.COMMA,p.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"]))?this.set_mode(l):this.set_mode(b);var r=!e.comments_before&&"}"===e.text,i=r&&"function"===this._flags.last_word&&this._flags.last_token.type===p.END_EXPR;if(this._options.brace_preserve_inline){var a=0,o=null;this._flags.inline_frame=!0;do{if(a+=1,(o=this._tokens.peek(a-1)).newlines){this._flags.inline_frame=!1;break}}while(o.type!==p.EOF&&(o.type!==p.END_BLOCK||o.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==p.OPERATOR&&(i||this._flags.last_token.type===p.EQUALS||d(this._flags.last_token,v)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!O(this._previous_flags.mode)||this._flags.last_token.type!==p.START_EXPR&&this._flags.last_token.type!==p.COMMA||(this._flags.last_token.type!==p.COMMA&&!this._options.space_in_paren||(this._output.space_before_token=!0),(this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==p.OPERATOR&&this._flags.last_token.type!==p.START_EXPR&&(this._flags.last_token.type!==p.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),r||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},j.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===y;)this.restore_mode();var e=this._flags.last_token.type===p.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(O(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},j.prototype.handle_word=function(t){if(t.type===p.RESERVED&&(f(t.text,["set","get"])&&this._flags.mode!==l||"import"===t.text&&"("===this._tokens.peek().text||f(t.text,["as","from"])&&!this._flags.import_block||this._flags.mode===l&&":"===this._tokens.peek().text)&&(t.type=p.WORD),this.start_of_statement(t)?d(this._flags.last_token,["var","let","const"])&&t.type===p.WORD&&(this._flags.declaration_statement=!0):!t.newlines||E(this._flags.mode)||this._flags.last_token.type===p.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===p.EQUALS||!this._options.preserve_newlines&&d(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(s(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&s(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===y;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==p.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==p.COMMA&&this._flags.last_token.type!==p.START_EXPR&&this._flags.last_token.type!==p.EQUALS&&this._flags.last_token.type!==p.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),s(t,"function"))return(f(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!f(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==p.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,A)||s(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===p.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:!this._flags.multiline_frame&&(E(this._flags.mode)||O(this._flags.mode))||this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var e="NONE";this._flags.last_token.type===p.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":!d(t,["else","catch","finally","from"])||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?e="NEWLINE":(e="SPACE",this._output.space_before_token=!0):this._flags.last_token.type===p.SEMICOLON&&this._flags.mode===b?e="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&E(this._flags.mode)?e="SPACE":this._flags.last_token.type===p.STRING?e="NEWLINE":this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||"*"===this._flags.last_token.text&&(f(this._last_last_text,["function","yield"])||this._flags.mode===l&&f(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===p.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===p.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),d(t,_)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),d(t,["else","catch","finally"])?(this._flags.last_token.type!==p.END_BLOCK||this._previous_flags.mode!==b||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===e?d(this._flags.last_token,v)||"declare"===this._flags.last_token.text&&d(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==p.END_EXPR?this._flags.last_token.type===p.START_EXPR&&d(t,["var","let","const"])||":"===this._flags.last_token.text||(s(t,"if")&&s(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(t,_)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&O(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===e&&(this._output.space_before_token=!0),!t.previous||t.previous.type!==p.WORD&&t.previous.type!==p.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===p.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&s(t,"from")&&(this._flags.import_block=!1))},j.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var e=this._tokens.peek();!(this._flags.mode!==y||this._flags.if_block&&s(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},j.prototype.handle_string=function(t){this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):this.print_newline()),this.print_token(t)},j.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},j.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(E(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===l||this._flags.mode===y&&this._flags.parent.mode===l?(this._flags.mode===y&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},j.prototype.handle_operator=function(t){var e="*"===t.text&&(d(this._flags.last_token,["function","yield"])||f(this._flags.last_token.type,[p.START_BLOCK,p.COMMA,p.END_BLOCK,p.SEMICOLON])),n=f(t.text,["-","+"])&&(f(this._flags.last_token.type,[p.START_BLOCK,p.START_EXPR,p.EQUALS,p.OPERATOR])||f(this._flags.last_token.text,_)||","===this._flags.last_token.text);if(!this.start_of_statement(t)){var r=!e;this.handle_whitespace_and_comments(t,r)}if(d(this._flags.last_token,v))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==p.DOT)if("::"!==t.text){if(this._flags.last_token.type===p.OPERATOR&&f(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==p.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var i=!0,a=!0,o=!1;if(":"===t.text?0===this._flags.ternary_depth?i=!1:(--this._flags.ternary_depth,o=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&f(t.text,h)){var s=":"===t.text,u=s&&o,l=s&&!o;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!l,this.print_token(t),s&&!u||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case g.after_newline:return this._output.space_before_token=!0,!s||u?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case g.preserve_newline:return l||this.allow_wrap_or_preserved_newline(t),i=!(this._output.just_added_newline()||l),this._output.space_before_token=i,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),i=!1;var c=this._tokens.peek();a=c&&f(c.type,[p.WORD,p.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),i=this._flags.last_token.type===p.START_BLOCK,a=!1):(f(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==p.COMMA&&this._flags.last_token.type!==p.START_EXPR||this.allow_wrap_or_preserved_newline(t),a=i=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&E(this._flags.mode)&&(i=!0),this._flags.last_token.type===p.RESERVED?i=!0:this._flags.last_token.type===p.END_EXPR?i=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===p.OPERATOR&&(i=f(t.text,["--","-","++","+"])&&f(this._flags.last_token.text,["--","-","++","+"]),f(t.text,["+","-"])&&f(this._flags.last_token.text,["--","++"])&&(a=!0)),(this._flags.mode!==b||this._flags.inline_frame)&&this._flags.mode!==y||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||i,this.print_token(t),this._output.space_before_token=a}else this.print_token(t);else this.print_token(t)},j.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):u.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},j.prototype.print_block_commment=function(t,e){var n,r=function(t){for(var e=[],n=(t=t.replace(u.allLineBreaks,"\n")).indexOf("\n");-1!==n;)e.push(t.substring(0,n)),n=(t=t.substring(n+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),i=!1,a=!1,o=t.whitespace_before,s=o.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(r[0]),this.print_newline(!1,e),1this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),--t.__character_count),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){0=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},a.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},a.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),1>> === !== << && >= ** != == <= >> || |> < / - + > : & % ? ^ | *".split(" "),g=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";g=(g="\\?\\.(?!\\d) "+g.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")).replace(/ /g,"|");function m(t,e){i.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new s(this._input),r=new u(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(l.identifier).matching(l.identifierMatch),number:n.matching(p),punct:n.matching(y),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(l.lineBreak),shebang:n.starting_with(/#!/).until_after(l.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}}var b,y=new RegExp(g),w="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),x=w.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),k=new RegExp("^(?:"+x.join("|")+")$");(m.prototype=new i)._is_comment=function(t){return t.type===_.COMMENT||t.type===_.BLOCK_COMMENT||t.type===_.UNKNOWN},m.prototype._is_opening=function(t){return t.type===_.START_BLOCK||t.type===_.START_EXPR},m.prototype._is_closing=function(t,e){return(t.type===_.END_BLOCK||t.type===_.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},m.prototype._reset=function(){b=!1},m.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(_.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(r))||this._read_string(r))||this._read_word(t))||this._read_singles(r))||this._read_comment(r))||this._read_regexp(r,t))||this._read_xml(r,t))||this._read_punctuation())||this._create_token(_.UNKNOWN,this._input.next())},m.prototype._read_word=function(t){var e;return""!==(e=this.__patterns.identifier.read())?(e=e.replace(l.allLineBreaks,"\n"),t.type!==_.DOT&&(t.type!==_.RESERVED||"set"!==t.text&&"get"!==t.text)&&k.test(e)?"in"===e||"of"===e?this._create_token(_.OPERATOR,e):this._create_token(_.RESERVED,e):this._create_token(_.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(_.WORD,e):void 0},m.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(_.START_EXPR,t):")"===t||"]"===t?e=this._create_token(_.END_EXPR,t):"{"===t?e=this._create_token(_.START_BLOCK,t):"}"===t?e=this._create_token(_.END_BLOCK,t):";"===t?e=this._create_token(_.SEMICOLON,t):"."===t&&d.test(this._input.peek(1))?e=this._create_token(_.DOT,t):","===t&&(e=this._create_token(_.COMMA,t)),e&&this._input.next(),e},m.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(_.EQUALS,t):"?."===t?this._create_token(_.DOT,t):this._create_token(_.OPERATOR,t)},m.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(_.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(_.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(f)){for(;n+=t=this._input.next(),this._input.hasNext()&&"#"!==t&&"="!==t;);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(_.WORD,n)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(l.newline);)e+=this._input.next();return b=!0,this._create_token(_.COMMENT,e)}}else if(b&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return b=!1,this._create_token(_.COMMENT,e);return null},m.prototype._read_comment=function(t){var e=null;if("/"===t){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var r=h.get_directives(n);r&&"start"===r.ignore&&(n+=h.readIgnored(this._input)),n=n.replace(l.allLineBreaks,"\n"),(e=this._create_token(_.BLOCK_COMMENT,n)).directives=r}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),e=this._create_token(_.COMMENT,n))}return e},m.prototype._read_string=function(t){if("`"!==t&&"'"!==t&&'"'!==t)return null;var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=function(t){for(var e="",n=0,r=new a(t),i=null;r.hasNext();)if((i=r.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=i[0]),"\\"===r.peek()){if(r.next(),"x"===r.peek())i=r.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==r.peek()){e+="\\",r.hasNext()&&(e+=r.next());continue}i=r.match(/u([0-9A-Fa-f]{4})/g)}if(!i)return t;if(126<(n=parseInt(i[1],16))&&n<=255&&0===i[0].indexOf("x"))return t;if(0<=n&&n<32){e+="\\"+i[0];continue}e+=34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(l.allLineBreaks,"\n"),this._create_token(_.STRING,e)},m.prototype._allow_regexp_or_xml=function(t){return t.type===_.RESERVED&&c(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===_.END_EXPR&&")"===t.text&&t.opened.previous.type===_.RESERVED&&c(t.opened.previous.text,["if","while","for"])||c(t.type,[_.COMMENT,_.START_EXPR,_.START_BLOCK,_.START,_.END_BLOCK,_.OPERATOR,_.EQUALS,_.EOF,_.SEMICOLON,_.COMMA])},m.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var n=this._input.next(),r=!1,i=!1;this._input.hasNext()&&(r||i||this._input.peek()!==t)&&!this._input.testChar(l.newline);)n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?i=!0:"]"===this._input.peek()&&(i=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(l.identifier)),this._create_token(_.STRING,n)}return null},m.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",r=this.__patterns.xml.read_match();if(r){for(var i=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),a=0===i.indexOf("{"),o=0;r;){var s=!!r[1],u=r[2];if(!r[r.length-1]&&"![CDATA["!==u.slice(0,8)&&(u===i||a&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(s?--o:++o),n+=r[0],o<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(l.allLineBreaks,"\n"),this._create_token(_.STRING,n)}}return null},m.prototype._read_string_recursive=function(t,e,n){var r,i;"'"===t?i=this.__patterns.single_quote:'"'===t?i=this.__patterns.double_quote:"`"===t?i=this.__patterns.template_text:"}"===t&&(i=this.__patterns.template_expression);for(var a=i.read(),o="";this._input.hasNext();){if((o=this._input.next())===t||!e&&l.newline.test(o)){this._input.back();break}"\\"===o&&this._input.hasNext()?("x"===(r=this._input.peek())||"u"===r?this.has_char_escapes=!0:"\r"===r&&"\n"===this._input.peek(1)&&this._input.next(),o+=this._input.next()):n&&("${"===n&&"$"===o&&"{"===this._input.peek()&&(o+=this._input.next()),n===o&&(o+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(o+=this._input.next()))),a+=o+=i.read()}return a},t.exports.Tokenizer=m,t.exports.TOKEN=_,t.exports.positionable_operators=v.slice(),t.exports.line_starters=w.slice()},function(t,e,n){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function r(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){0=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=r},function(t,e,n){"use strict";function r(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)}var i=n(8).InputScanner,a=n(3).Token,o=n(10).TokenStream,s=n(11).WhitespacePattern,u={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"};r.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new o,this._reset();for(var e=new a(u.START,""),n=null,r=[],i=new o;e.type!==u.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)i.add(t),t=this._get_next_token(e,n);i.isEmpty()||(t.comments_before=i,i=new o),t.parent=n,this._is_opening(t)?(r.push(n),n=t):n&&this._is_closing(t,n)&&((t.opened=n).closed=t,n=r.pop(),t.parent=n),(t.previous=e).next=t,this.__tokens.add(t),e=t}return this.__tokens},r.prototype._is_first_token=function(){return this.__tokens.isEmpty()},r.prototype._reset=function(){},r.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(u.RAW,n):this._create_token(u.EOF,"")},r.prototype._is_comment=function(t){return!1},r.prototype._is_opening=function(t){return!1},r.prototype._is_closing=function(t,e){return!1},r.prototype._create_token=function(t,e){return new a(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},r.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=r,t.exports.TOKEN=u},function(t,e,n){"use strict";function r(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}r.prototype.restart=function(){this.__position=0},r.prototype.isEmpty=function(){return 0===this.__tokens_length},r.prototype.hasNext=function(){return this.__position/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}(a.prototype=new r)._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},a.prototype.read_options=function(t){var e=this._create();for(var n in i)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},a.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},a.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},a.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},a.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read())));return t},t.exports.TemplatablePattern=a}],s.c=o,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(n,r,function(t){return e[t]}.bind(null,r));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",i=s(s.s=0),void 0===(r=function(){return{js_beautify:i}}.apply(e,[]))||(t.exports=r)},function(t,e,n){var r,i,a,o;function s(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,s),e.l=!0,e.exports}o={},s.m=a=[,,function(t,e,n){"use strict";function i(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function r(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",0this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),--t.__character_count),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){0=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},a.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},a.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),1=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=r},,,,,function(t,e,n){"use strict";function r(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}r.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},r.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=r},,function(t,e,n){"use strict";var r=n(16).Beautifier,i=n(17).Options;t.exports=function(t,e){return new r(t,e).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,n){"use strict";var r=n(17).Options,d=n(2).Output,v=n(8).InputScanner,g=new(n(13).Directives)(/\/\*/,/\*\//),m=/\r\n|[\r\n]/,b=/\r\n|[\r\n]/g,y=/\s/,w=/(?:\s|\n)+/g,x=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,k=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function i(t,e){this._source_text=t||"",this._options=new r(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}i.prototype.eatString=function(t){var e="";for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},i.prototype.eatWhitespace=function(t){for(var e=y.test(this._input.peek()),n=!0;y.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(this._options.preserve_newlines||n)&&(n=!1,this._output.add_new_line(!0));return e},i.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,n=this._input.peek(e);n;){if("{"===n)return!0;if("("===n)t+=1;else if(")"===n){if(0===t)return!1;--t}else if(";"===n||"}"===n)return!1;e++,n=this._input.peek(e)}return!1},i.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},i.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},i.prototype.indent=function(){this._indentLevel++},i.prototype.outdent=function(){0this._nestedLevel):this._indentLevel>=this._nestedLevel,this._options.newline_between_rules&&o&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===i&&this._output.trim(!0),l=c=!1,s&&(this.outdent(),s=!1),this.print_string(this._ch),o=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!o&&!u||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||l||0!==a?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),s||(s=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===a?(s&&(this.outdent(),s=!1),c=l=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),a++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),a&&(a--,this.outdent()))):(this.preserveSingleSpace(r),this.print_string(this._ch),this.eatWhitespace(),a++,this.indent()):")"===this._ch?(a&&(a--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||s||0!==a||c?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||s||0!==a?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),y.test(this._ch)&&(this._ch="")):("!"!==this._ch||this._input.lookBack("\\")?this.preserveSingleSpace(r):this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&y.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},t.exports.Beautifier=i},function(t,e,n){"use strict";var r=n(6).Options;function i(t){r.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e}i.prototype=new r,t.exports.Options=i}],s.c=o,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(n,r,function(t){return e[t]}.bind(null,r));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",i=s(s.s=15),void 0===(r=function(){return{css_beautify:i}}.apply(e,[]))||(t.exports=r)},function(n,t){function r(t,e){return n.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}n.exports=r},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,l=[],c=!1,_=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):_=-1,l.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=l.length;e;){for(u=l,l=[];++_= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"},c.prototype={constructor:c,logger:u.default,log:u.default.log,registerHelper:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new a.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if("[object Object]"===i.toString.call(t))i.extend(this.partials,t);else{if(void 0===e)throw new a.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new a.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}};var _=u.default.log;e.log=_,e.createFrame=i.createFrame,e.logger=u.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.registerDefaultHelpers=function(t){i.default(t),a.default(t),o.default(t),s.default(t),u.default(t),l.default(t),c.default(t)},e.moveHelperToHooks=function(t,e,n){t.helpers[e]&&(t.hooks[e]=t.helpers[e],n||delete t.helpers[e])};var i=r(n(42)),a=r(n(43)),o=r(n(44)),s=r(n(45)),u=r(n(46)),l=r(n(47)),c=r(n(48))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(10),a={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=r.indexOf(a.methodMap,t.toLowerCase());t=0<=e?e:parseInt(t,10)}return t},log:function(t){if(t=a.lookupLevel(t),"undefined"!=typeof console&&a.lookupLevel(a.level)<=t){var e=a.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(1\n '],['\n
    \n ']),i,a)),this.$notification=t.find(".luna-notification")},f),h=(p.prototype.html=function(){var t=this.container.position.y;return l.default(i=i||o(['\n
    \n
    ',"
    \n
    \n "],['\n
    \n
    ',"
    \n
    \n "]),this.id,"bottom"===t?"lower":"upper",this.content)},p);function p(t,e){this.container=t,this.content=e,this.id=a.default("luna-notification-")}function f(t,e){var n=void 0===e?{}:e,r=n.position,i=void 0===r?{x:"right",y:"bottom"}:r,a=n.duration,o=void 0===a?2e3:a;this.notifications=[],this.$container=u.default(t),this.position=i,this.duration=o,this.appendTpl()}t.exports=_},function(t,e,n){},function(t,e,n){var r=n(13),i=n(41),a=n(42),o=n(43),s=n(23),u=n(50),l=n(51),c=n(52),_=n(53),h=n(54),p=n(56),f=n(58),d=n(3),v=n(1);e=function(t){return new r(t)},r.methods({offset:function(){return i(this)},hide:function(){return this.css("display","none")},show:function(){return a(this),this},first:function(){return e(this[0])},last:function(){return e(l(this))},get:function(t){return this[t]},eq:function(t){return e(this[t])},on:function(t,e,n){return h.on(this,t,e,n),this},off:function(t,e,n){return h.off(this,t,e,n),this},html:function(t){var e=u.html(this,t);return d(t)?e:this},text:function(t){var e=u.text(this,t);return d(t)?e:this},val:function(t){var e=u.val(this,t);return d(t)?e:this},css:function(t,e){var n=o(this,t,e);return g(t,e)?n:this},attr:function(t,e){var n=s(this,t,e);return g(t,e)?n:this},data:function(t,e){var n=_(this,t,e);return g(t,e)?n:this},rmAttr:function(t){return s.remove(this,t),this},remove:function(){return c(this),this},addClass:function(t){return p.add(this,t),this},rmClass:function(t){return p.remove(this,t),this},toggleClass:function(t){return p.toggle(this,t),this},hasClass:function(t){return p.has(this,t)},parent:function(){return e(this[0].parentNode)},append:function(t){return f.append(this,t),this},prepend:function(t){return f.prepend(this,t),this},before:function(t){return f.before(this,t),this},after:function(t){return f.after(this,t),this}});var g=function(t,e){return d(e)&&v(t)};t.exports=e},function(t,e,n){e=n(15)(n(28)),t.exports=e},function(t,e,n){var _=n(4),h=n(29),p=n(30),f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols;e=function(t){var e=1