├── .gitattributes ├── CNAME ├── LICENSE ├── README.md ├── css └── font.css ├── favicon.ico ├── help ├── doc.md ├── docsify.js └── index.html ├── index.html ├── js ├── beautify.js ├── dec.js ├── functions.js └── uglifyjs.js ├── res ├── AndaleMo.ttf └── SAO_Regular.ttf └── upd.html /.gitattributes: -------------------------------------------------------------------------------- 1 | *.js linguist-language=html 2 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | jsdec.js.org -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 liulihaocai 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Now Supported 2 | ## Eval 3 | 4 | ## Packer 5 | 6 | ## AAEncode 7 | 8 | ## JJEncode 9 | 10 | ## JSFuck 11 | 12 | ## Sojson v4 13 | 14 | ## Sojson Premium 15 | 16 | ## Sojson v5(default) 17 | 18 | ## JSjiami v6 (default) 19 | Decode support is not well. 20 | 21 | ## JS-obfuscator default 22 | 23 | # Thanks 24 | 25 | ## enkhee-Osiris 26 | 4 the jsf decoder -------------------------------------------------------------------------------- /css/font.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family:SAOF; 3 | src:url("https://cdn.jsdelivr.net/gh/liulihaocai/JSDec/res/SAO_Regular.ttf"); 4 | } 5 | @font-face { 6 | font-family:CodeF; 7 | src:url("https://cdn.jsdelivr.net/gh/liulihaocai/JSDec/res/AndaleMo.ttf"); 8 | } 9 | .saof{ 10 | font-family:SAOF; 11 | } 12 | .codef{ 13 | font-family:CodeF; 14 | } -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax0r31337/JSDec/b8c02eec44dd5a42ac4d824dc6704d20b621974a/favicon.ico -------------------------------------------------------------------------------- /help/doc.md: -------------------------------------------------------------------------------- 1 | # JSDec Help 2 | 3 | # 中文(简体) 4 | 5 | ## Q&A 6 | 7 | ### 破解后代码是一行 8 | 试试 *优化结果 -> 美化* 9 | 10 | ### 自动识别破解失败/报错 11 | 尝试手动选择破解方式,如果方式正确选择后仍不能破解,请到[Github](https://github.com/liulihaocai/JSDec/issues)发送issue. 12 | 13 | ### 破解后变量名混乱 14 | 尝试*优化结果 -> Uglify-名称*进行变量名重新命名 15 | 16 | ### 希望支持新的混淆方式 17 | 请到[Github](https://github.com/liulihaocai/JSDec/issues)发送issue让我知道 18 | 19 | ### 破解后有很多死代码 20 | 尝试使用*优化结果 -> Uglify-优化*来去除死代码并进行代码格式化 21 | 22 | # 中文(繁體) 23 | 24 | ## Q&A 25 | 26 | ### 破解後代碼是一行 27 | 試試 *優化結果 -> 美化* 28 | 29 | ### 自動識別破解失敗/報錯 30 | 嘗試手動選擇破解方式,如果方式正確選擇後仍不能破解,請到[Github](https://github.com/liulihaocai/JSDec/issues)發送issue. 31 | 32 | ### 破解後變量名混亂 33 | 嘗試*優化結果 -> Uglify-名稱*進行變量名重新命名 34 | 35 | ### 希望支持新的混淆方式 36 | 請到[Github](https://github.com/liulihaocai/JSDec/issues)發送issue讓我知道 37 | 38 | ### 破解後有很多死代碼 39 | 嘗試使用*優化結果 -> Uglify-優化*來去除死代碼並進行代碼格式化 40 | 41 | # EN(US) 42 | 43 | ## Q&A 44 | 45 | ### Code is in a line when decoded 46 | try to use *Progcess Result -> Beautify*. 47 | 48 | ### Auto Scan Failed / Failed 49 | try to select a type, if you select a true type , Please send a issue on [Github](https://github.com/liulihaocai/JSDec/issues). 50 | 51 | ### Fname is in Chaos when Decoded 52 | try to use *Progcess Result -> Uglify-names* to rename fnames. 53 | 54 | ### Want to support a new obfuscator 55 | please send a issue on [Github](https://github.com/liulihaocai/JSDec/issues) to let me know. 56 | 57 | ### Many Death Code in the result 58 | try to use *Progcess Result -> Uglify-Better* to delete death codes. 59 | -------------------------------------------------------------------------------- /help/docsify.js: -------------------------------------------------------------------------------- 1 | /* 2 | MIT License 3 | 4 | Copyright (c) 2016 - present cinwell.li 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | */ 24 | !function(){function s(n){var r=Object.create(null);return function(e){var t=c(e)?e:JSON.stringify(e);return r[t]||(r[t]=n(e))}}var a=s(function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),l=Object.prototype.hasOwnProperty,h=Object.assign||function(e){for(var t=arguments,n=1;n/gm),Ge=i(/^data-[\-\w.\u00B7-\uFFFF]/),Ye=i(/^aria-[\-\w]+$/),Ve=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xe=i(/^(?:\w+script|data):/i),Ke=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Je(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t

