From 3f9c36da8c6517071e7b89f27d84f9d1a8383ef5 Mon Sep 17 00:00:00 2001 From: weicheng xi Date: Fri, 16 Jun 2017 19:28:35 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E9=94=81=E5=AE=9A=E6=8E=A5=E5=8F=A3,=20?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E4=BF=A1=E6=81=AF=E8=A2=AB=E4=BF=AE=E6=94=B9?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lhjz/portal/controller/UserController.java | 8 ++++++++ src/main/java/com/lhjz/portal/entity/security/User.java | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/main/java/com/lhjz/portal/controller/UserController.java b/src/main/java/com/lhjz/portal/controller/UserController.java index 4cbe80e3..35861a70 100644 --- a/src/main/java/com/lhjz/portal/controller/UserController.java +++ b/src/main/java/com/lhjz/portal/controller/UserController.java @@ -294,6 +294,10 @@ public RespBody update( logger.error("更新用户不存在! ID: {}", userForm.getUsername()); return RespBody.failed("更新用户不存在!"); } + + if (Boolean.TRUE.equals(user.getLocked())) { + return RespBody.failed("用户信息被锁定,不能修改!"); + } if (StringUtil.isNotEmpty(userForm.getPassword())) { @@ -393,6 +397,10 @@ public RespBody update2(HttpServletRequest request, logger.error("更新用户不存在! ID: {}", userForm.getUsername()); return RespBody.failed("更新用户不存在!"); } + + if (Boolean.TRUE.equals(user.getLocked())) { + return RespBody.failed("用户信息被锁定,不能修改!"); + } if (StringUtil.isNotEmpty(userForm.getPassword())) { diff --git a/src/main/java/com/lhjz/portal/entity/security/User.java b/src/main/java/com/lhjz/portal/entity/security/User.java index 4ef90fe1..757942a1 100644 --- a/src/main/java/com/lhjz/portal/entity/security/User.java +++ b/src/main/java/com/lhjz/portal/entity/security/User.java @@ -84,6 +84,8 @@ public class User implements java.io.Serializable, Comparable { @Temporal(TemporalType.TIMESTAMP) private Date resetPwdDate; + + private Boolean locked; @Version private long version; From 31e58b92d48ebb8461c092d783183582f2568373 Mon Sep 17 00:00:00 2001 From: weicheng xi Date: Fri, 16 Jun 2017 19:31:18 +0800 Subject: [PATCH 2/4] ... --- src/main/java/com/lhjz/portal/controller/UserController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/lhjz/portal/controller/UserController.java b/src/main/java/com/lhjz/portal/controller/UserController.java index 35861a70..f43fb9d5 100644 --- a/src/main/java/com/lhjz/portal/controller/UserController.java +++ b/src/main/java/com/lhjz/portal/controller/UserController.java @@ -295,7 +295,7 @@ public RespBody update( return RespBody.failed("更新用户不存在!"); } - if (Boolean.TRUE.equals(user.getLocked())) { + if (Boolean.TRUE.equals(user.getLocked()) && !isSuper()) { return RespBody.failed("用户信息被锁定,不能修改!"); } @@ -398,7 +398,7 @@ public RespBody update2(HttpServletRequest request, return RespBody.failed("更新用户不存在!"); } - if (Boolean.TRUE.equals(user.getLocked())) { + if (Boolean.TRUE.equals(user.getLocked()) && !isSuper()) { return RespBody.failed("用户信息被锁定,不能修改!"); } From 2c21b9e84d42143139c26e6d10e28768b8fb109d Mon Sep 17 00:00:00 2001 From: weicheng Date: Fri, 23 Jun 2017 16:50:23 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=90=88=E5=B9=B6=E9=9D=99=E6=80=81?= =?UTF-8?q?=E6=89=93=E5=8C=85=E6=9E=84=E5=BB=BA=E8=B5=84=E6=BA=90.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/page/index.html | 2 +- .../page/scripts/app-bundle-5c5b8255c4.js | 31 ------------------ .../page/scripts/app-bundle-9f083fc379.js | 31 ++++++++++++++++++ .../page/scripts/deps-bundle-1609bcdf51.js | 22 +++++++++++++ .../page/scripts/deps-bundle-da08b91bf0.js | 22 ------------- ...ndor-bundle-0429d44398.efed4710.1555882.js | 32 +++++++++++++++++++ .../page/scripts/vendor-bundle-0429d44398.js | 32 +++++++++++++++++++ ...ndor-bundle-c3652bf3fe.6de7b022.1537510.js | 32 ------------------- .../page/scripts/vendor-bundle-c3652bf3fe.js | 32 ------------------- 9 files changed, 118 insertions(+), 118 deletions(-) delete mode 100644 src/main/resources/static/page/scripts/app-bundle-5c5b8255c4.js create mode 100644 src/main/resources/static/page/scripts/app-bundle-9f083fc379.js create mode 100644 src/main/resources/static/page/scripts/deps-bundle-1609bcdf51.js delete mode 100644 src/main/resources/static/page/scripts/deps-bundle-da08b91bf0.js create mode 100644 src/main/resources/static/page/scripts/vendor-bundle-0429d44398.efed4710.1555882.js create mode 100644 src/main/resources/static/page/scripts/vendor-bundle-0429d44398.js delete mode 100644 src/main/resources/static/page/scripts/vendor-bundle-c3652bf3fe.6de7b022.1537510.js delete mode 100644 src/main/resources/static/page/scripts/vendor-bundle-c3652bf3fe.js diff --git a/src/main/resources/static/page/index.html b/src/main/resources/static/page/index.html index 1eb10156..a4d5fd7d 100644 --- a/src/main/resources/static/page/index.html +++ b/src/main/resources/static/page/index.html @@ -15,7 +15,7 @@ - + diff --git a/src/main/resources/static/page/scripts/app-bundle-5c5b8255c4.js b/src/main/resources/static/page/scripts/app-bundle-5c5b8255c4.js deleted file mode 100644 index 63f073e8..00000000 --- a/src/main/resources/static/page/scripts/app-bundle-5c5b8255c4.js +++ /dev/null @@ -1,31 +0,0 @@ -define("app",["exports","tms-semantic-ui","semantic-ui-calendar","jquery-format"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.App=void 0;e.App=function(){function e(){var n=this;t(this,e),this.init(),this.initCalendar(),this.subscribe=ea.subscribe(nsCons.EVENT_APP_ROUTER_NAVIGATE,function(e){n.router&&n.router.navigate(""+e.to)})}return e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype.init=function(){$.fn.dropdown.settings.forceSelection=!1,_.extend($.fn.form.settings.prompt,{empty:"{name}不能为空",checked:"{name}必须被勾选",email:"{name}必须是正确的邮件格式",url:"{name}必须是正确的URL格式",regExp:"{name}验证格式不正确",integer:"{name}必须为一个整数",decimal:"{name}必须为一个小数",number:"{name}必须设置为一个数字",is:'{name}必须符合规则"{ruleValue}"',isExactly:'{name}必须精确匹配"{ruleValue}"',not:'{name}不能设置为"{ruleValue}"',notExactly:'{name}不能准确设置为"{ruleValue}"',contain:'{name}需要包含"{ruleValue}"',containExactly:'{name}需要精确包含"{ruleValue}"',doesntContain:'{name}不能包含"{ruleValue}"',doesntContainExactly:'{name}不能精确包含"{ruleValue}"',minLength:"{name}必须至少包含{ruleValue}个字符",length:"{name}必须为{ruleValue}个字符",exactLength:"{name}必须为{ruleValue}个字符",maxLength:"{name}必须不能超过{ruleValue}个字符",match:"{name}必须匹配{ruleValue}字段",different:"{name}必须不同于{ruleValue}字段",creditCard:"{name}必须是一个正确的信用卡数字格式",minCount:"{name}必须至少包含{ruleValue}个选择项",exactCount:"{name}必须准确包含{ruleValue}个选择项",maxCount:"{name} 必须有{ruleValue}或者更少个选择项"})},e.prototype.initCalendar=function(){return $.fn.calendar.settings.text={days:["日","一","二","三","四","五","六"],months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthsShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],today:"今天",now:"现在",am:"上午",pm:"下午"},$.fn.calendar.settings.formatter.date=function(e,t){if(!e)return"";e.getDate(),e.getMonth()+1,e.getFullYear();return $.format.date(e,"yyyy-MM-dd")},this},e.prototype.configureRouter=function(e,t){var n=null;localStorage&&(n=localStorage.getItem(nsCons.KEY_REMEMBER_LAST_CHAT_TO)),e.map([{route:["pwd-reset"],name:"reset",moduleId:"user/user-pwd-reset",nav:!1,title:"密码重置 | TMS"},{route:["register"],name:"register",moduleId:"user/user-register",nav:!1,title:"用户注册 | TMS"},{route:["chat/:username"],name:"chat",moduleId:"chat/chat-direct",nav:!1,title:"私聊 | TMS"},{route:["blog"],name:"chat",moduleId:"blog/blog",nav:!1,title:"博文 | TMS"},{route:["blog/:id"],name:"chat",moduleId:"blog/blog",nav:!1,title:"博文 | TMS"},{route:["login"],name:"login",moduleId:"user/user-login",nav:!1,title:"登录 | TMS"},{route:["test"],name:"test",moduleId:"test/test-lifecycle",nav:!1,title:"测试 | TMS"},{route:"",redirect:"chat/"+(n?n:"@admin")}]),this.router=t},e.prototype.activate=function(e,t,n){},e}()}),define("environment",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={debug:!1,testing:!1}}),define("main",["exports","./environment"],function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){e.use.standardConfiguration().feature("init").feature("resources"),r.default.debug&&e.use.developmentLogging(),r.default.testing&&e.use.plugin("aurelia-testing"),e.start().then(function(){return e.setRoot()})}Object.defineProperty(e,"__esModule",{value:!0}),e.configure=i;var r=n(t);Promise.config({warnings:{wForgottenReturn:!1}})}),define("blog/blog",["exports","aurelia-framework","chat/chat-service"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Blog=void 0;var a=i(n);e.Blog=function(){function e(){var t=this;r(this,e),this.rightSidebarShow=!1,this.isHide=!0,this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_VIEW_CHANGED,function(e){t.routeConfig&&t.routeConfig.navModel.setTitle(e.title+" | 博文 | TMS")}),this.subscribe1=ea.subscribe(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,function(e){e.justRefresh||(e&&!_.isUndefined(e.isHide)?t.rightSidebarShow=!e.isHide:t.rightSidebarShow=!t.rightSidebarShow)}),this.subscribe2=ea.subscribe(nsCons.EVENT_BLOG_TOGGLE_SIDEBAR,function(e){t.isHide=e})}return e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe1.dispose(),this.subscribe2.dispose(),clearInterval(this.timeagoTimer)},e.prototype.attached=function(){var e=this,t=timeago();this.timeagoTimer=setInterval(function(){$(e.blogContainerRef).find("[data-timeago]").each(function(e,n){$(n).text(t.format($(n).attr("data-timeago"),"zh_CN"))})},5e3),$(".tms-blog").on("mouseenter","span[data-value].at-user:not(.pp-not),a[data-value].author:not(.pp-not)",function(e){e.preventDefault();var t=$(e.currentTarget);ea.publish(nsCons.EVENT_CHAT_MEMBER_POPUP_SHOW,{username:t.attr("data-value"),target:e.currentTarget})}),$(".tms-blog .em-blog-content").on("click","a.avatar[data-value], a.author[data-value], .at-user[data-value]",function(e){e.preventDefault(),ea.publish(nsCons.EVENT_BLOG_COMMENT_MSG_INSERT,{content:"{~"+$(e.currentTarget).attr("data-value")+"} "})})},e.prototype.detached=function(){},e.prototype.activate=function(e,t,n){return this.routeConfig=t,nsCtx.blogId=e.id,ea.publish(nsCons.EVENT_BLOG_SWITCH,{id:e.id}),Promise.all([a.default.loginUser().then(function(e){nsCtx.loginUser=e,nsCtx.isSuper=utils.isSuperUser(e),nsCtx.isAdmin=utils.isAdminUser(e)}),a.default.listUsers(!0).then(function(e){nsCtx.users=e,window.tmsUsers=e})])},e}()}),define("chat/chat-direct",["exports","aurelia-framework","common/common-poll","clipboard","clipboard-js","dropzone","./chat-service"],function(e,t,n,i,r,a,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.ChatDirect=void 0;var c=s(n),d=s(i),u=s(r),m=s(a),p=s(o),g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.ChatDirect=function(){function e(){l(this,e),this.offset=0,this.first=!0,this.last=!0,this.originalHref=wurl(),this.users=[],this.channels=[],this.chatTo=null,this.isLeftBarHide=!0,m.default.autoDiscover=!1,this.poll=c.default,new d.default(".tms-chat-direct .tms-clipboard").on("success",function(e){toastr.success("复制到剪贴板成功!")}).on("error",function(e){toastr.error("复制到剪贴板失败!")}),this.initSubscribeEvent()}return e.prototype.initSubscribeEvent=function(){var e=this;this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_MSG_SENDED,function(t){c.default.reset(),e.first||(e.isAt?e.listChatDirect(!1):e.listChatChannel(!1))}),this.subscribe2=ea.subscribe(nsCons.EVENT_CHAT_SIDEBAR_TOGGLE,function(t){if(e.isRightSidebarShow=nsCtx.isRightSidebarShow=t.isShow,e.isRightSidebarShow){var n=$(e.contentRef).width()-392;$(e.contentBodyRef).width(n),$(e.contentBodyRef).children(".scroll-wrapper").width(n)}else $(e.contentBodyRef).css("width","100%"),$(e.contentBodyRef).children(".scroll-wrapper").css("width","100%")}),this.subscribe3=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_CREATED,function(t){e.channels.push(t.channel)}),this.subscribe4=ea.subscribe(nsCons.EVENT_CHAT_SEARCH_GOTO_CHAT_ITEM,function(t){e.gotoChatItem(t.chatItem)}),this.subscribe5=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_DELETED,function(t){e.isAt||t.channel.name!=e.chatTo||(window.location=wurl("path")+("#/chat/@"+e.loginUser.username)),e.channels=[].concat(e.channels)}),this.subscribe6=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_JOINED,function(t){e.channels.splice(0,0,t.channel)}),this.subscribe7=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_LEAVED,function(t){e.isAt||t.channel.name!=e.chatTo||(window.location=wurl("path")+("#/chat/@"+e.loginUser.username)),e.channels=_.reject(e.channels,{id:t.channel.id})}),this.subscribe8=ea.subscribe(nsCons.EVENT_CHAT_LAST_ITEM_RENDERED,function(t){t.item.__scroll&&(e.replyId&&ea.publish(nsCons.EVENT_CHAT_TOPIC_SHOW,{chat:_.find(e.chats,{id:+e.markId}),rid:e.replyId}),e.scrollToAfterImgLoaded(e.markId?e.markId:"b"),delete t.item.__scroll,e.markId=null,e.replyId=null)}),this.subscribe9=ea.subscribe(nsCons.EVENT_SCROLLBAR_SCROLL_TO_BOTTOM,function(t){e.scrollbarRef==t.element&&c.default.reset()}),this.subscribe10=ea.subscribe(nsCons.EVENT_CHAT_CONTENT_SCROLL_TO,function(t){e.scrollTo(t.target)}),this.subscribe11=ea.subscribe(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,function(t){t?e.isLeftBarHide=t:e.isLeftBarHide=!e.isLeftBarHide})},e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe2.dispose(),this.subscribe3.dispose(),this.subscribe4.dispose(),this.subscribe5.dispose(),this.subscribe6.dispose(),this.subscribe7.dispose(),this.subscribe8.dispose(),this.subscribe9.dispose(),this.subscribe10.dispose(),this.subscribe11.dispose(),clearInterval(this.timeagoTimer),c.default.stop()},e.prototype.activate=function(e,t,n){var i=this;return this._reset(),this.markId=e.id,this.replyId=e.rid,this.routeConfig=t,this.chatId&&(this.preChatId=this.chatId),this.chatId=nsCtx.chatId=e.username,localStorage&&localStorage.setItem(nsCons.KEY_REMEMBER_LAST_CHAT_TO,this.chatId),this.isAt=nsCtx.isAt=_.startsWith(e.username,"@"),this.chatTo=nsCtx.chatTo=utils.getChatName(e.username),this.markId&&history.replaceState(null,"",utils.removeUrlQuery("id")),this.replyId&&history.replaceState(null,"",utils.removeUrlQuery("rid")),Promise.all([p.default.loginUser(!0).then(function(e){i.loginUser=e,nsCtx.loginUser=e,nsCtx.isSuper=utils.isSuperUser(i.loginUser),nsCtx.isAdmin=utils.isAdminUser(i.loginUser)}),p.default.listUsers(!0).then(function(e){if(i.users=e,nsCtx.users=e,window.tmsUsers=e,i.isAt)if(i.channel=null,i.user=_.find(i.users,{username:i.chatTo}),i.user){var n=i.user?i.user.name:i.chatTo;t.navModel.setTitle(n+" | 私聊 | TMS"),i.listChatDirect(!0)}else toastr.error("聊天用户["+i.chatTo+"]不存在或者没有权限访问!"),i.preChatId?window.location=wurl("path")+("#/chat/"+i.preChatId):window.location=wurl("path")+("#/chat/@"+i.loginUser.username)}),p.default.listChannels(!0).then(function(e){i.channels=e,nsCtx.channels=e,i.isAt||(i.user=null,i.channel=_.find(i.channels,{name:i.chatTo}),i.channel?(t.navModel.setTitle(i.channel.title+" | 频道 | TMS"),i.listChatChannel(!0)):(toastr.error("聊天频道["+i.chatTo+"]不存在或者没有权限访问!"),i.preChatId?window.location=wurl("path")+("#/chat/"+i.preChatId):window.location=wurl("path")+("#/chat/@"+i.loginUser.username)))})])},e.prototype._reset=function(){this.progressWidth=0,this.chats=null,this.first=!0,this.last=!0},e.prototype.lastMoreHandler=function(){var e=this,t=_.first(this.chats).id,n=void 0,i=void 0;this.isAt?(n="/admin/chat/direct/more",i={last:!0,start:t,size:20,chatTo:this.chatTo}):(n="/admin/chat/channel/more",i={last:!0,start:t,size:20,channelId:this.channel.id}),this.lastMoreP=$.get(n,i,function(n){n.success?(e.chats=_.unionBy(_.reverse(n.data),e.chats),e.last=n.msgs[0]-n.data.length<=0,!e.last&&(e.lastCnt=n.msgs[0]-n.data.length),e.scrollToAfterImgLoaded(t)):toastr.error(n.data,"获取更多消息失败!")})},e.prototype.firstMoreHandler=function(){var e=this,t=_.last(this.chats).id,n=void 0,i=void 0;this.isAt?(n="/admin/chat/direct/more",i={last:!1,start:t,size:20,chatTo:this.chatTo}):(n="/admin/chat/channel/more",i={last:!1,start:t,size:20,channelId:this.channel.id}),this.nextMoreP=$.get(n,i,function(n){n.success?(e.chats=_.unionBy(e.chats,n.data),e.first=n.msgs[0]-n.data.length<=0,!e.first&&(e.firstCnt=n.msgs[0]-n.data.length),e.scrollToAfterImgLoaded(t)):toastr.error(n.data,"获取更多消息失败!")})},e.prototype.listChatChannel=function(e){var t=this,n={size:20,channelId:this.channel.id};this.markId&&e&&(n.id=this.markId),$.get("/admin/chat/channel/listBy",n,function(e){t.processChats(e)})},e.prototype.listChatDirect=function(e){var t=this,n={size:20,chatTo:this.chatTo};this.markId&&e&&(n.id=this.markId),$.get("/admin/chat/direct/list",n,function(e){t.processChats(e)})},e.prototype.processChats=function(e){if(e.success){this.chats=_.reverse(e.data.content);var t=_.last(this.chats);t&&(t.__scroll=!0),this.last=e.data.last,this.first=e.data.first,!this.last&&(this.lastCnt=e.data.totalElements-e.data.numberOfElements),!this.first&&(this.firstCnt=e.data.size*e.data.number)}},e.prototype._scrollTo=function(e){""===e||null===e||_.isUndefined(e)||("b"==e?$(this.commentsRef).parent(".scroll-content").scrollTo("max"):"t"==e?$(this.commentsRef).parent(".scroll-content").scrollTo(0):_.some(this.chats,{id:+e})?($(this.commentsRef).parent(".scroll-content").scrollTo('.em-chat-content-item.comment[data-id="'+e+'"]',{offset:this.offset}),$(this.commentsRef).find(".comment[data-id]").removeClass("active"),$(this.commentsRef).find(".comment[data-id="+e+"]").addClass("active")):($(this.commentsRef).parent(".scroll-content").scrollTo("max"),toastr.warning("消息["+e+"]不存在,可能已经被删除!")))},e.prototype.scrollToAfterImgLoaded=function(e){var t=this;_.defer(function(){new ImagesLoaded(t.commentsRef).always(function(){t._scrollTo(e)}),t._scrollTo(e)})},e.prototype.doPoll=function(){var e=this;c.default.start(function(t,n){e._pollChats(t,n),e._poll(t,n)})},e.prototype._poll=function(e,t){var n=this,i=_.last(this.chats);!this.pollOnGoing&&!this.isAt&&this.channel&&i&&(this.pollOnGoing=!0,$.get("/admin/chat/channel/poll",{channelId:this.channel.id,lastChatChannelId:i.id,isAt:!0},function(e){if(e.success){var t=n._getAlarm();if(n.countAt&&e.data.countAt>n.countAt&&!t.off&&t.ats){var i=e.data.countAt-n.countAt;push.create("TMS沟通@消息通知",{body:"你有"+i+"条新的@消息!",icon:{x16:"img/tms-x16.ico",x32:"img/tms-x32.png"},timeout:5e3})}n.countAt=e.data.countAt,ea.publish(nsCons.EVENT_CHAT_POLL_UPDATE,{countAt:e.data.countAt,countMyRecentSchedule:e.data.countMyRecentSchedule})}}).always(function(){n.pollOnGoing=!1}))},e.prototype._pollChats=function(e,t){var n=this;if(!this.pollChatsOngoing&&this.chats&&this.first){var i=_.last(this.chats),r=void 0,a=void 0;this.isAt?(r="/admin/chat/direct/latest",a={id:i?i.id:0,chatTo:this.chatTo}):(r="/admin/chat/channel/latest",a={id:i?i.id:0,channelId:this.channel.id}),this.pollChatsOngoing=!0,$.get(r,a,function(e){if(e.success){if(!n._checkPollResultOk(e))return;n._checkNeedNotify(e),n.chats=_.unionBy(n.chats,e.data,"id"),n.scrollToAfterImgLoaded("b")}else toastr.error(e.data,"轮询获取消息失败!")}).fail(function(n,i){t(),utils.errorAutoTry(function(){e()})}).always(function(){n.pollChatsOngoing=!1})}},e.prototype._getAlarm=function(){var e={ats:1,news:1,off:0};if(localStorage){var t=localStorage.getItem(nsCons.KEY_CHAT_ALARM);t&&_.extend(e,JSON.parse(t))}return e},e.prototype._checkNeedNotify=function(e){var t=this;if(0==e.data.length)return!1;var n=_.some(e.data,function(e){return e.creator.username==t.loginUser.username}),i=this._getAlarm();n||i.off||!i.news||push.create("TMS沟通频道消息通知",{body:"频道["+this.channel.title+"]有新消息了!",icon:{x16:"img/tms-x16.ico",x32:"img/tms-x32.png"},timeout:5e3})},e.prototype._checkPollResultOk=function(e){if(0==e.data.length)return!1;var t=_.first(e.data);return this.isAt?_.has(t,"chatTo"):_.has(t,"channel")},e.prototype.bind=function(e){this.doPoll()},e.prototype.attached=function(){var e=this,t=timeago();this.timeagoTimer=setInterval(function(){$(e.chatContainerRef).find("[data-timeago]").each(function(e,n){$(n).text(t.format($(n).attr("data-timeago"),"zh_CN"))})},5e3),this.initHotkeys(),this.initFocusedComment(),$(this.scrollbarRef).on("mouseenter",".em-chat-content-item",function(t){t.preventDefault();var n=$(t.currentTarget);e.$hoveredItem=n,e.isShowHead=!utils.isElementInViewport(n.children(".em-user-avatar"));var i=n.next(".em-chat-content-item");1===i.size()?e.isShowFoot=!utils.isElementInViewport(i.children(".em-user-avatar")):e.isShowFoot=!1}).on("mouseleave",function(t){t.preventDefault(),e.isShowHead=!1,e.isShowFoot=!1}),$(this.commentsRef).on("click",".cbutton",function(e){e.preventDefault();var t=$(this);t.addClass("cbutton--click"),setTimeout(function(){t.removeClass("cbutton--click")},500)}),$(this.chatContainerRef).on("click","code[data-code]",function(e){e.ctrlKey&&(e.stopImmediatePropagation(),e.preventDefault(),u.default.copy($(e.currentTarget).attr("data-code")).then(function(){toastr.success("复制到剪贴板成功!")},function(e){toastr.error("复制到剪贴板失败!")}))}),$(this.chatContainerRef).on("click",".pre-code-wrapper",function(e){e.ctrlKey&&(e.stopImmediatePropagation(),e.preventDefault(),u.default.copy($(e.currentTarget).find("i[data-clipboard-text]").attr("data-clipboard-text")).then(function(){toastr.success("复制到剪贴板成功!")},function(e){toastr.error("复制到剪贴板失败!")}))}),$('.tms-comments-container[ref="scrollbarRef"]').scroll(_.throttle(function(t){try{var n=$(t.currentTarget)[0].scrollHeight,i=$(t.currentTarget)[0].scrollTop,r=1*i/(n-$(t.currentTarget).outerHeight());e.progressWidth=$(t.currentTarget).outerWidth()*r}catch(t){e.progressWidth=0}},10))},e.prototype.goHeadHandler=function(){var e=this;this.scrollTo(this.$hoveredItem,500,function(){e.isShowHead=!1})},e.prototype.goFootHandler=function(){var e=this;this.scrollTo(this.$hoveredItem.next(),500,function(){e.isShowFoot=!1})},e.prototype.initFocusedComment=function(){var e=this;$(this.commentsRef).on("click",".comment.item",function(t){e.focusedComment=$(t.currentTarget)}).on("dblclick",".comment.item",function(t){if(t.ctrlKey){var n=function(){var n=$(t.currentTarget).attr("data-id"),i=$(t.currentTarget).find(".content > textarea"),r=_.find(e.chats,{id:Number.parseInt(n)});return r.openEdit||r.creator.username==e.loginUser.username?void $.get("/admin/chat/"+(e.isAt?"direct":"channel")+"/get",{id:r.id},function(e){e.success?(r.version!=e.data.version&&_.extend(r,e.data),r.isEditing=!0,r.contentOld=r.content,_.defer(function(){i.focus().select(),autosize.update(i.get(0))})):toastr.error(e.data)}):{v:void 0}}();if("object"===("undefined"==typeof n?"undefined":g(n)))return n.v}})},e.prototype.getScrollTargetComment=function(e){if(e)if(this.focusedComment&&1===this.focusedComment.size()){var t=this.focusedComment.find("> a.em-user-avatar");if(utils.isElementInViewport(t)){var n=this.focusedComment.prev(".comment.item");1===n.size()&&(this.focusedComment=n)}}else this.focusedComment=$(this.commentsRef).children(".comment.item:first");else if(this.focusedComment&&1===this.focusedComment.size()){var i=this.focusedComment.next(".comment.item");1===i.size()&&(this.focusedComment=i)}else this.focusedComment=$(this.commentsRef).children(".comment.item:last");return this.focusedComment},e.prototype.scrollTo=function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments[2];this.focusedComment=e,$(this.commentsRef).parent(".scroll-content").scrollTo(e,t,{offset:this.offset,onAfter:n})},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","ctrl+u",function(t){t.preventDefault(),$(e.emChatInputRef.btnItemUploadRef).find(".content").click()}).bind("keydown","ctrl+/",function(t){t.preventDefault(),e.emChatInputRef.emHotkeysModal.show()}).bind("keydown","alt+up",function(t){t.preventDefault(),e.scrollTo(e.getScrollTargetComment(!0))}).bind("keydown","alt+down",function(t){t.preventDefault(),e.scrollTo(e.getScrollTargetComment())}).bind("keydown","t",function(t){t.preventDefault(),e.scrollTo($(e.commentsRef).children(".comment.item:first"))}).bind("keydown","b",function(t){t.preventDefault(),e.scrollTo($(e.commentsRef).children(".comment.item:last"))})},e.prototype.gotoChatItem=function(e){var t=this;if(e.chatAt&&e.chatAt.chatReply){var n=function(){var n=_.find(t.chats,function(t){return _.some(t.chatReplies,{id:e.id})});if(n)t.scrollToAfterImgLoaded(n.id),_.defer(function(){return ea.publish(nsCons.EVENT_CHAT_TOPIC_SHOW,{chat:n,rid:e.id})});else{var i=e.chatAt.chatChannel.channel.name;t.chatTo==i?t.activate({id:e.chatAt.chatChannel.id,rid:e.id,username:i},t.routeConfig):window.location=wurl("path")+("#/chat/"+i+"?id="+e.chatAt.chatChannel.id+"&rid="+e.id)}return{v:void 0}}();if("object"===("undefined"==typeof n?"undefined":g(n)))return n.v}if(e.chatStow&&e.chatStow.chatReply){var i=function(){var n=_.find(t.chats,function(t){return _.some(t.chatReplies,{id:e.id})});if(n)t.scrollToAfterImgLoaded(n.id),_.defer(function(){return ea.publish(nsCons.EVENT_CHAT_TOPIC_SHOW,{chat:n,rid:e.id})});else{var i=e.chatStow.chatChannel.channel.name;t.chatTo==i?t.activate({id:e.chatStow.chatChannel.id,rid:e.id,username:i},t.routeConfig):window.location=wurl("path")+("#/chat/"+i+"?id="+e.chatStow.chatChannel.id+"&rid="+e.id)}return{v:void 0}}();if("object"===("undefined"==typeof i?"undefined":g(i)))return i.v}var r=_.find(this.chats,{id:e.id});if(r)this.scrollToAfterImgLoaded(e.id);else{var a=void 0,o=void 0;e.chatTo?(a=e.chatTo.username,o="@"+a):e.channel&&(a=e.channel.name,o=""+a),this.chatTo==a?this.activate({id:e.id,username:o},this.routeConfig):window.location=wurl("path")+("#/chat/"+o+"?id="+e.id)}},e.prototype.refreshLatestHandler=function(e){e.stopImmediatePropagation(),this.markId=null,this.isAt?this.listChatDirect(!1):this.listChatChannel(!1)},e.prototype.dimmerHandler=function(){ea.publish(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,!0)},e}()}),define("chat/chat-service",["exports"],function(e){"use strict";function t(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function i(r,a){try{var o=t[r](a),s=o.value}catch(e){return void n(e)}return o.done?void e(s):Promise.resolve(s).then(function(e){return i("next",e)},function(e){return i("throw",e)})}return i("next")})}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function e(){n(this,e)}return e.prototype.loginUser=function(){function e(e){return n.apply(this,arguments)}var n=t(regeneratorRuntime.mark(function e(t){var n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&this.user){e.next=3;break}return e.next=3,$.get("/admin/user/loginUser",function(e){e.success&&(n.user=e.data)});case 3:return e.abrupt("return",this.user);case 4:case"end":return e.stop()}},e,this)}));return e}(),e.prototype.listUsers=function(){function e(e){return n.apply(this,arguments)}var n=t(regeneratorRuntime.mark(function e(t){var n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&this.users){e.next=3;break}return e.next=3,$.get("/admin/user/all",{},function(e){e.success&&(n.users=e.data)});case 3:return e.abrupt("return",this.users);case 4:case"end":return e.stop()}},e,this)}));return e}(),e.prototype.listChannels=function(){function e(e){return n.apply(this,arguments)}var n=t(regeneratorRuntime.mark(function e(t){var n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&this.channels){e.next=3;break}return e.next=3,$.get("/admin/channel/listMy",function(e){e.success&&(n.channels=e.data)});case 3:return e.abrupt("return",this.channels);case 4:case"end":return e.stop()}},e,this)}));return e}(),e}();e.default=new i}),define("common/common-constant",[],function(){"use strict";window.nsCons={EVENT_APP_ROUTER_NAVIGATE:"event_app_router_navigate",EVENT_CHAT_MSG_SENDED:"event_chat_msg_sended",EVENT_CHAT_TOPIC_MSG_SENDED:"event_chat_topic_msg_sended",EVENT_CHAT_MSG_EDIT_UPLOAD:"event_chat_msg_edit_upload",EVENT_CHAT_SIDEBAR_TOGGLE:"event_chat_sidebar_toggle",EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE:"event_chat_right_sidebar_toggle",EVENT_CHAT_SEARCH_GOTO_CHAT_ITEM:"event_chat_search_goto_chat_item",EVENT_CHAT_CHANNEL_CREATED:"event_chat_channel_created",EVENT_CHAT_CHANNEL_DELETED:"event_chat_channel_deleted",EVENT_CHAT_CHANNEL_JOINED:"event_chat_channel_joined",EVENT_CHAT_CHANNEL_LEAVED:"event_chat_channel_leaved",EVENT_SHOW_HOTKEYS_MODAL:"event_show_hotkeys_modal",EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE:"event_chat_channel_member_add_or_remove",EVENT_CHAT_LAST_ITEM_RENDERED:"event_chat_last_item_rendered",EVENT_CHAT_REPLY_LAST_ITEM_RENDERED:"event_chat_reply_last_item_rendered",EVENT_SCROLLBAR_SCROLL_TO_BOTTOM:"event_scrollbar_scroll_to_bottom",EVENT_CHAT_MSG_INSERT:"event_chat_msg_insert",EVENT_CHAT_TOPIC_MSG_INSERT:"event_chat_topic_msg_insert",EVENT_CHAT_MSG_POPUP_SHOW:"event_chat_msg_popup_show",EVENT_CHAT_TOPIC_SHOW:"event_chat_topic_show",EVENT_CHAT_MEMBER_POPUP_SHOW:"event_chat_member_popup_show",EVENT_CHAT_MSG_WIKI_DIR:"event_chat_msg_wiki_dir",EVENT_CHAT_CONTENT_SCROLL_TO:"event_chat_content_scroll_to",EVENT_CHAT_RIGHT_SIDEBAR_SCROLL_TO:"event_chat_right_sidebar_scroll_to",EVENT_CHAT_POLL_UPDATE:"event_chat_poll_update",EVENT_CHAT_REPLY_SCROLL_TO:"event_chat_reply_scroll_to",EVENT_CHAT_TOGGLE_LEFT_SIDEBAR:"event_chat_toggle_left_sidebar",EVENT_SWITCH_CHAT_TO:"event_switch_chat_to",EVENT_CHANNEL_ACTIONS:"event_channel_actions",EVENT_CHANNEL_LINKS_REFRESH:"event_channel_links_refresh",EVENT_SYSTEM_LINKS_REFRESH:"event_system_links_refresh",EVENT_SCHEDULE_REFRESH:"event_schedule_refresh",EVENT_MODAAL_BEFORE_OPEN:"event_modaal_before_open",EVENT_MODAAL_AFTER_OPEN:"event_modaal_after_open",EVENT_MODAAL_BEFORE_CLOSE:"event_modaal_before_close",EVENT_MODAAL_AFTER_CLOSE:"event_modaal_after_close",EVENT_BLOG_SWITCH:"event_blog_switch",EVENT_BLOG_ACTION:"event_blog_action",EVENT_BLOG_CHANGED:"event_blog_changed",EVENT_SPACE_CHANGED:"event_space_changed",EVENT_BLOG_CREATED:"event_blog_created",EVENT_BLOG_UPDATED:"event_blog_updated",EVENT_BLOG_DELETED:"event_blog_deleted",EVENT_BLOG_TOGGLE_SIDEBAR:"event_blog_toggle_sidebar",EVENT_BLOG_VIEW_CHANGED:"event_blog_view_changed",EVENT_BLOG_STOW_CHANGED:"event_blog_stow_changed",EVENT_BLOG_SAVE:"event_blog_save",EVENT_BLOG_HISTORY_CHANGED:"event_blog_history_changed",EVENT_BLOG_COMMENT_POPUP_SHOW:"event_blog_comment_popup_show",EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE:"event_blog_right_sidebar_toggle",EVENT_BLOG_LEFT_SIDEBAR_TOGGLE:"event_blog_left_sidebar_toggle",EVENT_BLOG_CONTENT_DIMMER_TOGGLE:"event_blog_content_dimmer_toggle",EVENT_BLOG_COMMENT_MSG_INSERT:"event_blog_comment_msg_insert",EVENT_BLOG_COMMENT_ADDED:"event_blog_comment_added",EVENT_BLOG_COMMENT_CHANGED:"event_blog_comment_changed",ACTION_TYPE_SEARCH:"action_type_search",ACTION_TYPE_STOW:"action_type_stow",ACTION_TYPE_PIN:"action_type_pin",ACTION_TYPE_TOPIC:"action_type_topic",ACTION_TYPE_AT:"action_type_at",ACTION_TYPE_DIR:"action_type_dir",ACTION_TYPE_ATTACH:"action_type_attach",ACTION_TYPE_SCHEDULE:"action_type_schedule",NUM_TEXT_COMPLETE_MAX_COUNT:20,STR_EMOJI_SEARCH_URL:"http://emoji.muan.co/",KEY_REMEMBER_LAST_CHAT_TO:"tms/remember_last_chat_to",KEY_CHAT_ALARM:"tms/chat_alarm",KEY_LOGIN_USERNAME:"tms/login_username",KEY_BLOG_COMMON_SPACE:"tms/blog/common_space"}}),define("common/common-ctx",[],function(){"use strict";var e;window.nsCtx=(e={loginUser:{},isSuper:!1,isAdmin:!1,users:[],channels:[],memberAll:{username:"all",enabled:!0,mails:"",name:"全员"},isAt:!0,chatTo:null,chatId:null},e.isSuper=!1,e.isAdmin=!1,e.blogId=null,e.isModaalOpening=!1,e.isRightSidebarShow=!1,e)}),define("common/common-diff",[],function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(e,t){e.JsDiff=t()}(window,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(1),a=i(r),o=n(3),s=n(4),l=n(5),c=n(6),d=n(7),u=n(8),m=n(9),p=n(10),g=n(12),h=n(13);t.Diff=a.default,t.diffChars=o.diffChars,t.diffWords=s.diffWords,t.diffWordsWithSpace=s.diffWordsWithSpace,t.diffLines=l.diffLines,t.diffTrimmedLines=l.diffTrimmedLines,t.diffSentences=c.diffSentences,t.diffCss=d.diffCss,t.diffJson=u.diffJson,t.structuredPatch=p.structuredPatch,t.createTwoFilesPatch=p.createTwoFilesPatch,t.createPatch=p.createPatch,t.applyPatch=m.applyPatch,t.convertChangesToDMP=g.convertChangesToDMP,t.convertChangesToXML=h.convertChangesToXML,t.canonicalize=u.canonicalize},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){this.ignoreWhitespace=e}function a(e,t,n,i){for(var r=0,a=e.length,o=0,s=0;re.length?i:e}),c.value=u.join("")}else c.value=t.slice(o,o+c.count).join("");o+=c.count,c.added||(s+=c.count)}}return e}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.__esModule=!0,t.default=r;var s=n(2),l=i(s);r.prototype={diff:function(e,t,n){function i(e){return n?(setTimeout(function(){n(void 0,e)},0),!0):e}function r(){for(var n=-1*d;n<=d;n+=2){var r=void 0,u=m[n-1],p=m[n+1],g=(p?p.newPos:0)-n;u&&(m[n-1]=void 0);var h=u&&u.newPos+1=l&&g+1>=c)return i(a(r.components,t,e,s.useLongestToken));m[n]=r}else m[n]=void 0}d++}var s=this;if(e=this.castInput(e),t=this.castInput(t),t===e)return i([{value:t}]);if(!t)return i([{value:e,removed:!0}]);if(!e)return i([{value:t,added:!0}]);t=this.removeEmpty(this.tokenize(t)),e=this.removeEmpty(this.tokenize(e));var l=t.length,c=e.length,d=1,u=l+c,m=[{newPos:-1,components:[]}],p=this.extractCommon(m[0],t,e,0);if(m[0].newPos+1>=l&&p+1>=c)return i([{value:t.join("")}]);if(n)!function e(){setTimeout(function(){return d>u?n():void(r()||e())},0)}();else for(;d<=u;){var g=r();if(g)return g}},pushComponent:function(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,i){for(var r=t.length,a=n.length,o=e.newPos,s=o-i,l=0;o+1=0;r--){for(var c=i[r],d=0;d0?l(a.lines.slice(-o.context)):[],m-=g.length,p-=g.length)}g.push.apply(g,c.default(r,function(e){return(t.added?"+":"-")+e})),t.added?b+=r.length:h+=r.length}else{if(m)if(r.length<=2*o.context&&e=d.length-2&&r.length<=o.context){var v=/\n$/.test(n),_=/\n$/.test(i);0!=r.length||v?v&&_||g.push("\\ No newline at end of file"):g.splice(f.oldLines,0,"\\ No newline at end of file")}u.push(f),m=0,p=0,g=[]}h+=r.length,b+=r.length}},v=0;v"):r.removed&&t.push(""),t.push(i(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")}function i(e){var t=e;return t=t.replace(/&/g,"&"),t=t.replace(//g,">"),t=t.replace(/"/g,""")}t.__esModule=!0,t.convertChangesToXML=n}])})}),define("common/common-emoji",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="search,+1,-1,100,1234,8ball,a,ab,abc,abcd,accept,aerial_tramway,airplane,alarm_clock,alien,ambulance,anchor,angel,anger,angry,anguished,ant,apple,aquarius,aries,arrow_backward,arrow_double_down,arrow_double_up,arrow_down,arrow_down_small,arrow_forward,arrow_heading_down,arrow_heading_up,arrow_left,arrow_lower_left,arrow_lower_right,arrow_right,arrow_right_hook,arrow_up,arrow_up_down,arrow_up_small,arrow_upper_left,arrow_upper_right,arrows_clockwise,arrows_counterclockwise,art,articulated_lorry,astonished,atm,b,baby,baby_bottle,baby_chick,baby_symbol,back,baggage_claim,balloon,ballot_box_with_check,bamboo,banana,bangbang,bank,bar_chart,barber,baseball,basketball,bath,bathtub,battery,bear,bee,beer,beers,beetle,beginner,bell,bento,bicyclist,bike,bikini,bird,birthday,black_circle,black_joker,black_medium_small_square,black_medium_square,black_nib,black_small_square,black_square,black_square_button,blossom,blowfish,blue_book,blue_car,blue_heart,blush,boar,boat,bomb,book,bookmark,bookmark_tabs,books,boom,boot,bouquet,bow,bowling,bowtie,boy,bread,bride_with_veil,bridge_at_night,briefcase,broken_heart,bug,bulb,bullettrain_front,bullettrain_side,bus,busstop,bust_in_silhouette,busts_in_silhouette,cactus,cake,calendar,calling,camel,camera,cancer,candy,capital_abcd,capricorn,car,card_index,carousel_horse,cat,cat2,cd,chart,chart_with_downwards_trend,chart_with_upwards_trend,checkered_flag,cherries,cherry_blossom,chestnut,chicken,children_crossing,chocolate_bar,christmas_tree,church,cinema,circus_tent,city_sunrise,city_sunset,cl,clap,clapper,clipboard,clock1,clock10,clock1030,clock11,clock1130,clock12,clock1230,clock130,clock2,clock230,clock3,clock330,clock4,clock430,clock5,clock530,clock6,clock630,clock7,clock730,clock8,clock830,clock9,clock930,closed_book,closed_lock_with_key,closed_umbrella,cloud,clubs,cn,cocktail,coffee,cold_sweat,collision,computer,confetti_ball,confounded,confused,congratulations,construction,construction_worker,convenience_store,cookie,cool,cop,copyright,corn,couple,couple_with_heart,couplekiss,cow,cow2,credit_card,crescent_moon,crocodile,crossed_flags,crown,cry,crying_cat_face,crystal_ball,cupid,curly_loop,currency_exchange,curry,custard,customs,cyclone,dancer,dancers,dango,dart,dash,date,de,deciduous_tree,department_store,diamond_shape_with_a_dot_inside,diamonds,disappointed,disappointed_relieved,dizzy,dizzy_face,do_not_litter,dog,dog2,dollar,dolls,dolphin,donut,door,doughnut,dragon,dragon_face,dress,dromedary_camel,droplet,dvd,e-mail,ear,ear_of_rice,earth_africa,earth_americas,earth_asia,egg,eggplant,eight,eight_pointed_black_star,eight_spoked_asterisk,electric_plug,elephant,email,end,envelope,es,euro,european_castle,european_post_office,evergreen_tree,exclamation,expressionless,eyeglasses,eyes,facepunch,factory,fallen_leaf,family,fast_forward,fax,fearful,feelsgood,feet,ferris_wheel,file_folder,finnadie,fire,fire_engine,fireworks,first_quarter_moon,first_quarter_moon_with_face,fish,fish_cake,fishing_pole_and_fish,fist,five,flags,flashlight,floppy_disk,flower_playing_cards,flushed,foggy,football,fork_and_knife,fountain,four,four_leaf_clover,fr,free,fried_shrimp,fries,frog,frowning,fu,fuelpump,full_moon,full_moon_with_face,game_die,gb,gem,gemini,ghost,gift,gift_heart,girl,globe_with_meridians,goat,goberserk,godmode,golf,grapes,green_apple,green_book,green_heart,grey_exclamation,grey_question,grimacing,grin,grinning,guardsman,guitar,gun,haircut,hamburger,hammer,hamster,hand,handbag,hankey,hash,hatched_chick,hatching_chick,headphones,hear_no_evil,heart,heart_decoration,heart_eyes,heart_eyes_cat,heartbeat,heartpulse,hearts,heavy_check_mark,heavy_division_sign,heavy_dollar_sign,heavy_exclamation_mark,heavy_minus_sign,heavy_multiplication_x,heavy_plus_sign,helicopter,herb,hibiscus,high_brightness,high_heel,hocho,honey_pot,honeybee,horse,horse_racing,hospital,hotel,hotsprings,hourglass,hourglass_flowing_sand,house,house_with_garden,hurtrealbad,hushed,ice_cream,icecream,id,ideograph_advantage,imp,inbox_tray,incoming_envelope,information_desk_person,information_source,innocent,interrobang,iphone,it,izakaya_lantern,jack_o_lantern,japan,japanese_castle,japanese_goblin,japanese_ogre,jeans,joy,joy_cat,jp,key,keycap_ten,kimono,kiss,kissing,kissing_cat,kissing_closed_eyes,kissing_face,kissing_heart,kissing_smiling_eyes,koala,koko,kr,large_blue_circle,large_blue_diamond,large_orange_diamond,last_quarter_moon,last_quarter_moon_with_face,laughing,leaves,ledger,left_luggage,left_right_arrow,leftwards_arrow_with_hook,lemon,leo,leopard,libra,light_rail,link,lips,lipstick,lock,lock_with_ink_pen,lollipop,loop,loudspeaker,love_hotel,love_letter,low_brightness,m,mag,mag_right,mahjong,mailbox,mailbox_closed,mailbox_with_mail,mailbox_with_no_mail,man,man_with_gua_pi_mao,man_with_turban,mans_shoe,maple_leaf,mask,massage,meat_on_bone,mega,melon,memo,mens,metal,metro,microphone,microscope,milky_way,minibus,minidisc,mobile_phone_off,money_with_wings,moneybag,monkey,monkey_face,monorail,mortar_board,mount_fuji,mountain_bicyclist,mountain_cableway,mountain_railway,mouse,mouse2,movie_camera,moyai,muscle,mushroom,musical_keyboard,musical_note,musical_score,mute,nail_care,name_badge,neckbeard,necktie,negative_squared_cross_mark,neutral_face,new,new_moon,new_moon_with_face,newspaper,ng,nine,no_bell,no_bicycles,no_entry,no_entry_sign,no_good,no_mobile_phones,no_mouth,no_pedestrians,no_smoking,non-potable_water,nose,notebook,notebook_with_decorative_cover,notes,nut_and_bolt,o,o2,ocean,octocat,octopus,oden,office,ok,ok_hand,ok_woman,older_man,older_woman,on,oncoming_automobile,oncoming_bus,oncoming_police_car,oncoming_taxi,one,open_file_folder,open_hands,open_mouth,ophiuchus,orange_book,outbox_tray,ox,package,page_facing_up,page_with_curl,pager,palm_tree,panda_face,paperclip,parking,part_alternation_mark,partly_sunny,passport_control,paw_prints,peach,pear,pencil,pencil2,penguin,pensive,performing_arts,persevere,person_frowning,person_with_blond_hair,person_with_pouting_face,phone,pig,pig2,pig_nose,pill,pineapple,pisces,pizza,plus1,point_down,point_left,point_right,point_up,point_up_2,police_car,poodle,poop,post_office,postal_horn,postbox,potable_water,pouch,poultry_leg,pound,pouting_cat,pray,princess,punch,purple_heart,purse,pushpin,put_litter_in_its_place,question,rabbit,rabbit2,racehorse,radio,radio_button,rage,rage1,rage2,rage3,rage4,railway_car,rainbow,raised_hand,raised_hands,raising_hand,ram,ramen,rat,recycle,red_car,red_circle,registered,relaxed,relieved,repeat,repeat_one,restroom,revolving_hearts,rewind,ribbon,rice,rice_ball,rice_cracker,rice_scene,ring,rocket,roller_coaster,rooster,rose,rotating_light,round_pushpin,rowboat,ru,rugby_football,runner,running,running_shirt_with_sash,sa,sagittarius,sailboat,sake,sandal,santa,satellite,satisfied,saxophone,school,school_satchel,scissors,scorpius,scream,scream_cat,scroll,seat,secret,see_no_evil,seedling,seven,shaved_ice,sheep,shell,ship,shipit,shirt,shit,shoe,shower,signal_strength,six,six_pointed_star,ski,skull,sleeping,sleepy,slot_machine,small_blue_diamond,small_orange_diamond,small_red_triangle,small_red_triangle_down,smile,smile_cat,smiley,smiley_cat,smiling_imp,smirk,smirk_cat,smoking,snail,snake,snowboarder,snowflake,snowman,sob,soccer,soon,sos,sound,space_invader,spades,spaghetti,sparkle,sparkler,sparkles,sparkling_heart,speak_no_evil,speaker,speech_balloon,speedboat,squirrel,star,star2,stars,station,statue_of_liberty,steam_locomotive,stew,straight_ruler,strawberry,stuck_out_tongue,stuck_out_tongue_closed_eyes,stuck_out_tongue_winking_eye,sun_with_face,sunflower,sunglasses,sunny,sunrise,sunrise_over_mountains,surfer,sushi,suspect,suspension_railway,sweat,sweat_drops,sweat_smile,sweet_potato,swimmer,symbols,syringe,tada,tanabata_tree,tangerine,taurus,taxi,tea,telephone,telephone_receiver,telescope,tennis,tent,thought_balloon,three,thumbsdown,thumbsup,ticket,tiger,tiger2,tired_face,tm,toilet,tokyo_tower,tomato,tongue,top,tophat,tractor,traffic_light,train,train2,tram,triangular_flag_on_post,triangular_ruler,trident,triumph,trolleybus,trollface,trophy,tropical_drink,tropical_fish,truck,trumpet,tshirt,tulip,turtle,tv,twisted_rightwards_arrows,two,two_hearts,two_men_holding_hands,two_women_holding_hands,u5272,u5408,u55b6,u6307,u6708,u6709,u6e80,u7121,u7533,u7981,u7a7a,uk,umbrella,unamused,underage,unlock,up,us,v,vertical_traffic_light,vhs,vibration_mode,video_camera,video_game,violin,virgo,volcano,vs,walking,waning_crescent_moon,waning_gibbous_moon,warning,watch,water_buffalo,watermelon,wave,wavy_dash,waxing_crescent_moon,waxing_gibbous_moon,wc,weary,wedding,whale,whale2,wheelchair,white_check_mark,white_circle,white_flower,white_large_square,white_medium_small_square,white_medium_square,white_small_square,white_square_button,wind_chime,wine_glass,wink,wolf,woman,womans_clothes,womans_hat,womens,worried,wrench,x,yellow_heart,yen,yum,zap,zero,zzz";e.default=t.split(",")}),define("common/common-imgs-loaded",[],function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(t,n){function i(n){return null==n?String(n):"object"===("undefined"==typeof n?"undefined":e(n))||"function"==typeof n?n instanceof t.NodeList&&"nodelist"||n instanceof t.HTMLCollection&&"htmlcollection"||Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase():"undefined"==typeof n?"undefined":e(n)}function r(e){switch(i(e)){case"array":return e;case"undefined":return[];case"nodelist":case"htmlcollection":case"arguments":for(var t=[],n=0,r=e.length;n0&&a.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(l)?(r=!t.disabled,r&&(i=e(t).closest("fieldset")[0],i&&(r=!i.disabled))):r="a"===l?t.href||n:n,r=r||e(t).is("[contenteditable]"),r&&e(t).is(":visible"))},t=function(){function t(t,n){this._container=t,this._target=n,this._container=e(this._container),this._target=e(this._target).addClass("pastable"),this._container.on("paste",function(e){return function(t){var n,i,r,a,o,s,l,c,d,u,m,p,g;if(t.currentTarget!==t.target)return t.preventDefault();if(e._paste_event_fired=!0,null!=(null!=(d=t.originalEvent)?d.clipboardData:void 0))if(n=t.originalEvent.clipboardData,n.items)for(u=n.items,a=0,s=u.length;ac&&(m=o+l*(u-c),m<=s&&(clearInterval(d),n()))},m)}function i(){u=0,m=o,h=!1,clearInterval(d),d=null}function r(){i(),n()}function a(){h=!0}Object.defineProperty(e,"__esModule",{value:!0});var o=6e3,s=3e5,l=6e3,c=10,d=null,u=0,m=o,p=null,g=null,h=!1;e.default={start:function(e,t){d&&i(),p=e,g=t,n()},reset:function(){r()},stop:function(){i()},pause:function(){a()}}}),define("common/common-poll2",["exports"],function(e){"use strict";function t(){if(!h)try{p&&p(r,i)}catch(e){g&&g(r,i,e),console.log("轮询异常: "+e)}}function n(){h=!1,t(),d=setInterval(function(){u++,t(),u>c&&(m=o+l*(u-c),m<=s&&(clearInterval(d),n()))},m)}function i(){u=0,m=o,h=!1,clearInterval(d),d=null}function r(){i(),n()}function a(){h=!0}Object.defineProperty(e,"__esModule",{value:!0});var o=6e3,s=3e5,l=6e3,c=10,d=null,u=0,m=o,p=null,g=null,h=!1;e.default={start:function(e,t){d&&i(),p=e,g=t,n()},reset:function(){r()},stop:function(){i()},pause:function(){a()}}}),define("common/common-scrollbar",[],function(){"use strict";!function(e,t){t(e.jQuery)}(window,function(e){function t(t){if(a.webkit&&!t)return{height:0,width:0};if(!a.data.outer){var n={border:"none","box-sizing":"content-box",height:"200px",margin:"0",padding:"0",width:"200px"};a.data.inner=e("
").css(e.extend({},n)),a.data.outer=e("
").css(e.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},n)).append(a.data.inner).appendTo("body")}return a.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(a.data.outer.offset().top-a.data.inner.offset().top||0),width:Math.ceil(a.data.outer.offset().left-a.data.inner.offset().left||0)}}function n(){var e=t(!0);return!(e.height||e.width)}function i(e){var t=e.originalEvent;return(!t.axis||t.axis!==t.HORIZONTAL_AXIS)&&!t.wheelDeltaX}var r=!1,a={data:{index:0,name:"scrollbar"},firefox:/firefox/i.test(navigator.userAgent),macosx:/mac/i.test(navigator.platform),msedge:/edge\/\d+/i.test(navigator.userAgent),msie:/(msie|trident)/i.test(navigator.userAgent),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent)};a.scrolls.add=function(e){this.remove(e).push(e)},a.scrolls.remove=function(t){for(;e.inArray(t,this)>=0;)this.splice(e.inArray(t,this),1);return this};var o={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!1,ignoreOverlay:!1,isRtl:!1,scrollStep:30,showArrows:!1,stepScrolling:!0,scrollx:null,scrolly:null,onDestroy:null,onFallback:null,onInit:null,onScroll:null,onUpdate:null},s=function(i){a.scroll||(a.overlay=n(),a.scroll=t(),c(),e(window).resize(function(){c(!0)})),this.container=i,this.namespace=".scrollbar_"+a.data.index++,this.options=e.extend({},o,window.jQueryScrollbarOptions||{}),this.scrollTo=null,this.scrollx={},this.scrolly={},i.data(a.data.name,this),a.scrolls.add(this)};s.prototype={destroy:function(){if(this.wrapper){this.container.removeData(a.data.name),a.scrolls.remove(this);var t=this.container.scrollLeft(),n=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:"","max-height":""}).removeClass("scroll-content scroll-scrollx_visible scroll-scrolly_visible").off(this.namespace).scrollLeft(t).scrollTop(n),this.scrollx.scroll.removeClass("scroll-scrollx_visible").find("div").addBack().off(this.namespace),this.scrolly.scroll.removeClass("scroll-scrolly_visible").find("div").addBack().off(this.namespace),this.wrapper.remove(),e(document).add("body").off(this.namespace),e.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},init:function(t){var n=this,r=this.container,o=this.containerWrapper||r,s=this.namespace,l=e.extend(this.options,t||{}),c={x:this.scrollx,y:this.scrolly},d=this.wrapper,u={},m={scrollLeft:r.scrollLeft(),scrollTop:r.scrollTop()};if(a.mobile&&l.ignoreMobile||a.overlay&&l.ignoreOverlay||a.macosx&&!a.webkit)return e.isFunction(l.onFallback)&&l.onFallback.apply(this,[r]),!1;if(d)u={height:"auto","margin-bottom":a.scroll.height*-1+"px","max-height":""},u[l.isRtl?"margin-left":"margin-right"]=a.scroll.width*-1+"px",o.css(u);else{if(this.wrapper=d=e("
").addClass("scroll-wrapper").addClass(r.attr("class")).css("position","absolute"===r.css("position")?"absolute":"relative").insertBefore(r).append(r),l.isRtl&&d.addClass("scroll--rtl"),r.is("textarea")&&(this.containerWrapper=o=e("
").insertBefore(r).append(r),d.addClass("scroll-textarea")),u={height:"auto","margin-bottom":a.scroll.height*-1+"px","max-height":""},u[l.isRtl?"margin-left":"margin-right"]=a.scroll.width*-1+"px",o.addClass("scroll-content").css(u),r.on("scroll"+s,function(t){var i=r.scrollLeft(),o=r.scrollTop();if(l.isRtl)switch(!0){case a.firefox:i=Math.abs(i);case a.msedge||a.msie:i=r[0].scrollWidth-r[0].clientWidth-i}e.isFunction(l.onScroll)&&l.onScroll.call(n,{maxScroll:c.y.maxScrollOffset,scroll:o,size:c.y.size,visible:c.y.visible},{maxScroll:c.x.maxScrollOffset,scroll:i,size:c.x.size,visible:c.x.visible}),c.x.isVisible&&c.x.scroll.bar.css("left",i*c.x.kx+"px"),c.y.isVisible&&c.y.scroll.bar.css("top",o*c.y.kx+"px")}),d.on("scroll"+s,function(){d.scrollTop(0).scrollLeft(0)}),l.disableBodyScroll){var p=function(e){i(e)?c.y.isVisible&&c.y.mousewheel(e):c.x.isVisible&&c.x.mousewheel(e)};d.on("MozMousePixelScroll"+s,p),d.on("mousewheel"+s,p),a.mobile&&d.on("touchstart"+s,function(t){var n=t.originalEvent.touches&&t.originalEvent.touches[0]||t,i={pageX:n.pageX,pageY:n.pageY},a={left:r.scrollLeft(),top:r.scrollTop()};e(document).on("touchmove"+s,function(e){var t=e.originalEvent.targetTouches&&e.originalEvent.targetTouches[0]||e;r.scrollLeft(a.left+i.pageX-t.pageX),r.scrollTop(a.top+i.pageY-t.pageY),e.preventDefault()}),e(document).on("touchend"+s,function(){e(document).off(s)})})}e.isFunction(l.onInit)&&l.onInit.apply(this,[r])}e.each(c,function(t,o){var d=null,u=1,m="x"===t?"scrollLeft":"scrollTop",p=l.scrollStep,g=function(){var e=r[m]();r[m](e+p),1==u&&e+p>=h&&(e=r[m]()),u==-1&&e+p<=h&&(e=r[m]()),r[m]()==e&&d&&d()},h=0;o.scroll||(o.scroll=n._getScroll(l["scroll"+t]).addClass("scroll-"+t),l.showArrows&&o.scroll.addClass("scroll-element_arrows_visible"),o.mousewheel=function(e){if(!o.isVisible||"x"===t&&i(e))return!0;if("y"===t&&!i(e))return c.x.mousewheel(e),!0;var a=e.originalEvent.wheelDelta*-1||e.originalEvent.detail,s=o.size-o.visible-o.offset;return a||("x"===t&&e.originalEvent.deltaX?a=40*e.originalEvent.deltaX:"y"===t&&e.originalEvent.deltaY&&(a=40*e.originalEvent.deltaY)),(a>0&&h0)&&(h+=a,h<0&&(h=0),h>s&&(h=s),n.scrollTo=n.scrollTo||{},n.scrollTo[m]=h,setTimeout(function(){n.scrollTo&&(r.stop().animate(n.scrollTo,240,"linear",function(){h=r[m]()}),n.scrollTo=null)},1)),e.preventDefault(),!1},o.scroll.on("MozMousePixelScroll"+s,o.mousewheel).on("mousewheel"+s,o.mousewheel).on("mouseenter"+s,function(){h=r[m]()}),o.scroll.find(".scroll-arrow, .scroll-element_track").on("mousedown"+s,function(i){if(1!=i.which)return!0;u=1;var s={eventOffset:i["x"===t?"pageX":"pageY"],maxScrollValue:o.size-o.visible-o.offset,scrollbarOffset:o.scroll.bar.offset()["x"===t?"left":"top"],scrollbarSize:o.scroll.bar["x"===t?"outerWidth":"outerHeight"]()},c=0,b=0;if(e(this).hasClass("scroll-arrow")){if(u=e(this).hasClass("scroll-arrow_more")?1:-1,p=l.scrollStep*u,h=u>0?s.maxScrollValue:0,l.isRtl)switch(!0){case a.firefox:h=u>0?0:s.maxScrollValue*-1;break;case a.msie||a.msedge:}}else u=s.eventOffset>s.scrollbarOffset+s.scrollbarSize?1:s.eventOffset','
','
','
','
','
','
','
','
',"
","
",'
','
','
',"
",'
','
',"
","
","
"].join(""),simple:['
','
','
','
','
',"
","
"].join("")};return n[t]&&(t=n[t]),t||(t=n.simple),t="string"==typeof t?e(t).appendTo(this.wrapper):e(t),e.extend(t,{bar:t.find(".scroll-bar"),size:t.find(".scroll-element_size"),track:t.find(".scroll-element_track")}),t},_handleMouseDown:function(t,n){var i=this.namespace;return e(document).on("blur"+i,function(){e(document).add("body").off(i),t&&t()}),e(document).on("dragstart"+i,function(e){return e.preventDefault(),!1}),e(document).on("mouseup"+i,function(){e(document).add("body").off(i),t&&t()}),e("body").on("selectstart"+i,function(e){return e.preventDefault(),!1}),n&&n.preventDefault(),!1},_updateScroll:function(t,n){var i=this.container,r=this.containerWrapper||i,o="scroll-scroll"+t+"_visible",s="x"===t?this.scrolly:this.scrollx,l=parseInt(this.container.css("x"===t?"left":"top"),10)||0,c=this.wrapper,d=n.size,u=n.visible+l;n.isVisible=d-u>1,n.isVisible?(n.scroll.addClass(o),s.scroll.addClass(o),r.addClass(o)):(n.scroll.removeClass(o),s.scroll.removeClass(o),r.removeClass(o)),"y"===t&&(i.is("textarea")||d10?(window.console&&console.log("Scroll updates exceed 10"),c=function(){}):(clearTimeout(e),e=setTimeout(c,300))}}()})}),define("common/common-tags",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=[{label:"待处理",value:"待处理",color:"green",type:"tag"},{label:"进行中",value:"进行中",color:"yellow",type:"tag"},{label:"已完成",value:"已完成",color:"blue",type:"tag"},{label:"已验收",value:"已验收",color:"grey",type:"tag"}]}),define("common/common-tips",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={"/h1":{key:"ctrl+h",label:"/h1 [标题1] (ctrl+h)",value:"# "},"/h2":{label:"/h2 [标题2]",value:"## "},"/h3":{label:"/h3 [标题3]",value:"### "},"/h4":{label:"/h4 [标题4]",value:"#### "},"/h5":{label:"/h5 [标题5]",value:"##### "},"/h6":{key:"ctrl+shift+h",label:"/h6 [标题6] (ctrl+shift+h)",value:"###### "},"/b":{key:"ctrl+b",label:"/b [粗体] (ctrl+b)",value:"****",ch:2},"/i":{key:"ctrl+i",label:"/i [斜体] (ctrl+i)",value:"**",ch:1},"/s":{label:"/s [删除线]",value:"~~~~",ch:2},"/code":{key:"alt+ctrl+c",label:"/code [代码] (alt+ctrl+c)",value:"```\n\n```\n",line:2,ch2:5},"/quote":{key:"ctrl+'",label:"/quote [引用] (ctrl+')",value:"> "},"/list":{key:"ctrl+l",label:"/list [列表] (ctrl+l)",value:"* "},"/href":{key:"ctrl+k",label:"/href [链接] (ctrl+k)",value:"[](http://)",ch:1},"/img":{key:"alt+ctrl+i",label:"/img [图片] (ctrl+alt+i)",value:"![](http://)",ch:1},"/table":{label:"/table [表格]",value:"| 列1 | 列2 | 列3 |\n| ------ | ------ | ------ |\n| 文本 | 文本 | 文本 |\n"},"/hr":{label:"/hr [分隔线]",value:"\n-----\n"},"/task":{label:"/task [任务列表]",value:"- [ ] 未完成任务\n- [x] 已完成任务",line:1,ch:11,ch2:12},"/details":{label:"/details [折叠详情]",value:"
\n标题详情内容\n
",line:1,ch:11,ch2:25},"/upload":{label:"/upload [上传文件] (ctrl+u)",value:""},"/shortcuts":{label:"/shortcuts [热键] (ctrl+/)",value:""}}}),define("common/common-utils",["exports","wurl","common/common-diff"],function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.CommonUtils=void 0;var r=n(t),a=e.CommonUtils=function(){function e(){i(this,e),this.regExpOS={ios:/(iPad|iPhone|iPod)/g,mobileChrome:/(CriOS)/g,mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g,cellphone:/iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g}}return e.prototype.getBaseUrl=function(){return"function"==typeof r.default?80==(0,r.default)("port")||443==(0,r.default)("port")?(0,r.default)("protocol")+"://"+(0,r.default)("hostname"):(0,r.default)("protocol")+"://"+(0,r.default)("hostname")+":"+(0,r.default)("port"):""},e.prototype.getUrl=function(){return this.getBaseUrl()+(0,r.default)("path")+"#"+this.getHash()},e.prototype.getHash=function(){var e=(0,r.default)("hash");return e?e.split("?")[0]:""},e.prototype.getBasePath=function(){return this.getBaseUrl()+(0,r.default)("path")},e.prototype.getResourceBase=function(){var e=this.getBasePath();return _.endsWith(e,"/index.html")&&(e=_.replace(e,"/index.html","")),e},e.prototype.redirect2Login=function(e){var t=this.urlQuery("redirect");t?console.log("url has contains ?redirect"):(e=e?e:(0,r.default)(),window.location=this.getBaseUrl()+(0,r.default)("path")+("#/login?redirect="+encodeURIComponent(e)))},e.prototype.urlQuery=function(e,t){if(t){var n=(0,r.default)("?"+e,t);return n||(n=(0,r.default)("?"+e,(0,r.default)("hash",t))),n}return(0,r.default)("?"+e)||(0,r.default)("?"+e,(0,r.default)("hash"))},e.prototype.removeUrlQuery=function(e,t){var n=t?t:window.location.href,i=new RegExp("(&|\\?)?"+e+"=?[^&#]*(.)?","g").exec(n);if(i){if("&"==i[1])return n.replace(new RegExp("&"+e+"=?[^&#]+","g"),"");if("?"==i[1])return"&"!=i[2]?n.replace(new RegExp("\\?"+e+"=?[^&#]*","g"),""):n.replace(new RegExp(""+e+"=?[^&#]*&","g"),"")}return n},e.prototype.isLoginPage=function(){var e=(0,r.default)("hash");return _.startsWith(e,"/login")},e.prototype.errorAutoTry=function(e,t){var n=this;if(!this.isRunning&&!this.isLoginPage()){var i=t?t:10,r=null,a=toastr.error("网络连接错误,"+i+"秒后自动重试!",null,{closeButton:!1,timeOut:"0",preventDuplicates:!1,onclick:function(){clearInterval(n.timer),e&&e()}});this.isRunning=!0,r=setInterval(function(){return 0===i?(clearInterval(r),n.isRunning=!1,toastr.remove(),void(e&&e())):(a&&a.find(".toast-message").text("网络连接错误,"+i+"秒后自动重试!"),void i--)},1e3)}},e.prototype.isElementInViewport=function(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},e.prototype.getChatName=function(e){return _.startsWith(e,"@")?e.substr(1):e},e.prototype.preParse=function(e){var t=e;return $.each(this.parseUsers(e),function(e,n){t=t.replace(new RegExp("{~"+n.username+"}","g"),'**`@'+n.name+"`**")}),t},e.prototype.parseUsers=function(e){for(var t=[],n=/\{~([^\}]*)\}/g,i=n.exec(e);i;){var r=_.find([nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[]),{username:i[1]}),a=!_.some(t,{username:i[1]});r&&a&&t.push(r),i=n.exec(e)}return t},e.prototype.getUser=function(e){return _.find(tmsUsers,{username:e})},e.prototype.parseUsernames=function(e,t){var n=this.parseUsers(e),i=_.some(n,{username:"all"});return i?_.without(_.map(t,"username"),"all"):_.map(n,"username")},e.prototype.md2html=function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return emojify&&(e=emojify.replace(e)),t?'
'+marked(this.preParse(e))+"
":$('
').html(''+marked(this.preParse(e))).wrap("
").parent().html()},e.prototype.diffS=function(e,t,n){var i=["diffChars","diffWords","diffWordsWithSpace","diffLines"];i.includes(n)||(n="diffWords");for(var r='style="background-color: #e6cf56; text-decoration: line-through;"',a='style="background-color: #98e287; text-decoration: none;"',o=JsDiff[n](e,t),s=[],l=0;l"+o[l].value+"":o[l].added?""+o[l].value+"":""+o[l].value,s.push(d)}return"
"+s.join("")+"
"},e.prototype.catalog=function(e){var t=$(":header",e);if(t&&0==t.size())return!1;var n=null,i={pre:null,arr:[]},r=i;return t.each(function(e,t){var i=t.nodeName;if(n)if(n
');return this.prodDir(n,e,t),n},e.prototype.dir=function(e,t){var n=this.catalog(e);return n?this.generateDir(n,t):""},e.prototype.prodDir=function(e,t,n){var i=this;$.each(t.arr,function(t,r){if(r.hasOwnProperty("arr")){var a=$('
');e.append(a),i.prodDir(a,r,n)}else{var o=n?_.uniqueId(n):_.uniqueId("tms-wiki-dir-item-"),s=$('').text($(r).attr("id",o).text()).attr("data-id",o);e.append(s)}})},e.prototype.isElementInViewport=function(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},e.prototype.getCursortPosition=function(e){var t=0;if(document.selection){e.focus();var n=document.selection.createRange();n.moveStart("character",-e.value.length),t=n.text.length}else(e.selectionStart||"0"==e.selectionStart)&&(t=e.selectionStart);return t},e.prototype.setCaretPosition=function(e,t){if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if(e.createTextRange){var n=e.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}},e.prototype.isAbsUrl=function(e){return!!_.startsWith(e,"http://")||(!!_.startsWith(e,"https://")||!!_.startsWith(e,"//"))},e.prototype.escape=function(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},e.prototype.unescape=function(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})},e.prototype.openNewWin=function(e){e&&!function(){var t=$('').appendTo("body").end();$('').appendTo(t).end().click(),_.delay(function(){t.remove()},200)}()},e.prototype.isAdminUser=function(e){return!(!e||!e.authorities)&&_.some(e.authorities,function(e){return"ROLE_ADMIN"===e.id.authority})},e.prototype.isSuperUser=function(e){return!(!e||!e.authorities)&&_.some(e.authorities,function(e){return"ROLE_SUPER"===e.id.authority})},e.prototype.isSBCcase=function(e){return/[^\x00-\xff]/.test(e)},e.prototype.isHanzi=function(e){return/[\u4e00-\u9fa5]/gi.test(e)},e.prototype.getByteLen=function(e){for(var t=0,n=0;nt)return e.substr(0,i)+"...";return e},e.prototype.isMail=function(e){var t=/^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i;return t.test(e)},e.prototype.isIE=function e(){var t=!window.ActiveXObject&&"ActiveXObject"in window,e="ActiveXObject"in window;return t||e},e.prototype.isIE11=function(){return!window.ActiveXObject&&"ActiveXObject"in window},e.prototype.isIOS=function e(){var t=navigator.userAgent,e=t.match(this.regExpOS.ios),n=t.match(this.regExpOS.mobileChrome);return!(!e||n)},e.prototype.isCellphone=function(){return!!navigator.userAgent.match(this.regExpOS.cellphone)},e.prototype.isMobile=function(){return!!navigator.userAgent.match(this.regExpOS.mobile)},e.prototype.isChrome=function(){return/chrome\/([\d.]+)/.test(navigator.userAgent.toLowerCase())},e.prototype.isSafari=function(){return/version\/([\d.]+)/.test(navigator.userAgent.toLowerCase())},e.prototype.isFirefox=function(){return/firefox\/([\d.]+)/.test(navigator.userAgent.toLowerCase())},e.prototype.isOpera=function(){return/opera.([\d.]+)/.test(navigator.userAgent.toLowerCase())},e.prototype.diffHtml=function(e){var t=["html","head","meta","title","base","link","script","body","div","span"],n="";return e&&(n=e,_.each(t,function(e){n=n.replace(new RegExp("<("+e+")","gi"),"<$1")})),n},e.prototype.encodeHtml=function(e){var t="";return 0==e.length?"":(t=e.replace(/&/g,">"),t=t.replace(//g,">"),t=t.replace(/ /g," "),t=t.replace(/\'/g,"'"),t=t.replace(/\"/g,"""),t=t.replace(/\n/g,"
"))},e.prototype.decodeHtml=function(e){var t="";return 0==e.length?"":(t=e.replace(/>/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/ /g," "),t=t.replace(/'/g,"'"),t=t.replace(/"/g,'"'),t=t.replace(/
/g,"\n"))},e}();e.default=new a}),define("init/config",["exports","aurelia-templating-resources","aurelia-event-aggregator","aurelia-fetch-client","toastr","wurl","common/common-utils","marked","highlight","autosize","nprogress","push","color-hash","isomorphic-fetch","common/common-plugin","common/common-constant","common/common-ctx","common/common-imgs-loaded","modaal"],function(e,t,n,i,r,a,o,s,l,c,d,u,m){"use strict";function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Config=void 0;var h=p(r),b=p(a),f=p(o),v=p(s),y=p(l),E=p(c),w=p(d),x=p(u),C=p(m),S=e.Config=function(){function e(){g(this,e)}return e.prototype.initHttp=function(){return window.json=function(e){return console.log(JSON.stringify(e)),(0,i.json)(e)},window.http=this.aurelia.container.root.get(i.HttpClient),http.configure(function(e){e.withDefaults({credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json","X-Requested-With":"fetch"}}).withInterceptor({request:function(e){return w.default&&w.default.start(),e},requestError:function(e){console.log(e)},response:function(e){return w.default&&w.default.done(),e.ok||(e.json().then(function(e){h.default.error(e.message)}),401!=e.status)?e:(h.default.error("用户未登录!"),void f.default.redirect2Login())},responseError:function(e){h.default.error(e.message,"网络请求错误!"),console.log(e)}})}),this},e.prototype.initToastr=function(){return h.default.options.positionClass="toast-bottom-center",h.default.options.preventDuplicates=!0,this},e.prototype.initMarked=function(){var e=new v.default.Renderer;return e.listitem=function(e){return/^\s*\[[x ]\]\s*/.test(e)?(e=e.replace(/^\s*\[ \]\s*/,' ').replace(/^\s*\[x\]\s*/,' '),'
  • '+e+"
  • "):"
  • "+e+"
  • "},e.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return""}var r=void 0,a=/\/chat\/.+\?id=.+/g.test((0,b.default)("hash",e)),o=/\/blog\/.+\?cid=.+/g.test((0,b.default)("hash",e));return r=a||o||f.default.isAbsUrl(e)&&(0,b.default)("hostname",e)!=(0,b.default)("hostname")?'"},e.codespan=function(e){return''+e+""},e.code=function(e,t,n){var i=e;if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
    '+(n?e:f.default.escape(e,!0))+"\n
    \n":'
    '+(n?e:f.default.escape(e,!0))+"\n
    "},v.default.setOptions({renderer:e,breaks:!0,highlight:function(e){return y.default.highlightAuto(e).value}}),this},e.prototype.initAjax=function(){$.ajaxSetup({cache:!1});var e=["/chat/channel/latest","/chat/direct/latest","/chat/channel/poll","/chat/channel/reply/poll"];return $(document).ajaxSend(function(t,n,i){var r=_.every(e,function(e){return i.url.lastIndexOf(e)==-1});r&&w.default&&w.default.start()}),$(document).on("ajaxStop",function(){w.default&&w.default.done()}),$(document).ajaxError(function(e,t,n){t&&401==t.status&&f.default.redirect2Login()}),this},e.prototype.initGlobalVar=function(){return window.toastr=h.default,window.wurl=b.default,window.utils=f.default,window.marked=v.default,window.autosize=E.default,window.push=x.default,window.bs=this.aurelia.container.root.get(t.BindingSignaler),window.ea=this.aurelia.container.root.get(n.EventAggregator),window.colorHash=new C.default,this},e.prototype.initAnimateCss=function(){return $.fn.extend({animateCss:function(e){var t="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";this.addClass("animated "+e).one(t,function(){$(this).removeClass("animated "+e)})}}),this},e.prototype.initEmoji=function(){return emojify&&emojify.setConfig({img_dir:f.default.getResourceBase()+"/img/emoji"}),this},e.prototype.initModaal=function(){return _.extend($.fn.modaal.options,{close_text:"关闭",close_aria_label:"按[esc]关闭",confirm_button_text:"确认",confirm_cancel_button_text:"取消",confirm_title:"操作确认",accessible_title:"对话框窗口",confirm_content:"

    默认确认对话框内容.

    "}),this},e.prototype.context=function(e){return this.aurelia=e,this},e}();e.default=new S}),define("init/index",["exports","./config","jquery","jquery.scrollto","timeago","lodash","hotkeys"],function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){r.default.context(e).initGlobalVar().initHttp().initAjax().initToastr().initMarked().initAnimateCss().initEmoji().initModaal()}Object.defineProperty(e,"__esModule",{value:!0}),e.configure=i;var r=n(t)}),define("resources/index",["exports"],function(e){"use strict";function t(e){e.globalResources(["resources/value-converters/vc-common","resources/binding-behaviors/bb-key","resources/attributes/attr-task","resources/attributes/attr-swipebox","resources/attributes/attr-pastable","resources/attributes/attr-autosize","resources/attributes/attr-dropzone","resources/attributes/attr-attr","resources/attributes/attr-c2c","resources/attributes/attr-dimmer","resources/attributes/attr-ui-dropdown","resources/attributes/attr-ui-dropdown-action","resources/attributes/attr-ui-dropdown-hover","resources/attributes/attr-ui-tab","resources/attributes/attr-ui-popup","resources/attributes/attr-ui-checkbox","resources/attributes/attr-tablesort","resources/attributes/attr-textcomplete","resources/attributes/attr-scrollbar","resources/attributes/attr-modaal","resources/attributes/attr-fancybox","resources/elements/em-modal","resources/elements/em-dropdown","resources/elements/em-dropdown-links","resources/elements/em-checkbox","resources/elements/em-confirm-modal","resources/elements/em-hotkeys-modal","resources/elements/em-chat-input","resources/elements/em-chat-top-menu","resources/elements/em-chat-sidebar-left","resources/elements/em-chat-content-item","resources/elements/em-chat-sidebar-right","resources/elements/em-chat-channel-create","resources/elements/em-chat-channel-join","resources/elements/em-chat-channel-edit","resources/elements/em-chat-channel-members-mgr","resources/elements/em-chat-channel-members-show","resources/elements/em-chat-channel-link-mgr","resources/elements/em-chat-system-link-mgr","resources/elements/em-chat-msg-popup","resources/elements/em-chat-member-popup","resources/elements/em-chat-attach","resources/elements/em-chat-schedule","resources/elements/em-chat-msg","resources/elements/em-chat-schedule-edit","resources/elements/em-chat-schedule-remind","resources/elements/em-chat-share","resources/elements/em-chat-content-item-footbar","resources/elements/em-chat-topic","resources/elements/em-chat-topic-input","resources/elements/em-chat-settings","resources/elements/em-blog-write","resources/elements/em-blog-left-sidebar","resources/elements/em-blog-right-sidebar","resources/elements/em-blog-content","resources/elements/em-blog-top-menu","resources/elements/em-blog-share","resources/elements/em-blog-comment","resources/elements/em-blog-save","resources/elements/em-blog-space-create","resources/elements/em-blog-space-edit","resources/elements/em-blog-space-update","resources/elements/em-blog-history","resources/elements/em-blog-history-view","resources/elements/em-blog-history-diff","resources/elements/em-blog-comment-popup","resources/elements/em-blog-space-auth","resources/elements/em-user-avatar","resources/elements/em-user-edit","resources/elements/em-blog-comment-share"])}Object.defineProperty(e,"__esModule",{value:!0}),e.configure=t}),define("test/test-lifecycle",["exports","aurelia-framework","aurelia-event-aggregator"],function(e,t,n){"use strict";function i(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.TestLifeCycle=void 0;var o,s,l,c;e.TestLifeCycle=(c=l=function(){function e(t){r(this,e),i(this,"prop",s,this),this.eventAggregator=t,console.log("constructor")}return e.prototype.created=function(e){console.log("created"); -},e.prototype.bind=function(e){console.log("bind")},e.prototype.unbind=function(){console.log("unbind")},e.prototype.attached=function(){console.log("attached")},e.prototype.detached=function(){console.log("detached")},e.prototype.canActivate=function(e,t,n){console.log("canActivate")},e.prototype.activate=function(e,t,n){console.log("activate")},e.prototype.canDeactivate=function(){console.log("canDeactivate")},e.prototype.deactivate=function(){console.log("deactivate")},e}(),l.inject=[n.EventAggregator],o=c,s=a(o.prototype,"prop",[t.bindable],{enumerable:!0,initializer:function(){return null}}),o)}),define("user/user-login",["exports"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});e.UserLogin=function(){function e(){t(this,e),this.username="",this.password=""}return e.prototype.attached=function(){$(this.rememberMeRef).checkbox()},e.prototype.kdHandler=function(e){return 13===e.keyCode&&this.loginHandler(),!0},e.prototype.loginHandler=function(){var e=this,t=$(this.rememberMeRef).checkbox("is checked")?"on":"";return $.post("/admin/signin",{username:this.username,password:this.password,"remember-me":t}).done(function(){localStorage&&localStorage.setItem(nsCons.KEY_LOGIN_USERNAME,e.username);var t=utils.urlQuery("redirect");if(t)window.location=decodeURIComponent(t);else{var n=null;localStorage&&(n=localStorage.getItem(nsCons.KEY_REMEMBER_LAST_CHAT_TO)),n?window.location=wurl("path")+("#/chat/"+n):window.location=wurl("path")+("#/chat/@"+e.username)}}).fail(function(e,t,n){401==e.status?toastr.error("用户名密码不正确!"):0!=e.status&&toastr.error("网络连接错误!")}),!0},e}()}),define("user/user-pwd-reset",["exports"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});e.UserPwdReset=function(){function e(){t(this,e),this.mail="",this.pwd="",this.isReq=!1,this.token=utils.urlQuery("id")}return e.prototype.resetPwdHandler=function(){var e=this;return $(this.fm).form("is valid")?(this.isReq=!0,void http.fetch("/free/user/pwd/reset",{method:"post",body:json({mail:this.mail,baseUrl:utils.getBaseUrl(),path:wurl("path")})}).then(function(t){t.ok&&t.json().then(function(t){t.success?(toastr.success("重置密码邮件链接发送成功!"),_.delay(function(){window.location="/admin/login"},2e3)):(toastr.error(t.data,"重置密码邮件链接发送失败!"),e.isReq=!1)})})):void toastr.error("邮件地址输入不合法!")},e.prototype.newPwdHandler=function(){var e=this;return $(this.fm2).form("is valid")?(this.isReq=!0,void http.fetch("/free/user/pwd/new",{method:"post",body:json({token:this.token,pwd:this.pwd})}).then(function(t){t.ok&&t.json().then(function(t){t.success?(toastr.success("重置密码成功!"),_.delay(function(){window.location="/admin/login"},2e3)):(toastr.error(t.data,"重置密码失败!"),e.isReq=!1)})})):void toastr.error("新密码输入不合法!")},e.prototype.attached=function(){$(this.fm).form({on:"blur",inline:!0,fields:{mail:["empty","email"]}}),$(this.fm2).form({on:"blur",inline:!0,fields:{mail:["empty","minLength[8]"]}})},e}()}),define("user/user-register",["exports"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});e.ViewModel=function(){function e(){t(this,e),this.header="账户激活页面"}return e.prototype.activate=function(e,t,n){var i=this;e.id&&(this.token=e.id,this.isReq=!0,this.header="账户激活中,请稍后...!",http.fetch("/free/user/register/activate",{method:"post",body:json({token:this.token})}).then(function(e){e.ok&&(e.json().then(function(e){e.success?i.header="账户激活成功,请返回登录页面登录!":(i.header="账户激活失败!",toastr.error(e.data,"账户激活失败!"))}),i.isReq=!1)}))},e.prototype.attached=function(){$(this.fm).form({on:"blur",inline:!0,fields:{username:{identifier:"username",rules:[{type:"empty"},{type:"minLength[3]"},{type:"regExp",value:/^[a-z]+[a-z0-9\.\-_]*[a-z0-9]+$/,prompt:"小写字母数字.-_组合,字母开头,字母数字结尾"}]},pwd:{identifier:"pwd",rules:[{type:"empty"},{type:"minLength[8]"}]},name:{identifier:"name",rules:[{type:"empty"},{type:"maxLength[20]"}]},mail:{identifier:"mail",rules:[{type:"empty"},{type:"email"}]}}})},e.prototype.okHandler=function(){var e=this;return $(this.fm).form("is valid")?(this.isReq=!0,void http.fetch("/free/user/register",{method:"post",body:json({username:this.username,pwd:this.pwd,name:this.name,mail:this.mail,baseUrl:utils.getBaseUrl(),path:wurl("path")})}).then(function(t){t.ok&&t.json().then(function(t){t.success?(toastr.success("注册成功,请通过接收到的激活邮件激活账户!"),_.delay(function(){window.location="/admin/login"},2e3)):(toastr.error(t.data,"注册失败!"),e.isReq=!1)})})):void toastr.error("账户注册信息输入不合法!")},e}()}),define("resources/attributes/attr-attr",["exports","aurelia-framework","aurelia-dependency-injection"],function(e,t,n){"use strict";function i(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrAttr=void 0;var o,s,l,c,d,u;e.AttrAttr=(o=(0,t.customAttribute)("attr"),s=(0,n.inject)(Element),o(l=s((c=function(){function e(t){r(this,e),i(this,"name",d,this),i(this,"value",u,this),this.element=t}return e.prototype.nameChanged=function(e){},e.prototype.valueChanged=function(e){this.value=e,e?$(this.element).attr(this.name,e):$(this.element).removeAttr(this.name)},e.prototype.bind=function(e){this.valueChanged(this.value)},e.prototype.unbind=function(){},e}(),d=a(c.prototype,"name",[t.bindable],{enumerable:!0,initializer:null}),u=a(c.prototype,"value",[t.bindable],{enumerable:!0,initializer:null}),l=c))||l)||l)}),define("resources/attributes/attr-autosize",["exports","aurelia-framework","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrAutosize=void 0;var r,a,o;e.AttrAutosize=(r=(0,n.customAttribute)("autosize"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){autosize(this.element)},e.prototype.bind=function(e){this.valueChanged(this.value)},e.prototype.unbind=function(){autosize.destroy(this.elements)},e}())||o)||o)}),define("resources/attributes/attr-c2c",["exports","aurelia-framework","clipboard"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrC2cCustomAttribute=void 0;var a,o,s,l=i(n);e.AttrC2cCustomAttribute=(a=(0,t.customAttribute)("c2c"),o=(0,t.inject)(Element),a(s=o(s=function(){function e(t){r(this,e),this.element=t,this._init()}return e.prototype._init=function(){var e=this;$(this.element).append(''),this.clipboard=new l.default($(this.element).find("i.copy.icon")[0],{text:function(t){return e.value?e.value:$(e.element).text()}});var t=$(this.element).find("[data-tooltip]").hover(function(){},function(){$(this).attr("data-tooltip","复制到剪贴板!")});this.clipboard.on("success",function(e){t.attr("data-tooltip","复制成功!")}).on("error",function(e){t.attr("data-tooltip","复制失败!")}),$(this.element).hover(function(){(e.value||$(e.element).text())&&t.show()},function(){t.hide()})},e.prototype.unbind=function(){this.clipboard&&this.clipboard.destroy()},e}())||s)||s)}),define("resources/attributes/attr-dimmer",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrDimmer=void 0;var r,a,o;e.AttrDimmer=(r=(0,n.customAttribute)("dimmer"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t,this.$dimmer=$('
    ')}return e.prototype.valueChanged=function(e){this.value?$(this.element).prepend(this.$dimmer):this.$dimmer.remove()},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||o)||o)}),define("resources/attributes/attr-dropzone",["exports","aurelia-framework","aurelia-templating","aurelia-event-aggregator"],function(e,t,n,i){"use strict";function r(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrDropzone=void 0;var s,l,c,d,u,m,p;e.AttrDropzone=(s=(0,n.customAttribute)("dropzone"),l=(0,t.inject)(Element,i.EventAggregator),s(c=l((d=function(){function e(t,n){var i=this;a(this,e),r(this,"clickable",u,this),r(this,"target",m,this),r(this,"type",p,this),this.element=t,this.eventAggregator=n,this.subscribe=this.eventAggregator.subscribe(nsCons.EVENT_CHAT_MSG_EDIT_UPLOAD,function(e){e.target===i.target&&$(i.element).click()})}return e.prototype.valueChanged=function(e,t){var n=this.target?this.target:this.element,i=this.type?this.type:nsCtx.isAt?"User":"Channel";$(this.element).parent().addClass("tms-dropzone-preview-hidden"),$(this.element).children().andSelf().dropzone({url:"/admin/file/upload",paramName:"file",clickable:!!this.clickable,dictDefaultMessage:"",maxFilesize:10,addRemoveLinks:!0,dictCancelUpload:"取消上传",dictCancelUploadConfirmation:"确定要取消上传吗?",dictFileTooBig:"文件过大({{filesize}}M),最大限制:{{maxFilesize}}M",init:function(){this.on("sending",function(e,t,n){n.append("toType",i),"Blog"!==i&&n.append("toId",nsCtx.chatTo)}),this.on("success",function(e,t){t.success?($.each(t.data,function(e,t){"Image"==t.type?$(n).insertAtCaret("![{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.path).replace(/\{uuidName\}/g,t.uuidName)):$(n).insertAtCaret("[{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,"admin/file/download/").replace(/\{uuidName\}/g,t.id))}),toastr.success("上传成功!")):toastr.error(t.data,"上传失败!")}),this.on("error",function(e,t,n){toastr.error(t,"上传失败!")}),this.on("complete",function(e){this.removeFile(e)})}})},e.prototype.bind=function(e){this.valueChanged(this.value)},e}(),u=o(d.prototype,"clickable",[t.bindable],{enumerable:!0,initializer:null}),m=o(d.prototype,"target",[t.bindable],{enumerable:!0,initializer:null}),p=o(d.prototype,"type",[t.bindable],{enumerable:!0,initializer:null}),c=d))||c)||c)}),define("resources/attributes/attr-fancybox",["exports","aurelia-framework","aurelia-templating","fancybox"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrFancyboxCustomAttribute=void 0;var r,a,o;e.AttrFancyboxCustomAttribute=(r=(0,n.customAttribute)("fancybox"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;$(this.element).on("click","img",function(e){e.preventDefault();var t=($(e.target),[]),i=0;$(n.element).find("img").each(function(n,r){t.push({src:$(r).attr("src"),opts:{caption:$(r).attr("alt")}}),e.target==r&&(i=n)}),$.fancybox.open(t,{i18n:{zh:{CLOSE:"关闭",NEXT:"下一张",PREV:"上一张",ERROR:"请求内容不能加载.
    请稍后重试.",PLAY_START:"开始幻灯片",PLAY_STOP:"暂停幻灯片",FULL_SCREEN:"全屏",THUMBS:"缩略图"}},lang:"zh",loop:!0,animationEffect:"zoom-in-out",transitionEffect:"slide",arrows:!0,infobar:!0},i)})},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||o)||o)}),define("resources/attributes/attr-modaal",["exports","aurelia-framework","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrModaalCustomAttribute=void 0;var r,a,o;e.AttrModaalCustomAttribute=(r=(0,n.customAttribute)("modaal"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;_.defer(function(){$(n.element).modaal({fullscreen:!0,overlay_close:!1,animation:"none",before_open:function(){ea.publish(nsCons.EVENT_MODAAL_BEFORE_OPEN,{id:e})},after_open:function(){ea.publish(nsCons.EVENT_MODAAL_AFTER_OPEN,{id:e})},before_close:function(){ea.publish(nsCons.EVENT_MODAAL_BEFORE_CLOSE,{id:e})},after_close:function(){ea.publish(nsCons.EVENT_MODAAL_AFTER_CLOSE,{id:e})}})})},e}())||o)||o)}),define("resources/attributes/attr-pastable",["exports","aurelia-framework","aurelia-templating","common/common-plugin","common/common-paste"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrPastable=void 0;var r,a,o;e.AttrPastable=(r=(0,n.customAttribute)("pastable"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;$(this.element).pastableTextarea().on("pasteImage",function(e,t){$.post("/admin/file/base64",{dataURL:t.dataURL,type:t.blob.type,toType:nsCtx.isAt?"User":"Channel",toId:nsCtx.chatTo},function(e,t,i){e.success&&$(n.element).insertAtCaret("![{name}]({baseURL}{path}{uuidName})".replace(/\{name\}/g,e.data.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,e.data.path).replace(/\{uuidName\}/g,e.data.uuidName))})}).on("pasteImageError",function(e,t){toastr.error(t.message,"剪贴板粘贴图片错误!")})},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||o)||o)}),define("resources/attributes/attr-scrollbar",["exports","aurelia-framework","aurelia-templating","common/common-scrollbar"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrScrollbarCustomAttribute=void 0;var r,a,o;e.AttrScrollbarCustomAttribute=(r=(0,n.customAttribute)("scrollbar"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;this.cls=e?e:$(window).width()<768?"scrollbar-macosx":"scrollbar-outer",jQuery(this.element).addClass(this.cls).scrollbar({onScroll:function(e,t){e.scroll==e.maxScroll&&ea.publish(nsCons.EVENT_SCROLLBAR_SCROLL_TO_BOTTOM,{element:n.element,x:t,y:e})}})},e.prototype.unbind=function(){try{jQuery(this.element).removeClass(this.cls).scrollbar("destroy")}catch(e){}},e}())||o)||o)}),define("resources/attributes/attr-swipebox",["exports","aurelia-framework","aurelia-templating","swipebox"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrSwipebox=void 0;var r,a,o;e.AttrSwipebox=(r=(0,n.customAttribute)("swipebox"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;$(this.element).on("click","img",function(t){t.preventDefault();var i=($(t.target),[]),r=0;$(n.element).find("img").each(function(e,n){i.push({href:$(n).attr("src"),title:$(n).attr("alt")}),t.target==n&&(r=e)}),$.swipebox(i,{useCSS:!0,useSVG:!0,initialIndexOnArray:r,hideCloseButtonOnMobile:!1,removeBarsOnMobile:!0,hideBarsDelay:3e3,videoMaxWidth:1140,beforeOpen:function(){},afterOpen:null,afterClose:function(){},loopAtEnd:!!e})})},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||o)||o)}),define("resources/attributes/attr-tablesort",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrTablesortCustomAttribute=void 0;var i,r,a;e.AttrTablesortCustomAttribute=(i=(0,t.customAttribute)("tablesort"),r=(0,t.inject)(Element),i(a=r(a=function(){function e(t){n(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){},e.prototype._init=function(){$(this.element).is("table")?$(this.element).addClass("sortable").tablesort():console.warn("tablesort element is not table tag!")},e.prototype.bind=function(){this._init()},e}())||a)||a)}),define("resources/attributes/attr-task",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrTask=void 0;var r,a,o;e.AttrTask=(r=(0,n.customAttribute)("task"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.task=null,this.bindingCtx=null,this.element=t}return e.prototype.valueChanged=function(e){this.task=e,_.isFunction(this.task)&&_.bind(this.task,this.bindingCtx,this.element)()},e.prototype.bind=function(e){this.bindingCtx=e,this.valueChanged(this.value)},e.prototype.unbind=function(){this.element=null,this.task=null,this.bindingCtx=null},e}())||o)||o)}),define("resources/attributes/attr-textcomplete",["exports","aurelia-framework","aurelia-templating","common/common-tips","common/common-emoji"],function(e,t,n,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrTextcompleteCustomAttribute=void 0;var s,l,c,d=a(i),u=a(r);e.AttrTextcompleteCustomAttribute=(s=(0,n.customAttribute)("textcomplete"),l=(0,t.inject)(Element),s(c=l(c=function(){function e(t){o(this,e),this.element=t,this.initHotkeys()}return e.prototype.tipsActionHandler=function(e){if("/upload"==e)$(this.element).next(".tms-edit-actions").find("button > .upload.icon").click();else if("/shortcuts"==e)ea.publish(nsCons.EVENT_SHOW_HOTKEYS_MODAL,{});else{if("search"!=e)return!0;_.delay(function(){utils.openNewWin(nsCons.STR_EMOJI_SEARCH_URL)},200)}return!1},e.prototype.valueChanged=function(){var e=this;this.value?(this.members=this.value,$(this.element).textcomplete([{match:/(|\b)(\/.*)$/,search:function(e,t){var n=_.keys(d.default);t($.map(n,function(t){return 0===t.indexOf(e)?t:null}))},template:function(e,t){return d.default[e].label},replace:function(t){return e.tipsActionHandler(t)?(_.defer(function(){autosize.update(e.element)}),e.setCaretPosition(d.default[t].ch2?d.default[t].ch2:d.default[t].ch),"$1"+d.default[t].value):""}},{match:/(^|\s)@(\w*)$/,search:function(t,n){n($.map(e.members,function(e){return e.enabled&&e.username.indexOf(t)>=0?e.username:null}))},template:function(t,n){var i=_.find(e.members,{username:t});return i.name+" - "+i.mails+" ("+i.username+")"},replace:function(e){return"$1{~"+e+"}"}},{match:/(^|\s):([\+\-\w]*)$/,search:function(e,t){t($.map(u.default,function(t){return _.some(t.split("_"),function(t){return 0===t.indexOf(e)})?t:null}))},template:function(e,t){if("search"==e)return"表情查找 - :search";var n=":"+e+":";return emojify.replace(n)+" - "+n},replace:function(t){return e.tipsActionHandler(t)?"$1:"+t+": ":""}}],{appendTo:$(this.element).prev(".textcomplete-container").find(".append-to"),maxCount:nsCons.NUM_TEXT_COMPLETE_MAX_COUNT})):this.unbind()},e.prototype.setCaretPosition=function(e){var t=this;e&&_.delay(function(){var n=utils.getCursortPosition(t.element);utils.setCaretPosition(t.element,n-e)},100)},e.prototype.initHotkeys=function(){var e=this;_.each(_.filter(_.values(d.default),"key"),function(t){$(e.element).bind("keydown",t.key,function(n){n.preventDefault(),$(e.element).insertAtCaret(t.value);var i=utils.getCursortPosition(e.element),r=t.ch2?t.ch2:t.ch;r&&utils.setCaretPosition(e.element,i-r),_.defer(function(){autosize.update(e.element)})})})},e.prototype.unbind=function(){try{$(this.element).textcomplete("destroy")}catch(e){}},e}())||c)||c)}),define("resources/attributes/attr-ui-checkbox",["exports","aurelia-framework","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiCheckboxCustomAttribute=void 0;var r,a,o;e.AttrUiCheckboxCustomAttribute=(r=(0,n.customAttribute)("ui-checkbox"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){$(this.element).checkbox()},e}())||o)||o)}),define("resources/attributes/attr-ui-dropdown-action",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiDropdownActionCustomAttribute=void 0;var i,r,a;e.AttrUiDropdownActionCustomAttribute=(i=(0,t.customAttribute)("ui-dropdown-action"),r=(0,t.inject)(Element),i(a=r(a=function(){function e(t){n(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){},e.prototype._init=function(e){var t=this;_.defer(function(){$(t.element).dropdown({action:"hide",context:e})})},e.prototype.bind=function(){this._init(this.value?this.value:window)},e}())||a)||a)}),define("resources/attributes/attr-ui-dropdown-hover",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiDropdownHoverCustomAttribute=void 0;var i,r,a;e.AttrUiDropdownHoverCustomAttribute=(i=(0,t.customAttribute)("ui-dropdown-hover"),r=(0,t.inject)(Element),i(a=r(a=function(){function e(t){n(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){},e.prototype._init=function(e){var t=this;_.defer(function(){$(t.element).dropdown({on:"hover",action:e})})},e.prototype.bind=function(){this._init(this.value?this.value:"hide")},e}())||a)||a)}),define("resources/attributes/attr-ui-dropdown",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiDropdownCustomAttribute=void 0;var i,r,a;e.AttrUiDropdownCustomAttribute=(i=(0,t.customAttribute)("ui-dropdown"),r=(0,t.inject)(Element),i(a=r(a=function(){function e(t){n(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){},e.prototype._init=function(e){var t=this;_.defer(function(){$(t.element).dropdown({action:e})})},e.prototype.bind=function(){this._init(this.value?this.value:"hide")},e}())||a)||a)}),define("resources/attributes/attr-ui-popup",["exports","aurelia-framework","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiPopupCustomAttribute=void 0;var r,a,o;e.AttrUiPopupCustomAttribute=(r=(0,n.customAttribute)("ui-popup"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;_.defer(function(){$(n.element).popup({on:"click",inline:!0,silent:!0,position:e?e:"bottom right",jitter:300,delay:{show:300,hide:300},onShow:function(){},onVisible:function(){}})})},e}())||o)||o)}),define("resources/attributes/attr-ui-tab",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiTabCustomAttribute=void 0;var i,r,a;e.AttrUiTabCustomAttribute=(i=(0,t.customAttribute)("ui-tab"),r=(0,t.inject)(Element),i(a=r(a=function(){function e(t){n(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){},e.prototype._init=function(){var e=this;_.defer(function(){$(e.element).find(".item").tab()})},e.prototype.bind=function(){this._init()},e}())||a)||a)}),define("resources/binding-behaviors/bb-key",["exports"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e){return e&&e.ctrlKey==this.keyState.ctrl&&e.altKey==this.keyState.alt&&e.shiftKey==this.keyState.shift&&e.keyCode==this.keyState.keyCode&&this.originalMethod(e),!0}Object.defineProperty(e,"__esModule",{value:!0});var i={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,backspace:8,delete:46};e.KeyBindingBehavior=function(){function e(){t(this,e)}return e.prototype.bind=function(e,t){var r=arguments.length<=2||void 0===arguments[2]?13:arguments[2],a=arguments[3],o="updateTarget";e.callSource?o="callSource":e.updateSource&&e.mode===bindingMode.twoWay&&(o="updateSource"),e.originalMethod=e[o],e.originalMethod.originalName=o,e[o]=n;var s=_.isInteger(r)?r:1===r.length?r.charCodeAt(0):i[r];_.isUndefined(s)&&console.warn("Unmapping keyCode for KeyBindingBehavior!"),e.keyState={ctrl:_.includes(a,"ctrl"),alt:_.includes(a,"alt"),shift:_.includes(a,"shift"),keyCode:s}},e.prototype.unbind=function(e,t){e[e.originalMethod.originalName]=e.originalMethod,e.originalMethod=null},e}()}),define("resources/value-converters/vc-common",["exports","color-hash","common/common-tags","jquery-format","timeago"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.DiffHtmlValueConverter=e.Nl2brValueConverter=e.LabelCssValueConverter=e.LabelColorValueConverter=e.ChatLabelFilterValueConverter=e.ChatLabelTipValueConverter=e.ChatLabelExistValueConverter=e.EmojiReplValueConverter=e.EmojiValueConverter=e.UserNameValueConverter=e.SortChannelsValueConverter=e.SortUsernamesValueConverter=e.SortUsersValueConverter=e.SortValueConverter=e.ParseMdValueConverter=e.TimeagoValueConverter=e.NumberValueConverter=e.DateValueConverter=e.LowerValueConverter=e.UpperValueConverter=void 0;var a=(i(t),i(n)),o=timeago();e.UpperValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return e&&e.toUpperCase()},e}(),e.LowerValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return e&&e.toLowerCase()},e}(),e.DateValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=arguments.length<=1||void 0===arguments[1]?"yyyy-MM-dd hh:mm:ss":arguments[1];return _.isInteger(_.toNumber(e))?$.format.date(new Date(e),t):e?e:""},e}(),e.NumberValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=arguments.length<=1||void 0===arguments[1]?"#,##0.00":arguments[1];return _.isNumber(_.toNumber(e))?$.format.number(e,t):e?e:""},e}(),e.TimeagoValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return e?o.format(e,"zh_CN"):""},e}(),e.ParseMdValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return e?marked(utils.preParse(e)):""},e}(),e.SortValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t){return _.isArray(e)?_.sortBy(e,t):e},e}(),e.SortUsersValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t){if(_.isArray(e)&&t){var n=_.find(e,{username:t});if(n)return[n].concat(_.reject(e,{username:t}))}return e},e}(),e.SortUsernamesValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t){return _.isArray(e)&&t&&_.includes(e,t)?[t].concat(_.without(e,t)):e},e}(),e.SortChannelsValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){if(_.isArray(e)){var t=_.find(e,{name:"all"});if(t)return[t].concat(_.reject(e,{name:"all"}))}return e},e}(),e.UserNameValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=_.find(window.tmsUsers,{username:e});return t?t.name:e},e}(),e.EmojiValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t){return emojify&&_.defer(function(){emojify.run(t)}),e},e}(),e.EmojiReplValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return emojify.replace(e)},e}(),e.ChatLabelExistValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t){return e&&0!=e.length&&_.some(e,function(e){return(!t||e.type==t)&&0!=e.voters.length})?"":"none"},e}(),e.ChatLabelTipValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=_.map(e.voters,function(e){return e.name?e.name:e.username});return""+_.join(t,",")+t.length+"人"+("Emoji"==e.type?"表示了":"标记了")+" ["+("Emoji"==e.type?e.description:e.name)+"]"},e}(),e.ChatLabelFilterValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=arguments.length<=1||void 0===arguments[1]?"Emoji":arguments[1];return _.filter(e,{type:t})},e}(),e.LabelColorValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=_.find(a.default,{value:e.name});return t?t.color:""},e}(),e.LabelCssValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=colorHash.rgb(e.name),n="rgba("+t[0]+", "+t[1]+", "+t[2]+", 0.6)",i="rgba("+(255-t[0])+", "+(255-t[1])+", "+(255-t[2])+", 1)",r=_.find(a.default,{value:e.name});return r?"":{"background-color":n,color:i}},e}(),e.Nl2brValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return e?_.replace(e,/\n/g,"
    "):e},e}(),e.DiffHtmlValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t,n){return e?utils.diffHtml(e):e},e}()}),define("resources/elements/em-blog-comment-popup",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogCommentPopup=void 0;var i;e.EmBlogCommentPopup=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_COMMENT_POPUP_SHOW,function(e){t.id=e.id,t.target=e.target,$(t.target).popup({popup:t.popup,hoverable:!0,inline:!1,movePopup:!1,silent:!0,position:"bottom left",jitter:300,prefer:"opposite",delay:{show:300,hide:300},onShow:function(){$.get("/admin/blog/comment/get",{cid:t.id},function(e){e.success?t.comment=e.data:toastr.error(e.data,"加载失败!")})}}).popup("show")})}return e.prototype.unbind=function(){this.subscribe.dispose()},e}())||i}),define("resources/elements/em-blog-comment-share",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable, -writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogCommentShare=void 0;var a,o,s,l,c;e.EmBlogCommentShare=(0,t.containerless)((o=function(){function e(){i(this,e),this.shares=[],this.desc="",n(this,"blog",s,this),n(this,"comment",l,this),n(this,"loginUser",c,this),this.basePath=utils.getBasePath()}return e.prototype.attached=function(){var e=this;$(this.searchRef).search({minCharacters:2,cache:!1,selectFirstResult:!0,showNoResults:!1,onSelect:function(t,n){t.item._id=_.uniqueId("share-item-"),t.item._type=t.item.username?"user":"channel",e.shares.push(t.item),_.defer(function(){$(e.inputSearchRef).val("")})},apiSettings:{onResponse:function(t){var n={results:[]};return $.each(t.data.users,function(t,i){_.find(_.filter(e.shares,function(e){return"user"==e._type}),{username:i.username})||n.results.push({item:i,title:' '+i.name+" ("+i.username+")"})}),$.each(t.data.channels,function(t,i){_.find(_.filter(e.shares,function(e){return"channel"==e._type}),{name:i.name})||n.results.push({item:i,title:' '+i.title+" ("+i.name+")"})}),n},url:"/admin/blog/share/to/search?search={query}"}}),$(this.shareRef).popup({on:"click",inline:!0,silent:!0,position:"bottom right",jitter:300,delay:{show:300,hide:300},onVisible:function(){$(e.inputSearchRef).focus()}})},e.prototype.shareSearchKeyupHandler=function(e){if(13===e.keyCode&&!$(this.searchRef).search("is visible")){var t=$(this.inputSearchRef).val();utils.isMail(t)&&(_.find(_.filter(this.shares,function(e){return"mail"==e._type}),{mail:t})||(this.shares.push({_id:_.uniqueId("share-item-"),_type:"mail",mail:t}),$(this.inputSearchRef).val("")))}},e.prototype.show=function(){$(this.shareRef).popup("show")},e.prototype.removeShareHandler=function(e){this.shares=_.reject(this.shares,{_id:e._id})},e.prototype.cancelHandler=function(){this._reset()},e.prototype._reset=function(){this.shares=[],this.desc="",$(this.inputSearchRef).val(""),$(this.shareRef).popup("hide")},e.prototype.shareHandler=function(){var e=this;return 0===this.shares.length?void toastr.error("请先指定博文评论分享用户或者频道或者邮箱!"):void(this.ajaxS=$.post("/admin/blog/comment/share",{basePath:utils.getBasePath(),href:this.basePath+"#/blog/"+this.blog.id+"?cid="+this.comment.id,id:this.comment.id,desc:this.desc,html:utils.md2html(this.comment.content,!0),users:_.chain(this.shares).filter(function(e){return"user"==e._type}).map("username").join().value(),channels:_.chain(this.shares).filter(function(e){return"channel"==e._type}).map("name").join().value(),mails:_.chain(this.shares).filter(function(e){return"mail"==e._type}).map("mail").join().value()},function(t,n,i){t.success?(e._reset(),toastr.success("博文评论分享成功!")):toastr.error(t.data,"博文评论分享失败!")}))},e}(),s=r(o.prototype,"blog",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"comment",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-blog-comment",["exports","aurelia-framework","simplemde","dropzone","common/common-emoji"],function(e,t,n,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogComment=void 0;var c,d,u,m=a(n),p=(a(i),a(r));e.EmBlogComment=(0,t.containerless)((d=function(){function e(){var t=this;s(this,e),this.comments=[],this.baseUrl=utils.getUrl(),this.basePath=utils.getBasePath(),this.offset=0,this.isSuper=nsCtx.isSuper,this.loginUser=nsCtx.loginUser,this.users=nsCtx.users,o(this,"blog",u,this),this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_COMMENT_MSG_INSERT,function(e){t.insertContent(""+e.content),t._scrollTo("b")})}return e.prototype.blogChanged=function(e,t){this._refresh()},e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype._refresh=function(){var e=this;this.blog&&$.get("/admin/blog/comment/query",{id:this.blog.id,page:0,size:1e3},function(t){t.success?!function(){e.comments=t.data.content;var n=utils.urlQuery("cid");n&&_.defer(function(){e.scrollToAfterImgLoaded(n)}),ea.publish(nsCons.EVENT_BLOG_COMMENT_CHANGED,{action:"query",comments:e.comments})}():toastr.error(t.data)})},e.prototype.attached=function(){var e=this;this._init(),$(".em-blog-comment .comments").on("mouseenter",'.markdown-body a[href*="#/blog/"]:not(.pp-not)',function(e){e.preventDefault();var t=$(e.currentTarget),n=utils.urlQuery("cid",t.attr("href"));n&&ea.publish(nsCons.EVENT_BLOG_COMMENT_POPUP_SHOW,{id:n,target:e.currentTarget})}),$(".em-blog-comment .comments").on("dblclick",".comment",function(t){if(t.ctrlKey){var n=$(t.currentTarget).attr("data-id"),i=$(t.currentTarget).find(".content > textarea"),r=_.find(e.comments,{id:+n});(e.isSuper||r.creator.username==e.loginUser.username)&&e.editHandler(r,i)}}),$(".em-blog-comment .comments").on("click",".comment",function(t){e.focusedComment=$(t.currentTarget)}),this.initHotkeys()},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","r",function(t){t.preventDefault(),$(".em-blog-content").scrollTo("max",120,{offset:0}),e.simplemde.codemirror.focus()}).bind("keydown","alt+up",function(t){t.preventDefault(),$(".em-blog-content").scrollTo(e.getScrollTargetComment(!0),120,{offset:0})}).bind("keydown","alt+down",function(t){t.preventDefault(),$(".em-blog-content").scrollTo(e.getScrollTargetComment(),120,{offset:0})})},e.prototype.getScrollTargetComment=function(e){if(e)if(this.focusedComment&&1===this.focusedComment.size()){var t=this.focusedComment.find("> a.em-user-avatar");if(utils.isElementInViewport(t)){var n=this.focusedComment.prev(".comment");1===n.size()&&(this.focusedComment=n)}}else this.focusedComment=$(this.blogCommentsRef).children(".comment:first");else if(this.focusedComment&&1===this.focusedComment.size()){var i=this.focusedComment.next(".comment");1===i.size()&&(this.focusedComment=i)}else this.focusedComment=$(this.blogCommentsRef).children(".comment:last");return this.focusedComment},e.prototype._init=function(){var e=this;this.simplemde=new m.default({element:this.commentRef,spellChecker:!1,status:!1,toolbar:[{name:"bold",action:m.default.toggleBold,className:"fa fa-bold",title:"粗体"},{name:"italic",action:m.default.toggleItalic,className:"fa fa-italic",title:"斜体"},{name:"strikethrough",action:m.default.toggleStrikethrough,className:"fa fa-strikethrough",title:"删除线"},{name:"heading",action:m.default.toggleHeadingSmaller,className:"fa fa-header",title:"标题"},{name:"heading-smaller",action:m.default.toggleHeadingSmaller,className:"fa fa-header fa-header-x fa-header-smaller",title:"变小标题"},{name:"heading-bigger",action:m.default.toggleHeadingBigger,className:"fa fa-header fa-header-x fa-header-bigger",title:"变大标题"},"|",{name:"code",action:m.default.toggleCodeBlock,className:"fa fa-code",title:"代码"},{name:"quote",action:m.default.toggleBlockquote,className:"fa fa-quote-left",title:"引用"},{name:"unordered-list",action:m.default.toggleUnorderedList,className:"fa fa-list-ul",title:"无序列表"},{name:"ordered-list",action:m.default.toggleOrderedList,className:"fa fa-list-ol",title:"有序列表"},{name:"tasks",action:function(t){e.insertContent("- [ ] 未完成任务\n- [x] 已完成任务")},className:"fa fa-check-square-o ",title:"任务列表"},{name:"details",action:function(t){e.insertContent("
    \n标题\n

    详情内容

    \n
    ")},className:"fa fa-play ",title:"折叠详情"},"|",{name:"link",action:m.default.drawLink,className:"fa fa-link",title:"创建链接"},{name:"image",action:m.default.drawImage,className:"fa fa-picture-o",title:"插入图片"},{name:"table",action:m.default.drawTable,className:"fa fa-table",title:"插入表格"},{name:"horizontal-rule",action:m.default.drawHorizontalRule,className:"fa fa-minus",title:"插入水平分割线"},"|",{name:"upload",action:function(e){},className:"fa fa-upload",title:"上传文件"},"|",{name:"preview",action:m.default.togglePreview,className:"fa fa-eye no-disable",title:"切换预览"},{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown指南"}],insertTexts:{table:["","\n\n| 列1 | 列2 | 列3 |\n| ------ | ------ | ------ |\n| 文本 | 文本 | 文本 |\n\n"]},previewRender:function(e,t){return emojify&&(e=emojify.replace(e)),marked(utils.preParse(e))}}),this.simplemde.codemirror.on("keyup",function(t,n){n.ctrlKey&&13==n.keyCode?e.addHandler():27==n.keyCode&&e.simplemde.value("")}),this.$chatMsgInputRef=$(this.markdownRef).find(".CodeMirror textarea"),0===this.$chatMsgInputRef.size()&&(this.$chatMsgInputRef=$(this.markdownRef).find('.CodeMirror [contenteditable="true"]')),this.initPaste(),this.initTextcomplete(),this.initUploadDropzone($(".CodeMirror-wrap",this.markdownRef),function(){return e.$chatMsgInputRef},!1),this.initUploadDropzone($(".editor-toolbar .fa.fa-upload",this.markdownRef),function(){return e.$chatMsgInputRef},!0)},e.prototype.initTextcomplete=function(){var e=this;$(this.$chatMsgInputRef).textcomplete([{match:/(^|\s)@(\w*)$/,search:function(e,t){t($.map(nsCtx.users,function(t){return t.enabled&&t.username.indexOf(e)>=0?t.username:null}))},template:function(e,t){var n=_.find(nsCtx.users,{username:e});return n.name+" - "+n.mails+" ("+n.username+")"},replace:function(e){return"$1{~"+e+"}"}},{match:/(^|\s):([\+\-\w]*)$/,search:function(e,t){t($.map(p.default,function(t){return _.some(t.split("_"),function(t){return 0===t.indexOf(e)})?t:null}))},template:function(e,t){if("search"==e)return"表情查找 - :search";var n=":"+e+":";return emojify.replace(n)+" - "+n},replace:function(t){return e.tipsActionHandler(t)?"$1:"+t+": ":""}}],{appendTo:".tms-blog-comment-status-bar"}),this.simplemde.codemirror.on("keydown",function(t,n){_.includes([13,38,40],n.keyCode)&&e.isTipsShow()&&n.preventDefault()})},e.prototype.isTipsShow=function(){return 1===$(".tms-blog-comment-status-bar").find(".textcomplete-dropdown:visible").size()},e.prototype.tipsActionHandler=function(e){return"search"!=e||(_.delay(function(){utils.openNewWin(nsCons.STR_EMOJI_SEARCH_URL)},200),!1)},e.prototype.unbind=function(){this._reset()},e.prototype._reset=function(){this.blog=null,this.simplemde.value(""),this.simplemde.toTextArea(),this.simplemde=null},e.prototype.insertContent=function(e,t){try{var n=t?t.codemirror:this.simplemde.codemirror,i=n.getCursor();i&&(n.replaceRange(e,i,i),n.focus())}catch(e){console.log(e)}},e.prototype.replyHandler=function(e){this.insertContent("[[回复评论#"+e.id+"]("+this.baseUrl+"?cid="+e.id+"){~"+e.creator.username+"}]\n\n"),this._scrollTo("b")},e.prototype.removeHandler=function(e){var t=this;$.post("/admin/blog/comment/remove",{cid:e.id},function(n,i,r){n.success?(t.comments=_.reject(t.comments,{id:e.id}),toastr.success("博文评论移除成功!"),ea.publish(nsCons.EVENT_BLOG_COMMENT_CHANGED,{action:"removed",comments:t.comments})):toastr.error(n.data,"博文评论移除失败!")})},e.prototype.addHandler=function(){var e=this,t=this.simplemde.value();if(!$.trim(t))return this.simplemde.value(""),void toastr.error("评论内容不能为空!");if(!this.sending){this.sending=!0;var n=utils.md2html(t,!0),i=[nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[]);$.post("/admin/blog/comment/create",{basePath:utils.getBasePath(),id:this.blog.id,users:utils.parseUsernames(t,i).join(","),content:t,contentHtml:n},function(t,n,i){t.success?(e.comments=[].concat(e.comments,[t.data]),e.simplemde.value(""),toastr.success("博文评论提交成功!"),e.scrollToAfterImgLoaded("b"),ea.publish(nsCons.EVENT_BLOG_COMMENT_ADDED,{}),ea.publish(nsCons.EVENT_BLOG_COMMENT_CHANGED,{action:"created",comments:e.comments})):toastr.error(t.data,"博文评论提交失败!")}).always(function(){e.sending=!1})}},e.prototype.initPaste=function(){var e=this,t=void 0;t=this.$chatMsgInputRef.is("textarea")?$(this.$chatMsgInputRef).pastableTextarea():$(this.$chatMsgInputRef).pastableContenteditable(),t&&t.on("pasteImage",function(t,n){$.post("/admin/file/base64",{dataURL:n.dataURL,type:n.blob.type,toType:"Blog"},function(t,n,i){t.success&&e.insertContent("![{name}]({baseURL}{path}{uuidName})".replace(/\{name\}/g,t.data.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.data.path).replace(/\{uuidName\}/g,t.data.uuidName))})}).on("pasteImageError",function(e,t){toastr.error(t.message,"剪贴板粘贴图片错误!")})},e.prototype.initUploadDropzone=function(e,t,n){var i=this;$(e).dropzone({url:"/admin/file/upload",paramName:"file",clickable:!!n,dictDefaultMessage:"",maxFilesize:10,addRemoveLinks:!0,previewsContainer:".em-blog-comment .dropzone-previews",previewTemplate:$(".em-blog-comment .preview-template")[0].innerHTML,dictCancelUpload:"取消上传",dictCancelUploadConfirmation:"确定要取消上传吗?",dictFileTooBig:"文件过大({{filesize}}M),最大限制:{{maxFilesize}}M",init:function(){this.on("sending",function(e,n,i){t()?i.append("toType","Blog"):this.removeAllFiles(!0)}),this.on("success",function(e,t){t.success?($.each(t.data,function(e,t){"Image"==t.type?i.insertContent("![{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.path).replace(/\{uuidName\}/g,t.uuidName)):i.insertContent("[{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,"admin/file/download/").replace(/\{uuidName\}/g,t.id))}),toastr.success("上传成功!")):toastr.error(t.data,"上传失败!")}),this.on("error",function(e,t,n){toastr.error(t,"上传失败!")}),this.on("complete",function(e){this.removeFile(e)})}})},e.prototype.scrollToAfterImgLoaded=function(e){var t=this;_.defer(function(){new ImagesLoaded($(".em-blog-content")[0]).always(function(){t._scrollTo(e)}),t._scrollTo(e)})},e.prototype._scrollTo=function(e){"b"==e?$(".em-blog-content").scrollTo("max"):"t"==e?$(".em-blog-content").scrollTo(0):_.some(this.comments,{id:+e})?($(".em-blog-content").scrollTo('.tms-blog-comment.comment[data-id="'+e+'"]',{offset:this.offset}),$(".em-blog-content").find(".comment[data-id]").removeClass("active"),$(".em-blog-content").find(".comment[data-id="+e+"]").addClass("active")):($(".em-blog-content").scrollTo("max"),toastr.warning("博文评论["+e+"]不存在,可能已经被删除!"))},e.prototype.editHandler=function(e,t){$.get("/admin/blog/comment/get",{cid:e.id},function(n){n.success?(e.version!=n.data.version&&_.extend(e,n.data),e.isEditing=!0,e.contentOld=e.content,_.defer(function(){$(t).focus().select(),autosize.update(t)})):toastr.error(n.data)})},e.prototype.refreshHandler=function(e){$.get("/admin/blog/comment/get",{cid:e.id},function(t){e.version!=t.data.version?(_.extend(e,t.data),toastr.success("刷新同步成功!")):toastr.info("博文评论内容暂无变更!")})},e.prototype.eidtKeydownHandler=function(e,t,n){return!this.sending&&(e.ctrlKey&&13===e.keyCode?(this.editSave(t,n),!1):e.ctrlKey&&85===e.keyCode?($(n).next(".tms-blog-comment-edit-actions").find(".upload").click(),!1):(27===e.keyCode&&this.editCancelHandler(e,t,n),!0))},e.prototype.editOkHandler=function(e,t,n){this.editSave(t,n),t.isEditing=!1},e.prototype.editCancelHandler=function(e,t,n){t.content=t.contentOld,$(n).val(t.content),t.isEditing=!1},e.prototype.editSave=function(e,t){var n=this;this.sending=!0,e.content=$(t).val();var i=utils.md2html(e.content,!0),r=(utils.md2html(e.contentOld,!0),[nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[]));$.post("/admin/blog/comment/update",{basePath:utils.getBasePath(),id:this.blog.id,cid:e.id,version:e.version,users:utils.parseUsernames(e.content,r).join(","),content:e.content,contentHtml:i,diff:utils.diffS(e.contentOld,e.content)},function(t,n,i){t.success?(toastr.success("博文评论更新成功!"),e.isEditing=!1,e.version=t.data.version):toastr.error(t.data,"博文评论更新失败!")}).always(function(){n.sending=!1})},e.prototype.isZanDone=function(e){var t=e.voteZan;return!!t&&t.split(",").includes(this.loginUser.username)},e.prototype.rateHandler=function(e){$.post("/admin/blog/comment/vote",{cid:e.id,url:utils.getBasePath(),contentHtml:utils.md2html(e.content,!0),type:this.isZanDone(e)?"Cai":"Zan"},function(t,n,i){t.success?_.extend(e,t.data):toastr.error(t.data,"博文投票失败!")})},e.prototype.gotoTopHandler=function(){$(".em-blog-content").scrollTo(0,120)},e}(),u=l(d.prototype,"blog",[t.bindable],{enumerable:!0,initializer:null}),c=d))||c}),define("resources/elements/em-blog-content",["exports","aurelia-framework","clipboard-js","clipboard"],function(e,t,n,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogContent=void 0;var o,s=r(n),l=r(i);e.EmBlogContent=(0,t.containerless)(o=function(){function e(){var t=this;a(this,e),this.loginUser=nsCtx.loginUser,this.isSuper=nsCtx.isSuper,this.isAdmin=nsCtx.isAdmin,this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_SWITCH,function(e){t.getBlog(),ea.publish(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,{isHide:!0})}),this.subscribe2=ea.subscribe(nsCons.EVENT_BLOG_CHANGED,function(e){"updated"==e.action&&(_.extend(t.blog,e.blog),_.defer(function(){return t.catalogHandler(!0)}))}),this.subscribe3=ea.subscribe(nsCons.EVENT_BLOG_COMMENT_ADDED,function(e){t.blogFollower||t.getFollower()}),this.subscribe4=ea.subscribe(nsCons.EVENT_BLOG_COMMENT_CHANGED,function(e){t.comments=e.comments}),this.throttleCreateHandler=_.throttle(function(){t.createHandler()},1e3,{trailing:!1}),this.throttleEditHandler=_.throttle(function(){t.editHandler()},1e3,{trailing:!1}),this.throttleCopyHandler=_.throttle(function(){t.copyHandler()},1e3,{trailing:!1})}return e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe2.dispose(),this.subscribe3.dispose(),this.subscribe4.dispose()},e.prototype.attached=function(){var e=this;this.getBlog(),new l.default(".em-blog-content .tms-clipboard").on("success",function(e){toastr.success("复制到剪贴板成功!")}).on("error",function(e){toastr.error("复制到剪贴板失败!")}),$(".em-blog-content").on("click","code[data-code]",function(e){e.ctrlKey&&(e.stopImmediatePropagation(),e.preventDefault(),s.default.copy($(e.currentTarget).attr("data-code")).then(function(){toastr.success("复制到剪贴板成功!")},function(e){toastr.error("复制到剪贴板失败!")}))}),$(".em-blog-content").on("click",".pre-code-wrapper",function(e){e.ctrlKey&&(e.stopImmediatePropagation(),e.preventDefault(),s.default.copy($(e.currentTarget).find("i[data-clipboard-text]").attr("data-clipboard-text")).then(function(){toastr.success("复制到剪贴板成功!")},function(e){toastr.error("复制到剪贴板失败!")}))}),$(".em-blog-right-sidebar").on("click",".panel-blog-dir .wiki-dir-item",function(e){e.preventDefault(),$(window).width()<=768&&ea.publish(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,{isHide:!0}),$(".em-blog-content").scrollTo("#"+$(e.currentTarget).attr("data-id"),200,{offset:0})}),$(this.mkbodyRef).on("dblclick",function(t){t.ctrlKey&&(e.blog.openEdit||e.isSuper||e.blog.creator.username==e.loginUser.username)&&e.editHandler()}),$(".em-blog-content").scroll(_.throttle(function(t){try{var n=$(".em-blog-content")[0].scrollHeight,i=$(".em-blog-content")[0].scrollTop,r=1*i/(n-$(".em-blog-content").outerHeight());e.progressWidth=$(".em-blog-content").outerWidth()*r,e.fixDirItem()}catch(t){e.progressWidth=0}},10)),$(this.feedRef).on("mouseenter",'.event a[href*="#/blog/"]:not(.pp-not)',function(e){e.preventDefault();var t=$(e.currentTarget),n=utils.urlQuery("cid",t.attr("href"));n&&ea.publish(nsCons.EVENT_BLOG_COMMENT_POPUP_SHOW,{id:n,target:e.currentTarget})}),this.initHotkeys()},e.prototype.fixDirItem=function e(){var t=null,n=null;if(_.each(this.dirItemIds,function(e){if(n){if(utils.isElementInViewport($("#"+e))&&!utils.isElementInViewport($("#"+n)))return t=e,!1}else if(utils.isElementInViewport($("#"+e)))return t=e,!1}),t){var e=$(".em-blog-right-sidebar .panel-blog-dir").find('.wiki-dir-item[data-id="'+t+'"]');e&&($(".em-blog-right-sidebar .panel-blog-dir").find(".wiki-dir-item[data-id]").removeClass("active"),e.addClass("active"),$(".em-blog-right-sidebar .scrollbar-macosx.scroll-content.scroll-scrolly_visible").scrollTo(e,10,{offset:-120}))}},e.prototype.initHotkeys=function(){var e=this;try{$(document).bind("keyup","e",function(t){t.preventDefault(),(e.blog.openEdit||e.isSuper||e.blog.creator.username==e.loginUser.username)&&e.throttleEditHandler()}).bind("keyup","c",function(t){t.preventDefault(),e.throttleCreateHandler()}).bind("keydown","d",function(t){t.preventDefault(),e.dir&&e.catalogHandler()}).bind("keydown","s",function(t){t.preventDefault(),e.blogShareVm.show()}).bind("keydown","f",function(t){t.preventDefault(),e.followerHandler()}).bind("keydown","t",function(e){e.preventDefault(),$(".em-blog-content").scrollTo(0,200,{offset:0})}).bind("keydown","b",function(e){e.preventDefault(),$(".em-blog-content").scrollTo("max",200,{offset:0})}).bind("keydown","alt+r",function(t){t.preventDefault(),e.refreshHandler()}).bind("keydown","alt+h",function(t){t.preventDefault(),e.historyHandler()}).bind("keydown","alt+l",function(t){t.preventDefault(),e.authHandler()}).bind("keydown","alt+s",function(t){t.preventDefault(),e.stowHandler()}).bind("keydown","alt+c",function(t){t.preventDefault(),e.throttleCopyHandler()}).bind("keydown","alt+m",function(t){t.preventDefault(),e.updateSpaceHandler()}).bind("keydown","alt+o",function(t){t.preventDefault(),e.openEditHandler()}).bind("keydown","alt+ctrl+d",function(t){t.preventDefault(),e.deleteHandler()})}catch(e){console.log(e)}},e.prototype._dir=function(){var e=this;return this.dir=utils.dir($(this.mkbodyRef),"tms-blog-dir-item-"),this.dirItemIds=[],this.dir&&$(this.dir).find("a.item.wiki-dir-item").each(function(t,n){e.dirItemIds.push($(n).attr("data-id"))}),this.dir},e.prototype.getMyLog=function(){var e=this;this.ajaxS=$.get("/admin/blog/log/my",function(t){t.success?e.logs=t.data:toastr.error(t.data)})},e.prototype.getBlog=function(){var e=this;return this.progressWidth=0,!nsCtx.blogId||isNaN(new Number(nsCtx.blogId))?(this.blog=null,void this.getMyLog()):(this.getStow(),this.getFollower(),$.get("/admin/blog/get",{id:nsCtx.blogId},function(t){t.success?(e.blog=t.data,ea.publish(nsCons.EVENT_BLOG_VIEW_CHANGED,e.blog),_.defer(function(){return e.catalogHandler(!0)}),e.getMyTags()):toastr.error(t.data,"获取博文失败!")}))},e.prototype.getMyTags=function(){var e=this;$.get("/admin/blog/tag/my",function(t){var n=[];t.success&&(n=t.data),e.tags=_.unionBy(n,e.blog.tags,"name"),_.defer(function(){var t=_.map(e.blog.tags,"name");$(e.tagsRef).dropdown({}).dropdown("clear").dropdown("set selected",t).dropdown({allowAdditions:!0,onAdd:function(t,n,i){$.post("/admin/blog/tag/add",{id:e.blog.id,tags:t},function(e,t,n){e.success?toastr.success("添加标签成功!"):toastr.error(e.data,"添加标签失败!")})},onLabelRemove:function(t){$.post("/admin/blog/tag/remove",{id:e.blog.id,tags:t},function(e,t,n){e.success?toastr.success("移除标签成功!"):toastr.error(e.data,"移除标签失败!")})}})})})},e.prototype.getStow=function(){var e=this;$.get("/admin/blog/stow/get",{id:nsCtx.blogId},function(t){t.success?e.blogStow=t.data:toastr.error(t.data)})},e.prototype.getFollower=function(){var e=this;$.get("/admin/blog/follower/get",{id:nsCtx.blogId},function(t){t.success?e.blogFollower=t.data:toastr.error(t.data)})},e.prototype.editHandler=function(){nsCtx.isModaalOpening||ea.publish(nsCons.EVENT_BLOG_ACTION,{action:"edit",id:this.blog.id})},e.prototype.deleteHandler=function(){var e=this;(this.isSuper||this.blog.creator.username==this.loginUser.username)&&this.emConfirmModal.show({title:"删除确认",content:"确认要删除该博文吗?",onapprove:function(){$.post("/admin/blog/delete",{id:e.blog.id},function(t,n,i){t.success?(toastr.success("删除博文成功!"),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"deleted",blog:e.blog}),ea.publish(nsCons.EVENT_APP_ROUTER_NAVIGATE,{to:"#/blog"})):toastr.error(t.data,"删除博文失败!")})}})},e.prototype.createHandler=function(){nsCtx.isModaalOpening||$('a[href="#modaal-blog-write"]').click()},e.prototype.updateSpaceHandler=function(){(this.isSuper||this.blog.creator.username==this.loginUser.username)&&this.blogSpaceUpdateVm.show(this.blog)},e.prototype.updatePrivatedHandler=function(){var e=this;$.post("/admin/blog/privated/update",{id:this.blog.id,privated:!this.blog.privated},function(t,n,i){t.success?(_.extend(e.blog,t.data),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:e.blog}),toastr.success("更新博文可见性成功!")):toastr.error(t.data,"更新博文可见性失败!")})},e.prototype.isZanDone=function(){var e=this.blog.voteZan;return!!e&&e.split(",").includes(this.loginUser.username)},e.prototype.rateHandler=function(){var e=this;$.post("/admin/blog/vote",{id:this.blog.id,url:utils.getBasePath(),contentHtml:utils.md2html(this.blog.content,!0),type:this.isZanDone()?"Cai":"Zan"},function(t,n,i){t.success?_.extend(e.blog,t.data):toastr.error(t.data,"博文投票失败!")})},e.prototype.openEditHandler=function(){var e=this;(this.isSuper||this.blog.creator.username==this.loginUser.username)&&$.post("/admin/blog/openEdit",{id:this.blog.id,open:!this.blog.openEdit},function(t,n,i){t.success?(e.blog.openEdit=!e.blog.openEdit,ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:e.blog}),toastr.success(e.blog.openEdit?"开放协作编辑成功!":"关闭协作编辑成功!")):toastr.error(t.data,"协作编辑操作失败!")})},e.prototype.refreshHandler=function(){var e=this.getBlog();e&&e.done(function(){toastr.success("刷新操作成功!")})},e.prototype.historyHandler=function(){this.blogHistoryVm.show(this.blog)},e.prototype.catalogHandler=function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0];ea.publish(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,{justRefresh:e,action:"dir",dir:this._dir()})},e.prototype.authHandler=function(){(this.isSuper||this.blog.creator.username==this.loginUser.username)&&this.blogSpaceAuthVm.show("blog",this.blog)},e.prototype.copyHandler=function(){nsCtx.isModaalOpening||ea.publish(nsCons.EVENT_BLOG_ACTION,{action:"copy",id:this.blog.id})},e.prototype.stowHandler=function(){var e=this;this.blogStow?$.post("/admin/blog/stow/remove",{sid:this.blogStow.id},function(t,n,i){t.success?(ea.publish(nsCons.EVENT_BLOG_STOW_CHANGED,{action:"remove",data:e.blogStow}),e.blogStow=null,toastr.success("删除博文收藏成功!")):toastr.error(t.data)}):$.post("/admin/blog/stow/add",{id:this.blog.id},function(t,n,i){t.success?(e.blogStow=t.data,ea.publish(nsCons.EVENT_BLOG_STOW_CHANGED,{action:"add",data:e.blogStow}),toastr.success("博文收藏成功!")):toastr.error(t.data)})},e.prototype.followerHandler=function(){var e=this;this.blogFollower?$.post("/admin/blog/follower/remove",{fid:this.blogFollower.id},function(t,n,i){t.success?(e.blogFollower=null,toastr.success("取消博文关注成功!")):toastr.error(t.data)}):$.post("/admin/blog/follower/add",{id:this.blog.id},function(t,n,i){t.success?(e.blogFollower=t.data,toastr.success("博文关注成功!")):toastr.error(t.data)})},e.prototype.dimmerHandler=function(){ea.publish(nsCons.EVENT_BLOG_LEFT_SIDEBAR_TOGGLE,{isHide:!0}),ea.publish(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,{isHide:!0})},e.prototype.commentsHandler=function(){$(".em-blog-content").scrollTo(".em-blog-comment ",120,{offset:-16})},e.prototype.openFeedEventItemHandler=function(e){e.isOpen=!e.isOpen},e.prototype.feedEventItemMouseleaveHandler=function(e){e.isOpen=!1},e.prototype.refreshFeedHandler=function(){this.getMyLog()},e}())||o}),define("resources/elements/em-blog-history-diff",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogHistoryDiff=void 0;var i;e.EmBlogHistoryDiff=(0,t.containerless)(i=function(){function e(){n(this,e)}return e.prototype.showHandler=function(){},e.prototype.approveHandler=function(){},e.prototype.show=function(e,t,n,i){this.f=e,this.s=t,this.fIndex=n,this.sIndex=i,this.diffHtml=utils.diffS(t.content,e.content),this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e}())||i}),define("resources/elements/em-blog-history-view",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogHistoryView=void 0;var i;e.EmBlogHistoryView=(0,t.containerless)(i=function(){function e(){n(this,e),this.isSuper=nsCtx.isSuper,this.loginUser=nsCtx.loginUser}return e.prototype.showHandler=function(){},e.prototype.approveHandler=function(){},e.prototype.show=function(e,t,n){this.blogHistory=e,this.blog=e.blog,this.ver=t,this.isCurrentVer=n,this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e.prototype.restoreHandler=function(){var e=this;this.ajax1=$.post("/admin/blog/history/restore",{hid:this.blogHistory.id},function(t,n,i){t.success?(ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:t.data}),ea.publish(nsCons.EVENT_BLOG_HISTORY_CHANGED,{}),toastr.success("博文历史记录还原成功!"),e.emModal.hide()):toastr.error(t.data,"博文历史记录还原失败!")})},e}())||i}),define("resources/elements/em-blog-history",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogHistory=void 0;var i;e.EmBlogHistory=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.isSuper=nsCtx.isSuper,this.loginUser=nsCtx.loginUser,this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_HISTORY_CHANGED,function(e){t.refreshHistory()})}return e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype.viewHistoryHandler=function(e,t,n){this.blogHistoryViewVm.show(e,t,n)},e.prototype.refreshHistory=function(){var e=this;$.get("/admin/blog/history/list",{id:this.blog.id},function(t){t.success?(e.oldHistories=t.data,e.histories=_.reverse(_.clone(t.data))):toastr.error(t.data,"获取博文历史失败!")})},e.prototype.showHandler=function(){this.refreshHistory()},e.prototype.approveHandler=function(){},e.prototype.show=function(e){this.blog=e,this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e.prototype.restoreHandler=function(e){var t=this;this.ajax1=$.post("/admin/blog/history/restore",{hid:e.id},function(e,n,i){e.success?(ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:e.data}),t.refreshHistory(),toastr.success("博文历史记录还原成功!")):toastr.error(e.data,"博文历史记录还原失败!")})},e.prototype.removeHandler=function(e){var t=this;this.ajax2=$.post("/admin/blog/history/remove",{hid:e.id},function(e,n,i){e.success?(t.refreshHistory(),toastr.success("博文历史记录删除成功!")):toastr.error(e.data,"博文历史记录删除失败!")})},e.prototype.diffHandler=function(){var e=[].concat(this.oldHistories,[this.blog]),t=_.filter(e,"checked");if(t&&t.length>1){var n=t[t.length-1],i=t[t.length-2],r=_.indexOf(e,n),a=_.indexOf(e,i);this.blogHistoryDiffVm.show(n,i,r,a)}else toastr.error("请先选择要比较版本")},e}())||i}),define("resources/elements/em-blog-left-sidebar",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogLeftSidebar=void 0; -var i;e.EmBlogLeftSidebar=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.isHide=!0,this.blogs=[],this.spaces=[],this.noSpaceBlogs=[],this.loginUser=nsCtx.loginUser,this.isSuper=nsCtx.isSuper,this.filter="",this.spaceStow={name:"我的收藏",open:!1},this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_CHANGED,function(e){"created"==e.action?(t.blogs=[e.blog].concat(t.blogs),t.calcTree(),ea.publish(nsCons.EVENT_APP_ROUTER_NAVIGATE,{to:"#/blog/"+e.blog.id})):"updated"==e.action?(_.extend(_.find(t.blogs,{id:e.blog.id}),e.blog),t.calcTree()):"deleted"==e.action&&(t.blogStows=_.reject(t.blogStows,function(t){return t.blog.id==e.blog.id}),t.blogs=_.reject(t.blogs,{id:e.blog.id}),t.calcTree())}),this.subscribe4=ea.subscribe(nsCons.EVENT_SPACE_CHANGED,function(e){"created"==e.action?(t.spaces=[e.space].concat(t.spaces),t.calcTree()):"updated"==e.action&&(_.extend(_.find(t.spaces,{id:e.space.id}),e.space),t.calcTree())}),this.subscribe2=ea.subscribe(nsCons.EVENT_BLOG_SWITCH,function(e){t.blog=_.find(t.blogs,{id:+nsCtx.blogId})}),this.subscribe3=ea.subscribe(nsCons.EVENT_BLOG_TOGGLE_SIDEBAR,function(e){t.isHide=e}),this.subscribe5=ea.subscribe(nsCons.EVENT_BLOG_STOW_CHANGED,function(e){t._refreshBlogStows()}),this._doFilerDebounce=_.debounce(function(){return t._doFiler()},120,{leading:!0})}return e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe2.dispose(),this.subscribe3.dispose(),this.subscribe4.dispose(),this.subscribe5.dispose()},e.prototype.attached=function(){this.refresh(),this._refreshBlogStows()},e.prototype._refreshBlogStows=function(){var e=this;$.get("/admin/blog/stow/listMy",function(t){t.success?e.blogStows=t.data:toastr.error(t.data)})},e.prototype.refresh=function(){var e=this;$.when(this.getSpaces(),this.getBlogTree()).done(function(){e.calcTree()})},e.prototype.calcTree=function(){var e=this;this.noSpaceBlogs=[],$.each(this.spaces,function(t,n){n.blogs=[],$.each(e.blogs,function(e,t){t.space&&t.space.id===n.id&&(n.blogs.push(t),nsCtx.blogId==t.id&&(n.open=!0))})}),this.noSpaceBlogs=_.filter(this.blogs,function(e){return!e.space})},e.prototype.spaceToggleHandler=function(e){e.open=!e.open},e.prototype.getBlogTree=function(){var e=this;return $.get("/admin/blog/listMy",function(t){t.success&&(e.blogs=t.data,e.blog=_.find(e.blogs,{id:+nsCtx.blogId}))})},e.prototype.getSpaces=function(){var e=this;return $.get("/admin/space/listMy",{},function(t){t.success&&(e.spaces=t.data)})},e.prototype.editSpaceHandler=function(e){this.spaceEditVm.show(e)},e.prototype.delSpaceHandler=function(e){var t=this;this.confirmMd.show({onapprove:function(){$.post("/admin/space/delete",{id:e.id},function(n){n.success?(toastr.success("删除空间成功!"),t.spaces=_.reject(t.spaces,{id:e.id})):toastr.error(n.data,"删除空间失败!")})}})},e.prototype.authSpaceHandler=function(e){this.blogSpaceAuthVm.show("space",e)},e.prototype.clearFilterHandler=function(){this.filter="",this._doFilerDebounce()},e.prototype.filterKeyupHandler=function(e){this._doFilerDebounce()},e.prototype._doFiler=function(){var e=this;_.each(this.blogs,function(t){_.includes(_.toLower(t.title),_.toLower(e.filter))?t._hidden=!1:t._hidden=!0}),_.each(this.spaces,function(e){_.some(e.blogs,function(e){return!e._hidden})?(e._hidden=!1,e.open=!0):e._hidden=!0}),_.each(this.blogStows,function(t){_.includes(_.toLower(t.blog.title),_.toLower(e.filter))?t._hidden=!1:t._hidden=!0}),_.some(this.blogStows,function(e){return!e._hidden})?this.spaceStow.open=!0:this.spaceStow.open=!1,this.filter||(_.each(this.spaces,function(e){_.find(e.blogs,{id:+nsCtx.blogId})?e.open=!0:e.open=!1}),this.spaceStow.open=!1)},e}())||i}),define("resources/elements/em-blog-right-sidebar",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogRightSidebar=void 0;var i;e.EmBlogRightSidebar=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,function(e){"dir"==e.action&&$(t.dirRef).empty().append(e.dir)})}return e.prototype.unbind=function(){this.subscribe.dispose()},e}())||i}),define("resources/elements/em-blog-save",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogSave=void 0;var a,o,s;e.EmBlogSave=(0,t.containerless)((o=function(){function e(){var t=this;i(this,e),n(this,"trigger",s,this),this.loginUser=nsCtx.loginUser,this.isSuper=nsCtx.isSuper,this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_SAVE,function(e){t.blogInfo=e,t.show()})}return e.prototype.triggerChanged=function(){var e=this;$(this.trigger).click(function(t){e.show()})},e.prototype.attached=function(){$(this.chk).checkbox()},e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype.show=function(){this.emModal.show({hideOnApprove:!1,autoDimmer:!0})},e.prototype.showHandler=function(){var e=this;$(this.chk).checkbox("set unchecked"),$.get("/admin/space/listMy",function(t){t.success&&(e.spaces=t.data)})},e.prototype.approveHandler=function(e){var t=this,n=utils.md2html(this.blogInfo.content,!0),i=[nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[]),r=$(this.spacesRef).dropdown("get value");localStorage&&localStorage.setItem(nsCons.KEY_BLOG_COMMON_SPACE,r),$.post("/admin/blog/create",{url:utils.getBasePath(),usernames:utils.parseUsernames(this.blogInfo.content,i).join(","),title:this.blogInfo.title,content:this.blogInfo.content,spaceId:r,privated:$(this.chk).checkbox("is checked"),contentHtml:n},function(n,i,r){n.success?(t.blog=n.data,toastr.success("博文保存成功!"),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"created",blog:t.blog}),e.hide(),$('a[href="#modaal-blog-write"]').modaal("close")):toastr.error(n.data,"博文保存失败!")})},e.prototype.initSpacesHandler=function(e){var t=this;e&&_.defer(function(){if($(t.spacesRef).dropdown("clear"),localStorage){var e=localStorage.getItem(nsCons.KEY_BLOG_COMMON_SPACE);e&&$(t.spacesRef).dropdown("set selected",e)}})},e}(),s=r(o.prototype,"trigger",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-blog-share",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogShare=void 0;var a,o,s;e.EmBlogShare=(0,t.containerless)((o=function(){function e(){i(this,e),this.shares=[],this.desc="",n(this,"blog",s,this),this.basePath=utils.getBasePath()}return e.prototype.attached=function(){var e=this;$(this.searchRef).search({minCharacters:2,cache:!1,selectFirstResult:!0,showNoResults:!1,onSelect:function(t,n){t.item._id=_.uniqueId("share-item-"),t.item._type=t.item.username?"user":"channel",e.shares.push(t.item),_.defer(function(){$(e.inputSearchRef).val("")})},apiSettings:{onResponse:function(t){var n={results:[]};return $.each(t.data.users,function(t,i){_.find(_.filter(e.shares,function(e){return"user"==e._type}),{username:i.username})||n.results.push({item:i,title:' '+i.name+" ("+i.username+")"})}),$.each(t.data.channels,function(t,i){_.find(_.filter(e.shares,function(e){return"channel"==e._type}),{name:i.name})||n.results.push({item:i,title:' '+i.title+" ("+i.name+")"})}),n},url:"/admin/blog/share/to/search?search={query}"}}),$(this.shareRef).popup({on:"click",inline:!0,silent:!0,position:"bottom right",jitter:300,delay:{show:300,hide:300},onVisible:function(){$(e.inputSearchRef).focus()}})},e.prototype.shareSearchKeyupHandler=function(e){if(13===e.keyCode&&!$(this.searchRef).search("is visible")){var t=$(this.inputSearchRef).val();utils.isMail(t)&&(_.find(_.filter(this.shares,function(e){return"mail"==e._type}),{mail:t})||(this.shares.push({_id:_.uniqueId("share-item-"),_type:"mail",mail:t}),$(this.inputSearchRef).val("")))}},e.prototype.show=function(){$(this.shareRef).popup("show")},e.prototype.removeShareHandler=function(e){this.shares=_.reject(this.shares,{_id:e._id})},e.prototype.cancelHandler=function(){this._reset()},e.prototype._reset=function(){this.shares=[],this.desc="",$(this.inputSearchRef).val(""),$(this.shareRef).popup("hide")},e.prototype.shareHandler=function(){var e=this;return 0===this.shares.length?void toastr.error("请先指定博文分享用户或者频道或者邮箱!"):void(this.ajaxS=$.post("/admin/blog/share",{basePath:utils.getBasePath(),id:this.blog.id,desc:this.desc,title:this.blog.title,html:utils.md2html(this.blog.content,!0),users:_.chain(this.shares).filter(function(e){return"user"==e._type}).map("username").join().value(),channels:_.chain(this.shares).filter(function(e){return"channel"==e._type}).map("name").join().value(),mails:_.chain(this.shares).filter(function(e){return"mail"==e._type}).map("mail").join().value()},function(t,n,i){t.success?(e._reset(),toastr.success("博文分享成功!")):toastr.error(t.data,"博文分享失败!")}))},e}(),s=r(o.prototype,"blog",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-blog-space-auth",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogSpaceAuth=void 0;var i;e.EmBlogSpaceAuth=(0,t.containerless)(i=function(){function e(){n(this,e),this.shares=[]}return e.prototype._isBlog=function(){return"blog"==this.type},e.prototype.attached=function(){var e=this;$(this.chk).checkbox({onChange:function(){e._isBlog()?$.post("/admin/blog/privated/update",{id:e.authO.id,privated:$(e.chk).checkbox("is checked")},function(t,n,i){t.success?(_.extend(e.authO,t.data),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:t.data}),toastr.success("更新博文可见性成功!")):toastr.error(t.data,"更新博文可见性失败!")}):$.post("/admin/space/update",{id:e.authO.id,privated:$(e.chk).checkbox("is checked")},function(t,n,i){t.success?(_.extend(e.authO,t.data),ea.publish(nsCons.EVENT_SPACE_CHANGED,{action:"updated",space:t.data}),toastr.success("更新空间可见性成功!")):toastr.error(t.data,"更新空间可见性失败!")})}}),$(this.chk2).checkbox({onChange:function(){e._isBlog()?$.post("/admin/blog/opened/update",{id:e.authO.id,opened:$(e.chk2).checkbox("is checked")},function(t,n,i){t.success?(_.extend(e.authO,t.data),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:t.data}),toastr.success("更新博文可见性成功!")):toastr.error(t.data,"更新博文可见性失败!")}):$.post("/admin/space/update",{id:e.authO.id,opened:$(e.chk2).checkbox("is checked")},function(t,n,i){t.success?(_.extend(e.authO,t.data),ea.publish(nsCons.EVENT_SPACE_CHANGED,{action:"updated",space:t.data}),toastr.success("更新空间可见性成功!")):toastr.error(t.data,"更新空间可见性失败!")})}}),$(this.searchRef).search({minCharacters:2,cache:!1,selectFirstResult:!0,onSelect:function(t,n){t.item._id=_.uniqueId("share-item-"),_.defer(function(){$(e.inputSearchRef).val("")});var i={id:e.authO.id};t.item.username?_.extend(i,{users:t.item.username}):_.extend(i,{channels:t.item.id}),e._isBlog()?$.post("/admin/blog/auth/add",i,function(n,i,r){n.success?(e.shares.push(t.item),e.authO.blogAuthorities=n.data.blogAuthorities):toastr.error(n.data)}):$.post("/admin/space/auth/add",i,function(n,i,r){n.success?(e.shares.push(t.item),e.authO.spaceAuthorities=n.data.spaceAuthorities):toastr.error(n.data)})},apiSettings:{onResponse:function(t){var n={results:[]};return $.each(t.data.users,function(t,i){_.find(e.shares,{username:i.username})||n.results.push({item:i,title:' '+i.name+" ("+i.username+")"})}),$.each(t.data.channels,function(t,i){_.find(_.filter(e.shares,function(e){return!e.username}),{name:i.name})||n.results.push({item:i,title:' '+i.title+" ("+i.name+")"})}),n},url:"/admin/blog/share/to/search?search={query}"}})},e.prototype.removeShareHandler=function(e){var t=this,n={id:this.authO.id};e.username?_.extend(n,{users:e.username}):_.extend(n,{channels:e.id}),this._isBlog()?$.post("/admin/blog/auth/remove",n,function(n,i,r){n.success?(t.shares=_.reject(t.shares,{_id:e._id}),t.authO.blogAuthorities=n.data.blogAuthorities):toastr.error(n.data)}):$.post("/admin/space/auth/remove",n,function(n,i,r){n.success?(t.shares=_.reject(t.shares,{_id:e._id}),t.authO.spaceAuthorities=n.data.spaceAuthorities):toastr.error(n.data)})},e.prototype._reset=function(){this.shares=[],$(this.inputSearchRef).val("")},e.prototype.show=function(e,t){this.type=e,this.authO=t,this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e.prototype.showHandler=function(){var e=this;this._reset(),$(this.chk).checkbox(this.authO.privated?"set checked":"set unchecked"),$(this.chk2).checkbox(this.authO.opened?"set checked":"set unchecked");var t=void 0;t=this._isBlog()?this.authO.blogAuthorities:this.authO.spaceAuthorities,_.forEach(t,function(t){var n=t.user?t.user:t.channel;n._id=_.uniqueId("share-item-"),e.shares.push(n)})},e.prototype.approveHandler=function(){},e}())||i}),define("resources/elements/em-blog-space-create",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogSpaceCreate=void 0;var i;e.EmBlogSpaceCreate=(0,t.containerless)(i=function(){function e(){n(this,e)}return e.prototype.attached=function(){$(this.chk).checkbox()},e.prototype.createHandler=function(){var e=this;this.ajax=$.post("/admin/space/create",{name:this.name,desc:this.desc,privated:$(this.chk).checkbox("is checked")},function(t,n,i){t.success?(e.name="",e.desc="",$(e.chk).checkbox("set unchecked"),toastr.success("空间创建成功!"),$(e.ppRef).popup("hide"),ea.publish(nsCons.EVENT_SPACE_CHANGED,{action:"created",space:t.data})):toastr.error(t.data,"空间创建失败!")})},e}())||i}),define("resources/elements/em-blog-space-edit",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogSpaceEdit=void 0;var i;e.EmBlogSpaceEdit=(0,t.containerless)(i=function(){function e(){n(this,e)}return e.prototype.attached=function(){$(this.chk).checkbox()},e.prototype.show=function(e){this.space=e,this.emModal.show({hideOnApprove:!1,autoDimmer:!0})},e.prototype.showHandler=function(){var e=this;$.get("/admin/space/get",{id:this.space.id},function(t){t.success&&(e.space=t.data,$(e.chk).checkbox(e.space.privated?"set checked":"set unchecked"))})},e.prototype.approveHandler=function(e){$.post("/admin/space/update",{id:this.space.id,name:this.space.name,desc:this.space.description,privated:$(this.chk).checkbox("is checked")},function(t,n,i){t.success?(toastr.success("空间更新成功!"),ea.publish(nsCons.EVENT_SPACE_CHANGED,{action:"updated",space:t.data}),e.hide()):toastr.error(t.data,"空间更新失败!")})},e}())||i}),define("resources/elements/em-blog-space-update",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogSpaceUpdate=void 0;var i;e.EmBlogSpaceUpdate=(0,t.containerless)(i=function(){function e(){n(this,e),this.loginUser=nsCtx.loginUser,this.isSuper=nsCtx.isSuper}return e.prototype.attached=function(){},e.prototype.show=function(e){this.blog=e,this.emModal.show({hideOnApprove:!1,autoDimmer:!0})},e.prototype.showHandler=function(){var e=this;$.get("/admin/space/listMy",function(t){t.success&&(e.spaces=t.data)})},e.prototype.approveHandler=function(e){var t=$(this.spacesRef).dropdown("get value");$.post("/admin/blog/space/update",{id:this.blog.id,sid:t?t:null},function(t,n,i){t.success?(toastr.success("博文空间更新成功!"),t.data.space||(t.data.space=null),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:t.data}),e.hide()):toastr.error(t.data,"博文空间更新失败!")})},e.prototype.initSpacesHandler=function(e){var t=this;e&&_.defer(function(){$(t.spacesRef).dropdown("clear").dropdown("set selected",t.blog.space?t.blog.space.id+"":"")})},e}())||i}),define("resources/elements/em-blog-top-menu",["exports","aurelia-framework","timeago"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogTopMenu=void 0;var i,r=timeago();e.EmBlogTopMenu=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.isHide=!0,this.loginUser=nsCtx.loginUser,this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_SWITCH,function(e){t.toggleHandler(!0)}),this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_LEFT_SIDEBAR_TOGGLE,function(e){t.toggleHandler(e.isHide)})}return e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype.attached=function(){var e=this;$(this.logoRef).on("mouseenter",function(t){$(e.logoRef).animateCss("flip")}),$(this.searchRef).search({type:"category",minCharacters:2,selectFirstResult:!0,onSelect:function(t,n){return $(e.searchRef).search("hide results"),_.defer(function(){$(e.searchRef).find("input").blur(),ea.publish(nsCons.EVENT_APP_ROUTER_NAVIGATE,{to:t.url})}),!1},apiSettings:{onResponse:function(e){var t={results:{blogs:{name:"博文 ("+e.data.blogs.length+")",results:[]},comments:{name:"评论 ("+e.data.comments.length+")",results:[]}}};return $.each(e.data.blogs,function(e,n){t.results.blogs.results.push({title:n.title,description:''+n.creator.name+" 创建于 "+r.format(n.createDate,"zh_CN"),url:"#/blog/"+n.id})}),$.each(e.data.comments,function(e,n){t.results.comments.results.push({title:"#/blog/"+n.targetId+"?cid="+n.id,description:''+n.creator.name+" 创建于 "+r.format(n.createDate,"zh_CN")+"
    "+utils.encodeHtml(n.content),url:"#/blog/"+n.targetId+"?cid="+n.id})}),t},url:"/admin/blog/search?search={query}&comment=true&ellipsis=60"}}),this._refreshSysLinks(),"create"==nsCtx.blogId&&_.defer(function(){$('a[href="#modaal-blog-write"]').click()})},e.prototype._refreshSysLinks=function(){var e=this;$.get("/admin/link/listByApp",function(t){t.success?e.sysLinks=t.data:e.sysLinks=[]})},e.prototype.searchBlurHandler=function(){this.isSearchFocus=!1},e.prototype.searchFocusHandler=function(){this.isSearchFocus=!0},e.prototype.toggleHandler=function(e){this.isHide!==e&&(this.isHide=e?e:!this.isHide,ea.publish(nsCons.EVENT_BLOG_TOGGLE_SIDEBAR,this.isHide))},e.prototype.userEditHandler=function(){this.userEditMd.show()},e.prototype.logoutHandler=function(){$.post("/admin/logout").always(function(){utils.redirect2Login()})},e.prototype.searchKeyupHandler=function(e){27==e.keyCode&&$(this.searchRef).search("set value","")},e}())||i}),define("resources/elements/em-blog-write",["exports","aurelia-framework","simplemde","dropzone","common/common-emoji"],function(e,t,n,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogWrite=void 0;var c,d,u,m,p,g=a(n),h=(a(i),a(r));e.EmBlogWrite=(0,t.containerless)((p=m=function(){function e(){var t=this;s(this,e),o(this,"members",u,this),this.subscribe=ea.subscribe(nsCons.EVENT_MODAAL_AFTER_OPEN,function(n){n.id==e.NAME&&(nsCtx.isModaalOpening=!0,t.init())}),this.subscribe2=ea.subscribe(nsCons.EVENT_MODAAL_BEFORE_CLOSE,function(n){n.id==e.NAME&&(t.destroy(),nsCtx.isModaalOpening=!1)}),this.subscribe3=ea.subscribe(nsCons.EVENT_BLOG_ACTION,function(e){t.action=e.action,$.get("/admin/blog/get",{id:e.id},function(e){e.success&&(t.blog=e.data,$('a[href="#modaal-blog-write"]').click())})}),this.subscribe4=ea.subscribe(nsCons.EVENT_BLOG_CHANGED,function(e){t.action=e.action,"created"===e.action&&(t.blog=e.blog,$("#blog-save-btn span").text("更新"),$("#blog-save-btn").attr("title","ctrl+click更新后关闭窗口"))}),this.blogTitleInputKeyupInit=_.once(function(){$("#blog-title-input").keyup(function(e){var n=$(e.currentTarget);e.shiftKey||13!=e.keyCode?e.shiftKey&&13==e.keyCode?t.simplemde.codemirror.focus():27==e.keyCode&&n.val(""):t.simplemde.value()?t.save(e,!0):t.simplemde.codemirror.focus()})})}return e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe2.dispose(),this.subscribe3.dispose(),this.subscribe4.dispose()},e.prototype._reset=function(){this.action=null,this.blog=null,$("#blog-save-btn span").text("保存"),$("#blog-save-btn").attr("title","ctrl+click快速保存"),$("#blog-title-input").val(""),this.simplemde.value(""),this.simplemde.toTextArea(),this.simplemde=null},e.prototype._editInit=function(){$("#blog-title-input").val(this.blog.title),this.simplemde.value(this.blog.content),$("#blog-save-btn span").text("更新"),$("#blog-save-btn").attr("title","ctrl+click更新后关闭窗口")},e.prototype._writeInit=function(){var e=this,t=utils.urlQuery("ccid"),n=utils.urlQuery("cdid"),i=null,r=null;t?(i="/admin/chat/channel/get",r=t):n&&(i="/admin/chat/direct/get",r=n),i&&$.get(i,{id:+r},function(t){if(t.success){e.simplemde.value(t.data.content);var n=$("#blog-title-input").val();if(!n){var i=/#{1,6}[\s]+(.+)\n?/g.exec(t.data.content);i&&i.length>1&&$("#blog-title-input").val(i[1])}}else toastr.error(t.data,"获取沟通消息失败!")})},e.prototype._copyInit=function(){$("#blog-title-input").val(this.blog.title+" (副本)"),this.simplemde.value(this.blog.content),this.blog=null},e.prototype.init=function(){var e=this;this.simplemde=new g.default({element:$("#txt-blog-write")[0],spellChecker:!1,toolbar:[{name:"bold",action:g.default.toggleBold,className:"fa fa-bold",title:"粗体"},{name:"italic",action:g.default.toggleItalic,className:"fa fa-italic",title:"斜体"},{name:"strikethrough",action:g.default.toggleStrikethrough,className:"fa fa-strikethrough",title:"删除线"},{name:"heading",action:g.default.toggleHeadingSmaller,className:"fa fa-header",title:"标题"},{name:"heading-smaller",action:g.default.toggleHeadingSmaller,className:"fa fa-header fa-header-x fa-header-smaller",title:"变小标题"},{name:"heading-bigger",action:g.default.toggleHeadingBigger,className:"fa fa-header fa-header-x fa-header-bigger",title:"变大标题"},"|",{name:"code",action:g.default.toggleCodeBlock,className:"fa fa-code",title:"代码"},{name:"quote",action:g.default.toggleBlockquote,className:"fa fa-quote-left",title:"引用"},{name:"unordered-list",action:g.default.toggleUnorderedList,className:"fa fa-list-ul",title:"无序列表"},{name:"ordered-list",action:g.default.toggleOrderedList,className:"fa fa-list-ol",title:"有序列表"},{name:"tasks",action:function(t){e.insertContent("- [ ] 未完成任务\n- [x] 已完成任务")},className:"fa fa-check-square-o ",title:"任务列表"},{name:"details",action:function(t){e.insertContent("
    \n标题\n

    详情内容

    \n
    ")},className:"fa fa-play ",title:"折叠详情"},"|",{name:"link",action:g.default.drawLink,className:"fa fa-link",title:"创建链接"},{name:"image",action:g.default.drawImage,className:"fa fa-picture-o",title:"插入图片"},{name:"table",action:g.default.drawTable,className:"fa fa-table",title:"插入表格"},{name:"horizontal-rule",action:g.default.drawHorizontalRule,className:"fa fa-minus",title:"插入水平分割线"},"|",{name:"upload",action:function(e){},className:"fa fa-upload",title:"上传文件"},"|",{name:"preview",action:g.default.togglePreview,className:"fa fa-eye no-disable",title:"切换预览"},{name:"side-by-side",action:g.default.toggleSideBySide,className:"fa fa-columns no-disable no-mobile",title:"实时预览"},{name:"fullscreen",action:g.default.toggleFullScreen,className:"fa fa-arrows-alt no-disable no-mobile",title:"全屏"},{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown指南"}],insertTexts:{table:["","\n\n| 列1 | 列2 | 列3 |\n| ------ | ------ | ------ |\n| 文本 | 文本 | 文本 |\n\n"]},previewRender:function(e,t){return emojify&&(e=emojify.replace(e)),marked(utils.preParse(e))}}),this.simplemde.codemirror.on("keyup",function(t,n){if(n.ctrlKey&&13==n.keyCode)e.save(n,!0);else if(27==n.keyCode)e.simplemde.value("");else if(13==n.keyCode){var i=$("#blog-title-input").val();if(!i){var r=/#{1,6}[\s]+(.+)\n?/g.exec(e.simplemde.value());r&&r.length>1&&$("#blog-title-input").val(r[1])}}}),this.$chatMsgInputRef=$("#txt-blog-write-wrapper").find(".CodeMirror textarea"),0===this.$chatMsgInputRef.size()&&(this.$chatMsgInputRef=$("#txt-blog-write-wrapper").find('.CodeMirror [contenteditable="true"]')),"edit"==this.action?this._editInit():"copy"==this.action?this._copyInit():this._writeInit(),$("#blog-title-input").focus(),this.initPaste(),this.initTextcomplete(),this.initUploadDropzone($(".CodeMirror-wrap","#txt-blog-write-wrapper"),function(){return e.$chatMsgInputRef},!1),this.initUploadDropzone($(".editor-toolbar .fa.fa-upload","#txt-blog-write-wrapper"),function(){return e.$chatMsgInputRef},!0),this.blogTitleInputKeyupInit()},e.prototype.close=function(){$('a[href="#modaal-blog-write"]').modaal("close")},e.prototype.initTextcomplete=function(){var e=this;$(this.$chatMsgInputRef).textcomplete([{match:/(^|\s)@(\w*)$/,search:function(e,t){t($.map(nsCtx.users,function(t){return t.enabled&&t.username.indexOf(e)>=0?t.username:null}))},template:function(e,t){var n=_.find(nsCtx.users,{username:e});return n.name+" - "+n.mails+" ("+n.username+")"},replace:function(e){return"$1{~"+e+"}"}},{match:/(^|\s):([\+\-\w]*)$/,search:function(e,t){t($.map(h.default,function(t){return _.some(t.split("_"),function(t){return 0===t.indexOf(e)})?t:null}))},template:function(e,t){if("search"==e)return"表情查找 - :search";var n=":"+e+":";return emojify.replace(n)+" - "+n},replace:function(t){return e.tipsActionHandler(t)?"$1:"+t+": ":""}}],{appendTo:".tms-blog-write-status-bar",maxCount:5}),this.simplemde.codemirror.on("keydown",function(t,n){_.includes([13,38,40],n.keyCode)&&e.isTipsShow()&&n.preventDefault()})},e.prototype.isTipsShow=function(){return 1===$(".tms-blog-write-status-bar").find(".textcomplete-dropdown:visible").size()},e.prototype.tipsActionHandler=function(e){return"search"!=e||(_.delay(function(){utils.openNewWin(nsCons.STR_EMOJI_SEARCH_URL)},200),!1)},e.prototype.initPaste=function(){var e=this,t=void 0;t=this.$chatMsgInputRef.is("textarea")?$(this.$chatMsgInputRef).pastableTextarea():$(this.$chatMsgInputRef).pastableContenteditable(),t&&t.on("pasteImage",function(t,n){$.post("/admin/file/base64",{dataURL:n.dataURL,type:n.blob.type,toType:"Blog"},function(t,n,i){t.success&&e.insertContent("![{name}]({baseURL}{path}{uuidName})".replace(/\{name\}/g,t.data.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.data.path).replace(/\{uuidName\}/g,t.data.uuidName))})}).on("pasteImageError",function(e,t){toastr.error(t.message,"剪贴板粘贴图片错误!")})},e.prototype.initUploadDropzone=function(e,t,n){var i=this;$(e).dropzone({url:"/admin/file/upload",paramName:"file",clickable:!!n,dictDefaultMessage:"",maxFilesize:10,addRemoveLinks:!0,previewsContainer:".em-blog-write .dropzone-previews",previewTemplate:$(".em-blog-write .preview-template")[0].innerHTML,dictCancelUpload:"取消上传",dictCancelUploadConfirmation:"确定要取消上传吗?",dictFileTooBig:"文件过大({{filesize}}M),最大限制:{{maxFilesize}}M",init:function(){this.on("sending",function(e,n,i){t()?i.append("toType","Blog"):this.removeAllFiles(!0)}),this.on("success",function(e,t){t.success?($.each(t.data,function(e,t){"Image"==t.type?i.insertContent("![{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.path).replace(/\{uuidName\}/g,t.uuidName)):i.insertContent("[{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,"admin/file/download/").replace(/\{uuidName\}/g,t.id))}),toastr.success("上传成功!")):toastr.error(t.data,"上传失败!")}),this.on("error",function(e,t,n){toastr.error(t,"上传失败!")}),this.on("complete",function(e){this.removeFile(e)})}})},e.prototype.insertContent=function(e,t){try{var n=t?t.codemirror:this.simplemde.codemirror,i=n.getCursor();i&&(n.replaceRange(e,i,i),n.focus())}catch(e){console.log(e)}},e.prototype.destroy=function(){this._reset()},e.prototype.attached=function(){var e=this;$("#blog-save-btn").click(function(t){e.save(t)})},e.prototype.save=function(e,t){var n=this,i=$("#blog-title-input").val(),r=this.simplemde.value();if(!$.trim(i))return $("#blog-title-input").val(""),void toastr.error("标题不能为空!");if(!$.trim(r))return this.simplemde.value(""),void toastr.error("内容不能为空!");if(this.blog){if(this.sending)return;this.sending=!0,$("#blog-save-btn i").show();var a=(utils.md2html(r,!0),[nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[]));$.post("/admin/blog/update",{url:utils.getBasePath(),id:this.blog.id,version:this.blog.version,usernames:utils.parseUsernames(r,a).join(","),title:i,content:r,diff:utils.diffS(this.blog.content,r)},function(i,r,a){i.success?(n.blog=i.data,toastr.success("博文更新成功!"),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:n.blog}),t?e&&e.ctrlKey&&e.shiftKey&&n.close():e&&e.ctrlKey&&n.close()):toastr.error(i.data,"博文更新失败!")}).always(function(){n.sending=!1,$("#blog-save-btn i").hide()})}else e.ctrlKey?$.post("/admin/blog/create",{url:utils.getBasePath(),usernames:utils.parseUsernames(r,[nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[])).join(","),title:i,content:r,spaceId:"",privated:!1,contentHtml:utils.md2html(r,!0)},function(e,t,i){e.success?(n.blog=e.data,toastr.success("博文保存成功!"),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"created",blog:n.blog}),$('a[href="#modaal-blog-write"]').modaal("close")):toastr.error(e.data,"博文保存失败!")}):ea.publish(nsCons.EVENT_BLOG_SAVE,{title:i,content:r})},e}(),m.NAME="blog-create",d=p,u=l(d.prototype,"members",[t.bindable],{enumerable:!0,initializer:null}),c=d))||c}),define("resources/elements/em-chat-attach",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatAttach=void 0;var i;e.EmChatAttach=(0,t.containerless)(i=function(){function e(){n(this,e),this.type="Image",this.search=""}return e.prototype.attached=function(){$(this.tabRef).find(".item").tab({onVisible:function(e){}})},e.prototype.moreHandler=function(){ -this._listByPage(!0)},e.prototype._listByPage=function(){var e=this,t=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],n=nsCtx.isAt?"/admin/file/listByUser":"/admin/file/listByChannel";this.ajax=$.get(n,{name:nsCtx.chatTo,type:this.type,page:this.page?t?this.page.number+1:this.page.number:0,size:10,search:this.search},function(n){e.page=n.data,e.moreCnt=e.page.last?0:e.page.totalElements-(e.page.number+1)*e.page.size,t?e.attachs=_.concat(e.attachs,n.data.content):e.attachs=n.data.content})},e.prototype.fetch=function(){this.page=null,this.moreCnt=0,this.attachs=null,$(window).width()>991&&$(this.searchRef).focus(),this._listByPage()},e.prototype.tabClickHandler=function(e){this.type=e,this.fetch()},e.prototype.searchHandler=function(){this.fetch()},e.prototype.keyupHandler=function(e){return 13==e.keyCode?this.fetch():27==e.keyCode&&(this.search="",this.fetch()),!0},e}())||i}),define("resources/elements/em-chat-channel-create",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelCreate=void 0;var a,o,s,l,c;e.EmChatChannelCreate=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"loginUser",s,this),n(this,"trigger",l,this),n(this,"name",c,this),this.activeTab="channel-create",this.nameRegex=/^[a-z][a-z0-9_\-]{0,49}$/}return e.prototype.nameChanged=function(e,t){this.oldName=t,e&&!this.nameRegex.test(e)&&(this.name=this._getOldName())},e.prototype._getOldName=function(){return this.nameRegex.test(this.oldName)||(this.oldName=""),this.oldName},e.prototype.triggerChanged=function(e,t){var n=this;$(this.trigger).click(function(){n.emModal.show({hideOnApprove:!1,autoDimmer:!0})})},e.prototype.showHandler=function(){this._reset()},e.prototype._reset=function(){this.name="",this.title="",this.desc="",$(this.chk).checkbox("set checked"),this.channelJoinVm.refresh()},e.prototype.attached=function(){var e=this;$(this.chk).checkbox(),$(this.tabRef).find(".item").tab({onVisible:function(t){e.activeTab=t}})},e.prototype.approveHandler=function(e){$.post("/admin/channel/create",{name:this.name,title:this.title,desc:this.desc,privated:$(this.chk).checkbox("is checked")},function(t){t.success?(e.hide(),toastr.success("创建频道成功!"),ea.publish(nsCons.EVENT_CHAT_CHANNEL_CREATED,{channel:t.data})):(e.hideDimmer(),toastr.error(t.data,"创建频道失败!"))})},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"trigger",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"name",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-channel-edit",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelEdit=void 0;var a,o,s;e.EmChatChannelEdit=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"channel",s,this)}return e.prototype.channelChanged=function(){if(this.channel){var e=this.channel.privated?"set checked":"set unchecked";$(this.chk).checkbox(e)}},e.prototype.show=function(){this.emModal.show({hideOnApprove:!1,autoDimmer:!0})},e.prototype.showHandler=function(){},e.prototype.attached=function(){$(this.chk).checkbox()},e.prototype.approveHandler=function(e){$.post("/admin/channel/update",{id:this.channel.id,title:this.channel.title,desc:this.channel.description,privated:$(this.chk).checkbox("is checked")},function(t){e.hide(),t.success?toastr.success("更新频道成功!"):toastr.error(t.data,"编辑频道失败!")})},e}(),s=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-channel-join",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelJoin=void 0;var a,o,s;e.EmChatChannelJoin=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"loginUser",s,this)}return e.prototype._getChannels=function(){var e=this;$.get("/admin/channel/list",function(t){t.success?(e.channels=t.data,_.each(e.channels,function(t){t.joined=_.some(t.members,function(t){return t.username==e.loginUser.username})})):toastr.error(t.data,"获取频道列表失败!")})},e.prototype.refresh=function(){this._getChannels()},e.prototype.joinHandler=function(e){this.confirmMd.show({content:'确定要加入频道'+e.title+"吗?",onapprove:function(){$.post("/admin/channel/join",{id:e.id},function(t){t.success?(toastr.success("加入频道成功!"),e.joined=!0,ea.publish(nsCons.EVENT_CHAT_CHANNEL_JOINED,{channel:t.data})):toastr.error(t.data,"加入频道失败!")})}})},e.prototype.leaveHandler=function(e){this.confirmMd.show({content:'确定要离开频道'+e.title+"吗?",onapprove:function(){$.post("/admin/channel/leave",{id:e.id},function(t){t.success?(toastr.success("离开频道成功!"),e.joined=!1,ea.publish(nsCons.EVENT_CHAT_CHANNEL_LEAVED,{channel:t.data})):toastr.error(t.data,"离开频道失败!")})}})},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-channel-link-mgr",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelLinkMgr=void 0;var a,o,s,l;e.EmChatChannelLinkMgr=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"channel",s,this),n(this,"loginUser",l,this),this.links=[]}return e.prototype.getChannelLinks=function(e,t){var n=this;this.channel&&$.get("/admin/link/listBy",{channelId:this.channel.id},function(e){e.success?n.links=e.data:n.links=[]})},e.prototype.addHandler=function(){var e=this;$.post("/admin/link/create",{title:this.title,href:this.href,channelId:this.channel.id},function(t,n,i){t.success?(e.title="",e.href="",e.links.push(t.data),ea.publish(nsCons.EVENT_CHANNEL_LINKS_REFRESH,{})):toastr.error(t.data)})},e.prototype.delHandler=function(e){var t=this;$.post("/admin/link/delete",{id:e.id},function(n,i,r){n.success?(t.links=_.reject(t.links,{id:e.id}),ea.publish(nsCons.EVENT_CHANNEL_LINKS_REFRESH,{}),toastr.success("删除成功!")):toastr.error(n.data)})},e.prototype.editHandler=function(e){e.oldTitle=e.title,e.oldHref=e.href,e.isEditing=!0},e.prototype.updateHandler=function(e){return e.oldTitle==e.title&&e.oldHref==e.href?void(e.isEditing=!1):void $.post("/admin/link/update",{id:e.id,title:e.title,href:e.href},function(t,n,i){t.success?(e.isEditing=!1,ea.publish(nsCons.EVENT_CHANNEL_LINKS_REFRESH,{}),toastr.success("更新成功!")):toastr.error(t.data)})},e.prototype.showHandler=function(){this.getChannelLinks()},e.prototype.show=function(){this.emModal.show({autoDimmer:!1})},e.prototype.approveHandler=function(e){},e}(),s=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-channel-members-mgr",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelMembersMgr=void 0;var a,o,s,l;e.EmChatChannelMembersMgr=(0,t.containerless)((o=function(){function e(){var t=this;i(this,e),n(this,"channel",s,this),n(this,"users",l,this),this.membersOpts={onAdd:function(e,n,i){t.emModal.showDimmer(),$.post("/admin/channel/addMember",{id:t.channel.id,members:e,baseUrl:utils.getBaseUrl(),path:wurl("path")},function(e,n,i){e.success?(toastr.success("添加成员成功!"),t.channel.members=e.data.members,ea.publish(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,{type:"add",members:e.data.members})):toastr.error(e.data,"添加成员失败!")}).always(function(){t.emModal.hideDimmer()})},onLabelRemove:function(e){return t.channel.owner.username!=e&&(t.emModal.showDimmer(),void $.post("/admin/channel/removeMember",{id:t.channel.id,members:e,baseUrl:utils.getBaseUrl(),path:wurl("path")},function(e,n,i){e.success?(toastr.success("移除成员成功!"),t.channel.members=e.data.members,ea.publish(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,{type:"remove",members:e.data.members})):toastr.error(e.data,"移除成员失败!")}).always(function(){t.emModal.hideDimmer()}))}}}return e.prototype.channelChanged=function(){var e=this;this.channel&&!function(){var t=_.sortBy(_.map(e.channel.members,"username"));_.defer(function(){$(e.membersRef).dropdown().dropdown("clear").dropdown("set selected",t).dropdown(e.membersOpts)})}()},e.prototype.attached=function(){},e.prototype.initMembersUI=function(e){var t=this;e&&_.defer(function(){t.channelChanged()})},e.prototype.showHandler=function(){$(this.membersRef).dropdown().dropdown("clear"),this.channelChanged()},e.prototype.approveHandler=function(e){},e.prototype.show=function(){this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e}(),s=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"users",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-channel-members-show",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelMembersShow=void 0;var a,o,s;e.EmChatChannelMembersShow=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"channel",s,this)}return e.prototype.showHandler=function(){},e.prototype.approveHandler=function(e){},e.prototype.show=function(){this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e}(),s=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-content-item-footbar",["exports","aurelia-framework","common/common-tags"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatContentItemFootbar=void 0;var s,l,c,d=i(n);e.EmChatContentItemFootbar=(0,t.containerless)((l=function(){function e(){a(this,e),r(this,"chat",c,this),this.emojis=[{label:"赞同",value:":+1:",type:"emoji"},{label:"反对",value:":-1:",type:"emoji"},{label:"知悉",value:":ok_hand:",type:"emoji"},{label:"关注",value:":eyes:",type:"emoji"},{label:"爱心",value:":heart:",type:"emoji"},{label:"开心",value:":laughing:",type:"emoji"},{label:"困惑",value:":confused:",type:"emoji"},{label:"悲伤",value:":cry:",type:"emoji"}],this.tags=d.default}return e.prototype.attached=function(){var e=this;$([this.addEmojiRef]).popup({inline:!0,hoverable:!0,delay:{show:500,hide:300}}),$([this.addTagRef]).popup({inline:!0,hoverable:!0,delay:{show:500,hide:300},onHide:function(){e.isCustomTag=!1,$(e.tagRef).val("")}})},e.prototype.toggleChatLabelHandler=function(e){var t=this;$.post("/admin/chat/"+(nsCtx.isAt?"direct":"channel")+"/label/toggle",{url:nsCtx.isAt?utils.getBasePath():utils.getUrl(),meta:"emoji"==e.type?$(emojify.replace(e.value)).attr("src"):e.value,type:"emoji"==e.type?"Emoji":"Tag",contentHtml:utils.md2html(this.chat.content,!0),name:e.value,desc:e.label,id:this.chat.id},function(e,n,i){if(e.success){var r=_.find(t.chat.chatLabels,{id:e.data.id});r?r.voters=e.data.voters:t.chat.chatLabels=[].concat(t.chat.chatLabels,[e.data]),bs.signal("sg-chatlabel-refresh")}else toastr.error(e.data)})},e.prototype.toggleCustomTagHandler=function(){var e=this;if(this.isCustomTag){var t=$(this.tagRef).val();t&&(this.toggleChatLabelHandler({label:t,value:t,type:"Tag"}),$(this.tagRef).val(""))}else _.defer(function(){return $(e.tagRef).focus()});this.isCustomTag=!this.isCustomTag},e.prototype.tagKeyupHandler=function(){this.toggleCustomTagHandler()},e}(),c=o(l.prototype,"chat",[t.bindable],{enumerable:!0,initializer:null}),s=l))||s}),define("resources/elements/em-chat-content-item",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatContentItem=void 0;var a,o,s,l,c,d,u,m,p;e.EmChatContentItem=(a=(0,t.bindable)({defaultBindingMode:t.bindingMode.twoWay}),(0,t.containerless)((s=function(){function e(){var t=this;i(this,e),n(this,"chats",l,this),n(this,"loginUser",c,this),n(this,"isAt",d,this),n(this,"channel",u,this),n(this,"markId",m,this),n(this,"chatTo",p,this),this.members=[],this.basePath=utils.getBasePath(),this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,function(e){t.members=[nsCtx.memberAll].concat(e.members)})}return e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype.attached=function(){var e=this;$(".tms-content-body").on("click",".markdown-body .at-user",function(e){e.preventDefault(),ea.publish(nsCons.EVENT_CHAT_MSG_INSERT,{content:"{~"+$(e.currentTarget).attr("data-value")+"} "})}),$(".tms-chat-direct").on("mouseenter",'.markdown-body a[href*="#/chat/"]:not(.pp-not)',function(t){t.preventDefault();var n=t.currentTarget;if(e.hoverMsgTimeoutRef){if(e.hoverMsgTarget===n)return;clearTimeout(e.hoverMsgTimeoutRef),e.hoverMsgTimeoutRef=null}e.hoverMsgTarget=n,e.hoverMsgTimeoutRef=setTimeout(function(){ea.publish(nsCons.EVENT_CHAT_MSG_POPUP_SHOW,{id:utils.urlQuery("id",$(n).attr("href")),target:n}),e.hoverMsgTimeoutRef=null},500)}),$(".tms-chat-direct").on("mouseleave",'.markdown-body a[href*="#/chat/"]:not(.pp-not)',function(t){t.preventDefault(),e.hoverMsgTimeoutRef&&e.hoverMsgTarget===t.currentTarget&&(clearTimeout(e.hoverMsgTimeoutRef),e.hoverMsgTimeoutRef=null)}),$(".tms-chat-direct").on("mouseenter",".tms-content-body .em-chat-content-item",function(e){e.preventDefault();var t=$(e.currentTarget);ea.publish(nsCons.EVENT_CHAT_MSG_WIKI_DIR,{dir:utils.dir(t.find("> .content > .markdown-body"))})}),$(".tms-chat-direct").on("click",".panel-wiki-dir .wiki-dir-item",function(e){e.preventDefault(),ea.publish(nsCons.EVENT_CHAT_CONTENT_SCROLL_TO,{target:$("#"+$(e.currentTarget).attr("data-id"))})}),$(".tms-chat-direct").on("mouseenter","span[data-value].at-user:not(.pp-not),a[data-value].author:not(.pp-not)",function(t){t.preventDefault();var n=t.currentTarget;if(e.hoverTimeoutRef){if(e.hoverUserTarget===n)return;clearTimeout(e.hoverTimeoutRef),e.hoverTimeoutRef=null}e.hoverUserTarget=n,e.hoverTimeoutRef=setTimeout(function(){ea.publish(nsCons.EVENT_CHAT_MEMBER_POPUP_SHOW,{channel:e.channel,username:$(n).attr("data-value"),target:n}),e.hoverTimeoutRef=null},500)}),$(".tms-chat-direct").on("mouseleave","span[data-value].at-user:not(.pp-not),a[data-value].author:not(.pp-not)",function(t){t.preventDefault(),e.hoverTimeoutRef&&e.hoverUserTarget===t.currentTarget&&(clearTimeout(e.hoverTimeoutRef),e.hoverTimeoutRef=null)}),this.initHotkeys()},e.prototype.channelChanged=function(){this.channel?this.members=[nsCtx.memberAll].concat(this.channel.members):this.members=[]},e.prototype.deleteHandler=function(e){var t=this;this.emConfirmModal.show({onapprove:function(){var n=void 0;n=t.isAt?"/admin/chat/direct/delete":"/admin/chat/channel/delete",$.post(n,{id:e.id},function(n,i,r){n.success?(t.chats=_.reject(t.chats,{id:e.id}),toastr.success("删除消息成功!")):toastr.error(n.data,"删除消息失败!")})}})},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","e",function(t){t.preventDefault();var n=_.findLast(e.chats,function(t){return t.creator.username==e.loginUser.username});n&&e.editHandler(n,$('.em-chat-content-item[data-id="'+n.id+'"]').find("> .content > textarea"))})},e.prototype.editHandler=function(e,t){$.get("/admin/chat/"+(this.isAt?"direct":"channel")+"/get",{id:e.id},function(n){n.success?(e.version!=n.data.version&&_.extend(e,n.data),e.isEditing=!0,e.contentOld=e.content,_.defer(function(){$(t).focus().select(),autosize.update(t)})):toastr.error(n.data)})},e.prototype.editOkHandler=function(e,t,n){this.editSave(t,n),t.isEditing=!1},e.prototype.editCancelHandler=function(e,t,n){t.content=t.contentOld,$(n).val(t.content),t.isEditing=!1},e.prototype.editSave=function(e,t){var n=this;this.sending=!0,e.content=$(t).val();var i=(utils.md2html(e.content,!0),utils.md2html(e.contentOld,!0),void 0),r=void 0;this.isAt?(i="/admin/chat/direct/update",r={baseUrl:utils.getBaseUrl(),path:wurl("path"),id:e.id,content:e.content,diff:utils.diffS(e.contentOld,e.content)}):(i="/admin/chat/channel/update",r={url:utils.getUrl(),id:e.id,version:e.version,usernames:utils.parseUsernames(e.content,this.members).join(","),content:e.content,diff:utils.diffS(e.contentOld,e.content)}),$.post(i,r,function(t,n,i){t.success?(toastr.success("更新消息成功!"),e.isEditing=!1,e.version=t.data.version):toastr.error(t.data,"更新消息失败!")}).always(function(){n.sending=!1})},e.prototype.eidtKeydownHandler=function(e,t,n){return!this.sending&&(e.ctrlKey&&13===e.keyCode?(this.editSave(t,n),!1):e.ctrlKey&&85===e.keyCode?($(n).next(".tms-edit-actions").find(".upload").click(),!1):(27===e.keyCode&&this.editCancelHandler(e,t,n),!0))},e.prototype.notifyRendered=function(e,t){e&&_.defer(function(){ea.publish(nsCons.EVENT_CHAT_LAST_ITEM_RENDERED,{item:t})})},e.prototype.stowHandler=function(e){return e.isStow?void this.unStowHandler(e):void $.post("/admin/chat/channel/stow",{id:e.id},function(t,n,i){e.isStow=!0,t.success?(e.stowId=t.data.id,toastr.success("收藏消息成功!")):e.stowId=t.msgs&&t.msgs.length>0?t.msgs[0].id:""})},e.prototype.unStowHandler=function(e){e.stowId&&$.post("/admin/chat/channel/removeStow",{id:e.stowId},function(t,n,i){e.isStow=!1,e.stowId="",t.success&&toastr.success("移除收藏消息成功!")})},e.prototype.openEditHandler=function(e){$.post("/admin/chat/channel/openEdit",{id:e.id,open:!e.openEdit},function(t,n,i){t.success?(e.openEdit=!e.openEdit,toastr.success((e.openEdit?"开启":"关闭")+"协作编辑成功!")):toastr.success((e.openEdit?"关闭":"开启")+"协作编辑失败!")})},e.prototype.replyHandler=function(e){ea.publish(nsCons.EVENT_CHAT_MSG_INSERT,{content:"[[回复#"+e.id+"]("+utils.getUrl()+"?id="+e.id+"){~"+e.creator.username+"}]\n\n"}),$.post("/admin/chat/channel/markAsReadedByChat",{chatId:e.id})},e.prototype.creatorNameHandler=function(e){ea.publish(nsCons.EVENT_CHAT_MSG_INSERT,{content:"{~"+e.creator.username+"} "})},e.prototype.refreshHandler=function(e){$.get("/admin/chat/channel/get",{id:e.id},function(t){e.version!=t.data.version?(_.extend(e,t.data),toastr.success("刷新同步成功!")):(e.chatReplies=t.data.chatReplies,toastr.info("消息内容暂无变更!"))})},e.prototype.likeHandler=function(e,t){t&&e.isZanVoted||!t&&e.isCaiVoted||$.post("/admin/chat/channel/vote",{id:e.id,url:utils.getUrl(),contentHtml:utils.md2html(e.content,!0),type:t?"Zan":"Cai"},function(n,i,r){n.success?(_.extend(e,n.data),t?e.isZanVoted=!0:e.isCaiVoted=!0):toastr.error(n.data)})},e.prototype.pinHandler=function(e){var t={id:e.id,cid:this.channel.id};_.isUndefined(e.isPin)&&(t.pin=!0),$.post("/admin/chat/channel/pin/toggle",t,function(t,n,i){t.success?(toastr.success(""+(200==t.code?"固定频道消息成功!":"解除固定频道消息成功!")),e.isPin=200==t.code):toastr.error(t.data)})},e.prototype.talkHandler=function(e,t){ea.publish(nsCons.EVENT_CHAT_TOPIC_SHOW,{chat:e})},e}(),l=r(s.prototype,"chats",[a],{enumerable:!0,initializer:null}),c=r(s.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),d=r(s.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),u=r(s.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),m=r(s.prototype,"markId",[t.bindable],{enumerable:!0,initializer:null}),p=r(s.prototype,"chatTo",[t.bindable],{enumerable:!0,initializer:null}),o=s))||o)}),define("resources/elements/em-chat-input",["exports","aurelia-framework","common/common-tips","common/common-emoji","simplemde","textcomplete"],function(e,t,n,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatInput=void 0;var c,d,u,m,p,g=a(n),h=a(i),b=a(r);e.EmChatInput=(0,t.containerless)((d=function(){function e(){var t=this;s(this,e),o(this,"chatTo",u,this),o(this,"isAt",m,this),o(this,"channel",p,this),this.members=[],this.isMobile=utils.isMobile(),this.subscribe=ea.subscribe(nsCons.EVENT_SHOW_HOTKEYS_MODAL,function(e){t.emHotkeysModal.show()}),this.subscribe1=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,function(e){t.members=[nsCtx.memberAll].concat(e.members)}),this.subscribe2=ea.subscribe(nsCons.EVENT_CHAT_MSG_INSERT,function(e){t.insertContent(e.content)})}return e.prototype.channelChanged=function(){this.channel?this.members=[nsCtx.memberAll].concat(this.channel.members):this.members=[]},e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe1.dispose(),this.subscribe2.dispose()},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","r",function(){event.preventDefault(),e.simplemde.codemirror.focus()})},e.prototype.attached=function(){this.initSimpleMDE(this.chatInputRef),this.initDropzone(),this.initPaste(),this.initHotkeys()},e.prototype.initPaste=function(){var e=this,t=void 0;t=this.$chatMsgInputRef.is("textarea")?$(this.$chatMsgInputRef).pastableTextarea():$(this.$chatMsgInputRef).pastableContenteditable(),t&&t.on("pasteImage",function(t,n){$.post("/admin/file/base64",{dataURL:n.dataURL,type:n.blob.type,toType:nsCtx.isAt?"User":"Channel",toId:nsCtx.chatTo},function(t,n,i){t.success&&e.insertContent("![{name}]({baseURL}{path}{uuidName})".replace(/\{name\}/g,t.data.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.data.path).replace(/\{uuidName\}/g,t.data.uuidName))})}).on("pasteImageError",function(e,t){toastr.error(t.message,"剪贴板粘贴图片错误!")})},e.prototype.initDropzone=function(){var e=this;this.initUploadDropzone($(".CodeMirror-wrap",this.inputRef),function(){return e.$chatMsgInputRef},!1),this.initUploadDropzone($(this.btnItemUploadRef).children().andSelf(),function(){return e.$chatMsgInputRef},!0),$(this.chatBtnRef).popup({inline:!0,hoverable:!0,position:"bottom left",delay:{show:300,hide:300}})},e.prototype.initUploadDropzone=function(e,t,n){var i=this;$(e).dropzone({url:"/admin/file/upload",paramName:"file",clickable:!!n,dictDefaultMessage:"",maxFilesize:10,addRemoveLinks:!0,previewsContainer:this.chatStatusBarRef,previewTemplate:this.previewTemplateRef.innerHTML,dictCancelUpload:"取消上传",dictCancelUploadConfirmation:"确定要取消上传吗?",dictFileTooBig:"文件过大({{filesize}}M),最大限制:{{maxFilesize}}M",init:function(){this.on("sending",function(e,n,i){t()?(i.append("toType",nsCtx.isAt?"User":"Channel"),i.append("toId",nsCtx.chatTo)):this.removeAllFiles(!0)}),this.on("success",function(e,t){t.success?($.each(t.data,function(e,t){"Image"==t.type?i.insertContent("![{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.path).replace(/\{uuidName\}/g,t.uuidName)):i.insertContent("[{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,"admin/file/download/").replace(/\{uuidName\}/g,t.id))}),toastr.success("上传成功!")):toastr.error(t.data,"上传失败!")}),this.on("error",function(e,t,n){toastr.error(t,"上传失败!")}),this.on("complete",function(e){this.removeFile(e)})}})},e.prototype.initSimpleMDE=function(e){var t=this;this.simplemde=new b.default({element:e,spellChecker:!1,status:!1,autofocus:!0,toolbar:!1,autoDownloadFontAwesome:!1,insertTexts:{table:["","\n\n| 列1 | 列2 | 列3 |\n| ------ | ------ | ------ |\n| 文本 | 文本 | 文本 |\n\n"]},previewRender:function(e,n){return t.simplemde.markdown(utils.preParse(e))}}),this.$chatMsgInputRef=$(this.inputRef).find(".textareaWrapper .CodeMirror textarea"),0===this.$chatMsgInputRef.size()&&(this.$chatMsgInputRef=$(this.inputRef).find('.textareaWrapper .CodeMirror [contenteditable="true"]')),this.initTextcomplete()},e.prototype.initTextcomplete=function(){var e=this;$(this.$chatMsgInputRef).textcomplete([{match:/(|\b)(\/.*)$/,search:function(e,t){var n=_.keys(g.default);t($.map(n,function(t){return 0===t.indexOf(e)?t:null}))},template:function(e,t){return g.default[e].label},replace:function(t){return e.tipsActionHandler(t)?(e.setCaretPosition(g.default[t].line,g.default[t].ch),"$1"+g.default[t].value):""}},{match:/(^|\s)@(\w*)$/,search:function(t,n){n($.map(e.members,function(e){return e.enabled&&e.username.indexOf(t)>=0?e.username:null}))},template:function(t,n){var i=_.find(e.members,{username:t});return i.name+" - "+i.mails+" ("+i.username+")"},replace:function(e){return"$1{~"+e+"}"}},{match:/(^|\s):([\+\-\w]*)$/,search:function(e,t){t($.map(h.default,function(t){return _.some(t.split("_"),function(t){return 0===t.indexOf(e)})?t:null}))},template:function(e,t){if("search"==e)return"表情查找 - :search";var n=":"+e+":";return emojify.replace(n)+" - "+n},replace:function(t){return e.tipsActionHandler(t)?"$1:"+t+": ":""}}],{appendTo:".tms-chat-status-bar",maxCount:nsCons.NUM_TEXT_COMPLETE_MAX_COUNT}),this.simplemde.codemirror.on("keydown",function(t,n){_.includes([13,38,40],n.keyCode)&&e.isTipsShow()?n.preventDefault():n.ctrlKey&&13===n.keyCode?e.sendChatMsg():27===n.keyCode?e.simplemde.value(""):n.ctrlKey&&85==n.keyCode?$(e.btnItemUploadRef).find(".content").click():n.ctrlKey&&191==n.keyCode&&e.emHotkeysModal.show()})},e.prototype.setCaretPosition=function(e,t){var n=this;(e||t)&&_.delay(function(){var i=n.simplemde.codemirror.getCursor();n.simplemde.codemirror.setCursor({line:i.line-(e?e:0),ch:i.line?t?t:0:i.ch-(t?t:0)})},100)},e.prototype.sendChatMsg=function(){var e=this,t=this.simplemde.value();if(!$.trim(t))return void this.simplemde.value("");if(!this.sending){this.sending=!0;var n=utils.md2html(t,!0),i=void 0,r=void 0;if(this.isAt)i="/admin/chat/direct/create",r={baseUrl:utils.getBaseUrl(),path:wurl("path"),chatTo:this.chatTo,content:t,contentHtml:n};else{i="/admin/chat/channel/create";var a=utils.parseUsernames(t,this.members).join(",");r={url:utils.getUrl(),channelId:this.channel.id,usernames:a,content:t,contentHtml:n}}$.post(i,r,function(t,n,i){t.success?(e.simplemde.value(""),ea.publish(nsCons.EVENT_CHAT_MSG_SENDED,{data:t})):toastr.error(t.data,"发送消息失败!")}).always(function(){e.sending=!1})}},e.prototype.sendChatMsgHandler=function(){this.sendChatMsg()},e.prototype.isTipsShow=function(){return 1===$(this.chatStatusBarRef).find(".textcomplete-dropdown:visible").size()},e.prototype.insertContent=function(e,t){try{var n=t?t.codemirror:this.simplemde.codemirror,i=n.getCursor();i&&(n.replaceRange(e,i,i), -n.focus())}catch(e){console.log(e)}},e.prototype.tipsActionHandler=function(e){if("/upload"==e)$(this.btnItemUploadRef).find(".content").click();else if("/shortcuts"==e)this.emHotkeysModal.show();else{if("search"!=e)return!0;_.delay(function(){utils.openNewWin(nsCons.STR_EMOJI_SEARCH_URL)},200)}return!1},e.prototype.togglePreviewHandler=function(){this.simplemde.togglePreview()},e}(),u=l(d.prototype,"chatTo",[t.bindable],{enumerable:!0,initializer:null}),m=l(d.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),p=l(d.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),c=d))||c}),define("resources/elements/em-chat-member-popup",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatMemberPopup=void 0;var i;e.EmChatMemberPopup=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.members=[],this.member={},this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_MEMBER_POPUP_SHOW,function(e){if(t.channel=e.channel,t.username=e.username,t.target=e.target,"all"==t.username){if(!t.channel)return;t.members=t.channel.members}else{if(!t.username)return;t.member=utils.getUser(t.username);var n=utils.getUser(t.member.creator);t.member.creatorName=n&&n.name?n.name:t.member.creator}_.defer(function(){$(t.target).popup("is hidden")&&$(t.target).popup({popup:t.popup,hoverable:!0,inline:!1,silent:!0,movePopup:!1,position:"bottom left",jitter:300,prefer:"opposite",delay:{show:300,hide:300}}).popup("show")})})}return e.prototype.unbind=function(){this.subscribe.dispose()},e}())||i}),define("resources/elements/em-chat-msg-popup",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatMsgPopup=void 0;var i;e.EmChatMsgPopup=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_MSG_POPUP_SHOW,function(e){t.id=e.id,t.target=e.target,t.id&&$(t.target).popup("is hidden")&&$(t.target).popup({popup:t.popup,hoverable:!0,inline:!1,movePopup:!1,silent:!0,position:"bottom left",jitter:300,prefer:"opposite",delay:{show:300,hide:300},onShow:function(){$.get("/admin/chat/channel/get",{id:t.id},function(e){e.success?t.chatMsg=e.data:toastr.error(e.data,"加载失败!")})}}).popup("show")})}return e.prototype.unbind=function(){this.subscribe.dispose()},e}())||i}),define("resources/elements/em-chat-msg",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatMsg=void 0;var a,o,s,l,c,d,u;e.EmChatMsg=(0,t.containerless)((o=function(){function e(){i(this,e),this.last=!0,n(this,"loginUser",s,this),n(this,"isAt",l,this),n(this,"channel",c,this),n(this,"chats",d,this),n(this,"actived",u,this),this.basePath=utils.getBasePath()}return e.prototype.attached=function(){this.initHotkeys()},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","o",function(t){t.preventDefault();var n=_.find(e.chats,{isHover:!0});n&&(n.isOpen=!n.isOpen)})},e.prototype.activedChanged=function(){if(this.actived){var e=this.actived.payload,t=e.result;this.actived.payload.action==nsCons.ACTION_TYPE_AT?(this.page=t,this.chats=_.map(t.content,function(e){if(e.chatReply){var t=e.chatReply;return t.chatAt=e,t}var n=e.chatChannel;return n.chatAt=e,n}),this.last=t.last,this.moreCnt=t.totalElements-(t.number+1)*t.size):this.actived.payload.action==nsCons.ACTION_TYPE_STOW?(this.chats=e.result,this.last=!0):this.actived.payload.action==nsCons.ACTION_TYPE_PIN?(this.chats=e.result,this.last=!0):this.actived.payload.action==nsCons.ACTION_TYPE_SEARCH&&(this.search=e.search,this.page=t,this.chats=t.content,this.last=t.last,this.moreCnt=t.totalElements-(t.number+1)*t.size)}},e.prototype.searchItemMouseleaveHandler=function(e){e.isOpen=!1,e.isHover=!1},e.prototype.searchItemMouseenterHandler=function(e){e.isHover=!0},e.prototype.gotoChatHandler=function(e){ea.publish(nsCons.EVENT_CHAT_SEARCH_GOTO_CHAT_ITEM,{chatItem:e})},e.prototype.openSearchItemHandler=function(e){e.isOpen=!e.isOpen},e.prototype.searchMoreHandler=function(){var e=this;this.actived.payload.action==nsCons.ACTION_TYPE_SEARCH?this.searchMoreP=$.get("/admin/chat/direct/search",{search:this.search,size:this.page.size,page:this.page.number+1},function(t){t.success&&(e.chats=_.concat(e.chats,t.data.content),e.page=t.data,e.last=t.data.last,e.moreCnt=t.data.totalElements-(t.data.number+1)*t.data.size)}):this.searchMoreP=$.get("/admin/chat/channel/getAts",{size:this.page.size,page:this.page.number+1},function(t){t.success&&(e.chats=_.concat(e.chats,_.map(t.data.content,function(e){var t=e.chatChannel;return t.chatAt=e,t})),e.page=t.data,e.last=t.data.last,e.moreCnt=t.data.totalElements-(t.data.number+1)*t.data.size)})},e.prototype.removePinHandler=function(e){var t=this;$.post("/admin/chat/channel/pin/toggle",{id:e.id,cid:this.channel.id},function(n,i,r){n.success?(t.chats=_.reject(t.chats,{id:e.id}),toastr.success("移除固定消息成功!")):toastr.error(n.data,"移除固定消息失败!")})},e.prototype.removeStowHandler=function(e){var t=this;$.post("/admin/chat/channel/removeStow",{id:e.chatStow.id},function(n,i,r){n.success?(t.chats=_.reject(t.chats,{id:e.id}),toastr.success("移除收藏消息成功!")):toastr.error(n.data,"移除收藏消息失败!")})},e.prototype.removeAtHandler=function(e){var t=this;$.post("/admin/chat/channel/markAsReaded",{chatAtId:e.chatAt.id},function(n,i,r){n.success?t.chats=_.reject(t.chats,{id:e.id}):toastr.error(n.data,"移除@消息失败!")})},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),d=r(o.prototype,"chats",[t.bindable],{enumerable:!0,initializer:null}),u=r(o.prototype,"actived",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-schedule-edit",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatScheduleEdit=void 0;var a,o,s;e.EmChatScheduleEdit=(0,t.containerless)((o=function(){function e(){var t=this;i(this,e),n(this,"loginUser",s,this),this.actorsOpts={onAdd:function(e,n,i){$.post("/admin/schedule/addActors",{id:t.event.id,basePath:utils.getBasePath(),actors:e},function(e,t,n){e.success?(toastr.success("添加参与者成功!"),ea.publish(nsCons.EVENT_SCHEDULE_REFRESH,{})):toastr.error(e.data)})},onLabelRemove:function(e){return t.loginUser.username!=e&&void $.post("/admin/schedule/removeActors",{id:t.event.id,basePath:utils.getBasePath(),actors:e},function(e,t,n){e.success?(toastr.success("移除参与者成功!"),ea.publish(nsCons.EVENT_SCHEDULE_REFRESH,{})):toastr.error(e.data)})}}}return e.prototype.attached=function(){$(this.startRef).calendar({today:!0,endCalendar:$(this.endRef)}),$(this.endRef).calendar({today:!0,startCalendar:$(this.startRef)})},e.prototype.initMembersUI=function(e){var t=this;e&&_.defer(function(){var e=[t.loginUser.username];t.event&&(e=_.map(t.event.actors,"username")),$(t.actorsRef).dropdown().dropdown("clear").dropdown("set selected",e).dropdown(t.actorsOpts)})},e.prototype.titleKeyupHandler=function(e){e.ctrlKey&&13===e.keyCode&&this.updateHandler()},e.prototype.clearStartDateHandler=function(){$(this.startRef).calendar("clear")},e.prototype.clearEndDateHandler=function(){$(this.endRef).calendar("clear")},e.prototype.show=function(e){this.event=_.clone(e),this.showHandler(),$(this.scheduleEditRef).popup({on:"click",inline:!0,silent:!0,position:"bottom center",jitter:300,prefer:"opposite",delay:{show:300,hide:300}}).popup("show")},e.prototype.showHandler=function(){var e=this;this.users=window.tmsUsers,$(this.actorsRef).dropdown().dropdown("clear"),_.defer(function(){e.event.start?$(e.startRef).calendar("set date",e.event.start.toDate()):$(e.startRef).calendar("clear"),e.event.end?$(e.endRef).calendar("set date",e.event.end.toDate()):$(e.endRef).calendar("clear");var t=_.map(e.event.actors,"username");$(e.actorsRef).dropdown("set selected",t).dropdown(e.actorsOpts),e.event.creator.username==e.loginUser.username&&$(e.titleRef).focus(),autosize.update(e.titleRef)})},e.prototype.updateHandler=function(){var e=this;if(!this.event.title)return void toastr.error("日程内容不能为空!");var t={id:this.event.id,basePath:utils.getBasePath(),title:this.event.title},n=$(this.startRef).calendar("get date"),i=$(this.endRef).calendar("get date");n?t.startDate=n:t.startDate=new Date,i&&(t.endDate=i),$.post("/admin/schedule/update2",t,function(t,n,i){t.success?(toastr.success("更新日程成功!"),$(e.scheduleEditRef).popup("hide"),ea.publish(nsCons.EVENT_SCHEDULE_REFRESH,{})):toastr.error(t.data)})},e.prototype.delHandler=function(){var e=this;this.emConfirmModal.show({onapprove:function(){$.post("/admin/schedule/delete",{id:e.event.id,basePath:utils.getBasePath()},function(e,t,n){e.success?(toastr.success("日程删除成功!"),ea.publish(nsCons.EVENT_SCHEDULE_REFRESH,{})):toastr.error(e.data)})}})},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-schedule-remind",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatScheduleRemind=void 0;var a,o,s;e.EmChatScheduleRemind=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"events",s,this),this.interval=5e3,this.headOffset=6e5,this.reminded=[],this._pollCheck()}return e.prototype.unbind=function(){this.timer&&clearInterval(this.timer)},e.prototype._pollCheck=function(){var e=this;this.timer=setInterval(function(){if(e.events){var t=(new Date).getTime();_.each(e.events,function(n){if(n.start&&!_.includes(e.reminded,n.id)){var i=n.start;i>t&&i '+i.name+" ("+i.username+")"})}),$.each(t.data.channels,function(t,i){_.find(_.filter(e.shares,function(e){return"channel"==e._type}),{name:i.name})||n.results.push({item:i,title:' '+i.title+" ("+i.name+")"})}),n},url:"/admin/blog/share/to/search?search={query}"}}),$(this.shareRef).popup({on:"click",inline:!0,silent:!0,position:"bottom right",jitter:300,delay:{show:300,hide:300},onVisible:function(){$(e.inputSearchRef).focus()}})},e.prototype.shareSearchKeyupHandler=function(e){if(13===e.keyCode&&!$(this.searchRef).search("is visible")){var t=$(this.inputSearchRef).val();utils.isMail(t)&&(_.find(_.filter(this.shares,function(e){return"mail"==e._type}),{mail:t})||(this.shares.push({_id:_.uniqueId("share-item-"),_type:"mail",mail:t}),$(this.inputSearchRef).val("")))}},e.prototype.show=function(){$(this.shareRef).popup("show")},e.prototype.removeShareHandler=function(e){this.shares=_.reject(this.shares,{_id:e._id})},e.prototype.cancelHandler=function(){this._reset()},e.prototype._reset=function(){this.shares=[],this.desc="",$(this.inputSearchRef).val(""),$(this.shareRef).popup("hide")},e.prototype.shareHandler=function(){var e=this;return 0===this.shares.length?void toastr.error("请先指定沟通消息分享用户或者频道或者邮箱!"):void(this.ajaxS=$.post("/admin/chat/"+(this.isAt?"direct":"channel")+"/share",{basePath:utils.getBasePath(),href:this.basePath+"#/chat/"+(this.isAt?"@"+this.loginUser.username:this.channel.name)+"?id="+this.chat.id,id:this.chat.id,desc:this.desc,html:utils.md2html(this.chat.content,!0),users:_.chain(this.shares).filter(function(e){return"user"==e._type}).map("username").join().value(),channels:_.chain(this.shares).filter(function(e){return"channel"==e._type}).map("name").join().value(),mails:_.chain(this.shares).filter(function(e){return"mail"==e._type}).map("mail").join().value()},function(t,n,i){t.success?(e._reset(),toastr.success("沟通消息分享成功!")):toastr.error(t.data,"沟通消息分享失败!")}))},e}(),s=r(o.prototype,"chat",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),d=r(o.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-sidebar-left",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatSidebarLeft=void 0;var a,o,s,l,c,d,u;e.EmChatSidebarLeft=(0,t.containerless)((o=function(){function e(){var t=this;i(this,e),n(this,"users",s,this),n(this,"loginUser",l,this),n(this,"channels",c,this),n(this,"chatTo",d,this),n(this,"isAt",u,this),this.filter="",this.isSuper=nsCtx.isSuper,this.isMobile=utils.isMobile(),this.isLeftBarHide=!0,this.subscribe=ea.subscribe(nsCons.EVENT_CHANNEL_ACTIONS,function(e){t[e.action](e.item)}),this.subscribe2=ea.subscribe(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,function(e){e?t.isLeftBarHide=e:t.isLeftBarHide=!t.isLeftBarHide})}return e.prototype.usersChanged=function(){this._filter()},e.prototype.channelsChanged=function(){this._filter()},e.prototype.loginUserChanged=function(){this.loginUser&&(this.isSuper=utils.isSuperUser(this.loginUser))},e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe2.dispose()},e.prototype.attached=function(){var e=this;$(this.logoRef).on("mouseenter",function(t){$(e.logoRef).animateCss("flip")})},e.prototype._filter=function(){var e=this;_.each(this.users,function(t){t.hidden=t.username.indexOf(e.filter)==-1}),_.each(this.channels,function(t){t.hidden=t.name.indexOf(e.filter)==-1})},e.prototype.chatToUserFilerKeyupHanlder=function(e){if(this._filter(),13===e.keyCode){var t=_.find(this.users,{hidden:!1});if(t)return void(window.location=wurl("path")+("#/chat/@"+t.username));var n=_.find(this.channels,{hidden:!1});if(n)return void(window.location=wurl("path")+("#/chat/"+n.name))}},e.prototype.clearFilterHandler=function(){var e=this;this.filter="",_.each(this.users,function(t){t.hidden=t.username.indexOf(e.filter)==-1}),_.each(this.channels,function(t){t.hidden=t.name.indexOf(e.filter)==-1})},e.prototype.editHandler=function(e){this.selectedChannel=e,this.channelEditMd.show()},e.prototype.delHandler=function(e){var t=this;this.confirmMd.show({onapprove:function(){$.post("/admin/channel/delete",{id:e.id},function(n){n.success?(toastr.success("删除频道成功!"),_.remove(t.channels,{id:e.id}),ea.publish(nsCons.EVENT_CHAT_CHANNEL_DELETED,{channel:e})):toastr.error(n.data,"删除频道失败!")})}})},e.prototype.membersMgrHandler=function(e){this.selectedChannel=e,this.channelMembersMgrMd.show()},e.prototype.membersShowHandler=function(e){this.selectedChannel=e,this.channelMembersShowMd.show()},e.prototype.leaveHandler=function(e){this.confirmMd.show({content:'确定要离开频道'+e.title+"吗?",onapprove:function(){$.post("/admin/channel/leave",{id:e.id},function(e){e.success?(toastr.success("离开频道成功!"),ea.publish(nsCons.EVENT_CHAT_CHANNEL_LEAVED,{channel:e.data})):toastr.error(e.data,"离开频道失败!")})}})},e.prototype.switchHandler=function(){ea.publish(nsCons.EVENT_SWITCH_CHAT_TO,{})},e.prototype.isSubscribed=function(e){return _.some(e.subscriber,{username:this.loginUser.username})},e.prototype.subscribeHandler=function(e){var t=this.isSubscribed(e);$.post("/admin/channel/"+(t?"unsubscribe":"subscribe"),{id:e.id},function(n){n.success?(e.subscriber=n.data.subscriber,toastr.success((t?"取消订阅":"订阅频道")+"成功!"),e.isSubscribed=!t):toastr.error(n.data,(t?"取消订阅":"订阅频道")+"失败!")})},e.prototype.channelHandler=function(){return ea.publish(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,!0),!0},e.prototype.userHandler=function(){return ea.publish(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,!0),!0},e}(),s=r(o.prototype,"users",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"channels",[t.bindable],{enumerable:!0,initializer:null}),d=r(o.prototype,"chatTo",[t.bindable],{enumerable:!0,initializer:null}),u=r(o.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-sidebar-right",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatSidebarRight=void 0;var a,o,s,l,c;e.EmChatSidebarRight=(0,t.containerless)((o=function(){function e(){var t,r=this;i(this,e),n(this,"loginUser",s,this),n(this,"isAt",l,this),n(this,"channel",c,this),this.actionMapping=(t={},t[nsCons.ACTION_TYPE_DIR]={handler:this.dirHandler,nodata:"",show:"dir"},t[nsCons.ACTION_TYPE_AT]={nodata:"暂无@消息",show:"msg"},t[nsCons.ACTION_TYPE_STOW]={nodata:"暂无收藏消息",show:"msg"},t[nsCons.ACTION_TYPE_ATTACH]={handler:this.attachHandler,nodata:"",show:"attach"},t[nsCons.ACTION_TYPE_SCHEDULE]={handler:this.scheduleHandler,nodata:"",show:"schedule"},t[nsCons.ACTION_TYPE_SEARCH]={nodata:"无符合检索结果",show:"msg"},t[nsCons.ACTION_TYPE_PIN]={nodata:"暂无频道固定消息",show:"msg"},t[nsCons.ACTION_TYPE_TOPIC]={nodata:"",show:"topic"},t),this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,function(e){r.actived=_.clone(r.actionMapping[e.action]),r.actived.payload=e,r.actived.handler&&_.bind(r.actived.handler,r,e)()}),this.subscribe1=ea.subscribe(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_SCROLL_TO,function(e){$('.em-chat-sidebar-right div[ref="scrollbarRef"]').scrollTo(e,120)})}return e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe1.dispose()},e.prototype.attachHandler=function(e){this.chatAttachVm.fetch()},e.prototype.dirHandler=function(e){$(this.dirRef).empty().append(e.result)},e.prototype.scheduleHandler=function(e){this.chatScheduleVm.show()},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-system-link-mgr",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatSystemLinkMgr=void 0;var i;e.EmChatSystemLinkMgr=(0,t.containerless)(i=function(){function e(){n(this,e),this.links=[]}return e.prototype.addHandler=function(){var e=this;$.post("/admin/link/create",{title:this.title,href:this.href,type:"App"},function(t,n,i){t.success?(e.title="",e.href="",e.links.push(t.data),ea.publish(nsCons.EVENT_SYSTEM_LINKS_REFRESH,{})):toastr.error(t.data)})},e.prototype.delHandler=function(e){var t=this;$.post("/admin/link/delete",{id:e.id},function(n,i,r){n.success?(t.links=_.reject(t.links,{id:e.id}),ea.publish(nsCons.EVENT_SYSTEM_LINKS_REFRESH,{}),toastr.success("删除成功!")):toastr.error(n.data)})},e.prototype.editHandler=function(e){e.oldTitle=e.title,e.oldHref=e.href,e.isEditing=!0},e.prototype.updateHandler=function(e){$.post("/admin/link/update",{id:e.id,title:e.title,href:e.href},function(t,n,i){t.success?(e.isEditing=!1,ea.publish(nsCons.EVENT_SYSTEM_LINKS_REFRESH,{}),toastr.success("更新成功!")):toastr.error(t.data)})},e.prototype.showHandler=function(){var e=this;$.get("/admin/link/listByApp",function(t){t.success?e.links=t.data:e.links=[]})},e.prototype.show=function(){this.emModal.show({autoDimmer:!1})},e.prototype.approveHandler=function(e){},e}())||i}),define("resources/elements/em-chat-top-menu",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){ -return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatTopMenu=void 0;var a,o,s,l,c,d,u,m,p,g,h;e.EmChatTopMenu=(0,t.containerless)((o=function(){function e(){var t=this;i(this,e),n(this,"loginUser",s,this),n(this,"chatUser",l,this),n(this,"users",c,this),n(this,"channels",d,this),n(this,"channel",u,this),n(this,"loginUser",m,this),n(this,"chatId",p,this),n(this,"chatTo",g,this),n(this,"isAt",h,this),this.isRightSidebarShow=!1,this.activeType="",this.ACTION_TYPE_SEARCH=nsCons.ACTION_TYPE_SEARCH,this.ACTION_TYPE_STOW=nsCons.ACTION_TYPE_STOW,this.ACTION_TYPE_PIN=nsCons.ACTION_TYPE_PIN,this.ACTION_TYPE_AT=nsCons.ACTION_TYPE_AT,this.ACTION_TYPE_DIR=nsCons.ACTION_TYPE_DIR,this.ACTION_TYPE_ATTACH=nsCons.ACTION_TYPE_ATTACH,this.ACTION_TYPE_SCHEDULE=nsCons.ACTION_TYPE_SCHEDULE,this.countAt=null,this.newAtCnt=0,this.channelLinks=[],this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_MSG_WIKI_DIR,function(e){t.dir=e.dir,t.activeType==t.ACTION_TYPE_DIR&&t.isRightSidebarShow&&ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:t.activeType,result:t.dir})}),this.subscribe1=ea.subscribe(nsCons.EVENT_CHAT_POLL_UPDATE,function(e){null!==t.countAt&&t.newAtCnt<=0&&(t.newAtCnt=e.countAt-t.countAt),t.countAt=e.countAt,t.countMyRecentSchedule=e.countMyRecentSchedule}),this.subscribe2=ea.subscribe(nsCons.EVENT_SWITCH_CHAT_TO,function(e){$(t.chatToDropdownRef).dropdown("toggle")}),this.subscribe3=ea.subscribe(nsCons.EVENT_CHANNEL_LINKS_REFRESH,function(e){t._refreshChannelLinks()}),this.subscribe4=ea.subscribe(nsCons.EVENT_CHAT_TOPIC_SHOW,function(e){t.showTopicHandler(e)})}return e.prototype.loginUserChanged=function(){this.loginUser&&(this.isSuper=utils.isSuperUser(this.loginUser))},e.prototype.chatToChanged=function(){$(this.chatToDropdownRef).dropdown("set selected",this.chatId).dropdown("hide")},e.prototype.channelChanged=function(){this._refreshChannelLinks()},e.prototype._refreshChannelLinks=function(){var e=this;this.channel&&$.get("/admin/link/listBy",{channelId:this.channel.id},function(t){t.success?e.channelLinks=t.data:e.channelLinks=[]})},e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe1.dispose(),this.subscribe2.dispose(),this.subscribe3.dispose(),this.subscribe4.dispose()},e.prototype.attached=function(){this.initHotkeys(),this.initSearch()},e.prototype.initSearch=function(){var e=this,t=[];if(localStorage){var n=localStorage.getItem("tms/chat-direct:search");t=n?$.parseJSON(n):[]}this.searchSource=t,$(this.searchRef).search({source:t,onSelect:function(t,n){e.searchHandler()},onResults:function(){$(e.searchRef).search("hide results")}})},e.prototype.searchHandler=function(){var e=this;$(this.searchRef).search("hide results");var t=$(this.searchInputRef).val();if(!t||t.length<2)return void toastr.error("检索条件至少需要两个字符!");this.search=t;var n=!1;$.each(this.searchSource,function(e,i){if(i.title==t)return n=!0,!1}),n||(this.searchSource.splice(0,0,{title:t}),$(this.searchRef).search({source:_.clone(this.searchSource)})),localStorage&&localStorage.setItem("tms/chat-direct:search",JSON.stringify(this.searchSource));var i=void 0,r=void 0;this.isAt?(i="/admin/chat/direct/search",r={search:this.search,size:20,page:0}):(i="/admin/chat/channel/search",r={search:this.search,channelId:this.channel.id,size:20,page:0}),this.searchingP=$.get(i,r,function(t){t.success&&(e.toggleRightSidebar(!0),ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:e.activeType,result:t.data,search:e.search}))})},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","s",function(t){t.preventDefault(),e.toggleRightSidebar()}).bind("keydown","ctrl+k",function(t){t.preventDefault(),$(e.chatToDropdownRef).dropdown("toggle")}),$(this.filterChatToUser).bind("keydown","ctrl+k",function(t){t.preventDefault(),$(e.chatToDropdownRef).dropdown("toggle")})},e.prototype.initChatToDropdownHandler=function(e){var t=this;e&&_.defer(function(){$(t.chatToDropdownRef).dropdown().dropdown("set selected",t.chatId).dropdown({onChange:function(e,t,n){window.location=wurl("path")+("#/chat/"+n.attr("data-id"))}})})},e.prototype.searchFocusHandler=function(){$(this.searchInputRef).css("width","auto"),$(this.searchRemoveRef).show(),this.isActiveSearch=!0},e.prototype.searchBlurHandler=function(){$(this.searchInputRef).val()||($(this.searchInputRef).css("width","95px"),$(this.searchRemoveRef).hide(),this.isActiveSearch=!1)},e.prototype.sibebarRightHandler=function(e){this.toggleRightSidebar()},e.prototype.toggleRightSidebar=function(e){_.isUndefined(e)?this.isRightSidebarShow=nsCtx.isRightSidebarShow=!this.isRightSidebarShow:this.isRightSidebarShow=nsCtx.isRightSidebarShow=e,ea.publish(nsCons.EVENT_CHAT_SIDEBAR_TOGGLE,{isShow:this.isRightSidebarShow})},e.prototype.searchKeyupHandler=function(e){return 13===e.keyCode?(this.activeType=nsCons.ACTION_TYPE_SEARCH,this.searchHandler()):27===e.keyCode&&this.clearSearchHandler(),!0},e.prototype.clearSearchHandler=function(){$(this.searchInputRef).val("").focus()},e.prototype.showStowHandler=function(e){var t=this;return this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_STOW&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_STOW,void(this.ajaxStow=$.get("/admin/chat/channel/getStows",function(e){if(e.success){var n=_.map(e.data,function(e){if(e.chatReply){var t=e.chatReply;return t.chatStow=e,t}var n=e.chatChannel;return n.chatStow=e,n});ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:t.activeType,result:_.reverse(n)}),t.toggleRightSidebar(!0)}else toastr.error(e.data,"获取收藏消息失败!")})))},e.prototype.showAtHandler=function(e){var t=this;return this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_AT&&0==this.newAtCnt&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_AT,this.newAtCnt=0,void(this.ajaxAt=$.get("/admin/chat/channel/getAts",{page:0,size:20},function(e){e.success?(ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:t.activeType,result:e.data}),t.toggleRightSidebar(!0)):toastr.error(e.data,"获取@消息失败!")})))},e.prototype.logoutHandler=function(){$.post("/admin/logout").always(function(){utils.redirect2Login()})},e.prototype.showWikiDirHandler=function(e){return this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_DIR&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_DIR,ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:this.activeType,result:this.dir}),void this.toggleRightSidebar(!0))},e.prototype.showAttachHandler=function(e){return this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_ATTACH&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_ATTACH,ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:this.activeType}),void this.toggleRightSidebar(!0))},e.prototype.showScheduleHandler=function(e){return this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_SCHEDULE&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_SCHEDULE,ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:this.activeType}),void this.toggleRightSidebar(!0))},e.prototype.userEditHandler=function(){this.userEditMd.show()},e.prototype.membersShowHandler=function(e,t){t.stopImmediatePropagation(),ea.publish(nsCons.EVENT_CHANNEL_ACTIONS,{action:"membersShowHandler",item:e})},e.prototype.leaveHandler=function(e,t){t.stopImmediatePropagation(),ea.publish(nsCons.EVENT_CHANNEL_ACTIONS,{action:"leaveHandler",item:e})},e.prototype.membersMgrHandler=function(e,t){t.stopImmediatePropagation(),ea.publish(nsCons.EVENT_CHANNEL_ACTIONS,{action:"membersMgrHandler",item:e})},e.prototype.editHandler=function(e,t){t.stopImmediatePropagation(),ea.publish(nsCons.EVENT_CHANNEL_ACTIONS,{action:"editHandler",item:e})},e.prototype.delHandler=function(e,t){t.stopImmediatePropagation(),ea.publish(nsCons.EVENT_CHANNEL_ACTIONS,{action:"delHandler",item:e})},e.prototype.viewOrMgrUsersHandler=function(e){this.channel.owner.username==this.loginUser.username?this.membersMgrHandler(this.channel,e):this.membersShowHandler(this.channel,e)},e.prototype.channelInfoHandler=function(e){this.channel.owner.username==this.loginUser.username?this.editHandler(this.channel,e):e.stopImmediatePropagation()},e.prototype.userInfoHandler=function(e){e.stopImmediatePropagation()},e.prototype.stopImmediatePropagationHandler=function(e){e.stopImmediatePropagation()},e.prototype.mailToHandler=function(e){e.stopImmediatePropagation(),window.location="mailto:"+this.chatUser.mails},e.prototype.channelLinksHandler=function(e){e.stopImmediatePropagation(),$(this.channelLinksDdRef).dropdown("toggle")},e.prototype.addChannelLinkHandler=function(e){this.channelLinkMgrVm.show()},e.prototype.openChannelLinkHandler=function(e,t){e.stopImmediatePropagation(),$(this.channelLinksDdRef).dropdown("hide"),utils.openNewWin(t.href),$.post("/admin/link/count/inc",{id:t.id})},e.prototype.showPinHandler=function(e){var t=this;return e.stopImmediatePropagation(),this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_PIN&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_PIN,void(this.ajaxPin=$.get("/admin/chat/channel/pin/list",{cid:this.channel.id},function(e){if(e.success){var n=_.map(e.data,function(e){var t=e.chatChannel;return t.chatPin=e,t});ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:t.activeType,result:_.reverse(n)}),t.toggleRightSidebar(!0)}else toastr.error(e.data,"获取频道固定消息失败!")})))},e.prototype.showTopicHandler=function(e){this.activeType=nsCons.ACTION_TYPE_TOPIC,ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:this.activeType,result:e}),this.toggleRightSidebar(!0)},e.prototype.toggleLeftBarHandler=function(){ea.publish(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,null)},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"chatUser",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"users",[t.bindable],{enumerable:!0,initializer:null}),d=r(o.prototype,"channels",[t.bindable],{enumerable:!0,initializer:null}),u=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),m=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),p=r(o.prototype,"chatId",[t.bindable],{enumerable:!0,initializer:null}),g=r(o.prototype,"chatTo",[t.bindable],{enumerable:!0,initializer:null}),h=r(o.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-topic-input",["exports","aurelia-framework","common/common-tips","common/common-emoji","simplemde","textcomplete"],function(e,t,n,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatTopicInput=void 0;var c,d,u,m,p=a(n),g=a(i),h=a(r);e.EmChatTopicInput=(0,t.containerless)((d=function(){function e(){var t=this;s(this,e),o(this,"channel",u,this),o(this,"chat",m,this),this.members=[],this.isMobile=utils.isMobile(),this.subscribe1=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,function(e){t.members=[nsCtx.memberAll].concat(e.members)}),this.subscribe2=ea.subscribe(nsCons.EVENT_CHAT_TOPIC_MSG_INSERT,function(e){t.insertContent(e.content)})}return e.prototype.channelChanged=function(){this.channel?this.members=[nsCtx.memberAll].concat(this.channel.members):this.members=[]},e.prototype.unbind=function(){this.subscribe1.dispose(),this.subscribe2.dispose()},e.prototype.attached=function(){this.initSimpleMDE(this.chatInputRef),this.initDropzone(),this.initPaste()},e.prototype.initPaste=function(){var e=this,t=void 0;t=this.$chatMsgInputRef.is("textarea")?$(this.$chatMsgInputRef).pastableTextarea():$(this.$chatMsgInputRef).pastableContenteditable(),t&&t.on("pasteImage",function(t,n){$.post("/admin/file/base64",{dataURL:n.dataURL,type:n.blob.type,toType:nsCtx.isAt?"User":"Channel",toId:nsCtx.chatTo},function(t,n,i){t.success&&e.insertContent("![{name}]({baseURL}{path}{uuidName})".replace(/\{name\}/g,t.data.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.data.path).replace(/\{uuidName\}/g,t.data.uuidName))})}).on("pasteImageError",function(e,t){toastr.error(t.message,"剪贴板粘贴图片错误!")})},e.prototype.initDropzone=function(){var e=this;this.initUploadDropzone($(".CodeMirror-wrap",this.inputRef),function(){return e.$chatMsgInputRef},!1),this.initUploadDropzone($(this.btnItemUploadRef).children().andSelf(),function(){return e.$chatMsgInputRef},!0),$(this.chatBtnRef).popup({inline:!0,hoverable:!0,position:"bottom left",delay:{show:300,hide:300}})},e.prototype.initUploadDropzone=function(e,t,n){var i=this;$(e).dropzone({url:"/admin/file/upload",paramName:"file",clickable:!!n,dictDefaultMessage:"",maxFilesize:10,addRemoveLinks:!0,previewsContainer:this.chatStatusBarRef,previewTemplate:this.previewTemplateRef.innerHTML,dictCancelUpload:"取消上传",dictCancelUploadConfirmation:"确定要取消上传吗?",dictFileTooBig:"文件过大({{filesize}}M),最大限制:{{maxFilesize}}M",init:function(){this.on("sending",function(e,n,i){t()?(i.append("toType",nsCtx.isAt?"User":"Channel"),i.append("toId",nsCtx.chatTo)):this.removeAllFiles(!0)}),this.on("success",function(e,t){t.success?($.each(t.data,function(e,t){"Image"==t.type?i.insertContent("![{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.path).replace(/\{uuidName\}/g,t.uuidName)):i.insertContent("[{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,"admin/file/download/").replace(/\{uuidName\}/g,t.id))}),toastr.success("上传成功!")):toastr.error(t.data,"上传失败!")}),this.on("error",function(e,t,n){toastr.error(t,"上传失败!")}),this.on("complete",function(e){this.removeFile(e)})}})},e.prototype.initSimpleMDE=function(e){var t=this;this.simplemde=new h.default({element:e,spellChecker:!1,status:!1,autofocus:!0,toolbar:!1,autoDownloadFontAwesome:!1,insertTexts:{table:["","\n\n| 列1 | 列2 | 列3 |\n| ------ | ------ | ------ |\n| 文本 | 文本 | 文本 |\n\n"]},previewRender:function(e,n){return t.simplemde.markdown(utils.preParse(e))}}),this.$chatMsgInputRef=$(this.inputRef).find(".textareaWrapper .CodeMirror textarea"),0===this.$chatMsgInputRef.size()&&(this.$chatMsgInputRef=$(this.inputRef).find('.textareaWrapper .CodeMirror [contenteditable="true"]')),this.initTextcomplete()},e.prototype.initTextcomplete=function(){var e=this;$(this.$chatMsgInputRef).textcomplete([{match:/(|\b)(\/.*)$/,search:function(e,t){var n=_.keys(p.default);t($.map(n,function(t){return 0===t.indexOf(e)?t:null}))},template:function(e,t){return p.default[e].label},replace:function(t){return e.tipsActionHandler(t)?(e.setCaretPosition(p.default[t].line,p.default[t].ch),"$1"+p.default[t].value):""}},{match:/(^|\s)@(\w*)$/,search:function(t,n){n($.map(e.members,function(e){return e.enabled&&e.username.indexOf(t)>=0?e.username:null}))},template:function(t,n){var i=_.find(e.members,{username:t});return i.name+" - "+i.mails+" ("+i.username+")"},replace:function(e){return"$1{~"+e+"}"}},{match:/(^|\s):([\+\-\w]*)$/,search:function(e,t){t($.map(g.default,function(t){return _.some(t.split("_"),function(t){return 0===t.indexOf(e)})?t:null}))},template:function(e,t){if("search"==e)return"表情查找 - :search";var n=":"+e+":";return emojify.replace(n)+" - "+n},replace:function(t){return e.tipsActionHandler(t)?"$1:"+t+": ":""}}],{appendTo:".tms-chat-topic-status-bar",maxCount:nsCons.NUM_TEXT_COMPLETE_MAX_COUNT}),this.simplemde.codemirror.on("keydown",function(t,n){_.includes([13,38,40],n.keyCode)&&e.isTipsShow()?n.preventDefault():n.ctrlKey&&13===n.keyCode?e.sendChatMsg():27===n.keyCode?e.simplemde.value(""):n.ctrlKey&&85==n.keyCode?$(e.btnItemUploadRef).find(".content").click():n.ctrlKey&&191==n.keyCode})},e.prototype.setCaretPosition=function(e,t){var n=this;(e||t)&&_.delay(function(){var i=n.simplemde.codemirror.getCursor();n.simplemde.codemirror.setCursor({line:i.line-(e?e:0),ch:i.line?t?t:0:i.ch-(t?t:0)})},100)},e.prototype.sendChatMsg=function(){var e=this,t=this.simplemde.value();return $.trim(t)?void(this.sending||(this.sending=!0,$.post("/admin/chat/channel/reply/add",{url:utils.getUrl(),usernames:utils.parseUsernames(t,this.members).join(","),content:t,contentHtml:utils.md2html(t,!0),id:this.chat.id},function(t,n,i){t.success?(e.simplemde.value(""),ea.publish(nsCons.EVENT_CHAT_TOPIC_MSG_SENDED,{data:t.data})):toastr.error(t.data,"发送消息失败!")}).always(function(){e.sending=!1}))):void this.simplemde.value("")},e.prototype.sendChatMsgHandler=function(){this.sendChatMsg()},e.prototype.isTipsShow=function(){return 1===$(this.chatStatusBarRef).find(".textcomplete-dropdown:visible").size()},e.prototype.insertContent=function(e,t){try{var n=t?t.codemirror:this.simplemde.codemirror,i=n.getCursor();i&&(n.replaceRange(e,i,i),n.focus())}catch(e){console.log(e)}},e.prototype.tipsActionHandler=function(e){if("/upload"==e)$(this.btnItemUploadRef).find(".content").click();else if("/shortcuts"==e);else{if("search"!=e)return!0;_.delay(function(){utils.openNewWin(nsCons.STR_EMOJI_SEARCH_URL)},200)}return!1},e.prototype.togglePreviewHandler=function(){this.simplemde.togglePreview()},e}(),u=l(d.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),m=l(d.prototype,"chat",[t.bindable],{enumerable:!0,initializer:null}),c=d))||c}),define("resources/elements/em-chat-topic",["exports","aurelia-framework","common/common-poll2"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatTopic=void 0;var s,l,c,d,u=i(n),m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.EmChatTopic=(0,t.containerless)((l=function(){function e(){var t=this;a(this,e),r(this,"actived",c,this),r(this,"channel",d,this),this.isSuper=nsCtx.isSuper,this.loginUser=nsCtx.loginUser,this.members=[],this.offset=0,this.chat=null,this.basePath=utils.getBasePath(),this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_TOPIC_MSG_SENDED,function(e){_.some(t.chat.chatReplies,{id:e.data.id})||(t.chat.chatReplies.push(e.data),t.scrollToBottom()),t.isFollower=!0,u.default.reset()}),this.subscribe1=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,function(e){t.members=[nsCtx.memberAll].concat(e.members)})}return e.prototype.scrollToBottom=function(){this.scrollTo("max")},e.prototype.scrollTo=function(e){_.defer(function(){return ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_SCROLL_TO,e)})},e.prototype._scrollTo=function(e){"b"==e?$(this.commentsRef).closest(".scroll-content").scrollTo("max"):"t"==e?$(this.commentsRef).closest(".scroll-content").scrollTo(0):_.some(this.chat.chatReplies,{id:+e})?($(this.commentsRef).closest(".scroll-content").scrollTo('.tms-reply.comment[data-id="'+e+'"]',{offset:this.offset}),$(this.commentsRef).find(".comment[data-id]").removeClass("active"),$(this.commentsRef).find(".comment[data-id="+e+"]").addClass("active")):($(this.commentsRef).closest(".scroll-content").scrollTo("max"),toastr.warning("消息["+e+"]不存在,可能已经被删除!"))},e.prototype.scrollToAfterImgLoaded=function(e){var t=this;_.defer(function(){new ImagesLoaded(t.commentsRef).always(function(){t._scrollTo(e)}),t._scrollTo(e)})},e.prototype.attached=function(){var e=this;$(this.commentsRef).on("dblclick",".comment.tms-reply",function(t){if(t.ctrlKey){var n=function(){var n=$(t.currentTarget).attr("data-id"),i=$(t.currentTarget).find(".content > textarea"),r=_.find(e.chat.chatReplies,{id:Number.parseInt(n)});return e.isSuper||r.creator.username==e.loginUser.username?(r.isEditing=!0,r.contentOld=r.content,void _.defer(function(){i.focus().select(),autosize.update(i.get(0))})):{v:void 0}}();if("object"===("undefined"==typeof n?"undefined":m(n)))return n.v}}),$(this.commentsRef).on("click",".markdown-body .at-user",function(e){e.preventDefault(),ea.publish(nsCons.EVENT_CHAT_TOPIC_MSG_INSERT,{content:"{~"+$(e.currentTarget).attr("data-value")+"} "})})},e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe1.dispose(),u.default.stop()},e.prototype.channelChanged=function(){this.channel?this.members=[nsCtx.memberAll].concat(this.channel.members):this.members=[]},e.prototype._poll=function(){var e=this;u.default.start(function(t,n){nsCtx.isRightSidebarShow||n();var i=_.last(e.chat.chatReplies);e.ajaxTopic=$.get("/admin/chat/channel/reply/poll",{id:e.chat.id,rid:i?i.id:null},function(i){i.success?i.data.length>0&&(e.chat.chatReplies=_.unionBy(e.chat.chatReplies,i.data,"id"),e.scrollToBottom(),t()):n()})})},e.prototype._getFollowers=function(){var e=this;$.get("/admin/chat/channel/follower/list",{id:this.chat.id},function(t){t.success&&(e.followers=t.data,e.isFollower=_.some(e.followers,function(t){return t.creator.username==e.loginUser.username}))})},e.prototype.activedChanged=function(e,t){if(!e||this.actived.payload.action!=nsCons.ACTION_TYPE_TOPIC)return void u.default.stop();this.chat=this.actived.payload.result.chat;var n=_.last(this.chat.chatReplies);n&&(n.__scroll=!0),this.rid=this.actived.payload.result.rid,this._poll(),this._getFollowers()},e.prototype.notifyRendered=function(e,t){var n=this;e&&_.defer(function(){t.__scroll&&(n.scrollToAfterImgLoaded(n.rid?n.rid:"b"),delete t.__scroll)})},e.prototype.removeHandler=function(e){var t=this;$.post("/admin/chat/channel/reply/remove",{rid:e.id},function(e,n,i){e.success?t.chat.chatReplies=_.reject(t.chat.chatReplies,{id:e.data}):toastr.error(e.data)})},e.prototype.editHandler=function(e,t){e.isEditing=!0,e.contentOld=e.content,_.defer(function(){$(t).focus().select(),autosize.update(t)})},e.prototype.eidtKeydownHandler=function(e,t,n){return!this.sending&&(e.ctrlKey&&13===e.keyCode?(this.editSave(t,n),!1):e.ctrlKey&&85===e.keyCode?($(n).next(".tms-edit-actions").find(".upload").click(),!1):(27===e.keyCode&&this.editCancelHandler(e,t,n),!0))},e.prototype.editSave=function(e,t){var n=this;this.sending=!0,e.content=$(t).val();utils.md2html(e.content,!0),utils.md2html(e.contentOld,!0);$.post("/admin/chat/channel/reply/update",{url:utils.getUrl(),rid:e.id,version:e.version,usernames:utils.parseUsernames(e.content,this.members).join(","),content:e.content,diff:utils.diffS(e.contentOld,e.content)},function(t,n,i){t.success?(toastr.success("更新消息成功!"),e.isEditing=!1,e.version=t.data.version):toastr.error(t.data,"更新消息失败!")}).always(function(){n.sending=!1})},e.prototype.editOkHandler=function(e,t,n){this.editSave(t,n),t.isEditing=!1},e.prototype.editCancelHandler=function(e,t,n){t.content=t.contentOld,$(n).val(t.content),t.isEditing=!1},e.prototype.replyHandler=function(){this.scrollToBottom(),_.defer(function(){return ea.publish(nsCons.EVENT_CHAT_TOPIC_MSG_INSERT,{content:""})})},e.prototype.followerHandler=function(){var e=this;$.post("/admin/chat/channel/follower/"+(this.isFollower?"remove":"add"),{id:this.chat.id},function(t,n,i){t.success?(toastr.success((e.isFollower?"取消":"")+"关注话题成功!"),e.isFollower=!e.isFollower):toastr.error(t.data)})},e.prototype.refreshHandler=function(){var e=this;$.get("/admin/chat/channel/get",{id:this.chat.id},function(t){_.extend(e.chat,t.data),toastr.success("刷新同步成功!")})},e.prototype.refreshReplyHandler=function(e){$.get("/admin/chat/channel/reply/get",{rid:e.id},function(t){e.version!=t.data.version?(_.extend(e,t.data),toastr.success("刷新同步成功!")):(e.chatReplies=t.data.chatReplies,toastr.info("消息内容暂无变更!"))})},e.prototype.stowHandler=function(e){return e.isStow?void this.unStowHandler(e):void $.post("/admin/chat/channel/stow",{id:this.chat.id,rid:e.id},function(t,n,i){e.isStow=!0,t.success?(e.stowId=t.data.id,toastr.success("收藏消息成功!")):e.stowId=t.msgs&&t.msgs.length>0?t.msgs[0].id:""})},e.prototype.unStowHandler=function(e){e.stowId&&$.post("/admin/chat/channel/removeStow",{id:e.stowId},function(t,n,i){e.isStow=!1,e.stowId="",t.success&&toastr.success("移除收藏消息成功!")})},e}(),c=o(l.prototype,"actived",[t.bindable],{enumerable:!0,initializer:null}),d=o(l.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),s=l))||s}),define("resources/elements/em-checkbox",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmCheckbox=void 0;var a,o,s,l,c,d,u,m,p,g,h,b;e.EmCheckbox=(a=(0,t.bindable)({defaultBindingMode:t.bindingMode.twoWay}),(0,t.containerless)((s=function(){function e(){i(this,e),n(this,"label",l,this),n(this,"title",c,this),n(this,"classes",d,this),n(this,"onchange",u,this),n(this,"onchecked",m,this),n(this,"onunchecked",p,this),n(this,"emCheckboxAll",g,this),n(this,"checked",h,this),n(this,"signal",b,this)}return e.prototype.checkedChanged=function(e,t){e?$(this.checkbox).checkbox("set checked"):$(this.checkbox).checkbox("set unchecked"),this.signal&&bs.signal(this.signal)},e.prototype.attached=function(){var e=this;$(this.checkbox).checkbox({onChecked:function(){e.checked=!0,_.defer(function(){e.emCheckboxAll&&e.emCheckboxAll.refreshCheckedStatus(),e.onchecked&&e.onchecked(e),e.signal&&bs.signal(e.signal)})},onUnchecked:function(){e.checked=!1,_.defer(function(){e.emCheckboxAll&&e.emCheckboxAll.refreshCheckedStatus(),e.onunchecked&&e.onunchecked(e),e.signal&&bs.signal(e.signal)})},onChange:function(){_.defer(function(){e.onchange&&e.onchange(e)})}}),this.checkedChanged(this.checked)},e}(),l=r(s.prototype,"label",[t.bindable],{enumerable:!0,initializer:null}),c=r(s.prototype,"title",[t.bindable],{enumerable:!0,initializer:null}),d=r(s.prototype,"classes",[t.bindable],{enumerable:!0,initializer:function(){return"fitted"}}),u=r(s.prototype,"onchange",[t.bindable],{enumerable:!0,initializer:null}),m=r(s.prototype,"onchecked",[t.bindable],{enumerable:!0,initializer:null}),p=r(s.prototype,"onunchecked",[t.bindable],{enumerable:!0,initializer:null}),g=r(s.prototype,"emCheckboxAll",[t.bindable],{enumerable:!0,initializer:null}),h=r(s.prototype,"checked",[a],{enumerable:!0,initializer:null}),b=r(s.prototype,"signal",[t.bindable],{enumerable:!0,initializer:null}),o=s))||o)}),define("resources/elements/em-confirm-modal",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmConfirmModal=void 0;e.EmConfirmModal=function(){function e(){n(this,e),this.config={}}return e.prototype.detached=function(){$(this.md).remove()},e.prototype.attached=function(){var e=this;$(this.md).modal({closable:!1,allowMultiple:!0,onApprove:function(){e.onapprove&&e.onapprove()},onDeny:function(){e.ondeny&&e.ondeny()}})},e.prototype.reset=function(){this.config={title:"操作确认",content:"确定要执行该操作吗?",warning:!1}},e.prototype.show=function(e){this.reset(),e&&(this.config=_.extend(this.config,e)),e&&e.onapprove&&(this.onapprove=e.onapprove),e&&e.ondeny&&(this.ondeny=e.ondeny),$(this.md).modal("show")},e.prototype.hide=function(){$(this.md).modal("hide")},e}()}),define("resources/elements/em-dropdown-links",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmDropdownLinks=void 0;var i;e.EmDropdownLinks=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.isSuper=nsCtx.isSuper,this.subscribe=ea.subscribe(nsCons.EVENT_SYSTEM_LINKS_REFRESH,function(e){t._refreshSysLinks()})}return e.prototype.attached=function(){var e=this;$(this.ddRef).dropdown({action:function(t,n,i){$(e.ddRef).dropdown("hide"),$.post("/admin/link/count/inc",{id:$(i).attr("data-id")}),_.defer(function(){return utils.openNewWin(n)})}})},e.prototype.bind=function(e,t){this._refreshSysLinks()},e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype._refreshSysLinks=function(){var e=this;$.get("/admin/link/listByApp",function(t){t.success?e.sysLinks=t.data:e.sysLinks=[]}),$.get("/admin/link/listByType",{type:"Channel"},function(t){t.success?e.channelLinks=t.data:e.channelLinks=[]})},e.prototype.addChannelLinkHandler=function(e){this.sysLinkMgrVm.show()},e.prototype.sysLinkHandler=function(e){return!1},e}())||i}),define("resources/elements/em-dropdown",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmDropdown=void 0;var a,o,s,l,c,d,u,m,p;e.EmDropdown=(a=(0,t.bindable)({defaultBindingMode:t.bindingMode.twoWay}),o=function(){function e(){i(this,e),n(this,"name",s,this),n(this,"text",l,this),n(this,"labelProp",c,this),n(this,"valueProp",d,this),n(this,"selectedItem",u,this),n(this,"menuItems",m,this),n(this,"classes",p,this)}return e.prototype.selectedItemChanged=function(e,t){var n=this;e&&_.defer(function(){$(n.dropdown).dropdown("set selected",e)})},e.prototype.menuItemsChanged=function(e,t){_.isEmpty(e)&&($(this.dropdown).dropdown("clear"),this.selectedItem=null)},e.prototype.initDropdownHandler=function(e){var t=this;e&&_.defer(function(){$(t.dropdown).dropdown({onChange:function(e,n,i){t.selectedItem=e}}).dropdown("set selected",t.selectedItem)})},e}(),s=r(o.prototype,"name",[t.bindable],{ -enumerable:!0,initializer:function(){return _.uniqueId("em-dropdown-")}}),l=r(o.prototype,"text",[t.bindable],{enumerable:!0,initializer:function(){return""}}),c=r(o.prototype,"labelProp",[t.bindable],{enumerable:!0,initializer:function(){return"label"}}),d=r(o.prototype,"valueProp",[t.bindable],{enumerable:!0,initializer:function(){return"value"}}),u=r(o.prototype,"selectedItem",[a],{enumerable:!0,initializer:null}),m=r(o.prototype,"menuItems",[t.bindable],{enumerable:!0,initializer:function(){return[]}}),p=r(o.prototype,"classes",[t.bindable],{enumerable:!0,initializer:function(){return"selection"}}),o)}),define("resources/elements/em-hotkeys-modal",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmHotkeysModal=void 0;e.EmHotkeysModal=function(){function e(){n(this,e)}return e.prototype.attached=function(){$(this.md).modal()},e.prototype.show=function(){$(this.md).modal("show")},e}()}),define("resources/elements/em-modal",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmModal=void 0;var a,o,s,l,c,d,u,m,p,g,h;e.EmModal=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"confirmLabel",s,this),n(this,"cancelLabel",l,this),n(this,"onapprove",c,this),n(this,"ondeny",d,this),n(this,"onshow",u,this),n(this,"onvisible",m,this),n(this,"disabled",p,this),n(this,"classes",g,this),n(this,"showConfirm",h,this),this.options={hideOnApprove:!0,autoDimmer:!0}}return e.prototype.detached=function(){$(this.modal).remove()},e.prototype.attached=function(){var e=this;$(this.modal).modal({closable:!1,autofocus:!1,observeChanges:!0,allowMultiple:!0,onShow:function(){e.onshow&&e.onshow(e)},onVisible:function(){e.onvisible&&e.onvisible(e)},onApprove:function(){return e.options.autoDimmer&&e.showDimmer(),e.onapprove&&e.onapprove(e),e.options.hideOnApprove},onDeny:function(){e.ondeny&&e.ondeny(e)}})},e.prototype.showDimmer=function(){this.loading=!0,$(this.modal).find(".dimmer").dimmer("show")},e.prototype.hideDimmer=function(){this.loading=!1,$(this.modal).find(".dimmer").dimmer("hide")},e.prototype.show=function(e){_.extend(this.options,e),$(this.modal).modal("show")},e.prototype.hide=function(){this.hideDimmer(),$(this.modal).modal("hide")},e.prototype.refresh=function(){var e=this;_.defer(function(){$(e.modal).modal("refresh")})},e}(),s=r(o.prototype,"confirmLabel",[t.bindable],{enumerable:!0,initializer:function(){return"确认"}}),l=r(o.prototype,"cancelLabel",[t.bindable],{enumerable:!0,initializer:function(){return"取消"}}),c=r(o.prototype,"onapprove",[t.bindable],{enumerable:!0,initializer:null}),d=r(o.prototype,"ondeny",[t.bindable],{enumerable:!0,initializer:null}),u=r(o.prototype,"onshow",[t.bindable],{enumerable:!0,initializer:null}),m=r(o.prototype,"onvisible",[t.bindable],{enumerable:!0,initializer:null}),p=r(o.prototype,"disabled",[t.bindable],{enumerable:!0,initializer:function(){return!1}}),g=r(o.prototype,"classes",[t.bindable],{enumerable:!0,initializer:function(){return"small"}}),h=r(o.prototype,"showConfirm",[t.bindable],{enumerable:!0,initializer:function(){return!0}}),a=o))||a}),define("resources/elements/em-user-avatar",["exports","aurelia-framework","color-hash"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmUserAvatar=void 0;var s,l,c;i(n),e.EmUserAvatar=(0,t.containerless)((l=function(){function e(){a(this,e),r(this,"user",c,this)}return e.prototype.userChanged=function(){if(this.user){this._calcNameChar();var e=colorHash.rgb(this.user.username);this.bgColor="rgba("+e[0]+", "+e[1]+", "+e[2]+", 0.6)",this.color="rgba("+(255-e[0])+", "+(255-e[1])+", "+(255-e[2])+", 1)"}},e.prototype._calcNameChar=function(){var e=arguments.length<=0||void 0===arguments[0]||arguments[0];this.user.name?this.nameChar=e?_.last(this.user.name):_.first(this.user.name):this.nameChar=e?_.last(this.user.username):_.first(this.user.username)},e.prototype.attached=function(){var e=this;$(this.avatarRef).hover(function(){e._calcNameChar(!1)},function(){e._calcNameChar()})},e}(),c=o(l.prototype,"user",[t.bindable],{enumerable:!0,initializer:null}),s=l))||s}),define("resources/elements/em-user-edit",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmUserEdit=void 0;var a,o,s;e.EmUserEdit=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"user",s,this)}return e.prototype.show=function(){this.emModal.show({hideOnApprove:!1,autoDimmer:!0})},e.prototype.showHandler=function(){},e.prototype.attached=function(){$(this.frm).form({on:"blur",inline:!0,fields:{name:"empty",mail:["empty","email"]}})},e.prototype._chkOk=function(){var e=this.user.password;return!(e&&e.length<8)||(toastr.error("密码长度不能少于8位字符!"),!1)},e.prototype.approveHandler=function(e){var t=this;this._chkOk()&&$(this.frm).form("is valid")?$.post("/admin/user/update2",{username:this.user.username,password:this.user.password,name:this.user.name,mail:this.user.mails},function(n){e.hide(),t.user.password="",n.success?toastr.success("更新个人信息成功!"):toastr.error(n.data,"更新个人信息失败!")}):e.hideDimmer()},e}(),s=r(o.prototype,"user",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("aurelia-templating-resources/compose",["exports","aurelia-dependency-injection","aurelia-task-queue","aurelia-templating","aurelia-pal"],function(e,t,n,i,r){"use strict";function a(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}function s(e,t){return Object.assign(t,{bindingContext:e.bindingContext,overrideContext:e.overrideContext,owningView:e.owningView,container:e.container,viewSlot:e.viewSlot,viewResources:e.viewResources,currentController:e.currentController,host:e.element})}function l(e,t){e.currentInstruction=null,e.compositionEngine.compose(t).then(function(t){e.currentController=t,e.currentViewModel=t?t.viewModel:null})}Object.defineProperty(e,"__esModule",{value:!0}),e.Compose=void 0;var c,d,u,m,p,g,h;e.Compose=(c=(0,i.customElement)("compose"),d=(0,t.inject)(r.DOM.Element,t.Container,i.CompositionEngine,i.ViewSlot,i.ViewResources,n.TaskQueue),c(u=(0,i.noView)(u=d((m=function(){function e(e,t,n,i,r,o){a(this,"model",p,this),a(this,"view",g,this),a(this,"viewModel",h,this),this.element=e,this.container=t,this.compositionEngine=n,this.viewSlot=i,this.viewResources=r,this.taskQueue=o,this.currentController=null,this.currentViewModel=null}return e.prototype.created=function(e){this.owningView=e},e.prototype.bind=function(e,t){this.bindingContext=e,this.overrideContext=t,l(this,s(this,{view:this.view,viewModel:this.viewModel,model:this.model}))},e.prototype.unbind=function(e,t){this.bindingContext=null,this.overrideContext=null;var n=!0,i=!0;this.viewSlot.removeAll(n,i)},e.prototype.modelChanged=function(e,t){var n=this;return this.currentInstruction?void(this.currentInstruction.model=e):void this.taskQueue.queueMicroTask(function(){if(n.currentInstruction)return void(n.currentInstruction.model=e);var t=n.currentViewModel;t&&"function"==typeof t.activate&&t.activate(e)})},e.prototype.viewChanged=function(e,t){var n=this,i=s(this,{view:e,viewModel:this.currentViewModel||this.viewModel,model:this.model});return this.currentInstruction?void(this.currentInstruction=i):(this.currentInstruction=i,void this.taskQueue.queueMicroTask(function(){return l(n,n.currentInstruction)}))},e.prototype.viewModelChanged=function(e,t){var n=this,i=s(this,{viewModel:e,view:this.view,model:this.model});return this.currentInstruction?void(this.currentInstruction=i):(this.currentInstruction=i,void this.taskQueue.queueMicroTask(function(){return l(n,n.currentInstruction)}))},e}(),p=o(m.prototype,"model",[i.bindable],{enumerable:!0,initializer:null}),g=o(m.prototype,"view",[i.bindable],{enumerable:!0,initializer:null}),h=o(m.prototype,"viewModel",[i.bindable],{enumerable:!0,initializer:null}),u=m))||u)||u)||u)}),define("aurelia-templating-resources/if",["exports","aurelia-templating","aurelia-dependency-injection"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.If=void 0;var i,r,a;e.If=(i=(0,t.customAttribute)("if"),r=(0,n.inject)(t.BoundViewFactory,t.ViewSlot),i(a=(0,t.templateController)(a=r(a=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.showing=!1,this.view=null,this.bindingContext=null,this.overrideContext=null}return e.prototype.bind=function(e,t){this.bindingContext=e,this.overrideContext=t,this.valueChanged(this.value)},e.prototype.valueChanged=function(e){var t=this;if(this.__queuedChanges)return void this.__queuedChanges.push(e);var n=this._runValueChanged(e);n instanceof Promise&&!function(){var e=t.__queuedChanges=[],i=function n(){if(!e.length)return void(t.__queuedChanges=void 0);var i=t._runValueChanged(e.shift())||Promise.resolve();i.then(n)};n.then(i)}()},e.prototype._runValueChanged=function(e){var t=this;if(!e){var n=void 0;return null!==this.view&&this.showing&&(n=this.viewSlot.remove(this.view),n instanceof Promise?n.then(function(){return t.view.unbind()}):this.view.unbind()),this.showing=!1,n}if(null===this.view&&(this.view=this.viewFactory.create()),this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext),!this.showing)return this.showing=!0,this.viewSlot.add(this.view)},e.prototype.unbind=function(){null!==this.view&&(this.view.unbind(),this.viewFactory.isCaching&&(this.showing&&(this.showing=!1,this.viewSlot.remove(this.view,!0,!0)),this.view.returnToCache(),this.view=null))},e}())||a)||a)||a)}),define("aurelia-templating-resources/with",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-binding"],function(e,t,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.With=void 0;var r,a,o;e.With=(r=(0,n.customAttribute)("with"),a=(0,t.inject)(n.BoundViewFactory,n.ViewSlot),r(o=(0,n.templateController)(o=a(o=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.parentOverrideContext=null,this.view=null}return e.prototype.bind=function(e,t){this.parentOverrideContext=t,this.valueChanged(this.value)},e.prototype.valueChanged=function(e){var t=(0,i.createOverrideContext)(e,this.parentOverrideContext);this.view?this.view.bind(e,t):(this.view=this.viewFactory.create(),this.view.bind(e,t),this.viewSlot.add(this.view))},e.prototype.unbind=function(){this.parentOverrideContext=null,this.view&&this.view.unbind()},e}())||o)||o)||o)}),define("aurelia-templating-resources/repeat",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-templating","./repeat-strategy-locator","./repeat-utilities","./analyze-view-factory","./abstract-repeater"],function(e,t,n,i,r,a,o,s){"use strict";function l(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.Repeat=void 0;var m,p,g,h,b,f,v,_;e.Repeat=(m=(0,i.customAttribute)("repeat"),p=(0,t.inject)(i.BoundViewFactory,i.TargetInstruction,i.ViewSlot,i.ViewResources,n.ObserverLocator,r.RepeatStrategyLocator),m(g=(0,i.templateController)(g=p((h=function(e){function t(t,n,i,r,s,d){var u=c(this,e.call(this,{local:"item",viewsRequireLifecycle:(0,o.viewsRequireLifecycle)(t)}));return l(u,"items",b,u),l(u,"local",f,u),l(u,"key",v,u),l(u,"value",_,u),u.viewFactory=t,u.instruction=n,u.viewSlot=i,u.lookupFunctions=r.lookupFunctions,u.observerLocator=s,u.key="key",u.value="value",u.strategyLocator=d,u.ignoreMutation=!1,u.sourceExpression=(0,a.getItemsSourceExpression)(u.instruction,"repeat.for"),u.isOneTime=(0,a.isOneTime)(u.sourceExpression),u.viewsRequireLifecycle=(0,o.viewsRequireLifecycle)(t),u}return d(t,e),t.prototype.call=function(e,t){this[e](this.items,t)},t.prototype.bind=function(e,t){this.scope={bindingContext:e,overrideContext:t},this.matcherBinding=this._captureAndRemoveMatcherBinding(),this.itemsChanged()},t.prototype.unbind=function(){this.scope=null,this.items=null,this.matcherBinding=null,this.viewSlot.removeAll(!0),this._unsubscribeCollection()},t.prototype._unsubscribeCollection=function(){this.collectionObserver&&(this.collectionObserver.unsubscribe(this.callContext,this),this.collectionObserver=null,this.callContext=null)},t.prototype.itemsChanged=function(){if(this._unsubscribeCollection(),this.scope){var e=this.items;if(this.strategy=this.strategyLocator.getStrategy(e),!this.strategy)throw new Error("Value for '"+this.sourceExpression+"' is non-repeatable");this.isOneTime||this._observeInnerCollection()||this._observeCollection(),this.strategy.instanceChanged(this,e)}},t.prototype._getInnerCollection=function(){var e=(0,a.unwrapExpression)(this.sourceExpression);return e?e.evaluate(this.scope,null):null},t.prototype.handleCollectionMutated=function(e,t){this.collectionObserver&&this.strategy.instanceMutated(this,e,t)},t.prototype.handleInnerCollectionMutated=function(e,t){var n=this;if(this.collectionObserver&&!this.ignoreMutation){this.ignoreMutation=!0;var i=this.sourceExpression.evaluate(this.scope,this.lookupFunctions);this.observerLocator.taskQueue.queueMicroTask(function(){return n.ignoreMutation=!1}),i===this.items?this.itemsChanged():this.items=i}},t.prototype._observeInnerCollection=function(){var e=this._getInnerCollection(),t=this.strategyLocator.getStrategy(e);return!!t&&(this.collectionObserver=t.getCollectionObserver(this.observerLocator,e),!!this.collectionObserver&&(this.callContext="handleInnerCollectionMutated",this.collectionObserver.subscribe(this.callContext,this),!0))},t.prototype._observeCollection=function(){var e=this.items;this.collectionObserver=this.strategy.getCollectionObserver(this.observerLocator,e),this.collectionObserver&&(this.callContext="handleCollectionMutated",this.collectionObserver.subscribe(this.callContext,this))},t.prototype._captureAndRemoveMatcherBinding=function(){if(this.viewFactory.viewFactory)for(var e=this.viewFactory.viewFactory.instructions,t=Object.keys(e),n=0;n0?(b=e.removeViews(u,!0,!e.viewsRequireLifecycle),h=function(){for(var o=0;oi;)r--,e.removeView(r,!0,!e.viewsRequireLifecycle);for(var a=e.local,o=0;o0)return Promise.all(o).then(function(){var a=r._handleAddedSplices(e,n,i);(0,t.updateOverrideContexts)(e.views(),a)});var g=this._handleAddedSplices(e,n,i);(0,t.updateOverrideContexts)(e.views(),g)},e.prototype._handleAddedSplices=function(e,n,i){for(var r=void 0,a=void 0,o=n.length,s=0,l=i.length;sc.index)&&(a=r);d0&&(t-=1);t0?Promise.all(d).then(function(){(0,t.updateOverrideContexts)(e.views(),0)}):(0,t.updateOverrideContexts)(e.views(),0)},e.prototype._getViewIndexByKey=function(e,t){var n=void 0,i=void 0,r=void 0;for(n=0,i=e.viewCount();n0?Promise.all(d).then(function(){(0,t.updateOverrideContexts)(e.views(),0)}):(0,t.updateOverrideContexts)(e.views(),0)},e.prototype._getViewIndexByValue=function(e,t){var n=void 0,i=void 0,r=void 0;for(n=0,i=e.viewCount();n0)for(s>i&&(s=i),r=0,a=s;r)<[^<]*)*<\/script>/gi;e.HTMLSanitizer=function(){function e(){}return e.prototype.sanitize=function(e){return e.replace(t,"")},e}()}),define("aurelia-templating-resources/replaceable",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Replaceable=void 0;var i,r,a;e.Replaceable=(i=(0,n.customAttribute)("replaceable"),r=(0,t.inject)(n.BoundViewFactory,n.ViewSlot),i(a=(0,n.templateController)(a=r(a=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.view=null}return e.prototype.bind=function(e,t){null===this.view&&(this.view=this.viewFactory.create(),this.viewSlot.add(this.view)),this.view.bind(e,t)},e.prototype.unbind=function(){this.view.unbind()},e}())||a)||a)||a)}),define("aurelia-templating-resources/focus",["exports","aurelia-templating","aurelia-binding","aurelia-dependency-injection","aurelia-task-queue","aurelia-pal"],function(e,t,n,i,r,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Focus=void 0;var o,s,l;e.Focus=(o=(0,t.customAttribute)("focus",n.bindingMode.twoWay),s=(0,i.inject)(a.DOM.Element,r.TaskQueue),o(l=s(l=function(){function e(e,t){var n=this;this.element=e,this.taskQueue=t,this.isAttached=!1,this.needsApply=!1,this.focusListener=function(e){n.value=!0},this.blurListener=function(e){a.DOM.activeElement!==n.element&&(n.value=!1)}}return e.prototype.valueChanged=function(e){this.isAttached?this._apply():this.needsApply=!0},e.prototype._apply=function(){var e=this;this.value?this.taskQueue.queueMicroTask(function(){e.value&&e.element.focus()}):this.element.blur()},e.prototype.attached=function(){this.isAttached=!0,this.needsApply&&(this.needsApply=!1,this._apply()),this.element.addEventListener("focus",this.focusListener),this.element.addEventListener("blur",this.blurListener)},e.prototype.detached=function(){this.isAttached=!1,this.element.removeEventListener("focus",this.focusListener),this.element.removeEventListener("blur",this.blurListener)},e}())||l)||l)}),define("aurelia-templating-resources/css-resource",["exports","aurelia-templating","aurelia-loader","aurelia-dependency-injection","aurelia-path","aurelia-pal"],function(e,t,n,i,r,a){"use strict";function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){if("string"!=typeof t)throw new Error("Failed loading required CSS file: "+e);return t.replace(d,function(t,n){var i=n.charAt(0);return"'"!==i&&'"'!==i||(n=n.substr(1,n.length-2)),"url('"+(0,r.relativeToFile)(n,e)+"')"})}function c(e){var n,i,r=(n=(0,t.resource)(new u(e)),n(i=function(e){function t(){return o(this,e.apply(this,arguments))}return s(t,e),t}(m))||i);return r}Object.defineProperty(e,"__esModule",{value:!0}),e._createCSSResource=c;var d=/url\((?!['"]data)([^)]+)\)/gi,u=function(){function e(e){this.address=e,this._scoped=null,this._global=!1,this._alreadyGloballyInjected=!1}return e.prototype.initialize=function(e,t){this._scoped=new t(this)},e.prototype.register=function(e,t){"scoped"===t?e.registerViewEngineHooks(this._scoped):this._global=!0},e.prototype.load=function(e){var t=this;return e.get(n.Loader).loadText(this.address).catch(function(e){return null}).then(function(e){e=l(t.address,e),t._scoped.css=e,t._global&&(t._alreadyGloballyInjected=!0,a.DOM.injectStyles(e))})},e}(),m=function(){function e(e){this.owner=e,this.css=null}return e.prototype.beforeCompile=function(e,t,n){if(n.targetShadowDOM)a.DOM.injectStyles(this.css,e,!0);else if(a.FEATURE.scopedCSS){var i=a.DOM.injectStyles(this.css,e,!0);i.setAttribute("scoped","scoped")}else this.owner._alreadyGloballyInjected||(a.DOM.injectStyles(this.css),this.owner._alreadyGloballyInjected=!0)},e}()}),define("aurelia-templating-resources/binding-mode-behaviors",["exports","aurelia-binding","aurelia-metadata"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TwoWayBindingBehavior=e.OneWayBindingBehavior=e.OneTimeBindingBehavior=void 0;var i,r,a,o,s,l,c={bind:function(e,t,n){e.originalMode=e.mode,e.mode=this.mode},unbind:function(e,t){e.mode=e.originalMode,e.originalMode=null}};e.OneTimeBindingBehavior=(i=(0,n.mixin)(c),i(r=function(){this.mode=t.bindingMode.oneTime})||r),e.OneWayBindingBehavior=(a=(0,n.mixin)(c),a(o=function(){this.mode=t.bindingMode.oneWay})||o),e.TwoWayBindingBehavior=(s=(0,n.mixin)(c),s(l=function(){this.mode=t.bindingMode.twoWay})||l)}),define("aurelia-templating-resources/throttle-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function n(e){var t=this,n=this.throttleState,i=+new Date-n.last;return i>=n.delay?(clearTimeout(n.timeoutId),n.timeoutId=null,n.last=+new Date,void this.throttledMethod(e)):(n.newValue=e,void(null===n.timeoutId&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.last=+new Date,t.throttledMethod(n.newValue)},n.delay-i))))}Object.defineProperty(e,"__esModule",{value:!0}),e.ThrottleBindingBehavior=void 0;e.ThrottleBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,i){var r=arguments.length<=2||void 0===arguments[2]?200:arguments[2],a="updateTarget";e.callSource?a="callSource":e.updateSource&&e.mode===t.bindingMode.twoWay&&(a="updateSource"),e.throttledMethod=e[a],e.throttledMethod.originalName=a,e[a]=n,e.throttleState={delay:r,last:0,timeoutId:null}},e.prototype.unbind=function(e,t){var n=e.throttledMethod.originalName;e[n]=e.throttledMethod,e.throttledMethod=null,clearTimeout(e.throttleState.timeoutId),e.throttleState=null},e}()}),define("aurelia-templating-resources/debounce-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function n(e){var t=this,n=this.debounceState;return n.immediate?(n.immediate=!1,void this.debouncedMethod(e)):(clearTimeout(n.timeoutId),void(n.timeoutId=setTimeout(function(){return t.debouncedMethod(e)},n.delay)))}Object.defineProperty(e,"__esModule",{value:!0}),e.DebounceBindingBehavior=void 0;e.DebounceBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,i){var r=arguments.length<=2||void 0===arguments[2]?200:arguments[2],a="updateTarget";e.callSource?a="callSource":e.updateSource&&e.mode===t.bindingMode.twoWay&&(a="updateSource"),e.debouncedMethod=e[a],e.debouncedMethod.originalName=a,e[a]=n,e.debounceState={delay:r,timeoutId:null,immediate:"updateTarget"===a}},e.prototype.unbind=function(e,t){var n=e.debouncedMethod.originalName;e[n]=e.debouncedMethod,e.debouncedMethod=null,clearTimeout(e.debounceState.timeoutId),e.debounceState=null},e}()}),define("aurelia-templating-resources/signal-binding-behavior",["exports","./binding-signaler"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignalBindingBehavior=void 0;e.SignalBindingBehavior=function(){function e(e){this.signals=e.signals}return e.inject=function(){return[t.BindingSignaler]},e.prototype.bind=function(e,t){if(!e.updateTarget)throw new Error("Only property bindings and string interpolation bindings can be signaled. Trigger, delegate and call bindings cannot be signaled.");if(3===arguments.length){var n=arguments[2],i=this.signals[n]||(this.signals[n]=[]);i.push(e),e.signalName=n}else{if(!(arguments.length>3))throw new Error("Signal name is required.");for(var r=Array.prototype.slice.call(arguments,2),a=r.length;a--;){var o=r[a],s=this.signals[o]||(this.signals[o]=[]);s.push(e)}e.signalName=r}},e.prototype.unbind=function(e,t){var n=e.signalName;if(e.signalName=null,Array.isArray(n))for(var i=n,r=i.length;r--;){var a=i[r],o=this.signals[a];o.splice(o.indexOf(e),1)}else{var s=this.signals[n];s.splice(s.indexOf(e),1)}},e}()}),define("aurelia-templating-resources/binding-signaler",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingSignaler=void 0;e.BindingSignaler=function(){function e(){this.signals={}}return e.prototype.signal=function(e){var n=this.signals[e];if(n)for(var i=n.length;i--;)n[i].call(t.sourceContext)},e}()}),define("aurelia-templating-resources/update-trigger-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UpdateTriggerBindingBehavior=void 0;var n,i,r="The updateTrigger binding behavior requires at least one event name argument: eg ",a="The updateTrigger binding behavior can only be applied to two-way bindings on input/select elements.";e.UpdateTriggerBindingBehavior=(i=n=function(){function e(e){this.eventManager=e}return e.prototype.bind=function(e,n){for(var i=arguments.length,o=Array(i>2?i-2:0),s=2;s]/gm,function(e){return O[e]})}function n(e){return e.nodeName.toLowerCase()}function i(e,t){var n=e&&e.exec(t);return n&&0===n.index}function r(e){return S.test(e)}function a(e){var t,n,i,a,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",n=T.exec(o))return y(n[1])?n[1]:"no-highlight";for(o=o.split(/\s+/),t=0,i=o.length;t"}function s(e){d+=""}function l(e){("start"===e.event?o:s)(e.node)}for(var c=0,d="",u=[];e.length||i.length;){var m=a();if(d+=t(r.substr(c,m[0].offset-c)),c=m[0].offset,m===e){u.reverse().forEach(s);do l(m.splice(0,1)[0]),m=a();while(m===e&&m.length&&m[0].offset===c);u.reverse().forEach(o)}else"start"===m[0].event?u.push(m[0].node):u.pop(),l(m.splice(0,1)[0])}return d+t(r.substr(c))}function c(e){function t(e){return e&&e.source||e}function n(n,i){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(i?"g":""))}function i(r,a){if(!r.compiled){if(r.compiled=!0,r.keywords=r.keywords||r.beginKeywords,r.keywords){var s={},l=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");s[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"==typeof r.keywords?l("keyword",r.keywords):w(r.keywords).forEach(function(e){l(e,r.keywords[e])}),r.keywords=s}r.lexemesRe=n(r.lexemes||/\w+/,!0),a&&(r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")\\b"),r.begin||(r.begin=/\B|\b/),r.beginRe=n(r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(r.endRe=n(r.end)),r.terminator_end=t(r.end)||"",r.endsWithParent&&a.terminator_end&&(r.terminator_end+=(r.end?"|":"")+a.terminator_end)),r.illegal&&(r.illegalRe=n(r.illegal)),null==r.relevance&&(r.relevance=1),r.contains||(r.contains=[]);var c=[];r.contains.forEach(function(e){e.variants?e.variants.forEach(function(t){c.push(o(e,t))}):c.push("self"===e?r:e)}),r.contains=c,r.contains.forEach(function(e){i(e,r)}),r.starts&&i(r.starts,a);var d=r.contains.map(function(e){return e.beginKeywords?"\\.?("+e.begin+")\\.?":e.begin}).concat([r.terminator_end,r.illegal]).map(t).filter(Boolean);r.terminators=d.length?n(d.join("|"),!0):{exec:function(){return null}}}}i(e)}function d(e,n,r,a){function o(e,t){var n,r;for(n=0,r=t.contains.length;n',a+t+o}function g(){var e,n,i,r;if(!w.keywords)return t(T);for(r="",n=0,w.lexemesRe.lastIndex=0,i=w.lexemesRe.exec(T);i;)r+=t(T.substr(n,i.index-n)),e=m(w,i),e?(N+=e[1],r+=p(e[0],t(i[0]))):r+=t(i[0]),n=w.lexemesRe.lastIndex,i=w.lexemesRe.exec(T);return r+t(T.substr(n))}function h(){var e="string"==typeof w.subLanguage;if(e&&!x[w.subLanguage])return t(T);var n=e?d(w.subLanguage,T,!0,C[w.subLanguage]):u(T,w.subLanguage.length?w.subLanguage:void 0);return w.relevance>0&&(N+=n.relevance),e&&(C[w.subLanguage]=n.top),p(n.language,n.value,!1,!0)}function b(){S+=null!=w.subLanguage?h():g(),T=""}function f(e){S+=e.className?p(e.className,"",!0):"",w=Object.create(e,{parent:{value:w}})}function v(e,t){if(T+=e,null==t)return b(),0;var n=o(t,w);if(n)return n.skip?T+=t:(n.excludeBegin&&(T+=t),b(),n.returnBegin||n.excludeBegin||(T=t)),f(n,t),n.returnBegin?0:t.length;var i=s(w,t);if(i){var r=w;r.skip?T+=t:(r.returnEnd||r.excludeEnd||(T+=t),b(),r.excludeEnd&&(T=t));do w.className&&(S+=k),w.skip||(N+=w.relevance),w=w.parent;while(w!==i.parent);return i.starts&&f(i.starts,""),r.returnEnd?0:t.length}if(l(t,w))throw new Error('Illegal lexeme "'+t+'" for mode "'+(w.className||"")+'"');return T+=t,t.length||1}var _=y(e);if(!_)throw new Error('Unknown language: "'+e+'"');c(_);var E,w=a||_,C={},S="";for(E=w;E!==_;E=E.parent)E.className&&(S=p(E.className,"",!0)+S);var T="",N=0;try{for(var O,A,D=0;;){if(w.terminators.lastIndex=D,O=w.terminators.exec(n),!O)break;A=v(n.substr(D,O.index-D),O[0]),D=O.index+A}for(v(n.substr(D)),E=w;E.parent;E=E.parent)E.className&&(S+=k);return{relevance:N,value:S,language:e,top:w}}catch(e){if(e.message&&e.message.indexOf("Illegal")!==-1)return{relevance:0,value:t(n)};throw e}}function u(e,n){n=n||M.languages||w(x);var i={relevance:0,value:t(e)},r=i;return n.filter(y).forEach(function(t){var n=d(t,e,!1);n.language=t,n.relevance>r.relevance&&(r=n),n.relevance>i.relevance&&(r=i,i=n)}),r.language&&(i.second_best=r),i}function m(e){return M.tabReplace||M.useBR?e.replace(N,function(e,t){return M.useBR&&"\n"===e?"
    ":M.tabReplace?t.replace(/\t/g,M.tabReplace):void 0}):e}function p(e,t,n){var i=t?C[t]:n,r=[e.trim()];return e.match(/\bhljs\b/)||r.push("hljs"),e.indexOf(i)===-1&&r.push(i),r.join(" ").trim()}function g(e){var t,n,i,o,c,g=a(e);r(g)||(M.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):t=e,c=t.textContent,i=g?d(g,c,!0):u(c),n=s(t),n.length&&(o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),o.innerHTML=i.value,i.value=l(n,s(o),c)),i.value=m(i.value),e.innerHTML=i.value,e.className=p(e.className,g,i.language),e.result={language:i.language,re:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance}))}function h(e){M=o(M,e)}function b(){if(!b.called){b.called=!0;var e=document.querySelectorAll("pre code");E.forEach.call(e,g)}}function f(){addEventListener("DOMContentLoaded",b,!1),addEventListener("load",b,!1)}function v(t,n){var i=x[t]=n(e);i.aliases&&i.aliases.forEach(function(e){C[e]=t})}function _(){return w(x)}function y(e){return e=(e||"").toLowerCase(),x[e]||x[C[e]]}var E=[],w=Object.keys,x={},C={},S=/^(no-?highlight|plain|text)$/i,T=/\blang(?:uage)?-([\w-]+)\b/i,N=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,k="",M={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},O={"&":"&","<":"<",">":">"};return e.highlight=d,e.highlightAuto=u,e.fixMarkup=m,e.highlightBlock=g,e.configure=h,e.initHighlighting=b,e.initHighlightingOnLoad=f,e.registerLanguage=v,e.listLanguages=_,e.getLanguage=y,e.inherit=o,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.COMMENT=function(t,n,i){var r=e.inherit({className:"comment",begin:t,end:n,contains:[]},i||{});return r.contains.push(e.PHRASAL_WORDS_MODE),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),r},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e}),define("highlight/lib/languages/1c",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Zа-яА-Я][a-zA-Z0-9_а-яА-Я]*",n="возврат дата для если и или иначе иначеесли исключение конецесли конецпопытки конецпроцедуры конецфункции конеццикла константа не перейти перем перечисление по пока попытка прервать продолжить процедура строка тогда фс функция цикл число экспорт",i="ansitooem oemtoansi ввестивидсубконто ввестидату ввестизначение ввестиперечисление ввестипериод ввестиплансчетов ввестистроку ввестичисло вопрос восстановитьзначение врег выбранныйплансчетов вызватьисключение датагод датамесяц датачисло добавитьмесяц завершитьработусистемы заголовоксистемы записьжурналарегистрации запуститьприложение зафиксироватьтранзакцию значениевстроку значениевстрокувнутр значениевфайл значениеизстроки значениеизстрокивнутр значениеизфайла имякомпьютера имяпользователя каталогвременныхфайлов каталогиб каталогпользователя каталогпрограммы кодсимв командасистемы конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лев лог лог10 макс максимальноеколичествосубконто мин монопольныйрежим названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найти найтипомеченныенаудаление найтиссылки началопериодаби началостандартногоинтервала начатьтранзакцию начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода нрег обработкаожидания окр описаниеошибки основнойжурналрасчетов основнойплансчетов основнойязык открытьформу открытьформумодально отменитьтранзакцию очиститьокносообщений периодстр полноеимяпользователя получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта прав праводоступа предупреждение префиксавтонумерации пустаястрока пустоезначение рабочаядаттьпустоезначение рабочаядата разделительстраниц разделительстрок разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо сигнал симв символтабуляции создатьобъект сокрл сокрлп сокрп сообщить состояние сохранитьзначение сред статусвозврата стрдлина стрзаменить стрколичествострок стрполучитьстроку стрчисловхождений сформироватьпозициюдокумента счетпокоду текущаядата текущеевремя типзначения типзначениястр удалитьобъекты установитьтана установитьтапо фиксшаблон формат цел шаблон",r={begin:'""'},a={className:"string",begin:'"',end:'"|$',contains:[r]},o={className:"string",begin:"\\|",end:'"|$',contains:[r]};return{case_insensitive:!0,lexemes:t,keywords:{keyword:n,built_in:i},contains:[e.C_LINE_COMMENT_MODE,e.NUMBER_MODE,a,o,{className:"function",begin:"(процедура|функция)",end:"$",lexemes:t,keywords:"процедура функция",contains:[{begin:"экспорт",endsWithParent:!0,lexemes:t,keywords:"экспорт",contains:[e.C_LINE_COMMENT_MODE]},{className:"params",begin:"\\(",end:"\\)",lexemes:t,keywords:"знач",contains:[a,o]},e.C_LINE_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:t})]},{className:"meta",begin:"#",end:"$"},{className:"number",begin:"'\\d{2}\\.\\d{2}\\.(\\d{2}|\\d{4})'"}]}}}),define("highlight/lib/languages/abnf",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={ruleDeclaration:"^[a-zA-Z][a-zA-Z0-9-]*",unexpectedChars:"[!@#$^&',?+~`|:]"},n=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=e.COMMENT(";","$"),r={className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},a={className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},o={className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},s={className:"symbol",begin:/%[si]/},l={begin:t.ruleDeclaration+"\\s*=",returnBegin:!0,end:/=/,relevance:0,contains:[{className:"attribute",begin:t.ruleDeclaration}]};return{illegal:t.unexpectedChars,keywords:n.join(" "),contains:[l,i,r,a,o,s,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}}),define("highlight/lib/languages/accesslog",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+\\b",relevance:0},{className:"string",begin:'"(GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|PATCH|TRACE)',end:'"',keywords:"GET POST HEAD PUT DELETE CONNECT OPTIONS PATCH TRACE",illegal:"\\n",relevance:10},{className:"string",begin:/\[/,end:/\]/,illegal:"\\n"},{className:"string",begin:'"',end:'"',illegal:"\\n"}]}}}),define("highlight/lib/languages/actionscript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z_$][a-zA-Z0-9_$]*",n="([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)",i={className:"rest_arg",begin:"[.]{3}",end:t,relevance:10};return{aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:"{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:";",keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:"[{;]",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i]},{begin:":\\s*"+n}]},e.METHOD_GUARD],illegal:/#/}}}),define("highlight/lib/languages/ada",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="\\d(_|\\d)*",n="[eE][-+]?"+t,i=t+"(\\."+t+")?("+n+")?",r="\\w+",a=t+"#"+r+"(\\."+r+")?#("+n+")?",o="\\b("+a+"|"+i+")",s="[A-Za-z](_?[A-Za-z0-9.])*",l="[]{}%#'\"",c=e.COMMENT("--","$"),d={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:l,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:s,endsParent:!0,relevance:0}]};return{case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[c,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+s},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:l},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[c,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:l},d,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:l}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:l},d]}}}),define("highlight/lib/languages/apache",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"number",begin:"[\\$%]\\d+"};return{aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:""},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all"},contains:[{className:"meta",begin:"\\s\\[",end:"\\]$"},{className:"variable",begin:"[\\$%]\\{",end:"\\}",contains:["self",t]},t,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}}),define("highlight/lib/languages/applescript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.inherit(e.QUOTE_STRING_MODE,{illegal:""}),n={className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_NUMBER_MODE,t]},i=e.COMMENT("--","$"),r=e.COMMENT("\\(\\*","\\*\\)",{contains:["self",i]}),a=[i,r,e.HASH_COMMENT_MODE];return{aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year" -},contains:[t,e.C_NUMBER_MODE,{className:"built_in",begin:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{className:"literal",begin:"\\b(text item delimiters|current application|missing value)\\b"},{className:"keyword",begin:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference)|POSIX file|POSIX path|(date|time) string|quoted form)\\b"},{beginKeywords:"on",illegal:"[${=;\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]}].concat(a),illegal:"//|->|=>|\\[\\["}}}),define("highlight/lib/languages/cpp",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},n={className:"string",variants:[{begin:'(u8?|U)?L?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},i={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},r={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(n,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a=e.IDENT_RE+"\\s*\\(",o={keyword:"int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return",built_in:"std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr",literal:"true false nullptr NULL"},s=[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,n];return{aliases:["c","cc","h","c++","h++","hpp"],keywords:o,illegal:"",keywords:o,contains:["self",t]},{begin:e.IDENT_RE+"::",keywords:o},{variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:o,contains:s.concat([{begin:/\(/,end:/\)/,keywords:o,contains:s.concat(["self"]),relevance:0}]),relevance:0},{className:"function",begin:"("+e.IDENT_RE+"[\\*&\\s]+)+"+a,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:o,illegal:/[^\w\s\*&]/,contains:[{begin:a,returnBegin:!0,contains:[e.TITLE_MODE],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,i,t]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r]}]),exports:{preprocessor:r,strings:n,keywords:o}}}}),define("highlight/lib/languages/arduino",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.getLanguage("cpp").exports;return{keywords:{keyword:"boolean byte word string String array "+t.keywords.keyword,built_in:"setup loop while catch for if do goto try switch case else default break continue return KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",literal:"DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW"},contains:[t.preprocessor,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/armasm",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,aliases:["arm"],lexemes:"\\.?"+e.IDENT_RE,keywords:{meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?",end:"\\s"},e.COMMENT("[;@]","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"[=#]\\w+"}],relevance:0}]}}}),define("highlight/lib/languages/xml",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[A-Za-z0-9\\._:-]+",n={endsWithParent:!0,illegal:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0}]},{className:"tag",begin:"|$)",end:">",keywords:{name:"style"},contains:[n],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"|$)",end:">",keywords:{name:"script"},contains:[n],starts:{end:"",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"meta",variants:[{begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?\w+/,end:/\?>/}]},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},n]}]}}}),define("highlight/lib/languages/asciidoc",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,5}) .+?( \\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{className:"bullet",begin:"^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{className:"strong",begin:"\\B\\*(?![\\*\\s])",end:"(\\n{2}|\\*)",contains:[{begin:"\\\\*\\w",relevance:0}]},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0},{className:"emphasis",begin:"_(?![_\\s])",end:"(\\n{2}|_)",relevance:0},{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}}),define("highlight/lib/languages/aspectj",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",n="get set args call";return{keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:t+" "+n,excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:t,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",keywords:t+" "+n},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.)?\w+\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:t,excludeEnd:!0,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:t,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}}),define("highlight/lib/languages/autohotkey",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:/`[\s\S]/};return{case_insensitive:!0,keywords:{keyword:"Break Continue Else Gosub If Loop Return While",literal:"A|0 true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[{className:"built_in",begin:"A_[a-zA-Z0-9]+"},t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%",end:"%",illegal:"\\n",contains:[t]},{className:"symbol",contains:[t],variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{begin:",\\s*,"}]}}}),define("highlight/lib/languages/autoit",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="ByRef Case Const ContinueCase ContinueLoop Default Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",n="True False And Null Not Or",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait",r={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},o={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},s={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},l={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[o,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},o,r]},c={className:"symbol",begin:"@[A-z0-9_]+"},d={className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[a,o,s]}]};return{case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:i,literal:n},contains:[r,a,o,s,l,c,d]}}}),define("highlight/lib/languages/avrasm",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,lexemes:"\\.?"+e.IDENT_RE,keywords:{keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}}),define("highlight/lib/languages/awk",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{keywords:{keyword:n},contains:[t,i,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}}),define("highlight/lib/languages/axapta",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:"false int abstract private char boolean static null if for true while long throw finally protected final return void enum else break new catch byte super case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]}]}}}),define("highlight/lib/languages/bash",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},i={className:"string",begin:/'/,end:/'/};return{aliases:["sh","zsh"],lexemes:/-?[a-z\._]+/,keywords:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},contains:[{className:"meta",begin:/^#![^\n]+sh\s*$/,relevance:10},{className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},e.HASH_COMMENT_MODE,n,i,t]}}}),define("highlight/lib/languages/basic",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,illegal:"^.",lexemes:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keywords:{keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF|0 THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b([0-9]+[0-9edED.]*[#!]?)",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}}),define("highlight/lib/languages/bnf",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[{className:"attribute",begin://},{begin:/::=/,starts:{end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}]}}}),define("highlight/lib/languages/brainfuck",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"literal",begin:"[\\+\\-]",relevance:0};return{aliases:["bf"],contains:[e.COMMENT("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/\+\+|\-\-/,returnBegin:!0,contains:[t]},t]}}}),define("highlight/lib/languages/cal",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",n="false true",i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{ -relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},o={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},s={className:"string",begin:'"',end:'"'},l={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[r,a]}].concat(i)},c={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[e.TITLE_MODE,l]};return{case_insensitive:!0,keywords:{keyword:t,literal:n},illegal:/\/\*/,contains:[r,a,o,s,e.NUMBER_MODE,c,l]}}}),define("highlight/lib/languages/capnproto",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}}),define("highlight/lib/languages/ceylon",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",n="shared abstract formal default actual variable late native deprecatedfinal sealed annotation suppressWarnings small",i="doc by license see throws tagged",r={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},a=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[r]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return r.contains=a,{keywords:{keyword:t+" "+n,meta:i},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?:\\:"[^"]*")?'}].concat(a)}}}),define("highlight/lib/languages/clojure",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={"builtin-name":"def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},n="a-zA-Z_\\-!.?+*=<>&#'",i="["+n+"]["+n+"0-9/;:]*",r="[-+]?\\d+(\\.\\d+)?",a={begin:i,relevance:0},o={className:"number",begin:r,relevance:0},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b(true|false|nil)\b/},d={begin:"[\\[\\{]",end:"[\\]\\}]"},u={className:"comment",begin:"\\^"+i},m=e.COMMENT("\\^\\{","\\}"),p={className:"symbol",begin:"[:]{1,2}"+i},g={begin:"\\(",end:"\\)"},h={endsWithParent:!0,relevance:0},b={keywords:t,lexemes:i,className:"name",begin:i,starts:h},f=[g,s,u,m,l,p,d,o,c,a];return g.contains=[e.COMMENT("comment",""),b,h],h.contains=f,d.contains=f,{aliases:["clj"],illegal:/\S/,contains:[g,s,u,m,l,p,d,o,c]}}}),define("highlight/lib/languages/clojure-repl",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}}),define("highlight/lib/languages/cmake",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_minimum_required cmake_policy configure_file create_test_sourcelist define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories load_cache load_command macro mark_as_advanced message option output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_link_libraries try_compile try_run unset variable_watch while build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or equal less greater strless strgreater strequal matches"},contains:[{className:"variable",begin:"\\${",end:"}"},e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}}),define("highlight/lib/languages/coffeescript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},n="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/}/,keywords:t},r=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,i]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[i,e.HASH_COMMENT_MODE]},{begin:"//[gim]*",relevance:0},{begin:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{begin:"@"+n},{begin:"`",end:"`",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];i.contains=r;var a=e.inherit(e.TITLE_MODE,{begin:n}),o="(\\(.*\\))?\\s*\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(r)}]};return{aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,contains:r.concat([e.COMMENT("###","###"),e.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[a,s]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}),define("highlight/lib/languages/coq",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{keyword:"_ as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies DependentDerive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}}),define("highlight/lib/languages/cos",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},n={className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},i="property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii";return{case_insensitive:!0,aliases:["cos","cls"],keywords:i,contains:[n,t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}}),define("highlight/lib/languages/crmsh",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="primitive rsc_template",n="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml",i="property rsc_defaults op_defaults",r="params meta operations op rule attributes utilization",a="read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\",o="number string",s="Master Started Slave Stopped start promote demote stop monitor true false";return{aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:r+" "+a+" "+o,literal:s},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+n.split(" ").join("|")+")\\s+",keywords:n,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:i,starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z\$_\#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}}),define("highlight/lib/languages/crystal",["require","exports","module"],function(e,t,n){n.exports=function(e){function t(e,t){var n=[{begin:e,end:t}];return n[0].contains=n,n}var n="(_[uif](8|16|32|64))?",i="[a-zA-Z_]\\w*[!?=]?",r="!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",a="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\][=?]?",o={keyword:"abstract alias as asm begin break case class def do else elsif end ensure enum extend for fun if ifdef include instance_sizeof is_a? lib macro module next of out pointerof private protected rescue responds_to? return require self sizeof struct super then type typeof union unless until when while with yield __DIR__ __FILE__ __LINE__",literal:"false nil true"},s={className:"subst",begin:"#{",end:"}",keywords:o},l={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o},c={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%w?\\(",end:"\\)",contains:t("\\(","\\)")},{begin:"%w?\\[",end:"\\]",contains:t("\\[","\\]")},{begin:"%w?{",end:"}",contains:t("{","}")},{begin:"%w?<",end:">",contains:t("<",">")},{begin:"%w?/",end:"/"},{begin:"%w?%",end:"%"},{begin:"%w?-",end:"-"},{begin:"%w?\\|",end:"\\|"}],relevance:0},d={begin:"("+r+")\\s*",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/",end:"/[a-z]*"},{begin:"%r\\(",end:"\\)",contains:t("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:t("\\[","\\]")},{begin:"%r{",end:"}",contains:t("{","}")},{begin:"%r<",end:">",contains:t("<",">")},{begin:"%r/",end:"/"},{begin:"%r%",end:"%"},{begin:"%r-",end:"-"},{begin:"%r\\|",end:"\\|"}]}],relevance:0},u={className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"%r\\(",end:"\\)",contains:t("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:t("\\[","\\]")},{begin:"%r{",end:"}",contains:t("{","}")},{begin:"%r<",end:">",contains:t("<",">")},{begin:"%r/",end:"/"},{begin:"%r%",end:"%"},{begin:"%r-",end:"-"},{begin:"%r\\|",end:"\\|"}],relevance:0},m={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"})]},p=[l,c,d,u,m,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"})],relevance:10},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})],relevance:5},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[c,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]*[01])"+n},{begin:"\\b0o([0-7_]*[0-7])"+n},{begin:"\\b0x([A-Fa-f0-9_]*[A-Fa-f0-9])"+n},{begin:"\\b(([0-9][0-9_]*[0-9]|[0-9])(\\.[0-9_]*[0-9])?([eE][+-]?[0-9_]*[0-9])?)"+n}],relevance:0}];return s.contains=p,l.contains=p.slice(1),{aliases:["cr"],lexemes:i,keywords:o,contains:p}}}),define("highlight/lib/languages/cs",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double else enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while nameof add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield",literal:"null false true"},n={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},i=e.inherit(n,{illegal:/\n/}),r={className:"subst",begin:"{",end:"}",keywords:t},a=e.inherit(r,{illegal:/\n/}),o={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},e.BACKSLASH_ESCAPE,a]},s={className:"string",begin:/\$@"/,end:'"',contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},r]},l=e.inherit(s,{illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},a]});r.contains=[s,o,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],a.contains=[l,o,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var c={variants:[s,o,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},d=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?";return{aliases:["csharp"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},c,e.C_NUMBER_MODE,{beginKeywords:"class interface",end:/[{;=]/,illegal:/[^\s:]/,contains:[e.TITLE_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",end:/[{;=]/,illegal:/[^\s:]/,contains:[e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new return throw await",relevance:0},{className:"function",begin:"("+d+"\\s+)+"+e.IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[c,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}}}),define("highlight/lib/languages/csp",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!1,lexemes:"[a-zA-Z][a-zA-Z0-9_-]*",keywords:{keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}}),define("highlight/lib/languages/css",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",n={begin:/[A-Z\_\.\-]+\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:t,relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,n]}]}}}),define("highlight/lib/languages/d",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",r="0[bB][01_]+",a="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+a,s="([eE][+-]?"+i+")",l="("+i+"(\\.\\d*|"+s+")|\\d+\\."+i+i+"|\\."+n+s+"?)",c="(0[xX]("+a+"\\."+a+"|\\.?"+a+")[pP][+-]?"+i+")",d="("+n+"|"+r+"|"+o+")",u="("+c+"|"+l+")",m="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",p={className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},g={className:"number",begin:"\\b("+u+"([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",relevance:0},h={className:"string",begin:"'("+m+"|.)",end:"'",illegal:"."},b={begin:m,relevance:0},f={className:"string",begin:'"',contains:[b],end:'"[cwd]?'},v={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},_={className:"string",begin:"`",end:"`[cwd]?"},y={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},E={className:"string",begin:'q"\\{',end:'\\}"'},w={className:"meta",begin:"^#!",end:"$",relevance:5},x={className:"meta",begin:"#(line)",end:"$",relevance:5},C={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},S=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{lexemes:e.UNDERSCORE_IDENT_RE,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,S,y,f,v,_,E,g,p,h,w,x,C]}}}),define("highlight/lib/languages/markdown",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$"},{begin:"^.+?\\n[=-]{2,}$"}]},{begin:"<",end:">",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```w*s*$",end:"^```s*$"},{begin:"`.+?`"},{begin:"^( {4}|\t)",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}}),define("highlight/lib/languages/dart",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"subst",begin:"\\$\\{",end:"}",keywords:"true false null this is new super"},n={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]}]};t.contains=[e.C_NUMBER_MODE,n];var i={keyword:"assert async await break case catch class const continue default do else enum extends false final finally for if in is new null rethrow return super switch sync this throw true try var void while with yield abstract as dynamic export external factory get implements import library operator part set static typedef",built_in:"print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num document window querySelector querySelectorAll Element ElementList"};return{keywords:i,contains:[n,e.COMMENT("/\\*\\*","\\*/",{subLanguage:"markdown"}),e.COMMENT("///","$",{subLanguage:"markdown"}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}}),define("highlight/lib/languages/delphi",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},r={className:"string",begin:/(#\d+)+/},a={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},o={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,r]}].concat(n)};return{aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,r,e.NUMBER_MODE,a,o].concat(n)}}}),define("highlight/lib/languages/diff",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^\-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/\*{5}/,end:/\*{5}$/}]},{className:"addition",begin:"^\\+",end:"$"},{className:"deletion",begin:"^\\-",end:"$"},{className:"addition",begin:"^\\!",end:"$"}]}}}),define("highlight/lib/languages/django",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:/\|[A-Za-z]+:?/,keywords:{ -name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%}/,/\{%\s*endcomment\s*%}/),e.COMMENT(/\{#/,/#}/),{className:"template-tag",begin:/\{%/,end:/%}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/}}/,contains:[t]}]}}}),define("highlight/lib/languages/dns",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}}),define("highlight/lib/languages/dockerfile",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env user onbuild",contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck",starts:{end:/[^\\]\n/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r={className:"variable",begin:"\\&[a-z\\d_]*\\b"},a={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",begin:"<",end:">",contains:[n,r]},l={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0},c={className:"class",begin:"/\\s*{",end:"};",relevance:10,contains:[r,a,o,l,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t]};return{keywords:"",contains:[c,r,a,o,l,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,i,{begin:e.IDENT_RE+"::",keywords:""}]}}}),define("highlight/lib/languages/dust",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="if eq ne lt lte gt gte select default math sep";return{aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:t}]}}}),define("highlight/lib/languages/ebnf",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z][a-zA-Z-]*([\s-]+[a-zA-Z][a-zA-Z]*)*/},i={className:"meta",begin:/\?.*\?/},r={begin:/=/,end:/;/,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{illegal:/\S/,contains:[t,n,r]}}}),define("highlight/lib/languages/elixir",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?",n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i="and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote",r={className:"subst",begin:"#\\{",end:"}",lexemes:t,keywords:i},a={className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:t,endsParent:!0})]},s=e.inherit(o,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),l=[a,e.HASH_COMMENT_MODE,s,o,{className:"symbol",begin:":(?!\\s)",contains:[a,{begin:n}],relevance:0},{className:"symbol",begin:t+":",relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{begin:"->"},{begin:"("+e.RE_STARTERS_RE+")\\s*",contains:[e.HASH_COMMENT_MODE,{className:"regexp",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return r.contains=l,{lexemes:t,keywords:i,contains:l}}}),define("highlight/lib/languages/elm",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},r={begin:"{",end:"}",contains:i.contains};return{keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,i,r,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}}),define("highlight/lib/languages/ruby",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",n={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},i={className:"doctag",begin:"@[A-Za-z]+"},r={begin:"#<",end:">"},a=[e.COMMENT("#","$",{contains:[i]}),e.COMMENT("^\\=begin","^\\=end",{contains:[i],relevance:10}),e.COMMENT("^__END__","\\n$")],o={className:"subst",begin:"#\\{",end:"}",keywords:n},s={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[qQwWx]?\\(",end:"\\)"},{begin:"%[qQwWx]?\\[",end:"\\]"},{begin:"%[qQwWx]?{",end:"}"},{begin:"%[qQwWx]?<",end:">"},{begin:"%[qQwWx]?/",end:"/"},{begin:"%[qQwWx]?%",end:"%"},{begin:"%[qQwWx]?-",end:"-"},{begin:"%[qQwWx]?\\|",end:"\\|"},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<(-?)\w+$/,end:/^\s*\w+$/}]},l={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:n},c=[s,r,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(a)},{className:"function",beginKeywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:t}),l].concat(a)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[s,{begin:t}],relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{className:"params",begin:/\|/,end:/\|/,keywords:n},{begin:"("+e.RE_STARTERS_RE+")\\s*",contains:[r,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,o],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r{",end:"}[a-z]*"},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a),relevance:0}].concat(a);o.contains=c,l.contains=c;var d="[>?]>",u="[\\w#]+\\(\\w+\\):\\d+:\\d+>",m="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",p=[{begin:/^\s*=>/,starts:{end:"$",contains:c}},{className:"meta",begin:"^("+d+"|"+u+"|"+m+")",starts:{end:"$",contains:c}}];return{aliases:["rb","gemspec","podspec","thor","irb"],keywords:n,illegal:/\/\*/,contains:a.concat(p).concat(c)}}}),define("highlight/lib/languages/erb",["require","exports","module"],function(e,t,n){n.exports=function(e){return{subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}}),define("highlight/lib/languages/erlang-repl",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\?(::)?([A-Z]\\w*(::)?)+"},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}}),define("highlight/lib/languages/erlang",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},r=e.COMMENT("%","$"),a={className:"number",begin:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:"{",end:"}",relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},u={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:"{",end:"}",relevance:0}]},m={beginKeywords:"fun receive if try case",end:"end",keywords:i};m.contains=[r,o,e.inherit(e.APOS_STRING_MODE,{className:""}),m,s,e.QUOTE_STRING_MODE,a,l,c,d,u];var p=[r,o,m,s,e.QUOTE_STRING_MODE,a,l,c,d,u];s.contains[1].contains=p,l.contains=p,u.contains[1].contains=p;var g={className:"params",begin:"\\(",end:"\\)",contains:p};return{aliases:["erl"],keywords:i,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[g,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:i,contains:p}},r,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,lexemes:"-"+e.IDENT_RE,keywords:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec",contains:[g]},a,e.QUOTE_STRING_MODE,u,c,d,l,{begin:/\.$/}]}}}),define("highlight/lib/languages/excel",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["xlsx","xls"],case_insensitive:!0,lexemes:/[a-zA-Z][\w\.]*/,keywords:{built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF|0 IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}}),define("highlight/lib/languages/fix",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}}),define("highlight/lib/languages/fortran",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"params",begin:"\\(",end:"\\)"},n={literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image"};return{case_insensitive:!0,aliases:["f90","f95"],keywords:n,illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,t]},e.COMMENT("!","$",{relevance:0}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}}}),define("highlight/lib/languages/fsharp",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:"<",end:">",contains:[e.inherit(e.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},e.COMMENT("\\(\\*","\\*\\)"),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE,t]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[e.BACKSLASH_ESCAPE]},e.C_LINE_COMMENT_MODE,e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/gams",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na","built-in":"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},n={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/\=[lgenxc]=/},{begin:/\$/}]},r={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:t,contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},o={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[r,a,{className:"comment",begin:/([ ]*[a-z0-9&#*=?@>\\<:\-,()$\[\]_.{}!+%^]+)+/,relevance:0}]};return{aliases:["gms"],case_insensitive:!0,keywords:t,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,o]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[o]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z][a-z0-9_]+/},n,i]},e.C_NUMBER_MODE,i]}}}),define("highlight/lib/languages/gauss",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"and bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new not open or output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav indx integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname threadBegin threadEnd threadEndFor threadFor threadJoin threadStat time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics", -literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS"},n={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i=e.UNDERSCORE_IDENT_RE+"\\s*\\(?",r=[{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}];return{aliases:["gss"],case_insensitive:!0,keywords:t,illegal:"(\\{[%#]|[%#]\\})",contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("@","@"),n,{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"function",beginKeywords:"proc keyword",end:";",excludeEnd:!0,keywords:t,contains:[{begin:i,returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n].concat(r)},{className:"function",beginKeywords:"fn",end:";",excludeEnd:!0,keywords:t,contains:[{begin:i+e.IDENT_RE+"\\)?\\s*\\=\\s*",returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE].concat(r)},{className:"function",begin:"\\bexternal (proc|keyword|fn)\\s+",end:";",excludeEnd:!0,keywords:t,contains:[{begin:i,returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"\\bexternal (matrix|string|array|sparse matrix|struct "+e.IDENT_RE+")\\s+",end:";",excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}}}),define("highlight/lib/languages/gcode",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[A-Z_][A-Z0-9_.]*",n="\\%",i="IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR",r={className:"meta",begin:"([O])([0-9]+)"},a=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?([0-9]*\\.?[0-9]+\\.?))|"+e.C_NUMBER_RE}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",end:"([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{aliases:["nc"],case_insensitive:!0,lexemes:t,keywords:i,contains:[{className:"meta",begin:n},r].concat(a)}}}),define("highlight/lib/languages/gherkin",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}}),define("highlight/lib/languages/glsl",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{keyword:"break continue discard do else for if return whileattribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBufferiimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}}),define("highlight/lib/languages/go",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],keywords:t,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:"#{",starts:{end:"}",subLanguage:"ruby"}}]}}}),define("highlight/lib/languages/handlebars",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={"builtin-name":"each in with if else unless bindattr action collection debugger log outlet template unbound view yield"};return{aliases:["hbs","html.hbs","html.handlebars"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,keywords:t,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,keywords:t}]}}}),define("highlight/lib/languages/haskell",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},n={className:"meta",begin:"{-#",end:"#-}"},i={className:"meta",begin:"^#",end:"$"},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},a={begin:"\\(",end:"\\)",illegal:'"',contains:[n,i,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]},o={begin:"{",end:"}",contains:a.contains};return{aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[a,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[a,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[r,a,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,r,a,o,t]},{beginKeywords:"default",end:"$",contains:[r,a,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[r,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,i,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,r,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}}),define("highlight/lib/languages/haxe",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)";return{aliases:["hx"],keywords:{keyword:"break callback case cast catch class continue default do dynamic else enum extends extern for function here if implements import in inline interface never new override package private public return static super switch this throw trace try typedef untyped using var while",literal:"true false null"},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.TITLE_MODE]},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"function",beginKeywords:"function",end:"[{;]",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:":\\s*"+t}]}]}}}),define("highlight/lib/languages/hsp",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,lexemes:/[\w\._]+/,keywords:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:'{"',end:'"}',contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/htmlbars",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view",n={illegal:/\}\}/,begin:/[a-zA-Z0-9_]+=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[a-zA-Z0-9_]+/}]},i=({illegal:/\}\}/,begin:/\)/,end:/\)/,contains:[{begin:/[a-zA-Z\.\-]+/,keywords:{built_in:t},starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{endsWithParent:!0,relevance:0,keywords:{keyword:"as",built_in:t},contains:[e.QUOTE_STRING_MODE,n,e.NUMBER_MODE]});return{case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.\-]+/,keywords:{"builtin-name":t},starts:i}]},{className:"template-variable",begin:/\{\{[a-zA-Z][a-zA-Z\-]+/,end:/\}\}/,keywords:{keyword:"as",built_in:t},contains:[e.QUOTE_STRING_MODE]}]}}});define("highlight/lib/languages/http",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],illegal:"\\S",contains:[{begin:"^"+t,end:"$",contains:[{className:"number",begin:"\\b\\d{3}\\b"}]},{begin:"^[A-Z]+ (.*?) "+t+"$",returnBegin:!0,end:"$",contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{begin:t},{className:"keyword",begin:"[A-Z]+"}]},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,illegal:"\\n|\\s|=",starts:{end:"$",relevance:0}},{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}]}}});define("highlight/lib/languages/inform7",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="\\[",n="\\]";return{aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:t,end:n}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:t,end:n,contains:["self"]}]}}}),define("highlight/lib/languages/ini",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]};return{aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(";","$"),e.HASH_COMMENT_MODE,{className:"section",begin:/^\s*\[+/,end:/\]+/},{begin:/^[a-z0-9\[\]_-]+\s*=\s*/,end:"$",returnBegin:!0,contains:[{className:"attr",begin:/[a-z0-9\[\]_-]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\bon|off|true|false|yes|no\b/},{className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)}/}]},t,{className:"number",begin:/([\+\-]+)?[\d]+_[\d_]+/},e.NUMBER_MODE]}]}]}}}),define("highlight/lib/languages/irpf90",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"params",begin:"\\(",end:"\\)"},n={literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here" -};return{case_insensitive:!0,keywords:n,illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,t]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}}}),define("highlight/lib/languages/java",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.UNDERSCORE_IDENT_RE+"(<"+e.UNDERSCORE_IDENT_RE+"(\\s*,\\s*"+e.UNDERSCORE_IDENT_RE+")*>)?",n="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports",i="\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",r={className:"number",begin:i,relevance:0};return{aliases:["jsp"],keywords:n,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"("+t+"\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:n,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r,{className:"meta",begin:"@[A-Za-z]+"}]}}}),define("highlight/lib/languages/javascript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},r={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},a={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,r]};r.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,i,e.REGEXP_MODE];var o=r.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:o}]}]},{begin://,subLanguage:"xml",contains:[{begin:/<\w+\s*\/>/,skip:!0},{begin:/<\w+/,end:/(\/\w+|\w+\/)>/,skip:!0,contains:[{begin:/<\w+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:o}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}}),define("highlight/lib/languages/json",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={literal:"true false null"},n=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],i={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:t},r={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(i,{begin:/:/})],illegal:"\\S"},a={begin:"\\[",end:"\\]",contains:[e.inherit(i)],illegal:"\\S"};return n.splice(n.length,0,r,a),{contains:n,keywords:t,illegal:"\\S"}}}),define("highlight/lib/languages/julia",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"in abstract baremodule begin bitstype break catch ccall const continue do else elseif end export finally for function global if immutable import importall let local macro module quote return try type typealias using while",literal:"true false ARGS CPU_CORES C_NULL DL_LOAD_PATH DevNull ENDIAN_BOM ENV I|0 Inf Inf16 Inf32 InsertionSort JULIA_HOME LOAD_PATH MS_ASYNC MS_INVALIDATE MS_SYNC MergeSort NaN NaN16 NaN32 OS_NAME QuickSort RTLD_DEEPBIND RTLD_FIRST RTLD_GLOBAL RTLD_LAZY RTLD_LOCAL RTLD_NODELETE RTLD_NOLOAD RTLD_NOW RoundDown RoundFromZero RoundNearest RoundToZero RoundUp STDERR STDIN STDOUT VERSION WORD_SIZE catalan cglobal e|0 eu|0 eulergamma golden im nothing pi γ π φ Inf64 NaN64 RoundNearestTiesAway RoundNearestTiesUp ",built_in:"ANY ASCIIString AbstractArray AbstractRNG AbstractSparseArray Any ArgumentError Array Associative Base64Pipe Bidiagonal BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError Box CFILE Cchar Cdouble Cfloat Char CharString Cint Clong Clonglong ClusterManager Cmd Coff_t Colon Complex Complex128 Complex32 Complex64 Condition Cptrdiff_t Cshort Csize_t Cssize_t Cuchar Cuint Culong Culonglong Cushort Cwchar_t DArray DataType DenseArray Diagonal Dict DimensionMismatch DirectIndexString Display DivideError DomainError EOFError EachLine Enumerate ErrorException Exception Expr Factorization FileMonitor FileOffset Filter Float16 Float32 Float64 FloatRange FloatingPoint Function GetfieldNode GotoNode Hermitian IO IOBuffer IOStream IPv4 IPv6 InexactError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException IntrinsicFunction KeyError LabelNode LambdaStaticData LineNumberNode LoadError LocalProcess MIME MathConst MemoryError MersenneTwister Method MethodError MethodTable Module NTuple NewvarNode Nothing Number ObjectIdDict OrdinalRange OverflowError ParseError PollingFileWatcher ProcessExitedException ProcessGroup Ptr QuoteNode Range Range1 Ranges Rational RawFD Real Regex RegexMatch RemoteRef RepString RevString RopeString RoundingMode Set SharedArray Signed SparseMatrixCSC StackOverflowError Stat StatStruct StepRange String SubArray SubString SymTridiagonal Symbol SymbolNode Symmetric SystemError Task TextDisplay Timer TmStruct TopNode Triangular Tridiagonal Type TypeConstructor TypeError TypeName TypeVar UTF16String UTF32String UTF8String UdpSocket Uint Uint128 Uint16 Uint32 Uint64 Uint8 UndefRefError UndefVarError UniformScaling UnionType UnitRange Unsigned Vararg VersionNumber WString WeakKeyDict WeakRef Woodbury Zip AbstractChannel AbstractFloat AbstractString AssertionError Base64DecodePipe Base64EncodePipe BufferStream CapturedException CartesianIndex CartesianRange Channel Cintmax_t CompositeException Cstring Cuintmax_t Cwstring Date DateTime Dims Enum GenSym GlobalRef HTML InitError InvalidStateException Irrational LinSpace LowerTriangular NullException Nullable OutOfMemoryError Pair PartialQuickSort Pipe RandomDevice ReadOnlyMemoryError ReentrantLock Ref RemoteException SegmentationFault SerializationState SimpleVector TCPSocket Text Tuple UDPSocket UInt UInt128 UInt16 UInt32 UInt64 UInt8 UnicodeError Union UpperTriangular Val Void WorkerConfig AbstractMatrix AbstractSparseMatrix AbstractSparseVector AbstractVecOrMat AbstractVector DenseMatrix DenseVecOrMat DenseVector Matrix SharedMatrix SharedVector StridedArray StridedMatrix StridedVecOrMat StridedVector VecOrMat Vector "},n="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",i={lexemes:n,keywords:t,illegal:/<\//},r={className:"type",begin:/::/},a={className:"type",begin:/<:/},o={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},s={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},l={className:"subst",begin:/\$\(/,end:/\)/,keywords:t},c={className:"variable",begin:"\\$"+n},d={className:"string",contains:[e.BACKSLASH_ESCAPE,l,c],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},u={className:"string",contains:[e.BACKSLASH_ESCAPE,l,c],begin:"`",end:"`"},m={className:"meta",begin:"@"+n},p={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return i.contains=[o,s,r,a,d,u,m,p,e.HASH_COMMENT_MODE],l.contains=i.contains,i}}),define("highlight/lib/languages/kotlin",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline interface annotation data sealed internal infix operator out by constructor super trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},r={className:"subst",variants:[{begin:"\\$"+e.UNDERSCORE_IDENT_RE},{begin:"\\${",end:"}",contains:[e.APOS_STRING_MODE,e.C_NUMBER_MODE]}]},a={className:"string",variants:[{begin:'"""',end:'"""',contains:[r]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,r]}]},o={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},s={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"meta-string"})]}]};return{keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,i,o,s,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,illegal:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,s,a,e.C_NUMBER_MODE]},e.C_BLOCK_COMMENT_MODE]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},o,s]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/lasso",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",i="\\]|\\?>",r={literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},a=e.COMMENT("",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[a]}},s={className:"meta",begin:"\\[/noprocess|"+n},l={className:"symbol",begin:"'"+t+"'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{aliases:["ls","lassoscript"],case_insensitive:!0,lexemes:t+"|&[lg]t;",keywords:r,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[a]}},o,s,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",lexemes:t+"|&[lg]t;",keywords:r,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[a]}},o,s].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}}),define("highlight/lib/languages/ldif",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},e.HASH_COMMENT_MODE]}}}),define("highlight/lib/languages/less",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[\\w-]+",n="("+t+"|@{"+t+"})",i=[],r=[],a=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},o=function(e,t,n){return{className:e,begin:t,relevance:n}},s={begin:"\\(",end:"\\)",contains:r,relevance:0};r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a("'"),a('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},o("number","#[0-9A-Fa-f]+\\b"),s,o("variable","@@?"+t,10),o("variable","@{"+t+"}"),o("built_in","~?`[^`]*?`"),{className:"attribute",begin:t+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var l=r.concat({begin:"{",end:"}",contains:i}),c={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(r)},d={begin:n+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:n,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:r}}]},u={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:r,relevance:0}},m={className:"variable",variants:[{begin:"@"+t+"\\s*:",relevance:15},{begin:"@"+t}],starts:{end:"[;}]",returnEnd:!0,contains:l}},p={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:n,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,o("keyword","all\\b"),o("variable","@{"+t+"}"),o("selector-tag",n+"%?",0),o("selector-id","#"+n),o("selector-class","\\."+n,0),o("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:l},{begin:"!important"}]};return i.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u,m,d,p),{case_insensitive:!0,illegal:"[=>'/<($\"]",contains:i}}}),define("highlight/lib/languages/lisp",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",n="\\|[^]*?\\|",i="(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?",r={className:"meta",begin:"^#!",end:"$"},a={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),c={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+t},u={begin:t,relevance:0},m={begin:n},p={begin:"\\(",end:"\\)",contains:["self",a,s,o,u]},g={contains:[o,s,c,d,p,u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},h={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},b={begin:"\\(\\s*",end:"\\)"},f={endsWithParent:!0,relevance:0};return b.contains=[{className:"name",variants:[{begin:t},{begin:n}]},f],f.contains=[g,h,b,a,o,s,l,c,d,m,u],{illegal:/\S/,contains:[o,r,a,s,l,g,h,b,u]}}}),define("highlight/lib/languages/livecodeserver",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:"\\b[gtps][A-Z]+[A-Za-z0-9_\\-]*\\b|\\$_[A-Z]+",relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),r=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract union unload wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[r,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(n),illegal:";$|^\\[|^=|&|{"}}}),define("highlight/lib/languages/livescript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger case default function var with then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super case default function var void const let enum export import native __hasProp __extends __slice __bind __indexOf",literal:"true false null undefined yes no on off it that void",built_in:"npm require console print module global window document"},n="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",i=e.inherit(e.TITLE_MODE,{begin:n}),r={className:"subst",begin:/#\{/,end:/}/,keywords:t},a={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},o=[e.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,r,a]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,a]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[r,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{begin:"@"+n},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];r.contains=o;var s={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(o)}]};return{aliases:["ls"],keywords:t,illegal:/\/\*/,contains:o.concat([e.COMMENT("\\/\\*","\\*\\/"),e.HASH_COMMENT_MODE,{className:"function",contains:[i,s],returnBegin:!0,variants:[{begin:"("+n+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?",end:"\\->\\*?"},{begin:"("+n+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\))?\\s*\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+n+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[i]},i]},{begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}),define("highlight/lib/languages/lsl",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"subst",begin:/\\[tn"\\]/},n={className:"string",begin:'"',end:'"',contains:[t]},i={className:"number",begin:e.C_NUMBER_RE},r={className:"literal",variants:[{begin:"\\b(?:PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(?:XP_ERROR_(?:EXPERIENCES_DISABLED|EXPERIENCE_(?:DISABLED|SUSPENDED)|INVALID_(?:EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(?:FOUND|PERMITTED(?:_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(?:PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(?:_OBJECT)?|(?:DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(?:FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(?:_(?:BY_(?:LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(?:PARCEL(?:_OWNER)?|REGION)))?|CAMERA_(?:PITCH|DISTANCE|BEHINDNESS_(?:ANGLE|LAG)|(?:FOCUS|POSITION)(?:_(?:THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(?:ROOT|SET|ALL_(?:OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(?:IVE|_(?:ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(?:FWD|BACK|(?:ROT_)?(?:LEFT|RIGHT)|UP|DOWN|(?:ML_)?LBUTTON)|PERMISSION_(?:RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(?:CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(?:TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(?:INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(?:_START)?|TELEPORT|MEDIA)|OBJECT_(?:CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(?:PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_ON_REZ|NAME|DESC|POS|PRIM_(?:COUNT|EQUIVALENCE)|RETURN_(?:PARCEL(?:_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP|CREATOR|ATTACHED_POINT|RENDER_WEIGHT|(?:BODY_SHAPE|PATHFINDING)_TYPE|(?:RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(?:MEMORY|TIME))|TYPE_(?:INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(?:DEBUG|PUBLIC)_CHANNEL|ATTACH_(?:AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](?:SHOULDER|HAND|FOOT|EAR|EYE|[UL](?:ARM|LEG)|HIP)|(?:LEFT|RIGHT)_PEC|HUD_(?:CENTER_[12]|TOP_(?:RIGHT|CENTER|LEFT)|BOTTOM(?:_(?:RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(?:BASE|TIP)|[LR]WING|FACE_(?:JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(?:LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(?:ONLINE|NAME|BORN|SIM_(?:POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(?:ON_FILE|USED)|REMOTE_DATA_(?:CHANNEL|REQUEST|REPLY)|PSYS_(?:PART_(?:BF_(?:ZERO|ONE(?:_MINUS_(?:DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(?:START|END)_(?:COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(?:RIBBON|WIND|INTERP_(?:COLOR|SCALE)|BOUNCE|FOLLOW_(?:SRC|VELOCITY)|TARGET_(?:POS|LINEAR)|EMISSIVE)_MASK)|SRC_(?:MAX_AGE|PATTERN|ANGLE_(?:BEGIN|END)|BURST_(?:RATE|PART_COUNT|RADIUS|SPEED_(?:MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(?:DROP|EXPLODE|ANGLE(?:_CONE(?:_EMPTY)?)?)))|VEHICLE_(?:REFERENCE_FRAME|TYPE_(?:NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(?:LINEAR|ANGULAR)_(?:FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(?:HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(?:LINEAR|ANGULAR)_(?:DEFLECTION_(?:EFFICIENCY|TIMESCALE)|MOTOR_(?:DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(?:EFFICIENCY|TIMESCALE)|BANKING_(?:EFFICIENCY|MIX|TIMESCALE)|FLAG_(?:NO_DEFLECTION_UP|LIMIT_(?:ROLL_ONLY|MOTOR_UP)|HOVER_(?:(?:WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(?:STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(?:ALPHA_MODE(?:_(?:BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(?:_(?:BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(?:DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(?:_(?:STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(?:NONE|LOW|MEDIUM|HIGH)|BUMP_(?:NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(?:DEFAULT|PLANAR)|SCULPT_(?:TYPE_(?:SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(?:MIRROR|INVERT))|PHYSICS(?:_(?:SHAPE_(?:CONVEX|NONE|PRIM|TYPE)))?|(?:POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(?:ALT_IMAGE_ENABLE|CONTROLS|(?:CURRENT|HOME)_URL|AUTO_(?:LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(?:WIDTH|HEIGHT)_PIXELS|WHITELIST(?:_ENABLE)?|PERMS_(?:INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(?:STANDARD|MINI)|PERM_(?:NONE|OWNER|GROUP|ANYONE)|MAX_(?:URL_LENGTH|WHITELIST_(?:SIZE|COUNT)|(?:WIDTH|HEIGHT)_PIXELS)))|MASK_(?:BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(?:TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(?:MEDIA_COMMAND_(?:STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(?:ALLOW_(?:FLY|(?:GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(?:GROUP_)?OBJECTS)|USE_(?:ACCESS_(?:GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(?:GROUP|ALL)_OBJECT_ENTRY)|COUNT_(?:TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(?:NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(?:MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(?:_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(?:HIDE|DEFAULT)|REGION_FLAG_(?:ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(?:COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(?:METHOD|MIMETYPE|BODY_(?:MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|STRING_(?:TRIM(?:_(?:HEAD|TAIL))?)|CLICK_ACTION_(?:NONE|TOUCH|SIT|BUY|PAY|OPEN(?:_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(?:NONE|SCRIPT_MEMORY)|RC_(?:DATA_FLAGS|DETECT_PHANTOM|GET_(?:LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(?:TYPES|AGENTS|(?:NON)?PHYSICAL|LAND))|RCERR_(?:CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(?:ALLOWED_(?:AGENT|GROUP)_(?:ADD|REMOVE)|BANNED_AGENT_(?:ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(?:COMMAND|CMD_(?:PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(?:GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(?:CMD_(?:(?:SMOOTH_)?STOP|JUMP)|DESIRED_(?:TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(?:_(?:[ABCD]|NONE))?|MAX_(?:DECEL|TURN_RADIUS|(?:ACCEL|SPEED)))|PURSUIT_(?:OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(?:CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(?:EVADE_(?:HIDDEN|SPOTTED)|FAILURE_(?:DYNAMIC_PATHFINDING_DISABLED|INVALID_(?:GOAL|START)|NO_(?:NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(?:PARCEL_)?UNREACHABLE)|(?:GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(?:_(?:FAST|NONE|SLOW))?|CONTENT_TYPE_(?:ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(?:RADIUS|STATIC)|(?:PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(?:AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b" -},{begin:"\\b(?:FALSE|TRUE)\\b"},{begin:"\\b(?:ZERO_ROTATION)\\b"},{begin:"\\b(?:EOF|JSON_(?:ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(?:BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(?:GRANTED|DENIED))\\b"},{begin:"\\b(?:ZERO_VECTOR|TOUCH_INVALID_(?:TEXCOORD|VECTOR))\\b"}]},a={className:"built_in",begin:"\\b(?:ll(?:AgentInExperience|(?:Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(?:Details|ErrorMessage)|ReturnObjectsBy(?:ID|Owner)|Json(?:2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(?:Mag|Norm|Dist)|Rot(?:Between|2(?:Euler|Fwd|Left|Up))|(?:Euler|Axes)2Rot|Whisper|(?:Region|Owner)?Say|Shout|Listen(?:Control|Remove)?|Sensor(?:Repeat|Remove)?|Detected(?:Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|(?:[GS]et)(?:AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(?:Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(?:Scale|Offset|Rotate)Texture|(?:Rot)?Target(?:Remove)?|(?:Stop)?MoveToTarget|Apply(?:Rotational)?Impulse|Set(?:KeyframedMotion|ContentType|RegionPos|(?:Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(?:Queueing|Radius)|Vehicle(?:Type|(?:Float|Vector|Rotation)Param)|(?:Touch|Sit)?Text|Camera(?:Eye|At)Offset|PrimitiveParams|ClickAction|Link(?:Alpha|Color|PrimitiveParams(?:Fast)?|Texture(?:Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get(?:(?:Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(?:PrimitiveParams|Number(?:OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(?:Details|PermMask|PrimCount)|Parcel(?:MaxPrims|Details|Prim(?:Count|Owners))|Attached(?:List)?|(?:SPMax|Free|Used)Memory|Region(?:Name|TimeDilation|FPS|Corner|AgentCount)|Root(?:Position|Rotation)|UnixTime|(?:Parcel|Region)Flags|(?:Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(?:Prims|NotecardLines|Sides)|Animation(?:List)?|(?:Camera|Local)(?:Pos|Rot)|Vel|Accel|Omega|Time(?:stamp|OfDay)|(?:Object|CenterOf)?Mass|MassMKS|Energy|Owner|(?:Owner)?Key|SunDirection|Texture(?:Offset|Scale|Rot)|Inventory(?:Number|Name|Key|Type|Creator|PermMask)|Permissions(?:Key)?|StartParameter|List(?:Length|EntryType)|Date|Agent(?:Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(?:Name|State))|(?:Get|Reset|GetAndReset)Time|PlaySound(?:Slave)?|LoopSound(?:Master|Slave)?|(?:Trigger|Stop|Preload)Sound|(?:(?:Get|Delete)Sub|Insert)String|To(?:Upper|Lower)|Give(?:InventoryList|Money)|RezObject|(?:Stop)?LookAt|Sleep|CollisionFilter|(?:Take|Release)Controls|DetachFromAvatar|AttachToAvatar(?:Temp)?|InstantMessage|(?:GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(?:Length|Trim)|(?:Start|Stop)Animation|TargetOmega|Request(?:Experience)?Permissions|(?:Create|Break)Link|BreakAllLinks|(?:Give|Remove)Inventory|Water|PassTouches|Request(?:Agent|Inventory)Data|TeleportAgent(?:Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(?:Axis|Angle)|A(?:cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(?:CSV|Integer|Json|Float|String|Key|Vector|Rot|List(?:Strided)?)|DeleteSubList|List(?:Statistics|Sort|Randomize|(?:Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(?:CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(?:Slope|Normal|Contour)|GroundRepel|(?:Set|Remove)VehicleFlags|(?:AvatarOn)?(?:Link)?SitTarget|Script(?:Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(?:Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(?:Integer|String)ToBase64|XorBase64|Log(?:10)?|Base64To(?:String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(?:Load|Release|(?:E|Une)scape)URL|ParcelMedia(?:CommandList|Query)|ModPow|MapDestination|(?:RemoveFrom|AddTo|Reset)Land(?:Pass|Ban)List|(?:Set|Clear)CameraParams|HTTP(?:Request|Response)|TextBox|DetectedTouch(?:UV|Face|Pos|(?:N|Bin)ormal|ST)|(?:MD5|SHA1|DumpList2)String|Request(?:Secure)?URL|Clear(?:Prim|Link)Media|(?:Link)?ParticleSystem|(?:Get|Request)(?:Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(?:Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{illegal:":",contains:[n,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")]},i,{className:"section",variants:[{begin:"\\b(?:state|default)\\b"},{begin:"\\b(?:state_(?:entry|exit)|touch(?:_(?:start|end))?|(?:land_)?collision(?:_(?:start|end))?|timer|listen|(?:no_)?sensor|control|(?:not_)?at_(?:rot_)?target|money|email|experience_permissions(?:_denied)?|run_time_permissions|changed|attach|dataserver|moving_(?:start|end)|link_message|(?:on|object)_rez|remote_data|http_re(?:sponse|quest)|path_update|transaction_result)\\b"}]},a,r,{className:"type",begin:"\\b(?:integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}}),define("highlight/lib/languages/lua",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="\\[=*\\[",n="\\]=*\\]",i={begin:t,end:n,contains:["self"]},r=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[i],relevance:10})];return{lexemes:e.UNDERSCORE_IDENT_RE,keywords:{keyword:"and break do else elseif end false for if in local nil not or repeat return then true until while",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},contains:r.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:r}].concat(r)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[i],relevance:5}])}}}),define("highlight/lib/languages/makefile",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]};return{aliases:["mk","mak"],contains:[e.HASH_COMMENT_MODE,{begin:/^\w+\s*\W*=/,returnBegin:!0,relevance:0,starts:{end:/\s*\W*=/,excludeEnd:!0,starts:{end:/$/,relevance:0,contains:[t]}}},{className:"section",begin:/^[\w]+:\s*$/},{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{"meta-keyword":".PHONY"},lexemes:/[\.\w]+/},{begin:/^\t+/,end:/$/,relevance:0,contains:[e.QUOTE_STRING_MODE,t]}]}}}),define("highlight/lib/languages/mathematica",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["mma"],lexemes:"(\\$|\\b)"+e.IDENT_RE+"\\b",keywords:"AbelianGroup Abort AbortKernels AbortProtect Above Abs Absolute AbsoluteCorrelation AbsoluteCorrelationFunction AbsoluteCurrentValue AbsoluteDashing AbsoluteFileName AbsoluteOptions AbsolutePointSize AbsoluteThickness AbsoluteTime AbsoluteTiming AccountingForm Accumulate Accuracy AccuracyGoal ActionDelay ActionMenu ActionMenuBox ActionMenuBoxOptions Active ActiveItem ActiveStyle AcyclicGraphQ AddOnHelpPath AddTo AdjacencyGraph AdjacencyList AdjacencyMatrix AdjustmentBox AdjustmentBoxOptions AdjustTimeSeriesForecast AffineTransform After AiryAi AiryAiPrime AiryAiZero AiryBi AiryBiPrime AiryBiZero AlgebraicIntegerQ AlgebraicNumber AlgebraicNumberDenominator AlgebraicNumberNorm AlgebraicNumberPolynomial AlgebraicNumberTrace AlgebraicRules AlgebraicRulesData Algebraics AlgebraicUnitQ Alignment AlignmentMarker AlignmentPoint All AllowedDimensions AllowGroupClose AllowInlineCells AllowKernelInitialization AllowReverseGroupClose AllowScriptLevelChange AlphaChannel AlternatingGroup AlternativeHypothesis Alternatives AmbientLight Analytic AnchoredSearch And AndersonDarlingTest AngerJ AngleBracket AngularGauge Animate AnimationCycleOffset AnimationCycleRepetitions AnimationDirection AnimationDisplayTime AnimationRate AnimationRepetitions AnimationRunning Animator AnimatorBox AnimatorBoxOptions AnimatorElements Annotation Annuity AnnuityDue Antialiasing Antisymmetric Apart ApartSquareFree Appearance AppearanceElements AppellF1 Append AppendTo Apply ArcCos ArcCosh ArcCot ArcCoth ArcCsc ArcCsch ArcSec ArcSech ArcSin ArcSinDistribution ArcSinh ArcTan ArcTanh Arg ArgMax ArgMin ArgumentCountQ ARIMAProcess ArithmeticGeometricMean ARMAProcess ARProcess Array ArrayComponents ArrayDepth ArrayFlatten ArrayPad ArrayPlot ArrayQ ArrayReshape ArrayRules Arrays Arrow Arrow3DBox ArrowBox Arrowheads AspectRatio AspectRatioFixed Assert Assuming Assumptions AstronomicalData Asynchronous AsynchronousTaskObject AsynchronousTasks AtomQ Attributes AugmentedSymmetricPolynomial AutoAction AutoDelete AutoEvaluateEvents AutoGeneratedPackage AutoIndent AutoIndentSpacings AutoItalicWords AutoloadPath AutoMatch Automatic AutomaticImageSize AutoMultiplicationSymbol AutoNumberFormatting AutoOpenNotebooks AutoOpenPalettes AutorunSequencing AutoScaling AutoScroll AutoSpacing AutoStyleOptions AutoStyleWords Axes AxesEdge AxesLabel AxesOrigin AxesStyle Axis BabyMonsterGroupB Back Background BackgroundTasksSettings Backslash Backsubstitution Backward Band BandpassFilter BandstopFilter BarabasiAlbertGraphDistribution BarChart BarChart3D BarLegend BarlowProschanImportance BarnesG BarOrigin BarSpacing BartlettHannWindow BartlettWindow BaseForm Baseline BaselinePosition BaseStyle BatesDistribution BattleLemarieWavelet Because BeckmannDistribution Beep Before Begin BeginDialogPacket BeginFrontEndInteractionPacket BeginPackage BellB BellY Below BenfordDistribution BeniniDistribution BenktanderGibratDistribution BenktanderWeibullDistribution BernoulliB BernoulliDistribution BernoulliGraphDistribution BernoulliProcess BernsteinBasis BesselFilterModel BesselI BesselJ BesselJZero BesselK BesselY BesselYZero Beta BetaBinomialDistribution BetaDistribution BetaNegativeBinomialDistribution BetaPrimeDistribution BetaRegularized BetweennessCentrality BezierCurve BezierCurve3DBox BezierCurve3DBoxOptions BezierCurveBox BezierCurveBoxOptions BezierFunction BilateralFilter Binarize BinaryFormat BinaryImageQ BinaryRead BinaryReadList BinaryWrite BinCounts BinLists Binomial BinomialDistribution BinomialProcess BinormalDistribution BiorthogonalSplineWavelet BipartiteGraphQ BirnbaumImportance BirnbaumSaundersDistribution BitAnd BitClear BitGet BitLength BitNot BitOr BitSet BitShiftLeft BitShiftRight BitXor Black BlackmanHarrisWindow BlackmanNuttallWindow BlackmanWindow Blank BlankForm BlankNullSequence BlankSequence Blend Block BlockRandom BlomqvistBeta BlomqvistBetaTest Blue Blur BodePlot BohmanWindow Bold Bookmarks Boole BooleanConsecutiveFunction BooleanConvert BooleanCountingFunction BooleanFunction BooleanGraph BooleanMaxterms BooleanMinimize BooleanMinterms Booleans BooleanTable BooleanVariables BorderDimensions BorelTannerDistribution Bottom BottomHatTransform BoundaryStyle Bounds Box BoxBaselineShift BoxData BoxDimensions Boxed Boxes BoxForm BoxFormFormatTypes BoxFrame BoxID BoxMargins BoxMatrix BoxRatios BoxRotation BoxRotationPoint BoxStyle BoxWhiskerChart Bra BracketingBar BraKet BrayCurtisDistance BreadthFirstScan Break Brown BrownForsytheTest BrownianBridgeProcess BrowserCategory BSplineBasis BSplineCurve BSplineCurve3DBox BSplineCurveBox BSplineCurveBoxOptions BSplineFunction BSplineSurface BSplineSurface3DBox BubbleChart BubbleChart3D BubbleScale BubbleSizes BulletGauge BusinessDayQ ButterflyGraph ButterworthFilterModel Button ButtonBar ButtonBox ButtonBoxOptions ButtonCell ButtonContents ButtonData ButtonEvaluator ButtonExpandable ButtonFrame ButtonFunction ButtonMargins ButtonMinHeight ButtonNote ButtonNotebook ButtonSource ButtonStyle ButtonStyleMenuListing Byte ByteCount ByteOrdering C CachedValue CacheGraphics CalendarData CalendarType CallPacket CanberraDistance Cancel CancelButton CandlestickChart Cap CapForm CapitalDifferentialD CardinalBSplineBasis CarmichaelLambda Cases Cashflow Casoratian Catalan CatalanNumber Catch CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterDot CentralMoment CentralMomentGeneratingFunction CForm ChampernowneNumber ChanVeseBinarize Character CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop Circle CircleBox CircleDot CircleMinus CirclePlus CircleTimes CirculantGraph CityData Clear ClearAll ClearAttributes ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent ClusteringComponents CMYKColor Coarse Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorCombine ColorConvert ColorData ColorDataFunction ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorSpace Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CommonDefaultFormatTypes Commonest CommonestFilter CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledFunction Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComponentMeasurements ComponentwiseContextMenu Compose ComposeList ComposeSeries Composition CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath Congruent Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphQ ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray Constants ConstrainedMax ConstrainedMin ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFilename ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean Control ControlActive ControlAlignment ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateDialog CreateDirectory CreateDocument CreateIntermediateDirectories CreatePalette CreatePalettePacket CreateScheduledTask CreateTemporary CreateWindow CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossingDetect CrossMatrix Csc Csch CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrentImage CurrentlySpeakingPacket CurrentValue CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecomposition D DagumDistribution DamerauLevenshteinDistance DampingFactor Darker Dashed Dashing DataCompression DataDistribution DataRange DataReversed Date DateDelimiters DateDifference DateFunction DateList DateListLogPlot DateListPlot DatePattern DatePlus DateRange DateString DateTicksFormat DaubechiesWavelet DavisDistribution DawsonF DayCount DayCountConvention DayMatchQ DayName DayPlus DayRange DayRound DeBruijnGraph Debug DebugTag Decimal DeclareKnownSymbols DeclarePackage Decompose Decrement DedekindEta Default DefaultAxesStyle DefaultBaseStyle DefaultBoxStyle DefaultButton DefaultColor DefaultControlPlacement DefaultDuplicateCellStyle DefaultDuration DefaultElement DefaultFaceGridsStyle DefaultFieldHintStyle DefaultFont DefaultFontProperties DefaultFormatType DefaultFormatTypeForStyle DefaultFrameStyle DefaultFrameTicksStyle DefaultGridLinesStyle DefaultInlineFormatType DefaultInputFormatType DefaultLabelStyle DefaultMenuStyle DefaultNaturalLanguage DefaultNewCellStyle DefaultNewInlineCellStyle DefaultNotebook DefaultOptions DefaultOutputFormatType DefaultStyle DefaultStyleDefinitions DefaultTextFormatType DefaultTextInlineFormatType DefaultTicksStyle DefaultTooltipStyle DefaultValues Defer DefineExternal DefineInputStreamMethod DefineOutputStreamMethod Definition Degree DegreeCentrality DegreeGraphDistribution DegreeLexicographic DegreeReverseLexicographic Deinitialization Del Deletable Delete DeleteBorderComponents DeleteCases DeleteContents DeleteDirectory DeleteDuplicates DeleteFile DeleteSmallComponents DeleteWithContents DeletionWarning Delimiter DelimiterFlashTime DelimiterMatching Delimiters Denominator DensityGraphics DensityHistogram DensityPlot DependentVariables Deploy Deployed Depth DepthFirstScan Derivative DerivativeFilter DescriptorStateSpace DesignMatrix Det DGaussianWavelet DiacriticalPositioning Diagonal DiagonalMatrix Dialog DialogIndent DialogInput DialogLevel DialogNotebook DialogProlog DialogReturn DialogSymbols Diamond DiamondMatrix DiceDissimilarity DictionaryLookup DifferenceDelta DifferenceOrder DifferenceRoot DifferenceRootReduce Differences DifferentialD DifferentialRoot DifferentialRootReduce DifferentiatorFilter DigitBlock DigitBlockMinimum DigitCharacter DigitCount DigitQ DihedralGroup Dilation Dimensions DiracComb DiracDelta DirectedEdge DirectedEdges DirectedGraph DirectedGraphQ DirectedInfinity Direction Directive Directory DirectoryName DirectoryQ DirectoryStack DirichletCharacter DirichletConvolve DirichletDistribution DirichletL DirichletTransform DirichletWindow DisableConsolePrintPacket DiscreteChirpZTransform DiscreteConvolve DiscreteDelta DiscreteHadamardTransform DiscreteIndicator DiscreteLQEstimatorGains DiscreteLQRegulatorGains DiscreteLyapunovSolve DiscreteMarkovProcess DiscretePlot DiscretePlot3D DiscreteRatio DiscreteRiccatiSolve DiscreteShift DiscreteTimeModelQ DiscreteUniformDistribution DiscreteVariables DiscreteWaveletData DiscreteWaveletPacketTransform DiscreteWaveletTransform Discriminant Disjunction Disk DiskBox DiskMatrix Dispatch DispersionEstimatorFunction Display DisplayAllSteps DisplayEndPacket DisplayFlushImagePacket DisplayForm DisplayFunction DisplayPacket DisplayRules DisplaySetSizePacket DisplayString DisplayTemporary DisplayWith DisplayWithRef DisplayWithVariable DistanceFunction DistanceTransform Distribute Distributed DistributedContexts DistributeDefinitions DistributionChart DistributionDomain DistributionFitTest DistributionParameterAssumptions DistributionParameterQ Dithering Div Divergence Divide DivideBy Dividers Divisible Divisors DivisorSigma DivisorSum DMSList DMSString Do DockedCells DocumentNotebook DominantColors DOSTextFormat Dot DotDashed DotEqual Dotted DoubleBracketingBar DoubleContourIntegral DoubleDownArrow DoubleLeftArrow DoubleLeftRightArrow DoubleLeftTee DoubleLongLeftArrow DoubleLongLeftRightArrow DoubleLongRightArrow DoubleRightArrow DoubleRightTee DoubleUpArrow DoubleUpDownArrow DoubleVerticalBar DoublyInfinite Down DownArrow DownArrowBar DownArrowUpArrow DownLeftRightVector DownLeftTeeVector DownLeftVector DownLeftVectorBar DownRightTeeVector DownRightVector DownRightVectorBar Downsample DownTee DownTeeArrow DownValues DragAndDrop DrawEdges DrawFrontFaces DrawHighlighted Drop DSolve Dt DualLinearProgramming DualSystemsModel DumpGet DumpSave DuplicateFreeQ Dynamic DynamicBox DynamicBoxOptions DynamicEvaluationTimeout DynamicLocation DynamicModule DynamicModuleBox DynamicModuleBoxOptions DynamicModuleParent DynamicModuleValues DynamicName DynamicNamespace DynamicReference DynamicSetting DynamicUpdating DynamicWrapper DynamicWrapperBox DynamicWrapperBoxOptions E EccentricityCentrality EdgeAdd EdgeBetweennessCentrality EdgeCapacity EdgeCapForm EdgeColor EdgeConnectivity EdgeCost EdgeCount EdgeCoverQ EdgeDashing EdgeDelete EdgeDetect EdgeForm EdgeIndex EdgeJoinForm EdgeLabeling EdgeLabels EdgeLabelStyle EdgeList EdgeOpacity EdgeQ EdgeRenderingFunction EdgeRules EdgeShapeFunction EdgeStyle EdgeThickness EdgeWeight Editable EditButtonSettings EditCellTagsSettings EditDistance EffectiveInterest Eigensystem Eigenvalues EigenvectorCentrality Eigenvectors Element ElementData Eliminate EliminationOrder EllipticE EllipticExp EllipticExpPrime EllipticF EllipticFilterModel EllipticK EllipticLog EllipticNomeQ EllipticPi EllipticReducedHalfPeriods EllipticTheta EllipticThetaPrime EmitSound EmphasizeSyntaxErrors EmpiricalDistribution Empty EmptyGraphQ EnableConsolePrintPacket Enabled Encode End EndAdd EndDialogPacket EndFrontEndInteractionPacket EndOfFile EndOfLine EndOfString EndPackage EngineeringForm Enter EnterExpressionPacket EnterTextPacket Entropy EntropyFilter Environment Epilog Equal EqualColumns EqualRows EqualTilde EquatedTo Equilibrium EquirippleFilterKernel Equivalent Erf Erfc Erfi ErlangB ErlangC ErlangDistribution Erosion ErrorBox ErrorBoxOptions ErrorNorm ErrorPacket ErrorsDialogSettings EstimatedDistribution EstimatedProcess EstimatorGains EstimatorRegulator EuclideanDistance EulerE EulerGamma EulerianGraphQ EulerPhi Evaluatable Evaluate Evaluated EvaluatePacket EvaluationCell EvaluationCompletionAction EvaluationElements EvaluationMode EvaluationMonitor EvaluationNotebook EvaluationObject EvaluationOrder Evaluator EvaluatorNames EvenQ EventData EventEvaluator EventHandler EventHandlerTag EventLabels ExactBlackmanWindow ExactNumberQ ExactRootIsolation ExampleData Except ExcludedForms ExcludePods Exclusions ExclusionsStyle Exists Exit ExitDialog Exp Expand ExpandAll ExpandDenominator ExpandFileName ExpandNumerator Expectation ExpectationE ExpectedValue ExpGammaDistribution ExpIntegralE ExpIntegralEi Exponent ExponentFunction ExponentialDistribution ExponentialFamily ExponentialGeneratingFunction ExponentialMovingAverage ExponentialPowerDistribution ExponentPosition ExponentStep Export ExportAutoReplacements ExportPacket ExportString Expression ExpressionCell ExpressionPacket ExpToTrig ExtendedGCD Extension ExtentElementFunction ExtentMarkers ExtentSize ExternalCall ExternalDataCharacterEncoding Extract ExtractArchive ExtremeValueDistribution FaceForm FaceGrids FaceGridsStyle Factor FactorComplete Factorial Factorial2 FactorialMoment FactorialMomentGeneratingFunction FactorialPower FactorInteger FactorList FactorSquareFree FactorSquareFreeList FactorTerms FactorTermsList Fail FailureDistribution False FARIMAProcess FEDisableConsolePrintPacket FeedbackSector FeedbackSectorStyle FeedbackType FEEnableConsolePrintPacket Fibonacci FieldHint FieldHintStyle FieldMasked FieldSize File FileBaseName FileByteCount FileDate FileExistsQ FileExtension FileFormat FileHash FileInformation FileName FileNameDepth FileNameDialogSettings FileNameDrop FileNameJoin FileNames FileNameSetter FileNameSplit FileNameTake FilePrint FileType FilledCurve FilledCurveBox Filling FillingStyle FillingTransform FilterRules FinancialBond FinancialData FinancialDerivative FinancialIndicator Find FindArgMax FindArgMin FindClique FindClusters FindCurvePath FindDistributionParameters FindDivisions FindEdgeCover FindEdgeCut FindEulerianCycle FindFaces FindFile FindFit FindGeneratingFunction FindGeoLocation FindGeometricTransform FindGraphCommunities FindGraphIsomorphism FindGraphPartition FindHamiltonianCycle FindIndependentEdgeSet FindIndependentVertexSet FindInstance FindIntegerNullVector FindKClan FindKClique FindKClub FindKPlex FindLibrary FindLinearRecurrence FindList FindMaximum FindMaximumFlow FindMaxValue FindMinimum FindMinimumCostFlow FindMinimumCut FindMinValue FindPermutation FindPostmanTour FindProcessParameters FindRoot FindSequenceFunction FindSettings FindShortestPath FindShortestTour FindThreshold FindVertexCover FindVertexCut Fine FinishDynamic FiniteAbelianGroupCount FiniteGroupCount FiniteGroupData First FirstPassageTimeDistribution FischerGroupFi22 FischerGroupFi23 FischerGroupFi24Prime FisherHypergeometricDistribution FisherRatioTest FisherZDistribution Fit FitAll FittedModel FixedPoint FixedPointList FlashSelection Flat Flatten FlattenAt FlatTopWindow FlipView Floor FlushPrintOutputPacket Fold FoldList Font FontColor FontFamily FontForm FontName FontOpacity FontPostScriptName FontProperties FontReencoding FontSize FontSlant FontSubstitutions FontTracking FontVariations FontWeight For ForAll Format FormatRules FormatType FormatTypeAutoConvert FormatValues FormBox FormBoxOptions FortranForm Forward ForwardBackward Fourier FourierCoefficient FourierCosCoefficient FourierCosSeries FourierCosTransform FourierDCT FourierDCTFilter FourierDCTMatrix FourierDST FourierDSTMatrix FourierMatrix FourierParameters FourierSequenceTransform FourierSeries FourierSinCoefficient FourierSinSeries FourierSinTransform FourierTransform FourierTrigSeries FractionalBrownianMotionProcess FractionalPart FractionBox FractionBoxOptions FractionLine Frame FrameBox FrameBoxOptions Framed FrameInset FrameLabel Frameless FrameMargins FrameStyle FrameTicks FrameTicksStyle FRatioDistribution FrechetDistribution FreeQ FrequencySamplingFilterKernel FresnelC FresnelS Friday FrobeniusNumber FrobeniusSolve FromCharacterCode FromCoefficientRules FromContinuedFraction FromDate FromDigits FromDMS Front FrontEndDynamicExpression FrontEndEventActions FrontEndExecute FrontEndObject FrontEndResource FrontEndResourceString FrontEndStackSize FrontEndToken FrontEndTokenExecute FrontEndValueCache FrontEndVersion FrontFaceColor FrontFaceOpacity Full FullAxes FullDefinition FullForm FullGraphics FullOptions FullSimplify Function FunctionExpand FunctionInterpolation FunctionSpace FussellVeselyImportance GaborFilter GaborMatrix GaborWavelet GainMargins GainPhaseMargins Gamma GammaDistribution GammaRegularized GapPenalty Gather GatherBy GaugeFaceElementFunction GaugeFaceStyle GaugeFrameElementFunction GaugeFrameSize GaugeFrameStyle GaugeLabels GaugeMarkers GaugeStyle GaussianFilter GaussianIntegers GaussianMatrix GaussianWindow GCD GegenbauerC General GeneralizedLinearModelFit GenerateConditions GeneratedCell GeneratedParameters GeneratingFunction Generic GenericCylindricalDecomposition GenomeData GenomeLookup GeodesicClosing GeodesicDilation GeodesicErosion GeodesicOpening GeoDestination GeodesyData GeoDirection GeoDistance GeoGridPosition GeometricBrownianMotionProcess GeometricDistribution GeometricMean GeometricMeanFilter GeometricTransformation GeometricTransformation3DBox GeometricTransformation3DBoxOptions GeometricTransformationBox GeometricTransformationBoxOptions GeoPosition GeoPositionENU GeoPositionXYZ GeoProjectionData GestureHandler GestureHandlerTag Get GetBoundingBoxSizePacket GetContext GetEnvironment GetFileName GetFrontEndOptionsDataPacket GetLinebreakInformationPacket GetMenusPacket GetPageBreakInformationPacket Glaisher GlobalClusteringCoefficient GlobalPreferences GlobalSession Glow GoldenRatio GompertzMakehamDistribution GoodmanKruskalGamma GoodmanKruskalGammaTest Goto Grad Gradient GradientFilter GradientOrientationFilter Graph GraphAssortativity GraphCenter GraphComplement GraphData GraphDensity GraphDiameter GraphDifference GraphDisjointUnion GraphDistance GraphDistanceMatrix GraphElementData GraphEmbedding GraphHighlight GraphHighlightStyle GraphHub Graphics Graphics3D Graphics3DBox Graphics3DBoxOptions GraphicsArray GraphicsBaseline GraphicsBox GraphicsBoxOptions GraphicsColor GraphicsColumn GraphicsComplex GraphicsComplex3DBox GraphicsComplex3DBoxOptions GraphicsComplexBox GraphicsComplexBoxOptions GraphicsContents GraphicsData GraphicsGrid GraphicsGridBox GraphicsGroup GraphicsGroup3DBox GraphicsGroup3DBoxOptions GraphicsGroupBox GraphicsGroupBoxOptions GraphicsGrouping GraphicsHighlightColor GraphicsRow GraphicsSpacing GraphicsStyle GraphIntersection GraphLayout GraphLinkEfficiency GraphPeriphery GraphPlot GraphPlot3D GraphPower GraphPropertyDistribution GraphQ GraphRadius GraphReciprocity GraphRoot GraphStyle GraphUnion Gray GrayLevel GreatCircleDistance Greater GreaterEqual GreaterEqualLess GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual GreaterTilde Green Grid GridBaseline GridBox GridBoxAlignment GridBoxBackground GridBoxDividers GridBoxFrame GridBoxItemSize GridBoxItemStyle GridBoxOptions GridBoxSpacings GridCreationSettings GridDefaultElement GridElementStyleOptions GridFrame GridFrameMargins GridGraph GridLines GridLinesStyle GroebnerBasis GroupActionBase GroupCentralizer GroupElementFromWord GroupElementPosition GroupElementQ GroupElements GroupElementToWord GroupGenerators GroupMultiplicationTable GroupOrbits GroupOrder GroupPageBreakWithin GroupSetwiseStabilizer GroupStabilizer GroupStabilizerChain Gudermannian GumbelDistribution HaarWavelet HadamardMatrix HalfNormalDistribution HamiltonianGraphQ HammingDistance HammingWindow HankelH1 HankelH2 HankelMatrix HannPoissonWindow HannWindow HaradaNortonGroupHN HararyGraph HarmonicMean HarmonicMeanFilter HarmonicNumber Hash HashTable Haversine HazardFunction Head HeadCompose Heads HeavisideLambda HeavisidePi HeavisideTheta HeldGroupHe HeldPart HelpBrowserLookup HelpBrowserNotebook HelpBrowserSettings HermiteDecomposition HermiteH HermitianMatrixQ HessenbergDecomposition Hessian HexadecimalCharacter Hexahedron HexahedronBox HexahedronBoxOptions HiddenSurface HighlightGraph HighlightImage HighpassFilter HigmanSimsGroupHS HilbertFilter HilbertMatrix Histogram Histogram3D HistogramDistribution HistogramList HistogramTransform HistogramTransformInterpolation HitMissTransform HITSCentrality HodgeDual HoeffdingD HoeffdingDTest Hold HoldAll HoldAllComplete HoldComplete HoldFirst HoldForm HoldPattern HoldRest HolidayCalendar HomeDirectory HomePage Horizontal HorizontalForm HorizontalGauge HorizontalScrollPosition HornerForm HotellingTSquareDistribution HoytDistribution HTMLSave Hue HumpDownHump HumpEqual HurwitzLerchPhi HurwitzZeta HyperbolicDistribution HypercubeGraph HyperexponentialDistribution Hyperfactorial Hypergeometric0F1 Hypergeometric0F1Regularized Hypergeometric1F1 Hypergeometric1F1Regularized Hypergeometric2F1 Hypergeometric2F1Regularized HypergeometricDistribution HypergeometricPFQ HypergeometricPFQRegularized HypergeometricU Hyperlink HyperlinkCreationSettings Hyphenation HyphenationOptions HypoexponentialDistribution HypothesisTestData I Identity IdentityMatrix If IgnoreCase Im Image Image3D Image3DSlices ImageAccumulate ImageAdd ImageAdjust ImageAlign ImageApply ImageAspectRatio ImageAssemble ImageCache ImageCacheValid ImageCapture ImageChannels ImageClip ImageColorSpace ImageCompose ImageConvolve ImageCooccurrence ImageCorners ImageCorrelate ImageCorrespondingPoints ImageCrop ImageData ImageDataPacket ImageDeconvolve ImageDemosaic ImageDifference ImageDimensions ImageDistance ImageEffect ImageFeatureTrack ImageFileApply ImageFileFilter ImageFileScan ImageFilter ImageForestingComponents ImageForwardTransformation ImageHistogram ImageKeypoints ImageLevels ImageLines ImageMargins ImageMarkers ImageMeasurements ImageMultiply ImageOffset ImagePad ImagePadding ImagePartition ImagePeriodogram ImagePerspectiveTransformation ImageQ ImageRangeCache ImageReflect ImageRegion ImageResize ImageResolution ImageRotate ImageRotated ImageScaled ImageScan ImageSize ImageSizeAction ImageSizeCache ImageSizeMultipliers ImageSizeRaw ImageSubtract ImageTake ImageTransformation ImageTrim ImageType ImageValue ImageValuePositions Implies Import ImportAutoReplacements ImportString ImprovementImportance In IncidenceGraph IncidenceList IncidenceMatrix IncludeConstantBasis IncludeFileExtension IncludePods IncludeSingularTerm Increment Indent IndentingNewlineSpacings IndentMaxFraction IndependenceTest IndependentEdgeSetQ IndependentUnit IndependentVertexSetQ Indeterminate IndexCreationOptions Indexed IndexGraph IndexTag Inequality InexactNumberQ InexactNumbers Infinity Infix Information Inherited InheritScope Initialization InitializationCell InitializationCellEvaluation InitializationCellWarning InlineCounterAssignments InlineCounterIncrements InlineRules Inner Inpaint Input InputAliases InputAssumptions InputAutoReplacements InputField InputFieldBox InputFieldBoxOptions InputForm InputGrouping InputNamePacket InputNotebook InputPacket InputSettings InputStream InputString InputStringPacket InputToBoxFormPacket Insert InsertionPointObject InsertResults Inset Inset3DBox Inset3DBoxOptions InsetBox InsetBoxOptions Install InstallService InString Integer IntegerDigits IntegerExponent IntegerLength IntegerPart IntegerPartitions IntegerQ Integers IntegerString Integral Integrate Interactive InteractiveTradingChart Interlaced Interleaving InternallyBalancedDecomposition InterpolatingFunction InterpolatingPolynomial Interpolation InterpolationOrder InterpolationPoints InterpolationPrecision Interpretation InterpretationBox InterpretationBoxOptions InterpretationFunction InterpretTemplate InterquartileRange Interrupt InterruptSettings Intersection Interval IntervalIntersection IntervalMemberQ IntervalUnion Inverse InverseBetaRegularized InverseCDF InverseChiSquareDistribution InverseContinuousWaveletTransform InverseDistanceTransform InverseEllipticNomeQ InverseErf InverseErfc InverseFourier InverseFourierCosTransform InverseFourierSequenceTransform InverseFourierSinTransform InverseFourierTransform InverseFunction InverseFunctions InverseGammaDistribution InverseGammaRegularized InverseGaussianDistribution InverseGudermannian InverseHaversine InverseJacobiCD InverseJacobiCN InverseJacobiCS InverseJacobiDC InverseJacobiDN InverseJacobiDS InverseJacobiNC InverseJacobiND InverseJacobiNS InverseJacobiSC InverseJacobiSD InverseJacobiSN InverseLaplaceTransform InversePermutation InverseRadon InverseSeries InverseSurvivalFunction InverseWaveletTransform InverseWeierstrassP InverseZTransform Invisible InvisibleApplication InvisibleTimes IrreduciblePolynomialQ IsolatingInterval IsomorphicGraphQ IsotopeData Italic Item ItemBox ItemBoxOptions ItemSize ItemStyle ItoProcess JaccardDissimilarity JacobiAmplitude Jacobian JacobiCD JacobiCN JacobiCS JacobiDC JacobiDN JacobiDS JacobiNC JacobiND JacobiNS JacobiP JacobiSC JacobiSD JacobiSN JacobiSymbol JacobiZeta JankoGroupJ1 JankoGroupJ2 JankoGroupJ3 JankoGroupJ4 JarqueBeraALMTest JohnsonDistribution Join Joined JoinedCurve JoinedCurveBox JoinForm JordanDecomposition JordanModelDecomposition K KagiChart KaiserBesselWindow KaiserWindow KalmanEstimator KalmanFilter KarhunenLoeveDecomposition KaryTree KatzCentrality KCoreComponents KDistribution KelvinBei KelvinBer KelvinKei KelvinKer KendallTau KendallTauTest KernelExecute KernelMixtureDistribution KernelObject Kernels Ket Khinchin KirchhoffGraph KirchhoffMatrix KleinInvariantJ KnightTourGraph KnotData KnownUnitQ KolmogorovSmirnovTest KroneckerDelta KroneckerModelDecomposition KroneckerProduct KroneckerSymbol KuiperTest KumaraswamyDistribution Kurtosis KuwaharaFilter Label Labeled LabeledSlider LabelingFunction LabelStyle LaguerreL LambdaComponents LambertW LanczosWindow LandauDistribution Language LanguageCategory LaplaceDistribution LaplaceTransform Laplacian LaplacianFilter LaplacianGaussianFilter Large Larger Last Latitude LatitudeLongitude LatticeData LatticeReduce Launch LaunchKernels LayeredGraphPlot LayerSizeFunction LayoutInformation LCM LeafCount LeapYearQ LeastSquares LeastSquaresFilterKernel Left LeftArrow LeftArrowBar LeftArrowRightArrow LeftDownTeeVector LeftDownVector LeftDownVectorBar LeftRightArrow LeftRightVector LeftTee LeftTeeArrow LeftTeeVector LeftTriangle LeftTriangleBar LeftTriangleEqual LeftUpDownVector LeftUpTeeVector LeftUpVector LeftUpVectorBar LeftVector LeftVectorBar LegendAppearance Legended LegendFunction LegendLabel LegendLayout LegendMargins LegendMarkers LegendMarkerSize LegendreP LegendreQ LegendreType Length LengthWhile LerchPhi Less LessEqual LessEqualGreater LessFullEqual LessGreater LessLess LessSlantEqual LessTilde LetterCharacter LetterQ Level LeveneTest LeviCivitaTensor LevyDistribution Lexicographic LibraryFunction LibraryFunctionError LibraryFunctionInformation LibraryFunctionLoad LibraryFunctionUnload LibraryLoad LibraryUnload LicenseID LiftingFilterData LiftingWaveletTransform LightBlue LightBrown LightCyan Lighter LightGray LightGreen Lighting LightingAngle LightMagenta LightOrange LightPink LightPurple LightRed LightSources LightYellow Likelihood Limit LimitsPositioning LimitsPositioningTokens LindleyDistribution Line Line3DBox LinearFilter LinearFractionalTransform LinearModelFit LinearOffsetFunction LinearProgramming LinearRecurrence LinearSolve LinearSolveFunction LineBox LineBreak LinebreakAdjustments LineBreakChart LineBreakWithin LineColor LineForm LineGraph LineIndent LineIndentMaxFraction LineIntegralConvolutionPlot LineIntegralConvolutionScale LineLegend LineOpacity LineSpacing LineWrapParts LinkActivate LinkClose LinkConnect LinkConnectedQ LinkCreate LinkError LinkFlush LinkFunction LinkHost LinkInterrupt LinkLaunch LinkMode LinkObject LinkOpen LinkOptions LinkPatterns LinkProtocol LinkRead LinkReadHeld LinkReadyQ Links LinkWrite LinkWriteHeld LiouvilleLambda List Listable ListAnimate ListContourPlot ListContourPlot3D ListConvolve ListCorrelate ListCurvePathPlot ListDeconvolve ListDensityPlot Listen ListFourierSequenceTransform ListInterpolation ListLineIntegralConvolutionPlot ListLinePlot ListLogLinearPlot ListLogLogPlot ListLogPlot ListPicker ListPickerBox ListPickerBoxBackground ListPickerBoxOptions ListPlay ListPlot ListPlot3D ListPointPlot3D ListPolarPlot ListQ ListStreamDensityPlot ListStreamPlot ListSurfacePlot3D ListVectorDensityPlot ListVectorPlot ListVectorPlot3D ListZTransform Literal LiteralSearch LocalClusteringCoefficient LocalizeVariables LocationEquivalenceTest LocationTest Locator LocatorAutoCreate LocatorBox LocatorBoxOptions LocatorCentering LocatorPane LocatorPaneBox LocatorPaneBoxOptions LocatorRegion Locked Log Log10 Log2 LogBarnesG LogGamma LogGammaDistribution LogicalExpand LogIntegral LogisticDistribution LogitModelFit LogLikelihood LogLinearPlot LogLogisticDistribution LogLogPlot LogMultinormalDistribution LogNormalDistribution LogPlot LogRankTest LogSeriesDistribution LongEqual Longest LongestAscendingSequence LongestCommonSequence LongestCommonSequencePositions LongestCommonSubsequence LongestCommonSubsequencePositions LongestMatch LongForm Longitude LongLeftArrow LongLeftRightArrow LongRightArrow Loopback LoopFreeGraphQ LowerCaseQ LowerLeftArrow LowerRightArrow LowerTriangularize LowpassFilter LQEstimatorGains LQGRegulator LQOutputRegulatorGains LQRegulatorGains LUBackSubstitution LucasL LuccioSamiComponents LUDecomposition LyapunovSolve LyonsGroupLy MachineID MachineName MachineNumberQ MachinePrecision MacintoshSystemPageSetup Magenta Magnification Magnify MainSolve MaintainDynamicCaches Majority MakeBoxes MakeExpression MakeRules MangoldtLambda ManhattanDistance Manipulate Manipulator MannWhitneyTest MantissaExponent Manual Map MapAll MapAt MapIndexed MAProcess MapThread MarcumQ MardiaCombinedTest MardiaKurtosisTest MardiaSkewnessTest MarginalDistribution MarkovProcessProperties Masking MatchingDissimilarity MatchLocalNameQ MatchLocalNames MatchQ Material MathematicaNotation MathieuC MathieuCharacteristicA MathieuCharacteristicB MathieuCharacteristicExponent MathieuCPrime MathieuGroupM11 MathieuGroupM12 MathieuGroupM22 MathieuGroupM23 MathieuGroupM24 MathieuS MathieuSPrime MathMLForm MathMLText Matrices MatrixExp MatrixForm MatrixFunction MatrixLog MatrixPlot MatrixPower MatrixQ MatrixRank Max MaxBend MaxDetect MaxExtraBandwidths MaxExtraConditions MaxFeatures MaxFilter Maximize MaxIterations MaxMemoryUsed MaxMixtureKernels MaxPlotPoints MaxPoints MaxRecursion MaxStableDistribution MaxStepFraction MaxSteps MaxStepSize MaxValue MaxwellDistribution McLaughlinGroupMcL Mean MeanClusteringCoefficient MeanDegreeConnectivity MeanDeviation MeanFilter MeanGraphDistance MeanNeighborDegree MeanShift MeanShiftFilter Median MedianDeviation MedianFilter Medium MeijerG MeixnerDistribution MemberQ MemoryConstrained MemoryInUse Menu MenuAppearance MenuCommandKey MenuEvaluator MenuItem MenuPacket MenuSortingValue MenuStyle MenuView MergeDifferences Mesh MeshFunctions MeshRange MeshShading MeshStyle Message MessageDialog MessageList MessageName MessageOptions MessagePacket Messages MessagesNotebook MetaCharacters MetaInformation Method MethodOptions MexicanHatWavelet MeyerWavelet Min MinDetect MinFilter MinimalPolynomial MinimalStateSpaceModel Minimize Minors MinRecursion MinSize MinStableDistribution Minus MinusPlus MinValue Missing MissingDataMethod MittagLefflerE MixedRadix MixedRadixQuantity MixtureDistribution Mod Modal Mode Modular ModularLambda Module Modulus MoebiusMu Moment Momentary MomentConvert MomentEvaluate MomentGeneratingFunction Monday Monitor MonomialList MonomialOrder MonsterGroupM MorletWavelet MorphologicalBinarize MorphologicalBranchPoints MorphologicalComponents MorphologicalEulerNumber MorphologicalGraph MorphologicalPerimeter MorphologicalTransform Most MouseAnnotation MouseAppearance MouseAppearanceTag MouseButtons Mouseover MousePointerNote MousePosition MovingAverage MovingMedian MoyalDistribution MultiedgeStyle MultilaunchWarning MultiLetterItalics MultiLetterStyle MultilineFunction Multinomial MultinomialDistribution MultinormalDistribution MultiplicativeOrder Multiplicity Multiselection MultivariateHypergeometricDistribution MultivariatePoissonDistribution MultivariateTDistribution N NakagamiDistribution NameQ Names NamespaceBox Nand NArgMax NArgMin NBernoulliB NCache NDSolve NDSolveValue Nearest NearestFunction NeedCurrentFrontEndPackagePacket NeedCurrentFrontEndSymbolsPacket NeedlemanWunschSimilarity Needs Negative NegativeBinomialDistribution NegativeMultinomialDistribution NeighborhoodGraph Nest NestedGreaterGreater NestedLessLess NestedScriptRules NestList NestWhile NestWhileList NevilleThetaC NevilleThetaD NevilleThetaN NevilleThetaS NewPrimitiveStyle NExpectation Next NextPrime NHoldAll NHoldFirst NHoldRest NicholsGridLines NicholsPlot NIntegrate NMaximize NMaxValue NMinimize NMinValue NominalVariables NonAssociative NoncentralBetaDistribution NoncentralChiSquareDistribution NoncentralFRatioDistribution NoncentralStudentTDistribution NonCommutativeMultiply NonConstants None NonlinearModelFit NonlocalMeansFilter NonNegative NonPositive Nor NorlundB Norm Normal NormalDistribution NormalGrouping Normalize NormalizedSquaredEuclideanDistance NormalsFunction NormFunction Not NotCongruent NotCupCap NotDoubleVerticalBar Notebook NotebookApply NotebookAutoSave NotebookClose NotebookConvertSettings NotebookCreate NotebookCreateReturnObject NotebookDefault NotebookDelete NotebookDirectory NotebookDynamicExpression NotebookEvaluate NotebookEventActions NotebookFileName NotebookFind NotebookFindReturnObject NotebookGet NotebookGetLayoutInformationPacket NotebookGetMisspellingsPacket NotebookInformation NotebookInterfaceObject NotebookLocate NotebookObject NotebookOpen NotebookOpenReturnObject NotebookPath NotebookPrint NotebookPut NotebookPutReturnObject NotebookRead NotebookResetGeneratedCells Notebooks NotebookSave NotebookSaveAs NotebookSelection NotebookSetupLayoutInformationPacket NotebooksMenu NotebookWrite NotElement NotEqualTilde NotExists NotGreater NotGreaterEqual NotGreaterFullEqual NotGreaterGreater NotGreaterLess NotGreaterSlantEqual NotGreaterTilde NotHumpDownHump NotHumpEqual NotLeftTriangle NotLeftTriangleBar NotLeftTriangleEqual NotLess NotLessEqual NotLessFullEqual NotLessGreater NotLessLess NotLessSlantEqual NotLessTilde NotNestedGreaterGreater NotNestedLessLess NotPrecedes NotPrecedesEqual NotPrecedesSlantEqual NotPrecedesTilde NotReverseElement NotRightTriangle NotRightTriangleBar NotRightTriangleEqual NotSquareSubset NotSquareSubsetEqual NotSquareSuperset NotSquareSupersetEqual NotSubset NotSubsetEqual NotSucceeds NotSucceedsEqual NotSucceedsSlantEqual NotSucceedsTilde NotSuperset NotSupersetEqual NotTilde NotTildeEqual NotTildeFullEqual NotTildeTilde NotVerticalBar NProbability NProduct NProductFactors NRoots NSolve NSum NSumTerms Null NullRecords NullSpace NullWords Number NumberFieldClassNumber NumberFieldDiscriminant NumberFieldFundamentalUnits NumberFieldIntegralBasis NumberFieldNormRepresentatives NumberFieldRegulator NumberFieldRootsOfUnity NumberFieldSignature NumberForm NumberFormat NumberMarks NumberMultiplier NumberPadding NumberPoint NumberQ NumberSeparator NumberSigns NumberString Numerator NumericFunction NumericQ NuttallWindow NValues NyquistGridLines NyquistPlot O ObservabilityGramian ObservabilityMatrix ObservableDecomposition ObservableModelQ OddQ Off Offset OLEData On ONanGroupON OneIdentity Opacity Open OpenAppend Opener OpenerBox OpenerBoxOptions OpenerView OpenFunctionInspectorPacket Opening OpenRead OpenSpecialOptions OpenTemporary OpenWrite Operate OperatingSystem OptimumFlowData Optional OptionInspectorSettings OptionQ Options OptionsPacket OptionsPattern OptionValue OptionValueBox OptionValueBoxOptions Or Orange Order OrderDistribution OrderedQ Ordering Orderless OrnsteinUhlenbeckProcess Orthogonalize Out Outer OutputAutoOverwrite OutputControllabilityMatrix OutputControllableModelQ OutputForm OutputFormData OutputGrouping OutputMathEditExpression OutputNamePacket OutputResponse OutputSizeLimit OutputStream Over OverBar OverDot Overflow OverHat Overlaps Overlay OverlayBox OverlayBoxOptions Overscript OverscriptBox OverscriptBoxOptions OverTilde OverVector OwenT OwnValues PackingMethod PaddedForm Padding PadeApproximant PadLeft PadRight PageBreakAbove PageBreakBelow PageBreakWithin PageFooterLines PageFooters PageHeaderLines PageHeaders PageHeight PageRankCentrality PageWidth PairedBarChart PairedHistogram PairedSmoothHistogram PairedTTest PairedZTest PaletteNotebook PalettePath Pane PaneBox PaneBoxOptions Panel PanelBox PanelBoxOptions Paneled PaneSelector PaneSelectorBox PaneSelectorBoxOptions PaperWidth ParabolicCylinderD ParagraphIndent ParagraphSpacing ParallelArray ParallelCombine ParallelDo ParallelEvaluate Parallelization Parallelize ParallelMap ParallelNeeds ParallelProduct ParallelSubmit ParallelSum ParallelTable ParallelTry Parameter ParameterEstimator ParameterMixtureDistribution ParameterVariables ParametricFunction ParametricNDSolve ParametricNDSolveValue ParametricPlot ParametricPlot3D ParentConnect ParentDirectory ParentForm Parenthesize ParentList ParetoDistribution Part PartialCorrelationFunction PartialD ParticleData Partition PartitionsP PartitionsQ ParzenWindow PascalDistribution PassEventsDown PassEventsUp Paste PasteBoxFormInlineCells PasteButton Path PathGraph PathGraphQ Pattern PatternSequence PatternTest PauliMatrix PaulWavelet Pause PausedTime PDF PearsonChiSquareTest PearsonCorrelationTest PearsonDistribution PerformanceGoal PeriodicInterpolation Periodogram PeriodogramArray PermutationCycles PermutationCyclesQ PermutationGroup PermutationLength PermutationList PermutationListQ PermutationMax PermutationMin PermutationOrder PermutationPower PermutationProduct PermutationReplace Permutations PermutationSupport Permute PeronaMalikFilter Perpendicular PERTDistribution PetersenGraph PhaseMargins Pi Pick PIDData PIDDerivativeFilter PIDFeedforward PIDTune Piecewise PiecewiseExpand PieChart PieChart3D PillaiTrace PillaiTraceTest Pink Pivoting PixelConstrained PixelValue PixelValuePositions Placed Placeholder PlaceholderReplace Plain PlanarGraphQ Play PlayRange Plot Plot3D Plot3Matrix PlotDivision PlotJoined PlotLabel PlotLayout PlotLegends PlotMarkers PlotPoints PlotRange PlotRangeClipping PlotRangePadding PlotRegion PlotStyle Plus PlusMinus Pochhammer PodStates PodWidth Point Point3DBox PointBox PointFigureChart PointForm PointLegend PointSize PoissonConsulDistribution PoissonDistribution PoissonProcess PoissonWindow PolarAxes PolarAxesOrigin PolarGridLines PolarPlot PolarTicks PoleZeroMarkers PolyaAeppliDistribution PolyGamma Polygon Polygon3DBox Polygon3DBoxOptions PolygonBox PolygonBoxOptions PolygonHoleScale PolygonIntersections PolygonScale PolyhedronData PolyLog PolynomialExtendedGCD PolynomialForm PolynomialGCD PolynomialLCM PolynomialMod PolynomialQ PolynomialQuotient PolynomialQuotientRemainder PolynomialReduce PolynomialRemainder Polynomials PopupMenu PopupMenuBox PopupMenuBoxOptions PopupView PopupWindow Position Positive PositiveDefiniteMatrixQ PossibleZeroQ Postfix PostScript Power PowerDistribution PowerExpand PowerMod PowerModList PowerSpectralDensity PowersRepresentations PowerSymmetricPolynomial Precedence PrecedenceForm Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Precision PrecisionGoal PreDecrement PredictionRoot PreemptProtect PreferencesPath Prefix PreIncrement Prepend PrependTo PreserveImageOptions Previous PriceGraphDistribution PrimaryPlaceholder Prime PrimeNu PrimeOmega PrimePi PrimePowerQ PrimeQ Primes PrimeZetaP PrimitiveRoot PrincipalComponents PrincipalValue Print PrintAction PrintForm PrintingCopies PrintingOptions PrintingPageRange PrintingStartingPageNumber PrintingStyleEnvironment PrintPrecision PrintTemporary Prism PrismBox PrismBoxOptions PrivateCellOptions PrivateEvaluationOptions PrivateFontOptions PrivateFrontEndOptions PrivateNotebookOptions PrivatePaths Probability ProbabilityDistribution ProbabilityPlot ProbabilityPr ProbabilityScalePlot ProbitModelFit ProcessEstimator ProcessParameterAssumptions ProcessParameterQ ProcessStateDomain ProcessTimeDomain Product ProductDistribution ProductLog ProgressIndicator ProgressIndicatorBox ProgressIndicatorBoxOptions Projection Prolog PromptForm Properties Property PropertyList PropertyValue Proportion Proportional Protect Protected ProteinData Pruning PseudoInverse Purple Put PutAppend Pyramid PyramidBox PyramidBoxOptions QBinomial QFactorial QGamma QHypergeometricPFQ QPochhammer QPolyGamma QRDecomposition QuadraticIrrationalQ Quantile QuantilePlot Quantity QuantityForm QuantityMagnitude QuantityQ QuantityUnit Quartics QuartileDeviation Quartiles QuartileSkewness QueueingNetworkProcess QueueingProcess QueueProperties Quiet Quit Quotient QuotientRemainder RadialityCentrality RadicalBox RadicalBoxOptions RadioButton RadioButtonBar RadioButtonBox RadioButtonBoxOptions Radon RamanujanTau RamanujanTauL RamanujanTauTheta RamanujanTauZ Random RandomChoice RandomComplex RandomFunction RandomGraph RandomImage RandomInteger RandomPermutation RandomPrime RandomReal RandomSample RandomSeed RandomVariate RandomWalkProcess Range RangeFilter RangeSpecification RankedMax RankedMin Raster Raster3D Raster3DBox Raster3DBoxOptions RasterArray RasterBox RasterBoxOptions Rasterize RasterSize Rational RationalFunctions Rationalize Rationals Ratios Raw RawArray RawBoxes RawData RawMedium RayleighDistribution Re Read ReadList ReadProtected Real RealBlockDiagonalForm RealDigits RealExponent Reals Reap Record RecordLists RecordSeparators Rectangle RectangleBox RectangleBoxOptions RectangleChart RectangleChart3D RecurrenceFilter RecurrenceTable RecurringDigitsForm Red Reduce RefBox ReferenceLineStyle ReferenceMarkers ReferenceMarkerStyle Refine ReflectionMatrix ReflectionTransform Refresh RefreshRate RegionBinarize RegionFunction RegionPlot RegionPlot3D RegularExpression Regularization Reinstall Release ReleaseHold ReliabilityDistribution ReliefImage ReliefPlot Remove RemoveAlphaChannel RemoveAsynchronousTask Removed RemoveInputStreamMethod RemoveOutputStreamMethod RemoveProperty RemoveScheduledTask RenameDirectory RenameFile RenderAll RenderingOptions RenewalProcess RenkoChart Repeated RepeatedNull RepeatedString Replace ReplaceAll ReplaceHeldPart ReplaceImageValue ReplaceList ReplacePart ReplacePixelValue ReplaceRepeated Resampling Rescale RescalingTransform ResetDirectory ResetMenusPacket ResetScheduledTask Residue Resolve Rest Resultant ResumePacket Return ReturnExpressionPacket ReturnInputFormPacket ReturnPacket ReturnTextPacket Reverse ReverseBiorthogonalSplineWavelet ReverseElement ReverseEquilibrium ReverseGraph ReverseUpEquilibrium RevolutionAxis RevolutionPlot3D RGBColor RiccatiSolve RiceDistribution RidgeFilter RiemannR RiemannSiegelTheta RiemannSiegelZ Riffle Right RightArrow RightArrowBar RightArrowLeftArrow RightCosetRepresentative RightDownTeeVector RightDownVector RightDownVectorBar RightTee RightTeeArrow RightTeeVector RightTriangle RightTriangleBar RightTriangleEqual RightUpDownVector RightUpTeeVector RightUpVector RightUpVectorBar RightVector RightVectorBar RiskAchievementImportance RiskReductionImportance RogersTanimotoDissimilarity Root RootApproximant RootIntervals RootLocusPlot RootMeanSquare RootOfUnityQ RootReduce Roots RootSum Rotate RotateLabel RotateLeft RotateRight RotationAction RotationBox RotationBoxOptions RotationMatrix RotationTransform Round RoundImplies RoundingRadius Row RowAlignments RowBackgrounds RowBox RowHeights RowLines RowMinHeight RowReduce RowsEqual RowSpacings RSolve RudvalisGroupRu Rule RuleCondition RuleDelayed RuleForm RulerUnits Run RunScheduledTask RunThrough RuntimeAttributes RuntimeOptions RussellRaoDissimilarity SameQ SameTest SampleDepth SampledSoundFunction SampledSoundList SampleRate SamplingPeriod SARIMAProcess SARMAProcess SatisfiabilityCount SatisfiabilityInstances SatisfiableQ Saturday Save Saveable SaveAutoDelete SaveDefinitions SawtoothWave Scale Scaled ScaleDivisions ScaledMousePosition ScaleOrigin ScalePadding ScaleRanges ScaleRangeStyle ScalingFunctions ScalingMatrix ScalingTransform Scan ScheduledTaskActiveQ ScheduledTaskData ScheduledTaskObject ScheduledTasks SchurDecomposition ScientificForm ScreenRectangle ScreenStyleEnvironment ScriptBaselineShifts ScriptLevel ScriptMinSize ScriptRules ScriptSizeMultipliers Scrollbars ScrollingOptions ScrollPosition Sec Sech SechDistribution SectionGrouping SectorChart SectorChart3D SectorOrigin SectorSpacing SeedRandom Select Selectable SelectComponents SelectedCells SelectedNotebook Selection SelectionAnimate SelectionCell SelectionCellCreateCell SelectionCellDefaultStyle SelectionCellParentStyle SelectionCreateCell SelectionDebuggerTag SelectionDuplicateCell SelectionEvaluate SelectionEvaluateCreateCell SelectionMove SelectionPlaceholder SelectionSetStyle SelectWithContents SelfLoops SelfLoopStyle SemialgebraicComponentInstances SendMail Sequence SequenceAlignment SequenceForm SequenceHold SequenceLimit Series SeriesCoefficient SeriesData SessionTime Set SetAccuracy SetAlphaChannel SetAttributes Setbacks SetBoxFormNamesPacket SetDelayed SetDirectory SetEnvironment SetEvaluationNotebook SetFileDate SetFileLoadingContext SetNotebookStatusLine SetOptions SetOptionsPacket SetPrecision SetProperty SetSelectedNotebook SetSharedFunction SetSharedVariable SetSpeechParametersPacket SetStreamPosition SetSystemOptions Setter SetterBar SetterBox SetterBoxOptions Setting SetValue Shading Shallow ShannonWavelet ShapiroWilkTest Share Sharpen ShearingMatrix ShearingTransform ShenCastanMatrix Short ShortDownArrow Shortest ShortestMatch ShortestPathFunction ShortLeftArrow ShortRightArrow ShortUpArrow Show ShowAutoStyles ShowCellBracket ShowCellLabel ShowCellTags ShowClosedCellArea ShowContents ShowControls ShowCursorTracker ShowGroupOpenCloseIcon ShowGroupOpener ShowInvisibleCharacters ShowPageBreaks ShowPredictiveInterface ShowSelection ShowShortBoxForm ShowSpecialCharacters ShowStringCharacters ShowSyntaxStyles ShrinkingDelay ShrinkWrapBoundingBox SiegelTheta SiegelTukeyTest Sign Signature SignedRankTest SignificanceLevel SignPadding SignTest SimilarityRules SimpleGraph SimpleGraphQ Simplify Sin Sinc SinghMaddalaDistribution SingleEvaluation SingleLetterItalics SingleLetterStyle SingularValueDecomposition SingularValueList SingularValuePlot SingularValues Sinh SinhIntegral SinIntegral SixJSymbol Skeleton SkeletonTransform SkellamDistribution Skewness SkewNormalDistribution Skip SliceDistribution Slider Slider2D Slider2DBox Slider2DBoxOptions SliderBox SliderBoxOptions SlideView Slot SlotSequence Small SmallCircle Smaller SmithDelayCompensator SmithWatermanSimilarity SmoothDensityHistogram SmoothHistogram SmoothHistogram3D SmoothKernelDistribution SocialMediaData Socket SokalSneathDissimilarity Solve SolveAlways SolveDelayed Sort SortBy Sound SoundAndGraphics SoundNote SoundVolume Sow Space SpaceForm Spacer Spacings Span SpanAdjustments SpanCharacterRounding SpanFromAbove SpanFromBoth SpanFromLeft SpanLineThickness SpanMaxSize SpanMinSize SpanningCharacters SpanSymmetric SparseArray SpatialGraphDistribution Speak SpeakTextPacket SpearmanRankTest SpearmanRho Spectrogram SpectrogramArray Specularity SpellingCorrection SpellingDictionaries SpellingDictionariesPath SpellingOptions SpellingSuggestionsPacket Sphere SphereBox SphericalBesselJ SphericalBesselY SphericalHankelH1 SphericalHankelH2 SphericalHarmonicY SphericalPlot3D SphericalRegion SpheroidalEigenvalue SpheroidalJoiningFactor SpheroidalPS SpheroidalPSPrime SpheroidalQS SpheroidalQSPrime SpheroidalRadialFactor SpheroidalS1 SpheroidalS1Prime SpheroidalS2 SpheroidalS2Prime Splice SplicedDistribution SplineClosed SplineDegree SplineKnots SplineWeights Split SplitBy SpokenString Sqrt SqrtBox SqrtBoxOptions Square SquaredEuclideanDistance SquareFreeQ SquareIntersection SquaresR SquareSubset SquareSubsetEqual SquareSuperset SquareSupersetEqual SquareUnion SquareWave StabilityMargins StabilityMarginsStyle StableDistribution Stack StackBegin StackComplete StackInhibit StandardDeviation StandardDeviationFilter StandardForm Standardize StandbyDistribution Star StarGraph StartAsynchronousTask StartingStepSize StartOfLine StartOfString StartScheduledTask StartupSound StateDimensions StateFeedbackGains StateOutputEstimator StateResponse StateSpaceModel StateSpaceRealization StateSpaceTransform StationaryDistribution StationaryWaveletPacketTransform StationaryWaveletTransform StatusArea StatusCentrality StepMonitor StieltjesGamma StirlingS1 StirlingS2 StopAsynchronousTask StopScheduledTask StrataVariables StratonovichProcess StreamColorFunction StreamColorFunctionScaling StreamDensityPlot StreamPlot StreamPoints StreamPosition Streams StreamScale StreamStyle String StringBreak StringByteCount StringCases StringCount StringDrop StringExpression StringForm StringFormat StringFreeQ StringInsert StringJoin StringLength StringMatchQ StringPosition StringQ StringReplace StringReplaceList StringReplacePart StringReverse StringRotateLeft StringRotateRight StringSkeleton StringSplit StringTake StringToStream StringTrim StripBoxes StripOnInput StripWrapperBoxes StrokeForm StructuralImportance StructuredArray StructuredSelection StruveH StruveL Stub StudentTDistribution Style StyleBox StyleBoxAutoDelete StyleBoxOptions StyleData StyleDefinitions StyleForm StyleKeyMapping StyleMenuListing StyleNameDialogSettings StyleNames StylePrint StyleSheetPath Subfactorial Subgraph SubMinus SubPlus SubresultantPolynomialRemainders SubresultantPolynomials Subresultants Subscript SubscriptBox SubscriptBoxOptions Subscripted Subset SubsetEqual Subsets SubStar Subsuperscript SubsuperscriptBox SubsuperscriptBoxOptions Subtract SubtractFrom SubValues Succeeds SucceedsEqual SucceedsSlantEqual SucceedsTilde SuchThat Sum SumConvergence Sunday SuperDagger SuperMinus SuperPlus Superscript SuperscriptBox SuperscriptBoxOptions Superset SupersetEqual SuperStar Surd SurdForm SurfaceColor SurfaceGraphics SurvivalDistribution SurvivalFunction SurvivalModel SurvivalModelFit SuspendPacket SuzukiDistribution SuzukiGroupSuz SwatchLegend Switch Symbol SymbolName SymletWavelet Symmetric SymmetricGroup SymmetricMatrixQ SymmetricPolynomial SymmetricReduction Symmetrize SymmetrizedArray SymmetrizedArrayRules SymmetrizedDependentComponents SymmetrizedIndependentComponents SymmetrizedReplacePart SynchronousInitialization SynchronousUpdating Syntax SyntaxForm SyntaxInformation SyntaxLength SyntaxPacket SyntaxQ SystemDialogInput SystemException SystemHelpPath SystemInformation SystemInformationData SystemOpen SystemOptions SystemsModelDelay SystemsModelDelayApproximate SystemsModelDelete SystemsModelDimensions SystemsModelExtract SystemsModelFeedbackConnect SystemsModelLabels SystemsModelOrder SystemsModelParallelConnect SystemsModelSeriesConnect SystemsModelStateFeedbackConnect SystemStub Tab TabFilling Table TableAlignments TableDepth TableDirections TableForm TableHeadings TableSpacing TableView TableViewBox TabSpacings TabView TabViewBox TabViewBoxOptions TagBox TagBoxNote TagBoxOptions TaggingRules TagSet TagSetDelayed TagStyle TagUnset Take TakeWhile Tally Tan Tanh TargetFunctions TargetUnits TautologyQ TelegraphProcess TemplateBox TemplateBoxOptions TemplateSlotSequence TemporalData Temporary TemporaryVariable TensorContract TensorDimensions TensorExpand TensorProduct TensorQ TensorRank TensorReduce TensorSymmetry TensorTranspose TensorWedge Tetrahedron TetrahedronBox TetrahedronBoxOptions TeXForm TeXSave Text Text3DBox Text3DBoxOptions TextAlignment TextBand TextBoundingBox TextBox TextCell TextClipboardType TextData TextForm TextJustification TextLine TextPacket TextParagraph TextRecognize TextRendering TextStyle Texture TextureCoordinateFunction TextureCoordinateScaling Therefore ThermometerGauge Thick Thickness Thin Thinning ThisLink ThompsonGroupTh Thread ThreeJSymbol Threshold Through Throw Thumbnail Thursday Ticks TicksStyle Tilde TildeEqual TildeFullEqual TildeTilde TimeConstrained TimeConstraint Times TimesBy TimeSeriesForecast TimeSeriesInvertibility TimeUsed TimeValue TimeZone Timing Tiny TitleGrouping TitsGroupT ToBoxes ToCharacterCode ToColor ToContinuousTimeModel ToDate ToDiscreteTimeModel ToeplitzMatrix ToExpression ToFileName Together Toggle ToggleFalse Toggler TogglerBar TogglerBox TogglerBoxOptions ToHeldExpression ToInvertibleTimeSeries TokenWords Tolerance ToLowerCase ToNumberField TooBig Tooltip TooltipBox TooltipBoxOptions TooltipDelay TooltipStyle Top TopHatTransform TopologicalSort ToRadicals ToRules ToString Total TotalHeight TotalVariationFilter TotalWidth TouchscreenAutoZoom TouchscreenControlPlacement ToUpperCase Tr Trace TraceAbove TraceAction TraceBackward TraceDepth TraceDialog TraceForward TraceInternal TraceLevel TraceOff TraceOn TraceOriginal TracePrint TraceScan TrackedSymbols TradingChart TraditionalForm TraditionalFunctionNotation TraditionalNotation TraditionalOrder TransferFunctionCancel TransferFunctionExpand TransferFunctionFactor TransferFunctionModel TransferFunctionPoles TransferFunctionTransform TransferFunctionZeros TransformationFunction TransformationFunctions TransformationMatrix TransformedDistribution TransformedField Translate TranslationTransform TransparentColor Transpose TreeForm TreeGraph TreeGraphQ TreePlot TrendStyle TriangleWave TriangularDistribution Trig TrigExpand TrigFactor TrigFactorList Trigger TrigReduce TrigToExp TrimmedMean True TrueQ TruncatedDistribution TsallisQExponentialDistribution TsallisQGaussianDistribution TTest Tube TubeBezierCurveBox TubeBezierCurveBoxOptions TubeBox TubeBSplineCurveBox TubeBSplineCurveBoxOptions Tuesday TukeyLambdaDistribution TukeyWindow Tuples TuranGraph TuringMachine Transparent UnateQ Uncompress Undefined UnderBar Underflow Underlined Underoverscript UnderoverscriptBox UnderoverscriptBoxOptions Underscript UnderscriptBox UnderscriptBoxOptions UndirectedEdge UndirectedGraph UndirectedGraphQ UndocumentedTestFEParserPacket UndocumentedTestGetSelectionPacket Unequal Unevaluated UniformDistribution UniformGraphDistribution UniformSumDistribution Uninstall Union UnionPlus Unique UnitBox UnitConvert UnitDimensions Unitize UnitRootTest UnitSimplify UnitStep UnitTriangle UnitVector Unprotect UnsameQ UnsavedVariables Unset UnsetShared UntrackedVariables Up UpArrow UpArrowBar UpArrowDownArrow Update UpdateDynamicObjects UpdateDynamicObjectsSynchronous UpdateInterval UpDownArrow UpEquilibrium UpperCaseQ UpperLeftArrow UpperRightArrow UpperTriangularize Upsample UpSet UpSetDelayed UpTee UpTeeArrow UpValues URL URLFetch URLFetchAsynchronous URLSave URLSaveAsynchronous UseGraphicsRange Using UsingFrontEnd V2Get ValidationLength Value ValueBox ValueBoxOptions ValueForm ValueQ ValuesData Variables Variance VarianceEquivalenceTest VarianceEstimatorFunction VarianceGammaDistribution VarianceTest VectorAngle VectorColorFunction VectorColorFunctionScaling VectorDensityPlot VectorGlyphData VectorPlot VectorPlot3D VectorPoints VectorQ Vectors VectorScale VectorStyle Vee Verbatim Verbose VerboseConvertToPostScriptPacket VerifyConvergence VerifySolutions VerifyTestAssumptions Version VersionNumber VertexAdd VertexCapacity VertexColors VertexComponent VertexConnectivity VertexCoordinateRules VertexCoordinates VertexCorrelationSimilarity VertexCosineSimilarity VertexCount VertexCoverQ VertexDataCoordinates VertexDegree VertexDelete VertexDiceSimilarity VertexEccentricity VertexInComponent VertexInDegree VertexIndex VertexJaccardSimilarity VertexLabeling VertexLabels VertexLabelStyle VertexList VertexNormals VertexOutComponent VertexOutDegree VertexQ VertexRenderingFunction VertexReplace VertexShape VertexShapeFunction VertexSize VertexStyle VertexTextureCoordinates VertexWeight Vertical VerticalBar VerticalForm VerticalGauge VerticalSeparator VerticalSlider VerticalTilde ViewAngle ViewCenter ViewMatrix ViewPoint ViewPointSelectorSettings ViewPort ViewRange ViewVector ViewVertical VirtualGroupData Visible VisibleCell VoigtDistribution VonMisesDistribution WaitAll WaitAsynchronousTask WaitNext WaitUntil WakebyDistribution WalleniusHypergeometricDistribution WaringYuleDistribution WatershedComponents WatsonUSquareTest WattsStrogatzGraphDistribution WaveletBestBasis WaveletFilterCoefficients WaveletImagePlot WaveletListPlot WaveletMapIndexed WaveletMatrixPlot WaveletPhi WaveletPsi WaveletScale WaveletScalogram WaveletThreshold WeaklyConnectedComponents WeaklyConnectedGraphQ WeakStationarity WeatherData WeberE Wedge Wednesday WeibullDistribution WeierstrassHalfPeriods WeierstrassInvariants WeierstrassP WeierstrassPPrime WeierstrassSigma WeierstrassZeta WeightedAdjacencyGraph WeightedAdjacencyMatrix WeightedData WeightedGraphQ Weights WelchWindow WheelGraph WhenEvent Which While White Whitespace WhitespaceCharacter WhittakerM WhittakerW WienerFilter WienerProcess WignerD WignerSemicircleDistribution WilksW WilksWTest WindowClickSelect WindowElements WindowFloating WindowFrame WindowFrameElements WindowMargins WindowMovable WindowOpacity WindowSelected WindowSize WindowStatusArea WindowTitle WindowToolbars WindowWidth With WolframAlpha WolframAlphaDate WolframAlphaQuantity WolframAlphaResult Word WordBoundary WordCharacter WordData WordSearch WordSeparators WorkingPrecision Write WriteString Wronskian XMLElement XMLObject Xnor Xor Yellow YuleDissimilarity ZernikeR ZeroSymmetric ZeroTest ZeroWidthTimes Zeta ZetaZero ZipfDistribution ZTest ZTransform $Aborted $ActivationGroupID $ActivationKey $ActivationUserRegistered $AddOnsDirectory $AssertFunction $Assumptions $AsynchronousTask $BaseDirectory $BatchInput $BatchOutput $BoxForms $ByteOrdering $Canceled $CharacterEncoding $CharacterEncodings $CommandLine $CompilationTarget $ConditionHold $ConfiguredKernels $Context $ContextPath $ControlActiveSetting $CreationDate $CurrentLink $DateStringFormat $DefaultFont $DefaultFrontEnd $DefaultImagingDevice $DefaultPath $Display $DisplayFunction $DistributedContexts $DynamicEvaluation $Echo $Epilog $ExportFormats $Failed $FinancialDataSource $FormatType $FrontEnd $FrontEndSession $GeoLocation $HistoryLength $HomeDirectory $HTTPCookies $IgnoreEOF $ImagingDevices $ImportFormats $InitialDirectory $Input $InputFileName $InputStreamMethods $Inspector $InstallationDate $InstallationDirectory $InterfaceEnvironment $IterationLimit $KernelCount $KernelID $Language $LaunchDirectory $LibraryPath $LicenseExpirationDate $LicenseID $LicenseProcesses $LicenseServer $LicenseSubprocesses $LicenseType $Line $Linked $LinkSupported $LoadedFiles $MachineAddresses $MachineDomain $MachineDomains $MachineEpsilon $MachineID $MachineName $MachinePrecision $MachineType $MaxExtraPrecision $MaxLicenseProcesses $MaxLicenseSubprocesses $MaxMachineNumber $MaxNumber $MaxPiecewiseCases $MaxPrecision $MaxRootDegree $MessageGroups $MessageList $MessagePrePrint $Messages $MinMachineNumber $MinNumber $MinorReleaseNumber $MinPrecision $ModuleNumber $NetworkLicense $NewMessage $NewSymbol $Notebooks $NumberMarks $Off $OperatingSystem $Output $OutputForms $OutputSizeLimit $OutputStreamMethods $Packages $ParentLink $ParentProcessID $PasswordFile $PatchLevelID $Path $PathnameSeparator $PerformanceGoal $PipeSupported $Post $Pre $PreferencesDirectory $PrePrint $PreRead $PrintForms $PrintLiteral $ProcessID $ProcessorCount $ProcessorType $ProductInformation $ProgramName $RandomState $RecursionLimit $ReleaseNumber $RootDirectory $ScheduledTask $ScriptCommandLine $SessionID $SetParentLink $SharedFunctions $SharedVariables $SoundDisplay $SoundDisplayFunction $SuppressInputFormHeads $SynchronousEvaluation $SyntaxHandler $System $SystemCharacterEncoding $SystemID $SystemWordLength $TemporaryDirectory $TemporaryPrefix $TextStyle $TimedOut $TimeUnit $TimeZone $TopDirectory $TraceOff $TraceOn $TracePattern $TracePostAction $TracePreAction $Urgent $UserAddOnsDirectory $UserBaseDirectory $UserDocumentsDirectory $UserName $Version $VersionNumber", -contains:[{className:"comment",begin:/\(\*/,end:/\*\)/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:/\{/,end:/\}/,illegal:/:/}]}}}),define("highlight/lib/languages/matlab",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=[e.C_NUMBER_MODE,{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}],n={relevance:0,contains:[{begin:/'['\.]*/}]};return{keywords:{keyword:"break case catch classdef continue else elseif end enumerated events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson"},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{begin:/[a-zA-Z_][a-zA-Z_0-9]*'['\.]*/,returnBegin:!0,relevance:0,contains:[{begin:/[a-zA-Z_][a-zA-Z_0-9]*/,relevance:0},n.contains[0]]},{begin:"\\[",end:"\\]",contains:t,relevance:0,starts:n},{begin:"\\{",end:/}/,contains:t,relevance:0,starts:n},{begin:/\)/,relevance:0,starts:n},e.COMMENT("^\\s*\\%\\{\\s*$","^\\s*\\%\\}\\s*$"),e.COMMENT("\\%","$")].concat(t)}}}),define("highlight/lib/languages/maxima",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="if then else elseif for thru do while unless step in and or not",n="true false unknown inf minf ind und %e %i %pi %phi %gamma",i=" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",r="_ __ %|0 %%|0";return{lexemes:"[A-Za-z_%][0-9A-Za-z_%]*",keywords:{keyword:t,literal:n,built_in:i,symbol:r},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}}),define("highlight/lib/languages/mel",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform", -illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},l={className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]};return{aliases:["m","moo"],keywords:t,contains:[s,l,n,e.C_BLOCK_COMMENT_MODE,i,e.NUMBER_MODE,r,a,{begin:/:-/}]}}}),define("highlight/lib/languages/mipsasm",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,aliases:["mips"],lexemes:"\\.?"+e.IDENT_RE,keywords:{meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(.hb)?|jr(.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs.[sd]|add.[sd]|alnv.ps|bc1[ft]l?|c.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et]).[sd]|(ceil|floor|round|trunc).[lw].[sd]|cfc1|cvt.d.[lsw]|cvt.l.[dsw]|cvt.ps.s|cvt.s.[dlw]|cvt.s.p[lu]|cvt.w.[dls]|div.[ds]|ldx?c1|luxc1|lwx?c1|madd.[sd]|mfc1|mov[fntz]?.[ds]|msub.[sd]|mth?c1|mul.[ds]|neg.[ds]|nmadd.[ds]|nmsub.[ds]|p[lu][lu].ps|recip.fmt|r?sqrt.[ds]|sdx?c1|sub.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#]","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:"/"}}}),define("highlight/lib/languages/mizar",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}}),define("highlight/lib/languages/perl",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",n={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:t},i={begin:"->{",end:"}"},r={variants:[{begin:/\$\d/},{begin:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{begin:/[\$%@][^\s\w{]/,relevance:0}]},a=[e.BACKSLASH_ESCAPE,n,r],o=[r,e.HASH_COMMENT_MODE,e.COMMENT("^\\=\\w","\\=cut",{endsWithParent:!0}),i,{className:"string",contains:a,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*\\<",end:"\\>",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:"{\\w+}",contains:[],relevance:0},{begin:"-?\\w+\\s*\\=\\>",contains:[],relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",begin:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",relevance:10},{className:"regexp",begin:"(m|qr)?/",end:"/[a-z]*",contains:[e.BACKSLASH_ESCAPE],relevance:0}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return n.contains=o,i.contains=o,{aliases:["pl","pm"],lexemes:/[\w\.]+/,keywords:t,contains:o}}}),define("highlight/lib/languages/mojolicious",["require","exports","module"],function(e,t,n){n.exports=function(e){return{subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}}),define("highlight/lib/languages/monkey",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]};return{case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}}),define("highlight/lib/languages/moonscript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/}/,keywords:t},r=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=r;var a=e.inherit(e.TITLE_MODE,{begin:n}),o="(\\(.*\\))?\\s*\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(r)}]};return{aliases:["moon"],keywords:t,illegal:/\/\*/,contains:r.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[a,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}),define("highlight/lib/languages/nginx",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/}/},{begin:"[\\$\\@]"+e.UNDERSCORE_IDENT_RE}]},n={endsWithParent:!0,lexemes:"[a-z/_]+",keywords:{literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[t]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:"\\s\\^",end:"\\s|{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},t]};return{aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+{",returnBegin:!0,end:"{",contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:n}],relevance:0}],illegal:"[^\\s\\}]"}}}),define("highlight/lib/languages/nimrod",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["nim"],keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/{\./,end:/\.}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}}),define("highlight/lib/languages/nix",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},n={className:"subst",begin:/\$\{/,end:/}/,keywords:t},i={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]},r={className:"string",contains:[n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,i];return n.contains=a,{aliases:["nixos"],keywords:t,contains:a}}}),define("highlight/lib/languages/nsis",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",begin:"\\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)"},n={className:"variable",begin:"\\$+{[a-zA-Z0-9_]+}"},i={className:"variable",begin:"\\$+[a-zA-Z0-9_]+",illegal:"\\(\\){}"},r={className:"variable",begin:"\\$+\\([a-zA-Z0-9_]+\\)"},a={className:"built_in",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},o={className:"keyword",begin:"\\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifmacrondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchparse|searchreplace|tempfile|undef|verbose|warning)"};return{case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText IntCmp IntCmpU IntFmt IntOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetPluginUnload SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption SubSectionEnd Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both colored current false force hide highest lastused leave listonly none normal notset off on open print show silent silentlog smooth textonly true user "},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[{begin:"\\$(\\\\(n|r|t)|\\$)"},t,n,i,r]},e.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup SubSection",end:"$"},o,n,i,r,a,e.NUMBER_MODE,{begin:e.IDENT_RE+"::"+e.IDENT_RE}]}}}),define("highlight/lib/languages/objectivec",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n={keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,r="@interface @class @protocol @implementation";return{aliases:["mm","objc","obj-c"],keywords:n,lexemes:i,illegal:""}]}]},{className:"class",begin:"("+r.split(" ").join("|")+")\\b",end:"({|$)",excludeEnd:!0,keywords:r,lexemes:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}}),define("highlight/lib/languages/ocaml",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["ml"],keywords:{keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,lexemes:"[a-z_]\\w*!?",contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}}),define("highlight/lib/languages/openscad",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",i,r,t,n]},s={begin:"[*!#%]",relevance:0},l={className:"function",beginKeywords:"module function",end:"\\=|\\{",contains:[o,e.UNDERSCORE_TITLE_MODE]};return{aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,r,t,s,l]}}}),define("highlight/lib/languages/oxygene",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained",n=e.COMMENT("{","}",{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),r={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},a={className:"string",begin:"(#\\d+)+"},o={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[r,a]},n,i]};return{case_insensitive:!0,lexemes:/\.?\w+/,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[n,i,e.C_LINE_COMMENT_MODE,r,a,e.NUMBER_MODE,o,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:t,contains:[r,a,n,i,e.C_LINE_COMMENT_MODE,o]}]}}}),define("highlight/lib/languages/parser3",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.COMMENT("{","}",{contains:["self"]});return{subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT("\\^rem{","}",{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:"\\$\\{?[\\w\\-\\.\\:]+\\}?"},{className:"keyword",begin:"\\^[\\w\\-\\.\\:]+"},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/pf",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/},n={className:"variable",begin:/<(?!\/)/,end:/>/};return{aliases:["pf.conf"],lexemes:/[a-z0-9_<>-]+/,keywords:{built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to routeallow-opts divert-packet divert-reply divert-to flags group icmp-typeicmp6-type label once probability recieved-on rtable prio queuetos tag tagged user keep fragment for os dropaf-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robinsource-hash static-portdup-to reply-to route-toparent bandwidth default min max qlimitblock-policy debug fingerprints hostid limit loginterface optimizationreassemble ruleset-optimization basic none profile skip state-defaultsstate-policy timeoutconst counters persistno modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppysource-track global rule max-src-nodes max-src-states max-src-connmax-src-conn-rate overload flushscrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,t,n]}}}),define("highlight/lib/languages/php",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},n={className:"meta",begin:/<\?(php)?|\?>/},i={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["php3","php4","php5","php6"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,r]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},i,r]}}}),define("highlight/lib/languages/pony",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"actor addressof and as be break class compile_error compile_intrinsicconsume continue delegate digestof do else elseif embed end errorfor fun if ifdef in interface is isnt lambda let match new not objector primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},n={className:"string",begin:'"""',end:'"""', -relevance:10},i={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},r={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},a={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},o={begin:e.IDENT_RE+"'",relevance:0},s={className:"class",beginKeywords:"class actor",end:"$",contains:[e.TITLE_MODE,e.C_LINE_COMMENT_MODE]},l={className:"function",beginKeywords:"new fun",end:"=>",contains:[e.TITLE_MODE,{begin:/\(/,end:/\)/,contains:[a,o,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:/:/,endsWithParent:!0,contains:[a]},e.C_LINE_COMMENT_MODE]};return{keywords:t,contains:[s,l,a,n,i,r,o,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}}),define("highlight/lib/languages/powershell",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:"`[\\s\\S]",relevance:0},n={className:"variable",variants:[{begin:/\$[\w\d][\w\d_:]*/}]},i={className:"literal",begin:/\$(null|true|false)\b/},r={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[t,n,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},a={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},o={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},s=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[o]});return{aliases:["ps"],lexemes:/-?[A-z\.\-]+/,case_insensitive:!0,keywords:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch",built_in:"Add-Computer Add-Content Add-History Add-JobTrigger Add-Member Add-PSSnapin Add-Type Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession Connect-WSMan Convert-Path ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString ConvertTo-Xml Copy-Item Copy-ItemProperty Debug-Process Disable-ComputerRestore Disable-JobTrigger Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration Disable-WSManCredSSP Disconnect-PSSession Disconnect-WSMan Disable-ScheduledJob Enable-ComputerRestore Enable-JobTrigger Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration Enable-ScheduledJob Enable-WSManCredSSP Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter Export-Csv Export-FormatData Export-ModuleMember Export-PSSession ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Host Get-HotFix Get-Help Get-History Get-IseSnippet Get-Item Get-ItemProperty Get-Job Get-JobTrigger Get-Location Get-Member Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-ScheduledJob Get-ScheduledJobOption Get-Service Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb Get-WinEvent Get-WmiObject Get-WSManCredSSP Get-WSManInstance Group-Object Import-Alias Import-Clixml Import-Counter Import-Csv Import-IseSnippet Import-LocalizedData Import-PSSession Import-Module Invoke-AsWorkflow Invoke-Command Invoke-Expression Invoke-History Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod Invoke-WSManAction Join-Path Limit-EventLog Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Event New-EventLog New-IseSnippet New-Item New-ItemProperty New-JobTrigger New-Object New-Module New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption New-PSWorkflowExecutionOption New-PSWorkflowSession New-ScheduledJobOption New-Service New-TimeSpan New-Variable New-WebServiceProxy New-WinEvent New-WSManInstance New-WSManSessionOption Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Receive-Job Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration Register-ScheduledJob Register-WmiEvent Remove-Computer Remove-Event Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-JobTrigger Remove-Module Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData Remove-Variable Remove-WmiObject Remove-WSManInstance Rename-Computer Rename-Item Rename-ItemProperty Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service Restore-Computer Resume-Job Resume-Service Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-JobTrigger Set-Location Set-PSBreakpoint Set-PSDebug Set-PSSessionConfiguration Set-ScheduledJob Set-ScheduledJobOption Set-Service Set-StrictMode Set-TraceSource Set-Variable Set-WmiInstance Set-WSManInstance Set-WSManQuickConfig Show-Command Show-ControlPanelItem Show-EventLog Sort-Object Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript Suspend-Job Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration Unregister-ScheduledJob Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog Write-Host Write-Output Write-Progress Write-Verbose Write-Warning",nomarkup:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},contains:[t,e.NUMBER_MODE,r,a,i,n,s]}}}),define("highlight/lib/languages/processing",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/profile",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}}),define("highlight/lib/languages/prolog",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},i={begin:/\(/,end:/\)/,relevance:0},r={begin:/\[/,end:/\]/},a={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},s={className:"string",begin:/0\'(\\\'|.)/},l={className:"string",begin:/0\'\\s/},c={begin:/:-/},d=[t,n,i,c,r,a,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,s,l,e.C_NUMBER_MODE];return i.contains=d,r.contains=d,{contains:d.concat([{begin:/\.$/}])}}}),define("highlight/lib/languages/protobuf",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{keyword:"package import option optional required repeated group",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/;/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+/,end:/\s*=/,excludeEnd:!0}]}}}),define("highlight/lib/languages/puppet",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},n=e.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",r=e.inherit(e.TITLE_MODE,{begin:i}),a={className:"variable",begin:"\\$"+i},o={className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{aliases:["pp"],contains:[n,a,o,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[r,n]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE},{begin:/\{/,end:/\}/,keywords:t,relevance:0,contains:[o,n,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},a]}],relevance:0}]}}}),define("highlight/lib/languages/purebasic",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},n={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{aliases:["pb","pbi"],keywords:"And As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect Continue Data DataSection EndDataSection Debug DebugLevel Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndEnumeration EndIf EndImport EndInterface EndMacro EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration Extends FakeReturn For Next ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface Macro NewList Not Or ProcedureReturn Protected Prototype PrototypeC Read ReDim Repeat Until Restore Return Select Shared Static Step Structure StructureUnion Swap To Wend While With XIncludeFile XOr Procedure ProcedureC ProcedureCDLL ProcedureDLL Declare DeclareC DeclareCDLL DeclareDLL",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},t,n]}}}),define("highlight/lib/languages/python",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"meta",begin:/^(>>>|\.\.\.) /},n={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[t],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[t],relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},i={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},r={className:"params",begin:/\(/,end:/\)/,contains:["self",t,i,n]};return{aliases:["py","gyp"],keywords:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},illegal:/(<\/|->|\?)/,contains:[t,i,n,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def",relevance:10},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,r,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}}),define("highlight/lib/languages/q",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"};return{aliases:["k","kdb"],keywords:t,lexemes:/(`?)[A-Za-z0-9_]+\b/,contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/qml",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url var variant vector2d vector3d vector4dPromise"},n="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},r={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:n,returnEnd:!1}},o={begin:n+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:n,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},s={begin:n+"\\s*{",end:"{",returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:n})]};return{aliases:["qt"],case_insensitive:!1,keywords:t,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},r,i,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},a,o,s],illegal:/#/}}}),define("highlight/lib/languages/r",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";return{contains:[e.HASH_COMMENT_MODE,{begin:t,lexemes:t,keywords:{keyword:"function if in break next repeat else for return switch while try tryCatch stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...",literal:"NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{begin:"`",end:"`",relevance:0},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]}]}}}),define("highlight/lib/languages/rib",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:""}]}}}),define("highlight/lib/languages/scala",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"meta",begin:"@[A-Za-z]+"},n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:"\\${",end:"}"}]},i={className:"string",variants:[{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'"""',end:'"""',relevance:10},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[n],relevance:10}]},r={className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},a={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},o]},l={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[o]};return{keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,r,a,l,s,e.C_NUMBER_MODE,t]}}}),define("highlight/lib/languages/scheme",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(\\-|\\+)?\\d+([./]\\d+)?",i=n+"[+\\-]"+n+"i",r={"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},a={className:"meta",begin:"^#!",end:"$"},o={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},s={className:"number",variants:[{begin:n,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=e.QUOTE_STRING_MODE,c=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],d={begin:t,relevance:0},u={className:"symbol",begin:"'"+t},m={endsWithParent:!0,relevance:0},p={begin:/'/,contains:[{begin:"\\(",end:"\\)",contains:["self",o,l,s,d,u]}]},g={className:"name",begin:t,lexemes:t,keywords:r},h={begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[g,{begin:/\(/,end:/\)/,endsParent:!0,contains:[d]}]},b={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[h,g,m]};return m.contains=[o,s,l,d,u,p,b].concat(c),{illegal:/\S/,contains:[a,s,l,u,p,b].concat(c)}}}),define("highlight/lib/languages/scilab",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{aliases:["sci"],lexemes:/%?\w+/,keywords:{keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",end:"",relevance:0},{begin:"\\[",end:"\\]'*[\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}}),define("highlight/lib/languages/scss",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",n={className:"variable",begin:"(\\$"+t+")\\b"},i={className:"number",begin:"#[0-9A-Fa-f]+"};({className:"attribute",begin:"[A-Z\\_\\.\\-]+",end:":",excludeEnd:!0,illegal:"[^\\s]",starts:{endsWithParent:!0,excludeEnd:!0,contains:[i,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"!important"}]}});return{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},n,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[n,i,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[n,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}}),define("highlight/lib/languages/smali",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],i=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{aliases:["smali"],contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+i.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((\\-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+n.join("|")+")((\\-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}}}),define("highlight/lib/languages/smalltalk",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{aliases:["st"],keywords:"self super nil true false thisContext",contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,i,n,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"\\#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,i]}]}}}),define("highlight/lib/languages/sml",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["ml"],keywords:{keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,lexemes:"[a-z_]\\w*!?",contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}}),define("highlight/lib/languages/sqf",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.getLanguage("cpp").exports,n={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]};return{aliases:["sqf"],case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if switch then throw to try while with",built_in:"or plus abs accTime acos action actionKeys actionKeysImages actionKeysNames actionKeysNamesArray actionName activateAddons activatedAddons activateKey addAction addBackpack addBackpackCargo addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats addMagazine addMagazine array addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler addMPEventHandler addMusicEventHandler addPrimaryWeaponItem addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem addSwitchableUnit addTeamMember addToRemainsCollector addUniform addVehicle addVest addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponPool addWeaponTurret agent agents AGLToASL aimedAtTarget aimPos airDensityRTD airportSide AISFinishHeal alive allControls allCurators allDead allDeadMen allDisplays allGroups allMapMarkers allMines allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage allowDammage allowFileOperations allowFleeing allowGetIn allPlayers allSites allTurrets allUnits allUnitsUAV allVariables ammo and animate animateDoor animationPhase animationState append armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines backpackSpaceFor behaviour benchmark binocular blufor boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canUnloadInCombat captive captiveNum cbChecked cbSetChecked ceil cheatsEnabled checkAIFeature civilian className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool closeDialog closeDisplay closeOverlay collapseObjectTree combatMode commandArtilleryFire commandChat commander commandFire commandFollow commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop commandTarget commandWatch comment commitOverlay compile compileFinal completedFSM composeText configClasses configFile configHierarchy configName configProperties configSourceMod configSourceModList connectTerminalToUAV controlNull controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count countEnemy countFriendly countSide countType countUnknown createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker createMarkerLocal createMenu createMine createMissionDisplay createSimpleTask createSite createSoundSource createTask createTeam createTrigger createUnit createUnit array createVehicle createVehicle array createVehicleCrew createVehicleLocal crew ctrlActivate ctrlAddEventHandler ctrlAutoScrollDelay ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ctrlParent ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ctrlScale ctrlSetActiveColor ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontP ctrlSetFontPB ctrlSetForegroundColor ctrlSetModel ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPosition ctrlSetScale ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ctrlType ctrlVisible curatorAddons curatorCamera curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected curatorWaypointCost currentChannel currentCommand currentMagazine currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorTarget customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime deActivateKey debriefingText debugFSM debugLog deg deleteAt deleteCenter deleteCollection deleteEditorObject deleteGroup deleteIdentity deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines diag activeMissionFSMs diag activeSQFScripts diag activeSQSScripts diag captureFrame diag captureSlowFrame diag fps diag fpsMin diag frameNo diag log diag logSlowFrame diag tickTime dialog diarySubjectExists didJIP didJIPOwner difficulty difficultyEnabled difficultyEnabledRTD direction directSay disableAI disableCollisionWith disableConversation disableDebriefingStats disableSerialization disableTIEquipment disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayNull displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam distance distance2D distanceSqr distributionRegion doArtilleryFire doFire doFollow doFSM doGetOut doMove doorPhase doStop doTarget doWatch drawArrow drawEllipse drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawRectangle driver drop east echo editObject editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature enableAttack enableCamShake enableCaustics enableCollisionWith enableCopilot enableDebriefingStats enableDiagLegend enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights enableIRLasers enableMimics enablePersonTurret enableRadio enableReload enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation enableSimulationGlobal enableTeamSwitch enableUAVConnectability enableUAVWaypoints endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM exp expectedDestination eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition findEmptyPositionReady findNearestEnemy finishMissionInit finite fire fireAtTarget firstBackpack flag flagOwner fleeing floor flyInHeight fog fogForecast fogParams forceAddUniform forceEnd forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam format formation formationDirection formationLeader formationMembers formationPosition formationTask formatText formLeader freeLook fromEditor fuel fullCrew gearSlotAmmoCount gearSlotData getAllHitPointsDamage getAmmoCargo getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining getBurningValue getCargoIndex getCenterOfMass getClientState getConnectedUAV getDammage getDescription getDir getDirVisual getDLCs getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getFatigue getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getModelInfo getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPlayerChannel getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getRepairCargo getResolution getShadowDistance getSlingLoad getSpeed getSuppression getTerrainHeightASL getText getVariable getWeaponCargo getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit grpNull gunner gusts halt handgunItems handgunMagazine handgunWeapon handsHit hasInterface hasWeapon hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hint hintC hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups importance in incapacitatedState independent inflame inflamed inGameUISetEventHandler inheritsFrom initAmbientLife inputAction inRangeOfArtillery insertEditorObject intersect isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDedicated isDLCAvailable isEngineOn isEqualTo isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn isKeyActive isKindOf isLightOn isLocalized isManualFire isMarkedForCollection isMultiplayer isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad isPipEnabled isPlayer isRealTime isServer isShowing3DIcons isSteamMission isStreamFriendlyUIEnabled isText isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUniformAllowed isWalking isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language laserTarget lbAdd lbClear lbColor lbCurSel lbData lbDelete lbIsSelected lbPicture lbSelection lbSetColor lbSetCurSel lbSetData lbSetPicture lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbValue leader leaderboardDeInit leaderboardGetRows leaderboardInit leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineBreak lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize locationNull locationPosition lock lockCameraTo lockCargo lockDriver locked lockedCargo lockedDriver lockedTurret lockTurret lockWP log logEntities lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText markerType max members min mineActive mineDetectedBy missionConfigFile missionName missionNamespace missionStart mod modelToWorld modelToWorldVisual moonIntensity morale move moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name name location nameSound nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing nearestObject nearestObjects nearObjects nearObjectsReady nearRoads nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex nextWeatherChange nMenuItems not numberToDate objectCurators objectFromNetId objectParent objNull objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openMap openYoutubeVideo opfor or orderGetIn overcast overcastForecast owner param params parseNumber parseText parsingNamespace particlesQuality pi pickWeaponPool pitch playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ppEffectForceInNVG precision preloadCamera preloadObject preloadSound preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority private processDiaryLink productVersion profileName profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition publicVariable publicVariableClient publicVariableServer pushBack putWeaponPool queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl remoteExec remoteExecCall removeAction removeAllActions removeAllAssignedItems removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers removeAllMusicEventHandlers removeAllPrimaryWeaponItems removeAllWeapons removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler removeMusicEventHandler removePrimaryWeaponItem removeSecondaryWeaponItem removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon removeWeaponGlobal removeWeaponTurret requiredVersion resetCamShake resetSubgroupDirection resistance resize resources respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ropeAttachTo ropeCreate ropeCut ropeEndPosition ropeLength ropes ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY saveGame saveIdentity saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D scopeName score scoreSide screenToWorld scriptDone scriptName scriptNull scudState secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces selectDiarySubject selectedEditorObjects selectEditorObject selectionPosition selectLeader selectNoPlayer selectPlayer selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime set setAccTime setAirportSide setAmmo setAmmoCargo setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour setBleedingRemaining setCameraInterest setCamShakeDefParams setCamShakeParams setCamUseTi setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination setDetailMapBlendPars setDir setDirection setDrawIcon setDropInterval setEditorMode setEditorObjectScope setEffectCondition setFace setFaceAnimation setFatigue setFlagOwner setFlagSide setFlagTexture setFog setFog array setFormation setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setLeader setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound setObjectArguments setObjectMaterial setObjectProxy setObjectTexture setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom setPilotLight setPiPEffect setPitch setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW setPosATL setPosition setPosWorld setRadioMsg setRain setRainbow setRandomLip setRank setRectangular setRepairCargo setShadowDistance setSide setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimulWeatherLayers setSize setSkill setSkill array setSlingLoad setSoundEffect setSpeaker setSpeech setSpeedMode setStatValue setSuppression setSystemOfUnits setTargetAge setTaskResult setTaskState setTerrainGrid setText setTimeMultiplier setTitleEffect setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitPos setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnloadInCombat setUserActionText setVariable setVectorDir setVectorDirAndUp setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleId setVehicleLock setVehiclePosition setVehicleTiPars setVehicleVarName setVelocity setVelocityTransformation setViewDistance setVisibleIfTreeCollapsed setWaves setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointFormation setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce setWindStr setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap shownPad shownRadio shownUAVFeed shownWarrant shownWatch showPad showRadio showSubtitles showUAVFeed showWarrant showWatch showWaypoint side sideChat sideEnemy sideFriendly sideLogic sideRadio sideUnknown simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step stop stopped str sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth switchableUnits switchAction switchCamera switchGesture switchLight switchMove synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint synchronizeWaypoint trigger systemChat systemOfUnits tan targetKnowledge targetsAggregate targetsQuery taskChildren taskCompleted taskDescription taskDestination taskHint taskNull taskParent taskResult taskState teamMember teamMemberNull teamName teams teamSwitch teamSwitchEnabled teamType terminate terrainIntersect terrainIntersectASL text text location textLog textLogFormat tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toLower toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle triggerAttachObject triggerAttachVehicle triggerStatements triggerText triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear tvCollapse tvCount tvCurSel tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetTooltip tvSetValue tvSort tvSortByValue tvText tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems uniformMagazines unitAddons unitBackpack unitPos unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAudioTimeForMoves vectorAdd vectorCos vectorCrossProduct vectorDiff vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo vectorMagnitude vectorMagnitudeSqr vectorMultiply vectorNormalized vectorUp vectorUpVisual vehicle vehicleChat vehicleRadio vehicles vehicleVarName velocity velocityModelSpace verifySignature vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap visiblePosition visiblePositionASL visibleWatch waitUntil waves waypointAttachedObject waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour waypointCombatMode waypointCompletionRadius waypointDescription waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible weaponAccessories weaponCargo weaponDirection weaponLowered weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD west WFSideText wind windDir windStr wingsForcesRTD worldName worldSize worldToModel worldToModelVisual worldToScreen _forEachIndex _this _x", -literal:"true false nil"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,n,t.preprocessor],illegal:/#/}}}),define("highlight/lib/languages/sql",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.COMMENT("--","$");return{case_insensitive:!0,illegal:/[<>{}*#]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment",end:/;/,endsWithParent:!0,lexemes:/[\w\.]+/,keywords:{keyword:"abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text varchar varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE,{begin:'""'}]},{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t]},e.C_BLOCK_COMMENT_MODE,t]}}}),define("highlight/lib/languages/stan",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[e.HASH_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE,lexemes:e.UNDERSCORE_IDENT_RE,keywords:{name:"for in while repeat until if then else",symbol:"bernoulli bernoulli_logit binomial binomial_logit beta_binomial hypergeometric categorical categorical_logit ordered_logistic neg_binomial neg_binomial_2 neg_binomial_2_log poisson poisson_log multinomial normal exp_mod_normal skew_normal student_t cauchy double_exponential logistic gumbel lognormal chi_square inv_chi_square scaled_inv_chi_square exponential inv_gamma weibull frechet rayleigh wiener pareto pareto_type_2 von_mises uniform multi_normal multi_normal_prec multi_normal_cholesky multi_gp multi_gp_cholesky multi_student_t gaussian_dlm_obs dirichlet lkj_corr lkj_corr_cholesky wishart inv_wishart","selector-tag":"int real vector simplex unit_vector ordered positive_ordered row_vector matrix cholesky_factor_corr cholesky_factor_cov corr_matrix cov_matrix",title:"functions model data parameters quantities transformed generated",literal:"true false"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0}]}}}),define("highlight/lib/languages/stata",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize meqparse mer merg merge mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\(|$)"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}}),define("highlight/lib/languages/step21",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[A-Z_][A-Z0-9_.]*",n={keyword:"HEADER ENDSEC DATA"},i={className:"meta",begin:"ISO-10303-21;",relevance:10},r={className:"meta",begin:"END-ISO-10303-21;",relevance:10};return{aliases:["p21","step","stp"],case_insensitive:!0,lexemes:t,keywords:n,contains:[i,r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}}),define("highlight/lib/languages/stylus",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",begin:"\\$"+e.IDENT_RE},n={className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},i=["charset","css","debug","extend","font-face","for","import","include","media","mixin","page","warn","while"],r=["after","before","first-letter","first-line","active","first-child","focus","hover","lang","link","visited"],a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],o="[\\.\\s\\n\\[\\:,]",s=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"],l=["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"]; -return{aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+l.join("|")+")",contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+o,returnBegin:!0,contains:[{className:"selector-class",begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"\\#[a-zA-Z][a-zA-Z0-9_-]*"+o,returnBegin:!0,contains:[{className:"selector-id",begin:"\\#[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"\\b("+a.join("|")+")"+o,returnBegin:!0,contains:[{className:"selector-tag",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"&?:?:\\b("+r.join("|")+")"+o},{begin:"@("+i.join("|")+")\\b"},t,e.CSS_NUMBER_MODE,e.NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[n,t,e.APOS_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+s.reverse().join("|")+")\\b",starts:{end:/;|$/,contains:[n,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/\./,relevance:0}}]}}}),define("highlight/lib/languages/subunit",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},n={className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},i={className:"string",begin:"(\\+|-)\\d+"},r={className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]};return{case_insensitive:!0,contains:[t,n,i,r]}}}),define("highlight/lib/languages/swift",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"__COLUMN__ __FILE__ __FUNCTION__ __LINE__ as as! as? associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r={className:"subst",begin:/\\\(/,end:"\\)",keywords:t,contains:[]},a={className:"number",begin:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{contains:[r,e.BACKSLASH_ESCAPE]});return r.contains=[a],{keywords:t,contains:[o,e.C_LINE_COMMENT_MODE,i,n,a,{className:"function",beginKeywords:"func",end:"{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{begin://},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,contains:["self",a,o,e.C_BLOCK_COMMENT_MODE,{begin:":"}],illegal:/["']/}],illegal:/\[|%/},{className:"class",beginKeywords:"struct protocol class extension enum",keywords:t,end:"\\{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/})]},{className:"meta",begin:"(@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain)"},{beginKeywords:"import",end:/$/,contains:[e.C_LINE_COMMENT_MODE,i]}]}}}),define("highlight/lib/languages/taggerscript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},n={className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},i={className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},r={className:"symbol",begin:/\\./};return{contains:[t,n,i,r]}}}),define("highlight/lib/languages/yaml",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={literal:"{ } true false yes no Yes No True False null"},n="^[ \\-]*",i="[a-zA-Z_][\\w\\-]*",r={className:"attr",variants:[{begin:n+i+":"},{begin:n+'"'+i+'":'},{begin:n+"'"+i+"':"}]},a={className:"template-variable",variants:[{begin:"{{",end:"}}"},{begin:"%{",end:"}"}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}],contains:[e.BACKSLASH_ESCAPE,a]};return{case_insensitive:!0,aliases:["yml","YAML","yaml"],contains:[r,{className:"meta",begin:"^---s*$",relevance:10},{className:"string",begin:"[\\|>] *$",returnEnd:!0,contains:o.contains,end:r.variants[0].begin},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!!"+e.UNDERSCORE_IDENT_RE},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"^ *-",relevance:0},o,e.HASH_COMMENT_MODE,e.C_NUMBER_MODE],keywords:t}}}),define("highlight/lib/languages/tap",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:"(s+)?---$",end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}}),define("highlight/lib/languages/tcl",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{excludeEnd:!0,variants:[{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)",end:"[^a-zA-Z0-9_\\}\\$]"},{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"(\\))?[^a-zA-Z0-9_\\}\\$]"}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},{className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]}]}}}),define("highlight/lib/languages/tex",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"tag",begin:/\\/,relevance:0,contains:[{className:"name",variants:[{begin:/[a-zA-Zа-яА-я]+[*]?/},{begin:/[^a-zA-Zа-яА-я0-9]/}],starts:{endsWithParent:!0,relevance:0,contains:[{className:"string",variants:[{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/}]},{begin:/\s*=\s*/,endsWithParent:!0,relevance:0,contains:[{className:"number",begin:/-?\d*\.?\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?/}]}]}}]};return{contains:[t,{className:"formula",contains:[t],relevance:0,variants:[{begin:/\$\$/,end:/\$\$/},{begin:/\$/,end:/\$/}]},e.COMMENT("%","$",{relevance:0})]}}}),define("highlight/lib/languages/thrift",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="bool byte i16 i32 i64 double string binary";return{keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:t,contains:["self"]}]}}}),define("highlight/lib/languages/tp",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},i={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER| TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},r={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]};return{keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[i,r,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}}),define("highlight/lib/languages/twig",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"params",begin:"\\(",end:"\\)"},n="attribute block constant cycle date dump include max min parent random range source template_from_string",i={beginKeywords:n,keywords:{name:n},relevance:0,contains:[t]},r={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize convert_encoding date date_modify default escape first format join json_encode keys last length lower merge nl2br number_format raw replace reverse round slice sort split striptags title trim upper url_encode",contains:[i]},a="autoescape block do embed extends filter flush for if import include macro sandbox set spaceless use verbatim";return a=a+" "+a.split(" ").map(function(e){return"end"+e}).join(" "),{aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#}/),{className:"template-tag",begin:/\{%/,end:/%}/,contains:[{className:"name",begin:/\w+/,keywords:a,starts:{endsWithParent:!0,contains:[r,i],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/}}/,contains:["self",r,i]}]}}}),define("highlight/lib/languages/typescript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void"};return{aliases:["ts"],keywords:t,contains:[{className:"meta",begin:/^\s*['"]use strict['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE],relevance:0},{className:"function",begin:"function",end:/[\{;]/,excludeEnd:!0,keywords:t,contains:["self",e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/["'\(]/}],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+e.IDENT_RE,relevance:0}]}}}),define("highlight/lib/languages/vala",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:"{",excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}}),define("highlight/lib/languages/vbnet",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["vb"],case_insensitive:!0,keywords:{keyword:"addhandler addressof alias and andalso aggregate ansi as assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor",built_in:"boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",literal:"true false nothing"},illegal:"//|{|}|endif|gosub|variant|wend",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT("'","$",{returnBegin:!0,contains:[{className:"doctag",begin:"'''|",contains:[e.PHRASAL_WORDS_MODE]},{className:"doctag",begin:"",contains:[e.PHRASAL_WORDS_MODE]}]}),e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end region externalsource"}}]}}}),define("highlight/lib/languages/vbscript",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:"lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},illegal:"//",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/vbscript-html",["require","exports","module"],function(e,t,n){n.exports=function(e){return{subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}}),define("highlight/lib/languages/verilog",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"};return{aliases:["v","sv","svh"],case_insensitive:!1,keywords:t,lexemes:/[\w\$]+/,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}}),define("highlight/lib/languages/vhdl",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="\\d(_|\\d)*",n="[eE][-+]?"+t,i=t+"(\\."+t+")?("+n+")?",r="\\w+",a=t+"#"+r+"(\\."+r+")?#("+n+")?",o="\\b("+a+"|"+i+")";return{case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signedreal_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:"{",contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:o,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}}),define("highlight/lib/languages/vim",["require","exports","module"],function(e,t,n){n.exports=function(e){return{lexemes:/[!#@\w]+/,keywords:{keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp" -},illegal:/;/,contains:[e.NUMBER_MODE,e.APOS_STRING_MODE,{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}}),define("highlight/lib/languages/x86asm",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,lexemes:"[.%]?"+e.IDENT_RE,keywords:{keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}}),define("highlight/lib/languages/xl",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts",n={keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons "+t},i={className:"string",begin:'"',end:'"',illegal:"\\n"},r={className:"string",begin:"'",end:"'",illegal:"\\n"},a={className:"string",begin:"<<",end:">>"},o={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},s={beginKeywords:"import",end:"$",keywords:n,contains:[i]},l={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:n}})]};return{aliases:["tao"],lexemes:/[a-zA-Z][a-zA-Z0-9_?]*/,keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,r,a,l,s,o,e.NUMBER_MODE]}}}),define("highlight/lib/languages/xquery",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="for let if while then else return where group by xquery encoding versionmodule namespace boundary-space preserve strip default collation base-uri orderingcopy-namespaces order declare import schema namespace function option in allowing emptyat tumbling window sliding window start when only end when previous next stable ascendingdescending empty greatest least some every satisfies switch case typeswitch try catch andor to union intersect instance of treat as castable cast map array delete insert intoreplace value rename copy modify update",n="false true xs:string xs:integer element item xs:date xs:datetime xs:float xs:double xs:decimal QName xs:anyURI xs:long xs:int xs:short xs:byte attribute",i={begin:/\$[a-zA-Z0-9\-]+/},r={className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},a={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},o={className:"meta",begin:"%\\w+"},s={className:"comment",begin:"\\(:",end:":\\)",relevance:10,contains:[{className:"doctag",begin:"@\\w+"}]},l={begin:"{",end:"}"},c=[i,a,r,s,o,l];return l.contains=c,{aliases:["xpath","xq"],case_insensitive:!1,lexemes:/[a-zA-Z\$][a-zA-Z0-9_:\-]*/,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{keyword:t,literal:n},contains:c}}}),define("highlight/lib/languages/zephir",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["zep"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var let while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally int uint long ulong char uchar double float bool boolean stringlikely unlikely",contains:[e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:"<<<['\"]?\\w+['\"]?$",end:"^\\w+;",contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_BLOCK_COMMENT_MODE,t,n]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},t,n]}}}),define("text!app.html",["module"],function(e){e.exports='\r\n'}),define("text!blog/blog.html",["module"],function(e){e.exports="\r\n"}),define("text!app.css",["module"],function(e){e.exports="html,\nbody {\n height: 100%;\n overflow: hidden;\n}\n::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background-color: #c6c6c6;\n}\n::-webkit-scrollbar-thumb:hover {\n background: #999;\n}\n@media only screen and (min-width: 768px) {\n .ui.modal.tms-md450 {\n width: 450px!important;\n margin-left: -225px !important;\n }\n .ui.modal.tms-md510 {\n width: 510px!important;\n margin-left: -255px !important;\n }\n .ui.modal.tms-md540 {\n width: 540px!important;\n margin-left: -275px !important;\n }\n}\n/* for swipebox */\n#swipebox-overlay {\n background: rgba(13, 13, 13, 0.5) !important;\n}\n.keyboard {\n background: #fff;\n font-weight: 700;\n padding: 2px .35rem;\n font-size: .8rem;\n margin: 0 2px;\n border-radius: .25rem;\n color: #3d3c40;\n border-bottom: 2px solid #9e9ea6;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);\n text-shadow: none;\n}\n#nprogress .spinner {\n display: none!important;\n}\n.tms-dropzone-preview-hidden .dz-preview {\n display: none!important;\n}\n"}),define("text!chat/chat-direct.html",["module"],function(e){e.exports='\r\n'}),define("text!common.css",["module"],function(e){e.exports="code.nx {\n background-color: #F8F8F8;\n border: 1px solid #EAEAEA;\n border-radius: 3px 3px 3px 3px;\n margin: 0 2px;\n padding: 0 5px;\n white-space: nowrap;\n}\n.markdown-body .pre-code-wrapper {\n position: relative;\n}\n.markdown-body .pre-code-wrapper > i.copy.icon {\n display: none;\n position: absolute;\n top: 0;\n right: 0;\n cursor: pointer;\n}\n.markdown-body .pre-code-wrapper:hover > i.copy.icon {\n display: block;\n}\n.tms-disabled {\n cursor: default;\n opacity: .45!important;\n background-image: none!important;\n box-shadow: none!important;\n pointer-events: none!important;\n}\n.tms-hidden {\n display: none!important;\n}\n.animated {\n -webkit-animation-duration: 1s;\n animation-duration: 1s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n@keyframes flip {\n from {\n -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -360deg);\n transform: perspective(400px) rotate3d(0, 1, 0, -360deg);\n -webkit-animation-timing-function: ease-out;\n animation-timing-function: ease-out;\n }\n 40% {\n -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n -webkit-animation-timing-function: ease-out;\n animation-timing-function: ease-out;\n }\n 50% {\n -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n -webkit-animation-timing-function: ease-in;\n animation-timing-function: ease-in;\n }\n 80% {\n -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95);\n transform: perspective(400px) scale3d(0.95, 0.95, 0.95);\n -webkit-animation-timing-function: ease-in;\n animation-timing-function: ease-in;\n }\n to {\n -webkit-transform: perspective(400px);\n transform: perspective(400px);\n -webkit-animation-timing-function: ease-in;\n animation-timing-function: ease-in;\n }\n}\n.animated.flip {\n -webkit-backface-visibility: visible;\n backface-visibility: visible;\n -webkit-animation-name: flip;\n animation-name: flip;\n}\n.cbutton {\n position: relative;\n}\n.cbutton::after {\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -7px 0 0 -7px;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n content: '';\n opacity: 0;\n pointer-events: none;\n}\n/* Novak */\n.cbutton--effect-novak::after {\n background: rgba(111, 148, 182, 0.25);\n}\n.cbutton--effect-novak.cbutton--click::after {\n -webkit-animation: anim-effect-novak 0.5s forwards;\n animation: anim-effect-novak 0.5s forwards;\n}\n@-webkit-keyframes anim-effect-novak {\n 0% {\n opacity: 1;\n -webkit-transform: scale3d(0.1, 0.1, 1);\n transform: scale3d(0.1, 0.1, 1);\n }\n 100% {\n opacity: 0;\n -webkit-transform: scale3d(8, 8, 1);\n transform: scale3d(30, 30, 1);\n }\n}\n@keyframes anim-effect-novak {\n 0% {\n opacity: 1;\n -webkit-transform: scale3d(0.1, 0.1, 1);\n transform: scale3d(0.1, 0.1, 1);\n }\n 100% {\n opacity: 0;\n -webkit-transform: scale3d(8, 8, 1);\n transform: scale3d(30, 30, 1);\n }\n}\n.emoji {\n width: 1.5em;\n height: 1.5em;\n display: inline-block;\n margin-bottom: -0.25em;\n background-size: contain;\n}\na.btn-delete {\n cursor: pointer;\n color: red;\n}\n"; -}),define("text!test/test-lifecycle.html",["module"],function(e){e.exports='\r\n'}),define("text!override.css",["module"],function(e){e.exports=".ui.dimmer {\n background-color: rgba(0, 0, 0, 0.5) !important;\n}\n.ui.dimmer.page.modals {\n z-index: 10000;\n}\n.ui.modal > .actions > .ui.left.floated.button {\n margin-left: 3.5px;\n}\n.ui.list .list .item {\n display: list-item !important;\n table-layout: fixed;\n height: auto!important;\n visibility: visible!important;\n}\n.ui.list .list .item:after {\n content: '';\n display: block;\n height: 0;\n clear: both;\n visibility: hidden;\n}\n#swipebox-bottom-bar,\n#swipebox-top-bar {\n background: rgba(0, 0, 0, 0.3) !important;\n}\n"}),define("text!variables.css",["module"],function(e){e.exports=""}),define("text!blog/blog.css",["module"],function(e){e.exports=""}),define("text!user/user-login.html",["module"],function(e){e.exports='\r\n'}),define("text!user/user-pwd-reset.html",["module"],function(e){e.exports='\r\n'}),define("text!chat/chat-direct.css",["module"],function(e){e.exports=".tms-chat-direct {\n height: 100%;\n}\n.tms-chat-direct .ui.comments {\n min-height: calc(100% - 170px);\n}\n.tms-chat-direct .ui.comments > .comment > .content {\n display: block!important;\n}\n.tms-chat-direct .tms-edit-textarea {\n width: 100%;\n}\n.tms-chat-direct .ui.selection.list > .item {\n cursor: default;\n}\n.tms-chat-direct .ui.search .prompt {\n border-radius: .28571429rem;\n}\n.tms-chat-direct .tms-content {\n position: relative;\n margin-left: 220px;\n top: 60px;\n height: calc(100% - 60px);\n}\n.tms-chat-direct .tms-content.tms-sidebar-show .tms-right-sidebar {\n width: 388px;\n border-left: 1px #e9e9e9 solid;\n -webkit-transition: width 0.15s ease-out 0s;\n transition: width 0.15s ease-out 0s;\n margin: 4px;\n margin-right: 0;\n}\n@media only screen and (max-width: 767px) {\n .tms-chat-direct .tms-content {\n margin-left: 0;\n }\n}\n.tms-chat-direct .tms-content .tms-content-body {\n width: 100%;\n height: 100%;\n max-width: 100%;\n padding-bottom: 73px;\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-comments-container {\n width: 100%;\n height: 100%;\n overflow: auto;\n}\n.tms-chat-direct .tms-content .tms-content-body .ui.comments {\n overflow: hidden;\n max-width: none;\n margin-bottom: 12px;\n margin-top: 10px;\n}\n.tms-chat-direct .tms-content .tms-content-body .ui.comments > .ui.basic.button {\n display: block;\n margin-right: 0;\n}\n.tms-chat-direct .tms-content .tms-content-body .ui.comments .tms-pre-more {\n margin-bottom: 10px;\n}\n.tms-chat-direct .tms-content .tms-content-body .ui.comments .tms-next-more {\n margin-top: 10px;\n position: relative;\n}\n.tms-chat-direct .tms-content .tms-content-body .ui.comments .tms-next-more .ui.icon.button {\n position: absolute;\n top: 2px;\n right: -1px;\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-go {\n position: fixed;\n left: 240px;\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-go .ui.button {\n margin: 0;\n background-color: rgba(224, 225, 226, 0.5);\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-go .ui.button:hover {\n background-color: #CACBCD;\n}\n@media only screen and (max-width: 767px) {\n .tms-chat-direct .tms-content .tms-content-body .tms-go {\n left: 20px;\n }\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-go-head {\n top: 80px;\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-go-foot {\n bottom: 90px;\n}\n.tms-chat-direct .tms-right-sidebar {\n position: absolute;\n top: 0;\n right: 0;\n width: 0;\n bottom: 0;\n overflow: hidden;\n padding-top: 10px;\n padding-bottom: 10px;\n}\n.tms-chat-direct .tms-right-sidebar .comments .ui.button.tms-search-more {\n display: block;\n margin: 0;\n}\n.tms-chat-direct .tms-right-sidebar .comments .comment .markdown-body {\n max-height: 65px;\n overflow-y: hidden;\n}\n.tms-chat-direct .tms-right-sidebar .comments .comment .markdown-body.tms-open {\n max-height: none;\n overflow-y: auto;\n padding-bottom: 20px;\n}\n.tms-chat-direct .tms-right-sidebar .comments .comment .tms-btn-open-search-item {\n display: none;\n height: 25px;\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n text-align: center;\n padding-top: 2px;\n background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0, #bbbbbb 100%);\n background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0, #bbbbbb 100%);\n background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0) 0, #bbbbbb 100%);\n background-image: linear-gradient(top, rgba(255, 255, 255, 0) 0, #bbbbbb 100%);\n}\n.tms-chat-direct .tms-right-sidebar .comments .comment:hover .tms-btn-open-search-item {\n display: block;\n}\n@media only screen and (max-width: 767px) {\n .tms-chat-direct .tms-content > .ui.dimmer {\n display: block;\n opacity: 1;\n z-index: 1;\n }\n .tms-chat-direct.hide-bar .tms-content > .ui.dimmer {\n display: none;\n }\n .tms-chat-direct .tms-left-sidebar.hide-bar {\n left: -220px;\n }\n .tms-chat-direct .tms-right-sidebar {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 59px;\n background-color: white;\n margin-left: 0!important;\n }\n .tms-chat-direct .tms-right-sidebar .panel-chat-msg .ui.basic.segment.minimal.selection.list.segment.comments {\n padding-left: 0;\n padding-right: 0;\n }\n .tms-chat-direct .tms-sidebar-show .tms-right-sidebar {\n width: 100%!important;\n }\n}\n.tms-chat-direct .tms-edit-actions .left.button {\n border-top-left-radius: 0;\n}\n.tms-chat-direct .tms-edit-actions .right.button {\n border-top-right-radius: 0;\n}\n.tms-chat-progress {\n position: absolute;\n display: inline-block;\n top: 60px;\n left: 0;\n width: 0;\n height: 2px;\n margin-left: 220px;\n background-color: #c6c6c6;\n box-shadow: 0px 0px 8px 0px #c6c6c6;\n}\n@media only screen and (max-width: 767px) {\n .tms-chat-progress {\n margin-left: 0;\n }\n}\n"}),define("text!user/user-register.html",["module"],function(e){e.exports='\r\n'}),define("text!chat/md-github.css",["module"],function(e){e.exports='.markdown-body {\n font-size: 14px;\n line-height: 1.6;\n}\n.markdown-body > br,\n.markdown-body ul br .markdown-body ol br {\n display: none;\n}\n.markdown-body > *:first-child {\n margin-top: 0 !important;\n}\n.markdown-body > *:last-child {\n margin-bottom: 0 !important;\n}\n.markdown-body a {\n word-break: break-all;\n}\n.markdown-body a.absent {\n color: #CC0000;\n}\n.markdown-body a.anchor {\n bottom: 0;\n cursor: pointer;\n display: block;\n left: 0;\n margin-left: -30px;\n padding-left: 30px;\n position: absolute;\n top: 0;\n}\n.markdown-body h1,\n.markdown-body h2,\n.markdown-body h3,\n.markdown-body h4,\n.markdown-body h5,\n.markdown-body h6 {\n cursor: text;\n font-weight: bold;\n margin: 20px 0 10px;\n padding: 0;\n position: relative;\n word-break: break-all;\n}\n.markdown-body h1 .mini-icon-link,\n.markdown-body h2 .mini-icon-link,\n.markdown-body h3 .mini-icon-link,\n.markdown-body h4 .mini-icon-link,\n.markdown-body h5 .mini-icon-link,\n.markdown-body h6 .mini-icon-link {\n color: #000000;\n display: none;\n}\n.markdown-body h1:hover a.anchor,\n.markdown-body h2:hover a.anchor,\n.markdown-body h3:hover a.anchor,\n.markdown-body h4:hover a.anchor,\n.markdown-body h5:hover a.anchor,\n.markdown-body h6:hover a.anchor {\n line-height: 1;\n margin-left: -22px;\n padding-left: 0;\n text-decoration: none;\n top: 15%;\n}\n.markdown-body h1:hover a.anchor .mini-icon-link,\n.markdown-body h2:hover a.anchor .mini-icon-link,\n.markdown-body h3:hover a.anchor .mini-icon-link,\n.markdown-body h4:hover a.anchor .mini-icon-link,\n.markdown-body h5:hover a.anchor .mini-icon-link,\n.markdown-body h6:hover a.anchor .mini-icon-link {\n display: inline-block;\n}\n.markdown-body h1 tt,\n.markdown-body h1 code,\n.markdown-body h2 tt,\n.markdown-body h2 code,\n.markdown-body h3 tt,\n.markdown-body h3 code,\n.markdown-body h4 tt,\n.markdown-body h4 code,\n.markdown-body h5 tt,\n.markdown-body h5 code,\n.markdown-body h6 tt,\n.markdown-body h6 code {\n font-size: inherit;\n}\n.markdown-body h1 {\n color: #000000;\n font-size: 28px;\n}\n.markdown-body h2 {\n border-bottom: 1px solid #CCCCCC;\n color: #000000;\n font-size: 24px;\n}\n.markdown-body h3 {\n font-size: 18px;\n}\n.markdown-body h4 {\n font-size: 16px;\n}\n.markdown-body h5 {\n font-size: 14px;\n}\n.markdown-body h6 {\n color: #777777;\n font-size: 14px;\n}\n.markdown-body p,\n.markdown-body blockquote,\n.markdown-body ul,\n.markdown-body ol,\n.markdown-body dl,\n.markdown-body table,\n.markdown-body pre {\n margin: 15px 0;\n}\n.markdown-body hr {\n overflow: hidden;\n background: 0 0;\n}\n.markdown-body hr:before {\n display: table;\n content: "";\n}\n.markdown-body hr:after {\n display: table;\n clear: both;\n content: "";\n}\n.markdown-body hr {\n height: 4px;\n padding: 0;\n margin: 16px 0;\n background-color: #e7e7e7;\n border: 0;\n}\n.markdown-body hr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n.markdown-body > h2:first-child,\n.markdown-body > h1:first-child,\n.markdown-body > h1:first-child + h2,\n.markdown-body > h3:first-child,\n.markdown-body > h4:first-child,\n.markdown-body > h5:first-child,\n.markdown-body > h6:first-child {\n margin-top: 0;\n padding-top: 0;\n}\n.markdown-body a:first-child h1,\n.markdown-body a:first-child h2,\n.markdown-body a:first-child h3,\n.markdown-body a:first-child h4,\n.markdown-body a:first-child h5,\n.markdown-body a:first-child h6 {\n margin-top: 0;\n padding-top: 0;\n}\n.markdown-body h1 + p,\n.markdown-body h2 + p,\n.markdown-body h3 + p,\n.markdown-body h4 + p,\n.markdown-body h5 + p,\n.markdown-body h6 + p {\n margin-top: 0;\n}\n.markdown-body li p.first {\n display: inline-block;\n}\n.markdown-body ul,\n.markdown-body ol {\n padding-left: 30px;\n}\n.markdown-body ul.no-list,\n.markdown-body ol.no-list {\n list-style-type: none;\n padding: 0;\n}\n.markdown-body ul li > *:first-child,\n.markdown-body ol li > *:first-child {\n margin-top: 0;\n}\n.markdown-body ul ul,\n.markdown-body ul ol,\n.markdown-body ol ol,\n.markdown-body ol ul {\n margin-bottom: 0;\n}\n.markdown-body dl {\n padding: 0;\n}\n.markdown-body dl dt {\n font-size: 14px;\n font-style: italic;\n font-weight: bold;\n margin: 15px 0 5px;\n padding: 0;\n}\n.markdown-body dl dt:first-child {\n padding: 0;\n}\n.markdown-body dl dt > *:first-child {\n margin-top: 0;\n}\n.markdown-body dl dt > *:last-child {\n margin-bottom: 0;\n}\n.markdown-body dl dd {\n margin: 0 0 15px;\n padding: 0 15px;\n}\n.markdown-body dl dd > *:first-child {\n margin-top: 0;\n}\n.markdown-body dl dd > *:last-child {\n margin-bottom: 0;\n}\n.markdown-body blockquote {\n border-left: 4px solid #DDDDDD;\n color: #777777;\n padding: 0 15px;\n}\n.markdown-body blockquote > *:first-child {\n margin-top: 0;\n}\n.markdown-body blockquote > *:last-child {\n margin-bottom: 0;\n}\n.markdown-body table th {\n font-weight: bold;\n}\n.markdown-body table th,\n.markdown-body table td {\n border: 1px solid #CCCCCC;\n padding: 6px 13px;\n}\n.markdown-body table tr {\n background-color: #FFFFFF;\n border-top: 1px solid #CCCCCC;\n}\n.markdown-body table tr:nth-child(2n) {\n background-color: #F8F8F8;\n}\n.markdown-body img {\n max-width: 100%;\n}\n.markdown-body span.frame {\n display: block;\n overflow: hidden;\n}\n.markdown-body span.frame > span {\n border: 1px solid #DDDDDD;\n display: block;\n float: left;\n margin: 13px 0 0;\n overflow: hidden;\n padding: 7px;\n width: auto;\n}\n.markdown-body span.frame span img {\n display: block;\n float: left;\n}\n.markdown-body span.frame span span {\n clear: both;\n color: #333333;\n display: block;\n padding: 5px 0 0;\n}\n.markdown-body span.align-center {\n clear: both;\n display: block;\n overflow: hidden;\n}\n.markdown-body span.align-center > span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: center;\n}\n.markdown-body span.align-center span img {\n margin: 0 auto;\n text-align: center;\n}\n.markdown-body span.align-right {\n clear: both;\n display: block;\n overflow: hidden;\n}\n.markdown-body span.align-right > span {\n display: block;\n margin: 13px 0 0;\n overflow: hidden;\n text-align: right;\n}\n.markdown-body span.align-right span img {\n margin: 0;\n text-align: right;\n}\n.markdown-body span.float-left {\n display: block;\n float: left;\n margin-right: 13px;\n overflow: hidden;\n}\n.markdown-body span.float-left span {\n margin: 13px 0 0;\n}\n.markdown-body span.float-right {\n display: block;\n float: right;\n margin-left: 13px;\n overflow: hidden;\n}\n.markdown-body span.float-right > span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: right;\n}\n.markdown-body code,\n.markdown-body tt {\n background-color: #F8F8F8;\n border: 1px solid #EAEAEA;\n border-radius: 3px 3px 3px 3px;\n margin: 0 2px;\n padding: 0 5px;\n /* white-space: nowrap; */\n white-space: normal;\n word-break: break-all;\n}\n.markdown-body pre > code {\n background: none repeat scroll 0 0 transparent;\n border: medium none;\n margin: 0;\n padding: 0;\n white-space: pre;\n}\n.markdown-body .highlight pre,\n.markdown-body pre {\n background-color: #F8F8F8;\n border: 1px solid #CCCCCC;\n border-radius: 3px 3px 3px 3px;\n font-size: 13px;\n line-height: 19px;\n overflow: auto;\n padding: 6px 10px;\n}\n.markdown-body pre code,\n.markdown-body pre tt {\n background-color: transparent;\n border: medium none;\n}\n'}),define("text!resources/elements/em-blog-comment-popup.html",["module"],function(e){e.exports='\r\n'}),define("text!common/common-scrollbar.css",["module"],function(e){e.exports='/*************** SCROLLBAR BASE CSS ***************/\n.scroll-wrapper {\n overflow: hidden !important;\n padding: 0 !important;\n position: relative;\n width: 100%;\n height: 100%;\n}\n.scroll-wrapper > .scroll-content {\n border: none !important;\n box-sizing: content-box !important;\n height: auto;\n left: 0;\n margin: 0;\n max-height: none;\n max-width: none !important;\n overflow: scroll !important;\n padding: 0;\n position: relative !important;\n top: 0;\n width: auto !important;\n}\n.scroll-wrapper > .scroll-content::-webkit-scrollbar {\n height: 0;\n width: 0;\n}\n.scroll-element {\n display: none;\n}\n.scroll-element,\n.scroll-element div {\n box-sizing: content-box;\n}\n.scroll-element.scroll-x.scroll-scrollx_visible,\n.scroll-element.scroll-y.scroll-scrolly_visible {\n display: block;\n}\n.scroll-element .scroll-bar,\n.scroll-element .scroll-arrow {\n cursor: default;\n}\n.scroll-textarea {\n border: 1px solid #cccccc;\n border-top-color: #999999;\n}\n.scroll-textarea > .scroll-content {\n overflow: hidden !important;\n}\n.scroll-textarea > .scroll-content > textarea {\n border: none !important;\n box-sizing: border-box;\n height: 100% !important;\n margin: 0;\n max-height: none !important;\n max-width: none !important;\n overflow: scroll !important;\n outline: none;\n padding: 2px;\n position: relative !important;\n top: 0;\n width: 100% !important;\n}\n.scroll-textarea > .scroll-content > textarea::-webkit-scrollbar {\n height: 0;\n width: 0;\n}\n/*************** SIMPLE OUTER SCROLLBAR ***************/\n.scrollbar-outer > .scroll-element,\n.scrollbar-outer > .scroll-element div {\n border: none;\n margin: 0;\n padding: 0;\n position: absolute;\n z-index: 10;\n}\n.scrollbar-outer > .scroll-element {\n background-color: #ffffff;\n}\n.scrollbar-outer > .scroll-element div {\n display: block;\n height: 100%;\n left: 0;\n top: 0;\n width: 100%;\n}\n.scrollbar-outer > .scroll-element.scroll-x {\n bottom: 0;\n height: 12px;\n left: 0;\n width: 100%;\n}\n.scrollbar-outer > .scroll-element.scroll-y {\n height: 100%;\n right: 0;\n top: 0;\n width: 12px;\n}\n.scrollbar-outer > .scroll-element.scroll-x .scroll-element_outer {\n height: 8px;\n top: 2px;\n}\n.scrollbar-outer > .scroll-element.scroll-y .scroll-element_outer {\n left: 2px;\n width: 8px;\n}\n.scrollbar-outer > .scroll-element .scroll-element_outer {\n overflow: hidden;\n}\n.scrollbar-outer > .scroll-element .scroll-element_track {\n background-color: #eeeeee;\n}\n.scrollbar-outer > .scroll-element .scroll-element_outer,\n.scrollbar-outer > .scroll-element .scroll-element_track,\n.scrollbar-outer > .scroll-element .scroll-bar {\n -webkit-border-radius: 8px;\n -moz-border-radius: 8px;\n border-radius: 8px;\n}\n.scrollbar-outer > .scroll-element .scroll-bar {\n background-color: #d9d9d9;\n}\n.scrollbar-outer > .scroll-element .scroll-bar:hover {\n background-color: #c2c2c2;\n}\n.scrollbar-outer > .scroll-element.scroll-draggable .scroll-bar {\n background-color: #919191;\n}\n/* scrollbar height/width & offset from container borders */\n.scrollbar-outer > .scroll-content.scroll-scrolly_visible {\n left: -12px;\n margin-left: 12px;\n}\n.scrollbar-outer > .scroll-content.scroll-scrollx_visible {\n top: -12px;\n margin-top: 12px;\n}\n.scrollbar-outer > .scroll-element.scroll-x .scroll-bar {\n min-width: 10px;\n}\n.scrollbar-outer > .scroll-element.scroll-y .scroll-bar {\n min-height: 10px;\n}\n/* update scrollbar offset if both scrolls are visible */\n.scrollbar-outer > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_track {\n left: -14px;\n}\n.scrollbar-outer > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_track {\n top: -14px;\n}\n.scrollbar-outer > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size {\n left: -14px;\n}\n.scrollbar-outer > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size {\n top: -14px;\n}\n/*************** SCROLLBAR MAC OS X ***************/\n.scrollbar-macosx > .scroll-element,\n.scrollbar-macosx > .scroll-element div {\n background: none;\n border: none;\n margin: 0;\n padding: 0;\n position: absolute;\n z-index: 10;\n}\n.scrollbar-macosx > .scroll-element div {\n display: block;\n height: 100%;\n left: 0;\n top: 0;\n width: 100%;\n}\n.scrollbar-macosx > .scroll-element .scroll-element_track {\n display: none;\n}\n.scrollbar-macosx > .scroll-element .scroll-bar {\n background-color: #6C6E71;\n display: block;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n opacity: 0;\n -webkit-border-radius: 7px;\n -moz-border-radius: 7px;\n border-radius: 7px;\n -webkit-transition: opacity 0.2s linear;\n -moz-transition: opacity 0.2s linear;\n -o-transition: opacity 0.2s linear;\n -ms-transition: opacity 0.2s linear;\n transition: opacity 0.2s linear;\n}\n.scrollbar-macosx:hover > .scroll-element .scroll-bar,\n.scrollbar-macosx > .scroll-element.scroll-draggable .scroll-bar {\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";\n filter: alpha(opacity=70);\n opacity: 0.7;\n}\n.scrollbar-macosx > .scroll-element.scroll-x {\n bottom: 0px;\n height: 0px;\n left: 0;\n min-width: 100%;\n overflow: visible;\n width: 100%;\n}\n.scrollbar-macosx > .scroll-element.scroll-y {\n height: 100%;\n min-height: 100%;\n right: 0px;\n top: 0;\n width: 0px;\n}\n/* scrollbar height/width & offset from container borders */\n.scrollbar-macosx > .scroll-element.scroll-x .scroll-bar {\n height: 7px;\n min-width: 10px;\n top: -9px;\n}\n.scrollbar-macosx > .scroll-element.scroll-y .scroll-bar {\n left: -9px;\n min-height: 10px;\n width: 7px;\n}\n.scrollbar-macosx > .scroll-element.scroll-x .scroll-element_outer {\n left: 2px;\n}\n.scrollbar-macosx > .scroll-element.scroll-x .scroll-element_size {\n left: -4px;\n}\n.scrollbar-macosx > .scroll-element.scroll-y .scroll-element_outer {\n top: 2px;\n}\n.scrollbar-macosx > .scroll-element.scroll-y .scroll-element_size {\n top: -4px;\n}\n/* update scrollbar offset if both scrolls are visible */\n.scrollbar-macosx > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size {\n left: -11px;\n}\n.scrollbar-macosx > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size {\n top: -11px;\n}\n'}),define("text!resources/elements/em-blog-comment-share.html",["module"],function(e){e.exports='\r\n'}),define("text!user/user-login.css",["module"],function(e){e.exports=".tms-user-login {\n width: 100%;\n min-height: 100%;\n background-color: #5a3636;\n overflow: hidden;\n}\n.tms-user-login .container {\n width: 300px;\n top: 50px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n}\n.tms-user-login h2 {\n color: rgba(197, 164, 164, 0.8) !important;\n}\n.tms-user-login .ui.form {\n background-color: #353131;\n}\n.tms-user-login .ui.error.message {\n background-color: #5a3636;\n}\n.tms-user-login .ui.error.message .header {\n color: #e0b4b4;\n}\n.tms-user-login .ui.checkbox label {\n color: #ad8b8b;\n}\n.tms-user-login .ui.checkbox input:focus ~ label {\n color: #ad8b8b;\n}\n.tms-user-login .ui.checkbox label:hover {\n color: #ad8b8b;\n}\n.tms-user-login .ui.button {\n background-color: #5a3636;\n color: #ad8b75;\n}\n"}),define("text!resources/elements/em-blog-comment.html",["module"],function(e){e.exports='\r\n'; -}),define("text!user/user-pwd-reset.css",["module"],function(e){e.exports=".tms-user-pwd-reset {\n height: 100%;\n}\n.tms-user-pwd-reset .tms-flex {\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n"}),define("text!resources/elements/em-blog-content.html",["module"],function(e){e.exports='\r\n'}),define("text!user/user-register.css",["module"],function(e){e.exports=".tms-user-register {\n height: 100%;\n}\n.tms-user-register .tms-flex {\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n"}),define("text!resources/elements/em-blog-comment-popup.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-blog-history-diff.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-history-view.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-comment-share.css",["module"],function(e){e.exports=".em-blog-comment-share.ui.popup {\n max-width: 100%;\n width: 255px;\n}\n.em-blog-comment-share.ui.popup .ui.input {\n width: 225px;\n}\n.em-blog-comment-share.ui.popup textarea {\n /* width: 195px!important; */\n}\n.em-blog-comment-share.ui.popup .ui.search > .results .result {\n cursor: pointer!important;\n display: block!important;\n color: rgba(0, 0, 0, 0.87) !important;\n border-bottom: 1px solid rgba(34, 36, 38, 0.1) !important;\n margin: 0!important;\n}\n.em-blog-comment-share.ui.popup .ui.list > .item {\n color: rgba(0, 0, 0, 0.87);\n}\n.em-blog-comment-share:after {\n content: '';\n clear: both;\n}\n.em-blog-comment-share .footer {\n margin-top: 16px;\n}\n.em-blog-comment-share .footer .btn-cancel {\n float: right;\n margin: 6px 0 0 8px!important;\n}\n"}),define("text!resources/elements/em-blog-history.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-comment.css",["module"],function(e){e.exports='.em-blog-comment {\n margin-top: 32px;\n margin-bottom: 32px;\n}\n.em-blog-comment .ui.comments {\n max-width: 100%;\n}\n.em-blog-comment .ui.comments > .ui.dividing.header {\n margin-bottom: 0;\n}\n.em-blog-comment .ui.comments .comment {\n margin-top: 0;\n}\n.em-blog-comment .ui.comments .comment:hover {\n background: rgba(0, 0, 0, 0.03);\n color: rgba(0, 0, 0, 0.8);\n}\n.em-blog-comment .ui.comments .comment:hover .content .tools {\n display: block;\n}\n.em-blog-comment .ui.comments .comment:hover:before {\n width: 4px;\n}\n.em-blog-comment .ui.comments .comment > .ui.divider {\n margin-bottom: 0;\n}\n@media only screen and (min-width: 768px) {\n .em-blog-comment .ui.comments .comment .content .markdown-body img {\n max-width: 360px;\n max-height: 360px;\n }\n}\n.em-blog-comment .ui.comments .comment .content .tms-blog-comment-edit-textarea {\n width: 100%;\n}\n.em-blog-comment .ui.comments .comment .content .textcomplete-container {\n position: relative;\n}\n.em-blog-comment .ui.comments .comment .content .textcomplete-container .append-to {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n}\n.em-blog-comment .ui.comments .comment .content > .tools {\n position: absolute;\n right: 0;\n bottom: 0;\n display: none;\n}\n.em-blog-comment .ui.comments .comment .content > .tools > .ui.button {\n margin: 0;\n background-color: rgba(224, 225, 226, 0.5);\n}\n.em-blog-comment .ui.comments .comment .content > .tools > .ui.button:hover {\n background-color: #e0e1e2;\n}\n.em-blog-comment .ui.comments .comment.active {\n background-color: #f5f5f5;\n}\n.em-blog-comment .ui.comments .comment.active:before {\n width: 4px;\n}\n.em-blog-comment .ui.comments .comment:before {\n content: "";\n position: absolute;\n z-index: -1;\n top: -2px;\n left: -4px;\n bottom: 1px;\n background: #2098D1;\n width: 0;\n -webkit-transition-property: width;\n transition-property: width;\n -webkit-transition-duration: 0.3s;\n transition-duration: 0.3s;\n -webkit-transition-timing-function: ease-out;\n transition-timing-function: ease-out;\n}\n.em-blog-comment .ui.comments .comment:nth-child(2):before {\n top: -1px;\n}\n.em-blog-comment .CodeMirror {\n min-height: 60px;\n}\n.em-blog-comment .CodeMirror-scroll {\n min-height: 60px;\n}\n.em-blog-comment .dropzone {\n position: relative;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper {\n position: relative;\n width: 100%;\n height: 0;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper .tms-blog-comment-status-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper .dropzone-previews {\n position: absolute;\n left: 0;\n bottom: -7px;\n width: 100%;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper .dropzone-previews .dz-preview {\n width: 100%;\n margin: 0;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper .dropzone-previews .dz-preview .dz-progress {\n height: 2px;\n background-color: #aaa;\n border: none;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper .dropzone-previews .dz-preview .dz-remove {\n display: none;\n}\n'}),define("text!resources/elements/em-blog-left-sidebar.html",["module"],function(e){e.exports='\r\n'; -}),define("text!resources/elements/em-blog-content.css",["module"],function(e){e.exports=".em-blog-content {\n transition: width 0.15s ease-out 0s;\n position: fixed;\n top: 55px;\n left: 300px;\n width: calc(100% - 300px) !important;\n height: calc(100% - 55px) !important;\n padding: 16px;\n overflow: auto;\n}\n.right-sidebar-show .em-blog-content {\n width: calc(100% - 600px) !important;\n}\n@media only screen and (max-width: 767px) {\n .right-sidebar-show .em-blog-content {\n width: 100%!important;\n }\n}\n@media only screen and (max-width: 767px) {\n .em-blog-content {\n left: 0;\n width: 100%!important;\n }\n}\n.em-blog-content > .header {\n margin-bottom: 24px;\n}\n.em-blog-content > .header .ui.header .sub.header {\n color: #707070;\n font-size: 12px;\n margin-top: 8px;\n}\n.em-blog-content > .header .ui.header .sub.header a.author {\n cursor: pointer;\n}\n.em-blog-content > .header .ui.header .sub.header .readCnt {\n cursor: pointer;\n margin-left: 16px;\n}\n.em-blog-content > .header .ui.header .sub.header .readCnt a {\n cursor: pointer;\n}\n.em-blog-content > .header .ui.header .sub.header .commentCnt {\n cursor: pointer;\n margin-left: 16px;\n}\n.em-blog-content > .header .ui.header .sub.header .commentCnt a {\n cursor: pointer;\n}\n.em-blog-content .topbar {\n position: relative;\n height: 30px;\n margin-bottom: 8px;\n}\n.em-blog-content .topbar > .ui.breadcrumb {\n line-height: 30px;\n}\n.em-blog-content .topbar:after {\n content: '';\n clear: both;\n}\n.em-blog-content .topbar .actions {\n float: right;\n}\n.em-blog-content .topbar .actions > .ui.basic.button {\n padding: 8px;\n box-shadow: none;\n}\n.em-blog-content .topbar .actions > .ui.basic.button:hover {\n box-shadow: 0 0 0 1px rgba(34, 36, 38, 0.35) inset, 0 0 0 0 rgba(34, 36, 38, 0.15) inset;\n}\n.em-blog-content .topbar .actions > .ui.basic.button > i.icon {\n margin-right: 2px;\n}\n.em-blog-content .topbar .actions > .ui.basic.button > i.icon.hide {\n position: relative;\n top: -1px;\n}\n.em-blog-content .topbar .actions > .ui.basic.button > i.icon.unhide {\n position: relative;\n top: -1px;\n}\n.em-blog-content > .ui.message .content > span {\n display: inline-block;\n margin-top: 10px;\n}\n.em-blog-content > .ui.message .content .ui.button {\n position: relative;\n top: -5px;\n left: 10px;\n}\n.em-blog-content .footer {\n margin-top: 16px;\n}\n.em-blog-content .footer > span {\n font-size: 12px;\n}\n.em-blog-content .footer .rate {\n margin-right: 16px;\n cursor: pointer;\n color: #4183c4;\n}\n.em-blog-content .footer > .tags {\n float: right;\n}\n.em-blog-content .footer > .tags .ui.selection.dropdown {\n border: none;\n}\n.em-blog-content .footer > .tags .ui.selection.dropdown:hover {\n box-shadow: 0 0px 1px 0px #2185d0;\n}\n.em-blog-content .footer:after {\n content: '';\n clear: both;\n display: block;\n}\n.em-blog-content > .ui.feed {\n margin-bottom: 25px!important;\n}\n.em-blog-content > .ui.feed > .event {\n position: relative;\n}\n.em-blog-content > .ui.feed > .event.opened > .content .extra.text:hover {\n max-height: none;\n overflow-y: auto;\n padding-bottom: 25px;\n}\n.em-blog-content > .ui.feed > .event > .label + .content {\n max-width: calc(100% - 50px);\n}\n.em-blog-content > .ui.feed > .event > .content .extra.text {\n position: relative;\n max-width: none;\n min-height: 25px;\n max-height: 60px;\n overflow-y: hidden;\n}\n.em-blog-content > .ui.feed > .event > .content .extra.text:hover > .btn-open {\n display: block;\n}\n.em-blog-content > .ui.feed > .event > .content .extra.text > .btn-open {\n display: none;\n height: 25px;\n background-color: rgba(0, 0, 0, 0.1);\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n text-align: center;\n padding-top: 2px;\n}\n.em-blog-content > .ui.feed > .event > .content .extra.text pre {\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n word-break: break-all;\n}\n.em-blog-content > .ui.feed > .event.active {\n background: rgba(0, 0, 0, 0.03);\n}\n.em-blog-content > .ui.feed > .event.active:before {\n width: 4px;\n}\n.em-blog-content > .ui.feed > .event:hover {\n background: rgba(0, 0, 0, 0.03);\n}\n.em-blog-content > .ui.feed > .event:hover:before {\n width: 4px;\n}\n.em-blog-content > .ui.feed > .event:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: -4px;\n bottom: 0;\n background: #2098D1;\n width: 0;\n -webkit-transition-property: width;\n transition-property: width;\n -webkit-transition-duration: 0.3s;\n transition-duration: 0.3s;\n -webkit-transition-timing-function: ease-out;\n transition-timing-function: ease-out;\n}\n.tms-blog-progress {\n position: absolute;\n display: inline-block;\n top: 55px;\n left: 0;\n width: 0;\n height: 2px;\n margin-left: 300px;\n background-color: #2185d0;\n box-shadow: 0px 0px 8px 0px #205081;\n}\n@media only screen and (max-width: 767px) {\n .tms-blog-progress {\n margin-left: 0;\n }\n}\n.em-blog-content-wrapper {\n position: fixed;\n top: 55px;\n width: calc(100vw) !important;\n height: calc(100% - 55px) !important;\n}\n@media only screen and (max-width: 767px) {\n .tms-blog.left-sidebar-show .em-blog-content-wrapper > .ui.dimmer {\n display: block;\n opacity: 1;\n }\n .tms-blog.right-sidebar-show .em-blog-content-wrapper > .ui.dimmer {\n display: block;\n opacity: 1;\n }\n .tms-blog .em-blog-content-wrapper > .ui.dimmer {\n display: none;\n }\n}\n"}),define("text!resources/elements/em-blog-right-sidebar.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-history-diff.css",["module"],function(e){e.exports=".em-blog-history-diff > .content {\n max-height: 300px;\n overflow-y: auto;\n}\n"}),define("text!resources/elements/em-blog-save.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-history-view.css",["module"],function(e){e.exports=".em-blog-history-view > .topbar {\n margin-bottom: 16px;\n}\n.em-blog-history-view > .content {\n max-height: 300px;\n overflow-y: auto;\n}\n"}),define("text!resources/elements/em-blog-share.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-history.css",["module"],function(e){e.exports=".em-blog-history > .topbar {\n margin-bottom: 16px;\n}\n.em-blog-history > .content {\n max-height: 300px;\n overflow-y: auto;\n}\n.em-blog-history .ui.table td a {\n cursor: pointer;\n}\n"}),define("text!resources/elements/em-blog-space-auth.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-space-create.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-left-sidebar.css",["module"],function(e){e.exports=".em-blog-left-sidebar.ui.left.sidebar {\n transition: left 0.15s ease-out 0s;\n width: 300px;\n top: 55px;\n left: 0;\n height: calc(100% - 55px) !important;\n background-color: #f5f5f5;\n box-shadow: none!important;\n overflow-x: hidden;\n}\n@media only screen and (max-width: 767px) {\n .em-blog-left-sidebar.ui.left.sidebar {\n z-index: 104;\n }\n .em-blog-left-sidebar.ui.left.sidebar.mobile-hide {\n left: -300px;\n }\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body {\n height: calc(100% - 40px) !important;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list {\n padding: 16px;\n padding-left: 15px;\n margin-bottom: 0px;\n padding-bottom: 8px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item {\n position: relative;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item:hover {\n box-shadow: 0px 0px 2px -1px #5791cb;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item:hover > .actions {\n display: inline-block;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item > .icon {\n padding-right: 0;\n position: relative;\n top: -1px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item > .content {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 245px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item > .actions {\n display: none;\n position: absolute;\n right: 0;\n top: -2px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list {\n padding-left: 16px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item {\n max-width: 220px;\n padding-top: 5px;\n padding-bottom: 5px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item > a {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 220px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item:before {\n color: #999;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item.active {\n font-weight: bold;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item.active > a {\n color: black;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item:hover {\n background-color: rgba(232, 224, 224, 0.5);\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item.aurelia-hide {\n display: none!important;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space {\n padding: 20px;\n margin-top: 0px;\n padding-top: 0px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item {\n padding-top: 5px;\n padding-bottom: 5px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item > a {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 242px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item:before {\n color: #999;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item.active {\n font-weight: bold;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item.active > a {\n color: black;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item:hover {\n background-color: rgba(232, 224, 224, 0.5);\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-footer {\n position: absolute;\n width: 100%;\n height: 40px;\n left: 0;\n bottom: 0;\n background-color: #efe4e4;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-footer .ui.menu {\n border: none;\n border-radius: 0;\n background-color: #e8e0e0;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-footer .ui.menu > .item.tms-search {\n position: relative;\n height: 40px;\n max-width: 207px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-footer .ui.menu > .item.tms-search:before {\n width: 0;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-footer .ui.menu > .item.tms-search > .remove.icon {\n position: absolute;\n right: 5px;\n top: 13px;\n}\n"}),define("text!resources/elements/em-blog-space-edit.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-right-sidebar.css",["module"],function(e){e.exports=".em-blog-right-sidebar {\n width: 300px;\n background-color: #f5f5f5;\n position: fixed;\n top: 55px;\n right: -300px;\n height: calc(100% - 55px);\n transition: right 0.15s ease-out 0s;\n}\n.right-sidebar-show .em-blog-right-sidebar {\n right: 0;\n}\n.em-blog-right-sidebar .panel-blog-dir {\n padding: 16px;\n}\n.em-blog-right-sidebar .panel-blog-dir .wiki-dir-item.active {\n background-color: #e8e0e0;\n}\n"}),define("text!resources/elements/em-blog-save.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-blog-space-update.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-share.css",["module"],function(e){e.exports=".em-blog-share.ui.popup {\n max-width: 100%;\n width: 255px;\n}\n.em-blog-share.ui.popup .ui.input {\n width: 225px;\n}\n.em-blog-share:after {\n content: '';\n clear: both;\n}\n.em-blog-share .footer {\n margin-top: 16px;\n}\n.em-blog-share .footer .btn-cancel {\n float: right;\n margin-top: 6px;\n margin-left: 8px;\n}\n"}),define("text!resources/elements/em-blog-top-menu.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-space-auth.css",["module"],function(e){e.exports=".em-blog-space-auth > .ui.form {\n margin-bottom: 16px;\n}\n.em-blog-space-auth .tms-header {\n margin-bottom: 8px;\n}\n.em-blog-space-auth .ui.search .prompt {\n border-radius: .28571429rem;\n}\n"}),define("text!resources/elements/em-blog-write.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-space-create.css",["module"],function(e){e.exports=".em-blog-space-create.ui.popup .ui.form {\n width: 260px;\n}\n"}),define("text!resources/elements/em-blog-space-edit.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-chat-attach.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-space-update.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-chat-channel-create.html",["module"],function(e){e.exports='\r\n'; -}),define("text!resources/elements/em-chat-channel-edit.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-top-menu.css",["module"],function(e){e.exports=".em-blog-top-menu.ui.inverted.blue.menu {\n background-color: #205081;\n height: 55px;\n z-index: 103;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .item.tms-toggle {\n display: none;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .item.tms-toggle i.icon {\n margin-right: 0;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .item.tms-links i.icon {\n margin-right: 0;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .right.menu .item .ui.icon.input input {\n background-color: #103a65;\n color: white;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .right.menu .item .ui.icon.input input:focus {\n border-color: rgba(34, 36, 38, 0.15);\n box-shadow: none;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .right.menu .item .ui.icon.input i.icon.search:before {\n color: #a3aab0;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .right.menu .item .ui.search > .results {\n max-height: 350px;\n overflow-y: auto;\n left: -150px;\n}\n@media only screen and (max-width: 767px) {\n .em-blog-top-menu.ui.inverted.blue.menu .item.tms-links {\n display: none;\n }\n .em-blog-top-menu.ui.inverted.blue.menu .item.tms-logo {\n display: none;\n }\n .em-blog-top-menu.ui.inverted.blue.menu .item.header {\n display: none;\n }\n .em-blog-top-menu.ui.inverted.blue.menu .item.tms-toggle {\n display: flex;\n }\n .em-blog-top-menu.ui.inverted.blue.menu .right.menu .item .ui.search .ui.input {\n width: 100px;\n }\n .em-blog-top-menu.ui.inverted.blue.menu.search-focus .tms-logo {\n display: none;\n }\n .em-blog-top-menu.ui.inverted.blue.menu.search-focus .tms-create {\n display: none;\n }\n .em-blog-top-menu.ui.inverted.blue.menu.search-focus .right.menu .item .ui.search .ui.input {\n width: initial;\n transition: width 0.15s ease-out 0s;\n }\n .em-blog-top-menu.ui.inverted.blue.menu.search-focus .right.menu .tms-login-user {\n display: none;\n }\n}\n"}),define("text!resources/elements/em-chat-channel-join.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-channel-link-mgr.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-write.css",["module"],function(e){e.exports="@media only screen and (max-width: 827px) {\n .modaal-wrapper .modaal-close {\n top: initial!important;\n bottom: 10px;\n z-index: 2;\n }\n}\n.em-blog-write {\n margin-top: -30px;\n margin-bottom: 20px;\n}\n.em-blog-write > .wrapper {\n max-width: 768px;\n margin: auto;\n}\n.em-blog-write > .wrapper > .title {\n position: fixed;\n z-index: 2;\n margin-bottom: 8px;\n width: calc(100% - 60px);\n background-color: white;\n padding-top: 18px;\n box-shadow: 0px 1px 0px 0px #dddddd;\n}\n@media only screen and (min-width: 828px) {\n .em-blog-write > .wrapper > .title {\n width: 768px;\n }\n}\n.em-blog-write > .wrapper > .title > .ui.input {\n padding-right: 80px;\n}\n.em-blog-write > .wrapper > .title > .ui.button {\n position: absolute;\n right: 0;\n top: 15px;\n}\n.em-blog-write > .wrapper > .content {\n padding-top: 60px;\n}\n.em-blog-write > .wrapper > .content .editor-toolbar.fullscreen {\n z-index: 800;\n}\n.em-blog-write .dropzone {\n position: relative;\n}\n.em-blog-write .dropzone .dropzone-previews {\n position: absolute;\n top: 48px;\n width: 100%;\n}\n.em-blog-write .dropzone .dropzone-previews .dz-preview {\n width: 100%;\n margin: 0;\n}\n.em-blog-write .dropzone .dropzone-previews .dz-preview .dz-progress {\n height: 2px;\n background-color: #aaa;\n border: none;\n}\n.em-blog-write .dropzone .dropzone-previews .dz-preview .dz-remove {\n display: none;\n}\n.em-blog-write .tms-blog-write-status-bar-wrapper {\n position: fixed;\n z-index: 800;\n height: 0;\n top: 120px;\n width: calc(100% - 60px);\n}\n@media only screen and (min-width: 828px) {\n .em-blog-write .tms-blog-write-status-bar-wrapper {\n width: 768px;\n }\n}\n.em-blog-write .tms-blog-write-status-bar-wrapper .tms-blog-write-status-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n"}),define("text!resources/elements/em-chat-channel-members-mgr.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-attach.css",["module"],function(e){e.exports=".em-chat-attach.ui.basic.segment {\n margin-bottom: 0;\n padding-top: 0;\n}\n.em-chat-attach .ui.basic.button {\n display: block;\n margin-right: 0;\n}\n.em-chat-attach .ui.list .description {\n font-size: 12px;\n margin-top: 3px;\n}\n.em-chat-attach.ui.menu {\n margin-top: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.em-chat-attach.ui.menu > .item {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: block!important;\n text-align: center;\n}\n.em-chat-attach.tms-attach-search-input {\n padding: 0 10px;\n}\n"}),define("text!resources/elements/em-chat-channel-members-show.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-channel-create.css",["module"],function(e){e.exports=".tms-em-chat-channel-create .tms-join {\n max-height: 315px;\n overflow-y: auto;\n}\n.tms-em-chat-channel-create .ui.form > .field > label {\n width: 35px!important;\n}\n"}),define("text!resources/elements/em-chat-content-item-footbar.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-channel-link-mgr.css",["module"],function(e){e.exports="@media only screen and (min-width: 768px) {\n .tms-em-chat-channel-link-mgr .ui.form .one.wide.field {\n padding: 0;\n }\n}\n"}),define("text!resources/elements/em-chat-content-item.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-channel-members-mgr.css",["module"],function(e){e.exports=".tms-em-chat-channel-members-mgr .ui.dropdown span.owner + i.delete.icon {\n display: none;\n}\n.tms-em-chat-channel-members-mgr .ui.dropdown span.disabled-user {\n text-decoration: line-through;\n font-style: italic;\n}\n.tms-em-chat-channel-members-mgr .member-table {\n max-height: 315px;\n overflow-y: auto;\n}\n"}),define("text!resources/elements/em-chat-input.html",["module"],function(e){e.exports='\r\n'; -}),define("text!resources/elements/em-chat-channel-members-show.css",["module"],function(e){e.exports=".em-chat-channel-members-show {\n max-height: 300px;\n overflow-y: auto;\n}\n"}),define("text!resources/elements/em-chat-member-popup.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-content-item-footbar.css",["module"],function(e){e.exports=".em-chat-content-item-footbar {\n margin-top: 8px;\n padding-top: 8px;\n padding-left: 50px;\n}\n.em-chat-content-item-footbar .add-btn {\n display: none;\n color: #586069;\n}\n.em-chat-content-item-footbar .add-btn.none {\n position: absolute;\n bottom: 0;\n}\n.em-chat-content-item-footbar .add-emoji-btn.none {\n left: 8px;\n}\n.em-chat-content-item-footbar .add-tag-btn.none {\n left: 45px;\n}\n.em-chat-content-item-footbar > .ui.label {\n cursor: pointer;\n}\n.em-chat-content-item-footbar .emoji-item {\n margin-right: 8px;\n}\n.em-chat-content-item-footbar .emoji-item img {\n cursor: pointer;\n}\n.em-chat-content-item-footbar .emoji-item:last-child {\n margin-right: 0;\n}\n.em-chat-content-item-footbar .ui.popup.tags > .content {\n width: 265px;\n}\n.em-chat-content-item-footbar .ui.popup.tags > .content > .ui.input {\n width: 20px;\n}\n.em-chat-content-item-footbar .ui.popup.tags.customTag > .content > .ui.label {\n display: none;\n}\n.em-chat-content-item-footbar .ui.popup.tags.customTag > .content > .ui.input {\n width: 265px;\n}\n"}),define("text!resources/elements/em-chat-msg-popup.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-content-item.css",["module"],function(e){e.exports='.em-chat-content-item .textcomplete-container {\n position: relative;\n}\n.em-chat-content-item .textcomplete-container .append-to {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n}\n.ui.comments .em-chat-content-item.comment > .avatar ~ .content {\n margin-left: 3em;\n}\n.ui.comments .em-chat-content-item.comment .actions > a {\n margin-right: 5px;\n}\n.ui.comments .em-chat-content-item.comment .actions .dropdown > a .ellipsis.icon {\n margin-right: 0;\n}\n.ui.comments .em-chat-content-item.comment .actions .dropdown .item.tms-red {\n color: red;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies {\n font-size: .875em;\n display: block;\n padding: 3px;\n border: 1px transparent solid;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies:hover {\n background-color: white;\n border: 1px #e0e1e2 solid;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies:hover .timeago {\n display: none;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies:hover .view {\n display: inline;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies .reply {\n color: #2185d0;\n font-weight: 600;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies .timeago {\n margin-left: 16px;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies .view {\n margin-left: 16px;\n display: none;\n}\n.ui.comments .em-chat-content-item.comment:hover .tools {\n display: block;\n}\n.ui.comments .em-chat-content-item.comment:hover:before {\n width: 4px;\n}\n.ui.comments .em-chat-content-item.comment:hover .em-chat-content-item-footbar .add-btn {\n display: inline-block;\n}\n.ui.comments .em-chat-content-item.comment.active:before {\n width: 4px;\n}\n.ui.comments .em-chat-content-item.comment:before {\n content: "";\n position: absolute;\n z-index: -1;\n top: 0;\n left: 0;\n bottom: 0;\n background: #2098D1;\n width: 0;\n -webkit-transition-property: width;\n transition-property: width;\n -webkit-transition-duration: 0.3s;\n transition-duration: 0.3s;\n -webkit-transition-timing-function: ease-out;\n transition-timing-function: ease-out;\n}\n@media only screen and (max-width: 767px) {\n .em-chat-content-item > .content > .metadata > .rating {\n display: none!important;\n }\n}\n.em-chat-content-item > .content > .markdown-body span.at-user {\n cursor: pointer;\n}\n@media only screen and (min-width: 768px) {\n .em-chat-content-item > .content > .markdown-body img {\n max-width: 360px;\n max-height: 360px;\n }\n}\n.em-chat-content-item > .content > .tools {\n position: absolute;\n right: 0;\n bottom: 0;\n display: none;\n}\n.em-chat-content-item > .content > .tools > .ui.button {\n margin: 0;\n background-color: rgba(224, 225, 226, 0.5);\n}\n.em-chat-content-item > .content > .tools > .ui.button:hover {\n background-color: #e0e1e2;\n}\n'}),define("text!resources/elements/em-chat-msg.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-input.css",["module"],function(e){e.exports='.tms-em-chat-input.ui.segment {\n margin: 0;\n position: fixed;\n bottom: 0;\n left: 220px;\n right: 0;\n background-color: white;\n padding-bottom: 22px;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-input.ui.segment {\n left: 0;\n }\n}\n.tms-em-chat-input.ui.segment .tms-chat-status-bar .dz-preview {\n display: block!important;\n width: auto!important;\n background: #e0e1e2;\n margin: 0;\n padding: 7px;\n}\n.tms-em-chat-input.ui.segment .ui[class*="left action"].input > textarea {\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n border-left-color: transparent!important;\n}\n.tms-em-chat-input.ui.segment .textareaWrapper {\n width: calc(100% - 35px);\n border: 1px solid rgba(34, 36, 38, 0.15);\n border-top-right-radius: .28571429rem;\n border-bottom-right-radius: .28571429rem;\n}\n.tms-em-chat-input.ui.segment .textareaWrapper .CodeMirror,\n.tms-em-chat-input.ui.segment .textareaWrapper .CodeMirror-scroll {\n min-height: 0;\n border: none;\n border-top-right-radius: .28571429rem;\n}\n.tms-em-chat-input.ui.segment .textareaWrapper .CodeMirror-scroll {\n max-height: 300px;\n}\n.tms-em-chat-input.ui.segment .ui.input {\n margin-right: 5px;\n}\n.tms-em-chat-input.ui.segment .ui.input i.send.icon {\n z-index: 1;\n right: 7px!important;\n}\n.tms-em-chat-input.ui.segment .ui.input textarea {\n resize: none;\n width: 100%;\n padding-right: 2.67142857em!important;\n margin: 0;\n max-width: 100%;\n outline: 0;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n text-align: left;\n display: block;\n padding: .67861429em 1em;\n background: #FFF;\n border: none;\n color: rgba(0, 0, 0, 0.87);\n box-shadow: none;\n border-top-right-radius: .28571429rem;\n border-bottom-right-radius: .28571429rem;\n}\n.tms-em-chat-input .CodeMirror-lines {\n margin-right: 30px;\n}\n.tms-em-chat-input .ui.vertical.menu.popup {\n width: 145px;\n}\n.tms-em-chat-input .ui.vertical.menu.popup a.item > i.icon {\n float: left;\n margin: 0 .35714286em 0 0;\n}\n@media only screen and (min-width: 768px) {\n .tms-chat-direct .tms-content.tms-sidebar-show .tms-em-chat-input {\n right: 392px;\n }\n}\n.textcomplete-dropdown {\n position: static!important;\n border: 1px solid #ddd;\n background-color: white;\n list-style: none;\n padding: 0;\n margin: 0;\n border-radius: 5px;\n}\n.textcomplete-dropdown li {\n /* border-top: 1px solid #ddd; */\n padding: 2px 5px;\n}\n.textcomplete-dropdown li:first-child {\n border-top: none;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n}\n.textcomplete-dropdown li:last-child {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.textcomplete-dropdown li:hover,\n.textcomplete-dropdown .active {\n background-color: #439fe0;\n}\n.textcomplete-dropdown a:hover {\n cursor: pointer;\n}\n.textcomplete-dropdown li.textcomplete-item a {\n color: black;\n}\n.textcomplete-dropdown li.textcomplete-item:hover a,\n.textcomplete-dropdown li.textcomplete-item.active a {\n color: white;\n}\n.tms-chat-input-help-meta {\n position: absolute;\n bottom: 0;\n left: 60px;\n font-size: 12px;\n color: lightgray;\n}\n'}),define("text!resources/elements/em-chat-schedule-edit.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-member-popup.css",["module"],function(e){e.exports=".tms-chat-member-popup .ui.cards {\n margin-top: 0!important;\n}\n.tms-chat-member-popup .ui.cards .card {\n margin-top: 0!important;\n}\n.tms-chat-member-popup .ui.cards .card .ui.list > .item {\n border-radius: 0!important;\n}\n"}),define("text!resources/elements/em-chat-schedule-remind.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-msg.css",["module"],function(e){e.exports=".em-chat-msg .ui.comments .comment .actions a {\n margin-right: 5px;\n}\n"}),define("text!resources/elements/em-chat-schedule.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-schedule-edit.css",["module"],function(e){e.exports=".em-chat-schedule-edit .ui.form {\n width: 300px;\n}\n.em-chat-schedule-edit .ui.form .ui.calendar {\n width: 200px;\n}\n.em-chat-schedule-edit .ui.form .tms-date-field {\n position: relative;\n}\n.em-chat-schedule-edit .ui.form .tms-date-field .ui.button {\n position: absolute;\n top: 0;\n right: 0;\n}\n.em-chat-schedule-edit .ui.form .ui.dropdown {\n width: 265px!important;\n min-height: 30px;\n}\n.em-chat-schedule-edit .ui.form .ui.dropdown > a.ui.label > input.owner + i.delete.icon {\n display: none;\n}\n.tms-schedule-edit-target {\n display: inline-block;\n width: 1px;\n height: 1px;\n position: absolute;\n right: 188px;\n top: 30px;\n}\n"}),define("text!resources/elements/em-chat-settings.html",["module"],function(e){e.exports="\r\n"}),define("text!resources/elements/em-chat-schedule-remind.css",["module"],function(e){e.exports=".em-chat-schedule-remind .ui.table tr > td:first-child {\n font-weight: bold;\n}\n"}),define("text!resources/elements/em-chat-share.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-schedule.css",["module"],function(e){e.exports=".em-chat-schedule {\n position: relative;\n height: 100%;\n}\n.em-chat-schedule .tms-add {\n position: absolute;\n right: 170px;\n top: 0;\n}\n.em-chat-schedule .ui.form {\n width: 300px;\n}\n.em-chat-schedule .ui.form .ui.calendar {\n width: 200px;\n}\n.em-chat-schedule .ui.form .tms-date-field {\n position: relative;\n}\n.em-chat-schedule .ui.form .tms-date-field .ui.button {\n position: absolute;\n top: 0;\n right: 0;\n}\n.em-chat-schedule .ui.form .ui.dropdown {\n width: 265px!important;\n min-height: auto;\n}\n.em-chat-schedule .ui.form .ui.dropdown > a.ui.label > input.owner + i.delete.icon {\n display: none;\n}\n"}),define("text!resources/elements/em-chat-sidebar-left.html",["module"],function(e){e.exports='\r\n'; -}),define("text!resources/elements/em-chat-sidebar-right.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-settings.css",["module"],function(e){e.exports=".em-chat-settings {\n position: fixed;\n top: 22px;\n left: 185px;\n display: inline-block;\n z-index: 102;\n color: #4183c4;\n -webkit-transition: all 0.15s ease-out 0s;\n transition: all 0.15s ease-out 0s;\n}\n@media only screen and (max-width: 767px) {\n .em-chat-settings.hidden {\n left: -15px;\n }\n}\n"}),define("text!resources/elements/em-chat-system-link-mgr.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-share.css",["module"],function(e){e.exports=".em-chat-share.ui.popup {\n max-width: 100%;\n width: 255px;\n}\n.em-chat-share.ui.popup .ui.input {\n width: 225px;\n}\n.em-chat-share.ui.popup textarea {\n width: 195px!important;\n}\n.em-chat-share.ui.popup .ui.search > .results .result {\n cursor: pointer!important;\n display: block!important;\n color: rgba(0, 0, 0, 0.87) !important;\n border-bottom: 1px solid rgba(34, 36, 38, 0.1) !important;\n margin: 0!important;\n}\n.em-chat-share.ui.popup .ui.list > .item {\n color: rgba(0, 0, 0, 0.87);\n}\n.em-chat-share:after {\n content: '';\n clear: both;\n}\n.em-chat-share .footer {\n margin-top: 16px;\n}\n.em-chat-share .footer .btn-cancel {\n float: right;\n margin: 6px 0 0 8px!important;\n}\n"}),define("text!resources/elements/em-chat-top-menu.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-topic-input.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-sidebar-left.css",["module"],function(e){e.exports=".tms-left-sidebar {\n overflow: hidden;\n}\n.tms-left-sidebar .tms-body {\n position: absolute;\n top: 98px;\n width: 220px;\n height: calc(100% - 150px);\n overflow: hidden;\n padding-right: 2px;\n}\n.tms-left-sidebar .tms-body i.circular.icon {\n box-shadow: 0 0 0 0.1em #4183c4 inset;\n}\n.tms-left-sidebar .tms-body .title {\n position: relative;\n margin-left: 10px;\n}\n.tms-left-sidebar .tms-body .title .ui.header {\n display: inline-block;\n margin-top: 2px;\n margin-bottom: 0;\n}\n.tms-left-sidebar .tms-body .title i.plus.icon {\n position: absolute;\n right: 10px;\n font-size: 12px;\n width: 12px!important;\n height: 12px!important;\n}\n.tms-left-sidebar .tms-body .ui.list {\n margin-top: 10px;\n padding-top: 5px;\n box-shadow: 0px -1px 1px -1px rgba(65, 131, 196, 0.5);\n}\n.tms-left-sidebar .tms-body .ui.list > .item {\n padding-left: 16px;\n border-radius: 0;\n}\n.tms-left-sidebar .tms-body .ui.list > .item > .icon + .content {\n padding: 0;\n}\n.tms-left-sidebar .tms-body .ui.list > .item.active {\n background: rgba(0, 0, 0, 0.2);\n}\n.tms-left-sidebar .tms-body .ui.list > .item:hover {\n background: rgba(0, 0, 0, 0.1) !important;\n}\n.tms-left-sidebar .tms-body .ui.list > .item.disabled-user {\n text-decoration: line-through;\n font-style: italic;\n}\n.tms-left-sidebar .tms-body .tms-name {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 160px;\n}\n.tms-left-sidebar .tms-body .tms-channels .ui.list a.item {\n position: relative;\n}\n.tms-left-sidebar .tms-body .tms-channels .ui.list a.item:hover .actions {\n display: inline-block;\n}\n.tms-left-sidebar .tms-body .tms-channels .actions {\n display: none;\n position: absolute;\n right: 10px;\n top: 5px;\n}\n.tms-left-sidebar .tms-body .scroll-element.scroll-y {\n background-color: #4d394b;\n}\n.tms-left-sidebar.ui.left.sidebar {\n background-color: #4d394b;\n -webkit-transition: all 0.15s ease-out 0s;\n transition: all 0.15s ease-out 0s;\n width: 220px;\n}\n.tms-left-sidebar.ui.left.sidebar * {\n color: #4183c4 !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header {\n padding: 9px 16px;\n box-shadow: 0 1px 1px -1px #4183c4;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input {\n background-color: transparent;\n border: 1px rgba(103, 104, 104, 0.5) solid;\n font-size: 12px;\n padding: 4px;\n width: 188px;\n outline: none;\n margin-top: 10px;\n border-radius: 2px;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input::-webkit-input-placeholder {\n color: rgba(103, 104, 104, 0.5) !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input::-moz-placeholder {\n color: rgba(103, 104, 104, 0.5) !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input:-ms-input-placeholder {\n color: rgba(103, 104, 104, 0.5) !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input:focus::-webkit-input-placeholder {\n color: #676868 !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input:focus::-moz-placeholder {\n color: #676868 !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input:focus:-ms-input-placeholder {\n color: #676868 !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header h1.ui.header {\n margin: 0;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header h1.ui.header img {\n width: 30px;\n height: 30px;\n margin: 0;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header i.close.icon {\n position: absolute;\n right: 16px;\n top: 60px;\n}\n.tms-left-sidebar .tms-footer {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.tms-left-sidebar .tms-footer .ui.menu {\n border-radius: 0;\n background-color: rgba(27, 28, 29, 0.2) !important;\n}\n.tms-left-sidebar .tms-footer .ui.menu .dropdown.item .menu {\n border-radius: 0;\n}\n.tms-left-sidebar .tms-footer .ui.menu .item {\n font-size: 12px!important;\n}\n.tms-left-sidebar .tms-footer .ui.menu .item:before {\n width: 0;\n}\n.tms-left-sidebar .tms-footer .ui.menu .ui.button.item {\n width: 140px;\n margin-right: 0;\n padding-left: 0;\n}\n.tms-left-sidebar .tms-footer .ui.menu .ui.button.item .visible.content {\n margin-right: 0;\n width: 100%;\n}\n.tms-left-sidebar .tms-footer .ui.menu .right.menu .ui.dropdown .menu .header {\n min-width: 150px;\n position: relative;\n}\n.tms-left-sidebar .tms-footer .ui.menu .right.menu .ui.dropdown .menu .header .plus.icon {\n position: absolute;\n right: 0;\n top: -7px;\n}\n"}),define("text!resources/elements/em-chat-topic.html",["module"],function(e){e.exports='\r\n'; -}),define("text!resources/elements/em-chat-sidebar-right.css",["module"],function(e){e.exports=".em-chat-sidebar-right .panel-wiki-dir {\n height: 100%;\n padding-left: 15px;\n overflow-y: auto;\n}\n.em-chat-sidebar-right .panel-chat-schedule {\n height: calc(100% - 10px);\n overflow: hidden;\n}\n"}),define("text!resources/elements/em-checkbox.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-confirm-modal.html",["module"],function(e){e.exports='\n'}),define("text!resources/elements/em-chat-system-link-mgr.css",["module"],function(e){e.exports="@media only screen and (min-width: 768px) {\n .tms-em-chat-system-link-mgr .ui.form .one.wide.field {\n padding: 0;\n }\n}\n"}),define("text!resources/elements/em-dropdown-links.html",["module"],function(e){e.exports='\n'}),define("text!resources/elements/em-chat-top-menu.css",["module"],function(e){e.exports=".tms-em-chat-top-menu.ui.top.menu {\n padding-left: 220px;\n height: 60px;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu .tms-chat-at.tms-hide {\n display: none;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .item.tms-item:before {\n display: none;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-login-user.tms-hide {\n display: none;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item {\n padding-left: 0;\n padding-right: 5px;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.tms-hide {\n display: none;\n }\n .tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.tms-mobile-hide {\n display: none;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item button .ui.floating.label {\n top: 0;\n right: 0;\n left: auto;\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.ui.dropdown {\n display: none;\n padding-left: 5px;\n margin-right: 5px;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.ui.dropdown {\n display: flex;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.ui.dropdown > i.icon {\n margin-left: 5px;\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.ui.dropdown .menu > .item .ui.button {\n margin: 0;\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.ui.dropdown .menu > .item .ui.button i.icon {\n margin: 0;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-search {\n padding-left: 10px;\n padding-right: 10px;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .ui.search input {\n width: 95px;\n transition: width 0.15s ease-out 0s;\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .ui.search i.remove.icon {\n display: none;\n position: absolute;\n right: 0;\n left: auto;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu {\n padding-left: 0;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .ui.basic.button {\n box-shadow: none;\n}\n.tms-em-chat-top-menu.ui.top.menu .ui.basic.button:hover {\n background-color: rgba(0, 0, 0, 0.03) !important;\n}\n@media only screen and (min-width: 768px) {\n .tms-em-chat-top-menu > .tms-chat-at.ui.dropdown {\n min-width: 175px;\n padding-top: 0;\n padding-left: 13px;\n padding-bottom: 20px;\n }\n .tms-em-chat-top-menu > .tms-chat-at.ui.dropdown.item:before {\n width: 0;\n }\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .text > .actions {\n display: none;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata {\n position: absolute;\n display: flex;\n top: 35px;\n font-size: 12px;\n left: 0;\n height: 15px;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata .item:before {\n top: 5px;\n height: 50%;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata .item.tms-channel-info:before {\n width: 0;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata .item.tms-user-info:before {\n width: 0;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata {\n display: none;\n }\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata .tms-channel-links .menu .header {\n min-width: 200px;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .text {\n display: none;\n }\n .tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .dropdown.icon {\n margin-left: 6px;\n margin-right: 6px;\n }\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .header i.plus.icon {\n position: absolute;\n right: 5px;\n top: 7px;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .item:hover .actions {\n display: inline-block;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .item .icon {\n margin-right: 4px!important;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .item > .actions {\n display: none;\n position: absolute;\n right: 5px;\n top: 10px;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .item > .actions .large.ellipsis.horizontal.icon {\n font-size: 1.3em!important;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .item.disabled-user {\n text-decoration: line-through;\n font-style: italic;\n}\n@media only screen and (min-width: 768px) {\n .tms-em-chat-top-menu a.item.toggle-bar {\n display: none!important;\n }\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu div.dropdown.tms-chat-at {\n display: none!important;\n }\n}\n"}),define("text!resources/elements/em-dropdown.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-topic-input.css",["module"],function(e){e.exports='.em-chat-topic-input {\n margin: 0;\n bottom: 0;\n background-color: white;\n padding-bottom: 22px;\n}\n.em-chat-topic-input .tms-chat-topic-status-bar .dz-preview {\n display: block!important;\n width: auto!important;\n background: #e0e1e2;\n margin: 0;\n padding: 7px;\n}\n.em-chat-topic-input .ui[class*="left action"].input > textarea {\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n border-left-color: transparent!important;\n}\n.em-chat-topic-input .textareaWrapper {\n width: calc(100% - 35px);\n border: 1px solid rgba(34, 36, 38, 0.15);\n border-top-right-radius: .28571429rem;\n border-bottom-right-radius: .28571429rem;\n}\n.em-chat-topic-input .textareaWrapper .CodeMirror,\n.em-chat-topic-input .textareaWrapper .CodeMirror-scroll {\n min-height: 0;\n border: none;\n border-top-right-radius: .28571429rem;\n}\n.em-chat-topic-input .textareaWrapper .CodeMirror-scroll {\n max-height: 300px;\n}\n.em-chat-topic-input .ui.input {\n margin-right: 5px;\n min-height: 49px;\n}\n.em-chat-topic-input .ui.input i.send.icon {\n z-index: 1;\n right: 7px!important;\n}\n.em-chat-topic-input .ui.input textarea {\n resize: none;\n width: 100%;\n padding-right: 2.67142857em!important;\n margin: 0;\n max-width: 100%;\n outline: 0;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n text-align: left;\n display: block;\n padding: .67861429em 1em;\n background: #FFF;\n border: none;\n color: rgba(0, 0, 0, 0.87);\n box-shadow: none;\n border-top-right-radius: .28571429rem;\n border-bottom-right-radius: .28571429rem;\n}\n.em-chat-topic-input .CodeMirror-lines {\n margin-right: 30px;\n}\n.em-chat-topic-input .ui.vertical.menu.popup {\n width: 145px;\n}\n.em-chat-topic-input .ui.vertical.menu.popup a.item > i.icon {\n float: left;\n margin: 0 .35714286em 0 0;\n}\n'}),define("text!resources/elements/em-hotkeys-modal.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-topic.css",["module"],function(e){e.exports='.em-chat-topic .ui.comments .comment {\n padding-left: 3px;\n padding-bottom: 3px;\n}\n.em-chat-topic .ui.comments .comment:hover {\n background-color: rgba(0, 0, 0, 0.03);\n}\n.em-chat-topic .ui.comments .comment:hover:before {\n width: 4px;\n}\n.em-chat-topic .ui.comments .comment.active {\n background-color: rgba(0, 0, 0, 0.03);\n}\n.em-chat-topic .ui.comments .comment.active:before {\n width: 4px;\n}\n.em-chat-topic .ui.comments .comment:before {\n content: "";\n position: absolute;\n z-index: -1;\n top: 0;\n left: -4px;\n bottom: 0;\n background: #2098D1;\n width: 0;\n -webkit-transition-property: width;\n transition-property: width;\n -webkit-transition-duration: 0.3s;\n transition-duration: 0.3s;\n -webkit-transition-timing-function: ease-out;\n transition-timing-function: ease-out;\n}\n.em-chat-topic .ui.comments .comment .content > .markdown-body span.at-user {\n cursor: pointer;\n}\n.em-chat-topic .ui.comments .comment .content .tools {\n position: absolute;\n bottom: 0;\n right: 0;\n display: none;\n}\n.em-chat-topic .ui.comments .comment .content:hover .tools {\n display: block;\n}\n'}),define("text!resources/elements/em-checkbox.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-dropdown-links.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-modal.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-hotkeys-modal.css",["module"],function(e){e.exports=".tms-em-hotkeys-modal ul {\n padding-left: 30px;\n}\n.tms-em-hotkeys-modal ul.no_bullets {\n margin: 0 0 2rem;\n}\n.tms-em-hotkeys-modal ul.no_bullets li {\n line-height: 2rem;\n list-style-type: none;\n padding: 0;\n font-size: 1rem;\n font-weight: 700;\n}\n.tms-em-hotkeys-modal > .content {\n background-color: rgba(11, 7, 11, 0.78) !important;\n}\n.tms-em-hotkeys-modal .keyboard i.icon {\n margin-right: 0px!important;\n}\n.tms-em-hotkeys-modal .subtle_silver {\n color: #9e9ea6!important;\n}\n.tms-em-hotkeys-modal .ui.grid .column {\n padding: 0!important;\n}\n"}),define("text!resources/elements/em-user-avatar.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-user-avatar.css",["module"],function(e){e.exports=".em-user-avatar.avatar.ui.mini.circular.image {\n width: 35px;\n height: 35px;\n font-size: 35px;\n background-color: rgba(150, 178, 183, 0.4);\n text-align: center;\n margin: 0;\n padding-right: 0;\n}\n.em-user-avatar .text-char {\n display: inline-block;\n height: 35px;\n line-height: 35px;\n vertical-align: top;\n}\n"}),define("text!resources/elements/em-user-edit.html",["module"],function(e){e.exports='\r\n'});define("text!resources/elements/em-user-edit.css",["module"],function(e){e.exports=".tms-em-user-edit .ui.form .field > label {\n width: 45px!important;\n}\n.tms-em-user-edit .ui.form .field .user-username {\n margin-left: 0;\n}\n.em-user-edit-modal {\n /* Tablet & PC */\n}\n@media only screen and (min-width: 768px) {\n .em-user-edit-modal {\n width: 500px!important;\n margin-left: -250px !important;\n }\n}\n"}); \ No newline at end of file diff --git a/src/main/resources/static/page/scripts/app-bundle-9f083fc379.js b/src/main/resources/static/page/scripts/app-bundle-9f083fc379.js new file mode 100644 index 00000000..51777e7b --- /dev/null +++ b/src/main/resources/static/page/scripts/app-bundle-9f083fc379.js @@ -0,0 +1,31 @@ +define("app",["exports","tms-semantic-ui","semantic-ui-calendar","jquery-format"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.App=void 0;e.App=function(){function e(){var n=this;t(this,e),this.init(),this.initCalendar(),this.subscribe=ea.subscribe(nsCons.EVENT_APP_ROUTER_NAVIGATE,function(e){n.router&&n.router.navigate(""+e.to)})}return e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype.init=function(){$.fn.dropdown.settings.forceSelection=!1,_.extend($.fn.form.settings.prompt,{empty:"{name}不能为空",checked:"{name}必须被勾选",email:"{name}必须是正确的邮件格式",url:"{name}必须是正确的URL格式",regExp:"{name}验证格式不正确",integer:"{name}必须为一个整数",decimal:"{name}必须为一个小数",number:"{name}必须设置为一个数字",is:'{name}必须符合规则"{ruleValue}"',isExactly:'{name}必须精确匹配"{ruleValue}"',not:'{name}不能设置为"{ruleValue}"',notExactly:'{name}不能准确设置为"{ruleValue}"',contain:'{name}需要包含"{ruleValue}"',containExactly:'{name}需要精确包含"{ruleValue}"',doesntContain:'{name}不能包含"{ruleValue}"',doesntContainExactly:'{name}不能精确包含"{ruleValue}"',minLength:"{name}必须至少包含{ruleValue}个字符",length:"{name}必须为{ruleValue}个字符",exactLength:"{name}必须为{ruleValue}个字符",maxLength:"{name}必须不能超过{ruleValue}个字符",match:"{name}必须匹配{ruleValue}字段",different:"{name}必须不同于{ruleValue}字段",creditCard:"{name}必须是一个正确的信用卡数字格式",minCount:"{name}必须至少包含{ruleValue}个选择项",exactCount:"{name}必须准确包含{ruleValue}个选择项",maxCount:"{name} 必须有{ruleValue}或者更少个选择项"})},e.prototype.initCalendar=function(){return $.fn.calendar.settings.text={days:["日","一","二","三","四","五","六"],months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthsShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],today:"今天",now:"现在",am:"上午",pm:"下午"},$.fn.calendar.settings.formatter.date=function(e,t){if(!e)return"";e.getDate(),e.getMonth()+1,e.getFullYear();return $.format.date(e,"yyyy-MM-dd")},this},e.prototype.configureRouter=function(e,t){var n=null;localStorage&&(n=localStorage.getItem(nsCons.KEY_REMEMBER_LAST_CHAT_TO)),e.map([{route:["pwd-reset"],name:"reset",moduleId:"user/user-pwd-reset",nav:!1,title:"密码重置 | TMS"},{route:["register"],name:"register",moduleId:"user/user-register",nav:!1,title:"用户注册 | TMS"},{route:["chat/:username"],name:"chat",moduleId:"chat/chat-direct",nav:!1,title:"私聊 | TMS"},{route:["blog"],name:"chat",moduleId:"blog/blog",nav:!1,title:"博文 | TMS"},{route:["blog/:id"],name:"chat",moduleId:"blog/blog",nav:!1,title:"博文 | TMS"},{route:["login"],name:"login",moduleId:"user/user-login",nav:!1,title:"登录 | TMS"},{route:["test"],name:"test",moduleId:"test/test-lifecycle",nav:!1,title:"测试 | TMS"},{route:"",redirect:"chat/"+(n?n:"@admin")}]),this.router=t},e.prototype.activate=function(e,t,n){},e}()}),define("environment",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={debug:!1,testing:!1}}),define("main",["exports","./environment"],function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){e.use.standardConfiguration().feature("init").feature("resources"),r.default.debug&&e.use.developmentLogging(),r.default.testing&&e.use.plugin("aurelia-testing"),e.start().then(function(){return e.setRoot()})}Object.defineProperty(e,"__esModule",{value:!0}),e.configure=i;var r=n(t);Promise.config({warnings:{wForgottenReturn:!1}})}),define("blog/blog",["exports","aurelia-framework","chat/chat-service"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Blog=void 0;var a=i(n);e.Blog=function(){function e(){var t=this;r(this,e),this.rightSidebarShow=!1,this.isHide=!0,this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_VIEW_CHANGED,function(e){t.routeConfig&&t.routeConfig.navModel.setTitle(e.title+" | 博文 | TMS")}),this.subscribe1=ea.subscribe(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,function(e){e.justRefresh||(e&&!_.isUndefined(e.isHide)?t.rightSidebarShow=!e.isHide:t.rightSidebarShow=!t.rightSidebarShow)}),this.subscribe2=ea.subscribe(nsCons.EVENT_BLOG_TOGGLE_SIDEBAR,function(e){t.isHide=e})}return e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe1.dispose(),this.subscribe2.dispose(),clearInterval(this.timeagoTimer)},e.prototype.attached=function(){var e=this,t=timeago();this.timeagoTimer=setInterval(function(){$(e.blogContainerRef).find("[data-timeago]").each(function(e,n){$(n).text(t.format($(n).attr("data-timeago"),"zh_CN"))})},5e3),$(".tms-blog").on("mouseenter","span[data-value].at-user:not(.pp-not),a[data-value].author:not(.pp-not)",function(t){t.preventDefault();var n=t.currentTarget;if(e.hoverTimeoutRef){if(e.hoverUserTarget===n)return;clearTimeout(e.hoverTimeoutRef),e.hoverTimeoutRef=null}e.hoverUserTarget=n,e.hoverTimeoutRef=setTimeout(function(){ea.publish(nsCons.EVENT_CHAT_MEMBER_POPUP_SHOW,{username:$(n).attr("data-value"),target:n}),e.hoverTimeoutRef=null},500)}),$(".tms-blog").on("mouseleave","span[data-value].at-user:not(.pp-not),a[data-value].author:not(.pp-not)",function(t){t.preventDefault(),e.hoverTimeoutRef&&e.hoverUserTarget===t.currentTarget&&(clearTimeout(e.hoverTimeoutRef),e.hoverTimeoutRef=null)}),$(".tms-blog .em-blog-content").on("click","a.avatar[data-value], a.author[data-value], .at-user[data-value]",function(e){e.preventDefault(),ea.publish(nsCons.EVENT_BLOG_COMMENT_MSG_INSERT,{content:"{~"+$(e.currentTarget).attr("data-value")+"} "})})},e.prototype.detached=function(){},e.prototype.activate=function(e,t,n){return this.routeConfig=t,nsCtx.blogId=e.id,ea.publish(nsCons.EVENT_BLOG_SWITCH,{id:e.id}),Promise.all([a.default.loginUser().then(function(e){nsCtx.loginUser=e,nsCtx.isSuper=utils.isSuperUser(e),nsCtx.isAdmin=utils.isAdminUser(e)}),a.default.listUsers(!0).then(function(e){nsCtx.users=e,window.tmsUsers=e})])},e}()}),define("chat/chat-direct",["exports","aurelia-framework","common/common-poll","clipboard","clipboard-js","dropzone","./chat-service"],function(e,t,n,i,r,a,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.ChatDirect=void 0;var c=s(n),d=s(i),u=s(r),m=s(a),p=s(o),g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.ChatDirect=function(){function e(){l(this,e),this.offset=0,this.first=!0,this.last=!0,this.originalHref=wurl(),this.users=[],this.channels=[],this.chatTo=null,this.isLeftBarHide=!0,m.default.autoDiscover=!1,this.poll=c.default,new d.default(".tms-chat-direct .tms-clipboard").on("success",function(e){toastr.success("复制到剪贴板成功!")}).on("error",function(e){toastr.error("复制到剪贴板失败!")}),this.initSubscribeEvent()}return e.prototype.initSubscribeEvent=function(){var e=this;this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_MSG_SENDED,function(t){c.default.reset(),e.first||(e.isAt?e.listChatDirect(!1):e.listChatChannel(!1))}),this.subscribe2=ea.subscribe(nsCons.EVENT_CHAT_SIDEBAR_TOGGLE,function(t){if(e.isRightSidebarShow=nsCtx.isRightSidebarShow=t.isShow,e.isRightSidebarShow){var n=$(e.contentRef).width()-392;$(e.contentBodyRef).width(n),$(e.contentBodyRef).children(".scroll-wrapper").width(n)}else $(e.contentBodyRef).css("width","100%"),$(e.contentBodyRef).children(".scroll-wrapper").css("width","100%")}),this.subscribe3=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_CREATED,function(t){e.channels.push(t.channel)}),this.subscribe4=ea.subscribe(nsCons.EVENT_CHAT_SEARCH_GOTO_CHAT_ITEM,function(t){e.gotoChatItem(t.chatItem)}),this.subscribe5=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_DELETED,function(t){e.isAt||t.channel.name!=e.chatTo||(window.location=wurl("path")+("#/chat/@"+e.loginUser.username)),e.channels=[].concat(e.channels)}),this.subscribe6=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_JOINED,function(t){e.channels.splice(0,0,t.channel)}),this.subscribe7=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_LEAVED,function(t){e.isAt||t.channel.name!=e.chatTo||(window.location=wurl("path")+("#/chat/@"+e.loginUser.username)),e.channels=_.reject(e.channels,{id:t.channel.id})}),this.subscribe8=ea.subscribe(nsCons.EVENT_CHAT_LAST_ITEM_RENDERED,function(t){t.item.__scroll&&(e.replyId&&ea.publish(nsCons.EVENT_CHAT_TOPIC_SHOW,{chat:_.find(e.chats,{id:+e.markId}),rid:e.replyId}),e.scrollToAfterImgLoaded(e.markId?e.markId:"b"),delete t.item.__scroll,e.markId=null,e.replyId=null)}),this.subscribe9=ea.subscribe(nsCons.EVENT_SCROLLBAR_SCROLL_TO_BOTTOM,function(t){e.scrollbarRef==t.element&&c.default.reset()}),this.subscribe10=ea.subscribe(nsCons.EVENT_CHAT_CONTENT_SCROLL_TO,function(t){e.scrollTo(t.target)}),this.subscribe11=ea.subscribe(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,function(t){t?e.isLeftBarHide=t:e.isLeftBarHide=!e.isLeftBarHide})},e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe2.dispose(),this.subscribe3.dispose(),this.subscribe4.dispose(),this.subscribe5.dispose(),this.subscribe6.dispose(),this.subscribe7.dispose(),this.subscribe8.dispose(),this.subscribe9.dispose(),this.subscribe10.dispose(),this.subscribe11.dispose(),clearInterval(this.timeagoTimer),c.default.stop()},e.prototype.activate=function(e,t,n){var i=this;return this._reset(),this.markId=e.id,this.replyId=e.rid,this.routeConfig=t,this.chatId&&(this.preChatId=this.chatId),this.chatId=nsCtx.chatId=e.username,localStorage&&localStorage.setItem(nsCons.KEY_REMEMBER_LAST_CHAT_TO,this.chatId),this.isAt=nsCtx.isAt=_.startsWith(e.username,"@"),this.chatTo=nsCtx.chatTo=utils.getChatName(e.username),this.markId&&history.replaceState(null,"",utils.removeUrlQuery("id")),this.replyId&&history.replaceState(null,"",utils.removeUrlQuery("rid")),Promise.all([p.default.loginUser(!0).then(function(e){i.loginUser=e,nsCtx.loginUser=e,nsCtx.isSuper=utils.isSuperUser(i.loginUser),nsCtx.isAdmin=utils.isAdminUser(i.loginUser)}),p.default.listUsers(!0).then(function(e){if(i.users=e,nsCtx.users=e,window.tmsUsers=e,i.isAt)if(i.channel=null,i.user=_.find(i.users,{username:i.chatTo}),i.user){var n=i.user?i.user.name:i.chatTo;t.navModel.setTitle(n+" | 私聊 | TMS"),i.listChatDirect(!0)}else toastr.error("聊天用户["+i.chatTo+"]不存在或者没有权限访问!"),i.preChatId?window.location=wurl("path")+("#/chat/"+i.preChatId):window.location=wurl("path")+("#/chat/@"+i.loginUser.username)}),p.default.listChannels(!0).then(function(e){i.channels=e,nsCtx.channels=e,i.isAt||(i.user=null,i.channel=_.find(i.channels,{name:i.chatTo}),i.channel?(t.navModel.setTitle(i.channel.title+" | 频道 | TMS"),i.listChatChannel(!0)):(toastr.error("聊天频道["+i.chatTo+"]不存在或者没有权限访问!"),i.preChatId?window.location=wurl("path")+("#/chat/"+i.preChatId):window.location=wurl("path")+("#/chat/@"+i.loginUser.username)))})])},e.prototype._reset=function(){this.progressWidth=0,this.chats=null,this.first=!0,this.last=!0},e.prototype.lastMoreHandler=function(){var e=this,t=_.first(this.chats).id,n=void 0,i=void 0;this.isAt?(n="/admin/chat/direct/more",i={last:!0,start:t,size:20,chatTo:this.chatTo}):(n="/admin/chat/channel/more",i={last:!0,start:t,size:20,channelId:this.channel.id}),this.lastMoreP=$.get(n,i,function(n){n.success?(e.chats=_.unionBy(_.reverse(n.data),e.chats),e.last=n.msgs[0]-n.data.length<=0,!e.last&&(e.lastCnt=n.msgs[0]-n.data.length),e.scrollToAfterImgLoaded(t)):toastr.error(n.data,"获取更多消息失败!")})},e.prototype.firstMoreHandler=function(){var e=this,t=_.last(this.chats).id,n=void 0,i=void 0;this.isAt?(n="/admin/chat/direct/more",i={last:!1,start:t,size:20,chatTo:this.chatTo}):(n="/admin/chat/channel/more",i={last:!1,start:t,size:20,channelId:this.channel.id}),this.nextMoreP=$.get(n,i,function(n){n.success?(e.chats=_.unionBy(e.chats,n.data),e.first=n.msgs[0]-n.data.length<=0,!e.first&&(e.firstCnt=n.msgs[0]-n.data.length),e.scrollToAfterImgLoaded(t)):toastr.error(n.data,"获取更多消息失败!")})},e.prototype.listChatChannel=function(e){var t=this,n={size:20,channelId:this.channel.id};this.markId&&e&&(n.id=this.markId),$.get("/admin/chat/channel/listBy",n,function(e){t.processChats(e)})},e.prototype.listChatDirect=function(e){var t=this,n={size:20,chatTo:this.chatTo};this.markId&&e&&(n.id=this.markId),$.get("/admin/chat/direct/list",n,function(e){t.processChats(e)})},e.prototype.processChats=function(e){if(e.success){this.chats=_.reverse(e.data.content);var t=_.last(this.chats);t&&(t.__scroll=!0),this.last=e.data.last,this.first=e.data.first,!this.last&&(this.lastCnt=e.data.totalElements-e.data.numberOfElements),!this.first&&(this.firstCnt=e.data.size*e.data.number)}},e.prototype._scrollTo=function(e){""===e||null===e||_.isUndefined(e)||("b"==e?$(this.commentsRef).parent(".scroll-content").scrollTo("max"):"t"==e?$(this.commentsRef).parent(".scroll-content").scrollTo(0):_.some(this.chats,{id:+e})?($(this.commentsRef).parent(".scroll-content").scrollTo('.em-chat-content-item.comment[data-id="'+e+'"]',{offset:this.offset}),$(this.commentsRef).find(".comment[data-id]").removeClass("active"),$(this.commentsRef).find(".comment[data-id="+e+"]").addClass("active")):($(this.commentsRef).parent(".scroll-content").scrollTo("max"),toastr.warning("消息["+e+"]不存在,可能已经被删除!")))},e.prototype.scrollToAfterImgLoaded=function(e){var t=this;_.defer(function(){new ImagesLoaded(t.commentsRef).always(function(){t._scrollTo(e)}),t._scrollTo(e)})},e.prototype.doPoll=function(){var e=this;c.default.start(function(t,n){e._pollChats(t,n),e._poll(t,n)})},e.prototype._poll=function(e,t){var n=this,i=_.last(this.chats);!this.pollOnGoing&&!this.isAt&&this.channel&&i&&(this.pollOnGoing=!0,$.get("/admin/chat/channel/poll",{channelId:this.channel.id,lastChatChannelId:i.id,isAt:!0},function(e){if(e.success){var t=utils.getAlarm();if(n.countAt&&e.data.countAt>n.countAt&&!t.off&&t.ats){var i=e.data.countAt-n.countAt;push.create("TMS沟通@消息通知",{body:"你有"+i+"条新的@消息!",icon:{x16:"img/tms-x16.ico",x32:"img/tms-x32.png"},timeout:5e3})}n.countAt=e.data.countAt,ea.publish(nsCons.EVENT_CHAT_POLL_UPDATE,{countAt:e.data.countAt,countMyRecentSchedule:e.data.countMyRecentSchedule})}}).always(function(){n.pollOnGoing=!1}))},e.prototype._pollChats=function(e,t){var n=this;if(!this.pollChatsOngoing&&this.chats&&this.first){var i=_.last(this.chats),r=void 0,a=void 0;this.isAt?(r="/admin/chat/direct/latest",a={id:i?i.id:0,chatTo:this.chatTo}):(r="/admin/chat/channel/latest",a={id:i?i.id:0,channelId:this.channel.id}),this.pollChatsOngoing=!0,$.get(r,a,function(e){if(e.success){if(!n._checkPollResultOk(e))return;n._checkNeedNotify(e),n.chats=_.unionBy(n.chats,e.data,"id"),n.scrollToAfterImgLoaded("b")}else toastr.error(e.data,"轮询获取消息失败!")}).fail(function(n,i){t(),utils.errorAutoTry(function(){e()})}).always(function(){n.pollChatsOngoing=!1})}},e.prototype._checkNeedNotify=function(e){var t=this;if(0==e.data.length)return!1;var n=_.some(e.data,function(e){return e.creator.username==t.loginUser.username}),i=utils.getAlarm();n||i.off||!i.news||push.create("TMS沟通频道消息通知",{body:"频道["+this.channel.title+"]有新消息了!",icon:{x16:"img/tms-x16.ico",x32:"img/tms-x32.png"},timeout:5e3})},e.prototype._checkPollResultOk=function(e){if(0==e.data.length)return!1;var t=_.first(e.data);return this.isAt?_.has(t,"chatTo"):_.has(t,"channel")},e.prototype.bind=function(e){this.doPoll()},e.prototype.attached=function(){var e=this,t=timeago();this.timeagoTimer=setInterval(function(){$(e.chatContainerRef).find("[data-timeago]").each(function(e,n){$(n).text(t.format($(n).attr("data-timeago"),"zh_CN"))})},5e3),this.initHotkeys(),this.initFocusedComment(),$(this.scrollbarRef).on("mouseenter",".em-chat-content-item",function(t){t.preventDefault();var n=$(t.currentTarget);e.$hoveredItem=n,e.isShowHead=!utils.isElementInViewport(n.children(".em-user-avatar"));var i=n.next(".em-chat-content-item");1===i.size()?e.isShowFoot=!utils.isElementInViewport(i.children(".em-user-avatar")):e.isShowFoot=!1}).on("mouseleave",function(t){t.preventDefault(),e.isShowHead=!1,e.isShowFoot=!1}),$(this.commentsRef).on("click",".cbutton",function(e){e.preventDefault();var t=$(this);t.addClass("cbutton--click"),setTimeout(function(){t.removeClass("cbutton--click")},500)}),$(this.chatContainerRef).on("click","code[data-code]",function(e){e.ctrlKey&&(e.stopImmediatePropagation(),e.preventDefault(),u.default.copy($(e.currentTarget).attr("data-code")).then(function(){toastr.success("复制到剪贴板成功!")},function(e){toastr.error("复制到剪贴板失败!")}))}),$(this.chatContainerRef).on("click",".pre-code-wrapper",function(e){e.ctrlKey&&(e.stopImmediatePropagation(),e.preventDefault(),u.default.copy($(e.currentTarget).find("i[data-clipboard-text]").attr("data-clipboard-text")).then(function(){toastr.success("复制到剪贴板成功!")},function(e){toastr.error("复制到剪贴板失败!")}))}),$('.tms-comments-container[ref="scrollbarRef"]').scroll(_.throttle(function(t){try{var n=$(t.currentTarget)[0].scrollHeight,i=$(t.currentTarget)[0].scrollTop,r=1*i/(n-$(t.currentTarget).outerHeight());e.progressWidth=$(t.currentTarget).outerWidth()*r}catch(t){e.progressWidth=0}},10))},e.prototype.goHeadHandler=function(){var e=this;this.scrollTo(this.$hoveredItem,500,function(){e.isShowHead=!1})},e.prototype.goFootHandler=function(){var e=this;this.scrollTo(this.$hoveredItem.next(),500,function(){e.isShowFoot=!1})},e.prototype.initFocusedComment=function(){var e=this;$(this.commentsRef).on("click",".comment.item",function(t){e.focusedComment=$(t.currentTarget)}).on("dblclick",".comment.item",function(t){if(t.ctrlKey){var n=function(){var n=$(t.currentTarget).attr("data-id"),i=$(t.currentTarget).find(".content > textarea"),r=_.find(e.chats,{id:Number.parseInt(n)});return r.openEdit||r.creator.username==e.loginUser.username?void $.get("/admin/chat/"+(e.isAt?"direct":"channel")+"/get",{id:r.id},function(e){e.success?(r.version!=e.data.version&&_.extend(r,e.data),r.isEditing=!0,r.contentOld=r.content,_.defer(function(){i.focus().select(),autosize.update(i.get(0))})):toastr.error(e.data)}):{v:void 0}}();if("object"===("undefined"==typeof n?"undefined":g(n)))return n.v}})},e.prototype.getScrollTargetComment=function(e){if(e)if(this.focusedComment&&1===this.focusedComment.size()){var t=this.focusedComment.find("> a.em-user-avatar");if(utils.isElementInViewport(t)){var n=this.focusedComment.prev(".comment.item");1===n.size()&&(this.focusedComment=n)}}else this.focusedComment=$(this.commentsRef).children(".comment.item:first");else if(this.focusedComment&&1===this.focusedComment.size()){var i=this.focusedComment.next(".comment.item");1===i.size()&&(this.focusedComment=i)}else this.focusedComment=$(this.commentsRef).children(".comment.item:last");return this.focusedComment},e.prototype.scrollTo=function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments[2];this.focusedComment=e,$(this.commentsRef).parent(".scroll-content").scrollTo(e,t,{offset:this.offset,onAfter:n})},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","ctrl+u",function(t){t.preventDefault(),$(e.emChatInputRef.btnItemUploadRef).find(".content").click()}).bind("keydown","ctrl+/",function(t){t.preventDefault(),e.emChatInputRef.emHotkeysModal.show()}).bind("keydown","alt+up",function(t){t.preventDefault(),e.scrollTo(e.getScrollTargetComment(!0))}).bind("keydown","alt+down",function(t){t.preventDefault(),e.scrollTo(e.getScrollTargetComment())}).bind("keydown","t",function(t){t.preventDefault(),e.scrollTo($(e.commentsRef).children(".comment.item:first"))}).bind("keydown","b",function(t){t.preventDefault(),e.scrollTo($(e.commentsRef).children(".comment.item:last"))})},e.prototype.gotoChatItem=function(e){var t=this;if(e.chatAt&&e.chatAt.chatReply){var n=function(){var n=_.find(t.chats,function(t){return _.some(t.chatReplies,{id:e.id})});if(n)t.scrollToAfterImgLoaded(n.id),_.defer(function(){return ea.publish(nsCons.EVENT_CHAT_TOPIC_SHOW,{chat:n,rid:e.id})});else{var i=e.chatAt.chatChannel.channel.name;t.chatTo==i?t.activate({id:e.chatAt.chatChannel.id,rid:e.id,username:i},t.routeConfig):window.location=wurl("path")+("#/chat/"+i+"?id="+e.chatAt.chatChannel.id+"&rid="+e.id)}return{v:void 0}}();if("object"===("undefined"==typeof n?"undefined":g(n)))return n.v}if(e.chatStow&&e.chatStow.chatReply){var i=function(){var n=_.find(t.chats,function(t){return _.some(t.chatReplies,{id:e.id})});if(n)t.scrollToAfterImgLoaded(n.id),_.defer(function(){return ea.publish(nsCons.EVENT_CHAT_TOPIC_SHOW,{chat:n,rid:e.id})});else{var i=e.chatStow.chatChannel.channel.name;t.chatTo==i?t.activate({id:e.chatStow.chatChannel.id,rid:e.id,username:i},t.routeConfig):window.location=wurl("path")+("#/chat/"+i+"?id="+e.chatStow.chatChannel.id+"&rid="+e.id)}return{v:void 0}}();if("object"===("undefined"==typeof i?"undefined":g(i)))return i.v}var r=_.find(this.chats,{id:e.id});if(r)this.scrollToAfterImgLoaded(e.id);else{var a=void 0,o=void 0;e.chatTo?(a=e.chatTo.username,o="@"+a):e.channel&&(a=e.channel.name,o=""+a),this.chatTo==a?this.activate({id:e.id,username:o},this.routeConfig):window.location=wurl("path")+("#/chat/"+o+"?id="+e.id)}},e.prototype.refreshLatestHandler=function(e){e.stopImmediatePropagation(),this.markId=null,this.isAt?this.listChatDirect(!1):this.listChatChannel(!1)},e.prototype.dimmerHandler=function(){ea.publish(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,!0)},e}()}),define("chat/chat-service",["exports"],function(e){"use strict";function t(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function i(r,a){try{var o=t[r](a),s=o.value}catch(e){return void n(e)}return o.done?void e(s):Promise.resolve(s).then(function(e){return i("next",e)},function(e){return i("throw",e)})}return i("next")})}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function e(){n(this,e)}return e.prototype.loginUser=function(){function e(e){return n.apply(this,arguments)}var n=t(regeneratorRuntime.mark(function e(t){var n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&this.user){e.next=3;break}return e.next=3,$.get("/admin/user/loginUser",function(e){e.success&&(n.user=e.data)});case 3:return e.abrupt("return",this.user);case 4:case"end":return e.stop()}},e,this)}));return e}(),e.prototype.listUsers=function(){function e(e){return n.apply(this,arguments)}var n=t(regeneratorRuntime.mark(function e(t){var n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&this.users){e.next=3;break}return e.next=3,$.get("/admin/user/all",{},function(e){e.success&&(n.users=e.data)});case 3:return e.abrupt("return",this.users);case 4:case"end":return e.stop()}},e,this)}));return e}(),e.prototype.listChannels=function(){function e(e){return n.apply(this,arguments)}var n=t(regeneratorRuntime.mark(function e(t){var n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&this.channels){e.next=3;break}return e.next=3,$.get("/admin/channel/listMy",function(e){e.success&&(n.channels=e.data)});case 3:return e.abrupt("return",this.channels);case 4:case"end":return e.stop()}},e,this)}));return e}(),e}();e.default=new i}),define("common/common-constant",[],function(){"use strict";window.nsCons={EVENT_APP_ROUTER_NAVIGATE:"event_app_router_navigate",EVENT_CHAT_MSG_SENDED:"event_chat_msg_sended",EVENT_CHAT_TOPIC_MSG_SENDED:"event_chat_topic_msg_sended",EVENT_CHAT_MSG_EDIT_UPLOAD:"event_chat_msg_edit_upload",EVENT_CHAT_SIDEBAR_TOGGLE:"event_chat_sidebar_toggle",EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE:"event_chat_right_sidebar_toggle",EVENT_CHAT_SEARCH_GOTO_CHAT_ITEM:"event_chat_search_goto_chat_item",EVENT_CHAT_CHANNEL_CREATED:"event_chat_channel_created",EVENT_CHAT_CHANNEL_DELETED:"event_chat_channel_deleted",EVENT_CHAT_CHANNEL_JOINED:"event_chat_channel_joined",EVENT_CHAT_CHANNEL_LEAVED:"event_chat_channel_leaved",EVENT_SHOW_HOTKEYS_MODAL:"event_show_hotkeys_modal",EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE:"event_chat_channel_member_add_or_remove",EVENT_CHAT_LAST_ITEM_RENDERED:"event_chat_last_item_rendered",EVENT_CHAT_REPLY_LAST_ITEM_RENDERED:"event_chat_reply_last_item_rendered",EVENT_SCROLLBAR_SCROLL_TO_BOTTOM:"event_scrollbar_scroll_to_bottom",EVENT_CHAT_MSG_INSERT:"event_chat_msg_insert",EVENT_CHAT_TOPIC_MSG_INSERT:"event_chat_topic_msg_insert",EVENT_CHAT_MSG_POPUP_SHOW:"event_chat_msg_popup_show",EVENT_CHAT_TOPIC_SHOW:"event_chat_topic_show",EVENT_CHAT_MEMBER_POPUP_SHOW:"event_chat_member_popup_show",EVENT_CHAT_MSG_WIKI_DIR:"event_chat_msg_wiki_dir",EVENT_CHAT_CONTENT_SCROLL_TO:"event_chat_content_scroll_to",EVENT_CHAT_RIGHT_SIDEBAR_SCROLL_TO:"event_chat_right_sidebar_scroll_to",EVENT_CHAT_POLL_UPDATE:"event_chat_poll_update",EVENT_CHAT_REPLY_SCROLL_TO:"event_chat_reply_scroll_to",EVENT_CHAT_TOGGLE_LEFT_SIDEBAR:"event_chat_toggle_left_sidebar",EVENT_CHAT_TOGGLE_RIGHT_SIDEBAR:"event_chat_toggle_right_sidebar",EVENT_SWITCH_CHAT_TO:"event_switch_chat_to",EVENT_CHANNEL_ACTIONS:"event_channel_actions",EVENT_CHANNEL_LINKS_REFRESH:"event_channel_links_refresh",EVENT_SYSTEM_LINKS_REFRESH:"event_system_links_refresh",EVENT_SCHEDULE_REFRESH:"event_schedule_refresh",EVENT_MODAAL_BEFORE_OPEN:"event_modaal_before_open",EVENT_MODAAL_AFTER_OPEN:"event_modaal_after_open",EVENT_MODAAL_BEFORE_CLOSE:"event_modaal_before_close",EVENT_MODAAL_AFTER_CLOSE:"event_modaal_after_close",EVENT_BLOG_SWITCH:"event_blog_switch",EVENT_BLOG_ACTION:"event_blog_action",EVENT_BLOG_CHANGED:"event_blog_changed",EVENT_SPACE_CHANGED:"event_space_changed",EVENT_BLOG_CREATED:"event_blog_created",EVENT_BLOG_UPDATED:"event_blog_updated",EVENT_BLOG_DELETED:"event_blog_deleted",EVENT_BLOG_TOGGLE_SIDEBAR:"event_blog_toggle_sidebar",EVENT_BLOG_VIEW_CHANGED:"event_blog_view_changed",EVENT_BLOG_STOW_CHANGED:"event_blog_stow_changed",EVENT_BLOG_SAVE:"event_blog_save",EVENT_BLOG_HISTORY_CHANGED:"event_blog_history_changed",EVENT_BLOG_COMMENT_POPUP_SHOW:"event_blog_comment_popup_show",EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE:"event_blog_right_sidebar_toggle",EVENT_BLOG_LEFT_SIDEBAR_TOGGLE:"event_blog_left_sidebar_toggle",EVENT_BLOG_CONTENT_DIMMER_TOGGLE:"event_blog_content_dimmer_toggle",EVENT_BLOG_COMMENT_MSG_INSERT:"event_blog_comment_msg_insert",EVENT_BLOG_COMMENT_ADDED:"event_blog_comment_added",EVENT_BLOG_COMMENT_CHANGED:"event_blog_comment_changed",ACTION_TYPE_SEARCH:"action_type_search",ACTION_TYPE_STOW:"action_type_stow",ACTION_TYPE_PIN:"action_type_pin",ACTION_TYPE_TOPIC:"action_type_topic",ACTION_TYPE_AT:"action_type_at",ACTION_TYPE_DIR:"action_type_dir",ACTION_TYPE_ATTACH:"action_type_attach",ACTION_TYPE_SCHEDULE:"action_type_schedule",NUM_TEXT_COMPLETE_MAX_COUNT:20,STR_EMOJI_SEARCH_URL:"http://emoji.muan.co/",KEY_REMEMBER_LAST_CHAT_TO:"tms/remember_last_chat_to",KEY_CHAT_ALARM:"tms/chat_alarm",KEY_CHAT_SIDEBAR_THEME:"tms/chat_sidebar_theme",KEY_LOGIN_USERNAME:"tms/login_username",KEY_BLOG_COMMON_SPACE:"tms/blog/common_space",KEY_BLOG_SEARCH_RECENT:"tms/blog/search_recent"}}),define("common/common-ctx",[],function(){"use strict";var e;window.nsCtx=(e={loginUser:{},isSuper:!1,isAdmin:!1,users:[],channels:[],memberAll:{username:"all",enabled:!0,mails:"",name:"全员"},isAt:!0,chatTo:null,chatId:null},e.isSuper=!1,e.isAdmin=!1,e.blogId=null,e.isModaalOpening=!1,e.isRightSidebarShow=!1,e)}),define("common/common-diff",[],function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(e,t){e.JsDiff=t()}(window,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(1),a=i(r),o=n(3),s=n(4),l=n(5),c=n(6),d=n(7),u=n(8),m=n(9),p=n(10),g=n(12),h=n(13);t.Diff=a.default,t.diffChars=o.diffChars,t.diffWords=s.diffWords,t.diffWordsWithSpace=s.diffWordsWithSpace,t.diffLines=l.diffLines,t.diffTrimmedLines=l.diffTrimmedLines,t.diffSentences=c.diffSentences,t.diffCss=d.diffCss,t.diffJson=u.diffJson,t.structuredPatch=p.structuredPatch,t.createTwoFilesPatch=p.createTwoFilesPatch,t.createPatch=p.createPatch,t.applyPatch=m.applyPatch,t.convertChangesToDMP=g.convertChangesToDMP,t.convertChangesToXML=h.convertChangesToXML,t.canonicalize=u.canonicalize},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){this.ignoreWhitespace=e}function a(e,t,n,i){for(var r=0,a=e.length,o=0,s=0;re.length?i:e}),c.value=u.join("")}else c.value=t.slice(o,o+c.count).join("");o+=c.count,c.added||(s+=c.count)}}return e}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.__esModule=!0,t.default=r;var s=n(2),l=i(s);r.prototype={diff:function(e,t,n){function i(e){return n?(setTimeout(function(){n(void 0,e)},0),!0):e}function r(){for(var n=-1*d;n<=d;n+=2){var r=void 0,u=m[n-1],p=m[n+1],g=(p?p.newPos:0)-n;u&&(m[n-1]=void 0);var h=u&&u.newPos+1=l&&g+1>=c)return i(a(r.components,t,e,s.useLongestToken));m[n]=r}else m[n]=void 0}d++}var s=this;if(e=this.castInput(e),t=this.castInput(t),t===e)return i([{value:t}]);if(!t)return i([{value:e,removed:!0}]);if(!e)return i([{value:t,added:!0}]);t=this.removeEmpty(this.tokenize(t)),e=this.removeEmpty(this.tokenize(e));var l=t.length,c=e.length,d=1,u=l+c,m=[{newPos:-1,components:[]}],p=this.extractCommon(m[0],t,e,0);if(m[0].newPos+1>=l&&p+1>=c)return i([{value:t.join("")}]);if(n)!function e(){setTimeout(function(){return d>u?n():void(r()||e())},0)}();else for(;d<=u;){var g=r();if(g)return g}},pushComponent:function(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,i){for(var r=t.length,a=n.length,o=e.newPos,s=o-i,l=0;o+1=0;r--){for(var c=i[r],d=0;d0?l(a.lines.slice(-o.context)):[],m-=g.length,p-=g.length)}g.push.apply(g,c.default(r,function(e){return(t.added?"+":"-")+e})),t.added?b+=r.length:h+=r.length}else{if(m)if(r.length<=2*o.context&&e=d.length-2&&r.length<=o.context){var v=/\n$/.test(n),_=/\n$/.test(i);0!=r.length||v?v&&_||g.push("\\ No newline at end of file"):g.splice(f.oldLines,0,"\\ No newline at end of file")}u.push(f),m=0,p=0,g=[]}h+=r.length,b+=r.length}},v=0;v"):r.removed&&t.push(""),t.push(i(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")}function i(e){var t=e;return t=t.replace(/&/g,"&"),t=t.replace(//g,">"),t=t.replace(/"/g,""")}t.__esModule=!0,t.convertChangesToXML=n}])})}),define("common/common-emoji",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="search,+1,-1,100,1234,8ball,a,ab,abc,abcd,accept,aerial_tramway,airplane,alarm_clock,alien,ambulance,anchor,angel,anger,angry,anguished,ant,apple,aquarius,aries,arrow_backward,arrow_double_down,arrow_double_up,arrow_down,arrow_down_small,arrow_forward,arrow_heading_down,arrow_heading_up,arrow_left,arrow_lower_left,arrow_lower_right,arrow_right,arrow_right_hook,arrow_up,arrow_up_down,arrow_up_small,arrow_upper_left,arrow_upper_right,arrows_clockwise,arrows_counterclockwise,art,articulated_lorry,astonished,atm,b,baby,baby_bottle,baby_chick,baby_symbol,back,baggage_claim,balloon,ballot_box_with_check,bamboo,banana,bangbang,bank,bar_chart,barber,baseball,basketball,bath,bathtub,battery,bear,bee,beer,beers,beetle,beginner,bell,bento,bicyclist,bike,bikini,bird,birthday,black_circle,black_joker,black_medium_small_square,black_medium_square,black_nib,black_small_square,black_square,black_square_button,blossom,blowfish,blue_book,blue_car,blue_heart,blush,boar,boat,bomb,book,bookmark,bookmark_tabs,books,boom,boot,bouquet,bow,bowling,bowtie,boy,bread,bride_with_veil,bridge_at_night,briefcase,broken_heart,bug,bulb,bullettrain_front,bullettrain_side,bus,busstop,bust_in_silhouette,busts_in_silhouette,cactus,cake,calendar,calling,camel,camera,cancer,candy,capital_abcd,capricorn,car,card_index,carousel_horse,cat,cat2,cd,chart,chart_with_downwards_trend,chart_with_upwards_trend,checkered_flag,cherries,cherry_blossom,chestnut,chicken,children_crossing,chocolate_bar,christmas_tree,church,cinema,circus_tent,city_sunrise,city_sunset,cl,clap,clapper,clipboard,clock1,clock10,clock1030,clock11,clock1130,clock12,clock1230,clock130,clock2,clock230,clock3,clock330,clock4,clock430,clock5,clock530,clock6,clock630,clock7,clock730,clock8,clock830,clock9,clock930,closed_book,closed_lock_with_key,closed_umbrella,cloud,clubs,cn,cocktail,coffee,cold_sweat,collision,computer,confetti_ball,confounded,confused,congratulations,construction,construction_worker,convenience_store,cookie,cool,cop,copyright,corn,couple,couple_with_heart,couplekiss,cow,cow2,credit_card,crescent_moon,crocodile,crossed_flags,crown,cry,crying_cat_face,crystal_ball,cupid,curly_loop,currency_exchange,curry,custard,customs,cyclone,dancer,dancers,dango,dart,dash,date,de,deciduous_tree,department_store,diamond_shape_with_a_dot_inside,diamonds,disappointed,disappointed_relieved,dizzy,dizzy_face,do_not_litter,dog,dog2,dollar,dolls,dolphin,donut,door,doughnut,dragon,dragon_face,dress,dromedary_camel,droplet,dvd,e-mail,ear,ear_of_rice,earth_africa,earth_americas,earth_asia,egg,eggplant,eight,eight_pointed_black_star,eight_spoked_asterisk,electric_plug,elephant,email,end,envelope,es,euro,european_castle,european_post_office,evergreen_tree,exclamation,expressionless,eyeglasses,eyes,facepunch,factory,fallen_leaf,family,fast_forward,fax,fearful,feelsgood,feet,ferris_wheel,file_folder,finnadie,fire,fire_engine,fireworks,first_quarter_moon,first_quarter_moon_with_face,fish,fish_cake,fishing_pole_and_fish,fist,five,flags,flashlight,floppy_disk,flower_playing_cards,flushed,foggy,football,fork_and_knife,fountain,four,four_leaf_clover,fr,free,fried_shrimp,fries,frog,frowning,fu,fuelpump,full_moon,full_moon_with_face,game_die,gb,gem,gemini,ghost,gift,gift_heart,girl,globe_with_meridians,goat,goberserk,godmode,golf,grapes,green_apple,green_book,green_heart,grey_exclamation,grey_question,grimacing,grin,grinning,guardsman,guitar,gun,haircut,hamburger,hammer,hamster,hand,handbag,hankey,hash,hatched_chick,hatching_chick,headphones,hear_no_evil,heart,heart_decoration,heart_eyes,heart_eyes_cat,heartbeat,heartpulse,hearts,heavy_check_mark,heavy_division_sign,heavy_dollar_sign,heavy_exclamation_mark,heavy_minus_sign,heavy_multiplication_x,heavy_plus_sign,helicopter,herb,hibiscus,high_brightness,high_heel,hocho,honey_pot,honeybee,horse,horse_racing,hospital,hotel,hotsprings,hourglass,hourglass_flowing_sand,house,house_with_garden,hurtrealbad,hushed,ice_cream,icecream,id,ideograph_advantage,imp,inbox_tray,incoming_envelope,information_desk_person,information_source,innocent,interrobang,iphone,it,izakaya_lantern,jack_o_lantern,japan,japanese_castle,japanese_goblin,japanese_ogre,jeans,joy,joy_cat,jp,key,keycap_ten,kimono,kiss,kissing,kissing_cat,kissing_closed_eyes,kissing_face,kissing_heart,kissing_smiling_eyes,koala,koko,kr,large_blue_circle,large_blue_diamond,large_orange_diamond,last_quarter_moon,last_quarter_moon_with_face,laughing,leaves,ledger,left_luggage,left_right_arrow,leftwards_arrow_with_hook,lemon,leo,leopard,libra,light_rail,link,lips,lipstick,lock,lock_with_ink_pen,lollipop,loop,loudspeaker,love_hotel,love_letter,low_brightness,m,mag,mag_right,mahjong,mailbox,mailbox_closed,mailbox_with_mail,mailbox_with_no_mail,man,man_with_gua_pi_mao,man_with_turban,mans_shoe,maple_leaf,mask,massage,meat_on_bone,mega,melon,memo,mens,metal,metro,microphone,microscope,milky_way,minibus,minidisc,mobile_phone_off,money_with_wings,moneybag,monkey,monkey_face,monorail,mortar_board,mount_fuji,mountain_bicyclist,mountain_cableway,mountain_railway,mouse,mouse2,movie_camera,moyai,muscle,mushroom,musical_keyboard,musical_note,musical_score,mute,nail_care,name_badge,neckbeard,necktie,negative_squared_cross_mark,neutral_face,new,new_moon,new_moon_with_face,newspaper,ng,nine,no_bell,no_bicycles,no_entry,no_entry_sign,no_good,no_mobile_phones,no_mouth,no_pedestrians,no_smoking,non-potable_water,nose,notebook,notebook_with_decorative_cover,notes,nut_and_bolt,o,o2,ocean,octocat,octopus,oden,office,ok,ok_hand,ok_woman,older_man,older_woman,on,oncoming_automobile,oncoming_bus,oncoming_police_car,oncoming_taxi,one,open_file_folder,open_hands,open_mouth,ophiuchus,orange_book,outbox_tray,ox,package,page_facing_up,page_with_curl,pager,palm_tree,panda_face,paperclip,parking,part_alternation_mark,partly_sunny,passport_control,paw_prints,peach,pear,pencil,pencil2,penguin,pensive,performing_arts,persevere,person_frowning,person_with_blond_hair,person_with_pouting_face,phone,pig,pig2,pig_nose,pill,pineapple,pisces,pizza,plus1,point_down,point_left,point_right,point_up,point_up_2,police_car,poodle,poop,post_office,postal_horn,postbox,potable_water,pouch,poultry_leg,pound,pouting_cat,pray,princess,punch,purple_heart,purse,pushpin,put_litter_in_its_place,question,rabbit,rabbit2,racehorse,radio,radio_button,rage,rage1,rage2,rage3,rage4,railway_car,rainbow,raised_hand,raised_hands,raising_hand,ram,ramen,rat,recycle,red_car,red_circle,registered,relaxed,relieved,repeat,repeat_one,restroom,revolving_hearts,rewind,ribbon,rice,rice_ball,rice_cracker,rice_scene,ring,rocket,roller_coaster,rooster,rose,rotating_light,round_pushpin,rowboat,ru,rugby_football,runner,running,running_shirt_with_sash,sa,sagittarius,sailboat,sake,sandal,santa,satellite,satisfied,saxophone,school,school_satchel,scissors,scorpius,scream,scream_cat,scroll,seat,secret,see_no_evil,seedling,seven,shaved_ice,sheep,shell,ship,shipit,shirt,shit,shoe,shower,signal_strength,six,six_pointed_star,ski,skull,sleeping,sleepy,slot_machine,small_blue_diamond,small_orange_diamond,small_red_triangle,small_red_triangle_down,smile,smile_cat,smiley,smiley_cat,smiling_imp,smirk,smirk_cat,smoking,snail,snake,snowboarder,snowflake,snowman,sob,soccer,soon,sos,sound,space_invader,spades,spaghetti,sparkle,sparkler,sparkles,sparkling_heart,speak_no_evil,speaker,speech_balloon,speedboat,squirrel,star,star2,stars,station,statue_of_liberty,steam_locomotive,stew,straight_ruler,strawberry,stuck_out_tongue,stuck_out_tongue_closed_eyes,stuck_out_tongue_winking_eye,sun_with_face,sunflower,sunglasses,sunny,sunrise,sunrise_over_mountains,surfer,sushi,suspect,suspension_railway,sweat,sweat_drops,sweat_smile,sweet_potato,swimmer,symbols,syringe,tada,tanabata_tree,tangerine,taurus,taxi,tea,telephone,telephone_receiver,telescope,tennis,tent,thought_balloon,three,thumbsdown,thumbsup,ticket,tiger,tiger2,tired_face,tm,toilet,tokyo_tower,tomato,tongue,top,tophat,tractor,traffic_light,train,train2,tram,triangular_flag_on_post,triangular_ruler,trident,triumph,trolleybus,trollface,trophy,tropical_drink,tropical_fish,truck,trumpet,tshirt,tulip,turtle,tv,twisted_rightwards_arrows,two,two_hearts,two_men_holding_hands,two_women_holding_hands,u5272,u5408,u55b6,u6307,u6708,u6709,u6e80,u7121,u7533,u7981,u7a7a,uk,umbrella,unamused,underage,unlock,up,us,v,vertical_traffic_light,vhs,vibration_mode,video_camera,video_game,violin,virgo,volcano,vs,walking,waning_crescent_moon,waning_gibbous_moon,warning,watch,water_buffalo,watermelon,wave,wavy_dash,waxing_crescent_moon,waxing_gibbous_moon,wc,weary,wedding,whale,whale2,wheelchair,white_check_mark,white_circle,white_flower,white_large_square,white_medium_small_square,white_medium_square,white_small_square,white_square_button,wind_chime,wine_glass,wink,wolf,woman,womans_clothes,womans_hat,womens,worried,wrench,x,yellow_heart,yen,yum,zap,zero,zzz";e.default=t.split(",")}),define("common/common-imgs-loaded",[],function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(t,n){function i(n){return null==n?String(n):"object"===("undefined"==typeof n?"undefined":e(n))||"function"==typeof n?n instanceof t.NodeList&&"nodelist"||n instanceof t.HTMLCollection&&"htmlcollection"||Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase():"undefined"==typeof n?"undefined":e(n)}function r(e){switch(i(e)){case"array":return e;case"undefined":return[];case"nodelist":case"htmlcollection":case"arguments":for(var t=[],n=0,r=e.length;n0&&a.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(l)?(r=!t.disabled,r&&(i=e(t).closest("fieldset")[0],i&&(r=!i.disabled))):r="a"===l?t.href||n:n,r=r||e(t).is("[contenteditable]"),r&&e(t).is(":visible"))},t=function(){function t(t,n){this._container=t,this._target=n,this._container=e(this._container),this._target=e(this._target).addClass("pastable"),this._container.on("paste",function(e){return function(t){var n,i,r,a,o,s,l,c,d,u,m,p,g;if(t.currentTarget!==t.target)return t.preventDefault();if(e._paste_event_fired=!0,null!=(null!=(d=t.originalEvent)?d.clipboardData:void 0))if(n=t.originalEvent.clipboardData,n.items)for(u=n.items,a=0,s=u.length;ac&&(m=o+l*(u-c),m<=s&&(clearInterval(d),n()))},m)}function i(){u=0,m=o,h=!1,clearInterval(d),d=null}function r(){i(),n()}function a(){h=!0}Object.defineProperty(e,"__esModule",{value:!0});var o=6e3,s=3e5,l=6e3,c=10,d=null,u=0,m=o,p=null,g=null,h=!1;e.default={start:function(e,t){d&&i(),p=e,g=t,n()},reset:function(){r()},stop:function(){i()},pause:function(){a()}}}),define("common/common-poll2",["exports"],function(e){"use strict";function t(){if(!h)try{p&&p(r,i)}catch(e){g&&g(r,i,e),console.log("轮询异常: "+e)}}function n(){h=!1,t(),d=setInterval(function(){u++,t(),u>c&&(m=o+l*(u-c),m<=s&&(clearInterval(d),n()))},m)}function i(){u=0,m=o,h=!1,clearInterval(d),d=null}function r(){i(),n()}function a(){h=!0}Object.defineProperty(e,"__esModule",{value:!0});var o=6e3,s=3e5,l=6e3,c=10,d=null,u=0,m=o,p=null,g=null,h=!1;e.default={start:function(e,t){d&&i(),p=e,g=t,n()},reset:function(){r()},stop:function(){i()},pause:function(){a()}}}),define("common/common-scrollbar",[],function(){"use strict";!function(e,t){t(e.jQuery)}(window,function(e){function t(t){if(a.webkit&&!t)return{height:0,width:0};if(!a.data.outer){var n={border:"none","box-sizing":"content-box",height:"200px",margin:"0",padding:"0",width:"200px"};a.data.inner=e("
    ").css(e.extend({},n)),a.data.outer=e("
    ").css(e.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},n)).append(a.data.inner).appendTo("body")}return a.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(a.data.outer.offset().top-a.data.inner.offset().top||0),width:Math.ceil(a.data.outer.offset().left-a.data.inner.offset().left||0)}}function n(){var e=t(!0);return!(e.height||e.width)}function i(e){var t=e.originalEvent;return(!t.axis||t.axis!==t.HORIZONTAL_AXIS)&&!t.wheelDeltaX}var r=!1,a={data:{index:0,name:"scrollbar"},firefox:/firefox/i.test(navigator.userAgent),macosx:/mac/i.test(navigator.platform),msedge:/edge\/\d+/i.test(navigator.userAgent),msie:/(msie|trident)/i.test(navigator.userAgent),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent)};a.scrolls.add=function(e){this.remove(e).push(e)},a.scrolls.remove=function(t){for(;e.inArray(t,this)>=0;)this.splice(e.inArray(t,this),1);return this};var o={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!1,ignoreOverlay:!1,isRtl:!1,scrollStep:30,showArrows:!1,stepScrolling:!0,scrollx:null,scrolly:null,onDestroy:null,onFallback:null,onInit:null,onScroll:null,onUpdate:null},s=function(i){a.scroll||(a.overlay=n(),a.scroll=t(),c(),e(window).resize(function(){c(!0)})),this.container=i,this.namespace=".scrollbar_"+a.data.index++,this.options=e.extend({},o,window.jQueryScrollbarOptions||{}),this.scrollTo=null,this.scrollx={},this.scrolly={},i.data(a.data.name,this),a.scrolls.add(this)};s.prototype={destroy:function(){if(this.wrapper){this.container.removeData(a.data.name),a.scrolls.remove(this);var t=this.container.scrollLeft(),n=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:"","max-height":""}).removeClass("scroll-content scroll-scrollx_visible scroll-scrolly_visible").off(this.namespace).scrollLeft(t).scrollTop(n),this.scrollx.scroll.removeClass("scroll-scrollx_visible").find("div").addBack().off(this.namespace),this.scrolly.scroll.removeClass("scroll-scrolly_visible").find("div").addBack().off(this.namespace),this.wrapper.remove(),e(document).add("body").off(this.namespace),e.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},init:function(t){var n=this,r=this.container,o=this.containerWrapper||r,s=this.namespace,l=e.extend(this.options,t||{}),c={x:this.scrollx,y:this.scrolly},d=this.wrapper,u={},m={scrollLeft:r.scrollLeft(),scrollTop:r.scrollTop()};if(a.mobile&&l.ignoreMobile||a.overlay&&l.ignoreOverlay||a.macosx&&!a.webkit)return e.isFunction(l.onFallback)&&l.onFallback.apply(this,[r]),!1;if(d)u={height:"auto","margin-bottom":a.scroll.height*-1+"px","max-height":""},u[l.isRtl?"margin-left":"margin-right"]=a.scroll.width*-1+"px",o.css(u);else{if(this.wrapper=d=e("
    ").addClass("scroll-wrapper").addClass(r.attr("class")).css("position","absolute"===r.css("position")?"absolute":"relative").insertBefore(r).append(r),l.isRtl&&d.addClass("scroll--rtl"),r.is("textarea")&&(this.containerWrapper=o=e("
    ").insertBefore(r).append(r),d.addClass("scroll-textarea")),u={height:"auto","margin-bottom":a.scroll.height*-1+"px","max-height":""},u[l.isRtl?"margin-left":"margin-right"]=a.scroll.width*-1+"px",o.addClass("scroll-content").css(u),r.on("scroll"+s,function(t){var i=r.scrollLeft(),o=r.scrollTop();if(l.isRtl)switch(!0){case a.firefox:i=Math.abs(i);case a.msedge||a.msie:i=r[0].scrollWidth-r[0].clientWidth-i}e.isFunction(l.onScroll)&&l.onScroll.call(n,{maxScroll:c.y.maxScrollOffset,scroll:o,size:c.y.size,visible:c.y.visible},{maxScroll:c.x.maxScrollOffset,scroll:i,size:c.x.size,visible:c.x.visible}),c.x.isVisible&&c.x.scroll.bar.css("left",i*c.x.kx+"px"),c.y.isVisible&&c.y.scroll.bar.css("top",o*c.y.kx+"px")}),d.on("scroll"+s,function(){d.scrollTop(0).scrollLeft(0)}),l.disableBodyScroll){var p=function(e){i(e)?c.y.isVisible&&c.y.mousewheel(e):c.x.isVisible&&c.x.mousewheel(e)};d.on("MozMousePixelScroll"+s,p),d.on("mousewheel"+s,p),a.mobile&&d.on("touchstart"+s,function(t){var n=t.originalEvent.touches&&t.originalEvent.touches[0]||t,i={pageX:n.pageX,pageY:n.pageY},a={left:r.scrollLeft(),top:r.scrollTop()};e(document).on("touchmove"+s,function(e){var t=e.originalEvent.targetTouches&&e.originalEvent.targetTouches[0]||e;r.scrollLeft(a.left+i.pageX-t.pageX),r.scrollTop(a.top+i.pageY-t.pageY),e.preventDefault()}),e(document).on("touchend"+s,function(){e(document).off(s)})})}e.isFunction(l.onInit)&&l.onInit.apply(this,[r])}e.each(c,function(t,o){var d=null,u=1,m="x"===t?"scrollLeft":"scrollTop",p=l.scrollStep,g=function(){var e=r[m]();r[m](e+p),1==u&&e+p>=h&&(e=r[m]()),u==-1&&e+p<=h&&(e=r[m]()),r[m]()==e&&d&&d()},h=0;o.scroll||(o.scroll=n._getScroll(l["scroll"+t]).addClass("scroll-"+t),l.showArrows&&o.scroll.addClass("scroll-element_arrows_visible"),o.mousewheel=function(e){if(!o.isVisible||"x"===t&&i(e))return!0;if("y"===t&&!i(e))return c.x.mousewheel(e),!0;var a=e.originalEvent.wheelDelta*-1||e.originalEvent.detail,s=o.size-o.visible-o.offset;return a||("x"===t&&e.originalEvent.deltaX?a=40*e.originalEvent.deltaX:"y"===t&&e.originalEvent.deltaY&&(a=40*e.originalEvent.deltaY)),(a>0&&h0)&&(h+=a,h<0&&(h=0),h>s&&(h=s),n.scrollTo=n.scrollTo||{},n.scrollTo[m]=h,setTimeout(function(){n.scrollTo&&(r.stop().animate(n.scrollTo,240,"linear",function(){h=r[m]()}),n.scrollTo=null)},1)),e.preventDefault(),!1},o.scroll.on("MozMousePixelScroll"+s,o.mousewheel).on("mousewheel"+s,o.mousewheel).on("mouseenter"+s,function(){h=r[m]()}),o.scroll.find(".scroll-arrow, .scroll-element_track").on("mousedown"+s,function(i){if(1!=i.which)return!0;u=1;var s={eventOffset:i["x"===t?"pageX":"pageY"], +maxScrollValue:o.size-o.visible-o.offset,scrollbarOffset:o.scroll.bar.offset()["x"===t?"left":"top"],scrollbarSize:o.scroll.bar["x"===t?"outerWidth":"outerHeight"]()},c=0,b=0;if(e(this).hasClass("scroll-arrow")){if(u=e(this).hasClass("scroll-arrow_more")?1:-1,p=l.scrollStep*u,h=u>0?s.maxScrollValue:0,l.isRtl)switch(!0){case a.firefox:h=u>0?0:s.maxScrollValue*-1;break;case a.msie||a.msedge:}}else u=s.eventOffset>s.scrollbarOffset+s.scrollbarSize?1:s.eventOffset','
    ','
    ','
    ','
    ','
    ','
    ','
    ','
    ',"
    ","
    ",'
    ','
    ','
    ',"
    ",'
    ','
    ',"
    ","
    ","
    "].join(""),simple:['
    ','
    ','
    ','
    ','
    ',"
    ","
    "].join("")};return n[t]&&(t=n[t]),t||(t=n.simple),t="string"==typeof t?e(t).appendTo(this.wrapper):e(t),e.extend(t,{bar:t.find(".scroll-bar"),size:t.find(".scroll-element_size"),track:t.find(".scroll-element_track")}),t},_handleMouseDown:function(t,n){var i=this.namespace;return e(document).on("blur"+i,function(){e(document).add("body").off(i),t&&t()}),e(document).on("dragstart"+i,function(e){return e.preventDefault(),!1}),e(document).on("mouseup"+i,function(){e(document).add("body").off(i),t&&t()}),e("body").on("selectstart"+i,function(e){return e.preventDefault(),!1}),n&&n.preventDefault(),!1},_updateScroll:function(t,n){var i=this.container,r=this.containerWrapper||i,o="scroll-scroll"+t+"_visible",s="x"===t?this.scrolly:this.scrollx,l=parseInt(this.container.css("x"===t?"left":"top"),10)||0,c=this.wrapper,d=n.size,u=n.visible+l;n.isVisible=d-u>1,n.isVisible?(n.scroll.addClass(o),s.scroll.addClass(o),r.addClass(o)):(n.scroll.removeClass(o),s.scroll.removeClass(o),r.removeClass(o)),"y"===t&&(i.is("textarea")||d10?(window.console&&console.log("Scroll updates exceed 10"),c=function(){}):(clearTimeout(e),e=setTimeout(c,300))}}()})}),define("common/common-search",["exports"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function e(){var n=arguments.length<=0||void 0===arguments[0]?10:arguments[0];t(this,e),this.items=[],this.max=n}return e.prototype.put=function(){for(var e=arguments.length,t=Array(e),n=0;n=i.length)break;o=i[a++]}else{if(a=i.next(),a.done)break;o=a.value}var s=o;this.items=_.reject(this.items,{id:s.id}),this.items.length "},"/list":{key:"ctrl+l",label:"/list [列表] (ctrl+l)",value:"* "},"/href":{key:"ctrl+k",label:"/href [链接] (ctrl+k)",value:"[](http://)",ch:1},"/img":{key:"alt+ctrl+i",label:"/img [图片] (ctrl+alt+i)",value:"![](http://)",ch:1},"/table":{label:"/table [表格]",value:"| 列1 | 列2 | 列3 |\n| ------ | ------ | ------ |\n| 文本 | 文本 | 文本 |\n"},"/hr":{label:"/hr [分隔线]",value:"\n-----\n"},"/task":{label:"/task [任务列表]",value:"- [ ] 未完成任务\n- [x] 已完成任务",line:1,ch:11,ch2:12},"/details":{label:"/details [折叠详情]",value:"
    \n标题详情内容\n
    ",line:1,ch:11,ch2:25},"/upload":{label:"/upload [上传文件] (ctrl+u)",value:""},"/shortcuts":{label:"/shortcuts [热键] (ctrl+/)",value:""}}}),define("common/common-utils",["exports","wurl","common/common-diff"],function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.CommonUtils=void 0;var r=n(t),a=e.CommonUtils=function(){function e(){i(this,e),this.regExpOS={ios:/(iPad|iPhone|iPod)/g,mobileChrome:/(CriOS)/g,mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g,cellphone:/iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g}}return e.prototype.getBaseUrl=function(){return"function"==typeof r.default?80==(0,r.default)("port")||443==(0,r.default)("port")?(0,r.default)("protocol")+"://"+(0,r.default)("hostname"):(0,r.default)("protocol")+"://"+(0,r.default)("hostname")+":"+(0,r.default)("port"):""},e.prototype.getUrl=function(){return this.getBaseUrl()+(0,r.default)("path")+"#"+this.getHash()},e.prototype.getHash=function(){var e=(0,r.default)("hash");return e?e.split("?")[0]:""},e.prototype.getBasePath=function(){return this.getBaseUrl()+(0,r.default)("path")},e.prototype.getResourceBase=function(){var e=this.getBasePath();return _.endsWith(e,"/index.html")&&(e=_.replace(e,"/index.html","")),e},e.prototype.redirect2Login=function(e){var t=this.urlQuery("redirect");t?console.log("url has contains ?redirect"):(e=e?e:(0,r.default)(),window.location=this.getBaseUrl()+(0,r.default)("path")+("#/login?redirect="+encodeURIComponent(e)))},e.prototype.urlQuery=function(e,t){if(t){var n=(0,r.default)("?"+e,t);return n||(n=(0,r.default)("?"+e,(0,r.default)("hash",t))),n}return(0,r.default)("?"+e)||(0,r.default)("?"+e,(0,r.default)("hash"))},e.prototype.removeUrlQuery=function(e,t){var n=t?t:window.location.href,i=new RegExp("(&|\\?)?"+e+"=?[^&#]*(.)?","g").exec(n);if(i){if("&"==i[1])return n.replace(new RegExp("&"+e+"=?[^&#]+","g"),"");if("?"==i[1])return"&"!=i[2]?n.replace(new RegExp("\\?"+e+"=?[^&#]*","g"),""):n.replace(new RegExp(""+e+"=?[^&#]*&","g"),"")}return n},e.prototype.isLoginPage=function(){var e=(0,r.default)("hash");return _.startsWith(e,"/login")},e.prototype.errorAutoTry=function(e,t){var n=this;if(!this.isRunning&&!this.isLoginPage()){var i=t?t:10,r=null,a=toastr.error("网络连接错误,"+i+"秒后自动重试!",null,{closeButton:!1,timeOut:"0",preventDuplicates:!1,onclick:function(){clearInterval(n.timer),e&&e()}});this.isRunning=!0,r=setInterval(function(){return 0===i?(clearInterval(r),n.isRunning=!1,toastr.remove(),void(e&&e())):(a&&a.find(".toast-message").text("网络连接错误,"+i+"秒后自动重试!"),void i--)},1e3)}},e.prototype.isElementInViewport=function(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},e.prototype.getChatName=function(e){return _.startsWith(e,"@")?e.substr(1):e},e.prototype.preParse=function(e){var t=e;return $.each(this.parseUsers(e),function(e,n){t=t.replace(new RegExp("{~"+n.username+"}","g"),'**`@'+n.name+"`**")}),t},e.prototype.parseUsers=function(e){for(var t=[],n=/\{~([^\}]*)\}/g,i=n.exec(e);i;){var r=_.find([nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[]),{username:i[1]}),a=!_.some(t,{username:i[1]});r&&a&&t.push(r),i=n.exec(e)}return t},e.prototype.getUser=function(e){return _.find(tmsUsers,{username:e})},e.prototype.parseUsernames=function(e,t){var n=this.parseUsers(e),i=_.some(n,{username:"all"});return i?_.without(_.map(t,"username"),"all"):_.map(n,"username")},e.prototype.md2html=function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return emojify&&(e=emojify.replace(e)),t?'
    '+marked(this.preParse(e))+"
    ":$('
    ').html(''+marked(this.preParse(e))).wrap("
    ").parent().html()},e.prototype.diffS=function(e,t,n){var i=["diffChars","diffWords","diffWordsWithSpace","diffLines"];i.includes(n)||(n="diffWords");for(var r='style="background-color: #e6cf56; text-decoration: line-through;"',a='style="background-color: #98e287; text-decoration: none;"',o=JsDiff[n](e,t),s=[],l=0;l"+o[l].value+"":o[l].added?""+o[l].value+"":""+o[l].value,s.push(d)}return"
    "+s.join("")+"
    "},e.prototype.catalog=function(e){var t=$(":header",e);if(t&&0==t.size())return!1;var n=null,i={pre:null,arr:[]},r=i;return t.each(function(e,t){var i=t.nodeName;if(n)if(n
    ');return this.prodDir(n,e,t),n},e.prototype.dir=function(e,t){var n=this.catalog(e);return n?this.generateDir(n,t):""},e.prototype.prodDir=function(e,t,n){var i=this;$.each(t.arr,function(t,r){if(r.hasOwnProperty("arr")){var a=$('
    ');e.append(a),i.prodDir(a,r,n)}else{var o=n?_.uniqueId(n):_.uniqueId("tms-wiki-dir-item-"),s=$('
    ').text($(r).attr("id",o).text()).attr("data-id",o);e.append(s)}})},e.prototype.isElementInViewport=function(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},e.prototype.getCursortPosition=function(e){var t=0;if(document.selection){e.focus();var n=document.selection.createRange();n.moveStart("character",-e.value.length),t=n.text.length}else(e.selectionStart||"0"==e.selectionStart)&&(t=e.selectionStart);return t},e.prototype.setCaretPosition=function(e,t){if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if(e.createTextRange){var n=e.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}},e.prototype.isAbsUrl=function(e){return!!_.startsWith(e,"http://")||(!!_.startsWith(e,"https://")||!!_.startsWith(e,"//"))},e.prototype.escape=function(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},e.prototype.unescape=function(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})},e.prototype.openNewWin=function(e){e&&!function(){var t=$('').appendTo("body").end();$('').appendTo(t).end().click(),_.delay(function(){t.remove()},200)}()},e.prototype.isAdminUser=function(e){return!(!e||!e.authorities)&&_.some(e.authorities,function(e){return"ROLE_ADMIN"===e.id.authority})},e.prototype.isSuperUser=function(e){return!(!e||!e.authorities)&&_.some(e.authorities,function(e){return"ROLE_SUPER"===e.id.authority})},e.prototype.isSBCcase=function(e){return/[^\x00-\xff]/.test(e)},e.prototype.isHanzi=function(e){return/[\u4e00-\u9fa5]/gi.test(e)},e.prototype.getByteLen=function(e){for(var t=0,n=0;nt)return e.substr(0,i)+"...";return e},e.prototype.isMail=function(e){var t=/^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i;return t.test(e)},e.prototype.isIE=function e(){var t=!window.ActiveXObject&&"ActiveXObject"in window,e="ActiveXObject"in window;return t||e},e.prototype.isIE11=function(){return!window.ActiveXObject&&"ActiveXObject"in window},e.prototype.isIOS=function e(){var t=navigator.userAgent,e=t.match(this.regExpOS.ios),n=t.match(this.regExpOS.mobileChrome);return!(!e||n)},e.prototype.isCellphone=function(){return!!navigator.userAgent.match(this.regExpOS.cellphone)},e.prototype.isMobile=function(){return!!navigator.userAgent.match(this.regExpOS.mobile)},e.prototype.isChrome=function(){return/chrome\/([\d.]+)/.test(navigator.userAgent.toLowerCase())},e.prototype.isSafari=function(){return/version\/([\d.]+)/.test(navigator.userAgent.toLowerCase())},e.prototype.isFirefox=function(){return/firefox\/([\d.]+)/.test(navigator.userAgent.toLowerCase())},e.prototype.isOpera=function(){return/opera.([\d.]+)/.test(navigator.userAgent.toLowerCase())},e.prototype.diffHtml=function(e){var t=["html","head","meta","title","base","link","script","body","div","span"],n="";return e&&(n=e,_.each(t,function(e){n=n.replace(new RegExp("<("+e+")","gi"),"<$1")})),n},e.prototype.encodeHtml=function(e){var t="";return 0==e.length?"":(t=e.replace(/&/g,">"),t=t.replace(//g,">"),t=t.replace(/ /g," "),t=t.replace(/\'/g,"'"),t=t.replace(/\"/g,"""),t=t.replace(/\n/g,"
    "))},e.prototype.decodeHtml=function(e){var t="";return 0==e.length?"":(t=e.replace(/>/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/ /g," "),t=t.replace(/'/g,"'"),t=t.replace(/"/g,'"'),t=t.replace(/
    /g,"\n"))},e.prototype.getAlarm=function(){var e={ats:1,news:1,off:0};if(localStorage){var t=localStorage.getItem(nsCons.KEY_CHAT_ALARM);t&&_.extend(e,JSON.parse(t))}return e},e}();e.default=new a}),define("init/config",["exports","aurelia-templating-resources","aurelia-event-aggregator","aurelia-fetch-client","toastr","wurl","common/common-utils","marked","highlight","autosize","nprogress","push","color-hash","isomorphic-fetch","common/common-plugin","common/common-constant","common/common-ctx","common/common-imgs-loaded","modaal"],function(e,t,n,i,r,a,o,s,l,c,d,u,m){"use strict";function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Config=void 0;var h=p(r),b=p(a),f=p(o),v=p(s),y=p(l),E=p(c),w=p(d),x=p(u),C=p(m),S=e.Config=function(){function e(){g(this,e)}return e.prototype.initHttp=function(){return window.json=function(e){return console.log(JSON.stringify(e)),(0,i.json)(e)},window.http=this.aurelia.container.root.get(i.HttpClient),http.configure(function(e){e.withDefaults({credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json","X-Requested-With":"fetch"}}).withInterceptor({request:function(e){return w.default&&w.default.start(),e},requestError:function(e){console.log(e)},response:function(e){return w.default&&w.default.done(),e.ok||(e.json().then(function(e){h.default.error(e.message)}),401!=e.status)?e:(h.default.error("用户未登录!"),void f.default.redirect2Login())},responseError:function(e){h.default.error(e.message,"网络请求错误!"),console.log(e)}})}),this},e.prototype.initToastr=function(){return h.default.options.positionClass="toast-bottom-center",h.default.options.preventDuplicates=!0,this},e.prototype.initMarked=function(){var e=new v.default.Renderer;return e.listitem=function(e){return/^\s*\[[x ]\]\s*/.test(e)?(e=e.replace(/^\s*\[ \]\s*/,' ').replace(/^\s*\[x\]\s*/,' '),'
  • '+e+"
  • "):"
  • "+e+"
  • "},e.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return""}var r=void 0,a=/\/chat\/.+\?id=.+/g.test((0,b.default)("hash",e)),o=/\/blog\/.+\?cid=.+/g.test((0,b.default)("hash",e));return r=a||o||f.default.isAbsUrl(e)&&(0,b.default)("hostname",e)!=(0,b.default)("hostname")?'"},e.codespan=function(e){return''+e+""},e.code=function(e,t,n){var i=e;if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
    '+(n?e:f.default.escape(e,!0))+"\n
    \n":'
    '+(n?e:f.default.escape(e,!0))+"\n
    "},v.default.setOptions({renderer:e,breaks:!0,highlight:function(e){return y.default.highlightAuto(e).value}}),this},e.prototype.initAjax=function(){$.ajaxSetup({cache:!1});var e=["/chat/channel/latest","/chat/direct/latest","/chat/channel/poll","/chat/channel/reply/poll"];return $(document).ajaxSend(function(t,n,i){var r=_.every(e,function(e){return i.url.lastIndexOf(e)==-1});r&&w.default&&w.default.start()}),$(document).on("ajaxStop",function(){w.default&&w.default.done()}),$(document).ajaxError(function(e,t,n){t&&401==t.status&&f.default.redirect2Login()}),this},e.prototype.initGlobalVar=function(){return window.toastr=h.default,window.wurl=b.default,window.utils=f.default,window.marked=v.default,window.autosize=E.default,window.push=x.default,window.bs=this.aurelia.container.root.get(t.BindingSignaler),window.ea=this.aurelia.container.root.get(n.EventAggregator),window.colorHash=new C.default,this},e.prototype.initAnimateCss=function(){return $.fn.extend({animateCss:function(e){var t="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";this.addClass("animated "+e).one(t,function(){$(this).removeClass("animated "+e)})}}),this},e.prototype.initEmoji=function(){return emojify&&emojify.setConfig({img_dir:f.default.getResourceBase()+"/img/emoji"}),this},e.prototype.initModaal=function(){return _.extend($.fn.modaal.options,{close_text:"关闭",close_aria_label:"按[esc]关闭",confirm_button_text:"确认",confirm_cancel_button_text:"取消",confirm_title:"操作确认",accessible_title:"对话框窗口",confirm_content:"

    默认确认对话框内容.

    "}),this},e.prototype.context=function(e){return this.aurelia=e,this},e}();e.default=new S}),define("init/index",["exports","./config","jquery","jquery.scrollto","timeago","lodash","hotkeys"],function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){r.default.context(e).initGlobalVar().initHttp().initAjax().initToastr().initMarked().initAnimateCss().initEmoji().initModaal()}Object.defineProperty(e,"__esModule",{value:!0}),e.configure=i;var r=n(t)}),define("resources/index",["exports"],function(e){"use strict";function t(e){e.globalResources(["resources/value-converters/vc-common","resources/binding-behaviors/bb-key","resources/attributes/attr-task","resources/attributes/attr-swipebox","resources/attributes/attr-pastable","resources/attributes/attr-autosize","resources/attributes/attr-dropzone","resources/attributes/attr-attr","resources/attributes/attr-c2c","resources/attributes/attr-dimmer","resources/attributes/attr-ui-dropdown","resources/attributes/attr-ui-dropdown-action","resources/attributes/attr-ui-dropdown-hover","resources/attributes/attr-ui-tab","resources/attributes/attr-ui-popup","resources/attributes/attr-ui-checkbox","resources/attributes/attr-tablesort","resources/attributes/attr-textcomplete","resources/attributes/attr-scrollbar","resources/attributes/attr-modaal","resources/attributes/attr-fancybox","resources/elements/em-modal","resources/elements/em-dropdown","resources/elements/em-dropdown-links","resources/elements/em-checkbox","resources/elements/em-confirm-modal","resources/elements/em-hotkeys-modal","resources/elements/em-chat-input","resources/elements/em-chat-top-menu","resources/elements/em-chat-sidebar-left","resources/elements/em-chat-content-item","resources/elements/em-chat-sidebar-right","resources/elements/em-chat-channel-create","resources/elements/em-chat-channel-join","resources/elements/em-chat-channel-edit","resources/elements/em-chat-channel-members-mgr","resources/elements/em-chat-channel-members-show","resources/elements/em-chat-channel-link-mgr","resources/elements/em-chat-system-link-mgr","resources/elements/em-chat-msg-popup","resources/elements/em-chat-member-popup","resources/elements/em-chat-attach","resources/elements/em-chat-schedule","resources/elements/em-chat-msg","resources/elements/em-chat-schedule-edit","resources/elements/em-chat-schedule-remind","resources/elements/em-chat-share","resources/elements/em-chat-content-item-footbar","resources/elements/em-chat-topic","resources/elements/em-chat-topic-input","resources/elements/em-chat-settings","resources/elements/em-blog-write","resources/elements/em-blog-left-sidebar","resources/elements/em-blog-right-sidebar","resources/elements/em-blog-content","resources/elements/em-blog-top-menu","resources/elements/em-blog-share","resources/elements/em-blog-comment","resources/elements/em-blog-save","resources/elements/em-blog-space-create","resources/elements/em-blog-space-edit","resources/elements/em-blog-space-update","resources/elements/em-blog-history","resources/elements/em-blog-history-view","resources/elements/em-blog-history-diff","resources/elements/em-blog-comment-popup","resources/elements/em-blog-space-auth","resources/elements/em-user-avatar","resources/elements/em-user-edit","resources/elements/em-blog-comment-share"]); +}Object.defineProperty(e,"__esModule",{value:!0}),e.configure=t}),define("test/test-lifecycle",["exports","aurelia-framework","aurelia-event-aggregator"],function(e,t,n){"use strict";function i(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.TestLifeCycle=void 0;var o,s,l,c;e.TestLifeCycle=(c=l=function(){function e(t){r(this,e),i(this,"prop",s,this),this.eventAggregator=t,console.log("constructor")}return e.prototype.created=function(e){console.log("created")},e.prototype.bind=function(e){console.log("bind")},e.prototype.unbind=function(){console.log("unbind")},e.prototype.attached=function(){console.log("attached")},e.prototype.detached=function(){console.log("detached")},e.prototype.canActivate=function(e,t,n){console.log("canActivate")},e.prototype.activate=function(e,t,n){console.log("activate")},e.prototype.canDeactivate=function(){console.log("canDeactivate")},e.prototype.deactivate=function(){console.log("deactivate")},e}(),l.inject=[n.EventAggregator],o=c,s=a(o.prototype,"prop",[t.bindable],{enumerable:!0,initializer:function(){return null}}),o)}),define("user/user-login",["exports"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});e.UserLogin=function(){function e(){t(this,e),this.username="",this.password=""}return e.prototype.attached=function(){$(this.rememberMeRef).checkbox()},e.prototype.kdHandler=function(e){return 13===e.keyCode&&this.loginHandler(),!0},e.prototype.loginHandler=function(){var e=this,t=$(this.rememberMeRef).checkbox("is checked")?"on":"";return $.post("/admin/signin",{username:this.username,password:this.password,"remember-me":t}).done(function(){localStorage&&localStorage.setItem(nsCons.KEY_LOGIN_USERNAME,e.username);var t=utils.urlQuery("redirect");if(t)window.location=decodeURIComponent(t);else{var n=null;localStorage&&(n=localStorage.getItem(nsCons.KEY_REMEMBER_LAST_CHAT_TO)),n?window.location=wurl("path")+("#/chat/"+n):window.location=wurl("path")+("#/chat/@"+e.username)}}).fail(function(e,t,n){401==e.status?toastr.error("用户名密码不正确!"):0!=e.status&&toastr.error("网络连接错误!")}),!0},e}()}),define("user/user-pwd-reset",["exports"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});e.UserPwdReset=function(){function e(){t(this,e),this.mail="",this.pwd="",this.isReq=!1,this.token=utils.urlQuery("id")}return e.prototype.resetPwdHandler=function(){var e=this;return $(this.fm).form("is valid")?(this.isReq=!0,void http.fetch("/free/user/pwd/reset",{method:"post",body:json({mail:this.mail,baseUrl:utils.getBaseUrl(),path:wurl("path")})}).then(function(t){t.ok&&t.json().then(function(t){t.success?(toastr.success("重置密码邮件链接发送成功!"),_.delay(function(){window.location="/admin/login"},2e3)):(toastr.error(t.data,"重置密码邮件链接发送失败!"),e.isReq=!1)})})):void toastr.error("邮件地址输入不合法!")},e.prototype.newPwdHandler=function(){var e=this;return $(this.fm2).form("is valid")?(this.isReq=!0,void http.fetch("/free/user/pwd/new",{method:"post",body:json({token:this.token,pwd:this.pwd})}).then(function(t){t.ok&&t.json().then(function(t){t.success?(toastr.success("重置密码成功!"),_.delay(function(){window.location="/admin/login"},2e3)):(toastr.error(t.data,"重置密码失败!"),e.isReq=!1)})})):void toastr.error("新密码输入不合法!")},e.prototype.attached=function(){$(this.fm).form({on:"blur",inline:!0,fields:{mail:["empty","email"]}}),$(this.fm2).form({on:"blur",inline:!0,fields:{mail:["empty","minLength[8]"]}})},e}()}),define("user/user-register",["exports"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});e.ViewModel=function(){function e(){t(this,e),this.header="账户激活页面"}return e.prototype.activate=function(e,t,n){var i=this;e.id&&(this.token=e.id,this.isReq=!0,this.header="账户激活中,请稍后...!",http.fetch("/free/user/register/activate",{method:"post",body:json({token:this.token})}).then(function(e){e.ok&&(e.json().then(function(e){e.success?i.header="账户激活成功,请返回登录页面登录!":(i.header="账户激活失败!",toastr.error(e.data,"账户激活失败!"))}),i.isReq=!1)}))},e.prototype.attached=function(){$(this.fm).form({on:"blur",inline:!0,fields:{username:{identifier:"username",rules:[{type:"empty"},{type:"minLength[3]"},{type:"regExp",value:/^[a-z]+[a-z0-9\.\-_]*[a-z0-9]+$/,prompt:"小写字母数字.-_组合,字母开头,字母数字结尾"}]},pwd:{identifier:"pwd",rules:[{type:"empty"},{type:"minLength[8]"}]},name:{identifier:"name",rules:[{type:"empty"},{type:"maxLength[20]"}]},mail:{identifier:"mail",rules:[{type:"empty"},{type:"email"}]}}})},e.prototype.okHandler=function(){var e=this;return $(this.fm).form("is valid")?(this.isReq=!0,void http.fetch("/free/user/register",{method:"post",body:json({username:this.username,pwd:this.pwd,name:this.name,mail:this.mail,baseUrl:utils.getBaseUrl(),path:wurl("path")})}).then(function(t){t.ok&&t.json().then(function(t){t.success?(toastr.success("注册成功,请通过接收到的激活邮件激活账户!"),_.delay(function(){window.location="/admin/login"},2e3)):(toastr.error(t.data,"注册失败!"),e.isReq=!1)})})):void toastr.error("账户注册信息输入不合法!")},e}()}),define("resources/attributes/attr-attr",["exports","aurelia-framework","aurelia-dependency-injection"],function(e,t,n){"use strict";function i(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrAttr=void 0;var o,s,l,c,d,u;e.AttrAttr=(o=(0,t.customAttribute)("attr"),s=(0,n.inject)(Element),o(l=s((c=function(){function e(t){r(this,e),i(this,"name",d,this),i(this,"value",u,this),this.element=t}return e.prototype.nameChanged=function(e){},e.prototype.valueChanged=function(e){this.value=e,e?$(this.element).attr(this.name,e):$(this.element).removeAttr(this.name)},e.prototype.bind=function(e){this.valueChanged(this.value)},e.prototype.unbind=function(){},e}(),d=a(c.prototype,"name",[t.bindable],{enumerable:!0,initializer:null}),u=a(c.prototype,"value",[t.bindable],{enumerable:!0,initializer:null}),l=c))||l)||l)}),define("resources/attributes/attr-autosize",["exports","aurelia-framework","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrAutosize=void 0;var r,a,o;e.AttrAutosize=(r=(0,n.customAttribute)("autosize"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){autosize(this.element)},e.prototype.bind=function(e){this.valueChanged(this.value)},e.prototype.unbind=function(){autosize.destroy(this.elements)},e}())||o)||o)}),define("resources/attributes/attr-c2c",["exports","aurelia-framework","clipboard"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrC2cCustomAttribute=void 0;var a,o,s,l=i(n);e.AttrC2cCustomAttribute=(a=(0,t.customAttribute)("c2c"),o=(0,t.inject)(Element),a(s=o(s=function(){function e(t){r(this,e),this.element=t,this._init()}return e.prototype._init=function(){var e=this;$(this.element).append(''),this.clipboard=new l.default($(this.element).find("i.copy.icon")[0],{text:function(t){return e.value?e.value:$(e.element).text()}});var t=$(this.element).find("[data-tooltip]").hover(function(){},function(){$(this).attr("data-tooltip","复制到剪贴板!")});this.clipboard.on("success",function(e){t.attr("data-tooltip","复制成功!")}).on("error",function(e){t.attr("data-tooltip","复制失败!")}),$(this.element).hover(function(){(e.value||$(e.element).text())&&t.show()},function(){t.hide()})},e.prototype.unbind=function(){this.clipboard&&this.clipboard.destroy()},e}())||s)||s)}),define("resources/attributes/attr-dimmer",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrDimmer=void 0;var r,a,o;e.AttrDimmer=(r=(0,n.customAttribute)("dimmer"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t,this.$dimmer=$('
    ')}return e.prototype.valueChanged=function(e){this.value?$(this.element).prepend(this.$dimmer):this.$dimmer.remove()},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||o)||o)}),define("resources/attributes/attr-dropzone",["exports","aurelia-framework","aurelia-templating","aurelia-event-aggregator"],function(e,t,n,i){"use strict";function r(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrDropzone=void 0;var s,l,c,d,u,m,p;e.AttrDropzone=(s=(0,n.customAttribute)("dropzone"),l=(0,t.inject)(Element,i.EventAggregator),s(c=l((d=function(){function e(t,n){var i=this;a(this,e),r(this,"clickable",u,this),r(this,"target",m,this),r(this,"type",p,this),this.element=t,this.eventAggregator=n,this.subscribe=this.eventAggregator.subscribe(nsCons.EVENT_CHAT_MSG_EDIT_UPLOAD,function(e){e.target===i.target&&$(i.element).click()})}return e.prototype.valueChanged=function(e,t){var n=this.target?this.target:this.element,i=this.type?this.type:nsCtx.isAt?"User":"Channel";$(this.element).parent().addClass("tms-dropzone-preview-hidden"),$(this.element).children().andSelf().dropzone({url:"/admin/file/upload",paramName:"file",clickable:!!this.clickable,dictDefaultMessage:"",maxFilesize:10,addRemoveLinks:!0,dictCancelUpload:"取消上传",dictCancelUploadConfirmation:"确定要取消上传吗?",dictFileTooBig:"文件过大({{filesize}}M),最大限制:{{maxFilesize}}M",init:function(){this.on("sending",function(e,t,n){n.append("toType",i),"Blog"!==i&&n.append("toId",nsCtx.chatTo)}),this.on("success",function(e,t){t.success?($.each(t.data,function(e,t){"Image"==t.type?$(n).insertAtCaret("![{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.path).replace(/\{uuidName\}/g,t.uuidName)):$(n).insertAtCaret("[{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,"admin/file/download/").replace(/\{uuidName\}/g,t.id))}),toastr.success("上传成功!")):toastr.error(t.data,"上传失败!")}),this.on("error",function(e,t,n){toastr.error(t,"上传失败!")}),this.on("complete",function(e){this.removeFile(e)})}})},e.prototype.bind=function(e){this.valueChanged(this.value)},e}(),u=o(d.prototype,"clickable",[t.bindable],{enumerable:!0,initializer:null}),m=o(d.prototype,"target",[t.bindable],{enumerable:!0,initializer:null}),p=o(d.prototype,"type",[t.bindable],{enumerable:!0,initializer:null}),c=d))||c)||c)}),define("resources/attributes/attr-fancybox",["exports","aurelia-framework","aurelia-templating","fancybox"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrFancyboxCustomAttribute=void 0;var r,a,o;e.AttrFancyboxCustomAttribute=(r=(0,n.customAttribute)("fancybox"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;$(this.element).on("click","img",function(e){e.preventDefault();var t=($(e.target),[]),i=0;$(n.element).find("img").each(function(n,r){t.push({src:$(r).attr("src"),opts:{caption:$(r).attr("alt")}}),e.target==r&&(i=n)}),$.fancybox.open(t,{i18n:{zh:{CLOSE:"关闭",NEXT:"下一张",PREV:"上一张",ERROR:"请求内容不能加载.
    请稍后重试.",PLAY_START:"开始幻灯片",PLAY_STOP:"暂停幻灯片",FULL_SCREEN:"全屏",THUMBS:"缩略图"}},lang:"zh",loop:!0,animationEffect:"zoom-in-out",transitionEffect:"slide",arrows:!0,infobar:!0},i)})},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||o)||o)}),define("resources/attributes/attr-modaal",["exports","aurelia-framework","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrModaalCustomAttribute=void 0;var r,a,o;e.AttrModaalCustomAttribute=(r=(0,n.customAttribute)("modaal"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;_.defer(function(){$(n.element).modaal({fullscreen:!0,overlay_close:!1,animation:"none",before_open:function(){ea.publish(nsCons.EVENT_MODAAL_BEFORE_OPEN,{id:e})},after_open:function(){ea.publish(nsCons.EVENT_MODAAL_AFTER_OPEN,{id:e})},before_close:function(){ea.publish(nsCons.EVENT_MODAAL_BEFORE_CLOSE,{id:e})},after_close:function(){ea.publish(nsCons.EVENT_MODAAL_AFTER_CLOSE,{id:e})}})})},e}())||o)||o)}),define("resources/attributes/attr-pastable",["exports","aurelia-framework","aurelia-templating","common/common-plugin","common/common-paste"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrPastable=void 0;var r,a,o;e.AttrPastable=(r=(0,n.customAttribute)("pastable"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;$(this.element).pastableTextarea().on("pasteImage",function(e,t){$.post("/admin/file/base64",{dataURL:t.dataURL,type:t.blob.type,toType:nsCtx.isAt?"User":"Channel",toId:nsCtx.chatTo},function(e,t,i){e.success&&$(n.element).insertAtCaret("![{name}]({baseURL}{path}{uuidName})".replace(/\{name\}/g,e.data.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,e.data.path).replace(/\{uuidName\}/g,e.data.uuidName))})}).on("pasteImageError",function(e,t){toastr.error(t.message,"剪贴板粘贴图片错误!")})},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||o)||o)}),define("resources/attributes/attr-scrollbar",["exports","aurelia-framework","aurelia-templating","common/common-scrollbar"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrScrollbarCustomAttribute=void 0;var r,a,o;e.AttrScrollbarCustomAttribute=(r=(0,n.customAttribute)("scrollbar"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;this.cls=e?e:$(window).width()<768?"scrollbar-macosx":"scrollbar-outer",jQuery(this.element).addClass(this.cls).scrollbar({onScroll:function(e,t){e.scroll==e.maxScroll&&ea.publish(nsCons.EVENT_SCROLLBAR_SCROLL_TO_BOTTOM,{element:n.element,x:t,y:e})}})},e.prototype.unbind=function(){try{jQuery(this.element).removeClass(this.cls).scrollbar("destroy")}catch(e){}},e}())||o)||o)}),define("resources/attributes/attr-swipebox",["exports","aurelia-framework","aurelia-templating","swipebox"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrSwipebox=void 0;var r,a,o;e.AttrSwipebox=(r=(0,n.customAttribute)("swipebox"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;$(this.element).on("click","img",function(t){t.preventDefault();var i=($(t.target),[]),r=0;$(n.element).find("img").each(function(e,n){i.push({href:$(n).attr("src"),title:$(n).attr("alt")}),t.target==n&&(r=e)}),$.swipebox(i,{useCSS:!0,useSVG:!0,initialIndexOnArray:r,hideCloseButtonOnMobile:!1,removeBarsOnMobile:!0,hideBarsDelay:3e3,videoMaxWidth:1140,beforeOpen:function(){},afterOpen:null,afterClose:function(){},loopAtEnd:!!e})})},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||o)||o)}),define("resources/attributes/attr-tablesort",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrTablesortCustomAttribute=void 0;var i,r,a;e.AttrTablesortCustomAttribute=(i=(0,t.customAttribute)("tablesort"),r=(0,t.inject)(Element),i(a=r(a=function(){function e(t){n(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){},e.prototype._init=function(){$(this.element).is("table")?$(this.element).addClass("sortable").tablesort():console.warn("tablesort element is not table tag!")},e.prototype.bind=function(){this._init()},e}())||a)||a)}),define("resources/attributes/attr-task",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrTask=void 0;var r,a,o;e.AttrTask=(r=(0,n.customAttribute)("task"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.task=null,this.bindingCtx=null,this.element=t}return e.prototype.valueChanged=function(e){this.task=e,_.isFunction(this.task)&&_.bind(this.task,this.bindingCtx,this.element)()},e.prototype.bind=function(e){this.bindingCtx=e,this.valueChanged(this.value)},e.prototype.unbind=function(){this.element=null,this.task=null,this.bindingCtx=null},e}())||o)||o)}),define("resources/attributes/attr-textcomplete",["exports","aurelia-framework","aurelia-templating","common/common-tips","common/common-emoji"],function(e,t,n,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrTextcompleteCustomAttribute=void 0;var s,l,c,d=a(i),u=a(r);e.AttrTextcompleteCustomAttribute=(s=(0,n.customAttribute)("textcomplete"),l=(0,t.inject)(Element),s(c=l(c=function(){function e(t){o(this,e),this.element=t,this.initHotkeys()}return e.prototype.tipsActionHandler=function(e){if("/upload"==e)$(this.element).next(".tms-edit-actions").find("button > .upload.icon").click();else if("/shortcuts"==e)ea.publish(nsCons.EVENT_SHOW_HOTKEYS_MODAL,{});else{if("search"!=e)return!0;_.delay(function(){utils.openNewWin(nsCons.STR_EMOJI_SEARCH_URL)},200)}return!1},e.prototype.valueChanged=function(){var e=this;this.value?(this.members=this.value,$(this.element).textcomplete([{match:/(|\b)(\/.*)$/,search:function(e,t){var n=_.keys(d.default);t($.map(n,function(t){return 0===t.indexOf(e)?t:null}))},template:function(e,t){return d.default[e].label},replace:function(t){return e.tipsActionHandler(t)?(_.defer(function(){autosize.update(e.element)}),e.setCaretPosition(d.default[t].ch2?d.default[t].ch2:d.default[t].ch),"$1"+d.default[t].value):""}},{match:/(^|\s)@(\w*)$/,search:function(t,n){n($.map(e.members,function(e){return e.enabled&&e.username.indexOf(t)>=0?e.username:null}))},template:function(t,n){var i=_.find(e.members,{username:t});return i.name+" - "+i.mails+" ("+i.username+")"},replace:function(e){return"$1{~"+e+"}"}},{match:/(^|\s):([\+\-\w]*)$/,search:function(e,t){t($.map(u.default,function(t){return _.some(t.split("_"),function(t){return 0===t.indexOf(e)})?t:null}))},template:function(e,t){if("search"==e)return"表情查找 - :search";var n=":"+e+":";return emojify.replace(n)+" - "+n},replace:function(t){return e.tipsActionHandler(t)?"$1:"+t+": ":""}}],{appendTo:$(this.element).prev(".textcomplete-container").find(".append-to"),maxCount:nsCons.NUM_TEXT_COMPLETE_MAX_COUNT})):this.unbind()},e.prototype.setCaretPosition=function(e){var t=this;e&&_.delay(function(){var n=utils.getCursortPosition(t.element);utils.setCaretPosition(t.element,n-e)},100)},e.prototype.initHotkeys=function(){var e=this;_.each(_.filter(_.values(d.default),"key"),function(t){$(e.element).bind("keydown",t.key,function(n){n.preventDefault(),$(e.element).insertAtCaret(t.value);var i=utils.getCursortPosition(e.element),r=t.ch2?t.ch2:t.ch;r&&utils.setCaretPosition(e.element,i-r),_.defer(function(){autosize.update(e.element)})})})},e.prototype.unbind=function(){try{$(this.element).textcomplete("destroy")}catch(e){}},e}())||c)||c)}),define("resources/attributes/attr-ui-checkbox",["exports","aurelia-framework","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiCheckboxCustomAttribute=void 0;var r,a,o;e.AttrUiCheckboxCustomAttribute=(r=(0,n.customAttribute)("ui-checkbox"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){$(this.element).checkbox()},e}())||o)||o)}),define("resources/attributes/attr-ui-dropdown-action",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiDropdownActionCustomAttribute=void 0;var i,r,a;e.AttrUiDropdownActionCustomAttribute=(i=(0,t.customAttribute)("ui-dropdown-action"),r=(0,t.inject)(Element),i(a=r(a=function(){function e(t){n(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){},e.prototype._init=function(e){var t=this;_.defer(function(){$(t.element).dropdown({action:"hide",context:e})})},e.prototype.bind=function(){this._init(this.value?this.value:window)},e}())||a)||a)}),define("resources/attributes/attr-ui-dropdown-hover",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiDropdownHoverCustomAttribute=void 0;var i,r,a;e.AttrUiDropdownHoverCustomAttribute=(i=(0,t.customAttribute)("ui-dropdown-hover"),r=(0,t.inject)(Element),i(a=r(a=function(){function e(t){n(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){},e.prototype._init=function(e){var t=this;_.defer(function(){$(t.element).dropdown({on:"hover",action:e})})},e.prototype.bind=function(){this._init(this.value?this.value:"hide")},e}())||a)||a)}),define("resources/attributes/attr-ui-dropdown",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiDropdownCustomAttribute=void 0;var i,r,a;e.AttrUiDropdownCustomAttribute=(i=(0,t.customAttribute)("ui-dropdown"),r=(0,t.inject)(Element),i(a=r(a=function(){function e(t){n(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){},e.prototype._init=function(e){var t=this;_.defer(function(){$(t.element).dropdown({action:e})})},e.prototype.bind=function(){this._init(this.value?this.value:"hide")},e}())||a)||a)}),define("resources/attributes/attr-ui-popup",["exports","aurelia-framework","aurelia-templating"],function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiPopupCustomAttribute=void 0;var r,a,o;e.AttrUiPopupCustomAttribute=(r=(0,n.customAttribute)("ui-popup"),a=(0,t.inject)(Element),r(o=a(o=function(){function e(t){i(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){var n=this;_.defer(function(){$(n.element).popup({on:"click",inline:!0,silent:!0,position:e?e:"bottom right",jitter:300,delay:{show:300,hide:300},onShow:function(){},onVisible:function(){}})})},e}())||o)||o)}),define("resources/attributes/attr-ui-tab",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUiTabCustomAttribute=void 0;var i,r,a;e.AttrUiTabCustomAttribute=(i=(0,t.customAttribute)("ui-tab"),r=(0,t.inject)(Element),i(a=r(a=function(){function e(t){n(this,e),this.element=t}return e.prototype.valueChanged=function(e,t){},e.prototype._init=function(){var e=this;_.defer(function(){$(e.element).find(".item").tab()})},e.prototype.bind=function(){this._init()},e}())||a)||a)}),define("resources/binding-behaviors/bb-key",["exports"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e){return e&&e.ctrlKey==this.keyState.ctrl&&e.altKey==this.keyState.alt&&e.shiftKey==this.keyState.shift&&e.keyCode==this.keyState.keyCode&&this.originalMethod(e),!0}Object.defineProperty(e,"__esModule",{value:!0});var i={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,backspace:8,delete:46};e.KeyBindingBehavior=function(){function e(){t(this,e)}return e.prototype.bind=function(e,t){var r=arguments.length<=2||void 0===arguments[2]?13:arguments[2],a=arguments[3],o="updateTarget";e.callSource?o="callSource":e.updateSource&&e.mode===bindingMode.twoWay&&(o="updateSource"),e.originalMethod=e[o],e.originalMethod.originalName=o,e[o]=n;var s=_.isInteger(r)?r:1===r.length?r.charCodeAt(0):i[r];_.isUndefined(s)&&console.warn("Unmapping keyCode for KeyBindingBehavior!"),e.keyState={ctrl:_.includes(a,"ctrl"),alt:_.includes(a,"alt"),shift:_.includes(a,"shift"),keyCode:s}},e.prototype.unbind=function(e,t){e[e.originalMethod.originalName]=e.originalMethod,e.originalMethod=null},e}()}),define("resources/value-converters/vc-common",["exports","color-hash","common/common-tags","jquery-format","timeago"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.DiffHtmlValueConverter=e.Nl2brValueConverter=e.LabelCssValueConverter=e.LabelColorValueConverter=e.ChatLabelFilterValueConverter=e.ChatLabelTipValueConverter=e.ChatLabelExistValueConverter=e.EmojiReplValueConverter=e.EmojiValueConverter=e.UserNameValueConverter=e.SortChannelsValueConverter=e.SortUsernamesValueConverter=e.SortUsersValueConverter=e.SortValueConverter=e.ParseMdValueConverter=e.TimeagoValueConverter=e.NumberValueConverter=e.DateValueConverter=e.LowerValueConverter=e.UpperValueConverter=void 0;var a=(i(t),i(n)),o=timeago();e.UpperValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return e&&e.toUpperCase()},e}(),e.LowerValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return e&&e.toLowerCase()},e}(),e.DateValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=arguments.length<=1||void 0===arguments[1]?"yyyy-MM-dd hh:mm:ss":arguments[1];return _.isInteger(_.toNumber(e))?$.format.date(new Date(e),t):e?e:""},e}(),e.NumberValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=arguments.length<=1||void 0===arguments[1]?"#,##0.00":arguments[1];return _.isNumber(_.toNumber(e))?$.format.number(e,t):e?e:""},e}(),e.TimeagoValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return e?o.format(e,"zh_CN"):""},e}(),e.ParseMdValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return e?marked(utils.preParse(e)):""},e}(),e.SortValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t){return _.isArray(e)?_.sortBy(e,t):e},e}(),e.SortUsersValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t){if(_.isArray(e)&&t){var n=_.find(e,{username:t});if(n)return[n].concat(_.reject(e,{username:t}))}return e},e}(),e.SortUsernamesValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t){return _.isArray(e)&&t&&_.includes(e,t)?[t].concat(_.without(e,t)):e},e}(),e.SortChannelsValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){if(_.isArray(e)){var t=_.find(e,{name:"all"});if(t)return[t].concat(_.reject(e,{name:"all"}))}return e},e}(),e.UserNameValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=_.find(window.tmsUsers,{username:e});return t?t.name:e},e}(),e.EmojiValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t){return emojify&&_.defer(function(){emojify.run(t)}),e},e}(),e.EmojiReplValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return emojify.replace(e)},e}(),e.ChatLabelExistValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e,t){return e&&0!=e.length&&_.some(e,function(e){return(!t||e.type==t)&&0!=e.voters.length})?"":"none"},e}(),e.ChatLabelTipValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=_.map(e.voters,function(e){return e.name?e.name:e.username});return""+_.join(t,",")+t.length+"人"+("Emoji"==e.type?"表示了":"标记了")+" ["+("Emoji"==e.type?e.description:e.name)+"]"},e}(),e.ChatLabelFilterValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=arguments.length<=1||void 0===arguments[1]?"Emoji":arguments[1];return _.filter(e,{type:t})},e}(),e.LabelColorValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=_.find(a.default,{value:e.name});return t?t.color:""},e}(),e.LabelCssValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){var t=colorHash.rgb(e.name),n="rgba("+t[0]+", "+t[1]+", "+t[2]+", 0.6)",i="rgba("+(255-t[0])+", "+(255-t[1])+", "+(255-t[2])+", 1)",r=_.find(a.default,{value:e.name});return r?"":{"background-color":n,color:i}},e}(),e.Nl2brValueConverter=function(){function e(){r(this,e)}return e.prototype.toView=function(e){return e?_.replace(e,/\n/g,"
    "):e},e}(),e.DiffHtmlValueConverter=function(){function e(){ +r(this,e)}return e.prototype.toView=function(e,t,n){return e?utils.diffHtml(e):e},e}()}),define("resources/elements/em-blog-comment-popup",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogCommentPopup=void 0;var i;e.EmBlogCommentPopup=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_COMMENT_POPUP_SHOW,function(e){t.id=e.id,t.target=e.target,$(t.target).popup({popup:t.popup,hoverable:!0,inline:!1,movePopup:!1,silent:!0,position:"bottom left",jitter:300,prefer:"opposite",delay:{show:300,hide:300},onShow:function(){$.get("/admin/blog/comment/get",{cid:t.id},function(e){e.success?t.comment=e.data:toastr.error(e.data,"加载失败!")})}}).popup("show")})}return e.prototype.unbind=function(){this.subscribe.dispose()},e}())||i}),define("resources/elements/em-blog-comment-share",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogCommentShare=void 0;var a,o,s,l,c;e.EmBlogCommentShare=(0,t.containerless)((o=function(){function e(){i(this,e),this.shares=[],this.desc="",n(this,"blog",s,this),n(this,"comment",l,this),n(this,"loginUser",c,this),this.basePath=utils.getBasePath()}return e.prototype.attached=function(){var e=this;$(this.searchRef).search({minCharacters:2,cache:!1,selectFirstResult:!0,showNoResults:!1,onSelect:function(t,n){t.item._id=_.uniqueId("share-item-"),t.item._type=t.item.username?"user":"channel",e.shares.push(t.item),_.defer(function(){$(e.inputSearchRef).val("")})},apiSettings:{onResponse:function(t){var n={results:[]};return $.each(t.data.users,function(t,i){_.find(_.filter(e.shares,function(e){return"user"==e._type}),{username:i.username})||n.results.push({item:i,title:' '+i.name+" ("+i.username+")"})}),$.each(t.data.channels,function(t,i){_.find(_.filter(e.shares,function(e){return"channel"==e._type}),{name:i.name})||n.results.push({item:i,title:' '+i.title+" ("+i.name+")"})}),n},url:"/admin/blog/share/to/search?search={query}"}}),$(this.shareRef).popup({on:"click",inline:!0,silent:!0,position:"bottom right",jitter:300,delay:{show:300,hide:300},onVisible:function(){$(e.inputSearchRef).focus()}})},e.prototype.shareSearchKeyupHandler=function(e){if(13===e.keyCode&&!$(this.searchRef).search("is visible")){var t=$(this.inputSearchRef).val();utils.isMail(t)&&(_.find(_.filter(this.shares,function(e){return"mail"==e._type}),{mail:t})||(this.shares.push({_id:_.uniqueId("share-item-"),_type:"mail",mail:t}),$(this.inputSearchRef).val("")))}},e.prototype.show=function(){$(this.shareRef).popup("show")},e.prototype.removeShareHandler=function(e){this.shares=_.reject(this.shares,{_id:e._id})},e.prototype.cancelHandler=function(){this._reset()},e.prototype._reset=function(){this.shares=[],this.desc="",$(this.inputSearchRef).val(""),$(this.shareRef).popup("hide")},e.prototype.shareHandler=function(){var e=this;return 0===this.shares.length?void toastr.error("请先指定博文评论分享用户或者频道或者邮箱!"):void(this.ajaxS=$.post("/admin/blog/comment/share",{basePath:utils.getBasePath(),href:this.basePath+"#/blog/"+this.blog.id+"?cid="+this.comment.id,id:this.comment.id,desc:this.desc,html:utils.md2html(this.comment.content,!0),users:_.chain(this.shares).filter(function(e){return"user"==e._type}).map("username").join().value(),channels:_.chain(this.shares).filter(function(e){return"channel"==e._type}).map("name").join().value(),mails:_.chain(this.shares).filter(function(e){return"mail"==e._type}).map("mail").join().value()},function(t,n,i){t.success?(e._reset(),toastr.success("博文评论分享成功!")):toastr.error(t.data,"博文评论分享失败!")}))},e}(),s=r(o.prototype,"blog",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"comment",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-blog-comment",["exports","aurelia-framework","simplemde","dropzone","common/common-emoji"],function(e,t,n,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogComment=void 0;var c,d,u,m=a(n),p=(a(i),a(r));e.EmBlogComment=(0,t.containerless)((d=function(){function e(){var t=this;s(this,e),this.comments=[],this.baseUrl=utils.getUrl(),this.basePath=utils.getBasePath(),this.offset=0,this.isSuper=nsCtx.isSuper,this.loginUser=nsCtx.loginUser,this.users=nsCtx.users,o(this,"blog",u,this),this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_COMMENT_MSG_INSERT,function(e){t.insertContent(""+e.content),t._scrollTo("b")})}return e.prototype.blogChanged=function(e,t){this._refresh()},e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype._refresh=function(){var e=this;this.blog&&$.get("/admin/blog/comment/query",{id:this.blog.id,page:0,size:1e3},function(t){t.success?!function(){e.comments=t.data.content;var n=utils.urlQuery("cid");n&&_.defer(function(){e.scrollToAfterImgLoaded(n)}),ea.publish(nsCons.EVENT_BLOG_COMMENT_CHANGED,{action:"query",comments:e.comments})}():toastr.error(t.data)})},e.prototype.attached=function(){var e=this;this._init(),$(".em-blog-comment .comments").on("mouseenter",'.markdown-body a[href*="#/blog/"]:not(.pp-not)',function(t){t.preventDefault();var n=t.currentTarget,i=utils.urlQuery("cid",$(n).attr("href"));if(e.hoverTimeoutRef){if(e.hoverUserTarget===n)return;clearTimeout(e.hoverTimeoutRef),e.hoverTimeoutRef=null}e.hoverUserTarget=n,e.hoverTimeoutRef=setTimeout(function(){i&&ea.publish(nsCons.EVENT_BLOG_COMMENT_POPUP_SHOW,{id:i,target:n}),e.hoverTimeoutRef=null},500)}),$(".em-blog-comment .comments").on("mouseleave",'.markdown-body a[href*="#/blog/"]:not(.pp-not)',function(t){t.preventDefault(),e.hoverTimeoutRef&&e.hoverUserTarget===t.currentTarget&&(clearTimeout(e.hoverTimeoutRef),e.hoverTimeoutRef=null)}),$(".em-blog-comment .comments").on("dblclick",".comment",function(t){if(t.ctrlKey){var n=$(t.currentTarget).attr("data-id"),i=$(t.currentTarget).find(".content > textarea"),r=_.find(e.comments,{id:+n});(e.isSuper||r.creator.username==e.loginUser.username)&&e.editHandler(r,i)}}),$(".em-blog-comment .comments").on("click",".comment",function(t){e.focusedComment=$(t.currentTarget)}),this.initHotkeys()},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","r",function(t){t.preventDefault(),$(".em-blog-content").scrollTo("max",120,{offset:0}),e.simplemde.codemirror.focus()}).bind("keydown","alt+up",function(t){t.preventDefault(),$(".em-blog-content").scrollTo(e.getScrollTargetComment(!0),120,{offset:0})}).bind("keydown","alt+down",function(t){t.preventDefault(),$(".em-blog-content").scrollTo(e.getScrollTargetComment(),120,{offset:0})})},e.prototype.getScrollTargetComment=function(e){if(e)if(this.focusedComment&&1===this.focusedComment.size()){var t=this.focusedComment.find("> a.em-user-avatar");if(utils.isElementInViewport(t)){var n=this.focusedComment.prev(".comment");1===n.size()&&(this.focusedComment=n)}}else this.focusedComment=$(this.blogCommentsRef).children(".comment:first");else if(this.focusedComment&&1===this.focusedComment.size()){var i=this.focusedComment.next(".comment");1===i.size()&&(this.focusedComment=i)}else this.focusedComment=$(this.blogCommentsRef).children(".comment:last");return this.focusedComment},e.prototype._init=function(){var e=this;this.simplemde=new m.default({element:this.commentRef,spellChecker:!1,status:!1,toolbar:[{name:"bold",action:m.default.toggleBold,className:"fa fa-bold",title:"粗体"},{name:"italic",action:m.default.toggleItalic,className:"fa fa-italic",title:"斜体"},{name:"strikethrough",action:m.default.toggleStrikethrough,className:"fa fa-strikethrough",title:"删除线"},{name:"heading",action:m.default.toggleHeadingSmaller,className:"fa fa-header",title:"标题"},{name:"heading-smaller",action:m.default.toggleHeadingSmaller,className:"fa fa-header fa-header-x fa-header-smaller",title:"变小标题"},{name:"heading-bigger",action:m.default.toggleHeadingBigger,className:"fa fa-header fa-header-x fa-header-bigger",title:"变大标题"},"|",{name:"code",action:m.default.toggleCodeBlock,className:"fa fa-code",title:"代码"},{name:"quote",action:m.default.toggleBlockquote,className:"fa fa-quote-left",title:"引用"},{name:"unordered-list",action:m.default.toggleUnorderedList,className:"fa fa-list-ul",title:"无序列表"},{name:"ordered-list",action:m.default.toggleOrderedList,className:"fa fa-list-ol",title:"有序列表"},{name:"tasks",action:function(t){e.insertContent("- [ ] 未完成任务\n- [x] 已完成任务")},className:"fa fa-check-square-o ",title:"任务列表"},{name:"details",action:function(t){e.insertContent("
    \n标题\n

    详情内容

    \n
    ")},className:"fa fa-play ",title:"折叠详情"},"|",{name:"link",action:m.default.drawLink,className:"fa fa-link",title:"创建链接"},{name:"image",action:m.default.drawImage,className:"fa fa-picture-o",title:"插入图片"},{name:"table",action:m.default.drawTable,className:"fa fa-table",title:"插入表格"},{name:"horizontal-rule",action:m.default.drawHorizontalRule,className:"fa fa-minus",title:"插入水平分割线"},"|",{name:"upload",action:function(e){},className:"fa fa-upload",title:"上传文件"},"|",{name:"preview",action:m.default.togglePreview,className:"fa fa-eye no-disable",title:"切换预览"},{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown指南"}],insertTexts:{table:["","\n\n| 列1 | 列2 | 列3 |\n| ------ | ------ | ------ |\n| 文本 | 文本 | 文本 |\n\n"]},previewRender:function(e,t){return emojify&&(e=emojify.replace(e)),marked(utils.preParse(e))}}),this.simplemde.codemirror.on("keyup",function(t,n){n.ctrlKey&&13==n.keyCode?e.addHandler():27==n.keyCode&&e.simplemde.value("")}),this.$chatMsgInputRef=$(this.markdownRef).find(".CodeMirror textarea"),0===this.$chatMsgInputRef.size()&&(this.$chatMsgInputRef=$(this.markdownRef).find('.CodeMirror [contenteditable="true"]')),this.initPaste(),this.initTextcomplete(),this.initUploadDropzone($(".CodeMirror-wrap",this.markdownRef),function(){return e.$chatMsgInputRef},!1),this.initUploadDropzone($(".editor-toolbar .fa.fa-upload",this.markdownRef),function(){return e.$chatMsgInputRef},!0)},e.prototype.initTextcomplete=function(){var e=this;$(this.$chatMsgInputRef).textcomplete([{match:/(^|\s)@(\w*)$/,search:function(e,t){t($.map(nsCtx.users,function(t){return t.enabled&&t.username.indexOf(e)>=0?t.username:null}))},template:function(e,t){var n=_.find(nsCtx.users,{username:e});return n.name+" - "+n.mails+" ("+n.username+")"},replace:function(e){return"$1{~"+e+"}"}},{match:/(^|\s):([\+\-\w]*)$/,search:function(e,t){t($.map(p.default,function(t){return _.some(t.split("_"),function(t){return 0===t.indexOf(e)})?t:null}))},template:function(e,t){if("search"==e)return"表情查找 - :search";var n=":"+e+":";return emojify.replace(n)+" - "+n},replace:function(t){return e.tipsActionHandler(t)?"$1:"+t+": ":""}}],{appendTo:".tms-blog-comment-status-bar"}),this.simplemde.codemirror.on("keydown",function(t,n){_.includes([13,38,40],n.keyCode)&&e.isTipsShow()&&n.preventDefault()})},e.prototype.isTipsShow=function(){return 1===$(".tms-blog-comment-status-bar").find(".textcomplete-dropdown:visible").size()},e.prototype.tipsActionHandler=function(e){return"search"!=e||(_.delay(function(){utils.openNewWin(nsCons.STR_EMOJI_SEARCH_URL)},200),!1)},e.prototype.unbind=function(){this._reset()},e.prototype._reset=function(){this.blog=null,this.simplemde.value(""),this.simplemde.toTextArea(),this.simplemde=null},e.prototype.insertContent=function(e,t){try{var n=t?t.codemirror:this.simplemde.codemirror,i=n.getCursor();i&&(n.replaceRange(e,i,i),n.focus())}catch(e){console.log(e)}},e.prototype.replyHandler=function(e){this.insertContent("[[回复评论#"+e.id+"]("+this.baseUrl+"?cid="+e.id+"){~"+e.creator.username+"}]\n\n"),this._scrollTo("b")},e.prototype.removeHandler=function(e){var t=this;$.post("/admin/blog/comment/remove",{cid:e.id},function(n,i,r){n.success?(t.comments=_.reject(t.comments,{id:e.id}),toastr.success("博文评论移除成功!"),ea.publish(nsCons.EVENT_BLOG_COMMENT_CHANGED,{action:"removed",comments:t.comments})):toastr.error(n.data,"博文评论移除失败!")})},e.prototype.addHandler=function(){var e=this,t=this.simplemde.value();if(!$.trim(t))return this.simplemde.value(""),void toastr.error("评论内容不能为空!");if(!this.sending){this.sending=!0;var n=utils.md2html(t,!0),i=[nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[]);$.post("/admin/blog/comment/create",{basePath:utils.getBasePath(),id:this.blog.id,users:utils.parseUsernames(t,i).join(","),content:t,contentHtml:n},function(t,n,i){t.success?(e.comments=[].concat(e.comments,[t.data]),e.simplemde.value(""),toastr.success("博文评论提交成功!"),e.scrollToAfterImgLoaded("b"),ea.publish(nsCons.EVENT_BLOG_COMMENT_ADDED,{}),ea.publish(nsCons.EVENT_BLOG_COMMENT_CHANGED,{action:"created",comments:e.comments})):toastr.error(t.data,"博文评论提交失败!")}).always(function(){e.sending=!1})}},e.prototype.initPaste=function(){var e=this,t=void 0;t=this.$chatMsgInputRef.is("textarea")?$(this.$chatMsgInputRef).pastableTextarea():$(this.$chatMsgInputRef).pastableContenteditable(),t&&t.on("pasteImage",function(t,n){$.post("/admin/file/base64",{dataURL:n.dataURL,type:n.blob.type,toType:"Blog"},function(t,n,i){t.success&&e.insertContent("![{name}]({baseURL}{path}{uuidName})".replace(/\{name\}/g,t.data.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.data.path).replace(/\{uuidName\}/g,t.data.uuidName))})}).on("pasteImageError",function(e,t){toastr.error(t.message,"剪贴板粘贴图片错误!")})},e.prototype.initUploadDropzone=function(e,t,n){var i=this;$(e).dropzone({url:"/admin/file/upload",paramName:"file",clickable:!!n,dictDefaultMessage:"",maxFilesize:10,addRemoveLinks:!0,previewsContainer:".em-blog-comment .dropzone-previews",previewTemplate:$(".em-blog-comment .preview-template")[0].innerHTML,dictCancelUpload:"取消上传",dictCancelUploadConfirmation:"确定要取消上传吗?",dictFileTooBig:"文件过大({{filesize}}M),最大限制:{{maxFilesize}}M",init:function(){this.on("sending",function(e,n,i){t()?i.append("toType","Blog"):this.removeAllFiles(!0)}),this.on("success",function(e,t){t.success?($.each(t.data,function(e,t){"Image"==t.type?i.insertContent("![{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.path).replace(/\{uuidName\}/g,t.uuidName)):i.insertContent("[{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,"admin/file/download/").replace(/\{uuidName\}/g,t.id))}),toastr.success("上传成功!")):toastr.error(t.data,"上传失败!")}),this.on("error",function(e,t,n){toastr.error(t,"上传失败!")}),this.on("complete",function(e){this.removeFile(e)})}})},e.prototype.scrollToAfterImgLoaded=function(e){var t=this;_.defer(function(){new ImagesLoaded($(".em-blog-content")[0]).always(function(){t._scrollTo(e)}),t._scrollTo(e)})},e.prototype._scrollTo=function(e){"b"==e?$(".em-blog-content").scrollTo("max"):"t"==e?$(".em-blog-content").scrollTo(0):_.some(this.comments,{id:+e})?($(".em-blog-content").scrollTo('.tms-blog-comment.comment[data-id="'+e+'"]',{offset:this.offset}),$(".em-blog-content").find(".comment[data-id]").removeClass("active"),$(".em-blog-content").find(".comment[data-id="+e+"]").addClass("active")):($(".em-blog-content").scrollTo("max"),toastr.warning("博文评论["+e+"]不存在,可能已经被删除!"))},e.prototype.editHandler=function(e,t){$.get("/admin/blog/comment/get",{cid:e.id},function(n){n.success?(e.version!=n.data.version&&_.extend(e,n.data),e.isEditing=!0,e.contentOld=e.content,_.defer(function(){$(t).focus().select(),autosize.update(t)})):toastr.error(n.data)})},e.prototype.refreshHandler=function(e){$.get("/admin/blog/comment/get",{cid:e.id},function(t){e.version!=t.data.version?(_.extend(e,t.data),toastr.success("刷新同步成功!")):toastr.info("博文评论内容暂无变更!")})},e.prototype.eidtKeydownHandler=function(e,t,n){return!this.sending&&(e.ctrlKey&&13===e.keyCode?(this.editSave(t,n),!1):e.ctrlKey&&85===e.keyCode?($(n).next(".tms-blog-comment-edit-actions").find(".upload").click(),!1):(27===e.keyCode&&this.editCancelHandler(e,t,n),!0))},e.prototype.editOkHandler=function(e,t,n){this.editSave(t,n),t.isEditing=!1},e.prototype.editCancelHandler=function(e,t,n){t.content=t.contentOld,$(n).val(t.content),t.isEditing=!1},e.prototype.editSave=function(e,t){var n=this;this.sending=!0,e.content=$(t).val();var i=utils.md2html(e.content,!0),r=(utils.md2html(e.contentOld,!0),[nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[]));$.post("/admin/blog/comment/update",{basePath:utils.getBasePath(),id:this.blog.id,cid:e.id,version:e.version,users:utils.parseUsernames(e.content,r).join(","),content:e.content,contentHtml:i,diff:utils.diffS(e.contentOld,e.content)},function(t,n,i){t.success?(toastr.success("博文评论更新成功!"),e.isEditing=!1,e.version=t.data.version):toastr.error(t.data,"博文评论更新失败!")}).always(function(){n.sending=!1})},e.prototype.isZanDone=function(e){var t=e.voteZan;return!!t&&t.split(",").includes(this.loginUser.username)},e.prototype.rateHandler=function(e){$.post("/admin/blog/comment/vote",{cid:e.id,url:utils.getBasePath(),contentHtml:utils.md2html(e.content,!0),type:this.isZanDone(e)?"Cai":"Zan"},function(t,n,i){t.success?_.extend(e,t.data):toastr.error(t.data,"博文投票失败!")})},e.prototype.gotoTopHandler=function(){$(".em-blog-content").scrollTo(0,120)},e}(),u=l(d.prototype,"blog",[t.bindable],{enumerable:!0,initializer:null}),c=d))||c}),define("resources/elements/em-blog-content",["exports","aurelia-framework","clipboard-js","clipboard"],function(e,t,n,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogContent=void 0;var o,s=r(n),l=r(i);e.EmBlogContent=(0,t.containerless)(o=function(){function e(){var t=this;a(this,e),this.loginUser=nsCtx.loginUser,this.isSuper=nsCtx.isSuper,this.isAdmin=nsCtx.isAdmin,this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_SWITCH,function(e){t.getBlog(),ea.publish(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,{isHide:!0})}),this.subscribe2=ea.subscribe(nsCons.EVENT_BLOG_CHANGED,function(e){"updated"==e.action&&(_.extend(t.blog,e.blog),_.defer(function(){return t.catalogHandler(!0)}))}),this.subscribe3=ea.subscribe(nsCons.EVENT_BLOG_COMMENT_ADDED,function(e){t.blogFollower||t.getFollower()}),this.subscribe4=ea.subscribe(nsCons.EVENT_BLOG_COMMENT_CHANGED,function(e){t.comments=e.comments}),this.throttleCreateHandler=_.throttle(function(){t.createHandler()},1e3,{trailing:!1}),this.throttleEditHandler=_.throttle(function(){t.editHandler()},1e3,{trailing:!1}),this.throttleCopyHandler=_.throttle(function(){t.copyHandler()},1e3,{trailing:!1})}return e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe2.dispose(),this.subscribe3.dispose(),this.subscribe4.dispose()},e.prototype.attached=function(){var e=this;this.getBlog(),new l.default(".em-blog-content .tms-clipboard").on("success",function(e){toastr.success("复制到剪贴板成功!")}).on("error",function(e){toastr.error("复制到剪贴板失败!")}),$(".em-blog-content").on("click","code[data-code]",function(e){e.ctrlKey&&(e.stopImmediatePropagation(),e.preventDefault(),s.default.copy($(e.currentTarget).attr("data-code")).then(function(){toastr.success("复制到剪贴板成功!")},function(e){toastr.error("复制到剪贴板失败!")}))}),$(".em-blog-content").on("click",".pre-code-wrapper",function(e){e.ctrlKey&&(e.stopImmediatePropagation(),e.preventDefault(),s.default.copy($(e.currentTarget).find("i[data-clipboard-text]").attr("data-clipboard-text")).then(function(){toastr.success("复制到剪贴板成功!")},function(e){toastr.error("复制到剪贴板失败!")}))}),$(".em-blog-right-sidebar").on("click",".panel-blog-dir .wiki-dir-item",function(e){e.preventDefault(),$(window).width()<=768&&ea.publish(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,{isHide:!0}),$(".em-blog-content").scrollTo("#"+$(e.currentTarget).attr("data-id"),200,{offset:0})}),$(this.mkbodyRef).on("dblclick",function(t){t.ctrlKey&&(e.blog.openEdit||e.isSuper||e.blog.creator.username==e.loginUser.username)&&e.editHandler()}),$(".em-blog-content").scroll(_.throttle(function(t){try{var n=$(".em-blog-content")[0].scrollHeight,i=$(".em-blog-content")[0].scrollTop,r=1*i/(n-$(".em-blog-content").outerHeight());e.progressWidth=$(".em-blog-content").outerWidth()*r,e.fixDirItem()}catch(t){e.progressWidth=0}},10)),$(this.feedRef).on("mouseenter",'.event a[href*="#/blog/"]:not(.pp-not)',function(t){t.preventDefault();var n=t.currentTarget,i=utils.urlQuery("cid",$(n).attr("href"));if(e.hoverTimeoutRef){if(e.hoverUserTarget===n)return;clearTimeout(e.hoverTimeoutRef),e.hoverTimeoutRef=null}e.hoverUserTarget=n,e.hoverTimeoutRef=setTimeout(function(){i&&ea.publish(nsCons.EVENT_BLOG_COMMENT_POPUP_SHOW,{id:i,target:n}),e.hoverTimeoutRef=null},500)}),$(this.feedRef).on("mouseleave",'.event a[href*="#/blog/"]:not(.pp-not)',function(t){t.preventDefault(),e.hoverTimeoutRef&&e.hoverUserTarget===t.currentTarget&&(clearTimeout(e.hoverTimeoutRef),e.hoverTimeoutRef=null)}),this.initHotkeys()},e.prototype.fixDirItem=function e(){var t=null,n=null;if(_.each(this.dirItemIds,function(e){if(n){if(utils.isElementInViewport($("#"+e))&&!utils.isElementInViewport($("#"+n)))return t=e,!1}else if(utils.isElementInViewport($("#"+e)))return t=e,!1}),t){var e=$(".em-blog-right-sidebar .panel-blog-dir").find('.wiki-dir-item[data-id="'+t+'"]');e&&($(".em-blog-right-sidebar .panel-blog-dir").find(".wiki-dir-item[data-id]").removeClass("active"),e.addClass("active"),$(".em-blog-right-sidebar .scrollbar-macosx.scroll-content.scroll-scrolly_visible").scrollTo(e,10,{offset:-120}))}},e.prototype.initHotkeys=function(){var e=this;try{$(document).bind("keyup","e",function(t){t.preventDefault(),(e.blog.openEdit||e.isSuper||e.blog.creator.username==e.loginUser.username)&&e.throttleEditHandler()}).bind("keyup","c",function(t){t.preventDefault(),e.throttleCreateHandler()}).bind("keydown","d",function(t){t.preventDefault(),e.dir&&e.catalogHandler()}).bind("keydown","s",function(t){t.preventDefault(),e.blogShareVm.show()}).bind("keydown","f",function(t){t.preventDefault(),e.followerHandler()}).bind("keydown","t",function(e){e.preventDefault(),$(".em-blog-content").scrollTo(0,200,{offset:0})}).bind("keydown","b",function(e){e.preventDefault(),$(".em-blog-content").scrollTo("max",200,{offset:0})}).bind("keydown","alt+r",function(t){t.preventDefault(),e.refreshHandler()}).bind("keydown","alt+h",function(t){t.preventDefault(),e.historyHandler()}).bind("keydown","alt+l",function(t){t.preventDefault(),e.authHandler()}).bind("keydown","alt+s",function(t){t.preventDefault(),e.stowHandler()}).bind("keydown","alt+c",function(t){t.preventDefault(),e.throttleCopyHandler()}).bind("keydown","alt+m",function(t){t.preventDefault(),e.updateSpaceHandler()}).bind("keydown","alt+o",function(t){t.preventDefault(),e.openEditHandler()}).bind("keydown","alt+ctrl+d",function(t){t.preventDefault(),e.deleteHandler()})}catch(e){console.log(e)}},e.prototype._dir=function(){var e=this;return this.dir=utils.dir($(this.mkbodyRef),"tms-blog-dir-item-"),this.dirItemIds=[],this.dir&&$(this.dir).find("a.item.wiki-dir-item").each(function(t,n){e.dirItemIds.push($(n).attr("data-id"))}),this.dir},e.prototype.getMyLog=function(){var e=this;this.ajaxS=$.get("/admin/blog/log/my",function(t){t.success?e.logs=t.data:toastr.error(t.data)})},e.prototype.getBlog=function(){var e=this;return this.progressWidth=0,!nsCtx.blogId||isNaN(new Number(nsCtx.blogId))?(this.blog=null,void this.getMyLog()):(this.getStow(),this.getFollower(),$.get("/admin/blog/get",{id:nsCtx.blogId},function(t){t.success?(e.blog=t.data,ea.publish(nsCons.EVENT_BLOG_VIEW_CHANGED,e.blog),_.defer(function(){return e.catalogHandler(!0)}),e.getMyTags()):toastr.error(t.data,"获取博文失败!")}))},e.prototype.getMyTags=function(){var e=this;$.get("/admin/blog/tag/my",function(t){var n=[];t.success&&(n=t.data),e.tags=_.unionBy(n,e.blog.tags,"name"),_.defer(function(){var t=_.map(e.blog.tags,"name");$(e.tagsRef).dropdown({}).dropdown("clear").dropdown("set selected",t).dropdown({allowAdditions:!0,onAdd:function(t,n,i){$.post("/admin/blog/tag/add",{id:e.blog.id,tags:t},function(e,t,n){e.success?toastr.success("添加标签成功!"):toastr.error(e.data,"添加标签失败!")})},onLabelRemove:function(t){$.post("/admin/blog/tag/remove",{id:e.blog.id,tags:t},function(e,t,n){e.success?toastr.success("移除标签成功!"):toastr.error(e.data,"移除标签失败!")})}})})})},e.prototype.getStow=function(){var e=this;$.get("/admin/blog/stow/get",{id:nsCtx.blogId},function(t){t.success?e.blogStow=t.data:toastr.error(t.data)})},e.prototype.getFollower=function(){var e=this;$.get("/admin/blog/follower/get",{id:nsCtx.blogId},function(t){t.success?e.blogFollower=t.data:toastr.error(t.data)})},e.prototype.editHandler=function(){nsCtx.isModaalOpening||ea.publish(nsCons.EVENT_BLOG_ACTION,{action:"edit",id:this.blog.id})},e.prototype.deleteHandler=function(){var e=this;(this.isSuper||this.blog.creator.username==this.loginUser.username)&&this.emConfirmModal.show({title:"删除确认",content:"确认要删除该博文吗?",onapprove:function(){$.post("/admin/blog/delete",{id:e.blog.id},function(t,n,i){t.success?(toastr.success("删除博文成功!"),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"deleted",blog:e.blog}),ea.publish(nsCons.EVENT_APP_ROUTER_NAVIGATE,{to:"#/blog"})):toastr.error(t.data,"删除博文失败!")})}})},e.prototype.createHandler=function(){nsCtx.isModaalOpening||$('a[href="#modaal-blog-write"]').click()},e.prototype.updateSpaceHandler=function(){(this.isSuper||this.blog.creator.username==this.loginUser.username)&&this.blogSpaceUpdateVm.show(this.blog)},e.prototype.updatePrivatedHandler=function(){var e=this;$.post("/admin/blog/privated/update",{id:this.blog.id,privated:!this.blog.privated},function(t,n,i){t.success?(_.extend(e.blog,t.data),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:e.blog}),toastr.success("更新博文可见性成功!")):toastr.error(t.data,"更新博文可见性失败!")})},e.prototype.isZanDone=function(){var e=this.blog.voteZan;return!!e&&e.split(",").includes(this.loginUser.username)},e.prototype.rateHandler=function(){var e=this;$.post("/admin/blog/vote",{id:this.blog.id,url:utils.getBasePath(),contentHtml:utils.md2html(this.blog.content,!0),type:this.isZanDone()?"Cai":"Zan"},function(t,n,i){t.success?_.extend(e.blog,t.data):toastr.error(t.data,"博文投票失败!")})},e.prototype.openEditHandler=function(){var e=this;(this.isSuper||this.blog.creator.username==this.loginUser.username)&&$.post("/admin/blog/openEdit",{id:this.blog.id,open:!this.blog.openEdit},function(t,n,i){t.success?(e.blog.openEdit=!e.blog.openEdit,ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:e.blog}),toastr.success(e.blog.openEdit?"开放协作编辑成功!":"关闭协作编辑成功!")):toastr.error(t.data,"协作编辑操作失败!")})},e.prototype.refreshHandler=function(){var e=this.getBlog();e&&e.done(function(){toastr.success("刷新操作成功!")})},e.prototype.historyHandler=function(){this.blogHistoryVm.show(this.blog)},e.prototype.catalogHandler=function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0];ea.publish(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,{justRefresh:e,action:"dir",dir:this._dir()})},e.prototype.authHandler=function(){(this.isSuper||this.blog.creator.username==this.loginUser.username)&&this.blogSpaceAuthVm.show("blog",this.blog)},e.prototype.copyHandler=function(){nsCtx.isModaalOpening||ea.publish(nsCons.EVENT_BLOG_ACTION,{action:"copy",id:this.blog.id})},e.prototype.stowHandler=function(){var e=this;this.blogStow?$.post("/admin/blog/stow/remove",{sid:this.blogStow.id},function(t,n,i){t.success?(ea.publish(nsCons.EVENT_BLOG_STOW_CHANGED,{action:"remove",data:e.blogStow}),e.blogStow=null,toastr.success("删除博文收藏成功!")):toastr.error(t.data)}):$.post("/admin/blog/stow/add",{id:this.blog.id},function(t,n,i){t.success?(e.blogStow=t.data,ea.publish(nsCons.EVENT_BLOG_STOW_CHANGED,{action:"add",data:e.blogStow}),toastr.success("博文收藏成功!")):toastr.error(t.data)})},e.prototype.followerHandler=function(){var e=this;this.blogFollower?$.post("/admin/blog/follower/remove",{fid:this.blogFollower.id},function(t,n,i){t.success?(e.blogFollower=null,toastr.success("取消博文关注成功!")):toastr.error(t.data)}):$.post("/admin/blog/follower/add",{id:this.blog.id},function(t,n,i){t.success?(e.blogFollower=t.data,toastr.success("博文关注成功!")):toastr.error(t.data)})},e.prototype.dimmerHandler=function(){ea.publish(nsCons.EVENT_BLOG_LEFT_SIDEBAR_TOGGLE,{isHide:!0}),ea.publish(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,{isHide:!0})},e.prototype.commentsHandler=function(){$(".em-blog-content").scrollTo(".em-blog-comment ",120,{offset:-16})},e.prototype.openFeedEventItemHandler=function(e){e.isOpen=!e.isOpen},e.prototype.feedEventItemMouseleaveHandler=function(e){e.isOpen=!1},e.prototype.refreshFeedHandler=function(){this.getMyLog()},e}())||o}),define("resources/elements/em-blog-history-diff",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogHistoryDiff=void 0;var i;e.EmBlogHistoryDiff=(0,t.containerless)(i=function(){function e(){n(this,e)}return e.prototype.showHandler=function(){},e.prototype.approveHandler=function(){},e.prototype.show=function(e,t,n,i){this.f=e,this.s=t,this.fIndex=n,this.sIndex=i,this.diffHtml=utils.diffS(t.content,e.content),this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e}())||i}),define("resources/elements/em-blog-history-view",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogHistoryView=void 0;var i;e.EmBlogHistoryView=(0,t.containerless)(i=function(){function e(){n(this,e),this.isSuper=nsCtx.isSuper,this.loginUser=nsCtx.loginUser}return e.prototype.showHandler=function(){},e.prototype.approveHandler=function(){},e.prototype.show=function(e,t,n){this.blogHistory=e,this.blog=e.blog,this.ver=t,this.isCurrentVer=n,this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e.prototype.restoreHandler=function(){var e=this;this.ajax1=$.post("/admin/blog/history/restore",{hid:this.blogHistory.id},function(t,n,i){t.success?(ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:t.data}),ea.publish(nsCons.EVENT_BLOG_HISTORY_CHANGED,{}),toastr.success("博文历史记录还原成功!"),e.emModal.hide()):toastr.error(t.data,"博文历史记录还原失败!")})},e}())||i}),define("resources/elements/em-blog-history",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function"); +}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogHistory=void 0;var i;e.EmBlogHistory=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.isSuper=nsCtx.isSuper,this.loginUser=nsCtx.loginUser,this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_HISTORY_CHANGED,function(e){t.refreshHistory()})}return e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype.viewHistoryHandler=function(e,t,n){this.blogHistoryViewVm.show(e,t,n)},e.prototype.refreshHistory=function(){var e=this;$.get("/admin/blog/history/list",{id:this.blog.id},function(t){t.success?(e.oldHistories=t.data,e.histories=_.reverse(_.clone(t.data))):toastr.error(t.data,"获取博文历史失败!")})},e.prototype.showHandler=function(){this.refreshHistory()},e.prototype.approveHandler=function(){},e.prototype.show=function(e){this.blog=e,this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e.prototype.restoreHandler=function(e){var t=this;this.ajax1=$.post("/admin/blog/history/restore",{hid:e.id},function(e,n,i){e.success?(ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:e.data}),t.refreshHistory(),toastr.success("博文历史记录还原成功!")):toastr.error(e.data,"博文历史记录还原失败!")})},e.prototype.removeHandler=function(e){var t=this;this.ajax2=$.post("/admin/blog/history/remove",{hid:e.id},function(e,n,i){e.success?(t.refreshHistory(),toastr.success("博文历史记录删除成功!")):toastr.error(e.data,"博文历史记录删除失败!")})},e.prototype.diffHandler=function(){var e=[].concat(this.oldHistories,[this.blog]),t=_.filter(e,"checked");if(t&&t.length>1){var n=t[t.length-1],i=t[t.length-2],r=_.indexOf(e,n),a=_.indexOf(e,i);this.blogHistoryDiffVm.show(n,i,r,a)}else toastr.error("请先选择要比较版本")},e}())||i}),define("resources/elements/em-blog-left-sidebar",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogLeftSidebar=void 0;var i;e.EmBlogLeftSidebar=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.isHide=!0,this.blogs=[],this.spaces=[],this.noSpaceBlogs=[],this.loginUser=nsCtx.loginUser,this.isSuper=nsCtx.isSuper,this.filter="",this.spaceStow={name:"我的收藏",open:!1},this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_CHANGED,function(e){"created"==e.action?(t.blogs=[e.blog].concat(t.blogs),t.calcTree(),ea.publish(nsCons.EVENT_APP_ROUTER_NAVIGATE,{to:"#/blog/"+e.blog.id})):"updated"==e.action?(_.extend(_.find(t.blogs,{id:e.blog.id}),e.blog),t.calcTree()):"deleted"==e.action&&(t.blogStows=_.reject(t.blogStows,function(t){return t.blog.id==e.blog.id}),t.blogs=_.reject(t.blogs,{id:e.blog.id}),t.calcTree())}),this.subscribe4=ea.subscribe(nsCons.EVENT_SPACE_CHANGED,function(e){"created"==e.action?(t.spaces=[e.space].concat(t.spaces),t.calcTree()):"updated"==e.action&&(_.extend(_.find(t.spaces,{id:e.space.id}),e.space),t.calcTree())}),this.subscribe2=ea.subscribe(nsCons.EVENT_BLOG_SWITCH,function(e){t.blog=_.find(t.blogs,{id:+nsCtx.blogId})}),this.subscribe3=ea.subscribe(nsCons.EVENT_BLOG_TOGGLE_SIDEBAR,function(e){t.isHide=e}),this.subscribe5=ea.subscribe(nsCons.EVENT_BLOG_STOW_CHANGED,function(e){t._refreshBlogStows()}),this._doFilerDebounce=_.debounce(function(){return t._doFiler()},120,{leading:!0})}return e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe2.dispose(),this.subscribe3.dispose(),this.subscribe4.dispose(),this.subscribe5.dispose()},e.prototype.attached=function(){this.refresh(),this._refreshBlogStows()},e.prototype._refreshBlogStows=function(){var e=this;$.get("/admin/blog/stow/listMy",function(t){t.success?e.blogStows=t.data:toastr.error(t.data)})},e.prototype.refresh=function(){var e=this;$.when(this.getSpaces(),this.getBlogTree()).done(function(){e.calcTree()})},e.prototype.calcTree=function(){var e=this;this.noSpaceBlogs=[],$.each(this.spaces,function(t,n){n.blogs=[],$.each(e.blogs,function(e,t){t.space&&t.space.id===n.id&&(n.blogs.push(t),nsCtx.blogId==t.id&&(n.open=!0))})}),this.noSpaceBlogs=_.filter(this.blogs,function(e){return!e.space})},e.prototype.spaceToggleHandler=function(e){e.open=!e.open},e.prototype.getBlogTree=function(){var e=this;return $.get("/admin/blog/listMy",function(t){t.success&&(e.blogs=t.data,e.blog=_.find(e.blogs,{id:+nsCtx.blogId}))})},e.prototype.getSpaces=function(){var e=this;return $.get("/admin/space/listMy",{},function(t){t.success&&(e.spaces=t.data)})},e.prototype.editSpaceHandler=function(e){this.spaceEditVm.show(e)},e.prototype.delSpaceHandler=function(e){var t=this;this.confirmMd.show({onapprove:function(){$.post("/admin/space/delete",{id:e.id},function(n){n.success?(toastr.success("删除空间成功!"),t.spaces=_.reject(t.spaces,{id:e.id})):toastr.error(n.data,"删除空间失败!")})}})},e.prototype.authSpaceHandler=function(e){this.blogSpaceAuthVm.show("space",e)},e.prototype.clearFilterHandler=function(){this.filter="",this._doFilerDebounce()},e.prototype.filterKeyupHandler=function(e){this._doFilerDebounce()},e.prototype._doFiler=function(){var e=this;_.each(this.blogs,function(t){_.includes(_.toLower(t.title),_.toLower(e.filter))?t._hidden=!1:t._hidden=!0}),_.each(this.spaces,function(e){_.some(e.blogs,function(e){return!e._hidden})?(e._hidden=!1,e.open=!0):e._hidden=!0}),_.each(this.blogStows,function(t){_.includes(_.toLower(t.blog.title),_.toLower(e.filter))?t._hidden=!1:t._hidden=!0}),_.some(this.blogStows,function(e){return!e._hidden})?this.spaceStow.open=!0:this.spaceStow.open=!1,this.filter||(_.each(this.spaces,function(e){_.find(e.blogs,{id:+nsCtx.blogId})?e.open=!0:e.open=!1}),this.spaceStow.open=!1)},e}())||i}),define("resources/elements/em-blog-right-sidebar",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogRightSidebar=void 0;var i;e.EmBlogRightSidebar=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_RIGHT_SIDEBAR_TOGGLE,function(e){"dir"==e.action&&$(t.dirRef).empty().append(e.dir)})}return e.prototype.unbind=function(){this.subscribe.dispose()},e}())||i}),define("resources/elements/em-blog-save",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogSave=void 0;var a,o,s;e.EmBlogSave=(0,t.containerless)((o=function(){function e(){var t=this;i(this,e),n(this,"trigger",s,this),this.loginUser=nsCtx.loginUser,this.isSuper=nsCtx.isSuper,this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_SAVE,function(e){t.blogInfo=e,t.show()})}return e.prototype.triggerChanged=function(){var e=this;$(this.trigger).click(function(t){e.show()})},e.prototype.attached=function(){$(this.chk).checkbox()},e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype.show=function(){this.emModal.show({hideOnApprove:!1,autoDimmer:!0})},e.prototype.showHandler=function(){var e=this;$(this.chk).checkbox("set unchecked"),$.get("/admin/space/listMy",function(t){t.success&&(e.spaces=t.data)})},e.prototype.approveHandler=function(e){var t=this,n=utils.md2html(this.blogInfo.content,!0),i=[nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[]),r=$(this.spacesRef).dropdown("get value");localStorage&&localStorage.setItem(nsCons.KEY_BLOG_COMMON_SPACE,r),$.post("/admin/blog/create",{url:utils.getBasePath(),usernames:utils.parseUsernames(this.blogInfo.content,i).join(","),title:this.blogInfo.title,content:this.blogInfo.content,spaceId:r,privated:$(this.chk).checkbox("is checked"),contentHtml:n},function(n,i,r){n.success?(t.blog=n.data,toastr.success("博文保存成功!"),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"created",blog:t.blog}),e.hide(),$('a[href="#modaal-blog-write"]').modaal("close")):toastr.error(n.data,"博文保存失败!")})},e.prototype.initSpacesHandler=function(e){var t=this;e&&_.defer(function(){if($(t.spacesRef).dropdown("clear"),localStorage){var e=localStorage.getItem(nsCons.KEY_BLOG_COMMON_SPACE);e&&$(t.spacesRef).dropdown("set selected",e)}})},e}(),s=r(o.prototype,"trigger",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-blog-share",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogShare=void 0;var a,o,s;e.EmBlogShare=(0,t.containerless)((o=function(){function e(){i(this,e),this.shares=[],this.desc="",n(this,"blog",s,this),this.basePath=utils.getBasePath()}return e.prototype.attached=function(){var e=this;$(this.searchRef).search({minCharacters:2,cache:!1,selectFirstResult:!0,showNoResults:!1,onSelect:function(t,n){t.item._id=_.uniqueId("share-item-"),t.item._type=t.item.username?"user":"channel",e.shares.push(t.item),_.defer(function(){$(e.inputSearchRef).val("")})},apiSettings:{onResponse:function(t){var n={results:[]};return $.each(t.data.users,function(t,i){_.find(_.filter(e.shares,function(e){return"user"==e._type}),{username:i.username})||n.results.push({item:i,title:' '+i.name+" ("+i.username+")"})}),$.each(t.data.channels,function(t,i){_.find(_.filter(e.shares,function(e){return"channel"==e._type}),{name:i.name})||n.results.push({item:i,title:' '+i.title+" ("+i.name+")"})}),n},url:"/admin/blog/share/to/search?search={query}"}}),$(this.shareRef).popup({on:"click",inline:!0,silent:!0,position:"bottom right",jitter:300,delay:{show:300,hide:300},onVisible:function(){$(e.inputSearchRef).focus()}})},e.prototype.shareSearchKeyupHandler=function(e){if(13===e.keyCode&&!$(this.searchRef).search("is visible")){var t=$(this.inputSearchRef).val();utils.isMail(t)&&(_.find(_.filter(this.shares,function(e){return"mail"==e._type}),{mail:t})||(this.shares.push({_id:_.uniqueId("share-item-"),_type:"mail",mail:t}),$(this.inputSearchRef).val("")))}},e.prototype.show=function(){$(this.shareRef).popup("show")},e.prototype.removeShareHandler=function(e){this.shares=_.reject(this.shares,{_id:e._id})},e.prototype.cancelHandler=function(){this._reset()},e.prototype._reset=function(){this.shares=[],this.desc="",$(this.inputSearchRef).val(""),$(this.shareRef).popup("hide")},e.prototype.shareHandler=function(){var e=this;return 0===this.shares.length?void toastr.error("请先指定博文分享用户或者频道或者邮箱!"):void(this.ajaxS=$.post("/admin/blog/share",{basePath:utils.getBasePath(),id:this.blog.id,desc:this.desc,title:this.blog.title,html:utils.md2html(this.blog.content,!0),users:_.chain(this.shares).filter(function(e){return"user"==e._type}).map("username").join().value(),channels:_.chain(this.shares).filter(function(e){return"channel"==e._type}).map("name").join().value(),mails:_.chain(this.shares).filter(function(e){return"mail"==e._type}).map("mail").join().value()},function(t,n,i){t.success?(e._reset(),toastr.success("博文分享成功!")):toastr.error(t.data,"博文分享失败!")}))},e}(),s=r(o.prototype,"blog",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-blog-space-auth",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogSpaceAuth=void 0;var i;e.EmBlogSpaceAuth=(0,t.containerless)(i=function(){function e(){n(this,e),this.shares=[]}return e.prototype._isBlog=function(){return"blog"==this.type},e.prototype.attached=function(){var e=this;$(this.chk).checkbox({onChange:function(){e._isBlog()?$.post("/admin/blog/privated/update",{id:e.authO.id,privated:$(e.chk).checkbox("is checked")},function(t,n,i){t.success?(_.extend(e.authO,t.data),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:t.data}),toastr.success("更新博文可见性成功!")):toastr.error(t.data,"更新博文可见性失败!")}):$.post("/admin/space/update",{id:e.authO.id,privated:$(e.chk).checkbox("is checked")},function(t,n,i){t.success?(_.extend(e.authO,t.data),ea.publish(nsCons.EVENT_SPACE_CHANGED,{action:"updated",space:t.data}),toastr.success("更新空间可见性成功!")):toastr.error(t.data,"更新空间可见性失败!")})}}),$(this.chk2).checkbox({onChange:function(){e._isBlog()?$.post("/admin/blog/opened/update",{id:e.authO.id,opened:$(e.chk2).checkbox("is checked")},function(t,n,i){t.success?(_.extend(e.authO,t.data),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:t.data}),toastr.success("更新博文可见性成功!")):toastr.error(t.data,"更新博文可见性失败!")}):$.post("/admin/space/update",{id:e.authO.id,opened:$(e.chk2).checkbox("is checked")},function(t,n,i){t.success?(_.extend(e.authO,t.data),ea.publish(nsCons.EVENT_SPACE_CHANGED,{action:"updated",space:t.data}),toastr.success("更新空间可见性成功!")):toastr.error(t.data,"更新空间可见性失败!")})}}),$(this.searchRef).search({minCharacters:2,cache:!1,selectFirstResult:!0,onSelect:function(t,n){t.item._id=_.uniqueId("share-item-"),_.defer(function(){$(e.inputSearchRef).val("")});var i={id:e.authO.id};t.item.username?_.extend(i,{users:t.item.username}):_.extend(i,{channels:t.item.id}),e._isBlog()?$.post("/admin/blog/auth/add",i,function(n,i,r){n.success?(e.shares.push(t.item),e.authO.blogAuthorities=n.data.blogAuthorities):toastr.error(n.data)}):$.post("/admin/space/auth/add",i,function(n,i,r){n.success?(e.shares.push(t.item),e.authO.spaceAuthorities=n.data.spaceAuthorities):toastr.error(n.data)})},apiSettings:{onResponse:function(t){var n={results:[]};return $.each(t.data.users,function(t,i){_.find(e.shares,{username:i.username})||n.results.push({item:i,title:' '+i.name+" ("+i.username+")"})}),$.each(t.data.channels,function(t,i){_.find(_.filter(e.shares,function(e){return!e.username}),{name:i.name})||n.results.push({item:i,title:' '+i.title+" ("+i.name+")"})}),n},url:"/admin/blog/share/to/search?search={query}"}})},e.prototype.removeShareHandler=function(e){var t=this,n={id:this.authO.id};e.username?_.extend(n,{users:e.username}):_.extend(n,{channels:e.id}),this._isBlog()?$.post("/admin/blog/auth/remove",n,function(n,i,r){n.success?(t.shares=_.reject(t.shares,{_id:e._id}),t.authO.blogAuthorities=n.data.blogAuthorities):toastr.error(n.data)}):$.post("/admin/space/auth/remove",n,function(n,i,r){n.success?(t.shares=_.reject(t.shares,{_id:e._id}),t.authO.spaceAuthorities=n.data.spaceAuthorities):toastr.error(n.data)})},e.prototype._reset=function(){this.shares=[],$(this.inputSearchRef).val("")},e.prototype.show=function(e,t){this.type=e,this.authO=t,this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e.prototype.showHandler=function(){var e=this;this._reset(),$(this.chk).checkbox(this.authO.privated?"set checked":"set unchecked"),$(this.chk2).checkbox(this.authO.opened?"set checked":"set unchecked");var t=void 0;t=this._isBlog()?this.authO.blogAuthorities:this.authO.spaceAuthorities,_.forEach(t,function(t){var n=t.user?t.user:t.channel;n._id=_.uniqueId("share-item-"),e.shares.push(n)})},e.prototype.approveHandler=function(){},e}())||i}),define("resources/elements/em-blog-space-create",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogSpaceCreate=void 0;var i;e.EmBlogSpaceCreate=(0,t.containerless)(i=function(){function e(){n(this,e)}return e.prototype.attached=function(){$(this.chk).checkbox()},e.prototype.createHandler=function(){var e=this;this.ajax=$.post("/admin/space/create",{name:this.name,desc:this.desc,privated:$(this.chk).checkbox("is checked")},function(t,n,i){t.success?(e.name="",e.desc="",$(e.chk).checkbox("set unchecked"),toastr.success("空间创建成功!"),$(e.ppRef).popup("hide"),ea.publish(nsCons.EVENT_SPACE_CHANGED,{action:"created",space:t.data})):toastr.error(t.data,"空间创建失败!")})},e}())||i}),define("resources/elements/em-blog-space-edit",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogSpaceEdit=void 0;var i;e.EmBlogSpaceEdit=(0,t.containerless)(i=function(){function e(){n(this,e)}return e.prototype.attached=function(){$(this.chk).checkbox()},e.prototype.show=function(e){this.space=e,this.emModal.show({hideOnApprove:!1,autoDimmer:!0})},e.prototype.showHandler=function(){var e=this;$.get("/admin/space/get",{id:this.space.id},function(t){t.success&&(e.space=t.data,$(e.chk).checkbox(e.space.privated?"set checked":"set unchecked"))})},e.prototype.approveHandler=function(e){$.post("/admin/space/update",{id:this.space.id,name:this.space.name,desc:this.space.description,privated:$(this.chk).checkbox("is checked")},function(t,n,i){t.success?(toastr.success("空间更新成功!"),ea.publish(nsCons.EVENT_SPACE_CHANGED,{action:"updated",space:t.data}),e.hide()):toastr.error(t.data,"空间更新失败!")})},e}())||i}),define("resources/elements/em-blog-space-update",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogSpaceUpdate=void 0;var i;e.EmBlogSpaceUpdate=(0,t.containerless)(i=function(){function e(){n(this,e),this.loginUser=nsCtx.loginUser,this.isSuper=nsCtx.isSuper}return e.prototype.attached=function(){},e.prototype.show=function(e){this.blog=e,this.emModal.show({hideOnApprove:!1,autoDimmer:!0})},e.prototype.showHandler=function(){var e=this;$.get("/admin/space/listMy",function(t){t.success&&(e.spaces=t.data)})},e.prototype.approveHandler=function(e){var t=$(this.spacesRef).dropdown("get value");$.post("/admin/blog/space/update",{id:this.blog.id,sid:t?t:null},function(t,n,i){t.success?(toastr.success("博文空间更新成功!"),t.data.space||(t.data.space=null),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:t.data}),e.hide()):toastr.error(t.data,"博文空间更新失败!")})},e.prototype.initSpacesHandler=function(e){var t=this;e&&_.defer(function(){$(t.spacesRef).dropdown("clear").dropdown("set selected",t.blog.space?t.blog.space.id+"":"")})},e}())||i}),define("resources/elements/em-blog-top-menu",["exports","aurelia-framework","common/common-search","timeago"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogTopMenu=void 0;var a,o=i(n),s=timeago();e.EmBlogTopMenu=(0,t.containerless)(a=function(){function e(){var t=this;r(this,e),this.isHide=!0,this.loginUser=nsCtx.loginUser,this.recentSearchs={blogs:[],comments:[]},this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_SWITCH,function(e){t.toggleHandler(!0)}),this.subscribe=ea.subscribe(nsCons.EVENT_BLOG_LEFT_SIDEBAR_TOGGLE,function(e){t.toggleHandler(e.isHide)})}return e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype.attached=function(){var e=this;$(this.logoRef).on("mouseenter",function(t){$(e.logoRef).animateCss("flip")}),$(this.searchRef).search({type:"category",minCharacters:2,selectFirstResult:!0,onSelect:function(t,n){return $(e.searchRef).search("hide results"),_.defer(function(){$(e.searchRef).find("input").blur(),ea.publish(nsCons.EVENT_APP_ROUTER_NAVIGATE,{to:t.url})}),o.default.add(t),!1},apiSettings:{onResponse:function(e){var t={results:{blogs:{name:"博文 ("+e.data.blogs.length+")",results:[]},comments:{name:"评论 ("+e.data.comments.length+")",results:[]}}};return $.each(e.data.blogs,function(e,n){t.results.blogs.results.push({type:"blog",id:n.id,title:n.title,description:''+n.creator.name+" 创建于 "+s.format(n.createDate,"zh_CN"),url:"#/blog/"+n.id})}),$.each(e.data.comments,function(e,n){t.results.comments.results.push({type:"comment",id:n.id,title:"#/blog/"+n.targetId+"?cid="+n.id,description:''+n.creator.name+" 创建于 "+s.format(n.createDate,"zh_CN")+"
    "+utils.encodeHtml(n.content),url:"#/blog/"+n.targetId+"?cid="+n.id})}),t},url:"/admin/blog/search?search={query}&comment=true&ellipsis=60"}}),this._refreshSysLinks(),"create"==nsCtx.blogId&&_.defer(function(){$('a[href="#modaal-blog-write"]').click()})},e.prototype._refreshSysLinks=function(){var e=this;$.get("/admin/link/listByApp",function(t){t.success?e.sysLinks=t.data:e.sysLinks=[]})},e.prototype.searchBlurHandler=function(){this.isSearchFocus=!1},e.prototype.searchFocusHandler=function(){this.isSearchFocus=!0,this.showRecentSearchResults()},e.prototype.showRecentSearchResults=function(){var e=this,t=$(this.searchRef).find("input").val();t||!function(){var t={results:{blogs:{name:"博文 ("+o.default.blogs.size()+")",results:_.reverse([].concat(o.default.blogs.list()))},comments:{name:"评论 ("+o.default.comments.size()+")",results:_.reverse([].concat(o.default.comments.list()))}}},n=$(e.searchRef).search("generate results",t);_.defer(function(){return $(e.searchRef).search("add results",n)})}()},e.prototype.toggleHandler=function(e){this.isHide!==e&&(this.isHide=e?e:!this.isHide,ea.publish(nsCons.EVENT_BLOG_TOGGLE_SIDEBAR,this.isHide))},e.prototype.userEditHandler=function(){this.userEditMd.show()},e.prototype.logoutHandler=function(){$.post("/admin/logout").always(function(){utils.redirect2Login()})},e.prototype.searchKeyupHandler=function(e){27==e.keyCode&&$(this.searchRef).search("set value",""),this.showRecentSearchResults()},e}())||a}),define("resources/elements/em-blog-write",["exports","aurelia-framework","simplemde","dropzone","common/common-emoji"],function(e,t,n,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmBlogWrite=void 0;var c,d,u,m,p,g=a(n),h=(a(i),a(r));e.EmBlogWrite=(0,t.containerless)((p=m=function(){function e(){var t=this;s(this,e),o(this,"members",u,this),this.subscribe=ea.subscribe(nsCons.EVENT_MODAAL_AFTER_OPEN,function(n){n.id==e.NAME&&(nsCtx.isModaalOpening=!0,t.init())}),this.subscribe2=ea.subscribe(nsCons.EVENT_MODAAL_BEFORE_CLOSE,function(n){n.id==e.NAME&&(t.destroy(),nsCtx.isModaalOpening=!1)}),this.subscribe3=ea.subscribe(nsCons.EVENT_BLOG_ACTION,function(e){t.action=e.action,$.get("/admin/blog/get",{id:e.id},function(e){e.success&&(t.blog=e.data,$('a[href="#modaal-blog-write"]').click())})}),this.subscribe4=ea.subscribe(nsCons.EVENT_BLOG_CHANGED,function(e){t.action=e.action,"created"===e.action&&(t.blog=e.blog,$("#blog-save-btn span").text("更新"),$("#blog-save-btn").attr("title","ctrl+click更新后关闭窗口"))}),this.blogTitleInputKeyupInit=_.once(function(){$("#blog-title-input").keyup(function(e){var n=$(e.currentTarget);e.shiftKey||13!=e.keyCode?e.shiftKey&&13==e.keyCode?t.simplemde.codemirror.focus():27==e.keyCode&&n.val(""):t.simplemde.value()?t.save(e,!0):t.simplemde.codemirror.focus()})})}return e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe2.dispose(),this.subscribe3.dispose(),this.subscribe4.dispose()},e.prototype._reset=function(){this.action=null,this.blog=null,$("#blog-save-btn span").text("保存"),$("#blog-save-btn").attr("title","ctrl+click快速保存"),$("#blog-title-input").val(""),this.simplemde.value(""),this.simplemde.toTextArea(),this.simplemde=null},e.prototype._editInit=function(){$("#blog-title-input").val(this.blog.title),this.simplemde.value(this.blog.content),$("#blog-save-btn span").text("更新"),$("#blog-save-btn").attr("title","ctrl+click更新后关闭窗口")},e.prototype._writeInit=function(){var e=this,t=utils.urlQuery("ccid"),n=utils.urlQuery("cdid"),i=null,r=null;t?(i="/admin/chat/channel/get",r=t):n&&(i="/admin/chat/direct/get",r=n),i&&$.get(i,{id:+r},function(t){if(t.success){e.simplemde.value(t.data.content);var n=$("#blog-title-input").val();if(!n){var i=/#{1,6}[\s]+(.+)\n?/g.exec(t.data.content);i&&i.length>1&&$("#blog-title-input").val(i[1])}}else toastr.error(t.data,"获取沟通消息失败!")})},e.prototype._copyInit=function(){$("#blog-title-input").val(this.blog.title+" (副本)"),this.simplemde.value(this.blog.content),this.blog=null},e.prototype.init=function(){var e=this;this.simplemde=new g.default({element:$("#txt-blog-write")[0],spellChecker:!1,toolbar:[{name:"bold",action:g.default.toggleBold,className:"fa fa-bold",title:"粗体"},{name:"italic",action:g.default.toggleItalic,className:"fa fa-italic",title:"斜体"},{name:"strikethrough",action:g.default.toggleStrikethrough,className:"fa fa-strikethrough",title:"删除线"},{name:"heading",action:g.default.toggleHeadingSmaller,className:"fa fa-header",title:"标题"},{name:"heading-smaller",action:g.default.toggleHeadingSmaller,className:"fa fa-header fa-header-x fa-header-smaller",title:"变小标题"},{name:"heading-bigger",action:g.default.toggleHeadingBigger,className:"fa fa-header fa-header-x fa-header-bigger",title:"变大标题"},"|",{name:"code",action:g.default.toggleCodeBlock,className:"fa fa-code",title:"代码"},{name:"quote",action:g.default.toggleBlockquote,className:"fa fa-quote-left",title:"引用"},{name:"unordered-list",action:g.default.toggleUnorderedList,className:"fa fa-list-ul",title:"无序列表"},{name:"ordered-list",action:g.default.toggleOrderedList,className:"fa fa-list-ol",title:"有序列表"},{name:"tasks",action:function(t){e.insertContent("- [ ] 未完成任务\n- [x] 已完成任务")},className:"fa fa-check-square-o ",title:"任务列表"},{name:"details",action:function(t){e.insertContent("
    \n标题\n

    详情内容

    \n
    ")},className:"fa fa-play ",title:"折叠详情"},"|",{name:"link",action:g.default.drawLink,className:"fa fa-link",title:"创建链接"},{name:"image",action:g.default.drawImage,className:"fa fa-picture-o",title:"插入图片"},{name:"table",action:g.default.drawTable,className:"fa fa-table",title:"插入表格"},{name:"horizontal-rule",action:g.default.drawHorizontalRule,className:"fa fa-minus",title:"插入水平分割线"},"|",{name:"upload",action:function(e){},className:"fa fa-upload",title:"上传文件"},"|",{name:"preview",action:g.default.togglePreview,className:"fa fa-eye no-disable",title:"切换预览"},{name:"side-by-side",action:g.default.toggleSideBySide,className:"fa fa-columns no-disable no-mobile",title:"实时预览"},{name:"fullscreen",action:g.default.toggleFullScreen,className:"fa fa-arrows-alt no-disable no-mobile",title:"全屏"},{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown指南"}],insertTexts:{table:["","\n\n| 列1 | 列2 | 列3 |\n| ------ | ------ | ------ |\n| 文本 | 文本 | 文本 |\n\n"]},previewRender:function(e,t){return emojify&&(e=emojify.replace(e)),marked(utils.preParse(e))}}),this.simplemde.codemirror.on("keyup",function(t,n){if(n.ctrlKey&&13==n.keyCode)e.save(n,!0);else if(27==n.keyCode)e.simplemde.value("");else if(13==n.keyCode){var i=$("#blog-title-input").val();if(!i){var r=/#{1,6}[\s]+(.+)\n?/g.exec(e.simplemde.value());r&&r.length>1&&$("#blog-title-input").val(r[1])}}}),this.$chatMsgInputRef=$("#txt-blog-write-wrapper").find(".CodeMirror textarea"),0===this.$chatMsgInputRef.size()&&(this.$chatMsgInputRef=$("#txt-blog-write-wrapper").find('.CodeMirror [contenteditable="true"]')),"edit"==this.action?this._editInit():"copy"==this.action?this._copyInit():this._writeInit(),$("#blog-title-input").focus(),this.initPaste(),this.initTextcomplete(),this.initUploadDropzone($(".CodeMirror-wrap","#txt-blog-write-wrapper"),function(){return e.$chatMsgInputRef},!1),this.initUploadDropzone($(".editor-toolbar .fa.fa-upload","#txt-blog-write-wrapper"),function(){return e.$chatMsgInputRef},!0),this.blogTitleInputKeyupInit()},e.prototype.close=function(){$('a[href="#modaal-blog-write"]').modaal("close")},e.prototype.initTextcomplete=function(){var e=this;$(this.$chatMsgInputRef).textcomplete([{match:/(^|\s)@(\w*)$/,search:function(e,t){t($.map(nsCtx.users,function(t){return t.enabled&&t.username.indexOf(e)>=0?t.username:null}))},template:function(e,t){var n=_.find(nsCtx.users,{username:e});return n.name+" - "+n.mails+" ("+n.username+")"},replace:function(e){return"$1{~"+e+"}"}},{match:/(^|\s):([\+\-\w]*)$/,search:function(e,t){t($.map(h.default,function(t){return _.some(t.split("_"),function(t){return 0===t.indexOf(e)})?t:null}))},template:function(e,t){if("search"==e)return"表情查找 - :search";var n=":"+e+":";return emojify.replace(n)+" - "+n},replace:function(t){return e.tipsActionHandler(t)?"$1:"+t+": ":""}}],{appendTo:".tms-blog-write-status-bar",maxCount:5}),this.simplemde.codemirror.on("keydown",function(t,n){_.includes([13,38,40],n.keyCode)&&e.isTipsShow()&&n.preventDefault()})},e.prototype.isTipsShow=function(){return 1===$(".tms-blog-write-status-bar").find(".textcomplete-dropdown:visible").size()},e.prototype.tipsActionHandler=function(e){return"search"!=e||(_.delay(function(){utils.openNewWin(nsCons.STR_EMOJI_SEARCH_URL)},200),!1)},e.prototype.initPaste=function(){var e=this,t=void 0;t=this.$chatMsgInputRef.is("textarea")?$(this.$chatMsgInputRef).pastableTextarea():$(this.$chatMsgInputRef).pastableContenteditable(),t&&t.on("pasteImage",function(t,n){$.post("/admin/file/base64",{dataURL:n.dataURL,type:n.blob.type,toType:"Blog"},function(t,n,i){t.success&&e.insertContent("![{name}]({baseURL}{path}{uuidName})".replace(/\{name\}/g,t.data.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.data.path).replace(/\{uuidName\}/g,t.data.uuidName))})}).on("pasteImageError",function(e,t){toastr.error(t.message,"剪贴板粘贴图片错误!")})},e.prototype.initUploadDropzone=function(e,t,n){var i=this;$(e).dropzone({url:"/admin/file/upload",paramName:"file",clickable:!!n,dictDefaultMessage:"",maxFilesize:10,addRemoveLinks:!0,previewsContainer:".em-blog-write .dropzone-previews",previewTemplate:$(".em-blog-write .preview-template")[0].innerHTML,dictCancelUpload:"取消上传",dictCancelUploadConfirmation:"确定要取消上传吗?",dictFileTooBig:"文件过大({{filesize}}M),最大限制:{{maxFilesize}}M",init:function(){this.on("sending",function(e,n,i){t()?i.append("toType","Blog"):this.removeAllFiles(!0)}),this.on("success",function(e,t){t.success?($.each(t.data,function(e,t){"Image"==t.type?i.insertContent("![{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.path).replace(/\{uuidName\}/g,t.uuidName)):i.insertContent("[{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,"admin/file/download/").replace(/\{uuidName\}/g,t.id)); +}),toastr.success("上传成功!")):toastr.error(t.data,"上传失败!")}),this.on("error",function(e,t,n){toastr.error(t,"上传失败!")}),this.on("complete",function(e){this.removeFile(e)})}})},e.prototype.insertContent=function(e,t){try{var n=t?t.codemirror:this.simplemde.codemirror,i=n.getCursor();i&&(n.replaceRange(e,i,i),n.focus())}catch(e){console.log(e)}},e.prototype.destroy=function(){this._reset()},e.prototype.attached=function(){var e=this;$("#blog-save-btn").click(function(t){e.save(t)})},e.prototype.save=function(e,t){var n=this,i=$("#blog-title-input").val(),r=this.simplemde.value();if(!$.trim(i))return $("#blog-title-input").val(""),void toastr.error("标题不能为空!");if(!$.trim(r))return this.simplemde.value(""),void toastr.error("内容不能为空!");if(this.blog){if(this.sending)return;this.sending=!0,$("#blog-save-btn i").show();var a=(utils.md2html(r,!0),[nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[]));$.post("/admin/blog/update",{url:utils.getBasePath(),id:this.blog.id,version:this.blog.version,usernames:utils.parseUsernames(r,a).join(","),title:i,content:r,diff:utils.diffS(this.blog.content,r)},function(i,r,a){i.success?(n.blog=i.data,toastr.success("博文更新成功!"),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"updated",blog:n.blog}),t?e&&e.ctrlKey&&e.shiftKey&&n.close():e&&e.ctrlKey&&n.close()):toastr.error(i.data,"博文更新失败!")}).always(function(){n.sending=!1,$("#blog-save-btn i").hide()})}else e.ctrlKey?$.post("/admin/blog/create",{url:utils.getBasePath(),usernames:utils.parseUsernames(r,[nsCtx.memberAll].concat(window.tmsUsers?tmsUsers:[])).join(","),title:i,content:r,spaceId:"",privated:!1,contentHtml:utils.md2html(r,!0)},function(e,t,i){e.success?(n.blog=e.data,toastr.success("博文保存成功!"),ea.publish(nsCons.EVENT_BLOG_CHANGED,{action:"created",blog:n.blog}),$('a[href="#modaal-blog-write"]').modaal("close")):toastr.error(e.data,"博文保存失败!")}):ea.publish(nsCons.EVENT_BLOG_SAVE,{title:i,content:r})},e}(),m.NAME="blog-create",d=p,u=l(d.prototype,"members",[t.bindable],{enumerable:!0,initializer:null}),c=d))||c}),define("resources/elements/em-chat-attach",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatAttach=void 0;var i;e.EmChatAttach=(0,t.containerless)(i=function(){function e(){n(this,e),this.type="Image",this.search=""}return e.prototype.attached=function(){$(this.tabRef).find(".item").tab({onVisible:function(e){}})},e.prototype.moreHandler=function(){this._listByPage(!0)},e.prototype._listByPage=function(){var e=this,t=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],n=nsCtx.isAt?"/admin/file/listByUser":"/admin/file/listByChannel";this.ajax=$.get(n,{name:nsCtx.chatTo,type:this.type,page:this.page?t?this.page.number+1:this.page.number:0,size:10,search:this.search},function(n){e.page=n.data,e.moreCnt=e.page.last?0:e.page.totalElements-(e.page.number+1)*e.page.size,t?e.attachs=_.concat(e.attachs,n.data.content):e.attachs=n.data.content})},e.prototype.fetch=function(){this.page=null,this.moreCnt=0,this.attachs=null,$(window).width()>991&&$(this.searchRef).focus(),this._listByPage()},e.prototype.tabClickHandler=function(e){this.type=e,this.fetch()},e.prototype.searchHandler=function(){this.fetch()},e.prototype.keyupHandler=function(e){return 13==e.keyCode?this.fetch():27==e.keyCode&&(this.search="",this.fetch()),!0},e}())||i}),define("resources/elements/em-chat-channel-create",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelCreate=void 0;var a,o,s,l,c;e.EmChatChannelCreate=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"loginUser",s,this),n(this,"trigger",l,this),n(this,"name",c,this),this.activeTab="channel-create",this.nameRegex=/^[a-z][a-z0-9_\-]{0,49}$/}return e.prototype.nameChanged=function(e,t){this.oldName=t,e&&!this.nameRegex.test(e)&&(this.name=this._getOldName())},e.prototype._getOldName=function(){return this.nameRegex.test(this.oldName)||(this.oldName=""),this.oldName},e.prototype.triggerChanged=function(e,t){var n=this;$(this.trigger).click(function(){n.emModal.show({hideOnApprove:!1,autoDimmer:!0})})},e.prototype.showHandler=function(){this._reset()},e.prototype._reset=function(){this.name="",this.title="",this.desc="",$(this.chk).checkbox("set checked"),this.channelJoinVm.refresh()},e.prototype.attached=function(){var e=this;$(this.chk).checkbox(),$(this.tabRef).find(".item").tab({onVisible:function(t){e.activeTab=t}})},e.prototype.approveHandler=function(e){$.post("/admin/channel/create",{name:this.name,title:this.title,desc:this.desc,privated:$(this.chk).checkbox("is checked")},function(t){t.success?(e.hide(),toastr.success("创建频道成功!"),ea.publish(nsCons.EVENT_CHAT_CHANNEL_CREATED,{channel:t.data})):(e.hideDimmer(),toastr.error(t.data,"创建频道失败!"))})},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"trigger",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"name",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-channel-edit",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelEdit=void 0;var a,o,s;e.EmChatChannelEdit=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"channel",s,this)}return e.prototype.channelChanged=function(){if(this.channel){var e=this.channel.privated?"set checked":"set unchecked";$(this.chk).checkbox(e)}},e.prototype.show=function(){this.emModal.show({hideOnApprove:!1,autoDimmer:!0})},e.prototype.showHandler=function(){},e.prototype.attached=function(){$(this.chk).checkbox()},e.prototype.approveHandler=function(e){$.post("/admin/channel/update",{id:this.channel.id,title:this.channel.title,desc:this.channel.description,privated:$(this.chk).checkbox("is checked")},function(t){e.hide(),t.success?toastr.success("更新频道成功!"):toastr.error(t.data,"编辑频道失败!")})},e}(),s=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-channel-join",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelJoin=void 0;var a,o,s;e.EmChatChannelJoin=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"loginUser",s,this)}return e.prototype._getChannels=function(){var e=this;$.get("/admin/channel/list",function(t){t.success?(e.channels=t.data,_.each(e.channels,function(t){t.joined=_.some(t.members,function(t){return t.username==e.loginUser.username})})):toastr.error(t.data,"获取频道列表失败!")})},e.prototype.refresh=function(){this._getChannels()},e.prototype.joinHandler=function(e){this.confirmMd.show({content:'确定要加入频道'+e.title+"吗?",onapprove:function(){$.post("/admin/channel/join",{id:e.id},function(t){t.success?(toastr.success("加入频道成功!"),e.joined=!0,ea.publish(nsCons.EVENT_CHAT_CHANNEL_JOINED,{channel:t.data})):toastr.error(t.data,"加入频道失败!")})}})},e.prototype.leaveHandler=function(e){this.confirmMd.show({content:'确定要离开频道'+e.title+"吗?",onapprove:function(){$.post("/admin/channel/leave",{id:e.id},function(t){t.success?(toastr.success("离开频道成功!"),e.joined=!1,ea.publish(nsCons.EVENT_CHAT_CHANNEL_LEAVED,{channel:t.data})):toastr.error(t.data,"离开频道失败!")})}})},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-channel-link-mgr",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelLinkMgr=void 0;var a,o,s,l;e.EmChatChannelLinkMgr=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"channel",s,this),n(this,"loginUser",l,this),this.links=[]}return e.prototype.getChannelLinks=function(e,t){var n=this;this.channel&&$.get("/admin/link/listBy",{channelId:this.channel.id},function(e){e.success?n.links=e.data:n.links=[]})},e.prototype.addHandler=function(){var e=this;$.post("/admin/link/create",{title:this.title,href:this.href,channelId:this.channel.id},function(t,n,i){t.success?(e.title="",e.href="",e.links.push(t.data),ea.publish(nsCons.EVENT_CHANNEL_LINKS_REFRESH,{})):toastr.error(t.data)})},e.prototype.delHandler=function(e){var t=this;$.post("/admin/link/delete",{id:e.id},function(n,i,r){n.success?(t.links=_.reject(t.links,{id:e.id}),ea.publish(nsCons.EVENT_CHANNEL_LINKS_REFRESH,{}),toastr.success("删除成功!")):toastr.error(n.data)})},e.prototype.editHandler=function(e){e.oldTitle=e.title,e.oldHref=e.href,e.isEditing=!0},e.prototype.updateHandler=function(e){return e.oldTitle==e.title&&e.oldHref==e.href?void(e.isEditing=!1):void $.post("/admin/link/update",{id:e.id,title:e.title,href:e.href},function(t,n,i){t.success?(e.isEditing=!1,ea.publish(nsCons.EVENT_CHANNEL_LINKS_REFRESH,{}),toastr.success("更新成功!")):toastr.error(t.data)})},e.prototype.showHandler=function(){this.getChannelLinks()},e.prototype.show=function(){this.emModal.show({autoDimmer:!1})},e.prototype.approveHandler=function(e){},e}(),s=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-channel-members-mgr",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelMembersMgr=void 0;var a,o,s,l;e.EmChatChannelMembersMgr=(0,t.containerless)((o=function(){function e(){var t=this;i(this,e),n(this,"channel",s,this),n(this,"users",l,this),this.membersOpts={fullTextSearch:!0,onAdd:function(e,n,i){t.emModal.showDimmer(),$.post("/admin/channel/addMember",{id:t.channel.id,members:e,baseUrl:utils.getBaseUrl(),path:wurl("path")},function(e,n,i){e.success?(toastr.success("添加成员成功!"),t.channel.members=e.data.members,ea.publish(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,{type:"add",members:e.data.members})):toastr.error(e.data,"添加成员失败!")}).always(function(){t.emModal.hideDimmer()})},onLabelRemove:function(e){return t.channel.owner.username!=e&&(t.emModal.showDimmer(),void $.post("/admin/channel/removeMember",{id:t.channel.id,members:e,baseUrl:utils.getBaseUrl(),path:wurl("path")},function(e,n,i){e.success?(toastr.success("移除成员成功!"),t.channel.members=e.data.members,ea.publish(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,{type:"remove",members:e.data.members})):toastr.error(e.data,"移除成员失败!")}).always(function(){t.emModal.hideDimmer()}))}}}return e.prototype.channelChanged=function(){var e=this;this.channel&&!function(){var t=_.sortBy(_.map(e.channel.members,"username"));_.defer(function(){$(e.membersRef).dropdown().dropdown("clear").dropdown("set selected",t).dropdown(e.membersOpts)})}()},e.prototype.attached=function(){},e.prototype.initMembersUI=function(e){var t=this;e&&_.defer(function(){t.channelChanged()})},e.prototype.showHandler=function(){$(this.membersRef).dropdown().dropdown("clear"),this.channelChanged()},e.prototype.approveHandler=function(e){},e.prototype.show=function(){this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e}(),s=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"users",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-channel-members-show",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatChannelMembersShow=void 0;var a,o,s;e.EmChatChannelMembersShow=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"channel",s,this)}return e.prototype.showHandler=function(){},e.prototype.approveHandler=function(e){},e.prototype.show=function(){this.emModal.show({hideOnApprove:!0,autoDimmer:!1})},e}(),s=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-content-item-footbar",["exports","aurelia-framework","common/common-tags"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatContentItemFootbar=void 0;var s,l,c,d=i(n);e.EmChatContentItemFootbar=(0,t.containerless)((l=function(){function e(){a(this,e),r(this,"chat",c,this),this.emojis=[{label:"赞同",value:":+1:",type:"emoji"},{label:"反对",value:":-1:",type:"emoji"},{label:"知悉",value:":ok_hand:",type:"emoji"},{label:"关注",value:":eyes:",type:"emoji"},{label:"爱心",value:":heart:",type:"emoji"},{label:"开心",value:":laughing:",type:"emoji"},{label:"困惑",value:":confused:",type:"emoji"},{label:"悲伤",value:":cry:",type:"emoji"}],this.tags=d.default}return e.prototype.attached=function(){var e=this;$([this.addEmojiRef]).popup({inline:!0,hoverable:!0,delay:{show:500,hide:300}}),$([this.addTagRef]).popup({inline:!0,hoverable:!0,delay:{show:500,hide:300},onHide:function(){e.isCustomTag=!1,$(e.tagRef).val("")}})},e.prototype.toggleChatLabelHandler=function(e){var t=this;$.post("/admin/chat/"+(nsCtx.isAt?"direct":"channel")+"/label/toggle",{url:nsCtx.isAt?utils.getBasePath():utils.getUrl(),meta:"emoji"==e.type?$(emojify.replace(e.value)).attr("src"):e.value,type:"emoji"==e.type?"Emoji":"Tag",contentHtml:utils.md2html(this.chat.content,!0),name:e.value,desc:e.label,id:this.chat.id},function(e,n,i){if(e.success){var r=_.find(t.chat.chatLabels,{id:e.data.id});r?r.voters=e.data.voters:t.chat.chatLabels=[].concat(t.chat.chatLabels,[e.data]),bs.signal("sg-chatlabel-refresh")}else toastr.error(e.data)})},e.prototype.toggleCustomTagHandler=function(){var e=this;if(this.isCustomTag){var t=$(this.tagRef).val();t&&(this.toggleChatLabelHandler({label:t,value:t,type:"Tag"}),$(this.tagRef).val(""))}else _.defer(function(){return $(e.tagRef).focus()});this.isCustomTag=!this.isCustomTag},e.prototype.tagKeyupHandler=function(){this.toggleCustomTagHandler()},e}(),c=o(l.prototype,"chat",[t.bindable],{enumerable:!0,initializer:null}),s=l))||s}),define("resources/elements/em-chat-content-item",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatContentItem=void 0;var a,o,s,l,c,d,u,m,p;e.EmChatContentItem=(a=(0,t.bindable)({defaultBindingMode:t.bindingMode.twoWay}),(0,t.containerless)((s=function(){function e(){var t=this;i(this,e),n(this,"chats",l,this),n(this,"loginUser",c,this),n(this,"isAt",d,this),n(this,"channel",u,this),n(this,"markId",m,this),n(this,"chatTo",p,this),this.members=[],this.basePath=utils.getBasePath(),this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,function(e){t.members=[nsCtx.memberAll].concat(e.members)})}return e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype.attached=function(){var e=this;$(".tms-content-body").on("click",".markdown-body .at-user",function(e){e.preventDefault(),ea.publish(nsCons.EVENT_CHAT_MSG_INSERT,{content:"{~"+$(e.currentTarget).attr("data-value")+"} "})}),$(".tms-chat-direct").on("mouseenter",'.markdown-body a[href*="#/chat/"]:not(.pp-not)',function(t){t.preventDefault();var n=t.currentTarget;if(e.hoverMsgTimeoutRef){if(e.hoverMsgTarget===n)return;clearTimeout(e.hoverMsgTimeoutRef),e.hoverMsgTimeoutRef=null}e.hoverMsgTarget=n,e.hoverMsgTimeoutRef=setTimeout(function(){ea.publish(nsCons.EVENT_CHAT_MSG_POPUP_SHOW,{id:utils.urlQuery("id",$(n).attr("href")),target:n}),e.hoverMsgTimeoutRef=null},500)}),$(".tms-chat-direct").on("mouseleave",'.markdown-body a[href*="#/chat/"]:not(.pp-not)',function(t){t.preventDefault(),e.hoverMsgTimeoutRef&&e.hoverMsgTarget===t.currentTarget&&(clearTimeout(e.hoverMsgTimeoutRef),e.hoverMsgTimeoutRef=null)}),$(".tms-chat-direct").on("mouseenter",".tms-content-body .em-chat-content-item",function(e){e.preventDefault();var t=$(e.currentTarget);ea.publish(nsCons.EVENT_CHAT_MSG_WIKI_DIR,{dir:utils.dir(t.find("> .content > .markdown-body"))})}),$(".tms-chat-direct").on("click",".panel-wiki-dir .wiki-dir-item",function(e){e.preventDefault(),ea.publish(nsCons.EVENT_CHAT_CONTENT_SCROLL_TO,{target:$("#"+$(e.currentTarget).attr("data-id"))})}),$(".tms-chat-direct").on("mouseenter","span[data-value].at-user:not(.pp-not),a[data-value].author:not(.pp-not)",function(t){t.preventDefault();var n=t.currentTarget;if(e.hoverTimeoutRef){if(e.hoverUserTarget===n)return;clearTimeout(e.hoverTimeoutRef),e.hoverTimeoutRef=null}e.hoverUserTarget=n,e.hoverTimeoutRef=setTimeout(function(){ea.publish(nsCons.EVENT_CHAT_MEMBER_POPUP_SHOW,{channel:e.channel,username:$(n).attr("data-value"),target:n}),e.hoverTimeoutRef=null},500)}),$(".tms-chat-direct").on("mouseleave","span[data-value].at-user:not(.pp-not),a[data-value].author:not(.pp-not)",function(t){t.preventDefault(),e.hoverTimeoutRef&&e.hoverUserTarget===t.currentTarget&&(clearTimeout(e.hoverTimeoutRef),e.hoverTimeoutRef=null)}),this.initHotkeys()},e.prototype.channelChanged=function(){this.channel?this.members=[nsCtx.memberAll].concat(this.channel.members):this.members=[]},e.prototype.deleteHandler=function(e){var t=this;this.emConfirmModal.show({onapprove:function(){var n=void 0;n=t.isAt?"/admin/chat/direct/delete":"/admin/chat/channel/delete",$.post(n,{id:e.id},function(n,i,r){n.success?(t.chats=_.reject(t.chats,{id:e.id}),toastr.success("删除消息成功!")):toastr.error(n.data,"删除消息失败!")})}})},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","e",function(t){t.preventDefault();var n=_.findLast(e.chats,function(t){return t.creator.username==e.loginUser.username});n&&e.editHandler(n,$('.em-chat-content-item[data-id="'+n.id+'"]').find("> .content > textarea"))})},e.prototype.editHandler=function(e,t){$.get("/admin/chat/"+(this.isAt?"direct":"channel")+"/get",{id:e.id},function(n){n.success?(e.version!=n.data.version&&_.extend(e,n.data),e.isEditing=!0,e.contentOld=e.content,_.defer(function(){$(t).focus().select(),autosize.update(t)})):toastr.error(n.data)})},e.prototype.editOkHandler=function(e,t,n){this.editSave(t,n),t.isEditing=!1},e.prototype.editCancelHandler=function(e,t,n){t.content=t.contentOld,$(n).val(t.content),t.isEditing=!1},e.prototype.editSave=function(e,t){var n=this;this.sending=!0,e.content=$(t).val();var i=(utils.md2html(e.content,!0),utils.md2html(e.contentOld,!0),void 0),r=void 0;this.isAt?(i="/admin/chat/direct/update",r={baseUrl:utils.getBaseUrl(),path:wurl("path"),id:e.id,content:e.content,diff:utils.diffS(e.contentOld,e.content)}):(i="/admin/chat/channel/update",r={url:utils.getUrl(),id:e.id,version:e.version,usernames:utils.parseUsernames(e.content,this.members).join(","),content:e.content,diff:utils.diffS(e.contentOld,e.content)}),$.post(i,r,function(t,n,i){t.success?(toastr.success("更新消息成功!"),e.isEditing=!1,e.version=t.data.version):toastr.error(t.data,"更新消息失败!")}).always(function(){n.sending=!1})},e.prototype.eidtKeydownHandler=function(e,t,n){return!this.sending&&(e.ctrlKey&&13===e.keyCode?(this.editSave(t,n),!1):e.ctrlKey&&85===e.keyCode?($(n).next(".tms-edit-actions").find(".upload").click(),!1):(27===e.keyCode&&this.editCancelHandler(e,t,n),!0))},e.prototype.notifyRendered=function(e,t){e&&_.defer(function(){ea.publish(nsCons.EVENT_CHAT_LAST_ITEM_RENDERED,{item:t})})},e.prototype.stowHandler=function(e){return e.isStow?void this.unStowHandler(e):void $.post("/admin/chat/channel/stow",{id:e.id},function(t,n,i){e.isStow=!0,t.success?(e.stowId=t.data.id,toastr.success("收藏消息成功!")):e.stowId=t.msgs&&t.msgs.length>0?t.msgs[0].id:""})},e.prototype.unStowHandler=function(e){e.stowId&&$.post("/admin/chat/channel/removeStow",{id:e.stowId},function(t,n,i){e.isStow=!1,e.stowId="",t.success&&toastr.success("移除收藏消息成功!")})},e.prototype.openEditHandler=function(e){$.post("/admin/chat/channel/openEdit",{id:e.id,open:!e.openEdit},function(t,n,i){t.success?(e.openEdit=!e.openEdit,toastr.success((e.openEdit?"开启":"关闭")+"协作编辑成功!")):toastr.success((e.openEdit?"关闭":"开启")+"协作编辑失败!")})},e.prototype.replyHandler=function(e){ea.publish(nsCons.EVENT_CHAT_MSG_INSERT,{content:"[[回复#"+e.id+"]("+utils.getUrl()+"?id="+e.id+"){~"+e.creator.username+"}]\n\n"}),$.post("/admin/chat/channel/markAsReadedByChat",{chatId:e.id})},e.prototype.creatorNameHandler=function(e){ea.publish(nsCons.EVENT_CHAT_MSG_INSERT,{content:"{~"+e.creator.username+"} "})},e.prototype.refreshHandler=function(e){$.get("/admin/chat/channel/get",{id:e.id},function(t){e.version!=t.data.version?(_.extend(e,t.data),toastr.success("刷新同步成功!")):(e.chatReplies=t.data.chatReplies,toastr.info("消息内容暂无变更!"))})},e.prototype.likeHandler=function(e,t){t&&e.isZanVoted||!t&&e.isCaiVoted||$.post("/admin/chat/channel/vote",{id:e.id,url:utils.getUrl(),contentHtml:utils.md2html(e.content,!0),type:t?"Zan":"Cai"},function(n,i,r){n.success?(_.extend(e,n.data),t?e.isZanVoted=!0:e.isCaiVoted=!0):toastr.error(n.data)})},e.prototype.pinHandler=function(e){var t={id:e.id,cid:this.channel.id};_.isUndefined(e.isPin)&&(t.pin=!0),$.post("/admin/chat/channel/pin/toggle",t,function(t,n,i){t.success?(toastr.success(""+(200==t.code?"固定频道消息成功!":"解除固定频道消息成功!")),e.isPin=200==t.code):toastr.error(t.data)})},e.prototype.talkHandler=function(e,t){ea.publish(nsCons.EVENT_CHAT_TOPIC_SHOW,{chat:e})},e}(),l=r(s.prototype,"chats",[a],{enumerable:!0,initializer:null}),c=r(s.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),d=r(s.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),u=r(s.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),m=r(s.prototype,"markId",[t.bindable],{enumerable:!0,initializer:null}),p=r(s.prototype,"chatTo",[t.bindable],{enumerable:!0,initializer:null}),o=s))||o)}),define("resources/elements/em-chat-input",["exports","aurelia-framework","common/common-tips","common/common-emoji","simplemde","textcomplete"],function(e,t,n,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatInput=void 0;var c,d,u,m,p,g=a(n),h=a(i),b=a(r);e.EmChatInput=(0,t.containerless)((d=function(){function e(){var t=this;s(this,e),o(this,"chatTo",u,this),o(this,"isAt",m,this),o(this,"channel",p,this),this.members=[],this.isMobile=utils.isMobile(),this.subscribe=ea.subscribe(nsCons.EVENT_SHOW_HOTKEYS_MODAL,function(e){t.emHotkeysModal.show()}),this.subscribe1=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,function(e){t.members=[nsCtx.memberAll].concat(e.members)}),this.subscribe2=ea.subscribe(nsCons.EVENT_CHAT_MSG_INSERT,function(e){t.insertContent(e.content)})}return e.prototype.channelChanged=function(){this.channel?this.members=[nsCtx.memberAll].concat(this.channel.members):this.members=[]},e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe1.dispose(),this.subscribe2.dispose()},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","r",function(){event.preventDefault(),e.simplemde.codemirror.focus()})},e.prototype.attached=function(){this.initSimpleMDE(this.chatInputRef),this.initDropzone(),this.initPaste(),this.initHotkeys()},e.prototype.initPaste=function(){var e=this,t=void 0;t=this.$chatMsgInputRef.is("textarea")?$(this.$chatMsgInputRef).pastableTextarea():$(this.$chatMsgInputRef).pastableContenteditable(),t&&t.on("pasteImage",function(t,n){$.post("/admin/file/base64",{dataURL:n.dataURL,type:n.blob.type,toType:nsCtx.isAt?"User":"Channel",toId:nsCtx.chatTo},function(t,n,i){t.success&&e.insertContent("![{name}]({baseURL}{path}{uuidName})".replace(/\{name\}/g,t.data.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.data.path).replace(/\{uuidName\}/g,t.data.uuidName))})}).on("pasteImageError",function(e,t){toastr.error(t.message,"剪贴板粘贴图片错误!")})},e.prototype.initDropzone=function(){var e=this;this.initUploadDropzone($(".CodeMirror-wrap",this.inputRef),function(){return e.$chatMsgInputRef},!1),this.initUploadDropzone($(this.btnItemUploadRef).children().andSelf(),function(){return e.$chatMsgInputRef},!0),$(this.chatBtnRef).popup({inline:!0,hoverable:!0,position:"bottom left",delay:{show:300,hide:300}})},e.prototype.initUploadDropzone=function(e,t,n){var i=this;$(e).dropzone({url:"/admin/file/upload",paramName:"file",clickable:!!n,dictDefaultMessage:"",maxFilesize:10,addRemoveLinks:!0,previewsContainer:this.chatStatusBarRef,previewTemplate:this.previewTemplateRef.innerHTML,dictCancelUpload:"取消上传",dictCancelUploadConfirmation:"确定要取消上传吗?",dictFileTooBig:"文件过大({{filesize}}M),最大限制:{{maxFilesize}}M",init:function(){this.on("sending",function(e,n,i){t()?(i.append("toType",nsCtx.isAt?"User":"Channel"),i.append("toId",nsCtx.chatTo)):this.removeAllFiles(!0)}),this.on("success",function(e,t){t.success?($.each(t.data,function(e,t){"Image"==t.type?i.insertContent("![{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.path).replace(/\{uuidName\}/g,t.uuidName)):i.insertContent("[{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,"admin/file/download/").replace(/\{uuidName\}/g,t.id))}),toastr.success("上传成功!")):toastr.error(t.data,"上传失败!")}),this.on("error",function(e,t,n){toastr.error(t,"上传失败!")}),this.on("complete",function(e){this.removeFile(e)})}})},e.prototype.initSimpleMDE=function(e){var t=this;this.simplemde=new b.default({element:e,spellChecker:!1,status:!1,autofocus:!0,toolbar:!1,autoDownloadFontAwesome:!1,insertTexts:{table:["","\n\n| 列1 | 列2 | 列3 |\n| ------ | ------ | ------ |\n| 文本 | 文本 | 文本 |\n\n"]},previewRender:function(e,n){return t.simplemde.markdown(utils.preParse(e))}}),this.$chatMsgInputRef=$(this.inputRef).find(".textareaWrapper .CodeMirror textarea"),0===this.$chatMsgInputRef.size()&&(this.$chatMsgInputRef=$(this.inputRef).find('.textareaWrapper .CodeMirror [contenteditable="true"]')),this.initTextcomplete()},e.prototype.initTextcomplete=function(){var e=this;$(this.$chatMsgInputRef).textcomplete([{ +match:/(|\b)(\/.*)$/,search:function(e,t){var n=_.keys(g.default);t($.map(n,function(t){return 0===t.indexOf(e)?t:null}))},template:function(e,t){return g.default[e].label},replace:function(t){return e.tipsActionHandler(t)?(e.setCaretPosition(g.default[t].line,g.default[t].ch),"$1"+g.default[t].value):""}},{match:/(^|\s)@(\w*)$/,search:function(t,n){n($.map(e.members,function(e){return e.enabled&&e.username.indexOf(t)>=0?e.username:null}))},template:function(t,n){var i=_.find(e.members,{username:t});return i.name+" - "+i.mails+" ("+i.username+")"},replace:function(e){return"$1{~"+e+"}"}},{match:/(^|\s):([\+\-\w]*)$/,search:function(e,t){t($.map(h.default,function(t){return _.some(t.split("_"),function(t){return 0===t.indexOf(e)})?t:null}))},template:function(e,t){if("search"==e)return"表情查找 - :search";var n=":"+e+":";return emojify.replace(n)+" - "+n},replace:function(t){return e.tipsActionHandler(t)?"$1:"+t+": ":""}}],{appendTo:".tms-chat-status-bar",maxCount:nsCons.NUM_TEXT_COMPLETE_MAX_COUNT}),this.simplemde.codemirror.on("keydown",function(t,n){_.includes([13,38,40],n.keyCode)&&e.isTipsShow()?n.preventDefault():n.ctrlKey&&13===n.keyCode?e.sendChatMsg():27===n.keyCode?e.simplemde.value(""):n.ctrlKey&&85==n.keyCode?$(e.btnItemUploadRef).find(".content").click():n.ctrlKey&&191==n.keyCode&&e.emHotkeysModal.show()})},e.prototype.setCaretPosition=function(e,t){var n=this;(e||t)&&_.delay(function(){var i=n.simplemde.codemirror.getCursor();n.simplemde.codemirror.setCursor({line:i.line-(e?e:0),ch:i.line?t?t:0:i.ch-(t?t:0)})},100)},e.prototype.sendChatMsg=function(){var e=this,t=this.simplemde.value();if(!$.trim(t))return void this.simplemde.value("");if(!this.sending){this.sending=!0;var n=utils.md2html(t,!0),i=void 0,r=void 0;if(this.isAt)i="/admin/chat/direct/create",r={baseUrl:utils.getBaseUrl(),path:wurl("path"),chatTo:this.chatTo,content:t,contentHtml:n};else{i="/admin/chat/channel/create";var a=utils.parseUsernames(t,this.members).join(",");r={url:utils.getUrl(),channelId:this.channel.id,usernames:a,content:t,contentHtml:n}}$.post(i,r,function(t,n,i){t.success?(e.simplemde.value(""),ea.publish(nsCons.EVENT_CHAT_MSG_SENDED,{data:t})):toastr.error(t.data,"发送消息失败!")}).always(function(){e.sending=!1})}},e.prototype.sendChatMsgHandler=function(){this.sendChatMsg()},e.prototype.isTipsShow=function(){return 1===$(this.chatStatusBarRef).find(".textcomplete-dropdown:visible").size()},e.prototype.insertContent=function(e,t){try{var n=t?t.codemirror:this.simplemde.codemirror,i=n.getCursor();i&&(n.replaceRange(e,i,i),n.focus())}catch(e){console.log(e)}},e.prototype.tipsActionHandler=function(e){if("/upload"==e)$(this.btnItemUploadRef).find(".content").click();else if("/shortcuts"==e)this.emHotkeysModal.show();else{if("search"!=e)return!0;_.delay(function(){utils.openNewWin(nsCons.STR_EMOJI_SEARCH_URL)},200)}return!1},e.prototype.togglePreviewHandler=function(){this.simplemde.togglePreview()},e}(),u=l(d.prototype,"chatTo",[t.bindable],{enumerable:!0,initializer:null}),m=l(d.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),p=l(d.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),c=d))||c}),define("resources/elements/em-chat-member-popup",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatMemberPopup=void 0;var i;e.EmChatMemberPopup=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.members=[],this.member={},this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_MEMBER_POPUP_SHOW,function(e){if(t.channel=e.channel,t.username=e.username,t.target=e.target,"all"==t.username){if(!t.channel)return;t.members=t.channel.members}else{if(!t.username)return;t.member=utils.getUser(t.username);var n=utils.getUser(t.member.creator);t.member.creatorName=n&&n.name?n.name:t.member.creator}_.defer(function(){$(t.target).popup("is hidden")&&$(t.target).popup({popup:t.popup,hoverable:!0,inline:!1,silent:!0,movePopup:!1,position:"bottom left",jitter:300,prefer:"opposite",delay:{show:300,hide:300}}).popup("show")})})}return e.prototype.unbind=function(){this.subscribe.dispose()},e}())||i}),define("resources/elements/em-chat-msg-popup",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatMsgPopup=void 0;var i;e.EmChatMsgPopup=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_MSG_POPUP_SHOW,function(e){t.id=e.id,t.target=e.target,t.id&&$(t.target).popup("is hidden")&&$(t.target).popup({popup:t.popup,hoverable:!0,inline:!1,movePopup:!1,silent:!0,position:"bottom left",jitter:300,prefer:"opposite",delay:{show:300,hide:300},onShow:function(){$.get("/admin/chat/channel/get",{id:t.id},function(e){e.success?t.chatMsg=e.data:toastr.error(e.data,"加载失败!")})}}).popup("show")})}return e.prototype.unbind=function(){this.subscribe.dispose()},e}())||i}),define("resources/elements/em-chat-msg",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatMsg=void 0;var a,o,s,l,c,d,u;e.EmChatMsg=(0,t.containerless)((o=function(){function e(){i(this,e),this.last=!0,n(this,"loginUser",s,this),n(this,"isAt",l,this),n(this,"channel",c,this),n(this,"chats",d,this),n(this,"actived",u,this),this.basePath=utils.getBasePath()}return e.prototype.attached=function(){this.initHotkeys()},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","o",function(t){t.preventDefault();var n=_.find(e.chats,{isHover:!0});n&&(n.isOpen=!n.isOpen)})},e.prototype.activedChanged=function(){if(this.actived){var e=this.actived.payload,t=e.result;this.actived.payload.action==nsCons.ACTION_TYPE_AT?(this.page=t,this.chats=_.map(t.content,function(e){if(e.chatReply){var t=e.chatReply;return t.chatAt=e,t}var n=e.chatChannel;return n.chatAt=e,n}),this.last=t.last,this.moreCnt=t.totalElements-(t.number+1)*t.size):this.actived.payload.action==nsCons.ACTION_TYPE_STOW?(this.chats=e.result,this.last=!0):this.actived.payload.action==nsCons.ACTION_TYPE_PIN?(this.chats=e.result,this.last=!0):this.actived.payload.action==nsCons.ACTION_TYPE_SEARCH&&(this.search=e.search,this.page=t,this.chats=t.content,this.last=t.last,this.moreCnt=t.totalElements-(t.number+1)*t.size)}},e.prototype.searchItemMouseleaveHandler=function(e){e.isOpen=!1,e.isHover=!1},e.prototype.searchItemMouseenterHandler=function(e){e.isHover=!0},e.prototype.gotoChatHandler=function(e){ea.publish(nsCons.EVENT_CHAT_SEARCH_GOTO_CHAT_ITEM,{chatItem:e})},e.prototype.openSearchItemHandler=function(e){e.isOpen=!e.isOpen},e.prototype.searchMoreHandler=function(){var e=this;this.actived.payload.action==nsCons.ACTION_TYPE_SEARCH?this.searchMoreP=$.get("/admin/chat/direct/search",{search:this.search,size:this.page.size,page:this.page.number+1},function(t){t.success&&(e.chats=_.concat(e.chats,t.data.content),e.page=t.data,e.last=t.data.last,e.moreCnt=t.data.totalElements-(t.data.number+1)*t.data.size)}):this.searchMoreP=$.get("/admin/chat/channel/getAts",{size:this.page.size,page:this.page.number+1},function(t){t.success&&(e.chats=_.concat(e.chats,_.map(t.data.content,function(e){var t=e.chatChannel;return t.chatAt=e,t})),e.page=t.data,e.last=t.data.last,e.moreCnt=t.data.totalElements-(t.data.number+1)*t.data.size)})},e.prototype.removePinHandler=function(e){var t=this;$.post("/admin/chat/channel/pin/toggle",{id:e.id,cid:this.channel.id},function(n,i,r){n.success?(t.chats=_.reject(t.chats,{id:e.id}),toastr.success("移除固定消息成功!")):toastr.error(n.data,"移除固定消息失败!")})},e.prototype.removeStowHandler=function(e){var t=this;$.post("/admin/chat/channel/removeStow",{id:e.chatStow.id},function(n,i,r){n.success?(t.chats=_.reject(t.chats,{id:e.id}),toastr.success("移除收藏消息成功!")):toastr.error(n.data,"移除收藏消息失败!")})},e.prototype.removeAtHandler=function(e){var t=this;$.post("/admin/chat/channel/markAsReaded",{chatAtId:e.chatAt.id},function(n,i,r){n.success?t.chats=_.reject(t.chats,{id:e.id}):toastr.error(n.data,"移除@消息失败!")})},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),d=r(o.prototype,"chats",[t.bindable],{enumerable:!0,initializer:null}),u=r(o.prototype,"actived",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-schedule-edit",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatScheduleEdit=void 0;var a,o,s;e.EmChatScheduleEdit=(0,t.containerless)((o=function(){function e(){var t=this;i(this,e),n(this,"loginUser",s,this),this.actorsOpts={onAdd:function(e,n,i){$.post("/admin/schedule/addActors",{id:t.event.id,basePath:utils.getBasePath(),actors:e},function(e,t,n){e.success?(toastr.success("添加参与者成功!"),ea.publish(nsCons.EVENT_SCHEDULE_REFRESH,{})):toastr.error(e.data)})},onLabelRemove:function(e){return t.loginUser.username!=e&&void $.post("/admin/schedule/removeActors",{id:t.event.id,basePath:utils.getBasePath(),actors:e},function(e,t,n){e.success?(toastr.success("移除参与者成功!"),ea.publish(nsCons.EVENT_SCHEDULE_REFRESH,{})):toastr.error(e.data)})}}}return e.prototype.attached=function(){$(this.startRef).calendar({today:!0,endCalendar:$(this.endRef)}),$(this.endRef).calendar({today:!0,startCalendar:$(this.startRef)})},e.prototype.initMembersUI=function(e){var t=this;e&&_.defer(function(){var e=[t.loginUser.username];t.event&&(e=_.map(t.event.actors,"username")),$(t.actorsRef).dropdown().dropdown("clear").dropdown("set selected",e).dropdown(t.actorsOpts)})},e.prototype.titleKeyupHandler=function(e){e.ctrlKey&&13===e.keyCode&&this.updateHandler()},e.prototype.clearStartDateHandler=function(){$(this.startRef).calendar("clear")},e.prototype.clearEndDateHandler=function(){$(this.endRef).calendar("clear")},e.prototype.show=function(e){this.event=_.clone(e),this.showHandler(),$(this.scheduleEditRef).popup({on:"click",inline:!0,silent:!0,position:"bottom center",jitter:300,prefer:"opposite",delay:{show:300,hide:300}}).popup("show")},e.prototype.showHandler=function(){var e=this;this.users=window.tmsUsers,$(this.actorsRef).dropdown().dropdown("clear"),_.defer(function(){e.event.start?$(e.startRef).calendar("set date",e.event.start.toDate()):$(e.startRef).calendar("clear"),e.event.end?$(e.endRef).calendar("set date",e.event.end.toDate()):$(e.endRef).calendar("clear");var t=_.map(e.event.actors,"username");$(e.actorsRef).dropdown("set selected",t).dropdown(e.actorsOpts),e.event.creator.username==e.loginUser.username&&$(e.titleRef).focus(),autosize.update(e.titleRef)})},e.prototype.updateHandler=function(){var e=this;if(!this.event.title)return void toastr.error("日程内容不能为空!");var t={id:this.event.id,basePath:utils.getBasePath(),title:this.event.title},n=$(this.startRef).calendar("get date"),i=$(this.endRef).calendar("get date");n?t.startDate=n:t.startDate=new Date,i&&(t.endDate=i),$.post("/admin/schedule/update2",t,function(t,n,i){t.success?(toastr.success("更新日程成功!"),$(e.scheduleEditRef).popup("hide"),ea.publish(nsCons.EVENT_SCHEDULE_REFRESH,{})):toastr.error(t.data)})},e.prototype.delHandler=function(){var e=this;this.emConfirmModal.show({onapprove:function(){$.post("/admin/schedule/delete",{id:e.event.id,basePath:utils.getBasePath()},function(e,t,n){e.success?(toastr.success("日程删除成功!"),ea.publish(nsCons.EVENT_SCHEDULE_REFRESH,{})):toastr.error(e.data)})}})},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-schedule-remind",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatScheduleRemind=void 0;var a,o,s;e.EmChatScheduleRemind=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"events",s,this),this.interval=5e3,this.headOffset=6e5,this.reminded=[],this._pollCheck()}return e.prototype.unbind=function(){this.timer&&clearInterval(this.timer)},e.prototype._pollCheck=function(){var e=this;this.timer=setInterval(function(){if(e.events){var t=(new Date).getTime();_.each(e.events,function(n){if(n.start&&!_.includes(e.reminded,n.id)){var i=n.start;i>t&&i
    '),e.find(".copy").click(function(t){d.default.copy(e.find(".cp-disp").text()).then(function(){toastr.success("复制颜色到剪贴板成功!")},function(e){toastr.error("复制颜色到剪贴板失败!")})})},cssAddon:'.cp-patch{float:left; margin:9px 0 0;height:24px; width: 24px; border:1px solid #aaa;}.cp-patch{background-image: url(\'data:image/gif;base64,R0lGODlhDAAMAIABAMzMzP///yH5BAEAAAEALAAAAAAMAAwAAAIWhB+ph5ps3IMyQFBvzVRq3zmfGC5QAQA7\');}.cp-patch div{height:24px; width: 24px;}.cp-disp{padding:4px 0 4px 4px; margin-top:10px; font-size:12px;height:16px; line-height:16px; color:#333;}.cp-color-picker{border:1px solid #999; padding:8px; box-shadow:5px 5px 16px rgba(0,0,0,0.4);background:#eee; overflow:visible; border-radius:3px;}.cp-color-picker:after{content:""; display:block; position:absolute; top:-8px; left:8px; border:8px solid #eee; border-width: 0px 8px 8px;border-color: transparent transparent #eee}.cp-color-picker:before{content:""; display:block; position:absolute; top:-9px; left:8px; border:8px solid #eee; border-width: 0px 8px 8px;border-color: transparent transparent #999}.cp-xy-slider{border:1px solid #aaa; margin-bottom:10px; width:150px; height:150px;}.cp-xy-slider:active {cursor:none;}.cp-xy-cursor{width:12px; height:12px; margin:-6px}.cp-z-slider{margin-left:8px; border:1px solid #aaa; height:150px; width:24px;}.cp-z-cursor{border-width:5px; margin-top:-5px;}.cp-color-picker .cp-alpha{width:152px; margin:10px 0 0; height:6px; border-radius:6px;overflow:visible; border:1px solid #aaa; box-sizing:border-box;background: linear-gradient(to right, rgba(238,238,238,1) 0%,rgba(238,238,238,0) 100%);}.cp-alpha-cursor{background: #eee; border-radius: 100%;width:14px; height:14px; margin:-5px -7px; border:1px solid #999!important;box-shadow:inset -2px -4px 3px #ccc}.cp-alpha:after{position:relative; content:"α"; color:#666; font-size:16px;font-family:monospace; position:absolute; right:-26px; top:-8px}'}}return e.prototype._setTheme=function(){$(".tms-left-sidebar").css({backgroundColor:this.theme.bg}),$(".tms-left-sidebar, .em-chat-settings").find(".my-theme").css({color:this.theme.color})},e.prototype.attached=function(){if(this.theme=_.extend({},this.defaultTheme),localStorage){var e=localStorage.getItem(nsCons.KEY_CHAT_ALARM);e&&_.extend(this.chatAlarm,JSON.parse(e));var t=localStorage.getItem(nsCons.KEY_CHAT_SIDEBAR_THEME);t&&(this.theme=_.extend({},this.theme,JSON.parse(t)),this._setTheme())}$(this.themeRef).popup({inline:!0,on:"click",position:"bottom right",hoverable:!0,closable:!1,boundary:".tms-left-sidebar",delay:{show:300,hide:300}});var n=this;$(this.bgRef).colorPicker(_.extend({},this.plugin,{color:this.theme.bg,renderCallback:function(e,t){var i=this.color.colors;i.RND.rgb;if($(".cp-patch div",this.$UI).css({"background-color":e[0].style.backgroundColor}),$(".cp-disp",this.$UI).text(this.color.options.colorNames[i.HEX]||e.val()),t===!0?($(".trigger").removeClass("active"),e.closest(".trigger").addClass("active")):t===!1&&e.closest(".trigger").removeClass("active"),_.isUndefined(t)){var r=this.color.colors,a="rgba("+r.RND.rgb.r+", "+r.RND.rgb.g+", "+r.RND.rgb.b+", "+r.alpha+")";$(".tms-left-sidebar").css({backgroundColor:a}),n.theme=_.extend({},n.theme?n.theme:this.defaultTheme,{bg:a}),localStorage&&localStorage.setItem(nsCons.KEY_CHAT_SIDEBAR_THEME,JSON.stringify(n.theme))}}})),$(this.colorRef).colorPicker(_.extend({},this.plugin,{color:this.theme.color,renderCallback:function(e,t){var i=this.color.colors;i.RND.rgb;if($(".cp-patch div",this.$UI).css({"background-color":e[0].style.backgroundColor}),$(".cp-disp",this.$UI).text(this.color.options.colorNames[i.HEX]||e.val()),t===!0?($(".trigger").removeClass("active"),e.closest(".trigger").addClass("active")):t===!1&&e.closest(".trigger").removeClass("active"),_.isUndefined(t)){var r=this.color.colors,a="rgba("+r.RND.rgb.r+", "+r.RND.rgb.g+", "+r.RND.rgb.b+", "+r.alpha+")";$(".tms-left-sidebar, .em-chat-settings").find(".my-theme").css({color:a}),n.theme=_.extend({},n.theme?n.theme:this.defaultTheme,{color:a}),localStorage&&localStorage.setItem(nsCons.KEY_CHAT_SIDEBAR_THEME,JSON.stringify(n.theme))}}}))},e.prototype.alarmHandler=function(e){this.chatAlarm[e]=Math.abs(1-this.chatAlarm[e]),localStorage&&localStorage.setItem(nsCons.KEY_CHAT_ALARM,JSON.stringify(this.chatAlarm))},e.prototype.clearThemeHandler=function(){this.theme=_.extend({},this.defaultTheme),this._setTheme(),localStorage&&localStorage.removeItem(nsCons.KEY_CHAT_SIDEBAR_THEME)},e}(),c=o(l.prototype,"barHide",[t.bindable],{enumerable:!0,initializer:function(){return!1}}),s=l))||s}),define("resources/elements/em-chat-share",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatShare=void 0;var a,o,s,l,c,d;e.EmChatShare=(0,t.containerless)((o=function(){function e(){i(this,e),this.shares=[],this.desc="",n(this,"chat",s,this),n(this,"channel",l,this),n(this,"loginUser",c,this),n(this,"isAt",d,this),this.basePath=utils.getBasePath()}return e.prototype.attached=function(){var e=this;$(this.searchRef).search({minCharacters:2,cache:!1,selectFirstResult:!0,showNoResults:!1,onSelect:function(t,n){t.item._id=_.uniqueId("share-item-"),t.item._type=t.item.username?"user":"channel",e.shares.push(t.item),_.defer(function(){$(e.inputSearchRef).val("")})},apiSettings:{onResponse:function(t){var n={results:[]};return $.each(t.data.users,function(t,i){_.find(_.filter(e.shares,function(e){return"user"==e._type}),{username:i.username})||n.results.push({item:i,title:' '+i.name+" ("+i.username+")"})}),$.each(t.data.channels,function(t,i){_.find(_.filter(e.shares,function(e){return"channel"==e._type}),{name:i.name})||n.results.push({item:i,title:' '+i.title+" ("+i.name+")"})}),n},url:"/admin/blog/share/to/search?search={query}"}}),$(this.shareRef).popup({on:"click",inline:!0,silent:!0,position:"bottom right",jitter:300,delay:{show:300,hide:300},onVisible:function(){$(e.inputSearchRef).focus()}})},e.prototype.shareSearchKeyupHandler=function(e){if(13===e.keyCode&&!$(this.searchRef).search("is visible")){var t=$(this.inputSearchRef).val();utils.isMail(t)&&(_.find(_.filter(this.shares,function(e){return"mail"==e._type}),{mail:t})||(this.shares.push({_id:_.uniqueId("share-item-"),_type:"mail",mail:t}),$(this.inputSearchRef).val("")))}},e.prototype.show=function(){$(this.shareRef).popup("show")},e.prototype.removeShareHandler=function(e){this.shares=_.reject(this.shares,{_id:e._id})},e.prototype.cancelHandler=function(){this._reset()},e.prototype._reset=function(){this.shares=[],this.desc="",$(this.inputSearchRef).val(""),$(this.shareRef).popup("hide")},e.prototype.shareHandler=function(){var e=this;return 0===this.shares.length?void toastr.error("请先指定沟通消息分享用户或者频道或者邮箱!"):void(this.ajaxS=$.post("/admin/chat/"+(this.isAt?"direct":"channel")+"/share",{basePath:utils.getBasePath(),href:this.basePath+"#/chat/"+(this.isAt?"@"+this.loginUser.username:this.channel.name)+"?id="+this.chat.id,id:this.chat.id,desc:this.desc,html:utils.md2html(this.chat.content,!0),users:_.chain(this.shares).filter(function(e){ +return"user"==e._type}).map("username").join().value(),channels:_.chain(this.shares).filter(function(e){return"channel"==e._type}).map("name").join().value(),mails:_.chain(this.shares).filter(function(e){return"mail"==e._type}).map("mail").join().value()},function(t,n,i){t.success?(e._reset(),toastr.success("沟通消息分享成功!")):toastr.error(t.data,"沟通消息分享失败!")}))},e}(),s=r(o.prototype,"chat",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),d=r(o.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-sidebar-left",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatSidebarLeft=void 0;var a,o,s,l,c,d,u;e.EmChatSidebarLeft=(0,t.containerless)((o=function(){function e(){var t=this;i(this,e),n(this,"users",s,this),n(this,"loginUser",l,this),n(this,"channels",c,this),n(this,"chatTo",d,this),n(this,"isAt",u,this),this.filter="",this.isSuper=nsCtx.isSuper,this.isMobile=utils.isMobile(),this.isLeftBarHide=!0,this.subscribe=ea.subscribe(nsCons.EVENT_CHANNEL_ACTIONS,function(e){t[e.action](e.item)}),this.subscribe2=ea.subscribe(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,function(e){e?t.isLeftBarHide=e:t.isLeftBarHide=!t.isLeftBarHide})}return e.prototype.usersChanged=function(){this._filter()},e.prototype.channelsChanged=function(){this._filter()},e.prototype.loginUserChanged=function(){this.loginUser&&(this.isSuper=utils.isSuperUser(this.loginUser))},e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe2.dispose()},e.prototype.attached=function(){var e=this;$(this.logoRef).on("mouseenter",function(t){$(e.logoRef).animateCss("flip")})},e.prototype._filter=function(){var e=this;_.each(this.users,function(t){t.hidden=t.username.indexOf(e.filter)==-1}),_.each(this.channels,function(t){t.hidden=t.name.indexOf(e.filter)==-1})},e.prototype.chatToUserFilerKeyupHanlder=function(e){if(this._filter(),13===e.keyCode){var t=_.find(this.users,{hidden:!1});if(t)return void(window.location=wurl("path")+("#/chat/@"+t.username));var n=_.find(this.channels,{hidden:!1});if(n)return void(window.location=wurl("path")+("#/chat/"+n.name))}},e.prototype.clearFilterHandler=function(){var e=this;this.filter="",_.each(this.users,function(t){t.hidden=t.username.indexOf(e.filter)==-1}),_.each(this.channels,function(t){t.hidden=t.name.indexOf(e.filter)==-1})},e.prototype.editHandler=function(e){this.selectedChannel=e,this.channelEditMd.show()},e.prototype.delHandler=function(e){var t=this;this.confirmMd.show({onapprove:function(){$.post("/admin/channel/delete",{id:e.id},function(n){n.success?(toastr.success("删除频道成功!"),_.remove(t.channels,{id:e.id}),ea.publish(nsCons.EVENT_CHAT_CHANNEL_DELETED,{channel:e})):toastr.error(n.data,"删除频道失败!")})}})},e.prototype.membersMgrHandler=function(e){this.selectedChannel=e,this.channelMembersMgrMd.show()},e.prototype.membersShowHandler=function(e){this.selectedChannel=e,this.channelMembersShowMd.show()},e.prototype.leaveHandler=function(e){this.confirmMd.show({content:'确定要离开频道'+e.title+"吗?",onapprove:function(){$.post("/admin/channel/leave",{id:e.id},function(e){e.success?(toastr.success("离开频道成功!"),ea.publish(nsCons.EVENT_CHAT_CHANNEL_LEAVED,{channel:e.data})):toastr.error(e.data,"离开频道失败!")})}})},e.prototype.switchHandler=function(){ea.publish(nsCons.EVENT_SWITCH_CHAT_TO,{})},e.prototype.isSubscribed=function(e){return _.some(e.subscriber,{username:this.loginUser.username})},e.prototype.subscribeHandler=function(e){var t=this.isSubscribed(e);$.post("/admin/channel/"+(t?"unsubscribe":"subscribe"),{id:e.id},function(n){n.success?(e.subscriber=n.data.subscriber,toastr.success((t?"取消订阅":"订阅频道")+"成功!"),e.isSubscribed=!t):toastr.error(n.data,(t?"取消订阅":"订阅频道")+"失败!")})},e.prototype.channelHandler=function(){return ea.publish(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,!0),!0},e.prototype.userHandler=function(){return ea.publish(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,!0),!0},e}(),s=r(o.prototype,"users",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"channels",[t.bindable],{enumerable:!0,initializer:null}),d=r(o.prototype,"chatTo",[t.bindable],{enumerable:!0,initializer:null}),u=r(o.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-sidebar-right",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatSidebarRight=void 0;var a,o,s,l,c;e.EmChatSidebarRight=(0,t.containerless)((o=function(){function e(){var t,r=this;i(this,e),n(this,"loginUser",s,this),n(this,"isAt",l,this),n(this,"channel",c,this),this.actionMapping=(t={},t[nsCons.ACTION_TYPE_DIR]={handler:this.dirHandler,nodata:"",show:"dir",icon:"unordered list",title:"消息目录"},t[nsCons.ACTION_TYPE_AT]={nodata:"暂无@消息",show:"msg",icon:"at",title:"我的消息"},t[nsCons.ACTION_TYPE_STOW]={nodata:"暂无收藏消息",show:"msg",icon:"empty star",title:"我的收藏"},t[nsCons.ACTION_TYPE_ATTACH]={handler:this.attachHandler,nodata:"",show:"attach",icon:"attach",title:"频道附件"},t[nsCons.ACTION_TYPE_SCHEDULE]={handler:this.scheduleHandler,nodata:"",show:"schedule",icon:"calendar outline",title:"我的日程"},t[nsCons.ACTION_TYPE_SEARCH]={nodata:"无符合检索结果",show:"msg",icon:"search",title:"检索结果"},t[nsCons.ACTION_TYPE_PIN]={nodata:"暂无频道固定消息",show:"msg",icon:"pin",title:"频道固定消息"},t[nsCons.ACTION_TYPE_TOPIC]={nodata:"",show:"topic",icon:"talk outline",title:"话题讨论"},t),this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,function(e){r.actived=_.clone(r.actionMapping[e.action]),r.actived.payload=e,r.actived.handler&&_.bind(r.actived.handler,r,e)()}),this.subscribe1=ea.subscribe(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_SCROLL_TO,function(e){$('.em-chat-sidebar-right div[ref="scrollbarRef"]').scrollTo(e,120)})}return e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe1.dispose()},e.prototype.attachHandler=function(e){this.chatAttachVm.fetch()},e.prototype.dirHandler=function(e){$(this.dirRef).empty().append(e.result)},e.prototype.scheduleHandler=function(e){this.chatScheduleVm.show()},e.prototype.closeHandler=function(){ea.publish(nsCons.EVENT_CHAT_TOGGLE_RIGHT_SIDEBAR,{})},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-system-link-mgr",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatSystemLinkMgr=void 0;var i;e.EmChatSystemLinkMgr=(0,t.containerless)(i=function(){function e(){n(this,e),this.links=[]}return e.prototype.addHandler=function(){var e=this;$.post("/admin/link/create",{title:this.title,href:this.href,type:"App"},function(t,n,i){t.success?(e.title="",e.href="",e.links.push(t.data),ea.publish(nsCons.EVENT_SYSTEM_LINKS_REFRESH,{})):toastr.error(t.data)})},e.prototype.delHandler=function(e){var t=this;$.post("/admin/link/delete",{id:e.id},function(n,i,r){n.success?(t.links=_.reject(t.links,{id:e.id}),ea.publish(nsCons.EVENT_SYSTEM_LINKS_REFRESH,{}),toastr.success("删除成功!")):toastr.error(n.data)})},e.prototype.editHandler=function(e){e.oldTitle=e.title,e.oldHref=e.href,e.isEditing=!0},e.prototype.updateHandler=function(e){$.post("/admin/link/update",{id:e.id,title:e.title,href:e.href},function(t,n,i){t.success?(e.isEditing=!1,ea.publish(nsCons.EVENT_SYSTEM_LINKS_REFRESH,{}),toastr.success("更新成功!")):toastr.error(t.data)})},e.prototype.showHandler=function(){var e=this;$.get("/admin/link/listByApp",function(t){t.success?e.links=t.data:e.links=[]})},e.prototype.show=function(){this.emModal.show({autoDimmer:!1})},e.prototype.approveHandler=function(e){},e}())||i}),define("resources/elements/em-chat-top-menu",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatTopMenu=void 0;var a,o,s,l,c,d,u,m,p,g,h;e.EmChatTopMenu=(0,t.containerless)((o=function(){function e(){var t=this;i(this,e),n(this,"loginUser",s,this),n(this,"chatUser",l,this),n(this,"users",c,this),n(this,"channels",d,this),n(this,"channel",u,this),n(this,"loginUser",m,this),n(this,"chatId",p,this),n(this,"chatTo",g,this),n(this,"isAt",h,this),this.isRightSidebarShow=!1,this.activeType="",this.ACTION_TYPE_SEARCH=nsCons.ACTION_TYPE_SEARCH,this.ACTION_TYPE_STOW=nsCons.ACTION_TYPE_STOW,this.ACTION_TYPE_PIN=nsCons.ACTION_TYPE_PIN,this.ACTION_TYPE_AT=nsCons.ACTION_TYPE_AT,this.ACTION_TYPE_DIR=nsCons.ACTION_TYPE_DIR,this.ACTION_TYPE_ATTACH=nsCons.ACTION_TYPE_ATTACH,this.ACTION_TYPE_SCHEDULE=nsCons.ACTION_TYPE_SCHEDULE,this.countAt=null,this.newAtCnt=0,this.channelLinks=[],this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_MSG_WIKI_DIR,function(e){t.dir=e.dir,t.activeType==t.ACTION_TYPE_DIR&&t.isRightSidebarShow&&ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:t.activeType,result:t.dir})}),this.subscribe1=ea.subscribe(nsCons.EVENT_CHAT_POLL_UPDATE,function(e){null!==t.countAt&&t.newAtCnt<=0&&(t.newAtCnt=e.countAt-t.countAt),t.countAt=e.countAt,t.countMyRecentSchedule=e.countMyRecentSchedule}),this.subscribe2=ea.subscribe(nsCons.EVENT_SWITCH_CHAT_TO,function(e){$(t.chatToDropdownRef).dropdown("toggle")}),this.subscribe3=ea.subscribe(nsCons.EVENT_CHANNEL_LINKS_REFRESH,function(e){t._refreshChannelLinks()}),this.subscribe4=ea.subscribe(nsCons.EVENT_CHAT_TOPIC_SHOW,function(e){t.showTopicHandler(e)}),this.subscribe5=ea.subscribe(nsCons.EVENT_CHAT_TOGGLE_RIGHT_SIDEBAR,function(e){t.toggleRightSidebar()})}return e.prototype.loginUserChanged=function(){this.loginUser&&(this.isSuper=utils.isSuperUser(this.loginUser))},e.prototype.chatToChanged=function(){$(this.chatToDropdownRef).dropdown("set selected",this.chatId).dropdown("hide")},e.prototype.channelChanged=function(){this._refreshChannelLinks()},e.prototype._refreshChannelLinks=function(){var e=this;this.channel&&$.get("/admin/link/listBy",{channelId:this.channel.id},function(t){t.success?e.channelLinks=t.data:e.channelLinks=[]})},e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe1.dispose(),this.subscribe2.dispose(),this.subscribe3.dispose(),this.subscribe4.dispose(),this.subscribe5.dispose()},e.prototype.attached=function(){this.initHotkeys(),this.initSearch()},e.prototype.initSearch=function(){var e=this,t=[];if(localStorage){var n=localStorage.getItem("tms/chat-direct:search");t=n?$.parseJSON(n):[]}this.searchSource=t,$(this.searchRef).search({source:t,onSelect:function(t,n){e.searchHandler()},onResults:function(){$(e.searchRef).search("hide results")}})},e.prototype.searchHandler=function(){var e=this;$(this.searchRef).search("hide results");var t=$(this.searchInputRef).val();if(!t||t.length<2)return void toastr.error("检索条件至少需要两个字符!");this.search=t;var n=!1;$.each(this.searchSource,function(e,i){if(i.title==t)return n=!0,!1}),n||(this.searchSource.splice(0,0,{title:t}),$(this.searchRef).search({source:_.clone(this.searchSource)})),localStorage&&localStorage.setItem("tms/chat-direct:search",JSON.stringify(this.searchSource));var i=void 0,r=void 0;this.isAt?(i="/admin/chat/direct/search",r={search:this.search,size:20,page:0}):(i="/admin/chat/channel/search",r={search:this.search,channelId:this.channel.id,size:20,page:0}),this.searchingP=$.get(i,r,function(t){t.success&&(e.toggleRightSidebar(!0),ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:e.activeType,result:t.data,search:e.search}))})},e.prototype.initHotkeys=function(){var e=this;$(document).bind("keydown","s",function(t){t.preventDefault(),e.toggleRightSidebar()}).bind("keydown","ctrl+k",function(t){t.preventDefault(),$(e.chatToDropdownRef).dropdown("toggle")}),$(this.filterChatToUser).bind("keydown","ctrl+k",function(t){t.preventDefault(),$(e.chatToDropdownRef).dropdown("toggle")})},e.prototype.initChatToDropdownHandler=function(e){var t=this;e&&_.defer(function(){$(t.chatToDropdownRef).dropdown().dropdown("set selected",t.chatId).dropdown({onChange:function(e,t,n){window.location=wurl("path")+("#/chat/"+n.attr("data-id"))}})})},e.prototype.searchFocusHandler=function(){$(this.searchInputRef).css("width","auto"),$(this.searchRemoveRef).show(),this.isActiveSearch=!0},e.prototype.searchBlurHandler=function(){$(this.searchInputRef).val()||($(this.searchInputRef).css("width","95px"),$(this.searchRemoveRef).hide(),this.isActiveSearch=!1)},e.prototype.sibebarRightHandler=function(e){this.toggleRightSidebar()},e.prototype.toggleRightSidebar=function(e){_.isUndefined(e)?this.isRightSidebarShow=nsCtx.isRightSidebarShow=!this.isRightSidebarShow:this.isRightSidebarShow=nsCtx.isRightSidebarShow=e,ea.publish(nsCons.EVENT_CHAT_SIDEBAR_TOGGLE,{isShow:this.isRightSidebarShow})},e.prototype.searchKeyupHandler=function(e){return 13===e.keyCode?(this.activeType=nsCons.ACTION_TYPE_SEARCH,this.searchHandler()):27===e.keyCode&&this.clearSearchHandler(),!0},e.prototype.clearSearchHandler=function(){$(this.searchInputRef).val("").focus()},e.prototype.showStowHandler=function(e){var t=this;return this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_STOW&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_STOW,void(this.ajaxStow=$.get("/admin/chat/channel/getStows",function(e){if(e.success){var n=_.map(e.data,function(e){if(e.chatReply){var t=e.chatReply;return t.chatStow=e,t}var n=e.chatChannel;return n.chatStow=e,n});ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:t.activeType,result:_.reverse(n)}),t.toggleRightSidebar(!0)}else toastr.error(e.data,"获取收藏消息失败!")})))},e.prototype.showAtHandler=function(e){var t=this;return this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_AT&&0==this.newAtCnt&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_AT,this.newAtCnt=0,void(this.ajaxAt=$.get("/admin/chat/channel/getAts",{page:0,size:20},function(e){e.success?(ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:t.activeType,result:e.data}),t.toggleRightSidebar(!0)):toastr.error(e.data,"获取@消息失败!")})))},e.prototype.logoutHandler=function(){$.post("/admin/logout").always(function(){utils.redirect2Login(),window.location.reload()})},e.prototype.showWikiDirHandler=function(e){return this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_DIR&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_DIR,ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:this.activeType,result:this.dir}),void this.toggleRightSidebar(!0))},e.prototype.showAttachHandler=function(e){return this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_ATTACH&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_ATTACH,ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:this.activeType}),void this.toggleRightSidebar(!0))},e.prototype.showScheduleHandler=function(e){return this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_SCHEDULE&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_SCHEDULE,ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:this.activeType}),void this.toggleRightSidebar(!0))},e.prototype.userEditHandler=function(){this.userEditMd.show()},e.prototype.membersShowHandler=function(e,t){t.stopImmediatePropagation(),ea.publish(nsCons.EVENT_CHANNEL_ACTIONS,{action:"membersShowHandler",item:e})},e.prototype.leaveHandler=function(e,t){t.stopImmediatePropagation(),ea.publish(nsCons.EVENT_CHANNEL_ACTIONS,{action:"leaveHandler",item:e})},e.prototype.membersMgrHandler=function(e,t){t.stopImmediatePropagation(),ea.publish(nsCons.EVENT_CHANNEL_ACTIONS,{action:"membersMgrHandler",item:e})},e.prototype.editHandler=function(e,t){t.stopImmediatePropagation(),ea.publish(nsCons.EVENT_CHANNEL_ACTIONS,{action:"editHandler",item:e})},e.prototype.delHandler=function(e,t){t.stopImmediatePropagation(),ea.publish(nsCons.EVENT_CHANNEL_ACTIONS,{action:"delHandler",item:e})},e.prototype.viewOrMgrUsersHandler=function(e){this.channel.owner.username==this.loginUser.username?this.membersMgrHandler(this.channel,e):this.membersShowHandler(this.channel,e)},e.prototype.channelInfoHandler=function(e){this.channel.owner.username==this.loginUser.username?this.editHandler(this.channel,e):e.stopImmediatePropagation()},e.prototype.userInfoHandler=function(e){e.stopImmediatePropagation()},e.prototype.stopImmediatePropagationHandler=function(e){e.stopImmediatePropagation()},e.prototype.mailToHandler=function(e){e.stopImmediatePropagation(),window.location="mailto:"+this.chatUser.mails},e.prototype.channelLinksHandler=function(e){e.stopImmediatePropagation(),$(this.channelLinksDdRef).dropdown("toggle")},e.prototype.addChannelLinkHandler=function(e){this.channelLinkMgrVm.show()},e.prototype.openChannelLinkHandler=function(e,t){e.stopImmediatePropagation(),$(this.channelLinksDdRef).dropdown("hide"),utils.openNewWin(t.href),$.post("/admin/link/count/inc",{id:t.id})},e.prototype.showPinHandler=function(e){var t=this;return e.stopImmediatePropagation(),this.isRightSidebarShow&&this.activeType==nsCons.ACTION_TYPE_PIN&&!e.ctrlKey?void this.toggleRightSidebar():(this.activeType=nsCons.ACTION_TYPE_PIN,void(this.ajaxPin=$.get("/admin/chat/channel/pin/list",{cid:this.channel.id},function(e){if(e.success){var n=_.map(e.data,function(e){var t=e.chatChannel;return t.chatPin=e,t});ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:t.activeType,result:_.reverse(n)}),t.toggleRightSidebar(!0)}else toastr.error(e.data,"获取频道固定消息失败!")})))},e.prototype.showTopicHandler=function(e){this.activeType=nsCons.ACTION_TYPE_TOPIC,ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_TOGGLE,{action:this.activeType,result:e}),this.toggleRightSidebar(!0)},e.prototype.toggleLeftBarHandler=function(){ea.publish(nsCons.EVENT_CHAT_TOGGLE_LEFT_SIDEBAR,null)},e}(),s=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),l=r(o.prototype,"chatUser",[t.bindable],{enumerable:!0,initializer:null}),c=r(o.prototype,"users",[t.bindable],{enumerable:!0,initializer:null}),d=r(o.prototype,"channels",[t.bindable],{enumerable:!0,initializer:null}),u=r(o.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),m=r(o.prototype,"loginUser",[t.bindable],{enumerable:!0,initializer:null}),p=r(o.prototype,"chatId",[t.bindable],{enumerable:!0,initializer:null}),g=r(o.prototype,"chatTo",[t.bindable],{enumerable:!0,initializer:null}),h=r(o.prototype,"isAt",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("resources/elements/em-chat-topic-input",["exports","aurelia-framework","common/common-tips","common/common-emoji","simplemde","textcomplete"],function(e,t,n,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatTopicInput=void 0;var c,d,u,m,p=a(n),g=a(i),h=a(r);e.EmChatTopicInput=(0,t.containerless)((d=function(){function e(){var t=this;s(this,e),o(this,"channel",u,this),o(this,"chat",m,this),this.members=[],this.isMobile=utils.isMobile(),this.subscribe1=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,function(e){t.members=[nsCtx.memberAll].concat(e.members)}),this.subscribe2=ea.subscribe(nsCons.EVENT_CHAT_TOPIC_MSG_INSERT,function(e){t.insertContent(e.content)})}return e.prototype.channelChanged=function(){this.channel?this.members=[nsCtx.memberAll].concat(this.channel.members):this.members=[]},e.prototype.unbind=function(){this.subscribe1.dispose(),this.subscribe2.dispose()},e.prototype.attached=function(){this.initSimpleMDE(this.chatInputRef),this.initDropzone(),this.initPaste()},e.prototype.initPaste=function(){var e=this,t=void 0;t=this.$chatMsgInputRef.is("textarea")?$(this.$chatMsgInputRef).pastableTextarea():$(this.$chatMsgInputRef).pastableContenteditable(),t&&t.on("pasteImage",function(t,n){$.post("/admin/file/base64",{dataURL:n.dataURL,type:n.blob.type,toType:nsCtx.isAt?"User":"Channel",toId:nsCtx.chatTo},function(t,n,i){t.success&&e.insertContent("![{name}]({baseURL}{path}{uuidName})".replace(/\{name\}/g,t.data.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.data.path).replace(/\{uuidName\}/g,t.data.uuidName))})}).on("pasteImageError",function(e,t){toastr.error(t.message,"剪贴板粘贴图片错误!")})},e.prototype.initDropzone=function(){var e=this;this.initUploadDropzone($(".CodeMirror-wrap",this.inputRef),function(){return e.$chatMsgInputRef},!1),this.initUploadDropzone($(this.btnItemUploadRef).children().andSelf(),function(){return e.$chatMsgInputRef},!0),$(this.chatBtnRef).popup({inline:!0,hoverable:!0,position:"bottom left",delay:{show:300,hide:300}})},e.prototype.initUploadDropzone=function(e,t,n){var i=this;$(e).dropzone({url:"/admin/file/upload",paramName:"file",clickable:!!n,dictDefaultMessage:"",maxFilesize:10,addRemoveLinks:!0,previewsContainer:this.chatStatusBarRef,previewTemplate:this.previewTemplateRef.innerHTML,dictCancelUpload:"取消上传",dictCancelUploadConfirmation:"确定要取消上传吗?",dictFileTooBig:"文件过大({{filesize}}M),最大限制:{{maxFilesize}}M",init:function(){this.on("sending",function(e,n,i){t()?(i.append("toType",nsCtx.isAt?"User":"Channel"),i.append("toId",nsCtx.chatTo)):this.removeAllFiles(!0)}),this.on("success",function(e,t){t.success?($.each(t.data,function(e,t){"Image"==t.type?i.insertContent("![{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,t.path).replace(/\{uuidName\}/g,t.uuidName)):i.insertContent("[{name}]({baseURL}{path}{uuidName}) ".replace(/\{name\}/g,t.name).replace(/\{baseURL\}/g,utils.getBaseUrl()+"/").replace(/\{path\}/g,"admin/file/download/").replace(/\{uuidName\}/g,t.id))}),toastr.success("上传成功!")):toastr.error(t.data,"上传失败!")}),this.on("error",function(e,t,n){toastr.error(t,"上传失败!")}),this.on("complete",function(e){this.removeFile(e)})}})},e.prototype.initSimpleMDE=function(e){var t=this;this.simplemde=new h.default({element:e,spellChecker:!1,status:!1,autofocus:!0,toolbar:!1,autoDownloadFontAwesome:!1,insertTexts:{table:["","\n\n| 列1 | 列2 | 列3 |\n| ------ | ------ | ------ |\n| 文本 | 文本 | 文本 |\n\n"]},previewRender:function(e,n){return t.simplemde.markdown(utils.preParse(e))}}),this.$chatMsgInputRef=$(this.inputRef).find(".textareaWrapper .CodeMirror textarea"),0===this.$chatMsgInputRef.size()&&(this.$chatMsgInputRef=$(this.inputRef).find('.textareaWrapper .CodeMirror [contenteditable="true"]')),this.initTextcomplete()},e.prototype.initTextcomplete=function(){var e=this;$(this.$chatMsgInputRef).textcomplete([{match:/(|\b)(\/.*)$/,search:function(e,t){var n=_.keys(p.default);t($.map(n,function(t){return 0===t.indexOf(e)?t:null}))},template:function(e,t){return p.default[e].label},replace:function(t){return e.tipsActionHandler(t)?(e.setCaretPosition(p.default[t].line,p.default[t].ch),"$1"+p.default[t].value):""}},{match:/(^|\s)@(\w*)$/,search:function(t,n){n($.map(e.members,function(e){return e.enabled&&e.username.indexOf(t)>=0?e.username:null}))},template:function(t,n){var i=_.find(e.members,{username:t});return i.name+" - "+i.mails+" ("+i.username+")"},replace:function(e){return"$1{~"+e+"}"}},{match:/(^|\s):([\+\-\w]*)$/,search:function(e,t){t($.map(g.default,function(t){return _.some(t.split("_"),function(t){return 0===t.indexOf(e)})?t:null}))},template:function(e,t){if("search"==e)return"表情查找 - :search";var n=":"+e+":";return emojify.replace(n)+" - "+n},replace:function(t){return e.tipsActionHandler(t)?"$1:"+t+": ":""}}],{appendTo:".tms-chat-topic-status-bar",maxCount:nsCons.NUM_TEXT_COMPLETE_MAX_COUNT}),this.simplemde.codemirror.on("keydown",function(t,n){_.includes([13,38,40],n.keyCode)&&e.isTipsShow()?n.preventDefault():n.ctrlKey&&13===n.keyCode?e.sendChatMsg():27===n.keyCode?e.simplemde.value(""):n.ctrlKey&&85==n.keyCode?$(e.btnItemUploadRef).find(".content").click():n.ctrlKey&&191==n.keyCode})},e.prototype.setCaretPosition=function(e,t){var n=this;(e||t)&&_.delay(function(){var i=n.simplemde.codemirror.getCursor();n.simplemde.codemirror.setCursor({line:i.line-(e?e:0),ch:i.line?t?t:0:i.ch-(t?t:0)})},100)},e.prototype.sendChatMsg=function(){var e=this,t=this.simplemde.value();return $.trim(t)?void(this.sending||(this.sending=!0,$.post("/admin/chat/channel/reply/add",{url:utils.getUrl(),usernames:utils.parseUsernames(t,this.members).join(","),content:t,contentHtml:utils.md2html(t,!0),id:this.chat.id},function(t,n,i){t.success?(e.simplemde.value(""),ea.publish(nsCons.EVENT_CHAT_TOPIC_MSG_SENDED,{data:t.data})):toastr.error(t.data,"发送消息失败!")}).always(function(){e.sending=!1}))):void this.simplemde.value("")},e.prototype.sendChatMsgHandler=function(){this.sendChatMsg()},e.prototype.isTipsShow=function(){return 1===$(this.chatStatusBarRef).find(".textcomplete-dropdown:visible").size()},e.prototype.insertContent=function(e,t){try{var n=t?t.codemirror:this.simplemde.codemirror,i=n.getCursor();i&&(n.replaceRange(e,i,i),n.focus())}catch(e){console.log(e)}},e.prototype.tipsActionHandler=function(e){if("/upload"==e)$(this.btnItemUploadRef).find(".content").click();else if("/shortcuts"==e);else{if("search"!=e)return!0;_.delay(function(){utils.openNewWin(nsCons.STR_EMOJI_SEARCH_URL)},200)}return!1},e.prototype.togglePreviewHandler=function(){this.simplemde.togglePreview()},e}(),u=l(d.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),m=l(d.prototype,"chat",[t.bindable],{enumerable:!0,initializer:null}),c=d))||c}),define("resources/elements/em-chat-topic",["exports","aurelia-framework","common/common-poll2"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmChatTopic=void 0;var s,l,c,d,u=i(n),m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.EmChatTopic=(0,t.containerless)((l=function(){function e(){var t=this;a(this,e),r(this,"actived",c,this),r(this,"channel",d,this),this.isSuper=nsCtx.isSuper,this.loginUser=nsCtx.loginUser,this.members=[],this.offset=0,this.chat=null,this.basePath=utils.getBasePath(),this.subscribe=ea.subscribe(nsCons.EVENT_CHAT_TOPIC_MSG_SENDED,function(e){_.some(t.chat.chatReplies,{id:e.data.id})||(t.chat.chatReplies.push(e.data),t.scrollToBottom()),t.isFollower=!0,u.default.reset()}),this.subscribe1=ea.subscribe(nsCons.EVENT_CHAT_CHANNEL_MEMBER_ADD_OR_REMOVE,function(e){t.members=[nsCtx.memberAll].concat(e.members)})}return e.prototype.scrollToBottom=function(){this.scrollTo("max")},e.prototype.scrollTo=function(e){_.defer(function(){return ea.publish(nsCons.EVENT_CHAT_RIGHT_SIDEBAR_SCROLL_TO,e)})},e.prototype._scrollTo=function(e){"b"==e?$(this.commentsRef).closest(".scroll-content").scrollTo("max"):"t"==e?$(this.commentsRef).closest(".scroll-content").scrollTo(0):_.some(this.chat.chatReplies,{id:+e})?($(this.commentsRef).closest(".scroll-content").scrollTo('.tms-reply.comment[data-id="'+e+'"]',{offset:this.offset}),$(this.commentsRef).find(".comment[data-id]").removeClass("active"),$(this.commentsRef).find(".comment[data-id="+e+"]").addClass("active")):($(this.commentsRef).closest(".scroll-content").scrollTo("max"),toastr.warning("消息["+e+"]不存在,可能已经被删除!"))},e.prototype.scrollToAfterImgLoaded=function(e){var t=this;_.defer(function(){new ImagesLoaded(t.commentsRef).always(function(){t._scrollTo(e)}),t._scrollTo(e)})},e.prototype.attached=function(){var e=this;$(this.commentsRef).on("dblclick",".comment.tms-reply",function(t){if(t.ctrlKey){var n=function(){var n=$(t.currentTarget).attr("data-id"),i=$(t.currentTarget).find(".content > textarea"),r=_.find(e.chat.chatReplies,{id:Number.parseInt(n)});return e.isSuper||r.creator.username==e.loginUser.username?(r.isEditing=!0,r.contentOld=r.content,void _.defer(function(){i.focus().select(),autosize.update(i.get(0))})):{v:void 0}}();if("object"===("undefined"==typeof n?"undefined":m(n)))return n.v}}),$(this.commentsRef).on("click",".markdown-body .at-user",function(e){e.preventDefault(),ea.publish(nsCons.EVENT_CHAT_TOPIC_MSG_INSERT,{content:"{~"+$(e.currentTarget).attr("data-value")+"} "})})},e.prototype.unbind=function(){this.subscribe.dispose(),this.subscribe1.dispose(),u.default.stop()},e.prototype.channelChanged=function(){this.channel?this.members=[nsCtx.memberAll].concat(this.channel.members):this.members=[]; +},e.prototype._poll=function(){var e=this;u.default.start(function(t,n){nsCtx.isRightSidebarShow||n();var i=_.last(e.chat.chatReplies);e.ajaxTopic=$.get("/admin/chat/channel/reply/poll",{id:e.chat.id,rid:i?i.id:null},function(i){i.success?i.data.length>0&&(e._checkNeedNotify(i),e.chat.chatReplies=_.unionBy(e.chat.chatReplies,i.data,"id"),e.scrollToBottom(),t()):n()})})},e.prototype._checkNeedNotify=function(e){var t=this;if(0==e.data.length)return!1;var n=_.some(e.data,function(e){return e.creator.username==t.loginUser.username}),i=utils.getAlarm();n||i.off||!i.news||push.create("TMS沟通频道消息通知",{body:"频道["+this.channel.title+"]有新的话题回复消息了!",icon:{x16:"img/tms-x16.ico",x32:"img/tms-x32.png"},timeout:5e3})},e.prototype._getFollowers=function(){var e=this;$.get("/admin/chat/channel/follower/list",{id:this.chat.id},function(t){t.success&&(e.followers=t.data,e.isFollower=_.some(e.followers,function(t){return t.creator.username==e.loginUser.username}))})},e.prototype.activedChanged=function(e,t){if(!e||this.actived.payload.action!=nsCons.ACTION_TYPE_TOPIC)return void u.default.stop();this.chat=this.actived.payload.result.chat;var n=_.last(this.chat.chatReplies);n&&(n.__scroll=!0),this.rid=this.actived.payload.result.rid,this._poll(),this._getFollowers()},e.prototype.notifyRendered=function(e,t){var n=this;e&&_.defer(function(){t.__scroll&&(n.scrollToAfterImgLoaded(n.rid?n.rid:"b"),delete t.__scroll)})},e.prototype.removeHandler=function(e){var t=this;$.post("/admin/chat/channel/reply/remove",{rid:e.id},function(e,n,i){e.success?t.chat.chatReplies=_.reject(t.chat.chatReplies,{id:e.data}):toastr.error(e.data)})},e.prototype.editHandler=function(e,t){e.isEditing=!0,e.contentOld=e.content,_.defer(function(){$(t).focus().select(),autosize.update(t)})},e.prototype.eidtKeydownHandler=function(e,t,n){return!this.sending&&(e.ctrlKey&&13===e.keyCode?(this.editSave(t,n),!1):e.ctrlKey&&85===e.keyCode?($(n).next(".tms-edit-actions").find(".upload").click(),!1):(27===e.keyCode&&this.editCancelHandler(e,t,n),!0))},e.prototype.editSave=function(e,t){var n=this;this.sending=!0,e.content=$(t).val();utils.md2html(e.content,!0),utils.md2html(e.contentOld,!0);$.post("/admin/chat/channel/reply/update",{url:utils.getUrl(),rid:e.id,version:e.version,usernames:utils.parseUsernames(e.content,this.members).join(","),content:e.content,diff:utils.diffS(e.contentOld,e.content)},function(t,n,i){t.success?(toastr.success("更新消息成功!"),e.isEditing=!1,e.version=t.data.version):toastr.error(t.data,"更新消息失败!")}).always(function(){n.sending=!1})},e.prototype.editOkHandler=function(e,t,n){this.editSave(t,n),t.isEditing=!1},e.prototype.editCancelHandler=function(e,t,n){t.content=t.contentOld,$(n).val(t.content),t.isEditing=!1},e.prototype.replyHandler=function(){this.scrollToBottom(),_.defer(function(){return ea.publish(nsCons.EVENT_CHAT_TOPIC_MSG_INSERT,{content:""})})},e.prototype.followerHandler=function(){var e=this;$.post("/admin/chat/channel/follower/"+(this.isFollower?"remove":"add"),{id:this.chat.id},function(t,n,i){t.success?(toastr.success((e.isFollower?"取消":"")+"关注话题成功!"),e.isFollower=!e.isFollower):toastr.error(t.data)})},e.prototype.refreshHandler=function(){var e=this;$.get("/admin/chat/channel/get",{id:this.chat.id},function(t){_.extend(e.chat,t.data),toastr.success("刷新同步成功!")})},e.prototype.refreshReplyHandler=function(e){$.get("/admin/chat/channel/reply/get",{rid:e.id},function(t){e.version!=t.data.version?(_.extend(e,t.data),toastr.success("刷新同步成功!")):(e.chatReplies=t.data.chatReplies,toastr.info("消息内容暂无变更!"))})},e.prototype.stowHandler=function(e){return e.isStow?void this.unStowHandler(e):void $.post("/admin/chat/channel/stow",{id:this.chat.id,rid:e.id},function(t,n,i){e.isStow=!0,t.success?(e.stowId=t.data.id,toastr.success("收藏消息成功!")):e.stowId=t.msgs&&t.msgs.length>0?t.msgs[0].id:""})},e.prototype.unStowHandler=function(e){e.stowId&&$.post("/admin/chat/channel/removeStow",{id:e.stowId},function(t,n,i){e.isStow=!1,e.stowId="",t.success&&toastr.success("移除收藏消息成功!")})},e}(),c=o(l.prototype,"actived",[t.bindable],{enumerable:!0,initializer:null}),d=o(l.prototype,"channel",[t.bindable],{enumerable:!0,initializer:null}),s=l))||s}),define("resources/elements/em-checkbox",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmCheckbox=void 0;var a,o,s,l,c,d,u,m,p,g,h,b;e.EmCheckbox=(a=(0,t.bindable)({defaultBindingMode:t.bindingMode.twoWay}),(0,t.containerless)((s=function(){function e(){i(this,e),n(this,"label",l,this),n(this,"title",c,this),n(this,"classes",d,this),n(this,"onchange",u,this),n(this,"onchecked",m,this),n(this,"onunchecked",p,this),n(this,"emCheckboxAll",g,this),n(this,"checked",h,this),n(this,"signal",b,this)}return e.prototype.checkedChanged=function(e,t){e?$(this.checkbox).checkbox("set checked"):$(this.checkbox).checkbox("set unchecked"),this.signal&&bs.signal(this.signal)},e.prototype.attached=function(){var e=this;$(this.checkbox).checkbox({onChecked:function(){e.checked=!0,_.defer(function(){e.emCheckboxAll&&e.emCheckboxAll.refreshCheckedStatus(),e.onchecked&&e.onchecked(e),e.signal&&bs.signal(e.signal)})},onUnchecked:function(){e.checked=!1,_.defer(function(){e.emCheckboxAll&&e.emCheckboxAll.refreshCheckedStatus(),e.onunchecked&&e.onunchecked(e),e.signal&&bs.signal(e.signal)})},onChange:function(){_.defer(function(){e.onchange&&e.onchange(e)})}}),this.checkedChanged(this.checked)},e}(),l=r(s.prototype,"label",[t.bindable],{enumerable:!0,initializer:null}),c=r(s.prototype,"title",[t.bindable],{enumerable:!0,initializer:null}),d=r(s.prototype,"classes",[t.bindable],{enumerable:!0,initializer:function(){return"fitted"}}),u=r(s.prototype,"onchange",[t.bindable],{enumerable:!0,initializer:null}),m=r(s.prototype,"onchecked",[t.bindable],{enumerable:!0,initializer:null}),p=r(s.prototype,"onunchecked",[t.bindable],{enumerable:!0,initializer:null}),g=r(s.prototype,"emCheckboxAll",[t.bindable],{enumerable:!0,initializer:null}),h=r(s.prototype,"checked",[a],{enumerable:!0,initializer:null}),b=r(s.prototype,"signal",[t.bindable],{enumerable:!0,initializer:null}),o=s))||o)}),define("resources/elements/em-confirm-modal",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmConfirmModal=void 0;e.EmConfirmModal=function(){function e(){n(this,e),this.config={}}return e.prototype.detached=function(){$(this.md).remove()},e.prototype.attached=function(){var e=this;$(this.md).modal({closable:!1,allowMultiple:!0,onApprove:function(){e.onapprove&&e.onapprove()},onDeny:function(){e.ondeny&&e.ondeny()}})},e.prototype.reset=function(){this.config={title:"操作确认",content:"确定要执行该操作吗?",warning:!1}},e.prototype.show=function(e){this.reset(),e&&(this.config=_.extend(this.config,e)),e&&e.onapprove&&(this.onapprove=e.onapprove),e&&e.ondeny&&(this.ondeny=e.ondeny),$(this.md).modal("show")},e.prototype.hide=function(){$(this.md).modal("hide")},e}()}),define("resources/elements/em-dropdown-links",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmDropdownLinks=void 0;var i;e.EmDropdownLinks=(0,t.containerless)(i=function(){function e(){var t=this;n(this,e),this.isSuper=nsCtx.isSuper,this.subscribe=ea.subscribe(nsCons.EVENT_SYSTEM_LINKS_REFRESH,function(e){t._refreshSysLinks()})}return e.prototype.attached=function(){var e=this;$(this.ddRef).dropdown({fullTextSearch:!0,action:function(t,n,i){$(e.ddRef).dropdown("hide"),$.post("/admin/link/count/inc",{id:$(i).attr("data-id")}),_.defer(function(){return utils.openNewWin(n)})}})},e.prototype.bind=function(e,t){this._refreshSysLinks()},e.prototype.unbind=function(){this.subscribe.dispose()},e.prototype._refreshSysLinks=function(){var e=this;$.get("/admin/link/listByApp",function(t){t.success?e.sysLinks=t.data:e.sysLinks=[]}),$.get("/admin/link/listByType",{type:"Channel"},function(t){t.success?e.channelLinks=t.data:e.channelLinks=[]})},e.prototype.addChannelLinkHandler=function(e){this.sysLinkMgrVm.show()},e.prototype.sysLinkHandler=function(e){return!1},e}())||i}),define("resources/elements/em-dropdown",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmDropdown=void 0;var a,o,s,l,c,d,u,m,p;e.EmDropdown=(a=(0,t.bindable)({defaultBindingMode:t.bindingMode.twoWay}),o=function(){function e(){i(this,e),n(this,"name",s,this),n(this,"text",l,this),n(this,"labelProp",c,this),n(this,"valueProp",d,this),n(this,"selectedItem",u,this),n(this,"menuItems",m,this),n(this,"classes",p,this)}return e.prototype.selectedItemChanged=function(e,t){var n=this;e&&_.defer(function(){$(n.dropdown).dropdown("set selected",e)})},e.prototype.menuItemsChanged=function(e,t){_.isEmpty(e)&&($(this.dropdown).dropdown("clear"),this.selectedItem=null)},e.prototype.initDropdownHandler=function(e){var t=this;e&&_.defer(function(){$(t.dropdown).dropdown({onChange:function(e,n,i){t.selectedItem=e}}).dropdown("set selected",t.selectedItem)})},e}(),s=r(o.prototype,"name",[t.bindable],{enumerable:!0,initializer:function(){return _.uniqueId("em-dropdown-")}}),l=r(o.prototype,"text",[t.bindable],{enumerable:!0,initializer:function(){return""}}),c=r(o.prototype,"labelProp",[t.bindable],{enumerable:!0,initializer:function(){return"label"}}),d=r(o.prototype,"valueProp",[t.bindable],{enumerable:!0,initializer:function(){return"value"}}),u=r(o.prototype,"selectedItem",[a],{enumerable:!0,initializer:null}),m=r(o.prototype,"menuItems",[t.bindable],{enumerable:!0,initializer:function(){return[]}}),p=r(o.prototype,"classes",[t.bindable],{enumerable:!0,initializer:function(){return"selection"}}),o)}),define("resources/elements/em-hotkeys-modal",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.EmHotkeysModal=void 0;e.EmHotkeysModal=function(){function e(){n(this,e)}return e.prototype.attached=function(){$(this.md).modal()},e.prototype.show=function(){$(this.md).modal("show")},e}()}),define("resources/elements/em-modal",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmModal=void 0;var a,o,s,l,c,d,u,m,p,g,h;e.EmModal=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"confirmLabel",s,this),n(this,"cancelLabel",l,this),n(this,"onapprove",c,this),n(this,"ondeny",d,this),n(this,"onshow",u,this),n(this,"onvisible",m,this),n(this,"disabled",p,this),n(this,"classes",g,this),n(this,"showConfirm",h,this),this.options={hideOnApprove:!0,autoDimmer:!0}}return e.prototype.detached=function(){$(this.modal).remove()},e.prototype.attached=function(){var e=this;$(this.modal).modal({closable:!1,autofocus:!1,observeChanges:!0,allowMultiple:!0,onShow:function(){e.onshow&&e.onshow(e)},onVisible:function(){e.onvisible&&e.onvisible(e)},onApprove:function(){return e.options.autoDimmer&&e.showDimmer(),e.onapprove&&e.onapprove(e),e.options.hideOnApprove},onDeny:function(){e.ondeny&&e.ondeny(e)}})},e.prototype.showDimmer=function(){this.loading=!0,$(this.modal).find(".dimmer").dimmer("show")},e.prototype.hideDimmer=function(){this.loading=!1,$(this.modal).find(".dimmer").dimmer("hide")},e.prototype.show=function(e){_.extend(this.options,e),$(this.modal).modal("show")},e.prototype.hide=function(){this.hideDimmer(),$(this.modal).modal("hide")},e.prototype.refresh=function(){var e=this;_.defer(function(){$(e.modal).modal("refresh")})},e}(),s=r(o.prototype,"confirmLabel",[t.bindable],{enumerable:!0,initializer:function(){return"确认"}}),l=r(o.prototype,"cancelLabel",[t.bindable],{enumerable:!0,initializer:function(){return"取消"}}),c=r(o.prototype,"onapprove",[t.bindable],{enumerable:!0,initializer:null}),d=r(o.prototype,"ondeny",[t.bindable],{enumerable:!0,initializer:null}),u=r(o.prototype,"onshow",[t.bindable],{enumerable:!0,initializer:null}),m=r(o.prototype,"onvisible",[t.bindable],{enumerable:!0,initializer:null}),p=r(o.prototype,"disabled",[t.bindable],{enumerable:!0,initializer:function(){return!1}}),g=r(o.prototype,"classes",[t.bindable],{enumerable:!0,initializer:function(){return"small"}}),h=r(o.prototype,"showConfirm",[t.bindable],{enumerable:!0,initializer:function(){return!0}}),a=o))||a}),define("resources/elements/em-user-avatar",["exports","aurelia-framework","color-hash"],function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmUserAvatar=void 0;var s,l,c;i(n),e.EmUserAvatar=(0,t.containerless)((l=function(){function e(){a(this,e),r(this,"user",c,this)}return e.prototype.userChanged=function(){if(this.user){this._calcNameChar();var e=colorHash.rgb(this.user.username);this.bgColor="rgba("+e[0]+", "+e[1]+", "+e[2]+", 0.6)",this.color="rgba("+(255-e[0])+", "+(255-e[1])+", "+(255-e[2])+", 1)"}},e.prototype._calcNameChar=function(){var e=arguments.length<=0||void 0===arguments[0]||arguments[0];this.user.name?this.nameChar=e?_.last(this.user.name):_.first(this.user.name):this.nameChar=e?_.last(this.user.username):_.first(this.user.username)},e.prototype.attached=function(){var e=this;$(this.avatarRef).hover(function(){e._calcNameChar(!1)},function(){e._calcNameChar()})},e}(),c=o(l.prototype,"user",[t.bindable],{enumerable:!0,initializer:null}),s=l))||s}),define("resources/elements/em-user-edit",["exports","aurelia-framework"],function(e,t){"use strict";function n(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.EmUserEdit=void 0;var a,o,s;e.EmUserEdit=(0,t.containerless)((o=function(){function e(){i(this,e),n(this,"user",s,this)}return e.prototype.show=function(){this.emModal.show({hideOnApprove:!1,autoDimmer:!0})},e.prototype.showHandler=function(){},e.prototype.attached=function(){$(this.frm).form({on:"blur",inline:!0,fields:{name:"empty",mail:["empty","email"]}})},e.prototype._chkOk=function(){var e=this.user.password;return!(e&&e.length<8)||(toastr.error("密码长度不能少于8位字符!"),!1)},e.prototype.approveHandler=function(e){var t=this;this._chkOk()&&$(this.frm).form("is valid")?$.post("/admin/user/update2",{username:this.user.username,password:this.user.password,name:this.user.name,mail:this.user.mails},function(n){e.hide(),t.user.password="",n.success?toastr.success("更新个人信息成功!"):toastr.error(n.data,"更新个人信息失败!")}):e.hideDimmer()},e}(),s=r(o.prototype,"user",[t.bindable],{enumerable:!0,initializer:null}),a=o))||a}),define("aurelia-templating-resources/compose",["exports","aurelia-dependency-injection","aurelia-task-queue","aurelia-templating","aurelia-pal"],function(e,t,n,i,r){"use strict";function a(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}function s(e,t){return Object.assign(t,{bindingContext:e.bindingContext,overrideContext:e.overrideContext,owningView:e.owningView,container:e.container,viewSlot:e.viewSlot,viewResources:e.viewResources,currentController:e.currentController,host:e.element})}function l(e,t){e.currentInstruction=null,e.compositionEngine.compose(t).then(function(t){e.currentController=t,e.currentViewModel=t?t.viewModel:null})}Object.defineProperty(e,"__esModule",{value:!0}),e.Compose=void 0;var c,d,u,m,p,g,h;e.Compose=(c=(0,i.customElement)("compose"),d=(0,t.inject)(r.DOM.Element,t.Container,i.CompositionEngine,i.ViewSlot,i.ViewResources,n.TaskQueue),c(u=(0,i.noView)(u=d((m=function(){function e(e,t,n,i,r,o){a(this,"model",p,this),a(this,"view",g,this),a(this,"viewModel",h,this),this.element=e,this.container=t,this.compositionEngine=n,this.viewSlot=i,this.viewResources=r,this.taskQueue=o,this.currentController=null,this.currentViewModel=null}return e.prototype.created=function(e){this.owningView=e},e.prototype.bind=function(e,t){this.bindingContext=e,this.overrideContext=t,l(this,s(this,{view:this.view,viewModel:this.viewModel,model:this.model}))},e.prototype.unbind=function(e,t){this.bindingContext=null,this.overrideContext=null;var n=!0,i=!0;this.viewSlot.removeAll(n,i)},e.prototype.modelChanged=function(e,t){var n=this;return this.currentInstruction?void(this.currentInstruction.model=e):void this.taskQueue.queueMicroTask(function(){if(n.currentInstruction)return void(n.currentInstruction.model=e);var t=n.currentViewModel;t&&"function"==typeof t.activate&&t.activate(e)})},e.prototype.viewChanged=function(e,t){var n=this,i=s(this,{view:e,viewModel:this.currentViewModel||this.viewModel,model:this.model});return this.currentInstruction?void(this.currentInstruction=i):(this.currentInstruction=i,void this.taskQueue.queueMicroTask(function(){return l(n,n.currentInstruction)}))},e.prototype.viewModelChanged=function(e,t){var n=this,i=s(this,{viewModel:e,view:this.view,model:this.model});return this.currentInstruction?void(this.currentInstruction=i):(this.currentInstruction=i,void this.taskQueue.queueMicroTask(function(){return l(n,n.currentInstruction)}))},e}(),p=o(m.prototype,"model",[i.bindable],{enumerable:!0,initializer:null}),g=o(m.prototype,"view",[i.bindable],{enumerable:!0,initializer:null}),h=o(m.prototype,"viewModel",[i.bindable],{enumerable:!0,initializer:null}),u=m))||u)||u)||u)}),define("aurelia-templating-resources/if",["exports","aurelia-templating","aurelia-dependency-injection"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.If=void 0;var i,r,a;e.If=(i=(0,t.customAttribute)("if"),r=(0,n.inject)(t.BoundViewFactory,t.ViewSlot),i(a=(0,t.templateController)(a=r(a=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.showing=!1,this.view=null,this.bindingContext=null,this.overrideContext=null}return e.prototype.bind=function(e,t){this.bindingContext=e,this.overrideContext=t,this.valueChanged(this.value)},e.prototype.valueChanged=function(e){var t=this;if(this.__queuedChanges)return void this.__queuedChanges.push(e);var n=this._runValueChanged(e);n instanceof Promise&&!function(){var e=t.__queuedChanges=[],i=function n(){if(!e.length)return void(t.__queuedChanges=void 0);var i=t._runValueChanged(e.shift())||Promise.resolve();i.then(n)};n.then(i)}()},e.prototype._runValueChanged=function(e){var t=this;if(!e){var n=void 0;return null!==this.view&&this.showing&&(n=this.viewSlot.remove(this.view),n instanceof Promise?n.then(function(){return t.view.unbind()}):this.view.unbind()),this.showing=!1,n}if(null===this.view&&(this.view=this.viewFactory.create()),this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext),!this.showing)return this.showing=!0,this.viewSlot.add(this.view)},e.prototype.unbind=function(){null!==this.view&&(this.view.unbind(),this.viewFactory.isCaching&&(this.showing&&(this.showing=!1,this.viewSlot.remove(this.view,!0,!0)),this.view.returnToCache(),this.view=null))},e}())||a)||a)||a)}),define("aurelia-templating-resources/with",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-binding"],function(e,t,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.With=void 0;var r,a,o;e.With=(r=(0,n.customAttribute)("with"),a=(0,t.inject)(n.BoundViewFactory,n.ViewSlot),r(o=(0,n.templateController)(o=a(o=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.parentOverrideContext=null,this.view=null}return e.prototype.bind=function(e,t){this.parentOverrideContext=t,this.valueChanged(this.value)},e.prototype.valueChanged=function(e){var t=(0,i.createOverrideContext)(e,this.parentOverrideContext);this.view?this.view.bind(e,t):(this.view=this.viewFactory.create(),this.view.bind(e,t),this.viewSlot.add(this.view))},e.prototype.unbind=function(){this.parentOverrideContext=null,this.view&&this.view.unbind()},e}())||o)||o)||o)}),define("aurelia-templating-resources/repeat",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-templating","./repeat-strategy-locator","./repeat-utilities","./analyze-view-factory","./abstract-repeater"],function(e,t,n,i,r,a,o,s){"use strict";function l(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t,n,i,r){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.Repeat=void 0;var m,p,g,h,b,f,v,_;e.Repeat=(m=(0,i.customAttribute)("repeat"),p=(0,t.inject)(i.BoundViewFactory,i.TargetInstruction,i.ViewSlot,i.ViewResources,n.ObserverLocator,r.RepeatStrategyLocator),m(g=(0,i.templateController)(g=p((h=function(e){function t(t,n,i,r,s,d){var u=c(this,e.call(this,{local:"item",viewsRequireLifecycle:(0,o.viewsRequireLifecycle)(t)}));return l(u,"items",b,u),l(u,"local",f,u),l(u,"key",v,u),l(u,"value",_,u),u.viewFactory=t,u.instruction=n,u.viewSlot=i,u.lookupFunctions=r.lookupFunctions,u.observerLocator=s,u.key="key",u.value="value",u.strategyLocator=d,u.ignoreMutation=!1,u.sourceExpression=(0,a.getItemsSourceExpression)(u.instruction,"repeat.for"),u.isOneTime=(0,a.isOneTime)(u.sourceExpression),u.viewsRequireLifecycle=(0,o.viewsRequireLifecycle)(t),u}return d(t,e),t.prototype.call=function(e,t){this[e](this.items,t)},t.prototype.bind=function(e,t){this.scope={bindingContext:e,overrideContext:t},this.matcherBinding=this._captureAndRemoveMatcherBinding(),this.itemsChanged()},t.prototype.unbind=function(){this.scope=null,this.items=null,this.matcherBinding=null,this.viewSlot.removeAll(!0),this._unsubscribeCollection()},t.prototype._unsubscribeCollection=function(){this.collectionObserver&&(this.collectionObserver.unsubscribe(this.callContext,this),this.collectionObserver=null,this.callContext=null)},t.prototype.itemsChanged=function(){if(this._unsubscribeCollection(),this.scope){var e=this.items;if(this.strategy=this.strategyLocator.getStrategy(e),!this.strategy)throw new Error("Value for '"+this.sourceExpression+"' is non-repeatable");this.isOneTime||this._observeInnerCollection()||this._observeCollection(),this.strategy.instanceChanged(this,e)}},t.prototype._getInnerCollection=function(){var e=(0,a.unwrapExpression)(this.sourceExpression);return e?e.evaluate(this.scope,null):null},t.prototype.handleCollectionMutated=function(e,t){this.collectionObserver&&this.strategy.instanceMutated(this,e,t)},t.prototype.handleInnerCollectionMutated=function(e,t){var n=this;if(this.collectionObserver&&!this.ignoreMutation){this.ignoreMutation=!0;var i=this.sourceExpression.evaluate(this.scope,this.lookupFunctions);this.observerLocator.taskQueue.queueMicroTask(function(){return n.ignoreMutation=!1}),i===this.items?this.itemsChanged():this.items=i}},t.prototype._observeInnerCollection=function(){var e=this._getInnerCollection(),t=this.strategyLocator.getStrategy(e);return!!t&&(this.collectionObserver=t.getCollectionObserver(this.observerLocator,e),!!this.collectionObserver&&(this.callContext="handleInnerCollectionMutated",this.collectionObserver.subscribe(this.callContext,this),!0))},t.prototype._observeCollection=function(){var e=this.items;this.collectionObserver=this.strategy.getCollectionObserver(this.observerLocator,e),this.collectionObserver&&(this.callContext="handleCollectionMutated",this.collectionObserver.subscribe(this.callContext,this))},t.prototype._captureAndRemoveMatcherBinding=function(){if(this.viewFactory.viewFactory)for(var e=this.viewFactory.viewFactory.instructions,t=Object.keys(e),n=0;n0?(b=e.removeViews(u,!0,!e.viewsRequireLifecycle), +h=function(){for(var o=0;oi;)r--,e.removeView(r,!0,!e.viewsRequireLifecycle);for(var a=e.local,o=0;o0)return Promise.all(o).then(function(){var a=r._handleAddedSplices(e,n,i);(0,t.updateOverrideContexts)(e.views(),a)});var g=this._handleAddedSplices(e,n,i);(0,t.updateOverrideContexts)(e.views(),g)},e.prototype._handleAddedSplices=function(e,n,i){for(var r=void 0,a=void 0,o=n.length,s=0,l=i.length;sc.index)&&(a=r);d0&&(t-=1);t0?Promise.all(d).then(function(){(0,t.updateOverrideContexts)(e.views(),0)}):(0,t.updateOverrideContexts)(e.views(),0)},e.prototype._getViewIndexByKey=function(e,t){var n=void 0,i=void 0,r=void 0;for(n=0,i=e.viewCount();n0?Promise.all(d).then(function(){(0,t.updateOverrideContexts)(e.views(),0)}):(0,t.updateOverrideContexts)(e.views(),0)},e.prototype._getViewIndexByValue=function(e,t){var n=void 0,i=void 0,r=void 0;for(n=0,i=e.viewCount();n0)for(s>i&&(s=i),r=0,a=s;r)<[^<]*)*<\/script>/gi;e.HTMLSanitizer=function(){function e(){}return e.prototype.sanitize=function(e){return e.replace(t,"")},e}()}),define("aurelia-templating-resources/replaceable",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Replaceable=void 0;var i,r,a;e.Replaceable=(i=(0,n.customAttribute)("replaceable"),r=(0,t.inject)(n.BoundViewFactory,n.ViewSlot),i(a=(0,n.templateController)(a=r(a=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.view=null}return e.prototype.bind=function(e,t){null===this.view&&(this.view=this.viewFactory.create(),this.viewSlot.add(this.view)),this.view.bind(e,t)},e.prototype.unbind=function(){this.view.unbind()},e}())||a)||a)||a)}),define("aurelia-templating-resources/focus",["exports","aurelia-templating","aurelia-binding","aurelia-dependency-injection","aurelia-task-queue","aurelia-pal"],function(e,t,n,i,r,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Focus=void 0;var o,s,l;e.Focus=(o=(0,t.customAttribute)("focus",n.bindingMode.twoWay),s=(0,i.inject)(a.DOM.Element,r.TaskQueue),o(l=s(l=function(){function e(e,t){var n=this;this.element=e,this.taskQueue=t,this.isAttached=!1,this.needsApply=!1,this.focusListener=function(e){n.value=!0},this.blurListener=function(e){a.DOM.activeElement!==n.element&&(n.value=!1)}}return e.prototype.valueChanged=function(e){this.isAttached?this._apply():this.needsApply=!0},e.prototype._apply=function(){var e=this;this.value?this.taskQueue.queueMicroTask(function(){e.value&&e.element.focus()}):this.element.blur()},e.prototype.attached=function(){this.isAttached=!0,this.needsApply&&(this.needsApply=!1,this._apply()),this.element.addEventListener("focus",this.focusListener),this.element.addEventListener("blur",this.blurListener)},e.prototype.detached=function(){this.isAttached=!1,this.element.removeEventListener("focus",this.focusListener),this.element.removeEventListener("blur",this.blurListener)},e}())||l)||l)}),define("aurelia-templating-resources/css-resource",["exports","aurelia-templating","aurelia-loader","aurelia-dependency-injection","aurelia-path","aurelia-pal"],function(e,t,n,i,r,a){"use strict";function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){if("string"!=typeof t)throw new Error("Failed loading required CSS file: "+e);return t.replace(d,function(t,n){var i=n.charAt(0);return"'"!==i&&'"'!==i||(n=n.substr(1,n.length-2)),"url('"+(0,r.relativeToFile)(n,e)+"')"})}function c(e){var n,i,r=(n=(0,t.resource)(new u(e)),n(i=function(e){function t(){return o(this,e.apply(this,arguments))}return s(t,e),t}(m))||i);return r}Object.defineProperty(e,"__esModule",{value:!0}),e._createCSSResource=c;var d=/url\((?!['"]data)([^)]+)\)/gi,u=function(){function e(e){this.address=e,this._scoped=null,this._global=!1,this._alreadyGloballyInjected=!1}return e.prototype.initialize=function(e,t){this._scoped=new t(this)},e.prototype.register=function(e,t){"scoped"===t?e.registerViewEngineHooks(this._scoped):this._global=!0},e.prototype.load=function(e){var t=this;return e.get(n.Loader).loadText(this.address).catch(function(e){return null}).then(function(e){e=l(t.address,e),t._scoped.css=e,t._global&&(t._alreadyGloballyInjected=!0,a.DOM.injectStyles(e))})},e}(),m=function(){function e(e){this.owner=e,this.css=null}return e.prototype.beforeCompile=function(e,t,n){if(n.targetShadowDOM)a.DOM.injectStyles(this.css,e,!0);else if(a.FEATURE.scopedCSS){var i=a.DOM.injectStyles(this.css,e,!0);i.setAttribute("scoped","scoped")}else this.owner._alreadyGloballyInjected||(a.DOM.injectStyles(this.css),this.owner._alreadyGloballyInjected=!0)},e}()}),define("aurelia-templating-resources/binding-mode-behaviors",["exports","aurelia-binding","aurelia-metadata"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TwoWayBindingBehavior=e.OneWayBindingBehavior=e.OneTimeBindingBehavior=void 0;var i,r,a,o,s,l,c={bind:function(e,t,n){e.originalMode=e.mode,e.mode=this.mode},unbind:function(e,t){e.mode=e.originalMode,e.originalMode=null}};e.OneTimeBindingBehavior=(i=(0,n.mixin)(c),i(r=function(){this.mode=t.bindingMode.oneTime})||r),e.OneWayBindingBehavior=(a=(0,n.mixin)(c),a(o=function(){this.mode=t.bindingMode.oneWay})||o),e.TwoWayBindingBehavior=(s=(0,n.mixin)(c),s(l=function(){this.mode=t.bindingMode.twoWay})||l)}),define("aurelia-templating-resources/throttle-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function n(e){var t=this,n=this.throttleState,i=+new Date-n.last;return i>=n.delay?(clearTimeout(n.timeoutId),n.timeoutId=null,n.last=+new Date,void this.throttledMethod(e)):(n.newValue=e,void(null===n.timeoutId&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.last=+new Date,t.throttledMethod(n.newValue)},n.delay-i))))}Object.defineProperty(e,"__esModule",{value:!0}),e.ThrottleBindingBehavior=void 0;e.ThrottleBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,i){var r=arguments.length<=2||void 0===arguments[2]?200:arguments[2],a="updateTarget";e.callSource?a="callSource":e.updateSource&&e.mode===t.bindingMode.twoWay&&(a="updateSource"),e.throttledMethod=e[a],e.throttledMethod.originalName=a,e[a]=n,e.throttleState={delay:r,last:0,timeoutId:null}},e.prototype.unbind=function(e,t){var n=e.throttledMethod.originalName;e[n]=e.throttledMethod,e.throttledMethod=null,clearTimeout(e.throttleState.timeoutId),e.throttleState=null},e}()}),define("aurelia-templating-resources/debounce-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function n(e){var t=this,n=this.debounceState;return n.immediate?(n.immediate=!1,void this.debouncedMethod(e)):(clearTimeout(n.timeoutId),void(n.timeoutId=setTimeout(function(){return t.debouncedMethod(e)},n.delay)))}Object.defineProperty(e,"__esModule",{value:!0}),e.DebounceBindingBehavior=void 0;e.DebounceBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,i){var r=arguments.length<=2||void 0===arguments[2]?200:arguments[2],a="updateTarget";e.callSource?a="callSource":e.updateSource&&e.mode===t.bindingMode.twoWay&&(a="updateSource"),e.debouncedMethod=e[a],e.debouncedMethod.originalName=a,e[a]=n,e.debounceState={delay:r,timeoutId:null,immediate:"updateTarget"===a}},e.prototype.unbind=function(e,t){var n=e.debouncedMethod.originalName;e[n]=e.debouncedMethod,e.debouncedMethod=null,clearTimeout(e.debounceState.timeoutId),e.debounceState=null},e}()}),define("aurelia-templating-resources/signal-binding-behavior",["exports","./binding-signaler"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignalBindingBehavior=void 0;e.SignalBindingBehavior=function(){function e(e){this.signals=e.signals}return e.inject=function(){return[t.BindingSignaler]},e.prototype.bind=function(e,t){if(!e.updateTarget)throw new Error("Only property bindings and string interpolation bindings can be signaled. Trigger, delegate and call bindings cannot be signaled.");if(3===arguments.length){var n=arguments[2],i=this.signals[n]||(this.signals[n]=[]);i.push(e),e.signalName=n}else{if(!(arguments.length>3))throw new Error("Signal name is required.");for(var r=Array.prototype.slice.call(arguments,2),a=r.length;a--;){var o=r[a],s=this.signals[o]||(this.signals[o]=[]);s.push(e)}e.signalName=r}},e.prototype.unbind=function(e,t){var n=e.signalName;if(e.signalName=null,Array.isArray(n))for(var i=n,r=i.length;r--;){var a=i[r],o=this.signals[a];o.splice(o.indexOf(e),1)}else{var s=this.signals[n];s.splice(s.indexOf(e),1)}},e}()}),define("aurelia-templating-resources/binding-signaler",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingSignaler=void 0;e.BindingSignaler=function(){function e(){this.signals={}}return e.prototype.signal=function(e){var n=this.signals[e];if(n)for(var i=n.length;i--;)n[i].call(t.sourceContext)},e}()}),define("aurelia-templating-resources/update-trigger-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UpdateTriggerBindingBehavior=void 0;var n,i,r="The updateTrigger binding behavior requires at least one event name argument: eg ",a="The updateTrigger binding behavior can only be applied to two-way bindings on input/select elements.";e.UpdateTriggerBindingBehavior=(i=n=function(){function e(e){this.eventManager=e}return e.prototype.bind=function(e,n){for(var i=arguments.length,o=Array(i>2?i-2:0),s=2;s]/gm,function(e){return O[e]})}function n(e){return e.nodeName.toLowerCase()}function i(e,t){var n=e&&e.exec(t);return n&&0===n.index}function r(e){return S.test(e)}function a(e){var t,n,i,a,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",n=T.exec(o))return y(n[1])?n[1]:"no-highlight";for(o=o.split(/\s+/),t=0,i=o.length;t"}function s(e){d+=""}function l(e){("start"===e.event?o:s)(e.node)}for(var c=0,d="",u=[];e.length||i.length;){var m=a();if(d+=t(r.substr(c,m[0].offset-c)),c=m[0].offset,m===e){u.reverse().forEach(s);do l(m.splice(0,1)[0]),m=a();while(m===e&&m.length&&m[0].offset===c);u.reverse().forEach(o)}else"start"===m[0].event?u.push(m[0].node):u.pop(),l(m.splice(0,1)[0])}return d+t(r.substr(c))}function c(e){function t(e){return e&&e.source||e}function n(n,i){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(i?"g":""))}function i(r,a){if(!r.compiled){if(r.compiled=!0,r.keywords=r.keywords||r.beginKeywords,r.keywords){var s={},l=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");s[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"==typeof r.keywords?l("keyword",r.keywords):w(r.keywords).forEach(function(e){l(e,r.keywords[e])}),r.keywords=s}r.lexemesRe=n(r.lexemes||/\w+/,!0),a&&(r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")\\b"),r.begin||(r.begin=/\B|\b/),r.beginRe=n(r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(r.endRe=n(r.end)),r.terminator_end=t(r.end)||"",r.endsWithParent&&a.terminator_end&&(r.terminator_end+=(r.end?"|":"")+a.terminator_end)),r.illegal&&(r.illegalRe=n(r.illegal)),null==r.relevance&&(r.relevance=1),r.contains||(r.contains=[]);var c=[];r.contains.forEach(function(e){e.variants?e.variants.forEach(function(t){c.push(o(e,t))}):c.push("self"===e?r:e)}),r.contains=c,r.contains.forEach(function(e){i(e,r)}),r.starts&&i(r.starts,a);var d=r.contains.map(function(e){return e.beginKeywords?"\\.?("+e.begin+")\\.?":e.begin}).concat([r.terminator_end,r.illegal]).map(t).filter(Boolean);r.terminators=d.length?n(d.join("|"),!0):{exec:function(){return null}}}}i(e)}function d(e,n,r,a){function o(e,t){var n,r;for(n=0,r=t.contains.length;n',a+t+o}function g(){var e,n,i,r;if(!w.keywords)return t(T);for(r="",n=0,w.lexemesRe.lastIndex=0,i=w.lexemesRe.exec(T);i;)r+=t(T.substr(n,i.index-n)),e=m(w,i),e?(N+=e[1],r+=p(e[0],t(i[0]))):r+=t(i[0]),n=w.lexemesRe.lastIndex,i=w.lexemesRe.exec(T);return r+t(T.substr(n))}function h(){var e="string"==typeof w.subLanguage;if(e&&!x[w.subLanguage])return t(T);var n=e?d(w.subLanguage,T,!0,C[w.subLanguage]):u(T,w.subLanguage.length?w.subLanguage:void 0);return w.relevance>0&&(N+=n.relevance),e&&(C[w.subLanguage]=n.top),p(n.language,n.value,!1,!0)}function b(){S+=null!=w.subLanguage?h():g(),T=""}function f(e){S+=e.className?p(e.className,"",!0):"",w=Object.create(e,{parent:{value:w}})}function v(e,t){if(T+=e,null==t)return b(),0;var n=o(t,w);if(n)return n.skip?T+=t:(n.excludeBegin&&(T+=t),b(),n.returnBegin||n.excludeBegin||(T=t)),f(n,t),n.returnBegin?0:t.length;var i=s(w,t);if(i){var r=w;r.skip?T+=t:(r.returnEnd||r.excludeEnd||(T+=t),b(),r.excludeEnd&&(T=t));do w.className&&(S+=k),w.skip||(N+=w.relevance),w=w.parent;while(w!==i.parent);return i.starts&&f(i.starts,""),r.returnEnd?0:t.length}if(l(t,w))throw new Error('Illegal lexeme "'+t+'" for mode "'+(w.className||"")+'"');return T+=t,t.length||1}var _=y(e);if(!_)throw new Error('Unknown language: "'+e+'"');c(_);var E,w=a||_,C={},S="";for(E=w;E!==_;E=E.parent)E.className&&(S=p(E.className,"",!0)+S);var T="",N=0;try{for(var O,A,D=0;;){if(w.terminators.lastIndex=D,O=w.terminators.exec(n),!O)break;A=v(n.substr(D,O.index-D),O[0]),D=O.index+A}for(v(n.substr(D)),E=w;E.parent;E=E.parent)E.className&&(S+=k);return{relevance:N,value:S,language:e,top:w}}catch(e){if(e.message&&e.message.indexOf("Illegal")!==-1)return{relevance:0,value:t(n)};throw e}}function u(e,n){n=n||M.languages||w(x);var i={relevance:0,value:t(e)},r=i;return n.filter(y).forEach(function(t){var n=d(t,e,!1);n.language=t,n.relevance>r.relevance&&(r=n),n.relevance>i.relevance&&(r=i,i=n)}),r.language&&(i.second_best=r),i}function m(e){return M.tabReplace||M.useBR?e.replace(N,function(e,t){return M.useBR&&"\n"===e?"
    ":M.tabReplace?t.replace(/\t/g,M.tabReplace):void 0}):e}function p(e,t,n){var i=t?C[t]:n,r=[e.trim()];return e.match(/\bhljs\b/)||r.push("hljs"),e.indexOf(i)===-1&&r.push(i),r.join(" ").trim()}function g(e){var t,n,i,o,c,g=a(e);r(g)||(M.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):t=e,c=t.textContent,i=g?d(g,c,!0):u(c),n=s(t),n.length&&(o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),o.innerHTML=i.value,i.value=l(n,s(o),c)),i.value=m(i.value),e.innerHTML=i.value,e.className=p(e.className,g,i.language),e.result={language:i.language,re:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance}))}function h(e){M=o(M,e)}function b(){if(!b.called){b.called=!0;var e=document.querySelectorAll("pre code");E.forEach.call(e,g)}}function f(){addEventListener("DOMContentLoaded",b,!1),addEventListener("load",b,!1)}function v(t,n){var i=x[t]=n(e);i.aliases&&i.aliases.forEach(function(e){C[e]=t})}function _(){return w(x)}function y(e){return e=(e||"").toLowerCase(),x[e]||x[C[e]]}var E=[],w=Object.keys,x={},C={},S=/^(no-?highlight|plain|text)$/i,T=/\blang(?:uage)?-([\w-]+)\b/i,N=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,k="",M={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},O={"&":"&","<":"<",">":">"};return e.highlight=d,e.highlightAuto=u,e.fixMarkup=m,e.highlightBlock=g,e.configure=h,e.initHighlighting=b,e.initHighlightingOnLoad=f,e.registerLanguage=v,e.listLanguages=_,e.getLanguage=y,e.inherit=o,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.COMMENT=function(t,n,i){var r=e.inherit({className:"comment",begin:t,end:n,contains:[]},i||{});return r.contains.push(e.PHRASAL_WORDS_MODE),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),r},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"), +e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e}),define("highlight/lib/languages/1c",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Zа-яА-Я][a-zA-Z0-9_а-яА-Я]*",n="возврат дата для если и или иначе иначеесли исключение конецесли конецпопытки конецпроцедуры конецфункции конеццикла константа не перейти перем перечисление по пока попытка прервать продолжить процедура строка тогда фс функция цикл число экспорт",i="ansitooem oemtoansi ввестивидсубконто ввестидату ввестизначение ввестиперечисление ввестипериод ввестиплансчетов ввестистроку ввестичисло вопрос восстановитьзначение врег выбранныйплансчетов вызватьисключение датагод датамесяц датачисло добавитьмесяц завершитьработусистемы заголовоксистемы записьжурналарегистрации запуститьприложение зафиксироватьтранзакцию значениевстроку значениевстрокувнутр значениевфайл значениеизстроки значениеизстрокивнутр значениеизфайла имякомпьютера имяпользователя каталогвременныхфайлов каталогиб каталогпользователя каталогпрограммы кодсимв командасистемы конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лев лог лог10 макс максимальноеколичествосубконто мин монопольныйрежим названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найти найтипомеченныенаудаление найтиссылки началопериодаби началостандартногоинтервала начатьтранзакцию начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода нрег обработкаожидания окр описаниеошибки основнойжурналрасчетов основнойплансчетов основнойязык открытьформу открытьформумодально отменитьтранзакцию очиститьокносообщений периодстр полноеимяпользователя получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта прав праводоступа предупреждение префиксавтонумерации пустаястрока пустоезначение рабочаядаттьпустоезначение рабочаядата разделительстраниц разделительстрок разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо сигнал симв символтабуляции создатьобъект сокрл сокрлп сокрп сообщить состояние сохранитьзначение сред статусвозврата стрдлина стрзаменить стрколичествострок стрполучитьстроку стрчисловхождений сформироватьпозициюдокумента счетпокоду текущаядата текущеевремя типзначения типзначениястр удалитьобъекты установитьтана установитьтапо фиксшаблон формат цел шаблон",r={begin:'""'},a={className:"string",begin:'"',end:'"|$',contains:[r]},o={className:"string",begin:"\\|",end:'"|$',contains:[r]};return{case_insensitive:!0,lexemes:t,keywords:{keyword:n,built_in:i},contains:[e.C_LINE_COMMENT_MODE,e.NUMBER_MODE,a,o,{className:"function",begin:"(процедура|функция)",end:"$",lexemes:t,keywords:"процедура функция",contains:[{begin:"экспорт",endsWithParent:!0,lexemes:t,keywords:"экспорт",contains:[e.C_LINE_COMMENT_MODE]},{className:"params",begin:"\\(",end:"\\)",lexemes:t,keywords:"знач",contains:[a,o]},e.C_LINE_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:t})]},{className:"meta",begin:"#",end:"$"},{className:"number",begin:"'\\d{2}\\.\\d{2}\\.(\\d{2}|\\d{4})'"}]}}}),define("highlight/lib/languages/abnf",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={ruleDeclaration:"^[a-zA-Z][a-zA-Z0-9-]*",unexpectedChars:"[!@#$^&',?+~`|:]"},n=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=e.COMMENT(";","$"),r={className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},a={className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},o={className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},s={className:"symbol",begin:/%[si]/},l={begin:t.ruleDeclaration+"\\s*=",returnBegin:!0,end:/=/,relevance:0,contains:[{className:"attribute",begin:t.ruleDeclaration}]};return{illegal:t.unexpectedChars,keywords:n.join(" "),contains:[l,i,r,a,o,s,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}}),define("highlight/lib/languages/accesslog",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+\\b",relevance:0},{className:"string",begin:'"(GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|PATCH|TRACE)',end:'"',keywords:"GET POST HEAD PUT DELETE CONNECT OPTIONS PATCH TRACE",illegal:"\\n",relevance:10},{className:"string",begin:/\[/,end:/\]/,illegal:"\\n"},{className:"string",begin:'"',end:'"',illegal:"\\n"}]}}}),define("highlight/lib/languages/actionscript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z_$][a-zA-Z0-9_$]*",n="([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)",i={className:"rest_arg",begin:"[.]{3}",end:t,relevance:10};return{aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:"{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:";",keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:"[{;]",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i]},{begin:":\\s*"+n}]},e.METHOD_GUARD],illegal:/#/}}}),define("highlight/lib/languages/ada",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="\\d(_|\\d)*",n="[eE][-+]?"+t,i=t+"(\\."+t+")?("+n+")?",r="\\w+",a=t+"#"+r+"(\\."+r+")?#("+n+")?",o="\\b("+a+"|"+i+")",s="[A-Za-z](_?[A-Za-z0-9.])*",l="[]{}%#'\"",c=e.COMMENT("--","$"),d={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:l,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:s,endsParent:!0,relevance:0}]};return{case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[c,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+s},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:l},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[c,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:l},d,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:l}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:l},d]}}}),define("highlight/lib/languages/apache",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"number",begin:"[\\$%]\\d+"};return{aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:""},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all"},contains:[{className:"meta",begin:"\\s\\[",end:"\\]$"},{className:"variable",begin:"[\\$%]\\{",end:"\\}",contains:["self",t]},t,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}}),define("highlight/lib/languages/applescript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.inherit(e.QUOTE_STRING_MODE,{illegal:""}),n={className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_NUMBER_MODE,t]},i=e.COMMENT("--","$"),r=e.COMMENT("\\(\\*","\\*\\)",{contains:["self",i]}),a=[i,r,e.HASH_COMMENT_MODE];return{aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[t,e.C_NUMBER_MODE,{className:"built_in",begin:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{className:"literal",begin:"\\b(text item delimiters|current application|missing value)\\b"},{className:"keyword",begin:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference)|POSIX file|POSIX path|(date|time) string|quoted form)\\b"},{beginKeywords:"on",illegal:"[${=;\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]}].concat(a),illegal:"//|->|=>|\\[\\["}}}),define("highlight/lib/languages/cpp",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},n={className:"string",variants:[{begin:'(u8?|U)?L?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},i={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},r={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(n,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a=e.IDENT_RE+"\\s*\\(",o={keyword:"int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return",built_in:"std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr",literal:"true false nullptr NULL"},s=[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,n];return{aliases:["c","cc","h","c++","h++","hpp"],keywords:o,illegal:"",keywords:o,contains:["self",t]},{begin:e.IDENT_RE+"::",keywords:o},{variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:o,contains:s.concat([{begin:/\(/,end:/\)/,keywords:o,contains:s.concat(["self"]),relevance:0}]),relevance:0},{className:"function",begin:"("+e.IDENT_RE+"[\\*&\\s]+)+"+a,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:o,illegal:/[^\w\s\*&]/,contains:[{begin:a,returnBegin:!0,contains:[e.TITLE_MODE],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,i,t]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r]}]),exports:{preprocessor:r,strings:n,keywords:o}}}}),define("highlight/lib/languages/arduino",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.getLanguage("cpp").exports;return{keywords:{keyword:"boolean byte word string String array "+t.keywords.keyword,built_in:"setup loop while catch for if do goto try switch case else default break continue return KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",literal:"DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW"},contains:[t.preprocessor,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/armasm",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,aliases:["arm"],lexemes:"\\.?"+e.IDENT_RE,keywords:{meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?",end:"\\s"},e.COMMENT("[;@]","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"[=#]\\w+"}],relevance:0}]}}}),define("highlight/lib/languages/xml",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[A-Za-z0-9\\._:-]+",n={endsWithParent:!0,illegal:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0}]},{className:"tag",begin:"|$)",end:">",keywords:{name:"style"},contains:[n],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"|$)",end:">",keywords:{name:"script"},contains:[n],starts:{end:"",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"meta",variants:[{begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?\w+/,end:/\?>/}]},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},n]}]}}}),define("highlight/lib/languages/asciidoc",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,5}) .+?( \\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{className:"bullet",begin:"^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{className:"strong",begin:"\\B\\*(?![\\*\\s])",end:"(\\n{2}|\\*)",contains:[{begin:"\\\\*\\w",relevance:0}]},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0},{className:"emphasis",begin:"_(?![_\\s])",end:"(\\n{2}|_)",relevance:0},{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}}),define("highlight/lib/languages/aspectj",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",n="get set args call";return{keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:t+" "+n,excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:t,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",keywords:t+" "+n},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.)?\w+\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:t,excludeEnd:!0,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:t,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}}),define("highlight/lib/languages/autohotkey",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:/`[\s\S]/};return{case_insensitive:!0,keywords:{keyword:"Break Continue Else Gosub If Loop Return While",literal:"A|0 true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[{className:"built_in",begin:"A_[a-zA-Z0-9]+"},t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%",end:"%",illegal:"\\n",contains:[t]},{className:"symbol",contains:[t],variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{begin:",\\s*,"}]}}}),define("highlight/lib/languages/autoit",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="ByRef Case Const ContinueCase ContinueLoop Default Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",n="True False And Null Not Or",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait",r={ +variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},o={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},s={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},l={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[o,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},o,r]},c={className:"symbol",begin:"@[A-z0-9_]+"},d={className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[a,o,s]}]};return{case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:i,literal:n},contains:[r,a,o,s,l,c,d]}}}),define("highlight/lib/languages/avrasm",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,lexemes:"\\.?"+e.IDENT_RE,keywords:{keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}}),define("highlight/lib/languages/awk",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{keywords:{keyword:n},contains:[t,i,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}}),define("highlight/lib/languages/axapta",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:"false int abstract private char boolean static null if for true while long throw finally protected final return void enum else break new catch byte super case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]}]}}}),define("highlight/lib/languages/bash",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},i={className:"string",begin:/'/,end:/'/};return{aliases:["sh","zsh"],lexemes:/-?[a-z\._]+/,keywords:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},contains:[{className:"meta",begin:/^#![^\n]+sh\s*$/,relevance:10},{className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},e.HASH_COMMENT_MODE,n,i,t]}}}),define("highlight/lib/languages/basic",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,illegal:"^.",lexemes:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keywords:{keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF|0 THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b([0-9]+[0-9edED.]*[#!]?)",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}}),define("highlight/lib/languages/bnf",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[{className:"attribute",begin://},{begin:/::=/,starts:{end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}]}}}),define("highlight/lib/languages/brainfuck",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"literal",begin:"[\\+\\-]",relevance:0};return{aliases:["bf"],contains:[e.COMMENT("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/\+\+|\-\-/,returnBegin:!0,contains:[t]},t]}}}),define("highlight/lib/languages/cal",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",n="false true",i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},o={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},s={className:"string",begin:'"',end:'"'},l={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[r,a]}].concat(i)},c={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[e.TITLE_MODE,l]};return{case_insensitive:!0,keywords:{keyword:t,literal:n},illegal:/\/\*/,contains:[r,a,o,s,e.NUMBER_MODE,c,l]}}}),define("highlight/lib/languages/capnproto",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}}),define("highlight/lib/languages/ceylon",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",n="shared abstract formal default actual variable late native deprecatedfinal sealed annotation suppressWarnings small",i="doc by license see throws tagged",r={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},a=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[r]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return r.contains=a,{keywords:{keyword:t+" "+n,meta:i},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?:\\:"[^"]*")?'}].concat(a)}}}),define("highlight/lib/languages/clojure",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={"builtin-name":"def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},n="a-zA-Z_\\-!.?+*=<>&#'",i="["+n+"]["+n+"0-9/;:]*",r="[-+]?\\d+(\\.\\d+)?",a={begin:i,relevance:0},o={className:"number",begin:r,relevance:0},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b(true|false|nil)\b/},d={begin:"[\\[\\{]",end:"[\\]\\}]"},u={className:"comment",begin:"\\^"+i},m=e.COMMENT("\\^\\{","\\}"),p={className:"symbol",begin:"[:]{1,2}"+i},g={begin:"\\(",end:"\\)"},h={endsWithParent:!0,relevance:0},b={keywords:t,lexemes:i,className:"name",begin:i,starts:h},f=[g,s,u,m,l,p,d,o,c,a];return g.contains=[e.COMMENT("comment",""),b,h],h.contains=f,d.contains=f,{aliases:["clj"],illegal:/\S/,contains:[g,s,u,m,l,p,d,o,c]}}}),define("highlight/lib/languages/clojure-repl",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}}),define("highlight/lib/languages/cmake",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_minimum_required cmake_policy configure_file create_test_sourcelist define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories load_cache load_command macro mark_as_advanced message option output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_link_libraries try_compile try_run unset variable_watch while build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or equal less greater strless strgreater strequal matches"},contains:[{className:"variable",begin:"\\${",end:"}"},e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}}),define("highlight/lib/languages/coffeescript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},n="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/}/,keywords:t},r=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,i]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[i,e.HASH_COMMENT_MODE]},{begin:"//[gim]*",relevance:0},{begin:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{begin:"@"+n},{begin:"`",end:"`",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];i.contains=r;var a=e.inherit(e.TITLE_MODE,{begin:n}),o="(\\(.*\\))?\\s*\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(r)}]};return{aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,contains:r.concat([e.COMMENT("###","###"),e.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[a,s]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}),define("highlight/lib/languages/coq",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{keyword:"_ as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies DependentDerive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}}),define("highlight/lib/languages/cos",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},n={className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},i="property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii";return{case_insensitive:!0,aliases:["cos","cls"],keywords:i,contains:[n,t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}}),define("highlight/lib/languages/crmsh",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="primitive rsc_template",n="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml",i="property rsc_defaults op_defaults",r="params meta operations op rule attributes utilization",a="read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\",o="number string",s="Master Started Slave Stopped start promote demote stop monitor true false";return{aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:r+" "+a+" "+o,literal:s},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+n.split(" ").join("|")+")\\s+",keywords:n,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:i,starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z\$_\#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}}),define("highlight/lib/languages/crystal",["require","exports","module"],function(e,t,n){n.exports=function(e){function t(e,t){var n=[{begin:e,end:t}];return n[0].contains=n,n}var n="(_[uif](8|16|32|64))?",i="[a-zA-Z_]\\w*[!?=]?",r="!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",a="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\][=?]?",o={keyword:"abstract alias as asm begin break case class def do else elsif end ensure enum extend for fun if ifdef include instance_sizeof is_a? lib macro module next of out pointerof private protected rescue responds_to? return require self sizeof struct super then type typeof union unless until when while with yield __DIR__ __FILE__ __LINE__",literal:"false nil true"},s={className:"subst",begin:"#{",end:"}",keywords:o},l={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o},c={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%w?\\(",end:"\\)",contains:t("\\(","\\)")},{begin:"%w?\\[",end:"\\]",contains:t("\\[","\\]")},{begin:"%w?{",end:"}",contains:t("{","}")},{begin:"%w?<",end:">",contains:t("<",">")},{begin:"%w?/",end:"/"},{begin:"%w?%",end:"%"},{begin:"%w?-",end:"-"},{begin:"%w?\\|",end:"\\|"}],relevance:0},d={begin:"("+r+")\\s*",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/",end:"/[a-z]*"},{begin:"%r\\(",end:"\\)",contains:t("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:t("\\[","\\]")},{begin:"%r{",end:"}",contains:t("{","}")},{begin:"%r<",end:">",contains:t("<",">")},{begin:"%r/",end:"/"},{begin:"%r%",end:"%"},{begin:"%r-",end:"-"},{begin:"%r\\|",end:"\\|"}]}],relevance:0},u={className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"%r\\(",end:"\\)",contains:t("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:t("\\[","\\]")},{begin:"%r{",end:"}",contains:t("{","}")},{begin:"%r<",end:">",contains:t("<",">")},{begin:"%r/",end:"/"},{begin:"%r%",end:"%"},{begin:"%r-",end:"-"},{begin:"%r\\|",end:"\\|"}],relevance:0},m={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"})]},p=[l,c,d,u,m,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"})],relevance:10},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})],relevance:5},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[c,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]*[01])"+n},{begin:"\\b0o([0-7_]*[0-7])"+n},{begin:"\\b0x([A-Fa-f0-9_]*[A-Fa-f0-9])"+n},{begin:"\\b(([0-9][0-9_]*[0-9]|[0-9])(\\.[0-9_]*[0-9])?([eE][+-]?[0-9_]*[0-9])?)"+n}],relevance:0}];return s.contains=p,l.contains=p.slice(1),{aliases:["cr"],lexemes:i,keywords:o,contains:p}}}),define("highlight/lib/languages/cs",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double else enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while nameof add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield",literal:"null false true"},n={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},i=e.inherit(n,{illegal:/\n/}),r={className:"subst",begin:"{",end:"}",keywords:t},a=e.inherit(r,{illegal:/\n/}),o={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},e.BACKSLASH_ESCAPE,a]},s={className:"string",begin:/\$@"/,end:'"',contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},r]},l=e.inherit(s,{illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},a]});r.contains=[s,o,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],a.contains=[l,o,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var c={variants:[s,o,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},d=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?";return{aliases:["csharp"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},c,e.C_NUMBER_MODE,{beginKeywords:"class interface",end:/[{;=]/,illegal:/[^\s:]/,contains:[e.TITLE_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",end:/[{;=]/,illegal:/[^\s:]/,contains:[e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new return throw await",relevance:0},{className:"function",begin:"("+d+"\\s+)+"+e.IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[c,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}}}),define("highlight/lib/languages/csp",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!1,lexemes:"[a-zA-Z][a-zA-Z0-9_-]*",keywords:{keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}}),define("highlight/lib/languages/css",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",n={begin:/[A-Z\_\.\-]+\s*:/,returnBegin:!0, +end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:t,relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,n]}]}}}),define("highlight/lib/languages/d",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",r="0[bB][01_]+",a="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+a,s="([eE][+-]?"+i+")",l="("+i+"(\\.\\d*|"+s+")|\\d+\\."+i+i+"|\\."+n+s+"?)",c="(0[xX]("+a+"\\."+a+"|\\.?"+a+")[pP][+-]?"+i+")",d="("+n+"|"+r+"|"+o+")",u="("+c+"|"+l+")",m="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",p={className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},g={className:"number",begin:"\\b("+u+"([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",relevance:0},h={className:"string",begin:"'("+m+"|.)",end:"'",illegal:"."},b={begin:m,relevance:0},f={className:"string",begin:'"',contains:[b],end:'"[cwd]?'},v={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},_={className:"string",begin:"`",end:"`[cwd]?"},y={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},E={className:"string",begin:'q"\\{',end:'\\}"'},w={className:"meta",begin:"^#!",end:"$",relevance:5},x={className:"meta",begin:"#(line)",end:"$",relevance:5},C={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},S=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{lexemes:e.UNDERSCORE_IDENT_RE,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,S,y,f,v,_,E,g,p,h,w,x,C]}}}),define("highlight/lib/languages/markdown",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$"},{begin:"^.+?\\n[=-]{2,}$"}]},{begin:"<",end:">",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```w*s*$",end:"^```s*$"},{begin:"`.+?`"},{begin:"^( {4}|\t)",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}}),define("highlight/lib/languages/dart",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"subst",begin:"\\$\\{",end:"}",keywords:"true false null this is new super"},n={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]}]};t.contains=[e.C_NUMBER_MODE,n];var i={keyword:"assert async await break case catch class const continue default do else enum extends false final finally for if in is new null rethrow return super switch sync this throw true try var void while with yield abstract as dynamic export external factory get implements import library operator part set static typedef",built_in:"print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num document window querySelector querySelectorAll Element ElementList"};return{keywords:i,contains:[n,e.COMMENT("/\\*\\*","\\*/",{subLanguage:"markdown"}),e.COMMENT("///","$",{subLanguage:"markdown"}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}}),define("highlight/lib/languages/delphi",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},r={className:"string",begin:/(#\d+)+/},a={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},o={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,r]}].concat(n)};return{aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,r,e.NUMBER_MODE,a,o].concat(n)}}}),define("highlight/lib/languages/diff",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^\-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/\*{5}/,end:/\*{5}$/}]},{className:"addition",begin:"^\\+",end:"$"},{className:"deletion",begin:"^\\-",end:"$"},{className:"addition",begin:"^\\!",end:"$"}]}}}),define("highlight/lib/languages/django",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%}/,/\{%\s*endcomment\s*%}/),e.COMMENT(/\{#/,/#}/),{className:"template-tag",begin:/\{%/,end:/%}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/}}/,contains:[t]}]}}}),define("highlight/lib/languages/dns",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}}),define("highlight/lib/languages/dockerfile",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env user onbuild",contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck",starts:{end:/[^\\]\n/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r={className:"variable",begin:"\\&[a-z\\d_]*\\b"},a={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",begin:"<",end:">",contains:[n,r]},l={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0},c={className:"class",begin:"/\\s*{",end:"};",relevance:10,contains:[r,a,o,l,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t]};return{keywords:"",contains:[c,r,a,o,l,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,i,{begin:e.IDENT_RE+"::",keywords:""}]}}}),define("highlight/lib/languages/dust",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="if eq ne lt lte gt gte select default math sep";return{aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:t}]}}}),define("highlight/lib/languages/ebnf",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z][a-zA-Z-]*([\s-]+[a-zA-Z][a-zA-Z]*)*/},i={className:"meta",begin:/\?.*\?/},r={begin:/=/,end:/;/,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{illegal:/\S/,contains:[t,n,r]}}}),define("highlight/lib/languages/elixir",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?",n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i="and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote",r={className:"subst",begin:"#\\{",end:"}",lexemes:t,keywords:i},a={className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:t,endsParent:!0})]},s=e.inherit(o,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),l=[a,e.HASH_COMMENT_MODE,s,o,{className:"symbol",begin:":(?!\\s)",contains:[a,{begin:n}],relevance:0},{className:"symbol",begin:t+":",relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{begin:"->"},{begin:"("+e.RE_STARTERS_RE+")\\s*",contains:[e.HASH_COMMENT_MODE,{className:"regexp",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return r.contains=l,{lexemes:t,keywords:i,contains:l}}}),define("highlight/lib/languages/elm",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},r={begin:"{",end:"}",contains:i.contains};return{keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,i,r,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}}),define("highlight/lib/languages/ruby",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",n={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},i={className:"doctag",begin:"@[A-Za-z]+"},r={begin:"#<",end:">"},a=[e.COMMENT("#","$",{contains:[i]}),e.COMMENT("^\\=begin","^\\=end",{contains:[i],relevance:10}),e.COMMENT("^__END__","\\n$")],o={className:"subst",begin:"#\\{",end:"}",keywords:n},s={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[qQwWx]?\\(",end:"\\)"},{begin:"%[qQwWx]?\\[",end:"\\]"},{begin:"%[qQwWx]?{",end:"}"},{begin:"%[qQwWx]?<",end:">"},{begin:"%[qQwWx]?/",end:"/"},{begin:"%[qQwWx]?%",end:"%"},{begin:"%[qQwWx]?-",end:"-"},{begin:"%[qQwWx]?\\|",end:"\\|"},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<(-?)\w+$/,end:/^\s*\w+$/}]},l={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:n},c=[s,r,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(a)},{className:"function",beginKeywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:t}),l].concat(a)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[s,{begin:t}],relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{className:"params",begin:/\|/,end:/\|/,keywords:n},{begin:"("+e.RE_STARTERS_RE+")\\s*",contains:[r,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,o],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r{",end:"}[a-z]*"},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a),relevance:0}].concat(a);o.contains=c,l.contains=c;var d="[>?]>",u="[\\w#]+\\(\\w+\\):\\d+:\\d+>",m="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",p=[{begin:/^\s*=>/,starts:{end:"$",contains:c}},{className:"meta",begin:"^("+d+"|"+u+"|"+m+")",starts:{end:"$",contains:c}}];return{aliases:["rb","gemspec","podspec","thor","irb"],keywords:n,illegal:/\/\*/,contains:a.concat(p).concat(c)}}}),define("highlight/lib/languages/erb",["require","exports","module"],function(e,t,n){n.exports=function(e){return{subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}}),define("highlight/lib/languages/erlang-repl",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\?(::)?([A-Z]\\w*(::)?)+"},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}}),define("highlight/lib/languages/erlang",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},r=e.COMMENT("%","$"),a={className:"number",begin:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:"{",end:"}",relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},u={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:"{",end:"}",relevance:0}]},m={beginKeywords:"fun receive if try case",end:"end",keywords:i};m.contains=[r,o,e.inherit(e.APOS_STRING_MODE,{className:""}),m,s,e.QUOTE_STRING_MODE,a,l,c,d,u];var p=[r,o,m,s,e.QUOTE_STRING_MODE,a,l,c,d,u];s.contains[1].contains=p,l.contains=p,u.contains[1].contains=p;var g={className:"params",begin:"\\(",end:"\\)",contains:p};return{aliases:["erl"],keywords:i,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[g,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:i,contains:p}},r,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,lexemes:"-"+e.IDENT_RE,keywords:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec",contains:[g]},a,e.QUOTE_STRING_MODE,u,c,d,l,{begin:/\.$/}]}}}),define("highlight/lib/languages/excel",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["xlsx","xls"],case_insensitive:!0,lexemes:/[a-zA-Z][\w\.]*/,keywords:{built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF|0 IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}}),define("highlight/lib/languages/fix",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}}),define("highlight/lib/languages/fortran",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"params",begin:"\\(",end:"\\)"},n={literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image" +};return{case_insensitive:!0,aliases:["f90","f95"],keywords:n,illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,t]},e.COMMENT("!","$",{relevance:0}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}}}),define("highlight/lib/languages/fsharp",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:"<",end:">",contains:[e.inherit(e.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},e.COMMENT("\\(\\*","\\*\\)"),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE,t]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[e.BACKSLASH_ESCAPE]},e.C_LINE_COMMENT_MODE,e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/gams",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na","built-in":"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},n={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/\=[lgenxc]=/},{begin:/\$/}]},r={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:t,contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},o={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[r,a,{className:"comment",begin:/([ ]*[a-z0-9&#*=?@>\\<:\-,()$\[\]_.{}!+%^]+)+/,relevance:0}]};return{aliases:["gms"],case_insensitive:!0,keywords:t,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,o]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[o]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z][a-z0-9_]+/},n,i]},e.C_NUMBER_MODE,i]}}}),define("highlight/lib/languages/gauss",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"and bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new not open or output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav indx integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname threadBegin threadEnd threadEndFor threadFor threadJoin threadStat time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS"},n={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i=e.UNDERSCORE_IDENT_RE+"\\s*\\(?",r=[{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}];return{aliases:["gss"],case_insensitive:!0,keywords:t,illegal:"(\\{[%#]|[%#]\\})",contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("@","@"),n,{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"function",beginKeywords:"proc keyword",end:";",excludeEnd:!0,keywords:t,contains:[{begin:i,returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n].concat(r)},{className:"function",beginKeywords:"fn",end:";",excludeEnd:!0,keywords:t,contains:[{begin:i+e.IDENT_RE+"\\)?\\s*\\=\\s*",returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE].concat(r)},{className:"function",begin:"\\bexternal (proc|keyword|fn)\\s+",end:";",excludeEnd:!0,keywords:t,contains:[{begin:i,returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"\\bexternal (matrix|string|array|sparse matrix|struct "+e.IDENT_RE+")\\s+",end:";",excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}}}),define("highlight/lib/languages/gcode",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[A-Z_][A-Z0-9_.]*",n="\\%",i="IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR",r={className:"meta",begin:"([O])([0-9]+)"},a=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?([0-9]*\\.?[0-9]+\\.?))|"+e.C_NUMBER_RE}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",end:"([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{aliases:["nc"],case_insensitive:!0,lexemes:t,keywords:i,contains:[{className:"meta",begin:n},r].concat(a)}}}),define("highlight/lib/languages/gherkin",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}}),define("highlight/lib/languages/glsl",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{keyword:"break continue discard do else for if return whileattribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBufferiimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}}),define("highlight/lib/languages/go",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],keywords:t,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:"#{",starts:{end:"}",subLanguage:"ruby"}}]}}}),define("highlight/lib/languages/handlebars",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={"builtin-name":"each in with if else unless bindattr action collection debugger log outlet template unbound view yield"};return{aliases:["hbs","html.hbs","html.handlebars"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,keywords:t,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,keywords:t}]}}}),define("highlight/lib/languages/haskell",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},n={className:"meta",begin:"{-#",end:"#-}"},i={className:"meta",begin:"^#",end:"$"},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},a={begin:"\\(",end:"\\)",illegal:'"',contains:[n,i,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]},o={begin:"{",end:"}",contains:a.contains};return{aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[a,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[a,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[r,a,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,r,a,o,t]},{beginKeywords:"default",end:"$",contains:[r,a,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[r,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,i,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,r,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}}),define("highlight/lib/languages/haxe",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)";return{aliases:["hx"],keywords:{keyword:"break callback case cast catch class continue default do dynamic else enum extends extern for function here if implements import in inline interface never new override package private public return static super switch this throw trace try typedef untyped using var while",literal:"true false null"},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.TITLE_MODE]},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"function",beginKeywords:"function",end:"[{;]",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:":\\s*"+t}]}]}}}),define("highlight/lib/languages/hsp",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,lexemes:/[\w\._]+/,keywords:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:'{"',end:'"}',contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}});define("highlight/lib/languages/htmlbars",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view",n={illegal:/\}\}/,begin:/[a-zA-Z0-9_]+=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[a-zA-Z0-9_]+/}]},i=({illegal:/\}\}/,begin:/\)/,end:/\)/,contains:[{begin:/[a-zA-Z\.\-]+/,keywords:{built_in:t},starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{endsWithParent:!0,relevance:0,keywords:{keyword:"as",built_in:t},contains:[e.QUOTE_STRING_MODE,n,e.NUMBER_MODE]});return{case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.\-]+/,keywords:{"builtin-name":t},starts:i}]},{className:"template-variable",begin:/\{\{[a-zA-Z][a-zA-Z\-]+/,end:/\}\}/,keywords:{keyword:"as",built_in:t},contains:[e.QUOTE_STRING_MODE]}]}}});define("highlight/lib/languages/http",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],illegal:"\\S",contains:[{begin:"^"+t,end:"$",contains:[{className:"number",begin:"\\b\\d{3}\\b"}]},{begin:"^[A-Z]+ (.*?) "+t+"$",returnBegin:!0,end:"$",contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{begin:t},{className:"keyword",begin:"[A-Z]+"}]},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,illegal:"\\n|\\s|=",starts:{end:"$",relevance:0}},{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}]}}}),define("highlight/lib/languages/inform7",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="\\[",n="\\]";return{aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:t,end:n}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:t,end:n,contains:["self"]}]}}}),define("highlight/lib/languages/ini",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]};return{aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(";","$"),e.HASH_COMMENT_MODE,{className:"section",begin:/^\s*\[+/,end:/\]+/},{begin:/^[a-z0-9\[\]_-]+\s*=\s*/,end:"$",returnBegin:!0,contains:[{className:"attr",begin:/[a-z0-9\[\]_-]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\bon|off|true|false|yes|no\b/},{className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)}/}]},t,{className:"number",begin:/([\+\-]+)?[\d]+_[\d_]+/},e.NUMBER_MODE]}]}]}}}),define("highlight/lib/languages/irpf90",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"params",begin:"\\(",end:"\\)"},n={literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"};return{case_insensitive:!0,keywords:n,illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,t]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}}}),define("highlight/lib/languages/java",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.UNDERSCORE_IDENT_RE+"(<"+e.UNDERSCORE_IDENT_RE+"(\\s*,\\s*"+e.UNDERSCORE_IDENT_RE+")*>)?",n="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports",i="\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",r={className:"number",begin:i,relevance:0};return{aliases:["jsp"],keywords:n,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"("+t+"\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:n,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r,{className:"meta",begin:"@[A-Za-z]+"}]}}}),define("highlight/lib/languages/javascript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},r={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},a={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,r]};r.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,i,e.REGEXP_MODE];var o=r.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:o}]}]},{begin://,subLanguage:"xml",contains:[{begin:/<\w+\s*\/>/,skip:!0},{begin:/<\w+/,end:/(\/\w+|\w+\/)>/,skip:!0,contains:[{begin:/<\w+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:o}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}}),define("highlight/lib/languages/json",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={literal:"true false null"},n=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],i={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:t},r={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(i,{begin:/:/})],illegal:"\\S"},a={begin:"\\[",end:"\\]",contains:[e.inherit(i)],illegal:"\\S"};return n.splice(n.length,0,r,a),{contains:n,keywords:t,illegal:"\\S"}}}),define("highlight/lib/languages/julia",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"in abstract baremodule begin bitstype break catch ccall const continue do else elseif end export finally for function global if immutable import importall let local macro module quote return try type typealias using while",literal:"true false ARGS CPU_CORES C_NULL DL_LOAD_PATH DevNull ENDIAN_BOM ENV I|0 Inf Inf16 Inf32 InsertionSort JULIA_HOME LOAD_PATH MS_ASYNC MS_INVALIDATE MS_SYNC MergeSort NaN NaN16 NaN32 OS_NAME QuickSort RTLD_DEEPBIND RTLD_FIRST RTLD_GLOBAL RTLD_LAZY RTLD_LOCAL RTLD_NODELETE RTLD_NOLOAD RTLD_NOW RoundDown RoundFromZero RoundNearest RoundToZero RoundUp STDERR STDIN STDOUT VERSION WORD_SIZE catalan cglobal e|0 eu|0 eulergamma golden im nothing pi γ π φ Inf64 NaN64 RoundNearestTiesAway RoundNearestTiesUp ",built_in:"ANY ASCIIString AbstractArray AbstractRNG AbstractSparseArray Any ArgumentError Array Associative Base64Pipe Bidiagonal BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError Box CFILE Cchar Cdouble Cfloat Char CharString Cint Clong Clonglong ClusterManager Cmd Coff_t Colon Complex Complex128 Complex32 Complex64 Condition Cptrdiff_t Cshort Csize_t Cssize_t Cuchar Cuint Culong Culonglong Cushort Cwchar_t DArray DataType DenseArray Diagonal Dict DimensionMismatch DirectIndexString Display DivideError DomainError EOFError EachLine Enumerate ErrorException Exception Expr Factorization FileMonitor FileOffset Filter Float16 Float32 Float64 FloatRange FloatingPoint Function GetfieldNode GotoNode Hermitian IO IOBuffer IOStream IPv4 IPv6 InexactError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException IntrinsicFunction KeyError LabelNode LambdaStaticData LineNumberNode LoadError LocalProcess MIME MathConst MemoryError MersenneTwister Method MethodError MethodTable Module NTuple NewvarNode Nothing Number ObjectIdDict OrdinalRange OverflowError ParseError PollingFileWatcher ProcessExitedException ProcessGroup Ptr QuoteNode Range Range1 Ranges Rational RawFD Real Regex RegexMatch RemoteRef RepString RevString RopeString RoundingMode Set SharedArray Signed SparseMatrixCSC StackOverflowError Stat StatStruct StepRange String SubArray SubString SymTridiagonal Symbol SymbolNode Symmetric SystemError Task TextDisplay Timer TmStruct TopNode Triangular Tridiagonal Type TypeConstructor TypeError TypeName TypeVar UTF16String UTF32String UTF8String UdpSocket Uint Uint128 Uint16 Uint32 Uint64 Uint8 UndefRefError UndefVarError UniformScaling UnionType UnitRange Unsigned Vararg VersionNumber WString WeakKeyDict WeakRef Woodbury Zip AbstractChannel AbstractFloat AbstractString AssertionError Base64DecodePipe Base64EncodePipe BufferStream CapturedException CartesianIndex CartesianRange Channel Cintmax_t CompositeException Cstring Cuintmax_t Cwstring Date DateTime Dims Enum GenSym GlobalRef HTML InitError InvalidStateException Irrational LinSpace LowerTriangular NullException Nullable OutOfMemoryError Pair PartialQuickSort Pipe RandomDevice ReadOnlyMemoryError ReentrantLock Ref RemoteException SegmentationFault SerializationState SimpleVector TCPSocket Text Tuple UDPSocket UInt UInt128 UInt16 UInt32 UInt64 UInt8 UnicodeError Union UpperTriangular Val Void WorkerConfig AbstractMatrix AbstractSparseMatrix AbstractSparseVector AbstractVecOrMat AbstractVector DenseMatrix DenseVecOrMat DenseVector Matrix SharedMatrix SharedVector StridedArray StridedMatrix StridedVecOrMat StridedVector VecOrMat Vector "},n="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",i={lexemes:n,keywords:t,illegal:/<\//},r={className:"type",begin:/::/},a={className:"type",begin:/<:/},o={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},s={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},l={className:"subst",begin:/\$\(/,end:/\)/,keywords:t},c={className:"variable",begin:"\\$"+n},d={className:"string",contains:[e.BACKSLASH_ESCAPE,l,c],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},u={className:"string",contains:[e.BACKSLASH_ESCAPE,l,c],begin:"`",end:"`"},m={className:"meta",begin:"@"+n},p={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return i.contains=[o,s,r,a,d,u,m,p,e.HASH_COMMENT_MODE],l.contains=i.contains,i}}),define("highlight/lib/languages/kotlin",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline interface annotation data sealed internal infix operator out by constructor super trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},r={className:"subst",variants:[{begin:"\\$"+e.UNDERSCORE_IDENT_RE},{begin:"\\${",end:"}",contains:[e.APOS_STRING_MODE,e.C_NUMBER_MODE]}]},a={className:"string",variants:[{begin:'"""',end:'"""',contains:[r]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,r]}]},o={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},s={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"meta-string"})]}]};return{keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,i,o,s,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,illegal:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,s,a,e.C_NUMBER_MODE]},e.C_BLOCK_COMMENT_MODE]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},o,s]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/lasso",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",i="\\]|\\?>",r={literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},a=e.COMMENT("",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[a]}},s={className:"meta",begin:"\\[/noprocess|"+n},l={className:"symbol",begin:"'"+t+"'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{aliases:["ls","lassoscript"],case_insensitive:!0,lexemes:t+"|&[lg]t;",keywords:r,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[a]}},o,s,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",lexemes:t+"|&[lg]t;",keywords:r,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[a]}},o,s].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}}),define("highlight/lib/languages/ldif",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},e.HASH_COMMENT_MODE]}}}),define("highlight/lib/languages/less",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[\\w-]+",n="("+t+"|@{"+t+"})",i=[],r=[],a=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},o=function(e,t,n){return{className:e,begin:t,relevance:n}},s={begin:"\\(",end:"\\)",contains:r,relevance:0};r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a("'"),a('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},o("number","#[0-9A-Fa-f]+\\b"),s,o("variable","@@?"+t,10),o("variable","@{"+t+"}"),o("built_in","~?`[^`]*?`"),{className:"attribute",begin:t+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var l=r.concat({begin:"{",end:"}",contains:i}),c={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(r)},d={begin:n+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:n,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:r}}]},u={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b", +starts:{end:"[;{}]",returnEnd:!0,contains:r,relevance:0}},m={className:"variable",variants:[{begin:"@"+t+"\\s*:",relevance:15},{begin:"@"+t}],starts:{end:"[;}]",returnEnd:!0,contains:l}},p={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:n,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,o("keyword","all\\b"),o("variable","@{"+t+"}"),o("selector-tag",n+"%?",0),o("selector-id","#"+n),o("selector-class","\\."+n,0),o("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:l},{begin:"!important"}]};return i.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u,m,d,p),{case_insensitive:!0,illegal:"[=>'/<($\"]",contains:i}}}),define("highlight/lib/languages/lisp",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",n="\\|[^]*?\\|",i="(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?",r={className:"meta",begin:"^#!",end:"$"},a={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),c={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+t},u={begin:t,relevance:0},m={begin:n},p={begin:"\\(",end:"\\)",contains:["self",a,s,o,u]},g={contains:[o,s,c,d,p,u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},h={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},b={begin:"\\(\\s*",end:"\\)"},f={endsWithParent:!0,relevance:0};return b.contains=[{className:"name",variants:[{begin:t},{begin:n}]},f],f.contains=[g,h,b,a,o,s,l,c,d,m,u],{illegal:/\S/,contains:[o,r,a,s,l,g,h,b,u]}}}),define("highlight/lib/languages/livecodeserver",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:"\\b[gtps][A-Z]+[A-Za-z0-9_\\-]*\\b|\\$_[A-Z]+",relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),r=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract union unload wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[r,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(n),illegal:";$|^\\[|^=|&|{"}}}),define("highlight/lib/languages/livescript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger case default function var with then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super case default function var void const let enum export import native __hasProp __extends __slice __bind __indexOf",literal:"true false null undefined yes no on off it that void",built_in:"npm require console print module global window document"},n="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",i=e.inherit(e.TITLE_MODE,{begin:n}),r={className:"subst",begin:/#\{/,end:/}/,keywords:t},a={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},o=[e.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,r,a]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,a]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[r,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{begin:"@"+n},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];r.contains=o;var s={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(o)}]};return{aliases:["ls"],keywords:t,illegal:/\/\*/,contains:o.concat([e.COMMENT("\\/\\*","\\*\\/"),e.HASH_COMMENT_MODE,{className:"function",contains:[i,s],returnBegin:!0,variants:[{begin:"("+n+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?",end:"\\->\\*?"},{begin:"("+n+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\))?\\s*\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+n+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[i]},i]},{begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}),define("highlight/lib/languages/lsl",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"subst",begin:/\\[tn"\\]/},n={className:"string",begin:'"',end:'"',contains:[t]},i={className:"number",begin:e.C_NUMBER_RE},r={className:"literal",variants:[{begin:"\\b(?:PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(?:XP_ERROR_(?:EXPERIENCES_DISABLED|EXPERIENCE_(?:DISABLED|SUSPENDED)|INVALID_(?:EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(?:FOUND|PERMITTED(?:_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(?:PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(?:_OBJECT)?|(?:DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(?:FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(?:_(?:BY_(?:LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(?:PARCEL(?:_OWNER)?|REGION)))?|CAMERA_(?:PITCH|DISTANCE|BEHINDNESS_(?:ANGLE|LAG)|(?:FOCUS|POSITION)(?:_(?:THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(?:ROOT|SET|ALL_(?:OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(?:IVE|_(?:ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(?:FWD|BACK|(?:ROT_)?(?:LEFT|RIGHT)|UP|DOWN|(?:ML_)?LBUTTON)|PERMISSION_(?:RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(?:CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(?:TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(?:INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(?:_START)?|TELEPORT|MEDIA)|OBJECT_(?:CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(?:PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_ON_REZ|NAME|DESC|POS|PRIM_(?:COUNT|EQUIVALENCE)|RETURN_(?:PARCEL(?:_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP|CREATOR|ATTACHED_POINT|RENDER_WEIGHT|(?:BODY_SHAPE|PATHFINDING)_TYPE|(?:RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(?:MEMORY|TIME))|TYPE_(?:INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(?:DEBUG|PUBLIC)_CHANNEL|ATTACH_(?:AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](?:SHOULDER|HAND|FOOT|EAR|EYE|[UL](?:ARM|LEG)|HIP)|(?:LEFT|RIGHT)_PEC|HUD_(?:CENTER_[12]|TOP_(?:RIGHT|CENTER|LEFT)|BOTTOM(?:_(?:RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(?:BASE|TIP)|[LR]WING|FACE_(?:JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(?:LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(?:ONLINE|NAME|BORN|SIM_(?:POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(?:ON_FILE|USED)|REMOTE_DATA_(?:CHANNEL|REQUEST|REPLY)|PSYS_(?:PART_(?:BF_(?:ZERO|ONE(?:_MINUS_(?:DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(?:START|END)_(?:COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(?:RIBBON|WIND|INTERP_(?:COLOR|SCALE)|BOUNCE|FOLLOW_(?:SRC|VELOCITY)|TARGET_(?:POS|LINEAR)|EMISSIVE)_MASK)|SRC_(?:MAX_AGE|PATTERN|ANGLE_(?:BEGIN|END)|BURST_(?:RATE|PART_COUNT|RADIUS|SPEED_(?:MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(?:DROP|EXPLODE|ANGLE(?:_CONE(?:_EMPTY)?)?)))|VEHICLE_(?:REFERENCE_FRAME|TYPE_(?:NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(?:LINEAR|ANGULAR)_(?:FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(?:HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(?:LINEAR|ANGULAR)_(?:DEFLECTION_(?:EFFICIENCY|TIMESCALE)|MOTOR_(?:DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(?:EFFICIENCY|TIMESCALE)|BANKING_(?:EFFICIENCY|MIX|TIMESCALE)|FLAG_(?:NO_DEFLECTION_UP|LIMIT_(?:ROLL_ONLY|MOTOR_UP)|HOVER_(?:(?:WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(?:STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(?:ALPHA_MODE(?:_(?:BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(?:_(?:BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(?:DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(?:_(?:STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(?:NONE|LOW|MEDIUM|HIGH)|BUMP_(?:NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(?:DEFAULT|PLANAR)|SCULPT_(?:TYPE_(?:SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(?:MIRROR|INVERT))|PHYSICS(?:_(?:SHAPE_(?:CONVEX|NONE|PRIM|TYPE)))?|(?:POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(?:ALT_IMAGE_ENABLE|CONTROLS|(?:CURRENT|HOME)_URL|AUTO_(?:LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(?:WIDTH|HEIGHT)_PIXELS|WHITELIST(?:_ENABLE)?|PERMS_(?:INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(?:STANDARD|MINI)|PERM_(?:NONE|OWNER|GROUP|ANYONE)|MAX_(?:URL_LENGTH|WHITELIST_(?:SIZE|COUNT)|(?:WIDTH|HEIGHT)_PIXELS)))|MASK_(?:BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(?:TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(?:MEDIA_COMMAND_(?:STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(?:ALLOW_(?:FLY|(?:GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(?:GROUP_)?OBJECTS)|USE_(?:ACCESS_(?:GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(?:GROUP|ALL)_OBJECT_ENTRY)|COUNT_(?:TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(?:NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(?:MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(?:_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(?:HIDE|DEFAULT)|REGION_FLAG_(?:ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(?:COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(?:METHOD|MIMETYPE|BODY_(?:MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|STRING_(?:TRIM(?:_(?:HEAD|TAIL))?)|CLICK_ACTION_(?:NONE|TOUCH|SIT|BUY|PAY|OPEN(?:_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(?:NONE|SCRIPT_MEMORY)|RC_(?:DATA_FLAGS|DETECT_PHANTOM|GET_(?:LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(?:TYPES|AGENTS|(?:NON)?PHYSICAL|LAND))|RCERR_(?:CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(?:ALLOWED_(?:AGENT|GROUP)_(?:ADD|REMOVE)|BANNED_AGENT_(?:ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(?:COMMAND|CMD_(?:PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(?:GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(?:CMD_(?:(?:SMOOTH_)?STOP|JUMP)|DESIRED_(?:TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(?:_(?:[ABCD]|NONE))?|MAX_(?:DECEL|TURN_RADIUS|(?:ACCEL|SPEED)))|PURSUIT_(?:OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(?:CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(?:EVADE_(?:HIDDEN|SPOTTED)|FAILURE_(?:DYNAMIC_PATHFINDING_DISABLED|INVALID_(?:GOAL|START)|NO_(?:NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(?:PARCEL_)?UNREACHABLE)|(?:GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(?:_(?:FAST|NONE|SLOW))?|CONTENT_TYPE_(?:ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(?:RADIUS|STATIC)|(?:PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(?:AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(?:FALSE|TRUE)\\b"},{begin:"\\b(?:ZERO_ROTATION)\\b"},{begin:"\\b(?:EOF|JSON_(?:ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(?:BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(?:GRANTED|DENIED))\\b"},{begin:"\\b(?:ZERO_VECTOR|TOUCH_INVALID_(?:TEXCOORD|VECTOR))\\b"}]},a={className:"built_in",begin:"\\b(?:ll(?:AgentInExperience|(?:Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(?:Details|ErrorMessage)|ReturnObjectsBy(?:ID|Owner)|Json(?:2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(?:Mag|Norm|Dist)|Rot(?:Between|2(?:Euler|Fwd|Left|Up))|(?:Euler|Axes)2Rot|Whisper|(?:Region|Owner)?Say|Shout|Listen(?:Control|Remove)?|Sensor(?:Repeat|Remove)?|Detected(?:Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|(?:[GS]et)(?:AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(?:Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(?:Scale|Offset|Rotate)Texture|(?:Rot)?Target(?:Remove)?|(?:Stop)?MoveToTarget|Apply(?:Rotational)?Impulse|Set(?:KeyframedMotion|ContentType|RegionPos|(?:Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(?:Queueing|Radius)|Vehicle(?:Type|(?:Float|Vector|Rotation)Param)|(?:Touch|Sit)?Text|Camera(?:Eye|At)Offset|PrimitiveParams|ClickAction|Link(?:Alpha|Color|PrimitiveParams(?:Fast)?|Texture(?:Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get(?:(?:Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(?:PrimitiveParams|Number(?:OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(?:Details|PermMask|PrimCount)|Parcel(?:MaxPrims|Details|Prim(?:Count|Owners))|Attached(?:List)?|(?:SPMax|Free|Used)Memory|Region(?:Name|TimeDilation|FPS|Corner|AgentCount)|Root(?:Position|Rotation)|UnixTime|(?:Parcel|Region)Flags|(?:Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(?:Prims|NotecardLines|Sides)|Animation(?:List)?|(?:Camera|Local)(?:Pos|Rot)|Vel|Accel|Omega|Time(?:stamp|OfDay)|(?:Object|CenterOf)?Mass|MassMKS|Energy|Owner|(?:Owner)?Key|SunDirection|Texture(?:Offset|Scale|Rot)|Inventory(?:Number|Name|Key|Type|Creator|PermMask)|Permissions(?:Key)?|StartParameter|List(?:Length|EntryType)|Date|Agent(?:Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(?:Name|State))|(?:Get|Reset|GetAndReset)Time|PlaySound(?:Slave)?|LoopSound(?:Master|Slave)?|(?:Trigger|Stop|Preload)Sound|(?:(?:Get|Delete)Sub|Insert)String|To(?:Upper|Lower)|Give(?:InventoryList|Money)|RezObject|(?:Stop)?LookAt|Sleep|CollisionFilter|(?:Take|Release)Controls|DetachFromAvatar|AttachToAvatar(?:Temp)?|InstantMessage|(?:GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(?:Length|Trim)|(?:Start|Stop)Animation|TargetOmega|Request(?:Experience)?Permissions|(?:Create|Break)Link|BreakAllLinks|(?:Give|Remove)Inventory|Water|PassTouches|Request(?:Agent|Inventory)Data|TeleportAgent(?:Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(?:Axis|Angle)|A(?:cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(?:CSV|Integer|Json|Float|String|Key|Vector|Rot|List(?:Strided)?)|DeleteSubList|List(?:Statistics|Sort|Randomize|(?:Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(?:CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(?:Slope|Normal|Contour)|GroundRepel|(?:Set|Remove)VehicleFlags|(?:AvatarOn)?(?:Link)?SitTarget|Script(?:Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(?:Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(?:Integer|String)ToBase64|XorBase64|Log(?:10)?|Base64To(?:String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(?:Load|Release|(?:E|Une)scape)URL|ParcelMedia(?:CommandList|Query)|ModPow|MapDestination|(?:RemoveFrom|AddTo|Reset)Land(?:Pass|Ban)List|(?:Set|Clear)CameraParams|HTTP(?:Request|Response)|TextBox|DetectedTouch(?:UV|Face|Pos|(?:N|Bin)ormal|ST)|(?:MD5|SHA1|DumpList2)String|Request(?:Secure)?URL|Clear(?:Prim|Link)Media|(?:Link)?ParticleSystem|(?:Get|Request)(?:Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(?:Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{illegal:":",contains:[n,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")]},i,{className:"section",variants:[{begin:"\\b(?:state|default)\\b"},{begin:"\\b(?:state_(?:entry|exit)|touch(?:_(?:start|end))?|(?:land_)?collision(?:_(?:start|end))?|timer|listen|(?:no_)?sensor|control|(?:not_)?at_(?:rot_)?target|money|email|experience_permissions(?:_denied)?|run_time_permissions|changed|attach|dataserver|moving_(?:start|end)|link_message|(?:on|object)_rez|remote_data|http_re(?:sponse|quest)|path_update|transaction_result)\\b"}]},a,r,{className:"type",begin:"\\b(?:integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}}),define("highlight/lib/languages/lua",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="\\[=*\\[",n="\\]=*\\]",i={begin:t,end:n,contains:["self"]},r=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[i],relevance:10})];return{lexemes:e.UNDERSCORE_IDENT_RE,keywords:{keyword:"and break do else elseif end false for if in local nil not or repeat return then true until while",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},contains:r.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:r}].concat(r)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[i],relevance:5}])}}}),define("highlight/lib/languages/makefile",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]};return{aliases:["mk","mak"],contains:[e.HASH_COMMENT_MODE,{begin:/^\w+\s*\W*=/,returnBegin:!0,relevance:0,starts:{end:/\s*\W*=/,excludeEnd:!0,starts:{end:/$/,relevance:0,contains:[t]}}},{className:"section",begin:/^[\w]+:\s*$/},{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{"meta-keyword":".PHONY"},lexemes:/[\.\w]+/},{begin:/^\t+/,end:/$/,relevance:0,contains:[e.QUOTE_STRING_MODE,t]}]}}}),define("highlight/lib/languages/mathematica",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["mma"],lexemes:"(\\$|\\b)"+e.IDENT_RE+"\\b",keywords:"AbelianGroup Abort AbortKernels AbortProtect Above Abs Absolute AbsoluteCorrelation AbsoluteCorrelationFunction AbsoluteCurrentValue AbsoluteDashing AbsoluteFileName AbsoluteOptions AbsolutePointSize AbsoluteThickness AbsoluteTime AbsoluteTiming AccountingForm Accumulate Accuracy AccuracyGoal ActionDelay ActionMenu ActionMenuBox ActionMenuBoxOptions Active ActiveItem ActiveStyle AcyclicGraphQ AddOnHelpPath AddTo AdjacencyGraph AdjacencyList AdjacencyMatrix AdjustmentBox AdjustmentBoxOptions AdjustTimeSeriesForecast AffineTransform After AiryAi AiryAiPrime AiryAiZero AiryBi AiryBiPrime AiryBiZero AlgebraicIntegerQ AlgebraicNumber AlgebraicNumberDenominator AlgebraicNumberNorm AlgebraicNumberPolynomial AlgebraicNumberTrace AlgebraicRules AlgebraicRulesData Algebraics AlgebraicUnitQ Alignment AlignmentMarker AlignmentPoint All AllowedDimensions AllowGroupClose AllowInlineCells AllowKernelInitialization AllowReverseGroupClose AllowScriptLevelChange AlphaChannel AlternatingGroup AlternativeHypothesis Alternatives AmbientLight Analytic AnchoredSearch And AndersonDarlingTest AngerJ AngleBracket AngularGauge Animate AnimationCycleOffset AnimationCycleRepetitions AnimationDirection AnimationDisplayTime AnimationRate AnimationRepetitions AnimationRunning Animator AnimatorBox AnimatorBoxOptions AnimatorElements Annotation Annuity AnnuityDue Antialiasing Antisymmetric Apart ApartSquareFree Appearance AppearanceElements AppellF1 Append AppendTo Apply ArcCos ArcCosh ArcCot ArcCoth ArcCsc ArcCsch ArcSec ArcSech ArcSin ArcSinDistribution ArcSinh ArcTan ArcTanh Arg ArgMax ArgMin ArgumentCountQ ARIMAProcess ArithmeticGeometricMean ARMAProcess ARProcess Array ArrayComponents ArrayDepth ArrayFlatten ArrayPad ArrayPlot ArrayQ ArrayReshape ArrayRules Arrays Arrow Arrow3DBox ArrowBox Arrowheads AspectRatio AspectRatioFixed Assert Assuming Assumptions AstronomicalData Asynchronous AsynchronousTaskObject AsynchronousTasks AtomQ Attributes AugmentedSymmetricPolynomial AutoAction AutoDelete AutoEvaluateEvents AutoGeneratedPackage AutoIndent AutoIndentSpacings AutoItalicWords AutoloadPath AutoMatch Automatic AutomaticImageSize AutoMultiplicationSymbol AutoNumberFormatting AutoOpenNotebooks AutoOpenPalettes AutorunSequencing AutoScaling AutoScroll AutoSpacing AutoStyleOptions AutoStyleWords Axes AxesEdge AxesLabel AxesOrigin AxesStyle Axis BabyMonsterGroupB Back Background BackgroundTasksSettings Backslash Backsubstitution Backward Band BandpassFilter BandstopFilter BarabasiAlbertGraphDistribution BarChart BarChart3D BarLegend BarlowProschanImportance BarnesG BarOrigin BarSpacing BartlettHannWindow BartlettWindow BaseForm Baseline BaselinePosition BaseStyle BatesDistribution BattleLemarieWavelet Because BeckmannDistribution Beep Before Begin BeginDialogPacket BeginFrontEndInteractionPacket BeginPackage BellB BellY Below BenfordDistribution BeniniDistribution BenktanderGibratDistribution BenktanderWeibullDistribution BernoulliB BernoulliDistribution BernoulliGraphDistribution BernoulliProcess BernsteinBasis BesselFilterModel BesselI BesselJ BesselJZero BesselK BesselY BesselYZero Beta BetaBinomialDistribution BetaDistribution BetaNegativeBinomialDistribution BetaPrimeDistribution BetaRegularized BetweennessCentrality BezierCurve BezierCurve3DBox BezierCurve3DBoxOptions BezierCurveBox BezierCurveBoxOptions BezierFunction BilateralFilter Binarize BinaryFormat BinaryImageQ BinaryRead BinaryReadList BinaryWrite BinCounts BinLists Binomial BinomialDistribution BinomialProcess BinormalDistribution BiorthogonalSplineWavelet BipartiteGraphQ BirnbaumImportance BirnbaumSaundersDistribution BitAnd BitClear BitGet BitLength BitNot BitOr BitSet BitShiftLeft BitShiftRight BitXor Black BlackmanHarrisWindow BlackmanNuttallWindow BlackmanWindow Blank BlankForm BlankNullSequence BlankSequence Blend Block BlockRandom BlomqvistBeta BlomqvistBetaTest Blue Blur BodePlot BohmanWindow Bold Bookmarks Boole BooleanConsecutiveFunction BooleanConvert BooleanCountingFunction BooleanFunction BooleanGraph BooleanMaxterms BooleanMinimize BooleanMinterms Booleans BooleanTable BooleanVariables BorderDimensions BorelTannerDistribution Bottom BottomHatTransform BoundaryStyle Bounds Box BoxBaselineShift BoxData BoxDimensions Boxed Boxes BoxForm BoxFormFormatTypes BoxFrame BoxID BoxMargins BoxMatrix BoxRatios BoxRotation BoxRotationPoint BoxStyle BoxWhiskerChart Bra BracketingBar BraKet BrayCurtisDistance BreadthFirstScan Break Brown BrownForsytheTest BrownianBridgeProcess BrowserCategory BSplineBasis BSplineCurve BSplineCurve3DBox BSplineCurveBox BSplineCurveBoxOptions BSplineFunction BSplineSurface BSplineSurface3DBox BubbleChart BubbleChart3D BubbleScale BubbleSizes BulletGauge BusinessDayQ ButterflyGraph ButterworthFilterModel Button ButtonBar ButtonBox ButtonBoxOptions ButtonCell ButtonContents ButtonData ButtonEvaluator ButtonExpandable ButtonFrame ButtonFunction ButtonMargins ButtonMinHeight ButtonNote ButtonNotebook ButtonSource ButtonStyle ButtonStyleMenuListing Byte ByteCount ByteOrdering C CachedValue CacheGraphics CalendarData CalendarType CallPacket CanberraDistance Cancel CancelButton CandlestickChart Cap CapForm CapitalDifferentialD CardinalBSplineBasis CarmichaelLambda Cases Cashflow Casoratian Catalan CatalanNumber Catch CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterDot CentralMoment CentralMomentGeneratingFunction CForm ChampernowneNumber ChanVeseBinarize Character CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop Circle CircleBox CircleDot CircleMinus CirclePlus CircleTimes CirculantGraph CityData Clear ClearAll ClearAttributes ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent ClusteringComponents CMYKColor Coarse Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorCombine ColorConvert ColorData ColorDataFunction ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorSpace Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CommonDefaultFormatTypes Commonest CommonestFilter CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledFunction Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComponentMeasurements ComponentwiseContextMenu Compose ComposeList ComposeSeries Composition CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath Congruent Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphQ ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray Constants ConstrainedMax ConstrainedMin ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFilename ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean Control ControlActive ControlAlignment ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateDialog CreateDirectory CreateDocument CreateIntermediateDirectories CreatePalette CreatePalettePacket CreateScheduledTask CreateTemporary CreateWindow CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossingDetect CrossMatrix Csc Csch CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrentImage CurrentlySpeakingPacket CurrentValue CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecomposition D DagumDistribution DamerauLevenshteinDistance DampingFactor Darker Dashed Dashing DataCompression DataDistribution DataRange DataReversed Date DateDelimiters DateDifference DateFunction DateList DateListLogPlot DateListPlot DatePattern DatePlus DateRange DateString DateTicksFormat DaubechiesWavelet DavisDistribution DawsonF DayCount DayCountConvention DayMatchQ DayName DayPlus DayRange DayRound DeBruijnGraph Debug DebugTag Decimal DeclareKnownSymbols DeclarePackage Decompose Decrement DedekindEta Default DefaultAxesStyle DefaultBaseStyle DefaultBoxStyle DefaultButton DefaultColor DefaultControlPlacement DefaultDuplicateCellStyle DefaultDuration DefaultElement DefaultFaceGridsStyle DefaultFieldHintStyle DefaultFont DefaultFontProperties DefaultFormatType DefaultFormatTypeForStyle DefaultFrameStyle DefaultFrameTicksStyle DefaultGridLinesStyle DefaultInlineFormatType DefaultInputFormatType DefaultLabelStyle DefaultMenuStyle DefaultNaturalLanguage DefaultNewCellStyle DefaultNewInlineCellStyle DefaultNotebook DefaultOptions DefaultOutputFormatType DefaultStyle DefaultStyleDefinitions DefaultTextFormatType DefaultTextInlineFormatType DefaultTicksStyle DefaultTooltipStyle DefaultValues Defer DefineExternal DefineInputStreamMethod DefineOutputStreamMethod Definition Degree DegreeCentrality DegreeGraphDistribution DegreeLexicographic DegreeReverseLexicographic Deinitialization Del Deletable Delete DeleteBorderComponents DeleteCases DeleteContents DeleteDirectory DeleteDuplicates DeleteFile DeleteSmallComponents DeleteWithContents DeletionWarning Delimiter DelimiterFlashTime DelimiterMatching Delimiters Denominator DensityGraphics DensityHistogram DensityPlot DependentVariables Deploy Deployed Depth DepthFirstScan Derivative DerivativeFilter DescriptorStateSpace DesignMatrix Det DGaussianWavelet DiacriticalPositioning Diagonal DiagonalMatrix Dialog DialogIndent DialogInput DialogLevel DialogNotebook DialogProlog DialogReturn DialogSymbols Diamond DiamondMatrix DiceDissimilarity DictionaryLookup DifferenceDelta DifferenceOrder DifferenceRoot DifferenceRootReduce Differences DifferentialD DifferentialRoot DifferentialRootReduce DifferentiatorFilter DigitBlock DigitBlockMinimum DigitCharacter DigitCount DigitQ DihedralGroup Dilation Dimensions DiracComb DiracDelta DirectedEdge DirectedEdges DirectedGraph DirectedGraphQ DirectedInfinity Direction Directive Directory DirectoryName DirectoryQ DirectoryStack DirichletCharacter DirichletConvolve DirichletDistribution DirichletL DirichletTransform DirichletWindow DisableConsolePrintPacket DiscreteChirpZTransform DiscreteConvolve DiscreteDelta DiscreteHadamardTransform DiscreteIndicator DiscreteLQEstimatorGains DiscreteLQRegulatorGains DiscreteLyapunovSolve DiscreteMarkovProcess DiscretePlot DiscretePlot3D DiscreteRatio DiscreteRiccatiSolve DiscreteShift DiscreteTimeModelQ DiscreteUniformDistribution DiscreteVariables DiscreteWaveletData DiscreteWaveletPacketTransform DiscreteWaveletTransform Discriminant Disjunction Disk DiskBox DiskMatrix Dispatch DispersionEstimatorFunction Display DisplayAllSteps DisplayEndPacket DisplayFlushImagePacket DisplayForm DisplayFunction DisplayPacket DisplayRules DisplaySetSizePacket DisplayString DisplayTemporary DisplayWith DisplayWithRef DisplayWithVariable DistanceFunction DistanceTransform Distribute Distributed DistributedContexts DistributeDefinitions DistributionChart DistributionDomain DistributionFitTest DistributionParameterAssumptions DistributionParameterQ Dithering Div Divergence Divide DivideBy Dividers Divisible Divisors DivisorSigma DivisorSum DMSList DMSString Do DockedCells DocumentNotebook DominantColors DOSTextFormat Dot DotDashed DotEqual Dotted DoubleBracketingBar DoubleContourIntegral DoubleDownArrow DoubleLeftArrow DoubleLeftRightArrow DoubleLeftTee DoubleLongLeftArrow DoubleLongLeftRightArrow DoubleLongRightArrow DoubleRightArrow DoubleRightTee DoubleUpArrow DoubleUpDownArrow DoubleVerticalBar DoublyInfinite Down DownArrow DownArrowBar DownArrowUpArrow DownLeftRightVector DownLeftTeeVector DownLeftVector DownLeftVectorBar DownRightTeeVector DownRightVector DownRightVectorBar Downsample DownTee DownTeeArrow DownValues DragAndDrop DrawEdges DrawFrontFaces DrawHighlighted Drop DSolve Dt DualLinearProgramming DualSystemsModel DumpGet DumpSave DuplicateFreeQ Dynamic DynamicBox DynamicBoxOptions DynamicEvaluationTimeout DynamicLocation DynamicModule DynamicModuleBox DynamicModuleBoxOptions DynamicModuleParent DynamicModuleValues DynamicName DynamicNamespace DynamicReference DynamicSetting DynamicUpdating DynamicWrapper DynamicWrapperBox DynamicWrapperBoxOptions E EccentricityCentrality EdgeAdd EdgeBetweennessCentrality EdgeCapacity EdgeCapForm EdgeColor EdgeConnectivity EdgeCost EdgeCount EdgeCoverQ EdgeDashing EdgeDelete EdgeDetect EdgeForm EdgeIndex EdgeJoinForm EdgeLabeling EdgeLabels EdgeLabelStyle EdgeList EdgeOpacity EdgeQ EdgeRenderingFunction EdgeRules EdgeShapeFunction EdgeStyle EdgeThickness EdgeWeight Editable EditButtonSettings EditCellTagsSettings EditDistance EffectiveInterest Eigensystem Eigenvalues EigenvectorCentrality Eigenvectors Element ElementData Eliminate EliminationOrder EllipticE EllipticExp EllipticExpPrime EllipticF EllipticFilterModel EllipticK EllipticLog EllipticNomeQ EllipticPi EllipticReducedHalfPeriods EllipticTheta EllipticThetaPrime EmitSound EmphasizeSyntaxErrors EmpiricalDistribution Empty EmptyGraphQ EnableConsolePrintPacket Enabled Encode End EndAdd EndDialogPacket EndFrontEndInteractionPacket EndOfFile EndOfLine EndOfString EndPackage EngineeringForm Enter EnterExpressionPacket EnterTextPacket Entropy EntropyFilter Environment Epilog Equal EqualColumns EqualRows EqualTilde EquatedTo Equilibrium EquirippleFilterKernel Equivalent Erf Erfc Erfi ErlangB ErlangC ErlangDistribution Erosion ErrorBox ErrorBoxOptions ErrorNorm ErrorPacket ErrorsDialogSettings EstimatedDistribution EstimatedProcess EstimatorGains EstimatorRegulator EuclideanDistance EulerE EulerGamma EulerianGraphQ EulerPhi Evaluatable Evaluate Evaluated EvaluatePacket EvaluationCell EvaluationCompletionAction EvaluationElements EvaluationMode EvaluationMonitor EvaluationNotebook EvaluationObject EvaluationOrder Evaluator EvaluatorNames EvenQ EventData EventEvaluator EventHandler EventHandlerTag EventLabels ExactBlackmanWindow ExactNumberQ ExactRootIsolation ExampleData Except ExcludedForms ExcludePods Exclusions ExclusionsStyle Exists Exit ExitDialog Exp Expand ExpandAll ExpandDenominator ExpandFileName ExpandNumerator Expectation ExpectationE ExpectedValue ExpGammaDistribution ExpIntegralE ExpIntegralEi Exponent ExponentFunction ExponentialDistribution ExponentialFamily ExponentialGeneratingFunction ExponentialMovingAverage ExponentialPowerDistribution ExponentPosition ExponentStep Export ExportAutoReplacements ExportPacket ExportString Expression ExpressionCell ExpressionPacket ExpToTrig ExtendedGCD Extension ExtentElementFunction ExtentMarkers ExtentSize ExternalCall ExternalDataCharacterEncoding Extract ExtractArchive ExtremeValueDistribution FaceForm FaceGrids FaceGridsStyle Factor FactorComplete Factorial Factorial2 FactorialMoment FactorialMomentGeneratingFunction FactorialPower FactorInteger FactorList FactorSquareFree FactorSquareFreeList FactorTerms FactorTermsList Fail FailureDistribution False FARIMAProcess FEDisableConsolePrintPacket FeedbackSector FeedbackSectorStyle FeedbackType FEEnableConsolePrintPacket Fibonacci FieldHint FieldHintStyle FieldMasked FieldSize File FileBaseName FileByteCount FileDate FileExistsQ FileExtension FileFormat FileHash FileInformation FileName FileNameDepth FileNameDialogSettings FileNameDrop FileNameJoin FileNames FileNameSetter FileNameSplit FileNameTake FilePrint FileType FilledCurve FilledCurveBox Filling FillingStyle FillingTransform FilterRules FinancialBond FinancialData FinancialDerivative FinancialIndicator Find FindArgMax FindArgMin FindClique FindClusters FindCurvePath FindDistributionParameters FindDivisions FindEdgeCover FindEdgeCut FindEulerianCycle FindFaces FindFile FindFit FindGeneratingFunction FindGeoLocation FindGeometricTransform FindGraphCommunities FindGraphIsomorphism FindGraphPartition FindHamiltonianCycle FindIndependentEdgeSet FindIndependentVertexSet FindInstance FindIntegerNullVector FindKClan FindKClique FindKClub FindKPlex FindLibrary FindLinearRecurrence FindList FindMaximum FindMaximumFlow FindMaxValue FindMinimum FindMinimumCostFlow FindMinimumCut FindMinValue FindPermutation FindPostmanTour FindProcessParameters FindRoot FindSequenceFunction FindSettings FindShortestPath FindShortestTour FindThreshold FindVertexCover FindVertexCut Fine FinishDynamic FiniteAbelianGroupCount FiniteGroupCount FiniteGroupData First FirstPassageTimeDistribution FischerGroupFi22 FischerGroupFi23 FischerGroupFi24Prime FisherHypergeometricDistribution FisherRatioTest FisherZDistribution Fit FitAll FittedModel FixedPoint FixedPointList FlashSelection Flat Flatten FlattenAt FlatTopWindow FlipView Floor FlushPrintOutputPacket Fold FoldList Font FontColor FontFamily FontForm FontName FontOpacity FontPostScriptName FontProperties FontReencoding FontSize FontSlant FontSubstitutions FontTracking FontVariations FontWeight For ForAll Format FormatRules FormatType FormatTypeAutoConvert FormatValues FormBox FormBoxOptions FortranForm Forward ForwardBackward Fourier FourierCoefficient FourierCosCoefficient FourierCosSeries FourierCosTransform FourierDCT FourierDCTFilter FourierDCTMatrix FourierDST FourierDSTMatrix FourierMatrix FourierParameters FourierSequenceTransform FourierSeries FourierSinCoefficient FourierSinSeries FourierSinTransform FourierTransform FourierTrigSeries FractionalBrownianMotionProcess FractionalPart FractionBox FractionBoxOptions FractionLine Frame FrameBox FrameBoxOptions Framed FrameInset FrameLabel Frameless FrameMargins FrameStyle FrameTicks FrameTicksStyle FRatioDistribution FrechetDistribution FreeQ FrequencySamplingFilterKernel FresnelC FresnelS Friday FrobeniusNumber FrobeniusSolve FromCharacterCode FromCoefficientRules FromContinuedFraction FromDate FromDigits FromDMS Front FrontEndDynamicExpression FrontEndEventActions FrontEndExecute FrontEndObject FrontEndResource FrontEndResourceString FrontEndStackSize FrontEndToken FrontEndTokenExecute FrontEndValueCache FrontEndVersion FrontFaceColor FrontFaceOpacity Full FullAxes FullDefinition FullForm FullGraphics FullOptions FullSimplify Function FunctionExpand FunctionInterpolation FunctionSpace FussellVeselyImportance GaborFilter GaborMatrix GaborWavelet GainMargins GainPhaseMargins Gamma GammaDistribution GammaRegularized GapPenalty Gather GatherBy GaugeFaceElementFunction GaugeFaceStyle GaugeFrameElementFunction GaugeFrameSize GaugeFrameStyle GaugeLabels GaugeMarkers GaugeStyle GaussianFilter GaussianIntegers GaussianMatrix GaussianWindow GCD GegenbauerC General GeneralizedLinearModelFit GenerateConditions GeneratedCell GeneratedParameters GeneratingFunction Generic GenericCylindricalDecomposition GenomeData GenomeLookup GeodesicClosing GeodesicDilation GeodesicErosion GeodesicOpening GeoDestination GeodesyData GeoDirection GeoDistance GeoGridPosition GeometricBrownianMotionProcess GeometricDistribution GeometricMean GeometricMeanFilter GeometricTransformation GeometricTransformation3DBox GeometricTransformation3DBoxOptions GeometricTransformationBox GeometricTransformationBoxOptions GeoPosition GeoPositionENU GeoPositionXYZ GeoProjectionData GestureHandler GestureHandlerTag Get GetBoundingBoxSizePacket GetContext GetEnvironment GetFileName GetFrontEndOptionsDataPacket GetLinebreakInformationPacket GetMenusPacket GetPageBreakInformationPacket Glaisher GlobalClusteringCoefficient GlobalPreferences GlobalSession Glow GoldenRatio GompertzMakehamDistribution GoodmanKruskalGamma GoodmanKruskalGammaTest Goto Grad Gradient GradientFilter GradientOrientationFilter Graph GraphAssortativity GraphCenter GraphComplement GraphData GraphDensity GraphDiameter GraphDifference GraphDisjointUnion GraphDistance GraphDistanceMatrix GraphElementData GraphEmbedding GraphHighlight GraphHighlightStyle GraphHub Graphics Graphics3D Graphics3DBox Graphics3DBoxOptions GraphicsArray GraphicsBaseline GraphicsBox GraphicsBoxOptions GraphicsColor GraphicsColumn GraphicsComplex GraphicsComplex3DBox GraphicsComplex3DBoxOptions GraphicsComplexBox GraphicsComplexBoxOptions GraphicsContents GraphicsData GraphicsGrid GraphicsGridBox GraphicsGroup GraphicsGroup3DBox GraphicsGroup3DBoxOptions GraphicsGroupBox GraphicsGroupBoxOptions GraphicsGrouping GraphicsHighlightColor GraphicsRow GraphicsSpacing GraphicsStyle GraphIntersection GraphLayout GraphLinkEfficiency GraphPeriphery GraphPlot GraphPlot3D GraphPower GraphPropertyDistribution GraphQ GraphRadius GraphReciprocity GraphRoot GraphStyle GraphUnion Gray GrayLevel GreatCircleDistance Greater GreaterEqual GreaterEqualLess GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual GreaterTilde Green Grid GridBaseline GridBox GridBoxAlignment GridBoxBackground GridBoxDividers GridBoxFrame GridBoxItemSize GridBoxItemStyle GridBoxOptions GridBoxSpacings GridCreationSettings GridDefaultElement GridElementStyleOptions GridFrame GridFrameMargins GridGraph GridLines GridLinesStyle GroebnerBasis GroupActionBase GroupCentralizer GroupElementFromWord GroupElementPosition GroupElementQ GroupElements GroupElementToWord GroupGenerators GroupMultiplicationTable GroupOrbits GroupOrder GroupPageBreakWithin GroupSetwiseStabilizer GroupStabilizer GroupStabilizerChain Gudermannian GumbelDistribution HaarWavelet HadamardMatrix HalfNormalDistribution HamiltonianGraphQ HammingDistance HammingWindow HankelH1 HankelH2 HankelMatrix HannPoissonWindow HannWindow HaradaNortonGroupHN HararyGraph HarmonicMean HarmonicMeanFilter HarmonicNumber Hash HashTable Haversine HazardFunction Head HeadCompose Heads HeavisideLambda HeavisidePi HeavisideTheta HeldGroupHe HeldPart HelpBrowserLookup HelpBrowserNotebook HelpBrowserSettings HermiteDecomposition HermiteH HermitianMatrixQ HessenbergDecomposition Hessian HexadecimalCharacter Hexahedron HexahedronBox HexahedronBoxOptions HiddenSurface HighlightGraph HighlightImage HighpassFilter HigmanSimsGroupHS HilbertFilter HilbertMatrix Histogram Histogram3D HistogramDistribution HistogramList HistogramTransform HistogramTransformInterpolation HitMissTransform HITSCentrality HodgeDual HoeffdingD HoeffdingDTest Hold HoldAll HoldAllComplete HoldComplete HoldFirst HoldForm HoldPattern HoldRest HolidayCalendar HomeDirectory HomePage Horizontal HorizontalForm HorizontalGauge HorizontalScrollPosition HornerForm HotellingTSquareDistribution HoytDistribution HTMLSave Hue HumpDownHump HumpEqual HurwitzLerchPhi HurwitzZeta HyperbolicDistribution HypercubeGraph HyperexponentialDistribution Hyperfactorial Hypergeometric0F1 Hypergeometric0F1Regularized Hypergeometric1F1 Hypergeometric1F1Regularized Hypergeometric2F1 Hypergeometric2F1Regularized HypergeometricDistribution HypergeometricPFQ HypergeometricPFQRegularized HypergeometricU Hyperlink HyperlinkCreationSettings Hyphenation HyphenationOptions HypoexponentialDistribution HypothesisTestData I Identity IdentityMatrix If IgnoreCase Im Image Image3D Image3DSlices ImageAccumulate ImageAdd ImageAdjust ImageAlign ImageApply ImageAspectRatio ImageAssemble ImageCache ImageCacheValid ImageCapture ImageChannels ImageClip ImageColorSpace ImageCompose ImageConvolve ImageCooccurrence ImageCorners ImageCorrelate ImageCorrespondingPoints ImageCrop ImageData ImageDataPacket ImageDeconvolve ImageDemosaic ImageDifference ImageDimensions ImageDistance ImageEffect ImageFeatureTrack ImageFileApply ImageFileFilter ImageFileScan ImageFilter ImageForestingComponents ImageForwardTransformation ImageHistogram ImageKeypoints ImageLevels ImageLines ImageMargins ImageMarkers ImageMeasurements ImageMultiply ImageOffset ImagePad ImagePadding ImagePartition ImagePeriodogram ImagePerspectiveTransformation ImageQ ImageRangeCache ImageReflect ImageRegion ImageResize ImageResolution ImageRotate ImageRotated ImageScaled ImageScan ImageSize ImageSizeAction ImageSizeCache ImageSizeMultipliers ImageSizeRaw ImageSubtract ImageTake ImageTransformation ImageTrim ImageType ImageValue ImageValuePositions Implies Import ImportAutoReplacements ImportString ImprovementImportance In IncidenceGraph IncidenceList IncidenceMatrix IncludeConstantBasis IncludeFileExtension IncludePods IncludeSingularTerm Increment Indent IndentingNewlineSpacings IndentMaxFraction IndependenceTest IndependentEdgeSetQ IndependentUnit IndependentVertexSetQ Indeterminate IndexCreationOptions Indexed IndexGraph IndexTag Inequality InexactNumberQ InexactNumbers Infinity Infix Information Inherited InheritScope Initialization InitializationCell InitializationCellEvaluation InitializationCellWarning InlineCounterAssignments InlineCounterIncrements InlineRules Inner Inpaint Input InputAliases InputAssumptions InputAutoReplacements InputField InputFieldBox InputFieldBoxOptions InputForm InputGrouping InputNamePacket InputNotebook InputPacket InputSettings InputStream InputString InputStringPacket InputToBoxFormPacket Insert InsertionPointObject InsertResults Inset Inset3DBox Inset3DBoxOptions InsetBox InsetBoxOptions Install InstallService InString Integer IntegerDigits IntegerExponent IntegerLength IntegerPart IntegerPartitions IntegerQ Integers IntegerString Integral Integrate Interactive InteractiveTradingChart Interlaced Interleaving InternallyBalancedDecomposition InterpolatingFunction InterpolatingPolynomial Interpolation InterpolationOrder InterpolationPoints InterpolationPrecision Interpretation InterpretationBox InterpretationBoxOptions InterpretationFunction InterpretTemplate InterquartileRange Interrupt InterruptSettings Intersection Interval IntervalIntersection IntervalMemberQ IntervalUnion Inverse InverseBetaRegularized InverseCDF InverseChiSquareDistribution InverseContinuousWaveletTransform InverseDistanceTransform InverseEllipticNomeQ InverseErf InverseErfc InverseFourier InverseFourierCosTransform InverseFourierSequenceTransform InverseFourierSinTransform InverseFourierTransform InverseFunction InverseFunctions InverseGammaDistribution InverseGammaRegularized InverseGaussianDistribution InverseGudermannian InverseHaversine InverseJacobiCD InverseJacobiCN InverseJacobiCS InverseJacobiDC InverseJacobiDN InverseJacobiDS InverseJacobiNC InverseJacobiND InverseJacobiNS InverseJacobiSC InverseJacobiSD InverseJacobiSN InverseLaplaceTransform InversePermutation InverseRadon InverseSeries InverseSurvivalFunction InverseWaveletTransform InverseWeierstrassP InverseZTransform Invisible InvisibleApplication InvisibleTimes IrreduciblePolynomialQ IsolatingInterval IsomorphicGraphQ IsotopeData Italic Item ItemBox ItemBoxOptions ItemSize ItemStyle ItoProcess JaccardDissimilarity JacobiAmplitude Jacobian JacobiCD JacobiCN JacobiCS JacobiDC JacobiDN JacobiDS JacobiNC JacobiND JacobiNS JacobiP JacobiSC JacobiSD JacobiSN JacobiSymbol JacobiZeta JankoGroupJ1 JankoGroupJ2 JankoGroupJ3 JankoGroupJ4 JarqueBeraALMTest JohnsonDistribution Join Joined JoinedCurve JoinedCurveBox JoinForm JordanDecomposition JordanModelDecomposition K KagiChart KaiserBesselWindow KaiserWindow KalmanEstimator KalmanFilter KarhunenLoeveDecomposition KaryTree KatzCentrality KCoreComponents KDistribution KelvinBei KelvinBer KelvinKei KelvinKer KendallTau KendallTauTest KernelExecute KernelMixtureDistribution KernelObject Kernels Ket Khinchin KirchhoffGraph KirchhoffMatrix KleinInvariantJ KnightTourGraph KnotData KnownUnitQ KolmogorovSmirnovTest KroneckerDelta KroneckerModelDecomposition KroneckerProduct KroneckerSymbol KuiperTest KumaraswamyDistribution Kurtosis KuwaharaFilter Label Labeled LabeledSlider LabelingFunction LabelStyle LaguerreL LambdaComponents LambertW LanczosWindow LandauDistribution Language LanguageCategory LaplaceDistribution LaplaceTransform Laplacian LaplacianFilter LaplacianGaussianFilter Large Larger Last Latitude LatitudeLongitude LatticeData LatticeReduce Launch LaunchKernels LayeredGraphPlot LayerSizeFunction LayoutInformation LCM LeafCount LeapYearQ LeastSquares LeastSquaresFilterKernel Left LeftArrow LeftArrowBar LeftArrowRightArrow LeftDownTeeVector LeftDownVector LeftDownVectorBar LeftRightArrow LeftRightVector LeftTee LeftTeeArrow LeftTeeVector LeftTriangle LeftTriangleBar LeftTriangleEqual LeftUpDownVector LeftUpTeeVector LeftUpVector LeftUpVectorBar LeftVector LeftVectorBar LegendAppearance Legended LegendFunction LegendLabel LegendLayout LegendMargins LegendMarkers LegendMarkerSize LegendreP LegendreQ LegendreType Length LengthWhile LerchPhi Less LessEqual LessEqualGreater LessFullEqual LessGreater LessLess LessSlantEqual LessTilde LetterCharacter LetterQ Level LeveneTest LeviCivitaTensor LevyDistribution Lexicographic LibraryFunction LibraryFunctionError LibraryFunctionInformation LibraryFunctionLoad LibraryFunctionUnload LibraryLoad LibraryUnload LicenseID LiftingFilterData LiftingWaveletTransform LightBlue LightBrown LightCyan Lighter LightGray LightGreen Lighting LightingAngle LightMagenta LightOrange LightPink LightPurple LightRed LightSources LightYellow Likelihood Limit LimitsPositioning LimitsPositioningTokens LindleyDistribution Line Line3DBox LinearFilter LinearFractionalTransform LinearModelFit LinearOffsetFunction LinearProgramming LinearRecurrence LinearSolve LinearSolveFunction LineBox LineBreak LinebreakAdjustments LineBreakChart LineBreakWithin LineColor LineForm LineGraph LineIndent LineIndentMaxFraction LineIntegralConvolutionPlot LineIntegralConvolutionScale LineLegend LineOpacity LineSpacing LineWrapParts LinkActivate LinkClose LinkConnect LinkConnectedQ LinkCreate LinkError LinkFlush LinkFunction LinkHost LinkInterrupt LinkLaunch LinkMode LinkObject LinkOpen LinkOptions LinkPatterns LinkProtocol LinkRead LinkReadHeld LinkReadyQ Links LinkWrite LinkWriteHeld LiouvilleLambda List Listable ListAnimate ListContourPlot ListContourPlot3D ListConvolve ListCorrelate ListCurvePathPlot ListDeconvolve ListDensityPlot Listen ListFourierSequenceTransform ListInterpolation ListLineIntegralConvolutionPlot ListLinePlot ListLogLinearPlot ListLogLogPlot ListLogPlot ListPicker ListPickerBox ListPickerBoxBackground ListPickerBoxOptions ListPlay ListPlot ListPlot3D ListPointPlot3D ListPolarPlot ListQ ListStreamDensityPlot ListStreamPlot ListSurfacePlot3D ListVectorDensityPlot ListVectorPlot ListVectorPlot3D ListZTransform Literal LiteralSearch LocalClusteringCoefficient LocalizeVariables LocationEquivalenceTest LocationTest Locator LocatorAutoCreate LocatorBox LocatorBoxOptions LocatorCentering LocatorPane LocatorPaneBox LocatorPaneBoxOptions LocatorRegion Locked Log Log10 Log2 LogBarnesG LogGamma LogGammaDistribution LogicalExpand LogIntegral LogisticDistribution LogitModelFit LogLikelihood LogLinearPlot LogLogisticDistribution LogLogPlot LogMultinormalDistribution LogNormalDistribution LogPlot LogRankTest LogSeriesDistribution LongEqual Longest LongestAscendingSequence LongestCommonSequence LongestCommonSequencePositions LongestCommonSubsequence LongestCommonSubsequencePositions LongestMatch LongForm Longitude LongLeftArrow LongLeftRightArrow LongRightArrow Loopback LoopFreeGraphQ LowerCaseQ LowerLeftArrow LowerRightArrow LowerTriangularize LowpassFilter LQEstimatorGains LQGRegulator LQOutputRegulatorGains LQRegulatorGains LUBackSubstitution LucasL LuccioSamiComponents LUDecomposition LyapunovSolve LyonsGroupLy MachineID MachineName MachineNumberQ MachinePrecision MacintoshSystemPageSetup Magenta Magnification Magnify MainSolve MaintainDynamicCaches Majority MakeBoxes MakeExpression MakeRules MangoldtLambda ManhattanDistance Manipulate Manipulator MannWhitneyTest MantissaExponent Manual Map MapAll MapAt MapIndexed MAProcess MapThread MarcumQ MardiaCombinedTest MardiaKurtosisTest MardiaSkewnessTest MarginalDistribution MarkovProcessProperties Masking MatchingDissimilarity MatchLocalNameQ MatchLocalNames MatchQ Material MathematicaNotation MathieuC MathieuCharacteristicA MathieuCharacteristicB MathieuCharacteristicExponent MathieuCPrime MathieuGroupM11 MathieuGroupM12 MathieuGroupM22 MathieuGroupM23 MathieuGroupM24 MathieuS MathieuSPrime MathMLForm MathMLText Matrices MatrixExp MatrixForm MatrixFunction MatrixLog MatrixPlot MatrixPower MatrixQ MatrixRank Max MaxBend MaxDetect MaxExtraBandwidths MaxExtraConditions MaxFeatures MaxFilter Maximize MaxIterations MaxMemoryUsed MaxMixtureKernels MaxPlotPoints MaxPoints MaxRecursion MaxStableDistribution MaxStepFraction MaxSteps MaxStepSize MaxValue MaxwellDistribution McLaughlinGroupMcL Mean MeanClusteringCoefficient MeanDegreeConnectivity MeanDeviation MeanFilter MeanGraphDistance MeanNeighborDegree MeanShift MeanShiftFilter Median MedianDeviation MedianFilter Medium MeijerG MeixnerDistribution MemberQ MemoryConstrained MemoryInUse Menu MenuAppearance MenuCommandKey MenuEvaluator MenuItem MenuPacket MenuSortingValue MenuStyle MenuView MergeDifferences Mesh MeshFunctions MeshRange MeshShading MeshStyle Message MessageDialog MessageList MessageName MessageOptions MessagePacket Messages MessagesNotebook MetaCharacters MetaInformation Method MethodOptions MexicanHatWavelet MeyerWavelet Min MinDetect MinFilter MinimalPolynomial MinimalStateSpaceModel Minimize Minors MinRecursion MinSize MinStableDistribution Minus MinusPlus MinValue Missing MissingDataMethod MittagLefflerE MixedRadix MixedRadixQuantity MixtureDistribution Mod Modal Mode Modular ModularLambda Module Modulus MoebiusMu Moment Momentary MomentConvert MomentEvaluate MomentGeneratingFunction Monday Monitor MonomialList MonomialOrder MonsterGroupM MorletWavelet MorphologicalBinarize MorphologicalBranchPoints MorphologicalComponents MorphologicalEulerNumber MorphologicalGraph MorphologicalPerimeter MorphologicalTransform Most MouseAnnotation MouseAppearance MouseAppearanceTag MouseButtons Mouseover MousePointerNote MousePosition MovingAverage MovingMedian MoyalDistribution MultiedgeStyle MultilaunchWarning MultiLetterItalics MultiLetterStyle MultilineFunction Multinomial MultinomialDistribution MultinormalDistribution MultiplicativeOrder Multiplicity Multiselection MultivariateHypergeometricDistribution MultivariatePoissonDistribution MultivariateTDistribution N NakagamiDistribution NameQ Names NamespaceBox Nand NArgMax NArgMin NBernoulliB NCache NDSolve NDSolveValue Nearest NearestFunction NeedCurrentFrontEndPackagePacket NeedCurrentFrontEndSymbolsPacket NeedlemanWunschSimilarity Needs Negative NegativeBinomialDistribution NegativeMultinomialDistribution NeighborhoodGraph Nest NestedGreaterGreater NestedLessLess NestedScriptRules NestList NestWhile NestWhileList NevilleThetaC NevilleThetaD NevilleThetaN NevilleThetaS NewPrimitiveStyle NExpectation Next NextPrime NHoldAll NHoldFirst NHoldRest NicholsGridLines NicholsPlot NIntegrate NMaximize NMaxValue NMinimize NMinValue NominalVariables NonAssociative NoncentralBetaDistribution NoncentralChiSquareDistribution NoncentralFRatioDistribution NoncentralStudentTDistribution NonCommutativeMultiply NonConstants None NonlinearModelFit NonlocalMeansFilter NonNegative NonPositive Nor NorlundB Norm Normal NormalDistribution NormalGrouping Normalize NormalizedSquaredEuclideanDistance NormalsFunction NormFunction Not NotCongruent NotCupCap NotDoubleVerticalBar Notebook NotebookApply NotebookAutoSave NotebookClose NotebookConvertSettings NotebookCreate NotebookCreateReturnObject NotebookDefault NotebookDelete NotebookDirectory NotebookDynamicExpression NotebookEvaluate NotebookEventActions NotebookFileName NotebookFind NotebookFindReturnObject NotebookGet NotebookGetLayoutInformationPacket NotebookGetMisspellingsPacket NotebookInformation NotebookInterfaceObject NotebookLocate NotebookObject NotebookOpen NotebookOpenReturnObject NotebookPath NotebookPrint NotebookPut NotebookPutReturnObject NotebookRead NotebookResetGeneratedCells Notebooks NotebookSave NotebookSaveAs NotebookSelection NotebookSetupLayoutInformationPacket NotebooksMenu NotebookWrite NotElement NotEqualTilde NotExists NotGreater NotGreaterEqual NotGreaterFullEqual NotGreaterGreater NotGreaterLess NotGreaterSlantEqual NotGreaterTilde NotHumpDownHump NotHumpEqual NotLeftTriangle NotLeftTriangleBar NotLeftTriangleEqual NotLess NotLessEqual NotLessFullEqual NotLessGreater NotLessLess NotLessSlantEqual NotLessTilde NotNestedGreaterGreater NotNestedLessLess NotPrecedes NotPrecedesEqual NotPrecedesSlantEqual NotPrecedesTilde NotReverseElement NotRightTriangle NotRightTriangleBar NotRightTriangleEqual NotSquareSubset NotSquareSubsetEqual NotSquareSuperset NotSquareSupersetEqual NotSubset NotSubsetEqual NotSucceeds NotSucceedsEqual NotSucceedsSlantEqual NotSucceedsTilde NotSuperset NotSupersetEqual NotTilde NotTildeEqual NotTildeFullEqual NotTildeTilde NotVerticalBar NProbability NProduct NProductFactors NRoots NSolve NSum NSumTerms Null NullRecords NullSpace NullWords Number NumberFieldClassNumber NumberFieldDiscriminant NumberFieldFundamentalUnits NumberFieldIntegralBasis NumberFieldNormRepresentatives NumberFieldRegulator NumberFieldRootsOfUnity NumberFieldSignature NumberForm NumberFormat NumberMarks NumberMultiplier NumberPadding NumberPoint NumberQ NumberSeparator NumberSigns NumberString Numerator NumericFunction NumericQ NuttallWindow NValues NyquistGridLines NyquistPlot O ObservabilityGramian ObservabilityMatrix ObservableDecomposition ObservableModelQ OddQ Off Offset OLEData On ONanGroupON OneIdentity Opacity Open OpenAppend Opener OpenerBox OpenerBoxOptions OpenerView OpenFunctionInspectorPacket Opening OpenRead OpenSpecialOptions OpenTemporary OpenWrite Operate OperatingSystem OptimumFlowData Optional OptionInspectorSettings OptionQ Options OptionsPacket OptionsPattern OptionValue OptionValueBox OptionValueBoxOptions Or Orange Order OrderDistribution OrderedQ Ordering Orderless OrnsteinUhlenbeckProcess Orthogonalize Out Outer OutputAutoOverwrite OutputControllabilityMatrix OutputControllableModelQ OutputForm OutputFormData OutputGrouping OutputMathEditExpression OutputNamePacket OutputResponse OutputSizeLimit OutputStream Over OverBar OverDot Overflow OverHat Overlaps Overlay OverlayBox OverlayBoxOptions Overscript OverscriptBox OverscriptBoxOptions OverTilde OverVector OwenT OwnValues PackingMethod PaddedForm Padding PadeApproximant PadLeft PadRight PageBreakAbove PageBreakBelow PageBreakWithin PageFooterLines PageFooters PageHeaderLines PageHeaders PageHeight PageRankCentrality PageWidth PairedBarChart PairedHistogram PairedSmoothHistogram PairedTTest PairedZTest PaletteNotebook PalettePath Pane PaneBox PaneBoxOptions Panel PanelBox PanelBoxOptions Paneled PaneSelector PaneSelectorBox PaneSelectorBoxOptions PaperWidth ParabolicCylinderD ParagraphIndent ParagraphSpacing ParallelArray ParallelCombine ParallelDo ParallelEvaluate Parallelization Parallelize ParallelMap ParallelNeeds ParallelProduct ParallelSubmit ParallelSum ParallelTable ParallelTry Parameter ParameterEstimator ParameterMixtureDistribution ParameterVariables ParametricFunction ParametricNDSolve ParametricNDSolveValue ParametricPlot ParametricPlot3D ParentConnect ParentDirectory ParentForm Parenthesize ParentList ParetoDistribution Part PartialCorrelationFunction PartialD ParticleData Partition PartitionsP PartitionsQ ParzenWindow PascalDistribution PassEventsDown PassEventsUp Paste PasteBoxFormInlineCells PasteButton Path PathGraph PathGraphQ Pattern PatternSequence PatternTest PauliMatrix PaulWavelet Pause PausedTime PDF PearsonChiSquareTest PearsonCorrelationTest PearsonDistribution PerformanceGoal PeriodicInterpolation Periodogram PeriodogramArray PermutationCycles PermutationCyclesQ PermutationGroup PermutationLength PermutationList PermutationListQ PermutationMax PermutationMin PermutationOrder PermutationPower PermutationProduct PermutationReplace Permutations PermutationSupport Permute PeronaMalikFilter Perpendicular PERTDistribution PetersenGraph PhaseMargins Pi Pick PIDData PIDDerivativeFilter PIDFeedforward PIDTune Piecewise PiecewiseExpand PieChart PieChart3D PillaiTrace PillaiTraceTest Pink Pivoting PixelConstrained PixelValue PixelValuePositions Placed Placeholder PlaceholderReplace Plain PlanarGraphQ Play PlayRange Plot Plot3D Plot3Matrix PlotDivision PlotJoined PlotLabel PlotLayout PlotLegends PlotMarkers PlotPoints PlotRange PlotRangeClipping PlotRangePadding PlotRegion PlotStyle Plus PlusMinus Pochhammer PodStates PodWidth Point Point3DBox PointBox PointFigureChart PointForm PointLegend PointSize PoissonConsulDistribution PoissonDistribution PoissonProcess PoissonWindow PolarAxes PolarAxesOrigin PolarGridLines PolarPlot PolarTicks PoleZeroMarkers PolyaAeppliDistribution PolyGamma Polygon Polygon3DBox Polygon3DBoxOptions PolygonBox PolygonBoxOptions PolygonHoleScale PolygonIntersections PolygonScale PolyhedronData PolyLog PolynomialExtendedGCD PolynomialForm PolynomialGCD PolynomialLCM PolynomialMod PolynomialQ PolynomialQuotient PolynomialQuotientRemainder PolynomialReduce PolynomialRemainder Polynomials PopupMenu PopupMenuBox PopupMenuBoxOptions PopupView PopupWindow Position Positive PositiveDefiniteMatrixQ PossibleZeroQ Postfix PostScript Power PowerDistribution PowerExpand PowerMod PowerModList PowerSpectralDensity PowersRepresentations PowerSymmetricPolynomial Precedence PrecedenceForm Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Precision PrecisionGoal PreDecrement PredictionRoot PreemptProtect PreferencesPath Prefix PreIncrement Prepend PrependTo PreserveImageOptions Previous PriceGraphDistribution PrimaryPlaceholder Prime PrimeNu PrimeOmega PrimePi PrimePowerQ PrimeQ Primes PrimeZetaP PrimitiveRoot PrincipalComponents PrincipalValue Print PrintAction PrintForm PrintingCopies PrintingOptions PrintingPageRange PrintingStartingPageNumber PrintingStyleEnvironment PrintPrecision PrintTemporary Prism PrismBox PrismBoxOptions PrivateCellOptions PrivateEvaluationOptions PrivateFontOptions PrivateFrontEndOptions PrivateNotebookOptions PrivatePaths Probability ProbabilityDistribution ProbabilityPlot ProbabilityPr ProbabilityScalePlot ProbitModelFit ProcessEstimator ProcessParameterAssumptions ProcessParameterQ ProcessStateDomain ProcessTimeDomain Product ProductDistribution ProductLog ProgressIndicator ProgressIndicatorBox ProgressIndicatorBoxOptions Projection Prolog PromptForm Properties Property PropertyList PropertyValue Proportion Proportional Protect Protected ProteinData Pruning PseudoInverse Purple Put PutAppend Pyramid PyramidBox PyramidBoxOptions QBinomial QFactorial QGamma QHypergeometricPFQ QPochhammer QPolyGamma QRDecomposition QuadraticIrrationalQ Quantile QuantilePlot Quantity QuantityForm QuantityMagnitude QuantityQ QuantityUnit Quartics QuartileDeviation Quartiles QuartileSkewness QueueingNetworkProcess QueueingProcess QueueProperties Quiet Quit Quotient QuotientRemainder RadialityCentrality RadicalBox RadicalBoxOptions RadioButton RadioButtonBar RadioButtonBox RadioButtonBoxOptions Radon RamanujanTau RamanujanTauL RamanujanTauTheta RamanujanTauZ Random RandomChoice RandomComplex RandomFunction RandomGraph RandomImage RandomInteger RandomPermutation RandomPrime RandomReal RandomSample RandomSeed RandomVariate RandomWalkProcess Range RangeFilter RangeSpecification RankedMax RankedMin Raster Raster3D Raster3DBox Raster3DBoxOptions RasterArray RasterBox RasterBoxOptions Rasterize RasterSize Rational RationalFunctions Rationalize Rationals Ratios Raw RawArray RawBoxes RawData RawMedium RayleighDistribution Re Read ReadList ReadProtected Real RealBlockDiagonalForm RealDigits RealExponent Reals Reap Record RecordLists RecordSeparators Rectangle RectangleBox RectangleBoxOptions RectangleChart RectangleChart3D RecurrenceFilter RecurrenceTable RecurringDigitsForm Red Reduce RefBox ReferenceLineStyle ReferenceMarkers ReferenceMarkerStyle Refine ReflectionMatrix ReflectionTransform Refresh RefreshRate RegionBinarize RegionFunction RegionPlot RegionPlot3D RegularExpression Regularization Reinstall Release ReleaseHold ReliabilityDistribution ReliefImage ReliefPlot Remove RemoveAlphaChannel RemoveAsynchronousTask Removed RemoveInputStreamMethod RemoveOutputStreamMethod RemoveProperty RemoveScheduledTask RenameDirectory RenameFile RenderAll RenderingOptions RenewalProcess RenkoChart Repeated RepeatedNull RepeatedString Replace ReplaceAll ReplaceHeldPart ReplaceImageValue ReplaceList ReplacePart ReplacePixelValue ReplaceRepeated Resampling Rescale RescalingTransform ResetDirectory ResetMenusPacket ResetScheduledTask Residue Resolve Rest Resultant ResumePacket Return ReturnExpressionPacket ReturnInputFormPacket ReturnPacket ReturnTextPacket Reverse ReverseBiorthogonalSplineWavelet ReverseElement ReverseEquilibrium ReverseGraph ReverseUpEquilibrium RevolutionAxis RevolutionPlot3D RGBColor RiccatiSolve RiceDistribution RidgeFilter RiemannR RiemannSiegelTheta RiemannSiegelZ Riffle Right RightArrow RightArrowBar RightArrowLeftArrow RightCosetRepresentative RightDownTeeVector RightDownVector RightDownVectorBar RightTee RightTeeArrow RightTeeVector RightTriangle RightTriangleBar RightTriangleEqual RightUpDownVector RightUpTeeVector RightUpVector RightUpVectorBar RightVector RightVectorBar RiskAchievementImportance RiskReductionImportance RogersTanimotoDissimilarity Root RootApproximant RootIntervals RootLocusPlot RootMeanSquare RootOfUnityQ RootReduce Roots RootSum Rotate RotateLabel RotateLeft RotateRight RotationAction RotationBox RotationBoxOptions RotationMatrix RotationTransform Round RoundImplies RoundingRadius Row RowAlignments RowBackgrounds RowBox RowHeights RowLines RowMinHeight RowReduce RowsEqual RowSpacings RSolve RudvalisGroupRu Rule RuleCondition RuleDelayed RuleForm RulerUnits Run RunScheduledTask RunThrough RuntimeAttributes RuntimeOptions RussellRaoDissimilarity SameQ SameTest SampleDepth SampledSoundFunction SampledSoundList SampleRate SamplingPeriod SARIMAProcess SARMAProcess SatisfiabilityCount SatisfiabilityInstances SatisfiableQ Saturday Save Saveable SaveAutoDelete SaveDefinitions SawtoothWave Scale Scaled ScaleDivisions ScaledMousePosition ScaleOrigin ScalePadding ScaleRanges ScaleRangeStyle ScalingFunctions ScalingMatrix ScalingTransform Scan ScheduledTaskActiveQ ScheduledTaskData ScheduledTaskObject ScheduledTasks SchurDecomposition ScientificForm ScreenRectangle ScreenStyleEnvironment ScriptBaselineShifts ScriptLevel ScriptMinSize ScriptRules ScriptSizeMultipliers Scrollbars ScrollingOptions ScrollPosition Sec Sech SechDistribution SectionGrouping SectorChart SectorChart3D SectorOrigin SectorSpacing SeedRandom Select Selectable SelectComponents SelectedCells SelectedNotebook Selection SelectionAnimate SelectionCell SelectionCellCreateCell SelectionCellDefaultStyle SelectionCellParentStyle SelectionCreateCell SelectionDebuggerTag SelectionDuplicateCell SelectionEvaluate SelectionEvaluateCreateCell SelectionMove SelectionPlaceholder SelectionSetStyle SelectWithContents SelfLoops SelfLoopStyle SemialgebraicComponentInstances SendMail Sequence SequenceAlignment SequenceForm SequenceHold SequenceLimit Series SeriesCoefficient SeriesData SessionTime Set SetAccuracy SetAlphaChannel SetAttributes Setbacks SetBoxFormNamesPacket SetDelayed SetDirectory SetEnvironment SetEvaluationNotebook SetFileDate SetFileLoadingContext SetNotebookStatusLine SetOptions SetOptionsPacket SetPrecision SetProperty SetSelectedNotebook SetSharedFunction SetSharedVariable SetSpeechParametersPacket SetStreamPosition SetSystemOptions Setter SetterBar SetterBox SetterBoxOptions Setting SetValue Shading Shallow ShannonWavelet ShapiroWilkTest Share Sharpen ShearingMatrix ShearingTransform ShenCastanMatrix Short ShortDownArrow Shortest ShortestMatch ShortestPathFunction ShortLeftArrow ShortRightArrow ShortUpArrow Show ShowAutoStyles ShowCellBracket ShowCellLabel ShowCellTags ShowClosedCellArea ShowContents ShowControls ShowCursorTracker ShowGroupOpenCloseIcon ShowGroupOpener ShowInvisibleCharacters ShowPageBreaks ShowPredictiveInterface ShowSelection ShowShortBoxForm ShowSpecialCharacters ShowStringCharacters ShowSyntaxStyles ShrinkingDelay ShrinkWrapBoundingBox SiegelTheta SiegelTukeyTest Sign Signature SignedRankTest SignificanceLevel SignPadding SignTest SimilarityRules SimpleGraph SimpleGraphQ Simplify Sin Sinc SinghMaddalaDistribution SingleEvaluation SingleLetterItalics SingleLetterStyle SingularValueDecomposition SingularValueList SingularValuePlot SingularValues Sinh SinhIntegral SinIntegral SixJSymbol Skeleton SkeletonTransform SkellamDistribution Skewness SkewNormalDistribution Skip SliceDistribution Slider Slider2D Slider2DBox Slider2DBoxOptions SliderBox SliderBoxOptions SlideView Slot SlotSequence Small SmallCircle Smaller SmithDelayCompensator SmithWatermanSimilarity SmoothDensityHistogram SmoothHistogram SmoothHistogram3D SmoothKernelDistribution SocialMediaData Socket SokalSneathDissimilarity Solve SolveAlways SolveDelayed Sort SortBy Sound SoundAndGraphics SoundNote SoundVolume Sow Space SpaceForm Spacer Spacings Span SpanAdjustments SpanCharacterRounding SpanFromAbove SpanFromBoth SpanFromLeft SpanLineThickness SpanMaxSize SpanMinSize SpanningCharacters SpanSymmetric SparseArray SpatialGraphDistribution Speak SpeakTextPacket SpearmanRankTest SpearmanRho Spectrogram SpectrogramArray Specularity SpellingCorrection SpellingDictionaries SpellingDictionariesPath SpellingOptions SpellingSuggestionsPacket Sphere SphereBox SphericalBesselJ SphericalBesselY SphericalHankelH1 SphericalHankelH2 SphericalHarmonicY SphericalPlot3D SphericalRegion SpheroidalEigenvalue SpheroidalJoiningFactor SpheroidalPS SpheroidalPSPrime SpheroidalQS SpheroidalQSPrime SpheroidalRadialFactor SpheroidalS1 SpheroidalS1Prime SpheroidalS2 SpheroidalS2Prime Splice SplicedDistribution SplineClosed SplineDegree SplineKnots SplineWeights Split SplitBy SpokenString Sqrt SqrtBox SqrtBoxOptions Square SquaredEuclideanDistance SquareFreeQ SquareIntersection SquaresR SquareSubset SquareSubsetEqual SquareSuperset SquareSupersetEqual SquareUnion SquareWave StabilityMargins StabilityMarginsStyle StableDistribution Stack StackBegin StackComplete StackInhibit StandardDeviation StandardDeviationFilter StandardForm Standardize StandbyDistribution Star StarGraph StartAsynchronousTask StartingStepSize StartOfLine StartOfString StartScheduledTask StartupSound StateDimensions StateFeedbackGains StateOutputEstimator StateResponse StateSpaceModel StateSpaceRealization StateSpaceTransform StationaryDistribution StationaryWaveletPacketTransform StationaryWaveletTransform StatusArea StatusCentrality StepMonitor StieltjesGamma StirlingS1 StirlingS2 StopAsynchronousTask StopScheduledTask StrataVariables StratonovichProcess StreamColorFunction StreamColorFunctionScaling StreamDensityPlot StreamPlot StreamPoints StreamPosition Streams StreamScale StreamStyle String StringBreak StringByteCount StringCases StringCount StringDrop StringExpression StringForm StringFormat StringFreeQ StringInsert StringJoin StringLength StringMatchQ StringPosition StringQ StringReplace StringReplaceList StringReplacePart StringReverse StringRotateLeft StringRotateRight StringSkeleton StringSplit StringTake StringToStream StringTrim StripBoxes StripOnInput StripWrapperBoxes StrokeForm StructuralImportance StructuredArray StructuredSelection StruveH StruveL Stub StudentTDistribution Style StyleBox StyleBoxAutoDelete StyleBoxOptions StyleData StyleDefinitions StyleForm StyleKeyMapping StyleMenuListing StyleNameDialogSettings StyleNames StylePrint StyleSheetPath Subfactorial Subgraph SubMinus SubPlus SubresultantPolynomialRemainders SubresultantPolynomials Subresultants Subscript SubscriptBox SubscriptBoxOptions Subscripted Subset SubsetEqual Subsets SubStar Subsuperscript SubsuperscriptBox SubsuperscriptBoxOptions Subtract SubtractFrom SubValues Succeeds SucceedsEqual SucceedsSlantEqual SucceedsTilde SuchThat Sum SumConvergence Sunday SuperDagger SuperMinus SuperPlus Superscript SuperscriptBox SuperscriptBoxOptions Superset SupersetEqual SuperStar Surd SurdForm SurfaceColor SurfaceGraphics SurvivalDistribution SurvivalFunction SurvivalModel SurvivalModelFit SuspendPacket SuzukiDistribution SuzukiGroupSuz SwatchLegend Switch Symbol SymbolName SymletWavelet Symmetric SymmetricGroup SymmetricMatrixQ SymmetricPolynomial SymmetricReduction Symmetrize SymmetrizedArray SymmetrizedArrayRules SymmetrizedDependentComponents SymmetrizedIndependentComponents SymmetrizedReplacePart SynchronousInitialization SynchronousUpdating Syntax SyntaxForm SyntaxInformation SyntaxLength SyntaxPacket SyntaxQ SystemDialogInput SystemException SystemHelpPath SystemInformation SystemInformationData SystemOpen SystemOptions SystemsModelDelay SystemsModelDelayApproximate SystemsModelDelete SystemsModelDimensions SystemsModelExtract SystemsModelFeedbackConnect SystemsModelLabels SystemsModelOrder SystemsModelParallelConnect SystemsModelSeriesConnect SystemsModelStateFeedbackConnect SystemStub Tab TabFilling Table TableAlignments TableDepth TableDirections TableForm TableHeadings TableSpacing TableView TableViewBox TabSpacings TabView TabViewBox TabViewBoxOptions TagBox TagBoxNote TagBoxOptions TaggingRules TagSet TagSetDelayed TagStyle TagUnset Take TakeWhile Tally Tan Tanh TargetFunctions TargetUnits TautologyQ TelegraphProcess TemplateBox TemplateBoxOptions TemplateSlotSequence TemporalData Temporary TemporaryVariable TensorContract TensorDimensions TensorExpand TensorProduct TensorQ TensorRank TensorReduce TensorSymmetry TensorTranspose TensorWedge Tetrahedron TetrahedronBox TetrahedronBoxOptions TeXForm TeXSave Text Text3DBox Text3DBoxOptions TextAlignment TextBand TextBoundingBox TextBox TextCell TextClipboardType TextData TextForm TextJustification TextLine TextPacket TextParagraph TextRecognize TextRendering TextStyle Texture TextureCoordinateFunction TextureCoordinateScaling Therefore ThermometerGauge Thick Thickness Thin Thinning ThisLink ThompsonGroupTh Thread ThreeJSymbol Threshold Through Throw Thumbnail Thursday Ticks TicksStyle Tilde TildeEqual TildeFullEqual TildeTilde TimeConstrained TimeConstraint Times TimesBy TimeSeriesForecast TimeSeriesInvertibility TimeUsed TimeValue TimeZone Timing Tiny TitleGrouping TitsGroupT ToBoxes ToCharacterCode ToColor ToContinuousTimeModel ToDate ToDiscreteTimeModel ToeplitzMatrix ToExpression ToFileName Together Toggle ToggleFalse Toggler TogglerBar TogglerBox TogglerBoxOptions ToHeldExpression ToInvertibleTimeSeries TokenWords Tolerance ToLowerCase ToNumberField TooBig Tooltip TooltipBox TooltipBoxOptions TooltipDelay TooltipStyle Top TopHatTransform TopologicalSort ToRadicals ToRules ToString Total TotalHeight TotalVariationFilter TotalWidth TouchscreenAutoZoom TouchscreenControlPlacement ToUpperCase Tr Trace TraceAbove TraceAction TraceBackward TraceDepth TraceDialog TraceForward TraceInternal TraceLevel TraceOff TraceOn TraceOriginal TracePrint TraceScan TrackedSymbols TradingChart TraditionalForm TraditionalFunctionNotation TraditionalNotation TraditionalOrder TransferFunctionCancel TransferFunctionExpand TransferFunctionFactor TransferFunctionModel TransferFunctionPoles TransferFunctionTransform TransferFunctionZeros TransformationFunction TransformationFunctions TransformationMatrix TransformedDistribution TransformedField Translate TranslationTransform TransparentColor Transpose TreeForm TreeGraph TreeGraphQ TreePlot TrendStyle TriangleWave TriangularDistribution Trig TrigExpand TrigFactor TrigFactorList Trigger TrigReduce TrigToExp TrimmedMean True TrueQ TruncatedDistribution TsallisQExponentialDistribution TsallisQGaussianDistribution TTest Tube TubeBezierCurveBox TubeBezierCurveBoxOptions TubeBox TubeBSplineCurveBox TubeBSplineCurveBoxOptions Tuesday TukeyLambdaDistribution TukeyWindow Tuples TuranGraph TuringMachine Transparent UnateQ Uncompress Undefined UnderBar Underflow Underlined Underoverscript UnderoverscriptBox UnderoverscriptBoxOptions Underscript UnderscriptBox UnderscriptBoxOptions UndirectedEdge UndirectedGraph UndirectedGraphQ UndocumentedTestFEParserPacket UndocumentedTestGetSelectionPacket Unequal Unevaluated UniformDistribution UniformGraphDistribution UniformSumDistribution Uninstall Union UnionPlus Unique UnitBox UnitConvert UnitDimensions Unitize UnitRootTest UnitSimplify UnitStep UnitTriangle UnitVector Unprotect UnsameQ UnsavedVariables Unset UnsetShared UntrackedVariables Up UpArrow UpArrowBar UpArrowDownArrow Update UpdateDynamicObjects UpdateDynamicObjectsSynchronous UpdateInterval UpDownArrow UpEquilibrium UpperCaseQ UpperLeftArrow UpperRightArrow UpperTriangularize Upsample UpSet UpSetDelayed UpTee UpTeeArrow UpValues URL URLFetch URLFetchAsynchronous URLSave URLSaveAsynchronous UseGraphicsRange Using UsingFrontEnd V2Get ValidationLength Value ValueBox ValueBoxOptions ValueForm ValueQ ValuesData Variables Variance VarianceEquivalenceTest VarianceEstimatorFunction VarianceGammaDistribution VarianceTest VectorAngle VectorColorFunction VectorColorFunctionScaling VectorDensityPlot VectorGlyphData VectorPlot VectorPlot3D VectorPoints VectorQ Vectors VectorScale VectorStyle Vee Verbatim Verbose VerboseConvertToPostScriptPacket VerifyConvergence VerifySolutions VerifyTestAssumptions Version VersionNumber VertexAdd VertexCapacity VertexColors VertexComponent VertexConnectivity VertexCoordinateRules VertexCoordinates VertexCorrelationSimilarity VertexCosineSimilarity VertexCount VertexCoverQ VertexDataCoordinates VertexDegree VertexDelete VertexDiceSimilarity VertexEccentricity VertexInComponent VertexInDegree VertexIndex VertexJaccardSimilarity VertexLabeling VertexLabels VertexLabelStyle VertexList VertexNormals VertexOutComponent VertexOutDegree VertexQ VertexRenderingFunction VertexReplace VertexShape VertexShapeFunction VertexSize VertexStyle VertexTextureCoordinates VertexWeight Vertical VerticalBar VerticalForm VerticalGauge VerticalSeparator VerticalSlider VerticalTilde ViewAngle ViewCenter ViewMatrix ViewPoint ViewPointSelectorSettings ViewPort ViewRange ViewVector ViewVertical VirtualGroupData Visible VisibleCell VoigtDistribution VonMisesDistribution WaitAll WaitAsynchronousTask WaitNext WaitUntil WakebyDistribution WalleniusHypergeometricDistribution WaringYuleDistribution WatershedComponents WatsonUSquareTest WattsStrogatzGraphDistribution WaveletBestBasis WaveletFilterCoefficients WaveletImagePlot WaveletListPlot WaveletMapIndexed WaveletMatrixPlot WaveletPhi WaveletPsi WaveletScale WaveletScalogram WaveletThreshold WeaklyConnectedComponents WeaklyConnectedGraphQ WeakStationarity WeatherData WeberE Wedge Wednesday WeibullDistribution WeierstrassHalfPeriods WeierstrassInvariants WeierstrassP WeierstrassPPrime WeierstrassSigma WeierstrassZeta WeightedAdjacencyGraph WeightedAdjacencyMatrix WeightedData WeightedGraphQ Weights WelchWindow WheelGraph WhenEvent Which While White Whitespace WhitespaceCharacter WhittakerM WhittakerW WienerFilter WienerProcess WignerD WignerSemicircleDistribution WilksW WilksWTest WindowClickSelect WindowElements WindowFloating WindowFrame WindowFrameElements WindowMargins WindowMovable WindowOpacity WindowSelected WindowSize WindowStatusArea WindowTitle WindowToolbars WindowWidth With WolframAlpha WolframAlphaDate WolframAlphaQuantity WolframAlphaResult Word WordBoundary WordCharacter WordData WordSearch WordSeparators WorkingPrecision Write WriteString Wronskian XMLElement XMLObject Xnor Xor Yellow YuleDissimilarity ZernikeR ZeroSymmetric ZeroTest ZeroWidthTimes Zeta ZetaZero ZipfDistribution ZTest ZTransform $Aborted $ActivationGroupID $ActivationKey $ActivationUserRegistered $AddOnsDirectory $AssertFunction $Assumptions $AsynchronousTask $BaseDirectory $BatchInput $BatchOutput $BoxForms $ByteOrdering $Canceled $CharacterEncoding $CharacterEncodings $CommandLine $CompilationTarget $ConditionHold $ConfiguredKernels $Context $ContextPath $ControlActiveSetting $CreationDate $CurrentLink $DateStringFormat $DefaultFont $DefaultFrontEnd $DefaultImagingDevice $DefaultPath $Display $DisplayFunction $DistributedContexts $DynamicEvaluation $Echo $Epilog $ExportFormats $Failed $FinancialDataSource $FormatType $FrontEnd $FrontEndSession $GeoLocation $HistoryLength $HomeDirectory $HTTPCookies $IgnoreEOF $ImagingDevices $ImportFormats $InitialDirectory $Input $InputFileName $InputStreamMethods $Inspector $InstallationDate $InstallationDirectory $InterfaceEnvironment $IterationLimit $KernelCount $KernelID $Language $LaunchDirectory $LibraryPath $LicenseExpirationDate $LicenseID $LicenseProcesses $LicenseServer $LicenseSubprocesses $LicenseType $Line $Linked $LinkSupported $LoadedFiles $MachineAddresses $MachineDomain $MachineDomains $MachineEpsilon $MachineID $MachineName $MachinePrecision $MachineType $MaxExtraPrecision $MaxLicenseProcesses $MaxLicenseSubprocesses $MaxMachineNumber $MaxNumber $MaxPiecewiseCases $MaxPrecision $MaxRootDegree $MessageGroups $MessageList $MessagePrePrint $Messages $MinMachineNumber $MinNumber $MinorReleaseNumber $MinPrecision $ModuleNumber $NetworkLicense $NewMessage $NewSymbol $Notebooks $NumberMarks $Off $OperatingSystem $Output $OutputForms $OutputSizeLimit $OutputStreamMethods $Packages $ParentLink $ParentProcessID $PasswordFile $PatchLevelID $Path $PathnameSeparator $PerformanceGoal $PipeSupported $Post $Pre $PreferencesDirectory $PrePrint $PreRead $PrintForms $PrintLiteral $ProcessID $ProcessorCount $ProcessorType $ProductInformation $ProgramName $RandomState $RecursionLimit $ReleaseNumber $RootDirectory $ScheduledTask $ScriptCommandLine $SessionID $SetParentLink $SharedFunctions $SharedVariables $SoundDisplay $SoundDisplayFunction $SuppressInputFormHeads $SynchronousEvaluation $SyntaxHandler $System $SystemCharacterEncoding $SystemID $SystemWordLength $TemporaryDirectory $TemporaryPrefix $TextStyle $TimedOut $TimeUnit $TimeZone $TopDirectory $TraceOff $TraceOn $TracePattern $TracePostAction $TracePreAction $Urgent $UserAddOnsDirectory $UserBaseDirectory $UserDocumentsDirectory $UserName $Version $VersionNumber", +contains:[{className:"comment",begin:/\(\*/,end:/\*\)/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:/\{/,end:/\}/,illegal:/:/}]}}}),define("highlight/lib/languages/matlab",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=[e.C_NUMBER_MODE,{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}],n={relevance:0,contains:[{begin:/'['\.]*/}]};return{keywords:{keyword:"break case catch classdef continue else elseif end enumerated events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson"},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{begin:/[a-zA-Z_][a-zA-Z_0-9]*'['\.]*/,returnBegin:!0,relevance:0,contains:[{begin:/[a-zA-Z_][a-zA-Z_0-9]*/,relevance:0},n.contains[0]]},{begin:"\\[",end:"\\]",contains:t,relevance:0,starts:n},{begin:"\\{",end:/}/,contains:t,relevance:0,starts:n},{begin:/\)/,relevance:0,starts:n},e.COMMENT("^\\s*\\%\\{\\s*$","^\\s*\\%\\}\\s*$"),e.COMMENT("\\%","$")].concat(t)}}}),define("highlight/lib/languages/maxima",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="if then else elseif for thru do while unless step in and or not",n="true false unknown inf minf ind und %e %i %pi %phi %gamma",i=" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",r="_ __ %|0 %%|0";return{lexemes:"[A-Za-z_%][0-9A-Za-z_%]*",keywords:{keyword:t,literal:n,built_in:i,symbol:r},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}}),define("highlight/lib/languages/mel",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform", +illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},l={className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]};return{aliases:["m","moo"],keywords:t,contains:[s,l,n,e.C_BLOCK_COMMENT_MODE,i,e.NUMBER_MODE,r,a,{begin:/:-/}]}}}),define("highlight/lib/languages/mipsasm",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,aliases:["mips"],lexemes:"\\.?"+e.IDENT_RE,keywords:{meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(.hb)?|jr(.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs.[sd]|add.[sd]|alnv.ps|bc1[ft]l?|c.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et]).[sd]|(ceil|floor|round|trunc).[lw].[sd]|cfc1|cvt.d.[lsw]|cvt.l.[dsw]|cvt.ps.s|cvt.s.[dlw]|cvt.s.p[lu]|cvt.w.[dls]|div.[ds]|ldx?c1|luxc1|lwx?c1|madd.[sd]|mfc1|mov[fntz]?.[ds]|msub.[sd]|mth?c1|mul.[ds]|neg.[ds]|nmadd.[ds]|nmsub.[ds]|p[lu][lu].ps|recip.fmt|r?sqrt.[ds]|sdx?c1|sub.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#]","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:"/"}}}),define("highlight/lib/languages/mizar",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}}),define("highlight/lib/languages/perl",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",n={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:t},i={begin:"->{",end:"}"},r={variants:[{begin:/\$\d/},{begin:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{begin:/[\$%@][^\s\w{]/,relevance:0}]},a=[e.BACKSLASH_ESCAPE,n,r],o=[r,e.HASH_COMMENT_MODE,e.COMMENT("^\\=\\w","\\=cut",{endsWithParent:!0}),i,{className:"string",contains:a,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*\\<",end:"\\>",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:"{\\w+}",contains:[],relevance:0},{begin:"-?\\w+\\s*\\=\\>",contains:[],relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",begin:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",relevance:10},{className:"regexp",begin:"(m|qr)?/",end:"/[a-z]*",contains:[e.BACKSLASH_ESCAPE],relevance:0}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return n.contains=o,i.contains=o,{aliases:["pl","pm"],lexemes:/[\w\.]+/,keywords:t,contains:o}}}),define("highlight/lib/languages/mojolicious",["require","exports","module"],function(e,t,n){n.exports=function(e){return{subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}}),define("highlight/lib/languages/monkey",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]};return{case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}}),define("highlight/lib/languages/moonscript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/}/,keywords:t},r=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=r;var a=e.inherit(e.TITLE_MODE,{begin:n}),o="(\\(.*\\))?\\s*\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(r)}]};return{aliases:["moon"],keywords:t,illegal:/\/\*/,contains:r.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[a,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}),define("highlight/lib/languages/nginx",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/}/},{begin:"[\\$\\@]"+e.UNDERSCORE_IDENT_RE}]},n={endsWithParent:!0,lexemes:"[a-z/_]+",keywords:{literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[t]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:"\\s\\^",end:"\\s|{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},t]};return{aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+{",returnBegin:!0,end:"{",contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:n}],relevance:0}],illegal:"[^\\s\\}]"}}}),define("highlight/lib/languages/nimrod",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["nim"],keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/{\./,end:/\.}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}}),define("highlight/lib/languages/nix",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},n={className:"subst",begin:/\$\{/,end:/}/,keywords:t},i={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]},r={className:"string",contains:[n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,i];return n.contains=a,{aliases:["nixos"],keywords:t,contains:a}}}),define("highlight/lib/languages/nsis",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",begin:"\\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)"},n={className:"variable",begin:"\\$+{[a-zA-Z0-9_]+}"},i={className:"variable",begin:"\\$+[a-zA-Z0-9_]+",illegal:"\\(\\){}"},r={className:"variable",begin:"\\$+\\([a-zA-Z0-9_]+\\)"},a={className:"built_in",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},o={className:"keyword",begin:"\\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifmacrondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchparse|searchreplace|tempfile|undef|verbose|warning)"};return{case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText IntCmp IntCmpU IntFmt IntOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetPluginUnload SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption SubSectionEnd Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both colored current false force hide highest lastused leave listonly none normal notset off on open print show silent silentlog smooth textonly true user "},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[{begin:"\\$(\\\\(n|r|t)|\\$)"},t,n,i,r]},e.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup SubSection",end:"$"},o,n,i,r,a,e.NUMBER_MODE,{begin:e.IDENT_RE+"::"+e.IDENT_RE}]}}}),define("highlight/lib/languages/objectivec",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n={keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,r="@interface @class @protocol @implementation";return{aliases:["mm","objc","obj-c"],keywords:n,lexemes:i,illegal:""}]}]},{className:"class",begin:"("+r.split(" ").join("|")+")\\b",end:"({|$)",excludeEnd:!0,keywords:r,lexemes:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}}),define("highlight/lib/languages/ocaml",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["ml"],keywords:{keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,lexemes:"[a-z_]\\w*!?",contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}}),define("highlight/lib/languages/openscad",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",i,r,t,n]},s={begin:"[*!#%]",relevance:0},l={className:"function",beginKeywords:"module function",end:"\\=|\\{",contains:[o,e.UNDERSCORE_TITLE_MODE]};return{aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,r,t,s,l]}}}),define("highlight/lib/languages/oxygene",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained",n=e.COMMENT("{","}",{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),r={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},a={className:"string",begin:"(#\\d+)+"},o={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[r,a]},n,i]};return{case_insensitive:!0,lexemes:/\.?\w+/,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[n,i,e.C_LINE_COMMENT_MODE,r,a,e.NUMBER_MODE,o,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:t,contains:[r,a,n,i,e.C_LINE_COMMENT_MODE,o]}]}}}),define("highlight/lib/languages/parser3",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.COMMENT("{","}",{contains:["self"]});return{subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT("\\^rem{","}",{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:"\\$\\{?[\\w\\-\\.\\:]+\\}?"},{className:"keyword",begin:"\\^[\\w\\-\\.\\:]+"},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/pf",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/},n={className:"variable",begin:/<(?!\/)/,end:/>/};return{aliases:["pf.conf"],lexemes:/[a-z0-9_<>-]+/,keywords:{built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to routeallow-opts divert-packet divert-reply divert-to flags group icmp-typeicmp6-type label once probability recieved-on rtable prio queuetos tag tagged user keep fragment for os dropaf-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robinsource-hash static-portdup-to reply-to route-toparent bandwidth default min max qlimitblock-policy debug fingerprints hostid limit loginterface optimizationreassemble ruleset-optimization basic none profile skip state-defaultsstate-policy timeoutconst counters persistno modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppysource-track global rule max-src-nodes max-src-states max-src-connmax-src-conn-rate overload flushscrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,t,n]}}}),define("highlight/lib/languages/php",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},n={className:"meta",begin:/<\?(php)?|\?>/},i={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["php3","php4","php5","php6"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,r]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},i,r]}}}),define("highlight/lib/languages/pony",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"actor addressof and as be break class compile_error compile_intrinsicconsume continue delegate digestof do else elseif embed end errorfor fun if ifdef in interface is isnt lambda let match new not objector primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},n={className:"string",begin:'"""',end:'"""', +relevance:10},i={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},r={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},a={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},o={begin:e.IDENT_RE+"'",relevance:0},s={className:"class",beginKeywords:"class actor",end:"$",contains:[e.TITLE_MODE,e.C_LINE_COMMENT_MODE]},l={className:"function",beginKeywords:"new fun",end:"=>",contains:[e.TITLE_MODE,{begin:/\(/,end:/\)/,contains:[a,o,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:/:/,endsWithParent:!0,contains:[a]},e.C_LINE_COMMENT_MODE]};return{keywords:t,contains:[s,l,a,n,i,r,o,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}}),define("highlight/lib/languages/powershell",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:"`[\\s\\S]",relevance:0},n={className:"variable",variants:[{begin:/\$[\w\d][\w\d_:]*/}]},i={className:"literal",begin:/\$(null|true|false)\b/},r={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[t,n,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},a={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},o={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},s=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[o]});return{aliases:["ps"],lexemes:/-?[A-z\.\-]+/,case_insensitive:!0,keywords:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch",built_in:"Add-Computer Add-Content Add-History Add-JobTrigger Add-Member Add-PSSnapin Add-Type Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession Connect-WSMan Convert-Path ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString ConvertTo-Xml Copy-Item Copy-ItemProperty Debug-Process Disable-ComputerRestore Disable-JobTrigger Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration Disable-WSManCredSSP Disconnect-PSSession Disconnect-WSMan Disable-ScheduledJob Enable-ComputerRestore Enable-JobTrigger Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration Enable-ScheduledJob Enable-WSManCredSSP Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter Export-Csv Export-FormatData Export-ModuleMember Export-PSSession ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Host Get-HotFix Get-Help Get-History Get-IseSnippet Get-Item Get-ItemProperty Get-Job Get-JobTrigger Get-Location Get-Member Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-ScheduledJob Get-ScheduledJobOption Get-Service Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb Get-WinEvent Get-WmiObject Get-WSManCredSSP Get-WSManInstance Group-Object Import-Alias Import-Clixml Import-Counter Import-Csv Import-IseSnippet Import-LocalizedData Import-PSSession Import-Module Invoke-AsWorkflow Invoke-Command Invoke-Expression Invoke-History Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod Invoke-WSManAction Join-Path Limit-EventLog Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Event New-EventLog New-IseSnippet New-Item New-ItemProperty New-JobTrigger New-Object New-Module New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption New-PSWorkflowExecutionOption New-PSWorkflowSession New-ScheduledJobOption New-Service New-TimeSpan New-Variable New-WebServiceProxy New-WinEvent New-WSManInstance New-WSManSessionOption Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Receive-Job Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration Register-ScheduledJob Register-WmiEvent Remove-Computer Remove-Event Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-JobTrigger Remove-Module Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData Remove-Variable Remove-WmiObject Remove-WSManInstance Rename-Computer Rename-Item Rename-ItemProperty Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service Restore-Computer Resume-Job Resume-Service Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-JobTrigger Set-Location Set-PSBreakpoint Set-PSDebug Set-PSSessionConfiguration Set-ScheduledJob Set-ScheduledJobOption Set-Service Set-StrictMode Set-TraceSource Set-Variable Set-WmiInstance Set-WSManInstance Set-WSManQuickConfig Show-Command Show-ControlPanelItem Show-EventLog Sort-Object Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript Suspend-Job Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration Unregister-ScheduledJob Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog Write-Host Write-Output Write-Progress Write-Verbose Write-Warning",nomarkup:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},contains:[t,e.NUMBER_MODE,r,a,i,n,s]}}}),define("highlight/lib/languages/processing",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/profile",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}}),define("highlight/lib/languages/prolog",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},i={begin:/\(/,end:/\)/,relevance:0},r={begin:/\[/,end:/\]/},a={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},s={className:"string",begin:/0\'(\\\'|.)/},l={className:"string",begin:/0\'\\s/},c={begin:/:-/},d=[t,n,i,c,r,a,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,s,l,e.C_NUMBER_MODE];return i.contains=d,r.contains=d,{contains:d.concat([{begin:/\.$/}])}}}),define("highlight/lib/languages/protobuf",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{keyword:"package import option optional required repeated group",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/;/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+/,end:/\s*=/,excludeEnd:!0}]}}}),define("highlight/lib/languages/puppet",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},n=e.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",r=e.inherit(e.TITLE_MODE,{begin:i}),a={className:"variable",begin:"\\$"+i},o={className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{aliases:["pp"],contains:[n,a,o,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[r,n]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE},{begin:/\{/,end:/\}/,keywords:t,relevance:0,contains:[o,n,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},a]}],relevance:0}]}}}),define("highlight/lib/languages/purebasic",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},n={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{aliases:["pb","pbi"],keywords:"And As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect Continue Data DataSection EndDataSection Debug DebugLevel Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndEnumeration EndIf EndImport EndInterface EndMacro EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration Extends FakeReturn For Next ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface Macro NewList Not Or ProcedureReturn Protected Prototype PrototypeC Read ReDim Repeat Until Restore Return Select Shared Static Step Structure StructureUnion Swap To Wend While With XIncludeFile XOr Procedure ProcedureC ProcedureCDLL ProcedureDLL Declare DeclareC DeclareCDLL DeclareDLL",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},t,n]}}}),define("highlight/lib/languages/python",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"meta",begin:/^(>>>|\.\.\.) /},n={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[t],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[t],relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},i={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},r={className:"params",begin:/\(/,end:/\)/,contains:["self",t,i,n]};return{aliases:["py","gyp"],keywords:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},illegal:/(<\/|->|\?)/,contains:[t,i,n,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def",relevance:10},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,r,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}}),define("highlight/lib/languages/q",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"};return{aliases:["k","kdb"],keywords:t,lexemes:/(`?)[A-Za-z0-9_]+\b/,contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/qml",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url var variant vector2d vector3d vector4dPromise"},n="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},r={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:n,returnEnd:!1}},o={begin:n+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:n,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},s={begin:n+"\\s*{",end:"{",returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:n})]};return{aliases:["qt"],case_insensitive:!1,keywords:t,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},r,i,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},a,o,s],illegal:/#/}}}),define("highlight/lib/languages/r",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";return{contains:[e.HASH_COMMENT_MODE,{begin:t,lexemes:t,keywords:{keyword:"function if in break next repeat else for return switch while try tryCatch stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...",literal:"NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{begin:"`",end:"`",relevance:0},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]}]}}}),define("highlight/lib/languages/rib",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:""}]}}}),define("highlight/lib/languages/scala",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"meta",begin:"@[A-Za-z]+"},n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:"\\${",end:"}"}]},i={className:"string",variants:[{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'"""',end:'"""',relevance:10},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[n],relevance:10}]},r={className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},a={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},o]},l={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[o]};return{keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,r,a,l,s,e.C_NUMBER_MODE,t]}}}),define("highlight/lib/languages/scheme",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(\\-|\\+)?\\d+([./]\\d+)?",i=n+"[+\\-]"+n+"i",r={"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},a={className:"meta",begin:"^#!",end:"$"},o={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},s={className:"number",variants:[{begin:n,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=e.QUOTE_STRING_MODE,c=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],d={begin:t,relevance:0},u={className:"symbol",begin:"'"+t},m={endsWithParent:!0,relevance:0},p={begin:/'/,contains:[{begin:"\\(",end:"\\)",contains:["self",o,l,s,d,u]}]},g={className:"name",begin:t,lexemes:t,keywords:r},h={begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[g,{begin:/\(/,end:/\)/,endsParent:!0,contains:[d]}]},b={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[h,g,m]};return m.contains=[o,s,l,d,u,p,b].concat(c),{illegal:/\S/,contains:[a,s,l,u,p,b].concat(c)}}}),define("highlight/lib/languages/scilab",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{aliases:["sci"],lexemes:/%?\w+/,keywords:{keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",end:"",relevance:0},{begin:"\\[",end:"\\]'*[\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}}),define("highlight/lib/languages/scss",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",n={className:"variable",begin:"(\\$"+t+")\\b"},i={className:"number",begin:"#[0-9A-Fa-f]+"};({className:"attribute",begin:"[A-Z\\_\\.\\-]+",end:":",excludeEnd:!0,illegal:"[^\\s]",starts:{endsWithParent:!0,excludeEnd:!0,contains:[i,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"!important"}]}});return{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},n,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[n,i,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[n,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}}),define("highlight/lib/languages/smali",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],i=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{aliases:["smali"],contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+i.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((\\-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+n.join("|")+")((\\-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}}}),define("highlight/lib/languages/smalltalk",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{aliases:["st"],keywords:"self super nil true false thisContext",contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,i,n,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"\\#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,i]}]}}}),define("highlight/lib/languages/sml",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["ml"],keywords:{keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,lexemes:"[a-z_]\\w*!?",contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}}),define("highlight/lib/languages/sqf",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.getLanguage("cpp").exports,n={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]};return{aliases:["sqf"],case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if switch then throw to try while with",built_in:"or plus abs accTime acos action actionKeys actionKeysImages actionKeysNames actionKeysNamesArray actionName activateAddons activatedAddons activateKey addAction addBackpack addBackpackCargo addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats addMagazine addMagazine array addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler addMPEventHandler addMusicEventHandler addPrimaryWeaponItem addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem addSwitchableUnit addTeamMember addToRemainsCollector addUniform addVehicle addVest addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponPool addWeaponTurret agent agents AGLToASL aimedAtTarget aimPos airDensityRTD airportSide AISFinishHeal alive allControls allCurators allDead allDeadMen allDisplays allGroups allMapMarkers allMines allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage allowDammage allowFileOperations allowFleeing allowGetIn allPlayers allSites allTurrets allUnits allUnitsUAV allVariables ammo and animate animateDoor animationPhase animationState append armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines backpackSpaceFor behaviour benchmark binocular blufor boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canUnloadInCombat captive captiveNum cbChecked cbSetChecked ceil cheatsEnabled checkAIFeature civilian className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool closeDialog closeDisplay closeOverlay collapseObjectTree combatMode commandArtilleryFire commandChat commander commandFire commandFollow commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop commandTarget commandWatch comment commitOverlay compile compileFinal completedFSM composeText configClasses configFile configHierarchy configName configProperties configSourceMod configSourceModList connectTerminalToUAV controlNull controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count countEnemy countFriendly countSide countType countUnknown createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker createMarkerLocal createMenu createMine createMissionDisplay createSimpleTask createSite createSoundSource createTask createTeam createTrigger createUnit createUnit array createVehicle createVehicle array createVehicleCrew createVehicleLocal crew ctrlActivate ctrlAddEventHandler ctrlAutoScrollDelay ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ctrlParent ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ctrlScale ctrlSetActiveColor ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontP ctrlSetFontPB ctrlSetForegroundColor ctrlSetModel ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPosition ctrlSetScale ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ctrlType ctrlVisible curatorAddons curatorCamera curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected curatorWaypointCost currentChannel currentCommand currentMagazine currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorTarget customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime deActivateKey debriefingText debugFSM debugLog deg deleteAt deleteCenter deleteCollection deleteEditorObject deleteGroup deleteIdentity deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines diag activeMissionFSMs diag activeSQFScripts diag activeSQSScripts diag captureFrame diag captureSlowFrame diag fps diag fpsMin diag frameNo diag log diag logSlowFrame diag tickTime dialog diarySubjectExists didJIP didJIPOwner difficulty difficultyEnabled difficultyEnabledRTD direction directSay disableAI disableCollisionWith disableConversation disableDebriefingStats disableSerialization disableTIEquipment disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayNull displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam distance distance2D distanceSqr distributionRegion doArtilleryFire doFire doFollow doFSM doGetOut doMove doorPhase doStop doTarget doWatch drawArrow drawEllipse drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawRectangle driver drop east echo editObject editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature enableAttack enableCamShake enableCaustics enableCollisionWith enableCopilot enableDebriefingStats enableDiagLegend enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights enableIRLasers enableMimics enablePersonTurret enableRadio enableReload enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation enableSimulationGlobal enableTeamSwitch enableUAVConnectability enableUAVWaypoints endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM exp expectedDestination eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition findEmptyPositionReady findNearestEnemy finishMissionInit finite fire fireAtTarget firstBackpack flag flagOwner fleeing floor flyInHeight fog fogForecast fogParams forceAddUniform forceEnd forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam format formation formationDirection formationLeader formationMembers formationPosition formationTask formatText formLeader freeLook fromEditor fuel fullCrew gearSlotAmmoCount gearSlotData getAllHitPointsDamage getAmmoCargo getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining getBurningValue getCargoIndex getCenterOfMass getClientState getConnectedUAV getDammage getDescription getDir getDirVisual getDLCs getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getFatigue getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getModelInfo getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPlayerChannel getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getRepairCargo getResolution getShadowDistance getSlingLoad getSpeed getSuppression getTerrainHeightASL getText getVariable getWeaponCargo getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit grpNull gunner gusts halt handgunItems handgunMagazine handgunWeapon handsHit hasInterface hasWeapon hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hint hintC hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups importance in incapacitatedState independent inflame inflamed inGameUISetEventHandler inheritsFrom initAmbientLife inputAction inRangeOfArtillery insertEditorObject intersect isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDedicated isDLCAvailable isEngineOn isEqualTo isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn isKeyActive isKindOf isLightOn isLocalized isManualFire isMarkedForCollection isMultiplayer isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad isPipEnabled isPlayer isRealTime isServer isShowing3DIcons isSteamMission isStreamFriendlyUIEnabled isText isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUniformAllowed isWalking isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language laserTarget lbAdd lbClear lbColor lbCurSel lbData lbDelete lbIsSelected lbPicture lbSelection lbSetColor lbSetCurSel lbSetData lbSetPicture lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbValue leader leaderboardDeInit leaderboardGetRows leaderboardInit leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineBreak lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize locationNull locationPosition lock lockCameraTo lockCargo lockDriver locked lockedCargo lockedDriver lockedTurret lockTurret lockWP log logEntities lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText markerType max members min mineActive mineDetectedBy missionConfigFile missionName missionNamespace missionStart mod modelToWorld modelToWorldVisual moonIntensity morale move moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name name location nameSound nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing nearestObject nearestObjects nearObjects nearObjectsReady nearRoads nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex nextWeatherChange nMenuItems not numberToDate objectCurators objectFromNetId objectParent objNull objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openMap openYoutubeVideo opfor or orderGetIn overcast overcastForecast owner param params parseNumber parseText parsingNamespace particlesQuality pi pickWeaponPool pitch playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ppEffectForceInNVG precision preloadCamera preloadObject preloadSound preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority private processDiaryLink productVersion profileName profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition publicVariable publicVariableClient publicVariableServer pushBack putWeaponPool queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl remoteExec remoteExecCall removeAction removeAllActions removeAllAssignedItems removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers removeAllMusicEventHandlers removeAllPrimaryWeaponItems removeAllWeapons removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler removeMusicEventHandler removePrimaryWeaponItem removeSecondaryWeaponItem removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon removeWeaponGlobal removeWeaponTurret requiredVersion resetCamShake resetSubgroupDirection resistance resize resources respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ropeAttachTo ropeCreate ropeCut ropeEndPosition ropeLength ropes ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY saveGame saveIdentity saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D scopeName score scoreSide screenToWorld scriptDone scriptName scriptNull scudState secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces selectDiarySubject selectedEditorObjects selectEditorObject selectionPosition selectLeader selectNoPlayer selectPlayer selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime set setAccTime setAirportSide setAmmo setAmmoCargo setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour setBleedingRemaining setCameraInterest setCamShakeDefParams setCamShakeParams setCamUseTi setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination setDetailMapBlendPars setDir setDirection setDrawIcon setDropInterval setEditorMode setEditorObjectScope setEffectCondition setFace setFaceAnimation setFatigue setFlagOwner setFlagSide setFlagTexture setFog setFog array setFormation setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setLeader setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound setObjectArguments setObjectMaterial setObjectProxy setObjectTexture setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom setPilotLight setPiPEffect setPitch setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW setPosATL setPosition setPosWorld setRadioMsg setRain setRainbow setRandomLip setRank setRectangular setRepairCargo setShadowDistance setSide setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimulWeatherLayers setSize setSkill setSkill array setSlingLoad setSoundEffect setSpeaker setSpeech setSpeedMode setStatValue setSuppression setSystemOfUnits setTargetAge setTaskResult setTaskState setTerrainGrid setText setTimeMultiplier setTitleEffect setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitPos setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnloadInCombat setUserActionText setVariable setVectorDir setVectorDirAndUp setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleId setVehicleLock setVehiclePosition setVehicleTiPars setVehicleVarName setVelocity setVelocityTransformation setViewDistance setVisibleIfTreeCollapsed setWaves setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointFormation setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce setWindStr setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap shownPad shownRadio shownUAVFeed shownWarrant shownWatch showPad showRadio showSubtitles showUAVFeed showWarrant showWatch showWaypoint side sideChat sideEnemy sideFriendly sideLogic sideRadio sideUnknown simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step stop stopped str sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth switchableUnits switchAction switchCamera switchGesture switchLight switchMove synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint synchronizeWaypoint trigger systemChat systemOfUnits tan targetKnowledge targetsAggregate targetsQuery taskChildren taskCompleted taskDescription taskDestination taskHint taskNull taskParent taskResult taskState teamMember teamMemberNull teamName teams teamSwitch teamSwitchEnabled teamType terminate terrainIntersect terrainIntersectASL text text location textLog textLogFormat tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toLower toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle triggerAttachObject triggerAttachVehicle triggerStatements triggerText triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear tvCollapse tvCount tvCurSel tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetTooltip tvSetValue tvSort tvSortByValue tvText tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems uniformMagazines unitAddons unitBackpack unitPos unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAudioTimeForMoves vectorAdd vectorCos vectorCrossProduct vectorDiff vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo vectorMagnitude vectorMagnitudeSqr vectorMultiply vectorNormalized vectorUp vectorUpVisual vehicle vehicleChat vehicleRadio vehicles vehicleVarName velocity velocityModelSpace verifySignature vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap visiblePosition visiblePositionASL visibleWatch waitUntil waves waypointAttachedObject waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour waypointCombatMode waypointCompletionRadius waypointDescription waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible weaponAccessories weaponCargo weaponDirection weaponLowered weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD west WFSideText wind windDir windStr wingsForcesRTD worldName worldSize worldToModel worldToModelVisual worldToScreen _forEachIndex _this _x", +literal:"true false nil"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,n,t.preprocessor],illegal:/#/}}}),define("highlight/lib/languages/sql",["require","exports","module"],function(e,t,n){n.exports=function(e){var t=e.COMMENT("--","$");return{case_insensitive:!0,illegal:/[<>{}*#]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment",end:/;/,endsWithParent:!0,lexemes:/[\w\.]+/,keywords:{keyword:"abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text varchar varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE,{begin:'""'}]},{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t]},e.C_BLOCK_COMMENT_MODE,t]}}}),define("highlight/lib/languages/stan",["require","exports","module"],function(e,t,n){n.exports=function(e){return{contains:[e.HASH_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE,lexemes:e.UNDERSCORE_IDENT_RE,keywords:{name:"for in while repeat until if then else",symbol:"bernoulli bernoulli_logit binomial binomial_logit beta_binomial hypergeometric categorical categorical_logit ordered_logistic neg_binomial neg_binomial_2 neg_binomial_2_log poisson poisson_log multinomial normal exp_mod_normal skew_normal student_t cauchy double_exponential logistic gumbel lognormal chi_square inv_chi_square scaled_inv_chi_square exponential inv_gamma weibull frechet rayleigh wiener pareto pareto_type_2 von_mises uniform multi_normal multi_normal_prec multi_normal_cholesky multi_gp multi_gp_cholesky multi_student_t gaussian_dlm_obs dirichlet lkj_corr lkj_corr_cholesky wishart inv_wishart","selector-tag":"int real vector simplex unit_vector ordered positive_ordered row_vector matrix cholesky_factor_corr cholesky_factor_cov corr_matrix cov_matrix",title:"functions model data parameters quantities transformed generated",literal:"true false"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0}]}}}),define("highlight/lib/languages/stata",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize meqparse mer merg merge mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\(|$)"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}}),define("highlight/lib/languages/step21",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="[A-Z_][A-Z0-9_.]*",n={keyword:"HEADER ENDSEC DATA"},i={className:"meta",begin:"ISO-10303-21;",relevance:10},r={className:"meta",begin:"END-ISO-10303-21;",relevance:10};return{aliases:["p21","step","stp"],case_insensitive:!0,lexemes:t,keywords:n,contains:[i,r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}}),define("highlight/lib/languages/stylus",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"variable",begin:"\\$"+e.IDENT_RE},n={className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},i=["charset","css","debug","extend","font-face","for","import","include","media","mixin","page","warn","while"],r=["after","before","first-letter","first-line","active","first-child","focus","hover","lang","link","visited"],a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],o="[\\.\\s\\n\\[\\:,]",s=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"],l=["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"]; +return{aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+l.join("|")+")",contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+o,returnBegin:!0,contains:[{className:"selector-class",begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"\\#[a-zA-Z][a-zA-Z0-9_-]*"+o,returnBegin:!0,contains:[{className:"selector-id",begin:"\\#[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"\\b("+a.join("|")+")"+o,returnBegin:!0,contains:[{className:"selector-tag",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"&?:?:\\b("+r.join("|")+")"+o},{begin:"@("+i.join("|")+")\\b"},t,e.CSS_NUMBER_MODE,e.NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[n,t,e.APOS_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+s.reverse().join("|")+")\\b",starts:{end:/;|$/,contains:[n,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/\./,relevance:0}}]}}}),define("highlight/lib/languages/subunit",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},n={className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},i={className:"string",begin:"(\\+|-)\\d+"},r={className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]};return{case_insensitive:!0,contains:[t,n,i,r]}}}),define("highlight/lib/languages/swift",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"__COLUMN__ __FILE__ __FUNCTION__ __LINE__ as as! as? associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r={className:"subst",begin:/\\\(/,end:"\\)",keywords:t,contains:[]},a={className:"number",begin:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{contains:[r,e.BACKSLASH_ESCAPE]});return r.contains=[a],{keywords:t,contains:[o,e.C_LINE_COMMENT_MODE,i,n,a,{className:"function",beginKeywords:"func",end:"{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{begin://},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,contains:["self",a,o,e.C_BLOCK_COMMENT_MODE,{begin:":"}],illegal:/["']/}],illegal:/\[|%/},{className:"class",beginKeywords:"struct protocol class extension enum",keywords:t,end:"\\{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/})]},{className:"meta",begin:"(@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain)"},{beginKeywords:"import",end:/$/,contains:[e.C_LINE_COMMENT_MODE,i]}]}}}),define("highlight/lib/languages/taggerscript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},n={className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},i={className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},r={className:"symbol",begin:/\\./};return{contains:[t,n,i,r]}}}),define("highlight/lib/languages/yaml",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={literal:"{ } true false yes no Yes No True False null"},n="^[ \\-]*",i="[a-zA-Z_][\\w\\-]*",r={className:"attr",variants:[{begin:n+i+":"},{begin:n+'"'+i+'":'},{begin:n+"'"+i+"':"}]},a={className:"template-variable",variants:[{begin:"{{",end:"}}"},{begin:"%{",end:"}"}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}],contains:[e.BACKSLASH_ESCAPE,a]};return{case_insensitive:!0,aliases:["yml","YAML","yaml"],contains:[r,{className:"meta",begin:"^---s*$",relevance:10},{className:"string",begin:"[\\|>] *$",returnEnd:!0,contains:o.contains,end:r.variants[0].begin},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!!"+e.UNDERSCORE_IDENT_RE},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"^ *-",relevance:0},o,e.HASH_COMMENT_MODE,e.C_NUMBER_MODE],keywords:t}}}),define("highlight/lib/languages/tap",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:"(s+)?---$",end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}}),define("highlight/lib/languages/tcl",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{excludeEnd:!0,variants:[{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)",end:"[^a-zA-Z0-9_\\}\\$]"},{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"(\\))?[^a-zA-Z0-9_\\}\\$]"}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},{className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]}]}}}),define("highlight/lib/languages/tex",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"tag",begin:/\\/,relevance:0,contains:[{className:"name",variants:[{begin:/[a-zA-Zа-яА-я]+[*]?/},{begin:/[^a-zA-Zа-яА-я0-9]/}],starts:{endsWithParent:!0,relevance:0,contains:[{className:"string",variants:[{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/}]},{begin:/\s*=\s*/,endsWithParent:!0,relevance:0,contains:[{className:"number",begin:/-?\d*\.?\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?/}]}]}}]};return{contains:[t,{className:"formula",contains:[t],relevance:0,variants:[{begin:/\$\$/,end:/\$\$/},{begin:/\$/,end:/\$/}]},e.COMMENT("%","$",{relevance:0})]}}}),define("highlight/lib/languages/thrift",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="bool byte i16 i32 i64 double string binary";return{keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:t,contains:["self"]}]}}}),define("highlight/lib/languages/tp",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},i={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER| TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},r={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]};return{keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[i,r,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}}),define("highlight/lib/languages/twig",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"params",begin:"\\(",end:"\\)"},n="attribute block constant cycle date dump include max min parent random range source template_from_string",i={beginKeywords:n,keywords:{name:n},relevance:0,contains:[t]},r={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize convert_encoding date date_modify default escape first format join json_encode keys last length lower merge nl2br number_format raw replace reverse round slice sort split striptags title trim upper url_encode",contains:[i]},a="autoescape block do embed extends filter flush for if import include macro sandbox set spaceless use verbatim";return a=a+" "+a.split(" ").map(function(e){return"end"+e}).join(" "),{aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#}/),{className:"template-tag",begin:/\{%/,end:/%}/,contains:[{className:"name",begin:/\w+/,keywords:a,starts:{endsWithParent:!0,contains:[r,i],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/}}/,contains:["self",r,i]}]}}}),define("highlight/lib/languages/typescript",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void"};return{aliases:["ts"],keywords:t,contains:[{className:"meta",begin:/^\s*['"]use strict['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE],relevance:0},{className:"function",begin:"function",end:/[\{;]/,excludeEnd:!0,keywords:t,contains:["self",e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/["'\(]/}],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+e.IDENT_RE,relevance:0}]}}}),define("highlight/lib/languages/vala",["require","exports","module"],function(e,t,n){n.exports=function(e){return{keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:"{",excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}}),define("highlight/lib/languages/vbnet",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["vb"],case_insensitive:!0,keywords:{keyword:"addhandler addressof alias and andalso aggregate ansi as assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor",built_in:"boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",literal:"true false nothing"},illegal:"//|{|}|endif|gosub|variant|wend",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT("'","$",{returnBegin:!0,contains:[{className:"doctag",begin:"'''|",contains:[e.PHRASAL_WORDS_MODE]},{className:"doctag",begin:"",contains:[e.PHRASAL_WORDS_MODE]}]}),e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end region externalsource"}}]}}}),define("highlight/lib/languages/vbscript",["require","exports","module"],function(e,t,n){n.exports=function(e){return{aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:"lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},illegal:"//",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}}),define("highlight/lib/languages/vbscript-html",["require","exports","module"],function(e,t,n){n.exports=function(e){return{subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}}),define("highlight/lib/languages/verilog",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"};return{aliases:["v","sv","svh"],case_insensitive:!1,keywords:t,lexemes:/[\w\$]+/,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}}),define("highlight/lib/languages/vhdl",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="\\d(_|\\d)*",n="[eE][-+]?"+t,i=t+"(\\."+t+")?("+n+")?",r="\\w+",a=t+"#"+r+"(\\."+r+")?#("+n+")?",o="\\b("+a+"|"+i+")";return{case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signedreal_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:"{",contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:o,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}}),define("highlight/lib/languages/vim",["require","exports","module"],function(e,t,n){n.exports=function(e){return{lexemes:/[!#@\w]+/,keywords:{keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp" +},illegal:/;/,contains:[e.NUMBER_MODE,e.APOS_STRING_MODE,{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}}),define("highlight/lib/languages/x86asm",["require","exports","module"],function(e,t,n){n.exports=function(e){return{case_insensitive:!0,lexemes:"[.%]?"+e.IDENT_RE,keywords:{keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}}),define("highlight/lib/languages/xl",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts",n={keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons "+t},i={className:"string",begin:'"',end:'"',illegal:"\\n"},r={className:"string",begin:"'",end:"'",illegal:"\\n"},a={className:"string",begin:"<<",end:">>"},o={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},s={beginKeywords:"import",end:"$",keywords:n,contains:[i]},l={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:n}})]};return{aliases:["tao"],lexemes:/[a-zA-Z][a-zA-Z0-9_?]*/,keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,r,a,l,s,o,e.NUMBER_MODE]}}}),define("highlight/lib/languages/xquery",["require","exports","module"],function(e,t,n){n.exports=function(e){var t="for let if while then else return where group by xquery encoding versionmodule namespace boundary-space preserve strip default collation base-uri orderingcopy-namespaces order declare import schema namespace function option in allowing emptyat tumbling window sliding window start when only end when previous next stable ascendingdescending empty greatest least some every satisfies switch case typeswitch try catch andor to union intersect instance of treat as castable cast map array delete insert intoreplace value rename copy modify update",n="false true xs:string xs:integer element item xs:date xs:datetime xs:float xs:double xs:decimal QName xs:anyURI xs:long xs:int xs:short xs:byte attribute",i={begin:/\$[a-zA-Z0-9\-]+/},r={className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},a={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},o={className:"meta",begin:"%\\w+"},s={className:"comment",begin:"\\(:",end:":\\)",relevance:10,contains:[{className:"doctag",begin:"@\\w+"}]},l={begin:"{",end:"}"},c=[i,a,r,s,o,l];return l.contains=c,{aliases:["xpath","xq"],case_insensitive:!1,lexemes:/[a-zA-Z\$][a-zA-Z0-9_:\-]*/,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{keyword:t,literal:n},contains:c}}}),define("highlight/lib/languages/zephir",["require","exports","module"],function(e,t,n){n.exports=function(e){var t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["zep"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var let while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally int uint long ulong char uchar double float bool boolean stringlikely unlikely",contains:[e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:"<<<['\"]?\\w+['\"]?$",end:"^\\w+;",contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_BLOCK_COMMENT_MODE,t,n]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},t,n]}}}),define("text!app.html",["module"],function(e){e.exports='\r\n'}),define("text!app.css",["module"],function(e){e.exports="html,\nbody {\n height: 100%;\n overflow: hidden;\n}\n::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background-color: #c6c6c6;\n}\n::-webkit-scrollbar-thumb:hover {\n background: #999;\n}\n@media only screen and (min-width: 768px) {\n .ui.modal.tms-md450 {\n width: 450px!important;\n margin-left: -225px !important;\n }\n .ui.modal.tms-md510 {\n width: 510px!important;\n margin-left: -255px !important;\n }\n .ui.modal.tms-md540 {\n width: 540px!important;\n margin-left: -275px !important;\n }\n}\n/* for swipebox */\n#swipebox-overlay {\n background: rgba(13, 13, 13, 0.5) !important;\n}\n.keyboard {\n background: #fff;\n font-weight: 700;\n padding: 2px .35rem;\n font-size: .8rem;\n margin: 0 2px;\n border-radius: .25rem;\n color: #3d3c40;\n border-bottom: 2px solid #9e9ea6;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);\n text-shadow: none;\n}\n#nprogress .spinner {\n display: none!important;\n}\n.tms-dropzone-preview-hidden .dz-preview {\n display: none!important;\n}\n"}),define("text!blog/blog.html",["module"],function(e){e.exports="\r\n"}),define("text!chat/chat-direct.html",["module"],function(e){e.exports='\r\n'}),define("text!common.css",["module"],function(e){e.exports="code.nx {\n background-color: #F8F8F8;\n border: 1px solid #EAEAEA;\n border-radius: 3px 3px 3px 3px;\n margin: 0 2px;\n padding: 0 5px;\n white-space: nowrap;\n}\n.markdown-body .pre-code-wrapper {\n position: relative;\n}\n.markdown-body .pre-code-wrapper > i.copy.icon {\n display: none;\n position: absolute;\n top: 0;\n right: 0;\n cursor: pointer;\n}\n.markdown-body .pre-code-wrapper:hover > i.copy.icon {\n display: block;\n}\n.tms-disabled {\n cursor: default;\n opacity: .45!important;\n background-image: none!important;\n box-shadow: none!important;\n pointer-events: none!important;\n}\n.tms-hidden {\n display: none!important;\n}\n.animated {\n -webkit-animation-duration: 1s;\n animation-duration: 1s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n@keyframes flip {\n from {\n -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -360deg);\n transform: perspective(400px) rotate3d(0, 1, 0, -360deg);\n -webkit-animation-timing-function: ease-out;\n animation-timing-function: ease-out;\n }\n 40% {\n -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n -webkit-animation-timing-function: ease-out;\n animation-timing-function: ease-out;\n }\n 50% {\n -webkit-transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n -webkit-animation-timing-function: ease-in;\n animation-timing-function: ease-in;\n }\n 80% {\n -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95);\n transform: perspective(400px) scale3d(0.95, 0.95, 0.95);\n -webkit-animation-timing-function: ease-in;\n animation-timing-function: ease-in;\n }\n to {\n -webkit-transform: perspective(400px);\n transform: perspective(400px);\n -webkit-animation-timing-function: ease-in;\n animation-timing-function: ease-in;\n }\n}\n.animated.flip {\n -webkit-backface-visibility: visible;\n backface-visibility: visible;\n -webkit-animation-name: flip;\n animation-name: flip;\n}\n.cbutton {\n position: relative;\n}\n.cbutton::after {\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -7px 0 0 -7px;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n content: '';\n opacity: 0;\n pointer-events: none;\n}\n/* Novak */\n.cbutton--effect-novak::after {\n background: rgba(111, 148, 182, 0.25);\n}\n.cbutton--effect-novak.cbutton--click::after {\n -webkit-animation: anim-effect-novak 0.5s forwards;\n animation: anim-effect-novak 0.5s forwards;\n}\n@-webkit-keyframes anim-effect-novak {\n 0% {\n opacity: 1;\n -webkit-transform: scale3d(0.1, 0.1, 1);\n transform: scale3d(0.1, 0.1, 1);\n }\n 100% {\n opacity: 0;\n -webkit-transform: scale3d(8, 8, 1);\n transform: scale3d(30, 30, 1);\n }\n}\n@keyframes anim-effect-novak {\n 0% {\n opacity: 1;\n -webkit-transform: scale3d(0.1, 0.1, 1);\n transform: scale3d(0.1, 0.1, 1);\n }\n 100% {\n opacity: 0;\n -webkit-transform: scale3d(8, 8, 1);\n transform: scale3d(30, 30, 1);\n }\n}\n.emoji {\n width: 1.5em;\n height: 1.5em;\n display: inline-block;\n margin-bottom: -0.25em;\n background-size: contain;\n}\na.btn-delete {\n cursor: pointer;\n color: red;\n}\n"; +}),define("text!test/test-lifecycle.html",["module"],function(e){e.exports='\r\n'}),define("text!override.css",["module"],function(e){e.exports=".ui.dimmer {\n background-color: rgba(0, 0, 0, 0.5) !important;\n}\n.ui.dimmer.page.modals {\n z-index: 10000;\n}\n.ui.modal > .actions > .ui.left.floated.button {\n margin-left: 3.5px;\n}\n.ui.list .list .item {\n display: list-item !important;\n table-layout: fixed;\n height: auto!important;\n visibility: visible!important;\n}\n.ui.list .list .item:after {\n content: '';\n display: block;\n height: 0;\n clear: both;\n visibility: hidden;\n}\n#swipebox-bottom-bar,\n#swipebox-top-bar {\n background: rgba(0, 0, 0, 0.3) !important;\n}\n"}),define("text!variables.css",["module"],function(e){e.exports=""}),define("text!user/user-login.html",["module"],function(e){e.exports='\r\n'}),define("text!blog/blog.css",["module"],function(e){e.exports=""}),define("text!user/user-pwd-reset.html",["module"],function(e){e.exports='\r\n'}),define("text!user/user-register.html",["module"],function(e){e.exports='\r\n'}),define("text!chat/chat-direct.css",["module"],function(e){e.exports=".tms-chat-direct {\n height: 100%;\n}\n.tms-chat-direct .ui.comments {\n min-height: calc(100% - 170px);\n}\n.tms-chat-direct .ui.comments > .comment > .content {\n display: block!important;\n}\n.tms-chat-direct .tms-edit-textarea {\n width: 100%;\n}\n.tms-chat-direct .ui.selection.list > .item {\n cursor: default;\n}\n.tms-chat-direct .ui.search .prompt {\n border-radius: .28571429rem;\n}\n.tms-chat-direct .tms-content {\n position: relative;\n margin-left: 220px;\n top: 60px;\n height: calc(100% - 60px);\n}\n.tms-chat-direct .tms-content.tms-sidebar-show .tms-right-sidebar {\n width: 388px;\n border-left: 1px #e9e9e9 solid;\n -webkit-transition: width 0.15s ease-out 0s;\n transition: width 0.15s ease-out 0s;\n margin: 4px;\n margin-right: 0;\n}\n@media only screen and (max-width: 767px) {\n .tms-chat-direct .tms-content {\n margin-left: 0;\n }\n}\n.tms-chat-direct .tms-content .tms-content-body {\n width: 100%;\n height: 100%;\n max-width: 100%;\n padding-bottom: 73px;\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-comments-container {\n width: 100%;\n height: 100%;\n overflow: auto;\n}\n.tms-chat-direct .tms-content .tms-content-body .ui.comments {\n overflow: hidden;\n max-width: none;\n margin-bottom: 12px;\n margin-top: 10px;\n}\n.tms-chat-direct .tms-content .tms-content-body .ui.comments > .ui.basic.button {\n display: block;\n margin-right: 0;\n}\n.tms-chat-direct .tms-content .tms-content-body .ui.comments .tms-pre-more {\n margin-bottom: 10px;\n}\n.tms-chat-direct .tms-content .tms-content-body .ui.comments .tms-next-more {\n margin-top: 10px;\n position: relative;\n}\n.tms-chat-direct .tms-content .tms-content-body .ui.comments .tms-next-more .ui.icon.button {\n position: absolute;\n top: 2px;\n right: -1px;\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-go {\n position: fixed;\n left: 240px;\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-go .ui.button {\n margin: 0;\n background-color: rgba(224, 225, 226, 0.5);\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-go .ui.button:hover {\n background-color: #CACBCD;\n}\n@media only screen and (max-width: 767px) {\n .tms-chat-direct .tms-content .tms-content-body .tms-go {\n left: 20px;\n }\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-go-head {\n top: 80px;\n}\n.tms-chat-direct .tms-content .tms-content-body .tms-go-foot {\n bottom: 90px;\n}\n.tms-chat-direct .tms-right-sidebar {\n position: absolute;\n top: 0;\n right: 0;\n width: 0;\n bottom: 0;\n overflow: hidden;\n padding-top: 10px;\n padding-bottom: 10px;\n}\n.tms-chat-direct .tms-right-sidebar .comments .ui.button.tms-search-more {\n display: block;\n margin: 0;\n}\n.tms-chat-direct .tms-right-sidebar .comments .comment .markdown-body {\n max-height: 65px;\n overflow-y: hidden;\n}\n.tms-chat-direct .tms-right-sidebar .comments .comment .markdown-body.tms-open {\n max-height: none;\n overflow-y: auto;\n padding-bottom: 20px;\n}\n.tms-chat-direct .tms-right-sidebar .comments .comment .tms-btn-open-search-item {\n display: none;\n height: 25px;\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n text-align: center;\n padding-top: 2px;\n background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0, #bbbbbb 100%);\n background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0, #bbbbbb 100%);\n background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0) 0, #bbbbbb 100%);\n background-image: linear-gradient(top, rgba(255, 255, 255, 0) 0, #bbbbbb 100%);\n}\n.tms-chat-direct .tms-right-sidebar .comments .comment:hover .tms-btn-open-search-item {\n display: block;\n}\n@media only screen and (max-width: 767px) {\n .tms-chat-direct .tms-content > .ui.dimmer {\n display: block;\n opacity: 1;\n z-index: 1;\n }\n .tms-chat-direct.hide-bar .tms-content > .ui.dimmer {\n display: none;\n }\n .tms-chat-direct .tms-left-sidebar.hide-bar {\n left: -220px;\n }\n .tms-chat-direct .tms-right-sidebar {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 59px;\n background-color: white;\n margin-left: 0!important;\n }\n .tms-chat-direct .tms-right-sidebar .panel-chat-msg .ui.basic.segment.minimal.selection.list.segment.comments {\n padding-left: 0;\n padding-right: 0;\n }\n .tms-chat-direct .tms-sidebar-show .tms-right-sidebar {\n width: 100%!important;\n }\n}\n.tms-chat-direct .tms-edit-actions .left.button {\n border-top-left-radius: 0;\n}\n.tms-chat-direct .tms-edit-actions .right.button {\n border-top-right-radius: 0;\n}\n.tms-chat-progress {\n position: absolute;\n display: inline-block;\n top: 60px;\n left: 0;\n width: 0;\n height: 2px;\n margin-left: 220px;\n background-color: #c6c6c6;\n box-shadow: 0px 0px 8px 0px #c6c6c6;\n}\n@media only screen and (max-width: 767px) {\n .tms-chat-progress {\n margin-left: 0;\n }\n}\n"}),define("text!resources/elements/em-blog-comment-popup.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-comment-share.html",["module"],function(e){e.exports=' \r\n'}),define("text!chat/md-github.css",["module"],function(e){e.exports='.markdown-body {\n font-size: 14px;\n line-height: 1.6;\n}\n.markdown-body > br,\n.markdown-body ul br .markdown-body ol br {\n display: none;\n}\n.markdown-body > *:first-child {\n margin-top: 0 !important;\n}\n.markdown-body > *:last-child {\n margin-bottom: 0 !important;\n}\n.markdown-body a {\n word-break: break-all;\n}\n.markdown-body a.absent {\n color: #CC0000;\n}\n.markdown-body a.anchor {\n bottom: 0;\n cursor: pointer;\n display: block;\n left: 0;\n margin-left: -30px;\n padding-left: 30px;\n position: absolute;\n top: 0;\n}\n.markdown-body h1,\n.markdown-body h2,\n.markdown-body h3,\n.markdown-body h4,\n.markdown-body h5,\n.markdown-body h6 {\n cursor: text;\n font-weight: bold;\n margin: 20px 0 10px;\n padding: 0;\n position: relative;\n word-break: break-all;\n}\n.markdown-body h1 .mini-icon-link,\n.markdown-body h2 .mini-icon-link,\n.markdown-body h3 .mini-icon-link,\n.markdown-body h4 .mini-icon-link,\n.markdown-body h5 .mini-icon-link,\n.markdown-body h6 .mini-icon-link {\n color: #000000;\n display: none;\n}\n.markdown-body h1:hover a.anchor,\n.markdown-body h2:hover a.anchor,\n.markdown-body h3:hover a.anchor,\n.markdown-body h4:hover a.anchor,\n.markdown-body h5:hover a.anchor,\n.markdown-body h6:hover a.anchor {\n line-height: 1;\n margin-left: -22px;\n padding-left: 0;\n text-decoration: none;\n top: 15%;\n}\n.markdown-body h1:hover a.anchor .mini-icon-link,\n.markdown-body h2:hover a.anchor .mini-icon-link,\n.markdown-body h3:hover a.anchor .mini-icon-link,\n.markdown-body h4:hover a.anchor .mini-icon-link,\n.markdown-body h5:hover a.anchor .mini-icon-link,\n.markdown-body h6:hover a.anchor .mini-icon-link {\n display: inline-block;\n}\n.markdown-body h1 tt,\n.markdown-body h1 code,\n.markdown-body h2 tt,\n.markdown-body h2 code,\n.markdown-body h3 tt,\n.markdown-body h3 code,\n.markdown-body h4 tt,\n.markdown-body h4 code,\n.markdown-body h5 tt,\n.markdown-body h5 code,\n.markdown-body h6 tt,\n.markdown-body h6 code {\n font-size: inherit;\n}\n.markdown-body h1 {\n color: #000000;\n font-size: 28px;\n}\n.markdown-body h2 {\n border-bottom: 1px solid #CCCCCC;\n color: #000000;\n font-size: 24px;\n}\n.markdown-body h3 {\n font-size: 18px;\n}\n.markdown-body h4 {\n font-size: 16px;\n}\n.markdown-body h5 {\n font-size: 14px;\n}\n.markdown-body h6 {\n color: #777777;\n font-size: 14px;\n}\n.markdown-body p,\n.markdown-body blockquote,\n.markdown-body ul,\n.markdown-body ol,\n.markdown-body dl,\n.markdown-body table,\n.markdown-body pre {\n margin: 15px 0;\n}\n.markdown-body hr {\n overflow: hidden;\n background: 0 0;\n}\n.markdown-body hr:before {\n display: table;\n content: "";\n}\n.markdown-body hr:after {\n display: table;\n clear: both;\n content: "";\n}\n.markdown-body hr {\n height: 4px;\n padding: 0;\n margin: 16px 0;\n background-color: #e7e7e7;\n border: 0;\n}\n.markdown-body hr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n.markdown-body > h2:first-child,\n.markdown-body > h1:first-child,\n.markdown-body > h1:first-child + h2,\n.markdown-body > h3:first-child,\n.markdown-body > h4:first-child,\n.markdown-body > h5:first-child,\n.markdown-body > h6:first-child {\n margin-top: 0;\n padding-top: 0;\n}\n.markdown-body a:first-child h1,\n.markdown-body a:first-child h2,\n.markdown-body a:first-child h3,\n.markdown-body a:first-child h4,\n.markdown-body a:first-child h5,\n.markdown-body a:first-child h6 {\n margin-top: 0;\n padding-top: 0;\n}\n.markdown-body h1 + p,\n.markdown-body h2 + p,\n.markdown-body h3 + p,\n.markdown-body h4 + p,\n.markdown-body h5 + p,\n.markdown-body h6 + p {\n margin-top: 0;\n}\n.markdown-body li p.first {\n display: inline-block;\n}\n.markdown-body ul,\n.markdown-body ol {\n padding-left: 30px;\n}\n.markdown-body ul.no-list,\n.markdown-body ol.no-list {\n list-style-type: none;\n padding: 0;\n}\n.markdown-body ul li > *:first-child,\n.markdown-body ol li > *:first-child {\n margin-top: 0;\n}\n.markdown-body ul ul,\n.markdown-body ul ol,\n.markdown-body ol ol,\n.markdown-body ol ul {\n margin-bottom: 0;\n}\n.markdown-body dl {\n padding: 0;\n}\n.markdown-body dl dt {\n font-size: 14px;\n font-style: italic;\n font-weight: bold;\n margin: 15px 0 5px;\n padding: 0;\n}\n.markdown-body dl dt:first-child {\n padding: 0;\n}\n.markdown-body dl dt > *:first-child {\n margin-top: 0;\n}\n.markdown-body dl dt > *:last-child {\n margin-bottom: 0;\n}\n.markdown-body dl dd {\n margin: 0 0 15px;\n padding: 0 15px;\n}\n.markdown-body dl dd > *:first-child {\n margin-top: 0;\n}\n.markdown-body dl dd > *:last-child {\n margin-bottom: 0;\n}\n.markdown-body blockquote {\n border-left: 4px solid #DDDDDD;\n color: #777777;\n padding: 0 15px;\n}\n.markdown-body blockquote > *:first-child {\n margin-top: 0;\n}\n.markdown-body blockquote > *:last-child {\n margin-bottom: 0;\n}\n.markdown-body table th {\n font-weight: bold;\n}\n.markdown-body table th,\n.markdown-body table td {\n border: 1px solid #CCCCCC;\n padding: 6px 13px;\n}\n.markdown-body table tr {\n background-color: #FFFFFF;\n border-top: 1px solid #CCCCCC;\n}\n.markdown-body table tr:nth-child(2n) {\n background-color: #F8F8F8;\n}\n.markdown-body img {\n max-width: 100%;\n}\n.markdown-body span.frame {\n display: block;\n overflow: hidden;\n}\n.markdown-body span.frame > span {\n border: 1px solid #DDDDDD;\n display: block;\n float: left;\n margin: 13px 0 0;\n overflow: hidden;\n padding: 7px;\n width: auto;\n}\n.markdown-body span.frame span img {\n display: block;\n float: left;\n}\n.markdown-body span.frame span span {\n clear: both;\n color: #333333;\n display: block;\n padding: 5px 0 0;\n}\n.markdown-body span.align-center {\n clear: both;\n display: block;\n overflow: hidden;\n}\n.markdown-body span.align-center > span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: center;\n}\n.markdown-body span.align-center span img {\n margin: 0 auto;\n text-align: center;\n}\n.markdown-body span.align-right {\n clear: both;\n display: block;\n overflow: hidden;\n}\n.markdown-body span.align-right > span {\n display: block;\n margin: 13px 0 0;\n overflow: hidden;\n text-align: right;\n}\n.markdown-body span.align-right span img {\n margin: 0;\n text-align: right;\n}\n.markdown-body span.float-left {\n display: block;\n float: left;\n margin-right: 13px;\n overflow: hidden;\n}\n.markdown-body span.float-left span {\n margin: 13px 0 0;\n}\n.markdown-body span.float-right {\n display: block;\n float: right;\n margin-left: 13px;\n overflow: hidden;\n}\n.markdown-body span.float-right > span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: right;\n}\n.markdown-body code,\n.markdown-body tt {\n background-color: #F8F8F8;\n border: 1px solid #EAEAEA;\n border-radius: 3px 3px 3px 3px;\n margin: 0 2px;\n padding: 0 5px;\n /* white-space: nowrap; */\n white-space: normal;\n word-break: break-all;\n}\n.markdown-body pre > code {\n background: none repeat scroll 0 0 transparent;\n border: medium none;\n margin: 0;\n padding: 0;\n white-space: pre;\n}\n.markdown-body .highlight pre,\n.markdown-body pre {\n background-color: #F8F8F8;\n border: 1px solid #CCCCCC;\n border-radius: 3px 3px 3px 3px;\n font-size: 13px;\n line-height: 19px;\n overflow: auto;\n padding: 6px 10px;\n}\n.markdown-body pre code,\n.markdown-body pre tt {\n background-color: transparent;\n border: medium none;\n}\n'}),define("text!resources/elements/em-blog-comment.html",["module"],function(e){e.exports='\r\n'}),define("text!common/common-scrollbar.css",["module"],function(e){e.exports='/*************** SCROLLBAR BASE CSS ***************/\n.scroll-wrapper {\n overflow: hidden !important;\n padding: 0 !important;\n position: relative;\n width: 100%;\n height: 100%;\n}\n.scroll-wrapper > .scroll-content {\n border: none !important;\n box-sizing: content-box !important;\n height: auto;\n left: 0;\n margin: 0;\n max-height: none;\n max-width: none !important;\n overflow: scroll !important;\n padding: 0;\n position: relative !important;\n top: 0;\n width: auto !important;\n}\n.scroll-wrapper > .scroll-content::-webkit-scrollbar {\n height: 0;\n width: 0;\n}\n.scroll-element {\n display: none;\n}\n.scroll-element,\n.scroll-element div {\n box-sizing: content-box;\n}\n.scroll-element.scroll-x.scroll-scrollx_visible,\n.scroll-element.scroll-y.scroll-scrolly_visible {\n display: block;\n}\n.scroll-element .scroll-bar,\n.scroll-element .scroll-arrow {\n cursor: default;\n}\n.scroll-textarea {\n border: 1px solid #cccccc;\n border-top-color: #999999;\n}\n.scroll-textarea > .scroll-content {\n overflow: hidden !important;\n}\n.scroll-textarea > .scroll-content > textarea {\n border: none !important;\n box-sizing: border-box;\n height: 100% !important;\n margin: 0;\n max-height: none !important;\n max-width: none !important;\n overflow: scroll !important;\n outline: none;\n padding: 2px;\n position: relative !important;\n top: 0;\n width: 100% !important;\n}\n.scroll-textarea > .scroll-content > textarea::-webkit-scrollbar {\n height: 0;\n width: 0;\n}\n/*************** SIMPLE OUTER SCROLLBAR ***************/\n.scrollbar-outer > .scroll-element,\n.scrollbar-outer > .scroll-element div {\n border: none;\n margin: 0;\n padding: 0;\n position: absolute;\n z-index: 10;\n}\n.scrollbar-outer > .scroll-element {\n background-color: #ffffff;\n}\n.scrollbar-outer > .scroll-element div {\n display: block;\n height: 100%;\n left: 0;\n top: 0;\n width: 100%;\n}\n.scrollbar-outer > .scroll-element.scroll-x {\n bottom: 0;\n height: 12px;\n left: 0;\n width: 100%;\n}\n.scrollbar-outer > .scroll-element.scroll-y {\n height: 100%;\n right: 0;\n top: 0;\n width: 12px;\n}\n.scrollbar-outer > .scroll-element.scroll-x .scroll-element_outer {\n height: 8px;\n top: 2px;\n}\n.scrollbar-outer > .scroll-element.scroll-y .scroll-element_outer {\n left: 2px;\n width: 8px;\n}\n.scrollbar-outer > .scroll-element .scroll-element_outer {\n overflow: hidden;\n}\n.scrollbar-outer > .scroll-element .scroll-element_track {\n background-color: #eeeeee;\n}\n.scrollbar-outer > .scroll-element .scroll-element_outer,\n.scrollbar-outer > .scroll-element .scroll-element_track,\n.scrollbar-outer > .scroll-element .scroll-bar {\n -webkit-border-radius: 8px;\n -moz-border-radius: 8px;\n border-radius: 8px;\n}\n.scrollbar-outer > .scroll-element .scroll-bar {\n background-color: #d9d9d9;\n}\n.scrollbar-outer > .scroll-element .scroll-bar:hover {\n background-color: #c2c2c2;\n}\n.scrollbar-outer > .scroll-element.scroll-draggable .scroll-bar {\n background-color: #919191;\n}\n/* scrollbar height/width & offset from container borders */\n.scrollbar-outer > .scroll-content.scroll-scrolly_visible {\n left: -12px;\n margin-left: 12px;\n}\n.scrollbar-outer > .scroll-content.scroll-scrollx_visible {\n top: -12px;\n margin-top: 12px;\n}\n.scrollbar-outer > .scroll-element.scroll-x .scroll-bar {\n min-width: 10px;\n}\n.scrollbar-outer > .scroll-element.scroll-y .scroll-bar {\n min-height: 10px;\n}\n/* update scrollbar offset if both scrolls are visible */\n.scrollbar-outer > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_track {\n left: -14px;\n}\n.scrollbar-outer > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_track {\n top: -14px;\n}\n.scrollbar-outer > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size {\n left: -14px;\n}\n.scrollbar-outer > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size {\n top: -14px;\n}\n/*************** SCROLLBAR MAC OS X ***************/\n.scrollbar-macosx > .scroll-element,\n.scrollbar-macosx > .scroll-element div {\n background: none;\n border: none;\n margin: 0;\n padding: 0;\n position: absolute;\n z-index: 10;\n}\n.scrollbar-macosx > .scroll-element div {\n display: block;\n height: 100%;\n left: 0;\n top: 0;\n width: 100%;\n}\n.scrollbar-macosx > .scroll-element .scroll-element_track {\n display: none;\n}\n.scrollbar-macosx > .scroll-element .scroll-bar {\n background-color: #6C6E71;\n display: block;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n opacity: 0;\n -webkit-border-radius: 7px;\n -moz-border-radius: 7px;\n border-radius: 7px;\n -webkit-transition: opacity 0.2s linear;\n -moz-transition: opacity 0.2s linear;\n -o-transition: opacity 0.2s linear;\n -ms-transition: opacity 0.2s linear;\n transition: opacity 0.2s linear;\n}\n.scrollbar-macosx:hover > .scroll-element .scroll-bar,\n.scrollbar-macosx > .scroll-element.scroll-draggable .scroll-bar {\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";\n filter: alpha(opacity=70);\n opacity: 0.7;\n}\n.scrollbar-macosx > .scroll-element.scroll-x {\n bottom: 0px;\n height: 0px;\n left: 0;\n min-width: 100%;\n overflow: visible;\n width: 100%;\n}\n.scrollbar-macosx > .scroll-element.scroll-y {\n height: 100%;\n min-height: 100%;\n right: 0px;\n top: 0;\n width: 0px;\n}\n/* scrollbar height/width & offset from container borders */\n.scrollbar-macosx > .scroll-element.scroll-x .scroll-bar {\n height: 7px;\n min-width: 10px;\n top: -9px;\n}\n.scrollbar-macosx > .scroll-element.scroll-y .scroll-bar {\n left: -9px;\n min-height: 10px;\n width: 7px;\n}\n.scrollbar-macosx > .scroll-element.scroll-x .scroll-element_outer {\n left: 2px;\n}\n.scrollbar-macosx > .scroll-element.scroll-x .scroll-element_size {\n left: -4px;\n}\n.scrollbar-macosx > .scroll-element.scroll-y .scroll-element_outer {\n top: 2px;\n}\n.scrollbar-macosx > .scroll-element.scroll-y .scroll-element_size {\n top: -4px;\n}\n/* update scrollbar offset if both scrolls are visible */\n.scrollbar-macosx > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size {\n left: -11px;\n}\n.scrollbar-macosx > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size {\n top: -11px;\n}\n'; +}),define("text!resources/elements/em-blog-content.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-history-diff.html",["module"],function(e){e.exports='\r\n'}),define("text!user/user-login.css",["module"],function(e){e.exports=".tms-user-login {\n width: 100%;\n min-height: 100%;\n background-color: #5a3636;\n overflow: hidden;\n}\n.tms-user-login .container {\n width: 300px;\n top: 50px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n}\n.tms-user-login h2 {\n color: rgba(197, 164, 164, 0.8) !important;\n}\n.tms-user-login .ui.form {\n background-color: #353131;\n}\n.tms-user-login .ui.error.message {\n background-color: #5a3636;\n}\n.tms-user-login .ui.error.message .header {\n color: #e0b4b4;\n}\n.tms-user-login .ui.checkbox label {\n color: #ad8b8b;\n}\n.tms-user-login .ui.checkbox input:focus ~ label {\n color: #ad8b8b;\n}\n.tms-user-login .ui.checkbox label:hover {\n color: #ad8b8b;\n}\n.tms-user-login .ui.button {\n background-color: #5a3636;\n color: #ad8b75;\n}\n"}),define("text!user/user-pwd-reset.css",["module"],function(e){e.exports=".tms-user-pwd-reset {\n height: 100%;\n}\n.tms-user-pwd-reset .tms-flex {\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n"}),define("text!user/user-register.css",["module"],function(e){e.exports=".tms-user-register {\n height: 100%;\n}\n.tms-user-register .tms-flex {\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n"}),define("text!resources/elements/em-blog-comment-popup.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-blog-history-view.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-history.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-comment-share.css",["module"],function(e){e.exports=".em-blog-comment-share.ui.popup {\n max-width: 100%;\n width: 255px;\n}\n.em-blog-comment-share.ui.popup .ui.input {\n width: 225px;\n}\n.em-blog-comment-share.ui.popup textarea {\n /* width: 195px!important; */\n}\n.em-blog-comment-share.ui.popup .ui.search > .results .result {\n cursor: pointer!important;\n display: block!important;\n color: rgba(0, 0, 0, 0.87) !important;\n border-bottom: 1px solid rgba(34, 36, 38, 0.1) !important;\n margin: 0!important;\n}\n.em-blog-comment-share.ui.popup .ui.list > .item {\n color: rgba(0, 0, 0, 0.87);\n}\n.em-blog-comment-share:after {\n content: '';\n clear: both;\n}\n.em-blog-comment-share .footer {\n margin-top: 16px;\n}\n.em-blog-comment-share .footer .btn-cancel {\n float: right;\n margin: 6px 0 0 8px!important;\n}\n"}),define("text!resources/elements/em-blog-left-sidebar.html",["module"],function(e){e.exports='\r\n'; +}),define("text!resources/elements/em-blog-comment.css",["module"],function(e){e.exports='.em-blog-comment {\n margin-top: 32px;\n margin-bottom: 32px;\n}\n.em-blog-comment .ui.comments {\n max-width: 100%;\n}\n.em-blog-comment .ui.comments > .ui.dividing.header {\n margin-bottom: 0;\n}\n.em-blog-comment .ui.comments .comment {\n margin-top: 0;\n}\n.em-blog-comment .ui.comments .comment:hover {\n background: rgba(0, 0, 0, 0.03);\n color: rgba(0, 0, 0, 0.8);\n}\n.em-blog-comment .ui.comments .comment:hover .content .tools {\n display: block;\n}\n.em-blog-comment .ui.comments .comment:hover:before {\n width: 4px;\n}\n.em-blog-comment .ui.comments .comment > .ui.divider {\n margin-bottom: 0;\n}\n@media only screen and (min-width: 768px) {\n .em-blog-comment .ui.comments .comment .content .markdown-body img {\n max-width: 360px;\n max-height: 360px;\n }\n}\n.em-blog-comment .ui.comments .comment .content .markdown-body span[class="at-user"] {\n cursor: pointer;\n}\n.em-blog-comment .ui.comments .comment .content .tms-blog-comment-edit-textarea {\n width: 100%;\n}\n.em-blog-comment .ui.comments .comment .content .textcomplete-container {\n position: relative;\n}\n.em-blog-comment .ui.comments .comment .content .textcomplete-container .append-to {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n}\n.em-blog-comment .ui.comments .comment .content > .tools {\n position: absolute;\n right: 0;\n bottom: 0;\n display: none;\n}\n.em-blog-comment .ui.comments .comment .content > .tools > .ui.button {\n margin: 0;\n background-color: rgba(224, 225, 226, 0.5);\n}\n.em-blog-comment .ui.comments .comment .content > .tools > .ui.button:hover {\n background-color: #e0e1e2;\n}\n.em-blog-comment .ui.comments .comment.active {\n background-color: #f5f5f5;\n}\n.em-blog-comment .ui.comments .comment.active:before {\n width: 4px;\n}\n.em-blog-comment .ui.comments .comment:before {\n content: "";\n position: absolute;\n z-index: -1;\n top: -2px;\n left: -4px;\n bottom: 1px;\n background: #2098D1;\n width: 0;\n -webkit-transition-property: width;\n transition-property: width;\n -webkit-transition-duration: 0.3s;\n transition-duration: 0.3s;\n -webkit-transition-timing-function: ease-out;\n transition-timing-function: ease-out;\n}\n.em-blog-comment .ui.comments .comment:nth-child(2):before {\n top: -1px;\n}\n.em-blog-comment .CodeMirror {\n min-height: 60px;\n}\n.em-blog-comment .CodeMirror-scroll {\n min-height: 60px;\n}\n.em-blog-comment .dropzone {\n position: relative;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper {\n position: relative;\n width: 100%;\n height: 0;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper .tms-blog-comment-status-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper .dropzone-previews {\n position: absolute;\n left: 0;\n bottom: -7px;\n width: 100%;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper .dropzone-previews .dz-preview {\n width: 100%;\n margin: 0;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper .dropzone-previews .dz-preview .dz-progress {\n height: 2px;\n background-color: #aaa;\n border: none;\n}\n.em-blog-comment .dropzone .tms-blog-comment-status-bar-wrapper .dropzone-previews .dz-preview .dz-remove {\n display: none;\n}\n'}),define("text!resources/elements/em-blog-right-sidebar.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-save.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-content.css",["module"],function(e){e.exports=".em-blog-content {\n transition: width 0.15s ease-out 0s;\n position: fixed;\n top: 55px;\n left: 300px;\n width: calc(100% - 300px) !important;\n height: calc(100% - 55px) !important;\n padding: 16px;\n overflow: auto;\n}\n.right-sidebar-show .em-blog-content {\n width: calc(100% - 600px) !important;\n}\n@media only screen and (max-width: 767px) {\n .right-sidebar-show .em-blog-content {\n width: 100%!important;\n }\n}\n@media only screen and (max-width: 767px) {\n .em-blog-content {\n left: 0;\n width: 100%!important;\n }\n}\n.em-blog-content > .header {\n margin-bottom: 24px;\n}\n.em-blog-content > .header .ui.header .sub.header {\n color: #707070;\n font-size: 12px;\n margin-top: 8px;\n}\n.em-blog-content > .header .ui.header .sub.header a.author {\n cursor: pointer;\n}\n.em-blog-content > .header .ui.header .sub.header .readCnt {\n cursor: pointer;\n margin-left: 16px;\n}\n.em-blog-content > .header .ui.header .sub.header .readCnt a {\n cursor: pointer;\n}\n.em-blog-content > .header .ui.header .sub.header .commentCnt {\n cursor: pointer;\n margin-left: 16px;\n}\n.em-blog-content > .header .ui.header .sub.header .commentCnt a {\n cursor: pointer;\n}\n.em-blog-content .topbar {\n position: relative;\n height: 30px;\n margin-bottom: 8px;\n}\n.em-blog-content .topbar > .ui.breadcrumb {\n line-height: 30px;\n}\n.em-blog-content .topbar:after {\n content: '';\n clear: both;\n}\n.em-blog-content .topbar .actions {\n float: right;\n}\n.em-blog-content .topbar .actions > .ui.basic.button {\n padding: 8px;\n box-shadow: none;\n}\n.em-blog-content .topbar .actions > .ui.basic.button:hover {\n box-shadow: 0 0 0 1px rgba(34, 36, 38, 0.35) inset, 0 0 0 0 rgba(34, 36, 38, 0.15) inset;\n}\n.em-blog-content .topbar .actions > .ui.basic.button > i.icon {\n margin-right: 2px;\n}\n.em-blog-content .topbar .actions > .ui.basic.button > i.icon.hide {\n position: relative;\n top: -1px;\n}\n.em-blog-content .topbar .actions > .ui.basic.button > i.icon.unhide {\n position: relative;\n top: -1px;\n}\n.em-blog-content > .ui.message .content > span {\n display: inline-block;\n margin-top: 10px;\n}\n.em-blog-content > .ui.message .content .ui.button {\n position: relative;\n top: -5px;\n left: 10px;\n}\n.em-blog-content .footer {\n margin-top: 16px;\n}\n.em-blog-content .footer > span {\n font-size: 12px;\n}\n.em-blog-content .footer .rate {\n margin-right: 16px;\n cursor: pointer;\n color: #4183c4;\n}\n.em-blog-content .footer > .tags {\n float: right;\n}\n.em-blog-content .footer > .tags .ui.selection.dropdown {\n border: none;\n}\n.em-blog-content .footer > .tags .ui.selection.dropdown:hover {\n box-shadow: 0 0px 1px 0px #2185d0;\n}\n.em-blog-content .footer:after {\n content: '';\n clear: both;\n display: block;\n}\n.em-blog-content > .ui.feed {\n margin-bottom: 25px!important;\n}\n.em-blog-content > .ui.feed > .event {\n position: relative;\n}\n.em-blog-content > .ui.feed > .event.opened > .content .extra.text:hover {\n max-height: none;\n overflow-y: auto;\n padding-bottom: 25px;\n}\n.em-blog-content > .ui.feed > .event > .label + .content {\n max-width: calc(100% - 50px);\n}\n.em-blog-content > .ui.feed > .event > .content .extra.text {\n position: relative;\n max-width: none;\n min-height: 25px;\n max-height: 60px;\n overflow-y: hidden;\n}\n.em-blog-content > .ui.feed > .event > .content .extra.text:hover > .btn-open {\n display: block;\n}\n.em-blog-content > .ui.feed > .event > .content .extra.text > .btn-open {\n display: none;\n height: 25px;\n background-color: rgba(0, 0, 0, 0.1);\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n text-align: center;\n padding-top: 2px;\n}\n.em-blog-content > .ui.feed > .event > .content .extra.text pre {\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n word-break: break-all;\n}\n.em-blog-content > .ui.feed > .event.active {\n background: rgba(0, 0, 0, 0.03);\n}\n.em-blog-content > .ui.feed > .event.active:before {\n width: 4px;\n}\n.em-blog-content > .ui.feed > .event:hover {\n background: rgba(0, 0, 0, 0.03);\n}\n.em-blog-content > .ui.feed > .event:hover:before {\n width: 4px;\n}\n.em-blog-content > .ui.feed > .event:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: -4px;\n bottom: 0;\n background: #2098D1;\n width: 0;\n -webkit-transition-property: width;\n transition-property: width;\n -webkit-transition-duration: 0.3s;\n transition-duration: 0.3s;\n -webkit-transition-timing-function: ease-out;\n transition-timing-function: ease-out;\n}\n.em-blog-content .markdown-body span[class=\"at-user\"] {\n cursor: pointer;\n}\n.tms-blog-progress {\n position: absolute;\n display: inline-block;\n top: 55px;\n left: 0;\n width: 0;\n height: 2px;\n margin-left: 300px;\n background-color: #2185d0;\n box-shadow: 0px 0px 8px 0px #205081;\n}\n@media only screen and (max-width: 767px) {\n .tms-blog-progress {\n margin-left: 0;\n }\n}\n.em-blog-content-wrapper {\n position: fixed;\n top: 55px;\n width: calc(100vw) !important;\n height: calc(100% - 55px) !important;\n}\n@media only screen and (max-width: 767px) {\n .tms-blog.left-sidebar-show .em-blog-content-wrapper > .ui.dimmer {\n display: block;\n opacity: 1;\n }\n .tms-blog.right-sidebar-show .em-blog-content-wrapper > .ui.dimmer {\n display: block;\n opacity: 1;\n }\n .tms-blog .em-blog-content-wrapper > .ui.dimmer {\n display: none;\n }\n}\n"}),define("text!resources/elements/em-blog-share.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-history-diff.css",["module"],function(e){e.exports=".em-blog-history-diff > .content {\n max-height: 300px;\n overflow-y: auto;\n}\n"}),define("text!resources/elements/em-blog-history-view.css",["module"],function(e){e.exports=".em-blog-history-view > .topbar {\n margin-bottom: 16px;\n}\n.em-blog-history-view > .content {\n max-height: 300px;\n overflow-y: auto;\n}\n"}),define("text!resources/elements/em-blog-space-auth.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-history.css",["module"],function(e){e.exports=".em-blog-history > .topbar {\n margin-bottom: 16px;\n}\n.em-blog-history > .content {\n max-height: 300px;\n overflow-y: auto;\n}\n.em-blog-history .ui.table td a {\n cursor: pointer;\n}\n"}),define("text!resources/elements/em-blog-space-create.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-space-edit.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-left-sidebar.css",["module"],function(e){e.exports=".em-blog-left-sidebar.ui.left.sidebar {\n transition: left 0.15s ease-out 0s;\n width: 300px;\n top: 55px;\n left: 0;\n height: calc(100% - 55px) !important;\n background-color: #f5f5f5;\n box-shadow: none!important;\n overflow-x: hidden;\n}\n@media only screen and (max-width: 767px) {\n .em-blog-left-sidebar.ui.left.sidebar {\n z-index: 104;\n }\n .em-blog-left-sidebar.ui.left.sidebar.mobile-hide {\n left: -300px;\n }\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body {\n height: calc(100% - 40px) !important;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list {\n padding: 16px;\n padding-left: 15px;\n margin-bottom: 0px;\n padding-bottom: 8px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item {\n position: relative;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item:hover {\n box-shadow: 0px 0px 2px -1px #5791cb;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item:hover > .actions {\n display: inline-block;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item > .icon {\n padding-right: 0;\n position: relative;\n top: -1px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item > .content {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 245px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list > .item > .actions {\n display: none;\n position: absolute;\n right: 0;\n top: -2px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list {\n padding-left: 16px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item {\n max-width: 220px;\n padding-top: 5px;\n padding-bottom: 5px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item > a {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 220px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item:before {\n color: #999;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item.active {\n font-weight: bold;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item.active > a {\n color: black;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item:hover {\n background-color: rgba(232, 224, 224, 0.5);\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.space.list .ui.bulleted.list > div.item.aurelia-hide {\n display: none!important;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space {\n padding: 20px;\n margin-top: 0px;\n padding-top: 0px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item {\n padding-top: 5px;\n padding-bottom: 5px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item > a {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 242px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item:before {\n color: #999;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item.active {\n font-weight: bold;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item.active > a {\n color: black;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-body .ui.bulleted.list.no-space > div.item:hover {\n background-color: rgba(232, 224, 224, 0.5);\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-footer {\n position: absolute;\n width: 100%;\n height: 40px;\n left: 0;\n bottom: 0;\n background-color: #efe4e4;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-footer .ui.menu {\n border: none;\n border-radius: 0;\n background-color: #e8e0e0;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-footer .ui.menu > .item.tms-search {\n position: relative;\n height: 40px;\n max-width: 207px;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-footer .ui.menu > .item.tms-search:before {\n width: 0;\n}\n.em-blog-left-sidebar.ui.left.sidebar .tms-footer .ui.menu > .item.tms-search > .remove.icon {\n position: absolute;\n right: 5px;\n top: 13px;\n}\n"}),define("text!resources/elements/em-blog-space-update.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-right-sidebar.css",["module"],function(e){e.exports=".em-blog-right-sidebar {\n width: 300px;\n background-color: #f5f5f5;\n position: fixed;\n top: 55px;\n right: -300px;\n height: calc(100% - 55px);\n transition: right 0.15s ease-out 0s;\n}\n.right-sidebar-show .em-blog-right-sidebar {\n right: 0;\n}\n.em-blog-right-sidebar .panel-blog-dir {\n padding: 16px;\n}\n.em-blog-right-sidebar .panel-blog-dir .wiki-dir-item.active {\n background-color: #e8e0e0;\n}\n"}),define("text!resources/elements/em-blog-save.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-blog-top-menu.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-share.css",["module"],function(e){e.exports=".em-blog-share.ui.popup {\n max-width: 100%;\n width: 255px;\n}\n.em-blog-share.ui.popup .ui.input {\n width: 225px;\n}\n.em-blog-share:after {\n content: '';\n clear: both;\n}\n.em-blog-share .footer {\n margin-top: 16px;\n}\n.em-blog-share .footer .btn-cancel {\n float: right;\n margin-top: 6px;\n margin-left: 8px;\n}\n"}),define("text!resources/elements/em-blog-space-auth.css",["module"],function(e){e.exports=".em-blog-space-auth > .ui.form {\n margin-bottom: 16px;\n}\n.em-blog-space-auth .tms-header {\n margin-bottom: 8px;\n}\n.em-blog-space-auth .ui.search .prompt {\n border-radius: .28571429rem;\n}\n"}),define("text!resources/elements/em-blog-write.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-space-create.css",["module"],function(e){e.exports=".em-blog-space-create.ui.popup .ui.form {\n width: 260px;\n}\n"}),define("text!resources/elements/em-blog-space-edit.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-chat-attach.html",["module"],function(e){e.exports='\r\n'; +}),define("text!resources/elements/em-blog-space-update.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-chat-channel-create.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-top-menu.css",["module"],function(e){e.exports=".em-blog-top-menu.ui.inverted.blue.menu {\n background-color: #205081;\n height: 55px;\n z-index: 103;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .item.tms-toggle {\n display: none;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .item.tms-toggle i.icon {\n margin-right: 0;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .item.tms-links i.icon {\n margin-right: 0;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .right.menu .item .ui.icon.input input {\n background-color: #103a65;\n color: white;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .right.menu .item .ui.icon.input input:focus {\n border-color: rgba(34, 36, 38, 0.15);\n box-shadow: none;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .right.menu .item .ui.icon.input i.icon.search:before {\n color: #a3aab0;\n}\n.em-blog-top-menu.ui.inverted.blue.menu .right.menu .item .ui.search > .results {\n max-height: 350px;\n overflow-y: auto;\n left: -150px;\n}\n@media only screen and (max-width: 767px) {\n .em-blog-top-menu.ui.inverted.blue.menu .item.tms-links {\n display: none;\n }\n .em-blog-top-menu.ui.inverted.blue.menu .item.tms-logo {\n display: none;\n }\n .em-blog-top-menu.ui.inverted.blue.menu .item.header {\n display: none;\n }\n .em-blog-top-menu.ui.inverted.blue.menu .item.tms-toggle {\n display: flex;\n }\n .em-blog-top-menu.ui.inverted.blue.menu .right.menu .item .ui.search .ui.input {\n width: 100px;\n }\n .em-blog-top-menu.ui.inverted.blue.menu.search-focus .tms-logo {\n display: none;\n }\n .em-blog-top-menu.ui.inverted.blue.menu.search-focus .tms-create {\n display: none;\n }\n .em-blog-top-menu.ui.inverted.blue.menu.search-focus .right.menu .item .ui.search .ui.input {\n width: initial;\n transition: width 0.15s ease-out 0s;\n }\n .em-blog-top-menu.ui.inverted.blue.menu.search-focus .right.menu .tms-login-user {\n display: none;\n }\n}\n"}),define("text!resources/elements/em-chat-channel-edit.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-blog-write.css",["module"],function(e){e.exports="@media only screen and (max-width: 827px) {\n .modaal-wrapper .modaal-close {\n top: initial!important;\n bottom: 10px;\n z-index: 2;\n }\n}\n.em-blog-write {\n margin-top: -30px;\n margin-bottom: 20px;\n}\n.em-blog-write > .wrapper {\n max-width: 768px;\n margin: auto;\n}\n.em-blog-write > .wrapper > .title {\n position: fixed;\n z-index: 2;\n margin-bottom: 8px;\n width: calc(100% - 60px);\n background-color: white;\n padding-top: 18px;\n box-shadow: 0px 1px 0px 0px #dddddd;\n}\n@media only screen and (min-width: 828px) {\n .em-blog-write > .wrapper > .title {\n width: 768px;\n }\n}\n.em-blog-write > .wrapper > .title > .ui.input {\n padding-right: 80px;\n}\n.em-blog-write > .wrapper > .title > .ui.button {\n position: absolute;\n right: 0;\n top: 15px;\n}\n.em-blog-write > .wrapper > .content {\n padding-top: 60px;\n}\n.em-blog-write > .wrapper > .content .editor-toolbar.fullscreen {\n z-index: 800;\n}\n.em-blog-write .dropzone {\n position: relative;\n}\n.em-blog-write .dropzone .dropzone-previews {\n position: absolute;\n top: 48px;\n width: 100%;\n}\n.em-blog-write .dropzone .dropzone-previews .dz-preview {\n width: 100%;\n margin: 0;\n}\n.em-blog-write .dropzone .dropzone-previews .dz-preview .dz-progress {\n height: 2px;\n background-color: #aaa;\n border: none;\n}\n.em-blog-write .dropzone .dropzone-previews .dz-preview .dz-remove {\n display: none;\n}\n.em-blog-write .tms-blog-write-status-bar-wrapper {\n position: fixed;\n z-index: 800;\n height: 0;\n top: 120px;\n width: calc(100% - 60px);\n}\n@media only screen and (min-width: 828px) {\n .em-blog-write .tms-blog-write-status-bar-wrapper {\n width: 768px;\n }\n}\n.em-blog-write .tms-blog-write-status-bar-wrapper .tms-blog-write-status-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n"}),define("text!resources/elements/em-chat-channel-join.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-attach.css",["module"],function(e){e.exports=".em-chat-attach.ui.basic.segment {\n margin-bottom: 0;\n padding-top: 0;\n}\n.em-chat-attach .ui.basic.button {\n display: block;\n margin-right: 0;\n}\n.em-chat-attach .ui.list .description {\n font-size: 12px;\n margin-top: 3px;\n}\n.em-chat-attach.ui.menu {\n margin-top: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.em-chat-attach.ui.menu > .item {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: block!important;\n text-align: center;\n}\n.em-chat-attach.tms-attach-search-input {\n padding: 0 10px;\n}\n"}),define("text!resources/elements/em-chat-channel-create.css",["module"],function(e){e.exports=".tms-em-chat-channel-create .tms-join {\n max-height: 315px;\n overflow-y: auto;\n}\n.tms-em-chat-channel-create .ui.form > .field > label {\n width: 35px!important;\n}\n"}),define("text!resources/elements/em-chat-channel-link-mgr.css",["module"],function(e){e.exports="@media only screen and (min-width: 768px) {\n .tms-em-chat-channel-link-mgr .ui.form .one.wide.field {\n padding: 0;\n }\n}\n"}),define("text!resources/elements/em-chat-channel-link-mgr.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-channel-members-mgr.css",["module"],function(e){e.exports=".tms-em-chat-channel-members-mgr .ui.dropdown span.owner + i.delete.icon {\n display: none;\n}\n.tms-em-chat-channel-members-mgr .ui.dropdown span.disabled-user {\n text-decoration: line-through;\n font-style: italic;\n}\n.tms-em-chat-channel-members-mgr .member-table {\n max-height: 315px;\n overflow-y: auto;\n}\n"}),define("text!resources/elements/em-chat-channel-members-show.css",["module"],function(e){e.exports=".em-chat-channel-members-show {\n max-height: 300px;\n overflow-y: auto;\n}\n"}),define("text!resources/elements/em-chat-channel-members-mgr.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-content-item-footbar.css",["module"],function(e){e.exports=".em-chat-content-item-footbar {\n margin-top: 8px;\n padding-top: 8px;\n padding-left: 50px;\n}\n.em-chat-content-item-footbar .add-btn {\n display: none;\n color: #586069;\n}\n.em-chat-content-item-footbar .add-btn.none {\n position: absolute;\n bottom: 0;\n}\n.em-chat-content-item-footbar .add-emoji-btn.none {\n left: 8px;\n}\n.em-chat-content-item-footbar .add-tag-btn.none {\n left: 45px;\n}\n.em-chat-content-item-footbar > .ui.label {\n cursor: pointer;\n}\n.em-chat-content-item-footbar .emoji-item {\n margin-right: 8px;\n}\n.em-chat-content-item-footbar .emoji-item img {\n cursor: pointer;\n}\n.em-chat-content-item-footbar .emoji-item:last-child {\n margin-right: 0;\n}\n.em-chat-content-item-footbar .ui.popup.tags > .content {\n width: 265px;\n}\n.em-chat-content-item-footbar .ui.popup.tags > .content > .ui.input {\n width: 20px;\n}\n.em-chat-content-item-footbar .ui.popup.tags.customTag > .content > .ui.label {\n display: none;\n}\n.em-chat-content-item-footbar .ui.popup.tags.customTag > .content > .ui.input {\n width: 265px;\n}\n"}),define("text!resources/elements/em-chat-channel-members-show.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-content-item.css",["module"],function(e){e.exports='.em-chat-content-item .textcomplete-container {\n position: relative;\n}\n.em-chat-content-item .textcomplete-container .append-to {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n}\n.ui.comments .em-chat-content-item.comment > .avatar ~ .content {\n margin-left: 3em;\n}\n.ui.comments .em-chat-content-item.comment .actions > a {\n margin-right: 5px;\n}\n.ui.comments .em-chat-content-item.comment .actions .dropdown > a .ellipsis.icon {\n margin-right: 0;\n}\n.ui.comments .em-chat-content-item.comment .actions .dropdown .item.tms-red {\n color: red;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies {\n font-size: .875em;\n display: block;\n padding: 3px;\n border: 1px transparent solid;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies:hover {\n background-color: white;\n border: 1px #e0e1e2 solid;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies:hover .timeago {\n display: none;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies:hover .view {\n display: inline;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies .reply {\n color: #2185d0;\n font-weight: 600;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies .timeago {\n margin-left: 16px;\n}\n.ui.comments .em-chat-content-item.comment .chat-topic-repies .view {\n margin-left: 16px;\n display: none;\n}\n.ui.comments .em-chat-content-item.comment:hover .tools {\n display: block;\n}\n.ui.comments .em-chat-content-item.comment:hover:before {\n width: 4px;\n}\n.ui.comments .em-chat-content-item.comment:hover .em-chat-content-item-footbar .add-btn {\n display: inline-block;\n}\n.ui.comments .em-chat-content-item.comment.active:before {\n width: 4px;\n}\n.ui.comments .em-chat-content-item.comment:before {\n content: "";\n position: absolute;\n z-index: -1;\n top: 0;\n left: 0;\n bottom: 0;\n background: #2098D1;\n width: 0;\n -webkit-transition-property: width;\n transition-property: width;\n -webkit-transition-duration: 0.3s;\n transition-duration: 0.3s;\n -webkit-transition-timing-function: ease-out;\n transition-timing-function: ease-out;\n}\n@media only screen and (max-width: 767px) {\n .em-chat-content-item > .content > .metadata > .rating {\n display: none!important;\n }\n}\n.em-chat-content-item > .content > .markdown-body span.at-user {\n cursor: pointer;\n}\n@media only screen and (min-width: 768px) {\n .em-chat-content-item > .content > .markdown-body img {\n max-width: 360px;\n max-height: 360px;\n }\n}\n.em-chat-content-item > .content > .tools {\n position: absolute;\n right: 0;\n bottom: 0;\n display: none;\n}\n.em-chat-content-item > .content > .tools > .ui.button {\n margin: 0;\n background-color: rgba(224, 225, 226, 0.5);\n}\n.em-chat-content-item > .content > .tools > .ui.button:hover {\n background-color: #e0e1e2;\n}\n'}),define("text!resources/elements/em-chat-content-item-footbar.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-input.css",["module"],function(e){e.exports='.tms-em-chat-input.ui.segment {\n margin: 0;\n position: fixed;\n bottom: 0;\n left: 220px;\n right: 0;\n background-color: white;\n padding-bottom: 22px;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-input.ui.segment {\n left: 0;\n }\n}\n.tms-em-chat-input.ui.segment .tms-chat-status-bar .dz-preview {\n display: block!important;\n width: auto!important;\n background: #e0e1e2;\n margin: 0;\n padding: 7px;\n}\n.tms-em-chat-input.ui.segment .ui[class*="left action"].input > textarea {\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n border-left-color: transparent!important;\n}\n.tms-em-chat-input.ui.segment .textareaWrapper {\n width: calc(100% - 35px);\n border: 1px solid rgba(34, 36, 38, 0.15);\n border-top-right-radius: .28571429rem;\n border-bottom-right-radius: .28571429rem;\n}\n.tms-em-chat-input.ui.segment .textareaWrapper .CodeMirror,\n.tms-em-chat-input.ui.segment .textareaWrapper .CodeMirror-scroll {\n min-height: 0;\n border: none;\n border-top-right-radius: .28571429rem;\n}\n.tms-em-chat-input.ui.segment .textareaWrapper .CodeMirror-scroll {\n max-height: 300px;\n}\n.tms-em-chat-input.ui.segment .ui.input {\n margin-right: 5px;\n}\n.tms-em-chat-input.ui.segment .ui.input i.send.icon {\n z-index: 1;\n right: 7px!important;\n}\n.tms-em-chat-input.ui.segment .ui.input textarea {\n resize: none;\n width: 100%;\n padding-right: 2.67142857em!important;\n margin: 0;\n max-width: 100%;\n outline: 0;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n text-align: left;\n display: block;\n padding: .67861429em 1em;\n background: #FFF;\n border: none;\n color: rgba(0, 0, 0, 0.87);\n box-shadow: none;\n border-top-right-radius: .28571429rem;\n border-bottom-right-radius: .28571429rem;\n}\n.tms-em-chat-input .CodeMirror-lines {\n margin-right: 30px;\n}\n.tms-em-chat-input .ui.vertical.menu.popup {\n width: 145px;\n}\n.tms-em-chat-input .ui.vertical.menu.popup a.item > i.icon {\n float: left;\n margin: 0 .35714286em 0 0;\n}\n@media only screen and (min-width: 768px) {\n .tms-chat-direct .tms-content.tms-sidebar-show .tms-em-chat-input {\n right: 392px;\n }\n}\n.textcomplete-dropdown {\n position: static!important;\n border: 1px solid #ddd;\n background-color: white;\n list-style: none;\n padding: 0;\n margin: 0;\n border-radius: 5px;\n}\n.textcomplete-dropdown li {\n /* border-top: 1px solid #ddd; */\n padding: 2px 5px;\n}\n.textcomplete-dropdown li:first-child {\n border-top: none;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n}\n.textcomplete-dropdown li:last-child {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.textcomplete-dropdown li:hover,\n.textcomplete-dropdown .active {\n background-color: #439fe0;\n}\n.textcomplete-dropdown a:hover {\n cursor: pointer;\n}\n.textcomplete-dropdown li.textcomplete-item a {\n color: black;\n}\n.textcomplete-dropdown li.textcomplete-item:hover a,\n.textcomplete-dropdown li.textcomplete-item.active a {\n color: white;\n}\n.tms-chat-input-help-meta {\n position: absolute;\n bottom: 0;\n left: 60px;\n font-size: 12px;\n color: lightgray;\n}\n'}),define("text!resources/elements/em-chat-member-popup.css",["module"],function(e){e.exports=".tms-chat-member-popup .ui.cards {\n margin-top: 0!important;\n}\n.tms-chat-member-popup .ui.cards .card {\n margin-top: 0!important;\n}\n.tms-chat-member-popup .ui.cards .card .ui.list > .item {\n border-radius: 0!important;\n}\n"}),define("text!resources/elements/em-chat-msg.css",["module"],function(e){e.exports=".em-chat-msg .ui.comments {\n padding-top: 8px!important;\n}\n.em-chat-msg .ui.comments .comment {\n border-radius: 0!important;\n}\n.em-chat-msg .ui.comments .comment .actions a {\n margin-right: 5px;\n}\n"; +}),define("text!resources/elements/em-chat-content-item.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-schedule-edit.css",["module"],function(e){e.exports=".em-chat-schedule-edit .ui.form {\n width: 300px;\n}\n.em-chat-schedule-edit .ui.form .ui.calendar {\n width: 200px;\n}\n.em-chat-schedule-edit .ui.form .tms-date-field {\n position: relative;\n}\n.em-chat-schedule-edit .ui.form .tms-date-field .ui.button {\n position: absolute;\n top: 0;\n right: 0;\n}\n.em-chat-schedule-edit .ui.form .ui.dropdown {\n width: 265px!important;\n min-height: 30px;\n}\n.em-chat-schedule-edit .ui.form .ui.dropdown > a.ui.label > input.owner + i.delete.icon {\n display: none;\n}\n.tms-schedule-edit-target {\n display: inline-block;\n width: 1px;\n height: 1px;\n position: absolute;\n right: 188px;\n top: 30px;\n}\n"}),define("text!resources/elements/em-chat-schedule-remind.css",["module"],function(e){e.exports=".em-chat-schedule-remind .ui.table tr > td:first-child {\n font-weight: bold;\n}\n"}),define("text!resources/elements/em-chat-input.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-schedule.css",["module"],function(e){e.exports=".em-chat-schedule {\n position: relative;\n height: 100%;\n}\n.em-chat-schedule .tms-add {\n position: absolute;\n right: 170px;\n top: 0;\n}\n.em-chat-schedule .ui.form {\n width: 300px;\n}\n.em-chat-schedule .ui.form .ui.calendar {\n width: 200px;\n}\n.em-chat-schedule .ui.form .tms-date-field {\n position: relative;\n}\n.em-chat-schedule .ui.form .tms-date-field .ui.button {\n position: absolute;\n top: 0;\n right: 0;\n}\n.em-chat-schedule .ui.form .ui.dropdown {\n width: 265px!important;\n min-height: auto;\n}\n.em-chat-schedule .ui.form .ui.dropdown > a.ui.label > input.owner + i.delete.icon {\n display: none;\n}\n"}),define("text!resources/elements/em-chat-member-popup.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-settings.css",["module"],function(e){e.exports=".em-chat-settings {\n position: fixed;\n top: 22px;\n left: 185px;\n display: inline-block;\n z-index: 102;\n color: #4183c4;\n -webkit-transition: all 0.15s ease-out 0s;\n transition: all 0.15s ease-out 0s;\n}\n@media only screen and (max-width: 767px) {\n .em-chat-settings.hidden {\n left: -15px;\n }\n}\n.em-chat-settings .em-custom-theme {\n position: absolute;\n left: -26px;\n color: #4183c4;\n}\n.cp-color-picker {\n z-index: 102;\n}\n"}),define("text!resources/elements/em-chat-share.css",["module"],function(e){e.exports=".em-chat-share.ui.popup {\n max-width: 100%;\n width: 255px;\n}\n.em-chat-share.ui.popup .ui.input {\n width: 225px;\n}\n.em-chat-share.ui.popup textarea {\n width: 195px!important;\n}\n.em-chat-share.ui.popup .ui.search > .results .result {\n cursor: pointer!important;\n display: block!important;\n color: rgba(0, 0, 0, 0.87) !important;\n border-bottom: 1px solid rgba(34, 36, 38, 0.1) !important;\n margin: 0!important;\n}\n.em-chat-share.ui.popup .ui.list > .item {\n color: rgba(0, 0, 0, 0.87);\n}\n.em-chat-share:after {\n content: '';\n clear: both;\n}\n.em-chat-share .footer {\n margin-top: 16px;\n}\n.em-chat-share .footer .btn-cancel {\n float: right;\n margin: 6px 0 0 8px!important;\n}\n"}),define("text!resources/elements/em-chat-msg-popup.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-msg.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-sidebar-left.css",["module"],function(e){e.exports=".tms-left-sidebar {\n overflow: hidden;\n}\n.tms-left-sidebar .tms-body {\n position: absolute;\n top: 98px;\n width: 220px;\n height: calc(100% - 150px);\n overflow: hidden;\n padding-right: 2px;\n}\n.tms-left-sidebar .tms-body i.circular.icon {\n box-shadow: 0 0 0 0.1em #4183c4 inset;\n}\n.tms-left-sidebar .tms-body .title {\n position: relative;\n margin-left: 10px;\n}\n.tms-left-sidebar .tms-body .title .ui.header {\n display: inline-block;\n margin-top: 2px;\n margin-bottom: 0;\n}\n.tms-left-sidebar .tms-body .title i.plus.icon {\n position: absolute;\n right: 10px;\n font-size: 12px;\n width: 12px!important;\n height: 12px!important;\n}\n.tms-left-sidebar .tms-body .ui.list {\n margin-top: 10px;\n padding-top: 5px;\n box-shadow: 0px -1px 1px -1px rgba(65, 131, 196, 0.5);\n}\n.tms-left-sidebar .tms-body .ui.list > .item {\n padding-left: 16px;\n border-radius: 0;\n}\n.tms-left-sidebar .tms-body .ui.list > .item > .icon + .content {\n padding: 0;\n}\n.tms-left-sidebar .tms-body .ui.list > .item.active {\n background: rgba(0, 0, 0, 0.2);\n}\n.tms-left-sidebar .tms-body .ui.list > .item:hover {\n background: rgba(0, 0, 0, 0.1) !important;\n}\n.tms-left-sidebar .tms-body .ui.list > .item.disabled-user {\n text-decoration: line-through;\n font-style: italic;\n}\n.tms-left-sidebar .tms-body .tms-name {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 160px;\n}\n.tms-left-sidebar .tms-body .tms-channels .ui.list a.item {\n position: relative;\n}\n.tms-left-sidebar .tms-body .tms-channels .ui.list a.item:hover .actions {\n display: inline-block;\n}\n.tms-left-sidebar .tms-body .tms-channels .actions {\n display: none;\n position: absolute;\n right: 10px;\n top: 5px;\n}\n.tms-left-sidebar .tms-body .scroll-element.scroll-y {\n background-color: #4d394b;\n}\n.tms-left-sidebar.ui.left.sidebar {\n background-color: #4d394b;\n -webkit-transition: all 0.15s ease-out 0s;\n transition: all 0.15s ease-out 0s;\n width: 220px;\n}\n.tms-left-sidebar.ui.left.sidebar .my-theme {\n color: #4183c4;\n}\n.tms-left-sidebar.ui.left.sidebar .ui.list > a.item i.icon {\n color: #4183c4;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header {\n padding: 9px 16px;\n box-shadow: 0 1px 1px -1px #4183c4;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input {\n background-color: transparent;\n border: 1px rgba(103, 104, 104, 0.5) solid;\n font-size: 12px;\n outline: none;\n margin-top: 14px;\n border-radius: 2px;\n padding: 4px 16px;\n margin-left: -8px;\n width: 203px;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input::-webkit-input-placeholder {\n color: rgba(103, 104, 104, 0.5) !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input::-moz-placeholder {\n color: rgba(103, 104, 104, 0.5) !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input:-ms-input-placeholder {\n color: rgba(103, 104, 104, 0.5) !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input:focus::-webkit-input-placeholder {\n color: #676868 !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input:focus::-moz-placeholder {\n color: #676868 !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header > input:focus:-ms-input-placeholder {\n color: #676868 !important;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header h1.ui.header {\n margin: 0;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header h1.ui.header img {\n width: 30px;\n height: 30px;\n margin: 0;\n}\n.tms-left-sidebar.ui.left.sidebar .tms-header i.close.icon {\n position: absolute;\n right: 16px;\n top: 60px;\n}\n.tms-left-sidebar .tms-footer {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.tms-left-sidebar .tms-footer .ui.menu {\n border-radius: 0;\n background-color: rgba(27, 28, 29, 0.2) !important;\n}\n.tms-left-sidebar .tms-footer .ui.menu .dropdown.item .menu {\n border-radius: 0;\n}\n.tms-left-sidebar .tms-footer .ui.menu .item {\n font-size: 12px!important;\n}\n.tms-left-sidebar .tms-footer .ui.menu .item:before {\n width: 0;\n}\n.tms-left-sidebar .tms-footer .ui.menu .ui.button.item {\n width: 140px;\n margin-right: 0;\n padding-left: 0;\n}\n.tms-left-sidebar .tms-footer .ui.menu .ui.button.item .visible.content {\n margin-right: 0;\n width: 100%;\n}\n.tms-left-sidebar .tms-footer .ui.menu .right.menu .ui.dropdown .menu .header {\n min-width: 150px;\n position: relative;\n}\n.tms-left-sidebar .tms-footer .ui.menu .right.menu .ui.dropdown .menu .header .plus.icon {\n position: absolute;\n right: 0;\n top: -7px;\n}\n"}),define("text!resources/elements/em-chat-sidebar-right.css",["module"],function(e){e.exports=".em-chat-sidebar-right {\n margin-top: 0!important;\n padding-top: 0!important;\n}\n.em-chat-sidebar-right .tms-header {\n background-color: #F7F7F7;\n border-bottom: .0625rem solid #E8E8E8;\n padding: 8px 8px;\n position: relative;\n}\n.em-chat-sidebar-right .tms-header .ui.header {\n color: #2C2D30;\n margin: 0;\n font-size: 18px;\n font-weight: 900;\n}\n.em-chat-sidebar-right .tms-header i.close.icon {\n position: absolute;\n right: 8px;\n top: 8px;\n}\n.em-chat-sidebar-right .tms-scroll-wrapper {\n height: calc(100% - 40px);\n}\n.em-chat-sidebar-right .panel-wiki-dir {\n padding-top: 8px;\n height: 100%;\n padding-left: 15px;\n overflow-y: auto;\n}\n.em-chat-sidebar-right .panel-chat-attach {\n padding-top: 8px;\n}\n.em-chat-sidebar-right .panel-chat-schedule {\n padding-top: 8px;\n height: calc(100% - 10px);\n overflow: hidden;\n}\n"}),define("text!resources/elements/em-chat-system-link-mgr.css",["module"],function(e){e.exports="@media only screen and (min-width: 768px) {\n .tms-em-chat-system-link-mgr .ui.form .one.wide.field {\n padding: 0;\n }\n}\n"}),define("text!resources/elements/em-chat-schedule-edit.html",["module"],function(e){e.exports='\r\n'; +}),define("text!resources/elements/em-chat-schedule-remind.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-top-menu.css",["module"],function(e){e.exports=".tms-em-chat-top-menu.ui.top.menu {\n padding-left: 220px;\n height: 60px;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu .tms-chat-at.tms-hide {\n display: none;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .item.tms-item:before {\n display: none;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-login-user.tms-hide {\n display: none;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item {\n padding-left: 0;\n padding-right: 5px;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.tms-hide {\n display: none;\n }\n .tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.tms-mobile-hide {\n display: none;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item button .ui.floating.label {\n top: 0;\n right: 0;\n left: auto;\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.ui.dropdown {\n display: none;\n padding-left: 5px;\n margin-right: 5px;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.ui.dropdown {\n display: flex;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.ui.dropdown > i.icon {\n margin-left: 5px;\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.ui.dropdown .menu > .item .ui.button {\n margin: 0;\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-item.ui.dropdown .menu > .item .ui.button i.icon {\n margin: 0;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu .right.menu .item.tms-search {\n padding-left: 10px;\n padding-right: 10px;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .ui.search input {\n width: 95px;\n transition: width 0.15s ease-out 0s;\n}\n.tms-em-chat-top-menu.ui.top.menu .right.menu .ui.search i.remove.icon {\n display: none;\n position: absolute;\n right: 0;\n left: auto;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu.ui.top.menu {\n padding-left: 0;\n }\n}\n.tms-em-chat-top-menu.ui.top.menu .ui.basic.button {\n box-shadow: none;\n}\n.tms-em-chat-top-menu.ui.top.menu .ui.basic.button:hover {\n background-color: rgba(0, 0, 0, 0.03) !important;\n}\n@media only screen and (min-width: 768px) {\n .tms-em-chat-top-menu > .tms-chat-at.ui.dropdown {\n min-width: 175px;\n padding-top: 0;\n padding-left: 13px;\n padding-bottom: 20px;\n }\n .tms-em-chat-top-menu > .tms-chat-at.ui.dropdown.item:before {\n width: 0;\n }\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .text > .actions {\n display: none;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata {\n position: absolute;\n display: flex;\n top: 35px;\n font-size: 12px;\n left: 0;\n height: 15px;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata .item:before {\n top: 5px;\n height: 50%;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata .item.tms-channel-info:before {\n width: 0;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata .item.tms-user-info:before {\n width: 0;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata {\n display: none;\n }\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .tms-metadata .tms-channel-links .menu .header {\n min-width: 200px;\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .text {\n display: none;\n }\n .tms-em-chat-top-menu > .tms-chat-at.ui.dropdown > .dropdown.icon {\n margin-left: 6px;\n margin-right: 6px;\n }\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .header i.plus.icon {\n position: absolute;\n right: 5px;\n top: 7px;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .item:hover .actions {\n display: inline-block;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .item .icon {\n margin-right: 4px!important;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .item > .actions {\n display: none;\n position: absolute;\n right: 5px;\n top: 10px;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .item > .actions .large.ellipsis.horizontal.icon {\n font-size: 1.3em!important;\n}\n.tms-em-chat-top-menu > .tms-chat-at.ui.dropdown .menu > .item.disabled-user {\n text-decoration: line-through;\n font-style: italic;\n}\n@media only screen and (min-width: 768px) {\n .tms-em-chat-top-menu a.item.toggle-bar {\n display: none!important;\n }\n}\n@media only screen and (max-width: 767px) {\n .tms-em-chat-top-menu div.dropdown.tms-chat-at {\n display: none!important;\n }\n}\n"}),define("text!resources/elements/em-chat-schedule.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-topic-input.css",["module"],function(e){e.exports='.em-chat-topic-input {\n margin: 0;\n bottom: 0;\n background-color: white;\n padding-bottom: 22px;\n}\n.em-chat-topic-input .tms-chat-topic-status-bar .dz-preview {\n display: block!important;\n width: auto!important;\n background: #e0e1e2;\n margin: 0;\n padding: 7px;\n}\n.em-chat-topic-input .ui[class*="left action"].input > textarea {\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n border-left-color: transparent!important;\n}\n.em-chat-topic-input .textareaWrapper {\n width: calc(100% - 35px);\n border: 1px solid rgba(34, 36, 38, 0.15);\n border-top-right-radius: .28571429rem;\n border-bottom-right-radius: .28571429rem;\n}\n.em-chat-topic-input .textareaWrapper .CodeMirror,\n.em-chat-topic-input .textareaWrapper .CodeMirror-scroll {\n min-height: 0;\n border: none;\n border-top-right-radius: .28571429rem;\n}\n.em-chat-topic-input .textareaWrapper .CodeMirror-scroll {\n max-height: 300px;\n}\n.em-chat-topic-input .ui.input {\n margin-right: 5px;\n min-height: 49px;\n}\n.em-chat-topic-input .ui.input i.send.icon {\n z-index: 1;\n right: 7px!important;\n}\n.em-chat-topic-input .ui.input textarea {\n resize: none;\n width: 100%;\n padding-right: 2.67142857em!important;\n margin: 0;\n max-width: 100%;\n outline: 0;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n text-align: left;\n display: block;\n padding: .67861429em 1em;\n background: #FFF;\n border: none;\n color: rgba(0, 0, 0, 0.87);\n box-shadow: none;\n border-top-right-radius: .28571429rem;\n border-bottom-right-radius: .28571429rem;\n}\n.em-chat-topic-input .CodeMirror-lines {\n margin-right: 30px;\n}\n.em-chat-topic-input .ui.vertical.menu.popup {\n width: 145px;\n}\n.em-chat-topic-input .ui.vertical.menu.popup a.item > i.icon {\n float: left;\n margin: 0 .35714286em 0 0;\n}\n'}),define("text!resources/elements/em-chat-settings.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-topic.css",["module"],function(e){e.exports='.em-chat-topic .ui.comments .comment {\n padding-left: 3px;\n padding-bottom: 3px;\n}\n.em-chat-topic .ui.comments .comment:hover {\n background-color: rgba(0, 0, 0, 0.03);\n}\n.em-chat-topic .ui.comments .comment:hover:before {\n width: 4px;\n}\n.em-chat-topic .ui.comments .comment.active {\n background-color: rgba(0, 0, 0, 0.03);\n}\n.em-chat-topic .ui.comments .comment.active:before {\n width: 4px;\n}\n.em-chat-topic .ui.comments .comment:before {\n content: "";\n position: absolute;\n z-index: -1;\n top: 0;\n left: -4px;\n bottom: 0;\n background: #2098D1;\n width: 0;\n -webkit-transition-property: width;\n transition-property: width;\n -webkit-transition-duration: 0.3s;\n transition-duration: 0.3s;\n -webkit-transition-timing-function: ease-out;\n transition-timing-function: ease-out;\n}\n.em-chat-topic .ui.comments .comment .content > .markdown-body span.at-user {\n cursor: pointer;\n}\n.em-chat-topic .ui.comments .comment .content .tools {\n position: absolute;\n bottom: 0;\n right: 0;\n display: none;\n}\n.em-chat-topic .ui.comments .comment .content:hover .tools {\n display: block;\n}\n'}),define("text!resources/elements/em-checkbox.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-dropdown-links.css",["module"],function(e){e.exports=""}),define("text!resources/elements/em-hotkeys-modal.css",["module"],function(e){e.exports=".tms-em-hotkeys-modal ul {\n padding-left: 30px;\n}\n.tms-em-hotkeys-modal ul.no_bullets {\n margin: 0 0 2rem;\n}\n.tms-em-hotkeys-modal ul.no_bullets li {\n line-height: 2rem;\n list-style-type: none;\n padding: 0;\n font-size: 1rem;\n font-weight: 700;\n}\n.tms-em-hotkeys-modal > .content {\n background-color: rgba(11, 7, 11, 0.78) !important;\n}\n.tms-em-hotkeys-modal .keyboard i.icon {\n margin-right: 0px!important;\n}\n.tms-em-hotkeys-modal .subtle_silver {\n color: #9e9ea6!important;\n}\n.tms-em-hotkeys-modal .ui.grid .column {\n padding: 0!important;\n}\n"}),define("text!resources/elements/em-user-avatar.css",["module"],function(e){e.exports=".em-user-avatar.avatar.ui.mini.circular.image {\n width: 35px;\n height: 35px;\n font-size: 35px;\n background-color: rgba(150, 178, 183, 0.4);\n text-align: center;\n margin: 0;\n padding-right: 0;\n}\n.em-user-avatar .text-char {\n display: inline-block;\n height: 35px;\n line-height: 35px;\n vertical-align: top;\n}\n"}),define("text!resources/elements/em-chat-share.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-user-edit.css",["module"],function(e){e.exports=".tms-em-user-edit .ui.form .field > label {\n width: 45px!important;\n}\n.tms-em-user-edit .ui.form .field .user-username {\n margin-left: 0;\n}\n.em-user-edit-modal {\n /* Tablet & PC */\n}\n@media only screen and (min-width: 768px) {\n .em-user-edit-modal {\n width: 500px!important;\n margin-left: -250px !important;\n }\n}\n"}),define("text!resources/elements/em-chat-sidebar-left.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-sidebar-right.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-system-link-mgr.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-top-menu.html",["module"],function(e){e.exports='\r\n'; +}),define("text!resources/elements/em-chat-topic-input.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-chat-topic.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-checkbox.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-confirm-modal.html",["module"],function(e){e.exports='\n'}),define("text!resources/elements/em-dropdown-links.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-dropdown.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-hotkeys-modal.html",["module"],function(e){e.exports='\r\n'}),define("text!resources/elements/em-modal.html",["module"],function(e){e.exports='\r\n'});define("text!resources/elements/em-user-avatar.html",["module"],function(e){e.exports='\r\n'});define("text!resources/elements/em-user-edit.html",["module"],function(e){e.exports='\r\n'}); \ No newline at end of file diff --git a/src/main/resources/static/page/scripts/deps-bundle-1609bcdf51.js b/src/main/resources/static/page/scripts/deps-bundle-1609bcdf51.js new file mode 100644 index 00000000..3d7dc9d8 --- /dev/null +++ b/src/main/resources/static/page/scripts/deps-bundle-1609bcdf51.js @@ -0,0 +1,22 @@ +(function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||c.defaults,this.rules=u.normal,this.options.gfm&&(this.options.tables?this.rules=u.tables:this.rules=u.gfm)}function t(e,t){if(this.options=t||c.defaults,this.links=e,this.rules=d.normal,this.renderer=this.options.renderer||new n,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function n(e){this.options=e||{}}function i(e){this.tokens=[],this.token=null,this.options=e||c.defaults,this.options.renderer=this.options.renderer||new n,this.renderer=this.options.renderer,this.renderer.options=this.options}function r(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function o(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function a(e,t){return e=e.source,t=t||"",function n(i,r){return i?(r=r.source||r,r=r.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(i,r),n):new RegExp(e,t)}}function s(){}function l(e){for(var t,n,i=1;iAn error occured:

    "+r(e.message+"",!0)+"
    ";throw e}}var u={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};u.bullet=/(?:[*+-]|\d+\.)/,u.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,u.item=a(u.item,"gm")(/bull/g,u.bullet)(),u.list=a(u.list)(/bull/g,u.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+u.def.source+")")(),u.blockquote=a(u.blockquote)("def",u.def)(),u._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",u.html=a(u.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,u._tag)(),u.paragraph=a(u.paragraph)("hr",u.hr)("heading",u.heading)("lheading",u.lheading)("blockquote",u.blockquote)("tag","<"+u._tag)("def",u.def)(),u.normal=l({},u),u.gfm=l({},u.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),u.gfm.paragraph=a(u.paragraph)("(?!","(?!"+u.gfm.fences.source.replace("\\1","\\2")+"|"+u.list.source.replace("\\1","\\3")+"|")(),u.tables=l({},u.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=u,e.lex=function(t,n){var i=new e(n);return i.lex(t)},e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},e.prototype.token=function(e,t,n){for(var i,r,o,a,s,l,c,d,h,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},d=0;d ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),o=o[0].match(this.rules.item),i=!1,h=o.length,d=0;d1&&s.length>1||(e=o.slice(d+1).join("\n")+e,d=h-1)),r=i||/\n\n(?!\s*$)/.test(l),d!==h-1&&(i="\n"===l.charAt(l.length-1),r||(r=i)),this.tokens.push({type:r?"loose_item_start":"list_item_start"}),this.token(l,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},d=0;d])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,d.link=a(d.link)("inside",d._inside)("href",d._href)(),d.reflink=a(d.reflink)("inside",d._inside)(),d.normal=l({},d),d.pedantic=l({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=l({},d.normal,{escape:a(d.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:a(d.text)("]|","~]|")("|","|https?://|")()}),d.breaks=l({},d.gfm,{br:a(d.br)("{2,}","*")(),text:a(d.gfm.text)("{2,}","*")()}),t.rules=d,t.output=function(e,n,i){var r=new t(n,i);return r.output(e)},t.prototype.output=function(e){for(var t,n,i,o,a="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),a+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),"@"===o[2]?(n=":"===o[1].charAt(6)?this.mangle(o[1].substring(7)):this.mangle(o[1]),i=this.mangle("mailto:")+n):(n=r(o[1]),i=n),a+=this.renderer.link(i,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^
    /i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),a+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):r(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,a+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){a+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,a+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),a+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),a+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),a+=this.renderer.codespan(r(o[2],!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),a+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),a+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),a+=this.renderer.text(r(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(o[0].length),n=r(o[1]),i=n,a+=this.renderer.link(i,null,n);return a},t.prototype.outputLink=function(e,t){var n=r(t.href),i=t.title?r(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,r(e[1]))},t.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},t.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,r=0;r.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},n.prototype.code=function(e,t,n){if(this.options.highlight){var i=this.options.highlight(e,t);null!=i&&i!==e&&(n=!0,e=i)}return t?'
    '+(n?e:r(e,!0))+"\n
    \n":"
    "+(n?e:r(e,!0))+"\n
    "},n.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},n.prototype.html=function(e){return e},n.prototype.heading=function(e,t,n){return"'+e+"\n"},n.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},n.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},n.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},n.prototype.paragraph=function(e){return"

    "+e+"

    \n"},n.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},n.prototype.tablerow=function(e){return"\n"+e+"\n"},n.prototype.tablecell=function(e,t){var n=t.header?"th":"td",i=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return i+e+"\n"},n.prototype.strong=function(e){return""+e+""},n.prototype.em=function(e){return""+e+""},n.prototype.codespan=function(e){return""+e+""},n.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},n.prototype.del=function(e){return""+e+""},n.prototype.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(o(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:"))return""}var r='
    "},n.prototype.image=function(e,t,n){var i=''+n+'":">"},n.prototype.text=function(e){return e},i.parse=function(e,t,n){var r=new i(t,n);return r.parse(e)},i.prototype.parse=function(e){this.inline=new t(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var n="";this.next();)n+=this.tok();return n},i.prototype.next=function(){return this.token=this.tokens.pop()},i.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},i.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},i.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,r,o="",a="";for(n="",e=0;e-1)},add:function(t){e.push(t)},delete:function(t){e.splice(e.indexOf(t),1)}}}(),a=function(e){return new Event(e)};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(s=function(e){return e},s.destroy=function(e){return e},s.update=function(e){return e}):(s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e,t)}),e},s.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),t.exports=s}),function(e,t){"undefined"!=typeof module?module.exports=t():"function"==typeof define&&"object"==typeof define.amd?define("clipboard-js",t):this[e]=t()}("clipboard",function(){if("undefined"==typeof document||!document.addEventListener)return null;var e={};return e.copy=function(){function e(){n=!1,i=null,r&&window.getSelection().removeAllRanges(),r=!1}function t(){var e=document.getSelection();if(!document.queryCommandEnabled("copy")&&e.isCollapsed){var t=document.createRange();t.selectNodeContents(document.body),e.addRange(t),r=!0}}var n=!1,i=null,r=!1;return document.addEventListener("copy",function(e){if(n){for(var t in i)e.clipboardData.setData(t,i[t]);e.preventDefault()}}),function(r){return new Promise(function(o,a){n=!0,i="string"==typeof r?{"text/plain":r}:r instanceof Node?{"text/html":(new XMLSerializer).serializeToString(r)}:r;try{if(t(),!document.execCommand("copy"))throw new Error("Unable to copy. Perhaps it's not available in your browser?");e(),o()}catch(t){e(),a(t)}})}}(),e.paste=function(){var e,t,n=!1;return document.addEventListener("paste",function(i){if(n){n=!1,i.preventDefault();var r=e;e=null,r(i.clipboardData.getData(t))}}),function(i){return new Promise(function(r,o){n=!0,e=r,t=i||"text/plain";try{document.execCommand("paste")||(n=!1,o(new Error("Unable to paste. Pasting only works in Internet Explorer at the moment.")))}catch(e){n=!1,o(new Error(e))}})}}(),"undefined"==typeof ClipboardEvent&&"undefined"!=typeof window.clipboardData&&"undefined"!=typeof window.clipboardData.setData&&(!function(e){function t(e,t){return function(){e.apply(t,arguments)}}function n(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(e,t(r,this),t(o,this))}function i(e){var t=this;return null===this._state?void this._deferreds.push(e):void c(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return void(t._state?e.resolve:e.reject)(t._value);var i;try{i=n(t._value)}catch(t){return void e.reject(t)}e.resolve(i)})}function r(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void l(t(n,e),t(r,this),t(o,this))}this._state=!0,this._value=e,a.call(this)}catch(e){o.call(this,e)}}function o(e){this._state=!1,this._value=e,a.call(this)}function a(){for(var e=0,t=this._deferreds.length;t>e;e++)i.call(this,this._deferreds[e]);this._deferreds=null}function s(e,t,n,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=i}function l(e,t,n){var i=!1;try{e(function(e){i||(i=!0,t(e))},function(e){i||(i=!0,n(e))})}catch(e){if(i)return;i=!0,n(e)}}var c=n.immediateFn||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,1)},u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){i.call(r,new s(e,t,n,o))})},n.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&u(arguments[0])?arguments[0]:arguments);return new n(function(t,n){function i(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){i(o,e)},n)}e[o]=a,0===--r&&t(e)}catch(e){n(e)}}if(0===e.length)return t([]);for(var r=e.length,o=0;oi;i++)e[i].then(t,n)})},"undefined"!=typeof module&&module.exports?module.exports=n:e.Promise||(e.Promise=n)}(this),e.copy=function(e){return new Promise(function(t,n){if("string"!=typeof e&&!("text/plain"in e))throw new Error("You must provide a text/plain type.");var i="string"==typeof e?e:e["text/plain"],r=window.clipboardData.setData("Text",i);r?t():n(new Error("Copying was rejected."))})},e.paste=function(){return new Promise(function(e,t){var n=window.clipboardData.getData("Text");n?e(n):t(new Error("Pasting was rejected."))})}),e}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("moment",t):e.moment=t()}(this,function(){"use strict";function e(){return gi.apply(null,arguments)}function t(e){gi=e}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){var t;for(t in e)return!1;return!0}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,i=[];for(n=0;n0)for(n in bi)i=bi[n],r=t[i],g(r)||(e[i]=r);return e}function v(t){m(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),yi===!1&&(yi=!0,e.updateOffset(this),yi=!1)}function b(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=y(t)),n}function w(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function N(e,t){var n=e.toLowerCase();Mi[n]=Mi[n+"s"]=Mi[t]=e}function F(e){return"string"==typeof e?Mi[e]||Mi[e.toLowerCase()]:void 0}function R(e){var t,n,i={};for(n in e)l(e,n)&&(t=F(n),t&&(i[t]=e[n]));return i}function P(e,t){Hi[e]=t}function O(e){var t=[];for(var n in e)t.push({unit:n,priority:Hi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(t,n){return function(i){return null!=i?(j(this,t,i),e.updateOffset(this,n),this):W(this,t)}}function W(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function j(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function Y(e){return e=F(e),T(this[e])?this[e]():this}function $(e,t){if("object"==typeof e){e=R(e);for(var n=O(e),i=0;i=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function U(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Ni[e]=r),t&&(Ni[t[0]]=function(){return q(r.apply(this,arguments),t[1],t[2])}),n&&(Ni[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,i=e.match(zi);for(t=0,n=i.length;t=0&&Ai.test(e);)e=e.replace(Ai,n),Ai.lastIndex=0,i-=1;return e}function Q(e,t,n){Ji[e]=T(t)?t:function(e,i){return e&&n?n:t}}function K(e,t){return l(Ji,e)?Ji[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function te(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),o(t)&&(i=function(e,n){n[t]=x(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ye(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function xe(e,t,n){var i=7+t-n,r=(7+ye(e,0,i).getUTCDay()-t)%7;return-r+i-1}function we(e,t,n,i,r){var o,a,s=(7+n-i)%7,l=xe(e,i,r),c=1+7*(t-1)+s+l;return c<=0?(o=e-1,a=ge(o)+c):c>ge(e)?(o=e+1,a=c-ge(e)):(o=e,a=c),{year:o,dayOfYear:a}}function ke(e,t,n){var i,r,o=xe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(r=e.year()-1,i=a+Se(r,t,n)):a>Se(e.year(),t,n)?(i=a-Se(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Se(e,t,n){var i=xe(e,t,n),r=xe(e+1,t,n);return(ge(e)-i+r)/7}function Ce(e){return ke(e,this._week.dow,this._week.doy).week}function Te(){return this._week.dow}function Ee(){return this._week.doy}function _e(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Le(e){var t=ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function De(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Me(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function He(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays}function ze(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ae(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ie(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(r=ur.call(this._weekdaysParse,a),r!==-1?r:null):"ddd"===t?(r=ur.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=ur.call(this._minWeekdaysParse,a),r!==-1?r:null):"dddd"===t?(r=ur.call(this._weekdaysParse,a),r!==-1?r:(r=ur.call(this._shortWeekdaysParse,a),r!==-1?r:(r=ur.call(this._minWeekdaysParse,a),r!==-1?r:null))):"ddd"===t?(r=ur.call(this._shortWeekdaysParse,a),r!==-1?r:(r=ur.call(this._weekdaysParse,a),r!==-1?r:(r=ur.call(this._minWeekdaysParse,a),r!==-1?r:null))):(r=ur.call(this._minWeekdaysParse,a),r!==-1?r:(r=ur.call(this._weekdaysParse,a),r!==-1?r:(r=ur.call(this._shortWeekdaysParse,a),r!==-1?r:null)))}function Ne(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Ie.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=u([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=De(e,this.localeData()),this.add(e-t,"d")):t}function Re(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Pe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Me(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Oe(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=wr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Be(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function We(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function je(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=u([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),l.push(o),c.push(i),c.push(r),c.push(o);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=ee(s[t]),l[t]=ee(l[t]),c[t]=ee(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ye(){return this.hours()%12||12}function $e(){return this.hours()||24}function qe(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ue(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ve(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,i,r,o=0;o0;){if(i=Qe(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&w(r,n,!0)>=t-1)break;t--}o++}return null}function Qe(e){var t=null;if(!Lr[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Cr._abbr,require("./locale/"+e),Ke(t)}catch(e){}return Lr[e]}function Ke(e,t){var n;return e&&(n=g(t)?tt(e):Je(e,t),n&&(Cr=n)),Cr._abbr}function Je(e,t){if(null!==t){var n=_r;if(t.abbr=e,null!=Lr[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Lr[e]._config;else if(null!=t.parentLocale){if(null==Lr[t.parentLocale])return Dr[t.parentLocale]||(Dr[t.parentLocale]=[]),Dr[t.parentLocale].push({name:e,config:t}),null;n=Lr[t.parentLocale]._config}return Lr[e]=new L(_(n,t)),Dr[e]&&Dr[e].forEach(function(e){Je(e.name,e.config)}),Ke(e),Lr[e]}return delete Lr[e],null}function et(e,t){if(null!=t){var n,i=_r;null!=Lr[e]&&(i=Lr[e]._config),t=_(i,t),n=new L(t),n.parentLocale=Lr[e],Lr[e]=n,Ke(e)}else null!=Lr[e]&&(null!=Lr[e].parentLocale?Lr[e]=Lr[e].parentLocale:null!=Lr[e]&&delete Lr[e]);return Lr[e]}function tt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Cr;if(!n(e)){if(t=Qe(e))return t;e=[e]}return Ze(e)}function nt(){return Si(Lr)}function it(e){var t,n=e._a;return n&&h(e).overflow===-2&&(t=n[nr]<0||n[nr]>11?nr:n[ir]<1||n[ir]>re(n[tr],n[nr])?ir:n[rr]<0||n[rr]>24||24===n[rr]&&(0!==n[or]||0!==n[ar]||0!==n[sr])?rr:n[or]<0||n[or]>59?or:n[ar]<0||n[ar]>59?ar:n[sr]<0||n[sr]>999?sr:-1,h(e)._overflowDayOfYear&&(tir)&&(t=ir),h(e)._overflowWeeks&&t===-1&&(t=lr),h(e)._overflowWeekday&&t===-1&&(t=cr),h(e).overflow=t),e}function rt(e){var t,n,i,r,o,a,s=e._i,l=Mr.exec(s)||Hr.exec(s);if(l){for(h(e).iso=!0,t=0,n=Ar.length;tge(r)&&(h(e)._overflowDayOfYear=!0),n=ye(r,0,e._dayOfYear),e._a[nr]=n.getUTCMonth(),e._a[ir]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[rr]&&0===e._a[or]&&0===e._a[ar]&&0===e._a[sr]&&(e._nextDay=!0,e._a[rr]=0),e._d=(e._useUTC?ye:be).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[rr]=24)}}function ct(e){var t,n,i,r,o,a,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=at(t.GG,e._a[tr],ke(bt(),1,4).year),i=at(t.W,1),r=at(t.E,1),(r<1||r>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=ke(bt(),o,a);n=at(t.gg,e._a[tr],c.year),i=at(t.w,c.week),null!=t.d?(r=t.d,(r<0||r>6)&&(l=!0)):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o}i<1||i>Se(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=we(n,i,r,o,a),e._a[tr]=s.year,e._dayOfYear=s.dayOfYear)}function ut(t){if(t._f===e.ISO_8601)return void rt(t);t._a=[],h(t).empty=!0;var n,i,r,o,a,s=""+t._i,l=s.length,c=0;for(r=Z(t._f,t._locale).match(zi)||[],n=0;n0&&h(t).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),c+=i.length),Ni[o]?(i?h(t).empty=!1:h(t).unusedTokens.push(o),ie(o,i,t)):t._strict&&!i&&h(t).unusedTokens.push(o);h(t).charsLeftOver=l-c,s.length>0&&h(t).unusedInput.push(s),t._a[rr]<=12&&h(t).bigHour===!0&&t._a[rr]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[rr]=dt(t._locale,t._a[rr],t._meridiem),lt(t),it(t)}function dt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function ht(e){var t,n,i,r,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ft(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=gt(e),e._a){var t=e._isUTC?u(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Rt(){return!!this.isValid()&&!this._isUTC}function Pt(){return!!this.isValid()&&this._isUTC}function Ot(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Bt(e,t){var n,i,r,a=e,s=null;return St(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(a={},t?a[t]=e:a.milliseconds=e):(s=Br.exec(e))?(n="-"===s[1]?-1:1,a={y:0,d:x(s[ir])*n,h:x(s[rr])*n,m:x(s[or])*n,s:x(s[ar])*n,ms:x(Ct(1e3*s[sr]))*n}):(s=Wr.exec(e))?(n="-"===s[1]?-1:1,a={y:Wt(s[2],n),M:Wt(s[3],n),w:Wt(s[4],n),d:Wt(s[5],n),h:Wt(s[6],n),m:Wt(s[7],n),s:Wt(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Yt(bt(a.from),bt(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),i=new kt(a),St(e)&&l(e,"_locale")&&(i._locale=e._locale),i}function Wt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function jt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Yt(e,t){var n;return e.isValid()&&t.isValid()?(t=_t(t,e),e.isBefore(t)?n=jt(e,t):(n=jt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function $t(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Bt(n,i),qt(this,r,e),this}}function qt(t,n,i,r){var o=n._milliseconds,a=Ct(n._days),s=Ct(n._months);t.isValid()&&(r=null==r||r,o&&t._d.setTime(t._d.valueOf()+o*i),a&&j(t,"Date",W(t,"Date")+a*i),s&&ce(t,W(t,"Month")+s*i),r&&e.updateOffset(t,a||s))}function Ut(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gt(t,n){var i=t||bt(),r=_t(i,this).startOf("day"),o=e.calendarFormat(this,r)||"sameElse",a=n&&(T(n[o])?n[o].call(this,i):n[o]);return this.format(a||this.localeData().calendar(o,this,bt(i)))}function Vt(){return new v(this)}function Xt(e,t){var n=b(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(t=F(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()o&&(t=o),zn.call(this,e,t,n,i,r))}function zn(e,t,n,i,r){var o=we(e,t,n,i,r),a=ye(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function An(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function In(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Nn(e,t){t[sr]=x(1e3*("0."+e))}function Fn(){return this._isUTC?"UTC":""}function Rn(){return this._isUTC?"Coordinated Universal Time":""}function Pn(e){return bt(1e3*e)}function On(){return bt.apply(null,arguments).parseZone()}function Bn(e){return e}function Wn(e,t,n,i){var r=tt(),o=u().set(i,t);return r[n](o,e)}function jn(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return Wn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Wn(e,i,n,"month");return r}function Yn(e,t,n,i){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var r=tt(),a=e?r._week.dow:0;if(null!=n)return Wn(t,(n+a)%7,i,"day");var s,l=[];for(s=0;s<7;s++)l[s]=Wn(t,(s+a)%7,i,"day");return l}function $n(e,t){return jn(e,t,"months")}function qn(e,t){return jn(e,t,"monthsShort")}function Un(e,t,n){return Yn(e,t,n,"weekdays")}function Gn(e,t,n){return Yn(e,t,n,"weekdaysShort")}function Vn(e,t,n){return Yn(e,t,n,"weekdaysMin")}function Xn(){var e=this._data;return this._milliseconds=Kr(this._milliseconds),this._days=Kr(this._days),this._months=Kr(this._months),e.milliseconds=Kr(e.milliseconds),e.seconds=Kr(e.seconds),e.minutes=Kr(e.minutes),e.hours=Kr(e.hours),e.months=Kr(e.months),e.years=Kr(e.years),this}function Zn(e,t,n,i){var r=Bt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Qn(e,t){return Zn(this,e,t,1)}function Kn(e,t){return Zn(this,e,t,-1)}function Jn(e){return e<0?Math.floor(e):Math.ceil(e)}function ei(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Jn(ni(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=y(o/1e3),l.seconds=e%60,t=y(e/60),l.minutes=t%60,n=y(t/60),l.hours=n%24,a+=y(n/24),r=y(ti(a)),s+=r,a-=Jn(ni(r)),i=y(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function ti(e){return 4800*e/146097}function ni(e){return 146097*e/4800}function ii(e){var t,n,i=this._milliseconds;if(e=F(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+ti(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ni(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function ri(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12)}function oi(e){return function(){return this.as(e)}}function ai(e){return e=F(e),this[e+"s"]()}function si(e){return function(){return this._data[e]}}function li(){return y(this.days()/7)}function ci(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function ui(e,t,n){var i=Bt(e).abs(),r=go(i.as("s")),o=go(i.as("m")),a=go(i.as("h")),s=go(i.as("d")),l=go(i.as("M")),c=go(i.as("y")),u=r0,u[4]=n,ci.apply(null,u)}function di(e){return void 0===e?go:"function"==typeof e&&(go=e,!0)}function hi(e,t){return void 0!==mo[e]&&(void 0===t?mo[e]:(mo[e]=t,!0))}function fi(e){var t=this.localeData(),n=ui(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function pi(){var e,t,n,i=vo(this._milliseconds)/1e3,r=vo(this._days),o=vo(this._months);e=y(i/60),t=y(e/60),i%=60,e%=60,n=y(o/12),o%=12;var a=n,s=o,l=r,c=t,u=e,d=i,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(c||u||d?"T":"")+(c?c+"H":"")+(u?u+"M":"")+(d?d+"S":""):"P0D"}var gi,mi;mi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i68?1900:2e3)};var mr=B("FullYear",!0);U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),P("week",5),P("isoWeek",5),Q("w",Wi),Q("ww",Wi,Ri),Q("W",Wi),Q("WW",Wi,Ri),ne(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=x(e)});var vr={dow:0,doy:6};U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),P("day",11),P("weekday",11),P("isoWeekday",11),Q("d",Wi),Q("e",Wi),Q("E",Wi),Q("dd",function(e,t){return t.weekdaysMinRegex(e)}),Q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Q("dddd",function(e,t){return t.weekdaysRegex(e)}),ne(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:h(n).invalidWeekday=e}),ne(["d","e","E"],function(e,t,n,i){t[i]=x(e)});var br="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wr=Ki,kr=Ki,Sr=Ki;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Ye),U("k",["kk",2],0,$e),U("hmm",0,0,function(){return""+Ye.apply(this)+q(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Ye.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+q(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)}),qe("a",!0),qe("A",!1),N("hour","h"),P("hour",13),Q("a",Ue),Q("A",Ue),Q("H",Wi),Q("h",Wi),Q("HH",Wi,Ri),Q("hh",Wi,Ri),Q("hmm",ji),Q("hmmss",Yi),Q("Hmm",ji),Q("Hmmss",Yi),te(["H","HH"],rr),te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),te(["h","hh"],function(e,t,n){t[rr]=x(e),h(n).bigHour=!0}),te("hmm",function(e,t,n){var i=e.length-2;t[rr]=x(e.substr(0,i)),t[or]=x(e.substr(i)),h(n).bigHour=!0}),te("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[rr]=x(e.substr(0,i)),t[or]=x(e.substr(i,2)),t[ar]=x(e.substr(r)),h(n).bigHour=!0}),te("Hmm",function(e,t,n){var i=e.length-2; +t[rr]=x(e.substr(0,i)),t[or]=x(e.substr(i))}),te("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[rr]=x(e.substr(0,i)),t[or]=x(e.substr(i,2)),t[ar]=x(e.substr(r))});var Cr,Tr=/[ap]\.?m?\.?/i,Er=B("Hours",!0),_r={calendar:Ci,longDateFormat:Ti,invalidDate:Ei,ordinal:_i,ordinalParse:Li,relativeTime:Di,months:hr,monthsShort:fr,week:vr,weekdays:br,weekdaysMin:xr,weekdaysShort:yr,meridiemParse:Tr},Lr={},Dr={},Mr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Hr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zr=/Z|[+-]\d\d(?::?\d\d)?/,Ar=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ir=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Nr=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=S("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){};var Fr=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:p()}),Pr=function(){return Date.now?Date.now():+new Date};Tt("Z",":"),Tt("ZZ",""),Q("Z",Zi),Q("ZZ",Zi),te(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Et(Zi,e)});var Or=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Br=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Wr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Bt.fn=kt.prototype;var jr=$t(1,"add"),Yr=$t(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $r=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),En("gggg","weekYear"),En("ggggg","weekYear"),En("GGGG","isoWeekYear"),En("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),P("weekYear",1),P("isoWeekYear",1),Q("G",Vi),Q("g",Vi),Q("GG",Wi,Ri),Q("gg",Wi,Ri),Q("GGGG",qi,Oi),Q("gggg",qi,Oi),Q("GGGGG",Ui,Bi),Q("ggggg",Ui,Bi),ne(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=x(e)}),ne(["gg","GG"],function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)}),U("Q",0,"Qo","quarter"),N("quarter","Q"),P("quarter",7),Q("Q",Fi),te("Q",function(e,t){t[nr]=3*(x(e)-1)}),U("D",["DD",2],"Do","date"),N("date","D"),P("date",9),Q("D",Wi),Q("DD",Wi,Ri),Q("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),te(["D","DD"],ir),te("Do",function(e,t){t[ir]=x(e.match(Wi)[0],10)});var qr=B("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),P("dayOfYear",4),Q("DDD",$i),Q("DDDD",Pi),te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),U("m",["mm",2],0,"minute"),N("minute","m"),P("minute",14),Q("m",Wi),Q("mm",Wi,Ri),te(["m","mm"],or);var Ur=B("Minutes",!1);U("s",["ss",2],0,"second"),N("second","s"),P("second",15),Q("s",Wi),Q("ss",Wi,Ri),te(["s","ss"],ar);var Gr=B("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),P("millisecond",16),Q("S",$i,Fi),Q("SS",$i,Ri),Q("SSS",$i,Pi);var Vr;for(Vr="SSSS";Vr.length<=9;Vr+="S")Q(Vr,Gi);for(Vr="S";Vr.length<=9;Vr+="S")te(Vr,Nn);var Xr=B("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Zr=v.prototype;Zr.add=jr,Zr.calendar=Gt,Zr.clone=Vt,Zr.diff=tn,Zr.endOf=gn,Zr.format=sn,Zr.from=ln,Zr.fromNow=cn,Zr.to=un,Zr.toNow=dn,Zr.get=Y,Zr.invalidAt=Cn,Zr.isAfter=Xt,Zr.isBefore=Zt,Zr.isBetween=Qt,Zr.isSame=Kt,Zr.isSameOrAfter=Jt,Zr.isSameOrBefore=en,Zr.isValid=kn,Zr.lang=$r,Zr.locale=hn,Zr.localeData=fn,Zr.max=Rr,Zr.min=Fr,Zr.parsingFlags=Sn,Zr.set=$,Zr.startOf=pn,Zr.subtract=Yr,Zr.toArray=yn,Zr.toObject=xn,Zr.toDate=bn,Zr.toISOString=on,Zr.inspect=an,Zr.toJSON=wn,Zr.toString=rn,Zr.unix=vn,Zr.valueOf=mn,Zr.creationData=Tn,Zr.year=mr,Zr.isLeapYear=ve,Zr.weekYear=_n,Zr.isoWeekYear=Ln,Zr.quarter=Zr.quarters=An,Zr.month=ue,Zr.daysInMonth=de,Zr.week=Zr.weeks=_e,Zr.isoWeek=Zr.isoWeeks=Le,Zr.weeksInYear=Mn,Zr.isoWeeksInYear=Dn,Zr.date=qr,Zr.day=Zr.days=Fe,Zr.weekday=Re,Zr.isoWeekday=Pe,Zr.dayOfYear=In,Zr.hour=Zr.hours=Er,Zr.minute=Zr.minutes=Ur,Zr.second=Zr.seconds=Gr,Zr.millisecond=Zr.milliseconds=Xr,Zr.utcOffset=Dt,Zr.utc=Ht,Zr.local=zt,Zr.parseZone=At,Zr.hasAlignedHourOffset=It,Zr.isDST=Nt,Zr.isLocal=Rt,Zr.isUtcOffset=Pt,Zr.isUtc=Ot,Zr.isUTC=Ot,Zr.zoneAbbr=Fn,Zr.zoneName=Rn,Zr.dates=S("dates accessor is deprecated. Use date instead.",qr),Zr.months=S("months accessor is deprecated. Use month instead",ue),Zr.years=S("years accessor is deprecated. Use year instead",mr),Zr.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mt),Zr.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ft);var Qr=L.prototype;Qr.calendar=D,Qr.longDateFormat=M,Qr.invalidDate=H,Qr.ordinal=z,Qr.preparse=Bn,Qr.postformat=Bn,Qr.relativeTime=A,Qr.pastFuture=I,Qr.set=E,Qr.months=oe,Qr.monthsShort=ae,Qr.monthsParse=le,Qr.monthsRegex=fe,Qr.monthsShortRegex=he,Qr.week=Ce,Qr.firstDayOfYear=Ee,Qr.firstDayOfWeek=Te,Qr.weekdays=He,Qr.weekdaysMin=Ae,Qr.weekdaysShort=ze,Qr.weekdaysParse=Ne,Qr.weekdaysRegex=Oe,Qr.weekdaysShortRegex=Be,Qr.weekdaysMinRegex=We,Qr.isPM=Ge,Qr.meridiem=Ve,Ke("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=S("moment.lang is deprecated. Use moment.locale instead.",Ke),e.langData=S("moment.langData is deprecated. Use moment.localeData instead.",tt);var Kr=Math.abs,Jr=oi("ms"),eo=oi("s"),to=oi("m"),no=oi("h"),io=oi("d"),ro=oi("w"),oo=oi("M"),ao=oi("y"),so=si("milliseconds"),lo=si("seconds"),co=si("minutes"),uo=si("hours"),ho=si("days"),fo=si("months"),po=si("years"),go=Math.round,mo={s:45,m:45,h:22,d:26,M:11},vo=Math.abs,bo=kt.prototype;return bo.abs=Xn,bo.add=Qn,bo.subtract=Kn,bo.as=ii,bo.asMilliseconds=Jr,bo.asSeconds=eo,bo.asMinutes=to,bo.asHours=no,bo.asDays=io,bo.asWeeks=ro,bo.asMonths=oo,bo.asYears=ao,bo.valueOf=ri,bo._bubble=ei,bo.get=ai,bo.milliseconds=so,bo.seconds=lo,bo.minutes=co,bo.hours=uo,bo.days=ho,bo.weeks=li,bo.months=fo,bo.years=po,bo.humanize=fi,bo.toISOString=pi,bo.toString=pi,bo.toJSON=pi,bo.locale=hn,bo.localeData=fn,bo.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pi),bo.lang=$r,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Q("x",Vi),Q("X",Qi),te("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),te("x",function(e,t,n){n._d=new Date(x(e))}),e.version="2.17.1",t(bt),e.fn=Zr,e.min=xt,e.max=wt,e.now=Pr,e.utc=u,e.unix=Pn,e.months=$n,e.isDate=a,e.locale=Ke,e.invalid=p,e.duration=Bt,e.isMoment=b,e.weekdays=Un,e.parseZone=On,e.localeData=tt,e.isDuration=St,e.monthsShort=qn,e.weekdaysMin=Vn,e.defineLocale=Je,e.updateLocale=et,e.locales=nt,e.weekdaysShort=Gn,e.normalizeUnits=F,e.relativeTimeRounding=di,e.relativeTimeThreshold=hi,e.calendarFormat=Ut,e.prototype=Zr,e}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("color-hash/dist/color-hash",[],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.ColorHash=e()}}(function(){return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return r(n?n:e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;ar&&(i=parseInt(i/n)),i=i*t+e.charCodeAt(o);return i};t.exports=i},{}],2:[function(e,t,n){var i=e("./bkdr-hash"),r=function(e){var t="#";return e.forEach(function(e){e<16&&(t+=0),t+=e.toString(16)}),t},o=function(e,t,n){e/=360;var i=n<.5?n*(1+t):n+t-n*t,r=2*n-i;return[e+1/3,e,e-1/3].map(function(e){return e<0&&e++,e>1&&e--,e=e<1/6?r+6*(i-r)*e:e<.5?i:e<2/3?r+6*(i-r)*(2/3-e):r,Math.round(255*e)})},a=function(e){e=e||{};var t=[e.lightness,e.saturation].map(function(e){return e=e||[.35,.5,.65],"[object Array]"===Object.prototype.toString.call(e)?e.concat():[e]});this.L=t[0],this.S=t[1],this.hash=e.hash||i};a.prototype.hsl=function(e){var t,n,i,r=this.hash(e);return t=r%359,r=parseInt(r/360),n=this.S[r%this.S.length],r=parseInt(r/this.S.length),i=this.L[r%this.L.length],[t,n,i]},a.prototype.rgb=function(e){var t=this.hsl(e);return o.apply(this,t)},a.prototype.hex=function(e){var t=this.rgb(e);return r(t)},t.exports=a},{"./bkdr-hash":1}]},{},[2])(2)}),define("color-hash",["color-hash/dist/color-hash"],function(e){return e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("push/push.min",[],function(){return new(t(e,e.document))}):"undefined"!=typeof module&&module.exports?module.exports=new(t(e,e.document)):e.Push=new(t(e,e.document))}("undefined"!=typeof window?window:this,function(e,t){var n=function(){var t=this,n=function(e){return void 0===e},i=function(e){return String(e)===e},r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=0,a="PushError: push.js is incompatible with browser.",s=!1,l={},c=function(t){var n=!1,i=l[t];if("undefined"!=typeof i){if(i.close)i.close();else if(i.cancel)i.cancel();else{if(!e.external||!e.external.msIsSiteMode)throw n=!0,new Error("Unable to close notification: unknown interface");e.external.msSiteModeClearIconOverlay()}if(!n)return d(t)}return!1},u=function(e){var t=o;return l[t]=e,o++,t},d=function(e){var t,n={},i=!1;for(t in l)l.hasOwnProperty(t)&&(t!=e?n[t]=l[t]:i=!0);return l=n,i},h=function(o,a){var s,l,h,f;if(a=a||{},t.lastWorkerPath=a.serviceWorker||"sw.js",e.Notification)try{s=new e.Notification(o,{icon:i(a.icon)||n(a.icon)?a.icon:a.icon.x32,body:a.body,tag:a.tag,requireInteraction:a.requireInteraction})}catch(t){e.navigator&&(e.navigator.serviceWorker.register(a.serviceWorker||"sw.js"),e.navigator.serviceWorker.ready.then(function(e){e.showNotification(o,{body:a.body,vibrate:a.vibrate,tag:a.tag,requireInteraction:a.requireInteraction})}))}else if(e.webkitNotifications)s=e.webkitNotifications.createNotification(a.icon,o,a.body),s.show();else if(navigator.mozNotification)s=navigator.mozNotification.createNotification(o,a.body,a.icon),s.show();else{if(!e.external||!e.external.msIsSiteMode())throw new Error("Unable to create notification: unknown interface");e.external.msSiteModeClearIconOverlay(),e.external.msSiteModeSetIconOverlay(i(a.icon)||n(a.icon)?a.icon:a.icon.x16,o),e.external.msSiteModeActivate(),s={}}return h=u(s),l={get:function(){return s},close:function(){c(h)}},a.timeout&&setTimeout(function(){l.close()},a.timeout),r(a.onShow)&&s.addEventListener("show",a.onShow),r(a.onError)&&s.addEventListener("error",a.onError),r(a.onClick)&&s.addEventListener("click",a.onClick),f=function(){d(h),r(a.onClose)&&a.onClose.call(this)},s.addEventListener("close",f),s.addEventListener("cancel",f),l},f={DEFAULT:"default",GRANTED:"granted",DENIED:"denied"},p=[f.GRANTED,f.DEFAULT,f.DENIED];t.Permission=f,t.Permission.request=function(n,i){if(!t.isSupported)throw new Error(a);if(callback=function(e){switch(e){case t.Permission.GRANTED:s=!0,n&&n();break;case t.Permission.DENIED:s=!1,i&&i()}},e.Notification&&e.Notification.requestPermission)Notification.requestPermission(callback);else{if(!e.webkitNotifications||!e.webkitNotifications.checkPermission)throw new Error(a);e.webkitNotifications.requestPermission(callback)}},t.Permission.has=function(){return s},t.Permission.get=function(){var n;if(!t.isSupported)throw new Error(a);if(e.Notification&&e.Notification.permissionLevel)n=e.Notification.permissionLevel;else if(e.webkitNotifications&&e.webkitNotifications.checkPermission)n=p[e.webkitNotifications.checkPermission()];else if(e.Notification&&e.Notification.permission)n=e.Notification.permission;else if(navigator.mozNotification)n=p.GRANTED;else{if(!e.external||void 0===e.external.msIsSiteMode())throw new Error(a);n=e.external.msIsSiteMode()?f.GRANTED:f.DEFAULT}return n},t.isSupported=function(){var t=!1;try{t=!!(e.Notification||e.webkitNotifications||navigator.mozNotification||e.external&&void 0!==e.external.msIsSiteMode())}catch(e){}return t}(),t.create=function(e,n){if(!t.isSupported)throw new Error(a);if(!i(e))throw new Error("PushError: Title of notification must be a string");return t.Permission.has()?new Promise(function(t,i){try{t(h(e,n))}catch(e){i(e)}}):new Promise(function(i,r){t.Permission.request(function(){try{i(h(e,n))}catch(e){r(e)}},function(){r("Permission request declined")})})},t.count=function(){var e,t=0;for(e in l)t++;return t},t.__lastWorkerPath=function(){return t.lastWorkerPath},t.close=function(e){var t;for(t in l)if(notification=l[t],notification.tag===e)return c(t)},t.clear=function(){var e=!0;for(key in l){var t=c(key);e=e&&t}return e}};return n}),define("push",["push/push.min"],function(e){return e}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("clipboard/dist/clipboard.min",[],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Clipboard=e()}}(function(){var e;return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return r(n?n:e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;ai;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var o=0,a=i.length;a>o;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o]);return r.length?n[e]=r:delete n[e],this}},t.exports=i},{}],8:[function(t,n,i){!function(r,o){if("function"==typeof e&&e.amd)e(["module","select"],o);else if("undefined"!=typeof i)o(n,t("select"));else{var a={exports:{}};o(a,r.select),r.clipboardAction=a.exports}}(this,function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(t),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n=h[r]&&r(0===r?9:1)&&(r+=1),d[n](e,r)[agoin].replace("%s",e)}function i(t,n){return n=n?e(n):new Date,(n-e(t))/1e3}function r(e){for(var t=1,n=0,i=Math.abs(e);e>=h[n]&&n1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]},zh_CN:function(e,t){if(0===t)return["刚刚","片刻后"];var n=u[parseInt(t/2)];return[e+n+"前",e+n+"后"]}},h=[60,60,24,7,365/7/12,12],f=6,p="datetime";return s.register=function(e,t){d[e]=t},s}),define("timeago/dist/timeago.min",[],function(){}),define("timeago",["timeago/dist/timeago.min"],function(e){return e}),define("dropzone/dist/dropzone",["require","exports","module"],function(e,t,n){(function(){var e,t,i,r,o,a,s,l,c=[].slice,u={}.hasOwnProperty,d=function(e,t){function n(){this.constructor=e}for(var i in t)u.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};s=function(){},t=function(){function e(){}return e.prototype.addEventListener=e.prototype.on,e.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},e.prototype.emit=function(){var e,t,n,i,r,o;if(i=arguments[0],e=2<=arguments.length?c.call(arguments,1):[],this._callbacks=this._callbacks||{},n=this._callbacks[i])for(r=0,o=n.length;r
    '),this.element.appendChild(t)),i=t.getElementsByTagName("span")[0],i&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,i; +return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),i=t.optWidth/t.optHeight,e.heighti?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*i):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/i),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:s,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:s,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t,i,r,o,a,s,l,c,u,d,h,f,p;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=n.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),o=0,l=d.length;o'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),i=function(t){return function(i){return i.preventDefault(),i.stopPropagation(),e.status===n.UPLOADING?n.confirm(t.options.dictCancelUploadConfirmation,function(){return t.removeFile(e)}):t.options.dictRemoveFileConfirmation?n.confirm(t.options.dictRemoveFileConfirmation,function(){return t.removeFile(e)}):t.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),p=[],s=0,u=f.length;s\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n
    '},i=function(){var e,t,n,i,r,o,a;for(i=arguments[0],n=2<=arguments.length?c.call(arguments,1):[],o=0,a=n.length;o'+this.options.dictDefaultMessage+"
    ")),this.clickableElements.length&&(i=function(e){return function(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null==e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!=e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!=e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.querySelector(e.options.hiddenInputContainer).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var t,n,r,o;if(n=e.hiddenFileInput.files,n.length)for(r=0,o=n.length;r',this.options.dictFallbackText&&(i+="

    "+this.options.dictFallbackText+"

    "),i+='
    ',t=n.createElement(i),"FORM"!==this.element.tagName?(r=n.createElement('
    '),r.appendChild(t)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=r?r:t)},n.prototype.getExistingFallback=function(){var e,t,n,i,r,o;for(t=function(e){var t,n,i;for(n=0,i=e.length;n0){for(a=["TB","GB","MB","KB","b"],n=s=0,l=a.length;s=t){i=e/Math.pow(this.options.filesizeBase,4-n),r=o;break}i=Math.round(10*i)/10}return""+i+" "+r},n.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},n.prototype.drop=function(e){var t,n;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length&&(n=e.dataTransfer.items,n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)))},n.prototype.paste=function(e){var t,n;if(null!=(null!=e&&null!=(n=e.clipboardData)?n.items:void 0))return this.emit("paste",e),t=e.clipboardData.items,t.length?this._addFilesFromItems(t):void 0},n.prototype.handleFiles=function(e){var t,n,i,r;for(r=[],n=0,i=e.length;n0){for(o=0,a=n.length;o1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):n.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)},n.prototype.addFile=function(e){return e.upload={progress:0,total:e.size,bytesSent:0},this.files.push(e),e.status=n.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){return function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}}(this))},n.prototype.enqueueFiles=function(e){var t,n,i;for(n=0,i=e.length;n=t)&&(i=this.getQueuedFiles(),i.length>0)){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-n));for(;e=R;u=0<=R?++H:--H)o.append(this._getParamName(u),e[u],this._renameFilename(e[u].name));return this.submitRequest(k,o,e)},n.prototype.submitRequest=function(e,t,n){return e.send(t)},n.prototype._finished=function(e,t,i){var r,o,a;for(o=0,a=e.length;ou;)t=r[4*(l-1)+3],0===t?o=l:u=l,l=o+u>>1;return c=l/a,0===c?1:c},a=function(e,t,n,i,r,a,s,l,c,u){var d;return d=o(t),e.drawImage(t,n,i,r,a,s,l,c,u/d)},r=function(e,t){var n,i,r,o,a,s,l,c,u;if(r=!1,u=!0,i=e.document,c=i.documentElement,n=i.addEventListener?"addEventListener":"attachEvent",l=i.addEventListener?"removeEventListener":"detachEvent",s=i.addEventListener?"":"on",o=function(n){if("readystatechange"!==n.type||"complete"===i.readyState)return("load"===n.type?e:i)[l](s+n.type,o,!1),!r&&(r=!0)?t.call(e,n.type||n):void 0},a=function(){var e;try{c.doScroll("left")}catch(t){return e=t,void setTimeout(a,50)}return o("poll")},"complete"!==i.readyState){if(i.createEventObject&&c.doScroll){try{u=!e.frameElement}catch(e){}u&&a()}return i[n](s+"DOMContentLoaded",o,!1),i[n](s+"readystatechange",o,!1),e[n](s+"load",o,!1)}},e._autoDiscoverFunction=function(){if(e.autoDiscover)return e.discover()},r(window,e._autoDiscoverFunction)}).call(this)}),define("dropzone",["dropzone/dist/dropzone"],function(e){return e}),define("text!dropzone/dist/basic.css",["module"],function(e){e.exports="/*\n * The MIT License\n * Copyright (c) 2012 Matias Meno \n */\n.dropzone, .dropzone * {\n box-sizing: border-box; }\n\n.dropzone {\n position: relative; }\n .dropzone .dz-preview {\n position: relative;\n display: inline-block;\n width: 120px;\n margin: 0.5em; }\n .dropzone .dz-preview .dz-progress {\n display: block;\n height: 15px;\n border: 1px solid #aaa; }\n .dropzone .dz-preview .dz-progress .dz-upload {\n display: block;\n height: 100%;\n width: 0;\n background: green; }\n .dropzone .dz-preview .dz-error-message {\n color: red;\n display: none; }\n .dropzone .dz-preview.dz-error .dz-error-message, .dropzone .dz-preview.dz-error .dz-error-mark {\n display: block; }\n .dropzone .dz-preview.dz-success .dz-success-mark {\n display: block; }\n .dropzone .dz-preview .dz-error-mark, .dropzone .dz-preview .dz-success-mark {\n position: absolute;\n display: none;\n left: 30px;\n top: 30px;\n width: 54px;\n height: 58px;\n left: 50%;\n margin-left: -27px; }\n"}),!function(e,t,n,i){n.swipebox=function(r,o){var a,s,l={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afterClose:null,afterMedia:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:""},c=this,u=[],d=r.selector,h=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),f=null!==h||t.createTouch!==i||"ontouchstart"in e||"onmsgesturechange"in e||navigator.msMaxTouchPoints,p=!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,g=e.innerWidth?e.innerWidth:n(e).width(),m=e.innerHeight?e.innerHeight:n(e).height(),v=0,b='
    \t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\t
    \t\t\t
    ';c.settings={},n.swipebox.close=function(){a.closeSlide()},n.swipebox.destroy=function(){n(t).off("click.swipebox")},n.swipebox.extend=function(){return a},c.init=function(){c.settings=n.extend({},l,o),n.isArray(r)?(u=r,a.target=n(e),a.init(c.settings.initialIndexOnArray)):n(t).on("click.swipebox",d,function(e){if("slide current"===e.target.parentNode.className)return!1;n.isArray(r)||(a.destroy(),s=n(d),a.actions()),u=[];var t,i,o;o||(i="data-rel",o=n(this).attr(i)),o||(i="rel",o=n(this).attr(i)),s=o&&""!==o&&"nofollow"!==o?n(d).filter("["+i+'="'+o+'"]'):n(d),s.each(function(){var e=null,t=null;n(this).attr("title")&&(e=n(this).attr("title")),n(this).attr("href")&&(t=n(this).attr("href")),u.push({href:t,title:e})}),t=s.index(n(this)),e.preventDefault(),e.stopPropagation(),a.target=n(e.target),a.init(t)})},a={init:function(e){c.settings.beforeOpen&&c.settings.beforeOpen(),this.target.trigger("swipebox-start"), +n.swipebox.isOpen=!0,this.build(),this.openSlide(e),this.openMedia(e),this.preloadMedia(e+1),this.preloadMedia(e-1),c.settings.afterOpen&&c.settings.afterOpen(e)},build:function(){var e,t=this;n("body").append(b),p&&c.settings.useSVG===!0&&(e=n("#swipebox-close").css("background-image"),e=e.replace("png","svg"),n("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":e})),h&&c.settings.removeBarsOnMobile&&n("#swipebox-bottom-bar, #swipebox-top-bar").remove(),n.each(u,function(){n("#swipebox-slider").append('
    ')}),t.setDim(),t.actions(),f&&t.gesture(),t.keyboard(),t.animBars(),t.resize()},setDim:function(){var t,i,r={};"onorientationchange"in e?e.addEventListener("orientationchange",function(){0===e.orientation?(t=g,i=m):90!==e.orientation&&-90!==e.orientation||(t=m,i=g)},!1):(t=e.innerWidth?e.innerWidth:n(e).width(),i=e.innerHeight?e.innerHeight:n(e).height()),r={width:t,height:i},n("#swipebox-overlay").css(r)},resize:function(){var t=this;n(e).resize(function(){t.setDim()}).resize()},supportTransition:function(){var e,n="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(e=0;e=h||l)){var m=.75-Math.abs(i)/b.height();b.css({top:i+"px"}),b.css({opacity:m}),l=!0}r=t,t=p.pageX-f.pageX,a=100*t/g,!c&&!l&&Math.abs(t)>=d&&(n("#swipebox-slider").css({"-webkit-transition":"",transition:""}),c=!0),c&&(t>0?0===e?n("#swipebox-overlay").addClass("leftSpringTouch"):(n("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),n("#swipebox-slider").css({"-webkit-transform":"translate3d("+(v+a)+"%, 0, 0)",transform:"translate3d("+(v+a)+"%, 0, 0)"})):0>t&&(u.length===e+1?n("#swipebox-overlay").addClass("rightSpringTouch"):(n("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),n("#swipebox-slider").css({"-webkit-transform":"translate3d("+(v+a)+"%, 0, 0)",transform:"translate3d("+(v+a)+"%, 0, 0)"}))))}),!1}).bind("touchend",function(e){if(e.preventDefault(),e.stopPropagation(),n("#swipebox-slider").css({"-webkit-transition":"-webkit-transform 0.4s ease",transition:"transform 0.4s ease"}),i=p.pageY-f.pageY,t=p.pageX-f.pageX,a=100*t/g,l)if(l=!1,Math.abs(i)>=2*h&&Math.abs(i)>Math.abs(o)){var u=i>0?b.height():-b.height();b.animate({top:u+"px",opacity:0},300,function(){s.closeSlide()})}else b.animate({top:0,opacity:1},300);else c?(c=!1,t>=d&&t>=r?s.getPrev():-d>=t&&r>=t&&s.getNext()):m.hasClass("visible-bars")?(s.clearTimeout(),s.hideBars()):(s.showBars(),s.setTimeout());n("#swipebox-slider").css({"-webkit-transform":"translate3d("+v+"%, 0, 0)",transform:"translate3d("+v+"%, 0, 0)"}),n("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),n(".touching").off("touchmove").removeClass("touching")})},setTimeout:function(){if(c.settings.hideBarsDelay>0){var t=this;t.clearTimeout(),t.timeout=e.setTimeout(function(){t.hideBars()},c.settings.hideBarsDelay)}},clearTimeout:function(){e.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var e=n("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?e.addClass("visible-bars"):(n("#swipebox-top-bar").animate({top:0},500),n("#swipebox-bottom-bar").animate({bottom:0},500),setTimeout(function(){e.addClass("visible-bars")},1e3))},hideBars:function(){var e=n("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?e.removeClass("visible-bars"):(n("#swipebox-top-bar").animate({top:"-50px"},500),n("#swipebox-bottom-bar").animate({bottom:"-50px"},500),setTimeout(function(){e.removeClass("visible-bars")},1e3))},animBars:function(){var e=this,t=n("#swipebox-top-bar, #swipebox-bottom-bar");t.addClass("visible-bars"),e.setTimeout(),n("#swipebox-slider").click(function(){t.hasClass("visible-bars")||(e.showBars(),e.setTimeout())}),n("#swipebox-bottom-bar").hover(function(){e.showBars(),t.addClass("visible-bars"),e.clearTimeout()},function(){c.settings.hideBarsDelay>0&&(t.removeClass("visible-bars"),e.setTimeout())})},keyboard:function(){var t=this;n(e).bind("keyup",function(e){e.preventDefault(),e.stopPropagation(),37===e.keyCode?t.getPrev():39===e.keyCode?t.getNext():27===e.keyCode&&t.closeSlide()})},actions:function(){var e=this,t="touchend click";u.length<2?(n("#swipebox-bottom-bar").hide(),i===u[1]&&n("#swipebox-top-bar").hide()):(n("#swipebox-prev").bind(t,function(t){t.preventDefault(),t.stopPropagation(),e.getPrev(),e.setTimeout()}),n("#swipebox-next").bind(t,function(t){t.preventDefault(),t.stopPropagation(),e.getNext(),e.setTimeout()})),n("#swipebox-close").bind(t,function(){e.closeSlide()})},setSlide:function(e,t){t=t||!1;var i=n("#swipebox-slider");v=100*-e,this.doCssTrans()?i.css({"-webkit-transform":"translate3d("+100*-e+"%, 0, 0)",transform:"translate3d("+100*-e+"%, 0, 0)"}):i.animate({left:100*-e+"%"}),n("#swipebox-slider .slide").removeClass("current"),n("#swipebox-slider .slide").eq(e).addClass("current"),this.setTitle(e),t&&i.fadeIn(),n("#swipebox-prev, #swipebox-next").removeClass("disabled"),0===e?n("#swipebox-prev").addClass("disabled"):e===u.length-1&&c.settings.loopAtEnd!==!0&&n("#swipebox-next").addClass("disabled")},openSlide:function(t){n("html").addClass("swipebox-html"),f?(n("html").addClass("swipebox-touch"),c.settings.hideCloseButtonOnMobile&&n("html").addClass("swipebox-no-close-button")):n("html").addClass("swipebox-no-touch"),n(e).trigger("resize"),this.setSlide(t,!0)},preloadMedia:function(e){var t=this,n=null;u[e]!==i&&(n=u[e].href),t.isVideo(n)?t.openMedia(e):setTimeout(function(){t.openMedia(e)},1e3)},openMedia:function(e){var t,r,o=this;return u[e]!==i&&(t=u[e].href),!(0>e||e>=u.length)&&(r=n("#swipebox-slider .slide").eq(e),void(o.isVideo(t)?(r.html(o.getVideo(t)),c.settings.afterMedia&&c.settings.afterMedia(e)):(r.addClass("slide-loading"),o.loadMedia(t,function(){r.removeClass("slide-loading"),r.html(this),c.settings.afterMedia&&c.settings.afterMedia(e)}))))},setTitle:function(e){var t=null;n("#swipebox-title").empty(),u[e]!==i&&(t=u[e].title),t?(n("#swipebox-top-bar").show(),n("#swipebox-title").append(t)):n("#swipebox-top-bar").hide()},isVideo:function(e){if(e){if(e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return!0;if(e.toLowerCase().indexOf("swipeboxvideo=1")>=0)return!0}},parseUri:function(e,i){var r=t.createElement("a"),o={};return r.href=decodeURIComponent(e),r.search&&(o=JSON.parse('{"'+r.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}')),n.isPlainObject(i)&&(o=n.extend(o,i,c.settings.queryStringData)),n.map(o,function(e,t){return e&&e>""?encodeURIComponent(t)+"="+encodeURIComponent(e):void 0}).join("&")},getVideo:function(e){var t="",n=e.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),i=e.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),r=e.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),o="";return n||i?(i&&(n=i),o=a.parseUri(e,{autoplay:c.settings.autoplayVideos?"1":"0",v:""}),t=''):r?(o=a.parseUri(e,{autoplay:c.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:c.settings.vimeoColor}),t=''):t='','
    '+t+"
    "},loadMedia:function(e,t){if(0===e.trim().indexOf("#"))t.call(n("
    ",{class:"swipebox-inline-container"}).append(n(e).clone().toggleClass(c.settings.toggleClassOnLoad)));else if(!this.isVideo(e)){var i=n("").on("load",function(){t.call(i)});i.attr("src",e)}},getNext:function(){var e,t=this,i=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));i+10?(e=n("#swipebox-slider .slide").eq(t).contents().find("iframe").attr("src"),n("#swipebox-slider .slide").eq(t).contents().find("iframe").attr("src",e),t--,this.setSlide(t),this.preloadMedia(t-1),c.settings.prevSlide&&c.settings.prevSlide(t)):(n("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){n("#swipebox-overlay").removeClass("leftSpring")},500))},nextSlide:function(e){},prevSlide:function(e){},closeSlide:function(){n("html").removeClass("swipebox-html"),n("html").removeClass("swipebox-touch"),n(e).trigger("resize"),this.destroy()},destroy:function(){n(e).unbind("keyup"),n("body").unbind("touchstart"),n("body").unbind("touchmove"),n("body").unbind("touchend"),n("#swipebox-slider").unbind(),n("#swipebox-overlay").remove(),n.isArray(r)||r.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),n.swipebox.isOpen=!1,c.settings.afterClose&&c.settings.afterClose()}},c.init()},n.fn.swipebox=function(e){if(!n.data(this,"_swipebox")){var t=new n.swipebox(this,e);this.data("_swipebox",t)}return this.data("_swipebox")}}(window,document,jQuery),define("swipebox/src/js/jquery.swipebox.min",["jquery"],function(){}),define("swipebox",["swipebox/src/js/jquery.swipebox.min"],function(e){return e}),define("text!swipebox/src/css/swipebox.min.css",["module"],function(e){e.exports="/*! Swipebox v1.3.0 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */html.swipebox-html.swipebox-touch{overflow:hidden!important}#swipebox-overlay img{border:none!important}#swipebox-overlay{width:100%;height:100%;position:fixed;top:0;left:0;z-index:99999!important;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#swipebox-container{position:relative;width:100%;height:100%}#swipebox-slider{-webkit-transition:-webkit-transform .4s ease;transition:transform .4s ease;height:100%;left:0;top:0;width:100%;white-space:nowrap;position:absolute;display:none;cursor:pointer}#swipebox-slider .slide{height:100%;width:100%;line-height:1px;text-align:center;display:inline-block}#swipebox-slider .slide:before{content:\"\";display:inline-block;height:50%;width:1px;margin-right:-1px}#swipebox-slider .slide .swipebox-inline-container,#swipebox-slider .slide .swipebox-video-container,#swipebox-slider .slide img{display:inline-block;max-height:100%;max-width:100%;margin:0;padding:0;width:auto;height:auto;vertical-align:middle}#swipebox-slider .slide .swipebox-video-container{background:0 0;max-width:1140px;max-height:100%;width:100%;padding:5%;-webkit-box-sizing:border-box;box-sizing:border-box}#swipebox-slider .slide .swipebox-video-container .swipebox-video{width:100%;height:0;padding-bottom:56.25%;overflow:hidden;position:relative}#swipebox-slider .slide .swipebox-video-container .swipebox-video iframe{width:100%!important;height:100%!important;position:absolute;top:0;left:0}#swipebox-slider .slide-loading{background:url(../img/loader.gif) center center no-repeat}#swipebox-bottom-bar,#swipebox-top-bar{-webkit-transition:.5s;transition:.5s;position:absolute;left:0;z-index:999;height:50px;width:100%}#swipebox-bottom-bar{bottom:-50px}#swipebox-bottom-bar.visible-bars{-webkit-transform:translate3d(0,-50px,0);transform:translate3d(0,-50px,0)}#swipebox-top-bar{top:-50px}#swipebox-top-bar.visible-bars{-webkit-transform:translate3d(0,50px,0);transform:translate3d(0,50px,0)}#swipebox-title{display:block;width:100%;text-align:center}#swipebox-close,#swipebox-next,#swipebox-prev{background-image:url(../img/icons.png);background-repeat:no-repeat;border:none!important;text-decoration:none!important;cursor:pointer;width:50px;height:50px;top:0}#swipebox-arrows{display:block;margin:0 auto;width:100%;height:50px}#swipebox-prev{background-position:-32px 13px;float:left}#swipebox-next{background-position:-78px 13px;float:right}#swipebox-close{top:0;right:0;position:absolute;z-index:9999;background-position:15px 12px}.swipebox-no-close-button #swipebox-close{display:none}#swipebox-next.disabled,#swipebox-prev.disabled{opacity:.3}.swipebox-no-touch #swipebox-overlay.rightSpring #swipebox-slider{-webkit-animation:rightSpring .3s;animation:rightSpring .3s}.swipebox-no-touch #swipebox-overlay.leftSpring #swipebox-slider{-webkit-animation:leftSpring .3s;animation:leftSpring .3s}.swipebox-touch #swipebox-container:after,.swipebox-touch #swipebox-container:before{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:all .3s ease;transition:all .3s ease;content:' ';position:absolute;z-index:999;top:0;height:100%;width:20px;opacity:0}.swipebox-touch #swipebox-container:before{left:0;-webkit-box-shadow:inset 10px 0 10px -8px #656565;box-shadow:inset 10px 0 10px -8px #656565}.swipebox-touch #swipebox-container:after{right:0;-webkit-box-shadow:inset -10px 0 10px -8px #656565;box-shadow:inset -10px 0 10px -8px #656565}.swipebox-touch #swipebox-overlay.leftSpringTouch #swipebox-container:before,.swipebox-touch #swipebox-overlay.rightSpringTouch #swipebox-container:after{opacity:1}@-webkit-keyframes rightSpring{0%{left:0}50%{left:-30px}100%{left:0}}@keyframes rightSpring{0%{left:0}50%{left:-30px}100%{left:0}}@-webkit-keyframes leftSpring{0%{left:0}50%{left:30px}100%{left:0}}@keyframes leftSpring{0%{left:0}50%{left:30px}100%{left:0}}@media screen and (min-width:800px){#swipebox-close{right:10px}#swipebox-arrows{width:92%;max-width:800px}}#swipebox-overlay{background:#0d0d0d}#swipebox-bottom-bar,#swipebox-top-bar{text-shadow:1px 1px 1px #000;background:#000;opacity:.95}#swipebox-top-bar{color:#fff!important;font-size:15px;line-height:43px;font-family:Helvetica,Arial,sans-serif}"}),!function(e,t){"object"==typeof exports?module.exports=t(e):"function"==typeof define&&define.amd?define("colors",[],function(){return t(e)}):e.Colors=t(e)}(this,function(e,t){"use strict";function n(e,n,i,o,a){if("string"==typeof n){var n=w.txt2color(n);i=n.type,g[i]=n[i],a=a!==t?a:n.alpha}else if(n)for(var s in n)e[i][s]=u(n[s]/d[i][s][1],0,1);return a!==t&&(e.alpha=u(+a,0,1)),r(i,o?e:t)}function i(e,t,n){var i=p.options.grey,r={};return r.RGB={r:e.r,g:e.g,b:e.b},r.rgb={r:t.r,g:t.g,b:t.b},r.alpha=n,r.equivalentGrey=f(i.r*e.r+i.g*e.g+i.b*e.b),r.rgbaMixBlack=l(t,{r:0,g:0,b:0},n,1),r.rgbaMixWhite=l(t,{r:1,g:1,b:1},n,1),r.rgbaMixBlack.luminance=s(r.rgbaMixBlack,!0),r.rgbaMixWhite.luminance=s(r.rgbaMixWhite,!0),p.options.customBG&&(r.rgbaMixCustom=l(t,p.options.customBG,n,1),r.rgbaMixCustom.luminance=s(r.rgbaMixCustom,!0),p.options.customBG.luminance=s(p.options.customBG,!0)),r}function r(e,t){var n,r,u,m=t||g,v=w,b=p.options,y=d,x=m.RND,k="",S="",C={hsl:"hsv",rgb:e},T=x.rgb;if("alpha"!==e){for(var E in y)if(!y[E][E]){e!==E&&(S=C[E]||"rgb",m[E]=v[S+"2"+E](m[S])),x[E]||(x[E]={}),n=m[E];for(k in n)x[E][k]=f(n[k]*y[E][k][1])}T=x.rgb,m.HEX=v.RGB2HEX(T),m.equivalentGrey=b.grey.r*m.rgb.r+b.grey.g*m.rgb.g+b.grey.b*m.rgb.b,m.webSave=r=o(T,51),m.webSmart=u=o(T,17),m.saveColor=T.r===r.r&&T.g===r.g&&T.b===r.b?"web save":T.r===u.r&&T.g===u.g&&T.b===u.b?"web smart":"",m.hueRGB=w.hue2RGB(m.hsv.h),t&&(m.background=i(T,m.rgb,m.alpha))}var _,L,D,M=m.rgb,H=m.alpha,z="luminance",A=m.background;return _=l(M,{r:0,g:0,b:0},H,1),_[z]=s(_,!0),m.rgbaMixBlack=_,L=l(M,{r:1,g:1,b:1},H,1),L[z]=s(L,!0),m.rgbaMixWhite=L,b.customBG&&(D=l(M,A.rgbaMixCustom,H,1),D[z]=s(D,!0),D.WCAG2Ratio=c(D[z],A.rgbaMixCustom[z]),m.rgbaMixBGMixCustom=D,D.luminanceDelta=h.abs(D[z]-A.rgbaMixCustom[z]),D.hueDelta=a(A.rgbaMixCustom,D,!0)),m.RGBLuminance=s(T),m.HUELuminance=s(m.hueRGB),b.convertCallback&&b.convertCallback(m,e),m}function o(e,t){var n={},i=0,r=t/2;for(var o in e)i=e[o]%t,n[o]=e[o]+(i>r?t-i:-i);return n}function a(e,t,n){return(h.max(e.r-t.r,t.r-e.r)+h.max(e.g-t.g,t.g-e.g)+h.max(e.b-t.b,t.b-e.b))*(n?255:1)/765}function s(e,t){for(var n=t?1:255,i=[e.r/n,e.g/n,e.b/n],r=p.options.luminance,o=i.length;o--;)i[o]=i[o]<=.03928?i[o]/12.92:h.pow((i[o]+.055)/1.055,2.4);return r.r*i[0]+r.g*i[1]+r.b*i[2]}function l(e,n,i,r){var o={},a=i!==t?i:1,s=r!==t?r:1,l=a+s*(1-a);for(var c in e)o[c]=(e[c]*a+n[c]*s*(1-a))/l;return o.a=l,o}function c(e,t){var n=1;return n=e>=t?(e+.05)/(t+.05):(t+.05)/(e+.05),f(100*n)/100}function u(e,t,n){return e>n?n:t>e?t:e}var d={rgb:{r:[0,255],g:[0,255],b:[0,255]},hsv:{h:[0,360],s:[0,100],v:[0,100]},hsl:{h:[0,360],s:[0,100],l:[0,100]},alpha:{alpha:[0,1]},HEX:{HEX:[0,16777215]}},h=e.Math,f=h.round,p={},g={},m={r:.298954,g:.586434,b:.114612},v={r:.2126,g:.7152,b:.0722},b=function(e){this.colors={RND:{}},this.options={color:"rgba(0,0,0,0)",grey:m,luminance:v,valueRanges:d},y(this,e||{})},y=function(e,i){var r,o=e.options;x(e);for(var a in i)i[a]!==t&&(o[a]=i[a]);r=o.customBG,o.customBG="string"==typeof r?w.txt2color(r).rgb:r,g=n(e.colors,o.color,t,!0)},x=function(e){p!==e&&(p=e,g=e.colors)};b.prototype.setColor=function(e,i,o){return x(this),e?n(this.colors,e,i,t,o):(o!==t&&(this.colors.alpha=u(o,0,1)),r(i))},b.prototype.setCustomBackground=function(e){return x(this),this.options.customBG="string"==typeof e?w.txt2color(e).rgb:e,n(this.colors,t,"rgb")},b.prototype.saveAsBackground=function(){return x(this),n(this.colors,t,"rgb",!0)},b.prototype.toString=function(e,t){return w.color2text((e||"rgb").toLowerCase(),this.colors,t)};var w={txt2color:function(e){var t={},n=e.replace(/(?:#|\)|%)/g,"").split("("),i=(n[1]||"").split(/,\s*/),r=n[1]?n[0].substr(0,3):"rgb",o="";if(t.type=r,t[r]={},n[1])for(var a=3;a--;)o=r[a]||r.charAt(a),t[r][o]=+i[a]/d[r][o][1];else t.rgb=w.HEX2rgb(n[0]);return t.alpha=i[3]?+i[3]:1,t},color2text:function(e,t,n){var i=n!==!1&&f(100*t.alpha)/100,r="number"==typeof i&&n!==!1&&(n||1!==i),o=t.RND.rgb,a=t.RND.hsl,s="hex"===e&&r,l="hex"===e&&!s,c="rgb"===e||s,u=c?o.r+", "+o.g+", "+o.b:l?"#"+t.HEX:a.h+", "+a.s+"%, "+a.l+"%";return l?u:(s?"rgb":e)+(r?"a":"")+"("+u+(r?", "+i:"")+")"},RGB2HEX:function(e){return((e.r<16?"0":"")+e.r.toString(16)+(e.g<16?"0":"")+e.g.toString(16)+(e.b<16?"0":"")+e.b.toString(16)).toUpperCase()},HEX2rgb:function(e){return e=e.split(""),{r:+("0x"+e[0]+e[e[3]?1:0])/255,g:+("0x"+e[e[3]?2:1]+(e[3]||e[1]))/255,b:+("0x"+(e[4]||e[2])+(e[5]||e[2]))/255}},hue2RGB:function(e){var t=6*e,n=~~t%6,i=6===t?0:t-n;return{r:f(255*[1,1-i,0,0,i,1][n]),g:f(255*[i,1,1,1-i,0,0][n]),b:f(255*[0,0,i,1,1,1-i][n])}},rgb2hsv:function(e){var t,n,i,r=e.r,o=e.g,a=e.b,s=0;return a>o&&(o=a+(a=o,0),s=-1),n=a,o>r&&(r=o+(o=r,0),s=-2/6-s,n=h.min(o,a)),t=r-n,i=r?t/r:0,{h:1e-15>i?g&&g.hsl&&g.hsl.h||0:t?h.abs(s+(o-a)/(6*t)):0,s:r?t/r:g&&g.hsv&&g.hsv.s||0,v:r}},hsv2rgb:function(e){var t=6*e.h,n=e.s,i=e.v,r=~~t,o=t-r,a=i*(1-n),s=i*(1-o*n),l=i*(1-(1-o)*n),c=r%6;return{r:[i,s,a,a,l,i][c],g:[l,i,i,s,a,a][c],b:[a,a,l,i,i,s][c]}},hsv2hsl:function(e){var t=(2-e.s)*e.v,n=e.s*e.v;return n=e.s?1>t?t?n/t:0:n/(2-t):0,{h:e.h,s:e.v||n?n:g&&g.hsl&&g.hsl.s||0,l:t/2}},rgb2hsl:function(e,t){var n=w.rgb2hsv(e);return w.hsv2hsl(t?n:g.hsv=n)},hsl2rgb:function(e){var t=6*e.h,n=e.s,i=e.l,r=.5>i?i*(1+n):i+n-n*i,o=i+i-r,a=r?(r-o)/r:0,s=~~t,l=t-s,c=r*a*l,u=o+c,d=r-c,h=s%6;return{r:[r,d,o,o,u,r][h],g:[u,r,r,d,o,o][h],b:[o,o,u,r,r,d][h]}}};return b}),function(e,t){"object"==typeof exports?module.exports=t(e,require("jquery"),require("colors")):"function"==typeof define&&define.amd?define("tinycolorpicker/jqColorPicker.min",["jquery","colors"],function(n,i){return t(e,n,i)}):t(e,e.jQuery,e.Colors)}(this,function(e,t,n,i){"use strict";function r(e){return e.value||e.getAttribute("value")||t(e).css("background-color")||"#FFF"}function o(e){return e=e.originalEvent&&e.originalEvent.touches?e.originalEvent.touches[0]:e,e.originalEvent?e.originalEvent:e}function a(e){return t(e.find(v.doRender)[0]||e[0])}function s(n){var i=t(this),o=i.offset(),s=t(e),u=v.gap;n?(b=a(i),b._colorMode=b.data("colorMode"),g.$trigger=i,(y||l()).css(v.positionCallback.call(g,i)||{left:(y._left=o.left)-((y._left+=y._width-(s.scrollLeft()+s.width()))+u>0?y._left+u:0),top:(y._top=o.top+i.outerHeight())-((y._top+=y._height-(s.scrollTop()+s.height()))+u>0?y._top+u:0)}).show(v.animationSpeed,function(){n!==!0&&(C.toggle(!!v.opacity)._width=C.width(),w._width=w.width(),w._height=w.height(),x._height=x.height(),m.setColor(r(b[0])),f(!0))}).off(".tcp").on(D,".cp-xy-slider,.cp-z-slider,.cp-alpha",c)):g.$trigger&&t(y).hide(v.animationSpeed,function(){f(!1),g.$trigger=null}).off(".tcp")}function l(){return t("head")[v.cssPrepend?"prepend":"append"]('"),t(A).css({margin:v.margin}).appendTo("body").show(0,function(){g.$UI=y=t(this),H=v.GPU&&y.css("perspective")!==i,x=t(".cp-z-slider",this),w=t(".cp-xy-slider",this),k=t(".cp-xy-cursor",this),S=t(".cp-z-cursor",this),C=t(".cp-alpha",this),T=t(".cp-alpha-cursor",this),v.buildCallback.call(g,y),y.prepend("
    ").children().eq(0).css("width",y.children().eq(0).width()),y._width=this.offsetWidth,y._height=this.offsetHeight}).hide()}function c(e){var n=this.className.replace(/cp-(.*?)(?:\s*|$)/,"$1").replace("-","_");(e.button||e.which)>1||(e.preventDefault&&e.preventDefault(),e.returnValue=!1,b._offset=t(this).offset(),(n="xy_slider"===n?u:"z_slider"===n?d:h)(e),f(),E.on(M,function(){E.off(".tcp")}).on(L,function(e){n(e),f()}))}function u(e){var t=o(e),n=t.pageX-b._offset.left,i=t.pageY-b._offset.top;m.setColor({s:n/w._width*100,v:100-i/w._height*100},"hsv")}function d(e){var t=o(e).pageY-b._offset.top;m.setColor({h:360-t/x._height*360},"hsv")}function h(e){var t=o(e).pageX-b._offset.left,n=t/C._width;m.setColor({},"rgb",n)}function f(e){var t=m.colors,n=t.hueRGB,r=(t.RND.rgb,t.RND.hsl,v.dark),o=v.light,a=m.toString(b._colorMode,v.forceAlpha),s=t.HUELuminance>.22?r:o,l=t.rgbaMixBlack.luminance>.22?r:o,c=(1-t.hsv.h)*x._height,u=t.hsv.s*w._width,d=(1-t.hsv.v)*w._height,h=t.alpha*C._width,f=H?"translate3d":"",g=b[0].value,y=b[0].hasAttribute("value")&&""===g&&e!==i;w._css={backgroundColor:"rgb("+n.r+","+n.g+","+n.b+")"},k._css={transform:f+"("+u+"px, "+d+"px, 0)",left:H?"":u,top:H?"":d,borderColor:t.RGBLuminance>.22?r:o},S._css={transform:f+"(0, "+c+"px, 0)",top:H?"":c,borderColor:"transparent "+s},C._css={backgroundColor:"#"+t.HEX},T._css={transform:f+"("+h+"px, 0, 0)",left:H?"":h,borderColor:l+" transparent"},b._css={backgroundColor:y?"":a,color:y?"":t.rgbaMixBGMixCustom.luminance>.22?r:o},b.text=y?"":g!==a?a:"",e!==i?p(e):z(p)}function p(e){w.css(w._css),k.css(k._css),S.css(S._css),C.css(C._css),T.css(T._css),v.doRender&&b.css(b._css),b.text&&b.val(b.text),v.renderCallback.call(g,b,"boolean"==typeof e?e:i)}var g,m,v,b,y,x,w,k,S,C,T,E=t(document),_=t(),L="touchmove.tcp mousemove.tcp pointermove.tcp",D="touchstart.tcp mousedown.tcp pointerdown.tcp",M="touchend.tcp mouseup.tcp pointerup.tcp",H=!1,z=e.requestAnimationFrame||e.webkitRequestAnimationFrame||function(e){e()},A='
    ',I=".cp-color-picker{position:absolute;overflow:hidden;padding:6px 6px 0;background-color:#444;color:#bbb;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:400;cursor:default;border-radius:5px}.cp-color-picker>div{position:relative;overflow:hidden}.cp-xy-slider{float:left;height:128px;width:128px;margin-bottom:6px;background:linear-gradient(to right,#FFF,rgba(255,255,255,0))}.cp-white{height:100%;width:100%;background:linear-gradient(rgba(0,0,0,0),#000)}.cp-xy-cursor{position:absolute;top:0;width:10px;height:10px;margin:-5px;border:1px solid #fff;border-radius:100%;box-sizing:border-box}.cp-z-slider{float:right;margin-left:6px;height:128px;width:20px;background:linear-gradient(red 0,#f0f 17%,#00f 33%,#0ff 50%,#0f0 67%,#ff0 83%,red 100%)}.cp-z-cursor{position:absolute;margin-top:-4px;width:100%;border:4px solid #fff;border-color:transparent #fff;box-sizing:border-box}.cp-alpha{clear:both;width:100%;height:16px;margin:6px 0;background:linear-gradient(to right,#444,rgba(0,0,0,0))}.cp-alpha-cursor{position:absolute;margin-left:-4px;height:100%;border:4px solid #fff;border-color:#fff transparent;box-sizing:border-box}",N=function(e){m=this.color=new n(e),v=m.options,g=this};N.prototype={render:f,toggle:s},t.fn.colorPicker=function(n){var i=this,o=function(){};return n=t.extend({animationSpeed:150,GPU:!0,doRender:!0,customBG:"#FFF",opacity:!0,renderCallback:o,buildCallback:o,positionCallback:o,body:document.body,scrollResize:!0,gap:4,dark:"#222",light:"#DDD"},n),!g&&n.scrollResize&&t(e).on("resize.tcp scroll.tcp",function(){g.$trigger&&g.toggle.call(g.$trigger[0],!0)}),_=_.add(this),this.colorPicker=g||new N(n),this.options=n,t(n.body).off(".tcp").on(D,function(e){-1===_.add(y).add(t(y).find(e.target)).index(e.target)&&s()}),this.on("focusin.tcp click.tcp",function(e){g.color.options=t.extend(g.color.options,v=i.options),s.call(this,e)}).on("change.tcp",function(){m.setColor(this.value||"#FFF"),i.colorPicker.render(!0)}).each(function(){var e=r(this),i=e.split("("),o=a(t(this));o.data("colorMode",i[1]?i[0].substr(0,3):"HEX").attr("readonly",v.preventFocus),n.doRender&&o.css({"background-color":e,color:function(){return m.setColor(e).rgbaMixBGMixCustom.luminance>.22?n.dark:n.light}})})},t.fn.colorPicker.destroy=function(){t("*").off(".tcp"),g.toggle(!1),_=t()}}),!function(e,t,n,i){"use strict";function r(e){var t=e.currentTarget,i=e.data?e.data.options:{},r=e.data?e.data.items:[],o=n(t).attr("data-fancybox")||"",a=0;e.preventDefault(),e.stopPropagation(),o?(r=r.length?r.filter('[data-fancybox="'+o+'"]'):n('[data-fancybox="'+o+'"]'),a=r.index(t),a<0&&(a=0)):r=[t],n.fancybox.open(r,i,a)}if(n){if(n.fn.fancybox)return void n.error("fancyBox already initialized");var o={loop:!1,margin:[44,0],gutter:50,keyboard:!0,arrows:!0,infobar:!1,toolbar:!0,buttons:["slideShow","fullScreen","thumbs","close"],idleTime:4,smallBtn:"auto",protect:!1,modal:!1,image:{preload:"auto"},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'',preload:!0,css:{},attr:{scrolling:"auto"}},animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'',spinnerTpl:'
    ',errorTpl:'

    {{ERROR}}

    ',btnTpl:{slideShow:'',fullScreen:'',thumbs:'',close:'',smallBtn:''},parentEl:"body",autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0},onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(e,t){return"image"===e.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{clickContent:function(e,t){return"image"===e.type&&"toggleControls"},clickSlide:function(e,t){return"image"===e.type?"toggleControls":"close"},dblclickContent:function(e,t){return"image"===e.type&&"zoom"},dblclickSlide:function(e,t){return"image"===e.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded.
    Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden.
    Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder"}}},a=n(e),s=n(t),l=0,c=function(e){return e&&e.hasOwnProperty&&e instanceof n},u=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}}(),d=function(){var e,n=t.createElement("fakeelement"),r={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in r)if(n.style[e]!==i)return r[e]}(),h=function(e){return e&&e.length&&e[0].offsetHeight},f=function(e,i,r){var a=this;a.opts=n.extend(!0,{index:r},o,i||{}),i&&n.isArray(i.buttons)&&(a.opts.buttons=i.buttons),a.id=a.opts.id||++l,a.group=[],a.currIndex=parseInt(a.opts.index,10)||0,a.prevIndex=null,a.prevPos=null,a.currPos=0,a.firstRun=null,a.createGroup(e),a.group.length&&(a.$lastFocus=n(t.activeElement).blur(),a.slides={},a.init(e))};n.extend(f.prototype,{init:function(){var e,t,i,r=this,o=r.group[r.currIndex].opts;r.scrollTop=s.scrollTop(),r.scrollLeft=s.scrollLeft(),n.fancybox.getInstance()||n.fancybox.isMobile||"hidden"===n("body").css("overflow")||(e=n("body").width(), +n("html").addClass("fancybox-enabled"),e=n("body").width()-e,e>1&&n("head").append('")),i="",n.each(o.buttons,function(e,t){i+=o.btnTpl[t]||""}),t=n(r.translate(r,o.baseTpl.replace("{{BUTTONS}}",i))).addClass("fancybox-is-hidden").attr("id","fancybox-container-"+r.id).addClass(o.baseClass).data("FancyBox",r).prependTo(o.parentEl),r.$refs={container:t},["bg","inner","infobar","toolbar","stage","caption"].forEach(function(e){r.$refs[e]=t.find(".fancybox-"+e)}),(!o.arrows||r.group.length<2)&&t.find(".fancybox-navigation").remove(),o.infobar||r.$refs.infobar.remove(),o.toolbar||r.$refs.toolbar.remove(),r.trigger("onInit"),r.activate(),r.jumpTo(r.currIndex)},translate:function(e,t){var n=e.opts.i18n[e.opts.lang];return t.replace(/\{\{(\w+)\}\}/g,function(e,t){var r=n[t];return r===i?e:r})},createGroup:function(e){var t=this,r=n.makeArray(e);n.each(r,function(e,r){var o,a,s,l,c={},u={},d=[];n.isPlainObject(r)?(c=r,u=r.opts||r):"object"===n.type(r)&&n(r).length?(o=n(r),d=o.data(),u="options"in d?d.options:{},u="object"===n.type(u)?u:{},c.src="src"in d?d.src:u.src||o.attr("href"),["width","height","thumb","type","filter"].forEach(function(e){e in d&&(u[e]=d[e])}),"srcset"in d&&(u.image={srcset:d.srcset}),u.$orig=o,c.type||c.src||(c.type="inline",c.src=r)):c={type:"html",src:r+""},c.opts=n.extend(!0,{},t.opts,u),n.fancybox.isMobile&&(c.opts=n.extend(!0,{},c.opts,c.opts.mobile)),a=c.type||c.opts.type,s=c.src||"",!a&&s&&(s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":s.match(/\.(pdf)((\?|#).*)?$/i)?a="pdf":"#"===s.charAt(0)&&(a="inline")),c.type=a,c.index=t.group.length,c.opts.$orig&&!c.opts.$orig.length&&delete c.opts.$orig,!c.opts.$thumb&&c.opts.$orig&&(c.opts.$thumb=c.opts.$orig.find("img:first")),c.opts.$thumb&&!c.opts.$thumb.length&&delete c.opts.$thumb,"function"===n.type(c.opts.caption)?c.opts.caption=c.opts.caption.apply(r,[t,c]):"caption"in d&&(c.opts.caption=d.caption),c.opts.caption=c.opts.caption===i?"":c.opts.caption+"","ajax"===a&&(l=s.split(/\s+/,2),l.length>1&&(c.src=l.shift(),c.opts.filter=l.shift())),"auto"==c.opts.smallBtn&&(n.inArray(a,["html","inline","ajax"])>-1?(c.opts.toolbar=!1,c.opts.smallBtn=!0):c.opts.smallBtn=!1),"pdf"===a&&(c.type="iframe",c.opts.iframe.preload=!1),c.opts.modal&&(c.opts=n.extend(!0,c.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),t.group.push(c)})},addEvents:function(){var i=this;i.removeEvents(),i.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),i.close(e)}).on("click.fb-prev touchend.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),i.previous()}).on("click.fb-next touchend.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),i.next()}),a.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&"resize"===e.originalEvent.type?u(function(){i.update()}):(i.$refs.stage.hide(),setTimeout(function(){i.$refs.stage.show(),i.update()},500))}),s.on("focusin.fb",function(e){var r=n.fancybox?n.fancybox.getInstance():null;r.isClosing||!r.current||!r.current.opts.trapFocus||n(e.target).hasClass("fancybox-container")||n(e.target).is(t)||r&&"fixed"!==n(e.target).css("position")&&!r.$refs.container.has(e.target).length&&(e.stopPropagation(),r.focus(),a.scrollTop(i.scrollTop).scrollLeft(i.scrollLeft))}),s.on("keydown.fb",function(e){var t=i.current,r=e.keyCode||e.which;if(t&&t.opts.keyboard&&!n(e.target).is("input")&&!n(e.target).is("textarea"))return 8===r||27===r?(e.preventDefault(),void i.close(e)):37===r||38===r?(e.preventDefault(),void i.previous()):39===r||40===r?(e.preventDefault(),void i.next()):void i.trigger("afterKeydown",e,r)}),i.group[i.currIndex].opts.idleTime&&(i.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseenter.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(){i.idleSecondsCounter=0,i.isIdle&&i.showControls(),i.isIdle=!1}),i.idleInterval=e.setInterval(function(){i.idleSecondsCounter++,i.idleSecondsCounter>=i.group[i.currIndex].opts.idleTime&&(i.isIdle=!0,i.idleSecondsCounter=0,i.hideControls())},1e3))},removeEvents:function(){var t=this;a.off("orientationchange.fb resize.fb"),s.off("focusin.fb keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),t.idleInterval&&(e.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(e){return this.jumpTo(this.currPos-1,e)},next:function(e){return this.jumpTo(this.currPos+1,e)},jumpTo:function(e,t,r){var o,a,s,l,c,u,d,f=this,p=f.group.length;if(!(f.isSliding||f.isClosing||f.isAnimating&&f.firstRun)){if(e=parseInt(e,10),a=f.current?f.current.opts.loop:f.opts.loop,!a&&(e<0||e>=p))return!1;if(o=f.firstRun=null===f.firstRun,!(p<2&&!o&&f.isSliding)){if(l=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(e),p>1&&((a||s.index>0)&&f.createSlide(e-1),(a||s.indexs.pos?"next":"previous"),l.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),l.isComplete=!1,t&&(s.isMoved||s.opts.transitionEffect)&&(s.isMoved?l.$slide.addClass(d):(d="fancybox-animated "+d+" fancybox-fx-"+s.opts.transitionEffect,n.fancybox.animate(l.$slide,d,t,function(){l.$slide.removeClass(d).removeAttr("style")}))))}}},createSlide:function(e){var t,i,r=this;return i=e%r.group.length,i=i<0?r.group.length+i:i,!r.slides[e]&&r.group[i]&&(t=n('
    ').appendTo(r.$refs.stage),r.slides[e]=n.extend(!0,{},r.group[i],{pos:e,$slide:t,isLoaded:!1}),r.updateSlide(r.slides[e])),r.slides[e]},scaleToActual:function(e,t,r){var o,a,s,l,c,u=this,d=u.current,h=d.$content,f=parseInt(d.$slide.width(),10),p=parseInt(d.$slide.height(),10),g=d.width,m=d.height;"image"!=d.type||d.hasError||!h||u.isAnimating||(n.fancybox.stop(h),u.isAnimating=!0,e=e===i?.5*f:e,t=t===i?.5*p:t,o=n.fancybox.getTranslate(h),l=g/o.width,c=m/o.height,a=.5*f-.5*g,s=.5*p-.5*m,g>f&&(a=o.left*l-(e*l-e),a>0&&(a=0),ap&&(s=o.top*c-(t*c-t),s>0&&(s=0),se.width||i.height>e.height))},isScaledDown:function(){var e=this,t=e.current,i=t.$content,r=!1;return i&&(r=n.fancybox.getTranslate(i),r=r.width1||Math.abs(n.height()-i.height)>1),i},loadSlide:function(e){var t,i,r,o=this;if(!e.isLoading&&!e.isLoaded){switch(e.isLoading=!0,o.trigger("beforeLoad",e),t=e.type,i=e.$slide,i.off("refresh").trigger("onReset").addClass("fancybox-slide--"+(t||"unknown")).addClass(e.opts.slideClass),t){case"image":o.setImage(e);break;case"iframe":o.setIframe(e);break;case"html":o.setContent(e,e.src||e.content);break;case"inline":n(e.src).length?o.setContent(e,n(e.src)):o.setError(e);break;case"ajax":o.showLoading(e),r=n.ajax(n.extend({},e.opts.ajax.settings,{url:e.src,success:function(t,n){"success"===n&&o.setContent(e,t)},error:function(t,n){t&&"abort"!==n&&o.setError(e)}})),i.one("onReset",function(){r.abort()});break;default:o.setError(e)}return!0}},setImage:function(t){var i,r,o,a,s=this,l=t.opts.image.srcset;if(l){o=e.devicePixelRatio||1,a=e.innerWidth*o,r=l.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,n){var i=parseInt(e.substring(0,e.length-1),10);return 0===n?t.url=e:void(i&&(t.value=i,t.postfix=e[e.length-1]))}),t}),r.sort(function(e,t){return e.value-t.value});for(var c=0;c=a||"x"===u.postfix&&u.value>=o){i=u;break}}!i&&r.length&&(i=r[r.length-1]),i&&(t.src=i.url,t.width&&t.height&&"w"==i.postfix&&(t.height=t.width/t.height*i.value,t.width=i.value))}t.$content=n('
    ').addClass("fancybox-is-hidden").appendTo(t.$slide),t.opts.preload!==!1&&t.opts.width&&t.opts.height&&(t.opts.thumb||t.opts.$thumb)?(t.width=t.opts.width,t.height=t.opts.height,t.$ghost=n("").one("error",function(){n(this).remove(),t.$ghost=null,s.setBigImage(t)}).one("load",function(){s.afterLoad(t),s.setBigImage(t)}).addClass("fancybox-image").appendTo(t.$content).attr("src",t.opts.thumb||t.opts.$thumb.attr("src"))):s.setBigImage(t)},setBigImage:function(e){var t=this,i=n("");e.$image=i.one("error",function(){t.setError(e)}).one("load",function(){clearTimeout(e.timouts),e.timouts=null,t.isClosing||(e.width=this.naturalWidth,e.height=this.naturalHeight,e.opts.image.srcset&&i.attr("sizes","100vw").attr("srcset",e.opts.image.srcset),t.hideLoading(e),e.$ghost?e.timouts=setTimeout(function(){e.timouts=null,e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))):t.afterLoad(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),i[0].complete?i.trigger("load"):i[0].error?i.trigger("error"):e.timouts=setTimeout(function(){i[0].complete||e.hasError||t.showLoading(e)},100)},setIframe:function(e){var t,r=this,o=e.opts.iframe,a=e.$slide;e.$content=n('
    ').css(o.css).appendTo(a),t=n(o.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(o.attr).appendTo(e.$content),o.preload?(r.showLoading(e),t.on("load.fb error.fb",function(t){this.isReady=1,e.$slide.trigger("refresh"),r.afterLoad(e)}),a.on("refresh.fb",function(){var n,r,a,s,l,c=e.$content;if(1===t[0].isReady){try{n=t.contents(),r=n.find("body")}catch(e){}r&&r.length&&(o.css.width===i||o.css.height===i)&&(a=t[0].contentWindow.document.documentElement.scrollWidth,s=Math.ceil(r.outerWidth(!0)+(c.width()-a)),l=Math.ceil(r.outerHeight(!0)),c.css({width:o.css.width===i?s+(c.outerWidth()-c.innerWidth()):o.css.width,height:o.css.height===i?l+(c.outerHeight()-c.innerHeight()):o.css.height})),c.removeClass("fancybox-is-hidden")}})):this.afterLoad(e),t.attr("src",e.src),e.opts.smallBtn===!0&&e.$content.prepend(r.translate(e,e.opts.btnTpl.smallBtn)),a.one("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank")}catch(e){}n(this).empty(),e.isLoaded=!1})},setContent:function(e,t){var i=this;i.isClosing||(i.hideLoading(e),e.$slide.empty(),c(t)&&t.parent().length?(t.parent(".fancybox-slide--inline").trigger("onReset"),e.$placeholder=n("
    ").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===n.type(t)&&(t=n("
    ").append(n.trim(t)).contents(),3===t[0].nodeType&&(t=n("
    ").html(t))),e.opts.filter&&(t=n("
    ").html(t).find(e.opts.filter))),e.$slide.one("onReset",function(){e.$placeholder&&(e.$placeholder.after(t.hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(n(this).empty(),e.isLoaded=!1)}),e.$content=n(t).appendTo(e.$slide),e.opts.smallBtn&&!e.$smallBtn&&(e.$smallBtn=n(i.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),this.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.removeClass("fancybox-slide--"+e.type),this.setContent(e,this.translate(e,e.opts.errorTpl))},showLoading:function(e){var t=this;e=e||t.current,e&&!e.$spinner&&(e.$spinner=n(t.opts.spinnerTpl).appendTo(e.$slide))},hideLoading:function(e){var t=this;e=e||t.current,e&&e.$spinner&&(e.$spinner.remove(),delete e.$spinner)},afterLoad:function(e){var t=this;t.isClosing||(e.isLoading=!1,e.isLoaded=!0,t.trigger("afterLoad",e),t.hideLoading(e),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",function(e){return 2==e.button&&e.preventDefault(),!0}),"image"===e.type&&n('
    ').appendTo(e.$content)),t.revealContent(e))},revealContent:function(e){var t,r,o,a,s,l=this,c=e.$slide,u=!1;return t=e.opts[l.firstRun?"animationEffect":"transitionEffect"],o=e.opts[l.firstRun?"animationDuration":"transitionDuration"],o=parseInt(e.forcedDuration===i?o:e.forcedDuration,10),!e.isMoved&&e.pos===l.currPos&&o||(t=!1),"zoom"!==t||e.pos===l.currPos&&o&&"image"===e.type&&!e.hasError&&(u=l.getThumbPos(e))||(t="fade"),"zoom"===t?(s=l.getFitPos(e),s.scaleX=Math.round(s.width/u.width*100)/100,s.scaleY=Math.round(s.height/u.height*100)/100,delete s.width,delete s.height,a=e.opts.zoomOpacity,"auto"==a&&(a=Math.abs(e.width/e.height-u.width/u.height)>.1),a&&(u.opacity=.1,s.opacity=1),n.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),u),h(e.$content),void n.fancybox.animate(e.$content,s,o,function(){l.complete()})):(l.updateSlide(e),t?(n.fancybox.stop(c),r="fancybox-animated fancybox-slide--"+(e.pos>l.prevPos?"next":"previous")+" fancybox-fx-"+t,c.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(r),e.$content.removeClass("fancybox-is-hidden"),h(c),void n.fancybox.animate(c,"fancybox-slide--current",o,function(t){c.removeClass(r).removeAttr("style"),e.pos===l.currPos&&l.complete()},!0)):(h(c),e.$content.removeClass("fancybox-is-hidden"),void(e.pos===l.currPos&&l.complete())))},getThumbPos:function(i){var r,o=this,a=!1,s=function(t){for(var i,r=t[0],o=r.getBoundingClientRect(),a=[];null!==r.parentElement;)"hidden"!==n(r.parentElement).css("overflow")&&"auto"!==n(r.parentElement).css("overflow")||a.push(r.parentElement.getBoundingClientRect()),r=r.parentElement;return i=a.every(function(e){var t=Math.min(o.right,e.right)-Math.max(o.left,e.left),n=Math.min(o.bottom,e.bottom)-Math.max(o.top,e.top);return t>0&&n>0}),i&&o.bottom>0&&o.right>0&&o.left=e.currPos-1&&i.pos<=e.currPos+1?r[i.pos]=i:i&&(n.fancybox.stop(i.$slide),i.$slide.unbind().remove())}),e.slides=r,e.updateCursor(),e.trigger("afterShow"),(n(t.activeElement).is("[disabled]")||i.opts.autoFocus&&"image"!=i.type&&"iframe"!==i.type)&&e.focus())},preload:function(){var e,t,n=this;n.group.length<2||(e=n.slides[n.currPos+1],t=n.slides[n.currPos-1],e&&"image"===e.type&&n.loadSlide(e),t&&"image"===t.type&&n.loadSlide(t))},focus:function(){var e,t=this.current;this.isClosing||(e=t&&t.isComplete?t.$slide.find("button,:input,[tabindex],a").filter(":not([disabled]):visible:first"):null,e=e&&e.length?e:this.$refs.container,e.focus())},activate:function(){var e=this;n(".fancybox-container").each(function(){var t=n(this).data("FancyBox");t&&t.uid!==e.uid&&!t.isClosing&&t.trigger("onDeactivate")}),e.current&&(e.$refs.container.index()>0&&e.$refs.container.prependTo(t.body),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(e,t){var i,r,o,a,s,l,c=this,h=c.current,f=function(){c.cleanUp(e)};return!(c.isClosing||(c.isClosing=!0,c.trigger("beforeClose",e)===!1?(c.isClosing=!1,u(function(){c.update()}),1):(c.removeEvents(),h.timouts&&clearTimeout(h.timouts),o=h.$content,i=h.opts.animationEffect,r=n.isNumeric(t)?t:i?h.opts.animationDuration:0,h.$slide.off(d).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),h.$slide.siblings().trigger("onReset").remove(),r&&c.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),c.hideLoading(h),c.hideControls(),c.updateCursor(),"zoom"!==i||e!==!0&&o&&r&&"image"===h.type&&!h.hasError&&(l=c.getThumbPos(h))||(i="fade"),"zoom"===i?(n.fancybox.stop(o),s=n.fancybox.getTranslate(o),s.width=s.width*s.scaleX,s.height=s.height*s.scaleY,a=h.opts.zoomOpacity,"auto"==a&&(a=Math.abs(h.width/h.height-l.width/l.height)>.1),a&&(l.opacity=0),s.scaleX=s.width/l.width,s.scaleY=s.height/l.height,s.width=l.width,s.height=l.height,n.fancybox.setTranslate(h.$content,s),n.fancybox.animate(h.$content,l,r,f),0):(i&&r?e===!0?setTimeout(f,r):n.fancybox.animate(h.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+i,r,f):f(),0))))},cleanUp:function(e){var t,i=this;i.current.$slide.trigger("onReset"),i.$refs.container.empty().remove(),i.trigger("afterClose",e),i.$lastFocus&&!i.current.focusBack&&i.$lastFocus.focus(),i.current=null,t=n.fancybox.getInstance(),t?t.activate():(a.scrollTop(i.scrollTop).scrollLeft(i.scrollLeft),n("html").removeClass("fancybox-enabled"),n("#fancybox-style-noscroll").remove())},trigger:function(e,t){var i,r=Array.prototype.slice.call(arguments,1),o=this,a=t&&t.opts?t:o.current;return a?r.unshift(a):a=o,r.unshift(o),n.isFunction(a.opts[e])&&(i=a.opts[e].apply(a,r)),i===!1?i:void("afterClose"===e?s.trigger(e+".fb",r):o.$refs.container.trigger(e+".fb",r))},updateControls:function(e){var t=this,i=t.current,r=i.index,o=i.opts,a=o.caption,s=t.$refs.caption;i.$slide.trigger("refresh"),t.$caption=a&&a.length?s.html(a):null,t.isHiddenControls||t.showControls(),n("[data-fancybox-count]").html(t.group.length),n("[data-fancybox-index]").html(r+1),n("[data-fancybox-prev]").prop("disabled",!o.loop&&r<=0),n("[data-fancybox-next]").prop("disabled",!o.loop&&r>=t.group.length-1)},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var e=this,t=e.current?e.current.opts:e.opts,n=e.$refs.container;e.isHiddenControls=!1,e.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&e.group.length>1)).toggleClass("fancybox-show-nav",!!(t.arrows&&e.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal),e.$caption?n.addClass("fancybox-show-caption "):n.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.1.20",defaults:o,getInstance:function(e){var t=n('.fancybox-container:not(".fancybox-is-closing"):first').data("FancyBox"),i=Array.prototype.slice.call(arguments,1);return t instanceof f&&("string"===n.type(e)?t[e].apply(t,i):"function"===n.type(e)&&e.apply(t,i),t)},open:function(e,t,n){return new f(e,t,n)},close:function(e){var t=this.getInstance();t&&(t.close(),e===!0&&this.close())},destroy:function(){this.close(!0),s.off("click.fb-start")},isMobile:t.createTouch!==i&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:function(){var n=t.createElement("div");return e.getComputedStyle&&e.getComputedStyle(n).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(e){var t;if(!e||!e.length)return!1;if(t=e.eq(0).css("transform"),t&&t.indexOf("matrix")!==-1?(t=t.split("(")[1],t=t.split(")")[0],t=t.split(",")):t=[],t.length)t=t.length>10?[t[13],t[12],t[0],t[5]]:[t[5],t[4],t[0],t[3]],t=t.map(parseFloat);else{t=[0,0,1,1];var n=/\.*translate\((.*)px,(.*)px\)/i,i=n.exec(e.eq(0).attr("style"));i&&(t[0]=parseFloat(i[2]),t[1]=parseFloat(i[1]))}return{top:t[0],left:t[1],scaleX:t[2],scaleY:t[3],opacity:parseFloat(e.css("opacity")),width:e.width(),height:e.height()}},setTranslate:function(e,t){var n="",r={};if(e&&t)return t.left===i&&t.top===i||(n=(t.left===i?e.position().left:t.left)+"px, "+(t.top===i?e.position().top:t.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),t.scaleX!==i&&t.scaleY!==i&&(n=(n.length?n+" ":"")+"scale("+t.scaleX+", "+t.scaleY+")"),n.length&&(r.transform=n),t.opacity!==i&&(r.opacity=t.opacity),t.width!==i&&(r.width=t.width),t.height!==i&&(r.height=t.height),e.css(r)},animate:function(e,t,r,o,a){var s=d||"transitionend";n.isFunction(r)&&(o=r,r=null),n.isPlainObject(t)||e.removeAttr("style"),e.on(s,function(r){(!r||!r.originalEvent||e.is(r.originalEvent.target)&&"z-index"!=r.originalEvent.propertyName)&&(e.off(s),n.isPlainObject(t)?t.scaleX!==i&&t.scaleY!==i&&(e.css("transition-duration","0ms"),t.width=e.width()*t.scaleX,t.height=e.height()*t.scaleY,t.scaleX=1,t.scaleY=1,n.fancybox.setTranslate(e,t)):a!==!0&&e.removeClass(t),n.isFunction(o)&&o(r))}),n.isNumeric(r)&&e.css("transition-duration",r+"ms"),n.isPlainObject(t)?n.fancybox.setTranslate(e,t):e.addClass(t),e.data("timer",setTimeout(function(){e.trigger("transitionend")},r+16))},stop:function(e){clearTimeout(e.data("timer")),e.off(d)}},n.fn.fancybox=function(e){var t;return e=e||{},t=e.selector||!1,t?n("body").off("click.fb-start",t).on("click.fb-start",t,{items:n(t),options:e},r):this.off("click.fb-start").on("click.fb-start",{items:this,options:e},r),this},s.on("click.fb-start","[data-fancybox]",r)}}(window,document,window.jQuery),function(e){"use strict";var t=function(t,n,i){if(t)return i=i||"","object"===e.type(i)&&(i=e.param(i,!0)),e.each(n,function(e,n){t=t.replace("$"+e,n||"")}),i.length&&(t+=(t.indexOf("?")>0?"&":"?")+i),t},n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-zA-Z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/?ll="+(e[9]?e[9]+"&z="+Math.floor(e[10])+(e[12]?e[12].replace(/^\//,"&"):""):e[12])+"&output="+(e[12]&&e[12].indexOf("layer=c")>0?"svembed":"embed")}}};e(document).on("onInit.fb",function(i,r){e.each(r.group,function(i,r){var o,a,s,l,c,u,d,h=r.src||"",f=!1;r.type||(o=e.extend(!0,{},n,r.opts.media),e.each(o,function(n,i){if(s=h.match(i.matcher),u={},d=n,s){if(f=i.type,i.paramPlace&&s[i.paramPlace]){c=s[i.paramPlace],"?"==c[0]&&(c=c.substring(1)),c=c.split("&");for(var o=0;ot.clientHeight,o=("scroll"===i||"auto"===i)&&t.scrollWidth>t.clientWidth;return r||o},c=function(e){for(var t=!1;!(t=l(e.get(0)))&&(e=e.parent(),e.length&&!e.hasClass("fancybox-stage")&&!e.is("body")););return t},u=function(e){var t=this;t.instance=e,t.$bg=e.$refs.bg,t.$stage=e.$refs.stage,t.$container=e.$refs.container,t.destroy(),t.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(t,"ontouchstart"))};u.prototype.destroy=function(){this.$container.off(".fb.touch")},u.prototype.ontouchstart=function(i){var r=this,l=n(i.target),u=r.instance,d=u.current,h=d.$content,f="touchstart"==i.type;if(f&&r.$container.off("mousedown.fb.touch"),!d||r.instance.isAnimating||r.instance.isClosing)return i.stopPropagation(),void i.preventDefault();if((!i.originalEvent||2!=i.originalEvent.button)&&l.length&&!s(l)&&!s(l.parent())&&!(i.originalEvent.clientX>l[0].clientWidth+l.offset().left)&&(r.startPoints=o(i),r.startPoints&&!(r.startPoints.length>1&&u.isSliding))){if(r.$target=l,r.$content=h,r.canTap=!0,n(t).off(".fb.touch"),n(t).on(f?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(r,"ontouchend")),n(t).on(f?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(r,"ontouchmove")),i.stopPropagation(),!u.current.opts.touch&&!u.canPan()||!l.is(r.$stage)&&!r.$stage.find(l).length)return void(l.is("img")&&i.preventDefault());n.fancybox.isMobile&&(c(r.$target)||c(r.$target.parent()))||i.preventDefault(),r.canvasWidth=Math.round(d.$slide[0].clientWidth),r.canvasHeight=Math.round(d.$slide[0].clientHeight),r.startTime=(new Date).getTime(),r.distanceX=r.distanceY=r.distance=0,r.isPanning=!1,r.isSwiping=!1,r.isZooming=!1,r.sliderStartPos=r.sliderLastPos||{top:0,left:0},r.contentStartPos=n.fancybox.getTranslate(r.$content),r.contentLastPos=null,1!==r.startPoints.length||r.isZooming||(r.canTap=!u.isSliding,"image"===d.type&&(r.contentStartPos.width>r.canvasWidth+1||r.contentStartPos.height>r.canvasHeight+1)?(n.fancybox.stop(r.$content),r.$content.css("transition-duration","0ms"),r.isPanning=!0):r.isSwiping=!0,r.$container.addClass("fancybox-controls--isGrabbing")),2!==r.startPoints.length||u.isAnimating||d.hasError||"image"!==d.type||!d.isLoaded&&!d.$ghost||(r.isZooming=!0,r.isSwiping=!1,r.isPanning=!1,n.fancybox.stop(r.$content),r.$content.css("transition-duration","0ms"),r.centerPointStartX=.5*(r.startPoints[0].x+r.startPoints[1].x)-n(e).scrollLeft(),r.centerPointStartY=.5*(r.startPoints[0].y+r.startPoints[1].y)-n(e).scrollTop(),r.percentageOfImageAtPinchPointX=(r.centerPointStartX-r.contentStartPos.left)/r.contentStartPos.width,r.percentageOfImageAtPinchPointY=(r.centerPointStartY-r.contentStartPos.top)/r.contentStartPos.height,r.startDistanceBetweenFingers=a(r.startPoints[0],r.startPoints[1]))}},u.prototype.ontouchmove=function(e){var t=this;if(t.newPoints=o(e),n.fancybox.isMobile&&(c(t.$target)||c(t.$target.parent())))return e.stopPropagation(),void(t.canTap=!1);if((t.instance.current.opts.touch||t.instance.canPan())&&t.newPoints&&t.newPoints.length&&(t.distanceX=a(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=a(t.newPoints[0],t.startPoints[0],"y"),t.distance=a(t.newPoints[0],t.startPoints[0]),t.distance>0)){if(!t.$target.is(t.$stage)&&!t.$stage.find(t.$target).length)return;e.stopPropagation(),e.preventDefault(),t.isSwiping?t.onSwipe():t.isPanning?t.onPan():t.isZooming&&t.onZoom()}},u.prototype.onSwipe=function(){var t,o=this,a=o.isSwiping,s=o.sliderStartPos.left||0;a===!0?Math.abs(o.distance)>10&&(o.canTap=!1,o.instance.group.length<2&&o.instance.opts.touch.vertical?o.isSwiping="y":o.instance.isSliding||o.instance.opts.touch.vertical===!1||"auto"===o.instance.opts.touch.vertical&&n(e).width()>800?o.isSwiping="x":(t=Math.abs(180*Math.atan2(o.distanceY,o.distanceX)/Math.PI),o.isSwiping=t>45&&t<135?"y":"x"),o.instance.isSliding=o.isSwiping,o.startPoints=o.newPoints,n.each(o.instance.slides,function(e,t){n.fancybox.stop(t.$slide),t.$slide.css("transition-duration","0ms"),t.inTransition=!1,t.pos===o.instance.current.pos&&(o.sliderStartPos.left=n.fancybox.getTranslate(t.$slide).left)}),o.instance.SlideShow&&o.instance.SlideShow.isActive&&o.instance.SlideShow.stop()):("x"==a&&(o.distanceX>0&&(o.instance.group.length<2||0===o.instance.current.index&&!o.instance.current.opts.loop)?s+=Math.pow(o.distanceX,.8):o.distanceX<0&&(o.instance.group.length<2||o.instance.current.index===o.instance.group.length-1&&!o.instance.current.opts.loop)?s-=Math.pow(-o.distanceX,.8):s+=o.distanceX), +o.sliderLastPos={top:"x"==a?0:o.sliderStartPos.top+o.distanceY,left:s},o.requestId&&(r(o.requestId),o.requestId=null),o.requestId=i(function(){o.sliderLastPos&&(n.each(o.instance.slides,function(e,t){var i=t.pos-o.instance.currPos;n.fancybox.setTranslate(t.$slide,{top:o.sliderLastPos.top,left:o.sliderLastPos.left+i*o.canvasWidth+i*t.opts.gutter})}),o.$container.addClass("fancybox-is-sliding"))}))},u.prototype.onPan=function(){var e,t,o,a=this;a.canTap=!1,e=a.contentStartPos.width>a.canvasWidth?a.contentStartPos.left+a.distanceX:a.contentStartPos.left,t=a.contentStartPos.top+a.distanceY,o=a.limitMovement(e,t,a.contentStartPos.width,a.contentStartPos.height),o.scaleX=a.contentStartPos.scaleX,o.scaleY=a.contentStartPos.scaleY,a.contentLastPos=o,a.requestId&&(r(a.requestId),a.requestId=null),a.requestId=i(function(){n.fancybox.setTranslate(a.$content,a.contentLastPos)})},u.prototype.limitMovement=function(e,t,n,i){var r,o,a,s,l=this,c=l.canvasWidth,u=l.canvasHeight,d=l.contentStartPos.left,h=l.contentStartPos.top,f=l.distanceX,p=l.distanceY;return r=Math.max(0,.5*c-.5*n),o=Math.max(0,.5*u-.5*i),a=Math.min(c-n,.5*c-.5*n),s=Math.min(u-i,.5*u-.5*i),n>c&&(f>0&&e>r&&(e=r-1+Math.pow(-r+d+f,.8)||0),f<0&&eu&&(p>0&&t>o&&(t=o-1+Math.pow(-o+h+p,.8)||0),p<0&&to?(e=e>0?0:e,e=ea?(t=t>0?0:t,t=t50?(n.fancybox.animate(t.instance.current.$slide,{top:t.sliderStartPos.top+t.distanceY+150*t.velocityY,opacity:0},150),i=t.instance.close(!0,300)):"x"==e&&t.distanceX>50&&t.instance.group.length>1?i=t.instance.previous(t.speedX):"x"==e&&t.distanceX<-50&&t.instance.group.length>1&&(i=t.instance.next(t.speedX)),i!==!1||"x"!=e&&"y"!=e||t.instance.jumpTo(t.instance.current.index,150),t.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var e,t,i,r=this;r.contentLastPos&&(r.instance.current.opts.touch.momentum===!1?(e=r.contentLastPos.left,t=r.contentLastPos.top):(e=r.contentLastPos.left+r.velocityX*r.speed,t=r.contentLastPos.top+r.velocityY*r.speed),i=r.limitPosition(e,t,r.contentStartPos.width,r.contentStartPos.height),i.width=r.contentStartPos.width,i.height=r.contentStartPos.height,n.fancybox.animate(r.$content,i,330))},u.prototype.endZooming=function(){var e,t,i,r,o=this,a=o.instance.current,s=o.newWidth,l=o.newHeight;o.contentLastPos&&(e=o.contentLastPos.left,t=o.contentLastPos.top,r={top:t,left:e,width:s,height:l,scaleX:1,scaleY:1},n.fancybox.setTranslate(o.$content,r),sa.width||l>a.height?o.instance.scaleToActual(o.centerPointStartX,o.centerPointStartY,150):(i=o.limitPosition(e,t,s,l),n.fancybox.setTranslate(o.content,n.fancybox.getTranslate(o.$content)),n.fancybox.animate(o.$content,i,150)))},u.prototype.onTap=function(e){var t,i=this,r=n(e.target),a=i.instance,s=a.current,l=e&&o(e)||i.startPoints,c=l[0]?l[0].x-i.$stage.offset().left:0,u=l[0]?l[0].y-i.$stage.offset().top:0,d=function(t){var r=s.opts[t];if(n.isFunction(r)&&(r=r.apply(a,[s,e])),r)switch(r){case"close":a.close(i.startEvent);break;case"toggleControls":a.toggleControls(!0);break;case"next":a.next();break;case"nextOrClose":a.group.length>1?a.next():a.close(i.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(a.canPan()?a.scaleToFit():a.isScaledDown()?a.scaleToActual(c,u):a.group.length<2&&a.close(i.startEvent))}};if(!(e.originalEvent&&2==e.originalEvent.button||a.isSliding||c>r[0].clientWidth+r.offset().left)){if(r.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))t="Outside";else if(r.is(".fancybox-slide"))t="Slide";else{if(!a.current.$content||!a.current.$content.has(e.target).length)return;t="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(c-i.tapX)>50||Math.abs(u-i.tapY)>50||a.isSliding)return this;d("dblclick"+t)}else i.tapX=c,i.tapY=u,s.opts["dblclick"+t]&&s.opts["dblclick"+t]!==s.opts["click"+t]?i.tapped=setTimeout(function(){i.tapped=null,d("click"+t)},300):d("click"+t);return this}},n(t).on("onActivate.fb",function(e,t){t&&!t.Guestures&&(t.Guestures=new u(t))}),n(t).on("beforeClose.fb",function(e,t){t&&t.Guestures&&t.Guestures.destroy()})}(window,document,window.jQuery),function(e,t){"use strict";var n=function(e){this.instance=e,this.init()};t.extend(n.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var e=this;e.$button=e.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){e.toggle()}),(e.instance.group.length<2||!e.instance.group[e.instance.currIndex].opts.slideShow)&&e.$button.hide()},set:function(){var e=this;e.instance&&e.instance.current&&(e.instance.current.opts.loop||e.instance.currIndex1&&e.instance.group[e.instance.currIndex].opts.thumbs&&("image"==t.type||t.opts.thumb||t.opts.$thumb)&&("image"==n.type||n.opts.thumb||n.opts.$thumb)?(e.$button.on("click",function(){e.toggle()}),e.isActive=!0):(e.$button.hide(),e.isActive=!1)},create:function(){var e,n,i=this.instance;this.$grid=t('
    ').appendTo(i.$refs.container),e="
      ",t.each(i.group,function(t,i){n=i.opts.thumb||(i.opts.$thumb?i.opts.$thumb.attr("src"):null),n||"image"!==i.type||(n=i.src),n&&n.length&&(e+='
    • ')}),e+="
    ",this.$list=t(e).appendTo(this.$grid).on("click","li",function(){i.jumpTo(t(this).data("index"))}),this.$list.find("img").hide().one("load",function(){var e,n,i,r,o=t(this).parent().removeClass("fancybox-thumbs-loading"),a=o.outerWidth(),s=o.outerHeight();e=this.naturalWidth||this.width,n=this.naturalHeight||this.height,i=e/a,r=n/s,i>=1&&r>=1&&(i>r?(e/=r,n=s):(e=a,n/=i)),t(this).css({width:Math.floor(e),height:Math.floor(n),"margin-top":Math.min(0,Math.floor(.3*s-.3*n)),"margin-left":Math.min(0,Math.floor(.5*a-.5*e))}).show()}).each(function(){this.src=t(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("fancybox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.instance.trigger("onThumbsShow"),this.focus()):this.$grid&&this.instance.trigger("onThumbsHide"),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),t(e).on({"onInit.fb":function(e,t){t&&!t.Thumbs&&(t.Thumbs=new n(t))},"beforeShow.fb":function(e,t,n,i){var r=t&&t.Thumbs;if(r&&r.isActive){if(n.modal)return r.$button.hide(),void r.hide();i&&t.opts.thumbs.autoStart===!0&&r.show(),r.isVisible&&r.focus()}},"afterKeydown.fb":function(e,t,n,i,r){var o=t&&t.Thumbs;o&&o.isActive&&71===r&&(i.preventDefault(),o.toggle())},"beforeClose.fb":function(e,t){var n=t&&t.Thumbs;n&&n.isVisible&&t.opts.thumbs.hideOnClose!==!1&&n.close()}})}(document,window.jQuery),function(e,t,n){"use strict";function i(){var e=t.location.hash.substr(1),n=e.split("-"),i=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,r=n.join("-");return i<1&&(i=1),{hash:e,index:i,gallery:r}}function r(e){var t;""!==e.gallery&&(t=n("[data-fancybox='"+n.escapeSelector(e.gallery)+"']").eq(e.index-1),t.length?t.trigger("click"):n("#"+n.escapeSelector(e.gallery)).trigger("click"))}function o(e){var t;return!!e&&(t=e.current?e.current.opts:e.opts,t.$orig?t.$orig.data("fancybox"):t.hash||"")}n.escapeSelector||(n.escapeSelector=function(e){var t=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,n=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e};return(e+"").replace(t,n)});var a=null,s=null;n(function(){setTimeout(function(){n.fancybox.defaults.hash!==!1&&(n(e).on({"onInit.fb":function(e,t){var n,r;t.group[t.currIndex].opts.hash!==!1&&(n=i(),r=o(t),r&&n.gallery&&r==n.gallery&&(t.currIndex=n.index-1))},"beforeShow.fb":function(n,i,r,l){var c;r.opts.hash!==!1&&(c=o(i),c&&""!==c&&(t.location.hash.indexOf(c)<0&&(i.opts.origHash=t.location.hash),a=c+(i.group.length>1?"-"+(r.index+1):""),"replaceState"in t.history?(s&&clearTimeout(s),s=setTimeout(function(){t.history[l?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+a),s=null},300)):t.location.hash=a))},"beforeClose.fb":function(i,r,l){var c,u;s&&clearTimeout(s),l.opts.hash!==!1&&(c=o(r),u=r&&r.opts.origHash?r.opts.origHash:"",c&&""!==c&&("replaceState"in history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+u):(t.location.hash=u,n(t).scrollTop(r.scrollTop).scrollLeft(r.scrollLeft))),a=null)}}),n(t).on("hashchange.fb",function(){var e=i();n.fancybox.getInstance()?!a||a===e.gallery+"-"+e.index||1===e.index&&a==e.gallery||(a=null,n.fancybox.close()):""!==e.gallery&&r(e)}),n(t).one("unload.fb popstate.fb",function(){n.fancybox.getInstance("close",!0,0)}),r(i()))},50)})}(document,window,window.jQuery),define("fancybox/dist/jquery.fancybox.min",["jquery"],function(){}),define("fancybox",["fancybox/dist/jquery.fancybox.min"],function(e){return e}),define("text!fancybox/dist/jquery.fancybox.min.css",["module"],function(e){e.exports='@charset "UTF-8";.fancybox-enabled{overflow:hidden}.fancybox-enabled body{overflow:visible;height:100%}.fancybox-is-hidden{position:absolute;top:-9999px;left:-9999px;visibility:hidden}.fancybox-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99993;-webkit-tap-highlight-color:transparent;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translateZ(0);transform:translateZ(0)}.fancybox-container~.fancybox-container{z-index:99992}.fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-stage{position:absolute;top:0;right:0;bottom:0;left:0}.fancybox-outer{overflow-y:auto;-webkit-overflow-scrolling:touch}.fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}.fancybox-is-open .fancybox-bg{opacity:.87;transition-timing-function:cubic-bezier(.22,.61,.36,1)}.fancybox-caption-wrap,.fancybox-infobar,.fancybox-toolbar{position:absolute;direction:ltr;z-index:99997;opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s linear .25s;box-sizing:border-box}.fancybox-show-caption .fancybox-caption-wrap,.fancybox-show-infobar .fancybox-infobar,.fancybox-show-toolbar .fancybox-toolbar{opacity:1;visibility:visible;transition:opacity .25s,visibility 0s}.fancybox-infobar{top:0;left:50%;margin-left:-79px}.fancybox-infobar__body{display:inline-block;width:70px;line-height:44px;font-size:13px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;text-align:center;color:#ddd;background-color:rgba(30,30,30,.7);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:subpixel-antialiased}.fancybox-toolbar{top:0;right:0}.fancybox-stage{overflow:hidden;direction:ltr;z-index:99994;-webkit-transform:translateZ(0)}.fancybox-slide{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;overflow:auto;outline:none;white-space:normal;box-sizing:border-box;text-align:center;z-index:99994;-webkit-overflow-scrolling:touch;display:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.fancybox-slide:before{content:"";display:inline-block;vertical-align:middle;height:100%;width:0}.fancybox-is-sliding .fancybox-slide,.fancybox-slide--current,.fancybox-slide--next,.fancybox-slide--previous{display:block}.fancybox-slide--image{overflow:visible}.fancybox-slide--image:before{display:none}.fancybox-slide--video .fancybox-content,.fancybox-slide--video iframe{background:#000}.fancybox-slide--map .fancybox-content,.fancybox-slide--map iframe{background:#e5e3df}.fancybox-slide--next{z-index:99995}.fancybox-slide>*{display:inline-block;position:relative;padding:24px;margin:44px 0;border-width:0;vertical-align:middle;text-align:left;background-color:#fff;overflow:auto;box-sizing:border-box}.fancybox-slide .fancybox-image-wrap{position:absolute;top:0;left:0;margin:0;padding:0;border:0;z-index:99995;background:transparent;cursor:default;overflow:visible;-webkit-transform-origin:top left;transform-origin:top left;background-size:100% 100%;background-repeat:no-repeat;-webkit-backface-visibility:hidden;backface-visibility:hidden}.fancybox-can-zoomOut .fancybox-image-wrap{cursor:zoom-out}.fancybox-can-zoomIn .fancybox-image-wrap{cursor:zoom-in}.fancybox-can-drag .fancybox-image-wrap{cursor:-webkit-grab;cursor:grab}.fancybox-is-dragging .fancybox-image-wrap{cursor:-webkit-grabbing;cursor:grabbing}.fancybox-image,.fancybox-spaceball{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;max-width:none;max-height:none}.fancybox-spaceball{z-index:1}.fancybox-slide--iframe .fancybox-content{padding:0;width:80%;height:80%;max-width:calc(100% - 100px);max-height:calc(100% - 88px);overflow:visible;background:#fff}.fancybox-iframe{display:block;padding:0;border:0;height:100%}.fancybox-error,.fancybox-iframe{margin:0;width:100%;background:#fff}.fancybox-error{padding:40px;max-width:380px;cursor:default}.fancybox-error p{margin:0;padding:0;color:#444;font:16px/20px Helvetica Neue,Helvetica,Arial,sans-serif}.fancybox-close-small{position:absolute;top:0;right:0;width:44px;height:44px;padding:0;margin:0;border:0;border-radius:0;outline:none;background:transparent;z-index:10;cursor:pointer}.fancybox-close-small:after{content:"×";position:absolute;top:5px;right:5px;width:30px;height:30px;font:20px/30px Arial,Helvetica Neue,Helvetica,sans-serif;color:#888;font-weight:300;text-align:center;border-radius:50%;border-width:0;background:#fff;transition:background .25s;box-sizing:border-box;z-index:2}.fancybox-close-small:focus:after{outline:1px dotted #888}.fancybox-close-small:hover:after{color:#555;background:#eee}.fancybox-slide--iframe .fancybox-close-small{top:0;right:-44px}.fancybox-slide--iframe .fancybox-close-small:after{background:transparent;font-size:35px;color:#aaa}.fancybox-slide--iframe .fancybox-close-small:hover:after{color:#fff}.fancybox-caption-wrap{bottom:0;left:0;right:0;padding:60px 30px 0;background:linear-gradient(180deg,transparent 0,rgba(0,0,0,.1) 20%,rgba(0,0,0,.2) 40%,rgba(0,0,0,.6) 80%,rgba(0,0,0,.8));pointer-events:none}.fancybox-caption{padding:30px 0;border-top:1px solid hsla(0,0%,100%,.4);font-size:14px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;color:#fff;line-height:20px;-webkit-text-size-adjust:none}.fancybox-caption a,.fancybox-caption button,.fancybox-caption select{pointer-events:all}.fancybox-caption a{color:#fff;text-decoration:underline}.fancybox-button{display:inline-block;position:relative;margin:0;padding:0;border:0;width:44px;height:44px;line-height:44px;text-align:center;background:transparent;color:#ddd;border-radius:0;cursor:pointer;vertical-align:top;outline:none}.fancybox-button[disabled]{cursor:default;pointer-events:none}.fancybox-button,.fancybox-infobar__body{background:rgba(30,30,30,.6)}.fancybox-button:hover:not([disabled]){color:#fff;background:rgba(0,0,0,.8)}.fancybox-button:after,.fancybox-button:before{content:"";pointer-events:none;position:absolute;background-color:currentColor;color:currentColor;opacity:.9;box-sizing:border-box;display:inline-block}.fancybox-button[disabled]:after,.fancybox-button[disabled]:before{opacity:.3}.fancybox-button--left:after,.fancybox-button--right:after{top:18px;width:6px;height:6px;background:transparent;border-top:2px solid currentColor;border-right:2px solid currentColor}.fancybox-button--left:after{left:20px;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.fancybox-button--right:after{right:20px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.fancybox-button--left{border-bottom-left-radius:5px}.fancybox-button--right{border-bottom-right-radius:5px}.fancybox-button--close:after,.fancybox-button--close:before{content:"";display:inline-block;position:absolute;height:2px;width:16px;top:calc(50% - 1px);left:calc(50% - 8px)}.fancybox-button--close:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.fancybox-button--close:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.fancybox-arrow{position:absolute;top:50%;margin:-50px 0 0;height:100px;width:54px;padding:0;border:0;outline:none;background:none;cursor:pointer;z-index:99995;opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:opacity .25s}.fancybox-arrow:after{content:"";position:absolute;top:28px;width:44px;height:44px;background-color:rgba(30,30,30,.8);background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSI0OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgNGwtMS40MSAxLjQxTDE2LjE3IDExSDR2MmgxMi4xN2wtNS41OCA1LjU5TDEyIDIwbDgtOHoiLz48L3N2Zz4=);background-repeat:no-repeat;background-position:50%;background-size:24px 24px}.fancybox-arrow--right{right:0}.fancybox-arrow--left{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fancybox-arrow--left:after,.fancybox-arrow--right:after{left:0}.fancybox-show-nav .fancybox-arrow{opacity:.6}.fancybox-show-nav .fancybox-arrow[disabled]{opacity:.3}.fancybox-loading{border:6px solid hsla(0,0%,39%,.4);border-top:6px solid hsla(0,0%,100%,.6);border-radius:100%;height:50px;width:50px;-webkit-animation:a .8s infinite linear;animation:a .8s infinite linear;background:transparent;position:absolute;top:50%;left:50%;margin-top:-25px;margin-left:-25px;z-index:99999}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}.fancybox-fx-slide.fancybox-slide--previous{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);opacity:0}.fancybox-fx-slide.fancybox-slide--next{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0}.fancybox-fx-slide.fancybox-slide--current{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.fancybox-fx-fade.fancybox-slide--next,.fancybox-fx-fade.fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}.fancybox-fx-fade.fancybox-slide--current{opacity:1}.fancybox-fx-zoom-in-out.fancybox-slide--previous{-webkit-transform:scale3d(1.5,1.5,1.5);transform:scale3d(1.5,1.5,1.5);opacity:0}.fancybox-fx-zoom-in-out.fancybox-slide--next{-webkit-transform:scale3d(.5,.5,.5);transform:scale3d(.5,.5,.5);opacity:0}.fancybox-fx-zoom-in-out.fancybox-slide--current{-webkit-transform:scaleX(1);transform:scaleX(1);opacity:1}.fancybox-fx-rotate.fancybox-slide--previous{-webkit-transform:rotate(-1turn);transform:rotate(-1turn);opacity:0}.fancybox-fx-rotate.fancybox-slide--next{-webkit-transform:rotate(1turn);transform:rotate(1turn);opacity:0}.fancybox-fx-rotate.fancybox-slide--current{-webkit-transform:rotate(0deg);transform:rotate(0deg);opacity:1}.fancybox-fx-circular.fancybox-slide--previous{-webkit-transform:scale3d(0,0,0) translate3d(-100%,0,0);transform:scale3d(0,0,0) translate3d(-100%,0,0);opacity:0}.fancybox-fx-circular.fancybox-slide--next{-webkit-transform:scale3d(0,0,0) translate3d(100%,0,0);transform:scale3d(0,0,0) translate3d(100%,0,0);opacity:0}.fancybox-fx-circular.fancybox-slide--current{-webkit-transform:scaleX(1) translateZ(0);transform:scaleX(1) translateZ(0);opacity:1}.fancybox-fx-tube.fancybox-slide--previous{-webkit-transform:translate3d(-100%,0,0) scale(.1) skew(-10deg);transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}.fancybox-fx-tube.fancybox-slide--next{-webkit-transform:translate3d(100%,0,0) scale(.1) skew(10deg);transform:translate3d(100%,0,0) scale(.1) skew(10deg)}.fancybox-fx-tube.fancybox-slide--current{-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}@media (max-width:800px){.fancybox-infobar{left:0;margin-left:0}.fancybox-button--left,.fancybox-button--right{display:none!important}.fancybox-caption{padding:20px 0;margin:0}}.fancybox-button--fullscreen:before{width:15px;height:11px;left:calc(50% - 7px);top:calc(50% - 6px);border:2px solid;background:none}.fancybox-button--pause:before,.fancybox-button--play:before{top:calc(50% - 6px);left:calc(50% - 4px);background:transparent}.fancybox-button--play:before{width:0;height:0;border-top:6px inset transparent;border-bottom:6px inset transparent;border-left:10px solid;border-radius:1px}.fancybox-button--pause:before{width:7px;height:11px;border-style:solid;border-width:0 2px}.fancybox-button--thumbs,.fancybox-thumbs{display:none}@media (min-width:800px){.fancybox-button--thumbs{display:inline-block}.fancybox-button--thumbs span{font-size:23px}.fancybox-button--thumbs:before{width:3px;height:3px;top:calc(50% - 2px);left:calc(50% - 2px);box-shadow:0 -4px 0,-4px -4px 0,4px -4px 0,inset 0 0 0 32px,-4px 0 0,4px 0 0,0 4px 0,-4px 4px 0,4px 4px 0}.fancybox-thumbs{position:absolute;top:0;right:0;bottom:0;left:auto;width:220px;margin:0;padding:5px 5px 0 0;background:#fff;word-break:normal;-webkit-tap-highlight-color:transparent;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;box-sizing:border-box;z-index:99995}.fancybox-show-thumbs .fancybox-thumbs{display:block}.fancybox-show-thumbs .fancybox-inner{right:220px}.fancybox-thumbs>ul{list-style:none;position:absolute;position:relative;width:100%;height:100%;margin:0;padding:0;overflow-x:hidden;overflow-y:auto;font-size:0}.fancybox-thumbs>ul>li{float:left;overflow:hidden;max-width:50%;padding:0;margin:0;width:105px;height:75px;position:relative;cursor:pointer;outline:none;border:5px solid transparent;border-top-width:0;border-right-width:0;-webkit-tap-highlight-color:transparent;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box}li.fancybox-thumbs-loading{background:rgba(0,0,0,.1)}.fancybox-thumbs>ul>li>img{position:absolute;top:0;left:0;min-width:100%;min-height:100%;max-width:none;max-height:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fancybox-thumbs>ul>li:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px;border:4px solid #4ea7f9;z-index:99991;opacity:0;transition:all .2s cubic-bezier(.25,.46,.45,.94)}.fancybox-thumbs>ul>li.fancybox-thumbs-active:before{opacity:1}}'}),!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("simplemde/dist/simplemde.min",[],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).SimpleMDE=e()}(function(){return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return r(n||e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-i(e)}function o(e){var t,n,r,o,a,s,l=e.length;a=i(e),s=new d(3*l/4-a),r=a>0?l-4:l;var c=0;for(t=0,n=0;t>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===a?(o=u[e.charCodeAt(t)]<<2|u[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===a&&(o=u[e.charCodeAt(t)]<<10|u[e.charCodeAt(t+1)]<<4|u[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s}function a(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function s(e,t,n){for(var i,r=[],o=t;ol?l:a+16383));return 1===i?(t=e[n-1],r+=c[t>>2],r+=c[t<<4&63],r+="=="):2===i&&(t=(e[n-2]<<8)+e[n-1],r+=c[t>>10],r+=c[t>>4&63],r+=c[t<<2&63],r+="="),o.push(r),o.join("")}n.byteLength=r,n.toByteArray=o,n.fromByteArray=l;for(var c=[],u=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,p=h.length;fX)throw new RangeError("Invalid typed array length");var t=new Uint8Array(e);return t.__proto__=r.prototype,t}function r(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(e)}return o(e,t,n)}function o(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return e instanceof ArrayBuffer?d(e,t,n):"string"==typeof e?c(e,t):h(e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function s(e,t,n){return a(e),e<=0?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}function l(e){return a(e),i(e<0?0:0|f(e))}function c(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!r.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var n=0|g(e,t),o=i(n),a=o.write(e,t);return a!==n&&(o=o.slice(0,a)),o}function u(e){for(var t=e.length<0?0:0|f(e.length),n=i(t),r=0;r=X)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+X.toString(16)+" bytes");return 0|e}function p(e){return+e!=e&&(e=0),r.alloc(+e)}function g(e,t){if(r.isBuffer(e))return e.length;if(q(e)||e instanceof ArrayBuffer)return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return B(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return H(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function v(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function b(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,U(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=r.from(t,i)),r.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}var c;if(r){var u=-1;for(c=n;cs&&(n=s-l),c=n;c>=0;c--){for(var d=!0,h=0;hr&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,c,u,d;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(l=e[r+1]))&&(d=(31&o)<<6|63&l)>127&&(a=d);break;case 3:l=e[r+1],c=e[r+2],128==(192&l)&&128==(192&c)&&(d=(15&o)<<12|(63&l)<<6|63&c)>2047&&(d<55296||d>57343)&&(a=d);break;case 4:l=e[r+1],c=e[r+2],u=e[r+3],128==(192&l)&&128==(192&c)&&128==(192&u)&&(d=(15&o)<<18|(63&l)<<12|(63&c)<<6|63&u)>65535&&d<1114112&&(a=d)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return L(i)}function L(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var n="",i=0;ii)&&(n=i);for(var r="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,i,o,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function N(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,i,r){return t=+t,n>>>=0,r||N(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),V.write(e,t,n,i,23,4),n+4}function R(e,t,n,i,r){return t=+t,n>>>=0,r||N(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),V.write(e,t,n,i,52,8),n+8}function P(e){if((e=e.trim().replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function O(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){t=t||1/0;for(var n,i=e.length,r=null,o=[],a=0;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){for(var t=[],n=0;n>8,r=n%256,o.push(r),o.push(i);return o}function Y(e){return G.toByteArray(P(e))}function $(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function q(e){return"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(e)}function U(e){return e!==e}var G=e("base64-js"),V=e("ieee754");n.Buffer=r,n.SlowBuffer=p,n.INSPECT_MAX_BYTES=50;var X=2147483647;n.kMaxLength=X,r.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),r.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=function(e,t,n){return o(e,t,n)},r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,r.alloc=function(e,t,n){return s(e,t,n)},r.allocUnsafe=function(e){return l(e)},r.allocUnsafeSlow=function(e){return l(e)},r.isBuffer=function(e){return null!=e&&!0===e._isBuffer},r.compare=function(e,t){if(!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,a=Math.min(n,i);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},r.prototype.compare=function(e,t,n,i,o){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,s=n-t,l=Math.min(a,s),c=this.slice(i,o),u=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;r.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||A(e,t,this.length);for(var i=this[e],r=1,o=0;++o>>=0,t>>>=0,n||A(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},r.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var i=this[e],r=1,o=0;++o=r&&(i-=Math.pow(2,8*t)),i},r.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},r.prototype.readInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),V.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),V.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),V.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),V.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,n,i){e=+e,t>>>=0,n>>>=0,i||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,i||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},r.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},r.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},r.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},r.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},r.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},r.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},r.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},r.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(o<1e3)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,i=/[*+-]\s/;e.commands.newlineAndIndentContinueMarkdownList=function(r){if(r.getOption("disableInput"))return e.Pass;for(var o=r.listSelections(),a=[],s=0;s\s*$/.test(h)||r.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),a[s]="\n";else{var p=f[1],g=f[5],m=i.test(f[2])||f[2].indexOf(">")>=0?f[2].replace("x"," "):parseInt(f[3],10)+1+f[4];a[s]="\n"+p+m+g}}r.replaceSelections(a)}})},{"../../lib/codemirror":10}],8:[function(e,t,n){!function(i){i("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)}(function(e){"use strict";e.overlayMode=function(t,n,i){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:e.copyState(t,i.base),overlay:e.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(e,r){return(e!=r.streamSeen||Math.min(r.basePos,r.overlayPos)=n.line,f=h?n:l(d,0),p=e.markText(u,f,{className:o});if(null==i?r.push(p):r.splice(i++,0,p),h)break;a=d}}function r(e){for(var t=e.state.markedSelection,n=0;n1)return o(e);var t=e.getCursor("start"),n=e.getCursor("end"),a=e.state.markedSelection;if(!a.length)return i(e,t,n);var l=a[0].find(),u=a[a.length-1].find();if(!l||!u||n.line-t.line=0||c(n,l.from)<=0)return o(e);for(;c(t,l.from)>0;)a.shift().clear(),l=a[0].find();for(c(t,l.from)<0&&(l.to.line-t.line0&&(n.line-u.from.line0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function i(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}function h(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);if(r+=o-i,r+=n-r%n,i=o+1,r>=t)return i}}function p(e){for(;za.length<=e;)za.push(g(za)+" ");return za[e]}function g(e){return e[e.length-1]}function m(e,t){for(var n=[],i=0;i"€"&&(e.toUpperCase()!=e.toLowerCase()||Aa.test(e))}function w(e,t){return t?!!(t.source.indexOf("\\w")>-1&&x(e))||t.test(e):x(e)}function k(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function S(e){return e.charCodeAt(0)>=768&&Ia.test(e)}function C(e,t,n){for(;(n<0?t>0:t=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn?N(n,_(e,n).text.length):Y(t,_(e,t.line).text.length)}function Y(e,t){var n=e.ch;return null==n||n>t?N(e.line,t):n<0?N(e.line,0):e}function $(e,t){for(var n=[],i=0;i=t:o.to>t);(i||(i=[])).push(new G(a,o.from,s?null:o.to))}}return i}function K(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){ +var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var x=0;x0)){var u=[l,1],d=F(c.from,s.from),f=F(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}function ne(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?F(c.to,n)>=0:F(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?F(c.from,i)<=0:F(c.from,i)<0)))return!0}}}function de(e){for(var t;t=le(e);)e=t.find(-1,!0).line;return e}function he(e){for(var t;t=ce(e);)e=t.find(1,!0).line;return e}function fe(e){for(var t,n;t=ce(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function pe(e,t){var n=_(e,t),i=de(n);return n==i?t:H(i)}function ge(e,t){if(t>e.lastLine())return t;var n,i=_(e,t);if(!me(e,i))return t;for(;n=ce(i);)i=n.find(1,!0).line;return H(i)+1}function me(e,t){var n=Fa&&t.markedSpans;if(n)for(var i=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function we(e,t,n,i){if(!e)return i(t,n,"ltr");for(var r=!1,o=0;ot||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),r=!0)}r||i(t,n,"ltr")}function ke(e,t,n){var i;Ra=null;for(var r=0;rt)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:Ra=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:Ra=r)}return null!=i?i:Ra}function Se(e,t){var n=e.order;return null==n&&(n=e.order=Pa(e.text,t)),n}function Ce(e,t,n){var i=C(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Te(e,t,n){var i=Ce(e,t.ch,n);return null==i?null:new N(t.line,i,n<0?"after":"before")}function Ee(e,t,n,i,r){if(e){var o=Se(n,t.doc.direction);if(o){var a,s=r<0?g(o):o[0],l=r<0==(1==s.level)?"after":"before";if(s.level>0){var c=Zt(t,n);a=r<0?n.text.length-1:0;var u=Qt(t,c,a).top;a=T(function(e){return Qt(t,c,e).top==u},r<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ce(n,a,1))}else a=r<0?s.to:s.from;return new N(i,a,l)}}return new N(i,r<0?n.text.length:0,r<0?"before":"after")}function _e(e,t,n,i){var r=Se(t,e.doc.direction);if(!r)return Te(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ke(r,n.ch,n.sticky),a=r[o];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from=a.from&&h>=u.begin)){var f=d?"before":"after";return new N(n.line,h,f)}}var p=function(e,t,i){for(var o=function(e,t){return t?new N(n.line,l(e,1),"before"):new N(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?i.begin:l(i.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==m||i>0&&m==t.text.length||!(g=p(i>0?0:r.length-1,i,c(m)))?null:g}function Le(e,t){return e._handlers&&e._handlers[t]||Oa}function De(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var i=e._handlers,r=i&&i[t];if(r){var o=h(r,n);o>-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function Me(e,t){var n=Le(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function Ie(e){e.prototype.on=function(e,t){Ba(this,e,t)},e.prototype.off=function(e,t){De(this,e,t)}}function Ne(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Fe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Re(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Pe(e){Ne(e),Fe(e)}function Oe(e){return e.target||e.srcElement}function Be(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),ga&&e.ctrlKey&&1==t&&(t=3),t}function We(e){if(null==Ta){var t=i("span","​");n(e,i("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ta=t.offsetWidth<=1&&t.offsetHeight>2&&!(ia&&ra<8))}var r=Ta?i("span","​"):i("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function je(e){if(null!=Ea)return Ea;var i=n(e,document.createTextNode("AخA")),r=ya(i,0,1).getBoundingClientRect(),o=ya(i,1,2).getBoundingClientRect();return t(e),!(!r||r.left==r.right)&&(Ea=o.right-r.right<3)}function Ye(e){if(null!=qa)return qa;var t=n(e,i("span","x")),r=t.getBoundingClientRect(),o=ya(t,0,1).getBoundingClientRect();return qa=Math.abs(r.left-o.left)>1}function $e(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ua[e]=t}function qe(e,t){Ga[e]=t}function Ue(e){if("string"==typeof e&&Ga.hasOwnProperty(e))e=Ga[e];else if(e&&"string"==typeof e.name&&Ga.hasOwnProperty(e.name)){var t=Ga[e.name];"string"==typeof t&&(t={name:t}),(e=y(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ue("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ue("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=Ue(t);var n=Ua[t.name];if(!n)return Ge(e,"text/plain");var i=n(e,t);if(Va.hasOwnProperty(t.name)){var r=Va[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}function Ve(e,t){u(t,Va.hasOwnProperty(e)?Va[e]:Va[e]={})}function Xe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Ze(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Qe(e,t,n){return!e.startState||e.startState(t,n)}function Ke(e,t,n,i){var r=[e.state.modeGen],o={};at(e,t.text,e.doc.mode,n,function(e,t){return r.push(e,t)},o,i);for(var a=0;ae&&r.splice(a,1,e,r[a+1],o),a+=2,s=Math.min(e,o)}if(t)if(i.opaque)r.splice(n,a-n,e,"overlay "+t),a=n+2;else for(;ne.options.maxHighlightLength?Xe(e.doc.mode,i):i);t.stateAfter=i,t.styles=r.styles,r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function et(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return!0;var o=st(e,t,n),a=o>i.first&&_(i,o-1).stateAfter;return a=a?Xe(i.mode,a):Qe(i.mode),i.iter(o,t,function(n){tt(e,n.text,a);var s=o==t-1||o%5==0||o>=r.viewFrom&&ot.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function rt(e,t,n,i){var r,o=function(e){return{start:d.start,end:d.pos,string:d.current(),type:r||null,state:e?Xe(a.mode,u):u}},a=e.doc,s=a.mode;t=j(a,t);var l,c=_(a,t.line),u=et(e,t.line,n),d=new Xa(c.text,e.options.tabSize);for(i&&(l=[]);(i||d.pose.options.maxHighlightLength?(s=!1,a&&tt(e,t,i,d.pos),d.pos=t.length,l=null):l=ot(it(n,d,i,h),o),h){var f=h[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;ca;--s){if(s<=o.first)return o.first;var l=_(o,s-1);if(l.stateAfter&&(!n||s<=o.frontier))return s;var c=d(l.text,null,e.options.tabSize);(null==r||i>c)&&(r=s-1,i=c)}return r}function lt(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),ne(e),ie(e,n);var r=i?i(e):1;r!=e.height&&M(e,r)}function ct(e){e.parent=null,ne(e)}function ut(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Ja:Ka;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function dt(e,t){var n=r("span",null,null,oa?"padding-right: .1px":null),i={pre:r("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(ia||oa)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a=o?t.rest[o-1]:t.line,s=void 0;i.pos=0,i.addToken=ft,je(e.display.measure)&&(s=Se(a,e.doc.direction))&&(i.addToken=gt(i.addToken,s)),i.map=[],vt(a,i,Je(e,a,t!=e.display.externalMeasured&&H(a))),a.styleClasses&&(a.styleClasses.bgClass&&(i.bgClass=l(a.styleClasses.bgClass,i.bgClass||"")),a.styleClasses.textClass&&(i.textClass=l(a.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(We(e.display.measure))),0==o?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(oa){var c=i.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Me(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=l(i.pre.className,i.textClass||"")),i}function ht(e){var t=i("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ft(e,t,n,r,o,a,s){if(t){var l,c=e.splitSpaces?pt(t,e.trailingSpace):t,u=e.cm.state.specialChars,d=!1;if(u.test(t)){l=document.createDocumentFragment();for(var h=0;;){u.lastIndex=h;var f=u.exec(t),g=f?f.index-h:t.length-h;if(g){var m=document.createTextNode(c.slice(h,h+g));ia&&ra<9?l.appendChild(i("span",[m])):l.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!f)break;h+=g+1;var v=void 0;if("\t"==f[0]){var b=e.cm.options.tabSize,y=b-e.col%b;(v=l.appendChild(i("span",p(y),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=y}else"\r"==f[0]||"\n"==f[0]?((v=l.appendChild(i("span","\r"==f[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),ia&&ra<9?l.appendChild(i("span",[v])):l.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,l=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,l),ia&&ra<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||o||d||s){var x=n||"";r&&(x+=r),o&&(x+=o);var w=i("span",[l],x,s);return a&&(w.title=a),e.content.appendChild(w)}e.content.appendChild(l)}}function pt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;rc&&d.from<=c);h++);if(d.to>=u)return e(n,i,r,o,a,s,l);e(n,i.slice(0,d.to-c),r,o,null,s,l),o=null,i=i.slice(d.to-c),c=d.to}}}function mt(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function vt(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,s,l,c,u,d,h,f=r.length,p=0,g=1,m="",v=0;;){if(v==p){l=c=u=d=s="",h=null,v=1/0;for(var b=[],y=void 0,x=0;xp||k.collapsed&&w.to==p&&w.from==p)?(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,c=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==p&&(u+=" "+k.startStyle),k.endStyle&&w.to==v&&(y||(y=[])).push(k.endStyle,w.to),k.title&&!d&&(d=k.title),k.collapsed&&(!h||ae(h.marker,k)<0)&&(h=w)):w.from>p&&v>w.from&&(v=w.from)}if(y)for(var S=0;S=f)break;for(var T=Math.min(f,v);;){if(m){var E=p+m.length;if(!h){var _=E>T?m.slice(0,T-p):m;t.addToken(t,_,a?a+l:l,u,p+_.length==v?c:"",d,s)}if(E>=T){m=m.slice(T-p),p=T;break}p=E,u=""}m=r.slice(o,o=n[g++]),a=ut(n[g++],t.cm.options)}}else for(var L=1;L2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Ut(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Gt(e,t){var i=H(t=de(t)),r=e.display.externalMeasured=new bt(e.doc,t,i);r.lineN=i;var o=r.built=dt(e,r);return r.text=o.pre,n(e.display.lineMeasure,o.pre),r}function Vt(e,t,n,i){return Qt(e,Zt(e,t),n,i)}function Xt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(r=(o=l-s)-1,t>=l&&(a="right")),null!=r){if(i=e[c+2],s==l&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)i=e[2+(c-=3)],a="left";if("right"==n&&r==l-s)for(;c=0&&(n=e[r]).left==n.right;r--);return n}function en(e,t,n,i){var r,o=Kt(t.map,n,i),a=o.node,s=o.start,l=o.end,c=o.collapse;if(3==a.nodeType){for(var u=0;u<4;u++){for(;s&&S(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+l0&&(c=i="right");var d;r=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==i?d.length-1:0]:a.getBoundingClientRect()}if(ia&&ra<9&&!s&&(!r||!r.left&&!r.right)){var h=a.parentNode.getClientRects()[0];r=h?{left:h.left,right:h.left+yn(e.display),top:h.top,bottom:h.bottom}:ns}for(var f=r.top-t.rect.top,p=r.bottom-t.rect.top,g=(f+p)/2,m=t.view.measure.heights,v=0;v=i.text.length?(c=i.text.length,u="before"):c<=0&&(c=0,u="after"),!l)return a("before"==u?c-1:c,"before"==u);var d=ke(l,c,u),h=Ra,f=s(c,d,"before"==u);return null!=h&&(f.other=s(c,h,"before"!=u)),f}function hn(e,t){var n=0;t=j(e.doc,t),e.options.lineWrapping||(n=yn(e.display)*t.ch);var i=_(e.doc,t.line),r=be(i)+Ot(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function fn(e,t,n,i,r){var o=N(e,t,n);return o.xRel=r,i&&(o.outside=!0),o}function pn(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return fn(i.first,0,null,!0,-1);var r=z(i,n),o=i.first+i.size-1;if(r>o)return fn(i.first+i.size-1,_(i,o).text.length,null,!0,1);t<0&&(t=0);for(var a=_(i,r);;){var s=vn(e,a,r,t,n),l=ce(a),c=l&&l.find(0,!0);if(!l||!(s.ch>c.from.ch||s.ch==c.from.ch&&s.xRel>0))return s;r=H(a=c.to.line)}}function gn(e,t,n,i){var r=function(i){return ln(e,t,Qt(e,n,i),"line")},o=t.text.length,a=T(function(e){return r(e-1).bottom<=i},o,0);return o=T(function(e){return r(e).top>i},a,o),{begin:a,end:o}}function mn(e,t,n,i){return gn(e,t,n,ln(e,t,Qt(e,n,i),"line").top)}function vn(e,t,n,i,r){r-=be(t);var o,a=0,s=t.text.length,l=Zt(e,t);if(Se(t,e.doc.direction)){if(e.options.lineWrapping){var c;a=(c=gn(e,t,l,r)).begin,s=c.end}o=new N(n,a);var u,d,h=dn(e,o,"line",t,l).left,f=hMath.abs(u)){if(p<0==u<0)throw new Error("Broke out of infinite loop in coordsCharInner");o=d}}else{var g=T(function(n){var o=ln(e,t,Qt(e,l,n),"line");return o.top>r?(s=Math.min(n,s),!0):!(o.bottom<=r)&&(o.left>i||!(o.rightm.right?1:0,o}function bn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Qa){Qa=i("pre");for(var r=0;r<49;++r)Qa.appendChild(document.createTextNode("x")),Qa.appendChild(i("br"));Qa.appendChild(document.createTextNode("x"))}n(e.measure,Qa);var o=Qa.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function yn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=i("span","xxxxxxxxxx"),r=i("pre",[t]);n(e.measure,r);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function xn(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+r,i[e.options.gutters[a]]=o.clientWidth;return{fixedPos:wn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function wn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function kn(e){var t=bn(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/yn(e.display)-3);return function(r){ +if(me(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;i=e.display.viewTo||s.to().line3&&(r(f,g.top,null,g.bottom),f=u,g.bottoml.bottom||c.bottom==l.bottom&&c.right>l.right)&&(l=c),f0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Hn(e){e.state.focused||(e.display.input.focus(),An(e))}function zn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,In(e))},100)}function An(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Me(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),oa&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Mn(e))}function In(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Me(e,"blur",e,t),e.state.focused=!1,ka(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Nn(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=0;i.001||l<-.001)&&(M(r.line,o),Fn(r.line),r.rest))for(var c=0;c=a&&(o=z(t,be(_(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Pn(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=wn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;a(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!da){var a=i("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Ot(e.display))+"px;\n height: "+(t.bottom-t.top+jt(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function Wn(e,t,n,i){null==i&&(i=0);for(var r,o=0;o<5;o++){var a=!1,s=dn(e,t),l=n&&n!=t?dn(e,n):s,c=Yn(e,r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(Zn(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Kn(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return r}function jn(e,t){var n=Yn(e,t);null!=n.scrollTop&&Zn(e,n.scrollTop),null!=n.scrollLeft&&Kn(e,n.scrollLeft)}function Yn(e,t){var n=e.display,i=bn(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=$t(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Bt(n),l=t.tops-i;if(t.topr+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=r&&(a.scrollTop=u)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,h=Yt(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),f=t.right-t.left>h;return f&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.lefth+d-3&&(a.scrollLeft=t.right+(f?0:10)-h),a}function $n(e,t){null!=t&&(Vn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function qn(e){Vn(e);var t=e.getCursor(),n=t,i=t;e.options.lineWrapping||(n=t.ch?N(t.line,t.ch-1):t,i=N(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:i,margin:e.options.cursorScrollMargin}}function Un(e,t,n){null==t&&null==n||Vn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Gn(e,t){Vn(e),e.curOp.scrollToPos=t}function Vn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Xn(e,hn(e,t.from),hn(e,t.to),t.margin))}function Xn(e,t,n,i){var r=Yn(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});Un(e,r.scrollLeft,r.scrollTop)}function Zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(Jo||Li(e,{top:t}),Qn(e,t,!0),Jo&&Li(e),wi(e,100))}function Qn(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Kn(e,t,n,i){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,Pn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Jn(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+Bt(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+jt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function ei(e,t){t||(t=Jn(e));var n=e.display.barWidth,i=e.display.barHeight;ti(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&Nn(e),ti(e,Jn(e)),n=e.display.barWidth,i=e.display.barHeight}function ti(e,t){var n=e.display,i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function ni(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ka(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new os[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ba(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Kn(e,t):Zn(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function ii(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++as},xt(e.curOp)}function ri(e){kt(e.curOp,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ss(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function si(e){e.updatedDisplay=e.mustUpdate&&Ei(e.cm,e.update)}function li(e){var t=e.cm,n=t.display;e.updatedDisplay&&Nn(t),e.barMeasure=Jn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Vt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+jt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Yt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function ci(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Fa&&pe(e.doc,t)r.viewFrom?vi(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)vi(e);else if(t<=r.viewFrom){var o=bi(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):vi(e)}else if(n>=r.viewTo){var a=bi(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):vi(e)}else{var s=bi(e,t,t,-1),l=bi(e,n,n+i,1);s&&l?(r.view=r.view.slice(0,s.index).concat(yt(e,s.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):vi(e)}var c=r.externalMeasured;c&&(n=r.lineN&&t=i.viewTo)){var o=i.view[Tn(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==h(a,n)&&a.push(n)}}}function vi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function bi(e,t,n,i){var r,o=Tn(e,t),a=e.display.view;if(!Fa||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;r=s+a[o].size-t,o++}else r=s-t;t+=r,n+=r}for(;pe(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function yi(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=yt(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=yt(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,Tn(e,n)))),i.viewTo=n}function xi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo)){var n=+new Date+e.options.workTime,i=Xe(t.mode,et(e,t.frontier)),r=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(t.frontier>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength,l=Ke(e,o,s?Xe(t.mode,i):i,!0);o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&hn)return wi(e,e.options.workDelay),!0}),r.length&&di(e,function(){for(var t=0;t=i.viewFrom&&n.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==xi(e))return!1;On(e)&&(vi(e),n.dims=xn(e));var o=r.first+r.size,a=Math.max(n.visible.from-e.options.viewportMargin,r.first),s=Math.min(o,n.visible.to+e.options.viewportMargin);i.viewFroms&&i.viewTo-s<20&&(s=Math.min(o,i.viewTo)),Fa&&(a=pe(e.doc,a),s=ge(e.doc,s));var l=a!=i.viewFrom||s!=i.viewTo||i.lastWrapHeight!=n.wrapperHeight||i.lastWrapWidth!=n.wrapperWidth;yi(e,a,s),i.viewOffset=be(_(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var c=xi(e);if(!l&&0==c&&!n.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))return!1;var u=Ci(e);return c>4&&(i.lineDiv.style.display="none"),Di(e,i.updateLineNumbers,n.dims),c>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,Ti(u),t(i.cursorDiv),t(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,l&&(i.lastWrapHeight=n.wrapperHeight,i.lastWrapWidth=n.wrapperWidth,wi(e,400)),i.updateLineNumbers=null,!0}function _i(e,t){for(var n=t.viewport,i=!0;(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Yt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Bt(e.display)-$t(e),n.top)}),t.visible=Rn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Ei(e,t);i=!1){Nn(e);var r=Jn(e);En(e),ei(e,r),Hi(e,r)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Li(e,t){var n=new ss(e,t);if(Ei(e,n)){Nn(e),_i(e,n);var i=Jn(e);En(e),ei(e,i),Hi(e,i),n.finish()}}function Di(e,n,i){function r(t){var n=t.nextSibling;return oa&&ga&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,s=o.lineDiv,l=s.firstChild,c=o.view,u=o.viewFrom,d=0;d-1&&(p=!1),Tt(e,f,u,i)),p&&(t(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(I(e.options,u)))),l=f.node.nextSibling}else{var g=At(e,f,u,i);s.insertBefore(g,l)}u+=f.size}for(;l;)l=r(l)}function Mi(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Hi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jt(e)+"px"}function zi(e){var n=e.display.gutters,r=e.options.gutters;t(n);for(var o=0;o-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Ii(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Ni(e){var t=Ii(e);return t.x*=cs,t.y*=cs,t}function Fi(e,t){var n=Ii(t),i=n.x,r=n.y,o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,l=a.scrollHeight>a.clientHeight;if(i&&s||r&&l){if(r&&ga&&oa)e:for(var c=t.target,u=o.view;c!=a;c=c.parentNode)for(var d=0;d=0){var a=B(o.from(),r.from()),s=O(o.to(),r.to()),l=o.empty()?r.from()==r.head:o.from()==o.head;i<=t&&--t,e.splice(--i,2,new ds(l?s:a,l?a:s))}}return new us(e,t)}function Pi(e,t){return new us([new ds(e,t||e)],0)}function Oi(e){return e.text?N(e.from.line+e.text.length-1,g(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Bi(e,t){if(F(e,t.from)<0)return e;if(F(e,t.to)<=0)return Oi(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=Oi(t).ch-t.to.ch),N(n,i)}function Wi(e,t){for(var n=[],i=0;i1&&e.remove(s.line+1,p-1),e.insert(s.line+1,b)}St(e,"change",e,t)}function Vi(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),g(e.done)):void 0}function nr(e,t,n,i){var r=e.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&r.lastModTime>s-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=tr(r,r.lastOp==i)))a=g(o.changes),0==F(t.from,t.to)&&0==F(t.from,a.to)?a.to=Oi(t):o.changes.push(Ji(e,t));else{var l=g(r.done);for(l&&l.ranges||or(e.sel,r.done),o={changes:[Ji(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||Me(e,"historyAdded")}function ir(e,t,n,i){var r=t.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function rr(e,t,n,i){var r=e.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||ir(e,o,g(r.done),t))?r.done[r.done.length-1]=t:or(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&er(r.undone)}function or(e,t){var n=g(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ar(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function sr(e){if(!e)return null;for(var t,n=0;n-1&&(g(s)[d]=c[d],delete c[d])}}}return i}function dr(e,t,n,i){if(e.cm&&e.cm.display.shift||e.extend){var r=t.anchor;if(i){var o=F(n,r)<0;o!=F(i,r)<0?(r=n,n=i):o!=F(n,i)<0&&(n=i)}return new ds(r,n)}return new ds(i||n,n)}function hr(e,t,n,i){br(e,new us([dr(e,e.sel.primary(),t,n)],0),i)}function fr(e,t,n){for(var i=[],r=0;r=t.ch:s.to>t.ch))){if(r&&(Me(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var c=l.find(i<0?1:-1),u=void 0;if((i<0?l.inclusiveRight:l.inclusiveLeft)&&(c=Tr(e,c,-i,c&&c.line==t.line?o:null)),c&&c.line==t.line&&(u=F(c,n))&&(i<0?u<0:u>0))return Sr(e,c,t,i,r)}var d=l.find(i<0?-1:1);return(i<0?l.inclusiveLeft:l.inclusiveRight)&&(d=Tr(e,d,i,d.line==t.line?o:null)),d?Sr(e,d,t,i,r):null}}return t}function Cr(e,t,n,i,r){var o=i||1,a=Sr(e,t,n,o,r)||!r&&Sr(e,t,n,o,!0)||Sr(e,t,n,-o,r)||!r&&Sr(e,t,n,-o,!0);return a||(e.cantEdit=!0,N(e.first,0))}function Tr(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?j(e,N(t.line-1)):null:n>0&&t.ch==(i||_(e,t.line)).text.length?t.line=0;--r)Dr(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text});else Dr(e,t)}}function Dr(e,t){if(1!=t.text.length||""!=t.text[0]||0!=F(t.from,t.to)){var n=Wi(e,t);nr(e,t,n,e.cm?e.cm.curOp.id:NaN),zr(e,t,n,J(e,t));var i=[];Vi(e,function(e,n){n||-1!=h(i,e.history)||(Rr(e.history,t),i.push(e.history)),zr(e,t,null,J(e,t))})}}function Mr(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var i,r=e.history,o=e.sel,a="undo"==t?r.done:r.undone,s="undo"==t?r.undone:r.done,l=0;l=0;--d){var f=function(n){var r=i.changes[n];if(r.origin=t,u&&!_r(e,r,!1))return a.length=0,{};c.push(Ji(e,r));var o=n?Wi(e,r):g(a);zr(e,r,o,cr(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Oi(r)});var s=[];Vi(e,function(e,t){t||-1!=h(s,e.history)||(Rr(e.history,r),s.push(e.history)),zr(e,r,null,cr(e,r))})}(d);if(f)return f.v}}}}function Hr(e,t){if(0!=t&&(e.first+=t,e.sel=new us(m(e.sel.ranges,function(e){return new ds(N(e.anchor.line+t,e.anchor.ch),N(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){gi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.lineo&&(t={from:t.from,to:N(o,_(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=L(e,t.from,t.to),n||(n=Wi(e,t)),e.cm?Ar(e.cm,t,i):Gi(e,t,i),yr(e,n,Da)}}function Ar(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=H(de(_(i,o.line))),i.iter(l,a.line+1,function(e){if(e==r.maxLine)return s=!0,!0})),i.sel.contains(t.from,t.to)>-1&&ze(e),Gi(i,t,n,kn(e)),e.options.lineWrapping||(i.iter(l,o.line+t.text.length,function(e){var t=ye(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),i.frontier=Math.min(i.frontier,o.line),wi(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?gi(e):o.line!=a.line||1!=t.text.length||Ui(e.doc,t)?gi(e,o.line,a.line+1,c):mi(e,o.line,"text");var u=Ae(e,"changes"),d=Ae(e,"change");if(d||u){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&St(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function Ir(e,t,n,i,r){if(i||(i=n),F(i,n)<0){var o=i;i=n,n=o}"string"==typeof t&&(t=e.splitLines(t)),Lr(e,{from:n,to:i,text:t,origin:r})}function Nr(e,t,n,i){n0||0==s&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=r("span",[a.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ue(e,t.line,t,n,a)||t.line!=n.line&&ue(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");U()}a.addToHistory&&nr(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,c=t.line,d=e.cm;if(e.iter(c,n.line+1,function(e){d&&a.collapsed&&!d.options.lineWrapping&&de(e)==d.display.maxLine&&(l=!0),a.collapsed&&c!=t.line&&M(e,0),Z(e,new G(a,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c}),a.collapsed&&e.iter(t.line,n.line+1,function(t){me(e,t)&&M(t,0)}),a.clearOnEnter&&Ba(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(q(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++gs,a.atomic=!0),d){if(l&&(d.curOp.updateMaxLine=!0),a.collapsed)gi(d,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var h=t.line;h<=n.line;h++)mi(d,h,"text");a.atomic&&wr(d.doc),St(d,"markerAdded",d,a)}return a}function jr(e,t,n,i,r){(i=u(i)).shared=!1;var o=[Wr(e,t,n,i,r)],a=o[0],s=i.widgetNode;return Vi(e,function(e){s&&(i.widgetNode=s.cloneNode(!0)),o.push(Wr(e,j(e,t),j(e,n),i,r));for(var l=0;l-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var l=e.dataTransfer.getData("Text");if(l){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),yr(t.doc,Pi(n,n)),c)for(var u=0;u=0;t--)Ir(e.doc,"",i[t].from,i[t].to,"+delete");qn(e)})}function so(e,t){var n=_(e.doc,t),i=de(n);return i!=n&&(t=H(i)),Ee(!0,e,i,t,1)}function lo(e,t){var n=_(e.doc,t),i=he(n);return i!=n&&(t=H(i)),Ee(!0,e,n,t,-1)}function co(e,t){var n=so(e,t.line),i=_(e.doc,n.line),r=Se(i,e.doc.direction);if(!r||0==r[0].level){var o=Math.max(0,i.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return N(n.line,a?0:o,n.sticky)}return n}function uo(e,t,n){if("string"==typeof t&&!(t=Ds[t]))return!1;e.display.input.ensurePolled();var i=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),r=t(e)!=La}finally{e.display.shift=i,e.state.suppressEdits=!1}return r}function ho(e,t,n){for(var i=0;ir-400&&0==F(Ls.pos,n)?i="triple":_s&&_s.time>r-400&&0==F(_s.pos,n)?(i="double",Ls={time:r,pos:n}):(i="single",_s={time:r,pos:n});var o,s=e.doc.sel,l=ga?t.metaKey:t.ctrlKey;e.options.dragDrop&&Wa&&!e.isReadOnly()&&"single"==i&&(o=s.contains(n))>-1&&(F((o=s.ranges[o]).from(),n)<0||n.xRel>0)&&(F(o.to(),n)>0||n.xRel<0)?ko(e,t,n,l):So(e,t,n,i,l)}function ko(e,t,n,i){var r=e.display,o=!1,a=hi(e,function(t){oa&&(r.scroller.draggable=!1),e.state.draggingText=!1,De(document,"mouseup",a),De(document,"mousemove",s),De(r.scroller,"dragstart",l),De(r.scroller,"drop",a),o||(Ne(t),i||hr(e.doc,n),oa||ia&&9==ra?setTimeout(function(){document.body.focus(),r.input.focus()},20):r.input.focus())}),s=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},l=function(){return o=!0};oa&&(r.scroller.draggable=!0),e.state.draggingText=a,a.copy=ga?t.altKey:t.ctrlKey,r.scroller.dragDrop&&r.scroller.dragDrop(),Ba(document,"mouseup",a),Ba(document,"mousemove",s),Ba(r.scroller,"dragstart",l),Ba(r.scroller,"drop",a),zn(e),setTimeout(function(){return r.input.focus()},20)}function So(e,t,n,i,r){function o(t){if(0!=F(y,t))if(y=t,"rect"==i){for(var r=[],o=e.options.tabSize,a=d(_(u,n.line).text,n.ch,o),s=d(_(u,t.line).text,t.ch,o),l=Math.min(a,s),c=Math.max(a,s),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var b=_(u,m).text,x=f(b,l,o);l==c?r.push(new ds(N(m,x),N(m,x))):b.length>x&&r.push(new ds(N(m,x),N(m,f(b,c,o))))}r.length||r.push(new ds(n,n)),br(u,Ri(g.ranges.slice(0,p).concat(r),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var w=h,k=w.anchor,S=t;if("single"!=i){var C;F((C="double"==i?e.findWordAt(t):new ds(N(t.line,0),j(u,N(t.line+1,0)))).anchor,k)>0?(S=C.head,k=B(w.from(),C.anchor)):(S=C.anchor,k=O(w.to(),C.head))}var T=g.ranges.slice(0);T[p]=new ds(j(u,k),S),br(u,Ri(T,p),Ma)}}function s(t){var n=++w,r=Cn(e,t,!0,"rect"==i);if(r)if(0!=F(r,y)){e.curOp.focus=a(),o(r);var l=Rn(c,u);(r.line>=l.to||r.linex.bottom?20:0;d&&setTimeout(hi(e,function(){w==n&&(c.scroller.scrollTop+=d,s(t))}),50)}}function l(t){e.state.selectingText=!1,w=1/0,Ne(t),c.input.focus(),De(document,"mousemove",k),De(document,"mouseup",S),u.history.lastSelOrigin=null}var c=e.display,u=e.doc;Ne(t);var h,p,g=u.sel,m=g.ranges;if(r&&!t.shiftKey?(p=u.sel.contains(n),h=p>-1?m[p]:new ds(n,n)):(h=u.sel.primary(),p=u.sel.primIndex),ma?t.shiftKey&&t.metaKey:t.altKey)i="rect",r||(h=new ds(n,n)),n=Cn(e,t,!0,!0),p=-1;else if("double"==i){var v=e.findWordAt(n);h=e.display.shift||u.extend?dr(u,h,v.anchor,v.head):v}else if("triple"==i){var b=new ds(N(n.line,0),j(u,N(n.line+1,0)));h=e.display.shift||u.extend?dr(u,h,b.anchor,b.head):b}else h=dr(u,h,n);r?-1==p?(p=m.length,br(u,Ri(m.concat([h]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&"single"==i&&!t.shiftKey?(br(u,Ri(m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=u.sel):pr(u,p,h,Ma):(p=0,br(u,new us([h],0),Ma),g=u.sel);var y=n,x=c.wrapper.getBoundingClientRect(),w=0,k=hi(e,function(e){Be(e)?s(e):l(e)}),S=hi(e,l);e.state.selectingText=S,Ba(document,"mousemove",k),Ba(document,"mouseup",S)}function Co(e,t,n,i){var r,o;try{r=t.clientX,o=t.clientY}catch(e){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Ne(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ae(e,n))return Re(t);o-=s.top-a.viewOffset;for(var l=0;l=r)return Me(e,n,e,z(e.doc,o),e.options.gutters[l],t),Re(t)}}function To(e,t){return Co(e,t,"gutterClick",!0)}function Eo(e,t){Pt(e.display,t)||_o(e,t)||He(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function _o(e,t){return!!Ae(e,"gutterContextMenu")&&Co(e,t,"gutterContextMenu",!1)}function Lo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),on(e)}function Do(e){zi(e),gi(e),Pn(e)}function Mo(e,t,n){if(!t!=!(n&&n!=zs)){var i=e.display.dragFunctions,r=t?Ba:De;r(e.display.scroller,"dragstart",i.start),r(e.display.scroller,"dragenter",i.enter),r(e.display.scroller,"dragover",i.over),r(e.display.scroller,"dragleave",i.leave),r(e.display.scroller,"drop",i.drop)}}function Ho(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ka(e.display.wrapper,"CodeMirror-wrap"),xe(e)),Sn(e),gi(e),on(e),setTimeout(function(){return ei(e)},100)}function zo(e,t){var n=this;if(!(this instanceof zo))return new zo(e,t);this.options=t=t?u(t):{},u(As,t,!1),Ai(t);var i=t.value;"string"==typeof i&&(i=new ys(i,t.mode,null,t.lineSeparator,t.direction)),this.doc=i;var r=new zo.inputStyles[t.inputStyle](this),o=this.display=new E(e,i,r);o.wrapper.CodeMirror=this,zi(this),Lo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ni(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Ca,keySeq:null,specialChars:null},t.autofocus&&!pa&&o.input.focus(),ia&&ra<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Ao(this),Qr(),ii(this),this.curOp.forceUpdate=!0,Xi(this,i),t.autofocus&&!pa||this.hasFocus()?setTimeout(c(An,this),20):In(this);for(var a in Is)Is.hasOwnProperty(a)&&Is[a](n,t[a],zs);On(this),t.finishInit&&t.finishInit(this);for(var s=0;s400}var r=e.display;Ba(r.scroller,"mousedown",hi(e,xo)),ia&&ra<11?Ba(r.scroller,"dblclick",hi(e,function(t){if(!He(e,t)){var n=Cn(e,t);if(n&&!To(e,t)&&!Pt(e.display,t)){Ne(t);var i=e.findWordAt(n);hr(e.doc,i.anchor,i.head)}}})):Ba(r.scroller,"dblclick",function(t){return He(e,t)||Ne(t)}),wa||Ba(r.scroller,"contextmenu",function(t){return Eo(e,t)});var o,a={end:0};Ba(r.scroller,"touchstart",function(t){if(!He(e,t)&&!n(t)){r.input.ensurePolled(),clearTimeout(o);var i=+new Date;r.activeTouch={start:i,moved:!1,prev:i-a.end<=300?a:null},1==t.touches.length&&(r.activeTouch.left=t.touches[0].pageX,r.activeTouch.top=t.touches[0].pageY)}}),Ba(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ba(r.scroller,"touchend",function(n){var o=r.activeTouch;if(o&&!Pt(r,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,s=e.coordsChar(r.activeTouch,"page");a=!o.prev||i(o,o.prev)?new ds(s,s):!o.prev.prev||i(o,o.prev.prev)?e.findWordAt(s):new ds(N(s.line,0),j(e.doc,N(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ne(n)}t()}),Ba(r.scroller,"touchcancel",t),Ba(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Zn(e,r.scroller.scrollTop),Kn(e,r.scroller.scrollLeft,!0),Me(e,"scroll",e))}),Ba(r.scroller,"mousewheel",function(t){return Fi(e,t)}),Ba(r.scroller,"DOMMouseScroll",function(t){return Fi(e,t)}),Ba(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(t){He(e,t)||Pe(t)},over:function(t){He(e,t)||(Vr(e,t),Pe(t))},start:function(t){return Gr(e,t)},drop:hi(e,Ur),leave:function(t){He(e,t)||Xr(e)}};var s=r.input.getField();Ba(s,"keyup",function(t){return bo.call(e,t)}),Ba(s,"keydown",hi(e,mo)),Ba(s,"keypress",hi(e,yo)),Ba(s,"focus",function(t){return An(e,t)}),Ba(s,"blur",function(t){return In(e,t)})}function Io(e,t,n,i){var r,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=et(e,t):n="prev");var a=e.options.tabSize,s=_(o,t),l=d(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(r,s.text.slice(u.length),s.text))==La||c>150)){if(!i)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?d(_(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var h="",f=0;if(e.options.indentWithTabs)for(var g=Math.floor(c/a);g;--g)f+=a,h+="\t";if(f1)if(Fs&&Fs.text.join("\n")==t){if(i.ranges.length%Fs.text.length==0){l=[];for(var c=0;c=0;d--){var h=i.ranges[d],f=h.from(),p=h.to();h.empty()&&(n&&n>0?f=N(f.line,f.ch-n):e.state.overwrite&&!a?p=N(p.line,Math.min(_(o,p.line).text.length,p.ch+g(s).length)):Fs&&Fs.lineWise&&Fs.text.join("\n")==t&&(f=p=N(f.line,0))),u=e.curOp.updateInput;var v={from:f,to:p,text:l?l[d%l.length]:s,origin:r||(a?"paste":e.state.cutIncoming?"cut":"+input")};Lr(e.doc,v),St(e,"inputRead",e,v)}t&&!a&&Po(e,t),qn(e),e.curOp.updateInput=u,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Ro(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||di(t,function(){return Fo(t,n,0,null,"paste")}),!0}function Po(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=e.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Io(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(_(e.doc,r.head.line).text.slice(0,r.head.ch))&&(a=Io(e,r.head.line,"smart"));a&&St(e,"electricInput",e,r.head.line)}}}function Oo(e){for(var t=[],n=[],i=0;i=e.first+e.size)&&(t=new N(i,t.ch,t.sticky),c=_(e,i))}function a(i){var a;if(null==(a=r?_e(e.cm,c,t,n):Te(c,t,n))){if(i||!o())return!1;t=Ee(r,e.cm,c,t.line,n)}else t=a;return!0}var s=t,l=n,c=_(e,t.line);if("char"==i)a();else if("column"==i)a(!0);else if("word"==i||"group"==i)for(var u=null,d="group"==i,h=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||a(!f);f=!1){var p=c.text.charAt(t.ch)||"\n",g=w(p,h)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||f||g||(g="s"),u&&u!=g){n<0&&(n=1,a(),t.sticky="after");break}if(g&&(u=g),n>0&&!a(!f))break}var m=Cr(e,t,s,l,!0);return R(s,m)&&(m.hitSide=!0),m}function Yo(e,t,n,i){var r,o=e.doc,a=t.left;if("page"==i){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*bn(e.display),3);r=(n>0?t.bottom:t.top)+n*l}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(var c;(c=pn(e,a,r)).outside;){if(n<0?r<=0:r>=o.height){c.hitSide=!0;break}r+=5*n}return c}function $o(e,t){var n=Xt(e,t.line);if(!n||n.hidden)return null;var i=_(e.doc,t.line),r=Ut(n,i,t.line),o=Se(i,e.doc.direction),a="left";o&&(a=ke(o,t.ch)%2?"right":"left");var s=Kt(r.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function qo(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Uo(e,t){return t&&(e.bad=!0),e}function Go(e,t,n,i,r){function o(e){return function(t){return t.id==e}}function a(){u&&(c+=d,u=!1)}function s(e){e&&(a(),c+=e)}function l(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void s(n||t.textContent.replace(/\u200b/g,""));var c,h=t.getAttribute("cm-marker");if(h){var f=e.findMarks(N(i,0),N(r+1,0),o(+h));return void(f.length&&(c=f[0].find())&&s(L(e.doc,c.from,c.to).join(d)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p)$/i.test(t.nodeName);p&&a();for(var g=0;g=15&&(la=!1,oa=!0);var ya,xa=ga&&(aa||la&&(null==ba||ba<12.11)),wa=Jo||ia&&ra>=9,ka=function(t,n){var i=t.className,r=e(n).exec(i);if(r){var o=i.slice(r.index+r[0].length);t.className=i.slice(0,r.index)+(o?r[1]+o:"")}};ya=document.createRange?function(e,t,n,i){var r=document.createRange();return r.setEnd(i||e,n),r.setStart(e,t),r}:function(e,t,n){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch(e){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i};var Sa=function(e){e.select()};ha?Sa=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ia&&(Sa=function(e){try{e.select()}catch(e){}});var Ca=function(){this.id=null};Ca.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var Ta,Ea,_a=30,La={toString:function(){return"CodeMirror.Pass"}},Da={scroll:!1},Ma={origin:"*mouse"},Ha={origin:"+move"},za=[""],Aa=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ia=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Na=!1,Fa=!1,Ra=null,Pa=function(){ +function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?i.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,l=/[1n]/;return function(n,i){var c="ltr"==i?"L":"R";if(0==n.length||"ltr"==i&&!r.test(n))return!1;for(var u=n.length,d=[],h=0;h=this.string.length},Xa.prototype.sol=function(){return this.pos==this.lineStart},Xa.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xa.prototype.next=function(){if(this.post},Xa.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},Xa.prototype.skipToEnd=function(){this.pos=this.string.length},Xa.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xa.prototype.backUp=function(e){this.pos-=e},Xa.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},Xa.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xa.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};var Za=function(e,t,n){this.text=e,ie(this,t),this.height=n?n(this):1};Za.prototype.lineNo=function(){return H(this)},Ie(Za);var Qa,Ka={},Ja={},es=null,ts=null,ns={left:0,right:0,top:0,bottom:0},is=function(e,t,n){this.cm=n;var r=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),Ba(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Ba(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ia&&ra<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};is.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},is.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},is.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},is.prototype.zeroWidthHack=function(){var e=ga&&!ua?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ca,this.disableVert=new Ca},is.prototype.enableZeroWidthBar=function(e,t,n){function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)}e.style.pointerEvents="auto",t.set(1e3,i)},is.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var rs=function(){};rs.prototype.update=function(){return{bottom:0,right:0}},rs.prototype.setScrollLeft=function(){},rs.prototype.setScrollTop=function(){},rs.prototype.clear=function(){};var os={native:is,null:rs},as=0,ss=function(e,t,n){var i=e.display;this.viewport=t,this.visible=Rn(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Yt(e),this.force=n,this.dims=xn(e),this.events=[]};ss.prototype.signal=function(e,t){Ae(e,t)&&this.events.push(arguments)},ss.prototype.finish=function(){for(var e=this,t=0;t=0&&F(e,r.to())<=0)return i}return-1};var ds=function(e,t){this.anchor=e,this.head=t};ds.prototype.from=function(){return B(this.anchor,this.head)},ds.prototype.to=function(){return O(this.anchor,this.head)},ds.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};var hs=function(e){var t=this;this.lines=e,this.parent=null;for(var n=0,i=0;i1||!(this.children[0]instanceof hs))){var l=[];this.collapse(l),this.children=[new hs(l)],this.children[0].parent=this}},fs.prototype.collapse=function(e){for(var t=this,n=0;n50){for(var s=o.lines.length%25+25,l=s;l10);e.parent.maybeSpill()}},fs.prototype.iterN=function(e,t,n){for(var i=this,r=0;rt.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=d,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&gi(t,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&wr(t.doc)),t&&St(t,"markerCleared",t,this,r,o),n&&ri(t),this.parent&&this.parent.clear()}},ms.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var i,r,o=0;o=0;c--)Lr(i,r[c]);l?vr(this,l):this.cm&&qn(this.cm)}),undo:pi(function(){Mr(this,"undo")}),redo:pi(function(){Mr(this,"redo")}),undoSelection:pi(function(){Mr(this,"undo",!0)}),redoSelection:pi(function(){Mr(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=j(this,e),t=j(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&r!=e.line||null!=l.from&&r==t.line&&l.from>=t.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var i=0;ie?(t=e,!0):(e-=o,void++n)}),j(this,N(n,t))},indexFromPos:function(e){var t=(e=j(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)r=new N(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),N(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var a=_(e.doc,r.line-1).text;a&&(r=new N(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),N(r.line-1,a.length-1),r,"+transpose"))}n.push(new ds(r,r))}e.setSelections(n)})},newlineAndIndent:function(e){return di(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;i=t.display.viewTo||r.line=t.display.viewFrom&&$o(t,i)||{node:s[0].measure.map[2],offset:0},c=r.linee.firstLine()&&(i=N(i.line-1,_(e.doc,i.line-1).length)),r.ch==_(e.doc,r.line).text.length&&r.linet.viewTo-1)return!1;var o,a,s;i.line==t.viewFrom||0==(o=Tn(e,i.line))?(a=H(t.view[0].line),s=t.view[0].node):(a=H(t.view[o].line),s=t.view[o-1].node.nextSibling);var l,c,u=Tn(e,r.line);if(u==t.view.length-1?(l=t.viewTo-1,c=t.lineDiv.lastChild):(l=H(t.view[u+1].line)-1,c=t.view[u+1].node.previousSibling),!s)return!1;for(var d=e.doc.splitLines(Go(e,s,c,a,l)),h=L(e.doc,N(a,0),N(l,_(e.doc,l).text.length));d.length>1&&h.length>1;)if(g(d)==g(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),a++}for(var f=0,p=0,m=d[0],v=h[0],b=Math.min(m.length,v.length);fi.ch&&y.charCodeAt(y.length-p-1)==x.charCodeAt(x.length-p-1);)f--,p++;d[d.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var k=N(a,f),S=N(l,h.length?g(h).length-p:0);return d.length>1||d[0]||F(k,S)?(Ir(e.doc,d,k,S,"+input"),!0):void 0},Rs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Rs.prototype.reset=function(){this.forceCompositionEnd()},Rs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Rs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Rs.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||di(this.cm,function(){return gi(e.cm)})},Rs.prototype.setUneditable=function(e){e.contentEditable="false"},Rs.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||hi(this.cm,Fo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Rs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Rs.prototype.onContextMenu=function(){},Rs.prototype.resetPosition=function(){},Rs.prototype.needsContentAttribute=!0;var Ps=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ca,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null};Ps.prototype.init=function(e){function t(e){if(!He(r,e)){if(r.somethingSelected())No({lineWise:!1,text:r.getSelections()}),i.inaccurateSelection&&(i.prevInput="",i.inaccurateSelection=!1,a.value=Fs.text.join("\n"),Sa(a));else{if(!r.options.lineWiseCopyCut)return;var t=Oo(r);No({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,Da):(i.prevInput="",a.value=t.text.join("\n"),Sa(a))}"cut"==e.type&&(r.state.cutIncoming=!0)}}var n=this,i=this,r=this.cm,o=this.wrapper=Wo(),a=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),ha&&(a.style.width="0px"),Ba(a,"input",function(){ia&&ra>=9&&n.hasSelection&&(n.hasSelection=null),i.poll()}),Ba(a,"paste",function(e){He(r,e)||Ro(e,r)||(r.state.pasteIncoming=!0,i.fastPoll())}),Ba(a,"cut",t),Ba(a,"copy",t),Ba(e.scroller,"paste",function(t){Pt(e,t)||He(r,t)||(r.state.pasteIncoming=!0,i.focus())}),Ba(e.lineSpace,"selectstart",function(t){Pt(e,t)||Ne(t)}),Ba(a,"compositionstart",function(){var e=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Ba(a,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Ps.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=_n(e);if(e.options.moveInputWithCursor){var r=dn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},Ps.prototype.showSelection=function(e){var t=this.cm.display;n(t.cursorDiv,e.cursors),n(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ps.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t,n,i=this.cm,r=i.doc;if(i.somethingSelected()){this.prevInput="";var o=r.sel.primary(),a=(t=$a&&(o.to().line-o.from().line>100||(n=i.getSelection()).length>1e3))?"-":n||i.getSelection();this.textarea.value=a,i.state.focused&&Sa(this.textarea),ia&&ra>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",ia&&ra>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},Ps.prototype.getField=function(){return this.textarea},Ps.prototype.supportsTouch=function(){return!1},Ps.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!pa||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ps.prototype.blur=function(){this.textarea.blur()},Ps.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ps.prototype.receivedFocus=function(){this.slowPoll()},Ps.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ps.prototype.fastPoll=function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},Ps.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ya(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(ia&&ra>=9&&this.hasSelection===r||ga&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(i.length,r.length);a1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ps.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ps.prototype.onKeyPress=function(){ia&&ra>=9&&(this.hasSelection=null),this.fastPoll()},Ps.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=r.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,i.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=r.doc.sel}}function n(){if(i.contextMenuPending=!1,i.wrapper.style.cssText=u,a.style.cssText=c,ia&&ra<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=l),null!=a.selectionStart){(!ia||ia&&ra<9)&&t();var e=0,n=function(){o.selForContextMenu==r.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==i.prevInput?hi(r,Er)(r):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var i=this,r=i.cm,o=r.display,a=i.textarea,s=Cn(r,e),l=o.scroller.scrollTop;if(s&&!la){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(s)&&hi(r,br)(r.doc,Pi(s),Da);var c=a.style.cssText,u=i.wrapper.style.cssText;i.wrapper.style.cssText="position: absolute";var d=i.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+"px;\n z-index: 1000; background: "+(ia?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var h;if(oa&&(h=window.scrollY),o.input.focus(),oa&&window.scrollTo(null,h),o.input.reset(),r.somethingSelected()||(a.value=i.prevInput=" "),i.contextMenuPending=!0,o.selForContextMenu=r.doc.sel,clearTimeout(o.detectingSelectAll),ia&&ra>=9&&t(),wa){Pe(e);var f=function(){De(window,"mouseup",f),setTimeout(n,20)};Ba(window,"mouseup",f)}else setTimeout(n,50)}},Ps.prototype.readOnlyChanged=function(e){e||this.reset()},Ps.prototype.setUneditable=function(){},Ps.prototype.needsContentAttribute=!1,function(e){function t(t,i,r,o){e.defaults[t]=i,r&&(n[t]=o?function(e,t,n){n!=zs&&r(e,t,n)}:r)}var n=e.optionHandlers;e.defineOption=t,e.Init=zs,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,$i(e)},!0),t("indentUnit",2,$i,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){qi(e),on(e),gi(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter(function(e){for(var r=0;;){var o=e.text.indexOf(t,r);if(-1==o)break;r=o+t.length,n.push(N(i,o))}i++});for(var r=n.length-1;r>=0;r--)Ir(e.doc,t,n[r],N(n[r].line,n[r].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=zs&&e.refresh()}),t("specialCharPlaceholder",ht,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",pa?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!va),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){Lo(e),Do(e)},!0),t("keyMap","default",function(e,t,n){var i=oo(t),r=n!=zs&&oo(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)}),t("extraKeys",null),t("lineWrapping",!1,Ho,!0),t("gutters",[],function(e){Ai(e.options),Do(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?wn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return ei(e)},!0),t("scrollbarStyle","native",function(e){ni(e),ei(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Ai(e.options),Do(e)},!0),t("firstLineNumber",1,Do,!0),t("lineNumberFormatter",function(e){return e},Do,!0),t("showCursorWhenSelecting",!1,En,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("readOnly",!1,function(e,t){"nocursor"==t?(In(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Mo),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,En,!0),t("singleCursorHeightPerLine",!0,En,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,qi,!0),t("addModeClass",!1,qi,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,qi,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(zo),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var i=this.options,r=i[e];i[e]==n&&"mode"!=e||(i[e]=n,t.hasOwnProperty(e)&&hi(this,t[e])(this,n,r),Me(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](oo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;ni&&(Io(t,o.head.line,e,!0),i=o.head.line,r==t.doc.sel.primIndex&&qn(t));else{var a=o.from(),s=o.to(),l=Math.max(i,a.line);i=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var c=l;c0&&pr(t.doc,r,new ds(a,u[r].to()),Da)}}}),getTokenAt:function(e,t){return rt(this,e,t)},getLineTokens:function(e,t){return rt(this,N(e),t,!0)},getTokenTypeAt:function(e){e=j(this.doc,e);var t,n=Je(this,_(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]o&&(e=o,r=!0),i=_(this.doc,e)}else i=e;return ln(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-be(i):0)},defaultTextHeight:function(){return bn(this.display)},defaultCharWidth:function(){return yn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display,a=(e=dn(this,j(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)a=e.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==r?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&jn(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:fi(mo),triggerOnKeyPress:fi(yo),triggerOnKeyUp:bo,execCommand:function(e){if(Ds.hasOwnProperty(e))return Ds[e].call(null,this)},triggerElectric:fi(function(e){Po(this,e)}),findPosH:function(e,t,n,i){var r=this,o=1;t<0&&(o=-1,t=-t);for(var a=j(this.doc,e),s=0;s0&&a(t.charAt(n-1));)--n;for(;i.5)&&Sn(this),Me(this,"refresh",this)}),swapDoc:fi(function(e){var t=this.doc;return t.cm=null,Xi(this,e),on(this),this.display.input.reset(),Un(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,St(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ie(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}}(zo);var Os="iter insert remove copy getEditor constructor".split(" ");for(var Bs in ys.prototype)ys.prototype.hasOwnProperty(Bs)&&h(Os,Bs)<0&&(zo.prototype[Bs]=function(e){return function(){return e.apply(this.doc,arguments)}}(ys.prototype[Bs]));return Ie(ys),zo.inputStyles={textarea:Ps,contenteditable:Rs},zo.defineMode=function(e){zo.defaults.mode||"null"==e||(zo.defaults.mode=e),$e.apply(this,arguments)},zo.defineMIME=qe,zo.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),zo.defineMIME("text/plain","null"),zo.defineExtension=function(e,t){zo.prototype[e]=t},zo.defineDocExtension=function(e,t){ys.prototype[e]=t},zo.fromTextArea=Zo,function(e){e.off=De,e.on=Ba,e.wheelEventPixels=Ni,e.Doc=ys,e.splitLines=ja,e.countColumn=d,e.findColumn=f,e.isWordChar=x,e.Pass=La,e.signal=Me,e.Line=Za,e.changeEnd=Oi,e.scrollbarModel=os,e.Pos=N,e.cmpPos=F,e.modes=Ua,e.mimeModes=Ga,e.resolveMode=Ue,e.getMode=Ge,e.modeExtensions=Va,e.extendMode=Ve,e.copyState=Xe,e.startState=Qe,e.innerMode=Ze,e.commands=Ds,e.keyMap=Es,e.keyName=ro,e.isModifierKey=io,e.lookupKey=no,e.normalizeKeyMap=to,e.StringStream=Xa,e.SharedTextMarker=vs,e.TextMarker=ms,e.LineWidget=ps,e.e_preventDefault=Ne,e.e_stopPropagation=Fe,e.e_stop=Pe,e.addClass=s,e.contains=o,e.rmClass=ka,e.keyNames=ks}(zo),zo.version="5.26.0",zo})},{}],11:[function(e,t,n){!function(i){"object"==typeof n&&"object"==typeof t?i(e("../../lib/codemirror"),e("../markdown/markdown"),e("../../addon/mode/overlay")):i(CodeMirror)}(function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(n,i){function r(e){return e.code=!1,null}var o=0,a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var r=e.pos;e.eatWhile("`");var a=1+e.pos-r;return n.code?a===o&&(n.code=!1):(o=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==i.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:r},s={taskLists:!0,fencedCodeBlocks:"```",strikethrough:!0};for(var l in i)s[l]=i[l];return s.name="markdown",e.overlayMode(e.getMode(n,s),a)},"markdown"),e.defineMIME("text/x-gfm","gfm")})},{"../../addon/mode/overlay":8,"../../lib/codemirror":10,"../markdown/markdown":12}],12:[function(e,t,n){!function(i){"object"==typeof n&&"object"==typeof t?i(e("../../lib/codemirror"),e("../xml/xml"),e("../meta")):i(CodeMirror)}(function(e){"use strict";e.defineMode("markdown",function(t,n){function i(n){if(e.findModeByName){var i=e.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var r=e.getMode(t,n);return"null"==r.name?null:r}function r(e,t,n){return t.f=t.inline=n,n(e,t)}function o(e,t,n){return t.f=t.block=n,n(e,t)}function a(e){return!e||!/\S/.test(e.string)}function s(e){return e.linkTitle=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==c&&(e.f=f,e.block=l),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine=null,null}function l(t,o){var s=t.sol(),l=!1!==o.list,c=o.indentedCode;o.indentedCode=!1,l&&(o.indentationDiff>=0?(o.indentationDiff<4&&(o.indentation-=o.indentationDiff),o.list=null):o.indentation>0?o.list=null:o.list=!1);var h=null;if(o.indentationDiff>=4)return t.skipToEnd(),c||a(o.prevLine)?(o.indentation-=4,o.indentedCode=!0,k.code):null;if(t.eatSpace())return null;if((h=t.match(_))&&h[1].length<=6)return o.header=h[1].length,n.highlightFormatting&&(o.formatting="header"),o.f=o.inline,d(o);if(!(a(o.prevLine)||o.quote||l||c)&&(h=t.match(L)))return o.header="="==h[0].charAt(0)?1:2,n.highlightFormatting&&(o.formatting="header"),o.f=o.inline,d(o);if(t.eat(">"))return o.quote=s?1:o.quote+1,n.highlightFormatting&&(o.formatting="quote"),t.eatSpace(),d(o);if("["===t.peek())return r(t,o,v);if(t.match(C,!0))return o.hr=!0,k.hr;if(h=t.match(T)){var f=h[1]?"ol":"ul";for(o.indentation=t.column()+t.current().length,o.list=!0;o.listStack&&t.column()")>-1)&&(n.f=f,n.block=l,n.htmlState=null)}return i}function u(e,t){if(t.fencedChars&&e.match(t.fencedChars)){n.highlightFormatting&&(t.formatting="code-block");var i=d(t);return t.localMode=t.localState=null,t.block=l,t.f=f,t.fencedChars=null,t.code=0,i}return t.fencedChars&&e.skipTo(t.fencedChars)?"comment":t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),k.code)}function d(e){var t=[];if(e.formatting){t.push(k.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var i=0;i=e.quote?t.push(k.formatting+"-"+e.formatting[i]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(k.linkHref,"url"):(e.strong&&t.push(k.strong),e.em&&t.push(k.em),e.strikethrough&&t.push(k.strikethrough), +e.linkText&&t.push(k.linkText),e.code&&t.push(k.code),e.image&&t.push(k.image),e.imageAltText&&t.push(k.imageAltText,"link"),e.imageMarker&&t.push(k.imageMarker)),e.header&&t.push(k.header,k.header+"-"+e.header),e.quote&&(t.push(k.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(k.quote+"-"+e.quote):t.push(k.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var r=(e.listStack.length-1)%3;r?1===r?t.push(k.list2):t.push(k.list3):t.push(k.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function h(e,t){if(e.match(D,!0))return d(t)}function f(t,i){var r=i.text(t,i);if(void 0!==r)return r;if(i.list)return i.list=null,d(i);if(i.taskList)return"x"!==t.match(E,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,d(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),d(i);var a=t.next();if(i.linkTitle){i.linkTitle=!1;var s=a;"("===a&&(s=")");var l="^\\s*(?:[^"+(s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(t.match(new RegExp(l),!0))return k.linkHref}if("`"===a){var u=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var h=t.current().length;return 0==i.code?(i.code=h,d(i)):h==i.code?(M=d(i),i.code=0,M):(i.formatting=u,d(i))}if(i.code)return d(i);if("\\"===a&&(t.next(),n.highlightFormatting)){var m=d(i),v=k.formatting+"-escape";return m?m+" "+v:v}if("!"===a&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),d(i);if("["===a&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),d(i);if("]"===a&&i.imageAltText)return n.highlightFormatting&&(i.formatting="image"),m=d(i),i.imageAltText=!1,i.image=!1,i.inline=i.f=g,m;if("["===a&&!i.image)return i.linkText=!0,n.highlightFormatting&&(i.formatting="link"),d(i);if("]"===a&&i.linkText)return n.highlightFormatting&&(i.formatting="link"),m=d(i),i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?g:f,m;if("<"===a&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=p,n.highlightFormatting&&(i.formatting="link"),(m=d(i))?m+=" ":m="",m+k.linkInline;if("<"===a&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=p,n.highlightFormatting&&(i.formatting="link"),(m=d(i))?m+=" ":m="",m+k.linkEmail;if("<"===a&&t.match(/^(!--|[a-z]+(?:\s+[a-z_:.\-]+(?:\s*=\s*[^ >]+)?)*\s*>)/i,!1)){var b=t.string.indexOf(">",t.pos);if(-1!=b){var y=t.string.substring(t.start,b);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(x),o(t,i,c)}if("<"===a&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===a||"_"===a){for(var w=1,S=1==t.pos?" ":t.string.charAt(t.pos-2);w<3&&t.eat(a);)w++;var C=t.peek()||" ",T=!/\s/.test(C)&&(!H.test(C)||/\s/.test(S)||H.test(S)),_=!/\s/.test(S)&&(!H.test(S)||/\s/.test(C)||H.test(C)),L=null,D=null;if(w%2&&(i.em||!T||"*"!==a&&_&&!H.test(S)?i.em!=a||!_||"*"!==a&&T&&!H.test(C)||(L=!1):L=!0),w>1&&(i.strong||!T||"*"!==a&&_&&!H.test(S)?i.strong!=a||!_||"*"!==a&&T&&!H.test(C)||(D=!1):D=!0),null!=D||null!=L)return n.highlightFormatting&&(i.formatting=null==L?"strong":null==D?"em":"strong em"),!0===L&&(i.em=a),!0===D&&(i.strong=a),M=d(i),!1===L&&(i.em=!1),!1===D&&(i.strong=!1),M}else if(" "===a&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return d(i);t.backUp(1)}if(n.strikethrough)if("~"===a&&t.eatWhile(a)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");var M=d(i);return i.strikethrough=!1,M}if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),d(i)}else if(" "===a&&t.match(/^~~/,!0)){if(" "===t.peek())return d(i);t.backUp(2)}return" "===a&&(t.match(/ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),d(i)}function p(e,t){if(">"===e.next()){t.f=t.inline=f,n.highlightFormatting&&(t.formatting="link");var i=d(t);return i?i+=" ":i="",i+k.linkInline}return e.match(/^[^>]+/,!0),k.linkInline}function g(e,t){if(e.eatSpace())return null;var i=e.next();return"("===i||"["===i?(t.f=t.inline=m("("===i?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,d(t)):"error"}function m(e){return function(t,i){if(t.next()===e){i.f=i.inline=f,n.highlightFormatting&&(i.formatting="link-string");var r=d(i);return i.linkHref=!1,r}return t.match(z[e]),i.linkHref=!0,d(i)}}function v(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=b,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,d(t)):r(e,t,f)}function b(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=y,n.highlightFormatting&&(t.formatting="link");var i=d(t);return t.linkText=!1,i}return e.match(/^([^\]\\]|\\.)+/,!0),k.linkText}function y(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=f,k.linkHref+" url")}var x=e.getMode(t,"text/html"),w="null"==x.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var k={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough"};for(var S in k)k.hasOwnProperty(S)&&n.tokenTypeOverrides[S]&&(k[S]=n.tokenTypeOverrides[S]);var C=/^([*\-_])(?:\s*\1){2,}\s*$/,T=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,E=/^\[(x| )\](?=\s)/,_=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,L=/^ *(?:\={1,}|-{1,})\s*$/,D=/^[^#!\[\]*_\\<>` "'(~]+/,M=new RegExp("^("+(!0===n.fencedCodeBlocks?"~~~+|```+":n.fencedCodeBlocks)+")[ \\t]*([\\w+#-]*)"),H=/[!\"#$%&\'()*+,\-\.\/:;<=>?@\[\\\]^_`{|}~—]/,z={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/},A={startState:function(){return{f:l,prevLine:null,thisLine:null,block:l,htmlState:null,indentation:0,inline:f,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,fencedChars:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(x,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,header:t.header,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedChars:t.fencedChars}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine){var n=t.header||t.hr;if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0)||n){if(s(t),!n)return null;t.prevLine=null}t.prevLine=t.thisLine,t.thisLine=e,t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.f=t.block;var i=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentationDiff=Math.min(i-t.indentation,4),t.indentation=t.indentation+t.indentationDiff,i>0)return null}return t.f(e,t)},innerMode:function(e){return e.block==c?{state:e.htmlState,mode:x}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:A}},blankLine:s,getType:d,closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return A},"xml"),e.defineMIME("text/x-markdown","markdown")})},{"../../lib/codemirror":10,"../meta":13,"../xml/xml":14}],13:[function(e,t,n){!function(i){i("object"==typeof n&&"object"==typeof t?e("../lib/codemirror"):CodeMirror)}(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["pgp"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mime:"text/x-coffeescript",mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mime:"text/n-triples",mode:"ntriples",ext:["nt"]},{name:"Objective C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mime:"application/x-httpd-php",mode:"php",ext:["php","php3","php4","php5","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mime:"text/x-sh",mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t-1&&t.substring(r+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n")):null:e.match("--")?n(l("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=l("meta","?>"),"meta"):(E=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==i){var r;return r=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),r?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=o,E=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return E="equals",null;if("<"==n){t.tokenize=o,t.state=f,t.tagName=t.tagStart=null;var i=t.tokenize(e,t);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=s(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function l(e,t){return function(n,i){for(;!n.eol();){if(n.match(t)){i.tokenize=o;break}n.next()}return e}}function c(e){return function(t,n){for(var i;null!=(i=t.next());){if("<"==i)return n.tokenize=c(e+1),n.tokenize(t,n);if(">"==i){if(1==e){n.tokenize=o;break}return n.tokenize=c(e-1),n.tokenize(t,n)}}return"meta"}}function u(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(S.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function h(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!S.contextGrabbers.hasOwnProperty(n)||!S.contextGrabbers[n].hasOwnProperty(t))return;d(e)}}function f(e,t,n){return"openTag"==e?(n.tagStart=t.column(),p):"closeTag"==e?g:f}function p(e,t,n){return"word"==e?(n.tagName=t.current(),_="tag",b):(_="error",p)}function g(e,t,n){if("word"==e){var i=t.current();return n.context&&n.context.tagName!=i&&S.implicitlyClosed.hasOwnProperty(n.context.tagName)&&d(n),n.context&&n.context.tagName==i||!1===S.matchClosing?(_="tag",m):(_="tag error",v)}return _="error",v}function m(e,t,n){return"endTag"!=e?(_="error",m):(d(n),f)}function v(e,t,n){return _="error",m(e,t,n)}function b(e,t,n){if("word"==e)return _="attribute",y;if("endTag"==e||"selfcloseTag"==e){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||S.autoSelfClosers.hasOwnProperty(i)?h(n,i):(h(n,i),n.context=new u(n,i,r==n.indented)),f}return _="error",b}function y(e,t,n){return"equals"==e?x:(S.allowMissing||(_="error"),b(e,t,n))}function x(e,t,n){return"string"==e?w:"word"==e&&S.allowUnquoted?(_="string",b):(_="error",b(e,t,n))}function w(e,t,n){return"string"==e?w:b(e,t,n)}var k=i.indentUnit,S={},C=r.htmlMode?t:n;for(var T in C)S[T]=C[T];for(var T in r)S[T]=r[T];var E,_;return o.isInText=!0,{startState:function(e){var t={tokenize:o,state:f,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;E=null;var n=t.tokenize(e,t);return(n||E)&&"comment"!=n&&(_=null,t.state=t.state(E||n,e,t),_&&(n="error"==_?n+" error":_)),n},indent:function(t,n,i){var r=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+k;if(r&&r.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=o)return i?i.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==S.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+k*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/$/,blockCommentStart:"",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(e){e.state==x&&(e.state=b)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},{"../../lib/codemirror":10}],15:[function(e,t,n){n.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<>1,u=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=c}return(f?-1:1)*a*Math.pow(2,o-i)},n.write=function(e,t,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*g}},{}],16:[function(e,t,n){(function(e){(function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||d.defaults,this.rules=h.normal,this.options.gfm&&(this.options.tables?this.rules=h.tables:this.rules=h.gfm)}function i(e,t){if(this.options=t||d.defaults,this.links=e,this.rules=f.normal,this.renderer=this.options.renderer||new r,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=f.breaks:this.rules=f.gfm:this.options.pedantic&&(this.rules=f.pedantic)}function r(e){this.options=e||{}}function o(e){this.tokens=[],this.token=null,this.options=e||d.defaults,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options}function a(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function l(e,t){return e=e.source,t=t||"",function n(i,r){return i?(r=r.source||r,r=r.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(i,r),n):new RegExp(e,t)}}function c(){}function u(e){for(var t,n,i=1;iAn error occured:

    "+a(e.message+"",!0)+"
    ";throw e}}var h={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:c,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:c,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:c,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};h.bullet=/(?:[*+-]|\d+\.)/,h.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,h.item=l(h.item,"gm")(/bull/g,h.bullet)(),h.list=l(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=l(h.blockquote)("def",h.def)(),h._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",h.html=l(h.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,h._tag)(),h.paragraph=l(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("tag","<"+h._tag)("def",h.def)(),h.normal=u({},h),h.gfm=u({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=l(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),h.tables=u({},h.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=h,e.lex=function(t,n){return new e(n).lex(t)},e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},e.prototype.token=function(e,t,n){for(var i,r,o,a,s,l,c,u,d,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},u=0;u ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),i=!1,d=(o=o[0].match(this.rules.item)).length,u=0;u1&&s.length>1||(e=o.slice(u+1).join("\n")+e,u=d-1)),r=i||/\n\n(?!\s*$)/.test(l),u!==d-1&&(i="\n"===l.charAt(l.length-1),r||(r=i)),this.tokens.push({type:r?"loose_item_start":"list_item_start"}),this.token(l,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},u=0;u])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:c,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:c,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,f.link=l(f.link)("inside",f._inside)("href",f._href)(),f.reflink=l(f.reflink)("inside",f._inside)(),f.normal=u({},f),f.pedantic=u({},f.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),f.gfm=u({},f.normal,{escape:l(f.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(f.text)("]|","~]|")("|","|https?://|")()}),f.breaks=u({},f.gfm,{br:l(f.br)("{2,}","*")(),text:l(f.gfm.text)("{2,}","*")()}),i.rules=f,i.output=function(e,t,n){return new i(t,n).output(e)},i.prototype.output=function(e){for(var t,n,i,r,o="";e;)if(r=this.rules.escape.exec(e))e=e.substring(r[0].length),o+=r[1];else if(r=this.rules.autolink.exec(e))e=e.substring(r[0].length),"@"===r[2]?(n=":"===r[1].charAt(6)?this.mangle(r[1].substring(7)):this.mangle(r[1]),i=this.mangle("mailto:")+n):i=n=a(r[1]),o+=this.renderer.link(i,null,n);else if(this.inLink||!(r=this.rules.url.exec(e))){if(r=this.rules.tag.exec(e))!this.inLink&&/^/i.test(r[0])&&(this.inLink=!1),e=e.substring(r[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):a(r[0]):r[0];else if(r=this.rules.link.exec(e))e=e.substring(r[0].length),this.inLink=!0,o+=this.outputLink(r,{href:r[2],title:r[3]}),this.inLink=!1;else if((r=this.rules.reflink.exec(e))||(r=this.rules.nolink.exec(e))){if(e=e.substring(r[0].length),t=(r[2]||r[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){o+=r[0].charAt(0),e=r[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(r,t),this.inLink=!1}else if(r=this.rules.strong.exec(e))e=e.substring(r[0].length),o+=this.renderer.strong(this.output(r[2]||r[1]));else if(r=this.rules.em.exec(e))e=e.substring(r[0].length),o+=this.renderer.em(this.output(r[2]||r[1]));else if(r=this.rules.code.exec(e))e=e.substring(r[0].length),o+=this.renderer.codespan(a(r[2],!0));else if(r=this.rules.br.exec(e))e=e.substring(r[0].length),o+=this.renderer.br();else if(r=this.rules.del.exec(e))e=e.substring(r[0].length),o+=this.renderer.del(this.output(r[1]));else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),o+=this.renderer.text(a(this.smartypants(r[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(r[0].length),i=n=a(r[1]),o+=this.renderer.link(i,null,n);return o},i.prototype.outputLink=function(e,t){var n=a(t.href),i=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,a(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,r=0;r.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var i=this.options.highlight(e,t);null!=i&&i!==e&&(n=!0,e=i)}return t?'
    '+(n?e:a(e,!0))+"\n
    \n":"
    "+(n?e:a(e,!0))+"\n
    "},r.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(s(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:"))return""}var r='
    "},r.prototype.image=function(e,t,n){var i=''+n+'":">"},r.prototype.text=function(e){return e},o.parse=function(e,t,n){return new o(t,n).parse(e)},o.prototype.parse=function(e){this.inline=new i(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},o.prototype.next=function(){return this.token=this.tokens.pop()},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,r="",o="";for(n="",e=0;e0&&(w.continuationClasses=y),"."!==x&&(w.match="SFX"===h?new RegExp(x+"$"):new RegExp("^"+x)),"0"!=m&&(w.remove="SFX"===h?new RegExp(m+"$"):m),g.push(w)}c[f]={type:h,combineable:"Y"==p,entries:g},o+=i}else if("COMPOUNDRULE"===h){for(a=o+1,l=o+1+(i=parseInt(d[1],10));a0&&(null===i[e]&&(i[e]=[]),i[e].push(t))}for(var n=(e=this._removeDicComments(e)).split("\n"),i={},r=1,o=n.length;r1){var l=this.parseRuleCodes(a[1]);"NEEDAFFIX"in this.flags&&-1!=l.indexOf(this.flags.NEEDAFFIX)||t(s,l);for(var c=0,u=l.length;c=this.flags.COMPOUNDMIN)for(t=0,n=this.compoundRules.length;t1&&u[1][1]!==u[1][0]&&s.push(u[0]+u[1][1]+u[1][0]+u[1].substring(2)),u[1])for(i=0,a=c.alphabet.length;i=0&&(h=l.getLineHandle(r),!t(h));r--);var m,v,b,y,x=n(l.getTokenAt({line:r,ch:1})).fencedChars;t(l.getLineHandle(c.line))?(m="",v=c.line):t(l.getLineHandle(c.line-1))?(m="",v=c.line-1):(m=x+"\n",v=c.line),t(l.getLineHandle(u.line))?(b="",y=u.line,0===u.ch&&(y+=1)):0!==u.ch&&t(l.getLineHandle(u.line+1))?(b="",y=u.line+1):(b=x+"\n",y=u.line+1),0===u.ch&&(y-=1),l.operation(function(){l.replaceRange(b,{line:y,ch:0},{line:y+(b?0:1),ch:0}),l.replaceRange(m,{line:v,ch:0},{line:v+(m?0:1),ch:0})}),l.setSelection({line:v+(m?1:0),ch:0},{line:y+(m?1:-1),ch:0}),l.focus()}else{var w=c.line;if(t(l.getLineHandle(c.line))&&("fenced"===i(l,c.line+1)?(r=c.line,w=c.line+1):(o=c.line,w=c.line-1)),void 0===r)for(r=w;r>=0&&(h=l.getLineHandle(r),!t(h));r--);if(void 0===o)for(a=l.lineCount(),o=w;o=0;r--)if(!(h=l.getLineHandle(r)).text.match(/^\s*$/)&&"indented"!==i(l,r,h)){r+=1;break}for(a=l.lineCount(),o=c.line;o\s+/,"unordered-list":/^(\s*)(\*|\-|\+)\s+/,"ordered-list":/^(\s*)\d+\.\s+/},a={quote:"> ","unordered-list":"* ","ordered-list":"1. "},l=i.line;l<=r.line;l++)!function(i){var r=e.getLine(i);r=n[t]?r.replace(o[t],"$1"):a[t]+r,e.replaceRange(r,{line:i,ch:0},{line:i,ch:99999999999999})}(l);e.focus()}}function A(e,t,n,i){if(!/editor-preview-active/.test(e.codemirror.getWrapperElement().lastChild.className)){i=void 0===i?n:i;var r,o=e.codemirror,a=s(o),l=n,c=i,u=o.getCursor("start"),d=o.getCursor("end");a[t]?(l=(r=o.getLine(u.line)).slice(0,u.ch),c=r.slice(u.ch),"bold"==t?(l=l.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),c=c.replace(/(\*\*|__)/,"")):"italic"==t?(l=l.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),c=c.replace(/(\*|_)/,"")):"strikethrough"==t&&(l=l.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),c=c.replace(/(\*\*|~~)/,"")),o.replaceRange(l+c,{line:u.line,ch:0},{line:u.line,ch:99999999999999}),"bold"==t||"strikethrough"==t?(u.ch-=2,u!==d&&(d.ch-=2)):"italic"==t&&(u.ch-=1,u!==d&&(d.ch-=1))):(r=o.getSelection(),"bold"==t?r=(r=r.split("**").join("")).split("__").join(""):"italic"==t?r=(r=r.split("*").join("")).split("_").join(""):"strikethrough"==t&&(r=r.split("~~").join("")),o.replaceSelection(l+r+c),u.ch+=n.length,d.ch=u.ch+r.length),o.setSelection(u,d),o.focus()}}function I(e){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className))for(var t,n=e.getCursor("start"),i=e.getCursor("end"),r=n.line;r<=i.line;r++)t=(t=e.getLine(r)).replace(/^[ ]*([# ]+|\*|\-|[> ]+|[0-9]+(.|\)))[ ]*/,""),e.replaceRange(t,{line:r,ch:0},{line:r,ch:99999999999999})}function N(e,t){for(var n in t)t.hasOwnProperty(n)&&(t[n]instanceof Array?e[n]=t[n].concat(e[n]instanceof Array?e[n]:[]):null!==t[n]&&"object"==typeof t[n]&&t[n].constructor===Object?e[n]=N(e[n]||{},t[n]):e[n]=t[n]);return e}function F(e){for(var t=1;t=19968?n[r].length:1;return i}function P(e){(e=e||{}).parent=this;var t=!0;if(!1===e.autoDownloadFontAwesome&&(t=!1),!0!==e.autoDownloadFontAwesome)for(var n=document.styleSheets,i=0;i-1&&(t=!1);if(t){var r=document.createElement("link");r.rel="stylesheet",r.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(r)}if(e.element)this.element=e.element;else if(null===e.element)return void console.log("SimpleMDE: Error. No element was found.");if(void 0===e.toolbar){e.toolbar=[];for(var o in X)X.hasOwnProperty(o)&&(-1!=o.indexOf("separator-")&&e.toolbar.push("|"),(!0===X[o].default||e.showIcons&&e.showIcons.constructor===Array&&-1!=e.showIcons.indexOf(o))&&e.toolbar.push(o))}e.hasOwnProperty("status")||(e.status=["autosave","lines","words","cursor"]),e.previewRender||(e.previewRender=function(e){return this.parent.markdown(e)}),e.parsingConfig=F({highlightFormatting:!0},e.parsingConfig||{}),e.insertTexts=F({},Z,e.insertTexts||{}),e.promptTexts=Q,e.blockStyles=F({},K,e.blockStyles||{}),e.shortcuts=F({},q,e.shortcuts||{}),void 0!=e.autosave&&void 0!=e.autosave.unique_id&&""!=e.autosave.unique_id&&(e.autosave.uniqueId=e.autosave.unique_id),this.options=e,this.render(),!e.initialValue||this.options.autosave&&!0===this.options.autosave.foundSavedValue||this.value(e.initialValue)}function O(){if("object"!=typeof localStorage)return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(e){return!1}return!0}var B=e("codemirror");e("codemirror/addon/edit/continuelist.js"),e("./codemirror/tablist"),e("codemirror/addon/display/fullscreen.js"),e("codemirror/mode/markdown/markdown.js"),e("codemirror/addon/mode/overlay.js"),e("codemirror/addon/display/placeholder.js"),e("codemirror/addon/selection/mark-selection.js"),e("codemirror/mode/gfm/gfm.js"),e("codemirror/mode/xml/xml.js");var W=e("codemirror-spell-checker"),j=e("marked"),Y=/Mac/.test(navigator.platform),$={toggleBold:c,toggleItalic:u,drawLink:k,toggleHeadingSmaller:p,toggleHeadingBigger:g,drawImage:S,toggleBlockquote:f,toggleOrderedList:x,toggleUnorderedList:y,toggleCodeBlock:h,togglePreview:D,toggleStrikethrough:d,toggleHeading1:m,toggleHeading2:v,toggleHeading3:b,cleanBlock:w,drawTable:C,drawHorizontalRule:T, +undo:E,redo:_,toggleSideBySide:L,toggleFullScreen:l},q={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},U=function(e){for(var t in $)if($[t]===e)return t;return null},G=function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|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|xda|xiino|android|ipad|playbook|silk/i.test(t)||/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(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},V="",X={bold:{name:"bold",action:c,className:"fa fa-bold",title:"Bold",default:!0},italic:{name:"italic",action:u,className:"fa fa-italic",title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:d,className:"fa fa-strikethrough",title:"Strikethrough"},heading:{name:"heading",action:p,className:"fa fa-header",title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:p,className:"fa fa-header fa-header-x fa-header-smaller",title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:g,className:"fa fa-header fa-header-x fa-header-bigger",title:"Bigger Heading"},"heading-1":{name:"heading-1",action:m,className:"fa fa-header fa-header-x fa-header-1",title:"Big Heading"},"heading-2":{name:"heading-2",action:v,className:"fa fa-header fa-header-x fa-header-2",title:"Medium Heading"},"heading-3":{name:"heading-3",action:b,className:"fa fa-header fa-header-x fa-header-3",title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:h,className:"fa fa-code",title:"Code"},quote:{name:"quote",action:f,className:"fa fa-quote-left",title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:y,className:"fa fa-list-ul",title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:x,className:"fa fa-list-ol",title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:w,className:"fa fa-eraser fa-clean-block",title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:k,className:"fa fa-link",title:"Create Link",default:!0},image:{name:"image",action:S,className:"fa fa-picture-o",title:"Insert Image",default:!0},table:{name:"table",action:C,className:"fa fa-table",title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:T,className:"fa fa-minus",title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:D,className:"fa fa-eye no-disable",title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:L,className:"fa fa-columns no-disable no-mobile",title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:l,className:"fa fa-arrows-alt no-disable no-mobile",title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:E,className:"fa fa-undo no-disable",title:"Undo"},redo:{name:"redo",action:_,className:"fa fa-repeat no-disable",title:"Redo"}},Z={link:["[","](#url#)"],image:["![](","#url#)"],table:["","\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],horizontalRule:["","\n\n-----\n\n"]},Q={link:"URL for the link:",image:"URL of the image:"},K={bold:"**",code:"```",italic:"*"};P.prototype.markdown=function(e){if(j){var t={};return this.options&&this.options.renderingConfig&&!1===this.options.renderingConfig.singleLineBreaks?t.breaks=!1:t.breaks=!0,this.options&&this.options.renderingConfig&&!0===this.options.renderingConfig.codeSyntaxHighlighting&&window.hljs&&(t.highlight=function(e){return window.hljs.highlightAuto(e).value}),j.setOptions(t),j(e)}},P.prototype.render=function(e){if(e||(e=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==e){this.element=e;var t=this.options,n=this,r={};for(var o in t.shortcuts)null!==t.shortcuts[o]&&null!==$[o]&&function(e){r[i(t.shortcuts[e])]=function(){$[e](n)}}(o);r.Enter="newlineAndIndentContinueMarkdownList",r.Tab="tabAndIndentMarkdownList",r["Shift-Tab"]="shiftTabAndUnindentMarkdownList",r.Esc=function(e){e.getOption("fullScreen")&&l(n)},document.addEventListener("keydown",function(e){27==(e=e||window.event).keyCode&&n.codemirror.getOption("fullScreen")&&l(n)},!1);var a,s;if(!1!==t.spellChecker?(a="spell-checker",(s=t.parsingConfig).name="gfm",s.gitHubSpice=!1,W({codeMirrorInstance:B})):((a=t.parsingConfig).name="gfm",a.gitHubSpice=!1),this.codemirror=B.fromTextArea(e,{mode:a,backdrop:s,theme:"paper",tabSize:void 0!=t.tabSize?t.tabSize:2,indentUnit:void 0!=t.tabSize?t.tabSize:2,indentWithTabs:!1!==t.indentWithTabs,lineNumbers:!1,autofocus:!0===t.autofocus,extraKeys:r,lineWrapping:!1!==t.lineWrapping,allowDropFileTypes:["text/plain"],placeholder:t.placeholder||e.getAttribute("placeholder")||"",styleSelectedText:void 0==t.styleSelectedText||t.styleSelectedText,inputStyle:"textarea"}),!0===t.forceSync){var c=this.codemirror;c.on("change",function(){c.save()})}this.gui={},!1!==t.toolbar&&(this.gui.toolbar=this.createToolbar()),!1!==t.status&&(this.gui.statusbar=this.createStatusbar()),void 0!=t.autosave&&!0===t.autosave.enabled&&this.autosave(),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element;var u=this.codemirror;setTimeout(function(){u.refresh()}.bind(u),0)}},P.prototype.autosave=function(){if(O()){var e=this;if(void 0==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to use the autosave feature");null!=e.element.form&&void 0!=e.element.form&&e.element.form.addEventListener("submit",function(){localStorage.removeItem("smde_"+e.options.autosave.uniqueId)}),!0!==this.options.autosave.loaded&&("string"==typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&""!=localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0),localStorage.setItem("smde_"+this.options.autosave.uniqueId,e.value());var t=document.getElementById("autosaved");if(null!=t&&void 0!=t&&""!=t){var n=new Date,i=n.getHours(),r=n.getMinutes(),o="am",a=i;a>=12&&(a=i-12,o="pm"),0==a&&(a=12),r=r<10?"0"+r:r,t.innerHTML="Autosaved: "+a+":"+r+" "+o}this.autosaveTimeoutId=setTimeout(function(){e.autosave()},this.options.autosave.delay||1e4)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},P.prototype.clearAutosavedValue=function(){if(O()){if(void 0==this.options.autosave||void 0==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to clear the autosave value");localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},P.prototype.createSideBySide=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;n&&/editor-preview-side/.test(n.className)||((n=document.createElement("div")).className="editor-preview-side",t.parentNode.insertBefore(n,t.nextSibling));var i=!1,r=!1;return e.on("scroll",function(e){if(i)i=!1;else{r=!0;var t=e.getScrollInfo().height-e.getScrollInfo().clientHeight,o=parseFloat(e.getScrollInfo().top)/t,a=(n.scrollHeight-n.clientHeight)*o;n.scrollTop=a}}),n.onscroll=function(){if(r)r=!1;else{i=!0;var t=n.scrollHeight-n.clientHeight,o=parseFloat(n.scrollTop)/t,a=(e.getScrollInfo().height-e.getScrollInfo().clientHeight)*o;e.scrollTo(0,a)}},n},P.prototype.createToolbar=function(e){if((e=e||this.options.toolbar)&&0!==e.length){var t;for(t=0;tp,.editor-preview>p{margin-top:0}.editor-preview pre,.editor-preview-side pre{background:#eee;margin-bottom:10px}.editor-preview table td,.editor-preview table th,.editor-preview-side table td,.editor-preview-side table th{border:1px solid #ddd;padding:5px}.CodeMirror .CodeMirror-code .cm-tag{color:#63a35c}.CodeMirror .CodeMirror-code .cm-attribute{color:#795da3}.CodeMirror .CodeMirror-code .cm-string{color:#183691}.CodeMirror .CodeMirror-selected{background:#d9d9d9}.CodeMirror .CodeMirror-code .cm-header-1{font-size:200%;line-height:200%}.CodeMirror .CodeMirror-code .cm-header-2{font-size:160%;line-height:160%}.CodeMirror .CodeMirror-code .cm-header-3{font-size:125%;line-height:125%}.CodeMirror .CodeMirror-code .cm-header-4{font-size:110%;line-height:110%}.CodeMirror .CodeMirror-code .cm-comment{background:rgba(0,0,0,.05);border-radius:2px}.CodeMirror .CodeMirror-code .cm-link{color:#7f8c8d}.CodeMirror .CodeMirror-code .cm-url{color:#aab2b3}.CodeMirror .CodeMirror-code .cm-strikethrough{text-decoration:line-through}.CodeMirror .CodeMirror-placeholder{opacity:.5}.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:rgba(255,0,0,.15)}'}),define("highlight/lib/index",["require","exports","module","./highlight","./languages/1c","./languages/abnf","./languages/accesslog","./languages/actionscript","./languages/ada","./languages/apache","./languages/applescript","./languages/cpp","./languages/arduino","./languages/armasm","./languages/xml","./languages/asciidoc","./languages/aspectj","./languages/autohotkey","./languages/autoit","./languages/avrasm","./languages/awk","./languages/axapta","./languages/bash","./languages/basic","./languages/bnf","./languages/brainfuck","./languages/cal","./languages/capnproto","./languages/ceylon","./languages/clojure","./languages/clojure-repl","./languages/cmake","./languages/coffeescript","./languages/coq","./languages/cos","./languages/crmsh","./languages/crystal","./languages/cs","./languages/csp","./languages/css","./languages/d","./languages/markdown","./languages/dart","./languages/delphi","./languages/diff","./languages/django","./languages/dns","./languages/dockerfile","./languages/dos","./languages/dsconfig","./languages/dts","./languages/dust","./languages/ebnf","./languages/elixir","./languages/elm","./languages/ruby","./languages/erb","./languages/erlang-repl","./languages/erlang","./languages/excel","./languages/fix","./languages/fortran","./languages/fsharp","./languages/gams","./languages/gauss","./languages/gcode","./languages/gherkin","./languages/glsl","./languages/go","./languages/golo","./languages/gradle","./languages/groovy","./languages/haml","./languages/handlebars","./languages/haskell","./languages/haxe","./languages/hsp","./languages/htmlbars","./languages/http","./languages/inform7","./languages/ini","./languages/irpf90","./languages/java","./languages/javascript","./languages/json","./languages/julia","./languages/kotlin","./languages/lasso","./languages/ldif","./languages/less","./languages/lisp","./languages/livecodeserver","./languages/livescript","./languages/lsl","./languages/lua","./languages/makefile","./languages/mathematica","./languages/matlab","./languages/maxima","./languages/mel","./languages/mercury","./languages/mipsasm","./languages/mizar","./languages/perl","./languages/mojolicious","./languages/monkey","./languages/moonscript","./languages/nginx","./languages/nimrod","./languages/nix","./languages/nsis","./languages/objectivec","./languages/ocaml","./languages/openscad","./languages/oxygene","./languages/parser3","./languages/pf","./languages/php","./languages/pony","./languages/powershell","./languages/processing","./languages/profile","./languages/prolog","./languages/protobuf","./languages/puppet","./languages/purebasic","./languages/python","./languages/q","./languages/qml","./languages/r","./languages/rib","./languages/roboconf","./languages/rsl","./languages/ruleslanguage","./languages/rust","./languages/scala","./languages/scheme","./languages/scilab","./languages/scss","./languages/smali","./languages/smalltalk","./languages/sml","./languages/sqf","./languages/sql","./languages/stan","./languages/stata","./languages/step21","./languages/stylus","./languages/subunit","./languages/swift","./languages/taggerscript","./languages/yaml","./languages/tap","./languages/tcl","./languages/tex","./languages/thrift","./languages/tp","./languages/twig","./languages/typescript","./languages/vala","./languages/vbnet","./languages/vbscript","./languages/vbscript-html","./languages/verilog","./languages/vhdl","./languages/vim","./languages/x86asm","./languages/xl","./languages/xquery","./languages/zephir"],function(e,t,n){var i=e("./highlight");i.registerLanguage("1c",e("./languages/1c")),i.registerLanguage("abnf",e("./languages/abnf")),i.registerLanguage("accesslog",e("./languages/accesslog")),i.registerLanguage("actionscript",e("./languages/actionscript")),i.registerLanguage("ada",e("./languages/ada")),i.registerLanguage("apache",e("./languages/apache")),i.registerLanguage("applescript",e("./languages/applescript")),i.registerLanguage("cpp",e("./languages/cpp")),i.registerLanguage("arduino",e("./languages/arduino")),i.registerLanguage("armasm",e("./languages/armasm")),i.registerLanguage("xml",e("./languages/xml")),i.registerLanguage("asciidoc",e("./languages/asciidoc")),i.registerLanguage("aspectj",e("./languages/aspectj")),i.registerLanguage("autohotkey",e("./languages/autohotkey")),i.registerLanguage("autoit",e("./languages/autoit")),i.registerLanguage("avrasm",e("./languages/avrasm")),i.registerLanguage("awk",e("./languages/awk")),i.registerLanguage("axapta",e("./languages/axapta")),i.registerLanguage("bash",e("./languages/bash")),i.registerLanguage("basic",e("./languages/basic")),i.registerLanguage("bnf",e("./languages/bnf")),i.registerLanguage("brainfuck",e("./languages/brainfuck")),i.registerLanguage("cal",e("./languages/cal")),i.registerLanguage("capnproto",e("./languages/capnproto")),i.registerLanguage("ceylon",e("./languages/ceylon")),i.registerLanguage("clojure",e("./languages/clojure")),i.registerLanguage("clojure-repl",e("./languages/clojure-repl")),i.registerLanguage("cmake",e("./languages/cmake")),i.registerLanguage("coffeescript",e("./languages/coffeescript")),i.registerLanguage("coq",e("./languages/coq")),i.registerLanguage("cos",e("./languages/cos")),i.registerLanguage("crmsh",e("./languages/crmsh")),i.registerLanguage("crystal",e("./languages/crystal")),i.registerLanguage("cs",e("./languages/cs")),i.registerLanguage("csp",e("./languages/csp")),i.registerLanguage("css",e("./languages/css")),i.registerLanguage("d",e("./languages/d")),i.registerLanguage("markdown",e("./languages/markdown")), +i.registerLanguage("dart",e("./languages/dart")),i.registerLanguage("delphi",e("./languages/delphi")),i.registerLanguage("diff",e("./languages/diff")),i.registerLanguage("django",e("./languages/django")),i.registerLanguage("dns",e("./languages/dns")),i.registerLanguage("dockerfile",e("./languages/dockerfile")),i.registerLanguage("dos",e("./languages/dos")),i.registerLanguage("dsconfig",e("./languages/dsconfig")),i.registerLanguage("dts",e("./languages/dts")),i.registerLanguage("dust",e("./languages/dust")),i.registerLanguage("ebnf",e("./languages/ebnf")),i.registerLanguage("elixir",e("./languages/elixir")),i.registerLanguage("elm",e("./languages/elm")),i.registerLanguage("ruby",e("./languages/ruby")),i.registerLanguage("erb",e("./languages/erb")),i.registerLanguage("erlang-repl",e("./languages/erlang-repl")),i.registerLanguage("erlang",e("./languages/erlang")),i.registerLanguage("excel",e("./languages/excel")),i.registerLanguage("fix",e("./languages/fix")),i.registerLanguage("fortran",e("./languages/fortran")),i.registerLanguage("fsharp",e("./languages/fsharp")),i.registerLanguage("gams",e("./languages/gams")),i.registerLanguage("gauss",e("./languages/gauss")),i.registerLanguage("gcode",e("./languages/gcode")),i.registerLanguage("gherkin",e("./languages/gherkin")),i.registerLanguage("glsl",e("./languages/glsl")),i.registerLanguage("go",e("./languages/go")),i.registerLanguage("golo",e("./languages/golo")),i.registerLanguage("gradle",e("./languages/gradle")),i.registerLanguage("groovy",e("./languages/groovy")),i.registerLanguage("haml",e("./languages/haml")),i.registerLanguage("handlebars",e("./languages/handlebars")),i.registerLanguage("haskell",e("./languages/haskell")),i.registerLanguage("haxe",e("./languages/haxe")),i.registerLanguage("hsp",e("./languages/hsp")),i.registerLanguage("htmlbars",e("./languages/htmlbars")),i.registerLanguage("http",e("./languages/http")),i.registerLanguage("inform7",e("./languages/inform7")),i.registerLanguage("ini",e("./languages/ini")),i.registerLanguage("irpf90",e("./languages/irpf90")),i.registerLanguage("java",e("./languages/java")),i.registerLanguage("javascript",e("./languages/javascript")),i.registerLanguage("json",e("./languages/json")),i.registerLanguage("julia",e("./languages/julia")),i.registerLanguage("kotlin",e("./languages/kotlin")),i.registerLanguage("lasso",e("./languages/lasso")),i.registerLanguage("ldif",e("./languages/ldif")),i.registerLanguage("less",e("./languages/less")),i.registerLanguage("lisp",e("./languages/lisp")),i.registerLanguage("livecodeserver",e("./languages/livecodeserver")),i.registerLanguage("livescript",e("./languages/livescript")),i.registerLanguage("lsl",e("./languages/lsl")),i.registerLanguage("lua",e("./languages/lua")),i.registerLanguage("makefile",e("./languages/makefile")),i.registerLanguage("mathematica",e("./languages/mathematica")),i.registerLanguage("matlab",e("./languages/matlab")),i.registerLanguage("maxima",e("./languages/maxima")),i.registerLanguage("mel",e("./languages/mel")),i.registerLanguage("mercury",e("./languages/mercury")),i.registerLanguage("mipsasm",e("./languages/mipsasm")),i.registerLanguage("mizar",e("./languages/mizar")),i.registerLanguage("perl",e("./languages/perl")),i.registerLanguage("mojolicious",e("./languages/mojolicious")),i.registerLanguage("monkey",e("./languages/monkey")),i.registerLanguage("moonscript",e("./languages/moonscript")),i.registerLanguage("nginx",e("./languages/nginx")),i.registerLanguage("nimrod",e("./languages/nimrod")),i.registerLanguage("nix",e("./languages/nix")),i.registerLanguage("nsis",e("./languages/nsis")),i.registerLanguage("objectivec",e("./languages/objectivec")),i.registerLanguage("ocaml",e("./languages/ocaml")),i.registerLanguage("openscad",e("./languages/openscad")),i.registerLanguage("oxygene",e("./languages/oxygene")),i.registerLanguage("parser3",e("./languages/parser3")),i.registerLanguage("pf",e("./languages/pf")),i.registerLanguage("php",e("./languages/php")),i.registerLanguage("pony",e("./languages/pony")),i.registerLanguage("powershell",e("./languages/powershell")),i.registerLanguage("processing",e("./languages/processing")),i.registerLanguage("profile",e("./languages/profile")),i.registerLanguage("prolog",e("./languages/prolog")),i.registerLanguage("protobuf",e("./languages/protobuf")),i.registerLanguage("puppet",e("./languages/puppet")),i.registerLanguage("purebasic",e("./languages/purebasic")),i.registerLanguage("python",e("./languages/python")),i.registerLanguage("q",e("./languages/q")),i.registerLanguage("qml",e("./languages/qml")),i.registerLanguage("r",e("./languages/r")),i.registerLanguage("rib",e("./languages/rib")),i.registerLanguage("roboconf",e("./languages/roboconf")),i.registerLanguage("rsl",e("./languages/rsl")),i.registerLanguage("ruleslanguage",e("./languages/ruleslanguage")),i.registerLanguage("rust",e("./languages/rust")),i.registerLanguage("scala",e("./languages/scala")),i.registerLanguage("scheme",e("./languages/scheme")),i.registerLanguage("scilab",e("./languages/scilab")),i.registerLanguage("scss",e("./languages/scss")),i.registerLanguage("smali",e("./languages/smali")),i.registerLanguage("smalltalk",e("./languages/smalltalk")),i.registerLanguage("sml",e("./languages/sml")),i.registerLanguage("sqf",e("./languages/sqf")),i.registerLanguage("sql",e("./languages/sql")),i.registerLanguage("stan",e("./languages/stan")),i.registerLanguage("stata",e("./languages/stata")),i.registerLanguage("step21",e("./languages/step21")),i.registerLanguage("stylus",e("./languages/stylus")),i.registerLanguage("subunit",e("./languages/subunit")),i.registerLanguage("swift",e("./languages/swift")),i.registerLanguage("taggerscript",e("./languages/taggerscript")),i.registerLanguage("yaml",e("./languages/yaml")),i.registerLanguage("tap",e("./languages/tap")),i.registerLanguage("tcl",e("./languages/tcl")),i.registerLanguage("tex",e("./languages/tex")),i.registerLanguage("thrift",e("./languages/thrift")),i.registerLanguage("tp",e("./languages/tp")),i.registerLanguage("twig",e("./languages/twig")),i.registerLanguage("typescript",e("./languages/typescript")),i.registerLanguage("vala",e("./languages/vala")),i.registerLanguage("vbnet",e("./languages/vbnet")),i.registerLanguage("vbscript",e("./languages/vbscript")),i.registerLanguage("vbscript-html",e("./languages/vbscript-html")),i.registerLanguage("verilog",e("./languages/verilog")),i.registerLanguage("vhdl",e("./languages/vhdl")),i.registerLanguage("vim",e("./languages/vim")),i.registerLanguage("x86asm",e("./languages/x86asm")),i.registerLanguage("xl",e("./languages/xl")),i.registerLanguage("xquery",e("./languages/xquery")),i.registerLanguage("zephir",e("./languages/zephir")),n.exports=i}),define("highlight",["highlight/lib/index"],function(e){return e}),define("text!highlight/styles/github.css",["module"],function(e){e.exports="/*\n\ngithub.com style (c) Vasily Polovnyov \n\n*/\n\n.hljs {\n display: block;\n overflow-x: auto;\n padding: 0.5em;\n color: #333;\n background: #f8f8f8;\n}\n\n.hljs-comment,\n.hljs-quote {\n color: #998;\n font-style: italic;\n}\n\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-subst {\n color: #333;\n font-weight: bold;\n}\n\n.hljs-number,\n.hljs-literal,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag .hljs-attr {\n color: #008080;\n}\n\n.hljs-string,\n.hljs-doctag {\n color: #d14;\n}\n\n.hljs-title,\n.hljs-section,\n.hljs-selector-id {\n color: #900;\n font-weight: bold;\n}\n\n.hljs-subst {\n font-weight: normal;\n}\n\n.hljs-type,\n.hljs-class .hljs-title {\n color: #458;\n font-weight: bold;\n}\n\n.hljs-tag,\n.hljs-name,\n.hljs-attribute {\n color: #000080;\n font-weight: normal;\n}\n\n.hljs-regexp,\n.hljs-link {\n color: #009926;\n}\n\n.hljs-symbol,\n.hljs-bullet {\n color: #990073;\n}\n\n.hljs-built_in,\n.hljs-builtin-name {\n color: #0086b3;\n}\n\n.hljs-meta {\n color: #999;\n font-weight: bold;\n}\n\n.hljs-deletion {\n background: #fdd;\n}\n\n.hljs-addition {\n background: #dfd;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n"}),function(e){function t(t){if("string"==typeof t.data&&(t.data={keys:t.data}),t.data&&t.data.keys&&"string"==typeof t.data.keys){var n=t.handler,i=t.data.keys.toLowerCase().split(" ");t.handler=function(t){if(this===t.target||!(e.hotkeys.options.filterInputAcceptingElements&&e.hotkeys.textInputTypes.test(t.target.nodeName)||e.hotkeys.options.filterContentEditable&&e(t.target).attr("contenteditable")||e.hotkeys.options.filterTextInputs&&e.inArray(t.target.type,e.hotkeys.textAcceptingInputTypes)>-1)){var r="keypress"!==t.type&&e.hotkeys.specialKeys[t.which],o=String.fromCharCode(t.which).toLowerCase(),a="",s={};e.each(["alt","ctrl","shift"],function(e,n){t[n+"Key"]&&r!==n&&(a+=n+"+")}),t.metaKey&&!t.ctrlKey&&"meta"!==r&&(a+="meta+"),t.metaKey&&"meta"!==r&&a.indexOf("alt+ctrl+shift+")>-1&&(a=a.replace("alt+ctrl+shift+","hyper+")),r?s[a+r]=!0:(s[a+o]=!0,s[a+e.hotkeys.shiftNums[o]]=!0,"shift+"===a&&(s[e.hotkeys.shiftNums[o]]=!0));for(var l=0,c=i.length;l","/":"?","\\":"|"},textAcceptingInputTypes:["text","password","number","email","url","range","date","month","week","time","datetime","datetime-local","search","color","tel"],textInputTypes:/textarea|input|select/i,options:{filterInputAcceptingElements:!0,filterTextInputs:!0,filterContentEditable:!0}},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:t}})}(jQuery||this.jQuery||window.jQuery),define("hotkeys/jquery.hotkeys",["jquery"],function(){}),define("hotkeys",["hotkeys/jquery.hotkeys"],function(e){return e}),function(e){e.tablesort=function(t,n){var i=this;this.$table=t,this.$thead=this.$table.find("thead"),this.settings=e.extend({},e.tablesort.defaults,n),this.$sortCells=this.$thead.length>0?this.$thead.find("th:not(.no-sort)"):this.$table.find("th:not(.no-sort)"),this.$sortCells.on("click.tablesort",function(){i.sort(e(this))}),this.index=null,this.$th=null,this.direction=null},e.tablesort.prototype={sort:function(t,n){var i=new Date,r=this,o=this.$table,a=o.find("tbody").length>0?o.find("tbody"):o,s=a.find("tr").has("td, th"),l=s.find(":nth-child("+(t.index()+1)+")").filter("td, th"),c=t.data().sortBy,u=[],d=l.map(function(n,i){return c?"function"==typeof c?c(e(t),e(i),r):c:null!=e(this).data().sortValue?e(this).data().sortValue:e(this).text()});0!==d.length&&(this.index!==t.index()?(this.direction="asc",this.index=t.index()):"asc"!==n&&"desc"!==n?this.direction="asc"===this.direction?"desc":"asc":this.direction=n,n="asc"==this.direction?1:-1,r.$table.trigger("tablesort:start",[r]),r.log("Sorting by "+this.index+" "+this.direction),r.$table.css("display"),setTimeout(function(){r.$sortCells.removeClass(r.settings.asc+" "+r.settings.desc);for(var o=0,c=d.length;o2e3?200:10))},log:function(t){(e.tablesort.DEBUG||this.settings.debug)&&console&&console.log&&console.log("[tablesort] "+t)},destroy:function(){return this.$sortCells.off("click.tablesort"),this.$table.data("tablesort",null),null}},e.tablesort.DEBUG=!1,e.tablesort.defaults={debug:e.tablesort.DEBUG,asc:"sorted ascending",desc:"sorted descending",compare:function(e,t){return e>t?1:e'+i.options.close_text+"","none"===i.options.animation&&(i.options.animation_speed=0,i.options.after_callback_delay=0),e(n).on("click.Modaal",function(e){e.preventDefault();var t;if(i.lastFocus=document.activeElement,i.options.should_open!==!1&&("function"!=typeof i.options.should_open||i.options.should_open()!==!1)){switch(i.options.before_open.call(i,e),i.options.type){case"inline":i.create_basic();break;case"ajax":t=i.options.source(i.$elem,i.$elem.attr("href")),i.fetch_ajax(t);break;case"confirm":i.options.is_locked=!0,i.create_confirm();break;case"image":i.create_image();break;case"iframe":t=i.options.source(i.$elem,i.$elem.attr("href")),i.create_iframe(t);break;case"video":i.create_video(i.$elem.attr("href"));break;case"instagram":i.create_instagram()}i.watch_events()}}),i.options.start_open===!0&&e(n).click()},watch_events:function(){var t=this;t.dom.off("click.Modaal keyup.Modaal keydown.Modaal"),t.dom.on("keydown.Modaal",function(n){var i=n.keyCode,r=n.target;9==i&&t.scope.is_open&&(e.contains(document.getElementById(t.scope.id),r)||e("#"+t.scope.id).find('*[tabindex="0"]').focus())}),t.dom.on("keyup.Modaal",function(n){var i=n.keyCode,r=n.target;return n.shiftKey&&9==n.keyCode&&t.scope.is_open&&(e.contains(document.getElementById(t.scope.id),r)||e("#"+t.scope.id).find(".modaal-close").focus()),!t.options.is_locked&&27==i&&t.scope.is_open?!e(document.activeElement).is("input:not(:checkbox):not(:radio)")&&void t.modaal_close():"image"==t.options.type?(37==i&&t.scope.is_open&&!e("#"+t.scope.id+" .modaal-gallery-prev").hasClass("is_hidden")&&t.gallery_update("prev"),void(39==i&&t.scope.is_open&&!e("#"+t.scope.id+" .modaal-gallery-next").hasClass("is_hidden")&&t.gallery_update("next"))):void 0}),t.dom.on("click.Modaal",function(n){var i=e(n.target);if(!t.options.is_locked&&(t.options.overlay_close&&i.is(".modaal-inner-wrapper")||i.is(".modaal-close")||i.closest(".modaal-close").length))return void t.modaal_close();if(i.is(".modaal-confirm-btn"))return i.is(".modaal-ok")&&t.options.confirm_callback.call(t,t.lastFocus),i.is(".modaal-cancel")&&t.options.confirm_cancel_callback.call(t,t.lastFocus),void t.modaal_close();if(i.is(".modaal-gallery-control")){if(i.hasClass("is_hidden"))return;return i.is(".modaal-gallery-prev")&&t.gallery_update("prev"),void(i.is(".modaal-gallery-next")&&t.gallery_update("next"))}})},build_modal:function(e){var t=this,n="";"instagram"==t.options.type&&(n=" modaal-instagram");var i,r="video"==t.options.type?"modaal-video-wrap":"modaal-content";switch(t.options.animation){case"fade":i=" modaal-start_fade";break;case"slide-down":i=" modaal-start_slidedown";break;default:i=" modaal-start_none"}var o="";t.options.fullscreen&&(o=" modaal-fullscreen"),""===t.options.custom_class&&"undefined"==typeof t.options.custom_class||(t.options.custom_class=" "+t.options.custom_class);var a="";t.options.width&&t.options.height&&"number"==typeof t.options.width&&"number"==typeof t.options.height?a=' style="max-width:'+t.options.width+"px;height:"+t.options.height+'px;overflow:auto;"':t.options.width&&"number"==typeof t.options.width?a=' style="max-width:'+t.options.width+'px;"':t.options.height&&"number"==typeof t.options.height&&(a=' style="height:'+t.options.height+'px;overflow:auto;"'),("image"==t.options.type||"video"==t.options.type||"instagram"==t.options.type||t.options.fullscreen)&&(a="");var s='
    ';"video"!=t.options.type&&(s+='
    "),s+='"+t.scope.close_btn,"video"!=t.options.type&&(s+="
    "),s+="
    ",t.dom.append(s),"inline"==t.options.type&&e.appendTo("#"+t.scope.id+" .modaal-content-container"),t.modaal_overlay("show")},create_basic:function(){var t=this,n=t.$elem.is("[href]")?e(t.$elem.attr("href")):t.$elem,i="";n.length?(i=n.contents().clone(!0,!0),n.empty()):i="Content could not be loaded. Please check the source and try again.",t.build_modal(i)},create_instagram:function(){var t=this,n=t.options.instagram_id,i="",r="Instagram photo couldn't be loaded, please check the embed code and try again.";if(t.build_modal('
    '+t.options.loading_content+"
    "),""!=n&&null!==n&&void 0!==n){var o="https://api.instagram.com/oembed?url=http://instagr.am/p/"+n+"/";e.ajax({url:o,dataType:"jsonp",cache:!1,success:function(n){i=n.html;var r=e("#"+t.scope.id+" .modaal-content-container");r.length>0&&(r.removeClass(t.options.loading_class),r.html(i),window.instgrm.Embeds.process())},error:function(){i=r;var n=e("#"+t.scope.id+" .modaal-content-container");n.length>0&&(n.removeClass(t.options.loading_class).addClass(t.options.ajax_error_class),n.html(i))}})}else i=r;return!1},fetch_ajax:function(t){var n=this;null==n.options.accessible_title&&(n.options.accessible_title="Dialog Window"),null!==n.xhr&&(n.xhr.abort(),n.xhr=null),n.build_modal('
    '+n.options.loading_content+"
    "),n.xhr=e.ajax(t,{success:function(t){var i=e("#"+n.scope.id).find(".modaal-content-container");i.length>0&&(i.removeClass(n.options.loading_class),i.html(t),n.options.ajax_success.call(n,i))},error:function(t){if("abort"!=t.statusText){var i=e("#"+n.scope.id+" .modaal-content-container");i.length>0&&(i.removeClass(n.options.loading_class).addClass(n.options.ajax_error_class),i.html("Content could not be loaded. Please check the source and try again."))}}})},create_confirm:function(){var e,t=this;e='

    '+t.options.confirm_title+'

    '+t.options.confirm_content+'
    ",t.build_modal(e)},create_image:function(){var t,n,i=this,r="",o='',a='';if(i.$elem.is("[rel]")){var s=i.$elem.attr("rel"),l=e('[rel="'+s+'"]');l.removeAttr("data-gallery-active","is_active"),i.$elem.attr("data-gallery-active","is_active"),n=l.length-1;var c=[];r='"}r+="
    "+o+a}else{var f=i.$elem.attr("href"),p="",g="",h="";i.$elem.attr("data-modaal-desc")?(h=i.$elem.attr("data-modaal-desc"),p=i.$elem.attr("data-modaal-desc"),g='"):h="Image with no description",r='"}t=r,i.build_modal(t),e(".modaal-gallery-item.is_active").is(".gallery-item-0")&&e(".modaal-gallery-prev").hide(),e(".modaal-gallery-item.is_active").is(".gallery-item-"+n)&&e(".modaal-gallery-next").hide()},gallery_update:function(t){var n=this,i=e("#"+n.scope.id),r=i.find(".modaal-gallery-item"),o=r.length-1;if(0==o)return!1;var a=i.find(".modaal-gallery-prev"),s=i.find(".modaal-gallery-next"),l=250,c=0,u=0,d=i.find(".modaal-gallery-item."+n.private_options.active_class),h="next"==t?d.next(".modaal-gallery-item"):d.prev(".modaal-gallery-item");return n.options.before_image_change.call(n,d,h),("prev"!=t||!i.find(".gallery-item-0").hasClass("is_active"))&&(("next"!=t||!i.find(".gallery-item-"+o).hasClass("is_active"))&&void d.stop().animate({opacity:0},l,function(){h.addClass("is_next").css({position:"absolute",display:"block",opacity:0});var t=e(document).width(),r=t>1140?280:50;c=i.find(".modaal-gallery-item.is_next").width(),u=i.find(".modaal-gallery-item.is_next").height();var f=i.find(".modaal-gallery-item.is_next img").prop("naturalWidth"),p=i.find(".modaal-gallery-item.is_next img").prop("naturalHeight");f>t-r?(c=t-r,i.find(".modaal-gallery-item.is_next").css({width:c}),i.find(".modaal-gallery-item.is_next img").css({width:c}),u=i.find(".modaal-gallery-item.is_next").find("img").height()):(c=f,u=p),i.find(".modaal-gallery-item-wrap").stop().animate({width:c,height:u},l,function(){d.removeClass(n.private_options.active_class+" "+n.options.gallery_active_class).removeAttr("style"),d.find("img").removeAttr("style"),h.addClass(n.private_options.active_class+" "+n.options.gallery_active_class).removeClass("is_next").css("position",""),h.stop().animate({opacity:1},l,function(){e(this).removeAttr("style").css({width:"100%"}),e(this).find("img").css("width","100%"),i.find(".modaal-gallery-item-wrap").removeAttr("style"),n.options.after_image_change.call(n,h)}),i.find(".modaal-gallery-item").removeAttr("tabindex"),i.find(".modaal-gallery-item."+n.private_options.active_class).attr("tabindex","0").focus(),i.find(".modaal-gallery-item."+n.private_options.active_class).is(".gallery-item-0")?a.stop().animate({opacity:0},150,function(){e(this).hide()}):a.stop().css({display:"block",opacity:a.css("opacity")}).animate({opacity:1},150),i.find(".modaal-gallery-item."+n.private_options.active_class).is(".gallery-item-"+o)?s.stop().animate({opacity:0},150,function(){e(this).hide()}):s.stop().css({display:"block",opacity:a.css("opacity")}).animate({opacity:1},150)})}))},create_video:function(e){var t,n=this;t='',n.build_modal('
    '+t+"
    ")},create_iframe:function(e){var t,n=this;t=null!==n.options.width||void 0!==n.options.width||null!==n.options.height||void 0!==n.options.height?'':'
    Please specify a width and height for your iframe
    ',n.build_modal(t)},modaal_open:function(){var t=this,n=e("#"+t.scope.id),i=t.options.animation;"none"===i&&(n.removeClass("modaal-start_none"),t.options.after_open.call(t,n)),"fade"===i&&n.removeClass("modaal-start_fade"),"slide-down"===i&&n.removeClass("modaal-start_slide_down");var r=n;e(".modaal-wrapper *[tabindex=0]").removeAttr("tabindex"),r="image"==t.options.type?e("#"+t.scope.id).find(".modaal-gallery-item."+t.private_options.active_class):n.find(".modaal-iframe-elem").length?n.find(".modaal-iframe-elem"):n.find(".modaal-video-wrap").length?n.find(".modaal-video-wrap"):n.find(".modaal-focus"),r.attr("tabindex","0").focus(),"none"!==i&&setTimeout(function(){t.options.after_open.call(t,n)},t.options.after_callback_delay)},modaal_close:function(){var t=this,n=e("#"+t.scope.id);t.options.before_close.call(t,n),null!==t.xhr&&(t.xhr.abort(),t.xhr=null),"none"===t.options.animation&&n.addClass("modaal-start_none"),"fade"===t.options.animation&&n.addClass("modaal-start_fade"),"slide-down"===t.options.animation&&n.addClass("modaal-start_slide_down"),setTimeout(function(){"inline"==t.options.type&&e("#"+t.scope.id+" .modaal-content-container").contents().clone(!0,!0).appendTo(t.$elem.attr("href")),n.remove(),t.options.after_close.call(t),t.scope.is_open=!1},t.options.after_callback_delay),t.modaal_overlay("hide"),null!=t.lastFocus&&t.lastFocus.focus()},modaal_overlay:function(t){var n=this;"show"==t?(n.scope.is_open=!0,n.options.background_scroll||n.dom.addClass("modaal-noscroll"),n.dom.append('
    '),e("#"+n.scope.id+"_overlay").css("background",n.options.background).stop().animate({opacity:n.options.overlay_opacity},n.options.animation_speed,function(){n.modaal_open()})):"hide"==t&&(n.dom.removeClass("modaal-noscroll"),e("#"+n.scope.id+"_overlay").stop().animate({opacity:0},n.options.animation_speed,function(){e(this).remove()}))}};e.fn.modaal=function(t){return this.each(function(){var i=e(this).data("modaal");if(i){if("string"==typeof t)switch(t){case"close":i.modaal_close()}}else{var r=Object.create(n);r.init(t,this),e.data(this,"modaal",r)}})},e.fn.modaal.options={type:"inline",animation:"fade",animation_speed:300,after_callback_delay:350,is_locked:!1,hide_close:!1,background:"#000",overlay_opacity:"0.8",overlay_close:!0,accessible_title:"Dialog Window",start_open:!1,fullscreen:!1,custom_class:"",background_scroll:!1,should_open:!0,close_text:"Close",close_aria_label:"Close (Press escape to close)",width:null,height:null,before_open:function(){},after_open:function(){},before_close:function(){},after_close:function(){},source:function(e,t){return t},confirm_button_text:"Confirm",confirm_cancel_button_text:"Cancel",confirm_title:"Confirm Title",confirm_content:"

    This is the default confirm dialog content. Replace me through the options

    ",confirm_callback:function(){},confirm_cancel_callback:function(){},gallery_active_class:"gallery_active_item",before_image_change:function(e,t){},after_image_change:function(e){},loading_content:t,loading_class:"is_loading",ajax_error_class:"modaal-error",ajax_success:function(){},instagram_id:null},e(function(){var t=e(".modaal");t.length&&t.each(function(){var t=e(this),n={},i=!1;t.attr("data-modaal-type")&&(i=!0,n.type=t.attr("data-modaal-type")),t.attr("data-modaal-animation")&&(i=!0,n.animation=t.attr("data-modaal-animation")),t.attr("data-modaal-animation-speed")&&(i=!0,n.animation_speed=t.attr("data-modaal-animation-speed")),t.attr("data-modaal-after-callback-delay")&&(i=!0,n.after_callback_delay=t.attr("data-modaal-after-callback-delay")),t.attr("data-modaal-is-locked")&&(i=!0,n.is_locked="true"===t.attr("data-modaal-is-locked")),t.attr("data-modaal-hide-close")&&(i=!0,n.hide_close="true"===t.attr("data-modaal-hide-close")),t.attr("data-modaal-background")&&(i=!0,n.background=t.attr("data-modaal-background")),t.attr("data-modaal-overlay-opacity")&&(i=!0,n.overlay_opacity=t.attr("data-modaal-overlay-opacity")),t.attr("data-modaal-overlay-close")&&(i=!0,n.overlay_close="false"!==t.attr("data-modaal-overlay-close")),t.attr("data-modaal-accessible-title")&&(i=!0,n.accessible_title=t.attr("data-modaal-accessible-title")),t.attr("data-modaal-start-open")&&(i=!0,n.start_open="true"===t.attr("data-modaal-start-open")),t.attr("data-modaal-fullscreen")&&(i=!0,n.fullscreen="true"===t.attr("data-modaal-fullscreen")),t.attr("data-modaal-custom-class")&&(i=!0,n.custom_class=t.attr("data-modaal-custom-class")),t.attr("data-modaal-close-text")&&(i=!0,n.close_text=t.attr("data-modaal-close-text")),t.attr("data-modaal-close-aria-label")&&(i=!0,n.close_aria_label=t.attr("data-modaal-close-aria-label")),t.attr("data-modaal-background-scroll")&&(i=!0,n.background_scroll="true"===t.attr("data-modaal-background-scroll")),t.attr("data-modaal-width")&&(i=!0,n.width=parseInt(t.attr("data-modaal-width"))),t.attr("data-modaal-height")&&(i=!0,n.height=parseInt(t.attr("data-modaal-height"))),t.attr("data-modaal-confirm-button-text")&&(i=!0,n.confirm_button_text=t.attr("data-modaal-confirm-button-text")),t.attr("data-modaal-confirm-cancel-button-text")&&(i=!0,n.confirm_cancel_button_text=t.attr("data-modaal-confirm-cancel-button-text")),t.attr("data-modaal-confirm-title")&&(i=!0,n.confirm_title=t.attr("data-modaal-confirm-title")),t.attr("data-modaal-confirm-content")&&(i=!0,n.confirm_content=t.attr("data-modaal-confirm-content")),t.attr("data-modaal-gallery-active-class")&&(i=!0,n.gallery_active_class=t.attr("data-modaal-gallery-active-class")),t.attr("data-modaal-loading-content")&&(i=!0,n.loading_content=t.attr("data-modaal-loading-content")),t.attr("data-modaal-loading-class")&&(i=!0,n.loading_class=t.attr("data-modaal-loading-class")),t.attr("data-modaal-ajax-error-class")&&(i=!0,n.ajax_error_class=t.attr("data-modaal-ajax-error-class")),t.attr("data-modaal-instagram-id")&&(i=!0,n.instagram_id=t.attr("data-modaal-instagram-id")),i&&t.modaal(n)})})}(jQuery,window,document),define("modaal/dist/js/modaal.min",["jquery"],function(){}),define("modaal",["modaal/dist/js/modaal.min"],function(e){return e}),define("text!modaal/dist/css/modaal.min.css",["module"],function(e){e.exports='/*!\n\tModaal - accessible modals - v0.3.1\n\tby Humaan, for all humans.\n\thttp://humaan.com\n */\n.modaal-noscroll{overflow:hidden}.modaal-accessible-hide,.modaal-close span,.modaal-gallery-control span{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);padding:0!important;border:0!important;height:1px!important;width:1px!important;overflow:hidden}.modaal-overlay,.modaal-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:999;opacity:0}.modaal-wrapper{display:block;z-index:9999;overflow:auto;opacity:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;transition:all .3s ease-in-out}.modaal-wrapper *{box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-backface-visibility:hidden}.modaal-wrapper .modaal-close{border:none;background:0 0;padding:0;-webkit-appearance:none}.modaal-wrapper.modaal-start_none{display:none;opacity:1}.modaal-wrapper.modaal-start_fade{opacity:0}.modaal-wrapper [tabindex="0"]{outline:none!important}.modaal-wrapper.modaal-fullscreen{overflow:hidden}.modaal-outer-wrapper{display:table;position:relative;width:100%;height:100%}.modaal-fullscreen .modaal-outer-wrapper,.modaal-gallery-item img{display:block}.modaal-inner-wrapper{display:table-cell;width:100%;height:100%;position:relative;vertical-align:middle;text-align:center;padding:80px 25px}.modaal-fullscreen .modaal-inner-wrapper{padding:0;display:block;vertical-align:top}.modaal-container{position:relative;display:inline-block;width:100%;margin:auto;text-align:left;color:#000;max-width:1000px;border-radius:0;background:#fff;box-shadow:0 4px 15px rgba(0,0,0,.2);cursor:auto}.modaal-container.is_loading{height:100px;width:100px;overflow:hidden}.modaal-fullscreen .modaal-container{max-width:none;height:100%;overflow:auto}.modaal-close{position:fixed;right:20px;top:20px;color:#fff;cursor:pointer;opacity:1;width:50px;height:50px;background:0 0;border-radius:100%;transition:all .2s ease-in-out}.modaal-close:focus,.modaal-close:hover{outline:none;background:#fff}.modaal-close:focus:after,.modaal-close:focus:before,.modaal-close:hover:after,.modaal-close:hover:before{background:#b93d0c}.modaal-close:after,.modaal-close:before{display:block;content:" ";position:absolute;top:14px;left:23px;width:4px;height:22px;border-radius:4px;background:#fff;transition:background .2s ease-in-out}.modaal-close:before{-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.modaal-close:after{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.modaal-fullscreen .modaal-close{background:#afb7bc;right:10px;top:10px}.modaal-content-container{padding:30px}.modaal-confirm-wrap{padding:30px 0 0;text-align:center;font-size:0}.modaal-confirm-btn{font-size:14px;display:inline-block;margin:0 10px;vertical-align:middle;cursor:pointer;border:none;background:0 0}.modaal-confirm-btn.modaal-ok{padding:10px 15px;color:#fff;background:#555;border-radius:3px;transition:background .2s ease-in-out}.modaal-confirm-btn.modaal-ok:hover{background:#2f2f2f}.modaal-confirm-btn.modaal-cancel{text-decoration:underline}.modaal-confirm-btn.modaal-cancel:hover{text-decoration:none;color:#2f2f2f}@keyframes instaReveal{0%{opacity:0}to{opacity:1}}@-webkit-keyframes instaReveal{0%{opacity:0}to{opacity:1}}.modaal-instagram .modaal-container{width:auto;background:0 0;box-shadow:none!important}.modaal-instagram .modaal-content-container{padding:0;background:0 0}.modaal-instagram .modaal-content-container>blockquote{width:1px!important;height:1px!important;opacity:0!important}.modaal-instagram iframe{opacity:0;margin:-6px!important;border-radius:0!important;width:1000px!important;max-width:800px!important;box-shadow:none!important;-webkit-animation:instaReveal 1s linear forwards;animation:instaReveal 1s linear forwards}.modaal-image .modaal-inner-wrapper{padding-left:140px;padding-right:140px}.modaal-image .modaal-container{width:auto;max-width:100%}.modaal-gallery-wrap{position:relative;color:#fff}.modaal-gallery-item{display:none}.modaal-gallery-item.is_active{display:block}.modaal-gallery-label{position:absolute;left:0;width:100%;margin:20px 0 0;font-size:18px;text-align:center;color:#fff}.modaal-gallery-label:focus{outline:none}.modaal-gallery-control{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);opacity:1;cursor:pointer;color:#fff;width:50px;height:50px;background:0 0;border:none;border-radius:100%;transition:all .2s ease-in-out}.modaal-gallery-control.is_hidden{opacity:0;cursor:default}.modaal-gallery-control:focus,.modaal-gallery-control:hover{outline:none;background:#fff}.modaal-gallery-control:focus:after,.modaal-gallery-control:focus:before,.modaal-gallery-control:hover:after,.modaal-gallery-control:hover:before{background:#afb7bc}.modaal-gallery-control:after,.modaal-gallery-control:before{display:block;content:" ";position:absolute;top:16px;left:25px;width:4px;height:18px;border-radius:4px;background:#fff;transition:background .2s ease-in-out}.modaal-gallery-control:before{margin:-5px 0 0;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.modaal-gallery-control:after{margin:5px 0 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.modaal-gallery-next{left:100%;margin-left:40px}.modaal-gallery-prev{right:100%;margin-right:40px}.modaal-gallery-prev:after,.modaal-gallery-prev:before{left:22px}.modaal-gallery-prev:before{margin:5px 0 0;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.modaal-gallery-prev:after{margin:-5px 0 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.modaal-video-wrap{margin:auto 50px;position:relative}.modaal-video-container{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;box-shadow:0 0 10px rgba(0,0,0,.3);background:#000;max-width:1300px;margin-left:auto;margin-right:auto}.modaal-video-container embed,.modaal-video-container iframe,.modaal-video-container object{position:absolute;top:0;left:0;width:100%;height:100%}.modaal-iframe .modaal-content,.modaal-iframe-elem{width:100%;height:100%}.modaal-iframe-elem{display:block}@media only screen and (min-width:1400px){.modaal-video-container{padding-bottom:0;height:731px}}@media only screen and (max-width:1140px){.modaal-image .modaal-inner-wrapper{padding-left:25px;padding-right:25px}.modaal-gallery-control{top:auto;bottom:20px;-webkit-transform:none;-ms-transform:none;transform:none;background:rgba(0,0,0,.7)}.modaal-gallery-control:after,.modaal-gallery-control:before{background:#fff}.modaal-gallery-next{left:auto;right:20px}.modaal-gallery-prev{left:20px;right:auto}}@media screen and (max-width:900px){.modaal-instagram iframe{width:500px!important}}@media screen and (max-height:1100px){.modaal-instagram iframe{width:700px!important}}@media screen and (max-height:1000px){.modaal-inner-wrapper{padding-top:60px;padding-bottom:60px}.modaal-instagram iframe{width:600px!important}}@media screen and (max-height:900px){.modaal-instagram iframe{width:500px!important}.modaal-video-container{max-width:900px;max-height:510px}}@media only screen and (max-width:600px){.modaal-instagram iframe{width:280px!important}}@media only screen and (max-height:820px){.modaal-gallery-label{display:none}}.modaal-loading-spinner{background:0 0;position:absolute;width:200px;height:200px;top:50%;left:50%;margin:-100px 0 0 -100px;-webkit-transform:scale(.25);-ms-transform:scale(.25);transform:scale(.25)}@-webkit-keyframes modaal-loading-spinner{0%{opacity:1;-ms-transform:scale(1.5);-webkit-transform:scale(1.5);transform:scale(1.5)}to{opacity:.1;-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}}@keyframes modaal-loading-spinner{0%{opacity:1;-ms-transform:scale(1.5);-webkit-transform:scale(1.5);transform:scale(1.5)}to{opacity:.1;-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}}.modaal-loading-spinner>div{width:24px;height:24px;margin-left:4px;margin-top:4px;position:absolute}.modaal-loading-spinner>div>div{width:100%;height:100%;border-radius:15px;background:#fff}.modaal-loading-spinner>div:nth-of-type(1)>div{-webkit-animation:modaal-loading-spinner 1s linear infinite;animation:modaal-loading-spinner 1s linear infinite;-webkit-animation-delay:0s;animation-delay:0s}.modaal-loading-spinner>div:nth-of-type(2)>div,.modaal-loading-spinner>div:nth-of-type(3)>div{-ms-animation:modaal-loading-spinner 1s linear infinite;-moz-animation:modaal-loading-spinner 1s linear infinite;-o-animation:modaal-loading-spinner 1s linear infinite}.modaal-loading-spinner>div:nth-of-type(1){-ms-transform:translate(84px,84px) rotate(45deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(45deg) translate(70px,0);transform:translate(84px,84px) rotate(45deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(2)>div{-webkit-animation:modaal-loading-spinner 1s linear infinite;animation:modaal-loading-spinner 1s linear infinite;-webkit-animation-delay:.12s;animation-delay:.12s}.modaal-loading-spinner>div:nth-of-type(2){-ms-transform:translate(84px,84px) rotate(90deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(90deg) translate(70px,0);transform:translate(84px,84px) rotate(90deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(3)>div,.modaal-loading-spinner>div:nth-of-type(4)>div,.modaal-loading-spinner>div:nth-of-type(5)>div{-webkit-animation:modaal-loading-spinner 1s linear infinite;animation:modaal-loading-spinner 1s linear infinite;-webkit-animation-delay:.25s;animation-delay:.25s}.modaal-loading-spinner>div:nth-of-type(4)>div,.modaal-loading-spinner>div:nth-of-type(5)>div{-ms-animation:modaal-loading-spinner 1s linear infinite;-moz-animation:modaal-loading-spinner 1s linear infinite;-o-animation:modaal-loading-spinner 1s linear infinite;-webkit-animation-delay:.37s;animation-delay:.37s}.modaal-loading-spinner>div:nth-of-type(3){-ms-transform:translate(84px,84px) rotate(135deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(135deg) translate(70px,0);transform:translate(84px,84px) rotate(135deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(4){-ms-transform:translate(84px,84px) rotate(180deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(180deg) translate(70px,0);transform:translate(84px,84px) rotate(180deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(5)>div{-webkit-animation-delay:.5s;animation-delay:.5s}.modaal-loading-spinner>div:nth-of-type(6)>div,.modaal-loading-spinner>div:nth-of-type(7)>div{-ms-animation:modaal-loading-spinner 1s linear infinite;-moz-animation:modaal-loading-spinner 1s linear infinite;-o-animation:modaal-loading-spinner 1s linear infinite}.modaal-loading-spinner>div:nth-of-type(5){-ms-transform:translate(84px,84px) rotate(225deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(225deg) translate(70px,0);transform:translate(84px,84px) rotate(225deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(6)>div,.modaal-loading-spinner>div:nth-of-type(7)>div,.modaal-loading-spinner>div:nth-of-type(8)>div{-webkit-animation:modaal-loading-spinner 1s linear infinite;animation:modaal-loading-spinner 1s linear infinite;-webkit-animation-delay:.62s;animation-delay:.62s}.modaal-loading-spinner>div:nth-of-type(6){-ms-transform:translate(84px,84px) rotate(270deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(270deg) translate(70px,0);transform:translate(84px,84px) rotate(270deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(7)>div,.modaal-loading-spinner>div:nth-of-type(8)>div{-webkit-animation-delay:.75s;animation-delay:.75s}.modaal-loading-spinner>div:nth-of-type(7){-ms-transform:translate(84px,84px) rotate(315deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(315deg) translate(70px,0);transform:translate(84px,84px) rotate(315deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(8)>div{-webkit-animation-delay:.87s;animation-delay:.87s}.modaal-loading-spinner>div:nth-of-type(8){-ms-transform:translate(84px,84px) rotate(360deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(360deg) translate(70px,0);transform:translate(84px,84px) rotate(360deg) translate(70px,0)}'; +}),!function(e){"function"==typeof define&&define.amd?define("fullcalendar/dist/fullcalendar.min",["jquery","moment"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("moment")):e(jQuery,moment)}(function(e,t){function n(e){return G(e,Be)}function i(e,t){t.left&&e.css({"border-left-width":1,"margin-left":t.left-1}),t.right&&e.css({"border-right-width":1,"margin-right":t.right-1})}function r(e){e.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function o(){e("body").addClass("fc-not-allowed")}function a(){e("body").removeClass("fc-not-allowed")}function s(t,n,i){var r=Math.floor(n/t.length),o=Math.floor(n-r*(t.length-1)),a=[],s=[],c=[],u=0;l(t),t.each(function(n,i){var l=n===t.length-1?o:r,d=e(i).outerHeight(!0);d *").each(function(t,i){var r=e(i).outerWidth();r>n&&(n=r)}),n++,t.width(n),n}function u(e,t){var n,i=e.add(t);return i.css({position:"relative",left:-1}),n=e.outerHeight()-t.outerHeight(),i.css({position:"",left:""}),n}function d(t){var n=t.css("position"),i=t.parents().filter(function(){var t=e(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&i.length?i:e(t[0].ownerDocument||document)}function h(e,t){var n=e.offset(),i=n.left-(t?t.left:0),r=n.top-(t?t.top:0);return{left:i,right:i+e.outerWidth(),top:r,bottom:r+e.outerHeight()}}function f(e,t){var n=e.offset(),i=g(e),r=n.left+y(e,"border-left-width")+i.left-(t?t.left:0),o=n.top+y(e,"border-top-width")+i.top-(t?t.top:0);return{left:r,right:r+e[0].clientWidth,top:o,bottom:o+e[0].clientHeight}}function p(e,t){var n=e.offset(),i=n.left+y(e,"border-left-width")+y(e,"padding-left")-(t?t.left:0),r=n.top+y(e,"border-top-width")+y(e,"padding-top")-(t?t.top:0);return{left:i,right:i+e.width(),top:r,bottom:r+e.height()}}function g(e){var t,n=e.innerWidth()-e[0].clientWidth,i=e.innerHeight()-e[0].clientHeight;return n=m(n),i=m(i),t={left:0,right:0,top:0,bottom:i},v()&&"rtl"==e.css("direction")?t.left=n:t.right=n,t}function m(e){return e=Math.max(0,e),e=Math.round(e)}function v(){return null===We&&(We=b()),We}function b(){var t=e("
    ").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),n=t.children(),i=n.offset().left>t.offset().left;return t.remove(),i}function y(e,t){return parseFloat(e.css(t))||0}function x(e){return 1==e.which&&!e.ctrlKey}function w(e){var t=e.originalEvent.touches;return t&&t.length?t[0].pageX:e.pageX}function k(e){var t=e.originalEvent.touches;return t&&t.length?t[0].pageY:e.pageY}function S(e){return/^touch/.test(e.type)}function C(e){e.addClass("fc-unselectable").on("selectstart",E)}function T(e){e.removeClass("fc-unselectable").off("selectstart",E)}function E(e){e.preventDefault()}function _(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.leftl&&a=l?(n=a.clone(),r=!0):(n=l.clone(),r=!1),s<=c?(i=s.clone(),o=!0):(i=c.clone(),o=!1),{start:n,end:i,isStart:r,isEnd:o}}function F(e,n){return t.duration({days:e.clone().stripTime().diff(n.clone().stripTime(),"days"),ms:e.time()-n.time()})}function R(e,n){return t.duration({days:e.clone().stripTime().diff(n.clone().stripTime(),"days")})}function P(e,n,i){return t.duration(Math.round(e.diff(n,i,!0)),i)}function O(e,t){var n,i,r;for(n=0;n=1&&ae(r)));n++);return i}function B(e,n,i){return null!=i?i.diff(n,e,!0):t.isDuration(n)?n.as(e):n.end.diff(n.start,e,!0)}function W(e,t,n){var i;return $(n)?(t-e)/n:(i=n.asMonths(),Math.abs(i)>=1&&ae(i)?t.diff(e,"months",!0)/i:t.diff(e,"days",!0)/n.asDays())}function j(e,t){var n,i;return $(e)||$(t)?e/t:(n=e.asMonths(),i=t.asMonths(),Math.abs(n)>=1&&ae(n)&&Math.abs(i)>=1&&ae(i)?n/i:e.asDays()/t.asDays())}function Y(e,n){var i;return $(e)?t.duration(e*n):(i=e.asMonths(),Math.abs(i)>=1&&ae(i)?t.duration({months:i*n}):t.duration({days:e.asDays()*n}))}function $(e){return Boolean(e.hours()||e.minutes()||e.seconds()||e.milliseconds())}function q(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function U(e){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(e)}function G(e,t){var n,i,r,o,a,s,l={};if(t)for(n=0;n=0;o--)if(a=e[o][i],"object"==typeof a)r.unshift(a);else if(void 0!==a){l[i]=a;break}r.length&&(l[i]=G(r))}for(n=e.length-1;n>=0;n--){s=e[n];for(i in s)i in l||(l[i]=s[i])}return l}function V(e){var t=function(){};return t.prototype=e,new t}function X(e,t){for(var n in e)Z(e,n)&&(t[n]=e[n])}function Z(e,t){return $e.call(e,t)}function Q(t){return/undefined|null|boolean|number|string/.test(e.type(t))}function K(t,n,i){if(e.isFunction(t)&&(t=[t]),t){var r,o;for(r=0;r/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
    ")}function te(e){return e.replace(/&.*?;/g,"")}function ne(t){var n=[];return e.each(t,function(e,t){null!=t&&n.push(e+":"+t)}),n.join(";")}function ie(t){var n=[];return e.each(t,function(e,t){null!=t&&n.push(e+'="'+ee(t)+'"')}),n.join(" ")}function re(e){return e.charAt(0).toUpperCase()+e.slice(1)}function oe(e,t){return e-t}function ae(e){return e%1===0}function se(e,t){var n=e[t];return function(){return n.apply(e,arguments)}}function le(e,t,n){var i,r,o,a,s,l=function(){var c=+new Date-a;c=e.leftCol)return!0;return!1}function Te(e,t){return e.leftCol-t.leftCol}function Ee(e){var t,n,i,r=[];for(t=0;tt.top&&e.top"),p.append(a("left")).append(a("right")).append(a("center")).append('
    ')):o()}function o(){p&&(p.remove(),p=f.el=null)}function a(i){var r=e('
    '),o=n.layout[i];return o&&e.each(o.split(" "),function(n){var i,o=e(),a=!0;e.each(this.split(","),function(n,i){var r,s,l,c,u,d,h,f,p,v;"title"==i?(o=o.add(e("

     

    ")),a=!1):((r=(t.options.customButtons||{})[i])?(l=function(e){r.click&&r.click.call(v[0],e)},c="",u=r.text):(s=t.getViewSpec(i))?(l=function(){t.changeView(i)},m.push(i),c=s.buttonTextOverride,u=s.buttonTextDefault):t[i]&&(l=function(){t[i]()},c=(t.overrides.buttonText||{})[i],u=t.options.buttonText[i]),l&&(d=r?r.themeIcon:t.options.themeButtonIcons[i],h=r?r.icon:t.options.buttonIcons[i],f=c?ee(c):d&&t.options.theme?"":h&&!t.options.theme?"":ee(u),p=["fc-"+i+"-button",g+"-button",g+"-state-default"],v=e('").click(function(e){v.hasClass(g+"-state-disabled")||(l(e),(v.hasClass(g+"-state-active")||v.hasClass(g+"-state-disabled"))&&v.removeClass(g+"-state-hover"))}).mousedown(function(){v.not("."+g+"-state-active").not("."+g+"-state-disabled").addClass(g+"-state-down")}).mouseup(function(){v.removeClass(g+"-state-down")}).hover(function(){v.not("."+g+"-state-active").not("."+g+"-state-disabled").addClass(g+"-state-hover")},function(){v.removeClass(g+"-state-hover").removeClass(g+"-state-down")}),o=o.add(v)))}),a&&o.first().addClass(g+"-corner-left").end().last().addClass(g+"-corner-right").end(),o.length>1?(i=e("
    "),a&&i.addClass("fc-button-group"),i.append(o),r.append(i)):r.append(o)}),r}function s(e){p&&p.find("h2").text(e)}function l(e){p&&p.find(".fc-"+e+"-button").addClass(g+"-state-active")}function c(e){p&&p.find(".fc-"+e+"-button").removeClass(g+"-state-active")}function u(e){p&&p.find(".fc-"+e+"-button").prop("disabled",!0).addClass(g+"-state-disabled")}function d(e){p&&p.find(".fc-"+e+"-button").prop("disabled",!1).removeClass(g+"-state-disabled")}function h(){return m}var f=this;f.setToolbarOptions=i,f.render=r,f.removeElement=o,f.updateTitle=s,f.activateButton=l,f.deactivateButton=c,f.disableButton=u,f.enableButton=d,f.getViewsWithButtons=h,f.el=null;var p,g,m=[]}function Ae(n,i){function r(e){e._locale=Y}function o(){G?l()&&(f(),c()):a()}function a(){n.addClass("fc"),n.on("click.fc","a[data-goto]",function(t){var n=e(this),i=n.data("goto"),r=j.moment(i.date),o=i.type,a=Z.opt("navLink"+re(o)+"Click");"function"==typeof a?a(r,t):("string"==typeof a&&(o=a),A(r,o))}),j.bindOption("theme",function(e){X=e?"ui":"fc",n.toggleClass("ui-widget",e),n.toggleClass("fc-unthemed",!e)}),j.bindOptions(["isRTL","locale"],function(e){n.toggleClass("fc-ltr",!e),n.toggleClass("fc-rtl",e)}),G=e("
    ").prependTo(n);var t=b();$=new He(t),q=j.header=t[0],U=j.footer=t[1],w(),k(),c(j.options.defaultView),j.options.handleWindowResize&&(K=le(m,j.options.windowResizeDelay),e(window).resize(K))}function s(){Z&&Z.removeElement(),$.proxyCall("removeElement"),G.remove(),n.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),n.off(".fc"),K&&e(window).unbind("resize",K),ot.unneeded()}function l(){return n.is(":visible")}function c(t,n){ne++;var i=Z&&t&&Z.type!==t;i&&(N(),u()),!Z&&t&&(Z=j.view=te[t]||(te[t]=j.instantiateView(t)),Z.setElement(e("
    ").appendTo(G)),$.proxyCall("activateButton",t)),Z&&(J=Z.massageCurrentDate(J),Z.isDateSet&&J>=Z.intervalStart&&J=Z.intervalStart&&eG&&i.push(n);return i}function o(e,t){return!G||eV}function a(e,t){return G=e,V=t,s()}function s(){return c(ee,"reset")}function l(e){return c(w(e))}function c(e,t){var n,i;for("reset"===t?ne=[]:"add"!==t&&(ne=T(ne,e)),n=0;no&&(!l[a]||c.isSame(u,l[a]))&&(a-1!==o||"."!==f[a]);a--)m=f[a]+m;for(s=o;s<=a;s++)v+=f[s],b+=p[s];return(v||b)&&(y=r?b+i+v:v+i+b),h(g+y+m)}function r(e){return x[e]||(x[e]=o(e))}function o(e){var t=a(e);return{fakeFormatString:l(t),sameUnits:c(t)}}function a(e){for(var t,n=[],i=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=i.exec(e);)t[1]?n.push.apply(n,s(t[1])):t[2]?n.push({maybe:a(t[2])}):t[3]?n.push({token:t[3]}):t[5]&&n.push.apply(n,s(t[5]));return n}function s(e){return". "===e?["."," "]:[e]}function l(e){var t,n,i=[];for(t=0;tr.value)&&(r=i));return r?r.unit:null}Pe.formatDate=e,Pe.formatRange=n,Pe.oldMomentFormat=t,Pe.queryMostGranularFormatUnit=f;var p="\v",g="",m="",v=new RegExp(m+"([^"+m+"]*)"+m,"g"),b={t:function(e){return t(e,"a").charAt(0)},T:function(e){return t(e,"A").charAt(0)}},y={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}},x={}}();var Ze=Pe.formatDate,Qe=Pe.formatRange,Ke=Pe.oldMomentFormat;Pe.Class=ue,ue.extend=function(){var e,t,n=arguments.length;for(e=0;e').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),n.autoHide&&this.listenTo(e(document),"mousedown",this.documentMousedown)},documentMousedown:function(t){this.el&&!e(t.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(e(document),"mousedown")},position:function(){var t,n,i,r,o,a=this.options,s=this.el.offsetParent().offset(),l=this.el.outerWidth(),c=this.el.outerHeight(),u=e(window),h=d(this.el);r=a.top||0,o=void 0!==a.left?a.left:void 0!==a.right?a.right-l:0,h.is(window)||h.is(document)?(h=u,t=0,n=0):(i=h.offset(),t=i.top,n=i.left),t+=u.scrollTop(),n+=u.scrollLeft(),a.viewportConstrain!==!1&&(r=Math.min(r,t+h.outerHeight()-c-this.margin),r=Math.max(r,t+this.margin),o=Math.min(o,n+h.outerWidth()-l-this.margin),o=Math.max(o,n+this.margin)),this.el.css({top:r-s.top,left:o-s.left})},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))}}),nt=Pe.CoordCache=ue.extend({els:null,forcedOffsetParentEl:null,origin:null,boundingRect:null,isHorizontal:!1,isVertical:!1,lefts:null,rights:null,tops:null,bottoms:null,constructor:function(t){this.els=e(t.els),this.isHorizontal=t.isHorizontal,this.isVertical=t.isVertical,this.forcedOffsetParentEl=t.offsetParent?e(t.offsetParent):null},build:function(){var e=this.forcedOffsetParentEl;!e&&this.els.length>0&&(e=this.els.eq(0).offsetParent()),this.origin=e?e.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},clear:function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},ensureBuilt:function(){this.origin||this.build()},buildElHorizontals:function(){var t=[],n=[];this.els.each(function(i,r){var o=e(r),a=o.offset().left,s=o.outerWidth();t.push(a),n.push(a+s)}),this.lefts=t,this.rights=n},buildElVerticals:function(){var t=[],n=[];this.els.each(function(i,r){var o=e(r),a=o.offset().top,s=o.outerHeight();t.push(a),n.push(a+s)}),this.tops=t,this.bottoms=n},getHorizontalIndex:function(e){this.ensureBuilt();var t,n=this.lefts,i=this.rights,r=n.length;for(t=0;t=n[t]&&e=n[t]&&e0&&(e=d(this.els.eq(0)),!e.is(document))?f(e):null},isPointInBounds:function(e,t){return this.isLeftInBounds(e)&&this.isTopInBounds(t)},isLeftInBounds:function(e){return!this.boundingRect||e>=this.boundingRect.left&&e=this.boundingRect.top&&e=r*r&&this.handleDistanceSurpassed(e)),this.isDragging&&this.handleDrag(n,i,e)},handleDrag:function(e,t,n){this.trigger("drag",e,t,n),this.updateAutoScroll(n)},endDrag:function(e){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(e))},handleDragEnd:function(e){this.trigger("dragEnd",e)},startDelay:function(e){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},handleDelayEnd:function(e){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(e)},handleDistanceSurpassed:function(e){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(e)},handleTouchMove:function(e){this.isDragging&&this.shouldCancelTouchScroll&&e.preventDefault(),this.handleMove(e)},handleMouseMove:function(e){this.handleMove(e)},handleTouchScroll:function(e){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(e,!0)},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1)),this["_"+e]&&this["_"+e].apply(this,Array.prototype.slice.call(arguments,1))}});it.mixin({isAutoScroll:!1,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,initAutoScroll:function(){var e=this.scrollEl;this.isAutoScroll=this.options.scroll&&e&&!e.is(window)&&!e.is(document),this.isAutoScroll&&this.listenTo(e,"scroll",le(this.handleDebouncedScroll,100))},destroyAutoScroll:function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},computeScrollBounds:function(){this.isAutoScroll&&(this.scrollBounds=h(this.scrollEl))},updateAutoScroll:function(e){var t,n,i,r,o=this.scrollSensitivity,a=this.scrollBounds,s=0,l=0;a&&(t=(o-(k(e)-a.top))/o,n=(o-(a.bottom-k(e)))/o,i=(o-(w(e)-a.left))/o,r=(o-(a.right-w(e)))/o,t>=0&&t<=1?s=t*this.scrollSpeed*-1:n>=0&&n<=1&&(s=n*this.scrollSpeed),i>=0&&i<=1?l=i*this.scrollSpeed*-1:r>=0&&r<=1&&(l=r*this.scrollSpeed)),this.setScrollVel(s,l)},setScrollVel:function(e,t){this.scrollTopVel=e,this.scrollLeftVel=t,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(se(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var e=this.scrollEl;this.scrollTopVel<0?e.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&e.scrollTop()+e[0].clientHeight>=e[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?e.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&e.scrollLeft()+e[0].clientWidth>=e[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var e=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&e.scrollTop(e.scrollTop()+this.scrollTopVel*t),this.scrollLeftVel&&e.scrollLeft(e.scrollLeft()+this.scrollLeftVel*t),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},endAutoScroll:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},handleDebouncedScroll:function(){this.scrollIntervalId||this.handleScrollEnd()},handleScrollEnd:function(){}});var rt=it.extend({component:null,origHit:null,hit:null,coordAdjust:null,constructor:function(e,t){it.call(this,t),this.component=e},handleInteractionStart:function(e){var t,n,i,r=this.subjectEl;this.component.hitsNeeded(),this.computeScrollBounds(),e?(n={left:w(e),top:k(e)},i=n,r&&(t=h(r),i=L(i,t)),this.origHit=this.queryHit(i.left,i.top),r&&this.options.subjectCenter&&(this.origHit&&(t=_(this.origHit,t)||t),i=D(t)),this.coordAdjust=M(i,n)):(this.origHit=null,this.coordAdjust=null),it.prototype.handleInteractionStart.apply(this,arguments)},handleDragStart:function(e){var t;it.prototype.handleDragStart.apply(this,arguments),t=this.queryHit(w(e),k(e)),t&&this.handleHitOver(t)},handleDrag:function(e,t,n){var i;it.prototype.handleDrag.apply(this,arguments),i=this.queryHit(w(n),k(n)),ge(i,this.hit)||(this.hit&&this.handleHitOut(),i&&this.handleHitOver(i))},handleDragEnd:function(){this.handleHitDone(),it.prototype.handleDragEnd.apply(this,arguments)},handleHitOver:function(e){var t=ge(e,this.origHit);this.hit=e,this.trigger("hitOver",this.hit,t,this.origHit)},handleHitOut:function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},handleHitDone:function(){this.hit&&this.trigger("hitDone",this.hit)},handleInteractionEnd:function(){it.prototype.handleInteractionEnd.apply(this,arguments),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},handleScrollEnd:function(){it.prototype.handleScrollEnd.apply(this,arguments),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},queryHit:function(e,t){return this.coordAdjust&&(e+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(e,t)}});Pe.touchMouseIgnoreWait=500;var ot=ue.extend(et,Je,{isTouching:!1,mouseIgnoreDepth:0,handleScrollProxy:null,bind:function(){var t=this;this.listenTo(e(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(n){t.handleTouchMove(e.Event(n))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(n){t.handleScroll(e.Event(n))},!0)},unbind:function(){this.stopListeningTo(e(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy),window.removeEventListener("scroll",this.handleScrollProxy,!0)},handleTouchStart:function(e){this.stopTouch(e,!0),this.isTouching=!0,this.trigger("touchstart",e)},handleTouchMove:function(e){this.isTouching&&this.trigger("touchmove",e)},handleTouchCancel:function(e){this.isTouching&&(this.trigger("touchcancel",e),this.stopTouch(e))},handleTouchEnd:function(e){this.stopTouch(e)},handleMouseDown:function(e){this.shouldIgnoreMouse()||this.trigger("mousedown",e)},handleMouseMove:function(e){this.shouldIgnoreMouse()||this.trigger("mousemove",e)},handleMouseUp:function(e){this.shouldIgnoreMouse()||this.trigger("mouseup",e)},handleClick:function(e){this.shouldIgnoreMouse()||this.trigger("click",e)},handleSelectStart:function(e){this.trigger("selectstart",e)},handleContextMenu:function(e){this.trigger("contextmenu",e)},handleScroll:function(e){this.trigger("scroll",e)},stopTouch:function(e,t){this.isTouching&&(this.isTouching=!1,this.trigger("touchend",e),t||this.startTouchMouseIgnore())},startTouchMouseIgnore:function(){var e=this,t=Pe.touchMouseIgnoreWait;t&&(this.mouseIgnoreDepth++,setTimeout(function(){e.mouseIgnoreDepth--},t))},shouldIgnoreMouse:function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)}});!function(){var e=null,t=0;ot.get=function(){return e||(e=new ot,e.bind()),e},ot.needed=function(){ot.get(),t++},ot.unneeded=function(){t--,t||(e.unbind(),e=null)}}();var at=ue.extend(et,{options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,y0:null,x0:null,topDelta:null,leftDelta:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(t,n){this.options=n=n||{},this.sourceEl=t,this.parentEl=n.parentEl?e(n.parentEl):t.parent()},start:function(t){this.isFollowing||(this.isFollowing=!0,this.y0=k(t),this.x0=w(t),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),S(t)?this.listenTo(e(document),"touchmove",this.handleMove):this.listenTo(e(document),"mousemove",this.handleMove))},stop:function(t,n){function i(){r.isAnimating=!1,r.removeElement(),r.top0=r.left0=null,n&&n()}var r=this,o=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(e(document)),t&&o&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:o,complete:i})):i())},getEl:function(){var e=this.el;return e||(e=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}),e.addClass("fc-unselectable"),e.appendTo(this.parentEl)),e},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var e,t;this.getEl(),null===this.top0&&(e=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=e.top-t.top,this.left0=e.left-t.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},handleMove:function(e){this.topDelta=k(e)-this.y0,this.leftDelta=w(e)-this.x0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),st=Pe.Grid=ue.extend(et,{hasDayInteractions:!0,view:null,isRTL:null,start:null,end:null,el:null,elsByFill:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,minResizeDuration:null,largeUnit:null,dayClickListener:null,daySelectListener:null,segDragListener:null,segResizeListener:null,externalDragListener:null,constructor:function(e){this.view=e,this.isRTL=e.opt("isRTL"),this.elsByFill={},this.dayClickListener=this.buildDayClickListener(),this.daySelectListener=this.buildDaySelectListener()},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(e){this.start=e.start.clone(),this.end=e.end.clone(),this.rangeUpdated(),this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var e,t,n=this.view;this.eventTimeFormat=n.opt("eventTimeFormat")||n.opt("timeFormat")||this.computeEventTimeFormat(),e=n.opt("displayEventTime"),null==e&&(e=this.computeDisplayEventTime()),t=n.opt("displayEventEnd"),null==t&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},spanToSegs:function(e){},diffDates:function(e,t){return this.largeUnit?P(e,t,this.largeUnit):F(e,t)},hitsNeededDepth:0,hitsNeeded:function(){this.hitsNeededDepth++||this.prepareHits()},hitsNotNeeded:function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits()},prepareHits:function(){},releaseHits:function(){},queryHit:function(e,t){},getHitSpan:function(e){},getHitEl:function(e){},setElement:function(e){this.el=e,this.hasDayInteractions&&(C(e),this.bindDayHandler("touchstart",this.dayTouchStart),this.bindDayHandler("mousedown",this.dayMousedown)),this.bindSegHandlers(),this.bindGlobalHandlers()},bindDayHandler:function(t,n){var i=this;this.el.on(t,function(t){if(!e(t.target).is(i.segSelector+","+i.segSelector+" *,.fc-more,a[data-goto]"))return n.call(i,t)})},removeElement:function(){this.unbindGlobalHandlers(),this.clearDragListeners(),this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){this.listenTo(e(document),{dragstart:this.externalDragStart,sortstart:this.externalDragStart})},unbindGlobalHandlers:function(){this.stopListeningTo(e(document))},dayMousedown:function(e){var t=this.view;t.isSelected||t.selectedEvent||(this.dayClickListener.startInteraction(e),t.opt("selectable")&&this.daySelectListener.startInteraction(e,{distance:t.opt("selectMinDistance")}))},dayTouchStart:function(e){var t,n=this.view;n.isSelected||n.selectedEvent||(t=n.opt("selectLongPressDelay"),null==t&&(t=n.opt("longPressDelay")),this.dayClickListener.startInteraction(e),n.opt("selectable")&&this.daySelectListener.startInteraction(e,{delay:t}))},buildDayClickListener:function(){var e,t=this,n=this.view,i=new rt(this,{scroll:n.opt("dragScroll"),interactionStart:function(){e=i.origHit},hitOver:function(t,n,i){n||(e=null)},hitOut:function(){e=null},interactionEnd:function(i,r){!r&&e&&n.triggerDayClick(t.getHitSpan(e),t.getHitEl(e),i)}});return i.shouldCancelTouchScroll=!1,i.scrollAlwaysKills=!0,i},buildDaySelectListener:function(){var e,t=this,n=this.view,i=new rt(this,{scroll:n.opt("dragScroll"),interactionStart:function(){e=null},dragStart:function(){n.unselect()},hitOver:function(n,i,r){r&&(e=t.computeSelection(t.getHitSpan(r),t.getHitSpan(n)),e?t.renderSelection(e):e===!1&&o())},hitOut:function(){e=null,t.unrenderSelection()},hitDone:function(){a()},interactionEnd:function(t,i){!i&&e&&n.reportSelection(e,t)}});return i},clearDragListeners:function(){this.dayClickListener.endInteraction(),this.daySelectListener.endInteraction(),this.segDragListener&&this.segDragListener.endInteraction(),this.segResizeListener&&this.segResizeListener.endInteraction(),this.externalDragListener&&this.externalDragListener.endInteraction()},renderEventLocationHelper:function(e,t){var n=this.fabricateHelperEvent(e,t);return this.renderHelper(n,t)},fabricateHelperEvent:function(e,t){var n=t?V(t.event):{};return n.start=e.start.clone(),n.end=e.end?e.end.clone():null,n.allDay=null,this.view.calendar.normalizeEventDates(n),n.className=(n.className||[]).concat("fc-helper"),t||(n.editable=!1),n},renderHelper:function(e,t){},unrenderHelper:function(){},renderSelection:function(e){this.renderHighlight(e)},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(e,t){var n=this.computeSelectionSpan(e,t);return!(n&&!this.view.calendar.isSelectionSpanAllowed(n))&&n},computeSelectionSpan:function(e,t){var n=[e.start,e.end,t.start,t.end];return n.sort(oe),{start:n[0].clone(),end:n[3].clone()}},renderHighlight:function(e){this.renderFill("highlight",this.spanToSegs(e))},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderBusinessHours:function(){},unrenderBusinessHours:function(){},getNowIndicatorUnit:function(){},renderNowIndicator:function(e){},unrenderNowIndicator:function(){},renderFill:function(e,t){},unrenderFill:function(e){var t=this.elsByFill[e];t&&(t.remove(),delete this.elsByFill[e])},renderFillSegEls:function(t,n){var i,r=this,o=this[t+"SegEl"],a="",s=[];if(n.length){for(i=0;i"},getDayClasses:function(e,t){var n=this.view,i=n.calendar.getNow(),r=["fc-"+je[e.day()]];return 1==n.intervalDuration.as("months")&&e.month()!=n.intervalStart.month()&&r.push("fc-other-month"),e.isSame(i,"day")?(r.push("fc-today"),t!==!0&&r.push(n.highlightStateClass)):e *",mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExternal:!1,segs:null,renderEvents:function(e){var t,n=[],i=[];for(t=0;ts&&a.push({start:s,end:n.start}),s=n.end;return s=t.length?t[t.length-1]+1:t[n]},computeColHeadFormat:function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},sliceRangeByRow:function(e){var t,n,i,r,o,a=this.daysPerRow,s=this.view.computeDayRange(e),l=this.getDateDayIndex(s.start),c=this.getDateDayIndex(s.end.clone().subtract(1,"days")),u=[];for(t=0;t'+this.renderHeadTrHtml()+"
    "},renderHeadIntroHtml:function(){return this.renderIntroHtml()},renderHeadTrHtml:function(){return""+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+""},renderHeadDateCellsHtml:function(){var e,t,n=[];for(e=0;e1?' colspan="'+t+'"':"")+(n?" "+n:"")+">"+i.buildGotoAnchorHtml({date:e,forceOff:this.rowCnt>1||1===this.colCnt},ee(e.format(this.colHeadFormat)))+""},renderBgTrHtml:function(e){return""+(this.isRTL?"":this.renderBgIntroHtml(e))+this.renderBgCellsHtml(e)+(this.isRTL?this.renderBgIntroHtml(e):"")+""},renderBgIntroHtml:function(e){return this.renderIntroHtml()},renderBgCellsHtml:function(e){var t,n,i=[];for(t=0;t"},renderIntroHtml:function(){},bookendCells:function(e){var t=this.renderIntroHtml();t&&(this.isRTL?e.append(t):e.prepend(t))}},ct=Pe.DayGrid=st.extend(lt,{numbersVisible:!1,bottomCoordPadding:0,rowEls:null,cellEls:null,helperEls:null,rowCoordCache:null,colCoordCache:null,renderDates:function(e){var t,n,i=this.view,r=this.rowCnt,o=this.colCnt,a="";for(t=0;t
    '+this.renderBgTrHtml(e)+'
    '+(this.numbersVisible?""+this.renderNumberTrHtml(e)+"":"")+"
    "},renderNumberTrHtml:function(e){return""+(this.isRTL?"":this.renderNumberIntroHtml(e))+this.renderNumberCellsHtml(e)+(this.isRTL?this.renderNumberIntroHtml(e):"")+""},renderNumberIntroHtml:function(e){return this.renderIntroHtml()},renderNumberCellsHtml:function(e){var t,n,i=[];for(t=0;t',this.view.cellWeekNumbersVisible&&e.day()==n&&(i+=this.view.buildGotoAnchorHtml({date:e,type:"week"},{class:"fc-week-number"},e.format("w"))),this.view.dayNumbersVisible&&(i+=this.view.buildGotoAnchorHtml(e,{class:"fc-day-number"},e.date())),i+=""):""},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){this.updateDayTable()},spanToSegs:function(e){var t,n,i=this.sliceRangeByRow(e);for(t=0;t');a=n&&n.row===t?n.el.position().top:s.find(".fc-content-skeleton tbody").position().top,l.css("top",a).find("table").append(i[t].tbodyEl),s.append(l),r.push(l[0])}),this.helperEls=e(r)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(t,n,i){var r,o,a,s=[];for(n=this.renderFillSegEls(t,n),r=0;r
    '),o=r.find("tr"),s>0&&o.append(''),o.append(n.el.attr("colspan",l-s)),l'),this.bookendCells(o),r}});ct.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover(),st.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return st.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(t){var n=e.grep(t,function(e){return e.event.allDay});return st.prototype.renderBgSegs.call(this,n)},renderFgSegs:function(t){var n;return t=this.renderFgSegEls(t),n=this.rowStructs=this.renderSegRows(t),this.rowEls.each(function(t,i){e(i).find(".fc-content-skeleton > table").append(n[t].tbodyEl)}),t},unrenderFgSegs:function(){for(var e,t=this.rowStructs||[];e=t.pop();)e.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(e){var t,n,i=[];for(t=this.groupSegRows(e),n=0;n'+ee(n)+"")),i=''+(ee(o.title||"")||" ")+"",'
    '+(this.isRTL?i+" "+d:d+" "+i)+"
    "+(s?'
    ':"")+(l?'
    ':"")+""},renderSegRow:function(t,n){function i(t){for(;a"),s.append(u)),m[r][a]=u,v[r][a]=u,a++}var r,o,a,s,l,c,u,d=this.colCnt,h=this.buildSegLevels(n),f=Math.max(1,h.length),p=e(""),g=[],m=[],v=[];for(r=0;r"),g.push([]),m.push([]),v.push([]),o)for(l=0;l').append(c.el),c.leftCol!=c.rightCol?u.attr("colspan",c.rightCol-c.leftCol+1):v[r][a]=u;a<=c.rightCol;)m[r][a]=u,g[r][a]=c,a++;s.append(u)}i(d),this.bookendCells(s),p.append(s)}return{row:t,tbodyEl:p,cellMatrix:m,segMatrix:g,segLevels:h,segs:n}},buildSegLevels:function(e){var t,n,i,r=[];for(this.sortEventSegs(e),t=0;t td > :first-child").each(n),r.position().top+o>s)return i;return!1},limitRow:function(t,n){function i(i){for(;k").append(b),h.append(v),w.push(v[0])),k++}var r,o,a,s,l,c,u,d,h,f,p,g,m,v,b,y=this,x=this.rowStructs[t],w=[],k=0;if(n&&n').attr("rowspan",f),c=d[g],b=this.renderMoreLink(t,l.leftCol+g,[l].concat(c)),v=e("
    ").append(b),m.append(v),p.push(m[0]),w.push(m[0]);h.addClass("fc-limited").after(e(p)),a.push(h[0])}}i(this.colCnt),x.moreEls=e(w),x.limitedEls=e(a)}},unlimitRow:function(e){var t=this.rowStructs[e];t.moreEls&&(t.moreEls.remove(),t.moreEls=null),t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},renderMoreLink:function(t,n,i){var r=this,o=this.view;return e('').text(this.getMoreLinkText(i.length)).on("click",function(a){var s=o.opt("eventLimitClick"),l=r.getCellDate(t,n),c=e(this),u=r.getCellEl(t,n),d=r.getCellSegs(t,n),h=r.resliceDaySegs(d,l),f=r.resliceDaySegs(i,l);"function"==typeof s&&(s=o.publiclyTrigger("eventLimitClick",null,{date:l,dayEl:u,moreEl:c,segs:h,hiddenSegs:f},a)),"popover"===s?r.showSegPopover(t,n,c,h):"string"==typeof s&&o.calendar.zoomTo(l,s)})},showSegPopover:function(e,t,n,i){var r,o,a=this,s=this.view,l=n.parent();r=1==this.rowCnt?s.el:this.rowEls.eq(e),o={className:"fc-more-popover",content:this.renderSegPopoverContent(e,t,i),parentEl:this.view.el,top:r.offset().top,autoHide:!0,viewportConstrain:s.opt("popoverViewportConstrain"),hide:function(){if(a.popoverSegs)for(var e,t=0;t'+ee(s)+'
    '),c=l.find(".fc-event-container");for(i=this.renderFgSegEls(i,!0),this.popoverSegs=i,r=0;r'+this.renderBgTrHtml(0)+'
    "},renderSlatRowHtml:function(){for(var e,n,i,r=this.view,o=this.isRTL,a="",s=t.duration(+this.minTime);s"+(n?""+ee(e.format(this.labelFormat))+"":"")+"",a+='"+(o?"":i)+''+(o?i:"")+"",s.add(this.slotDuration);return a},processOptions:function(){var n,i=this.view,r=i.opt("slotDuration"),o=i.opt("snapDuration");r=t.duration(r),o=o?t.duration(o):r,this.slotDuration=r,this.snapDuration=o,this.snapsPerSlot=r/o,this.minResizeDuration=o,this.minTime=t.duration(i.opt("minTime")),this.maxTime=t.duration(i.opt("maxTime")),n=i.opt("slotLabelFormat"),e.isArray(n)&&(n=n[n.length-1]),this.labelFormat=n||i.opt("smallTimeFormat"),n=i.opt("slotLabelInterval"),this.labelInterval=n?t.duration(n):this.computeLabelInterval(r)},computeLabelInterval:function(e){var n,i,r;for(n=Lt.length-1;n>=0;n--)if(i=t.duration(Lt[n]),r=j(i,e),ae(r)&&r>1)return i;return t.duration(e)},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},prepareHits:function(){this.colCoordCache.build(),this.slatCoordCache.build()},releaseHits:function(){this.colCoordCache.clear()},queryHit:function(e,t){var n=this.snapsPerSlot,i=this.colCoordCache,r=this.slatCoordCache;if(i.isLeftInBounds(e)&&r.isTopInBounds(t)){var o=i.getHorizontalIndex(e),a=r.getVerticalIndex(t);if(null!=o&&null!=a){var s=r.getTopOffset(a),l=r.getHeight(a),c=(t-s)/l,u=Math.floor(c*n),d=a*n+u,h=s+u/n*l,f=s+(u+1)/n*l;return{col:o,snap:d,component:this,left:i.getLeftOffset(o),right:i.getRightOffset(o),top:h,bottom:f}}}},getHitSpan:function(e){var t,n=this.getCellDate(0,e.col),i=this.computeSnapTime(e.snap);return n.time(i),t=n.clone().add(this.snapDuration),{start:n,end:t}},getHitEl:function(e){return this.colEls.eq(e.col)},rangeUpdated:function(){this.updateDayTable()},computeSnapTime:function(e){return t.duration(this.minTime+this.snapDuration*e)},spanToSegs:function(e){var t,n=this.sliceRangeByTimes(e);for(t=0;t
    ').css("top",r).appendTo(this.colContainerEls.eq(i[n].col))[0]);i.length>0&&o.push(e('
    ').css("top",r).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=e(o)},unrenderNowIndicator:function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},renderSelection:function(e){this.view.opt("selectHelper")?this.renderEventLocationHelper(e):this.renderHighlight(e)},unrenderSelection:function(){this.unrenderHelper(),this.unrenderHighlight()},renderHighlight:function(e){this.renderHighlightSegs(this.spanToSegs(e))},unrenderHighlight:function(){this.unrenderHighlightSegs()}});ut.mixin({colContainerEls:null,fgContainerEls:null,bgContainerEls:null,helperContainerEls:null,highlightContainerEls:null,businessContainerEls:null,fgSegs:null,bgSegs:null,helperSegs:null,highlightSegs:null,businessSegs:null,renderContentSkeleton:function(){var t,n,i="";for(t=0;t
    ';n=e('
    '+i+"
    "),this.colContainerEls=n.find(".fc-content-col"),this.helperContainerEls=n.find(".fc-helper-container"),this.fgContainerEls=n.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=n.find(".fc-bgevent-container"),this.highlightContainerEls=n.find(".fc-highlight-container"),this.businessContainerEls=n.find(".fc-business-container"),this.bookendCells(n.find("tr")),this.el.append(n)},renderFgSegs:function(e){return e=this.renderFgSegsIntoContainers(e,this.fgContainerEls),this.fgSegs=e,e},unrenderFgSegs:function(){this.unrenderNamedSegs("fgSegs")},renderHelperSegs:function(t,n){var i,r,o,a=[];for(t=this.renderFgSegsIntoContainers(t,this.helperContainerEls),i=0;i
    '+(n?'
    '+ee(n)+"
    ":"")+(a.title?'
    '+ee(a.title)+"
    ":"")+'
    '+(c?'
    ':"")+""},updateSegVerticals:function(e){this.computeSegVerticals(e),this.assignSegVerticals(e)},computeSegVerticals:function(e){var t,n;for(t=0;t1?"ll":"LL"},formatRange:function(e,t,n){var i=e.end;return i.hasTime()||(i=i.clone().subtract(1)),Qe(e.start,i,t,n,this.opt("isRTL"))},getAllDayHtml:function(){return this.opt("allDayHtml")||ee(this.opt("allDayText"))},buildGotoAnchorHtml:function(t,n,i){var r,o,a,s;return e.isPlainObject(t)?(r=t.date,o=t.type,a=t.forceOff):r=t,r=Pe.moment(r),s={date:r.format("YYYY-MM-DD"),type:o||"day"},"string"==typeof n&&(i=n,n=null),n=n?" "+ie(n):"",i=i||"",!a&&this.opt("navLinks")?"'+i+"":""+i+""},setElement:function(e){this.el=e,this.bindGlobalHandlers(),this.renderSkeleton()},removeElement:function(){this.unsetDate(),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},renderSkeleton:function(){},unrenderSkeleton:function(){},setDate:function(e){var t=this.isDateSet;this.isDateSet=!0,this.handleDate(e,t),this.trigger(t?"dateReset":"dateSet",e)},unsetDate:function(){this.isDateSet&&(this.isDateSet=!1,this.handleDateUnset(),this.trigger("dateUnset"))},handleDate:function(e,t){var n=this;this.unbindEvents(),this.requestDateRender(e).then(function(){n.bindEvents()})},handleDateUnset:function(){this.unbindEvents(),this.requestDateUnrender()},requestDateRender:function(e){var t=this;return this.dateRenderQueue.add(function(){return t.executeDateRender(e)})},requestDateUnrender:function(){var e=this;return this.dateRenderQueue.add(function(){return e.executeDateUnrender()})},executeDateRender:function(e){var t=this;return e?this.captureInitialScroll():this.captureScroll(),this.freezeHeight(),this.executeDateUnrender().then(function(){e&&t.setRange(t.computeRange(e)),t.render&&t.render(),t.renderDates(),t.updateSize(),t.renderBusinessHours(),t.startNowIndicator(),t.thawHeight(),t.releaseScroll(),t.isDateRendered=!0,t.onDateRender(),t.trigger("dateRender")})},executeDateUnrender:function(){var e=this;return e.isDateRendered?this.requestEventsUnrender().then(function(){e.unselect(),e.stopNowIndicator(),e.triggerUnrender(),e.unrenderBusinessHours(),e.unrenderDates(),e.destroy&&e.destroy(),e.isDateRendered=!1,e.trigger("dateUnrender")}):fe.resolve()},onDateRender:function(){this.triggerRender()},renderDates:function(){},unrenderDates:function(){},triggerRender:function(){this.publiclyTrigger("viewRender",this,this,this.el)},triggerUnrender:function(){this.publiclyTrigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){this.listenTo(ot.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},unbindGlobalHandlers:function(){this.stopListeningTo(ot.get())},initThemingProps:function(){var e=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=e+"-widget-header",this.widgetContentClass=e+"-widget-content",this.highlightStateClass=e+"-state-highlight"},renderBusinessHours:function(){},unrenderBusinessHours:function(){},startNowIndicator:function(){var e,n,i,r=this;this.opt("nowIndicator")&&(e=this.getNowIndicatorUnit(),e&&(n=se(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=+new Date,this.renderNowIndicator(this.initialNowDate),this.isNowIndicatorRendered=!0,i=this.initialNowDate.clone().startOf(e).add(1,e)-this.initialNowDate,this.nowIndicatorTimeoutID=setTimeout(function(){r.nowIndicatorTimeoutID=null,n(),i=+t.duration(1,e),i=Math.max(100,i),r.nowIndicatorIntervalID=setInterval(n,i)},i)))},updateNowIndicator:function(){this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add(new Date-this.initialNowQueriedMs)))},stopNowIndicator:function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearTimeout(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},getNowIndicatorUnit:function(){},renderNowIndicator:function(e){},unrenderNowIndicator:function(){},updateSize:function(e){e&&this.captureScroll(),this.updateHeight(e),this.updateWidth(e),this.updateNowIndicator(),e&&this.releaseScroll()},updateWidth:function(e){},updateHeight:function(e){var t=this.calendar;this.setHeight(t.getSuggestedViewHeight(),t.isHeightAuto())},setHeight:function(e,t){},capturedScroll:null,capturedScrollDepth:0,captureScroll:function(){return!this.capturedScrollDepth++&&(this.capturedScroll=this.isDateRendered?this.queryScroll():{},!0)},captureInitialScroll:function(t){this.captureScroll()&&(this.capturedScroll.isInitial=!0,t?e.extend(this.capturedScroll,t):this.capturedScroll.isComputed=!0)},releaseScroll:function(){var t=this.capturedScroll,n=this.discardScroll();t.isComputed&&(n?e.extend(t,this.computeInitialScroll()):t=null),t&&(t.isInitial?this.hardSetScroll(t):this.setScroll(t))},discardScroll:function(){return!--this.capturedScrollDepth&&(this.capturedScroll=null,!0)},computeInitialScroll:function(){return{}},queryScroll:function(){return{}},hardSetScroll:function(e){var t=this,n=function(){t.setScroll(e)};n(),setTimeout(n,0)},setScroll:function(e){},freezeHeight:function(){this.calendar.freezeContentHeight()},thawHeight:function(){this.calendar.thawContentHeight()},bindEvents:function(){var e=this;this.isEventsBound||(this.isEventsBound=!0,this.rejectOn("eventsUnbind",this.requestEvents()).then(function(t){e.listenTo(e.calendar,"eventsReset",e.setEvents),e.setEvents(t)}))},unbindEvents:function(){this.isEventsBound&&(this.isEventsBound=!1,this.stopListeningTo(this.calendar,"eventsReset"),this.unsetEvents(),this.trigger("eventsUnbind"))},setEvents:function(e){var t=this.isEventSet;this.isEventsSet=!0,this.handleEvents(e,t),this.trigger(t?"eventsReset":"eventsSet",e)},unsetEvents:function(){this.isEventsSet&&(this.isEventsSet=!1,this.handleEventsUnset(),this.trigger("eventsUnset"))},whenEventsSet:function(){var e=this;return this.isEventsSet?fe.resolve(this.getCurrentEvents()):new fe(function(t){e.one("eventsSet",t)})},handleEvents:function(e,t){this.requestEventsRender(e)},handleEventsUnset:function(){this.requestEventsUnrender()},requestEventsRender:function(e){var t=this;return this.eventRenderQueue.add(function(){return t.executeEventsRender(e)})},requestEventsUnrender:function(){var e=this;return this.isEventsRendered?this.eventRenderQueue.addQuickly(function(){return e.executeEventsUnrender()}):fe.resolve()},requestCurrentEventsRender:function(){return this.isEventsSet?void this.requestEventsRender(this.getCurrentEvents()):fe.reject()},executeEventsRender:function(e){var t=this;return this.captureScroll(),this.freezeHeight(),this.executeEventsUnrender().then(function(){t.renderEvents(e),t.thawHeight(),t.releaseScroll(),t.isEventsRendered=!0,t.onEventsRender(),t.trigger("eventsRender")})},executeEventsUnrender:function(){return this.isEventsRendered&&(this.onBeforeEventsUnrender(),this.captureScroll(),this.freezeHeight(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.thawHeight(),this.releaseScroll(),this.isEventsRendered=!1,this.trigger("eventsUnrender")),fe.resolve()},onEventsRender:function(){this.renderedEventSegEach(function(e){this.publiclyTrigger("eventAfterRender",e.event,e.event,e.el)}),this.publiclyTrigger("eventAfterAllRender")},onBeforeEventsUnrender:function(){this.renderedEventSegEach(function(e){this.publiclyTrigger("eventDestroy",e.event,e.event,e.el)})},renderEvents:function(e){},unrenderEvents:function(){},requestEvents:function(){return this.calendar.requestEvents(this.start,this.end)},getCurrentEvents:function(){return this.calendar.getPrunedEventCache()},resolveEventEl:function(t,n){var i=this.publiclyTrigger("eventRender",t,t,n);return i===!1?n=null:i&&i!==!0&&(n=e(i)),n},showEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","")},e)},hideEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","hidden")},e)},renderedEventSegEach:function(e,t){var n,i=this.getEventSegs();for(n=0;n=this.nextDayThreshold&&r.add(1,"days")),(!i||r<=n)&&(r=n.clone().add(1,"days")),{start:n,end:r}},isMultiDayEvent:function(e){var t=this.computeDayRange(e);return t.end.diff(t.start,"days")>1}}),ht=Pe.Scroller=ue.extend({el:null,scrollEl:null,overflowX:null,overflowY:null,constructor:function(e){e=e||{},this.overflowX=e.overflowX||e.overflow||"auto",this.overflowY=e.overflowY||e.overflow||"auto"},render:function(){this.el=this.renderEl(),this.applyOverflow()},renderEl:function(){return this.scrollEl=e('
    ')},clear:function(){this.setHeight("auto"),this.applyOverflow()},destroy:function(){this.el.remove()},applyOverflow:function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},lockOverflow:function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.top||e.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":t,"overflow-y":n})},setHeight:function(e){this.scrollEl.height(e)},getScrollTop:function(){return this.scrollEl.scrollTop()},setScrollTop:function(e){this.scrollEl.scrollTop(e)},getClientWidth:function(){return this.scrollEl[0].clientWidth},getClientHeight:function(){return this.scrollEl[0].clientHeight},getScrollbarWidths:function(){return g(this.scrollEl)}});He.prototype.proxyCall=function(e){var t=Array.prototype.slice.call(arguments,1),n=[];return this.items.forEach(function(i){n.push(i[e].apply(i,t))}),n};var ft=Pe.Calendar=ue.extend({dirDefaults:null,localeDefaults:null,overrides:null,dynamicOverrides:null,options:null,viewSpecCache:null,view:null,header:null,footer:null,loadingLevel:0,constructor:Ae,initialize:function(){},populateOptionsHash:function(){var e,t,i,r;e=J(this.dynamicOverrides.locale,this.overrides.locale),t=pt[e],t||(e=ft.defaults.locale,t=pt[e]||{}),i=J(this.dynamicOverrides.isRTL,this.overrides.isRTL,t.isRTL,ft.defaults.isRTL),r=i?ft.rtlDefaults:{},this.dirDefaults=r,this.localeDefaults=t,this.options=n([ft.defaults,r,t,this.overrides,this.dynamicOverrides]),Ie(this.options)},getViewSpec:function(e){var t=this.viewSpecCache;return t[e]||(t[e]=this.buildViewSpec(e))},getUnitViewSpec:function(t){var n,i,r;if(e.inArray(t,Ye)!=-1)for(n=this.header.getViewsWithButtons(),e.each(Pe.views,function(e){n.push(e)}),i=0;i=n&&t.end<=i},ft.prototype.getPeerEvents=function(e,t){var n,i,r=this.getEventCache(),o=[];for(n=0;nn};var xt={id:"_fcBusinessHours",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"};ft.prototype.getCurrentBusinessHourEvents=function(e){return this.computeBusinessHourEvents(e,this.options.businessHours)},ft.prototype.computeBusinessHourEvents=function(t,n){return n===!0?this.expandBusinessHourEvents(t,[{}]):e.isPlainObject(n)?this.expandBusinessHourEvents(t,[n]):e.isArray(n)?this.expandBusinessHourEvents(t,n,!0):[]},ft.prototype.expandBusinessHourEvents=function(t,n,i){var r,o,a=this.getView(),s=[];for(r=0;r1,this.opt("weekNumbers")&&(this.opt("weekNumbersWithinDays")?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0)),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.cellWeekNumbersVisible||this.colWeekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scroller.render();var t=this.scroller.el.addClass("fc-day-grid-container"),n=e('
    ').appendTo(t);this.el.find(".fc-body > tr > td").append(t),this.dayGrid.setElement(n),this.dayGrid.renderDates(this.hasRigidRows())},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.dayGrid.renderHeadHtml()),this.headRowEl=this.headContainerEl.find(".fc-row")},unrenderDates:function(){this.dayGrid.unrenderDates(),this.dayGrid.removeElement(),this.scroller.destroy()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.dayGrid.unrenderBusinessHours()},renderSkeletonHtml:function(){return'
    '},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var e=this.opt("eventLimit");return e&&"number"!=typeof e},updateWidth:function(){this.colWeekNumbersVisible&&(this.weekNumberWidth=c(this.el.find(".fc-week-number")))},setHeight:function(e,t){var n,o,a=this.opt("eventLimit");this.scroller.clear(),r(this.headRowEl),this.dayGrid.removeSegPopover(),a&&"number"==typeof a&&this.dayGrid.limitRows(a),n=this.computeScrollerHeight(e),this.setGridHeight(n,t),a&&"number"!=typeof a&&this.dayGrid.limitRows(a),t||(this.scroller.setHeight(n),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(i(this.headRowEl,o),n=this.computeScrollerHeight(e),this.scroller.setHeight(n)),this.scroller.lockOverflow(o))},computeScrollerHeight:function(e){return e-u(this.el,this.scroller.el)},setGridHeight:function(e,t){t?l(this.dayGrid.rowEls):s(this.dayGrid.rowEls,e,!0)},computeInitialScroll:function(){return{top:0}},queryScroll:function(){return{top:this.scroller.getScrollTop()}},setScroll:function(e){this.scroller.setScrollTop(e.top)},hitsNeeded:function(){this.dayGrid.hitsNeeded()},hitsNotNeeded:function(){this.dayGrid.hitsNotNeeded()},prepareHits:function(){this.dayGrid.prepareHits()},releaseHits:function(){this.dayGrid.releaseHits()},queryHit:function(e,t){return this.dayGrid.queryHit(e,t)},getHitSpan:function(e){return this.dayGrid.getHitSpan(e)},getHitEl:function(e){return this.dayGrid.getHitEl(e)},renderEvents:function(e){this.dayGrid.renderEvents(e),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(e,t){return this.dayGrid.renderDrag(e,t)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(e){this.dayGrid.renderSelection(e)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),kt={renderHeadIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'"+ee(e.opt("weekNumberTitle"))+"":""},renderNumberIntroHtml:function(e){var t=this.view,n=this.getCellDate(e,0);return t.colWeekNumbersVisible?'"+t.buildGotoAnchorHtml({date:n,type:"week",forceOff:1===this.colCnt},n.format("w"))+"":""},renderBgIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'":""},renderIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'":""}},St=Pe.MonthView=wt.extend({computeRange:function(e){var t,n=wt.prototype.computeRange.call(this,e);return this.isFixedWeeks()&&(t=Math.ceil(n.end.diff(n.start,"weeks",!0)),n.end.add(6-t,"weeks")),n},setGridHeight:function(e,t){t&&(e*=this.rowCnt/6),s(this.dayGrid.rowEls,e,!t)},isFixedWeeks:function(){return this.opt("fixedWeekCount")}});Oe.basic={class:wt},Oe.basicDay={type:"basic",duration:{days:1}},Oe.basicWeek={type:"basic",duration:{weeks:1}},Oe.month={class:St,duration:{months:1},defaults:{fixedWeekCount:!0}};var Ct=Pe.AgendaView=dt.extend({scroller:null,timeGridClass:ut,timeGrid:null,dayGridClass:ct,dayGrid:null,axisWidth:null,headContainerEl:null,noScrollRowEls:null,bottomRuleEl:null,initialize:function(){this.timeGrid=this.instantiateTimeGrid(),this.opt("allDaySlot")&&(this.dayGrid=this.instantiateDayGrid()),this.scroller=new ht({overflowX:"hidden",overflowY:"auto"})},instantiateTimeGrid:function(){var e=this.timeGridClass.extend(Tt);return new e(this)},instantiateDayGrid:function(){var e=this.dayGridClass.extend(Et);return new e(this)},setRange:function(e){dt.prototype.setRange.call(this,e),this.timeGrid.setRange(e),this.dayGrid&&this.dayGrid.setRange(e)},renderDates:function(){this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scroller.render();var t=this.scroller.el.addClass("fc-time-grid-container"),n=e('
    ').appendTo(t);this.el.find(".fc-body > tr > td").append(t),this.timeGrid.setElement(n),this.timeGrid.renderDates(),this.bottomRuleEl=e('
    ').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.timeGrid.renderHeadHtml())},unrenderDates:function(){this.timeGrid.unrenderDates(),this.timeGrid.removeElement(),this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement()),this.scroller.destroy()},renderSkeletonHtml:function(){return'
    '+(this.dayGrid?'

    ':"")+"
    "},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},renderBusinessHours:function(){this.timeGrid.renderBusinessHours(),this.dayGrid&&this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.timeGrid.unrenderBusinessHours(),this.dayGrid&&this.dayGrid.unrenderBusinessHours()},getNowIndicatorUnit:function(){return this.timeGrid.getNowIndicatorUnit()},renderNowIndicator:function(e){this.timeGrid.renderNowIndicator(e)},unrenderNowIndicator:function(){this.timeGrid.unrenderNowIndicator()},updateSize:function(e){this.timeGrid.updateSize(e),dt.prototype.updateSize.call(this,e)},updateWidth:function(){this.axisWidth=c(this.el.find(".fc-axis"))},setHeight:function(e,t){var n,o,a;this.bottomRuleEl.hide(),this.scroller.clear(),r(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.removeSegPopover(),n=this.opt("eventLimit"),n&&"number"!=typeof n&&(n=_t),n&&this.dayGrid.limitRows(n)),t||(o=this.computeScrollerHeight(e),this.scroller.setHeight(o),a=this.scroller.getScrollbarWidths(),(a.left||a.right)&&(i(this.noScrollRowEls,a),o=this.computeScrollerHeight(e),this.scroller.setHeight(o)),this.scroller.lockOverflow(a),this.timeGrid.getTotalSlatHeight()"+t.buildGotoAnchorHtml({date:this.start,type:"week",forceOff:this.colCnt>1},ee(e))+""):'"},renderBgIntroHtml:function(){var e=this.view;return'"},renderIntroHtml:function(){var e=this.view;return'"}},Et={renderBgIntroHtml:function(){var e=this.view;return'"+e.getAllDayHtml()+""},renderIntroHtml:function(){var e=this.view;return'"}},_t=5,Lt=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];Oe.agenda={class:Ct,defaults:{allDaySlot:!0,slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0}},Oe.agendaDay={type:"agenda",duration:{days:1}},Oe.agendaWeek={type:"agenda",duration:{weeks:1}};var Dt=dt.extend({grid:null,scroller:null,initialize:function(){this.grid=new Mt(this),this.scroller=new ht({overflowX:"hidden",overflowY:"auto"})},setRange:function(e){dt.prototype.setRange.call(this,e),this.grid.setRange(e)},renderSkeleton:function(){this.el.addClass("fc-list-view "+this.widgetContentClass),this.scroller.render(),this.scroller.el.appendTo(this.el),this.grid.setElement(this.scroller.scrollEl)},unrenderSkeleton:function(){this.scroller.destroy()},setHeight:function(e,t){this.scroller.setHeight(this.computeScrollerHeight(e))},computeScrollerHeight:function(e){return e-u(this.el,this.scroller.el)},renderEvents:function(e){this.grid.renderEvents(e)},unrenderEvents:function(){this.grid.unrenderEvents()},isEventResizable:function(e){return!1},isEventDraggable:function(e){return!1}}),Mt=st.extend({segSelector:".fc-list-item",hasDayInteractions:!1,spanToSegs:function(e){for(var t,n=this.view,i=n.start.clone().time(0),r=0,o=[];i
    '+ee(this.view.opt("noEventsMessage"))+"
    ")},renderSegList:function(t){var n,i,r,o=this.groupSegsByDay(t),a=e('
    '),s=a.find("tbody");for(n=0;n'+(n?t.buildGotoAnchorHtml(e,{class:"fc-list-heading-main"},ee(e.format(n))):"")+(i?t.buildGotoAnchorHtml(e,{class:"fc-list-heading-alt"},ee(e.format(i))):"")+""},fgSegHtml:function(e){var t,n=this.view,i=["fc-list-item"].concat(this.getSegCustomClasses(e)),r=this.getSegBackgroundColor(e),o=e.event,a=o.url;return t=o.allDay?n.getAllDayHtml():n.isMultiDayEvent(o)?e.isStart||e.isEnd?ee(this.getEventTimeText(e)):n.getAllDayHtml():ee(this.getEventTimeText(o)),a&&i.push("fc-has-url"),''+(this.displayEventTime?''+(t||"")+"":"")+'"+ee(e.event.title||"")+""}});return Oe.list={class:Dt,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}},Oe.listDay={type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}},Oe.listWeek={type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}},Oe.listMonth={type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}},Oe.listYear={type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}},Pe}),define("fullcalendar",["fullcalendar/dist/fullcalendar.min"],function(e){return e}),define("text!fullcalendar/dist/fullcalendar.min.css",["module"],function(e){e.exports='/*!\n * FullCalendar v3.2.0 Stylesheet\n * Docs & License: https://fullcalendar.io/\n * (c) 2017 Adam Shaw\n */.fc-icon,body .fc{font-size:1em}.fc-button-group,.fc-icon{display:inline-block}.fc-bg,.fc-row .fc-bgevent-skeleton,.fc-row .fc-highlight-skeleton{bottom:0}.fc-icon,.fc-unselectable{-khtml-user-select:none;-webkit-touch-callout:none}.fc{direction:ltr;text-align:left}.fc-rtl{text-align:right}.fc th,.fc-basic-view td.fc-week-number,.fc-icon,.fc-toolbar{text-align:center}.fc-unthemed .fc-content,.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-list-view,.fc-unthemed .fc-popover,.fc-unthemed .fc-row,.fc-unthemed tbody,.fc-unthemed td,.fc-unthemed th,.fc-unthemed thead{border-color:#ddd}.fc-unthemed .fc-popover{background-color:#fff}.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-popover .fc-header{background:#eee}.fc-unthemed .fc-popover .fc-header .fc-close{color:#666}.fc-unthemed td.fc-today{background:#fcf8e3}.fc-highlight{background:#bce8f1;opacity:.3}.fc-bgevent{background:#8fdf82;opacity:.3}.fc-nonbusiness{background:#d7d7d7}.fc-icon{height:1em;line-height:1em;overflow:hidden;font-family:"Courier New",Courier,monospace;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fc-icon:after{position:relative}.fc-icon-left-single-arrow:after{content:"\\02039";font-weight:700;font-size:200%;top:-7%}.fc-icon-right-single-arrow:after{content:"\\0203A";font-weight:700;font-size:200%;top:-7%}.fc-icon-left-double-arrow:after{content:"\\000AB";font-size:160%;top:-7%}.fc-icon-right-double-arrow:after{content:"\\000BB";font-size:160%;top:-7%}.fc-icon-left-triangle:after{content:"\\25C4";font-size:125%;top:3%}.fc-icon-right-triangle:after{content:"\\25BA";font-size:125%;top:3%}.fc-icon-down-triangle:after{content:"\\25BC";font-size:125%;top:2%}.fc-icon-x:after{content:"\\000D7";font-size:200%;top:6%}.fc button{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;height:2.1em;padding:0 .6em;font-size:1em;white-space:nowrap;cursor:pointer}.fc button::-moz-focus-inner{margin:0;padding:0}.fc-state-default{border:1px solid;background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.fc-state-default.fc-corner-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.fc-state-default.fc-corner-right{border-top-right-radius:4px;border-bottom-right-radius:4px}.fc button .fc-icon{position:relative;top:-.05em;margin:0 .2em;vertical-align:middle}.fc-state-active,.fc-state-disabled,.fc-state-down,.fc-state-hover{color:#333;background-color:#e6e6e6}.fc-state-hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.fc-state-active,.fc-state-down{background-color:#ccc;background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.fc-state-disabled{cursor:default;background-image:none;opacity:.65;box-shadow:none}.fc-event.fc-draggable,.fc-event[href],.fc-popover .fc-header .fc-close,a[data-goto]{cursor:pointer}.fc .fc-button-group>*{float:left;margin:0 0 0 -1px}.fc .fc-button-group>:first-child{margin-left:0}.fc-popover{position:absolute;box-shadow:0 2px 6px rgba(0,0,0,.15)}.fc-popover .fc-header{padding:2px 4px}.fc-popover .fc-header .fc-title{margin:0 2px}.fc-ltr .fc-popover .fc-header .fc-title,.fc-rtl .fc-popover .fc-header .fc-close{float:left}.fc-ltr .fc-popover .fc-header .fc-close,.fc-rtl .fc-popover .fc-header .fc-title{float:right}.fc-unthemed .fc-popover{border-width:1px;border-style:solid}.fc-unthemed .fc-popover .fc-header .fc-close{font-size:.9em;margin-top:2px}.fc-popover>.ui-widget-header+.ui-widget-content{border-top:0}.fc-divider{border-style:solid;border-width:1px}hr.fc-divider{height:0;margin:0;padding:0 0 2px;border-width:1px 0}.fc-bg table,.fc-row .fc-bgevent-skeleton table,.fc-row .fc-highlight-skeleton table{height:100%}.fc-clear{clear:both}.fc-bg,.fc-bgevent-skeleton,.fc-helper-skeleton,.fc-highlight-skeleton{position:absolute;top:0;left:0;right:0}.fc table{width:100%;box-sizing:border-box;table-layout:fixed;border-collapse:collapse;border-spacing:0;font-size:1em}.fc td,.fc th{border-style:solid;border-width:1px;padding:0;vertical-align:top}.fc td.fc-today{border-style:double}a[data-goto]:hover{text-decoration:underline}.fc .fc-row{border-style:solid;border-width:0}.fc-row table{border-left:0 hidden transparent;border-right:0 hidden transparent;border-bottom:0 hidden transparent}.fc-row:first-child table{border-top:0 hidden transparent}.fc-row{position:relative}.fc-row .fc-bg{z-index:1}.fc-row .fc-bgevent-skeleton td,.fc-row .fc-highlight-skeleton td{border-color:transparent}.fc-row .fc-bgevent-skeleton{z-index:2}.fc-row .fc-highlight-skeleton{z-index:3}.fc-row .fc-content-skeleton{position:relative;z-index:4;padding-bottom:2px}.fc-row .fc-helper-skeleton{z-index:5}.fc-row .fc-content-skeleton td,.fc-row .fc-helper-skeleton td{background:0 0;border-color:transparent;border-bottom:0}.fc-row .fc-content-skeleton tbody td,.fc-row .fc-helper-skeleton tbody td{border-top:0}.fc-scroller{-webkit-overflow-scrolling:touch}.fc-row.fc-rigid,.fc-time-grid-event{overflow:hidden}.fc-scroller>.fc-day-grid,.fc-scroller>.fc-time-grid{position:relative;width:100%}.fc-event{position:relative;display:block;font-size:.85em;line-height:1.3;border-radius:3px;border:1px solid #3a87ad;font-weight:400}.fc-event,.fc-event-dot{background-color:#3a87ad}.fc-event,.fc-event:hover,.ui-widget .fc-event{color:#fff;text-decoration:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-event .fc-bg{z-index:1;background:#fff;opacity:.25}.fc-event .fc-content{position:relative;z-index:2}.fc-event .fc-resizer{position:absolute;z-index:4;display:none}.fc-event.fc-allow-mouse-resize .fc-resizer,.fc-event.fc-selected .fc-resizer{display:block}.fc-event.fc-selected .fc-resizer:before{content:"";position:absolute;z-index:9999;top:50%;left:50%;width:40px;height:40px;margin-left:-20px;margin-top:-20px}.fc-event.fc-selected{z-index:9999!important;box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event.fc-selected.fc-dragging{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-h-event.fc-selected:before{content:"";position:absolute;z-index:3;top:-10px;bottom:-10px;left:0;right:0}.fc-ltr .fc-h-event.fc-not-start,.fc-rtl .fc-h-event.fc-not-end{margin-left:0;border-left-width:0;padding-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-ltr .fc-h-event.fc-not-end,.fc-rtl .fc-h-event.fc-not-start{margin-right:0;border-right-width:0;padding-right:1px;border-top-right-radius:0;border-bottom-right-radius:0}.fc-ltr .fc-h-event .fc-start-resizer,.fc-rtl .fc-h-event .fc-end-resizer{cursor:w-resize;left:-1px}.fc-ltr .fc-h-event .fc-end-resizer,.fc-rtl .fc-h-event .fc-start-resizer{cursor:e-resize;right:-1px}.fc-h-event.fc-allow-mouse-resize .fc-resizer{width:7px;top:-1px;bottom:-1px}.fc-h-event.fc-selected .fc-resizer{border-radius:4px;border-width:1px;width:6px;height:6px;border-style:solid;border-color:inherit;background:#fff;top:50%;margin-top:-4px}.fc-ltr .fc-h-event.fc-selected .fc-start-resizer,.fc-rtl .fc-h-event.fc-selected .fc-end-resizer{margin-left:-4px}.fc-ltr .fc-h-event.fc-selected .fc-end-resizer,.fc-rtl .fc-h-event.fc-selected .fc-start-resizer{margin-right:-4px}.fc-day-grid-event{margin:1px 2px 0;padding:0 1px}tr:first-child>td>.fc-day-grid-event{margin-top:2px}.fc-day-grid-event.fc-selected:after{content:"";position:absolute;z-index:1;top:-1px;right:-1px;bottom:-1px;left:-1px;background:#000;opacity:.25}.fc-day-grid-event .fc-content{white-space:nowrap;overflow:hidden}.fc-day-grid-event .fc-time{font-weight:700}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer{margin-left:-2px}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer{margin-right:-2px}a.fc-more{margin:1px 3px;font-size:.85em;cursor:pointer;text-decoration:none}a.fc-more:hover{text-decoration:underline}.fc-limited{display:none}.fc-day-grid .fc-row{z-index:1}.fc-more-popover{z-index:2;width:220px}.fc-more-popover .fc-event-container{padding:10px}.fc-now-indicator{position:absolute;border:0 solid red}.fc-unselectable{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fc-toolbar.fc-header-toolbar{margin-bottom:1em}.fc-toolbar.fc-footer-toolbar{margin-top:1em}.fc-toolbar .fc-left{float:left}.fc-toolbar .fc-right{float:right}.fc-toolbar .fc-center{display:inline-block}.fc .fc-toolbar>*>*{float:left;margin-left:.75em}.fc .fc-toolbar>*>:first-child{margin-left:0}.fc-toolbar h2{margin:0}.fc-toolbar button{position:relative}.fc-toolbar .fc-state-hover,.fc-toolbar .ui-state-hover{z-index:2}.fc-toolbar .fc-state-down{z-index:3}.fc-toolbar .fc-state-active,.fc-toolbar .ui-state-active{z-index:4}.fc-toolbar button:focus{z-index:5}.fc-view-container *,.fc-view-container :after,.fc-view-container :before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fc-view,.fc-view>table{position:relative;z-index:1}.fc-basicDay-view .fc-content-skeleton,.fc-basicWeek-view .fc-content-skeleton{padding-bottom:1em}.fc-basic-view .fc-body .fc-row{min-height:4em}.fc-row.fc-rigid .fc-content-skeleton{position:absolute;top:0;left:0;right:0}.fc-day-top.fc-other-month{opacity:.3}.fc-basic-view .fc-day-number,.fc-basic-view .fc-week-number{padding:2px}.fc-basic-view th.fc-day-number,.fc-basic-view th.fc-week-number{padding:0 2px}.fc-ltr .fc-basic-view .fc-day-top .fc-day-number{float:right}.fc-rtl .fc-basic-view .fc-day-top .fc-day-number{float:left}.fc-ltr .fc-basic-view .fc-day-top .fc-week-number{float:left;border-radius:0 0 3px}.fc-rtl .fc-basic-view .fc-day-top .fc-week-number{float:right;border-radius:0 0 0 3px}.fc-basic-view .fc-day-top .fc-week-number{min-width:1.5em;text-align:center;background-color:#f2f2f2;color:grey}.fc-basic-view td.fc-week-number>*{display:inline-block;min-width:1.25em}.fc-agenda-view .fc-day-grid{position:relative;z-index:2}.fc-agenda-view .fc-day-grid .fc-row{min-height:3em}.fc-agenda-view .fc-day-grid .fc-row .fc-content-skeleton{padding-bottom:1em}.fc .fc-axis{vertical-align:middle;padding:0 4px;white-space:nowrap}.fc-ltr .fc-axis{text-align:right}.fc-rtl .fc-axis{text-align:left}.ui-widget td.fc-axis{font-weight:400}.fc-time-grid,.fc-time-grid-container{position:relative;z-index:1}.fc-time-grid{min-height:100%}.fc-time-grid table{border:0 hidden transparent}.fc-time-grid>.fc-bg{z-index:1}.fc-time-grid .fc-slats,.fc-time-grid>hr{position:relative;z-index:2}.fc-time-grid .fc-content-col{position:relative}.fc-time-grid .fc-content-skeleton{position:absolute;z-index:3;top:0;left:0;right:0}.fc-time-grid .fc-business-container{position:relative;z-index:1}.fc-time-grid .fc-bgevent-container{position:relative;z-index:2}.fc-time-grid .fc-highlight-container{z-index:3;position:relative}.fc-time-grid .fc-event-container{position:relative;z-index:4}.fc-time-grid .fc-now-indicator-line{z-index:5}.fc-time-grid .fc-helper-container{position:relative;z-index:6}.fc-time-grid .fc-slats td{height:1.5em;border-bottom:0}.fc-time-grid .fc-slats .fc-minor td{border-top-style:dotted}.fc-time-grid .fc-slats .ui-widget-content{background:0 0}.fc-time-grid .fc-highlight{position:absolute;left:0;right:0}.fc-ltr .fc-time-grid .fc-event-container{margin:0 2.5% 0 2px}.fc-rtl .fc-time-grid .fc-event-container{margin:0 2px 0 2.5%}.fc-time-grid .fc-bgevent,.fc-time-grid .fc-event{position:absolute;z-index:1}.fc-time-grid .fc-bgevent{left:0;right:0}.fc-v-event.fc-not-start{border-top-width:0;padding-top:1px;border-top-left-radius:0;border-top-right-radius:0}.fc-v-event.fc-not-end{border-bottom-width:0;padding-bottom:1px;border-bottom-left-radius:0;border-bottom-right-radius:0}.fc-time-grid-event.fc-selected{overflow:visible}.fc-time-grid-event.fc-selected .fc-bg{display:none}.fc-time-grid-event .fc-content{overflow:hidden}.fc-time-grid-event .fc-time,.fc-time-grid-event .fc-title{padding:0 1px}.fc-time-grid-event .fc-time{font-size:.85em;white-space:nowrap}.fc-time-grid-event.fc-short .fc-content{white-space:nowrap}.fc-time-grid-event.fc-short .fc-time,.fc-time-grid-event.fc-short .fc-title{display:inline-block;vertical-align:top}.fc-time-grid-event.fc-short .fc-time span{display:none}.fc-time-grid-event.fc-short .fc-time:before{content:attr(data-start)}.fc-time-grid-event.fc-short .fc-time:after{content:"\\000A0-\\000A0"}.fc-time-grid-event.fc-short .fc-title{font-size:.85em;padding:0}.fc-time-grid-event.fc-allow-mouse-resize .fc-resizer{left:0;right:0;bottom:0;height:8px;overflow:hidden;line-height:8px;font-size:11px;font-family:monospace;text-align:center;cursor:s-resize}.fc-time-grid-event.fc-allow-mouse-resize .fc-resizer:after{content:"="}.fc-time-grid-event.fc-selected .fc-resizer{border-radius:5px;border-width:1px;width:8px;height:8px;border-style:solid;border-color:inherit;background:#fff;left:50%;margin-left:-5px;bottom:-5px}.fc-time-grid .fc-now-indicator-line{border-top-width:1px;left:0;right:0}.fc-time-grid .fc-now-indicator-arrow{margin-top:-5px}.fc-ltr .fc-time-grid .fc-now-indicator-arrow{left:0;border-width:5px 0 5px 6px;border-top-color:transparent;border-bottom-color:transparent}.fc-rtl .fc-time-grid .fc-now-indicator-arrow{right:0;border-width:5px 6px 5px 0;border-top-color:transparent;border-bottom-color:transparent}.fc-event-dot{display:inline-block;width:10px;height:10px;border-radius:5px}.fc-rtl .fc-list-view{direction:rtl}.fc-list-view{border-width:1px;border-style:solid}.fc .fc-list-table{table-layout:auto}.fc-list-table td{border-width:1px 0 0;padding:8px 14px}.fc-list-table tr:first-child td{border-top-width:0}.fc-list-heading{border-bottom-width:1px}.fc-list-heading td{font-weight:700}.fc-ltr .fc-list-heading-main{float:left}.fc-ltr .fc-list-heading-alt,.fc-rtl .fc-list-heading-main{float:right}.fc-rtl .fc-list-heading-alt{float:left}.fc-list-item.fc-has-url{cursor:pointer}.fc-list-item:hover td{background-color:#f5f5f5}.fc-list-item-marker,.fc-list-item-time{white-space:nowrap;width:1px}.fc-ltr .fc-list-item-marker{padding-right:0}.fc-rtl .fc-list-item-marker{padding-left:0}.fc-list-item-title a{text-decoration:none;color:inherit}.fc-list-item-title a[href]:hover{text-decoration:underline}.fc-list-empty-wrap2{position:absolute;top:0;left:0;right:0;bottom:0}.fc-list-empty-wrap1{width:100%;height:100%;display:table}.fc-list-empty{display:table-cell;vertical-align:middle;text-align:center}.fc-unthemed .fc-list-empty{background-color:#eee}'}),!function(e){"function"==typeof define&&define.amd?define("fullcalendar/dist/locale/zh-cn",["jquery","moment"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("moment")):e(jQuery,moment)}(function(e,t){!function(){var e=t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var e,n;return e=t().startOf("week"),n=this.diff(e,"days")>=7?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var e,n;return e=t().startOf("week"),n=this.unix()/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function a(e,t){return e=e.source,t=t||"",function n(i,r){return i?(r=r.source||r,r=r.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(i,r),n):new RegExp(e,t)}}function s(){}function l(e){for(var t,n,i=1;iAn error occured:

    "+r(e.message+"",!0)+"
    ";throw e}}var u={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};u.bullet=/(?:[*+-]|\d+\.)/,u.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,u.item=a(u.item,"gm")(/bull/g,u.bullet)(),u.list=a(u.list)(/bull/g,u.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+u.def.source+")")(),u.blockquote=a(u.blockquote)("def",u.def)(),u._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",u.html=a(u.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,u._tag)(),u.paragraph=a(u.paragraph)("hr",u.hr)("heading",u.heading)("lheading",u.lheading)("blockquote",u.blockquote)("tag","<"+u._tag)("def",u.def)(),u.normal=l({},u),u.gfm=l({},u.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),u.gfm.paragraph=a(u.paragraph)("(?!","(?!"+u.gfm.fences.source.replace("\\1","\\2")+"|"+u.list.source.replace("\\1","\\3")+"|")(),u.tables=l({},u.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=u,e.lex=function(t,n){var i=new e(n);return i.lex(t)},e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},e.prototype.token=function(e,t,n){for(var i,r,o,a,s,l,c,d,h,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},d=0;d ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),o=o[0].match(this.rules.item),i=!1,h=o.length,d=0;d1&&s.length>1||(e=o.slice(d+1).join("\n")+e,d=h-1)),r=i||/\n\n(?!\s*$)/.test(l),d!==h-1&&(i="\n"===l.charAt(l.length-1),r||(r=i)),this.tokens.push({type:r?"loose_item_start":"list_item_start"}),this.token(l,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},d=0;d])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,d.link=a(d.link)("inside",d._inside)("href",d._href)(),d.reflink=a(d.reflink)("inside",d._inside)(),d.normal=l({},d),d.pedantic=l({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=l({},d.normal,{escape:a(d.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:a(d.text)("]|","~]|")("|","|https?://|")()}),d.breaks=l({},d.gfm,{br:a(d.br)("{2,}","*")(),text:a(d.gfm.text)("{2,}","*")()}),t.rules=d,t.output=function(e,n,i){var r=new t(n,i);return r.output(e)},t.prototype.output=function(e){for(var t,n,i,o,a="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),a+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),"@"===o[2]?(n=":"===o[1].charAt(6)?this.mangle(o[1].substring(7)):this.mangle(o[1]),i=this.mangle("mailto:")+n):(n=r(o[1]),i=n),a+=this.renderer.link(i,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^/i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),a+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):r(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,a+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){a+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,a+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),a+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),a+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),a+=this.renderer.codespan(r(o[2],!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),a+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),a+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),a+=this.renderer.text(r(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(o[0].length),n=r(o[1]),i=n,a+=this.renderer.link(i,null,n);return a},t.prototype.outputLink=function(e,t){var n=r(t.href),i=t.title?r(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,r(e[1]))},t.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},t.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,r=0;r.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},n.prototype.code=function(e,t,n){if(this.options.highlight){var i=this.options.highlight(e,t);null!=i&&i!==e&&(n=!0,e=i)}return t?'
    '+(n?e:r(e,!0))+"\n
    \n":"
    "+(n?e:r(e,!0))+"\n
    "},n.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},n.prototype.html=function(e){return e},n.prototype.heading=function(e,t,n){return"'+e+"\n"},n.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},n.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},n.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},n.prototype.paragraph=function(e){return"

    "+e+"

    \n"},n.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},n.prototype.tablerow=function(e){return"\n"+e+"\n"},n.prototype.tablecell=function(e,t){var n=t.header?"th":"td",i=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return i+e+"\n"},n.prototype.strong=function(e){return""+e+""},n.prototype.em=function(e){return""+e+""},n.prototype.codespan=function(e){return""+e+""},n.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},n.prototype.del=function(e){return""+e+""},n.prototype.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(o(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:"))return""}var r='
    "},n.prototype.image=function(e,t,n){var i=''+n+'":">"},n.prototype.text=function(e){return e},i.parse=function(e,t,n){var r=new i(t,n);return r.parse(e)},i.prototype.parse=function(e){this.inline=new t(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var n="";this.next();)n+=this.tok();return n},i.prototype.next=function(){return this.token=this.tokens.pop()},i.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},i.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},i.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,r,o="",a="";for(n="",e=0;e-1)},add:function(t){e.push(t)},delete:function(t){e.splice(e.indexOf(t),1)}}}(),a=function(e){return new Event(e)};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(s=function(e){return e},s.destroy=function(e){return e},s.update=function(e){return e}):(s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e,t)}),e},s.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),t.exports=s}),function(e,t){"undefined"!=typeof module?module.exports=t():"function"==typeof define&&"object"==typeof define.amd?define("clipboard-js",t):this[e]=t()}("clipboard",function(){if("undefined"==typeof document||!document.addEventListener)return null;var e={};return e.copy=function(){function e(){n=!1,i=null,r&&window.getSelection().removeAllRanges(),r=!1}function t(){var e=document.getSelection();if(!document.queryCommandEnabled("copy")&&e.isCollapsed){var t=document.createRange();t.selectNodeContents(document.body),e.addRange(t),r=!0}}var n=!1,i=null,r=!1;return document.addEventListener("copy",function(e){if(n){for(var t in i)e.clipboardData.setData(t,i[t]);e.preventDefault()}}),function(r){return new Promise(function(o,a){n=!0,i="string"==typeof r?{"text/plain":r}:r instanceof Node?{"text/html":(new XMLSerializer).serializeToString(r)}:r;try{if(t(),!document.execCommand("copy"))throw new Error("Unable to copy. Perhaps it's not available in your browser?");e(),o()}catch(t){e(),a(t)}})}}(),e.paste=function(){var e,t,n=!1;return document.addEventListener("paste",function(i){if(n){n=!1,i.preventDefault();var r=e;e=null,r(i.clipboardData.getData(t))}}),function(i){return new Promise(function(r,o){n=!0,e=r,t=i||"text/plain";try{document.execCommand("paste")||(n=!1,o(new Error("Unable to paste. Pasting only works in Internet Explorer at the moment.")))}catch(e){n=!1,o(new Error(e))}})}}(),"undefined"==typeof ClipboardEvent&&"undefined"!=typeof window.clipboardData&&"undefined"!=typeof window.clipboardData.setData&&(!function(e){function t(e,t){return function(){e.apply(t,arguments)}}function n(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(e,t(r,this),t(o,this))}function i(e){var t=this;return null===this._state?void this._deferreds.push(e):void c(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return void(t._state?e.resolve:e.reject)(t._value);var i;try{i=n(t._value)}catch(t){return void e.reject(t)}e.resolve(i)})}function r(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void l(t(n,e),t(r,this),t(o,this))}this._state=!0,this._value=e,a.call(this)}catch(e){o.call(this,e)}}function o(e){this._state=!1,this._value=e,a.call(this)}function a(){for(var e=0,t=this._deferreds.length;t>e;e++)i.call(this,this._deferreds[e]);this._deferreds=null}function s(e,t,n,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=i}function l(e,t,n){var i=!1;try{e(function(e){i||(i=!0,t(e))},function(e){i||(i=!0,n(e))})}catch(e){if(i)return;i=!0,n(e)}}var c=n.immediateFn||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,1)},u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){i.call(r,new s(e,t,n,o))})},n.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&u(arguments[0])?arguments[0]:arguments);return new n(function(t,n){function i(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){i(o,e)},n)}e[o]=a,0===--r&&t(e)}catch(e){n(e)}}if(0===e.length)return t([]);for(var r=e.length,o=0;oi;i++)e[i].then(t,n)})},"undefined"!=typeof module&&module.exports?module.exports=n:e.Promise||(e.Promise=n)}(this),e.copy=function(e){return new Promise(function(t,n){if("string"!=typeof e&&!("text/plain"in e))throw new Error("You must provide a text/plain type.");var i="string"==typeof e?e:e["text/plain"],r=window.clipboardData.setData("Text",i);r?t():n(new Error("Copying was rejected."))})},e.paste=function(){return new Promise(function(e,t){var n=window.clipboardData.getData("Text");n?e(n):t(new Error("Pasting was rejected."))})}),e}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("moment",t):e.moment=t()}(this,function(){"use strict";function e(){return gi.apply(null,arguments)}function t(e){gi=e}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){var t;for(t in e)return!1;return!0}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,i=[];for(n=0;n0)for(n in bi)i=bi[n],r=t[i],g(r)||(e[i]=r);return e}function v(t){m(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),yi===!1&&(yi=!0,e.updateOffset(this),yi=!1)}function b(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=y(t)),n}function w(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function N(e,t){var n=e.toLowerCase();Mi[n]=Mi[n+"s"]=Mi[t]=e}function F(e){return"string"==typeof e?Mi[e]||Mi[e.toLowerCase()]:void 0}function R(e){var t,n,i={};for(n in e)l(e,n)&&(t=F(n),t&&(i[t]=e[n]));return i}function P(e,t){Hi[e]=t}function O(e){var t=[];for(var n in e)t.push({unit:n,priority:Hi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(t,n){return function(i){return null!=i?(j(this,t,i),e.updateOffset(this,n),this):W(this,t)}}function W(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function j(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function Y(e){return e=F(e),T(this[e])?this[e]():this}function $(e,t){if("object"==typeof e){e=R(e);for(var n=O(e),i=0;i=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function q(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Ni[e]=r),t&&(Ni[t[0]]=function(){return U(r.apply(this,arguments),t[1],t[2])}),n&&(Ni[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,i=e.match(zi);for(t=0,n=i.length;t=0&&Ii.test(e);)e=e.replace(Ii,n),Ii.lastIndex=0,i-=1;return e}function Q(e,t,n){Ji[e]=T(t)?t:function(e,i){return e&&n?n:t}}function K(e,t){return l(Ji,e)?Ji[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function te(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),o(t)&&(i=function(e,n){n[t]=x(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ye(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function xe(e,t,n){var i=7+t-n,r=(7+ye(e,0,i).getUTCDay()-t)%7;return-r+i-1}function we(e,t,n,i,r){var o,a,s=(7+n-i)%7,l=xe(e,i,r),c=1+7*(t-1)+s+l;return c<=0?(o=e-1,a=ge(o)+c):c>ge(e)?(o=e+1,a=c-ge(e)):(o=e,a=c),{year:o,dayOfYear:a}}function ke(e,t,n){var i,r,o=xe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(r=e.year()-1,i=a+Se(r,t,n)):a>Se(e.year(),t,n)?(i=a-Se(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Se(e,t,n){var i=xe(e,t,n),r=xe(e+1,t,n);return(ge(e)-i+r)/7}function Ce(e){return ke(e,this._week.dow,this._week.doy).week}function Te(){return this._week.dow}function Ee(){return this._week.doy}function Le(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function _e(e){var t=ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function De(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Me(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function He(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays}function ze(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ie(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ae(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(r=ur.call(this._weekdaysParse,a),r!==-1?r:null):"ddd"===t?(r=ur.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=ur.call(this._minWeekdaysParse,a),r!==-1?r:null):"dddd"===t?(r=ur.call(this._weekdaysParse,a),r!==-1?r:(r=ur.call(this._shortWeekdaysParse,a),r!==-1?r:(r=ur.call(this._minWeekdaysParse,a),r!==-1?r:null))):"ddd"===t?(r=ur.call(this._shortWeekdaysParse,a),r!==-1?r:(r=ur.call(this._weekdaysParse,a),r!==-1?r:(r=ur.call(this._minWeekdaysParse,a),r!==-1?r:null))):(r=ur.call(this._minWeekdaysParse,a),r!==-1?r:(r=ur.call(this._weekdaysParse,a),r!==-1?r:(r=ur.call(this._shortWeekdaysParse,a),r!==-1?r:null)))}function Ne(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Ae.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=u([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=De(e,this.localeData()),this.add(e-t,"d")):t}function Re(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Pe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Me(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Oe(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=wr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Be(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function We(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function je(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=u([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),l.push(o),c.push(i),c.push(r),c.push(o);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=ee(s[t]),l[t]=ee(l[t]),c[t]=ee(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ye(){return this.hours()%12||12}function $e(){return this.hours()||24}function Ue(e,t){q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function qe(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ve(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,i,r,o=0;o0;){if(i=Qe(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&w(r,n,!0)>=t-1)break;t--}o++}return null}function Qe(e){var t=null;if(!_r[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Cr._abbr,require("./locale/"+e),Ke(t)}catch(e){}return _r[e]}function Ke(e,t){var n;return e&&(n=g(t)?tt(e):Je(e,t),n&&(Cr=n)),Cr._abbr}function Je(e,t){if(null!==t){var n=Lr;if(t.abbr=e,null!=_r[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=_r[e]._config;else if(null!=t.parentLocale){if(null==_r[t.parentLocale])return Dr[t.parentLocale]||(Dr[t.parentLocale]=[]),Dr[t.parentLocale].push({name:e,config:t}),null;n=_r[t.parentLocale]._config}return _r[e]=new _(L(n,t)),Dr[e]&&Dr[e].forEach(function(e){Je(e.name,e.config)}),Ke(e),_r[e]}return delete _r[e],null}function et(e,t){if(null!=t){var n,i=Lr;null!=_r[e]&&(i=_r[e]._config),t=L(i,t),n=new _(t),n.parentLocale=_r[e],_r[e]=n,Ke(e)}else null!=_r[e]&&(null!=_r[e].parentLocale?_r[e]=_r[e].parentLocale:null!=_r[e]&&delete _r[e]);return _r[e]}function tt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Cr;if(!n(e)){if(t=Qe(e))return t;e=[e]}return Ze(e)}function nt(){return Si(_r)}function it(e){var t,n=e._a;return n&&h(e).overflow===-2&&(t=n[nr]<0||n[nr]>11?nr:n[ir]<1||n[ir]>re(n[tr],n[nr])?ir:n[rr]<0||n[rr]>24||24===n[rr]&&(0!==n[or]||0!==n[ar]||0!==n[sr])?rr:n[or]<0||n[or]>59?or:n[ar]<0||n[ar]>59?ar:n[sr]<0||n[sr]>999?sr:-1,h(e)._overflowDayOfYear&&(tir)&&(t=ir),h(e)._overflowWeeks&&t===-1&&(t=lr),h(e)._overflowWeekday&&t===-1&&(t=cr),h(e).overflow=t),e}function rt(e){var t,n,i,r,o,a,s=e._i,l=Mr.exec(s)||Hr.exec(s);if(l){for(h(e).iso=!0,t=0,n=Ir.length;tge(r)&&(h(e)._overflowDayOfYear=!0),n=ye(r,0,e._dayOfYear),e._a[nr]=n.getUTCMonth(),e._a[ir]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[rr]&&0===e._a[or]&&0===e._a[ar]&&0===e._a[sr]&&(e._nextDay=!0,e._a[rr]=0),e._d=(e._useUTC?ye:be).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[rr]=24)}}function ct(e){var t,n,i,r,o,a,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=at(t.GG,e._a[tr],ke(bt(),1,4).year),i=at(t.W,1),r=at(t.E,1),(r<1||r>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=ke(bt(),o,a);n=at(t.gg,e._a[tr],c.year),i=at(t.w,c.week),null!=t.d?(r=t.d,(r<0||r>6)&&(l=!0)):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o}i<1||i>Se(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=we(n,i,r,o,a),e._a[tr]=s.year,e._dayOfYear=s.dayOfYear)}function ut(t){if(t._f===e.ISO_8601)return void rt(t);t._a=[],h(t).empty=!0;var n,i,r,o,a,s=""+t._i,l=s.length,c=0;for(r=Z(t._f,t._locale).match(zi)||[],n=0;n0&&h(t).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),c+=i.length),Ni[o]?(i?h(t).empty=!1:h(t).unusedTokens.push(o),ie(o,i,t)):t._strict&&!i&&h(t).unusedTokens.push(o);h(t).charsLeftOver=l-c,s.length>0&&h(t).unusedInput.push(s),t._a[rr]<=12&&h(t).bigHour===!0&&t._a[rr]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[rr]=dt(t._locale,t._a[rr],t._meridiem),lt(t),it(t)}function dt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function ht(e){var t,n,i,r,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ft(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=gt(e),e._a){var t=e._isUTC?u(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Rt(){return!!this.isValid()&&!this._isUTC}function Pt(){return!!this.isValid()&&this._isUTC}function Ot(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Bt(e,t){var n,i,r,a=e,s=null;return St(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(a={},t?a[t]=e:a.milliseconds=e):(s=Br.exec(e))?(n="-"===s[1]?-1:1,a={y:0,d:x(s[ir])*n,h:x(s[rr])*n,m:x(s[or])*n,s:x(s[ar])*n,ms:x(Ct(1e3*s[sr]))*n}):(s=Wr.exec(e))?(n="-"===s[1]?-1:1,a={y:Wt(s[2],n),M:Wt(s[3],n),w:Wt(s[4],n),d:Wt(s[5],n),h:Wt(s[6],n),m:Wt(s[7],n),s:Wt(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Yt(bt(a.from),bt(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),i=new kt(a),St(e)&&l(e,"_locale")&&(i._locale=e._locale),i}function Wt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function jt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Yt(e,t){var n;return e.isValid()&&t.isValid()?(t=Lt(t,e),e.isBefore(t)?n=jt(e,t):(n=jt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function $t(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Bt(n,i),Ut(this,r,e),this}}function Ut(t,n,i,r){var o=n._milliseconds,a=Ct(n._days),s=Ct(n._months);t.isValid()&&(r=null==r||r,o&&t._d.setTime(t._d.valueOf()+o*i),a&&j(t,"Date",W(t,"Date")+a*i),s&&ce(t,W(t,"Month")+s*i),r&&e.updateOffset(t,a||s))}function qt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gt(t,n){var i=t||bt(),r=Lt(i,this).startOf("day"),o=e.calendarFormat(this,r)||"sameElse",a=n&&(T(n[o])?n[o].call(this,i):n[o]);return this.format(a||this.localeData().calendar(o,this,bt(i)))}function Vt(){return new v(this)}function Xt(e,t){var n=b(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(t=F(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()o&&(t=o),zn.call(this,e,t,n,i,r))}function zn(e,t,n,i,r){var o=we(e,t,n,i,r),a=ye(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function In(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function An(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Nn(e,t){t[sr]=x(1e3*("0."+e))}function Fn(){return this._isUTC?"UTC":""}function Rn(){return this._isUTC?"Coordinated Universal Time":""}function Pn(e){return bt(1e3*e)}function On(){return bt.apply(null,arguments).parseZone()}function Bn(e){return e}function Wn(e,t,n,i){var r=tt(),o=u().set(i,t);return r[n](o,e)}function jn(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return Wn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Wn(e,i,n,"month");return r}function Yn(e,t,n,i){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var r=tt(),a=e?r._week.dow:0;if(null!=n)return Wn(t,(n+a)%7,i,"day");var s,l=[];for(s=0;s<7;s++)l[s]=Wn(t,(s+a)%7,i,"day");return l}function $n(e,t){return jn(e,t,"months")}function Un(e,t){return jn(e,t,"monthsShort")}function qn(e,t,n){return Yn(e,t,n,"weekdays")}function Gn(e,t,n){return Yn(e,t,n,"weekdaysShort")}function Vn(e,t,n){return Yn(e,t,n,"weekdaysMin")}function Xn(){var e=this._data;return this._milliseconds=Kr(this._milliseconds),this._days=Kr(this._days),this._months=Kr(this._months),e.milliseconds=Kr(e.milliseconds),e.seconds=Kr(e.seconds),e.minutes=Kr(e.minutes),e.hours=Kr(e.hours),e.months=Kr(e.months),e.years=Kr(e.years),this}function Zn(e,t,n,i){var r=Bt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Qn(e,t){return Zn(this,e,t,1)}function Kn(e,t){return Zn(this,e,t,-1)}function Jn(e){return e<0?Math.floor(e):Math.ceil(e)}function ei(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Jn(ni(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=y(o/1e3),l.seconds=e%60,t=y(e/60),l.minutes=t%60,n=y(t/60),l.hours=n%24,a+=y(n/24),r=y(ti(a)),s+=r,a-=Jn(ni(r)),i=y(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function ti(e){return 4800*e/146097}function ni(e){return 146097*e/4800}function ii(e){var t,n,i=this._milliseconds;if(e=F(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+ti(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ni(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function ri(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12)}function oi(e){return function(){return this.as(e)}}function ai(e){return e=F(e),this[e+"s"]()}function si(e){return function(){return this._data[e]}}function li(){return y(this.days()/7)}function ci(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function ui(e,t,n){var i=Bt(e).abs(),r=go(i.as("s")),o=go(i.as("m")),a=go(i.as("h")),s=go(i.as("d")),l=go(i.as("M")),c=go(i.as("y")),u=r0,u[4]=n,ci.apply(null,u)}function di(e){return void 0===e?go:"function"==typeof e&&(go=e,!0)}function hi(e,t){return void 0!==mo[e]&&(void 0===t?mo[e]:(mo[e]=t,!0))}function fi(e){var t=this.localeData(),n=ui(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function pi(){var e,t,n,i=vo(this._milliseconds)/1e3,r=vo(this._days),o=vo(this._months);e=y(i/60),t=y(e/60),i%=60,e%=60,n=y(o/12),o%=12;var a=n,s=o,l=r,c=t,u=e,d=i,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(c||u||d?"T":"")+(c?c+"H":"")+(u?u+"M":"")+(d?d+"S":""):"P0D"}var gi,mi;mi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i68?1900:2e3)};var mr=B("FullYear",!0);q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),P("week",5),P("isoWeek",5),Q("w",Wi),Q("ww",Wi,Ri),Q("W",Wi),Q("WW",Wi,Ri),ne(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=x(e)});var vr={dow:0,doy:6};q("d",0,"do","day"),q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),P("day",11),P("weekday",11),P("isoWeekday",11),Q("d",Wi),Q("e",Wi),Q("E",Wi),Q("dd",function(e,t){return t.weekdaysMinRegex(e)}),Q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Q("dddd",function(e,t){return t.weekdaysRegex(e)}),ne(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:h(n).invalidWeekday=e}),ne(["d","e","E"],function(e,t,n,i){t[i]=x(e)});var br="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wr=Ki,kr=Ki,Sr=Ki;q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Ye),q("k",["kk",2],0,$e),q("hmm",0,0,function(){return""+Ye.apply(this)+U(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Ye.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),Ue("a",!0),Ue("A",!1),N("hour","h"),P("hour",13),Q("a",qe),Q("A",qe),Q("H",Wi),Q("h",Wi),Q("HH",Wi,Ri),Q("hh",Wi,Ri),Q("hmm",ji),Q("hmmss",Yi),Q("Hmm",ji),Q("Hmmss",Yi),te(["H","HH"],rr),te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),te(["h","hh"],function(e,t,n){t[rr]=x(e),h(n).bigHour=!0}),te("hmm",function(e,t,n){var i=e.length-2;t[rr]=x(e.substr(0,i)),t[or]=x(e.substr(i)),h(n).bigHour=!0}),te("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[rr]=x(e.substr(0,i)),t[or]=x(e.substr(i,2)),t[ar]=x(e.substr(r)),h(n).bigHour=!0}),te("Hmm",function(e,t,n){var i=e.length-2; -t[rr]=x(e.substr(0,i)),t[or]=x(e.substr(i))}),te("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[rr]=x(e.substr(0,i)),t[or]=x(e.substr(i,2)),t[ar]=x(e.substr(r))});var Cr,Tr=/[ap]\.?m?\.?/i,Er=B("Hours",!0),Lr={calendar:Ci,longDateFormat:Ti,invalidDate:Ei,ordinal:Li,ordinalParse:_i,relativeTime:Di,months:hr,monthsShort:fr,week:vr,weekdays:br,weekdaysMin:xr,weekdaysShort:yr,meridiemParse:Tr},_r={},Dr={},Mr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Hr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zr=/Z|[+-]\d\d(?::?\d\d)?/,Ir=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ar=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Nr=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=S("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){};var Fr=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:p()}),Pr=function(){return Date.now?Date.now():+new Date};Tt("Z",":"),Tt("ZZ",""),Q("Z",Zi),Q("ZZ",Zi),te(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Et(Zi,e)});var Or=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Br=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Wr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Bt.fn=kt.prototype;var jr=$t(1,"add"),Yr=$t(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $r=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),En("gggg","weekYear"),En("ggggg","weekYear"),En("GGGG","isoWeekYear"),En("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),P("weekYear",1),P("isoWeekYear",1),Q("G",Vi),Q("g",Vi),Q("GG",Wi,Ri),Q("gg",Wi,Ri),Q("GGGG",Ui,Oi),Q("gggg",Ui,Oi),Q("GGGGG",qi,Bi),Q("ggggg",qi,Bi),ne(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=x(e)}),ne(["gg","GG"],function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)}),q("Q",0,"Qo","quarter"),N("quarter","Q"),P("quarter",7),Q("Q",Fi),te("Q",function(e,t){t[nr]=3*(x(e)-1)}),q("D",["DD",2],"Do","date"),N("date","D"),P("date",9),Q("D",Wi),Q("DD",Wi,Ri),Q("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),te(["D","DD"],ir),te("Do",function(e,t){t[ir]=x(e.match(Wi)[0],10)});var Ur=B("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),P("dayOfYear",4),Q("DDD",$i),Q("DDDD",Pi),te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),q("m",["mm",2],0,"minute"),N("minute","m"),P("minute",14),Q("m",Wi),Q("mm",Wi,Ri),te(["m","mm"],or);var qr=B("Minutes",!1);q("s",["ss",2],0,"second"),N("second","s"),P("second",15),Q("s",Wi),Q("ss",Wi,Ri),te(["s","ss"],ar);var Gr=B("Seconds",!1);q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),P("millisecond",16),Q("S",$i,Fi),Q("SS",$i,Ri),Q("SSS",$i,Pi);var Vr;for(Vr="SSSS";Vr.length<=9;Vr+="S")Q(Vr,Gi);for(Vr="S";Vr.length<=9;Vr+="S")te(Vr,Nn);var Xr=B("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var Zr=v.prototype;Zr.add=jr,Zr.calendar=Gt,Zr.clone=Vt,Zr.diff=tn,Zr.endOf=gn,Zr.format=sn,Zr.from=ln,Zr.fromNow=cn,Zr.to=un,Zr.toNow=dn,Zr.get=Y,Zr.invalidAt=Cn,Zr.isAfter=Xt,Zr.isBefore=Zt,Zr.isBetween=Qt,Zr.isSame=Kt,Zr.isSameOrAfter=Jt,Zr.isSameOrBefore=en,Zr.isValid=kn,Zr.lang=$r,Zr.locale=hn,Zr.localeData=fn,Zr.max=Rr,Zr.min=Fr,Zr.parsingFlags=Sn,Zr.set=$,Zr.startOf=pn,Zr.subtract=Yr,Zr.toArray=yn,Zr.toObject=xn,Zr.toDate=bn,Zr.toISOString=on,Zr.inspect=an,Zr.toJSON=wn,Zr.toString=rn,Zr.unix=vn,Zr.valueOf=mn,Zr.creationData=Tn,Zr.year=mr,Zr.isLeapYear=ve,Zr.weekYear=Ln,Zr.isoWeekYear=_n,Zr.quarter=Zr.quarters=In,Zr.month=ue,Zr.daysInMonth=de,Zr.week=Zr.weeks=Le,Zr.isoWeek=Zr.isoWeeks=_e,Zr.weeksInYear=Mn,Zr.isoWeeksInYear=Dn,Zr.date=Ur,Zr.day=Zr.days=Fe,Zr.weekday=Re,Zr.isoWeekday=Pe,Zr.dayOfYear=An,Zr.hour=Zr.hours=Er,Zr.minute=Zr.minutes=qr,Zr.second=Zr.seconds=Gr,Zr.millisecond=Zr.milliseconds=Xr,Zr.utcOffset=Dt,Zr.utc=Ht,Zr.local=zt,Zr.parseZone=It,Zr.hasAlignedHourOffset=At,Zr.isDST=Nt,Zr.isLocal=Rt,Zr.isUtcOffset=Pt,Zr.isUtc=Ot,Zr.isUTC=Ot,Zr.zoneAbbr=Fn,Zr.zoneName=Rn,Zr.dates=S("dates accessor is deprecated. Use date instead.",Ur),Zr.months=S("months accessor is deprecated. Use month instead",ue),Zr.years=S("years accessor is deprecated. Use year instead",mr),Zr.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mt),Zr.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ft);var Qr=_.prototype;Qr.calendar=D,Qr.longDateFormat=M,Qr.invalidDate=H,Qr.ordinal=z,Qr.preparse=Bn,Qr.postformat=Bn,Qr.relativeTime=I,Qr.pastFuture=A,Qr.set=E,Qr.months=oe,Qr.monthsShort=ae,Qr.monthsParse=le,Qr.monthsRegex=fe,Qr.monthsShortRegex=he,Qr.week=Ce,Qr.firstDayOfYear=Ee,Qr.firstDayOfWeek=Te,Qr.weekdays=He,Qr.weekdaysMin=Ie,Qr.weekdaysShort=ze,Qr.weekdaysParse=Ne,Qr.weekdaysRegex=Oe,Qr.weekdaysShortRegex=Be,Qr.weekdaysMinRegex=We,Qr.isPM=Ge,Qr.meridiem=Ve,Ke("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=S("moment.lang is deprecated. Use moment.locale instead.",Ke),e.langData=S("moment.langData is deprecated. Use moment.localeData instead.",tt);var Kr=Math.abs,Jr=oi("ms"),eo=oi("s"),to=oi("m"),no=oi("h"),io=oi("d"),ro=oi("w"),oo=oi("M"),ao=oi("y"),so=si("milliseconds"),lo=si("seconds"),co=si("minutes"),uo=si("hours"),ho=si("days"),fo=si("months"),po=si("years"),go=Math.round,mo={s:45,m:45,h:22,d:26,M:11},vo=Math.abs,bo=kt.prototype;return bo.abs=Xn,bo.add=Qn,bo.subtract=Kn,bo.as=ii,bo.asMilliseconds=Jr,bo.asSeconds=eo,bo.asMinutes=to,bo.asHours=no,bo.asDays=io,bo.asWeeks=ro,bo.asMonths=oo,bo.asYears=ao,bo.valueOf=ri,bo._bubble=ei,bo.get=ai,bo.milliseconds=so,bo.seconds=lo,bo.minutes=co,bo.hours=uo,bo.days=ho,bo.weeks=li,bo.months=fo,bo.years=po,bo.humanize=fi,bo.toISOString=pi,bo.toString=pi,bo.toJSON=pi,bo.locale=hn,bo.localeData=fn,bo.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pi),bo.lang=$r,q("X",0,0,"unix"),q("x",0,0,"valueOf"),Q("x",Vi),Q("X",Qi),te("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),te("x",function(e,t,n){n._d=new Date(x(e))}),e.version="2.17.1",t(bt),e.fn=Zr,e.min=xt,e.max=wt,e.now=Pr,e.utc=u,e.unix=Pn,e.months=$n,e.isDate=a,e.locale=Ke,e.invalid=p,e.duration=Bt,e.isMoment=b,e.weekdays=qn,e.parseZone=On,e.localeData=tt,e.isDuration=St,e.monthsShort=Un,e.weekdaysMin=Vn,e.defineLocale=Je,e.updateLocale=et,e.locales=nt,e.weekdaysShort=Gn,e.normalizeUnits=F,e.relativeTimeRounding=di,e.relativeTimeThreshold=hi,e.calendarFormat=qt,e.prototype=Zr,e}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("color-hash/dist/color-hash",[],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.ColorHash=e()}}(function(){return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return r(n?n:e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;ar&&(i=parseInt(i/n)),i=i*t+e.charCodeAt(o);return i};t.exports=i},{}],2:[function(e,t,n){var i=e("./bkdr-hash"),r=function(e){var t="#";return e.forEach(function(e){e<16&&(t+=0),t+=e.toString(16)}),t},o=function(e,t,n){e/=360;var i=n<.5?n*(1+t):n+t-n*t,r=2*n-i;return[e+1/3,e,e-1/3].map(function(e){return e<0&&e++,e>1&&e--,e=e<1/6?r+6*(i-r)*e:e<.5?i:e<2/3?r+6*(i-r)*(2/3-e):r,Math.round(255*e)})},a=function(e){e=e||{};var t=[e.lightness,e.saturation].map(function(e){return e=e||[.35,.5,.65],"[object Array]"===Object.prototype.toString.call(e)?e.concat():[e]});this.L=t[0],this.S=t[1],this.hash=e.hash||i};a.prototype.hsl=function(e){var t,n,i,r=this.hash(e);return t=r%359,r=parseInt(r/360),n=this.S[r%this.S.length],r=parseInt(r/this.S.length),i=this.L[r%this.L.length],[t,n,i]},a.prototype.rgb=function(e){var t=this.hsl(e);return o.apply(this,t)},a.prototype.hex=function(e){var t=this.rgb(e);return r(t)},t.exports=a},{"./bkdr-hash":1}]},{},[2])(2)}),define("color-hash",["color-hash/dist/color-hash"],function(e){return e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("push/push.min",[],function(){return new(t(e,e.document))}):"undefined"!=typeof module&&module.exports?module.exports=new(t(e,e.document)):e.Push=new(t(e,e.document))}("undefined"!=typeof window?window:this,function(e,t){var n=function(){var t=this,n=function(e){return void 0===e},i=function(e){return String(e)===e},r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=0,a="PushError: push.js is incompatible with browser.",s=!1,l={},c=function(t){var n=!1,i=l[t];if("undefined"!=typeof i){if(i.close)i.close();else if(i.cancel)i.cancel();else{if(!e.external||!e.external.msIsSiteMode)throw n=!0,new Error("Unable to close notification: unknown interface");e.external.msSiteModeClearIconOverlay()}if(!n)return d(t)}return!1},u=function(e){var t=o;return l[t]=e,o++,t},d=function(e){var t,n={},i=!1;for(t in l)l.hasOwnProperty(t)&&(t!=e?n[t]=l[t]:i=!0);return l=n,i},h=function(o,a){var s,l,h,f;if(a=a||{},t.lastWorkerPath=a.serviceWorker||"sw.js",e.Notification)try{s=new e.Notification(o,{icon:i(a.icon)||n(a.icon)?a.icon:a.icon.x32,body:a.body,tag:a.tag,requireInteraction:a.requireInteraction})}catch(t){e.navigator&&(e.navigator.serviceWorker.register(a.serviceWorker||"sw.js"),e.navigator.serviceWorker.ready.then(function(e){e.showNotification(o,{body:a.body,vibrate:a.vibrate,tag:a.tag,requireInteraction:a.requireInteraction})}))}else if(e.webkitNotifications)s=e.webkitNotifications.createNotification(a.icon,o,a.body),s.show();else if(navigator.mozNotification)s=navigator.mozNotification.createNotification(o,a.body,a.icon),s.show();else{if(!e.external||!e.external.msIsSiteMode())throw new Error("Unable to create notification: unknown interface");e.external.msSiteModeClearIconOverlay(),e.external.msSiteModeSetIconOverlay(i(a.icon)||n(a.icon)?a.icon:a.icon.x16,o),e.external.msSiteModeActivate(),s={}}return h=u(s),l={get:function(){return s},close:function(){c(h)}},a.timeout&&setTimeout(function(){l.close()},a.timeout),r(a.onShow)&&s.addEventListener("show",a.onShow),r(a.onError)&&s.addEventListener("error",a.onError),r(a.onClick)&&s.addEventListener("click",a.onClick),f=function(){d(h),r(a.onClose)&&a.onClose.call(this)},s.addEventListener("close",f),s.addEventListener("cancel",f),l},f={DEFAULT:"default",GRANTED:"granted",DENIED:"denied"},p=[f.GRANTED,f.DEFAULT,f.DENIED];t.Permission=f,t.Permission.request=function(n,i){if(!t.isSupported)throw new Error(a);if(callback=function(e){switch(e){case t.Permission.GRANTED:s=!0,n&&n();break;case t.Permission.DENIED:s=!1,i&&i()}},e.Notification&&e.Notification.requestPermission)Notification.requestPermission(callback);else{if(!e.webkitNotifications||!e.webkitNotifications.checkPermission)throw new Error(a);e.webkitNotifications.requestPermission(callback)}},t.Permission.has=function(){return s},t.Permission.get=function(){var n;if(!t.isSupported)throw new Error(a);if(e.Notification&&e.Notification.permissionLevel)n=e.Notification.permissionLevel;else if(e.webkitNotifications&&e.webkitNotifications.checkPermission)n=p[e.webkitNotifications.checkPermission()];else if(e.Notification&&e.Notification.permission)n=e.Notification.permission;else if(navigator.mozNotification)n=p.GRANTED;else{if(!e.external||void 0===e.external.msIsSiteMode())throw new Error(a);n=e.external.msIsSiteMode()?f.GRANTED:f.DEFAULT}return n},t.isSupported=function(){var t=!1;try{t=!!(e.Notification||e.webkitNotifications||navigator.mozNotification||e.external&&void 0!==e.external.msIsSiteMode())}catch(e){}return t}(),t.create=function(e,n){if(!t.isSupported)throw new Error(a);if(!i(e))throw new Error("PushError: Title of notification must be a string");return t.Permission.has()?new Promise(function(t,i){try{t(h(e,n))}catch(e){i(e)}}):new Promise(function(i,r){t.Permission.request(function(){try{i(h(e,n))}catch(e){r(e)}},function(){r("Permission request declined")})})},t.count=function(){var e,t=0;for(e in l)t++;return t},t.__lastWorkerPath=function(){return t.lastWorkerPath},t.close=function(e){var t;for(t in l)if(notification=l[t],notification.tag===e)return c(t)},t.clear=function(){var e=!0;for(key in l){var t=c(key);e=e&&t}return e}};return n}),define("push",["push/push.min"],function(e){return e}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("clipboard/dist/clipboard.min",[],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Clipboard=e()}}(function(){var e;return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return r(n?n:e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;ai;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var o=0,a=i.length;a>o;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o]);return r.length?n[e]=r:delete n[e],this}},t.exports=i},{}],8:[function(t,n,i){!function(r,o){if("function"==typeof e&&e.amd)e(["module","select"],o);else if("undefined"!=typeof i)o(n,t("select"));else{var a={exports:{}};o(a,r.select),r.clipboardAction=a.exports}}(this,function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(t),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n=h[r]&&r(0===r?9:1)&&(r+=1),d[n](e,r)[agoin].replace("%s",e)}function i(t,n){return n=n?e(n):new Date,(n-e(t))/1e3}function r(e){for(var t=1,n=0,i=Math.abs(e);e>=h[n]&&n1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]},zh_CN:function(e,t){if(0===t)return["刚刚","片刻后"];var n=u[parseInt(t/2)];return[e+n+"前",e+n+"后"]}},h=[60,60,24,7,365/7/12,12],f=6,p="datetime";return s.register=function(e,t){d[e]=t},s}),define("timeago/dist/timeago.min",[],function(){}),define("timeago",["timeago/dist/timeago.min"],function(e){return e}),define("dropzone/dist/dropzone",["require","exports","module"],function(e,t,n){(function(){var e,t,i,r,o,a,s,l,c=[].slice,u={}.hasOwnProperty,d=function(e,t){function n(){this.constructor=e}for(var i in t)u.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};s=function(){},t=function(){function e(){}return e.prototype.addEventListener=e.prototype.on,e.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},e.prototype.emit=function(){var e,t,n,i,r,o;if(i=arguments[0],e=2<=arguments.length?c.call(arguments,1):[],this._callbacks=this._callbacks||{},n=this._callbacks[i])for(r=0,o=n.length;r
    '),this.element.appendChild(t)),i=t.getElementsByTagName("span")[0],i&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,i; -return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),i=t.optWidth/t.optHeight,e.heighti?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*i):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/i),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:s,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:s,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t,i,r,o,a,s,l,c,u,d,h,f,p;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=n.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),o=0,l=d.length;o'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),i=function(t){return function(i){return i.preventDefault(),i.stopPropagation(),e.status===n.UPLOADING?n.confirm(t.options.dictCancelUploadConfirmation,function(){return t.removeFile(e)}):t.options.dictRemoveFileConfirmation?n.confirm(t.options.dictRemoveFileConfirmation,function(){return t.removeFile(e)}):t.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),p=[],s=0,u=f.length;s\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n
    '},i=function(){var e,t,n,i,r,o,a;for(i=arguments[0],n=2<=arguments.length?c.call(arguments,1):[],o=0,a=n.length;o'+this.options.dictDefaultMessage+"
    ")),this.clickableElements.length&&(i=function(e){return function(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null==e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!=e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!=e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.querySelector(e.options.hiddenInputContainer).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var t,n,r,o;if(n=e.hiddenFileInput.files,n.length)for(r=0,o=n.length;r',this.options.dictFallbackText&&(i+="

    "+this.options.dictFallbackText+"

    "),i+='
    ',t=n.createElement(i),"FORM"!==this.element.tagName?(r=n.createElement('
    '),r.appendChild(t)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=r?r:t)},n.prototype.getExistingFallback=function(){var e,t,n,i,r,o;for(t=function(e){var t,n,i;for(n=0,i=e.length;n0){for(a=["TB","GB","MB","KB","b"],n=s=0,l=a.length;s=t){i=e/Math.pow(this.options.filesizeBase,4-n),r=o;break}i=Math.round(10*i)/10}return""+i+" "+r},n.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},n.prototype.drop=function(e){var t,n;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length&&(n=e.dataTransfer.items,n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)))},n.prototype.paste=function(e){var t,n;if(null!=(null!=e&&null!=(n=e.clipboardData)?n.items:void 0))return this.emit("paste",e),t=e.clipboardData.items,t.length?this._addFilesFromItems(t):void 0},n.prototype.handleFiles=function(e){var t,n,i,r;for(r=[],n=0,i=e.length;n0){for(o=0,a=n.length;o1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):n.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)},n.prototype.addFile=function(e){return e.upload={progress:0,total:e.size,bytesSent:0},this.files.push(e),e.status=n.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){return function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}}(this))},n.prototype.enqueueFiles=function(e){var t,n,i;for(n=0,i=e.length;n=t)&&(i=this.getQueuedFiles(),i.length>0)){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-n));for(;e=R;u=0<=R?++H:--H)o.append(this._getParamName(u),e[u],this._renameFilename(e[u].name));return this.submitRequest(k,o,e)},n.prototype.submitRequest=function(e,t,n){return e.send(t)},n.prototype._finished=function(e,t,i){var r,o,a;for(o=0,a=e.length;ou;)t=r[4*(l-1)+3],0===t?o=l:u=l,l=o+u>>1;return c=l/a,0===c?1:c},a=function(e,t,n,i,r,a,s,l,c,u){var d;return d=o(t),e.drawImage(t,n,i,r,a,s,l,c,u/d)},r=function(e,t){var n,i,r,o,a,s,l,c,u;if(r=!1,u=!0,i=e.document,c=i.documentElement,n=i.addEventListener?"addEventListener":"attachEvent",l=i.addEventListener?"removeEventListener":"detachEvent",s=i.addEventListener?"":"on",o=function(n){if("readystatechange"!==n.type||"complete"===i.readyState)return("load"===n.type?e:i)[l](s+n.type,o,!1),!r&&(r=!0)?t.call(e,n.type||n):void 0},a=function(){var e;try{c.doScroll("left")}catch(t){return e=t,void setTimeout(a,50)}return o("poll")},"complete"!==i.readyState){if(i.createEventObject&&c.doScroll){try{u=!e.frameElement}catch(e){}u&&a()}return i[n](s+"DOMContentLoaded",o,!1),i[n](s+"readystatechange",o,!1),e[n](s+"load",o,!1)}},e._autoDiscoverFunction=function(){if(e.autoDiscover)return e.discover()},r(window,e._autoDiscoverFunction)}).call(this)}),define("dropzone",["dropzone/dist/dropzone"],function(e){return e}),define("text!dropzone/dist/basic.css",["module"],function(e){e.exports="/*\n * The MIT License\n * Copyright (c) 2012 Matias Meno \n */\n.dropzone, .dropzone * {\n box-sizing: border-box; }\n\n.dropzone {\n position: relative; }\n .dropzone .dz-preview {\n position: relative;\n display: inline-block;\n width: 120px;\n margin: 0.5em; }\n .dropzone .dz-preview .dz-progress {\n display: block;\n height: 15px;\n border: 1px solid #aaa; }\n .dropzone .dz-preview .dz-progress .dz-upload {\n display: block;\n height: 100%;\n width: 0;\n background: green; }\n .dropzone .dz-preview .dz-error-message {\n color: red;\n display: none; }\n .dropzone .dz-preview.dz-error .dz-error-message, .dropzone .dz-preview.dz-error .dz-error-mark {\n display: block; }\n .dropzone .dz-preview.dz-success .dz-success-mark {\n display: block; }\n .dropzone .dz-preview .dz-error-mark, .dropzone .dz-preview .dz-success-mark {\n position: absolute;\n display: none;\n left: 30px;\n top: 30px;\n width: 54px;\n height: 58px;\n left: 50%;\n margin-left: -27px; }\n"}),!function(e,t,n,i){n.swipebox=function(r,o){var a,s,l={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afterClose:null,afterMedia:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:""},c=this,u=[],d=r.selector,h=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),f=null!==h||t.createTouch!==i||"ontouchstart"in e||"onmsgesturechange"in e||navigator.msMaxTouchPoints,p=!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,g=e.innerWidth?e.innerWidth:n(e).width(),m=e.innerHeight?e.innerHeight:n(e).height(),v=0,b='
    \t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\t
    \t\t\t
    ';c.settings={},n.swipebox.close=function(){a.closeSlide()},n.swipebox.destroy=function(){n(t).off("click.swipebox")},n.swipebox.extend=function(){return a},c.init=function(){c.settings=n.extend({},l,o),n.isArray(r)?(u=r,a.target=n(e),a.init(c.settings.initialIndexOnArray)):n(t).on("click.swipebox",d,function(e){if("slide current"===e.target.parentNode.className)return!1;n.isArray(r)||(a.destroy(),s=n(d),a.actions()),u=[];var t,i,o;o||(i="data-rel",o=n(this).attr(i)),o||(i="rel",o=n(this).attr(i)),s=o&&""!==o&&"nofollow"!==o?n(d).filter("["+i+'="'+o+'"]'):n(d),s.each(function(){var e=null,t=null;n(this).attr("title")&&(e=n(this).attr("title")),n(this).attr("href")&&(t=n(this).attr("href")),u.push({href:t,title:e})}),t=s.index(n(this)),e.preventDefault(),e.stopPropagation(),a.target=n(e.target),a.init(t)})},a={init:function(e){c.settings.beforeOpen&&c.settings.beforeOpen(),this.target.trigger("swipebox-start"), -n.swipebox.isOpen=!0,this.build(),this.openSlide(e),this.openMedia(e),this.preloadMedia(e+1),this.preloadMedia(e-1),c.settings.afterOpen&&c.settings.afterOpen(e)},build:function(){var e,t=this;n("body").append(b),p&&c.settings.useSVG===!0&&(e=n("#swipebox-close").css("background-image"),e=e.replace("png","svg"),n("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":e})),h&&c.settings.removeBarsOnMobile&&n("#swipebox-bottom-bar, #swipebox-top-bar").remove(),n.each(u,function(){n("#swipebox-slider").append('
    ')}),t.setDim(),t.actions(),f&&t.gesture(),t.keyboard(),t.animBars(),t.resize()},setDim:function(){var t,i,r={};"onorientationchange"in e?e.addEventListener("orientationchange",function(){0===e.orientation?(t=g,i=m):90!==e.orientation&&-90!==e.orientation||(t=m,i=g)},!1):(t=e.innerWidth?e.innerWidth:n(e).width(),i=e.innerHeight?e.innerHeight:n(e).height()),r={width:t,height:i},n("#swipebox-overlay").css(r)},resize:function(){var t=this;n(e).resize(function(){t.setDim()}).resize()},supportTransition:function(){var e,n="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(e=0;e=h||l)){var m=.75-Math.abs(i)/b.height();b.css({top:i+"px"}),b.css({opacity:m}),l=!0}r=t,t=p.pageX-f.pageX,a=100*t/g,!c&&!l&&Math.abs(t)>=d&&(n("#swipebox-slider").css({"-webkit-transition":"",transition:""}),c=!0),c&&(t>0?0===e?n("#swipebox-overlay").addClass("leftSpringTouch"):(n("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),n("#swipebox-slider").css({"-webkit-transform":"translate3d("+(v+a)+"%, 0, 0)",transform:"translate3d("+(v+a)+"%, 0, 0)"})):0>t&&(u.length===e+1?n("#swipebox-overlay").addClass("rightSpringTouch"):(n("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),n("#swipebox-slider").css({"-webkit-transform":"translate3d("+(v+a)+"%, 0, 0)",transform:"translate3d("+(v+a)+"%, 0, 0)"}))))}),!1}).bind("touchend",function(e){if(e.preventDefault(),e.stopPropagation(),n("#swipebox-slider").css({"-webkit-transition":"-webkit-transform 0.4s ease",transition:"transform 0.4s ease"}),i=p.pageY-f.pageY,t=p.pageX-f.pageX,a=100*t/g,l)if(l=!1,Math.abs(i)>=2*h&&Math.abs(i)>Math.abs(o)){var u=i>0?b.height():-b.height();b.animate({top:u+"px",opacity:0},300,function(){s.closeSlide()})}else b.animate({top:0,opacity:1},300);else c?(c=!1,t>=d&&t>=r?s.getPrev():-d>=t&&r>=t&&s.getNext()):m.hasClass("visible-bars")?(s.clearTimeout(),s.hideBars()):(s.showBars(),s.setTimeout());n("#swipebox-slider").css({"-webkit-transform":"translate3d("+v+"%, 0, 0)",transform:"translate3d("+v+"%, 0, 0)"}),n("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),n(".touching").off("touchmove").removeClass("touching")})},setTimeout:function(){if(c.settings.hideBarsDelay>0){var t=this;t.clearTimeout(),t.timeout=e.setTimeout(function(){t.hideBars()},c.settings.hideBarsDelay)}},clearTimeout:function(){e.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var e=n("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?e.addClass("visible-bars"):(n("#swipebox-top-bar").animate({top:0},500),n("#swipebox-bottom-bar").animate({bottom:0},500),setTimeout(function(){e.addClass("visible-bars")},1e3))},hideBars:function(){var e=n("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?e.removeClass("visible-bars"):(n("#swipebox-top-bar").animate({top:"-50px"},500),n("#swipebox-bottom-bar").animate({bottom:"-50px"},500),setTimeout(function(){e.removeClass("visible-bars")},1e3))},animBars:function(){var e=this,t=n("#swipebox-top-bar, #swipebox-bottom-bar");t.addClass("visible-bars"),e.setTimeout(),n("#swipebox-slider").click(function(){t.hasClass("visible-bars")||(e.showBars(),e.setTimeout())}),n("#swipebox-bottom-bar").hover(function(){e.showBars(),t.addClass("visible-bars"),e.clearTimeout()},function(){c.settings.hideBarsDelay>0&&(t.removeClass("visible-bars"),e.setTimeout())})},keyboard:function(){var t=this;n(e).bind("keyup",function(e){e.preventDefault(),e.stopPropagation(),37===e.keyCode?t.getPrev():39===e.keyCode?t.getNext():27===e.keyCode&&t.closeSlide()})},actions:function(){var e=this,t="touchend click";u.length<2?(n("#swipebox-bottom-bar").hide(),i===u[1]&&n("#swipebox-top-bar").hide()):(n("#swipebox-prev").bind(t,function(t){t.preventDefault(),t.stopPropagation(),e.getPrev(),e.setTimeout()}),n("#swipebox-next").bind(t,function(t){t.preventDefault(),t.stopPropagation(),e.getNext(),e.setTimeout()})),n("#swipebox-close").bind(t,function(){e.closeSlide()})},setSlide:function(e,t){t=t||!1;var i=n("#swipebox-slider");v=100*-e,this.doCssTrans()?i.css({"-webkit-transform":"translate3d("+100*-e+"%, 0, 0)",transform:"translate3d("+100*-e+"%, 0, 0)"}):i.animate({left:100*-e+"%"}),n("#swipebox-slider .slide").removeClass("current"),n("#swipebox-slider .slide").eq(e).addClass("current"),this.setTitle(e),t&&i.fadeIn(),n("#swipebox-prev, #swipebox-next").removeClass("disabled"),0===e?n("#swipebox-prev").addClass("disabled"):e===u.length-1&&c.settings.loopAtEnd!==!0&&n("#swipebox-next").addClass("disabled")},openSlide:function(t){n("html").addClass("swipebox-html"),f?(n("html").addClass("swipebox-touch"),c.settings.hideCloseButtonOnMobile&&n("html").addClass("swipebox-no-close-button")):n("html").addClass("swipebox-no-touch"),n(e).trigger("resize"),this.setSlide(t,!0)},preloadMedia:function(e){var t=this,n=null;u[e]!==i&&(n=u[e].href),t.isVideo(n)?t.openMedia(e):setTimeout(function(){t.openMedia(e)},1e3)},openMedia:function(e){var t,r,o=this;return u[e]!==i&&(t=u[e].href),!(0>e||e>=u.length)&&(r=n("#swipebox-slider .slide").eq(e),void(o.isVideo(t)?(r.html(o.getVideo(t)),c.settings.afterMedia&&c.settings.afterMedia(e)):(r.addClass("slide-loading"),o.loadMedia(t,function(){r.removeClass("slide-loading"),r.html(this),c.settings.afterMedia&&c.settings.afterMedia(e)}))))},setTitle:function(e){var t=null;n("#swipebox-title").empty(),u[e]!==i&&(t=u[e].title),t?(n("#swipebox-top-bar").show(),n("#swipebox-title").append(t)):n("#swipebox-top-bar").hide()},isVideo:function(e){if(e){if(e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return!0;if(e.toLowerCase().indexOf("swipeboxvideo=1")>=0)return!0}},parseUri:function(e,i){var r=t.createElement("a"),o={};return r.href=decodeURIComponent(e),r.search&&(o=JSON.parse('{"'+r.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}')),n.isPlainObject(i)&&(o=n.extend(o,i,c.settings.queryStringData)),n.map(o,function(e,t){return e&&e>""?encodeURIComponent(t)+"="+encodeURIComponent(e):void 0}).join("&")},getVideo:function(e){var t="",n=e.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),i=e.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),r=e.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),o="";return n||i?(i&&(n=i),o=a.parseUri(e,{autoplay:c.settings.autoplayVideos?"1":"0",v:""}),t=''):r?(o=a.parseUri(e,{autoplay:c.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:c.settings.vimeoColor}),t=''):t='','
    '+t+"
    "},loadMedia:function(e,t){if(0===e.trim().indexOf("#"))t.call(n("
    ",{class:"swipebox-inline-container"}).append(n(e).clone().toggleClass(c.settings.toggleClassOnLoad)));else if(!this.isVideo(e)){var i=n("").on("load",function(){t.call(i)});i.attr("src",e)}},getNext:function(){var e,t=this,i=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));i+10?(e=n("#swipebox-slider .slide").eq(t).contents().find("iframe").attr("src"),n("#swipebox-slider .slide").eq(t).contents().find("iframe").attr("src",e),t--,this.setSlide(t),this.preloadMedia(t-1),c.settings.prevSlide&&c.settings.prevSlide(t)):(n("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){n("#swipebox-overlay").removeClass("leftSpring")},500))},nextSlide:function(e){},prevSlide:function(e){},closeSlide:function(){n("html").removeClass("swipebox-html"),n("html").removeClass("swipebox-touch"),n(e).trigger("resize"),this.destroy()},destroy:function(){n(e).unbind("keyup"),n("body").unbind("touchstart"),n("body").unbind("touchmove"),n("body").unbind("touchend"),n("#swipebox-slider").unbind(),n("#swipebox-overlay").remove(),n.isArray(r)||r.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),n.swipebox.isOpen=!1,c.settings.afterClose&&c.settings.afterClose()}},c.init()},n.fn.swipebox=function(e){if(!n.data(this,"_swipebox")){var t=new n.swipebox(this,e);this.data("_swipebox",t)}return this.data("_swipebox")}}(window,document,jQuery),define("swipebox/src/js/jquery.swipebox.min",["jquery"],function(){}),define("swipebox",["swipebox/src/js/jquery.swipebox.min"],function(e){return e}),define("text!swipebox/src/css/swipebox.min.css",["module"],function(e){e.exports="/*! Swipebox v1.3.0 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */html.swipebox-html.swipebox-touch{overflow:hidden!important}#swipebox-overlay img{border:none!important}#swipebox-overlay{width:100%;height:100%;position:fixed;top:0;left:0;z-index:99999!important;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#swipebox-container{position:relative;width:100%;height:100%}#swipebox-slider{-webkit-transition:-webkit-transform .4s ease;transition:transform .4s ease;height:100%;left:0;top:0;width:100%;white-space:nowrap;position:absolute;display:none;cursor:pointer}#swipebox-slider .slide{height:100%;width:100%;line-height:1px;text-align:center;display:inline-block}#swipebox-slider .slide:before{content:\"\";display:inline-block;height:50%;width:1px;margin-right:-1px}#swipebox-slider .slide .swipebox-inline-container,#swipebox-slider .slide .swipebox-video-container,#swipebox-slider .slide img{display:inline-block;max-height:100%;max-width:100%;margin:0;padding:0;width:auto;height:auto;vertical-align:middle}#swipebox-slider .slide .swipebox-video-container{background:0 0;max-width:1140px;max-height:100%;width:100%;padding:5%;-webkit-box-sizing:border-box;box-sizing:border-box}#swipebox-slider .slide .swipebox-video-container .swipebox-video{width:100%;height:0;padding-bottom:56.25%;overflow:hidden;position:relative}#swipebox-slider .slide .swipebox-video-container .swipebox-video iframe{width:100%!important;height:100%!important;position:absolute;top:0;left:0}#swipebox-slider .slide-loading{background:url(../img/loader.gif) center center no-repeat}#swipebox-bottom-bar,#swipebox-top-bar{-webkit-transition:.5s;transition:.5s;position:absolute;left:0;z-index:999;height:50px;width:100%}#swipebox-bottom-bar{bottom:-50px}#swipebox-bottom-bar.visible-bars{-webkit-transform:translate3d(0,-50px,0);transform:translate3d(0,-50px,0)}#swipebox-top-bar{top:-50px}#swipebox-top-bar.visible-bars{-webkit-transform:translate3d(0,50px,0);transform:translate3d(0,50px,0)}#swipebox-title{display:block;width:100%;text-align:center}#swipebox-close,#swipebox-next,#swipebox-prev{background-image:url(../img/icons.png);background-repeat:no-repeat;border:none!important;text-decoration:none!important;cursor:pointer;width:50px;height:50px;top:0}#swipebox-arrows{display:block;margin:0 auto;width:100%;height:50px}#swipebox-prev{background-position:-32px 13px;float:left}#swipebox-next{background-position:-78px 13px;float:right}#swipebox-close{top:0;right:0;position:absolute;z-index:9999;background-position:15px 12px}.swipebox-no-close-button #swipebox-close{display:none}#swipebox-next.disabled,#swipebox-prev.disabled{opacity:.3}.swipebox-no-touch #swipebox-overlay.rightSpring #swipebox-slider{-webkit-animation:rightSpring .3s;animation:rightSpring .3s}.swipebox-no-touch #swipebox-overlay.leftSpring #swipebox-slider{-webkit-animation:leftSpring .3s;animation:leftSpring .3s}.swipebox-touch #swipebox-container:after,.swipebox-touch #swipebox-container:before{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:all .3s ease;transition:all .3s ease;content:' ';position:absolute;z-index:999;top:0;height:100%;width:20px;opacity:0}.swipebox-touch #swipebox-container:before{left:0;-webkit-box-shadow:inset 10px 0 10px -8px #656565;box-shadow:inset 10px 0 10px -8px #656565}.swipebox-touch #swipebox-container:after{right:0;-webkit-box-shadow:inset -10px 0 10px -8px #656565;box-shadow:inset -10px 0 10px -8px #656565}.swipebox-touch #swipebox-overlay.leftSpringTouch #swipebox-container:before,.swipebox-touch #swipebox-overlay.rightSpringTouch #swipebox-container:after{opacity:1}@-webkit-keyframes rightSpring{0%{left:0}50%{left:-30px}100%{left:0}}@keyframes rightSpring{0%{left:0}50%{left:-30px}100%{left:0}}@-webkit-keyframes leftSpring{0%{left:0}50%{left:30px}100%{left:0}}@keyframes leftSpring{0%{left:0}50%{left:30px}100%{left:0}}@media screen and (min-width:800px){#swipebox-close{right:10px}#swipebox-arrows{width:92%;max-width:800px}}#swipebox-overlay{background:#0d0d0d}#swipebox-bottom-bar,#swipebox-top-bar{text-shadow:1px 1px 1px #000;background:#000;opacity:.95}#swipebox-top-bar{color:#fff!important;font-size:15px;line-height:43px;font-family:Helvetica,Arial,sans-serif}"}),!function(e,t,n,i){"use strict";function r(e){var t=e.currentTarget,i=e.data?e.data.options:{},r=e.data?e.data.items:[],o=n(t).attr("data-fancybox")||"",a=0;e.preventDefault(),e.stopPropagation(),o?(r=r.length?r.filter('[data-fancybox="'+o+'"]'):n('[data-fancybox="'+o+'"]'),a=r.index(t),a<0&&(a=0)):r=[t],n.fancybox.open(r,i,a)}if(n){if(n.fn.fancybox)return void n.error("fancyBox already initialized");var o={loop:!1,margin:[44,0],gutter:50,keyboard:!0,arrows:!0,infobar:!1,toolbar:!0,buttons:["slideShow","fullScreen","thumbs","close"],idleTime:4,smallBtn:"auto",protect:!1,modal:!1,image:{preload:"auto"},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'',preload:!0,css:{},attr:{scrolling:"auto"}},animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'',spinnerTpl:'
    ',errorTpl:'

    {{ERROR}}

    ',btnTpl:{slideShow:'',fullScreen:'',thumbs:'',close:'',smallBtn:''},parentEl:"body",autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0},onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(e,t){return"image"===e.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{clickContent:function(e,t){return"image"===e.type&&"toggleControls"},clickSlide:function(e,t){return"image"===e.type?"toggleControls":"close"},dblclickContent:function(e,t){return"image"===e.type&&"zoom"},dblclickSlide:function(e,t){return"image"===e.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded.
    Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden.
    Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder"}}},a=n(e),s=n(t),l=0,c=function(e){return e&&e.hasOwnProperty&&e instanceof n},u=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}}(),d=function(){var e,n=t.createElement("fakeelement"),r={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in r)if(n.style[e]!==i)return r[e]}(),h=function(e){return e&&e.length&&e[0].offsetHeight},f=function(e,i,r){var a=this;a.opts=n.extend(!0,{index:r},o,i||{}),i&&n.isArray(i.buttons)&&(a.opts.buttons=i.buttons),a.id=a.opts.id||++l,a.group=[],a.currIndex=parseInt(a.opts.index,10)||0,a.prevIndex=null,a.prevPos=null,a.currPos=0,a.firstRun=null,a.createGroup(e),a.group.length&&(a.$lastFocus=n(t.activeElement).blur(),a.slides={},a.init(e))};n.extend(f.prototype,{init:function(){var e,t,i,r=this,o=r.group[r.currIndex].opts;r.scrollTop=s.scrollTop(),r.scrollLeft=s.scrollLeft(),n.fancybox.getInstance()||n.fancybox.isMobile||"hidden"===n("body").css("overflow")||(e=n("body").width(),n("html").addClass("fancybox-enabled"),e=n("body").width()-e,e>1&&n("head").append('")),i="",n.each(o.buttons,function(e,t){i+=o.btnTpl[t]||""}),t=n(r.translate(r,o.baseTpl.replace("{{BUTTONS}}",i))).addClass("fancybox-is-hidden").attr("id","fancybox-container-"+r.id).addClass(o.baseClass).data("FancyBox",r).prependTo(o.parentEl),r.$refs={container:t},["bg","inner","infobar","toolbar","stage","caption"].forEach(function(e){r.$refs[e]=t.find(".fancybox-"+e)}),(!o.arrows||r.group.length<2)&&t.find(".fancybox-navigation").remove(),o.infobar||r.$refs.infobar.remove(),o.toolbar||r.$refs.toolbar.remove(),r.trigger("onInit"),r.activate(),r.jumpTo(r.currIndex)},translate:function(e,t){var n=e.opts.i18n[e.opts.lang];return t.replace(/\{\{(\w+)\}\}/g,function(e,t){var r=n[t];return r===i?e:r})},createGroup:function(e){var t=this,r=n.makeArray(e);n.each(r,function(e,r){var o,a,s,l,c={},u={},d=[];n.isPlainObject(r)?(c=r,u=r.opts||r):"object"===n.type(r)&&n(r).length?(o=n(r),d=o.data(),u="options"in d?d.options:{},u="object"===n.type(u)?u:{},c.src="src"in d?d.src:u.src||o.attr("href"),["width","height","thumb","type","filter"].forEach(function(e){e in d&&(u[e]=d[e])}),"srcset"in d&&(u.image={srcset:d.srcset}),u.$orig=o,c.type||c.src||(c.type="inline",c.src=r)):c={type:"html",src:r+""},c.opts=n.extend(!0,{},t.opts,u),n.fancybox.isMobile&&(c.opts=n.extend(!0,{},c.opts,c.opts.mobile)),a=c.type||c.opts.type,s=c.src||"",!a&&s&&(s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":s.match(/\.(pdf)((\?|#).*)?$/i)?a="pdf":"#"===s.charAt(0)&&(a="inline")),c.type=a,c.index=t.group.length,c.opts.$orig&&!c.opts.$orig.length&&delete c.opts.$orig,!c.opts.$thumb&&c.opts.$orig&&(c.opts.$thumb=c.opts.$orig.find("img:first")),c.opts.$thumb&&!c.opts.$thumb.length&&delete c.opts.$thumb,"function"===n.type(c.opts.caption)?c.opts.caption=c.opts.caption.apply(r,[t,c]):"caption"in d&&(c.opts.caption=d.caption),c.opts.caption=c.opts.caption===i?"":c.opts.caption+"","ajax"===a&&(l=s.split(/\s+/,2),l.length>1&&(c.src=l.shift(),c.opts.filter=l.shift())),"auto"==c.opts.smallBtn&&(n.inArray(a,["html","inline","ajax"])>-1?(c.opts.toolbar=!1,c.opts.smallBtn=!0):c.opts.smallBtn=!1),"pdf"===a&&(c.type="iframe",c.opts.iframe.preload=!1),c.opts.modal&&(c.opts=n.extend(!0,c.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),t.group.push(c)})},addEvents:function(){var i=this;i.removeEvents(),i.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),i.close(e)}).on("click.fb-prev touchend.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),i.previous()}).on("click.fb-next touchend.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),i.next()}),a.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&"resize"===e.originalEvent.type?u(function(){i.update()}):(i.$refs.stage.hide(),setTimeout(function(){i.$refs.stage.show(),i.update()},500))}),s.on("focusin.fb",function(e){var r=n.fancybox?n.fancybox.getInstance():null;r.isClosing||!r.current||!r.current.opts.trapFocus||n(e.target).hasClass("fancybox-container")||n(e.target).is(t)||r&&"fixed"!==n(e.target).css("position")&&!r.$refs.container.has(e.target).length&&(e.stopPropagation(),r.focus(),a.scrollTop(i.scrollTop).scrollLeft(i.scrollLeft))}),s.on("keydown.fb",function(e){var t=i.current,r=e.keyCode||e.which;if(t&&t.opts.keyboard&&!n(e.target).is("input")&&!n(e.target).is("textarea"))return 8===r||27===r?(e.preventDefault(),void i.close(e)):37===r||38===r?(e.preventDefault(),void i.previous()):39===r||40===r?(e.preventDefault(),void i.next()):void i.trigger("afterKeydown",e,r)}),i.group[i.currIndex].opts.idleTime&&(i.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseenter.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(){i.idleSecondsCounter=0,i.isIdle&&i.showControls(),i.isIdle=!1}),i.idleInterval=e.setInterval(function(){i.idleSecondsCounter++,i.idleSecondsCounter>=i.group[i.currIndex].opts.idleTime&&(i.isIdle=!0,i.idleSecondsCounter=0,i.hideControls())},1e3))},removeEvents:function(){var t=this;a.off("orientationchange.fb resize.fb"),s.off("focusin.fb keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),t.idleInterval&&(e.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(e){return this.jumpTo(this.currPos-1,e)},next:function(e){return this.jumpTo(this.currPos+1,e)},jumpTo:function(e,t,r){var o,a,s,l,c,u,d,f=this,p=f.group.length;if(!(f.isSliding||f.isClosing||f.isAnimating&&f.firstRun)){if(e=parseInt(e,10),a=f.current?f.current.opts.loop:f.opts.loop,!a&&(e<0||e>=p))return!1;if(o=f.firstRun=null===f.firstRun,!(p<2&&!o&&f.isSliding)){if(l=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(e),p>1&&((a||s.index>0)&&f.createSlide(e-1),(a||s.indexs.pos?"next":"previous"),l.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),l.isComplete=!1,t&&(s.isMoved||s.opts.transitionEffect)&&(s.isMoved?l.$slide.addClass(d):(d="fancybox-animated "+d+" fancybox-fx-"+s.opts.transitionEffect,n.fancybox.animate(l.$slide,d,t,function(){l.$slide.removeClass(d).removeAttr("style")}))))}}},createSlide:function(e){var t,i,r=this;return i=e%r.group.length,i=i<0?r.group.length+i:i,!r.slides[e]&&r.group[i]&&(t=n('
    ').appendTo(r.$refs.stage),r.slides[e]=n.extend(!0,{},r.group[i],{pos:e,$slide:t,isLoaded:!1}),r.updateSlide(r.slides[e])),r.slides[e]},scaleToActual:function(e,t,r){var o,a,s,l,c,u=this,d=u.current,h=d.$content,f=parseInt(d.$slide.width(),10),p=parseInt(d.$slide.height(),10),g=d.width,m=d.height;"image"!=d.type||d.hasError||!h||u.isAnimating||(n.fancybox.stop(h),u.isAnimating=!0,e=e===i?.5*f:e,t=t===i?.5*p:t,o=n.fancybox.getTranslate(h),l=g/o.width,c=m/o.height,a=.5*f-.5*g,s=.5*p-.5*m,g>f&&(a=o.left*l-(e*l-e),a>0&&(a=0),ap&&(s=o.top*c-(t*c-t),s>0&&(s=0),se.width||i.height>e.height))},isScaledDown:function(){var e=this,t=e.current,i=t.$content,r=!1;return i&&(r=n.fancybox.getTranslate(i),r=r.width1||Math.abs(n.height()-i.height)>1),i},loadSlide:function(e){var t,i,r,o=this;if(!e.isLoading&&!e.isLoaded){switch(e.isLoading=!0,o.trigger("beforeLoad",e),t=e.type,i=e.$slide,i.off("refresh").trigger("onReset").addClass("fancybox-slide--"+(t||"unknown")).addClass(e.opts.slideClass),t){case"image":o.setImage(e);break;case"iframe":o.setIframe(e);break;case"html":o.setContent(e,e.src||e.content);break;case"inline":n(e.src).length?o.setContent(e,n(e.src)):o.setError(e);break;case"ajax":o.showLoading(e),r=n.ajax(n.extend({},e.opts.ajax.settings,{url:e.src,success:function(t,n){"success"===n&&o.setContent(e,t)},error:function(t,n){t&&"abort"!==n&&o.setError(e)}})),i.one("onReset",function(){r.abort()});break;default:o.setError(e)}return!0}},setImage:function(t){var i,r,o,a,s=this,l=t.opts.image.srcset;if(l){o=e.devicePixelRatio||1,a=e.innerWidth*o,r=l.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,n){var i=parseInt(e.substring(0,e.length-1),10);return 0===n?t.url=e:void(i&&(t.value=i,t.postfix=e[e.length-1]))}),t}),r.sort(function(e,t){return e.value-t.value});for(var c=0;c=a||"x"===u.postfix&&u.value>=o){i=u;break}}!i&&r.length&&(i=r[r.length-1]),i&&(t.src=i.url,t.width&&t.height&&"w"==i.postfix&&(t.height=t.width/t.height*i.value,t.width=i.value))}t.$content=n('
    ').addClass("fancybox-is-hidden").appendTo(t.$slide),t.opts.preload!==!1&&t.opts.width&&t.opts.height&&(t.opts.thumb||t.opts.$thumb)?(t.width=t.opts.width,t.height=t.opts.height,t.$ghost=n("").one("error",function(){n(this).remove(),t.$ghost=null,s.setBigImage(t)}).one("load",function(){ -s.afterLoad(t),s.setBigImage(t)}).addClass("fancybox-image").appendTo(t.$content).attr("src",t.opts.thumb||t.opts.$thumb.attr("src"))):s.setBigImage(t)},setBigImage:function(e){var t=this,i=n("");e.$image=i.one("error",function(){t.setError(e)}).one("load",function(){clearTimeout(e.timouts),e.timouts=null,t.isClosing||(e.width=this.naturalWidth,e.height=this.naturalHeight,e.opts.image.srcset&&i.attr("sizes","100vw").attr("srcset",e.opts.image.srcset),t.hideLoading(e),e.$ghost?e.timouts=setTimeout(function(){e.timouts=null,e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))):t.afterLoad(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),i[0].complete?i.trigger("load"):i[0].error?i.trigger("error"):e.timouts=setTimeout(function(){i[0].complete||e.hasError||t.showLoading(e)},100)},setIframe:function(e){var t,r=this,o=e.opts.iframe,a=e.$slide;e.$content=n('
    ').css(o.css).appendTo(a),t=n(o.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(o.attr).appendTo(e.$content),o.preload?(r.showLoading(e),t.on("load.fb error.fb",function(t){this.isReady=1,e.$slide.trigger("refresh"),r.afterLoad(e)}),a.on("refresh.fb",function(){var n,r,a,s,l,c=e.$content;if(1===t[0].isReady){try{n=t.contents(),r=n.find("body")}catch(e){}r&&r.length&&(o.css.width===i||o.css.height===i)&&(a=t[0].contentWindow.document.documentElement.scrollWidth,s=Math.ceil(r.outerWidth(!0)+(c.width()-a)),l=Math.ceil(r.outerHeight(!0)),c.css({width:o.css.width===i?s+(c.outerWidth()-c.innerWidth()):o.css.width,height:o.css.height===i?l+(c.outerHeight()-c.innerHeight()):o.css.height})),c.removeClass("fancybox-is-hidden")}})):this.afterLoad(e),t.attr("src",e.src),e.opts.smallBtn===!0&&e.$content.prepend(r.translate(e,e.opts.btnTpl.smallBtn)),a.one("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank")}catch(e){}n(this).empty(),e.isLoaded=!1})},setContent:function(e,t){var i=this;i.isClosing||(i.hideLoading(e),e.$slide.empty(),c(t)&&t.parent().length?(t.parent(".fancybox-slide--inline").trigger("onReset"),e.$placeholder=n("
    ").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===n.type(t)&&(t=n("
    ").append(n.trim(t)).contents(),3===t[0].nodeType&&(t=n("
    ").html(t))),e.opts.filter&&(t=n("
    ").html(t).find(e.opts.filter))),e.$slide.one("onReset",function(){e.$placeholder&&(e.$placeholder.after(t.hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(n(this).empty(),e.isLoaded=!1)}),e.$content=n(t).appendTo(e.$slide),e.opts.smallBtn&&!e.$smallBtn&&(e.$smallBtn=n(i.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),this.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.removeClass("fancybox-slide--"+e.type),this.setContent(e,this.translate(e,e.opts.errorTpl))},showLoading:function(e){var t=this;e=e||t.current,e&&!e.$spinner&&(e.$spinner=n(t.opts.spinnerTpl).appendTo(e.$slide))},hideLoading:function(e){var t=this;e=e||t.current,e&&e.$spinner&&(e.$spinner.remove(),delete e.$spinner)},afterLoad:function(e){var t=this;t.isClosing||(e.isLoading=!1,e.isLoaded=!0,t.trigger("afterLoad",e),t.hideLoading(e),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",function(e){return 2==e.button&&e.preventDefault(),!0}),"image"===e.type&&n('
    ').appendTo(e.$content)),t.revealContent(e))},revealContent:function(e){var t,r,o,a,s,l=this,c=e.$slide,u=!1;return t=e.opts[l.firstRun?"animationEffect":"transitionEffect"],o=e.opts[l.firstRun?"animationDuration":"transitionDuration"],o=parseInt(e.forcedDuration===i?o:e.forcedDuration,10),!e.isMoved&&e.pos===l.currPos&&o||(t=!1),"zoom"!==t||e.pos===l.currPos&&o&&"image"===e.type&&!e.hasError&&(u=l.getThumbPos(e))||(t="fade"),"zoom"===t?(s=l.getFitPos(e),s.scaleX=Math.round(s.width/u.width*100)/100,s.scaleY=Math.round(s.height/u.height*100)/100,delete s.width,delete s.height,a=e.opts.zoomOpacity,"auto"==a&&(a=Math.abs(e.width/e.height-u.width/u.height)>.1),a&&(u.opacity=.1,s.opacity=1),n.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),u),h(e.$content),void n.fancybox.animate(e.$content,s,o,function(){l.complete()})):(l.updateSlide(e),t?(n.fancybox.stop(c),r="fancybox-animated fancybox-slide--"+(e.pos>l.prevPos?"next":"previous")+" fancybox-fx-"+t,c.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(r),e.$content.removeClass("fancybox-is-hidden"),h(c),void n.fancybox.animate(c,"fancybox-slide--current",o,function(t){c.removeClass(r).removeAttr("style"),e.pos===l.currPos&&l.complete()},!0)):(h(c),e.$content.removeClass("fancybox-is-hidden"),void(e.pos===l.currPos&&l.complete())))},getThumbPos:function(i){var r,o=this,a=!1,s=function(t){for(var i,r=t[0],o=r.getBoundingClientRect(),a=[];null!==r.parentElement;)"hidden"!==n(r.parentElement).css("overflow")&&"auto"!==n(r.parentElement).css("overflow")||a.push(r.parentElement.getBoundingClientRect()),r=r.parentElement;return i=a.every(function(e){var t=Math.min(o.right,e.right)-Math.max(o.left,e.left),n=Math.min(o.bottom,e.bottom)-Math.max(o.top,e.top);return t>0&&n>0}),i&&o.bottom>0&&o.right>0&&o.left=e.currPos-1&&i.pos<=e.currPos+1?r[i.pos]=i:i&&(n.fancybox.stop(i.$slide),i.$slide.unbind().remove())}),e.slides=r,e.updateCursor(),e.trigger("afterShow"),(n(t.activeElement).is("[disabled]")||i.opts.autoFocus&&"image"!=i.type&&"iframe"!==i.type)&&e.focus())},preload:function(){var e,t,n=this;n.group.length<2||(e=n.slides[n.currPos+1],t=n.slides[n.currPos-1],e&&"image"===e.type&&n.loadSlide(e),t&&"image"===t.type&&n.loadSlide(t))},focus:function(){var e,t=this.current;this.isClosing||(e=t&&t.isComplete?t.$slide.find("button,:input,[tabindex],a").filter(":not([disabled]):visible:first"):null,e=e&&e.length?e:this.$refs.container,e.focus())},activate:function(){var e=this;n(".fancybox-container").each(function(){var t=n(this).data("FancyBox");t&&t.uid!==e.uid&&!t.isClosing&&t.trigger("onDeactivate")}),e.current&&(e.$refs.container.index()>0&&e.$refs.container.prependTo(t.body),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(e,t){var i,r,o,a,s,l,c=this,h=c.current,f=function(){c.cleanUp(e)};return!(c.isClosing||(c.isClosing=!0,c.trigger("beforeClose",e)===!1?(c.isClosing=!1,u(function(){c.update()}),1):(c.removeEvents(),h.timouts&&clearTimeout(h.timouts),o=h.$content,i=h.opts.animationEffect,r=n.isNumeric(t)?t:i?h.opts.animationDuration:0,h.$slide.off(d).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),h.$slide.siblings().trigger("onReset").remove(),r&&c.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),c.hideLoading(h),c.hideControls(),c.updateCursor(),"zoom"!==i||e!==!0&&o&&r&&"image"===h.type&&!h.hasError&&(l=c.getThumbPos(h))||(i="fade"),"zoom"===i?(n.fancybox.stop(o),s=n.fancybox.getTranslate(o),s.width=s.width*s.scaleX,s.height=s.height*s.scaleY,a=h.opts.zoomOpacity,"auto"==a&&(a=Math.abs(h.width/h.height-l.width/l.height)>.1),a&&(l.opacity=0),s.scaleX=s.width/l.width,s.scaleY=s.height/l.height,s.width=l.width,s.height=l.height,n.fancybox.setTranslate(h.$content,s),n.fancybox.animate(h.$content,l,r,f),0):(i&&r?e===!0?setTimeout(f,r):n.fancybox.animate(h.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+i,r,f):f(),0))))},cleanUp:function(e){var t,i=this;i.current.$slide.trigger("onReset"),i.$refs.container.empty().remove(),i.trigger("afterClose",e),i.$lastFocus&&!i.current.focusBack&&i.$lastFocus.focus(),i.current=null,t=n.fancybox.getInstance(),t?t.activate():(a.scrollTop(i.scrollTop).scrollLeft(i.scrollLeft),n("html").removeClass("fancybox-enabled"),n("#fancybox-style-noscroll").remove())},trigger:function(e,t){var i,r=Array.prototype.slice.call(arguments,1),o=this,a=t&&t.opts?t:o.current;return a?r.unshift(a):a=o,r.unshift(o),n.isFunction(a.opts[e])&&(i=a.opts[e].apply(a,r)),i===!1?i:void("afterClose"===e?s.trigger(e+".fb",r):o.$refs.container.trigger(e+".fb",r))},updateControls:function(e){var t=this,i=t.current,r=i.index,o=i.opts,a=o.caption,s=t.$refs.caption;i.$slide.trigger("refresh"),t.$caption=a&&a.length?s.html(a):null,t.isHiddenControls||t.showControls(),n("[data-fancybox-count]").html(t.group.length),n("[data-fancybox-index]").html(r+1),n("[data-fancybox-prev]").prop("disabled",!o.loop&&r<=0),n("[data-fancybox-next]").prop("disabled",!o.loop&&r>=t.group.length-1)},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var e=this,t=e.current?e.current.opts:e.opts,n=e.$refs.container;e.isHiddenControls=!1,e.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&e.group.length>1)).toggleClass("fancybox-show-nav",!!(t.arrows&&e.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal),e.$caption?n.addClass("fancybox-show-caption "):n.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.1.20",defaults:o,getInstance:function(e){var t=n('.fancybox-container:not(".fancybox-is-closing"):first').data("FancyBox"),i=Array.prototype.slice.call(arguments,1);return t instanceof f&&("string"===n.type(e)?t[e].apply(t,i):"function"===n.type(e)&&e.apply(t,i),t)},open:function(e,t,n){return new f(e,t,n)},close:function(e){var t=this.getInstance();t&&(t.close(),e===!0&&this.close())},destroy:function(){this.close(!0),s.off("click.fb-start")},isMobile:t.createTouch!==i&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:function(){var n=t.createElement("div");return e.getComputedStyle&&e.getComputedStyle(n).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(e){var t;if(!e||!e.length)return!1;if(t=e.eq(0).css("transform"),t&&t.indexOf("matrix")!==-1?(t=t.split("(")[1],t=t.split(")")[0],t=t.split(",")):t=[],t.length)t=t.length>10?[t[13],t[12],t[0],t[5]]:[t[5],t[4],t[0],t[3]],t=t.map(parseFloat);else{t=[0,0,1,1];var n=/\.*translate\((.*)px,(.*)px\)/i,i=n.exec(e.eq(0).attr("style"));i&&(t[0]=parseFloat(i[2]),t[1]=parseFloat(i[1]))}return{top:t[0],left:t[1],scaleX:t[2],scaleY:t[3],opacity:parseFloat(e.css("opacity")),width:e.width(),height:e.height()}},setTranslate:function(e,t){var n="",r={};if(e&&t)return t.left===i&&t.top===i||(n=(t.left===i?e.position().left:t.left)+"px, "+(t.top===i?e.position().top:t.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),t.scaleX!==i&&t.scaleY!==i&&(n=(n.length?n+" ":"")+"scale("+t.scaleX+", "+t.scaleY+")"),n.length&&(r.transform=n),t.opacity!==i&&(r.opacity=t.opacity),t.width!==i&&(r.width=t.width),t.height!==i&&(r.height=t.height),e.css(r)},animate:function(e,t,r,o,a){var s=d||"transitionend";n.isFunction(r)&&(o=r,r=null),n.isPlainObject(t)||e.removeAttr("style"),e.on(s,function(r){(!r||!r.originalEvent||e.is(r.originalEvent.target)&&"z-index"!=r.originalEvent.propertyName)&&(e.off(s),n.isPlainObject(t)?t.scaleX!==i&&t.scaleY!==i&&(e.css("transition-duration","0ms"),t.width=e.width()*t.scaleX,t.height=e.height()*t.scaleY,t.scaleX=1,t.scaleY=1,n.fancybox.setTranslate(e,t)):a!==!0&&e.removeClass(t),n.isFunction(o)&&o(r))}),n.isNumeric(r)&&e.css("transition-duration",r+"ms"),n.isPlainObject(t)?n.fancybox.setTranslate(e,t):e.addClass(t),e.data("timer",setTimeout(function(){e.trigger("transitionend")},r+16))},stop:function(e){clearTimeout(e.data("timer")),e.off(d)}},n.fn.fancybox=function(e){var t;return e=e||{},t=e.selector||!1,t?n("body").off("click.fb-start",t).on("click.fb-start",t,{items:n(t),options:e},r):this.off("click.fb-start").on("click.fb-start",{items:this,options:e},r),this},s.on("click.fb-start","[data-fancybox]",r)}}(window,document,window.jQuery),function(e){"use strict";var t=function(t,n,i){if(t)return i=i||"","object"===e.type(i)&&(i=e.param(i,!0)),e.each(n,function(e,n){t=t.replace("$"+e,n||"")}),i.length&&(t+=(t.indexOf("?")>0?"&":"?")+i),t},n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-zA-Z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/?ll="+(e[9]?e[9]+"&z="+Math.floor(e[10])+(e[12]?e[12].replace(/^\//,"&"):""):e[12])+"&output="+(e[12]&&e[12].indexOf("layer=c")>0?"svembed":"embed")}}};e(document).on("onInit.fb",function(i,r){e.each(r.group,function(i,r){var o,a,s,l,c,u,d,h=r.src||"",f=!1;r.type||(o=e.extend(!0,{},n,r.opts.media),e.each(o,function(n,i){if(s=h.match(i.matcher),u={},d=n,s){if(f=i.type,i.paramPlace&&s[i.paramPlace]){c=s[i.paramPlace],"?"==c[0]&&(c=c.substring(1)),c=c.split("&");for(var o=0;ot.clientHeight,o=("scroll"===i||"auto"===i)&&t.scrollWidth>t.clientWidth;return r||o},c=function(e){for(var t=!1;!(t=l(e.get(0)))&&(e=e.parent(),e.length&&!e.hasClass("fancybox-stage")&&!e.is("body")););return t},u=function(e){var t=this;t.instance=e,t.$bg=e.$refs.bg,t.$stage=e.$refs.stage,t.$container=e.$refs.container,t.destroy(),t.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(t,"ontouchstart"))};u.prototype.destroy=function(){this.$container.off(".fb.touch")},u.prototype.ontouchstart=function(i){var r=this,l=n(i.target),u=r.instance,d=u.current,h=d.$content,f="touchstart"==i.type;if(f&&r.$container.off("mousedown.fb.touch"),!d||r.instance.isAnimating||r.instance.isClosing)return i.stopPropagation(),void i.preventDefault();if((!i.originalEvent||2!=i.originalEvent.button)&&l.length&&!s(l)&&!s(l.parent())&&!(i.originalEvent.clientX>l[0].clientWidth+l.offset().left)&&(r.startPoints=o(i),r.startPoints&&!(r.startPoints.length>1&&u.isSliding))){if(r.$target=l,r.$content=h,r.canTap=!0,n(t).off(".fb.touch"),n(t).on(f?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(r,"ontouchend")),n(t).on(f?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(r,"ontouchmove")),i.stopPropagation(),!u.current.opts.touch&&!u.canPan()||!l.is(r.$stage)&&!r.$stage.find(l).length)return void(l.is("img")&&i.preventDefault());n.fancybox.isMobile&&(c(r.$target)||c(r.$target.parent()))||i.preventDefault(),r.canvasWidth=Math.round(d.$slide[0].clientWidth),r.canvasHeight=Math.round(d.$slide[0].clientHeight),r.startTime=(new Date).getTime(),r.distanceX=r.distanceY=r.distance=0,r.isPanning=!1,r.isSwiping=!1,r.isZooming=!1,r.sliderStartPos=r.sliderLastPos||{top:0,left:0},r.contentStartPos=n.fancybox.getTranslate(r.$content),r.contentLastPos=null,1!==r.startPoints.length||r.isZooming||(r.canTap=!u.isSliding,"image"===d.type&&(r.contentStartPos.width>r.canvasWidth+1||r.contentStartPos.height>r.canvasHeight+1)?(n.fancybox.stop(r.$content),r.$content.css("transition-duration","0ms"),r.isPanning=!0):r.isSwiping=!0,r.$container.addClass("fancybox-controls--isGrabbing")),2!==r.startPoints.length||u.isAnimating||d.hasError||"image"!==d.type||!d.isLoaded&&!d.$ghost||(r.isZooming=!0,r.isSwiping=!1,r.isPanning=!1,n.fancybox.stop(r.$content),r.$content.css("transition-duration","0ms"),r.centerPointStartX=.5*(r.startPoints[0].x+r.startPoints[1].x)-n(e).scrollLeft(),r.centerPointStartY=.5*(r.startPoints[0].y+r.startPoints[1].y)-n(e).scrollTop(),r.percentageOfImageAtPinchPointX=(r.centerPointStartX-r.contentStartPos.left)/r.contentStartPos.width,r.percentageOfImageAtPinchPointY=(r.centerPointStartY-r.contentStartPos.top)/r.contentStartPos.height,r.startDistanceBetweenFingers=a(r.startPoints[0],r.startPoints[1]))}},u.prototype.ontouchmove=function(e){var t=this;if(t.newPoints=o(e),n.fancybox.isMobile&&(c(t.$target)||c(t.$target.parent())))return e.stopPropagation(),void(t.canTap=!1);if((t.instance.current.opts.touch||t.instance.canPan())&&t.newPoints&&t.newPoints.length&&(t.distanceX=a(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=a(t.newPoints[0],t.startPoints[0],"y"),t.distance=a(t.newPoints[0],t.startPoints[0]),t.distance>0)){if(!t.$target.is(t.$stage)&&!t.$stage.find(t.$target).length)return;e.stopPropagation(),e.preventDefault(),t.isSwiping?t.onSwipe():t.isPanning?t.onPan():t.isZooming&&t.onZoom()}},u.prototype.onSwipe=function(){var t,o=this,a=o.isSwiping,s=o.sliderStartPos.left||0;a===!0?Math.abs(o.distance)>10&&(o.canTap=!1,o.instance.group.length<2&&o.instance.opts.touch.vertical?o.isSwiping="y":o.instance.isSliding||o.instance.opts.touch.vertical===!1||"auto"===o.instance.opts.touch.vertical&&n(e).width()>800?o.isSwiping="x":(t=Math.abs(180*Math.atan2(o.distanceY,o.distanceX)/Math.PI),o.isSwiping=t>45&&t<135?"y":"x"),o.instance.isSliding=o.isSwiping,o.startPoints=o.newPoints,n.each(o.instance.slides,function(e,t){n.fancybox.stop(t.$slide),t.$slide.css("transition-duration","0ms"),t.inTransition=!1,t.pos===o.instance.current.pos&&(o.sliderStartPos.left=n.fancybox.getTranslate(t.$slide).left)}),o.instance.SlideShow&&o.instance.SlideShow.isActive&&o.instance.SlideShow.stop()):("x"==a&&(o.distanceX>0&&(o.instance.group.length<2||0===o.instance.current.index&&!o.instance.current.opts.loop)?s+=Math.pow(o.distanceX,.8):o.distanceX<0&&(o.instance.group.length<2||o.instance.current.index===o.instance.group.length-1&&!o.instance.current.opts.loop)?s-=Math.pow(-o.distanceX,.8):s+=o.distanceX),o.sliderLastPos={top:"x"==a?0:o.sliderStartPos.top+o.distanceY,left:s},o.requestId&&(r(o.requestId),o.requestId=null),o.requestId=i(function(){o.sliderLastPos&&(n.each(o.instance.slides,function(e,t){var i=t.pos-o.instance.currPos;n.fancybox.setTranslate(t.$slide,{top:o.sliderLastPos.top,left:o.sliderLastPos.left+i*o.canvasWidth+i*t.opts.gutter})}),o.$container.addClass("fancybox-is-sliding"))}))},u.prototype.onPan=function(){var e,t,o,a=this;a.canTap=!1,e=a.contentStartPos.width>a.canvasWidth?a.contentStartPos.left+a.distanceX:a.contentStartPos.left,t=a.contentStartPos.top+a.distanceY,o=a.limitMovement(e,t,a.contentStartPos.width,a.contentStartPos.height),o.scaleX=a.contentStartPos.scaleX,o.scaleY=a.contentStartPos.scaleY,a.contentLastPos=o,a.requestId&&(r(a.requestId),a.requestId=null),a.requestId=i(function(){n.fancybox.setTranslate(a.$content,a.contentLastPos)})},u.prototype.limitMovement=function(e,t,n,i){var r,o,a,s,l=this,c=l.canvasWidth,u=l.canvasHeight,d=l.contentStartPos.left,h=l.contentStartPos.top,f=l.distanceX,p=l.distanceY;return r=Math.max(0,.5*c-.5*n),o=Math.max(0,.5*u-.5*i),a=Math.min(c-n,.5*c-.5*n),s=Math.min(u-i,.5*u-.5*i),n>c&&(f>0&&e>r&&(e=r-1+Math.pow(-r+d+f,.8)||0),f<0&&eu&&(p>0&&t>o&&(t=o-1+Math.pow(-o+h+p,.8)||0),p<0&&to?(e=e>0?0:e,e=ea?(t=t>0?0:t,t=t50?(n.fancybox.animate(t.instance.current.$slide,{top:t.sliderStartPos.top+t.distanceY+150*t.velocityY,opacity:0},150),i=t.instance.close(!0,300)):"x"==e&&t.distanceX>50&&t.instance.group.length>1?i=t.instance.previous(t.speedX):"x"==e&&t.distanceX<-50&&t.instance.group.length>1&&(i=t.instance.next(t.speedX)),i!==!1||"x"!=e&&"y"!=e||t.instance.jumpTo(t.instance.current.index,150),t.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var e,t,i,r=this;r.contentLastPos&&(r.instance.current.opts.touch.momentum===!1?(e=r.contentLastPos.left,t=r.contentLastPos.top):(e=r.contentLastPos.left+r.velocityX*r.speed,t=r.contentLastPos.top+r.velocityY*r.speed),i=r.limitPosition(e,t,r.contentStartPos.width,r.contentStartPos.height),i.width=r.contentStartPos.width,i.height=r.contentStartPos.height,n.fancybox.animate(r.$content,i,330))},u.prototype.endZooming=function(){var e,t,i,r,o=this,a=o.instance.current,s=o.newWidth,l=o.newHeight;o.contentLastPos&&(e=o.contentLastPos.left,t=o.contentLastPos.top,r={top:t,left:e,width:s,height:l,scaleX:1,scaleY:1},n.fancybox.setTranslate(o.$content,r),sa.width||l>a.height?o.instance.scaleToActual(o.centerPointStartX,o.centerPointStartY,150):(i=o.limitPosition(e,t,s,l),n.fancybox.setTranslate(o.content,n.fancybox.getTranslate(o.$content)),n.fancybox.animate(o.$content,i,150)))},u.prototype.onTap=function(e){var t,i=this,r=n(e.target),a=i.instance,s=a.current,l=e&&o(e)||i.startPoints,c=l[0]?l[0].x-i.$stage.offset().left:0,u=l[0]?l[0].y-i.$stage.offset().top:0,d=function(t){var r=s.opts[t];if(n.isFunction(r)&&(r=r.apply(a,[s,e])),r)switch(r){case"close":a.close(i.startEvent);break;case"toggleControls":a.toggleControls(!0);break;case"next":a.next();break;case"nextOrClose":a.group.length>1?a.next():a.close(i.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(a.canPan()?a.scaleToFit():a.isScaledDown()?a.scaleToActual(c,u):a.group.length<2&&a.close(i.startEvent))}};if(!(e.originalEvent&&2==e.originalEvent.button||a.isSliding||c>r[0].clientWidth+r.offset().left)){if(r.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))t="Outside";else if(r.is(".fancybox-slide"))t="Slide";else{if(!a.current.$content||!a.current.$content.has(e.target).length)return;t="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(c-i.tapX)>50||Math.abs(u-i.tapY)>50||a.isSliding)return this;d("dblclick"+t)}else i.tapX=c,i.tapY=u,s.opts["dblclick"+t]&&s.opts["dblclick"+t]!==s.opts["click"+t]?i.tapped=setTimeout(function(){i.tapped=null,d("click"+t)},300):d("click"+t);return this}},n(t).on("onActivate.fb",function(e,t){t&&!t.Guestures&&(t.Guestures=new u(t))}),n(t).on("beforeClose.fb",function(e,t){t&&t.Guestures&&t.Guestures.destroy()})}(window,document,window.jQuery),function(e,t){"use strict";var n=function(e){this.instance=e,this.init()};t.extend(n.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var e=this;e.$button=e.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){e.toggle()}),(e.instance.group.length<2||!e.instance.group[e.instance.currIndex].opts.slideShow)&&e.$button.hide()},set:function(){var e=this;e.instance&&e.instance.current&&(e.instance.current.opts.loop||e.instance.currIndex1&&e.instance.group[e.instance.currIndex].opts.thumbs&&("image"==t.type||t.opts.thumb||t.opts.$thumb)&&("image"==n.type||n.opts.thumb||n.opts.$thumb)?(e.$button.on("click",function(){e.toggle()}),e.isActive=!0):(e.$button.hide(),e.isActive=!1)},create:function(){var e,n,i=this.instance;this.$grid=t('
    ').appendTo(i.$refs.container),e="
      ",t.each(i.group,function(t,i){n=i.opts.thumb||(i.opts.$thumb?i.opts.$thumb.attr("src"):null),n||"image"!==i.type||(n=i.src),n&&n.length&&(e+='
    • ')}),e+="
    ",this.$list=t(e).appendTo(this.$grid).on("click","li",function(){i.jumpTo(t(this).data("index"))}),this.$list.find("img").hide().one("load",function(){var e,n,i,r,o=t(this).parent().removeClass("fancybox-thumbs-loading"),a=o.outerWidth(),s=o.outerHeight();e=this.naturalWidth||this.width,n=this.naturalHeight||this.height,i=e/a,r=n/s,i>=1&&r>=1&&(i>r?(e/=r,n=s):(e=a,n/=i)),t(this).css({width:Math.floor(e),height:Math.floor(n),"margin-top":Math.min(0,Math.floor(.3*s-.3*n)), -"margin-left":Math.min(0,Math.floor(.5*a-.5*e))}).show()}).each(function(){this.src=t(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("fancybox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.instance.trigger("onThumbsShow"),this.focus()):this.$grid&&this.instance.trigger("onThumbsHide"),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),t(e).on({"onInit.fb":function(e,t){t&&!t.Thumbs&&(t.Thumbs=new n(t))},"beforeShow.fb":function(e,t,n,i){var r=t&&t.Thumbs;if(r&&r.isActive){if(n.modal)return r.$button.hide(),void r.hide();i&&t.opts.thumbs.autoStart===!0&&r.show(),r.isVisible&&r.focus()}},"afterKeydown.fb":function(e,t,n,i,r){var o=t&&t.Thumbs;o&&o.isActive&&71===r&&(i.preventDefault(),o.toggle())},"beforeClose.fb":function(e,t){var n=t&&t.Thumbs;n&&n.isVisible&&t.opts.thumbs.hideOnClose!==!1&&n.close()}})}(document,window.jQuery),function(e,t,n){"use strict";function i(){var e=t.location.hash.substr(1),n=e.split("-"),i=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,r=n.join("-");return i<1&&(i=1),{hash:e,index:i,gallery:r}}function r(e){var t;""!==e.gallery&&(t=n("[data-fancybox='"+n.escapeSelector(e.gallery)+"']").eq(e.index-1),t.length?t.trigger("click"):n("#"+n.escapeSelector(e.gallery)).trigger("click"))}function o(e){var t;return!!e&&(t=e.current?e.current.opts:e.opts,t.$orig?t.$orig.data("fancybox"):t.hash||"")}n.escapeSelector||(n.escapeSelector=function(e){var t=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,n=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e};return(e+"").replace(t,n)});var a=null,s=null;n(function(){setTimeout(function(){n.fancybox.defaults.hash!==!1&&(n(e).on({"onInit.fb":function(e,t){var n,r;t.group[t.currIndex].opts.hash!==!1&&(n=i(),r=o(t),r&&n.gallery&&r==n.gallery&&(t.currIndex=n.index-1))},"beforeShow.fb":function(n,i,r,l){var c;r.opts.hash!==!1&&(c=o(i),c&&""!==c&&(t.location.hash.indexOf(c)<0&&(i.opts.origHash=t.location.hash),a=c+(i.group.length>1?"-"+(r.index+1):""),"replaceState"in t.history?(s&&clearTimeout(s),s=setTimeout(function(){t.history[l?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+a),s=null},300)):t.location.hash=a))},"beforeClose.fb":function(i,r,l){var c,u;s&&clearTimeout(s),l.opts.hash!==!1&&(c=o(r),u=r&&r.opts.origHash?r.opts.origHash:"",c&&""!==c&&("replaceState"in history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+u):(t.location.hash=u,n(t).scrollTop(r.scrollTop).scrollLeft(r.scrollLeft))),a=null)}}),n(t).on("hashchange.fb",function(){var e=i();n.fancybox.getInstance()?!a||a===e.gallery+"-"+e.index||1===e.index&&a==e.gallery||(a=null,n.fancybox.close()):""!==e.gallery&&r(e)}),n(t).one("unload.fb popstate.fb",function(){n.fancybox.getInstance("close",!0,0)}),r(i()))},50)})}(document,window,window.jQuery),define("fancybox/dist/jquery.fancybox.min",["jquery"],function(){}),define("fancybox",["fancybox/dist/jquery.fancybox.min"],function(e){return e}),define("text!fancybox/dist/jquery.fancybox.min.css",["module"],function(e){e.exports='@charset "UTF-8";.fancybox-enabled{overflow:hidden}.fancybox-enabled body{overflow:visible;height:100%}.fancybox-is-hidden{position:absolute;top:-9999px;left:-9999px;visibility:hidden}.fancybox-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99993;-webkit-tap-highlight-color:transparent;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translateZ(0);transform:translateZ(0)}.fancybox-container~.fancybox-container{z-index:99992}.fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-stage{position:absolute;top:0;right:0;bottom:0;left:0}.fancybox-outer{overflow-y:auto;-webkit-overflow-scrolling:touch}.fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}.fancybox-is-open .fancybox-bg{opacity:.87;transition-timing-function:cubic-bezier(.22,.61,.36,1)}.fancybox-caption-wrap,.fancybox-infobar,.fancybox-toolbar{position:absolute;direction:ltr;z-index:99997;opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s linear .25s;box-sizing:border-box}.fancybox-show-caption .fancybox-caption-wrap,.fancybox-show-infobar .fancybox-infobar,.fancybox-show-toolbar .fancybox-toolbar{opacity:1;visibility:visible;transition:opacity .25s,visibility 0s}.fancybox-infobar{top:0;left:50%;margin-left:-79px}.fancybox-infobar__body{display:inline-block;width:70px;line-height:44px;font-size:13px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;text-align:center;color:#ddd;background-color:rgba(30,30,30,.7);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:subpixel-antialiased}.fancybox-toolbar{top:0;right:0}.fancybox-stage{overflow:hidden;direction:ltr;z-index:99994;-webkit-transform:translateZ(0)}.fancybox-slide{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;overflow:auto;outline:none;white-space:normal;box-sizing:border-box;text-align:center;z-index:99994;-webkit-overflow-scrolling:touch;display:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.fancybox-slide:before{content:"";display:inline-block;vertical-align:middle;height:100%;width:0}.fancybox-is-sliding .fancybox-slide,.fancybox-slide--current,.fancybox-slide--next,.fancybox-slide--previous{display:block}.fancybox-slide--image{overflow:visible}.fancybox-slide--image:before{display:none}.fancybox-slide--video .fancybox-content,.fancybox-slide--video iframe{background:#000}.fancybox-slide--map .fancybox-content,.fancybox-slide--map iframe{background:#e5e3df}.fancybox-slide--next{z-index:99995}.fancybox-slide>*{display:inline-block;position:relative;padding:24px;margin:44px 0;border-width:0;vertical-align:middle;text-align:left;background-color:#fff;overflow:auto;box-sizing:border-box}.fancybox-slide .fancybox-image-wrap{position:absolute;top:0;left:0;margin:0;padding:0;border:0;z-index:99995;background:transparent;cursor:default;overflow:visible;-webkit-transform-origin:top left;transform-origin:top left;background-size:100% 100%;background-repeat:no-repeat;-webkit-backface-visibility:hidden;backface-visibility:hidden}.fancybox-can-zoomOut .fancybox-image-wrap{cursor:zoom-out}.fancybox-can-zoomIn .fancybox-image-wrap{cursor:zoom-in}.fancybox-can-drag .fancybox-image-wrap{cursor:-webkit-grab;cursor:grab}.fancybox-is-dragging .fancybox-image-wrap{cursor:-webkit-grabbing;cursor:grabbing}.fancybox-image,.fancybox-spaceball{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;max-width:none;max-height:none}.fancybox-spaceball{z-index:1}.fancybox-slide--iframe .fancybox-content{padding:0;width:80%;height:80%;max-width:calc(100% - 100px);max-height:calc(100% - 88px);overflow:visible;background:#fff}.fancybox-iframe{display:block;padding:0;border:0;height:100%}.fancybox-error,.fancybox-iframe{margin:0;width:100%;background:#fff}.fancybox-error{padding:40px;max-width:380px;cursor:default}.fancybox-error p{margin:0;padding:0;color:#444;font:16px/20px Helvetica Neue,Helvetica,Arial,sans-serif}.fancybox-close-small{position:absolute;top:0;right:0;width:44px;height:44px;padding:0;margin:0;border:0;border-radius:0;outline:none;background:transparent;z-index:10;cursor:pointer}.fancybox-close-small:after{content:"×";position:absolute;top:5px;right:5px;width:30px;height:30px;font:20px/30px Arial,Helvetica Neue,Helvetica,sans-serif;color:#888;font-weight:300;text-align:center;border-radius:50%;border-width:0;background:#fff;transition:background .25s;box-sizing:border-box;z-index:2}.fancybox-close-small:focus:after{outline:1px dotted #888}.fancybox-close-small:hover:after{color:#555;background:#eee}.fancybox-slide--iframe .fancybox-close-small{top:0;right:-44px}.fancybox-slide--iframe .fancybox-close-small:after{background:transparent;font-size:35px;color:#aaa}.fancybox-slide--iframe .fancybox-close-small:hover:after{color:#fff}.fancybox-caption-wrap{bottom:0;left:0;right:0;padding:60px 30px 0;background:linear-gradient(180deg,transparent 0,rgba(0,0,0,.1) 20%,rgba(0,0,0,.2) 40%,rgba(0,0,0,.6) 80%,rgba(0,0,0,.8));pointer-events:none}.fancybox-caption{padding:30px 0;border-top:1px solid hsla(0,0%,100%,.4);font-size:14px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;color:#fff;line-height:20px;-webkit-text-size-adjust:none}.fancybox-caption a,.fancybox-caption button,.fancybox-caption select{pointer-events:all}.fancybox-caption a{color:#fff;text-decoration:underline}.fancybox-button{display:inline-block;position:relative;margin:0;padding:0;border:0;width:44px;height:44px;line-height:44px;text-align:center;background:transparent;color:#ddd;border-radius:0;cursor:pointer;vertical-align:top;outline:none}.fancybox-button[disabled]{cursor:default;pointer-events:none}.fancybox-button,.fancybox-infobar__body{background:rgba(30,30,30,.6)}.fancybox-button:hover:not([disabled]){color:#fff;background:rgba(0,0,0,.8)}.fancybox-button:after,.fancybox-button:before{content:"";pointer-events:none;position:absolute;background-color:currentColor;color:currentColor;opacity:.9;box-sizing:border-box;display:inline-block}.fancybox-button[disabled]:after,.fancybox-button[disabled]:before{opacity:.3}.fancybox-button--left:after,.fancybox-button--right:after{top:18px;width:6px;height:6px;background:transparent;border-top:2px solid currentColor;border-right:2px solid currentColor}.fancybox-button--left:after{left:20px;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.fancybox-button--right:after{right:20px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.fancybox-button--left{border-bottom-left-radius:5px}.fancybox-button--right{border-bottom-right-radius:5px}.fancybox-button--close:after,.fancybox-button--close:before{content:"";display:inline-block;position:absolute;height:2px;width:16px;top:calc(50% - 1px);left:calc(50% - 8px)}.fancybox-button--close:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.fancybox-button--close:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.fancybox-arrow{position:absolute;top:50%;margin:-50px 0 0;height:100px;width:54px;padding:0;border:0;outline:none;background:none;cursor:pointer;z-index:99995;opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:opacity .25s}.fancybox-arrow:after{content:"";position:absolute;top:28px;width:44px;height:44px;background-color:rgba(30,30,30,.8);background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSI0OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgNGwtMS40MSAxLjQxTDE2LjE3IDExSDR2MmgxMi4xN2wtNS41OCA1LjU5TDEyIDIwbDgtOHoiLz48L3N2Zz4=);background-repeat:no-repeat;background-position:50%;background-size:24px 24px}.fancybox-arrow--right{right:0}.fancybox-arrow--left{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fancybox-arrow--left:after,.fancybox-arrow--right:after{left:0}.fancybox-show-nav .fancybox-arrow{opacity:.6}.fancybox-show-nav .fancybox-arrow[disabled]{opacity:.3}.fancybox-loading{border:6px solid hsla(0,0%,39%,.4);border-top:6px solid hsla(0,0%,100%,.6);border-radius:100%;height:50px;width:50px;-webkit-animation:a .8s infinite linear;animation:a .8s infinite linear;background:transparent;position:absolute;top:50%;left:50%;margin-top:-25px;margin-left:-25px;z-index:99999}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}.fancybox-fx-slide.fancybox-slide--previous{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);opacity:0}.fancybox-fx-slide.fancybox-slide--next{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0}.fancybox-fx-slide.fancybox-slide--current{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.fancybox-fx-fade.fancybox-slide--next,.fancybox-fx-fade.fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}.fancybox-fx-fade.fancybox-slide--current{opacity:1}.fancybox-fx-zoom-in-out.fancybox-slide--previous{-webkit-transform:scale3d(1.5,1.5,1.5);transform:scale3d(1.5,1.5,1.5);opacity:0}.fancybox-fx-zoom-in-out.fancybox-slide--next{-webkit-transform:scale3d(.5,.5,.5);transform:scale3d(.5,.5,.5);opacity:0}.fancybox-fx-zoom-in-out.fancybox-slide--current{-webkit-transform:scaleX(1);transform:scaleX(1);opacity:1}.fancybox-fx-rotate.fancybox-slide--previous{-webkit-transform:rotate(-1turn);transform:rotate(-1turn);opacity:0}.fancybox-fx-rotate.fancybox-slide--next{-webkit-transform:rotate(1turn);transform:rotate(1turn);opacity:0}.fancybox-fx-rotate.fancybox-slide--current{-webkit-transform:rotate(0deg);transform:rotate(0deg);opacity:1}.fancybox-fx-circular.fancybox-slide--previous{-webkit-transform:scale3d(0,0,0) translate3d(-100%,0,0);transform:scale3d(0,0,0) translate3d(-100%,0,0);opacity:0}.fancybox-fx-circular.fancybox-slide--next{-webkit-transform:scale3d(0,0,0) translate3d(100%,0,0);transform:scale3d(0,0,0) translate3d(100%,0,0);opacity:0}.fancybox-fx-circular.fancybox-slide--current{-webkit-transform:scaleX(1) translateZ(0);transform:scaleX(1) translateZ(0);opacity:1}.fancybox-fx-tube.fancybox-slide--previous{-webkit-transform:translate3d(-100%,0,0) scale(.1) skew(-10deg);transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}.fancybox-fx-tube.fancybox-slide--next{-webkit-transform:translate3d(100%,0,0) scale(.1) skew(10deg);transform:translate3d(100%,0,0) scale(.1) skew(10deg)}.fancybox-fx-tube.fancybox-slide--current{-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}@media (max-width:800px){.fancybox-infobar{left:0;margin-left:0}.fancybox-button--left,.fancybox-button--right{display:none!important}.fancybox-caption{padding:20px 0;margin:0}}.fancybox-button--fullscreen:before{width:15px;height:11px;left:calc(50% - 7px);top:calc(50% - 6px);border:2px solid;background:none}.fancybox-button--pause:before,.fancybox-button--play:before{top:calc(50% - 6px);left:calc(50% - 4px);background:transparent}.fancybox-button--play:before{width:0;height:0;border-top:6px inset transparent;border-bottom:6px inset transparent;border-left:10px solid;border-radius:1px}.fancybox-button--pause:before{width:7px;height:11px;border-style:solid;border-width:0 2px}.fancybox-button--thumbs,.fancybox-thumbs{display:none}@media (min-width:800px){.fancybox-button--thumbs{display:inline-block}.fancybox-button--thumbs span{font-size:23px}.fancybox-button--thumbs:before{width:3px;height:3px;top:calc(50% - 2px);left:calc(50% - 2px);box-shadow:0 -4px 0,-4px -4px 0,4px -4px 0,inset 0 0 0 32px,-4px 0 0,4px 0 0,0 4px 0,-4px 4px 0,4px 4px 0}.fancybox-thumbs{position:absolute;top:0;right:0;bottom:0;left:auto;width:220px;margin:0;padding:5px 5px 0 0;background:#fff;word-break:normal;-webkit-tap-highlight-color:transparent;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;box-sizing:border-box;z-index:99995}.fancybox-show-thumbs .fancybox-thumbs{display:block}.fancybox-show-thumbs .fancybox-inner{right:220px}.fancybox-thumbs>ul{list-style:none;position:absolute;position:relative;width:100%;height:100%;margin:0;padding:0;overflow-x:hidden;overflow-y:auto;font-size:0}.fancybox-thumbs>ul>li{float:left;overflow:hidden;max-width:50%;padding:0;margin:0;width:105px;height:75px;position:relative;cursor:pointer;outline:none;border:5px solid transparent;border-top-width:0;border-right-width:0;-webkit-tap-highlight-color:transparent;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box}li.fancybox-thumbs-loading{background:rgba(0,0,0,.1)}.fancybox-thumbs>ul>li>img{position:absolute;top:0;left:0;min-width:100%;min-height:100%;max-width:none;max-height:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fancybox-thumbs>ul>li:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px;border:4px solid #4ea7f9;z-index:99991;opacity:0;transition:all .2s cubic-bezier(.25,.46,.45,.94)}.fancybox-thumbs>ul>li.fancybox-thumbs-active:before{opacity:1}}'}),!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("simplemde/dist/simplemde.min",[],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).SimpleMDE=e()}(function(){return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return r(n||e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-i(e)}function o(e){var t,n,r,o,a,s,l=e.length;a=i(e),s=new d(3*l/4-a),r=a>0?l-4:l;var c=0;for(t=0,n=0;t>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===a?(o=u[e.charCodeAt(t)]<<2|u[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===a&&(o=u[e.charCodeAt(t)]<<10|u[e.charCodeAt(t+1)]<<4|u[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s}function a(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function s(e,t,n){for(var i,r=[],o=t;ol?l:a+16383));return 1===i?(t=e[n-1],r+=c[t>>2],r+=c[t<<4&63],r+="=="):2===i&&(t=(e[n-2]<<8)+e[n-1],r+=c[t>>10],r+=c[t>>4&63],r+=c[t<<2&63],r+="="),o.push(r),o.join("")}n.byteLength=r,n.toByteArray=o,n.fromByteArray=l;for(var c=[],u=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,p=h.length;fX)throw new RangeError("Invalid typed array length");var t=new Uint8Array(e);return t.__proto__=r.prototype,t}function r(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(e)}return o(e,t,n)}function o(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return e instanceof ArrayBuffer?d(e,t,n):"string"==typeof e?c(e,t):h(e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function s(e,t,n){return a(e),e<=0?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}function l(e){return a(e),i(e<0?0:0|f(e))}function c(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!r.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var n=0|g(e,t),o=i(n),a=o.write(e,t);return a!==n&&(o=o.slice(0,a)),o}function u(e){for(var t=e.length<0?0:0|f(e.length),n=i(t),r=0;r=X)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+X.toString(16)+" bytes");return 0|e}function p(e){return+e!=e&&(e=0),r.alloc(+e)}function g(e,t){if(r.isBuffer(e))return e.length;if(U(e)||e instanceof ArrayBuffer)return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return B(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return H(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function v(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function b(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,q(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=r.from(t,i)),r.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}var c;if(r){var u=-1;for(c=n;cs&&(n=s-l),c=n;c>=0;c--){for(var d=!0,h=0;hr&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,c,u,d;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(l=e[r+1]))&&(d=(31&o)<<6|63&l)>127&&(a=d);break;case 3:l=e[r+1],c=e[r+2],128==(192&l)&&128==(192&c)&&(d=(15&o)<<12|(63&l)<<6|63&c)>2047&&(d<55296||d>57343)&&(a=d);break;case 4:l=e[r+1],c=e[r+2],u=e[r+3],128==(192&l)&&128==(192&c)&&128==(192&u)&&(d=(15&o)<<18|(63&l)<<12|(63&c)<<6|63&u)>65535&&d<1114112&&(a=d)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return _(i)}function _(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var n="",i=0;ii)&&(n=i);for(var r="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,i,o,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function N(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,i,r){return t=+t,n>>>=0,r||N(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),V.write(e,t,n,i,23,4),n+4}function R(e,t,n,i,r){return t=+t,n>>>=0,r||N(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),V.write(e,t,n,i,52,8),n+8}function P(e){if((e=e.trim().replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function O(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){t=t||1/0;for(var n,i=e.length,r=null,o=[],a=0;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){for(var t=[],n=0;n>8,r=n%256,o.push(r),o.push(i);return o}function Y(e){return G.toByteArray(P(e))}function $(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function U(e){return"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(e)}function q(e){return e!==e}var G=e("base64-js"),V=e("ieee754");n.Buffer=r,n.SlowBuffer=p,n.INSPECT_MAX_BYTES=50;var X=2147483647;n.kMaxLength=X,r.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),r.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=function(e,t,n){return o(e,t,n)},r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,r.alloc=function(e,t,n){return s(e,t,n)},r.allocUnsafe=function(e){return l(e)},r.allocUnsafeSlow=function(e){return l(e)},r.isBuffer=function(e){return null!=e&&!0===e._isBuffer},r.compare=function(e,t){if(!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,a=Math.min(n,i);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},r.prototype.compare=function(e,t,n,i,o){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,s=n-t,l=Math.min(a,s),c=this.slice(i,o),u=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;r.prototype.slice=function(e,t){var n=this.length; -e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||I(e,t,this.length);for(var i=this[e],r=1,o=0;++o>>=0,t>>>=0,n||I(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},r.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var i=this[e],r=1,o=0;++o=r&&(i-=Math.pow(2,8*t)),i},r.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},r.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),V.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),V.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),V.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),V.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,n,i){e=+e,t>>>=0,n>>>=0,i||A(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,i||A(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},r.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,255,0),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},r.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);A(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},r.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);A(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},r.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},r.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},r.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},r.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},r.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(o<1e3)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,i=/[*+-]\s/;e.commands.newlineAndIndentContinueMarkdownList=function(r){if(r.getOption("disableInput"))return e.Pass;for(var o=r.listSelections(),a=[],s=0;s\s*$/.test(h)||r.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),a[s]="\n";else{var p=f[1],g=f[5],m=i.test(f[2])||f[2].indexOf(">")>=0?f[2].replace("x"," "):parseInt(f[3],10)+1+f[4];a[s]="\n"+p+m+g}}r.replaceSelections(a)}})},{"../../lib/codemirror":10}],8:[function(e,t,n){!function(i){i("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)}(function(e){"use strict";e.overlayMode=function(t,n,i){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:e.copyState(t,i.base),overlay:e.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(e,r){return(e!=r.streamSeen||Math.min(r.basePos,r.overlayPos)=n.line,f=h?n:l(d,0),p=e.markText(u,f,{className:o});if(null==i?r.push(p):r.splice(i++,0,p),h)break;a=d}}function r(e){for(var t=e.state.markedSelection,n=0;n1)return o(e);var t=e.getCursor("start"),n=e.getCursor("end"),a=e.state.markedSelection;if(!a.length)return i(e,t,n);var l=a[0].find(),u=a[a.length-1].find();if(!l||!u||n.line-t.line=0||c(n,l.from)<=0)return o(e);for(;c(t,l.from)>0;)a.shift().clear(),l=a[0].find();for(c(t,l.from)<0&&(l.to.line-t.line0&&(n.line-u.from.line0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function i(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}function h(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);if(r+=o-i,r+=n-r%n,i=o+1,r>=t)return i}}function p(e){for(;za.length<=e;)za.push(g(za)+" ");return za[e]}function g(e){return e[e.length-1]}function m(e,t){for(var n=[],i=0;i"€"&&(e.toUpperCase()!=e.toLowerCase()||Ia.test(e))}function w(e,t){return t?!!(t.source.indexOf("\\w")>-1&&x(e))||t.test(e):x(e)}function k(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function S(e){return e.charCodeAt(0)>=768&&Aa.test(e)}function C(e,t,n){for(;(n<0?t>0:t=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn?N(n,L(e,n).text.length):Y(t,L(e,t.line).text.length)}function Y(e,t){var n=e.ch;return null==n||n>t?N(e.line,t):n<0?N(e.line,0):e}function $(e,t){for(var n=[],i=0;i=t:o.to>t);(i||(i=[])).push(new G(a,o.from,s?null:o.to))}}return i}function K(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var x=0;x0)){var u=[l,1],d=F(c.from,s.from),f=F(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}function ne(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?F(c.to,n)>=0:F(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?F(c.from,i)<=0:F(c.from,i)<0)))return!0}}}function de(e){for(var t;t=le(e);)e=t.find(-1,!0).line;return e}function he(e){for(var t;t=ce(e);)e=t.find(1,!0).line;return e}function fe(e){for(var t,n;t=ce(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function pe(e,t){var n=L(e,t),i=de(n);return n==i?t:H(i)}function ge(e,t){if(t>e.lastLine())return t;var n,i=L(e,t);if(!me(e,i))return t;for(;n=ce(i);)i=n.find(1,!0).line;return H(i)+1}function me(e,t){var n=Fa&&t.markedSpans;if(n)for(var i=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function we(e,t,n,i){if(!e)return i(t,n,"ltr");for(var r=!1,o=0;ot||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),r=!0)}r||i(t,n,"ltr")}function ke(e,t,n){var i;Ra=null;for(var r=0;rt)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:Ra=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:Ra=r)}return null!=i?i:Ra}function Se(e,t){var n=e.order;return null==n&&(n=e.order=Pa(e.text,t)),n}function Ce(e,t,n){var i=C(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Te(e,t,n){var i=Ce(e,t.ch,n);return null==i?null:new N(t.line,i,n<0?"after":"before")}function Ee(e,t,n,i,r){if(e){var o=Se(n,t.doc.direction);if(o){var a,s=r<0?g(o):o[0],l=r<0==(1==s.level)?"after":"before";if(s.level>0){var c=Zt(t,n);a=r<0?n.text.length-1:0;var u=Qt(t,c,a).top;a=T(function(e){return Qt(t,c,e).top==u},r<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ce(n,a,1))}else a=r<0?s.to:s.from;return new N(i,a,l)}}return new N(i,r<0?n.text.length:0,r<0?"before":"after")}function Le(e,t,n,i){var r=Se(t,e.doc.direction);if(!r)return Te(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ke(r,n.ch,n.sticky),a=r[o];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from=a.from&&h>=u.begin)){var f=d?"before":"after";return new N(n.line,h,f)}}var p=function(e,t,i){for(var o=function(e,t){return t?new N(n.line,l(e,1),"before"):new N(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?i.begin:l(i.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==m||i>0&&m==t.text.length||!(g=p(i>0?0:r.length-1,i,c(m)))?null:g}function _e(e,t){return e._handlers&&e._handlers[t]||Oa}function De(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var i=e._handlers,r=i&&i[t];if(r){var o=h(r,n);o>-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function Me(e,t){var n=_e(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function Ae(e){e.prototype.on=function(e,t){Ba(this,e,t)},e.prototype.off=function(e,t){De(this,e,t)}}function Ne(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Fe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Re(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Pe(e){Ne(e),Fe(e)}function Oe(e){return e.target||e.srcElement}function Be(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),ga&&e.ctrlKey&&1==t&&(t=3),t}function We(e){if(null==Ta){var t=i("span","​");n(e,i("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ta=t.offsetWidth<=1&&t.offsetHeight>2&&!(ia&&ra<8))}var r=Ta?i("span","​"):i("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function je(e){if(null!=Ea)return Ea;var i=n(e,document.createTextNode("AخA")),r=ya(i,0,1).getBoundingClientRect(),o=ya(i,1,2).getBoundingClientRect();return t(e),!(!r||r.left==r.right)&&(Ea=o.right-r.right<3)}function Ye(e){if(null!=Ua)return Ua;var t=n(e,i("span","x")),r=t.getBoundingClientRect(),o=ya(t,0,1).getBoundingClientRect();return Ua=Math.abs(r.left-o.left)>1}function $e(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qa[e]=t}function Ue(e,t){Ga[e]=t}function qe(e){if("string"==typeof e&&Ga.hasOwnProperty(e))e=Ga[e];else if(e&&"string"==typeof e.name&&Ga.hasOwnProperty(e.name)){var t=Ga[e.name];"string"==typeof t&&(t={name:t}),(e=y(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=qe(t);var n=qa[t.name];if(!n)return Ge(e,"text/plain");var i=n(e,t);if(Va.hasOwnProperty(t.name)){var r=Va[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}function Ve(e,t){u(t,Va.hasOwnProperty(e)?Va[e]:Va[e]={})}function Xe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Ze(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Qe(e,t,n){return!e.startState||e.startState(t,n)}function Ke(e,t,n,i){var r=[e.state.modeGen],o={};at(e,t.text,e.doc.mode,n,function(e,t){return r.push(e,t)},o,i);for(var a=0;ae&&r.splice(a,1,e,r[a+1],o),a+=2,s=Math.min(e,o)}if(t)if(i.opaque)r.splice(n,a-n,e,"overlay "+t),a=n+2;else for(;ne.options.maxHighlightLength?Xe(e.doc.mode,i):i);t.stateAfter=i,t.styles=r.styles,r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function et(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return!0;var o=st(e,t,n),a=o>i.first&&L(i,o-1).stateAfter;return a=a?Xe(i.mode,a):Qe(i.mode),i.iter(o,t,function(n){tt(e,n.text,a);var s=o==t-1||o%5==0||o>=r.viewFrom&&ot.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function rt(e,t,n,i){var r,o=function(e){return{start:d.start,end:d.pos,string:d.current(),type:r||null,state:e?Xe(a.mode,u):u}},a=e.doc,s=a.mode;t=j(a,t);var l,c=L(a,t.line),u=et(e,t.line,n),d=new Xa(c.text,e.options.tabSize);for(i&&(l=[]);(i||d.pose.options.maxHighlightLength?(s=!1,a&&tt(e,t,i,d.pos),d.pos=t.length,l=null):l=ot(it(n,d,i,h),o),h){var f=h[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;ca;--s){if(s<=o.first)return o.first;var l=L(o,s-1);if(l.stateAfter&&(!n||s<=o.frontier))return s;var c=d(l.text,null,e.options.tabSize);(null==r||i>c)&&(r=s-1,i=c)}return r}function lt(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),ne(e),ie(e,n);var r=i?i(e):1;r!=e.height&&M(e,r)}function ct(e){e.parent=null,ne(e)}function ut(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Ja:Ka;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function dt(e,t){var n=r("span",null,null,oa?"padding-right: .1px":null),i={pre:r("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(ia||oa)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a=o?t.rest[o-1]:t.line,s=void 0;i.pos=0,i.addToken=ft,je(e.display.measure)&&(s=Se(a,e.doc.direction))&&(i.addToken=gt(i.addToken,s)),i.map=[],vt(a,i,Je(e,a,t!=e.display.externalMeasured&&H(a))),a.styleClasses&&(a.styleClasses.bgClass&&(i.bgClass=l(a.styleClasses.bgClass,i.bgClass||"")),a.styleClasses.textClass&&(i.textClass=l(a.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(We(e.display.measure))),0==o?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(oa){var c=i.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Me(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=l(i.pre.className,i.textClass||"")),i}function ht(e){var t=i("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ft(e,t,n,r,o,a,s){if(t){var l,c=e.splitSpaces?pt(t,e.trailingSpace):t,u=e.cm.state.specialChars,d=!1;if(u.test(t)){l=document.createDocumentFragment();for(var h=0;;){u.lastIndex=h;var f=u.exec(t),g=f?f.index-h:t.length-h;if(g){var m=document.createTextNode(c.slice(h,h+g));ia&&ra<9?l.appendChild(i("span",[m])):l.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!f)break;h+=g+1;var v=void 0;if("\t"==f[0]){var b=e.cm.options.tabSize,y=b-e.col%b;(v=l.appendChild(i("span",p(y),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=y}else"\r"==f[0]||"\n"==f[0]?((v=l.appendChild(i("span","\r"==f[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),ia&&ra<9?l.appendChild(i("span",[v])):l.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,l=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,l),ia&&ra<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||o||d||s){var x=n||"";r&&(x+=r),o&&(x+=o);var w=i("span",[l],x,s);return a&&(w.title=a),e.content.appendChild(w)}e.content.appendChild(l)}}function pt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;rc&&d.from<=c);h++);if(d.to>=u)return e(n,i,r,o,a,s,l);e(n,i.slice(0,d.to-c),r,o,null,s,l),o=null,i=i.slice(d.to-c),c=d.to}}}function mt(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function vt(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,s,l,c,u,d,h,f=r.length,p=0,g=1,m="",v=0;;){if(v==p){l=c=u=d=s="",h=null,v=1/0;for(var b=[],y=void 0,x=0;xp||k.collapsed&&w.to==p&&w.from==p)?(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,c=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==p&&(u+=" "+k.startStyle),k.endStyle&&w.to==v&&(y||(y=[])).push(k.endStyle,w.to),k.title&&!d&&(d=k.title),k.collapsed&&(!h||ae(h.marker,k)<0)&&(h=w)):w.from>p&&v>w.from&&(v=w.from)}if(y)for(var S=0;S=f)break;for(var T=Math.min(f,v);;){if(m){var E=p+m.length;if(!h){var L=E>T?m.slice(0,T-p):m;t.addToken(t,L,a?a+l:l,u,p+L.length==v?c:"",d,s)}if(E>=T){m=m.slice(T-p),p=T;break}p=E,u=""}m=r.slice(o,o=n[g++]),a=ut(n[g++],t.cm.options)}}else for(var _=1;_2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function qt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Gt(e,t){var i=H(t=de(t)),r=e.display.externalMeasured=new bt(e.doc,t,i);r.lineN=i;var o=r.built=dt(e,r);return r.text=o.pre,n(e.display.lineMeasure,o.pre),r}function Vt(e,t,n,i){return Qt(e,Zt(e,t),n,i)}function Xt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(r=(o=l-s)-1,t>=l&&(a="right")),null!=r){if(i=e[c+2],s==l&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)i=e[2+(c-=3)],a="left";if("right"==n&&r==l-s)for(;c=0&&(n=e[r]).left==n.right;r--);return n}function en(e,t,n,i){var r,o=Kt(t.map,n,i),a=o.node,s=o.start,l=o.end,c=o.collapse;if(3==a.nodeType){for(var u=0;u<4;u++){for(;s&&S(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+l0&&(c=i="right");var d;r=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==i?d.length-1:0]:a.getBoundingClientRect()}if(ia&&ra<9&&!s&&(!r||!r.left&&!r.right)){var h=a.parentNode.getClientRects()[0];r=h?{left:h.left,right:h.left+yn(e.display),top:h.top,bottom:h.bottom}:ns}for(var f=r.top-t.rect.top,p=r.bottom-t.rect.top,g=(f+p)/2,m=t.view.measure.heights,v=0;v=i.text.length?(c=i.text.length,u="before"):c<=0&&(c=0,u="after"),!l)return a("before"==u?c-1:c,"before"==u);var d=ke(l,c,u),h=Ra,f=s(c,d,"before"==u);return null!=h&&(f.other=s(c,h,"before"!=u)),f}function hn(e,t){var n=0;t=j(e.doc,t),e.options.lineWrapping||(n=yn(e.display)*t.ch);var i=L(e.doc,t.line),r=be(i)+Ot(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function fn(e,t,n,i,r){var o=N(e,t,n);return o.xRel=r,i&&(o.outside=!0),o}function pn(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return fn(i.first,0,null,!0,-1);var r=z(i,n),o=i.first+i.size-1;if(r>o)return fn(i.first+i.size-1,L(i,o).text.length,null,!0,1);t<0&&(t=0);for(var a=L(i,r);;){var s=vn(e,a,r,t,n),l=ce(a),c=l&&l.find(0,!0);if(!l||!(s.ch>c.from.ch||s.ch==c.from.ch&&s.xRel>0))return s;r=H(a=c.to.line)}}function gn(e,t,n,i){var r=function(i){return ln(e,t,Qt(e,n,i),"line")},o=t.text.length,a=T(function(e){return r(e-1).bottom<=i},o,0);return o=T(function(e){return r(e).top>i},a,o),{begin:a,end:o}}function mn(e,t,n,i){return gn(e,t,n,ln(e,t,Qt(e,n,i),"line").top)}function vn(e,t,n,i,r){r-=be(t);var o,a=0,s=t.text.length,l=Zt(e,t);if(Se(t,e.doc.direction)){if(e.options.lineWrapping){var c;a=(c=gn(e,t,l,r)).begin,s=c.end}o=new N(n,a);var u,d,h=dn(e,o,"line",t,l).left,f=hMath.abs(u)){if(p<0==u<0)throw new Error("Broke out of infinite loop in coordsCharInner");o=d}}else{var g=T(function(n){var o=ln(e,t,Qt(e,l,n),"line");return o.top>r?(s=Math.min(n,s),!0):!(o.bottom<=r)&&(o.left>i||!(o.rightm.right?1:0,o}function bn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Qa){Qa=i("pre");for(var r=0;r<49;++r)Qa.appendChild(document.createTextNode("x")),Qa.appendChild(i("br"));Qa.appendChild(document.createTextNode("x"))}n(e.measure,Qa);var o=Qa.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function yn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=i("span","xxxxxxxxxx"),r=i("pre",[t]);n(e.measure,r);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function xn(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+r,i[e.options.gutters[a]]=o.clientWidth;return{fixedPos:wn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function wn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function kn(e){var t=bn(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/yn(e.display)-3);return function(r){if(me(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;i=e.display.viewTo||s.to().line3&&(r(f,g.top,null,g.bottom),f=u,g.bottoml.bottom||c.bottom==l.bottom&&c.right>l.right)&&(l=c),f0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Hn(e){e.state.focused||(e.display.input.focus(),In(e))}function zn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,An(e))},100)}function In(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Me(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),oa&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Mn(e))}function An(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Me(e,"blur",e,t),e.state.focused=!1,ka(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Nn(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=0;i.001||l<-.001)&&(M(r.line,o),Fn(r.line),r.rest))for(var c=0;c=a&&(o=z(t,be(L(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Pn(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=wn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;a(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!da){var a=i("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Ot(e.display))+"px;\n height: "+(t.bottom-t.top+jt(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function Wn(e,t,n,i){null==i&&(i=0);for(var r,o=0;o<5;o++){var a=!1,s=dn(e,t),l=n&&n!=t?dn(e,n):s,c=Yn(e,r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(Zn(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Kn(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return r}function jn(e,t){var n=Yn(e,t);null!=n.scrollTop&&Zn(e,n.scrollTop),null!=n.scrollLeft&&Kn(e,n.scrollLeft)}function Yn(e,t){var n=e.display,i=bn(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=$t(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Bt(n),l=t.tops-i;if(t.topr+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=r&&(a.scrollTop=u)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,h=Yt(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),f=t.right-t.left>h;return f&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.lefth+d-3&&(a.scrollLeft=t.right+(f?0:10)-h),a}function $n(e,t){null!=t&&(Vn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Un(e){Vn(e);var t=e.getCursor(),n=t,i=t;e.options.lineWrapping||(n=t.ch?N(t.line,t.ch-1):t,i=N(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:i,margin:e.options.cursorScrollMargin}}function qn(e,t,n){null==t&&null==n||Vn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Gn(e,t){Vn(e),e.curOp.scrollToPos=t}function Vn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Xn(e,hn(e,t.from),hn(e,t.to),t.margin))}function Xn(e,t,n,i){var r=Yn(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});qn(e,r.scrollLeft,r.scrollTop)}function Zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(Jo||_i(e,{top:t}),Qn(e,t,!0),Jo&&_i(e),wi(e,100))}function Qn(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Kn(e,t,n,i){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,Pn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Jn(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+Bt(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+jt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function ei(e,t){t||(t=Jn(e));var n=e.display.barWidth,i=e.display.barHeight;ti(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&Nn(e),ti(e,Jn(e)),n=e.display.barWidth,i=e.display.barHeight}function ti(e,t){var n=e.display,i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function ni(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ka(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new os[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ba(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Kn(e,t):Zn(e,t); -},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function ii(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++as},xt(e.curOp)}function ri(e){kt(e.curOp,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ss(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function si(e){e.updatedDisplay=e.mustUpdate&&Ei(e.cm,e.update)}function li(e){var t=e.cm,n=t.display;e.updatedDisplay&&Nn(t),e.barMeasure=Jn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Vt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+jt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Yt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function ci(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Fa&&pe(e.doc,t)r.viewFrom?vi(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)vi(e);else if(t<=r.viewFrom){var o=bi(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):vi(e)}else if(n>=r.viewTo){var a=bi(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):vi(e)}else{var s=bi(e,t,t,-1),l=bi(e,n,n+i,1);s&&l?(r.view=r.view.slice(0,s.index).concat(yt(e,s.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):vi(e)}var c=r.externalMeasured;c&&(n=r.lineN&&t=i.viewTo)){var o=i.view[Tn(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==h(a,n)&&a.push(n)}}}function vi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function bi(e,t,n,i){var r,o=Tn(e,t),a=e.display.view;if(!Fa||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;r=s+a[o].size-t,o++}else r=s-t;t+=r,n+=r}for(;pe(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function yi(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=yt(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=yt(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,Tn(e,n)))),i.viewTo=n}function xi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo)){var n=+new Date+e.options.workTime,i=Xe(t.mode,et(e,t.frontier)),r=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(t.frontier>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength,l=Ke(e,o,s?Xe(t.mode,i):i,!0);o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&hn)return wi(e,e.options.workDelay),!0}),r.length&&di(e,function(){for(var t=0;t=i.viewFrom&&n.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==xi(e))return!1;On(e)&&(vi(e),n.dims=xn(e));var o=r.first+r.size,a=Math.max(n.visible.from-e.options.viewportMargin,r.first),s=Math.min(o,n.visible.to+e.options.viewportMargin);i.viewFroms&&i.viewTo-s<20&&(s=Math.min(o,i.viewTo)),Fa&&(a=pe(e.doc,a),s=ge(e.doc,s));var l=a!=i.viewFrom||s!=i.viewTo||i.lastWrapHeight!=n.wrapperHeight||i.lastWrapWidth!=n.wrapperWidth;yi(e,a,s),i.viewOffset=be(L(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var c=xi(e);if(!l&&0==c&&!n.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))return!1;var u=Ci(e);return c>4&&(i.lineDiv.style.display="none"),Di(e,i.updateLineNumbers,n.dims),c>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,Ti(u),t(i.cursorDiv),t(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,l&&(i.lastWrapHeight=n.wrapperHeight,i.lastWrapWidth=n.wrapperWidth,wi(e,400)),i.updateLineNumbers=null,!0}function Li(e,t){for(var n=t.viewport,i=!0;(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Yt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Bt(e.display)-$t(e),n.top)}),t.visible=Rn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Ei(e,t);i=!1){Nn(e);var r=Jn(e);En(e),ei(e,r),Hi(e,r)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function _i(e,t){var n=new ss(e,t);if(Ei(e,n)){Nn(e),Li(e,n);var i=Jn(e);En(e),ei(e,i),Hi(e,i),n.finish()}}function Di(e,n,i){function r(t){var n=t.nextSibling;return oa&&ga&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,s=o.lineDiv,l=s.firstChild,c=o.view,u=o.viewFrom,d=0;d-1&&(p=!1),Tt(e,f,u,i)),p&&(t(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(A(e.options,u)))),l=f.node.nextSibling}else{var g=It(e,f,u,i);s.insertBefore(g,l)}u+=f.size}for(;l;)l=r(l)}function Mi(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Hi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jt(e)+"px"}function zi(e){var n=e.display.gutters,r=e.options.gutters;t(n);for(var o=0;o-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Ai(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Ni(e){var t=Ai(e);return t.x*=cs,t.y*=cs,t}function Fi(e,t){var n=Ai(t),i=n.x,r=n.y,o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,l=a.scrollHeight>a.clientHeight;if(i&&s||r&&l){if(r&&ga&&oa)e:for(var c=t.target,u=o.view;c!=a;c=c.parentNode)for(var d=0;d=0){var a=B(o.from(),r.from()),s=O(o.to(),r.to()),l=o.empty()?r.from()==r.head:o.from()==o.head;i<=t&&--t,e.splice(--i,2,new ds(l?s:a,l?a:s))}}return new us(e,t)}function Pi(e,t){return new us([new ds(e,t||e)],0)}function Oi(e){return e.text?N(e.from.line+e.text.length-1,g(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Bi(e,t){if(F(e,t.from)<0)return e;if(F(e,t.to)<=0)return Oi(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=Oi(t).ch-t.to.ch),N(n,i)}function Wi(e,t){for(var n=[],i=0;i1&&e.remove(s.line+1,p-1),e.insert(s.line+1,b)}St(e,"change",e,t)}function Vi(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),g(e.done)):void 0}function nr(e,t,n,i){var r=e.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&r.lastModTime>s-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=tr(r,r.lastOp==i)))a=g(o.changes),0==F(t.from,t.to)&&0==F(t.from,a.to)?a.to=Oi(t):o.changes.push(Ji(e,t));else{var l=g(r.done);for(l&&l.ranges||or(e.sel,r.done),o={changes:[Ji(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||Me(e,"historyAdded")}function ir(e,t,n,i){var r=t.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function rr(e,t,n,i){var r=e.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||ir(e,o,g(r.done),t))?r.done[r.done.length-1]=t:or(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&er(r.undone)}function or(e,t){var n=g(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ar(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function sr(e){if(!e)return null;for(var t,n=0;n-1&&(g(s)[d]=c[d],delete c[d])}}}return i}function dr(e,t,n,i){if(e.cm&&e.cm.display.shift||e.extend){var r=t.anchor;if(i){var o=F(n,r)<0;o!=F(i,r)<0?(r=n,n=i):o!=F(n,i)<0&&(n=i)}return new ds(r,n)}return new ds(i||n,n)}function hr(e,t,n,i){br(e,new us([dr(e,e.sel.primary(),t,n)],0),i)}function fr(e,t,n){for(var i=[],r=0;r=t.ch:s.to>t.ch))){if(r&&(Me(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var c=l.find(i<0?1:-1),u=void 0;if((i<0?l.inclusiveRight:l.inclusiveLeft)&&(c=Tr(e,c,-i,c&&c.line==t.line?o:null)),c&&c.line==t.line&&(u=F(c,n))&&(i<0?u<0:u>0))return Sr(e,c,t,i,r)}var d=l.find(i<0?-1:1);return(i<0?l.inclusiveLeft:l.inclusiveRight)&&(d=Tr(e,d,i,d.line==t.line?o:null)),d?Sr(e,d,t,i,r):null}}return t}function Cr(e,t,n,i,r){var o=i||1,a=Sr(e,t,n,o,r)||!r&&Sr(e,t,n,o,!0)||Sr(e,t,n,-o,r)||!r&&Sr(e,t,n,-o,!0);return a||(e.cantEdit=!0,N(e.first,0))}function Tr(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?j(e,N(t.line-1)):null:n>0&&t.ch==(i||L(e,t.line)).text.length?t.line=0;--r)Dr(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text});else Dr(e,t)}}function Dr(e,t){if(1!=t.text.length||""!=t.text[0]||0!=F(t.from,t.to)){var n=Wi(e,t);nr(e,t,n,e.cm?e.cm.curOp.id:NaN),zr(e,t,n,J(e,t));var i=[];Vi(e,function(e,n){n||-1!=h(i,e.history)||(Rr(e.history,t),i.push(e.history)),zr(e,t,null,J(e,t))})}}function Mr(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var i,r=e.history,o=e.sel,a="undo"==t?r.done:r.undone,s="undo"==t?r.undone:r.done,l=0;l=0;--d){var f=function(n){var r=i.changes[n];if(r.origin=t,u&&!Lr(e,r,!1))return a.length=0,{};c.push(Ji(e,r));var o=n?Wi(e,r):g(a);zr(e,r,o,cr(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Oi(r)});var s=[];Vi(e,function(e,t){t||-1!=h(s,e.history)||(Rr(e.history,r),s.push(e.history)),zr(e,r,null,cr(e,r))})}(d);if(f)return f.v}}}}function Hr(e,t){if(0!=t&&(e.first+=t,e.sel=new us(m(e.sel.ranges,function(e){return new ds(N(e.anchor.line+t,e.anchor.ch),N(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){gi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.lineo&&(t={from:t.from,to:N(o,L(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=_(e,t.from,t.to),n||(n=Wi(e,t)),e.cm?Ir(e.cm,t,i):Gi(e,t,i),yr(e,n,Da)}}function Ir(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=H(de(L(i,o.line))),i.iter(l,a.line+1,function(e){if(e==r.maxLine)return s=!0,!0})),i.sel.contains(t.from,t.to)>-1&&ze(e),Gi(i,t,n,kn(e)),e.options.lineWrapping||(i.iter(l,o.line+t.text.length,function(e){var t=ye(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),i.frontier=Math.min(i.frontier,o.line),wi(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?gi(e):o.line!=a.line||1!=t.text.length||qi(e.doc,t)?gi(e,o.line,a.line+1,c):mi(e,o.line,"text");var u=Ie(e,"changes"),d=Ie(e,"change");if(d||u){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&St(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function Ar(e,t,n,i,r){if(i||(i=n),F(i,n)<0){var o=i;i=n,n=o}"string"==typeof t&&(t=e.splitLines(t)),_r(e,{from:n,to:i,text:t,origin:r})}function Nr(e,t,n,i){n0||0==s&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=r("span",[a.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ue(e,t.line,t,n,a)||t.line!=n.line&&ue(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");q()}a.addToHistory&&nr(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,c=t.line,d=e.cm;if(e.iter(c,n.line+1,function(e){d&&a.collapsed&&!d.options.lineWrapping&&de(e)==d.display.maxLine&&(l=!0),a.collapsed&&c!=t.line&&M(e,0),Z(e,new G(a,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c}),a.collapsed&&e.iter(t.line,n.line+1,function(t){me(e,t)&&M(t,0)}),a.clearOnEnter&&Ba(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(U(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++gs,a.atomic=!0),d){if(l&&(d.curOp.updateMaxLine=!0),a.collapsed)gi(d,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var h=t.line;h<=n.line;h++)mi(d,h,"text");a.atomic&&wr(d.doc),St(d,"markerAdded",d,a)}return a}function jr(e,t,n,i,r){(i=u(i)).shared=!1;var o=[Wr(e,t,n,i,r)],a=o[0],s=i.widgetNode;return Vi(e,function(e){s&&(i.widgetNode=s.cloneNode(!0)),o.push(Wr(e,j(e,t),j(e,n),i,r));for(var l=0;l-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var l=e.dataTransfer.getData("Text");if(l){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),yr(t.doc,Pi(n,n)),c)for(var u=0;u=0;t--)Ar(e.doc,"",i[t].from,i[t].to,"+delete"); -Un(e)})}function so(e,t){var n=L(e.doc,t),i=de(n);return i!=n&&(t=H(i)),Ee(!0,e,i,t,1)}function lo(e,t){var n=L(e.doc,t),i=he(n);return i!=n&&(t=H(i)),Ee(!0,e,n,t,-1)}function co(e,t){var n=so(e,t.line),i=L(e.doc,n.line),r=Se(i,e.doc.direction);if(!r||0==r[0].level){var o=Math.max(0,i.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return N(n.line,a?0:o,n.sticky)}return n}function uo(e,t,n){if("string"==typeof t&&!(t=Ds[t]))return!1;e.display.input.ensurePolled();var i=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),r=t(e)!=_a}finally{e.display.shift=i,e.state.suppressEdits=!1}return r}function ho(e,t,n){for(var i=0;ir-400&&0==F(_s.pos,n)?i="triple":Ls&&Ls.time>r-400&&0==F(Ls.pos,n)?(i="double",_s={time:r,pos:n}):(i="single",Ls={time:r,pos:n});var o,s=e.doc.sel,l=ga?t.metaKey:t.ctrlKey;e.options.dragDrop&&Wa&&!e.isReadOnly()&&"single"==i&&(o=s.contains(n))>-1&&(F((o=s.ranges[o]).from(),n)<0||n.xRel>0)&&(F(o.to(),n)>0||n.xRel<0)?ko(e,t,n,l):So(e,t,n,i,l)}function ko(e,t,n,i){var r=e.display,o=!1,a=hi(e,function(t){oa&&(r.scroller.draggable=!1),e.state.draggingText=!1,De(document,"mouseup",a),De(document,"mousemove",s),De(r.scroller,"dragstart",l),De(r.scroller,"drop",a),o||(Ne(t),i||hr(e.doc,n),oa||ia&&9==ra?setTimeout(function(){document.body.focus(),r.input.focus()},20):r.input.focus())}),s=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},l=function(){return o=!0};oa&&(r.scroller.draggable=!0),e.state.draggingText=a,a.copy=ga?t.altKey:t.ctrlKey,r.scroller.dragDrop&&r.scroller.dragDrop(),Ba(document,"mouseup",a),Ba(document,"mousemove",s),Ba(r.scroller,"dragstart",l),Ba(r.scroller,"drop",a),zn(e),setTimeout(function(){return r.input.focus()},20)}function So(e,t,n,i,r){function o(t){if(0!=F(y,t))if(y=t,"rect"==i){for(var r=[],o=e.options.tabSize,a=d(L(u,n.line).text,n.ch,o),s=d(L(u,t.line).text,t.ch,o),l=Math.min(a,s),c=Math.max(a,s),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var b=L(u,m).text,x=f(b,l,o);l==c?r.push(new ds(N(m,x),N(m,x))):b.length>x&&r.push(new ds(N(m,x),N(m,f(b,c,o))))}r.length||r.push(new ds(n,n)),br(u,Ri(g.ranges.slice(0,p).concat(r),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var w=h,k=w.anchor,S=t;if("single"!=i){var C;F((C="double"==i?e.findWordAt(t):new ds(N(t.line,0),j(u,N(t.line+1,0)))).anchor,k)>0?(S=C.head,k=B(w.from(),C.anchor)):(S=C.anchor,k=O(w.to(),C.head))}var T=g.ranges.slice(0);T[p]=new ds(j(u,k),S),br(u,Ri(T,p),Ma)}}function s(t){var n=++w,r=Cn(e,t,!0,"rect"==i);if(r)if(0!=F(r,y)){e.curOp.focus=a(),o(r);var l=Rn(c,u);(r.line>=l.to||r.linex.bottom?20:0;d&&setTimeout(hi(e,function(){w==n&&(c.scroller.scrollTop+=d,s(t))}),50)}}function l(t){e.state.selectingText=!1,w=1/0,Ne(t),c.input.focus(),De(document,"mousemove",k),De(document,"mouseup",S),u.history.lastSelOrigin=null}var c=e.display,u=e.doc;Ne(t);var h,p,g=u.sel,m=g.ranges;if(r&&!t.shiftKey?(p=u.sel.contains(n),h=p>-1?m[p]:new ds(n,n)):(h=u.sel.primary(),p=u.sel.primIndex),ma?t.shiftKey&&t.metaKey:t.altKey)i="rect",r||(h=new ds(n,n)),n=Cn(e,t,!0,!0),p=-1;else if("double"==i){var v=e.findWordAt(n);h=e.display.shift||u.extend?dr(u,h,v.anchor,v.head):v}else if("triple"==i){var b=new ds(N(n.line,0),j(u,N(n.line+1,0)));h=e.display.shift||u.extend?dr(u,h,b.anchor,b.head):b}else h=dr(u,h,n);r?-1==p?(p=m.length,br(u,Ri(m.concat([h]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&"single"==i&&!t.shiftKey?(br(u,Ri(m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=u.sel):pr(u,p,h,Ma):(p=0,br(u,new us([h],0),Ma),g=u.sel);var y=n,x=c.wrapper.getBoundingClientRect(),w=0,k=hi(e,function(e){Be(e)?s(e):l(e)}),S=hi(e,l);e.state.selectingText=S,Ba(document,"mousemove",k),Ba(document,"mouseup",S)}function Co(e,t,n,i){var r,o;try{r=t.clientX,o=t.clientY}catch(e){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Ne(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ie(e,n))return Re(t);o-=s.top-a.viewOffset;for(var l=0;l=r)return Me(e,n,e,z(e.doc,o),e.options.gutters[l],t),Re(t)}}function To(e,t){return Co(e,t,"gutterClick",!0)}function Eo(e,t){Pt(e.display,t)||Lo(e,t)||He(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Lo(e,t){return!!Ie(e,"gutterContextMenu")&&Co(e,t,"gutterContextMenu",!1)}function _o(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),on(e)}function Do(e){zi(e),gi(e),Pn(e)}function Mo(e,t,n){if(!t!=!(n&&n!=zs)){var i=e.display.dragFunctions,r=t?Ba:De;r(e.display.scroller,"dragstart",i.start),r(e.display.scroller,"dragenter",i.enter),r(e.display.scroller,"dragover",i.over),r(e.display.scroller,"dragleave",i.leave),r(e.display.scroller,"drop",i.drop)}}function Ho(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ka(e.display.wrapper,"CodeMirror-wrap"),xe(e)),Sn(e),gi(e),on(e),setTimeout(function(){return ei(e)},100)}function zo(e,t){var n=this;if(!(this instanceof zo))return new zo(e,t);this.options=t=t?u(t):{},u(Is,t,!1),Ii(t);var i=t.value;"string"==typeof i&&(i=new ys(i,t.mode,null,t.lineSeparator,t.direction)),this.doc=i;var r=new zo.inputStyles[t.inputStyle](this),o=this.display=new E(e,i,r);o.wrapper.CodeMirror=this,zi(this),_o(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ni(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Ca,keySeq:null,specialChars:null},t.autofocus&&!pa&&o.input.focus(),ia&&ra<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Io(this),Qr(),ii(this),this.curOp.forceUpdate=!0,Xi(this,i),t.autofocus&&!pa||this.hasFocus()?setTimeout(c(In,this),20):An(this);for(var a in As)As.hasOwnProperty(a)&&As[a](n,t[a],zs);On(this),t.finishInit&&t.finishInit(this);for(var s=0;s400}var r=e.display;Ba(r.scroller,"mousedown",hi(e,xo)),ia&&ra<11?Ba(r.scroller,"dblclick",hi(e,function(t){if(!He(e,t)){var n=Cn(e,t);if(n&&!To(e,t)&&!Pt(e.display,t)){Ne(t);var i=e.findWordAt(n);hr(e.doc,i.anchor,i.head)}}})):Ba(r.scroller,"dblclick",function(t){return He(e,t)||Ne(t)}),wa||Ba(r.scroller,"contextmenu",function(t){return Eo(e,t)});var o,a={end:0};Ba(r.scroller,"touchstart",function(t){if(!He(e,t)&&!n(t)){r.input.ensurePolled(),clearTimeout(o);var i=+new Date;r.activeTouch={start:i,moved:!1,prev:i-a.end<=300?a:null},1==t.touches.length&&(r.activeTouch.left=t.touches[0].pageX,r.activeTouch.top=t.touches[0].pageY)}}),Ba(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ba(r.scroller,"touchend",function(n){var o=r.activeTouch;if(o&&!Pt(r,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,s=e.coordsChar(r.activeTouch,"page");a=!o.prev||i(o,o.prev)?new ds(s,s):!o.prev.prev||i(o,o.prev.prev)?e.findWordAt(s):new ds(N(s.line,0),j(e.doc,N(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ne(n)}t()}),Ba(r.scroller,"touchcancel",t),Ba(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Zn(e,r.scroller.scrollTop),Kn(e,r.scroller.scrollLeft,!0),Me(e,"scroll",e))}),Ba(r.scroller,"mousewheel",function(t){return Fi(e,t)}),Ba(r.scroller,"DOMMouseScroll",function(t){return Fi(e,t)}),Ba(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(t){He(e,t)||Pe(t)},over:function(t){He(e,t)||(Vr(e,t),Pe(t))},start:function(t){return Gr(e,t)},drop:hi(e,qr),leave:function(t){He(e,t)||Xr(e)}};var s=r.input.getField();Ba(s,"keyup",function(t){return bo.call(e,t)}),Ba(s,"keydown",hi(e,mo)),Ba(s,"keypress",hi(e,yo)),Ba(s,"focus",function(t){return In(e,t)}),Ba(s,"blur",function(t){return An(e,t)})}function Ao(e,t,n,i){var r,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=et(e,t):n="prev");var a=e.options.tabSize,s=L(o,t),l=d(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(r,s.text.slice(u.length),s.text))==_a||c>150)){if(!i)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?d(L(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var h="",f=0;if(e.options.indentWithTabs)for(var g=Math.floor(c/a);g;--g)f+=a,h+="\t";if(f1)if(Fs&&Fs.text.join("\n")==t){if(i.ranges.length%Fs.text.length==0){l=[];for(var c=0;c=0;d--){var h=i.ranges[d],f=h.from(),p=h.to();h.empty()&&(n&&n>0?f=N(f.line,f.ch-n):e.state.overwrite&&!a?p=N(p.line,Math.min(L(o,p.line).text.length,p.ch+g(s).length)):Fs&&Fs.lineWise&&Fs.text.join("\n")==t&&(f=p=N(f.line,0))),u=e.curOp.updateInput;var v={from:f,to:p,text:l?l[d%l.length]:s,origin:r||(a?"paste":e.state.cutIncoming?"cut":"+input")};_r(e.doc,v),St(e,"inputRead",e,v)}t&&!a&&Po(e,t),Un(e),e.curOp.updateInput=u,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Ro(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||di(t,function(){return Fo(t,n,0,null,"paste")}),!0}function Po(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=e.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Ao(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(L(e.doc,r.head.line).text.slice(0,r.head.ch))&&(a=Ao(e,r.head.line,"smart"));a&&St(e,"electricInput",e,r.head.line)}}}function Oo(e){for(var t=[],n=[],i=0;i=e.first+e.size)&&(t=new N(i,t.ch,t.sticky),c=L(e,i))}function a(i){var a;if(null==(a=r?Le(e.cm,c,t,n):Te(c,t,n))){if(i||!o())return!1;t=Ee(r,e.cm,c,t.line,n)}else t=a;return!0}var s=t,l=n,c=L(e,t.line);if("char"==i)a();else if("column"==i)a(!0);else if("word"==i||"group"==i)for(var u=null,d="group"==i,h=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||a(!f);f=!1){var p=c.text.charAt(t.ch)||"\n",g=w(p,h)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||f||g||(g="s"),u&&u!=g){n<0&&(n=1,a(),t.sticky="after");break}if(g&&(u=g),n>0&&!a(!f))break}var m=Cr(e,t,s,l,!0);return R(s,m)&&(m.hitSide=!0),m}function Yo(e,t,n,i){var r,o=e.doc,a=t.left;if("page"==i){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*bn(e.display),3);r=(n>0?t.bottom:t.top)+n*l}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(var c;(c=pn(e,a,r)).outside;){if(n<0?r<=0:r>=o.height){c.hitSide=!0;break}r+=5*n}return c}function $o(e,t){var n=Xt(e,t.line);if(!n||n.hidden)return null;var i=L(e.doc,t.line),r=qt(n,i,t.line),o=Se(i,e.doc.direction),a="left";o&&(a=ke(o,t.ch)%2?"right":"left");var s=Kt(r.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Uo(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function qo(e,t){return t&&(e.bad=!0),e}function Go(e,t,n,i,r){function o(e){return function(t){return t.id==e}}function a(){u&&(c+=d,u=!1)}function s(e){e&&(a(),c+=e)}function l(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void s(n||t.textContent.replace(/\u200b/g,""));var c,h=t.getAttribute("cm-marker");if(h){var f=e.findMarks(N(i,0),N(r+1,0),o(+h));return void(f.length&&(c=f[0].find())&&s(_(e.doc,c.from,c.to).join(d)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p)$/i.test(t.nodeName);p&&a();for(var g=0;g=15&&(la=!1,oa=!0);var ya,xa=ga&&(aa||la&&(null==ba||ba<12.11)),wa=Jo||ia&&ra>=9,ka=function(t,n){var i=t.className,r=e(n).exec(i);if(r){var o=i.slice(r.index+r[0].length);t.className=i.slice(0,r.index)+(o?r[1]+o:"")}};ya=document.createRange?function(e,t,n,i){var r=document.createRange();return r.setEnd(i||e,n),r.setStart(e,t),r}:function(e,t,n){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch(e){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i};var Sa=function(e){e.select()};ha?Sa=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ia&&(Sa=function(e){try{e.select()}catch(e){}});var Ca=function(){this.id=null};Ca.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var Ta,Ea,La=30,_a={toString:function(){return"CodeMirror.Pass"}},Da={scroll:!1},Ma={origin:"*mouse"},Ha={origin:"+move"},za=[""],Ia=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Aa=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Na=!1,Fa=!1,Ra=null,Pa=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?i.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,l=/[1n]/;return function(n,i){var c="ltr"==i?"L":"R";if(0==n.length||"ltr"==i&&!r.test(n))return!1;for(var u=n.length,d=[],h=0;h=this.string.length},Xa.prototype.sol=function(){return this.pos==this.lineStart},Xa.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xa.prototype.next=function(){if(this.post},Xa.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},Xa.prototype.skipToEnd=function(){this.pos=this.string.length},Xa.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xa.prototype.backUp=function(e){this.pos-=e},Xa.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},Xa.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xa.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};var Za=function(e,t,n){this.text=e,ie(this,t),this.height=n?n(this):1};Za.prototype.lineNo=function(){return H(this)},Ae(Za);var Qa,Ka={},Ja={},es=null,ts=null,ns={left:0,right:0,top:0,bottom:0},is=function(e,t,n){this.cm=n;var r=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),Ba(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Ba(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ia&&ra<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};is.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},is.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},is.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},is.prototype.zeroWidthHack=function(){var e=ga&&!ua?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ca,this.disableVert=new Ca},is.prototype.enableZeroWidthBar=function(e,t,n){function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)}e.style.pointerEvents="auto",t.set(1e3,i)},is.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var rs=function(){};rs.prototype.update=function(){return{bottom:0,right:0}},rs.prototype.setScrollLeft=function(){},rs.prototype.setScrollTop=function(){},rs.prototype.clear=function(){};var os={native:is,null:rs},as=0,ss=function(e,t,n){var i=e.display;this.viewport=t,this.visible=Rn(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Yt(e),this.force=n,this.dims=xn(e),this.events=[]};ss.prototype.signal=function(e,t){Ie(e,t)&&this.events.push(arguments)},ss.prototype.finish=function(){for(var e=this,t=0;t=0&&F(e,r.to())<=0)return i}return-1};var ds=function(e,t){this.anchor=e,this.head=t};ds.prototype.from=function(){return B(this.anchor,this.head)},ds.prototype.to=function(){return O(this.anchor,this.head)},ds.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};var hs=function(e){var t=this;this.lines=e,this.parent=null;for(var n=0,i=0;i1||!(this.children[0]instanceof hs))){var l=[];this.collapse(l),this.children=[new hs(l)],this.children[0].parent=this}},fs.prototype.collapse=function(e){for(var t=this,n=0;n50){for(var s=o.lines.length%25+25,l=s;l10);e.parent.maybeSpill()}},fs.prototype.iterN=function(e,t,n){for(var i=this,r=0;rt.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=d,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&gi(t,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&wr(t.doc)),t&&St(t,"markerCleared",t,this,r,o),n&&ri(t),this.parent&&this.parent.clear()}},ms.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var i,r,o=0;o=0;c--)_r(i,r[c]);l?vr(this,l):this.cm&&Un(this.cm)}),undo:pi(function(){Mr(this,"undo")}),redo:pi(function(){Mr(this,"redo")}),undoSelection:pi(function(){Mr(this,"undo",!0)}),redoSelection:pi(function(){Mr(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=j(this,e),t=j(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&r!=e.line||null!=l.from&&r==t.line&&l.from>=t.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var i=0;ie?(t=e,!0):(e-=o,void++n)}),j(this,N(n,t))},indexFromPos:function(e){var t=(e=j(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)r=new N(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),N(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var a=L(e.doc,r.line-1).text;a&&(r=new N(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),N(r.line-1,a.length-1),r,"+transpose"))}n.push(new ds(r,r))}e.setSelections(n)})},newlineAndIndent:function(e){return di(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;i=t.display.viewTo||r.line=t.display.viewFrom&&$o(t,i)||{node:s[0].measure.map[2],offset:0},c=r.linee.firstLine()&&(i=N(i.line-1,L(e.doc,i.line-1).length)),r.ch==L(e.doc,r.line).text.length&&r.linet.viewTo-1)return!1;var o,a,s;i.line==t.viewFrom||0==(o=Tn(e,i.line))?(a=H(t.view[0].line),s=t.view[0].node):(a=H(t.view[o].line),s=t.view[o-1].node.nextSibling);var l,c,u=Tn(e,r.line);if(u==t.view.length-1?(l=t.viewTo-1,c=t.lineDiv.lastChild):(l=H(t.view[u+1].line)-1,c=t.view[u+1].node.previousSibling),!s)return!1;for(var d=e.doc.splitLines(Go(e,s,c,a,l)),h=_(e.doc,N(a,0),N(l,L(e.doc,l).text.length));d.length>1&&h.length>1;)if(g(d)==g(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),a++}for(var f=0,p=0,m=d[0],v=h[0],b=Math.min(m.length,v.length);fi.ch&&y.charCodeAt(y.length-p-1)==x.charCodeAt(x.length-p-1);)f--,p++;d[d.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var k=N(a,f),S=N(l,h.length?g(h).length-p:0);return d.length>1||d[0]||F(k,S)?(Ar(e.doc,d,k,S,"+input"),!0):void 0},Rs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Rs.prototype.reset=function(){this.forceCompositionEnd()},Rs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Rs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Rs.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||di(this.cm,function(){return gi(e.cm)})},Rs.prototype.setUneditable=function(e){e.contentEditable="false"},Rs.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||hi(this.cm,Fo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Rs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Rs.prototype.onContextMenu=function(){},Rs.prototype.resetPosition=function(){},Rs.prototype.needsContentAttribute=!0;var Ps=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ca,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null};Ps.prototype.init=function(e){function t(e){if(!He(r,e)){if(r.somethingSelected())No({lineWise:!1,text:r.getSelections()}),i.inaccurateSelection&&(i.prevInput="",i.inaccurateSelection=!1,a.value=Fs.text.join("\n"),Sa(a));else{if(!r.options.lineWiseCopyCut)return;var t=Oo(r);No({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,Da):(i.prevInput="",a.value=t.text.join("\n"),Sa(a))}"cut"==e.type&&(r.state.cutIncoming=!0)}}var n=this,i=this,r=this.cm,o=this.wrapper=Wo(),a=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),ha&&(a.style.width="0px"),Ba(a,"input",function(){ia&&ra>=9&&n.hasSelection&&(n.hasSelection=null),i.poll()}),Ba(a,"paste",function(e){He(r,e)||Ro(e,r)||(r.state.pasteIncoming=!0,i.fastPoll())}),Ba(a,"cut",t),Ba(a,"copy",t),Ba(e.scroller,"paste",function(t){Pt(e,t)||He(r,t)||(r.state.pasteIncoming=!0,i.focus())}),Ba(e.lineSpace,"selectstart",function(t){Pt(e,t)||Ne(t)}),Ba(a,"compositionstart",function(){var e=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Ba(a,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Ps.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=Ln(e);if(e.options.moveInputWithCursor){var r=dn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},Ps.prototype.showSelection=function(e){var t=this.cm.display;n(t.cursorDiv,e.cursors),n(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ps.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t,n,i=this.cm,r=i.doc;if(i.somethingSelected()){this.prevInput="";var o=r.sel.primary(),a=(t=$a&&(o.to().line-o.from().line>100||(n=i.getSelection()).length>1e3))?"-":n||i.getSelection();this.textarea.value=a,i.state.focused&&Sa(this.textarea),ia&&ra>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",ia&&ra>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},Ps.prototype.getField=function(){return this.textarea},Ps.prototype.supportsTouch=function(){return!1},Ps.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!pa||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ps.prototype.blur=function(){this.textarea.blur()},Ps.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ps.prototype.receivedFocus=function(){this.slowPoll()},Ps.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll(); -})},Ps.prototype.fastPoll=function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},Ps.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ya(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(ia&&ra>=9&&this.hasSelection===r||ga&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(i.length,r.length);a1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ps.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ps.prototype.onKeyPress=function(){ia&&ra>=9&&(this.hasSelection=null),this.fastPoll()},Ps.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=r.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,i.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=r.doc.sel}}function n(){if(i.contextMenuPending=!1,i.wrapper.style.cssText=u,a.style.cssText=c,ia&&ra<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=l),null!=a.selectionStart){(!ia||ia&&ra<9)&&t();var e=0,n=function(){o.selForContextMenu==r.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==i.prevInput?hi(r,Er)(r):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var i=this,r=i.cm,o=r.display,a=i.textarea,s=Cn(r,e),l=o.scroller.scrollTop;if(s&&!la){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(s)&&hi(r,br)(r.doc,Pi(s),Da);var c=a.style.cssText,u=i.wrapper.style.cssText;i.wrapper.style.cssText="position: absolute";var d=i.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+"px;\n z-index: 1000; background: "+(ia?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var h;if(oa&&(h=window.scrollY),o.input.focus(),oa&&window.scrollTo(null,h),o.input.reset(),r.somethingSelected()||(a.value=i.prevInput=" "),i.contextMenuPending=!0,o.selForContextMenu=r.doc.sel,clearTimeout(o.detectingSelectAll),ia&&ra>=9&&t(),wa){Pe(e);var f=function(){De(window,"mouseup",f),setTimeout(n,20)};Ba(window,"mouseup",f)}else setTimeout(n,50)}},Ps.prototype.readOnlyChanged=function(e){e||this.reset()},Ps.prototype.setUneditable=function(){},Ps.prototype.needsContentAttribute=!1,function(e){function t(t,i,r,o){e.defaults[t]=i,r&&(n[t]=o?function(e,t,n){n!=zs&&r(e,t,n)}:r)}var n=e.optionHandlers;e.defineOption=t,e.Init=zs,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,$i(e)},!0),t("indentUnit",2,$i,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Ui(e),on(e),gi(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter(function(e){for(var r=0;;){var o=e.text.indexOf(t,r);if(-1==o)break;r=o+t.length,n.push(N(i,o))}i++});for(var r=n.length-1;r>=0;r--)Ar(e.doc,t,n[r],N(n[r].line,n[r].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=zs&&e.refresh()}),t("specialCharPlaceholder",ht,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",pa?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!va),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){_o(e),Do(e)},!0),t("keyMap","default",function(e,t,n){var i=oo(t),r=n!=zs&&oo(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)}),t("extraKeys",null),t("lineWrapping",!1,Ho,!0),t("gutters",[],function(e){Ii(e.options),Do(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?wn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return ei(e)},!0),t("scrollbarStyle","native",function(e){ni(e),ei(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Ii(e.options),Do(e)},!0),t("firstLineNumber",1,Do,!0),t("lineNumberFormatter",function(e){return e},Do,!0),t("showCursorWhenSelecting",!1,En,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("readOnly",!1,function(e,t){"nocursor"==t?(An(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Mo),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,En,!0),t("singleCursorHeightPerLine",!0,En,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Ui,!0),t("addModeClass",!1,Ui,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,Ui,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(zo),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var i=this.options,r=i[e];i[e]==n&&"mode"!=e||(i[e]=n,t.hasOwnProperty(e)&&hi(this,t[e])(this,n,r),Me(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](oo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;ni&&(Ao(t,o.head.line,e,!0),i=o.head.line,r==t.doc.sel.primIndex&&Un(t));else{var a=o.from(),s=o.to(),l=Math.max(i,a.line);i=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var c=l;c0&&pr(t.doc,r,new ds(a,u[r].to()),Da)}}}),getTokenAt:function(e,t){return rt(this,e,t)},getLineTokens:function(e,t){return rt(this,N(e),t,!0)},getTokenTypeAt:function(e){e=j(this.doc,e);var t,n=Je(this,L(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]o&&(e=o,r=!0),i=L(this.doc,e)}else i=e;return ln(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-be(i):0)},defaultTextHeight:function(){return bn(this.display)},defaultCharWidth:function(){return yn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display,a=(e=dn(this,j(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)a=e.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==r?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&jn(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:fi(mo),triggerOnKeyPress:fi(yo),triggerOnKeyUp:bo,execCommand:function(e){if(Ds.hasOwnProperty(e))return Ds[e].call(null,this)},triggerElectric:fi(function(e){Po(this,e)}),findPosH:function(e,t,n,i){var r=this,o=1;t<0&&(o=-1,t=-t);for(var a=j(this.doc,e),s=0;s0&&a(t.charAt(n-1));)--n;for(;i.5)&&Sn(this),Me(this,"refresh",this)}),swapDoc:fi(function(e){var t=this.doc;return t.cm=null,Xi(this,e),on(this),this.display.input.reset(),qn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,St(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ae(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}}(zo);var Os="iter insert remove copy getEditor constructor".split(" ");for(var Bs in ys.prototype)ys.prototype.hasOwnProperty(Bs)&&h(Os,Bs)<0&&(zo.prototype[Bs]=function(e){return function(){return e.apply(this.doc,arguments)}}(ys.prototype[Bs]));return Ae(ys),zo.inputStyles={textarea:Ps,contenteditable:Rs},zo.defineMode=function(e){zo.defaults.mode||"null"==e||(zo.defaults.mode=e),$e.apply(this,arguments)},zo.defineMIME=Ue,zo.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),zo.defineMIME("text/plain","null"),zo.defineExtension=function(e,t){zo.prototype[e]=t},zo.defineDocExtension=function(e,t){ys.prototype[e]=t},zo.fromTextArea=Zo,function(e){e.off=De,e.on=Ba,e.wheelEventPixels=Ni,e.Doc=ys,e.splitLines=ja,e.countColumn=d,e.findColumn=f,e.isWordChar=x,e.Pass=_a,e.signal=Me,e.Line=Za,e.changeEnd=Oi,e.scrollbarModel=os,e.Pos=N,e.cmpPos=F,e.modes=qa,e.mimeModes=Ga,e.resolveMode=qe,e.getMode=Ge,e.modeExtensions=Va,e.extendMode=Ve,e.copyState=Xe,e.startState=Qe,e.innerMode=Ze,e.commands=Ds,e.keyMap=Es,e.keyName=ro,e.isModifierKey=io,e.lookupKey=no,e.normalizeKeyMap=to,e.StringStream=Xa,e.SharedTextMarker=vs,e.TextMarker=ms,e.LineWidget=ps,e.e_preventDefault=Ne,e.e_stopPropagation=Fe,e.e_stop=Pe,e.addClass=s,e.contains=o,e.rmClass=ka,e.keyNames=ks}(zo),zo.version="5.26.0",zo})},{}],11:[function(e,t,n){!function(i){"object"==typeof n&&"object"==typeof t?i(e("../../lib/codemirror"),e("../markdown/markdown"),e("../../addon/mode/overlay")):i(CodeMirror)}(function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(n,i){function r(e){return e.code=!1,null}var o=0,a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var r=e.pos;e.eatWhile("`");var a=1+e.pos-r;return n.code?a===o&&(n.code=!1):(o=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==i.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:r},s={taskLists:!0,fencedCodeBlocks:"```",strikethrough:!0};for(var l in i)s[l]=i[l];return s.name="markdown",e.overlayMode(e.getMode(n,s),a)},"markdown"),e.defineMIME("text/x-gfm","gfm")})},{"../../addon/mode/overlay":8,"../../lib/codemirror":10,"../markdown/markdown":12}],12:[function(e,t,n){!function(i){"object"==typeof n&&"object"==typeof t?i(e("../../lib/codemirror"),e("../xml/xml"),e("../meta")):i(CodeMirror)}(function(e){"use strict";e.defineMode("markdown",function(t,n){function i(n){if(e.findModeByName){var i=e.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var r=e.getMode(t,n);return"null"==r.name?null:r}function r(e,t,n){return t.f=t.inline=n,n(e,t)}function o(e,t,n){return t.f=t.block=n,n(e,t)}function a(e){return!e||!/\S/.test(e.string)}function s(e){return e.linkTitle=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==c&&(e.f=f,e.block=l),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine=null,null}function l(t,o){var s=t.sol(),l=!1!==o.list,c=o.indentedCode;o.indentedCode=!1,l&&(o.indentationDiff>=0?(o.indentationDiff<4&&(o.indentation-=o.indentationDiff),o.list=null):o.indentation>0?o.list=null:o.list=!1);var h=null;if(o.indentationDiff>=4)return t.skipToEnd(),c||a(o.prevLine)?(o.indentation-=4,o.indentedCode=!0,k.code):null;if(t.eatSpace())return null;if((h=t.match(L))&&h[1].length<=6)return o.header=h[1].length,n.highlightFormatting&&(o.formatting="header"),o.f=o.inline,d(o);if(!(a(o.prevLine)||o.quote||l||c)&&(h=t.match(_)))return o.header="="==h[0].charAt(0)?1:2,n.highlightFormatting&&(o.formatting="header"),o.f=o.inline,d(o);if(t.eat(">"))return o.quote=s?1:o.quote+1,n.highlightFormatting&&(o.formatting="quote"),t.eatSpace(),d(o);if("["===t.peek())return r(t,o,v);if(t.match(C,!0))return o.hr=!0,k.hr;if(h=t.match(T)){var f=h[1]?"ol":"ul";for(o.indentation=t.column()+t.current().length,o.list=!0;o.listStack&&t.column()")>-1)&&(n.f=f,n.block=l,n.htmlState=null)}return i}function u(e,t){if(t.fencedChars&&e.match(t.fencedChars)){n.highlightFormatting&&(t.formatting="code-block");var i=d(t);return t.localMode=t.localState=null,t.block=l,t.f=f,t.fencedChars=null,t.code=0,i}return t.fencedChars&&e.skipTo(t.fencedChars)?"comment":t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),k.code)}function d(e){var t=[];if(e.formatting){t.push(k.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var i=0;i=e.quote?t.push(k.formatting+"-"+e.formatting[i]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(k.linkHref,"url"):(e.strong&&t.push(k.strong),e.em&&t.push(k.em),e.strikethrough&&t.push(k.strikethrough),e.linkText&&t.push(k.linkText),e.code&&t.push(k.code),e.image&&t.push(k.image),e.imageAltText&&t.push(k.imageAltText,"link"),e.imageMarker&&t.push(k.imageMarker)),e.header&&t.push(k.header,k.header+"-"+e.header),e.quote&&(t.push(k.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(k.quote+"-"+e.quote):t.push(k.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var r=(e.listStack.length-1)%3;r?1===r?t.push(k.list2):t.push(k.list3):t.push(k.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function h(e,t){if(e.match(D,!0))return d(t)}function f(t,i){var r=i.text(t,i);if(void 0!==r)return r;if(i.list)return i.list=null,d(i);if(i.taskList)return"x"!==t.match(E,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,d(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),d(i);var a=t.next();if(i.linkTitle){i.linkTitle=!1;var s=a;"("===a&&(s=")");var l="^\\s*(?:[^"+(s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(t.match(new RegExp(l),!0))return k.linkHref}if("`"===a){var u=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var h=t.current().length;return 0==i.code?(i.code=h,d(i)):h==i.code?(M=d(i),i.code=0,M):(i.formatting=u,d(i))}if(i.code)return d(i);if("\\"===a&&(t.next(),n.highlightFormatting)){var m=d(i),v=k.formatting+"-escape";return m?m+" "+v:v}if("!"===a&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),d(i);if("["===a&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),d(i);if("]"===a&&i.imageAltText)return n.highlightFormatting&&(i.formatting="image"),m=d(i),i.imageAltText=!1,i.image=!1,i.inline=i.f=g,m;if("["===a&&!i.image)return i.linkText=!0,n.highlightFormatting&&(i.formatting="link"),d(i);if("]"===a&&i.linkText)return n.highlightFormatting&&(i.formatting="link"),m=d(i),i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?g:f,m;if("<"===a&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=p,n.highlightFormatting&&(i.formatting="link"),(m=d(i))?m+=" ":m="",m+k.linkInline;if("<"===a&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=p,n.highlightFormatting&&(i.formatting="link"),(m=d(i))?m+=" ":m="",m+k.linkEmail;if("<"===a&&t.match(/^(!--|[a-z]+(?:\s+[a-z_:.\-]+(?:\s*=\s*[^ >]+)?)*\s*>)/i,!1)){var b=t.string.indexOf(">",t.pos);if(-1!=b){var y=t.string.substring(t.start,b);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(x),o(t,i,c)}if("<"===a&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===a||"_"===a){for(var w=1,S=1==t.pos?" ":t.string.charAt(t.pos-2);w<3&&t.eat(a);)w++;var C=t.peek()||" ",T=!/\s/.test(C)&&(!H.test(C)||/\s/.test(S)||H.test(S)),L=!/\s/.test(S)&&(!H.test(S)||/\s/.test(C)||H.test(C)),_=null,D=null;if(w%2&&(i.em||!T||"*"!==a&&L&&!H.test(S)?i.em!=a||!L||"*"!==a&&T&&!H.test(C)||(_=!1):_=!0),w>1&&(i.strong||!T||"*"!==a&&L&&!H.test(S)?i.strong!=a||!L||"*"!==a&&T&&!H.test(C)||(D=!1):D=!0),null!=D||null!=_)return n.highlightFormatting&&(i.formatting=null==_?"strong":null==D?"em":"strong em"),!0===_&&(i.em=a),!0===D&&(i.strong=a),M=d(i),!1===_&&(i.em=!1),!1===D&&(i.strong=!1),M}else if(" "===a&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return d(i);t.backUp(1)}if(n.strikethrough)if("~"===a&&t.eatWhile(a)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");var M=d(i);return i.strikethrough=!1,M}if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),d(i)}else if(" "===a&&t.match(/^~~/,!0)){if(" "===t.peek())return d(i);t.backUp(2)}return" "===a&&(t.match(/ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),d(i)}function p(e,t){if(">"===e.next()){t.f=t.inline=f,n.highlightFormatting&&(t.formatting="link");var i=d(t);return i?i+=" ":i="",i+k.linkInline}return e.match(/^[^>]+/,!0),k.linkInline}function g(e,t){if(e.eatSpace())return null;var i=e.next();return"("===i||"["===i?(t.f=t.inline=m("("===i?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,d(t)):"error"}function m(e){return function(t,i){if(t.next()===e){i.f=i.inline=f,n.highlightFormatting&&(i.formatting="link-string");var r=d(i);return i.linkHref=!1,r}return t.match(z[e]),i.linkHref=!0,d(i)}}function v(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=b,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,d(t)):r(e,t,f)}function b(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=y,n.highlightFormatting&&(t.formatting="link");var i=d(t);return t.linkText=!1,i}return e.match(/^([^\]\\]|\\.)+/,!0),k.linkText}function y(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=f,k.linkHref+" url")}var x=e.getMode(t,"text/html"),w="null"==x.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var k={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough"};for(var S in k)k.hasOwnProperty(S)&&n.tokenTypeOverrides[S]&&(k[S]=n.tokenTypeOverrides[S]);var C=/^([*\-_])(?:\s*\1){2,}\s*$/,T=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,E=/^\[(x| )\](?=\s)/,L=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,_=/^ *(?:\={1,}|-{1,})\s*$/,D=/^[^#!\[\]*_\\<>` "'(~]+/,M=new RegExp("^("+(!0===n.fencedCodeBlocks?"~~~+|```+":n.fencedCodeBlocks)+")[ \\t]*([\\w+#-]*)"),H=/[!\"#$%&\'()*+,\-\.\/:;<=>?@\[\\\]^_`{|}~—]/,z={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/},I={startState:function(){return{f:l,prevLine:null,thisLine:null,block:l,htmlState:null,indentation:0,inline:f,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,fencedChars:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(x,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,header:t.header,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedChars:t.fencedChars}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine){var n=t.header||t.hr;if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0)||n){if(s(t),!n)return null;t.prevLine=null}t.prevLine=t.thisLine,t.thisLine=e,t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.f=t.block;var i=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentationDiff=Math.min(i-t.indentation,4),t.indentation=t.indentation+t.indentationDiff,i>0)return null}return t.f(e,t)},innerMode:function(e){return e.block==c?{state:e.htmlState,mode:x}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:I}},blankLine:s,getType:d,closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return I},"xml"),e.defineMIME("text/x-markdown","markdown")})},{"../../lib/codemirror":10,"../meta":13,"../xml/xml":14}],13:[function(e,t,n){!function(i){i("object"==typeof n&&"object"==typeof t?e("../lib/codemirror"):CodeMirror)}(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["pgp"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mime:"text/x-coffeescript",mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart", -ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mime:"text/n-triples",mode:"ntriples",ext:["nt"]},{name:"Objective C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mime:"application/x-httpd-php",mode:"php",ext:["php","php3","php4","php5","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mime:"text/x-sh",mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t-1&&t.substring(r+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n")):null:e.match("--")?n(l("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=l("meta","?>"),"meta"):(E=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==i){var r;return r=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),r?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=o,E=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return E="equals",null;if("<"==n){t.tokenize=o,t.state=f,t.tagName=t.tagStart=null;var i=t.tokenize(e,t);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=s(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function l(e,t){return function(n,i){for(;!n.eol();){if(n.match(t)){i.tokenize=o;break}n.next()}return e}}function c(e){return function(t,n){for(var i;null!=(i=t.next());){if("<"==i)return n.tokenize=c(e+1),n.tokenize(t,n);if(">"==i){if(1==e){n.tokenize=o;break}return n.tokenize=c(e-1),n.tokenize(t,n)}}return"meta"}}function u(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(S.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function h(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!S.contextGrabbers.hasOwnProperty(n)||!S.contextGrabbers[n].hasOwnProperty(t))return;d(e)}}function f(e,t,n){return"openTag"==e?(n.tagStart=t.column(),p):"closeTag"==e?g:f}function p(e,t,n){return"word"==e?(n.tagName=t.current(),L="tag",b):(L="error",p)}function g(e,t,n){if("word"==e){var i=t.current();return n.context&&n.context.tagName!=i&&S.implicitlyClosed.hasOwnProperty(n.context.tagName)&&d(n),n.context&&n.context.tagName==i||!1===S.matchClosing?(L="tag",m):(L="tag error",v)}return L="error",v}function m(e,t,n){return"endTag"!=e?(L="error",m):(d(n),f)}function v(e,t,n){return L="error",m(e,t,n)}function b(e,t,n){if("word"==e)return L="attribute",y;if("endTag"==e||"selfcloseTag"==e){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||S.autoSelfClosers.hasOwnProperty(i)?h(n,i):(h(n,i),n.context=new u(n,i,r==n.indented)),f}return L="error",b}function y(e,t,n){return"equals"==e?x:(S.allowMissing||(L="error"),b(e,t,n))}function x(e,t,n){return"string"==e?w:"word"==e&&S.allowUnquoted?(L="string",b):(L="error",b(e,t,n))}function w(e,t,n){return"string"==e?w:b(e,t,n)}var k=i.indentUnit,S={},C=r.htmlMode?t:n;for(var T in C)S[T]=C[T];for(var T in r)S[T]=r[T];var E,L;return o.isInText=!0,{startState:function(e){var t={tokenize:o,state:f,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;E=null;var n=t.tokenize(e,t);return(n||E)&&"comment"!=n&&(L=null,t.state=t.state(E||n,e,t),L&&(n="error"==L?n+" error":L)),n},indent:function(t,n,i){var r=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+k;if(r&&r.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=o)return i?i.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==S.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+k*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/$/,blockCommentStart:"",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(e){e.state==x&&(e.state=b)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},{"../../lib/codemirror":10}],15:[function(e,t,n){n.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<>1,u=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=c}return(f?-1:1)*a*Math.pow(2,o-i)},n.write=function(e,t,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*g}},{}],16:[function(e,t,n){(function(e){(function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||d.defaults,this.rules=h.normal,this.options.gfm&&(this.options.tables?this.rules=h.tables:this.rules=h.gfm)}function i(e,t){if(this.options=t||d.defaults,this.links=e,this.rules=f.normal,this.renderer=this.options.renderer||new r,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=f.breaks:this.rules=f.gfm:this.options.pedantic&&(this.rules=f.pedantic)}function r(e){this.options=e||{}}function o(e){this.tokens=[],this.token=null,this.options=e||d.defaults,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options}function a(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function l(e,t){return e=e.source,t=t||"",function n(i,r){return i?(r=r.source||r,r=r.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(i,r),n):new RegExp(e,t)}}function c(){}function u(e){for(var t,n,i=1;iAn error occured:

    "+a(e.message+"",!0)+"
    ";throw e}}var h={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:c,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:c,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:c,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};h.bullet=/(?:[*+-]|\d+\.)/,h.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,h.item=l(h.item,"gm")(/bull/g,h.bullet)(),h.list=l(h.list)(/bull/g,h.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+h.def.source+")")(),h.blockquote=l(h.blockquote)("def",h.def)(),h._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",h.html=l(h.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,h._tag)(),h.paragraph=l(h.paragraph)("hr",h.hr)("heading",h.heading)("lheading",h.lheading)("blockquote",h.blockquote)("tag","<"+h._tag)("def",h.def)(),h.normal=u({},h),h.gfm=u({},h.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),h.gfm.paragraph=l(h.paragraph)("(?!","(?!"+h.gfm.fences.source.replace("\\1","\\2")+"|"+h.list.source.replace("\\1","\\3")+"|")(),h.tables=u({},h.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=h,e.lex=function(t,n){return new e(n).lex(t)},e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},e.prototype.token=function(e,t,n){for(var i,r,o,a,s,l,c,u,d,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},u=0;u ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),i=!1,d=(o=o[0].match(this.rules.item)).length,u=0;u1&&s.length>1||(e=o.slice(u+1).join("\n")+e,u=d-1)),r=i||/\n\n(?!\s*$)/.test(l),u!==d-1&&(i="\n"===l.charAt(l.length-1),r||(r=i)),this.tokens.push({type:r?"loose_item_start":"list_item_start"}),this.token(l,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},u=0;u])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:c,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:c,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,f.link=l(f.link)("inside",f._inside)("href",f._href)(),f.reflink=l(f.reflink)("inside",f._inside)(),f.normal=u({},f),f.pedantic=u({},f.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),f.gfm=u({},f.normal,{escape:l(f.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(f.text)("]|","~]|")("|","|https?://|")()}),f.breaks=u({},f.gfm,{br:l(f.br)("{2,}","*")(),text:l(f.gfm.text)("{2,}","*")()}),i.rules=f,i.output=function(e,t,n){return new i(t,n).output(e)},i.prototype.output=function(e){for(var t,n,i,r,o="";e;)if(r=this.rules.escape.exec(e))e=e.substring(r[0].length),o+=r[1];else if(r=this.rules.autolink.exec(e))e=e.substring(r[0].length),"@"===r[2]?(n=":"===r[1].charAt(6)?this.mangle(r[1].substring(7)):this.mangle(r[1]),i=this.mangle("mailto:")+n):i=n=a(r[1]),o+=this.renderer.link(i,null,n);else if(this.inLink||!(r=this.rules.url.exec(e))){if(r=this.rules.tag.exec(e))!this.inLink&&/^/i.test(r[0])&&(this.inLink=!1),e=e.substring(r[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):a(r[0]):r[0];else if(r=this.rules.link.exec(e))e=e.substring(r[0].length),this.inLink=!0,o+=this.outputLink(r,{href:r[2],title:r[3]}),this.inLink=!1;else if((r=this.rules.reflink.exec(e))||(r=this.rules.nolink.exec(e))){if(e=e.substring(r[0].length),t=(r[2]||r[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){o+=r[0].charAt(0),e=r[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(r,t),this.inLink=!1}else if(r=this.rules.strong.exec(e))e=e.substring(r[0].length),o+=this.renderer.strong(this.output(r[2]||r[1]));else if(r=this.rules.em.exec(e))e=e.substring(r[0].length),o+=this.renderer.em(this.output(r[2]||r[1]));else if(r=this.rules.code.exec(e))e=e.substring(r[0].length),o+=this.renderer.codespan(a(r[2],!0));else if(r=this.rules.br.exec(e))e=e.substring(r[0].length),o+=this.renderer.br();else if(r=this.rules.del.exec(e))e=e.substring(r[0].length),o+=this.renderer.del(this.output(r[1]));else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),o+=this.renderer.text(a(this.smartypants(r[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(r[0].length),i=n=a(r[1]),o+=this.renderer.link(i,null,n);return o},i.prototype.outputLink=function(e,t){var n=a(t.href),i=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,a(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,r=0;r.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var i=this.options.highlight(e,t);null!=i&&i!==e&&(n=!0,e=i)}return t?'
    '+(n?e:a(e,!0))+"\n
    \n":"
    "+(n?e:a(e,!0))+"\n
    "},r.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(s(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:"))return""}var r='
    "},r.prototype.image=function(e,t,n){var i=''+n+'":">"},r.prototype.text=function(e){return e},o.parse=function(e,t,n){return new o(t,n).parse(e)},o.prototype.parse=function(e){this.inline=new i(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},o.prototype.next=function(){return this.token=this.tokens.pop()},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,r="",o="";for(n="",e=0;e0&&(w.continuationClasses=y),"."!==x&&(w.match="SFX"===h?new RegExp(x+"$"):new RegExp("^"+x)),"0"!=m&&(w.remove="SFX"===h?new RegExp(m+"$"):m),g.push(w)}c[f]={type:h,combineable:"Y"==p,entries:g},o+=i}else if("COMPOUNDRULE"===h){for(a=o+1,l=o+1+(i=parseInt(d[1],10));a0&&(null===i[e]&&(i[e]=[]),i[e].push(t))}for(var n=(e=this._removeDicComments(e)).split("\n"),i={},r=1,o=n.length;r1){var l=this.parseRuleCodes(a[1]);"NEEDAFFIX"in this.flags&&-1!=l.indexOf(this.flags.NEEDAFFIX)||t(s,l);for(var c=0,u=l.length;c=this.flags.COMPOUNDMIN)for(t=0,n=this.compoundRules.length;t1&&u[1][1]!==u[1][0]&&s.push(u[0]+u[1][1]+u[1][0]+u[1].substring(2)),u[1])for(i=0,a=c.alphabet.length;i=0&&(h=l.getLineHandle(r),!t(h));r--);var m,v,b,y,x=n(l.getTokenAt({line:r,ch:1})).fencedChars;t(l.getLineHandle(c.line))?(m="",v=c.line):t(l.getLineHandle(c.line-1))?(m="",v=c.line-1):(m=x+"\n",v=c.line),t(l.getLineHandle(u.line))?(b="",y=u.line,0===u.ch&&(y+=1)):0!==u.ch&&t(l.getLineHandle(u.line+1))?(b="",y=u.line+1):(b=x+"\n",y=u.line+1),0===u.ch&&(y-=1),l.operation(function(){l.replaceRange(b,{line:y,ch:0},{line:y+(b?0:1),ch:0}),l.replaceRange(m,{line:v,ch:0},{line:v+(m?0:1),ch:0})}),l.setSelection({line:v+(m?1:0),ch:0},{line:y+(m?1:-1),ch:0}),l.focus()}else{var w=c.line;if(t(l.getLineHandle(c.line))&&("fenced"===i(l,c.line+1)?(r=c.line,w=c.line+1):(o=c.line,w=c.line-1)),void 0===r)for(r=w;r>=0&&(h=l.getLineHandle(r),!t(h));r--);if(void 0===o)for(a=l.lineCount(),o=w;o=0;r--)if(!(h=l.getLineHandle(r)).text.match(/^\s*$/)&&"indented"!==i(l,r,h)){r+=1;break}for(a=l.lineCount(),o=c.line;o\s+/,"unordered-list":/^(\s*)(\*|\-|\+)\s+/,"ordered-list":/^(\s*)\d+\.\s+/},a={quote:"> ","unordered-list":"* ","ordered-list":"1. "},l=i.line;l<=r.line;l++)!function(i){var r=e.getLine(i);r=n[t]?r.replace(o[t],"$1"):a[t]+r,e.replaceRange(r,{line:i,ch:0},{line:i,ch:99999999999999})}(l);e.focus()}}function I(e,t,n,i){if(!/editor-preview-active/.test(e.codemirror.getWrapperElement().lastChild.className)){i=void 0===i?n:i;var r,o=e.codemirror,a=s(o),l=n,c=i,u=o.getCursor("start"),d=o.getCursor("end");a[t]?(l=(r=o.getLine(u.line)).slice(0,u.ch),c=r.slice(u.ch),"bold"==t?(l=l.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),c=c.replace(/(\*\*|__)/,"")):"italic"==t?(l=l.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),c=c.replace(/(\*|_)/,"")):"strikethrough"==t&&(l=l.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),c=c.replace(/(\*\*|~~)/,"")),o.replaceRange(l+c,{line:u.line,ch:0},{line:u.line,ch:99999999999999}),"bold"==t||"strikethrough"==t?(u.ch-=2,u!==d&&(d.ch-=2)):"italic"==t&&(u.ch-=1,u!==d&&(d.ch-=1))):(r=o.getSelection(),"bold"==t?r=(r=r.split("**").join("")).split("__").join(""):"italic"==t?r=(r=r.split("*").join("")).split("_").join(""):"strikethrough"==t&&(r=r.split("~~").join("")),o.replaceSelection(l+r+c),u.ch+=n.length,d.ch=u.ch+r.length),o.setSelection(u,d),o.focus()}}function A(e){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className))for(var t,n=e.getCursor("start"),i=e.getCursor("end"),r=n.line;r<=i.line;r++)t=(t=e.getLine(r)).replace(/^[ ]*([# ]+|\*|\-|[> ]+|[0-9]+(.|\)))[ ]*/,""),e.replaceRange(t,{line:r,ch:0},{line:r,ch:99999999999999})}function N(e,t){for(var n in t)t.hasOwnProperty(n)&&(t[n]instanceof Array?e[n]=t[n].concat(e[n]instanceof Array?e[n]:[]):null!==t[n]&&"object"==typeof t[n]&&t[n].constructor===Object?e[n]=N(e[n]||{},t[n]):e[n]=t[n]);return e}function F(e){for(var t=1;t=19968?n[r].length:1;return i}function P(e){(e=e||{}).parent=this;var t=!0;if(!1===e.autoDownloadFontAwesome&&(t=!1),!0!==e.autoDownloadFontAwesome)for(var n=document.styleSheets,i=0;i-1&&(t=!1);if(t){var r=document.createElement("link");r.rel="stylesheet",r.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(r)}if(e.element)this.element=e.element;else if(null===e.element)return void console.log("SimpleMDE: Error. No element was found.");if(void 0===e.toolbar){e.toolbar=[];for(var o in X)X.hasOwnProperty(o)&&(-1!=o.indexOf("separator-")&&e.toolbar.push("|"),(!0===X[o].default||e.showIcons&&e.showIcons.constructor===Array&&-1!=e.showIcons.indexOf(o))&&e.toolbar.push(o))}e.hasOwnProperty("status")||(e.status=["autosave","lines","words","cursor"]),e.previewRender||(e.previewRender=function(e){return this.parent.markdown(e)}),e.parsingConfig=F({highlightFormatting:!0},e.parsingConfig||{}),e.insertTexts=F({},Z,e.insertTexts||{}),e.promptTexts=Q,e.blockStyles=F({},K,e.blockStyles||{}),e.shortcuts=F({},U,e.shortcuts||{}),void 0!=e.autosave&&void 0!=e.autosave.unique_id&&""!=e.autosave.unique_id&&(e.autosave.uniqueId=e.autosave.unique_id),this.options=e,this.render(),!e.initialValue||this.options.autosave&&!0===this.options.autosave.foundSavedValue||this.value(e.initialValue)}function O(){if("object"!=typeof localStorage)return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(e){return!1}return!0}var B=e("codemirror");e("codemirror/addon/edit/continuelist.js"),e("./codemirror/tablist"),e("codemirror/addon/display/fullscreen.js"),e("codemirror/mode/markdown/markdown.js"),e("codemirror/addon/mode/overlay.js"),e("codemirror/addon/display/placeholder.js"),e("codemirror/addon/selection/mark-selection.js"),e("codemirror/mode/gfm/gfm.js"),e("codemirror/mode/xml/xml.js");var W=e("codemirror-spell-checker"),j=e("marked"),Y=/Mac/.test(navigator.platform),$={toggleBold:c,toggleItalic:u,drawLink:k,toggleHeadingSmaller:p,toggleHeadingBigger:g,drawImage:S,toggleBlockquote:f,toggleOrderedList:x,toggleUnorderedList:y,toggleCodeBlock:h,togglePreview:D,toggleStrikethrough:d,toggleHeading1:m,toggleHeading2:v,toggleHeading3:b,cleanBlock:w,drawTable:C,drawHorizontalRule:T,undo:E,redo:L,toggleSideBySide:_,toggleFullScreen:l},U={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},q=function(e){for(var t in $)if($[t]===e)return t;return null},G=function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|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|xda|xiino|android|ipad|playbook|silk/i.test(t)||/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(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},V="",X={bold:{name:"bold",action:c,className:"fa fa-bold",title:"Bold",default:!0},italic:{name:"italic",action:u,className:"fa fa-italic",title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:d,className:"fa fa-strikethrough",title:"Strikethrough"},heading:{name:"heading",action:p,className:"fa fa-header",title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:p,className:"fa fa-header fa-header-x fa-header-smaller",title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:g,className:"fa fa-header fa-header-x fa-header-bigger",title:"Bigger Heading"},"heading-1":{name:"heading-1",action:m,className:"fa fa-header fa-header-x fa-header-1",title:"Big Heading"},"heading-2":{name:"heading-2",action:v,className:"fa fa-header fa-header-x fa-header-2",title:"Medium Heading"},"heading-3":{name:"heading-3",action:b,className:"fa fa-header fa-header-x fa-header-3",title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:h,className:"fa fa-code",title:"Code"},quote:{name:"quote",action:f,className:"fa fa-quote-left",title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:y,className:"fa fa-list-ul",title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:x,className:"fa fa-list-ol",title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:w,className:"fa fa-eraser fa-clean-block",title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:k,className:"fa fa-link",title:"Create Link",default:!0},image:{name:"image",action:S,className:"fa fa-picture-o",title:"Insert Image",default:!0},table:{name:"table",action:C,className:"fa fa-table",title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:T,className:"fa fa-minus",title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:D,className:"fa fa-eye no-disable",title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:_,className:"fa fa-columns no-disable no-mobile",title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:l,className:"fa fa-arrows-alt no-disable no-mobile",title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:E,className:"fa fa-undo no-disable",title:"Undo"},redo:{name:"redo",action:L,className:"fa fa-repeat no-disable",title:"Redo"}},Z={link:["[","](#url#)"],image:["![](","#url#)"],table:["","\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],horizontalRule:["","\n\n-----\n\n"]},Q={link:"URL for the link:",image:"URL of the image:"},K={bold:"**",code:"```",italic:"*"};P.prototype.markdown=function(e){if(j){var t={};return this.options&&this.options.renderingConfig&&!1===this.options.renderingConfig.singleLineBreaks?t.breaks=!1:t.breaks=!0,this.options&&this.options.renderingConfig&&!0===this.options.renderingConfig.codeSyntaxHighlighting&&window.hljs&&(t.highlight=function(e){return window.hljs.highlightAuto(e).value}),j.setOptions(t),j(e)}},P.prototype.render=function(e){if(e||(e=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==e){this.element=e;var t=this.options,n=this,r={};for(var o in t.shortcuts)null!==t.shortcuts[o]&&null!==$[o]&&function(e){r[i(t.shortcuts[e])]=function(){$[e](n)}}(o);r.Enter="newlineAndIndentContinueMarkdownList",r.Tab="tabAndIndentMarkdownList",r["Shift-Tab"]="shiftTabAndUnindentMarkdownList",r.Esc=function(e){e.getOption("fullScreen")&&l(n)},document.addEventListener("keydown",function(e){27==(e=e||window.event).keyCode&&n.codemirror.getOption("fullScreen")&&l(n)},!1);var a,s;if(!1!==t.spellChecker?(a="spell-checker",(s=t.parsingConfig).name="gfm",s.gitHubSpice=!1,W({codeMirrorInstance:B})):((a=t.parsingConfig).name="gfm",a.gitHubSpice=!1),this.codemirror=B.fromTextArea(e,{mode:a,backdrop:s,theme:"paper",tabSize:void 0!=t.tabSize?t.tabSize:2,indentUnit:void 0!=t.tabSize?t.tabSize:2,indentWithTabs:!1!==t.indentWithTabs,lineNumbers:!1,autofocus:!0===t.autofocus,extraKeys:r,lineWrapping:!1!==t.lineWrapping,allowDropFileTypes:["text/plain"],placeholder:t.placeholder||e.getAttribute("placeholder")||"",styleSelectedText:void 0==t.styleSelectedText||t.styleSelectedText,inputStyle:"textarea"}),!0===t.forceSync){var c=this.codemirror;c.on("change",function(){c.save()})}this.gui={},!1!==t.toolbar&&(this.gui.toolbar=this.createToolbar()),!1!==t.status&&(this.gui.statusbar=this.createStatusbar()),void 0!=t.autosave&&!0===t.autosave.enabled&&this.autosave(),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element;var u=this.codemirror;setTimeout(function(){u.refresh()}.bind(u),0)}},P.prototype.autosave=function(){if(O()){var e=this;if(void 0==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to use the autosave feature");null!=e.element.form&&void 0!=e.element.form&&e.element.form.addEventListener("submit",function(){localStorage.removeItem("smde_"+e.options.autosave.uniqueId)}),!0!==this.options.autosave.loaded&&("string"==typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&""!=localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0),localStorage.setItem("smde_"+this.options.autosave.uniqueId,e.value());var t=document.getElementById("autosaved");if(null!=t&&void 0!=t&&""!=t){var n=new Date,i=n.getHours(),r=n.getMinutes(),o="am",a=i;a>=12&&(a=i-12,o="pm"),0==a&&(a=12),r=r<10?"0"+r:r,t.innerHTML="Autosaved: "+a+":"+r+" "+o}this.autosaveTimeoutId=setTimeout(function(){e.autosave()},this.options.autosave.delay||1e4)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},P.prototype.clearAutosavedValue=function(){if(O()){if(void 0==this.options.autosave||void 0==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to clear the autosave value");localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},P.prototype.createSideBySide=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;n&&/editor-preview-side/.test(n.className)||((n=document.createElement("div")).className="editor-preview-side",t.parentNode.insertBefore(n,t.nextSibling));var i=!1,r=!1;return e.on("scroll",function(e){if(i)i=!1;else{r=!0;var t=e.getScrollInfo().height-e.getScrollInfo().clientHeight,o=parseFloat(e.getScrollInfo().top)/t,a=(n.scrollHeight-n.clientHeight)*o;n.scrollTop=a}}),n.onscroll=function(){if(r)r=!1;else{i=!0;var t=n.scrollHeight-n.clientHeight,o=parseFloat(n.scrollTop)/t,a=(e.getScrollInfo().height-e.getScrollInfo().clientHeight)*o;e.scrollTo(0,a)}},n},P.prototype.createToolbar=function(e){if((e=e||this.options.toolbar)&&0!==e.length){var t;for(t=0;tp,.editor-preview>p{margin-top:0}.editor-preview pre,.editor-preview-side pre{background:#eee;margin-bottom:10px}.editor-preview table td,.editor-preview table th,.editor-preview-side table td,.editor-preview-side table th{border:1px solid #ddd;padding:5px}.CodeMirror .CodeMirror-code .cm-tag{color:#63a35c}.CodeMirror .CodeMirror-code .cm-attribute{color:#795da3}.CodeMirror .CodeMirror-code .cm-string{color:#183691}.CodeMirror .CodeMirror-selected{background:#d9d9d9}.CodeMirror .CodeMirror-code .cm-header-1{font-size:200%;line-height:200%}.CodeMirror .CodeMirror-code .cm-header-2{font-size:160%;line-height:160%}.CodeMirror .CodeMirror-code .cm-header-3{font-size:125%;line-height:125%}.CodeMirror .CodeMirror-code .cm-header-4{font-size:110%;line-height:110%}.CodeMirror .CodeMirror-code .cm-comment{background:rgba(0,0,0,.05);border-radius:2px}.CodeMirror .CodeMirror-code .cm-link{color:#7f8c8d}.CodeMirror .CodeMirror-code .cm-url{color:#aab2b3}.CodeMirror .CodeMirror-code .cm-strikethrough{text-decoration:line-through}.CodeMirror .CodeMirror-placeholder{opacity:.5}.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:rgba(255,0,0,.15)}'}),define("highlight/lib/index",["require","exports","module","./highlight","./languages/1c","./languages/abnf","./languages/accesslog","./languages/actionscript","./languages/ada","./languages/apache","./languages/applescript","./languages/cpp","./languages/arduino","./languages/armasm","./languages/xml","./languages/asciidoc","./languages/aspectj","./languages/autohotkey","./languages/autoit","./languages/avrasm","./languages/awk","./languages/axapta","./languages/bash","./languages/basic","./languages/bnf","./languages/brainfuck","./languages/cal","./languages/capnproto","./languages/ceylon","./languages/clojure","./languages/clojure-repl","./languages/cmake","./languages/coffeescript","./languages/coq","./languages/cos","./languages/crmsh","./languages/crystal","./languages/cs","./languages/csp","./languages/css","./languages/d","./languages/markdown","./languages/dart","./languages/delphi","./languages/diff","./languages/django","./languages/dns","./languages/dockerfile","./languages/dos","./languages/dsconfig","./languages/dts","./languages/dust","./languages/ebnf","./languages/elixir","./languages/elm","./languages/ruby","./languages/erb","./languages/erlang-repl","./languages/erlang","./languages/excel","./languages/fix","./languages/fortran","./languages/fsharp","./languages/gams","./languages/gauss","./languages/gcode","./languages/gherkin","./languages/glsl","./languages/go","./languages/golo","./languages/gradle","./languages/groovy","./languages/haml","./languages/handlebars","./languages/haskell","./languages/haxe","./languages/hsp","./languages/htmlbars","./languages/http","./languages/inform7","./languages/ini","./languages/irpf90","./languages/java","./languages/javascript","./languages/json","./languages/julia","./languages/kotlin","./languages/lasso","./languages/ldif","./languages/less","./languages/lisp","./languages/livecodeserver","./languages/livescript","./languages/lsl","./languages/lua","./languages/makefile","./languages/mathematica","./languages/matlab","./languages/maxima","./languages/mel","./languages/mercury","./languages/mipsasm","./languages/mizar","./languages/perl","./languages/mojolicious","./languages/monkey","./languages/moonscript","./languages/nginx","./languages/nimrod","./languages/nix","./languages/nsis","./languages/objectivec","./languages/ocaml","./languages/openscad","./languages/oxygene","./languages/parser3","./languages/pf","./languages/php","./languages/pony","./languages/powershell","./languages/processing","./languages/profile","./languages/prolog","./languages/protobuf","./languages/puppet","./languages/purebasic","./languages/python","./languages/q","./languages/qml","./languages/r","./languages/rib","./languages/roboconf","./languages/rsl","./languages/ruleslanguage","./languages/rust","./languages/scala","./languages/scheme","./languages/scilab","./languages/scss","./languages/smali","./languages/smalltalk","./languages/sml","./languages/sqf","./languages/sql","./languages/stan","./languages/stata","./languages/step21","./languages/stylus","./languages/subunit","./languages/swift","./languages/taggerscript","./languages/yaml","./languages/tap","./languages/tcl","./languages/tex","./languages/thrift","./languages/tp","./languages/twig","./languages/typescript","./languages/vala","./languages/vbnet","./languages/vbscript","./languages/vbscript-html","./languages/verilog","./languages/vhdl","./languages/vim","./languages/x86asm","./languages/xl","./languages/xquery","./languages/zephir"],function(e,t,n){var i=e("./highlight");i.registerLanguage("1c",e("./languages/1c")),i.registerLanguage("abnf",e("./languages/abnf")),i.registerLanguage("accesslog",e("./languages/accesslog")),i.registerLanguage("actionscript",e("./languages/actionscript")),i.registerLanguage("ada",e("./languages/ada")),i.registerLanguage("apache",e("./languages/apache")),i.registerLanguage("applescript",e("./languages/applescript")),i.registerLanguage("cpp",e("./languages/cpp")),i.registerLanguage("arduino",e("./languages/arduino")),i.registerLanguage("armasm",e("./languages/armasm")),i.registerLanguage("xml",e("./languages/xml")),i.registerLanguage("asciidoc",e("./languages/asciidoc")),i.registerLanguage("aspectj",e("./languages/aspectj")),i.registerLanguage("autohotkey",e("./languages/autohotkey")),i.registerLanguage("autoit",e("./languages/autoit")),i.registerLanguage("avrasm",e("./languages/avrasm")),i.registerLanguage("awk",e("./languages/awk")),i.registerLanguage("axapta",e("./languages/axapta")),i.registerLanguage("bash",e("./languages/bash")),i.registerLanguage("basic",e("./languages/basic")),i.registerLanguage("bnf",e("./languages/bnf")),i.registerLanguage("brainfuck",e("./languages/brainfuck")),i.registerLanguage("cal",e("./languages/cal")),i.registerLanguage("capnproto",e("./languages/capnproto")),i.registerLanguage("ceylon",e("./languages/ceylon")),i.registerLanguage("clojure",e("./languages/clojure")),i.registerLanguage("clojure-repl",e("./languages/clojure-repl")),i.registerLanguage("cmake",e("./languages/cmake")),i.registerLanguage("coffeescript",e("./languages/coffeescript")),i.registerLanguage("coq",e("./languages/coq")),i.registerLanguage("cos",e("./languages/cos")),i.registerLanguage("crmsh",e("./languages/crmsh")),i.registerLanguage("crystal",e("./languages/crystal")),i.registerLanguage("cs",e("./languages/cs")),i.registerLanguage("csp",e("./languages/csp")),i.registerLanguage("css",e("./languages/css")),i.registerLanguage("d",e("./languages/d")),i.registerLanguage("markdown",e("./languages/markdown")),i.registerLanguage("dart",e("./languages/dart")),i.registerLanguage("delphi",e("./languages/delphi")),i.registerLanguage("diff",e("./languages/diff")),i.registerLanguage("django",e("./languages/django")),i.registerLanguage("dns",e("./languages/dns")),i.registerLanguage("dockerfile",e("./languages/dockerfile")),i.registerLanguage("dos",e("./languages/dos")),i.registerLanguage("dsconfig",e("./languages/dsconfig")),i.registerLanguage("dts",e("./languages/dts")),i.registerLanguage("dust",e("./languages/dust")),i.registerLanguage("ebnf",e("./languages/ebnf")),i.registerLanguage("elixir",e("./languages/elixir")),i.registerLanguage("elm",e("./languages/elm")),i.registerLanguage("ruby",e("./languages/ruby")),i.registerLanguage("erb",e("./languages/erb")),i.registerLanguage("erlang-repl",e("./languages/erlang-repl")),i.registerLanguage("erlang",e("./languages/erlang")),i.registerLanguage("excel",e("./languages/excel")),i.registerLanguage("fix",e("./languages/fix")),i.registerLanguage("fortran",e("./languages/fortran")),i.registerLanguage("fsharp",e("./languages/fsharp")),i.registerLanguage("gams",e("./languages/gams")),i.registerLanguage("gauss",e("./languages/gauss")),i.registerLanguage("gcode",e("./languages/gcode")),i.registerLanguage("gherkin",e("./languages/gherkin")),i.registerLanguage("glsl",e("./languages/glsl")),i.registerLanguage("go",e("./languages/go")),i.registerLanguage("golo",e("./languages/golo")),i.registerLanguage("gradle",e("./languages/gradle")),i.registerLanguage("groovy",e("./languages/groovy")),i.registerLanguage("haml",e("./languages/haml")),i.registerLanguage("handlebars",e("./languages/handlebars")),i.registerLanguage("haskell",e("./languages/haskell")),i.registerLanguage("haxe",e("./languages/haxe")),i.registerLanguage("hsp",e("./languages/hsp")),i.registerLanguage("htmlbars",e("./languages/htmlbars")),i.registerLanguage("http",e("./languages/http")),i.registerLanguage("inform7",e("./languages/inform7")),i.registerLanguage("ini",e("./languages/ini")),i.registerLanguage("irpf90",e("./languages/irpf90")),i.registerLanguage("java",e("./languages/java")),i.registerLanguage("javascript",e("./languages/javascript")),i.registerLanguage("json",e("./languages/json")),i.registerLanguage("julia",e("./languages/julia")),i.registerLanguage("kotlin",e("./languages/kotlin")),i.registerLanguage("lasso",e("./languages/lasso")),i.registerLanguage("ldif",e("./languages/ldif")),i.registerLanguage("less",e("./languages/less")),i.registerLanguage("lisp",e("./languages/lisp")),i.registerLanguage("livecodeserver",e("./languages/livecodeserver")),i.registerLanguage("livescript",e("./languages/livescript")),i.registerLanguage("lsl",e("./languages/lsl")),i.registerLanguage("lua",e("./languages/lua")),i.registerLanguage("makefile",e("./languages/makefile")),i.registerLanguage("mathematica",e("./languages/mathematica")),i.registerLanguage("matlab",e("./languages/matlab")),i.registerLanguage("maxima",e("./languages/maxima")),i.registerLanguage("mel",e("./languages/mel")),i.registerLanguage("mercury",e("./languages/mercury")),i.registerLanguage("mipsasm",e("./languages/mipsasm")),i.registerLanguage("mizar",e("./languages/mizar")),i.registerLanguage("perl",e("./languages/perl")),i.registerLanguage("mojolicious",e("./languages/mojolicious")),i.registerLanguage("monkey",e("./languages/monkey")),i.registerLanguage("moonscript",e("./languages/moonscript")),i.registerLanguage("nginx",e("./languages/nginx")),i.registerLanguage("nimrod",e("./languages/nimrod")),i.registerLanguage("nix",e("./languages/nix")),i.registerLanguage("nsis",e("./languages/nsis")),i.registerLanguage("objectivec",e("./languages/objectivec")),i.registerLanguage("ocaml",e("./languages/ocaml")),i.registerLanguage("openscad",e("./languages/openscad")),i.registerLanguage("oxygene",e("./languages/oxygene")),i.registerLanguage("parser3",e("./languages/parser3")),i.registerLanguage("pf",e("./languages/pf")),i.registerLanguage("php",e("./languages/php")),i.registerLanguage("pony",e("./languages/pony")),i.registerLanguage("powershell",e("./languages/powershell")),i.registerLanguage("processing",e("./languages/processing")),i.registerLanguage("profile",e("./languages/profile")),i.registerLanguage("prolog",e("./languages/prolog")),i.registerLanguage("protobuf",e("./languages/protobuf")),i.registerLanguage("puppet",e("./languages/puppet")),i.registerLanguage("purebasic",e("./languages/purebasic")),i.registerLanguage("python",e("./languages/python")),i.registerLanguage("q",e("./languages/q")),i.registerLanguage("qml",e("./languages/qml")),i.registerLanguage("r",e("./languages/r")),i.registerLanguage("rib",e("./languages/rib")),i.registerLanguage("roboconf",e("./languages/roboconf")),i.registerLanguage("rsl",e("./languages/rsl")),i.registerLanguage("ruleslanguage",e("./languages/ruleslanguage")),i.registerLanguage("rust",e("./languages/rust")),i.registerLanguage("scala",e("./languages/scala")),i.registerLanguage("scheme",e("./languages/scheme")),i.registerLanguage("scilab",e("./languages/scilab")),i.registerLanguage("scss",e("./languages/scss")),i.registerLanguage("smali",e("./languages/smali")),i.registerLanguage("smalltalk",e("./languages/smalltalk")),i.registerLanguage("sml",e("./languages/sml")),i.registerLanguage("sqf",e("./languages/sqf")),i.registerLanguage("sql",e("./languages/sql")),i.registerLanguage("stan",e("./languages/stan")),i.registerLanguage("stata",e("./languages/stata")),i.registerLanguage("step21",e("./languages/step21")),i.registerLanguage("stylus",e("./languages/stylus")),i.registerLanguage("subunit",e("./languages/subunit")),i.registerLanguage("swift",e("./languages/swift")),i.registerLanguage("taggerscript",e("./languages/taggerscript")),i.registerLanguage("yaml",e("./languages/yaml")),i.registerLanguage("tap",e("./languages/tap")),i.registerLanguage("tcl",e("./languages/tcl")),i.registerLanguage("tex",e("./languages/tex")),i.registerLanguage("thrift",e("./languages/thrift")),i.registerLanguage("tp",e("./languages/tp")),i.registerLanguage("twig",e("./languages/twig")),i.registerLanguage("typescript",e("./languages/typescript")),i.registerLanguage("vala",e("./languages/vala")),i.registerLanguage("vbnet",e("./languages/vbnet")),i.registerLanguage("vbscript",e("./languages/vbscript")),i.registerLanguage("vbscript-html",e("./languages/vbscript-html")),i.registerLanguage("verilog",e("./languages/verilog")),i.registerLanguage("vhdl",e("./languages/vhdl")),i.registerLanguage("vim",e("./languages/vim")),i.registerLanguage("x86asm",e("./languages/x86asm")),i.registerLanguage("xl",e("./languages/xl")),i.registerLanguage("xquery",e("./languages/xquery")),i.registerLanguage("zephir",e("./languages/zephir")),n.exports=i}),define("highlight",["highlight/lib/index"],function(e){return e}),define("text!highlight/styles/github.css",["module"],function(e){e.exports="/*\n\ngithub.com style (c) Vasily Polovnyov \n\n*/\n\n.hljs {\n display: block;\n overflow-x: auto;\n padding: 0.5em;\n color: #333;\n background: #f8f8f8;\n}\n\n.hljs-comment,\n.hljs-quote {\n color: #998;\n font-style: italic;\n}\n\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-subst {\n color: #333;\n font-weight: bold;\n}\n\n.hljs-number,\n.hljs-literal,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag .hljs-attr {\n color: #008080;\n}\n\n.hljs-string,\n.hljs-doctag {\n color: #d14;\n}\n\n.hljs-title,\n.hljs-section,\n.hljs-selector-id {\n color: #900;\n font-weight: bold;\n}\n\n.hljs-subst {\n font-weight: normal;\n}\n\n.hljs-type,\n.hljs-class .hljs-title {\n color: #458;\n font-weight: bold;\n}\n\n.hljs-tag,\n.hljs-name,\n.hljs-attribute {\n color: #000080;\n font-weight: normal;\n}\n\n.hljs-regexp,\n.hljs-link {\n color: #009926;\n}\n\n.hljs-symbol,\n.hljs-bullet {\n color: #990073;\n}\n\n.hljs-built_in,\n.hljs-builtin-name {\n color: #0086b3;\n}\n\n.hljs-meta {\n color: #999;\n font-weight: bold;\n}\n\n.hljs-deletion {\n background: #fdd;\n}\n\n.hljs-addition {\n background: #dfd;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n"}),function(e){function t(t){if("string"==typeof t.data&&(t.data={keys:t.data}),t.data&&t.data.keys&&"string"==typeof t.data.keys){var n=t.handler,i=t.data.keys.toLowerCase().split(" ");t.handler=function(t){if(this===t.target||!(e.hotkeys.options.filterInputAcceptingElements&&e.hotkeys.textInputTypes.test(t.target.nodeName)||e.hotkeys.options.filterContentEditable&&e(t.target).attr("contenteditable")||e.hotkeys.options.filterTextInputs&&e.inArray(t.target.type,e.hotkeys.textAcceptingInputTypes)>-1)){var r="keypress"!==t.type&&e.hotkeys.specialKeys[t.which],o=String.fromCharCode(t.which).toLowerCase(),a="",s={};e.each(["alt","ctrl","shift"],function(e,n){t[n+"Key"]&&r!==n&&(a+=n+"+")}),t.metaKey&&!t.ctrlKey&&"meta"!==r&&(a+="meta+"),t.metaKey&&"meta"!==r&&a.indexOf("alt+ctrl+shift+")>-1&&(a=a.replace("alt+ctrl+shift+","hyper+")),r?s[a+r]=!0:(s[a+o]=!0,s[a+e.hotkeys.shiftNums[o]]=!0,"shift+"===a&&(s[e.hotkeys.shiftNums[o]]=!0));for(var l=0,c=i.length;l","/":"?","\\":"|"},textAcceptingInputTypes:["text","password","number","email","url","range","date","month","week","time","datetime","datetime-local","search","color","tel"],textInputTypes:/textarea|input|select/i,options:{filterInputAcceptingElements:!0,filterTextInputs:!0,filterContentEditable:!0 -}},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:t}})}(jQuery||this.jQuery||window.jQuery),define("hotkeys/jquery.hotkeys",["jquery"],function(){}),define("hotkeys",["hotkeys/jquery.hotkeys"],function(e){return e}),function(e){e.tablesort=function(t,n){var i=this;this.$table=t,this.$thead=this.$table.find("thead"),this.settings=e.extend({},e.tablesort.defaults,n),this.$sortCells=this.$thead.length>0?this.$thead.find("th:not(.no-sort)"):this.$table.find("th:not(.no-sort)"),this.$sortCells.on("click.tablesort",function(){i.sort(e(this))}),this.index=null,this.$th=null,this.direction=null},e.tablesort.prototype={sort:function(t,n){var i=new Date,r=this,o=this.$table,a=o.find("tbody").length>0?o.find("tbody"):o,s=a.find("tr").has("td, th"),l=s.find(":nth-child("+(t.index()+1)+")").filter("td, th"),c=t.data().sortBy,u=[],d=l.map(function(n,i){return c?"function"==typeof c?c(e(t),e(i),r):c:null!=e(this).data().sortValue?e(this).data().sortValue:e(this).text()});0!==d.length&&(this.index!==t.index()?(this.direction="asc",this.index=t.index()):"asc"!==n&&"desc"!==n?this.direction="asc"===this.direction?"desc":"asc":this.direction=n,n="asc"==this.direction?1:-1,r.$table.trigger("tablesort:start",[r]),r.log("Sorting by "+this.index+" "+this.direction),r.$table.css("display"),setTimeout(function(){r.$sortCells.removeClass(r.settings.asc+" "+r.settings.desc);for(var o=0,c=d.length;o2e3?200:10))},log:function(t){(e.tablesort.DEBUG||this.settings.debug)&&console&&console.log&&console.log("[tablesort] "+t)},destroy:function(){return this.$sortCells.off("click.tablesort"),this.$table.data("tablesort",null),null}},e.tablesort.DEBUG=!1,e.tablesort.defaults={debug:e.tablesort.DEBUG,asc:"sorted ascending",desc:"sorted descending",compare:function(e,t){return e>t?1:e'+i.options.close_text+"","none"===i.options.animation&&(i.options.animation_speed=0,i.options.after_callback_delay=0),e(n).on("click.Modaal",function(e){e.preventDefault();var t;if(i.lastFocus=document.activeElement,i.options.should_open!==!1&&("function"!=typeof i.options.should_open||i.options.should_open()!==!1)){switch(i.options.before_open.call(i,e),i.options.type){case"inline":i.create_basic();break;case"ajax":t=i.options.source(i.$elem,i.$elem.attr("href")),i.fetch_ajax(t);break;case"confirm":i.options.is_locked=!0,i.create_confirm();break;case"image":i.create_image();break;case"iframe":t=i.options.source(i.$elem,i.$elem.attr("href")),i.create_iframe(t);break;case"video":i.create_video(i.$elem.attr("href"));break;case"instagram":i.create_instagram()}i.watch_events()}}),i.options.start_open===!0&&e(n).click()},watch_events:function(){var t=this;t.dom.off("click.Modaal keyup.Modaal keydown.Modaal"),t.dom.on("keydown.Modaal",function(n){var i=n.keyCode,r=n.target;9==i&&t.scope.is_open&&(e.contains(document.getElementById(t.scope.id),r)||e("#"+t.scope.id).find('*[tabindex="0"]').focus())}),t.dom.on("keyup.Modaal",function(n){var i=n.keyCode,r=n.target;return n.shiftKey&&9==n.keyCode&&t.scope.is_open&&(e.contains(document.getElementById(t.scope.id),r)||e("#"+t.scope.id).find(".modaal-close").focus()),!t.options.is_locked&&27==i&&t.scope.is_open?!e(document.activeElement).is("input:not(:checkbox):not(:radio)")&&void t.modaal_close():"image"==t.options.type?(37==i&&t.scope.is_open&&!e("#"+t.scope.id+" .modaal-gallery-prev").hasClass("is_hidden")&&t.gallery_update("prev"),void(39==i&&t.scope.is_open&&!e("#"+t.scope.id+" .modaal-gallery-next").hasClass("is_hidden")&&t.gallery_update("next"))):void 0}),t.dom.on("click.Modaal",function(n){var i=e(n.target);if(!t.options.is_locked&&(t.options.overlay_close&&i.is(".modaal-inner-wrapper")||i.is(".modaal-close")||i.closest(".modaal-close").length))return void t.modaal_close();if(i.is(".modaal-confirm-btn"))return i.is(".modaal-ok")&&t.options.confirm_callback.call(t,t.lastFocus),i.is(".modaal-cancel")&&t.options.confirm_cancel_callback.call(t,t.lastFocus),void t.modaal_close();if(i.is(".modaal-gallery-control")){if(i.hasClass("is_hidden"))return;return i.is(".modaal-gallery-prev")&&t.gallery_update("prev"),void(i.is(".modaal-gallery-next")&&t.gallery_update("next"))}})},build_modal:function(e){var t=this,n="";"instagram"==t.options.type&&(n=" modaal-instagram");var i,r="video"==t.options.type?"modaal-video-wrap":"modaal-content";switch(t.options.animation){case"fade":i=" modaal-start_fade";break;case"slide-down":i=" modaal-start_slidedown";break;default:i=" modaal-start_none"}var o="";t.options.fullscreen&&(o=" modaal-fullscreen"),""===t.options.custom_class&&"undefined"==typeof t.options.custom_class||(t.options.custom_class=" "+t.options.custom_class);var a="";t.options.width&&t.options.height&&"number"==typeof t.options.width&&"number"==typeof t.options.height?a=' style="max-width:'+t.options.width+"px;height:"+t.options.height+'px;overflow:auto;"':t.options.width&&"number"==typeof t.options.width?a=' style="max-width:'+t.options.width+'px;"':t.options.height&&"number"==typeof t.options.height&&(a=' style="height:'+t.options.height+'px;overflow:auto;"'),("image"==t.options.type||"video"==t.options.type||"instagram"==t.options.type||t.options.fullscreen)&&(a="");var s='
    ';"video"!=t.options.type&&(s+='
    "),s+='"+t.scope.close_btn,"video"!=t.options.type&&(s+="
    "),s+="
    ",t.dom.append(s),"inline"==t.options.type&&e.appendTo("#"+t.scope.id+" .modaal-content-container"),t.modaal_overlay("show")},create_basic:function(){var t=this,n=t.$elem.is("[href]")?e(t.$elem.attr("href")):t.$elem,i="";n.length?(i=n.contents().clone(!0,!0),n.empty()):i="Content could not be loaded. Please check the source and try again.",t.build_modal(i)},create_instagram:function(){var t=this,n=t.options.instagram_id,i="",r="Instagram photo couldn't be loaded, please check the embed code and try again.";if(t.build_modal('
    '+t.options.loading_content+"
    "),""!=n&&null!==n&&void 0!==n){var o="https://api.instagram.com/oembed?url=http://instagr.am/p/"+n+"/";e.ajax({url:o,dataType:"jsonp",cache:!1,success:function(n){i=n.html;var r=e("#"+t.scope.id+" .modaal-content-container");r.length>0&&(r.removeClass(t.options.loading_class),r.html(i),window.instgrm.Embeds.process())},error:function(){i=r;var n=e("#"+t.scope.id+" .modaal-content-container");n.length>0&&(n.removeClass(t.options.loading_class).addClass(t.options.ajax_error_class),n.html(i))}})}else i=r;return!1},fetch_ajax:function(t){var n=this;null==n.options.accessible_title&&(n.options.accessible_title="Dialog Window"),null!==n.xhr&&(n.xhr.abort(),n.xhr=null),n.build_modal('
    '+n.options.loading_content+"
    "),n.xhr=e.ajax(t,{success:function(t){var i=e("#"+n.scope.id).find(".modaal-content-container");i.length>0&&(i.removeClass(n.options.loading_class),i.html(t),n.options.ajax_success.call(n,i))},error:function(t){if("abort"!=t.statusText){var i=e("#"+n.scope.id+" .modaal-content-container");i.length>0&&(i.removeClass(n.options.loading_class).addClass(n.options.ajax_error_class),i.html("Content could not be loaded. Please check the source and try again."))}}})},create_confirm:function(){var e,t=this;e='

    '+t.options.confirm_title+'

    '+t.options.confirm_content+'
    ",t.build_modal(e)},create_image:function(){var t,n,i=this,r="",o='',a='';if(i.$elem.is("[rel]")){var s=i.$elem.attr("rel"),l=e('[rel="'+s+'"]');l.removeAttr("data-gallery-active","is_active"),i.$elem.attr("data-gallery-active","is_active"),n=l.length-1;var c=[];r='"}r+="
    "+o+a}else{var f=i.$elem.attr("href"),p="",g="",h="";i.$elem.attr("data-modaal-desc")?(h=i.$elem.attr("data-modaal-desc"),p=i.$elem.attr("data-modaal-desc"),g='"):h="Image with no description",r='"}t=r,i.build_modal(t),e(".modaal-gallery-item.is_active").is(".gallery-item-0")&&e(".modaal-gallery-prev").hide(),e(".modaal-gallery-item.is_active").is(".gallery-item-"+n)&&e(".modaal-gallery-next").hide()},gallery_update:function(t){var n=this,i=e("#"+n.scope.id),r=i.find(".modaal-gallery-item"),o=r.length-1;if(0==o)return!1;var a=i.find(".modaal-gallery-prev"),s=i.find(".modaal-gallery-next"),l=250,c=0,u=0,d=i.find(".modaal-gallery-item."+n.private_options.active_class),h="next"==t?d.next(".modaal-gallery-item"):d.prev(".modaal-gallery-item");return n.options.before_image_change.call(n,d,h),("prev"!=t||!i.find(".gallery-item-0").hasClass("is_active"))&&(("next"!=t||!i.find(".gallery-item-"+o).hasClass("is_active"))&&void d.stop().animate({opacity:0},l,function(){h.addClass("is_next").css({position:"absolute",display:"block",opacity:0});var t=e(document).width(),r=t>1140?280:50;c=i.find(".modaal-gallery-item.is_next").width(),u=i.find(".modaal-gallery-item.is_next").height();var f=i.find(".modaal-gallery-item.is_next img").prop("naturalWidth"),p=i.find(".modaal-gallery-item.is_next img").prop("naturalHeight");f>t-r?(c=t-r,i.find(".modaal-gallery-item.is_next").css({width:c}),i.find(".modaal-gallery-item.is_next img").css({width:c}),u=i.find(".modaal-gallery-item.is_next").find("img").height()):(c=f,u=p),i.find(".modaal-gallery-item-wrap").stop().animate({width:c,height:u},l,function(){d.removeClass(n.private_options.active_class+" "+n.options.gallery_active_class).removeAttr("style"),d.find("img").removeAttr("style"),h.addClass(n.private_options.active_class+" "+n.options.gallery_active_class).removeClass("is_next").css("position",""),h.stop().animate({opacity:1},l,function(){e(this).removeAttr("style").css({width:"100%"}),e(this).find("img").css("width","100%"),i.find(".modaal-gallery-item-wrap").removeAttr("style"),n.options.after_image_change.call(n,h)}),i.find(".modaal-gallery-item").removeAttr("tabindex"),i.find(".modaal-gallery-item."+n.private_options.active_class).attr("tabindex","0").focus(),i.find(".modaal-gallery-item."+n.private_options.active_class).is(".gallery-item-0")?a.stop().animate({opacity:0},150,function(){e(this).hide()}):a.stop().css({display:"block",opacity:a.css("opacity")}).animate({opacity:1},150),i.find(".modaal-gallery-item."+n.private_options.active_class).is(".gallery-item-"+o)?s.stop().animate({opacity:0},150,function(){e(this).hide()}):s.stop().css({display:"block",opacity:a.css("opacity")}).animate({opacity:1},150)})}))},create_video:function(e){var t,n=this;t='',n.build_modal('
    '+t+"
    ")},create_iframe:function(e){var t,n=this;t=null!==n.options.width||void 0!==n.options.width||null!==n.options.height||void 0!==n.options.height?'':'
    Please specify a width and height for your iframe
    ',n.build_modal(t)},modaal_open:function(){var t=this,n=e("#"+t.scope.id),i=t.options.animation;"none"===i&&(n.removeClass("modaal-start_none"),t.options.after_open.call(t,n)),"fade"===i&&n.removeClass("modaal-start_fade"),"slide-down"===i&&n.removeClass("modaal-start_slide_down");var r=n;e(".modaal-wrapper *[tabindex=0]").removeAttr("tabindex"),r="image"==t.options.type?e("#"+t.scope.id).find(".modaal-gallery-item."+t.private_options.active_class):n.find(".modaal-iframe-elem").length?n.find(".modaal-iframe-elem"):n.find(".modaal-video-wrap").length?n.find(".modaal-video-wrap"):n.find(".modaal-focus"),r.attr("tabindex","0").focus(),"none"!==i&&setTimeout(function(){t.options.after_open.call(t,n)},t.options.after_callback_delay)},modaal_close:function(){var t=this,n=e("#"+t.scope.id);t.options.before_close.call(t,n),null!==t.xhr&&(t.xhr.abort(),t.xhr=null),"none"===t.options.animation&&n.addClass("modaal-start_none"),"fade"===t.options.animation&&n.addClass("modaal-start_fade"),"slide-down"===t.options.animation&&n.addClass("modaal-start_slide_down"),setTimeout(function(){"inline"==t.options.type&&e("#"+t.scope.id+" .modaal-content-container").contents().clone(!0,!0).appendTo(t.$elem.attr("href")),n.remove(),t.options.after_close.call(t),t.scope.is_open=!1},t.options.after_callback_delay),t.modaal_overlay("hide"),null!=t.lastFocus&&t.lastFocus.focus()},modaal_overlay:function(t){var n=this;"show"==t?(n.scope.is_open=!0,n.options.background_scroll||n.dom.addClass("modaal-noscroll"),n.dom.append('
    '),e("#"+n.scope.id+"_overlay").css("background",n.options.background).stop().animate({opacity:n.options.overlay_opacity},n.options.animation_speed,function(){n.modaal_open()})):"hide"==t&&(n.dom.removeClass("modaal-noscroll"),e("#"+n.scope.id+"_overlay").stop().animate({opacity:0},n.options.animation_speed,function(){e(this).remove()}))}};e.fn.modaal=function(t){return this.each(function(){var i=e(this).data("modaal");if(i){if("string"==typeof t)switch(t){case"close":i.modaal_close()}}else{var r=Object.create(n);r.init(t,this),e.data(this,"modaal",r)}})},e.fn.modaal.options={type:"inline",animation:"fade",animation_speed:300,after_callback_delay:350,is_locked:!1,hide_close:!1,background:"#000",overlay_opacity:"0.8",overlay_close:!0,accessible_title:"Dialog Window",start_open:!1,fullscreen:!1,custom_class:"",background_scroll:!1,should_open:!0,close_text:"Close",close_aria_label:"Close (Press escape to close)",width:null,height:null,before_open:function(){},after_open:function(){},before_close:function(){},after_close:function(){},source:function(e,t){return t},confirm_button_text:"Confirm",confirm_cancel_button_text:"Cancel",confirm_title:"Confirm Title",confirm_content:"

    This is the default confirm dialog content. Replace me through the options

    ",confirm_callback:function(){},confirm_cancel_callback:function(){},gallery_active_class:"gallery_active_item",before_image_change:function(e,t){},after_image_change:function(e){},loading_content:t,loading_class:"is_loading",ajax_error_class:"modaal-error",ajax_success:function(){},instagram_id:null},e(function(){var t=e(".modaal");t.length&&t.each(function(){var t=e(this),n={},i=!1;t.attr("data-modaal-type")&&(i=!0,n.type=t.attr("data-modaal-type")),t.attr("data-modaal-animation")&&(i=!0,n.animation=t.attr("data-modaal-animation")),t.attr("data-modaal-animation-speed")&&(i=!0,n.animation_speed=t.attr("data-modaal-animation-speed")),t.attr("data-modaal-after-callback-delay")&&(i=!0,n.after_callback_delay=t.attr("data-modaal-after-callback-delay")),t.attr("data-modaal-is-locked")&&(i=!0,n.is_locked="true"===t.attr("data-modaal-is-locked")),t.attr("data-modaal-hide-close")&&(i=!0,n.hide_close="true"===t.attr("data-modaal-hide-close")),t.attr("data-modaal-background")&&(i=!0,n.background=t.attr("data-modaal-background")),t.attr("data-modaal-overlay-opacity")&&(i=!0,n.overlay_opacity=t.attr("data-modaal-overlay-opacity")),t.attr("data-modaal-overlay-close")&&(i=!0,n.overlay_close="false"!==t.attr("data-modaal-overlay-close")),t.attr("data-modaal-accessible-title")&&(i=!0,n.accessible_title=t.attr("data-modaal-accessible-title")),t.attr("data-modaal-start-open")&&(i=!0,n.start_open="true"===t.attr("data-modaal-start-open")),t.attr("data-modaal-fullscreen")&&(i=!0,n.fullscreen="true"===t.attr("data-modaal-fullscreen")),t.attr("data-modaal-custom-class")&&(i=!0,n.custom_class=t.attr("data-modaal-custom-class")),t.attr("data-modaal-close-text")&&(i=!0,n.close_text=t.attr("data-modaal-close-text")),t.attr("data-modaal-close-aria-label")&&(i=!0,n.close_aria_label=t.attr("data-modaal-close-aria-label")),t.attr("data-modaal-background-scroll")&&(i=!0,n.background_scroll="true"===t.attr("data-modaal-background-scroll")),t.attr("data-modaal-width")&&(i=!0,n.width=parseInt(t.attr("data-modaal-width"))),t.attr("data-modaal-height")&&(i=!0,n.height=parseInt(t.attr("data-modaal-height"))),t.attr("data-modaal-confirm-button-text")&&(i=!0,n.confirm_button_text=t.attr("data-modaal-confirm-button-text")),t.attr("data-modaal-confirm-cancel-button-text")&&(i=!0,n.confirm_cancel_button_text=t.attr("data-modaal-confirm-cancel-button-text")),t.attr("data-modaal-confirm-title")&&(i=!0,n.confirm_title=t.attr("data-modaal-confirm-title")),t.attr("data-modaal-confirm-content")&&(i=!0,n.confirm_content=t.attr("data-modaal-confirm-content")),t.attr("data-modaal-gallery-active-class")&&(i=!0,n.gallery_active_class=t.attr("data-modaal-gallery-active-class")),t.attr("data-modaal-loading-content")&&(i=!0,n.loading_content=t.attr("data-modaal-loading-content")),t.attr("data-modaal-loading-class")&&(i=!0,n.loading_class=t.attr("data-modaal-loading-class")),t.attr("data-modaal-ajax-error-class")&&(i=!0,n.ajax_error_class=t.attr("data-modaal-ajax-error-class")),t.attr("data-modaal-instagram-id")&&(i=!0,n.instagram_id=t.attr("data-modaal-instagram-id")),i&&t.modaal(n)})})}(jQuery,window,document),define("modaal/dist/js/modaal.min",["jquery"],function(){}),define("modaal",["modaal/dist/js/modaal.min"],function(e){return e}),define("text!modaal/dist/css/modaal.min.css",["module"],function(e){e.exports='/*!\n\tModaal - accessible modals - v0.3.1\n\tby Humaan, for all humans.\n\thttp://humaan.com\n */\n.modaal-noscroll{overflow:hidden}.modaal-accessible-hide,.modaal-close span,.modaal-gallery-control span{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);padding:0!important;border:0!important;height:1px!important;width:1px!important;overflow:hidden}.modaal-overlay,.modaal-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:999;opacity:0}.modaal-wrapper{display:block;z-index:9999;overflow:auto;opacity:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;transition:all .3s ease-in-out}.modaal-wrapper *{box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-backface-visibility:hidden}.modaal-wrapper .modaal-close{border:none;background:0 0;padding:0;-webkit-appearance:none}.modaal-wrapper.modaal-start_none{display:none;opacity:1}.modaal-wrapper.modaal-start_fade{opacity:0}.modaal-wrapper [tabindex="0"]{outline:none!important}.modaal-wrapper.modaal-fullscreen{overflow:hidden}.modaal-outer-wrapper{display:table;position:relative;width:100%;height:100%}.modaal-fullscreen .modaal-outer-wrapper,.modaal-gallery-item img{display:block}.modaal-inner-wrapper{display:table-cell;width:100%;height:100%;position:relative;vertical-align:middle;text-align:center;padding:80px 25px}.modaal-fullscreen .modaal-inner-wrapper{padding:0;display:block;vertical-align:top}.modaal-container{position:relative;display:inline-block;width:100%;margin:auto;text-align:left;color:#000;max-width:1000px;border-radius:0;background:#fff;box-shadow:0 4px 15px rgba(0,0,0,.2);cursor:auto}.modaal-container.is_loading{height:100px;width:100px;overflow:hidden}.modaal-fullscreen .modaal-container{max-width:none;height:100%;overflow:auto}.modaal-close{position:fixed;right:20px;top:20px;color:#fff;cursor:pointer;opacity:1;width:50px;height:50px;background:0 0;border-radius:100%;transition:all .2s ease-in-out}.modaal-close:focus,.modaal-close:hover{outline:none;background:#fff}.modaal-close:focus:after,.modaal-close:focus:before,.modaal-close:hover:after,.modaal-close:hover:before{background:#b93d0c}.modaal-close:after,.modaal-close:before{display:block;content:" ";position:absolute;top:14px;left:23px;width:4px;height:22px;border-radius:4px;background:#fff;transition:background .2s ease-in-out}.modaal-close:before{-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.modaal-close:after{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.modaal-fullscreen .modaal-close{background:#afb7bc;right:10px;top:10px}.modaal-content-container{padding:30px}.modaal-confirm-wrap{padding:30px 0 0;text-align:center;font-size:0}.modaal-confirm-btn{font-size:14px;display:inline-block;margin:0 10px;vertical-align:middle;cursor:pointer;border:none;background:0 0}.modaal-confirm-btn.modaal-ok{padding:10px 15px;color:#fff;background:#555;border-radius:3px;transition:background .2s ease-in-out}.modaal-confirm-btn.modaal-ok:hover{background:#2f2f2f}.modaal-confirm-btn.modaal-cancel{text-decoration:underline}.modaal-confirm-btn.modaal-cancel:hover{text-decoration:none;color:#2f2f2f}@keyframes instaReveal{0%{opacity:0}to{opacity:1}}@-webkit-keyframes instaReveal{0%{opacity:0}to{opacity:1}}.modaal-instagram .modaal-container{width:auto;background:0 0;box-shadow:none!important}.modaal-instagram .modaal-content-container{padding:0;background:0 0}.modaal-instagram .modaal-content-container>blockquote{width:1px!important;height:1px!important;opacity:0!important}.modaal-instagram iframe{opacity:0;margin:-6px!important;border-radius:0!important;width:1000px!important;max-width:800px!important;box-shadow:none!important;-webkit-animation:instaReveal 1s linear forwards;animation:instaReveal 1s linear forwards}.modaal-image .modaal-inner-wrapper{padding-left:140px;padding-right:140px}.modaal-image .modaal-container{width:auto;max-width:100%}.modaal-gallery-wrap{position:relative;color:#fff}.modaal-gallery-item{display:none}.modaal-gallery-item.is_active{display:block}.modaal-gallery-label{position:absolute;left:0;width:100%;margin:20px 0 0;font-size:18px;text-align:center;color:#fff}.modaal-gallery-label:focus{outline:none}.modaal-gallery-control{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);opacity:1;cursor:pointer;color:#fff;width:50px;height:50px;background:0 0;border:none;border-radius:100%;transition:all .2s ease-in-out}.modaal-gallery-control.is_hidden{opacity:0;cursor:default}.modaal-gallery-control:focus,.modaal-gallery-control:hover{outline:none;background:#fff}.modaal-gallery-control:focus:after,.modaal-gallery-control:focus:before,.modaal-gallery-control:hover:after,.modaal-gallery-control:hover:before{background:#afb7bc}.modaal-gallery-control:after,.modaal-gallery-control:before{display:block;content:" ";position:absolute;top:16px;left:25px;width:4px;height:18px;border-radius:4px;background:#fff;transition:background .2s ease-in-out}.modaal-gallery-control:before{margin:-5px 0 0;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.modaal-gallery-control:after{margin:5px 0 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.modaal-gallery-next{left:100%;margin-left:40px}.modaal-gallery-prev{right:100%;margin-right:40px}.modaal-gallery-prev:after,.modaal-gallery-prev:before{left:22px}.modaal-gallery-prev:before{margin:5px 0 0;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.modaal-gallery-prev:after{margin:-5px 0 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.modaal-video-wrap{margin:auto 50px;position:relative}.modaal-video-container{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;box-shadow:0 0 10px rgba(0,0,0,.3);background:#000;max-width:1300px;margin-left:auto;margin-right:auto}.modaal-video-container embed,.modaal-video-container iframe,.modaal-video-container object{position:absolute;top:0;left:0;width:100%;height:100%}.modaal-iframe .modaal-content,.modaal-iframe-elem{width:100%;height:100%}.modaal-iframe-elem{display:block}@media only screen and (min-width:1400px){.modaal-video-container{padding-bottom:0;height:731px}}@media only screen and (max-width:1140px){.modaal-image .modaal-inner-wrapper{padding-left:25px;padding-right:25px}.modaal-gallery-control{top:auto;bottom:20px;-webkit-transform:none;-ms-transform:none;transform:none;background:rgba(0,0,0,.7)}.modaal-gallery-control:after,.modaal-gallery-control:before{background:#fff}.modaal-gallery-next{left:auto;right:20px}.modaal-gallery-prev{left:20px;right:auto}}@media screen and (max-width:900px){.modaal-instagram iframe{width:500px!important}}@media screen and (max-height:1100px){.modaal-instagram iframe{width:700px!important}}@media screen and (max-height:1000px){.modaal-inner-wrapper{padding-top:60px;padding-bottom:60px}.modaal-instagram iframe{width:600px!important}}@media screen and (max-height:900px){.modaal-instagram iframe{width:500px!important}.modaal-video-container{max-width:900px;max-height:510px}}@media only screen and (max-width:600px){.modaal-instagram iframe{width:280px!important}}@media only screen and (max-height:820px){.modaal-gallery-label{display:none}}.modaal-loading-spinner{background:0 0;position:absolute;width:200px;height:200px;top:50%;left:50%;margin:-100px 0 0 -100px;-webkit-transform:scale(.25);-ms-transform:scale(.25);transform:scale(.25)}@-webkit-keyframes modaal-loading-spinner{0%{opacity:1;-ms-transform:scale(1.5);-webkit-transform:scale(1.5);transform:scale(1.5)}to{opacity:.1;-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}}@keyframes modaal-loading-spinner{0%{opacity:1;-ms-transform:scale(1.5);-webkit-transform:scale(1.5);transform:scale(1.5)}to{opacity:.1;-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}}.modaal-loading-spinner>div{width:24px;height:24px;margin-left:4px;margin-top:4px;position:absolute}.modaal-loading-spinner>div>div{width:100%;height:100%;border-radius:15px;background:#fff}.modaal-loading-spinner>div:nth-of-type(1)>div{-webkit-animation:modaal-loading-spinner 1s linear infinite;animation:modaal-loading-spinner 1s linear infinite;-webkit-animation-delay:0s;animation-delay:0s}.modaal-loading-spinner>div:nth-of-type(2)>div,.modaal-loading-spinner>div:nth-of-type(3)>div{-ms-animation:modaal-loading-spinner 1s linear infinite;-moz-animation:modaal-loading-spinner 1s linear infinite;-o-animation:modaal-loading-spinner 1s linear infinite}.modaal-loading-spinner>div:nth-of-type(1){-ms-transform:translate(84px,84px) rotate(45deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(45deg) translate(70px,0);transform:translate(84px,84px) rotate(45deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(2)>div{-webkit-animation:modaal-loading-spinner 1s linear infinite;animation:modaal-loading-spinner 1s linear infinite;-webkit-animation-delay:.12s;animation-delay:.12s}.modaal-loading-spinner>div:nth-of-type(2){-ms-transform:translate(84px,84px) rotate(90deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(90deg) translate(70px,0);transform:translate(84px,84px) rotate(90deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(3)>div,.modaal-loading-spinner>div:nth-of-type(4)>div,.modaal-loading-spinner>div:nth-of-type(5)>div{-webkit-animation:modaal-loading-spinner 1s linear infinite;animation:modaal-loading-spinner 1s linear infinite;-webkit-animation-delay:.25s;animation-delay:.25s}.modaal-loading-spinner>div:nth-of-type(4)>div,.modaal-loading-spinner>div:nth-of-type(5)>div{-ms-animation:modaal-loading-spinner 1s linear infinite;-moz-animation:modaal-loading-spinner 1s linear infinite;-o-animation:modaal-loading-spinner 1s linear infinite;-webkit-animation-delay:.37s;animation-delay:.37s}.modaal-loading-spinner>div:nth-of-type(3){-ms-transform:translate(84px,84px) rotate(135deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(135deg) translate(70px,0);transform:translate(84px,84px) rotate(135deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(4){-ms-transform:translate(84px,84px) rotate(180deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(180deg) translate(70px,0);transform:translate(84px,84px) rotate(180deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(5)>div{-webkit-animation-delay:.5s;animation-delay:.5s}.modaal-loading-spinner>div:nth-of-type(6)>div,.modaal-loading-spinner>div:nth-of-type(7)>div{-ms-animation:modaal-loading-spinner 1s linear infinite;-moz-animation:modaal-loading-spinner 1s linear infinite;-o-animation:modaal-loading-spinner 1s linear infinite}.modaal-loading-spinner>div:nth-of-type(5){-ms-transform:translate(84px,84px) rotate(225deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(225deg) translate(70px,0);transform:translate(84px,84px) rotate(225deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(6)>div,.modaal-loading-spinner>div:nth-of-type(7)>div,.modaal-loading-spinner>div:nth-of-type(8)>div{-webkit-animation:modaal-loading-spinner 1s linear infinite;animation:modaal-loading-spinner 1s linear infinite;-webkit-animation-delay:.62s;animation-delay:.62s}.modaal-loading-spinner>div:nth-of-type(6){-ms-transform:translate(84px,84px) rotate(270deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(270deg) translate(70px,0);transform:translate(84px,84px) rotate(270deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(7)>div,.modaal-loading-spinner>div:nth-of-type(8)>div{-webkit-animation-delay:.75s;animation-delay:.75s}.modaal-loading-spinner>div:nth-of-type(7){-ms-transform:translate(84px,84px) rotate(315deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(315deg) translate(70px,0);transform:translate(84px,84px) rotate(315deg) translate(70px,0)}.modaal-loading-spinner>div:nth-of-type(8)>div{-webkit-animation-delay:.87s;animation-delay:.87s}.modaal-loading-spinner>div:nth-of-type(8){-ms-transform:translate(84px,84px) rotate(360deg) translate(70px,0);-webkit-transform:translate(84px,84px) rotate(360deg) translate(70px,0);transform:translate(84px,84px) rotate(360deg) translate(70px,0)}'; -}),!function(e){"function"==typeof define&&define.amd?define("fullcalendar/dist/fullcalendar.min",["jquery","moment"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("moment")):e(jQuery,moment)}(function(e,t){function n(e){return G(e,Be)}function i(e,t){t.left&&e.css({"border-left-width":1,"margin-left":t.left-1}),t.right&&e.css({"border-right-width":1,"margin-right":t.right-1})}function r(e){e.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function o(){e("body").addClass("fc-not-allowed")}function a(){e("body").removeClass("fc-not-allowed")}function s(t,n,i){var r=Math.floor(n/t.length),o=Math.floor(n-r*(t.length-1)),a=[],s=[],c=[],u=0;l(t),t.each(function(n,i){var l=n===t.length-1?o:r,d=e(i).outerHeight(!0);d *").each(function(t,i){var r=e(i).outerWidth();r>n&&(n=r)}),n++,t.width(n),n}function u(e,t){var n,i=e.add(t);return i.css({position:"relative",left:-1}),n=e.outerHeight()-t.outerHeight(),i.css({position:"",left:""}),n}function d(t){var n=t.css("position"),i=t.parents().filter(function(){var t=e(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&i.length?i:e(t[0].ownerDocument||document)}function h(e,t){var n=e.offset(),i=n.left-(t?t.left:0),r=n.top-(t?t.top:0);return{left:i,right:i+e.outerWidth(),top:r,bottom:r+e.outerHeight()}}function f(e,t){var n=e.offset(),i=g(e),r=n.left+y(e,"border-left-width")+i.left-(t?t.left:0),o=n.top+y(e,"border-top-width")+i.top-(t?t.top:0);return{left:r,right:r+e[0].clientWidth,top:o,bottom:o+e[0].clientHeight}}function p(e,t){var n=e.offset(),i=n.left+y(e,"border-left-width")+y(e,"padding-left")-(t?t.left:0),r=n.top+y(e,"border-top-width")+y(e,"padding-top")-(t?t.top:0);return{left:i,right:i+e.width(),top:r,bottom:r+e.height()}}function g(e){var t,n=e.innerWidth()-e[0].clientWidth,i=e.innerHeight()-e[0].clientHeight;return n=m(n),i=m(i),t={left:0,right:0,top:0,bottom:i},v()&&"rtl"==e.css("direction")?t.left=n:t.right=n,t}function m(e){return e=Math.max(0,e),e=Math.round(e)}function v(){return null===We&&(We=b()),We}function b(){var t=e("
    ").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),n=t.children(),i=n.offset().left>t.offset().left;return t.remove(),i}function y(e,t){return parseFloat(e.css(t))||0}function x(e){return 1==e.which&&!e.ctrlKey}function w(e){var t=e.originalEvent.touches;return t&&t.length?t[0].pageX:e.pageX}function k(e){var t=e.originalEvent.touches;return t&&t.length?t[0].pageY:e.pageY}function S(e){return/^touch/.test(e.type)}function C(e){e.addClass("fc-unselectable").on("selectstart",E)}function T(e){e.removeClass("fc-unselectable").off("selectstart",E)}function E(e){e.preventDefault()}function L(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.leftl&&a=l?(n=a.clone(),r=!0):(n=l.clone(),r=!1),s<=c?(i=s.clone(),o=!0):(i=c.clone(),o=!1),{start:n,end:i,isStart:r,isEnd:o}}function F(e,n){return t.duration({days:e.clone().stripTime().diff(n.clone().stripTime(),"days"),ms:e.time()-n.time()})}function R(e,n){return t.duration({days:e.clone().stripTime().diff(n.clone().stripTime(),"days")})}function P(e,n,i){return t.duration(Math.round(e.diff(n,i,!0)),i)}function O(e,t){var n,i,r;for(n=0;n=1&&ae(r)));n++);return i}function B(e,n,i){return null!=i?i.diff(n,e,!0):t.isDuration(n)?n.as(e):n.end.diff(n.start,e,!0)}function W(e,t,n){var i;return $(n)?(t-e)/n:(i=n.asMonths(),Math.abs(i)>=1&&ae(i)?t.diff(e,"months",!0)/i:t.diff(e,"days",!0)/n.asDays())}function j(e,t){var n,i;return $(e)||$(t)?e/t:(n=e.asMonths(),i=t.asMonths(),Math.abs(n)>=1&&ae(n)&&Math.abs(i)>=1&&ae(i)?n/i:e.asDays()/t.asDays())}function Y(e,n){var i;return $(e)?t.duration(e*n):(i=e.asMonths(),Math.abs(i)>=1&&ae(i)?t.duration({months:i*n}):t.duration({days:e.asDays()*n}))}function $(e){return Boolean(e.hours()||e.minutes()||e.seconds()||e.milliseconds())}function U(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function q(e){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(e)}function G(e,t){var n,i,r,o,a,s,l={};if(t)for(n=0;n=0;o--)if(a=e[o][i],"object"==typeof a)r.unshift(a);else if(void 0!==a){l[i]=a;break}r.length&&(l[i]=G(r))}for(n=e.length-1;n>=0;n--){s=e[n];for(i in s)i in l||(l[i]=s[i])}return l}function V(e){var t=function(){};return t.prototype=e,new t}function X(e,t){for(var n in e)Z(e,n)&&(t[n]=e[n])}function Z(e,t){return $e.call(e,t)}function Q(t){return/undefined|null|boolean|number|string/.test(e.type(t))}function K(t,n,i){if(e.isFunction(t)&&(t=[t]),t){var r,o;for(r=0;r/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
    ")}function te(e){return e.replace(/&.*?;/g,"")}function ne(t){var n=[];return e.each(t,function(e,t){null!=t&&n.push(e+":"+t)}),n.join(";")}function ie(t){var n=[];return e.each(t,function(e,t){null!=t&&n.push(e+'="'+ee(t)+'"')}),n.join(" ")}function re(e){return e.charAt(0).toUpperCase()+e.slice(1)}function oe(e,t){return e-t}function ae(e){return e%1===0}function se(e,t){var n=e[t];return function(){return n.apply(e,arguments)}}function le(e,t,n){var i,r,o,a,s,l=function(){var c=+new Date-a;c=e.leftCol)return!0;return!1}function Te(e,t){return e.leftCol-t.leftCol}function Ee(e){var t,n,i,r=[];for(t=0;tt.top&&e.top"),p.append(a("left")).append(a("right")).append(a("center")).append('
    ')):o()}function o(){p&&(p.remove(),p=f.el=null)}function a(i){var r=e('
    '),o=n.layout[i];return o&&e.each(o.split(" "),function(n){var i,o=e(),a=!0;e.each(this.split(","),function(n,i){var r,s,l,c,u,d,h,f,p,v;"title"==i?(o=o.add(e("

     

    ")),a=!1):((r=(t.options.customButtons||{})[i])?(l=function(e){r.click&&r.click.call(v[0],e)},c="",u=r.text):(s=t.getViewSpec(i))?(l=function(){t.changeView(i)},m.push(i),c=s.buttonTextOverride,u=s.buttonTextDefault):t[i]&&(l=function(){t[i]()},c=(t.overrides.buttonText||{})[i],u=t.options.buttonText[i]),l&&(d=r?r.themeIcon:t.options.themeButtonIcons[i],h=r?r.icon:t.options.buttonIcons[i],f=c?ee(c):d&&t.options.theme?"":h&&!t.options.theme?"":ee(u),p=["fc-"+i+"-button",g+"-button",g+"-state-default"],v=e('").click(function(e){v.hasClass(g+"-state-disabled")||(l(e),(v.hasClass(g+"-state-active")||v.hasClass(g+"-state-disabled"))&&v.removeClass(g+"-state-hover"))}).mousedown(function(){v.not("."+g+"-state-active").not("."+g+"-state-disabled").addClass(g+"-state-down")}).mouseup(function(){v.removeClass(g+"-state-down")}).hover(function(){v.not("."+g+"-state-active").not("."+g+"-state-disabled").addClass(g+"-state-hover")},function(){v.removeClass(g+"-state-hover").removeClass(g+"-state-down")}),o=o.add(v)))}),a&&o.first().addClass(g+"-corner-left").end().last().addClass(g+"-corner-right").end(),o.length>1?(i=e("
    "),a&&i.addClass("fc-button-group"),i.append(o),r.append(i)):r.append(o)}),r}function s(e){p&&p.find("h2").text(e)}function l(e){p&&p.find(".fc-"+e+"-button").addClass(g+"-state-active")}function c(e){p&&p.find(".fc-"+e+"-button").removeClass(g+"-state-active")}function u(e){p&&p.find(".fc-"+e+"-button").prop("disabled",!0).addClass(g+"-state-disabled")}function d(e){p&&p.find(".fc-"+e+"-button").prop("disabled",!1).removeClass(g+"-state-disabled")}function h(){return m}var f=this;f.setToolbarOptions=i,f.render=r,f.removeElement=o,f.updateTitle=s,f.activateButton=l,f.deactivateButton=c,f.disableButton=u,f.enableButton=d,f.getViewsWithButtons=h,f.el=null;var p,g,m=[]}function Ie(n,i){function r(e){e._locale=Y}function o(){G?l()&&(f(),c()):a()}function a(){n.addClass("fc"),n.on("click.fc","a[data-goto]",function(t){var n=e(this),i=n.data("goto"),r=j.moment(i.date),o=i.type,a=Z.opt("navLink"+re(o)+"Click");"function"==typeof a?a(r,t):("string"==typeof a&&(o=a),I(r,o))}),j.bindOption("theme",function(e){X=e?"ui":"fc",n.toggleClass("ui-widget",e),n.toggleClass("fc-unthemed",!e)}),j.bindOptions(["isRTL","locale"],function(e){n.toggleClass("fc-ltr",!e),n.toggleClass("fc-rtl",e)}),G=e("
    ").prependTo(n);var t=b();$=new He(t),U=j.header=t[0],q=j.footer=t[1],w(),k(),c(j.options.defaultView),j.options.handleWindowResize&&(K=le(m,j.options.windowResizeDelay),e(window).resize(K))}function s(){Z&&Z.removeElement(),$.proxyCall("removeElement"),G.remove(),n.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),n.off(".fc"),K&&e(window).unbind("resize",K),ot.unneeded()}function l(){return n.is(":visible")}function c(t,n){ne++;var i=Z&&t&&Z.type!==t;i&&(N(),u()),!Z&&t&&(Z=j.view=te[t]||(te[t]=j.instantiateView(t)),Z.setElement(e("
    ").appendTo(G)),$.proxyCall("activateButton",t)),Z&&(J=Z.massageCurrentDate(J),Z.isDateSet&&J>=Z.intervalStart&&J=Z.intervalStart&&eG&&i.push(n);return i}function o(e,t){return!G||eV}function a(e,t){return G=e,V=t,s()}function s(){return c(ee,"reset")}function l(e){return c(w(e))}function c(e,t){var n,i;for("reset"===t?ne=[]:"add"!==t&&(ne=T(ne,e)),n=0;no&&(!l[a]||c.isSame(u,l[a]))&&(a-1!==o||"."!==f[a]);a--)m=f[a]+m;for(s=o;s<=a;s++)v+=f[s],b+=p[s];return(v||b)&&(y=r?b+i+v:v+i+b),h(g+y+m)}function r(e){return x[e]||(x[e]=o(e))}function o(e){var t=a(e);return{fakeFormatString:l(t),sameUnits:c(t)}}function a(e){for(var t,n=[],i=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=i.exec(e);)t[1]?n.push.apply(n,s(t[1])):t[2]?n.push({maybe:a(t[2])}):t[3]?n.push({token:t[3]}):t[5]&&n.push.apply(n,s(t[5]));return n}function s(e){return". "===e?["."," "]:[e]}function l(e){var t,n,i=[];for(t=0;tr.value)&&(r=i));return r?r.unit:null}Pe.formatDate=e,Pe.formatRange=n,Pe.oldMomentFormat=t,Pe.queryMostGranularFormatUnit=f;var p="\v",g="",m="",v=new RegExp(m+"([^"+m+"]*)"+m,"g"),b={t:function(e){return t(e,"a").charAt(0)},T:function(e){return t(e,"A").charAt(0)}},y={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}},x={}}();var Ze=Pe.formatDate,Qe=Pe.formatRange,Ke=Pe.oldMomentFormat;Pe.Class=ue,ue.extend=function(){var e,t,n=arguments.length;for(e=0;e').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),n.autoHide&&this.listenTo(e(document),"mousedown",this.documentMousedown)},documentMousedown:function(t){this.el&&!e(t.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(e(document),"mousedown")},position:function(){var t,n,i,r,o,a=this.options,s=this.el.offsetParent().offset(),l=this.el.outerWidth(),c=this.el.outerHeight(),u=e(window),h=d(this.el);r=a.top||0,o=void 0!==a.left?a.left:void 0!==a.right?a.right-l:0,h.is(window)||h.is(document)?(h=u,t=0,n=0):(i=h.offset(),t=i.top,n=i.left),t+=u.scrollTop(),n+=u.scrollLeft(),a.viewportConstrain!==!1&&(r=Math.min(r,t+h.outerHeight()-c-this.margin),r=Math.max(r,t+this.margin),o=Math.min(o,n+h.outerWidth()-l-this.margin),o=Math.max(o,n+this.margin)),this.el.css({top:r-s.top,left:o-s.left})},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))}}),nt=Pe.CoordCache=ue.extend({els:null,forcedOffsetParentEl:null,origin:null,boundingRect:null,isHorizontal:!1,isVertical:!1,lefts:null,rights:null,tops:null,bottoms:null,constructor:function(t){this.els=e(t.els),this.isHorizontal=t.isHorizontal,this.isVertical=t.isVertical,this.forcedOffsetParentEl=t.offsetParent?e(t.offsetParent):null},build:function(){var e=this.forcedOffsetParentEl;!e&&this.els.length>0&&(e=this.els.eq(0).offsetParent()),this.origin=e?e.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},clear:function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},ensureBuilt:function(){this.origin||this.build()},buildElHorizontals:function(){var t=[],n=[];this.els.each(function(i,r){var o=e(r),a=o.offset().left,s=o.outerWidth();t.push(a),n.push(a+s)}),this.lefts=t,this.rights=n},buildElVerticals:function(){var t=[],n=[];this.els.each(function(i,r){var o=e(r),a=o.offset().top,s=o.outerHeight();t.push(a),n.push(a+s)}),this.tops=t,this.bottoms=n},getHorizontalIndex:function(e){this.ensureBuilt();var t,n=this.lefts,i=this.rights,r=n.length;for(t=0;t=n[t]&&e=n[t]&&e0&&(e=d(this.els.eq(0)),!e.is(document))?f(e):null},isPointInBounds:function(e,t){return this.isLeftInBounds(e)&&this.isTopInBounds(t)},isLeftInBounds:function(e){return!this.boundingRect||e>=this.boundingRect.left&&e=this.boundingRect.top&&e=r*r&&this.handleDistanceSurpassed(e)),this.isDragging&&this.handleDrag(n,i,e)},handleDrag:function(e,t,n){this.trigger("drag",e,t,n),this.updateAutoScroll(n)},endDrag:function(e){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(e))},handleDragEnd:function(e){this.trigger("dragEnd",e)},startDelay:function(e){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},handleDelayEnd:function(e){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(e)},handleDistanceSurpassed:function(e){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(e)},handleTouchMove:function(e){this.isDragging&&this.shouldCancelTouchScroll&&e.preventDefault(),this.handleMove(e)},handleMouseMove:function(e){this.handleMove(e)},handleTouchScroll:function(e){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(e,!0)},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1)),this["_"+e]&&this["_"+e].apply(this,Array.prototype.slice.call(arguments,1))}});it.mixin({isAutoScroll:!1,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,initAutoScroll:function(){var e=this.scrollEl;this.isAutoScroll=this.options.scroll&&e&&!e.is(window)&&!e.is(document),this.isAutoScroll&&this.listenTo(e,"scroll",le(this.handleDebouncedScroll,100))},destroyAutoScroll:function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},computeScrollBounds:function(){this.isAutoScroll&&(this.scrollBounds=h(this.scrollEl))},updateAutoScroll:function(e){var t,n,i,r,o=this.scrollSensitivity,a=this.scrollBounds,s=0,l=0;a&&(t=(o-(k(e)-a.top))/o,n=(o-(a.bottom-k(e)))/o,i=(o-(w(e)-a.left))/o,r=(o-(a.right-w(e)))/o,t>=0&&t<=1?s=t*this.scrollSpeed*-1:n>=0&&n<=1&&(s=n*this.scrollSpeed),i>=0&&i<=1?l=i*this.scrollSpeed*-1:r>=0&&r<=1&&(l=r*this.scrollSpeed)),this.setScrollVel(s,l)},setScrollVel:function(e,t){this.scrollTopVel=e,this.scrollLeftVel=t,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(se(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var e=this.scrollEl;this.scrollTopVel<0?e.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&e.scrollTop()+e[0].clientHeight>=e[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?e.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&e.scrollLeft()+e[0].clientWidth>=e[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var e=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&e.scrollTop(e.scrollTop()+this.scrollTopVel*t),this.scrollLeftVel&&e.scrollLeft(e.scrollLeft()+this.scrollLeftVel*t),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},endAutoScroll:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},handleDebouncedScroll:function(){this.scrollIntervalId||this.handleScrollEnd()},handleScrollEnd:function(){}});var rt=it.extend({component:null,origHit:null,hit:null,coordAdjust:null,constructor:function(e,t){it.call(this,t),this.component=e},handleInteractionStart:function(e){var t,n,i,r=this.subjectEl;this.component.hitsNeeded(),this.computeScrollBounds(),e?(n={left:w(e),top:k(e)},i=n,r&&(t=h(r),i=_(i,t)),this.origHit=this.queryHit(i.left,i.top),r&&this.options.subjectCenter&&(this.origHit&&(t=L(this.origHit,t)||t),i=D(t)),this.coordAdjust=M(i,n)):(this.origHit=null,this.coordAdjust=null),it.prototype.handleInteractionStart.apply(this,arguments)},handleDragStart:function(e){var t;it.prototype.handleDragStart.apply(this,arguments),t=this.queryHit(w(e),k(e)),t&&this.handleHitOver(t)},handleDrag:function(e,t,n){var i;it.prototype.handleDrag.apply(this,arguments),i=this.queryHit(w(n),k(n)),ge(i,this.hit)||(this.hit&&this.handleHitOut(),i&&this.handleHitOver(i))},handleDragEnd:function(){this.handleHitDone(),it.prototype.handleDragEnd.apply(this,arguments)},handleHitOver:function(e){var t=ge(e,this.origHit);this.hit=e,this.trigger("hitOver",this.hit,t,this.origHit)},handleHitOut:function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},handleHitDone:function(){this.hit&&this.trigger("hitDone",this.hit)},handleInteractionEnd:function(){it.prototype.handleInteractionEnd.apply(this,arguments),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},handleScrollEnd:function(){it.prototype.handleScrollEnd.apply(this,arguments),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},queryHit:function(e,t){return this.coordAdjust&&(e+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(e,t)}});Pe.touchMouseIgnoreWait=500;var ot=ue.extend(et,Je,{isTouching:!1,mouseIgnoreDepth:0,handleScrollProxy:null,bind:function(){var t=this;this.listenTo(e(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(n){t.handleTouchMove(e.Event(n))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(n){t.handleScroll(e.Event(n))},!0)},unbind:function(){this.stopListeningTo(e(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy),window.removeEventListener("scroll",this.handleScrollProxy,!0)},handleTouchStart:function(e){this.stopTouch(e,!0),this.isTouching=!0,this.trigger("touchstart",e)},handleTouchMove:function(e){this.isTouching&&this.trigger("touchmove",e)},handleTouchCancel:function(e){this.isTouching&&(this.trigger("touchcancel",e),this.stopTouch(e))},handleTouchEnd:function(e){this.stopTouch(e)},handleMouseDown:function(e){this.shouldIgnoreMouse()||this.trigger("mousedown",e)},handleMouseMove:function(e){this.shouldIgnoreMouse()||this.trigger("mousemove",e)},handleMouseUp:function(e){this.shouldIgnoreMouse()||this.trigger("mouseup",e)},handleClick:function(e){this.shouldIgnoreMouse()||this.trigger("click",e)},handleSelectStart:function(e){this.trigger("selectstart",e)},handleContextMenu:function(e){this.trigger("contextmenu",e)},handleScroll:function(e){this.trigger("scroll",e)},stopTouch:function(e,t){this.isTouching&&(this.isTouching=!1,this.trigger("touchend",e),t||this.startTouchMouseIgnore())},startTouchMouseIgnore:function(){var e=this,t=Pe.touchMouseIgnoreWait;t&&(this.mouseIgnoreDepth++,setTimeout(function(){e.mouseIgnoreDepth--},t))},shouldIgnoreMouse:function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)}});!function(){var e=null,t=0;ot.get=function(){return e||(e=new ot,e.bind()),e},ot.needed=function(){ot.get(),t++},ot.unneeded=function(){t--,t||(e.unbind(),e=null)}}();var at=ue.extend(et,{options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,y0:null,x0:null,topDelta:null,leftDelta:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(t,n){this.options=n=n||{},this.sourceEl=t,this.parentEl=n.parentEl?e(n.parentEl):t.parent()},start:function(t){this.isFollowing||(this.isFollowing=!0,this.y0=k(t),this.x0=w(t),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),S(t)?this.listenTo(e(document),"touchmove",this.handleMove):this.listenTo(e(document),"mousemove",this.handleMove))},stop:function(t,n){function i(){r.isAnimating=!1,r.removeElement(),r.top0=r.left0=null,n&&n()}var r=this,o=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(e(document)),t&&o&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:o,complete:i})):i())},getEl:function(){var e=this.el;return e||(e=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}),e.addClass("fc-unselectable"),e.appendTo(this.parentEl)),e},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var e,t;this.getEl(),null===this.top0&&(e=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=e.top-t.top,this.left0=e.left-t.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},handleMove:function(e){this.topDelta=k(e)-this.y0,this.leftDelta=w(e)-this.x0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),st=Pe.Grid=ue.extend(et,{hasDayInteractions:!0,view:null,isRTL:null,start:null,end:null,el:null,elsByFill:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,minResizeDuration:null,largeUnit:null,dayClickListener:null,daySelectListener:null,segDragListener:null,segResizeListener:null,externalDragListener:null,constructor:function(e){this.view=e,this.isRTL=e.opt("isRTL"),this.elsByFill={},this.dayClickListener=this.buildDayClickListener(),this.daySelectListener=this.buildDaySelectListener()},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(e){this.start=e.start.clone(),this.end=e.end.clone(),this.rangeUpdated(),this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var e,t,n=this.view;this.eventTimeFormat=n.opt("eventTimeFormat")||n.opt("timeFormat")||this.computeEventTimeFormat(),e=n.opt("displayEventTime"),null==e&&(e=this.computeDisplayEventTime()),t=n.opt("displayEventEnd"),null==t&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},spanToSegs:function(e){},diffDates:function(e,t){return this.largeUnit?P(e,t,this.largeUnit):F(e,t)},hitsNeededDepth:0,hitsNeeded:function(){this.hitsNeededDepth++||this.prepareHits()},hitsNotNeeded:function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits()},prepareHits:function(){},releaseHits:function(){},queryHit:function(e,t){},getHitSpan:function(e){},getHitEl:function(e){},setElement:function(e){this.el=e,this.hasDayInteractions&&(C(e),this.bindDayHandler("touchstart",this.dayTouchStart),this.bindDayHandler("mousedown",this.dayMousedown)),this.bindSegHandlers(),this.bindGlobalHandlers()},bindDayHandler:function(t,n){var i=this;this.el.on(t,function(t){if(!e(t.target).is(i.segSelector+","+i.segSelector+" *,.fc-more,a[data-goto]"))return n.call(i,t)})},removeElement:function(){this.unbindGlobalHandlers(),this.clearDragListeners(),this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){this.listenTo(e(document),{dragstart:this.externalDragStart,sortstart:this.externalDragStart})},unbindGlobalHandlers:function(){this.stopListeningTo(e(document))},dayMousedown:function(e){var t=this.view;t.isSelected||t.selectedEvent||(this.dayClickListener.startInteraction(e),t.opt("selectable")&&this.daySelectListener.startInteraction(e,{distance:t.opt("selectMinDistance")}))},dayTouchStart:function(e){var t,n=this.view;n.isSelected||n.selectedEvent||(t=n.opt("selectLongPressDelay"),null==t&&(t=n.opt("longPressDelay")),this.dayClickListener.startInteraction(e),n.opt("selectable")&&this.daySelectListener.startInteraction(e,{delay:t}))},buildDayClickListener:function(){var e,t=this,n=this.view,i=new rt(this,{scroll:n.opt("dragScroll"),interactionStart:function(){e=i.origHit},hitOver:function(t,n,i){n||(e=null)},hitOut:function(){e=null},interactionEnd:function(i,r){!r&&e&&n.triggerDayClick(t.getHitSpan(e),t.getHitEl(e),i)}});return i.shouldCancelTouchScroll=!1,i.scrollAlwaysKills=!0,i},buildDaySelectListener:function(){var e,t=this,n=this.view,i=new rt(this,{scroll:n.opt("dragScroll"),interactionStart:function(){e=null},dragStart:function(){n.unselect()},hitOver:function(n,i,r){r&&(e=t.computeSelection(t.getHitSpan(r),t.getHitSpan(n)),e?t.renderSelection(e):e===!1&&o())},hitOut:function(){e=null,t.unrenderSelection()},hitDone:function(){a()},interactionEnd:function(t,i){!i&&e&&n.reportSelection(e,t)}});return i},clearDragListeners:function(){this.dayClickListener.endInteraction(),this.daySelectListener.endInteraction(),this.segDragListener&&this.segDragListener.endInteraction(),this.segResizeListener&&this.segResizeListener.endInteraction(),this.externalDragListener&&this.externalDragListener.endInteraction()},renderEventLocationHelper:function(e,t){var n=this.fabricateHelperEvent(e,t);return this.renderHelper(n,t)},fabricateHelperEvent:function(e,t){var n=t?V(t.event):{};return n.start=e.start.clone(),n.end=e.end?e.end.clone():null,n.allDay=null,this.view.calendar.normalizeEventDates(n),n.className=(n.className||[]).concat("fc-helper"),t||(n.editable=!1),n},renderHelper:function(e,t){},unrenderHelper:function(){},renderSelection:function(e){this.renderHighlight(e)},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(e,t){var n=this.computeSelectionSpan(e,t);return!(n&&!this.view.calendar.isSelectionSpanAllowed(n))&&n},computeSelectionSpan:function(e,t){var n=[e.start,e.end,t.start,t.end];return n.sort(oe),{start:n[0].clone(),end:n[3].clone()}},renderHighlight:function(e){this.renderFill("highlight",this.spanToSegs(e))},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderBusinessHours:function(){},unrenderBusinessHours:function(){},getNowIndicatorUnit:function(){},renderNowIndicator:function(e){},unrenderNowIndicator:function(){},renderFill:function(e,t){},unrenderFill:function(e){var t=this.elsByFill[e];t&&(t.remove(),delete this.elsByFill[e])},renderFillSegEls:function(t,n){var i,r=this,o=this[t+"SegEl"],a="",s=[];if(n.length){for(i=0;i"},getDayClasses:function(e,t){var n=this.view,i=n.calendar.getNow(),r=["fc-"+je[e.day()]];return 1==n.intervalDuration.as("months")&&e.month()!=n.intervalStart.month()&&r.push("fc-other-month"),e.isSame(i,"day")?(r.push("fc-today"),t!==!0&&r.push(n.highlightStateClass)):e *",mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExternal:!1,segs:null,renderEvents:function(e){var t,n=[],i=[];for(t=0;ts&&a.push({start:s,end:n.start}),s=n.end;return s=t.length?t[t.length-1]+1:t[n]},computeColHeadFormat:function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},sliceRangeByRow:function(e){var t,n,i,r,o,a=this.daysPerRow,s=this.view.computeDayRange(e),l=this.getDateDayIndex(s.start),c=this.getDateDayIndex(s.end.clone().subtract(1,"days")),u=[];for(t=0;t'+this.renderHeadTrHtml()+"
    "},renderHeadIntroHtml:function(){return this.renderIntroHtml()},renderHeadTrHtml:function(){return""+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+""},renderHeadDateCellsHtml:function(){var e,t,n=[];for(e=0;e1?' colspan="'+t+'"':"")+(n?" "+n:"")+">"+i.buildGotoAnchorHtml({date:e,forceOff:this.rowCnt>1||1===this.colCnt},ee(e.format(this.colHeadFormat)))+""},renderBgTrHtml:function(e){return""+(this.isRTL?"":this.renderBgIntroHtml(e))+this.renderBgCellsHtml(e)+(this.isRTL?this.renderBgIntroHtml(e):"")+""},renderBgIntroHtml:function(e){return this.renderIntroHtml()},renderBgCellsHtml:function(e){var t,n,i=[];for(t=0;t"},renderIntroHtml:function(){},bookendCells:function(e){var t=this.renderIntroHtml();t&&(this.isRTL?e.append(t):e.prepend(t))}},ct=Pe.DayGrid=st.extend(lt,{numbersVisible:!1,bottomCoordPadding:0,rowEls:null,cellEls:null,helperEls:null,rowCoordCache:null,colCoordCache:null,renderDates:function(e){var t,n,i=this.view,r=this.rowCnt,o=this.colCnt,a="";for(t=0;t
    '+this.renderBgTrHtml(e)+'
    '+(this.numbersVisible?""+this.renderNumberTrHtml(e)+"":"")+"
    "},renderNumberTrHtml:function(e){return""+(this.isRTL?"":this.renderNumberIntroHtml(e))+this.renderNumberCellsHtml(e)+(this.isRTL?this.renderNumberIntroHtml(e):"")+""},renderNumberIntroHtml:function(e){return this.renderIntroHtml()},renderNumberCellsHtml:function(e){var t,n,i=[];for(t=0;t',this.view.cellWeekNumbersVisible&&e.day()==n&&(i+=this.view.buildGotoAnchorHtml({date:e,type:"week"},{class:"fc-week-number"},e.format("w"))),this.view.dayNumbersVisible&&(i+=this.view.buildGotoAnchorHtml(e,{class:"fc-day-number"},e.date())),i+=""):""},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){this.updateDayTable()},spanToSegs:function(e){var t,n,i=this.sliceRangeByRow(e);for(t=0;t');a=n&&n.row===t?n.el.position().top:s.find(".fc-content-skeleton tbody").position().top,l.css("top",a).find("table").append(i[t].tbodyEl),s.append(l),r.push(l[0])}),this.helperEls=e(r)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(t,n,i){var r,o,a,s=[];for(n=this.renderFillSegEls(t,n),r=0;r
    '),o=r.find("tr"),s>0&&o.append(''),o.append(n.el.attr("colspan",l-s)),l'),this.bookendCells(o),r}});ct.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover(),st.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return st.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(t){var n=e.grep(t,function(e){return e.event.allDay});return st.prototype.renderBgSegs.call(this,n)},renderFgSegs:function(t){var n;return t=this.renderFgSegEls(t),n=this.rowStructs=this.renderSegRows(t),this.rowEls.each(function(t,i){e(i).find(".fc-content-skeleton > table").append(n[t].tbodyEl)}),t},unrenderFgSegs:function(){for(var e,t=this.rowStructs||[];e=t.pop();)e.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(e){var t,n,i=[];for(t=this.groupSegRows(e),n=0;n'+ee(n)+"")),i=''+(ee(o.title||"")||" ")+"",'
    '+(this.isRTL?i+" "+d:d+" "+i)+"
    "+(s?'
    ':"")+(l?'
    ':"")+""},renderSegRow:function(t,n){function i(t){for(;a"),s.append(u)),m[r][a]=u,v[r][a]=u,a++}var r,o,a,s,l,c,u,d=this.colCnt,h=this.buildSegLevels(n),f=Math.max(1,h.length),p=e(""),g=[],m=[],v=[];for(r=0;r"),g.push([]),m.push([]),v.push([]),o)for(l=0;l').append(c.el),c.leftCol!=c.rightCol?u.attr("colspan",c.rightCol-c.leftCol+1):v[r][a]=u;a<=c.rightCol;)m[r][a]=u,g[r][a]=c,a++;s.append(u)}i(d),this.bookendCells(s),p.append(s)}return{row:t,tbodyEl:p,cellMatrix:m,segMatrix:g,segLevels:h,segs:n}},buildSegLevels:function(e){var t,n,i,r=[];for(this.sortEventSegs(e),t=0;t td > :first-child").each(n),r.position().top+o>s)return i;return!1},limitRow:function(t,n){function i(i){for(;k").append(b),h.append(v),w.push(v[0])),k++}var r,o,a,s,l,c,u,d,h,f,p,g,m,v,b,y=this,x=this.rowStructs[t],w=[],k=0;if(n&&n').attr("rowspan",f),c=d[g],b=this.renderMoreLink(t,l.leftCol+g,[l].concat(c)),v=e("
    ").append(b),m.append(v),p.push(m[0]),w.push(m[0]);h.addClass("fc-limited").after(e(p)),a.push(h[0])}}i(this.colCnt),x.moreEls=e(w),x.limitedEls=e(a)}},unlimitRow:function(e){var t=this.rowStructs[e];t.moreEls&&(t.moreEls.remove(),t.moreEls=null),t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},renderMoreLink:function(t,n,i){var r=this,o=this.view;return e('').text(this.getMoreLinkText(i.length)).on("click",function(a){var s=o.opt("eventLimitClick"),l=r.getCellDate(t,n),c=e(this),u=r.getCellEl(t,n),d=r.getCellSegs(t,n),h=r.resliceDaySegs(d,l),f=r.resliceDaySegs(i,l);"function"==typeof s&&(s=o.publiclyTrigger("eventLimitClick",null,{date:l,dayEl:u,moreEl:c,segs:h,hiddenSegs:f},a)),"popover"===s?r.showSegPopover(t,n,c,h):"string"==typeof s&&o.calendar.zoomTo(l,s)})},showSegPopover:function(e,t,n,i){var r,o,a=this,s=this.view,l=n.parent();r=1==this.rowCnt?s.el:this.rowEls.eq(e),o={className:"fc-more-popover",content:this.renderSegPopoverContent(e,t,i),parentEl:this.view.el,top:r.offset().top,autoHide:!0,viewportConstrain:s.opt("popoverViewportConstrain"),hide:function(){if(a.popoverSegs)for(var e,t=0;t'+ee(s)+'
    '),c=l.find(".fc-event-container");for(i=this.renderFgSegEls(i,!0),this.popoverSegs=i,r=0;r'+this.renderBgTrHtml(0)+'
    "},renderSlatRowHtml:function(){for(var e,n,i,r=this.view,o=this.isRTL,a="",s=t.duration(+this.minTime);s"+(n?""+ee(e.format(this.labelFormat))+"":"")+"",a+='"+(o?"":i)+''+(o?i:"")+"",s.add(this.slotDuration);return a},processOptions:function(){var n,i=this.view,r=i.opt("slotDuration"),o=i.opt("snapDuration");r=t.duration(r),o=o?t.duration(o):r,this.slotDuration=r,this.snapDuration=o,this.snapsPerSlot=r/o,this.minResizeDuration=o,this.minTime=t.duration(i.opt("minTime")),this.maxTime=t.duration(i.opt("maxTime")),n=i.opt("slotLabelFormat"),e.isArray(n)&&(n=n[n.length-1]),this.labelFormat=n||i.opt("smallTimeFormat"),n=i.opt("slotLabelInterval"),this.labelInterval=n?t.duration(n):this.computeLabelInterval(r)},computeLabelInterval:function(e){var n,i,r;for(n=_t.length-1;n>=0;n--)if(i=t.duration(_t[n]),r=j(i,e),ae(r)&&r>1)return i;return t.duration(e)},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},prepareHits:function(){this.colCoordCache.build(),this.slatCoordCache.build()},releaseHits:function(){this.colCoordCache.clear()},queryHit:function(e,t){var n=this.snapsPerSlot,i=this.colCoordCache,r=this.slatCoordCache;if(i.isLeftInBounds(e)&&r.isTopInBounds(t)){var o=i.getHorizontalIndex(e),a=r.getVerticalIndex(t);if(null!=o&&null!=a){var s=r.getTopOffset(a),l=r.getHeight(a),c=(t-s)/l,u=Math.floor(c*n),d=a*n+u,h=s+u/n*l,f=s+(u+1)/n*l;return{col:o,snap:d,component:this,left:i.getLeftOffset(o),right:i.getRightOffset(o),top:h,bottom:f}}}},getHitSpan:function(e){var t,n=this.getCellDate(0,e.col),i=this.computeSnapTime(e.snap);return n.time(i),t=n.clone().add(this.snapDuration),{start:n,end:t}},getHitEl:function(e){return this.colEls.eq(e.col)},rangeUpdated:function(){this.updateDayTable()},computeSnapTime:function(e){return t.duration(this.minTime+this.snapDuration*e)},spanToSegs:function(e){var t,n=this.sliceRangeByTimes(e);for(t=0;t
    ').css("top",r).appendTo(this.colContainerEls.eq(i[n].col))[0]);i.length>0&&o.push(e('
    ').css("top",r).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=e(o)},unrenderNowIndicator:function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},renderSelection:function(e){this.view.opt("selectHelper")?this.renderEventLocationHelper(e):this.renderHighlight(e)},unrenderSelection:function(){this.unrenderHelper(),this.unrenderHighlight()},renderHighlight:function(e){this.renderHighlightSegs(this.spanToSegs(e))},unrenderHighlight:function(){this.unrenderHighlightSegs()}});ut.mixin({colContainerEls:null,fgContainerEls:null,bgContainerEls:null,helperContainerEls:null,highlightContainerEls:null,businessContainerEls:null,fgSegs:null,bgSegs:null,helperSegs:null,highlightSegs:null,businessSegs:null,renderContentSkeleton:function(){var t,n,i="";for(t=0;t
    ';n=e('
    '+i+"
    "),this.colContainerEls=n.find(".fc-content-col"),this.helperContainerEls=n.find(".fc-helper-container"),this.fgContainerEls=n.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=n.find(".fc-bgevent-container"),this.highlightContainerEls=n.find(".fc-highlight-container"),this.businessContainerEls=n.find(".fc-business-container"),this.bookendCells(n.find("tr")),this.el.append(n)},renderFgSegs:function(e){return e=this.renderFgSegsIntoContainers(e,this.fgContainerEls),this.fgSegs=e,e},unrenderFgSegs:function(){this.unrenderNamedSegs("fgSegs")},renderHelperSegs:function(t,n){var i,r,o,a=[];for(t=this.renderFgSegsIntoContainers(t,this.helperContainerEls),i=0;i
    '+(n?'
    '+ee(n)+"
    ":"")+(a.title?'
    '+ee(a.title)+"
    ":"")+'
    '+(c?'
    ':"")+""},updateSegVerticals:function(e){this.computeSegVerticals(e),this.assignSegVerticals(e)},computeSegVerticals:function(e){var t,n;for(t=0;t1?"ll":"LL"},formatRange:function(e,t,n){var i=e.end;return i.hasTime()||(i=i.clone().subtract(1)),Qe(e.start,i,t,n,this.opt("isRTL"))},getAllDayHtml:function(){return this.opt("allDayHtml")||ee(this.opt("allDayText"))},buildGotoAnchorHtml:function(t,n,i){var r,o,a,s;return e.isPlainObject(t)?(r=t.date,o=t.type,a=t.forceOff):r=t,r=Pe.moment(r),s={date:r.format("YYYY-MM-DD"),type:o||"day"},"string"==typeof n&&(i=n,n=null),n=n?" "+ie(n):"",i=i||"",!a&&this.opt("navLinks")?"'+i+"":""+i+""},setElement:function(e){this.el=e,this.bindGlobalHandlers(),this.renderSkeleton()},removeElement:function(){this.unsetDate(),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},renderSkeleton:function(){},unrenderSkeleton:function(){},setDate:function(e){var t=this.isDateSet;this.isDateSet=!0,this.handleDate(e,t),this.trigger(t?"dateReset":"dateSet",e)},unsetDate:function(){this.isDateSet&&(this.isDateSet=!1,this.handleDateUnset(),this.trigger("dateUnset"))},handleDate:function(e,t){var n=this;this.unbindEvents(),this.requestDateRender(e).then(function(){n.bindEvents()})},handleDateUnset:function(){this.unbindEvents(),this.requestDateUnrender()},requestDateRender:function(e){var t=this;return this.dateRenderQueue.add(function(){return t.executeDateRender(e)})},requestDateUnrender:function(){var e=this;return this.dateRenderQueue.add(function(){return e.executeDateUnrender()})},executeDateRender:function(e){var t=this;return e?this.captureInitialScroll():this.captureScroll(),this.freezeHeight(),this.executeDateUnrender().then(function(){e&&t.setRange(t.computeRange(e)),t.render&&t.render(),t.renderDates(),t.updateSize(),t.renderBusinessHours(),t.startNowIndicator(),t.thawHeight(),t.releaseScroll(),t.isDateRendered=!0,t.onDateRender(),t.trigger("dateRender")})},executeDateUnrender:function(){var e=this;return e.isDateRendered?this.requestEventsUnrender().then(function(){e.unselect(),e.stopNowIndicator(),e.triggerUnrender(),e.unrenderBusinessHours(),e.unrenderDates(),e.destroy&&e.destroy(),e.isDateRendered=!1,e.trigger("dateUnrender")}):fe.resolve()},onDateRender:function(){this.triggerRender()},renderDates:function(){},unrenderDates:function(){},triggerRender:function(){this.publiclyTrigger("viewRender",this,this,this.el)},triggerUnrender:function(){this.publiclyTrigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){this.listenTo(ot.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},unbindGlobalHandlers:function(){this.stopListeningTo(ot.get())},initThemingProps:function(){var e=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=e+"-widget-header",this.widgetContentClass=e+"-widget-content",this.highlightStateClass=e+"-state-highlight"},renderBusinessHours:function(){},unrenderBusinessHours:function(){},startNowIndicator:function(){var e,n,i,r=this;this.opt("nowIndicator")&&(e=this.getNowIndicatorUnit(),e&&(n=se(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=+new Date,this.renderNowIndicator(this.initialNowDate),this.isNowIndicatorRendered=!0,i=this.initialNowDate.clone().startOf(e).add(1,e)-this.initialNowDate,this.nowIndicatorTimeoutID=setTimeout(function(){r.nowIndicatorTimeoutID=null,n(),i=+t.duration(1,e),i=Math.max(100,i),r.nowIndicatorIntervalID=setInterval(n,i)},i)))},updateNowIndicator:function(){this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add(new Date-this.initialNowQueriedMs)))},stopNowIndicator:function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearTimeout(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},getNowIndicatorUnit:function(){},renderNowIndicator:function(e){},unrenderNowIndicator:function(){},updateSize:function(e){e&&this.captureScroll(),this.updateHeight(e),this.updateWidth(e),this.updateNowIndicator(),e&&this.releaseScroll()},updateWidth:function(e){},updateHeight:function(e){var t=this.calendar;this.setHeight(t.getSuggestedViewHeight(),t.isHeightAuto())},setHeight:function(e,t){},capturedScroll:null,capturedScrollDepth:0,captureScroll:function(){return!this.capturedScrollDepth++&&(this.capturedScroll=this.isDateRendered?this.queryScroll():{},!0)},captureInitialScroll:function(t){this.captureScroll()&&(this.capturedScroll.isInitial=!0,t?e.extend(this.capturedScroll,t):this.capturedScroll.isComputed=!0)},releaseScroll:function(){var t=this.capturedScroll,n=this.discardScroll();t.isComputed&&(n?e.extend(t,this.computeInitialScroll()):t=null),t&&(t.isInitial?this.hardSetScroll(t):this.setScroll(t))},discardScroll:function(){return!--this.capturedScrollDepth&&(this.capturedScroll=null,!0)},computeInitialScroll:function(){return{}},queryScroll:function(){return{}},hardSetScroll:function(e){var t=this,n=function(){t.setScroll(e)};n(),setTimeout(n,0)},setScroll:function(e){},freezeHeight:function(){this.calendar.freezeContentHeight()},thawHeight:function(){this.calendar.thawContentHeight()},bindEvents:function(){var e=this;this.isEventsBound||(this.isEventsBound=!0,this.rejectOn("eventsUnbind",this.requestEvents()).then(function(t){e.listenTo(e.calendar,"eventsReset",e.setEvents),e.setEvents(t)}))},unbindEvents:function(){this.isEventsBound&&(this.isEventsBound=!1,this.stopListeningTo(this.calendar,"eventsReset"),this.unsetEvents(),this.trigger("eventsUnbind"))},setEvents:function(e){var t=this.isEventSet;this.isEventsSet=!0,this.handleEvents(e,t),this.trigger(t?"eventsReset":"eventsSet",e)},unsetEvents:function(){this.isEventsSet&&(this.isEventsSet=!1,this.handleEventsUnset(),this.trigger("eventsUnset"))},whenEventsSet:function(){var e=this;return this.isEventsSet?fe.resolve(this.getCurrentEvents()):new fe(function(t){e.one("eventsSet",t)})},handleEvents:function(e,t){this.requestEventsRender(e)},handleEventsUnset:function(){this.requestEventsUnrender()},requestEventsRender:function(e){var t=this;return this.eventRenderQueue.add(function(){return t.executeEventsRender(e)})},requestEventsUnrender:function(){var e=this;return this.isEventsRendered?this.eventRenderQueue.addQuickly(function(){return e.executeEventsUnrender()}):fe.resolve()},requestCurrentEventsRender:function(){return this.isEventsSet?void this.requestEventsRender(this.getCurrentEvents()):fe.reject()},executeEventsRender:function(e){var t=this;return this.captureScroll(),this.freezeHeight(),this.executeEventsUnrender().then(function(){t.renderEvents(e),t.thawHeight(),t.releaseScroll(),t.isEventsRendered=!0,t.onEventsRender(),t.trigger("eventsRender")})},executeEventsUnrender:function(){return this.isEventsRendered&&(this.onBeforeEventsUnrender(),this.captureScroll(),this.freezeHeight(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.thawHeight(),this.releaseScroll(),this.isEventsRendered=!1,this.trigger("eventsUnrender")),fe.resolve()},onEventsRender:function(){this.renderedEventSegEach(function(e){this.publiclyTrigger("eventAfterRender",e.event,e.event,e.el)}),this.publiclyTrigger("eventAfterAllRender")},onBeforeEventsUnrender:function(){this.renderedEventSegEach(function(e){this.publiclyTrigger("eventDestroy",e.event,e.event,e.el)})},renderEvents:function(e){},unrenderEvents:function(){},requestEvents:function(){return this.calendar.requestEvents(this.start,this.end)},getCurrentEvents:function(){return this.calendar.getPrunedEventCache()},resolveEventEl:function(t,n){var i=this.publiclyTrigger("eventRender",t,t,n);return i===!1?n=null:i&&i!==!0&&(n=e(i)),n},showEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","")},e)},hideEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","hidden")},e)},renderedEventSegEach:function(e,t){var n,i=this.getEventSegs();for(n=0;n=this.nextDayThreshold&&r.add(1,"days")),(!i||r<=n)&&(r=n.clone().add(1,"days")),{start:n,end:r}},isMultiDayEvent:function(e){var t=this.computeDayRange(e);return t.end.diff(t.start,"days")>1}}),ht=Pe.Scroller=ue.extend({el:null,scrollEl:null,overflowX:null,overflowY:null,constructor:function(e){e=e||{},this.overflowX=e.overflowX||e.overflow||"auto",this.overflowY=e.overflowY||e.overflow||"auto"},render:function(){this.el=this.renderEl(),this.applyOverflow()},renderEl:function(){return this.scrollEl=e('
    ')},clear:function(){this.setHeight("auto"),this.applyOverflow()},destroy:function(){this.el.remove()},applyOverflow:function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},lockOverflow:function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.top||e.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":t,"overflow-y":n})},setHeight:function(e){this.scrollEl.height(e)},getScrollTop:function(){return this.scrollEl.scrollTop()},setScrollTop:function(e){this.scrollEl.scrollTop(e)},getClientWidth:function(){return this.scrollEl[0].clientWidth},getClientHeight:function(){return this.scrollEl[0].clientHeight},getScrollbarWidths:function(){return g(this.scrollEl)}});He.prototype.proxyCall=function(e){var t=Array.prototype.slice.call(arguments,1),n=[];return this.items.forEach(function(i){n.push(i[e].apply(i,t))}),n};var ft=Pe.Calendar=ue.extend({dirDefaults:null,localeDefaults:null,overrides:null,dynamicOverrides:null,options:null,viewSpecCache:null,view:null,header:null,footer:null,loadingLevel:0,constructor:Ie,initialize:function(){},populateOptionsHash:function(){var e,t,i,r;e=J(this.dynamicOverrides.locale,this.overrides.locale),t=pt[e],t||(e=ft.defaults.locale,t=pt[e]||{}),i=J(this.dynamicOverrides.isRTL,this.overrides.isRTL,t.isRTL,ft.defaults.isRTL),r=i?ft.rtlDefaults:{},this.dirDefaults=r,this.localeDefaults=t,this.options=n([ft.defaults,r,t,this.overrides,this.dynamicOverrides]),Ae(this.options)},getViewSpec:function(e){var t=this.viewSpecCache;return t[e]||(t[e]=this.buildViewSpec(e))},getUnitViewSpec:function(t){var n,i,r;if(e.inArray(t,Ye)!=-1)for(n=this.header.getViewsWithButtons(),e.each(Pe.views,function(e){n.push(e)}),i=0;i=n&&t.end<=i},ft.prototype.getPeerEvents=function(e,t){var n,i,r=this.getEventCache(),o=[];for(n=0;nn};var xt={id:"_fcBusinessHours",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"};ft.prototype.getCurrentBusinessHourEvents=function(e){return this.computeBusinessHourEvents(e,this.options.businessHours)},ft.prototype.computeBusinessHourEvents=function(t,n){return n===!0?this.expandBusinessHourEvents(t,[{}]):e.isPlainObject(n)?this.expandBusinessHourEvents(t,[n]):e.isArray(n)?this.expandBusinessHourEvents(t,n,!0):[]},ft.prototype.expandBusinessHourEvents=function(t,n,i){var r,o,a=this.getView(),s=[];for(r=0;r1,this.opt("weekNumbers")&&(this.opt("weekNumbersWithinDays")?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0)),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.cellWeekNumbersVisible||this.colWeekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scroller.render();var t=this.scroller.el.addClass("fc-day-grid-container"),n=e('
    ').appendTo(t);this.el.find(".fc-body > tr > td").append(t),this.dayGrid.setElement(n),this.dayGrid.renderDates(this.hasRigidRows())},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.dayGrid.renderHeadHtml()),this.headRowEl=this.headContainerEl.find(".fc-row")},unrenderDates:function(){this.dayGrid.unrenderDates(),this.dayGrid.removeElement(),this.scroller.destroy()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.dayGrid.unrenderBusinessHours()},renderSkeletonHtml:function(){return'
    '},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var e=this.opt("eventLimit");return e&&"number"!=typeof e},updateWidth:function(){this.colWeekNumbersVisible&&(this.weekNumberWidth=c(this.el.find(".fc-week-number")))},setHeight:function(e,t){var n,o,a=this.opt("eventLimit");this.scroller.clear(),r(this.headRowEl),this.dayGrid.removeSegPopover(),a&&"number"==typeof a&&this.dayGrid.limitRows(a),n=this.computeScrollerHeight(e),this.setGridHeight(n,t),a&&"number"!=typeof a&&this.dayGrid.limitRows(a),t||(this.scroller.setHeight(n),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(i(this.headRowEl,o),n=this.computeScrollerHeight(e),this.scroller.setHeight(n)),this.scroller.lockOverflow(o))},computeScrollerHeight:function(e){return e-u(this.el,this.scroller.el)},setGridHeight:function(e,t){t?l(this.dayGrid.rowEls):s(this.dayGrid.rowEls,e,!0)},computeInitialScroll:function(){return{top:0}},queryScroll:function(){return{top:this.scroller.getScrollTop()}},setScroll:function(e){this.scroller.setScrollTop(e.top)},hitsNeeded:function(){this.dayGrid.hitsNeeded()},hitsNotNeeded:function(){this.dayGrid.hitsNotNeeded()},prepareHits:function(){this.dayGrid.prepareHits()},releaseHits:function(){this.dayGrid.releaseHits()},queryHit:function(e,t){return this.dayGrid.queryHit(e,t)},getHitSpan:function(e){return this.dayGrid.getHitSpan(e)},getHitEl:function(e){return this.dayGrid.getHitEl(e)},renderEvents:function(e){this.dayGrid.renderEvents(e),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(e,t){return this.dayGrid.renderDrag(e,t)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(e){this.dayGrid.renderSelection(e)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),kt={renderHeadIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'"+ee(e.opt("weekNumberTitle"))+"":""},renderNumberIntroHtml:function(e){var t=this.view,n=this.getCellDate(e,0);return t.colWeekNumbersVisible?'"+t.buildGotoAnchorHtml({date:n,type:"week",forceOff:1===this.colCnt},n.format("w"))+"":""},renderBgIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'":""},renderIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'":""}},St=Pe.MonthView=wt.extend({computeRange:function(e){var t,n=wt.prototype.computeRange.call(this,e);return this.isFixedWeeks()&&(t=Math.ceil(n.end.diff(n.start,"weeks",!0)),n.end.add(6-t,"weeks")),n},setGridHeight:function(e,t){t&&(e*=this.rowCnt/6),s(this.dayGrid.rowEls,e,!t)},isFixedWeeks:function(){return this.opt("fixedWeekCount")}});Oe.basic={class:wt},Oe.basicDay={type:"basic",duration:{days:1}},Oe.basicWeek={type:"basic",duration:{weeks:1}},Oe.month={class:St,duration:{months:1},defaults:{fixedWeekCount:!0}};var Ct=Pe.AgendaView=dt.extend({scroller:null,timeGridClass:ut,timeGrid:null,dayGridClass:ct,dayGrid:null,axisWidth:null,headContainerEl:null,noScrollRowEls:null,bottomRuleEl:null,initialize:function(){this.timeGrid=this.instantiateTimeGrid(),this.opt("allDaySlot")&&(this.dayGrid=this.instantiateDayGrid()),this.scroller=new ht({overflowX:"hidden",overflowY:"auto"})},instantiateTimeGrid:function(){var e=this.timeGridClass.extend(Tt);return new e(this)},instantiateDayGrid:function(){var e=this.dayGridClass.extend(Et);return new e(this)},setRange:function(e){dt.prototype.setRange.call(this,e),this.timeGrid.setRange(e),this.dayGrid&&this.dayGrid.setRange(e)},renderDates:function(){this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scroller.render();var t=this.scroller.el.addClass("fc-time-grid-container"),n=e('
    ').appendTo(t);this.el.find(".fc-body > tr > td").append(t),this.timeGrid.setElement(n),this.timeGrid.renderDates(),this.bottomRuleEl=e('
    ').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.timeGrid.renderHeadHtml())},unrenderDates:function(){this.timeGrid.unrenderDates(),this.timeGrid.removeElement(),this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement()),this.scroller.destroy()},renderSkeletonHtml:function(){return'
    '+(this.dayGrid?'

    ':"")+"
    "},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},renderBusinessHours:function(){this.timeGrid.renderBusinessHours(),this.dayGrid&&this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.timeGrid.unrenderBusinessHours(),this.dayGrid&&this.dayGrid.unrenderBusinessHours()},getNowIndicatorUnit:function(){return this.timeGrid.getNowIndicatorUnit()},renderNowIndicator:function(e){this.timeGrid.renderNowIndicator(e)},unrenderNowIndicator:function(){this.timeGrid.unrenderNowIndicator()},updateSize:function(e){this.timeGrid.updateSize(e),dt.prototype.updateSize.call(this,e)},updateWidth:function(){this.axisWidth=c(this.el.find(".fc-axis"))},setHeight:function(e,t){var n,o,a;this.bottomRuleEl.hide(),this.scroller.clear(),r(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.removeSegPopover(),n=this.opt("eventLimit"),n&&"number"!=typeof n&&(n=Lt),n&&this.dayGrid.limitRows(n)),t||(o=this.computeScrollerHeight(e),this.scroller.setHeight(o),a=this.scroller.getScrollbarWidths(),(a.left||a.right)&&(i(this.noScrollRowEls,a),o=this.computeScrollerHeight(e),this.scroller.setHeight(o)),this.scroller.lockOverflow(a),this.timeGrid.getTotalSlatHeight()"+t.buildGotoAnchorHtml({date:this.start,type:"week",forceOff:this.colCnt>1},ee(e))+""):'"},renderBgIntroHtml:function(){var e=this.view;return'"},renderIntroHtml:function(){var e=this.view;return'"}},Et={renderBgIntroHtml:function(){var e=this.view;return'"+e.getAllDayHtml()+""},renderIntroHtml:function(){var e=this.view;return'"}},Lt=5,_t=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];Oe.agenda={class:Ct,defaults:{allDaySlot:!0,slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0}},Oe.agendaDay={type:"agenda",duration:{days:1}},Oe.agendaWeek={type:"agenda",duration:{weeks:1}};var Dt=dt.extend({grid:null,scroller:null,initialize:function(){this.grid=new Mt(this),this.scroller=new ht({overflowX:"hidden",overflowY:"auto"})},setRange:function(e){dt.prototype.setRange.call(this,e),this.grid.setRange(e)},renderSkeleton:function(){this.el.addClass("fc-list-view "+this.widgetContentClass),this.scroller.render(),this.scroller.el.appendTo(this.el),this.grid.setElement(this.scroller.scrollEl)},unrenderSkeleton:function(){this.scroller.destroy()},setHeight:function(e,t){this.scroller.setHeight(this.computeScrollerHeight(e))},computeScrollerHeight:function(e){return e-u(this.el,this.scroller.el)},renderEvents:function(e){this.grid.renderEvents(e)},unrenderEvents:function(){this.grid.unrenderEvents()},isEventResizable:function(e){return!1},isEventDraggable:function(e){return!1}}),Mt=st.extend({segSelector:".fc-list-item",hasDayInteractions:!1,spanToSegs:function(e){for(var t,n=this.view,i=n.start.clone().time(0),r=0,o=[];i
    '+ee(this.view.opt("noEventsMessage"))+"
    ")},renderSegList:function(t){var n,i,r,o=this.groupSegsByDay(t),a=e('
    '),s=a.find("tbody");for(n=0;n'+(n?t.buildGotoAnchorHtml(e,{class:"fc-list-heading-main"},ee(e.format(n))):"")+(i?t.buildGotoAnchorHtml(e,{class:"fc-list-heading-alt"},ee(e.format(i))):"")+""},fgSegHtml:function(e){var t,n=this.view,i=["fc-list-item"].concat(this.getSegCustomClasses(e)),r=this.getSegBackgroundColor(e),o=e.event,a=o.url;return t=o.allDay?n.getAllDayHtml():n.isMultiDayEvent(o)?e.isStart||e.isEnd?ee(this.getEventTimeText(e)):n.getAllDayHtml():ee(this.getEventTimeText(o)),a&&i.push("fc-has-url"),''+(this.displayEventTime?''+(t||"")+"":"")+'"+ee(e.event.title||"")+""}});return Oe.list={class:Dt,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}},Oe.listDay={type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}},Oe.listWeek={type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}},Oe.listMonth={type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}},Oe.listYear={type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}},Pe}),define("fullcalendar",["fullcalendar/dist/fullcalendar.min"],function(e){return e}),define("text!fullcalendar/dist/fullcalendar.min.css",["module"],function(e){e.exports='/*!\n * FullCalendar v3.2.0 Stylesheet\n * Docs & License: https://fullcalendar.io/\n * (c) 2017 Adam Shaw\n */.fc-icon,body .fc{font-size:1em}.fc-button-group,.fc-icon{display:inline-block}.fc-bg,.fc-row .fc-bgevent-skeleton,.fc-row .fc-highlight-skeleton{bottom:0}.fc-icon,.fc-unselectable{-khtml-user-select:none;-webkit-touch-callout:none}.fc{direction:ltr;text-align:left}.fc-rtl{text-align:right}.fc th,.fc-basic-view td.fc-week-number,.fc-icon,.fc-toolbar{text-align:center}.fc-unthemed .fc-content,.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-list-view,.fc-unthemed .fc-popover,.fc-unthemed .fc-row,.fc-unthemed tbody,.fc-unthemed td,.fc-unthemed th,.fc-unthemed thead{border-color:#ddd}.fc-unthemed .fc-popover{background-color:#fff}.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-popover .fc-header{background:#eee}.fc-unthemed .fc-popover .fc-header .fc-close{color:#666}.fc-unthemed td.fc-today{background:#fcf8e3}.fc-highlight{background:#bce8f1;opacity:.3}.fc-bgevent{background:#8fdf82;opacity:.3}.fc-nonbusiness{background:#d7d7d7}.fc-icon{height:1em;line-height:1em;overflow:hidden;font-family:"Courier New",Courier,monospace;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fc-icon:after{position:relative}.fc-icon-left-single-arrow:after{content:"\\02039";font-weight:700;font-size:200%;top:-7%}.fc-icon-right-single-arrow:after{content:"\\0203A";font-weight:700;font-size:200%;top:-7%}.fc-icon-left-double-arrow:after{content:"\\000AB";font-size:160%;top:-7%}.fc-icon-right-double-arrow:after{content:"\\000BB";font-size:160%;top:-7%}.fc-icon-left-triangle:after{content:"\\25C4";font-size:125%;top:3%}.fc-icon-right-triangle:after{content:"\\25BA";font-size:125%;top:3%}.fc-icon-down-triangle:after{content:"\\25BC";font-size:125%;top:2%}.fc-icon-x:after{content:"\\000D7";font-size:200%;top:6%}.fc button{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;height:2.1em;padding:0 .6em;font-size:1em;white-space:nowrap;cursor:pointer}.fc button::-moz-focus-inner{margin:0;padding:0}.fc-state-default{border:1px solid;background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.fc-state-default.fc-corner-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.fc-state-default.fc-corner-right{border-top-right-radius:4px;border-bottom-right-radius:4px}.fc button .fc-icon{position:relative;top:-.05em;margin:0 .2em;vertical-align:middle}.fc-state-active,.fc-state-disabled,.fc-state-down,.fc-state-hover{color:#333;background-color:#e6e6e6}.fc-state-hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.fc-state-active,.fc-state-down{background-color:#ccc;background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.fc-state-disabled{cursor:default;background-image:none;opacity:.65;box-shadow:none}.fc-event.fc-draggable,.fc-event[href],.fc-popover .fc-header .fc-close,a[data-goto]{cursor:pointer}.fc .fc-button-group>*{float:left;margin:0 0 0 -1px}.fc .fc-button-group>:first-child{margin-left:0}.fc-popover{position:absolute;box-shadow:0 2px 6px rgba(0,0,0,.15)}.fc-popover .fc-header{padding:2px 4px}.fc-popover .fc-header .fc-title{margin:0 2px}.fc-ltr .fc-popover .fc-header .fc-title,.fc-rtl .fc-popover .fc-header .fc-close{float:left}.fc-ltr .fc-popover .fc-header .fc-close,.fc-rtl .fc-popover .fc-header .fc-title{float:right}.fc-unthemed .fc-popover{border-width:1px;border-style:solid}.fc-unthemed .fc-popover .fc-header .fc-close{font-size:.9em;margin-top:2px}.fc-popover>.ui-widget-header+.ui-widget-content{border-top:0}.fc-divider{border-style:solid;border-width:1px}hr.fc-divider{height:0;margin:0;padding:0 0 2px;border-width:1px 0}.fc-bg table,.fc-row .fc-bgevent-skeleton table,.fc-row .fc-highlight-skeleton table{height:100%}.fc-clear{clear:both}.fc-bg,.fc-bgevent-skeleton,.fc-helper-skeleton,.fc-highlight-skeleton{position:absolute;top:0;left:0;right:0}.fc table{width:100%;box-sizing:border-box;table-layout:fixed;border-collapse:collapse;border-spacing:0;font-size:1em}.fc td,.fc th{border-style:solid;border-width:1px;padding:0;vertical-align:top}.fc td.fc-today{border-style:double}a[data-goto]:hover{text-decoration:underline}.fc .fc-row{border-style:solid;border-width:0}.fc-row table{border-left:0 hidden transparent;border-right:0 hidden transparent;border-bottom:0 hidden transparent}.fc-row:first-child table{border-top:0 hidden transparent}.fc-row{position:relative}.fc-row .fc-bg{z-index:1}.fc-row .fc-bgevent-skeleton td,.fc-row .fc-highlight-skeleton td{border-color:transparent}.fc-row .fc-bgevent-skeleton{z-index:2}.fc-row .fc-highlight-skeleton{z-index:3}.fc-row .fc-content-skeleton{position:relative;z-index:4;padding-bottom:2px}.fc-row .fc-helper-skeleton{z-index:5}.fc-row .fc-content-skeleton td,.fc-row .fc-helper-skeleton td{background:0 0;border-color:transparent;border-bottom:0}.fc-row .fc-content-skeleton tbody td,.fc-row .fc-helper-skeleton tbody td{border-top:0}.fc-scroller{-webkit-overflow-scrolling:touch}.fc-row.fc-rigid,.fc-time-grid-event{overflow:hidden}.fc-scroller>.fc-day-grid,.fc-scroller>.fc-time-grid{position:relative;width:100%}.fc-event{position:relative;display:block;font-size:.85em;line-height:1.3;border-radius:3px;border:1px solid #3a87ad;font-weight:400}.fc-event,.fc-event-dot{background-color:#3a87ad}.fc-event,.fc-event:hover,.ui-widget .fc-event{color:#fff;text-decoration:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-event .fc-bg{z-index:1;background:#fff;opacity:.25}.fc-event .fc-content{position:relative;z-index:2}.fc-event .fc-resizer{position:absolute;z-index:4;display:none}.fc-event.fc-allow-mouse-resize .fc-resizer,.fc-event.fc-selected .fc-resizer{display:block}.fc-event.fc-selected .fc-resizer:before{content:"";position:absolute;z-index:9999;top:50%;left:50%;width:40px;height:40px;margin-left:-20px;margin-top:-20px}.fc-event.fc-selected{z-index:9999!important;box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event.fc-selected.fc-dragging{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-h-event.fc-selected:before{content:"";position:absolute;z-index:3;top:-10px;bottom:-10px;left:0;right:0}.fc-ltr .fc-h-event.fc-not-start,.fc-rtl .fc-h-event.fc-not-end{margin-left:0;border-left-width:0;padding-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-ltr .fc-h-event.fc-not-end,.fc-rtl .fc-h-event.fc-not-start{margin-right:0;border-right-width:0;padding-right:1px;border-top-right-radius:0;border-bottom-right-radius:0}.fc-ltr .fc-h-event .fc-start-resizer,.fc-rtl .fc-h-event .fc-end-resizer{cursor:w-resize;left:-1px}.fc-ltr .fc-h-event .fc-end-resizer,.fc-rtl .fc-h-event .fc-start-resizer{cursor:e-resize;right:-1px}.fc-h-event.fc-allow-mouse-resize .fc-resizer{width:7px;top:-1px;bottom:-1px}.fc-h-event.fc-selected .fc-resizer{border-radius:4px;border-width:1px;width:6px;height:6px;border-style:solid;border-color:inherit;background:#fff;top:50%;margin-top:-4px}.fc-ltr .fc-h-event.fc-selected .fc-start-resizer,.fc-rtl .fc-h-event.fc-selected .fc-end-resizer{margin-left:-4px}.fc-ltr .fc-h-event.fc-selected .fc-end-resizer,.fc-rtl .fc-h-event.fc-selected .fc-start-resizer{margin-right:-4px}.fc-day-grid-event{margin:1px 2px 0;padding:0 1px}tr:first-child>td>.fc-day-grid-event{margin-top:2px}.fc-day-grid-event.fc-selected:after{content:"";position:absolute;z-index:1;top:-1px;right:-1px;bottom:-1px;left:-1px;background:#000;opacity:.25}.fc-day-grid-event .fc-content{white-space:nowrap;overflow:hidden}.fc-day-grid-event .fc-time{font-weight:700}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer{margin-left:-2px}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer{margin-right:-2px}a.fc-more{margin:1px 3px;font-size:.85em;cursor:pointer;text-decoration:none}a.fc-more:hover{text-decoration:underline}.fc-limited{display:none}.fc-day-grid .fc-row{z-index:1}.fc-more-popover{z-index:2;width:220px}.fc-more-popover .fc-event-container{padding:10px}.fc-now-indicator{position:absolute;border:0 solid red}.fc-unselectable{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fc-toolbar.fc-header-toolbar{margin-bottom:1em}.fc-toolbar.fc-footer-toolbar{margin-top:1em}.fc-toolbar .fc-left{float:left}.fc-toolbar .fc-right{float:right}.fc-toolbar .fc-center{display:inline-block}.fc .fc-toolbar>*>*{float:left;margin-left:.75em}.fc .fc-toolbar>*>:first-child{margin-left:0}.fc-toolbar h2{margin:0}.fc-toolbar button{position:relative}.fc-toolbar .fc-state-hover,.fc-toolbar .ui-state-hover{z-index:2}.fc-toolbar .fc-state-down{z-index:3}.fc-toolbar .fc-state-active,.fc-toolbar .ui-state-active{z-index:4}.fc-toolbar button:focus{z-index:5}.fc-view-container *,.fc-view-container :after,.fc-view-container :before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fc-view,.fc-view>table{position:relative;z-index:1}.fc-basicDay-view .fc-content-skeleton,.fc-basicWeek-view .fc-content-skeleton{padding-bottom:1em}.fc-basic-view .fc-body .fc-row{min-height:4em}.fc-row.fc-rigid .fc-content-skeleton{position:absolute;top:0;left:0;right:0}.fc-day-top.fc-other-month{opacity:.3}.fc-basic-view .fc-day-number,.fc-basic-view .fc-week-number{padding:2px}.fc-basic-view th.fc-day-number,.fc-basic-view th.fc-week-number{padding:0 2px}.fc-ltr .fc-basic-view .fc-day-top .fc-day-number{float:right}.fc-rtl .fc-basic-view .fc-day-top .fc-day-number{float:left}.fc-ltr .fc-basic-view .fc-day-top .fc-week-number{float:left;border-radius:0 0 3px}.fc-rtl .fc-basic-view .fc-day-top .fc-week-number{float:right;border-radius:0 0 0 3px}.fc-basic-view .fc-day-top .fc-week-number{min-width:1.5em;text-align:center;background-color:#f2f2f2;color:grey}.fc-basic-view td.fc-week-number>*{display:inline-block;min-width:1.25em}.fc-agenda-view .fc-day-grid{position:relative;z-index:2}.fc-agenda-view .fc-day-grid .fc-row{min-height:3em}.fc-agenda-view .fc-day-grid .fc-row .fc-content-skeleton{padding-bottom:1em}.fc .fc-axis{vertical-align:middle;padding:0 4px;white-space:nowrap}.fc-ltr .fc-axis{text-align:right}.fc-rtl .fc-axis{text-align:left}.ui-widget td.fc-axis{font-weight:400}.fc-time-grid,.fc-time-grid-container{position:relative;z-index:1}.fc-time-grid{min-height:100%}.fc-time-grid table{border:0 hidden transparent}.fc-time-grid>.fc-bg{z-index:1}.fc-time-grid .fc-slats,.fc-time-grid>hr{position:relative;z-index:2}.fc-time-grid .fc-content-col{position:relative}.fc-time-grid .fc-content-skeleton{position:absolute;z-index:3;top:0;left:0;right:0}.fc-time-grid .fc-business-container{position:relative;z-index:1}.fc-time-grid .fc-bgevent-container{position:relative;z-index:2}.fc-time-grid .fc-highlight-container{z-index:3;position:relative}.fc-time-grid .fc-event-container{position:relative;z-index:4}.fc-time-grid .fc-now-indicator-line{z-index:5}.fc-time-grid .fc-helper-container{position:relative;z-index:6}.fc-time-grid .fc-slats td{height:1.5em;border-bottom:0}.fc-time-grid .fc-slats .fc-minor td{border-top-style:dotted}.fc-time-grid .fc-slats .ui-widget-content{background:0 0}.fc-time-grid .fc-highlight{position:absolute;left:0;right:0}.fc-ltr .fc-time-grid .fc-event-container{margin:0 2.5% 0 2px}.fc-rtl .fc-time-grid .fc-event-container{margin:0 2px 0 2.5%}.fc-time-grid .fc-bgevent,.fc-time-grid .fc-event{position:absolute;z-index:1}.fc-time-grid .fc-bgevent{left:0;right:0}.fc-v-event.fc-not-start{border-top-width:0;padding-top:1px;border-top-left-radius:0;border-top-right-radius:0}.fc-v-event.fc-not-end{border-bottom-width:0;padding-bottom:1px;border-bottom-left-radius:0;border-bottom-right-radius:0}.fc-time-grid-event.fc-selected{overflow:visible}.fc-time-grid-event.fc-selected .fc-bg{display:none}.fc-time-grid-event .fc-content{overflow:hidden}.fc-time-grid-event .fc-time,.fc-time-grid-event .fc-title{padding:0 1px}.fc-time-grid-event .fc-time{font-size:.85em;white-space:nowrap}.fc-time-grid-event.fc-short .fc-content{white-space:nowrap}.fc-time-grid-event.fc-short .fc-time,.fc-time-grid-event.fc-short .fc-title{display:inline-block;vertical-align:top}.fc-time-grid-event.fc-short .fc-time span{display:none}.fc-time-grid-event.fc-short .fc-time:before{content:attr(data-start)}.fc-time-grid-event.fc-short .fc-time:after{content:"\\000A0-\\000A0"}.fc-time-grid-event.fc-short .fc-title{font-size:.85em;padding:0}.fc-time-grid-event.fc-allow-mouse-resize .fc-resizer{left:0;right:0;bottom:0;height:8px;overflow:hidden;line-height:8px;font-size:11px;font-family:monospace;text-align:center;cursor:s-resize}.fc-time-grid-event.fc-allow-mouse-resize .fc-resizer:after{content:"="}.fc-time-grid-event.fc-selected .fc-resizer{border-radius:5px;border-width:1px;width:8px;height:8px;border-style:solid;border-color:inherit;background:#fff;left:50%;margin-left:-5px;bottom:-5px}.fc-time-grid .fc-now-indicator-line{border-top-width:1px;left:0;right:0}.fc-time-grid .fc-now-indicator-arrow{margin-top:-5px}.fc-ltr .fc-time-grid .fc-now-indicator-arrow{left:0;border-width:5px 0 5px 6px;border-top-color:transparent;border-bottom-color:transparent}.fc-rtl .fc-time-grid .fc-now-indicator-arrow{right:0;border-width:5px 6px 5px 0;border-top-color:transparent;border-bottom-color:transparent}.fc-event-dot{display:inline-block;width:10px;height:10px;border-radius:5px}.fc-rtl .fc-list-view{direction:rtl}.fc-list-view{border-width:1px;border-style:solid}.fc .fc-list-table{table-layout:auto}.fc-list-table td{border-width:1px 0 0;padding:8px 14px}.fc-list-table tr:first-child td{border-top-width:0}.fc-list-heading{border-bottom-width:1px}.fc-list-heading td{font-weight:700}.fc-ltr .fc-list-heading-main{float:left}.fc-ltr .fc-list-heading-alt,.fc-rtl .fc-list-heading-main{float:right}.fc-rtl .fc-list-heading-alt{float:left}.fc-list-item.fc-has-url{cursor:pointer}.fc-list-item:hover td{background-color:#f5f5f5}.fc-list-item-marker,.fc-list-item-time{white-space:nowrap;width:1px}.fc-ltr .fc-list-item-marker{padding-right:0}.fc-rtl .fc-list-item-marker{padding-left:0}.fc-list-item-title a{text-decoration:none;color:inherit}.fc-list-item-title a[href]:hover{text-decoration:underline}.fc-list-empty-wrap2{position:absolute;top:0;left:0;right:0;bottom:0}.fc-list-empty-wrap1{width:100%;height:100%;display:table}.fc-list-empty{display:table-cell;vertical-align:middle;text-align:center}.fc-unthemed .fc-list-empty{background-color:#eee}'}),!function(e){"function"==typeof define&&define.amd?define("fullcalendar/dist/locale/zh-cn",["jquery","moment"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("moment")):e(jQuery,moment)}(function(e,t){!function(){var e=t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var e,n;return e=t().startOf("week"),n=this.diff(e,"days")>=7?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var e,n;return e=t().startOf("week"),n=this.unix()2?arguments[2]:void 0,u=Math.min((void 0===c?a:o(c,a))-l,a-s),d=1;for(l0;)l in i?i[s]=i[l]:delete i[s],s+=d,l+=d;return i}},{105:105,108:108,109:109}],9:[function(e,t,i){"use strict";var n=e(109),o=e(105),r=e(108);t.exports=function(e){for(var t=n(this),i=r(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,i),l=a>2?arguments[2]:void 0,c=void 0===l?i:o(l,i);c>s;)t[s++]=e;return t}},{105:105,108:108,109:109}],10:[function(e,t,i){var n=e(37);t.exports=function(e,t){var i=[];return n(e,!1,i.push,i,t),i}},{37:37}],11:[function(e,t,i){var n=e(107),o=e(108),r=e(105);t.exports=function(e){return function(t,i,a){var s,l=n(t),c=o(l.length),u=r(a,c);if(e&&i!=i){for(;c>u;)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}}},{105:105,107:107,108:108}],12:[function(e,t,i){var n=e(25),o=e(45),r=e(109),a=e(108),s=e(15);t.exports=function(e,t){var i=1==e,l=2==e,c=3==e,u=4==e,d=6==e,f=5==e||d,p=t||s;return function(t,s,m){for(var h,g,b=r(t),v=o(b),A=n(s,m,3),w=a(v.length),y=0,x=i?p(t,w):l?p(t,0):void 0;w>y;y++)if((f||y in v)&&(h=v[y],g=A(h,y,b),e))if(i)x[y]=g;else if(g)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:x.push(h)}else if(u)return!1;return d?-1:c||u?u:x}}},{108:108,109:109,15:15,25:25,45:45}],13:[function(e,t,i){var n=e(3),o=e(109),r=e(45),a=e(108);t.exports=function(e,t,i,s,l){n(t);var c=o(e),u=r(c),d=a(c.length),f=l?d-1:0,p=l?-1:1;if(i<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,l?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:d>f;f+=p)f in u&&(s=t(s,u[f],f,c));return s}},{108:108,109:109,3:3,45:45}],14:[function(e,t,i){var n=e(49),o=e(47),r=e(117)("species");t.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),n(t)&&(t=t[r],null===t&&(t=void 0))),void 0===t?Array:t}},{117:117,47:47,49:49}],15:[function(e,t,i){var n=e(14);t.exports=function(e,t){return new(n(e))(t)}},{14:14}],16:[function(e,t,i){"use strict";var n=e(3),o=e(49),r=e(44),a=[].slice,s={},l=function(e,t,i){if(!(t in s)){for(var n=[],o=0;o1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(i(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!g(this,e)}}),p&&n(d.prototype,"size",{get:function(){return l(this[h])}}),d},def:function(e,t,i){var n,o,r=g(e,t);return r?r.v=i:(e._l=r={i:o=m(t,!0),k:t,v:i,p:n=e._l,n:void 0,r:!1},e._f||(e._f=r),n&&(n.n=r),e[h]++,"F"!==o&&(e._i[o]=r)),e},getEntry:g,setStrong:function(e,t,i){u(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,i=e._l;i&&i.r;)i=i.p;return e._t&&(e._l=i=i?i.n:e._t._f)?"keys"==t?d(0,i.k):"values"==t?d(0,i.v):d(0,[i.k,i.v]):(e._t=void 0,d(1))},i?"entries":"values",!i,!0),f(t)}}},{25:25,27:27,28:28,37:37,53:53,55:55,6:6,62:62,66:66,67:67,86:86,91:91}],20:[function(e,t,i){var n=e(17),o=e(10);t.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},{10:10,17:17}],21:[function(e,t,i){"use strict";var n=e(86),o=e(62).getWeak,r=e(7),a=e(49),s=e(6),l=e(37),c=e(12),u=e(39),d=c(5),f=c(6),p=0,m=function(e){return e._l||(e._l=new h)},h=function(){this.a=[]},g=function(e,t){return d(e.a,function(e){return e[0]===t})};h.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var i=g(this,e);i?i[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},t.exports={getConstructor:function(e,t,i,r){var c=e(function(e,n){s(e,c,t,"_i"),e._i=p++,e._l=void 0,void 0!=n&&l(n,i,e[r],e)});return n(c.prototype,{delete:function(e){if(!a(e))return!1;var t=o(e);return t===!0?m(this).delete(e):t&&u(t,this._i)&&delete t[this._i]},has:function(e){if(!a(e))return!1;var t=o(e);return t===!0?m(this).has(e):t&&u(t,this._i)}}),c},def:function(e,t,i){var n=o(r(t),!0);return n===!0?m(e).set(t,i):n[e._i]=i,e},ufstore:m}},{12:12,37:37,39:39,49:49,6:6,62:62,7:7,86:86}],22:[function(e,t,i){"use strict";var n=e(38),o=e(32),r=e(87),a=e(86),s=e(62),l=e(37),c=e(6),u=e(49),d=e(34),f=e(54),p=e(92),m=e(43);t.exports=function(e,t,i,h,g,b){var v=n[e],A=v,w=g?"set":"add",y=A&&A.prototype,x={},k=function(e){var t=y[e];r(y,e,"delete"==e?function(e){return!(b&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return b&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,i){return t.call(this,0===e?0:e,i),this})};if("function"==typeof A&&(b||y.forEach&&!d(function(){(new A).entries().next()}))){var C=new A,E=C[w](b?{}:-0,1)!=C,S=d(function(){C.has(1)}),_=f(function(e){new A(e)}),I=!b&&d(function(){for(var e=new A,t=5;t--;)e[w](t,t);return!e.has(-0)});_||(A=t(function(t,i){c(t,A,e);var n=m(new v,t,A);return void 0!=i&&l(i,g,n[w],n),n}),A.prototype=y,y.constructor=A),(S||I)&&(k("delete"),k("has"),g&&k("get")),(I||E)&&k(w),b&&y.clear&&delete y.clear}else A=h.getConstructor(t,e,g,w),a(A.prototype,i),s.NEED=!0;return p(A,e),x[e]=A,o(o.G+o.W+o.F*(A!=v),x),b||h.setStrong(A,e,g),A}},{32:32,34:34,37:37,38:38,43:43,49:49,54:54,6:6,62:62,86:86,87:87,92:92}],23:[function(e,t,i){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},{}],24:[function(e,t,i){"use strict";var n=e(67),o=e(85);t.exports=function(e,t,i){t in e?n.f(e,t,o(0,i)):e[t]=i}},{67:67,85:85}],25:[function(e,t,i){var n=e(3);t.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,o){return e.call(t,i,n,o)}}return function(){return e.apply(t,arguments)}}},{3:3}],26:[function(e,t,i){"use strict";var n=e(7),o=e(110),r="number";t.exports=function(e){if("string"!==e&&e!==r&&"default"!==e)throw TypeError("Incorrect hint");return o(n(this),e!=r)}},{110:110,7:7}],27:[function(e,t,i){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],28:[function(e,t,i){t.exports=!e(34)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{34:34}],29:[function(e,t,i){var n=e(49),o=e(38).document,r=n(o)&&n(o.createElement);t.exports=function(e){return r?o.createElement(e):{}}},{38:38,49:49}],30:[function(e,t,i){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],31:[function(e,t,i){var n=e(76),o=e(73),r=e(77);t.exports=function(e){var t=n(e),i=o.f;if(i)for(var a,s=i(e),l=r.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},{73:73,76:76,77:77}],32:[function(e,t,i){var n=e(38),o=e(23),r=e(40),a=e(87),s=e(25),l="prototype",c=function(e,t,i){var u,d,f,p,m=e&c.F,h=e&c.G,g=e&c.S,b=e&c.P,v=e&c.B,A=h?n:g?n[t]||(n[t]={}):(n[t]||{})[l],w=h?o:o[t]||(o[t]={}),y=w[l]||(w[l]={});h&&(i=t);for(u in i)d=!m&&A&&void 0!==A[u],f=(d?A:i)[u],p=v&&d?s(f,n):b&&"function"==typeof f?s(Function.call,f):f,A&&a(A,u,f,e&c.U),w[u]!=f&&r(w,u,p),b&&y[u]!=f&&(y[u]=f)};n.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},{23:23,25:25,38:38,40:40,87:87}],33:[function(e,t,i){var n=e(117)("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},{117:117}],34:[function(e,t,i){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],35:[function(e,t,i){"use strict";var n=e(40),o=e(87),r=e(34),a=e(27),s=e(117);t.exports=function(e,t,i){var l=s(e),c=i(a,l,""[e]),u=c[0],d=c[1];r(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,u),n(RegExp.prototype,l,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},{117:117,27:27,34:34,40:40,87:87}],36:[function(e,t,i){"use strict";var n=e(7);t.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{7:7}],37:[function(e,t,i){var n=e(25),o=e(51),r=e(46),a=e(7),s=e(108),l=e(118),c={},u={},i=t.exports=function(e,t,i,d,f){var p,m,h,g,b=f?function(){return e}:l(e),v=n(i,d,t?2:1),A=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(r(b)){for(p=s(e.length);p>A;A++)if(g=t?v(a(m=e[A])[0],m[1]):v(e[A]),g===c||g===u)return g}else for(h=b.call(e);!(m=h.next()).done;)if(g=o(h,v,m.value,t),g===c||g===u)return g};i.BREAK=c,i.RETURN=u},{108:108,118:118,25:25,46:46,51:51,7:7}],38:[function(e,t,i){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],39:[function(e,t,i){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],40:[function(e,t,i){var n=e(67),o=e(85);t.exports=e(28)?function(e,t,i){return n.f(e,t,o(1,i))}:function(e,t,i){return e[t]=i,e}},{28:28,67:67,85:85}],41:[function(e,t,i){t.exports=e(38).document&&document.documentElement},{38:38}],42:[function(e,t,i){t.exports=!e(28)&&!e(34)(function(){return 7!=Object.defineProperty(e(29)("div"),"a",{get:function(){return 7}}).a})},{28:28,29:29,34:34}],43:[function(e,t,i){var n=e(49),o=e(90).set;t.exports=function(e,t,i){var r,a=t.constructor;return a!==i&&"function"==typeof a&&(r=a.prototype)!==i.prototype&&n(r)&&o&&o(e,r),e}},{49:49,90:90}],44:[function(e,t,i){t.exports=function(e,t,i){var n=void 0===i;switch(t.length){case 0:return n?e():e.call(i);case 1:return n?e(t[0]):e.call(i,t[0]);case 2:return n?e(t[0],t[1]):e.call(i,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(i,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(i,t[0],t[1],t[2],t[3])}return e.apply(i,t)}},{}],45:[function(e,t,i){var n=e(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},{18:18}],46:[function(e,t,i){var n=e(56),o=e(117)("iterator"),r=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||r[o]===e)}},{117:117,56:56}],47:[function(e,t,i){var n=e(18);t.exports=Array.isArray||function(e){return"Array"==n(e)}},{18:18}],48:[function(e,t,i){var n=e(49),o=Math.floor;t.exports=function(e){return!n(e)&&isFinite(e)&&o(e)===e}},{49:49}],49:[function(e,t,i){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],50:[function(e,t,i){var n=e(49),o=e(18),r=e(117)("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},{117:117,18:18,49:49}],51:[function(e,t,i){var n=e(7);t.exports=function(e,t,i,o){try{return o?t(n(i)[0],i[1]):t(i)}catch(t){var r=e.return;throw void 0!==r&&n(r.call(e)),t}}},{7:7}],52:[function(e,t,i){"use strict";var n=e(66),o=e(85),r=e(92),a={};e(40)(a,e(117)("iterator"),function(){return this}),t.exports=function(e,t,i){e.prototype=n(a,{next:o(1,i)}),r(e,t+" Iterator")}},{117:117,40:40,66:66,85:85,92:92}],53:[function(e,t,i){"use strict";var n=e(58),o=e(32),r=e(87),a=e(40),s=e(39),l=e(56),c=e(52),u=e(92),d=e(74),f=e(117)("iterator"),p=!([].keys&&"next"in[].keys()),m="@@iterator",h="keys",g="values",b=function(){return this};t.exports=function(e,t,i,v,A,w,y){c(i,t,v);var x,k,C,E=function(e){if(!p&&e in T)return T[e];switch(e){case h:return function(){return new i(this,e)};case g:return function(){return new i(this,e)}}return function(){return new i(this,e)}},S=t+" Iterator",_=A==g,I=!1,T=e.prototype,B=T[f]||T[m]||A&&T[A],O=B||E(A),j=A?_?E("entries"):O:void 0,R="Array"==t?T.entries||B:B;if(R&&(C=d(R.call(new e)),C!==Object.prototype&&(u(C,S,!0),n||s(C,f)||a(C,f,b))),_&&B&&B.name!==g&&(I=!0,O=function(){return B.call(this)}),n&&!y||!p&&!I&&T[f]||a(T,f,O),l[t]=O,l[S]=b,A)if(x={values:_?O:E(g),keys:w?O:E(h),entries:j},y)for(k in x)k in T||r(T,k,x[k]);else o(o.P+o.F*(p||I),t,x);return x}},{117:117,32:32,39:39,40:40,52:52,56:56,58:58,74:74,87:87,92:92}],54:[function(e,t,i){var n=e(117)("iterator"),o=!1;try{var r=[7][n]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!o)return!1;var i=!1;try{var r=[7],a=r[n]();a.next=function(){return{done:i=!0}},r[n]=function(){return a},e(r)}catch(e){}return i}},{117:117}],55:[function(e,t,i){t.exports=function(e,t){return{value:t,done:!!e}}},{}],56:[function(e,t,i){t.exports={}},{}],57:[function(e,t,i){var n=e(76),o=e(107);t.exports=function(e,t){ +for(var i,r=o(e),a=n(r),s=a.length,l=0;s>l;)if(r[i=a[l++]]===t)return i}},{107:107,76:76}],58:[function(e,t,i){t.exports=!1},{}],59:[function(e,t,i){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},{}],60:[function(e,t,i){t.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},{}],61:[function(e,t,i){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],62:[function(e,t,i){var n=e(114)("meta"),o=e(49),r=e(39),a=e(67).f,s=0,l=Object.isExtensible||function(){return!0},c=!e(34)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,n)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[n].i},f=function(e,t){if(!r(e,n)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[n].w},p=function(e){return c&&m.NEED&&l(e)&&!r(e,n)&&u(e),e},m=t.exports={KEY:n,NEED:!1,fastKey:d,getWeak:f,onFreeze:p}},{114:114,34:34,39:39,49:49,67:67}],63:[function(e,t,i){var n=e(149),o=e(32),r=e(94)("metadata"),a=r.store||(r.store=new(e(255))),s=function(e,t,i){var o=a.get(e);if(!o){if(!i)return;a.set(e,o=new n)}var r=o.get(t);if(!r){if(!i)return;o.set(t,r=new n)}return r},l=function(e,t,i){var n=s(t,i,!1);return void 0!==n&&n.has(e)},c=function(e,t,i){var n=s(t,i,!1);return void 0===n?void 0:n.get(e)},u=function(e,t,i,n){s(i,n,!0).set(e,t)},d=function(e,t){var i=s(e,t,!1),n=[];return i&&i.forEach(function(e,t){n.push(t)}),n},f=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},p=function(e){o(o.S,"Reflect",e)};t.exports={store:a,map:s,has:l,get:c,set:u,keys:d,key:f,exp:p}},{149:149,255:255,32:32,94:94}],64:[function(e,t,i){var n=e(38),o=e(104).set,r=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,l="process"==e(18)(a);t.exports=function(){var e,t,i,c=function(){var n,o;for(l&&(n=a.domain)&&n.exit();e;){o=e.fn,e=e.next;try{o()}catch(n){throw e?i():t=void 0,n}}t=void 0,n&&n.enter()};if(l)i=function(){a.nextTick(c)};else if(r){var u=!0,d=document.createTextNode("");new r(c).observe(d,{characterData:!0}),i=function(){d.data=u=!u}}else if(s&&s.resolve){var f=s.resolve();i=function(){f.then(c)}}else i=function(){o.call(n,c)};return function(n){var o={fn:n,next:void 0};t&&(t.next=o),e||(e=o,i()),t=o}}},{104:104,18:18,38:38}],65:[function(e,t,i){"use strict";var n=e(76),o=e(73),r=e(77),a=e(109),s=e(45),l=Object.assign;t.exports=!l||e(34)(function(){var e={},t={},i=Symbol(),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach(function(e){t[e]=e}),7!=l({},e)[i]||Object.keys(l({},t)).join("")!=n})?function(e,t){for(var i=a(e),l=arguments.length,c=1,u=o.f,d=r.f;l>c;)for(var f,p=s(arguments[c++]),m=u?n(p).concat(u(p)):n(p),h=m.length,g=0;h>g;)d.call(p,f=m[g++])&&(i[f]=p[f]);return i}:l},{109:109,34:34,45:45,73:73,76:76,77:77}],66:[function(e,t,i){var n=e(7),o=e(68),r=e(30),a=e(93)("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,i=e(29)("iframe"),n=r.length,o="<",a=">";for(i.style.display="none",e(41).appendChild(i),i.src="javascript:",t=i.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;n--;)delete c[l][r[n]];return c()};t.exports=Object.create||function(e,t){var i;return null!==e?(s[l]=n(e),i=new s,s[l]=null,i[a]=e):i=c(),void 0===t?i:o(i,t)}},{29:29,30:30,41:41,68:68,7:7,93:93}],67:[function(e,t,i){var n=e(7),o=e(42),r=e(110),a=Object.defineProperty;i.f=e(28)?Object.defineProperty:function(e,t,i){if(n(e),t=r(t,!0),n(i),o)try{return a(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},{110:110,28:28,42:42,7:7}],68:[function(e,t,i){var n=e(67),o=e(7),r=e(76);t.exports=e(28)?Object.defineProperties:function(e,t){o(e);for(var i,a=r(t),s=a.length,l=0;s>l;)n.f(e,i=a[l++],t[i]);return e}},{28:28,67:67,7:7,76:76}],69:[function(e,t,i){t.exports=e(58)||!e(34)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete e(38)[t]})},{34:34,38:38,58:58}],70:[function(e,t,i){var n=e(77),o=e(85),r=e(107),a=e(110),s=e(39),l=e(42),c=Object.getOwnPropertyDescriptor;i.f=e(28)?c:function(e,t){if(e=r(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return o(!n.f.call(e,t),e[t])}},{107:107,110:110,28:28,39:39,42:42,77:77,85:85}],71:[function(e,t,i){var n=e(107),o=e(72).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(e){return a.slice()}};t.exports.f=function(e){return a&&"[object Window]"==r.call(e)?s(e):o(n(e))}},{107:107,72:72}],72:[function(e,t,i){var n=e(75),o=e(30).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},{30:30,75:75}],73:[function(e,t,i){i.f=Object.getOwnPropertySymbols},{}],74:[function(e,t,i){var n=e(39),o=e(109),r=e(93)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),n(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},{109:109,39:39,93:93}],75:[function(e,t,i){var n=e(39),o=e(107),r=e(11)(!1),a=e(93)("IE_PROTO");t.exports=function(e,t){var i,s=o(e),l=0,c=[];for(i in s)i!=a&&n(s,i)&&c.push(i);for(;t.length>l;)n(s,i=t[l++])&&(~r(c,i)||c.push(i));return c}},{107:107,11:11,39:39,93:93}],76:[function(e,t,i){var n=e(75),o=e(30);t.exports=Object.keys||function(e){return n(e,o)}},{30:30,75:75}],77:[function(e,t,i){i.f={}.propertyIsEnumerable},{}],78:[function(e,t,i){var n=e(32),o=e(23),r=e(34);t.exports=function(e,t){var i=(o.Object||{})[e]||Object[e],a={};a[e]=t(i),n(n.S+n.F*r(function(){i(1)}),"Object",a)}},{23:23,32:32,34:34}],79:[function(e,t,i){var n=e(76),o=e(107),r=e(77).f;t.exports=function(e){return function(t){for(var i,a=o(t),s=n(a),l=s.length,c=0,u=[];l>c;)r.call(a,i=s[c++])&&u.push(e?[i,a[i]]:a[i]);return u}}},{107:107,76:76,77:77}],80:[function(e,t,i){var n=e(72),o=e(73),r=e(7),a=e(38).Reflect;t.exports=a&&a.ownKeys||function(e){var t=n.f(r(e)),i=o.f;return i?t.concat(i(e)):t}},{38:38,7:7,72:72,73:73}],81:[function(e,t,i){var n=e(38).parseFloat,o=e(102).trim;t.exports=1/n(e(103)+"-0")!==-(1/0)?function(e){var t=o(String(e),3),i=n(t);return 0===i&&"-"==t.charAt(0)?-0:i}:n},{102:102,103:103,38:38}],82:[function(e,t,i){var n=e(38).parseInt,o=e(102).trim,r=e(103),a=/^[\-+]?0[xX]/;t.exports=8!==n(r+"08")||22!==n(r+"0x16")?function(e,t){var i=o(String(e),3);return n(i,t>>>0||(a.test(i)?16:10))}:n},{102:102,103:103,38:38}],83:[function(e,t,i){"use strict";var n=e(84),o=e(44),r=e(3);t.exports=function(){for(var e=r(this),t=arguments.length,i=Array(t),a=0,s=n._,l=!1;t>a;)(i[a]=arguments[a++])===s&&(l=!0);return function(){var n,r=this,a=arguments.length,c=0,u=0;if(!l&&!a)return o(e,i,r);if(n=i.slice(),l)for(;t>c;c++)n[c]===s&&(n[c]=arguments[u++]);for(;a>u;)n.push(arguments[u++]);return o(e,n,r)}}},{3:3,44:44,84:84}],84:[function(e,t,i){t.exports=e(38)},{38:38}],85:[function(e,t,i){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],86:[function(e,t,i){var n=e(87);t.exports=function(e,t,i){for(var o in t)n(e,o,t[o],i);return e}},{87:87}],87:[function(e,t,i){var n=e(38),o=e(40),r=e(39),a=e(114)("src"),s="toString",l=Function[s],c=(""+l).split(s);e(23).inspectSource=function(e){return l.call(e)},(t.exports=function(e,t,i,s){var l="function"==typeof i;l&&(r(i,"name")||o(i,"name",t)),e[t]!==i&&(l&&(r(i,a)||o(i,a,e[t]?""+e[t]:c.join(String(t)))),e===n?e[t]=i:s?e[t]?e[t]=i:o(e,t,i):(delete e[t],o(e,t,i)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||l.call(this)})},{114:114,23:23,38:38,39:39,40:40}],88:[function(e,t,i){t.exports=function(e,t){var i=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,i)}}},{}],89:[function(e,t,i){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},{}],90:[function(e,t,i){var n=e(49),o=e(7),r=function(e,t){if(o(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,i,n){try{n=e(25)(Function.call,e(70).f(Object.prototype,"__proto__").set,2),n(t,[]),i=!(t instanceof Array)}catch(e){i=!0}return function(e,t){return r(e,t),i?e.__proto__=t:n(e,t),e}}({},!1):void 0),check:r}},{25:25,49:49,7:7,70:70}],91:[function(e,t,i){"use strict";var n=e(38),o=e(67),r=e(28),a=e(117)("species");t.exports=function(e){var t=n[e];r&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},{117:117,28:28,38:38,67:67}],92:[function(e,t,i){var n=e(67).f,o=e(39),r=e(117)("toStringTag");t.exports=function(e,t,i){e&&!o(e=i?e:e.prototype,r)&&n(e,r,{configurable:!0,value:t})}},{117:117,39:39,67:67}],93:[function(e,t,i){var n=e(94)("keys"),o=e(114);t.exports=function(e){return n[e]||(n[e]=o(e))}},{114:114,94:94}],94:[function(e,t,i){var n=e(38),o="__core-js_shared__",r=n[o]||(n[o]={});t.exports=function(e){return r[e]||(r[e]={})}},{38:38}],95:[function(e,t,i){var n=e(7),o=e(3),r=e(117)("species");t.exports=function(e,t){var i,a=n(e).constructor;return void 0===a||void 0==(i=n(a)[r])?t:o(i)}},{117:117,3:3,7:7}],96:[function(e,t,i){var n=e(34);t.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},{34:34}],97:[function(e,t,i){var n=e(106),o=e(27);t.exports=function(e){return function(t,i){var r,a,s=String(o(t)),l=n(i),c=s.length;return l<0||l>=c?e?"":void 0:(r=s.charCodeAt(l),r<55296||r>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):r:e?s.slice(l,l+2):(r-55296<<10)+(a-56320)+65536)}}},{106:106,27:27}],98:[function(e,t,i){var n=e(50),o=e(27);t.exports=function(e,t,i){if(n(t))throw TypeError("String#"+i+" doesn't accept regex!");return String(o(e))}},{27:27,50:50}],99:[function(e,t,i){var n=e(32),o=e(34),r=e(27),a=/"/g,s=function(e,t,i,n){var o=String(r(e)),s="<"+t;return""!==i&&(s+=" "+i+'="'+String(n).replace(a,""")+'"'),s+">"+o+""};t.exports=function(e,t){var i={};i[e]=t(s),n(n.P+n.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",i)}},{27:27,32:32,34:34}],100:[function(e,t,i){var n=e(108),o=e(101),r=e(27);t.exports=function(e,t,i,a){var s=String(r(e)),l=s.length,c=void 0===i?" ":String(i),u=n(t);if(u<=l||""==c)return s;var d=u-l,f=o.call(c,Math.ceil(d/c.length));return f.length>d&&(f=f.slice(0,d)),a?f+s:s+f}},{101:101,108:108,27:27}],101:[function(e,t,i){"use strict";var n=e(106),o=e(27);t.exports=function(e){var t=String(o(this)),i="",r=n(e);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(i+=t);return i}},{106:106,27:27}],102:[function(e,t,i){var n=e(32),o=e(27),r=e(34),a=e(103),s="["+a+"]",l="​…",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(e,t,i){var o={},s=r(function(){return!!a[e]()||l[e]()!=l}),c=o[e]=s?t(f):a[e];i&&(o[i]=c),n(n.P+n.F*s,"String",o)},f=d.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};t.exports=d},{103:103,27:27,32:32,34:34}],103:[function(e,t,i){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],104:[function(e,t,i){var n,o,r,a=e(25),s=e(44),l=e(41),c=e(29),u=e(38),d=u.process,f=u.setImmediate,p=u.clearImmediate,m=u.MessageChannel,h=0,g={},b="onreadystatechange",v=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},A=function(e){v.call(e.data)};f&&p||(f=function(e){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return g[++h]=function(){s("function"==typeof e?e:Function(e),t)},n(h),h},p=function(e){delete g[e]},"process"==e(18)(d)?n=function(e){d.nextTick(a(v,e,1))}:m?(o=new m,r=o.port2,o.port1.onmessage=A,n=a(r.postMessage,r,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(e){u.postMessage(e+"","*")},u.addEventListener("message",A,!1)):n=b in c("script")?function(e){l.appendChild(c("script"))[b]=function(){l.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),t.exports={set:f,clear:p}},{18:18,25:25,29:29,38:38,41:41,44:44}],105:[function(e,t,i){var n=e(106),o=Math.max,r=Math.min;t.exports=function(e,t){return e=n(e),e<0?o(e+t,0):r(e,t)}},{106:106}],106:[function(e,t,i){var n=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},{}],107:[function(e,t,i){var n=e(45),o=e(27);t.exports=function(e){return n(o(e))}},{27:27,45:45}],108:[function(e,t,i){var n=e(106),o=Math.min;t.exports=function(e){return e>0?o(n(e),9007199254740991):0}},{106:106}],109:[function(e,t,i){var n=e(27);t.exports=function(e){return Object(n(e))}},{27:27}],110:[function(e,t,i){var n=e(49);t.exports=function(e,t){if(!n(e))return e;var i,o;if(t&&"function"==typeof(i=e.toString)&&!n(o=i.call(e)))return o;if("function"==typeof(i=e.valueOf)&&!n(o=i.call(e)))return o;if(!t&&"function"==typeof(i=e.toString)&&!n(o=i.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{49:49}],111:[function(e,t,i){"use strict";if(e(28)){var n=e(58),o=e(38),r=e(34),a=e(32),s=e(113),l=e(112),c=e(25),u=e(6),d=e(85),f=e(40),p=e(86),m=e(106),h=e(108),g=e(105),b=e(110),v=e(39),A=e(89),w=e(17),y=e(49),x=e(109),k=e(46),C=e(66),E=e(74),S=e(72).f,_=e(118),I=e(114),T=e(117),B=e(12),O=e(11),j=e(95),R=e(130),M=e(56),F=e(54),P=e(91),D=e(9),L=e(8),z=e(67),N=e(70),Y=z.f,Q=N.f,H=o.RangeError,q=o.TypeError,U=o.Uint8Array,V="ArrayBuffer",G="Shared"+V,W="BYTES_PER_ELEMENT",J="prototype",X=Array[J],Z=l.ArrayBuffer,K=l.DataView,$=B(0),ee=B(2),te=B(3),ie=B(4),ne=B(5),oe=B(6),re=O(!0),ae=O(!1),se=R.values,le=R.keys,ce=R.entries,ue=X.lastIndexOf,de=X.reduce,fe=X.reduceRight,pe=X.join,me=X.sort,he=X.slice,ge=X.toString,be=X.toLocaleString,ve=T("iterator"),Ae=T("toStringTag"),we=I("typed_constructor"),ye=I("def_constructor"),xe=s.CONSTR,ke=s.TYPED,Ce=s.VIEW,Ee="Wrong length!",Se=B(1,function(e,t){return je(j(e,e[ye]),t)}),_e=r(function(){return 1===new U(new Uint16Array([1]).buffer)[0]}),Ie=!!U&&!!U[J].set&&r(function(){new U(1).set({})}),Te=function(e,t){if(void 0===e)throw q(Ee);var i=+e,n=h(e);if(t&&!A(i,n))throw H(Ee);return n},Be=function(e,t){var i=m(e);if(i<0||i%t)throw H("Wrong offset!");return i},Oe=function(e){if(y(e)&&ke in e)return e;throw q(e+" is not a typed array!")},je=function(e,t){if(!(y(e)&&we in e))throw q("It is not a typed array constructor!");return new e(t)},Re=function(e,t){return Me(j(e,e[ye]),t)},Me=function(e,t){for(var i=0,n=t.length,o=je(e,n);n>i;)o[i]=t[i++];return o},Fe=function(e,t,i){Y(e,t,{get:function(){return this._d[i]}})},Pe=function(e){var t,i,n,o,r,a,s=x(e),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=_(s);if(void 0!=f&&!k(f)){for(a=f.call(s),n=[],t=0;!(r=a.next()).done;t++)n.push(r.value);s=n}for(d&&l>2&&(u=c(u,arguments[2],2)),t=0,i=h(s.length),o=je(this,i);i>t;t++)o[t]=d?u(s[t],t):s[t];return o},De=function(){for(var e=0,t=arguments.length,i=je(this,t);t>e;)i[e]=arguments[e++];return i},Le=!!U&&r(function(){be.call(new U(1))}),ze=function(){return be.apply(Le?he.call(Oe(this)):Oe(this),arguments)},Ne={copyWithin:function(e,t){return L.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ie(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return D.apply(Oe(this),arguments)},filter:function(e){return Re(this,ee(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return oe(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){$(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return re(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return pe.apply(Oe(this),arguments)},lastIndexOf:function(e){return ue.apply(Oe(this),arguments)},map:function(e){return Se(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return de.apply(Oe(this),arguments)},reduceRight:function(e){return fe.apply(Oe(this),arguments)},reverse:function(){for(var e,t=this,i=Oe(t).length,n=Math.floor(i/2),o=0;o1?arguments[1]:void 0)},sort:function(e){return me.call(Oe(this),e)},subarray:function(e,t){var i=Oe(this),n=i.length,o=g(e,n);return new(j(i,i[ye]))(i.buffer,i.byteOffset+o*i.BYTES_PER_ELEMENT,h((void 0===t?n:g(t,n))-o))}},Ye=function(e,t){return Re(this,he.call(Oe(this),e,t))},Qe=function(e){Oe(this);var t=Be(arguments[1],1),i=this.length,n=x(e),o=h(n.length),r=0;if(o+t>i)throw H(Ee);for(;r255?255:255&n),o.v[m](i*t+o.o,n,_e)},T=function(e,t){Y(e,t,{get:function(){return _(this,t)},set:function(e){return I(this,t,e)},enumerable:!0})};A?(g=i(function(e,i,n,o){u(e,g,c,"_d");var r,a,s,l,d=0,p=0;if(y(i)){if(!(i instanceof Z||(l=w(i))==V||l==G))return ke in i?Me(g,i):Pe.call(g,i);r=i,p=Be(n,t);var m=i.byteLength;if(void 0===o){if(m%t)throw H(Ee);if(a=m-p,a<0)throw H(Ee)}else if(a=h(o)*t,a+p>m)throw H(Ee);s=a/t}else s=Te(i,!0),a=s*t,r=new Z(a);for(f(e,"_d",{b:r,o:p,l:a,e:s,v:new K(r)});d>1,u=23===t?T(2,-24)-T(2,-77):0,d=0,f=e<0||0===e&&1/e<0?1:0;for(e=I(e),e!=e||e===S?(o=e!=e?1:0,n=l):(n=B(O(e)/j),e*(r=T(2,-n))<1&&(n--,r*=2),e+=n+c>=1?u/r:u*T(2,1-c),e*r>=2&&(n++,r/=2),n+c>=l?(o=0,n=l):n+c>=1?(o=(e*r-1)*T(2,t),n+=c):(o=e*T(2,c-1)*T(2,t),n=0));t>=8;a[d++]=255&o,o/=256,t-=8);for(n=n<0;a[d++]=255&n,n/=256,s-=8);return a[--d]|=128*f,a},N=function(e,t,i){var n,o=8*i-t-1,r=(1<>1,s=o-7,l=i-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;n=256*n+e[l],l--,s-=8);if(0===u)u=1-a;else{if(u===r)return n?NaN:c?-S:S;n+=T(2,t),u-=a}return(c?-1:1)*n*T(2,u-t)},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Q=function(e){return[255&e]},H=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},U=function(e){return z(e,52,8)},V=function(e){return z(e,23,4)},G=function(e,t,i){m(e[A],t,{get:function(){return this[i]}})},W=function(e,t,i,n){var o=+i,r=d(o);if(o!=r||r<0||r+t>e[D])throw E(y);var a=e[P]._b,s=r+e[L],l=a.slice(s,s+t);return n?l:l.reverse()},J=function(e,t,i,n,o,r){var a=+i,s=d(a);if(a!=s||s<0||s+t>e[D])throw E(y);for(var l=e[P]._b,c=s+e[L],u=n(+o),f=0;fee;)(Z=$[ee++])in x||s(x,Z,_[Z]);r||(K.constructor=x)}var te=new k(new x(2)),ie=k[A].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||l(k[A],{setInt8:function(e,t){ie.call(this,e,t<<24>>24)},setUint8:function(e,t){ie.call(this,e,t<<24>>24)}},!0)}else x=function(e){var t=X(this,e);this._b=h.call(Array(t),0),this[D]=t},k=function(e,t,i){u(this,k,v),u(e,x,v);var n=e[D],o=d(t);if(o<0||o>n)throw E("Wrong offset!");if(i=void 0===i?n-o:f(i),o+i>n)throw E(w);this[P]=e,this[L]=o,this[D]=i},o&&(G(x,M,"_l"),G(k,R,"_b"),G(k,M,"_l"),G(k,F,"_o")),l(k[A],{getInt8:function(e){return W(this,1,e)[0]<<24>>24},getUint8:function(e){return W(this,1,e)[0]},getInt16:function(e){var t=W(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=W(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Y(W(this,4,e,arguments[1]))},getUint32:function(e){return Y(W(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return N(W(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return N(W(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){J(this,1,e,Q,t)},setUint8:function(e,t){J(this,1,e,Q,t)},setInt16:function(e,t){J(this,2,e,H,t,arguments[2])},setUint16:function(e,t){J(this,2,e,H,t,arguments[2])},setInt32:function(e,t){J(this,4,e,q,t,arguments[2])},setUint32:function(e,t){J(this,4,e,q,t,arguments[2])},setFloat32:function(e,t){J(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){J(this,8,e,U,t,arguments[2])}});g(x,b),g(k,v),s(k[A],a.VIEW,!0),i[b]=x,i[v]=k},{106:106,108:108,113:113,28:28,34:34,38:38,40:40,58:58,6:6,67:67,72:72,86:86,9:9,92:92}],113:[function(e,t,i){for(var n,o=e(38),r=e(40),a=e(114),s=a("typed_array"),l=a("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,d=0,f=9,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d1?arguments[1]:void 0)}}),e(5)(r)},{12:12,32:32,5:5}],125:[function(e,t,i){"use strict";var n=e(32),o=e(12)(5),r="find",a=!0;r in[]&&Array(1)[r](function(){a=!1}),n(n.P+n.F*a,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),e(5)(r)},{12:12,32:32,5:5}],126:[function(e,t,i){"use strict";var n=e(32),o=e(12)(0),r=e(96)([].forEach,!0);n(n.P+n.F*!r,"Array",{forEach:function(e){return o(this,e,arguments[1])}})},{12:12,32:32,96:96}],127:[function(e,t,i){"use strict";var n=e(25),o=e(32),r=e(109),a=e(51),s=e(46),l=e(108),c=e(24),u=e(118);o(o.S+o.F*!e(54)(function(e){Array.from(e)}),"Array",{from:function(e){var t,i,o,d,f=r(e),p="function"==typeof this?this:Array,m=arguments.length,h=m>1?arguments[1]:void 0,g=void 0!==h,b=0,v=u(f);if(g&&(h=n(h,m>2?arguments[2]:void 0,2)),void 0==v||p==Array&&s(v))for(t=l(f.length),i=new p(t);t>b;b++)c(i,b,g?h(f[b],b):f[b]);else for(d=v.call(f),i=new p;!(o=d.next()).done;b++)c(i,b,g?a(d,h,[o.value,b],!0):o.value);return i.length=b,i}})},{108:108,109:109,118:118,24:24,25:25,32:32,46:46,51:51,54:54}],128:[function(e,t,i){"use strict";var n=e(32),o=e(11)(!1),r=[].indexOf,a=!!r&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!e(96)(r)),"Array",{indexOf:function(e){return a?r.apply(this,arguments)||0:o(this,e,arguments[1])}})},{11:11,32:32,96:96}],129:[function(e,t,i){var n=e(32);n(n.S,"Array",{isArray:e(47)})},{32:32,47:47}],130:[function(e,t,i){"use strict";var n=e(5),o=e(55),r=e(56),a=e(107);t.exports=e(53)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,i=this._i++;return!e||i>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,i):"values"==t?o(0,e[i]):o(0,[i,e[i]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},{107:107,5:5,53:53,55:55,56:56}],131:[function(e,t,i){"use strict";var n=e(32),o=e(107),r=[].join;n(n.P+n.F*(e(45)!=Object||!e(96)(r)),"Array",{join:function(e){return r.call(o(this),void 0===e?",":e)}})},{107:107,32:32,45:45,96:96}],132:[function(e,t,i){"use strict";var n=e(32),o=e(107),r=e(106),a=e(108),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(l||!e(96)(s)),"Array",{lastIndexOf:function(e){if(l)return s.apply(this,arguments)||0;var t=o(this),i=a(t.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,r(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},{106:106,107:107,108:108,32:32,96:96}],133:[function(e,t,i){"use strict";var n=e(32),o=e(12)(1);n(n.P+n.F*!e(96)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},{12:12,32:32,96:96}],134:[function(e,t,i){"use strict";var n=e(32),o=e(24);n(n.S+n.F*e(34)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,i=new("function"==typeof this?this:Array)(t);t>e;)o(i,e,arguments[e++]);return i.length=t,i}})},{24:24,32:32,34:34}],135:[function(e,t,i){"use strict";var n=e(32),o=e(13);n(n.P+n.F*!e(96)([].reduceRight,!0),"Array",{reduceRight:function(e){return o(this,e,arguments.length,arguments[1],!0)}})},{13:13,32:32,96:96}],136:[function(e,t,i){"use strict";var n=e(32),o=e(13);n(n.P+n.F*!e(96)([].reduce,!0),"Array",{reduce:function(e){return o(this,e,arguments.length,arguments[1],!1)}})},{13:13,32:32,96:96}],137:[function(e,t,i){"use strict";var n=e(32),o=e(41),r=e(18),a=e(105),s=e(108),l=[].slice;n(n.P+n.F*e(34)(function(){o&&l.call(o)}),"Array",{slice:function(e,t){var i=s(this.length),n=r(this);if(t=void 0===t?i:t,"Array"==n)return l.call(this,e,t);for(var o=a(e,i),c=a(t,i),u=s(c-o),d=Array(u),f=0;f9?e:"0"+e};n(n.P+n.F*(o(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!o(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),i=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(i>99?i:"0"+a(i))+"Z"}})},{32:32,34:34}],143:[function(e,t,i){"use strict";var n=e(32),o=e(109),r=e(110);n(n.P+n.F*e(34)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=o(this),i=r(t);return"number"!=typeof i||isFinite(i)?t.toISOString():null}})},{109:109,110:110,32:32,34:34}],144:[function(e,t,i){var n=e(117)("toPrimitive"),o=Date.prototype;n in o||e(40)(o,n,e(26))},{117:117,26:26,40:40}],145:[function(e,t,i){var n=Date.prototype,o="Invalid Date",r="toString",a=n[r],s=n.getTime;new Date(NaN)+""!=o&&e(87)(n,r,function(){var e=s.call(this);return e===e?a.call(this):o})},{87:87}],146:[function(e,t,i){var n=e(32);n(n.P,"Function",{bind:e(16)})},{16:16,32:32}],147:[function(e,t,i){"use strict";var n=e(49),o=e(74),r=e(117)("hasInstance"),a=Function.prototype;r in a||e(67).f(a,r,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},{117:117,49:49,67:67,74:74}],148:[function(e,t,i){var n=e(67).f,o=e(85),r=e(39),a=Function.prototype,s=/^\s*function ([^ (]*)/,l="name",c=Object.isExtensible||function(){return!0};l in a||e(28)&&n(a,l,{configurable:!0,get:function(){try{var e=this,t=(""+e).match(s)[1];return r(e,l)||!c(e)||n(e,l,o(5,t)),t}catch(e){return""}}})},{28:28,39:39,67:67,85:85}],149:[function(e,t,i){"use strict";var n=e(19);t.exports=e(22)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(this,e);return t&&t.v},set:function(e,t){return n.def(this,0===e?0:e,t)}},n,!0)},{19:19,22:22}],150:[function(e,t,i){var n=e(32),o=e(60),r=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){ +return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+r(e-1)*r(e+1))}})},{32:32,60:60}],151:[function(e,t,i){function n(e){return isFinite(e=+e)&&0!=e?e<0?-n(-e):Math.log(e+Math.sqrt(e*e+1)):e}var o=e(32),r=Math.asinh;o(o.S+o.F*!(r&&1/r(0)>0),"Math",{asinh:n})},{32:32}],152:[function(e,t,i){var n=e(32),o=Math.atanh;n(n.S+n.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},{32:32}],153:[function(e,t,i){var n=e(32),o=e(61);n(n.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},{32:32,61:61}],154:[function(e,t,i){var n=e(32);n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},{32:32}],155:[function(e,t,i){var n=e(32),o=Math.exp;n(n.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},{32:32}],156:[function(e,t,i){var n=e(32),o=e(59);n(n.S+n.F*(o!=Math.expm1),"Math",{expm1:o})},{32:32,59:59}],157:[function(e,t,i){var n=e(32),o=e(61),r=Math.pow,a=r(2,-52),s=r(2,-23),l=r(2,127)*(2-s),c=r(2,-126),u=function(e){return e+1/a-1/a};n(n.S,"Math",{fround:function(e){var t,i,n=Math.abs(e),r=o(e);return nl||i!=i?r*(1/0):r*i)}})},{32:32,61:61}],158:[function(e,t,i){var n=e(32),o=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var i,n,r=0,a=0,s=arguments.length,l=0;a0?(n=i/l,r+=n*n):r+=i;return l===1/0?1/0:l*Math.sqrt(r)}})},{32:32}],159:[function(e,t,i){var n=e(32),o=Math.imul;n(n.S+n.F*e(34)(function(){return o(4294967295,5)!=-5||2!=o.length}),"Math",{imul:function(e,t){var i=65535,n=+e,o=+t,r=i&n,a=i&o;return 0|r*a+((i&n>>>16)*a+r*(i&o>>>16)<<16>>>0)}})},{32:32,34:34}],160:[function(e,t,i){var n=e(32);n(n.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},{32:32}],161:[function(e,t,i){var n=e(32);n(n.S,"Math",{log1p:e(60)})},{32:32,60:60}],162:[function(e,t,i){var n=e(32);n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},{32:32}],163:[function(e,t,i){var n=e(32);n(n.S,"Math",{sign:e(61)})},{32:32,61:61}],164:[function(e,t,i){var n=e(32),o=e(59),r=Math.exp;n(n.S+n.F*e(34)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(r(e-1)-r(-e-1))*(Math.E/2)}})},{32:32,34:34,59:59}],165:[function(e,t,i){var n=e(32),o=e(59),r=Math.exp;n(n.S,"Math",{tanh:function(e){var t=o(e=+e),i=o(-e);return t==1/0?1:i==1/0?-1:(t-i)/(r(e)+r(-e))}})},{32:32,59:59}],166:[function(e,t,i){var n=e(32);n(n.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},{32:32}],167:[function(e,t,i){"use strict";var n=e(38),o=e(39),r=e(18),a=e(43),s=e(110),l=e(34),c=e(72).f,u=e(70).f,d=e(67).f,f=e(102).trim,p="Number",m=n[p],h=m,g=m.prototype,b=r(e(66)(g))==p,v="trim"in String.prototype,A=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=v?t.trim():f(t,3);var i,n,o,r=t.charCodeAt(0);if(43===r||45===r){if(i=t.charCodeAt(2),88===i||120===i)return NaN}else if(48===r){switch(t.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+t}for(var a,l=t.slice(2),c=0,u=l.length;co)return NaN;return parseInt(l,n)}}return+t};if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof m&&(b?l(function(){g.valueOf.call(i)}):r(i)!=p)?a(new h(A(t)),i,m):A(t)};for(var w,y=e(28)?c(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;y.length>x;x++)o(h,w=y[x])&&!o(m,w)&&d(m,w,u(h,w));m.prototype=g,g.constructor=m,e(87)(n,p,m)}},{102:102,110:110,18:18,28:28,34:34,38:38,39:39,43:43,66:66,67:67,70:70,72:72,87:87}],168:[function(e,t,i){var n=e(32);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},{32:32}],169:[function(e,t,i){var n=e(32),o=e(38).isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},{32:32,38:38}],170:[function(e,t,i){var n=e(32);n(n.S,"Number",{isInteger:e(48)})},{32:32,48:48}],171:[function(e,t,i){var n=e(32);n(n.S,"Number",{isNaN:function(e){return e!=e}})},{32:32}],172:[function(e,t,i){var n=e(32),o=e(48),r=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return o(e)&&r(e)<=9007199254740991}})},{32:32,48:48}],173:[function(e,t,i){var n=e(32);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{32:32}],174:[function(e,t,i){var n=e(32);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{32:32}],175:[function(e,t,i){var n=e(32),o=e(81);n(n.S+n.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},{32:32,81:81}],176:[function(e,t,i){var n=e(32),o=e(82);n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},{32:32,82:82}],177:[function(e,t,i){"use strict";var n=e(32),o=e(106),r=e(4),a=e(101),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d="0",f=function(e,t){for(var i=-1,n=t;++i<6;)n+=e*c[i],c[i]=n%1e7,n=l(n/1e7)},p=function(e){for(var t=6,i=0;--t>=0;)i+=c[t],c[t]=l(i/e),i=i%e*1e7},m=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var i=String(c[e]);t=""===t?i:t+a.call(d,7-i.length)+i}return t},h=function(e,t,i){return 0===t?i:t%2===1?h(e,t-1,i*e):h(e*e,t/2,i)},g=function(e){for(var t=0,i=e;i>=4096;)t+=12,i/=4096;for(;i>=2;)t+=1,i/=2;return t};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e(34)(function(){s.call({})})),"Number",{toFixed:function(e){var t,i,n,s,l=r(this,u),c=o(e),b="",v=d;if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(b="-",l=-l),l>1e-21)if(t=g(l*h(2,69,1))-69,i=t<0?l*h(2,-t,1):l/h(2,t,1),i*=4503599627370496,t=52-t,t>0){for(f(0,i),n=c;n>=7;)f(1e7,0),n-=7;for(f(h(10,n,1),0),n=t-1;n>=23;)p(1<<23),n-=23;p(1<0?(s=v.length,v=b+(s<=c?"0."+a.call(d,c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c))):v=b+v,v}})},{101:101,106:106,32:32,34:34,4:4}],178:[function(e,t,i){"use strict";var n=e(32),o=e(34),r=e(4),a=1..toPrecision;n(n.P+n.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(e){var t=r(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},{32:32,34:34,4:4}],179:[function(e,t,i){var n=e(32);n(n.S+n.F,"Object",{assign:e(65)})},{32:32,65:65}],180:[function(e,t,i){var n=e(32);n(n.S,"Object",{create:e(66)})},{32:32,66:66}],181:[function(e,t,i){var n=e(32);n(n.S+n.F*!e(28),"Object",{defineProperties:e(68)})},{28:28,32:32,68:68}],182:[function(e,t,i){var n=e(32);n(n.S+n.F*!e(28),"Object",{defineProperty:e(67).f})},{28:28,32:32,67:67}],183:[function(e,t,i){var n=e(49),o=e(62).onFreeze;e(78)("freeze",function(e){return function(t){return e&&n(t)?e(o(t)):t}})},{49:49,62:62,78:78}],184:[function(e,t,i){var n=e(107),o=e(70).f;e(78)("getOwnPropertyDescriptor",function(){return function(e,t){return o(n(e),t)}})},{107:107,70:70,78:78}],185:[function(e,t,i){e(78)("getOwnPropertyNames",function(){return e(71).f})},{71:71,78:78}],186:[function(e,t,i){var n=e(109),o=e(74);e(78)("getPrototypeOf",function(){return function(e){return o(n(e))}})},{109:109,74:74,78:78}],187:[function(e,t,i){var n=e(49);e(78)("isExtensible",function(e){return function(t){return!!n(t)&&(!e||e(t))}})},{49:49,78:78}],188:[function(e,t,i){var n=e(49);e(78)("isFrozen",function(e){return function(t){return!n(t)||!!e&&e(t)}})},{49:49,78:78}],189:[function(e,t,i){var n=e(49);e(78)("isSealed",function(e){return function(t){return!n(t)||!!e&&e(t)}})},{49:49,78:78}],190:[function(e,t,i){var n=e(32);n(n.S,"Object",{is:e(89)})},{32:32,89:89}],191:[function(e,t,i){var n=e(109),o=e(76);e(78)("keys",function(){return function(e){return o(n(e))}})},{109:109,76:76,78:78}],192:[function(e,t,i){var n=e(49),o=e(62).onFreeze;e(78)("preventExtensions",function(e){return function(t){return e&&n(t)?e(o(t)):t}})},{49:49,62:62,78:78}],193:[function(e,t,i){var n=e(49),o=e(62).onFreeze;e(78)("seal",function(e){return function(t){return e&&n(t)?e(o(t)):t}})},{49:49,62:62,78:78}],194:[function(e,t,i){var n=e(32);n(n.S,"Object",{setPrototypeOf:e(90).set})},{32:32,90:90}],195:[function(e,t,i){"use strict";var n=e(17),o={};o[e(117)("toStringTag")]="z",o+""!="[object z]"&&e(87)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},{117:117,17:17,87:87}],196:[function(e,t,i){var n=e(32),o=e(81);n(n.G+n.F*(parseFloat!=o),{parseFloat:o})},{32:32,81:81}],197:[function(e,t,i){var n=e(32),o=e(82);n(n.G+n.F*(parseInt!=o),{parseInt:o})},{32:32,82:82}],198:[function(e,t,i){"use strict";var n,o,r,a=e(58),s=e(38),l=e(25),c=e(17),u=e(32),d=e(49),f=e(3),p=e(6),m=e(37),h=e(95),g=e(104).set,b=e(64)(),v="Promise",A=s.TypeError,w=s.process,y=s[v],w=s.process,x="process"==c(w),k=function(){},C=!!function(){try{var t=y.resolve(1),i=(t.constructor={})[e(117)("species")]=function(e){e(k,k)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof i}catch(e){}}(),E=function(e,t){return e===t||e===y&&t===r},S=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},_=function(e){return E(y,e)?new I(e):new o(e)},I=o=function(e){var t,i;this.promise=new e(function(e,n){if(void 0!==t||void 0!==i)throw A("Bad Promise constructor");t=e,i=n}),this.resolve=f(t),this.reject=f(i)},T=function(e){try{e()}catch(e){return{error:e}}},B=function(e,t){if(!e._n){e._n=!0;var i=e._c;b(function(){for(var n=e._v,o=1==e._s,r=0,a=function(t){var i,r,a=o?t.ok:t.fail,s=t.resolve,l=t.reject,c=t.domain;try{a?(o||(2==e._h&&R(e),e._h=1),a===!0?i=n:(c&&c.enter(),i=a(n),c&&c.exit()),i===t.promise?l(A("Promise-chain cycle")):(r=S(i))?r.call(i,s,l):s(i)):l(n)}catch(e){l(e)}};i.length>r;)a(i[r++]);e._c=[],e._n=!1,t&&!e._h&&O(e)})}},O=function(e){g.call(s,function(){var t,i,n,o=e._v;if(j(e)&&(t=T(function(){x?w.emit("unhandledRejection",o,e):(i=s.onunhandledrejection)?i({promise:e,reason:o}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",o)}),e._h=x||j(e)?2:1),e._a=void 0,t)throw t.error})},j=function(e){if(1==e._h)return!1;for(var t,i=e._a||e._c,n=0;i.length>n;)if(t=i[n++],t.fail||!j(t.promise))return!1;return!0},R=function(e){g.call(s,function(){var t;x?w.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},M=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),B(t,!0))},F=function(e){var t,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw A("Promise can't be resolved itself");(t=S(e))?b(function(){var n={_w:i,_d:!1};try{t.call(e,l(F,n,1),l(M,n,1))}catch(e){M.call(n,e)}}):(i._v=e,i._s=1,B(i,!1))}catch(e){M.call({_w:i,_d:!1},e)}}};C||(y=function(e){p(this,y,v,"_h"),f(e),n.call(this);try{e(l(F,this,1),l(M,this,1))}catch(e){M.call(this,e)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=e(86)(y.prototype,{then:function(e,t){var i=_(h(this,y));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=x?w.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&B(this,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),I=function(){var e=new n;this.promise=e,this.resolve=l(F,e,1),this.reject=l(M,e,1)}),u(u.G+u.W+u.F*!C,{Promise:y}),e(92)(y,v),e(91)(v),r=e(23)[v],u(u.S+u.F*!C,v,{reject:function(e){var t=_(this),i=t.reject;return i(e),t.promise}}),u(u.S+u.F*(a||!C),v,{resolve:function(e){if(e instanceof y&&E(e.constructor,this))return e;var t=_(this),i=t.resolve;return i(e),t.promise}}),u(u.S+u.F*!(C&&e(54)(function(e){y.all(e).catch(k)})),v,{all:function(e){var t=this,i=_(t),n=i.resolve,o=i.reject,r=T(function(){var i=[],r=0,a=1;m(e,!1,function(e){var s=r++,l=!1;i.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,i[s]=e,--a||n(i))},o)}),--a||n(i)});return r&&o(r.error),i.promise},race:function(e){var t=this,i=_(t),n=i.reject,o=T(function(){m(e,!1,function(e){t.resolve(e).then(i.resolve,n)})});return o&&n(o.error),i.promise}})},{104:104,117:117,17:17,23:23,25:25,3:3,32:32,37:37,38:38,49:49,54:54,58:58,6:6,64:64,86:86,91:91,92:92,95:95}],199:[function(e,t,i){var n=e(32),o=e(3),r=e(7),a=(e(38).Reflect||{}).apply,s=Function.apply;n(n.S+n.F*!e(34)(function(){a(function(){})}),"Reflect",{apply:function(e,t,i){var n=o(e),l=r(i);return a?a(n,t,l):s.call(n,t,l)}})},{3:3,32:32,34:34,38:38,7:7}],200:[function(e,t,i){var n=e(32),o=e(66),r=e(3),a=e(7),s=e(49),l=e(34),c=e(16),u=(e(38).Reflect||{}).construct,d=l(function(){function e(){}return!(u(function(){},[],e)instanceof e)}),f=!l(function(){u(function(){})});n(n.S+n.F*(d||f),"Reflect",{construct:function(e,t){r(e),a(t);var i=arguments.length<3?e:r(arguments[2]);if(f&&!d)return u(e,t,i);if(e==i){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(c.apply(e,n))}var l=i.prototype,p=o(s(l)?l:Object.prototype),m=Function.apply.call(e,p,t);return s(m)?m:p}})},{16:16,3:3,32:32,34:34,38:38,49:49,66:66,7:7}],201:[function(e,t,i){var n=e(67),o=e(32),r=e(7),a=e(110);o(o.S+o.F*e(34)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,i){r(e),t=a(t,!0),r(i);try{return n.f(e,t,i),!0}catch(e){return!1}}})},{110:110,32:32,34:34,67:67,7:7}],202:[function(e,t,i){var n=e(32),o=e(70).f,r=e(7);n(n.S,"Reflect",{deleteProperty:function(e,t){var i=o(r(e),t);return!(i&&!i.configurable)&&delete e[t]}})},{32:32,7:7,70:70}],203:[function(e,t,i){"use strict";var n=e(32),o=e(7),r=function(e){this._t=o(e),this._i=0;var t,i=this._k=[];for(t in e)i.push(t)};e(52)(r,"Object",function(){var e,t=this,i=t._k;do if(t._i>=i.length)return{value:void 0,done:!0};while(!((e=i[t._i++])in t._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new r(e)}})},{32:32,52:52,7:7}],204:[function(e,t,i){var n=e(70),o=e(32),r=e(7);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(r(e),t)}})},{32:32,7:7,70:70}],205:[function(e,t,i){var n=e(32),o=e(74),r=e(7);n(n.S,"Reflect",{getPrototypeOf:function(e){return o(r(e))}})},{32:32,7:7,74:74}],206:[function(e,t,i){function n(e,t){var i,s,u=arguments.length<3?e:arguments[2];return c(e)===u?e[t]:(i=o.f(e,t))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:l(s=r(e))?n(s,t,u):void 0}var o=e(70),r=e(74),a=e(39),s=e(32),l=e(49),c=e(7);s(s.S,"Reflect",{get:n})},{32:32,39:39,49:49,7:7,70:70,74:74}],207:[function(e,t,i){var n=e(32);n(n.S,"Reflect",{has:function(e,t){return t in e}})},{32:32}],208:[function(e,t,i){var n=e(32),o=e(7),r=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return o(e),!r||r(e)}})},{32:32,7:7}],209:[function(e,t,i){var n=e(32);n(n.S,"Reflect",{ownKeys:e(80)})},{32:32,80:80}],210:[function(e,t,i){var n=e(32),o=e(7),r=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){o(e);try{return r&&r(e),!0}catch(e){return!1}}})},{32:32,7:7}],211:[function(e,t,i){var n=e(32),o=e(90);o&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},{32:32,90:90}],212:[function(e,t,i){function n(e,t,i){var l,f,p=arguments.length<4?e:arguments[3],m=r.f(u(e),t);if(!m){if(d(f=a(e)))return n(f,t,i,p);m=c(0)}return s(m,"value")?!(m.writable===!1||!d(p)||(l=r.f(p,t)||c(0),l.value=i,o.f(p,t,l),0)):void 0!==m.set&&(m.set.call(p,i),!0)}var o=e(67),r=e(70),a=e(74),s=e(39),l=e(32),c=e(85),u=e(7),d=e(49);l(l.S,"Reflect",{set:n})},{32:32,39:39,49:49,67:67,7:7,70:70,74:74,85:85}],213:[function(e,t,i){var n=e(38),o=e(43),r=e(67).f,a=e(72).f,s=e(50),l=e(36),c=n.RegExp,u=c,d=c.prototype,f=/a/g,p=/a/g,m=new c(f)!==f;if(e(28)&&(!m||e(34)(function(){return p[e(117)("match")]=!1,c(f)!=f||c(p)==p||"/a/i"!=c(f,"i")}))){c=function(e,t){var i=this instanceof c,n=s(e),r=void 0===t;return!i&&n&&e.constructor===c&&r?e:o(m?new u(n&&!r?e.source:e,t):u((n=e instanceof c)?e.source:e,n&&r?l.call(e):t),i?this:d,c)};for(var h=(function(e){e in c||r(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})}),g=a(u),b=0;g.length>b;)h(g[b++]);d.constructor=c,c.prototype=d,e(87)(n,"RegExp",c)}e(91)("RegExp")},{117:117,28:28,34:34,36:36,38:38,43:43,50:50,67:67,72:72,87:87,91:91}],214:[function(e,t,i){e(28)&&"g"!=/./g.flags&&e(67).f(RegExp.prototype,"flags",{configurable:!0,get:e(36)})},{28:28,36:36,67:67}],215:[function(e,t,i){e(35)("match",1,function(e,t,i){return[function(i){"use strict";var n=e(this),o=void 0==i?void 0:i[t];return void 0!==o?o.call(i,n):new RegExp(i)[t](String(n))},i]})},{35:35}],216:[function(e,t,i){e(35)("replace",2,function(e,t,i){return[function(n,o){"use strict";var r=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,r,o):i.call(String(r),n,o)},i]})},{35:35}],217:[function(e,t,i){e(35)("search",1,function(e,t,i){return[function(i){"use strict";var n=e(this),o=void 0==i?void 0:i[t];return void 0!==o?o.call(i,n):new RegExp(i)[t](String(n))},i]})},{35:35}],218:[function(e,t,i){e(35)("split",2,function(t,i,n){"use strict";var o=e(50),r=n,a=[].push,s="split",l="length",c="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[l]||2!="ab"[s](/(?:ab)*/)[l]||4!="."[s](/(.?)(.?)/)[l]||"."[s](/()()/)[l]>1||""[s](/.?/)[l]){var u=void 0===/()??/.exec("")[1];n=function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!o(e))return r.call(i,e,t);var n,s,d,f,p,m=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,b=void 0===t?4294967295:t>>>0,v=new RegExp(e.source,h+"g");for(u||(n=new RegExp("^"+v.source+"$(?!\\s)",h));(s=v.exec(i))&&(d=s.index+s[0][l],!(d>g&&(m.push(i.slice(g,s.index)),!u&&s[l]>1&&s[0].replace(n,function(){for(p=1;p1&&s.index=b)));)v[c]===s.index&&v[c]++;return g===i[l]?!f&&v.test("")||m.push(""):m.push(i.slice(g)),m[l]>b?m.slice(0,b):m}}else"0"[s](void 0,0)[l]&&(n=function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)});return[function(e,o){var r=t(this),a=void 0==e?void 0:e[i];return void 0!==a?a.call(e,r,o):n.call(String(r),e,o)},n]})},{35:35,50:50}],219:[function(e,t,i){"use strict";e(214);var n=e(7),o=e(36),r=e(28),a="toString",s=/./[a],l=function(t){e(87)(RegExp.prototype,a,t,!0)};e(34)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?l(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?o.call(e):void 0)}):s.name!=a&&l(function(){return s.call(this)})},{214:214,28:28,34:34,36:36,7:7,87:87}],220:[function(e,t,i){"use strict";var n=e(19);t.exports=e(22)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(this,e=0===e?0:e,e)}},n)},{19:19,22:22}],221:[function(e,t,i){"use strict";e(99)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},{99:99}],222:[function(e,t,i){"use strict";e(99)("big",function(e){return function(){return e(this,"big","","")}})},{99:99}],223:[function(e,t,i){"use strict";e(99)("blink",function(e){return function(){return e(this,"blink","","")}})},{99:99}],224:[function(e,t,i){"use strict";e(99)("bold",function(e){return function(){return e(this,"b","","")}})},{99:99}],225:[function(e,t,i){"use strict";var n=e(32),o=e(97)(!1);n(n.P,"String",{codePointAt:function(e){return o(this,e)}})},{32:32,97:97}],226:[function(e,t,i){"use strict";var n=e(32),o=e(108),r=e(98),a="endsWith",s=""[a];n(n.P+n.F*e(33)(a),"String",{endsWith:function(e){var t=r(this,e,a),i=arguments.length>1?arguments[1]:void 0,n=o(t.length),l=void 0===i?n:Math.min(o(i),n),c=String(e);return s?s.call(t,c,l):t.slice(l-c.length,l)===c}})},{108:108,32:32,33:33,98:98}],227:[function(e,t,i){"use strict";e(99)("fixed",function(e){return function(){return e(this,"tt","","")}})},{99:99}],228:[function(e,t,i){"use strict";e(99)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},{99:99}],229:[function(e,t,i){"use strict";e(99)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},{99:99}],230:[function(e,t,i){var n=e(32),o=e(105),r=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,i=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");i.push(t<65536?r(t):r(((t-=65536)>>10)+55296,t%1024+56320))}return i.join("")}})},{105:105,32:32}],231:[function(e,t,i){"use strict";var n=e(32),o=e(98),r="includes";n(n.P+n.F*e(33)(r),"String",{includes:function(e){return!!~o(this,e,r).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},{32:32,33:33,98:98}],232:[function(e,t,i){"use strict";e(99)("italics",function(e){return function(){return e(this,"i","","")}})},{99:99}],233:[function(e,t,i){"use strict";var n=e(97)(!0);e(53)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,i=this._i;return i>=t.length?{value:void 0,done:!0}:(e=n(t,i),this._i+=e.length,{value:e,done:!1})})},{53:53,97:97}],234:[function(e,t,i){"use strict";e(99)("link",function(e){return function(t){return e(this,"a","href",t)}})},{99:99}],235:[function(e,t,i){var n=e(32),o=e(107),r=e(108);n(n.S,"String",{raw:function(e){for(var t=o(e.raw),i=r(t.length),n=arguments.length,a=[],s=0;i>s;)a.push(String(t[s++])),s1?arguments[1]:void 0,t.length)),n=String(e);return s?s.call(t,n,i):t.slice(i,i+n.length)===n}})},{108:108,32:32,33:33,98:98}],239:[function(e,t,i){"use strict";e(99)("strike",function(e){return function(){return e(this,"strike","","")}})},{99:99}],240:[function(e,t,i){"use strict";e(99)("sub",function(e){return function(){return e(this,"sub","","")}})},{99:99}],241:[function(e,t,i){"use strict";e(99)("sup",function(e){return function(){return e(this,"sup","","")}})},{99:99}],242:[function(e,t,i){"use strict";e(102)("trim",function(e){return function(){return e(this,3)}})},{102:102}],243:[function(e,t,i){"use strict";var n=e(38),o=e(39),r=e(28),a=e(32),s=e(87),l=e(62).KEY,c=e(34),u=e(94),d=e(92),f=e(114),p=e(117),m=e(116),h=e(115),g=e(57),b=e(31),v=e(47),A=e(7),w=e(107),y=e(110),x=e(85),k=e(66),C=e(71),E=e(70),S=e(67),_=e(76),I=E.f,T=S.f,B=C.f,O=n.Symbol,j=n.JSON,R=j&&j.stringify,M="prototype",F=p("_hidden"),P=p("toPrimitive"),D={}.propertyIsEnumerable,L=u("symbol-registry"),z=u("symbols"),N=u("op-symbols"),Y=Object[M],Q="function"==typeof O,H=n.QObject,q=!H||!H[M]||!H[M].findChild,U=r&&c(function(){return 7!=k(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,i){var n=I(Y,t);n&&delete Y[t],T(e,t,i),n&&e!==Y&&T(Y,t,n)}:T,V=function(e){var t=z[e]=k(O[M]);return t._k=e,t},G=Q&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},W=function(e,t,i){return e===Y&&W(N,t,i),A(e),t=y(t,!0),A(i),o(z,t)?(i.enumerable?(o(e,F)&&e[F][t]&&(e[F][t]=!1),i=k(i,{enumerable:x(0,!1)})):(o(e,F)||T(e,F,x(1,{})),e[F][t]=!0),U(e,t,i)):T(e,t,i)},J=function(e,t){A(e);for(var i,n=b(t=w(t)),o=0,r=n.length;r>o;)W(e,i=n[o++],t[i]);return e},X=function(e,t){return void 0===t?k(e):J(k(e),t)},Z=function(e){var t=D.call(this,e=y(e,!0));return!(this===Y&&o(z,e)&&!o(N,e))&&(!(t||!o(this,e)||!o(z,e)||o(this,F)&&this[F][e])||t)},K=function(e,t){if(e=w(e),t=y(t,!0),e!==Y||!o(z,t)||o(N,t)){var i=I(e,t);return!i||!o(z,t)||o(e,F)&&e[F][t]||(i.enumerable=!0),i}},$=function(e){for(var t,i=B(w(e)),n=[],r=0;i.length>r;)o(z,t=i[r++])||t==F||t==l||n.push(t);return n},ee=function(e){for(var t,i=e===Y,n=B(i?N:w(e)),r=[],a=0;n.length>a;)!o(z,t=n[a++])||i&&!o(Y,t)||r.push(z[t]);return r};Q||(O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(i){this===Y&&t.call(N,i),o(this,F)&&o(this[F],e)&&(this[F][e]=!1),U(this,e,x(1,i))};return r&&q&&U(Y,e,{configurable:!0,set:t}),V(e)},s(O[M],"toString",function(){return this._k}),E.f=K,S.f=W,e(72).f=C.f=$,e(77).f=Z,e(73).f=ee,r&&!e(58)&&s(Y,"propertyIsEnumerable",Z,!0),m.f=function(e){return V(p(e))}),a(a.G+a.W+a.F*!Q,{Symbol:O});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;te.length>ie;)p(te[ie++]);for(var te=_(p.store),ie=0;te.length>ie;)h(te[ie++]);a(a.S+a.F*!Q,"Symbol",{for:function(e){return o(L,e+="")?L[e]:L[e]=O(e)},keyFor:function(e){if(G(e))return g(L,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!Q,"Object",{create:X,defineProperty:W,defineProperties:J,getOwnPropertyDescriptor:K,getOwnPropertyNames:$,getOwnPropertySymbols:ee}),j&&a(a.S+a.F*(!Q||c(function(){var e=O();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!G(e)){for(var t,i,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);return t=n[1],"function"==typeof t&&(i=t),!i&&v(t)||(t=function(e,t){if(i&&(t=i.call(this,e,t)),!G(t))return t}),n[1]=t,R.apply(j,n)}}}),O[M][P]||e(40)(O[M],P,O[M].valueOf),d(O,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},{107:107,110:110,114:114,115:115,116:116,117:117,28:28,31:31,32:32,34:34,38:38,39:39,40:40,47:47,57:57,58:58,62:62,66:66,67:67,7:7,70:70,71:71,72:72,73:73,76:76,77:77,85:85,87:87,92:92,94:94}],244:[function(e,t,i){"use strict";var n=e(32),o=e(113),r=e(112),a=e(7),s=e(105),l=e(108),c=e(49),u=e(38).ArrayBuffer,d=e(95),f=r.ArrayBuffer,p=r.DataView,m=o.ABV&&u.isView,h=f.prototype.slice,g=o.VIEW,b="ArrayBuffer";n(n.G+n.W+n.F*(u!==f),{ArrayBuffer:f}),n(n.S+n.F*!o.CONSTR,b,{isView:function(e){return m&&m(e)||c(e)&&g in e}}),n(n.P+n.U+n.F*e(34)(function(){return!new f(2).slice(1,void 0).byteLength}),b,{slice:function(e,t){if(void 0!==h&&void 0===t)return h.call(a(this),e);for(var i=a(this).byteLength,n=s(e,i),o=s(void 0===t?i:t,i),r=new(d(this,f))(l(o-n)),c=new p(this),u=new p(r),m=0;n0?arguments[0]:void 0)}},h={get:function(e){if(c(e)){var t=u(e);return t===!0?f(this).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(this,e,t)}},g=t.exports=e(22)("WeakMap",m,h,l,!0,!0);7!=(new g).set((Object.freeze||Object)(p),7).get(p)&&(n=l.getConstructor(m),s(n.prototype,h),a.NEED=!0,o(["delete","has","get","set"],function(e){var t=g.prototype,i=t[e];r(t,e,function(t,o){if(c(t)&&!d(t)){this._f||(this._f=new n);var r=this._f[e](t,o);return"set"==e?this:r}return i.call(this,t,o)})}))},{12:12,21:21,22:22,49:49,62:62,65:65,87:87}],256:[function(e,t,i){"use strict";var n=e(21);e(22)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(this,e,!0)}},n,!1,!0)},{21:21,22:22}],257:[function(e,t,i){"use strict";var n=e(32),o=e(11)(!0);n(n.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),e(5)("includes")},{11:11,32:32,5:5}],258:[function(e,t,i){var n=e(32),o=e(64)(),r=e(38).process,a="process"==e(18)(r);n(n.G,{asap:function(e){var t=a&&r.domain;o(t?t.bind(e):e)}})},{18:18,32:32,38:38,64:64}],259:[function(e,t,i){var n=e(32),o=e(18);n(n.S,"Error",{isError:function(e){return"Error"===o(e)}})},{18:18,32:32}],260:[function(e,t,i){var n=e(32);n(n.P+n.R,"Map",{toJSON:e(20)("Map")})},{20:20,32:32}],261:[function(e,t,i){var n=e(32);n(n.S,"Math",{iaddh:function(e,t,i,n){var o=e>>>0,r=t>>>0,a=i>>>0;return r+(n>>>0)+((o&a|(o|a)&~(o+a>>>0))>>>31)|0}})},{32:32}],262:[function(e,t,i){var n=e(32);n(n.S,"Math",{imulh:function(e,t){var i=65535,n=+e,o=+t,r=n&i,a=o&i,s=n>>16,l=o>>16,c=(s*a>>>0)+(r*a>>>16);return s*l+(c>>16)+((r*l>>>0)+(c&i)>>16)}})},{32:32}],263:[function(e,t,i){var n=e(32);n(n.S,"Math",{isubh:function(e,t,i,n){var o=e>>>0,r=t>>>0,a=i>>>0;return r-(n>>>0)-((~o&a|~(o^a)&o-a>>>0)>>>31)|0}})},{32:32}],264:[function(e,t,i){var n=e(32);n(n.S,"Math",{umulh:function(e,t){var i=65535,n=+e,o=+t,r=n&i,a=o&i,s=n>>>16,l=o>>>16,c=(s*a>>>0)+(r*a>>>16);return s*l+(c>>>16)+((r*l>>>0)+(c&i)>>>16)}})},{32:32}],265:[function(e,t,i){"use strict";var n=e(32),o=e(109),r=e(3),a=e(67);e(28)&&n(n.P+e(69),"Object",{__defineGetter__:function(e,t){a.f(o(this),e,{get:r(t),enumerable:!0,configurable:!0})}})},{109:109,28:28,3:3,32:32,67:67,69:69}],266:[function(e,t,i){"use strict";var n=e(32),o=e(109),r=e(3),a=e(67);e(28)&&n(n.P+e(69),"Object",{__defineSetter__:function(e,t){a.f(o(this),e,{set:r(t),enumerable:!0,configurable:!0})}})},{109:109,28:28,3:3,32:32,67:67,69:69}],267:[function(e,t,i){var n=e(32),o=e(79)(!0);n(n.S,"Object",{entries:function(e){return o(e)}})},{32:32,79:79}],268:[function(e,t,i){var n=e(32),o=e(80),r=e(107),a=e(70),s=e(24);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,i=r(e),n=a.f,l=o(i),c={},u=0;l.length>u;)s(c,t=l[u++],n(i,t));return c}})},{107:107,24:24,32:32,70:70,80:80}],269:[function(e,t,i){"use strict";var n=e(32),o=e(109),r=e(110),a=e(74),s=e(70).f;e(28)&&n(n.P+e(69),"Object",{__lookupGetter__:function(e){var t,i=o(this),n=r(e,!0);do if(t=s(i,n))return t.get;while(i=a(i))}})},{109:109,110:110,28:28,32:32,69:69,70:70,74:74}],270:[function(e,t,i){"use strict";var n=e(32),o=e(109),r=e(110),a=e(74),s=e(70).f;e(28)&&n(n.P+e(69),"Object",{__lookupSetter__:function(e){var t,i=o(this),n=r(e,!0);do if(t=s(i,n))return t.set;while(i=a(i))}})},{109:109,110:110,28:28,32:32,69:69,70:70,74:74}],271:[function(e,t,i){var n=e(32),o=e(79)(!1);n(n.S,"Object",{values:function(e){return o(e)}})},{32:32,79:79}],272:[function(e,t,i){"use strict";var n=e(32),o=e(38),r=e(23),a=e(64)(),s=e(117)("observable"),l=e(3),c=e(7),u=e(6),d=e(86),f=e(40),p=e(37),m=p.RETURN,h=function(e){return null==e?void 0:l(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},b=function(e){return void 0===e._o},v=function(e){b(e)||(e._o=void 0,g(e))},A=function(e,t){c(e),this._c=void 0,this._o=e,e=new w(this);try{var i=t(e),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:l(i),this._c=i)}catch(t){return void e.error(t)}b(this)&&g(this)};A.prototype=d({},{unsubscribe:function(){v(this)}});var w=function(e){this._s=e};w.prototype=d({},{ +next:function(e){var t=this._s;if(!b(t)){var i=t._o;try{var n=h(i.next);if(n)return n.call(i,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(b(t))throw e;var i=t._o;t._o=void 0;try{var n=h(i.error);if(!n)throw e;e=n.call(i,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!b(t)){var i=t._o;t._o=void 0;try{var n=h(i.complete);e=n?n.call(i,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var y=function(e){u(this,y,"Observable","_f")._f=l(e)};d(y.prototype,{subscribe:function(e){return new A(e,this._f)},forEach:function(e){var t=this;return new(r.Promise||o.Promise)(function(i,n){l(e);var o=t.subscribe({next:function(t){try{return e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:i})})}}),d(y,{from:function(e){var t="function"==typeof this?this:y,i=h(c(e)[s]);if(i){var n=c(i.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var i=!1;return a(function(){if(!i){try{if(p(e,!1,function(e){if(t.next(e),i)return m})===m)return}catch(e){if(i)throw e;return void t.error(e)}t.complete()}}),function(){i=!0}})},of:function(){for(var e=0,t=arguments.length,i=Array(t);e1?arguments[1]:void 0,!1)}})},{100:100,32:32}],286:[function(e,t,i){"use strict";var n=e(32),o=e(100);n(n.P,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},{100:100,32:32}],287:[function(e,t,i){"use strict";e(102)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},{102:102}],288:[function(e,t,i){"use strict";e(102)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},{102:102}],289:[function(e,t,i){e(115)("asyncIterator")},{115:115}],290:[function(e,t,i){e(115)("observable")},{115:115}],291:[function(e,t,i){var n=e(32);n(n.S,"System",{global:e(38)})},{32:32,38:38}],292:[function(e,t,i){for(var n=e(130),o=e(87),r=e(38),a=e(40),s=e(56),l=e(117),c=l("iterator"),u=l("toStringTag"),d=s.Array,f=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],p=0;p<5;p++){var m,h=f[p],g=r[h],b=g&&g.prototype;if(b){b[c]||a(b,c,d),b[u]||a(b,u,h),s[h]=d;for(m in n)b[m]||o(b,m,n[m],!0)}}},{117:117,130:130,38:38,40:40,56:56,87:87}],293:[function(e,t,i){var n=e(32),o=e(104);n(n.G+n.B,{setImmediate:o.set,clearImmediate:o.clear})},{104:104,32:32}],294:[function(e,t,i){var n=e(38),o=e(32),r=e(44),a=e(83),s=n.navigator,l=!!s&&/MSIE .\./.test(s.userAgent),c=function(e){return l?function(t,i){return e(r(a,[].slice.call(arguments,2),"function"==typeof t?t:Function(t)),i)}:e};o(o.G+o.B+o.F*l,{setTimeout:c(n.setTimeout),setInterval:c(n.setInterval)})},{32:32,38:38,44:44,83:83}],295:[function(e,t,i){e(243),e(180),e(182),e(181),e(184),e(186),e(191),e(185),e(183),e(193),e(192),e(188),e(189),e(187),e(179),e(190),e(194),e(195),e(146),e(148),e(147),e(197),e(196),e(167),e(177),e(178),e(168),e(169),e(170),e(171),e(172),e(173),e(174),e(175),e(176),e(150),e(151),e(152),e(153),e(154),e(155),e(156),e(157),e(158),e(159),e(160),e(161),e(162),e(163),e(164),e(165),e(166),e(230),e(235),e(242),e(233),e(225),e(226),e(231),e(236),e(238),e(221),e(222),e(223),e(224),e(227),e(228),e(229),e(232),e(234),e(237),e(239),e(240),e(241),e(141),e(143),e(142),e(145),e(144),e(129),e(127),e(134),e(131),e(137),e(139),e(126),e(133),e(123),e(138),e(121),e(136),e(135),e(128),e(132),e(120),e(122),e(125),e(124),e(140),e(130),e(213),e(219),e(214),e(215),e(216),e(217),e(218),e(198),e(149),e(220),e(255),e(256),e(244),e(245),e(250),e(253),e(254),e(248),e(251),e(249),e(252),e(246),e(247),e(199),e(200),e(201),e(202),e(203),e(206),e(204),e(205),e(207),e(208),e(209),e(210),e(212),e(211),e(257),e(283),e(286),e(285),e(287),e(288),e(284),e(289),e(290),e(268),e(271),e(267),e(265),e(266),e(269),e(270),e(260),e(282),e(291),e(259),e(261),e(263),e(262),e(264),e(273),e(274),e(276),e(275),e(278),e(277),e(279),e(280),e(281),e(258),e(272),e(294),e(293),e(292),t.exports=e(23)},{120:120,121:121,122:122,123:123,124:124,125:125,126:126,127:127,128:128,129:129,130:130,131:131,132:132,133:133,134:134,135:135,136:136,137:137,138:138,139:139,140:140,141:141,142:142,143:143,144:144,145:145,146:146,147:147,148:148,149:149,150:150,151:151,152:152,153:153,154:154,155:155,156:156,157:157,158:158,159:159,160:160,161:161,162:162,163:163,164:164,165:165,166:166,167:167,168:168,169:169,170:170,171:171,172:172,173:173,174:174,175:175,176:176,177:177,178:178,179:179,180:180,181:181,182:182,183:183,184:184,185:185,186:186,187:187,188:188,189:189,190:190,191:191,192:192,193:193,194:194,195:195,196:196,197:197,198:198,199:199,200:200,201:201,202:202,203:203,204:204,205:205,206:206,207:207,208:208,209:209,210:210,211:211,212:212,213:213,214:214,215:215,216:216,217:217,218:218,219:219,220:220,221:221,222:222,223:223,224:224,225:225,226:226,227:227,228:228,229:229,23:23,230:230,231:231,232:232,233:233,234:234,235:235,236:236,237:237,238:238,239:239,240:240,241:241,242:242,243:243,244:244,245:245,246:246,247:247,248:248,249:249,250:250,251:251,252:252,253:253,254:254,255:255,256:256,257:257,258:258,259:259,260:260,261:261,262:262,263:263,264:264,265:265,266:266,267:267,268:268,269:269,270:270,271:271,272:272,273:273,274:274,275:275,276:276,277:277,278:278,279:279,280:280,281:281,282:282,283:283,284:284,285:285,286:286,287:287,288:288,289:289,290:290,291:291,292:292,293:293,294:294}],296:[function(e,t,i){(function(e){!function(e){"use strict";function i(e,t,i,n){var r=Object.create((t||o).prototype),a=new p(n||[]);return r._invoke=u(e,i,a),r}function n(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}function o(){}function r(){}function a(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){this.arg=e}function c(e){function t(i,o,r,a){var s=n(e[i],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u instanceof l?Promise.resolve(u.arg).then(function(e){t("next",e,r,a)},function(e){t("throw",e,r,a)}):Promise.resolve(u).then(function(e){c.value=e,r(c)},a)}a(s.arg)}function i(e,i){function n(){return new Promise(function(n,o){t(e,i,n,o)})}return o=o?o.then(n,n):n()}"object"==typeof process&&process.domain&&(t=process.domain.bind(t));var o;this._invoke=i}function u(e,t,i){var o=k;return function(r,a){if(o===E)throw new Error("Generator is already running");if(o===S){if("throw"===r)throw a;return h()}for(;;){var s=i.delegate;if(s){if("return"===r||"throw"===r&&s.iterator[r]===g){i.delegate=null;var l=s.iterator.return;if(l){var c=n(l,s.iterator,a);if("throw"===c.type){r="throw",a=c.arg;continue}}if("return"===r)continue}var c=n(s.iterator[r],s.iterator,a);if("throw"===c.type){i.delegate=null,r="throw",a=c.arg;continue}r="next",a=g;var u=c.arg;if(!u.done)return o=C,u;i[s.resultName]=u.value,i.next=s.nextLoc,i.delegate=null}if("next"===r)i.sent=i._sent=a;else if("throw"===r){if(o===k)throw o=S,a;i.dispatchException(a)&&(r="next",a=g)}else"return"===r&&i.abrupt("return",a);o=E;var c=n(e,t,i);if("normal"===c.type){o=i.done?S:C;var u={value:c.arg,done:i.done};if(c.arg!==_)return u;i.delegate&&"next"===r&&(a=g)}else"throw"===c.type&&(o=S,r="throw",a=c.arg)}}}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function m(e){if(e){var t=e[A];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function t(){for(;++i=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc");if(a&&s){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&b.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),f(i),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var o=n.arg;f(i)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:m(e),resultName:t,nextLoc:i},_}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.Promise=e()}}(function(){var e,t,i;return function e(t,i,n){function o(a,s){if(!i[a]){if(!t[a]){var l="function"==typeof _dereq_&&_dereq_;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[a]={exports:{}};t[a][0].call(u.exports,function(e){var i=t[a][1][e];return o(i?i:e)},u,u.exports,e,t,i,n)}return i[a].exports}for(var r="function"==typeof _dereq_&&_dereq_,a=0;a0;){var t=e.shift();if("function"==typeof t){var i=e.shift(),n=e.shift();t.call(i,n)}else t._settlePromises()}},n.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},n.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},n.prototype._reset=function(){this._isTickUsed=!1},t.exports=n,t.exports.firstLineError=s},{"./queue":17,"./schedule":18,"./util":21}],2:[function(e,t,i){"use strict";t.exports=function(e,t,i,n){var o=!1,r=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(r,r,null,this,e)},s=function(e,t){0===(50397184&this._bitField)&&this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(r){o||(o=!0,e.prototype._propagateFrom=n.propagateFromFunction(),e.prototype._boundValue=n.boundValueFunction());var c=i(r),u=new e(t);u._propagateFrom(this,1);var d=this._target();if(u._setBoundTo(c),c instanceof e){var f={promiseRejectionQueued:!1,promise:u,target:d,bindingPromise:c};d._then(t,a,void 0,u,f),c._then(s,l,void 0,u,f),u._setOnCancel(c)}else u._resolveCallback(d);return u},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=this._bitField&-2097153},e.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},e.bind=function(t,i){return e.resolve(i).bind(t)}}},{}],3:[function(e,t,i){"use strict";function n(){try{Promise===r&&(Promise=o)}catch(e){}return r}var o;"undefined"!=typeof Promise&&(o=Promise);var r=e("./promise")();r.noConflict=n,t.exports=r},{"./promise":15}],4:[function(e,t,i){"use strict";t.exports=function(t,i,n,o){var r=e("./util"),a=r.tryCatch,s=r.errorObj,l=t._async;t.prototype.break=t.prototype.cancel=function(){if(!o.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var i=e._cancellationParent;if(null==i||!i._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=i}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(r.isArray(e))for(var i=0;i=0)return r[e]}var o=!1,r=[];return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},t.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,r.push(this._trace))},t.prototype._popContext=function(){if(void 0!==this._trace){var e=r.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},t.CapturedTrace=null,t.create=i,t.deactivateLongStackTraces=function(){},t.activateLongStackTraces=function(){var i=e.prototype._pushContext,r=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,l=e.prototype._promiseCreated;t.deactivateLongStackTraces=function(){e.prototype._pushContext=i,e.prototype._popContext=r,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=l,o=!1},o=!0,e.prototype._pushContext=t.prototype._pushContext,e.prototype._popContext=t.prototype._popContext,e._peekContext=e.prototype._peekContext=n,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},t}},{}],7:[function(e,t,i){"use strict";t.exports=function(t,i){function n(e,t){return{promise:t}}function o(){return!1}function r(e,t,i){var n=this;try{e(t,i,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+L.toString(e));n._attachCancellationCallback(e)})}catch(e){return e}}function a(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?L.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function s(){return this._onCancelField}function l(e){this._onCancelField=e}function c(){this._cancellationParent=void 0,this._onCancelField=void 0}function u(e,t){if(0!==(1&t)){this._cancellationParent=e;var i=e._branchesRemainingToCancel;void 0===i&&(i=0),e._branchesRemainingToCancel=i+1}0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function d(e,t){0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function f(){var e=this._boundTo;return void 0!==e&&e instanceof t?e.isFulfilled()?e.value():void 0:e}function p(){this._trace=new O(this._peekContext())}function m(e,t){if(z(e)){var i=this._trace;if(void 0!==i&&t&&(i=i._parent),void 0!==i)i.attachExtraTrace(e);else if(!e.__stackCleaned__){var n=k(e);L.notEnumerableProp(e,"stack",n.message+"\n"+n.stack.join("\n")),L.notEnumerableProp(e,"__stackCleaned__",!0)}}}function h(e,t,i,n,o){if(void 0===e&&null!==t&&J){if(void 0!==o&&o._returnedNonUndefined())return;if(0===(65535&n._bitField))return;i&&(i+=" ");var r="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),l=y(s),c=l.length-1;c>=0;--c){var u=l[c];if(!Y.test(u)){var d=u.match(Q);d&&(r="at "+d[1]+":"+d[2]+":"+d[3]+" ");break}}if(l.length>0)for(var f=l[0],c=0;c0&&(a="\n"+s[c-1]);break}}var p="a promise was created in a "+i+"handler "+r+"but was not returned from it, see http://goo.gl/rRqMUw"+a;n._warn(p,!0,t)}}function g(e,t){var i=e+" is deprecated and will be removed in a future version.";return t&&(i+=" Use "+t+" instead."),b(i)}function b(e,i,n){if(re.warnings){var o,r=new D(e);if(i)n._attachExtraTrace(r);else if(re.longStackTraces&&(o=t._peekContext()))o.attachExtraTrace(r);else{var a=k(r);r.stack=a.message+"\n"+a.stack.join("\n")}ee("warning",r)||C(r,"",!0)}}function v(e,t){for(var i=0;i=0;--s)if(n[s]===r){a=s;break}for(var s=a;s>=0;--s){var l=n[s];if(t[o]!==l)break;t.pop(),o--}t=n}}function y(e){for(var t=[],i=0;i0&&(t=t.slice(i)),t}function k(e){var t=e.stack,i=e.toString();return t="string"==typeof t&&t.length>0?x(e):[" (No stack trace)"],{message:i,stack:y(t)}}function C(e,t,i){if("undefined"!=typeof console){var n;if(L.isObject(e)){var o=e.stack;n=t+q(o,e)}else n=t+String(e);"function"==typeof M?M(n,i):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(n)}}function E(e,t,i,n){var o=!1;try{"function"==typeof t&&(o=!0,"rejectionHandled"===e?t(n):t(i,n))}catch(e){P.throwLater(e)}"unhandledRejection"===e?ee(e,i,n)||o||C(i,"Unhandled rejection "):ee(e,n)}function S(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"==typeof e.toString?e.toString():L.toString(e);var i=/\[object [a-zA-Z0-9$_]+\]/;if(i.test(t))try{var n=JSON.stringify(e);t=n}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+_(t)+">, no stack trace)"}function _(e){var t=41;return e.length=s||(ie=function(e){if(N.test(e))return!0;var t=T(e);return!!(t&&t.fileName===i&&a<=t.line&&t.line<=s)})}}function O(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);oe(this,O),t>32&&this.uncycle()}var j,R,M,F=t._getDomain,P=t._async,D=e("./errors").Warning,L=e("./util"),z=L.canAttachTrace,N=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,Y=/\((?:timers\.js):\d+:\d+\)/,Q=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,H=null,q=null,U=!1,V=!(0==L.env("BLUEBIRD_DEBUG")),G=!(0==L.env("BLUEBIRD_WARNINGS")||!V&&!L.env("BLUEBIRD_WARNINGS")),W=!(0==L.env("BLUEBIRD_LONG_STACK_TRACES")||!V&&!L.env("BLUEBIRD_LONG_STACK_TRACES")),J=0!=L.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(G||!!L.env("BLUEBIRD_W_FORGOTTEN_RETURN"));t.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=e._bitField&-1048577|524288},t.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),P.invokeLater(this._notifyUnhandledRejection,this,void 0))},t.prototype._notifyUnhandledRejectionIsHandled=function(){E("rejectionHandled",j,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),E("unhandledRejection",R,e,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(e,t,i){return b(e,t,i||this)},t.onPossiblyUnhandledRejection=function(e){var t=F();R="function"==typeof e?null===t?e:L.domainBind(t,e):void 0},t.onUnhandledRejectionHandled=function(e){var t=F();j="function"==typeof e?null===t?e:L.domainBind(t,e):void 0};var X=function(){};t.longStackTraces=function(){if(P.haveItemsQueued()&&!re.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!re.longStackTraces&&I()){var e=t.prototype._captureStackTrace,n=t.prototype._attachExtraTrace;re.longStackTraces=!0,X=function(){if(P.haveItemsQueued()&&!re.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=n,i.deactivateLongStackTraces(),P.enableTrampoline(),re.longStackTraces=!1},t.prototype._captureStackTrace=p,t.prototype._attachExtraTrace=m,i.activateLongStackTraces(),P.disableTrampolineIfNecessary()}},t.hasLongStackTraces=function(){return re.longStackTraces&&I()};var Z=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return L.global.dispatchEvent(e),function(e,t){var i=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!L.global.dispatchEvent(i)}}if("function"==typeof Event){var e=new Event("CustomEvent");return L.global.dispatchEvent(e),function(e,t){var i=new Event(e.toLowerCase(),{cancelable:!0});return i.detail=t,!L.global.dispatchEvent(i)}}var e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),L.global.dispatchEvent(e),function(e,t){var i=document.createEvent("CustomEvent");return i.initCustomEvent(e.toLowerCase(),!1,!0,t),!L.global.dispatchEvent(i)}}catch(e){}return function(){return!1}}(),K=function(){return L.isNode?function(){return process.emit.apply(process,arguments)}:L.global?function(e){var t="on"+e.toLowerCase(),i=L.global[t];return!!i&&(i.apply(L.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),$={promiseCreated:n,promiseFulfilled:n,promiseRejected:n,promiseResolved:n,promiseCancelled:n,promiseChained:function(e,t,i){return{promise:t,child:i}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,i){return{reason:t,promise:i}},rejectionHandled:n},ee=function(e){var t=!1;try{t=K.apply(null,arguments)}catch(e){P.throwLater(e),t=!0}var i=!1;try{i=Z(e,$[e].apply(null,arguments))}catch(e){P.throwLater(e),i=!0}return i||t};t.config=function(e){if(e=Object(e), +"longStackTraces"in e&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&X()),"warnings"in e){var i=e.warnings;re.warnings=!!i,J=re.warnings,L.isObject(i)&&"wForgottenReturn"in i&&(J=!!i.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!re.cancellation){if(P.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=c,t.prototype._propagateFrom=u,t.prototype._onCancel=s,t.prototype._setOnCancel=l,t.prototype._attachCancellationCallback=a,t.prototype._execute=r,te=u,re.cancellation=!0}"monitoring"in e&&(e.monitoring&&!re.monitoring?(re.monitoring=!0,t.prototype._fireEvent=ee):!e.monitoring&&re.monitoring&&(re.monitoring=!1,t.prototype._fireEvent=o))},t.prototype._fireEvent=o,t.prototype._execute=function(e,t,i){try{e(t,i)}catch(e){return e}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(e){},t.prototype._attachCancellationCallback=function(e){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(e,t){};var te=d,ie=function(){return!1},ne=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;L.inherits(O,Error),i.CapturedTrace=O,O.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],i={},n=0,o=this;void 0!==o;++n)t.push(o),o=o._parent;e=this._length=n;for(var n=e-1;n>=0;--n){var r=t[n].stack;void 0===i[r]&&(i[r]=n)}for(var n=0;n0&&(t[s-1]._parent=void 0,t[s-1]._length=1),t[n]._parent=void 0,t[n]._length=1;var l=n>0?t[n-1]:this;s=0;--u)t[u]._length=c,c++;return}}}},O.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=k(e),i=t.message,n=[t.stack],o=this;void 0!==o;)n.push(y(o.stack.split("\n"))),o=o._parent;w(n),A(n),L.notEnumerableProp(e,"stack",v(i,n)),L.notEnumerableProp(e,"__stackCleaned__",!0)}};var oe=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():S(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,H=e,q=t;var i=Error.captureStackTrace;return ie=function(e){return N.test(e)},function(e,t){Error.stackTraceLimit+=6,i(e,t),Error.stackTraceLimit-=6}}var n=new Error;if("string"==typeof n.stack&&n.stack.split("\n")[0].indexOf("stackDetection@")>=0)return H=/@/,q=t,U=!0,function(e){e.stack=(new Error).stack};var o;try{throw new Error}catch(e){o="stack"in e}return"stack"in n||!o||"number"!=typeof Error.stackTraceLimit?(q=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?S(t):t.toString()},null):(H=e,q=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6})}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(M=function(e){console.warn(e)},L.isNode&&process.stderr.isTTY?M=function(e,t){var i=t?"":"";console.warn(i+e+"\n")}:L.isNode||"string"!=typeof(new Error).stack||(M=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var re={warnings:G,longStackTraces:!1,cancellation:!1,monitoring:!1};return W&&t.longStackTraces(),{longStackTraces:function(){return re.longStackTraces},warnings:function(){return re.warnings},cancellation:function(){return re.cancellation},monitoring:function(){return re.monitoring},propagateFromFunction:function(){return te},boundValueFunction:function(){return f},checkForgottenReturns:h,setBounds:B,warn:b,deprecated:g,CapturedTrace:O,fireDomEvent:Z,fireGlobalEvent:K}}},{"./errors":9,"./util":21}],8:[function(e,t,i){"use strict";t.exports=function(e){function t(){return this.value}function i(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(i){return i instanceof e&&i.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:i},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(i,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,i,void 0,{reason:e},void 0);var t=arguments[1],n=function(){throw t};return this.caught(e,n)},e.prototype.catchReturn=function(i){if(arguments.length<=1)return i instanceof e&&i.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:i},void 0);var n=arguments[1];n instanceof e&&n.suppressUnhandledRejections();var o=function(){return n};return this.caught(i,o)}}},{}],9:[function(e,t,i){"use strict";function n(e,t){function i(n){return this instanceof i?(d(this,"message","string"==typeof n?n:t),d(this,"name",e),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new i(n)}return u(i,Error),i}function o(e){return this instanceof o?(d(this,"name","OperationalError"),d(this,"message",e),this.cause=e,this.isOperational=!0,void(e instanceof Error?(d(this,"message",e.message),d(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new o(e)}var r,a,s=e("./es5"),l=s.freeze,c=e("./util"),u=c.inherits,d=c.notEnumerableProp,f=n("Warning","warning"),p=n("CancellationError","cancellation error"),m=n("TimeoutError","timeout error"),h=n("AggregateError","aggregate error");try{r=TypeError,a=RangeError}catch(e){r=n("TypeError","type error"),a=n("RangeError","range error")}for(var g="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),b=0;b1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function a(){return l.call(this,this.promise._target()._settledValue())}function s(e){if(!r(this,e))return d.e=e,d}function l(e){var n=this.promise,l=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?l.call(n._boundValue()):l.call(n._boundValue(),e);if(void 0!==c){n._setReturnedNonUndefined();var f=i(c,n);if(f instanceof t){if(null!=this.cancelPromise){if(f._isCancelled()){var p=new u("late cancellation observer");return n._attachExtraTrace(p),d.e=p,d}f.isPending()&&f._attachCancellationCallback(new o(this))}return f._then(a,s,void 0,this,void 0)}}}return n.isRejected()?(r(this),d.e=e,d):(r(this),e)}var c=e("./util"),u=t.CancellationError,d=c.errorObj;return n.prototype.isFinallyHandler=function(){return 0===this.type},o.prototype._resultCancelled=function(){r(this.finallyHandler)},t.prototype._passThrough=function(e,t,i,o){return"function"!=typeof e?this.then():this._then(i,o,void 0,new n(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,l,l)},t.prototype.tap=function(e){return this._passThrough(e,1,l)},n}},{"./util":21}],12:[function(e,t,i){"use strict";t.exports=function(t,i,n,o,r,a){var s=e("./util");s.canEvaluate,s.tryCatch,s.errorObj;t.join=function(){var e,t=arguments.length-1;if(t>0&&"function"==typeof arguments[t]){e=arguments[t];var n}var o=[].slice.call(arguments);e&&o.pop();var n=new i(o).promise();return void 0!==e?n.spread(e):n}}},{"./util":21}],13:[function(e,t,i){"use strict";t.exports=function(t,i,n,o,r){var a=e("./util"),s=a.tryCatch;t.method=function(e){if("function"!=typeof e)throw new t.TypeError("expecting a function but got "+a.classString(e));return function(){var n=new t(i);n._captureStackTrace(),n._pushContext();var o=s(e).apply(this,arguments),a=n._popContext();return r.checkForgottenReturns(o,a,"Promise.method",n),n._resolveFromSyncValue(o),n}},t.attempt=t.try=function(e){if("function"!=typeof e)return o("expecting a function but got "+a.classString(e));var n=new t(i);n._captureStackTrace(),n._pushContext();var l;if(arguments.length>1){r.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],u=arguments[2];l=a.isArray(c)?s(e).apply(u,c):s(e).call(u,c)}else l=s(e)();var d=n._popContext();return r.checkForgottenReturns(l,d,"Promise.try",n),n._resolveFromSyncValue(l),n},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":21}],14:[function(e,t,i){"use strict";function n(e){return e instanceof Error&&u.getPrototypeOf(e)===Error.prototype}function o(e){var t;if(n(e)){t=new c(e),t.name=e.name,t.message=e.message,t.stack=e.stack;for(var i=u.keys(e),o=0;o1){var i,n=new Array(t-1),o=0;for(i=0;i0&&"function"!=typeof e&&"function"!=typeof t){var i=".then() only accepts functions but was passed: "+p.classString(e);arguments.length>1&&(i+=", "+p.classString(t)),this._warn(i)}return this._then(e,t,void 0,void 0,void 0)},o.prototype.done=function(e,t){var i=this._then(e,t,void 0,void 0,void 0);i._setIsFinal()},o.prototype.spread=function(e){return"function"!=typeof e?d("expecting a function but got "+p.classString(e)):this.all()._then(e,void 0,void 0,y,void 0)},o.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},o.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new C(this).promise()},o.prototype.error=function(e){return this.caught(p.originatesFromRejection,e)},o.getNewLibraryCopy=t.exports,o.is=function(e){return e instanceof o},o.fromNode=o.fromCallback=function(e){var t=new o(w);t._captureStackTrace();var i=arguments.length>1&&!!Object(arguments[1]).multiArgs,n=O(e)(T(t,i));return n===B&&t._rejectCallback(n.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},o.all=function(e){return new C(e).promise()},o.cast=function(e){var t=k(e);return t instanceof o||(t=new o(w),t._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},o.resolve=o.fulfilled=o.cast,o.reject=o.rejected=function(e){var t=new o(w);return t._captureStackTrace(),t._rejectCallback(e,!0),t},o.setScheduler=function(e){if("function"!=typeof e)throw new v("expecting a function but got "+p.classString(e));return g.setScheduler(e)},o.prototype._then=function(e,t,i,n,r){var a=void 0!==r,s=a?r:new o(w),c=this._target(),u=c._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===n&&0!==(2097152&this._bitField)&&(n=0!==(50397184&u)?this._boundValue():c===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var d=l();if(0!==(50397184&u)){var f,m,h=c._settlePromiseCtx;0!==(33554432&u)?(m=c._rejectionHandler0,f=e):0!==(16777216&u)?(m=c._fulfillmentHandler0,f=t,c._unsetRejectionIsUnhandled()):(h=c._settlePromiseLateCancellationObserver,m=new A("late cancellation observer"),c._attachExtraTrace(m),f=t),g.invoke(h,c,{handler:null===d?f:"function"==typeof f&&p.domainBind(d,f),promise:s,receiver:n,value:m})}else c._addCallbacks(e,t,s,n,d);return s},o.prototype._length=function(){return 65535&this._bitField},o.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},o.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},o.prototype._setLength=function(e){this._bitField=this._bitField&-65536|65535&e},o.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},o.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},o.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},o.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},o.prototype._isFinal=function(){return(4194304&this._bitField)>0},o.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},o.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},o.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},o.prototype._setAsyncGuaranteed=function(){g.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},o.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==f)return void 0===t&&this._isBound()?this._boundValue():t},o.prototype._promiseAt=function(e){return this[4*e-4+2]},o.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},o.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},o.prototype._boundValue=function(){},o.prototype._migrateCallback0=function(e){var t=(e._bitField,e._fulfillmentHandler0),i=e._rejectionHandler0,n=e._promise0,o=e._receiverAt(0);void 0===o&&(o=f),this._addCallbacks(t,i,n,o,null)},o.prototype._migrateCallbackAt=function(e,t){var i=e._fulfillmentHandlerAt(t),n=e._rejectionHandlerAt(t),o=e._promiseAt(t),r=e._receiverAt(t);void 0===r&&(r=f),this._addCallbacks(i,n,o,r,null)},o.prototype._addCallbacks=function(e,t,i,n,o){var r=this._length();if(r>=65531&&(r=0,this._setLength(0)),0===r)this._promise0=i,this._receiver0=n,"function"==typeof e&&(this._fulfillmentHandler0=null===o?e:p.domainBind(o,e)),"function"==typeof t&&(this._rejectionHandler0=null===o?t:p.domainBind(o,t));else{var a=4*r-4;this[a+2]=i,this[a+3]=n,"function"==typeof e&&(this[a+0]=null===o?e:p.domainBind(o,e)),"function"==typeof t&&(this[a+1]=null===o?t:p.domainBind(o,t))}return this._setLength(r+1),r},o.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},o.prototype._resolveCallback=function(e,t){if(0===(117506048&this._bitField)){if(e===this)return this._rejectCallback(c(),!1);var i=k(e,this);if(!(i instanceof o))return this._fulfill(e);t&&this._propagateFrom(i,2);var n=i._target();if(n===this)return void this._reject(c());var r=n._bitField;if(0===(50397184&r)){var a=this._length();a>0&&n._migrateCallback0(this);for(var s=1;s>>16)){if(e===this){var i=c();return this._attachExtraTrace(i),this._reject(i)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!==(134217728&t)?this._settlePromises():g.settlePromises(this))}},o.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16))return this._setRejected(),this._fulfillmentHandler0=e,this._isFinal()?g.fatalError(e,p.isNode):void((65535&t)>0?g.settlePromises(this):this._ensurePossibleRejectionHandled())},o.prototype._fulfillPromises=function(e,t){for(var i=1;i0){if(0!==(16842752&e)){var i=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,i,e),this._rejectPromises(t,i)}else{var n=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,n,e),this._fulfillPromises(t,n)}this._setLength(0)}this._clearCancellationData()},o.prototype._settledValue=function(){var e=this._bitField;return 0!==(33554432&e)?this._rejectionHandler0:0!==(16777216&e)?this._fulfillmentHandler0:void 0},o.defer=o.pending=function(){S.deprecated("Promise.defer","new Promise");var e=new o(w);return{promise:e,resolve:r,reject:a}},p.notEnumerableProp(o,"_makeSelfResolutionError",c),e("./method")(o,w,k,d,S),e("./bind")(o,w,k,S),e("./cancel")(o,C,d,S),e("./direct_resolve")(o),e("./synchronous_inspection")(o),e("./join")(o,C,k,w,g,l),o.Promise=o,o.version="3.4.6",p.toFastProperties(o),p.toFastProperties(o.prototype),s({a:1}),s({b:2}),s({c:3}),s(1),s(function(){}),s(void 0),s(!1),s(new o(w)),S.setBounds(h.firstLineError,p.lastLineError),o}},{"./async":1,"./bind":2,"./cancel":4,"./catch_filter":5,"./context":6,"./debuggability":7,"./direct_resolve":8,"./errors":9,"./es5":10,"./finally":11,"./join":12,"./method":13,"./nodeback":14,"./promise_array":16,"./synchronous_inspection":19,"./thenables":20,"./util":21}],16:[function(e,t,i){"use strict";t.exports=function(t,i,n,o,r){function a(e){switch(e){case-2:return[];case-3:return{}}}function s(e){var n=this._promise=new t(i);e instanceof t&&n._propagateFrom(e,3),n._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var l=e("./util");l.isArray;return l.inherits(s,r),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(i,r){var s=n(this._values,this._promise);if(s instanceof t){s=s._target();var c=s._bitField;if(this._values=s,0===(50397184&c))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,r);if(0===(33554432&c))return 0!==(16777216&c)?this._reject(s._reason()):this._cancel();s=s._value()}if(s=l.asArray(s),null===s){var u=o("expecting an array or an iterable object but got "+l.classString(s)).reason();return void this._promise._rejectCallback(u,!1)}return 0===s.length?void(r===-5?this._resolveEmptyArray():this._resolve(a(r))):void this._iterate(s)},s.prototype._iterate=function(e){var i=this.getActualLength(e.length);this._length=i,this._values=this.shouldCopyValues()?new Array(i):this._values;for(var o=this._promise,r=!1,a=null,s=0;s=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var i=0;i1,n=t.length>0&&!(1===t.length&&"constructor"===t[0]),o=R.test(e+"")&&S.names(e).length>0;if(i||n||o)return!0}return!1}catch(e){return!1}}function p(e){function t(){}t.prototype=e;for(var i=8;i--;)new t;return e}function m(e){return M.test(e)}function h(e,t,i){for(var n=new Array(e),o=0;o10||e[0]>0}(),z.isNode&&z.toFastProperties(process);try{throw new Error}catch(e){z.lastLineError=e}t.exports=z},{"./es5":10}]},{},[3])(3)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise);var requirejs,require,define;!function(global,setTimeout){function commentReplace(e,t){return t||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var i;for(i=0;i-1&&(!e[i]||!t(e[i],i,e));i-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var i;for(i in e)if(hasProp(e,i)&&t(e[i],i))break}function mixin(e,t,i,n){return t&&eachProp(t,function(t,o){!i&&hasProp(e,o)||(!n||"object"!=typeof t||!t||isArray(t)||isFunction(t)||t instanceof RegExp?e[o]=t:(e[o]||(e[o]={}),mixin(e[o],t,i,n)))}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,i,n){var o=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return o.requireType=e,o.requireModules=n,i&&(o.originalError=i),o}function newContext(e){function t(e){var t,i;for(t=0;t0&&(e.splice(t-1,2),t-=2)}}function i(e,i,n){var o,r,a,s,l,c,u,d,f,p,m,h,g=i&&i.split("/"),b=k.map,v=b&&b["*"];if(e&&(e=e.split("/"),u=e.length-1,k.nodeIdCompat&&jsSuffixRegExp.test(e[u])&&(e[u]=e[u].replace(jsSuffixRegExp,"")),"."===e[0].charAt(0)&&g&&(h=g.slice(0,g.length-1),e=h.concat(e)),t(e),e=e.join("/")),n&&b&&(g||v)){a=e.split("/");e:for(s=a.length;s>0;s-=1){if(c=a.slice(0,s).join("/"),g)for(l=g.length;l>0;l-=1)if(r=getOwn(b,g.slice(0,l).join("/")),r&&(r=getOwn(r,c))){d=r,f=s;break e}!p&&v&&getOwn(v,c)&&(p=getOwn(v,c),m=s)}!d&&p&&(d=p,f=m),d&&(a.splice(0,f,d),e=a.join("/"))}return o=getOwn(k.pkgs,e),o?o:e}function n(e){isBrowser&&each(scripts(),function(t){if(t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===w.contextName)return t.parentNode.removeChild(t),!0})}function o(e){var t=getOwn(k.paths,e);if(t&&isArray(t)&&t.length>1)return t.shift(),w.require.undef(e),w.makeRequire(null,{skipMap:!0})([e]),!0}function r(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,o){var a,s,l,c,u=null,d=t?t.name:null,f=e,p=!0,m="";return e||(p=!1,e="_@r"+(O+=1)),c=r(e),u=c[0],e=c[1],u&&(u=i(u,d,o),s=getOwn(I,u)),e&&(u?m=s&&s.normalize?s.normalize(e,function(e){return i(e,d,o)}):e.indexOf("!")===-1?i(e,d,o):e:(m=i(e,d,o),c=r(m),u=c[0],m=c[1],n=!0,a=w.nameToUrl(m))),l=!u||s||n?"":"_unnormalized"+(j+=1),{prefix:u,name:m,parentMap:t,unnormalized:!!l,url:a,originalName:f,isDefine:p,id:(u?u+"!"+m:m)+l}}function s(e){var t=e.id,i=getOwn(C,t);return i||(i=C[t]=new w.Module(e)),i}function l(e,t,i){var n=e.id,o=getOwn(C,n);!hasProp(I,n)||o&&!o.defineEmitComplete?(o=s(e),o.error&&"error"===t?i(o.error):o.on(t,i)):"defined"===t&&i(I[n])}function c(e,t){var i=e.requireModules,n=!1;t?t(e):(each(i,function(t){var i=getOwn(C,t);i&&(i.error=e,i.events.error&&(n=!0,i.emit("error",e)))}),n||req.onError(e))}function u(){globalDefQueue.length&&(each(globalDefQueue,function(e){var t=e[0];"string"==typeof t&&(w.defQueueMap[t]=!0),_.push(e)}),globalDefQueue=[])}function d(e){delete C[e],delete E[e]}function f(e,t,i){var n=e.map.id;e.error?e.emit("error",e.error):(t[n]=!0,each(e.depMaps,function(n,o){var r=n.id,a=getOwn(C,r);!a||e.depMatched[o]||i[r]||(getOwn(t,r)?(e.defineDep(o,I[r]),e.check()):f(a,t,i))}),i[n]=!0)}function p(){var e,t,i=1e3*k.waitSeconds,r=i&&w.startTime+i<(new Date).getTime(),a=[],s=[],l=!1,u=!0;if(!v){if(v=!0,eachProp(E,function(e){var i=e.map,c=i.id;if(e.enabled&&(i.isDefine||s.push(e),!e.error))if(!e.inited&&r)o(c)?(t=!0,l=!0):(a.push(c),n(c));else if(!e.inited&&e.fetched&&i.isDefine&&(l=!0,!i.prefix))return u=!1}),r&&a.length)return e=makeError("timeout","Load timeout for modules: "+a,null,a),e.contextName=w.contextName,c(e);u&&each(s,function(e){f(e,{},{})}),r&&!t||!l||!isBrowser&&!isWebWorker||x||(x=setTimeout(function(){x=0,p()},50)),v=!1}}function m(e){hasProp(I,e[0])||s(a(e[0],null,!0)).init(e[1],e[2])}function h(e,t,i,n){e.detachEvent&&!isOpera?n&&e.detachEvent(n,t):e.removeEventListener(i,t,!1)}function g(e){var t=e.currentTarget||e.srcElement;return h(t,w.onScriptLoad,"load","onreadystatechange"),h(t,w.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function b(){var e;for(u();_.length;){if(e=_.shift(),null===e[0])return c(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));m(e)}w.defQueueMap={}}var v,A,w,y,x,k={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},C={},E={},S={},_=[],I={},T={},B={},O=1,j=1;return y={require:function(e){return e.require?e.require:e.require=w.makeRequire(e.map)},exports:function(e){if(e.usingExports=!0,e.map.isDefine)return e.exports?I[e.map.id]=e.exports:e.exports=I[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(k.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},A=function(e){this.events=getOwn(S,e.id)||{},this.map=e,this.shim=getOwn(k.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},A.prototype={init:function(e,t,i,n){n=n||{},this.inited||(this.factory=t,i?this.on("error",i):this.events.error&&(i=bind(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,w.startTime=(new Date).getTime();var e=this.map;return this.shim?void w.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()})):e.prefix?this.callPlugin():this.load()}},load:function(){var e=this.map.url;T[e]||(T[e]=!0,w.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,i=this.map.id,n=this.depExports,o=this.exports,r=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(r)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{o=w.execCb(i,r,n,o)}catch(t){e=t}else o=w.execCb(i,r,n,o);if(this.map.isDefine&&void 0===o&&(t=this.module,t?o=t.exports:this.usingExports&&(o=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 o=r;if(this.exports=o,this.map.isDefine&&!this.ignore&&(I[i]=o,req.onResourceLoad)){var a=[];each(this.depMaps,function(e){a.push(e.normalizedMap||e)}),req.onResourceLoad(w,this.map,a)}d(i),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(w.defQueueMap,i)||this.fetch()}},callPlugin:function(){var e=this.map,t=e.id,n=a(e.prefix);this.depMaps.push(n),l(n,"defined",bind(this,function(n){var o,r,u,f=getOwn(B,this.map.id),p=this.map.name,m=this.map.parentMap?this.map.parentMap.name:null,h=w.makeRequire(e.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(n.normalize&&(p=n.normalize(p,function(e){return i(e,m,!0)})||""),r=a(e.prefix+"!"+p,this.map.parentMap),l(r,"defined",bind(this,function(e){this.map.normalizedMap=r,this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),u=getOwn(C,r.id),void(u&&(this.depMaps.push(r),this.events.error&&u.on("error",bind(this,function(e){this.emit("error",e)})),u.enable()))):f?(this.map.url=w.nameToUrl(f),void this.load()):(o=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),o.error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(C,function(e){0===e.map.id.indexOf(t+"_unnormalized")&&d(e.map.id)}),c(e)}),o.fromText=bind(this,function(i,n){var r=e.name,l=a(r),u=useInteractive;n&&(i=n),u&&(useInteractive=!1),s(l),hasProp(k.config,t)&&(k.config[r]=k.config[t]);try{req.exec(i)}catch(e){return c(makeError("fromtexteval","fromText eval for "+t+" failed: "+e,e,[t]))}u&&(useInteractive=!0),this.depMaps.push(l),w.completeLoad(r),h([r],o)}),void n.load(e.name,h,o,k))})),w.enable(n,this),this.pluginMaps[n.id]=n},enable:function(){E[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var i,n,o;if("string"==typeof e){if(e=a(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,o=getOwn(y,e.id))return void(this.depExports[t]=o(this));this.depCount+=1,l(e,"defined",bind(this,function(e){this.undefed||(this.defineDep(t,e),this.check())})),this.errback?l(e,"error",bind(this,this.errback)):this.events.error&&l(e,"error",bind(this,function(e){this.emit("error",e)}))}i=e.id,n=C[i],hasProp(y,i)||!n||n.enabled||w.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(C,e.id);t&&!t.enabled&&w.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){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},w={config:k,contextName:e,registry:C,defined:I,urlFetched:T,defQueue:_,defQueueMap:{},Module:A,makeModuleMap:a,nextTick:req.nextTick,onError:c,configure:function(e){if(e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/"),"string"==typeof e.urlArgs){var t=e.urlArgs;e.urlArgs=function(e,i){return(i.indexOf("?")===-1?"?":"&")+t}}var i=k.shim,n={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){n[t]?(k[t]||(k[t]={}),mixin(k[t],e,!0,!0)):k[t]=e}),e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(B[e]=t)})}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=w.makeShimExports(e)),i[t]=e}),k.shim=i),e.packages&&each(e.packages,function(e){var t,i;e="string"==typeof e?{name:e}:e,i=e.name,t=e.location,t&&(k.paths[i]=e.location),k.pkgs[i]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(C,function(e,t){e.inited||e.map.unnormalized||(e.map=a(t,null,!0))}),(e.deps||e.callback)&&w.require(e.deps||[],e.callback)},makeShimExports:function(e){function t(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}return t},makeRequire:function(t,o){function r(i,n,l){var u,d,f;return o.enableBuildCallback&&n&&isFunction(n)&&(n.__requireJsBuild=!0),"string"==typeof i?isFunction(n)?c(makeError("requireargs","Invalid require call"),l):t&&hasProp(y,i)?y[i](C[t.id]):req.get?req.get(w,i,t,r):(d=a(i,t,!1,!0),u=d.id,hasProp(I,u)?I[u]:c(makeError("notloaded",'Module name "'+u+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(b(),w.nextTick(function(){b(),f=s(a(null,t)),f.skipMap=o.skipMap,f.init(i,n,l,{enabled:!0}),p()}),r)}return o=o||{},mixin(r,{isBrowser:isBrowser,toUrl:function(e){var n,o=e.lastIndexOf("."),r=e.split("/")[0],a="."===r||".."===r;return o!==-1&&(!a||o>1)&&(n=e.substring(o,e.length),e=e.substring(0,o)),w.nameToUrl(i(e,t&&t.id,!0),n,!0)},defined:function(e){return hasProp(I,a(e,t,!1,!0).id)},specified:function(e){return e=a(e,t,!1,!0).id,hasProp(I,e)||hasProp(C,e)}}),t||(r.undef=function(e){u();var i=a(e,t,!0),o=getOwn(C,e);o.undefed=!0,n(e),delete I[e],delete T[i.url],delete S[e],eachReverse(_,function(t,i){t[0]===e&&_.splice(i,1)}),delete w.defQueueMap[e],o&&(o.events.defined&&(S[e]=o.events),d(e))}),r},enable:function(e){var t=getOwn(C,e.id);t&&s(e).enable()},completeLoad:function(e){var t,i,n,r=getOwn(k.shim,e)||{},a=r.exports;for(u();_.length;){if(i=_.shift(),null===i[0]){if(i[0]=e,t)break;t=!0}else i[0]===e&&(t=!0);m(i)}if(w.defQueueMap={},n=getOwn(C,e),!t&&!hasProp(I,e)&&n&&!n.inited){if(!(!k.enforceDefine||a&&getGlobal(a)))return o(e)?void 0:c(makeError("nodefine","No define call for "+e,null,[e]));m([e,r.deps||[],r.exportsFn])}p()},nameToUrl:function(e,t,i){var n,o,r,a,s,l,c,u=getOwn(k.pkgs,e);if(u&&(e=u),c=getOwn(B,e))return w.nameToUrl(c,t,i);if(req.jsExtRegExp.test(e))s=e+(t||"");else{for(n=k.paths,o=e.split("/"),r=o.length;r>0;r-=1)if(a=o.slice(0,r).join("/"),l=getOwn(n,a)){isArray(l)&&(l=l[0]),o.splice(0,r,l);break}s=o.join("/"),s+=t||(/^data\:|^blob\:|\?/.test(s)||i?"":".js"),s=("/"===s.charAt(0)||s.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+s}return k.urlArgs&&!/^blob\:/.test(s)?s+k.urlArgs(e,s):s},load:function(e,t){req.load(w,e,t)},execCb:function(e,t,i,n){return t.apply(n,i)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=g(e);w.completeLoad(t.id)}},onScriptError:function(e){var t=g(e);if(!o(t.id)){var i=[];return eachProp(C,function(e,n){0!==n.indexOf("_@r")&&each(e.depMaps,function(e){if(e.id===t.id)return i.push(n),!0})}),c(makeError("scripterror",'Script error for "'+t.id+(i.length?'", needed by: '+i.join(", "):'"'),e,[t.id]))}}},w.require=w.makeRequire(),w}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(e){if("interactive"===e.readyState)return interactiveScript=e}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.2",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}"undefined"==typeof require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,i,n){var o,r,a=defContextName;return isArray(e)||"string"==typeof e||(r=e,isArray(t)?(e=t,t=i,i=n):e=[]),r&&r.context&&(a=r.context),o=getOwn(contexts,a),o||(o=contexts[a]=req.s.newContext(a)),r&&o.configure(r),o.require(e,t,i)},req.config=function(e){return req(e)},req.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e,t,i){var n=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return n.type=e.scriptType||"text/javascript",n.charset="utf-8",n.async=!0,n},req.load=function(e,t,i){var n,o=e&&e.config||{};if(isBrowser)return n=req.createNode(o,t,i),n.setAttribute("data-requirecontext",e.contextName),n.setAttribute("data-requiremodule",t),!n.attachEvent||n.attachEvent.toString&&n.attachEvent.toString().indexOf("[native code")<0||isOpera?(n.addEventListener("load",e.onScriptLoad,!1),n.addEventListener("error",e.onScriptError,!1)):(useInteractive=!0,n.attachEvent("onreadystatechange",e.onScriptLoad)),n.src=i,o.onNodeCreated&&o.onNodeCreated(n,o,t,i),currentlyAddingScript=n,baseElement?head.insertBefore(n,baseElement):head.appendChild(n),currentlyAddingScript=null,n;if(isWebWorker)try{setTimeout(function(){},0),importScripts(i),e.completeLoad(t)}catch(n){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+i,n,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){if(head||(head=e.parentNode),dataMain=e.getAttribute("data-main"))return mainScript=dataMain,cfg.baseUrl||mainScript.indexOf("!")!==-1||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(e,t,i){var n,o;"string"!=typeof e&&(i=t,t=e,e=null),isArray(t)||(i=t,t=null),!t&&isFunction(i)&&(t=[],i.length&&(i.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(e,i){t.push(i)}),t=(1===i.length?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(n=currentlyAddingScript||getInteractiveScript(),n&&(e||(e=n.getAttribute("data-requiremodule")),o=contexts[n.getAttribute("data-requirecontext")])),o?(o.defQueue.push([e,t,i]),o.defQueueMap[e]=!0):globalDefQueue.push([e,t,i])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this,"undefined"==typeof setTimeout?void 0:setTimeout),_aureliaConfigureModuleLoader(),define("aurelia-binding",["exports","aurelia-logging","aurelia-pal","aurelia-task-queue","aurelia-metadata"],function(e,t,i,n,o){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){if(e in De)return De[e];var t=e.charAt(0).toLowerCase()+e.slice(1).replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()});return De[e]=t,t}function c(e,t){return{bindingContext:e,parentOverrideContext:t||null}}function u(e,t,i){var n=t.overrideContext;if(i){for(;i&&n;)i--,n=n.parentOverrideContext;if(i||!n)return;return e in n?n:n.bindingContext}for(;n&&!(e in n)&&!(n.bindingContext&&e in n.bindingContext);)n=n.parentOverrideContext;return n?e in n?n:n.bindingContext:t.bindingContext||t.overrideContext}function d(e,t){return t?{bindingContext:e,overrideContext:c(e,c(t))}:{bindingContext:e,overrideContext:c(e)}}function f(e){for(var t=void 0===this._observerSlots?0:this._observerSlots,i=t;i--&&this[ze[i]]!==e;);if(i===-1){for(i=0;this[ze[i]];)i++;this[ze[i]]=e,e.subscribe(Le,this),i===t&&(this._observerSlots=i+1)}void 0===this._version&&(this._version=0),this[Ne[i]]=this._version}function p(e,t){var i=this.observerLocator.getObserver(e,t);f.call(this,i)}function m(e){var t=this.observerLocator.getArrayObserver(e);f.call(this,t)}function h(e){for(var t=this._observerSlots;t--;)if(e||this[Ne[t]]!==this._version){var i=this[ze[t]];this[ze[t]]=null,i&&i.unsubscribe(Le,this)}}function g(){return function(e){e.prototype.observeProperty=p,e.prototype.observeArray=m,e.prototype.unobserve=h,e.prototype.addObserver=f}}function b(e){for(var t=0,n=Qe.keys(),o=void 0;(o=n.next())&&!o.done;){var r=o.value;if(Qe.delete(r),r.connect(!0),t++,t%100===0&&i.PLATFORM.performance.now()-e>qe)break}Qe.size?i.PLATFORM.requestAnimationFrame(b):(Ue=!1,Ve=0)}function v(e){Ve>>0}function S(e){return+e}function _(e,t,i){return{index:e,removed:t,addedCount:i}}function I(){}function T(e,t,i,n,o,r){return tt.calcSplices(e,t,i,n,o,r)}function B(e,t,i,n){return t=0){e.splice(s,1),s--,a-=l.addedCount-l.removed.length,o.addedCount+=l.addedCount-c;var u=o.removed.length+l.removed.length-c;if(o.addedCount||u){var d=l.removed;if(o.indexl.index+l.addedCount){var p=o.removed.slice(l.index+l.addedCount-o.index);Array.prototype.push.apply(d,p)}o.removed=d,l.index=Nt&&e<=Ut||e===Mi}function q(e){return xi<=e&&e<=Bi||mi<=e&&e<=gi||e===yi||e===Wt}function U(e){return xi<=e&&e<=Bi||mi<=e&&e<=gi||fi<=e&&e<=pi||e===yi||e===Wt}function V(e){return fi<=e&&e<=pi}function G(e){return e===ki||e===hi}function W(e){return e===ni||e===ti}function J(e){switch(e){case Ei:return Yt;case Ci:return Ht;case Si:return qt;case _i:return Nt;case Ti:return Qt;default:return e}}function X(e,t){if(!e)throw t||"Assertion failed"}function Z(e,t){return zi.for(e,t)}function K(e){return e.path&&e.path[0]||e.deepPath&&e.deepPath[0]||e.target}function $(e){e.standardStopPropagation=e.stopPropagation,e.stopPropagation=function(){this.propagationStopped=!0,this.standardStopPropagation()}}function ee(e){var t=!1;e.propagationStopped=!1;for(var i=K(e);i&&!e.propagationStopped;){if(i.delegatedCallbacks){var n=i.delegatedCallbacks[e.type];n&&(t||($(e),t=!0),n(e))}i=i.parentNode}}function te(e){return!!(e&&e.get&&e.get.dependencies)}function ie(e,t,i){var n=Object.getOwnPropertyDescriptor(e.prototype,t);n.get.dependencies=i}function ne(){for(var e=arguments.length,t=Array(e),i=0;i0||i>0;)if(0!==t)if(0!==i){var r=e[t-1][i-1],a=e[t-1][i],s=e[t][i-1],l=void 0;l=ai?t=i-e.addedCount:t<0&&(t=i+e.removed.length+t-e.addedCount),t<0&&(t=0),e.index=t}null===this.changeRecords?this.changeRecords=[e]:this.changeRecords.push(e),this.queued||(this.queued=!0,this.taskQueue.queueMicroTask(this))}},e.prototype.flushChangeRecords=function(){(this.changeRecords&&this.changeRecords.length||this.oldCollection)&&this.call()},e.prototype.reset=function(e){this.oldCollection=e,this.hasSubscribers()&&!this.queued&&(this.queued=!0,this.taskQueue.queueMicroTask(this))},e.prototype.getLengthObserver=function(){return this.lengthObserver||(this.lengthObserver=new nt(this.collection))},e.prototype.call=function(){var e=this.changeRecords,t=this.oldCollection,i=void 0;this.queued=!1,this.changeRecords=[],this.oldCollection=null,this.hasSubscribers()&&(i=t?this.collection instanceof Map||this.collection instanceof Set?F(t):T(this.collection,0,this.collection.length,t,0,t.length):this.collection instanceof Map||this.collection instanceof Set?e:R(this.collection,e),this.callSubscribers(i)),this.lengthObserver&&this.lengthObserver.call(this.collection[this.lengthPropertyName])},e}())||he),nt=e.CollectionLengthObserver=(ge=C(),ge(be=function(){function e(e){this.collection=e,this.lengthPropertyName=e instanceof Map||e instanceof Set?"size":"length",this.currentValue=e[this.lengthPropertyName]}return e.prototype.getValue=function(){return this.collection[this.lengthPropertyName]},e.prototype.setValue=function(e){this.collection[this.lengthPropertyName]=e},e.prototype.subscribe=function(e,t){this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)},e.prototype.call=function(e){var t=this.currentValue;this.callSubscribers(e,t),this.currentValue=e},e}())||be),ot=Array.prototype.pop,rt=Array.prototype.push,at=Array.prototype.reverse,st=Array.prototype.shift,lt=Array.prototype.sort,ct=Array.prototype.splice,ut=Array.prototype.unshift;Array.prototype.pop=function(){var e=this.length>0,t=ot.apply(this,arguments);return e&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:this.length,oldValue:t}),t},Array.prototype.push=function(){var e=rt.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:this.length-arguments.length,removed:[],addedCount:arguments.length}),e},Array.prototype.reverse=function(){var e=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),e=this.slice());var t=at.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(e),t},Array.prototype.shift=function(){var e=this.length>0,t=st.apply(this,arguments);return e&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:0,oldValue:t}),t},Array.prototype.sort=function(){var e=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),e=this.slice());var t=lt.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(e),t},Array.prototype.splice=function(){var e=ct.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:arguments[0],removed:e,addedCount:arguments.length>2?arguments.length-2:0}),e},Array.prototype.unshift=function(){var e=ut.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:0,removed:[],addedCount:arguments.length}),e},e.getArrayObserver=P;var dt=function(e){function t(t,i){return a(this,e.call(this,t,i))}return s(t,e),t.for=function(e,i){return"__array_observer__"in i||Reflect.defineProperty(i,"__array_observer__",{value:t.create(e,i),enumerable:!1,configurable:!1}),i.__array_observer__},t.create=function(e,i){return new t(e,i)},t}(it),ft=e.Expression=function(){function e(){this.isChain=!1,this.isAssignable=!1}return e.prototype.evaluate=function(e,t,i){throw new Error('Binding expression "'+this+'" cannot be evaluated.')},e.prototype.assign=function(e,t,i){throw new Error('Binding expression "'+this+'" cannot be assigned to.')},e.prototype.toString=function(){return jt.unparse(this)},e}(),pt=e.Chain=function(e){function t(t){var i=a(this,e.call(this));return i.expressions=t,i.isChain=!0,i}return s(t,e),t.prototype.evaluate=function(e,t){for(var i=void 0,n=this.expressions,o=void 0,r=0,a=n.length;r":return i>n;case"<=":return i<=n;case">=":return i>=n;case"^":return i^n}throw new Error("Internal error ["+this.operation+"] not handled")},t.prototype.accept=function(e){return e.visitBinary(this)},t.prototype.connect=function(e,t){this.left.connect(e,t);var i=this.left.evaluate(t);"&&"===this.operation&&!i||"||"===this.operation&&i||this.right.connect(e,t)},t}(ft),St=e.PrefixNot=function(e){function t(t,i){var n=a(this,e.call(this));return n.operation=t,n.expression=i,n}return s(t,e),t.prototype.evaluate=function(e,t){return!this.expression.evaluate(e)},t.prototype.accept=function(e){return e.visitPrefix(this)},t.prototype.connect=function(e,t){this.expression.connect(e,t)},t}(ft),_t=e.LiteralPrimitive=function(e){function t(t){var i=a(this,e.call(this));return i.value=t,i}return s(t,e),t.prototype.evaluate=function(e,t){return this.value},t.prototype.accept=function(e){return e.visitLiteralPrimitive(this)},t.prototype.connect=function(e,t){},t}(ft),It=e.LiteralString=function(e){function t(t){var i=a(this,e.call(this));return i.value=t,i}return s(t,e),t.prototype.evaluate=function(e,t){return this.value},t.prototype.accept=function(e){return e.visitLiteralString(this)},t.prototype.connect=function(e,t){},t}(ft),Tt=e.LiteralArray=function(e){function t(t){var i=a(this,e.call(this));return i.elements=t,i}return s(t,e),t.prototype.evaluate=function(e,t){for(var i=this.elements,n=[],o=0,r=i.length;o=this.length)return this.peek=zt,null;this.peek=this.input.charCodeAt(this.index)}if(q(this.peek))return this.scanIdentifier();if(V(this.peek))return this.scanNumber(this.index);var e=this.index;switch(this.peek){case oi:return this.advance(),V(this.peek)?this.scanNumber(e):new Ft(e,".");case Kt:case $t:case Oi:case Ri:case bi:case Ai:case ii:case ai:case si:return this.scanCharacter(e,String.fromCharCode(this.peek));case Zt:case Gt:return this.scanString();case ti:case ni:case ei:case ri:case Jt:case wi:case di:return this.scanOperator(e,String.fromCharCode(this.peek));case li:case ui:case Vt:case ci:return this.scanComplexOperator(e,ci,String.fromCharCode(this.peek),"=");case Xt:return this.scanComplexOperator(e,Xt,"&","&");case ji:return this.scanComplexOperator(e,ji,"|","|");case Mi:for(;H(this.peek);)this.advance();return this.scanToken()}var t=String.fromCharCode(this.peek);return this.error("Unexpected character ["+t+"]"),null},e.prototype.scanCharacter=function(e,t){return X(this.peek===t.charCodeAt(0)),this.advance(),new Ft(e,t)},e.prototype.scanOperator=function(e,t){return X(this.peek===t.charCodeAt(0)),X(Lt.indexOf(t)!==-1),this.advance(),new Ft(e,t).withOp(t)},e.prototype.scanComplexOperator=function(e,t,i,n){X(this.peek===i.charCodeAt(0)),this.advance();var o=i;return this.peek===t&&(this.advance(),o+=n),this.peek===t&&(this.advance(),o+=n),X(Lt.indexOf(o)!==-1),new Ft(e,o).withOp(o)},e.prototype.scanIdentifier=function(){X(q(this.peek));var e=this.index;for(this.advance();U(this.peek);)this.advance();var t=this.input.substring(e,this.index),i=new Ft(e,t);return Lt.indexOf(t)!==-1?i.withOp(t):i.withGetterSetter(t),i},e.prototype.scanNumber=function(e){X(V(this.peek));var t=this.index===e;for(this.advance();;){if(!V(this.peek))if(this.peek===oi)t=!1;else{if(!G(this.peek))break;this.advance(),W(this.peek)&&this.advance(),V(this.peek)||this.error("Invalid exponent",-1),t=!1}this.advance()}var i=this.input.substring(e,this.index),n=t?parseInt(i,10):parseFloat(i);return new Ft(e,i).withValue(n)},e.prototype.scanString=function(){X(this.peek===Zt||this.peek===Gt);var e=this.index,t=this.peek;this.advance();for(var i=void 0,n=this.index;this.peek!==t;)if(this.peek===vi){i||(i=[]),i.push(this.input.substring(n,this.index)),this.advance();var o=void 0;if(this.peek===Ii){var r=this.input.substring(this.index+1,this.index+5);/[A-Z0-9]{4}/.test(r)||this.error("Invalid unicode escape [\\u"+r+"]"),o=parseInt(r,16);for(var a=0;a<5;++a)this.advance()}else o=J(this.peek),this.advance();i.push(String.fromCharCode(o)),n=this.index}else this.peek===zt?this.error("Unterminated quote"):this.advance();var s=this.input.substring(n,this.index);this.advance();var l=this.input.substring(e,this.index),c=s;return null!==i&&void 0!==i&&(i.push(s),c=i.join("")),new Ft(e,l).withValue(c)},e.prototype.advance=function(){++this.index>=this.length?this.peek=zt:this.peek=this.input.charCodeAt(this.index)},e.prototype.error=function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],i=this.index+t;throw new Error("Lexer Error: "+e+" at column "+i+" in expression ["+this.input+"]")},e}(),Lt=["undefined","null","true","false","+","-","*","/","%","^","=","==","===","!=","!==","<",">","<=",">=","&&","||","&","|","!","?"],zt=0,Nt=9,Yt=10,Qt=11,Ht=12,qt=13,Ut=32,Vt=33,Gt=34,Wt=36,Jt=37,Xt=38,Zt=39,Kt=40,$t=41,ei=42,ti=43,ii=44,ni=45,oi=46,ri=47,ai=58,si=59,li=60,ci=61,ui=62,di=63,fi=48,pi=57,mi=65,hi=69,gi=90,bi=91,vi=92,Ai=93,wi=94,yi=95,xi=97,ki=101,Ci=102,Ei=110,Si=114,_i=116,Ii=117,Ti=118,Bi=122,Oi=123,ji=124,Ri=125,Mi=160,Fi=new Ft(-1,null),Pi=e.Parser=function(){function e(){this.cache={},this.lexer=new Pt}return e.prototype.parse=function(e){return e=e||"",this.cache[e]||(this.cache[e]=new Di(this.lexer,e).parseChain())},e}(),Di=e.ParserImplementation=function(){function e(e,t){this.index=0,this.input=t,this.tokens=e.lex(t)}return e.prototype.parseChain=function(){for(var e=!1,t=[];this.optional(";");)e=!0;for(;this.index"))e=new Et(">",e,this.parseAdditive());else if(this.optional("<="))e=new Et("<=",e,this.parseAdditive());else{if(!this.optional(">="))return e;e=new Et(">=",e,this.parseAdditive())}},e.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();;)if(this.optional("+"))e=new Et("+",e,this.parseMultiplicative());else{if(!this.optional("-"))return e;e=new Et("-",e,this.parseMultiplicative())}},e.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();;)if(this.optional("*"))e=new Et("*",e,this.parsePrefix());else if(this.optional("%"))e=new Et("%",e,this.parsePrefix());else{if(!this.optional("/"))return e;e=new Et("/",e,this.parsePrefix())}},e.prototype.parsePrefix=function(){return this.optional("+")?this.parsePrefix():this.optional("-")?new Et("-",new _t(0),this.parsePrefix()):this.optional("!")?new St("!",this.parsePrefix()):this.parseAccessOrCallMember()},e.prototype.parseAccessOrCallMember=function(){for(var e=this.parsePrimary();;)if(this.optional(".")){var t=this.peek.text;if(this.advance(),this.optional("(")){var i=this.parseExpressionList(")");this.expect(")"),e=e instanceof vt?new xt(t,i,e.ancestor):new kt(e,t,i)}else e=e instanceof vt?new At(t,e.ancestor):new wt(e,t)}else if(this.optional("[")){var n=this.parseExpression();this.expect("]"),e=new yt(e,n)}else{if(!this.optional("("))return e;var o=this.parseExpressionList(")");this.expect(")"),e=new Ct(e,o)}},e.prototype.parsePrimary=function(){if(this.optional("(")){var e=this.parseExpression();return this.expect(")"),e}if(this.optional("null"))return new _t(null);if(this.optional("undefined"))return new _t(void 0);if(this.optional("true"))return new _t(!0);if(this.optional("false"))return new _t(!1);if(this.optional("[")){var t=this.parseExpressionList("]");return this.expect("]"),new Tt(t)}if("{"===this.peek.text)return this.parseObject();if(null!==this.peek.key&&void 0!==this.peek.key)return this.parseAccessOrCallScope();if(null!==this.peek.value&&void 0!==this.peek.value){var i=this.peek.value;return this.advance(),i instanceof String||"string"==typeof i?new It(i):new _t(i)}if(this.index>=this.tokens.length)throw new Error("Unexpected end of expression: "+this.input);this.error("Unexpected token "+this.peek.text)},e.prototype.parseAccessOrCallScope=function(){var e=this.peek.key;if(this.advance(),"$this"===e)return new vt(0);for(var t=0;"$parent"===e;)if(t++,this.optional("."))e=this.peek.key,this.advance();else{if(this.peek===Fi||"("===this.peek.text||"["===this.peek.text||"}"===this.peek.text)return new vt(t); +this.error("Unexpected token "+this.peek.text)}if(this.optional("(")){var i=this.parseExpressionList(")");return this.expect(")"),new xt(e,i,t)}return new At(e,t)},e.prototype.parseObject=function(){var e=[],t=[];if(this.expect("{"),"}"!==this.peek.text)do{var i=this.peek,n=i.value;e.push("string"==typeof n?n:i.text),this.advance(),!i.key||","!==this.peek.text&&"}"!==this.peek.text?(this.expect(":"),t.push(this.parseExpression())):(--this.index,t.push(this.parseAccessOrCallScope()))}while(this.optional(","));return this.expect("}"),new Bt(e,t)},e.prototype.parseExpressionList=function(e){var t=[];if(this.peek.text!==e)do t.push(this.parseExpression());while(this.optional(","));return t},e.prototype.optional=function(e){return this.peek.text===e&&(this.advance(),!0)},e.prototype.expect=function(e){this.peek.text===e?this.advance():this.error("Missing expected "+e)},e.prototype.advance=function(){this.index++},e.prototype.error=function(e){var t=this.index").firstElementChild.nodeName&&ln.altGlyph&&(ln.altglyph=ln.altGlyph,delete ln.altGlyph,ln.altglyphdef=ln.altGlyphDef,delete ln.altGlyphDef,ln.altglyphitem=ln.altGlyphItem,delete ln.altGlyphItem,ln.glyphref=ln.glyphRef,delete ln.glyphRef)}return e.prototype.isStandardSvgAttribute=function(e,t){return cn[e]&&un[t]||ln[e]&&ln[e].indexOf(t)!==-1},e}(),fn=e.ObserverLocator=(Te=Ie=function(){function e(e,t,i,n,o){this.taskQueue=e,this.eventManager=t,this.dirtyChecker=i,this.svgAnalyzer=n,this.parser=o,this.adapters=[],this.logger=Me.getLogger("observer-locator")}return e.prototype.getObserver=function(e,t){var i=e.__observers__,n=void 0;return i&&t in i?i[t]:(n=this.createPropertyObserver(e,t),n.doNotCache||(void 0===i&&(i=this.getOrCreateObserversLookup(e)),i[t]=n),n)},e.prototype.getOrCreateObserversLookup=function(e){return e.__observers__||this.createObserversLookup(e)},e.prototype.createObserversLookup=function(e){var t={};return Reflect.defineProperty(e,"__observers__",{enumerable:!1,configurable:!1,writable:!1,value:t})||this.logger.warn("Cannot add observers to object",e),t},e.prototype.addAdapter=function(e){this.adapters.push(e)},e.prototype.getAdapterObserver=function(e,t,i){for(var n=0,o=this.adapters.length;n1?t.normalize(i.moduleId,i.resourcesRelativeTo[1]).then(function(e){return n(e)}):n(o)}function m(e,t,i){function n(t){var i=t.moduleId,n=h(i);return r(i)&&(i=a(i)), +e.loader.normalize(i,t.relativeTo).then(function(e){return{name:t.moduleId,importId:r(t.moduleId)?s(e,n):e}})}function r(e){var t=h(e);return!!t&&(""!==t&&(".js"!==t&&".ts"!==t))}function a(e){return e.replace(A,"")}function s(e,t){return a(e)+"."+t}var l=e.container.get(o.ViewEngine);return Promise.all(Object.keys(t).map(function(e){return n(t[e])})).then(function(e){var t=[],n=[];return e.forEach(function(e){t.push(void 0),n.push(e.importId)}),l.importViewResources(n,t,i)})}function h(e){var t=e.match(A);if(t&&t.length>0)return t[0].split(".")[1]}function g(e){if(e.processed)throw new Error("This config instance has already been applied. To load more plugins or global resources, create a new FrameworkConfiguration instance.")}Object.defineProperty(e,"__esModule",{value:!0}),e.LogManager=e.FrameworkConfiguration=e.Aurelia=void 0,Object.keys(t).forEach(function(i){"default"!==i&&"__esModule"!==i&&Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[i]}})}),Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}),Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}),Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}),Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}),Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})}),Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}),Object.keys(l).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})});var b=u(c),v=(e.Aurelia=function(){function e(i,n,a){this.loader=i||new l.PLATFORM.Loader,this.container=n||(new t.Container).makeGlobal(),this.resources=a||new o.ViewResources,this.use=new w(this),this.logger=b.getLogger("aurelia"),this.hostConfigured=!1,this.host=null,this.use.instance(e,this),this.use.instance(r.Loader,this.loader),this.use.instance(o.ViewResources,this.resources)}return e.prototype.start=function(){var e=this;return this.started?Promise.resolve(this):(this.started=!0,this.logger.info("Aurelia Starting"),this.use.apply().then(function(){if(d(),!e.container.hasResolver(o.BindingLanguage)){var t="You must configure Aurelia with a BindingLanguage implementation.";throw e.logger.error(t),new Error(t)}e.logger.info("Aurelia Started");var i=l.DOM.createCustomEvent("aurelia-started",{bubbles:!0,cancelable:!0});return l.DOM.dispatchEvent(i),e}))},e.prototype.enhance=function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=arguments.length<=1||void 0===arguments[1]?null:arguments[1];return this._configureHost(i||l.DOM.querySelectorAll("body")[0]),new Promise(function(i){var n=e.container.get(o.TemplatingEngine);e.root=n.enhance({container:e.container,element:e.host,resources:e.resources,bindingContext:t}),e.root.attached(),e._onAureliaComposed(),i(e)})},e.prototype.setRoot=function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?null:arguments[0],i=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n={};this.root&&this.root.viewModel&&this.root.viewModel.router&&(this.root.viewModel.router.deactivate(),this.root.viewModel.router.reset()),this._configureHost(i);var r=this.container.get(o.TemplatingEngine),a=this.container.get(o.CompositionTransaction);return delete a.initialComposition,t||(t=this.configModuleId?(0,s.relativeToFile)("./app",this.configModuleId):"app"),n.viewModel=t,n.container=n.childContainer=this.container,n.viewSlot=this.hostSlot,n.host=this.host,r.compose(n).then(function(t){return e.root=t,n.viewSlot.attached(),e._onAureliaComposed(),e})},e.prototype._configureHost=function(e){if(!this.hostConfigured){if(e=e||this.host,e&&"string"!=typeof e?this.host=e:this.host=l.DOM.getElementById(e||"applicationHost"),!this.host)throw new Error("No applicationHost was specified.");this.hostConfigured=!0,this.host.aurelia=this,this.hostSlot=new o.ViewSlot(this.host,!0),this.hostSlot.transformChildNodesIntoView(),this.container.registerInstance(l.DOM.boundary,this.host)}},e.prototype._onAureliaComposed=function(){var e=l.DOM.createCustomEvent("aurelia-composed",{bubbles:!0,cancelable:!0});setTimeout(function(){return l.DOM.dispatchEvent(e)},1)},e}(),b.getLogger("aurelia")),A=/\.[^\/.]+$/,w=function(){function e(e){var t=this;this.aurelia=e,this.container=e.container,this.info=[],this.processed=!1,this.preTasks=[],this.postTasks=[],this.resourcesToLoad={},this.preTask(function(){return e.loader.normalize("aurelia-bootstrapper").then(function(e){return t.bootstrapperName=e})}),this.postTask(function(){return m(e,t.resourcesToLoad,e.resources)})}return e.prototype.instance=function(e,t){return this.container.registerInstance(e,t),this},e.prototype.singleton=function(e,t){return this.container.registerSingleton(e,t),this},e.prototype.transient=function(e,t){return this.container.registerTransient(e,t),this},e.prototype.preTask=function(e){return g(this),this.preTasks.push(e),this},e.prototype.postTask=function(e){return g(this),this.postTasks.push(e),this},e.prototype.feature=function(e,t){return h(e)?this.plugin({moduleId:e,resourcesRelativeTo:[e,""],config:t||{}}):this.plugin({moduleId:e+"/index",resourcesRelativeTo:[e,""],config:t||{}})},e.prototype.globalResources=function(e){g(this);for(var t=Array.isArray(e)?e:arguments,i=void 0,n=this.resourcesRelativeTo||["",""],o=0,r=t.length;o4?o-4:0),a=4;a element in "+i+' has no "from" attribute.');s[l]=new o((0,t.relativeToFile)(a,i),r.getAttribute("as")),r.parentNode&&r.parentNode.removeChild(r)}}},{key:"factory",get:function(){return this._factory},set:function(e){this._factory=e,this.factoryIsReady=!0}}]),e}();e.Loader=function(){function e(){this.templateRegistry={}}return e.prototype.map=function(e,t){throw new Error("Loaders must implement map(id, source).")},e.prototype.normalizeSync=function(e,t){throw new Error("Loaders must implement normalizeSync(moduleId, relativeTo).")},e.prototype.normalize=function(e,t){throw new Error("Loaders must implement normalize(moduleId: string, relativeTo: string): Promise.")},e.prototype.loadModule=function(e){throw new Error("Loaders must implement loadModule(id).")},e.prototype.loadAllModules=function(e){throw new Error("Loader must implement loadAllModules(ids).")},e.prototype.loadTemplate=function(e){throw new Error("Loader must implement loadTemplate(url).")},e.prototype.loadText=function(e){throw new Error("Loader must implement loadText(url).")},e.prototype.applyPluginToUrl=function(e,t){throw new Error("Loader must implement applyPluginToUrl(url, pluginName).")},e.prototype.addPlugin=function(e,t){throw new Error("Loader must implement addPlugin(pluginName, implementation).")},e.prototype.getOrCreateTemplateRegistryEntry=function(e){return this.templateRegistry[e]||(this.templateRegistry[e]=new r(e))},e}()}),define("aurelia-loader-default",["exports","aurelia-loader","aurelia-pal","aurelia-metadata"],function(e,t,i,n){"use strict";function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){var i=e,o=void 0,r=void 0;i.__useDefault&&(i=i.default),n.Origin.set(i,new n.Origin(t,"default"));for(o in i)r=i[o],"function"==typeof r&&n.Origin.set(r,new n.Origin(t,o));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultLoader=e.TextTemplateLoader=void 0;var s=e.TextTemplateLoader=function(){function e(){}return e.prototype.loadTemplate=function(e,t){return e.loadText(t.address).then(function(e){t.template=i.DOM.createTemplateFromMarkup(e)})},e}(),l=e.DefaultLoader=function(e){function t(){var t=o(this,e.call(this));t.textPluginName="text",t.moduleRegistry=Object.create(null),t.useTemplateLoader(new s);var i=t;return t.addPlugin("template-registry-entry",{fetch:function(e){var t=i.getOrCreateTemplateRegistryEntry(e);return t.templateIsLoaded?t:i.templateLoader.loadTemplate(i,t).then(function(e){return t})}}),t}return r(t,e),t.prototype.useTemplateLoader=function(e){this.templateLoader=e},t.prototype.loadAllModules=function(e){for(var t=[],i=0,n=e.length;i1?i-1:0),o=1;o1?i-1:0),o=1;o1?i-1:0),o=1;o1?i-1:0),o=1;o0;)r=n[o],t.setAttribute(r.name,r.value),e.removeAttribute(r.name);return e.parentNode.removeChild(e),i(t)}function i(e){for(var t=e.content=document.createDocumentFragment(),i=void 0;i=e.firstChild;)t.appendChild(i);return e}function n(n){for(var o=i(n).content,r=o.querySelectorAll("template"),a=0,s=r.length;a element e.g. ");return d.ensureHTMLTemplateElement(i)},appendNode:function(e,t){(t||document.body).appendChild(e)},replaceNode:function(e,t,i){t.parentNode?t.parentNode.replaceChild(e,t):null!==f?f.unwrap(i).replaceChild(f.unwrap(e),f.unwrap(t)):i.replaceChild(e,t)},removeNode:function(e,t){e.parentNode?e.parentNode.removeChild(e):t&&(null!==f?f.unwrap(t).removeChild(f.unwrap(e)):t.removeChild(e))},injectStyles:function(e,t,i){var n=document.createElement("style");return n.innerHTML=e,n.type="text/css",t=t||document.head,i&&t.childNodes.length>0?t.insertBefore(n,t.childNodes[0]):t.appendChild(n),n}},m=!1}),define("aurelia-path",["exports"],function(e){"use strict";function t(e){for(var t=0;t0&&(e.splice(t-1,2),t-=2)}}}function i(e,i){var n=i&&i.split("/"),o=e.trim().split("/");if("."===o[0].charAt(0)&&n){var r=n.slice(0,n.length-1);o.unshift.apply(o,r)}return t(o),o.join("/")}function n(e,t){if(!e)return t;if(!t)return e;var i=e.match(/^([^\/]*?:)\//),n=i&&i.length>0?i[1]:"";e=e.substr(n.length);var o=void 0;o=0===e.indexOf("///")&&"file:"===n?"///":0===e.indexOf("//")?"//":0===e.indexOf("/")?"/":"";for(var r="/"===t.slice(-1)?"/":"",a=e.split("/"),s=t.split("/"),l=[],c=0,u=a.length;c=2){var f=r[1]?decodeURIComponent(r[1]):"";d?s(t,u,f):t[l]=a(t[l],f,c)}else t[l]=!0}}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.relativeToFile=i,e.join=n,e.buildQueryString=r,e.parseQueryString=l;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},u=encodeURIComponent,d=function(e){return u(e).replace("%24","$")}}),define("aurelia-polyfills",["aurelia-pal"],function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(t,i){if(!(i in t)){var n,o=e.PLATFORM.global,r=0,a=""+Math.random(),s="__symbol:",l=s.length,c="__symbol@@"+a,u="defineProperty",d="defineProperties",f="getOwnPropertyNames",p="getOwnPropertyDescriptor",m="propertyIsEnumerable",h=t[f],g=t[p],b=t.create,v=t.keys,A=t[u],w=t[d],y=g(t,f),x=t.prototype,k=x.hasOwnProperty,C=x[m],E=x.toString,S=(Array.prototype.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},function(e,t,i){k.call(e,c)||A(e,c,{enumerable:!1,configurable:!1,writable:!1,value:{}}),e[c]["@@"+t]=i}),_=function(e,t){var i=b(e);return h(t).forEach(function(e){j.call(t,e)&&L(i,e,t[e])}),i},I=function(e){var t=b(e);return t.enumerable=!1,t},T=function(){},B=function(e){return e!=c&&!k.call(F,e)},O=function(e){return e!=c&&k.call(F,e)},j=function(e){var t=""+e;return O(t)?k.call(this,t)&&this[c]["@@"+t]:C.call(this,e)},R=function(e){var i={enumerable:!1,configurable:!0,get:T,set:function(t){n(this,e,{enumerable:!1,configurable:!0,writable:!0,value:t}),S(this,e,!0)}};return A(x,e,i),F[e]=A(t(e),"constructor",P)},M=function(e){if(this&&this!==o)throw new TypeError("Symbol is not a constructor");return R(s.concat(e||"",a,++r))},F=b(null),P={value:M},D=function(e){return F[e]},L=function(e,t,i){var o=""+t;return O(o)?(n(e,o,i.enumerable?I(i):i),S(e,o,!!i.enumerable)):A(e,t,i),e},z=function(e){var i=E.call(e);return e="[object String]"===i?e.split(""):t(e),h(e).filter(O).map(D)};y.value=L,A(t,u,y),y.value=z,A(t,i,y),y.value=function(e){return h(e).filter(B)},A(t,f,y),y.value=function(e,t){var i=z(t);return i.length?v(t).concat(i).forEach(function(i){j.call(t,i)&&L(e,i,t[i])}):w(e,t),e},A(t,d,y),y.value=j,A(x,m,y),y.value=M,A(o,"Symbol",y),y.value=function(e){var t=s.concat(s,e,a);return t in x?F[t]:R(t)},A(M,"for",y),y.value=function(e){return k.call(F,e)?e.slice(2*l,-a.length):void 0},A(M,"keyFor",y),y.value=function(e,t){var i=g(e,t);return i&&O(t)&&(i.enumerable=j.call(e,t)),i},A(t,p,y),y.value=function(e,t){return 1===arguments.length?b(e):_(e,t)},A(t,"create",y),y.value=function(){var e=E.call(this);return"[object String]"===e&&O(this)?"[object Symbol]":e},A(x,"toString",y);try{n=b(A({},s,{get:function(){return A(this,s,{value:!1})[s]}}))[s]||A}catch(e){n=function(e,t,i){var n=g(x,t);delete x[t],A(e,t,i),A(x,t,n)}}}}(Object,"getOwnPropertySymbols"),function(e,t){var i,n=e.defineProperty,o=e.prototype,r=o.toString,a="toStringTag";["iterator","match","replace","search","split","hasInstance","isConcatSpreadable","unscopables","species","toPrimitive",a].forEach(function(t){if(!(t in Symbol))switch(n(Symbol,t,{value:Symbol(t)}),t){case a:i=e.getOwnPropertyDescriptor(o,"toString"),i.value=function(){var e=r.call(this),t="undefined"==typeof this||null===this?void 0:this[Symbol.toStringTag];return"undefined"==typeof t?e:"[object "+t+"]"},n(o,"toString",i)}})}(Object,Symbol),function(e,t,i){function n(){return this}t[e]||(t[e]=function(){var t=0,i=this,o={next:function(){var e=i.length<=t;return e?{done:e}:{done:e,value:i[t++]}}};return o[e]=n,o}),i[e]||(i[e]=function(){var t=String.fromCodePoint,i=this,o=0,r=i.length,a={next:function(){var e=r<=o,n=e?"":t(i.codePointAt(o));return o+=n.length,e?{done:e}:{done:e,value:n}}};return a[e]=n,a})}(Symbol.iterator,Array.prototype,String.prototype),Number.isNaN=Number.isNaN||function(e){return e!==e},Number.isFinite=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},String.prototype.endsWith&&!function(){try{return!"ab".endsWith("a",1)}catch(e){return!0}}()||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var n=i.indexOf(e,t);return n!==-1&&n===t}),String.prototype.startsWith&&!function(){try{return!"ab".startsWith("b",1)}catch(e){return!0}}()||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),Array.from||(Array.from=function(){var e=function(e){return isNaN(e=+e)?0:(e>0?Math.floor:Math.ceil)(e)},t=function(t){return t>0?Math.min(e(t),9007199254740991):0},i=function(e,t,i,n){try{return t(i,n)}catch(t){throw"function"==typeof e.return&&e.return(),t}};return function(e){var n,o,r,a,s=Object(e),l="function"==typeof this?this:Array,c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,f=0,p=s[Symbol.iterator];if(d&&(u=u.bind(c>2?arguments[2]:void 0)),void 0==p||Array.isArray(e))for(n=t(s.length),o=new l(n);n>f;f++)o[f]=d?u(s[f],f):s[f];else for(a=p.call(s),o=new l;!(r=a.next()).done;f++)o[f]=d?i(a,u,r.value,f):r.value;return o.length=f,o}}()),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,enumerable:!1,value:function e(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,o=arguments[1],r=0;r>>0,o=arguments[1],r=0;r=0?n=o:(n=i+o,n<0&&(n=0));for(var r;n=t.length)break;o=t[n++]}else{if(n=t.next(),n.done)break;o=n.value}var r=o,a=r.charSpec.validChars===e.validChars&&r.charSpec.invalidChars===e.invalidChars;if(a)return r}},e.prototype.put=function(t){var i=this.get(t);return i?i:(i=new e(t),this.nextStates.push(i),t.repeat&&i.nextStates.push(i),i)},e.prototype.match=function(e){for(var t=this.nextStates,i=[],n=0,o=t.length;n1&&"/"===l.charAt(d-1)&&(l=l.substr(0,d-1),s=!0);for(var f=0,p=l.length;fe.maxInstructionCount)throw new Error("Maximum navigation attempts exceeded. Giving up.")}else e.events.publish("router:navigation:processing",{instruction:i});var n=e.pipelineProvider.createPipeline();return n.run(i).then(function(n){return O(i,n,t,e)}).catch(function(e){return{output:e instanceof Error?e:new Error(e)}}).then(function(n){return j(i,n,!!t,e)})}}})},t.prototype._findViewModel=function(e){if(this.container.viewModel)return this.container.viewModel;if(e.container)for(var t=e.container;t;){if(t.viewModel)return this.container.viewModel=t.viewModel,t.viewModel;t=t.parent}},t}(W)}),define("aurelia-task-queue",["exports","aurelia-pal"],function(e,t){"use strict";function i(e){var i=1,n=t.DOM.createMutationObserver(e),o=t.DOM.createTextNode("");return n.observe(o,{characterData:!0}),function(){i=-i,o.data=i}}function n(e){return function(){function t(){clearTimeout(i),clearInterval(n),e()}var i=setTimeout(t,0),n=setInterval(t,50)}}function o(e,t){"onError"in t?t.onError(e):r?setImmediate(function(){throw e}):setTimeout(function(){throw e},0)}Object.defineProperty(e,"__esModule",{value:!0}),e.TaskQueue=void 0;var r="function"==typeof setImmediate;e.TaskQueue=function(){function e(){var e=this;this.microTaskQueue=[],this.microTaskQueueCapacity=1024,this.taskQueue=[],t.FEATURE.mutationObserver?this.requestFlushMicroTaskQueue=i(function(){return e.flushMicroTaskQueue()}):this.requestFlushMicroTaskQueue=n(function(){return e.flushMicroTaskQueue()}),this.requestFlushTaskQueue=n(function(){return e.flushTaskQueue()})}return e.prototype.queueMicroTask=function(e){this.microTaskQueue.length<1&&this.requestFlushMicroTaskQueue(),this.microTaskQueue.push(e)},e.prototype.queueTask=function(e){this.taskQueue.length<1&&this.requestFlushTaskQueue(),this.taskQueue.push(e)},e.prototype.flushTaskQueue=function(){var e=this.taskQueue,t=0,i=void 0;this.taskQueue=[];try{for(;tt){for(var r=0,a=e.length-i;r-1&&i.splice(t,1)),e},e.prototype.publish=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=arguments.length<=2||void 0===arguments[2]||arguments[2],o=arguments.length<=3||void 0===arguments[3]||arguments[3],r=n.DOM.createCustomEvent(e,{cancelable:o,bubbles:i,detail:t});this.element.dispatchEvent(r)},e.prototype.subscribe=function(e,t){var i=this,n=arguments.length<=2||void 0===arguments[2]||arguments[2];if(t&&"function"==typeof t)return t.eventName=e,t.handler=t,t.bubbles=n,t.dispose=function(){i.element.removeEventListener(e,t,n),i._dequeueHandler(t)},this.element.addEventListener(e,t,n),this._enqueueHandler(t),t},e.prototype.subscribeOnce=function(e,t){var i=this,n=arguments.length<=2||void 0===arguments[2]||arguments[2];if(t&&"function"==typeof t){var o=function(){var o=function e(i){t(i),e.dispose()};return{v:i.subscribe(e,o,n)}}();if("object"===("undefined"==typeof o?"undefined":Le(o)))return o.v}},e.prototype.dispose=function(e){if(e&&"string"==typeof e){var t=this.subscriptions[e];if(t)for(;t.length;){var i=t.pop();i&&i.dispose()}}else this.disposeAll()},e.prototype.disposeAll=function(){for(var e in this.subscriptions)this.dispose(e)},e}(),Ve=e.ResourceLoadContext=function(){function e(){this.dependencies={}}return e.prototype.addDependency=function(e){this.dependencies[e]=!0},e.prototype.hasDependency=function(e){return e in this.dependencies},e}(),Ge=e.ViewCompileInstruction=function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];this.targetShadowDOM=e,this.compileSurrogate=t,this.associatedModuleId=null};Ge.normal=new Ge;var We=e.BehaviorInstruction=function(){function e(){this.initiatedByBehavior=!1,this.enhance=!1,this.partReplacements=null,this.viewFactory=null,this.originalAttrName=null,this.skipContentProcessing=!1,this.contentFactory=null,this.viewModel=null,this.anchorIsContainer=!1,this.host=null,this.attributes=null,this.type=null,this.attrName=null,this.inheritBindingContext=!1}return e.enhance=function(){var t=new e;return t.enhance=!0,t},e.unitTest=function(t,i){var n=new e;return n.type=t,n.attributes=i||{},n},e.element=function(t,i){var n=new e;return n.type=i,n.attributes={},n.anchorIsContainer=!(t.hasAttribute("containerless")||i.containerless),n.initiatedByBehavior=!0,n},e.attribute=function(t,i){var n=new e;return n.attrName=t,n.type=i||null,n.attributes={},n},e.dynamic=function(t,i,n){var o=new e;return o.host=t,o.viewModel=i,o.viewFactory=n,o.inheritBindingContext=!0,o},e}();We.normal=new We;var Je=e.TargetInstruction=(ae=re=function(){function e(){this.injectorId=null,this.parentInjectorId=null,this.shadowSlot=!1,this.slotName=null,this.slotFallbackFactory=null,this.contentExpression=null,this.expressions=null,this.behaviorInstructions=null,this.providers=null,this.viewFactory=null,this.anchorIsContainer=!1,this.elementInstruction=null,this.lifting=!1,this.values=null}return e.shadowSlot=function(t){var i=new e;return i.parentInjectorId=t,i.shadowSlot=!0,i},e.contentExpression=function(t){var i=new e;return i.contentExpression=t,i},e.lifting=function(t,i){var n=new e;return n.parentInjectorId=t,n.expressions=e.noExpressions,n.behaviorInstructions=[i],n.viewFactory=i.viewFactory,n.providers=[i.type.target],n.lifting=!0,n},e.normal=function(t,i,n,o,r,a){var s=new e;return s.injectorId=t,s.parentInjectorId=i,s.providers=n,s.behaviorInstructions=o,s.expressions=r,s.anchorIsContainer=!a||a.anchorIsContainer,s.elementInstruction=a,s},e.surrogate=function(t,i,n,o){var r=new e;return r.expressions=n,r.behaviorInstructions=i,r.providers=t,r.values=o,r},e}(),re.noExpressions=Object.freeze([]),ae),Xe=e.viewStrategy=i.protocol.create("aurelia:view-strategy",{validate:function(e){return"function"==typeof e.loadViewFactory||"View strategies must implement: loadViewFactory(viewEngine: ViewEngine, compileInstruction: ViewCompileInstruction, loadContext?: ResourceLoadContext): Promise"},compose:function(e){"function"!=typeof e.makeRelativeTo&&(e.makeRelativeTo=n.PLATFORM.noop)}}),Ze=e.RelativeViewStrategy=(se=Xe(),se(le=function(){function e(e){this.path=e,this.absolutePath=null}return e.prototype.loadViewFactory=function(e,t,i,n){return null===this.absolutePath&&this.moduleId&&(this.absolutePath=(0,o.relativeToFile)(this.path,this.moduleId)),t.associatedModuleId=this.moduleId,e.loadViewFactory(this.absolutePath||this.path,t,i,n)},e.prototype.makeRelativeTo=function(e){null===this.absolutePath&&(this.absolutePath=(0,o.relativeToFile)(this.path,e))},e}())||le),Ke=e.ConventionalViewStrategy=(ce=Xe(),ce(ue=function(){function e(e,t){this.moduleId=t.moduleId,this.viewUrl=e.convertOriginToViewUrl(t)}return e.prototype.loadViewFactory=function(e,t,i,n){return t.associatedModuleId=this.moduleId,e.loadViewFactory(this.viewUrl,t,i,n)},e}())||ue),$e=e.NoViewStrategy=(de=Xe(),de(fe=function(){function e(e,t){this.dependencies=e||null,this.dependencyBaseUrl=t||""}return e.prototype.loadViewFactory=function(e,t,i,n){var o=this.entry,a=this.dependencies;if(o&&o.factoryIsReady)return Promise.resolve(null);if(this.entry=o=new r.TemplateRegistryEntry(this.moduleId||this.dependencyBaseUrl),o.dependencies=[],o.templateIsLoaded=!0,null!==a)for(var s=0,l=a.length;s=n&&s!==e))return r.splice(l,0,t),u}return o.auProjectionChildren.push(t),o}}return this.anchor},e.prototype.projectTo=function(e){this.destinationSlots=e},e.prototype.projectFrom=function(e,t){var i=n.DOM.createComment("anchor"),o=this.anchor.parentNode;i.auSlotProjectFrom=t,i.auOwnerView=e,i.auProjectionChildren=[],o.insertBefore(i,this.anchor),this.children.push(i),null===this.projectFromAnchors&&(this.projectFromAnchors=[]),this.projectFromAnchors.push(i)},e.prototype.renderFallbackContent=function(e,t,i,n){if(null===this.contentView&&(this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext),this.contentView.insertNodesBefore(this.anchor)),this.contentView.hasSlots){var o=this.contentView.slots,r=this.projectFromAnchors;if(null!==r)for(var a in o)for(var s=o[a],l=0,c=r.length;l=n?this.add(t):(t.insertNodesBefore(i[e].firstChild),i.splice(e,0,t),this.isAttached?(t.attached(),this.animateView(t,"enter")):void 0)},e.prototype.move=function(e,t){if(e!==t){var i=this.children,n=i[e];n.removeNodes(),n.insertNodesBefore(i[t].firstChild),i.splice(e,1),i.splice(t,0,n)}},e.prototype.remove=function(e,t,i){return this.removeAt(this.children.indexOf(e),t,i)},e.prototype.removeMany=function(e,t,i){var n=this,o=this.children,r=e.length,a=void 0,s=[];e.forEach(function(e){if(i)return void e.removeNodes();var t=n.animateView(e,"leave");t?s.push(t.then(function(){return e.removeNodes()})):e.removeNodes()});var l=function(){if(n.isAttached)for(a=0;a=0&&o.splice(i,1)}};return s.length>0?Promise.all(s).then(function(){return l()}):l()},e.prototype.removeAt=function(e,t,i){var n=this,o=this.children[e],r=function(){return e=n.children.indexOf(o),o.removeNodes(),n.children.splice(e,1),n.isAttached&&o.detached(),t&&o.returnToCache(),o};if(!i){var a=this.animateView(o,"leave");if(a)return a.then(function(){return r()})}return r()},e.prototype.removeAll=function(e,t){var i=this,n=this.children,o=n.length,r=void 0,a=[];n.forEach(function(e){if(t)return void e.removeNodes();var n=i.animateView(e,"leave");n?a.push(n.then(function(){return e.removeNodes()})):e.removeNodes()});var s=function(){if(i.isAttached)for(r=0;r0?Promise.all(a).then(function(){return s()}):s()},e.prototype.attached=function(){var e=void 0,t=void 0,i=void 0,n=void 0;if(!this.isAttached)for(this.isAttached=!0,i=this.children,e=0,t=i.length;e=this.children.length?this.add(t):(lt.distributeView(t,this.projectToSlots,this,e),this.children.splice(e,0,t),this.isAttached&&t.attached())},e.prototype._projectionMove=function(e,t){if(e!==t){var i=this.children,n=i[e];lt.undistributeView(n,this.projectToSlots,this),lt.distributeView(n,this.projectToSlots,this,t),i.splice(e,1),i.splice(t,0,n)}},e.prototype._projectionRemove=function(e,t){lt.undistributeView(e,this.projectToSlots,this),this.children.splice(this.children.indexOf(e),1),this.isAttached&&e.detached()},e.prototype._projectionRemoveAt=function(e,t){var i=this.children[e];lt.undistributeView(i,this.projectToSlots,this),this.children.splice(e,1),this.isAttached&&i.detached()},e.prototype._projectionRemoveMany=function(e,t){var i=this;e.forEach(function(e){return i.remove(e,t)})},e.prototype._projectionRemoveAll=function(e){lt.undistributeAll(this.projectToSlots,this);var t=this.children;if(this.isAttached)for(var i=0,n=t.length;i0?this.cache=[]:this.cache=null,this.isCaching=this.cacheSize>0},e.prototype.getCachedView=function(){return null!==this.cache?this.cache.pop()||null:null},e.prototype.returnViewToCache=function(e){e.isAttached&&e.detached(),e.isBound&&e.unbind(),null!==this.cache&&this.cache.length instead.')}function l(e){e.container.registerSingleton(n.BindingLanguage,C),e.container.registerAlias(n.BindingLanguage,C)}Object.defineProperty(e,"__esModule",{value:!0}),e.TemplatingBindingLanguage=e.SyntaxInterpreter=e.ChildInterpolationBinding=e.InterpolationBinding=e.InterpolationBindingExpression=e.AttributeMap=void 0,e.configure=l;var c,u,d,f,p,m,h,g,b=o(t),v=e.AttributeMap=(u=c=function(){function e(e){this.elements=Object.create(null),this.allElements=Object.create(null),this.svg=e,this.registerUniversal("accesskey","accessKey"),this.registerUniversal("contenteditable","contentEditable"),this.registerUniversal("tabindex","tabIndex"),this.registerUniversal("textcontent","textContent"),this.registerUniversal("innerhtml","innerHTML"),this.registerUniversal("scrolltop","scrollTop"),this.registerUniversal("scrollleft","scrollLeft"),this.registerUniversal("readonly","readOnly"),this.register("label","for","htmlFor"),this.register("input","maxlength","maxLength"),this.register("input","minlength","minLength"),this.register("input","formaction","formAction"),this.register("input","formenctype","formEncType"),this.register("input","formmethod","formMethod"),this.register("input","formnovalidate","formNoValidate"),this.register("input","formtarget","formTarget"),this.register("textarea","maxlength","maxLength"),this.register("td","rowspan","rowSpan"),this.register("td","colspan","colSpan"),this.register("th","rowspan","rowSpan"),this.register("th","colspan","colSpan")}return e.prototype.register=function(e,t,i){e=e.toLowerCase(),t=t.toLowerCase();var n=this.elements[e]=this.elements[e]||Object.create(null);n[t]=i},e.prototype.registerUniversal=function(e,t){e=e.toLowerCase(),this.allElements[e]=t},e.prototype.map=function(e,t){if(this.svg.isStandardSvgAttribute(e,t))return t;e=e.toLowerCase(),t=t.toLowerCase();var n=this.elements[e];return void 0!==n&&t in n?n[t]:t in this.allElements?this.allElements[t]:/(^data-)|(^aria-)|:/.test(t)?t:(0,i.camelCase)(t)},e}(),c.inject=[i.SVGAnalyzer],u),A=e.InterpolationBindingExpression=function(){function e(e,t,i,n,o,r){this.observerLocator=e,this.targetProperty=t,this.parts=i,this.mode=n,this.lookupFunctions=o,this.attribute=this.attrToRemove=r,this.discrete=!1}return e.prototype.createBinding=function(e){return 3===this.parts.length?new y(e,this.observerLocator,this.parts[1],this.mode,this.lookupFunctions,this.targetProperty,this.parts[0],this.parts[2]):new w(this.observerLocator,this.parts,e,this.targetProperty,this.mode,this.lookupFunctions)},e}(),w=e.InterpolationBinding=function(){function e(e,t,i,n,o,r){s(i,n),this.observerLocator=e,this.parts=t,this.target=i,this.targetProperty=n,this.targetAccessor=e.getAccessor(i,n),this.mode=o,this.lookupFunctions=r}return e.prototype.interpolate=function(){if(this.isBound){for(var e="",t=this.parts,i=0,n=t.length;i=i.bindingMode.oneTime?n.attributes[t].defaultBindingMode:i.bindingMode.oneWay},e.prototype.bind=function(e,t,o,r,a){var s=r||n.BehaviorInstruction.attribute(o.attrName);return s.attributes[o.attrName]=new i.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,o.attrName),this.parser.parse(o.attrValue),o.defaultBindingMode||this.determineDefaultBindingMode(t,o.attrName,a),e.lookupFunctions),s},e.prototype.trigger=function(e,t,n){return new i.ListenerExpression(this.eventManager,n.attrName,this.parser.parse(n.attrValue),!1,!0,e.lookupFunctions)},e.prototype.delegate=function(e,t,n){return new i.ListenerExpression(this.eventManager,n.attrName,this.parser.parse(n.attrValue),!0,!0,e.lookupFunctions)},e.prototype.call=function(e,t,o,r){var a=r||n.BehaviorInstruction.attribute(o.attrName);return a.attributes[o.attrName]=new i.CallExpression(this.observerLocator,o.attrName,this.parser.parse(o.attrValue),e.lookupFunctions),a},e.prototype.options=function(e,t,i,o,r){var a=o||n.BehaviorInstruction.attribute(i.attrName),s=i.attrValue,l=this.language,c=null,u="",d=void 0,f=void 0,p=void 0,m=!1,h=!1;for(f=0,p=s.length;f=0&&i0&&i").addClass(t.dropdownClassName).attr("id","textcomplete-dropdown-"+t._oid).css({display:"none",left:0,position:"absolute",zIndex:t.zIndex}).appendTo(i);return n}}),e.extend(t.prototype,{$el:null,$inputEl:null,completer:null,footer:null,header:null,id:null,maxCount:null,placement:"",shown:!1,data:[],className:"",destroy:function(){this.deactivate(),this.$el.off("."+this.id),this.$inputEl.off("."+this.id),this.clear(),this.$el.remove(),this.$el=this.$inputEl=this.completer=null,delete o[this.id]},render:function(t){var i=this._buildContents(t),n=e.map(t,function(e){return e.value});if(t.length){var o=t[0].strategy;o.id?this.$el.attr("data-strategy",o.id):this.$el.removeAttr("data-strategy"),this._renderHeader(n),this._renderFooter(n),i&&(this._renderContents(i),this._fitToBottom(),this._fitToRight(),this._activateIndexedItem()),this._setScroll()}else this.noResultsMessage?this._renderNoResultsMessage(n):this.shown&&this.deactivate()},setPosition:function(t){var n="absolute";return this.$inputEl.add(this.$inputEl.parents()).each(function(){return"absolute"!==e(this).css("position")&&("fixed"===e(this).css("position")?(t.top-=i.scrollTop(),t.left-=i.scrollLeft(),n="fixed",!1):void 0)}),this.$el.css(this._applyPlacement(t)),this.$el.css({position:n}),this},clear:function(){this.$el.html(""),this.data=[],this._index=0,this._$header=this._$footer=this._$noResultsMessage=null},activate:function(){return this.shown||(this.clear(),this.$el.show(),this.className&&this.$el.addClass(this.className),this.completer.fire("textComplete:show"),this.shown=!0),this},deactivate:function(){return this.shown&&(this.$el.hide(),this.className&&this.$el.removeClass(this.className),this.completer.fire("textComplete:hide"),this.shown=!1),this},isUp:function(e){return 38===e.keyCode||e.ctrlKey&&80===e.keyCode},isDown:function(e){return 40===e.keyCode||e.ctrlKey&&78===e.keyCode},isEnter:function(e){var t=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey;return!t&&(13===e.keyCode||9===e.keyCode||this.option.completeOnSpace===!0&&32===e.keyCode)},isPageup:function(e){return 33===e.keyCode},isPagedown:function(e){return 34===e.keyCode},isEscape:function(e){return 27===e.keyCode},_data:null,_index:null,_$header:null,_$noResultsMessage:null,_$footer:null,_bindEvents:function(){this.$el.on("mousedown."+this.id,".textcomplete-item",e.proxy(this._onClick,this)),this.$el.on("touchstart."+this.id,".textcomplete-item",e.proxy(this._onClick,this)),this.$el.on("mouseover."+this.id,".textcomplete-item",e.proxy(this._onMouseover,this)),this.$inputEl.on("keydown."+this.id,e.proxy(this._onKeydown,this))},_onClick:function(t){var i=e(t.target);t.preventDefault(),t.originalEvent.keepTextCompleteDropdown=this.id,i.hasClass("textcomplete-item")||(i=i.closest(".textcomplete-item"));var n=this.data[parseInt(i.data("index"),10)];this.completer.select(n.value,n.strategy,t);var o=this;setTimeout(function(){o.deactivate(),"touchstart"===t.type&&o.$inputEl.focus()},0)},_onMouseover:function(t){var i=e(t.target);t.preventDefault(),i.hasClass("textcomplete-item")||(i=i.closest(".textcomplete-item")),this._index=parseInt(i.data("index"),10),this._activateIndexedItem()},_onKeydown:function(t){if(this.shown){var i;switch(e.isFunction(this.option.onKeydown)&&(i=this.option.onKeydown(t,r)),null==i&&(i=this._defaultKeydown(t)),i){case r.KEY_UP:t.preventDefault(),this._up();break;case r.KEY_DOWN:t.preventDefault(),this._down();break;case r.KEY_ENTER:t.preventDefault(),this._enter(t);break;case r.KEY_PAGEUP:t.preventDefault(),this._pageup();break;case r.KEY_PAGEDOWN:t.preventDefault(),this._pagedown();break;case r.KEY_ESCAPE:t.preventDefault(),this.deactivate()}}},_defaultKeydown:function(e){return this.isUp(e)?r.KEY_UP:this.isDown(e)?r.KEY_DOWN:this.isEnter(e)?r.KEY_ENTER:this.isPageup(e)?r.KEY_PAGEUP:this.isPagedown(e)?r.KEY_PAGEDOWN:this.isEscape(e)?r.KEY_ESCAPE:void 0},_up:function(){0===this._index?this._index=this.data.length-1:this._index-=1,this._activateIndexedItem(),this._setScroll()},_down:function(){this._index===this.data.length-1?this._index=0:this._index+=1,this._activateIndexedItem(),this._setScroll()},_enter:function(e){var t=this.data[parseInt(this._getActiveElement().data("index"),10)];this.completer.select(t.value,t.strategy,e),this.deactivate()},_pageup:function(){var t=0,i=this._getActiveElement().position().top-this.$el.innerHeight();this.$el.children().each(function(n){if(e(this).position().top+e(this).outerHeight()>i)return t=n,!1}),this._index=t,this._activateIndexedItem(),this._setScroll()},_pagedown:function(){var t=this.data.length-1,i=this._getActiveElement().position().top+this.$el.innerHeight();this.$el.children().each(function(n){if(e(this).position().top>i)return t=n,!1}),this._index=t,this._activateIndexedItem(),this._setScroll()},_activateIndexedItem:function(){this.$el.find(".textcomplete-item.active").removeClass("active"),this._getActiveElement().addClass("active")},_getActiveElement:function(){return this.$el.children(".textcomplete-item:nth("+this._index+")")},_setScroll:function(){var e=this._getActiveElement(),t=e.position().top,i=e.outerHeight(),n=this.$el.innerHeight(),o=this.$el.scrollTop();0===this._index||this._index==this.data.length-1||t<0?this.$el.scrollTop(t+o):t+i>n&&this.$el.scrollTop(t+i+o-n)},_buildContents:function(e){var t,i,o,r="";for(i=0;i',r+=t.strategy.template(t.value,t.term),r+="");return r},_renderHeader:function(t){if(this.header){this._$header||(this._$header=e('
  • ').prependTo(this.$el));var i=e.isFunction(this.header)?this.header(t):this.header;this._$header.html(i)}},_renderFooter:function(t){if(this.footer){this._$footer||(this._$footer=e('').appendTo(this.$el));var i=e.isFunction(this.footer)?this.footer(t):this.footer;this._$footer.html(i)}},_renderNoResultsMessage:function(t){if(this.noResultsMessage){this._$noResultsMessage||(this._$noResultsMessage=e('
  • ').appendTo(this.$el));var i=e.isFunction(this.noResultsMessage)?this.noResultsMessage(t):this.noResultsMessage;this._$noResultsMessage.html(i)}},_renderContents:function(e){this._$footer?this._$footer.before(e):this.$el.append(e)},_fitToBottom:function(){var e=i.scrollTop()+i.height(),t=this.$el.height();this.$el.position().top+t>e&&(this.completer.$iframe||this.$el.offset({top:e-t}))},_fitToRight:function(){for(var e,t=this.option.rightEdgeOffset,n=this.$el.offset().left,o=this.$el.width(),r=i.width()-t;n+o>r&&(this.$el.offset({left:n-t}),e=this.$el.offset().left,!(e>=n));)n=e},_applyPlacement:function(e){return this.placement.indexOf("top")!==-1?e={top:"auto",bottom:this.$el.parent().height()-e.top+e.lineHeight,left:e.left}:(e.bottom="auto",delete e.lineHeight),this.placement.indexOf("absleft")!==-1?e.left=0:this.placement.indexOf("absright")!==-1&&(e.right=0,e.left="auto"),e}}),e.fn.textcomplete.Dropdown=t,e.extend(e.fn.textcomplete,r)}(e),+function(e){"use strict";function t(t){e.extend(this,t),this.cache&&(this.search=i(this.search))}var i=function(e){var t={};return function(i,n){t[i]?n(t[i]):e.call(this,i,function(e){t[i]=(t[i]||[]).concat(e),n.apply(null,arguments)})}};t.parse=function(i,n){return e.map(i,function(e){var i=new t(e);return i.el=n.el,i.$el=n.$el,i})},e.extend(t.prototype,{match:null,replace:null,search:null,id:null,cache:!1,context:function(){return!0},index:2,template:function(e){return e},idProperty:null}),e.fn.textcomplete.Strategy=t}(e),+function(e){"use strict";function t(){}var i=Date.now||function(){return(new Date).getTime()},n=function(e,t){var n,o,r,a,s,l=function(){var c=i()-a;c"+i+"").css({position:"absolute",top:-9999,left:-9999}).insertBefore(t)}var i="吶";e.extend(t.prototype,e.fn.textcomplete.Textarea.prototype,{select:function(t,i,n){var o,r=this.getTextFromHeadToCaret(),a=this.el.value.substring(r.length),s=i.replace(t,n);if("undefined"!=typeof s){e.isArray(s)&&(a=s[1]+a,s=s[0]),o=e.isFunction(i.match)?i.match(r):i.match,r=r.replace(o,s),this.$el.val(r+a),this.el.focus();var l=this.el.createTextRange();l.collapse(!0),l.moveEnd("character",r.length),l.moveStart("character",r.length),l.select()}},getTextFromHeadToCaret:function(){this.el.focus();var e=document.selection.createRange();e.moveStart("character",-this.el.value.length);var t=e.text.split(i);return 1===t.length?t[0]:t[1]}}),e.fn.textcomplete.IETextarea=t}(e),+function(e){"use strict";function t(e,t,i){this.initialize(e,t,i)}e.extend(t.prototype,e.fn.textcomplete.Adapter.prototype,{select:function(t,i,n){var o=this.getTextFromHeadToCaret(),r=this.el.ownerDocument.getSelection(),a=r.getRangeAt(0),s=a.cloneRange();s.selectNodeContents(a.startContainer);var l,c=s.toString(),u=c.substring(a.startOffset),d=i.replace(t,n);if("undefined"!=typeof d){e.isArray(d)&&(u=d[1]+u,d=d[0]),l=e.isFunction(i.match)?i.match(o):i.match,o=o.replace(l,d).replace(/ $/," "),a.selectNodeContents(a.startContainer),a.deleteContents();var f=this.el.ownerDocument.createElement("div");f.innerHTML=o;var p=this.el.ownerDocument.createElement("div");p.innerHTML=u;for(var m,h,g=this.el.ownerDocument.createDocumentFragment();m=f.firstChild;)h=g.appendChild(m);for(;m=p.firstChild;)g.appendChild(m);a.insertNode(g),a.setStartAfter(h),a.collapse(!0),r.removeAllRanges(),r.addRange(a)}},_getCaretRelativePosition:function(){var t=this.el.ownerDocument.getSelection().getRangeAt(0).cloneRange(),i=this.el.ownerDocument.createElement("span");t.insertNode(i),t.selectNodeContents(i),t.deleteContents();var n=e(i),o=n.offset();if(o.left-=this.$el.offset().left,o.top+=n.height()-this.$el.offset().top,o.lineHeight=n.height(),this.completer.$iframe){var r=this.completer.$iframe.offset();o.top+=r.top,o.left+=r.left,o.top-=this.$el.scrollTop()}return n.remove(),o},getTextFromHeadToCaret:function(){var e=this.el.ownerDocument.getSelection().getRangeAt(0),t=e.cloneRange();return t.selectNodeContents(e.startContainer),t.toString().substring(0,e.startOffset)}}),e.fn.textcomplete.ContentEditable=t}(e),+function(e){"use strict";function t(e,t,i){this.initialize(e,t,i)}e.extend(t.prototype,e.fn.textcomplete.ContentEditable.prototype,{_bindEvents:function(){var t=this;this.option.ckeditor_instance.on("key",function(e){var i=e.data;if(t._onKeyup(i),t.completer.dropdown.shown&&t._skipSearch(i))return!1},null,null,1),this.$el.on("keyup."+this.id,e.proxy(this._onKeyup,this))}}),e.fn.textcomplete.CKEditor=t}(e),function(e){function t(e,t,r){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var a=r&&r.debug||!1;if(a){var s=document.querySelector("#input-textarea-caret-position-mirror-div");s&&s.parentNode.removeChild(s)}var l=document.createElement("div");l.id="input-textarea-caret-position-mirror-div",document.body.appendChild(l);var c=l.style,u=window.getComputedStyle?getComputedStyle(e):e.currentStyle;c.whiteSpace="pre-wrap","INPUT"!==e.nodeName&&(c.wordWrap="break-word"),c.position="absolute",a||(c.visibility="hidden"),i.forEach(function(e){c[e]=u[e]}),o?e.scrollHeight>parseInt(u.height)&&(c.overflowY="scroll"):c.overflow="hidden",l.textContent=e.value.substring(0,t),"INPUT"===e.nodeName&&(l.textContent=l.textContent.replace(/\s/g," "));var d=document.createElement("span");d.textContent=e.value.substring(t)||".",l.appendChild(d);var f={top:d.offsetTop+parseInt(u.borderTopWidth),left:d.offsetLeft+parseInt(u.borderLeftWidth)};return a?d.style.backgroundColor="#aaa":document.body.removeChild(l),f}var i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n="undefined"!=typeof window,o=n&&null!=window.mozInnerScreenX;e.fn.textcomplete.getCaretCoordinates=t}(e),e}),define("textcomplete",["textcomplete/dist/jquery.textcomplete"],function(e){return e}),define("wurl",["require","exports","module"],function(e,t,i){i.exports=function(e,t){function i(){return new RegExp(/(.*?)\.?([^\.]*?)\.?(com|net|org|biz|ws|in|me|co\.uk|co|org\.uk|ltd\.uk|plc\.uk|me\.uk|edu|mil|br\.com|cn\.com|eu\.com|hu\.com|no\.com|qc\.com|sa\.com|se\.com|se\.net|us\.com|uy\.com|ac|co\.ac|gv\.ac|or\.ac|ac\.ac|af|am|as|at|ac\.at|co\.at|gv\.at|or\.at|asn\.au|com\.au|edu\.au|org\.au|net\.au|id\.au|be|ac\.be|adm\.br|adv\.br|am\.br|arq\.br|art\.br|bio\.br|cng\.br|cnt\.br|com\.br|ecn\.br|eng\.br|esp\.br|etc\.br|eti\.br|fm\.br|fot\.br|fst\.br|g12\.br|gov\.br|ind\.br|inf\.br|jor\.br|lel\.br|med\.br|mil\.br|net\.br|nom\.br|ntr\.br|odo\.br|org\.br|ppg\.br|pro\.br|psc\.br|psi\.br|rec\.br|slg\.br|tmp\.br|tur\.br|tv\.br|vet\.br|zlg\.br|br|ab\.ca|bc\.ca|mb\.ca|nb\.ca|nf\.ca|ns\.ca|nt\.ca|on\.ca|pe\.ca|qc\.ca|sk\.ca|yk\.ca|ca|cc|ac\.cn|com\.cn|edu\.cn|gov\.cn|org\.cn|bj\.cn|sh\.cn|tj\.cn|cq\.cn|he\.cn|nm\.cn|ln\.cn|jl\.cn|hl\.cn|js\.cn|zj\.cn|ah\.cn|gd\.cn|gx\.cn|hi\.cn|sc\.cn|gz\.cn|yn\.cn|xz\.cn|sn\.cn|gs\.cn|qh\.cn|nx\.cn|xj\.cn|tw\.cn|hk\.cn|mo\.cn|cn|cx|cz|de|dk|fo|com\.ec|tm\.fr|com\.fr|asso\.fr|presse\.fr|fr|gf|gs|co\.il|net\.il|ac\.il|k12\.il|gov\.il|muni\.il|ac\.in|co\.in|org\.in|ernet\.in|gov\.in|net\.in|res\.in|is|it|ac\.jp|co\.jp|go\.jp|or\.jp|ne\.jp|ac\.kr|co\.kr|go\.kr|ne\.kr|nm\.kr|or\.kr|li|lt|lu|asso\.mc|tm\.mc|com\.mm|org\.mm|net\.mm|edu\.mm|gov\.mm|ms|nl|no|nu|pl|ro|org\.ro|store\.ro|tm\.ro|firm\.ro|www\.ro|arts\.ro|rec\.ro|info\.ro|nom\.ro|nt\.ro|se|si|com\.sg|org\.sg|net\.sg|gov\.sg|sk|st|tf|ac\.th|co\.th|go\.th|mi\.th|net\.th|or\.th|tm|to|com\.tr|edu\.tr|gov\.tr|k12\.tr|net\.tr|org\.tr|com\.tw|org\.tw|net\.tw|ac\.uk|uk\.com|uk\.net|gb\.com|gb\.net|vg|sh|kz|ch|info|ua|gov|name|pro|ie|hk|com\.hk|org\.hk|net\.hk|edu\.hk|us|tk|cd|by|ad|lv|eu\.lv|bz|es|jp|cl|ag|mobi|eu|co\.nz|org\.nz|net\.nz|maori\.nz|iwi\.nz|io|la|md|sc|sg|vc|tw|travel|my|se|tv|pt|com\.pt|edu\.pt|asia|fi|com\.ve|net\.ve|fi|org\.ve|web\.ve|info\.ve|co\.ve|tel|im|gr|ru|net\.ru|org\.ru|hr|com\.hr|ly|xyz)$/)}function n(e){return decodeURIComponent(e.replace(/\+/g," "))}function o(e,t){var i=e.charAt(0),n=t.split(i);return i===e?n:(e=parseInt(e.substring(1),10),n[e<0?n.length+e:e-1])}function r(e,t){var i=e.charAt(0),o=t.split("&"),r=[],a={},s=[],l=e.substring(1);for(var c in o)if(r=o[c].split(/=(.*)/),""!==r[0].replace(/\s/g,"")){if(r[1]=n(r[1]||""),l===r[0])return r[1];s=r[0].match(/(.*)\[([0-9]+)\]/),s?(a[s[1]]=a[s[1]]||[],a[s[1]][s[2]]=r[1]):a[r[0]]=r[1]}return i===e?a:a[l]}var a,s,l={};if("tld?"===e)return i();if(t=t||window.location.toString(),!e)return t;if(e=e.toString(),t.match(/^mailto:[^\/]/))l.protocol="mailto",l.email=t.split(/mailto\:/)[1];else{if(a=t.split(/#(.*)/),l.hash=a[1]?a[1]:void 0,l.hash&&e.match(/^#/))return r(e,l.hash);if(a=a[0].split(/\?(.*)/),l.query=a[1]?a[1]:void 0,l.query&&e.match(/^\?/))return r(e,l.query);if(a=a[0].split(/\:?\/\//),l.protocol=a[1]?a[0].toLowerCase():void 0,a=(a[1]?a[1]:a[0]).split(/(\/.*)/),l.path=a[1]?a[1]:"",l.path=l.path.replace(/^([^\/])/,"/$1").replace(/\/$/,""),e.match(/^[\-0-9]+$/)&&(e=e.replace(/^([^\/])/,"/$1")),e.match(/^\//))return o(e,l.path.substring(1));if(s=o("/-1",l.path.substring(1)),s=s.split(/\.(.*)/),s[1]&&(l.file=s[0]+"."+s[1],l.filename=s[0],l.fileext=s[1]),a=a[0].split(/\:([0-9]+)$/),l.port=a[1]?a[1]:void 0,a=a[0].split(/@/),l.auth=a[1]?a[0]:void 0,l.auth&&(s=l.auth.split(/\:(.*)/),l.user=s[0],l.pass=s[1]),l.hostname=(a[1]?a[1]:a[0]).toLowerCase(),"."===e.charAt(0))return o(e,l.hostname);i()&&(a=l.hostname.match(i()),a&&(l.tld=a[3],l.domain=a[2]?a[2]+"."+a[3]:void 0,l.sub=a[1]||void 0)),l.port=l.port||("https"===l.protocol?"443":"80"),l.protocol=l.protocol||("443"===l.port?"https":"http")}return e in l?l[e]:"{}"===e?l:void 0}}),function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function i(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return h.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function r(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function a(e){return new Promise(function(t,i){e.onload=function(){ +t(e.result)},e.onerror=function(){i(e.error)}})}function s(e){var t=new FileReader;return t.readAsArrayBuffer(e),a(t)}function l(e){var t=new FileReader;return t.readAsText(e),a(t)}function c(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(h.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(h.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(h.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(e){if(!h.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):h.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},h.blob?(this.blob=function(){var e=r(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(s)},this.text=function(){var e=r(this);if(e)return e;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=r(this);return e?e:Promise.resolve(this._bodyText)},h.formData&&(this.formData=function(){return this.text().then(f)}),this.json=function(){return this.text().then(JSON.parse)},this}function u(e){var t=e.toUpperCase();return g.indexOf(t)>-1?t:e}function d(e,t){t=t||{};var i=t.body;if(d.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=u(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function f(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var i=e.split("="),n=i.shift().replace(/\+/g," "),o=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function p(e){var t=new o,i=(e.getAllResponseHeaders()||"").trim().split("\n");return i.forEach(function(e){var i=e.trim().split(":"),n=i.shift().trim(),o=i.join(":").trim();t.append(n,o)}),t}function m(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof o?t.headers:new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var h={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};o.prototype.append=function(e,n){e=t(e),n=i(n);var o=this.map[e];o||(o=[],this.map[e]=o),o.push(n)},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){var i=this.map[t(e)];return i?i[0]:null},o.prototype.getAll=function(e){return this.map[t(e)]||[]},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,n){this.map[t(e)]=[i(n)]},o.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(i){this.map[i].forEach(function(n){e.call(t,n,i,this)},this)},this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,i){e.push(i)}),n(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),n(e)},h.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this)},c.call(d.prototype),c.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];m.redirect=function(e,t){if(b.indexOf(t)===-1)throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=d,e.Response=m,e.fetch=function(e,t){return new Promise(function(i,n){function o(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var r;r=d.prototype.isPrototypeOf(e)&&!t?e:new d(e,t);var a=new XMLHttpRequest;a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:p(a),url:o()},t="response"in a?a.response:a.responseText;i(new m(t,e))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.open(r.method,r.url,!0),"include"===r.credentials&&(a.withCredentials=!0),"responseType"in a&&h.blob&&(a.responseType="blob"),r.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send("undefined"==typeof r._bodyInit?null:r._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this),define("whatwg-fetch",[],function(){}),define("isomorphic-fetch/fetch-npm-browserify",["require","exports","module","whatwg-fetch"],function(e,t,i){e("whatwg-fetch"),i.exports=self.fetch.bind(self)}),define("isomorphic-fetch",["isomorphic-fetch/fetch-npm-browserify"],function(e){return e}),function(){function e(e,t){return e.set(t[0],t[1]),e}function t(e,t){return e.add(t),e}function i(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function n(e,t,i,n){for(var o=-1,r=e?e.length:0;++o-1}function c(e,t,i){for(var n=-1,o=e?e.length:0;++n-1;);return i}function M(e,t){for(var i=e.length;i--&&A(t,e[i],0)>-1;);return i}function F(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&n++;return n}function P(e){return"\\"+Di[e]}function D(e,t){return null==e?$:e[t]}function L(e){return Ii.test(e)}function z(e){return Ti.test(e)}function N(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Y(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}function Q(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function H(e,t){return function(i){return e(t(i))}}function q(e,t){for(var i=-1,n=e.length,o=0,r=[];++i-1}function ti(e,t){var i=this.__data__,n=yi(i,e);return n<0?i.push([e,t]):i[n][1]=t,this}function ii(e){var t=-1,i=e?e.length:0;for(this.clear();++t=t?e:t)),e}function Ii(e,t,i,n,r,a,s){var l;if(n&&(l=a?n(e,r,a,s):n(e)),l!==$)return l;if(!Ps(e))return e;var c=Qd(e);if(c){if(l=dr(e),!t)return Eo(e,l)}else{var u=$u(e),d=u==De||u==Le;if(qd(e))return po(e,t);if(u==Ye||u==je||d&&!a){if(N(e))return a?e:{};if(l=fr(d?{}:e),!t)return _o(e,ki(l,e))}else{if(!Ri[u])return a?e:{};l=pr(e,u,Ii,t)}}s||(s=new di);var f=s.get(e);if(f)return f;if(s.set(e,l),!c)var p=i?er(e):vl(e);return o(p||e,function(o,r){p&&(r=o,o=e[r]),wi(l,r,Ii(o,t,i,n,r,e,s))}),l}function Ti(e){var t=vl(e);return function(i){return Mi(i,e,t)}}function Mi(e,t,i){var n=i.length;if(null==e)return!n;for(e=zc(e);n--;){var o=i[n],r=t[o],a=e[o];if(a===$&&!(o in e)||!r(a))return!1}return!0}function Fi(e){return Ps(e)?au(e):{}}function Pi(e,t,i){if("function"!=typeof e)throw new Qc(ie);return id(function(){e.apply($,i)},t)}function Di(e,t,i,n){var o=-1,r=l,a=!0,s=e.length,d=[],f=t.length;if(!s)return d;i&&(t=u(t,B(i))),n?(r=c,a=!1):t.length>=te&&(r=j,a=!1,t=new li(t));e:for(;++oo?0:o+i),n=n===$||n>o?o:el(n),n<0&&(n+=o),n=i>n?0:tl(n);i0&&i(s)?t>1?Vi(s,t-1,i,n,o):d(o,s):n||(o[o.length]=s)}return o}function Gi(e,t){return e&&Uu(e,t,vl)}function en(e,t){return e&&Vu(e,t,vl)}function an(e,t){return s(t,function(t){return Rs(e[t])})}function sn(e,t){t=vr(t,e)?[t]:uo(t);for(var i=0,n=t.length;null!=e&&it}function dn(e,t){return null!=e&&Jc.call(e,t)}function fn(e,t){return null!=e&&t in zc(e)}function pn(e,t,i){return e>=yu(t,i)&&e=120&&p.length>=120)?new li(a&&p):$}p=e[0];var m=-1,h=s[0];e:for(;++m-1;)s!==e&&lu.call(s,l,1),lu.call(e,l,1);return e}function Qn(e,t){for(var i=e?t.length:0,n=i-1;i--;){var o=t[i];if(i==n||o!==r){var r=o;if(gr(o))lu.call(e,o,1);else if(vr(o,e))delete e[Br(o)];else{var a=uo(o),s=Ir(e,a);null!=s&&delete s[Br(Kr(a))]}}}return e}function Hn(e,t){return e+mu(ku()*(t-e+1))}function qn(e,t,i,n){for(var o=-1,r=wu(pu((t-e)/(i||1)),0),a=Mc(r);r--;)a[n?r:++o]=e,e+=i;return a}function Un(e,t){var i="";if(!e||t<1||t>Ee)return i;do t%2&&(i+=e),t=mu(t/2),t&&(e+=e);while(t);return i}function Vn(e,t){return t=wu(t===$?e.length-1:t,0),function(){for(var n=arguments,o=-1,r=wu(n.length-t,0),a=Mc(r);++oo?0:o+t),i=i>o?o:i,i<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var r=Mc(o);++n>>1,a=e[r];null!==a&&!Ws(a)&&(i?a<=t:a=te){var d=t?null:Ju(e);if(d)return U(d);a=!1,o=j,u=new li}else u=t?[]:s;e:for(;++n=n?e:Wn(e,t,i)}function po(e,t){if(t)return e.slice();var i=new e.constructor(e.length);return e.copy(i),i}function mo(e){var t=new e.constructor(e.byteLength);return new nu(t).set(new nu(e)),t}function ho(e,t){var i=t?mo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function go(t,i,n){var o=i?n(Q(t),!0):Q(t);return f(o,e,new t.constructor)}function bo(e){var t=new e.constructor(e.source,Ot.exec(e));return t.lastIndex=e.lastIndex,t}function vo(e,i,n){var o=i?n(U(e),!0):U(e);return f(o,t,new e.constructor)}function Ao(e){return Yu?zc(Yu.call(e)):{}}function wo(e,t){var i=t?mo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function yo(e,t){if(e!==t){var i=e!==$,n=null===e,o=e===e,r=Ws(e),a=t!==$,s=null===t,l=t===t,c=Ws(t);if(!s&&!c&&!r&&e>t||r&&a&&l&&!s&&!c||n&&a&&l||!i&&l||!o)return 1;if(!n&&!r&&!c&&e=s)return l;var c=i[n];return l*("desc"==c?-1:1)}}return e.index-t.index}function ko(e,t,i,n){for(var o=-1,r=e.length,a=i.length,s=-1,l=t.length,c=wu(r-a,0),u=Mc(l+c),d=!n;++s1?i[o-1]:$,a=o>2?i[2]:$;for(r=e.length>3&&"function"==typeof r?(o--,r):$,a&&br(i[0],i[1],a)&&(r=o<3?$:r,o=1),t=zc(t);++n-1?o[r?t[a]:a]:$}}function Lo(e){return Vn(function(t){t=Vi(t,1);var i=t.length,n=i,o=X.prototype.thru;for(e&&t.reverse();n--;){var r=t[n];if("function"!=typeof r)throw new Qc(ie);if(o&&!a&&"wrapper"==ir(r))var a=new X([],!0)}for(n=a?n:i;++n=te)return a.plant(n).value();for(var o=0,r=i?t[o].apply(this,e):n;++o1&&v.reverse(),d&&ls))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var u=-1,d=!0,f=o&he?new li:$;for(r.set(e,t),r.set(t,e);++u1?"& ":"")+t[n],t=t.join(i>2?", ":" "),e.replace(Et,"{\n/* [wrapped with "+t+"] */\n")}function hr(e){return Qd(e)||ks(e)||!!(cu&&e&&e[cu])}function gr(e,t){return t=null==t?Ee:t,!!t&&("number"==typeof e||Dt.test(e))&&e>-1&&e%1==0&&e=this.__values__.length,t=e?$:this.__values__[this.__index__++];return{done:e,value:t}}function Ra(){return this}function Ma(e){for(var t,i=this;i instanceof J;){var n=Rr(i);n.__index__=0,n.__values__=$,t?o.__wrapped__=n:t=n;var o=n;i=i.__wrapped__}return o.__wrapped__=e,t}function Fa(){var e=this.__wrapped__;if(e instanceof It){var t=e;return this.__actions__.length&&(t=new It(this)),t=t.reverse(),t.__actions__.push({func:Ta,args:[ra],thisArg:$}),new X(t,this.__chain__)}return this.thru(ra)}function Pa(){return ro(this.__wrapped__,this.__actions__)}function Da(e,t,i){var n=Qd(e)?a:Ni;return i&&br(e,t,i)&&(t=$),n(e,or(t,3))}function La(e,t){var i=Qd(e)?s:qi;return i(e,or(t,3))}function za(e,t){return Vi(Ua(e,t),1)}function Na(e,t){return Vi(Ua(e,t),Ce)}function Ya(e,t,i){return i=i===$?1:el(i),Vi(Ua(e,t),i)}function Qa(e,t){var i=Qd(e)?o:Hu;return i(e,or(t,3))}function Ha(e,t){var i=Qd(e)?r:qu;return i(e,or(t,3))}function qa(e,t,i,n){e=Cs(e)?e:Ol(e),i=i&&!n?el(i):0;var o=e.length;return i<0&&(i=wu(o+i,0)),Gs(e)?i<=o&&e.indexOf(t,i)>-1:!!o&&A(e,t,i)>-1}function Ua(e,t){var i=Qd(e)?u:On;return i(e,or(t,3))}function Va(e,t,i,n){return null==e?[]:(Qd(t)||(t=null==t?[]:[t]),i=n?$:i,Qd(i)||(i=null==i?[]:[i]),Dn(e,t,i))}function Ga(e,t,i){var n=Qd(e)?f:E,o=arguments.length<3;return n(e,or(t,4),i,o,Hu)}function Wa(e,t,i){var n=Qd(e)?p:E,o=arguments.length<3;return n(e,or(t,4),i,o,qu)}function Ja(e,t){var i=Qd(e)?s:qi;return i(e,cs(or(t,3)))}function Xa(e){var t=Cs(e)?e:Ol(e),i=t.length;return i>0?t[Hn(0,i-1)]:$}function Za(e,t,i){var n=-1,o=Ks(e),r=o.length,a=r-1;for(t=(i?br(e,t,i):t===$)?1:_i(el(t),0,r);++n0&&(i=t.apply(this,arguments)),e<=1&&(t=$),i}}function os(e,t,i){t=i?$:t;var n=Xo(e,le,$,$,$,$,$,t);return n.placeholder=os.placeholder,n}function rs(e,t,i){t=i?$:t;var n=Xo(e,ce,$,$,$,$,$,t);return n.placeholder=rs.placeholder,n}function as(e,t,i){function n(t){var i=f,n=p;return f=p=$,v=t,h=e.apply(n,i)}function o(e){return v=e,g=id(s,t),A?n(e):h}function r(e){var i=e-b,n=e-v,o=t-i;return w?yu(o,m-n):o}function a(e){var i=e-b,n=e-v;return b===$||i>=t||i<0||w&&n>=m}function s(){var e=Od();return a(e)?l(e):void(g=id(s,r(e)))}function l(e){return g=$,y&&f?n(e):(f=p=$,h)}function c(){g!==$&&Wu(g),v=0,f=b=p=g=$}function u(){return g===$?h:l(Od())}function d(){var e=Od(),i=a(e);if(f=arguments,p=this,b=e,i){if(g===$)return o(b);if(w)return g=id(s,t),n(b)}return g===$&&(g=id(s,t)),h}var f,p,m,h,g,b,v=0,A=!1,w=!1,y=!0;if("function"!=typeof e)throw new Qc(ie);return t=il(t)||0,Ps(i)&&(A=!!i.leading,w="maxWait"in i,m=w?wu(il(i.maxWait)||0,t):m,y="trailing"in i?!!i.trailing:y),d.cancel=c,d.flush=u,d}function ss(e){return Xo(e,me)}function ls(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new Qc(ie);var i=function(){var n=arguments,o=t?t.apply(this,n):n[0],r=i.cache;if(r.has(o))return r.get(o);var a=e.apply(this,n);return i.cache=r.set(o,a),a};return i.cache=new(ls.Cache||ii),i}function cs(e){if("function"!=typeof e)throw new Qc(ie);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function us(e){return ns(2,e)}function ds(e,t){if("function"!=typeof e)throw new Qc(ie);return t=t===$?t:el(t),Vn(e,t)}function fs(e,t){if("function"!=typeof e)throw new Qc(ie);return t=t===$?0:wu(el(t),0),Vn(function(n){var o=n[t],r=fo(n,0,t);return o&&d(r,o),i(e,this,r)})}function ps(e,t,i){var n=!0,o=!0;if("function"!=typeof e)throw new Qc(ie);return Ps(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),as(e,t,{leading:n,maxWait:t,trailing:o})}function ms(e){return is(e,1)}function hs(e,t){return t=null==t?lc:t,Dd(t,e)}function gs(){if(!arguments.length)return[];var e=arguments[0];return Qd(e)?e:[e]}function bs(e){return Ii(e,!1,!0)}function vs(e,t){return Ii(e,!1,!0,t)}function As(e){return Ii(e,!0,!0)}function ws(e,t){return Ii(e,!0,!0,t)}function ys(e,t){return null==t||Mi(e,t,vl(t))}function xs(e,t){return e===t||e!==e&&t!==t}function ks(e){return Es(e)&&Jc.call(e,"callee")&&(!su.call(e,"callee")||Kc.call(e)==je)}function Cs(e){return null!=e&&Fs(e.length)&&!Rs(e)}function Es(e){return Ds(e)&&Cs(e)}function Ss(e){return e===!0||e===!1||Ds(e)&&Kc.call(e)==Me}function _s(e){return!!e&&1===e.nodeType&&Ds(e)&&!Us(e)}function Is(e){if(Cs(e)&&(Qd(e)||"string"==typeof e||"function"==typeof e.splice||qd(e)||ks(e)))return!e.length;var t=$u(e);if(t==ze||t==qe)return!e.size;if(Ru||xr(e))return!Au(e).length;for(var i in e)if(Jc.call(e,i))return!1;return!0}function Ts(e,t){return An(e,t)}function Bs(e,t,i){i="function"==typeof i?i:$;var n=i?i(e,t):$;return n===$?An(e,t,i):!!n}function Os(e){return!!Ds(e)&&(Kc.call(e)==Pe||"string"==typeof e.message&&"string"==typeof e.name)}function js(e){return"number"==typeof e&&bu(e)}function Rs(e){var t=Ps(e)?Kc.call(e):"";return t==De||t==Le}function Ms(e){return"number"==typeof e&&e==el(e)}function Fs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ee}function Ps(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ds(e){return!!e&&"object"==typeof e}function Ls(e,t){return e===t||xn(e,t,ar(t))}function zs(e,t,i){return i="function"==typeof i?i:$,xn(e,t,ar(t),i)}function Ns(e){return qs(e)&&e!=+e}function Ys(e){if(ed(e))throw new Pc("This method is not supported with core-js. Try https://github.com/es-shims.");return kn(e)}function Qs(e){return null===e}function Hs(e){return null==e}function qs(e){return"number"==typeof e||Ds(e)&&Kc.call(e)==Ne}function Us(e){if(!Ds(e)||Kc.call(e)!=Ye||N(e))return!1;var t=ou(e);if(null===t)return!0;var i=Jc.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Wc.call(i)==Zc}function Vs(e){return Ms(e)&&e>=-Ee&&e<=Ee}function Gs(e){return"string"==typeof e||!Qd(e)&&Ds(e)&&Kc.call(e)==Ue}function Ws(e){return"symbol"==typeof e||Ds(e)&&Kc.call(e)==Ve}function Js(e){return e===$}function Xs(e){return Ds(e)&&$u(e)==Ge}function Zs(e){return Ds(e)&&Kc.call(e)==We}function Ks(e){if(!e)return[];if(Cs(e))return Gs(e)?W(e):Eo(e);if(ru&&e[ru])return Y(e[ru]());var t=$u(e),i=t==ze?Q:t==qe?U:Ol;return i(e)}function $s(e){if(!e)return 0===e?e:0;if(e=il(e),e===Ce||e===-Ce){var t=e<0?-1:1;return t*Se}return e===e?e:0}function el(e){var t=$s(e),i=t%1;return t===t?i?t-i:t:0}function tl(e){return e?_i(el(e),0,Ie):0}function il(e){if("number"==typeof e)return e;if(Ws(e))return _e;if(Ps(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ps(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(xt,"");var i=Mt.test(e);return i||Pt.test(e)?zi(e.slice(2),i?2:8):Rt.test(e)?_e:+e}function nl(e){return So(e,Al(e))}function ol(e){return _i(el(e),-Ee,Ee)}function rl(e){return null==e?"":eo(e)}function al(e,t){var i=Fi(e);return t?ki(i,t):i}function sl(e,t){return b(e,or(t,3),Gi)}function ll(e,t){return b(e,or(t,3),en)}function cl(e,t){return null==e?e:Uu(e,or(t,3),Al)}function ul(e,t){return null==e?e:Vu(e,or(t,3),Al)}function dl(e,t){return e&&Gi(e,or(t,3))}function fl(e,t){return e&&en(e,or(t,3))}function pl(e){return null==e?[]:an(e,vl(e))}function ml(e){return null==e?[]:an(e,Al(e))}function hl(e,t,i){var n=null==e?$:sn(e,t);return n===$?i:n}function gl(e,t){return null!=e&&ur(e,t,dn)}function bl(e,t){return null!=e&&ur(e,t,fn)}function vl(e){return Cs(e)?bi(e):In(e)}function Al(e){return Cs(e)?bi(e,!0):Tn(e)}function wl(e,t){var i={};return t=or(t,3),Gi(e,function(e,n,o){i[t(e,n,o)]=e}),i}function yl(e,t){var i={};return t=or(t,3),Gi(e,function(e,n,o){i[n]=t(e,n,o)}),i}function xl(e,t){return kl(e,cs(or(t)))}function kl(e,t){return null==e?{}:zn(e,tr(e),or(t))}function Cl(e,t,i){t=vr(t,e)?[t]:uo(t);var n=-1,o=t.length;for(o||(e=$,o=1);++nt){var n=e;e=t,t=n}if(i||e%1||t%1){var o=ku();return yu(e+o*(t-e+Li("1e-"+((o+"").length-1))),t)}return Hn(e,t)}function Pl(e){return xf(rl(e).toLowerCase())}function Dl(e){return e=rl(e),e&&e.replace(Lt,tn).replace(Ei,"")}function Ll(e,t,i){e=rl(e),t=eo(t);var n=e.length;i=i===$?n:_i(el(i),0,n);var o=i;return i-=t.length,i>=0&&e.slice(i,o)==t}function zl(e){return e=rl(e),e&&ft.test(e)?e.replace(ut,nn):e}function Nl(e){return e=rl(e),e&&yt.test(e)?e.replace(wt,"\\$&"):e}function Yl(e,t,i){e=rl(e),t=el(t);var n=t?G(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Ho(mu(o),i)+e+Ho(pu(o),i)}function Ql(e,t,i){e=rl(e),t=el(t);var n=t?G(e):0;return t&&n>>0)?(e=rl(e),e&&("string"==typeof t||null!=t&&!Gd(t))&&(t=eo(t),!t&&L(e))?fo(W(e),0,i):e.split(t,i)):[]}function Wl(e,t,i){return e=rl(e),i=_i(el(i),0,e.length),t=eo(t),e.slice(i,i+t.length)==t}function Jl(e,t,i){var n=C.templateSettings;i&&br(e,t,i)&&(t=$),e=rl(e),t=ef({},t,n,vi);var o,r,a=ef({},t.imports,n.imports,vi),s=vl(a),l=O(a,s),c=0,u=t.interpolate||zt,d="__p += '",f=Nc((t.escape||zt).source+"|"+u.source+"|"+(u===ht?Bt:zt).source+"|"+(t.evaluate||zt).source+"|$","g"),p="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Oi+"]")+"\n";e.replace(f,function(t,i,n,a,s,l){return n||(n=a),d+=e.slice(c,l).replace(Nt,P),i&&(o=!0,d+="' +\n__e("+i+") +\n'"),s&&(r=!0,d+="';\n"+s+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+t.length,t}),d+="';\n";var m=t.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(r?d.replace(at,""):d).replace(st,"$1").replace(lt,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var h=kf(function(){return Dc(s,p+"return "+d).apply($,l)});if(h.source=d,Os(h))throw h;return h}function Xl(e){return rl(e).toLowerCase()}function Zl(e){return rl(e).toUpperCase()}function Kl(e,t,i){if(e=rl(e),e&&(i||t===$))return e.replace(xt,"");if(!e||!(t=eo(t)))return e;var n=W(e),o=W(t),r=R(n,o),a=M(n,o)+1;return fo(n,r,a).join("")}function $l(e,t,i){if(e=rl(e),e&&(i||t===$))return e.replace(Ct,"");if(!e||!(t=eo(t)))return e;var n=W(e),o=M(n,W(t))+1;return fo(n,0,o).join("")}function ec(e,t,i){if(e=rl(e),e&&(i||t===$))return e.replace(kt,"");if(!e||!(t=eo(t)))return e;var n=W(e),o=R(n,W(t));return fo(n,o).join("")}function tc(e,t){var i=be,n=ve;if(Ps(t)){var o="separator"in t?t.separator:o;i="length"in t?el(t.length):i,n="omission"in t?eo(t.omission):n}e=rl(e);var r=e.length;if(L(e)){var a=W(e);r=a.length}if(i>=r)return e;var s=i-G(n);if(s<1)return n;var l=a?fo(a,0,s).join(""):e.slice(0,s);if(o===$)return l+n;if(a&&(s+=l.length-s),Gd(o)){if(e.slice(s).search(o)){var c,u=l;for(o.global||(o=Nc(o.source,rl(Ot.exec(o))+"g")),o.lastIndex=0;c=o.exec(u);)var d=c.index;l=l.slice(0,d===$?s:d)}}else if(e.indexOf(eo(o),s)!=s){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+n}function ic(e){return e=rl(e),e&&dt.test(e)?e.replace(ct,on):e}function nc(e,t,i){return e=rl(e),t=i?$:t,t===$?z(e)?Z(e):g(e):e.match(t)||[]}function oc(e){var t=e?e.length:0,n=or();return e=t?u(e,function(e){if("function"!=typeof e[1])throw new Qc(ie);return[n(e[0]),e[1]]}):[],Vn(function(n){for(var o=-1;++oEe)return[];var i=Ie,n=yu(e,Ie);t=or(t),e-=Ie;for(var o=I(n,t);++i2?e:$}(),ju=Tu&&new Tu,Ru=!su.call({valueOf:1},"valueOf"),Mu={},Fu=Or(Eu),Pu=Or(Su),Du=Or(_u),Lu=Or(Iu),zu=Or(Tu),Nu=iu?iu.prototype:$,Yu=Nu?Nu.valueOf:$,Qu=Nu?Nu.toString:$;C.templateSettings={escape:pt,evaluate:mt,interpolate:ht,variable:"",imports:{_:C}},C.prototype=J.prototype,C.prototype.constructor=C,X.prototype=Fi(J.prototype),X.prototype.constructor=X,It.prototype=Fi(J.prototype),It.prototype.constructor=It,qt.prototype.clear=Ut,qt.prototype.delete=Vt,qt.prototype.get=Gt,qt.prototype.has=Wt,qt.prototype.set=Jt,Xt.prototype.clear=Zt,Xt.prototype.delete=Kt,Xt.prototype.get=$t,Xt.prototype.has=ei,Xt.prototype.set=ti,ii.prototype.clear=ni,ii.prototype.delete=oi,ii.prototype.get=ri,ii.prototype.has=ai,ii.prototype.set=si,li.prototype.add=li.prototype.push=ci,li.prototype.has=ui,di.prototype.clear=fi,di.prototype.delete=pi,di.prototype.get=mi,di.prototype.has=hi,di.prototype.set=gi;var Hu=Bo(Gi),qu=Bo(en,!0),Uu=Oo(),Vu=Oo(!0),Gu=ju?function(e,t){return ju.set(e,t),e}:lc,Wu=uu||function(e){return Qi.clearTimeout(e)},Ju=Iu&&1/U(new Iu([,-0]))[1]==Ce?function(e){return new Iu(e)}:mc,Xu=ju?function(e){return ju.get(e)}:mc,Zu=hu?H(hu,zc):vc,Ku=hu?function(e){for(var t=[];e;)d(t,Zu(e)),e=ou(e);return t}:vc,$u=cn;(Eu&&$u(new Eu(new ArrayBuffer(1)))!=Xe||Su&&$u(new Su)!=ze||_u&&$u(_u.resolve())!=Qe||Iu&&$u(new Iu)!=qe||Tu&&$u(new Tu)!=Ge)&&($u=function(e){var t=Kc.call(e),i=t==Ye?e.constructor:$,n=i?Or(i):$;if(n)switch(n){case Fu:return Xe;case Pu:return ze;case Du:return Qe;case Lu:return qe;case zu:return Ge}return t});var ed=Vc?Rs:Ac,td=function(){var e=0,t=0;return function(i,n){var o=Od(),r=we-(o-t);if(t=o,r>0){if(++e>=Ae)return i}else e=0;return Gu(i,n)}}(),id=fu||function(e,t){return Qi.setTimeout(e,t)},nd=Ou?function(e,t,i){var n=t+"";return Ou(e,"toString",{configurable:!0,enumerable:!1,value:ac(mr(n,jr(cr(n),i)))})}:lc,od=ls(function(e){e=rl(e);var t=[];return vt.test(e)&&t.push(""),e.replace(At,function(e,i,n,o){t.push(n?o.replace(Tt,"$1"):i||e)}),t}),rd=Vn(function(e,t){return Es(e)?Di(e,Vi(t,1,Es,!0)):[]}),ad=Vn(function(e,t){var i=Kr(t);return Es(i)&&(i=$),Es(e)?Di(e,Vi(t,1,Es,!0),or(i,2)):[]}),sd=Vn(function(e,t){var i=Kr(t);return Es(i)&&(i=$),Es(e)?Di(e,Vi(t,1,Es,!0),$,i):[]}),ld=Vn(function(e){var t=u(e,lo);return t.length&&t[0]===e[0]?mn(t):[]}),cd=Vn(function(e){var t=Kr(e),i=u(e,lo);return t===Kr(i)?t=$:i.pop(),i.length&&i[0]===e[0]?mn(i,or(t,2)):[]}),ud=Vn(function(e){var t=Kr(e),i=u(e,lo);return t===Kr(i)?t=$:i.pop(),i.length&&i[0]===e[0]?mn(i,$,t):[]}),dd=Vn(ta),fd=Vn(function(e,t){t=Vi(t,1);var i=e?e.length:0,n=Si(e,t);return Qn(e,u(t,function(e){return gr(e,i)?+e:e}).sort(yo)),n}),pd=Vn(function(e){return to(Vi(e,1,Es,!0))}),md=Vn(function(e){var t=Kr(e);return Es(t)&&(t=$),to(Vi(e,1,Es,!0),or(t,2))}),hd=Vn(function(e){var t=Kr(e);return Es(t)&&(t=$),to(Vi(e,1,Es,!0),$,t)}),gd=Vn(function(e,t){return Es(e)?Di(e,t):[]}),bd=Vn(function(e){return ao(s(e,Es))}),vd=Vn(function(e){var t=Kr(e);return Es(t)&&(t=$),ao(s(e,Es),or(t,2))}),Ad=Vn(function(e){var t=Kr(e);return Es(t)&&(t=$),ao(s(e,Es),$,t)}),wd=Vn(ka),yd=Vn(function(e){var t=e.length,i=t>1?e[t-1]:$;return i="function"==typeof i?(e.pop(),i):$,Ca(e,i)}),xd=Vn(function(e){e=Vi(e,1);var t=e.length,i=t?e[0]:0,n=this.__wrapped__,o=function(t){return Si(t,e)};return!(t>1||this.__actions__.length)&&n instanceof It&&gr(i)?(n=n.slice(i,+i+(t?1:0)),n.__actions__.push({func:Ta,args:[o],thisArg:$}),new X(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push($),e})):this.thru(o)}),kd=Io(function(e,t,i){Jc.call(e,i)?++e[i]:e[i]=1}),Cd=Do(Qr),Ed=Do(Hr),Sd=Io(function(e,t,i){Jc.call(e,i)?e[i].push(t):e[i]=[t]}),_d=Vn(function(e,t,n){var o=-1,r="function"==typeof t,a=vr(t),s=Cs(e)?Mc(e.length):[];return Hu(e,function(e){var l=r?t:a&&null!=e?e[t]:$;s[++o]=l?i(l,e,n):gn(e,t,n)}),s}),Id=Io(function(e,t,i){e[i]=t}),Td=Io(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]}),Bd=Vn(function(e,t){if(null==e)return[];var i=t.length;return i>1&&br(e,t[0],t[1])?t=[]:i>2&&br(t[0],t[1],t[2])&&(t=[t[0]]),Dn(e,Vi(t,1),[])}),Od=du||function(){return Qi.Date.now()},jd=Vn(function(e,t,i){var n=re;if(i.length){var o=q(i,nr(jd));n|=ue}return Xo(e,n,t,i,o)}),Rd=Vn(function(e,t,i){var n=re|ae;if(i.length){var o=q(i,nr(Rd));n|=ue}return Xo(t,n,e,i,o)}),Md=Vn(function(e,t){return Pi(e,1,t)}),Fd=Vn(function(e,t,i){return Pi(e,il(t)||0,i)});ls.Cache=ii;var Pd=Vn(function(e,t){t=1==t.length&&Qd(t[0])?u(t[0],B(or())):u(Vi(t,1),B(or()));var n=t.length;return Vn(function(o){for(var r=-1,a=yu(o.length,n);++r=t}),Qd=Mc.isArray,Hd=Wi?B(Wi):bn,qd=gu||Ac,Ud=Ji?B(Ji):vn,Vd=Xi?B(Xi):yn,Gd=Zi?B(Zi):Cn,Wd=Ki?B(Ki):En,Jd=$i?B($i):Sn,Xd=Vo(Bn),Zd=Vo(function(e,t){return e<=t}),Kd=To(function(e,t){if(Ru||xr(t)||Cs(t))return void So(t,vl(t),e);for(var i in t)Jc.call(t,i)&&wi(e,i,t[i])}),$d=To(function(e,t){So(t,Al(t),e)}),ef=To(function(e,t,i,n){So(t,Al(t),e,n)}),tf=To(function(e,t,i,n){So(t,vl(t),e,n)}),nf=Vn(function(e,t){return Si(e,Vi(t,1))}),of=Vn(function(e){return e.push($,vi),i(ef,$,e)}),rf=Vn(function(e){return e.push($,Sr),i(uf,$,e)}),af=No(function(e,t,i){e[t]=i},ac(lc)),sf=No(function(e,t,i){Jc.call(e,t)?e[t].push(i):e[t]=[i]},or),lf=Vn(gn),cf=To(function(e,t,i){Mn(e,t,i)}),uf=To(function(e,t,i,n){Mn(e,t,i,n)}),df=Vn(function(e,t){return null==e?{}:(t=u(Vi(t,1),Br),Ln(e,Di(tr(e),t)))}),ff=Vn(function(e,t){return null==e?{}:Ln(e,u(Vi(t,1),Br))}),pf=Jo(vl),mf=Jo(Al),hf=Mo(function(e,t,i){return t=t.toLowerCase(),e+(i?Pl(t):t)}),gf=Mo(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),bf=Mo(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),vf=Ro("toLowerCase"),Af=Mo(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}),wf=Mo(function(e,t,i){return e+(i?" ":"")+xf(t)}),yf=Mo(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),xf=Ro("toUpperCase"),kf=Vn(function(e,t){try{return i(e,$,t)}catch(e){return Os(e)?e:new Pc(e)}}),Cf=Vn(function(e,t){return o(Vi(t,1),function(t){t=Br(t),e[t]=jd(e[t],e)}),e}),Ef=Lo(),Sf=Lo(!0),_f=Vn(function(e,t){return function(i){return gn(i,e,t)}}),If=Vn(function(e,t){return function(i){return gn(e,i,t)}}),Tf=Qo(u),Bf=Qo(a),Of=Qo(m),jf=Uo(),Rf=Uo(!0),Mf=Yo(function(e,t){return e+t},0),Ff=Wo("ceil"),Pf=Yo(function(e,t){return e/t},1),Df=Wo("floor"),Lf=Yo(function(e,t){return e*t},1),zf=Wo("round"),Nf=Yo(function(e,t){return e-t},0);return C.after=ts,C.ary=is,C.assign=Kd,C.assignIn=$d,C.assignInWith=ef,C.assignWith=tf,C.at=nf,C.before=ns,C.bind=jd,C.bindAll=Cf,C.bindKey=Rd,C.castArray=gs,C.chain=_a,C.chunk=Mr,C.compact=Fr,C.concat=Pr,C.cond=oc,C.conforms=rc,C.constant=ac,C.countBy=kd,C.create=al,C.curry=os,C.curryRight=rs,C.debounce=as,C.defaults=of,C.defaultsDeep=rf,C.defer=Md,C.delay=Fd,C.difference=rd,C.differenceBy=ad,C.differenceWith=sd,C.drop=Dr,C.dropRight=Lr,C.dropRightWhile=zr,C.dropWhile=Nr,C.fill=Yr,C.filter=La,C.flatMap=za,C.flatMapDeep=Na,C.flatMapDepth=Ya,C.flatten=qr,C.flattenDeep=Ur,C.flattenDepth=Vr,C.flip=ss,C.flow=Ef,C.flowRight=Sf,C.fromPairs=Gr,C.functions=pl,C.functionsIn=ml,C.groupBy=Sd,C.initial=Xr,C.intersection=ld,C.intersectionBy=cd,C.intersectionWith=ud,C.invert=af,C.invertBy=sf,C.invokeMap=_d,C.iteratee=cc,C.keyBy=Id,C.keys=vl,C.keysIn=Al,C.map=Ua,C.mapKeys=wl,C.mapValues=yl,C.matches=uc,C.matchesProperty=dc,C.memoize=ls,C.merge=cf,C.mergeWith=uf,C.method=_f,C.methodOf=If,C.mixin=fc,C.negate=cs,C.nthArg=hc,C.omit=df,C.omitBy=xl,C.once=us,C.orderBy=Va,C.over=Tf,C.overArgs=Pd,C.overEvery=Bf,C.overSome=Of,C.partial=Dd,C.partialRight=Ld,C.partition=Td,C.pick=ff,C.pickBy=kl,C.property=gc,C.propertyOf=bc,C.pull=dd,C.pullAll=ta,C.pullAllBy=ia,C.pullAllWith=na,C.pullAt=fd,C.range=jf,C.rangeRight=Rf,C.rearg=zd,C.reject=Ja,C.remove=oa,C.rest=ds,C.reverse=ra,C.sampleSize=Za,C.set=El,C.setWith=Sl,C.shuffle=Ka,C.slice=aa,C.sortBy=Bd,C.sortedUniq=pa,C.sortedUniqBy=ma,C.split=Gl,C.spread=fs,C.tail=ha,C.take=ga,C.takeRight=ba,C.takeRightWhile=va,C.takeWhile=Aa,C.tap=Ia,C.throttle=ps,C.thru=Ta,C.toArray=Ks,C.toPairs=pf,C.toPairsIn=mf,C.toPath=Cc,C.toPlainObject=nl,C.transform=_l,C.unary=ms,C.union=pd,C.unionBy=md,C.unionWith=hd,C.uniq=wa,C.uniqBy=ya,C.uniqWith=xa,C.unset=Il,C.unzip=ka,C.unzipWith=Ca,C.update=Tl,C.updateWith=Bl,C.values=Ol,C.valuesIn=jl,C.without=gd,C.words=nc,C.wrap=hs,C.xor=bd,C.xorBy=vd,C.xorWith=Ad,C.zip=wd,C.zipObject=Ea,C.zipObjectDeep=Sa,C.zipWith=yd,C.entries=pf,C.entriesIn=mf,C.extend=$d,C.extendWith=ef,fc(C,C),C.add=Mf,C.attempt=kf,C.camelCase=hf,C.capitalize=Pl,C.ceil=Ff,C.clamp=Rl,C.clone=bs,C.cloneDeep=As,C.cloneDeepWith=ws,C.cloneWith=vs,C.conformsTo=ys,C.deburr=Dl,C.defaultTo=sc,C.divide=Pf,C.endsWith=Ll,C.eq=xs,C.escape=zl,C.escapeRegExp=Nl,C.every=Da,C.find=Cd,C.findIndex=Qr,C.findKey=sl,C.findLast=Ed,C.findLastIndex=Hr,C.findLastKey=ll,C.floor=Df,C.forEach=Qa,C.forEachRight=Ha,C.forIn=cl,C.forInRight=ul,C.forOwn=dl,C.forOwnRight=fl,C.get=hl,C.gt=Nd,C.gte=Yd,C.has=gl,C.hasIn=bl,C.head=Wr,C.identity=lc,C.includes=qa,C.indexOf=Jr,C.inRange=Ml,C.invoke=lf,C.isArguments=ks,C.isArray=Qd,C.isArrayBuffer=Hd,C.isArrayLike=Cs,C.isArrayLikeObject=Es,C.isBoolean=Ss,C.isBuffer=qd,C.isDate=Ud,C.isElement=_s,C.isEmpty=Is,C.isEqual=Ts,C.isEqualWith=Bs,C.isError=Os,C.isFinite=js,C.isFunction=Rs,C.isInteger=Ms,C.isLength=Fs,C.isMap=Vd,C.isMatch=Ls,C.isMatchWith=zs,C.isNaN=Ns,C.isNative=Ys,C.isNil=Hs,C.isNull=Qs,C.isNumber=qs,C.isObject=Ps,C.isObjectLike=Ds,C.isPlainObject=Us,C.isRegExp=Gd, +C.isSafeInteger=Vs,C.isSet=Wd,C.isString=Gs,C.isSymbol=Ws,C.isTypedArray=Jd,C.isUndefined=Js,C.isWeakMap=Xs,C.isWeakSet=Zs,C.join=Zr,C.kebabCase=gf,C.last=Kr,C.lastIndexOf=$r,C.lowerCase=bf,C.lowerFirst=vf,C.lt=Xd,C.lte=Zd,C.max=Sc,C.maxBy=_c,C.mean=Ic,C.meanBy=Tc,C.min=Bc,C.minBy=Oc,C.stubArray=vc,C.stubFalse=Ac,C.stubObject=wc,C.stubString=yc,C.stubTrue=xc,C.multiply=Lf,C.nth=ea,C.noConflict=pc,C.noop=mc,C.now=Od,C.pad=Yl,C.padEnd=Ql,C.padStart=Hl,C.parseInt=ql,C.random=Fl,C.reduce=Ga,C.reduceRight=Wa,C.repeat=Ul,C.replace=Vl,C.result=Cl,C.round=zf,C.runInContext=K,C.sample=Xa,C.size=$a,C.snakeCase=Af,C.some=es,C.sortedIndex=sa,C.sortedIndexBy=la,C.sortedIndexOf=ca,C.sortedLastIndex=ua,C.sortedLastIndexBy=da,C.sortedLastIndexOf=fa,C.startCase=wf,C.startsWith=Wl,C.subtract=Nf,C.sum=jc,C.sumBy=Rc,C.template=Jl,C.times=kc,C.toFinite=$s,C.toInteger=el,C.toLength=tl,C.toLower=Xl,C.toNumber=il,C.toSafeInteger=ol,C.toString=rl,C.toUpper=Zl,C.trim=Kl,C.trimEnd=$l,C.trimStart=ec,C.truncate=tc,C.unescape=ic,C.uniqueId=Ec,C.upperCase=yf,C.upperFirst=xf,C.each=Qa,C.eachRight=Ha,C.first=Wr,fc(C,function(){var e={};return Gi(C,function(t,i){Jc.call(C.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),C.VERSION=ee,o(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){C[e].placeholder=C}),o(["drop","take"],function(e,t){It.prototype[e]=function(i){var n=this.__filtered__;if(n&&!t)return new It(this);i=i===$?1:wu(el(i),0);var o=this.clone();return n?o.__takeCount__=yu(i,o.__takeCount__):o.__views__.push({size:yu(i,Ie),type:e+(o.__dir__<0?"Right":"")}),o},It.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),o(["filter","map","takeWhile"],function(e,t){var i=t+1,n=i==ye||i==ke;It.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:or(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}}),o(["head","last"],function(e,t){var i="take"+(t?"Right":"");It.prototype[e]=function(){return this[i](1).value()[0]}}),o(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");It.prototype[e]=function(){return this.__filtered__?new It(this):this[i](1)}}),It.prototype.compact=function(){return this.filter(lc)},It.prototype.find=function(e){return this.filter(e).head()},It.prototype.findLast=function(e){return this.reverse().find(e)},It.prototype.invokeMap=Vn(function(e,t){return"function"==typeof e?new It(this):this.map(function(i){return gn(i,e,t)})}),It.prototype.reject=function(e){return this.filter(cs(or(e)))},It.prototype.slice=function(e,t){e=el(e);var i=this;return i.__filtered__&&(e>0||t<0)?new It(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==$&&(t=el(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},It.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},It.prototype.toArray=function(){return this.take(Ie)},Gi(It.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=C[n?"take"+("last"==t?"Right":""):t],r=n||/^find/.test(t);o&&(C.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,s=t instanceof It,l=a[0],c=s||Qd(t),u=function(e){var t=o.apply(C,d([e],a));return n&&f?t[0]:t};c&&i&&"function"==typeof l&&1!=l.length&&(s=c=!1);var f=this.__chain__,p=!!this.__actions__.length,m=r&&!f,h=s&&!p;if(!r&&c){t=h?t:new It(this);var g=e.apply(t,a);return g.__actions__.push({func:Ta,args:[u],thisArg:$}),new X(g,f)}return m&&h?e.apply(this,a):(g=this.thru(u),m?n?g.value()[0]:g.value():g)})}),o(["pop","push","shift","sort","splice","unshift"],function(e){var t=Hc[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);C.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Qd(o)?o:[],e)}return this[i](function(i){return t.apply(Qd(i)?i:[],e)})}}),Gi(It.prototype,function(e,t){var i=C[t];if(i){var n=i.name+"",o=Mu[n]||(Mu[n]=[]);o.push({name:t,func:i})}}),Mu[zo($,ae).name]=[{name:"wrapper",func:$}],It.prototype.clone=Yt,It.prototype.reverse=Qt,It.prototype.value=Ht,C.prototype.at=xd,C.prototype.chain=Ba,C.prototype.commit=Oa,C.prototype.next=ja,C.prototype.plant=Ma,C.prototype.reverse=Fa,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=Pa,C.prototype.first=C.prototype.head,ru&&(C.prototype[ru]=Ra),C}var $,ee="4.15.0",te=200,ie="Expected a function",ne="__lodash_hash_undefined__",oe="__lodash_placeholder__",re=1,ae=2,se=4,le=8,ce=16,ue=32,de=64,fe=128,pe=256,me=512,he=1,ge=2,be=30,ve="...",Ae=150,we=16,ye=1,xe=2,ke=3,Ce=1/0,Ee=9007199254740991,Se=1.7976931348623157e308,_e=NaN,Ie=4294967295,Te=Ie-1,Be=Ie>>>1,Oe=[["ary",fe],["bind",re],["bindKey",ae],["curry",le],["curryRight",ce],["flip",me],["partial",ue],["partialRight",de],["rearg",pe]],je="[object Arguments]",Re="[object Array]",Me="[object Boolean]",Fe="[object Date]",Pe="[object Error]",De="[object Function]",Le="[object GeneratorFunction]",ze="[object Map]",Ne="[object Number]",Ye="[object Object]",Qe="[object Promise]",He="[object RegExp]",qe="[object Set]",Ue="[object String]",Ve="[object Symbol]",Ge="[object WeakMap]",We="[object WeakSet]",Je="[object ArrayBuffer]",Xe="[object DataView]",Ze="[object Float32Array]",Ke="[object Float64Array]",$e="[object Int8Array]",et="[object Int16Array]",tt="[object Int32Array]",it="[object Uint8Array]",nt="[object Uint8ClampedArray]",ot="[object Uint16Array]",rt="[object Uint32Array]",at=/\b__p \+= '';/g,st=/\b(__p \+=) '' \+/g,lt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ct=/&(?:amp|lt|gt|quot|#39|#96);/g,ut=/[&<>"'`]/g,dt=RegExp(ct.source),ft=RegExp(ut.source),pt=/<%-([\s\S]+?)%>/g,mt=/<%([\s\S]+?)%>/g,ht=/<%=([\s\S]+?)%>/g,gt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bt=/^\w*$/,vt=/^\./,At=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wt=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(wt.source),xt=/^\s+|\s+$/g,kt=/^\s+/,Ct=/\s+$/,Et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,St=/\{\n\/\* \[wrapped with (.+)\] \*/,_t=/,? & /,It=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tt=/\\(\\)?/g,Bt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ot=/\w*$/,jt=/^0x/i,Rt=/^[-+]0x[0-9a-f]+$/i,Mt=/^0b[01]+$/i,Ft=/^\[object .+?Constructor\]$/,Pt=/^0o[0-7]+$/i,Dt=/^(?:0|[1-9]\d*)$/,Lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zt=/($^)/,Nt=/['\n\r\u2028\u2029\\]/g,Yt="\\ud800-\\udfff",Qt="\\u0300-\\u036f\\ufe20-\\ufe23",Ht="\\u20d0-\\u20f0",qt="\\u2700-\\u27bf",Ut="a-z\\xdf-\\xf6\\xf8-\\xff",Vt="\\xac\\xb1\\xd7\\xf7",Gt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wt="\\u2000-\\u206f",Jt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xt="A-Z\\xc0-\\xd6\\xd8-\\xde",Zt="\\ufe0e\\ufe0f",Kt=Vt+Gt+Wt+Jt,$t="['’]",ei="["+Yt+"]",ti="["+Kt+"]",ii="["+Qt+Ht+"]",ni="\\d+",oi="["+qt+"]",ri="["+Ut+"]",ai="[^"+Yt+Kt+ni+qt+Ut+Xt+"]",si="\\ud83c[\\udffb-\\udfff]",li="(?:"+ii+"|"+si+")",ci="[^"+Yt+"]",ui="(?:\\ud83c[\\udde6-\\uddff]){2}",di="[\\ud800-\\udbff][\\udc00-\\udfff]",fi="["+Xt+"]",pi="\\u200d",mi="(?:"+ri+"|"+ai+")",hi="(?:"+fi+"|"+ai+")",gi="(?:"+$t+"(?:d|ll|m|re|s|t|ve))?",bi="(?:"+$t+"(?:D|LL|M|RE|S|T|VE))?",vi=li+"?",Ai="["+Zt+"]?",wi="(?:"+pi+"(?:"+[ci,ui,di].join("|")+")"+Ai+vi+")*",yi=Ai+vi+wi,xi="(?:"+[oi,ui,di].join("|")+")"+yi,ki="(?:"+[ci+ii+"?",ii,ui,di,ei].join("|")+")",Ci=RegExp($t,"g"),Ei=RegExp(ii,"g"),Si=RegExp(si+"(?="+si+")|"+ki+yi,"g"),_i=RegExp([fi+"?"+ri+"+"+gi+"(?="+[ti,fi,"$"].join("|")+")",hi+"+"+bi+"(?="+[ti,fi+mi,"$"].join("|")+")",fi+"?"+mi+"+"+gi,fi+"+"+bi,ni,xi].join("|"),"g"),Ii=RegExp("["+pi+Yt+Qt+Ht+Zt+"]"),Ti=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bi=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Oi=-1,ji={};ji[Ze]=ji[Ke]=ji[$e]=ji[et]=ji[tt]=ji[it]=ji[nt]=ji[ot]=ji[rt]=!0,ji[je]=ji[Re]=ji[Je]=ji[Me]=ji[Xe]=ji[Fe]=ji[Pe]=ji[De]=ji[ze]=ji[Ne]=ji[Ye]=ji[He]=ji[qe]=ji[Ue]=ji[Ge]=!1;var Ri={};Ri[je]=Ri[Re]=Ri[Je]=Ri[Xe]=Ri[Me]=Ri[Fe]=Ri[Ze]=Ri[Ke]=Ri[$e]=Ri[et]=Ri[tt]=Ri[ze]=Ri[Ne]=Ri[Ye]=Ri[He]=Ri[qe]=Ri[Ue]=Ri[Ve]=Ri[it]=Ri[nt]=Ri[ot]=Ri[rt]=!0,Ri[Pe]=Ri[De]=Ri[Ge]=!1;var Mi={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},Fi={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Pi={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Di={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Li=parseFloat,zi=parseInt,Ni="object"==typeof global&&global&&global.Object===Object&&global,Yi="object"==typeof self&&self&&self.Object===Object&&self,Qi=Ni||Yi||Function("return this")(),Hi="object"==typeof exports&&exports&&!exports.nodeType&&exports,qi=Hi&&"object"==typeof module&&module&&!module.nodeType&&module,Ui=qi&&qi.exports===Hi,Vi=Ui&&Ni.process,Gi=function(){try{return Vi&&Vi.binding("util")}catch(e){}}(),Wi=Gi&&Gi.isArrayBuffer,Ji=Gi&&Gi.isDate,Xi=Gi&&Gi.isMap,Zi=Gi&&Gi.isRegExp,Ki=Gi&&Gi.isSet,$i=Gi&&Gi.isTypedArray,en=k("length"),tn=C(Mi),nn=C(Fi),on=C(Pi),rn=K();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Qi._=rn,define("lodash",[],function(){return rn})):qi?((qi.exports=rn)._=rn,Hi._=rn):Qi._=rn}.call(this),function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function i(e){var t=!!e&&"length"in e&&e.length,i=pe.type(e);return"function"!==i&&!pe.isWindow(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function n(e,t,i){if(pe.isFunction(t))return pe.grep(e,function(e,n){return!!t.call(e,n,e)!==i});if(t.nodeType)return pe.grep(e,function(e){return e===t!==i});if("string"==typeof t){if(ke.test(t))return pe.filter(t,e,i);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inArray(e,t)>-1!==i})}function o(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function r(e){var t={};return pe.each(e.match(Te)||[],function(e,i){t[i]=!0}),t}function a(){ne.addEventListener?(ne.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(ne.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(ne.addEventListener||"load"===e.event.type||"complete"===ne.readyState)&&(a(),pe.ready())}function l(e,t,i){if(void 0===i&&1===e.nodeType){var n="data-"+t.replace(Me,"-$1").toLowerCase();if(i=e.getAttribute(n),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:Re.test(i)?pe.parseJSON(i):i)}catch(e){}pe.data(e,t,i)}else i=void 0}return i}function c(e){var t;for(t in e)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(e,t,i,n){if(je(e)){var o,r,a=pe.expando,s=e.nodeType,l=s?pe.cache:e,c=s?e[a]:e[a]&&a;if(c&&l[c]&&(n||l[c].data)||void 0!==i||"string"!=typeof t)return c||(c=s?e[a]=ie.pop()||pe.guid++:a),l[c]||(l[c]=s?{}:{toJSON:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(n?l[c]=pe.extend(l[c],t):l[c].data=pe.extend(l[c].data,t)),r=l[c],n||(r.data||(r.data={}),r=r.data),void 0!==i&&(r[pe.camelCase(t)]=i),"string"==typeof t?(o=r[t],null==o&&(o=r[pe.camelCase(t)])):o=r,o}}function d(e,t,i){if(je(e)){var n,o,r=e.nodeType,a=r?pe.cache:e,s=r?e[pe.expando]:pe.expando;if(a[s]){if(t&&(n=i?a[s]:a[s].data)){pe.isArray(t)?t=t.concat(pe.map(t,pe.camelCase)):t in n?t=[t]:(t=pe.camelCase(t),t=t in n?[t]:t.split(" ")),o=t.length;for(;o--;)delete n[t[o]];if(i?!c(n):!pe.isEmptyObject(n))return}(i||(delete a[s].data,c(a[s])))&&(r?pe.cleanData([e],!0):de.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function f(e,t,i,n){var o,r=1,a=20,s=n?function(){return n.cur()}:function(){return pe.css(e,t,"")},l=s(),c=i&&i[3]||(pe.cssNumber[t]?"":"px"),u=(pe.cssNumber[t]||"px"!==c&&+l)&&Pe.exec(pe.css(e,t));if(u&&u[3]!==c){c=c||u[3],i=i||[],u=+l||1;do r=r||".5",u/=r,pe.style(e,t,u+c);while(r!==(r=s()/l)&&1!==r&&--a)}return i&&(u=+u||+l||0,o=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=o)),o}function p(e){var t=qe.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}function m(e,t){var i,n,o=0,r="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],i=e.childNodes||e;null!=(n=i[o]);o++)!t||pe.nodeName(n,t)?r.push(n):pe.merge(r,m(n,t));return void 0===t||t&&pe.nodeName(e,t)?pe.merge([e],r):r}function h(e,t){for(var i,n=0;null!=(i=e[n]);n++)pe._data(i,"globalEval",!t||pe._data(t[n],"globalEval"))}function g(e){Ne.test(e.type)&&(e.defaultChecked=e.checked)}function b(e,t,i,n,o){for(var r,a,s,l,c,u,d,f=e.length,b=p(t),v=[],A=0;A"!==d[1]||Ge.test(a)?0:l:l.firstChild,r=a&&a.childNodes.length;r--;)pe.nodeName(u=a.childNodes[r],"tbody")&&!u.childNodes.length&&a.removeChild(u);for(pe.merge(v,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=b.lastChild}else v.push(t.createTextNode(a));for(l&&b.removeChild(l),de.appendChecked||pe.grep(m(v,"input"),g),A=0;a=v[A++];)if(n&&pe.inArray(a,n)>-1)o&&o.push(a);else if(s=pe.contains(a.ownerDocument,a),l=m(b.appendChild(a),"script"),s&&h(l),i)for(r=0;a=l[r++];)Qe.test(a.type||"")&&i.push(a);return l=null,b}function v(){return!0}function A(){return!1}function w(){try{return ne.activeElement}catch(e){}}function y(e,t,i,n,o,r){var a,s;if("object"==typeof t){"string"!=typeof i&&(n=n||i,i=void 0);for(s in t)y(e,s,i,n,t[s],r);return e}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),o===!1)o=A;else if(!o)return e;return 1===r&&(a=o,o=function(e){return pe().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,o,n,i)})}function x(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function k(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function C(e){var t=ot.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function E(e,t){if(1===t.nodeType&&pe.hasData(e)){var i,n,o,r=pe._data(e),a=pe._data(t,r),s=r.events;if(s){delete a.handle,a.events={};for(i in s)for(n=0,o=s[i].length;n1&&"string"==typeof p&&!de.checkClone&&nt.test(p))return e.each(function(o){var r=e.eq(o);h&&(t[0]=p.call(this,o,r.html())),_(r,t,i,n)});if(d&&(c=b(t,e[0].ownerDocument,!1,e,n),o=c.firstChild,1===c.childNodes.length&&(c=o),o||n)){for(s=pe.map(m(c,"script"),k),a=s.length;u")).appendTo(t.documentElement),t=(lt[0].contentWindow||lt[0].contentDocument).document,t.write(),t.close(),i=T(e,t),lt.detach()),ct[e]=i),i}function O(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function j(e){if(e in Ct)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),i=kt.length;i--;)if(e=kt[i]+t,e in Ct)return e}function R(e,t){for(var i,n,o,r=[],a=0,s=e.length;a=0&&i=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodeType||pe.isWindow(e))return!1;try{if(e.constructor&&!ue.call(e,"constructor")&&!ue.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!de.ownFirst)for(t in e)return ue.call(e,t);for(t in e);return void 0===t||ue.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?le[ce.call(e)]||"object":typeof e},globalEval:function(t){t&&pe.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(he,"ms-").replace(ge,be)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,o=0;if(i(e))for(n=e.length;ox.cacheLength&&delete e[t.shift()],e[i+" "]=n}var t=[];return e}function n(e){return e[z]=!0,e}function o(e){var t=j.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var i=e.split("|"),n=i.length;n--;)x.attrHandle[i[n]]=t}function a(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||G)-(~e.sourceIndex||G);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function s(e){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===e}}function l(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function c(e){return n(function(t){return t=+t,n(function(i,n){for(var o,r=e([],i.length,t),a=r.length;a--;)i[o=r[a]]&&(i[o]=!(n[o]=i[o]))})})}function u(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function f(e){for(var t=0,i=e.length,n="";t1?function(t,i,n){for(var o=e.length;o--;)if(!e[o](t,i,n))return!1;return!0}:e[0]}function h(e,i,n){ +for(var o=0,r=i.length;o-1&&(n[c]=!(a[c]=d))}}else A=g(A===a?A.splice(m,A.length):A),r?r(null,a,A,l):K.apply(a,A)})}function v(e){for(var t,i,n,o=e.length,r=x.relative[e[0].type],a=r||x.relative[" "],s=r?1:0,l=p(function(e){return e===t},a,!0),c=p(function(e){return ee(t,e)>-1},a,!0),u=[function(e,i,n){var o=!r&&(n||i!==I)||((t=i).nodeType?l(e,i,n):c(e,i,n));return t=null,o}];s1&&m(u),s>1&&f(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),i,s0,r=e.length>0,a=function(n,a,s,l,c){var u,d,f,p=0,m="0",h=n&&[],b=[],v=I,A=n||r&&x.find.TAG("*",c),w=Y+=null==v?1:Math.random()||.1,y=A.length;for(c&&(I=a===j||a||c);m!==y&&null!=(u=A[m]);m++){if(r&&u){for(d=0,a||u.ownerDocument===j||(O(u),s=!M);f=e[d++];)if(f(u,a||j,s)){l.push(u);break}c&&(Y=w)}o&&((u=!f&&u)&&p--,n&&h.push(u))}if(p+=m,o&&m!==p){for(d=0;f=i[d++];)f(h,b,a,s);if(n){if(p>0)for(;m--;)h[m]||b[m]||(b[m]=X.call(l));b=g(b)}K.apply(l,b),c&&!n&&b.length>0&&p+i.length>1&&t.uniqueSort(l)}return c&&(Y=w,I=v),h};return o?n(a):a}var w,y,x,k,C,E,S,_,I,T,B,O,j,R,M,F,P,D,L,z="sizzle"+1*new Date,N=e.document,Y=0,Q=0,H=i(),q=i(),U=i(),V=function(e,t){return e===t&&(B=!0),0},G=1<<31,W={}.hasOwnProperty,J=[],X=J.pop,Z=J.push,K=J.push,$=J.slice,ee=function(e,t){for(var i=0,n=e.length;i+~]|"+ie+")"+ie+"*"),ue=new RegExp("="+ie+"*([^\\]'\"]*?)"+ie+"*\\]","g"),de=new RegExp(re),fe=new RegExp("^"+ne+"$"),pe={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},me=/^(?:input|select|textarea|button)$/i,he=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,Ae=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),ye=function(e,t,i){var n="0x"+t-65536;return n!==n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},xe=function(){O()};try{K.apply(J=$.call(N.childNodes),N.childNodes),J[N.childNodes.length].nodeType}catch(e){K={apply:J.length?function(e,t){Z.apply(e,$.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}y=t.support={},C=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},O=t.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:N;return n!==j&&9===n.nodeType&&n.documentElement?(j=n,R=j.documentElement,M=!C(j),(i=j.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",xe,!1):i.attachEvent&&i.attachEvent("onunload",xe)),y.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),y.getElementsByTagName=o(function(e){return e.appendChild(j.createComment("")),!e.getElementsByTagName("*").length}),y.getElementsByClassName=ge.test(j.getElementsByClassName),y.getById=o(function(e){return R.appendChild(e).id=z,!j.getElementsByName||!j.getElementsByName(z).length}),y.getById?(x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&M){var i=t.getElementById(e);return i?[i]:[]}},x.filter.ID=function(e){var t=e.replace(we,ye);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(we,ye);return function(e){var i="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),x.find.TAG=y.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):y.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;i=r[o++];)1===i.nodeType&&n.push(i);return n}return r},x.find.CLASS=y.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&M)return t.getElementsByClassName(e)},P=[],F=[],(y.qsa=ge.test(j.querySelectorAll))&&(o(function(e){R.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ie+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+z+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+z+"+*").length||F.push(".#.+[+~]")}),o(function(e){var t=j.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ie+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(y.matchesSelector=ge.test(D=R.matches||R.webkitMatchesSelector||R.mozMatchesSelector||R.oMatchesSelector||R.msMatchesSelector))&&o(function(e){y.disconnectedMatch=D.call(e,"div"),D.call(e,"[s!='']:x"),P.push("!=",re)}),F=F.length&&new RegExp(F.join("|")),P=P.length&&new RegExp(P.join("|")),t=ge.test(R.compareDocumentPosition),L=t||ge.test(R.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return B=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&i||!y.sortDetached&&t.compareDocumentPosition(e)===i?e===j||e.ownerDocument===N&&L(N,e)?-1:t===j||t.ownerDocument===N&&L(N,t)?1:T?ee(T,e)-ee(T,t):0:4&i?-1:1)}:function(e,t){if(e===t)return B=!0,0;var i,n=0,o=e.parentNode,r=t.parentNode,s=[e],l=[t];if(!o||!r)return e===j?-1:t===j?1:o?-1:r?1:T?ee(T,e)-ee(T,t):0;if(o===r)return a(e,t);for(i=e;i=i.parentNode;)s.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;s[n]===l[n];)n++;return n?a(s[n],l[n]):s[n]===N?-1:l[n]===N?1:0},j):j},t.matches=function(e,i){return t(e,null,null,i)},t.matchesSelector=function(e,i){if((e.ownerDocument||e)!==j&&O(e),i=i.replace(ue,"='$1']"),y.matchesSelector&&M&&!U[i+" "]&&(!P||!P.test(i))&&(!F||!F.test(i)))try{var n=D.call(e,i);if(n||y.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return t(i,j,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==j&&O(e),L(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==j&&O(e);var i=x.attrHandle[t.toLowerCase()],n=i&&W.call(x.attrHandle,t.toLowerCase())?i(e,t,!M):void 0;return void 0!==n?n:y.attributes||!M?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,i=[],n=0,o=0;if(B=!y.detectDuplicates,T=!y.sortStable&&e.slice(0),e.sort(V),B){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)e.splice(i[n],1)}return T=null,e},k=t.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=k(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=k(t);return i},x=t.selectors={cacheLength:50,createPseudo:n,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(we,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&de.test(i)&&(t=E(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&H(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(o){var r=t.attr(o,e);return null==r?"!="===i:!i||(r+="","="===i?r===n:"!="===i?r!==n:"^="===i?n&&0===r.indexOf(n):"*="===i?n&&r.indexOf(n)>-1:"$="===i?n&&r.slice(-n.length)===n:"~="===i?(" "+r.replace(ae," ")+" ").indexOf(n)>-1:"|="===i&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,i,n,o){var r="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===o?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,f,p,m,h=r!==a?"nextSibling":"previousSibling",g=t.parentNode,b=s&&t.nodeName.toLowerCase(),v=!l&&!s,A=!1;if(g){if(r){for(;h;){for(f=t;f=f[h];)if(s?f.nodeName.toLowerCase()===b:1===f.nodeType)return!1;m=h="only"===e&&!m&&"nextSibling"}return!0}if(m=[a?g.firstChild:g.lastChild],a&&v){for(f=g,d=f[z]||(f[z]={}),u=d[f.uniqueID]||(d[f.uniqueID]={}),c=u[e]||[],p=c[0]===Y&&c[1],A=p&&c[2],f=p&&g.childNodes[p];f=++p&&f&&f[h]||(A=p=0)||m.pop();)if(1===f.nodeType&&++A&&f===t){u[e]=[Y,p,A];break}}else if(v&&(f=t,d=f[z]||(f[z]={}),u=d[f.uniqueID]||(d[f.uniqueID]={}),c=u[e]||[],p=c[0]===Y&&c[1],A=p),A===!1)for(;(f=++p&&f&&f[h]||(A=p=0)||m.pop())&&((s?f.nodeName.toLowerCase()!==b:1!==f.nodeType)||!++A||(v&&(d=f[z]||(f[z]={}),u=d[f.uniqueID]||(d[f.uniqueID]={}),u[e]=[Y,A]),f!==t)););return A-=o,A===n||A%n===0&&A/n>=0}}},PSEUDO:function(e,i){var o,r=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[z]?r(i):r.length>1?(o=[e,e,"",i],x.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,o=r(e,i),a=o.length;a--;)n=ee(e,o[a]),e[n]=!(t[n]=o[a])}):function(e){return r(e,0,o)}):r}},pseudos:{not:n(function(e){var t=[],i=[],o=S(e.replace(se,"$1"));return o[z]?n(function(e,t,i,n){for(var r,a=o(e,null,n,[]),s=e.length;s--;)(r=a[s])&&(e[s]=!(t[s]=r))}):function(e,n,r){return t[0]=e,o(t,null,r,i),t[0]=null,!i.pop()}}),has:n(function(e){return function(i){return t(e,i).length>0}}),contains:n(function(e){return e=e.replace(we,ye),function(t){return(t.textContent||t.innerText||k(t)).indexOf(e)>-1}}),lang:n(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,ye).toLowerCase(),function(t){var i;do if(i=M?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===e||0===i.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===R},focus:function(e){return e===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return he.test(e.nodeName)},input:function(e){return me.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,i){return[i<0?i+t:i]}),even:c(function(e,t){for(var i=0;i=0;)e.push(n);return e}),gt:c(function(e,t,i){for(var n=i<0?i+t:i;++n2&&"ID"===(a=r[0]).type&&y.getById&&9===t.nodeType&&M&&x.relative[r[1].type]){if(t=(x.find.ID(a.matches[0].replace(we,ye),t)||[])[0],!t)return i;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=pe.needsContext.test(e)?0:r.length;o--&&(a=r[o],!x.relative[s=a.type]);)if((l=x.find[s])&&(n=l(a.matches[0].replace(we,ye),ve.test(r[0].type)&&u(t.parentNode)||t))){if(r.splice(o,1),e=n.length&&f(r),!e)return K.apply(i,n),i;break}}return(c||S(e,d))(n,t,!M,i,!t||ve.test(e)&&u(t.parentNode)||t),i},y.sortStable=z.split("").sort(V).join("")===z,y.detectDuplicates=!!B,O(),y.sortDetached=o(function(e){return 1&e.compareDocumentPosition(j.createElement("div"))}),o(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||r("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),y.attributes&&o(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||r("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||r(te,function(e,t,i){var n;if(!i)return e[t]===!0?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),t}(e);pe.find=ve,pe.expr=ve.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=ve.uniqueSort,pe.text=ve.getText,pe.isXMLDoc=ve.isXML,pe.contains=ve.contains;var Ae=function(e,t,i){for(var n=[],o=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&pe(e).is(i))break;n.push(e)}return n},we=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},ye=pe.expr.match.needsContext,xe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ke=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?pe.find.matchesSelector(n,e)?[n]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,i=[],n=this,o=n.length;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;t1?pe.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(n(this,e||[],!1))},not:function(e){return this.pushStack(n(this,e||[],!0))},is:function(e){return!!n(this,"string"==typeof e&&ye.test(e)?pe(e):e||[],!1).length}});var Ce,Ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Se=pe.fn.init=function(e,t,i){var n,o;if(!e)return this;if(i=i||Ce,"string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Ee.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),xe.test(n[1])&&pe.isPlainObject(t))for(n in t)pe.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(o=ne.getElementById(n[2]),o&&o.parentNode){if(o.id!==n[2])return Ce.find(e);this.length=1,this[0]=o}return this.context=ne,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?"undefined"!=typeof i.ready?i.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))};Se.prototype=pe.fn,Ce=pe(ne);var _e=/^(?:parents|prev(?:Until|All))/,Ie={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,i=pe(e,this),n=i.length;return this.filter(function(){for(t=0;t-1:1===i.nodeType&&pe.find.matchesSelector(i,e))){r.push(i);break}return this.pushStack(r.length>1?pe.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?pe.inArray(this[0],pe(e)):pe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ae(e,"parentNode")},parentsUntil:function(e,t,i){return Ae(e,"parentNode",i)},next:function(e){return o(e,"nextSibling")},prev:function(e){return o(e,"previousSibling")},nextAll:function(e){return Ae(e,"nextSibling")},prevAll:function(e){return Ae(e,"previousSibling")},nextUntil:function(e,t,i){return Ae(e,"nextSibling",i)},prevUntil:function(e,t,i){return Ae(e,"previousSibling",i)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return pe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:pe.merge([],e.childNodes)}},function(e,t){pe.fn[e]=function(i,n){var o=pe.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=pe.filter(n,o)),this.length>1&&(Ie[e]||(o=pe.uniqueSort(o)),_e.test(e)&&(o=o.reverse())),this.pushStack(o)}});var Te=/\S+/g;pe.Callbacks=function(e){e="string"==typeof e?r(e):pe.extend({},e);var t,i,n,o,a=[],s=[],l=-1,c=function(){for(o=e.once,n=t=!0;s.length;l=-1)for(i=s.shift();++l-1;)a.splice(i,1),i<=l&&l--}),this},has:function(e){return e?pe.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=i="",this},disabled:function(){return!a},lock:function(){return o=!0,i||u.disable(),this},locked:function(){return!!o},fireWith:function(e,i){return o||(i=i||[],i=[e,i.slice?i.slice():i],s.push(i),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},pe.extend({Deferred:function(e){var t=[["resolve","done",pe.Callbacks("once memory"),"resolved"],["reject","fail",pe.Callbacks("once memory"),"rejected"],["notify","progress",pe.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.Deferred(function(i){pe.each(t,function(t,r){var a=pe.isFunction(e[t])&&e[t];o[r[1]](function(){var e=a&&a.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[r[0]+"With"](this===n?i.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,n):n}},o={};return n.pipe=n.then,pe.each(t,function(e,r){var a=r[2],s=r[3];n[r[1]]=a.add,s&&a.add(function(){i=s},t[1^e][2].disable,t[2][2].lock),o[r[0]]=function(){return o[r[0]+"With"](this===o?n:this,arguments),this},o[r[0]+"With"]=a.fireWith}),n.promise(o),e&&e.call(o,o),o},when:function(e){var t,i,n,o=0,r=oe.call(arguments),a=r.length,s=1!==a||e&&pe.isFunction(e.promise)?a:0,l=1===s?e:pe.Deferred(),c=function(e,i,n){return function(o){i[e]=this,n[e]=arguments.length>1?oe.call(arguments):o,n===t?l.notifyWith(i,n):--s||l.resolveWith(i,n)}};if(a>1)for(t=new Array(a),i=new Array(a),n=new Array(a);o0||(Be.resolveWith(ne,[pe]),pe.fn.triggerHandler&&(pe(ne).triggerHandler("ready"),pe(ne).off("ready"))))}}),pe.ready.promise=function(t){if(!Be)if(Be=pe.Deferred(),"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll)e.setTimeout(pe.ready);else if(ne.addEventListener)ne.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s);else{ne.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var i=!1;try{i=null==e.frameElement&&ne.documentElement}catch(e){}i&&i.doScroll&&!function t(){if(!pe.isReady){try{i.doScroll("left")}catch(i){return e.setTimeout(t,50)}a(),pe.ready()}}()}return Be.promise(t)},pe.ready.promise();var Oe;for(Oe in pe(de))break;de.ownFirst="0"===Oe,de.inlineBlockNeedsLayout=!1,pe(function(){var e,t,i,n;i=ne.getElementsByTagName("body")[0],i&&i.style&&(t=ne.createElement("div"),n=ne.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",de.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(i.style.zoom=1)),i.removeChild(n))}),function(){var e=ne.createElement("div");de.deleteExpando=!0;try{delete e.test}catch(e){de.deleteExpando=!1}e=null}();var je=function(e){var t=pe.noData[(e.nodeName+" ").toLowerCase()],i=+e.nodeType||1;return(1===i||9===i)&&(!t||t!==!0&&e.getAttribute("classid")===t)},Re=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Me=/([A-Z])/g;pe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?pe.cache[e[pe.expando]]:e[pe.expando],!!e&&!c(e)},data:function(e,t,i){return u(e,t,i)},removeData:function(e,t){return d(e,t)},_data:function(e,t,i){return u(e,t,i,!0)},_removeData:function(e,t){return d(e,t,!0)}}),pe.fn.extend({data:function(e,t){var i,n,o,r=this[0],a=r&&r.attributes;if(void 0===e){if(this.length&&(o=pe.data(r),1===r.nodeType&&!pe._data(r,"parsedAttrs"))){for(i=a.length;i--;)a[i]&&(n=a[i].name,0===n.indexOf("data-")&&(n=pe.camelCase(n.slice(5)),l(r,n,o[n])));pe._data(r,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){pe.data(this,e)}):arguments.length>1?this.each(function(){pe.data(this,e,t)}):r?l(r,e,pe.data(r,e)):void 0},removeData:function(e){return this.each(function(){pe.removeData(this,e)})}}),pe.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=pe._data(e,t),i&&(!n||pe.isArray(i)?n=pe._data(e,t,pe.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=pe.queue(e,t),n=i.length,o=i.shift(),r=pe._queueHooks(e,t),a=function(){pe.dequeue(e,t)};"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===t&&i.unshift("inprogress"),delete r.stop,o.call(e,a,r)),!n&&r&&r.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return pe._data(e,i)||pe._data(e,i,{empty:pe.Callbacks("once memory").add(function(){pe._removeData(e,t+"queue"),pe._removeData(e,i)})})}}),pe.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length
    a",de.leadingWhitespace=3===e.firstChild.nodeType,de.tbody=!e.getElementsByTagName("tbody").length,de.htmlSerialize=!!e.getElementsByTagName("link").length,de.html5Clone="<:nav>"!==ne.createElement("nav").cloneNode(!0).outerHTML,i.type="checkbox",i.checked=!0,t.appendChild(i),de.appendChecked=i.checked,e.innerHTML="",de.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),i=ne.createElement("input"),i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),de.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,de.noCloneEvent=!!e.addEventListener,e[pe.expando]=1,de.attributes=!e.getAttribute(pe.expando)}();var Ue={option:[1,""],legend:[1,"
    ","
    "],area:[1,"",""],param:[1,"",""],thead:[1,"","
    "],tr:[2,"","
    "],col:[2,"","
    "],td:[3,"","
    "],_default:de.htmlSerialize?[0,"",""]:[1,"X
    ","
    "]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var Ve=/<|&#?\w+;/,Ge=/-1&&(m=p.split("."),p=m.shift(),m.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[pe.expando]?t:new pe.Event(p,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:pe.makeArray(i,[t]),c=pe.event.special[p]||{},o||!c.trigger||c.trigger.apply(n,i)!==!1)){if(!o&&!c.noBubble&&!pe.isWindow(n)){ +for(l=c.delegateType||p,Ze.test(l+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),u=s;u===(n.ownerDocument||ne)&&f.push(u.defaultView||u.parentWindow||e)}for(d=0;(s=f[d++])&&!t.isPropagationStopped();)t.type=d>1?l:c.bindType||p,r=(pe._data(s,"events")||{})[t.type]&&pe._data(s,"handle"),r&&r.apply(s,i),r=a&&s[a],r&&r.apply&&je(s)&&(t.result=r.apply(s,i),t.result===!1&&t.preventDefault());if(t.type=p,!o&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(f.pop(),i)===!1)&&je(n)&&a&&n[p]&&!pe.isWindow(n)){u=n[a],u&&(n[a]=null),pe.event.triggered=p;try{n[p]()}catch(e){}pe.event.triggered=void 0,u&&(n[a]=u)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,i,n,o,r,a=[],s=oe.call(arguments),l=(pe._data(this,"events")||{})[e.type]||[],c=pe.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(a=pe.event.handlers.call(this,e,l),t=0;(o=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,i=0;(r=o.handlers[i++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(r.namespace)||(e.handleObj=r,e.data=r.data,n=((pe.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,o,r,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(n=[],i=0;i-1:pe.find(o,this,null,[l]).length),n[o]&&n.push(r);n.length&&a.push({elem:l,handlers:n})}return s]","i"),tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,it=/\s*$/g,at=p(ne),st=at.appendChild(ne.createElement("div"));pe.extend({htmlPrefilter:function(e){return e.replace(tt,"<$1>")},clone:function(e,t,i){var n,o,r,a,s,l=pe.contains(e.ownerDocument,e);if(de.html5Clone||pe.isXMLDoc(e)||!et.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(st.innerHTML=e.outerHTML,st.removeChild(r=st.firstChild)),!(de.noCloneEvent&&de.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(n=m(r),s=m(e),a=0;null!=(o=s[a]);++a)n[a]&&S(o,n[a]);if(t)if(i)for(s=s||m(e),n=n||m(r),a=0;null!=(o=s[a]);a++)E(o,n[a]);else E(e,r);return n=m(r,"script"),n.length>0&&h(n,!l&&m(e,"script")),n=s=o=null,r},cleanData:function(e,t){for(var i,n,o,r,a=0,s=pe.expando,l=pe.cache,c=de.attributes,u=pe.event.special;null!=(i=e[a]);a++)if((t||je(i))&&(o=i[s],r=o&&l[o])){if(r.events)for(n in r.events)u[n]?pe.event.remove(i,n):pe.removeEvent(i,n,r.handle);l[o]&&(delete l[o],c||"undefined"==typeof i.removeAttribute?i[s]=void 0:i.removeAttribute(s),ie.push(o))}}}),pe.fn.extend({domManip:_,detach:function(e){return I(this,e,!0)},remove:function(e){return I(this,e)},text:function(e){return ze(this,function(e){return void 0===e?pe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ne).createTextNode(e))},null,e,arguments.length)},append:function(){return _(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=x(this,e);t.appendChild(e)}})},prepend:function(){return _(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=x(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return _(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return _(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&pe.cleanData(m(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&pe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return ze(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace($e,""):void 0;if("string"==typeof e&&!it.test(e)&&(de.htmlSerialize||!et.test(e))&&(de.leadingWhitespace||!He.test(e))&&!Ue[(Ye.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;it",c.childNodes[0].style.borderCollapse="separate",t=c.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",r=0===t[0].offsetHeight,r&&(t[0].style.display="",t[1].style.display="none",r=0===t[0].offsetHeight)),d.removeChild(l)}var i,n,o,r,a,s,l=ne.createElement("div"),c=ne.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",de.opacity="0.5"===c.style.opacity,de.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",de.clearCloneStyle="content-box"===c.style.backgroundClip,l=ne.createElement("div"),l.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",l.appendChild(c),de.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,pe.extend(de,{reliableHiddenOffsets:function(){return null==i&&t(),r},boxSizingReliable:function(){return null==i&&t(),o},pixelMarginRight:function(){return null==i&&t(),n},pixelPosition:function(){return null==i&&t(),i},reliableMarginRight:function(){return null==i&&t(),a},reliableMarginLeft:function(){return null==i&&t(),s}}))}();var mt,ht,gt=/^(top|right|bottom|left)$/;e.getComputedStyle?(mt=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},ht=function(e,t,i){var n,o,r,a,s=e.style;return i=i||mt(e),a=i?i.getPropertyValue(t)||i[t]:void 0,""!==a&&void 0!==a||pe.contains(e.ownerDocument,e)||(a=pe.style(e,t)),i&&!de.pixelMarginRight()&&dt.test(a)&&ut.test(t)&&(n=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=i.width,s.width=n,s.minWidth=o,s.maxWidth=r),void 0===a?a:a+""}):pt.currentStyle&&(mt=function(e){return e.currentStyle},ht=function(e,t,i){var n,o,r,a,s=e.style;return i=i||mt(e),a=i?i[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),dt.test(a)&&!gt.test(t)&&(n=s.left,o=e.runtimeStyle,r=o&&o.left,r&&(o.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=n,r&&(o.left=r)),void 0===a?a:a+""||"auto"});var bt=/alpha\([^)]*\)/i,vt=/opacity\s*=\s*([^)]*)/i,At=/^(none|table(?!-c[ea]).+)/,wt=new RegExp("^("+Fe+")(.*)$","i"),yt={position:"absolute",visibility:"hidden",display:"block"},xt={letterSpacing:"0",fontWeight:"400"},kt=["Webkit","O","Moz","ms"],Ct=ne.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=ht(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:de.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,a,s=pe.camelCase(t),l=e.style;if(t=pe.cssProps[s]||(pe.cssProps[s]=j(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(o=a.get(e,!1,n))?o:l[t];if(r=typeof i,"string"===r&&(o=Pe.exec(i))&&o[1]&&(i=f(e,t,o),r="number"),null!=i&&i===i&&("number"===r&&(i+=o&&o[3]||(pe.cssNumber[s]?"":"px")),de.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(i=a.set(e,i,n)))))try{l[t]=i}catch(e){}}},css:function(e,t,i,n){var o,r,a,s=pe.camelCase(t);return t=pe.cssProps[s]||(pe.cssProps[s]=j(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],a&&"get"in a&&(r=a.get(e,!0,i)),void 0===r&&(r=ht(e,t,n)),"normal"===r&&t in xt&&(r=xt[t]),""===i||i?(o=parseFloat(r),i===!0||isFinite(o)?o||0:r):r}}),pe.each(["height","width"],function(e,t){pe.cssHooks[t]={get:function(e,i,n){if(i)return At.test(pe.css(e,"display"))&&0===e.offsetWidth?ft(e,yt,function(){return P(e,t,n)}):P(e,t,n)},set:function(e,i,n){var o=n&&mt(e);return M(e,i,n?F(e,t,n,de.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,o),o):0)}}}),de.opacity||(pe.cssHooks.opacity={get:function(e,t){return vt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var i=e.style,n=e.currentStyle,o=pe.isNumeric(t)?"alpha(opacity="+100*t+")":"",r=n&&n.filter||i.filter||"";i.zoom=1,(t>=1||""===t)&&""===pe.trim(r.replace(bt,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===t||n&&!n.filter)||(i.filter=bt.test(r)?r.replace(bt,o):r+" "+o)}}),pe.cssHooks.marginRight=O(de.reliableMarginRight,function(e,t){if(t)return ft(e,{display:"inline-block"},ht,[e,"marginRight"])}),pe.cssHooks.marginLeft=O(de.reliableMarginLeft,function(e,t){if(t)return(parseFloat(ht(e,"marginLeft"))||(pe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-ft(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),pe.each({margin:"",padding:"",border:"Width"},function(e,t){pe.cssHooks[e+t]={expand:function(i){for(var n=0,o={},r="string"==typeof i?i.split(" "):[i];n<4;n++)o[e+De[n]+t]=r[n]||r[n-2]||r[0];return o}},ut.test(e)||(pe.cssHooks[e+t].set=M)}),pe.fn.extend({css:function(e,t){return ze(this,function(e,t,i){var n,o,r={},a=0;if(pe.isArray(t)){for(n=mt(e),o=t.length;a1)},show:function(){return R(this,!0)},hide:function(){return R(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Le(this)?pe(this).show():pe(this).hide()})}}),pe.Tween=D,D.prototype={constructor:D,init:function(e,t,i,n,o,r){this.elem=e,this.prop=i,this.easing=o||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=r||(pe.cssNumber[i]?"":"px")},cur:function(){var e=D.propHooks[this.prop];return e&&e.get?e.get(this):D.propHooks._default.get(this)},run:function(e){var t,i=D.propHooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=D.prototype.init,pe.fx.step={};var Et,St,_t=/^(?:toggle|show|hide)$/,It=/queueHooks$/;pe.Animation=pe.extend(H,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return f(i.elem,e,Pe.exec(t),i),i}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(Te);for(var i,n=0,o=e.length;n
    a",e=i.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),i.appendChild(t),e=i.getElementsByTagName("a")[0],e.style.cssText="top:1px",de.getSetAttribute="t"!==i.className,de.style=/top/.test(e.getAttribute("style")),de.hrefNormalized="/a"===e.getAttribute("href"),de.checkOn=!!t.value,de.optSelected=o.selected,de.enctype=!!ne.createElement("form").enctype,n.disabled=!0,de.optDisabled=!o.disabled,t=ne.createElement("input"),t.setAttribute("value",""),de.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),de.radioValue="t"===t.value}();var Tt=/\r/g,Bt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,i,n,o=this[0];{if(arguments.length)return n=pe.isFunction(e),this.each(function(i){var o;1===this.nodeType&&(o=n?e.call(this,i,pe(this).val()):e,null==o?o="":"number"==typeof o?o+="":pe.isArray(o)&&(o=pe.map(o,function(e){return null==e?"":e+""})),t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))});if(o)return t=pe.valHooks[o.type]||pe.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(i=t.get(o,"value"))?i:(i=o.value,"string"==typeof i?i.replace(Tt,""):null==i?"":i)}}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(Bt," ")}},select:{get:function(e){for(var t,i,n=e.options,o=e.selectedIndex,r="select-one"===e.type||o<0,a=r?null:[],s=r?o+1:n.length,l=o<0?s:r?o:0;l-1)try{n.selected=i=!0}catch(e){n.scrollHeight}else n.selected=!1;return i||(e.selectedIndex=-1),o}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){if(pe.isArray(t))return e.checked=pe.inArray(pe(e).val(),t)>-1}},de.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Ot,jt,Rt=pe.expr.attrHandle,Mt=/^(?:checked|selected)$/i,Ft=de.getSetAttribute,Pt=de.input;pe.fn.extend({attr:function(e,t){return ze(this,pe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){pe.removeAttr(this,e)})}}),pe.extend({attr:function(e,t,i){var n,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return"undefined"==typeof e.getAttribute?pe.prop(e,t,i):(1===r&&pe.isXMLDoc(e)||(t=t.toLowerCase(),o=pe.attrHooks[t]||(pe.expr.match.bool.test(t)?jt:Ot)),void 0!==i?null===i?void pe.removeAttr(e,t):o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:(e.setAttribute(t,i+""),i):o&&"get"in o&&null!==(n=o.get(e,t))?n:(n=pe.find.attr(e,t),null==n?void 0:n))},attrHooks:{type:{set:function(e,t){if(!de.radioValue&&"radio"===t&&pe.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n,o=0,r=t&&t.match(Te);if(r&&1===e.nodeType)for(;i=r[o++];)n=pe.propFix[i]||i,pe.expr.match.bool.test(i)?Pt&&Ft||!Mt.test(i)?e[n]=!1:e[pe.camelCase("default-"+i)]=e[n]=!1:pe.attr(e,i,""),e.removeAttribute(Ft?i:n)}}),jt={set:function(e,t,i){return t===!1?pe.removeAttr(e,i):Pt&&Ft||!Mt.test(i)?e.setAttribute(!Ft&&pe.propFix[i]||i,i):e[pe.camelCase("default-"+i)]=e[i]=!0,i}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var i=Rt[t]||pe.find.attr;Pt&&Ft||!Mt.test(t)?Rt[t]=function(e,t,n){var o,r;return n||(r=Rt[t],Rt[t]=o,o=null!=i(e,t,n)?t.toLowerCase():null,Rt[t]=r),o}:Rt[t]=function(e,t,i){if(!i)return e[pe.camelCase("default-"+t)]?t.toLowerCase():null}}),Pt&&Ft||(pe.attrHooks.value={set:function(e,t,i){return pe.nodeName(e,"input")?void(e.defaultValue=t):Ot&&Ot.set(e,t,i)}}),Ft||(Ot={set:function(e,t,i){var n=e.getAttributeNode(i);if(n||e.setAttributeNode(n=e.ownerDocument.createAttribute(i)),n.value=t+="","value"===i||t===e.getAttribute(i))return t}},Rt.id=Rt.name=Rt.coords=function(e,t,i){var n;if(!i)return(n=e.getAttributeNode(t))&&""!==n.value?n.value:null},pe.valHooks.button={get:function(e,t){var i=e.getAttributeNode(t);if(i&&i.specified)return i.value},set:Ot.set},pe.attrHooks.contenteditable={set:function(e,t,i){Ot.set(e,""!==t&&t,i)}},pe.each(["width","height"],function(e,t){pe.attrHooks[t]={set:function(e,i){if(""===i)return e.setAttribute(t,"auto"),i}}})),de.style||(pe.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Dt=/^(?:input|select|textarea|button|object)$/i,Lt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return ze(this,pe.prop,e,t,arguments.length>1)},removeProp:function(e){return e=pe.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),pe.extend({prop:function(e,t,i){var n,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,o=pe.propHooks[t]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:e[t]=i:o&&"get"in o&&null!==(n=o.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseInt(t,10):Dt.test(e.nodeName)||Lt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),de.hrefNormalized||pe.each(["href","src"],function(e,t){pe.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),de.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pe.propFix[this.toLowerCase()]=this}),de.enctype||(pe.propFix.enctype="encoding");var zt=/[\t\r\n\f]/g;pe.fn.extend({addClass:function(e){var t,i,n,o,r,a,s,l=0;if(pe.isFunction(e))return this.each(function(t){pe(this).addClass(e.call(this,t,q(this)))});if("string"==typeof e&&e)for(t=e.match(Te)||[];i=this[l++];)if(o=q(i),n=1===i.nodeType&&(" "+o+" ").replace(zt," ")){for(a=0;r=t[a++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=pe.trim(n),o!==s&&pe.attr(i,"class",s)}return this},removeClass:function(e){var t,i,n,o,r,a,s,l=0;if(pe.isFunction(e))return this.each(function(t){pe(this).removeClass(e.call(this,t,q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Te)||[];i=this[l++];)if(o=q(i),n=1===i.nodeType&&(" "+o+" ").replace(zt," ")){for(a=0;r=t[a++];)for(;n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s=pe.trim(n),o!==s&&pe.attr(i,"class",s)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):pe.isFunction(e)?this.each(function(i){pe(this).toggleClass(e.call(this,i,q(this),t),t)}):this.each(function(){var t,n,o,r;if("string"===i)for(n=0,o=pe(this),r=e.match(Te)||[];t=r[n++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==i||(t=q(this),t&&pe._data(this,"__className__",t),pe.attr(this,"class",t||e===!1?"":pe._data(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+q(i)+" ").replace(zt," ").indexOf(t)>-1)return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Nt=e.location,Yt=pe.now(),Qt=/\?/,Ht=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pe.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var i,n=null,o=pe.trim(t+"");return o&&!pe.trim(o.replace(Ht,function(e,t,o,r){return i&&t&&(n=0),0===n?e:(i=o||t,n+=!r-!o,"")}))?Function("return "+o)():pe.error("Invalid JSON: "+t)},pe.parseXML=function(t){var i,n;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(n=new e.DOMParser,i=n.parseFromString(t,"text/xml")):(i=new e.ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(t))}catch(e){i=void 0}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+t),i};var qt=/#.*$/,Ut=/([?&])_=[^&]*/,Vt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Gt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Wt=/^(?:GET|HEAD)$/,Jt=/^\/\//,Xt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Zt={},Kt={},$t="*/".concat("*"),ei=Nt.href,ti=Xt.exec(ei.toLowerCase())||[];pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ei,type:"GET",isLocal:Gt.test(ti[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":pe.parseJSON,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?G(G(e,pe.ajaxSettings),t):G(pe.ajaxSettings,e)},ajaxPrefilter:U(Zt),ajaxTransport:U(Kt),ajax:function(t,i){function n(t,i,n,o){var r,d,v,A,y,k=i;2!==w&&(w=2,l&&e.clearTimeout(l), +u=void 0,s=o||"",x.readyState=t>0?4:0,r=t>=200&&t<300||304===t,n&&(A=W(f,x,n)),A=J(f,A,x,r),r?(f.ifModified&&(y=x.getResponseHeader("Last-Modified"),y&&(pe.lastModified[a]=y),y=x.getResponseHeader("etag"),y&&(pe.etag[a]=y)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=A.state,d=A.data,v=A.error,r=!v)):(v=k,!t&&k||(k="error",t<0&&(t=0))),x.status=t,x.statusText=(i||k)+"",r?h.resolveWith(p,[d,k,x]):h.rejectWith(p,[x,k,v]),x.statusCode(b),b=void 0,c&&m.trigger(r?"ajaxSuccess":"ajaxError",[x,f,r?d:v]),g.fireWith(p,[x,k]),c&&(m.trigger("ajaxComplete",[x,f]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof t&&(i=t,t=void 0),i=i||{};var o,r,a,s,l,c,u,d,f=pe.ajaxSetup({},i),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?pe(p):pe.event,h=pe.Deferred(),g=pe.Callbacks("once memory"),b=f.statusCode||{},v={},A={},w=0,y="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!d)for(d={};t=Vt.exec(s);)d[t[1].toLowerCase()]=t[2];t=d[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?s:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return w||(e=A[i]=A[i]||e,v[e]=t),this},overrideMimeType:function(e){return w||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(w<2)for(t in e)b[t]=[b[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||y;return u&&u.abort(t),n(0,t),this}};if(h.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,f.url=((t||f.url||ei)+"").replace(qt,"").replace(Jt,ti[1]+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=pe.trim(f.dataType||"*").toLowerCase().match(Te)||[""],null==f.crossDomain&&(o=Xt.exec(f.url.toLowerCase()),f.crossDomain=!(!o||o[1]===ti[1]&&o[2]===ti[2]&&(o[3]||("http:"===o[1]?"80":"443"))===(ti[3]||("http:"===ti[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=pe.param(f.data,f.traditional)),V(Zt,f,i,x),2===w)return x;c=pe.event&&f.global,c&&0===pe.active++&&pe.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Wt.test(f.type),a=f.url,f.hasContent||(f.data&&(a=f.url+=(Qt.test(a)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=Ut.test(a)?a.replace(Ut,"$1_="+Yt++):a+(Qt.test(a)?"&":"?")+"_="+Yt++)),f.ifModified&&(pe.lastModified[a]&&x.setRequestHeader("If-Modified-Since",pe.lastModified[a]),pe.etag[a]&&x.setRequestHeader("If-None-Match",pe.etag[a])),(f.data&&f.hasContent&&f.contentType!==!1||i.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+$t+"; q=0.01":""):f.accepts["*"]);for(r in f.headers)x.setRequestHeader(r,f.headers[r]);if(f.beforeSend&&(f.beforeSend.call(p,x,f)===!1||2===w))return x.abort();y="abort";for(r in{success:1,error:1,complete:1})x[r](f[r]);if(u=V(Kt,f,i,x)){if(x.readyState=1,c&&m.trigger("ajaxSend",[x,f]),2===w)return x;f.async&&f.timeout>0&&(l=e.setTimeout(function(){x.abort("timeout")},f.timeout));try{w=1,u.send(v,n)}catch(e){if(!(w<2))throw e;n(-1,e)}}else n(-1,"No Transport");return x},getJSON:function(e,t,i){return pe.get(e,t,i,"json")},getScript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,i,n,o){return pe.isFunction(i)&&(o=o||n,n=i,i=void 0),pe.ajax(pe.extend({url:e,type:t,dataType:o,data:i,success:n},pe.isPlainObject(e)&&e))}}),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},pe.fn.extend({wrapAll:function(e){if(pe.isFunction(e))return this.each(function(t){pe(this).wrapAll(e.call(this,t))});if(this[0]){var t=pe(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return pe.isFunction(e)?this.each(function(t){pe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=pe(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=pe.isFunction(e);return this.each(function(i){pe(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){pe.nodeName(this,"body")||pe(this).replaceWith(this.childNodes)}).end()}}),pe.expr.filters.hidden=function(e){return de.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:Z(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var ii=/%20/g,ni=/\[\]$/,oi=/\r?\n/g,ri=/^(?:submit|button|image|reset|file)$/i,ai=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var i,n=[],o=function(e,t){t=pe.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=pe.ajaxSettings&&pe.ajaxSettings.traditional),pe.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,function(){o(this.name,this.value)});else for(i in e)K(i,e[i],t,o);return n.join("&").replace(ii,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&ai.test(this.nodeName)&&!ri.test(e)&&(this.checked||!Ne.test(e))}).map(function(e,t){var i=pe(this).val();return null==i?null:pe.isArray(i)?pe.map(i,function(e){return{name:t.name,value:e.replace(oi,"\r\n")}}):{name:t.name,value:i.replace(oi,"\r\n")}}).get()}}),pe.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?ee():ne.documentMode>8?$():/^(get|post|head|put|delete|options)$/i.test(this.type)&&$()||ee()}:$;var si=0,li={},ci=pe.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in li)li[e](void 0,!0)}),de.cors=!!ci&&"withCredentials"in ci,ci=de.ajax=!!ci,ci&&pe.ajaxTransport(function(t){if(!t.crossDomain||de.cors){var i;return{send:function(n,o){var r,a=t.xhr(),s=++si;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)void 0!==n[r]&&a.setRequestHeader(r,n[r]+"");a.send(t.hasContent&&t.data||null),i=function(e,n){var r,l,c;if(i&&(n||4===a.readyState))if(delete li[s],i=void 0,a.onreadystatechange=pe.noop,n)4!==a.readyState&&a.abort();else{c={},r=a.status,"string"==typeof a.responseText&&(c.text=a.responseText);try{l=a.statusText}catch(e){l=""}r||!t.isLocal||t.crossDomain?1223===r&&(r=204):r=c.text?200:404}c&&o(r,l,c,a.getAllResponseHeaders())},t.async?4===a.readyState?e.setTimeout(i):a.onreadystatechange=li[s]=i:i()},abort:function(){i&&i(void 0,!0)}}}}),pe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),pe.ajaxTransport("script",function(e){if(e.crossDomain){var t,i=ne.head||pe("head")[0]||ne.documentElement;return{send:function(n,o){t=ne.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||o(200,"success"))},i.insertBefore(t,i.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var ui=[],di=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ui.pop()||pe.expando+"_"+Yt++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",function(t,i,n){var o,r,a,s=t.jsonp!==!1&&(di.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&di.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=pe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(di,"$1"+o):t.jsonp!==!1&&(t.url+=(Qt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||pe.error(o+" was not called"),a[0]},t.dataTypes[0]="json",r=e[o],e[o]=function(){a=arguments},n.always(function(){void 0===r?pe(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=i.jsonpCallback,ui.push(o)),a&&pe.isFunction(r)&&r(a[0]),a=r=void 0}),"script"}),pe.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||ne;var n=xe.exec(e),o=!i&&[];return n?[t.createElement(n[1])]:(n=b([e],t,o),o&&o.length&&pe(o).remove(),pe.merge([],n.childNodes))};var fi=pe.fn.load;pe.fn.load=function(e,t,i){if("string"!=typeof e&&fi)return fi.apply(this,arguments);var n,o,r,a=this,s=e.indexOf(" ");return s>-1&&(n=pe.trim(e.slice(s,e.length)),e=e.slice(0,s)),pe.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&pe.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,a.html(n?pe("
    ").append(pe.parseHTML(e)).find(n):e)}).always(i&&function(e,t){a.each(function(){i.apply(this,r||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setOffset:function(e,t,i){var n,o,r,a,s,l,c,u=pe.css(e,"position"),d=pe(e),f={};"static"===u&&(e.style.position="relative"),s=d.offset(),r=pe.css(e,"top"),l=pe.css(e,"left"),c=("absolute"===u||"fixed"===u)&&pe.inArray("auto",[r,l])>-1,c?(n=d.position(),a=n.top,o=n.left):(a=parseFloat(r)||0,o=parseFloat(l)||0),pe.isFunction(t)&&(t=t.call(e,i,pe.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):d.css(f)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setOffset(this,e,t)});var t,i,n={top:0,left:0},o=this[0],r=o&&o.ownerDocument;if(r)return t=r.documentElement,pe.contains(t,o)?("undefined"!=typeof o.getBoundingClientRect&&(n=o.getBoundingClientRect()),i=te(r),{top:n.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):n},position:function(){if(this[0]){var e,t,i={top:0,left:0},n=this[0];return"fixed"===pe.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),pe.nodeName(e[0],"html")||(i=e.offset()),i.top+=pe.css(e[0],"borderTopWidth",!0),i.left+=pe.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-pe.css(n,"marginTop",!0),left:t.left-i.left-pe.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!pe.nodeName(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||pt})}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i=/Y/.test(t);pe.fn[e]=function(n){return ze(this,function(e,n,o){var r=te(e);return void 0===o?r?t in r?r[t]:r.document.documentElement[n]:e[n]:void(r?r.scrollTo(i?pe(r).scrollLeft():o,i?o:pe(r).scrollTop()):e[n]=o)},e,n,arguments.length,null)}}),pe.each(["top","left"],function(e,t){pe.cssHooks[t]=O(de.pixelPosition,function(e,i){if(i)return i=ht(e,t),dt.test(i)?pe(e).position()[t]+"px":i})}),pe.each({Height:"height",Width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){pe.fn[n]=function(n,o){var r=arguments.length&&(i||"boolean"!=typeof n),a=i||(n===!0||o===!0?"margin":"border");return ze(this,function(t,i,n){var o;return pe.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===n?pe.css(t,i,a):pe.style(t,i,n,a)},t,r?n:void 0,r,null)}})}),pe.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),pe.fn.size=function(){return this.length},pe.fn.andSelf=pe.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pe});var pi=e.jQuery,mi=e.$;return pe.noConflict=function(t){return e.$===pe&&(e.$=mi),t&&e.jQuery===pe&&(e.jQuery=pi),pe},t||(e.jQuery=e.$=pe),pe}),function(e){"use strict";"function"==typeof define&&define.amd?define("jquery.scrollto",["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";function t(t){return!t.nodeName||e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!==-1}function i(t){return e.isFunction(t)||e.isPlainObject(t)?t:{top:t,left:t}}var n=e.scrollTo=function(t,i,n){return e(window).scrollTo(t,i,n)};return n.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(o,r,a){"object"==typeof r&&(a=r,r=0),"function"==typeof a&&(a={onAfter:a}),"max"===o&&(o=9e9),a=e.extend({},n.defaults,a),r=r||a.duration;var s=a.queue&&a.axis.length>1;return s&&(r/=2),a.offset=i(a.offset),a.over=i(a.over),this.each(function(){function l(t){var i=e.extend({},a,{queue:!0,duration:r,complete:t&&function(){t.call(d,p,a)}});f.animate(m,i)}if(null!==o){var c,u=t(this),d=u?this.contentWindow||window:this,f=e(d),p=o,m={};switch(typeof p){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(p)){p=i(p);break}p=u?e(p):e(p,d);case"object":if(0===p.length)return;(p.is||p.style)&&(c=(p=e(p)).offset())}var h=e.isFunction(a.offset)&&a.offset(d,p)||a.offset;e.each(a.axis.split(""),function(e,t){var i="x"===t?"Left":"Top",o=i.toLowerCase(),r="scroll"+i,g=f[r](),b=n.max(d,t);if(c)m[r]=c[o]+(u?0:g-f.offset()[o]),a.margin&&(m[r]-=parseInt(p.css("margin"+i),10)||0,m[r]-=parseInt(p.css("border"+i+"Width"),10)||0),m[r]+=h[o]||0,a.over[o]&&(m[r]+=p["x"===t?"width":"height"]()*a.over[o]);else{var v=p[o];m[r]=v.slice&&"%"===v.slice(-1)?parseFloat(v)/100*b:v}a.limit&&/^\d+$/.test(m[r])&&(m[r]=m[r]<=0?0:Math.min(m[r],b)),!e&&a.axis.length>1&&(g===m[r]?m={}:s&&(l(a.onAfterFirst),m={}))}),l(a.onAfter)}})},n.max=function(i,n){var o="x"===n?"Width":"Height",r="scroll"+o;if(!t(i))return i[r]-e(i)[o.toLowerCase()]();var a="client"+o,s=i.ownerDocument||i.document,l=s.documentElement,c=s.body;return Math.max(l[r],c[r])-Math.min(l[a],c[a])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var i=this.get(t);if(t.options.interrupt&&t._last&&t._last!==i)return e(t.elem).stop();var n=Math.round(t.now);i!==n&&(e(t.elem)[t.prop](n),t._last=this.get(t))}},n}),!function(e,t,i,n){e.site=e.fn.site=function(n){var o,r,a=(new Date).getTime(),s=[],l=arguments[0],c="string"==typeof l,u=[].slice.call(arguments,1),d=e.isPlainObject(n)?e.extend(!0,{},e.site.settings,n):e.extend({},e.site.settings),f=d.namespace,p=d.error,m="module-"+f,h=e(i),g=h,b=this,v=g.data(m);return o={initialize:function(){o.instantiate()},instantiate:function(){o.verbose("Storing instance of site",o),v=o,g.data(m,o)},normalize:function(){o.fix.console(),o.fix.requestAnimationFrame()},fix:{console:function(){o.debug("Normalizing window.console"),void 0!==console&&void 0!==console.log||(o.verbose("Console not available, normalizing events"),o.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(o.verbose("Console group not available, normalizing events"),t.console.group=function(){},t.console.groupEnd=function(){},t.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(o.verbose("Mark timeline not available, normalizing events"),t.console.markTimeline=function(){})},consoleClear:function(){o.debug("Disabling programmatic console clearing"),t.console.clear=function(){}},requestAnimationFrame:function(){o.debug("Normalizing requestAnimationFrame"),void 0===t.requestAnimationFrame&&(o.debug("RequestAnimationFrame not available, normalizing event"),t.requestAnimationFrame=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(t){return void 0!==e.fn[t]&&void 0!==e.fn[t].settings},enabled:{modules:function(t){var i=[];return t=t||d.modules,e.each(t,function(e,t){o.moduleExists(t)&&i.push(t)}),i}},disabled:{modules:function(t){var i=[];return t=t||d.modules,e.each(t,function(e,t){o.moduleExists(t)||i.push(t)}),i}},change:{setting:function(t,i,n,r){n="string"==typeof n?"all"===n?d.modules:[n]:n||d.modules,r=void 0===r||r,e.each(n,function(n,a){var s,l=!o.moduleExists(a)||e.fn[a].settings.namespace||!1;o.moduleExists(a)&&(o.verbose("Changing default setting",t,i,a),e.fn[a].settings[t]=i,r&&l&&(s=e(":data(module-"+l+")"),s.length>0&&(o.verbose("Modifying existing settings",s),s[a]("setting",t,i))))})},settings:function(t,i,n){i="string"==typeof i?[i]:i||d.modules,n=void 0===n||n,e.each(i,function(i,r){var a;o.moduleExists(r)&&(o.verbose("Changing default setting",t,r),e.extend(!0,e.fn[r].settings,t),n&&f&&(a=e(":data(module-"+f+")"),a.length>0&&(o.verbose("Modifying existing settings",a),a[r]("setting",t))))})}},enable:{console:function(){o.console(!0)},debug:function(e,t){e=e||d.modules,o.debug("Enabling debug for modules",e),o.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||d.modules,o.debug("Enabling verbose debug for modules",e),o.change.setting("verbose",!0,e,t)}},disable:{console:function(){o.console(!1)},debug:function(e,t){e=e||d.modules,o.debug("Disabling debug for modules",e),o.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||d.modules,o.debug("Disabling verbose debug for modules",e),o.change.setting("verbose",!1,e,t)}},console:function(e){if(e){if(void 0===v.cache.console)return void o.error(p.console);o.debug("Restoring console function"),t.console=v.cache.console}else o.debug("Disabling console function"),v.cache.console=t.console,t.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}}},destroy:function(){o.verbose("Destroying previous site for",g),g.removeData(m)},cache:{},setting:function(t,i){if(e.isPlainObject(t))e.extend(!0,d,t);else{if(void 0===i)return d[t];d[t]=i}},internal:function(t,i){if(e.isPlainObject(t))e.extend(!0,o,t);else{if(void 0===i)return o[t];o[t]=i}},debug:function(){d.debug&&(d.performance?o.performance.log(arguments):(o.debug=Function.prototype.bind.call(console.info,console,d.name+":"),o.debug.apply(console,arguments)))},verbose:function(){d.verbose&&d.debug&&(d.performance?o.performance.log(arguments):(o.verbose=Function.prototype.bind.call(console.info,console,d.name+":"),o.verbose.apply(console,arguments)))},error:function(){o.error=Function.prototype.bind.call(console.error,console,d.name+":"),o.error.apply(console,arguments)},performance:{log:function(e){var t,i,n;d.performance&&(t=(new Date).getTime(),n=a||t,i=t-n,a=t,s.push({Element:b,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":i})),clearTimeout(o.performance.timer),o.performance.timer=setTimeout(o.performance.display,500)},display:function(){var t=d.name+":",i=0;a=!1,clearTimeout(o.performance.timer),e.each(s,function(e,t){i+=t["Execution Time"]}),t+=" "+i+"ms",(void 0!==console.group||void 0!==console.table)&&s.length>0&&(console.groupCollapsed(t),console.table?console.table(s):e.each(s,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),s=[]}},invoke:function(t,i,n){var a,s,l,c=v;return i=i||u,n=b||n,"string"==typeof t&&void 0!==c&&(t=t.split(/[\. ]/),a=t.length-1,e.each(t,function(i,n){var r=i!=a?n+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(e.isPlainObject(c[r])&&i!=a)c=c[r];else{if(void 0!==c[r])return s=c[r],!1;if(!e.isPlainObject(c[n])||i==a)return void 0!==c[n]?(s=c[n],!1):(o.error(p.method,t),!1);c=c[n]}})),e.isFunction(s)?l=s.apply(n,i):void 0!==s&&(l=s),e.isArray(r)?r.push(l):void 0!==r?r=[r,l]:void 0!==l&&(r=l),s}},c?(void 0===v&&o.initialize(),o.invoke(l)):(void 0!==v&&o.destroy(),o.initialize()),void 0!==r?r:this},e.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","checkbox","dimmer","dropdown","embed","form","modal","nag","popup","rating","shape","sidebar","state","sticky","tab","transition","visit","visibility"],siteNamespace:"site",namespaceStub:{cache:{},config:{},sections:{},section:{},utilities:{}}},e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,n){return!!e.data(t,n[3])}})}(jQuery,window,document),function(e,t,i,n){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.form=function(t){var n,o=e(this),r=o.selector||"",a=(new Date).getTime(),s=[],l=arguments[0],c=arguments[1],u="string"==typeof l,d=[].slice.call(arguments,1);return o.each(function(){var f,p,m,h,g,b,v,A,w,y,x,k,C,E,S,_,I,T,B,O=e(this),j=this,R=[],M=!1;B={initialize:function(){B.get.settings(),u?(void 0===T&&B.instantiate(),B.invoke(l)):(void 0!==T&&T.invoke("destroy"),B.verbose("Initializing form validation",O,A),B.bindEvents(),B.set.defaults(),B.instantiate())},instantiate:function(){B.verbose("Storing instance of module",B),T=B,O.data(_,B)},destroy:function(){B.verbose("Destroying previous module",T),B.removeEvents(),O.removeData(_)},refresh:function(){B.verbose("Refreshing selector cache"),f=O.find(x.field),p=O.find(x.group),m=O.find(x.message),h=O.find(x.prompt),g=O.find(x.submit),b=O.find(x.clear),v=O.find(x.reset)},submit:function(){B.verbose("Submitting form",O),O.submit()},attachEvents:function(t,i){i=i||"submit",e(t).on("click"+I,function(e){B[i](),e.preventDefault()})},bindEvents:function(){B.verbose("Attaching form events"),O.on("submit"+I,B.validate.form).on("blur"+I,x.field,B.event.field.blur).on("click"+I,x.submit,B.submit).on("click"+I,x.reset,B.reset).on("click"+I,x.clear,B.clear),A.keyboardShortcuts&&O.on("keydown"+I,x.field,B.event.field.keydown),f.each(function(){var t=e(this),i=t.prop("type"),n=B.get.changeEvent(i,t);e(this).on(n+I,B.event.field.change)})},clear:function(){f.each(function(){var t=e(this),i=t.parent(),n=t.closest(p),o=n.find(x.prompt),r=t.data(y.defaultValue)||"",a=i.is(x.uiCheckbox),s=i.is(x.uiDropdown);n.hasClass(k.error)&&(B.verbose("Resetting error on field",n),n.removeClass(k.error),o.remove()),s?(B.verbose("Resetting dropdown value",i,r),i.dropdown("clear")):a?t.prop("checked",!1):(B.verbose("Resetting field value",t,r),t.val(""))})},reset:function(){f.each(function(){var t=e(this),i=t.parent(),n=t.closest(p),o=n.find(x.prompt),r=t.data(y.defaultValue),a=i.is(x.uiCheckbox),s=i.is(x.uiDropdown),l=n.hasClass(k.error);void 0!==r&&(l&&(B.verbose("Resetting error on field",n),n.removeClass(k.error),o.remove()),s?(B.verbose("Resetting dropdown value",i,r),i.dropdown("restore defaults")):a?(B.verbose("Resetting checkbox value",i,r),t.prop("checked",r)):(B.verbose("Resetting field value",t,r),t.val(r)))})},determine:{isValid:function(){var t=!0;return e.each(w,function(e,i){B.validate.field(i,e,!0)||(t=!1)}),t}},is:{bracketedRule:function(e){return e.type&&e.type.match(A.regExp.bracket)},empty:function(e){return!e||0===e.length||(e.is('input[type="checkbox"]')?!e.is(":checked"):B.is.blank(e))},blank:function(t){return""===e.trim(t.val())},valid:function(t){var i=!0;return t?(B.verbose("Checking if field is valid",t),B.validate.field(w[t],t,!1)):(B.verbose("Checking if form is valid"),e.each(w,function(e,t){B.is.valid(e)||(i=!1)}),i)}},removeEvents:function(){O.off(I),f.off(I),g.off(I),f.off(I)},event:{field:{keydown:function(t){var i=e(this),n=t.which,o=i.is(x.input),r=i.is(x.checkbox),a=i.closest(x.uiDropdown).length>0,s={enter:13,escape:27};n==s.escape&&(B.verbose("Escape key pressed blurring field"),i.blur()),t.ctrlKey||n!=s.enter||!o||a||r||(M||(i.one("keyup"+I,B.event.field.keyup),B.submit(),B.debug("Enter pressed on input submitting form")),M=!0)},keyup:function(){M=!1},blur:function(t){var i=e(this),n=i.closest(p),o=B.get.validation(i);n.hasClass(k.error)?(B.debug("Revalidating field",i,o),o&&B.validate.field(o)):"blur"!=A.on&&"change"!=A.on||o&&B.validate.field(o)},change:function(t){var i=e(this),n=i.closest(p),o=B.get.validation(i);o&&("change"==A.on||n.hasClass(k.error)&&A.revalidate)&&(clearTimeout(B.timer),B.timer=setTimeout(function(){B.debug("Revalidating field",i,B.get.validation(i)),B.validate.field(o)},A.delay))}}},get:{ancillaryValue:function(e){return!(!e.type||!e.value&&!B.is.bracketedRule(e))&&(void 0!==e.value?e.value:e.type.match(A.regExp.bracket)[1]+"")},ruleName:function(e){return B.is.bracketedRule(e)?e.type.replace(e.type.match(A.regExp.bracket)[0],""):e.type},changeEvent:function(e,t){return"checkbox"==e||"radio"==e||"hidden"==e||t.is("select")?"change":B.get.inputEvent()},inputEvent:function(){return void 0!==i.createElement("input").oninput?"input":void 0!==i.createElement("input").onpropertychange?"propertychange":"keyup"},prompt:function(e,t){var i,n,o,r=B.get.ruleName(e),a=B.get.ancillaryValue(e),s=e.prompt||A.prompt[r]||A.text.unspecifiedRule,l=-1!==s.search("{value}"),c=-1!==s.search("{name}");return(c||l)&&(n=B.get.field(t.identifier)),l&&(s=s.replace("{value}",n.val())),c&&(i=n.closest(x.group).find("label").eq(0),o=1==i.length?i.text():n.prop("placeholder")||A.text.unspecifiedField,s=s.replace("{name}",o)),s=s.replace("{identifier}",t.identifier),s=s.replace("{ruleValue}",a),e.prompt||B.verbose("Using default validation prompt for type",s,r),s},settings:function(){if(e.isPlainObject(t)){var i,n=Object.keys(t),o=n.length>0&&void 0!==t[n[0]].identifier&&void 0!==t[n[0]].rules;o?(A=e.extend(!0,{},e.fn.form.settings,c),w=e.extend({},e.fn.form.settings.defaults,t),B.error(A.error.oldSyntax,j),B.verbose("Extending settings from legacy parameters",w,A)):(t.fields&&(i=Object.keys(t.fields),("string"==typeof t.fields[i[0]]||e.isArray(t.fields[i[0]]))&&e.each(t.fields,function(i,n){"string"==typeof n&&(n=[n]),t.fields[i]={rules:[]},e.each(n,function(e,n){t.fields[i].rules.push({type:n})})})),A=e.extend(!0,{},e.fn.form.settings,t),w=e.extend({},e.fn.form.settings.defaults,A.fields),B.verbose("Extending settings",w,A))}else A=e.fn.form.settings,w=e.fn.form.settings.defaults,B.verbose("Using default form validation",w,A);S=A.namespace,y=A.metadata,x=A.selector,k=A.className,C=A.regExp,E=A.error,_="module-"+S,I="."+S,T=O.data(_),B.refresh()},field:function(t){return B.verbose("Finding field with identifier",t),t=B.escape.string(t),f.filter("#"+t).length>0?f.filter("#"+t):f.filter('[name="'+t+'"]').length>0?f.filter('[name="'+t+'"]'):f.filter('[name="'+t+'[]"]').length>0?f.filter('[name="'+t+'[]"]'):f.filter("[data-"+y.validate+'="'+t+'"]').length>0?f.filter("[data-"+y.validate+'="'+t+'"]'):e("")},fields:function(t){var i=e();return e.each(t,function(e,t){i=i.add(B.get.field(t))}),i},validation:function(t){var i,n;return!!w&&(e.each(w,function(e,o){n=o.identifier||e,B.get.field(n)[0]==t[0]&&(o.identifier=n,i=o)}),i||!1)},value:function(e){var t,i=[];return i.push(e),t=B.get.values.call(j,i),t[e]},values:function(t){var i=e.isArray(t)?B.get.fields(t):f,n={};return i.each(function(t,i){var o=e(i),r=(o.prop("type"),o.prop("name")),a=o.val(),s=o.is(x.checkbox),l=o.is(x.radio),c=-1!==r.indexOf("[]"),u=!!s&&o.is(":checked");r&&(c?(r=r.replace("[]",""),n[r]||(n[r]=[]),s?u?n[r].push(a||!0):n[r].push(!1):n[r].push(a)):l?u&&(n[r]=a):n[r]=s?!!u&&(a||!0):a)}),n}},has:{field:function(e){return B.verbose("Checking for existence of a field with identifier",e),e=B.escape.string(e),"string"!=typeof e&&B.error(E.identifier,e),f.filter("#"+e).length>0||f.filter('[name="'+e+'"]').length>0||f.filter("[data-"+y.validate+'="'+e+'"]').length>0}},escape:{string:function(e){return e=String(e),e.replace(C.escape,"\\$&")}},add:{prompt:function(t,i){var n=B.get.field(t),o=n.closest(p),r=o.children(x.prompt),a=0!==r.length;i="string"==typeof i?[i]:i,B.verbose("Adding field error state",t),o.addClass(k.error),A.inline&&(a||(r=A.templates.prompt(i),r.appendTo(o)),r.html(i[0]),a?B.verbose("Inline errors are disabled, no inline error added",t):A.transition&&void 0!==e.fn.transition&&O.transition("is supported")?(B.verbose("Displaying error with css transition",A.transition),r.transition(A.transition+" in",A.duration)):(B.verbose("Displaying error with fallback javascript animation"),r.fadeIn(A.duration)))},errors:function(e){B.debug("Adding form error messages",e),B.set.error(),m.html(A.templates.error(e))}},remove:{prompt:function(t){var i=B.get.field(t),n=i.closest(p),o=n.children(x.prompt);n.removeClass(k.error),A.inline&&o.is(":visible")&&(B.verbose("Removing prompt for field",t),A.transition&&void 0!==e.fn.transition&&O.transition("is supported")?o.transition(A.transition+" out",A.duration,function(){o.remove()}):o.fadeOut(A.duration,function(){o.remove()}))}},set:{success:function(){O.removeClass(k.error).addClass(k.success)},defaults:function(){f.each(function(){var t=e(this),i=t.filter(x.checkbox).length>0,n=i?t.is(":checked"):t.val();t.data(y.defaultValue,n)})},error:function(){O.removeClass(k.success).addClass(k.error)},value:function(e,t){var i={};return i[e]=t,B.set.values.call(j,i)},values:function(t){e.isEmptyObject(t)||e.each(t,function(t,i){var n,o=B.get.field(t),r=o.parent(),a=e.isArray(i),s=r.is(x.uiCheckbox),l=r.is(x.uiDropdown),c=o.is(x.radio)&&s,u=o.length>0;u&&(a&&s?(B.verbose("Selecting multiple",i,o),r.checkbox("uncheck"),e.each(i,function(e,t){n=o.filter('[value="'+t+'"]'),r=n.parent(),n.length>0&&r.checkbox("check")})):c?(B.verbose("Selecting radio value",i,o),o.filter('[value="'+i+'"]').parent(x.uiCheckbox).checkbox("check")):s?(B.verbose("Setting checkbox value",i,r),!0===i?r.checkbox("check"):r.checkbox("uncheck")):l?(B.verbose("Setting dropdown value",i,r),r.dropdown("set selected",i)):(B.verbose("Setting field value",i,o),o.val(i)))})}},validate:{form:function(e,t){var i=B.get.values();if(M)return!1;if(R=[],B.determine.isValid()){if(B.debug("Form has no validation errors, submitting"),B.set.success(),!0!==t)return A.onSuccess.call(j,e,i)}else if(B.debug("Form has errors"),B.set.error(),A.inline||B.add.errors(R),void 0!==O.data("moduleApi")&&e.stopImmediatePropagation(),!0!==t)return A.onFailure.call(j,R,i)},field:function(t,i,n){n=void 0===n||n,"string"==typeof t&&(B.verbose("Validating field",t),i=t,t=w[t]);var o=t.identifier||i,r=B.get.field(o),a=!!t.depends&&B.get.field(t.depends),s=!0,l=[];return t.identifier||(B.debug("Using field name as identifier",o),t.identifier=o),r.prop("disabled")?(B.debug("Field is disabled. Skipping",o),s=!0):t.optional&&B.is.blank(r)?(B.debug("Field is optional and blank. Skipping",o),s=!0):t.depends&&B.is.empty(a)?(B.debug("Field depends on another value that is not present or empty. Skipping",a),s=!0):void 0!==t.rules&&e.each(t.rules,function(e,i){B.has.field(o)&&!B.validate.rule(t,i)&&(B.debug("Field is invalid",o,i.type),l.push(B.get.prompt(i,t)),s=!1)}),s?(n&&(B.remove.prompt(o,l),A.onValid.call(r)),!0):(n&&(R=R.concat(l),B.add.prompt(o,l),A.onInvalid.call(r,l)),!1)},rule:function(t,i){var n=B.get.field(t.identifier),o=(i.type,n.val()),r=B.get.ancillaryValue(i),a=B.get.ruleName(i),s=A.rules[a];return e.isFunction(s)?(o=void 0===o||""===o||null===o?"":e.trim(o+""),s.call(n,o,r)):void B.error(E.noRule,a)}},setting:function(t,i){if(e.isPlainObject(t))e.extend(!0,A,t);else{if(void 0===i)return A[t];A[t]=i}},internal:function(t,i){if(e.isPlainObject(t))e.extend(!0,B,t);else{if(void 0===i)return B[t]; +B[t]=i}},debug:function(){!A.silent&&A.debug&&(A.performance?B.performance.log(arguments):(B.debug=Function.prototype.bind.call(console.info,console,A.name+":"),B.debug.apply(console,arguments)))},verbose:function(){!A.silent&&A.verbose&&A.debug&&(A.performance?B.performance.log(arguments):(B.verbose=Function.prototype.bind.call(console.info,console,A.name+":"),B.verbose.apply(console,arguments)))},error:function(){A.silent||(B.error=Function.prototype.bind.call(console.error,console,A.name+":"),B.error.apply(console,arguments))},performance:{log:function(e){var t,i,n;A.performance&&(t=(new Date).getTime(),n=a||t,i=t-n,a=t,s.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:j,"Execution Time":i})),clearTimeout(B.performance.timer),B.performance.timer=setTimeout(B.performance.display,500)},display:function(){var t=A.name+":",i=0;a=!1,clearTimeout(B.performance.timer),e.each(s,function(e,t){i+=t["Execution Time"]}),t+=" "+i+"ms",r&&(t+=" '"+r+"'"),o.length>1&&(t+=" ("+o.length+")"),(void 0!==console.group||void 0!==console.table)&&s.length>0&&(console.groupCollapsed(t),console.table?console.table(s):e.each(s,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),s=[]}},invoke:function(t,i,o){var r,a,s,l=T;return i=i||d,o=j||o,"string"==typeof t&&void 0!==l&&(t=t.split(/[\. ]/),r=t.length-1,e.each(t,function(i,n){var o=i!=r?n+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(e.isPlainObject(l[o])&&i!=r)l=l[o];else{if(void 0!==l[o])return a=l[o],!1;if(!e.isPlainObject(l[n])||i==r)return void 0!==l[n]&&(a=l[n],!1);l=l[n]}})),e.isFunction(a)?s=a.apply(o,i):void 0!==a&&(s=a),e.isArray(n)?n.push(s):void 0!==n?n=[n,s]:void 0!==s&&(n=s),a}},B.initialize()}),void 0!==n?n:this},e.fn.form.settings={name:"Form",namespace:"form",debug:!1,verbose:!1,performance:!0,fields:!1,keyboardShortcuts:!0,on:"submit",inline:!1,delay:200,revalidate:!0,transition:"scale",duration:200,onValid:function(){},onInvalid:function(){},onSuccess:function(){return!0},onFailure:function(){return!1},metadata:{defaultValue:"default",validate:"validate"},regExp:{htmlID:/^[a-zA-Z][\w:.-]*$/g,bracket:/\[(.*)\]/i,decimal:/^\d+\.?\d*$/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,flags:/^\/(.*)\/(.*)?/,integer:/^\-?\d+$/,number:/^\-?\d*(\.\d+)?$/,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i},text:{unspecifiedRule:"Please enter a valid value",unspecifiedField:"This field"},prompt:{empty:"{name} must have a value",checked:"{name} must be checked",email:"{name} must be a valid e-mail",url:"{name} must be a valid url",regExp:"{name} is not formatted correctly",integer:"{name} must be an integer",decimal:"{name} must be a decimal number",number:"{name} must be set to a number",is:'{name} must be "{ruleValue}"',isExactly:'{name} must be exactly "{ruleValue}"',not:'{name} cannot be set to "{ruleValue}"',notExactly:'{name} cannot be set to exactly "{ruleValue}"',contain:'{name} cannot contain "{ruleValue}"',containExactly:'{name} cannot contain exactly "{ruleValue}"',doesntContain:'{name} must contain "{ruleValue}"',doesntContainExactly:'{name} must contain exactly "{ruleValue}"',minLength:"{name} must be at least {ruleValue} characters",length:"{name} must be at least {ruleValue} characters",exactLength:"{name} must be exactly {ruleValue} characters",maxLength:"{name} cannot be longer than {ruleValue} characters",match:"{name} must match {ruleValue} field",different:"{name} must have a different value than {ruleValue} field",creditCard:"{name} must be a valid credit card number",minCount:"{name} must have at least {ruleValue} choices",exactCount:"{name} must have exactly {ruleValue} choices",maxCount:"{name} must have {ruleValue} or less choices"},selector:{checkbox:'input[type="checkbox"], input[type="radio"]',clear:".clear",field:"input, textarea, select",group:".field",input:"input",message:".error.message",prompt:".prompt.label",radio:'input[type="radio"]',reset:'.reset:not([type="reset"])',submit:'.submit:not([type="submit"])',uiCheckbox:".ui.checkbox",uiDropdown:".ui.dropdown"},className:{error:"error",label:"ui prompt label",pressed:"down",success:"success"},error:{identifier:"You must specify a string identifier for each field",method:"The method you called is not defined.",noRule:"There is no rule matching the one you specified",oldSyntax:"Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically."},templates:{error:function(t){var i='
      ';return e.each(t,function(e,t){i+="
    • "+t+"
    • "}),i+="
    ",e(i)},prompt:function(t){return e("
    ").addClass("ui basic red pointing prompt label").html(t[0])}},rules:{empty:function(t){return!(void 0===t||""===t||e.isArray(t)&&0===t.length)},checked:function(){return e(this).filter(":checked").length>0},email:function(t){return e.fn.form.settings.regExp.email.test(t)},url:function(t){return e.fn.form.settings.regExp.url.test(t)},regExp:function(t,i){if(i instanceof RegExp)return t.match(i);var n,o=i.match(e.fn.form.settings.regExp.flags);return o&&(i=o.length>=2?o[1]:i,n=o.length>=3?o[2]:""),t.match(new RegExp(i,n))},integer:function(t,i){var n,o,r,a=e.fn.form.settings.regExp.integer;return i&&-1===["",".."].indexOf(i)&&(-1==i.indexOf("..")?a.test(i)&&(n=o=i-0):(r=i.split("..",2),a.test(r[0])&&(n=r[0]-0),a.test(r[1])&&(o=r[1]-0))),a.test(t)&&(void 0===n||t>=n)&&(void 0===o||t<=o)},decimal:function(t){return e.fn.form.settings.regExp.decimal.test(t)},number:function(t){return e.fn.form.settings.regExp.number.test(t)},is:function(e,t){return t="string"==typeof t?t.toLowerCase():t,(e="string"==typeof e?e.toLowerCase():e)==t},isExactly:function(e,t){return e==t},not:function(e,t){return e="string"==typeof e?e.toLowerCase():e,t="string"==typeof t?t.toLowerCase():t,e!=t},notExactly:function(e,t){return e!=t},contains:function(t,i){return i=i.replace(e.fn.form.settings.regExp.escape,"\\$&"),-1!==t.search(new RegExp(i,"i"))},containsExactly:function(t,i){return i=i.replace(e.fn.form.settings.regExp.escape,"\\$&"),-1!==t.search(new RegExp(i))},doesntContain:function(t,i){return i=i.replace(e.fn.form.settings.regExp.escape,"\\$&"),-1===t.search(new RegExp(i,"i"))},doesntContainExactly:function(t,i){return i=i.replace(e.fn.form.settings.regExp.escape,"\\$&"),-1===t.search(new RegExp(i))},minLength:function(e,t){return void 0!==e&&e.length>=t},length:function(e,t){return void 0!==e&&e.length>=t},exactLength:function(e,t){return void 0!==e&&e.length==t},maxLength:function(e,t){return void 0!==e&&e.length<=t},match:function(t,i){var n;return e(this),e('[data-validate="'+i+'"]').length>0?n=e('[data-validate="'+i+'"]').val():e("#"+i).length>0?n=e("#"+i).val():e('[name="'+i+'"]').length>0?n=e('[name="'+i+'"]').val():e('[name="'+i+'[]"]').length>0&&(n=e('[name="'+i+'[]"]')),void 0!==n&&t.toString()==n.toString()},different:function(t,i){var n;return e(this),e('[data-validate="'+i+'"]').length>0?n=e('[data-validate="'+i+'"]').val():e("#"+i).length>0?n=e("#"+i).val():e('[name="'+i+'"]').length>0?n=e('[name="'+i+'"]').val():e('[name="'+i+'[]"]').length>0&&(n=e('[name="'+i+'[]"]')),void 0!==n&&t.toString()!==n.toString()},creditCard:function(t,i){var n,o,r={visa:{pattern:/^4/,length:[16]},amex:{pattern:/^3[47]/,length:[15]},mastercard:{pattern:/^5[1-5]/,length:[16]},discover:{pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,length:[16]},unionPay:{pattern:/^(62|88)/,length:[16,17,18,19]},jcb:{pattern:/^35(2[89]|[3-8][0-9])/,length:[16]},maestro:{pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,length:[12,13,14,15,16,17,18,19]},dinersClub:{pattern:/^(30[0-5]|^36)/,length:[14]},laser:{pattern:/^(6304|670[69]|6771)/,length:[16,17,18,19]},visaElectron:{pattern:/^(4026|417500|4508|4844|491(3|7))/,length:[16]}},a={},s=!1,l="string"==typeof i&&i.split(",");if("string"==typeof t&&0!==t.length){if(t=t.replace(/[\-]/g,""),l&&(e.each(l,function(i,n){(o=r[n])&&(a={length:-1!==e.inArray(t.length,o.length),pattern:-1!==t.search(o.pattern)},a.length&&a.pattern&&(s=!0))}),!s))return!1;if(n={number:-1!==e.inArray(t.length,r.unionPay.length),pattern:-1!==t.search(r.unionPay.pattern)},n.number&&n.pattern)return!0;for(var c=t.length,u=0,d=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],f=0;c--;)f+=d[u][parseInt(t.charAt(c),10)],u^=1;return f%10==0&&f>0}},minCount:function(e,t){return 0==t||(1==t?""!==e:e.split(",").length>=t)},exactCount:function(e,t){return 0==t?""===e:1==t?""!==e&&-1===e.search(","):e.split(",").length==t},maxCount:function(e,t){return 0!=t&&(1==t?-1===e.search(","):e.split(",").length<=t)}}}}(jQuery,window,document),function(e,t,i,n){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.accordion=function(i){var n,o=e(this),r=(new Date).getTime(),a=[],s=arguments[0],l="string"==typeof s,c=[].slice.call(arguments,1);return t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame,o.each(function(){var u,d,f=e.isPlainObject(i)?e.extend(!0,{},e.fn.accordion.settings,i):e.extend({},e.fn.accordion.settings),p=f.className,m=f.namespace,h=f.selector,g=f.error,b="."+m,v="module-"+m,A=o.selector||"",w=e(this),y=w.find(h.title),x=w.find(h.content),k=this,C=w.data(v);d={initialize:function(){d.debug("Initializing",w),d.bind.events(),f.observeChanges&&d.observeChanges(),d.instantiate()},instantiate:function(){C=d,w.data(v,d)},destroy:function(){d.debug("Destroying previous instance",w),w.off(b).removeData(v)},refresh:function(){y=w.find(h.title),x=w.find(h.content)},observeChanges:function(){"MutationObserver"in t&&(u=new MutationObserver(function(e){d.debug("DOM tree modified, updating selector cache"),d.refresh()}),u.observe(k,{childList:!0,subtree:!0}),d.debug("Setting up mutation observer",u))},bind:{events:function(){d.debug("Binding delegated events"),w.on(f.on+b,h.trigger,d.event.click)}},event:{click:function(){d.toggle.call(this)}},toggle:function(t){var i=void 0!==t?"number"==typeof t?y.eq(t):e(t).closest(h.title):e(this).closest(h.title),n=i.next(x),o=n.hasClass(p.animating),r=n.hasClass(p.active),a=r&&!o,s=!r&&o;d.debug("Toggling visibility of content",i),a||s?f.collapsible?d.close.call(i):d.debug("Cannot close accordion content collapsing is disabled"):d.open.call(i)},open:function(t){var i=void 0!==t?"number"==typeof t?y.eq(t):e(t).closest(h.title):e(this).closest(h.title),n=i.next(x),o=n.hasClass(p.animating);return n.hasClass(p.active)||o?void d.debug("Accordion already open, skipping",n):(d.debug("Opening accordion content",i),f.onOpening.call(n),f.exclusive&&d.closeOthers.call(i),i.addClass(p.active),n.stop(!0,!0).addClass(p.animating),f.animateChildren&&(void 0!==e.fn.transition&&w.transition("is supported")?n.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:f.debug,verbose:f.verbose,duration:f.duration}):n.children().stop(!0,!0).animate({opacity:1},f.duration,d.resetOpacity)),n.slideDown(f.duration,f.easing,function(){n.removeClass(p.animating).addClass(p.active),d.reset.display.call(this),f.onOpen.call(this),f.onChange.call(this)}),void 0)},close:function(t){var i=void 0!==t?"number"==typeof t?y.eq(t):e(t).closest(h.title):e(this).closest(h.title),n=i.next(x),o=n.hasClass(p.animating),r=n.hasClass(p.active),a=!r&&o,s=r&&o;!r&&!a||s||(d.debug("Closing accordion content",n),f.onClosing.call(n),i.removeClass(p.active),n.stop(!0,!0).addClass(p.animating),f.animateChildren&&(void 0!==e.fn.transition&&w.transition("is supported")?n.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:f.debug,verbose:f.verbose,duration:f.duration}):n.children().stop(!0,!0).animate({opacity:0},f.duration,d.resetOpacity)),n.slideUp(f.duration,f.easing,function(){n.removeClass(p.animating).removeClass(p.active),d.reset.display.call(this),f.onClose.call(this),f.onChange.call(this)}))},closeOthers:function(t){var i,n,o,r=void 0!==t?y.eq(t):e(this).closest(h.title),a=r.parents(h.content).prev(h.title),s=r.closest(h.accordion),l=h.title+"."+p.active+":visible",c=h.content+"."+p.active+":visible";f.closeNested?(i=s.find(l).not(a),o=i.next(x)):(i=s.find(l).not(a),n=s.find(c).find(l).not(a),i=i.not(n),o=i.next(x)),i.length>0&&(d.debug("Exclusive enabled, closing other content",i),i.removeClass(p.active),o.removeClass(p.animating).stop(!0,!0),f.animateChildren&&(void 0!==e.fn.transition&&w.transition("is supported")?o.children().transition({animation:"fade out",useFailSafe:!0,debug:f.debug,verbose:f.verbose,duration:f.duration}):o.children().stop(!0,!0).animate({opacity:0},f.duration,d.resetOpacity)),o.slideUp(f.duration,f.easing,function(){e(this).removeClass(p.active),d.reset.display.call(this)}))},reset:{display:function(){d.verbose("Removing inline display from element",this),e(this).css("display",""),""===e(this).attr("style")&&e(this).attr("style","").removeAttr("style")},opacity:function(){d.verbose("Removing inline opacity from element",this),e(this).css("opacity",""),""===e(this).attr("style")&&e(this).attr("style","").removeAttr("style")}},setting:function(t,i){if(d.debug("Changing setting",t,i),e.isPlainObject(t))e.extend(!0,f,t);else{if(void 0===i)return f[t];e.isPlainObject(f[t])?e.extend(!0,f[t],i):f[t]=i}},internal:function(t,i){return d.debug("Changing internal",t,i),void 0===i?d[t]:void(e.isPlainObject(t)?e.extend(!0,d,t):d[t]=i)},debug:function(){!f.silent&&f.debug&&(f.performance?d.performance.log(arguments):(d.debug=Function.prototype.bind.call(console.info,console,f.name+":"),d.debug.apply(console,arguments)))},verbose:function(){!f.silent&&f.verbose&&f.debug&&(f.performance?d.performance.log(arguments):(d.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),d.verbose.apply(console,arguments)))},error:function(){f.silent||(d.error=Function.prototype.bind.call(console.error,console,f.name+":"),d.error.apply(console,arguments))},performance:{log:function(e){var t,i,n;f.performance&&(t=(new Date).getTime(),n=r||t,i=t-n,r=t,a.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:k,"Execution Time":i})),clearTimeout(d.performance.timer),d.performance.timer=setTimeout(d.performance.display,500)},display:function(){var t=f.name+":",i=0;r=!1,clearTimeout(d.performance.timer),e.each(a,function(e,t){i+=t["Execution Time"]}),t+=" "+i+"ms",A&&(t+=" '"+A+"'"),(void 0!==console.group||void 0!==console.table)&&a.length>0&&(console.groupCollapsed(t),console.table?console.table(a):e.each(a,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),a=[]}},invoke:function(t,i,o){var r,a,s,l=C;return i=i||c,o=k||o,"string"==typeof t&&void 0!==l&&(t=t.split(/[\. ]/),r=t.length-1,e.each(t,function(i,n){var o=i!=r?n+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(e.isPlainObject(l[o])&&i!=r)l=l[o];else{if(void 0!==l[o])return a=l[o],!1;if(!e.isPlainObject(l[n])||i==r)return void 0!==l[n]?(a=l[n],!1):(d.error(g.method,t),!1);l=l[n]}})),e.isFunction(a)?s=a.apply(o,i):void 0!==a&&(s=a),e.isArray(n)?n.push(s):void 0!==n?n=[n,s]:void 0!==s&&(n=s),a}},l?(void 0===C&&d.initialize(),d.invoke(s)):(void 0!==C&&C.invoke("destroy"),d.initialize())}),void 0!==n?n:this},e.fn.accordion.settings={name:"Accordion",namespace:"accordion",silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",observeChanges:!0,exclusive:!0,collapsible:!0,closeNested:!1,animateChildren:!0,duration:350,easing:"easeOutQuad",onOpening:function(){},onOpen:function(){},onClosing:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",animating:"animating"},selector:{accordion:".accordion",title:".title",trigger:".title",content:".content"}},e.extend(e.easing,{easeOutQuad:function(e,t,i,n,o){return-n*(t/=o)*(t-2)+i}})}(jQuery,window,document),function(e,t,i,n){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.checkbox=function(n){var o,r=e(this),a=r.selector||"",s=(new Date).getTime(),l=[],c=arguments[0],u="string"==typeof c,d=[].slice.call(arguments,1);return r.each(function(){var r,f,p=e.extend(!0,{},e.fn.checkbox.settings,n),m=p.className,h=p.namespace,g=p.selector,b=p.error,v="."+h,A="module-"+h,w=e(this),y=e(this).children(g.label),x=e(this).children(g.input),k=x[0],C=!1,E=!1,S=w.data(A),_=this;f={initialize:function(){f.verbose("Initializing checkbox",p),f.create.label(),f.bind.events(),f.set.tabbable(),f.hide.input(),f.observeChanges(),f.instantiate(),f.setup()},instantiate:function(){f.verbose("Storing instance of module",f),S=f,w.data(A,f)},destroy:function(){f.verbose("Destroying module"),f.unbind.events(),f.show.input(),w.removeData(A)},fix:{reference:function(){w.is(g.input)&&(f.debug("Behavior called on adjusting invoked element"),w=w.closest(g.checkbox),f.refresh())}},setup:function(){f.set.initialLoad(),f.is.indeterminate()?(f.debug("Initial value is indeterminate"),f.indeterminate()):f.is.checked()?(f.debug("Initial value is checked"),f.check()):(f.debug("Initial value is unchecked"),f.uncheck()),f.remove.initialLoad()},refresh:function(){y=w.children(g.label),x=w.children(g.input),k=x[0]},hide:{input:function(){f.verbose("Modifying z-index to be unselectable"),x.addClass(m.hidden)}},show:{input:function(){f.verbose("Modifying z-index to be selectable"),x.removeClass(m.hidden)}},observeChanges:function(){"MutationObserver"in t&&(r=new MutationObserver(function(e){f.debug("DOM tree modified, updating selector cache"),f.refresh()}),r.observe(_,{childList:!0,subtree:!0}),f.debug("Setting up mutation observer",r))},attachEvents:function(t,i){var n=e(t);i=e.isFunction(f[i])?f[i]:f.toggle,n.length>0?(f.debug("Attaching checkbox events to element",t,i),n.on("click"+v,i)):f.error(b.notFound)},event:{click:function(t){var i=e(t.target);return i.is(g.input)?void f.verbose("Using default check action on initialized checkbox"):i.is(g.link)?void f.debug("Clicking link inside checkbox, skipping toggle"):(f.toggle(),x.focus(),void t.preventDefault())},keydown:function(e){var t=e.which,i={enter:13,space:32,escape:27};t==i.escape?(f.verbose("Escape key pressed blurring field"),x.blur(),E=!0):e.ctrlKey||t!=i.space&&t!=i.enter?E=!1:(f.verbose("Enter/space key pressed, toggling checkbox"),f.toggle(),E=!0)},keyup:function(e){E&&e.preventDefault()}},check:function(){f.should.allowCheck()&&(f.debug("Checking checkbox",x),f.set.checked(),f.should.ignoreCallbacks()||(p.onChecked.call(k),p.onChange.call(k)))},uncheck:function(){f.should.allowUncheck()&&(f.debug("Unchecking checkbox"),f.set.unchecked(),f.should.ignoreCallbacks()||(p.onUnchecked.call(k),p.onChange.call(k)))},indeterminate:function(){return f.should.allowIndeterminate()?void f.debug("Checkbox is already indeterminate"):(f.debug("Making checkbox indeterminate"),f.set.indeterminate(),f.should.ignoreCallbacks()||(p.onIndeterminate.call(k),p.onChange.call(k)),void 0)},determinate:function(){return f.should.allowDeterminate()?void f.debug("Checkbox is already determinate"):(f.debug("Making checkbox determinate"),f.set.determinate(),f.should.ignoreCallbacks()||(p.onDeterminate.call(k),p.onChange.call(k)),void 0)},enable:function(){return f.is.enabled()?void f.debug("Checkbox is already enabled"):(f.debug("Enabling checkbox"),f.set.enabled(),p.onEnable.call(k),p.onEnabled.call(k),void 0)},disable:function(){return f.is.disabled()?void f.debug("Checkbox is already disabled"):(f.debug("Disabling checkbox"),f.set.disabled(),p.onDisable.call(k),p.onDisabled.call(k),void 0)},get:{radios:function(){var t=f.get.name();return e('input[name="'+t+'"]').closest(g.checkbox)},otherRadios:function(){return f.get.radios().not(w)},name:function(){return x.attr("name")}},is:{initialLoad:function(){return C},radio:function(){return x.hasClass(m.radio)||"radio"==x.attr("type")},indeterminate:function(){return void 0!==x.prop("indeterminate")&&x.prop("indeterminate")},checked:function(){return void 0!==x.prop("checked")&&x.prop("checked")},disabled:function(){return void 0!==x.prop("disabled")&&x.prop("disabled")},enabled:function(){return!f.is.disabled()},determinate:function(){return!f.is.indeterminate()},unchecked:function(){return!f.is.checked()}},should:{allowCheck:function(){return f.is.determinate()&&f.is.checked()&&!f.should.forceCallbacks()?(f.debug("Should not allow check, checkbox is already checked"),!1):!1!==p.beforeChecked.apply(k)||(f.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return f.is.determinate()&&f.is.unchecked()&&!f.should.forceCallbacks()?(f.debug("Should not allow uncheck, checkbox is already unchecked"),!1):!1!==p.beforeUnchecked.apply(k)||(f.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return f.is.indeterminate()&&!f.should.forceCallbacks()?(f.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):!1!==p.beforeIndeterminate.apply(k)||(f.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return f.is.determinate()&&!f.should.forceCallbacks()?(f.debug("Should not allow determinate, checkbox is already determinate"),!1):!1!==p.beforeDeterminate.apply(k)||(f.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},forceCallbacks:function(){return f.is.initialLoad()&&p.fireOnInit},ignoreCallbacks:function(){return C&&!p.fireOnInit}},can:{change:function(){return!(w.hasClass(m.disabled)||w.hasClass(m.readOnly)||x.prop("disabled")||x.prop("readonly"))},uncheck:function(){return"boolean"==typeof p.uncheckable?p.uncheckable:!f.is.radio()}},set:{initialLoad:function(){C=!0},checked:function(){return f.verbose("Setting class to checked"),w.removeClass(m.indeterminate).addClass(m.checked),f.is.radio()&&f.uncheckOthers(),!f.is.indeterminate()&&f.is.checked()?void f.debug("Input is already checked, skipping input property change"):(f.verbose("Setting state to checked",k),x.prop("indeterminate",!1).prop("checked",!0),f.trigger.change(),void 0)},unchecked:function(){return f.verbose("Removing checked class"),w.removeClass(m.indeterminate).removeClass(m.checked),!f.is.indeterminate()&&f.is.unchecked()?void f.debug("Input is already unchecked"):(f.debug("Setting state to unchecked"),x.prop("indeterminate",!1).prop("checked",!1),f.trigger.change(),void 0)},indeterminate:function(){return f.verbose("Setting class to indeterminate"),w.addClass(m.indeterminate),f.is.indeterminate()?void f.debug("Input is already indeterminate, skipping input property change"):(f.debug("Setting state to indeterminate"),x.prop("indeterminate",!0),f.trigger.change(),void 0)},determinate:function(){return f.verbose("Removing indeterminate class"),w.removeClass(m.indeterminate),f.is.determinate()?void f.debug("Input is already determinate, skipping input property change"):(f.debug("Setting state to determinate"),void x.prop("indeterminate",!1))},disabled:function(){return f.verbose("Setting class to disabled"),w.addClass(m.disabled),f.is.disabled()?void f.debug("Input is already disabled, skipping input property change"):(f.debug("Setting state to disabled"),x.prop("disabled","disabled"),f.trigger.change(),void 0)},enabled:function(){return f.verbose("Removing disabled class"),w.removeClass(m.disabled),f.is.enabled()?void f.debug("Input is already enabled, skipping input property change"):(f.debug("Setting state to enabled"),x.prop("disabled",!1),f.trigger.change(),void 0)},tabbable:function(){f.verbose("Adding tabindex to checkbox"),void 0===x.attr("tabindex")&&x.attr("tabindex",0)}},remove:{initialLoad:function(){C=!1}},trigger:{change:function(){var e=i.createEvent("HTMLEvents"),t=x[0];t&&(f.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{label:function(){x.prevAll(g.label).length>0?(x.prev(g.label).detach().insertAfter(x),f.debug("Moving existing label",y)):f.has.label()||(y=e("