webpackJsonp([6],[function(e,t,n){e.exports=n(227)},,,,,,,function(e,t){"use strict";function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=Object.assign||function(e,t){for(var r,i,s=n(e),o=1;o<arguments.length;o++){r=arguments[o],i=Object.keys(Object(r));for(var a=0;a<i.length;a++)s[i[a]]=r[i[a]]}return s}},,function(e,t,n){var r,i;/*!
	  Copyright (c) 2016 Jed Watson.
	  Licensed under the MIT License (MIT), see
	  http://jedwatson.github.io/classnames
	*/
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===i)for(var o in r)s.call(r,o)&&r[o]&&e.push(o)}}return e.join(" ")}var s={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(r=[],i=function(){return n}.apply(t,r),!(void 0!==i&&(e.exports=i)))}()},function(e,t){"use strict";function n(e){return document.querySelector(e)}function r(e){var t=document.querySelectorAll(e);return Array.prototype.slice.call(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.q=n,t.qAll=r},,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),o=r(s),a=n(34),l=r(a),u=n(36),c=r(u),d=n(35),p=r(d),f=o.default.createClass({displayName:"FormElement",propTypes:{type:o.default.PropTypes.string,label:o.default.PropTypes.string.isRequired,multiple:o.default.PropTypes.bool,name:o.default.PropTypes.string.isRequired,handleChange:o.default.PropTypes.func.isRequired,value:o.default.PropTypes.oneOfType([o.default.PropTypes.array,o.default.PropTypes.bool,o.default.PropTypes.number,o.default.PropTypes.string,o.default.PropTypes.array]).isRequired,help:o.default.PropTypes.string,errors:o.default.PropTypes.array},getDefaultProps:function(){return{type:"text"}},render:function(){var e=this.props.errors,t="id_"+this.props.name,n=this.props.help,r={text:c.default,email:c.default,password:c.default,textarea:c.default,checkbox:l.default,radio:l.default,select:p.default}[this.props.type];return o.default.createElement("div",{className:"field-wrapper"},o.default.createElement("label",{htmlFor:t},this.props.label),o.default.createElement(r,i({id:t},this.props)),e&&o.default.createElement("ul",{className:"errorlist"},e.map(function(e,t){return o.default.createElement("li",{key:t},e)})),n&&o.default.createElement("span",{className:"helptext"},n))}});t.default=f},,function(e,t,n){/*!
	  Copyright (c) 2015 Jed Watson.
	  Licensed under the MIT License (MIT), see
	  http://jedwatson.github.io/classnames
	*/
function r(){for(var e,t="",n=0;n<arguments.length;n++)if(e=arguments[n])if("string"==typeof e||"number"==typeof e)t+=" "+e;else if("[object Array]"===Object.prototype.toString.call(e))t+=" "+r.apply(null,e);else if("object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&e[i]&&(t+=" "+i);return t.substr(1)}var i,s;"undefined"!=typeof e&&e.exports&&(e.exports=r),i=[],s=function(){return r}.apply(t,i),!(void 0!==s&&(e.exports=s))},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(e||window).location.toString().split("#",2)[1]||""}function s(e){return decodeURIComponent(e.replace(/\+/g," "))}function o(e){var t={},n=/([^&;=]+)=?([^&;]*)/g,r=e;void 0===r&&(r=i());for(var o=n.exec(r);null!==o;)t[s(o[1])]=s(o[2]),o=n.exec(r);return t}function a(e,t,n,r){var o=/([^&;=]+)=?([^&;]*)/g,a=[],l=r;void 0===l&&(l=i());for(var u=!1,c=o.exec(l);null!==c;){var d=s(c[1]);d===e?(a.push([c[1],encodeURIComponent(t)].join("=")),u=!0):y.default.inArray(d,n)===-1&&a.push([c[1],c[2]].join("=")),c=o.exec(l)}return u||a.push([encodeURIComponent(e),encodeURIComponent(t)].join("=")),a.join("&")}function l(e,t){var n=void 0;return n=e===t?0:e<t?-1:1}function u(e){return(0,_.nl2br)((0,_.highlightEscapes)((0,_.highlightHtml)((0,w.raw2sym)(e.replace(/\r\n/g,"\n")))))}function c(e){return(0,_.highlightSymbols)((0,_.nl2br)((0,_.highlightPunctuation)((0,_.highlightEscapes)((0,_.highlightHtml)((0,w.raw2sym)(e.replace(/\r\n/g,"\n")),"js-editor-copytext"),"js-editor-copytext"),"js-editor-copytext")),"js-editor-copytext")}function d(e,t){(0,b.qAll)(e).forEach(function(e){var n=e.dataset.string,r=n?JSON.parse('"'+n+'"'):e.textContent;e.innerHTML=t(r)})}function p(e){return d(e,u)}function f(e){return d(e,c)}function h(e,t,n,r){var i=(0,y.default)(e);i.length&&(i.select2(t).on("select2:unselecting",function(){(0,y.default)(this).data("state","unselected")}).on("select2:open",function(){"unselected"===(0,y.default)(this).data("state")&&((0,y.default)(this).removeData("state"),(0,y.default)(this).select2("close"))}),i.on("change",n),i.on("select2-selecting",r),(0,y.default)(".select2-selection__rendered").removeAttr("title"))}function m(e,t){for(var n=e.split("."),r=n.pop(),i=t,s=0;s<n.length;s++)i=i[n[s]];for(var o=arguments.length,a=Array(o>2?o-2:0),l=2;l<o;l++)a[l-2]=arguments[l];return i[r].apply(this,a)}function g(e,t,n,r){e.toggleClass(t),n>1&&setTimeout(function(){return g(e,t,n-1,r)},r)}Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=i,t.getParsedHash=o,t.updateHashPart=a,t.strCmp=l,t.highlightRO=u,t.highlightRW=c,t.highlightRONodes=p,t.highlightRWNodes=f,t.makeSelectableInput=h,t.executeFunctionByName=m,t.blinkClass=g;var v=n(3),y=r(v);n(51);var b=n(10),_=n(48),w=n(47);t.default={blinkClass:g,executeFunctionByName:m,highlightRO:u,highlightRW:c,highlightRONodes:p,highlightRWNodes:f,getHash:i,getParsedHash:o,makeSelectableInput:h,strCmp:l,updateHashPart:a}},,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.FormMixin=void 0;var i=n(6),s=r(i),o=n(56),a=r(o),l=t.FormMixin={mixins:[a.default],getInitialState:function(){return{isDirty:!1}},handleChange:function(e,t){var n=s.default.extend({},this.state.formData);n[e]=t;var r=!s.default.isEqual(n,this.initialData);this.setState({isDirty:r,formData:n})},handleFormSuccess:function(){this.clearValidation(),this.initialData=s.default.extend({},this.state.formData),this.setState({isDirty:!1}),this.handleSuccess&&this.handleSuccess(this.getResource())},handleFormError:function(e){this.validateResponse(e),this.handleError&&this.handleError(e)}};t.default=l},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),s=r(i),o=n(1),a=r(o),l=n(8),u=a.default.createClass({displayName:"AuthContent",propTypes:{children:a.default.PropTypes.node,style:a.default.PropTypes.object},mixins:[l.PureRenderMixin],render:function(){var e=(0,s.default)({display:"table",height:"22em",width:"100%"},this.props.style),t={outer:e,inner:{display:"table-cell",verticalAlign:"middle"}};return a.default.createElement("div",{style:t.outer},a.default.createElement("div",{style:t.inner},this.props.children))}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(32),o=r(s),a=n(1),l=r(a),u=l.default.createClass({displayName:"AutosizeTextarea",componentDidMount:function(){(0,o.default)(this.refs.textarea)},componentDidUpdate:function(){var e=this;setTimeout(function(){return o.default.update(e.refs.textarea)},0)},componentWillUnmount:function(){o.default.destroy(this.refs.textarea)},render:function(){return l.default.createElement("textarea",i({ref:"textarea"},this.props))}});t.default=u},function(e,t){"use strict";function n(e){var t=null;if(document.cookie&&""!==document.cookie)for(var n=document.cookie.split(";"),r=0;r<n.length;r++){var i=n[r].trim();if(i.substring(0,e.length+1)===e+"="){t=decodeURIComponent(i.substring(e.length+1));break}}return t}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null===t?"":t,i=null===t?-1:n.expires,s="";if(i&&("number"==typeof i||i.toUTCString)){var o=void 0;"number"==typeof i?(o=new Date,o.setTime(o.getTime()+24*i*60*60*1e3)):o=n.expiryDate,s="; expires="+o.toUTCString()}var a=n.path?"; path="+n.path:"",l=n.domain?"; domain="+n.domain:"",u=n.secure?"; secure":"";document.cookie=e+"="+encodeURIComponent(r)+(""+s+a+l+u)}function i(e,t,i){return void 0===t?n(e):r(e,t,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.url,n=e.body,r=e.method,i=void 0===r?"GET":r,s=e.dataType,u=void 0===s?"json":s,c=e.queue,d=void 0===c?null:c,p=e.crossDomain,f=void 0!==p&&p,h=d||t;return a[h]&&a[h].abort(),a[h]=o.default.ajax({crossDomain:f,method:i,dataType:u,url:l(t),data:n}),a[h].done(function(){a[h]=null}),a[h]}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),o=r(s),a={};t.default=i},,,function(e,t,n){var r,i,s;/*!
		Autosize 3.0.21
		license: MIT
		http://www.jacklmoore.com/autosize
	*/
!function(n,o){i=[t,e],r=o,s="function"==typeof r?r.apply(t,i):r,!(void 0!==s&&(e.exports=s))}(this,function(e,t){"use strict";function n(e){function t(){var t=window.getComputedStyle(e,null);"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),l="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(l)&&(l=0),a()}function n(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function r(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function i(){var t=e.style.height,n=r(e),i=document.documentElement&&document.documentElement.scrollTop;e.style.height="auto";var s=e.scrollHeight+l;return 0===e.scrollHeight?void(e.style.height=t):(e.style.height=s+"px",u=e.clientWidth,n.forEach(function(e){e.node.scrollTop=e.scrollTop}),void(i&&(document.documentElement.scrollTop=i)))}function a(){i();var t=Math.round(parseFloat(e.style.height)),r=window.getComputedStyle(e,null),s="content-box"===r.boxSizing?Math.round(parseFloat(r.height)):e.offsetHeight;if(s!==t?"hidden"===r.overflowY&&(n("scroll"),i(),s="content-box"===r.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==r.overflowY&&(n("hidden"),i(),s="content-box"===r.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),c!==s){c=s;var a=o("autosize:resized");try{e.dispatchEvent(a)}catch(e){}}}if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!s.has(e)){var l=null,u=e.clientWidth,c=null,d=function(){e.clientWidth!==u&&a()},p=function(t){window.removeEventListener("resize",d,!1),e.removeEventListener("input",a,!1),e.removeEventListener("keyup",a,!1),e.removeEventListener("autosize:destroy",p,!1),e.removeEventListener("autosize:update",a,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),s.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",p,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",a,!1),window.addEventListener("resize",d,!1),e.addEventListener("input",a,!1),e.addEventListener("autosize:update",a,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",s.set(e,{destroy:p,update:a}),t()}}function r(e){var t=s.get(e);t&&t.destroy()}function i(e){var t=s.get(e);t&&t.update()}var s="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,r){e.indexOf(n)===-1&&(e.push(n),t.push(r))},delete:function(n){var r=e.indexOf(n);r>-1&&(e.splice(r,1),t.splice(r,1))}}}(),o=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){o=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(a=function(e){return e},a.destroy=function(e){return e},a.update=function(e){return e}):(a=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e,t)}),e},a.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e}),t.exports=a})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return{screen:e,type:"GOTO_SCREEN"}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return"errors"in e&&(t=e.errors),"msg"in e&&(t={__all__:[e.msg]}),t}function o(){return{type:"SIGNIN_REQUEST"}}function a(e){return{type:"SIGNIN_SUCCESS",nextURL:e}}function l(e){return{type:"SIGNIN_FAILURE",errors:s(e)}}function u(e,t){return function(n){return n(o()),T.default.signIn(e,t).then(function(e){return n(a(e.location))},function(e){return n(l(e.responseJSON))})}}function c(e){return{type:"SIGNUP_REQUEST",email:e}}function d(e){return{type:"SIGNUP_SUCCESS",nextURL:e}}function p(e){return{type:"SIGNUP_FAILURE",errors:s(e)}}function f(e,t){return function(n){return n(c(e.email)),T.default.signUp(e,t).then(function(e){return n(d(e.location))},function(e){return n(p(e.responseJSON))})}}function h(e){return{type:"REQ_PW_RESET_REQUEST",email:e}}function m(e){return{type:"REQ_PW_RESET_SUCCESS",nextURL:e}}function g(e){return{type:"REQ_PW_RESET_FAILURE",errors:s(e)}}function v(e){return function(t){return t(h(e.email)),T.default.requestPasswordReset(e).then(function(e){return t(m(e.location))},function(e){return t(g(e.responseJSON))})}}function y(){return{type:"PW_RESET_REQUEST"}}function b(){return{type:"PW_RESET_SUCCESS"}}function _(e){return{type:"PW_RESET_FAILURE",errors:s(e)}}function w(e,t){return function(n){return n(y()),T.default.passwordReset(e,t).then(function(){return n(b())},function(e){return n(_(e.responseJSON))})}}function E(){return{type:"VERIFY_SOCIAL_REQUEST"}}function x(e){return{type:"VERIFY_SOCIAL_SUCCESS",nextURL:e}}function C(e){return{type:"VERIFY_SOCIAL_FAILURE",errors:s(e)}}function P(e){return function(t){return t(E()),T.default.verifySocial(e).then(function(e){return t(x(e.location))},function(e){return t(C(e.responseJSON))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.gotoScreen=i,t.signIn=u,t.signUp=f,t.requestPasswordReset=v,t.passwordReset=w,t.verifySocial=P;var S=n(221),T=r(S)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),o=r(s),a=o.default.createClass({displayName:"FormCheckedInput",propTypes:{handleChange:o.default.PropTypes.func.isRequired,value:o.default.PropTypes.bool.isRequired},handleChange:function(e){this.props.handleChange(e.target.name,e.target.checked)},render:function(){return o.default.createElement("input",i({checked:this.props.value,onChange:this.handleChange},this.props))}});t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),o=r(s),a=n(41),l=r(a),u=o.default.createClass({displayName:"FormSelectInput",propTypes:{handleChange:o.default.PropTypes.func.isRequired,multiple:o.default.PropTypes.bool,name:o.default.PropTypes.string.isRequired,options:o.default.PropTypes.array.isRequired,value:o.default.PropTypes.oneOfType([o.default.PropTypes.array,o.default.PropTypes.number,o.default.PropTypes.string,o.default.PropTypes.array]).isRequired},handleChange:function(e){var t=this.props.multiple?e.split(","):e;this.props.handleChange(this.props.name,t)},render:function(){var e=this.props.value,t=this.props.multiple?e:e.toString();return o.default.createElement(l.default,i({clearAllText:gettext("Clear all"),clearValueText:gettext("Clear value"),noResultsText:gettext("No results found"),onChange:this.handleChange,placeholder:gettext("Select..."),searchPromptText:gettext("Type to search")},this.props,{multi:this.props.multiple,value:t}))}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),o=r(s),a=n(27),l=r(a),u=o.default.createClass({displayName:"FormValueInput",propTypes:{handleChange:o.default.PropTypes.func.isRequired,autosize:o.default.PropTypes.bool,type:o.default.PropTypes.string,value:o.default.PropTypes.string},getDefaultProps:function(){return{autosize:!0}},handleChange:function(e){this.props.handleChange(e.target.name,e.target.value)},render:function(){return"textarea"===this.props.type?this.props.autosize?o.default.createElement(l.default,i({onChange:this.handleChange},this.props)):o.default.createElement("textarea",i({onChange:this.handleChange},this.props)):o.default.createElement("input",i({onChange:this.handleChange},this.props))}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){for(var n=[],r=0,i=e,s=[];i;){if(s=/^[^\x25]+/.exec(i),null!==s)n.push(s[0]);else{if(s=/^\x25\(([^\)]+)\)s/.exec(i),null===s)throw new Error("Wrong format");if(s[1]){var o=t[s[1]];u.default.isValidElement(o)?n.push(u.default.cloneElement(o,{key:r++})):n.push(o)}}i=i.substring(s[0].length)}return n}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?i(gettext(e),t):[gettext(e)]}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?interpolate(gettext(e),t,!0):gettext(e)}function a(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return r?interpolate(ngettext(e,t,n),r,!0):ngettext(e,t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.tct=s,t.t=o,t.nt=a;var l=n(1),u=r(l)},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s={position:"absolute",visibility:"hidden",height:0,width:0,overflow:"scroll",whiteSpace:"pre"},o=("undefined"!=typeof window?function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}().bind(window):void 0,i.createClass({displayName:"AutosizeInput",propTypes:{value:i.PropTypes.any,defaultValue:i.PropTypes.any,onChange:i.PropTypes.func,style:i.PropTypes.object,className:i.PropTypes.string,minWidth:i.PropTypes.oneOfType([i.PropTypes.number,i.PropTypes.string]),inputStyle:i.PropTypes.object,inputClassName:i.PropTypes.string},getDefaultProps:function(){return{minWidth:1}},getInitialState:function(){return{inputWidth:this.props.minWidth}},componentDidMount:function(){this.copyInputStyles(),this.updateInputWidth()},componentDidUpdate:function(){this.updateInputWidth()},copyInputStyles:function(){if(this.isMounted()&&window.getComputedStyle){var e=window.getComputedStyle(this.refs.input);if(e){var t=this.refs.sizer;if(t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,this.props.placeholder){var n=this.refs.placeholderSizer;n.style.fontSize=e.fontSize,n.style.fontFamily=e.fontFamily,n.style.fontWeight=e.fontWeight,n.style.fontStyle=e.fontStyle,n.style.letterSpacing=e.letterSpacing}}}},updateInputWidth:function(){if(this.isMounted()&&"undefined"!=typeof this.refs.sizer.scrollWidth){var e=void 0;e=this.props.placeholder?Math.max(this.refs.sizer.scrollWidth,this.refs.placeholderSizer.scrollWidth)+2:this.refs.sizer.scrollWidth+2,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}},getInput:function(){return this.refs.input},focus:function(){this.refs.input.focus()},blur:function(){this.refs.input.blur()},select:function(){this.refs.input.select()},render:function(){var e=this.props.defaultValue||this.props.value||"",t=this.props.style||{};t.display||(t.display="inline-block");var n=r({},this.props.inputStyle);n.width=this.state.inputWidth+"px",n.boxSizing="content-box";var o=this.props.placeholder?i.createElement("div",{ref:"placeholderSizer",style:s},this.props.placeholder):null;return i.createElement("div",{className:this.props.className,style:t},i.createElement("input",r({},this.props,{ref:"input",className:this.props.inputClassName,style:n})),i.createElement("div",{ref:"sizer",style:s},e),o)}}));e.exports=o},function(e,t,n){"use strict";var r=n(1),i=n(9),s=r.createClass({displayName:"Option",propTypes:{addLabelText:r.PropTypes.string,className:r.PropTypes.string,mouseDown:r.PropTypes.func,mouseEnter:r.PropTypes.func,mouseLeave:r.PropTypes.func,option:r.PropTypes.object.isRequired,renderFunc:r.PropTypes.func},blockEvent:function(e){e.preventDefault(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href):window.location.href=e.target.href)},handleMouseDown:function(e){this.props.mouseDown(this.props.option,e)},handleMouseEnter:function(e){this.props.mouseEnter(this.props.option,e)},handleMouseLeave:function(e){this.props.mouseLeave(this.props.option,e)},render:function(){var e=this.props.option,t=e.create?this.props.addLabelText.replace("{label}",e.label):this.props.renderFunc(e),n=i(this.props.className,e.className);return e.disabled?r.createElement("div",{className:n,onMouseDown:this.blockEvent,onClick:this.blockEvent},t):r.createElement("div",{className:n,style:e.style,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleMouseDown,title:e.title},t)}});e.exports=s},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),o=n(12),a=n(39),l=n(9),u=n(43),c=n(42),d=n(40),p=0,f=s.createClass({displayName:"Select",propTypes:{addLabelText:s.PropTypes.string,allowCreate:s.PropTypes.bool,asyncOptions:s.PropTypes.func,autoload:s.PropTypes.bool,backspaceRemoves:s.PropTypes.bool,cacheAsyncResults:s.PropTypes.bool,className:s.PropTypes.string,clearAllText:s.PropTypes.string,clearValueText:s.PropTypes.string,clearable:s.PropTypes.bool,delimiter:s.PropTypes.string,disabled:s.PropTypes.bool,filterOption:s.PropTypes.func,filterOptions:s.PropTypes.func,ignoreCase:s.PropTypes.bool,inputProps:s.PropTypes.object,isLoading:s.PropTypes.bool,labelKey:s.PropTypes.string,matchPos:s.PropTypes.string,matchProp:s.PropTypes.string,multi:s.PropTypes.bool,name:s.PropTypes.string,newOptionCreator:s.PropTypes.func,noResultsText:s.PropTypes.string,onBlur:s.PropTypes.func,onChange:s.PropTypes.func,onFocus:s.PropTypes.func,onInputChange:s.PropTypes.func,onOptionLabelClick:s.PropTypes.func,optionComponent:s.PropTypes.func,optionRenderer:s.PropTypes.func,options:s.PropTypes.array,placeholder:s.PropTypes.string,searchable:s.PropTypes.bool,searchingText:s.PropTypes.string,searchPromptText:s.PropTypes.string,singleValueComponent:s.PropTypes.func,value:s.PropTypes.any,valueComponent:s.PropTypes.func,valueKey:s.PropTypes.string,valueRenderer:s.PropTypes.func},getDefaultProps:function(){return{addLabelText:'Add "{label}"?',allowCreate:!1,asyncOptions:void 0,autoload:!0,backspaceRemoves:!0,cacheAsyncResults:!0,className:void 0,clearAllText:"Clear all",clearValueText:"Clear value",clearable:!0,delimiter:",",disabled:!1,ignoreCase:!0,inputProps:{},isLoading:!1,labelKey:"label",matchPos:"any",matchProp:"any",name:void 0,newOptionCreator:void 0,noResultsText:"No results found",onChange:void 0,onInputChange:void 0,onOptionLabelClick:void 0,optionComponent:d,options:void 0,placeholder:"Select...",searchable:!0,searchingText:"Searching...",searchPromptText:"Type to search",singleValueComponent:c,value:void 0,valueComponent:u,valueKey:"value"}},getInitialState:function(){return{isFocused:!1,isLoading:!1,isOpen:!1,options:this.props.options}},componentWillMount:function(){var e=this;this._optionsCache={},this._optionsFilterString="",this._closeMenuIfClickedOutside=function(t){if(e.state.isOpen){var n=o.findDOMNode(e.refs.selectMenuContainer),r=o.findDOMNode(e.refs.control),i=e.clickedOutsideElement(n,t),s=e.clickedOutsideElement(r,t);i&&s&&e.setState({isOpen:!1},e._unbindCloseMenuIfClickedOutside)}},this._bindCloseMenuIfClickedOutside=function(){!document.addEventListener&&document.attachEvent?document.attachEvent("onclick",e._closeMenuIfClickedOutside):document.addEventListener("click",e._closeMenuIfClickedOutside)},this._unbindCloseMenuIfClickedOutside=function(){!document.removeEventListener&&document.detachEvent?document.detachEvent("onclick",e._closeMenuIfClickedOutside):document.removeEventListener("click",e._closeMenuIfClickedOutside)},this.setState(this.getStateFromValue(this.props.value))},componentDidMount:function(){this.props.asyncOptions&&this.props.autoload&&this.autoloadAsyncOptions()},componentWillUnmount:function(){clearTimeout(this._blurTimeout),clearTimeout(this._focusTimeout),this.state.isOpen&&this._unbindCloseMenuIfClickedOutside()},componentWillReceiveProps:function(e){var t=this,n=!1;if(JSON.stringify(e.options)!==JSON.stringify(this.props.options)&&(n=!0,this.setState({options:e.options,filteredOptions:this.filterOptions(e.options)})),e.value!==this.state.value||e.placeholder!==this.props.placeholder||n){var r=function(n){t.setState(t.getStateFromValue(e.value,n&&n.options||e.options,e.placeholder))};this.props.asyncOptions?this.loadAsyncOptions(e.value,{},r):r()}},componentDidUpdate:function(){var e=this;if(!this.props.disabled&&this._focusAfterUpdate&&(clearTimeout(this._blurTimeout),clearTimeout(this._focusTimeout),this._focusTimeout=setTimeout(function(){e.isMounted()&&(e.getInputNode().focus(),e._focusAfterUpdate=!1)},50)),this._focusedOptionReveal){if(this.refs.focused&&this.refs.menu){var t=o.findDOMNode(this.refs.focused),n=o.findDOMNode(this.refs.menu),r=t.getBoundingClientRect(),i=n.getBoundingClientRect();(r.bottom>i.bottom||r.top<i.top)&&(n.scrollTop=t.offsetTop+t.clientHeight-n.offsetHeight)}this._focusedOptionReveal=!1}},focus:function(){this.getInputNode().focus()},clickedOutsideElement:function(e,t){for(var n=t.target?t.target:t.srcElement;null!=n;){if(n===e)return!1;n=n.offsetParent}return!0},getStateFromValue:function(e,t,n){var r=this;t||(t=this.state.options),n||(n=this.props.placeholder),this._optionsFilterString="";var i,s=this.initValuesArray(e,t),o=this.filterOptions(t,s),a=null;return!this.props.multi&&s.length?(i=s[0],a=s[0][this.props.valueKey]):(i=this.getFirstFocusableOption(o),a=s.map(function(e){return e[r.props.valueKey]}).join(this.props.delimiter)),{value:a,values:s,inputValue:"",filteredOptions:o,placeholder:!this.props.multi&&s.length?s[0][this.props.labelKey]:n,focusedOption:i}},getFirstFocusableOption:function(e){for(var t=0;t<e.length;++t)if(!e[t].disabled)return e[t]},initValuesArray:function(e,t){var n=this;return Array.isArray(e)||(e="string"==typeof e?""===e?[]:this.props.multi?e.split(this.props.delimiter):[e]:void 0!==e&&null!==e?[e]:[]),e.map(function(e){if("string"==typeof e||"number"==typeof e){var i;for(var s in t)if(t.hasOwnProperty(s)&&t[s]&&(t[s][n.props.valueKey]===e||"number"==typeof t[s][n.props.valueKey]&&t[s][n.props.valueKey].toString()===e))return t[s];return i={},r(i,n.props.valueKey,e),r(i,n.props.labelKey,e),i}return e})},setValue:function(e,t){(t||void 0===t)&&(this._focusAfterUpdate=!0);var n=this.getStateFromValue(e);n.isOpen=!1,this.fireChangeEvent(n),this.setState(n)},selectValue:function(e){this.props.multi?e&&this.addValue(e):this.setValue(e),this._unbindCloseMenuIfClickedOutside()},addValue:function(e){this.setValue(this.state.values.concat(e))},popValue:function(){this.setValue(this.state.values.slice(0,this.state.values.length-1))},removeValue:function(e){this.setValue(this.state.values.filter(function(t){return t!==e}))},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(null))},resetValue:function(){this.setValue(""===this.state.value?null:this.state.value)},getInputNode:function(){var e=this.refs.input;return this.props.searchable?e:o.findDOMNode(e)},fireChangeEvent:function(e){e.value!==this.state.value&&this.props.onChange&&this.props.onChange(e.value,e.values)},handleMouseDown:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button))return e.stopPropagation(),e.preventDefault(),this.state.isOpen&&!this.props.searchable?void this.setState({isOpen:!1},this._unbindCloseMenuIfClickedOutside):void(this.state.isFocused?this.setState({isOpen:!0},this._bindCloseMenuIfClickedOutside):(this._openAfterFocus=!0,this.getInputNode().focus()))},handleMouseDownOnMenu:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault())},handleMouseDownOnArrow:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||this.state.isOpen&&(e.stopPropagation(),e.preventDefault(),this.setState({isOpen:!1},this._unbindCloseMenuIfClickedOutside))},handleInputFocus:function(e){var t=this,n=this.state.isOpen||this._openAfterFocus;this.setState({isFocused:!0,isOpen:n},function(){n?t._bindCloseMenuIfClickedOutside():t._unbindCloseMenuIfClickedOutside()}),this._openAfterFocus=!1,this.props.onFocus&&this.props.onFocus(e)},handleInputBlur:function(e){var t=this,n=o.findDOMNode(this.refs.menu);document.activeElement.isEqualNode(n)||(this._blurTimeout=setTimeout(function(){!t._focusAfterUpdate&&t.isMounted()&&t.setState({inputValue:"",isFocused:!1,isOpen:!1})},50),this.props.onBlur&&this.props.onBlur(e))},handleKeyDown:function(e){if(!this.props.disabled){switch(e.keyCode){case 8:return void(!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue()));case 9:if(e.shiftKey||!this.state.isOpen||!this.state.focusedOption)return;this.selectFocusedOption();break;case 13:if(!this.state.isOpen)return;this.selectFocusedOption();break;case 27:this.state.isOpen?this.resetValue():this.props.clearable&&this.clearValue(e);break;case 38:this.focusPreviousOption();break;case 40:this.focusNextOption();break;case 188:if(!this.props.allowCreate||!this.props.multi)return;e.preventDefault(),e.stopPropagation(),this.selectFocusedOption();break;default:return}e.preventDefault()}},_getNewFocusedOption:function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===this.state.focusedOption)return e[t];return this.getFirstFocusableOption(e)},handleInputChange:function(e){if(this._optionsFilterString=e.target.value,this.props.onInputChange&&this.props.onInputChange(e.target.value),this.props.asyncOptions)this.setState({isLoading:!0,inputValue:e.target.value}),this.loadAsyncOptions(e.target.value,{isLoading:!1,isOpen:!0},this._bindCloseMenuIfClickedOutside);else{var t=this.filterOptions(this.state.options);this.setState({isOpen:!0,inputValue:e.target.value,filteredOptions:t,focusedOption:this._getNewFocusedOption(t)},this._bindCloseMenuIfClickedOutside)}},autoloadAsyncOptions:function(){var e=this;this.setState({isLoading:!0}),this.loadAsyncOptions("",{isLoading:!1},function(){e.setValue(e.props.value,!1)})},loadAsyncOptions:function(e,t,n){void 0===e&&(e="");var r=this,i=this._currentRequestId=p++;if(this.props.cacheAsyncResults)for(var s=0;s<=e.length;s++){var o=e.slice(0,s);if(this._optionsCache[o]&&(e===o||this._optionsCache[o].complete)){var a=this._optionsCache[o].options,l=this.filterOptions(a),u={options:a,filteredOptions:l,focusedOption:this._getNewFocusedOption(l)};for(var c in t)t.hasOwnProperty(c)&&(u[c]=t[c]);return this.setState(u),void(n&&n.call(this,u))}}var d=function(s,o){if(s)throw s;if(r.props.cacheAsyncResults&&(r._optionsCache[e]=o),i===r._currentRequestId){var a=r.filterOptions(o.options),l={options:o.options,filteredOptions:a,focusedOption:r._getNewFocusedOption(a)};for(var u in t)t.hasOwnProperty(u)&&(l[u]=t[u]);r.setState(l),n&&n.call(r,l)}},f=this.props.asyncOptions(e,d);f&&"function"==typeof f.then&&f.then(function(e){d(null,e)},function(e){d(e)})},filterOptions:function(e,t){var n=this,r=this._optionsFilterString,i=(t||this.state.values).map(function(e){return e[n.props.valueKey]});if(this.props.filterOptions)return this.props.filterOptions.call(this,e,r,i);var s=function(e){if(this.props.multi&&i.indexOf(e[this.props.valueKey])>-1)return!1;if(this.props.filterOption)return this.props.filterOption.call(this,e,r);var t=String(e[this.props.valueKey]),n=String(e[this.props.labelKey]);return this.props.ignoreCase&&(t=t.toLowerCase(),n=n.toLowerCase(),r=r.toLowerCase()),r&&"start"!==this.props.matchPos?"label"!==this.props.matchProp&&t.indexOf(r)>=0||"value"!==this.props.matchProp&&n.indexOf(r)>=0:"label"!==this.props.matchProp&&t.substr(0,r.length)===r||"value"!==this.props.matchProp&&n.substr(0,r.length)===r};return(e||[]).filter(s,this)},selectFocusedOption:function(){return this.props.allowCreate&&!this.state.focusedOption?this.selectValue(this.state.inputValue):this.state.focusedOption?this.selectValue(this.state.focusedOption):void 0},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusAdjacentOption:function(e){this._focusedOptionReveal=!0;var t=this.state.filteredOptions.filter(function(e){return!e.disabled});if(!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this.state.focusedOption||t["next"===e?0:t.length-1]},this._bindCloseMenuIfClickedOutside);if(t.length){for(var n=-1,r=0;r<t.length;r++)if(this.state.focusedOption===t[r]){n=r;break}var i=t[0];"next"===e&&n>-1&&n<t.length-1?i=t[n+1]:"previous"===e&&(i=n>0?t[n-1]:t[t.length-1]),this.setState({focusedOption:i})}},unfocusOption:function(e){this.state.focusedOption===e&&this.setState({focusedOption:null})},renderOptionLabel:function(e){return e[this.props.labelKey]},buildMenu:function(){var e=this.state.focusedOption?this.state.focusedOption[this.props.valueKey]:null,t=this.props.optionRenderer||this.renderOptionLabel;this.state.filteredOptions.length>0&&(e=null==e?this.state.filteredOptions[0]:e);var n=this.state.filteredOptions;if(this.props.allowCreate&&this.state.inputValue.trim()){var r=this.state.inputValue;n=n.slice();var i=this.props.newOptionCreator?this.props.newOptionCreator(r):{value:r,label:r,create:!0};n.unshift(i)}var o=Object.keys(n).map(function(r){var i=n[r],o=this.state.value===i[this.props.valueKey],a=e===i[this.props.valueKey],u=l({"Select-option":!0,"is-selected":o,"is-focused":a,"is-disabled":i.disabled}),c=a?"focused":null,d=s.createElement(this.props.optionComponent,{key:"option-"+i[this.props.valueKey],className:u,renderFunc:t,mouseDown:this.selectValue,mouseEnter:this.focusOption,mouseLeave:this.unfocusOption,addLabelText:this.props.addLabelText,option:i,ref:c});return d},this);if(o.length)return o;var a,u;return this.isLoading()?(u="Select-searching",a=this.props.searchingText):this.state.inputValue||!this.props.asyncOptions?(u="Select-noresults",a=this.props.noResultsText):(u="Select-search-prompt",a=this.props.searchPromptText),s.createElement("div",{className:u},a)},handleOptionLabelClick:function(e,t){this.props.onOptionLabelClick&&this.props.onOptionLabelClick(e,t)},isLoading:function(){return this.props.isLoading||this.state.isLoading},render:function(){var e=l("Select",this.props.className,{"Select--multi":this.props.multi,"is-searchable":this.props.searchable,"is-open":this.state.isOpen,"is-focused":this.state.isFocused,"is-loading":this.isLoading(),"is-disabled":this.props.disabled,"has-value":this.state.value}),t=[];if(this.props.multi&&this.state.values.forEach(function(e){var n=this.props.valueRenderer||this.renderOptionLabel,r=this.handleOptionLabelClick.bind(this,e),i=this.removeValue.bind(this,e),o=s.createElement(this.props.valueComponent,{key:e[this.props.valueKey],option:e,renderer:n,optionLabelClick:!!this.props.onOptionLabelClick,onOptionLabelClick:r,onRemove:i,disabled:this.props.disabled});t.push(o)},this),!(this.state.inputValue||this.props.multi&&t.length)){var n=this.state.values[0]||null;if(this.props.valueRenderer&&this.state.values.length)t.push(s.createElement(u,{key:0,option:n,renderer:this.props.valueRenderer,disabled:this.props.disabled}));else{var r=s.createElement(this.props.singleValueComponent,{key:"placeholder",value:n,placeholder:this.state.placeholder});t.push(r)}}var o,c,d=this.isLoading()?s.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},s.createElement("span",{className:"Select-loading"})):null,p=this.props.clearable&&this.state.value&&!this.props.disabled&&!this.isLoading()?s.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchEnd:this.clearValue,onClick:this.clearValue},s.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"&times;"}})):null,f=s.createElement("span",{className:"Select-arrow-zone",onMouseDown:this.handleMouseDownOnArrow},s.createElement("span",{className:"Select-arrow",onMouseDown:this.handleMouseDownOnArrow}));this.state.isOpen&&(c={ref:"menu",className:"Select-menu",onMouseDown:this.handleMouseDownOnMenu},o=s.createElement("div",{ref:"selectMenuContainer",className:"Select-menu-outer"},s.createElement("div",c,this.buildMenu())));var h,m={ref:"input",className:"Select-input "+(this.props.inputProps.className||""),tabIndex:this.props.tabIndex||0,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};for(var g in this.props.inputProps)this.props.inputProps.hasOwnProperty(g)&&"className"!==g&&(m[g]=this.props.inputProps[g]);return this.props.disabled?this.props.multi&&this.state.values.length||(h=s.createElement("div",{className:"Select-input"}," ")):h=this.props.searchable?s.createElement(a,i({value:this.state.inputValue,onChange:this.handleInputChange,minWidth:"5"},m)):s.createElement("div",m," "),s.createElement("div",{ref:"wrapper",className:e},s.createElement("input",{type:"hidden",ref:"value",name:this.props.name,value:this.state.value,disabled:this.props.disabled}),s.createElement("div",{className:"Select-control",ref:"control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},t,h,d,p,f),o)}});e.exports=f},function(e,t,n){"use strict";var r=n(1),i=n(9),s=r.createClass({displayName:"SingleValue",propTypes:{placeholder:r.PropTypes.string,value:r.PropTypes.object},render:function(){var e=i("Select-placeholder",this.props.value&&this.props.value.className);return r.createElement("div",{className:e,style:this.props.value&&this.props.value.style,title:this.props.value&&this.props.value.title},this.props.placeholder)}});e.exports=s},function(e,t,n){"use strict";var r=n(1),i=n(9),s=r.createClass({displayName:"Value",propTypes:{disabled:r.PropTypes.bool,onOptionLabelClick:r.PropTypes.func,onRemove:r.PropTypes.func,option:r.PropTypes.object.isRequired,optionLabelClick:r.PropTypes.bool,renderer:r.PropTypes.func},blockEvent:function(e){e.stopPropagation()},handleOnRemove:function(e){this.props.disabled||this.props.onRemove(e)},render:function(){var e=this.props.option.label;return this.props.renderer&&(e=this.props.renderer(this.props.option)),this.props.onRemove||this.props.optionLabelClick?(this.props.optionLabelClick&&(e=r.createElement("a",{className:i("Select-item-label__a",this.props.option.className),onMouseDown:this.blockEvent,onTouchEnd:this.props.onOptionLabelClick,onClick:this.props.onOptionLabelClick,style:this.props.option.style,title:this.props.option.title},e)),r.createElement("div",{className:i("Select-item",this.props.option.className),style:this.props.option.style,title:this.props.option.title},r.createElement("span",{className:"Select-item-icon",onMouseDown:this.blockEvent,onClick:this.handleOnRemove,onTouchEnd:this.handleOnRemove},"×"),r.createElement("span",{className:"Select-item-label"},e))):r.createElement("div",{
className:i("Select-value",this.props.option.className),style:this.props.option.style,title:this.props.option.title},e)}});e.exports=s},,,function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=c[r.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](r.parts[s]);for(;s<r.parts.length;s++)i.parts.push(o(r.parts[s],t))}else{for(var a=[],s=0;s<r.parts.length;s++)a.push(o(r.parts[s],t));c[r.id]={id:r.id,refs:1,parts:a}}}}function i(e){for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],s=i[0],o=i[1],a=i[2],l=i[3],u={css:o,media:a,sourceMap:l};n[s]?n[s].parts.push(u):t.push(n[s]={id:s,parts:[u]})}return t}function s(){var e=document.createElement("style"),t=f();return e.type="text/css",t.appendChild(e),e}function o(e,t){var n,r,i;if(t.singleton){var o=m++;n=h||(h=s()),r=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else n=s(),r=u.bind(null,n),i=function(){n.parentNode.removeChild(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function a(e,t,n){var r=["/** >>"+t+" **/","/** "+t+"<< **/"],i=e.lastIndexOf(r[0]),s=n?r[0]+n+r[1]:"";if(e.lastIndexOf(r[0])>=0){var o=e.lastIndexOf(r[1])+r[1].length;return e.slice(0,i)+s+e.slice(o)}return e+s}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=a(e.styleSheet.cssText,t,i);else{var s=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(s,o[t]):e.appendChild(s)}}function u(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(i&&"function"==typeof btoa)try{n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(JSON.stringify(i))+" */",n='@import url("data:text/css;base64,'+btoa(n)+'")'}catch(e){}if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c={},d=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},p=d(function(){return/msie 9\b/.test(window.navigator.userAgent.toLowerCase())}),f=d(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,m=0;e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=p());var n=i(e);return r(n,t),function(e){for(var s=[],o=0;o<n.length;o++){var a=n[o],l=c[a.id];l.refs--,s.push(l)}if(e){var u=i(e);r(u,t)}for(var o=0;o<s.length;o++){var l=s[o];if(0===l.refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete c[l.id]}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return Array(e.length+1).join(C.SPACE)}function o(e){return x.LF+s(e.substring(1))}function a(e){return e.substring(0).replace(/ +/g,s)}function l(e){return s(e.substring(1))+x.LF}function u(e,t,n){var r=t.indexOf(e);return r>=0?n.charAt(r):e}function c(e){return u(e,k,M)}function d(e){return u(e,M,k)}function p(e){return u(e,O,R)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isRawMode,r=void 0!==n&&n,i=r?e.replace(/ +/g,s):e.replace(/ {2,}/g,s);return i=i.replace(/\n /g,o),i=i.replace(/ \n/g,l),i=i.replace(/ [\t\u00A0]/g,a),i=i.replace(/[\t\u00A0] /g,a),i=i.replace(/ [:!?]/g,a),i=i.replace(/^ /,s),i=i.replace(/ $/,s),i=i.replace(/\n/g,""+C.LF+x.LF),i=r?i.replace(A,d):i.replace(I,p)}function h(e){var t=e.replace(/\u240A\n/g,x.LF);return t=t.replace(/\u240A/g,x.LF),t=t.replace(/\u2420/g,x.SPACE),t=t.replace(j,c)}Object.defineProperty(t,"__esModule",{value:!0}),t.RE_BASE_REVERSE=t.BASE_MAP_REVERSE_HL=t.FULL_MAP=t.BASE_MAP=t.SYMBOLS=t.CHARACTERS=void 0;var m,g,v,y;t.raw2sym=f,t.sym2raw=h;var b=n(7),_=r(b),w=n(6),E=r(w),x=t.CHARACTERS={NULL:"\0",BELL:"",BS:"\b",TAB:"\t",VT:"\v",FF:"\f",ESC:"",NBSP:" ",LF:"\n",CR:"\r",SPACE:" ",ALM:"؜",ZWS:"​",ZWNJ:"‌",ZWJ:"‍",LRM:"‎",RLM:"‏",LRE:"‪",RLE:"‫",PDF:"‬",LRO:"‭",RLO:"‮",WJ:"⁠",LRI:"⁦",RLI:"⁧",FSI:"⁨",PDI:"⁩"},C=t.SYMBOLS={NULL:"␀",BELL:"␇",BS:"␈",TAB:"␉",VT:"␋",FF:"␌",ESC:"␛",NBSP:"␣",LF:"␊",CR:"␍",SPACE:"␠",ALM:"",ZWS:"",ZWNJ:"",ZWJ:"",LRM:"",RLM:"",LRE:"",RLE:"",PDF:"",LRO:"",RLO:"",WJ:"",LRI:"",RLI:"",FSI:"",PDI:""},P=t.BASE_MAP=(m={},i(m,x.NULL,C.NULL),i(m,x.BELL,C.BELL),i(m,x.BS,C.BS),i(m,x.TAB,C.TAB),i(m,x.VT,C.VT),i(m,x.FF,C.FF),i(m,x.ESC,C.ESC),i(m,x.NBSP,C.NBSP),i(m,x.CR,C.CR),m),S=t.FULL_MAP=(0,_.default)({},P,(g={},i(g,x.ALM,C.ALM),i(g,x.ZWS,C.ZWS),i(g,x.ZWNJ,C.ZWNJ),i(g,x.ZWJ,C.ZWJ),i(g,x.LRM,C.LRM),i(g,x.RLM,C.RLM),i(g,x.LRE,C.LRE),i(g,x.RLE,C.RLE),i(g,x.PDF,C.PDF),i(g,x.LRO,C.LRO),i(g,x.RLO,C.RLO),i(g,x.WJ,C.WJ),i(g,x.LRI,C.LRI),i(g,x.RLI,C.RLI),i(g,x.FSI,C.FSI),i(g,x.PDI,C.PDI),g)),T=(0,_.default)({},E.default.invert(P),(v={},i(v,C.LF,""),i(v,C.CR,""),v)),O=(t.BASE_MAP_REVERSE_HL=(0,_.default)({},T,(y={},i(y,C.LF,x.LF),i(y,C.CR,x.CR),y)),t.RE_BASE_REVERSE=new RegExp("["+Object.keys(T).join("")+"]","g"),Object.keys(P).join("")),R=Object.keys(E.default.invert(P)).join(""),M=Object.keys(S).join(""),k=Object.keys(E.default.invert(S)).join(""),I=new RegExp("["+O+"]","g"),A=new RegExp("["+M+"]","g"),j=new RegExp("["+k+"]","g")},function(e,t,n){"use strict";function r(e){return"target_f_"+e}Object.defineProperty(t,"__esModule",{value:!0});var i=n(85);Object.defineProperty(t,"decodeEntities",{enumerable:!0,get:function(){return i.decodeEntities}});var s=n(84);Object.defineProperty(t,"highlightPunctuation",{enumerable:!0,get:function(){return s.highlightPunctuation}}),Object.defineProperty(t,"highlightEscapes",{enumerable:!0,get:function(){return s.highlightEscapes}}),Object.defineProperty(t,"highlightHtml",{enumerable:!0,get:function(){return s.highlightHtml}}),Object.defineProperty(t,"highlightSymbols",{enumerable:!0,get:function(){return s.highlightSymbols}}),Object.defineProperty(t,"nl2br",{enumerable:!0,get:function(){return s.nl2br}});var o=n(86);Object.defineProperty(t,"normalizeCode",{enumerable:!0,get:function(){return o.normalizeCode}});var a=n(54);Object.defineProperty(t,"escapeUnsafeRegexSymbols",{enumerable:!0,get:function(){return a.escapeUnsafeRegexSymbols}}),Object.defineProperty(t,"makeRegexForMultipleWords",{enumerable:!0,get:function(){return a.makeRegexForMultipleWords}}),t.getAreaId=r},,,function(e,t,n){var r,i,s;/*!
	 * Select2 4.0.3
	 * https://select2.github.io
	 *
	 * Released under the MIT license
	 * https://github.com/select2/select2/blob/master/LICENSE.md
	 */
!function(o){i=[n(3)],r=o,s="function"==typeof r?r.apply(t,i):r,!(void 0!==s&&(e.exports=s))}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var t;return function(){if(!t||!t.requirejs){t?n=t:t={};/**
	 * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
	 * Available via the MIT or new BSD license.
	 * see: http://github.com/jrburke/almond for details
	 */
var e,n,r;!function(t){function i(e,t){return _.call(e,t)}function s(e,t){var n,r,i,s,o,a,l,u,c,d,p,f=t&&t.split("/"),h=y.map,m=h&&h["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),o=e.length-1,y.nodeIdCompat&&E.test(e[o])&&(e[o]=e[o].replace(E,"")),e=f.slice(0,f.length-1).concat(e),c=0;c<e.length;c+=1)if(p=e[c],"."===p)e.splice(c,1),c-=1;else if(".."===p){if(1===c&&(".."===e[2]||".."===e[0]))break;c>0&&(e.splice(c-1,2),c-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((f||m)&&h){for(n=e.split("/"),c=n.length;c>0;c-=1){if(r=n.slice(0,c).join("/"),f)for(d=f.length;d>0;d-=1)if(i=h[f.slice(0,d).join("/")],i&&(i=i[r])){s=i,a=c;break}if(s)break;!l&&m&&m[r]&&(l=m[r],u=c)}!s&&l&&(s=l,a=u),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function o(e,n){return function(){var r=w.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),f.apply(t,r.concat([e,n]))}}function a(e){return function(t){return s(t,e)}}function l(e){return function(t){g[e]=t}}function u(e){if(i(v,e)){var n=v[e];delete v[e],b[e]=!0,p.apply(t,n)}if(!i(g,e)&&!i(b,e))throw new Error("No "+e);return g[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function d(e){return function(){return y&&y.config&&y.config[e]||{}}}var p,f,h,m,g={},v={},y={},b={},_=Object.prototype.hasOwnProperty,w=[].slice,E=/\.js$/;h=function(e,t){var n,r=c(e),i=r[0];return e=r[1],i&&(i=s(i,t),n=u(i)),i?e=n&&n.normalize?n.normalize(e,a(t)):s(e,t):(e=s(e,t),r=c(e),i=r[0],e=r[1],i&&(n=u(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},m={require:function(e){return o(e)},exports:function(e){var t=g[e];return"undefined"!=typeof t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:d(e)}}},p=function(e,n,r,s){var a,c,d,p,f,y,_=[],w=typeof r;if(s=s||e,"undefined"===w||"function"===w){for(n=!n.length&&r.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if(p=h(n[f],s),c=p.f,"require"===c)_[f]=m.require(e);else if("exports"===c)_[f]=m.exports(e),y=!0;else if("module"===c)a=_[f]=m.module(e);else if(i(g,c)||i(v,c)||i(b,c))_[f]=u(c);else{if(!p.p)throw new Error(e+" missing "+c);p.p.load(p.n,o(s,!0),l(c),{}),_[f]=g[c]}d=r?r.apply(g[e],_):void 0,e&&(a&&a.exports!==t&&a.exports!==g[e]?g[e]=a.exports:d===t&&y||(g[e]=d))}else e&&(g[e]=r)},e=n=f=function(e,n,r,i,s){if("string"==typeof e)return m[e]?m[e](n):u(h(e,n).f);if(!e.splice){if(y=e,y.deps&&f(y.deps,y.callback),!n)return;n.splice?(e=n,n=r,r=null):e=t}return n=n||function(){},"function"==typeof r&&(r=i,i=s),i?p(t,e,n,r):setTimeout(function(){p(t,e,n,r)},4),f},f.config=function(e){return f(e)},e._defined=g,r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),i(g,e)||i(v,e)||(v[e]=[e,t,n])},r.amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,n=[];for(var r in t){var i=t[r];"function"==typeof i&&"constructor"!==r&&n.push(r)}return n}var n={};n.Extend=function(e,t){function n(){this.constructor=e}var r={}.hasOwnProperty;for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},n.Decorate=function(e,n){function r(){var t=Array.prototype.unshift,r=n.prototype.constructor.length,i=e.prototype.constructor;r>0&&(t.call(arguments,e.prototype.constructor),i=n.prototype.constructor),i.apply(this,arguments)}function i(){this.constructor=r}var s=t(n),o=t(e);n.displayName=e.displayName,r.prototype=new i;for(var a=0;a<o.length;a++){var l=o[a];r.prototype[l]=e.prototype[l]}for(var u=(function(e){var t=function(){};e in r.prototype&&(t=r.prototype[e]);var i=n.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,t),i.apply(this,arguments)}}),c=0;c<s.length;c++){var d=s[c];r.prototype[d]=u(d)}return r};var r=function(){this.listeners={}};return r.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},r.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},n.Observable=r,n.generateChars=function(e){for(var t="",n=0;n<e;n++){var r=Math.floor(36*Math.random());t+=r.toString(36)}return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var s=n[i];s=s.substring(0,1).toLowerCase()+s.substring(1),s in r||(r[s]={}),i==n.length-1&&(r[s]=e[t]),r=r[s]}delete e[t]}}return e},n.hasScroll=function(t,n){var r=e(n),i=n.style.overflowX,s=n.style.overflowY;return(i!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===i||"scroll"===s||(r.innerHeight()<n.scrollHeight||r.innerWidth()<n.scrollWidth))},n.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var r=e();e.map(n,function(e){r=r.add(e)}),n=r}t.append(n)},n}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,r){this.$element=e,this.data=r,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(t.message);r.append(n(i(t.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)},n.prototype.position=function(e,t){var n=t.find(".select2-results");n.append(e)},n.prototype.sort=function(e){var t=this.options.get("sorter");return t(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current(function(n){var r=e.map(n,function(e){return e.id.toString()}),i=t.$results.find(".select2-results__option[aria-selected]");i.each(function(){var t=e(this),n=e.data(this,"data"),i=""+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(i,r)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:t(e)},r=this.option(n);r.className+=" loading-results",this.$results.prepend(r)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(t){var n=document.createElement("li");n.className="select2-results__option";var r={role:"treeitem","aria-selected":"false"};t.disabled&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==t.id&&delete r["aria-selected"],null!=t._resultId&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(r.role="group",r["aria-label"]=t.text,delete r["aria-selected"]);for(var i in r){var s=r[i];n.setAttribute(i,s)}if(t.children){var o=e(n),a=document.createElement("strong");a.className="select2-results__group";e(a);this.template(t,a);for(var l=[],u=0;u<t.children.length;u++){var c=t.children[u],d=this.option(c);l.push(d)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),o.append(a),o.append(p)}else this.template(t,n);return e.data(n,"data",t),n},n.prototype.bind=function(t,n){var r=this,i=t.id+"-results";this.$results.attr("id",i),t.on("results:all",function(e){r.clear(),r.append(e.data),t.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),t.on("results:append",function(e){r.append(e.data),t.isOpen()&&r.setClasses()}),t.on("query",function(e){r.hideMessages(),r.showLoading(e)}),t.on("select",function(){t.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),t.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),t.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=r.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var i=n-1;0===e.length&&(i=0);var s=t.eq(i);s.trigger("mouseenter");var o=r.$results.offset().top,a=s.offset().top,l=r.$results.scrollTop()+(a-o);0===i?r.$results.scrollTop(0):a-o<0&&r.$results.scrollTop(l)}}),t.on("results:next",function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e),i=n+1;if(!(i>=t.length)){var s=t.eq(i);s.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),a=s.offset().top+s.outerHeight(!1),l=r.$results.scrollTop()+a-o;0===i?r.$results.scrollTop(0):a>o&&r.$results.scrollTop(l)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){r.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,s=e.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):s&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var n=e(this),i=n.data("data");return"true"===n.attr("aria-selected")?void(r.options.get("multiple")?r.trigger("unselect",{originalEvent:t,data:i}):r.trigger("close",{})):void r.trigger("select",{originalEvent:t,data:i})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(t){var n=e(this).data("data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:n,element:e(this)})})},n.prototype.getHighlightedResults=function(){var e=this.$results.find(".select2-results__option--highlighted");return e},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]"),n=t.index(e),r=this.$results.offset().top,i=e.offset().top,s=this.$results.scrollTop()+(i-r),o=i-r;s-=2*e.outerHeight(!1),n<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(s)}},n.prototype.template=function(t,n){var r=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),s=r(t,n);null==s?n.style.display="none":"string"==typeof s?n.innerHTML=i(s):e(n).append(s)},n}),t.define("select2/keys",[],function(){var e={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return e}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},r.prototype.bind=function(e,t){var r=this,i=(e.id+"-container",e.id+"-results");this.container=e,this.$selection.on("focus",function(e){r.trigger("focus",e)}),this.$selection.on("blur",function(e){r._handleBlur(e)}),this.$selection.on("keydown",function(e){r.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){r.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){r.update(e.data)}),e.on("open",function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(e)}),e.on("close",function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.focus(),r._detachCloseHandler(e)}),e.on("enable",function(){r.$selection.attr("tabindex",r._tabindex)}),e.on("disable",function(){r.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var n=e(t.target),r=n.closest(".select2"),i=e(".select2.select2-container--open");i.each(function(){var t=e(this);if(this!=r[0]){var n=t.data("element");n.select2("close")}})})},r.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(e,t){var n=t.find(".selection");n.append(e)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments);var r=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()}),e.on("selection:update",function(e){n.update(e.data)})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0===e.length)return void this.clear();var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r),n.prop("title",t.title||t.text)},i}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function r(e,t){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},r.prototype.bind=function(t,n){var i=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!i.options.get("disabled")){var n=e(this),r=n.parent(),s=r.data("data");i.trigger("unselect",{originalEvent:t,data:s})}})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(e,t))},r.prototype.selectionContainer=function(){var t=e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return t},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],r=0;r<e.length;r++){var i=e[r],s=this.selectionContainer(),o=this.display(i,s);s.append(o),s.prop("title",i.title||i.text),s.data("data",i),t.push(s)}var a=this.$selection.find(".select2-selection__rendered");n.appendMany(a,t)}},r}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id,r=t.length>1;if(r||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function n(){}return n.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},n.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var r=n.data("data"),i=0;i<r.length;i++){var s={data:r[i]};if(this.trigger("unselect",s),s.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(e,n,r){r.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var r=e('<span class="select2-selection__clear">&times;</span>');r.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},n}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function r(e,t,n){e.call(this,t,n)}return r.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var r=t.call(this);return this._transferTabIndex(),r},r.prototype.bind=function(e,t,r){var i=this;e.call(this,t,r),t.on("open",function(){i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented();var t=e.which;if(t===n.BACKSPACE&&""===i.$search.val()){var r=i.$searchContainer.prev(".select2-selection__choice");if(r.length>0){var s=r.data("data");i.searchRemoveChoice(s),e.preventDefault()}}});var s=document.documentMode,o=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){return o?void i.$selection.off("input.search input.searchcheck"):void i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(o&&"input"===e.type)return void i.$selection.off("input.search input.searchcheck");var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&i.handleSearch(e)})},r.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";if(""!==this.$search.attr("placeholder"))e=this.$selection.find(".select2-selection__rendered").innerWidth();else{var t=this.$search.val().length+1;e=.75*t+"em"}this.$search.css("width",e)},r}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,r){var i=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];t.call(this,n,r),n.on("*",function(t,n){if(e.inArray(t,s)!==-1){n=n||{};var r=e.Event("select2:"+t,{params:n});i.$element.trigger(r),e.inArray(t,o)!==-1&&(n.prevented=r.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var r=t(e);n._cache[e]=r}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){var e={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return e}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var r=t.id+"-result-";return r+=e.generateChars(4),r+=null!=n.id?"-"+n.id.toString():"-"+e.generateChars(4)},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,e),r.prototype.current=function(e){var t=[],r=this;this.$element.find(":selected").each(function(){var e=n(this),i=r.item(e);t.push(i)}),e(t)},r.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(r){var i=[];e=[e],e.push.apply(e,r);for(var s=0;s<e.length;s++){var o=e[s].id;n.inArray(o,i)===-1&&i.push(o)}t.$element.val(i),t.$element.trigger("change")});else{var r=e.id;this.$element.val(r),this.$element.trigger("change");
}},r.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple"))return e.selected=!1,n(e.element).is("option")?(e.element.selected=!1,void this.$element.trigger("change")):void this.current(function(r){for(var i=[],s=0;s<r.length;s++){var o=r[s].id;o!==e.id&&n.inArray(o,i)===-1&&i.push(o)}t.$element.val(i),t.$element.trigger("change")})},r.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){n.removeData(this,"data")})},r.prototype.query=function(e,t){var r=[],i=this,s=this.$element.children();s.each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var s=i.item(t),o=i.matches(e,s);null!==o&&r.push(o)}}),t({results:r})},r.prototype.addOptions=function(e){t.appendMany(this.$element,e)},r.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup"),t.label=e.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=e.text:t.innerText=e.text),e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var r=n(t),i=this._normalizeItem(e);return i.element=t,n.data(t,"data",i),r},r.prototype.item=function(e){var t={};if(t=n.data(e[0],"data"),null!=t)return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),i=[],s=0;s<r.length;s++){var o=n(r[s]),a=this.item(o);i.push(a)}t.children=i}return t=this._normalizeItem(t),t.element=e[0],n.data(e[0],"data",t),t},r.prototype._normalizeItem=function(e){n.isPlainObject(e)||(e={id:e,text:e}),e=n.extend({},{text:""},e);var t={selected:!1,disabled:!1};return null!=e.id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},t,e)},r.prototype.matches=function(e,t){var n=this.options.get("matcher");return n(e,t)},r}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function r(e,t){var n=t.get("data")||[];r.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(r,e),r.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),r.__super__.select.call(this,e)},r.prototype.convertToOptions=function(e){function r(e){return function(){return n(this).val()==e.id}}for(var i=this,s=this.$element.find("option"),o=s.map(function(){return i.item(n(this)).id}).get(),a=[],l=0;l<e.length;l++){var u=this._normalizeItem(e[l]);if(n.inArray(u.id,o)>=0){var c=s.filter(r(u)),d=this.item(c),p=n.extend(!0,{},u,d),f=this.option(p);c.replaceWith(f)}else{var h=this.option(u);if(u.children){var m=this.convertToOptions(u.children);t.appendMany(h,m)}a.push(h)}}return a},r}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function r(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,r){var i=n.ajax(e);return i.then(t),i.fail(r),i}};return n.extend({},t,e,!0)},r.prototype.processResults=function(e){return e},r.prototype.query=function(e,t){function r(){var r=s.transport(s,function(r){var s=i.processResults(r,e);i.options.get("debug")&&window.console&&console.error&&(s&&s.results&&n.isArray(s.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(s)},function(){r.status&&"0"===r.status||i.trigger("results:message",{message:"errorLoading"})});i._request=r}var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var s=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof s.url&&(s.url=s.url.call(this.$element,e)),"function"==typeof s.data&&(s.data=s.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},r}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,r){var i=r.get("tags"),s=r.get("createTag");void 0!==s&&(this.createTag=s);var o=r.get("insertTag");if(void 0!==o&&(this.insertTag=o),t.call(this,n,r),e.isArray(i))for(var a=0;a<i.length;a++){var l=i[a],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}return t.prototype.query=function(e,t,n){function r(e,s){for(var o=e.results,a=0;a<o.length;a++){var l=o[a],u=null!=l.children&&!r({results:l.children},!0),c=l.text===t.term;if(c||u)return!s&&(e.data=o,void n(e))}if(s)return!0;var d=i.createTag(t);if(null!=d){var p=i.option(d);p.attr("data-select2-tag",!0),i.addOptions([p]),i.insertTag(o,d)}e.results=o,n(e)}var i=this;return this._removeOldTags(),null==t.term||null!=t.page?void e.call(this,t,n):void e.call(this,t,r)},t.prototype.createTag=function(t,n){var r=e.trim(n.term);return""===r?null:{id:r,text:r}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){var n=(this._lastTag,this.$element.find("option[data-select2-tag]"));n.each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,r){function i(t){var n=o._normalizeItem(t),r=o.$element.find("option").filter(function(){return e(this).val()===n.id});if(!r.length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}s(n)}function s(e){o.trigger("select",{data:e})}var o=this;n.term=n.term||"";var a=this.tokenizer(n,this.options,i);a.term!==n.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.focus()),n.term=a.term),t.call(this,n,r)},t.prototype.tokenizer=function(t,n,r,i){for(var s=r.get("tokenSeparators")||[],o=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<o.length;){var u=o[a];if(e.inArray(u,s)!==-1){var c=o.substr(0,a),d=e.extend({},n,{term:c}),p=l(d);null!=p?(i(p),o=o.substr(a+1)||"",a=0):a++}else a++}return{term:o}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var r=this;this.current(function(i){var s=null!=i?i.length:0;return r.maximumSelectionLength>0&&s>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void e.call(r,t,n)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),r=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=r,this.$search=r.find("input"),n.prepend(r),n},n.prototype.bind=function(t,n,r){var i=this;t.call(this,n,r),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),n.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),n.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),n.on("focus",function(){n.isOpen()&&i.$search.focus()}),n.on("results:all",function(e){if(null==e.query.term||""===e.query.term){var t=i.showSearch(e);t?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide")}})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;r>=0;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,r){var i=this;t.call(this,n,r),n.on("query",function(e){i.lastParams=e,i.loading=!0}),n.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&t){var n=i.$results.offset().top+i.$results.outerHeight(!1),r=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1);n+50>=r&&i.loadMore()}})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,r){this.$dropdownParent=r.get("dropdownParent")||e(document.body),t.call(this,n,r)}return n.prototype.bind=function(e,t,n){var r=this,i=!1;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),i||(i=!0,t.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()}))}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),r=t.call(this);return n.append(r),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,r){var i=this,s="scroll.select2."+r.id,o="resize.select2."+r.id,a="orientationchange.select2."+r.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(s,function(t){var n=e(this).data("select2-scroll-position");e(this).scrollTop(n.y)}),e(window).on(s+" "+o+" "+a,function(e){i._positionDropdown(),i._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,r){var i="scroll.select2."+r.id,s="resize.select2."+r.id,o="orientationchange.select2."+r.id,a=this.$container.parents().filter(t.hasScroll);a.off(i),e(window).off(i+" "+s+" "+o)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),r=this.$dropdown.hasClass("select2-dropdown--below"),i=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=s.top,o.bottom=s.top+o.height;var a={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},u=l.top<s.top-a.height,c=l.bottom>s.bottom+a.height,d={left:s.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var f=p.offset();d.top-=f.top,d.left-=f.left,n||r||(i="below"),c||!u||n?!u&&c&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(d.top=o.top-f.top-a.height),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}function t(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=r.data("data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,n,r,i,s,o,a,l,u,c,d,p,f,h,m,g,v,y,b,_,w,E,x,C,P,S,T,O){function R(){this.reset()}R.prototype.apply=function(d){if(d=e.extend(!0,{},this.defaults,d),null==d.dataAdapter){if(null!=d.ajax?d.dataAdapter=h:null!=d.data?d.dataAdapter=f:d.dataAdapter=p,d.minimumInputLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,b)),d.tags&&(d.dataAdapter=u.Decorate(d.dataAdapter,m)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=u.Decorate(d.dataAdapter,g)),null!=d.query){var O=t(d.amdBase+"compat/query");d.dataAdapter=u.Decorate(d.dataAdapter,O)}if(null!=d.initSelection){var R=t(d.amdBase+"compat/initSelection");d.dataAdapter=u.Decorate(d.dataAdapter,R)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,x)),null!=d.placeholder&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,E)),d.selectOnClose&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,S))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=_;else{var M=u.Decorate(_,w);d.dropdownAdapter=M}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=u.Decorate(d.dropdownAdapter,P)),d.closeOnSelect&&(d.dropdownAdapter=u.Decorate(d.dropdownAdapter,T)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var k=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=u.Decorate(d.dropdownAdapter,k)}d.dropdownAdapter=u.Decorate(d.dropdownAdapter,C)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=i:d.selectionAdapter=r,null!=d.placeholder&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,s)),d.allowClear&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,o)),d.multiple&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,a)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var I=t(d.amdBase+"compat/containerCss");d.selectionAdapter=u.Decorate(d.selectionAdapter,I)}d.selectionAdapter=u.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var A=d.language.split("-"),j=A[0];d.language=[d.language,j]}else d.language=[d.language];if(e.isArray(d.language)){var N=new c;d.language.push("en");for(var L=d.language,$=0;$<L.length;$++){var D=L[$],F={};try{F=c.loadPath(D)}catch(e){try{D=this.defaults.amdLanguageBase+D,F=c.loadPath(D)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+D+'" could not be automatically loaded. A fallback will be used instead.');continue}}N.extend(F)}d.translations=N}else{var U=c.loadPath(this.defaults.amdLanguageBase+"en"),q=new c(d.language);q.extend(U),d.translations=q}return d},R.prototype.reset=function(){function t(e){function t(e){return d[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function n(r,i){if(""===e.trim(r.term))return i;if(i.children&&i.children.length>0){for(var s=e.extend(!0,{},i),o=i.children.length-1;o>=0;o--){var a=i.children[o],l=n(r,a);null==l&&s.children.splice(o,1)}return s.children.length>0?s:n(r,s)}var u=t(i.text).toUpperCase(),c=t(r.term).toUpperCase();return u.indexOf(c)>-1?i:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:O,matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},R.prototype.set=function(t,n){var r=e.camelCase(t),i={};i[r]=n;var s=u._convertData(i);e.extend(this.defaults,s)};var M=new R;return M}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,r){function i(t,i){if(this.options=t,null!=i&&this.fromElement(i),this.options=n.apply(this.options),i&&i.is("input")){var s=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,s)}}return i.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var i={};i=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var s=t.extend(!0,{},i);s=r._convertData(s);for(var o in s)t.inArray(o,n)>-1||(t.isPlainObject(this.options[o])?t.extend(this.options[o],s[o]):this.options[o]=s[o]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,r){var i=function(e,n){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),i.__super__.constructor.call(this);var r=e.attr("tabindex")||0;e.data("old-tabindex",r),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var o=this.render();this._placeContainer(o);var a=this.options.get("selectionAdapter");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var c=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){c.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},i.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},i.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==t){var s=e.attr("style");if("string"!=typeof s)return null;for(var o=s.split(";"),a=0,l=o.length;a<l;a+=1){var u=o[a].replace(/\s/g,""),c=u.match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},i.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},i.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(r,i){e.inArray(r,n)===-1&&t.trigger(r,i)})},i.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},i.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},i.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===r.ESC||n===r.TAB||n===r.UP&&t.altKey?(e.close(),t.preventDefault()):n===r.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===r.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===r.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===r.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype._syncSubtree=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var i=0;i<t.addedNodes.length;i++){var s=t.addedNodes[i];s.selected&&(n=!0)}else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})}},i.prototype.trigger=function(e,t){var n=i.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in r){var s=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,s,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},i.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.trigger("query",{})},i.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},i.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),
t.data("element",this.$element),t},i}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,r){if(null==e.fn.select2){var i=["open","close","destroy"];e.fn.select2=function(t){if(t=t||{},"object"==typeof t)return this.each(function(){var r=e.extend(!0,{},t);new n(e(this),r)}),this;if("string"==typeof t){var r,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=n[t].apply(n,s)}),e.inArray(t,i)>-1?this:r}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=r),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n})},function(e,t){!function(e){var t,n,r,i,s,o,a,l="Close",u="BeforeClose",c="AfterClose",d="BeforeAppend",p="MarkupParse",f="Open",h="Change",m="mfp",g="."+m,v="mfp-ready",y="mfp-removing",b="mfp-prevent-close",_=function(){},w=!!window.jQuery,E=e(window),x=function(e,n){t.ev.on(m+e+g,n)},C=function(t,n,r,i){var s=document.createElement("div");return s.className="mfp-"+t,r&&(s.innerHTML=r),i?n&&n.appendChild(s):(s=e(s),n&&s.appendTo(n)),s},P=function(n,r){t.ev.triggerHandler(m+n,r),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(r)?r:[r]))},S=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},T=function(){e.magnificPopup.instance||(t=new _,t.init(),e.magnificPopup.instance=t)},O=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};_.prototype={constructor:_,init:function(){var n=navigator.appVersion;t.isIE7=n.indexOf("MSIE 7.")!==-1,t.isIE8=n.indexOf("MSIE 8.")!==-1,t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=O(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){r||(r=e(document.body));var s;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var a,l=n.items;for(s=0;s<l.length;s++)if(a=l[s],a.parsed&&(a=a.el[0]),a===n.el[0]){t.index=s;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],o="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=C("bg").on("click"+g,function(){t.close()}),t.wrap=C("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=C("container",t.wrap)),t.contentContainer=C("content"),t.st.preloader&&(t.preloader=C("preloader",t.container,t.st.tLoading));var u=e.magnificPopup.modules;for(s=0;s<u.length;s++){var c=u[s];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}P("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(p,function(e,t,n,r){n.close_replaceWith=S(r.type)}),o+=" mfp-close-btn-in"):t.wrap.append(S())),t.st.alignTop&&(o+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:E.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),E.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&t.wrap.addClass(o);var d=t.wH=E.height(),h={};if(t.fixedContentPos&&t._hasScrollBar(d)){var m=t._getScrollbarSize();m&&(h.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):h.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),P("BuildControls"),e("html").css(h),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||r),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),i.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),P(f),n},close:function(){t.isOpen&&(P(u),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(y),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){P(l);var n=y+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var r={marginRight:""};t.isIE7?e("body, html").css("overflow",""):r.overflow="",e("html").css(r)}i.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,P(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*n;t.wrap.css("height",r),t.wH=r}else t.wH=e||E.height();t.fixedContentPos||t.wrap.css("height",t.wH),P("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var r=n.type;if(P("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=n,!t.currTemplate[r]){var i=!!t.st[r]&&t.st[r].markup;P("FirstMarkupParse",i),i?t.currTemplate[r]=e(i):t.currTemplate[r]=!0}s&&s!==n.type&&t.container.removeClass("mfp-"+s+"-holder");var o=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](n,t.currTemplate[r]);t.appendContent(o,r),n.preloaded=!0,P(h,n),s=n.type,t.container.prepend(t.contentContainer),P("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(S()):t.content=e:t.content="",P(d),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var r,i=t.items[n];if(i.tagName?i={el:e(i)}:(r=i.type,i={data:i,src:i.src}),i.el){for(var s=t.types,o=0;o<s.length;o++)if(i.el.hasClass("mfp-"+s[o])){r=s[o];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=r||t.st.type||"inline",i.index=n,i.parsed=!0,t.items[n]=i,P("ElementParse",i),t.items[n]},addGroup:function(e,n){var r=function(r){r.mfpEl=this,t._openClick(r,e,n)};n||(n={});var i="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(i).on(i,r)):(n.isObj=!1,n.delegate?e.off(i).on(i,n.delegate,r):(n.items=e,e.off(i).on(i,r)))},_openClick:function(n,r,i){var s=void 0!==i.midClick?i.midClick:e.magnificPopup.defaults.midClick;if(s||2!==n.which&&!n.ctrlKey&&!n.metaKey){var o=void 0!==i.disableOn?i.disableOn:e.magnificPopup.defaults.disableOn;if(o)if(e.isFunction(o)){if(!o.call(t))return!0}else if(E.width()<o)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),i.el=e(n.mfpEl),i.delegate&&(i.items=r.find(i.delegate)),t.open(i)}},updateStatus:function(e,r){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),r||"loading"!==e||(r=t.st.tLoading);var i={status:e,text:r};P("UpdateStatus",i),e=i.status,r=i.text,t.preloader.html(r),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(b)){var r=t.st.closeOnContentClick,i=t.st.closeOnBgClick;if(r&&i)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(r)return!0}else if(i&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||E.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,r){var i;r.data&&(n=e.extend(r.data,n)),P(p,[t,n,r]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(i=e.split("_"),i.length>1){var r=t.find(g+"-"+i[0]);if(r.length>0){var s=i[1];"replaceWith"===s?r[0]!==n[0]&&r.replaceWith(n):"img"===s?r.is("img")?r.attr("src",n):r.replaceWith('<img src="'+n+'" class="'+r.attr("class")+'" />'):r.attr(i[1],n)}}else t.find(g+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.id="mfp-sbm",e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:_.prototype,modules:[],open:function(t,n){return T(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){T();var r=e(this);if("string"==typeof n)if("open"===n){var i,s=w?r.data("magnificPopup"):r[0].magnificPopup,o=parseInt(arguments[1],10)||0;s.items?i=s.items[o]:(i=r,s.delegate&&(i=i.find(s.delegate)),i=i.eq(o)),t._openClick({mfpEl:i},r,s)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?r.data("magnificPopup",n):r[0].magnificPopup=n,t.addGroup(r,n);return r};var R,M,k,I="inline",A=function(){k&&(M.after(k.addClass(R)).detach(),k=null)};e.magnificPopup.registerModule(I,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(I),x(l+"."+I,function(){A()})},getInline:function(n,r){if(A(),n.src){var i=t.st.inline,s=e(n.src);if(s.length){var o=s[0].parentNode;o&&o.tagName&&(M||(R=i.hiddenClass,M=C(R),R="mfp-"+R),k=s.after(M).detach().removeClass(R)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),s=e("<div>");return n.inlineElement=s,s}return t.updateStatus("ready"),t._parseMarkup(r,{},n),r}}});var j,N="ajax",L=function(){j&&r.removeClass(j)},$=function(){L(),t.req&&t.req.abort()};e.magnificPopup.registerModule(N,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(N),j=t.st.ajax.cursor,x(l+"."+N,$),x("BeforeChange."+N,$)},getAjax:function(n){j&&r.addClass(j),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(r,i,s){var o={data:r,xhr:s};P("ParseAjax",o),t.appendContent(e(o.data),N),n.finished=!0,L(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),P("AjaxContentAdded")},error:function(){L(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var D,F=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var r=t.st.image.titleSrc;if(r){if(e.isFunction(r))return r.call(t,n);if(n.el)return n.el.attr(r)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=t.st.image,n=".image";t.types.push("image"),x(f+n,function(){"image"===t.currItem.type&&e.cursor&&r.addClass(e.cursor)}),x(l+n,function(){e.cursor&&r.removeClass(e.cursor),E.off("resize"+g)}),x("Resize"+n,t.resizeImage),t.isLowIE&&x("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,D&&clearInterval(D),e.isCheckingImgSize=!1,P("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,r=e.img[0],i=function(s){D&&clearInterval(D),D=setInterval(function(){return r.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(D),n++,void(3===n?i(10):40===n?i(50):100===n&&i(500)))},s)};i(1)},getImage:function(n,r){var i=0,s=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,P("ImageLoadComplete")):(i++,i<200?setTimeout(s,100):o()))},o=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",a.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},a=t.st.image,l=r.find(".mfp-img");if(l.length){var u=document.createElement("img");u.className="mfp-img",n.img=e(u).on("load.mfploader",s).on("error.mfploader",o),u.src=n.src,l.is("img")&&(n.img=n.img.clone()),u=n.img[0],u.naturalWidth>0?n.hasSize=!0:u.width||(n.hasSize=!1)}return t._parseMarkup(r,{title:F(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(D&&clearInterval(D),n.loadError?(r.addClass("mfp-loading"),t.updateStatus("error",a.tError.replace("%url%",n.src))):(r.removeClass("mfp-loading"),t.updateStatus("ready")),r):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,r.addClass("mfp-loading"),t.findImageSize(n)),r)}}});var U,q=function(){return void 0===U&&(U=void 0!==document.createElement("p").style.MozTransform),U};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,r=".zoom";if(n.enabled&&t.supportsTransition){var i,s,o=n.duration,a=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),r="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return i["-webkit-"+s]=i["-moz-"+s]=i["-o-"+s]=i[s]=r,t.css(i),t},c=function(){t.content.css("visibility","visible")};x("BuildControls"+r,function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void c();s=a(e),s.css(t._getOffset()),t.wrap.append(s),i=setTimeout(function(){s.css(t._getOffset(!0)),i=setTimeout(function(){c(),setTimeout(function(){s.remove(),e=s=null,P("ZoomAnimationEnded")},16)},o)},16)}}),x(u+r,function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=o,!e){if(e=t._getItemToZoom(),!e)return;s=a(e)}s.css(t._getOffset(!0)),t.wrap.append(s),t.content.css("visibility","hidden"),setTimeout(function(){s.css(t._getOffset())},16)}}),x(l+r,function(){t._allowZoom()&&(c(),s&&s.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var r;r=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var i=r.offset(),s=parseInt(r.css("padding-top"),10),o=parseInt(r.css("padding-bottom"),10);i.top-=e(window).scrollTop()-s;var a={width:r.width(),height:(w?r.innerHeight():r[0].offsetHeight)-o-s};return q()?a["-moz-transform"]=a.transform="translate("+i.left+"px,"+i.top+"px)":(a.left=i.left,a.top=i.top),a}}});var z="iframe",B="//about:blank",W=function(e){if(t.currTemplate[z]){var n=t.currTemplate[z].find("iframe");n.length&&(e||(n[0].src=B),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(z,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(z),x("BeforeChange",function(e,t,n){t!==n&&(t===z?W():n===z&&W(!0))}),x(l+"."+z,function(){W()})},getIframe:function(n,r){var i=n.src,s=t.st.iframe;e.each(s.patterns,function(){if(i.indexOf(this.index)>-1)return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1});var o={};return s.srcAction&&(o[s.srcAction]=i),t._parseMarkup(r,o,n),t.updateStatus("ready"),r}}});var H=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},V=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,r=".mfp-gallery",s=Boolean(e.fn.mfpFastClick);return t.direction=!0,!(!n||!n.enabled)&&(o+=" mfp-gallery",x(f+r,function(){n.navigateByImgClick&&t.wrap.on("click"+r,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+r,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),x("UpdateStatus"+r,function(e,n){n.text&&(n.text=V(n.text,t.currItem.index,t.items.length))}),x(p+r,function(e,r,i,s){var o=t.items.length;i.counter=o>1?V(n.tCounter,s.index,o):""}),x("BuildControls"+r,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var r=n.arrowMarkup,i=t.arrowLeft=e(r.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(b),o=t.arrowRight=e(r.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(b),a=s?"mfpFastClick":"click";i[a](function(){t.prev()}),o[a](function(){t.next()}),t.isIE7&&(C("b",i[0],!1,!0),C("a",i[0],!1,!0),C("b",o[0],!1,!0),C("a",o[0],!1,!0)),t.container.append(i.add(o))}}),x(h+r,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void x(l+r,function(){i.off(r),t.wrap.off("click"+r),t.arrowLeft&&s&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=H(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=H(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,r=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=H(n),!t.items[n].preloaded){var r=t.items[n];r.parsed||(r=t.parseEl(n)),P("LazyLoad",r),"image"===r.type&&(r.img=e('<img class="mfp-img" />').on("load.mfploader",function(){r.hasSize=!0}).on("error.mfploader",function(){r.hasSize=!0,r.loadError=!0,P("LazyLoadError",r)}).attr("src",r.src)),r.preloaded=!0}}}});var K="retina";e.magnificPopup.registerModule(K,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(x("ImageHasSize."+K,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),x("ElementParse."+K,function(t,r){r.src=e.replaceSrc(r,n)}))}}}}),T()}(window.jQuery||window.Zepto)},function(e,t){/*!
	 * jQuery serializeObject - v0.2 - 1/20/2010
	 * http://benalman.com/projects/jquery-misc-plugins/
	 * 
	 * Copyright (c) 2010 "Cowboy" Ben Alman
	 * Dual licensed under the MIT and GPL licenses.
	 * http://benalman.com/about/license/
	 */
!function(e,t){"$:nomunge";e.fn.serializeObject=function(){var n={};return e.each(this.serializeArray(),function(r,i){var s=i.name,o=i.value;n[s]=n[s]===t?o:e.isArray(n[s])?n[s].concat(o):[n[s],o]}),n}}(jQuery)},function(e,t){"use strict";function n(e){return e.replace(/[!$&(-+\-.:<-?\[-^{-}]/g,"\\$&")}function r(e){return e.replace(/\$/g,"$$$$")}function i(e){return["(",n(e).trim().replace(/ +/g,"|"),")"].join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUnsafeRegexSymbols=n,t.escapeRegexReplacementSymbols=r,t.makeRegexForMultipleWords=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(15),s=r(i),o=n(6),a=r(o),l=s.default.Model.extend({defaults:{text:"",level:"info",language:"en"}}),u=s.default.Collection.extend({model:l}),c=s.default.View.extend({className:"alert alert-block",render:function(){return this.$el.addClass(["alert",this.model.get("level")].join("-")),this.$el.attr("lang",this.model.get("language")),this.$el.html(this.model.get("text")).hide().fadeIn(300),this}}),d=s.default.View.extend({el:".js-alerts",initialize:function(){this.subViews=[],this.listenTo(this.collection,"add",this.add),this.listenTo(this.collection,"remove",this.remove)},add:function(e){var t=new c({model:e});this.subViews.push(t),this.$el.prepend(t.render().el)},remove:function(e){var t=a.default.find(this.subViews,function(t){return t.model===e});this.subViews=(0,a.default)(this.subViews).without(t),t.$el.fadeOut(3500,function(){t.remove()})}}),p=new u,f=void 0,h={show:function(e){f||(f=new d({collection:p}));var t=new l(e);p.add(t),window.setTimeout(function(){p.remove(t)},2e3)}};t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.FormValidationMixin=void 0;var i=n(1),s=r(i),o=t.FormValidationMixin={getInitialState:function(){return{errors:{}}},clearValidation:function(){this.setState({errors:{}})},validateResponse:function(e){var t=JSON.parse(e.responseText);this.setState({errors:t.errors})},renderSingleError:function(e,t){return s.default.createElement("li",{key:t},e)},renderAllFormErrors:function(){var e=this.state.errors;return e.hasOwnProperty("__all__")?s.default.createElement("ul",{className:"errorlist errorlist-all"},e.__all__.map(this.renderSingleError)):null}};t.default=o},,,,function(e,t,n){var r;!function(i,s,o){function a(e,t,n){return e.addEventListener?void e.addEventListener(t,n,!1):void e.attachEvent("on"+t,n)}function l(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return w[e.which]?w[e.which]:E[e.which]?E[e.which]:String.fromCharCode(e.which).toLowerCase()}function u(e,t){return e.sort().join(",")===t.sort().join(",")}function c(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}function d(e){return e.preventDefault?void e.preventDefault():void(e.returnValue=!1)}function p(e){return e.stopPropagation?void e.stopPropagation():void(e.cancelBubble=!0)}function f(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function h(){if(!_){_={};for(var e in w)e>95&&e<112||w.hasOwnProperty(e)&&(_[w[e]]=e)}return _}function m(e,t,n){return n||(n=h()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function g(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus"),e.split("+"))}function v(e,t){var n,r,i,s=[];for(n=g(e),i=0;i<n.length;++i)r=n[i],C[r]&&(r=C[r]),t&&"keypress"!=t&&x[r]&&(r=x[r],s.push("shift")),f(r)&&s.push(r);return t=m(r,s,t),{key:r,modifiers:s,action:t}}function y(e,t){return null!==e&&e!==s&&(e===t||y(e.parentNode,t))}function b(e){function t(e){e=e||{};var t,n=!1;for(t in _)e[t]?n=!0:_[t]=0;n||(x=!1)}function n(e,t,n,r,i,s){var o,a,l=[],c=n.type;if(!g._callbacks[e])return[];for("keyup"==c&&f(e)&&(t=[e]),o=0;o<g._callbacks[e].length;++o)if(a=g._callbacks[e][o],(r||!a.seq||_[a.seq]==a.level)&&c==a.action&&("keypress"==c&&!n.metaKey&&!n.ctrlKey||u(t,a.modifiers))){var d=!r&&a.combo==i,p=r&&a.seq==r&&a.level==s;(d||p)&&g._callbacks[e].splice(o,1),l.push(a)}return l}function r(e,t,n,r){g.stopCallback(t,t.target||t.srcElement,n,r)||e(t,n)===!1&&(d(t),p(t))}function i(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t=l(e);if(t)return"keyup"==e.type&&w===t?void(w=!1):void g.handleKey(t,c(e),e)}function o(){clearTimeout(y),y=setTimeout(t,1e3)}function h(e,n,i,s){function a(t){return function(){x=t,++_[e],o()}}function u(n){r(i,n,e),"keyup"!==s&&(w=l(n)),setTimeout(t,10)}_[e]=0;for(var c=0;c<n.length;++c){var d=c+1===n.length,p=d?u:a(s||v(n[c+1]).action);m(n[c],p,s,e,c)}}function m(e,t,r,i,s){g._directMap[e+":"+r]=t,e=e.replace(/\s+/g," ");var o,a=e.split(" ");return a.length>1?void h(e,a,t,r):(o=v(e,r),g._callbacks[o.key]=g._callbacks[o.key]||[],n(o.key,o.modifiers,{type:o.action},i,e,s),void g._callbacks[o.key][i?"unshift":"push"]({callback:t,modifiers:o.modifiers,action:o.action,seq:i,level:s,combo:e}))}var g=this;if(e=e||s,!(g instanceof b))return new b(e);g.target=e,g._callbacks={},g._directMap={};var y,_={},w=!1,E=!1,x=!1;g._handleKey=function(e,i,s){var o,a=n(e,i,s),l={},u=0,c=!1;for(o=0;o<a.length;++o)a[o].seq&&(u=Math.max(u,a[o].level));for(o=0;o<a.length;++o)if(a[o].seq){if(a[o].level!=u)continue;c=!0,l[a[o].seq]=1,r(a[o].callback,s,a[o].combo,a[o].seq)}else c||r(a[o].callback,s,a[o].combo);var d="keypress"==s.type&&E;s.type!=x||f(e)||d||t(l),E=c&&"keydown"==s.type},g._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)m(e[r],t,n)},a(e,"keypress",i),a(e,"keydown",i),a(e,"keyup",i)}if(i){for(var _,w={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},E={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},x={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},C={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},P=1;P<20;++P)w[111+P]="f"+P;for(P=0;P<=9;++P)w[P+96]=P.toString();b.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},b.prototype.unbind=function(e,t){var n=this;return n.bind.call(n,e,function(){},t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){var n=this;return!((" "+t.className+" ").indexOf(" mousetrap ")>-1)&&(!y(t,n.target)&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable))},b.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(w[t]=e[t]);_=null},b.init=function(){var e=b(s);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),i.Mousetrap=b,"undefined"!=typeof e&&e.exports&&(e.exports=b),r=function(){return b}.call(t,n,t,e),!(r!==o&&(e.exports=r))}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=n(26),l=r(a),u=s.default.createClass({displayName:"AuthProgress",propTypes:{msg:s.default.PropTypes.string.isRequired},mixins:[o.PureRenderMixin],render:function(){var e={textAlign:"center"};return s.default.createElement(l.default,null,s.default.createElement("p",{style:e},this.props.msg))}});t.default=u},,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){e.length===e.filter(":checked").length?t.prop("disabled",!1):t.prop("disabled",!0)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),o=r(s),a={fixSidebarHeight:function(){var e=(0,o.default)("#body"),t=e.height(),n=parseInt(e.css("padding-bottom"),10),r=(0,o.default)("#wrapper").height()-e.offset().top-n;(0,o.default)("#sidebar").css("width","30%");var i=(0,o.default)("#sidebar #sidebar-content").height()+(0,o.default)("#footer").height()+n,s=Math.max(r,i);(0,o.default)("#sidebar").css("width",""),t<s&&e.css("height",s)},updateInputState:function(e,t){var n=(0,o.default)(e);if(n.length){var r=(0,o.default)(t);i(n,r),n.change(function(){i(n,r)})}}};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ModalFooter=t.ModalHeader=void 0;var i=n(1),s=r(i),o=n(89),a=r(o),l=n(90),u=r(l),c=t.ModalHeader=function(e){var t=e.children;return s.default.createElement("div",{className:"lightbox-header"},t)};c.propTypes={children:s.default.PropTypes.node.isRequired};var d=t.ModalFooter=function(e){var t=e.children;return s.default.createElement("div",{className:"lightbox-footer"},t)};d.propTypes={children:s.default.PropTypes.node.isRequired};var p=s.default.createClass({displayName:"Modal",propTypes:{children:s.default.PropTypes.node.isRequired,title:s.default.PropTypes.string,showClose:s.default.PropTypes.bool,onClose:s.default.PropTypes.func.isRequired,header:s.default.PropTypes.func,footer:s.default.PropTypes.func},getDefaultProps:function(){return{title:"",showClose:!0}},handleClose:function(){this.props.onClose()},renderHeader:function(){if(this.props.header)return s.default.createElement(c,null,this.props.header());var e=this.props.title&&s.default.createElement("h3",{className:"lightbox-title"},this.props.title),t=this.props.showClose&&s.default.createElement("button",{className:"lightbox-close",onClick:this.handleClose},"×");return s.default.createElement(c,null,e,t)},renderFooter:function(){return this.props.footer?s.default.createElement(d,null,this.props.footer()):null},renderLayer:function(){return s.default.createElement(u.default,this.props,this.renderHeader(),s.default.createElement("div",{className:"lightbox-content"},this.props.children),this.renderFooter())},render:function(){return s.default.createElement(a.default,null,this.renderLayer())}});t.default=p},,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var i=n(177),s=r(i),o=n(369),a=r(o),l=n(368),u=r(l),c=n(367),d=r(c),p=n(176),f=r(p),h=n(178);r(h);t.createStore=s.default,t.combineReducers=a.default,t.bindActionCreators=u.default,t.applyMiddleware=d.default,t.compose=f.default},function(e,t,n){var r=n(80);!function(e){e.fn.spin=function(t){return this.each(function(){var n=e(this),i=n.data();i.spinner&&(i.spinner.stop(),delete i.spinner),t!==!1&&(i.spinner=new r(e.extend({color:n.css("color")},t)).spin(this))}),this}}(jQuery)},function(e,t,n){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e,t){var n,r=document.createElement(e||"div");for(n in t)r[n]=t[n];return r}function t(e){for(var t=1,n=arguments.length;t<n;t++)e.appendChild(arguments[t]);return e}function n(e,t,n,r){var i=["opacity",t,~~(100*e),n,r].join("-"),s=.01+n/r*100,o=Math.max(1-(1-e)/t*(100-s),e),a=c.substring(0,c.indexOf("Animation")).toLowerCase(),l=a&&"-"+a+"-"||"";return p[i]||(f.insertRule("@"+l+"keyframes "+i+"{0%{opacity:"+o+"}"+s+"%{opacity:"+e+"}"+(s+.01)+"%{opacity:1}"+(s+t)%100+"%{opacity:"+e+"}100%{opacity:"+o+"}}",f.cssRules.length),p[i]=1),i}function r(e,t){var n,r,i=e.style;for(t=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<d.length;r++)if(n=d[r]+t,void 0!==i[n])return n;if(void 0!==i[t])return t}function i(e,t){for(var n in t)e.style[r(e,n)||n]=t[n];return e}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)void 0===e[r]&&(e[r]=n[r])}return e}function o(e){for(var t={x:e.offsetLeft,y:e.offsetTop};e=e.offsetParent;)t.x+=e.offsetLeft,t.y+=e.offsetTop;return t}function a(e,t){return"string"==typeof e?e:e[t%e.length]}function l(e){return"undefined"==typeof this?new l(e):void(this.opts=s(e||{},l.defaults,h))}function u(){function n(t,n){return e("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',n)}f.addRule(".spin-vml","behavior:url(#default#VML)"),l.prototype.lines=function(e,r){function s(){return i(n("group",{coordsize:c+" "+c,coordorigin:-u+" "+-u}),{width:c,height:c})}function o(e,o,l){t(p,t(i(s(),{rotation:360/r.lines*e+"deg",left:~~o}),t(i(n("roundrect",{arcsize:r.corners}),{width:u,height:r.width,left:r.radius,top:-r.width>>1,filter:l}),n("fill",{color:a(r.color,e),opacity:r.opacity}),n("stroke",{opacity:0}))))}var l,u=r.length+r.width,c=2*u,d=2*-(r.width+r.length)+"px",p=i(s(),{position:"absolute",top:d,left:d});if(r.shadow)for(l=1;l<=r.lines;l++)o(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=r.lines;l++)o(l);return t(e,p)},l.prototype.opacity=function(e,t,n,r){var i=e.firstChild;r=r.shadow&&r.lines||0,i&&t+r<i.childNodes.length&&(i=i.childNodes[t+r],i=i&&i.firstChild,i=i&&i.firstChild,i&&(i.opacity=n))}}var c,d=["webkit","Moz","ms","O"],p={},f=function(){var n=e("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),h={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"};l.defaults={},s(l.prototype,{spin:function(t){this.stop();var n,r,s=this,a=s.opts,l=s.el=i(e(0,{className:a.className}),{position:a.position,width:0,zIndex:a.zIndex}),u=a.radius+a.length+a.width;if(t&&(t.insertBefore(l,t.firstChild||null),r=o(t),n=o(l),i(l,{left:("auto"==a.left?r.x-n.x+(t.offsetWidth>>1):parseInt(a.left,10)+u)+"px",top:("auto"==a.top?r.y-n.y+(t.offsetHeight>>1):parseInt(a.top,10)+u)+"px"})),l.setAttribute("role","progressbar"),s.lines(l,s.opts),!c){var d,p=0,f=(a.lines-1)*(1-a.direction)/2,h=a.fps,m=h/a.speed,g=(1-a.opacity)/(m*a.trail/100),v=m/a.lines;!function e(){p++;for(var t=0;t<a.lines;t++)d=Math.max(1-(p+(a.lines-t)*v)%m*g,a.opacity),s.opacity(l,t*a.direction+f,d,a);s.timeout=s.el&&setTimeout(e,~~(1e3/h))}()}return s},stop:function(){var e=this.el;return e&&(clearTimeout(this.timeout),e.parentNode&&e.parentNode.removeChild(e),this.el=void 0),this},lines:function(r,s){function o(t,n){return i(e(),{position:"absolute",width:s.length+s.width+"px",height:s.width+"px",background:t,boxShadow:n,transformOrigin:"left",transform:"rotate("+~~(360/s.lines*u+s.rotate)+"deg) translate("+s.radius+"px,0)",borderRadius:(s.corners*s.width>>1)+"px"})}for(var l,u=0,d=(s.lines-1)*(1-s.direction)/2;u<s.lines;u++)l=i(e(),{position:"absolute",top:1+~(s.width/2)+"px",transform:s.hwaccel?"translate3d(0,0,0)":"",opacity:s.opacity,animation:c&&n(s.opacity,s.trail,d+u*s.direction,s.lines)+" "+1/s.speed+"s linear infinite"}),s.shadow&&t(l,i(o("#000","0 0 4px #000"),{top:"2px"})),t(r,t(l,o(a(s.color,u),"0 0 1px rgba(0,0,0,.1)")));return r},opacity:function(e,t,n){t<e.childNodes.length&&(e.childNodes[t].style.opacity=n)}});var m=i(e("group"),{behavior:"url(#default#VML)"});return!r(m,"transform")&&m.adj?u():c=r(m,"animation"),l})},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){402===e.status?o(e.responseText):p.default.executeFunctionByName(t,window,e)}function s(e){e.preventDefault();var t=(0,l.default)(this),n=(0,c.default)(PTL.captcha.postData,t.serializeObject()),r=n.sfn,s=n.efn,o=t.attr("action");l.default.ajax({url:o,type:"POST",data:n,success:function(){p.default.executeFunctionByName(r,window,e),l.default.magnificPopup.close()},error:function(e){i(e,s)}})}function o(e){(0,l.default)(document).off("submit","#js-captcha"),(0,l.default)(document).on("submit","#js-captcha",s),l.default.magnificPopup.open({items:{src:e,type:"inline"},focus:"#id_captcha_answer"})}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),l=r(a);n(52),n(53);var u=n(7),c=r(u),d=n(21),p=r(d);t.default={onError:i,postData:{}}},function(e,t,n){"use strict";function r(e){function t(e){return'<span class="highlight-punctuation '+n+'">'+e+"</span>"}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.replace(c,t)}function i(e){function t(e){var t={"\\r":r.replace(/%s/,"\\r"),"\\n":r.replace(/%s/,"\\n"),"\\t":r.replace(/%s/,"\\t")};return t[e]}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r='<span class="highlight-escape '+n+'">%s</span>';return e.replace(d,t)}function s(e){return e.replace(p,"$&<br/>")}function o(e){function t(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;"},n=t[e];if(void 0===n){var i=e.slice(1,e.length-1);n=r.replace(/%s/,(0,u.escapeRegexReplacementSymbols)(o(i)))}return n}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r='<span class="highlight-html '+n+'">&lt;%s&gt;</span>';return e.replace(f,t)}function a(e){function t(e){var t=l.BASE_MAP_REVERSE_HL[e].charCodeAt().toString(16),r="0".repeat(4-t.length),i="\\u"+r+t.toUpperCase();return'<span class="'+n+'" data-codepoint="'+i+'">'+e+"</span>"}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.replace(l.RE_BASE_REVERSE,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.highlightPunctuation=r,t.highlightEscapes=i,t.nl2br=s,t.highlightHtml=o,t.highlightSymbols=a;var l=n(47),u=n(54),c=/[™©®]|[℃℉°]|[±πθ×÷−√∞∆Σ′″]|[‘’ʼ‚‛“”„‟]|[«»]|[£¥€]|…|—|–|[ ]/g,d=/\\r|\\n|\\t/gm,p=/\r\n|[\r\n]/gm,f=/<[^>]+>|[&<>]/gm},function(e,t){"use strict";function n(e){var t=document.createElement("textarea");return t.innerHTML=e,t.textContent}Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEntities=n},function(e,t){"use strict";function n(e){if(!e)return e;var t=e.indexOf("@"),n=e.replace("_","-");return t!==-1&&(n=n.slice(0,t)),n}Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeCode=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),s=r(i),o=n(60),a=r(o),l=n(7),u=r(l),c=n(28),d=r(c),p="pootle-search",f={init:function(e){var t=this,n=this;this.state={searchText:"",searchFields:["source","target"],searchOptions:[]},this.$form=(0,s.default)("#search-form"),this.$container=(0,s.default)(".js-search-container"),this.$fields=(0,s.default)(".js-search-fields"),this.$options=(0,s.default)(".js-search-options"),this.$input=(0,s.default)("#id_search"),this.settings=(0,u.default)({onSearch:this.onSearch},e),(0,a.default)(document.body).bind("mod+shift+s",function(e){e.preventDefault(),t.$input.focus()}),(0,a.default)(this.$form[0]).bind("esc",function(e){e.preventDefault(),t.$form.hasClass("focused")&&(t.$input.blur(),t.toggleFields(e))}),this.$input.mouseup(function(e){e.preventDefault()}).focus(function(){t.$input.select(),t.$form.addClass("focused")}).blur(function(){""===t.$input.val()&&t.$input.val(t.state.searchText),t.$form.removeClass("focused")}),this.$input.click(function(e){f.isOpen()||t.toggleFields(e)}),this.$input.on("keypress",function(e){13===e.which&&t.$form.trigger("submit")}),this.$form.on("submit",this.handleSearch.bind(this)),(0,s.default)(document).mouseup(function(e){t.isOpen()&&e.target!==n.$input.get(0)&&!t.$container.find(e.target).length&&t.toggleFields(e)})},setState:function(e){this.state=(0,u.default)({},this.state,e),this.updateUI()},toggleFields:function(e){e.preventDefault(),this.$container.toggle()},isOpen:function(){return this.$container.is(":visible")},buildSearchQuery:function(){var e=this.state,t=e.searchText,n=e.searchFields,r=e.searchOptions,i=encodeURIComponent(t);if(n.length&&(i+="&sfields="+n.join(",")),r.length&&(i+="&soptions="+r.join(",")),n.length||r.length){var s={};n.length&&(s.sfields=n),r.length&&(s.soptions=r),(0,d.default)(p,JSON.stringify(s),{path:"/"})}return i},handleSearch:function(e){e.preventDefault();var t=this.$input.val(),n=[],r=[];this.$fields.find("input:checked").each(function(){r.push((0,s.default)(this).val())}),this.$options.find("input:checked").each(function(){n.push((0,s.default)(this).val())}),r.length||(r=["source","target"]),this.setState({searchText:t,searchFields:r,searchOptions:n}),this.settings.onSearch.call(this,this.state.searchText)},onSearch:function(e){if(!e)return!1;var t="#search="+this.buildSearchQuery();return window.location=this.$form[0].action+t,!1},updateUI:function(){this.$input.val(this.state.searchText).focus();var e=this.state,t=e.searchFields,n=e.searchOptions;this.$fields.find("input").each(function(){(0,s.default)(this).prop("checked",t.indexOf(this.value)!==-1)}),this.$options.find("input").each(function(){(0,s.default)(this).prop("checked",n.indexOf(this.value)!==-1)})}};t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=s.default.createClass({displayName:"Avatar",propTypes:{emailHash:i.PropTypes.string,label:i.PropTypes.string,size:i.PropTypes.number,src:i.PropTypes.string,title:i.PropTypes.string,username:i.PropTypes.string},mixins:[o.PureRenderMixin],getDefaultProps:function(){return{size:80}},render:function(){var e=this.props.emailHash,t=this.props.label,n=this.props.size,r=this.props.title,i=this.props.username,o="https://secure.gravatar.com/avatar/"+e+"?s="+n+"&d=mm",a=s.default.createElement("img",{className:"avatar",src:o,height:n,width:n,title:r});return void 0!==i?s.default.createElement("a",{href:l("/user/"+i+"/")},a,t&&" ",t&&s.default.createElement("span",{className:"user-name",title:i},t)):a}});t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(12),a=r(o),l=s.default.createClass({displayName:"LayeredComponent",propTypes:{children:s.default.PropTypes.node.isRequired},componentDidMount:function(){this.layer=document.createElement("div"),document.body.appendChild(this.layer),this.renderLayer()},componentDidUpdate:function(){this.renderLayer()},componentWillUnmount:function(){a.default.unmountComponentAtNode(this.layer),document.body.removeChild(this.layer)},renderLayer:function(){a.default.render(this.props.children,this.layer)},render:function(){return null}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),s=r(i),o=n(1),a=r(o),l=n(94),u=r(l);n(119);var c={lock:"lightbox-lock"},d={ESC:27,TAB:9},p=a.default.createClass({displayName:"ModalContainer",propTypes:{children:a.default.PropTypes.node.isRequired,onClose:a.default.PropTypes.func.isRequired,className:a.default.PropTypes.string,style:a.default.PropTypes.object},componentWillMount:function(){this._previousFocus=document.activeElement},componentDidMount:function(){document.body.classList.contains(c.lock)||(this._ownsLock=!0,document.body.classList.add(c.lock),document.addEventListener("keydown",this.handleKeyDown))},componentWillUnmount:function(){this._ownsLock&&(document.body.classList.remove(c.lock),document.removeEventListener("keydown",this.handleKeyDown)),this._previousFocus.focus()},_previousFocus:null,_ownsLock:!1,handleKeyDown:function(e){e.keyCode===d.TAB&&(0,u.default)(this.refs.body,e),e.keyCode===d.ESC&&this.props.onClose()},render:function(){return a.default.createElement("div",{className:"lightbox-bg"},a.default.createElement("div",{className:"lightbox-container"},a.default.createElement("div",{className:(0,s.default)("lightbox-body",this.props.className),ref:"body",style:this.props.style,tabIndex:"-1"},this.props.children)))}});t.default=p},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=l.diff_main(e,t),r=[];l.diff_cleanupSemantic(n);for(var i=0;i<n.length;i++){var s=n[i][0],u=(0,a.highlightRO)(n[i][1]);s===o.default.DIFF_INSERT?r[i]='<span class="diff-insert">'+u+"</span>":s===o.default.DIFF_DELETE?r[i]='<span class="diff-delete">'+u+"</span>":s===o.default.DIFF_EQUAL&&(r[i]=u)}return r.join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(97),o=r(s),a=n(21),l=new o.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=(0,o.default)(e),r=n.indexOf(document.activeElement);(t.shiftKey&&0===r||!t.shiftKey&&r===n.length-1)&&(t.preventDefault(),n[t.shiftKey?n.length-1:0].focus())}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(120),o=r(s)},,function(e,t,n){t=e.exports=n(38)(),t.push([e.id,'.lightbox-lock{overflow:hidden}.lightbox-bg{position:fixed;z-index:498;top:0;left:0;height:100%;width:100%;background:rgba(11,11,11,.8);outline:medium none}.lightbox-container{box-sizing:border-box;position:absolute;z-index:499;left:0;top:0;height:100%;width:100%;padding:0;text-align:center;overflow-x:hidden;overflow-y:auto}.lightbox-container::before{content:\'\';display:inline-block;height:100%;vertical-align:middle}.lightbox-body{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;padding:2em 3em;min-width:255px;font-size:100%}.lightbox-header{margin-bottom:2em}.lightbox-content{margin:1em 0}.lightbox-footer{margin-top:2em;text-align:right}html[dir="rtl"] .lightbox-footer{text-align:left}.lightbox-footer .btn+.btn{margin-left:.5em}html[dir="rtl"] .lightbox-footer .btn+.btn{margin-left:0;margin-right:.5em}.lightbox-close{position:absolute;right:0;top:0;width:44px;height:44px;line-height:44px;text-decoration:none;text-align:center;background-color:transparent;color:rgba(0,0,0,.5);font-style:normal;font-size:28px;font-family:"Arial",monospace;border:0;cursor:pointer}html[dir="rtl"] .lightbox-close{right:auto;left:0}.lightbox-close:hover,.lightbox-close:focus{color:rgba(0,0,0,1)}',""])},function(e,t){"use strict";function n(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var r=-1,i=1,s=0;n.Diff,n.prototype.diff_main=function(e,t,n,r){"undefined"==typeof r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=r;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[[s,e]]:[];"undefined"==typeof n&&(n=!0);var o=n,a=this.diff_commonPrefix(e,t),l=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=this.diff_commonSuffix(e,t);var u=e.substring(e.length-a);e=e.substring(0,e.length-a),t=t.substring(0,t.length-a);var c=this.diff_compute_(e,t,o,i);return l&&c.unshift([s,l]),u&&c.push([s,u]),this.diff_cleanupMerge(c),c},n.prototype.diff_compute_=function(e,t,n,o){var a;if(!e)return[[i,t]];if(!t)return[[r,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(c!=-1)return a=[[i,l.substring(0,c)],[s,u],[i,l.substring(c+u.length)]],e.length>t.length&&(a[0][0]=a[2][0]=r),a;if(1==u.length)return[[r,e],[i,t]];var d=this.diff_halfMatch_(e,t);if(d){var p=d[0],f=d[1],h=d[2],m=d[3],g=d[4],v=this.diff_main(p,h,n,o),y=this.diff_main(f,m,n,o);return v.concat([[s,g]],y)}return n&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,o):this.diff_bisect_(e,t,o)},n.prototype.diff_lineMode_=function(e,t,n){var o=this.diff_linesToChars_(e,t);e=o.chars1,t=o.chars2;var a=o.lineArray,l=this.diff_main(e,t,!1,n);this.diff_charsToLines_(l,a),this.diff_cleanupSemantic(l),l.push([s,""]);for(var u=0,c=0,d=0,p="",f="";u<l.length;){switch(l[u][0]){case i:d++,f+=l[u][1];break;case r:c++,p+=l[u][1];break;case s:if(c>=1&&d>=1){l.splice(u-c-d,c+d),u=u-c-d;for(var o=this.diff_main(p,f,!1,n),h=o.length-1;h>=0;h--)l.splice(u,0,o[h]);u+=o.length}d=0,c=0,p="",f=""}u++}return l.pop(),l},n.prototype.diff_bisect_=function(e,t,n){for(var s=e.length,o=t.length,a=Math.ceil((s+o)/2),l=a,u=2*a,c=new Array(u),d=new Array(u),p=0;p<u;p++)c[p]=-1,d[p]=-1;c[l+1]=0,d[l+1]=0;for(var f=s-o,h=f%2!=0,m=0,g=0,v=0,y=0,b=0;b<a&&!((new Date).getTime()>n);b++){for(var _=-b+m;_<=b-g;_+=2){var w,E=l+_;w=_==-b||_!=b&&c[E-1]<c[E+1]?c[E+1]:c[E-1]+1;for(var x=w-_;w<s&&x<o&&e.charAt(w)==t.charAt(x);)w++,x++;if(c[E]=w,w>s)g+=2;else if(x>o)m+=2;else if(h){var C=l+f-_;if(C>=0&&C<u&&d[C]!=-1){var P=s-d[C];if(w>=P)return this.diff_bisectSplit_(e,t,w,x,n)}}}for(var S=-b+v;S<=b-y;S+=2){var P,C=l+S;P=S==-b||S!=b&&d[C-1]<d[C+1]?d[C+1]:d[C-1]+1;for(var T=P-S;P<s&&T<o&&e.charAt(s-P-1)==t.charAt(o-T-1);)P++,T++;if(d[C]=P,P>s)y+=2;else if(T>o)v+=2;else if(!h){var E=l+f-S;if(E>=0&&E<u&&c[E]!=-1){var w=c[E],x=l+w-E;if(P=s-P,w>=P)return this.diff_bisectSplit_(e,t,w,x,n)}}}}return[[r,e],[i,t]]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var s=e.substring(0,n),o=t.substring(0,r),a=e.substring(n),l=t.substring(r),u=this.diff_main(s,o,!1,i),c=this.diff_main(a,l,!1,i);return u.concat(c)},n.prototype.diff_linesToChars_=function(e,t){function n(e){for(var t="",n=0,s=-1,o=r.length;s<e.length-1;){s=e.indexOf("\n",n),s==-1&&(s=e.length-1);var a=e.substring(n,s+1);n=s+1,(i.hasOwnProperty?i.hasOwnProperty(a):void 0!==i[a])?t+=String.fromCharCode(i[a]):(t+=String.fromCharCode(o),i[a]=o,r[o++]=a)}return t}var r=[],i={};r[0]="";var s=n(e),o=n(t);return{chars1:s,chars2:o,lineArray:r}},n.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var r=e[n][1],i=[],s=0;s<r.length;s++)i[s]=t[r.charCodeAt(s)];e[n][1]=i.join("")}},n.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,s=0;n<i;)e.substring(s,i)==t.substring(s,i)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return i},n.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,s=0;n<i;)e.substring(e.length-i,e.length-s)==t.substring(t.length-i,t.length-s)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return i},n.prototype.diff_commonOverlap_=function(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var s=0,o=1;;){var a=e.substring(i-o),l=t.indexOf(a);if(l==-1)return s;o+=l,0!=l&&e.substring(i-o)!=t.substring(0,o)||(s=o,o++)}},n.prototype.diff_halfMatch_=function(e,t){function n(e,t,n){for(var r,i,s,a,l=e.substring(n,n+Math.floor(e.length/4)),u=-1,c="";(u=t.indexOf(l,u+1))!=-1;){var d=o.diff_commonPrefix(e.substring(n),t.substring(u)),p=o.diff_commonSuffix(e.substring(0,n),t.substring(0,u));c.length<p+d&&(c=t.substring(u-p,u)+t.substring(u,u+d),r=e.substring(0,n-p),i=e.substring(n+d),s=t.substring(0,u-p),a=t.substring(u+d))}return 2*c.length>=e.length?[r,i,s,a,c]:null}if(this.Diff_Timeout<=0)return null;var r=e.length>t.length?e:t,i=e.length>t.length?t:e;if(r.length<4||2*i.length<r.length)return null;var s,o=this,a=n(r,i,Math.ceil(r.length/4)),l=n(r,i,Math.ceil(r.length/2));if(!a&&!l)return null;s=l?a&&a[4].length>l[4].length?a:l:a;var u,c,d,p;e.length>t.length?(u=s[0],c=s[1],d=s[2],p=s[3]):(d=s[0],p=s[1],u=s[2],c=s[3]);var f=s[4];return[u,c,d,p,f]},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,n=[],o=0,a=null,l=0,u=0,c=0,d=0,p=0;l<e.length;)e[l][0]==s?(n[o++]=l,u=d,c=p,d=0,p=0,a=e[l][1]):(e[l][0]==i?d+=e[l][1].length:p+=e[l][1].length,a&&a.length<=Math.max(u,c)&&a.length<=Math.max(d,p)&&(e.splice(n[o-1],0,[r,a]),e[n[o-1]+1][0]=i,o--,o--,l=o>0?n[o-1]:-1,u=0,c=0,d=0,p=0,a=null,t=!0)),l++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l<e.length;){if(e[l-1][0]==r&&e[l][0]==i){var f=e[l-1][1],h=e[l][1],m=this.diff_commonOverlap_(f,h),g=this.diff_commonOverlap_(h,f);m>=g?(m>=f.length/2||m>=h.length/2)&&(e.splice(l,0,[s,h.substring(0,m)]),e[l-1][1]=f.substring(0,f.length-m),e[l+1][1]=h.substring(m),l++):(g>=f.length/2||g>=h.length/2)&&(e.splice(l,0,[s,f.substring(0,g)]),
e[l-1][0]=i,e[l-1][1]=h.substring(0,h.length-g),e[l+1][0]=r,e[l+1][1]=f.substring(g),l++),l++}l++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),i=t.charAt(0),s=r.match(n.nonAlphaNumericRegex_),o=i.match(n.nonAlphaNumericRegex_),a=s&&r.match(n.whitespaceRegex_),l=o&&i.match(n.whitespaceRegex_),u=a&&r.match(n.linebreakRegex_),c=l&&i.match(n.linebreakRegex_),d=u&&e.match(n.blanklineEndRegex_),p=c&&t.match(n.blanklineStartRegex_);return d||p?5:u||c?4:s&&!a&&l?3:a||l?2:s||o?1:0}for(var r=1;r<e.length-1;){if(e[r-1][0]==s&&e[r+1][0]==s){var i=e[r-1][1],o=e[r][1],a=e[r+1][1],l=this.diff_commonSuffix(i,o);if(l){var u=o.substring(o.length-l);i=i.substring(0,i.length-l),o=u+o.substring(0,o.length-l),a=u+a}for(var c=i,d=o,p=a,f=t(i,o)+t(o,a);o.charAt(0)===a.charAt(0);){i+=o.charAt(0),o=o.substring(1)+a.charAt(0),a=a.substring(1);var h=t(i,o)+t(o,a);h>=f&&(f=h,c=i,d=o,p=a)}e[r-1][1]!=c&&(c?e[r-1][1]=c:(e.splice(r-1,1),r--),e[r][1]=d,p?e[r+1][1]=p:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,n=[],o=0,a=null,l=0,u=!1,c=!1,d=!1,p=!1;l<e.length;)e[l][0]==s?(e[l][1].length<this.Diff_EditCost&&(d||p)?(n[o++]=l,u=d,c=p,a=e[l][1]):(o=0,a=null),d=p=!1):(e[l][0]==r?p=!0:d=!0,a&&(u&&c&&d&&p||a.length<this.Diff_EditCost/2&&u+c+d+p==3)&&(e.splice(n[o-1],0,[r,a]),e[n[o-1]+1][0]=i,o--,a=null,u&&c?(d=p=!0,o=0):(o--,l=o>0?n[o-1]:-1,d=p=!1),t=!0)),l++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push([s,""]);for(var t,n=0,o=0,a=0,l="",u="";n<e.length;)switch(e[n][0]){case i:a++,u+=e[n][1],n++;break;case r:o++,l+=e[n][1],n++;break;case s:o+a>1?(0!==o&&0!==a&&(t=this.diff_commonPrefix(u,l),0!==t&&(n-o-a>0&&e[n-o-a-1][0]==s?e[n-o-a-1][1]+=u.substring(0,t):(e.splice(0,0,[s,u.substring(0,t)]),n++),u=u.substring(t),l=l.substring(t)),t=this.diff_commonSuffix(u,l),0!==t&&(e[n][1]=u.substring(u.length-t)+e[n][1],u=u.substring(0,u.length-t),l=l.substring(0,l.length-t))),0===o?e.splice(n-a,o+a,[i,u]):0===a?e.splice(n-o,o+a,[r,l]):e.splice(n-o-a,o+a,[r,l],[i,u]),n=n-o-a+(o?1:0)+(a?1:0)+1):0!==n&&e[n-1][0]==s?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,a=0,o=0,l="",u=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(n=1;n<e.length-1;)e[n-1][0]==s&&e[n+1][0]==s&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),c=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),c=!0)),n++;c&&this.diff_cleanupMerge(e)},n.prototype.diff_xIndex=function(e,t){var n,s=0,o=0,a=0,l=0;for(n=0;n<e.length&&(e[n][0]!==i&&(s+=e[n][1].length),e[n][0]!==r&&(o+=e[n][1].length),!(s>t));n++)a=s,l=o;return e.length!=n&&e[n][0]===r?l:l+(t-a)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,o=/</g,a=/>/g,l=/\n/g,u=0;u<e.length;u++){var c=e[u][0],d=e[u][1],p=d.replace(n,"&amp;").replace(o,"&lt;").replace(a,"&gt;").replace(l,"&para;<br>");switch(c){case i:t[u]='<ins style="background:#e6ffe6;">'+p+"</ins>";break;case r:t[u]='<del style="background:#ffe6e6;">'+p+"</del>";break;case s:t[u]="<span>"+p+"</span>"}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)e[n][0]!==i&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)e[n][0]!==r&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_levenshtein=function(e){for(var t=0,n=0,o=0,a=0;a<e.length;a++){var l=e[a][0],u=e[a][1];switch(l){case i:n+=u.length;break;case r:o+=u.length;break;case s:t+=Math.max(n,o),n=0,o=0}}return t+=Math.max(n,o)},n.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case i:t[n]="+"+encodeURI(e[n][1]);break;case r:t[n]="-"+e[n][1].length;break;case s:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(e,t){for(var n=[],o=0,a=0,l=t.split(/\t/g),u=0;u<l.length;u++){var c=l[u].substring(1);switch(l[u].charAt(0)){case"+":try{n[o++]=[i,decodeURI(c)]}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+c)}break;case"-":case"=":var d=parseInt(c,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+c);var p=e.substring(a,a+=d);"="==l[u].charAt(0)?n[o++]=[s,p]:n[o++]=[r,p];break;default:if(l[u])throw new Error("Invalid diff operation in diff_fromDelta: "+l[u])}}if(a!=e.length)throw new Error("Delta length ("+a+") does not equal source text length ("+e.length+").");return n},n.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},n.prototype.match_bitap_=function(e,t,n){function r(e,r){var i=e/t.length,o=Math.abs(n-r);return s.Match_Distance?i+o/s.Match_Distance:o?1:i}if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(t),s=this,o=this.Match_Threshold,a=e.indexOf(t,n);a!=-1&&(o=Math.min(r(0,a),o),a=e.lastIndexOf(t,n+t.length),a!=-1&&(o=Math.min(r(0,a),o)));var l=1<<t.length-1;a=-1;for(var u,c,d,p=t.length+e.length,f=0;f<t.length;f++){for(u=0,c=p;u<c;)r(f,n+c)<=o?u=c:p=c,c=Math.floor((p-u)/2+u);p=c;var h=Math.max(1,n-c+1),m=Math.min(n+c,e.length)+t.length,g=Array(m+2);g[m+1]=(1<<f)-1;for(var v=m;v>=h;v--){var y=i[e.charAt(v-1)];if(0===f?g[v]=(g[v+1]<<1|1)&y:g[v]=(g[v+1]<<1|1)&y|((d[v+1]|d[v])<<1|1)|d[v+1],g[v]&l){var b=r(f,v-1);if(b<=o){if(o=b,a=v-1,!(a>n))break;h=Math.max(1,2*n-a)}}}if(r(f+1,n)>o)break;d=g}return a},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(var n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},n.prototype.patch_addContext_=function(e,t){if(0!=t.length){for(var n=t.substring(e.start2,e.start2+e.length1),r=0;t.indexOf(n)!=t.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,n=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin;var i=t.substring(e.start2-r,e.start2);i&&e.diffs.unshift([s,i]);var o=t.substring(e.start2+e.length1,e.start2+e.length1+r);o&&e.diffs.push([s,o]),e.start1-=i.length,e.start2-=i.length,e.length1+=i.length+o.length,e.length2+=i.length+o.length}},n.prototype.patch_make=function(e,t,o){var a,l;if("string"==typeof e&&"string"==typeof t&&"undefined"==typeof o)a=e,l=this.diff_main(a,t,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(e&&"object"==typeof e&&"undefined"==typeof t&&"undefined"==typeof o)l=e,a=this.diff_text1(l);else if("string"==typeof e&&t&&"object"==typeof t&&"undefined"==typeof o)a=e,l=t;else{if("string"!=typeof e||"string"!=typeof t||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");a=e,l=o}if(0===l.length)return[];for(var u=[],c=new n.patch_obj,d=0,p=0,f=0,h=a,m=a,g=0;g<l.length;g++){var v=l[g][0],y=l[g][1];switch(d||v===s||(c.start1=p,c.start2=f),v){case i:c.diffs[d++]=l[g],c.length2+=y.length,m=m.substring(0,f)+y+m.substring(f);break;case r:c.length1+=y.length,c.diffs[d++]=l[g],m=m.substring(0,f)+m.substring(f+y.length);break;case s:y.length<=2*this.Patch_Margin&&d&&l.length!=g+1?(c.diffs[d++]=l[g],c.length1+=y.length,c.length2+=y.length):y.length>=2*this.Patch_Margin&&d&&(this.patch_addContext_(c,h),u.push(c),c=new n.patch_obj,d=0,h=m,p=f)}v!==i&&(p+=y.length),v!==r&&(f+=y.length)}return d&&(this.patch_addContext_(c,h),u.push(c)),u},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r],s=new n.patch_obj;s.diffs=[];for(var o=0;o<i.diffs.length;o++)s.diffs[o]=i.diffs[o].slice();s.start1=i.start1,s.start2=i.start2,s.length1=i.length1,s.length2=i.length2,t[r]=s}return t},n.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var o=0,a=[],l=0;l<e.length;l++){var u,c=e[l].start2+o,d=this.diff_text1(e[l].diffs),p=-1;if(d.length>this.Match_MaxBits?(u=this.match_main(t,d.substring(0,this.Match_MaxBits),c),u!=-1&&(p=this.match_main(t,d.substring(d.length-this.Match_MaxBits),c+d.length-this.Match_MaxBits),(p==-1||u>=p)&&(u=-1))):u=this.match_main(t,d,c),u==-1)a[l]=!1,o-=e[l].length2-e[l].length1;else{a[l]=!0,o=u-c;var f;if(f=p==-1?t.substring(u,u+d.length):t.substring(u,p+this.Match_MaxBits),d==f)t=t.substring(0,u)+this.diff_text2(e[l].diffs)+t.substring(u+d.length);else{var h=this.diff_main(d,f,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(h)/d.length>this.Patch_DeleteThreshold)a[l]=!1;else{this.diff_cleanupSemanticLossless(h);for(var m,g=0,v=0;v<e[l].diffs.length;v++){var y=e[l].diffs[v];y[0]!==s&&(m=this.diff_xIndex(h,g)),y[0]===i?t=t.substring(0,u+m)+y[1]+t.substring(u+m):y[0]===r&&(t=t.substring(0,u+m)+t.substring(u+this.diff_xIndex(h,g+y[1].length))),y[0]!==r&&(g+=y[1].length)}}}}}return t=t.substring(n.length,t.length-n.length),[t,a]},n.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,n="",r=1;r<=t;r++)n+=String.fromCharCode(r);for(var r=0;r<e.length;r++)e[r].start1+=t,e[r].start2+=t;var i=e[0],o=i.diffs;if(0==o.length||o[0][0]!=s)o.unshift([s,n]),i.start1-=t,i.start2-=t,i.length1+=t,i.length2+=t;else if(t>o[0][1].length){var a=t-o[0][1].length;o[0][1]=n.substring(o[0][1].length)+o[0][1],i.start1-=a,i.start2-=a,i.length1+=a,i.length2+=a}if(i=e[e.length-1],o=i.diffs,0==o.length||o[o.length-1][0]!=s)o.push([s,n]),i.length1+=t,i.length2+=t;else if(t>o[o.length-1][1].length){var a=t-o[o.length-1][1].length;o[o.length-1][1]+=n.substring(0,a),i.length1+=a,i.length2+=a}return n},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,o=0;o<e.length;o++)if(!(e[o].length1<=t)){var a=e[o];e.splice(o--,1);for(var l=a.start1,u=a.start2,c="";0!==a.diffs.length;){var d=new n.patch_obj,p=!0;for(d.start1=l-c.length,d.start2=u-c.length,""!==c&&(d.length1=d.length2=c.length,d.diffs.push([s,c]));0!==a.diffs.length&&d.length1<t-this.Patch_Margin;){var f=a.diffs[0][0],h=a.diffs[0][1];f===i?(d.length2+=h.length,u+=h.length,d.diffs.push(a.diffs.shift()),p=!1):f===r&&1==d.diffs.length&&d.diffs[0][0]==s&&h.length>2*t?(d.length1+=h.length,l+=h.length,p=!1,d.diffs.push([f,h]),a.diffs.shift()):(h=h.substring(0,t-d.length1-this.Patch_Margin),d.length1+=h.length,l+=h.length,f===s?(d.length2+=h.length,u+=h.length):p=!1,d.diffs.push([f,h]),h==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(h.length))}c=this.diff_text2(d.diffs),c=c.substring(c.length-this.Patch_Margin);var m=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);""!==m&&(d.length1+=m.length,d.length2+=m.length,0!==d.diffs.length&&d.diffs[d.diffs.length-1][0]===s?d.diffs[d.diffs.length-1][1]+=m:d.diffs.push([s,m])),p||e.splice(++o,0,d)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},n.prototype.patch_fromText=function(e){var t=[];if(!e)return t;for(var o=e.split("\n"),a=0,l=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;a<o.length;){var u=o[a].match(l);if(!u)throw new Error("Invalid patch string: "+o[a]);var c=new n.patch_obj;for(t.push(c),c.start1=parseInt(u[1],10),""===u[2]?(c.start1--,c.length1=1):"0"==u[2]?c.length1=0:(c.start1--,c.length1=parseInt(u[2],10)),c.start2=parseInt(u[3],10),""===u[4]?(c.start2--,c.length2=1):"0"==u[4]?c.length2=0:(c.start2--,c.length2=parseInt(u[4],10)),a++;a<o.length;){var d=o[a].charAt(0);try{var p=decodeURI(o[a].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+p)}if("-"==d)c.diffs.push([r,p]);else if("+"==d)c.diffs.push([i,p]);else if(" "==d)c.diffs.push([s,p]);else{if("@"==d)break;if(""!==d)throw new Error('Invalid patch mode "'+d+'" in: '+p)}a++}}return t},n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},n.patch_obj.prototype.toString=function(){var e,t;e=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1,t=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2;for(var n,o=["@@ -"+e+" +"+t+" @@\n"],a=0;a<this.diffs.length;a++){switch(this.diffs[a][0]){case i:n="+";break;case r:n="-";break;case s:n=" "}o[a+1]=n+encodeURI(this.diffs[a][1])+"\n"}return o.join("").replace(/%20/g," ")},e.exports=n,e.exports.diff_match_patch=n,e.exports.DIFF_DELETE=r,e.exports.DIFF_INSERT=i,e.exports.DIFF_EQUAL=s},,function(e,t,n){function r(e){if(!o(e)||i(e)!=a)return!1;var t=s(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==p}var i=n(293),s=n(295),o=n(300),a="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,p=c.call(Object);e.exports=r},,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(96);"string"==typeof r&&(r=[[e.id,r,""]]);n(46)(r,{})},function(e,t){function n(){function e(n,r){if(n===document.documentElement)return!1;for(var i=0,s=t.length;i<s;i++)if(t[i][0]===n)return t[i][1];r=r||window.getComputedStyle(n);var o=!1;return"none"===r.display?o=!0:n.parentNode&&(o=e(n.parentNode)),t.push([n,o]),o}var t=[];return function(t){if(t===document.documentElement)return!1;var n=window.getComputedStyle(t);return!!e(t,n)||"hidden"===n.visibility}}e.exports=function(e){for(var t,r,i=[],s=[],o=n(),a=["input","select","a[href]","textarea","button","[tabindex]"],l=e.querySelectorAll(a),u=0,c=l.length;u<c;u++)t=l[u],r=parseInt(t.getAttribute("tabindex"),10)||t.tabIndex,r<0||"INPUT"===t.tagName&&"hidden"===t.type||t.disabled||o(t)||(0===r?i.push(t):s.push({index:u,tabIndex:r,node:t}));var d=s.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(d,i),d}},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=n(65),l=r(a),u=s.default.createClass({displayName:"RequestPasswordResetProgress",propTypes:{email:s.default.PropTypes.string.isRequired},mixins:[o.PureRenderMixin],render:function(){var e=interpolate(gettext("Sending email to %s..."),[this.props.email]);return s.default.createElement(l.default,{msg:e})}});t.default=u},,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(299),i=r.Symbol;e.exports=i},function(e,t,n){e.exports=n(301)()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.connect=t.Provider=void 0;var i=n(305),s=r(i),o=n(306),a=r(o);t.Provider=s.default,t.connect=a.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(144),s=r(i);t.default=s.default.shape({subscribe:s.default.func.isRequired,dispatch:s.default.func.isRequired,getState:s.default.func.isRequired})},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.__esModule=!0,t.default=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){"use strict";function n(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}t.__esModule=!0,t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){function r(){v===g&&(v=g.slice())}function s(){return m}function a(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),v.push(e),function(){if(t){t=!1,r();var n=v.indexOf(e);v.splice(n,1)}}}function c(e){if(!(0,o.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(y)throw new Error("Reducers may not dispatch actions.");try{y=!0,m=h(m,e)}finally{y=!1}for(var t=g=v,n=0;n<t.length;n++){var r=t[n];r()}return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,c({type:u.INIT})}function p(){var e,t=a;return e={subscribe:function(e){function n(){e.next&&e.next(s())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");n();var r=t(n);return{unsubscribe:r}}},e[l.default]=function(){return this},e}var f;if("function"==typeof t&&"undefined"==typeof n&&(n=t,t=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(i)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,m=t,g=[],v=g,y=!1;return c({type:u.INIT}),f={dispatch:c,subscribe:a,getState:s,replaceReducer:d},f[l.default]=p,f}t.__esModule=!0,t.ActionTypes=void 0,t.default=i;var s=n(99),o=r(s),a=n(373),l=r(a),u=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.__esModule=!0,t.default=n},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),s=r(i);n(52),n(53),n(79);var o=n(67),a={init:function(e){this.url=e,(0,s.default)(document).on("click",".js-agreement-popup",this.displayContent.bind(this)),(0,s.default)(document).on("submit",".js-agreement-form",this.onSubmit.bind(this)),this.display()},display:function(){s.default.magnificPopup.open({items:{src:this.url,type:"ajax"},callbacks:{parseAjax:function(e){e.data=e.data.form},ajaxContentAdded:function(){(0,o.updateInputState)(".js-legalfield",".js-agreement-continue")}},modal:!0})},displayContent:function(e){e.preventDefault();var t=this,n=e.target.href;s.default.magnificPopup.close(),s.default.magnificPopup.open({items:{src:n,type:"ajax"},callbacks:{afterClose:t.display.bind(t)},mainClass:"popup-ajax"})},onSubmit:function(e){e.preventDefault();var t=(0,s.default)(".js-agreement-box"),n=(0,s.default)(".js-agreement-form");t.spin(),t.css({opacity:.5}),s.default.ajax({url:n.attr("action"),type:"POST",data:n.serializeObject(),success:function(){s.default.magnificPopup.close()},complete:function(e){if(t.spin(!1),t.css({opacity:1}),400===e.status){var n=s.default.parseJSON(e.responseText).form;t.parent().html(n)}}})}};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=n(26),l=r(a),u=s.default.createClass({displayName:"AccountActivation",propTypes:{onClose:s.default.PropTypes.func.isRequired,signUpEmail:s.default.PropTypes.string},mixins:[o.PureRenderMixin],render:function(){var e=void 0;e=this.props.signUpEmail?interpolate(gettext("We have sent an email containing the special link to <span>%s</span>. Please check your spam folder if you do not see the email."),[this.props.signUpEmail]):gettext("We have sent an email containing the special link to the address used to register this account. Please check your spam folder if you do not see the email.");var t=gettext("Your account needs activation."),n=gettext("Please follow that link to continue the account creation.");return s.default.createElement(l.default,null,s.default.createElement("div",{className:"actions sign-up"},s.default.createElement("p",null,t),s.default.createElement("p",{dangerouslySetInnerHTML:{__html:e}}),s.default.createElement("p",null,n),this.props.signUpEmail&&s.default.createElement("div",null,s.default.createElement("button",{className:"btn btn-primary",onClick:this.props.onClose},gettext("Close")))))}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=n(26),l=r(a),u=s.default.createClass({displayName:"AccountInactive",propTypes:{onClose:s.default.PropTypes.func.isRequired},mixins:[o.PureRenderMixin],render:function(){return s.default.createElement(l.default,null,s.default.createElement("p",null,gettext("Your account is inactive because an administrator deactivated it.")),s.default.createElement("div",{className:"actions"},s.default.createElement("button",{className:"btn btn-primary",onClick:this.props.onClose},gettext("Close"))))}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),o=r(s),a=n(68),l=r(a),u=o.default.createClass({displayName:"AuthWindow",propTypes:{canContact:o.default.PropTypes.bool.isRequired},renderFooter:function(){return this.props.canContact?o.default.createElement("a",{href:"#",className:"js-contact"},gettext("Contact Us")):null},render:function(){return o.default.createElement(l.default,i({className:"auth-window",footer:this.renderFooter},this.props))}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=n(26),l=r(a),u=s.default.createClass({displayName:"EmailConfirmation",propTypes:{onClose:s.default.PropTypes.func.isRequired},mixins:[o.PureRenderMixin],render:function(){return s.default.createElement(l.default,null,s.default.createElement("p",null,gettext("This email confirmation link expired or is invalid.")),s.default.createElement("div",{className:"actions"},s.default.createElement("button",{className:"btn btn-primary",onClick:this.props.onClose},gettext("Close"))))}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),s=r(i),o=n(1),a=r(o),l=n(8),u=n(16),c=r(u),d=n(23),p=r(d),f=n(33),h=n(26),m=r(h),g=n(65),v=r(g),y=a.default.createClass({displayName:"PasswordResetForm",propTypes:{dispatch:a.default.PropTypes.func.isRequired,formErrors:a.default.PropTypes.object.isRequired,isLoading:a.default.PropTypes.bool.isRequired,tokenFailed:a.default.PropTypes.bool.isRequired,redirectTo:a.default.PropTypes.string},mixins:[l.PureRenderMixin,p.default],getInitialState:function(){return this.initialData={password1:"",password2:""},{formData:(0,s.default)({},this.initialData)}},componentWillReceiveProps:function(e){this.state.errors!==e.formErrors&&this.setState({errors:e.formErrors})},handlePasswordReset:function(e){e.preventDefault(),this.props.dispatch((0,f.gotoScreen)("requestPasswordReset"))},handleFormSubmit:function(e){e.preventDefault();var t=window.location.pathname;this.props.dispatch((0,f.passwordReset)(this.state.formData,t))},hasData:function(){var e=this.state.formData;return""!==e.password1&&""!==e.password2&&e.password1===e.password2},renderTokenFailed:function(){return a.default.createElement(m.default,null,a.default.createElement("p",null,gettext("The password reset link was invalid, possibly because it has already been used. Please request a new password reset.")),a.default.createElement("div",{className:"actions"},a.default.createElement("button",{className:"btn btn-primary",onClick:this.handlePasswordReset},gettext("Reset Password"))))},render:function(){if(this.props.tokenFailed)return this.renderTokenFailed();if(this.props.redirectTo)return a.default.createElement(v.default,{msg:gettext("Password changed, signing in...")});var e=this.state.errors,t=this.state.formData;return a.default.createElement(m.default,null,a.default.createElement("form",{method:"post",onSubmit:this.handleFormSubmit},a.default.createElement("div",{className:"fields"},a.default.createElement(c.default,{autoFocus:!0,type:"password",label:gettext("Password"),handleChange:this.handleChange,name:"password1",errors:e.password1,value:t.password1}),a.default.createElement(c.default,{type:"password",label:gettext("Repeat Password"),handleChange:this.handleChange,name:"password2",errors:e.password2,value:t.password2})),this.renderAllFormErrors(),a.default.createElement("div",{className:"actions"},a.default.createElement("div",null,a.default.createElement("input",{type:"submit",className:"btn btn-primary",disabled:!this.hasData()|this.props.isLoading,value:gettext("Set New Password")})),a.default.createElement("div",null,a.default.createElement("p",null,gettext("After changing your password you will sign in automatically."))))))}});t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),s=r(i),o=n(1),a=r(o),l=n(8),u=n(16),c=r(u),d=n(23),p=r(d),f=n(33),h=n(26),m=r(h),g=n(124),v=r(g),y=a.default.createClass({displayName:"RequestPasswordResetForm",propTypes:{canRegister:a.default.PropTypes.bool.isRequired,dispatch:a.default.PropTypes.func.isRequired,formErrors:a.default.PropTypes.object.isRequired,isLoading:a.default.PropTypes.bool.isRequired},mixins:[l.PureRenderMixin,p.default],getInitialState:function(){return this.initialData={email:""},{formData:(0,s.default)({},this.initialData)}},componentWillReceiveProps:function(e){this.state.errors!==e.formErrors&&this.setState({errors:e.formErrors})},handleSignIn:function(e){e.preventDefault(),this.props.dispatch((0,f.gotoScreen)("signIn"))},handleSignUp:function(e){e.preventDefault(),this.props.dispatch((0,f.gotoScreen)("signUp"))},handleFormSubmit:function(e){e.preventDefault(),this.props.dispatch((0,f.requestPasswordReset)(this.state.formData))},hasData:function(){return""!==this.state.formData.email},render:function(){if(this.props.isLoading)return a.default.createElement(v.default,{email:this.state.formData.email});var e=this.state.errors,t=this.state.formData;return a.default.createElement(m.default,null,a.default.createElement("form",{method:"post",onSubmit:this.handleFormSubmit},a.default.createElement("div",{className:"fields"},this.renderAllFormErrors(),a.default.createElement(c.default,{autoFocus:!0,type:"email",label:gettext("Email Address"),help:gettext("Enter your email address, and we will send you a message with the special link to reset your password."),handleChange:this.handleChange,name:"email",errors:e.email,value:t.email})),a.default.createElement("div",{className:"actions"},a.default.createElement("div",null,a.default.createElement("a",{href:"#",onClick:this.handleSignIn},gettext("No, thanks"))),a.default.createElement("div",null,a.default.createElement("input",{type:"submit",className:"btn btn-primary",disabled:!this.hasData(),value:gettext("Send Email")})),this.props.canRegister&&a.default.createElement("div",null,a.default.createElement("a",{href:"#",onClick:this.handleSignUp},gettext("Sign up as a new user"))))))}});t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=n(33),l=n(26),u=r(l),c=n(124),d=r(c),p=s.default.createClass({displayName:"RequestPasswordResetSent",propTypes:{dispatch:s.default.PropTypes.func.isRequired,isLoading:s.default.PropTypes.bool.isRequired,resetEmail:s.default.PropTypes.string.isRequired},mixins:[o.PureRenderMixin],handleResendEmail:function(){this.props.dispatch((0,a.requestPasswordReset)({email:this.props.resetEmail}))},render:function(){if(this.props.isLoading)return s.default.createElement(d.default,{email:this.props.resetEmail});var e=interpolate(gettext("We have sent an email containing the special link to <span>%s</span>"),[this.props.resetEmail]),t=gettext("Please follow that link to continue the password reset procedure."),n=gettext("Didn't receive an email? Check if it was accidentally filtered out as spam, or try requesting another copy of the email.");return s.default.createElement(u.default,null,s.default.createElement("div",{className:"actions password-reset"},s.default.createElement("p",{dangerouslySetInnerHTML:{__html:e}}),s.default.createElement("p",null,t),s.default.createElement("hr",null),s.default.createElement("p",null,n),s.default.createElement("div",null,s.default.createElement("button",{className:"btn btn-primary",onClick:this.handleResendEmail},gettext("Resend Email")))))}});t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),s=r(i),o=n(1),a=r(o),l=n(33),u=n(16),c=r(u),d=n(23),p=r(d),f=a.default.createClass({displayName:"SignInForm",propTypes:{canRegister:a.default.PropTypes.bool.isRequired,dispatch:a.default.PropTypes.func.isRequired,formErrors:a.default.PropTypes.object.isRequired,isLoading:a.default.PropTypes.bool.isRequired},mixins:[p.default],getInitialState:function(){return this.initialData={login:"",password:""},{formData:(0,s.default)({},this.initialData)}},componentWillReceiveProps:function(e){this.state.errors!==e.formErrors&&this.setState({errors:e.formErrors})},handleRequestPasswordReset:function(e){e.preventDefault(),this.props.dispatch((0,l.gotoScreen)("requestPasswordReset"))},handleSignUp:function(e){e.preventDefault(),this.props.dispatch((0,l.gotoScreen)("signUp"))},handleFormSubmit:function(e){e.preventDefault();var t=window.location.pathname+window.location.hash;this.props.dispatch((0,l.signIn)(this.state.formData,t))},hasData:function(){var e=this.state.formData;return""!==e.login&&""!==e.password},render:function(){var e=this.state.errors,t=this.state.formData,n=this.props.canRegister?a.default.createElement("a",{href:"#",onClick:this.handleSignUp},gettext("Sign up as a new user")):a.default.createElement("p",null,gettext("Creating new user accounts is prohibited."));return a.default.createElement("form",{method:"post",onSubmit:this.handleFormSubmit},a.default.createElement("div",{className:"fields"},a.default.createElement(c.default,{autoFocus:!0,label:gettext("Username"),handleChange:this.handleChange,name:"login",errors:e.login,value:t.login,dir:"ltr"}),a.default.createElement(c.default,{type:"password",label:gettext("Password"),handleChange:this.handleChange,name:"password",errors:e.password,value:t.password,dir:"ltr"}),a.default.createElement("div",{className:"actions password-forgotten"},a.default.createElement("a",{href:"#",onClick:this.handleRequestPasswordReset},gettext("I forgot my password"))),this.renderAllFormErrors()),a.default.createElement("div",{className:"actions"},a.default.createElement("div",null,a.default.createElement("input",{type:"submit",className:"btn btn-primary",disabled:!this.hasData()||this.props.isLoading,value:gettext("Sign In")})),a.default.createElement("div",null,n)))}});t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=n(252),l=r(a),u=n(253),c=r(u),d=n(28),p=r(d),f=n(65),h=r(f),m=n(212),g=r(m),v=n(216),y=r(v),b="pootle-auth-signin-tab",_=s.default.createClass({displayName:"SignInPanel",propTypes:{canRegister:s.default.PropTypes.bool.isRequired,formErrors:s.default.PropTypes.object.isRequired,isLoading:s.default.PropTypes.bool.isRequired,socialAuthProviders:s.default.PropTypes.array.isRequired,redirectTo:s.default.PropTypes.string},mixins:[o.PureRenderMixin],handleChange:function(e){(0,p.default)(b,e,{path:"/"})},render:function(){if(this.props.redirectTo)return s.default.createElement(h.default,{msg:gettext("Signed in. Redirecting...")});if(!this.props.socialAuthProviders.length)return s.default.createElement(g.default,this.props);var e=parseInt((0,p.default)(b),10)||0;return s.default.createElement(c.default,{onChange:this.handleChange,initialTab:e},s.default.createElement(l.default,{title:gettext("Social Services")
},s.default.createElement(y.default,this.props)),s.default.createElement(l.default,{title:gettext("Login / Password")},s.default.createElement(g.default,this.props)))}});t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(7),a=r(o),l=n(33),u=n(16),c=r(u),d=n(23),p=r(d),f=s.default.createClass({displayName:"SignUpForm",propTypes:{dispatch:s.default.PropTypes.func.isRequired,formErrors:s.default.PropTypes.object.isRequired,isLoading:s.default.PropTypes.bool.isRequired},mixins:[p.default],getInitialState:function(){return this.initialData={username:"",email:"",password1:"",password2:""},{formData:(0,a.default)({},this.initialData)}},componentWillReceiveProps:function(e){this.state.errors!==e.formErrors&&this.setState({errors:e.formErrors})},handleSignUp:function(e){e.preventDefault(),this.props.dispatch((0,l.gotoScreen)("signIn"))},handleFormSubmit:function(e){e.preventDefault(),this.props.dispatch((0,l.signUp)(this.state.formData))},hasData:function(){var e=this.state.formData;return""!==e.username&&""!==e.email&&""!==e.password1&&""!==e.password2},render:function(){var e=this.state.errors,t=this.state.formData;return s.default.createElement("form",{method:"post",onSubmit:this.handleFormSubmit},s.default.createElement("div",{className:"fields"},s.default.createElement(c.default,{autoFocus:!0,label:gettext("Username"),handleChange:this.handleChange,name:"username",errors:e.username,value:t.username,dir:"ltr"}),s.default.createElement(c.default,{label:gettext("Email"),handleChange:this.handleChange,name:"email",errors:e.email,value:t.email,dir:"ltr"}),s.default.createElement(c.default,{type:"password",label:gettext("Password"),handleChange:this.handleChange,name:"password1",errors:e.password1,value:t.password1,dir:"ltr"}),s.default.createElement(c.default,{type:"password",label:gettext("Repeat Password"),handleChange:this.handleChange,name:"password2",errors:e.password2,value:t.password2,dir:"ltr"})),this.renderAllFormErrors(),s.default.createElement("div",{className:"actions"},s.default.createElement("div",null,s.default.createElement("input",{type:"submit",className:"btn btn-primary",disabled:!this.hasData()|this.props.isLoading,value:gettext("Sign Up")})),s.default.createElement("div",null,s.default.createElement("a",{href:"#",onClick:this.handleSignUp},gettext("Sign in as an existing user")))))}});t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=n(26),l=r(a),u=s.default.createClass({displayName:"SocialAuthError",propTypes:{socialError:s.default.PropTypes.object},mixins:[o.PureRenderMixin],render:function(){var e=this.props.socialError,t=void 0;t=e?interpolate(gettext("An error occurred while attempting to sign in via %s."),[e.provider]):gettext("An error occurred while attempting to sign in via your social account.");var n={fontSize:"400%",marginBottom:"0.5em"};return s.default.createElement(l.default,{style:{textAlign:"center"}},s.default.createElement("h2",{style:n},"{õ_õ}"),s.default.createElement("p",null,t),e&&s.default.createElement("p",null,e.exception.name+": "+e.exception.msg+" "),e&&s.default.createElement("a",{href:e.retry_url},gettext("Try again")))}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=s.default.createClass({displayName:"SocialSignInForm",propTypes:{socialAuthProviders:s.default.PropTypes.array.isRequired},mixins:[o.PureRenderMixin],handleClick:function(e){var t=window.location.pathname+window.location.hash;window.location=e+"?next="+encodeURIComponent(t)},renderSocialAuthButton:function(e,t){var n=this;return s.default.createElement("button",{className:"btn btn-big",key:t,onClick:function(){return n.handleClick(e.url)}},interpolate(gettext("Sign In With %s"),[e.name]))},render:function(){var e=gettext("Signing in with an external service for the first time will automatically create an account for you.");return s.default.createElement("div",{className:"actions sign-in-social"},this.props.socialAuthProviders.map(this.renderSocialAuthButton),s.default.createElement("p",null,e))}});t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),s=r(i),o=n(1),a=r(o),l=n(37),u=n(16),c=r(u),d=n(23),p=r(d),f=n(33),h=n(65),m=r(h),g=a.default.createClass({displayName:"SocialVerification",propTypes:{dispatch:a.default.PropTypes.func.isRequired,email:a.default.PropTypes.string.isRequired,formErrors:a.default.PropTypes.object.isRequired,isLoading:a.default.PropTypes.bool.isRequired,providerName:a.default.PropTypes.string.isRequired,redirectTo:a.default.PropTypes.string},mixins:[p.default],getInitialState:function(){return this.initialData={password:""},{formData:(0,s.default)({},this.initialData)}},componentWillReceiveProps:function(e){this.state.errors!==e.formErrors&&this.setState({errors:e.formErrors})},handleRequestPasswordReset:function(e){e.preventDefault(),this.props.dispatch((0,f.gotoScreen)("requestPasswordReset"))},handleFormSubmit:function(e){e.preventDefault(),this.props.dispatch((0,f.verifySocial)(this.state.formData))},hasData:function(){return""!==this.state.formData.password},render:function(){if(this.props.redirectTo)return a.default.createElement(m.default,{msg:gettext("Signed in. Redirecting...")});var e=this.state.errors,t=this.state.formData,n=(0,l.t)("We found a user with <span>%(email)s</span> email in our system. Please provide the password to finish the sign in procedure. This is a one-off procedure, which will establish a link between your Pootle and %(provider)s accounts.",{email:this.props.email,provider:this.props.providerName});return a.default.createElement("div",{className:"actions"},a.default.createElement("p",{dangerouslySetInnerHTML:{__html:n}}),a.default.createElement("div",null,a.default.createElement("form",{method:"post",onSubmit:this.handleFormSubmit},a.default.createElement("div",{className:"fields"},a.default.createElement(c.default,{type:"password",label:gettext("Password"),handleChange:this.handleChange,name:"password",errors:e.password,value:t.password}),a.default.createElement("div",{className:"actions password-forgotten"},a.default.createElement("a",{href:"#",onClick:this.handleRequestPasswordReset},gettext("I forgot my password"))),this.renderAllFormErrors()),a.default.createElement("div",{className:"actions"},a.default.createElement("div",null,a.default.createElement("input",{type:"submit",className:"btn btn-primary",disabled:!this.hasData()|this.props.isLoading,value:gettext("Sign In")}))))))}});t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),o=r(s),a=n(145),l=n(33),u=n(205),c=r(u),d=n(206),p=r(d),f=n(207),h=r(f),m=n(208),g=r(m),v=n(210),y=r(v),b=n(211),_=r(b),w=n(209),E=r(w),x=n(213),C=r(x),P=n(214),S=r(P),T=n(215),O=r(T),R=n(217),M=r(R),k=o.default.createClass({displayName:"Auth",propTypes:{initPasswordReset:o.default.PropTypes.object,initialScreen:o.default.PropTypes.string,canContact:o.default.PropTypes.bool.isRequired,canRegister:o.default.PropTypes.bool.isRequired,dispatch:o.default.PropTypes.func.isRequired,onClose:o.default.PropTypes.func.isRequired,screen:o.default.PropTypes.string.isRequired,socialAuthProviders:o.default.PropTypes.array.isRequired,socialError:o.default.PropTypes.object,tokenFailed:o.default.PropTypes.bool},getDefaultProps:function(){return{initPasswordReset:null,tokenFailed:!1}},componentWillMount:function(){this.props.initialScreen&&this.props.dispatch((0,l.gotoScreen)(this.props.initialScreen)),this.props.initPasswordReset&&this.props.dispatch((0,l.requestPasswordReset)(this.props.initPasswordReset))},componentWillReceiveProps:function(e){if(null!==e.redirectTo){var t=window.location.pathname+window.location.hash;t!==e.redirectTo?window.location=e.redirectTo:window.location.reload()}},getScreen:function(e,t){switch(e){case"signIn":var n=0!==t.socialAuthProviders.length;return{title:n?gettext("Sign In With..."):gettext("Sign In"),content:C.default};case"inactive":return{title:gettext("Account Inactive"),content:p.default};case"signUp":return{title:gettext("Sign Up"),content:S.default};case"activation":return{title:gettext("Account Activation"),content:c.default};case"emailConfirmation":return{title:gettext("Email Confirmation"),content:g.default};case"requestPasswordReset":return{title:gettext("Reset Your Password"),content:y.default};case"requestPasswordResetSent":return{title:gettext("Reset Your Password"),content:_.default};case"passwordReset":return{title:gettext("Reset Your Password"),content:E.default};case"socialAuthError":return{title:gettext("Oops..."),content:O.default};case"socialVerification":return{title:gettext("Social Verification"),content:M.default}}return{}},render:function(){var e=this.getScreen(this.props.screen,this.props),t=e.content;return o.default.createElement(h.default,{canContact:this.props.canContact,title:e.title,onClose:this.props.onClose},o.default.createElement(t,i({canRegister:this.props.canRegister,onClose:this.props.onClose,socialAuthProviders:this.props.socialAuthProviders,socialError:this.props.socialError,tokenFailed:this.props.tokenFailed},this.props)))}});t.default=(0,a.connect)(function(e){return e.auth})(k)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(3),o=r(s),a=n(7),l=r(a),u=n(1),c=r(u),d=n(12),p=r(d),f=n(145),h=n(10),m=n(218),g=r(m),v=".js-auth",y={canContact:PTL.settings.CONTACT_ENABLED,canRegister:PTL.settings.SIGNUP_ENABLED,socialAuthProviders:PTL.settings.SOCIAL_AUTH_PROVIDERS};t.default={init:function(e){var t=this;(0,o.default)(document).on("click",".js-login",function(n){n.preventDefault(),t.open(e)})},open:function(e){var t=(0,l.default)({},y,e);p.default.render(c.default.createElement(f.Provider,{store:PTL.store},c.default.createElement(g.default,i({onClose:this.close},t))),(0,h.q)(v))},close:function(){p.default.unmountComponentAtNode((0,h.q)(v))}}},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"signIn",t=arguments[1];switch(t.type){case"GOTO_SCREEN":return t.screen;case"SIGNIN_SUCCESS":var n=t.nextURL;return n.indexOf("confirm-email")!==-1?"activation":n.indexOf("inactive")!==-1?"inactive":e;case"SIGNUP_SUCCESS":return"activation";case"REQ_PW_RESET_SUCCESS":return"requestPasswordResetSent";default:return e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];switch(t.type){case"SIGNIN_REQUEST":case"SIGNUP_REQUEST":case"REQ_PW_RESET_REQUEST":case"PW_RESET_REQUEST":case"VERIFY_SOCIAL_REQUEST":return!0;case"SIGNIN_SUCCESS":case"SIGNIN_FAILURE":case"SIGNUP_SUCCESS":case"SIGNUP_FAILURE":case"REQ_PW_RESET_SUCCESS":case"REQ_PW_RESET_FAILURE":case"PW_RESET_SUCCESS":case"PW_RESET_FAILURE":case"VERIFY_SOCIAL_SUCCESS":case"VERIFY_SOCIAL_FAILURE":return!1;default:return e}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"SIGNIN_SUCCESS":var n=t.nextURL;return n.indexOf("confirm-email")!==-1||n.indexOf("inactive")!==-1?e:n;case"PW_RESET_SUCCESS":return l("/");case"VERIFY_SOCIAL_SUCCESS":return t.nextURL;default:return e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"REQ_PW_RESET_REQUEST":return t.email;default:return e}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"SIGNUP_REQUEST":return t.email;default:return e}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"SIGNIN_FAILURE":case"SIGNUP_FAILURE":case"REQ_PW_RESET_FAILURE":case"PW_RESET_FAILURE":case"VERIFY_SOCIAL_FAILURE":return t.errors;case"SIGNIN_REQUEST":case"SIGNIN_SUCCESS":case"SIGNUP_REQUEST":case"SIGNUP_SUCCESS":case"REQ_PW_RESET_REQUEST":case"REQ_PW_RESET_SUCCESS":case"PW_RESET_REQUEST":case"PW_RESET_SUCCESS":case"VERIFY_SOCIAL_REQUEST":case"VERIFY_SOCIAL_SUCCESS":return{};default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var c=n(78),d=(0,c.combineReducers)({screen:r,redirectTo:s,resetEmail:o,signUpEmail:a,isLoading:i,formErrors:u});t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(29),s=r(i),o={apiRoot:"/accounts/",fetch:function(e,t){return(0,s.default)({url:e,body:t,method:"POST"})},signIn:function(e,t){var n=this.apiRoot+"login/?next="+encodeURIComponent(t);return this.fetch(n,e)},signUp:function(e){var t=this.apiRoot+"signup/";return this.fetch(t,e)},requestPasswordReset:function(e){var t=this.apiRoot+"password/reset/";return this.fetch(t,e)},passwordReset:function(e,t){var n=t;if(!n){var r=e.uidb36,i=e.key;n=this.apiRoot+"password/reset/key/"+r+"-"+i+"/"}return this.fetch(n,e)},verifySocial:function(e){var t=this.apiRoot+"social/verify/";return this.fetch(t,e)}};t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=(0,f.default)(_.project).data("initial-code"),i=(0,f.default)(_.language).data("initial-code"),s=(0,f.default)(_.resource),o=s.length?s.data("initial-code").replace("ctx-",""):"",a=e!==i,u=t!==r,c=n!==o,d=a||u||c;if(d){var p=(0,f.default)(_.navigation).val(),h=w[p],m=p.indexOf("admin-")!==-1&&(""===i&&""!==r||""!==i&&""===r),g=e;g||m||(g="projects");var y=n;(""===t||u)&&(y="");var E=[];if("++"===n.substr(0,2))E=n.split("/"),E.splice(2,0,g,t,h),E.splice(0,0,"");else{var x=["",g,t,h,y];E=x.filter(function(e,t){return 0===t||""!==e})}y||E.push("");var C=l(E.join("/")),P=window.PTL||{};if(P.hasOwnProperty("editor")){var S=b.default.getHash().replace(/&?unit=\d+/,"").replace(/&?offset=\d+/,"");""!==S&&(C=[C,S].join("#"))}var T=void 0;T=u?"project":a?"language":"resource",(0,v.default)("user-choice",T,{path:"/"}),a&&(0,v.default)("pootle-language",g,{path:"/"}),window.location.href=C}}function s(){var e=(0,f.default)(this),t=e.find("option:selected"),n=t.data("href");if(n){var r=t.data("new-tab");return r?(window.open(n,"_blank"),e.val(e.data("initial-code")).trigger("change.select2")):window.location.href=n,!1}var s=(0,f.default)(_.language).val(),o=(0,f.default)(_.project).val();return t.val()?i(s,o,t.val()):i(s,o," "),!0}function o(e){var t=e.val?e.val.replace("ctx-",""):"";if(""===t){e.preventDefault();var n=(0,f.default)(this);""===n.val()?n.select2("close"):(n.val("").trigger("change.select2"),n.select2("close"),s())}}function a(e,t,n,r){var i={allowClear:!0,dropdownAutoWidth:!0,width:"off"},s=f.default.extend({},i,t);return b.default.makeSelectableInput(e,s,n,r)}function u(){var e=(0,f.default)("#s2id_js-select-resource");if(e.length){var t=(0,f.default)("#s2id_js-select-navigation").position().left,n=(0,f.default)("#header-meta").outerWidth()-t,r=e.position().left,i=n-r;e.css("max-width",i)}}function c(){u(),(0,f.default)(_.breadcrumbs).css("visibility","visible")}function d(e,t){var n=e.toUpperCase().indexOf(t.toUpperCase());if(n<0)return m.default.escape(e);var r=t.length;return[m.default.escape(e.substring(0,n)),'<span class="select2-match">',m.default.escape(e.substring(n,n+r)),"</span>",m.default.escape(e.substring(n+r,e.length))].join("")}Object.defineProperty(t,"__esModule",{value:!0});var p=n(3),f=r(p);n(51);var h=n(6),m=r(h),g=n(28),v=r(g),y=n(21),b=r(y),_={breadcrumbs:".js-breadcrumb",navigation:"#js-select-navigation",language:"#js-select-language",project:"#js-select-project",resource:"#js-select-resource"},w={browse:"",translate:"translate","admin-permissions":"admin/team","admin-characters":"admin/characters","admin-languages":"admin/languages","admin-team":"admin/team","admin-suggestions":"admin/suggestions","admin-terminology":"terminology"},E={init:function(e){(0,f.default)(window).on("pageshow",c);var t={term:""},n=function(e){var n=(0,f.default)(e.element),r=n.data("state"),i=d(e.text,t.term),s='<span class="text project-'+r+'">'+i+"</span>";return(0,f.default)(s)},r=function(e){var n=(0,f.default)(['<span class="result">',d(e.text,t.term),"</span>"].join(""));return n},i=function(e){return(0,f.default)(e.element).hasClass("admin")?(0,f.default)(['<span class="result admin">',e.text,"</span>"].join("")):e.text?(0,f.default)(['<span class="result">',e.text,"</span>"].join("")):e.text},l=function(e,n){return e.term?(t.term=e.term,n.text.toUpperCase().indexOf(e.term.toUpperCase())!==-1?n:null):(t.term="",n)},u="translate"!==e.page;a(_.navigation,{allowClear:!1,minimumResultsForSearch:-1,templateResult:i},s),a(_.language,{allowClear:u,placeholder:gettext("All Languages"),templateResult:r,matcher:l},s),a(_.project,{allowClear:u,placeholder:gettext("All Projects"),templateResult:n,matcher:l},s);var p=function(e){var t={results:f.default.map(e.items.results,function(e){var t=void 0;t=e.endsWith("/")?"folder":"file";var n={id:e,text:e,css_class:t};return n})};return t.pagination={more:e.items.more_results},t};(0,f.default)("#js-breadcrumb-resource select").on("select2:select",s),(0,f.default)("#js-breadcrumb-resource select").on("select2:unselecting",o),(0,f.default)(".js-s2-paths").on("s2-process-data",function(e,t){return PTL.s2.processData(t)}),(0,f.default)(".js-s2-paths").on("s2-process-results",function(e,t){return p(t)}),(0,f.default)(".js-s2-paths").on("s2-template-result",function(e,t){return PTL.s2.templateResult(t)})}};t.default=E},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(248),a=r(o),l=n(37),u=n(224),c=r(u),d=s.default.createClass({displayName:"Stats",propTypes:{topContributors:s.default.PropTypes.array.isRequired,hasMoreContributors:s.default.PropTypes.bool.isRequired,pootlePath:s.default.PropTypes.string.isRequired},getInitialState:function(){return{topContributors:this.props.topContributors,hasMoreContributors:this.props.hasMoreContributors}},onLoadMoreTopContributors:function(e){var t=this.state.topContributors.concat(e.items);this.setState({topContributors:t,hasMoreContributors:e.has_more_items})},loadMoreTopContributors:function(){var e={offset:this.state.topContributors.length};return a.default.getTopContributors(this.props.pootlePath,e).done(this.onLoadMoreTopContributors)},renderLoadMoreButton:function(){return this.state.hasMoreContributors?s.default.createElement("div",{className:"more-top-contributors"},s.default.createElement("a",{onClick:this.loadMoreTopContributors},s.default.createElement("span",{className:"show-more"},(0,l.t)("More...")))):null},render:function(){return this.state.topContributors.length?s.default.createElement("div",{className:"summary-2-col"},s.default.createElement("h3",{className:"top"},(0,l.t)("Contributors, 30 Days")),s.default.createElement("div",{className:"bd"},s.default.createElement(c.default,{items:this.state.topContributors}),this.renderLoadMoreButton())):null}});t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n='\n    <span class="value">'+e.suggested+'</span> suggested<br/>\n    <span class="value">'+e.translated+'</span> translated<br/>\n    <span class="value">'+e.reviewed+"</span> reviewed<br/>\n  ";return o.default.createElement("tr",{key:"top-contibutor-"+t},o.default.createElement("td",{className:"number"},(0,u.t)("#%(position)s",{position:t+1})),o.default.createElement("td",{className:"user top-scorer"},o.default.createElement(l.default,{emailHash:e.user.email_hash,label:e.user.display_name,size:20,username:e.user.username})),o.default.createElement("td",{className:"number"},o.default.createElement("span",{title:n},e.public_total_score)))}Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),o=r(s),a=n(88),l=r(a),u=n(37),c=function(e){var t=e.items;return o.default.createElement("table",{className:"top-scorers-table"},o.default.createElement("tbody",null,t.map(i)))};c.propTypes={items:o.default.PropTypes.array.isRequired},t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(254),a=r(o),l=n(10),u=s.default.createClass({displayName:"VisibilityToggle",propTypes:{uiLocaleDir:i.PropTypes.string.isRequired},componentDidMount:function(){this.handleVisibility({isActive:!1})},handleVisibility:function(e){var t=e.isActive,n=(0,l.qAll)("tr.item");n.map(function(e){return e.classList.remove("odd")}),n.filter(function(e){return e.classList.contains("is-disabled")}).forEach(function(e){return e.classList.toggle("is-visible",t)}),(0,l.qAll)("tr.is-visible").forEach(function(e,t){e.classList.toggle("odd",t%2===0)})},render:function(){return s.default.createElement(a.default,{defaultChecked:!0,labelActive:gettext("Show disabled"),labelInactive:gettext("Hide disabled"),onClick:this.handleVisibility})}});t.default=u},,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(3),s=r(i);n(52),n(51),n(380);var o=n(80),a=r(o),l=n(28),u=r(l),c=n(93),d=r(c),p=n(204),f=r(p),h=n(219),m=r(h),g=n(247),v=r(g),y=n(222),b=r(y),_=n(83),w=r(_),E=n(228),x=r(E),C=n(229),P=r(C),S=n(67),T=r(S),O=n(87),R=r(O),M=n(259),k=r(M),I=n(260),A=r(I),j=n(21),N=r(j);a.default.defaults={lines:11,length:2,width:5,radius:11,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:50,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"},window.PTL=window.PTL||{},PTL.auth=m.default,PTL.agreement=f.default,PTL.s2=v.default,PTL.browser=b.default,PTL.captcha=w.default,PTL.cookie=u.default,PTL.contact=x.default,PTL.dropdown=P.default,PTL.search=R.default,PTL.stats=k.default,PTL.utils=N.default,PTL.utils.diff=d.default,PTL.store=(0,A.default)(),PTL.common={init:function(e){PTL.auth.init(),PTL.s2.init(),PTL.browser.init(e),e.hasSidebar&&(T.default.fixSidebarHeight(),(0,s.default)(window).on("resize",T.default.fixSidebarHeight)),(0,s.default)(document).tipsy({gravity:s.default.fn.tipsy.autoBounds2(150,"n"),html:!0,fade:!0,delayIn:750,opacity:1,live:"[title], [original-title]"}),setInterval(s.default.fn.tipsy.revalidate,1e3),(0,s.default)("form.formtable").on("click",".js-formtable-select-visible",function(){var e=(0,s.default)(this).is(":checked"),t=(0,s.default)(this).parents("form.formtable");t.find('tbody td.row-select input[type="checkbox"]').each(function(){(0,s.default)(this).prop("checked",e)}),e||t.find('input[type="checkbox"].js-formtable-select-all').each(function(){(0,s.default)(this).prop("checked",!1)})}),(0,s.default)("form.formtable").on("click",".js-formtable-select-all",function(){var e=(0,s.default)(this).is(":checked"),t=(0,s.default)(this).parents("form.formtable");t.find('tbody td.row-select input[type="checkbox"]').each(function(){(0,s.default)(this).prop("checked",e)}),t.find('input[type="checkbox"].js-formtable-select-visible').each(function(){(0,s.default)(this).prop("checked",e)})});var t=".js-pagination-page-no input, .js-pagination-items-per-page input";(0,s.default)("form.formtable").on("change",t,function(){var e=(0,s.default)(this).parents("form.formtable"),n=!0;e.find(t).each(function(){(0,s.default)(this).is(":valid")||(n=!1)}),n&&(0,s.default)(this).parents("form.formtable").submit()});var n=function(e){e.find(".js-formtable-messages").each(function(){(0,s.default)(this).show(),(0,s.default)(this).find("ul.messages").each(function(){(0,s.default)(this).html(["<li>",gettext("Updating data"),"</li>"].join(""))})})};(0,s.default)("form.formtable").on("submit",function(){n((0,s.default)(this))}),(0,s.default)("form.formtable").on("click",".js-pagination-next a",function(e){var t=(0,s.default)(this).parents("form.formtable");e.preventDefault(),t.find(".js-pagination-page-no input").each(function(){(0,s.default)(this).val(parseInt((0,s.default)(this).val(),10)+1)}),t.submit()}),(0,s.default)("form.formtable").on("click",".js-pagination-previous a",function(e){var t=(0,s.default)(this).parents("form.formtable");e.preventDefault(),t.find(".js-pagination-page-no input").each(function(){(0,s.default)(this).val(parseInt((0,s.default)(this).val(),10)-1),t.submit()})}),s.default.ajaxSetup({traditional:!0,crossDomain:!1,beforeSend:function(e,t){this.crossDomain||/^(GET|HEAD|OPTIONS|TRACE)$/.test(t.type)||e.setRequestHeader("X-CSRFToken",(0,u.default)("csrftoken"))}}),(0,s.default)(document).on("click",".collapse",function(e){e.preventDefault(),(0,s.default)(this).siblings(".collapsethis").slideToggle("fast"),(0,s.default)("textarea",(0,s.default)(this).next("div.collapsethis")).length&&(0,s.default)("textarea",(0,s.default)(this).next("div.collapsethis")).focus()}),(0,s.default)(document).on("click",".js-sidebar-toggle",function(){var e=(0,s.default)(".js-sidebar"),t="sidebar-open",n="pootle-browser-sidebar";e.toggleClass(t);var r=e.hasClass(t)?1:0;(0,u.default)(n,r,{path:"/"})}),(0,s.default)(document).magnificPopup({type:"ajax",delegate:".js-popup-ajax",mainClass:"popup-ajax"}),(0,s.default)(document).on("click",".js-toggle",function(e){e.preventDefault();var t=(0,s.default)(this).attr("href")||(0,s.default)(this).data("target");(0,s.default)(t).toggle()})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),s=r(i);n(52),n(53);var o={data:{target:'[data-action="contact"]',subjectPrefix:"subject-prefix",subject:"subject",body:"body"},trigger:".js-contact",wrapper:"#js-contact",form:"#js-contact form",formSent:"#js-sent",subject:"#js-contact #id_email_subject",body:"#js-contact #id_body"},a={url:null,init:function(e){var t=this;e&&s.default.extend(this,e),(0,s.default)(document).on("click",o.trigger,function(e){e.preventDefault(),t.open()}),(0,s.default)(document).on("click",o.data.target,this.onClick.bind(this)),(0,s.default)(document).on("submit",o.form,this.onSubmit.bind(this))},onClick:function(e){e.preventDefault();var t=(0,s.default)(e.target),n=t.data(o.data.subjectPrefix),r=n?["[",n,"] "].join(""):n,i=t.data(o.data.subject),a=t.data(o.data.body);this.open({subjectPrefix:r,subject:i,body:a})},open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url||this.url;return null!==t&&(s.default.magnificPopup.open({items:{src:t,type:"ajax"},callbacks:{ajaxContentAdded:function(){var t=[];e.subjectPrefix&&t.push(e.subjectPrefix),e.subject&&t.push(e.subject),t.length&&(0,s.default)(o.subject).val(t.join("")),e.body&&(0,s.default)(o.body).val(e.body)}},mainClass:"popup-ajax"}),!0)},onSubmit:function(e){e.preventDefault();var t=(0,s.default)(o.form),n=t.attr("action"),r=t.serializeObject(),i={sfn:"PTL.contact.onSubmit",efn:"PTL.contact.onError"};s.default.extend(r,i),this.sendMessage(n,r)},sendMessage:function(e,t){var n=this;s.default.ajax({url:e,data:t,type:"POST",dataType:"json",success:n.onSuccess.bind(n),error:n.onError.bind(n)})},onSuccess:function(){(0,s.default)(o.wrapper).hide(),(0,s.default)(o.formSent).show()},onError:function(e){this.displayErrors(e.responseJSON.errors)},displayErrors:function(e){(0,s.default)("ul.errorlist").remove();for(var t in e)e.hasOwnProperty(t)&&this.validationError(t,e[t])},validationError:function(e,t){for(var n=(0,s.default)("#id_"+e),r=['<ul class="errorlist">'],i=0;i<t.length;i++)r.push(["<li>",t[i],"</li>"].join(""));r.push(["</ul>"]),n.after(r.join(""))}};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),s=r(i),o=n(15),a=r(o),l={data:{toggle:'[data-action="toggle"]'},target:".dropdown-menu",targetItems:"li:not(.menu-divider) a",open:"show-dropdown"},u={ESC:27,UP:38,DOWN:40},c=a.default.View.extend({events:function e(){var e={keydown:"onKey"};return e["click "+l.data.toggle]="toggle",e},initialize:function(){this.$toggle=this.$(l.data.toggle),this.$target=this.$(l.target),this.$target.css("width",this.$el.width()),(0,s.default)(document).on("click.PTL.dropdown",this.hide.bind(this))},onKey:function(e){if(!this.isVisible())return!0;if([u.ESC,u.UP,u.DOWN].indexOf(e.which)!==-1&&e.preventDefault(),e.which===u.ESC)return this.$toggle.click();if([u.UP,u.DOWN].indexOf(e.which)!==-1){var t=this.$target.find(l.targetItems);if(!t.length)return!1;var n=t.index(t.filter(":focus"));e.which===u.UP&&n>0&&n--,e.which===u.DOWN&&n<t.length-1&&n++,n||(n=0),t.eq(n).trigger("focus")}return!0},isVisible:function(){return this.$el.hasClass(l.open)},show:function(){this.isVisible()||this.$el.addClass(l.open)},hide:function(){this.isVisible()&&this.$el.removeClass(l.open)},toggle:function(e){e.preventDefault(),e.stopPropagation(),this.$el.toggleClass(l.open),this.isVisible()?this.$toggle.focus():this.$toggle.blur()}}),d={init:function(e){return new c({el:e instanceof s.default?e:(0,s.default)(e)})}};t.default=d},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){d=(0,a.default)({},d,e)}function s(){return(0,l.combineReducers)((0,a.default)({},{auth:c.default},d))}Object.defineProperty(t,"__esModule",{value:!0}),t.registerReducers=i;var o=n(7),a=r(o),l=n(78),u=n(220),c=r(u),d={};t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),s=r(i);n(51);var o=n(6),a=r(o),l={init:function(){var e=this,t={term:""};(0,s.default)(".js-select2").select2({minimumResultsForSearch:10,dropdownAutoWidth:!0,width:"resolve"}),(0,s.default)(".select2-selection__rendered").removeAttr("title"),this.templateResult=function(n){return['<span class="js-select-resource ',n.css_class,'">',e.formatResult(n.text,t.term),"</span>"].join("")},this.matcher=function(e,n){return e.term?(t.term=e.term,n.text.toUpperCase().indexOf(e.term.toUpperCase())!==-1?n:null):(t.term="",n)},this.formatResult=function(e,t){var n=e.toUpperCase().indexOf(t.toUpperCase());if(n<0)return a.default.escape(e);var r=t.length;return[a.default.escape(e.substring(0,n)),'<span class="select2-match">',a.default.escape(e.substring(n,n+r)),"</span>",a.default.escape(e.substring(n+r,e.length))].join("")},this.processData=function(e){var t={q:e.term,page:e.page};return t},(0,s.default)(document).ready(function(){(0,s.default)(".js-select2-remote").each(function(e,t){var n=(0,s.default)(t);n.select2({ajax:{url:(0,s.default)(t).data("select2-url"),data:function(e){return n.triggerHandler("s2-process-data",e)},processResults:function(e){return n.triggerHandler("s2-process-results",e)},method:(0,s.default)(t).data("s2-method")||"POST",dataType:(0,s.default)(t).data("s2-datatype")||"json",delay:(0,s.default)(t).data("s2-delay")||250},cache:!0,escapeMarkup:function(e){return e},width:(0,s.default)(t).data("s2-width")||"off",dropdownAutoWidth:(0,s.default)(t).data("s2-auto-width")||!0,allowClear:(0,s.default)(t).data("s2-allow-clear")||!1,minimumInputLength:(0,s.default)(t).data("s2-min-length")||3,placeholder:(0,s.default)(t).data("s2-placeholder"),templateResult:function(e){return n.triggerHandler("s2-template-result",e)},matcher:function(e){return n.triggerHandler("s2-matcher",e)}})})})}};t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(29),s=r(i),o={apiRoot:"/xhr/stats/",getTopContributors:function(e){
var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.offset,r=void 0===n?0:n,i={path:e,offset:r};return(0,s.default)({body:i,url:this.apiRoot+"contributors/"})}};t.default=o},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),s=r(i),o=n(1),a=r(o),l=n(8),u=a.default.createClass({displayName:"Tab",propTypes:{onClick:a.default.PropTypes.func,tabIndex:a.default.PropTypes.number,title:a.default.PropTypes.string.isRequired,selected:a.default.PropTypes.bool},mixins:[l.PureRenderMixin],render:function(){var e=(0,s.default)({TabList__Tab:!0,"TabList__Tab--is-active":this.props.selected}),t={display:"inline-block",cursor:this.props.selected?"default":"pointer"},n={style:t,className:e};return this.props.selected||(n.onClick=this.props.onClick.bind(null,this.props.tabIndex)),a.default.createElement("li",n,this.props.title)}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=r(i),o=n(8),a=s.default.createClass({displayName:"Tabs",propTypes:{children:s.default.PropTypes.node.isRequired,initialTab:s.default.PropTypes.number,onChange:s.default.PropTypes.func},mixins:[o.PureRenderMixin],getDefaultProps:function(){return{initialTab:0}},getInitialState:function(){return{selectedTab:this.props.initialTab}},handleClick:function(e){this.setState({selectedTab:e}),this.props.onChange&&this.props.onChange(e)},render:function(){var e=this,t=void 0,n=s.default.Children.map(this.props.children,function(n,r){var i=n.type.displayName||n.type;if("Tab"!==i)throw new Error("\n          Invalid children for component 'Tabs'. Expected: 'Tab'.\n          Found: '"+i+"'\n        ");var o=e.state.selectedTab===r;return o&&(t=n.props.children),s.default.cloneElement(n,{key:r,onClick:e.handleClick,selected:o,tabIndex:r})},this);return s.default.createElement("div",{className:"Tabs"},s.default.createElement("ul",{className:"Tabs__TabList"},n),s.default.createElement("div",{className:"Tabs__TabContent"},t))}});t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),s=r(i),o=n(1),a=r(o),l=a.default.createClass({displayName:"TextToggle",propTypes:{defaultChecked:o.PropTypes.bool,labelActive:o.PropTypes.string,labelInactive:o.PropTypes.string,onClick:o.PropTypes.func,style:o.PropTypes.object},getDefaultProps:function(){return{defaultChecked:!1,labelActive:"Active",labelInactive:"Inactive"}},getInitialState:function(){return{isActive:this.props.defaultChecked}},handleClick:function(){this.setState({isActive:!this.state.isActive}),this.props.onClick&&this.props.onClick({isActive:this.state.isActive})},render:function(){var e=this.state.isActive?this.props.labelActive:this.props.labelInactive,t=(0,s.default)({},{cursor:"pointer"},this.props.style);return a.default.createElement("span",{onClick:this.handleClick,style:t},e)}});t.default=l},,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),s=r(i),o=n(1),a=r(o),u=n(12),c=r(u);n(79);var d=n(7),p=r(d);n(382);var f=n(28),h=r(f),m=n(10),g=n(223),v=r(g),y=n(225),b=r(y),_=n(55),w=r(_),E={init:function(e){var t=this;(0,h.default)("finished")&&(w.default.show({text:gettext("Congratulations! You have completed this task!"),level:"success"}),(0,h.default)("finished",null,{path:"/"})),this.retries=0;var n=e.isInitiallyExpanded||window.location.search.indexOf("?details")!==-1;this.state={isExpanded:n,checksData:null,data:e.initialData},this.pootlePath=e.pootlePath,this.$extraDetails=(0,s.default)("#js-path-summary-more"),this.$expandIcon=(0,s.default)("#js-expand-icon"),(0,s.default)(document).on("click","#js-path-summary",function(e){e.preventDefault(),t.toggleDetailedStats()}),(0,s.default)(document).on("click",".js-toggle-more-checks",function(e){var t=0;e.preventDefault(),(0,s.default)(".js-check").each(function(){var e=(0,s.default)(this);t>=4&&e.toggle(),t++}),(0,s.default)(e.target).parent().toggleClass("collapsed")}),window.addEventListener("popstate",function(e){var n=e.state;n&&t.setState({isExpanded:n.isExpanded})}),e.hasDisabledItems&&c.default.render(a.default.createElement(b.default,{uiLocaleDir:e.uiLocaleDir}),(0,m.q)(".js-mnt-visibility-toggle")),c.default.render(a.default.createElement(v.default,{hasMoreContributors:e.topContributorsData.has_more_items,topContributors:e.topContributorsData.items,pootlePath:this.pootlePath}),(0,m.q)("#js-mnt-top-contributors")),this.updateUI(),this.updateStatsUI()},setState:function(e){this.state=(0,p.default)({},this.state,e),this.updateUI(),this.updateChecksToggleUI()},updateStatsUI:function(){var e=(0,s.default)("#content table.stats");if(e.length){var t=sorttable.getSortCookie(e.data("sort-cookie"));if(null!==t){var n=(0,s.default)("#"+t.columnId);n.removeClass("sorttable_sorted sorttable_sorted_reverse"),setTimeout(function(){n.click(),"desc"===t.order&&n.click()},1)}}},toggleDetailedStats:function(){this.state.checksData||this.setState({isExpanded:!this.state.isExpanded}),this.navigate()},updateChecksToggleUI:function(){var e=this.state.isExpanded,t=e?"collapse":"expand",n=e?gettext("Collapse details"):gettext("Expand details");this.$expandIcon.attr("class","icon-"+t+"-stats"),this.$expandIcon.attr("title",n),this.$extraDetails.toggleClass("expand",e)},updateChecksUI:function(){var e=0;this.$extraDetails.find(".js-check").each(function(){var t=(0,s.default)(this);e++,t.toggle(e<5)}),(0,s.default)(".js-more-checks").addClass("collapsed").toggle(e>=5),(0,s.default)("#js-stats-checks").show()},updateUI:function(){this.updateChecksToggleUI(),this.updateChecksUI()},navigate:function(){var e=this.state.isExpanded,t=""+window.location.pathname+window.location.search,n=l(this.pootlePath),r=e?n+"?details":n;t!==r&&window.history.pushState({isExpanded:e},"",r)}};t.default=E},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){return c((0,u.default)())}Object.defineProperty(t,"__esModule",{value:!0});var s=n(78),o=n(366),a=r(o),l=n(246),u=r(l),c=(0,s.applyMiddleware)(a.default)(s.createStore);t.default=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,s){if("string"!=typeof t){var o=Object.getOwnPropertyNames(t);i&&(o=o.concat(Object.getOwnPropertySymbols(t)));for(var a=0;a<o.length;++a)if(!(n[o[a]]||r[o[a]]||s&&s[o[a]]))try{e[o[a]]=t[o[a]]}catch(e){}}return e}},,function(e,t,n){"use strict";var r=function(e,t,n,r,i,s,o,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,s,o,a],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){function r(e){return null==e?void 0===e?l:a:u&&u in Object(e)?s(e):o(e)}var i=n(143),s=n(296),o=n(297),a="[object Null]",l="[object Undefined]",u=i?i.toStringTag:void 0;e.exports=r},function(e,t){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,function(){return this}())},function(e,t,n){var r=n(298),i=r(Object.getPrototypeOf,Object);e.exports=i},function(e,t,n){function r(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[l]=n:delete e[l]),i}var i=n(143),s=Object.prototype,o=s.hasOwnProperty,a=s.toString,l=i?i.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return i.call(e)}var r=Object.prototype,i=r.toString;e.exports=n},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){var r=n(294),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();e.exports=s},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){"use strict";var r=n(303),i=n(304),s=n(302);e.exports=function(){function e(e,t,n,r,o,a){a!==s&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,s,o,a,l){if(i(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,s,o,a,l],d=0;u=new Error(t.replace(/%s/g,function(){return c[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var i=function(e){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void 0;var a=n(1),l=n(144),u=r(l),c=n(146),d=r(c),p=n(147),f=(r(p),function(e){function t(n,r){i(this,t);var o=s(this,e.call(this,n,r));return o.store=n.store,o}return o(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){return a.Children.only(this.props.children)},t}(a.Component));t.default=f,f.propTypes={store:d.default.isRequired,children:u.default.element.isRequired},f.childContextTypes={store:d.default.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){return e.displayName||e.name||"Component"}function l(e,t){try{return e.apply(t)}catch(e){return T.value=e,T}}function u(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Boolean(e),p=e||C,h=void 0;h="function"==typeof t?t:t?(0,v.default)(t):P;var g=n||S,y=r.pure,b=void 0===y||y,_=r.withRef,E=void 0!==_&&_,R=b&&g!==S,M=O++;return function(e){function t(e,t,n){var r=g(e,t,n);return r}var n="Connect("+a(e)+")",r=function(r){function a(e,t){i(this,a);var o=s(this,r.call(this,e,t));o.version=M,o.store=e.store||t.store,(0,x.default)(o.store,'Could not find "store" in either the context or '+('props of "'+n+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+n+'".'));var l=o.store.getState();return o.state={storeState:l},o.clearCache(),o}return o(a,r),a.prototype.shouldComponentUpdate=function(){return!b||this.haveOwnPropsChanged||this.hasStoreStateChanged},a.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},a.prototype.configureFinalMapState=function(e,t){var n=p(e.getState(),t),r="function"==typeof n;return this.finalMapStateToProps=r?n:p,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},a.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},a.prototype.configureFinalMapDispatch=function(e,t){var n=h(e.dispatch,t),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:h,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},a.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,m.default)(e,this.stateProps))&&(this.stateProps=e,!0)},a.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,m.default)(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},a.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&R&&(0,m.default)(e,this.mergedProps))&&(this.mergedProps=e,!0)},a.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},a.prototype.trySubscribe=function(){u&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},a.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},a.prototype.componentDidMount=function(){this.trySubscribe()},a.prototype.componentWillReceiveProps=function(e){b&&(0,m.default)(e,this.props)||(this.haveOwnPropsChanged=!0)},a.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},a.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},a.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!b||t!==e){if(b&&!this.doStatePropsDependOnOwnProps){var n=l(this.updateStatePropsIfNeeded,this);if(!n)return;n===T&&(this.statePropsPrecalculationError=T.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},a.prototype.getWrappedInstance=function(){return(0,x.default)(E,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},a.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,i=this.statePropsPrecalculationError,s=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,i)throw i;var o=!0,a=!0;b&&s&&(o=n||t&&this.doStatePropsDependOnOwnProps,a=t&&this.doDispatchPropsDependOnOwnProps);var l=!1,u=!1;r?l=!0:o&&(l=this.updateStatePropsIfNeeded()),a&&(u=this.updateDispatchPropsIfNeeded());var p=!0;return p=!!(l||u||t)&&this.updateMergedPropsIfNeeded(),!p&&s?s:(E?this.renderedElement=(0,d.createElement)(e,c({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,d.createElement)(e,this.mergedProps),this.renderedElement)},a}(d.Component);return r.displayName=n,r.WrappedComponent=e,r.contextTypes={store:f.default},r.propTypes={store:f.default},(0,w.default)(r,e)}}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=u;var d=n(1),p=n(146),f=r(p),h=n(307),m=r(h),g=n(308),v=r(g),y=n(147),b=(r(y),n(99)),_=(r(b),n(290)),w=r(_),E=n(292),x=r(E),C=function(e){return{}},P=function(e){return{dispatch:e}},S=function(e,t,n){return c({},n,e,t)},T={value:null},O=0},function(e,t){"use strict";function n(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,s=0;s<n.length;s++)if(!i.call(t,n[s])||e[n[s]]!==t[n[s]])return!1;return!0}t.__esModule=!0,t.default=n},function(e,t,n){"use strict";function r(e){return function(t){return(0,i.bindActionCreators)(e,t)}}t.__esModule=!0,t.default=r;var i=n(78)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){"use strict";function n(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,i){var o=e(n,r,i),l=o.dispatch,u=[],c={getState:o.getState,dispatch:function(e){return l(e)}};return u=t.map(function(e){return e(c)}),l=a.default.apply(void 0,u)(o.dispatch),s({},o,{dispatch:l})}}}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=i;var o=n(176),a=r(o)},function(e,t){"use strict";function n(e,t){return function(){return t(e.apply(void 0,arguments))}}function r(e,t){if("function"==typeof e)return n(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var r=Object.keys(e),i={},s=0;s<r.length;s++){var o=r[s],a=e[o];"function"==typeof a&&(i[o]=n(a,t))}return i}t.__esModule=!0,t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return"Given action "+r+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function s(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:a.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");var i="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:i}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+a.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function o(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var a=Object.keys(n),l=void 0;try{s(n)}catch(e){l=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(l)throw l;for(var r=!1,s={},o=0;o<a.length;o++){var u=a[o],c=n[u],d=e[u],p=c(d,t);if("undefined"==typeof p){var f=i(u,t);throw new Error(f)}s[u]=p,r=r||p!==d}return r?s:e}}t.__esModule=!0,t.default=o;var a=n(177),l=n(99),u=(r(l),n(178));r(u)},,,,function(e,t,n){e.exports=n(374)},function(e,t,n){(function(e,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s,o=n(375),a=i(o);s="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof e?e:r;var l=(0,a.default)(s);t.default=l}).call(t,function(){return this}(),n(179)(e))},function(e,t){"use strict";function n(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},,,,,function(e,t){!function(e,t,n){function r(e,t){return"function"==typeof e?e.call(t):e}function i(n){return e.contains(t.document.documentElement,n)}function s(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}function o(){return"tipsyuid"+l++}function a(t,n){this.$element=e(t),this.options=n,this.enabled=!0,this.fixTitle()}var l=0;a.prototype={show:function(){if(i(this.$element[0])&&(!s(this.$element)||this.$element.is(":visible"))){var t;if(this.enabled&&(t=this.getTitle())){var n=this.tip();n.find(".tipsy-inner"+this.options.theme)[this.options.html?"html":"text"](t),n[0].className="tipsy"+this.options.theme,this.options.className&&n.addClass(r(this.options.className,this.$element[0])),n.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body).data("tipsy-pointee",this.$element[0]);var a=e.extend({},this.$element.offset());a=this.$element.parents("svg").size()>0?e.extend(a,this.$element[0].getBBox()):e.extend(a,{width:this.$element[0].offsetWidth||0,height:this.$element[0].offsetHeight||0});var l,u=n[0].offsetWidth,c=n[0].offsetHeight,d=r(this.options.gravity,this.$element[0]);switch(d.charAt(0)){case"n":l={top:a.top+a.height+this.options.offset,left:a.left+a.width/2-u/2};break;case"s":l={top:a.top-c-this.options.offset,left:a.left+a.width/2-u/2};break;case"e":l={top:a.top+a.height/2-c/2,left:a.left-u-this.options.offset};break;case"w":l={top:a.top+a.height/2-c/2,left:a.left+a.width+this.options.offset}}if(2==d.length&&("w"==d.charAt(1)?l.left=a.left+a.width/2-15:l.left=a.left+a.width/2-u+15),n.css(l).addClass("tipsy-"+d+this.options.theme),n.find(".tipsy-arrow"+this.options.theme)[0].className="tipsy-arrow"+this.options.theme+" tipsy-arrow-"+d.charAt(0)+this.options.theme,n.css({width:u-10+"px"}),this.options.fade?(this.options.shadow&&e(".tipsy-inner").css({"box-shadow":"0px 0px "+this.options.shadowBlur+"px "+this.options.shadowSpread+"px rgba(0, 0, 0, "+this.options.shadowOpacity+")","-webkit-box-shadow":"0px 0px "+this.options.shadowBlur+"px "+this.options.shadowSpread+"px rgba(0, 0, 0, "+this.options.shadowOpacity+")"}),n.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity},this.options.fadeInTime)):n.css({visibility:"visible",opacity:this.options.opacity}),this.options.aria){var p=o();n.attr("id",p),this.$element.attr("aria-describedby",p)}}}},hide:function(){this.options.fade?this.tip().stop().fadeOut(this.options.fadeOutTime,function(){e(this).remove()}):this.tip().remove(),this.options.aria&&this.$element.removeAttr("aria-describedby")},fixTitle:function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("original-title"))&&e.attr("original-title",e.attr("title")||"").removeAttr("title")},getTitle:function(){var e,t=this.$element,n=this.options;return this.fixTitle(),"string"==typeof n.title?e=t.attr("title"==n.title?"original-title":n.title):"function"==typeof n.title&&(e=n.title.call(t[0])),e=(""+e).replace(/(^\s*|\s*$)/,""),e||n.fallback},tip:function(){return this.$tip||(this.$tip=e('<div class="tipsy'+this.options.theme+'"></div>').html('<div class="tipsy-arrow'+this.options.theme+'"></div><div class="tipsy-inner'+this.options.theme+'"></div>').attr("role","tooltip")),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},e.fn.tipsy=function(t){function n(n){var r=e.data(n,"tipsy");return r||(r=new a(n,e.fn.tipsy.elementOptions(n,t)),e.data(n,"tipsy",r)),r}function r(){if(e.fn.tipsy.enabled===!0){var r=n(this);r.hoverState="in",0===t.delayIn?r.show():(r.fixTitle(),setTimeout(function(){"in"==r.hoverState&&r.show()},t.delayIn))}}function i(){var e=n(this);e.hoverState="out",0===t.delayOut?e.hide():setTimeout(function(){"out"!=e.hoverState&&e.$element&&e.$element.is(":visible")||e.hide()},t.delayOut)}if(e.fn.tipsy.enable(),t===!0)return this.data("tipsy");if("string"==typeof t){var s=this.data("tipsy");return s&&s[t](),this}if(t=e.extend({},e.fn.tipsy.defaults,t),t.theme=t.theme&&""!==t.theme?"-"+t.theme:"",t.live||this.each(function(){n(this)}),"manual"!=t.trigger){var o="hover"==t.trigger?"mouseenter mouseover":"focus",l="hover"==t.trigger?"mouseleave mouseout":"blur";if(t.live&&t.live!==!0)e(this).on(o,t.live,r),e(this).on(l,t.live,i);else{if(t.live&&!e.live)throw"Since jQuery 1.9, pass selector as live argument. eg. $(document).tipsy({live: 'a.live'});";var u=t.live?"live":"bind";this[u](o,r)[u](l,i)}}return this},e.fn.tipsy.defaults={aria:!1,className:null,delayIn:0,delayOut:0,fade:!1,fadeInTime:400,fadeOutTime:400,shadow:!1,shadowBlur:8,shadowOpacity:1,shadowSpread:0,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover",theme:""},e.fn.tipsy.revalidate=function(){e(".tipsy").each(function(){var t=e.data(this,"tipsy-pointee");t&&!e(t).is(":disabled")&&i(t)||e(this).remove()})},e.fn.tipsy.enable=function(){e.fn.tipsy.enabled=!0},e.fn.tipsy.disable=function(){e.fn.tipsy.enabled=!1},e.fn.tipsy.elementOptions=function(t,n){return e.metadata?e.extend({},n,e(t).metadata()):n},e.fn.tipsy.autoNS=function(){return e(this).offset().top>e(document).scrollTop()+e(t).height()/2?"s":"n"},e.fn.tipsy.autoWE=function(){return e(this).offset().left>e(document).scrollLeft()+e(t).width()/2?"e":"w"},e.fn.tipsy.autoNWNE=function(){return e(this).offset().left>e(document).scrollLeft()+e(t).width()/2?"ne":"nw"},e.fn.tipsy.autoSWSE=function(){return e(this).offset().left>e(document).scrollLeft()+e(t).width()/2?"se":"sw"},e.fn.tipsy.autoBounds=function(n,r,i){return function(){var s={ns:i[0],ew:i.length>1&&i[1]},o=e(document).scrollTop()+n,a=e(document).scrollLeft()+r,l=e(this);return l.offset().top<o&&(s.ns="n"),l.offset().left<a&&(s.ew="w"),e(t).width()+e(document).scrollLeft()-l.offset().left<r&&(s.ew="e"),e(t).height()+e(document).scrollTop()-l.offset().top<n&&(s.ns="s"),s.ns+(s.ew?s.ew:"")}},e.fn.tipsy.autoBounds2=function(n,r){return function(){var i={},s=e(document).scrollTop()+n,o=e(document).scrollLeft()+n,a=e(this);return r.length>1?(i.ns=r[0],i.ew=r[1]):"e"==r[0]||"w"==r[0]?i.ew=r[0]:i.ns=r[0],a.offset().top<s&&(i.ns="n"),a.offset().left<o&&(i.ew="w"),e(t).width()+e(document).scrollLeft()-(a.offset().left+a.width())<n&&(i.ew="e"),e(t).height()+e(document).scrollTop()-(a.offset().top+a.height())<n&&(i.ns="s"),i.ns?i.ns+(i.ew?i.ew:""):i.ew}}}(jQuery,window)},,function(e,t){function n(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else{i.$$guid||(i.$$guid=n.guid++),e.events||(e.events={});var s=e.events[t];s||(s=e.events[t]={},e["on"+t]&&(s[0]=e["on"+t])),s[i.$$guid]=i,e["on"+t]=r}}function r(e){var t=!0,n=this.events[e.type];for(var r in n)this.$$handleEvent=n[r],this.$$handleEvent(e)===!1&&(t=!1);return t}function i(){var e=Array.prototype.slice.call(document.querySelectorAll("table.sortable tbody tr"));e.forEach(function(e,t){e.classList.remove("odd")});var e=Array.prototype.slice.call(document.querySelectorAll("table.sortable tbody tr.is-visible"));e.forEach(function(e,t){e.classList.toggle("odd",t%2===0)})}sorttable={init:function(){document.createElement&&document.getElementsByTagName&&(sorttable.DATE_RE=/^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/,s(document.getElementsByTagName("table"),function(e){e.className.search(/\bsortable\b/)!=-1&&sorttable.makeSortable(e)}),i())},makeSortable:function(e){0==e.getElementsByTagName("thead").length&&(the=document.createElement("thead"),the.appendChild(e.rows[0]),e.insertBefore(the,e.firstChild)),null==e.tHead&&(e.tHead=e.getElementsByTagName("thead")[0]),sortbottomrows=[];for(var t=0;t<e.rows.length;t++)e.rows[t].className.search(/\bsortbottom\b/)!=-1&&(sortbottomrows[sortbottomrows.length]=e.rows[t]);if(sortbottomrows){null==e.tFoot&&(tfo=document.createElement("tfoot"),e.appendChild(tfo));for(var t=0;t<sortbottomrows.length;t++)tfo.appendChild(sortbottomrows[t]);delete sortbottomrows}headrow=e.tHead.rows[0].cells;for(var t=0;t<headrow.length;t++)headrow[t].className.match(/\bsorttable_nosort\b/)||(mtch=headrow[t].className.match(/\bsorttable_([a-z0-9]+)\b/),mtch&&(override=mtch[1]),mtch&&"function"==typeof sorttable["sort_"+override]?headrow[t].sorttable_sortfunction=sorttable["sort_"+override]:headrow[t].sorttable_sortfunction=sorttable.guessType(e,t),headrow[t].sorttable_columnindex=t,headrow[t].sorttable_tbody=e.tBodies[0],unsorted=document.createElement("i"),unsorted.className="sorttable_unsorted icon-ascdesc",headrow[t].appendChild(unsorted),n(headrow[t],"click",function(t){var n=$(e).data("sort-cookie");return this.className.search(/\bsorttable_sorted\b/)!=-1?(sorttable.reverse(this.sorttable_tbody),this.className=this.className.replace("sorttable_sorted","sorttable_sorted_reverse"),this.removeChild(document.getElementById("sorttable_sortfwdind")),sortrevind=document.createElement("i"),sortrevind.id="sorttable_sortrevind",sortrevind.className="icon-desc",this.appendChild(sortrevind),void sorttable.setSortCookie(n,this.id,"desc")):this.className.search(/\bsorttable_sorted_reverse\b/)!=-1?(sorttable.reverse(this.sorttable_tbody),this.className=this.className.replace("sorttable_sorted_reverse","sorttable_sorted"),this.removeChild(document.getElementById("sorttable_sortrevind")),sortfwdind=document.createElement("i"),sortfwdind.id="sorttable_sortfwdind",sortfwdind.className="icon-asc",this.appendChild(sortfwdind),void sorttable.setSortCookie(n,this.id,"asc")):(sorttable.doSort(this),void sorttable.setSortCookie(n,this.id,"asc"))}))},doSort:function(e){theadrow=e.parentNode,s(theadrow.childNodes,function(e){1==e.nodeType&&(e.className.search(/\b(sorttable_sorted|sorttable_sorted_reverse)\b/)!=-1&&(unsorted=document.createElement("i"),unsorted.className="sorttable_unsorted icon-ascdesc",e.appendChild(unsorted)),e.className=e.className.replace("sorttable_sorted_reverse",""),e.className=e.className.replace("sorttable_sorted",""))}),unsorted=$(".sorttable_unsorted",e).get(0),unsorted&&unsorted.parentNode.removeChild(unsorted),sortfwdind=document.getElementById("sorttable_sortfwdind"),sortfwdind&&sortfwdind.parentNode.removeChild(sortfwdind),sortrevind=document.getElementById("sorttable_sortrevind"),sortrevind&&sortrevind.parentNode.removeChild(sortrevind),e.className+=" sorttable_sorted",sortfwdind=document.createElement("i"),sortfwdind.id="sorttable_sortfwdind",sortfwdind.className="icon-asc",e.appendChild(sortfwdind),row_array=[],col=e.sorttable_columnindex,rows=e.sorttable_tbody.rows;for(var t=0;t<rows.length;t++)row_array[row_array.length]=[sorttable.getInnerText(rows[t].cells[col]),rows[t]];sorttable.shaker_sort(row_array,e.sorttable_sortfunction),tb=e.sorttable_tbody;for(var t=0;t<row_array.length;t++)tb.appendChild(row_array[t][1]);i(),delete row_array},guessType:function(e,t){sortfn=sorttable.sort_alpha;for(var n=0;n<e.tBodies[0].rows.length;n++)if(text=sorttable.getInnerText(e.tBodies[0].rows[n].cells[t]),
""!=text){if(text.match(/^-?[£$€]?[\d,.]+%?$/))return sorttable.sort_numeric;if(possdate=text.match(sorttable.DATE_RE),possdate){if(first=parseInt(possdate[1]),second=parseInt(possdate[2]),first>12)return sorttable.sort_ddmm;if(second>12)return sorttable.sort_mmdd;sortfn=sorttable.sort_ddmm}}return sortfn},getInnerText:function(e){if(hasInputs="function"==typeof e.getElementsByTagName&&e.getElementsByTagName("input").length,"undefined"!=typeof e.getAttribute&&null!=e.getAttribute("sorttable_customkey"))return e.getAttribute("sorttable_customkey");if("undefined"!=typeof e.textContent&&!hasInputs)return e.textContent.replace(/^\s+|\s+$/g,"");if("undefined"!=typeof e.innerText&&!hasInputs)return e.innerText.replace(/^\s+|\s+$/g,"");if("undefined"!=typeof e.text&&!hasInputs)return e.text.replace(/^\s+|\s+$/g,"");switch(e.nodeType){case 3:if("input"==e.nodeName.toLowerCase())return e.value.replace(/^\s+|\s+$/g,"");case 4:return e.nodeValue.replace(/^\s+|\s+$/g,"");case 1:case 11:for(var t="",n=0;n<e.childNodes.length;n++)t+=sorttable.getInnerText(e.childNodes[n]);return t.replace(/^\s+|\s+$/g,"");default:return""}},reverse:function(e){newrows=[];for(var t=0;t<e.rows.length;t++)newrows[newrows.length]=e.rows[t];for(var t=newrows.length-1;t>=0;t--)e.appendChild(newrows[t]);delete newrows},sort_numeric:function(e,t){return aa=parseFloat(e[0].replace(/[^0-9.-]/g,"")),isNaN(aa)&&(aa=0),bb=parseFloat(t[0].replace(/[^0-9.-]/g,"")),isNaN(bb)&&(bb=0),aa-bb},sort_alpha:function(e,t){return e[0]==t[0]?0:e[0]<t[0]?-1:1},sort_ddmm:function(e,t){return mtch=e[0].match(sorttable.DATE_RE),y=mtch[3],m=mtch[2],d=mtch[1],1==m.length&&(m="0"+m),1==d.length&&(d="0"+d),dt1=y+m+d,mtch=t[0].match(sorttable.DATE_RE),y=mtch[3],m=mtch[2],d=mtch[1],1==m.length&&(m="0"+m),1==d.length&&(d="0"+d),dt2=y+m+d,dt1==dt2?0:dt1<dt2?-1:1},sort_mmdd:function(e,t){return mtch=e[0].match(sorttable.DATE_RE),y=mtch[3],d=mtch[2],m=mtch[1],1==m.length&&(m="0"+m),1==d.length&&(d="0"+d),dt1=y+m+d,mtch=t[0].match(sorttable.DATE_RE),y=mtch[3],d=mtch[2],m=mtch[1],1==m.length&&(m="0"+m),1==d.length&&(d="0"+d),dt2=y+m+d,dt1==dt2?0:dt1<dt2?-1:1},shaker_sort:function(e,t){for(var n=0,r=e.length-1,i=!0;i;){i=!1;for(var s=n;s<r;++s)if(t(e[s],e[s+1])>0){var o=e[s];e[s]=e[s+1],e[s+1]=o,i=!0}if(r--,!i)break;for(var s=r;s>n;--s)if(t(e[s],e[s-1])<0){var o=e[s];e[s]=e[s-1],e[s-1]=o,i=!0}n++}},setSortCookie:function(e,t,n){if(e&&t){var r=JSON.stringify({columnId:t,order:n});PTL.cookie(e,r,{path:"/"})}},getSortCookie:function(e){try{return JSON.parse(PTL.cookie(e))}catch(e){return{}}}},document.addEventListener("DOMContentLoaded",sorttable.init,!1),n.guid=1,Array.forEach||(Array.forEach=function(e,t,n){for(var r=0;r<e.length;r++)t.call(n,e[r],r,e)}),Function.prototype.forEach=function(e,t,n){for(var r in e)"undefined"==typeof this.prototype[r]&&t.call(n,e[r],r,e)},String.forEach=function(e,t,n){Array.forEach(e.split(""),function(r,i){t.call(n,r,i,e)})};var s=function(e,t,n){if(e){var r=Object;if(e instanceof Function)r=Function;else{if(e.forEach instanceof Function)return void e.forEach(t,n);"string"==typeof e?r=String:"number"==typeof e.length&&(r=Array)}r.forEach(e,t,n)}}}]);