!function(e,t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("undefined"!=typeof exports)t(require("jquery"));else{t(e.jquery),e.metisMenu={}}}(this,(function(e){"use strict";var t;(t=e)&&t.__esModule;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=function(e){var t=!1,n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};function o(t){var n=this,o=!1;return e(this).one(i.TRANSITION_END,(function(){o=!0})),setTimeout((function(){o||i.triggerTransitionEnd(n)}),t),this}var i={TRANSITION_END:"mmTransitionEnd",triggerTransitionEnd:function(n){e(n).trigger(t.end)},supportsTransitionEnd:function(){return Boolean(t)}};return t=function(){if(window.QUnit)return!1;var e=document.createElement("mm");for(var t in n)if(void 0!==e.style[t])return{end:n[t]};return!1}(),e.fn.emulateTransitionEnd=o,i.supportsTransitionEnd()&&(e.event.special[i.TRANSITION_END]={bindType:t.end,delegateType:t.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),i}(jQuery);!function(e){var t="metisMenu",i="metisMenu",r=e.fn[t],a={toggle:!0,preventDefault:!0,activeClass:"active",collapseClass:"collapse",collapseInClass:"in",collapsingClass:"collapsing",triggerElement:"a",parentTrigger:"li",subMenu:"ul"},s={SHOW:"show.metisMenu",SHOWN:"shown.metisMenu",HIDE:"hide.metisMenu",HIDDEN:"hidden.metisMenu",CLICK_DATA_API:"click.metisMenu.data-api"},l=function(){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._element=e,this._config=this._getConfig(n),this._transitioning=null,this.init()}return t.prototype.init=function(){var t=this;e(this._element).find(this._config.parentTrigger+"."+this._config.activeClass).has(this._config.subMenu).children(this._config.subMenu).attr("aria-expanded",!0).addClass(this._config.collapseClass+" "+this._config.collapseInClass),e(this._element).find(this._config.parentTrigger).not("."+this._config.activeClass).has(this._config.subMenu).children(this._config.subMenu).attr("aria-expanded",!1).addClass(this._config.collapseClass),e(this._element).find(this._config.parentTrigger).has(this._config.subMenu).children(this._config.triggerElement).on(s.CLICK_DATA_API,(function(n){var o=e(this),i=o.parent(t._config.parentTrigger),r=i.siblings(t._config.parentTrigger).children(t._config.triggerElement),a=i.children(t._config.subMenu);t._config.preventDefault&&n.preventDefault(),"true"!==o.attr("aria-disabled")&&(i.hasClass(t._config.activeClass)?(o.attr("aria-expanded",!1),t._hide(a)):(t._show(a),o.attr("aria-expanded",!0),t._config.toggle&&r.attr("aria-expanded",!1)),t._config.onTransitionStart&&t._config.onTransitionStart(n))}))},t.prototype._show=function(t){if(!this._transitioning&&!e(t).hasClass(this._config.collapsingClass)){var n=this,i=e(t),r=e.Event(s.SHOW);if(i.trigger(r),!r.isDefaultPrevented()){i.parent(this._config.parentTrigger).addClass(this._config.activeClass),this._config.toggle&&this._hide(i.parent(this._config.parentTrigger).siblings().children(this._config.subMenu+"."+this._config.collapseInClass).attr("aria-expanded",!1)),i.removeClass(this._config.collapseClass).addClass(this._config.collapsingClass).height(0),this.setTransitioning(!0);var a=function(){i.removeClass(n._config.collapsingClass).addClass(n._config.collapseClass+" "+n._config.collapseInClass).height("").attr("aria-expanded",!0),n.setTransitioning(!1),i.trigger(s.SHOWN)};o.supportsTransitionEnd()?i.height(i[0].scrollHeight).one(o.TRANSITION_END,a).emulateTransitionEnd(350):a()}}},t.prototype._hide=function(t){if(!this._transitioning&&e(t).hasClass(this._config.collapseInClass)){var n=this,i=e(t),r=e.Event(s.HIDE);if(i.trigger(r),!r.isDefaultPrevented()){i.parent(this._config.parentTrigger).removeClass(this._config.activeClass),i.height(i.height())[0].offsetHeight,i.addClass(this._config.collapsingClass).removeClass(this._config.collapseClass).removeClass(this._config.collapseInClass),this.setTransitioning(!0);var a=function(){n._transitioning&&n._config.onTransitionEnd&&n._config.onTransitionEnd(),n.setTransitioning(!1),i.trigger(s.HIDDEN),i.removeClass(n._config.collapsingClass).addClass(n._config.collapseClass).attr("aria-expanded",!1)};o.supportsTransitionEnd()?0==i.height()||"none"==i.css("display")?a():i.height(0).one(o.TRANSITION_END,a).emulateTransitionEnd(350):a()}}},t.prototype.setTransitioning=function(e){this._transitioning=e},t.prototype.dispose=function(){e.removeData(this._element,i),e(this._element).find(this._config.parentTrigger).has(this._config.subMenu).children(this._config.triggerElement).off("click"),this._transitioning=null,this._config=null,this._element=null},t.prototype._getConfig=function(t){return t=e.extend({},a,t)},t._jQueryInterface=function(o){return this.each((function(){var r=e(this),s=r.data(i),l=e.extend({},a,r.data(),"object"===(void 0===o?"undefined":n(o))&&o);if(!s&&/dispose/.test(o)&&this.dispose(),s||(s=new t(this,l),r.data(i,s)),"string"==typeof o){if(void 0===s[o])throw new Error('No method named "'+o+'"');s[o]()}}))},t}();e.fn[t]=l._jQueryInterface,e.fn[t].Constructor=l,e.fn[t].noConflict=function(){return e.fn[t]=r,l._jQueryInterface}}(jQuery)})),function(e){e.fn.extend({slimScroll:function(n){var o=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},n);return this.each((function(){function i(t){if(c){var n=0;(t=t||window.event).wheelDelta&&(n=-t.wheelDelta/120),t.detail&&(n=t.detail/3);var i=t.target||t.srcTarget||t.srcElement;e(i).closest("."+o.wrapperClass).is(w.parent())&&r(n,!0),t.preventDefault&&!y&&t.preventDefault(),y||(t.returnValue=!1)}}function r(e,t,n){y=!1;var i=e,r=w.outerHeight()-I.outerHeight();if(t&&(i=parseInt(I.css("top"))+e*parseInt(o.wheelStep)/100*I.outerHeight(),i=Math.min(Math.max(i,0),r),i=e>0?Math.ceil(i):Math.floor(i),I.css({top:i+"px"})),i=(m=parseInt(I.css("top"))/(w.outerHeight()-I.outerHeight()))*(w[0].scrollHeight-w.outerHeight()),n){var a=(i=e)/w[0].scrollHeight*w.outerHeight();a=Math.min(Math.max(a,0),r),I.css({top:a+"px"})}w.scrollTop(i),w.trigger("slimscrolling",~~i),s(),l()}function a(){p=Math.max(w.outerHeight()/w[0].scrollHeight*w.outerHeight(),b),I.css({height:p+"px"});var e=p==w.outerHeight()?"none":"block";I.css({display:e})}function s(){if(a(),clearTimeout(f),m==~~m){if(y=o.allowPageScroll,g!=m){var e=0==~~m?"top":"bottom";w.trigger("slimscroll",e)}}else y=!1;return g=m,p>=w.outerHeight()?void(y=!0):(I.stop(!0,!0).fadeIn("fast"),void(o.railVisible&&E.stop(!0,!0).fadeIn("fast")))}function l(){o.alwaysVisible||(f=setTimeout((function(){o.disableFadeOut&&c||d||u||(I.fadeOut("slow"),E.fadeOut("slow"))}),1e3))}var c,d,u,f,h,p,m,g,v="
",b=30,y=!1,w=e(this);if(w.parent().hasClass(o.wrapperClass)){var C=w.scrollTop();if(I=w.closest("."+o.barClass),E=w.closest("."+o.railClass),a(),e.isPlainObject(n)){if("height"in n&&"auto"==n.height){w.parent().css("height","auto"),w.css("height","auto");var k=w.parent().parent().height();w.parent().css("height",k),w.css("height",k)}if("scrollTo"in n)C=parseInt(o.scrollTo);else if("scrollBy"in n)C+=parseInt(o.scrollBy);else if("destroy"in n)return I.remove(),E.remove(),void w.unwrap();r(C,!1,!0)}}else if(!e.isPlainObject(n)||!("destroy"in n)){o.height="auto"==o.height?w.parent().height():o.height;var T=e(v).addClass(o.wrapperClass).css({position:"relative",overflow:"hidden",width:o.width,height:o.height});w.css({overflow:"hidden",width:o.width,height:o.height});var E=e(v).addClass(o.railClass).css({width:o.size,height:"100%",position:"absolute",top:0,display:o.alwaysVisible&&o.railVisible?"block":"none","border-radius":o.railBorderRadius,background:o.railColor,opacity:o.railOpacity,zIndex:90}),I=e(v).addClass(o.barClass).css({background:o.color,width:o.size,position:"absolute",top:0,opacity:o.opacity,display:o.alwaysVisible?"block":"none","border-radius":o.borderRadius,BorderRadius:o.borderRadius,MozBorderRadius:o.borderRadius,WebkitBorderRadius:o.borderRadius,zIndex:99}),S="right"==o.position?{right:o.distance}:{left:o.distance};E.css(S),I.css(S),w.wrap(T),w.parent().append(I),w.parent().append(E),o.railDraggable&&I.bind("mousedown",(function(n){var o=e(document);return u=!0,t=parseFloat(I.css("top")),pageY=n.pageY,o.bind("mousemove.slimscroll",(function(e){currTop=t+e.pageY-pageY,I.css("top",currTop),r(0,I.position().top,!1)})),o.bind("mouseup.slimscroll",(function(e){u=!1,l(),o.unbind(".slimscroll")})),!1})).bind("selectstart.slimscroll",(function(e){return e.stopPropagation(),e.preventDefault(),!1})),E.hover((function(){s()}),(function(){l()})),I.hover((function(){d=!0}),(function(){d=!1})),w.hover((function(){c=!0,s(),l()}),(function(){c=!1,l()})),w.bind("touchstart",(function(e,t){e.originalEvent.touches.length&&(h=e.originalEvent.touches[0].pageY)})),w.bind("touchmove",(function(e){(y||e.originalEvent.preventDefault(),e.originalEvent.touches.length)&&(r((h-e.originalEvent.touches[0].pageY)/o.touchScrollStep,!0),h=e.originalEvent.touches[0].pageY)})),a(),"bottom"===o.start?(I.css({top:w.outerHeight()-I.outerHeight()}),r(0,!0)):"top"!==o.start&&(r(e(o.start).position().top,null,!0),o.alwaysVisible||I.hide()),function(e){window.addEventListener?(e.addEventListener("DOMMouseScroll",i,!1),e.addEventListener("mousewheel",i,!1)):document.attachEvent("onmousewheel",i)}(this)}})),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(jQuery),function(e){"use strict";function t(e){return function(e){return null!==e&&e===e.window}(e)?e:9===e.nodeType&&e.defaultView}function n(e){var n,o,i={top:0,left:0},r=e&&e.ownerDocument;return n=r.documentElement,void 0!==e.getBoundingClientRect&&(i=e.getBoundingClientRect()),o=t(r),{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}}function o(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}function i(t){var n=function(e){if(!1===l.allowEvent(e))return null;for(var t=null,n=e.target||e.srcElement;null!==n.parentElement;){if(!(n instanceof SVGElement||-1===n.className.indexOf("waves-effect"))){t=n;break}if(n.classList.contains("waves-effect")){t=n;break}n=n.parentElement}return t}(t);null!==n&&(s.show(t,n),"ontouchstart"in e&&(n.addEventListener("touchend",s.hide,!1),n.addEventListener("touchcancel",s.hide,!1)),n.addEventListener("mouseup",s.hide,!1),n.addEventListener("mouseleave",s.hide,!1))}var r=r||{},a=document.querySelectorAll.bind(document),s={duration:750,show:function(e,t){if(2===e.button)return!1;var i=t||this,r=document.createElement("div");r.className="waves-ripple",i.appendChild(r);var a=n(i),l=e.pageY-a.top,c=e.pageX-a.left,d="scale("+i.clientWidth/100*10+")";"touches"in e&&(l=e.touches[0].pageY-a.top,c=e.touches[0].pageX-a.left),r.setAttribute("data-hold",Date.now()),r.setAttribute("data-scale",d),r.setAttribute("data-x",c),r.setAttribute("data-y",l);var u={top:l+"px",left:c+"px"};r.className=r.className+" waves-notransition",r.setAttribute("style",o(u)),r.className=r.className.replace("waves-notransition",""),u["-webkit-transform"]=d,u["-moz-transform"]=d,u["-ms-transform"]=d,u["-o-transform"]=d,u.transform=d,u.opacity="1",u["-webkit-transition-duration"]=s.duration+"ms",u["-moz-transition-duration"]=s.duration+"ms",u["-o-transition-duration"]=s.duration+"ms",u["transition-duration"]=s.duration+"ms",u["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",u["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",u["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",u["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",r.setAttribute("style",o(u))},hide:function(e){l.touchup(e);var t=this,n=(t.clientWidth,null),i=t.getElementsByClassName("waves-ripple");if(!(i.length>0))return!1;var r=(n=i[i.length-1]).getAttribute("data-x"),a=n.getAttribute("data-y"),c=n.getAttribute("data-scale"),d=350-(Date.now()-Number(n.getAttribute("data-hold")));0>d&&(d=0),setTimeout((function(){var e={top:a+"px",left:r+"px",opacity:"0","-webkit-transition-duration":s.duration+"ms","-moz-transition-duration":s.duration+"ms","-o-transition-duration":s.duration+"ms","transition-duration":s.duration+"ms","-webkit-transform":c,"-moz-transform":c,"-ms-transform":c,"-o-transform":c,transform:c};n.setAttribute("style",o(e)),setTimeout((function(){try{t.removeChild(n)}catch(e){return!1}}),s.duration)}),d)},wrapInput:function(e){for(var t=0;t0&&(l.touches-=1)}),500):"mousedown"===e.type&&l.touches>0&&(t=!1),t},touchup:function(e){l.allowEvent(e)}};r.displayEffect=function(t){"duration"in(t=t||{})&&(s.duration=t.duration),s.wrapInput(a(".waves-effect")),"ontouchstart"in e&&document.body.addEventListener("touchstart",i,!1),document.body.addEventListener("mousedown",i,!1)},r.attach=function(t){"input"===t.tagName.toLowerCase()&&(s.wrapInput([t]),t=t.parentElement),"ontouchstart"in e&&t.addEventListener("touchstart",i,!1),t.addEventListener("mousedown",i,!1)},e.Waves=r,document.addEventListener("DOMContentLoaded",(function(){r.displayEffect()}),!1)}(window),function(){var e,t;e=window.jQuery,t=e(window),e.fn.stick_in_parent=function(n){var o,i,r,a,s,l,c,d,u,f,h,p;for(null==n&&(n={}),p=n.sticky_class,s=n.inner_scrolling,h=n.recalc_every,f=n.parent,d=n.offset_top,c=n.spacer,i=n.bottoming,null==d&&(d=0),null==f&&(f=void 0),null==s&&(s=!0),null==p&&(p="is_stuck"),o=e(document),null==i&&(i=!0),u=function(e){var t;return window.getComputedStyle?(e=window.getComputedStyle(e[0]),t=parseFloat(e.getPropertyValue("width"))+parseFloat(e.getPropertyValue("margin-left"))+parseFloat(e.getPropertyValue("margin-right")),"border-box"!==e.getPropertyValue("box-sizing")&&(t+=parseFloat(e.getPropertyValue("border-left-width"))+parseFloat(e.getPropertyValue("border-right-width"))+parseFloat(e.getPropertyValue("padding-left"))+parseFloat(e.getPropertyValue("padding-right"))),t):e.outerWidth(!0)},r=function(n,r,a,l,m,g,v,b){var y,w,C,k,T,E,I,S,N,A,x,R;if(!n.data("sticky_kit")){if(n.data("sticky_kit",!0),T=o.height(),I=n.parent(),null!=f&&(I=I.closest(f)),!I.length)throw"failed to find stick parent";if(y=C=!1,(x=null!=c?c&&n.closest(c):e(""))&&x.css("position",n.css("position")),S=function(){var e,t,i;if(!b&&(T=o.height(),e=parseInt(I.css("border-top-width"),10),t=parseInt(I.css("padding-top"),10),r=parseInt(I.css("padding-bottom"),10),a=I.offset().top+e+t,l=I.height(),C&&(y=C=!1,null==c&&(n.insertAfter(x),x.detach()),n.css({position:"",top:"",width:"",bottom:""}).removeClass(p),i=!0),m=n.offset().top-(parseInt(n.css("margin-top"),10)||0)-d,g=n.outerHeight(!0),v=n.css("float"),x&&x.css({width:u(n),height:g,display:n.css("display"),"vertical-align":n.css("vertical-align"),float:v}),i))return R()},S(),g!==l)return k=void 0,E=d,A=h,R=function(){var e,u,f,w;if(!b&&(f=!1,null!=A&&(0>=--A&&(A=h,S(),f=!0)),f||o.height()===T||S(),f=t.scrollTop(),null!=k&&(u=f-k),k=f,C?(i&&(w=f+g+E>l+a,y&&!w&&(y=!1,n.css({position:"fixed",bottom:"",top:E}).trigger("sticky_kit:unbottom"))),fe&&!y&&(E-=u,E=Math.max(e-g,E),E=Math.min(d,E),C&&n.css({top:E+"px"})))):f>m&&(C=!0,(e={position:"fixed",top:E}).width="border-box"===n.css("box-sizing")?n.outerWidth()+"px":n.width()+"px",n.css(e).addClass(p),null==c&&(n.after(x),"left"!==v&&"right"!==v||x.append(n)),n.trigger("sticky_kit:stick")),C&&i&&(null==w&&(w=f+g+E>l+a),!y&&w)))return y=!0,"static"===I.css("position")&&I.css({position:"relative"}),n.css({position:"absolute",bottom:r,top:"auto"}).trigger("sticky_kit:bottom")},N=function(){return S(),R()},w=function(){if(b=!0,t.off("touchmove",R),t.off("scroll",R),t.off("resize",N),e(document.body).off("sticky_kit:recalc",N),n.off("sticky_kit:detach",w),n.removeData("sticky_kit"),n.css({position:"",bottom:"",top:"",width:""}),I.position("position",""),C)return null==c&&("left"!==v&&"right"!==v||n.insertAfter(x),x.remove()),n.removeClass(p)},t.on("touchmove",R),t.on("scroll",R),t.on("resize",N),e(document.body).on("sticky_kit:recalc",N),n.on("sticky_kit:detach",w),setTimeout(R,0)}},a=0,l=this.length;a-1)},add:function(t){e.push(t)},delete:function(t){e.splice(e.indexOf(t),1)}}}(),r=function(e){return new Event(e)};try{new Event("test")}catch(e){r=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(a=function(e){return e},a.destroy=function(e){return e},a.update=function(e){return e}):(a=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){function t(){var t=window.getComputedStyle(e,null);p=t.overflowY,"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),h="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(h)&&(h=0),s()}function n(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,p=t,f&&(e.style.overflowY=t),a()}function o(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function a(){var t=e.style.height,n=o(e),i=document.documentElement&&document.documentElement.scrollTop;e.style.height="auto";var r=e.scrollHeight+h;return 0===e.scrollHeight?void(e.style.height=t):(e.style.height=r+"px",m=e.clientWidth,n.forEach((function(e){e.node.scrollTop=e.scrollTop})),void(i&&(document.documentElement.scrollTop=i)))}function s(){var t=e.style.height;if(a(),window.getComputedStyle(e,null).height!==e.style.height?"visible"!==p&&n("visible"):"hidden"!==p&&n("hidden"),t!==e.style.height){var o=r("autosize:resized");e.dispatchEvent(o)}}var l=void 0===arguments[1]?{}:arguments[1],c=l.setOverflowX,d=void 0===c||c,u=l.setOverflowY,f=void 0===u||u;if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!i.has(e)){var h=null,p=null,m=e.clientWidth,g=function(){e.clientWidth!==m&&s()},v=function(t){window.removeEventListener("resize",g,!1),e.removeEventListener("input",s,!1),e.removeEventListener("keyup",s,!1),e.removeEventListener("autosize:destroy",v,!1),e.removeEventListener("autosize:update",s,!1),i.delete(e),Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",v,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",s,!1),window.addEventListener("resize",g,!1),e.addEventListener("input",s,!1),e.addEventListener("autosize:update",s,!1),i.add(e),d&&(e.style.overflowX="hidden",e.style.wordWrap="break-word"),t()}}(e,t)})),e},a.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],n),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e}),t.exports=a})),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(window.jQuery)}((function(e){"use strict";var t,n="function"==typeof define&&define.amd,o=navigator.userAgent,i=/MSIE|Trident/i.test(o);if(i){var r=/MSIE (\d+[.]\d+)/.exec(o);r&&(t=parseFloat(r[1])),(r=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(o))&&(t=parseFloat(r[1]))}var a=/Edge\/\d+/.test(o),s=!!window.CodeMirror;if(!s&&n)if("function"==typeof __webpack_require__)try{require.resolve("codemirror"),s=!0}catch(e){}else if("undefined"!=typeof require)if(void 0!==require.resolve)try{require.resolve("codemirror"),s=!0}catch(e){}else void 0!==require.specified&&(s=require.specified("codemirror"));var l,c,d,u,f,h,p,m,g,v,b,y,w,C,k,T,E,I,S,N,A,x,R,L,H,D,P,F,M,z,B,_,O,$,U,j,V,W,q,K,Y,G,Q,X,Z,J,ee,te,ne="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,oe={isMac:navigator.appVersion.indexOf("Mac")>-1,isMSIE:i,isEdge:a,isFF:!a&&/firefox/i.test(o),isPhantom:/PhantomJS/i.test(o),isWebkit:!a&&/webkit/i.test(o),isChrome:!a&&/chrome/i.test(o),isSafari:!a&&/safari/i.test(o),browserVersion:t,jqueryVersion:parseFloat(e.fn.jquery),isSupportAmd:n,isSupportTouch:ne,hasCodeMirror:s,isFontInstalled:function(t){var n="Comic Sans MS"===t?"Courier New":"Comic Sans MS",o=e("").css({position:"absolute",left:"-9999px",top:"-9999px",fontSize:"200px"}).text("mmmmmmmmmwwwwwww").appendTo(document.body),i=o.css("fontFamily",n).width(),r=o.css("fontFamily",t+","+n).width();return o.remove(),i!==r},isW3CRangeSupport:!!document.createRange},ie=(l=0,{eq:function(e){return function(t){return e===t}},eq2:function(e,t){return e===t},peq2:function(e){return function(t,n){return t[e]===n[e]}},ok:function(){return!0},fail:function(){return!1},self:function(e){return e},not:function(e){return function(){return!e.apply(e,arguments)}},and:function(e,t){return function(n){return e(n)&&t(n)}},invoke:function(e,t){return function(){return e[t].apply(e,arguments)}},uniqueId:function(e){var t=++l+"";return e?e+t:t},rect2bnd:function(t){var n=e(document);return{top:t.top+n.scrollTop(),left:t.left+n.scrollLeft(),width:t.right-t.left,height:t.bottom-t.top}},invertObject:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t},namespaceToCamel:function(e,t){return(t=t||"")+e.split(".").map((function(e){return e.substring(0,1).toUpperCase()+e.substring(1)})).join("")},debounce:function(e,t,n){var o;return function(){var i=this,r=arguments,a=function(){o=null,n||e.apply(i,r)},s=n&&!o;clearTimeout(o),o=setTimeout(a,t),s&&e.apply(i,r)}}}),re=(f=function(t,n){return e.inArray(n,t)},{head:c=function(e){return e[0]},last:d=function(e){return e[e.length-1]},initial:function(e){return e.slice(0,e.length-1)},tail:u=function(e){return e.slice(1)},prev:function(e,t){var n=f(e,t);return-1===n?null:e[n-1]},next:function(e,t){var n=f(e,t);return-1===n?null:e[n+1]},find:function(e,t){for(var n=0,o=e.length;n
",H=function(e){return g(e)?e.nodeValue.length:e?e.childNodes.length:0},D=function(e){var t=H(e);return 0===t||!g(e)&&1===t&&e.innerHTML===L||!(!re.all(e.childNodes,g)||""!==e.innerHTML)},P=function(e){v(e)||H(e)||(e.innerHTML=L)},F=function(e,t){for(;e;){if(t(e))return e;if(p(e))break;e=e.parentNode}return null},M=function(e,t){t=t||ie.fail;var n=[];return F(e,(function(e){return p(e)||n.push(e),t(e)})),n},z=function(e,t){t=t||ie.fail;for(var n=[];e&&!t(e);)n.push(e),e=e.nextSibling;return n},B=function(e,t){var n=t.nextSibling,o=t.parentNode;return n?o.insertBefore(e,n):o.appendChild(e),e},_=function(t,n){return e.each(n,(function(e,n){t.appendChild(n)})),t},O=function(e){return 0===e.offset},$=function(e){return e.offset===H(e.node)},U=function(e){return O(e)||$(e)},j=function(e,t){for(;e&&e!==t;){if(0!==W(e))return!1;e=e.parentNode}return!0},V=function(e,t){if(!t)return!1;for(;e&&e!==t;){if(W(e)!==H(e.parentNode)-1)return!1;e=e.parentNode}return!0},W=function(e){for(var t=0;e=e.previousSibling;)t+=1;return t},q=function(e){return!!(e&&e.childNodes&&e.childNodes.length)},K=function(e,t){var n,o;if(0===e.offset){if(p(e.node))return null;n=e.node.parentNode,o=W(e.node)}else q(e.node)?(n=e.node.childNodes[e.offset-1],o=H(n)):(n=e.node,o=t?0:e.offset-1);return{node:n,offset:o}},Y=function(e,t){var n,o;if(H(e.node)===e.offset){if(p(e.node))return null;n=e.node.parentNode,o=W(e.node)+1}else q(e.node)?(n=e.node.childNodes[e.offset],o=0):(n=e.node,o=t?H(e.node):e.offset+1);return{node:n,offset:o}},G=function(e,t){return e.node===t.node&&e.offset===t.offset},Q=function(e,t){var n=t&&t.isSkipPaddingBlankHTML,o=t&&t.isNotSplitEdgePoint;if(U(e)&&(g(e.node)||o)){if(O(e))return e.node;if($(e))return e.node.nextSibling}if(g(e.node))return e.node.splitText(e.offset);var i=e.node.childNodes[e.offset],r=B(e.node.cloneNode(!1),e.node);return _(r,z(i)),n||(P(e.node),P(r)),r},X=function(e,t,n){var o=M(t.node,ie.eq(e));return o.length?1===o.length?Q(t,n):o.reduce((function(e,o){return e===t.node&&(e=Q(t,n)),Q({node:o,offset:e?se.position(e):H(o)},n)})):null},Z=function(e){return document.createElement(e)},J=function(e,t){if(e&&e.parentNode){if(e.removeNode)return e.removeNode(t);var n=e.parentNode;if(!t){var o,i,r=[];for(o=0,i=e.childNodes.length;o"+L+"",makePredByNodeName:m,isEditable:p,isControlSizing:function(t){return t&&e(t).hasClass("note-control-sizing")},isText:g,isElement:function(e){return e&&1===e.nodeType},isVoid:v,isPara:b,isPurePara:function(e){return b(e)&&!w(e)},isHeading:function(e){return e&&/^H[1-7]/.test(e.nodeName.toUpperCase())},isInline:T,isBlock:ie.not(T),isBodyInline:function(e){return T(e)&&!F(e,b)},isBody:R,isParaInline:function(e){return T(e)&&!!F(e,b)},isPre:y,isList:E,isTable:C,isData:k,isCell:S,isBlockquote:N,isBodyContainer:A,isAnchor:x,isDiv:m("DIV"),isLi:w,isBR:m("BR"),isSpan:m("SPAN"),isB:m("B"),isU:m("U"),isS:m("S"),isI:m("I"),isImg:m("IMG"),isTextarea:ee,isEmpty:D,isEmptyAnchor:ie.and(x,D),isClosestSibling:function(e,t){return e.nextSibling===t||e.previousSibling===t},withClosestSiblings:function(e,t){t=t||ie.ok;var n=[];return e.previousSibling&&t(e.previousSibling)&&n.push(e.previousSibling),n.push(e),e.nextSibling&&t(e.nextSibling)&&n.push(e.nextSibling),n},nodeLength:H,isLeftEdgePoint:O,isRightEdgePoint:$,isEdgePoint:U,isLeftEdgeOf:j,isRightEdgeOf:V,isLeftEdgePointOf:function(e,t){return O(e)&&j(e.node,t)},isRightEdgePointOf:function(e,t){return $(e)&&V(e.node,t)},prevPoint:K,nextPoint:Y,isSamePoint:G,isVisiblePoint:function(e){if(g(e.node)||!q(e.node)||D(e.node))return!0;var t=e.node.childNodes[e.offset-1],n=e.node.childNodes[e.offset];return!(t&&!v(t)||n&&!v(n))},prevPointUntil:function(e,t){for(;e;){if(t(e))return e;e=K(e)}return null},nextPointUntil:function(e,t){for(;e;){if(t(e))return e;e=Y(e)}return null},isCharPoint:function(e){if(!g(e.node))return!1;var t=e.node.nodeValue.charAt(e.offset-1);return t&&" "!==t&&t!==ae},walkPoint:function(e,t,n,o){for(var i=e;i&&(n(i),!G(i,t));){var r=o&&e.node!==i.node&&t.node!==i.node;i=Y(i,r)}},ancestor:F,singleChildAncestor:function(e,t){for(e=e.parentNode;e&&1===H(e);){if(t(e))return e;if(p(e))break;e=e.parentNode}return null},listAncestor:M,lastAncestor:function(e,t){var n=M(e);return re.last(n.filter(t))},listNext:z,listPrev:function(e,t){t=t||ie.fail;for(var n=[];e&&!t(e);)n.push(e),e=e.previousSibling;return n},listDescendant:function(e,t){var n=[];return t=t||ie.ok,function o(i){e!==i&&t(i)&&n.push(i);for(var r=0,a=i.childNodes.length;r-1)return i;return null},wrap:function(t,n){var o=t.parentNode,i=e("<"+n+">")[0];return o.insertBefore(i,t),i.appendChild(t),i},insertAfter:B,appendChildNodes:_,position:W,hasChildren:q,makeOffsetPath:function(e,t){return M(t,ie.eq(e)).map(W).reverse()},fromOffsetPath:function(e,t){for(var n=e,o=0,i=t.length;o\s]*)(.*?)(\s*\/?>)/g,(function(e,t,n){n=n.toUpperCase();var o=/^DIV|^TD|^TH|^P|^LI|^H[1-7]/.test(n)&&!!t,i=/^BLOCKQUOTE|^TABLE|^TBODY|^TR|^HR|^UL|^OL/.test(n);return e+(o||i?"\n":"")})),o=e.trim(o)),o},value:te,posFromPlaceholder:function(t){var n=e(t),o=n.offset(),i=n.outerHeight(!0);return{left:o.left,top:o.top+i}},attachEvents:function(e,t){Object.keys(t).forEach((function(n){e.on(n,t[n])}))},detachEvents:function(e,t){Object.keys(t).forEach((function(n){e.off(n,t[n])}))},isCustomStyleTag:function(e){return e&&!se.isText(e)&&re.contains(e.classList,"note-styletag")}}),le=function(t,n){var o=this,i=e.summernote.ui;return this.memos={},this.modules={},this.layoutInfo={},this.options=n,this.initialize=function(){return this.layoutInfo=i.createLayout(t,n),this._initialize(),t.hide(),this},this.destroy=function(){this._destroy(),t.removeData("summernote"),i.removeLayout(t,this.layoutInfo)},this.reset=function(){var e=o.isDisabled();this.code(se.emptyPara),this._destroy(),this._initialize(),e&&o.disable()},this._initialize=function(){var t=e.extend({},this.options.buttons);Object.keys(t).forEach((function(e){o.memo("button."+e,t[e])}));var n=e.extend({},this.options.modules,e.summernote.plugins||{});Object.keys(n).forEach((function(e){o.module(e,n[e],!0)})),Object.keys(this.modules).forEach((function(e){o.initializeModule(e)}))},this._destroy=function(){Object.keys(this.modules).reverse().forEach((function(e){o.removeModule(e)})),Object.keys(this.memos).forEach((function(e){o.removeMemo(e)})),this.triggerEvent("destroy",this)},this.code=function(e){var n=this.invoke("codeview.isActivated");if(void 0===e)return this.invoke("codeview.sync"),n?this.layoutInfo.codable.val():this.layoutInfo.editable.html();n?this.layoutInfo.codable.val(e):this.layoutInfo.editable.html(e),t.val(e),this.triggerEvent("change",e)},this.isDisabled=function(){return"false"===this.layoutInfo.editable.attr("contenteditable")},this.enable=function(){this.layoutInfo.editable.attr("contenteditable",!0),this.invoke("toolbar.activate",!0),this.triggerEvent("disable",!1)},this.disable=function(){this.invoke("codeview.isActivated")&&this.invoke("codeview.deactivate"),this.layoutInfo.editable.attr("contenteditable",!1),this.invoke("toolbar.deactivate",!0),this.triggerEvent("disable",!0)},this.triggerEvent=function(){var e=re.head(arguments),n=re.tail(re.from(arguments)),o=this.options.callbacks[ie.namespaceToCamel(e,"on")];o&&o.apply(t[0],n),t.trigger("summernote."+e,n)},this.initializeModule=function(e){var n=this.modules[e];n.shouldInitialize=n.shouldInitialize||ie.ok,n.shouldInitialize()&&(n.initialize&&n.initialize(),n.events&&se.attachEvents(t,n.events))},this.module=function(e,t,n){if(1===arguments.length)return this.modules[e];this.modules[e]=new t(this),n||this.initializeModule(e)},this.removeModule=function(e){var n=this.modules[e];n.shouldInitialize()&&(n.events&&se.detachEvents(t,n.events),n.destroy&&n.destroy()),delete this.modules[e]},this.memo=function(e,t){if(1===arguments.length)return this.memos[e];this.memos[e]=t},this.removeMemo=function(e){this.memos[e]&&this.memos[e].destroy&&this.memos[e].destroy(),delete this.memos[e]},this.createInvokeHandlerAndUpdateState=function(e,t){return function(n){o.createInvokeHandler(e,t)(n),o.invoke("buttons.updateCurrentStyle")}},this.createInvokeHandler=function(t,n){return function(i){i.preventDefault();var r=e(i.target);o.invoke(t,n||r.closest("[data-value]").data("value"),r)}},this.invoke=function(){var e=re.head(arguments),t=re.tail(re.from(arguments)),n=e.split("."),o=n.length>1,i=o&&re.head(n),r=o?re.last(n):re.head(n),a=this.modules[i||"editor"];return!i&&this[r]?this[r].apply(this,t):a&&a[r]&&a.shouldInitialize()?a[r].apply(a,t):void 0},this.initialize()};e.fn.extend({summernote:function(){var t=e.type(re.head(arguments)),n="string"===t,o="object"===t,i=o?re.head(arguments):{};(i=e.extend({},e.summernote.options,i)).langInfo=e.extend(!0,{},e.summernote.lang["en-US"],e.summernote.lang[i.lang]),i.icons=e.extend(!0,{},e.summernote.options.icons,i.icons),i.tooltip="auto"===i.tooltip?!oe.isSupportTouch:i.tooltip,this.each((function(t,n){var o=e(n);if(!o.data("summernote")){var r=new le(o,i);o.data("summernote",r),o.data("summernote").triggerEvent("init",r.layoutInfo)}}));var r=this.first();if(r.length){var a=r.data("summernote");if(n)return a.invoke.apply(a,re.from(arguments));i.focus&&a.invoke("editor.focus")}return this}});var ce=function(t,n,o,i){this.render=function(r){var a=e(t);if(o&&o.contents&&a.html(o.contents),o&&o.className&&a.addClass(o.className),o&&o.data&&e.each(o.data,(function(e,t){a.attr("data-"+e,t)})),o&&o.click&&a.on("click",o.click),n){var s=a.find(".note-children-container");n.forEach((function(e){e.render(s.length?s:a)}))}return i&&i(a,o),o&&o.callback&&o.callback(a),r&&r.append(a),a}},de=function(t,n){return function(){var o=e.isArray(arguments[0])?arguments[0]:[],i="object"==typeof arguments[1]?arguments[1]:arguments[0];return i&&i.children&&(o=i.children),new ce(t,o,i,n)}},ue=de(''),fe=de(''),he=de(''),pe=de(''),me=de(''),ge=de(['"].join("")),ve=de(''),be=de(''),ye=de(''),we=de('