').querySelector("svg img")&&(o=!0)}catch(e){}}(),function(){try{var e=R("</title><img>");Fe(/<\/title/,e.querySelector("title").innerHTML)&&(s=!0)}catch(e){}}());function de(e){return w.call(e.ownerDocument||e,e,i.SHOW_ELEMENT|i.SHOW_COMMENT|i.SHOW_TEXT,function(){return i.FILTER_ACCEPT},!1)}function he(e){return"object"===(void 0===h?"undefined":Qe(h))?e instanceof h:e&&"object"===(void 0===e?"undefined":Qe(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function fe(e,t,n){T[e]&&ke(T[e],function(e){e.call(p,t,n,ue)})}function ge(e){var t,n;if(fe("beforeSanitizeElements",e,null),!((n=e)instanceof g||n instanceof m||"string"==typeof n.nodeName&&"string"==typeof n.textContent&&"function"==typeof n.removeChild&&n.attributes instanceof f&&"function"==typeof n.removeAttribute&&"function"==typeof n.setAttribute&&"string"==typeof n.namespaceURI))return L(e),1;var r=Te(e.nodeName);if(fe("uponSanitizeElement",e,{tagName:r,allowedTags:D}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return L(e),1;if(D[r]&&!U[r])return"noscript"===r&&Fe(/<\/noscript/i,e.innerHTML)||"noembed"===r&&Fe(/<\/noembed/i,e.innerHTML)?(L(e),1):(!Y||e.firstElementChild||e.content&&e.content.firstElementChild||!Fe(/</g,e.textContent)||(Ae(p.removed,{element:e.cloneNode()}),e.innerHTML?e.innerHTML=Le(e.innerHTML,/</g,"<"):e.innerHTML=Le(e.textContent,/</g,"<")),V&&3===e.nodeType&&(t=e.textContent,t=Le(t,O," "),t=Le(t,$," "),e.textContent!==t&&(Ae(p.removed,{element:e.cloneNode()}),e.textContent=t)),fe("afterSanitizeElements",e,null),0);if(ie&&!oe[r]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",b?b.createHTML(i):i)}catch(e){}return L(e),1}function me(e,t,n){if(re&&("id"===t||"name"===t)&&(n in l||n in pe))return!1;if(!(W&&Fe(M,t)||Z&&Fe(N,t))){if(!q[t]||B[t])return!1;if(!le[t]&&!Fe(j,Le(n,P,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ce(n,"data:")||!se[e])&&(!G||Fe(z,Le(n,P,"")))&&n)return!1}return!0}function ve(e){var t,n,r=void 0,i=void 0;fe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q},i=a.length;i--;){var s=(t=a[i]).name,l=t.namespaceURI,r=Re(t.value),c=Te(s);if(o.attrName=c,o.attrValue=r,o.keepAttr=!0,o.forceKeepAttr=void 0,fe("uponSanitizeAttribute",e,o),r=o.attrValue,!o.forceKeepAttr){if("name"===c&&"IMG"===e.nodeName&&a.id)n=a.id,a=Se(a,[]),C("id",e),C(s,e),xe(a,n)>i&&e.setAttribute("id",n.value);else{if("INPUT"===e.nodeName&&"type"===c&&"file"===r&&o.keepAttr&&(q[c]||!B[c]))continue;"id"===s&&e.setAttribute(s,""),C(s,e)}if(o.keepAttr)if(Y&&Fe(/\/>/i,r))C(s,e);else if(Fe(/svg|math/i,e.namespaceURI)&&Fe(Oe("</("+we(ye(oe),"|")+")","i"),r))C(s,e);else{V&&(r=Le(r,O," "),r=Le(r,$," "));var u=e.nodeName.toLowerCase();if(me(u,c,r))try{l?e.setAttributeNS(l,s,r):e.setAttribute(s,r),_e(p.removed)}catch(e){}}}}fe("afterSanitizeAttributes",e,null)}}return p.sanitize=function(e,t){var n,r,i=void 0,a=void 0,o=void 0;if("string"!=typeof(e=e||"\x3c!--\x3e")&&!he(e)){if("function"!=typeof e.toString)throw $e("toString is not a function");if("string"!=typeof(e=e.toString()))throw $e("dirty is not a string, aborting")}if(!p.isSupported){if("object"===Qe(c.toStaticHTML)||"function"==typeof c.toStaticHTML){if("string"==typeof e)return c.toStaticHTML(e);if(he(e))return c.toStaticHTML(e.outerHTML)}return e}if(K||E(t),p.removed=[],"string"==typeof e&&(ae=!1),!ae)if(e instanceof h)1===(n=(i=R("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?i=n:i.appendChild(n);else{if(!J&&!V&&!X&&ne&&-1===e.indexOf("<"))return b?b.createHTML(e):e;if(!(i=R(e)))return J?null:k}i&&Q&&L(i.firstChild);for(var s=de(ae?e:i);r=s.nextNode();)3===r.nodeType&&r===a||ge(r)||(r.content instanceof d&&function e(t){var n,r=de(t);for(fe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)fe("uponSanitizeShadowNode",n,null),ge(n)||(n.content instanceof d&&e(n.content),ve(n));fe("afterSanitizeShadowDOM",t,null)}(r.content),ve(r),a=r);if(a=null,ae)return e;if(J){if(ee)for(o=A.call(i.ownerDocument);i.firstChild;)o.appendChild(i.firstChild);else o=i;return te&&(o=S.call(u,o,!0)),o}var l=X?i.outerHTML:i.innerHTML;return V&&(l=Le(l,O," "),l=Le(l,$," ")),b&&ne?b.createHTML(l):l},p.setConfig=function(e){E(e),K=!0},p.clearConfig=function(){ue=null,K=!1},p.isValidAttribute=function(e,t,n){ue||E({});var r=Te(e),i=Te(t);return me(r,i,n)},p.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],Ae(T[e],t))},p.removeHook=function(e){T[e]&&_e(T[e])},p.removeHooks=function(e){T[e]&&(T[e]=[])},p.removeAllHooks=function(){T={}},p}();function H(e){var t,n,r=e.loaded,i=e.total,a=e.step;P||((n=A("div")).classList.add("progress"),o(k,n),P=n),t=a?80<(t=parseInt(P.style.width||0,10)+a)?80:t:Math.floor(r/i*100),P.style.opacity=1,P.style.width=95<=t?"100%":t+"%",95<=t&&(clearTimeout(j),j=setTimeout(function(e){P.style.opacity=0,P.style.width="0%"},200))}var q={};function I(a,e,t){void 0===e&&(e=!1),void 0===t&&(t={});function n(){o.addEventListener.apply(o,arguments)}var o=new XMLHttpRequest,r=q[a];if(r)return{then:function(e){return e(r.content,r.opt)},abort:d};for(var i in o.open("GET",a),t)l.call(t,i)&&o.setRequestHeader(i,t[i]);return o.send(),{then:function(r,i){var t;void 0===i&&(i=d),e&&(t=setInterval(function(e){return H({step:Math.floor(5*Math.random()+1)})},500),n("progress",H),n("loadend",function(e){H(e),clearInterval(t)})),n("error",i),n("load",function(e){var t,n=e.target;400<=n.status?i(n):(t=q[a]={content:n.response,opt:{updatedAt:o.getResponseHeader("last-modified")}},r(t.content,t.opt))})},abort:function(e){return 4!==o.readyState&&o.abort()}}}function U(e,t){e.innerHTML=e.innerHTML.replace(/var\(\s*--theme-color.*?\)/g,t)}function B(e,t,r,i){void 0===i&&(i=d);var a=e._hooks[t],o=function(t){var e,n=a[t];t>=a.length?i(r):"function"==typeof n?2===n.length?n(r,function(e){r=e,o(t+1)}):(e=n(r),r=void 0===e?r:e,o(t+1)):o(t+1)};o(0)}var Z=b.title;function W(){var e,t=m("section.cover");t&&(e=t.getBoundingClientRect().height,window.pageYOffset>=e||t.classList.contains("hidden")?T(k,"add","sticky"):T(k,"remove","sticky"))}function G(e,t,r,n){var i=[];null!=(t=m(t))&&(i=_(t,"a"));var a,o=decodeURI(e.toURL(e.getCurrentPath()));return i.sort(function(e,t){return t.href.length-e.href.length}).forEach(function(e){var t=e.getAttribute("href"),n=r?e.parentNode:e;0!==o.indexOf(t)||a?T(n,"remove","active"):(a=e,T(n,"add","active"))}),n&&(b.title=a?a.title||a.innerText+" - "+Z:Z),a}var Y=decodeURIComponent,V=encodeURIComponent;function X(e){var n={};return(e=e.trim().replace(/^(\?|#|&)/,""))&&e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("=");n[t[0]]=t[1]&&Y(t[1])}),n}function K(e,t){void 0===t&&(t=[]);var n=[];for(var r in e)-1<t.indexOf(r)||n.push(e[r]?(V(r)+"="+V(e[r])).toLowerCase():V(r));return n.length?"?"+n.join("&"):""}var Q=s(function(e){return/(:|(\/{2}))/g.test(e)}),J=s(function(e){return e.split(/[?#]/)[0]}),ee=s(function(e){if(/\/$/g.test(e))return e;var t=e.match(/(\S*\/)[^/]+$/);return t?t[1]:""}),te=s(function(e){return e.replace(/^\/+/,"/").replace(/([^:])\/{2,}/g,"$1/")}),ne=s(function(e){for(var t=e.replace(/^\//,"").split("/"),n=[],r=0,i=t.length;r<i;r++){var a=t[r];".."===a?n.pop():"."!==a&&n.push(a)}return"/"+n.join("/")});function re(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return te(e.join("/"))}var ie=s(function(e){return e.replace("#","?id=")});function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var oe=(function(e,t,n){return t&&ae(e.prototype,t),n&&ae(e,n),e}(se,[{key:"getIntermediateValue",value:function(e){return this.decimal?e:Math.round(e)}},{key:"getFinalValue",value:function(){return this.end}}]),se);function se(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,se),this.start=e.start,this.end=e.end,this.decimal=e.decimal}function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ce=(function(e,t,n){return t&&le(e.prototype,t),n&&le(e,n),e}(ue,[{key:"begin",value:function(){return this.isRunning||this.next===this.end||(this.frame=window.requestAnimationFrame(this._tick.bind(this))),this}},{key:"stop",value:function(){return window.cancelAnimationFrame(this.frame),this.isRunning=!1,this.frame=null,this.timeStart=null,this.next=null,this}},{key:"on",value:function(e,t){return this.events[e]=this.events[e]||[],this.events[e].push(t),this}},{key:"_emit",value:function(e,t){var n=this,r=this.events[e];r&&r.forEach(function(e){return e.call(n,t)})}},{key:"_tick",value:function(e){this.isRunning=!0;var t=this.next||this.start;this.timeStart||(this.timeStart=e),this.timeElapsed=e-this.timeStart,this.next=this.ease(this.timeElapsed,this.start,this.end-this.start,this.duration),this._shouldTick(t)?(this._emit("tick",this.tweener.getIntermediateValue(this.next)),this.frame=window.requestAnimationFrame(this._tick.bind(this))):(this._emit("tick",this.tweener.getFinalValue()),this._emit("done",null))}},{key:"_shouldTick",value:function(e){return{up:this.next<this.end&&e<=this.next,down:this.next>this.end&&e>=this.next}[this.direction]}},{key:"_defaultEase",value:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}}]),ue);function ue(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,ue),this.duration=e.duration||1e3,this.ease=e.easing||this._defaultEase,this.tweener=e.tweener||new oe(e),this.start=this.tweener.start,this.end=this.tweener.end,this.frame=null,this.next=null,this.isRunning=!1,this.events={},this.direction=this.start<this.end?"up":"down"}var pe={},de=!1,he=null,fe=!0,ge=0;function me(e){if(fe){for(var t,n,r,i,a,o,s=m(".sidebar"),l=_(".anchor"),c=w(s,".sidebar-nav"),u=w(s,"li.active"),p=document.documentElement,d=(p&&p.scrollTop||document.body.scrollTop)-ge,h=0,f=l.length;h<f;h+=1){var g=l[h];if(g.offsetTop>d){t=t||g;break}t=g}!t||(n=pe[ve(e,t.getAttribute("data-id"))])&&n!==u&&(u&&u.classList.remove("active"),n.classList.add("active"),u=n,!de&&k.classList.contains("sticky")&&(r=s.clientHeight,a=+(i=u.offsetTop+u.clientHeight+40)<r,o=u.offsetTop>=c.scrollTop&&i<=c.scrollTop+r?c.scrollTop:a?0:i-r,s.scrollTop=o))}}function ve(e,t){return decodeURIComponent(e)+"?id="+decodeURIComponent(t)}function nt(e,t){var n,r,i,a,o,s;t&&(n=E().topMargin,(r=w("#"+t))&&(i=r,void 0===(a=n)&&(a=0),he&&he.stop(),fe=!1,he=new ce({start:window.pageYOffset,end:i.getBoundingClientRect().top+window.pageYOffset-a,duration:500}).on("tick",function(e){return window.scrollTo(0,e)}).on("done",function(){fe=!0,he=null}).begin()),o=pe[ve(e,t)],(s=w(m(".sidebar"),"li.active"))&&s.classList.remove("active"),o&&o.classList.add("active"))}var rt=b.scrollingElement||b.documentElement;var it="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function at(e,t){return e(t={exports:{}},t.exports),t.exports}var ot=at(function(m,e){!function(){var b={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:p,table:p,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function l(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||g.defaults,this.rules=b.normal,this.options.pedantic?this.rules=b.pedantic:this.options.gfm&&(this.rules=b.gfm)}b._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,b._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,b.def=e(b.def).replace("label",b._label).replace("title",b._title).getRegex(),b.bullet=/(?:[*+-]|\d{1,9}\.)/,b.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,b.item=e(b.item,"gm").replace(/bull/g,b.bullet).getRegex(),b.list=e(b.list).replace(/bull/g,b.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+b.def.source+")").getRegex(),b._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",b._comment=/<!--(?!-?>)[\s\S]*?-->/,b.html=e(b.html,"i").replace("comment",b._comment).replace("tag",b._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),b.paragraph=e(b._paragraph).replace("hr",b.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",b._tag).getRegex(),b.blockquote=e(b.blockquote).replace("paragraph",b.paragraph).getRegex(),b.normal=h({},b),b.gfm=h({},b.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),b.pedantic=h({},b.normal,{html:e("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",b._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:p,paragraph:e(b.normal._paragraph).replace("hr",b.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",b.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),l.rules=b,l.lex=function(e,t){return new l(t).lex(e)},l.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},l.prototype.token=function(e,t){var n,r,i,a,o,s,l,c,u,p,d,h,f,g,m,v;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),1<i[0].length&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var y=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),y&&"paragraph"===y.type?y.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:w(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(s={type:"table",header:x(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===s.align.length){for(e=e.substring(i[0].length),d=0;d<s.align.length;d++)/^ *-+: *$/.test(s.align[d])?s.align[d]="right":/^ *:-+: *$/.test(s.align[d])?s.align[d]="center":/^ *:-+ *$/.test(s.align[d])?s.align[d]="left":s.align[d]=null;for(d=0;d<s.cells.length;d++)s.cells[d]=x(s.cells[d],s.header.length);this.tokens.push(s)}else if(i=this.rules.hr.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"hr"});else if(i=this.rules.blockquote.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"blockquote_start"}),i=i[0].replace(/^ *> ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),l={type:"list_start",ordered:g=1<(a=i[2]).length,start:g?+a:"",loose:!1},this.tokens.push(l),n=!(c=[]),f=(i=i[0].match(this.rules.item)).length,d=0;d<f;d++)p=(s=i[d]).length,~(s=s.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(p-=s.length,s=this.options.pedantic?s.replace(/^ {1,4}/gm,""):s.replace(new RegExp("^ {1,"+p+"}","gm"),"")),d!==f-1&&(o=b.bullet.exec(i[d+1])[0],(1<a.length?1===o.length:1<o.length||this.options.smartLists&&o!==a)&&(e=i.slice(d+1).join("\n")+e,d=f-1)),r=n||/\n\n(?!\s*$)/.test(s),d!==f-1&&(n="\n"===s.charAt(s.length-1),r=r||n),r&&(l.loose=!0),v=void 0,(m=/^\[[ xX]\] /.test(s))&&(v=" "!==s[1],s=s.replace(/^\[[ xX]\] +/,"")),u={type:"list_item_start",task:m,checked:v,loose:r},c.push(u),this.tokens.push(u),this.token(s,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(f=c.length,d=0;d<f;d++)c[d].loose=!0;this.tokens.push({type:"list_end"})}else if(i=this.rules.html.exec(e))e=e.substring(i[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):k(i[0]):i[0]});else if(t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),i[3]&&(i[3]=i[3].substring(1,i[3].length-1)),h=i[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[h]||(this.tokens.links[h]={href:i[2],title:i[3]});else if((i=this.rules.table.exec(e))&&(s={type:"table",header:x(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===s.align.length){for(e=e.substring(i[0].length),d=0;d<s.align.length;d++)/^ *-+: *$/.test(s.align[d])?s.align[d]="right":/^ *:-+: *$/.test(s.align[d])?s.align[d]="center":/^ *:-+ *$/.test(s.align[d])?s.align[d]="left":s.align[d]=null;for(d=0;d<s.cells.length;d++)s.cells[d]=x(s.cells[d].replace(/^ *\| *| *\| *$/g,""),s.header.length);this.tokens.push(s)}else if(i=this.rules.lheading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:"="===i[2].charAt(0)?1:2,text:i[1]});else if(t&&(i=this.rules.paragraph.exec(e)))e=e.substring(i[0].length),this.tokens.push({type:"paragraph",text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1]});else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"text",text:i[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var n={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:p,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:p,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function u(e,t){if(this.options=t||g.defaults,this.links=e,this.rules=n.normal,this.renderer=this.options.renderer||new r,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.options.breaks?this.rules=n.breaks:this.rules=n.gfm)}function r(e){this.options=e||g.defaults}function i(){}function c(e){this.tokens=[],this.token=null,this.options=e||g.defaults,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new t}function t(){this.seen={}}function k(e,t){if(t){if(k.escapeTest.test(e))return e.replace(k.escapeReplace,function(e){return k.replacements[e]})}else if(k.escapeTestNoEncode.test(e))return e.replace(k.escapeReplaceNoEncode,function(e){return k.replacements[e]});return e}function d(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function e(n,e){return n=n.source||n,e=e||"",{replace:function(e,t){return t=(t=t.source||t).replace(/(^|[^\[])\^/g,"$1"),n=n.replace(e,t),this},getRegex:function(){return new RegExp(n,e)}}}function a(e,t,n){if(e){try{var r=decodeURIComponent(d(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!s.test(n)&&(n=function(e,t){o[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?o[" "+e]=e+"/":o[" "+e]=w(e,"/",!0));return e=o[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}n._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",n.em=e(n.em).replace(/punctuation/g,n._punctuation).getRegex(),n._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,n._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,n._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,n.autolink=e(n.autolink).replace("scheme",n._scheme).replace("email",n._email).getRegex(),n._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,n.tag=e(n.tag).replace("comment",b._comment).replace("attribute",n._attribute).getRegex(),n._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,n._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,n._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,n.link=e(n.link).replace("label",n._label).replace("href",n._href).replace("title",n._title).getRegex(),n.reflink=e(n.reflink).replace("label",n._label).getRegex(),n.normal=h({},n),n.pedantic=h({},n.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:e(/^!?\[(label)\]\((.*?)\)/).replace("label",n._label).getRegex(),reflink:e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",n._label).getRegex()}),n.gfm=h({},n.normal,{escape:e(n.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),n.gfm.url=e(n.gfm.url,"i").replace("email",n.gfm._extended_email).getRegex(),n.breaks=h({},n.gfm,{br:e(n.br).replace("{2,}","*").getRegex(),text:e(n.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),u.rules=n,u.output=function(e,t,n){return new u(t,n).output(e)},u.prototype.output=function(e){for(var t,n,r,i,a,o,s="";e;)if(a=this.rules.escape.exec(e))e=e.substring(a[0].length),s+=k(a[1]);else if(a=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(a[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),s+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):k(a[0]):a[0];else if(a=this.rules.link.exec(e)){var l,c=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return-1}(a[2],"()");-1<c&&(l=4+a[1].length+c,a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,l).trim(),a[3]=""),e=e.substring(a[0].length),this.inLink=!0,r=a[2],i=this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],t[3]):"":a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),s+=this.outputLink(a,{href:u.escapes(r),title:u.escapes(i)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){s+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,s+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),s+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),s+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),s+=this.renderer.codespan(k(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),s+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),s+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=k(this.mangle(a[1]))):n=k(a[1]),s+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?s+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):k(a[0]):a[0]):s+=this.renderer.text(k(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=k(a[0]));else{for(;o=a[0],a[0]=this.rules._backpedal.exec(a[0])[0],o!==a[0];);n=k(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),s+=this.renderer.link(r,null,n)}return s},u.escapes=function(e){return e?e.replace(u.rules._escapes,"$1"):e},u.prototype.outputLink=function(e,t){var n=t.href,r=t.title?k(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,k(e[1]))},u.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},u.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),.5<Math.random()&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){var r,i=(t||"").match(/\S*/)[0];return!this.options.highlight||null!=(r=this.options.highlight(e,i))&&r!==e&&(n=!0,e=r),i?'<pre><code class="'+this.options.langPrefix+k(i,!0)+'">'+(n?e:k(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:k(e,!0))+"</code></pre>"},r.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},r.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},r.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},r.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},r.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},r.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n"+(t=t&&"<tbody>"+t+"</tbody>")+"</table>\n"},r.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},r.prototype.strong=function(e){return"<strong>"+e+"</strong>"},r.prototype.em=function(e){return"<em>"+e+"</em>"},r.prototype.codespan=function(e){return"<code>"+e+"</code>"},r.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.prototype.del=function(e){return"<del>"+e+"</del>"},r.prototype.link=function(e,t,n){if(null===(e=a(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+k(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"},r.prototype.image=function(e,t,n){if(null===(e=a(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},r.prototype.text=function(e){return e},i.prototype.strong=i.prototype.em=i.prototype.codespan=i.prototype.del=i.prototype.text=function(e){return e},i.prototype.link=i.prototype.image=function(e,t,n){return""+n},i.prototype.br=function(){return""},c.parse=function(e,t){return new c(t).parse(e)},c.prototype.parse=function(e){this.inline=new u(e.links,this.options),this.inlineText=new u(e.links,h({},this.options,{renderer:new i})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},c.prototype.next=function(){return this.token=this.tokens.pop(),this.token},c.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},c.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},c.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":for(var e,t,n="",r="",i="",a=0;a<this.token.header.length;a++)i+=this.renderer.tablecell(this.inline.output(this.token.header[a]),{header:!0,align:this.token.align[a]});for(n+=this.renderer.tablerow(i),a=0;a<this.token.cells.length;a++){for(e=this.token.cells[a],i="",t=0;t<e.length;t++)i+=this.renderer.tablecell(this.inline.output(e[t]),{header:!1,align:this.token.align[t]});r+=this.renderer.tablerow(i)}return this.renderer.table(n,r);case"blockquote_start":for(r="";"blockquote_end"!==this.next().type;)r+=this.tok();return this.renderer.blockquote(r);case"list_start":r="";for(var o=this.token.ordered,s=this.token.start;"list_end"!==this.next().type;)r+=this.tok();return this.renderer.list(r,o,s);case"list_item_start":r="";var l=this.token.loose,c=this.token.checked,u=this.token.task;for(this.token.task&&(r+=this.renderer.checkbox(c));"list_item_end"!==this.next().type;)r+=l||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(r,u,c);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var p='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(p);console.log(p)}},t.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t))for(var n=t;this.seen[n]++,t=n+"-"+this.seen[n],this.seen.hasOwnProperty(t););return this.seen[t]=0,t},k.escapeTest=/[&<>"']/,k.escapeReplace=/[&<>"']/g,k.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},k.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,k.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var o={},s=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(){}function h(e){for(var t,n,r=arguments,i=1;i<arguments.length;i++)for(n in t=r[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function x(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var r=!1,i=t;0<=--i&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function w(e,t,n){if(0===e.length)return"";for(var r=0;r<e.length;){var i=e.charAt(e.length-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.substr(0,e.length-r)}function f(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function g(e,n,r){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(r||"function"==typeof n){r||(r=n,n=null),f(n=h({},g.defaults,n||{}));var i,a,o=n.highlight,t=0;try{i=l.lex(e,n)}catch(e){return r(e)}a=i.length;function s(t){if(t)return n.highlight=o,r(t);var e;try{e=c.parse(i,n)}catch(e){t=e}return n.highlight=o,t?r(t):r(null,e)}if(!o||o.length<3)return s();if(delete n.highlight,!a)return s();for(;t<i.length;t++)!function(n){"code"!==n.type?--a||s():o(n.text,n.lang,function(e,t){return e?s(e):null==t||t===n.text?--a||s():(n.text=t,n.escaped=!0,void(--a||s()))})}(i[t])}else try{return f(n=n&&h({},g.defaults,n)),c.parse(l.lex(e,n),n)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(n||g.defaults).silent)return"<p>An error occurred:</p><pre>"+k(e.message+"",!0)+"</pre>";throw e}}p.exec=p,g.options=g.setOptions=function(e){return h(g.defaults,e),g},g.defaults=(g.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new r,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}})(),g.Parser=c,g.parser=c.parse,g.Renderer=r,g.TextRenderer=i,g.Lexer=l,g.lexer=l.lex,g.InlineLexer=u,g.inlineLexer=u.output,g.Slugger=t,g.parse=g,m.exports=g}()});function st(e,t){if(void 0===t&&(t='<ul class="app-sub-sidebar">{inner}</ul>'),!e||!e.length)return"";var n="";return e.forEach(function(e){n+='<li><a class="section-link" href="'+e.slug+'">'+e.title+"</a></li>",e.children&&(n+=st(e.children,t))}),t.replace("{inner}",n)}function lt(e,t){return'<p class="'+e+'">'+t.slice(5).trim()+"</p>"}function ct(e,r){var i=[],a={};return e.forEach(function(e){var t=e.level||1,n=t-1;r<t||(a[n]?a[n].children=(a[n].children||[]).concat(e):i.push(e),a[t]=e)}),i}var ut={},pt=/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g;function dt(e){return e.toLowerCase()}function ht(e){if("string"!=typeof e)return"";var t=e.trim().replace(/[A-Z]+/g,dt).replace(/<[^>\d]+>/g,"").replace(pt,"").replace(/\s/g,"-").replace(/-+/g,"-").replace(/^(\d)/,"_$1"),n=ut[t],n=l.call(ut,t)?n+1:0;return(ut[t]=n)&&(t=t+"-"+n),t}function ft(e,t){return'<img class="emoji" src="https://github.githubassets.com/images/icons/emoji/'+t+'.png" alt="'+t+'" />'}function gt(e){void 0===e&&(e="");var r={};return{str:e=e&&e.replace(/^'/,"").replace(/'$/,"").replace(/(?:^|\s):([\w-]+:?)=?([\w-%]+)?/g,function(e,t,n){return-1===t.indexOf(":")?(r[t]=n&&n.replace(/"/g,"")||!0,""):e}).trim(),config:r}}ht.clear=function(){ut={}};var mt,vt=at(function(e){var c=function(c){var u=/\blang(?:uage)?-([\w-]+)\b/i,t=0,F={manual:c.Prism&&c.Prism.manual,disableWorkerMessageHandler:c.Prism&&c.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof O?new O(e.type,F.util.encode(e.content),e.alias):Array.isArray(e)?e.map(F.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function n(e,r){var i,t,a=F.util.type(e);switch(r=r||{},a){case"Object":if(t=F.util.objId(e),r[t])return r[t];for(var o in i={},r[t]=i,e)e.hasOwnProperty(o)&&(i[o]=n(e[o],r));return i;case"Array":return(t=F.util.objId(e),r[t])?r[t]:(i=[],r[t]=i,e.forEach(function(e,t){i[t]=n(e,r)}),i);default:return e}},getLanguage:function(e){for(;e&&!u.test(e.className);)e=e.parentElement;return e?(e.className.match(u)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(e){var t=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(e.stack)||[])[1];if(t){var n=document.getElementsByTagName("script");for(var r in n)if(n[r].src==t)return n[r]}return null}}},languages:{extend:function(e,t){var n=F.util.clone(F.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(n,e,t,r){var i=(r=r||F.languages)[n],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==e)for(var s in t)t.hasOwnProperty(s)&&(a[s]=t[s]);t.hasOwnProperty(o)||(a[o]=i[o])}var l=r[n];return r[n]=a,F.languages.DFS(F.languages,function(e,t){t===l&&e!=n&&(this[e]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a,o,s=F.util.objId;for(var l in t){t.hasOwnProperty(l)&&(n.call(t,l,t[l],r||l),a=t[l],"Object"!==(o=F.util.type(a))||i[s(a)]?"Array"!==o||i[s(a)]||(i[s(a)]=!0,e(a,n,l,i)):(i[s(a)]=!0,e(a,n,null,i)))}}},plugins:{},highlightAll:function(e,t){F.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};F.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),F.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)F.highlightElement(i,!0===t,r.callback)},highlightElement:function(e,t,n){var r=F.util.getLanguage(e),i=F.languages[r];e.className=e.className.replace(u,"").replace(/\s+/g," ")+" language-"+r;var a=e.parentNode;a&&"pre"===a.nodeName.toLowerCase()&&(a.className=a.className.replace(u,"").replace(/\s+/g," ")+" language-"+r);var o,s={element:e,language:r,grammar:i,code:e.textContent};function l(e){s.highlightedCode=e,F.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,F.hooks.run("after-highlight",s),F.hooks.run("complete",s),n&&n.call(s.element)}if(F.hooks.run("before-sanity-check",s),!s.code)return F.hooks.run("complete",s),void(n&&n.call(s.element));F.hooks.run("before-highlight",s),s.grammar?t&&c.Worker?((o=new Worker(F.filename)).onmessage=function(e){l(e.data)},o.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))):l(F.highlight(s.code,s.grammar,s.language)):l(F.util.encode(s.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return F.hooks.run("before-tokenize",r),r.tokens=F.tokenize(r.code,r.grammar),F.hooks.run("after-tokenize",r),O.stringify(F.util.encode(r.tokens),r.language)},matchGrammar:function(e,t,n,r,i,a,o){for(var s in n)if(n.hasOwnProperty(s)&&n[s])for(var l=n[s],l=Array.isArray(l)?l:[l],c=0;c<l.length;++c){if(o&&o==s+","+c)return;var u,p=l[c],d=p.inside,h=!!p.lookbehind,f=!!p.greedy,g=0,m=p.alias;f&&!p.pattern.global&&(u=p.pattern.toString().match(/[imsuy]*$/)[0],p.pattern=RegExp(p.pattern.source,u+"g")),p=p.pattern||p;for(var v=r,y=i;v<t.length;y+=t[v].length,++v){var b=t[v];if(t.length>e.length)return;if(!(b instanceof O)){if(f&&v!=t.length-1){if(p.lastIndex=y,!(S=p.exec(e)))break;for(var k=S.index+(h&&S[1]?S[1].length:0),x=S.index+S[0].length,w=v,_=y,A=t.length;w<A&&(_<x||!t[w].type&&!t[w-1].greedy);++w)(_+=t[w].length)<=k&&(++v,y=_);if(t[v]instanceof O)continue;T=w-v,b=e.slice(y,_),S.index-=y}else{p.lastIndex=0;var S=p.exec(b),T=1}if(S){h&&(g=S[1]?S[1].length:0);var x=(k=S.index+g)+(S=S[0].slice(g)).length,E=b.slice(0,k),L=b.slice(x),C=[v,T];E&&(++v,y+=E.length,C.push(E));var R=new O(s,d?F.tokenize(S,d):S,m,S,f);if(C.push(R),L&&C.push(L),Array.prototype.splice.apply(t,C),1!=T&&F.matchGrammar(e,t,n,v,y,!0,s+","+c),a)break}else if(a)break}}}},tokenize:function(e,t){var n=[e],r=t.rest;if(r){for(var i in r)t[i]=r[i];delete t.rest}return F.matchGrammar(e,n,t,0,0,!1),n},hooks:{all:{},add:function(e,t){var n=F.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=F.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:O};function O(e,t,n,r,i){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!i}if(c.Prism=F,O.stringify=function(e,t){if("string"==typeof e)return e;if(Array.isArray(e))return e.map(function(e){return O.stringify(e,t)}).join("");var n,r={type:e.type,content:O.stringify(e.content,t),tag:"span",classes:["token",e.type],attributes:{},language:t};e.alias&&(n=Array.isArray(e.alias)?e.alias:[e.alias],Array.prototype.push.apply(r.classes,n)),F.hooks.run("wrap",r);var i=Object.keys(r.attributes).map(function(e){return e+'="'+(r.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+(i?" "+i:"")+">"+r.content+"</"+r.tag+">"},!c.document)return c.addEventListener&&(F.disableWorkerMessageHandler||c.addEventListener("message",function(e){var t=JSON.parse(e.data),n=t.language,r=t.code,i=t.immediateClose;c.postMessage(F.highlight(r,F.languages[n],n)),i&&c.close()},!1)),F;var e,n=F.util.currentScript();function r(){F.manual||F.highlightAll()}return n&&(F.filename=n.src,n.hasAttribute("data-manual")&&(F.manual=!0)),F.manual||("loading"===(e=document.readyState)||"interactive"===e&&n&&n.defer?document.addEventListener("DOMContentLoaded",r):window.requestAnimationFrame?window.requestAnimationFrame(r):window.setTimeout(r,16)),F}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=c),void 0!==it&&(it.Prism=c),c.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!<!--)[^"'\]]|"[^"]*"|'[^']*'|<!--[\s\S]*?-->)*\]\s*)?>/i,greedy:!0},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},c.languages.markup.tag.inside["attr-value"].inside.entity=c.languages.markup.entity,c.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(c.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:c.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:c.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,e),"i"),lookbehind:!0,greedy:!0,inside:r},c.languages.insertBefore("markup","cdata",i)}}),c.languages.xml=c.languages.extend("markup",{}),c.languages.html=c.languages.markup,c.languages.mathml=c.languages.markup,c.languages.svg=c.languages.markup,function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/@[\w-]+/}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},n.tag))}(c),c.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},c.languages.javascript=c.languages.extend("clike",{"class-name":[c.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/}),c.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,c.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*[\s\S]*?\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:c.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:c.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:c.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:c.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),c.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:c.languages.javascript}},string:/[\s\S]+/}}}),c.languages.markup&&c.languages.markup.tag.addInlined("script","javascript"),c.languages.js=c.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(e){e=e||document;var l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(e.querySelectorAll("pre[data-src]")).forEach(function(e){if(!e.hasAttribute("data-src-loaded")){for(var t,n,r=e.getAttribute("data-src"),i=e,a=/\blang(?:uage)?-([\w-]+)\b/i;i&&!a.test(i.className);)i=i.parentNode;i&&(n=(e.className.match(a)||[,""])[1]),n||(t=(r.match(/\.(\w+)$/)||[,""])[1],n=l[t]||t);var o=document.createElement("code");o.className="language-"+n,e.textContent="",o.textContent="Loading…",e.appendChild(o);var s=new XMLHttpRequest;s.open("GET",r,!0),s.onreadystatechange=function(){4==s.readyState&&(s.status<400&&s.responseText?(o.textContent=s.responseText,c.highlightElement(o),e.setAttribute("data-src-loaded","")):400<=s.status?o.textContent="✖ Error "+s.status+" while fetching file: "+s.statusText:o.textContent="✖ Error: File does not exist or is empty")},s.send(null)}})},document.addEventListener("DOMContentLoaded",function(){self.Prism.fileHighlight()}))});function yt(e,t){return"___"+e.toUpperCase()+t+"___"}mt=Prism,Object.defineProperties(mt.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,e,a){var o;r.language===i&&(o=r.tokenStack=[],r.code=r.code.replace(e,function(e){if("function"==typeof a&&!a(e))return e;for(var t,n=o.length;-1!==r.code.indexOf(t=yt(i,n));)++n;return o[n]=e,t}),r.grammar=mt.languages.markup)}},tokenizePlaceholders:{value:function(h,f){var g,m;h.language===f&&h.tokenStack&&(h.grammar=mt.languages[f],g=0,m=Object.keys(h.tokenStack),function e(t){for(var n=0;n<t.length&&!(g>=m.length);n++){var r,i,a,o,s,l,c,u,p,d=t[n];"string"==typeof d||d.content&&"string"==typeof d.content?(r=m[g],i=h.tokenStack[r],a="string"==typeof d?d:d.content,o=yt(f,r),-1<(s=a.indexOf(o))&&(++g,l=a.substring(0,s),c=new mt.Token(f,mt.tokenize(i,h.grammar),"language-"+f,i),u=a.substring(s+o.length),p=[],l&&p.push.apply(p,e([l])),p.push(c),u&&p.push.apply(p,e([u])),"string"==typeof d?t.splice.apply(t,[n,1].concat(p)):d.content=p)):d.content&&e(d.content)}return t}(h.tokens))}}});var bt={},kt={markdown:function(e){return{url:e}},mermaid:function(e){return{url:e}},iframe:function(e,t){return{html:'<iframe src="'+e+'" '+(t||"width=100% height=400")+"></iframe>"}},video:function(e,t){return{html:'<video src="'+e+'" '+(t||"controls")+">Not Support</video>"}},audio:function(e,t){return{html:'<audio src="'+e+'" '+(t||"controls")+">Not Support</audio>"}},code:function(e,t){var n=e.match(/\.(\w+)$/);return"md"===(n=t||n&&n[1])&&(n="markdown"),{url:e,lang:n}}},xt=function(i,e){var a=this;this.config=i,this.router=e,this.cacheTree={},this.toc=[],this.cacheTOC={},this.linkTarget=i.externalLinkTarget||"_blank",this.linkRel="_blank"===this.linkTarget?i.externalLinkRel||"noopener":"",this.contentBase=e.getBasePath();var t=this._initRenderer();this.heading=t.heading;var n=i.markdown||{},o=u(n)?n(ot,t):(ot.setOptions(h(n,{renderer:h(t,n.renderer)})),ot);this._marked=o,this.compile=function(n){var r=!0,e=s(function(e){r=!1;var t="";return n?(t=c(n)?o(n):o.parser(n),t=i.noEmoji?t:t.replace(/:\+1:/g,":thumbsup:").replace(/:-1:/g,":thumbsdown:").replace(/<(pre|template|code)[^>]*?>[\s\S]+?<\/(pre|template|code)>/g,function(e){return e.replace(/:/g,"__colon__")}).replace(/:(\w+?):/gi,window.emojify||ft).replace(/__colon__/g,":"),ht.clear(),t):n})(n),t=a.router.parse().file;return r?a.toc=a.cacheTOC[t]:a.cacheTOC[t]=[].concat(a.toc),e}};xt.prototype.compileEmbed=function(e,t){var n,r,i,a=gt(t),o=a.str,s=a.config;if(t=o,s.include)return Q(e)||(e=re(this.contentBase,ee(this.router.getCurrentPath()),e)),s.type&&(r=kt[s.type])?(n=r.call(this,e,t)).type=s.type:(i="code",/\.(md|markdown)/.test(e)?i="markdown":/\.mmd/.test(e)?i="mermaid":/\.html?/.test(e)?i="iframe":/\.(mp4|ogg)/.test(e)?i="video":/\.mp3/.test(e)&&(i="audio"),(n=kt[i].call(this,e,t)).type=i),n.fragment=s.fragment,n},xt.prototype._matchNotCompileLink=function(e){for(var t=this.config.noCompileLinks||[],n=0;n<t.length;n++){var r=t[n];if((bt[r]||(bt[r]=new RegExp("^"+r+"$"))).test(e))return e}},xt.prototype._initRenderer=function(){var e,t,s,l,c,u,n,r,p,d,i=new ot.Renderer,a=this.linkTarget,o=this.linkRel,h=this.router,f=this.contentBase,g=this,m={};return m.heading=i.heading=function(e,t){var n=gt(e),r=n.str,i=n.config,a={level:t,title:r};/{docsify-ignore}/g.test(r)&&(r=r.replace("{docsify-ignore}",""),a.title=r,a.ignoreSubHeading=!0),/{docsify-ignore-all}/g.test(r)&&(r=r.replace("{docsify-ignore-all}",""),a.title=r,a.ignoreAllSubs=!0);var o=ht(i.id||r),s=h.toURL(h.getCurrentPath(),{id:o});return a.slug=s,g.toc.push(a),"<h"+t+' id="'+o+'"><a href="'+s+'" data-id="'+o+'" class="anchor"><span>'+r+"</span></a></h"+t+">"},m.code={renderer:i}.renderer.code=function(e,t){void 0===t&&(t="");var n=vt.languages[t]||vt.languages.markup;return'<pre v-pre data-lang="'+t+'"><code class="lang-'+t+'">'+vt.highlight(e.replace(/@DOCSIFY_QM@/g,"`"),n)+"</code></pre>"},m.link=(t=(e={renderer:i,router:h,linkTarget:a,linkRel:o,compilerClass:g}).renderer,s=e.router,l=e.linkTarget,c=e.linkRel,u=e.compilerClass,t.link=function(e,t,n){void 0===t&&(t="");var r=[],i=gt(t),a=i.str,o=i.config;return l=o.target||l,c="_blank"===l?u.config.externalLinkRel||"noopener":"",t=a,Q(e)||u._matchNotCompileLink(e)||o.ignore?(!Q(e)&&e.startsWith("./")&&(e=document.URL.replace(/\/(?!.*\/).*/,"/").replace("#/./","")+e),r.push(0===e.indexOf("mailto:")?"":'target="'+l+'"'),r.push(0!==e.indexOf("mailto:")&&""!==c?' rel="'+c+'"':"")):(e===u.config.homepage&&(e="README"),e=s.toURL(e,null,s.getCurrentPath())),o.crossorgin&&"_self"===l&&"history"===u.config.routerMode&&-1===u.config.crossOriginLinks.indexOf(e)&&u.config.crossOriginLinks.push(e),o.disabled&&(r.push("disabled"),e="javascript:void(0)"),o.class&&r.push('class="'+o.class+'"'),o.id&&r.push('id="'+o.id+'"'),t&&r.push('title="'+t+'"'),'<a href="'+e+'" '+r.join(" ")+">"+n+"</a>"}),m.paragraph={renderer:i}.renderer.paragraph=function(e){var t=/^!>/.test(e)?lt("tip",e):/^\?>/.test(e)?lt("warn",e):"<p>"+e+"</p>";return t},m.image=(r=(n={renderer:i,contentBase:f,router:h}).renderer,p=n.contentBase,d=n.router,r.image=function(e,t,n){var r,i,a,o=e,s=[],l=gt(t),c=l.str,u=l.config;return t=c,u["no-zoom"]&&s.push("data-no-zoom"),t&&s.push('title="'+t+'"'),u.size&&(i=(r=u.size.split("x"))[0],(a=r[1])?s.push('width="'+i+'" height="'+a+'"'):s.push('width="'+i+'"')),u.class&&s.push('class="'+u.class+'"'),u.id&&s.push('id="'+u.id+'"'),Q(e)||(o=re(p,ee(d.getCurrentPath()),e)),0<s.length?'<img src="'+o+'" data-origin="'+e+'" alt="'+n+'" '+s.join(" ")+" />":'<img src="'+o+'" data-origin="'+e+'" alt="'+n+'"'+s+">"}),m.list={renderer:i}.renderer.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+" "+[/<li class="task-list-item">/.test(e.split('class="task-list"')[0])?'class="task-list"':"",n&&1<n?'start="'+n+'"':""].join(" ").trim()+">"+e+"</"+r+">"},m.listitem={renderer:i}.renderer.listitem=function(e){return/^(<input.*type="checkbox"[^>]*>)/.test(e)?'<li class="task-list-item"><label>'+e+"</label></li>":"<li>"+e+"</li>"},i.origin=m,i},xt.prototype.sidebar=function(e,t){var n=this.toc,r=this.router.getCurrentPath(),i="";if(e)i=this.compile(e);else{for(var a=0;a<n.length;a++)if(n[a].ignoreSubHeading){var o=n[a].level;n.splice(a,1);for(var s=a;o<n[s].level&&s<n.length;s++)n.splice(s,1)&&s--&&a++;a--}var l=this.cacheTree[r]||ct(n,t),i=st(l,"<ul>{inner}</ul>");this.cacheTree[r]=l}return i},xt.prototype.subSidebar=function(e){if(e){var t=this.router.getCurrentPath(),n=this.cacheTree,r=this.toc;r[0]&&r[0].ignoreAllSubs&&r.splice(0),r[0]&&1===r[0].level&&r.shift();for(var i=0;i<r.length;i++)r[i].ignoreSubHeading&&r.splice(i,1)&&i--;var a=n[t]||ct(r,e);return n[t]=a,this.toc=[],st(a)}this.toc=[]},xt.prototype.header=function(e,t){return this.heading(e,t)},xt.prototype.article=function(e){return this.compile(e)},xt.prototype.cover=function(e){var t=this.toc.slice(),n=this.compile(e);return this.toc=t.slice(),n};var wt=function(e){var t,n=(t=e.match(/^[ \t]*(?=\S)/gm))?Math.min.apply(Math,t.map(function(e){return e.length})):0;if(0===n)return e;var r=new RegExp("^[ \\t]{"+n+"}","gm");return e.replace(r,"")},_t={};function At(e,i){var o=e.compiler,a=e.raw;void 0===a&&(a="");var t=e.fetch,n=_t[a];if(n){var r=n.slice();return r.links=n.links,i(r)}var s=o._marked,l=s.lexer(a),c=[],u=s.InlineLexer.rules.link,p=l.links;l.forEach(function(e,a){"paragraph"===e.type&&(e.text=e.text.replace(new RegExp(u.source,"g"),function(e,t,n,r){var i=o.compileEmbed(n,r);return i&&c.push({index:a,embed:i}),e}))});var d=[];!function(e,o){var t,n=e.embedTokens,s=e.compile,l=(e.fetch,0),c=1;if(!n.length)return o({});for(;t=n[l++];){var r=function(a){return function(e){var t,n,r,i;e&&("markdown"===a.embed.type?((n=a.embed.url.split("/")).pop(),n=n.join("/"),e=e.replace(/\[([^[\]]+)\]\(([^)]+)\)/g,function(e){var t=e.indexOf("(");return e.substring(t).startsWith("(.")?e.substring(0,t)+"("+window.location.protocol+"//"+window.location.host+n+"/"+e.substring(t+1,e.length-1)+")":e}),!0===(($docsify.frontMatter||{}).installed||!1)&&(e=$docsify.frontMatter.parseMarkdown(e)),t=s.lexer(e)):"code"===a.embed.type?(a.embed.fragment&&(r=a.embed.fragment,i=new RegExp("(?:###|\\/\\/\\/)\\s*\\["+r+"\\]([\\s\\S]*)(?:###|\\/\\/\\/)\\s*\\["+r+"\\]"),e=wt((e.match(i)||[])[1]||"").trim()),t=s.lexer("```"+a.embed.lang+"\n"+e.replace(/`/g,"@DOCSIFY_QM@")+"\n```\n")):"mermaid"===a.embed.type?(t=[{type:"html",text:'<div class="mermaid">\n'+e+"\n</div>"}]).links={}:(t=[{type:"html",text:e}]).links={}),o({token:a,embedToken:t}),++c>=l&&o({})}}(t);t.embed.url?I(t.embed.url).then(r):r(t.embed.html)}}({compile:s,embedTokens:c,fetch:t},function(e){var t,n=e.embedToken,r=e.token;r?(t=r.index,d.forEach(function(e){t>e.start&&(t+=e.length)}),h(p,n.links),l=l.slice(0,t).concat(n,l.slice(t+1)),d.push({start:t,length:n.length-1})):(_t[a]=l.concat(),l.links=_t[a].links=p,i(l))})}function St(){var t,e=_(".markdown-section>script").filter(function(e){return!/template/.test(e.type)})[0];!e||(t=e.innerText.trim())&&setTimeout(function(e){window.__EXECUTE_RESULT__=new Function(t)()},0)}function Tt(e,t,n){var r,i,a,o;return t="function"==typeof n?n(t):"string"==typeof n?(a=[],o=0,(r=n).replace(L,function(t,e,n){a.push(r.substring(o,n-1)),o=n+=t.length+1,a.push(i&&i[t]||function(e){return("00"+("string"==typeof C[t]?e[C[t]]():C[t](e))).slice(-t.length)})}),o!==r.length&&a.push(r.substring(o)),function(e){for(var t="",n=0,r=e||new Date;n<a.length;n++)t+="string"==typeof a[n]?a[n]:a[n](r);return t}(new Date(t))):t,e.replace(/{docsify-updated}/g,t)}function Et(e){e=e||"<h1>404 - Not found</h1>",this._renderTo(".markdown-section",e),this.config.loadSidebar||this._renderSidebar(),!1===this.config.executeScript||void 0===window.Vue||St()?this.config.executeScript&&St():setTimeout(function(e){var t=window.__EXECUTE_RESULT__;t&&t.$destroy&&t.$destroy(),window.__EXECUTE_RESULT__=(new window.Vue).$mount("#main")},0)}function Lt(e){var t=e.config;e.compiler=new xt(t,e.router),window.__current_docsify_compiler__=e.compiler;var n,r,i,a,o,s,l,c,u,p,d,h=t.el||"#app",f=w("nav")||A("nav"),g=w(h),m="",v=k;g?(t.repo&&(m+=(c=t.repo,u=t.cornerExternalLinkTarge,c?(/\/\//.test(c)||(c="https://github.com/"+c),'<a href="'+(c=c.replace(/^git\+/,""))+'" target="'+(u=u||"_blank")+'" class="github-corner" aria-label="View source on Github"><svg viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>'):"")),t.coverpage&&(m+=(l=", 100%, 85%",'<section class="cover show" style="background: linear-gradient(to left bottom, hsl('+Math.floor(255*Math.random())+l+") 0%,hsl("+Math.floor(255*Math.random())+l+') 100%)"><div class="cover-main">\x3c!--cover--\x3e</div><div class="mask"></div></section>')),t.logo&&(n=/^data:image/.test(t.logo),r=/(?:http[s]?:)?\/\//.test(t.logo),i=/^\./.test(t.logo),n||r||i||(t.logo=re(e.router.getBasePath(),t.logo))),m+=(o=(a=t).name?a.name:"",s='<button class="sidebar-toggle" aria-label="Menu"><div class="sidebar-toggle-button"><span></span><span></span><span></span></div></button><aside class="sidebar">'+(a.name?'<h1 class="app-name"><a class="app-name-link" data-nosearch>'+(a.logo?'<img alt="'+o+'" src='+a.logo+">":o)+"</a></h1>":"")+'<div class="sidebar-nav">\x3c!--sidebar--\x3e</div></aside>',(y?s+"<main>":"<main>"+s)+'<section class="content"><article class="markdown-section" id="main">\x3c!--main--\x3e</article></section></main>'),e._renderTo(g,m,!0)):e.rendered=!0,t.mergeNavbar&&y?v=w(".sidebar"):(f.classList.add("app-nav"),t.repo||f.classList.add("no-badge")),t.loadNavbar&&S(v,f),t.themeColor&&(b.head.appendChild(A("div","<style>:root{--theme-color: "+t.themeColor+";}</style>").firstElementChild),p=t.themeColor,window.CSS&&window.CSS.supports&&window.CSS.supports("(--v:red)")||(d=_("style:not(.inserted),link"),[].forEach.call(d,function(e){if("STYLE"===e.nodeName)U(e,p);else if("LINK"===e.nodeName){var t=e.getAttribute("href");if(!/\.css$/.test(t))return;I(t).then(function(e){var t=A("style",e);x.appendChild(t),U(t,p)})}}))),e._updateRender(),T(k,"ready")}var Ct={};function Rt(e){this.config=e}function Ft(e){var t=location.href.indexOf("#");location.replace(location.href.slice(0,0<=t?t:0)+"#"+e)}Rt.prototype.getBasePath=function(){return this.config.basePath},Rt.prototype.getFile=function(e,t){void 0===e&&(e=this.getCurrentPath());var n,r,i=this.config,a=this.getBasePath(),o="string"==typeof i.ext?i.ext:".md";return e=i.alias?function e(t,n,r){var i=Object.keys(n).filter(function(e){return(Ct[e]||(Ct[e]=new RegExp("^"+e+"$"))).test(t)&&t!==r})[0];return i?e(t.replace(Ct[i],n[i]),n,t):t}(e,i.alias):e,n=e,r=o,e=(e=new RegExp("\\.("+r.replace(/^\./,"")+"|html)$","g").test(n)?n:/\/$/g.test(n)?n+"README"+r:""+n+r)==="/README"+o&&i.homepage||e,e=Q(e)?e:re(a,e),t&&(e=e.replace(new RegExp("^"+a),"")),e},Rt.prototype.onchange=function(e){void 0===e&&(e=d),e()},Rt.prototype.getCurrentPath=function(){},Rt.prototype.normalize=function(){},Rt.prototype.parse=function(){},Rt.prototype.toURL=function(e,t,n){var r,i=n&&"#"===e[0],a=this.parse(ie(e));if(a.query=h({},a.query,t),e=(e=a.path+K(a.query)).replace(/\.md(\?)|\.md$/,"$1"),i&&(e=(0<(r=n.indexOf("?"))?n.substring(0,r):n)+e),this.config.relativePath&&0!==e.indexOf("/")){var o=n.substring(0,n.lastIndexOf("/")+1);return te(ne(o+e))}return te("/"+e)};var Ot=function(r){function e(e){r.call(this,e),this.mode="hash"}return r&&(e.__proto__=r),((e.prototype=Object.create(r&&r.prototype)).constructor=e).prototype.getBasePath=function(){var e=window.location.pathname||"",t=this.config.basePath;return/^(\/|https?:)/g.test(t)?t:te(e+"/"+t)},e.prototype.getCurrentPath=function(){var e=location.href,t=e.indexOf("#");return-1===t?"":e.slice(t+1)},e.prototype.onchange=function(n){void 0===n&&(n=d);var r=!1;f("click",function(e){var t="A"===e.target.tagName?e.target:e.target.parentNode;"A"!==t.tagName||/_blank/.test(t.target)||(r=!0)}),f("hashchange",function(e){var t=r?"navigate":"history";r=!1,n({event:e,source:t})})},e.prototype.normalize=function(){var e=this.getCurrentPath();if("/"===(e=ie(e)).charAt(0))return Ft(e);Ft("/"+e)},e.prototype.parse=function(e){void 0===e&&(e=location.href);var t="",n=e.indexOf("#");0<=n&&(e=e.slice(n+1));var r=e.indexOf("?");return 0<=r&&(t=e.slice(r+1),e=e.slice(0,r)),{path:e,file:this.getFile(e,!0),query:X(t)}},e.prototype.toURL=function(e,t,n){return"#"+r.prototype.toURL.call(this,e,t,n)},e}(Rt),$t=function(t){function e(e){t.call(this,e),this.mode="history"}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getCurrentPath=function(){var e=this.getBasePath(),t=window.location.pathname;return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash},e.prototype.onchange=function(r){var i=this;void 0===r&&(r=d),f("click",function(e){var t,n="A"===e.target.tagName?e.target:e.target.parentNode;"A"!==n.tagName||/_blank/.test(n.target)||(e.preventDefault(),t=n.href,-1!==i.config.crossOriginLinks.indexOf(t)?window.open(t,"_self"):window.history.pushState({key:t},"",t),r({event:e,source:"navigate"}))}),f("popstate",function(e){r({event:e,source:"history"})})},e.prototype.parse=function(e){void 0===e&&(e=location.href);var t="",n=e.indexOf("?");0<=n&&(t=e.slice(n+1),e=e.slice(0,n));var r=re(location.origin),i=e.indexOf(r);return-1<i&&(e=e.slice(i+r.length)),{path:e,file:this.getFile(e),query:X(t)}},e}(Rt);var Mt={};function Nt(e){e.router.normalize(),e.route=e.router.parse(),k.setAttribute("data-page",e.route.file)}function zt(e){function t(e){return k.classList.toggle("close")}var n,r;n="button.sidebar-toggle",e.router,null!=(n=m(n))&&(f(n,"click",function(e){e.stopPropagation(),t()}),y&&f(k,"click",function(e){return k.classList.contains("close")&&t()})),r=".sidebar",e.router,null!=(r=m(r))&&f(r,"click",function(e){var t=e.target;"A"===t.nodeName&&t.nextSibling&&t.nextSibling.classList&&t.nextSibling.classList.contains("app-sub-sidebar")&&T(t.parentNode,"collapse")}),e.config.coverpage?y||f("scroll",W):k.classList.add("sticky")}function Pt(t,n,r,i,a,e){t=e?t:t.replace(/\/$/,""),(t=ee(t))&&I(a.router.getFile(t+r)+n,!1,a.config.requestHeaders).then(i,function(e){return Pt(t,n,r,i,a)})}var jt=Object.freeze({__proto__:null,cached:s,hyphenate:a,hasOwn:l,merge:h,isPrimitive:c,noop:d,isFn:u,inBrowser:!0,isMobile:y,supportsPushState:p,parseQuery:X,stringifyQuery:K,isAbsolutePath:Q,removeParams:J,getParentPath:ee,cleanPath:te,resolvePath:ne,getPath:re,replaceSlug:ie});function Dt(){this._init()}var Ht,qt,It,Ut=Dt.prototype;function Bt(e,t,n){return It&&It.abort&&It.abort(),It=I(e,!0,n)}Ut._init=function(){var n,t,r,e,i,a,o,s,l=this;l.config=E(l),(n=l)._hooks={},n._lifecycle={},["init","mounted","beforeEach","afterEach","doneEach","ready"].forEach(function(e){var t=n._hooks[e]=[];n._lifecycle[e]=function(e){return t.push(e)}}),[].concat((t=l).config.plugins).forEach(function(e){return u(e)&&e(t._lifecycle,t)}),B(l,"init"),e=(r=l).config,i=new("history"===(e.routerMode||"hash")&&p?$t:Ot)(e),r.router=i,Nt(r),Mt=r.route,i.onchange(function(e){Nt(r),r._updateRender(),Mt.path!==r.route.path?(r.$fetch(d,r.$resetEvents.bind(r,e.source)),Mt=r.route):r.$resetEvents(e.source)}),Lt(l),zt(l),s=(a=l).config.loadSidebar,a.rendered?(o=G(a.router,".sidebar-nav",!0,!0),s&&o&&(o.parentNode.innerHTML+=window.__SUB_SIDEBAR__),a._bindEventOnRendered(o),a.$resetEvents(),B(a,"doneEach"),B(a,"ready")):a.$fetch(function(e){return B(a,"ready")}),B(l,"mounted")},Ut.route={},(Ht=Ut)._renderTo=function(e,t,n){var r=m(e);r&&(r[n?"outerHTML":"innerHTML"]=t)},Ht._renderSidebar=function(e){var t=this.config,n=t.maxLevel,r=t.subMaxLevel,i=t.loadSidebar;if(t.hideSidebar)return document.querySelector("aside.sidebar").remove(),document.querySelector("button.sidebar-toggle").remove(),document.querySelector("section.content").style.right="unset",document.querySelector("section.content").style.left="unset",document.querySelector("section.content").style.position="relative",document.querySelector("section.content").style.width="100%",null;this._renderTo(".sidebar-nav",this.compiler.sidebar(e,n));var a=G(this.router,".sidebar-nav",!0,!0);i&&a?a.parentNode.innerHTML+=this.compiler.subSidebar(r)||"":this.compiler.subSidebar(),this._bindEventOnRendered(a)},Ht._bindEventOnRendered=function(e){var t,n,r=this.config.autoHeader;!function(e){var t=w(".cover.show");ge=t?t.offsetHeight:0;var n=m(".sidebar"),r=[];null!=n&&(r=_(n,"li"));for(var i,a=0,o=r.length;a<o;a+=1){var s,l,c,u,p=r[a],d=p.querySelector("a");d&&("/"!==(s=d.getAttribute("href"))&&(c=(l=e.parse(s)).query.id,u=l.path,c&&(s=ve(u,c))),s&&(pe[decodeURIComponent(s)]=p))}y||(i=J(e.getCurrentPath()),g("scroll",function(){return me(i)}),f("scroll",function(){return me(i)}),f(n,"mouseover",function(){de=!0}),f(n,"mouseleave",function(){de=!1}))}(this.router),r&&e&&((n=(t=m("#main")).children[0])&&"H1"!==n.tagName&&S(t,A("div",this.compiler.header(e.innerText,1)).children[0]))},Ht._renderNav=function(e){e&&this._renderTo("nav",this.compiler.compile(e)),this.config.loadNavbar&&G(this.router,"nav")},Ht._renderMain=function(r,i,a){var o=this;if(void 0===i&&(i={}),!r)return Et.call(this,r);B(this,"beforeEach",r,function(e){function t(){i.updatedAt&&(n=Tt(n,i.updatedAt,o.config.formatUpdated)),B(o,"afterEach",n,function(e){return Et.call(o,e)})}var n;o.isHTML?(n=o.result=r,t(),a()):At({compiler:o.compiler,raw:e},function(e){n=o.compiler.compile(e),n=o.isRemoteUrl?D.sanitize(n):n,t(),a()})})},Ht._renderCover=function(e,t){var n,r,i,a=m(".cover");T(m("main"),t?"add":"remove","hidden"),e?(T(a,"add","show"),(r=(n=this.coverIsHTML?e:this.compiler.cover(e)).trim().match('<p><img.*?data-origin="(.*?)"[^a]+alt="(.*?)">([^<]*?)</p>$'))&&("color"===r[2]?a.style.background=r[1]+(r[3]||""):(i=r[1],T(a,"add","has-mask"),Q(r[1])||(i=re(this.router.getBasePath(),r[1])),a.style.backgroundImage="url("+i+")",a.style.backgroundSize="cover",a.style.backgroundPosition="center center"),n=n.replace(r[0],"")),this._renderTo(".cover-main",n),W()):T(a,"remove","show")},Ht._updateRender=function(){var e,t,n,r,i;e=this,n=m(".app-name-link"),r=e.config.nameLink,i=e.route.path,n&&(c(e.config.nameLink)?n.setAttribute("href",r):"object"==typeof r&&(t=Object.keys(r).filter(function(e){return-1<i.indexOf(e)})[0],n.setAttribute("href",r[t])))},(qt=Ut)._loadSideAndNav=function(e,t,n,r){var i=this;return function(){if(!n)return r();Pt(e,t,n,function(e){i._renderSidebar(e),r()},i,!0)}},qt._fetch=function(n){var r=this;void 0===n&&(n=d);var e,t=this.route,i=t.path,a=K(t.query,["id"]),o=this.config,s=o.loadNavbar,l=o.requestHeaders,c=o.loadSidebar,u=this.router.getFile(i),p=Bt(u+a,0,l);this.isRemoteUrl="string"==typeof(e=u.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/))[1]&&0<e[1].length&&e[1].toLowerCase()!==location.protocol||"string"==typeof e[2]&&0<e[2].length&&e[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host,this.isHTML=/\.html$/g.test(u),p.then(function(e,t){return r._renderMain(e,t,r._loadSideAndNav(i,a,c,n))},function(e){r._fetchFallbackPage(u,a,n)||r._fetch404(u,a,n)}),s&&Pt(i,a,s,function(e){return r._renderNav(e)},this,!0)},qt._fetchCover=function(){var t=this,e=this.config,n=e.coverpage,r=e.requestHeaders,i=this.route.query,a=ee(this.route.path);if(n){var o,s=null,l=this.route.path;"string"==typeof n?"/"===l&&(s=n):s=Array.isArray(n)?-1<n.indexOf(l)&&"_coverpage":!0===(o=n[l])?"_coverpage":o;var c=Boolean(s)&&this.config.onlyCover;return s?(s=this.router.getFile(a+s),this.coverIsHTML=/\.html$/g.test(s),I(s+K(i,["id"]),!1,r).then(function(e){return t._renderCover(e,c)})):this._renderCover(null,c),c}},qt.$fetch=function(e,t){var n=this;void 0===e&&(e=d),void 0===t&&(t=this.$resetEvents.bind(this));function r(){B(n,"doneEach"),e()}this._fetchCover()?r():this._fetch(function(){t(),r()})},qt._fetchFallbackPage=function(n,r,i){var a=this;void 0===i&&(i=d);var e=this.config,t=e.requestHeaders,o=e.fallbackLanguages,s=e.loadSidebar;if(!o)return!1;var l=n.split("/")[1];if(-1===o.indexOf(l))return!1;var c=n.replace(new RegExp("^/"+l),"");return Bt(c+r,0,t).then(function(e,t){return a._renderMain(e,t,a._loadSideAndNav(n,r,s,i))},function(){return a._fetch404(n,r,i)}),!0},qt._fetch404=function(e,t,n){var r=this;void 0===n&&(n=d);var i=this.config,a=i.loadSidebar,o=i.requestHeaders,s=i.notFoundPage,l=this._loadSideAndNav(e,t,a,n);if(s){var c=function(t,e){var n,r,i=e.notFoundPage,a="_404"+(e.ext||".md");switch(typeof i){case"boolean":r=a;break;case"string":r=i;break;case"object":r=(n=Object.keys(i).sort(function(e,t){return t.length-e.length}).find(function(e){return t.match(new RegExp("^"+e))}))&&i[n]||a}return r}(e,this.config);return Bt(this.router.getFile(c),0,o).then(function(e,t){return r._renderMain(e,t,l)},function(){return r._renderMain(null,{},l)}),!0}return this._renderMain(null,{},l),!1},Ut.$resetEvents=function(e){var t,n=this,r=this.config.auto2top;"history"!==e&&(n.route.query.id&&nt(n.route.path,n.route.query.id),"navigate"===e&&r&&(void 0===(t=r)&&(t=0),rt.scrollTop=!0===t?0:Number(t))),this.config.loadNavbar&&G(this.router,"nav")},window.Docsify={util:jt,dom:t,get:I,slugify:ht,version:"4.11.4"},window.DocsifyCompiler=xt,window.marked=ot,window.Prism=vt,e(function(e){return new Dt})}(); -------------------------------------------------------------------------------- /help/index.html: -------------------------------------------------------------------------------- 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | <head> 4 | <meta charset="UTF-8"> 5 | <link rel="icon" href="../favicon.ico" type="image/x-icon" /> 6 | <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/> 7 | <title>JSDec_Help 8 | 9 | 10 | 11 | 12 | 13 | 14 |

15 | 16 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | JSDec - Liulihaocai 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 28 | 29 | 30 | 39 | 43 | 44 | 45 | 46 | 47 | 52 | 53 | JSDec 54 | 55 | 58 | 59 | 64 | {{ item.title }} 65 | 66 | 67 | 68 | 69 | 70 | 122 | 123 | 127 | JSDec by liulihaocai 128 | 129 | © {{ fullyear }} 130 | 131 | 132 |
133 |
134 | 135 | 203 | 204 | -------------------------------------------------------------------------------- /js/beautify.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | The MIT License (MIT) 4 | 5 | Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors. 6 | 7 | Permission is hereby granted, free of charge, to any person 8 | obtaining a copy of this software and associated documentation files 9 | (the "Software"), to deal in the Software without restriction, 10 | including without limitation the rights to use, copy, modify, merge, 11 | publish, distribute, sublicense, and/or sell copies of the Software, 12 | and to permit persons to whom the Software is furnished to do so, 13 | subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be 16 | included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 22 | BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 23 | ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 24 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 25 | SOFTWARE. 26 | */ 27 | 28 | !function(){var u,n;function i(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return u[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var t=(n={},i.m=u=[function(t,e,u){"use strict";var n=u(1).Beautifier,i=u(5).Options;t.exports=function(t,e){return new n(t,e).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,u){"use strict";var n=u(2).Output,i=u(3).Token,o=u(4),_=u(5).Options,s=u(7).Tokenizer,p=u(7).line_starters,l=u(7).positionable_operators,f=u(7).TOKEN;function c(t,e){return-1!==e.indexOf(t)}function a(t,e){return t&&t.type===f.RESERVED&&t.text===e}function d(t,e){return t&&t.type===f.RESERVED&&c(t.text,e)}var b=["case","return","do","if","throw","else","await","break","continue","async"],g=function(t){for(var e={},u=0;uu&&(u=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new i(f.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:u,alignment:0,line_indent_level:t?t.line_indent_level:u,start_line_index:this._output.get_line_number(),ternary_depth:0}},T.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new n(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(k);var u=new s(t,this._options);return this._tokens=u.tokenize(),t},T.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&&o.lineBreak.test(t||"")&&(e=t.match(o.lineBreak)[0]));for(var u=this._tokens.next();u;)this.handle_token(u),this._last_last_text=this._flags.last_token.text,this._flags.last_token=u,u=this._tokens.next();return this._output.get_code(e)},T.prototype.handle_token=function(t,e){t.type===f.START_EXPR?this.handle_start_expr(t):t.type===f.END_EXPR?this.handle_end_expr(t):t.type===f.START_BLOCK?this.handle_start_block(t):t.type===f.END_BLOCK?this.handle_end_block(t):t.type===f.WORD||t.type===f.RESERVED?this.handle_word(t):t.type===f.SEMICOLON?this.handle_semicolon(t):t.type===f.STRING?this.handle_string(t):t.type===f.EQUALS?this.handle_equals(t):t.type===f.OPERATOR?this.handle_operator(t):t.type===f.COMMA?this.handle_comma(t):t.type===f.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===f.COMMENT?this.handle_comment(t,e):t.type===f.DOT?this.handle_dot(t):t.type===f.EOF?this.handle_eof(t):(t.type,f.UNKNOWN,this.handle_unknown(t,e))},T.prototype.handle_whitespace_and_comments=function(t,e){var u=t.newlines,n=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(n)for(var _=0;_this._options.max_preserve_newlines&&(u=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))},T.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)},T.prototype.restore_mode=function(){0"!==this._flags.last_token.text)&&(c(this._flags.last_token.type,[f.EQUALS,f.START_EXPR,f.COMMA,f.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"]))?this.set_mode(r):this.set_mode(k);var n=!e.comments_before&&"}"===e.text,i=n&&"function"===this._flags.last_word&&this._flags.last_token.type===f.END_EXPR;if(this._options.brace_preserve_inline){var _=0,s=null;this._flags.inline_frame=!0;do{if(_+=1,(s=this._tokens.peek(_-1)).newlines){this._flags.inline_frame=!1;break}}while(s.type!==f.EOF&&(s.type!==f.END_BLOCK||s.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==f.OPERATOR&&(i||this._flags.last_token.type===f.EQUALS||d(this._flags.last_token,b)&&"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!==f.START_EXPR&&this._flags.last_token.type!==f.COMMA||(this._flags.last_token.type!==f.COMMA&&!this._options.space_in_paren||(this._output.space_before_token=!0),(this._flags.last_token.type===f.COMMA||this._flags.last_token.type===f.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!==f.OPERATOR&&this._flags.last_token.type!==f.START_EXPR&&(this._flags.last_token.type!==f.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),n||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},T.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===w;)this.restore_mode();var e=this._flags.last_token.type===f.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)},T.prototype.handle_word=function(t){if(t.type===f.RESERVED&&(c(t.text,["set","get"])&&this._flags.mode!==r||"import"===t.text&&"("===this._tokens.peek().text||c(t.text,["as","from"])&&!this._flags.import_block||this._flags.mode===r&&":"===this._tokens.peek().text)&&(t.type=f.WORD),this.start_of_statement(t)?d(this._flags.last_token,["var","let","const"])&&t.type===f.WORD&&(this._flags.declaration_statement=!0):!t.newlines||R(this._flags.mode)||this._flags.last_token.type===f.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===f.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(a(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&&a(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===w;)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!==f.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!==f.COMMA&&this._flags.last_token.type!==f.START_EXPR&&this._flags.last_token.type!==f.EQUALS&&this._flags.last_token.type!==f.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),a(t,"function"))return(c(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!c(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==f.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===f.RESERVED||this._flags.last_token.type===f.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,A)||a(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===f.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:!this._flags.multiline_frame&&(R(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===f.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===f.SEMICOLON&&this._flags.mode===k?e="NEWLINE":this._flags.last_token.type===f.SEMICOLON&&R(this._flags.mode)?e="SPACE":this._flags.last_token.type===f.STRING?e="NEWLINE":this._flags.last_token.type===f.RESERVED||this._flags.last_token.type===f.WORD||"*"===this._flags.last_token.text&&(c(this._last_last_text,["function","yield"])||this._flags.mode===r&&c(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===f.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===f.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),d(t,p)&&")"!==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!==f.END_BLOCK||this._previous_flags.mode!==k||"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,b)||"declare"===this._flags.last_token.text&&d(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==f.END_EXPR?this._flags.last_token.type===f.START_EXPR&&d(t,["var","let","const"])||":"===this._flags.last_token.text||(a(t,"if")&&a(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(t,p)&&")"!==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!==f.WORD&&t.previous.type!==f.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===f.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&&a(t,"from")&&(this._flags.import_block=!1))},T.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!==w||this._flags.if_block&&a(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},T.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===f.RESERVED||this._flags.last_token.type===f.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===f.COMMA||this._flags.last_token.type===f.START_EXPR||this._flags.last_token.type===f.EQUALS||this._flags.last_token.type===f.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):this.print_newline()),this.print_token(t)},T.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},T.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?(R(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===r||this._flags.mode===w&&this._flags.parent.mode===r?(this._flags.mode===w&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},T.prototype.handle_operator=function(t){var e,u="*"===t.text&&(d(this._flags.last_token,["function","yield"])||c(this._flags.last_token.type,[f.START_BLOCK,f.COMMA,f.END_BLOCK,f.SEMICOLON])),n=c(t.text,["-","+"])&&(c(this._flags.last_token.type,[f.START_BLOCK,f.START_EXPR,f.EQUALS,f.OPERATOR])||c(this._flags.last_token.text,p)||","===this._flags.last_token.text);if(this.start_of_statement(t)||(e=!u,this.handle_whitespace_and_comments(t,e)),d(this._flags.last_token,b))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==f.DOT)if("::"!==t.text){if(this._flags.last_token.type===f.OPERATOR&&c(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!==f.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var i,_=!0,s=!0,a=!1;if(":"===t.text?0===this._flags.ternary_depth?_=!1:(--this._flags.ternary_depth,a=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!u&&this._options.preserve_newlines&&c(t.text,l)){var o=":"===t.text,r=o&&a,h=o&&!a;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!h,this.print_token(t),o&&!r||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,!o||r?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 h||this.allow_wrap_or_preserved_newline(t),_=!(this._output.just_added_newline()||h),this._output.space_before_token=_,this.print_token(t),void(this._output.space_before_token=!0)}}u?(this.allow_wrap_or_preserved_newline(t),_=!1,s=(i=this._tokens.peek())&&c(i.type,[f.WORD,f.RESERVED])):"..."===t.text?(this.allow_wrap_or_preserved_newline(t),_=this._flags.last_token.type===f.START_BLOCK,s=!1):(c(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==f.COMMA&&this._flags.last_token.type!==f.START_EXPR||this.allow_wrap_or_preserved_newline(t),s=_=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&R(this._flags.mode)&&(_=!0),this._flags.last_token.type===f.RESERVED?_=!0:this._flags.last_token.type===f.END_EXPR?_=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===f.OPERATOR&&(_=c(t.text,["--","-","++","+"])&&c(this._flags.last_token.text,["--","-","++","+"]),c(t.text,["+","-"])&&c(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==k||this._flags.inline_frame)&&this._flags.mode!==w||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()),this._output.space_before_token=this._output.space_before_token||_,this.print_token(t),this._output.space_before_token=s}else this.print_token(t);else this.print_token(t)},T.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)):o.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))},T.prototype.print_block_commment=function(t,e){var u,n,i,_=function(t){for(var e=[],u=(t=t.replace(o.allLineBreaks,"\n")).indexOf("\n");-1!==u;)e.push(t.substring(0,u)),u=(t=t.substring(u+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),s=t.whitespace_before,a=s.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(_[0]),this.print_newline(!1,e),1<_.length){for(n=function(t,e){for(var u=0;uthis.__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()},n.prototype.__add_column=function(){var t,e=this.__cache.length,u="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,u=new Array(t+1).join(this.__indent_string)),e&&(u+=new Array(e+1).join(" ")),this.__cache.push(u)},_.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},_.prototype.get_line_number=function(){return this.__lines.length},_.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},_.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},_.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},_.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},_.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 u=this.__lines.join("\n");return"\n"!==t&&(u=u.replace(/[\n]/g,t)),u},_.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},_.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=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 u=new a(this._input),n=new o(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(r.identifier).matching(r.identifierMatch),number:u.matching(f),punct:u.matching(w),comment:u.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:u.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:u.matching(//),include:u.starting_with(/#include/).until_after(r.lineBreak),shebang:u.starting_with(/#!/).until_after(r.lineBreak),xml:u.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:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}}var k,w=new RegExp(g),y="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),x=y.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),v=new RegExp("^(?:"+x.join("|")+")$");(m.prototype=new i)._is_comment=function(t){return t.type===p.COMMENT||t.type===p.BLOCK_COMMENT||t.type===p.UNKNOWN},m.prototype._is_opening=function(t){return t.type===p.START_BLOCK||t.type===p.START_EXPR},m.prototype._is_closing=function(t,e){return(t.type===p.END_BLOCK||t.type===p.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},m.prototype._reset=function(){k=!1},m.prototype._get_next_token=function(t,e){this._readWhitespace();var u=this._input.peek();return null===u?this._create_token(p.EOF,""):this._read_non_javascript(u)||this._read_string(u)||this._read_word(t)||this._read_singles(u)||this._read_comment(u)||this._read_regexp(u,t)||this._read_xml(u,t)||this._read_punctuation()||this._create_token(p.UNKNOWN,this._input.next())},m.prototype._read_word=function(t){var e=this.__patterns.identifier.read();return""!==e?(e=e.replace(r.allLineBreaks,"\n"),t.type!==p.DOT&&(t.type!==p.RESERVED||"set"!==t.text&&"get"!==t.text)&&v.test(e)?"in"===e||"of"===e?this._create_token(p.OPERATOR,e):this._create_token(p.RESERVED,e):this._create_token(p.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(p.WORD,e):void 0},m.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(p.START_EXPR,t):")"===t||"]"===t?e=this._create_token(p.END_EXPR,t):"{"===t?e=this._create_token(p.START_BLOCK,t):"}"===t?e=this._create_token(p.END_BLOCK,t):";"===t?e=this._create_token(p.SEMICOLON,t):"."===t&&d.test(this._input.peek(1))?e=this._create_token(p.DOT,t):","===t&&(e=this._create_token(p.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(p.EQUALS,t):"?."===t?this._create_token(p.DOT,t):this._create_token(p.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(p.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(p.UNKNOWN,e.trim()+"\n");t=this._input.next();var u="#";if(this._input.hasNext()&&this._input.testChar(c)){for(;u+=t=this._input.next(),this._input.hasNext()&&"#"!==t&&"="!==t;);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(u+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(u+="{}",this._input.next(),this._input.next())),this._create_token(p.WORD,u)}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(r.newline);)e+=this._input.next();return k=!0,this._create_token(p.COMMENT,e)}}else if(k&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return k=!1,this._create_token(p.COMMENT,e);return null},m.prototype._read_comment=function(t){var e,u,n=null;return"/"===t&&(e="","*"===this._input.peek(1)?(e=this.__patterns.block_comment.read(),(u=l.get_directives(e))&&"start"===u.ignore&&(e+=l.readIgnored(this._input)),e=e.replace(r.allLineBreaks,"\n"),(n=this._create_token(p.BLOCK_COMMENT,e)).directives=u):"/"===this._input.peek(1)&&(e=this.__patterns.comment.read(),n=this._create_token(p.COMMENT,e))),n},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){var e="",u=0,n=new _(t),i=null;for(;n.hasNext();)if((i=n.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=i[0]),"\\"===n.peek()){if(n.next(),"x"===n.peek())i=n.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==n.peek()){e+="\\",n.hasNext()&&(e+=n.next());continue}i=n.match(/u([0-9A-Fa-f]{4})/g)}if(!i)return t;if(126<(u=parseInt(i[1],16))&&u<=255&&0===i[0].indexOf("x"))return t;if(0<=u&&u<32){e+="\\"+i[0];continue}e+=34===u||39===u||92===u?"\\"+String.fromCharCode(u):String.fromCharCode(u)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(r.allLineBreaks,"\n"),this._create_token(p.STRING,e)},m.prototype._allow_regexp_or_xml=function(t){return t.type===p.RESERVED&&h(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===p.END_EXPR&&")"===t.text&&t.opened.previous.type===p.RESERVED&&h(t.opened.previous.text,["if","while","for"])||h(t.type,[p.COMMENT,p.START_EXPR,p.START_BLOCK,p.START,p.END_BLOCK,p.OPERATOR,p.EQUALS,p.EOF,p.SEMICOLON,p.COMMA])},m.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var u=this._input.next(),n=!1,i=!1;this._input.hasNext()&&(n||i||this._input.peek()!==t)&&!this._input.testChar(r.newline);)u+=this._input.peek(),n?n=!1:(n="\\"===this._input.peek(),"["===this._input.peek()?i=!0:"]"===this._input.peek()&&(i=!1)),this._input.next();return this._input.peek()===t&&(u+=this._input.next(),u+=this._input.read(r.identifier)),this._create_token(p.STRING,u)}return null},m.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var u="",n=this.__patterns.xml.read_match();if(n){for(var i=n[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),_=0===i.indexOf("{"),s=0;n;){var a=!!n[1],o=n[2];if(!(!!n[n.length-1]||"![CDATA["===o.slice(0,8))&&(o===i||_&&o.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(a?--s:++s),u+=n[0],s<=0)break;n=this.__patterns.xml.read_match()}return n||(u+=this._input.match(/[\s\S]*/g)[0]),u=u.replace(r.allLineBreaks,"\n"),this._create_token(p.STRING,u)}}return null},m.prototype._read_string_recursive=function(t,e,u){var n,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 _=i.read(),s="";this._input.hasNext();){if((s=this._input.next())===t||!e&&r.newline.test(s)){this._input.back();break}"\\"===s&&this._input.hasNext()?("x"===(n=this._input.peek())||"u"===n?this.has_char_escapes=!0:"\r"===n&&"\n"===this._input.peek(1)&&this._input.next(),s+=this._input.next()):u&&("${"===u&&"$"===s&&"{"===this._input.peek()&&(s+=this._input.next()),u===s&&(s+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(s+=this._input.next()))),_+=s+=i.read()}return _},t.exports.Tokenizer=m,t.exports.TOKEN=p,t.exports.positionable_operators=b.slice(),t.exports.line_starters=y.slice()},function(t,e,u){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){0=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,u){"use strict";function n(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)}var i=u(8).InputScanner,_=u(3).Token,s=u(10).TokenStream,a=u(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"};n.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new s,this._reset();for(var e=new _(o.START,""),u=null,n=[],i=new s;e.type!==o.EOF;){for(t=this._get_next_token(e,u);this._is_comment(t);)i.add(t),t=this._get_next_token(e,u);i.isEmpty()||(t.comments_before=i,i=new s),t.parent=u,this._is_opening(t)?(n.push(u),u=t):u&&this._is_closing(t,u)&&((t.opened=u).closed=t,u=n.pop(),t.parent=u),(t.previous=e).next=t,this.__tokens.add(t),e=t}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(t,e){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(o.RAW,u):this._create_token(o.EOF,"")},n.prototype._is_comment=function(t){return!1},n.prototype._is_opening=function(t){return!1},n.prototype._is_closing=function(t,e){return!1},n.prototype._create_token=function(t,e){return new _(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=n,t.exports.TOKEN=o},function(t,e,u){"use strict";function n(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}n.prototype.restart=function(){this.__position=0},n.prototype.isEmpty=function(){return 0===this.__tokens_length},n.prototype.hasNext=function(){return this.__position/),erb:u.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:u.starting_with(/{%/).until_after(/%}/),django_value:u.starting_with(/{{/).until_after(/}}/),django_comment:u.starting_with(/{#/).until_after(/#}/)}}(_.prototype=new n)._create=function(){return new _(this._input,this)},_.prototype._update=function(){this.__set_templated_pattern()},_.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},_.prototype.read_options=function(t){var e=this._create();for(var u in i)e._disabled[u]=-1===t.templating.indexOf(u);return e._update(),e},_.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},_.prototype.read=function(){for(var t="",t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern),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},_.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("|")+")")},_.prototype._read_template=function(){var t,e="",u=this._input.peek();return"<"===u?(t=this._input.peek(1),this._disabled.php||this._excluded.php||"?"!==t||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==t||(e=e||this.__patterns.erb.read())):"{"===u&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read()))),e},t.exports.TemplatablePattern=_}],i.c=n,i.d=function(t,e,u){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:u})},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 u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(u,n,function(t){return e[t]}.bind(null,n));return u},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="",i(i.s=0));"function"==typeof define&&define.amd?define([],function(){return{js_beautify:t}}):"undefined"!=typeof exports?exports.js_beautify=t:"undefined"!=typeof window?window.js_beautify=t:"undefined"!=typeof global&&(global.js_beautify=t)}(); -------------------------------------------------------------------------------- /js/dec.js: -------------------------------------------------------------------------------- 1 | function autoscan(jsf){ 2 | function checklist(f){ 3 | if((f.indexOf(",")!=-1)&&(f.indexOf("=")!=-1)&&(f.indexOf("[")!=-1)&&(f.indexOf("]")!=-1)&&(f.indexOf("var ")!=-1)){return true} 4 | } 5 | if(jsf.indexOf("['sojson.v4']")!=-1){return decsojson4(jsf)} 6 | else if(jsf.indexOf("var __encode ='sojson.com")!=-1){return decsojsonp(jsf)} 7 | else if(jsf.indexOf("var encode_version = 'sojson.v5',")!=-1){return dec_sojsonv5_default(jsf)} 8 | else if(jsf.indexOf("'jsjiami.com.v6'")!=-1){return dec_jsjiamiv6_default(jsf)} 9 | else if(jsf.indexOf("'];(function(_0x")!=-1){return obdec_default(jsf)} 10 | else if(checklist(jsf.substring(0,jsf.indexOf(";")))){return dec_list(jsf)} 11 | else if(jsf.substring(0,100).replace(/ /g,"").replace(/\(/g,"").replace(/\)/g,"").replace(/\[/g,"").replace(/\]/g,"").replace(/\+/g,"").replace(/!/g,"")==""){return decjsf(jsf)} 12 | else if(jsf.substring(0,50).indexOf("eval")!=-1){return uneval(jsf)} 13 | var jstmp=aadecode(jsf) 14 | if(jstmp!="Failed!\nGiven code is not encoded as aaencode."){return jstmp} 15 | jstmp=jjdecode(jsf) 16 | if(jstmp!="Failed!\nGiven code is not encoded as jjencode."){return jstmp} 17 | return "Failed!\nAuto-Scan Failed." 18 | } 19 | function uneval(jsf) { 20 | var s=jsf.indexOf("eval"),f=jsf.lastIndexOf(")"); 21 | eval("jsf=String"+jsf.substring(s+4,f+1)) 22 | return jsf 23 | } 24 | function decsojson4(jsf) { 25 | var head="['sojson.v4']" 26 | if(jsf.indexOf(head)==-1){return "Failed!\nGiven code is not encoded as Sojson v4."} 27 | args=jsf.substring(240,jsf.length-58).split(/[a-zA-Z]{1,}/) 28 | var str=""; 29 | for(var i=0;i 1){ 218 | if (0 == data.indexOf(str_l)) { 219 | data = data.substr(str_l.length); 220 | ch_lotux = "l"; 221 | break; 222 | } else if (0 == data.indexOf(str_o)) { 223 | data = data.substr(str_o.length); 224 | ch_lotux = "o"; 225 | break; 226 | } else if (0 == data.indexOf(str_t)) { 227 | data = data.substr(str_t.length); 228 | ch_lotux = "t"; 229 | break; 230 | } else if (0 == data.indexOf(str_u)) { 231 | data = data.substr(str_u.length); 232 | ch_lotux = "u"; 233 | break; 234 | } 235 | } 236 | if (0 == data.indexOf(gvsig)) { 237 | temp = data.substr(gvsig.length); 238 | for (k = 0; k < 8; k++){ 239 | if (0 == temp.indexOf(b[k])) { 240 | if (parseInt(ch_str + k + "", 8) > 128) { 241 | b_checkR1 = 1; 242 | break; 243 | } 244 | ch_str += k + ""; 245 | data = data.substr(gvsig.length); 246 | data = data.substr(b[k].length); 247 | break; 248 | } 249 | } 250 | if (1 == b_checkR1) { 251 | if (0 == data.indexOf(str_hex)){ 252 | data = data.substr(str_hex.length); 253 | var i = 0; 254 | for (i = 0; i < b.length; i++) { 255 | if (0 == data.indexOf(b[i])) { 256 | data = data.substr((b[i]).length); 257 | ch_lotux = i.toString(16); 258 | break; 259 | } 260 | } 261 | break; 262 | } 263 | } 264 | } else { 265 | break; 266 | } 267 | } 268 | jjvalue+=String.fromCharCode(parseInt(ch_str, 8)) + ch_lotux 269 | continue; 270 | } else{ 271 | var match = 0; 272 | var n; 273 | while (true) { 274 | n = data.charCodeAt(0); 275 | if (0 == data.indexOf(str_quote)) { 276 | data = data.substr(str_quote.length); 277 | jjvalue+='"' 278 | match += 1; 279 | continue; 280 | } else if (0 == data.indexOf(str_slash)) { 281 | data = data.substr(str_slash.length); 282 | jjvalue+='\\' 283 | match += 1; 284 | continue; 285 | } else if (0 == data.indexOf(str_end)){ 286 | if (match == 0) { 287 | alert("+ no match S block: " + data); 288 | return; 289 | } 290 | data = data.substr(str_end.length); 291 | break; 292 | } else if (0 == data.indexOf(str_upper)){ 293 | if (match == 0) { 294 | alert("no match S block n>128: " + data); 295 | return; 296 | } 297 | data = data.substr(str_upper.length); 298 | var ch_str = ""; 299 | var ch_lotux = ""; 300 | for (j = 0; j < 10; j++) { 301 | if (j > 1) { 302 | if (0 == data.indexOf(str_l)) { 303 | data = data.substr(str_l.length); 304 | ch_lotux = "l"; 305 | break; 306 | } else if (0 == data.indexOf(str_o)) { 307 | data = data.substr(str_o.length); 308 | ch_lotux = "o"; 309 | break; 310 | } else if (0 == data.indexOf(str_t)) { 311 | data = data.substr(str_t.length); 312 | ch_lotux = "t"; 313 | break; 314 | } else if (0 == data.indexOf(str_u)) { 315 | data = data.substr(str_u.length); 316 | ch_lotux = "u"; 317 | break; 318 | } 319 | } 320 | if (0 == data.indexOf(gvsig)) { 321 | data = data.substr(gvsig.length); 322 | for (k = 0; k < b.length; k++){ 323 | if (0 == data.indexOf(b[k])) { 324 | data = data.substr(b[k].length); 325 | ch_str += k.toString(16) + ""; 326 | break; 327 | } 328 | } 329 | } else { 330 | break; 331 | } 332 | } 333 | jjvalue+=String.fromCharCode(parseInt(ch_str, 16)) 334 | break; 335 | } else if (0 == data.indexOf(str_lower)){ 336 | if (match == 0) { 337 | alert("no match S block n<128: " + data); 338 | return; 339 | } 340 | data = data.substr(str_lower.length); 341 | var ch_str = ""; 342 | var ch_lotux = "" 343 | var temp = ""; 344 | var b_checkR1 = 0; 345 | for (j = 0; j < 3; j++) { 346 | if (j > 1){ 347 | if (0 == data.indexOf(str_l)) { 348 | data = data.substr(str_l.length); 349 | ch_lotux = "l"; 350 | break; 351 | } else if (0 == data.indexOf(str_o)) { 352 | data = data.substr(str_o.length); 353 | ch_lotux = "o"; 354 | break; 355 | } else if (0 == data.indexOf(str_t)) { 356 | data = data.substr(str_t.length); 357 | ch_lotux = "t"; 358 | break; 359 | } else if (0 == data.indexOf(str_u)) { 360 | data = data.substr(str_u.length); 361 | ch_lotux = "u"; 362 | break; 363 | } 364 | } 365 | if (0 == data.indexOf(gvsig)) { 366 | temp = data.substr(gvsig.length); 367 | for (k = 0; k < 8; k++) { 368 | if (0 == temp.indexOf(b[k])) { 369 | if (parseInt(ch_str + k + "", 8) > 128) { 370 | b_checkR1 = 1; 371 | break; 372 | } 373 | ch_str += k + ""; 374 | data = data.substr(gvsig.length); 375 | data = data.substr(b[k].length); 376 | break; 377 | } 378 | } 379 | if (1 == b_checkR1) { 380 | if (0 == data.indexOf(str_hex)){ 381 | data = data.substr(str_hex.length); 382 | var i = 0; 383 | for (i = 0; i < b.length; i++) { 384 | if (0 == data.indexOf(b[i])) { 385 | data = data.substr((b[i]).length); 386 | ch_lotux = i.toString(16); 387 | break; 388 | } 389 | } 390 | } 391 | } 392 | } else { 393 | break; 394 | } 395 | } 396 | jjvalue+=String.fromCharCode(parseInt(ch_str, 8)) + ch_lotux 397 | break; 398 | } else if ((0x21 <= n && n <= 0x2f) || (0x3A <= n && n <= 0x40) || (0x5b <= n && n <= 0x60) || (0x7b <= n && n <= 0x7f)) { 399 | jjvalue+=data.charAt(0) 400 | data = data.substr(1); 401 | match += 1; 402 | } 403 | } 404 | continue; 405 | } 406 | } 407 | break; 408 | } 409 | if(jjvalue!=""){return jjvalue;} 410 | else{return "Failed!\nGiven code is not encoded as jjencode."} 411 | } 412 | function decjsf(js) { 413 | function patternCreator(prefix, postfix) { 414 | replacedPrefix = prefix.replace(/[\[\]\(\)\+\!]/g, '\\$&'); 415 | replacedPostfix = postfix.replace(/[\[\]\(\)\+\!]/g, '\\$&'); 416 | return replacedPrefix + '(.*)' + replacedPostfix; 417 | } 418 | function isMatching(string, pattern) { 419 | var result = string.match(new RegExp(pattern)); 420 | if (result) return result[1]; 421 | return null; 422 | } 423 | function decodejsf() { 424 | var prefix = '[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(+![]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(+![]+[![]]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[!+[]+!+[]+[+[]]]](!+[]+!+[]+!+[]+[!+[]+!+[]])+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]])()('; 425 | var postfix = ')'; 426 | var result = isMatching(code, patternCreator(prefix, postfix)); 427 | if (result) { 428 | code = eval(result); 429 | return; 430 | } 431 | prefix = '[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]('; 432 | postfix = ')()'; 433 | result = isMatching(code, patternCreator(prefix, postfix)); 434 | if (result) { 435 | code = eval(result); 436 | return; 437 | } 438 | prefix = '[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]('; 439 | postfix = ')()'; 440 | result = isMatching(code, patternCreator(prefix, postfix)); 441 | if (result) { 442 | code = eval(result); 443 | return; 444 | } 445 | code = eval(code); 446 | } 447 | try{var code = js;decodejsf();return code} 448 | catch(e){return "Failed\n"+e} 449 | } -------------------------------------------------------------------------------- /js/functions.js: -------------------------------------------------------------------------------- 1 | var timer=Math.round(new Date()); 2 | function setCookie(name,value){ 3 | document.cookie = name + "="+ escape (value); 4 | } 5 | function getCookie(name){ 6 | var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); 7 | if(arr=document.cookie.match(reg)) 8 | return unescape(arr[2]); 9 | else 10 | return null; 11 | } 12 | function stimer(){ 13 | timer=Math.round(new Date()) 14 | } 15 | function st(t){ 16 | if((t.substr(0,4).toUpperCase()!='FAIL')&&(t.replace(/ /g,'')!='')&&(t.substr(0,27)!='/*\n *Progcessed By JSDec in')){ 17 | t='/*\n *Progcessed By JSDec in '+String(((Math.round(new Date())-timer)/1000).toFixed(2))+'s\n *JSDec - JSDec.js.org\n */\n'+t 18 | } 19 | document.getElementById("encres").value=t; 20 | } 21 | switch (getCookie("lang")){ 22 | case "zh_cn": 23 | var thislang={nowlang:"中文(简体)",tools:"功能",jsdecode:"JS解码",about:"关于",updlog:"更新日志",gh:"Github",decresult:"破解结果",inputsth:"请粘贴js文件",copyres:"复制结果",downres:"下载结果",upload:"上传文件",startdec:"开始破解",clearres:"清除输入框",prores:"优化结果",help:"帮助",enc:["自动识别","美化","UglifyJS","Eval(包含packer)","AAEncode","JJEncode","JSF*ck","sojson v4","sojson高级版","JavaScript Obfuscator(普通版)","列表混淆变量名","sojson v5(默认配置)","jsjiami v6(默认配置)"],p:{beautify:"美化",uglify1:"Uglify-名称",uglify2:"Uglify-优化"},updlogs:{upd18:"重写多语言架构
修复bug
性能优化",upd17:"修复bug
支持破解Sojson v5和jsjiami v6的默认配置
优化js-obfuscator破解的破解成功率",upd16:"修复bug
UI优化
加入自动识别js混淆类型,UglifyJS专项处理",upd15:"修复bug
支持UglifyJS处理
UI优化",upd14:"UI优化
修复bug
支持破解JS-obfuscator普通版",upd13:"支持破解Sojson v4及Sojson高级版
多语言支持",upd12:"性能优化
支持上传文件",upd11:"修复bug
支持美化js,破解JSF*ck,一键美化破解结果",upd10:"第一个版本,支持eval/aaencode/jjencode的js解密"},al:{t:""/*,warning:true*/}}; 24 | break; 25 | case "en_us": 26 | var thislang={nowlang:"EN(US)",tools:"Tools",jsdecode:"JS Decode",about:"About",updlog:"Update Logs",gh:"Github",decresult:"Decode Result",inputsth:"Plz paste your js code in the textarea.",copyres:"Copy Result",downres:"Download Result",clearres:"Clear Textarea",upload:"Upload",startdec:"Decode",prores:"Progcess Result",help:"help",enc:["Auto Scan","Beautify","UglifyJS","Eval(packer)","AAEncode","JJEncode","JSF*ck","sojson v4","sojson Premium","JavaScript Obfuscator(Default)","list names","sojson v5(Default)","jsjiami v6(Default)"],p:{beautify:"Beautify",uglify1:"Uglify-names",uglify2:"Uglify-Better",uglify3:"Uglify-Properties"},updlogs:{upd18:"Update Multi-Language Support
fix bugs
Performance optimization",upd17:"fix bugs
Sojson v5(default) and jsjiami v6(default) supported
upgraded js-obfuscator decode success rate",upd16:"fix bugs
UI Update
added Auto Scan js encode type,UglifyJS detail progcess",upd15:"fix bugs
UglifyJS progcess supported
UI Update",upd14:"UI Update
fix bugs
supported JS-obfuscator default",upd13:"Sojson v4 and Sojson Premium decode supported
Multi Language supported",upd12:"optimization
Supported upload",upd11:"fix bugs
JS_Beautify and decode JSF*ck supported",upd10:"first version
eval/aaencode/jjencode decode supported"},al:{t:""/*,warning:true*/}}; 27 | break; 28 | case "zh_tw": 29 | var thislang={nowlang:"中文(繁體)",tools:"功能",jsdecode:"JS解碼",about:"關於",updlog:"更新日誌",gh:"Github",decresult:"破解結果",inputsth:"請貼上js文件",copyres:"複製結果",downres:"下載結果",upload:"上傳文件",startdec:"開始破解",clearres:"清除輸入框",prores: "優化結果",help:"使用手冊",enc:["自動識別","美化","UglifyJS","Eval(包含packer)","AAEncode","JJEncode","JSF*ck", "sojson v4","sojson高級版","JavaScript Obfuscator(普通版)","列表混淆變量名","sojson v5(默認配置)","jsjiami v6(默認配置)"],p:{beautify :"美化",uglify1:"Uglify-名稱",uglify2:"Uglify-優化"},updlogs:{upd18:"重寫多語言架構
修復bug
性能優化",upd17:"修復bug
支援破解Sojson v5和jsjiami v6的默認配置
優化js-obfuscator破解的破解成功率",upd16:"修復bug
UI優化
加入自動識別js混淆類型,UglifyJS專項處理",upd15:"修復bug
支援UglifyJS處理
UI優化",upd14:"UI優化
修復bug
支援破解JS-obfuscator普通版" ,upd13:"支援破解Sojson v4及Sojson高級版
多語言支援",upd12:"性能優化
支援上傳文件",upd11:"修復bug
支援美化js,破解JSF*ck,一鍵美化破解結果",upd10:"第一個版本,支援eval/aaencode/jjencode的js解密"},al:{t:""/*,warning:true*/}}; 30 | break; 31 | default: 32 | switch (navigator.language.toLowerCase()){ 33 | case 'zh-cn': 34 | setCookie("lang=zh_cn;") 35 | break; 36 | case 'en-uk': 37 | case 'en-us': 38 | default: 39 | setCookie("lang=en_us;") 40 | break; 41 | case 'zh-hk': 42 | case 'zh-hant': 43 | case 'zh-tw': 44 | setCookie("lang=zh_tw;") 45 | break; 46 | } 47 | location.reload(true) 48 | } 49 | var Wlangs=[ 50 | {title:"中文(简体)",onc:function(){setCookie("lang=zh_cn;");location.reload(true)}}, 51 | {title:"中文(繁體)",onc:function(){setCookie("lang=zh_tw;");location.reload(true)}}, 52 | {title:"EN(US)",onc:function(){setCookie("lang=en_us;");location.reload(true)}} 53 | ], 54 | updlist=[ 55 | {ver:'v1.8',date:'2020-07-18',tell:thislang.updlogs.upd18}, 56 | {ver:'v1.7',date:'2020-07-06',tell:thislang.updlogs.upd17}, 57 | {ver:'v1.6',date:'2020-06-24',tell:thislang.updlogs.upd16}, 58 | {ver:'v1.5',date:'2020-06-23',tell:thislang.updlogs.upd15}, 59 | {ver:'v1.4',date:'2020-06-22',tell:thislang.updlogs.upd14}, 60 | {ver:'v1.3',date:'2020-06-19',tell:thislang.updlogs.upd13}, 61 | {ver:'v1.2',date:'2020-06-18',tell:thislang.updlogs.upd12}, 62 | {ver:'v1.1',date:'2020-06-17',tell:thislang.updlogs.upd11}, 63 | {ver:'v1.0',date:'2020-06-17',tell:thislang.updlogs.upd10}, 64 | ]; -------------------------------------------------------------------------------- /res/AndaleMo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax0r31337/JSDec/b8c02eec44dd5a42ac4d824dc6704d20b621974a/res/AndaleMo.ttf -------------------------------------------------------------------------------- /res/SAO_Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax0r31337/JSDec/b8c02eec44dd5a42ac4d824dc6704d20b621974a/res/SAO_Regular.ttf -------------------------------------------------------------------------------- /upd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 22 | 23 | 24 | 33 | 37 | 38 | 39 | 40 | 41 | 46 | 47 | JSDec 48 | 49 | 52 | 53 | 58 | {{ item.title }} 59 | 60 | 61 | 62 | 63 | 64 |
65 | {{ item.ver }} - {{ item.date }} 66 |
67 |
68 | 72 | JSDec by liulihaocai 73 | 74 | © {{ fullyear }} 75 | 76 |
77 |
78 | 79 | 80 | 104 | 105 | --------------------------------------------------------------------------------