Files
leanote/public/js/markdown-v2.min.js
lealife 5c9e95ed60 build
2016-04-16 14:53:30 +08:00

8 lines
225 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var requirejs,require,define;!function(ba){function G(e){return"[object Function]"===K.call(e)}function H(e){return"[object Array]"===K.call(e)}function v(e,t){if(e){var i;for(i=0;i<e.length&&(!e[i]||!t(e[i],i,e));i+=1);}}function T(e,t){if(e){var i;for(i=e.length-1;i>-1&&(!e[i]||!t(e[i],i,e));i-=1);}}function t(e,t){return fa.call(e,t)}function m(e,i){return t(e,i)&&e[i]}function B(e,i){for(var n in e)if(t(e,n)&&i(e[n],n))break}function U(e,i,n,r){return i&&B(i,function(i,o){(n||!t(e,o))&&(!r||"object"!=typeof i||!i||H(i)||G(i)||i instanceof RegExp?e[o]=i:(e[o]||(e[o]={}),U(e[o],i,n,r)))}),e}function u(e,t){return function(){return t.apply(e,arguments)}}function ca(e){throw e}function da(e){if(!e)return e;var t=ba;return v(e.split("."),function(e){t=t[e]}),t}function C(e,t,i,n){return t=Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e),t.requireType=e,t.requireModules=n,i&&(t.originalError=i),t}function ga(e){function i(e,t,i){var n,r,o,a,s,u,d,c,t=t&&t.split("/"),f=D.map,p=f&&f["*"];if(e){for(e=e.split("/"),r=e.length-1,D.nodeIdCompat&&Q.test(e[r])&&(e[r]=e[r].replace(Q,"")),"."===e[0].charAt(0)&&t&&(r=t.slice(0,t.length-1),e=r.concat(e)),r=e,o=0;o<r.length;o++)a=r[o],"."===a?(r.splice(o,1),o-=1):".."===a&&0!==o&&(1!=o||".."!==r[2])&&".."!==r[o-1]&&o>0&&(r.splice(o-1,2),o-=2);e=e.join("/")}if(i&&f&&(t||p)){r=e.split("/"),o=r.length;e:for(;o>0;o-=1){if(s=r.slice(0,o).join("/"),t)for(a=t.length;a>0;a-=1)if((i=m(f,t.slice(0,a).join("/")))&&(i=m(i,s))){n=i,u=o;break e}!d&&p&&m(p,s)&&(d=m(p,s),c=o)}!n&&d&&(n=d,u=c),n&&(r.splice(0,u,n),e=r.join("/"))}return(n=m(D.pkgs,e))?n:e}function n(e){z&&v(document.getElementsByTagName("script"),function(t){return t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===k.contextName?(t.parentNode.removeChild(t),!0):void 0})}function r(e){var t=m(D.paths,e);return t&&H(t)&&1<t.length?(t.shift(),k.require.undef(e),k.makeRequire(null,{skipMap:!0})([e]),!0):void 0}function o(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function a(e,t,n,r){var a,s,u=null,d=t?t.name:null,c=e,f=!0,p="";return e||(f=!1,e="_@r"+(J+=1)),e=o(e),u=e[0],e=e[1],u&&(u=i(u,d,r),s=m(F,u)),e&&(u?p=s&&s.normalize?s.normalize(e,function(e){return i(e,d,r)}):-1===e.indexOf("!")?i(e,d,r):e:(p=i(e,d,r),e=o(p),u=e[0],p=e[1],n=!0,a=k.nameToUrl(p))),n=!u||s||n?"":"_unnormalized"+(P+=1),{prefix:u,name:p,parentMap:t,unnormalized:!!n,url:a,originalName:c,isDefine:f,id:(u?u+"!"+p:p)+n}}function s(e){var t=e.id,i=m(w,t);return i||(i=w[t]=new k.Module(e)),i}function d(e,i,n){var r=e.id,o=m(w,r);!t(F,r)||o&&!o.defineEmitComplete?(o=s(e),o.error&&"error"===i?n(o.error):o.on(i,n)):"defined"===i&&n(F[r])}function c(e,t){var i=e.requireModules,n=!1;t?t(e):(v(i,function(t){(t=m(w,t))&&(t.error=e,t.events.error&&(n=!0,t.emit("error",e)))}),n||g.onError(e))}function f(){R.length&&(ha.apply(O,[O.length,0].concat(R)),R=[])}function p(e){delete w[e],delete A[e]}function l(e,t,i){var n=e.map.id;e.error?e.emit("error",e.error):(t[n]=!0,v(e.depMaps,function(n,r){var o=n.id,a=m(w,o);a&&!e.depMatched[r]&&!i[o]&&(m(t,o)?(e.defineDep(r,F[o]),e.check()):l(a,t,i))}),i[n]=!0)}function h(){var e,t,i=(e=1e3*D.waitSeconds)&&k.startTime+e<(new Date).getTime(),o=[],a=[],s=!1,u=!0;if(!y){if(y=!0,B(A,function(e){var d=e.map,c=d.id;if(e.enabled&&(d.isDefine||a.push(e),!e.error))if(!e.inited&&i)r(c)?s=t=!0:(o.push(c),n(c));else if(!e.inited&&e.fetched&&d.isDefine&&(s=!0,!d.prefix))return u=!1}),i&&o.length)return e=C("timeout","Load timeout for modules: "+o,null,o),e.contextName=k.contextName,c(e);u&&v(a,function(e){l(e,{},{})}),i&&!t||!s||!z&&!ea||S||(S=setTimeout(function(){S=0,h()},50)),y=!1}}function x(e){t(F,e[0])||s(a(e[0],null,!0)).init(e[1],e[2])}function b(e){var e=e.currentTarget||e.srcElement,t=k.onScriptLoad;return e.detachEvent&&!Y?e.detachEvent("onreadystatechange",t):e.removeEventListener("load",t,!1),t=k.onScriptError,(!e.detachEvent||Y)&&e.removeEventListener("error",t,!1),{node:e,id:e&&e.getAttribute("data-requiremodule")}}function q(){var e;for(f();O.length;){if(e=O.shift(),null===e[0])return c(C("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));x(e)}}var y,E,k,j,S,D={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},w={},A={},L={},O=[],F={},I={},_={},J=1,P=1;return j={require:function(e){return e.require?e.require:e.require=k.makeRequire(e.map)},exports:function(e){return e.usingExports=!0,e.map.isDefine?e.exports?F[e.map.id]=e.exports:e.exports=F[e.map.id]={}:void 0},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return m(D.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},E=function(e){this.events=m(L,e.id)||{},this.map=e,this.shim=m(D.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},E.prototype={init:function(e,t,i,n){n=n||{},this.inited||(this.factory=t,i?this.on("error",i):this.events.error&&(i=u(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=i,this.inited=!0,this.ignore=n.ignore,n.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,k.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();k.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return e.prefix?this.callPlugin():this.load()}))}},load:function(){var e=this.map.url;I[e]||(I[e]=!0,k.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,i=this.map.id;t=this.depExports;var n=this.exports,r=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,1>this.depCount&&!this.defined){if(G(r)){if(this.events.error&&this.map.isDefine||g.onError!==ca)try{n=k.execCb(i,r,t,n)}catch(o){e=o}else n=k.execCb(i,r,t,n);if(this.map.isDefine&&void 0===n&&((t=this.module)?n=t.exports:this.usingExports&&(n=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",c(this.error=e)}else n=r;this.exports=n,this.map.isDefine&&!this.ignore&&(F[i]=n,g.onResourceLoad)&&g.onResourceLoad(k,this.map,this.depMaps),p(i),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var e=this.map,n=e.id,r=a(e.prefix);this.depMaps.push(r),d(r,"defined",u(this,function(r){var o,f;f=m(_,this.map.id);var l=this.map.name,h=this.map.parentMap?this.map.parentMap.name:null,v=k.makeRequire(e.parentMap,{enableBuildCallback:!0});this.map.unnormalized?(r.normalize&&(l=r.normalize(l,function(e){return i(e,h,!0)})||""),r=a(e.prefix+"!"+l,this.map.parentMap),d(r,"defined",u(this,function(e){this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),(f=m(w,r.id))&&(this.depMaps.push(r),this.events.error&&f.on("error",u(this,function(e){this.emit("error",e)})),f.enable())):f?(this.map.url=k.nameToUrl(f),this.load()):(o=u(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),o.error=u(this,function(e){this.inited=!0,this.error=e,e.requireModules=[n],B(w,function(e){0===e.map.id.indexOf(n+"_unnormalized")&&p(e.map.id)}),c(e)}),o.fromText=u(this,function(i,r){var u=e.name,d=a(u),f=M;r&&(i=r),f&&(M=!1),s(d),t(D.config,n)&&(D.config[u]=D.config[n]);try{g.exec(i)}catch(p){return c(C("fromtexteval","fromText eval for "+n+" failed: "+p,p,[n]))}f&&(M=!0),this.depMaps.push(d),k.completeLoad(u),v([u],o)}),r.load(e.name,v,o,D))})),k.enable(r,this),this.pluginMaps[r.id]=r},enable:function(){A[this.map.id]=this,this.enabling=this.enabled=!0,v(this.depMaps,u(this,function(e,i){var n,r;if("string"==typeof e){if(e=a(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[i]=e,n=m(j,e.id))return void(this.depExports[i]=n(this));this.depCount+=1,d(e,"defined",u(this,function(e){this.defineDep(i,e),this.check()})),this.errback&&d(e,"error",u(this,this.errback))}n=e.id,r=w[n],!t(j,n)&&r&&!r.enabled&&k.enable(e,this)})),B(this.pluginMaps,u(this,function(e){var t=m(w,e.id);t&&!t.enabled&&k.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var i=this.events[e];i||(i=this.events[e]=[]),i.push(t)},emit:function(e,t){v(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},k={config:D,contextName:e,registry:w,defined:F,urlFetched:I,defQueue:O,Module:E,makeModuleMap:a,nextTick:g.nextTick,onError:c,configure:function(e){e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/");var t=D.shim,i={paths:!0,bundles:!0,config:!0,map:!0};B(e,function(e,t){i[t]?(D[t]||(D[t]={}),U(D[t],e,!0,!0)):D[t]=e}),e.bundles&&B(e.bundles,function(e,t){v(e,function(e){e!==t&&(_[e]=t)})}),e.shim&&(B(e.shim,function(e,i){H(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=k.makeShimExports(e)),t[i]=e}),D.shim=t),e.packages&&v(e.packages,function(e){var t,e="string"==typeof e?{name:e}:e;t=e.name,e.location&&(D.paths[t]=e.location),D.pkgs[t]=e.name+"/"+(e.main||"main").replace(ia,"").replace(Q,"")}),B(w,function(e,t){!e.inited&&!e.map.unnormalized&&(e.map=a(t))}),(e.deps||e.callback)&&k.require(e.deps||[],e.callback)},makeShimExports:function(e){return function(){var t;return e.init&&(t=e.init.apply(ba,arguments)),t||e.exports&&da(e.exports)}},makeRequire:function(r,o){function u(i,n,d){var f,p;return o.enableBuildCallback&&n&&G(n)&&(n.__requireJsBuild=!0),"string"==typeof i?G(n)?c(C("requireargs","Invalid require call"),d):r&&t(j,i)?j[i](w[r.id]):g.get?g.get(k,i,r,u):(f=a(i,r,!1,!0),f=f.id,t(F,f)?F[f]:c(C("notloaded",'Module name "'+f+'" has not been loaded yet for context: '+e+(r?"":". Use require([])")))):(q(),k.nextTick(function(){q(),p=s(a(null,r)),p.skipMap=o.skipMap,p.init(i,n,d,{enabled:!0}),h()}),u)}return o=o||{},U(u,{isBrowser:z,toUrl:function(e){var t,n=e.lastIndexOf("."),o=e.split("/")[0];return-1!==n&&("."!==o&&".."!==o||n>1)&&(t=e.substring(n,e.length),e=e.substring(0,n)),k.nameToUrl(i(e,r&&r.id,!0),t,!0)},defined:function(e){return t(F,a(e,r,!1,!0).id)},specified:function(e){return e=a(e,r,!1,!0).id,t(F,e)||t(w,e)}}),r||(u.undef=function(e){f();var t=a(e,r,!0),i=m(w,e);n(e),delete F[e],delete I[t.url],delete L[e],T(O,function(t,i){t[0]===e&&O.splice(i,1)}),i&&(i.events.defined&&(L[e]=i.events),p(e))}),u},enable:function(e){m(w,e.id)&&s(e).enable()},completeLoad:function(e){var i,n,o=m(D.shim,e)||{},a=o.exports;for(f();O.length;){if(n=O.shift(),null===n[0]){if(n[0]=e,i)break;i=!0}else n[0]===e&&(i=!0);x(n)}if(n=m(w,e),!i&&!t(F,e)&&n&&!n.inited){if(D.enforceDefine&&(!a||!da(a)))return r(e)?void 0:c(C("nodefine","No define call for "+e,null,[e]));x([e,o.deps||[],o.exportsFn])}h()},nameToUrl:function(e,t,i){var n,r,o;if((n=m(D.pkgs,e))&&(e=n),n=m(_,e))return k.nameToUrl(n,t,i);if(g.jsExtRegExp.test(e))n=e+(t||"");else{for(n=D.paths,e=e.split("/"),r=e.length;r>0;r-=1)if(o=e.slice(0,r).join("/"),o=m(n,o)){H(o)&&(o=o[0]),e.splice(0,r,o);break}n=e.join("/"),n+=t||(/^data\:|\?/.test(n)||i?"":".js"),n=("/"===n.charAt(0)||n.match(/^[\w\+\.\-]+:/)?"":D.baseUrl)+n}return D.urlArgs?n+((-1===n.indexOf("?")?"?":"&")+D.urlArgs):n},load:function(e,t){g.load(k,e,t)},execCb:function(e,t,i,n){return t.apply(n,i)},onScriptLoad:function(e){("load"===e.type||ja.test((e.currentTarget||e.srcElement).readyState))&&(N=null,e=b(e),k.completeLoad(e.id))},onScriptError:function(e){var t=b(e);return r(t.id)?void 0:c(C("scripterror","Script error for: "+t.id,e,[t.id]))}},k.require=k.makeRequire(),k}var g,x,y,D,I,E,N,J,s,O,ka=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,la=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,Q=/\.js$/,ia=/^\.\//;x=Object.prototype;var K=x.toString,fa=x.hasOwnProperty,ha=Array.prototype.splice,z=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),ea=!z&&"undefined"!=typeof importScripts,ja=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,Y="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),F={},q={},R=[],M=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(G(requirejs))return;q=requirejs,requirejs=void 0}"undefined"!=typeof require&&!G(require)&&(q=require,require=void 0),g=requirejs=function(e,t,i,n){var r,o="_";return!H(e)&&"string"!=typeof e&&(r=e,H(t)?(e=t,t=i,i=n):e=[]),r&&r.context&&(o=r.context),(n=m(F,o))||(n=F[o]=g.s.newContext(o)),r&&n.configure(r),n.require(e,t,i)},g.config=function(e){return g(e)},g.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=g),g.version="2.1.14",g.jsExtRegExp=/^\/|:|\?|\.js$/,g.isBrowser=z,x=g.s={contexts:F,newContext:ga},g({}),v(["toUrl","undef","defined","specified"],function(e){g[e]=function(){var t=F._;return t.require[e].apply(t,arguments)}}),z&&(y=x.head=document.getElementsByTagName("head")[0],D=document.getElementsByTagName("base")[0])&&(y=x.head=D.parentNode),g.onError=ca,g.createNode=function(e){var t=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return t.type=e.scriptType||"text/javascript",t.charset="utf-8",t.async=!0,t},g.load=function(e,t,i){var n=e&&e.config||{};if(z)return n=g.createNode(n,t,i),n.setAttribute("data-requirecontext",e.contextName),n.setAttribute("data-requiremodule",t),!n.attachEvent||n.attachEvent.toString&&0>n.attachEvent.toString().indexOf("[native code")||Y?(n.addEventListener("load",e.onScriptLoad,!1),n.addEventListener("error",e.onScriptError,!1)):(M=!0,n.attachEvent("onreadystatechange",e.onScriptLoad)),n.src=i,J=n,D?y.insertBefore(n,D):y.appendChild(n),J=null,n;if(ea)try{importScripts(i),e.completeLoad(t)}catch(r){e.onError(C("importscripts","importScripts failed for "+t+" at "+i,r,[t]))}},z&&!q.skipDataMain&&T(document.getElementsByTagName("script"),function(e){return y||(y=e.parentNode),(I=e.getAttribute("data-main"))?(s=I,q.baseUrl||(E=s.split("/"),s=E.pop(),O=E.length?E.join("/")+"/":"./",q.baseUrl=O),s=s.replace(Q,""),g.jsExtRegExp.test(s)&&(s=I),q.deps=q.deps?q.deps.concat(s):[s],!0):void 0}),define=function(e,t,i){var n,r;"string"!=typeof e&&(i=t,t=e,e=null),H(t)||(i=t,t=null),!t&&G(i)&&(t=[],i.length&&(i.toString().replace(ka,"").replace(la,function(e,i){t.push(i)}),t=(1===i.length?["require"]:["require","exports","module"]).concat(t))),M&&((n=J)||(N&&"interactive"===N.readyState||T(document.getElementsByTagName("script"),function(e){return"interactive"===e.readyState?N=e:void 0}),n=N),n&&(e||(e=n.getAttribute("data-requiremodule")),r=F[n.getAttribute("data-requirecontext")])),(r?r.defQueue:R).push([e,t,i])},define.amd={jQuery:!0},g.exec=function(b){return eval(b)},g(q)}}(this);
(function(){var e=this,n=e._,t={},r=Array.prototype,a=Object.prototype,i=Function.prototype,o=r.push,s=r.slice,l=r.concat,c=a.toString,u=a.hasOwnProperty,d=r.forEach,p=r.map,f=r.reduce,m=r.reduceRight,g=r.filter,h=r.every,v=r.some,b=r.indexOf,w=r.lastIndexOf,x=Array.isArray,y=Object.keys,C=i.bind,k=function(e){return e instanceof k?e:this instanceof k?void(this._wrapped=e):new k(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=k),exports._=k):e._=k,k.VERSION="1.5.1";var S=k.each=k.forEach=function(e,n,r){if(null!=e)if(d&&e.forEach===d)e.forEach(n,r);else if(e.length===+e.length){for(var a=0,i=e.length;i>a;a++)if(n.call(r,e[a],a,e)===t)return}else for(var o in e)if(k.has(e,o)&&n.call(r,e[o],o,e)===t)return};k.map=k.collect=function(e,n,t){var r=[];return null==e?r:p&&e.map===p?e.map(n,t):(S(e,function(e,a,i){r.push(n.call(t,e,a,i))}),r)};var _="Reduce of empty array with no initial value";k.reduce=k.foldl=k.inject=function(e,n,t,r){var a=arguments.length>2;if(null==e&&(e=[]),f&&e.reduce===f)return r&&(n=k.bind(n,r)),a?e.reduce(n,t):e.reduce(n);if(S(e,function(e,i,o){a?t=n.call(r,t,e,i,o):(t=e,a=!0)}),!a)throw new TypeError(_);return t},k.reduceRight=k.foldr=function(e,n,t,r){var a=arguments.length>2;if(null==e&&(e=[]),m&&e.reduceRight===m)return r&&(n=k.bind(n,r)),a?e.reduceRight(n,t):e.reduceRight(n);var i=e.length;if(i!==+i){var o=k.keys(e);i=o.length}if(S(e,function(s,l,c){l=o?o[--i]:--i,a?t=n.call(r,t,e[l],l,c):(t=e[l],a=!0)}),!a)throw new TypeError(_);return t},k.find=k.detect=function(e,n,t){var r;return E(e,function(e,a,i){return n.call(t,e,a,i)?(r=e,!0):void 0}),r},k.filter=k.select=function(e,n,t){var r=[];return null==e?r:g&&e.filter===g?e.filter(n,t):(S(e,function(e,a,i){n.call(t,e,a,i)&&r.push(e)}),r)},k.reject=function(e,n,t){return k.filter(e,function(e,r,a){return!n.call(t,e,r,a)},t)},k.every=k.all=function(e,n,r){n||(n=k.identity);var a=!0;return null==e?a:h&&e.every===h?e.every(n,r):(S(e,function(e,i,o){return(a=a&&n.call(r,e,i,o))?void 0:t}),!!a)};var E=k.some=k.any=function(e,n,r){n||(n=k.identity);var a=!1;return null==e?a:v&&e.some===v?e.some(n,r):(S(e,function(e,i,o){return a||(a=n.call(r,e,i,o))?t:void 0}),!!a)};k.contains=k.include=function(e,n){return null==e?!1:b&&e.indexOf===b?-1!=e.indexOf(n):E(e,function(e){return e===n})},k.invoke=function(e,n){var t=s.call(arguments,2),r=k.isFunction(n);return k.map(e,function(e){return(r?n:e[n]).apply(e,t)})},k.pluck=function(e,n){return k.map(e,function(e){return e[n]})},k.where=function(e,n,t){return k.isEmpty(n)?t?void 0:[]:k[t?"find":"filter"](e,function(e){for(var t in n)if(n[t]!==e[t])return!1;return!0})},k.findWhere=function(e,n){return k.where(e,n,!0)},k.max=function(e,n,t){if(!n&&k.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);if(!n&&k.isEmpty(e))return-1/0;var r={computed:-1/0,value:-1/0};return S(e,function(e,a,i){var o=n?n.call(t,e,a,i):e;o>r.computed&&(r={value:e,computed:o})}),r.value},k.min=function(e,n,t){if(!n&&k.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.min.apply(Math,e);if(!n&&k.isEmpty(e))return 1/0;var r={computed:1/0,value:1/0};return S(e,function(e,a,i){var o=n?n.call(t,e,a,i):e;o<r.computed&&(r={value:e,computed:o})}),r.value},k.shuffle=function(e){var n,t=0,r=[];return S(e,function(e){n=k.random(t++),r[t-1]=r[n],r[n]=e}),r};var T=function(e){return k.isFunction(e)?e:function(n){return n[e]}};k.sortBy=function(e,n,t){var r=T(n);return k.pluck(k.map(e,function(e,n,a){return{value:e,index:n,criteria:r.call(t,e,n,a)}}).sort(function(e,n){var t=e.criteria,r=n.criteria;if(t!==r){if(t>r||void 0===t)return 1;if(r>t||void 0===r)return-1}return e.index<n.index?-1:1}),"value")};var I=function(e,n,t,r){var a={},i=T(null==n?k.identity:n);return S(e,function(n,o){var s=i.call(t,n,o,e);r(a,s,n)}),a};k.groupBy=function(e,n,t){return I(e,n,t,function(e,n,t){(k.has(e,n)?e[n]:e[n]=[]).push(t)})},k.countBy=function(e,n,t){return I(e,n,t,function(e,n){k.has(e,n)||(e[n]=0),e[n]++})},k.sortedIndex=function(e,n,t,r){t=null==t?k.identity:T(t);for(var a=t.call(r,n),i=0,o=e.length;o>i;){var s=i+o>>>1;t.call(r,e[s])<a?i=s+1:o=s}return i},k.toArray=function(e){return e?k.isArray(e)?s.call(e):e.length===+e.length?k.map(e,k.identity):k.values(e):[]},k.size=function(e){return null==e?0:e.length===+e.length?e.length:k.keys(e).length},k.first=k.head=k.take=function(e,n,t){return null==e?void 0:null==n||t?e[0]:s.call(e,0,n)},k.initial=function(e,n,t){return s.call(e,0,e.length-(null==n||t?1:n))},k.last=function(e,n,t){return null==e?void 0:null==n||t?e[e.length-1]:s.call(e,Math.max(e.length-n,0))},k.rest=k.tail=k.drop=function(e,n,t){return s.call(e,null==n||t?1:n)},k.compact=function(e){return k.filter(e,k.identity)};var M=function(e,n,t){return n&&k.every(e,k.isArray)?l.apply(t,e):(S(e,function(e){k.isArray(e)||k.isArguments(e)?n?o.apply(t,e):M(e,n,t):t.push(e)}),t)};k.flatten=function(e,n){return M(e,n,[])},k.without=function(e){return k.difference(e,s.call(arguments,1))},k.uniq=k.unique=function(e,n,t,r){k.isFunction(n)&&(r=t,t=n,n=!1);var a=t?k.map(e,t,r):e,i=[],o=[];return S(a,function(t,r){(n?r&&o[o.length-1]===t:k.contains(o,t))||(o.push(t),i.push(e[r]))}),i},k.union=function(){return k.uniq(k.flatten(arguments,!0))},k.intersection=function(e){var n=s.call(arguments,1);return k.filter(k.uniq(e),function(e){return k.every(n,function(n){return k.indexOf(n,e)>=0})})},k.difference=function(e){var n=l.apply(r,s.call(arguments,1));return k.filter(e,function(e){return!k.contains(n,e)})},k.zip=function(){for(var e=k.max(k.pluck(arguments,"length").concat(0)),n=new Array(e),t=0;e>t;t++)n[t]=k.pluck(arguments,""+t);return n},k.object=function(e,n){if(null==e)return{};for(var t={},r=0,a=e.length;a>r;r++)n?t[e[r]]=n[r]:t[e[r][0]]=e[r][1];return t},k.indexOf=function(e,n,t){if(null==e)return-1;var r=0,a=e.length;if(t){if("number"!=typeof t)return r=k.sortedIndex(e,n),e[r]===n?r:-1;r=0>t?Math.max(0,a+t):t}if(b&&e.indexOf===b)return e.indexOf(n,t);for(;a>r;r++)if(e[r]===n)return r;return-1},k.lastIndexOf=function(e,n,t){if(null==e)return-1;var r=null!=t;if(w&&e.lastIndexOf===w)return r?e.lastIndexOf(n,t):e.lastIndexOf(n);for(var a=r?t:e.length;a--;)if(e[a]===n)return a;return-1},k.range=function(e,n,t){arguments.length<=1&&(n=e||0,e=0),t=arguments[2]||1;for(var r=Math.max(Math.ceil((n-e)/t),0),a=0,i=new Array(r);r>a;)i[a++]=e,e+=t;return i};var $=function(){};k.bind=function(e,n){var t,r;if(C&&e.bind===C)return C.apply(e,s.call(arguments,1));if(!k.isFunction(e))throw new TypeError;return t=s.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(n,t.concat(s.call(arguments)));$.prototype=e.prototype;var a=new $;$.prototype=null;var i=e.apply(a,t.concat(s.call(arguments)));return Object(i)===i?i:a}},k.partial=function(e){var n=s.call(arguments,1);return function(){return e.apply(this,n.concat(s.call(arguments)))}},k.bindAll=function(e){var n=s.call(arguments,1);if(0===n.length)throw new Error("bindAll must be passed function names");return S(n,function(n){e[n]=k.bind(e[n],e)}),e},k.memoize=function(e,n){var t={};return n||(n=k.identity),function(){var r=n.apply(this,arguments);return k.has(t,r)?t[r]:t[r]=e.apply(this,arguments)}},k.delay=function(e,n){var t=s.call(arguments,2);return setTimeout(function(){return e.apply(null,t)},n)},k.defer=function(e){return k.delay.apply(k,[e,1].concat(s.call(arguments,1)))},k.throttle=function(e,n,t){var r,a,i,o=null,s=0;t||(t={});var l=function(){s=t.leading===!1?0:new Date,o=null,i=e.apply(r,a)};return function(){var c=new Date;s||t.leading!==!1||(s=c);var u=n-(c-s);return r=this,a=arguments,0>=u?(clearTimeout(o),o=null,s=c,i=e.apply(r,a)):o||t.trailing===!1||(o=setTimeout(l,u)),i}},k.debounce=function(e,n,t){var r,a=null;return function(){var i=this,o=arguments,s=function(){a=null,t||(r=e.apply(i,o))},l=t&&!a;return clearTimeout(a),a=setTimeout(s,n),l&&(r=e.apply(i,o)),r}},k.once=function(e){var n,t=!1;return function(){return t?n:(t=!0,n=e.apply(this,arguments),e=null,n)}},k.wrap=function(e,n){return function(){var t=[e];return o.apply(t,arguments),n.apply(this,t)}},k.compose=function(){var e=arguments;return function(){for(var n=arguments,t=e.length-1;t>=0;t--)n=[e[t].apply(this,n)];return n[0]}},k.after=function(e,n){return function(){return--e<1?n.apply(this,arguments):void 0}},k.keys=y||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var n=[];for(var t in e)k.has(e,t)&&n.push(t);return n},k.values=function(e){var n=[];for(var t in e)k.has(e,t)&&n.push(e[t]);return n},k.pairs=function(e){var n=[];for(var t in e)k.has(e,t)&&n.push([t,e[t]]);return n},k.invert=function(e){var n={};for(var t in e)k.has(e,t)&&(n[e[t]]=t);return n},k.functions=k.methods=function(e){var n=[];for(var t in e)k.isFunction(e[t])&&n.push(t);return n.sort()},k.extend=function(e){return S(s.call(arguments,1),function(n){if(n)for(var t in n)e[t]=n[t]}),e},k.pick=function(e){var n={},t=l.apply(r,s.call(arguments,1));return S(t,function(t){t in e&&(n[t]=e[t])}),n},k.omit=function(e){var n={},t=l.apply(r,s.call(arguments,1));for(var a in e)k.contains(t,a)||(n[a]=e[a]);return n},k.defaults=function(e){return S(s.call(arguments,1),function(n){if(n)for(var t in n)void 0===e[t]&&(e[t]=n[t])}),e},k.clone=function(e){return k.isObject(e)?k.isArray(e)?e.slice():k.extend({},e):e},k.tap=function(e,n){return n(e),e};var L=function(e,n,t,r){if(e===n)return 0!==e||1/e==1/n;if(null==e||null==n)return e===n;e instanceof k&&(e=e._wrapped),n instanceof k&&(n=n._wrapped);var a=c.call(e);if(a!=c.call(n))return!1;switch(a){case"[object String]":return e==String(n);case"[object Number]":return e!=+e?n!=+n:0==e?1/e==1/n:e==+n;case"[object Date]":case"[object Boolean]":return+e==+n;case"[object RegExp]":return e.source==n.source&&e.global==n.global&&e.multiline==n.multiline&&e.ignoreCase==n.ignoreCase}if("object"!=typeof e||"object"!=typeof n)return!1;for(var i=t.length;i--;)if(t[i]==e)return r[i]==n;var o=e.constructor,s=n.constructor;if(o!==s&&!(k.isFunction(o)&&o instanceof o&&k.isFunction(s)&&s instanceof s))return!1;t.push(e),r.push(n);var l=0,u=!0;if("[object Array]"==a){if(l=e.length,u=l==n.length)for(;l--&&(u=L(e[l],n[l],t,r)););}else{for(var d in e)if(k.has(e,d)&&(l++,!(u=k.has(n,d)&&L(e[d],n[d],t,r))))break;if(u){for(d in n)if(k.has(n,d)&&!l--)break;u=!l}}return t.pop(),r.pop(),u};k.isEqual=function(e,n){return L(e,n,[],[])},k.isEmpty=function(e){if(null==e)return!0;if(k.isArray(e)||k.isString(e))return 0===e.length;for(var n in e)if(k.has(e,n))return!1;return!0},k.isElement=function(e){return!(!e||1!==e.nodeType)},k.isArray=x||function(e){return"[object Array]"==c.call(e)},k.isObject=function(e){return e===Object(e)},S(["Arguments","Function","String","Number","Date","RegExp"],function(e){k["is"+e]=function(n){return c.call(n)=="[object "+e+"]"}}),k.isArguments(arguments)||(k.isArguments=function(e){return!(!e||!k.has(e,"callee"))}),"function"!=typeof/./&&(k.isFunction=function(e){return"function"==typeof e}),k.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},k.isNaN=function(e){return k.isNumber(e)&&e!=+e},k.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"==c.call(e)},k.isNull=function(e){return null===e},k.isUndefined=function(e){return void 0===e},k.has=function(e,n){return u.call(e,n)},k.noConflict=function(){return e._=n,this},k.identity=function(e){return e},k.times=function(e,n,t){for(var r=Array(Math.max(0,e)),a=0;e>a;a++)r[a]=n.call(t,a);return r},k.random=function(e,n){return null==n&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))};var A={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"}};A.unescape=k.invert(A.escape);var R={escape:new RegExp("["+k.keys(A.escape).join("")+"]","g"),unescape:new RegExp("("+k.keys(A.unescape).join("|")+")","g")};k.each(["escape","unescape"],function(e){k[e]=function(n){return null==n?"":(""+n).replace(R[e],function(n){return A[e][n]})}}),k.result=function(e,n){if(null==e)return void 0;var t=e[n];return k.isFunction(t)?t.call(e):t},k.mixin=function(e){S(k.functions(e),function(n){var t=k[n]=e[n];k.prototype[n]=function(){var e=[this._wrapped];return o.apply(e,arguments),O.call(this,t.apply(k,e))}})};var N=0;k.uniqueId=function(e){var n=++N+"";return e?e+n:n},k.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var P=/(.)^/,B={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\t|\u2028|\u2029/g;k.template=function(e,n,t){var r;t=k.defaults({},t,k.templateSettings);var a=new RegExp([(t.escape||P).source,(t.interpolate||P).source,(t.evaluate||P).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(a,function(n,t,r,a,s){return o+=e.slice(i,s).replace(D,function(e){return"\\"+B[e]}),t&&(o+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'"),r&&(o+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),a&&(o+="';\n"+a+"\n__p+='"),i=s+n.length,n}),o+="';\n",t.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{r=new Function(t.variable||"obj","_",o)}catch(s){throw s.source=o,s}if(n)return r(n,k);var l=function(e){return r.call(this,e,k)};return l.source="function("+(t.variable||"obj")+"){\n"+o+"}",l},k.chain=function(e){return k(e).chain()};var O=function(e){return this._chain?k(e).chain():e};k.mixin(k),S(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=r[e];k.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!=e&&"splice"!=e||0!==t.length||delete t[0],O.call(this,t)}}),S(["concat","join","slice"],function(e){var n=r[e];k.prototype[e]=function(){return O.call(this,n.apply(this._wrapped,arguments))}}),k.extend(k.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}).call(this),define("underscore",function(e){return function(){var n;return n||e._}}(this)),function(e,n){"object"==typeof exports?module.exports=n():"function"==typeof define&&define.amd?define("crel",n):e.crel=n()}(this,function(){function e(){var t,r=window.document,a=arguments,i=r.createElement(a[0]),o=a[1],s=2,l=a.length,c=e.attrMap;if(1===l)return i;if(("object"!=typeof o||n(o))&&(--s,o=null),l-s===1&&"string"==typeof a[s]&&void 0!==i.textContent)i.textContent=a[s];else for(;l>s;++s)t=a[s],null!=t&&(n(t)||(t=r.createTextNode(t)),i.appendChild(t));for(var u in o)if(c[u]){var d=e.attrMap[u];"function"==typeof d?d(i,o[u]):i.setAttribute(d,o[u])}else i.setAttribute(u,o[u]);return i}var n="object"==typeof Node?function(e){return e instanceof Node}:function(e){return e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName};return e.attrMap={},e.isNode=n,e}),define("constants",[],function(){var e={};return e.EDITOR_DEFAULT_PADDING=5,e.fontSize=14,e.fontFamily="Menlo, 'Ubuntu Mono', Consolas, 'Courier New', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft Yahei', sans-serif;",e}),function(e){var n;"function"==typeof define?define("xregexp",e):"object"==typeof exports?(n=e(),("object"==typeof module?module.exports=n:exports).XRegExp=n):XRegExp=e()}(function(){var e=function(e){function n(e,n,t){var r;if(t)if(e.__proto__)e.__proto__=h.prototype;else for(r in h.prototype)e[r]=h.prototype[r];return e[b]={captureNames:n},e}function t(e){return x.replace.call(e,/([\s\S])(?=[\s\S]*\1)/g,"")}function r(e,r){if(!h.isRegExp(e))throw new TypeError("Type RegExp expected");var a=x.exec.call(/\/([a-z]*)$/i,String(e))[1];return r=r||{},r.add&&(a=t(a+r.add)),r.remove&&(a=x.replace.call(a,new RegExp("["+r.remove+"]+","g"),"")),e=n(new RegExp(e.source,a),i(e)?e[b].captureNames.slice(0):null,r.addProto)}function a(){return{captureNames:null}}function i(e){return!(!e[b]||!e[b].captureNames)}function o(e,n){if(Array.prototype.indexOf)return e.indexOf(n);var t,r=e.length;for(t=0;r>t;++t)if(e[t]===n)return t;return-1}function s(e,n){return A.call(e)==="[object "+n+"]"}function l(e,n,t){return x.test.call(t.indexOf("x")>-1?/^(?:\s+|#.*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,e.slice(n))}function c(e,n){var r;if(t(n)!==n)throw new SyntaxError("Invalid duplicate regex flag "+n);for(e=x.replace.call(e,/^\(\?([\w$]+)\)/,function(e,r){if(x.test.call(/[gy]/,r))throw new SyntaxError("Cannot use flag g or y in mode modifier "+e);return n=t(n+r),""}),r=0;r<n.length;++r)if(!L[n.charAt(r)])throw new SyntaxError("Unknown regex flag "+n.charAt(r));return{pattern:e,flags:n}}function u(e){return e=e||{},s(e,"String")&&(e=h.forEach(e,/[^\s,]+/,function(e){this[e]=!0},{})),e}function d(e){if(!/^[\w$]$/.test(e))throw new Error("Flag must be a single character A-Za-z0-9_$");L[e]=!0}function p(e,n,t,r,a){for(var i,o,s=S.length,l=null;s--;)if(o=S[s],(o.scope===r||"all"===o.scope)&&(!o.flag||n.indexOf(o.flag)>-1)&&(i=h.exec(e,o.regex,t,"sticky"))){l={matchLength:i[0].length,output:o.handler.call(a,i,r,n),reparse:o.reparse};break}return l}function f(e){h.cache.flush("patterns"),w.astral=e}function m(e){RegExp.prototype.exec=(e?y:x).exec,RegExp.prototype.test=(e?y:x).test,String.prototype.match=(e?y:x).match,String.prototype.replace=(e?y:x).replace,String.prototype.split=(e?y:x).split,w.natives=e}function g(e){if(null==e)throw new TypeError("Cannot convert null or undefined to object");return e}var h,v,b="xregexp",w={astral:!1,natives:!1},x={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},y={},C={},k={},S=[],_="default",E="class",T={"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|\(\?[:=!]|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,"class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|[\s\S]/},I=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,M=x.exec.call(/()??/,"")[1]===e,$=RegExp.prototype.sticky!==e,L={g:!0,i:!0,m:!0,y:$},A={}.toString;return h=function(t,a){var i,o,s,l={hasNamedCapture:!1,captureNames:[]},u=_,d="",f=0;if(h.isRegExp(t)){if(a!==e)throw new TypeError("Cannot supply flags when copying a RegExp");return r(t,{addProto:!0})}if(t=t===e?"":String(t),a=a===e?"":String(a),s=t+"***"+a,!k[s]){for(i=c(t,a),t=i.pattern,a=i.flags;f<t.length;){do i=p(t,a,f,u,l),i&&i.reparse&&(t=t.slice(0,f)+i.output+t.slice(f+i.matchLength));while(i&&i.reparse);i?(d+=i.output,f+=i.matchLength||1):(o=h.exec(t,T[u],f,"sticky")[0],d+=o,f+=o.length,"["===o&&u===_?u=E:"]"===o&&u===E&&(u=_))}k[s]={pattern:x.replace.call(d,/\(\?:\)(?=\(\?:\))|^\(\?:\)|\(\?:\)$/g,""),flags:x.replace.call(a,/[^gimy]+/g,""),captures:l.hasNamedCapture?l.captureNames:null}}return s=k[s],n(new RegExp(s.pattern,s.flags),s.captures,!0)},h.prototype=new RegExp,h.version="3.0.0-pre",h.addToken=function(e,n,t){t=t||{};var a,i=t.optionalFlags;if(t.flag&&d(t.flag),i)for(i=x.split.call(i,""),a=0;a<i.length;++a)d(i[a]);S.push({regex:r(e,{add:"g"+($?"y":"")}),handler:n,scope:t.scope||_,flag:t.flag,reparse:t.reparse}),h.cache.flush("patterns")},h.cache=function(e,n){var t=e+"***"+(n||"");return C[t]||(C[t]=h(e,n))},h.cache.flush=function(e){"patterns"===e?k={}:C={}},h.escape=function(e){return x.replace.call(g(e),/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},h.exec=function(e,n,t,i){var o,s,l="g";return $&&(i||n.sticky&&i!==!1)&&(l+="y"),n[b]=n[b]||a(),s=n[b][l]||(n[b][l]=r(n,{add:l,remove:i===!1?"y":""})),s.lastIndex=t=t||0,o=y.exec.call(s,e),i&&o&&o.index!==t&&(o=null),n.global&&(n.lastIndex=o?s.lastIndex:0),o},h.forEach=function(e,n,t,r){for(var a,i=0,o=-1;a=h.exec(e,n,i);)t.call(r,a,++o,e,n),i=a.index+(a[0].length||1);return r},h.globalize=function(e){return r(e,{add:"g",addProto:!0})},h.install=function(e){e=u(e),!w.astral&&e.astral&&f(!0),!w.natives&&e.natives&&m(!0)},h.isInstalled=function(e){return!!w[e]},h.isRegExp=function(e){return"[object RegExp]"===A.call(e)},h.match=function(e,n,t){var i,o,s=n.global&&"one"!==t||"all"===t,l=(s?"g":"")+(n.sticky?"y":"");return n[b]=n[b]||a(),o=n[b][l||"noGY"]||(n[b][l||"noGY"]=r(n,{add:l,remove:"one"===t?"g":""})),i=x.match.call(g(e),o),n.global&&(n.lastIndex="one"===t&&i?i.index+i[0].length:0),s?i||[]:i&&i[0]},h.matchChain=function(e,n){return function t(e,r){var a,i=n[r].regex?n[r]:{regex:n[r]},o=[],s=function(e){if(i.backref){if(!(e.hasOwnProperty(i.backref)||+i.backref<e.length))throw new ReferenceError("Backreference to undefined group: "+i.backref);o.push(e[i.backref]||"")}else o.push(e[0])};for(a=0;a<e.length;++a)h.forEach(e[a],i.regex,s);return r!==n.length-1&&o.length?t(o,r+1):o}([e],0)},h.replace=function(e,n,t,i){var o,s=h.isRegExp(n),l=n.global&&"one"!==i||"all"===i,c=(l?"g":"")+(n.sticky?"y":""),u=n;return s?(n[b]=n[b]||a(),u=n[b][c||"noGY"]||(n[b][c||"noGY"]=r(n,{add:c,remove:"one"===i?"g":""}))):l&&(u=new RegExp(h.escape(String(n)),"g")),o=y.replace.call(g(e),u,t),s&&n.global&&(n.lastIndex=0),o},h.replaceEach=function(e,n){var t,r;for(t=0;t<n.length;++t)r=n[t],e=h.replace(e,r[0],r[1],r[2]);return e},h.split=function(e,n,t){return y.split.call(g(e),n,t)},h.test=function(e,n,t,r){return!!h.exec(e,n,t,r)},h.uninstall=function(e){e=u(e),w.astral&&e.astral&&f(!1),w.natives&&e.natives&&m(!1)},h.union=function(e,n){var t,r,a,i,o=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*]/g,l=[],c=0,u=function(e,n,a){var i=r[c-t];if(n){if(++c,i)return"(?<"+i+">"}else if(a)return"\\"+(+a+t);return e};if(!s(e,"Array")||!e.length)throw new TypeError("Must provide a nonempty array of patterns to merge");for(i=0;i<e.length;++i)a=e[i],h.isRegExp(a)?(t=c,r=a[b]&&a[b].captureNames||[],l.push(x.replace.call(h(a.source).source,o,u))):l.push(h.escape(a));return h(l.join("|"),n)},y.exec=function(n){var t,a,i,s=this.lastIndex,l=x.exec.apply(this,arguments);if(l){if(!M&&l.length>1&&o(l,"")>-1&&(a=r(this,{remove:"g"}),x.replace.call(String(n).slice(l.index),a,function(){var n,t=arguments.length;for(n=1;t-2>n;++n)arguments[n]===e&&(l[n]=e)})),this[b]&&this[b].captureNames)for(i=1;i<l.length;++i)t=this[b].captureNames[i-1],t&&(l[t]=l[i]);this.global&&!l[0].length&&this.lastIndex>l.index&&(this.lastIndex=l.index)}return this.global||(this.lastIndex=s),l},y.test=function(e){return!!y.exec.call(this,e)},y.match=function(e){var n;if(h.isRegExp(e)){if(e.global)return n=x.match.apply(this,arguments),e.lastIndex=0,n}else e=new RegExp(e);return y.exec.call(e,g(this))},y.replace=function(n,t){var r,a,i,l=h.isRegExp(n);return l?(n[b]&&(a=n[b].captureNames),r=n.lastIndex):n+="",i=s(t,"Function")?x.replace.call(String(this),n,function(){var r,i=arguments;if(a)for(i[0]=new String(i[0]),r=0;r<a.length;++r)a[r]&&(i[0][a[r]]=i[r+1]);return l&&n.global&&(n.lastIndex=i[i.length-2]+i[0].length),t.apply(e,i)}):x.replace.call(null==this?this:String(this),n,function(){var e=arguments;return x.replace.call(String(t),I,function(n,t,r){var i;if(t){if(i=+t,i<=e.length-3)return e[i]||"";if(i=a?o(a,t):-1,0>i)throw new SyntaxError("Backreference to undefined group "+n);return e[i+1]||""}if("$"===r)return"$";if("&"===r||0===+r)return e[0];if("`"===r)return e[e.length-1].slice(0,e[e.length-2]);if("'"===r)return e[e.length-1].slice(e[e.length-2]+e[0].length);if(r=+r,!isNaN(r)){if(r>e.length-3)throw new SyntaxError("Backreference to undefined group "+n);return e[r]||""}throw new SyntaxError("Invalid token "+n)})}),l&&(n.lastIndex=n.global?0:r),i},y.split=function(n,t){if(!h.isRegExp(n))return x.split.apply(this,arguments);var r,a=String(this),i=[],o=n.lastIndex,s=0;return t=(t===e?-1:t)>>>0,h.forEach(a,n,function(e){e.index+e[0].length>s&&(i.push(a.slice(s,e.index)),e.length>1&&e.index<a.length&&Array.prototype.push.apply(i,e.slice(1)),r=e[0].length,s=e.index+r)}),s===a.length?(!x.test.call(n,"")||r)&&i.push(""):i.push(a.slice(s)),n.lastIndex=o,i.length>t?i.slice(0,t):i},v=h.addToken,v(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4})|x(?![\dA-Fa-f]{2}))/,function(e,n){if("B"===e[1]&&n===_)return e[0];throw new SyntaxError("Invalid escape "+e[0])},{scope:"all"}),v(/\[(\^?)]/,function(e){return e[1]?"[\\s\\S]":"\\b\\B"}),v(/\(\?#[^)]*\)/,function(e,n,t){return l(e.input,e.index+e[0].length,t)?"":"(?:)"}),v(/\s+|#.*/,function(e,n,t){return l(e.input,e.index+e[0].length,t)?"":"(?:)"},{flag:"x"}),v(/\./,function(){return"[\\s\\S]"},{flag:"s"}),v(/\\k<([\w$]+)>/,function(e){var n=isNaN(e[1])?o(this.captureNames,e[1])+1:+e[1],t=e.index+e[0].length;if(!n||n>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+e[0]);return"\\"+n+(t===e.input.length||isNaN(e.input.charAt(t))?"":"(?:)")}),v(/\\(\d+)/,function(e,n){if(!(n===_&&/^[1-9]/.test(e[1])&&+e[1]<=this.captureNames.length)&&"0"!==e[1])throw new SyntaxError("Cannot use octal escape or backreference to undefined group "+e[0]);return e[0]},{scope:"all"}),v(/\(\?P?<([\w$]+)>/,function(e){if(!isNaN(e[1]))throw new SyntaxError("Cannot use integer as capture name "+e[0]);if("length"===e[1]||"__proto__"===e[1])throw new SyntaxError("Cannot use reserved word as capture name "+e[0]);if(o(this.captureNames,e[1])>-1)throw new SyntaxError("Cannot use same name for multiple groups "+e[0]);return this.captureNames.push(e[1]),this.hasNamedCapture=!0,"("}),v(/\((?!\?)/,function(e,n,t){return t.indexOf("n")>-1?"(?:":(this.captureNames.push(null),"(")},{optionalFlags:"n"}),h}();return function(e){function n(e){var n=/^\^/,t=/\$$/;return n.test(e)&&t.test(e.replace(/\\[\s\S]/g,""))?e.replace(n,"").replace(t,""):e}function t(n){return e.isRegExp(n)?n[r]&&n[r].captureNames?n:e(n.source):e(n)}var r="xregexp",a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*]/g,i=e.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g");e.build=function(o,s,l){var c,u,d,p,f=/^\(\?([\w$]+)\)/.exec(o),m={},g=0,h=0,v=[0];f&&(l=l||"",f[1].replace(/./g,function(e){l+=l.indexOf(e)>-1?"":e}));for(p in s)s.hasOwnProperty(p)&&(d=t(s[p]),m[p]={pattern:n(d.source),names:d[r].captureNames||[]});return o=t(o),u=o[r].captureNames||[],o=o.source.replace(i,function(e,n,t,r,i){var o,s,l=n||t;if(l){if(!m.hasOwnProperty(l))throw new ReferenceError("Undefined property "+e);return n?(o=u[h],v[++h]=++g,s="(?<"+(o||l)+">"):s="(?:",c=g,s+m[l].pattern.replace(a,function(e,n,t){if(n){if(o=m[l].names[g-c],++g,o)return"(?<"+o+">"}else if(t)return"\\"+(+t+c);return e})+")"}if(r){if(o=u[h],v[++h]=++g,o)return"(?<"+o+">"}else if(i)return"\\"+v[+i];return e}),e(o,l)}}(e),function(e){function n(e,n,t,r){return{name:e,value:n,start:t,end:r}}e.matchRecursive=function(t,r,a,i,o){i=i||"",o=o||{};var s,l,c,u,d,p=i.indexOf("g")>-1,f=i.indexOf("y")>-1,m=i.replace(/y/g,""),g=o.escapeChar,h=o.valueNames,v=[],b=0,w=0,x=0,y=0;if(r=e(r,m),a=e(a,m),g){if(g.length>1)throw new Error("Cannot use more than one escape character");g=e.escape(g),d=new RegExp("(?:"+g+"[\\S\\s]|(?:(?!"+e.union([r,a]).source+")[^"+g+"])+)+",i.replace(/[^im]+/g,""))}for(;;){if(g&&(x+=(e.exec(t,d,x,"sticky")||[""])[0].length),c=e.exec(t,r,x),u=e.exec(t,a,x),c&&u&&(c.index<=u.index?u=null:c=null),c||u)w=(c||u).index,x=w+(c||u)[0].length;else if(!b)break;if(f&&!b&&w>y)break;if(c)b||(s=w,l=x),++b;else{if(!u||!b)throw new Error("Unbalanced delimiter found in string");if(!--b&&(h?(h[0]&&s>y&&v.push(n(h[0],t.slice(y,s),y,s)),h[1]&&v.push(n(h[1],t.slice(s,l),s,l)),h[2]&&v.push(n(h[2],t.slice(l,w),l,w)),h[3]&&v.push(n(h[3],t.slice(w,x),w,x))):v.push(t.slice(l,w)),y=x,!p))break}w===x&&++x}return p&&!f&&h&&h[0]&&t.length>y&&v.push(n(h[0],t.slice(y),y,t.length)),v}}(e),function(e){function n(e){return e.replace(/[- _]+/g,"").toLowerCase()}function t(e){for(;e.length<4;)e="0"+e;return e}function r(e){return parseInt(e,16)}function a(e){return parseInt(e,10).toString(16)}function i(e){var n=/^\\[xu](.+)/.exec(e);return n?r(n[1]):e.charCodeAt("\\"===e.charAt(0)?1:0)}function o(n){var r,o="",s=-1;return e.forEach(n,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(e){r=i(e[1]),r>s+1&&(o+="\\u"+t(a(s+1)),r>s+2&&(o+="-\\u"+t(a(r-1)))),s=i(e[2]||e[1])}),65535>s&&(o+="\\u"+t(a(s+1)),65534>s&&(o+="-\\uFFFF")),o}function s(e){var n="b!";return u[e][n]||(u[e][n]=o(u[e].bmp))}function l(e,n){var t=u[e],r="";return t.bmp&&!t.isBmpLast&&(r="["+t.bmp+"]"+(t.astral?"|":"")),t.astral&&(r+=t.astral),t.isBmpLast&&t.bmp&&(r+=(t.astral?"|":"")+"["+t.bmp+"]"),n?"(?:(?!"+r+")(?:[<5B>-<2D>][<5B>-<2D>]|[\x00-￿]))":"(?:"+r+")"}function c(e,n){var t=n?"a!":"a=";return u[e][t]||(u[e][t]=l(e,n))}var u={};e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(t,r,a){var i="Invalid double negation ",o="Unknown Unicode token ",l="Unicode token missing data ",d="Astral mode required for Unicode token ",p="Astral mode does not support Unicode tokens within character classes",f="P"===t[1]||!!t[2],m=a.indexOf("A")>-1||e.isInstalled("astral"),g=n(t[4]||t[3]),h=u[g];if("P"===t[1]&&t[2])throw new SyntaxError(i+t[0]);if(!u.hasOwnProperty(g))throw new SyntaxError(o+t[0]);if(h.inverseOf){if(g=n(h.inverseOf),!u.hasOwnProperty(g))throw new ReferenceError(l+t[0]+" -> "+h.inverseOf);h=u[g],f=!f}if(!h.bmp&&!m)throw new SyntaxError(d+t[0]);if(m){if("class"===r)throw new SyntaxError(p);return c(g,f)}return"class"===r?f?s(g):h.bmp:(f?"[^":"[")+h.bmp+"]"},{scope:"all",optionalFlags:"A"}),e.addUnicodeData=function(t){var r,a,i="Unicode token requires name",o="Unicode token has no character data ";for(a=0;a<t.length;++a){if(r=t[a],!r.name)throw new Error(i);if(!(r.inverseOf||r.bmp||r.astral))throw new Error(o+r.name);u[n(r.name)]=r,r.alias&&(u[n(r.alias)]=r)}e.cache.flush("patterns")},e.addUnicodeData([{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ--ℝℤΩℨK--ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",astral:"<22>[<5B>-<2D><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><><EFBFBD>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B><>]|[<5B><>-<2D><>-<2D>][<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]"}])}(e),function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");e.addUnicodeData([{name:"InAegean_Numbers",astral:"<22>[<5B>-<2D>]"},{name:"InAlchemical_Symbols",astral:"<22>[<5B>-<2D>]"},{name:"InAlphabetic_Presentation_Forms",bmp:"ff-ﭏ"},{name:"InAncient_Greek_Musical_Notation",astral:"<22>[<5B>-<2D>]"},{name:"InAncient_Greek_Numbers",astral:"<22>[<5B>-<2D>]"},{name:"InAncient_Symbols",astral:"<22>[<5B>-<2D>]"},{name:"InArabic",bmp:"؀-ۿ"},{name:"InArabic_Extended_A",bmp:"ࢠ-ࣿ"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"<22>[<5B>-<2D>]"},{name:"InArabic_Presentation_Forms_A",bmp:"ﭐ-﷿"},{name:"InArabic_Presentation_Forms_B",bmp:"ﹰ-\ufeff"},{name:"InArabic_Supplement",bmp:"ݐ-ݿ"},{name:"InArmenian",bmp:"԰-֏"},{name:"InArrows",bmp:"←-⇿"},{name:"InAvestan",astral:"<22>[<5B>-<2D>]"},{name:"InBalinese",bmp:"ᬀ-᭿"},{name:"InBamum",bmp:"ꚠ-꛿"},{name:"InBamum_Supplement",astral:"<22>[<5B>-<2D>]"},{name:"InBasic_Latin",bmp:"\x00-"},{name:"InBatak",bmp:"ᯀ-᯿"},{name:"InBengali",bmp:"ঀ-৿"},{name:"InBlock_Elements",bmp:"▀-▟"},{name:"InBopomofo",bmp:"㄀-ㄯ"},{name:"InBopomofo_Extended",bmp:"ㆠ-ㆿ"},{name:"InBox_Drawing",bmp:"─-╿"},{name:"InBrahmi",astral:"<22>[<5B>-<2D>]"},{name:"InBraille_Patterns",bmp:"-⣿"},{name:"InBuginese",bmp:"ᨀ-᨟"},{name:"InBuhid",bmp:"ᝀ-᝟"
},{name:"InByzantine_Musical_Symbols",astral:"<22>[<5B>-<2D>]"},{name:"InCJK_Compatibility",bmp:"㌀-㏿"},{name:"InCJK_Compatibility_Forms",bmp:"-"},{name:"InCJK_Compatibility_Ideographs",bmp:"豈-﫿"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"<22>[<5B>-<2D>]"},{name:"InCJK_Radicals_Supplement",bmp:"⺀-⻿"},{name:"InCJK_Strokes",bmp:"㇀-㇯"},{name:"InCJK_Symbols_and_Punctuation",bmp:" -〿"},{name:"InCJK_Unified_Ideographs",bmp:"一-鿿"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"㐀-䶿"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[<5B>-<2D>][<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"InCJK_Unified_Ideographs_Extension_C",astral:"<22>[<5B>-<2D>]|[<5B>-<2D>][<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"<22>[<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"InCarian",astral:"<22>[<5B>-<2D>]"},{name:"InChakma",astral:"<22>[<5B>-<2D>]"},{name:"InCham",bmp:"ꨀ-꩟"},{name:"InCherokee",bmp:"-᏿"},{name:"InCombining_Diacritical_Marks",bmp:"̀-ͯ"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"᷀-᷿"},{name:"InCombining_Diacritical_Marks_for_Symbols",bmp:"⃐-⃿"},{name:"InCombining_Half_Marks",bmp:"︠-︯"},{name:"InCommon_Indic_Number_Forms",bmp:"꠰-꠿"},{name:"InControl_Pictures",bmp:"␀-␿"},{name:"InCoptic",bmp:"Ⲁ-⳿"},{name:"InCounting_Rod_Numerals",astral:"<22>[<5B>-<2D>]"},{name:"InCuneiform",astral:"<22>[<5B>-<2D>]"},{name:"InCuneiform_Numbers_and_Punctuation",astral:"<22>[<5B>-<2D>]"},{name:"InCurrency_Symbols",bmp:"₠-⃏"},{name:"InCypriot_Syllabary",astral:"<22>[<5B>-<2D>]"},{name:"InCyrillic",bmp:"Ѐ-ӿ"},{name:"InCyrillic_Extended_A",bmp:"ⷠ-ⷿ"},{name:"InCyrillic_Extended_B",bmp:"Ꙁ-ꚟ"},{name:"InCyrillic_Supplement",bmp:"Ԁ-ԯ"},{name:"InDeseret",astral:"<22>[<5B>-<2D>]"},{name:"InDevanagari",bmp:"ऀ-ॿ"},{name:"InDevanagari_Extended",bmp:"꣠-ꣿ"},{name:"InDingbats",bmp:"✀-➿"},{name:"InDomino_Tiles",astral:"<22>[<5B>-<2D>]"},{name:"InEgyptian_Hieroglyphs",astral:"<22>[<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"InEmoticons",astral:"<22>[<5B>-<2D>]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"<22>[<5B>-<2D>]"},{name:"InEnclosed_Alphanumerics",bmp:"①-⓿"},{name:"InEnclosed_CJK_Letters_and_Months",bmp:"㈀-㋿"},{name:"InEnclosed_Ideographic_Supplement",astral:"<22>[<5B>-<2D>]"},{name:"InEthiopic",bmp:"-፿"},{name:"InEthiopic_Extended",bmp:"ⶀ-⷟"},{name:"InEthiopic_Extended_A",bmp:"꬀-꬯"},{name:"InEthiopic_Supplement",bmp:"ᎀ-᎟"},{name:"InGeneral_Punctuation",bmp:" -"},{name:"InGeometric_Shapes",bmp:"■-◿"},{name:"InGeorgian",bmp:"Ⴀ-"},{name:"InGeorgian_Supplement",bmp:"ⴀ-⴯"},{name:"InGlagolitic",bmp:"Ⰰ-ⱟ"},{name:"InGothic",astral:"<22>[<5B>-<2D>]"},{name:"InGreek_Extended",bmp:"ἀ-῿"},{name:"InGreek_and_Coptic",bmp:"Ͱ-Ͽ"},{name:"InGujarati",bmp:"઀-૿"},{name:"InGurmukhi",bmp:"਀-੿"},{name:"InHalfwidth_and_Fullwidth_Forms",bmp:"＀-￯"},{name:"InHangul_Compatibility_Jamo",bmp:"㄰-㆏"},{name:"InHangul_Jamo",bmp:"ᄀ-ᇿ"},{name:"InHangul_Jamo_Extended_A",bmp:"ꥠ-꥿"},{name:"InHangul_Jamo_Extended_B",bmp:"ힰ-퟿"},{name:"InHangul_Syllables",bmp:"가-힯"},{name:"InHanunoo",bmp:"ᜠ-᜿"},{name:"InHebrew",bmp:"֐-׿"},{name:"InHigh_Private_Use_Surrogates",bmp:"<22>-<2D>"},{name:"InHigh_Surrogates",bmp:"<22>-<2D>"},{name:"InHiragana",bmp:"぀-ゟ"},{name:"InIPA_Extensions",bmp:"ɐ-ʯ"},{name:"InIdeographic_Description_Characters",bmp:"⿰-⿿"},{name:"InImperial_Aramaic",astral:"<22>[<5B>-<2D>]"},{name:"InInscriptional_Pahlavi",astral:"<22>[<5B>-<2D>]"},{name:"InInscriptional_Parthian",astral:"<22>[<5B>-<2D>]"},{name:"InJavanese",bmp:"ꦀ-꧟"},{name:"InKaithi",astral:"<22>[<5B>-<2D>]"},{name:"InKana_Supplement",astral:"<22>[<5B>-<2D>]"},{name:"InKanbun",bmp:"㆐-㆟"},{name:"InKangxi_Radicals",bmp:"⼀-⿟"},{name:"InKannada",bmp:"ಀ-೿"},{name:"InKatakana",bmp:"-ヿ"},{name:"InKatakana_Phonetic_Extensions",bmp:"ㇰ-ㇿ"},{name:"InKayah_Li",bmp:"꤀-꤯"},{name:"InKharoshthi",astral:"<22>[<5B>-<2D>]"},{name:"InKhmer",bmp:"ក-៿"},{name:"InKhmer_Symbols",bmp:"᧠-᧿"},{name:"InLao",bmp:"຀-໿"},{name:"InLatin_Extended_Additional",bmp:"Ḁ-ỿ"},{name:"InLatin_Extended_A",bmp:"Ā-ſ"},{name:"InLatin_Extended_B",bmp:"ƀ-ɏ"},{name:"InLatin_Extended_C",bmp:"Ⱡ-Ɀ"},{name:"InLatin_Extended_D",bmp:"꜠-ꟿ"},{name:"InLatin_1_Supplement",bmp:"€-ÿ"},{name:"InLepcha",bmp:"ᰀ-ᱏ"},{name:"InLetterlike_Symbols",bmp:"℀-⅏"},{name:"InLimbu",bmp:"ᤀ-᥏"},{name:"InLinear_B_Ideograms",astral:"<22>[<5B>-<2D>]"},{name:"InLinear_B_Syllabary",astral:"<22>[<5B>-<2D>]"},{name:"InLisu",bmp:"-"},{name:"InLow_Surrogates",bmp:"<22>-<2D>"},{name:"InLycian",astral:"<22>[<5B>-<2D>]"},{name:"InLydian",astral:"<22>[<5B>-<2D>]"},{name:"InMahjong_Tiles",astral:"<22>[<5B>-<2D>]"},{name:"InMalayalam",bmp:"ഀ-ൿ"},{name:"InMandaic",bmp:"ࡀ-࡟"},{name:"InMathematical_Alphanumeric_Symbols",astral:"<22>[<5B>-<2D>]"},{name:"InMathematical_Operators",bmp:"∀-"},{name:"InMeetei_Mayek",bmp:"ꯀ-꯿"},{name:"InMeetei_Mayek_Extensions",bmp:"ꫠ-꫿"},{name:"InMeroitic_Cursive",astral:"<22>[<5B>-<2D>]"},{name:"InMeroitic_Hieroglyphs",astral:"<22>[<5B>-<2D>]"},{name:"InMiao",astral:"<22>[<5B>-<2D>]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"⟀-⟯"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"⦀-⧿"},{name:"InMiscellaneous_Symbols",bmp:"☀-⛿"},{name:"InMiscellaneous_Symbols_And_Pictographs",astral:"<22>[<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"InMiscellaneous_Symbols_and_Arrows",bmp:"⬀-⯿"},{name:"InMiscellaneous_Technical",bmp:"⌀-⏿"},{name:"InModifier_Tone_Letters",bmp:"꜀-ꜟ"},{name:"InMongolian",bmp:"᠀-᢯"},{name:"InMusical_Symbols",astral:"<22>[<5B>-<2D>]"},{name:"InMyanmar",bmp:"က-႟"},{name:"InMyanmar_Extended_A",bmp:"ꩠ-ꩿ"},{name:"InNKo",bmp:"߀-߿"},{name:"InNew_Tai_Lue",bmp:"ᦀ-᧟"},{name:"InNumber_Forms",bmp:"⅐-↏"},{name:"InOgham",bmp:"-᚟"},{name:"InOl_Chiki",bmp:"᱐-᱿"},{name:"InOld_Italic",astral:"<22>[<5B>-<2D>]"},{name:"InOld_Persian",astral:"<22>[<5B>-<2D>]"},{name:"InOld_South_Arabian",astral:"<22>[<5B>-<2D>]"},{name:"InOld_Turkic",astral:"<22>[<5B>-<2D>]"},{name:"InOptical_Character_Recognition",bmp:"⑀-⑟"},{name:"InOriya",bmp:"଀-୿"},{name:"InOsmanya",astral:"<22>[<5B>-<2D>]"},{name:"InPhags_pa",bmp:"ꡀ-꡿"},{name:"InPhaistos_Disc",astral:"<22>[<5B>-<2D>]"},{name:"InPhoenician",astral:"<22>[<5B>-<2D>]"},{name:"InPhonetic_Extensions",bmp:"ᴀ-ᵿ"},{name:"InPhonetic_Extensions_Supplement",bmp:"ᶀ-ᶿ"},{name:"InPlaying_Cards",astral:"<22>[<5B>-<2D>]"},{name:"InPrivate_Use_Area",bmp:"-"},{name:"InRejang",bmp:"ꤰ-꥟"},{name:"InRumi_Numeral_Symbols",astral:"<22>[<5B>-<2D>]"},{name:"InRunic",bmp:"ᚠ-᛿"},{name:"InSamaritan",bmp:"ࠀ-࠿"},{name:"InSaurashtra",bmp:"ꢀ-꣟"},{name:"InSharada",astral:"<22>[<5B>-<2D>]"},{name:"InShavian",astral:"<22>[<5B>-<2D>]"},{name:"InSinhala",bmp:"඀-෿"},{name:"InSmall_Form_Variants",bmp:"﹐-﹯"},{name:"InSora_Sompeng",astral:"<22>[<5B>-<2D>]"},{name:"InSpacing_Modifier_Letters",bmp:"ʰ-˿"},{name:"InSpecials",bmp:"-￿"},{name:"InSundanese",bmp:"ᮀ-ᮿ"},{name:"InSundanese_Supplement",bmp:"᳀-᳏"},{name:"InSuperscripts_and_Subscripts",bmp:"⁰-₟"},{name:"InSupplemental_Arrows_A",bmp:"⟰-⟿"},{name:"InSupplemental_Arrows_B",bmp:"⤀-⥿"},{name:"InSupplemental_Mathematical_Operators",bmp:"⨀-⫿"},{name:"InSupplemental_Punctuation",bmp:"⸀-⹿"},{name:"InSupplementary_Private_Use_Area_A",astral:"[<5B>-<2D>][<5B>-<2D>]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[<5B>-<2D>][<5B>-<2D>]"},{name:"InSyloti_Nagri",bmp:"ꠀ-꠯"},{name:"InSyriac",bmp:"܀-ݏ"},{name:"InTagalog",bmp:"ᜀ-ᜟ"},{name:"InTagbanwa",bmp:"ᝠ-᝿"},{name:"InTags",astral:"<22>[<5B>-<2D>]"},{name:"InTai_Le",bmp:"ᥐ-᥿"},{name:"InTai_Tham",bmp:"ᨠ-᪯"},{name:"InTai_Viet",bmp:"ꪀ-꫟"},{name:"InTai_Xuan_Jing_Symbols",astral:"<22>[<5B>-<2D>]"},{name:"InTakri",astral:"<22>[<5B>-<2D>]"},{name:"InTamil",bmp:"஀-௿"},{name:"InTelugu",bmp:"ఀ-౿"},{name:"InThaana",bmp:"ހ-޿"},{name:"InThai",bmp:"฀-๿"},{name:"InTibetan",bmp:"ༀ-࿿"},{name:"InTifinagh",bmp:"ⴰ-⵿"},{name:"InTransport_And_Map_Symbols",astral:"<22>[<5B>-<2D>]"},{name:"InUgaritic",astral:"<22>[<5B>-<2D>]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"-ᙿ"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"ᢰ-᣿"},{name:"InVai",bmp:"ꔀ-꘿"},{name:"InVariation_Selectors",bmp:"-"},{name:"InVariation_Selectors_Supplement",astral:"<22>[<5B>-<2D>]"},{name:"InVedic_Extensions",bmp:"᳐-᳿"},{name:"InVertical_Forms",bmp:"︐-︟"},{name:"InYi_Radicals",bmp:"꒐-꓏"},{name:"InYi_Syllables",bmp:"ꀀ-꒏"},{name:"InYijing_Hexagram_Symbols",bmp:"䷀-䷿"}])}(e),function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");e.addUnicodeData([{name:"C",alias:"Other",isBmpLast:!0,bmp:"\x00--Ÿ­͸͹Ϳ-΃΋΍΢Ԩ-԰՗՘ՠֈ֋-֎֐׈-׏׫-ׯ׵-؅؜؝۝܎܏݋݌޲-޿߻-߿࠮࠯࠿࡜࡝࡟-࢟ࢡࢭ-ࣣࣿॸঀ঄঍঎঑঒঩঱঳-঵঺঻৅৆৉৊৏-৖৘-৛৞৤৥ৼ-਀਄਋-਎਑਒਩਱਴਷਺਻਽੃-੆੉੊੎-੐੒-੘੝੟-੥੶-઀઄઎઒઩઱઴઺઻૆૊૎૏૑-૟૤૥૲-଀଄଍଎଑଒଩଱଴଺଻୅୆୉୊୎-୕୘-୛୞୤୥୸-஁஄஋-஍஑஖-஘஛஝஠-஢஥-஧஫-஭஺-஽௃-௅௉௎௏௑-௖௘-௥௻-ఀఄ఍఑఩ఴ఺-఼౅౉౎-౔౗ౚ-౟౤౥౰-౷ಀಁ಄಍಑಩಴಺಻೅೉೎-೔೗-ೝ೟೤೥೰ೳ-ഁഄ഍഑഻഼൅൉൏-ൖ൘-ൟ൤൥൶-൸඀ඁ඄඗-඙඲඼඾඿෇-෉෋-෎෕෗෠-෱෵-฀฻-฾๜-຀຃຅ຆຉ຋ຌຎ-ຓຘຠ຤຦ຨຩຬ຺຾຿໅໇໎໏໚໛໠-໿཈཭-཰྘྽࿍࿛-࿿჆჈-჌჎჏቉቎቏቗቙቞቟኉኎኏኱኶኷኿዁዆዇዗጑጖጗፛፜፽-፿᎚-᎟Ᏽ-᏿᚝-᚟ᛱ-᛿ᜍ᜕-ᜟ᜷-᜿᝔-᝟᝭᝱᝴-᝿៞៟៪-៯៺-៿᠏᠚-᠟ᡸ-᡿᢫-᢯᣶-᣿ᤝ-᤟᤬-᤯᤼-᤿᥁-᥃᥮᥯᥵-᥿᦬-᦯᧊-᧏᧛-᧝᨜᨝᩟᩽᩾᪊-᪏᪚-᪟᪮-᫿ᭌ-᭏᭽-᭿᯴-᯻᰸-᰺᱊-᱌ᲀ-Ჿ᳈-᳏᳷-᳿ᷧ-᷻἖἗἞἟὆὇὎὏὘὚὜὞὾὿᾵῅῔῕῜῰῱῵῿​---⁲⁳₏₝-₟₻-⃏⃱-⃿↊-↏⏴-⏿␧-␿⑋-⑟✀⭍-⭏⭚-⯿Ⱟⱟ⳴-⳸⴦⴨-⴬⴮⴯⵨-⵮⵱-⵾⶗-⶟⶧⶯⶷⶿⷇⷏⷗⷟⸼-⹿⺚⻴-⻿⿖-⿯⿼-⿿぀゗゘㄀-㄄ㄮ-㄰㆏ㆻ-ㆿ㇤-㇯㈟㋿䶶-䶿鿍-鿿꒍-꒏꓇-꓏꘬-꘿Ꚙ-ꚞ꛸-꛿ꞏꞔ--ꟷ꠬-꠯꠺-꠿꡸-꡿ꣅ-꣍꣚-꣟꣼-ꣿ꥔-꥞꥽-꥿꧎꧚-꧝ꧠ-꧿꨷-꨿꩎꩏꩚꩛ꩼ-ꩿ꫃-꫚꫷-꬀꬇꬈꬏꬐꬗-꬟꬧꬯-ꮿ꯮꯯꯺-꯿힤-힯퟇-퟊퟼-﩮﩯﫚-﫿﬇-﬒﬘-﬜﬷﬽﬿﭂﭅﯂-﯒﵀-﵏﶐﶑﷈-﷯﷾﷿︚-︟︧-︯﹓﹧﹬-﹯﹵﻽-＀﾿-￁￈￉￐￑￘￙￝-￟￧￯-￾￿",astral:"<22>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|[<5B><><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D>][<5B>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B><><EFBFBD>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]"},{name:"Cc",alias:"Control",bmp:"\x00--Ÿ"},{name:"Cf",alias:"Format",bmp:"­؀-؄۝܏​----\ufeff-",astral:"<22>[<5B><>-<2D>]|<7C>[<5B>-<2D>]|𑂽"},{name:"Cn",alias:"Unassigned",bmp:"͸͹Ϳ-΃΋΍΢Ԩ-԰՗՘ՠֈ֋-֎֐׈-׏׫-ׯ׵-׿؅؜؝܎݋݌޲-޿߻-߿࠮࠯࠿࡜࡝࡟-࢟ࢡࢭ-ࣣࣿॸঀ঄঍঎঑঒঩঱঳-঵঺঻৅৆৉৊৏-৖৘-৛৞৤৥ৼ-਀਄਋-਎਑਒਩਱਴਷਺਻਽੃-੆੉੊੎-੐੒-੘੝੟-੥੶-઀઄઎઒઩઱઴઺઻૆૊૎૏૑-૟૤૥૲-଀଄଍଎଑଒଩଱଴଺଻୅୆୉୊୎-୕୘-୛୞୤୥୸-஁஄஋-஍஑஖-஘஛஝஠-஢஥-஧஫-஭஺-஽௃-௅௉௎௏௑-௖௘-௥௻-ఀఄ఍఑఩ఴ఺-఼౅౉౎-౔౗ౚ-౟౤౥౰-౷ಀಁ಄಍಑಩಴಺಻೅೉೎-೔೗-ೝ೟೤೥೰ೳ-ഁഄ഍഑഻഼൅൉൏-ൖ൘-ൟ൤൥൶-൸඀ඁ඄඗-඙඲඼඾඿෇-෉෋-෎෕෗෠-෱෵-฀฻-฾๜-຀຃຅ຆຉ຋ຌຎ-ຓຘຠ຤຦ຨຩຬ຺຾຿໅໇໎໏໚໛໠-໿཈཭-཰྘྽࿍࿛-࿿჆჈-჌჎჏቉቎቏቗቙቞቟኉኎኏኱኶኷኿዁዆዇዗጑጖጗፛፜፽-፿᎚-᎟Ᏽ-᏿᚝-᚟ᛱ-᛿ᜍ᜕-ᜟ᜷-᜿᝔-᝟᝭᝱᝴-᝿៞៟៪-៯៺-៿᠏᠚-᠟ᡸ-᡿᢫-᢯᣶-᣿ᤝ-᤟᤬-᤯᤼-᤿᥁-᥃᥮᥯᥵-᥿᦬-᦯᧊-᧏᧛-᧝᨜᨝᩟᩽᩾᪊-᪏᪚-᪟᪮-᫿ᭌ-᭏᭽-᭿᯴-᯻᰸-᰺᱊-᱌ᲀ-Ჿ᳈-᳏᳷-᳿ᷧ-᷻἖἗἞἟὆὇὎὏὘὚὜὞὾὿᾵῅῔῕῜῰῱῵῿⁥-⁩⁲⁳₏₝-₟₻-⃏⃱-⃿↊-↏⏴-⏿␧-␿⑋-⑟✀⭍-⭏⭚-⯿Ⱟⱟ⳴-⳸⴦⴨-⴬⴮⴯⵨-⵮⵱-⵾⶗-⶟⶧⶯⶷⶿⷇⷏⷗⷟⸼-⹿⺚⻴-⻿⿖-⿯⿼-⿿぀゗゘㄀-㄄ㄮ-㄰㆏ㆻ-ㆿ㇤-㇯㈟㋿䶶-䶿鿍-鿿꒍-꒏꓇-꓏꘬-꘿Ꚙ-ꚞ꛸-꛿ꞏꞔ--ꟷ꠬-꠯꠺-꠿꡸-꡿ꣅ-꣍꣚-꣟꣼-ꣿ꥔-꥞꥽-꥿꧎꧚-꧝ꧠ-꧿꨷-꨿꩎꩏꩚꩛ꩼ-ꩿ꫃-꫚꫷-꬀꬇꬈꬏꬐꬗-꬟꬧꬯-ꮿ꯮꯯꯺-꯿힤-힯퟇-퟊퟼-퟿﩮﩯﫚-﫿﬇-﬒﬘-﬜﬷﬽﬿﭂﭅﯂-﯒﵀-﵏﶐﶑﷈-﷯﷾﷿︚-︟︧-︯﹓﹧﹬-﹯﹵﻽﻾＀﾿-￁￈￉￐￑￘￙￝-￟￧￯-￸￾￿",astral:"<22>[<5B>-<2D>]|<7C>[<5B><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D>]|[<5B><>][<5B><>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|[<5B><><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D>][<5B>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|<7C>[<5B>-<2D>]|<7C>[<5B><><EFBFBD>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]"},{name:"Co",alias:"Private_Use",bmp:"-",astral:"[<5B>-<2D><>-<2D>][<5B>-<2D>]|[<5B><>][<5B>-<2D>]"},{name:"Cs",alias:"Surrogate",bmp:"<22>-<2D>"},{name:"Ll",alias:"Lowercase_Letter",bmp:"a-zµß-öø-ÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĸĺļľŀłńņňʼnŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżž-ƀƃƅƈƌƍƒƕƙ-ƛƞơƣƥƨƪƫƭưƴƶƹƺƽ-ƿdžljnjǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰdzǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳ-ȹȼȿɀɂɇɉɋɍɏ-ʓʕ-ʯͱͳͷͻ-ͽΐά-ώϐϑϕ-ϗϙϛϝϟϡϣϥϧϩϫϭϯ-ϳϵϸϻϼа-џѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӏӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧա-ևᴀ-ᴫᵫ-ᵷᵹ-ᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕ-ẝẟạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷιῂ-ῄῆῇῐ-ΐῖῗῠ-ῧῲ-ῴῶῷℊℎℏℓℯℴℹℼℽⅆ-ⅉⅎↄⰰ-ⱞⱡⱥⱦⱨⱪⱬⱱⱳⱴⱶ-ⱻⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⳬⳮⳳⴀ-ⴥⴧⴭꙁꙃꙅꙇꙉꙋꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꜣꜥꜧꜩꜫꜭꜯ-ꜱꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝱ-ꝸꝺꝼꝿꞁꞃꞅꞇꞌꞎꞑꞓꞡꞣꞥꞧꞩꟺff-stﬓ-ﬗa-",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>]|<7C>[<5B>-<2D>]"},{name:"Lm",alias:"Modifier_Letter",bmp:"ʰ-ˁˆ-ˑˠ-ˤˬˮʹͺՙـۥۦߴߵߺࠚࠤࠨॱๆໆჼៗᡃᪧᱸ-ᱽᴬ-ᵪᵸᶛ-ᶿⁱⁿₐ-ₜⱼⱽⵯⸯ々〱-〵〻ゝゞー-ヾꀕꓸ-ꓽꘌꙿꜗ-ꜟꝰꞈꟸꟹꧏꩰꫝꫳꫴー゙゚",astral:"<22>[<5B>-<2D>]"},{name:"Lo",alias:"Other_Letter",bmp:"ªºƻǀ-ǃʔא-תװ-ײؠ-ؿف-يٮٯٱ-ۓەۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪࠀ-ࠕࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॲ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๅກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎა-ჺჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៜᠠ-ᡂᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱷᳩ-ᳬᳮ-ᳱᳵᳶℵ-ℸⴰ-ⵧⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ〆〼ぁ-ゖゟァ-ヺヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꀔꀖ-ꒌꓐ-ꓷꔀ-ꘋꘐ-ꘟꘪꘫꙮꚠ-ꛥꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩯꩱ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛꫜꫠ-ꫪꫲꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎יִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼヲ-ッア-ンᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",astral:"<22>[<5B>-<2D><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>]|<7C>[<5B>-<2D>]|<7C>[<5B><>]|[<5B><>-<2D><>-<2D>][<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D>]"},{name:"Lt",alias:"Titlecase_Letter",bmp:"DžLjNjDzᾈ-ᾏᾘ-ᾟᾨ-ᾯᾼῌῼ"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-ZÀ-ÖØ-ÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉ-ƋƎ-ƑƓƔƖ-ƘƜƝƟƠƢƤƦƧƩƬƮƯƱ-ƳƵƷƸƼDŽLJNJǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮDZǴǶ-ǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁɃ-ɆɈɊɌɎͰͲͶΆΈ-ΊΌΎΏΑ-ΡΣ-ΫϏϒ-ϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽ-ЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸӺӼӾԀԂԄԆԈԊԌԎԐԒԔԖԘԚԜԞԠԢԤԦԱ-ՖႠ-ჅჇჍḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẞẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸỺỼỾἈ-ἏἘ-ἝἨ-ἯἸ-ἿὈ-ὍὙὛὝὟὨ-ὯᾸ-ΆῈ-ΉῘ-ΊῨ-ῬῸ-Ώℂℇℋ---ℝℤΩℨK--ℳℾℿⅅↃⰀ-ⰮⱠⱢ-ⱤⱧⱩⱫⱭ-ⱰⱲⱵⱾ-ⲀⲂⲄⲆⲈⲊⲌⲎⲐⲒⲔⲖⲘⲚⲜⲞⲠⲢⲤⲦⲨⲪⲬⲮⲰⲲⲴⲶⲸⲺⲼⲾⳀⳂⳄⳆⳈⳊⳌⳎⳐⳒⳔⳖⳘⳚⳜⳞⳠⳢⳫⳭⳲꙀꙂꙄꙆꙈꙊꙌꙎꙐꙒꙔꙖꙘꙚꙜꙞꙠꙢꙤꙦꙨꙪꙬꚀꚂꚄꚆꚈꚊꚌꚎꚐꚒꚔꚖꜢꜤꜦꜨꜪꜬꜮꜲꜴꜶꜸꜺꜼꜾꝀꝂꝄꝆꝈꝊꝌꝎꝐꝒꝔꝖꝘꝚꝜꝞꝠꝢꝤꝦꝨꝪꝬꝮꝹꝻꝽꝾꞀꞂꞄꞆꞋꞍꞐꞒꞠꞢꞤꞦꞨꞪA-",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>]|<7C>[<5B>-<2D>]"},{name:"M",alias:"Mark",bmp:"̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-ᮭ᯦-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ-᳴᷀-ᷦ᷼-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭ﬞ︀-️︠-︦",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|𐇽|<7C>[<5B>-<2D>]"},{name:"Mc",alias:"Spacing_Mark",bmp:"ःऻा-ीॉ-ौॎॏংঃা-ীেৈোৌৗਃਾ-ੀઃા-ીૉોૌଂଃାୀେୈୋୌୗாிுூெ-ைொ-ௌௗఁ-ఃు-ౄಂಃಾೀ-ೄೇೈೊೋೕೖംഃാ-ീെ-ൈൊ-ൌൗංඃා-ෑෘ-ෟෲෳ༾༿ཿါာေးျြၖၗၢ-ၤၧ-ၭႃႄႇ-ႌႏႚ-ႜាើ-ៅះៈᤣ-ᤦᤩ-ᤫᤰᤱᤳ-ᤸᦰ-ᧀᧈᧉᨙ-ᨛᩕᩗᩡᩣᩤᩭ-ᩲᬄᬵᬻᬽ-ᭁᭃ᭄ᮂᮡᮦᮧ᮪ᮬᮭᯧᯪ-ᯬᯮ᯲᯳ᰤ-ᰫᰴᰵ᳡ᳲᳳ〮〯ꠣꠤꠧꢀꢁꢴ-ꣃꥒ꥓ꦃꦴꦵꦺꦻꦽ-꧀ꨯꨰꨳꨴꩍꩻꫫꫮꫯꫵꯣꯤꯦꯧꯩꯪ꯬",astral:"<22>[<5B><><EFBFBD>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>]|<7C>[<5B><><EFBFBD><EFBFBD>]|<7C>[<5B>-<2D>]"},{name:"Me",alias:"Enclosing_Mark",bmp:"҈҉⃝-⃠⃢-⃤꙰-꙲"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦",astral:"<22>[<5B>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B><><EFBFBD>-<2D><>]|<7C>[<5B><>-<2D><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D>]|𐇽|<7C>[<5B>-<2D>]"},{name:"N",alias:"Number",bmp:"0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൦-൵๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD>-<2D><><EFBFBD><EFBFBD>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D>]"},{name:"Nd",alias:"Decimal_Number",bmp:"0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"Nl",alias:"Letter_Number",bmp:"ᛮ-ᛰⅠ-ↂↅ-ↈ〇〡-〩〸-〺ꛦ-",astral:"<22>[<5B>-<2D><><EFBFBD><EFBFBD>-<2D>]|<7C>[<5B>-<2D>]"},{name:"No",alias:"Other_Number",bmp:"²³¹¼-¾৴-৹୲-୷௰-௲౸-౾൰-൵༪-༳፩-፼៰-៹᧚⁰⁴-⁹₀-₉⅐-⅟↉①-⒛⓪-⓿❶-➓⳽㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꠰-꠵",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"P",alias:"Punctuation",bmp:"!-#%-\\x2A,-/:;\\x3F@\\x5B-\\x5D_\\x7B}¡§«¶·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰૰෴๏๚๛༄-༒༔༺-༽྅࿐-࿔࿙࿚၊-၏჻፠-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳀-᳇᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰-⸻、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꫰꫱꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!----]_{}⦅-・",astral:"<22>[<5B>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD>-<2D><><EFBFBD>-<2D>]|<7C>[<5B>-<2D><><EFBFBD>]|<7C>[<5B>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D>]"},{name:"Pc",alias:"Connector_Punctuation",bmp:"_‿⁀⁔︳︴-_"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\x2D֊־-―⸗⸚⸺⸻〜〰゠︱︲﹘﹣-"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\x29\\x5D}༻༽᚜⁆⁾₎〉❩❫❭❯❱❳❵⟆⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽⸣⸥⸧⸩〉》」』】〕〗〙〛〞〟﴿︘︶︸︺︼︾﹀﹂﹄﹈﹚﹜﹞)]}⦆」"},{name:"Pf",alias:"Final_Punctuation",bmp:"»’”›⸃⸅⸊⸍⸝⸡"},{name:"Pi",alias:"Initial_Punctuation",bmp:"«‘‛“‟‹⸂⸄⸉⸌⸜⸠"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\x2A,\\x2E/:;\\x3F@\\x5C¡§¶·¿;·՚-՟։׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰૰෴๏๚๛༄-༒༔྅࿐-࿔࿙࿚၊-၏჻፠-፨᙭᙮᛫-᛭᜵᜶។-៖៘-៚᠀-᠅᠇-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳀-᳇᳓‖‗†-‧‰-‸※-‾⁁-⁃⁇-⁑⁓⁕-⁞⳹-⳼⳾⳿⵰⸀⸁⸆-⸈⸋⸎-⸖⸘⸙⸛⸞⸟⸪-⸮⸰-⸹、-〃〽・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꫰꫱꯫︐-︖︙︰﹅﹆﹉-﹌﹐-﹒﹔-﹗﹟-﹡﹨﹪﹫!--'*,./:;?@\。、・",astral:"<22>[<5B>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD>-<2D><><EFBFBD>-<2D>]|<7C>[<5B>-<2D><><EFBFBD>]|<7C>[<5B>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D>]"},{name:"Ps",alias:"Open_Punctuation",bmp:"\\x28\\x5B\\x7B༺༼᚛„⁅⁽₍〈❪❬⟅⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼⸢⸤⸦⸨〈《「『【〖〘〚〝︗︵︷︹︻︽︿﹁﹃﹇﹙﹛﹝⦅「"},{name:"S",alias:"Symbol",bmp:"\\x24\\x2B<->\\x5E`\\x7C~¢-¦¨©¬®-±´¸×÷˂-˅˒-˟˥-˫˭˯-˿͵΄΅϶҂֏؆-؈؋؎؏۞۩۽۾߶৲৳৺৻૱୰௳-௺౿൹฿༁-༃༓༕-༗༚-༟༴༶༸྾-࿅࿇-࿌࿎࿏࿕-࿘႞႟᎐-᎙៛᥀᧞-᧿᭡-᭪᭴-᭼᾽᾿-῁῍-῏῝-῟῭-`´῾⁄⁒⁺-⁼₊-₌₠-₺℀℁℃-℆℈℉℔№-℘℞-℣℥℧℩℮℺℻⅀-⅄⅊-⅍⅏←-⌨⌫-⏳␀-␦⑀-⑊⒜-ⓩ─-⛿✁-❧➔-⟄⟇-⟥⟰-⦂⦙-⧗⧜-⧻⧾-⭌⭐-⭙⳥-⳪⺀-⺙⺛-⻳⼀-⿕⿰-⿻〄〒〓〠〶〷〾〿゛゜㆐㆑㆖-㆟㇀-㇣㈀-㈞㈪-㉇㉐㉠-㉿㊊-㊰㋀-㋾㌀-㏿䷀-䷿꒐-꓆꜀-꜖꜠꜡꞉꞊꠨-꠫꠶-꠹꩷-꩹﬩﮲-﯁﷼﷽﹢﹤-﹦﹩$+<->^`|~¢-₩│-○<EFBFAE>",astral:"<22>[<5B>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B><>]"},{name:"Sc",alias:"Currency_Symbol",bmp:"\\x24¢-¥֏؋৲৳৻૱௹฿៛₠-₺꠸﷼﹩$¢£¥₩"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\x5E`¨¯´¸˂-˅˒-˟˥-˫˭˯-˿͵΄΅᾽᾿-῁῍-῏῝-῟῭-`´῾゛゜꜀-꜖꜠꜡꞉꞊﮲-﯁^` ̄"},{name:"Sm",alias:"Math_Symbol",bmp:"\\x2B<->\\x7C~¬±×÷϶؆-؈⁄⁒⁺-⁼₊-₌℘⅀-⅄⅋←-↔↚↛↠↣↦↮⇎⇏⇒⇔⇴-⋿⌈-⌋⌠⌡⍼⎛-⎳⏜-⏡▷◁◸-◿♯⟀-⟄⟇-⟥⟰-⟿⤀-⦂⦙-⧗⧜-⧻⧾-⫿⬰-⭄⭇-⭌﬩﹢﹤-﹦+<->|~¬←-↓",astral:"<22>[<5B><>]|<7C>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]"},{name:"So",alias:"Other_Symbol",bmp:"¦©®°҂؎؏۞۩۽۾߶৺୰௳-௸௺౿൹༁-༃༓༕-༗༚-༟༴༶༸྾-࿅࿇-࿌࿎࿏࿕-࿘႞႟᎐-᎙᥀᧞-᧿᭡-᭪᭴-᭼℀℁℃-℆℈℉℔№℗℞-℣℥℧℩℮℺℻⅊⅌⅍⅏↕-↙↜-↟↡↢↤↥↧-↭↯-⇍⇐⇑⇓⇕-⇳⌀-⌇⌌-⌟⌢-⌨⌫-⍻⍽-⎚⎴-⏛⏢-⏳␀-␦⑀-⑊⒜-ⓩ─-▶▸-◀◂-◷☀-♮♰-⛿✁-❧➔-➿⠀-⣿⬀-⬯⭅⭆⭐-⭙⳥-⳪⺀-⺙⺛-⻳⼀-⿕⿰-⿻〄〒〓〠〶〷〾〿㆐㆑㆖-㆟㇀-㇣㈀-㈞㈪-㉇㉐㉠-㉿㊊-㊰㋀-㋾㌀-㏿䷀-䷿꒐-꓆꠨-꠫꠶꠷꠹꩷-꩹﷽¦■○<EFBFAE>",astral:"<22>[<5B>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D>]"},{name:"Z",alias:"Separator",bmp:"   -\u2028\u2029 "},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:"   - "}])}(e),function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");e.addUnicodeData([{name:"ASCII",bmp:"\x00-"},{name:"Alphabetic",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͅͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևְ-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-ٗٙ-ٟٮ-ۓە-ۜۡ-ۭۨ-ۯۺ-ۼۿܐ-ܿݍ-ޱߊ-ߪߴߵߺࠀ-ࠗࠚ-ࠬࡀ-ࡘࢠࢢ-ࢬࣤ-ࣰࣩ-ࣾऀ-ऻऽ-ौॎ-ॐॕ-ॣॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হঽ-ৄেৈোৌৎৗড়ঢ়য়-ৣৰৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਾ-ੂੇੈੋੌੑਖ਼-ੜਫ਼ੰ-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽ-ૅે-ૉોૌૐૠ-ૣଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽ-ୄେୈୋୌୖୗଡ଼ଢ଼ୟ-ୣୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-ௌௐௗఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-ౌౕౖౘౙౠ-ౣಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೄೆ-ೈೊ-ೌೕೖೞೠ-ೣೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൌൎൗൠ-ൣൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆා-ුූෘ-ෟෲෳก-ฺเ-ๆํກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆໍໜ-ໟༀཀ-ཇཉ-ཬཱ-ཱྀྈ-ྗྙ-ྼက-ံးျ-ဿၐ-ၢၥ-ၨၮ-ႆႎႜႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜓᜠ-ᜳᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-ឳា-ៈៗៜᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-ᤸᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨛᨠ-ᩞᩡ-ᩴᪧᬀ-ᬳᬵ-ᭃᭅ-ᭋᮀ-ᮩᮬ-ᮯᮺ-ᯥᯧ-ᯱᰀ-ᰵᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳳᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ--ℝℤΩℨK--ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙴ-ꙻꙿ-ꚗꚟ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠧꡀ-ꡳꢀ-ꣃꣲ-ꣷꣻꤊ-ꤪꤰ-ꥒꥠ-ꥼꦀ-ꦲꦴ-ꦿꧏꨀ-ꨶꩀ-ꩍꩠ-ꩶꩺꪀ-ꪾꫀꫂꫛ-ꫝꫠ-ꫯꫲ-ꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",astral:"<22>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|[<5B><>-<2D><>-<2D>][<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B><>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"Any",isBmpLast:!0,bmp:"\x00-￿",astral:"[<5B>-<2D>][<5B>-<2D>]"},{name:"Assigned",inverseOf:"Cn"},{name:"Default_Ignorable_Code_Point",bmp:"­͏-----\ufeff-",astral:"[<5B>-<2D>][<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"Lowercase",bmp:"a-zªµºß-öø-ÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĸĺļľŀłńņňʼnŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżž-ƀƃƅƈƌƍƒƕƙ-ƛƞơƣƥƨƪƫƭưƴƶƹƺƽ-ƿdžljnjǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰdzǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳ-ȹȼȿɀɂɇɉɋɍɏ-ʓʕ-ʸˀˁˠ-ˤͅͱͳͷͺ-ͽΐά-ώϐϑϕ-ϗϙϛϝϟϡϣϥϧϩϫϭϯ-ϳϵϸϻϼа-џѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӏӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧա-ևᴀ-ᶿḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕ-ẝẟạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷιῂ-ῄῆῇῐ-ΐῖῗῠ-ῧῲ-ῴῶῷⁱⁿₐ-ₜℊℎℏℓℯℴℹℼℽⅆ-ⅉⅎⅰ-ⅿↄⓐ-ⓩⰰ-ⱞⱡⱥⱦⱨⱪⱬⱱⱳⱴⱶ-ⱽⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⳬⳮⳳⴀ-ⴥⴧⴭꙁꙃꙅꙇꙉꙋꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꜣꜥꜧꜩꜫꜭꜯ-ꜱꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯ-ꝸꝺꝼꝿꞁꞃꞅꞇꞌꞎꞑꞓꞡꞣꞥꞧꞩꟸ-ꟺff-stﬓ-ﬗa-",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>]|<7C>[<5B>-<2D>]"},{name:"Noncharacter_Code_Point",bmp:"﷐-﷯￾￿",astral:"[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>][<5B><>]"},{name:"Uppercase",bmp:"A-ZÀ-ÖØ-ÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉ-ƋƎ-ƑƓƔƖ-ƘƜƝƟƠƢƤƦƧƩƬƮƯƱ-ƳƵƷƸƼDŽLJNJǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮDZǴǶ-ǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁɃ-ɆɈɊɌɎͰͲͶΆΈ-ΊΌΎΏΑ-ΡΣ-ΫϏϒ-ϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽ-ЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸӺӼӾԀԂԄԆԈԊԌԎԐԒԔԖԘԚԜԞԠԢԤԦԱ-ՖႠ-ჅჇჍḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẞẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸỺỼỾἈ-ἏἘ-ἝἨ-ἯἸ-ἿὈ-ὍὙὛὝὟὨ-ὯᾸ-ΆῈ-ΉῘ-ΊῨ-ῬῸ-Ώℂℇℋ---ℝℤΩℨK--ℳℾℿⅅⅠ-ⅯↃⒶ-ⓏⰀ-ⰮⱠⱢ-ⱤⱧⱩⱫⱭ-ⱰⱲⱵⱾ-ⲀⲂⲄⲆⲈⲊⲌⲎⲐⲒⲔⲖⲘⲚⲜⲞⲠⲢⲤⲦⲨⲪⲬⲮⲰⲲⲴⲶⲸⲺⲼⲾⳀⳂⳄⳆⳈⳊⳌⳎⳐⳒⳔⳖⳘⳚⳜⳞⳠⳢⳫⳭⳲꙀꙂꙄꙆꙈꙊꙌꙎꙐꙒꙔꙖꙘꙚꙜꙞꙠꙢꙤꙦꙨꙪꙬꚀꚂꚄꚆꚈꚊꚌꚎꚐꚒꚔꚖꜢꜤꜦꜨꜪꜬꜮꜲꜴꜶꜸꜺꜼꜾꝀꝂꝄꝆꝈꝊꝌꝎꝐꝒꝔꝖꝘꝚꝜꝞꝠꝢꝤꝦꝨꝪꝬꝮꝹꝻꝽꝾꞀꞂꞄꞆꞋꞍꞐꞒꞠꞢꞤꞦꞨꞪA-",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>]|<7C>[<5B>-<2D>]"},{name:"White_Space",bmp:" -\r …  -\u2028\u2029 "}])}(e),function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");e.addUnicodeData([{name:"Arabic",bmp:"؀-؄؆-؋؍-ؚ؞ؠ-ؿف-يٖ-ٟ٪-ٯٱ-ۜ۞-ۿݐ-ݿࢠࢢ-ࢬࣤ-ࣾﭐ-﯁ﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-﷼ﹰ-ﹴﹶ-ﻼ",astral:"<22>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>]"},{name:"Armenian",bmp:"Ա-Ֆՙ-՟ա-և֊֏ﬓ-ﬗ"},{name:"Avestan",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Balinese",bmp:"ᬀ-ᭋ᭐-᭼"},{name:"Bamum",bmp:"ꚠ-꛷",astral:"<22>[<5B>-<2D>]"},{name:"Batak",bmp:"ᯀ-᯳᯼-᯿"},{name:"Bengali",bmp:"ঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-৻"},{name:"Bopomofo",bmp:"˪˫ㄅ-ㄭㆠ-ㆺ"},{name:"Brahmi",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Braille",bmp:"-⣿"},{name:"Buginese",bmp:"ᨀ-ᨛ᨞᨟"},{name:"Buhid",bmp:"ᝀ-ᝓ"},{name:"Canadian_Aboriginal",bmp:"-ᙿᢰ-ᣵ"},{name:"Carian",astral:"<22>[<5B>-<2D>]"},{name:"Chakma",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Cham",bmp:"ꨀ-ꨶꩀ-ꩍ꩐-꩙꩜-꩟"},{name:"Cherokee",bmp:"-"},{name:"Common",bmp:"\x00-@\\x5B-`\\x7B-©«-¹»-¿×÷ʹ-˟˥-˩ˬ-˿ʹ;΅·։،؛؟ـ٠-٩۝।॥฿࿕-࿘჻᛫-᛭᜵᜶᠂᠃᠅᳓᳡ᳩ-ᳬᳮ-ᳳᳵᳶ ---⁰⁴-⁾₀-₎₠-₺℀-℥℧-℩ℬ--⅍⅏-⅟↉←-⏳␀-␦⑀-⑊①-⛿✁-⟿⤀-⭌⭐-⭙⸀-⸻⿰-⿻ -〄〆〈-〠〰-〷〼-〿゛゜゠・ー㆐-㆟㇀-㇣㈠-㉟㉿-㋏㍘-㏿䷀-䷿꜀-꜡ꞈ-꞊꠰-꠹﴾﴿﷽︐-︙︰-﹒﹔-﹦﹨-﹫\ufeff---・ー゙゚¢-₩│-○-<2D>",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B><>-<2D>]|<7C>[<5B>-<2D><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D>]|<7C>[<5B>-<2D><><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]"},{name:"Coptic",bmp:"Ϣ-ϯⲀ-ⳳ⳹-⳿"},{name:"Cuneiform",astral:"<22>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D>]"},{name:"Cypriot",astral:"<22>[<5B>-<2D><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD>]"},{name:"Cyrillic",bmp:"Ѐ-҄҇-ԧᴫᵸⷠ-ⷿꙀ-ꚗꚟ"},{name:"Deseret",astral:"<22>[<5B>-<2D>]"},{name:"Devanagari",bmp:"ऀ-ॐ॓-ॣ०-ॷॹ-ॿ꣠-ꣻ"},{name:"Egyptian_Hieroglyphs",astral:"<22>[<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"Ethiopic",bmp:"-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፼ᎀ-᎙ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮ"},{name:"Georgian",bmp:"Ⴀ-ჅჇჍა-ჺჼ-ჿⴀ-ⴥⴧⴭ"},{name:"Glagolitic",bmp:"Ⰰ-Ⱞⰰ-ⱞ"},{name:"Gothic",astral:"<22>[<5B>-<2D>]"},{name:"Greek",bmp:"Ͱ-ͳ͵-ͷͺ-ͽ΄ΆΈ-ΊΌΎ-ΡΣ-ϡϰ-Ͽᴦ-ᴪᵝ-ᵡᵦ-ᵪᶿἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ῄῆ-ΐῖ-Ί῝-`ῲ-ῴῶ-῾Ω",astral:"<22>[<5B>-<2D>]|<7C>[<5B>-<2D>]"},{name:"Gujarati",bmp:"ઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૱"},{name:"Gurmukhi",bmp:"ਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵ"},{name:"Han",bmp:"⺀-⺙⺛-⻳⼀-⿕々〇〡-〩〸-〻㐀-䶵一-鿌豈-舘並-龎",astral:"[<5B>-<2D><>-<2D>][<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D>]|<7C>[<5B>-<2D><>-<2D>]|<7C>[<5B>-<2D>]"},{name:"Hangul",bmp:"ᄀ-ᇿ〮〯ㄱ-ㆎ㈀-㈞㉠-㉾ꥠ-ꥼ가-힣ힰ-ퟆퟋ-ퟻᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"},{name:"Hanunoo",bmp:"ᜠ-᜴"},{name:"Hebrew",bmp:"֑-ׇא-תװ-״יִ-זּטּ-לּמּנּסּףּפּצּ-ﭏ"},{name:"Hiragana",bmp:"ぁ-ゖゝ-ゟ",astral:"𛀁|🈀"},{name:"Imperial_Aramaic",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Inherited",bmp:"̀-ًͯ҅҆-ٰٕ॒॑᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿‌‍⃐-〪⃰-゙゚〭︀-️︠-︦",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><>-<2D>]|𐇽|<7C>[<5B>-<2D>]"},{name:"Inscriptional_Pahlavi",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Inscriptional_Parthian",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Javanese",bmp:"ꦀ-꧍ꧏ-꧙꧞꧟"},{name:"Kaithi",astral:"<22>[<5B>-<2D>]"},{name:"Kannada",bmp:"ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲ"},{name:"Katakana",bmp:"ァ-ヺヽ-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ッア-ン",astral:"𛀀"},{name:"Kayah_Li",bmp:"꤀-꤯"},{name:"Kharoshthi",astral:"<22>[<5B>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D><>-<2D><>-<2D><>-<2D>]"},{name:"Khmer",bmp:"ក-៝០-៩៰-៹᧠-᧿"},{name:"Lao",bmp:"ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟ"},{name:"Latin",bmp:"A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿff-stA--"},{name:"Lepcha",bmp:"ᰀ-᰷᰻-᱉ᱍ-ᱏ"},{name:"Limbu",bmp:"ᤀ-ᤜᤠ-ᤫᤰ-᤻᥀᥄-᥏"},{name:"Linear_B",astral:"<22>[<5B>-<2D><>-<2D><>-<2D><><EFBFBD><EFBFBD>-<2D><>-<2D><>-<2D>]"},{name:"Lisu",bmp:"-"},{name:"Lycian",astral:"<22>[<5B>-<2D>]"},{name:"Lydian",astral:"<22>[<5B>-<2D><>]"},{name:"Malayalam",bmp:"ംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൵൹-ൿ"},{name:"Mandaic",bmp:"ࡀ-࡛࡞"},{name:"Meetei_Mayek",bmp:"ꫠ-꫶ꯀ-꯭꯰-꯹"},{name:"Meroitic_Cursive",astral:"<22>[<5B>-<2D><><EFBFBD>]"},{name:"Meroitic_Hieroglyphs",astral:"<22>[<5B>-<2D>]"},{name:"Miao",astral:"<22>[<5B>-<2D><>-<2D><>-<2D>]"},{name:"Mongolian",bmp:"᠀᠁᠄᠆-᠎᠐-᠙ᠠ-ᡷᢀ-ᢪ"},{name:"Myanmar",bmp:"က-႟ꩠ-ꩻ"},{name:"New_Tai_Lue",bmp:"ᦀ-ᦫᦰ-ᧉ᧐-᧚᧞᧟"},{name:"Nko",bmp:"߀-ߺ"},{name:"Ogham",bmp:"-᚜"},{name:"Ol_Chiki",bmp:"᱐-᱿"},{name:"Old_Italic",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Old_Persian",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Old_South_Arabian",astral:"<22>[<5B>-<2D>]"},{name:"Old_Turkic",astral:"<22>[<5B>-<2D>]"},{name:"Oriya",bmp:"ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୷"},{name:"Osmanya",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Phags_Pa",bmp:"ꡀ-꡷"},{name:"Phoenician",astral:"<22>[<5B>-<2D><>]"},{name:"Rejang",bmp:"ꤰ-꥓꥟"},{name:"Runic",bmp:"ᚠ-ᛪᛮ-ᛰ"},{name:"Samaritan",bmp:"ࠀ-࠭࠰-࠾"},{name:"Saurashtra",bmp:"ꢀ-꣄꣎-꣙"},{name:"Sharada",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Shavian",astral:"<22>[<5B>-<2D>]"},{name:"Sinhala",bmp:"ංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲ-෴"},{name:"Sora_Sompeng",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Sundanese",bmp:"ᮀ-ᮿ᳀-᳇"},{name:"Syloti_Nagri",bmp:"ꠀ-꠫"},{name:"Syriac",bmp:"܀-܍܏-݊ݍ-ݏ"},{name:"Tagalog",bmp:"ᜀ-ᜌᜎ-᜔"},{name:"Tagbanwa",bmp:"ᝠ-ᝬᝮ-ᝰᝲᝳ"},{name:"Tai_Le",bmp:"ᥐ-ᥭᥰ-ᥴ"},{name:"Tai_Tham",bmp:"ᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪠-᪭"},{name:"Tai_Viet",bmp:"ꪀ-ꫂꫛ-꫟"},{name:"Takri",astral:"<22>[<5B>-<2D><>-<2D>]"},{name:"Tamil",bmp:"ஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௺"},{name:"Telugu",bmp:"ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯౸-౿"},{name:"Thaana",bmp:"ހ-ޱ"},{name:"Thai",bmp:"ก-ฺเ-๛"},{name:"Tibetan",bmp:"ༀ-ཇཉ-ཬཱ-ྗྙ-ྼ྾-࿌࿎-࿔࿙࿚"},{name:"Tifinagh",bmp:"ⴰ-ⵧⵯ⵰⵿"},{name:"Ugaritic",astral:"<22>[<5B>-<2D><>]"},{name:"Vai",bmp:"ꔀ-ꘫ"},{name:"Yi",bmp:"ꀀ-ꒌ꒐-꓆"}])}(e),e}),define("utils",["underscore","crel","xregexp"],function(_,crel,XRegExp){function jqElt(e){return _.isString(e)?$(e):e}function inputError(e,n){void 0!==n&&(e.stop(!0,!0).addClass("error").delay(1e3).switchClass("error"),n.stopPropagation())}var utils={};utils.getURLParameter=function(e){var n=new RegExp("(?:\\?|\\#\\!|&)"+e+"=(.+?)(?:&|\\#|$)");try{return decodeURIComponent(n.exec(location.search+location.hash)[1])}catch(t){return void 0}},utils.getInputValue=function(e){return e=jqElt(e),e.val()},utils.setInputValue=function(e,n){e=jqElt(e),e.val(n)},utils.getInputTextValue=function(e,n,t){e=jqElt(e);var r=e.val();return void 0===r?void inputError(e,n):(r=utils.trim(r),0===r.length||void 0!==t&&!r.match(t)?void inputError(e,n):r)},utils.getInputIntValue=function(e,n,t,r){e=jqElt(e);var a=utils.getInputTextValue(e,n);return void 0===a?void 0:(a=parseInt(a,10),isNaN(a)||void 0!==t&&t>a||void 0!==r&&a>r?void inputError(e,n):a)},utils.getInputRegExpValue=function(e,n){e=jqElt(e);var t=utils.getInputTextValue(e,n);if(void 0===t)return void 0;try{new RegExp(t)}catch(r){return void inputError(e,n)}return t},utils.getInputJsValue=function(element,event){element=jqElt(element);var value=utils.getInputTextValue(element,event);if(void 0===value)return void 0;try{eval("var test="+value)}catch(e){return void inputError(element,event)}return value},utils.getInputChecked=function(e){return e=jqElt(e),e.prop("checked")},utils.setInputChecked=function(e,n){e=jqElt(e),e.prop("checked",n).change()},utils.getInputRadio=function(e){return $("input:radio[name="+e+"]:checked").prop("value")},utils.setInputRadio=function(e,n){$("input:radio[name="+e+"][value="+n+"]").prop("checked",!0).change()},utils.resetModalInputs=function(){$(".modal input[type=text]:not([disabled]), .modal input[type=password], .modal textarea").val(""),$(".modal input[type=checkbox]").prop("checked",!1).change()},utils.trim=function(e){return $.trim(e)};var nonWordChars=XRegExp("[^\\p{L}\\p{N}-]","g");utils.slugify=function(e){return e.toLowerCase().replace(/\s/g,"-").replace(nonWordChars,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},utils.checkUrl=function(e,n){return e?(0!==e.indexOf("http")&&(e="http://"+e),n&&-1===e.indexOf("/",e.length-1)&&(e+="/"),e):e},utils.randomString=function(){return _.random(4294967296).toString(36)},utils.updateCurrentTime=function(){utils.currentTime=(new Date).getTime()},utils.updateCurrentTime(),utils.storeAttributes=function(){},utils.retrieveIndexArray=function(){},utils.appendIndexToArray=function(){},utils.removeIndexFromArray=function(){},utils.retrieveIgnoreError=function(){};var eventList=[];return utils.logValue=function(){},utils.logStackTrace=function(){},utils.formatEventList=function(){var e=[];return _.each(eventList,function(n){e.push("\n"),_.isString(n)?e.push(n):_.isArray(n)&&(e.push(n[5]||""),e.push(n[6]||""))}),e.join("")},utils}),define("classes/Extension",[],function(){function e(e,n,t,r,a){this.extensionId=e,this.extensionName=n,this.isOptional=t,this.disableInViewer=r,this.disableInLight=a}return e}),define("settings",[],function(){var e={layoutOrientation:"horizontal",lazyRendering:!0,editorFontFamily:'Menlo, Consolas, "Courier New", Courier, monospace',editorFontSize:13,shortcuts:{},extensionSettings:{}};return e});var IN_GLOBAL_SCOPE=!0;window.PR_SHOULD_USE_CONTINUATION=!0;var prettyPrintOne,prettyPrint;!function(){function e(e){function n(e){var n=e.charCodeAt(0);if(92!==n)return n;var t=e.charAt(1);return n=d[t],n?n:t>="0"&&"7">=t?parseInt(e.substring(1),8):"u"===t||"x"===t?parseInt(e.substring(2),16):e.charCodeAt(1)}function t(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);var n=String.fromCharCode(e);return"\\"===n||"-"===n||"]"===n||"^"===n?"\\"+n:n}function r(e){var r=e.substring(1,e.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),a=[],i="^"===r[0],o=["["];i&&o.push("^");for(var s=i?1:0,l=r.length;l>s;++s){var c=r[s];if(/\\[bdsw]/i.test(c))o.push(c);else{var u,d=n(c);l>s+2&&"-"===r[s+1]?(u=n(r[s+2]),s+=2):u=d,a.push([d,u]),65>u||d>122||(65>u||d>90||a.push([32|Math.max(65,d),32|Math.min(u,90)]),97>u||d>122||a.push([-33&Math.max(97,d),-33&Math.min(u,122)]))}}a.sort(function(e,n){return e[0]-n[0]||n[1]-e[1]});for(var p=[],f=[],s=0;s<a.length;++s){var m=a[s];m[0]<=f[1]+1?f[1]=Math.max(f[1],m[1]):p.push(f=m)}for(var s=0;s<p.length;++s){var m=p[s];o.push(t(m[0])),m[1]>m[0]&&(m[1]+1>m[0]&&o.push("-"),o.push(t(m[1])))}return o.push("]"),o.join("")}function a(e){for(var n=e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),a=n.length,s=[],l=0,c=0;a>l;++l){var u=n[l];
if("("===u)++c;else if("\\"===u.charAt(0)){var d=+u.substring(1);d&&(c>=d?s[d]=-1:n[l]=t(d))}}for(var l=1;l<s.length;++l)-1===s[l]&&(s[l]=++i);for(var l=0,c=0;a>l;++l){var u=n[l];if("("===u)++c,s[c]||(n[l]="(?:");else if("\\"===u.charAt(0)){var d=+u.substring(1);d&&c>=d&&(n[l]="\\"+s[d])}}for(var l=0;a>l;++l)"^"===n[l]&&"^"!==n[l+1]&&(n[l]="");if(e.ignoreCase&&o)for(var l=0;a>l;++l){var u=n[l],p=u.charAt(0);u.length>=2&&"["===p?n[l]=r(u):"\\"!==p&&(n[l]=u.replace(/[a-zA-Z]/g,function(e){var n=e.charCodeAt(0);return"["+String.fromCharCode(-33&n,32|n)+"]"}))}return n.join("")}for(var i=0,o=!1,s=!1,l=0,c=e.length;c>l;++l){var u=e[l];if(u.ignoreCase)s=!0;else if(/[a-z]/i.test(u.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){o=!0,s=!1;break}}for(var d={b:8,t:9,n:10,v:11,f:12,r:13},p=[],l=0,c=e.length;c>l;++l){var u=e[l];if(u.global||u.multiline)throw new Error(""+u);p.push("(?:"+a(u)+")")}return new RegExp(p.join("|"),s?"gi":"g")}function n(e,n){function t(e){var l=e.nodeType;if(1==l){if(r.test(e.className))return;for(var c=e.firstChild;c;c=c.nextSibling)t(c);var u=e.nodeName.toLowerCase();("br"===u||"li"===u)&&(a[s]="\n",o[s<<1]=i++,o[s++<<1|1]=e)}else if(3==l||4==l){var d=e.nodeValue;d.length&&(d=n?d.replace(/\r\n?/g,"\n"):d.replace(/[ \t\r\n]+/g," "),a[s]=d,o[s<<1]=i,i+=d.length,o[s++<<1|1]=e)}}var r=/(?:^|\s)nocode(?:\s|$)/,a=[],i=0,o=[],s=0;return t(e),{sourceCode:a.join("").replace(/\n$/,""),spans:o}}function t(e,n,t,r){if(n){var a={sourceCode:n,basePos:e};t(a),r.push.apply(r,a.decorations)}}function r(e){for(var n=void 0,t=e.firstChild;t;t=t.nextSibling){var r=t.nodeType;n=1===r?n?e:t:3===r&&U.test(t.nodeValue)?e:n}return n===e?void 0:n}function a(n,r){var a,i={};!function(){for(var t=n.concat(r),o=[],s={},l=0,c=t.length;c>l;++l){var u=t[l],d=u[3];if(d)for(var p=d.length;--p>=0;)i[d.charAt(p)]=u;var f=u[1],m=""+f;s.hasOwnProperty(m)||(o.push(f),s[m]=null)}o.push(/[\0-\uffff]/),a=e(o)}();var o=r.length,s=function(e){for(var n=e.sourceCode,l=e.basePos,u=[l,P],d=0,p=n.match(a)||[],f={},m=0,g=p.length;g>m;++m){var h,v=p[m],b=f[v],w=void 0;if("string"==typeof b)h=!1;else{var x=i[v.charAt(0)];if(x)w=v.match(x[1]),b=x[0];else{for(var y=0;o>y;++y)if(x=r[y],w=v.match(x[1])){b=x[0];break}w||(b=P)}h=b.length>=5&&"lang-"===b.substring(0,5),!h||w&&"string"==typeof w[1]||(h=!1,b=O),h||(f[v]=b)}var C=d;if(d+=v.length,h){var k=w[1],S=v.indexOf(k),_=S+k.length;w[2]&&(_=v.length-w[2].length,S=_-k.length);var E=b.substring(5);t(l+C,v.substring(0,S),s,u),t(l+C+S,k,c(E,k),u),t(l+C+_,v.substring(_),s,u)}else u.push(l+C,b)}e.decorations=u};return s}function i(e){var n=[],t=[];n.push(e.tripleQuotedStrings?[M,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]:e.multiLineStrings?[M,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]:[M,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&t.push([M,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var r=e.hashComments;r&&(e.cStyleComments?(n.push(r>1?[L,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]:[L,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),t.push([M,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):n.push([L,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(t.push([L,/^\/\/[^\r\n]*/,null]),t.push([L,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var i=e.regexLiterals;if(i){var o=i>1?"":"\n\r",s=o?".":"[\\S\\s]",l="/(?=[^/*"+o+"])(?:[^/\\x5B\\x5C"+o+"]|\\x5C"+s+"|\\x5B(?:[^\\x5C\\x5D"+o+"]|\\x5C"+s+")*(?:\\x5D|$))+/";t.push(["lang-regex",RegExp("^"+q+"("+l+")")])}var c=e.types;c&&t.push([A,c]);var u=(""+e.keywords).replace(/^ | $/g,"");u.length&&t.push([$,new RegExp("^(?:"+u.replace(/[\s,]+/g,"|")+")\\b"),null]),n.push([P,/^\s+/,null," \r\n  "]);var d="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(d+="(?!s*/)"),t.push([R,/^@[a-z_$][a-z_$@0-9]*/i,null],[A,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[P,/^[a-z_$][a-z_$@0-9]*/i,null],[R,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[P,/^\\[\s\S]?/,null],[N,new RegExp(d),null]),a(n,t)}function o(e,n,t){function r(e){var n=e.nodeType;if(1!=n||i.test(e.className)){if((3==n||4==n)&&t){var l=e.nodeValue,c=l.match(o);if(c){var u=l.substring(0,c.index);e.nodeValue=u;var d=l.substring(c.index+c[0].length);if(d){var p=e.parentNode;p.insertBefore(s.createTextNode(d),e.nextSibling)}a(e),u||e.parentNode.removeChild(e)}}}else if("br"===e.nodeName)a(e),e.parentNode&&e.parentNode.removeChild(e);else for(var f=e.firstChild;f;f=f.nextSibling)r(f)}function a(e){function n(e,t){var r=t?e.cloneNode(!1):e,a=e.parentNode;if(a){var i=n(a,1),o=e.nextSibling;i.appendChild(r);for(var s=o;s;s=o)o=s.nextSibling,i.appendChild(s)}return r}for(;!e.nextSibling;)if(e=e.parentNode,!e)return;for(var t,r=n(e.nextSibling,0);(t=r.parentNode)&&1===t.nodeType;)r=t;c.push(r)}for(var i=/(?:^|\s)nocode(?:\s|$)/,o=/\r\n?|\n/,s=e.ownerDocument,l=s.createElement("li");e.firstChild;)l.appendChild(e.firstChild);for(var c=[l],u=0;u<c.length;++u)r(c[u]);n===(0|n)&&c[0].setAttribute("value",n);var d=s.createElement("ol");d.className="linenums";for(var p=Math.max(0,n-1|0)||0,u=0,f=c.length;f>u;++u)l=c[u],l.className="L"+(u+p)%10,l.firstChild||l.appendChild(s.createTextNode(" ")),d.appendChild(l);e.appendChild(d)}function s(e){var n=/\bMSIE\s(\d+)/.exec(navigator.userAgent);n=n&&+n[1]<=8;var t=/\n/g,r=e.sourceCode,a=r.length,i=0,o=e.spans,s=o.length,l=0,c=e.decorations,u=c.length,d=0;c[u]=a;var p,f;for(f=p=0;u>f;)c[f]!==c[f+2]?(c[p++]=c[f++],c[p++]=c[f++]):f+=2;for(u=p,f=p=0;u>f;){for(var m=c[f],g=c[f+1],h=f+2;u>=h+2&&c[h+1]===g;)h+=2;c[p++]=m,c[p++]=g,f=h}u=c.length=p;var v,b=e.sourceNode;b&&(v=b.style.display,b.style.display="none");try{for(;s>l;){var w,x=(o[l],o[l+2]||a),y=c[d+2]||a,h=Math.min(x,y),C=o[l+1];if(1!==C.nodeType&&(w=r.substring(i,h))){n&&(w=w.replace(t,"\r")),C.nodeValue=w;var k=C.ownerDocument,S=k.createElement("span");S.className=c[d+1];var _=C.parentNode;_.replaceChild(S,C),S.appendChild(C),x>i&&(o[l+1]=C=k.createTextNode(r.substring(h,x)),_.insertBefore(C,S.nextSibling))}i=h,i>=x&&(l+=2),i>=y&&(d+=2)}}finally{b&&(b.style.display=v)}}function l(e,n){for(var t=n.length;--t>=0;){var r=n[t];z.hasOwnProperty(r)?f.console&&console.warn("cannot override language handler %s",r):z[r]=e}}function c(e,n){return e&&z.hasOwnProperty(e)||(e=/^\s*</.test(n)?"default-markup":"default-code"),z[e]}function u(e){var t=e.langExtension;try{var r=n(e.sourceNode,e.pre),a=r.sourceCode;e.sourceCode=a,e.spans=r.spans,e.basePos=0,c(t,a)(e),s(e)}catch(i){f.console&&console.log(i&&i.stack||i)}}function d(e,n,t){var r=document.createElement("div");r.innerHTML="<pre>"+e+"</pre>",r=r.firstChild,t&&o(r,t,!0);var a={langExtension:n,numberLines:t,sourceNode:r,pre:1};return u(a),r.innerHTML}function p(e,n){function t(e){return i.getElementsByTagName(e)}function a(){for(var n=f.PR_SHOULD_USE_CONTINUATION?g.now()+250:1/0;v<c.length&&g.now()<n;v++){for(var t=c[v],i=S,l=t;l=l.previousSibling;){var d=l.nodeType,p=(7===d||8===d)&&l.nodeValue;if(p?!/^\??prettify\b/.test(p):3!==d||/\S/.test(l.nodeValue))break;if(p){i={},p.replace(/\b(\w+)=([\w:.%+-]+)/g,function(e,n,t){i[n]=t});break}}var m=t.className;if((i!==S||w.test(m))&&!x.test(m)){for(var _=!1,E=t.parentNode;E;E=E.parentNode){var T=E.tagName;if(k.test(T)&&E.className&&w.test(E.className)){_=!0;break}}if(!_){t.className+=" prettyprinted";var I=i.lang;if(!I){I=m.match(b);var M;!I&&(M=r(t))&&C.test(M.tagName)&&(I=M.className.match(b)),I&&(I=I[1])}var $;if(y.test(t.tagName))$=1;else{var L=t.currentStyle,A=s.defaultView,R=L?L.whiteSpace:A&&A.getComputedStyle?A.getComputedStyle(t,null).getPropertyValue("white-space"):0;$=R&&"pre"===R.substring(0,3)}var N=i.linenums;(N="true"===N||+N)||(N=m.match(/\blinenums\b(?::(\d+))?/),N=N?N[1]&&N[1].length?+N[1]:!0:!1),N&&o(t,N,$),h={langExtension:I,sourceNode:t,numberLines:N,pre:$},u(h)}}}v<c.length?setTimeout(a,250):"function"==typeof e&&e()}for(var i=n||document.body,s=i.ownerDocument||document,l=[t("pre"),t("code"),t("xmp")],c=[],d=0;d<l.length;++d)for(var p=0,m=l[d].length;m>p;++p)c.push(l[d][p]);l=null;var g=Date;g.now||(g={now:function(){return+new Date}});var h,v=0,b=/\blang(?:uage)?-([\w.]+)(?!\S)/,w=/\bprettyprint\b/,x=/\bprettyprinted\b/,y=/pre|xmp/i,C=/^code$/i,k=/^(?:pre|code|xmp)$/i,S={};a()}var f=window,m=["break,continue,do,else,for,if,return,while"],g=[m,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],h=[g,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],v=[h,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],b=[h,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],w=[b,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],x="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",y=[h,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],C="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",k=[m,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],S=[m,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],_=[m,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],E=[m,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],T=[v,w,y,C,k,S,E],I=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,M="str",$="kwd",L="com",A="typ",R="lit",N="pun",P="pln",B="tag",D="dec",O="src",H="atn",F="atv",j="nocode",q="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*",U=/\S/,K=i({keywords:T,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),z={};l(K,["default-code"]),l(a([],[[P,/^[^<?]+/],[D,/^<!\w[^>]*(?:>|$)/],[L,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[N,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),l(a([[P,/^[\s]+/,null," \r\n"],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[B,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[H,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[N,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),l(a([],[[F,/^[\s\S]+/]]),["uq.val"]),l(i({keywords:v,hashComments:!0,cStyleComments:!0,types:I}),["c","cc","cpp","cxx","cyc","m"]),l(i({keywords:"null,true,false"}),["json"]),l(i({keywords:w,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:I}),["cs"]),l(i({keywords:b,cStyleComments:!0}),["java"]),l(i({keywords:E,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),l(i({keywords:k,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),l(i({keywords:C,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),l(i({keywords:S,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),l(i({keywords:y,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),l(i({keywords:x,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),l(i({keywords:_,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),l(a([],[[M,/^[\s\S]+/]]),["regex"]);var G=f.PR={createSimpleLexer:a,registerLangHandler:l,sourceDecorator:i,PR_ATTRIB_NAME:H,PR_ATTRIB_VALUE:F,PR_COMMENT:L,PR_DECLARATION:D,PR_KEYWORD:$,PR_LITERAL:R,PR_NOCODE:j,PR_PLAIN:P,PR_PUNCTUATION:N,PR_SOURCE:O,PR_STRING:M,PR_TAG:B,PR_TYPE:A,prettyPrintOne:IN_GLOBAL_SCOPE?f.prettyPrintOne=d:prettyPrintOne=d,prettyPrint:prettyPrint=IN_GLOBAL_SCOPE?f.prettyPrint=p:prettyPrint=p};"function"==typeof define&&define.amd&&define("google-code-prettify",[],function(){return G})}();var Markdown;Markdown="object"==typeof exports&&"function"==typeof require?exports:{},function(){function e(e){return e}function n(){return!1}function t(){}function r(){}t.prototype={chain:function(n,t){var r=this[n];if(!r)throw new Error("unknown hook "+n);this[n]=r===e?t:function(){var e=Array.prototype.slice.call(arguments,0);return e[0]=r.apply(null,e),t.apply(null,e)}},set:function(e,n){if(!this[e])throw new Error("unknown hook "+e);this[e]=n},addNoop:function(n){this[n]=e},addFalse:function(e){this[e]=n}},Markdown.HookCollection=t,r.prototype={set:function(e,n){this["s_"+e]=n},get:function(e){return this["s_"+e]}},Markdown.Converter=function(){function e(e){return e=e.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?(?=\s|$)[ \t]*\n?[ \t]*((\n*)["(](.+?)[")][ \t]*)?(?:\n+)/gm,function(e,n,t,r,a,i){return n=n.toLowerCase(),P.set(n,k(t)),a?r:(i&&B.set(n,i.replace(/"/g,"&quot;")),"")})}function n(e){return e=e.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,a),e=e.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?.*<\/\2>[ \t]*(?=\n+)\n)/gm,a),e=e.replace(/\n[ ]{0,3}((<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a),e=e.replace(/\n\n[ ]{0,3}(<!(--(?:|(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>[ \t]*(?=\n{2,}))/g,a),e=e.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,a)}function a(e,n){var t=n;return t=t.replace(/^\n+/,""),t=t.replace(/\n+$/g,""),t="\n\n~K"+(D.push(t)-1)+"K\n\n"}function i(e,t){e=N.preBlockGamut(e,H),e=f(e);var r="<hr />\n";return e=e.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,r),e=e.replace(/^[ ]{0,2}([ ]?-[ ]?){3,}[ \t]*$/gm,r),e=e.replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm,r),e=m(e),e=h(e),e=y(e),e=N.postBlockGamut(e,H),e=n(e),e=C(e,t)}function o(e){return e=N.preSpanGamut(e),e=b(e),e=s(e),e=S(e),e=u(e),e=l(e),e=E(e),e=e.replace(/~P/g,"://"),e=k(e),e=R._DoItalicsAndBold?R._DoItalicsAndBold(e):x(e),e=e.replace(/ +\n/g," <br>\n"),e=N.postSpanGamut(e)}function s(e){var n=/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|<!(--(?:|(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>)/gi;return e=e.replace(n,function(e){var n=e.replace(/(.)<\/?code>(?=.)/g,"$1`");return n=L(n,"!"==e.charAt(1)?"\\`*_/":"\\`*_")})}function l(e){return e=e.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,c),e=e.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()<?((?:\([^)]*\)|[^()\s])*?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,c),e=e.replace(/(\[([^\[\]]+)\])()()()()()/g,c)}function c(e,n,t,r,a,i,o,s){void 0==s&&(s="");var l=n,c=t.replace(/:\/\//g,"~P"),u=r.toLowerCase(),p=a,f=s;if(""==p)if(""==u&&(u=c.toLowerCase().replace(/ ?\n/g," ")),p="#"+u,void 0!=P.get(u))p=P.get(u),void 0!=B.get(u)&&(f=B.get(u));else{if(!(l.search(/\(\s*\)$/m)>-1))return l;p=""}p=$(p),p=L(p,"*_");var m='<a href="'+p+'"';return""!=f&&(f=d(f),f=L(f,"*_"),m+=' title="'+f+'"'),m+=">"+c+"</a>"}function u(e){return e=e.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,p),e=e.replace(/(!\[(.*?)\]\s?\([ \t]*()<?(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,p)}function d(e){return e.replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function p(e,n,t,r,a,i,o,s){var l=n,c=t,u=r.toLowerCase(),p=a,f=s;if(f||(f=""),""==p){if(""==u&&(u=c.toLowerCase().replace(/ ?\n/g," ")),p="#"+u,void 0==P.get(u))return l;p=P.get(u),void 0!=B.get(u)&&(f=B.get(u))}c=L(d(c),"*_[]()"),p=L(p,"*_");var m='<img src="'+p+'" alt="'+c+'"';return f=d(f),f=L(f,"*_"),m+=' title="'+f+'"',m+=" />"}function f(e){return e=e.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm,function(e,n){return"<h1>"+o(n)+"</h1>\n\n"}),e=e.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm,function(e,n){return"<h2>"+o(n)+"</h2>\n\n"}),e=e.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm,function(e,n,t){var r=n.length;return"<h"+r+">"+o(t)+"</h"+r+">\n\n"})}function m(e,n){e+="~0";var t=/^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;return O?e=e.replace(t,function(e,t,r){var a=t,i=r.search(/[*+-]/g)>-1?"ul":"ol",o=g(a,i,n);return o=o.replace(/\s+$/,""),o="<"+i+">"+o+"</"+i+">\n"}):(t=/(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g,e=e.replace(t,function(e,n,t,r){var a=n,i=t,o=r.search(/[*+-]/g)>-1?"ul":"ol",s=g(i,o);return s=a+"<"+o+">\n"+s+"</"+o+">\n"})),e=e.replace(/~0/,"")}function g(e,n,t){O++,e=e.replace(/\n{2,}$/,"\n"),e+="~0";var r=F[n],a=new RegExp("(^[ \\t]*)("+r+")[ \\t]+([^\\r]+?(\\n+))(?=(~0|\\1("+r+")[ \\t]+))","gm"),s=!1;return e=e.replace(a,function(e,n,r,a){var l=a,c=/\n\n$/.test(l),u=c||l.search(/\n{2,}/)>-1;return u||s?l=i(I(l),!0):(l=m(I(l),!0),l=l.replace(/\n$/,""),t||(l=o(l))),s=c,"<li>"+l+"</li>\n"}),e=e.replace(/~0/g,""),O--,e}function h(e){return e+="~0",e=e.replace(/(?:\n\n|^\n?)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,function(e,n,t){var r=n,a=t;return r=w(I(r)),r=M(r),r=r.replace(/^\n+/g,""),r=r.replace(/\n+$/g,""),r="<pre><code>"+r+"\n</code></pre>","\n\n"+r+"\n\n"+a}),e=e.replace(/~0/,"")}function v(e){return e=e.replace(/(^\n+|\n+$)/g,""),"\n\n~K"+(D.push(e)-1)+"K\n\n"}function b(e){return e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,n,t,r){var a=r;return a=a.replace(/^([ \t]*)/g,""),a=a.replace(/[ \t]*$/g,""),a=w(a),a=a.replace(/:\/\//g,"~P"),n+"<code>"+a+"</code>"})}function w(e){return e=e.replace(/&/g,"&amp;"),e=e.replace(/</g,"&lt;"),e=e.replace(/>/g,"&gt;"),e=L(e,"*_{}[]\\",!1)}function x(e){return e=e.replace(/([\W_]|^)(\*\*|__)(?=\S)([^\r]*?\S[\*_]*)\2([\W_]|$)/g,"$1<strong>$3</strong>$4"),e=e.replace(/([\W_]|^)(\*|_)(?=\S)([^\r\*_]*?\S)\2([\W_]|$)/g,"$1<em>$3</em>$4")}function y(e){return e=e.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm,function(e,n){var t=n;return t=t.replace(/^[ \t]*>[ \t]?/gm,"~0"),t=t.replace(/~0/g,""),t=t.replace(/^[ \t]+$/gm,""),t=i(t),t=t.replace(/(^|\n)/g,"$1 "),t=t.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(e,n){var t=n;return t=t.replace(/^ /gm,"~0"),t=t.replace(/~0/g,"")}),v("<blockquote>\n"+t+"\n</blockquote>")})}function C(e,n){e=e.replace(/^\n+/g,""),e=e.replace(/\n+$/g,"");for(var t=e.split(/\n{2,}/g),r=[],a=/~K(\d+)K/,i=t.length,s=0;i>s;s++){var l=t[s];a.test(l)?r.push(l):/\S/.test(l)&&(l=o(l),l=l.replace(/^([ \t]*)/g,"<p>"),l+="</p>",r.push(l))}if(!n){i=r.length;for(var s=0;i>s;s++)for(var c=!0;c;)c=!1,r[s]=r[s].replace(/~K(\d+)K/g,function(e,n){return c=!0,D[n]})}return r.join("\n\n")}function k(e){return e=e.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),e=e.replace(/<(?![a-z\/?!]|~D)/gi,"&lt;")}function S(e){return e=e.replace(/\\(\\)/g,A),e=e.replace(/\\([`*_{}\[\]()>#+-.!])/g,A)}function _(e,n,t,r){if(n)return e;if(")"!==r.charAt(r.length-1))return"<"+t+r+">";for(var a=r.match(/[()]/g),i=0,o=0;o<a.length;o++)"("===a[o]?0>=i?i=1:i++:i--;var s="";if(0>i){var l=new RegExp("\\){1,"+-i+"}$");r=r.replace(l,function(e){return s=e,""})}if(s){var c=r.charAt(r.length-1);K.test(c)||(s=c+s,r=r.substr(0,r.length-1))}return"<"+t+r+">"+s}function E(e){e=e.replace(U,_);var n=function(e,n){return'<a href="'+n+'">'+N.plainLinkText(n)+"</a>"};return e=e.replace(/<((https?|ftp):[^'">\s]+)>/gi,n)}function T(e){return e=e.replace(/~E(\d+)E/g,function(e,n){var t=parseInt(n);return String.fromCharCode(t)})}function I(e){return e=e.replace(/^(\t|[ ]{1,4})/gm,"~0"),e=e.replace(/~0/g,"")}function M(e){if(!/\t/.test(e))return e;var n,t=[" "," "," "," "],r=0;return e.replace(/[\n\t]/g,function(e,a){return"\n"===e?(r=a+1,e):(n=(a-r)%4,r=a+1,t[n])})}function $(e){return e?(e.length,e.replace(z,function(e){return"~D"==e?"%24":":"==e?":":"%"+e.charCodeAt(0).toString(16)})):""}function L(e,n,t){var r="(["+n.replace(/([\[\]\\])/g,"\\$1")+"])";t&&(r="\\\\"+r);var a=new RegExp(r,"g");return e=e.replace(a,A)}function A(e,n){var t=n.charCodeAt(0);return"~E"+t+"E"}var R={};this.setOptions=function(e){R=e};var N=this.hooks=new t;N.addNoop("plainLinkText"),N.addNoop("preConversion"),N.addNoop("postNormalization"),N.addNoop("preBlockGamut"),N.addNoop("postBlockGamut"),N.addNoop("preSpanGamut"),N.addNoop("postSpanGamut"),N.addNoop("postConversion");var P,B,D,O;this.makeHtml=function(t){if(P)throw new Error("Recursive call to converter.makeHtml");return P=new r,B=new r,D=[],O=0,t=N.preConversion(t),t=t.replace(/~/g,"~T"),t=t.replace(/\$/g,"~D"),t=t.replace(/\r\n/g,"\n"),t=t.replace(/\r/g,"\n"),t="\n\n"+t+"\n\n",t=M(t),t=t.replace(/^[ \t]+$/gm,""),t=N.postNormalization(t),t=n(t),t=e(t),t=i(t),t=T(t),t=t.replace(/~D/g,"$$"),t=t.replace(/~T/g,"~"),t=N.postConversion(t),D=B=P=null,t};var H=function(e){return i(e)},F={ol:"\\d+[.]",ul:"[*+-]"},j="[-A-Z0-9+&@#/%?=~_|[\\]()!:,.;]",q="[-A-Z0-9+&@#/%=~_|[\\])]",U=new RegExp('(="|<)?\\b(https?|ftp)(://'+j+"*"+q+")(?=$|\\W)","gi"),K=new RegExp(q,"i"),z=/(?:["'*()[\]:]|~D)/g}}(),define("bower-libs/pagedown-ace/Markdown.Converter",function(){}),function(){function e(){}function n(e,n){this.buttonBar=u.getElementById("wmd-button-bar"+e),this.preview=u.getElementById("wmd-preview"+e),this.input=n}function t(n){var t=this,r=n.input;this.init=function(){var e=ace.require("ace/range").Range;!function(n){t.before=r.session.getTextRange(new e(0,0,n.start.row,n.start.column)),t.selection=r.session.getTextRange(),t.after=r.session.getTextRange(new e(n.end.row,n.end.column,Number.MAX_VALUE,Number.MAX_VALUE))}(r.selection.getRange()),this.text=[this.before,this.selection,this.after].join(""),this.length=this.text.length,this.setInputAreaSelectionStartEnd(),this.scrollTop=r.renderer.getScrollTop()},this.setInputAreaSelection=function(){var e=ace.require("ace/range").Range;r.selection.setSelectionRange(function(n,t){return new e(n.row,n.column,t.row,t.column)}(r.session.doc.indexToPosition(t.start),r.session.doc.indexToPosition(t.end))),r.renderer.scrollToY(t.scrollTop),r.focus()},this.setInputAreaSelectionStartEnd=function(){t.start=t.before.length,t.end=t.after.length},this.restore=function(){for(var e=0,n=t.before.length;n>e&&t.before.charCodeAt(e)===t.text.charCodeAt(e);)e++;for(var a=0,i=t.after.length,o=t.after.length-1,s=t.text.length-1;i>a&&t.after.charCodeAt(o-a)===t.text.charCodeAt(s-a);)a++;var l=ace.require("ace/range").Range,c=function(e,n){return new l(e.row,e.column,n.row,n.column)}(r.session.doc.indexToPosition(e),r.session.doc.indexToPosition(t.length-a));r.session.replace(c,t.text.substring(e,s-a+1)),this.setInputAreaSelection()},this.getChunks=function(){var n=new e;return n.before=t.before,n.startTag="",n.selection=t.selection,n.endTag="",n.after=t.after,n.scrollTop=t.scrollTop,n},this.setChunks=function(e){e.before=e.before+e.startTag,e.after=e.endTag+e.after,this.start=e.before.length,this.end=e.before.length+e.selection.length,this.text=e.before+e.selection+e.after,this.scrollTop=e.scrollTop},this.init()}function r(e,n,t,r){var a,i,o,s=3e3,c="delayed",d=function(){var e=0;return window.innerHeight?e=window.pageYOffset:u.documentElement&&u.documentElement.scrollTop?e=u.documentElement.scrollTop:u.body&&(e=u.body.scrollTop),e},p=function(){if(n.preview){var t=n.input.getValue();if(!t||t!=o){o=t;var r=(new Date).getTime();t=e.makeHtml(t);var a=(new Date).getTime();i=a-r,C(t)}}};void 0!==r&&(p=r(p));var f=function(){if(a&&(clearTimeout(a),a=void 0),"manual"!==c){var e=0;"delayed"===c&&(e=i),e>s&&(e=s),a=setTimeout(p,e)}},g=function(e){return e.scrollHeight<=e.clientHeight?1:e.scrollTop/(e.scrollHeight-e.clientHeight)},h=function(){n.preview&&(n.preview.scrollTop=(n.preview.scrollHeight-n.preview.clientHeight)*g(n.preview))};this.refresh=function(e){e?(o="",p()):f()},this.processingTime=function(){return i};var v,b=!0,w=function(e){var t=n.preview,r=t.parentNode,a=t.nextSibling;r.removeChild(t),t.innerHTML=e,a?r.insertBefore(t,a):r.appendChild(t)},x=function(e){n.preview.innerHTML=e},y=function(e){if(v)return v(e);try{x(e),v=x}catch(n){(v=w)(e)}},C=function(e){var r=l.getTop(n.input)-d();if(n.preview&&(y(e),t()),h(),b)return void(b=!1);var a=l.getTop(n.input)-d();m.isIE?setTimeout(function(){window.scrollBy(0,a-r)},0):window.scrollBy(0,a-r)},k=function(){n.input.session.on("change",f),n.preview&&(n.preview.scrollTop=0)};k()}function a(e,n,r,a,i,o,s,l){function c(e){if(0!==e.length){var n=e.pop();x.commands.addCommand({name:s(n),bindKey:h[n],exec:function(){p(y[n])}}),c(e)}}function d(e,i,o){x.focus(),r&&r.setCommandMode();var s=new t(n);if(s){var l=s.getChunks(),c=function(){x.focus(),l&&s.setChunks(l),s.restore(),a.refresh()},u=w.insertLink(l,c,e,i,o);u||c()}}function p(e){x.focus();var i="wmd-link-button"==e.id||"wmd-image-button"==e.id;if(e.textOp){r&&!i&&r.setCommandMode();var o=new t(n);if(!o)return;var s=o.getChunks(),l=function(){x.focus(),s&&o.setChunks(s),o.restore(),a.refresh()},c=e.textOp(s,l);c||l()}e.execute&&e.execute(r)}function f(e,t){var r="0px",a="-20px",i="-40px",o=e.getElementsByTagName("span")[0];e.className=e.className.replace(/ disabled/g,""),t?(o.style.backgroundPosition=e.XShift+" "+r,e.onmouseover=function(){o.style.backgroundPosition=this.XShift+" "+i},e.onmouseout=function(){o.style.backgroundPosition=this.XShift+" "+r},m.isIE&&(e.onmousedown=function(){u.activeElement&&u.activeElement!==n.input||(n.ieCachedRange=document.selection.createRange(),n.ieCachedScrollTop=n.input.renderer.getScrollTop())}),e.isHelp||(e.onclick=function(){return this.onmouseout&&this.onmouseout(),p(this),!1})):(o.style.backgroundPosition=e.XShift+" "+a,e.onmouseover=e.onmouseout=e.onclick=function(){},e.className+=" disabled")}function g(e){return"string"==typeof e&&(e=i[e]),function(){e.apply(i,arguments)}}function v(){var t=n.buttonBar,r=document.createElement("ul");r.id="wmd-button-row"+e,r.className="wmd-button-row",r=t.appendChild(r);var a=0,i=function(n,t,i,o){var s=document.createElement("li");s.className="wmd-button",s.style.left=a+"px",a+=25;var l=document.createElement("span");return s.id=n+e,s.appendChild(l),s.title=t,s.XShift=i,o&&(s.textOp=o),f(s,!0),r.appendChild(s),s};if(y.bold=i("wmd-bold-button",b("bold"),"0px",g("doBold")),y.italic=i("wmd-italic-button",b("italic"),"-20px",g("doItalic")),y.link=i("wmd-link-button",b("link"),"-40px",g(function(e,n){return this.doLinkOrImage(e,n,!1)})),y.quote=i("wmd-quote-button",b("quote"),"-60px",g("doBlockquote")),y.code=i("wmd-code-button",b("code"),"-80px",g("doCode")),y.image=i("wmd-image-button",b("image"),"-100px",g(function(e,n){return this.doLinkOrImage(e,n,!0)})),y.olist=i("wmd-olist-button",b("olist"),"-120px",g(function(e,n){this.doList(e,n,!0)})),y.ulist=i("wmd-ulist-button",b("ulist"),"-140px",g(function(e,n){this.doList(e,n,!1)})),y.heading=i("wmd-heading-button",b("heading"),"-160px",g("doHeading")),y.hr=i("wmd-hr-button",b("hr"),"-180px",g("doHorizontalRule")),y.undo=i("wmd-undo-button",b("undo"),"-200px",null),y.undo.execute=function(){x.session.getUndoManager().undo()},y.redo=i("wmd-redo-button",b("redo"),"-220px",null),y.redo.execute=function(){x.session.getUndoManager().redo()},o){var l=document.createElement("li"),c=document.createElement("span");l.appendChild(c),l.className="wmd-button wmd-help-button",l.id="wmd-help-button"+e,l.XShift="-240px",l.isHelp=!0,l.style.right="0px",l.title=s("help"),l.onclick=o.handler,f(l,!0),r.appendChild(l),y.help=l}C.setUndoRedoButtonStates(),x.session.on("change",function(){C.setUndoRedoButtonStates()})}var b=function(e){return s(e)+" "+l(e)},x=n.input,y={};this.setUndoRedoButtonStates=function(){setTimeout(function(){f(y.undo,x.session.getUndoManager().hasUndo()),f(y.redo,x.session.getUndoManager().hasRedo())},50)};var C=this;v();var k="keydown";m.isOpera&&(k="keypress"),c(["bold","italic","link","quote","code","image","olist","ulist","heading","hr"]),MD.insertLink=d,MD.insertLink2=d,this.buttons=y,this.setButtonState=f}function i(e,n){this.hooks=e,this.getString=n}function o(e){return e.replace(/^\s*(.*?)(?:\s+"(.+)")?\s*$/,function(e,n,t){return n=n.replace(/\?.*$/,function(e){return e.replace(/\+/g," ")}),n=decodeURIComponent(n),n=encodeURI(n).replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29"),n=n.replace(/\?.*$/,function(e){return e.replace(/\+/g,"%2b")}),t&&(t=t.trim?t.trim():t.replace(/^\s*/,"").replace(/\s*$/,""),t=t.replace(/"/g,"quot;").replace(/\(/g,"&#40;").replace(/\)/g,"&#41;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),t?n+' "'+t+'"':n})}var s={},l={},c={},u=window.document,d=window.RegExp,p=window.navigator,f={lineLength:72},m={isIE:/msie/.test(p.userAgent.toLowerCase()),isIE_5or6:/msie 6/.test(p.userAgent.toLowerCase())||/msie 5/.test(p.userAgent.toLowerCase()),isOpera:/opera/.test(p.userAgent.toLowerCase())},g={bold:getMsg("Strong")+" <strong>",boldexample:getMsg("strong text"),italic:getMsg("Emphasis")+" <em>",italicexample:getMsg("emphasized text"),link:getMsg("Hyperlink")+" <a>",linkdescription:getMsg("enter link description here"),linkdialog:'<p><b>Insert Hyperlink</b></p><p>http://example.com/ "optional title"</p>',quote:getMsg("Blockquote")+" <blockquote>",quoteexample:getMsg("Blockquote"),code:getMsg("Code Sample")+" <pre><code>",codeexample:getMsg("enter code here"),image:getMsg("Image")+" <img>",imagedescription:getMsg("enter image description here"),imagedialog:"<p><b>Insert Image</b></p><p>http://example.com/images/diagram.jpg \"optional title\"<br><br>Need <a href='http://www.google.com/search?q=free+image+hosting' target='_blank'>free image hosting?</a></p>",olist:getMsg("Numbered List")+" <ol>",ulist:getMsg("Bulleted List")+" <ul>",litem:getMsg("List item"),heading:getMsg("Heading")+" <h1>/<h2>",headingexample:getMsg("Heading"),hr:getMsg("Horizontal Rule")+" <hr>",undo:getMsg("Undo")+" -",redo:getMsg("Redo")+" -",help:"Markdown Editing Help"},h={bold:{win:"Ctrl-B",mac:"Command-B|Ctrl-B"},italic:{win:"Ctrl-I",mac:"Command-I|Ctrl-I"},link:{win:"Ctrl-L",mac:"Command-L|Ctrl-L"},quote:{win:"Ctrl-Q",mac:"Command-Q|Ctrl-Q"},code:{win:"Ctrl-K",mac:"Command-K|Ctrl-K"},image:{win:"Ctrl-G",mac:"Command-G|Ctrl-G"},olist:{win:"Ctrl-O",mac:"Command-O|Ctrl-O"},ulist:{win:"Ctrl-U",mac:"Command-U|Ctrl-U"},heading:{win:"Ctrl-H",mac:"Command-H|Ctrl-H"},hr:{win:"Ctrl-R",mac:"Command-R|Ctrl-R"},undo:{win:"Ctrl-Z",mac:"Command-Z"},redo:{win:"Ctrl-Y|Ctrl-Shift-Z",mac:"Command-Y|Command-Shift-Z"}},v="http://",b="http://";Markdown.Editor=function(e,t,o){if(o=o||{},"function"==typeof o.handler&&(o={helpButton:o}),o.strings=o.strings||{},o.helpButton&&(o.strings.help=o.strings.help||o.helpButton.title),o.keyStrokes)for(var s in o.keyStrokes)h[s]=o.keyStrokes[s];
var l=function(e){return o.strings[e]||g[e]};t=t||"";var c=this.hooks=new Markdown.HookCollection;c.addNoop("onPreviewRefresh"),c.addNoop("postBlockquoteCreation"),c.addFalse("insertImageDialog"),c.addFalse("insertLinkDialog"),this.getConverter=function(){return e};var u,d,p=this;this.run=function(s,f){if(!u){u=new n(t,s);var m,g=new i(c,l),v=new r(e,u,function(){c.onPreviewRefresh()},f),b=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),w="mac"==b,x=function(e){var n=h[e][w?"mac":"win"],t=n.indexOf("|");return n.substring(0,t>0?t:n.length)};m=new a(t,u,d,v,g,o.helpButton,l,x),m.setUndoRedoButtonStates();var y=p.refreshPreview=function(){v.refresh(!0)};y(),p.uiManager=m}}},e.prototype.findTags=function(e,n){var t,r=this;e&&(t=s.extendRegExp(e,"","$"),this.before=this.before.replace(t,function(e){return r.startTag=r.startTag+e,""}),t=s.extendRegExp(e,"^",""),this.selection=this.selection.replace(t,function(e){return r.startTag=r.startTag+e,""})),n&&(t=s.extendRegExp(n,"","$"),this.selection=this.selection.replace(t,function(e){return r.endTag=e+r.endTag,""}),t=s.extendRegExp(n,"^",""),this.after=this.after.replace(t,function(e){return r.endTag=e+r.endTag,""}))},e.prototype.trimWhitespace=function(e){var n,t,r=this;e?n=t="":(n=function(e){return r.before+=e,""},t=function(e){return r.after=e+r.after,""}),this.selection=this.selection.replace(/^(\s*)/,n).replace(/(\s*)$/,t)},e.prototype.skipLines=function(e,n,t){void 0===e&&(e=1),void 0===n&&(n=1),e++,n++;var r,a;if(navigator.userAgent.match(/Chrome/)&&"X".match(/()./),this.selection=this.selection.replace(/(^\n*)/,""),this.startTag=this.startTag+d.$1,this.selection=this.selection.replace(/(\n*$)/,""),this.endTag=this.endTag+d.$1,this.startTag=this.startTag.replace(/(^\n*)/,""),this.before=this.before+d.$1,this.endTag=this.endTag.replace(/(\n*$)/,""),this.after=this.after+d.$1,this.before){for(r=a="";e--;)r+="\\n?",a+="\n";t&&(r="\\n*"),this.before=this.before.replace(new d(r+"$",""),a)}if(this.after){for(r=a="";n--;)r+="\\n?",a+="\n";t&&(r="\\n*"),this.after=this.after.replace(new d(r,""),a)}},s.isVisible=function(e){return window.getComputedStyle?"none"!==window.getComputedStyle(e,null).getPropertyValue("display"):e.currentStyle?"none"!==e.currentStyle.display:void 0},s.addEvent=function(e,n,t){e.attachEvent?e.attachEvent("on"+n,t):e.addEventListener(n,t,!1)},s.removeEvent=function(e,n,t){e.detachEvent?e.detachEvent("on"+n,t):e.removeEventListener(n,t,!1)},s.fixEolChars=function(e){return e=e.replace(/\r\n/g,"\n"),e=e.replace(/\r/g,"\n")},s.extendRegExp=function(e,n,t){(null===n||void 0===n)&&(n=""),(null===t||void 0===t)&&(t="");var r,a=e.toString();return a=a.replace(/\/([gim]*)$/,function(e,n){return r=n,""}),a=a.replace(/(^\/|\/$)/g,""),a=n+a+t,new d(a,r)},l.getTop=function(e,n){var t=e.offsetTop;if(!n)for(;e=e.offsetParent;)t+=e.offsetTop;return t},l.getHeight=function(e){return e.offsetHeight||e.scrollHeight},l.getWidth=function(e){return e.offsetWidth||e.scrollWidth},l.getPageSize=function(){var e,n,t,r;self.innerHeight&&self.scrollMaxY?(e=u.body.scrollWidth,n=self.innerHeight+self.scrollMaxY):u.body.scrollHeight>u.body.offsetHeight?(e=u.body.scrollWidth,n=u.body.scrollHeight):(e=u.body.offsetWidth,n=u.body.offsetHeight),self.innerHeight?(t=self.innerWidth,r=self.innerHeight):u.documentElement&&u.documentElement.clientHeight?(t=u.documentElement.clientWidth,r=u.documentElement.clientHeight):u.body&&(t=u.body.clientWidth,r=u.body.clientHeight);var a=Math.max(e,t),i=Math.max(n,r);return[a,i,t,r]},c.createBackground=function(){var e=u.createElement("div"),n=e.style;e.className="wmd-prompt-background",n.position="absolute",n.top="0",n.zIndex="1000",m.isIE?n.filter="alpha(opacity=50)":n.opacity="0.5";var t=l.getPageSize();return n.height=t[1]+"px",m.isIE?(n.left=u.documentElement.scrollLeft,n.width=u.documentElement.clientWidth):(n.left="0",n.width="100%"),u.body.appendChild(e),e},c.prompt=function(e,n,t){var r,a;void 0===n&&(n="");var i=function(e){var n=e.charCode||e.keyCode;27===n&&o(!0)},o=function(e){s.removeEvent(u.body,"keydown",i);var n=a.value;return e?n=null:(n=n.replace(/^http:\/\/(https?|ftp):\/\//,"$1://"),/^(?:https?|ftp):\/\//.test(n)||(n="http://"+n)),r.parentNode.removeChild(r),t(n),!1},c=function(){r=u.createElement("div"),r.className="wmd-prompt-dialog",r.style.padding="10px;",r.style.position="fixed",r.style.width="400px",r.style.zIndex="1001";var t=u.createElement("div");t.innerHTML=e,t.style.padding="5px",r.appendChild(t);var c=u.createElement("form"),d=c.style;c.onsubmit=function(){return o(!1)},d.padding="0",d.margin="0",d.cssFloat="left",d.width="100%",d.textAlign="center",d.position="relative",r.appendChild(c),a=u.createElement("input"),a.type="text",a.value=n,d=a.style,d.display="block",d.width="80%",d.marginLeft=d.marginRight="auto",c.appendChild(a);var p=u.createElement("input");p.type="button",p.onclick=function(){return o(!1)},p.value="OK",d=p.style,d.margin="10px",d.display="inline",d.width="7em";var f=u.createElement("input");f.type="button",f.onclick=function(){return o(!0)},f.value="Cancel",d=f.style,d.margin="10px",d.display="inline",d.width="7em",c.appendChild(p),c.appendChild(f),s.addEvent(u.body,"keydown",i),r.style.top="50%",r.style.left="50%",r.style.display="block",m.isIE_5or6&&(r.style.position="absolute",r.style.top=u.documentElement.scrollTop+200+"px",r.style.left="50%"),u.body.appendChild(r),r.style.marginTop=-(l.getHeight(r)/2)+"px",r.style.marginLeft=-(l.getWidth(r)/2)+"px"};setTimeout(function(){c();var e=n.length;if(void 0!==a.selectionStart)a.selectionStart=0,a.selectionEnd=e;else if(a.createTextRange){var t=a.createTextRange();t.collapse(!1),t.moveStart("character",-e),t.moveEnd("character",e),t.select()}a.focus()},0)};var w=i.prototype;w.prefixes="(?:\\s{4,}|\\s*>|\\s*-\\s+|\\s*\\d+\\.|=|\\+|-|_|\\*|#|\\s*\\[[^\n]]+\\]:)",w.unwrap=function(e){var n=new d("([^\\n])\\n(?!(\\n|"+this.prefixes+"))","g");e.selection=e.selection.replace(n,"$1 $2")},w.wrap=function(e,n){this.unwrap(e);var t=new d("(.{1,"+n+"})( +|$\\n?)","gm"),r=this;e.selection=e.selection.replace(t,function(e,n){return new d("^"+r.prefixes,"").test(e)?e:n+"\n"}),e.selection=e.selection.replace(/\s+$/,"")},w.doBold=function(e,n){return this.doBorI(e,n,2,this.getString("boldexample"))},w.doItalic=function(e,n){return this.doBorI(e,n,1,this.getString("italicexample"))},w.doBorI=function(e,n,t,r){e.trimWhitespace(),e.selection=e.selection.replace(/\n{2,}/g,"\n");var a=/(\**$)/.exec(e.before)[0],i=/(^\**)/.exec(e.after)[0],o=Math.min(a.length,i.length);if(o>=t&&(2!=o||1!=t))e.before=e.before.replace(d("[*]{"+t+"}$",""),""),e.after=e.after.replace(d("^[*]{"+t+"}",""),"");else if(!e.selection&&i){e.after=e.after.replace(/^([*_]*)/,""),e.before=e.before.replace(/(\s?)$/,"");var s=d.$1;e.before=e.before+i+s}else{e.selection||i||(e.selection=r);var l=1>=t?"*":"**";e.before=e.before+l,e.after=l+e.after}},w.stripLinkDefs=function(e,n){return e=e.replace(/^[ ]{0,3}\[(\d+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|$)/gm,function(e,t,r,a,i){return n[t]=e.replace(/\s*$/,""),a?(n[t]=e.replace(/["(](.+?)[")]$/,""),a+i):""})},w.addLinkDef=function(e,n){var t=0,r={};e.before=this.stripLinkDefs(e.before,r),e.selection=this.stripLinkDefs(e.selection,r),e.after=this.stripLinkDefs(e.after,r);var a="",i=/(\[)((?:\[[^\]]*\]|[^\[\]])*)(\][ ]?(?:\n[ ]*)?\[)(\d+)(\])/g,o=function(e){t++,e=e.replace(/^[ ]{0,3}\[(\d+)\]:/," ["+t+"]:"),a+="\n"+e},s=function(e,n,a,l,c,u){return a=a.replace(i,s),r[c]?(o(r[c]),n+a+l+t+u):e};e.before=e.before.replace(i,s),n?o(n):e.selection=e.selection.replace(i,s);var l=t;return e.after=e.after.replace(i,s),e.after&&(e.after=e.after.replace(/\n*$/,"")),e.after||(e.selection=e.selection.replace(/\n*$/,"")),e.after+="\n\n"+a,l},w.insertLink=function(e,n,t,r,a){e.trimWhitespace(),e.findTags(/\s*!?\[/,/\][ ]?(?:\n[ ]*)?(\[.*?\])?/);var i;if(!(e.endTag.length>1&&e.startTag.length>0)){if(e.selection=e.startTag+e.selection+e.endTag,e.startTag=e.endTag="",/\n\n/.test(e.selection))return void this.addLinkDef(e,null);var s=function(t){i.parentNode.removeChild(i),null!==t&&(e.selection=(" "+e.selection).replace(/([^\\](?:\\\\)*)(?=[[\]])/g,"$1\\").substr(1),e.startTag=a?"![":"[",e.endTag="]("+o(t)+")",e.selection=r),n()};return i=c.createBackground(),s(t),!0}e.startTag=e.startTag.replace(/!?\[/,""),e.endTag="",this.addLinkDef(e,null)},w.doLinkOrImage=function(e,n,t){e.trimWhitespace(),e.findTags(/\s*!?\[/,/\][ ]?(?:\n[ ]*)?(\(.*?\))?/);var r;if(!(e.endTag.length>1&&e.startTag.length>0)){if(e.selection=e.startTag+e.selection+e.endTag,e.startTag=e.endTag="",/\n\n/.test(e.selection))return void this.addLinkDef(e,null);var a=this,i=function(i,s){if(r.parentNode.removeChild(r),null!==i&&(e.selection=(" "+e.selection).replace(/([^\\](?:\\\\)*)(?=[[\]])/g,"$1\\").substr(1),e.startTag=t?"![":"[",e.endTag="]("+o(i)+")",!e.selection)){var l="";l=s?s:a.getString(t?"imagedescription":"linkdescription"),e.selection=l}n()};return r=c.createBackground(),t?this.hooks.insertImageDialog(i)||c.prompt(this.getString("imagedialog"),v,i):this.hooks.insertLinkDialog(i)||c.prompt(this.getString("linkdialog"),b,i),!0}e.startTag=e.startTag.replace(/!?\[/,""),e.endTag="",this.addLinkDef(e,null)},w.doAutoindent=function(e){var n=this,t=!1;e.before=e.before.replace(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]*\n$/,"\n\n"),e.before=e.before.replace(/(\n|^)[ ]{0,3}>[ \t]*\n$/,"\n\n"),e.before=e.before.replace(/(\n|^)[ \t]+\n$/,"\n\n"),e.selection||/^[ \t]*(?:\n|$)/.test(e.after)||(e.after=e.after.replace(/^[^\n]*/,function(n){return e.selection=n,""}),t=!0),/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]+.*\n$/.test(e.before)&&n.doList&&n.doList(e),/(\n|^)[ ]{0,3}>[ \t]+.*\n$/.test(e.before)&&n.doBlockquote&&n.doBlockquote(e),/(\n|^)(\t|[ ]{4,}).*\n$/.test(e.before)&&n.doCode&&n.doCode(e),t&&(e.after=e.selection+e.after,e.selection="")},w.doBlockquote=function(e){e.selection=e.selection.replace(/^(\n*)([^\r]+?)(\n*)$/,function(n,t,r,a){return e.before+=t,e.after=a+e.after,r}),e.before=e.before.replace(/(>[ \t]*)$/,function(n,t){return e.selection=t+e.selection,""}),e.selection=e.selection.replace(/^(\s|>)+$/,""),e.selection=e.selection||this.getString("quoteexample");var n,t="",r="";if(e.before){for(var a=e.before.replace(/\n$/,"").split("\n"),i=!1,o=0;o<a.length;o++){var s=!1;n=a[o],i=i&&n.length>0,/^>/.test(n)?(s=!0,!i&&n.length>1&&(i=!0)):s=/^[ \t]*$/.test(n)?!0:i,s?t+=n+"\n":(r+=t+n,t="\n")}/(^|\n)>/.test(t)||(r+=t,t="")}e.startTag=t,e.before=r;var l=function(n){var t=n?"> ":"";e.startTag&&(e.startTag=e.startTag.replace(/\n((>|\s)*)\n$/,function(e,n){return"\n"+n.replace(/^[ ]{0,3}>?[ \t]*$/gm,t)+"\n"})),e.endTag&&(e.endTag=e.endTag.replace(/^\n((>|\s)*)\n/,function(e,n){return"\n"+n.replace(/^[ ]{0,3}>?[ \t]*$/gm,t)+"\n"}))};/^(?![ ]{0,3}>)/m.test(e.selection)?(this.wrap(e,f.lineLength-2),e.selection=e.selection.replace(/^/gm,"> "),l(!0),e.skipLines()):(e.selection=e.selection.replace(/^[ ]{0,3}> ?/gm,""),this.unwrap(e),l(!1),!/^(\n|^)[ ]{0,3}>/.test(e.selection)&&e.startTag&&(e.startTag=e.startTag.replace(/\n{0,2}$/,"\n\n")),!/(\n|^)[ ]{0,3}>.*$/.test(e.selection)&&e.endTag&&(e.endTag=e.endTag.replace(/^\n{0,2}/,"\n\n"))),e.selection=this.hooks.postBlockquoteCreation(e.selection),/\n/.test(e.selection)||(e.selection=e.selection.replace(/^(> *)/,function(n,t){return e.startTag+=t,""}))},w.doCode=function(e){var n=/\S[ ]*$/.test(e.before),t=/^[ ]*\S/.test(e.after);if(!t&&!n||/\n/.test(e.selection)){e.before=e.before.replace(/[ ]{4}$/,function(n){return e.selection=n+e.selection,""});var r=1,a=1;/(\n|^)(\t|[ ]{4,}).*\n$/.test(e.before)&&(r=0),/^\n(\t|[ ]{4,})/.test(e.after)&&(a=0),e.skipLines(r,a),e.selection?/^[ ]{0,3}\S/m.test(e.selection)?/\n/.test(e.selection)?e.selection=e.selection.replace(/^/gm," "):e.before+=" ":e.selection=e.selection.replace(/^(?:[ ]{4}|[ ]{0,3}\t)/gm,""):(e.startTag=" ",e.selection=this.getString("codeexample"))}else e.trimWhitespace(),e.findTags(/`/,/`/),e.startTag||e.endTag?e.endTag&&!e.startTag?(e.before+=e.endTag,e.endTag=""):e.startTag=e.endTag="":(e.startTag=e.endTag="`",e.selection||(e.selection=this.getString("codeexample")))},w.doList=function(e,n,t){var r=/(\n|^)(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*$/,a=/^\n*(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*/,i="-",o=1,s=function(){var e;return t?(e=" "+o+". ",o++):e=" "+i+" ",e},l=function(e){return void 0===t&&(t=/^\s*\d/.test(e)),e=e.replace(/^[ ]{0,3}([*+-]|\d+[.])\s/gm,function(){return s()})};if(e.findTags(/(\n|^)*[ ]{0,3}([*+-]|\d+[.])\s+/,null),!e.before||/\n$/.test(e.before)||/^\n/.test(e.startTag)||(e.before+=e.startTag,e.startTag=""),e.startTag){var c=/\d+[.]/.test(e.startTag);if(e.startTag="",e.selection=e.selection.replace(/\n[ ]{4}/g,"\n"),this.unwrap(e),e.skipLines(),c&&(e.after=e.after.replace(a,l)),t==c)return}var u=1;e.before=e.before.replace(r,function(e){return/^\s*([*+-])/.test(e)&&(i=d.$1),u=/[^\n]\n\n[^\n]/.test(e)?1:0,l(e)}),e.selection||(e.selection=this.getString("litem"));var p=s(),m=1;e.after=e.after.replace(a,function(e){return m=/[^\n]\n\n[^\n]/.test(e)?1:0,l(e)}),e.trimWhitespace(!0),e.skipLines(u,m,!0),e.startTag=p;var g=p.replace(/./g," ");this.wrap(e,f.lineLength-g.length),e.selection=e.selection.replace(/\n/g,"\n"+g)},w.doHeading=function(e){if(e.selection=e.selection.replace(/\s+/g," "),e.selection=e.selection.replace(/(^\s+|\s+$)/g,""),!e.selection)return e.before&&"\n"!=e.before[e.before.length-1]&&e.skipLines(1,1),e.startTag="# ",e.selection=this.getString("headingexample"),void(e.endTag="");e.findTags(/#+[ ]*/,/[ ]*#+/),e.before&&"\n"!=e.before[e.before.length-1]&&e.skipLines(1,1);var n=0,t=e.startTag;/^#+[ ]*$/.test(t)&&(t=t.replace(/ /g,""),n=t.length);var r=0;if(n>=0&&3>=n&&(r=n+1),n>=4&&(r=0,e.startTag=""),r>0){for(var a="";r--;)a+="#";a+=" ",e.startTag=a}},w.doHorizontalRule=function(e){e.startTag="----------\n",e.selection="",e.skipLines(1,1,!0)}}(),define("pagedown-ace",function(){}),function(){function e(e){return e.replace(/^\s+|\s+$/g,"")}function n(e){return e.replace(/\s+$/g,"")}function t(e){return e.replace(new RegExp("^(\\t|[ ]{1,4})","gm"),"")}function r(e,n){return-1!=e.indexOf(n)}function a(e,n){return e.replace(/<[^>]*>?/gi,function(e){return e.match(n)?e:""})}function i(e,n){for(var t={},r=0;r<e.length;r++)t[e[r]]=e[r];for(r=0;r<n.length;r++)t[n[r]]=n[r];var a=[];for(var i in t)t.hasOwnProperty(i)&&a.push(t[i]);return a}function o(e){return""!=e.charAt(0)&&(e=""+e),""!=e.charAt(e.length-1)&&(e+=""),e}function s(e){return""==e.charAt(0)&&(e=e.substr(1)),""==e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),e}function l(e,n){return a(c(e,n),g)}function c(e,n){var t=n.blockGamutHookCallback(e);return t=p(t),t=t.replace(/~D/g,"$$").replace(/~T/g,"~"),t=n.previousPostConversion(t)}function u(e){return e.replace(/\\\|/g,"~I").replace(/\\:/g,"~i")}function d(e){return e.replace(/~I/g,"|").replace(/~i/g,":")}function p(e){return e=e.replace(/~E(\d+)E/g,function(e,n){var t=parseInt(n);return String.fromCharCode(t)})}function f(e){return e.toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function m(e,n){var t=n;return t=t.replace(/&\#8220;/g,'"'),t=t.replace(/&\#8221;/g,'"'),t=t.replace(/&\#8216;/g,"'"),t=t.replace(/&\#8217;/g,"'"),t=t.replace(/&\#8212;/g,"---"),t=t.replace(/&\#8211;/g,"--"),t=t.replace(/&\#8230;/g,"...")}var g=new RegExp(["^(<\\/?(a|abbr|acronym|applet|area|b|basefont|","bdo|big|button|cite|code|del|dfn|em|figcaption|","font|i|iframe|img|input|ins|kbd|label|map|","mark|meter|object|param|progress|q|ruby|rp|rt|s|","samp|script|select|small|span|strike|strong|","sub|sup|textarea|time|tt|u|var|wbr)[^>]*>|","<(br)\\s?\\/?>)$"].join(""),"i");Array.indexOf||(Array.prototype.indexOf=function(e){for(var n=0;n<this.length;n++)if(this[n]==e)return n;return-1}),Markdown.Extra=function(){this.converter=null,this.hashBlocks=[],this.footnotes={},this.usedFootnotes=[],this.attributeBlocks=!1,this.googleCodePrettify=!1,this.highlightJs=!1,this.tableClass="",this.tabWidth=4},Markdown.Extra.init=function(e,n){var t=new Markdown.Extra,a=[],i=[],o=[],s=["unHashExtraBlocks"];return n=n||{},n.extensions=n.extensions||["all"],r(n.extensions,"all")&&(n.extensions=["tables","fenced_code_gfm","def_list","attr_list","footnotes","smartypants","strikethrough","newlines"]),i.push("wrapHeaders"),r(n.extensions,"attr_list")&&(a.push("hashFcbAttributeBlocks"),i.push("hashHeaderAttributeBlocks"),s.push("applyAttributeBlocks"),t.attributeBlocks=!0),r(n.extensions,"fenced_code_gfm")&&(i.push("fencedCodeBlocks"),a.push("fencedCodeBlocks")),r(n.extensions,"tables")&&i.push("tables"),r(n.extensions,"def_list")&&i.push("definitionLists"),r(n.extensions,"footnotes")&&(a.push("stripFootnoteDefinitions"),i.push("doFootnotes"),s.push("printFootnotes")),r(n.extensions,"smartypants")&&s.push("runSmartyPants"),r(n.extensions,"strikethrough")&&o.push("strikethrough"),r(n.extensions,"newlines")&&o.push("newlines"),e.hooks.chain("postNormalization",function(e){return t.doTransform(a,e)+"\n"}),e.hooks.chain("preBlockGamut",function(e,n){return t.blockGamutHookCallback=n,e=u(e),e=t.doTransform(i,e)+"\n",e=d(e)}),e.hooks.chain("postSpanGamut",function(e){return t.doTransform(o,e)}),t.previousPostConversion=e.hooks.postConversion,e.hooks.chain("postConversion",function(e){return e=t.doTransform(s,e),t.hashBlocks=[],t.footnotes={},t.usedFootnotes=[],e}),"highlighter"in n&&(t.googleCodePrettify="prettify"===n.highlighter,t.highlightJs="highlight"===n.highlighter),"table_class"in n&&(t.tableClass=n.table_class),t.converter=e,t},Markdown.Extra.prototype.doTransform=function(e,n){for(var t=0;t<e.length;t++)n=this[e[t]](n);return n},Markdown.Extra.prototype.hashExtraBlock=function(e){return"\n<p>~X"+(this.hashBlocks.push(e)-1)+"X</p>\n"},Markdown.Extra.prototype.hashExtraInline=function(e){return"~X"+(this.hashBlocks.push(e)-1)+"X"},Markdown.Extra.prototype.unHashExtraBlocks=function(e){function n(){var r=!1;e=e.replace(/(?:<p>)?~X(\d+)X(?:<\/p>)?/g,function(e,n){r=!0;var a=parseInt(n,10);return t.hashBlocks[a]}),r===!0&&n()}var t=this;return n(),e},Markdown.Extra.prototype.wrapHeaders=function(e){function n(e){return"\n"+e+"\n"}return e=e.replace(/^.+[ \t]*\n=+[ \t]*\n+/gm,n),e=e.replace(/^.+[ \t]*\n-+[ \t]*\n+/gm,n),e=e.replace(/^\#{1,6}[ \t]*.+?[ \t]*\#*\n+/gm,n)};var h="\\{[ \\t]*((?:[#.][-_:a-zA-Z0-9]+[ \\t]*)+)\\}",v=new RegExp("^(#{1,6}.*#{0,6})[ \\t]+"+h+"[ \\t]*(?:\\n|0x03)","gm"),b=new RegExp("^(.*)[ \\t]+"+h+"[ \\t]*\\n(?=[\\-|=]+\\s*(?:\\n|0x03))","gm"),w=new RegExp("^(```[ \\t]*[^{\\s]*)[ \\t]+"+h+"[ \\t]*\\n(?=([\\s\\S]*?)\\n```[ \\t]*(\\n|0x03))","gm");Markdown.Extra.prototype.hashHeaderAttributeBlocks=function(e){function n(e,n,r){return"<p>~XX"+(t.hashBlocks.push(r)-1)+"XX</p>\n"+n+"\n"}var t=this;return e=e.replace(v,n),e=e.replace(b,n)},Markdown.Extra.prototype.hashFcbAttributeBlocks=function(e){function n(e,n,r){return"<p>~XX"+(t.hashBlocks.push(r)-1)+"XX</p>\n"+n+"\n"}var t=this;return e.replace(w,n)},Markdown.Extra.prototype.applyAttributeBlocks=function(e){var n=this,t=new RegExp('<p>~XX(\\d+)XX</p>[\\s]*(?:<(h[1-6]|pre)(?: +class="(\\S+)")?(>[\\s\\S]*?</\\2>))',"gm");return e=e.replace(t,function(e,t,r,a,o){if(!r)return"";for(var s=parseInt(t,10),l=n.hashBlocks[s],c=l.match(/#[^\s#.]+/g)||[],u=c[0]?' id="'+c[0].substr(1,c[0].length-1)+'"':"",d=l.match(/\.[^\s#.]+/g)||[],p=0;p<d.length;p++)d[p]=d[p].substr(1,d[p].length-1);var f="";return a&&(d=i(d,[a])),d.length>0&&(f=' class="'+d.join(" ")+'"'),"<"+r+u+f+o})},Markdown.Extra.prototype.tables=function(n){function t(n,t,a,i){t=t.replace(/^ *[|]/m,""),a=a.replace(/^ *[|]/m,""),i=i.replace(/^ *[|]/gm,""),t=t.replace(/[|] *$/m,""),a=a.replace(/[|] *$/m,""),i=i.replace(/[|] *$/gm,""),alignspecs=a.split(/ *[|] */),align=[];for(var o=0;o<alignspecs.length;o++){var s=alignspecs[o];align[o]=s.match(/^ *-+: *$/m)?' style="text-align:right;"':s.match(/^ *:-+: *$/m)?' style="text-align:center;"':s.match(/^ *:-+ *$/m)?' style="text-align:left;"':""}var c=t.split(/ *[|] */),u=c.length,d=r.tableClass?' class="'+r.tableClass+'"':"",p=["<table",d,">\n","<thead>\n","<tr>\n"].join("");for(o=0;u>o;o++){var f=l(e(c[o]),r);p+=[" <th",align[o],">",f,"</th>\n"].join("")}p+="</tr>\n</thead>\n";var m=i.split("\n");for(o=0;o<m.length;o++)if(!m[o].match(/^\s*$/)){for(var g=m[o].split(/ *[|] */),h=u-g.length,v=0;h>v;v++)g.push("");for(p+="<tr>\n",v=0;u>v;v++){var b=l(e(g[v]),r);p+=[" <td",align[v],">",b,"</td>\n"].join("")}p+="</tr>\n"}return p+="</table>\n",r.hashExtraBlock(p)}var r=this,a=new RegExp(["^","[ ]{0,3}","[|]","(.+)\\n","[ ]{0,3}","[|]([ ]*[-:]+[-| :]*)\\n","(","(?:[ ]*[|].*\\n?)*",")","(?:\\n|$)"].join(""),"gm"),i=new RegExp(["^","[ ]{0,3}","(\\S.*[|].*)\\n","[ ]{0,3}","([-:]+[ ]*[|][-| :]*)\\n","(","(?:.*[|].*\\n?)*",")","(?:\\n|$)"].join(""),"gm");return n=n.replace(a,t),n=n.replace(i,t)},Markdown.Extra.prototype.stripFootnoteDefinitions=function(e){var n=this;return e=e.replace(/\n[ ]{0,3}\[\^(.+?)\]\:[ \t]*\n?([\s\S]*?)\n{1,2}((?=\n[ ]{0,3}\S)|$)/g,function(e,t,r){return t=f(t),r+="\n",r=r.replace(/^[ ]{0,3}/g,""),n.footnotes[t]=r,"\n"})},Markdown.Extra.prototype.doFootnotes=function(e){var n=this;if(n.isConvertingFootnote===!0)return e;var t=0;return e=e.replace(/\[\^(.+?)\]/g,function(e,r){var a=f(r),i=n.footnotes[a];if(void 0===i)return e;t++,n.usedFootnotes.push(a);var o='<a href="#fn:'+a+'" id="fnref:'+a+'" title="See footnote" class="footnote">'+t+"</a>";return n.hashExtraInline(o)})},Markdown.Extra.prototype.printFootnotes=function(e){var n=this;if(0===n.usedFootnotes.length)return e;e+='\n\n<div class="footnotes">\n<hr>\n<ol>\n\n';for(var t=0;t<n.usedFootnotes.length;t++){var r=n.usedFootnotes[t],a=n.footnotes[r];n.isConvertingFootnote=!0;var i=l(a,n);delete n.isConvertingFootnote,e+='<li id="fn:'+r+'">'+i+' <a href="#fnref:'+r+'" title="Return to article" class="reversefootnote">&#8617;</a></li>\n\n'}return e+="</ol>\n</div>"},Markdown.Extra.prototype.fencedCodeBlocks=function(e){function n(e){return e=e.replace(/&/g,"&amp;"),e=e.replace(/</g,"&lt;"),e=e.replace(/>/g,"&gt;"),e=e.replace(/~D/g,"$$"),e=e.replace(/~T/g,"~")}var t=this;return e=e.replace(/(?:^|\n)```[ \t]*(\S*)[ \t]*\n([\s\S]*?)\n```[ \t]*(?=\n)/g,function(e,r,a){var i=r,o=a,s=t.googleCodePrettify?' class="prettyprint"':"",l="";i&&(l=t.googleCodePrettify||t.highlightJs?' class="language-'+i+'"':' class="'+i+'"');var c=["<pre",s,"><code",l,">",n(o),"</code></pre>"].join("");return t.hashExtraBlock(c)})},Markdown.Extra.prototype.educatePants=function(e){var n=this,t="",r=0;e.replace(/(?:<!--[\s\S]*?-->)|(<)([a-zA-Z1-6]+)([^\n]*?>)([\s\S]*?)(<\/\2>)/g,function(a,i,o,s,l,c,u){var d=e.substring(r,u);return t+=n.applyPants(d),n.smartyPantsLastChar=t.substring(t.length-1),r=u+a.length,i?(/code|kbd|pre|script|noscript|iframe|math|ins|del|pre/i.test(o)?n.smartyPantsLastChar=l.substring(l.length-1):l=n.educatePants(l),void(t+=i+o+s+l+c)):void(t+=a)});var a=e.substring(r);return t+=n.applyPants(a),n.smartyPantsLastChar=t.substring(t.length-1),t},Markdown.Extra.prototype.applyPants=function(e){return e=e.replace(/---/g,"&#8212;").replace(/--/g,"&#8211;"),e=e.replace(/\.\.\./g,"&#8230;").replace(/\.\s\.\s\./g,"&#8230;"),e=e.replace(/``/g,"&#8220;").replace(/''/g,"&#8221;"),/^'$/.test(e)?/\S/.test(this.smartyPantsLastChar)?"&#8217;":"&#8216;":/^"$/.test(e)?/\S/.test(this.smartyPantsLastChar)?"&#8221;":"&#8220;":(e=e.replace(/^'(?=[!"#\$\%'()*+,\-.\/:;<=>?\@\[\\]\^_`{|}~]\B)/,"&#8217;"),e=e.replace(/^"(?=[!"#\$\%'()*+,\-.\/:;<=>?\@\[\\]\^_`{|}~]\B)/,"&#8221;"),e=e.replace(/"'(?=\w)/g,"&#8220;&#8216;"),e=e.replace(/'"(?=\w)/g,"&#8216;&#8220;"),e=e.replace(/'(?=\d{2}s)/g,"&#8217;"),e=e.replace(/(\s|&nbsp;|--|&[mn]dash;|&\#8211;|&\#8212;|&\#x201[34];)'(?=\w)/g,"$1&#8216;"),e=e.replace(/([^\s\[\{\(\-])'/g,"$1&#8217;"),e=e.replace(/'(?=\s|s\b)/g,"&#8217;"),e=e.replace(/'/g,"&#8216;"),e=e.replace(/(\s|&nbsp;|--|&[mn]dash;|&\#8211;|&\#8212;|&\#x201[34];)"(?=\w)/g,"$1&#8220;"),e=e.replace(/([^\s\[\{\(\-])"/g,"$1&#8221;"),e=e.replace(/"(?=\s)/g,"&#8221;"),e=e.replace(/"/gi,"&#8220;"))},Markdown.Extra.prototype.runSmartyPants=function(e){return this.smartyPantsLastChar="",e=this.educatePants(e),e=e.replace(/(<([a-zA-Z1-6]+)\b([^\n>]*?)(\/)?>)/g,m)},Markdown.Extra.prototype.definitionLists=function(n){var t=new RegExp(["(\\x02\\n?|\\n\\n)","(?:","(","(","[ ]{0,3}","((?:[ \\t]*\\S.*\\n)+)","\\n?","[ ]{0,3}:[ ]+",")","([\\s\\S]+?)","(","(?=\\0x03)","|","(?=","\\n{2,}","(?=\\S)","(?!","[ ]{0,3}","(?:\\S.*\\n)+?","\\n?","[ ]{0,3}:[ ]+",")","(?!","[ ]{0,3}:[ ]+",")",")",")",")",")"].join(""),"gm"),r=this;return n=o(n),n=n.replace(t,function(n,t,a){var i=e(r.processDefListItems(a));return i="<dl>\n"+i+"\n</dl>",t+r.hashExtraBlock(i)+"\n\n"}),s(n)},Markdown.Extra.prototype.processDefListItems=function(r){var a=this,i=new RegExp(["(\\x02\\n?|\\n\\n+)","(","[ ]{0,3}","(?![:][ ]|[ ])","(?:\\S.*\\n)+?",")","(?=\\n?[ ]{0,3}:[ ])"].join(""),"gm"),u=new RegExp(["\\n(\\n+)?","(","[ ]{0,3}","[:][ ]+",")","([\\s\\S]+?)","(?=\\n*","(?:","\\n[ ]{0,3}[:][ ]|","<dt>|\\x03",")",")"].join(""),"gm");return r=o(r),r=r.replace(/\n{2,}(?=\\x03)/,"\n"),r=r.replace(i,function(n,t,r){for(var i=e(r).split("\n"),o="",s=0;s<i.length;s++){var c=i[s];c=l(e(c),a),o+="\n<dt>"+c+"</dt>"}return o+"\n"}),r=r.replace(u,function(e,r,i,o){return r||o.match(/\n{2,}/)?(o=Array(i.length+1).join(" ")+o,o=t(o)+"\n\n",o="\n"+c(o,a)+"\n"):(o=n(o),o=l(t(o),a)),"\n<dd>"+o+"</dd>\n"}),s(r)},Markdown.Extra.prototype.strikethrough=function(e){return e.replace(/([\W_]|^)~T~T(?=\S)([^\r]*?\S[\*_]*)~T~T([\W_]|$)/g,"$1<del>$2</del>$3")},Markdown.Extra.prototype.newlines=function(e){return e.replace(/(<(?:br|\/li)>)?\n/g,function(e,n){return n?e:" <br>\n"})}}(),define("pagedown-extra",function(){}),define("extensions/markdownExtra",["underscore","utils","classes/Extension","google-code-prettify","pagedown-extra"],function(e,n,t,r){function a(e){e.hooks.chain("onPreviewRefresh",function(){$("#preview-contents pre code").each(function(){var e=$(this).attr("class");"language-flow"!=e&&"language-sequence"!=e&&$(this).parent().addClass("prettyprint linenums")}),r.prettyPrint()})}var i=new t("markdownExtra","Markdown Extra",!0);i.defaultConfig={extensions:["fenced_code_gfm","tables","def_list","attr_list","footnotes","smartypants","strikethrough","newlines"],intraword:!0,comments:!0,highlighter:"prettify"};var o;return i.onEventMgrCreated=function(e){o=e},i.onToggleMode=a,i.onPagedownConfigure=function(e){var n=e.getConverter();if(i.config.intraword===!0){var t={_DoItalicsAndBold:function(e){return e=e.replace(/([^\w*]|^)(\*\*|__)(?=\S)(.+?[*_]*)(?=\S)\2(?=[^\w*]|$)/g,"$1<strong>$3</strong>"),e=e.replace(/([^\w*]|^)(\*|_)(?=\S)(.+?)(?=\S)\2(?=[^\w*]|$)/g,"$1<em>$3</em>")}};n.setOptions(t)}i.config.comments===!0&&n.hooks.chain("postConversion",function(e){return e.replace(/<!--.*?-->/g,function(e){return e.replace(/^<!---(.+?)-?-->$/,' <span class="comment label label-danger">$1</span> ')})});var r={extensions:i.config.extensions};r.highlighter="prettify",a(e),Markdown.Extra.init(n,r)},i}),define("libs/mathjax_init",["settings"],function(e){var n=document.createElement("script");n.type="text/x-mathjax-config";var t='MathJax.Hub.Config({\n skipStartupTypeset: true,\n "HTML-CSS": {\n preferredFont: "TeX",\n availableFonts: [\n "STIX",\n "TeX"\n ],\n linebreaks: {\n automatic: true\n },\n EqnChunk: 10,\n imageFont: null\n },\n tex2jax: <%= tex2jax || \'{ inlineMath: [["$","$"],["\\\\\\\\\\\\\\\\(","\\\\\\\\\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\\\\\[","\\\\\\\\]"]], processEscapes: true }\' %>,\n TeX: $.extend({\n noUndefined: {\n attributes: {\n mathcolor: "red",\n mathbackground: "#FFEEEE",\n mathsize: "90%"\n }\n },\n Safe: {\n allow: {\n URLs: "safe",\n classes: "safe",\n cssIDs: "safe",\n styles: "safe",\n fontsize: "all"\n }\n }\n }, <%= tex %>),\n messageStyle: "none"\n});\n';n.innerHTML=_.template(t,{tex:e.extensionSettings.mathJax?e.extensionSettings.mathJax.tex:"undefined",tex2jax:e.extensionSettings.mathJax?e.extensionSettings.mathJax.tex2jax:void 0}),document.getElementsByTagName("head")[0].appendChild(n)}),define("extensions/mathJax",["utils","classes/Extension","mathjax"],function(e,n){function t(e,n,t){var r=c.slice(e,n+1).join("").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");for(w.Browser.isMSIE&&(r=r.replace(/(%[^\n]*)\n/g,"$1<br/>\n"));n>e;)c[n]="",n--;c[e]="@@"+m.length+"@@",t&&(r=t(r)),m.push(r),u=d=p=null}function r(e){u=d=p=null,m=[];var n;/`/.test(e)?(e=e.replace(/~/g,"~T").replace(/(^|[^\\])(`+)([^\n]*?[^`\n])\2(?!`)/gm,function(e){return e.replace(/\$/g,"~D")}),n=function(e){return e.replace(/~([TD])/g,function(e,n){return{T:"~",D:"$"}[n]})}):n=function(e){return e},c=x(e.replace(/\r\n?/g,"\n"),y);for(var e=1,r=c.length;r>e;e+=2){var a=c[e];"@"===a.charAt(0)?(c[e]="@@"+m.length+"@@",m.push(a)):u?a===d?f?p=e:t(u,e,n):a.match(/\n.*\n/)?(p&&(e=p,t(u,e,n)),u=d=p=null,f=0):"{"===a?f++:"}"===a&&f&&f--:a===b||"$$"===a?(u=e,d=a,f=0):"begin"===a.substr(1,5)&&(u=e,d="\\end"+a.substr(6),f=0)}return p&&t(u,p,n),n(c.join(""))}function a(e){return e=e.replace(/@@(\d+)@@/g,function(e,n){return m[n]}),m=null,e}function i(){h=!1,w.cancelTypeset=!1,w.Queue(["Typeset",w,v]),w.Queue(l)}function o(){!h&&(h=!0,w.Cancel(),w.Queue(i))}var s=new n("mathJax","MathJax",!0);s.defaultConfig={tex:"{}",tex2jax:'{ inlineMath: [["$","$"],["\\\\\\\\(","\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true }'},s.onPagedownConfigure=function(e){v=document.getElementById("preview-contents");var n=e.getConverter();n.hooks.chain("preConversion",r),n.hooks.chain("postConversion",a)};var l;s.onAsyncPreview=function(e){l=e,o()};var c,u,d,p,f,m,g=!1,h=!1,v=null,b="$",w=MathJax.Hub;w.Queue(function(){g=!0,w.processUpdateTime=50,w.Config({"HTML-CSS":{EqnChunk:10,EqnChunkFactor:1},SVG:{EqnChunk:10,EqnChunkFactor:1}})});var x,y=/(\$\$?|\\(?:begin|end)\{[a-z]*\*?\}|\\[\\{}$]|[{}]|(?:\n\s*)+|@@\d+@@)/i;return x=3==="aba".split(/(b)/).length?function(e,n){return e.split(n)}:function(e,n){var t,r=[];if(!n.global){t=n.toString();var a="";t=t.replace(/^\/(.*)\/([im]*)$/,function(e,n,t){return a=t,n}),n=RegExp(t,a+"g")}for(var i=n.lastIndex=0;t=n.exec(e);)r.push(e.substring(i,t.index)),r.push.apply(r,t.slice(1)),i=t.index+t[0].length;return r.push(e.substring(i)),r},function(){var e=MathJax.Hub;if(!e.Cancel){e.cancelTypeset=!1,e.Register.StartupHook("HTML-CSS Jax Config",function(){var n=MathJax.OutputJax["HTML-CSS"],t=n.Translate;n.Augment({Translate:function(r,a){if(e.cancelTypeset||a.cancelled)throw Error("MathJax Canceled");return t.call(n,r,a)}})}),e.Register.StartupHook("SVG Jax Config",function(){var n=MathJax.OutputJax.SVG,t=n.Translate;n.Augment({Translate:function(r,a){if(e.cancelTypeset||a.cancelled)throw Error("MathJax Canceled");return t.call(n,r,a)}})}),e.Register.StartupHook("TeX Jax Config",function(){var n=MathJax.InputJax.TeX,t=n.Translate;n.Augment({Translate:function(r,a){if(e.cancelTypeset||a.cancelled)throw Error("MathJax Canceled");return t.call(n,r,a)}})});var n=e.processError;e.processError=function(t,r,a){return"MathJax Canceled"!==t.message?n.call(e,t,r,a):(MathJax.Message.Clear(0,0),r.jaxIDs=[],r.jax={},r.scripts=[],r.i=r.j=0,r.cancelled=!0,null)},e.Cancel=function(){this.cancelTypeset=!0}}}(),s}),define("extensions/markdownSectionParser",["underscore","extensions/markdownExtra","extensions/mathJax","classes/Extension"],function(e,n,t,r){var a,i=new r("markdownSectionParser","Markdown section parser");return i.onEventMgrCreated=function(e){a=e},i.onPagedownConfigure=function(r){
var i="^.+[ \\t]*\\n=+[ \\t]*\\n+|^.+[ \\t]*\\n-+[ \\t]*\\n+|^\\#{1,6}[ \\t]*.+?[ \\t]*\\#*\\n+";n.enabled&&e.some(n.config.extensions,function(e){return"fenced_code_gfm"==e})&&(i="^```.*\\n[\\s\\S]*?\\n```|"+i),t.enabled&&(i="^[ \\t]*\\n\\$\\$[\\s\\S]*?\\$\\$|"+i,i="^[ \\t]*\\n\\\\\\\\[[\\s\\S]*?\\\\\\\\]|"+i,i="^[ \\t]*\\n\\\\?\\\\begin\\{[a-z]*\\*?\\}[\\s\\S]*?\\\\end\\{[a-z]*\\*?\\}|"+i),i=new RegExp(i,"gm");var o=r.getConverter();o.hooks.chain("preConversion",function(n){function t(e,n){var t=r.substring(s,n);o.push({text:t,textWithDelimiter:'\n<div class="se-section-delimiter"></div>\n\n'+t+"\n"})}a.previewStartTime=new Date;var r=n+"\n\n",o=[],s=0;return r.replace(i,function(e,n){t(s,n),s=n}),t(s,n.length),a.onSectionsCreated(o),e.reduce(o,function(e,n){return e+n.textWithDelimiter},"")})},i}),define("extensions/partialRendering",["underscore","crel","extensions/markdownExtra","classes/Extension"],function(e,n,t,r){function a(n,t){if(g=[],m=[],u=void 0,h===!0||c!=t)return h=!1,c=t,m=f,f=n,void(g=n);var r=f.length;e.some(f,function(e,t){return t>=n.length||e.text!=n[t].text?(r=t,!0):void 0});var a=-f.length;e.some(f.slice().reverse(),function(e,t){return t>=n.length||e.text!=n[n.length-t-1].text?(a=-t,!0):void 0}),r-a>f.length&&(a=r-f.length);var i=f.slice(0,r);g=n.slice(r,n.length+a);var o=f.slice(f.length+a,f.length);u=e.first(o),m=f.slice(r,f.length+a),f=i.concat(g).concat(o)}function i(e){var n=e.id.substring(3);y[n]=e}function o(){function t(t){for(var r=n("div",{id:"wmd-preview-section-"+t.id,"class":"wmd-preview-section preview-content"}),o=!1;a;){var s=a.nextSibling;if(o===!0&&"DIV"==a.tagName&&"se-section-delimiter"==a.className)break;o=!0,"DIV"==a.tagName&&"footnotes"==a.className?e.each(a.querySelectorAll("ol > li"),i):r.appendChild(a),a=s}return r}e.each(m,function(e){var n=document.getElementById("wmd-preview-section-"+e.id);x.removeChild(n)});var r=document.getElementById("wmd-preview"),a=r.firstChild,o=document.createDocumentFragment();e.each(g,function(e){o.appendChild(t(e))}),r.innerHTML="";var s=w;void 0!==u&&(s=document.getElementById("wmd-preview-section-"+u.id)),x.insertBefore(o,s),w.innerHTML="";var l=[];if(b===!0){var c=n("ol");e.each(x.querySelectorAll("a.footnote"),function(e,n){e.textContent=n+1;var t=e.id.substring(6);l.push(t),c.appendChild(y[t].cloneNode(!0))}),l.length>0&&w.appendChild(n("div",{"class":"footnotes"},n("hr"),c)),y=e.pick(y,l)}}function s(n){l=n.getConverter(),l.hooks.chain("preConversion",function(){var n=e.map(g,function(e){return e.text});return n.push(c+"\n\n"),n.join("")}),n.hooks.chain("onPreviewRefresh",function(){o()})}var l,c,u,d=new r("partialRendering","Partial Rendering",!0),p=0,f=[],m=[],g=[],h=!1,v=!1,b=!1;d.onSectionsCreated=function(n){var t=[],r="\n";b=!1,e.each(n,function(e){var n=e.textWithDelimiter+"\n";v&&(n=n.replace(/^```.*\n[\s\S]*?\n```|\n[ ]{0,3}\[\^(.+?)\]\:[ \t]*\n?([\s\S]*?)\n{1,2}((?=\n[ ]{0,3}\S)|$)/gm,function(e,n){return n?(b=!0,r+=e.replace(/^\s*\n/gm,"")+"\n",""):e})),n=n.replace(/^```.*\n[\s\S]*?\n```|^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?(?=\s|$)[ \t]*\n?[ \t]*((\n*)["(](.+?)[")][ \t]*)?(?:\n+)/gm,function(e,n){return n?(r+=e.replace(/^\s*\n/gm,"")+"\n",""):e}),t.push({id:++p,text:n+"\n"})}),a(t,r)};var w,x,y={};return d.onPagedownConfigure=s,d.onToggleMode=s,d.onInit=function(){t.enabled&&e.some(t.config.extensions,function(e){return"footnotes"==e})&&(v=!0)},d.onReady=function(){w=n("div",{id:"wmd-preview-section-footnotes","class":"preview-content"}),x=document.getElementById("preview-contents"),x.appendChild(w)},d.onFileSelected=function(){h=!0},d}),define("extensions/umlDiagrams",["require","underscore","utils","classes/Extension","crel"],function(e,n,t,r,a){function i(){var t=c.querySelectorAll(".prettyprint > .language-flow");t&&0!=t.length&&e(["flow-chart"],function(e){n.each(t,function(n){try{var t=e.parse(n.textContent),r=n.parentNode,i=a("div",{"class":"flow-chart"});r.parentNode.replaceChild(i,r),t.drawSVG(i,JSON.parse(l.config.flowchartOptions))}catch(o){console.error(o)}})})}function o(){var t=c.querySelectorAll(".prettyprint > .language-sequence");t&&0!=t.length&&e(["Diagram"],function(e){n.each(t,function(n){try{var t=e.parse(n.textContent),r=n.parentNode,i=a("div",{"class":"sequence-diagram"});r.parentNode.replaceChild(i,r),t.drawSVG(i,{theme:"simple"})}catch(o){console.error(o)}})})}function i(){var t=c.querySelectorAll(".prettyprint > .language-flow");t&&0!=t.length&&e(["flow-chart"],function(e){n.each(t,function(n){try{var t=e.parse(n.textContent),r=n.parentNode,i=a("div",{"class":"flow-chart"});r.parentNode.replaceChild(i,r),t.drawSVG(i,JSON.parse(l.config.flowchartOptions))}catch(o){console.error(o)}})})}function s(e){e.hooks.chain("onPreviewRefresh",function(){o(),i()})}var l=new r("umlDiagrams","UML Diagrams",!0);l.defaultConfig={flowchartOptions:["{",' "line-width": 2,',' "font-family": "sans-serif",',' "font-weight": "normal"',"}"].join("\n")};var c=document.getElementById("preview-contents");return l.onPagedownConfigure=s,l.onToggleMode=s,l}),define("extensions/toc",["underscore","utils","classes/Extension"],function(e,n,t){function r(e,n,t){this.tagName=e,this.anchor=n,this.text=t,this.children=[]}function a(n,t){function i(){void 0!==s&&(s.children.length>0&&(s.children=a(s.children,t+1)),c.push(s))}t=t||1;var s,l="H"+t,c=[];return e.each(n,function(e){e.tagName!=l?t!==o.config.maxDepth&&(void 0===s&&(s=new r),s.children.push(e)):(i(),s=e)}),i(),c}function i(){function t(t){for(var r=t.id||n.slugify(t.textContent)||"title",a=r,o=0;e.has(i,a);)a=r+"-"+ ++o;return i[a]=!0,t.id=a,a}var i={},o=[];return e.each(s.querySelectorAll("h1, h2, h3, h4, h5, h6"),function(e){o.push(new r(e.tagName,t(e),e.textContent))}),o=a(o),'<div class="toc">\n<ul>\n'+o.join("")+"</ul>\n</div>\n"}var o=new t("toc","Table of Contents",!0);o.defaultConfig={marker:"\\[(TOC|toc)\\]",maxDepth:6,button:!0},r.prototype.childrenToString=function(){if(0===this.children.length)return"";var n="<ul>\n";return e.each(this.children,function(e){n+=e.toString()}),n+="</ul>\n"},r.prototype.toString=function(){var e="<li>";return this.anchor&&this.text&&(e+='<a href="#'+this.anchor+'">'+this.text+"</a>"),e+=this.childrenToString()+"</li>\n"};var s;return o.onPagedownConfigure=function(n){s=document.getElementById("preview-contents");var t=new RegExp("^"+o.config.marker+"$");n.hooks.chain("onPreviewRefresh",function(){var n=document.querySelectorAll(".table-of-contents, .toc"),r=i();e.each(s.getElementsByTagName("p"),function(e){t.test(e.innerHTML)&&(e.innerHTML=r)}),e.each(n,function(e){e.innerHTML=r}),$("#leanoteNavContentMd").height("auto");try{$(r).text()||$("#leanoteNavContentMd").html("&nbsp; &nbsp; Nothing...")}catch(a){}var o=$("#leanoteNavContentMd").height(),l=$("#mdEditor").height()-100;o>l&&$("#leanoteNavContentMd").height(l)})},o.onReady=function(){},o}),define("extensions/emailConverter",["classes/Extension"],function(e){var n=new e("emailConverter","Markdown Email",!0);return n.onPagedownConfigure=function(e){e.getConverter().hooks.chain("postConversion",function(e){return e.replace(/<(mailto\:)?([^\s>]+@[^\s>]+\.\S+?)>/g,function(e,n,t){return'<a href="mailto:'+t+'">'+t+"</a>"})})},n}),define("extensions/todoList",["classes/Extension"],function(e){var n=new e("todoList","Markdown todoList",!0);return n.onPagedownConfigure=function(e){e.getConverter().hooks.chain("postConversion",function(e){return e.replace(/<li>(<p>)?\[([ xX]?)\] /g,function(e,n,t){return n||(n=""),"x"!=t&&"X"!=t?'<li class="m-todo-item m-todo-empty">'+n+'<input type="checkbox" /> ':'<li class="m-todo-item m-todo-done">'+n+'<input type="checkbox" checked /> '})})},n}),define("extensions/scrollLink",["underscore","classes/Extension"],function(e,n){function t(n,t,r){var a,i=e.find(t,function(e,t){return a=t,n<e.endOffset});if(void 0!==i){var o=(n-i.startOffset)/(i.height||1),s=r[a];return s.startOffset+s.height*o}}var r,a=new n("scrollLink","Scroll Link",!0,!0);a.onAceCreated=function(e){r=e};var i;a.onSectionsCreated=function(e){i=e};var o=0;a.onMarkdownTrim=function(e){o=e};var s,l,c,u,d,p=[],f=[],m=e.debounce(function(){function n(e){var n=g;if(void 0!==e){var t=document.createTextNode(e);l.empty().append(t),n+=l.prop("scrollHeight")}var r=a+n;p.push({startOffset:a,endOffset:r,height:n}),a=r}p=[];var t=0,a=0,m=o,g=0;if(window.lightMode){l.innerWidth(s.innerWidth()),e.each(i,function(e,t){var r=e.text;t!==i.length-1?0===r.length&&(r=void 0):/\n$/.test(r)&&(r+="\n"),n(r)});var h=e.last(p).endOffset,v=s[0].scrollHeight,b=v/h;p=e.map(p,function(e){return{startOffset:e.startOffset*b,endOffset:e.endOffset*b,height:e.height*b}})}else e.each(i,function(e){t+=e.text.length+m,m=0;var n=r.session.doc.indexToPosition(t),i=r.session.documentToScreenPosition(n.row,n.column),o=i.row*r.renderer.lineHeight,s=o-a;p.push({startOffset:a,endOffset:o,height:s}),a=o});f=[];var w,y=c.scrollTop();c.find(".preview-content > .se-section-delimiter").each(function(){if(void 0===w)return void(w=0);var e=$(this),n=e.position().top+y;f.push({startOffset:w,endOffset:n,height:n-w}),w=n});var C=c.prop("scrollHeight");f.push({startOffset:w,endOffset:C,height:C-w}),u=-10,d=-10,x()},500),g=!1,h=!1,v=!1,b=!1,w=$("<div>"),x=e.throttle(function(){if(0===p.length||p.length!==f.length)return void x();var n=window.lightMode?s.scrollTop():r.renderer.getScrollTop();0>n&&(n=0);var a,i=c.scrollTop();if(g===!0){if(Math.abs(n-u)<=9)return;if(g=!1,u=n,a=t(n,p,f),a=e.min([a,c.prop("scrollHeight")-c.outerHeight()]),Math.abs(a-i)<=9)return void(d=i);w.stop("scrollLinkFx",!0).css("value",0).animate({value:a-i},{easing:"linear",duration:200,queue:"scrollLinkFx",step:function(e){b=!0,d=i+e,c.scrollTop(d)},done:function(){e.defer(function(){b=!1})}}).dequeue("scrollLinkFx")}else if(h===!0){if(Math.abs(i-d)<=9)return;if(h=!1,d=i,a=t(i,f,p),window.lightMode?a=e.min([a,s.prop("scrollHeight")-s.outerHeight()]):(a=e.min([a,r.session.getScreenLength()*r.renderer.lineHeight+r.renderer.scrollMargin.bottom-r.renderer.$size.scrollerHeight]),0>a&&(a=0)),Math.abs(a-n)<=9)return void(u=n);w.stop("scrollLinkFx",!0).css("value",0).animate({value:a-n},{easing:"linear",duration:200,queue:"scrollLinkFx",step:function(e){v=!0,u=n+e,window.lightMode||r.session.setScrollTop(u),window.lightMode&&s.scrollTop(u)},done:function(){e.defer(function(){v=!1})}}).dequeue("scrollLinkFx")}},100);a.onLayoutResize=function(){g=!0,m()},a.onFileClosed=function(){p=[]};var y=function(e){c=$(".preview-container"),s=$("#wmd-input"),l=$(".textarea-helper"),c.scroll(function(){b===!1&&C===!1&&(h=!0,g=!1,x()),C=!1});var n=function(){v===!1&&(g=!0,h=!1,x())},t=e?500:0;setTimeout(function(){window.lightMode?s.scroll(n):r.session.on("changeScrollTop",n)},t)};a.onToggleMode=function(){c=$(".preview-container"),s=$("#wmd-input"),l=$(".textarea-helper"),m(),y(!0)};var C=!1;a.onReady=function(){c=$(".preview-container"),s=$("#wmd-input"),l=$(".textarea-helper"),y(),$(".extension-preview-buttons .table-of-contents, #preview-contents").on("click","a",function(e){var n=this.hash;if(n){e.preventDefault();var a=$("#preview-contents "+n);if(a.length){var i=a[0].getBoundingClientRect().top-c.get(0).getBoundingClientRect().top+c.scrollTop(),o=t(i,f,p);c.scrollTop(i),window.lightMode||r.session.setScrollTop(o),window.lightMode&&s.scrollTop(o)}}})};var k;return a.onPagedownConfigure=function(e){k=$("#preview-contents"),e.getConverter().hooks.chain("postConversion",function(e){return k.height(k.height()),e})},a.onPreviewFinished=function(){var e=k.height();k.height("auto");var n=k.height();g=!0,e>n&&(C=!0),m()},a}),define("extensions/htmlSanitizer",["underscore","utils","classes/Extension"],function(e,n,t){function r(e){var n,t={},r=e.split(",");for(n=0;n<r.length;n++)t[r[n]]=!0;return t}function a(e,n){function t(e,t,a,o){if(t=t&&t.toLowerCase(),k[t])for(;c.last()&&S[c.last()];)r("",c.last());C[t]&&c.last()==t&&r("",t),o=w[t]||!!o,o||c.push(t);var s={};a.replace(p,function(e,n,t,r,a){var o=t||r||a||"";s[n]=i(o)}),n.start&&n.start(t,s,o)}function r(e,t){var r,a=0;if(t=t&&t.toLowerCase())for(a=c.length-1;a>=0&&c[a]!=t;a--);if(a>=0){for(r=c.length-1;r>=a;r--)n.end&&n.end(c[r]);c.length=a}}var a,o,s,c=[],b=e;for(c.last=function(){return c[c.length-1]};e;){if(o=!0,c.last()&&_[c.last()])e=e.replace(new RegExp("(.*)<\\s*\\/\\s*"+c.last()+"[^>]*>","i"),function(e,t){return t=t.replace(g,"$1").replace(v,"$1"),n.chars&&n.chars(i(t)),""}),r("",c.last());else if(0===e.indexOf("<!--")?(a=e.indexOf("--",4),a>=0&&e.lastIndexOf("-->",a)===a&&(n.comment&&n.comment(e.substring(4,a)),e=e.substring(a+3),o=!1)):h.test(e)?(s=e.match(h),s&&(e=e.replace(s[0],""),o=!1)):m.test(e)?(s=e.match(d),s&&(e=e.substring(s[0].length),s[0].replace(d,r),o=!1)):f.test(e)&&(s=e.match(u),s&&(e=e.substring(s[0].length),s[0].replace(u,t),o=!1)),o){a=e.indexOf("<");var x=0>a?e:e.substring(0,a);e=0>a?"":e.substring(a),n.chars&&n.chars(i(x))}if(e==b)return c.reverse(),c.forEach(function(e){l.push("</"),l.push(e),l.push(">")});b=e}r()}function i(e){if(!e)return"";var n=$.exec(e),t=n[1],r=n[3],a=n[2];return a&&(M.innerHTML=a.replace(/</g,"&lt;"),a="textContent"in M?M.textContent:M.innerText),t+a+r}function o(e){return e.replace(/&/g,"&amp;").replace(b,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(n){var t=!1,r=e.bind(n.push,n);return{start:function(n,a,i){n=n&&n.toLowerCase(),!t&&_[n]&&(t=n),t||E[n]!==!0||(r("<"),r(n),e.forEach(a,function(e,n){var t=n&&n.toLowerCase();I[t]===!0&&(r(" "),r(n),r('="'),r(o(e)),r('"'))}),r(i?"/>":">"))},end:function(e){e=e&&e.toLowerCase(),t||E[e]!==!0||(r("</"),r(e),r(">")),e==t&&(t=!1)},chars:function(e){t||r(o(e))},comment:function(e){t||(r("<!--"),r(o(e)),r("-->"))}}}var l,c=new t("htmlSanitizer","HTML Sanitizer",!0);c.onPagedownConfigure=function(e){var n=e.getConverter();n.hooks.chain("postConversion",function(e){return l=[],e.split('<div class="se-preview-section-delimiter"></div>').forEach(function(e){a(e,s(l)),l.push('<div class="se-preview-section-delimiter"></div>')}),l.slice(0,-1).join("")})};var u=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,d=/^<\s*\/\s*([\w:-]+)[^>]*>/,p=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,f=/^</,m=/^<\s*\//,g=/<!--(.*?)-->/g,h=/<!DOCTYPE([^>]*?)>/i,v=/<!\[CDATA\[(.*?)]]>/g,b=/([^\#-~| |!])/g,w=r("area,br,col,hr,img,wbr"),x=r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),y=r("rp,rt"),C=e.extend({},y,x),k=e.extend({},x,r("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul,embed,iframe")),S=e.extend({},y,r("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var,input")),_=r("script,style"),E=e.extend({},w,k,S,C),T=r("background,cite,href,longdesc,src,usemap"),I=e.extend({},T,r("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width,checked"));I.id=!0,I.allowfullscreen=!0;var M=document.createElement("pre"),$=/^(\s*)([\s\S]*?)(\s*)$/;return c}),function(e){var n="waitForImages";e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]},e.expr[":"].uncached=function(n){if(!e(n).is('img[src!=""]'))return!1;var t=new Image;return t.src=n.src,!t.complete},e.fn.waitForImages=function(t,r,a){var i=0,o=0;if(e.isPlainObject(arguments[0])&&(a=arguments[0].waitForAll,r=arguments[0].each,t=arguments[0].finished),t=t||e.noop,r=r||e.noop,a=!!a,!e.isFunction(t)||!e.isFunction(r))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var s=e(this),l=[],c=e.waitForImages.hasImageProperties||[],u=/url\(\s*(['"]?)(.*?)\1\s*\)/g;a?s.find("*").andSelf().each(function(){var n=e(this);n.is("img:uncached")&&l.push({src:n.attr("src"),element:n[0]}),e.each(c,function(e,t){var r,a=n.css(t);if(!a)return!0;for(;r=u.exec(a);)l.push({src:r[2],element:n[0]})})}):s.find("img:uncached").each(function(){l.push({src:this.src,element:this})}),i=l.length,o=0,0===i&&t.call(s[0]),e.each(l,function(a,l){var c=new Image;e(c).bind("load."+n+" error."+n,function(e){return o++,r.call(l.element,o,i,"load"==e.type),o==i?(t.call(s[0]),!1):void 0}),c.src=l.src})})}}(jQuery),define("jquery-waitforimages",function(){}),define("eventMgr",["underscore","crel","utils","classes/Extension","settings","extensions/markdownSectionParser","extensions/partialRendering","extensions/umlDiagrams","extensions/markdownExtra","extensions/toc","extensions/mathJax","extensions/emailConverter","extensions/todoList","extensions/scrollLink","extensions/htmlSanitizer","jquery-waitforimages"],function(e,n,t,r,a){function i(n){return e.chain(c).map(function(e){return e.enabled&&e[n]}).compact().value()}function o(n){return d[n]=i(n),function(){var t=arguments;e.each(d[n],function(n){try{n.apply(null,t)}catch(r){console.error(e.isObject(r)?r.stack:r)}})}}function s(e){l[e]=o(e)}var l={},c=e.chain(arguments).map(function(e){return e instanceof r&&e}).compact().value(),u=a.extensionSettings||{};e.each(c,function(n){n.config=e.extend({},n.defaultConfig,u[n.extensionId]),n.enabled=window.viewerMode===!0&&n.disableInViewer===!0?!1:window.lightMode===!0&&n.disableInLight===!0?!1:!n.isOptional||void 0===n.config.enabled||n.config.enabled===!0});var d={};l.addListener=function(e,n){try{d[e].push(n)}catch(t){console.error("No event listener called "+e)}},o("onInit")(),l.onLoadSettings=function(){e.each(c,function(e){var n=!e.isOptional||void 0===e.config.enabled||e.config.enabled===!0;t.setInputChecked("#input-enable-extension-"+e.extensionId,n),"markdownExtra"==e.extensionId?t.setInputChecked("#input-settings-markdown-extra",n):"mathJax"==e.extensionId&&t.setInputChecked("#input-settings-mathjax",n);var r=e.onLoadSettings;r&&r()})},l.onSaveSettings=function(n,r){e.each(c,function(a){if(window.lightMode===!0&&a.disableInLight===!0)return void(n[a.extensionId]=a.config);var i=e.extend({},a.defaultConfig);i.enabled=t.getInputChecked("#input-enable-extension-"+a.extensionId);var o;"markdownExtra"==a.extensionId?(o=t.getInputChecked("#input-settings-markdown-extra"),o!=a.enabled&&(i.enabled=o)):"mathJax"==a.extensionId&&(o=t.getInputChecked("#input-settings-mathjax"),o!=a.enabled&&(i.enabled=o));var s=a.onSaveSettings;s&&s(i,r),n[a.extensionId]=i})},s("onMessage"),s("onError"),s("onPeriodicRun"),s("onFileMgrCreated"),s("onSynchronizerCreated"),s("onPublisherCreated"),s("onEventMgrCreated"),s("onFileCreated"),s("onFileDeleted"),s("onFileSelected"),s("onFileOpen"),s("onFileClosed"),s("onContentChanged"),s("onToggleMode"),s("onLayoutConfigure"),s("onLayoutCreated"),s("onLayoutResize"),s("onPagedownConfigure"),s("onSectionsCreated"),s("onMarkdownTrim"),s("onAceCreated");var p,f,m=o("onPreviewFinished"),g=i("onAsyncPreview");l.onAsyncPreview=function(){function n(r){var a=r.length?r.shift():function(){e.defer(function(){var n="";e.each(p.children,function(e){n+=e.innerHTML}),n=n.replace(/^<div class="se-section-delimiter"><\/div>\n\n/gm,"");var r=t.trim(n),a=r.replace(/ <span class="comment label label-danger">.*?<\/span> /g,"");m(r,a)})};a(function(){n(r)})}n(g.concat([function(e){f.waitForImages(e)}]))};var h=o("onReady");return l.onReady=function(){p=document.getElementById("preview-contents"),f=$(p);var t=function(t){var r=n("div",{"class":"btn-group"}),a=t();return e.isString(a)?r.innerHTML=a:e.isElement(a)&&r.appendChild(a),r};if(window.viewerMode===!1){var r=i("onCreateEditorButton"),a=document.createDocumentFragment();e.each(r,function(e){a.appendChild(t(e))})}var o=i("onCreatePreviewButton"),s=document.createDocumentFragment();e.each(o,function(e){s.appendChild(t(e))});var l=document.querySelector(".extension-preview-buttons");l.appendChild(s);var c=$(l),u=c.width();c.find(".btn-group").each(function(){var e=$(this);e.find(".dropdown-menu").css({right:-u+e.width()+e.position().left})}),h()},l.onEventMgrCreated(l),l}),define("shortcutMgr",["underscore","eventMgr","utils"],function(e){var n={},t={bold:{title:"Strong",defaultKey:{win:"Ctrl-B",mac:"Command-B|Ctrl-B"},isPageDown:!0},italic:{title:"Emphasis",defaultKey:{win:"Ctrl-I",mac:"Command-I|Ctrl-I"},isPageDown:!0},link:{title:"Hyperlink",defaultKey:{win:"Ctrl-L",mac:"Command-L|Ctrl-L"},isPageDown:!0},quote:{title:"Blockquote",defaultKey:{win:"Ctrl-Q",mac:"Command-Q|Ctrl-Q"},isPageDown:!0},code:{title:"Code Sample",defaultKey:{win:"Ctrl-K",mac:"Command-K|Ctrl-K"},isPageDown:!0},image:{title:"Image",defaultKey:{win:"Ctrl-G",mac:"Command-G|Ctrl-G"},isPageDown:!0},olist:{title:"Numbered List",defaultKey:{win:"Ctrl-O",mac:"Command-O|Ctrl-O"},isPageDown:!0},ulist:{title:"Bulleted List",defaultKey:{win:"Ctrl-U",mac:"Command-U|Ctrl-U"},isPageDown:!0},heading:{title:"Heading",defaultKey:{win:"Ctrl-H",mac:"Command-H|Ctrl-H"},isPageDown:!0},hr:{title:"Horizontal Rule",defaultKey:{win:"Ctrl-R",mac:"Command-R|Ctrl-R"},isPageDown:!0},undo:{title:"Undo",defaultKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:function(e){e.undo()},isPageDown:!0},redo:{title:"Redo",defaultKey:{win:"Ctrl-Y|Ctrl-Shift-Z",mac:"Command-Y|Command-Shift-Z"},exec:function(e){e.redo()},isPageDown:!0},selectall:{title:"Select All",defaultKey:{win:"Ctrl-A",mac:"Command-A"},exec:function(e){e.selectAll()},readOnly:!0},removeline:{title:"Remove Line",defaultKey:{win:"Ctrl-D",mac:"Command-D"},exec:function(e){e.removeLines()},multiSelectAction:"forEachLine"},duplicateSelection:{title:"Duplicate Selection",defaultKey:{win:"Ctrl-Shift-D",mac:"Command-Shift-D"},exec:function(e){e.duplicateSelection()},multiSelectAction:"forEach"},sortlines:{title:"Sort Lines",defaultKey:{win:"Ctrl-Alt-S",mac:"Command-Alt-S"},exec:function(e){e.sortLines()},multiSelectAction:"forEachLine"},modifyNumberUp:{title:"Number Up",defaultKey:{win:"Ctrl-Shift-Up",mac:"Alt-Shift-Up"},exec:function(e){e.modifyNumber(1)},multiSelectAction:"forEach"},modifyNumberDown:{title:"Number Down",defaultKey:{win:"Ctrl-Shift-Down",mac:"Alt-Shift-Down"},exec:function(e){e.modifyNumber(-1)},multiSelectAction:"forEach"},find:{title:"Find",defaultKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(e){var n=ace.require("ace/config");n.loadModule("ace/ext/searchbox",function(n){n.Search(e)})},readOnly:!0},replace:{title:"Replace",defaultKey:{win:"Ctrl-Shift-F",mac:"Command-Option-F"},exec:function(e){var n=require("ace/config");n.loadModule("ace/ext/searchbox",function(n){n.Search(e,!0)})},readOnly:!0},findnext:{title:"Find Next",defaultKey:{win:"Ctrl-P",mac:"Command-P"},exec:function(e){e.findNext()},readOnly:!0},findprevious:{title:"Find Previous",defaultKey:{win:"Ctrl-Shift-P",mac:"Command-Shift-P"},exec:function(e){e.findPrevious()},readOnly:!0},togglerecording:{title:"Toggle Recording",defaultKey:{win:"Ctrl-Alt-E",mac:"Command-Option-E"},exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},replaymacro:{title:"Replay Macro",defaultKey:{win:"Ctrl-Shift-E",mac:"Command-Shift-E"},exec:function(e){e.commands.replay(e)},readOnly:!0}};return e.each(t,function(e,n){e.name=n,e.bindKey=e.defaultKey}),n.configureAce=function(n){e.each(t,function(t){t.exec&&n.commands.addCommand(e.pick(t,"name","bindKey","exec","readOnly","multiSelectAction"))})},n.getPagedownKeyStrokes=function(){return e.chain(t).where({isPageDown:!0}).map(function(e){return[e.name,e.bindKey]}).object().value()},n}),function(){function e(){}function n(e){this.buttonBar=d.getElementById("wmd-button-bar"+e),this.preview=d.getElementById("wmd-preview"+e),this.input=d.getElementById("wmd-input"+e)}function t(e,n){var t,a,i,o=this,s=[],c=0,u="none",d=function(e,n){u!=e&&(u=e,n||f()),g.isIE&&"moving"==u?i=null:a=setTimeout(p,1)},p=function(e){i=new r(n,e),a=void 0};this.setCommandMode=function(){u="command",f(),a=setTimeout(p,0)},this.canUndo=function(){return c>1},this.canRedo=function(){return s[c+1]?!0:!1},this.undo=function(){o.canUndo()&&(t?(t.restore(),t=null):(s[c]=new r(n),s[--c].restore(),e&&e())),u="none",n.input.focus(),p()},this.redo=function(){o.canRedo()&&(s[++c].restore(),e&&e()),u="none",n.input.focus(),p()};var f=function(){var a=i||new r(n);return a?"moving"==u?void(t||(t=a)):(t&&(s[c-1].text!=t.text&&(s[c++]=t),t=null),s[c++]=a,s[c+1]=null,void(e&&e())):!1},m=function(e){if(!e.ctrlKey&&!e.metaKey){var n=e.keyCode;n>=33&&40>=n||n>=63232&&63235>=n?d("moving"):8==n||46==n||127==n?d("deleting"):13==n?d("newlines"):27==n?d("escape"):(16>n||n>20)&&91!=n&&d("typing")}},h=function(){l.addEvent(n.input,"keypress",function(e){!e.ctrlKey&&!e.metaKey||e.altKey||89!=e.keyCode&&90!=e.keyCode||e.preventDefault()});var e=function(){(g.isIE||i&&i.text!=n.input.value)&&void 0==a&&(u="paste",f(),p())};l.addEvent(n.input,"keydown",m),l.addEvent(n.input,"mousedown",function(){d("moving")}),n.input.onpaste=e,n.input.ondrop=e},v=function(){h(),p(!0)};this.reinit=function(e,n,r,o){s=[],c=0,u="none",t=void 0,a=void 0,p(),i.text=e,i.start=n,i.end=r,i.scrollTop=o,i.setInputAreaSelection(),f()},this.setMode=d,v()}function r(n,t){var r=this,a=n.input;this.init=function(){l.isVisible(a)&&(t||!d.activeElement||d.activeElement===a)&&(this.setInputAreaSelectionStartEnd(),this.scrollTop=a.scrollTop,(!this.text&&a.selectionStart||0===a.selectionStart)&&(this.text=a.value))},this.setInputAreaSelection=function(){if(l.isVisible(a))if(void 0===a.selectionStart||g.isOpera){if(d.selection){if(d.activeElement&&d.activeElement!==a)return;a.focus();var e=a.createTextRange();e.moveStart("character",-a.value.length),e.moveEnd("character",-a.value.length),e.moveEnd("character",r.end),e.moveStart("character",r.start),e.select()}}else a.focus(),a.selectionStart=r.start,a.selectionEnd=r.end,a.scrollTop=r.scrollTop},this.setInputAreaSelectionStartEnd=function(){if(n.ieCachedRange||!a.selectionStart&&0!==a.selectionStart){if(d.selection){r.text=l.fixEolChars(a.value);var e=n.ieCachedRange||d.selection.createRange(),t=l.fixEolChars(e.text),i="",o=i+t+i;e.text=o;var s=l.fixEolChars(a.value);e.moveStart("character",-o.length),e.text=t,r.start=s.indexOf(i),r.end=s.lastIndexOf(i)-i.length;var c=r.text.length-l.fixEolChars(a.value).length;if(c){for(e.moveStart("character",-t.length);c--;)t+="\n",r.end+=1;e.text=t}n.ieCachedRange&&(r.scrollTop=n.ieCachedScrollTop),n.ieCachedRange=null,this.setInputAreaSelection()}}else r.start=a.selectionStart,r.end=a.selectionEnd},this.restore=function(){void 0!=r.text&&r.text!=a.value&&(a.value=r.text),this.setInputAreaSelection(),a.scrollTop=r.scrollTop},this.getChunks=function(){var n=new e;return n.before=l.fixEolChars(r.text.substring(0,r.start)),n.startTag="",n.selection=l.fixEolChars(r.text.substring(r.start,r.end)),n.endTag="",n.after=l.fixEolChars(r.text.substring(r.end)),n.scrollTop=r.scrollTop,n},this.setChunks=function(e){e.before=e.before+e.startTag,e.after=e.endTag+e.after,this.start=e.before.length,this.end=e.before.length+e.selection.length,this.text=e.before+e.selection+e.after,this.scrollTop=e.scrollTop},this.init()}function a(e,n,t,r){var a,i,o,s=3e3,u="delayed",p=function(e,n){l.addEvent(e,"input",n),e.onpaste=n,e.ondrop=n,l.addEvent(e,"keypress",n),l.addEvent(e,"keydown",n)},f=function(){var e=0;return window.innerHeight?e=window.pageYOffset:d.documentElement&&d.documentElement.scrollTop?e=d.documentElement.scrollTop:d.body&&(e=d.body.scrollTop),e},m=function(){if(n.preview){var t=n.input.value;if(!t||t!=o){o=t;var r=(new Date).getTime();t=e.makeHtml(t);var a=(new Date).getTime();i=a-r,S(t)}}};void 0!==r&&(m=r(m));var h=function(){if(a&&(clearTimeout(a),a=void 0),"manual"!==u){var e=0;"delayed"===u&&(e=i),e>s&&(e=s),a=setTimeout(m,e)}},v=function(e){return e.scrollHeight<=e.clientHeight?1:e.scrollTop/(e.scrollHeight-e.clientHeight)},b=function(){n.preview&&(n.preview.scrollTop=(n.preview.scrollHeight-n.preview.clientHeight)*v(n.preview))};this.refresh=function(e){e?(o="",m()):h()},this.processingTime=function(){return i};var w,x=!0,y=function(e){var t=n.preview,r=t.parentNode,a=t.nextSibling;r.removeChild(t),t.innerHTML=e,a?r.insertBefore(t,a):r.appendChild(t)},C=function(e){n.preview.innerHTML=e},k=function(e){if(w)return w(e);try{C(e),w=C}catch(n){(w=y)(e)}},S=function(e){var r=c.getTop(n.input)-f();if(n.preview&&(k(e),t()),b(),x)return void(x=!1);var a=c.getTop(n.input)-f();g.isIE?setTimeout(function(){window.scrollBy(0,a-r)},0):window.scrollBy(0,a-r)},_=function(){p(n.input,h),n.preview&&(n.preview.scrollTop=0)};_()}function i(e,n,t,a,i,o,s){function c(e,i,o){b.focus(),t&&t.setCommandMode();var s=new r(n);if(s){var l=s.getChunks(),c=function(){b.focus(),l&&s.setChunks(l),s.restore(),a.refresh()},u=w.insertLink(l,c,e,i,o);u||c()}}function u(e){b.focus();var i="wmd-link-button"==e.id||"wmd-image-button"==e.id;if(e.textOp){t&&!i&&t.setCommandMode();var o=new r(n);if(!o)return;var s=o.getChunks(),l=function(){b.focus(),s&&o.setChunks(s),o.restore(),a.refresh()},c=e.textOp(s,l);c||(l(),i||b.dispatchEvent(new Event("input")))}e.execute&&e.execute(t)}function p(e,t){var r="0px",a="-20px",i="-40px",o=e.getElementsByTagName("span")[0];t?(o.style.backgroundPosition=e.XShift+" "+r,e.onmouseover=function(){o.style.backgroundPosition=this.XShift+" "+i},e.onmouseout=function(){o.style.backgroundPosition=this.XShift+" "+r},g.isIE&&(e.onmousedown=function(){d.activeElement&&d.activeElement!==n.input||(n.ieCachedRange=document.selection.createRange(),n.ieCachedScrollTop=n.input.scrollTop)}),e.isHelp||(e.onclick=function(){return this.onmouseout&&this.onmouseout(),u(this),!1}),e.className=e.className.replace(/ disabled/g,"")):(o.style.backgroundPosition=e.XShift+" "+a,e.onmouseover=e.onmouseout=e.onclick=function(){},e.className+=" disabled")}function m(e){return"string"==typeof e&&(e=i[e]),function(){e.apply(i,arguments)}}function h(){var t=n.buttonBar,r=document.createElement("ul");r.id="wmd-button-row"+e,r.className="wmd-button-row",r=t.appendChild(r);var a=0,i=function(n,t,i,o){var s=document.createElement("li");s.className="wmd-button",s.style.left=a+"px",a+=25;var l=document.createElement("span");return s.id=n+e,s.appendChild(l),s.title=t,s.XShift=i,o&&(s.textOp=o),p(s,!0),r.appendChild(s),s};x.bold=i("wmd-bold-button",s("bold"),"0px",m("doBold")),x.italic=i("wmd-italic-button",s("italic"),"-20px",m("doItalic")),x.link=i("wmd-link-button",s("link"),"-40px",m(function(e,n){return this.doLinkOrImage(e,n,!1)})),x.quote=i("wmd-quote-button",s("quote"),"-60px",m("doBlockquote")),x.code=i("wmd-code-button",s("code"),"-80px",m("doCode")),x.image=i("wmd-image-button",s("image"),"-100px",m(function(e,n){return this.doLinkOrImage(e,n,!0)})),x.olist=i("wmd-olist-button",s("olist"),"-120px",m(function(e,n){this.doList(e,n,!0)})),x.ulist=i("wmd-ulist-button",s("ulist"),"-140px",m(function(e,n){this.doList(e,n,!1)})),x.heading=i("wmd-heading-button",s("heading"),"-160px",m("doHeading")),x.hr=i("wmd-hr-button",s("hr"),"-180px",m("doHorizontalRule")),x.undo=i("wmd-undo-button",s("undo"),"-200px",null),x.undo.execute=function(e){e&&e.undo()};var l=s(/win/.test(f.platform.toLowerCase())?"redo":"redomac");if(x.redo=i("wmd-redo-button",l,"-220px",null),x.redo.execute=function(e){e&&e.redo()},o){var c=document.createElement("li"),u=document.createElement("span");c.appendChild(u),c.className="wmd-button wmd-help-button",c.id="wmd-help-button"+e,c.XShift="-240px",c.isHelp=!0,c.style.right="0px",c.title=s("help"),c.onclick=o.handler,p(c,!0),r.appendChild(c),x.help=c}v()}function v(){t&&(p(x.undo,t.canUndo()),p(x.redo,t.canRedo()))}var b=n.input,x={};h();var y="keydown";g.isOpera&&(y="keypress"),l.addEvent(b,y,function(e){if((e.ctrlKey||e.metaKey)&&!e.altKey){var n=e.charCode||e.keyCode,r=String.fromCharCode(n).toLowerCase();switch(r){case"b":u(x.bold);break;case"i":u(x.italic);break;case"l":u(x.link);break;case"q":u(x.quote);break;case"k":
u(x.code);break;case"g":u(x.image);break;case"o":u(x.olist);break;case"u":u(x.ulist);break;case"h":u(x.heading);break;case"r":u(x.hr);break;case"y":u(x.redo);break;case"z":u(e.shiftKey?x.redo:x.undo);break;case"v":return void t.setMode("typing");case"x":return void t.setMode("deleting");default:return}e.preventDefault&&e.preventDefault(),window.event&&(window.event.returnValue=!1)}}),l.addEvent(b,"keyup",function(e){if(e.shiftKey&&!e.ctrlKey&&!e.metaKey){var n=e.charCode||e.keyCode;if(13===n){var t={};t.textOp=m("doAutoindent"),u(t)}}}),g.isIE&&l.addEvent(b,"keydown",function(e){var n=e.keyCode;return 27===n?!1:void 0}),MD.insertLink=c,MD.insertLink2=c,this.setUndoRedoButtonStates=v,this.buttons=x,this.setButtonState=p}function o(e,n){this.hooks=e,this.getString=n}function s(e){return e.replace(/^\s*(.*?)(?:\s+"(.+)")?\s*$/,function(e,n,t){return n=n.replace(/\?.*$/,function(e){return e.replace(/\+/g," ")}),n=decodeURIComponent(n),n=encodeURI(n).replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29"),n=n.replace(/\?.*$/,function(e){return e.replace(/\+/g,"%2b")}),t&&(t=t.trim?t.trim():t.replace(/^\s*/,"").replace(/\s*$/,""),t=t.replace(/"/g,"quot;").replace(/\(/g,"&#40;").replace(/\)/g,"&#41;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),t?n+' "'+t+'"':n})}var l={},c={},u={},d=window.document,p=window.RegExp,f=window.navigator,m={lineLength:72},g={isIE:/msie/.test(f.userAgent.toLowerCase()),isIE_5or6:/msie 6/.test(f.userAgent.toLowerCase())||/msie 5/.test(f.userAgent.toLowerCase()),isOpera:/opera/.test(f.userAgent.toLowerCase())},h={bold:getMsg("Strong")+" <strong> Ctrl/Cmd+B",boldexample:getMsg("strong text"),italic:getMsg("Emphasis")+" <em> Ctrl/Cmd+I",italicexample:getMsg("emphasized text"),link:getMsg("Hyperlink")+" <a> Ctrl/Cmd+L",linkdescription:getMsg("enter link description here"),linkdialog:'<p><b>Insert Hyperlink</b></p><p>http://example.com/ "optional title"</p>',quote:getMsg("Blockquote")+" <blockquote> Ctrl/Cmd+Q",quoteexample:getMsg("Blockquote"),code:getMsg("Code Sample")+" <pre><code> Ctrl/Cmd+K",codeexample:getMsg("enter code here"),image:getMsg("Image")+"<img> Ctrl/Cmd+G",imagedescription:getMsg("enter image description here"),imagedialog:"<p><b>Insert Image</b></p><p>http://example.com/images/diagram.jpg \"optional title\"<br><br>Need <a href='http://www.google.com/search?q=free+image+hosting' target='_blank'>free image hosting?</a></p>",olist:getMsg("Numbered List")+" <ol> Ctrl/Cmd+O",ulist:getMsg("Bulleted List")+" <ul> Ctrl/Cmd+U",litem:getMsg("List item"),heading:getMsg("Heading")+" <h1>/<h2> Ctrl/Cmd+H",headingexample:getMsg("Heading"),hr:getMsg("Horizontal Rule")+" <hr> Ctrl/Cmd+R",undo:getMsg("Undo")+" - Ctrl/Cmd+Z",redo:getMsg("Redo")+" - Ctrl/Cmd+Y",redomac:getMsg("Redo")+" - Ctrl+Shift+Z",help:"Markdown Editing Help"},v="http://",b="http://";Markdown.EditorLight=function(e,r,s){s=s||{},"function"==typeof s.handler&&(s={helpButton:s}),s.strings=s.strings||{},s.helpButton&&(s.strings.help=s.strings.help||s.helpButton.title);var l=function(e){return s.strings[e]||h[e]};r=r||"";var c=this.hooks=new Markdown.HookCollection;c.addNoop("onPreviewRefresh"),c.addNoop("postBlockquoteCreation"),c.addFalse("insertImageDialog"),c.addFalse("insertLinkDialog"),this.getConverter=function(){return e};var u,p,f=this;this.run=function(m){if(!u){u=new n(r);var g,h=new o(c,l),v=new a(e,u,function(){c.onPreviewRefresh()},m);/\?noundo/.test(d.location.href)||(p=new t(function(){v.refresh(),g&&g.setUndoRedoButtonStates()},u),this.textOperation=function(e){p.setCommandMode(),e(),f.refreshPreview()}),g=new i(r,u,p,v,h,s.helpButton,l),g.setUndoRedoButtonStates(),f.refreshPreview=function(){v.refresh(!0)},f.undoManager=p,f.uiManager=g}}},e.prototype.findTags=function(e,n){var t,r=this;e&&(t=l.extendRegExp(e,"","$"),this.before=this.before.replace(t,function(e){return r.startTag=r.startTag+e,""}),t=l.extendRegExp(e,"^",""),this.selection=this.selection.replace(t,function(e){return r.startTag=r.startTag+e,""})),n&&(t=l.extendRegExp(n,"","$"),this.selection=this.selection.replace(t,function(e){return r.endTag=e+r.endTag,""}),t=l.extendRegExp(n,"^",""),this.after=this.after.replace(t,function(e){return r.endTag=e+r.endTag,""}))},e.prototype.trimWhitespace=function(e){var n,t,r=this;e?n=t="":(n=function(e){return r.before+=e,""},t=function(e){return r.after=e+r.after,""}),this.selection=this.selection.replace(/^(\s*)/,n).replace(/(\s*)$/,t)},e.prototype.skipLines=function(e,n,t){void 0===e&&(e=1),void 0===n&&(n=1),e++,n++;var r,a;if(navigator.userAgent.match(/Chrome/)&&"X".match(/()./),this.selection=this.selection.replace(/(^\n*)/,""),this.startTag=this.startTag+p.$1,this.selection=this.selection.replace(/(\n*$)/,""),this.endTag=this.endTag+p.$1,this.startTag=this.startTag.replace(/(^\n*)/,""),this.before=this.before+p.$1,this.endTag=this.endTag.replace(/(\n*$)/,""),this.after=this.after+p.$1,this.before){for(r=a="";e--;)r+="\\n?",a+="\n";t&&(r="\\n*"),this.before=this.before.replace(new p(r+"$",""),a)}if(this.after){for(r=a="";n--;)r+="\\n?",a+="\n";t&&(r="\\n*"),this.after=this.after.replace(new p(r,""),a)}},l.isVisible=function(e){return window.getComputedStyle?"none"!==window.getComputedStyle(e,null).getPropertyValue("display"):e.currentStyle?"none"!==e.currentStyle.display:void 0},l.addEvent=function(e,n,t){e.attachEvent?e.attachEvent("on"+n,t):e.addEventListener(n,t,!1)},l.removeEvent=function(e,n,t){e.detachEvent?e.detachEvent("on"+n,t):e.removeEventListener(n,t,!1)},l.fixEolChars=function(e){return e=e.replace(/\r\n/g,"\n"),e=e.replace(/\r/g,"\n")},l.extendRegExp=function(e,n,t){(null===n||void 0===n)&&(n=""),(null===t||void 0===t)&&(t="");var r,a=e.toString();return a=a.replace(/\/([gim]*)$/,function(e,n){return r=n,""}),a=a.replace(/(^\/|\/$)/g,""),a=n+a+t,new p(a,r)},c.getTop=function(e,n){var t=e.offsetTop;if(!n)for(;e=e.offsetParent;)t+=e.offsetTop;return t},c.getHeight=function(e){return e.offsetHeight||e.scrollHeight},c.getWidth=function(e){return e.offsetWidth||e.scrollWidth},c.getPageSize=function(){var e,n,t,r;self.innerHeight&&self.scrollMaxY?(e=d.body.scrollWidth,n=self.innerHeight+self.scrollMaxY):d.body.scrollHeight>d.body.offsetHeight?(e=d.body.scrollWidth,n=d.body.scrollHeight):(e=d.body.offsetWidth,n=d.body.offsetHeight),self.innerHeight?(t=self.innerWidth,r=self.innerHeight):d.documentElement&&d.documentElement.clientHeight?(t=d.documentElement.clientWidth,r=d.documentElement.clientHeight):d.body&&(t=d.body.clientWidth,r=d.body.clientHeight);var a=Math.max(e,t),i=Math.max(n,r);return[a,i,t,r]},u.createBackground=function(){var e=d.createElement("div"),n=e.style;e.className="wmd-prompt-background",n.position="absolute",n.top="0",n.zIndex="1000",g.isIE?n.filter="alpha(opacity=50)":n.opacity="0.5";var t=c.getPageSize();return n.height=t[1]+"px",g.isIE?(n.left=d.documentElement.scrollLeft,n.width=d.documentElement.clientWidth):(n.left="0",n.width="100%"),d.body.appendChild(e),e},u.prompt=function(e,n,t){var r,a;void 0===n&&(n="");var i=function(e){var n=e.charCode||e.keyCode;27===n&&o(!0)},o=function(e){l.removeEvent(d.body,"keydown",i);var n=a.value;return e?n=null:(n=n.replace(/^http:\/\/(https?|ftp):\/\//,"$1://"),/^(?:https?|ftp):\/\//.test(n)||(n="http://"+n)),r.parentNode.removeChild(r),t(n),!1},s=function(){r=d.createElement("div"),r.className="wmd-prompt-dialog",r.style.padding="10px;",r.style.position="fixed",r.style.width="400px",r.style.zIndex="1001";var t=d.createElement("div");t.innerHTML=e,t.style.padding="5px",r.appendChild(t);var s=d.createElement("form"),u=s.style;s.onsubmit=function(){return o(!1)},u.padding="0",u.margin="0",u.cssFloat="left",u.width="100%",u.textAlign="center",u.position="relative",r.appendChild(s),a=d.createElement("input"),a.type="text",a.value=n,u=a.style,u.display="block",u.width="80%",u.marginLeft=u.marginRight="auto",s.appendChild(a);var p=d.createElement("input");p.type="button",p.onclick=function(){return o(!1)},p.value="OK",u=p.style,u.margin="10px",u.display="inline",u.width="7em";var f=d.createElement("input");f.type="button",f.onclick=function(){return o(!0)},f.value="Cancel",u=f.style,u.margin="10px",u.display="inline",u.width="7em",s.appendChild(p),s.appendChild(f),l.addEvent(d.body,"keydown",i),r.style.top="50%",r.style.left="50%",r.style.display="block",g.isIE_5or6&&(r.style.position="absolute",r.style.top=d.documentElement.scrollTop+200+"px",r.style.left="50%"),d.body.appendChild(r),r.style.marginTop=-(c.getHeight(r)/2)+"px",r.style.marginLeft=-(c.getWidth(r)/2)+"px"};setTimeout(function(){s();var e=n.length;if(void 0!==a.selectionStart)a.selectionStart=0,a.selectionEnd=e;else if(a.createTextRange){var t=a.createTextRange();t.collapse(!1),t.moveStart("character",-e),t.moveEnd("character",e),t.select()}a.focus()},0)};var w=o.prototype;w.prefixes="(?:\\s{4,}|\\s*>|\\s*-\\s+|\\s*\\d+\\.|=|\\+|-|_|\\*|#|\\s*\\[[^\n]]+\\]:)",w.unwrap=function(e){var n=new p("([^\\n])\\n(?!(\\n|"+this.prefixes+"))","g");e.selection=e.selection.replace(n,"$1 $2")},w.wrap=function(e,n){this.unwrap(e);var t=new p("(.{1,"+n+"})( +|$\\n?)","gm"),r=this;e.selection=e.selection.replace(t,function(e,n){return new p("^"+r.prefixes,"").test(e)?e:n+"\n"}),e.selection=e.selection.replace(/\s+$/,"")},w.doBold=function(e,n){return this.doBorI(e,n,2,this.getString("boldexample"))},w.doItalic=function(e,n){return this.doBorI(e,n,1,this.getString("italicexample"))},w.doBorI=function(e,n,t,r){e.trimWhitespace(),e.selection=e.selection.replace(/\n{2,}/g,"\n");var a=/(\**$)/.exec(e.before)[0],i=/(^\**)/.exec(e.after)[0],o=Math.min(a.length,i.length);if(o>=t&&(2!=o||1!=t))e.before=e.before.replace(p("[*]{"+t+"}$",""),""),e.after=e.after.replace(p("^[*]{"+t+"}",""),"");else if(!e.selection&&i){e.after=e.after.replace(/^([*_]*)/,""),e.before=e.before.replace(/(\s?)$/,"");var s=p.$1;e.before=e.before+i+s}else{e.selection||i||(e.selection=r);var l=1>=t?"*":"**";e.before=e.before+l,e.after=l+e.after}},w.stripLinkDefs=function(e,n){return e=e.replace(/^[ ]{0,3}\[(\d+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|$)/gm,function(e,t,r,a,i){return n[t]=e.replace(/\s*$/,""),a?(n[t]=e.replace(/["(](.+?)[")]$/,""),a+i):""})},w.addLinkDef=function(e,n){var t=0,r={};e.before=this.stripLinkDefs(e.before,r),e.selection=this.stripLinkDefs(e.selection,r),e.after=this.stripLinkDefs(e.after,r);var a="",i=/(\[)((?:\[[^\]]*\]|[^\[\]])*)(\][ ]?(?:\n[ ]*)?\[)(\d+)(\])/g,o=function(e){t++,e=e.replace(/^[ ]{0,3}\[(\d+)\]:/," ["+t+"]:"),a+="\n"+e},s=function(e,n,a,l,c,u){return a=a.replace(i,s),r[c]?(o(r[c]),n+a+l+t+u):e};e.before=e.before.replace(i,s),n?o(n):e.selection=e.selection.replace(i,s);var l=t;return e.after=e.after.replace(i,s),e.after&&(e.after=e.after.replace(/\n*$/,"")),e.after||(e.selection=e.selection.replace(/\n*$/,"")),e.after+="\n\n"+a,l},w.insertLink=function(e,n,t,r,a){e.trimWhitespace(),e.findTags(/\s*!?\[/,/\][ ]?(?:\n[ ]*)?(\[.*?\])?/);var i;if(!(e.endTag.length>1&&e.startTag.length>0)){if(e.selection=e.startTag+e.selection+e.endTag,e.startTag=e.endTag="",/\n\n/.test(e.selection))return void this.addLinkDef(e,null);var o=function(t){i.parentNode.removeChild(i),null!==t&&(e.selection=(" "+e.selection).replace(/([^\\](?:\\\\)*)(?=[[\]])/g,"$1\\").substr(1),e.startTag=a?"![":"[",e.endTag="]("+s(t)+")",e.selection=r),n()};return i=u.createBackground(),o(t),!0}e.startTag=e.startTag.replace(/!?\[/,""),e.endTag="",this.addLinkDef(e,null)},w.doLinkOrImage=function(e,n,t){e.trimWhitespace(),e.findTags(/\s*!?\[/,/\][ ]?(?:\n[ ]*)?(\(.*?\))?/);var r;if(!(e.endTag.length>1&&e.startTag.length>0)){if(e.selection=e.startTag+e.selection+e.endTag,e.startTag=e.endTag="",/\n\n/.test(e.selection))return void this.addLinkDef(e,null);var a=this,i=function(i,o){if(r.parentNode.removeChild(r),null!==i&&(e.selection=(" "+e.selection).replace(/([^\\](?:\\\\)*)(?=[[\]])/g,"$1\\").substr(1),e.startTag=t?"![":"[",e.endTag="]("+s(i)+")",!e.selection)){var l="";l=o?o:a.getString(t?"imagedescription":"linkdescription"),e.selection=l}n()};return r=u.createBackground(),t?this.hooks.insertImageDialog(i)||u.prompt(this.getString("imagedialog"),v,i):this.hooks.insertLinkDialog(i)||u.prompt(this.getString("linkdialog"),b,i),!0}e.startTag=e.startTag.replace(/!?\[/,""),e.endTag="",this.addLinkDef(e,null)},w.doAutoindent=function(e){var n=this,t=!1;e.before=e.before.replace(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]*\n$/,"\n\n"),e.before=e.before.replace(/(\n|^)[ ]{0,3}>[ \t]*\n$/,"\n\n"),e.before=e.before.replace(/(\n|^)[ \t]+\n$/,"\n\n"),e.selection||/^[ \t]*(?:\n|$)/.test(e.after)||(e.after=e.after.replace(/^[^\n]*/,function(n){return e.selection=n,""}),t=!0),/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]+.*\n$/.test(e.before)&&n.doList&&n.doList(e),/(\n|^)[ ]{0,3}>[ \t]+.*\n$/.test(e.before)&&n.doBlockquote&&n.doBlockquote(e),/(\n|^)(\t|[ ]{4,}).*\n$/.test(e.before)&&n.doCode&&n.doCode(e),t&&(e.after=e.selection+e.after,e.selection="")},w.doBlockquote=function(e){e.selection=e.selection.replace(/^(\n*)([^\r]+?)(\n*)$/,function(n,t,r,a){return e.before+=t,e.after=a+e.after,r}),e.before=e.before.replace(/(>[ \t]*)$/,function(n,t){return e.selection=t+e.selection,""}),e.selection=e.selection.replace(/^(\s|>)+$/,""),e.selection=e.selection||this.getString("quoteexample");var n,t="",r="";if(e.before){for(var a=e.before.replace(/\n$/,"").split("\n"),i=!1,o=0;o<a.length;o++){var s=!1;n=a[o],i=i&&n.length>0,/^>/.test(n)?(s=!0,!i&&n.length>1&&(i=!0)):s=/^[ \t]*$/.test(n)?!0:i,s?t+=n+"\n":(r+=t+n,t="\n")}/(^|\n)>/.test(t)||(r+=t,t="")}e.startTag=t,e.before=r,e.after&&(e.after=e.after.replace(/^\n?/,"\n")),e.after=e.after.replace(/^(((\n|^)(\n[ \t]*)*>(.+\n)*.*)+(\n[ \t]*)*)/,function(n){return e.endTag=n,""});var l=function(n){var t=n?"> ":"";e.startTag&&(e.startTag=e.startTag.replace(/\n((>|\s)*)\n$/,function(e,n){return"\n"+n.replace(/^[ ]{0,3}>?[ \t]*$/gm,t)+"\n"})),e.endTag&&(e.endTag=e.endTag.replace(/^\n((>|\s)*)\n/,function(e,n){return"\n"+n.replace(/^[ ]{0,3}>?[ \t]*$/gm,t)+"\n"}))};/^(?![ ]{0,3}>)/m.test(e.selection)?(this.wrap(e,m.lineLength-2),e.selection=e.selection.replace(/^/gm,"> "),l(!0),e.skipLines()):(e.selection=e.selection.replace(/^[ ]{0,3}> ?/gm,""),this.unwrap(e),l(!1),!/^(\n|^)[ ]{0,3}>/.test(e.selection)&&e.startTag&&(e.startTag=e.startTag.replace(/\n{0,2}$/,"\n\n")),!/(\n|^)[ ]{0,3}>.*$/.test(e.selection)&&e.endTag&&(e.endTag=e.endTag.replace(/^\n{0,2}/,"\n\n"))),e.selection=this.hooks.postBlockquoteCreation(e.selection),/\n/.test(e.selection)||(e.selection=e.selection.replace(/^(> *)/,function(n,t){return e.startTag+=t,""}))},w.doCode=function(e){var n=/\S[ ]*$/.test(e.before),t=/^[ ]*\S/.test(e.after);if(!t&&!n||/\n/.test(e.selection)){e.before=e.before.replace(/[ ]{4}$/,function(n){return e.selection=n+e.selection,""});var r=1,a=1;/(\n|^)(\t|[ ]{4,}).*\n$/.test(e.before)&&(r=0),/^\n(\t|[ ]{4,})/.test(e.after)&&(a=0),e.skipLines(r,a),e.selection?/^[ ]{0,3}\S/m.test(e.selection)?/\n/.test(e.selection)?e.selection=e.selection.replace(/^/gm," "):e.before+=" ":e.selection=e.selection.replace(/^(?:[ ]{4}|[ ]{0,3}\t)/gm,""):(e.startTag=" ",e.selection=this.getString("codeexample"))}else e.trimWhitespace(),e.findTags(/`/,/`/),e.startTag||e.endTag?e.endTag&&!e.startTag?(e.before+=e.endTag,e.endTag=""):e.startTag=e.endTag="":(e.startTag=e.endTag="`",e.selection||(e.selection=this.getString("codeexample")))},w.doList=function(e,n,t){var r=/(\n|^)(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*$/,a=/^\n*(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*/,i="-",o=1,s=function(){var e;return t?(e=" "+o+". ",o++):e=" "+i+" ",e},l=function(e){return void 0===t&&(t=/^\s*\d/.test(e)),e=e.replace(/^[ ]{0,3}([*+-]|\d+[.])\s/gm,function(){return s()})};if(e.findTags(/(\n|^)*[ ]{0,3}([*+-]|\d+[.])\s+/,null),!e.before||/\n$/.test(e.before)||/^\n/.test(e.startTag)||(e.before+=e.startTag,e.startTag=""),e.startTag){var c=/\d+[.]/.test(e.startTag);if(e.startTag="",e.selection=e.selection.replace(/\n[ ]{4}/g,"\n"),this.unwrap(e),e.skipLines(),c&&(e.after=e.after.replace(a,l)),t==c)return}var u=1;e.before=e.before.replace(r,function(e){return/^\s*([*+-])/.test(e)&&(i=p.$1),u=/[^\n]\n\n[^\n]/.test(e)?1:0,l(e)}),e.selection||(e.selection=this.getString("litem"));var d=s(),f=1;e.after=e.after.replace(a,function(e){return f=/[^\n]\n\n[^\n]/.test(e)?1:0,l(e)}),e.trimWhitespace(!0),e.skipLines(u,f,!0),e.startTag=d;var g=d.replace(/./g," ");this.wrap(e,m.lineLength-g.length),e.selection=e.selection.replace(/\n/g,"\n"+g)},w.doHeading=function(e){if(e.selection=e.selection.replace(/\s+/g," "),e.selection=e.selection.replace(/(^\s+|\s+$)/g,""),!e.selection)return e.before&&"\n"!=e.before[e.before.length-1]&&e.skipLines(1,1),e.startTag="# ",e.selection=this.getString("headingexample"),void(e.endTag="");e.findTags(/#+[ ]*/,/[ ]*#+/),e.before&&"\n"!=e.before[e.before.length-1]&&e.skipLines(1,1);var n=0,t=e.startTag;/^#+[ ]*$/.test(t)&&(t=t.replace(/ /g,""),n=t.length);var r=0;if(n>=0&&3>=n&&(r=n+1),n>=4&&(r=0,e.startTag=""),r>0){for(var a="";r--;)a+="#";a+=" ",e.startTag=a}},w.doHorizontalRule=function(e){e.startTag="----------\n",e.selection="",e.skipLines(1,1,!0)}}(),define("pagedown-light",function(){}),define("core",["underscore","crel","constants","utils","eventMgr","shortcutMgr","pagedown-ace","pagedown-light"],function(e,n,t,r,a,i){function o(){l=ace.edit("wmd-input"),MD.aceEditor=l,l.renderer.setShowGutter(!1),l.renderer.setPrintMarginColumn(!1),l.renderer.setPadding(t.EDITOR_DEFAULT_PADDING),l.session.setUseWrapMode(!0),l.session.setNewLineMode("unix"),l.session.setMode("ace/mode/ace_mode"),l.session.$selectLongWords=!0,function(n){function t(t){var r=n.lines[t];0!==r.length&&0===r[0].type.indexOf("markup.heading.multi")&&e.each(n.lines[t-1],function(e){e.type="markup.heading.prev.multi"})}function r(){if(n.running){for(var e=new Date,a=n.currentLine,i=-1,o=n.doc;n.lines[a];)a++;var s=a,l=o.getLength(),c=0;for(n.running=!1;l>a;){n.$tokenizeRow(a),i=a;do t(a),a++;while(n.lines[a]);if(c++,c%5===0&&new Date-e>20)return n.running=setTimeout(r,20),void(n.currentLine=a)}n.currentLine=a,i>=s&&n.fireUpdateEvent(s,i)}}n.$worker=function(){n.lines.splice(0,n.lines.length),n.states.splice(0,n.states.length),n.currentLine=0,r()}}(l.session.bgTokenizer),i.configureAce(l),a.onAceCreated(l)}var s={};window.MD={eventMgr:a};var l,c,u,d,p,f,m,g,h,v,b,w,x,y=$('<div class="modal fade modal-insert-link"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title">'+getMsg("Hyperlink")+'</h4></div><div class="modal-body"><p>'+getMsg("Please provide the link URL and an optional title")+':</p><div class="input-group"><span class="input-group-addon"><i class="fa fa-link"></i></span><input id="input-insert-link" type="text" class="col-sm-5 form-control" placeholder="http://example.com '+getMsg("optional title")+'"></div></div><div class="modal-footer"><a href="#" class="btn btn-default" data-dismiss="modal">'+getMsg("Cancel")+'</a> <a href="#" class="btn btn-primary action-insert-link" data-dismiss="modal">'+getMsg("OK")+"</a></div></div></div></div>"),C=y.find(".action-insert-link");return s._resetToolBar=function(){$("#wmd-button-row").remove(),$("#wmd-button-bar .wmd-button-bar-inner").html('<ul class="nav left-buttons"><li class="wmd-button-group1 btn-group"></li></ul><ul class="nav left-buttons"><li class="wmd-button-group2 btn-group"></li></ul><ul class="nav left-buttons"><li class="wmd-button-group3 btn-group"></li></ul><ul class="nav left-buttons"><li class="wmd-button-group4 btn-group"></li></ul><ul class="nav left-buttons"><li class="wmd-button-group6 btn-group"></li><li class="wmd-button btn btn-success" id="wmd-help-button" title="'+getMsg("Markdown syntax")+'" style="left:0;display:none"><span style="display:none;background-position:0 0"></span><i class="fa fa-question-circle"></i></li></ul>')},s._setEditorHook=function(){m.hooks.set("insertLinkDialog",function(e){return s.insertLinkCallback=e,r.resetModalInputs(),y.modal(),!0}),m.hooks.set("insertImageDialog",function(e){if(s.insertLinkCallback=e,s.catchModal)return!0;r.resetModalInputs();var n=$("#leauiIfrForMD");return n.attr("src")||n.attr("src","/album/index?md=1"),$(".modal-insert-image").modal(),!0}),m.hooks.chain("onPreviewRefresh",a.onAsyncPreview)},s._moveCursorTo=function(e,n){if(!window.lightMode)return void l.moveCursorTo(e,n);var t=s._getTextareaCursorOffset(e,n);$("#wmd-input").get(0).setSelectionRange(t,t),$("#wmd-input").focus()},s._getTextareaCusorPosition=function(){var e=$("#wmd-input").get(0).selectionStart;if(0==e)return{row:0,column:0};for(var n=MD.getContent()||"",t=n.split("\n"),r=0,a=0,r=0;r<t.length;++r){var i=t[r];if(e<=i.length){a=e;break}e-=i.length,e--}return{row:r,column:a}},s._getTextareaCursorOffset=function(e,n){for(var t=0,r=MD.getContent(),a=r.split("\n"),t=0,i=0;i<a.length&&e>i;++i)t+=a[i].length+1;return t+=n,t+1},s.initLightEditor=function(){if(!window.lightMode){var e,n;l?(e=l.renderer.getScrollTop(),n=l.getCursorPosition()):(e=0,n=0);var t=MD.getContent();s._resetToolBar(),l&&l.destroy(),$("#wmd-input").replaceWith(function(){return $('<textarea id="wmd-input" class="ace_editor ace-tm wmd-textarea">').addClass(this.className).addClass("form-control")}),s._pre(),m=new Markdown.EditorLight(w),s._setEditorHook(),m.run(b),s._setToolBars(),g.val(t),window.lightMode=!0,l=null,MD.clearUndo(),a.onToggleMode(m),s._moveCursorTo(n.row,n.column),g.focus(),$("#wmd-input").scrollTop(e)}},s.initAceEditor=function(){if(window.lightMode){var e=$("#wmd-input").scrollTop(),n=s._getTextareaCusorPosition(),r=MD.getContent();s._resetToolBar(),l&&l.destroy(),$("#wmd-input").replaceWith(function(){return'<pre id="wmd-input" class="form-control"><div id="wmd-input-sub" class="editor-content mousetrap" contenteditable=true></div><div class="editor-margin"></div></pre>'}),s._pre(),o(),g.find(".ace_content").css({"background-size":"64px "+Math.round(t.fontSize*(20/12))+"px"}),m=new Markdown.Editor(w,void 0,{keyStrokes:i.getPagedownKeyStrokes()}),s._setEditorHook(),m.run(l,b),s._setToolBars(),l.setValue(r,-1),window.lightMode=!1,MD.clearUndo(),a.onToggleMode(m),s._moveCursorTo(n.row,n.column),l.focus(),l.session.setScrollTop(e)}},s._initMarkdownConvert=function(){w=new Markdown.Converter;var e={_DoItalicsAndBold:function(e){return e=e.replace(/(\*\*|__)(?=\S)(.+?[*_]*)(?=\S)\1/g,"<strong>$2</strong>"),e=e.replace(/(\*|_)(?=\S)(.+?)(?=\S)\1/g,"<em>$2</em>")}};return w.setOptions(e),w},s.initEditor=function(n){function t(){var e=g.val();!window.lightMode&&l&&(e=l.getValue()),void 0!==v&&v!=e&&(h.content=e,a.onContentChanged(h)),v=e}void 0!==h&&a.onFileClosed(h),n||(n={content:""}),h=n,v=void 0;var r=h.content;if(window.lightMode?g.val(r):l.setValue(r,-1),void 0!==m)return window.lightMode||l&&h.editorSelectRange&&l.selection.setSelectionRange(h.editorSelectRange),m.refreshPreview(),MD.$editorElt=g,void(window.lightMode?g.scrollTop(0):e.defer(function(){l.renderer.scrollToY(0)}));var o=$(".preview-container");m=window.lightMode?new Markdown.EditorLight(w):new Markdown.Editor(w,void 0,{keyStrokes:i.getPagedownKeyStrokes()}),s._setEditorHook(),b=function(n){var r=e.debounce(n,500);return function(){void 0===v?(n(),a.onFileOpen(h),o.scrollTop(h.previewScrollTop),window.lightMode?g.scrollTop(h.editorScrollTop):e.defer(function(){l.renderer.scrollToY(h.editorScrollTop)})):r(),t()}},a.onPagedownConfigure(m),window.lightMode?(m.run(b),m.undoManager.reinit(r,h.editorStart,h.editorEnd,h.editorScrollTop)):(m.run(l,b),h.editorSelectRange&&l.selection.setSelectionRange(h.editorSelectRange))},s._setToolBars=function(){$(".wmd-button-row li").addClass("btn btn-success").css("left",0).find("span").hide();var e=$(".wmd-button-group1");$("#wmd-bold-button").append($('<i class="fa fa-bold">')).appendTo(e),$("#wmd-italic-button").append($('<i class="fa fa-italic">')).appendTo(e),e=$(".wmd-button-group2"),$("#wmd-link-button").append($('<i class="fa fa-link">')).appendTo(e),$("#wmd-quote-button").append($('<i class="fa fa-quote-left">')).appendTo(e),$("#wmd-code-button").append($('<i class="fa fa-code">')).appendTo(e),$("#wmd-image-button").append($('<i class="fa fa-picture-o">')).appendTo(e),e=$(".wmd-button-group3"),$("#wmd-olist-button").append($('<i class="fa fa-list-ol">')).appendTo(e),$("#wmd-ulist-button").append($('<i class="fa fa-list-ul">')).appendTo(e),$("#wmd-heading-button").append($('<i class="fa fa-header">')).appendTo(e),$("#wmd-hr-button").append($('<i class="fa fa-ellipsis-h">')).appendTo(e),$("#wmd-undo-button").append($('<i class="fa fa-undo">')).appendTo(e),$("#wmd-redo-button").append($('<i class="fa fa-repeat">')).appendTo(e),s._initModeToolbar()},s.setMDApi=function(){MD.focus=function(){window.lightMode?$("#wmd-input").focus():l.focus()},MD.setContent=function(e){var n={content:e};s.initEditor(n)},MD.setContent(""),MD.getContent=function(){return window.lightMode?$("#wmd-input").val():l.getValue()},MD.onResize=function(){a.onLayoutResize()},MD.resize=function(){window.lightMode||l.resize()},MD.clearUndo=function(){window.lightMode?m.undoManager.reinit():l.getSession().setUndoManager(new ace.UndoManager),m.uiManager.setUndoRedoButtonStates()},MD.toggleToAce=function(){s.initAceEditor()},MD.toggleToLight=function(){s.initLightEditor()},MD.setModeName=function(e){"textarea"===e&&(e="Normal");var n=getMsg(e);x.html(n)},MD.changeAceKeyboardMode=function(e){if(localS.set(localSModeKey,e),window.lightMode){if("light"==e)return;s.initAceEditor(),MD.defaultKeyboardMode||(MD.defaultKeyboardMode=l.getKeyboardHandler())}else if("light"==e)return void s.initLightEditor();l.setKeyboardHandler("vim"!=e&&"emacs"!=e?MD.defaultKeyboardMode:"ace/keyboard/"+e)}},s._initModeToolbar=function(){if(!window.lightModeForce&&($(".wmd-button-group4").html(['<div class="btn-group">','<button type="button" class="wmd-button btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="'+getMsg("Edit mode")+'">','<i class="fa fa-gear"></i> <i id="md-keyboard-mode"></i>',"</button>",'<ul class="dropdown-menu wmd-mode">','<li><a href="#" data-mode="Normal"><i class="fa fa-check"></i> '+getMsg("Normal mode")+"</a></li>",'<li><a href="#" data-mode="Vim"><i class="fa"></i> '+getMsg("Vim mode")+"</a></li>",'<li><a href="#" data-mode="Emacs"><i class="fa"></i> '+getMsg("Emacs mode")+"</a></li>",'<li role="separator" class="divider"></li>','<li><a href="#" data-mode="Light"><i class="fa"></i> '+getMsg("Light editor")+"</a></li>","</ul>","</div>"].join("")),$("#wmd-help-button").show(),x=$("#md-keyboard-mode"),$(".wmd-mode a").click(function(){var e=$(this),n=e.data("mode");MD.changeAceKeyboardMode(n.toLowerCase(),n),MD.setModeName(n),$(".wmd-mode").find("i").removeClass("fa-check"),$('.wmd-mode a[data-mode="'+n+'"]').find("i").addClass("fa-check")}),!window.LEA||window.LEA&&window.LEA.canSetMDModeFromStorage&&window.LEA.canSetMDModeFromStorage())){var e=localS.get(localSModeKey);if(!e)return;var n=e[0].toUpperCase()+e.substr(1);$(".wmd-mode i").removeClass("fa-check"),$('.wmd-mode a[data-mode="'+n+'"] i').addClass("fa-check"),MD.setModeName(n)}},s._pre=function(){g=$("#wmd-input, .textarea-helper").css({"font-family":t.fontFamily,"font-size":t.fontSize+"px","line-height":Math.round(t.fontSize*(20/12))+"px"})},s.onReady=function(){if(c=$(".navbar"),u=c.find(".left-buttons"),d=c.find(".right-buttons"),p=c.find(".left-buttons-dropdown"),f=c.find(".right-buttons-dropdown"),window.lightMode&&$("#wmd-input").replaceWith(function(){return $('<textarea id="wmd-input" class="ace_editor ace-tm wmd-textarea">').addClass(this.className).addClass("form-control")}),s._pre(),window.lightMode||(o(),g.find(".ace_content").css({"background-size":"64px "+Math.round(t.fontSize*(20/12))+"px"})),a.onReady(),s._initMarkdownConvert(),s.initEditor(),s.setMDApi(),s._setToolBars(),window.lightMode||(MD.defaultKeyboardMode=l.getKeyboardHandler()),!window.LEA||window.LEA&&window.LEA.canSetMDModeFromStorage&&window.LEA.canSetMDModeFromStorage()){var e=localS.get(localSModeKey);if(!window.lightMode&&e){var n=e[0].toUpperCase()+e.substr(1);MD.changeAceKeyboardMode(e,n)}}},a.addListener("onReady",function(){$(document.body).on("shown.bs.modal",".modal",function(){var e=$(this);setTimeout(function(){e.find(".btn:first").focus(),e.find("button:first").focus(),e.find("input:enabled:visible:first").focus()},50)}).on("hidden.bs.modal",".modal",function(){}).on("keypress",".modal",function(e){13!=e.which||$(e.target).is("textarea")||$(this).find(".modal-footer a:last").click()}),C.click(function(e){var n=r.getInputTextValue($("#input-insert-link"),e);if(void 0!==n){var t=n.split(" "),a="",i=t[0];t.length>1&&(t.shift(),a=$.trim(t.join(" "))),i&&i.indexOf("://")<0&&(i="http://"+i),s.insertLinkCallback(i,a),s.insertLinkCallback=void 0}}),$(".action-insert-image").click(function(){var e=document.getElementById("leauiIfrForMD").contentWindow.mdGetImgSrc();e&&(s.insertLinkCallback(e),s.insertLinkCallback=void 0)}),y.on("hidden.bs.modal",function(){void 0!==s.insertLinkCallback&&(s.insertLinkCallback(null),s.insertLinkCallback=void 0)}),$("div.dropdown-menu").click(function(e){e.stopPropagation()}),$("#wmd-button-bar").on("click","#wmd-help-button",function(){window.open("http://leanote.leanote.com/post/Leanote-Markdown-Manual")})}),s}),requirejs.config({waitSeconds:0,packages:[],paths:{underscore:"bower-libs/underscore/underscore",crel:"bower-libs/crel/crel",mathjax:"libs/MathJax/MathJax.js?a=1&config=TeX-AMS_HTML",requirejs:"bower-libs/requirejs/require","google-code-prettify":"bower-libs/google-code-prettify/src/prettify","jquery-waitforimages":"bower-libs/waitForImages/jquery.waitforimages","pagedown-ace":"bower-libs/pagedown-ace/Markdown.Editor","pagedown-light":"libs/Markdown.Editor.light","pagedown-extra":"bower-libs/pagedown-extra/Markdown.Extra","ace/requirejs/text":"libs/ace_text","ace/commands/default_commands":"libs/ace_commands",xregexp:"bower-libs/xregexp/xregexp-all",Diagram:"libs/uml/sequence-diagram.min","diagram-grammar":"libs/uml/diagram-grammar.min",raphael:"libs/uml/raphael.min","flow-chart":"libs/uml/flowchart.amd-1.3.4.min"},shim:{underscore:{exports:"_"},mathjax:["libs/mathjax_init"],"pagedown-extra":["pagedown-ace"],"pagedown-ace":["bower-libs/pagedown-ace/Markdown.Converter"],"pagedown-light":["bower-libs/pagedown-ace/Markdown.Converter"],"flow-chart":["raphael"],"diagram-grammar":["underscore"],Diagram:["raphael","diagram-grammar"]}});var localS={get:function(e){return localStorage?localStorage.getItem(e):void 0},set:function(e,n){n+="",localStorage&&localStorage.setItem(e,n)}},localSModeKey="LeaMdAceMode";if(window.viewerMode=!1,window.lightModeForce=window.viewerMode||/_light_/.test(localStorage.mode)||/(\?|&)light($|&)/.test(location.search)||function(e){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))?!0:void 0;
}(navigator.userAgent||navigator.vendor||window.opera),window.lightModeForce)window.lightMode=!0;else{var mode=localS.get(localSModeKey);"light"===mode&&(window.lightMode=!0)}window.theme=localStorage.themeV3||"default";var themeModule="less!themes/default";require(["core","eventMgr"],function(e){$(function(){e.onReady()})}),define("main",function(){});