functionsimpleUpload(e,l,n){functiont(){if("object"==typeofn&&null!==n){if("boolean"==typeofn.forceIframe&&(U=n.forceIframe),"function"==typeofn.init&&(I=n.init),"function"==typeofn.start&&(L=n.start),"function"==typeofn.progress&&(q=n.progress),"function"==typeofn.success&&(W=n.success),"function"==typeofn.error&&(_=n.error),"function"==typeofn.cancel&&(M=n.cancel),"function"==typeofn.complete&&(D=n.complete),"function"==typeofn.finish&&(N=n.finish),"string"==typeofn.hashWorker&&""!=n.hashWorker&&(S=n.hashWorker),"function"==typeofn.hashComplete&&(z=n.hashComplete),"object"==typeofn.data&&null!==n.data)for(vareinn.data)F[e]=n.data[e];if("number"==typeofn.limit&&y(n.limit)&&n.limit>0&&(w=n.limit),"number"==typeofn.maxFileSize&&y(n.maxFileSize)&&n.maxFileSize>0&&(x=n.maxFileSize),"object"==typeofn.allowedExts&&null!==n.allowedExts)for(vareinn.allowedExts)j.push(n.allowedExts[e]);if("object"==typeofn.allowedTypes&&null!==n.allowedTypes)for(vareinn.allowedTypes)k.push(n.allowedTypes[e]);if("string"==typeofn.expect&&""!=n.expect){vart=n.expect.toLowerCase(),o=["auto","json","xml","html","script","text"];for(vareino)if(o[e]==t){E=t;break}}if("object"==typeofn.xhrFields&&null!==n.xhrFields)for(vareinn.xhrFields)T[e]=n.xhrFields[e]}if("object"==typeofl&&null!==l&&linstanceofjQuery){if(!(l.length>0))return!1;l=l.get(0)}if(!U&&window.File&&window.FileReader&&window.FileList&&window.Blob&&("object"==typeofn&&null!==n&&"object"==typeofn.files&&null!==n.files?b=n.files:"object"==typeofl&&null!==l&&"object"==typeofl.files&&null!==l.files&&(b=l.files)),("object"!=typeofl||null===l)&&null==b)return!1;"object"==typeofn&&null!==n&&"string"==typeofn.name&&""!=n.name?C=n.name.replace(/\[\s*\]/g,"[0]"):"object"==typeofl&&null!==l&&"string"==typeofl.name&&""!=l.name&&(C=l.name.replace(/\[\s*\]/g,"[0]"));varr=0;if(null!=b?b.length>0&&(r=b.length>1&&window.FormData&&$.ajaxSettings.xhr().upload?w>0&&b.length>w?w:b.length:1):""!=l.value&&(r=1),r>0){if("object"==typeofl&&null!==l){vari=$(l);J=$("<form>").hide().attr("enctype","multipart/form-data").attr("method","post").appendTo("body"),i.after(i.clone(!0).val("")).removeAttr("onchange").off().removeAttr("id").attr("name",C).appendTo(J)}for(vars=0;r>s;s++)!function(e){R[e]={state:0,hashWorker:null,xhr:null,iframe:null},A[e]={upload:{index:e,state:"init",file:null!=b?b[e]:{name:l.value.split(/(\\|\/)/g).pop()},cancel:function(){if(0==u(e))d(e,4);else{if(1!=u(e))return!1;d(e,4),null!=R[e].hashWorker&&(R[e].hashWorker.terminate(),R[e].hashWorker=null),null!=R[e].xhr&&(R[e].xhr.abort(),R[e].xhr=null),null!=R[e].iframe&&($("iframe[name=simpleUpload_iframe_"+R[e].iframe+"]").attr("src","javascript:false;"),simpleUpload.dequeueIframe(R[e].iframe),R[e].iframe=null),P(e)}return!0}}}}(s);varp=H(r);if(p!==!1){varf=r;if("number"==typeofp&&y(p)&&p>=0&&r>p){f=p;for(varm=f;r>m;m++)d(m,4)}for(varc=[],v=0;f>v;v++)X(v,A[v].upload.file)!==!1&&(c[c.length]=v);c.length>0?(B=c.length,simpleUpload.queueUpload(c,function(e){a(e)}),simpleUpload.uploadNext()):Z()}else{for(varminA)d(m,4);Z()}}}functiona(e){if(1==u(e)){varn=null;if(null!=b){if(void0==b[e]||null==b[e])returnvoidK(e,{name:"InternalError",message:"There was an error uploading the file"});n=b[e]}elseif(""==l.value)returnvoidK(e,{name:"InternalError",message:"There was an error uploading the file"});returnj.length>0&&!c(j,n)?voidK(e,{name:"InvalidFileExtensionError",message:"That file format is not allowed"}):k.length>0&&!v(k,n)?voidK(e,{name:"InvalidFileTypeError",message:"That file format is not allowed"}):x>0&&!h(x,n)?voidK(e,{name:"MaxFileSizeError",message:"That file is too big"}):void(null!=S&&null!=z?o(e):i(e))}}functiono(e){if(null!=b&&void0!=b[e]&&null!=b[e]&&window.Worker){varl=b[e];if(void0!=l.size&&null!=l.size&&""!=l.size&&y(l.size)&&(l.slice||l.webkitSlice||l.mozSlice))try{varn=newWorker(S);n.addEventListener("error",function(){n.terminate(),R[e].hashWorker=null,i(e)},!1),n.addEventListener("message",function(l){if(l.data.result){vart=l.data.result;n.terminate(),R[e].h
for(vari=0;r>i&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];returni}functionK(e){returne!==e}varX=e("base64-js"),Z=e("ieee754"),J=e("isarray");n.Buffer=a,n.SlowBuffer=g,n.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),n.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){returne.__proto__=a.prototype,e},a.from=function(e,t,n){returnl(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeofSymbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){returnc(null,e,t,n)},a.allocUnsafe=function(e){returnu(null,e)},a.allocUnsafeSlow=function(e){returnu(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))thrownewTypeError("Arguments must be Buffers");if(e===t)return0;for(varn=e.length,r=t.length,i=0,o=Math.min(n,r);o>i;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}returnr>n?-1:n>r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!J(e))thrownewTypeError('"list" argument must be an Array of Buffers');if(0===e.length)returna.alloc(0);varn;if(void0===t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;varr=a.allocUnsafe(t),i=0;for(n=0;n<e.length;n++){varo=e[n];if(!a.isBuffer(o))thrownewTypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}returnr},a.byteLength=v,a.prototype._isBuffer=!0,a.prototype.swap16=function(){vare=this.length;if(e%2!==0)thrownewRangeError("Buffer size must be a multiple of 16-bits");for(vart=0;e>t;t+=2)x(this,t,t+1);returnthis},a.prototype.swap32=function(){vare=this.length;if(e%4!==0)thrownewRangeError("Buffer size must be a multiple of 32-bits");for(vart=0;e>t;t+=4)x(this,t,t+3),x(this,t+1,t+2);returnthis},a.prototype.toString=function(){vare=0|this.length;return0===e?"":0===arguments.length?N(this,0,e):y.apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))thrownewTypeError("Argument must be a Buffer");returnthis===e||0===a.compare(this,e)},a.prototype.inspect=function(){vare="",t=n.INSPECT_MAX_BYTES;returnthis.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,r,i){if(!a.isBuffer(e))thrownewTypeError("Argument must be a Buffer");if(void0===t&&(t=0),void0===n&&(n=e?e.length:0),void0===r&&(r=0),void0===i&&(i=this.length),0>t||n>e.length||0>r||i>this.length)thrownewRangeError("out of range index");if(r>=i&&t>=n)return0;if(r>=i)return-1;if(t>=n)return1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return0;for(varo=i-r,l=n-t,s=Math.min(o,l),c=this.slice(r,i),u=e.slice(t,n),f=0;s>f;++f)if(c[f]!==u[f]){o=c[f],l=u[f];break}returnl>o?-1:o>l?1:0},a.prototype.indexOf=function(e,t,n){if("string"==typeoft?(n=t,t=0):t>2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeofe&&(e=a.from(e,n)),a.isBuffer(e))return0===e.length?-1:b(this,e,t,n);if("number"==typeofe)returna.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):b(this,[e],t,n);thrownewTypeError("val must be string, number or Buffer")},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.write=function(e,t,n,r){if(void0===t)r="utf8",n=this.length,t=0;elseif(void0===n&&"string"==typeoft)r=t,n=this.length,t=0;else{if(!isFinite(t))thrownewError("Buffer.write(string, encoding, offset[, length]) is no longer supported");t=0|t,isFinite(n)?(n=0|n,void0===r&&(r="utf8")):(r=n,n=void0)}vari=this.length-t;if((void0===n||n>i)&&(n=i),e.length>0&&(0>n||0>t)||t>this.length)thrownewRangeError("Attempttowriteoutsidebufferbo
varr=this.ranges[n];if(_o(t,r.from())>=0&&_o(e,r.to())<=0)returnn}return-1}},fe.prototype={from:function(){returnK(this.anchor,this.head)},to:function(){returnV(this.anchor,this.head)},empty:function(){returnthis.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};varzo,jo,Uo,qo={left:0,right:0,top:0,bottom:0},Go=null,Yo=0,$o=0,Vo=0,Ko=null;xo?Ko=-.53:go?Ko=15:So?Ko=-.7:Lo&&(Ko=-1/3);varXo=function(e){vart=e.wheelDeltaX,n=e.wheelDeltaY;returnnull==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}};e.wheelEventPixels=function(e){vart=Xo(e);returnt.x*=Ko,t.y*=Ko,t};varZo=newEi,Jo=null,Qo=e.changeEnd=function(e){returne.text?Bo(e.from.line+e.text.length-1,Ii(e.text).length+(1==e.text.length?e.from.ch:0)):e.to};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){varn=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,ta.hasOwnProperty(e)&&Et(this,ta[e])(this,t,r))},getOption:function(e){returnthis.options[e]},getDoc:function(){returnthis.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"]($n(e))},removeKeyMap:function(e){for(vart=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)returnt.splice(n,1),!0},addOverlay:Ot(function(t,n){varr=t.token?t:e.getMode(this.options,t);if(r.startState)thrownewError("Overlays may not be stateful.");this.state.overlays.push({mode:r,modeSpec:t,opaque:n&&n.opaque}),this.state.modeGen++,Dt(this)}),removeOverlay:Ot(function(e){for(vart=this.state.overlays,n=0;n<t.length;++n){varr=t[n].modeSpec;if(r==e||"string"==typeofe&&r.name==e)returnt.splice(n,1),this.state.modeGen++,voidDt(this)}}),indentLine:Ot(function(e,t,n){"string"!=typeoft&&"number"!=typeoft&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),ve(this.doc,e)&&Fn(this,e,t,n)}),indentSelection:Ot(function(e){for(vart=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){vari=t[r];if(i.empty())i.head.line>n&&(Fn(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Bn(this));else{varo=i.from(),a=i.to(),l=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(vars=l;n>s;++s)Fn(this,s,e);varc=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&ke(this.doc,r,newfe(o,c[r].to()),Wa)}}}),getTokenAt:function(e,t){returnIr(this,e,t)},getLineTokens:function(e,t){returnIr(this,Bo(e),t,!0)},getTokenTypeAt:function(e){e=me(this.doc,e);vart,n=Dr(this,Zr(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];elsefor(;;){vara=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}varl=t?t.indexOf("cm-overlay "):-1;return0>l?t:0==l?null:t.slice(0,l-1)},getModeAt:function(t){varn=this.doc.mode;returnn.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){returnthis.getHelpers(e,t)[0]},getHelpers:function(e,t){varn=[];if(!la.hasOwnProperty(t))returnn;varr=la[t],i=this.getModeAt(e);if("string"==typeofi[t])r[i[t]]&&n.push(r[i[t]]);elseif(i[t])for(varo=0;o<i[t].length;o++){vara=r[i[t][o]];a&&n.push(a)}elsei.helperType&&r[i.helperType]?n.push(r[i.helperType]):r[i.name]&&n.push(r[i.name]);for(varo=0;o<r._global.length;o++){varl=r._global[o];l.pred(i,this)&&-1==Pi(n,l.val)&&n.push(l.val)}returnn},getStateAfter:function(e,t){varn=this.doc;returne=pe(n,null==e?n.first+n.size-1:e),je(this,e+1,t)},cursorCoords:function(e,t){varn,r=this.doc.sel.primary();returnn=null==e?r.head:"object"==typeofe?me(this.doc,e):e?r.from():r.to(),dt(this,n,t||"page")},charCoords:function(e,t){returnht(this,me(this.doc,e),t||"page")},coordsChar:function(e,t){returne=ft(this,e,t||"page"),gt(this,e.left,e.top)},lineAtHeight:function(e,t){returne=ft(this,{top:e,left:0},t||"page").top,ni(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t){varn,r=!1;if("number"==typeofe){vari=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>i&&(e=i,r=!0),n=Zr(this.doc,e)}elsen=e;returnut(this,n,{top:0,left:0},t||"page").t
mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"]},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Jade",mime:"text/x-jade",mode:"jade",ext:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mime:"text/n-triples",mode:"ntriples",ext:["nt"]},{name:"Objective C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mime:"application/x-httpd-php",mode:"php",ext:["php","php3","php4","php5","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{na
for(vara=0,l=this.compoundRules.length;l>a;a++)for(vars=this.compoundRules[a],c=0,u=s.length;u>c;c++)this.compoundRuleCodes[s[c]]=[];"ONLYINCOMPOUND"inthis.flags&&(this.compoundRuleCodes[this.flags.ONLYINCOMPOUND]=[]),this.dictionaryTable=this._parseDIC(n);for(varainthis.compoundRuleCodes)0==this.compoundRuleCodes[a].length&&deletethis.compoundRuleCodes[a];for(vara=0,l=this.compoundRules.length;l>a;a++){for(varf=this.compoundRules[a],h="",c=0,u=f.length;u>c;c++){vard=f[c];h+=dinthis.compoundRuleCodes?"("+this.compoundRuleCodes[d].join("|")+")":d}this.compoundRules[a]=newRegExp(h,"i")}}returnthis};i.prototype={load:function(e){for(vartine)this[t]=e[t];returnthis},_readFile:function(t,r){if(r||(r="utf8"),"undefined"!=typeofXMLHttpRequest){vari=newXMLHttpRequest;returni.open("GET",t,!1),i.overrideMimeType&&i.overrideMimeType("text/plain; charset="+r),i.send(null),i.responseText}if("undefined"!=typeofe){varo=e("fs");try{if(o.existsSync(t)){vara=o.statSync(t),l=o.openSync(t,"r"),s=newn(a.size);returno.readSync(l,s,0,s.length,null),s.toString(r,0,s.length)}console.log("Path "+t+" does not exist.")}catch(c){returnconsole.log(c),""}}},_parseAFF:function(e){vart={};e=this._removeAffixComments(e);for(varn=e.split("\n"),r=0,i=n.length;i>r;r++){varo=n[r],a=o.split(/\s+/),l=a[0];if("PFX"==l||"SFX"==l){for(vars=a[1],c=a[2],u=parseInt(a[3],10),f=[],h=r+1,d=r+1+u;d>h;h++){varo=n[h],p=o.split(/\s+/),m=p[2],g=p[3].split("/"),v=g[0];"0"===v&&(v="");vary=this.parseRuleCodes(g[1]),x=p[4],b={};b.add=v,y.length>0&&(b.continuationClasses=y),"."!==x&&("SFX"===l?b.match=newRegExp(x+"$"):b.match=newRegExp("^"+x)),"0"!=m&&("SFX"===l?b.remove=newRegExp(m+"$"):b.remove=m),f.push(b)}t[s]={type:l,combineable:"Y"==c,entries:f},r+=u}elseif("COMPOUNDRULE"===l){for(varu=parseInt(a[1],10),h=r+1,d=r+1+u;d>h;h++){varo=n[h],p=o.split(/\s+/);this.compoundRules.push(p[1])}r+=u}elseif("REP"===l){varp=o.split(/\s+/);3===p.length&&this.replacementTable.push([p[1],p[2]])}elsethis.flags[l]=a[1]}returnt},_removeAffixComments:function(e){returne=e.replace(/#.*$/gm,""),e=e.replace(/^\s\s*/m,"").replace(/\s\s*$/m,""),e=e.replace(/\n{2,}/g,"\n"),e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},_parseDIC:function(e){functiont(e,t){einr&&"object"==typeofr[e]||(r[e]=[]),r[e].push(t)}e=this._removeDicComments(e);for(varn=e.split("\n"),r={},i=1,o=n.length;o>i;i++){vara=n[i],l=a.split("/",2),s=l[0];if(l.length>1){varc=this.parseRuleCodes(l[1]);"NEEDAFFIX"inthis.flags&&-1!=c.indexOf(this.flags.NEEDAFFIX)||t(s,c);for(varu=0,f=c.length;f>u;u++){varh=c[u],d=this.rules[h];if(d)for(varp=this._applyRule(s,d),m=0,g=p.length;g>m;m++){varv=p[m];if(t(v,[]),d.combineable)for(vary=u+1;f>y;y++){varx=c[y],b=this.rules[x];if(b&&b.combineable&&d.type!=b.type)for(varw=this._applyRule(v,b),k=0,S=w.length;S>k;k++){varC=w[k];t(C,[])}}}hinthis.compoundRuleCodes&&this.compoundRuleCodes[h].push(s)}}elset(s.trim(),[])}returnr},_removeDicComments:function(e){returne=e.replace(/^\t.*$/gm,"")},parseRuleCodes:function(e){if(!e)return[];if(!("FLAG"inthis.flags))returne.split("");if("long"===this.flags.FLAG){for(vart=[],n=0,r=e.length;r>n;n+=2)t.push(e.substr(n,2));returnt}return"num"===this.flags.FLAG?textCode.split(","):void0},_applyRule:function(e,t){for(varn=t.entries,r=[],i=0,o=n.length;o>i;i++){vara=n[i];if(!a.match||e.match(a.match)){varl=e;if(a.remove&&(l=l.replace(a.remove,"")),"SFX"===t.type?l+=a.add:l=a.add+l,r.push(l),"continuationClasses"ina)for(vars=0,c=a.continuationClasses.length;c>s;s++){varu=this.rules[a.continuationClasses[s]];u&&(r=r.concat(this._applyRule(l,u)))}}}returnr},check:function(e){vart=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(t))return!0;if(t.toUpperCase()===t){varn=t[0]+t.substring(1).toLowerCase();if(this.hasFlag(n,"KEEPCASE"))return!1;if(this.checkExact(n))return!0}varr=t.toLowerCase();if(r!==t){if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r))return!0}return!1},checkExact:function(e){vart=this.dictionaryTable[e];if("undefined"==typeoft){if("COMPOUNDMIN"inthis
s}},B.prototype.value=function(e){returnvoid0===e?this.codemirror.getValue():(this.codemirror.getDoc().setValue(e),this)},B.toggleBold=c,B.toggleItalic=u,B.toggleStrikethrough=f,B.toggleBlockquote=d,B.toggleHeadingSmaller=p,B.toggleHeadingBigger=m,B.toggleHeading1=g,B.toggleHeading2=v,B.toggleHeading3=y,B.toggleCodeBlock=h,B.toggleUnorderedList=x,B.toggleOrderedList=b,B.cleanBlock=w,B.drawLink=k,B.drawImage=S,B.drawTable=C,B.drawHorizontalRule=L,B.undo=T,B.redo=M,B.togglePreview=A,B.toggleSideBySide=N,B.toggleFullScreen=s,B.prototype.toggleBold=function(){c(this)},B.prototype.toggleItalic=function(){u(this)},B.prototype.toggleStrikethrough=function(){f(this)},B.prototype.toggleBlockquote=function(){d(this)},B.prototype.toggleHeadingSmaller=function(){p(this)},B.prototype.toggleHeadingBigger=function(){m(this)},B.prototype.toggleHeading1=function(){g(this)},B.prototype.toggleHeading2=function(){v(this)},B.prototype.toggleHeading3=function(){y(this)},B.prototype.toggleCodeBlock=function(){h(this)},B.prototype.toggleUnorderedList=function(){x(this)},B.prototype.toggleOrderedList=function(){b(this)},B.prototype.cleanBlock=function(){w(this)},B.prototype.drawLink=function(){k(this)},B.prototype.drawImage=function(){S(this)},B.prototype.drawTable=function(){C(this)},B.prototype.drawHorizontalRule=function(){L(this)},B.prototype.undo=function(){T(this)},B.prototype.redo=function(){M(this)},B.prototype.togglePreview=function(){A(this)},B.prototype.toggleSideBySide=function(){N(this)},B.prototype.toggleFullScreen=function(){s(this)},B.prototype.isPreviewActive=function(){vare=this.codemirror,t=e.getWrapperElement(),n=t.lastChild;return/editor-preview-active/.test(n.className)},B.prototype.isSideBySideActive=function(){vare=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;return/editor-preview-active-side/.test(n.className)},B.prototype.isFullscreenActive=function(){vare=this.codemirror;returne.getOption("fullScreen")},B.prototype.getState=function(){vare=this.codemirror;returnl(e)},B.prototype.toTextArea=function(){vare=this.codemirror,t=e.getWrapperElement();t.parentNode&&(this.gui.toolbar&&t.parentNode.removeChild(this.gui.toolbar),this.gui.statusbar&&t.parentNode.removeChild(this.gui.statusbar),this.gui.sideBySide&&t.parentNode.removeChild(this.gui.sideBySide)),e.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void0,this.clearAutosavedValue())},t.exports=B},{"./codemirror/tablist":19,codemirror:10,"codemirror-spell-checker":4,"codemirror/addon/display/fullscreen.js":5,"codemirror/addon/display/placeholder.js":6,"codemirror/addon/edit/continuelist.js":7,"codemirror/addon/mode/overlay.js":8,"codemirror/addon/selection/mark-selection.js":9,"codemirror/mode/gfm/gfm.js":11,"codemirror/mode/markdown/markdown.js":12,"codemirror/mode/xml/xml.js":14,marked:17}]},{},[20])(20)}),function(){functiono(n){vari=e;n&&(e[n]||(e[n]={}),i=e[n]),i.define&&i.define.packaged||(t.original=i.define,i.define=t,i.define.packaged=!0),i.require&&i.require.packaged||(r.original=i.require,i.require=r,i.require.packaged=!0)}varACE_NAMESPACE="ace",e=function(){returnthis}();if(!e&&"undefined"!=typeofwindow&&(e=window),ACE_NAMESPACE||"undefined"==typeofrequirejs){vart=function(e,n,r){return"string"!=typeofe?void(t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())):(2==arguments.length&&(r=n),void(t.modules[e]||(t.payloads[e]=r,t.modules[e]=null)))};t.modules={},t.payloads={};varn=function(e,t,n){if("string"==typeoft){vari=s(e,t);if(void0!=i)returnn&&n(),i}elseif("[object Array]"===Object.prototype.toString.call(t)){for(varo=[],u=0,a=t.length;u<a;++u){varf=s(e,t[u]);if(void0==f&&r.original)return;o.push(f)}returnn&&n.apply(null,o)||!0}},r=function(e,t){vari=n("",e,t);returnvoid0==i&&r.original?r.original.apply(this,arguments):i},i=function(e,t){if(t.indexOf("!")!==-1){varn=t.split("!");returni(e,n[0])+"!"+i(e,n[1])}if("."==t.charAt(0)){varr=e.split("/").slice(0,-1).join("/");for(t=r+"/"+t;t.index
this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){returnthis.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){returnthis.$lines[e]||""},this.getLines=function(e,t){returnthis.$lines.slice(e,t+1)},this.getAllLines=function(){returnthis.getLines(0,this.getLength())},this.getLength=function(){returnthis.$lines.length},this.getTextRange=function(e){returnthis.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){vart;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);varn=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}returnt},this.insertLines=function(e,t){returnconsole.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){returnconsole.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){returnconsole.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){returnthis.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){varn=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);returnthis.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){varn=this.getLength();void0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void0);varr=this.getLine(e);returnvoid0==t&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){vart=this.getLength();returne.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());varn=0;e<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){varn=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};returnthis.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},this.remove=function(e){vart=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);returnthis.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){varr=this.clippedPos(e,t),i=this.clippedPos(e,n);returnthis.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);varn=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=newo(i,s,u,a),l=this.$lines.slice(e,t+1);returnthis.applyDelta({start:f.start,end:f.end,action:"remove",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){if(einstanceofo||(e=o.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty())returne.start;if(t==this.getTextRange(e))returne.end;this.remove(e);varn;returnn=t?this.insert(e.start,t):e.start},this.applyDeltas=function(e){for(vart=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(vart=e.length-1;t>=0;t--)this.revertDelta(e[t])},thi
name:"showSettingsMenu",bindKey:o("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",function(t){t.init(e),e.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:o("Alt-E","Ctrl-E"),exec:function(e){i.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(e,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:o("Alt-Shift-E","Ctrl-Shift-E"),exec:function(e){i.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(e,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:o("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:o(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:o("Ctrl-L","Command-L"),exec:function(e){vart=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:o("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:o("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:o("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:o("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:o("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:o("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:o("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:o("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:o("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:o("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:o("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",function(t){t.Search(e)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:o("Ctrl-Shift-Home","Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:o("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:o("Shift-Up","Shift-Up"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:o("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:o("Ctrl-Shift-End","Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:o("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:o("Shift-Down","Shift-Down"),exec:function(
varf=e[n?o:++u];if(!1===r(i[f],f,i))break}returnt}}functionVr(n,t,r){functione(){return(this&&this!==Zn&&thisinstanceofe?i:n).apply(u?r:this,arguments)}varu=1&t,i=Hr(n);returne}functionKr(n){returnfunction(t){t=zu(t);varr=Bn.test(t)?$(t):F,e=r?r[0]:t.charAt(0);returnt=r?zr(r,1).join(""):t.slice(1),e[n]()+t}}functionGr(n){returnfunction(t){returnh($u(Tu(t).replace(In,"")),n,"")}}functionHr(n){returnfunction(){vart=arguments;switch(t.length){case0:returnnewn;case1:returnnewn(t[0]);case2:returnnewn(t[0],t[1]);case3:returnnewn(t[0],t[1],t[2]);case4:returnnewn(t[0],t[1],t[2],t[3]);case5:returnnewn(t[0],t[1],t[2],t[3],t[4]);case6:returnnewn(t[0],t[1],t[2],t[3],t[4],t[5]);case7:returnnewn(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}varr=io(n.prototype),t=n.apply(r,t);returnbu(t)?t:r}}functionJr(n,t,e){functionu(){for(varo=arguments.length,f=Hu(o),c=o,a=xe(u);c--;)f[c]=arguments[c];returnc=3>o&&f[0]!==a&&f[o-1]!==a?[]:C(f,a),o-=c.length,o<e?fe(n,t,Xr,u.placeholder,F,f,c,F,F,e-o):r(this&&this!==Zn&&thisinstanceofu?i:n,this,f)}vari=Hr(n);returnu}functionYr(n){returnfunction(t,r,e){varu=ni(t);if(!pu(t)){vari=je(r,3);t=Lu(t),r=function(n){returni(u[n],n,u)}}returnr=n(t,r,e),-1<r?u[i?t[r]:r]:F}}functionQr(n){returnge(function(t){varr=t.length,e=r,u=zn.prototype.thru;for(n&&t.reverse();e--;){vari=t[e];if("function"!=typeofi)thrownewei("Expected a function");if(u&&!o&&"wrapper"==be(i))varo=newzn([],(!0))}for(e=o?e:r;++e<r;)vari=t[e],u=be(i),f="wrapper"==u?_o(i):F,o=f&&Be(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?o[be(f[0])].apply(o,f[3]):1==i.length&&Be(i)?o[u]():o.thru(i);returnfunction(){varn=arguments,e=n[0];if(o&&1==n.length&&af(e))returno.plant(e).value();for(varu=0,n=r?t[u].apply(this,n):e;++u<r;)n=t[u].call(this,n);returnn}})}functionXr(n,t,r,e,u,i,o,f,c,a){functionl(){for(vard=arguments.length,y=Hu(d),b=d;b--;)y[b]=arguments[b];if(_){varx,j=xe(l),b=y.length;for(x=0;b--;)y[b]===j&&++x}if(e&&(y=Cr(y,e,u,_)),i&&(y=Dr(y,i,o,_)),d-=x,_&&d<a)returnj=C(y,j),fe(n,t,Xr,l.placeholder,r,y,j,f,c,a-d);if(j=h?r:this,b=p?j[n]:n,d=y.length,f){x=y.length;for(varw=Mi(f.length,x),m=Mr(y);w--;){varA=f[w];y[w]=Re(A,x)?m[A]:F}}elsev&&1<d&&y.reverse();returns&&c<d&&(y.length=c),this&&this!==Zn&&thisinstanceofl&&(b=g||Hr(b)),b.apply(j,y)}vars=128&t,h=1&t,p=2&t,_=24&t,v=512&t,g=p?F:Hr(n);returnl}functionne(n,t){returnfunction(r,e){returnCt(r,n,t(e))}}functionte(n,t){returnfunction(r,e){varu;if(r===F&&e===F)returnt;if(r!==F&&(u=r),e!==F){if(u===F)returne;"string"==typeofr||"string"==typeofe?(r=jr(r),e=jr(e)):(r=xr(r),e=xr(e)),u=n(r,e)}returnu}}functionre(n){returnge(function(t){returnt=l(t,S(je())),lr(function(e){varu=this;returnn(t,function(n){returnr(n,u,e)})})})}functionee(n,t){t=t===F?" ":jr(t);varr=t.length;return2>r?r?ar(t,n):t:(r=ar(t,Ri(n/T(t))),Bn.test(t)?zr($(r),0,n).join(""):r.slice(0,n))}functionue(n,t,e,u){functioni(){for(vart=-1,c=arguments.length,a=-1,l=u.length,s=Hu(l+c),h=this&&this!==Zn&&thisinstanceofi?f:n;++a<l;)s[a]=u[a];for(;c--;)s[a++]=arguments[++t];returnr(h,o?e:this,s)}varo=1&t,f=Hr(n);returni}functionie(n){returnfunction(t,r,e){e&&"number"!=typeofe&&ze(t,r,e)&&(r=e=F),t=Eu(t),r===F?(r=t,t=0):r=Eu(r),e=e===F?t<r?1:-1:Eu(e);varu=-1;r=Di(Ri((r-t)/(e||1)),0);for(vari=Hu(r);r--;)i[n?r:++u]=t,t+=e;returni}}functionoe(n){returnfunction(t,r){return"string"==typeoft&&"string"==typeofr||(t=Iu(t),r=Iu(r)),n(t,r)}}functionfe(n,t,r,e,u,i,o,f,c,a){varl=8&t,s=l?o:F;o=l?F:o;varh=l?i:F;returni=l?F:i,t=(t|(l?32:64))&~(l?64:32),4&t||(t&=-4),u=[n,t,u,h,s,i,o,f,c,a],r=r.apply(F,u),Be(n)&&xo(r,u),r.placeholder=e,De(r,n,t)}functionce(n){vart=Xu[n];returnfunction(n,r){if(n=Iu(n),r=null==r?0:Mi(Ou(r),292)){vare=(zu(n)+"e").split("e"),e=t(e[0]+"e"+(+e[1]+r)),e=(zu(e)+"e").split("e");return+(e[0]+"e"+(+e[1]-r))}returnt(n)}}functionae(n){returnfunction(t){varr=yo(t);return"[object Map]"==r?L(t):"[object Set]"==r?M(t):O(t,n(t))}}functionle(n,t,r,e,u,i,o,f){varc=2&t;if(!c&&"function"!=typeofn)thrownewei("Expected a function");