mirror of
https://github.com/flarum/framework.git
synced 2024-12-17 02:04:09 +08:00
40 lines
271 KiB
JavaScript
40 lines
271 KiB
JavaScript
flarum.core=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=90)}([function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e=null),this.data=t,this.freshness=new Date,this.exists=!1,this.store=e}var e=t.prototype;return e.id=function(){return this.data.id},e.attribute=function(t){return this.data.attributes[t]},e.pushData=function(e){for(var n in e)if("object"==typeof e[n])for(var r in this.data[n]=this.data[n]||{},e[n])e[n][r]instanceof t&&(e[n][r]={data:t.getIdentifier(e[n][r])}),this.data[n][r]=e[n][r];else this.data[n]=e[n];this.freshness=new Date},e.pushAttributes=function(t){this.pushData({attributes:t})},e.save=function(e,n){var r=this;void 0===n&&(n={});var i={type:this.data.type,id:this.data.id,attributes:e};if(e.relationships){for(var o in i.relationships={},e.relationships){var a=e.relationships[o];i.relationships[o]={data:a instanceof Array?a.map(t.getIdentifier):t.getIdentifier(a)}}delete e.relationships}var s=this.copyData();this.pushData(i);var u={data:i};return n.meta&&(u.meta=n.meta),app.request(Object.assign({method:this.exists?"PATCH":"POST",url:app.forum.attribute("apiUrl")+this.apiEndpoint(),data:u},n)).then(function(t){return r.store.data[t.data.type]=r.store.data[t.data.type]||{},r.store.data[t.data.type][t.data.id]=r,r.store.pushPayload(t)},function(t){throw r.pushData(s),m.lazyRedraw(),t})},e.delete=function(t,e){var n=this;return void 0===e&&(e={}),this.exists?app.request(Object.assign({method:"DELETE",url:app.forum.attribute("apiUrl")+this.apiEndpoint(),data:t},e)).then(function(){n.exists=!1,n.store.remove(n)}):m.deferred.resolve().promise},e.apiEndpoint=function(){return"/"+this.data.type+(this.exists?"/"+this.data.id:"")},e.copyData=function(){return JSON.parse(JSON.stringify(this.data))},t.attribute=function(t,e){return function(){var n=this.data.attributes&&this.data.attributes[t];return e?e(n):n}},t.hasOne=function(t){return function(){if(this.data.relationships){var e=this.data.relationships[t];if(e)return app.store.getById(e.data.type,e.data.id)}return!1}},t.hasMany=function(t){return function(){if(this.data.relationships){var e=this.data.relationships[t];if(e)return e.data.map(function(t){return app.store.getById(t.type,t.id)})}return!1}},t.transformDate=function(t){return t?new Date(t):null},t.getIdentifier=function(t){return{type:t.data.type,id:t.data.id}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e=null),e&&(t.children=e),this.constructor.initProps(t),this.props=t,this.element=null,this.retain=!1,this.init()}var e=t.prototype;return e.init=function(){},e.onunload=function(){},e.render=function(){var t=this,e=this.retain?{subtree:"retain"}:this.view();e.attrs=e.attrs||{};var n=e.attrs.config;return e.attrs.config=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t.element=r[0],t.config.apply(t,r.slice(1)),n&&n.apply(t,r)},e},e.$=function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){var e=$(this.element);return t?e.find(t):e}),e.config=function(){},e.view=function(){throw new Error("Component#view must be implemented by subclass")},t.component=function(t,e){void 0===t&&(t={}),void 0===e&&(e=null);var n=Object.assign({},t);e&&(n.children=e),this.initProps(n);var r=function(t){return t.props=n,t.render()};r.$original=this.prototype.view;var i={controller:this.bind(void 0,n),view:r,props:n,component:this};return n.key&&(i.attrs={key:n.key}),i},t.initProps=function(t){},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),i=n(2),o=n(5),a=n(9),s=n(8),u=n(15),l=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.view=function(){var t=Object.assign({},this.props);delete t.children,t.className=t.className||"",t.type=t.type||"button",!t.title&&this.props.children&&(t.title=Object(s.a)(this.props.children)),Object(a.a)(t,"icon")&&(t.className+=" hasIcon");var e=Object(a.a)(t,"loading");return(t.disabled||e)&&(t.className+=" disabled"+(e?" loading":""),delete t.onclick),m("button",t,this.getButtonContent())},n.getButtonContent=function(){var t=this.props.icon;return[t&&!0!==t?Object(o.a)(t,{className:"Button-icon"}):"",this.props.children?m("span",{className:"Button-label"},this.props.children):"",this.props.loading?u.a.component({size:"tiny",className:"LoadingIndicator--inline"}):""]},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=function(t,e){this.content=t,this.priority=e},i=function(){function t(){this.items={}}var e=t.prototype;return e.isEmpty=function(){for(var t in this.items)if(this.items.hasOwnProperty(t))return!1;return!0},e.has=function(t){return!!this.items[t]},e.get=function(t){return this.items[t].content},e.add=function(t,e,n){void 0===n&&(n=0),this.items[t]=new r(e,n)},e.replace=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null),this.items[t]&&(null!==e&&(this.items[t].content=e),null!==n&&(this.items[t].priority=n))},e.remove=function(t){delete this.items[t]},e.merge=function(t){for(var e in t.items)t.items.hasOwnProperty(e)&&t.items[e]instanceof r&&(this.items[e]=t.items[e])},e.toArray=function(){var t=[];for(var e in this.items)this.items.hasOwnProperty(e)&&this.items[e]instanceof r&&(this.items[e].content=Object(this.items[e].content),this.items[e].content.itemName=e,t.push(this.items[e]),this.items[e].key=t.length);return t.sort(function(t,e){return t.priority===e.priority?t.key-e.key:t.priority>e.priority?-1:1}).map(function(t){return t.content})},t}()},function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e={}),e.className="icon "+t+" "+(e.className||""),m("i",e)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(20),i=n(24);function o(t){return t&&t.component===r.a}function a(t){return t instanceof Array||(t=[t]),function(t){var e,n=[];return t.forEach(function(r,i){(!o(r)||e&&!o(e)&&i!==t.length-1)&&(e=r,n.push(r))}),n}(t).map(function(t){var e=t.component&&t.component.isListItem,n=t.component&&t.component.isActive&&t.component.isActive(t.props),r=t.props?t.props.itemClassName:t.itemClassName;return e&&(t.attrs=t.attrs||{},t.attrs.key=t.attrs.key||t.itemName),e?t:m("li",{className:Object(i.a)([t.itemName?"item-"+t.itemName:"",r,n?"active":""]),key:t.itemName},t)})}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t){return t instanceof Array?t.map(function(t){return r(t)}).join(""):"object"==typeof t&&null!==t?r(t.children):t}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t,e){var n=t[e];return delete t[e],n}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";var r=n(0),i=n(1),o=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e}(i.a);Object.assign(o.prototype,{nameSingular:i.a.attribute("nameSingular"),namePlural:i.a.attribute("namePlural"),color:i.a.attribute("color"),icon:i.a.attribute("icon")}),o.ADMINISTRATOR_ID="1",o.GUEST_ID="2",o.MEMBER_ID="3",e.a=o},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=n(2),o=(n(17),n(3)),a=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.init=function(){this.alert=null},n.view=function(){return this.alert&&(this.alert.props.dismissible=!1),m("div",{className:"Modal modal-dialog "+this.className()},m("div",{className:"Modal-content"},this.isDismissible()?m("div",{className:"Modal-close App-backControl"},o.a.component({icon:"fas fa-times",onclick:this.hide.bind(this),className:"Button Button--icon Button--link"})):"",m("form",{onsubmit:this.onsubmit.bind(this)},m("div",{className:"Modal-header"},m("h3",{className:"App-titleControl App-titleControl--text"},this.title())),alert?m("div",{className:"Modal-alert"},this.alert):"",this.content())))},n.isDismissible=function(){return!0},n.className=function(){},n.title=function(){},n.content=function(){},n.onsubmit=function(){},n.onready=function(){this.$("form").find("input, select, textarea").first().focus().select()},n.onhide=function(){},n.hide=function(){app.modal.close()},n.loaded=function(){this.loading=!1,m.redraw()},n.onerror=function(t){this.alert=t.alert,m.redraw(),422===t.status&&t.response.errors?this.$("form [name="+t.response.errors[0].source.pointer.replace("/data/attributes/","")+"]").select():this.onready()},e}(i.a)},function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=e.slice(0,-1),o=e.slice(-1)[0],a={};return function(){var t=this,e=!1;return i.forEach(function(n){var r="function"==typeof t[n]?t[n]():t[n];a[n]!==r&&(e=!0,a[n]=r)}),e&&(r=o.apply(this,i.map(function(t){return a[t]}))),r}}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=n(2),o=n(5),a=n(6),s=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t),e.initProps=function(e){t.initProps.call(this,e),e.className=e.className||"",e.buttonClassName=e.buttonClassName||"",e.menuClassName=e.menuClassName||"",e.label=e.label||"",e.caretIcon=void 0!==e.caretIcon?e.caretIcon:"fas fa-caret-down"};var n=e.prototype;return n.init=function(){this.showing=!1},n.view=function(){var t=this.props.children?Object(a.a)(this.props.children):[];return m("div",{className:"ButtonGroup Dropdown dropdown "+this.props.className+" itemCount"+t.length+(this.showing?" open":"")},this.getButton(),this.getMenu(t))},n.config=function(t){var e=this;t||(this.$().on("shown.bs.dropdown",function(){e.showing=!0,e.props.onshow&&e.props.onshow(),m.redraw();var t=e.$(".Dropdown-menu"),n=t.hasClass("Dropdown-menu--right");t.removeClass("Dropdown-menu--top Dropdown-menu--right"),t.toggleClass("Dropdown-menu--top",t.offset().top+t.height()>$(window).scrollTop()+$(window).height()),t.offset().top<0&&t.removeClass("Dropdown-menu--top"),t.toggleClass("Dropdown-menu--right",n||t.offset().left+t.width()>$(window).scrollLeft()+$(window).width())}),this.$().on("hidden.bs.dropdown",function(){e.showing=!1,e.props.onhide&&e.props.onhide(),m.redraw()}))},n.getButton=function(){return m("button",{className:"Dropdown-toggle "+this.props.buttonClassName,"data-toggle":"dropdown",onclick:this.props.onclick},this.getButtonContent())},n.getButtonContent=function(){return[this.props.icon?Object(o.a)(this.props.icon,{className:"Button-icon"}):"",m("span",{className:"Button-label"},this.props.label),this.props.caretIcon?Object(o.a)(this.props.caretIcon,{className:"Button-caret"}):""]},n.getMenu=function(t){return m("ul",{className:"Dropdown-menu dropdown-menu "+this.props.menuClassName},t)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(56);function i(t,e){void 0===e&&(e={}),e.className="Avatar "+(e.className||"");var n="",i="undefined"===e.title||e.title;if(i||delete e.title,t){var o=t.displayName()||"?",a=t.avatarUrl();if(i&&(e.title=e.title||o),a)return m("img",Object(r.a)({},e,{src:a}));n=o.charAt(0).toUpperCase(),e.style={background:t.color()}}return m("span",e,n)}},function(t,e,n){"use strict";var r=n(0),i=n(2),o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},a={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",fadeColor:"transparent",opacity:.25,rotate:0,direction:1,speed:1,trail:100,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:"none",position:"absolute"},s=function(){function t(t){void 0===t&&(t={}),this.opts=o({},a,t)}return t.prototype.spin=function(t){var e,n,r,i=this;this.stop(),this.el=document.createElement("div"),this.el.className=this.opts.className,this.el.setAttribute("role","progressbar"),c(this.el,{position:this.opts.position,width:0,zIndex:this.opts.zIndex,left:this.opts.left,top:this.opts.top,transform:"scale("+this.opts.scale+")"}),t&&t.insertBefore(this.el,t.firstChild||null),"undefined"!=typeof requestAnimationFrame?(e=requestAnimationFrame,n=function(){return performance.now()}):(e=function(t){return setTimeout(t,1e3/i.opts.fps)},n=function(){return Date.now()});var o=0,a=function(){var t=n();if(void 0===r&&(r=t-1),o+=function(t,e){return t/1e3*e}(t-r,i.opts.speed),r=t,o>1&&(o-=Math.floor(o)),i.el.childNodes.length===i.opts.lines)for(var s=0;s<i.opts.lines;s++){var l=u(s,o,i.opts);i.el.childNodes[s].childNodes[0].style.opacity=l.toString()}i.animateId=i.el?e(a):void 0};return function(t,e){var n=Math.round(e.corners*e.width*500)/1e3+"px",r="none";!0===e.shadow?r="0 2px 4px #000":"string"==typeof e.shadow&&(r=e.shadow);for(var i=function(t){for(var e=/^\s*([a-zA-Z]+\s+)?(-?\d+(\.\d+)?)([a-zA-Z]*)\s+(-?\d+(\.\d+)?)([a-zA-Z]*)(.*)$/,n=[],r=0,i=t.split(",");r<i.length;r++){var o=i[r],a=o.match(e);if(null!==a){var s=+a[2],u=+a[5],l=a[4],c=a[7];0!==s||l||(l=c),0!==u||c||(c=l),l===c&&n.push({prefix:a[1]||"",x:s,y:u,xUnits:l,yUnits:c,end:a[8]})}}return n}(r),o=0;o<e.lines;o++){var a=~~(360/e.lines*o+e.rotate),s=c(document.createElement("div"),{position:"absolute",top:-e.width/2+"px",width:e.length+e.width+"px",height:e.width+"px",background:d(e.fadeColor,o),borderRadius:n,transformOrigin:"left",transform:"rotate("+a+"deg) translateX("+e.radius+"px)"}),u=c(document.createElement("div"),{width:"100%",height:"100%",background:d(e.color,o),borderRadius:n,boxShadow:p(i,a),opacity:e.opacity});s.appendChild(u),t.appendChild(s)}}(this.el,this.opts),a(),this},t.prototype.stop=function(){return this.el&&("undefined"!=typeof requestAnimationFrame?cancelAnimationFrame(this.animateId):clearTimeout(this.animateId),this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.el=void 0),this},t}();function u(t,e,n){var r=e-(t+1)/n.lines*n.direction;(r<0||r>1)&&(r+=n.direction);var i=1-r/(n.trail/100);return i<0?n.opacity:i*(1-n.opacity)+n.opacity}function l(t,e){if(void 0!==t.style[e])return e;var n="ms"+e.charAt(0).toUpperCase()+e.slice(1);return void 0!==t.style[n]?n:""}function c(t,e){for(var n in e)t.style[l(t,n)||n]=e[n];return t}function d(t,e){return"string"==typeof t?t:t[e%t.length]}function p(t,e){for(var n=[],r=0,i=t;r<i.length;r++){var o=i[r],a=f(o.x,o.y,e);n.push(o.prefix+a[0]+o.xUnits+" "+a[1]+o.yUnits+o.end)}return n.join(", ")}function f(t,e,n){var r=n*Math.PI/180,i=Math.sin(r),o=Math.cos(r);return[Math.round(1e3*(t*o+e*i))/1e3,Math.round(1e3*(-t*i+e*o))/1e3]}n.d(e,"a",function(){return h});var h=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.view=function(){var t=Object.assign({},this.props);return t.className="LoadingIndicator "+(t.className||""),delete t.size,m("div",t,m.trust(" "))},n.config=function(t){if(!t){var e={zIndex:"auto",color:this.$().css("color")};switch(this.props.size){case"large":Object.assign(e,{lines:10,length:8,width:4,radius:8});break;default:Object.assign(e,{lines:8,length:4,width:3,radius:5})}new s(e).spin(this.element)}},e}(i.a)},function(t,e,n){"use strict";function r(t){var e=t&&t.displayName()||app.translator.trans("core.lib.username.deleted_text");return m("span",{className:"username"},e)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),i=n(2),o=n(3),a=n(6),s=n(9),u=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.view=function(){var t=Object.assign({},this.props),e=Object(s.a)(t,"type");t.className="Alert Alert--"+e+" "+(t.className||"");var n=Object(s.a)(t,"children"),r=Object(s.a)(t,"controls")||[],i=Object(s.a)(t,"dismissible"),u=Object(s.a)(t,"ondismiss"),l=[];return(i||void 0===i)&&l.push(m(o.a,{icon:"fas fa-times",className:"Button Button--link Button--icon Alert-dismiss",onclick:u})),m("div",t,m("span",{className:"Alert-body"},n),m("ul",{className:"Alert-controls"},Object(a.a)(r.concat(l))))},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.initProps=function(t){t.active=this.isActive(t),t.config=t.config||m.route},e.prototype.view=function(){var e=t.prototype.view.call(this);return e.tag="a",e},e.isActive=function(t){return void 0!==t.active?t.active:m.route()===t.href},e}(n(3).a)},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";var r=n(0),i=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.view=function(){return m("li",{className:"Dropdown-separator"})},e}(n(2).a);i.isListItem=!0,e.a=i},function(t,e,n){"use strict";function r(t){var e=moment(t),n=moment();e.isAfter(n)&&(e=n);return e.diff(moment())<-2592e6?e.year()===moment().year()?e.format("D MMM"):e.format("MMM 'YY"):e.fromNow()}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=n(2),o=n(5),a=n(9),s=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.view=function(){var t=Object.assign({},this.props),e=Object(a.a)(t,"type"),n=Object(a.a)(t,"icon");return t.className="Badge "+(e?"Badge--"+e:"")+" "+(t.className||""),t.title=Object(a.a)(t,"label")||"",m("span",t,n?Object(o.a)(n,{className:"Badge-icon"}):m.trust(" "))},n.config=function(t){t||this.props.label&&this.$().tooltip({container:"body"})},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=n(2),o=n(6),a=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.view=function(){return m("fieldset",{className:this.props.className},m("legend",null,this.props.label),m("ul",null,Object(o.a)(this.props.children)))},e}(i.a)},function(t,e,n){"use strict";function r(t){var e;if(t instanceof Array)e=t.filter(function(t){return t});else for(var n in e=[],t)t[n]&&e.push(n);return e.join(" ")}n.d(e,"a",function(){return r})},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=0),(n>0?"...":"")+t.substring(n,n+e)+(t.length>n+e?"...":"")}function i(t){return t.toLowerCase().replace(/[^a-z0-9]/gi,"-").replace(/-+/g,"-").replace(/-$|^-/g,"")}function o(t){var e=t.replace(/(<\/p>|<br>)/g,"$1 ").replace(/<img\b[^>]*>/gi," "),n=$("<div/>").html(e);return n.find(o.removeSelectors.join(",")).remove(),n.text().replace(/\s+/g," ").trim()}function a(t){return t.substr(0,1).toUpperCase()+t.substr(1)}n.r(e),n.d(e,"truncate",function(){return r}),n.d(e,"slug",function(){return i}),n.d(e,"getPlainContent",function(){return o}),n.d(e,"ucfirst",function(){return a}),o.removeSelectors=["blockquote","script"]},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=n(13),o=n(5),a=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.initProps=function(e){e.caretIcon=void 0!==e.caretIcon?e.caretIcon:"fas fa-sort",t.initProps.call(this,e),e.className+=" Dropdown--select"},e.prototype.getButtonContent=function(){var t=this.props.children.filter(function(t){return t.props.active})[0],e=t&&t.props.children||this.props.defaultLabel;return e instanceof Array&&(e=e[0]),[m("span",{className:"Button-label"},e),Object(o.a)(this.props.caretIcon,{className:"Button-caret"})]},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.initProps=function(e){t.initProps.call(this,e),e.group&&(e.icon=e.group.icon(),e.style={backgroundColor:e.group.color()},e.label=void 0===e.label?e.group.nameSingular():e.label,e.type="group--"+e.group.id(),delete e.group)},e}(n(22).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(26);function i(t,e,n){if(!e&&!n)return t;var i=e instanceof RegExp?e:new RegExp(e,"gi"),o=t,a=0;return n&&(e&&(a=Math.max(0,t.search(i)-n/2)),o=Object(r.truncate)(o,n,a)),o=$("<div/>").text(o).html(),e&&(o=o.replace(i,"<mark>$&</mark>")),m.trust(o)}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},i=function(){function t(t){this.callback=t,this.lastTop=-1}var e=t.prototype;return e.loop=function(){this.active&&(this.update(),r(this.loop.bind(this)))},e.update=function(t){var e=window.pageYOffset;(this.lastTop!==e||t)&&(this.callback(e),this.lastTop=e)},e.start=function(){this.active||(this.active=!0,this.loop())},e.stop=function(){this.active=!1},t}()},function(t,e,n){"use strict";function r(t,e,n){var r=t[e];t[e]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var o=r?r.apply(this,e):void 0;return n.apply(this,[o].concat(e)),o},Object.assign(t[e],r)}function i(t,e,n){var r=t[e];t[e]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return n.apply(this,[r.bind(this)].concat(e))},Object.assign(t[e],r)}n.r(e),n.d(e,"extend",function(){return r}),n.d(e,"override",function(){return i})},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.initProps=function(e){t.initProps.call(this,e),e.className=(e.className||"")+" Checkbox--switch"},e.prototype.getDisplay=function(){return this.loading?t.prototype.getDisplay.call(this):""},e}(n(37).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),i=n(1),o=n(45),a=n(4),s=n(12),u=n(28),l=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e}(i.a);Object.assign(l.prototype,{username:i.a.attribute("username"),displayName:i.a.attribute("displayName"),email:i.a.attribute("email"),isActivated:i.a.attribute("isActivated"),password:i.a.attribute("password"),avatarUrl:i.a.attribute("avatarUrl"),preferences:i.a.attribute("preferences"),groups:i.a.hasMany("groups"),joinTime:i.a.attribute("joinTime",i.a.transformDate),lastSeenTime:i.a.attribute("lastSeenTime",i.a.transformDate),readTime:i.a.attribute("readTime",i.a.transformDate),unreadNotificationsCount:i.a.attribute("unreadNotificationsCount"),newNotificationsCount:i.a.attribute("newNotificationsCount"),discussionsCount:i.a.attribute("discussionsCount"),commentsCount:i.a.attribute("commentsCount"),canEdit:i.a.attribute("canEdit"),canDelete:i.a.attribute("canDelete"),avatarColor:null,color:Object(s.a)("username","avatarUrl","avatarColor",function(t,e,n){return n?"rgb("+n.join(", ")+")":e?(this.calculateAvatarColor(),""):"#"+Object(o.a)(t)}),isOnline:function(){return this.lastSeenTime()>moment().subtract(5,"minutes").toDate()},badges:function(){var t=new a.a,e=this.groups();return e&&e.forEach(function(e){t.add("group"+e.id(),u.a.component({group:e}))}),t},calculateAvatarColor:function(){var t=new Image,e=this;t.onload=function(){var t=new ColorThief;e.avatarColor=t.getColor(this),e.freshness=new Date,m.redraw()},t.src=this.avatarUrl()},savePreferences:function(t){var e=this.preferences();return Object.assign(e,t),this.save({preferences:e})}})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks=e,this.data={}}var e=t.prototype;return e.retain=function(){var t=this,e=!1;return this.callbacks.forEach(function(n,r){var i=n();i!==t.data[r]&&(t.data[r]=i,e=!0)}),!e&&{subtree:"retain"}},e.check=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks=this.callbacks.concat(e)},e.invalidate=function(){this.data={}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),i=n(1),o=n(12),a=n(4),s=n(22),u=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e}(i.a);Object.assign(u.prototype,{title:i.a.attribute("title"),slug:i.a.attribute("slug"),startTime:i.a.attribute("startTime",i.a.transformDate),startUser:i.a.hasOne("startUser"),startPost:i.a.hasOne("startPost"),lastTime:i.a.attribute("lastTime",i.a.transformDate),lastUser:i.a.hasOne("lastUser"),lastPost:i.a.hasOne("lastPost"),lastPostNumber:i.a.attribute("lastPostNumber"),commentsCount:i.a.attribute("commentsCount"),repliesCount:Object(o.a)("commentsCount",function(t){return Math.max(0,t-1)}),posts:i.a.hasMany("posts"),mostRelevantPost:i.a.hasOne("mostRelevantPost"),readTime:i.a.attribute("readTime",i.a.transformDate),readNumber:i.a.attribute("readNumber"),isUnread:Object(o.a)("unreadCount",function(t){return!!t}),isRead:Object(o.a)("unreadCount",function(t){return app.session.user&&!t}),hideTime:i.a.attribute("hideTime",i.a.transformDate),hideUser:i.a.hasOne("hideUser"),isHidden:Object(o.a)("hideTime",function(t){return!!t}),canReply:i.a.attribute("canReply"),canRename:i.a.attribute("canRename"),canHide:i.a.attribute("canHide"),canDelete:i.a.attribute("canDelete"),removePost:function(t){var e=this.data.relationships,n=e&&e.posts;n&&n.data.some(function(e,r){if(t===e.id)return n.data.splice(r,1),!0})},unreadCount:function(){var t=app.session.user;return t&&t.readTime()<this.lastTime()?Math.max(0,this.lastPostNumber()-(this.readNumber()||0)):0},badges:function(){var t=new a.a;return this.isHidden()&&t.add("hidden",m(s.a,{type:"hidden",icon:"fas fa-trash",label:app.translator.trans("core.lib.badge.hidden_tooltip")})),t},postIds:function(){var t=this.data.relationships.posts;return t?t.data.map(function(t){return t.id}):[]}})},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(21);function i(t){var e=moment(t),n=e.format(),i=e.format("LLLL"),o=Object(r.a)(t);return m("time",{pubdate:!0,datetime:n,title:i,"data-humantime":!0},o)}},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=n(2),o=n(15),a=n(5),s=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.init=function(){this.loading=!1},n.view=function(){var t="Checkbox "+(this.props.state?"on":"off")+" "+(this.props.className||"");return this.loading&&(t+=" loading"),this.props.disabled&&(t+=" disabled"),m("label",{className:t},m("input",{type:"checkbox",checked:this.props.state,disabled:this.props.disabled,onchange:m.withAttr("checked",this.onchange.bind(this))}),m("div",{className:"Checkbox-display"},this.getDisplay()),this.props.children)},n.getDisplay=function(){return this.loading?o.a.component({size:"tiny"}):Object(a.a)(this.props.state?"fas fa-check":"fas fa-times")},n.onchange=function(t){this.props.onchange&&this.props.onchange(t,this)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t,e,n,r){this.status=t,this.responseText=e,this.options=n,this.xhr=r;try{this.response=JSON.parse(e)}catch(t){this.response=null}this.alert=null}},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=n(2),o=n(3),a=n(18),s=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.view=function(){var t=app,e=t.history,n=t.pane;return m("div",{className:"Navigation ButtonGroup "+(this.props.className||""),onmouseenter:n&&n.show.bind(n),onmouseleave:n&&n.onmouseleave.bind(n)},e.canGoBack()?[this.getBackButton(),this.getPaneButton()]:this.getDrawerButton())},n.config=function(t,e){e.retain=!0},n.getBackButton=function(){var t=app.history,e=t.getPrevious()||{};return a.a.component({className:"Button Navigation-back Button--icon",href:t.backUrl(),icon:"fas fa-chevron-left",title:e.title,config:function(){},onclick:function(e){e.shiftKey||e.ctrlKey||e.metaKey||2===e.which||(e.preventDefault(),t.back())}})},n.getPaneButton=function(){var t=app.pane;return t&&t.active?o.a.component({className:"Button Button--icon Navigation-pin"+(t.pinned?" active":""),onclick:t.togglePinned.bind(t),icon:"fas fa-thumbtack"}):""},n.getDrawerButton=function(){if(!this.props.drawer)return"";var t=app.drawer,e=app.session.user;return o.a.component({className:"Button Button--icon Navigation-drawer"+(e&&e.newNotificationsCount()?" new":""),onclick:function(e){e.stopPropagation(),t.show()},icon:"fas fa-bars"})},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(2);function i(t){var e=t.m,n=function t(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(n.prototype&&n.prototype instanceof r.a){var s=o.slice(1);return 1===s.length&&Array.isArray(s[0])&&(s=s[0]),n.component(o[0],s)}var u=e.apply(this,arguments);return u.attrs.bidi&&t.bidi(u,u.attrs.bidi),u.attrs.route&&(u.attrs.href=u.attrs.route,u.attrs.config=t.route,delete u.attrs.route),u};Object.keys(e).forEach(function(t){return n[t]=e[t]}),n.lazyRedraw=function(){n.startComputation(),n.endComputation()},t.m=n}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=n(2),o=n(11),a=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.init=function(){this.showing=!1,this.component=null},n.view=function(){return m("div",{className:"ModalManager modal fade"},this.component&&this.component.render())},n.config=function(t,e){t||(e.retain=!0,this.$().on("hidden.bs.modal",this.clear.bind(this)).on("shown.bs.modal",this.onready.bind(this)))},n.show=function(t){if(!(t instanceof o.a))throw new Error("The ModalManager component can only show Modal components");clearTimeout(this.hideTimeout),this.showing=!0,this.component=t,app.current&&(app.current.retain=!0),m.redraw(!0),this.$().modal({backdrop:!!this.component.isDismissible()||"static"}).modal("show"),this.onready()},n.close=function(){var t=this;this.showing&&(this.hideTimeout=setTimeout(function(){t.$().modal("hide"),t.showing=!1}))},n.clear=function(){this.component&&this.component.onhide(),this.component=null,app.current.retain=!1,m.lazyRedraw()},n.onready=function(){this.component&&this.component.onready&&this.component.onready(this.$())},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=n(2),o=n(17),a=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.init=function(){this.components=[]},n.view=function(){return m("div",{className:"AlertManager"},this.components.map(function(t){return m("div",{className:"AlertManager-alert"},t)}))},n.config=function(t,e){e.retain=!0},n.show=function(t){if(!(t instanceof o.a))throw new Error("The AlertManager component can only show Alert components");t.props.ondismiss=this.dismiss.bind(this,t),this.components.push(t),m.redraw()},n.dismiss=function(t){var e=this.components.indexOf(t);-1!==e&&(this.components.splice(e,1),m.redraw())},n.clear=function(){this.components=[],m.redraw()},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.className=function(){return"RequestErrorModal Modal--large"},n.title=function(){return this.props.error.xhr?this.props.error.xhr.status+" "+this.props.error.xhr.statusText:""},n.content=function(){var t;try{t=JSON.stringify(JSON.parse(this.props.error.responseText),null,2)}catch(e){t=this.props.error.responseText}return m("div",{className:"Modal-body"},m("pre",null,this.props.error.options.method," ",this.props.error.options.url,m("br",null),m("br",null),t))},e}(n(11).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});n(33);var r=n(16),i=n(9),o=function(){function t(){this.translations={},this.locale=null}var e=t.prototype;return e.addTranslations=function(t){Object.assign(this.translations,t)},e.trans=function(t,e){var n=this.translations[t];return n?this.apply(n,e||{}):t},e.transChoice=function(t,e,n){var r=this.translations[t];return r?(e=parseInt(e,10),r=this.pluralize(r,e),this.apply(r,n||{})):t},e.apply=function(t,e){if("user"in e){var n=Object(i.a)(e,"user");e.username||(e.username=Object(r.a)(n))}var o=[],a=[o];return(t=t.split(new RegExp("({[a-z0-9_]+}|</?[a-z0-9_]+>)","gi"))).forEach(function(t){var n=t.match(new RegExp("{([a-z0-9_]+)}|<(/?)([a-z0-9_]+)>","i"));if(n){if(n[1])a[0].push(e[n[1]]);else if(n[3])if(n[2])a.shift();else{var r=e[n[3]]||{tag:n[3],children:[]};a[0].push(r),a.unshift(r.children||r)}}else a[0].push(t)}),o.filter(function(t){return t})},e.pluralize=function(t,e){var n=this,r=new RegExp(/^\w+\: +(.+)$/),i=new RegExp(/^\s*((\{\s*(\-?\d+[\s*,\s*\-?\d+]*)\s*\})|([\[\]])\s*(-Inf|\-?\d+)\s*,\s*(\+?Inf|\-?\d+)\s*([\[\]]))\s?(.+?)$/),o=new RegExp(/^\s*(\{\s*(\-?\d+[\s*,\s*\-?\d+]*)\s*\})|([\[\]])\s*(-Inf|\-?\d+)\s*,\s*(\+?Inf|\-?\d+)\s*([\[\]])/),a=[],s=[];return t.split("|").forEach(function(t){if(i.test(t)){var e=t.match(i);s[e[0]]=e[e.length-1]}else if(r.test(t)){var n=t.match(r);a.push(n[1])}else a.push(t)}),s.forEach(function(t,r){if(o.test(r)){var i=r.match(o);if(i[1]){var a=i[2].split(",");for(var u in a)if(e==a[u])return s[r]}else{var l=n.convertNumber(i[4]),c=n.convertNumber(i[5]);if(("["===i[3]?e>=l:e>l)&&("]"===i[6]?e<=c:e<c))return s[r]}}}),a[this.pluralPosition(e,this.locale)]||a[0]||void 0},e.convertNumber=function(t){return"-Inf"===t?Number.NEGATIVE_INFINITY:"+Inf"===t||"Inf"===t?Number.POSITIVE_INFINITY:parseInt(t,10)},e.pluralPosition=function(t,e){switch("pt_BR"===e&&(e="xbr"),e.length>3&&(e=e.split("_")[0]),e){case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"vi":case"zh":return 0;case"af":case"az":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"tr":case"ur":case"zu":return 1==t?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return 0===t||1==t?0:1;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"sk":return 1==t?0:t>=2&&t<=4?1:2;case"ga":return 1==t?0:2==t?1:2;case"lt":return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"sl":return t%100==1?0:t%100==2?1:t%100==3||t%100==4?2:3;case"mk":return t%10==1?0:1;case"mt":return 1==t?0:0===t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"lv":return 0===t?0:t%10==1&&t%100!=11?1:2;case"pl":return 1==t?0:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?1:2;case"cy":return 1==t?0:2==t?1:8==t||11==t?2:3;case"ro":return 1==t?0:0===t||t%100>0&&t%100<20?1:2;case"ar":return 0===t?0:1==t?1:2==t?2:t>=3&&t<=10?3:t>=11&&t<=99?4:5;default:return 0}},t}()},function(t,e,n){"use strict";function r(t){for(var e=0,n=0;n<t.length;n++)e+=t.charCodeAt(n);var r=function(t,e,n){var r,i,o,a=Math.floor(6*t),s=6*t-a,u=n*(1-e),l=n*(1-s*e),c=n*(1-(1-s)*e);switch(a%6){case 0:r=n,i=c,o=u;break;case 1:r=l,i=n,o=u;break;case 2:r=u,i=n,o=c;break;case 3:r=u,i=l,o=n;break;case 4:r=c,i=u,o=n;break;case 5:r=n,i=u,o=l}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}(e%360/360,.3,.9);return""+r.r.toString(16)+r.g.toString(16)+r.b.toString(16)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t){this.data={},this.models=t}var e=t.prototype;return e.pushPayload=function(t){t.included&&t.included.map(this.pushObject.bind(this));var e=t.data instanceof Array?t.data.map(this.pushObject.bind(this)):this.pushObject(t.data);return e.payload=t,e},e.pushObject=function(t){if(!this.models[t.type])return null;var e=this.data[t.type]=this.data[t.type]||{};return e[t.id]?e[t.id].pushData(t):e[t.id]=this.createRecord(t.type,t),e[t.id].exists=!0,e[t.id]},e.find=function(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r={});var i=n,o=app.forum.attribute("apiUrl")+"/"+t;return e instanceof Array?o+="?filter[id]="+e.join(","):"object"==typeof e?i=e:e&&(o+="/"+e),app.request(Object.assign({method:"GET",url:o,data:i},r)).then(this.pushPayload.bind(this))},e.getById=function(t,e){return this.data[t]&&this.data[t][e]},e.getBy=function(t,e,n){return this.all(t).filter(function(t){return t[e]()===n})[0]},e.all=function(t){var e=this.data[t];return e?Object.keys(e).map(function(t){return e[t]}):[]},e.remove=function(t){delete this.data[t.data.type][t.id()]},e.createRecord=function(t,e){return void 0===e&&(e={}),e.type=e.type||t,new this.models[t](e,this)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t,e){this.user=t,this.csrfToken=e}var e=t.prototype;return e.login=function(t,e){return void 0===e&&(e={}),app.request(Object.assign({method:"POST",url:app.forum.attribute("baseUrl")+"/login",data:t},e))},e.logout=function(){window.location=app.forum.attribute("baseUrl")+"/logout?token="+this.csrfToken},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){var t=this;$("#content").click(function(e){t.isOpen()&&(e.preventDefault(),t.hide())})}var e=t.prototype;return e.isOpen=function(){return $("#app").hasClass("drawerOpen")},e.hide=function(){$("#app").removeClass("drawerOpen"),this.$backdrop&&this.$backdrop.remove()},e.show=function(){var t=this;$("#app").addClass("drawerOpen"),this.$backdrop=$("<div/>").addClass("drawer-backdrop fade").appendTo("body").click(function(){return t.hide()}),setTimeout(function(){return t.$backdrop.addClass("in")})},t}()},function(t,e,n){"use strict";function r(t,e){void 0===e&&(e="");var n={};for(var r in t){var i=t[r];i.component&&(i.component.props.routeName=r),n[e+i.path]=i.component}return n}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.apiEndpoint=function(){return"/"},e}(n(1).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=n(1),o=n(12),a=n(26),s=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e}(i.a);Object.assign(s.prototype,{number:i.a.attribute("number"),discussion:i.a.hasOne("discussion"),time:i.a.attribute("time",i.a.transformDate),user:i.a.hasOne("user"),contentType:i.a.attribute("contentType"),content:i.a.attribute("content"),contentHtml:i.a.attribute("contentHtml"),contentPlain:Object(o.a)("contentHtml",a.getPlainContent),editTime:i.a.attribute("editTime",i.a.transformDate),editUser:i.a.hasOne("editUser"),isEdited:Object(o.a)("editTime",function(t){return!!t}),hideTime:i.a.attribute("hideTime",i.a.transformDate),hideUser:i.a.hasOne("hideUser"),isHidden:Object(o.a)("hideTime",function(t){return!!t}),canEdit:i.a.attribute("canEdit"),canHide:i.a.attribute("canHide"),canDelete:i.a.attribute("canDelete")})},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=n(1),o=n(12),a=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e}(i.a);Object.assign(a.prototype,{contentType:i.a.attribute("contentType"),subjectId:i.a.attribute("subjectId"),content:i.a.attribute("content"),time:i.a.attribute("time",i.a.date),isRead:i.a.attribute("isRead"),unreadCount:i.a.attribute("unreadCount"),additionalUnreadCount:Object(o.a)("unreadCount",function(t){return Math.max(0,t-1)}),user:i.a.hasOne("user"),sender:i.a.hasOne("sender"),subject:i.a.hasOne("subject")})},function(t,e,n){"use strict";var r=n(7),i=n(4),o=n(17),a=n(3),s=n(41),u=n(42),l=n(43),c=n(44),d=n(46),p=n(47),f=n(9),h=n(48),g=n(49),v=n(38),y=n(30),b=n(31),w=n(50),_=n(33),x=n(35),k=n(51),T=n(10),S=n(52);var O=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},N=n(68),D="object"==typeof self&&self&&self.Object===Object&&self,C=(N.a||D||Function("return this")()).Symbol,E=Object.prototype,M=E.hasOwnProperty,j=E.toString,A=C?C.toStringTag:void 0;var P=function(t){var e=M.call(t,A),n=t[A];try{t[A]=void 0;var r=!0}catch(t){}var i=j.call(t);return r&&(e?t[A]=n:delete t[A]),i},I=Object.prototype.toString;var R=function(t){return I.call(t)},L="[object Null]",Y="[object Undefined]",H=C?C.toStringTag:void 0;var B=function(t){return null==t?void 0===t?Y:L:H&&H in Object(t)?P(t):R(t)};var F=function(t){return null!=t&&"object"==typeof t},U="[object Arguments]";var W=function(t){return F(t)&&B(t)==U},q=Object.prototype,G=q.hasOwnProperty,z=q.propertyIsEnumerable,V=W(function(){return arguments}())?W:function(t){return F(t)&&G.call(t,"callee")&&!z.call(t,"callee")},Z=Array.isArray,J=C?C.isConcatSpreadable:void 0;var X=function(t){return Z(t)||V(t)||!!(J&&t&&t[J])};var K=function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=X),o||(o=[]);++a<s;){var u=e[a];n>0&&r(u)?n>1?t(u,n-1,r,i,o):O(o,u):i||(o[o.length]=u)}return o},Q=1/0;var tt=function(t){return null!=t&&t.length?K(t,Q):[]};n.d(e,"a",function(){return et});var et=function(){function t(){Object(r.a)(this,"forum",null),Object(r.a)(this,"routes",{}),Object(r.a)(this,"initializers",new i.a),Object(r.a)(this,"session",null),Object(r.a)(this,"translator",new c.a),Object(r.a)(this,"store",new d.a({forums:w.a,users:_.a,discussions:x.a,posts:k.a,groups:T.a,notifications:S.a})),Object(r.a)(this,"cache",{}),Object(r.a)(this,"booted",!1),Object(r.a)(this,"requestError",null),Object(r.a)(this,"data",void 0),Object(r.a)(this,"title",""),Object(r.a)(this,"titleCount",0)}var e=t.prototype;return e.load=function(t){this.data=t,this.translator.locale=t.locale},e.boot=function(){var t=this;this.initializers.toArray().forEach(function(e){return e(t)}),this.store.pushPayload({data:this.data.resources}),this.forum=this.store.getById("forums",1),this.session=new p.a(this.store.getById("users",this.data.session.userId),this.data.session.csrfToken),this.mount()},e.bootExtensions=function(t){var e=this;Object.keys(t).forEach(function(n){var r=t[n],i=tt(r.extend),o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}s.extend(e,{name:n,exports:r})}})},e.mount=function(){this.modal=m.mount(document.getElementById("modal"),m(s.a,null)),this.alerts=m.mount(document.getElementById("alerts"),m(u.a,null)),this.drawer=new h.a;var t=this.forum.attribute("basePath");m.route(document.getElementById("content"),t+"/",Object(g.a)(this.routes,t)),new y.a(function(t){var e=$("#app"),n=e.offset().top;e.toggleClass("affix",t>=n).toggleClass("scrolled",t>n)}).start(),$(function(){$("body").addClass("ontouchstart"in window?"touch":"no-touch")})},e.preloadedDocument=function(){if(this.data.document){var t=this.store.pushPayload(this.data.document);return this.data.document=null,t}return null},e.setTitle=function(t){this.title=t,this.updateTitle()},e.setTitleCount=function(t){this.titleCount=t,this.updateTitle()},e.updateTitle=function(){document.title=(this.titleCount?"("+this.titleCount+") ":"")+(this.title?this.title+" - ":"")+this.forum.attribute("title")},e.request=function(t){var e=this,n=Object.assign({},t);if(n.background=n.background||!0,Object(b.extend)(n,"config",function(t,n){return n.setRequestHeader("X-CSRF-Token",e.session.csrfToken)}),"GET"!==n.method&&"POST"!==n.method){var r=n.method;Object(b.extend)(n,"config",function(t,e){return e.setRequestHeader("X-HTTP-Method-Override",r)}),n.method="POST"}n.deserialize=n.deserialize||function(t){return t},n.errorHandler=n.errorHandler||function(t){throw t};var i=n.extract;n.extract=function(t){var e;e=i?i(t.responseText):t.responseText||null;var r=t.status;if(r<200||r>299)throw new v.a(r,e,n,t);if(t.getResponseHeader){var o=t.getResponseHeader("X-CSRF-Token");o&&(app.session.csrfToken=o)}try{return JSON.parse(e)}catch(r){throw new v.a(500,e,n,t)}},this.requestError&&this.alerts.dismiss(this.requestError.alert);var s=m.deferred();return m.request(n).then(function(t){return s.resolve(t)},function(t){var r;switch(e.requestError=t,t.status){case 422:r=t.response.errors.map(function(t){return[t.detail,m("br",null)]}).reduce(function(t,e){return t.concat(e)},[]).slice(0,-1);break;case 401:case 403:r=app.translator.trans("core.lib.error.permission_denied_message");break;case 404:case 410:r=app.translator.trans("core.lib.error.not_found_message");break;case 429:r=app.translator.trans("core.lib.error.rate_limit_exceeded_message");break;default:r=app.translator.trans("core.lib.error.generic_message")}t.alert=new o.a({type:"error",children:r,controls:app.forum.attribute("debug")?[m(a.a,{className:"Button Button--link",onclick:e.showDebug.bind(e,t)},"Debug")]:void 0});try{n.errorHandler(t)}catch(t){e.alerts.show(t.alert)}s.reject(t)}),s.promise},e.showDebug=function(t){this.alerts.dismiss(this.requestErrorAlert),this.modal.show(new l.a({error:t}))},e.route=function(t,e){void 0===e&&(e={});var n=this.routes[t].path.replace(/:([^\/]+)/g,function(t,n){return Object(f.a)(e,n)}),r=m.route.buildQueryString(e);return("pathname"===m.route.mode?app.forum.attribute("basePath"):"")+n+(r?"?"+r:"")},t}()},function(t,e,n){"use strict";function r(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t,e){var n=$(window),r=$(t).offset().top-n.scrollTop();e(),n.scrollTop($(t).offset().top-r)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";e.a={handlers:null,getHandlers:function(t){return this.handlers=this.handlers||{},this.handlers[t]=this.handlers[t]||[],this.handlers[t]},trigger:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.getHandlers(t).forEach(function(t){return t.apply(e,r)})},on:function(t,e){this.getHandlers(t).push(e)},one:function(t,e){this.getHandlers(t).push(function n(){e.apply(this,arguments),this.off(t,n)})},off:function(t,e){var n=this.getHandlers(t),r=n.indexOf(e);-1!==r&&n.splice(r,1)}}},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=n(13),o=n(3),a=n(5),s=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t),e.initProps=function(e){t.initProps.call(this,e),e.className+=" Dropdown--split",e.menuClassName+=" Dropdown-menu--right"};var n=e.prototype;return n.getButton=function(){var t=this.getFirstChild(),e=Object.assign({},t.props);return e.className=(e.className||"")+" SplitDropdown-button Button "+this.props.buttonClassName,[o.a.component(e),m("button",{className:"Dropdown-toggle Button Button--icon "+this.props.buttonClassName,"data-toggle":"dropdown"},Object(a.a)(this.props.icon,{className:"Button-icon"}),Object(a.a)("fas fa-caret-down",{className:"Button-caret"}))]},n.getFirstChild=function(){for(var t=this.props.children;t instanceof Array;)t=t[0];return t},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(5);function i(t){if(t.lastSeenTime()&&t.isOnline())return m("span",{className:"UserOnline"},Object(r.a)("fas fa-circle"))}},function(t,e,n){"use strict";function r(t){var e=moment(t),n=e.format(),r=e.format("LLLL");return m("time",{pubdate:!0,datetime:n},r)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t){return t>=1e6?Math.floor(t/1e6)+app.translator.trans("core.lib.number_suffix.mega_text"):t>=1e3?Math.floor(t/1e3)+app.translator.trans("core.lib.number_suffix.kilo_text"):t.toString()}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.view=function(){return m("div",{className:"Placeholder"},m("p",null,this.props.text))},e}(n(2).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=n(2),o=n(5),a=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.view=function(){var t=this.props,e=t.options,n=t.onchange,r=t.value;return m("span",{className:"Select"},m("select",{className:"Select-input FormControl",onchange:n?m.withAttr("value",n.bind(this)):void 0,value:r},Object.keys(e).map(function(t){return m("option",{value:t},e[t])})),Object(o.a)("fas fa-sort",{className:"Select-caret"}))},e}(i.a)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0);function i(t){for(var e=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e}(t),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return i.forEach(function(t){Object.assign(e.prototype,t)}),e}},function(t,e,n){(function(t){var r;!function(i,o){"use strict";var a=function t(e,n){m.version=function(){return"v0.2.8"};var r={}.hasOwnProperty,i={}.toString;function o(t){return"function"==typeof t}function a(t){return"[object Object]"===i.call(t)}function s(t){return"[object String]"===i.call(t)}var u=Array.isArray||function(t){return"[object Array]"===i.call(t)};function l(){}var c,d,p,f,h={AREA:1,BASE:1,BR:1,COL:1,COMMAND:1,EMBED:1,HR:1,IMG:1,INPUT:1,KEYGEN:1,LINK:1,META:1,PARAM:1,SOURCE:1,TRACK:1,WBR:1};function m(t,e){for(var n=[],i=1,l=arguments.length;i<l;i++)n[i-1]=arguments[i];if(t&&o(t.view))return ot(t,n);if(!s(t))throw new Error("selector in m(selector, attrs, children) should be a string");var c=null!=e&&a(e)&&!("tag"in e||"view"in e||"subtree"in e),d=c?e:{},p={tag:"div",attrs:{},children:function(t,e){var n=e?t.slice(1):t;return 1===n.length&&u(n[0])?n[0]:n}(n,c)};return function(t,e,n){var i="class"in e?"class":"className";for(var o in e)r.call(e,o)&&(o===i&&null!=e[o]&&""!==e[o]?(n.push(e[o]),t[o]=""):t[o]=e[o]);n.length&&(t[i]=n.join(" "))}(p.attrs,d,function(t,e){var n,r=[],i=/(?:(^|#|\.)([^#\.\[\]]+))|(\[(.+?)(?:\s*=\s*("|'|)((?:\\["'\]]|.)*?)\5)?\])/g;for(;n=i.exec(e);)if(""===n[1]&&n[2])t.tag=n[2];else if("#"===n[1])t.attrs.id=n[2];else if("."===n[1])r.push(n[2]);else if("["===n[3].charAt(0)){var o=n[6];o&&(o=o.replace(/\\(["'])/g,"$1")),"class"===n[4]?r.push(o):t.attrs[n[4]]=o||!0}return r}(p,t)),p}function g(t,e){for(var n=0;n<t.length&&!e(t[n],n++););}function v(t,e){g(t,function(t,n){return(t=t&&t.attrs)&&null!=t.key&&e(t,n)})}function y(t,e,n){t.insertBefore(e,t.childNodes[n]||null)}m.deps=function(t){return function(t){c=t.document,d=t.location,f=t.cancelAnimationFrame||t.clearTimeout,p=t.requestAnimationFrame||t.setTimeout}(e=t||window),e},m.deps.factory=m.factory=t,m.deps(e);var b=1,w=2,_=3;function x(t,e,n,i){var o=t.length!==e.length;return o||v(t,function(t,n){var r=e[n];return o=r&&r.attrs&&r.attrs.key!==t.key}),o?function(t,e,n,i){v(t,function(t,r){e[t=t.key]=e[t]?{action:_,index:r,from:e[t].index,element:n.nodes[e[t].index]||c.createElement("div")}:{action:w,index:r}});var o=[];for(var a in e)r.call(e,a)&&o.push(e[a]);var s=o.sort(I),u=new Array(n.length);return u.nodes=n.nodes.slice(),g(s,function(e){var r=e.index;if(e.action===b&&(B(n[r].nodes,n[r]),u.splice(r,1)),e.action===w){var o=c.createElement("div");o.key=t[r].attrs.key,y(i,o,r),u.splice(r,0,{attrs:{key:t[r].attrs.key},nodes:[o]}),u.nodes[r]=o}if(e.action===_){var a=e.element,s=i.childNodes[r];s!==a&&null!==a&&i.insertBefore(a,s||null),u[r]=n[e.from],u.nodes[r]=a}}),u}(t,n,e,i):e}function k(t,e,n){(function(t,e,n){if(t.tag!==e.tag)return!0;if(n.sort().join()!==Object.keys(e.attrs).sort().join())return!0;if(t.attrs.id!==e.attrs.id)return!0;if(t.attrs.key!==e.attrs.key)return!0;if("all"===m.redraw.strategy())return!e.configContext||!0!==e.configContext.retain;if("diff"===m.redraw.strategy())return e.configContext&&!1===e.configContext.retain;return!1})(t,e,n)&&(e.nodes.length&&B(e.nodes),e.configContext&&o(e.configContext.onunload)&&e.configContext.onunload(),e.controllers&&g(e.controllers,function(t){t.onunload&&t.onunload({preventDefault:l})}))}var T=0;function S(t,e,n,r,i,o){var a=e.nodes;return r&&r===c.activeElement&&t===e||(t.$trusted?(B(a,e),a=W(n,i,t)):"textarea"===o?n.value=t:r?(r.innerHTML=t,a=[].slice.call(r.childNodes)):((1===a[0].nodeType||a.length>1||a[0].nodeValue.trim&&!a[0].nodeValue.trim())&&(B(e.nodes,e),a=[c.createTextNode(t)]),function(t,e,n,r){try{y(t,e,n),e.nodeValue=r}catch(t){}}(n,a[0],i,t))),(e=new t.constructor(t)).nodes=a,e.$trusted=t.$trusted,e}function O(t,e,n,r,i,o,a){return t.nodes.length?t.valueOf()!==e.valueOf()||i?S(e,t,r,o,n,a):(t.nodes.intact=!0,t):function(t,e,n){var r,i;t.$trusted?r=W(e,n,t):(r=[c.createTextNode(t)],e.nodeName in h||y(e,r[0],n));i="string"==typeof t||"number"==typeof t||"boolean"==typeof t?new t.constructor(t):t;return i.nodes=r,i}(e,r,n)}function N(t){return t.$trusted?t.nodes.length:u(t)?t.length:1}function D(t,e,r,i,o,a,s,l,c){t=function(t){for(var e=0;e<t.length;e++)u(t[e])&&(t=t.concat.apply([],t),e--);return t}(t);var d=e.length===t.length,p=0,f={},h=!1;v(e,function(t,n){h=!0,f[e[n].attrs.key]={action:b,index:n}}),function(t){var e=0;v(t,function(){return g(t,function(t){(t=t&&t.attrs)&&null==t.key&&(t.key="__mithril__"+e++)}),1})}(t),h&&(e=x(t,e,f,r));for(var m=0,y=0,w=t.length;y<w;y++){var _=P(r,o,e,i,t[y],e[m],a,i+p||p,s,l,c);_!==n&&(d=d&&_.nodes.intact,p+=N(_),e[m++]=_)}return d||function(t,e,n){g(t,function(t,r){null!=e[r]&&n.push.apply(n,e[r].nodes)}),g(e.nodes,function(t,r){null!=t.parentNode&&n.indexOf(t)<0&&B([t],[e[r]])}),t.length<e.length&&(e.length=t.length);e.nodes=n}(t,e,[]),e}function C(t,e,n,r,i,o,a){var s={tag:t.tag,attrs:e,children:n,nodes:[r]};return function(t,e,n){n.length&&(t.views=e,t.controllers=n,g(n,function(t){if(t.onunload&&t.onunload.$old&&(t.onunload=t.onunload.$old),T&&t.onunload){var e=t.onunload;t.onunload=function(){},t.onunload.$old=e}}))}(s,o,a),s.children&&!s.children.nodes&&(s.children.nodes=[]),s}m.startComputation=function(){T++},m.endComputation=function(){T>1?T--:(T=0,m.redraw())};var E=[];var M=!1;function j(t,e,n,r,i,a){var s=function(t,e,n,r){var i;i="diff"===m.redraw.strategy()&&t?t.indexOf(e):-1;return i>-1?n[i]:o(r)?new r:{}}(n.views,e,r,t.controller),u=t&&t.attrs&&t.attrs.key;return"retain"===(t=0===T||M||r&&r.indexOf(s)>-1?t.view(s):{tag:"placeholder"}).subtree?t:(t.attrs=t.attrs||{},t.attrs.key=u,function(t,e,n,r){null!=r.onunload&&E.map(function(t){return t.handler}).indexOf(r.onunload)<0&&E.push({controller:r,handler:r.onunload});t.push(n),e.push(r)}(a,i,e,s),t)}function A(t,e,r,i,a,u,l,d){var p=[],f=[];if("retain"===(t=function(t,e,n,r){var i=e&&e.controllers;for(;null!=t.view;)t=j(t,t.view.$original||t.view,e,i,r,n);return t}(t,e,p,f)).subtree)return e;if(!t.tag&&f.length)throw new Error("Component template must return a virtual element, not an array, string, etc.");t.attrs=t.attrs||{},e.attrs=e.attrs||{};var h=Object.keys(t.attrs),m=h.length>("key"in t.attrs?1:0);if(k(t,e,h),s(t.tag)){var g,v=0===e.nodes.length;if(l=function(t,e){return t.attrs.xmlns?t.attrs.xmlns:"svg"===t.tag?"http://www.w3.org/2000/svg":"math"===t.tag?"http://www.w3.org/1998/Math/MathML":e}(t,l),v){g=function(t,e){return t.attrs.is?null==e?c.createElement(t.tag,t.attrs.is):c.createElementNS(e,t.tag,t.attrs.is):null==e?c.createElement(t.tag):c.createElementNS(e,t.tag)}(t,l);var b=function(t,e,n,r){return r?H(e,t.tag,t.attrs,{},n):t.attrs}(t,g,l,m);y(i,g,a);var w=function(t,e,r,i,o,a){return null!=t.children&&t.children.length>0?P(e,t.tag,n,n,t.children,r.children,!0,0,t.attrs.contenteditable?e:i,o,a):t.children}(t,g,e,r,l,d);e=C(t,b,w,g,l,p,f)}else g=function(t,e,r,i,o,a,s,u){var l=t.nodes[0];i&&H(l,e.tag,e.attrs,t.attrs,o);t.children=P(l,e.tag,n,n,e.children,t.children,!1,0,e.attrs.contenteditable?l:r,o,s),t.nodes.intact=!0,u.length&&(t.views=a,t.controllers=u);return l}(e,t,r,m,l,p,d,f);return"select"===t.tag&&"value"in t.attrs&&H(g,t.tag,{value:t.attrs.value},{},l),v||!0!==u||null==g||y(i,g,a),function(t,e,n,r,i){if(o(e.attrs.config)){var a=i.configContext=i.configContext||{};t.push(function(){return e.attrs.config.call(e,n,!r,a,i)})}}(d,t,g,v,e),e}}function P(t,e,n,r,s,l,c,d,p,f,h){return"retain"===(s=function(t){try{if("boolean"!=typeof t&&null!=t&&null!=t.toString())return t}catch(t){}return""}(s)).subtree?l:(l=function(t,e,n,r,o){if(null!=e){if(i.call(e)===i.call(t))return e;if(o&&o.nodes){var a=n-r,s=a+(u(t)?t:e.nodes).length;B(o.nodes.slice(a,s),o.slice(a,s))}else e.nodes&&B(e.nodes,e)}(e=new t.constructor).tag&&(e={});return e.nodes=[],e}(s,l,d,r,n),u(s)?D(s,l,t,d,e,c,p,f,h):null!=s&&a(s)?A(s,l,p,t,d,c,f,h):o(s)?l:O(l,s,d,t,c,p,e))}function I(t,e){return t.action-e.action||t.index-e.index}var R,L={list:1,style:1,form:1,type:1,width:1,height:1};function Y(t,e,n,i,s,u){if("config"===e||"key"===e)return!0;if(o(n)&&"on"===e.slice(0,2))t[e]=function(t,e){return function(n){n=n||event,m.redraw.strategy("diff"),m.startComputation();try{return t.call(e,n)}finally{lt()}}}(n,t);else if("style"===e&&null!=n&&a(n))!function(t,e,n){n===e&&(t.style="",n={});for(var i in e)r.call(e,i)&&(null!=n&&n[i]===e[i]||(t.style[i]=e[i]));for(i in n)r.call(n,i)&&(r.call(e,i)||(t.style[i]=""))}(t,n,i);else if(null!=u)"href"===e?t.setAttributeNS("http://www.w3.org/1999/xlink","href",n):t.setAttribute("className"===e?"class":e,n);else if(e in t&&!L[e])try{("input"!==s&&!t.isContentEditable||t[e]!=n)&&(t[e]=n)}catch(r){t.setAttribute(e,n)}else try{t.setAttribute(e,n)}catch(t){}}function $(t,e,n,r,i,o,a){if(e in i&&r===n&&"object"!=typeof n&&c.activeElement!==t)"value"===e&&"input"===o&&t.value!=n&&(t.value=n);else{i[e]=n;try{return Y(t,e,n,r,o,a)}catch(t){if(t.message.indexOf("Invalid argument")<0)throw t}}}function H(t,e,n,i,o){for(var a in n)!r.call(n,a)||$(t,a,n[a],i[a],i,e,o);return i}function B(t,e){for(var n=t.length-1;n>-1;n--)if(t[n]&&t[n].parentNode){try{t[n].parentNode.removeChild(t[n])}catch(t){}(e=[].concat(e))[n]&&F(e[n])}t.length&&(t.length=0)}function F(t){t.configContext&&o(t.configContext.onunload)&&(t.configContext.onunload(),t.configContext.onunload=null),t.controllers&&g(t.controllers,function(t){o(t.onunload)&&t.onunload({preventDefault:l})}),t.children&&(u(t.children)?g(t.children,F):t.children.tag&&F(t.children))}function U(t,e){try{t.appendChild(c.createRange().createContextualFragment(e))}catch(n){t.insertAdjacentHTML("beforeend",e),function t(e){if("SCRIPT"===e.tagName)e.parentNode.replaceChild(function(t){for(var e=document.createElement("script"),n=t.attributes,r=0;r<n.length;r++)e.setAttribute(n[r].name,n[r].value);return e.text=t.innerHTML,e}(e),e);else{var n=e.childNodes;if(n&&n.length)for(var r=0;r<n.length;r++)t(n[r])}return e}(t)}}function W(t,e,n){var r=t.childNodes[e];if(r){var i=1!==r.nodeType,o=c.createElement("span");i?(t.insertBefore(o,r||null),o.insertAdjacentHTML("beforebegin",n),t.removeChild(o)):r.insertAdjacentHTML("beforebegin",n)}else U(t,n);for(var a=[];t.childNodes[e]!==r;)a.push(t.childNodes[e]),e++;return a}var q={appendChild:function(t){R===n&&(R=c.createElement("html")),c.documentElement&&c.documentElement!==t?c.replaceChild(t,c.documentElement):c.appendChild(t),this.childNodes=c.childNodes},insertBefore:function(t){this.appendChild(t)},childNodes:[]},G=[],z={};function V(t){var e=G.indexOf(t);return e<0?G.push(t)-1:e}m.render=function(t,e,r){if(!t)throw new Error("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var i,o=[],a=V(t),s=t===c;i=s||t===c.documentElement?q:t,s&&"html"!==e.tag&&(e={tag:"html",attrs:{},children:e}),z[a]===n&&B(i.childNodes),!0===r&&bt(t),z[a]=P(i,null,n,n,e,z[a],!1,0,null,n,o),g(o,function(t){t()})},m.trust=function(t){return(t=new String(t)).$trusted=!0,t},m.prop=function(t){return(null!=t&&(a(t)||o(t))||"undefined"!=typeof Promise&&t instanceof Promise)&&o(t.then)?wt(t):function(t){function e(){return arguments.length&&(t=arguments[0]),t}return e.toJSON=function(){return t&&o(t.toJSON)?t.toJSON():t},e}(t)};var Z,J,X,K=[],Q=[],tt=[],et=null,nt=0,rt=null,it=null;function ot(t,e){function n(){return(t.controller||l).apply(this,e)||this}function r(n){for(var r=[n].concat(e),i=1;i<arguments.length;i++)r.push(arguments[i]);return t.view.apply(t,r)}t.controller&&(n.prototype=t.controller.prototype),r.$original=t.view;var i={controller:n,view:r};return e[0]&&null!=e[0].key&&(i.attrs={key:e[0].key}),i}function at(t,e){K.splice(e,1),tt.splice(e,1),Q.splice(e,1),bt(t),G.splice(V(t),1),E=[]}m.component=function(t){for(var e=new Array(arguments.length-1),n=1;n<arguments.length;n++)e[n-1]=arguments[n];return ot(t,e)},m.mount=m.module=function(t,e){if(!t)throw new Error("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var n=K.indexOf(t);n<0&&(n=K.length);var r=!1,i={preventDefault:function(){r=!0,rt=it=null}};return g(E,function(t){t.handler.call(t.controller,i),t.controller.onunload=null}),r?g(E,function(t){t.controller.onunload=t.handler}):E=[],tt[n]&&o(tt[n].onunload)&&tt[n].onunload(i),function(t,e,n,r){if(!r){var i;m.redraw.strategy("all"),m.startComputation(),K[n]=e,i=Z=t||(t={controller:l});var o=new(t.controller||l);return i===Z&&(tt[n]=o,Q[n]=t),lt(),null===t&&at(e,n),tt[n]}null==t&&at(e,n),X&&(J=X)}(e,t,n,r)};var st=!1;function ut(){rt&&(rt(),rt=null),g(K,function(t,e){var n=Q[e];if(tt[e]){var r=[tt[e]];m.render(t,n.view?n.view(tt[e],r):"")}}),it&&(it(),it=null),et=null,nt=new Date,m.redraw.strategy("diff")}function lt(){"none"===m.redraw.strategy()?(T--,m.redraw.strategy("diff")):m.endComputation()}m.redraw=function(t){if(!st){st=!0,t&&(M=!0);try{et&&!t?(p===e.requestAnimationFrame||new Date-nt>16)&&(et>0&&f(et),et=p(ut,16)):(ut(),et=p(function(){et=null},16))}finally{st=M=!1}}},m.redraw.strategy=m.prop(),m.withAttr=function(t,e,n){return function(r){var i=(r=r||window.event).currentTarget||this,o=n||this,a=t in i?i[t]:i.getAttribute(t);e.call(o,a)}};var ct,dt={pathname:"",hash:"#",search:"?"},pt=l,ft=!1;function ht(t){return t.slice(dt[m.route.mode].length)}function mt(t){if(!((t=t||event).ctrlKey||t.metaKey||t.shiftKey||2===t.which)){t.preventDefault?t.preventDefault():t.returnValue=!1;var e,n=t.currentTarget||t.srcElement;for(e="pathname"===m.route.mode&&n.search?yt(n.search.slice(1)):{};n&&!/a/i.test(n.nodeName);)n=n.parentNode;T=0,m.route(n[m.route.mode].slice(dt[m.route.mode].length),e)}}function gt(){"hash"!==m.route.mode&&d.hash?d.hash=d.hash:e.scrollTo(0,0)}function vt(t,e){var i={},o=[];for(var s in t)if(r.call(t,s)){var l=e?e+"["+s+"]":s,c=t[s];if(null===c)o.push(encodeURIComponent(l));else if(a(c))o.push(vt(c,l));else if(u(c)){var d=[];i[l]=i[l]||{},g(c,function(t){i[l][t]||(i[l][t]=!0,d.push(encodeURIComponent(l)+"="+encodeURIComponent(t)))}),o.push(d.join("&"))}else c!==n&&o.push(encodeURIComponent(l)+"="+encodeURIComponent(c))}return o.join("&")}function yt(t){if(""===t||null==t)return{};"?"===t.charAt(0)&&(t=t.slice(1));var e=t.split("&"),n={};return g(e,function(t){var e=t.split("="),r=decodeURIComponent(e[0]),i=2===e.length?decodeURIComponent(e[1]):null;null!=n[r]?(u(n[r])||(n[r]=[n[r]]),n[r].push(i)):n[r]=i}),n}function bt(t){var e=V(t);B(t.childNodes,z[e]),z[e]=n}function wt(t,e){var n=m.prop(e);return t.then(n),n.then=function(n,r){return wt(t.then(n,r),e)},n.catch=n.then.bind(null,null),n}m.route=function(t,n,i,o){if(0===arguments.length)return J;if(3===arguments.length&&s(n)){pt=function(e){var o=J=ht(e);if(!function(t,e,n){ct={};var i=n.indexOf("?");-1!==i&&(ct=yt(n.substr(i+1,n.length)),n=n.substr(0,i));var o=Object.keys(e),a=o.indexOf(n);if(-1!==a)return m.mount(t,e[o[a]]),!0;for(var s in e)if(r.call(e,s)){if(s===n)return m.mount(t,e[s]),!0;var u=new RegExp("^"+s.replace(/:[^\/]+?\.{3}/g,"(.*?)").replace(/:[^\/]+/g,"([^\\/]+)")+"/?$");if(u.test(n))return n.replace(u,function(){var n=s.match(/:[^\/]+/g)||[],r=[].slice.call(arguments,1,-2);g(n,function(t,e){ct[t.replace(/:|\./g,"")]=decodeURIComponent(r[e])}),m.mount(t,e[s])}),!0}}(t,i,o)){if(ft)throw new Error("Ensure the default route matches one of the routes defined in m.route");ft=!0,m.route(n,!0),ft=!1}};var a="hash"===m.route.mode?"onhashchange":"onpopstate";return e[a]=function(){var t=d[m.route.mode];"pathname"===m.route.mode&&(t+=d.search),J!==ht(t)&&pt(t)},rt=gt,void e[a]()}if(t.addEventListener||t.attachEvent){var u="pathname"!==m.route.mode?d.pathname:"";return t.href=u+dt[m.route.mode]+o.attrs.href,void(t.addEventListener?(t.removeEventListener("click",mt),t.addEventListener("click",mt)):(t.detachEvent("onclick",mt),t.attachEvent("onclick",mt)))}if(s(t)){X=J,J=t;var l,p=n||{},f=J.indexOf("?");for(var h in l=f>-1?yt(J.slice(f+1)):{},p)r.call(p,h)&&(l[h]=p[h]);var v,y=vt(l);v=f>-1?J.slice(0,f):J,y&&(J=v+(-1===v.indexOf("?")?"?":"&")+y);var b=!0===(3===arguments.length?i:n)||X===J;if(e.history.pushState){var w=b?"replaceState":"pushState";rt=gt,it=function(){try{e.history[w](null,c.title,dt[m.route.mode]+J)}catch(t){d[m.route.mode]=J}},pt(dt[m.route.mode]+J)}else d[m.route.mode]=J,pt(dt[m.route.mode]+J);X=null}},m.route.param=function(t){if(!ct)throw new Error("You must call m.route(element, defaultRoute, routes) before calling m.route.param()");return t?ct[t]:ct},m.route.mode="search",m.route.buildQueryString=vt,m.route.parseQueryString=yt,m.deferred=function(){var t=new St;return t.promise=wt(t.promise),t};var _t=1,xt=2,kt=3,Tt=4;function St(t,e){var n=this,r=0,i=0,s=[];function u(t){r=t||Tt,s.map(function(t){r===kt?t.resolve(i):t.reject(i)})}function l(t,e,n,r){if((null!=i&&a(i)||o(i))&&o(t))try{var s=0;t.call(i,function(t){s++||(i=t,e())},function(t){s++||(i=t,n())})}catch(t){m.deferred.onerror(t),i=t,n()}else r()}function c(){var a;try{a=i&&i.then}catch(t){return m.deferred.onerror(t),i=t,r=xt,c()}r===xt&&m.deferred.onerror(i),l(a,function(){r=_t,c()},function(){r=xt,c()},function(){try{r===_t&&o(t)?i=t(i):r===xt&&o(e)&&(i=e(i),r=_t)}catch(t){return m.deferred.onerror(t),i=t,u()}i===n?(i=TypeError(),u()):l(a,function(){u(kt)},u,function(){u(r===_t&&kt)})})}n.promise={},n.resolve=function(t){return r||(i=t,r=_t,c()),n},n.reject=function(t){return r||(i=t,r=xt,c()),n},n.promise.then=function(t,e){var n=new St(t,e);return r===kt?n.resolve(i):r===Tt?n.reject(i):s.push(n),n.promise}}function Ot(t){return t}return m.deferred.onerror=function(t){if("[object Error]"===i.call(t)&&!/ Error/.test(t.constructor.toString()))throw T=0,t},m.sync=function(t){var e=m.deferred(),n=t.length,r=[],i="resolve";function o(t,o){return function(a){return r[t]=a,o||(i="reject"),0==--n&&(e.promise(r),e[i](r)),a}}return t.length>0?g(t,function(t,e){t.then(o(e,!0),o(e,!1))}):e.resolve([]),e.promise},m.request=function(t){!0!==t.background&&m.startComputation();var i,l,d,p=new St;return t.dataType&&"jsonp"===t.dataType.toLowerCase()?(i=t.serialize=l=t.deserialize=Ot,d=function(t){return t.responseText}):(i=t.serialize=t.serialize||JSON.stringify,l=t.deserialize=t.deserialize||JSON.parse,d=t.extract||function(t){return t.responseText.length||l!==JSON.parse?t.responseText:null}),t.method=(t.method||"GET").toUpperCase(),t.url=function(t,e){return e&&(t=t.replace(/:[a-z]\w+/gi,function(t){var n=t.slice(1),r=e[n]||t;return delete e[n],r})),t}(t.url,t.data),function(t,e,n){if("GET"===t.method&&"jsonp"!==t.dataType){var r=t.url.indexOf("?")<0?"?":"&",i=vt(e);t.url+=i?r+i:""}else t.data=n(e)}(t,t.data,i),t.onload=t.onerror=function(e){try{e=e||event;var n=l(d(e.target,t));"load"===e.type?(t.unwrapSuccess&&(n=t.unwrapSuccess(n,e.target)),u(n)&&t.type?g(n,function(e,r){n[r]=new t.type(e)}):t.type&&(n=new t.type(n)),p.resolve(n)):(t.unwrapError&&(n=t.unwrapError(n,e.target)),p.reject(n))}catch(t){p.reject(t),m.deferred.onerror(t)}finally{!0!==t.background&&m.endComputation()}},function(t){t.dataType&&"jsonp"===t.dataType.toLowerCase()?function(t){var r=t.callbackName||"mithril_callback_"+(new Date).getTime()+"_"+Math.round(1e16*Math.random()).toString(36),i=c.createElement("script");e[r]=function(o){i.parentNode.removeChild(i),t.onload({type:"load",target:{responseText:o}}),e[r]=n},i.onerror=function(){return i.parentNode.removeChild(i),t.onerror({type:"error",target:{status:500,responseText:JSON.stringify({error:"Error making jsonp request"})}}),e[r]=n,!1},i.onload=function(){return!1},i.src=t.url+(t.url.indexOf("?")>0?"&":"?")+(t.callbackKey?t.callbackKey:"callback")+"="+r+"&"+vt(t.data||{}),c.body.appendChild(i)}(t):function(t){var n=new e.XMLHttpRequest;if(n.open(t.method,t.url,!0,t.user,t.password),n.onreadystatechange=function(){4===n.readyState&&(n.status>=200&&n.status<300?t.onload({type:"load",target:n}):t.onerror({type:"error",target:n}))},t.serialize===JSON.stringify&&t.data&&"GET"!==t.method&&n.setRequestHeader("Content-Type","application/json; charset=utf-8"),t.deserialize===JSON.parse&&n.setRequestHeader("Accept","application/json, text/*"),a(t.headers))for(var i in t.headers)r.call(t.headers,i)&&n.setRequestHeader(i,t.headers[i]);if(o(t.config)){var u=t.config(n,t);null!=u&&(n=u)}var l="GET"!==t.method&&t.data?t.data:"";if(l&&!s(l)&&l.constructor!==e.FormData)throw new Error("Request data should be either be a string or FormData. Check the `serialize` option in `m.request`");n.send(l)}(t)}(t),p.promise=wt(p.promise,t.initialValue),p.promise},m}(i);"undefined"==typeof window&&a.deps({document:"undefined"!=typeof document?document:{},location:"undefined"!=typeof location?location:{},clearTimeout:clearTimeout,setTimeout:setTimeout}),"object"==typeof t&&null!=t&&t.exports?t.exports=a:void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof window?window:this)}).call(this,n(64)(t))},function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"Model",function(){return a}),n.d(r,"PostTypes",function(){return s}),n.d(r,"Routes",function(){return u});n(70),n(73),n(74),n(76),n(78),n(79),n(80),n(81),n(82),n(83);var i=n(40),o=n(7),a=function(){function t(t,e){void 0===e&&(e=null),Object(o.a)(this,"type",void 0),Object(o.a)(this,"attributes",[]),Object(o.a)(this,"hasOnes",[]),Object(o.a)(this,"hasManys",[]),this.type=t,this.model=e}var e=t.prototype;return e.attribute=function(t){return this.attributes.push(t),this},e.hasOne=function(t){return this.hasOnes.push(t),this},e.hasMany=function(t){return this.hasManys.push(t),this},e.extend=function(t,e){this.model&&(t.store.models[this.type]=this.model);var n=t.store.models[this.type];this.attributes.forEach(function(t){return n.prototype[t]=n.attribute(t)}),this.hasOnes.forEach(function(t){return n.prototype[t]=n.hasOne(t)}),this.hasManys.forEach(function(t){return n.prototype[t]=n.hasMany(t)})},t}(),s=function(){function t(){Object(o.a)(this,"postComponents",{})}var e=t.prototype;return e.add=function(t,e){return this.postComponents[t]=e,this},e.extend=function(t,e){Object.assign(t.postComponents,this.postComponents)},t}(),u=function(){function t(){Object(o.a)(this,"routes",{})}var e=t.prototype;return e.add=function(t,e,n){return this.routes[t]={path:e,component:n},this},e.extend=function(t,e){Object.assign(t.routes,this.routes)},t}();n.d(e,"a",function(){return r}),Object(i.a)(window)},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(25))},function(t,e,n){"use strict";var r=n(31),i=n(47),o=n(46),a=n(57),s=n(21);function u(){$("[data-humantime]").each(function(){var t=$(this),e=Object(s.a)(t.attr("datetime"));t.html(e)})}var l=n(4),c=n(65),d=n(12),p=n(48),f=n(55),h=n(38),m=n(61),g=n(26),v=n(34),y=n(9),b=n(30),w=n(45),_=n(40),x=n(24),k=n(8),T=n(54),S=n(49),O=n(52),N=n(33),D=n(51),C=n(35),E=n(10),M=n(50),j=n(2),A=n(44),P=n(42),I=n(32),R=n(22),L=n(15),Y=n(62),H=n(20),B=n(13),F=n(58),U=n(43),W=n(23),q=n(63),G=n(39),z=n(17),V=n(18),Z=n(37),J=n(27),X=n(41),K=n(3),Q=n(11),tt=n(28),et=n(1),nt=n(53),rt=n(60),it=n(14),ot=n(5),at=n(36);var st=n(29),ut=n(16),lt=n(59),ct=n(6);e.a={extend:r,Session:i.a,Store:o.a,"utils/evented":a.a,"utils/liveHumanTimes":function(){setInterval(u,1e4)},"utils/ItemList":l.a,"utils/mixin":c.a,"utils/humanTime":s.a,"utils/computed":d.a,"utils/Drawer":p.a,"utils/anchorScroll":f.a,"utils/RequestError":h.a,"utils/abbreviateNumber":m.a,"utils/string":g,"utils/SubtreeRetainer":v.a,"utils/extract":y.a,"utils/ScrollListener":b.a,"utils/stringToColor":w.a,"utils/patchMithril":_.a,"utils/classList":x.a,"utils/extractText":k.a,"utils/formatNumber":T.a,"utils/mapRoutes":S.a,"models/Notification":O.a,"models/User":N.a,"models/Post":D.a,"models/Discussion":C.a,"models/Group":E.a,"models/Forum":M.a,Component:j.a,Translator:A.a,"components/AlertManager":P.a,"components/Switch":I.a,"components/Badge":R.a,"components/LoadingIndicator":L.a,"components/Placeholder":Y.a,"components/Separator":H.a,"components/Dropdown":B.a,"components/SplitDropdown":F.a,"components/RequestErrorModal":U.a,"components/FieldSet":W.a,"components/Select":q.a,"components/Navigation":G.a,"components/Alert":z.a,"components/LinkButton":V.a,"components/Checkbox":Z.a,"components/SelectDropdown":J.a,"components/ModalManager":X.a,"components/Button":K.a,"components/Modal":Q.a,"components/GroupBadge":tt.a,Model:et.a,Application:nt.a,"helpers/fullTime":rt.a,"helpers/avatar":it.a,"helpers/icon":ot.a,"helpers/humanTime":at.a,"helpers/punctuateSeries":function(t){if(2===t.length)return app.translator.trans("core.lib.series.two_text",{first:t[0],second:t[1]});if(t.length>=3){var e=t.slice(1,t.length-1).reduce(function(t,e){return t.concat([e,app.translator.trans("core.lib.series.glue_text")])},[]).slice(0,-1);return app.translator.trans("core.lib.series.three_text",{first:t[0],second:e,third:t[t.length-1]})}return t},"helpers/highlight":st.a,"helpers/username":ut.a,"helpers/userOnline":lt.a,"helpers/listItems":ct.a}},function(t,e,n){(function(e){t.exports=e.$=n(71)}).call(this,n(25))},function(t,e,n){(function(e){t.exports=e.jQuery=n(72)}).call(this,n(25))},function(t,e,n){var r;
|
||
/*!
|
||
* jQuery JavaScript Library v3.3.1
|
||
* https://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright JS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2018-01-20T17:24Z
|
||
*/
|
||
/*!
|
||
* jQuery JavaScript Library v3.3.1
|
||
* https://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright JS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2018-01-20T17:24Z
|
||
*/
|
||
!function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var o=[],a=n.document,s=Object.getPrototypeOf,u=o.slice,l=o.concat,c=o.push,d=o.indexOf,p={},f=p.toString,h=p.hasOwnProperty,m=h.toString,g=m.call(Object),v={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},b=function(t){return null!=t&&t===t.window},w={type:!0,src:!0,noModule:!0};function _(t,e,n){var r,i=(e=e||a).createElement("script");if(i.text=t,n)for(r in w)n[r]&&(i[r]=n[r]);e.head.appendChild(i).parentNode.removeChild(i)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?p[f.call(t)]||"object":typeof t}var k=function(t,e){return new k.fn.init(t,e)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function S(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!y(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}k.fn=k.prototype={jquery:"3.3.1",constructor:k,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return k.each(this,t)},map:function(t){return this.pushStack(k.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],a!==(r=t[e])&&(l&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&k.isPlainObject(n)?n:{},a[e]=k.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},k.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==f.call(t))&&(!(e=s(t))||"function"==typeof(n=h.call(e,"constructor")&&e.constructor)&&m.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){_(t)},each:function(t,e){var n,r=0;if(S(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(T,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(S(Object(t))?k.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:d.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,a=[];if(S(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&a.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&a.push(i);return l.apply([],a)},guid:1,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){p["[object "+e+"]"]=e.toLowerCase()});var O=
|
||
/*!
|
||
* Sizzle CSS Selector Engine v2.3.3
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license
|
||
* http://jquery.org/license
|
||
*
|
||
* Date: 2016-08-08
|
||
*/
|
||
function(t){var e,n,r,i,o,a,s,u,l,c,d,p,f,h,m,g,v,y,b,w="sizzle"+1*new Date,_=t.document,x=0,k=0,T=at(),S=at(),O=at(),N=function(t,e){return t===e&&(d=!0),0},D={}.hasOwnProperty,C=[],E=C.pop,M=C.push,j=C.push,A=C.slice,P=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",Y="\\["+R+"*("+L+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+R+"*\\]",$=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Y+")*)|.*)\\)|)",H=new RegExp(R+"+","g"),B=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),F=new RegExp("^"+R+"*,"+R+"*"),U=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),W=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),q=new RegExp($),G=new RegExp("^"+L+"$"),z={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+Y),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),tt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){p()},it=yt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{j.apply(C=A.call(_.childNodes),_.childNodes),C[_.childNodes.length].nodeType}catch(t){j={apply:C.length?function(t,e){M.apply(t,A.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function ot(t,e,r,i){var o,s,l,c,d,h,v,y=e&&e.ownerDocument,x=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return r;if(!i&&((e?e.ownerDocument||e:_)!==f&&p(e),e=e||f,m)){if(11!==x&&(d=X.exec(t)))if(o=d[1]){if(9===x){if(!(l=e.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(y&&(l=y.getElementById(o))&&b(e,l)&&l.id===o)return r.push(l),r}else{if(d[2])return j.apply(r,e.getElementsByTagName(t)),r;if((o=d[3])&&n.getElementsByClassName&&e.getElementsByClassName)return j.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!O[t+" "]&&(!g||!g.test(t))){if(1!==x)y=e,v=t;else if("object"!==e.nodeName.toLowerCase()){for((c=e.getAttribute("id"))?c=c.replace(et,nt):e.setAttribute("id",c=w),s=(h=a(t)).length;s--;)h[s]="#"+c+" "+vt(h[s]);v=h.join(","),y=K.test(t)&&mt(e.parentNode)||e}if(v)try{return j.apply(r,y.querySelectorAll(v)),r}catch(t){}finally{c===w&&e.removeAttribute("id")}}}return u(t.replace(B,"$1"),e,r,i)}function at(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function st(t){return t[w]=!0,t}function ut(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function ct(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ft(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&it(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ht(t){return st(function(e){return e=+e,st(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},p=ot.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:_;return a!==f&&9===a.nodeType&&a.documentElement?(h=(f=a).documentElement,m=!o(f),_!==f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.attributes=ut(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=ut(function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=ut(function(t){return h.appendChild(t).id=w,!f.getElementsByName||!f.getElementsByName(w).length}),n.getById?(r.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(n.qsa=J.test(f.querySelectorAll))&&(ut(function(t){h.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+w+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")}),ut(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ut(function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",$)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(h.compareDocumentPosition),b=e||J.test(h.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},N=e?function(t,e){if(t===e)return d=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===f||t.ownerDocument===_&&b(_,t)?-1:e===f||e.ownerDocument===_&&b(_,e)?1:c?P(c,t)-P(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===f?-1:e===f?1:i?-1:o?1:c?P(c,t)-P(c,e):0;if(i===o)return ct(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ct(a[r],s[r]):a[r]===_?-1:s[r]===_?1:0},f):f},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&p(t),e=e.replace(W,"='$1']"),n.matchesSelector&&m&&!O[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return ot(e,f,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==f&&p(t),b(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==f&&p(t);var i=r.attrHandle[e.toLowerCase()],o=i&&D.call(r.attrHandle,e.toLowerCase())?i(t,e,!m):void 0;return void 0!==o?o:n.attributes||!m?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.escape=function(t){return(t+"").replace(et,nt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,r=[],i=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(N),d){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return c=null,t},i=ot.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=ot.selectors={cacheLength:50,createPseudo:st,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Q,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Q,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&q.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Q,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=T[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&T(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=ot.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,d,p,f,h,m=o!==a?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(g){if(o){for(;m;){for(p=e;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===t&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(b=(f=(l=(c=(d=(p=g)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]||[])[0]===x&&l[1])&&l[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(b=f=0)||h.pop();)if(1===p.nodeType&&++b&&p===e){c[t]=[x,f,b];break}}else if(y&&(b=f=(l=(c=(d=(p=e)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]||[])[0]===x&&l[1]),!1===b)for(;(p=++f&&p&&p[m]||(b=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((c=(d=p[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]=[x,b]),p!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return i[w]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=P(t,o[a])]=!(n[r]=o[a])}):function(t){return i(t,0,n)}):i}},pseudos:{not:st(function(t){var e=[],n=[],r=s(t.replace(B,"$1"));return r[w]?st(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:st(function(t){return function(e){return ot(t,e).length>0}}),contains:st(function(t){return t=t.replace(Q,tt),function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}}),lang:st(function(t){return G.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(Q,tt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ft(!1),disabled:ft(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return V.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ht(function(){return[0]}),last:ht(function(t,e){return[e-1]}),eq:ht(function(t,e,n){return[n<0?n+e:n]}),even:ht(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ht(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ht(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:ht(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=dt(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=pt(e);function gt(){}function vt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function yt(t,e,n){var r=e.dir,i=e.next,o=i||r,a=n&&"parentNode"===o,s=k++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||a)return t(e,n,i);return!1}:function(e,n,u){var l,c,d,p=[x,s];if(u){for(;e=e[r];)if((1===e.nodeType||a)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(c=(d=e[w]||(e[w]={}))[e.uniqueID]||(d[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((l=c[o])&&l[0]===x&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=t(e,n,u))return!0}return!1}}function bt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function wt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function _t(t,e,n,r,i,o){return r&&!r[w]&&(r=_t(r)),i&&!i[w]&&(i=_t(i,o)),st(function(o,a,s,u){var l,c,d,p=[],f=[],h=a.length,m=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)ot(t,e[r],n);return n}(e||"*",s.nodeType?[s]:s,[]),g=!t||!o&&e?m:wt(m,p,t,s,u),v=n?i||(o?t:h||r)?[]:a:g;if(n&&n(g,v,s,u),r)for(l=wt(v,f),r(l,[],s,u),c=l.length;c--;)(d=l[c])&&(v[f[c]]=!(g[f[c]]=d));if(o){if(i||t){if(i){for(l=[],c=v.length;c--;)(d=v[c])&&l.push(g[c]=d);i(null,v=[],l,u)}for(c=v.length;c--;)(d=v[c])&&(l=i?P(o,d):p[c])>-1&&(o[l]=!(a[l]=d))}}else v=wt(v===a?v.splice(h,v.length):v),i?i(null,a,v,u):j.apply(a,v)})}function xt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],u=a?1:0,c=yt(function(t){return t===e},s,!0),d=yt(function(t){return P(e,t)>-1},s,!0),p=[function(t,n,r){var i=!a&&(r||n!==l)||((e=n).nodeType?c(t,n,r):d(t,n,r));return e=null,i}];u<o;u++)if(n=r.relative[t[u].type])p=[yt(bt(p),n)];else{if((n=r.filter[t[u].type].apply(null,t[u].matches))[w]){for(i=++u;i<o&&!r.relative[t[i].type];i++);return _t(u>1&&bt(p),u>1&&vt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(B,"$1"),n,u<i&&xt(t.slice(u,i)),i<o&&xt(t=t.slice(i)),i<o&&vt(t))}p.push(n)}return bt(p)}return gt.prototype=r.filters=r.pseudos,r.setFilters=new gt,a=ot.tokenize=function(t,e){var n,i,o,a,s,u,l,c=S[t+" "];if(c)return e?0:c.slice(0);for(s=t,u=[],l=r.preFilter;s;){for(a in n&&!(i=F.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=z[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?ot.error(t):S(t,u).slice(0)},s=ot.compile=function(t,e){var n,i=[],o=[],s=O[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=xt(e[n]))[w]?i.push(s):o.push(s);(s=O(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,s,u,c){var d,h,g,v=0,y="0",b=o&&[],w=[],_=l,k=o||i&&r.find.TAG("*",c),T=x+=null==_?1:Math.random()||.1,S=k.length;for(c&&(l=a===f||a||c);y!==S&&null!=(d=k[y]);y++){if(i&&d){for(h=0,a||d.ownerDocument===f||(p(d),s=!m);g=t[h++];)if(g(d,a||f,s)){u.push(d);break}c&&(x=T)}n&&((d=!g&&d)&&v--,o&&b.push(d))}if(v+=y,n&&y!==v){for(h=0;g=e[h++];)g(b,w,a,s);if(o){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=E.call(u));w=wt(w)}j.apply(u,w),c&&!o&&w.length>0&&v+e.length>1&&ot.uniqueSort(u)}return c&&(x=T,l=_),b};return n?st(o):o}(o,i))).selector=t}return s},u=ot.select=function(t,e,n,i){var o,u,l,c,d,p="function"==typeof t&&t,f=!i&&a(t=p.selector||t);if(n=n||[],1===f.length){if((u=f[0]=f[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===e.nodeType&&m&&r.relative[u[1].type]){if(!(e=(r.find.ID(l.matches[0].replace(Q,tt),e)||[])[0]))return n;p&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(o=z.needsContext.test(t)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((d=r.find[c])&&(i=d(l.matches[0].replace(Q,tt),K.test(u[0].type)&&mt(e.parentNode)||e))){if(u.splice(o,1),!(t=i.length&&vt(u)))return j.apply(n,i),n;break}}return(p||s(t,f))(i,e,!m,n,!e||K.test(t)&&mt(e.parentNode)||e),n},n.sortStable=w.split("").sort(N).join("")===w,n.detectDuplicates=!!d,p(),n.sortDetached=ut(function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))}),ut(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||lt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&ut(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||lt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ut(function(t){return null==t.getAttribute("disabled")})||lt(I,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),ot}(n);k.find=O,k.expr=O.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=O.uniqueSort,k.text=O.getText,k.isXMLDoc=O.isXML,k.contains=O.contains,k.escapeSelector=O.escape;var N=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&k(t).is(n))break;r.push(t)}return r},D=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},C=k.expr.match.needsContext;function E(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(t,e,n){return y(e)?k.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?k.grep(t,function(t){return t===e!==n}):"string"!=typeof e?k.grep(t,function(t){return d.call(e,t)>-1!==n}):k.filter(e,t,n)}k.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?k.find.matchesSelector(r,t)?[r]:[]:k.find.matches(t,k.grep(e,function(t){return 1===t.nodeType}))},k.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(k(t).filter(function(){for(e=0;e<r;e++)if(k.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)k.find(t,i[e],n);return r>1?k.uniqueSort(n):n},filter:function(t){return this.pushStack(j(this,t||[],!1))},not:function(t){return this.pushStack(j(this,t||[],!0))},is:function(t){return!!j(this,"string"==typeof t&&C.test(t)?k(t):t||[],!1).length}});var A,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||A,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:P.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:a,!0)),M.test(r[1])&&k.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=a.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(k):k.makeArray(t,this)}).prototype=k.fn,A=k(a);var I=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(k.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,o=[],a="string"!=typeof t&&k(t);if(!C.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?d.call(k(t),this[0]):d.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return N(t,"parentNode")},parentsUntil:function(t,e,n){return N(t,"parentNode",n)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return N(t,"nextSibling")},prevAll:function(t){return N(t,"previousSibling")},nextUntil:function(t,e,n){return N(t,"nextSibling",n)},prevUntil:function(t,e,n){return N(t,"previousSibling",n)},siblings:function(t){return D((t.parentNode||{}).firstChild,t)},children:function(t){return D(t.firstChild)},contents:function(t){return E(t,"iframe")?t.contentDocument:(E(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},function(t,e){k.fn[t]=function(n,r){var i=k.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=k.filter(r,i)),this.length>1&&(R[t]||k.uniqueSort(i),I.test(t)&&i.reverse()),this.pushStack(i)}});var Y=/[^\x20\t\r\n\f]+/g;function $(t){return t}function H(t){throw t}function B(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}k.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return k.each(t.match(Y)||[],function(t,n){e[n]=!0}),e}(t):k.extend({},t);var e,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){k.each(n,function(n,r){y(r)?t.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&e(r)})}(arguments),n&&!e&&u()),this},remove:function(){return k.each(arguments,function(t,e){for(var n;(n=k.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?k.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},k.extend({Deferred:function(t){var e=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return k.Deferred(function(n){k.each(e,function(e,r){var i=y(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){var o=0;function a(t,e,r,i){return function(){var s=this,u=arguments,l=function(){var n,l;if(!(t<o)){if((n=r.apply(s,u))===e.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(l)?i?l.call(n,a(o,e,$,i),a(o,e,H,i)):(o++,l.call(n,a(o,e,$,i),a(o,e,H,i),a(o,e,$,e.notifyWith))):(r!==$&&(s=void 0,u=[n]),(i||e.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,c.stackTrace),t+1>=o&&(r!==H&&(s=void 0,u=[n]),e.rejectWith(s,u))}};t?c():(k.Deferred.getStackHook&&(c.stackTrace=k.Deferred.getStackHook()),n.setTimeout(c))}}return k.Deferred(function(n){e[0][3].add(a(0,n,y(i)?i:$,n.notifyWith)),e[1][3].add(a(0,n,y(t)?t:$)),e[2][3].add(a(0,n,y(r)?r:H))}).promise()},promise:function(t){return null!=t?k.extend(t,i):i}},o={};return k.each(e,function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=u.call(arguments),o=k.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?u.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(B(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();for(;n--;)B(i[n],a(n),o.reject);return o.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&F.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){n.setTimeout(function(){throw t})};var U=k.Deferred();function W(){a.removeEventListener("DOMContentLoaded",W),n.removeEventListener("load",W),k.ready()}k.fn.ready=function(t){return U.then(t).catch(function(t){k.readyException(t)}),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==t&&--k.readyWait>0||U.resolveWith(a,[k]))}}),k.ready.then=U.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(k.ready):(a.addEventListener("DOMContentLoaded",W),n.addEventListener("load",W));var q=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===x(n))for(s in i=!0,n)q(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(k(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o},G=/^-ms-/,z=/-([a-z])/g;function V(t,e){return e.toUpperCase()}function Z(t){return t.replace(G,"ms-").replace(z,V)}var J=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function X(){this.expando=k.expando+X.uid++}X.uid=1,X.prototype={cache:function(t){var e=t[this.expando];return e||(e={},J(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[Z(e)]=n;else for(r in e)i[Z(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Z(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(Z):(e=Z(e))in r?[e]:e.match(Y)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||k.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!k.isEmptyObject(e)}};var K=new X,Q=new X,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function nt(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(n)}catch(t){}Q.set(t,e,n)}else n=void 0;return n}k.extend({hasData:function(t){return Q.hasData(t)||K.hasData(t)},data:function(t,e,n){return Q.access(t,e,n)},removeData:function(t,e){Q.remove(t,e)},_data:function(t,e,n){return K.access(t,e,n)},_removeData:function(t,e){K.remove(t,e)}}),k.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=Q.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=Z(r.slice(5)),nt(o,r,i[r]));K.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){Q.set(this,t)}):q(this,function(e){var n;if(o&&void 0===e)return void 0!==(n=Q.get(o,t))?n:void 0!==(n=nt(o,t))?n:void 0;this.each(function(){Q.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Q.remove(this,t)})}}),k.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=K.get(t,e),n&&(!r||Array.isArray(n)?r=K.access(t,e,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=k.queue(t,e),r=n.length,i=n.shift(),o=k._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){k.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return K.get(t,n)||K.access(t,n,{empty:k.Callbacks("once memory").add(function(){K.remove(t,[e+"queue",n])})})}}),k.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?k.queue(this[0],t):void 0===e?this:this.each(function(){var n=k.queue(this,t,e);k._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&k.dequeue(this,t)})},dequeue:function(t){return this.each(function(){k.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=k.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=K.get(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var rt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+rt+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],at=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&k.contains(t.ownerDocument,t)&&"none"===k.css(t,"display")},st=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i};function ut(t,e,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return k.css(t,e,"")},u=s(),l=n&&n[3]||(k.cssNumber[e]?"":"px"),c=(k.cssNumber[e]||"px"!==l&&+u)&&it.exec(k.css(t,e));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)k.style(t,e,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,k.style(t,e,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var lt={};function ct(t){var e,n=t.ownerDocument,r=t.nodeName,i=lt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=k.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),lt[r]=i,i)}function dt(t,e){for(var n,r,i=[],o=0,a=t.length;o<a;o++)(r=t[o]).style&&(n=r.style.display,e?("none"===n&&(i[o]=K.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&at(r)&&(i[o]=ct(r))):"none"!==n&&(i[o]="none",K.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}k.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){at(this)?k(this).show():k(this).hide()})}});var pt=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ht=/^$|^module$|\/(?:java|ecma)script/i,mt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function gt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&E(t,e)?k.merge([t],n):n}function vt(t,e){for(var n=0,r=t.length;n<r;n++)K.set(t[n],"globalEval",!e||K.get(e[n],"globalEval"))}mt.optgroup=mt.option,mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td;var yt=/<|&#?\w+;/;function bt(t,e,n,r,i){for(var o,a,s,u,l,c,d=e.createDocumentFragment(),p=[],f=0,h=t.length;f<h;f++)if((o=t[f])||0===o)if("object"===x(o))k.merge(p,o.nodeType?[o]:o);else if(yt.test(o)){for(a=a||d.appendChild(e.createElement("div")),s=(ft.exec(o)||["",""])[1].toLowerCase(),u=mt[s]||mt._default,a.innerHTML=u[1]+k.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;k.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(e.createTextNode(o));for(d.textContent="",f=0;o=p[f++];)if(r&&k.inArray(o,r)>-1)i&&i.push(o);else if(l=k.contains(o.ownerDocument,o),a=gt(d.appendChild(o),"script"),l&&vt(a),n)for(c=0;o=a[c++];)ht.test(o.type||"")&&n.push(o);return d}!function(){var t=a.createDocumentFragment().appendChild(a.createElement("div")),e=a.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),v.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var wt=a.documentElement,_t=/^key/,xt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,kt=/^([^.]*)(?:\.(.+)|)/;function Tt(){return!0}function St(){return!1}function Ot(){try{return a.activeElement}catch(t){}}function Nt(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)Nt(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=St;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return k().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),t.each(function(){k.event.add(this,e,i,r,n)})}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,d,p,f,h,m,g=K.get(t);if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(wt,i),n.guid||(n.guid=k.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(Y)||[""]).length;l--;)f=m=(s=kt.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=k.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=k.event.special[f]||{},c=k.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[f])||((p=u[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[f]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,d,p,f,h,m,g=K.hasData(t)&&K.get(t);if(g&&(u=g.events)){for(l=(e=(e||"").match(Y)||[""]).length;l--;)if(f=m=(s=kt.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=k.event.special[f]||{},p=u[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(t,c));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(t,h,g.handle)||k.removeEvent(t,f,g.handle),delete u[f])}else for(f in u)k.event.remove(t,f+e[l],n,r,!0);k.isEmptyObject(u)&&K.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=k.event.fix(t),u=new Array(arguments.length),l=(K.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,e=1;e<arguments.length;e++)u[e]=arguments[e];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=k.event.handlers.call(this,s,l),e=0;(i=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,r,i,o,a,s=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=e[n]).selector+" "]&&(a[i]=r.needsContext?k(i,this).index(l)>-1:k.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<e.length&&s.push({elem:l,handlers:e.slice(u)}),s},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[k.expando]?t:new k.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ot()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ot()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&E(this,"input"))return this.click(),!1},_default:function(t){return E(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},k.Event=function(t,e){if(!(this instanceof k.Event))return new k.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Tt:St,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Tt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Tt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Tt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&_t.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&xt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},k.event.addProp),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){k.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||k.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),k.fn.extend({on:function(t,e,n,r){return Nt(this,t,e,n,r)},one:function(t,e,n,r){return Nt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,k(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=St),this.each(function(){k.event.remove(this,t,n,e)})}});var Dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ct=/<script|<style|<link/i,Et=/checked\s*(?:[^=]|=\s*.checked.)/i,Mt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function jt(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function At(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Pt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function It(t,e){var n,r,i,o,a,s,u,l;if(1===e.nodeType){if(K.hasData(t)&&(o=K.access(t),a=K.set(e,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)k.event.add(e,i,l[i][n]);Q.hasData(t)&&(s=Q.access(t),u=k.extend({},s),Q.set(e,u))}}function Rt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&pt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Lt(t,e,n,r){e=l.apply([],e);var i,o,a,s,u,c,d=0,p=t.length,f=p-1,h=e[0],m=y(h);if(m||p>1&&"string"==typeof h&&!v.checkClone&&Et.test(h))return t.each(function(i){var o=t.eq(i);m&&(e[0]=h.call(this,i,o.html())),Lt(o,e,n,r)});if(p&&(o=(i=bt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=k.map(gt(i,"script"),At)).length;d<p;d++)u=i,d!==f&&(u=k.clone(u,!0,!0),s&&k.merge(a,gt(u,"script"))),n.call(t[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,k.map(a,Pt),d=0;d<s;d++)u=a[d],ht.test(u.type||"")&&!K.access(u,"globalEval")&&k.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&k._evalUrl(u.src):_(u.textContent.replace(Mt,""),c,u))}return t}function Yt(t,e,n){for(var r,i=e?k.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(gt(r)),r.parentNode&&(n&&k.contains(r.ownerDocument,r)&&vt(gt(r,"script")),r.parentNode.removeChild(r));return t}k.extend({htmlPrefilter:function(t){return t.replace(Dt,"<$1></$2>")},clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=k.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(a=gt(s),r=0,i=(o=gt(t)).length;r<i;r++)Rt(o[r],a[r]);if(e)if(n)for(o=o||gt(t),a=a||gt(s),r=0,i=o.length;r<i;r++)It(o[r],a[r]);else It(t,s);return(a=gt(s,"script")).length>0&&vt(a,!u&>(t,"script")),s},cleanData:function(t){for(var e,n,r,i=k.event.special,o=0;void 0!==(n=t[o]);o++)if(J(n)){if(e=n[K.expando]){if(e.events)for(r in e.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,e.handle);n[K.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Yt(this,t,!0)},remove:function(t){return Yt(this,t)},text:function(t){return q(this,function(t){return void 0===t?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Lt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||jt(this,t).appendChild(t)})},prepend:function(){return Lt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=jt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Lt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Lt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(gt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return q(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ct.test(t)&&!mt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(k.cleanData(gt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Lt(this,arguments,function(e){var n=this.parentNode;k.inArray(this,t)<0&&(k.cleanData(gt(this)),n&&n.replaceChild(e,this))},t)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){k.fn[t]=function(t){for(var n,r=[],i=k(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),k(i[a])[e](n),c.apply(r,n.get());return this.pushStack(r)}});var $t=new RegExp("^("+rt+")(?!px)[a-z%]+$","i"),Ht=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Bt=new RegExp(ot.join("|"),"i");function Ft(t,e,n){var r,i,o,a,s=t.style;return(n=n||Ht(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||k.contains(t.ownerDocument,t)||(a=k.style(t,e)),!v.pixelBoxStyles()&&$t.test(a)&&Bt.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ut(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",wt.appendChild(l).appendChild(c);var t=n.getComputedStyle(c);r="1%"!==t.top,u=12===e(t.marginLeft),c.style.right="60%",s=36===e(t.right),i=36===e(t.width),c.style.position="absolute",o=36===c.offsetWidth||"absolute",wt.removeChild(l),c=null}}function e(t){return Math.round(parseFloat(t))}var r,i,o,s,u,l=a.createElement("div"),c=a.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,k.extend(v,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o}}))}();var Wt=/^(none|table(?!-c[ea]).+)/,qt=/^--/,Gt={position:"absolute",visibility:"hidden",display:"block"},zt={letterSpacing:"0",fontWeight:"400"},Vt=["Webkit","Moz","ms"],Zt=a.createElement("div").style;function Jt(t){var e=k.cssProps[t];return e||(e=k.cssProps[t]=function(t){if(t in Zt)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=Vt.length;n--;)if((t=Vt[n]+e)in Zt)return t}(t)||t),e}function Xt(t,e,n){var r=it.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function Kt(t,e,n,r,i,o){var a="width"===e?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=k.css(t,n+ot[a],!0,i)),r?("content"===n&&(u-=k.css(t,"padding"+ot[a],!0,i)),"margin"!==n&&(u-=k.css(t,"border"+ot[a]+"Width",!0,i))):(u+=k.css(t,"padding"+ot[a],!0,i),"padding"!==n?u+=k.css(t,"border"+ot[a]+"Width",!0,i):s+=k.css(t,"border"+ot[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))),u}function Qt(t,e,n){var r=Ht(t),i=Ft(t,e,r),o="border-box"===k.css(t,"boxSizing",!1,r),a=o;if($t.test(i)){if(!n)return i;i="auto"}return a=a&&(v.boxSizingReliable()||i===t.style[e]),("auto"===i||!parseFloat(i)&&"inline"===k.css(t,"display",!1,r))&&(i=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(i=parseFloat(i)||0)+Kt(t,e,n||(o?"border":"content"),a,r,i)+"px"}function te(t,e,n,r,i){return new te.prototype.init(t,e,n,r,i)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ft(t,"opacity");return""===n?"1":n}}}},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:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=Z(e),u=qt.test(e),l=t.style;if(u||(e=Jt(s)),a=k.cssHooks[e]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:l[e];"string"===(o=typeof n)&&(i=it.exec(n))&&i[1]&&(n=ut(t,e,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,r){var i,o,a,s=Z(e);return qt.test(e)||(e=Jt(s)),(a=k.cssHooks[e]||k.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Ft(t,e,r)),"normal"===i&&e in zt&&(i=zt[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],function(t,e){k.cssHooks[e]={get:function(t,n,r){if(n)return!Wt.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Qt(t,e,r):st(t,Gt,function(){return Qt(t,e,r)})},set:function(t,n,r){var i,o=Ht(t),a="border-box"===k.css(t,"boxSizing",!1,o),s=r&&Kt(t,e,r,a,o);return a&&v.scrollboxSize()===o.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Kt(t,e,"border",!1,o)-.5)),s&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=k.css(t,e)),Xt(0,n,s)}}}),k.cssHooks.marginLeft=Ut(v.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ft(t,"marginLeft"))||t.getBoundingClientRect().left-st(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(t,e){k.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+ot[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(k.cssHooks[t+e].set=Xt)}),k.fn.extend({css:function(t,e){return q(this,function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Ht(t),i=e.length;a<i;a++)o[e[a]]=k.css(t,e[a],!1,r);return o}return void 0!==n?k.style(t,e,n):k.css(t,e)},t,e,arguments.length>1)}}),k.Tween=te,te.prototype={constructor:te,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var t=te.propHooks[this.prop];return t&&t.get?t.get(this):te.propHooks._default.get(this)},run:function(t){var e,n=te.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):te.propHooks._default.set(this),this}},te.prototype.init.prototype=te.prototype,te.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[k.cssProps[t.prop]]&&!k.cssHooks[t.prop]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}},te.propHooks.scrollTop=te.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=te.prototype.init,k.fx.step={};var ee,ne,re=/^(?:toggle|show|hide)$/,ie=/queueHooks$/;function oe(){ne&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(oe):n.setTimeout(oe,k.fx.interval),k.fx.tick())}function ae(){return n.setTimeout(function(){ee=void 0}),ee=Date.now()}function se(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=ot[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ue(t,e,n){for(var r,i=(le.tweeners[e]||[]).concat(le.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function le(t,e,n){var r,i,o=0,a=le.prefilters.length,s=k.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=ee||ae(),n=Math.max(0,l.startTime+l.duration-e),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(t,[l,r,n]),r<1&&a?n:(a||s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:e,originalOptions:n,startTime:ee||ae(),duration:n.duration,tweens:[],createTween:function(e,n){var r=k.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?(s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l,e])):s.rejectWith(t,[l,e]),this}}),c=l.props;for(!function(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=Z(n)],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=k.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=le.prefilters[o].call(l,t,c,l.opts))return y(r.stop)&&(k._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return k.map(c,ue,l),y(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),k.fx.timer(k.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l}k.Animation=k.extend(le,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ut(n.elem,t,it.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(Y);for(var n,r=0,i=t.length;r<i;r++)n=t[r],le.tweeners[n]=le.tweeners[n]||[],le.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,o,a,s,u,l,c,d="width"in e||"height"in e,p=this,f={},h=t.style,m=t.nodeType&&at(t),g=K.get(t,"fxshow");for(r in n.queue||(null==(a=k._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,k.queue(t,"fx").length||a.empty.fire()})})),e)if(i=e[r],re.test(i)){if(delete e[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}f[r]=g&&g[r]||k.style(t,r)}if((u=!k.isEmptyObject(e))||!k.isEmptyObject(f))for(r in d&&1===t.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=g&&g.display)&&(l=K.get(t,"display")),"none"===(c=k.css(t,"display"))&&(l?c=l:(dt([t],!0),l=t.style.display||l,c=k.css(t,"display"),dt([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===k.css(t,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,f)u||(g?"hidden"in g&&(m=g.hidden):g=K.access(t,"fxshow",{display:l}),o&&(g.hidden=!m),m&&dt([t],!0),p.done(function(){for(r in m||dt([t]),K.remove(t,"fxshow"),f)k.style(t,r,f[r])})),u=ue(m?g[r]:0,r,p),r in g||(g[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?le.prefilters.unshift(t):le.prefilters.push(t)}}),k.speed=function(t,e,n){var r=t&&"object"==typeof t?k.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(t,e,n,r){return this.filter(at).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=k.isEmptyObject(t),o=k.speed(e,n,r),a=function(){var e=le(this,k.extend({},t),o);(i||K.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=k.timers,a=K.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ie.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||k.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=K.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=k.timers,a=r?r.length:0;for(n.finish=!0,k.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),k.each(["toggle","show","hide"],function(t,e){var n=k.fn[e];k.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(se(e,!0),t,r,i)}}),k.each({slideDown:se("show"),slideUp:se("hide"),slideToggle:se("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){k.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),k.timers=[],k.fx.tick=function(){var t,e=0,n=k.timers;for(ee=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||k.fx.stop(),ee=void 0},k.fx.timer=function(t){k.timers.push(t),k.fx.start()},k.fx.interval=13,k.fx.start=function(){ne||(ne=!0,oe())},k.fx.stop=function(){ne=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(t,e){return t=k.fx&&k.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,r){var i=n.setTimeout(e,t);r.stop=function(){n.clearTimeout(i)}})},function(){var t=a.createElement("input"),e=a.createElement("select").appendChild(a.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=a.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var ce,de=k.expr.attrHandle;k.fn.extend({attr:function(t,e){return q(this,k.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){k.removeAttr(this,t)})}}),k.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?k.prop(t,e,n):(1===o&&k.isXMLDoc(t)||(i=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?ce:void 0)),void 0!==n?null===n?void k.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=k.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&E(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(Y);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),ce={set:function(t,e,n){return!1===e?k.removeAttr(t,n):t.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(t,e){var n=de[e]||k.find.attr;de[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=de[a],de[a]=i,i=null!=n(t,e,r)?a:null,de[a]=o),i}});var pe=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function he(t){return(t.match(Y)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ge(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Y)||[]}k.fn.extend({prop:function(t,e){return q(this,k.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[k.propFix[t]||t]})}}),k.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,i=k.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):pe.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(y(t))return this.each(function(e){k(this).addClass(t.call(this,e,me(this)))});if((e=ge(t)).length)for(;n=this[u++];)if(i=me(n),r=1===n.nodeType&&" "+he(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=he(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(y(t))return this.each(function(e){k(this).removeClass(t.call(this,e,me(this)))});if(!arguments.length)return this.attr("class","");if((e=ge(t)).length)for(;n=this[u++];)if(i=me(n),r=1===n.nodeType&&" "+he(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=he(r))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):y(t)?this.each(function(n){k(this).toggleClass(t.call(this,n,me(this),e),e)}):this.each(function(){var e,i,o,a;if(r)for(i=0,o=k(this),a=ge(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=me(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":K.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+he(me(n))+" ").indexOf(e)>-1)return!0;return!1}});var ve=/\r/g;k.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,k(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=k.map(i,function(t){return null==t?"":t+""})),(e=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ve,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:he(k.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(e=k(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=k.makeArray(e),a=i.length;a--;)((r=i[a]).selected=k.inArray(k.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=k.inArray(k(t).val(),e)>-1}},v.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),v.focusin="onfocusin"in n;var ye=/^(?:focusinfocus|focusoutblur)$/,be=function(t){t.stopPropagation()};k.extend(k.event,{trigger:function(t,e,r,i){var o,s,u,l,c,d,p,f,m=[r||a],g=h.call(t,"type")?t.type:t,v=h.call(t,"namespace")?t.namespace.split("."):[];if(s=f=u=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!ye.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(g=(v=g.split(".")).shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[k.expando]?t:new k.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:k.makeArray(e,[t]),p=k.event.special[g]||{},i||!p.trigger||!1!==p.trigger.apply(r,e))){if(!i&&!p.noBubble&&!b(r)){for(l=p.delegateType||g,ye.test(l+g)||(s=s.parentNode);s;s=s.parentNode)m.push(s),u=s;u===(r.ownerDocument||a)&&m.push(u.defaultView||u.parentWindow||n)}for(o=0;(s=m[o++])&&!t.isPropagationStopped();)f=s,t.type=o>1?l:p.bindType||g,(d=(K.get(s,"events")||{})[t.type]&&K.get(s,"handle"))&&d.apply(s,e),(d=c&&s[c])&&d.apply&&J(s)&&(t.result=d.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(m.pop(),e)||!J(r)||c&&y(r[g])&&!b(r)&&((u=r[c])&&(r[c]=null),k.event.triggered=g,t.isPropagationStopped()&&f.addEventListener(g,be),r[g](),t.isPropagationStopped()&&f.removeEventListener(g,be),k.event.triggered=void 0,u&&(r[c]=u)),t.result}},simulate:function(t,e,n){var r=k.extend(new k.Event,n,{type:t,isSimulated:!0});k.event.trigger(r,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each(function(){k.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return k.event.trigger(t,e,n,!0)}}),v.focusin||k.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){k.event.simulate(e,t.target,k.event.fix(t))};k.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=K.access(r,e);i||r.addEventListener(t,n,!0),K.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=K.access(r,e)-1;i?K.access(r,e,i):(r.removeEventListener(t,n,!0),K.remove(r,e))}}});var we=n.location,_e=Date.now(),xe=/\?/;k.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+t),e};var ke=/\[\]$/,Te=/\r?\n/g,Se=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;function Ne(t,e,n,r){var i;if(Array.isArray(e))k.each(e,function(e,i){n||ke.test(t)?r(t,i):Ne(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==x(e))r(t,e);else for(i in e)Ne(t+"["+i+"]",e[i],n,r)}k.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){i(this.name,this.value)});else for(n in t)Ne(n,t[n],e,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Oe.test(this.nodeName)&&!Se.test(t)&&(this.checked||!pt.test(t))}).map(function(t,e){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(t){return{name:e.name,value:t.replace(Te,"\r\n")}}):{name:e.name,value:n.replace(Te,"\r\n")}}).get()}});var De=/%20/g,Ce=/#.*$/,Ee=/([?&])_=[^&]*/,Me=/^(.*?):[ \t]*([^\r\n]*)$/gm,je=/^(?:GET|HEAD)$/,Ae=/^\/\//,Pe={},Ie={},Re="*/".concat("*"),Le=a.createElement("a");function Ye(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(Y)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function $e(t,e,n,r){var i={},o=t===Ie;function a(s){var u;return i[s]=!0,k.each(t[s]||[],function(t,s){var l=s(e,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),a(l),!1)}),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function He(t,e){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&k.extend(!0,t,r),t}Le.href=we.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Re,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":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,k.ajaxSettings),e):He(k.ajaxSettings,t)},ajaxPrefilter:Ye(Pe),ajaxTransport:Ye(Ie),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,s,u,l,c,d,p,f,h=k.ajaxSetup({},e),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?k(m):k.event,v=k.Deferred(),y=k.Callbacks("once memory"),b=h.statusCode||{},w={},_={},x="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=Me.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)T.always(t[T.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||x;return r&&r.abort(e),S(0,e),this}};if(v.promise(T),h.url=((t||h.url||we.href)+"").replace(Ae,we.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Y)||[""],null==h.crossDomain){l=a.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Le.protocol+"//"+Le.host!=l.protocol+"//"+l.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),$e(Pe,h,e,T),c)return T;for(p in(d=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!je.test(h.type),i=h.url.replace(Ce,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(De,"+")):(f=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(xe.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Ee,"$1"),f=(xe.test(i)?"&":"?")+"_="+_e+++f),h.url=i+f),h.ifModified&&(k.lastModified[i]&&T.setRequestHeader("If-Modified-Since",k.lastModified[i]),k.etag[i]&&T.setRequestHeader("If-None-Match",k.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&T.setRequestHeader("Content-Type",h.contentType),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Re+"; q=0.01":""):h.accepts["*"]),h.headers)T.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(m,T,h)||c))return T.abort();if(x="abort",y.add(h.complete),T.done(h.success),T.fail(h.error),r=$e(Ie,h,e,T)){if(T.readyState=1,d&&g.trigger("ajaxSend",[T,h]),c)return T;h.async&&h.timeout>0&&(u=n.setTimeout(function(){T.abort("timeout")},h.timeout));try{c=!1,r.send(w,S)}catch(t){if(c)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,a,s){var l,p,f,w,_,x=e;c||(c=!0,u&&n.clearTimeout(u),r=void 0,o=s||"",T.readyState=t>0?4:0,l=t>=200&&t<300||304===t,a&&(w=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,T,a)),w=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(h,w,T,l),l?(h.ifModified&&((_=T.getResponseHeader("Last-Modified"))&&(k.lastModified[i]=_),(_=T.getResponseHeader("etag"))&&(k.etag[i]=_)),204===t||"HEAD"===h.type?x="nocontent":304===t?x="notmodified":(x=w.state,p=w.data,l=!(f=w.error))):(f=x,!t&&x||(x="error",t<0&&(t=0))),T.status=t,T.statusText=(e||x)+"",l?v.resolveWith(m,[p,x,T]):v.rejectWith(m,[T,x,f]),T.statusCode(b),b=void 0,d&&g.trigger(l?"ajaxSuccess":"ajaxError",[T,h,l?p:f]),y.fireWith(m,[T,x]),d&&(g.trigger("ajaxComplete",[T,h]),--k.active||k.event.trigger("ajaxStop")))}return T},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,e){k[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),k.ajax(k.extend({url:t,type:e,dataType:i,data:n,success:r},k.isPlainObject(t)&&t))}}),k._evalUrl=function(t){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return y(t)?this.each(function(e){k(this).wrapInner(t.call(this,e))}):this.each(function(){var e=k(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(n){k(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Be={0:200,1223:204},Fe=k.ajaxSettings.xhr();v.cors=!!Fe&&"withCredentials"in Fe,v.ajax=Fe=!!Fe,k.ajaxTransport(function(t){var e,r;if(v.cors||Fe&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Be[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),k.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),k.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,i){e=k("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),a.head.appendChild(e[0])},abort:function(){n&&n()}}});var Ue=[],We=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ue.pop()||k.expando+"_"+_e++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",function(t,e,r){var i,o,a,s=!1!==t.jsonp&&(We.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&We.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(We,"$1"+i):!1!==t.jsonp&&(t.url+=(xe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||k.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?k(n).removeProp(i):n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ue.push(i)),a&&y(o)&&o(a[0]),a=o=void 0}),"script"}),v.createHTMLDocument=function(){var t=a.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),k.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((r=(e=a.implementation.createHTMLDocument("")).createElement("base")).href=a.location.href,e.head.appendChild(r)):e=a),i=M.exec(t),o=!n&&[],i?[e.createElement(i[1])]:(i=bt([t],e,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(t,e,n){var r,i,o,a=this,s=t.indexOf(" ");return s>-1&&(r=he(t.slice(s)),t=t.slice(0,s)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&k.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?k("<div>").append(k.parseHTML(t)).find(r):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l=k.css(t,"position"),c=k(t),d={};"static"===l&&(t.style.position="relative"),s=c.offset(),o=k.css(t,"top"),u=k.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),y(e)&&(e=e.call(t,n,k.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+i),"using"in e?e.using.call(t,d):c.css(d)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===k.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=k(t).offset()).top+=k.css(t,"borderTopWidth",!0),i.left+=k.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-k.css(r,"marginTop",!0),left:e.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===k.css(t,"position");)t=t.offsetParent;return t||wt})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;k.fn[t]=function(r){return q(this,function(t,r,i){var o;if(b(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i},t,r,arguments.length)}}),k.each(["top","left"],function(t,e){k.cssHooks[e]=Ut(v.pixelPosition,function(t,n){if(n)return n=Ft(t,e),$t.test(n)?k(t).position()[e]+"px":n})}),k.each({Height:"height",Width:"width"},function(t,e){k.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){k.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return q(this,function(e,n,i){var o;return b(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?k.css(e,n,s):k.style(e,n,i,s)},e,a?i:void 0,a)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){k.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),k.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),k.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),k.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return r=u.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(u.call(arguments)))}).guid=t.guid=t.guid||k.guid++,i},k.holdReady=function(t){t?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=E,k.isFunction=y,k.isWindow=b,k.camelCase=Z,k.type=x,k.now=Date.now,k.isNumeric=function(t){var e=k.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},void 0===(r=function(){return k}.apply(e,[]))||(t.exports=r);var qe=n.jQuery,Ge=n.$;return k.noConflict=function(t){return n.$===k&&(n.$=Ge),t&&n.jQuery===k&&(n.jQuery=qe),k},i||(n.jQuery=n.$=k),k})},function(t,e,n){(function(e){t.exports=e.m=n(66)}).call(this,n(25))},function(t,e,n){(function(e){t.exports=e.moment=n(75)}).call(this,n(25))},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,n;function r(){return e.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function s(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,r){return Ce(t,e,n,r,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function h(t){if(null==t._isValid){var e=f(t),r=n.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function m(t){var e=p(NaN);return null!=t?d(f(e),t):f(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var g=r.momentProperties=[];function v(t,e){var n,r,i;if(a(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),a(e._i)||(t._i=e._i),a(e._f)||(t._f=e._f),a(e._l)||(t._l=e._l),a(e._strict)||(t._strict=e._strict),a(e._tzm)||(t._tzm=e._tzm),a(e._isUTC)||(t._isUTC=e._isUTC),a(e._offset)||(t._offset=e._offset),a(e._pf)||(t._pf=f(e)),a(e._locale)||(t._locale=e._locale),g.length>0)for(n=0;n<g.length;n++)r=g[n],a(i=e[r])||(t[r]=i);return t}var y=!1;function b(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function w(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function _(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function x(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=_(e)),n}function k(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&x(t[r])!==x(e[r]))&&a++;return a+o}function T(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,e){var n=!0;return d(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){for(var s in i+="\n["+a+"] ",arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}T(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var O,N={};function D(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),N[t]||(T(e),N[t]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function E(t,e){var n,r=d({},t);for(n in e)c(e,n)&&(o(t[n])&&o(e[n])?(r[n]={},d(r[n],t[n]),d(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)c(t,n)&&!c(e,n)&&o(t[n])&&(r[n]=d({},r[n]));return r}function M(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,O=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var j={};function A(t,e){var n=t.toLowerCase();j[n]=j[n+"s"]=j[e]=t}function P(t){return"string"==typeof t?j[t]||j[t.toLowerCase()]:void 0}function I(t){var e,n,r={};for(n in t)c(t,n)&&(e=P(n))&&(r[e]=t[n]);return r}var R={};function L(t,e){R[t]=e}function Y(t,e,n){var r=""+Math.abs(t),i=e-r.length,o=t>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var $=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},F={};function U(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(F[t]=i),e&&(F[e[0]]=function(){return Y(i.apply(this,arguments),e[1],e[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function W(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function q(t,e){return t.isValid()?(e=G(e,t.localeData()),B[e]=B[e]||function(t){var e,n,r=t.match($);for(e=0,n=r.length;e<n;e++)F[r[e]]?r[e]=F[r[e]]:r[e]=W(r[e]);return function(e){var i,o="";for(i=0;i<n;i++)o+=C(r[i])?r[i].call(e,t):r[i];return o}}(e),B[e](t)):t.localeData().invalidDate()}function G(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(H.lastIndex=0;n>=0&&H.test(t);)t=t.replace(H,r),H.lastIndex=0,n-=1;return t}var z=/\d/,V=/\d\d/,Z=/\d{3}/,J=/\d{4}/,X=/[+-]?\d{6}/,K=/\d\d?/,Q=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,it=/\d+/,ot=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,lt={};function ct(t,e,n){lt[t]=C(e)?e:function(t,r){return t&&n?n:e}}function dt(t,e){return c(lt,t)?lt[t](e._strict,e._locale):new RegExp(function(t){return pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}(t))}function pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function ht(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),s(e)&&(r=function(t,n){n[e]=x(t)}),n=0;n<t.length;n++)ft[t[n]]=r}function mt(t,e){ht(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function gt(t,e,n){null!=e&&c(ft,t)&&ft[t](e,n._a,n,t)}var vt=0,yt=1,bt=2,wt=3,_t=4,xt=5,kt=6,Tt=7,St=8;function Ot(t){return Nt(t)?366:365}function Nt(t){return t%4==0&&t%100!=0||t%400==0}U("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),A("year","y"),L("year",1),ct("Y",ot),ct("YY",K,V),ct("YYYY",nt,J),ct("YYYYY",rt,X),ct("YYYYYY",rt,X),ht(["YYYYY","YYYYYY"],vt),ht("YYYY",function(t,e){e[vt]=2===t.length?r.parseTwoDigitYear(t):x(t)}),ht("YY",function(t,e){e[vt]=r.parseTwoDigitYear(t)}),ht("Y",function(t,e){e[vt]=parseInt(t,10)}),r.parseTwoDigitYear=function(t){return x(t)+(x(t)>68?1900:2e3)};var Dt,Ct=Et("FullYear",!0);function Et(t,e){return function(n){return null!=n?(jt(this,t,n),r.updateOffset(this,e),this):Mt(this,t)}}function Mt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function jt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Nt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),At(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function At(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?Nt(t)?29:28:31-n%7%2}Dt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),U("MMMM",0,0,function(t){return this.localeData().months(this,t)}),A("month","M"),L("month",8),ct("M",K),ct("MM",K,V),ct("MMM",function(t,e){return e.monthsShortRegex(t)}),ct("MMMM",function(t,e){return e.monthsRegex(t)}),ht(["M","MM"],function(t,e){e[yt]=x(t)-1}),ht(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[yt]=i:f(n).invalidMonth=t});var Pt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,It="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Rt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Lt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=x(e);else if(!s(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),At(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Yt(t){return null!=t?(Lt(this,t),r.updateOffset(this,!0),this):Mt(this,"Month")}var $t=ut,Ht=ut;function Bt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],o=[];for(e=0;e<12;e++)n=p([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),o.sort(t),e=0;e<12;e++)r[e]=pt(r[e]),i[e]=pt(i[e]);for(e=0;e<24;e++)o[e]=pt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ft(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Ut(t,e,n){var r=7+e-n,i=(7+Ft(t,0,r).getUTCDay()-e)%7;return-i+r-1}function Wt(t,e,n,r,i){var o,a,s=(7+n-r)%7,u=Ut(t,r,i),l=1+7*(e-1)+s+u;return l<=0?a=Ot(o=t-1)+l:l>Ot(t)?(o=t+1,a=l-Ot(t)):(o=t,a=l),{year:o,dayOfYear:a}}function qt(t,e,n){var r,i,o=Ut(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?(i=t.year()-1,r=a+Gt(i,e,n)):a>Gt(t.year(),e,n)?(r=a-Gt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Gt(t,e,n){var r=Ut(t,e,n),i=Ut(t+1,e,n);return(Ot(t)-r+i)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),L("week",5),L("isoWeek",5),ct("w",K),ct("ww",K,V),ct("W",K),ct("WW",K,V),mt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=x(t)}),U("d",0,"do","day"),U("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),U("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),U("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),ct("d",K),ct("e",K),ct("E",K),ct("dd",function(t,e){return e.weekdaysMinRegex(t)}),ct("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ct("dddd",function(t,e){return e.weekdaysRegex(t)}),mt(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:f(n).invalidWeekday=t}),mt(["d","e","E"],function(t,e,n,r){e[r]=x(t)});var zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Jt=ut,Xt=ut,Kt=ut;function Qt(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(t),s.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)s[e]=pt(s[e]),u[e]=pt(u[e]),l[e]=pt(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function te(){return this.hours()%12||12}function ee(t,e){U(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ne(t,e){return e._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,te),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+te.apply(this)+Y(this.minutes(),2)}),U("hmmss",0,0,function(){return""+te.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),ee("a",!0),ee("A",!1),A("hour","h"),L("hour",13),ct("a",ne),ct("A",ne),ct("H",K),ct("h",K),ct("k",K),ct("HH",K,V),ct("hh",K,V),ct("kk",K,V),ct("hmm",Q),ct("hmmss",tt),ct("Hmm",Q),ct("Hmmss",tt),ht(["H","HH"],wt),ht(["k","kk"],function(t,e,n){var r=x(t);e[wt]=24===r?0:r}),ht(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ht(["h","hh"],function(t,e,n){e[wt]=x(t),f(n).bigHour=!0}),ht("hmm",function(t,e,n){var r=t.length-2;e[wt]=x(t.substr(0,r)),e[_t]=x(t.substr(r)),f(n).bigHour=!0}),ht("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=x(t.substr(0,r)),e[_t]=x(t.substr(r,2)),e[xt]=x(t.substr(i)),f(n).bigHour=!0}),ht("Hmm",function(t,e,n){var r=t.length-2;e[wt]=x(t.substr(0,r)),e[_t]=x(t.substr(r))}),ht("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=x(t.substr(0,r)),e[_t]=x(t.substr(r,2)),e[xt]=x(t.substr(i))});var re,ie=Et("Hours",!0),oe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:It,monthsShort:Rt,week:{dow:0,doy:6},weekdays:zt,weekdaysMin:Zt,weekdaysShort:Vt,meridiemParse:/[ap]\.?m?\.?/i},ae={},se={};function ue(t){return t?t.toLowerCase().replace("_","-"):t}function le(e){var n=null;if(!ae[e]&&void 0!==t&&t&&t.exports)try{n=re._abbr,!function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}(),ce(n)}catch(t){}return ae[e]}function ce(t,e){var n;return t&&((n=a(e)?pe(t):de(t,e))?re=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),re._abbr}function de(t,e){if(null!==e){var n,r=oe;if(e.abbr=t,null!=ae[t])D("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."),r=ae[t]._config;else if(null!=e.parentLocale)if(null!=ae[e.parentLocale])r=ae[e.parentLocale]._config;else{if(null==(n=le(e.parentLocale)))return se[e.parentLocale]||(se[e.parentLocale]=[]),se[e.parentLocale].push({name:t,config:e}),null;r=n._config}return ae[t]=new M(E(r,e)),se[t]&&se[t].forEach(function(t){de(t.name,t.config)}),ce(t),ae[t]}return delete ae[t],null}function pe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return re;if(!i(t)){if(e=le(t))return e;t=[t]}return function(t){for(var e,n,r,i,o=0;o<t.length;){for(i=ue(t[o]).split("-"),e=i.length,n=(n=ue(t[o+1]))?n.split("-"):null;e>0;){if(r=le(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&k(i,n,!0)>=e-1)break;e--}o++}return re}(t)}function fe(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[yt]<0||n[yt]>11?yt:n[bt]<1||n[bt]>At(n[vt],n[yt])?bt:n[wt]<0||n[wt]>24||24===n[wt]&&(0!==n[_t]||0!==n[xt]||0!==n[kt])?wt:n[_t]<0||n[_t]>59?_t:n[xt]<0||n[xt]>59?xt:n[kt]<0||n[kt]>999?kt:-1,f(t)._overflowDayOfYear&&(e<vt||e>bt)&&(e=bt),f(t)._overflowWeeks&&-1===e&&(e=Tt),f(t)._overflowWeekday&&-1===e&&(e=St),f(t).overflow=e),t}function he(t,e,n){return null!=t?t:null!=e?e:n}function me(t){var e,n,i,o,a,s=[];if(!t._d){for(i=function(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[yt]&&function(t){var e,n,r,i,o,a,s,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,a=4,n=he(e.GG,t._a[vt],qt(Ee(),1,4).year),r=he(e.W,1),((i=he(e.E,1))<1||i>7)&&(u=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var l=qt(Ee(),o,a);n=he(e.gg,t._a[vt],l.year),r=he(e.w,l.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(u=!0)):i=o}r<1||r>Gt(n,o,a)?f(t)._overflowWeeks=!0:null!=u?f(t)._overflowWeekday=!0:(s=Wt(n,r,i,o,a),t._a[vt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=he(t._a[vt],i[vt]),(t._dayOfYear>Ot(a)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Ft(a,0,t._dayOfYear),t._a[yt]=n.getUTCMonth(),t._a[bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[_t]&&0===t._a[xt]&&0===t._a[kt]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Ft:function(t,e,n,r,i,o,a){var s=new Date(t,e,n,r,i,o,a);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}var ge=/^\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)?)?$/,ve=/^\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)?)?$/,ye=/Z|[+-]\d\d(?::?\d\d)?/,be=[["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}/]],we=[["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/]],_e=/^\/?Date\((\-?\d+)/i;function xe(t){var e,n,r,i,o,a,s=t._i,u=ge.exec(s)||ve.exec(s);if(u){for(f(t).iso=!0,e=0,n=be.length;e<n;e++)if(be[e][1].exec(u[1])){i=be[e][0],r=!1!==be[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=we.length;e<n;e++)if(we[e][1].exec(u[3])){o=(u[2]||" ")+we[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(u[4]){if(!ye.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),Ne(t)}else t._isValid=!1}var ke=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Te(t,e,n,r,i,o){var a=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),Rt.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}var Se={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Oe(t){var e=ke.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(e){var n=Te(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t){var r=Vt.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return f(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){if(t)return Se[t];if(e)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return 60*o+i}(e[8],e[9],e[10]),t._d=Ft.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function Ne(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],f(t).empty=!0;var e,n,i,o,a,s=""+t._i,u=s.length,l=0;for(i=G(t._f,t._locale).match($)||[],e=0;e<i.length;e++)o=i[e],(n=(s.match(dt(o,t))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&f(t).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),l+=n.length),F[o]?(n?f(t).empty=!1:f(t).unusedTokens.push(o),gt(o,n,t)):t._strict&&!n&&f(t).unusedTokens.push(o);f(t).charsLeftOver=u-l,s.length>0&&f(t).unusedInput.push(s),t._a[wt]<=12&&!0===f(t).bigHour&&t._a[wt]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}(t._locale,t._a[wt],t._meridiem),me(t),fe(t)}else Oe(t);else xe(t)}function De(t){var e=t._i,n=t._f;return t._locale=t._locale||pe(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new b(fe(e)):(u(e)?t._d=e:i(n)?function(t){var e,n,r,i,o;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)o=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Ne(e),h(e)&&(o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,(null==r||o<r)&&(r=o,n=e));d(t,n||e)}(t):n?Ne(t):function(t){var e=t._i;a(e)?t._d=new Date(r.now()):u(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=_e.exec(t._i);null===e?(xe(t),!1===t._isValid&&(delete t._isValid,Oe(t),!1===t._isValid&&(delete t._isValid,r.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):i(e)?(t._a=l(e.slice(0),function(t){return parseInt(t,10)}),me(t)):o(e)?function(t){if(!t._d){var e=I(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),me(t)}}(t):s(e)?t._d=new Date(e):r.createFromInputFallback(t)}(t),h(t)||(t._d=null),t))}function Ce(t,e,n,r,a){var s={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||i(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=a,s._l=n,s._i=t,s._f=e,s._strict=r,function(t){var e=new b(fe(De(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}(s)}function Ee(t,e,n,r){return Ce(t,e,n,r,!1)}r.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Me=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ee.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),je=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ee.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()});function Ae(t,e){var n,r;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return Ee();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Pe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ie(t){var e=I(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||0,a=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Dt.call(Pe,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Pe.length;++r)if(t[Pe[r]]){if(n)return!1;parseFloat(t[Pe[r]])!==x(t[Pe[r]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=pe(),this._bubble()}function Re(t){return t instanceof Ie}function Le(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ye(t,e){U(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+Y(~~(t/60),2)+e+Y(~~t%60,2)})}Ye("Z",":"),Ye("ZZ",""),ct("Z",st),ct("ZZ",st),ht(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=He(st,t)});var $e=/([\+\-]|\d\d)/gi;function He(t,e){var n=(e||"").match(t);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match($e)||["-",0,0],o=60*i[1]+x(i[2]);return 0===o?0:"+"===i[0]?o:-o}function Be(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(w(t)||u(t)?t.valueOf():Ee(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Ee(t).local()}function Fe(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ue(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var We=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ge(t,e){var n,r,i,o=t,a=null;return Re(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:s(t)?(o={},e?o[e]=t:o.milliseconds=t):(a=We.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:x(a[bt])*n,h:x(a[wt])*n,m:x(a[_t])*n,s:x(a[xt])*n,ms:x(Le(1e3*a[kt]))*n}):(a=qe.exec(t))?(n="-"===a[1]?-1:(a[1],1),o={y:ze(a[2],n),M:ze(a[3],n),w:ze(a[4],n),d:ze(a[5],n),h:ze(a[6],n),m:ze(a[7],n),s:ze(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=function(t,e){var n;return t.isValid()&&e.isValid()?(e=Be(e,t),t.isBefore(e)?n=Ve(t,e):((n=Ve(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Ee(o.from),Ee(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new Ie(o),Re(t)&&c(t,"_locale")&&(r._locale=t._locale),r}function ze(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ve(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ze(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(D(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Je(this,Ge(n="string"==typeof n?+n:n,r),t),this}}function Je(t,e,n,i){var o=e._milliseconds,a=Le(e._days),s=Le(e._months);t.isValid()&&(i=null==i||i,s&&Lt(t,Mt(t,"Month")+s*n),a&&jt(t,"Date",Mt(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),i&&r.updateOffset(t,a||s))}Ge.fn=Ie.prototype,Ge.invalid=function(){return Ge(NaN)};var Xe=Ze(1,"add"),Ke=Ze(-1,"subtract");function Qe(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(i,"months");return e-o<0?(n=t.clone().add(i-1,"months"),r=(e-o)/(o-n)):(n=t.clone().add(i+1,"months"),r=(e-o)/(n-o)),-(i+r)||0}function tn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=pe(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function nn(){return this._locale}function rn(t,e){U(0,[t,t.length],0,e)}function on(t,e,n,r,i){var o;return null==t?qt(this,r,i).year:(o=Gt(t,r,i),e>o&&(e=o),function(t,e,n,r,i){var o=Wt(t,e,n,r,i),a=Ft(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,r,i))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),ct("G",ot),ct("g",ot),ct("GG",K,V),ct("gg",K,V),ct("GGGG",nt,J),ct("gggg",nt,J),ct("GGGGG",rt,X),ct("ggggg",rt,X),mt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=x(t)}),mt(["gg","GG"],function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)}),U("Q",0,"Qo","quarter"),A("quarter","Q"),L("quarter",7),ct("Q",z),ht("Q",function(t,e){e[yt]=3*(x(t)-1)}),U("D",["DD",2],"Do","date"),A("date","D"),L("date",9),ct("D",K),ct("DD",K,V),ct("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ht(["D","DD"],bt),ht("Do",function(t,e){e[bt]=x(t.match(K)[0])});var an=Et("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),L("dayOfYear",4),ct("DDD",et),ct("DDDD",Z),ht(["DDD","DDDD"],function(t,e,n){n._dayOfYear=x(t)}),U("m",["mm",2],0,"minute"),A("minute","m"),L("minute",14),ct("m",K),ct("mm",K,V),ht(["m","mm"],_t);var sn=Et("Minutes",!1);U("s",["ss",2],0,"second"),A("second","s"),L("second",15),ct("s",K),ct("ss",K,V),ht(["s","ss"],xt);var un,ln=Et("Seconds",!1);for(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()}),A("millisecond","ms"),L("millisecond",16),ct("S",et,z),ct("SS",et,V),ct("SSS",et,Z),un="SSSS";un.length<=9;un+="S")ct(un,it);function cn(t,e){e[kt]=x(1e3*("0."+t))}for(un="S";un.length<=9;un+="S")ht(un,cn);var dn=Et("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var pn=b.prototype;function fn(t){return t}pn.add=Xe,pn.calendar=function(t,e){var n=t||Ee(),i=Be(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=e&&(C(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,Ee(n)))},pn.clone=function(){return new b(this)},pn.diff=function(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Be(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=P(e)){case"year":o=Qe(this,r)/12;break;case"month":o=Qe(this,r);break;case"quarter":o=Qe(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:_(o)},pn.endOf=function(t){return void 0===(t=P(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},pn.format=function(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=q(this,t);return this.localeData().postformat(e)},pn.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Ee(t).isValid())?Ge({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},pn.fromNow=function(t){return this.from(Ee(),t)},pn.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Ee(t).isValid())?Ge({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},pn.toNow=function(t){return this.to(Ee(),t)},pn.get=function(t){return C(this[t=P(t)])?this[t]():this},pn.invalidAt=function(){return f(this).overflow},pn.isAfter=function(t,e){var n=w(t)?t:Ee(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=P(a(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},pn.isBefore=function(t,e){var n=w(t)?t:Ee(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=P(a(e)?"millisecond":e))?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},pn.isBetween=function(t,e,n,r){return("("===(r=r||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===r[1]?this.isBefore(e,n):!this.isAfter(e,n))},pn.isSame=function(t,e){var n,r=w(t)?t:Ee(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=P(e||"millisecond"))?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},pn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},pn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},pn.isValid=function(){return h(this)},pn.lang=en,pn.locale=tn,pn.localeData=nn,pn.max=je,pn.min=Me,pn.parsingFlags=function(){return d({},f(this))},pn.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:R[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=I(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(C(this[t=P(t)]))return this[t](e);return this},pn.startOf=function(t){switch(t=P(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},pn.subtract=Ke,pn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},pn.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},pn.toDate=function(){return new Date(this.valueOf())},pn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?q(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",q(n,"Z")):q(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},pn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},pn.toJSON=function(){return this.isValid()?this.toISOString():null},pn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pn.unix=function(){return Math.floor(this.valueOf()/1e3)},pn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pn.year=Ct,pn.isLeapYear=function(){return Nt(this.year())},pn.weekYear=function(t){return on.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},pn.isoWeekYear=function(t){return on.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},pn.quarter=pn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},pn.month=Yt,pn.daysInMonth=function(){return At(this.year(),this.month())},pn.week=pn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},pn.isoWeek=pn.isoWeeks=function(t){var e=qt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},pn.weeksInYear=function(){var t=this.localeData()._week;return Gt(this.year(),t.dow,t.doy)},pn.isoWeeksInYear=function(){return Gt(this.year(),1,4)},pn.date=an,pn.day=pn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},pn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},pn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},pn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},pn.hour=pn.hours=ie,pn.minute=pn.minutes=sn,pn.second=pn.seconds=ln,pn.millisecond=pn.milliseconds=dn,pn.utcOffset=function(t,e,n){var i,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=He(st,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=Fe(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==t&&(!e||this._changeInProgress?Je(this,Ge(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Fe(this)},pn.utc=function(t){return this.utcOffset(0,t)},pn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Fe(this),"m")),this},pn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},pn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ee(t).utcOffset():0,(this.utcOffset()-t)%60==0)},pn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pn.isLocal=function(){return!!this.isValid()&&!this._isUTC},pn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pn.isUtc=Ue,pn.isUTC=Ue,pn.zoneAbbr=function(){return this._isUTC?"UTC":""},pn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pn.dates=S("dates accessor is deprecated. Use date instead.",an),pn.months=S("months accessor is deprecated. Use month instead",Yt),pn.years=S("years accessor is deprecated. Use year instead",Ct),pn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),pn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=De(t))._a){var e=t._isUTC?p(t._a):Ee(t._a);this._isDSTShifted=this.isValid()&&k(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=M.prototype;function mn(t,e,n,r){var i=pe(),o=p().set(r,e);return i[n](o,t)}function gn(t,e,n){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return mn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mn(t,r,n,"month");return i}function vn(t,e,n,r){"boolean"==typeof t?(s(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,s(e)&&(n=e,e=void 0),e=e||"");var i,o=pe(),a=t?o._week.dow:0;if(null!=n)return mn(e,(n+a)%7,r,"day");var u=[];for(i=0;i<7;i++)u[i]=mn(e,(i+a)%7,r,"day");return u}hn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return C(r)?r.call(e,n):r},hn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(t){return this._ordinal.replace("%d",t)},hn.preparse=fn,hn.postformat=fn,hn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return C(i)?i(t,e,n,r):i.replace(/%d/i,t)},hn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)},hn.set=function(t){var e,n;for(n in t)C(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Pt).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone},hn.monthsShort=function(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Pt.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(t,e,n){var r,i,o;if(this._monthsParseExact)return function(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Dt.call(this._shortMonthsParse,a))?i:null:-1!==(i=Dt.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=Dt.call(this._shortMonthsParse,a))?i:-1!==(i=Dt.call(this._longMonthsParse,a))?i:null:-1!==(i=Dt.call(this._longMonthsParse,a))?i:-1!==(i=Dt.call(this._shortMonthsParse,a))?i:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},hn.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Bt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ht),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Bt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=$t),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(t){return qt(t,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(t,e){return t?i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},hn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},hn.weekdaysParse=function(t,e,n){var r,i,o;if(this._weekdaysParseExact)return function(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Dt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Dt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Dt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Dt.call(this._weekdaysParse,a))?i:-1!==(i=Dt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Dt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Dt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Dt.call(this._weekdaysParse,a))?i:-1!==(i=Dt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Dt.call(this._minWeekdaysParse,a))?i:-1!==(i=Dt.call(this._weekdaysParse,a))?i:-1!==(i=Dt.call(this._shortWeekdaysParse,a))?i:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},hn.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Jt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},hn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},ce("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",ce),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",pe);var yn=Math.abs;function bn(t,e,n,r){var i=Ge(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function wn(t){return t<0?Math.floor(t):Math.ceil(t)}function _n(t){return 4800*t/146097}function xn(t){return 146097*t/4800}function kn(t){return function(){return this.as(t)}}var Tn=kn("ms"),Sn=kn("s"),On=kn("m"),Nn=kn("h"),Dn=kn("d"),Cn=kn("w"),En=kn("M"),Mn=kn("y");function jn(t){return function(){return this.isValid()?this._data[t]:NaN}}var An=jn("milliseconds"),Pn=jn("seconds"),In=jn("minutes"),Rn=jn("hours"),Ln=jn("days"),Yn=jn("months"),$n=jn("years"),Hn=Math.round,Bn={ss:44,s:45,m:45,h:22,d:26,M:11},Fn=Math.abs;function Un(t){return(t>0)-(t<0)||+t}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Fn(this._milliseconds)/1e3,r=Fn(this._days),i=Fn(this._months);t=_(n/60),e=_(t/60),n%=60,t%=60;var o=_(i/12),a=i%=12,s=r,u=e,l=t,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var p=d<0?"-":"",f=Un(this._months)!==Un(d)?"-":"",h=Un(this._days)!==Un(d)?"-":"",m=Un(this._milliseconds)!==Un(d)?"-":"";return p+"P"+(o?f+o+"Y":"")+(a?f+a+"M":"")+(s?h+s+"D":"")+(u||l||c?"T":"")+(u?m+u+"H":"")+(l?m+l+"M":"")+(c?m+c+"S":"")}var qn=Ie.prototype;return qn.isValid=function(){return this._isValid},qn.abs=function(){var t=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),t.milliseconds=yn(t.milliseconds),t.seconds=yn(t.seconds),t.minutes=yn(t.minutes),t.hours=yn(t.hours),t.months=yn(t.months),t.years=yn(t.years),this},qn.add=function(t,e){return bn(this,t,e,1)},qn.subtract=function(t,e){return bn(this,t,e,-1)},qn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=P(t))||"year"===t)return e=this._days+r/864e5,n=this._months+_n(e),"month"===t?n:n/12;switch(e=this._days+Math.round(xn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},qn.asMilliseconds=Tn,qn.asSeconds=Sn,qn.asMinutes=On,qn.asHours=Nn,qn.asDays=Dn,qn.asWeeks=Cn,qn.asMonths=En,qn.asYears=Mn,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},qn._bubble=function(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*wn(xn(s)+a),a=0,s=0),u.milliseconds=o%1e3,t=_(o/1e3),u.seconds=t%60,e=_(t/60),u.minutes=e%60,n=_(e/60),u.hours=n%24,a+=_(n/24),i=_(_n(a)),s+=i,a-=wn(xn(i)),r=_(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},qn.clone=function(){return Ge(this)},qn.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},qn.milliseconds=An,qn.seconds=Pn,qn.minutes=In,qn.hours=Rn,qn.days=Ln,qn.weeks=function(){return _(this.days()/7)},qn.months=Yn,qn.years=$n,qn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var r=Ge(t).abs(),i=Hn(r.as("s")),o=Hn(r.as("m")),a=Hn(r.as("h")),s=Hn(r.as("d")),u=Hn(r.as("M")),l=Hn(r.as("y")),c=i<=Bn.ss&&["s",i]||i<Bn.s&&["ss",i]||o<=1&&["m"]||o<Bn.m&&["mm",o]||a<=1&&["h"]||a<Bn.h&&["hh",a]||s<=1&&["d"]||s<Bn.d&&["dd",s]||u<=1&&["M"]||u<Bn.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=e,c[3]=+t>0,c[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,c)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},qn.toISOString=Wn,qn.toString=Wn,qn.toJSON=Wn,qn.locale=tn,qn.localeData=nn,qn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),qn.lang=en,U("X",0,0,"unix"),U("x",0,0,"valueOf"),ct("x",ot),ct("X",/[+-]?\d+(\.\d{1,3})?/),ht("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),ht("x",function(t,e,n){n._d=new Date(x(t))}),r.version="2.22.2",function(t){e=t}(Ee),r.fn=pn,r.min=function(){return Ae("isBefore",[].slice.call(arguments,0))},r.max=function(){return Ae("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(t){return Ee(1e3*t)},r.months=function(t,e){return gn(t,e,"months")},r.isDate=u,r.locale=ce,r.invalid=m,r.duration=Ge,r.isMoment=w,r.weekdays=function(t,e,n){return vn(t,e,n,"weekdays")},r.parseZone=function(){return Ee.apply(null,arguments).parseZone()},r.localeData=pe,r.isDuration=Re,r.monthsShort=function(t,e){return gn(t,e,"monthsShort")},r.weekdaysMin=function(t,e,n){return vn(t,e,n,"weekdaysMin")},r.defineLocale=de,r.updateLocale=function(t,e){if(null!=e){var n,r,i=oe;null!=(r=le(t))&&(i=r._config),e=E(i,e),(n=new M(e)).parentLocale=ae[t],ae[t]=n,ce(t)}else null!=ae[t]&&(null!=ae[t].parentLocale?ae[t]=ae[t].parentLocale:null!=ae[t]&&delete ae[t]);return ae[t]},r.locales=function(){return O(ae)},r.weekdaysShort=function(t,e,n){return vn(t,e,n,"weekdaysShort")},r.normalizeUnits=P,r.relativeTimeRounding=function(t){return void 0===t?Hn:"function"==typeof t&&(Hn=t,!0)},r.relativeTimeThreshold=function(t,e){return void 0!==Bn[t]&&(void 0===e?Bn[t]:(Bn[t]=e,"s"===t&&(Bn.ss=e-1),!0))},r.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=pn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(64)(t))},function(t,e,n){(function(e){e.m||(e.m={}),t.exports=e.m.bidi=n(77)}).call(this,n(25))},function(t,e,n){var r,i,o;!function(a){i=[n(66)],void 0===(o="function"==typeof(r=a)?r.apply(e,i):r)||(t.exports=o)}(function(t){function e(t,e){var n="select"===t.tag?t.attrs.multi?"multi":"select":t.attrs.type;return t.attrs.onchange="multi"===n?function(){e([].slice.call(this.selectedOptions,function(t){return t.value}))}:"select"===n?function(t){e(this.selectedOptions[0].value)}:"checkbox"===n?function(t){e(this.checked)}:t.attrs.oninput=function(t){e(this.value)},"select"===t.tag?t.children.forEach(function(t){t.attrs.value!==e()&&t.children[0]!==e()||(t.attrs.selected=!0)}):"checkbox"===n?t.attrs.checked=e():"radio"===n?t.attrs.checked=e()===t.attrs.value:t.attrs.value=e(),t}return e.view=function(t,n,r){return e(n,n.attrs.bidi)},t.attrs&&(t.attrs.bidi=e),t.bidi=e,e})},function(t,e){!function(t){"use strict";var e=function(n,r){this.options=t.extend({},e.DEFAULTS,r),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var r=t(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new e(this,o)),"string"==typeof n&&i[n]()})}e.VERSION="3.3.7",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return i<n&&"top";if("bottom"==this.affixed)return null!=n?!(i+this.unpin<=o.top)&&"bottom":!(i+a<=t-r)&&"bottom";var s=null==this.affixed,u=s?i:o.top;return null!=n&&i<=n?"top":null!=r&&u+(s?a:e)>=t-r&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var s=this.getState(a,n,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var u="affix"+(s?"-"+s:""),l=t.Event(u+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-n-o})}};var r=t.fn.affix;t.fn.affix=n,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=r,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),r=e.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(e,r)})})}(jQuery)},function(t,e){!function(t){"use strict";var e=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};function i(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&t(n);return r&&r.length?r:e.parent()}function o(r){r&&3===r.which||(t(e).remove(),t(n).each(function(){var e=t(this),n=i(e),o={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&t.contains(n[0],r.target)||(n.trigger(r=t.Event("hide.bs.dropdown",o)),r.isDefaultPrevented()||(e.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}r.VERSION="3.3.7",r.prototype.toggle=function(e){var n=t(this);if(!n.is(".disabled, :disabled")){var r=i(n),a=r.hasClass("open");if(o(),!a){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",o);var s={relatedTarget:this};if(r.trigger(e=t.Event("show.bs.dropdown",s)),e.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},r.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var r=t(this);if(e.preventDefault(),e.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),a=o.hasClass("open");if(!a&&27!=e.which||a&&27==e.which)return 27==e.which&&o.find(n).trigger("focus"),r.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var u=s.index(e.target);38==e.which&&u>0&&u--,40==e.which&&u<s.length-1&&u++,~u||(u=0),s.eq(u).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof e&&i[e].call(n)})},t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,r.prototype.toggle).on("keydown.bs.dropdown.data-api",n,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery)},function(t,e){!function(t){"use strict";var e=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function n(n,r){return this.each(function(){var i=t(this),o=i.data("bs.modal"),a=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);o||i.data("bs.modal",o=new e(this,a)),"string"==typeof n?o[n](r):a.show&&o.show(r)})}e.VERSION="3.3.7",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(n){var r=this,i=t.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var i=t.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),i&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:n});i?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(e.TRANSITION_DURATION):r.$element.trigger("focus").trigger(o)}))},e.prototype.hide=function(n){n&&n.preventDefault(),n=t.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(n){var r=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&i;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;o?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){r.removeBackdrop(),n&&n()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):a()}else n&&n()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var r=t.fn.modal;t.fn.modal=n,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=r,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var r=t(this),i=r.attr("href"),o=t(r.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(i)&&i},o.data(),r.data());r.is("a")&&e.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})}),n.call(o,a,this)})}(jQuery)},function(t,e){!function(t){"use strict";var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};e.VERSION="3.3.7",e.TRANSITION_DURATION=150,e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,n,r){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var a=i[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",u="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,r){n[t]!=r&&(e[t]=r)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},e.prototype.show=function(){var n=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var r=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!r)return;var i=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,u=/\s?auto?\s?/i,l=u.test(s);l&&(s=s.replace(u,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=o[0].offsetWidth,p=o[0].offsetHeight;if(l){var f=s,h=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+p>h.bottom?"top":"top"==s&&c.top-p<h.top?"bottom":"right"==s&&c.right+d>h.width?"left":"left"==s&&c.left-d<h.left?"right":s,o.removeClass(f).addClass(s)}var m=this.getCalculatedOffset(s,c,d,p);this.applyPlacement(m,s);var g=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(e.TRANSITION_DURATION):g()}},e.prototype.applyPlacement=function(e,n){var r=this.tip(),i=r[0].offsetWidth,o=r[0].offsetHeight,a=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top+=a,e.left+=s,t.offset.setOffset(r[0],t.extend({using:function(t){r.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),r.addClass("in");var u=r[0].offsetWidth,l=r[0].offsetHeight;"top"==n&&l!=o&&(e.top=e.top+o-l);var c=this.getViewportAdjustedDelta(n,e,u,l);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(n),p=d?2*c.left-i+u:2*c.top-o+l,f=d?"offsetWidth":"offsetHeight";r.offset(e),this.replaceArrow(p,r[0][f],d)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(n){var r=this,i=t(this.$tip),o=t.Event("hide.bs."+this.type);function a(){"in"!=r.hoverState&&i.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),n&&n()}if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),t.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),this.hoverState=null,this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],r="BODY"==n.tagName,i=n.getBoundingClientRect();null==i.width&&(i=t.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=window.SVGElement&&n instanceof window.SVGElement,a=r?{top:0,left:0}:o?null:e.offset(),s={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},u=r?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},i,s,u,a)},e.prototype.getCalculatedOffset=function(t,e,n,r){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-r,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-r/2,left:e.left-n}:{top:e.top+e.height/2-r/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,n,r){var i={top:0,left:0};if(!this.$viewport)return i;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-a.scroll,u=e.top+o-a.scroll+r;s<a.top?i.top=a.top-s:u>a.top+a.height&&(i.top=a.top+a.height-u)}else{var l=e.left-o,c=e.left+o+n;l<a.left?i.left=a.left-l:c>a.right&&(i.left=a.left+a.width-c)}return i},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var r=t(this),i=r.data("bs.tooltip"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.tooltip",i=new e(this,o)),"string"==typeof n&&i[n]())})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery)},function(t,e){!function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,r=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(r).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery)},function(t,e){!function(t){function e(e){if("string"==typeof e.data&&(e.data={keys:e.data}),e.data&&e.data.keys&&"string"==typeof e.data.keys){var n=e.handler,r=e.data.keys.toLowerCase().split(" ");e.handler=function(e){if(this===e.target||!(t.hotkeys.options.filterInputAcceptingElements&&t.hotkeys.textInputTypes.test(e.target.nodeName)||t.hotkeys.options.filterContentEditable&&t(e.target).attr("contenteditable")||t.hotkeys.options.filterTextInputs&&t.inArray(e.target.type,t.hotkeys.textAcceptingInputTypes)>-1)){var i="keypress"!==e.type&&t.hotkeys.specialKeys[e.which],o=String.fromCharCode(e.which).toLowerCase(),a="",s={};t.each(["alt","ctrl","shift"],function(t,n){e[n+"Key"]&&i!==n&&(a+=n+"+")}),e.metaKey&&!e.ctrlKey&&"meta"!==i&&(a+="meta+"),e.metaKey&&"meta"!==i&&a.indexOf("alt+ctrl+shift+")>-1&&(a=a.replace("alt+ctrl+shift+","hyper+")),i?s[a+i]=!0:(s[a+o]=!0,s[a+t.hotkeys.shiftNums[o]]=!0,"shift+"===a&&(s[t.hotkeys.shiftNums[o]]=!0));for(var u=0,l=r.length;u<l;u++)if(s[r[u]])return n.apply(this,arguments)}}}}t.hotkeys={version:"0.2.0",specialKeys:{8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"},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}},t.each(["keydown","keyup","keypress"],function(){t.event.special[this]={add:e}})}(jQuery||this.jQuery||window.jQuery)},,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(67),i=n(0),o=n(19),a=n(7),s=n(2),u=n(4),l=n(6),c=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.view=function(){return m("ul",{className:"Header-controls"},Object(l.a)(this.items().toArray()))},n.config=function(t,e){e.retain=!0},n.items=function(){return new u.a},e}(s.a),d=n(14),p=n(16),f=n(13),h=n(3),g=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t),e.initProps=function(e){t.initProps.call(this,e),e.className="SessionDropdown",e.buttonClassName="Button Button--user Button--flat",e.menuClassName="Dropdown-menu--right"};var n=e.prototype;return n.view=function(){return this.props.children=this.items().toArray(),t.prototype.view.call(this)},n.getButtonContent=function(){var t=app.session.user;return[Object(d.a)(t)," ",m("span",{className:"Button-label"},Object(p.a)(t))]},n.items=function(){var t=new u.a;return t.add("logOut",h.a.component({icon:"fas fa-sign-out-alt",children:app.translator.trans("core.admin.header.log_out_button"),onclick:app.session.logout.bind(app.session)}),-100),t},e}(f.a),v=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.view=function(){return m("ul",{className:"Header-controls"},Object(l.a)(this.items().toArray()))},n.config=function(t,e){e.retain=!0},n.items=function(){var t=new u.a;return t.add("session",g.component()),t},e}(s.a),y=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.init=function(){app.previous=app.current,app.current=this,app.modal.close(),this.bodyClass=""},n.config=function(t,e){var n=this;t||this.bodyClass&&($("#app").addClass(this.bodyClass),e.onunload=function(){return $("#app").removeClass(n.bodyClass)})},e}(s.a),b=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.view=function(){return m("div",{className:"Widget "+this.className()},this.content())},n.className=function(){return""},n.content=function(){return[]},e}(s.a),w=n(5),_=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.className=function(){return"StatusWidget"},n.content=function(){return m("ul",null,Object(l.a)(this.items().toArray()))},n.items=function(){var t=new u.a;return t.add("help",m("a",{href:"http://flarum.org/docs/troubleshooting",target:"_blank"},Object(w.a)("fas fa-question-circle")," ",app.translator.trans("core.admin.dashboard.help_link"))),t.add("version-flarum",[m("strong",null,"Flarum"),m("br",null),app.forum.attribute("version")]),t.add("version-php",[m("strong",null,"PHP"),m("br",null),app.data.phpVersion]),t.add("version-mysql",[m("strong",null,"MySQL"),m("br",null),app.data.mysqlVersion]),t},e}(b),x=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.view=function(){return m("div",{className:"DashboardPage"},m("div",{className:"container"},this.availableWidgets()))},n.availableWidgets=function(){return[m(_,null)]},e}(y),k=n(23),T=n(63),S=n(17);function O(t){var e=JSON.parse(JSON.stringify(app.data.settings));return Object.assign(app.data.settings,t),app.request({method:"POST",url:app.forum.attribute("apiUrl")+"/settings",data:t}).catch(function(t){throw app.data.settings=e,t})}var N=n(32),D=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.init=function(){var e=this;t.prototype.init.call(this),this.loading=!1,this.fields=["forum_title","forum_description","default_locale","show_language_selector","default_route","welcome_title","welcome_message"],this.values={};var n=app.data.settings;this.fields.forEach(function(t){return e.values[t]=m.prop(n[t])}),this.localeOptions={};var r=app.data.locales;for(var i in r)this.localeOptions[i]=r[i]+" ("+i+")";"number"!=typeof this.values.show_language_selector()&&this.values.show_language_selector(1)},n.view=function(){var t=this;return m("div",{className:"BasicsPage"},m("div",{className:"container"},m("form",{onsubmit:this.onsubmit.bind(this)},k.a.component({label:app.translator.trans("core.admin.basics.forum_title_heading"),children:[m("input",{className:"FormControl",value:this.values.forum_title(),oninput:m.withAttr("value",this.values.forum_title)})]}),k.a.component({label:app.translator.trans("core.admin.basics.forum_description_heading"),children:[m("div",{className:"helpText"},app.translator.trans("core.admin.basics.forum_description_text")),m("textarea",{className:"FormControl",value:this.values.forum_description(),oninput:m.withAttr("value",this.values.forum_description)})]}),Object.keys(this.localeOptions).length>1?k.a.component({label:app.translator.trans("core.admin.basics.default_language_heading"),children:[T.a.component({options:this.localeOptions,value:this.values.default_locale(),onchange:this.values.default_locale}),N.a.component({state:this.values.show_language_selector(),onchange:this.values.show_language_selector,children:app.translator.trans("core.admin.basics.show_language_selector_label")})]}):"",k.a.component({label:app.translator.trans("core.admin.basics.home_page_heading"),className:"BasicsPage-homePage",children:[m("div",{className:"helpText"},app.translator.trans("core.admin.basics.home_page_text")),this.homePageItems().toArray().map(function(e){var n=e.path,r=e.label;return m("label",{className:"checkbox"},m("input",{type:"radio",name:"homePage",value:n,checked:t.values.default_route()===n,onclick:m.withAttr("value",t.values.default_route)}),r)})]}),k.a.component({label:app.translator.trans("core.admin.basics.welcome_banner_heading"),className:"BasicsPage-welcomeBanner",children:[m("div",{className:"helpText"},app.translator.trans("core.admin.basics.welcome_banner_text")),m("div",{className:"BasicsPage-welcomeBanner-input"},m("input",{className:"FormControl",value:this.values.welcome_title(),oninput:m.withAttr("value",this.values.welcome_title)}),m("textarea",{className:"FormControl",value:this.values.welcome_message(),oninput:m.withAttr("value",this.values.welcome_message)}))]}),h.a.component({type:"submit",className:"Button Button--primary",children:app.translator.trans("core.admin.basics.submit_button"),loading:this.loading,disabled:!this.changed()}))))},n.changed=function(){var t=this;return this.fields.some(function(e){return t.values[e]()!==app.data.settings[e]})},n.homePageItems=function(){var t=new u.a;return t.add("allDiscussions",{path:"/all",label:app.translator.trans("core.admin.basics.all_discussions_label")}),t},n.onsubmit=function(t){var e=this;if(t.preventDefault(),!this.loading){this.loading=!0,app.alerts.dismiss(this.successAlert);var n={};this.fields.forEach(function(t){return n[t]=e.values[t]()}),O(n).then(function(){app.alerts.show(e.successAlert=new S.a({type:"success",children:app.translator.trans("core.admin.basics.saved_message")}))}).catch(function(){}).then(function(){e.loading=!1,m.redraw()})}},e}(y),C=n(28),E=n(11),M=n(22),j=n(10),A=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.init=function(){this.group=this.props.group||app.store.createRecord("groups"),this.nameSingular=m.prop(this.group.nameSingular()||""),this.namePlural=m.prop(this.group.namePlural()||""),this.icon=m.prop(this.group.icon()||""),this.color=m.prop(this.group.color()||"")},n.className=function(){return"EditGroupModal Modal--small"},n.title=function(){return[this.color()||this.icon()?M.a.component({icon:this.icon(),style:{backgroundColor:this.color()}}):""," ",this.namePlural()||app.translator.trans("core.admin.edit_group.title")]},n.content=function(){return m("div",{className:"Modal-body"},m("div",{className:"Form"},m("div",{className:"Form-group"},m("label",null,app.translator.trans("core.admin.edit_group.name_label")),m("div",{className:"EditGroupModal-name-input"},m("input",{className:"FormControl",placeholder:app.translator.trans("core.admin.edit_group.singular_placeholder"),value:this.nameSingular(),oninput:m.withAttr("value",this.nameSingular)}),m("input",{className:"FormControl",placeholder:app.translator.trans("core.admin.edit_group.plural_placeholder"),value:this.namePlural(),oninput:m.withAttr("value",this.namePlural)}))),m("div",{className:"Form-group"},m("label",null,app.translator.trans("core.admin.edit_group.color_label")),m("input",{className:"FormControl",placeholder:"#aaaaaa",value:this.color(),oninput:m.withAttr("value",this.color)})),m("div",{className:"Form-group"},m("label",null,app.translator.trans("core.admin.edit_group.icon_label")),m("div",{className:"helpText"},app.translator.trans("core.admin.edit_group.icon_text",{a:m("a",{href:"http://fortawesome.github.io/Font-Awesome/icons/",tabindex:"-1"})})),m("input",{className:"FormControl",placeholder:"bolt",value:this.icon(),oninput:m.withAttr("value",this.icon)})),m("div",{className:"Form-group"},h.a.component({type:"submit",className:"Button Button--primary EditGroupModal-save",loading:this.loading,children:app.translator.trans("core.admin.edit_group.submit_button")}),this.group.exists&&this.group.id()!==j.a.ADMINISTRATOR_ID?m("button",{type:"button",className:"Button EditGroupModal-delete",onclick:this.deleteGroup.bind(this)},app.translator.trans("core.admin.edit_group.delete_button")):"")))},n.onsubmit=function(t){var e=this;t.preventDefault(),this.loading=!0,this.group.save({nameSingular:this.nameSingular(),namePlural:this.namePlural(),color:this.color(),icon:this.icon()},{errorHandler:this.onerror.bind(this)}).then(this.hide.bind(this)).catch(function(){e.loading=!1,m.redraw()})},n.deleteGroup=function(){confirm(app.translator.trans("core.admin.edit_group.delete_confirmation"))&&(this.group.delete().then(function(){return m.redraw()}),this.hide())},e}(E.a),P=n(20);function I(t){var e=app.store.getById("groups",t);return e?C.a.component({group:e,label:null}):""}function R(t,e){return app.getRequiredPermissions(e).forEach(function(e){var n=app.data.permissions[e]||[];-1!==n.indexOf(j.a.GUEST_ID)||(t=-1!==n.indexOf(j.a.MEMBER_ID)?t.filter(function(t){return t!==j.a.GUEST_ID}):-1!==t.indexOf(j.a.MEMBER_ID)?n:n.filter(function(e){return-1!==t.indexOf(e)})),t=R(t,e)}),t}var L=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t),e.initProps=function(e){t.initProps.call(this,e),e.className="PermissionDropdown",e.buttonClassName="Button Button--text"};var n=e.prototype;return n.view=function(){var e=this;this.props.children=[];var n=app.data.permissions[this.props.permission]||[],r=-1!==(n=R(n,this.props.permission)).indexOf(j.a.GUEST_ID),i=-1!==n.indexOf(j.a.MEMBER_ID),o=app.store.getById("groups",j.a.ADMINISTRATOR_ID);return this.props.label=r?M.a.component({icon:"fas fa-globe"}):i?M.a.component({icon:"fas fa-user"}):[I(j.a.ADMINISTRATOR_ID),n.map(I)],this.showing&&(this.props.allowGuest&&this.props.children.push(h.a.component({children:[M.a.component({icon:"fas fa-globe"})," ",app.translator.trans("core.admin.permissions_controls.everyone_button")],icon:!r||"fas fa-check",onclick:function(){return e.save([j.a.GUEST_ID])},disabled:this.isGroupDisabled(j.a.GUEST_ID)})),this.props.children.push(h.a.component({children:[M.a.component({icon:"fas fa-user"})," ",app.translator.trans("core.admin.permissions_controls.members_button")],icon:!i||"fas fa-check",onclick:function(){return e.save([j.a.MEMBER_ID])},disabled:this.isGroupDisabled(j.a.MEMBER_ID)}),P.a.component(),h.a.component({children:[I(o.id())," ",o.namePlural()],icon:!(!r&&!i)||"fas fa-check",disabled:!r&&!i,onclick:function(t){t.shiftKey&&t.stopPropagation(),e.save([])}})),[].push.apply(this.props.children,app.store.all("groups").filter(function(t){return-1===[j.a.ADMINISTRATOR_ID,j.a.GUEST_ID,j.a.MEMBER_ID].indexOf(t.id())}).map(function(t){return h.a.component({children:[I(t.id())," ",t.namePlural()],icon:-1===n.indexOf(t.id())||"fas fa-check",onclick:function(n){n.shiftKey&&n.stopPropagation(),e.toggle(t.id())},disabled:e.isGroupDisabled(t.id())&&e.isGroupDisabled(j.a.MEMBER_ID)&&e.isGroupDisabled(j.a.GUEST_ID)})}))),t.prototype.view.call(this)},n.save=function(t){var e=this.props.permission;app.data.permissions[e]=t,app.request({method:"POST",url:app.forum.attribute("apiUrl")+"/permission",data:{permission:e,groupIds:t}})},n.toggle=function(t){var e=this.props.permission,n=app.data.permissions[e]||[],r=n.indexOf(t);-1!==r?n.splice(r,1):(n.push(t),n=n.filter(function(t){return-1===[j.a.GUEST_ID,j.a.MEMBER_ID].indexOf(t)})),this.save(n)},n.isGroupDisabled=function(t){return-1===R([t],this.props.permission).indexOf(t)},e}(f.a),Y=n(27),H=function(t){function e(){return t.apply(this,arguments)||this}return Object(i.a)(e,t),e.initProps=function(e){var n=this;t.initProps.call(this,e),e.className="SettingDropdown",e.buttonClassName="Button Button--text",e.caretIcon="fas fa-caret-down",e.defaultLabel="Custom",e.children=e.options.map(function(t){var r,i=t.value,o=t.label,a=app.data.settings[e.key]===i;return h.a.component({children:o,icon:!a||"fas fa-check",onclick:O.bind(n,(r={},r[e.key]=i,r)),active:a})})},e}(Y.a),B=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.init=function(){this.permissions=this.permissionItems().toArray()},n.view=function(){var t=this.scopeItems().toArray(),e=function(e){return t.map(function(t){return m("td",null,t.render(e))})};return m("table",{className:"PermissionGrid"},m("thead",null,m("tr",null,m("td",null),t.map(function(t){return m("th",null,t.label," ",t.onremove?h.a.component({icon:"fas fa-times",className:"Button Button--text PermissionGrid-removeScope",onclick:t.onremove}):"")}),m("th",null,this.scopeControlItems().toArray()))),this.permissions.map(function(t){return m("tbody",null,m("tr",{className:"PermissionGrid-section"},m("th",null,t.label),e(t),m("td",null)),t.children.map(function(t){return m("tr",{className:"PermissionGrid-child"},m("th",null,Object(w.a)(t.icon),t.label),e(t),m("td",null))}))}))},n.permissionItems=function(){var t=new u.a;return t.add("view",{label:app.translator.trans("core.admin.permissions.read_heading"),children:this.viewItems().toArray()},100),t.add("start",{label:app.translator.trans("core.admin.permissions.create_heading"),children:this.startItems().toArray()},90),t.add("reply",{label:app.translator.trans("core.admin.permissions.participate_heading"),children:this.replyItems().toArray()},80),t.add("moderate",{label:app.translator.trans("core.admin.permissions.moderate_heading"),children:this.moderateItems().toArray()},70),t},n.viewItems=function(){var t=new u.a;return t.add("viewDiscussions",{icon:"fas fa-eye",label:app.translator.trans("core.admin.permissions.view_discussions_label"),permission:"viewDiscussions",allowGuest:!0},100),t.add("viewUserList",{icon:"fas fa-users",label:app.translator.trans("core.admin.permissions.view_user_list_label"),permission:"viewUserList",allowGuest:!0},100),t.add("signUp",{icon:"fas fa-user-plus",label:app.translator.trans("core.admin.permissions.sign_up_label"),setting:function(){return H.component({key:"allow_sign_up",options:[{value:"1",label:app.translator.trans("core.admin.permissions_controls.signup_open_button")},{value:"0",label:app.translator.trans("core.admin.permissions_controls.signup_closed_button")}]})}},90),t},n.startItems=function(){var t=new u.a;return t.add("start",{icon:"fas fa-edit",label:app.translator.trans("core.admin.permissions.start_discussions_label"),permission:"startDiscussion"},100),t.add("allowRenaming",{icon:"fas fa-i-cursor",label:app.translator.trans("core.admin.permissions.allow_renaming_label"),setting:function(){var t=parseInt(app.data.settings.allow_renaming,10);return H.component({defaultLabel:t?app.translator.transChoice("core.admin.permissions_controls.allow_some_minutes_button",t,{count:t}):app.translator.trans("core.admin.permissions_controls.allow_indefinitely_button"),key:"allow_renaming",options:[{value:"-1",label:app.translator.trans("core.admin.permissions_controls.allow_indefinitely_button")},{value:"10",label:app.translator.trans("core.admin.permissions_controls.allow_ten_minutes_button")},{value:"reply",label:app.translator.trans("core.admin.permissions_controls.allow_until_reply_button")}]})}},90),t},n.replyItems=function(){var t=new u.a;return t.add("reply",{icon:"fas fa-reply",label:app.translator.trans("core.admin.permissions.reply_to_discussions_label"),permission:"discussion.reply"},100),t.add("allowPostEditing",{icon:"fas fa-pencil-alt",label:app.translator.trans("core.admin.permissions.allow_post_editing_label"),setting:function(){var t=parseInt(app.data.settings.allow_post_editing,10);return H.component({defaultLabel:t?app.translator.transChoice("core.admin.permissions_controls.allow_some_minutes_button",t,{count:t}):app.translator.trans("core.admin.permissions_controls.allow_indefinitely_button"),key:"allow_post_editing",options:[{value:"-1",label:app.translator.trans("core.admin.permissions_controls.allow_indefinitely_button")},{value:"10",label:app.translator.trans("core.admin.permissions_controls.allow_ten_minutes_button")},{value:"reply",label:app.translator.trans("core.admin.permissions_controls.allow_until_reply_button")}]})}},90),t},n.moderateItems=function(){var t=new u.a;return t.add("viewIpsPosts",{icon:"fas fa-bullseye",label:app.translator.trans("core.admin.permissions.view_post_ips_label"),permission:"discussion.viewIpsPosts"},110),t.add("renameDiscussions",{icon:"fas fa-i-cursor",label:app.translator.trans("core.admin.permissions.rename_discussions_label"),permission:"discussion.rename"},100),t.add("hideDiscussions",{icon:"far fa-trash-alt",label:app.translator.trans("core.admin.permissions.delete_discussions_label"),permission:"discussion.hide"},90),t.add("deleteDiscussions",{icon:"fas fa-times",label:app.translator.trans("core.admin.permissions.delete_discussions_forever_label"),permission:"discussion.delete"},80),t.add("editPosts",{icon:"fas fa-pencil-alt",label:app.translator.trans("core.admin.permissions.edit_posts_label"),permission:"discussion.editPosts"},70),t.add("hidePosts",{icon:"far fa-trash-alt",label:app.translator.trans("core.admin.permissions.delete_posts_label"),permission:"discussion.hidePosts"},60),t.add("deletePosts",{icon:"fas fa-times",label:app.translator.trans("core.admin.permissions.delete_posts_forever_label"),permission:"discussion.deletePosts"},60),t},n.scopeItems=function(){var t=new u.a;return t.add("global",{label:app.translator.trans("core.admin.permissions.global_heading"),render:function(t){return t.setting?t.setting():t.permission?L.component({permission:t.permission,allowGuest:t.allowGuest}):""}},100),t},n.scopeControlItems=function(){return new u.a},e}(s.a),F=function(t){function e(){return t.apply(this,arguments)||this}return Object(i.a)(e,t),e.prototype.view=function(){return m("div",{className:"PermissionsPage"},m("div",{className:"PermissionsPage-groups"},m("div",{className:"container"},app.store.all("groups").filter(function(t){return-1===[j.a.GUEST_ID,j.a.MEMBER_ID].indexOf(t.id())}).map(function(t){return m("button",{className:"Button Group",onclick:function(){return app.modal.show(new A({group:t}))}},C.a.component({group:t,className:"Group-icon",label:null}),m("span",{className:"Group-name"},t.namePlural()))}),m("button",{className:"Button Group Group--add",onclick:function(){return app.modal.show(new A)}},Object(w.a)("fas fa-plus",{className:"Group-icon"}),m("span",{className:"Group-name"},app.translator.trans("core.admin.permissions.new_group_button"))))),m("div",{className:"PermissionsPage-permissions"},m("div",{className:"container"},B.component())))},e}(y),U=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.init=function(){this.settings={},this.loading=!1},n.form=function(){return""},n.content=function(){return m("div",{className:"Modal-body"},m("div",{className:"Form"},this.form(),m("div",{className:"Form-group"},this.submitButton())))},n.submitButton=function(){return m(h.a,{type:"submit",className:"Button Button--primary",loading:this.loading,disabled:!this.changed()},app.translator.trans("core.admin.settings.submit_button"))},n.setting=function(t,e){return void 0===e&&(e=""),this.settings[t]=this.settings[t]||m.prop(app.data.settings[t]||e),this.settings[t]},n.dirty=function(){var t=this,e={};return Object.keys(this.settings).forEach(function(n){var r=t.settings[n]();r!==app.data.settings[n]&&(e[n]=r)}),e},n.changed=function(){return Object.keys(this.dirty()).length},n.onsubmit=function(t){t.preventDefault(),this.loading=!0,O(this.dirty()).then(this.onsaved.bind(this),this.loaded.bind(this))},n.onsaved=function(){this.hide()},e}(E.a),W=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.className=function(){return"EditCustomCssModal Modal--large"},n.title=function(){return app.translator.trans("core.admin.edit_css.title")},n.form=function(){return[m("p",null,app.translator.trans("core.admin.edit_css.customize_text",{a:m("a",{href:"https://github.com/flarum/core/tree/master/less",target:"_blank"})})),m("div",{className:"Form-group"},m("textarea",{className:"FormControl",rows:"30",bidi:this.setting("custom_less")}))]},n.onsaved=function(){window.location.reload()},e}(U),q=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.className=function(){return"EditCustomHeaderModal Modal--large"},n.title=function(){return app.translator.trans("core.admin.edit_header.title")},n.form=function(){return[m("p",null,app.translator.trans("core.admin.edit_header.customize_text")),m("div",{className:"Form-group"},m("textarea",{className:"FormControl",rows:"30",bidi:this.setting("custom_header")}))]},n.onsaved=function(){window.location.reload()},e}(U),G=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.className=function(){return"EditCustomFooterModal Modal--large"},n.title=function(){return app.translator.trans("core.admin.edit_footer.title")},n.form=function(){return[m("p",null,app.translator.trans("core.admin.edit_footer.customize_text")),m("div",{className:"Form-group"},m("textarea",{className:"FormControl",rows:"30",bidi:this.setting("custom_footer")}))]},n.onsaved=function(){window.location.reload()},e}(U),z=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.init=function(){this.loading=!1},n.view=function(){return this.props.loading=this.loading,this.props.className=(this.props.className||"")+" Button",app.data.settings[this.props.name+"_path"]?(this.props.onclick=this.remove.bind(this),this.props.children=app.translator.trans("core.admin.upload_image.remove_button"),m("div",null,m("p",null,m("img",{src:app.forum.attribute(this.props.name+"Url"),alt:""})),m("p",null,t.prototype.view.call(this)))):(this.props.onclick=this.upload.bind(this),this.props.children=app.translator.trans("core.admin.upload_image.upload_button"),t.prototype.view.call(this))},n.upload=function(){var t=this;this.loading||$('<input type="file">').appendTo("body").hide().click().on("change",function(e){var n=new FormData;n.append(t.props.name,$(e.target)[0].files[0]),t.loading=!0,m.redraw(),app.request({method:"POST",url:t.resourceUrl(),serialize:function(t){return t},data:n}).then(t.success.bind(t),t.failure.bind(t))})},n.remove=function(){this.loading=!0,m.redraw(),app.request({method:"DELETE",url:this.resourceUrl()}).then(this.success.bind(this),this.failure.bind(this))},n.resourceUrl=function(){return app.forum.attribute("apiUrl")+"/"+this.props.name},n.success=function(t){window.location.reload()},n.failure=function(t){this.loading=!1,m.redraw()},e}(h.a),V=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.init=function(){t.prototype.init.call(this),this.primaryColor=m.prop(app.data.settings.theme_primary_color),this.secondaryColor=m.prop(app.data.settings.theme_secondary_color),this.darkMode=m.prop("1"===app.data.settings.theme_dark_mode),this.coloredHeader=m.prop("1"===app.data.settings.theme_colored_header)},n.view=function(){return m("div",{className:"AppearancePage"},m("div",{className:"container"},m("form",{onsubmit:this.onsubmit.bind(this)},m("fieldset",{className:"AppearancePage-colors"},m("legend",null,app.translator.trans("core.admin.appearance.colors_heading")),m("div",{className:"helpText"},app.translator.trans("core.admin.appearance.colors_text")),m("div",{className:"AppearancePage-colors-input"},m("input",{className:"FormControl",type:"text",placeholder:"#aaaaaa",value:this.primaryColor(),onchange:m.withAttr("value",this.primaryColor)}),m("input",{className:"FormControl",type:"text",placeholder:"#aaaaaa",value:this.secondaryColor(),onchange:m.withAttr("value",this.secondaryColor)})),N.a.component({state:this.darkMode(),children:app.translator.trans("core.admin.appearance.dark_mode_label"),onchange:this.darkMode}),N.a.component({state:this.coloredHeader(),children:app.translator.trans("core.admin.appearance.colored_header_label"),onchange:this.coloredHeader}),h.a.component({className:"Button Button--primary",type:"submit",children:app.translator.trans("core.admin.appearance.submit_button"),loading:this.loading}))),m("fieldset",null,m("legend",null,app.translator.trans("core.admin.appearance.logo_heading")),m("div",{className:"helpText"},app.translator.trans("core.admin.appearance.logo_text")),m(z,{name:"logo"})),m("fieldset",null,m("legend",null,app.translator.trans("core.admin.appearance.favicon_heading")),m("div",{className:"helpText"},app.translator.trans("core.admin.appearance.favicon_text")),m(z,{name:"favicon"})),m("fieldset",null,m("legend",null,app.translator.trans("core.admin.appearance.custom_header_heading")),m("div",{className:"helpText"},app.translator.trans("core.admin.appearance.custom_header_text")),h.a.component({className:"Button",children:app.translator.trans("core.admin.appearance.edit_header_button"),onclick:function(){return app.modal.show(new q)}})),m("fieldset",null,m("legend",null,app.translator.trans("core.admin.appearance.custom_footer_heading")),m("div",{className:"helpText"},app.translator.trans("core.admin.appearance.custom_footer_text")),h.a.component({className:"Button",children:app.translator.trans("core.admin.appearance.edit_footer_button"),onclick:function(){return app.modal.show(new G)}})),m("fieldset",null,m("legend",null,app.translator.trans("core.admin.appearance.custom_styles_heading")),m("div",{className:"helpText"},app.translator.trans("core.admin.appearance.custom_styles_text")),h.a.component({className:"Button",children:app.translator.trans("core.admin.appearance.edit_css_button"),onclick:function(){return app.modal.show(new W)}}))))},n.onsubmit=function(t){t.preventDefault();var e=/^#[0-9a-f]{3}([0-9a-f]{3})?$/i;e.test(this.primaryColor())&&e.test(this.secondaryColor())?(this.loading=!0,O({theme_primary_color:this.primaryColor(),theme_secondary_color:this.secondaryColor(),theme_dark_mode:this.darkMode(),theme_colored_header:this.coloredHeader()}).then(function(){return window.location.reload()})):alert(app.translator.trans("core.admin.appearance.enter_hex_message"))},e}(y),Z=n(18),J=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.className=function(){return"AddExtensionModal Modal--small"},n.title=function(){return app.translator.trans("core.admin.add_extension.title")},n.content=function(){return m("div",{className:"Modal-body"},m("p",null,app.translator.trans("core.admin.add_extension.temporary_text")),m("p",null,app.translator.trans("core.admin.add_extension.install_text",{a:m("a",{href:"https://discuss.flarum.org/t/extensions",target:"_blank"})})),m("p",null,app.translator.trans("core.admin.add_extension.developer_text",{a:m("a",{href:"http://flarum.org/docs/extend",target:"_blank"})})))},e}(E.a),X=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.isDismissible=function(){return!1},n.className=function(){return"LoadingModal Modal--small"},n.title=function(){return app.translator.trans("core.admin.loading.title")},n.content=function(){return""},e}(E.a),K=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.view=function(){var t=this;return m("div",{className:"ExtensionsPage"},m("div",{className:"ExtensionsPage-header"},m("div",{className:"container"},h.a.component({children:app.translator.trans("core.admin.extensions.add_button"),icon:"fas fa-plus",className:"Button Button--primary",onclick:function(){return app.modal.show(new J)}}))),m("div",{className:"ExtensionsPage-list"},m("div",{className:"container"},m("ul",{className:"ExtensionList"},Object.keys(app.data.extensions).map(function(e){var n=app.data.extensions[e],r=t.controlItems(n.id).toArray();return m("li",{className:"ExtensionListItem "+(t.isEnabled(n.id)?"":"disabled")},m("div",{className:"ExtensionListItem-content"},m("span",{className:"ExtensionListItem-icon ExtensionIcon",style:n.icon},n.icon?Object(w.a)(n.icon.name):""),r.length?m(f.a,{className:"ExtensionListItem-controls",buttonClassName:"Button Button--icon Button--flat",menuClassName:"Dropdown-menu--right",icon:"fas fa-ellipsis-h"},r):"",m("div",{className:"ExtensionListItem-main"},m("label",{className:"ExtensionListItem-title"},m("input",{type:"checkbox",checked:t.isEnabled(n.id),onclick:t.toggle.bind(t,n.id)})," "," ",n.extra["flarum-extension"].title),m("div",{className:"ExtensionListItem-version"},n.version),m("div",{className:"ExtensionListItem-description"},n.description))))})))))},n.controlItems=function(t){var e=new u.a,n=this.isEnabled(t);return app.extensionSettings[t]&&e.add("settings",h.a.component({icon:"fas fa-cog",children:app.translator.trans("core.admin.extensions.settings_button"),onclick:app.extensionSettings[t]})),n||e.add("uninstall",h.a.component({icon:"far fa-trash-alt",children:app.translator.trans("core.admin.extensions.uninstall_button"),onclick:function(){app.request({url:app.forum.attribute("apiUrl")+"/extensions/"+t,method:"DELETE"}).then(function(){return window.location.reload()}),app.modal.show(new X)}})),e},n.isEnabled=function(t){return-1!==JSON.parse(app.data.settings.extensions_enabled).indexOf(t)},n.toggle=function(t){var e=this.isEnabled(t);app.request({url:app.forum.attribute("apiUrl")+"/extensions/"+t,method:"PATCH",data:{enabled:!e}}).then(function(){e||localStorage.setItem("enabledExtension",t),window.location.reload()}),app.modal.show(new X)},e}(y),Q=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.init=function(){var e=this;t.prototype.init.call(this),this.loading=!1,this.fields=["mail_driver","mail_host","mail_from","mail_port","mail_username","mail_password","mail_encryption"],this.values={};var n=app.data.settings;this.fields.forEach(function(t){return e.values[t]=m.prop(n[t])}),this.localeOptions={};var r=app.locales;for(var i in r)this.localeOptions[i]=r[i]+" ("+i+")"},n.view=function(){return m("div",{className:"MailPage"},m("div",{className:"container"},m("form",{onsubmit:this.onsubmit.bind(this)},m("h2",null,app.translator.trans("core.admin.email.heading")),m("div",{className:"helpText"},app.translator.trans("core.admin.email.text")),k.a.component({label:app.translator.trans("core.admin.email.server_heading"),className:"MailPage-MailSettings",children:[m("div",{className:"MailPage-MailSettings-input"},m("label",null,app.translator.trans("core.admin.email.driver_label")),m("input",{className:"FormControl",value:this.values.mail_driver()||"",oninput:m.withAttr("value",this.values.mail_driver)}),m("label",null,app.translator.trans("core.admin.email.host_label")),m("input",{className:"FormControl",value:this.values.mail_host()||"",oninput:m.withAttr("value",this.values.mail_host)}),m("label",null,app.translator.trans("core.admin.email.port_label")),m("input",{className:"FormControl",value:this.values.mail_port()||"",oninput:m.withAttr("value",this.values.mail_port)}),m("label",null,app.translator.trans("core.admin.email.encryption_label")),m("input",{className:"FormControl",value:this.values.mail_encryption()||"",oninput:m.withAttr("value",this.values.mail_encryption)}))]}),k.a.component({label:app.translator.trans("core.admin.email.account_heading"),className:"MailPage-MailSettings",children:[m("div",{className:"MailPage-MailSettings-input"},m("label",null,app.translator.trans("core.admin.email.username_label")),m("input",{className:"FormControl",value:this.values.mail_username()||"",oninput:m.withAttr("value",this.values.mail_username)}),m("label",null,app.translator.trans("core.admin.email.password_label")),m("input",{className:"FormControl",value:this.values.mail_password()||"",oninput:m.withAttr("value",this.values.mail_password)}))]}),k.a.component({label:app.translator.trans("core.admin.email.addresses_heading"),className:"MailPage-MailSettings",children:[m("div",{className:"MailPage-MailSettings-input"},m("label",null,app.translator.trans("core.admin.email.from_label")),m("input",{className:"FormControl",value:this.values.mail_from()||"",oninput:m.withAttr("value",this.values.mail_from)}))]}),h.a.component({type:"submit",className:"Button Button--primary",children:app.translator.trans("core.admin.email.submit_button"),loading:this.loading,disabled:!this.changed()}))))},n.changed=function(){var t=this;return this.fields.some(function(e){return t.values[e]()!==app.data.settings[e]})},n.onsubmit=function(t){var e=this;if(t.preventDefault(),!this.loading){this.loading=!0,app.alerts.dismiss(this.successAlert);var n={};this.fields.forEach(function(t){return n[t]=e.values[t]()}),O(n).then(function(){app.alerts.show(e.successAlert=new S.a({type:"success",children:app.translator.trans("core.admin.basics.saved_message")}))}).catch(function(){}).then(function(){e.loading=!1,m.redraw()})}},e}(y),tt=function(t){t.routes={dashboard:{path:"/",component:x.component()},basics:{path:"/basics",component:D.component()},permissions:{path:"/permissions",component:F.component()},appearance:{path:"/appearance",component:V.component()},extensions:{path:"/extensions",component:K.component()},mail:{path:"/mail",component:Q.component()}}},et=n(53),nt=n(39),rt=function(t){function e(){return t.apply(this,arguments)||this}return Object(i.a)(e,t),e.prototype.getButtonContent=function(){var e=t.prototype.getButtonContent.call(this);return e.push(m("div",{className:"AdminLinkButton-description"},this.props.description)),e},e}(Z.a),it=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.view=function(){return m(Y.a,{className:"AdminNav App-titleControl",buttonClassName:"Button"},this.items().toArray())},n.items=function(){var t=new u.a;return t.add("dashboard",rt.component({href:app.route("dashboard"),icon:"far fa-chart-bar",children:app.translator.trans("core.admin.nav.dashboard_button"),description:app.translator.trans("core.admin.nav.dashboard_text")})),t.add("basics",rt.component({href:app.route("basics"),icon:"fas fa-pencil-alt",children:app.translator.trans("core.admin.nav.basics_button"),description:app.translator.trans("core.admin.nav.basics_text")})),t.add("mail",rt.component({href:app.route("mail"),icon:"fas fa-envelope",children:app.translator.trans("core.admin.nav.email_button"),description:app.translator.trans("core.admin.nav.email_text")})),t.add("permissions",rt.component({href:app.route("permissions"),icon:"fas fa-key",children:app.translator.trans("core.admin.nav.permissions_button"),description:app.translator.trans("core.admin.nav.permissions_text")})),t.add("appearance",rt.component({href:app.route("appearance"),icon:"fas fa-paint-brush",children:app.translator.trans("core.admin.nav.appearance_button"),description:app.translator.trans("core.admin.nav.appearance_text")})),t.add("extensions",rt.component({href:app.route("extensions"),icon:"fas fa-puzzle-piece",children:app.translator.trans("core.admin.nav.extensions_button"),description:app.translator.trans("core.admin.nav.extensions_text")})),t},e}(s.a),ot=function(t){function e(){var e;return e=t.call(this)||this,Object(a.a)(Object(o.a)(Object(o.a)(e)),"extensionSettings",{}),Object(a.a)(Object(o.a)(Object(o.a)(e)),"history",{canGoBack:function(){return!0},getPrevious:function(){},backUrl:function(){return e.forum.attribute("baseUrl")},back:function(){window.location=this.backUrl()}}),tt(Object(o.a)(Object(o.a)(e))),e}Object(i.a)(e,t);var n=e.prototype;return n.mount=function(){m.mount(document.getElementById("app-navigation"),nt.a.component({className:"App-backControl",drawer:!0})),m.mount(document.getElementById("header-navigation"),nt.a.component()),m.mount(document.getElementById("header-primary"),c.component()),m.mount(document.getElementById("header-secondary"),v.component()),m.mount(document.getElementById("admin-navigation"),it.component()),m.route.mode="hash",t.prototype.mount.call(this);var e=localStorage.getItem("enabledExtension");e&&this.extensionSettings[e]&&(this.extensionSettings[e](),localStorage.removeItem("enabledExtension"))},n.getRequiredPermissions=function(t){var e=[];return"startDiscussion"!==t&&0!==t.indexOf("discussion.")||e.push("viewDiscussions"),"discussion.delete"===t&&e.push("discussion.hide"),"discussion.deletePosts"===t&&e.push("discussion.hidePosts"),e},e}(et.a),at=n(69),st=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.view=function(){return m("div",{className:"DashboardWidget "+this.className()},this.content())},n.className=function(){return""},n.content=function(){return[]},e}(s.a),ut=Object.assign(at.a,{"utils/saveSettings":O,"components/SettingDropdown":H,"components/EditCustomFooterModal":G,"components/SessionDropdown":g,"components/HeaderPrimary":c,"components/AppearancePage":V,"components/Page":y,"components/StatusWidget":_,"components/HeaderSecondary":v,"components/SettingsModal":U,"components/DashboardWidget":b,"components/AddExtensionModal":J,"components/ExtensionsPage":K,"components/AdminLinkButton":rt,"components/PermissionGrid":B,"components/Widget":st,"components/MailPage":Q,"components/UploadImageButton":z,"components/LoadingModal":X,"components/DashboardPage":x,"components/BasicsPage":D,"components/EditCustomHeaderModal":q,"components/PermissionsPage":F,"components/PermissionDropdown":L,"components/AdminNav":it,"components/EditCustomCssModal":W,"components/EditGroupModal":A,routes:tt,AdminApplication:ot}),lt=new ot;window.app=lt,ut.app=lt,n.d(e,"Extend",function(){return r.a}),n.d(e,"app",function(){return lt}),n.d(e,"compat",function(){return ut})}]);
|
||
//# sourceMappingURL=admin.js.map
|